@bikdotai/bik-component-library 1.0.0-beta.1 → 1.1.1-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/vertical_dots.svg.js +1 -1
- package/dist/cjs/bundle.css +0 -2
- 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/Filters/UserProperty/components/UserPropertyFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.d.ts +2 -4
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/IgPicker.stories.d.ts +5 -0
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.d.ts +0 -1
- package/dist/cjs/components/QueryBuilder/components/DropdownWrapper.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/InputLoader.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNode.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodeUIWrapper.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNode/Property/PropertyNodes.js +1 -1
- package/dist/cjs/components/QueryBuilder/components/QueryBuilderNodes.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connector.d.ts +9 -33
- package/dist/cjs/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/connectorPosition.d.ts +2 -17
- package/dist/cjs/components/QueryBuilder/constants/connectorPosition.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/ApiResponse.helper.d.ts +0 -3
- package/dist/cjs/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -1
- package/dist/cjs/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.d.ts +2 -8
- package/dist/cjs/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -11
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +5 -22
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +1 -4
- package/dist/cjs/components/QueryBuilder/types/QueryBuilderProps.type.d.ts +0 -1
- package/dist/cjs/components/TypographyStyle.d.ts +17 -72
- package/dist/cjs/components/TypographyStyle.js +78 -148
- package/dist/cjs/components/analytics-card/AnalyticsCard.d.ts +0 -1
- package/dist/cjs/components/analytics-card/AnalyticsCard.js +1 -1
- package/dist/cjs/components/analytics-card/AnalyticsCard.styled.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +0 -6
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/index.d.ts +0 -11
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +1 -1
- package/dist/cjs/components/button/themes.d.ts +2 -5
- package/dist/cjs/components/button/themes.js +1 -1
- package/dist/cjs/components/curtain/Curtain.d.ts +1 -2
- package/dist/cjs/components/curtain/Curtain.js +1 -1
- package/dist/cjs/components/curtain/Curtain.styled.js +4 -4
- package/dist/cjs/components/curtain/CurtainHelper.d.ts +1 -12
- package/dist/cjs/components/curtain/CurtainHelper.js +1 -1
- package/dist/cjs/components/datePicker/DatePicker.d.ts +0 -1
- package/dist/cjs/components/datePicker/DatePicker.js +1 -1
- package/dist/cjs/components/datePicker/DatePicker.styled.js +1 -1
- package/dist/cjs/components/dropShadow/DropShadow.d.ts +0 -1
- package/dist/cjs/components/dropShadow/DropShadow.js +1 -1
- package/dist/cjs/components/dropdown/Dropdown.d.ts +0 -1
- package/dist/cjs/components/dropdown/Dropdown.js +1 -1
- package/dist/cjs/components/dropdown/DropdownPopover/index.d.ts +0 -1
- package/dist/cjs/components/dropdown/DropdownPopover/index.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.styled.d.ts +0 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/OpennedDropdown.styled.js +0 -2
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.d.ts +0 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +2 -2
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.styled.d.ts +1 -4
- package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchBox.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/searchbox/SearchZeroState.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/utils/iterationOnOptions.d.ts +0 -2
- package/dist/cjs/components/dropdown/index.d.ts +0 -1
- package/dist/cjs/components/dropdown/type.d.ts +0 -4
- package/dist/cjs/components/image-compress/ImageCompress.d.ts +1 -5
- package/dist/cjs/components/image-compress/ImageCompress.js +1 -1
- package/dist/cjs/components/input/Input.d.ts +3 -12
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.styled.js +1 -1
- package/dist/cjs/components/list-item/themes.js +1 -1
- package/dist/cjs/components/modals/Modal.d.ts +1 -2
- package/dist/cjs/components/modals/Modal.js +1 -1
- package/dist/cjs/components/modals/modal.styled.js +1 -1
- package/dist/cjs/components/modals/styledModal.d.ts +2 -3
- package/dist/cjs/components/modals/styledModal.js +1 -1
- package/dist/cjs/components/postPicker/PostPicker.styled.d.ts +1 -4
- package/dist/cjs/components/postPicker/PostPicker.styled.js +8 -6
- package/dist/cjs/components/postPicker/postPicker.js +1 -1
- package/dist/cjs/components/radioButton/RadioButton.js +1 -1
- package/dist/cjs/components/spinner/Spinner.js +1 -1
- package/dist/cjs/components/states/StateComponent.d.ts +2 -3
- package/dist/cjs/components/states-modal/StateModalComponent.d.ts +1 -3
- package/dist/cjs/components/states-modal/index.d.ts +0 -1
- package/dist/cjs/components/switch/Switch.d.ts +8 -16
- package/dist/cjs/components/tag/Tag.styled.d.ts +2 -6
- package/dist/cjs/components/tag/Tag.styled.js +28 -1
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +1 -2
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -2
- package/dist/cjs/components/template-context-mapper/utils/validateIsUrl.js +1 -1
- package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.d.ts +0 -4
- package/dist/cjs/components/template-preview/EmailTemplatePreview.styled.js +12 -25
- package/dist/cjs/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
- package/dist/cjs/components/template-preview/WhatsApp/ChatBtn.js +1 -1
- package/dist/cjs/components/template-preview/WhatsApp/ChatUI.js +2 -2
- package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.d.ts +1 -4
- 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 -1
- package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/cjs/components/template-preview/index.d.ts +0 -4
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.d.ts +0 -4
- package/dist/cjs/components/toaster/Toaster.d.ts +1 -1
- package/dist/cjs/components/toaster/Toaster.js +1 -1
- package/dist/cjs/components/toaster/Toaster.styled.js +1 -1
- package/dist/cjs/components/tooltips/Tooltip.js +1 -1
- package/dist/cjs/components/zeroState/ZeroState.js +1 -1
- package/dist/cjs/constants/Theme.d.ts +0 -4
- package/dist/cjs/constants/Theme.js +1 -1
- package/dist/cjs/index.d.ts +1 -26
- package/dist/cjs/index.js +1 -1
- package/dist/esm/assets/icons/vertical_dots.svg.js +1 -1
- package/dist/esm/bundle.css +0 -2
- 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/Triggers/components/BaseTriggerQueryBuilderNode.js +1 -1
- package/dist/esm/components/QueryBuilder/components/AllowedListDropdown.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/EmojiPicker.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/FreeText.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/FrequencyIntegerPositiveSingle.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.d.ts +2 -4
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/IgPicker.stories.d.ts +5 -0
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/MultiselectDropdownFreeText.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleDate.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/TwoDate.js +1 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Connector.js +1 -1
- package/dist/esm/components/QueryBuilder/components/DropdownWrapper.d.ts +0 -1
- package/dist/esm/components/QueryBuilder/components/DropdownWrapper.js +1 -1
- package/dist/esm/components/QueryBuilder/components/InputLoader.js +1 -1
- 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/QueryBuilderNodes.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/connector.d.ts +9 -33
- package/dist/esm/components/QueryBuilder/constants/connector.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/connectorPosition.d.ts +2 -17
- package/dist/esm/components/QueryBuilder/constants/connectorPosition.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/ApiResponse.helper.d.ts +0 -3
- package/dist/esm/components/QueryBuilder/helpers/ApiResponse.helper.js +1 -1
- package/dist/esm/components/QueryBuilder/helpers/Connector.helper.d.ts +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.d.ts +2 -8
- package/dist/esm/components/QueryBuilder/types/QueryBuilder.type.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderConnector.type.d.ts +1 -11
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.d.ts +5 -22
- package/dist/esm/components/QueryBuilder/types/QueryBuilderOperator.type.js +1 -1
- package/dist/esm/components/QueryBuilder/types/QueryBuilderPropertyProps.d.ts +1 -4
- package/dist/esm/components/QueryBuilder/types/QueryBuilderProps.type.d.ts +0 -1
- package/dist/esm/components/TypographyStyle.d.ts +17 -72
- package/dist/esm/components/TypographyStyle.js +82 -152
- package/dist/esm/components/analytics-card/AnalyticsCard.d.ts +0 -1
- package/dist/esm/components/analytics-card/AnalyticsCard.js +1 -1
- package/dist/esm/components/analytics-card/AnalyticsCard.styled.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.d.ts +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsChip.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.d.ts +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.d.ts +0 -6
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/index.d.ts +0 -11
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +1 -1
- package/dist/esm/components/button/themes.d.ts +2 -5
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/curtain/Curtain.d.ts +1 -2
- package/dist/esm/components/curtain/Curtain.js +1 -1
- package/dist/esm/components/curtain/Curtain.styled.js +1 -1
- package/dist/esm/components/curtain/CurtainHelper.d.ts +1 -12
- package/dist/esm/components/curtain/CurtainHelper.js +1 -1
- package/dist/esm/components/datePicker/DatePicker.d.ts +0 -1
- package/dist/esm/components/datePicker/DatePicker.js +1 -1
- package/dist/esm/components/datePicker/DatePicker.styled.js +1 -1
- package/dist/esm/components/dropShadow/DropShadow.d.ts +0 -1
- package/dist/esm/components/dropShadow/DropShadow.js +1 -1
- package/dist/esm/components/dropdown/Dropdown.d.ts +0 -1
- package/dist/esm/components/dropdown/Dropdown.js +1 -1
- package/dist/esm/components/dropdown/DropdownPopover/index.d.ts +0 -1
- package/dist/esm/components/dropdown/DropdownPopover/index.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.styled.d.ts +0 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/OpennedDropdown.styled.js +3 -5
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.d.ts +0 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuItem.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.styled.d.ts +1 -4
- 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.d.ts +0 -2
- package/dist/esm/components/dropdown/index.d.ts +0 -1
- package/dist/esm/components/dropdown/type.d.ts +0 -4
- package/dist/esm/components/image-compress/ImageCompress.d.ts +1 -5
- package/dist/esm/components/image-compress/ImageCompress.js +1 -1
- package/dist/esm/components/input/Input.d.ts +3 -12
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.js +1 -1
- package/dist/esm/components/list-item/themes.js +1 -1
- package/dist/esm/components/modals/Modal.d.ts +1 -2
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/modals/modal.styled.js +1 -1
- package/dist/esm/components/modals/styledModal.d.ts +2 -3
- package/dist/esm/components/modals/styledModal.js +1 -1
- package/dist/esm/components/postPicker/PostPicker.styled.d.ts +1 -4
- package/dist/esm/components/postPicker/PostPicker.styled.js +3 -1
- package/dist/esm/components/postPicker/postPicker.js +1 -1
- package/dist/esm/components/radioButton/RadioButton.js +1 -1
- package/dist/esm/components/spinner/Spinner.js +1 -1
- package/dist/esm/components/states/StateComponent.d.ts +2 -3
- package/dist/esm/components/states-modal/StateModalComponent.d.ts +1 -3
- package/dist/esm/components/states-modal/index.d.ts +0 -1
- package/dist/esm/components/switch/Switch.d.ts +8 -16
- package/dist/esm/components/tag/Tag.styled.d.ts +2 -6
- package/dist/esm/components/tag/Tag.styled.js +28 -1
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +1 -2
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +6 -6
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +2 -2
- package/dist/esm/components/template-context-mapper/utils/validateIsUrl.js +1 -1
- package/dist/esm/components/template-preview/EmailTemplatePreview.styled.d.ts +0 -4
- package/dist/esm/components/template-preview/EmailTemplatePreview.styled.js +11 -24
- package/dist/esm/components/template-preview/EmailTemplateThumbnailPreview.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatBtn.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUI.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUI.style.d.ts +1 -4
- 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 -1
- package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/esm/components/template-preview/index.d.ts +0 -4
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.d.ts +0 -4
- package/dist/esm/components/toaster/Toaster.d.ts +1 -1
- package/dist/esm/components/toaster/Toaster.js +1 -1
- package/dist/esm/components/toaster/Toaster.styled.js +1 -1
- package/dist/esm/components/tooltips/Tooltip.js +1 -1
- package/dist/esm/components/zeroState/ZeroState.js +4 -4
- package/dist/esm/constants/Theme.d.ts +0 -4
- package/dist/esm/constants/Theme.js +1 -1
- package/dist/esm/index.d.ts +1 -26
- package/dist/esm/index.js +1 -1
- package/package.json +1 -8
- package/dist/cjs/_virtual/_commonjsHelpers.js +0 -1
- package/dist/cjs/assets/icons/Bik_logo.svg.js +0 -1
- package/dist/cjs/assets/icons/alert_triangle.svg.js +0 -1
- package/dist/cjs/assets/icons/arrow_down.svg.js +0 -1
- package/dist/cjs/assets/icons/arrow_up.svg.js +0 -1
- package/dist/cjs/assets/icons/bold.svg.js +0 -1
- package/dist/cjs/assets/icons/box.svg.js +0 -1
- package/dist/cjs/assets/icons/chevronLeft.svg.js +0 -1
- package/dist/cjs/assets/icons/chevronRight.svg.js +0 -1
- package/dist/cjs/assets/icons/clock.svg.js +0 -1
- package/dist/cjs/assets/icons/cursor.svg.js +0 -1
- package/dist/cjs/assets/icons/errorIcon.svg.js +0 -1
- package/dist/cjs/assets/icons/file.svg.js +0 -1
- package/dist/cjs/assets/icons/horizontal_dots.svg.js +0 -1
- package/dist/cjs/assets/icons/italic.svg.js +0 -1
- package/dist/cjs/assets/icons/log_out.svg.js +0 -1
- package/dist/cjs/assets/icons/searchIcon.d.ts +0 -2
- package/dist/cjs/assets/icons/searchIcon.js +0 -1
- package/dist/cjs/assets/icons/strikeThrough.svg.js +0 -1
- package/dist/cjs/assets/icons/successIcon.svg.js +0 -1
- package/dist/cjs/assets/icons/triangle_error.svg.js +0 -1
- package/dist/cjs/assets/icons/upload.svg.js +0 -1
- package/dist/cjs/assets/icons/warningIcon.svg.js +0 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.d.ts +0 -4
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/InTheLast.js +0 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.d.ts +0 -4
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +0 -1
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.d.ts +0 -4
- package/dist/cjs/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +0 -1
- package/dist/cjs/components/TablePagination/TablePagination.d.ts +0 -11
- package/dist/cjs/components/TablePagination/TablePagination.js +0 -1
- package/dist/cjs/components/TablePagination/TablePagination.styled.d.ts +0 -6
- package/dist/cjs/components/TablePagination/TablePagination.styled.js +0 -38
- package/dist/cjs/components/TablePagination/TablePaginationCard.d.ts +0 -7
- package/dist/cjs/components/TablePagination/TablePaginationCard.js +0 -1
- package/dist/cjs/components/TablePagination/index.d.ts +0 -2
- package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.d.ts +0 -15
- package/dist/cjs/components/WhatsAppTextEditor/CustomEditor.styled.js +0 -1
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +0 -40
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditor.js +0 -1
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +0 -14
- package/dist/cjs/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +0 -1
- package/dist/cjs/components/WhatsAppTextEditor/index.d.ts +0 -2
- package/dist/cjs/components/accordion/Accordion.d.ts +0 -9
- package/dist/cjs/components/accordion/Accordion.js +0 -1
- package/dist/cjs/components/accordion/Accordion.style.d.ts +0 -6
- package/dist/cjs/components/accordion/Accordion.style.js +0 -28
- package/dist/cjs/components/accordion/AccordionArrow.d.ts +0 -3
- package/dist/cjs/components/accordion/AccordionArrow.js +0 -1
- package/dist/cjs/components/accordion/index.d.ts +0 -1
- package/dist/cjs/components/alerts/Alert.d.ts +0 -12
- package/dist/cjs/components/alerts/Alert.js +0 -1
- package/dist/cjs/components/alerts/Alert.styled.d.ts +0 -4
- package/dist/cjs/components/alerts/Alert.styled.js +0 -8
- package/dist/cjs/components/alerts/AlertHelper.d.ts +0 -24
- package/dist/cjs/components/alerts/AlertHelper.js +0 -1
- package/dist/cjs/components/alerts/index.d.ts +0 -2
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +0 -10
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -17
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.js +0 -4
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.d.ts +0 -6
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.d.ts +0 -25
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.d.ts +0 -17
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +0 -15
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.d.ts +0 -4
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartInputData.d.ts +0 -10
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js +0 -5
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.styles.d.ts +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.styles.js +0 -4
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraphModel.d.ts +0 -20
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.d.ts +0 -3
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.js +0 -4
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +0 -27
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.d.ts +0 -9
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.d.ts +0 -7
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.d.ts +0 -6
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.d.ts +0 -27
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.d.ts +0 -25
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/index.d.ts +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.d.ts +0 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +0 -1
- package/dist/cjs/components/bik-layout/BikHeader.d.ts +0 -9
- package/dist/cjs/components/bik-layout/BikHeader.js +0 -1
- package/dist/cjs/components/bik-layout/BikLayout.d.ts +0 -15
- package/dist/cjs/components/bik-layout/BikLayout.js +0 -1
- package/dist/cjs/components/bik-layout/BikProfile.d.ts +0 -12
- package/dist/cjs/components/bik-layout/BikProfile.js +0 -1
- package/dist/cjs/components/bik-layout/BikSidebar.d.ts +0 -23
- package/dist/cjs/components/bik-layout/BikSidebar.js +0 -1
- package/dist/cjs/components/bik-layout/CommonStyles.d.ts +0 -93
- package/dist/cjs/components/bik-layout/CommonStyles.js +0 -1
- package/dist/cjs/components/bik-layout/FeatureModal.d.ts +0 -9
- package/dist/cjs/components/bik-layout/FeatureModal.js +0 -1
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +0 -61
- package/dist/cjs/components/bik-layout/PageLoader.d.ts +0 -6
- package/dist/cjs/components/bik-layout/PageLoader.js +0 -1
- package/dist/cjs/components/bik-layout/SidebarSkeleton.d.ts +0 -9
- package/dist/cjs/components/bik-layout/SidebarSkeleton.js +0 -1
- package/dist/cjs/components/bik-layout/SidebarStyles.d.ts +0 -21
- package/dist/cjs/components/bik-layout/SidebarStyles.js +0 -1
- package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +0 -22
- package/dist/cjs/components/bik-layout/SimpleSidebar.js +0 -1
- package/dist/cjs/components/bik-layout/index.d.ts +0 -7
- package/dist/cjs/components/buttonGroup/ButtonGroup.d.ts +0 -19
- package/dist/cjs/components/buttonGroup/ButtonGroup.js +0 -1
- package/dist/cjs/components/buttonGroup/ButtonGroupStyle.d.ts +0 -10
- package/dist/cjs/components/buttonGroup/ButtonGroupStyle.js +0 -32
- package/dist/cjs/components/buttonGroup/index.d.ts +0 -1
- package/dist/cjs/components/card-selection-modal/CardSelectionModal.d.ts +0 -17
- package/dist/cjs/components/card-selection-modal/CardSelectionModal.js +0 -1
- package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.d.ts +0 -9
- package/dist/cjs/components/card-selection-modal/CardSelectionModal.styled.js +0 -1
- package/dist/cjs/components/card-selection-modal/index.d.ts +0 -1
- package/dist/cjs/components/carousel/carousel.d.ts +0 -3
- package/dist/cjs/components/carousel/carousel.js +0 -22
- package/dist/cjs/components/carousel/index.d.ts +0 -1
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.d.ts +0 -6
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +0 -1
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.d.ts +0 -29
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.style.js +0 -1
- package/dist/cjs/components/carousel-secondary/index.d.ts +0 -1
- package/dist/cjs/components/colourInput/ColourInput.d.ts +0 -8
- package/dist/cjs/components/colourInput/ColourInput.js +0 -1
- package/dist/cjs/components/colourInput/ColourInput.styled.d.ts +0 -9
- package/dist/cjs/components/colourInput/ColourInput.styled.js +0 -1
- package/dist/cjs/components/colourInput/index.d.ts +0 -1
- package/dist/cjs/components/country-code-picker/CountryCodePicker.d.ts +0 -11
- package/dist/cjs/components/country-code-picker/CountryCodePicker.js +0 -1
- package/dist/cjs/components/country-code-picker/CountryCodePicker.modal.d.ts +0 -6
- package/dist/cjs/components/country-code-picker/CountryCodePicker.modal.js +0 -1
- package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.d.ts +0 -11
- package/dist/cjs/components/country-code-picker/CountryCodePicker.styled.js +0 -1
- package/dist/cjs/components/country-code-picker/index.d.ts +0 -2
- package/dist/cjs/components/custom-date-time/CustomDateTime.d.ts +0 -11
- package/dist/cjs/components/custom-date-time/CustomDateTime.js +0 -1
- package/dist/cjs/components/custom-date-time/CustomDateTime.styled.d.ts +0 -5
- package/dist/cjs/components/custom-date-time/CustomDateTime.styled.js +0 -1
- package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.d.ts +0 -8
- package/dist/cjs/components/custom-date-time/DateSelector/DateSelector.js +0 -1
- package/dist/cjs/components/custom-date-time/index.d.ts +0 -1
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.d.ts +0 -12
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +0 -1
- package/dist/cjs/components/discount-modal/DiscountModal.d.ts +0 -21
- package/dist/cjs/components/discount-modal/DiscountModal.js +0 -1
- package/dist/cjs/components/discount-modal/DiscountModal.styled.d.ts +0 -19
- package/dist/cjs/components/discount-modal/DiscountModal.styled.js +0 -1
- package/dist/cjs/components/discount-modal/DiscountUtils.d.ts +0 -2
- package/dist/cjs/components/discount-modal/DiscountUtils.js +0 -1
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +0 -29
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +0 -1
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.d.ts +0 -10
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +0 -1
- package/dist/cjs/components/discount-modal/index.d.ts +0 -3
- package/dist/cjs/components/discount-modal/type.d.ts +0 -49
- package/dist/cjs/components/discount-modal/type.js +0 -1
- package/dist/cjs/components/dropdown/MenuItem/MenuItem.d.ts +0 -8
- package/dist/cjs/components/dropdown/MenuItem/MenuItem.js +0 -5
- package/dist/cjs/components/file-uploader/FileUploader.d.ts +0 -3
- package/dist/cjs/components/file-uploader/FileUploader.js +0 -1
- package/dist/cjs/components/file-uploader/FileUploaderStyle.d.ts +0 -7
- package/dist/cjs/components/file-uploader/FileUploaderStyle.js +0 -166
- package/dist/cjs/components/file-uploader/Models.d.ts +0 -34
- package/dist/cjs/components/file-uploader/index.d.ts +0 -1
- package/dist/cjs/components/file-uploader/useMockUrlUpload.d.ts +0 -8
- package/dist/cjs/components/image-cropper/BikImageCropper.d.ts +0 -10
- package/dist/cjs/components/image-cropper/BikImageCropper.js +0 -1
- package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +0 -30
- package/dist/cjs/components/image-cropper/BikImagePipeline/BikImagePipeline.js +0 -1
- package/dist/cjs/components/image-cropper/index.d.ts +0 -2
- package/dist/cjs/components/image-cropper/useMockFileUpload.d.ts +0 -8
- package/dist/cjs/components/input/Input-helper.d.ts +0 -6
- package/dist/cjs/components/input/Input-helper.js +0 -1
- package/dist/cjs/components/plans/DurationSelector.d.ts +0 -9
- package/dist/cjs/components/plans/DurationSelectorStyles.d.ts +0 -5
- package/dist/cjs/components/plans/SubscriptionPlan.d.ts +0 -30
- package/dist/cjs/components/plans/SubscriptionPlan.js +0 -1
- package/dist/cjs/components/plans/SubscriptionPlanSelector.d.ts +0 -13
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js +0 -1
- package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +0 -7
- package/dist/cjs/components/plans/SubscriptionPlanStyled.js +0 -1
- package/dist/cjs/components/plans/index.d.ts +0 -2
- package/dist/cjs/components/product-picker/ProductPicker.styled.d.ts +0 -9
- package/dist/cjs/components/product-picker/ProductPicker.styled.js +0 -1
- package/dist/cjs/components/product-picker/ProductPickerModal.d.ts +0 -4
- package/dist/cjs/components/product-picker/ProductPickerModal.js +0 -1
- package/dist/cjs/components/product-picker/index.d.ts +0 -1
- package/dist/cjs/components/product-picker/type.d.ts +0 -57
- package/dist/cjs/components/product-picker-v2/collectionScreen.d.ts +0 -23
- package/dist/cjs/components/product-picker-v2/collectionScreen.js +0 -1
- package/dist/cjs/components/product-picker-v2/index.d.ts +0 -1
- package/dist/cjs/components/product-picker-v2/modal.d.ts +0 -47
- package/dist/cjs/components/product-picker-v2/modal.js +0 -1
- package/dist/cjs/components/product-picker-v2/productScreen.d.ts +0 -39
- package/dist/cjs/components/product-picker-v2/productScreen.js +0 -1
- package/dist/cjs/components/product-picker-v2/reducers.d.ts +0 -17
- package/dist/cjs/components/product-picker-v2/reducers.js +0 -1
- package/dist/cjs/components/product-picker-v2/selectedScreen.d.ts +0 -14
- package/dist/cjs/components/product-picker-v2/selectedScreen.js +0 -1
- package/dist/cjs/components/product-picker-v2/style.d.ts +0 -14
- package/dist/cjs/components/product-picker-v2/style.js +0 -69
- package/dist/cjs/components/searchBar/index.d.ts +0 -1
- package/dist/cjs/components/searchBar/searchBar.d.ts +0 -13
- package/dist/cjs/components/searchBar/searchBar.js +0 -1
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.d.ts +0 -13
- package/dist/cjs/components/shimmer/ShimmerComponent/BikShimmer.js +0 -1
- package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +0 -7
- package/dist/cjs/components/shimmer/ShimmerComponent/ShimmerStyled.js +0 -9
- package/dist/cjs/components/shimmer/index.d.ts +0 -1
- package/dist/cjs/components/shimmer-image/ShimmerImage.d.ts +0 -10
- package/dist/cjs/components/shimmer-image/ShimmerImage.js +0 -1
- package/dist/cjs/components/shimmer-image/ShimmerImage.stories.d.ts +0 -6
- package/dist/cjs/components/shimmer-image/index.d.ts +0 -1
- package/dist/cjs/components/states/StateComponent.js +0 -1
- package/dist/cjs/components/states/StateComponent.styled.js +0 -26
- package/dist/cjs/components/states-modal/DeleteConfirmationModal.d.ts +0 -9
- package/dist/cjs/components/states-modal/DeleteConfirmationModal.js +0 -1
- package/dist/cjs/components/states-modal/StateModalComponent.js +0 -1
- package/dist/cjs/components/switch/Switch.js +0 -1
- package/dist/cjs/components/switch/index.d.ts +0 -1
- package/dist/cjs/components/tabs/Tabs.d.ts +0 -4
- package/dist/cjs/components/tabs/Tabs.js +0 -1
- package/dist/cjs/components/tabs/Tabs.model.d.ts +0 -47
- package/dist/cjs/components/tabs/Tabs.styles.d.ts +0 -38
- package/dist/cjs/components/tabs/Tabs.styles.js +0 -1
- package/dist/cjs/components/tabs/index.d.ts +0 -1
- package/dist/cjs/components/template-context-mapper/utils/getFormattedMonthDate.d.ts +0 -1
- package/dist/cjs/components/template-context-mapper/utils/getFormattedMonthDate.js +0 -1
- package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.d.ts +0 -3
- package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +0 -19
- package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.d.ts +0 -3
- package/dist/cjs/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js +0 -12
- package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.d.ts +0 -7
- package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +0 -1
- package/dist/cjs/helpers/BaseWhatsappContentLang.helper.d.ts +0 -41
- package/dist/cjs/helpers/BaseWhatsappContentLang.helper.js +0 -1
- package/dist/cjs/helpers/index.d.ts +0 -1
- package/dist/cjs/node_modules/lodash.debounce/index.js +0 -1
- package/dist/cjs/utils/isAlphanumeric.d.ts +0 -1
- package/dist/cjs/utils/isAlphanumeric.js +0 -1
- package/dist/esm/_virtual/_commonjsHelpers.js +0 -1
- package/dist/esm/assets/icons/Bik_logo.svg.js +0 -1
- package/dist/esm/assets/icons/alert_triangle.svg.js +0 -1
- package/dist/esm/assets/icons/arrow_down.svg.js +0 -1
- package/dist/esm/assets/icons/arrow_up.svg.js +0 -1
- package/dist/esm/assets/icons/bold.svg.js +0 -1
- package/dist/esm/assets/icons/box.svg.js +0 -1
- package/dist/esm/assets/icons/chevronLeft.svg.js +0 -1
- package/dist/esm/assets/icons/chevronRight.svg.js +0 -1
- package/dist/esm/assets/icons/clock.svg.js +0 -1
- package/dist/esm/assets/icons/cursor.svg.js +0 -1
- package/dist/esm/assets/icons/errorIcon.svg.js +0 -1
- package/dist/esm/assets/icons/file.svg.js +0 -1
- package/dist/esm/assets/icons/horizontal_dots.svg.js +0 -1
- package/dist/esm/assets/icons/italic.svg.js +0 -1
- package/dist/esm/assets/icons/log_out.svg.js +0 -1
- package/dist/esm/assets/icons/searchIcon.d.ts +0 -2
- package/dist/esm/assets/icons/searchIcon.js +0 -1
- package/dist/esm/assets/icons/strikeThrough.svg.js +0 -1
- package/dist/esm/assets/icons/successIcon.svg.js +0 -1
- package/dist/esm/assets/icons/triangle_error.svg.js +0 -1
- package/dist/esm/assets/icons/upload.svg.js +0 -1
- package/dist/esm/assets/icons/warningIcon.svg.js +0 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.d.ts +0 -4
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/InTheLast.js +0 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.d.ts +0 -4
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/SingleselectDropdownFreeText.js +0 -1
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.d.ts +0 -4
- package/dist/esm/components/QueryBuilder/components/Connectors/Components/StringSingleValue.js +0 -1
- package/dist/esm/components/TablePagination/TablePagination.d.ts +0 -11
- package/dist/esm/components/TablePagination/TablePagination.js +0 -1
- package/dist/esm/components/TablePagination/TablePagination.styled.d.ts +0 -6
- package/dist/esm/components/TablePagination/TablePagination.styled.js +0 -38
- package/dist/esm/components/TablePagination/TablePaginationCard.d.ts +0 -7
- package/dist/esm/components/TablePagination/TablePaginationCard.js +0 -1
- package/dist/esm/components/TablePagination/index.d.ts +0 -2
- package/dist/esm/components/WhatsAppTextEditor/CustomEditor.styled.d.ts +0 -15
- package/dist/esm/components/WhatsAppTextEditor/CustomEditor.styled.js +0 -1
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.d.ts +0 -40
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditor.js +0 -1
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.d.ts +0 -14
- package/dist/esm/components/WhatsAppTextEditor/WhatsAppTextEditorHeader.js +0 -1
- package/dist/esm/components/WhatsAppTextEditor/index.d.ts +0 -2
- package/dist/esm/components/accordion/Accordion.d.ts +0 -9
- package/dist/esm/components/accordion/Accordion.js +0 -1
- package/dist/esm/components/accordion/Accordion.style.d.ts +0 -6
- package/dist/esm/components/accordion/Accordion.style.js +0 -28
- package/dist/esm/components/accordion/AccordionArrow.d.ts +0 -3
- package/dist/esm/components/accordion/AccordionArrow.js +0 -1
- package/dist/esm/components/accordion/index.d.ts +0 -1
- package/dist/esm/components/alerts/Alert.d.ts +0 -12
- package/dist/esm/components/alerts/Alert.js +0 -1
- package/dist/esm/components/alerts/Alert.styled.d.ts +0 -4
- package/dist/esm/components/alerts/Alert.styled.js +0 -8
- package/dist/esm/components/alerts/AlertHelper.d.ts +0 -24
- package/dist/esm/components/alerts/AlertHelper.js +0 -1
- package/dist/esm/components/alerts/index.d.ts +0 -2
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.d.ts +0 -10
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsMetric.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +0 -17
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/HorizontalBarGraph/HorizontalGraph.styles.js +0 -4
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.d.ts +0 -6
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Legend/Legend.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.d.ts +0 -25
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.d.ts +0 -17
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/LineChart/LineChart.styled.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChart.js +0 -15
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.d.ts +0 -4
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartInputData.d.ts +0 -10
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.styles.js +0 -5
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.styles.d.ts +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraph.styles.js +0 -4
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarAndLinearGraph/VerticalBarAndLinearGraphModel.d.ts +0 -20
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.d.ts +0 -3
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/VerticalBarGraph/VerticalGraph.styles.js +0 -4
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.d.ts +0 -27
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMap.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.d.ts +0 -9
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/heatmap/HeatMapStyled.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.d.ts +0 -7
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/Chip.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.d.ts +0 -6
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/HorinzontalBar.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.d.ts +0 -27
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.d.ts +0 -25
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/LinearChipGroupedChart.styled.js +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/linearChipGroupedChart/index.d.ts +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.d.ts +0 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/utils/calcPercentage.js +0 -1
- package/dist/esm/components/bik-layout/BikHeader.d.ts +0 -9
- package/dist/esm/components/bik-layout/BikHeader.js +0 -1
- package/dist/esm/components/bik-layout/BikLayout.d.ts +0 -15
- package/dist/esm/components/bik-layout/BikLayout.js +0 -1
- package/dist/esm/components/bik-layout/BikProfile.d.ts +0 -12
- package/dist/esm/components/bik-layout/BikProfile.js +0 -1
- package/dist/esm/components/bik-layout/BikSidebar.d.ts +0 -23
- package/dist/esm/components/bik-layout/BikSidebar.js +0 -1
- package/dist/esm/components/bik-layout/CommonStyles.d.ts +0 -93
- package/dist/esm/components/bik-layout/CommonStyles.js +0 -1
- package/dist/esm/components/bik-layout/FeatureModal.d.ts +0 -9
- package/dist/esm/components/bik-layout/FeatureModal.js +0 -1
- package/dist/esm/components/bik-layout/MockMenus.d.ts +0 -61
- package/dist/esm/components/bik-layout/PageLoader.d.ts +0 -6
- package/dist/esm/components/bik-layout/PageLoader.js +0 -1
- package/dist/esm/components/bik-layout/SidebarSkeleton.d.ts +0 -9
- package/dist/esm/components/bik-layout/SidebarSkeleton.js +0 -1
- package/dist/esm/components/bik-layout/SidebarStyles.d.ts +0 -21
- package/dist/esm/components/bik-layout/SidebarStyles.js +0 -1
- package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +0 -22
- package/dist/esm/components/bik-layout/SimpleSidebar.js +0 -1
- package/dist/esm/components/bik-layout/index.d.ts +0 -7
- package/dist/esm/components/buttonGroup/ButtonGroup.d.ts +0 -19
- package/dist/esm/components/buttonGroup/ButtonGroup.js +0 -1
- package/dist/esm/components/buttonGroup/ButtonGroupStyle.d.ts +0 -10
- package/dist/esm/components/buttonGroup/ButtonGroupStyle.js +0 -32
- package/dist/esm/components/buttonGroup/index.d.ts +0 -1
- package/dist/esm/components/card-selection-modal/CardSelectionModal.d.ts +0 -17
- package/dist/esm/components/card-selection-modal/CardSelectionModal.js +0 -1
- package/dist/esm/components/card-selection-modal/CardSelectionModal.styled.d.ts +0 -9
- package/dist/esm/components/card-selection-modal/CardSelectionModal.styled.js +0 -1
- package/dist/esm/components/card-selection-modal/index.d.ts +0 -1
- package/dist/esm/components/carousel/carousel.d.ts +0 -3
- package/dist/esm/components/carousel/carousel.js +0 -22
- package/dist/esm/components/carousel/index.d.ts +0 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.d.ts +0 -6
- package/dist/esm/components/carousel-secondary/CarouselSecondary.js +0 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.style.d.ts +0 -29
- package/dist/esm/components/carousel-secondary/CarouselSecondary.style.js +0 -1
- package/dist/esm/components/carousel-secondary/index.d.ts +0 -1
- package/dist/esm/components/colourInput/ColourInput.d.ts +0 -8
- package/dist/esm/components/colourInput/ColourInput.js +0 -1
- package/dist/esm/components/colourInput/ColourInput.styled.d.ts +0 -9
- package/dist/esm/components/colourInput/ColourInput.styled.js +0 -1
- package/dist/esm/components/colourInput/index.d.ts +0 -1
- package/dist/esm/components/country-code-picker/CountryCodePicker.d.ts +0 -11
- package/dist/esm/components/country-code-picker/CountryCodePicker.js +0 -1
- package/dist/esm/components/country-code-picker/CountryCodePicker.modal.d.ts +0 -6
- package/dist/esm/components/country-code-picker/CountryCodePicker.modal.js +0 -1
- package/dist/esm/components/country-code-picker/CountryCodePicker.styled.d.ts +0 -11
- package/dist/esm/components/country-code-picker/CountryCodePicker.styled.js +0 -1
- package/dist/esm/components/country-code-picker/index.d.ts +0 -2
- package/dist/esm/components/custom-date-time/CustomDateTime.d.ts +0 -11
- package/dist/esm/components/custom-date-time/CustomDateTime.js +0 -1
- package/dist/esm/components/custom-date-time/CustomDateTime.styled.d.ts +0 -5
- package/dist/esm/components/custom-date-time/CustomDateTime.styled.js +0 -1
- package/dist/esm/components/custom-date-time/DateSelector/DateSelector.d.ts +0 -8
- package/dist/esm/components/custom-date-time/DateSelector/DateSelector.js +0 -1
- package/dist/esm/components/custom-date-time/index.d.ts +0 -1
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.d.ts +0 -12
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +0 -1
- package/dist/esm/components/discount-modal/DiscountModal.d.ts +0 -21
- package/dist/esm/components/discount-modal/DiscountModal.js +0 -1
- package/dist/esm/components/discount-modal/DiscountModal.styled.d.ts +0 -19
- package/dist/esm/components/discount-modal/DiscountModal.styled.js +0 -1
- package/dist/esm/components/discount-modal/DiscountUtils.d.ts +0 -2
- package/dist/esm/components/discount-modal/DiscountUtils.js +0 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +0 -29
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +0 -1
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.d.ts +0 -10
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +0 -1
- package/dist/esm/components/discount-modal/index.d.ts +0 -3
- package/dist/esm/components/discount-modal/type.d.ts +0 -49
- package/dist/esm/components/discount-modal/type.js +0 -1
- package/dist/esm/components/dropdown/MenuItem/MenuItem.d.ts +0 -8
- package/dist/esm/components/dropdown/MenuItem/MenuItem.js +0 -5
- package/dist/esm/components/file-uploader/FileUploader.d.ts +0 -3
- package/dist/esm/components/file-uploader/FileUploader.js +0 -1
- package/dist/esm/components/file-uploader/FileUploaderStyle.d.ts +0 -7
- package/dist/esm/components/file-uploader/FileUploaderStyle.js +0 -166
- package/dist/esm/components/file-uploader/Models.d.ts +0 -34
- package/dist/esm/components/file-uploader/index.d.ts +0 -1
- package/dist/esm/components/file-uploader/useMockUrlUpload.d.ts +0 -8
- package/dist/esm/components/image-cropper/BikImageCropper.d.ts +0 -10
- package/dist/esm/components/image-cropper/BikImageCropper.js +0 -1
- package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.d.ts +0 -30
- package/dist/esm/components/image-cropper/BikImagePipeline/BikImagePipeline.js +0 -1
- package/dist/esm/components/image-cropper/index.d.ts +0 -2
- package/dist/esm/components/image-cropper/useMockFileUpload.d.ts +0 -8
- package/dist/esm/components/input/Input-helper.d.ts +0 -6
- package/dist/esm/components/input/Input-helper.js +0 -1
- package/dist/esm/components/plans/DurationSelector.d.ts +0 -9
- package/dist/esm/components/plans/DurationSelectorStyles.d.ts +0 -5
- package/dist/esm/components/plans/SubscriptionPlan.d.ts +0 -30
- package/dist/esm/components/plans/SubscriptionPlan.js +0 -1
- package/dist/esm/components/plans/SubscriptionPlanSelector.d.ts +0 -13
- package/dist/esm/components/plans/SubscriptionPlanSelector.js +0 -1
- package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +0 -7
- package/dist/esm/components/plans/SubscriptionPlanStyled.js +0 -1
- package/dist/esm/components/plans/index.d.ts +0 -2
- package/dist/esm/components/product-picker/ProductPicker.styled.d.ts +0 -9
- package/dist/esm/components/product-picker/ProductPicker.styled.js +0 -1
- package/dist/esm/components/product-picker/ProductPickerModal.d.ts +0 -4
- package/dist/esm/components/product-picker/ProductPickerModal.js +0 -1
- package/dist/esm/components/product-picker/index.d.ts +0 -1
- package/dist/esm/components/product-picker/type.d.ts +0 -57
- package/dist/esm/components/product-picker-v2/collectionScreen.d.ts +0 -23
- package/dist/esm/components/product-picker-v2/collectionScreen.js +0 -1
- package/dist/esm/components/product-picker-v2/index.d.ts +0 -1
- package/dist/esm/components/product-picker-v2/modal.d.ts +0 -47
- package/dist/esm/components/product-picker-v2/modal.js +0 -1
- package/dist/esm/components/product-picker-v2/productScreen.d.ts +0 -39
- package/dist/esm/components/product-picker-v2/productScreen.js +0 -1
- package/dist/esm/components/product-picker-v2/reducers.d.ts +0 -17
- package/dist/esm/components/product-picker-v2/reducers.js +0 -1
- package/dist/esm/components/product-picker-v2/selectedScreen.d.ts +0 -14
- package/dist/esm/components/product-picker-v2/selectedScreen.js +0 -1
- package/dist/esm/components/product-picker-v2/style.d.ts +0 -14
- package/dist/esm/components/product-picker-v2/style.js +0 -69
- package/dist/esm/components/searchBar/index.d.ts +0 -1
- package/dist/esm/components/searchBar/searchBar.d.ts +0 -13
- package/dist/esm/components/searchBar/searchBar.js +0 -1
- package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.d.ts +0 -13
- package/dist/esm/components/shimmer/ShimmerComponent/BikShimmer.js +0 -1
- package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.d.ts +0 -7
- package/dist/esm/components/shimmer/ShimmerComponent/ShimmerStyled.js +0 -9
- package/dist/esm/components/shimmer/index.d.ts +0 -1
- package/dist/esm/components/shimmer-image/ShimmerImage.d.ts +0 -10
- package/dist/esm/components/shimmer-image/ShimmerImage.js +0 -1
- package/dist/esm/components/shimmer-image/ShimmerImage.stories.d.ts +0 -6
- package/dist/esm/components/shimmer-image/index.d.ts +0 -1
- package/dist/esm/components/states/StateComponent.js +0 -1
- package/dist/esm/components/states/StateComponent.styled.js +0 -26
- package/dist/esm/components/states-modal/DeleteConfirmationModal.d.ts +0 -9
- package/dist/esm/components/states-modal/DeleteConfirmationModal.js +0 -1
- package/dist/esm/components/states-modal/StateModalComponent.js +0 -1
- package/dist/esm/components/switch/Switch.js +0 -1
- package/dist/esm/components/switch/index.d.ts +0 -1
- package/dist/esm/components/tabs/Tabs.d.ts +0 -4
- package/dist/esm/components/tabs/Tabs.js +0 -1
- package/dist/esm/components/tabs/Tabs.model.d.ts +0 -47
- package/dist/esm/components/tabs/Tabs.styles.d.ts +0 -38
- package/dist/esm/components/tabs/Tabs.styles.js +0 -1
- package/dist/esm/components/tabs/index.d.ts +0 -1
- package/dist/esm/components/template-context-mapper/utils/getFormattedMonthDate.d.ts +0 -1
- package/dist/esm/components/template-context-mapper/utils/getFormattedMonthDate.js +0 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.d.ts +0 -3
- package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +0 -19
- package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.d.ts +0 -3
- package/dist/esm/components/template-preview/WhatsApp/WhatsAppLikePreviewV2.js +0 -12
- package/dist/esm/components/template-preview/helpers/VariableEditorHelper.d.ts +0 -7
- package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +0 -1
- package/dist/esm/helpers/BaseWhatsappContentLang.helper.d.ts +0 -41
- package/dist/esm/helpers/BaseWhatsappContentLang.helper.js +0 -1
- package/dist/esm/helpers/index.d.ts +0 -1
- package/dist/esm/node_modules/lodash.debounce/index.js +0 -1
- package/dist/esm/utils/isAlphanumeric.d.ts +0 -1
- package/dist/esm/utils/isAlphanumeric.js +0 -1
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { CompressImageOptions } from "../../image-compress";
|
|
3
|
-
import { BikImageCropperProps } from "..";
|
|
4
|
-
/**
|
|
5
|
-
* Todos
|
|
6
|
-
* - Add option to pass https url in the src / edit an image
|
|
7
|
-
*/
|
|
8
|
-
export interface BikImagePipelineProps {
|
|
9
|
-
cropOptions?: Partial<BikImageCropperProps>;
|
|
10
|
-
compressionOptions?: CompressImageOptions;
|
|
11
|
-
currentImage: {
|
|
12
|
-
src?: string;
|
|
13
|
-
};
|
|
14
|
-
options: {
|
|
15
|
-
upload: boolean;
|
|
16
|
-
crop?: boolean;
|
|
17
|
-
compress?: boolean;
|
|
18
|
-
uploadToFirestorage?: boolean;
|
|
19
|
-
};
|
|
20
|
-
onCancel: () => void;
|
|
21
|
-
onFinish: (base64String: string, file?: File, url?: string) => void;
|
|
22
|
-
fileUploadOptions?: {
|
|
23
|
-
path: string;
|
|
24
|
-
uploadProgress: number;
|
|
25
|
-
uploadFile: (file: File, path: string) => Promise<string>;
|
|
26
|
-
error?: string;
|
|
27
|
-
success?: boolean;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
export declare const BikImagePipeline: ({ cropOptions, compressionOptions, currentImage, options, onFinish, onCancel, fileUploadOptions, }: BikImagePipelineProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("react"),s=require("../../image-compress/ImageCompress.js"),r=require("../../states/StateComponent.js"),t=require("../../states-modal/StateModalComponent.js");require("../../modals/styledModal.js");var a=require("../BikImageCropper.js");exports.BikImagePipeline=i=>{let{cropOptions:n,compressionOptions:l,currentImage:p,options:c,onFinish:u,onCancel:d,fileUploadOptions:m}=i;const g=o.useRef(null),[h,j]=o.useState(),[C,f]=o.useState(p),[x,I]=o.useState(!1);o.useEffect((()=>{c.upload?(j("upload"),setTimeout((()=>{F()}),500)):c.crop?j("crop"):c.compress?j("compress"):c.uploadToFirestorage?j("cloud-upload"):I(!0)}),[c.upload,c.crop,c.compress,c.uploadToFirestorage]);const S=o.useCallback(((e,o)=>{if(!c.uploadToFirestorage)return u(e,o),void I(!0);j("cloud-upload"),m&&m.uploadFile(o,m.path).then((s=>{u(e,o,s),I(!0)})).catch((e=>{console.log("starting err process with ")}))}),[]),v=e=>{e||d();const o=s.ImageService.base64ToImage(e);c.compress?(j("compress"),s.ImageService.compressImage(o,l).then((e=>{if(!e)return I(!0),void d();S(e.base64,e.compressedFile)}))):S(e,o)},F=()=>{g.current.click()};return x?e.jsx(e.Fragment,{}):"cloud-upload"===h?!m||m.success?e.jsx(e.Fragment,{}):m.error?e.jsx("div",{children:e.jsx(t.StateModalComponent,{states:r.StateInterface.ERROR,heading:"Error while uploading",subline:"Please check your image and try again",isButtonEnabled:!1,width:300,onClose:()=>{I(!0),d()}})}):e.jsx("div",{children:e.jsx(t.StateModalComponent,{states:r.StateInterface.LOADING,heading:"Uploading your photo",subline:"Please wait while we upload your photo",isButtonEnabled:!1,width:300})}):e.jsxs(e.Fragment,{children:[c.upload&&e.jsx("input",{ref:g,type:"file",accept:"image/*",style:{display:"none"},onChange:e=>{const o=e.target.files[0],s=new FileReader;s.onload=()=>{var e;f({src:s.result}),e=s.result,c.crop?j("crop"):v(e)},o&&s.readAsDataURL(o)}}),"crop"===h&&e.jsx(a.BikImageCropper,{src:C.src,onCropComplete:e=>{f({src:e}),v(e)},aspectRatio:n.aspectRatio,onCancel:d})]})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("phone");exports.isFunction=e=>e&&"function"==typeof e,exports.validateInput=function(n,r){let t,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const a=["phonenumber","zip","number"].includes(r),u=a?n?Number(n):null:n;if(null==u||""===u)return[!0,""];if(a&&String(u).length&&(i.min&&u<i.min||i.max&&u>i.max))return[!1,`Enter valid number between ${i.min} and ${i.max}`];if("email"===r)return t=/(.+)@(.+){2,}\.(.+){2,}/,u.match(t)?[!0,""]:[!1,"Enter a valid email id"];if("url"===r)return t=/^https?:\/\/(?:www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_\+.~#?&\/=]*)$/,u.match(t)?[!0,""]:[!1,"Enter a valid url"];if("number"===r)return u>=0?[!0,""]:[!1,"Enter a valid number"];if("zip"===r)return 6===String(u).trim().length?[!0,""]:[!1,"Enter a valid zip code"];if("phonenumber"===r){const{isValid:n}=e.phone("+"+String(u));return n?[!0,""]:[!1,"Enter a valid phonenumber"]}return(null==u?void 0:u.trim().length)>0?[!0,""]:[!1,"Enter a valid data"]};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
interface OwnProps {
|
|
3
|
-
isMonthlySelected: boolean;
|
|
4
|
-
yearlyDiscount: string;
|
|
5
|
-
onToggle: (isMonthlySelected: boolean) => void;
|
|
6
|
-
}
|
|
7
|
-
type Props = OwnProps;
|
|
8
|
-
declare const DurationSelector: FunctionComponent<Props>;
|
|
9
|
-
export default DurationSelector;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const DurationSelectorStyled: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
interface PlanPrice {
|
|
3
|
-
price: number;
|
|
4
|
-
discount: number;
|
|
5
|
-
}
|
|
6
|
-
interface PlanFeature {
|
|
7
|
-
detail: string;
|
|
8
|
-
}
|
|
9
|
-
export interface SubscriptionPlanProps {
|
|
10
|
-
code: string;
|
|
11
|
-
isMostPopular?: boolean;
|
|
12
|
-
isDisabled?: boolean;
|
|
13
|
-
isSelected?: boolean;
|
|
14
|
-
planName: string;
|
|
15
|
-
monthlyPlan: PlanPrice;
|
|
16
|
-
showTrialOptions: boolean;
|
|
17
|
-
yearlyPlan: PlanPrice;
|
|
18
|
-
features: PlanFeature[];
|
|
19
|
-
showMonthly: boolean;
|
|
20
|
-
planDescription: string;
|
|
21
|
-
planDescriptionDiscount: string;
|
|
22
|
-
onPlanSelect: (code: string) => void;
|
|
23
|
-
bottomDescription?: string;
|
|
24
|
-
freeTrialMessages?: string;
|
|
25
|
-
extraBlockMessage?: string;
|
|
26
|
-
isLoading?: boolean;
|
|
27
|
-
}
|
|
28
|
-
type Props = SubscriptionPlanProps;
|
|
29
|
-
export declare const SubscriptionPlan: FunctionComponent<Props>;
|
|
30
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../assets/icons/check.svg.js"),t=require("../button/Button.js"),i=require("./SubscriptionPlanStyled.js"),a=require("../TypographyStyle.js"),n=require("../../constants/Theme.js");exports.SubscriptionPlan=r=>{const c=r.showMonthly?r.monthlyPlan:r.yearlyPlan,l=!r.isDisabled&&r.isMostPopular;return e.jsxs(i.SubscriptionPlanStyled,Object.assign({isSelected:r.isSelected||!1,style:{marginTop:l?0:24}},{children:[l&&e.jsx("div",Object.assign({className:"most-popular"},{children:e.jsx(a.Caption,Object.assign({className:"text"},{children:"Most popular ⭐️"}))})),e.jsxs("div",Object.assign({className:`box ${r.isSelected?"selected":""} ${r.isDisabled?"disabled":""} ${l?"":"rounded-corners"}\n\t\t\t\t`},{children:[e.jsxs("div",{children:[e.jsx(a.TitleRegular,Object.assign({style:{color:n.COLORS.content.secondary,marginBottom:4}},{children:r.planName})),e.jsxs("div",Object.assign({className:"price-block"},{children:[e.jsxs(a.TitleLarge,Object.assign({style:{color:n.COLORS.content.primary}},{children:["$ ",c.price]})),e.jsxs(a.BodyPrimary,Object.assign({style:{color:n.COLORS.content.secondary,marginLeft:4}},{children:["/ ",r.showMonthly?"month":"year"]}))]})),e.jsxs("div",Object.assign({className:"per-message-price"},{children:[e.jsx(a.BodyCaption,Object.assign({style:{color:n.COLORS.content.secondary}},{children:r.planDescription})),e.jsx(a.BodyCaption,Object.assign({style:{color:n.COLORS.background.positive.vibrant,marginLeft:4}},{children:r.planDescriptionDiscount}))]})),r.showTrialOptions&&e.jsxs(a.Caption,Object.assign({className:"trial "+(r.isSelected?"selected":"")},{children:["7 day free trial with ",r.freeTrialMessages," messages"]})),r.extraBlockMessage&&e.jsx(a.Caption,Object.assign({className:"trial "+(r.isSelected?"selected":"")},{children:r.extraBlockMessage})),e.jsx("div",Object.assign({className:"features"},{children:r.features.map(((t,i)=>e.jsxs("div",Object.assign({className:"feature"},{children:[e.jsx(s.default,{height:16,width:16,color:n.COLORS.content.primary}),e.jsx(a.BodyPrimary,Object.assign({className:"feature-text"},{children:t.detail}),i)]}),t.detail)))}))]}),e.jsx("div",Object.assign({className:"button-box"},{children:r.isLoading?e.jsx(t.Button,{isLoading:!0,buttonType:"primary",buttonText:"Selected Plan",size:"medium",matchParentWidth:!0}):e.jsxs(e.Fragment,{children:[r.isSelected&&e.jsx(t.Button,{LeadingIcon:s.default,buttonType:"tertiary",size:"medium",matchParentWidth:!0,buttonText:"Selected Plan",disabled:!1}),r.isDisabled&&e.jsx(t.Button,{disabled:!0,buttonType:"primary",size:"medium",matchParentWidth:!0,buttonText:"Choose plan"}),!r.isSelected&&!r.isDisabled&&e.jsx(t.Button,{buttonType:"primary",size:"medium",onClick:()=>r.onPlanSelect(r.code),matchParentWidth:!0,buttonText:"Choose plan"})]})}))]})),e.jsx("div",Object.assign({className:`plan-bottom-information\n\t\t\t\t\t${r.isDisabled?"disabled":""}\n\t\t\t\t\t${r.isSelected?"selected":""}\n\t\t\t\t`},{children:e.jsx(a.Caption,Object.assign({className:"text",style:{color:n.COLORS.background.inverse}},{children:r.bottomDescription}))}))]}))};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
import { SubscriptionPlanProps } from "./SubscriptionPlan";
|
|
3
|
-
type Props = {
|
|
4
|
-
plans: SubscriptionPlanProps[];
|
|
5
|
-
onPlanSelect: (code: string) => void;
|
|
6
|
-
onClose: () => void;
|
|
7
|
-
subHeader?: string;
|
|
8
|
-
warningDescription?: string;
|
|
9
|
-
showTrialOptions?: boolean;
|
|
10
|
-
header?: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const SubscriptionPlanSelector: FunctionComponent<Props>;
|
|
13
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),l=require("react"),b=require("react/jsx-runtime"),I=require("../modals/styledModal.js"),e=require("./SubscriptionPlan.js"),i=require("../../constants/Theme.js");function n(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}var d=n(c);const g=d.default("div","production"===process.env.NODE_ENV?{target:"e1s1pw0f1"}:{target:"e1s1pw0f1",label:"PlanWrapper"})("production"===process.env.NODE_ENV?{name:"z72o5x",styles:"display:flex;column-gap:22px;align-items:stretch;padding:24px"}:{name:"z72o5x",styles:"display:flex;column-gap:22px;align-items:stretch;padding:24px",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvblBsYW5TZWxlY3Rvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBTStCIiwiZmlsZSI6IlN1YnNjcmlwdGlvblBsYW5TZWxlY3Rvci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjcmVhdGVFbGVtZW50IGFzIF9jcmVhdGVFbGVtZW50IH0gZnJvbSBcInJlYWN0XCI7XHJcbmltcG9ydCB7IGpzeCBhcyBfanN4LCBqc3hzIGFzIF9qc3hzIH0gZnJvbSBcInJlYWN0L2pzeC1ydW50aW1lXCI7XHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgU3R5bGVkTW9kYWwgfSBmcm9tIFwiLi4vbW9kYWxzXCI7XHJcbmltcG9ydCB7IFN1YnNjcmlwdGlvblBsYW4sIH0gZnJvbSBcIi4vU3Vic2NyaXB0aW9uUGxhblwiO1xyXG5pbXBvcnQgeyBDT0xPUlMgfSBmcm9tIFwiLi4vLi4vY29uc3RhbnRzL1RoZW1lXCI7XHJcbmNvbnN0IFBsYW5XcmFwcGVyID0gc3R5bGVkLmRpdiBgXG5cdGRpc3BsYXk6IGZsZXg7XG5cdGNvbHVtbi1nYXA6IDIycHg7XG5cdGFsaWduLWl0ZW1zOiBzdHJldGNoO1xuXHRwYWRkaW5nOiAyNHB4O1xuYDtcclxuY29uc3QgV2FybmluZyA9IHN0eWxlZC5kaXYgYFxuXHRjb2xvcjogJHtDT0xPUlMuY29udGVudC5uZWdhdGl2ZX07XG5cdHBhZGRpbmc6IDBweCAyNHB4O1xuYDtcclxuLy8gU2VsZWN0ZWQgcGxhbiB0byBoYXZlIGNob3NlbiBwbGFuIG5vdCBzZWxlY3RhYmxlXHJcbmV4cG9ydCBjb25zdCBTdWJzY3JpcHRpb25QbGFuU2VsZWN0b3IgPSAocHJvcHMpID0+IHtcclxuICAgIHJldHVybiAoX2pzeHMoU3R5bGVkTW9kYWwsIE9iamVjdC5hc3NpZ24oeyBjZW50cmFsQ29udGFpbmVyU3R5bGVzOiB7XHJcbiAgICAgICAgICAgIHdpZHRoOiAxMDAwLFxyXG4gICAgICAgIH0sIG9wZW46IHRydWUsIGhlYWRpbmdUaXRsZTogcHJvcHMuaGVhZGVyIHx8ICdTZWxlY3QgYSBwbGFuIHRvIHByb2NlZWQnLCBoZWFkaW5nU3VidGl0bGU6IHByb3BzLnN1YkhlYWRlciB8fCAnJywgY2xvc2VPbk91dHNpZGVDbGljazogdHJ1ZSwgb25DbG9zZTogcHJvcHMub25DbG9zZSB9LCB7IGNoaWxkcmVuOiBbcHJvcHMud2FybmluZ0Rlc2NyaXB0aW9uICYmIChfanN4KFdhcm5pbmcsIHsgY2hpbGRyZW46IHByb3BzLndhcm5pbmdEZXNjcmlwdGlvbiB9KSksIF9qc3goUGxhbldyYXBwZXIsIHsgY2hpbGRyZW46IHByb3BzLnBsYW5zLm1hcCgocHJvcCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAoX2NyZWF0ZUVsZW1lbnQoU3Vic2NyaXB0aW9uUGxhbiwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcCwgeyBzaG93VHJpYWxPcHRpb25zOiBwcm9wcy5zaG93VHJpYWxPcHRpb25zIHx8IGZhbHNlLCBvblBsYW5TZWxlY3Q6IHByb3BzLm9uUGxhblNlbGVjdCwga2V5OiBwcm9wLnBsYW5OYW1lLCBzaG93TW9udGhseTogdHJ1ZSB9KSkpO1xyXG4gICAgICAgICAgICAgICAgfSkgfSldIH0pKSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVN1YnNjcmlwdGlvblBsYW5TZWxlY3Rvci5qcy5tYXAiXX0= */",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)."}}),s=d.default("div","production"===process.env.NODE_ENV?{target:"e1s1pw0f0"}:{target:"e1s1pw0f0",label:"Warning"})("color:",i.COLORS.content.negative,";padding:0px 24px;"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvblBsYW5TZWxlY3Rvci50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBWTJCIiwiZmlsZSI6IlN1YnNjcmlwdGlvblBsYW5TZWxlY3Rvci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjcmVhdGVFbGVtZW50IGFzIF9jcmVhdGVFbGVtZW50IH0gZnJvbSBcInJlYWN0XCI7XHJcbmltcG9ydCB7IGpzeCBhcyBfanN4LCBqc3hzIGFzIF9qc3hzIH0gZnJvbSBcInJlYWN0L2pzeC1ydW50aW1lXCI7XHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgU3R5bGVkTW9kYWwgfSBmcm9tIFwiLi4vbW9kYWxzXCI7XHJcbmltcG9ydCB7IFN1YnNjcmlwdGlvblBsYW4sIH0gZnJvbSBcIi4vU3Vic2NyaXB0aW9uUGxhblwiO1xyXG5pbXBvcnQgeyBDT0xPUlMgfSBmcm9tIFwiLi4vLi4vY29uc3RhbnRzL1RoZW1lXCI7XHJcbmNvbnN0IFBsYW5XcmFwcGVyID0gc3R5bGVkLmRpdiBgXG5cdGRpc3BsYXk6IGZsZXg7XG5cdGNvbHVtbi1nYXA6IDIycHg7XG5cdGFsaWduLWl0ZW1zOiBzdHJldGNoO1xuXHRwYWRkaW5nOiAyNHB4O1xuYDtcclxuY29uc3QgV2FybmluZyA9IHN0eWxlZC5kaXYgYFxuXHRjb2xvcjogJHtDT0xPUlMuY29udGVudC5uZWdhdGl2ZX07XG5cdHBhZGRpbmc6IDBweCAyNHB4O1xuYDtcclxuLy8gU2VsZWN0ZWQgcGxhbiB0byBoYXZlIGNob3NlbiBwbGFuIG5vdCBzZWxlY3RhYmxlXHJcbmV4cG9ydCBjb25zdCBTdWJzY3JpcHRpb25QbGFuU2VsZWN0b3IgPSAocHJvcHMpID0+IHtcclxuICAgIHJldHVybiAoX2pzeHMoU3R5bGVkTW9kYWwsIE9iamVjdC5hc3NpZ24oeyBjZW50cmFsQ29udGFpbmVyU3R5bGVzOiB7XHJcbiAgICAgICAgICAgIHdpZHRoOiAxMDAwLFxyXG4gICAgICAgIH0sIG9wZW46IHRydWUsIGhlYWRpbmdUaXRsZTogcHJvcHMuaGVhZGVyIHx8ICdTZWxlY3QgYSBwbGFuIHRvIHByb2NlZWQnLCBoZWFkaW5nU3VidGl0bGU6IHByb3BzLnN1YkhlYWRlciB8fCAnJywgY2xvc2VPbk91dHNpZGVDbGljazogdHJ1ZSwgb25DbG9zZTogcHJvcHMub25DbG9zZSB9LCB7IGNoaWxkcmVuOiBbcHJvcHMud2FybmluZ0Rlc2NyaXB0aW9uICYmIChfanN4KFdhcm5pbmcsIHsgY2hpbGRyZW46IHByb3BzLndhcm5pbmdEZXNjcmlwdGlvbiB9KSksIF9qc3goUGxhbldyYXBwZXIsIHsgY2hpbGRyZW46IHByb3BzLnBsYW5zLm1hcCgocHJvcCkgPT4ge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiAoX2NyZWF0ZUVsZW1lbnQoU3Vic2NyaXB0aW9uUGxhbiwgT2JqZWN0LmFzc2lnbih7fSwgcHJvcCwgeyBzaG93VHJpYWxPcHRpb25zOiBwcm9wcy5zaG93VHJpYWxPcHRpb25zIHx8IGZhbHNlLCBvblBsYW5TZWxlY3Q6IHByb3BzLm9uUGxhblNlbGVjdCwga2V5OiBwcm9wLnBsYW5OYW1lLCBzaG93TW9udGhseTogdHJ1ZSB9KSkpO1xyXG4gICAgICAgICAgICAgICAgfSkgfSldIH0pKSk7XHJcbn07XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVN1YnNjcmlwdGlvblBsYW5TZWxlY3Rvci5qcy5tYXAiXX0= */"));exports.SubscriptionPlanSelector=c=>b.jsxs(I.StyledModal,Object.assign({centralContainerStyles:{width:1e3},open:!0,headingTitle:c.header||"Select a plan to proceed",headingSubtitle:c.subHeader||"",closeOnOutsideClick:!0,onClose:c.onClose},{children:[c.warningDescription&&b.jsx(s,{children:c.warningDescription}),b.jsx(g,{children:c.plans.map((b=>l.createElement(e.SubscriptionPlan,Object.assign({},b,{showTrialOptions:c.showTrialOptions||!1,onPlanSelect:c.onPlanSelect,key:b.planName,showMonthly:!0}))))})]}));
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const SubscriptionPlanStyled: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
isSelected: boolean;
|
|
7
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),d=require("../../constants/Theme.js");function b(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}const t=b(c).default("div","production"===process.env.NODE_ENV?{target:"e4062250"}:{target:"e4062250",label:"SubscriptionPlanStyled"})("border:1px solid ",d.COLORS.stroke.primary,";border:1px solid ",(c=>c.isSelected?d.COLORS.text.altSecondary:d.COLORS.stroke.primary),";box-shadow:0px 2px 8px rgba(0, 0, 0, 0.12);border-radius:4px;.box{height:400px;padding:24px;background-color:",d.COLORS.surface.standard,";display:flex;flex-direction:column;.button-box{margin-top:auto;display:flex;}}.box.selected{background-color:",d.COLORS.background.brandLight,";}.rounded-corners{border-top-left-radius:4px;border-top-right-radius:4px;}width:100%;.most-popular{background:linear-gradient(90.05deg, #743979 1.22%, #526dca 99.95%),#4b1583;padding:4px;border-top-left-radius:4px;border-top-right-radius:4px;display:flex;justify-content:center;align-items:center;.text{color:",d.COLORS.surface.standard,";}}.trial{margin-top:16px;margin-bottom:12px;padding:4px 8px;border-radius:4px;color:",d.COLORS.content.secondary,";background-color:",d.COLORS.surface.hovered,";}.trial.selected{background-color:",d.COLORS.surface.standard,";}.feature{display:flex;align-items:center;margin-top:12px;.feature-text{margin-left:12px;color:",d.COLORS.content.secondary,";}}.price-block{display:flex;margin-bottom:4px;align-items:center;}.per-message-price{display:flex;}.plan-bottom-information{margin-top:auto;text-align:center;background:",d.COLORS.background.brandLight,";padding:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;.text{color:",d.COLORS.background.inverse,";}}.disabled{*{color:",d.COLORS.content.inactive,"!important;}}.plan-bottom-information.disabled{background:",d.COLORS.background.base,";}.plan-bottom-information.selected{background:",d.COLORS.surface.standard,";color:",d.COLORS.content.placeholder,";}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvblBsYW5TdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVpRCIsImZpbGUiOiJTdWJzY3JpcHRpb25QbGFuU3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgQ09MT1JTIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5leHBvcnQgY29uc3QgU3Vic2NyaXB0aW9uUGxhblN0eWxlZCA9IHN0eWxlZC5kaXYgYFxuXHRib3JkZXI6IDFweCBzb2xpZCAke0NPTE9SUy5zdHJva2UucHJpbWFyeX07XG5cdGJvcmRlcjogMXB4IHNvbGlkXG5cdFx0JHsocHJvcHMpID0+IHByb3BzLmlzU2VsZWN0ZWQgPyBDT0xPUlMudGV4dC5hbHRTZWNvbmRhcnkgOiBDT0xPUlMuc3Ryb2tlLnByaW1hcnl9O1xuXG5cdGJveC1zaGFkb3c6IDBweCAycHggOHB4IHJnYmEoMCwgMCwgMCwgMC4xMik7XG5cdGJvcmRlci1yYWRpdXM6IDRweDtcblxuXHQuYm94IHtcblx0XHRoZWlnaHQ6IDQwMHB4O1xuXHRcdHBhZGRpbmc6IDI0cHg7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogJHtDT0xPUlMuc3VyZmFjZS5zdGFuZGFyZH07XG5cdFx0ZGlzcGxheTogZmxleDtcblx0XHRmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuXG5cdFx0LmJ1dHRvbi1ib3gge1xuXHRcdFx0bWFyZ2luLXRvcDogYXV0bztcblx0XHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0fVxuXHR9XG5cblx0LmJveC5zZWxlY3RlZCB7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogJHtDT0xPUlMuYmFja2dyb3VuZC5icmFuZExpZ2h0fTtcblx0fVxuXG5cdC5yb3VuZGVkLWNvcm5lcnMge1xuXHRcdGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDRweDtcblx0XHRib3JkZXItdG9wLXJpZ2h0LXJhZGl1czogNHB4O1xuXHR9XG5cblx0d2lkdGg6IDEwMCU7XG5cblx0Lm1vc3QtcG9wdWxhciB7XG5cdFx0YmFja2dyb3VuZDogbGluZWFyLWdyYWRpZW50KDkwLjA1ZGVnLCAjNzQzOTc5IDEuMjIlLCAjNTI2ZGNhIDk5Ljk1JSksXG5cdFx0XHQjNGIxNTgzO1xuXHRcdHBhZGRpbmc6IDRweDtcblx0XHRib3JkZXItdG9wLWxlZnQtcmFkaXVzOiA0cHg7XG5cdFx0Ym9yZGVyLXRvcC1yaWdodC1yYWRpdXM6IDRweDtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXHRcdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cblx0XHQudGV4dCB7XG5cdFx0XHRjb2xvcjogJHtDT0xPUlMuc3VyZmFjZS5zdGFuZGFyZH07XG5cdFx0fVxuXHR9XG5cblx0LnRyaWFsIHtcblx0XHRtYXJnaW4tdG9wOiAxNnB4O1xuXHRcdG1hcmdpbi1ib3R0b206IDEycHg7XG5cdFx0cGFkZGluZzogNHB4IDhweDtcblx0XHRib3JkZXItcmFkaXVzOiA0cHg7XG5cdFx0Y29sb3I6ICR7Q09MT1JTLmNvbnRlbnQuc2Vjb25kYXJ5fTtcblx0XHRiYWNrZ3JvdW5kLWNvbG9yOiAke0NPTE9SUy5zdXJmYWNlLmhvdmVyZWR9O1xuXHR9XG5cblx0LnRyaWFsLnNlbGVjdGVkIHtcblx0XHRiYWNrZ3JvdW5kLWNvbG9yOiAke0NPTE9SUy5zdXJmYWNlLnN0YW5kYXJkfTtcblx0fVxuXG5cdC5mZWF0dXJlIHtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cblx0XHQuZmVhdHVyZS10ZXh0IHtcblx0XHRcdG1hcmdpbi1sZWZ0OiAxMnB4O1xuXHRcdFx0Y29sb3I6ICR7Q09MT1JTLmNvbnRlbnQuc2Vjb25kYXJ5fTtcblx0XHR9XG5cblx0XHRtYXJnaW4tdG9wOiAxMnB4O1xuXHR9XG5cblx0LnByaWNlLWJsb2NrIHtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdG1hcmdpbi1ib3R0b206IDRweDtcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHR9XG5cblx0LnBlci1tZXNzYWdlLXByaWNlIHtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHR9XG5cblx0LnBsYW4tYm90dG9tLWluZm9ybWF0aW9uIHtcblx0XHRtYXJnaW4tdG9wOiBhdXRvO1xuXHRcdHRleHQtYWxpZ246IGNlbnRlcjtcblx0XHRiYWNrZ3JvdW5kOiAke0NPTE9SUy5iYWNrZ3JvdW5kLmJyYW5kTGlnaHR9O1xuXHRcdHBhZGRpbmc6IDRweDtcblxuXHRcdC50ZXh0IHtcblx0XHRcdGNvbG9yOiAke0NPTE9SUy5iYWNrZ3JvdW5kLmludmVyc2V9O1xuXHRcdH1cblxuXHRcdGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDRweDtcblx0XHRib3JkZXItYm90dG9tLXJpZ2h0LXJhZGl1czogNHB4O1xuXHR9XG5cblx0LmRpc2FibGVkIHtcblx0XHQqIHtcblx0XHRcdGNvbG9yOiAke0NPTE9SUy5jb250ZW50LmluYWN0aXZlfSAhaW1wb3J0YW50O1xuXHRcdH1cblx0fVxuXG5cdC5wbGFuLWJvdHRvbS1pbmZvcm1hdGlvbi5kaXNhYmxlZCB7XG5cdFx0YmFja2dyb3VuZDogJHtDT0xPUlMuYmFja2dyb3VuZC5iYXNlfTtcblx0fVxuXG5cdC5wbGFuLWJvdHRvbS1pbmZvcm1hdGlvbi5zZWxlY3RlZCB7XG5cdFx0YmFja2dyb3VuZDogJHtDT0xPUlMuc3VyZmFjZS5zdGFuZGFyZH07XG5cdFx0Y29sb3I6ICR7Q09MT1JTLmNvbnRlbnQucGxhY2Vob2xkZXJ9O1xuXHR9XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1TdWJzY3JpcHRpb25QbGFuU3R5bGVkLmpzLm1hcCJdfQ== */"));exports.SubscriptionPlanStyled=t;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const StyledZeroState: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
6
|
-
export declare const StyledProductPickerContainer: import("@emotion/styled").StyledComponent<{
|
|
7
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),d=require("../../constants/Theme.js");function X(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}var l=X(c);const b=l.default("div","production"===process.env.NODE_ENV?{target:"e1h66m5c1"}:{target:"e1h66m5c1",label:"StyledZeroState"})("height:364px;background-color:",d.DEFAULT_THEME.colorsV2.surface.standard,";display:flex;align-items:center;justify-content:center;gap:8px;flex-direction:column;.icon__container{height:48px;width:48px;border-radius:50%;background-color:",d.DEFAULT_THEME.colorsV2.background.base,";display:flex;align-items:center;justify-content:center;}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2R1Y3RQaWNrZXIuc3R5bGVkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFMEMiLCJmaWxlIjoiUHJvZHVjdFBpY2tlci5zdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5pbXBvcnQgeyBERUZBVUxUX1RIRU1FIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5leHBvcnQgY29uc3QgU3R5bGVkWmVyb1N0YXRlID0gc3R5bGVkLmRpdiBgXG5cdGhlaWdodDogMzY0cHg7XG5cdGJhY2tncm91bmQtY29sb3I6ICR7REVGQVVMVF9USEVNRS5jb2xvcnNWMi5zdXJmYWNlLnN0YW5kYXJkfTtcblx0ZGlzcGxheTogZmxleDtcblx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0anVzdGlmeS1jb250ZW50OiBjZW50ZXI7XG5cdGdhcDogOHB4O1xuXHRmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuXG5cdC5pY29uX19jb250YWluZXIge1xuXHRcdGhlaWdodDogNDhweDtcblx0XHR3aWR0aDogNDhweDtcblx0XHRib3JkZXItcmFkaXVzOiA1MCU7XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogJHtERUZBVUxUX1RIRU1FLmNvbG9yc1YyLmJhY2tncm91bmQuYmFzZX07XG5cdFx0ZGlzcGxheTogZmxleDtcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRcdGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXHR9XG5gO1xyXG5leHBvcnQgY29uc3QgU3R5bGVkUHJvZHVjdFBpY2tlckNvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRtYXJnaW4tdG9wOiA4cHg7XG5cdC5wb3N0X193cmFwcGVyIHtcblx0XHRtYXJnaW4tdG9wOiA4cHg7XG5cdFx0Ym9yZGVyLXRvcDogMXB4IHNvbGlkICR7REVGQVVMVF9USEVNRS5jb2xvcnNWMi5zdHJva2UucHJpbWFyeX07XG5cdFx0YmFja2dyb3VuZC1jb2xvcjogJHtERUZBVUxUX1RIRU1FLmNvbG9yc1YyLmJhY2tncm91bmQud2FybmluZy5saWdodH07XG5cdFx0cGFkZGluZzogMTJweCAxNnB4O1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0XHRnYXA6IDE2cHg7XG5cdH1cblxuXHQucG9zdF9fdGh1bWJuYWlsIHtcblx0XHRoZWlnaHQ6IDY4cHg7XG5cdFx0d2lkdGg6IDY4cHg7XG5cdFx0b2JqZWN0LWZpdDogY292ZXI7XG5cdFx0Ym9yZGVyLXJhZGl1czogNHB4O1xuXHR9XG5cdC5wb3N0X19pbmZvLXdyYXBwZXIge1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0Z2FwOiA4cHg7XG5cdFx0ZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblx0XHR3aWR0aDogMzUwcHg7XG5cdH1cblx0LmxvYWRlcl9fd3JhcHBlciB7XG5cdFx0aGVpZ2h0OiAzNTBweDtcblx0XHR3aWR0aDogMTAwJTtcblx0XHRtYXJnaW4tdG9wOiA0cHg7XG5cdFx0ZGlzcGxheTogZmxleDtcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRcdGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXHR9XG5cdC5wcm9kdWN0X193cmFwcGVyIHtcblx0XHRwYWRkaW5nOiAxMnB4O1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0ZmxleC1kaXJlY3Rpb246IHJvdztcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRcdGdhcDogMTlweDtcblx0XHRib3JkZXItYm90dG9tOiAxcHggc29saWQgJHtERUZBVUxUX1RIRU1FLmNvbG9yc1YyLnN0cm9rZS5wcmltYXJ5fTtcblx0fVxuXHQucHJvZHVjdF9faW5mby13cmFwcGVyIHtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdGdhcDogMTZweDtcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRcdG9yZGVyOiAyO1xuXHR9XG5cdC5wcm9kdWN0X19pbWFnZSB7XG5cdFx0aGVpZ2h0OiA0MHB4O1xuXHRcdHdpZHRoOiA0MHB4O1xuXHRcdG9iamVjdC1maXQ6IGNvdmVyO1xuXHRcdGJvcmRlci1yYWRpdXM6IDRweDtcblx0fVxuYDtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJvZHVjdFBpY2tlci5zdHlsZWQuanMubWFwIl19 */")),x=l.default("div","production"===process.env.NODE_ENV?{target:"e1h66m5c0"}:{target:"e1h66m5c0",label:"StyledProductPickerContainer"})("margin-top:8px;.post__wrapper{margin-top:8px;border-top:1px solid ",d.DEFAULT_THEME.colorsV2.stroke.primary,";background-color:",d.DEFAULT_THEME.colorsV2.background.warning.light,";padding:12px 16px;display:flex;align-items:center;gap:16px;}.post__thumbnail{height:68px;width:68px;object-fit:cover;border-radius:4px;}.post__info-wrapper{display:flex;gap:8px;flex-direction:column;width:350px;}.loader__wrapper{height:350px;width:100%;margin-top:4px;display:flex;align-items:center;justify-content:center;}.product__wrapper{padding:12px;display:flex;flex-direction:row;align-items:center;gap:19px;border-bottom:1px solid ",d.DEFAULT_THEME.colorsV2.stroke.primary,";}.product__info-wrapper{display:flex;gap:16px;align-items:center;order:2;}.product__image{height:40px;width:40px;object-fit:cover;border-radius:4px;}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2R1Y3RQaWNrZXIuc3R5bGVkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQnVEIiwiZmlsZSI6IlByb2R1Y3RQaWNrZXIuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgREVGQVVMVF9USEVNRSB9IGZyb20gXCIuLi8uLi9jb25zdGFudHMvVGhlbWVcIjtcclxuZXhwb3J0IGNvbnN0IFN0eWxlZFplcm9TdGF0ZSA9IHN0eWxlZC5kaXYgYFxuXHRoZWlnaHQ6IDM2NHB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiAke0RFRkFVTFRfVEhFTUUuY29sb3JzVjIuc3VyZmFjZS5zdGFuZGFyZH07XG5cdGRpc3BsYXk6IGZsZXg7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cdGp1c3RpZnktY29udGVudDogY2VudGVyO1xuXHRnYXA6IDhweDtcblx0ZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcblxuXHQuaWNvbl9fY29udGFpbmVyIHtcblx0XHRoZWlnaHQ6IDQ4cHg7XG5cdFx0d2lkdGg6IDQ4cHg7XG5cdFx0Ym9yZGVyLXJhZGl1czogNTAlO1xuXHRcdGJhY2tncm91bmQtY29sb3I6ICR7REVGQVVMVF9USEVNRS5jb2xvcnNWMi5iYWNrZ3JvdW5kLmJhc2V9O1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0XHRqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcblx0fVxuYDtcclxuZXhwb3J0IGNvbnN0IFN0eWxlZFByb2R1Y3RQaWNrZXJDb250YWluZXIgPSBzdHlsZWQuZGl2IGBcblx0bWFyZ2luLXRvcDogOHB4O1xuXHQucG9zdF9fd3JhcHBlciB7XG5cdFx0bWFyZ2luLXRvcDogOHB4O1xuXHRcdGJvcmRlci10b3A6IDFweCBzb2xpZCAke0RFRkFVTFRfVEhFTUUuY29sb3JzVjIuc3Ryb2tlLnByaW1hcnl9O1xuXHRcdGJhY2tncm91bmQtY29sb3I6ICR7REVGQVVMVF9USEVNRS5jb2xvcnNWMi5iYWNrZ3JvdW5kLndhcm5pbmcubGlnaHR9O1xuXHRcdHBhZGRpbmc6IDEycHggMTZweDtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5cdFx0Z2FwOiAxNnB4O1xuXHR9XG5cblx0LnBvc3RfX3RodW1ibmFpbCB7XG5cdFx0aGVpZ2h0OiA2OHB4O1xuXHRcdHdpZHRoOiA2OHB4O1xuXHRcdG9iamVjdC1maXQ6IGNvdmVyO1xuXHRcdGJvcmRlci1yYWRpdXM6IDRweDtcblx0fVxuXHQucG9zdF9faW5mby13cmFwcGVyIHtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdGdhcDogOHB4O1xuXHRcdGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG5cdFx0d2lkdGg6IDM1MHB4O1xuXHR9XG5cdC5sb2FkZXJfX3dyYXBwZXIge1xuXHRcdGhlaWdodDogMzUwcHg7XG5cdFx0d2lkdGg6IDEwMCU7XG5cdFx0bWFyZ2luLXRvcDogNHB4O1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0XHRqdXN0aWZ5LWNvbnRlbnQ6IGNlbnRlcjtcblx0fVxuXHQucHJvZHVjdF9fd3JhcHBlciB7XG5cdFx0cGFkZGluZzogMTJweDtcblx0XHRkaXNwbGF5OiBmbGV4O1xuXHRcdGZsZXgtZGlyZWN0aW9uOiByb3c7XG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0XHRnYXA6IDE5cHg7XG5cdFx0Ym9yZGVyLWJvdHRvbTogMXB4IHNvbGlkICR7REVGQVVMVF9USEVNRS5jb2xvcnNWMi5zdHJva2UucHJpbWFyeX07XG5cdH1cblx0LnByb2R1Y3RfX2luZm8td3JhcHBlciB7XG5cdFx0ZGlzcGxheTogZmxleDtcblx0XHRnYXA6IDE2cHg7XG5cdFx0YWxpZ24taXRlbXM6IGNlbnRlcjtcblx0XHRvcmRlcjogMjtcblx0fVxuXHQucHJvZHVjdF9faW1hZ2Uge1xuXHRcdGhlaWdodDogNDBweDtcblx0XHR3aWR0aDogNDBweDtcblx0XHRvYmplY3QtZml0OiBjb3Zlcjtcblx0XHRib3JkZXItcmFkaXVzOiA0cHg7XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVByb2R1Y3RQaWNrZXIuc3R5bGVkLmpzLm1hcCJdfQ== */"));exports.StyledProductPickerContainer=x,exports.StyledZeroState=b;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../node_modules/lodash.debounce/index.js"),s=require("react"),o=require("../bik-layout/PageLoader.js"),r=require("../checkBox/CheckBox.js"),n=require("../input/Input.js"),c=require("../modals/styledModal.js"),l=require("./ProductPicker.styled.js"),i=require("../TypographyStyle.js"),a=require("../../utils/DateUtils.js"),d=require("../../constants/Theme.js"),u=require("../../assets/icons/alert_triangle.svg.js"),p=require("../../assets/icons/search.svg.js");const h="https://jkfenner.com/wp-content/uploads/2019/11/default.jpg",j=t=>{let{text:s,styleProps:o}=t;return e.jsxs(l.StyledZeroState,{children:[e.jsx("div",Object.assign({className:"icon__container",style:Object.assign({},o)},{children:e.jsx(u.default,{width:24,height:24,color:d.DEFAULT_THEME.colorsV2.content.secondary})})),e.jsx(i.TitleRegular,{children:"No results found"}),e.jsx(i.BodySecondary,Object.assign({style:{color:d.DEFAULT_THEME.colorsV2.content.secondary,textAlign:"center"}},{children:`Sorry we could not find any results for "${s}"`}))]})},g=c=>{var u,g,x,P;const y=c.instaPost?a.default.dateFormat(new Date(c.instaPost.timestamp),"•",!0):"",[m,v]=s.useState(c.products),[E,_]=s.useState(!1),[b,T]=s.useState(""),f=s.useCallback(t.default((e=>{e?(v([]),c.onSearchKeyChange(e).then((e=>{v(e),_(!1)}))):(v(c.products),_(!1))}),700),[]);return e.jsxs(l.StyledProductPickerContainer,{children:[c.instaPost&&e.jsxs("div",Object.assign({className:"post__wrapper"},{children:[e.jsx("img",{alt:"Ig Media",onError:e=>{e.target.onerror=null,e.target.src=h},src:null===(u=c.instaPost)||void 0===u?void 0:u.media_url,className:"post__thumbnail"}),e.jsxs("div",Object.assign({className:"post__info-wrapper"},{children:[e.jsx(i.BodyPrimary,Object.assign({style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",color:c.instaPost.caption?d.DEFAULT_THEME.colorsV2.content.primary:d.DEFAULT_THEME.colorsV2.content.secondary}},{children:(null===(g=c.instaPost)||void 0===g?void 0:g.caption)?null===(x=c.instaPost)||void 0===x?void 0:x.caption:"No caption"})),e.jsx(i.Caption,Object.assign({style:{color:d.DEFAULT_THEME.colorsV2.content.placeholder}},{children:y}))]}))]})),e.jsx("div",Object.assign({style:{borderTop:c.instaPost?`1px solid ${d.DEFAULT_THEME.colorsV2.stroke.primary}`:"none",borderBottom:`1px solid ${d.DEFAULT_THEME.colorsV2.stroke.primary}`,padding:c.instaPost?"16px":"0px 16px 16px 16px"}},{children:e.jsx(n.Input,{placeholder:null!==(P=c.searchPlaceholder)&&void 0!==P?P:"Search products..",onChangeText:e=>{var t;T(e),(null===(t=e.trim())||void 0===t?void 0:t.length)>0?(_(!0),f(e)):(_(!1),v(c.products))},rightIcon:{icon:p.default}})})),e.jsxs("div",Object.assign({style:{maxHeight:350,overflowY:"scroll"}},{children:[E&&e.jsx("div",Object.assign({className:"loader__wrapper"},{children:e.jsx(o.PageLoader,{})})),0!==m.length||E?m.map((t=>{var s;const o=c.selectedProducts.find((e=>e.id===t.id));return e.jsxs("div",Object.assign({className:"product__wrapper"},{children:[e.jsxs("div",Object.assign({className:"product__info-wrapper"},{children:[e.jsx("img",{alt:"Product",onError:e=>{e.target.onerror=null,e.target.src=h},src:null!==(s=t.image)&&void 0!==s?s:h,className:"product__image"}),e.jsx(i.TitleRegular,{children:t.name})]})),e.jsx("div",Object.assign({style:{order:1}},{children:e.jsx(r.CheckBox,{isChecked:void 0!==o,onValueChange:e=>{((e,t)=>{const s=c.selectedProducts.find((e=>e.id===t.id));if(e&&!s){const e=[...c.selectedProducts,t];c.setSelectedProducts(e)}else if(s){const e=[...c.selectedProducts];let s=-1;c.selectedProducts.forEach(((e,o)=>{e.id===t.id&&(s=o)})),e.splice(s,1),c.setSelectedProducts(e)}})(e,t)}})}))]}),t.id)})):e.jsx(j,{text:b})]}))]})};exports.PricePleaseProductPicker=t=>{var o;const[r,n]=s.useState([]);return s.useEffect((()=>{var e;n(null!==(e=t.selectedProducts)&&void 0!==e?e:[])}),[null===(o=t.selectedProducts)||void 0===o?void 0:o.length]),e.jsx(c.StyledModal,Object.assign({open:t.show,onClose:()=>{t.onClose()},footerLeftCustomElement:r.length>10?e.jsx(i.Caption,Object.assign({style:{color:d.DEFAULT_THEME.colorsV2.content.negative}},{children:"Can't add more than 10 products"})):e.jsx(i.Caption,Object.assign({style:{color:d.DEFAULT_THEME.colorsV2.content.placeholder}},{children:r?`${r.length} selected`:""})),headingTitle:t.title,primaryButton:{disabled:r.length>10||0===r.length,buttonType:"primary",buttonText:"Select",size:"small",onClick:()=>{t.setSelectedProducts(r),t.onClose()}},secondaryButton:t.secondaryButtonProps,footerShadow:!0},{children:e.jsx(g,Object.assign({},t,{selectedProducts:r,setSelectedProducts:n}))}))},exports.ProductPickerContent=g;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ProductPickerModal';
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ButtonProps } from "../button/model";
|
|
3
|
-
export interface IInstaPost {
|
|
4
|
-
caption?: string;
|
|
5
|
-
comments_count: number;
|
|
6
|
-
id: string;
|
|
7
|
-
ig_id: string;
|
|
8
|
-
media_type: string;
|
|
9
|
-
timestamp: string;
|
|
10
|
-
media_url: string;
|
|
11
|
-
permalink: string;
|
|
12
|
-
products: Product[];
|
|
13
|
-
}
|
|
14
|
-
export interface ProductPickerProps {
|
|
15
|
-
show: boolean;
|
|
16
|
-
products: Product[];
|
|
17
|
-
onClose: () => void;
|
|
18
|
-
title: string;
|
|
19
|
-
onSave: (productIds: Product[]) => void;
|
|
20
|
-
onSearchKeyChange: (key: string) => Promise<Product[]>;
|
|
21
|
-
instaPost?: IInstaPost;
|
|
22
|
-
searchPlaceholder?: string;
|
|
23
|
-
selectedProducts: Product[];
|
|
24
|
-
setSelectedProducts: React.Dispatch<React.SetStateAction<Product[]>>;
|
|
25
|
-
secondaryButtonProps?: ButtonProps;
|
|
26
|
-
}
|
|
27
|
-
export interface Product {
|
|
28
|
-
image: string;
|
|
29
|
-
variants: Variant[];
|
|
30
|
-
id: string;
|
|
31
|
-
combinations: Combination[];
|
|
32
|
-
photos: Photo[];
|
|
33
|
-
isNew: boolean;
|
|
34
|
-
currency: string;
|
|
35
|
-
isDiscounted: boolean;
|
|
36
|
-
isLimited: boolean;
|
|
37
|
-
catalogId: string;
|
|
38
|
-
isOutOfStock: boolean;
|
|
39
|
-
isHidden: boolean;
|
|
40
|
-
tags: string;
|
|
41
|
-
description: string;
|
|
42
|
-
name: string;
|
|
43
|
-
handle: string;
|
|
44
|
-
}
|
|
45
|
-
export interface Variant {
|
|
46
|
-
values: string[];
|
|
47
|
-
name: string;
|
|
48
|
-
type: string;
|
|
49
|
-
}
|
|
50
|
-
export interface Combination {
|
|
51
|
-
id: string;
|
|
52
|
-
price: number;
|
|
53
|
-
discountedPrice: number;
|
|
54
|
-
}
|
|
55
|
-
export interface Photo {
|
|
56
|
-
photoUrl: string;
|
|
57
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Collection, CollectionFetcherReturn, SelectedItems } from '.';
|
|
3
|
-
import { CollectionsActions, SelectedCollectionsActions } from './reducers';
|
|
4
|
-
export declare const truncate: (str: string, n: number, useWordBoundary: boolean) => string;
|
|
5
|
-
interface CollectionsScreenInterface {
|
|
6
|
-
collections: {
|
|
7
|
-
[key: string]: Collection;
|
|
8
|
-
};
|
|
9
|
-
selectedCollections: SelectedItems;
|
|
10
|
-
collectionFetcher: (offset: number, storeId: string) => CollectionFetcherReturn;
|
|
11
|
-
storeId: string;
|
|
12
|
-
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
13
|
-
setCollectionId: React.Dispatch<React.SetStateAction<string>>;
|
|
14
|
-
setScreen: React.Dispatch<React.SetStateAction<string>>;
|
|
15
|
-
collectionsDispatch: React.Dispatch<CollectionsActions>;
|
|
16
|
-
setSaveDisabled: React.Dispatch<boolean>;
|
|
17
|
-
pagingControls: {
|
|
18
|
-
curPage: number;
|
|
19
|
-
setCurPage: React.Dispatch<React.SetStateAction<number>>;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export declare const CollectionsScreen: (props: CollectionsScreenInterface) => JSX.Element;
|
|
23
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/chevronRight.svg.js"),s=require("react"),r=require("../checkBox/CheckBox.js"),i=require("../icon-button/IconButton.js"),c=require("../shimmer/ShimmerComponent/BikShimmer.js"),o=require("../tag/Tag.js"),n=require("../TypographyStyle.js"),l=require("./style.js");const a=(e,t,s)=>{if(e.length<=t)return e;const r=e.slice(0,t-1);return(s?r.slice(0,r.lastIndexOf(" ")):r)+"..."},d=s=>{const{data:c,selectedCollectionsDispatch:d,setCollectionId:u,isPartiallyChecked:h,setScreen:j,id:x,isChecked:p,isDisabled:C}=s;return e.jsxs(l.CollectionCardStyle,Object.assign({isDisabled:C},{children:[e.jsxs(l.CollectionCardInfoStyle,{children:[e.jsx(r.CheckBox,{isDisabled:C,isChecked:p,isPartiallyChecked:h,onValueChange:function(e,t){d(e?{type:"selected",data:{id:x,val:c}}:{type:"unselected",data:{id:x}}),u(e?x:"")}}),e.jsx(l.CollectionCardDetailStyle,{children:e.jsxs(l.CollectionNameHolder,{children:[e.jsx(n.TitleRegular,{children:a(c.name,40,!0)}),c.isSmartCollection?e.jsx(o.Tag,{tagText:"Smart Collection",type:"warning"}):e.jsx(e.Fragment,{})]})})]}),e.jsx(i.IconButton,{onClick:()=>{C||(u(x),j("products"))},Icon:t.default})]}))};exports.CollectionsScreen=t=>{const{collections:r,selectedCollectionsDispatch:i,setCollectionId:o,selectedCollections:n,setScreen:l,collectionFetcher:a,collectionsDispatch:u,pagingControls:h,storeId:j,setSaveDisabled:x}=t,p=s.useRef(null),C=s.useRef(h.curPage),v=(null==n?void 0:n.isCustom)||!1,[g,m]=s.useState(!1);s.useEffect((()=>{C.current=h.curPage}),[h.curPage]),s.useEffect((()=>{const e=new IntersectionObserver((e=>{e[0].isIntersecting&&C.current>0&&(x(!0),m(!0),a(C.current,j).then((e=>{u({type:"paged",data:(null==e?void 0:e.collections)||{}}),h.setCurPage(C.current+1),m(!1),x(!1)})).catch())}),{threshold:1});return p.current&&e.observe(p.current),()=>{p.current&&e.unobserve(p.current)}}),[p]);const b=e=>{var t,s;let i=0,c=0;if(n[e]){const o=null===(t=r[e])||void 0===t?void 0:t.products;o&&Object.keys(o).forEach((e=>{var t;const s=null===(t=o[e])||void 0===t?void 0:t.variants;s&&Object.keys(s).forEach((e=>i+=1))}));const l=null===(s=n[e])||void 0===s?void 0:s.products;return l&&Object.keys(l).forEach((e=>{var t;const s=null===(t=l[e])||void 0===t?void 0:t.variants;s&&Object.keys(s).forEach((e=>c+=1))})),!(i<=0&&c>0)&&(c>0&&i!==c)}return!1};return e.jsxs("div",{children:[Object.keys(r).length?Object.keys(r).map((t=>e.jsx(d,{data:r[t],isDisabled:v&&!(null==n?void 0:n[t]),isChecked:!!(null==n?void 0:n[t]),isPartiallyChecked:b(t),selectedCollectionsDispatch:i,setCollectionId:o,setScreen:l,id:t},t))):[1,2,3,4,5,6,7,8,9,10].map(((t,s)=>e.jsx("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(c.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),s))),e.jsx("div",{ref:p}),g&&[1,2,3,4,5].map(((t,s)=>e.jsx("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(c.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),s)))]})},exports.truncate=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './modal';
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface ProductVariant {
|
|
3
|
-
name: string;
|
|
4
|
-
price: string;
|
|
5
|
-
image: string;
|
|
6
|
-
}
|
|
7
|
-
export interface Product {
|
|
8
|
-
name: string;
|
|
9
|
-
image: string;
|
|
10
|
-
variants?: {
|
|
11
|
-
[key: string]: ProductVariant;
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
export interface Collection {
|
|
15
|
-
name: string;
|
|
16
|
-
image: string;
|
|
17
|
-
isSmartCollection: boolean;
|
|
18
|
-
products?: {
|
|
19
|
-
[key: string]: Product;
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
export type SelectedItems = {
|
|
23
|
-
[key: string]: Collection;
|
|
24
|
-
};
|
|
25
|
-
export type CollectionFetcherReturn = Promise<{
|
|
26
|
-
collections: {
|
|
27
|
-
[key: string]: {
|
|
28
|
-
image: string;
|
|
29
|
-
name: string;
|
|
30
|
-
isSmartCollection: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
export type ProductFetcherReturn = Promise<{
|
|
35
|
-
[key: string]: Product;
|
|
36
|
-
}>;
|
|
37
|
-
export interface ProductPickerInterface {
|
|
38
|
-
collectionFetcher: (offset: number, storeId: string) => CollectionFetcherReturn;
|
|
39
|
-
productFetcher: (collectionId: string, storeId: string) => ProductFetcherReturn;
|
|
40
|
-
storeId: string;
|
|
41
|
-
selectedItems: SelectedItems;
|
|
42
|
-
onAdd: (items: SelectedItems) => void;
|
|
43
|
-
onClose: () => void;
|
|
44
|
-
visible: boolean;
|
|
45
|
-
zIndex?: number;
|
|
46
|
-
}
|
|
47
|
-
export declare const ProductPickerModal: (props: ProductPickerInterface) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),c=require("../button/Button.js"),o=require("../modals/styledModal.js"),s=require("./collectionScreen.js"),l=require("./productScreen.js"),r=require("./reducers.js"),d=require("./selectedScreen.js"),n=require("./style.js");exports.ProductPickerModal=i=>{const{storeId:u,selectedItems:a,onClose:h,visible:p,zIndex:j}=i,[v,S]=t.useReducer(r.collectionsReducer,{}),[y,x]=t.useState("collections"),[C,b]=t.useState(""),[f,g]=t.useState(0),[q,I]=t.useReducer(r.selectedColectionsReducer,Object.keys(a).length?a:{}),[P,k]=t.useState(!1),[m,D]=t.useState(0);return t.useEffect((()=>{let e=0;Object.keys(q||[]).forEach((t=>{var c;Object.keys((null===(c=q[t])||void 0===c?void 0:c.products)||[]).forEach((c=>{var o,s;Object.keys((null===(s=null===(o=q[t].products)||void 0===o?void 0:o[c])||void 0===s?void 0:s.variants)||[]).forEach((t=>{e+=1}))}))})),D(e)})),t.useEffect((()=>{k(!0),i.collectionFetcher(f,u).then((e=>{S({type:"fetched",data:(null==e?void 0:e.collections)||{}}),k(!1),g((e=>e+1))})).catch()}),[]),t.useEffect((()=>{var e;C&&!(null===(e=null==v?void 0:v[C])||void 0===e?void 0:e.products)&&(k(!0),i.productFetcher(C,u).then((e=>{Object.keys(e).length&&(S({type:"productsFetched",data:{collectionId:C,products:e}}),k(!1))})).catch())}),[C]),e.jsx(o.StyledModal,Object.assign({zIndex:j,open:p,onClose:h,headingTitle:"collections"===y?"Select Products":"products"===y?v[C].name:"view"===y?"Selected Products":void 0,footerShadow:!0,centralContainerStyles:{width:"480px"},primaryButton:{buttonText:P?"Loading...":"Add",disabled:P,onClick:()=>i.onAdd(q)},footerLeftCustomElement:e.jsx(e.Fragment,{children:m>0?e.jsx(c.Button,{onClick:()=>{x("view")},buttonText:`${m} products selected`,buttonType:"tertiaryGray"}):e.jsx(c.Button,{disabled:!0,buttonText:`${m} products selected`,buttonType:"tertiaryGray"})})},{children:e.jsx(n.ContainerStyle,{children:e.jsxs(n.ScrollContainerStyle,{children:["collections"===y&&e.jsx(s.CollectionsScreen,{collections:v,selectedCollectionsDispatch:I,setCollectionId:b,setScreen:x,selectedCollections:q,collectionFetcher:i.collectionFetcher,storeId:u,collectionsDispatch:S,setSaveDisabled:k,pagingControls:{curPage:f,setCurPage:g}}),"products"===y&&C&&e.jsx(r.CollectionIdContext.Provider,Object.assign({value:C},{children:e.jsx(l.ProductsScreen,{productFetcher:i.productFetcher,setScreen:x,storeId:u,data:v[C],collectionsDispatch:S,selectedCollectionsDispatch:I,selectedData:q,setSaveDisabled:k})})),"view"===y&&e.jsx(d.SelectedScreen,{selectedCollections:q||{},selectedCollectionsDispatch:I,upliftAdditions:null,setScreen:x,collections:v})]})})}))};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Collection, Product, ProductFetcherReturn, ProductVariant, SelectedItems } from '.';
|
|
3
|
-
import { CollectionsActions, SelectedCollectionsActions } from './reducers';
|
|
4
|
-
interface ProductsScreenInterface {
|
|
5
|
-
data: Collection;
|
|
6
|
-
collectionsDispatch: React.Dispatch<CollectionsActions>;
|
|
7
|
-
selectedData: SelectedItems;
|
|
8
|
-
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
9
|
-
productFetcher: (collectionId: string, storeId: string) => ProductFetcherReturn;
|
|
10
|
-
storeId: string;
|
|
11
|
-
setScreen: React.Dispatch<React.SetStateAction<string>>;
|
|
12
|
-
setSaveDisabled: React.Dispatch<React.SetStateAction<boolean>>;
|
|
13
|
-
}
|
|
14
|
-
export declare const ProductsScreen: (props: ProductsScreenInterface) => JSX.Element;
|
|
15
|
-
interface ProductGroupInterface {
|
|
16
|
-
collectionId: string;
|
|
17
|
-
productId: string;
|
|
18
|
-
data: Product;
|
|
19
|
-
selectedData: SelectedItems;
|
|
20
|
-
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
21
|
-
upliftAdditions: any;
|
|
22
|
-
viewOnly: boolean;
|
|
23
|
-
isProductPartiallyChecked?: boolean;
|
|
24
|
-
}
|
|
25
|
-
export declare const ProductGroup: (props: ProductGroupInterface) => JSX.Element;
|
|
26
|
-
interface ProductCardInterface {
|
|
27
|
-
isVariant: boolean;
|
|
28
|
-
data: Product | ProductVariant;
|
|
29
|
-
productId: string;
|
|
30
|
-
collectionId: string;
|
|
31
|
-
variantId?: string;
|
|
32
|
-
isSelected: boolean;
|
|
33
|
-
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
34
|
-
upliftAdditions: any;
|
|
35
|
-
viewOnly: boolean;
|
|
36
|
-
isPartiallyChecked?: boolean;
|
|
37
|
-
}
|
|
38
|
-
export declare const ProductCard: (props: ProductCardInterface) => JSX.Element;
|
|
39
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),i=require("../../assets/icons/box.svg.js"),d=require("lodash"),o=require("react"),l=require("../../constants/Theme.js"),c=require("../checkBox/CheckBox.js"),s=require("../icon-button/IconButton.js"),r=require("../shimmer/ShimmerComponent/BikShimmer.js"),n=require("../shimmer-image/ShimmerImage.js"),a=require("../TypographyStyle.js"),u=require("./collectionScreen.js"),v=require("./reducers.js"),p=require("./style.js");const h=t=>{const{collectionId:i,productId:d,data:o,selectedData:l,selectedCollectionsDispatch:c,upliftAdditions:s,viewOnly:r,isProductPartiallyChecked:n}=t,a=e=>{var t,o,c,s,r,n;if(!(null===(o=null===(t=null==l?void 0:l[i])||void 0===t?void 0:t.products)||void 0===o?void 0:o[d]))return!1;return!!(null===(n=null===(r=null===(s=null===(c=null==l?void 0:l[i])||void 0===c?void 0:c.products)||void 0===s?void 0:s[d])||void 0===r?void 0:r.variants)||void 0===n?void 0:n[e])};return e.jsxs("div",{children:[e.jsx(j,{isVariant:!1,data:o,productId:d,collectionId:i,isSelected:!!(null===(v=null===(u=null==l?void 0:l[i])||void 0===u?void 0:u.products)||void 0===v?void 0:v[d]),isPartiallyChecked:n,selectedCollectionsDispatch:c,upliftAdditions:s,viewOnly:r},d),Object.keys(o.variants||[]).map((t=>e.jsx(j,{isVariant:!0,data:o.variants[t],variantId:t,productId:d,viewOnly:r,collectionId:i,isSelected:a(t),selectedCollectionsDispatch:c,upliftAdditions:s},t)))]});var u,v},j=t=>{const{isVariant:i,data:d,productId:o,collectionId:l,variantId:s,isSelected:r,selectedCollectionsDispatch:v,upliftAdditions:h,viewOnly:j,isPartiallyChecked:y}=t;return e.jsxs(p.ProductCardStyle,Object.assign({isVariant:i},{children:[j?e.jsx(e.Fragment,{}):e.jsx(c.CheckBox,{isChecked:r,isPartiallyChecked:y||!1,onValueChange:function(e){i?e?h("variantSelected",{productId:o,variantId:s,collectionId:l,variant:d}):v({type:"variantUnselected",data:{productId:o,variantId:s,collectionId:l}}):e?h("productSelected",{productId:o,collectionId:l,product:d}):v({type:"productUnselected",data:{productId:o,collectionId:l}})}}),e.jsx("div",{children:e.jsx(n.ShimmerImage,{width:40,height:40,imageUrl:d.image,alt:"Item",borderRadius:4})}),e.jsx(a.TitleRegular,{children:u.truncate(d.name,40,!0)})]}))};exports.ProductCard=j,exports.ProductGroup=h,exports.ProductsScreen=n=>{const u=o.useContext(v.CollectionIdContext),{data:j,collectionsDispatch:y,selectedData:x,selectedCollectionsDispatch:m,productFetcher:I,storeId:g,setScreen:C,setSaveDisabled:O}=n,[b]=o.useState(j),k=j.isSmartCollection||!1,f=e=>{var t,i,d,o,l,c,s,r;let n=0,a=0;return!!((null===(i=null===(t=null==x?void 0:x[u])||void 0===t?void 0:t.products)||void 0===i?void 0:i[e])&&(null===(l=Object.keys((null===(o=null===(d=null==j?void 0:j.products)||void 0===d?void 0:d[e])||void 0===o?void 0:o.variants)||[]))||void 0===l||l.forEach((()=>a++)),Object.keys((null===(r=null===(s=null===(c=null==x?void 0:x[u])||void 0===c?void 0:c.products)||void 0===s?void 0:s[e])||void 0===r?void 0:r.variants)||[]).forEach((()=>n++)),n>0&&a!==n))};o.useEffect((()=>{(null==j?void 0:j.products)||(O(!0),I(u,g).then((e=>{Object.keys(e).length&&y({type:"productsFetched",data:{collectionId:u,products:e}}),O(!1)})).catch())}),[]);const S=(e,t)=>{const i=d.cloneDeep(j);if(delete i.products,(t=Object.assign(Object.assign({},t),{catalogOnlyData:i})).productId&&j.products){const e=d.cloneDeep(j.products[t.productId]);(null==e?void 0:e.variants)&&delete e.variants,t=Object.assign(Object.assign({},t),{catalogOnlyData:i,productOnlyData:e})}m({type:e,data:t})};return e.jsxs("div",{children:[e.jsxs(p.ProductScreenHeader,{children:[e.jsx(s.IconButton,{Icon:t.default,height:16,onClick:()=>{C("collections")}}),e.jsx(a.BodyCaption,Object.assign({style:{color:l.COLORS.content.secondary}},{children:j.name}))]}),e.jsxs("div",{children:[e.jsxs(p.ProductScreenCollectionCardStyle,{children:[k?e.jsx(e.Fragment,{}):e.jsx(c.CheckBox,{isChecked:!!(null==x?void 0:x[u]),isPartiallyChecked:(e=>{var t;let i=0,d=0;if(x[e]){const o=null==j?void 0:j.products;o&&Object.keys(o).forEach((e=>{var t;const d=null===(t=o[e])||void 0===t?void 0:t.variants;d&&Object.keys(d).forEach((e=>i+=1))}));const l=null===(t=x[e])||void 0===t?void 0:t.products;return l&&Object.keys(l).forEach((e=>{var t;const i=null===(t=l[e])||void 0===t?void 0:t.variants;i&&Object.keys(i).forEach((()=>d+=1))})),d>0&&i!==d}return!1})(u),onValueChange:function(e){m(e?{type:"selected",data:{id:u,val:j}}:{type:"unselected",data:{id:u}})}}),e.jsx("div",Object.assign({style:{width:40,height:40}},{children:e.jsx(i.default,{})})),e.jsx(a.TitleRegular,{children:"All Products"})]}),Object.keys((null==b?void 0:b.products)||[]).length?Object.keys(b.products||[]).map((t=>e.jsx(h,{collectionId:u,isProductPartiallyChecked:f(t),productId:t,data:b.products[t],selectedData:x,selectedCollectionsDispatch:m,upliftAdditions:S,viewOnly:!!k},t))):[1,2,3,4,5,6,7,8,9,10].map(((t,i)=>e.jsx("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(r.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),i)))]})]})};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Collection, SelectedItems } from '.';
|
|
3
|
-
export interface SelectedCollectionsActions {
|
|
4
|
-
type: string;
|
|
5
|
-
data: {
|
|
6
|
-
[key: string]: any;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
export declare function selectedColectionsReducer(collections: SelectedItems, action: SelectedCollectionsActions): SelectedItems;
|
|
10
|
-
export interface CollectionsActions {
|
|
11
|
-
type: string;
|
|
12
|
-
data: {
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
export declare function collectionsReducer(collections: Collection, action: CollectionsActions): any;
|
|
17
|
-
export declare const CollectionIdContext: import("react").Context<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var t=require("lodash");const e=require("react").createContext("");exports.CollectionIdContext=e,exports.collectionsReducer=function(t,e){let a={};switch(e.type){case"fetched":return a=Object.assign({},e.data),a;case"productsFetched":return a=Object.assign({},t),a[e.data.collectionId].products=e.data.products,a;case"paged":return a=Object.assign(Object.assign({},t),e.data),a;default:return{}}},exports.selectedColectionsReducer=function(e,a){var d,o,c,l,s,r;let n={},u="",i="",p="";switch(a.type){case"selected":return n=t.cloneDeep(e),a.data.val.isSmartCollection&&(n={},n.isCustom=!0),n[a.data.id]=a.data.val,n;case"unselected":return n=t.cloneDeep(e),(null==n?void 0:n.isCustom)&&(n.isCustom=!1),delete n[a.data.id],n;case"productUnselected":return n=t.cloneDeep(e),u=a.data.productId,i=a.data.collectionId,delete n[i].products[u],Object.keys(n[i].products).length||((null==n?void 0:n.isCustom)&&(n.isCustom=!1),delete n[i]),n;case"productSelected":return n=t.cloneDeep(e),u=a.data.productId,i=a.data.collectionId,(null==n?void 0:n[i])||(n[i]=a.data.catalogOnlyData,(null===(d=a.data.catalogOnlyData)||void 0===d?void 0:d.isSmartCollection)&&(n={},n.isCustom=!0),n[i].products={}),n[i].products[u]=a.data.product,n;case"variantSelected":return n=t.cloneDeep(e),u=a.data.productId,i=a.data.collectionId,p=a.data.variantId,(null==n?void 0:n[i])||((null===(o=a.data.catalogOnlyData)||void 0===o?void 0:o.isSmartCollection)&&(n={},n.isCustom=!0),n[i]=a.data.catalogOnlyData,n[i].products={},n[i].products[u]=a.data.productOnlyData,n[i].products[u].variants={}),(null===(l=null===(c=null==n?void 0:n[i])||void 0===c?void 0:c.products)||void 0===l?void 0:l[u])||((null===(s=null==n?void 0:n[i])||void 0===s?void 0:s.products)||(n[i].products={}),n[i].products[u]=a.data.productOnlyData,n[i].products[u].variants={}),n[i].products[u].variants[p]=a.data.variant,n;case"variantUnselected":return n=t.cloneDeep(e),u=a.data.productId,i=a.data.collectionId,p=a.data.variantId,delete n[i].products[u].variants[p],Object.keys(n[i].products[u].variants).length||(delete n[i].products[u],Object.keys(n[i].products).length||((null===(r=n[i])||void 0===r?void 0:r.isSmartCollection)&&(n.isCustom=!1),delete n[i])),n;default:return e}};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { Collection, SelectedItems } from '.';
|
|
3
|
-
import { SelectedCollectionsActions } from './reducers';
|
|
4
|
-
interface SelectedScreenInterface {
|
|
5
|
-
selectedCollections: SelectedItems;
|
|
6
|
-
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
7
|
-
upliftAdditions: any;
|
|
8
|
-
setScreen: React.Dispatch<React.SetStateAction<string>>;
|
|
9
|
-
collections: {
|
|
10
|
-
[key: string]: Collection;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
export declare const SelectedScreen: (props: SelectedScreenInterface) => JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),o=require("../../assets/icons/arrow_left.svg.js"),l=require("../icon-button/IconButton.js"),t=require("../TypographyStyle.js"),i=require("./productScreen.js"),d=require("./style.js");exports.SelectedScreen=r=>{const{selectedCollections:s,selectedCollectionsDispatch:c,upliftAdditions:n,setScreen:u,collections:v}=r,a=(e,o)=>{var l,t,i,d,r,c,n,u,a;let p=0,j=0;return!!((null===(t=null===(l=null==s?void 0:s[e])||void 0===l?void 0:l.products)||void 0===t?void 0:t[o])&&(null===(c=Object.keys((null===(r=null===(d=null===(i=null==v?void 0:v[e])||void 0===i?void 0:i.products)||void 0===d?void 0:d[o])||void 0===r?void 0:r.variants)||[]))||void 0===c||c.forEach((()=>j++)),Object.keys((null===(a=null===(u=null===(n=null==s?void 0:s[e])||void 0===n?void 0:n.products)||void 0===u?void 0:u[o])||void 0===a?void 0:a.variants)||[]).forEach((()=>p++)),p>0&&j!==p))};return e.jsxs("div",{children:[e.jsxs(d.SelectedScreenHeader,{children:[e.jsx(l.IconButton,{Icon:o.default,onClick:()=>{u("collections")}}),e.jsx(t.BodyCaption,{children:"Selected Products"})]}),e.jsx("div",{children:Object.keys(s).map((o=>{var l;return Object.keys((null===(l=null==s?void 0:s[o])||void 0===l?void 0:l.products)||[]).map((l=>{let t=!1;return(null==s?void 0:s.isCustom)&&(t=!0),e.jsx(i.ProductGroup,{collectionId:o,productId:l,data:s[o].products[l],isProductPartiallyChecked:a(o,l),selectedData:s,selectedCollectionsDispatch:c,upliftAdditions:n,viewOnly:t},l)}))}))})]})};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const ContainerStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
|
-
export declare const ScrollContainerStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const CollectionCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
4
|
-
isDisabled: boolean;
|
|
5
|
-
}, never>;
|
|
6
|
-
export declare const CollectionCardInfoStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
|
-
export declare const CollectionCardDetailStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const ProductScreenHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
9
|
-
export declare const ProductScreenCollectionCardStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
|
-
export declare const ProductCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
11
|
-
isVariant: boolean;
|
|
12
|
-
}, never>;
|
|
13
|
-
export declare const SelectedScreenHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const CollectionNameHolder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("../../constants/Theme.js");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=o(e);const l=i.default.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
background-color: white;
|
|
4
|
-
max-height: 600px;
|
|
5
|
-
min-height: 600px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
`,r=i.default.div`
|
|
8
|
-
overflow-y: scroll;
|
|
9
|
-
overflow-x: hidden;
|
|
10
|
-
`,n=i.default.div`
|
|
11
|
-
height: 64px;
|
|
12
|
-
background-color: ${e=>e.isDisabled?"#F0F0F0":"white"};
|
|
13
|
-
border-bottom: 1px solid #e0e0e0;
|
|
14
|
-
padding: 12px 24px;
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: row;
|
|
17
|
-
column-gap: 16px;
|
|
18
|
-
justify-content: space-between;
|
|
19
|
-
align-items: center;
|
|
20
|
-
`,d=i.default.div`
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: row;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
align-items: center;
|
|
25
|
-
column-gap: 18px;
|
|
26
|
-
`,a=i.default.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
`,c=i.default.div`
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
max-height: 32px;
|
|
34
|
-
min-height: 32px;
|
|
35
|
-
background-color: ${t.COLORS.background.base};
|
|
36
|
-
justify-content: flex-start;
|
|
37
|
-
align-items: center;
|
|
38
|
-
padding: 8px 16px;
|
|
39
|
-
`,x=i.default.div`
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: row;
|
|
42
|
-
column-gap: 16px;
|
|
43
|
-
padding: 12px 16px;
|
|
44
|
-
border-bottom: 1px solid #e0e0e0;
|
|
45
|
-
align-items: center;
|
|
46
|
-
`,p=i.default.div`
|
|
47
|
-
height: 64px;
|
|
48
|
-
background-color: white;
|
|
49
|
-
border-bottom: 1px solid #e0e0e0;
|
|
50
|
-
padding: 12px 16px;
|
|
51
|
-
display: flex;
|
|
52
|
-
flex-direction: row;
|
|
53
|
-
column-gap: 16px;
|
|
54
|
-
justify-content: flex-start;
|
|
55
|
-
align-items: center;
|
|
56
|
-
padding-left: ${e=>e.isVariant?"42px":"16px"};
|
|
57
|
-
`,s=i.default.div`
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: row;
|
|
60
|
-
max-height: 32px;
|
|
61
|
-
min-height: 32px;
|
|
62
|
-
background-color: ${t.COLORS.background.base};
|
|
63
|
-
justify-content: flex-start;
|
|
64
|
-
align-items: center;
|
|
65
|
-
padding: 8px 16px;
|
|
66
|
-
`,f=i.default.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
`;exports.CollectionCardDetailStyle=a,exports.CollectionCardInfoStyle=d,exports.CollectionCardStyle=n,exports.CollectionNameHolder=f,exports.ContainerStyle=l,exports.ProductCardStyle=p,exports.ProductScreenCollectionCardStyle=x,exports.ProductScreenHeader=c,exports.ScrollContainerStyle=r,exports.SelectedScreenHeader=s;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './searchBar';
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { InputVariant } from '../input/Input';
|
|
3
|
-
export interface SearchBarProps {
|
|
4
|
-
width: string;
|
|
5
|
-
isEnabled: boolean;
|
|
6
|
-
onChange: (searchText: string) => void;
|
|
7
|
-
onEnter: (searchText: string) => void;
|
|
8
|
-
placeholder: string;
|
|
9
|
-
variant: InputVariant;
|
|
10
|
-
validate?: (input?: string | number) => [boolean, string];
|
|
11
|
-
initialValue?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare const SearchBar: (props: SearchBarProps) => JSX.Element;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/searchIcon.js"),a=require("react"),n=require("../../assets/icons/cross.svg.js"),s=require("../input/Input.js");exports.SearchBar=r=>{const{isEnabled:o,onEnter:c,placeholder:i,width:l,variant:u,validate:d}=r,[h,v]=a.useState("search"),[f,p]=a.useState("default"),[g,j]=a.useState(o?"none":"disabled"),[I,S]=a.useState(r.initialValue||"");a.useEffect((()=>{j(o?"none":"disabled")}),[o]);const b=e=>{o&&c(e)};return e.jsx(s.Input,{validate:d,onFocus:()=>{"default"===f&&o&&(p("clicked"),j("active"))},width:l,state:g,leftIcon:"search"===h&&"default"===f?{icon:t.SearchIcon}:void 0,rightIcon:"cross"===h?{icon:n.default,callback:()=>{v("search"),p("default"),S(""),r.onChange(""),j("none"),c("")}}:void 0,onChangeText:(e,t)=>{r.onChange(e),S(e),"keydown"!==(null==t?void 0:t.type)||13!==t.which&&13!==t.keyCode?e.trim().length?v("cross"):v("search"):b(e)},placeholder:i,variant:u,value:I,onBlur:()=>{I.length||p("default"),j("none")}})};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FunctionComponent } from 'react';
|
|
2
|
-
interface ShimmerBox {
|
|
3
|
-
height: string;
|
|
4
|
-
width: string;
|
|
5
|
-
marginTop?: string;
|
|
6
|
-
}
|
|
7
|
-
interface OwnProps {
|
|
8
|
-
boxes: ShimmerBox[];
|
|
9
|
-
isBrand?: boolean;
|
|
10
|
-
}
|
|
11
|
-
type Props = OwnProps;
|
|
12
|
-
export declare const BikShimmer: FunctionComponent<Props>;
|
|
13
|
-
export default BikShimmer;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),i=require("./ShimmerStyled.js");const r=r=>e.jsx(i.ShimmerStyled,Object.assign({isBrand:r.isBrand},{children:r.boxes.map(((i,r)=>e.jsx("div",{className:"shine",style:{width:i.width,height:i.height,marginTop:i.marginTop||"16px"}},r)))}));exports.BikShimmer=r,exports.default=r;
|