@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 +0,0 @@
|
|
|
1
|
-
import c from"@emotion/styled/base";import{COLORS as d}from"../../constants/Theme.js";const b=c("div","production"===process.env.NODE_ENV?{target:"e4062250"}:{target:"e4062250",label:"SubscriptionPlanStyled"})("border:1px solid ",d.stroke.primary,";border:1px solid ",(c=>c.isSelected?d.text.altSecondary:d.stroke.primary),";box-shadow:0px 2px 8px rgba(0, 0, 0, 0.12);border-radius:4px;.box{height:400px;padding:24px;background-color:",d.surface.standard,";display:flex;flex-direction:column;.button-box{margin-top:auto;display:flex;}}.box.selected{background-color:",d.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.surface.standard,";}}.trial{margin-top:16px;margin-bottom:12px;padding:4px 8px;border-radius:4px;color:",d.content.secondary,";background-color:",d.surface.hovered,";}.trial.selected{background-color:",d.surface.standard,";}.feature{display:flex;align-items:center;margin-top:12px;.feature-text{margin-left:12px;color:",d.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.background.brandLight,";padding:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;.text{color:",d.background.inverse,";}}.disabled{*{color:",d.content.inactive,"!important;}}.plan-bottom-information.disabled{background:",d.background.base,";}.plan-bottom-information.selected{background:",d.surface.standard,";color:",d.content.placeholder,";}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvblBsYW5TdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVpRCIsImZpbGUiOiJTdWJzY3JpcHRpb25QbGFuU3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxu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{b as SubscriptionPlanStyled};
|
|
@@ -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
|
-
import c from"@emotion/styled/base";import{DEFAULT_THEME as d}from"../../constants/Theme.js";const X=c("div","production"===process.env.NODE_ENV?{target:"e1h66m5c1"}:{target:"e1h66m5c1",label:"StyledZeroState"})("height:364px;background-color:",d.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.colorsV2.background.base,";display:flex;align-items:center;justify-content:center;}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2R1Y3RQaWNrZXIuc3R5bGVkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFMEMiLCJmaWxlIjoiUHJvZHVjdFBpY2tlci5zdHlsZWQudHN4Iiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5pbXBvcnQgeyBERUZBVUxUX1RIRU1FIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5leHBvcnQgY29uc3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DtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJvZHVjdFBpY2tlci5zdHlsZWQuanMubWFwIl19 */")),l=c("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.colorsV2.stroke.primary,";background-color:",d.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.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,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlByb2R1Y3RQaWNrZXIuc3R5bGVkLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQnVEIiwiZmlsZSI6IlByb2R1Y3RQaWNrZXIuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgREVGQVVMVF9USEVNRSB9IGZyb20gXCIuLi8uLi9jb25zdGFudHMvVGhlbWVcIjtcclxuZXhwb3J0IGNvbnN0IFN0eWxlZFplcm9TdGF0ZSA9IHN0eWxlZC5kaXYgYFxuXHRoZWlnaHQ6IDM2NHB4O1xuXHRiYWNrZ3JvdW5kLWNvbG9yOiAke0RFRkFVTFRfVEhFTUUuY29sb3JzVjIuc3VyZmFjZS5zdGFuZGFyZH07XG5cdGRpc3BsYXk6I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0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import o from"../../node_modules/lodash.debounce/index.js";import{useState as s,useCallback as r,useEffect as n}from"react";import{PageLoader as c}from"../bik-layout/PageLoader.js";import{CheckBox as l}from"../checkBox/CheckBox.js";import{Input as i}from"../input/Input.js";import{StyledModal as d}from"../modals/styledModal.js";import{StyledProductPickerContainer as a,StyledZeroState as p}from"./ProductPicker.styled.js";import{BodyPrimary as m,Caption as h,TitleRegular as u,BodySecondary as g}from"../TypographyStyle.js";import v from"../../utils/DateUtils.js";import{DEFAULT_THEME as f}from"../../constants/Theme.js";import j from"../../assets/icons/alert_triangle.svg.js";import y from"../../assets/icons/search.svg.js";const P="https://jkfenner.com/wp-content/uploads/2019/11/default.jpg",b=o=>{let{text:s,styleProps:r}=o;return e(p,{children:[t("div",Object.assign({className:"icon__container",style:Object.assign({},r)},{children:t(j,{width:24,height:24,color:f.colorsV2.content.secondary})})),t(u,{children:"No results found"}),t(g,Object.assign({style:{color:f.colorsV2.content.secondary,textAlign:"center"}},{children:`Sorry we could not find any results for "${s}"`}))]})},x=n=>{var d,p,g,j;const x=n.instaPost?v.dateFormat(new Date(n.instaPost.timestamp),"•",!0):"",[_,O]=s(n.products),[w,C]=s(!1),[S,N]=s(""),V=r(o((e=>{e?(O([]),n.onSearchKeyChange(e).then((e=>{O(e),C(!1)}))):(O(n.products),C(!1))}),700),[]);return e(a,{children:[n.instaPost&&e("div",Object.assign({className:"post__wrapper"},{children:[t("img",{alt:"Ig Media",onError:e=>{e.target.onerror=null,e.target.src=P},src:null===(d=n.instaPost)||void 0===d?void 0:d.media_url,className:"post__thumbnail"}),e("div",Object.assign({className:"post__info-wrapper"},{children:[t(m,Object.assign({style:{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",color:n.instaPost.caption?f.colorsV2.content.primary:f.colorsV2.content.secondary}},{children:(null===(p=n.instaPost)||void 0===p?void 0:p.caption)?null===(g=n.instaPost)||void 0===g?void 0:g.caption:"No caption"})),t(h,Object.assign({style:{color:f.colorsV2.content.placeholder}},{children:x}))]}))]})),t("div",Object.assign({style:{borderTop:n.instaPost?`1px solid ${f.colorsV2.stroke.primary}`:"none",borderBottom:`1px solid ${f.colorsV2.stroke.primary}`,padding:n.instaPost?"16px":"0px 16px 16px 16px"}},{children:t(i,{placeholder:null!==(j=n.searchPlaceholder)&&void 0!==j?j:"Search products..",onChangeText:e=>{var t;N(e),(null===(t=e.trim())||void 0===t?void 0:t.length)>0?(C(!0),V(e)):(C(!1),O(n.products))},rightIcon:{icon:y}})})),e("div",Object.assign({style:{maxHeight:350,overflowY:"scroll"}},{children:[w&&t("div",Object.assign({className:"loader__wrapper"},{children:t(c,{})})),0!==_.length||w?_.map((o=>{var s;const r=n.selectedProducts.find((e=>e.id===o.id));return e("div",Object.assign({className:"product__wrapper"},{children:[e("div",Object.assign({className:"product__info-wrapper"},{children:[t("img",{alt:"Product",onError:e=>{e.target.onerror=null,e.target.src=P},src:null!==(s=o.image)&&void 0!==s?s:P,className:"product__image"}),t(u,{children:o.name})]})),t("div",Object.assign({style:{order:1}},{children:t(l,{isChecked:void 0!==r,onValueChange:e=>{((e,t)=>{const o=n.selectedProducts.find((e=>e.id===t.id));if(e&&!o){const e=[...n.selectedProducts,t];n.setSelectedProducts(e)}else if(o){const e=[...n.selectedProducts];let o=-1;n.selectedProducts.forEach(((e,s)=>{e.id===t.id&&(o=s)})),e.splice(o,1),n.setSelectedProducts(e)}})(e,o)}})}))]}),o.id)})):t(b,{text:S})]}))]})},_=e=>{var o;const[r,c]=s([]);return n((()=>{var t;c(null!==(t=e.selectedProducts)&&void 0!==t?t:[])}),[null===(o=e.selectedProducts)||void 0===o?void 0:o.length]),t(d,Object.assign({open:e.show,onClose:()=>{e.onClose()},footerLeftCustomElement:r.length>10?t(h,Object.assign({style:{color:f.colorsV2.content.negative}},{children:"Can't add more than 10 products"})):t(h,Object.assign({style:{color:f.colorsV2.content.placeholder}},{children:r?`${r.length} selected`:""})),headingTitle:e.title,primaryButton:{disabled:r.length>10||0===r.length,buttonType:"primary",buttonText:"Select",size:"small",onClick:()=>{e.setSelectedProducts(r),e.onClose()}},secondaryButton:e.secondaryButtonProps,footerShadow:!0},{children:t(x,Object.assign({},e,{selectedProducts:r,setSelectedProducts:c}))}))};export{_ as PricePleaseProductPicker,x as ProductPickerContent};
|
|
@@ -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
|
-
import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import r from"../../assets/icons/chevronRight.svg.js";import{useRef as i,useState as s,useEffect as c}from"react";import{CheckBox as n}from"../checkBox/CheckBox.js";import{IconButton as l}from"../icon-button/IconButton.js";import{BikShimmer as a}from"../shimmer/ShimmerComponent/BikShimmer.js";import{Tag as d}from"../tag/Tag.js";import{TitleRegular as h}from"../TypographyStyle.js";import{CollectionCardStyle as u,CollectionCardInfoStyle as m,CollectionCardDetailStyle as p,CollectionNameHolder as v}from"./style.js";const g=(e,t,o)=>{if(e.length<=t)return e;const r=e.slice(0,t-1);return(o?r.slice(0,r.lastIndexOf(" ")):r)+"..."},b=o=>{const{collections:r,selectedCollectionsDispatch:n,setCollectionId:l,selectedCollections:d,setScreen:h,collectionFetcher:u,collectionsDispatch:m,pagingControls:p,storeId:v,setSaveDisabled:g}=o,b=i(null),y=i(p.curPage),f=(null==d?void 0:d.isCustom)||!1,[j,k]=s(!1);c((()=>{y.current=p.curPage}),[p.curPage]),c((()=>{const e=new IntersectionObserver((e=>{e[0].isIntersecting&&y.current>0&&(g(!0),k(!0),u(y.current,v).then((e=>{m({type:"paged",data:(null==e?void 0:e.collections)||{}}),p.setCurPage(y.current+1),k(!1),g(!1)})).catch())}),{threshold:1});return b.current&&e.observe(b.current),()=>{b.current&&e.unobserve(b.current)}}),[b]);const x=e=>{var t,o;let i=0,s=0;if(d[e]){const c=null===(t=r[e])||void 0===t?void 0:t.products;c&&Object.keys(c).forEach((e=>{var t;const o=null===(t=c[e])||void 0===t?void 0:t.variants;o&&Object.keys(o).forEach((e=>i+=1))}));const n=null===(o=d[e])||void 0===o?void 0:o.products;return n&&Object.keys(n).forEach((e=>{var t;const o=null===(t=n[e])||void 0===t?void 0:t.variants;o&&Object.keys(o).forEach((e=>s+=1))})),!(i<=0&&s>0)&&(s>0&&i!==s)}return!1};return e("div",{children:[Object.keys(r).length?Object.keys(r).map((e=>t(C,{data:r[e],isDisabled:f&&!(null==d?void 0:d[e]),isChecked:!!(null==d?void 0:d[e]),isPartiallyChecked:x(e),selectedCollectionsDispatch:n,setCollectionId:l,setScreen:h,id:e},e))):[1,2,3,4,5,6,7,8,9,10].map(((e,o)=>t("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:t(a,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),o))),t("div",{ref:b}),j&&[1,2,3,4,5].map(((e,o)=>t("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:t(a,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),o)))]})},C=i=>{const{data:s,selectedCollectionsDispatch:c,setCollectionId:a,isPartiallyChecked:b,setScreen:C,id:y,isChecked:f,isDisabled:j}=i;return e(u,Object.assign({isDisabled:j},{children:[e(m,{children:[t(n,{isDisabled:j,isChecked:f,isPartiallyChecked:b,onValueChange:function(e,t){c(e?{type:"selected",data:{id:y,val:s}}:{type:"unselected",data:{id:y}}),a(e?y:"")}}),t(p,{children:e(v,{children:[t(h,{children:g(s.name,40,!0)}),s.isSmartCollection?t(d,{tagText:"Smart Collection",type:"warning"}):t(o,{})]})})]}),t(l,{onClick:()=>{j||(a(y),C("products"))},Icon:r})]}))};export{b as CollectionsScreen,g as truncate};
|
|
@@ -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
|
-
import{jsx as e,Fragment as t,jsxs as o}from"react/jsx-runtime";import{useReducer as c,useState as l,useEffect as r}from"react";import{Button as s}from"../button/Button.js";import{StyledModal as i}from"../modals/styledModal.js";import{CollectionsScreen as d}from"./collectionScreen.js";import{ProductsScreen as n}from"./productScreen.js";import{collectionsReducer as a,selectedColectionsReducer as u,CollectionIdContext as p}from"./reducers.js";import{SelectedScreen as h}from"./selectedScreen.js";import{ContainerStyle as m,ScrollContainerStyle as v}from"./style.js";const b=b=>{const{storeId:f,selectedItems:y,onClose:j,visible:C,zIndex:S}=b,[g,x]=c(a,{}),[D,I]=l("collections"),[k,F]=l(""),[O,T]=l(0),[w,P]=c(u,Object.keys(y).length?y:{}),[E,A]=l(!1),[z,B]=l(0);return r((()=>{let e=0;Object.keys(w||[]).forEach((t=>{var o;Object.keys((null===(o=w[t])||void 0===o?void 0:o.products)||[]).forEach((o=>{var c,l;Object.keys((null===(l=null===(c=w[t].products)||void 0===c?void 0:c[o])||void 0===l?void 0:l.variants)||[]).forEach((t=>{e+=1}))}))})),B(e)})),r((()=>{A(!0),b.collectionFetcher(O,f).then((e=>{x({type:"fetched",data:(null==e?void 0:e.collections)||{}}),A(!1),T((e=>e+1))})).catch()}),[]),r((()=>{var e;k&&!(null===(e=null==g?void 0:g[k])||void 0===e?void 0:e.products)&&(A(!0),b.productFetcher(k,f).then((e=>{Object.keys(e).length&&(x({type:"productsFetched",data:{collectionId:k,products:e}}),A(!1))})).catch())}),[k]),e(i,Object.assign({zIndex:S,open:C,onClose:j,headingTitle:"collections"===D?"Select Products":"products"===D?g[k].name:"view"===D?"Selected Products":void 0,footerShadow:!0,centralContainerStyles:{width:"480px"},primaryButton:{buttonText:E?"Loading...":"Add",disabled:E,onClick:()=>b.onAdd(w)},footerLeftCustomElement:e(t,{children:e(s,z>0?{onClick:()=>{I("view")},buttonText:`${z} products selected`,buttonType:"tertiaryGray"}:{disabled:!0,buttonText:`${z} products selected`,buttonType:"tertiaryGray"})})},{children:e(m,{children:o(v,{children:["collections"===D&&e(d,{collections:g,selectedCollectionsDispatch:P,setCollectionId:F,setScreen:I,selectedCollections:w,collectionFetcher:b.collectionFetcher,storeId:f,collectionsDispatch:x,setSaveDisabled:A,pagingControls:{curPage:O,setCurPage:T}}),"products"===D&&k&&e(p.Provider,Object.assign({value:k},{children:e(n,{productFetcher:b.productFetcher,setScreen:I,storeId:f,data:g[k],collectionsDispatch:x,selectedCollectionsDispatch:P,selectedData:w,setSaveDisabled:A})})),"view"===D&&e(h,{selectedCollections:w||{},selectedCollectionsDispatch:P,upliftAdditions:null,setScreen:I,collections:g})]})})}))};export{b as ProductPickerModal};
|
|
@@ -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
|
-
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import d from"../../assets/icons/box.svg.js";import{cloneDeep as l}from"lodash";import{useContext as c,useState as n,useEffect as r}from"react";import{COLORS as s}from"../../constants/Theme.js";import{CheckBox as a}from"../checkBox/CheckBox.js";import{IconButton as u}from"../icon-button/IconButton.js";import{BikShimmer as v}from"../shimmer/ShimmerComponent/BikShimmer.js";import{ShimmerImage as p}from"../shimmer-image/ShimmerImage.js";import{BodyCaption as h,TitleRegular as m}from"../TypographyStyle.js";import{truncate as y}from"./collectionScreen.js";import{CollectionIdContext as f}from"./reducers.js";import{ProductScreenHeader as j,ProductScreenCollectionCardStyle as I,ProductCardStyle as g}from"./style.js";const O=p=>{const y=c(f),{data:g,collectionsDispatch:O,selectedData:k,selectedCollectionsDispatch:C,productFetcher:D,storeId:S,setScreen:w,setSaveDisabled:x}=p,[E]=n(g),P=g.isSmartCollection||!1,A=t=>{var e,o,i,d,l,c,n,r;let s=0,a=0;return!!((null===(o=null===(e=null==k?void 0:k[y])||void 0===e?void 0:e.products)||void 0===o?void 0:o[t])&&(null===(l=Object.keys((null===(d=null===(i=null==g?void 0:g.products)||void 0===i?void 0:i[t])||void 0===d?void 0:d.variants)||[]))||void 0===l||l.forEach((()=>a++)),Object.keys((null===(r=null===(n=null===(c=null==k?void 0:k[y])||void 0===c?void 0:c.products)||void 0===n?void 0:n[t])||void 0===r?void 0:r.variants)||[]).forEach((()=>s++)),s>0&&a!==s))};r((()=>{(null==g?void 0:g.products)||(x(!0),D(y,S).then((t=>{Object.keys(t).length&&O({type:"productsFetched",data:{collectionId:y,products:t}}),x(!1)})).catch())}),[]);const V=(t,e)=>{const o=l(g);if(delete o.products,(e=Object.assign(Object.assign({},e),{catalogOnlyData:o})).productId&&g.products){const t=l(g.products[e.productId]);(null==t?void 0:t.variants)&&delete t.variants,e=Object.assign(Object.assign({},e),{catalogOnlyData:o,productOnlyData:t})}C({type:t,data:e})};return t("div",{children:[t(j,{children:[e(u,{Icon:i,height:16,onClick:()=>{w("collections")}}),e(h,Object.assign({style:{color:s.content.secondary}},{children:g.name}))]}),t("div",{children:[t(I,{children:[P?e(o,{}):e(a,{isChecked:!!(null==k?void 0:k[y]),isPartiallyChecked:(t=>{var e;let o=0,i=0;if(k[t]){const d=null==g?void 0:g.products;d&&Object.keys(d).forEach((t=>{var e;const i=null===(e=d[t])||void 0===e?void 0:e.variants;i&&Object.keys(i).forEach((t=>o+=1))}));const l=null===(e=k[t])||void 0===e?void 0:e.products;return l&&Object.keys(l).forEach((t=>{var e;const o=null===(e=l[t])||void 0===e?void 0:e.variants;o&&Object.keys(o).forEach((()=>i+=1))})),i>0&&o!==i}return!1})(y),onValueChange:function(t){C(t?{type:"selected",data:{id:y,val:g}}:{type:"unselected",data:{id:y}})}}),e("div",Object.assign({style:{width:40,height:40}},{children:e(d,{})})),e(m,{children:"All Products"})]}),Object.keys((null==E?void 0:E.products)||[]).length?Object.keys(E.products||[]).map((t=>e(b,{collectionId:y,isProductPartiallyChecked:A(t),productId:t,data:E.products[t],selectedData:k,selectedCollectionsDispatch:C,upliftAdditions:V,viewOnly:!!P},t))):[1,2,3,4,5,6,7,8,9,10].map(((t,o)=>e("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e(v,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),o)))]})]})},b=o=>{const{collectionId:i,productId:d,data:l,selectedData:c,selectedCollectionsDispatch:n,upliftAdditions:r,viewOnly:s,isProductPartiallyChecked:a}=o,u=t=>{var e,o,l,n,r,s;if(!(null===(o=null===(e=null==c?void 0:c[i])||void 0===e?void 0:e.products)||void 0===o?void 0:o[d]))return!1;return!!(null===(s=null===(r=null===(n=null===(l=null==c?void 0:c[i])||void 0===l?void 0:l.products)||void 0===n?void 0:n[d])||void 0===r?void 0:r.variants)||void 0===s?void 0:s[t])};return t("div",{children:[e(k,{isVariant:!1,data:l,productId:d,collectionId:i,isSelected:!!(null===(p=null===(v=null==c?void 0:c[i])||void 0===v?void 0:v.products)||void 0===p?void 0:p[d]),isPartiallyChecked:a,selectedCollectionsDispatch:n,upliftAdditions:r,viewOnly:s},d),Object.keys(l.variants||[]).map((t=>e(k,{isVariant:!0,data:l.variants[t],variantId:t,productId:d,viewOnly:s,collectionId:i,isSelected:u(t),selectedCollectionsDispatch:n,upliftAdditions:r},t)))]});var v,p},k=i=>{const{isVariant:d,data:l,productId:c,collectionId:n,variantId:r,isSelected:s,selectedCollectionsDispatch:u,upliftAdditions:v,viewOnly:h,isPartiallyChecked:f}=i;return t(g,Object.assign({isVariant:d},{children:[h?e(o,{}):e(a,{isChecked:s,isPartiallyChecked:f||!1,onValueChange:function(t){d?t?v("variantSelected",{productId:c,variantId:r,collectionId:n,variant:l}):u({type:"variantUnselected",data:{productId:c,variantId:r,collectionId:n}}):t?v("productSelected",{productId:c,collectionId:n,product:l}):u({type:"productUnselected",data:{productId:c,collectionId:n}})}}),e("div",{children:e(p,{width:40,height:40,imageUrl:l.image,alt:"Item",borderRadius:4})}),e(m,{children:y(l.name,40,!0)})]}))};export{k as ProductCard,b as ProductGroup,O as ProductsScreen};
|
|
@@ -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
|
-
import{cloneDeep as t}from"lodash";import{createContext as a}from"react";function d(a,d){var e,o,c,l,s,r;let u={},n="",i="",p="";switch(d.type){case"selected":return u=t(a),d.data.val.isSmartCollection&&(u={},u.isCustom=!0),u[d.data.id]=d.data.val,u;case"unselected":return u=t(a),(null==u?void 0:u.isCustom)&&(u.isCustom=!1),delete u[d.data.id],u;case"productUnselected":return u=t(a),n=d.data.productId,i=d.data.collectionId,delete u[i].products[n],Object.keys(u[i].products).length||((null==u?void 0:u.isCustom)&&(u.isCustom=!1),delete u[i]),u;case"productSelected":return u=t(a),n=d.data.productId,i=d.data.collectionId,(null==u?void 0:u[i])||(u[i]=d.data.catalogOnlyData,(null===(e=d.data.catalogOnlyData)||void 0===e?void 0:e.isSmartCollection)&&(u={},u.isCustom=!0),u[i].products={}),u[i].products[n]=d.data.product,u;case"variantSelected":return u=t(a),n=d.data.productId,i=d.data.collectionId,p=d.data.variantId,(null==u?void 0:u[i])||((null===(o=d.data.catalogOnlyData)||void 0===o?void 0:o.isSmartCollection)&&(u={},u.isCustom=!0),u[i]=d.data.catalogOnlyData,u[i].products={},u[i].products[n]=d.data.productOnlyData,u[i].products[n].variants={}),(null===(l=null===(c=null==u?void 0:u[i])||void 0===c?void 0:c.products)||void 0===l?void 0:l[n])||((null===(s=null==u?void 0:u[i])||void 0===s?void 0:s.products)||(u[i].products={}),u[i].products[n]=d.data.productOnlyData,u[i].products[n].variants={}),u[i].products[n].variants[p]=d.data.variant,u;case"variantUnselected":return u=t(a),n=d.data.productId,i=d.data.collectionId,p=d.data.variantId,delete u[i].products[n].variants[p],Object.keys(u[i].products[n].variants).length||(delete u[i].products[n],Object.keys(u[i].products).length||((null===(r=u[i])||void 0===r?void 0:r.isSmartCollection)&&(u.isCustom=!1),delete u[i])),u;default:return a}}function e(t,a){let d={};switch(a.type){case"fetched":return d=Object.assign({},a.data),d;case"productsFetched":return d=Object.assign({},t),d[a.data.collectionId].products=a.data.products,d;case"paged":return d=Object.assign(Object.assign({},t),a.data),d;default:return{}}}const o=a("");export{o as CollectionIdContext,e as collectionsReducer,d as selectedColectionsReducer};
|
|
@@ -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
|
-
import{jsxs as o,jsx as l}from"react/jsx-runtime";import t from"../../assets/icons/arrow_left.svg.js";import{IconButton as i}from"../icon-button/IconButton.js";import{BodyCaption as e}from"../TypographyStyle.js";import{ProductGroup as d}from"./productScreen.js";import{SelectedScreenHeader as r}from"./style.js";const c=c=>{const{selectedCollections:n,selectedCollectionsDispatch:s,upliftAdditions:u,setScreen:v,collections:a}=c,p=(o,l)=>{var t,i,e,d,r,c,s,u,v;let p=0,m=0;return!!((null===(i=null===(t=null==n?void 0:n[o])||void 0===t?void 0:t.products)||void 0===i?void 0:i[l])&&(null===(c=Object.keys((null===(r=null===(d=null===(e=null==a?void 0:a[o])||void 0===e?void 0:e.products)||void 0===d?void 0:d[l])||void 0===r?void 0:r.variants)||[]))||void 0===c||c.forEach((()=>m++)),Object.keys((null===(v=null===(u=null===(s=null==n?void 0:n[o])||void 0===s?void 0:s.products)||void 0===u?void 0:u[l])||void 0===v?void 0:v.variants)||[]).forEach((()=>p++)),p>0&&m!==p))};return o("div",{children:[o(r,{children:[l(i,{Icon:t,onClick:()=>{v("collections")}}),l(e,{children:"Selected Products"})]}),l("div",{children:Object.keys(n).map((o=>{var t;return Object.keys((null===(t=null==n?void 0:n[o])||void 0===t?void 0:t.products)||[]).map((t=>{let i=!1;return(null==n?void 0:n.isCustom)&&(i=!0),l(d,{collectionId:o,productId:t,data:n[o].products[t],isProductPartiallyChecked:p(o,t),selectedData:n,selectedCollectionsDispatch:s,upliftAdditions:u,viewOnly:i},t)}))}))})]})};export{c as SelectedScreen};
|
|
@@ -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
|
-
import e from"styled-components";import{COLORS as i}from"../../constants/Theme.js";const t=e.div`
|
|
2
|
-
display: flex;
|
|
3
|
-
background-color: white;
|
|
4
|
-
max-height: 600px;
|
|
5
|
-
min-height: 600px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
`,o=e.div`
|
|
8
|
-
overflow-y: scroll;
|
|
9
|
-
overflow-x: hidden;
|
|
10
|
-
`,n=e.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
|
-
`,l=e.div`
|
|
21
|
-
display: flex;
|
|
22
|
-
flex-direction: row;
|
|
23
|
-
justify-content: center;
|
|
24
|
-
align-items: center;
|
|
25
|
-
column-gap: 18px;
|
|
26
|
-
`,d=e.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
`,r=e.div`
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-direction: row;
|
|
33
|
-
max-height: 32px;
|
|
34
|
-
min-height: 32px;
|
|
35
|
-
background-color: ${i.background.base};
|
|
36
|
-
justify-content: flex-start;
|
|
37
|
-
align-items: center;
|
|
38
|
-
padding: 8px 16px;
|
|
39
|
-
`,x=e.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=e.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
|
-
`,c=e.div`
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: row;
|
|
60
|
-
max-height: 32px;
|
|
61
|
-
min-height: 32px;
|
|
62
|
-
background-color: ${i.background.base};
|
|
63
|
-
justify-content: flex-start;
|
|
64
|
-
align-items: center;
|
|
65
|
-
padding: 8px 16px;
|
|
66
|
-
`,a=e.div`
|
|
67
|
-
display: flex;
|
|
68
|
-
flex-direction: column;
|
|
69
|
-
`;export{d as CollectionCardDetailStyle,l as CollectionCardInfoStyle,n as CollectionCardStyle,a as CollectionNameHolder,t as ContainerStyle,p as ProductCardStyle,x as ProductScreenCollectionCardStyle,r as ProductScreenHeader,o as ScrollContainerStyle,c as SelectedScreenHeader};
|
|
@@ -1 +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
|
-
import{jsx as e}from"react/jsx-runtime";import{SearchIcon as o}from"../../assets/icons/searchIcon.js";import{useState as n,useEffect as t}from"react";import a from"../../assets/icons/cross.svg.js";import{Input as r}from"../input/Input.js";const s=s=>{const{isEnabled:i,onEnter:c,placeholder:l,width:d,variant:h,validate:u}=s,[m,f]=n("search"),[p,v]=n("default"),[g,b]=n(i?"none":"disabled"),[j,k]=n(s.initialValue||"");t((()=>{b(i?"none":"disabled")}),[i]);const w=e=>{i&&c(e)};return e(r,{validate:u,onFocus:()=>{"default"===p&&i&&(v("clicked"),b("active"))},width:d,state:g,leftIcon:"search"===m&&"default"===p?{icon:o}:void 0,rightIcon:"cross"===m?{icon:a,callback:()=>{f("search"),v("default"),k(""),s.onChange(""),b("none"),c("")}}:void 0,onChangeText:(e,o)=>{s.onChange(e),k(e),"keydown"!==(null==o?void 0:o.type)||13!==o.which&&13!==o.keyCode?e.trim().length?f("cross"):f("search"):w(e)},placeholder:l,variant:h,value:j,onBlur:()=>{j.length||v("default"),b("none")}})};export{s as SearchBar};
|
|
@@ -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
|
-
import{jsx as i}from"react/jsx-runtime";import{ShimmerStyled as e}from"./ShimmerStyled.js";const t=t=>i(e,Object.assign({isBrand:t.isBrand},{children:t.boxes.map(((e,t)=>i("div",{className:"shine",style:{width:e.width,height:e.height,marginTop:e.marginTop||"16px"}},t)))}));export{t as BikShimmer,t as default};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const ShimmerStyled: import("@emotion/styled").StyledComponent<{
|
|
3
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
-
} & {
|
|
6
|
-
isBrand?: boolean | undefined;
|
|
7
|
-
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import i from"@emotion/styled/base";import{keyframes as t}from"@emotion/react";const l=t`
|
|
2
|
-
0% {
|
|
3
|
-
background-position: -468px 0;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
100% {
|
|
7
|
-
background-position: 468px 0;
|
|
8
|
-
}
|
|
9
|
-
`,a=i("div","production"===process.env.NODE_ENV?{target:"eh9q9i90"}:{target:"eh9q9i90",label:"ShimmerStyled"})("display:flex;flex-direction:column;.shine{border-radius:4px;background:",(i=>i.isBrand?"linear-gradient(90deg, rgba(255, 255, 255, 0.30) 0%, rgba(224, 224, 224, 0.00) 100%)":"#f6f7f8 linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #F0F0F0 100%) no-repeat"),";background-size:800px 304px;display:inline-block;position:relative;-webkit-animation-duration:1s;-webkit-animation-fill-mode:forwards;-webkit-animation-iteration-count:infinite;-webkit-animation-name:",l,";-webkit-animation-timing-function:linear;}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlNoaW1tZXJTdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQVd3QyIsImZpbGUiOiJTaGltbWVyU3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGtleWZyYW1lcyB9IGZyb20gJ0BlbW90aW9uL3JlYWN0JztcclxuaW1wb3J0IHN0eWxlZCBmcm9tICdAZW1vdGlvbi9zdHlsZWQnO1xyXG5jb25zdCBrZXlmcmFtZXNBbmltYXRpb24gPSBrZXlmcmFtZXMgYFxuICAwJSB7XG4gICAgYmFja2dyb3VuZC1wb3NpdGlvbjogLTQ2OHB4IDA7XG4gIH1cblxuICAxMDAlIHtcbiAgICBiYWNrZ3JvdW5kLXBvc2l0aW9uOiA0NjhweCAwO1xuICB9XG5gO1xyXG5leHBvcnQgY29uc3QgU2hpbW1lclN0eWxlZCA9IHN0eWxlZC5kaXYgYFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuXG5cdC5zaGluZSB7XG5cdFx0Ym9yZGVyLXJhZGl1czogNHB4O1xuXHRcdGJhY2tncm91bmQ6ICR7KHByb3BzKSA9PiBwcm9wcy5pc0JyYW5kXHJcbiAgICA/ICdsaW5lYXItZ3JhZGllbnQoOTBkZWcsIHJnYmEoMjU1LCAyNTUsIDI1NSwgMC4zMCkgMCUsIHJnYmEoMjI0LCAyMjQsIDIyNCwgMC4wMCkgMTAwJSknXHJcbiAgICA6ICcjZjZmN2Y4IGxpbmVhci1ncmFkaWVudCh0byByaWdodCwgI2Y2ZjdmOCAwJSwgI2VkZWVmMSAyMCUsICNmNmY3ZjggNDAlLCAjRjBGMEYwIDEwMCUpIG5vLXJlcGVhdCd9O1xuXHRcdGJhY2tncm91bmQtc2l6ZTogODAwcHggMzA0cHg7XG5cdFx0ZGlzcGxheTogaW5saW5lLWJsb2NrO1xuXHRcdHBvc2l0aW9uOiByZWxhdGl2ZTtcblxuXHRcdC13ZWJraXQtYW5pbWF0aW9uLWR1cmF0aW9uOiAxcztcblx0XHQtd2Via2l0LWFuaW1hdGlvbi1maWxsLW1vZGU6IGZvcndhcmRzO1xuXHRcdC13ZWJraXQtYW5pbWF0aW9uLWl0ZXJhdGlvbi1jb3VudDogaW5maW5pdGU7XG5cdFx0LXdlYmtpdC1hbmltYXRpb24tbmFtZTogJHtrZXlmcmFtZXNBbmltYXRpb259O1xuXHRcdC13ZWJraXQtYW5pbWF0aW9uLXRpbWluZy1mdW5jdGlvbjogbGluZWFyO1xuXHR9XG5gO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1TaGltbWVyU3R5bGVkLmpzLm1hcCJdfQ== */"));export{a as ShimmerStyled};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ShimmerComponent/BikShimmer';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import{BikShimmer as o}from"../shimmer/ShimmerComponent/BikShimmer.js";const a="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c",l=l=>{let{imageUrl:s,width:d,height:n,borderRadius:m,alt:h,defaultImageUrl:c=a}=l;const[g,p]=t(!0),[b,u]=t(!1);return i((()=>{const e=new Image;return e.src=s,e.onload=()=>{u(!1),p(!1)},e.onerror=()=>{u(!0),p(!1)},()=>{e.onload=null,e.onerror=null}}),[s]),e("div",Object.assign({style:{position:"relative",width:d,height:n,borderRadius:m}},{children:[g&&r(o,{boxes:[{height:`${n}px`,width:`${d}px`,marginTop:"0px"}]}),r("img",b?{src:c,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:"block",width:"100%",height:"100%"}}:{src:s,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:g?"none":"block",width:"100%",height:"100%"}})]}))};export{l as ShimmerImage};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { ComponentMeta, ComponentStory } from '@storybook/react';
|
|
3
|
-
declare const _default: ComponentMeta<import("react").FC<import("./ShimmerImage").ShimmerImageProps>>;
|
|
4
|
-
export default _default;
|
|
5
|
-
export declare const Image: ComponentStory<import("react").FC<import("./ShimmerImage").ShimmerImageProps>>;
|
|
6
|
-
export declare const ImageWithError: ComponentStory<import("react").FC<import("./ShimmerImage").ShimmerImageProps>>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ShimmerImage';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as n,jsx as t,Fragment as o}from"react/jsx-runtime";import{COLORS as r}from"../../constants/Theme.js";import e from"../../assets/icons/errorIcon.svg.js";import i from"../../assets/icons/successIcon.svg.js";import s from"../../assets/icons/warningIcon.svg.js";import{Button as c}from"../button/Button.js";import{Spinner as a}from"../spinner/Spinner.js";import{TitleMedium as l,BodyPrimary as m}from"../TypographyStyle.js";import{StateComponentContainer as d,StateIcon as h,StateHeading as p,StateSubline as u,ButtonContainer as E}from"./StateComponent.styled.js";var g,C,f;!function(n){n.SUCCESS="success",n.ERROR="error",n.WARNING="warning",n.LOADING="loading"}(g||(g={})),function(n){n.CANCEL="cancel",n.OTHER="other"}(C||(C={})),function(n){n.SINGLE="SINGLE",n.DOUBLE="DOUBLE"}(f||(f={}));const j=j=>{var y;const I=()=>O==g.SUCCESS?t(i,{}):O==g.WARNING?t(s,{}):O==g.ERROR?t(e,{}):O===g.LOADING?t(a,{size:"large"}):void 0,{states:O,heading:R,subline:S,icon:b=I(),isButtonEnabled:L,type:N,buttonText:T,onButtonClick:v,leadingIcon:A,width:B}=j;return n(d,Object.assign({width:B},{children:[t(h,{children:b}),t(p,{children:t(l,{children:R})}),t(u,{children:t(m,Object.assign({color:r.content.secondary},{children:S}))}),null!==(y=j.children)&&void 0!==y?y:t(o,{}),L&&t(o,{children:n(E,{children:[N==f.DOUBLE&&t(c,{onClick:()=>v&&v(C.CANCEL),buttonType:"secondary",buttonText:"Cancel",matchParentWidth:!0}),t(c,{onClick:()=>v&&v(C.OTHER),buttonType:"primary",LeadingIcon:A,buttonText:null!=T?T:"Retry",matchParentWidth:!0})]})})]}))};export{C as ButtonActions,f as ButtonTypes,j as StateComponent,g as StateInterface};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import i from"styled-components";const t=i.div`
|
|
2
|
-
width: ${i=>i.width?`${i.width}px`:"400px"};
|
|
3
|
-
position: relative;
|
|
4
|
-
border-radius: 4px;
|
|
5
|
-
padding: 32px 24px 24px 24px;
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
align-items: center;
|
|
9
|
-
`,p=i.div`
|
|
10
|
-
width: 64px;
|
|
11
|
-
height: 64px;
|
|
12
|
-
`,x=i.div`
|
|
13
|
-
margin-top: 16px;
|
|
14
|
-
text-align: center;
|
|
15
|
-
max-width: 100%;
|
|
16
|
-
`,d=i.div`
|
|
17
|
-
display: flex;
|
|
18
|
-
margin-top: 24px;
|
|
19
|
-
gap: 12px;
|
|
20
|
-
width: 100%;
|
|
21
|
-
`,e=i.div`
|
|
22
|
-
margin-top: 4px;
|
|
23
|
-
max-width: 100%;
|
|
24
|
-
text-align: center;
|
|
25
|
-
max-width: 100%;
|
|
26
|
-
`;export{d as ButtonContainer,t as StateComponentContainer,x as StateHeading,p as StateIcon,e as StateSubline};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface DeleteConfirmationModalProps {
|
|
3
|
-
header: string;
|
|
4
|
-
subHeader: string;
|
|
5
|
-
confirmationText: string;
|
|
6
|
-
onDeleteConfirmed: () => void;
|
|
7
|
-
onCancelClicked: () => void;
|
|
8
|
-
}
|
|
9
|
-
export declare const DeleteConfirmationModal: React.FC<DeleteConfirmationModalProps>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import{StyledModal as t}from"../modals/styledModal.js";const n=n=>e(t,{centralContainerStyles:{width:400},onClose:()=>n.onCancelClicked(),open:!0,headingTitle:n.header,headingSubtitle:n.subHeader,primaryButton:{buttonText:n.confirmationText,buttonType:"destructive",size:"small",onClick:()=>n.onDeleteConfirmed()},secondaryButton:{buttonText:"Cancel",buttonType:"tertiaryGray",size:"small",onClick:()=>n.onCancelClicked()}});export{n as DeleteConfirmationModal};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as n}from"react/jsx-runtime";import{useState as t}from"react";import o from"../../assets/icons/errorIcon.svg.js";import e from"../../assets/icons/successIcon.svg.js";import s from"../../assets/icons/warningIcon.svg.js";import{Modal as i}from"../modals/Modal.js";import{Spinner as r}from"../spinner/Spinner.js";import{StateInterface as c,StateComponent as a}from"../states/StateComponent.js";const l=l=>{const d=()=>m==c.SUCCESS?n(e,{}):m==c.WARNING?n(s,{}):m==c.ERROR?n(o,{}):m===c.LOADING?n(r,{size:"large"}):void 0,{states:m,heading:p,subline:u,icon:g=d(),isButtonEnabled:C,type:I,buttonText:f,onButtonClick:j,leadingIcon:h,width:b,zIndex:O}=l,[x,S]=t(!0);return n(i,Object.assign({open:x,onClose:function(){l.onClose&&l.onClose(),S(!1)},closeOnOutsideClick:!(m===c.LOADING),centralContainerStyles:{display:"flex",alignItems:"center",justifyContent:"center",width:b},hideCrossButton:m===c.LOADING,zIndex:O},{children:n(a,Object.assign({states:m,heading:p,subline:u,isButtonEnabled:C,leadingIcon:h,type:I,buttonText:f,onButtonClick:j,icon:g,width:b||400},{children:l.children}))}))};export{l as StateModalComponent};
|