@bikdotai/bik-component-library 0.0.441-beta.1 → 0.0.441
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/_virtual/index.js +1 -0
- package/dist/cjs/_virtual/index2.js +1 -0
- package/dist/cjs/_virtual/index3.js +1 -0
- package/dist/cjs/_virtual/react-is.development.js +1 -0
- package/dist/cjs/_virtual/react-is.development2.js +1 -0
- package/dist/cjs/_virtual/react-is.production.min.js +1 -0
- package/dist/cjs/_virtual/react-is.production.min2.js +1 -0
- package/dist/cjs/assets/icons/WhiteStarFilled.svg.js +1 -0
- package/dist/cjs/assets/icons/bik_ai_stars_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/checkCircle.svg.js +1 -0
- package/dist/cjs/assets/icons/copy-code-icon.svg.js +1 -0
- package/dist/cjs/assets/icons/{video_camcorder.svg.js → drag_handle.svg.js} +1 -1
- package/dist/cjs/assets/icons/lto_icon.svg.js +1 -0
- package/dist/cjs/assets/icons/quotes.svg.js +1 -0
- package/dist/cjs/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/cjs/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/cjs/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/cjs/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/cjs/components/TablePagination/TablePagination.js +1 -1
- package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.d.ts +4 -2
- package/dist/cjs/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
- package/dist/cjs/components/accordion/Accordion.d.ts +2 -0
- package/dist/cjs/components/accordion/Accordion.js +1 -1
- package/dist/cjs/components/accordion/Accordion.style.d.ts +1 -0
- package/dist/cjs/components/accordion/Accordion.style.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.d.ts +12 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.d.ts +5 -0
- package/dist/cjs/components/add-variableV2/AddVariableV2.styled.js +7 -5
- package/dist/cjs/components/alerts/Alert.d.ts +3 -1
- package/dist/cjs/components/alerts/Alert.js +1 -1
- package/dist/cjs/components/alerts/Alert.styled.d.ts +2 -1
- package/dist/cjs/components/alerts/Alert.styled.js +4 -4
- package/dist/cjs/components/alerts/AlertHelper.d.ts +5 -0
- package/dist/cjs/components/alerts/AlertHelper.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +3 -0
- package/dist/cjs/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
- package/dist/cjs/components/avatar/Avatar.js +1 -1
- package/dist/cjs/components/bik-layout/BikHeader.d.ts +2 -1
- package/dist/cjs/components/bik-layout/BikHeader.js +1 -1
- package/dist/cjs/components/bik-layout/BikLayout.d.ts +2 -0
- package/dist/cjs/components/bik-layout/BikLayout.js +1 -1
- package/dist/cjs/components/bik-layout/BikProfile.js +1 -1
- package/dist/cjs/components/bik-layout/BikSidebar.d.ts +5 -0
- package/dist/cjs/components/bik-layout/BikSidebar.js +1 -1
- package/dist/cjs/components/bik-layout/CommonStyles.d.ts +10 -0
- package/dist/cjs/components/bik-layout/CommonStyles.js +1 -1
- package/dist/cjs/components/bik-layout/FeatureModal.d.ts +1 -0
- package/dist/cjs/components/bik-layout/FeatureModal.js +1 -1
- package/dist/cjs/components/bik-layout/FeatureModalV2.d.ts +12 -0
- package/dist/cjs/components/bik-layout/FeatureModalV2.js +1 -0
- package/dist/cjs/components/bik-layout/MockMenus.d.ts +13 -7
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.d.ts +13 -0
- package/dist/cjs/components/bik-layout/ShowShopifyRestrictedModal.js +1 -0
- package/dist/cjs/components/bik-layout/SidebarPopup.d.ts +12 -0
- package/dist/cjs/components/bik-layout/SidebarPopup.js +1 -0
- package/dist/cjs/components/bik-layout/SidebarStyles.d.ts +12 -0
- package/dist/cjs/components/bik-layout/SidebarStyles.js +1 -1
- package/dist/cjs/components/bik-layout/SimpleSidebar.d.ts +2 -0
- package/dist/cjs/components/bik-layout/SimpleSidebar.js +1 -1
- package/dist/cjs/components/bik-layout/index.d.ts +2 -0
- package/dist/cjs/components/button/Button.js +1 -1
- package/dist/cjs/components/button/Button.styled.d.ts +1 -0
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +3 -1
- package/dist/cjs/components/button/themes.d.ts +3 -2
- package/dist/cjs/components/button/themes.js +1 -1
- package/dist/cjs/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/cjs/components/colourInput/ColourInput.js +1 -1
- package/dist/cjs/components/curtain/Curtain.d.ts +3 -0
- package/dist/cjs/components/curtain/Curtain.js +1 -1
- package/dist/cjs/components/curtain/Curtain.styled.d.ts +7 -0
- package/dist/cjs/components/curtain/Curtain.styled.js +22 -7
- package/dist/cjs/components/curtain/CurtainHelper.d.ts +11 -69
- package/dist/cjs/components/curtain/CurtainHelper.js +1 -1
- package/dist/cjs/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/cjs/components/datePicker/DatePicker.js +1 -1
- package/dist/cjs/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountModal.d.ts +2 -0
- package/dist/cjs/components/discount-modal/DiscountModal.js +1 -1
- package/dist/cjs/components/discount-modal/DiscountUtils.d.ts +2 -0
- package/dist/cjs/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +6 -5
- package/dist/cjs/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/cjs/components/discount-modal/type.d.ts +2 -2
- package/dist/cjs/components/discount-modal/type.js +1 -1
- package/dist/cjs/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/cjs/components/dropdown/type.d.ts +1 -0
- package/dist/cjs/components/helpers/FileUploaderHelper.js +1 -1
- package/dist/cjs/components/input/Input.d.ts +3 -0
- package/dist/cjs/components/input/Input.js +1 -1
- package/dist/cjs/components/input/Input.styled.d.ts +6 -0
- package/dist/cjs/components/input/Input.styled.js +1 -1
- package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +17 -4
- package/dist/cjs/components/input-with-vars/InputWithVariables.js +4 -4
- package/dist/cjs/components/list-item/ListItem.js +1 -1
- package/dist/cjs/components/modals/Modal.d.ts +2 -0
- package/dist/cjs/components/modals/Modal.js +1 -1
- package/dist/cjs/components/modals/styledModal.d.ts +2 -0
- package/dist/cjs/components/modals/styledModal.js +1 -1
- package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +19 -0
- package/dist/cjs/components/plans/NewSubscriptionPlan.js +1 -0
- package/dist/cjs/components/plans/SubscriptionPlan.d.ts +3 -2
- package/dist/cjs/components/plans/SubscriptionPlan.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlanStyled.d.ts +7 -0
- package/dist/cjs/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/cjs/components/plans/SubscriptionPlansCollected.d.ts +16 -0
- package/dist/cjs/components/plans/SubscriptionPlansCollected.js +19 -0
- package/dist/cjs/components/plans/index.d.ts +2 -0
- package/dist/cjs/components/postPicker/postPicker.js +1 -1
- package/dist/cjs/components/product-picker-v2/collectionScreen.d.ts +2 -0
- package/dist/cjs/components/product-picker-v2/collectionScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.d.ts +13 -1
- package/dist/cjs/components/product-picker-v2/helpers/ProductHelper.js +1 -1
- package/dist/cjs/components/product-picker-v2/modal.d.ts +25 -4
- package/dist/cjs/components/product-picker-v2/modal.js +1 -1
- package/dist/cjs/components/product-picker-v2/productScreen.d.ts +7 -0
- package/dist/cjs/components/product-picker-v2/productScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.d.ts +19 -0
- package/dist/cjs/components/product-picker-v2/rearrangeScreen.js +1 -0
- package/dist/cjs/components/product-picker-v2/searchScreen.d.ts +4 -0
- package/dist/cjs/components/product-picker-v2/searchScreen.js +1 -1
- package/dist/cjs/components/product-picker-v2/style.d.ts +5 -0
- package/dist/cjs/components/product-picker-v2/style.js +53 -13
- package/dist/cjs/components/product-picker-v2/variant.d.ts +32 -0
- package/dist/cjs/components/product-picker-v2/variant.js +1 -0
- package/dist/cjs/components/product-picker-v2/variantComponents.d.ts +21 -0
- package/dist/cjs/components/product-picker-v2/variantComponents.js +1 -0
- package/dist/cjs/components/resizeImage/index.d.ts +8 -0
- package/dist/cjs/components/resizeImage/index.js +1 -0
- package/dist/cjs/components/shimmer-image/ShimmerImage.d.ts +2 -1
- package/dist/cjs/components/shimmer-image/ShimmerImage.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.d.ts +4 -2
- package/dist/cjs/components/side-modal/SideModal.js +1 -1
- package/dist/cjs/components/side-modal/SideModal.style.d.ts +4 -1
- package/dist/cjs/components/side-modal/SideModal.style.js +4 -1
- package/dist/cjs/components/slider/index.d.ts +1 -0
- package/dist/cjs/components/slider/slider.d.ts +10 -0
- package/dist/cjs/components/slider/slider.js +1 -0
- package/dist/cjs/components/star-rating/Star.d.ts +1 -0
- package/dist/cjs/components/star-rating/Star.js +1 -1
- package/dist/cjs/components/star-rating/StarRating.d.ts +1 -0
- package/dist/cjs/components/star-rating/StarRating.js +1 -1
- package/dist/cjs/components/tag/Tag.js +1 -1
- package/dist/cjs/components/tag/Tag.styled.js +1 -1
- package/dist/cjs/components/tag/model.d.ts +3 -1
- package/dist/cjs/components/tag/model.js +1 -1
- package/dist/cjs/components/tag/themes.js +1 -1
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.d.ts +9 -3
- package/dist/cjs/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.d.ts +9 -1
- package/dist/cjs/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +12 -0
- package/dist/cjs/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +4 -0
- package/dist/cjs/components/template-context-mapper/modalElements/BackTrackComponent.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/Body.d.ts +2 -0
- package/dist/cjs/components/template-context-mapper/modalElements/Body.js +6 -6
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.d.ts +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/DesktopPreview.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +6 -0
- package/dist/cjs/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.d.ts +11 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaModal.js +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.d.ts +4 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +2 -0
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +4 -1
- package/dist/cjs/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.d.ts +1 -0
- package/dist/cjs/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +3 -1
- package/dist/cjs/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.d.ts +5 -2
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +4 -3
- package/dist/cjs/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +4 -1
- package/dist/cjs/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/cjs/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
- package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.d.ts +2 -0
- package/dist/cjs/components/template-context-mapper/utils/getPreviewDimension.js +1 -0
- package/dist/cjs/components/template-context-mapper/utils/validateIsUrl.d.ts +1 -1
- package/dist/cjs/components/template-context-mapper/utils/validateIsUrl.js +1 -1
- package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/TemplatePreview.d.ts +2 -1
- package/dist/cjs/components/template-preview/TemplatePreview.js +1 -1
- package/dist/cjs/components/template-preview/WhatsApp/ChatUI.style.js +5 -5
- package/dist/cjs/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
- package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +9 -0
- package/dist/cjs/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +20 -0
- package/dist/cjs/components/template-preview/WhatsApp/MediaCard.js +1 -1
- package/dist/cjs/components/template-preview/WhatsAppTemplatePreview.d.ts +1 -0
- 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 +13 -1
- package/dist/cjs/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/cjs/components/template-preview/helpers/VariableEditorHelper.js +1 -1
- package/dist/cjs/components/template-preview/index.d.ts +1 -0
- package/dist/cjs/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.d.ts +46 -3
- package/dist/cjs/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/dist/cjs/components/testimonial-card/TestimonialCard.d.ts +14 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.js +1 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.d.ts +16 -0
- package/dist/cjs/components/testimonial-card/TestimonialCard.style.js +1 -0
- package/dist/cjs/components/testimonial-card/index.d.ts +1 -0
- package/dist/cjs/components/tooltips/Tooltip.js +1 -1
- package/dist/cjs/components/tooltips/TooltipInternal.d.ts +1 -0
- package/dist/cjs/components/tooltips/TooltipInternal.js +1 -1
- package/dist/cjs/constants/Theme.d.ts +25 -0
- package/dist/cjs/constants/Theme.js +1 -1
- package/dist/cjs/helpers/index.d.ts +2 -0
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/extends.js +1 -0
- package/dist/cjs/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -0
- package/dist/cjs/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/cjs/node_modules/@mui/base/useSlider/useSlider.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/appendOwnerState.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/areArraysEqual.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/extractEventHandlers.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/isHostComponent.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/mergeSlotProps.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/omitEventHandlers.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/resolveComponentProps.js +1 -0
- package/dist/cjs/node_modules/@mui/base/utils/useSlotProps.js +1 -0
- package/dist/cjs/node_modules/@mui/material/Slider/Slider.js +1 -0
- package/dist/cjs/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -0
- package/dist/cjs/node_modules/@mui/material/Slider/sliderClasses.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/blue.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/common.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/green.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/grey.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/lightBlue.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/orange.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/purple.js +1 -0
- package/dist/cjs/node_modules/@mui/material/colors/red.js +1 -0
- package/dist/cjs/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createMixins.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createPalette.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createTransitions.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/createTypography.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/defaultTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/identifier.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/shadows.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/styled.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/useTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/useThemeProps.js +1 -0
- package/dist/cjs/node_modules/@mui/material/styles/zIndex.js +1 -0
- package/dist/cjs/node_modules/@mui/material/utils/capitalize.js +1 -0
- package/dist/cjs/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +1 -0
- package/dist/cjs/node_modules/@mui/styled-engine/index.js +8 -0
- package/dist/cjs/node_modules/@mui/system/esm/borders.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/breakpoints.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/colorManipulator.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/compose.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createStyled.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createSpacing.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/createTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/createTheme/shape.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/cssGrid.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/memoize.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/merge.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/palette.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/propsToClassKey.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/responsivePropType.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/sizing.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/spacing.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/style.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useTheme.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +1 -0
- package/dist/cjs/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/capitalize/capitalize.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/deepmerge.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/getDisplayName.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/resolveProps.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/setRef.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useControlled/useControlled.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/useIsFocusVisible.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/esm/visuallyHidden.js +1 -0
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +10 -0
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +10 -0
- package/dist/cjs/node_modules/@mui/utils/node_modules/react-is/index.js +1 -0
- package/dist/cjs/node_modules/object-assign/index.js +7 -0
- package/dist/cjs/node_modules/prop-types/checkPropTypes.js +1 -0
- package/dist/cjs/node_modules/prop-types/factoryWithThrowingShims.js +1 -0
- package/dist/cjs/node_modules/prop-types/factoryWithTypeCheckers.js +1 -0
- package/dist/cjs/node_modules/prop-types/index.js +1 -0
- package/dist/cjs/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -0
- package/dist/cjs/node_modules/prop-types/lib/has.js +1 -0
- package/dist/cjs/node_modules/react-is/cjs/react-is.development.js +9 -0
- package/dist/cjs/node_modules/react-is/cjs/react-is.production.min.js +9 -0
- package/dist/cjs/node_modules/react-is/index.js +1 -0
- package/dist/cjs/utils/resizeImage.d.ts +1 -0
- package/dist/cjs/utils/resizeImage.js +1 -0
- package/dist/esm/_virtual/index.js +1 -0
- package/dist/esm/_virtual/index2.js +1 -0
- package/dist/esm/_virtual/index3.js +1 -0
- package/dist/esm/_virtual/react-is.development.js +1 -0
- package/dist/esm/_virtual/react-is.development2.js +1 -0
- package/dist/esm/_virtual/react-is.production.min.js +1 -0
- package/dist/esm/_virtual/react-is.production.min2.js +1 -0
- package/dist/esm/assets/icons/WhiteStarFilled.svg.js +1 -0
- package/dist/esm/assets/icons/bik_ai_stars_icon.svg.js +1 -0
- package/dist/esm/assets/icons/checkCircle.svg.js +1 -0
- package/dist/esm/assets/icons/copy-code-icon.svg.js +1 -0
- package/dist/esm/assets/icons/drag_handle.svg.js +1 -0
- package/dist/esm/assets/icons/lto_icon.svg.js +1 -0
- package/dist/esm/assets/icons/quotes.svg.js +1 -0
- package/dist/esm/components/QueryBuilder/Filters/Event/components/EventFilter.js +1 -1
- package/dist/esm/components/QueryBuilder/constants/DATE_OPERATORS_OPTIONS.js +1 -1
- package/dist/esm/components/SearchFilter/components/FilterChipListRenderer.js +1 -1
- package/dist/esm/components/SearchFilter/components/SearchFilterItem.js +1 -1
- package/dist/esm/components/TablePagination/TablePagination.js +1 -1
- package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.d.ts +4 -2
- package/dist/esm/components/access-token-troubleshoot-dialog/AccessTokenTroubleshootDialog.js +1 -1
- package/dist/esm/components/accordion/Accordion.d.ts +2 -0
- package/dist/esm/components/accordion/Accordion.js +1 -1
- package/dist/esm/components/accordion/Accordion.style.d.ts +1 -0
- package/dist/esm/components/accordion/Accordion.style.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.d.ts +12 -0
- package/dist/esm/components/add-variableV2/AddVariableV2.js +1 -1
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.d.ts +5 -0
- package/dist/esm/components/add-variableV2/AddVariableV2.styled.js +7 -5
- package/dist/esm/components/alerts/Alert.d.ts +3 -1
- package/dist/esm/components/alerts/Alert.js +1 -1
- package/dist/esm/components/alerts/Alert.styled.d.ts +2 -1
- package/dist/esm/components/alerts/Alert.styled.js +5 -5
- package/dist/esm/components/alerts/AlertHelper.d.ts +5 -0
- package/dist/esm/components/alerts/AlertHelper.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsDropdown.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.d.ts +3 -0
- package/dist/esm/components/analytics-chips-and-dropdowns/AnalyticsTrend.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/CommonStyles.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/StackedBarChart/StackedBarChart.js +1 -1
- package/dist/esm/components/avatar/Avatar.js +1 -1
- package/dist/esm/components/bik-layout/BikHeader.d.ts +2 -1
- package/dist/esm/components/bik-layout/BikHeader.js +1 -1
- package/dist/esm/components/bik-layout/BikLayout.d.ts +2 -0
- package/dist/esm/components/bik-layout/BikLayout.js +1 -1
- package/dist/esm/components/bik-layout/BikProfile.js +1 -1
- package/dist/esm/components/bik-layout/BikSidebar.d.ts +5 -0
- package/dist/esm/components/bik-layout/BikSidebar.js +1 -1
- package/dist/esm/components/bik-layout/CommonStyles.d.ts +10 -0
- package/dist/esm/components/bik-layout/CommonStyles.js +1 -1
- package/dist/esm/components/bik-layout/FeatureModal.d.ts +1 -0
- package/dist/esm/components/bik-layout/FeatureModal.js +1 -1
- package/dist/esm/components/bik-layout/FeatureModalV2.d.ts +12 -0
- package/dist/esm/components/bik-layout/FeatureModalV2.js +1 -0
- package/dist/esm/components/bik-layout/MockMenus.d.ts +13 -7
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.d.ts +13 -0
- package/dist/esm/components/bik-layout/ShowShopifyRestrictedModal.js +1 -0
- package/dist/esm/components/bik-layout/SidebarPopup.d.ts +12 -0
- package/dist/esm/components/bik-layout/SidebarPopup.js +1 -0
- package/dist/esm/components/bik-layout/SidebarStyles.d.ts +12 -0
- package/dist/esm/components/bik-layout/SidebarStyles.js +1 -1
- package/dist/esm/components/bik-layout/SimpleSidebar.d.ts +2 -0
- package/dist/esm/components/bik-layout/SimpleSidebar.js +1 -1
- package/dist/esm/components/bik-layout/index.d.ts +2 -0
- package/dist/esm/components/button/Button.js +1 -1
- package/dist/esm/components/button/Button.styled.d.ts +1 -0
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +3 -1
- package/dist/esm/components/button/themes.d.ts +3 -2
- package/dist/esm/components/button/themes.js +1 -1
- package/dist/esm/components/carousel-secondary/CarouselSecondary.js +1 -1
- package/dist/esm/components/colourInput/ColourInput.js +1 -1
- package/dist/esm/components/curtain/Curtain.d.ts +3 -0
- package/dist/esm/components/curtain/Curtain.js +1 -1
- package/dist/esm/components/curtain/Curtain.styled.d.ts +7 -0
- package/dist/esm/components/curtain/Curtain.styled.js +19 -4
- package/dist/esm/components/curtain/CurtainHelper.d.ts +11 -69
- package/dist/esm/components/curtain/CurtainHelper.js +1 -1
- package/dist/esm/components/custom-date-time/CustomDateTime.js +1 -1
- package/dist/esm/components/datePicker/DatePicker.js +1 -1
- package/dist/esm/components/discount-modal/CouponExpiration/CouponExpiration.js +1 -1
- package/dist/esm/components/discount-modal/DiscountModal.d.ts +2 -0
- package/dist/esm/components/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/discount-modal/DiscountUtils.d.ts +2 -0
- package/dist/esm/components/discount-modal/DiscountUtils.js +1 -1
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.d.ts +6 -5
- package/dist/esm/components/discount-modal/DynamicCoupon/DynamicCoupon.js +1 -1
- package/dist/esm/components/discount-modal/StaticCoupon/StaticCoupon.js +1 -1
- package/dist/esm/components/discount-modal/type.d.ts +2 -2
- package/dist/esm/components/discount-modal/type.js +1 -1
- package/dist/esm/components/dropdown/OpenedDropdown/components/menu/MenuList.js +1 -1
- package/dist/esm/components/dropdown/type.d.ts +1 -0
- package/dist/esm/components/helpers/FileUploaderHelper.js +1 -1
- package/dist/esm/components/input/Input.d.ts +3 -0
- package/dist/esm/components/input/Input.js +1 -1
- package/dist/esm/components/input/Input.styled.d.ts +6 -0
- package/dist/esm/components/input/Input.styled.js +1 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +17 -4
- package/dist/esm/components/input-with-vars/InputWithVariables.js +3 -3
- package/dist/esm/components/list-item/ListItem.js +1 -1
- package/dist/esm/components/modals/Modal.d.ts +2 -0
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/modals/styledModal.d.ts +2 -0
- package/dist/esm/components/modals/styledModal.js +1 -1
- package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +19 -0
- package/dist/esm/components/plans/NewSubscriptionPlan.js +1 -0
- package/dist/esm/components/plans/SubscriptionPlan.d.ts +3 -2
- package/dist/esm/components/plans/SubscriptionPlan.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanSelector.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlanStyled.d.ts +7 -0
- package/dist/esm/components/plans/SubscriptionPlanStyled.js +1 -1
- package/dist/esm/components/plans/SubscriptionPlansCollected.d.ts +16 -0
- package/dist/esm/components/plans/SubscriptionPlansCollected.js +19 -0
- package/dist/esm/components/plans/index.d.ts +2 -0
- package/dist/esm/components/postPicker/postPicker.js +1 -1
- package/dist/esm/components/product-picker-v2/collectionScreen.d.ts +2 -0
- package/dist/esm/components/product-picker-v2/collectionScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.d.ts +13 -1
- package/dist/esm/components/product-picker-v2/helpers/ProductHelper.js +1 -1
- package/dist/esm/components/product-picker-v2/modal.d.ts +25 -4
- package/dist/esm/components/product-picker-v2/modal.js +1 -1
- package/dist/esm/components/product-picker-v2/productScreen.d.ts +7 -0
- package/dist/esm/components/product-picker-v2/productScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/rearrangeScreen.d.ts +19 -0
- package/dist/esm/components/product-picker-v2/rearrangeScreen.js +1 -0
- package/dist/esm/components/product-picker-v2/searchScreen.d.ts +4 -0
- package/dist/esm/components/product-picker-v2/searchScreen.js +1 -1
- package/dist/esm/components/product-picker-v2/style.d.ts +5 -0
- package/dist/esm/components/product-picker-v2/style.js +47 -7
- package/dist/esm/components/product-picker-v2/variant.d.ts +32 -0
- package/dist/esm/components/product-picker-v2/variant.js +1 -0
- package/dist/esm/components/product-picker-v2/variantComponents.d.ts +21 -0
- package/dist/esm/components/product-picker-v2/variantComponents.js +1 -0
- package/dist/esm/components/resizeImage/index.d.ts +8 -0
- package/dist/esm/components/resizeImage/index.js +1 -0
- package/dist/esm/components/shimmer-image/ShimmerImage.d.ts +2 -1
- package/dist/esm/components/shimmer-image/ShimmerImage.js +1 -1
- package/dist/esm/components/side-modal/SideModal.d.ts +4 -2
- package/dist/esm/components/side-modal/SideModal.js +1 -1
- package/dist/esm/components/side-modal/SideModal.style.d.ts +4 -1
- package/dist/esm/components/side-modal/SideModal.style.js +15 -12
- package/dist/esm/components/slider/index.d.ts +1 -0
- package/dist/esm/components/slider/slider.d.ts +10 -0
- package/dist/esm/components/slider/slider.js +1 -0
- package/dist/esm/components/star-rating/Star.d.ts +1 -0
- package/dist/esm/components/star-rating/Star.js +1 -1
- package/dist/esm/components/star-rating/StarRating.d.ts +1 -0
- package/dist/esm/components/star-rating/StarRating.js +1 -1
- package/dist/esm/components/tag/Tag.js +1 -1
- package/dist/esm/components/tag/Tag.styled.js +1 -1
- package/dist/esm/components/tag/model.d.ts +3 -1
- package/dist/esm/components/tag/model.js +1 -1
- package/dist/esm/components/tag/themes.js +1 -1
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.d.ts +9 -3
- package/dist/esm/components/template-context-mapper/TemplateContextMapper.js +1 -1
- package/dist/esm/components/template-context-mapper/context/templateModalContext.d.ts +9 -1
- package/dist/esm/components/template-context-mapper/context/templateModalContext.js +1 -1
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.d.ts +12 -0
- package/dist/esm/components/template-context-mapper/custom-hooks/useAdditionalVariables.js +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.d.ts +4 -0
- package/dist/esm/components/template-context-mapper/modalElements/BackTrackComponent.js +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/Body.d.ts +2 -0
- package/dist/esm/components/template-context-mapper/modalElements/Body.js +5 -5
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.d.ts +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/DesktopPreview.js +7 -7
- package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.d.ts +6 -0
- package/dist/esm/components/template-context-mapper/modalElements/DiscountCodeComponent.js +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.d.ts +11 -0
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaModal.js +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.d.ts +4 -0
- package/dist/esm/components/template-context-mapper/modalElements/EditMediaV2.js +2 -2
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.d.ts +2 -0
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateMediaV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.d.ts +4 -1
- package/dist/esm/components/template-context-mapper/modalElements/EditWhatsAppTemplateV2.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.d.ts +1 -0
- package/dist/esm/components/template-context-mapper/modalElements/MobilePreview.js +4 -4
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.d.ts +3 -1
- package/dist/esm/components/template-context-mapper/modalElements/TemplateSelectModalContent.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.d.ts +5 -2
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnector.js +3 -3
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorWhatsApp.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/VariableConnectorsPanel.js +4 -3
- package/dist/esm/components/template-context-mapper/modalElements/VariableEditorHeader.js +1 -1
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.d.ts +4 -1
- package/dist/esm/components/template-context-mapper/modalElements/WhatsAppTemplateCardButtonV2.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/getDataFromTemplateComponent.js +1 -1
- package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.d.ts +2 -0
- package/dist/esm/components/template-context-mapper/utils/getPreviewDimension.js +1 -0
- package/dist/esm/components/template-context-mapper/utils/validateIsUrl.d.ts +1 -1
- package/dist/esm/components/template-context-mapper/utils/validateIsUrl.js +1 -1
- package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/TemplatePreview.d.ts +2 -1
- package/dist/esm/components/template-preview/TemplatePreview.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUI.style.js +1 -1
- package/dist/esm/components/template-preview/WhatsApp/ChatUiV2.js +5 -5
- package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.d.ts +9 -0
- package/dist/esm/components/template-preview/WhatsApp/LimitedTimeOffer/LimitedTimeOffer.index.js +20 -0
- package/dist/esm/components/template-preview/WhatsApp/MediaCard.js +1 -1
- package/dist/esm/components/template-preview/WhatsAppTemplatePreview.d.ts +1 -0
- 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 +13 -1
- package/dist/esm/components/template-preview/helpers/TemplateCreatorHelper.js +1 -1
- package/dist/esm/components/template-preview/helpers/VariableEditorHelper.js +1 -1
- package/dist/esm/components/template-preview/index.d.ts +1 -0
- package/dist/esm/components/template-preview/models/TemplateMeta.d.ts +1 -1
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.d.ts +46 -3
- package/dist/esm/components/template-preview/models/WhatsAppTemplate.js +1 -1
- package/dist/esm/components/testimonial-card/TestimonialCard.d.ts +14 -0
- package/dist/esm/components/testimonial-card/TestimonialCard.js +1 -0
- package/dist/esm/components/testimonial-card/TestimonialCard.style.d.ts +16 -0
- package/dist/esm/components/testimonial-card/TestimonialCard.style.js +1 -0
- package/dist/esm/components/testimonial-card/index.d.ts +1 -0
- package/dist/esm/components/tooltips/Tooltip.js +1 -1
- package/dist/esm/components/tooltips/TooltipInternal.d.ts +1 -0
- package/dist/esm/components/tooltips/TooltipInternal.js +1 -1
- package/dist/esm/constants/Theme.d.ts +25 -0
- package/dist/esm/constants/Theme.js +1 -1
- package/dist/esm/helpers/index.d.ts +2 -0
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/extends.js +1 -0
- package/dist/esm/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js +1 -0
- package/dist/esm/node_modules/@mui/base/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/esm/node_modules/@mui/base/useSlider/useSlider.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/appendOwnerState.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/areArraysEqual.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/extractEventHandlers.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/isHostComponent.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/mergeSlotProps.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/omitEventHandlers.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/resolveComponentProps.js +1 -0
- package/dist/esm/node_modules/@mui/base/utils/useSlotProps.js +1 -0
- package/dist/esm/node_modules/@mui/material/Slider/Slider.js +1 -0
- package/dist/esm/node_modules/@mui/material/Slider/SliderValueLabel.js +1 -0
- package/dist/esm/node_modules/@mui/material/Slider/sliderClasses.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/blue.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/common.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/green.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/grey.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/lightBlue.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/orange.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/purple.js +1 -0
- package/dist/esm/node_modules/@mui/material/colors/red.js +1 -0
- package/dist/esm/node_modules/@mui/material/node_modules/clsx/dist/clsx.mjs.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createMixins.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createPalette.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createTheme.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createTransitions.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/createTypography.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/defaultTheme.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/identifier.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/shadows.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/styled.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/useTheme.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/useThemeProps.js +1 -0
- package/dist/esm/node_modules/@mui/material/styles/zIndex.js +1 -0
- package/dist/esm/node_modules/@mui/material/utils/capitalize.js +1 -0
- package/dist/esm/node_modules/@mui/material/utils/shouldSpreadAdditionalProps.js +1 -0
- package/dist/esm/node_modules/@mui/styled-engine/index.js +8 -0
- package/dist/esm/node_modules/@mui/system/esm/borders.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/breakpoints.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/colorManipulator.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/compose.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createStyled.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createBreakpoints.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createSpacing.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/createTheme.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/createTheme/shape.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/cssGrid.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/memoize.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/merge.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/palette.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/propsToClassKey.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/responsivePropType.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/sizing.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/spacing.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/style.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useTheme.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/getThemeProps.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useThemeProps/useThemeProps.js +1 -0
- package/dist/esm/node_modules/@mui/system/esm/useThemeWithoutDefault.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/capitalize/capitalize.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/composeClasses/composeClasses.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/deepmerge.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/formatMuiErrorMessage.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/getDisplayName.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/resolveProps.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/setRef.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useControlled/useControlled.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useForkRef/useForkRef.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/useIsFocusVisible.js +1 -0
- package/dist/esm/node_modules/@mui/utils/esm/visuallyHidden.js +1 -0
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.development.js +10 -0
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/cjs/react-is.production.min.js +10 -0
- package/dist/esm/node_modules/@mui/utils/node_modules/react-is/index.js +1 -0
- package/dist/esm/node_modules/object-assign/index.js +6 -0
- package/dist/esm/node_modules/prop-types/checkPropTypes.js +1 -0
- package/dist/esm/node_modules/prop-types/factoryWithThrowingShims.js +1 -0
- package/dist/esm/node_modules/prop-types/factoryWithTypeCheckers.js +1 -0
- package/dist/esm/node_modules/prop-types/index.js +1 -0
- package/dist/esm/node_modules/prop-types/lib/ReactPropTypesSecret.js +1 -0
- package/dist/esm/node_modules/prop-types/lib/has.js +1 -0
- package/dist/esm/node_modules/react-is/cjs/react-is.development.js +9 -0
- package/dist/esm/node_modules/react-is/cjs/react-is.production.min.js +9 -0
- package/dist/esm/node_modules/react-is/index.js +1 -0
- package/dist/esm/utils/resizeImage.d.ts +1 -0
- package/dist/esm/utils/resizeImage.js +1 -0
- package/package.json +7 -5
- package/dist/esm/assets/icons/video_camcorder.svg.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{jsxs as e,jsx as t,Fragment as o}from"react/jsx-runtime";import c from"../../assets/icons/search.svg.js";import{useReducer as r,useState as i,useRef as s,useEffect as n}from"react";import{COLORS as l}from"../../constants/Theme.js";import{Button as d}from"../button/Button.js";import{Input as a}from"../input/Input.js";import{StyledModal as h}from"../modals/styledModal.js";import{Spinner as u}from"../spinner/Spinner.js";import{Tag as p}from"../tag/Tag.js";import{CollectionsScreen as m}from"./collectionScreen.js";import{ProductsScreen as C}from"./productScreen.js";import{RearrangeScreen as g}from"./rearrangeScreen.js";import{collectionsReducer as b,selectedColectionsReducer as v,CollectionIdContext as y}from"./reducers.js";import{SearchScreen as f}from"./searchScreen.js";import{SelectedScreen as S}from"./selectedScreen.js";import{ContainerStyle as P,ScrollContainerStyle as j}from"./style.js";import{OUT_OF_STOCK_ACTION as x}from"./type.js";var k;!function(e){e.Collections="collections",e.RearrangeProducts="rearrange",e.SelectedProducts="view",e.SearchProducts="searchProducts",e.Products="products"}(k||(k={}));const T=T=>{const{storeId:I,selectedItems:O,onClose:R,visible:D,zIndex:F,limit:w,hideCollectionCheckbox:E,hideProductCheckbox:V,outOfStockAction:A=x.BLUR,hideVariantCheckbox:B,selectProductsFromCustomCollection:L,hideSelectionCount:M,title:z,width:G,renderWithoutModal:H,onClickSave:W,pickerType:$,hideProductVariants:K=!1,startupScreen:U=k.Collections,rearrangeEnabled:Y}=T,[q,J]=r(b,{}),[N,Q]=i([k.Collections,k.RearrangeProducts].includes(U)?U:k.Collections),[X,Z]=i("grid"),[_,ee]=i(""),[te,oe]=i(0),[ce,re]=i(!1),[ie,se]=i(0),[ne,le]=i(""),[de,ae]=i(!1),[he,ue]=i(!1),[pe,me]=i(),[Ce,ge]=r(v,Object.keys(O).length>0?O:{}),be=s(null);n((()=>{re(!0),ue(!0),T.collectionFetcher(te,I).then((e=>{J({type:"fetched",data:(null==e?void 0:e.collections)||{}}),re(!1),oe((e=>e+1)),ue(!1)})).catch()}),[]),n((()=>{let e=0;Object.keys(Ce||[]).forEach((t=>{var o;Object.keys((null===(o=Ce[t])||void 0===o?void 0:o.products)||[]).forEach((o=>{var c,r;Object.keys((null===(r=null===(c=Ce[t].products)||void 0===c?void 0:c[o])||void 0===r?void 0:r.variants)||[]).forEach((()=>{e+=1}))}))})),se(e)})),n((()=>{var e;_&&!(null===(e=null==q?void 0:q[_])||void 0===e?void 0:e.products)&&(re(!0),T.productFetcher(_,I).then((e=>{Object.keys(e).length&&J({type:"productsFetched",data:{collectionId:_,products:e}}),re(!1)})).catch())}),[_]),n((()=>{const e=setTimeout((()=>{"rearrange"!==N&&(ne.length?(ae(!0),T.searchFetcher(I,ne).then((e=>{me(Object.assign({},e)),Q("searchProducts"),re(!1),ae(!1)}))):Q("collections"))}),800);return()=>clearTimeout(e)}),[ne]),n((()=>{W&&(T.onAdd(Ce,ie),ve())}),[W]);const ve=()=>{ge({type:"reset",data:{}})},ye=e(P,{children:[T.postHeader&&t("div",Object.assign({style:{padding:"0 24px"}},{children:T.postHeader})),!T.hideGlobalSearch&&t(o,{children:("collections"===N||"searchProducts"===N)&&t("div",Object.assign({style:{padding:H?"8px 16px":"12px 24px",borderBottom:"1px solid #E0E0E0"}},{children:t(a,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>de?t(u,{size:"small",color:l.content.primary}):t(c,{})},id:"listInput",height:"24px",type:"text",value:ne,onChangeText:e=>{e.length&&e.trim().length?le(e):le("")}})}))}),e(j,Object.assign({ref:be},{children:["collections"===N&&t(m,{customCollectionRestriction:T.customCollectionRestriction,dataLoading:he,collections:q,selectedCollectionsDispatch:ge,setCollectionId:ee,setScreen:Q,selectedCollections:Ce,collectionFetcher:T.collectionFetcher,storeId:I,collectionsDispatch:J,setSaveDisabled:re,pagingControls:{curPage:te,setCurPage:oe},hideCollectionCheckbox:E,renderWithoutModal:H,pickerType:$}),"products"===N&&_&&t(y.Provider,Object.assign({value:_},{children:t(C,{hideInCollectionSearch:T.hideInCollectionSearch,customCollectionRestriction:T.customCollectionRestriction,productFetcher:T.productFetcher,setScreen:Q,storeId:I,data:q[_],collectionsDispatch:J,selectedCollectionsDispatch:ge,selectedData:Ce,setSaveDisabled:re,searchInCollectionFetcher:T.searchInCollectionFetcher,hideProductCheckbox:V,outOfStockAction:A,hideVariantCheckbox:B,selectProductsFromCustomCollection:L,renderWithoutModal:H,pickerType:$,hideProductVariants:K})})),"view"===N&&t(S,{selectedCollections:Ce||{},selectedCollectionsDispatch:ge,setScreen:Q,collections:q}),"rearrange"===N&&t(g,{selectedCollections:Ce||{},selectedCollectionsDispatch:ge,setScreen:Q,outOfStockAction:A,rearrangeViewType:"grid"===X?"list":"grid",scrollContainerRef:be}),"searchProducts"===N&&t(f,{customCollectionRestriction:T.customCollectionRestriction,selectedCollections:Ce||{},searchedCollections:pe||{},selectedCollectionsDispatch:ge,setScreen:Q,collections:q,onBackPress:()=>{le(""),me({})},pickerType:$,hideProductCheckbox:V,hideProductVariants:K,hideVariantCheckbox:B})]}))]});return t(o,{children:H?ye:t(h,Object.assign({zIndex:F,open:D,onClose:()=>{null==R||R(),ve()},headingTitle:z||("collections"===N||"products"===N?"Select Products":"view"===N?"Selected Products":"searchProducts"===N?"Searched Products":"rearrange"===N?"Rearrange Products":void 0),footerShadow:!0,centralContainerStyles:{width:G||"480px"},headerRightCustomElement:"rearrange"===N?(console.log("ignore:",Z),t(o,{})):t(o,{}),primaryButton:{buttonText:ce?"Loading...":N===k.RearrangeProducts?"Done":"Add",disabled:ce||ie<1||w&&ie>w||!1,onClick:()=>{T.onAdd(Ce,ie),ve()}},footerLeftCustomElement:M?t(o,{}):w&&ie>w?t(p,{tagText:`You can only select ${w} products`,type:"negative"}):t(d,ie>0?{onClick:()=>{Q(Y?k.RearrangeProducts:k.SelectedProducts)},buttonText:`${ie} products selected`,buttonType:["rearrange","view"].includes(N)?"tertiaryGray":"tertiary",disabled:["rearrange","view"].includes(N)}:{disabled:!0,buttonText:`${ie} products selected`,buttonType:"tertiaryGray"})},{children:ye}))})};export{T as ProductPickerModal,k as ScreenName};
|
|
@@ -18,6 +18,9 @@ interface ProductsScreenInterface {
|
|
|
18
18
|
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
19
19
|
hideVariantCheckbox?: boolean;
|
|
20
20
|
selectProductsFromCustomCollection?: boolean;
|
|
21
|
+
renderWithoutModal?: boolean;
|
|
22
|
+
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
23
|
+
hideProductVariants?: boolean;
|
|
21
24
|
}
|
|
22
25
|
export declare const ProductsScreen: (props: ProductsScreenInterface) => import("react/jsx-runtime").JSX.Element;
|
|
23
26
|
interface ProductGroupInterface {
|
|
@@ -32,6 +35,8 @@ interface ProductGroupInterface {
|
|
|
32
35
|
hideProductCheckbox?: boolean;
|
|
33
36
|
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
34
37
|
hideVariantCheckbox?: boolean;
|
|
38
|
+
hideProductVariants?: boolean;
|
|
39
|
+
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
35
40
|
}
|
|
36
41
|
export declare const ProductGroup: (props: ProductGroupInterface) => import("react/jsx-runtime").JSX.Element;
|
|
37
42
|
interface ProductCardInterface {
|
|
@@ -48,6 +53,8 @@ interface ProductCardInterface {
|
|
|
48
53
|
hideProductCheckbox?: boolean;
|
|
49
54
|
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
50
55
|
hideVariantCheckbox?: boolean;
|
|
56
|
+
hideProductVariants?: boolean;
|
|
57
|
+
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
51
58
|
}
|
|
52
59
|
export declare const ProductCard: (props: ProductCardInterface) => import("react/jsx-runtime").JSX.Element;
|
|
53
60
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import c from"../../assets/icons/box.svg.js";import d from"../../assets/icons/search.svg.js";import{cloneDeep as
|
|
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 c from"../../assets/icons/box.svg.js";import d from"../../assets/icons/search.svg.js";import{cloneDeep as r}from"lodash";import{useContext as n,useState as l,useEffect as s}from"react";import{Tag as a}from"../tag/Tag.js";import{COLORS as u}from"../../constants/Theme.js";import{CheckBox as p}from"../checkBox/CheckBox.js";import{IconButton as h}from"../icon-button/IconButton.js";import{Input as v}from"../input/Input.js";import{BikShimmer as m}from"../shimmer/ShimmerComponent/BikShimmer.js";import{ShimmerImage as y}from"../shimmer-image/ShimmerImage.js";import{Spinner as f}from"../spinner/Spinner.js";import{Tooltip as g}from"../tooltips/Tooltip.js";import{BodyCaption as k,TitleRegular as b}from"../TypographyStyle.js";import{truncate as j}from"./collectionScreen.js";import{EmptyState as C}from"./emptyState.js";import{ProductHelper as I}from"./helpers/ProductHelper.js";import{CollectionIdContext as O}from"./reducers.js";import{ProductScreenHeader as x,ProductScreenCollectionCardStyle as P,ProductCardStyle as S}from"./style.js";import{OUT_OF_STOCK_ACTION as V}from"./type.js";import{liftTheStateUp as T}from"./utility.js";const w=o=>{const a=n(O),{data:y,collectionsDispatch:g,selectedData:j,selectedCollectionsDispatch:I,productFetcher:S,storeId:w,setScreen:E,setSaveDisabled:A,hideInCollectionSearch:B,customCollectionRestriction:R,hideProductCheckbox:U,outOfStockAction:F=V.BLUR,hideVariantCheckbox:H=!1,selectProductsFromCustomCollection:L=!1,pickerType:W,hideProductVariants:z}=o,[K,N]=l(""),[_,q]=l(!1),[G,J]=l(y);s((()=>{const t=setTimeout((()=>{K.length?(q(!0),o.searchInCollectionFetcher(w,a,K).then((t=>{var e;const o=r(y);o.products={};for(const i of t)(null===(e=null==y?void 0:y.products)||void 0===e?void 0:e[i])&&(o.products[i]=y.products[i]);J(o),A(!1),q(!1)}))):J(y)}),800);return()=>clearTimeout(t)}),[K]);const M=!!R&&y.isSmartCollection,Q=t=>{var e,o,i,c,d,r,n,l;let s=0,u=0;return!!((null===(o=null===(e=null==j?void 0:j[a])||void 0===e?void 0:e.products)||void 0===o?void 0:o[t])&&(null===(d=Object.keys((null===(c=null===(i=null==y?void 0:y.products)||void 0===i?void 0:i[t])||void 0===c?void 0:c.variants)||[]))||void 0===d||d.forEach((()=>u++)),Object.keys((null===(l=null===(n=null===(r=null==j?void 0:j[a])||void 0===r?void 0:r.products)||void 0===n?void 0:n[t])||void 0===l?void 0:l.variants)||[]).forEach((()=>s++)),s>0&&u!==s))};s((()=>{(null==y?void 0:y.products)||X()}),[]);const X=()=>{A(!0),q(!0),S(a,w).then((t=>{Object.keys(t).length&&(g({type:"productsFetched",data:{collectionId:a,products:t}}),J(Object.assign(Object.assign({},G),{products:t}))),A(!1),q(!1)})).catch()},Y=(t,e)=>{const o=T(e,y);I({type:t,data:Object.assign(Object.assign({},o),{isRestricted:R})})};return t("div",{children:[t(x,{children:[e(h,{Icon:i,height:16,onClick:()=>{E("collections")}}),e(k,Object.assign({style:{color:u.content.secondary}},{children:y.name}))]}),!B&&e("div",Object.assign({style:{padding:16,height:"76px",borderBottom:"1px solid #E0E0E0"}},{children:e(v,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>_&&K.length?e(f,{size:"small",color:u.content.primary}):e(d,{})},id:"listInput",height:"24px",type:"text",value:K,onChangeText:t=>{t.length&&t.trim().length?N(t):N("")},placeholder:"Search products in this collection..."})})),t("div",{children:[Object.keys((null==G?void 0:G.products)||[]).length>0&&!M&&!K.length&&!U&&t(P,{children:[e(p,{isChecked:!!(null==j?void 0:j[a]),isPartiallyChecked:(t=>{var e;let o=0,i=0;if(j[t]){const c=null==y?void 0:y.products;c&&Object.keys(c).forEach((t=>{var e;const i=null===(e=c[t])||void 0===e?void 0:e.variants;i&&Object.keys(i).forEach((t=>o+=1))}));const d=null===(e=j[t])||void 0===e?void 0:e.products;return d&&Object.keys(d).forEach((t=>{var e;const o=null===(e=d[t])||void 0===e?void 0:e.variants;o&&Object.keys(o).forEach((()=>i+=1))})),i>0&&o!==i}return!1})(a),onValueChange:function(t){I(t?{type:"selected",data:{id:a,val:y}}:{type:"unselected",data:{id:a}})}}),e("div",Object.assign({style:{width:40,height:40}},{children:e(c,{})})),e(b,{children:"All Products"})]}),Object.keys((null==G?void 0:G.products)||[]).length?Object.keys(G.products||[]).map((t=>e(D,{outOfStockAction:F,collectionId:a,isProductPartiallyChecked:Q(t),productId:t,data:G.products[t],selectedData:j,selectedCollectionsDispatch:I,viewOnly:!L&&!!M,upliftAdditions:Y,hideProductCheckbox:U,hideVariantCheckbox:H,hideProductVariants:z,pickerType:W},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(m,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),o))):e(C,{title:"No products to show",subtitle:K.length?"We couldn't find the product you were looking for":"We couldn’t find any product in this collection."})]})]})},D=o=>{const{collectionId:i,productId:c,data:d,selectedData:r,selectedCollectionsDispatch:n,viewOnly:l,upliftAdditions:s,isProductPartiallyChecked:a,hideProductCheckbox:u,outOfStockAction:p,hideVariantCheckbox:h,hideProductVariants:v,pickerType:m}=o,y=t=>{var e,o,d,n,l,s;if(!(null===(o=null===(e=null==r?void 0:r[i])||void 0===e?void 0:e.products)||void 0===o?void 0:o[c]))return!1;return!!(null===(s=null===(l=null===(n=null===(d=null==r?void 0:r[i])||void 0===d?void 0:d.products)||void 0===n?void 0:n[c])||void 0===l?void 0:l.variants)||void 0===s?void 0:s[t])};return t("div",{children:[e(E,{isVariant:!1,data:d,productId:c,collectionId:i,isSelected:!!(null===(g=null===(f=null==r?void 0:r[i])||void 0===f?void 0:f.products)||void 0===g?void 0:g[c]),isPartiallyChecked:a,selectedCollectionsDispatch:n,upliftAdditions:s,viewOnly:l,hideProductCheckbox:u,hideVariantCheckbox:h,hideProductVariants:v,pickerType:m},c),v?null:Object.keys(d.variants||[]).map((t=>e(E,{isVariant:!0,hideVariantCheckbox:h,data:d.variants[t],variantId:t,productId:c,viewOnly:l,upliftAdditions:s,collectionId:i,isSelected:y(t),selectedCollectionsDispatch:n,outOfStockAction:p},t)))]});var f,g},E=i=>{const{isVariant:c,data:d,productId:r,collectionId:n,variantId:l,isSelected:s,selectedCollectionsDispatch:u,viewOnly:h,upliftAdditions:v,isPartiallyChecked:m,hideProductCheckbox:f,outOfStockAction:k,hideVariantCheckbox:C,hideProductVariants:O,pickerType:x}=i,P=I.getProductLabels(d,k);return t(S,Object.assign({isVariant:c,onClick:t=>{"PRODUCT"===x&&O&&(t.stopPropagation(),u({type:"reset",data:{}}),v("variantSelected",{productId:r,variantId:l||Object.keys(d.variants)[0],collectionId:n,variant:d}))},isActive:s},{children:[c&&!h&&!C||!c&&!h&&!f?e(p,{isChecked:s,isPartiallyChecked:m||!1,onValueChange:function(t){c?t?v("variantSelected",{productId:r,variantId:l,collectionId:n,variant:d}):u({type:"variantUnselected",data:{productId:r,variantId:l,collectionId:n}}):t?v("productSelected",{productId:r,collectionId:n,product:d}):u({type:"productUnselected",data:{productId:r,collectionId:n}})}}):e(o,{}),e("div",{children:e(y,{width:40,height:40,imageUrl:d.image,alt:"Item",borderRadius:4})}),e(g,Object.assign({body:d.name,placement:"bottom",delay:400},{children:t("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e(b,{children:j(d.name,40,!0)}),P?e("div",Object.assign({style:{width:90,display:"flex"}},{children:e(a,{tagText:P,type:"warning",theme:"light"})})):e(o,{})]}))}))]}))};export{E as ProductCard,D as ProductGroup,w as ProductsScreen};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SelectedItems } from '.';
|
|
3
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
4
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
5
|
+
interface RearrangeScreenInterface {
|
|
6
|
+
selectedCollections: SelectedItems;
|
|
7
|
+
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
8
|
+
setScreen: React.Dispatch<React.SetStateAction<string>>;
|
|
9
|
+
rearrangeViewType: 'grid' | 'list';
|
|
10
|
+
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
11
|
+
scrollContainerRef: React.RefObject<HTMLDivElement>;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Screen will be opened on two conditions -
|
|
15
|
+
* 1. When startupScreen is 'rearrange'- Here, this screen will be opened as beginning.
|
|
16
|
+
2. When rearrangeAfterSelectionEnabled is true - Here instead of selected products screen, rearrange screen will be opened
|
|
17
|
+
*/
|
|
18
|
+
export declare const RearrangeScreen: (props: RearrangeScreenInterface) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import o from"../../assets/icons/arrow_left.svg.js";import{useState as r,useEffect as s}from"react";import{DragDropContext as c}from"react-beautiful-dnd";import{COLORS as n}from"../../constants/Theme.js";import{IconButton as i}from"../icon-button/IconButton.js";import{BodyCaption as l}from"../TypographyStyle.js";import{EmptyState as a}from"./emptyState.js";import{parseSelectedVariantsToArray as d}from"./helpers/ProductHelper.js";import{SelectedScreenHeader as p}from"./style.js";import{VariantsList as m,VariantsGrid as f}from"./variantComponents.js";const u=u=>{const{selectedCollections:h,selectedCollectionsDispatch:j,setScreen:y,rearrangeViewType:S,outOfStockAction:g,scrollContainerRef:C}=u,[b,O]=r(d(h));s((()=>{var e;null===(e=null==C?void 0:C.current)||void 0===e||e.scrollTo({top:0}),O(d(h))}),[h]);return e(c,Object.assign({onDragEnd:e=>{if(!e.destination)return;const t=b,[o]=t.splice(e.source.index,1);t.splice(e.destination.index,0,o),t.forEach(((e,t)=>{e.displayOrder=t})),O(t)}},{children:[e(p,{children:[t(i,{Icon:o,width:16,height:16,color:n.content.secondary,onClick:()=>{y("collections")}}),t(l,Object.assign({color:n.content.secondary},{children:"All Products"}))]}),Object.keys(h).length>0?"list"===S?t(m,{selectedVariants:b,setSelectedVariants:O,selectedCollectionsDispatch:j,outOfStockAction:g}):t(f,{selectedVariants:b,setSelectedVariants:O,selectedCollectionsDispatch:j}):t(a,{title:"No Products Selected",subtitle:"Selected products will appear here"})]}))};export{u as RearrangeScreen};
|
|
@@ -11,6 +11,10 @@ interface SearchScreenInterface {
|
|
|
11
11
|
[key: string]: Collection;
|
|
12
12
|
};
|
|
13
13
|
onBackPress: () => void;
|
|
14
|
+
hideVariantCheckbox?: boolean;
|
|
15
|
+
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
16
|
+
hideProductVariants?: boolean;
|
|
17
|
+
hideProductCheckbox?: boolean;
|
|
14
18
|
}
|
|
15
19
|
export declare const SearchScreen: (props: SearchScreenInterface) => import("react/jsx-runtime").JSX.Element;
|
|
16
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import{IconButton as
|
|
1
|
+
import{jsxs as o,jsx as t,Fragment as e}from"react/jsx-runtime";import i from"../../assets/icons/arrow_left.svg.js";import{IconButton as r}from"../icon-button/IconButton.js";import{BodyCaption as l}from"../TypographyStyle.js";import{EmptyState as c}from"./emptyState.js";import{ProductGroup as d}from"./productScreen.js";import{SelectedScreenHeader as s}from"./style.js";import{liftTheStateUp as n}from"./utility.js";const u=u=>{const{customCollectionRestriction:a,selectedCollections:v,searchedCollections:p,selectedCollectionsDispatch:h,setScreen:m,collections:y,onBackPress:f,hideVariantCheckbox:j,pickerType:k,hideProductVariants:b,hideProductCheckbox:C}=u,O=(o,t)=>{var e,i,r,l,c,d,s,n,u;let a=0,p=0;return!!((null===(i=null===(e=null==v?void 0:v[o])||void 0===e?void 0:e.products)||void 0===i?void 0:i[t])&&(null===(d=Object.keys((null===(c=null===(l=null===(r=null==y?void 0:y[o])||void 0===r?void 0:r.products)||void 0===l?void 0:l[t])||void 0===c?void 0:c.variants)||[]))||void 0===d||d.forEach((()=>p++)),Object.keys((null===(u=null===(n=null===(s=null==v?void 0:v[o])||void 0===s?void 0:s.products)||void 0===n?void 0:n[t])||void 0===u?void 0:u.variants)||[]).forEach((()=>a++)),a>0&&p!==a))};return o("div",{children:[o(s,{children:[t(r,{Icon:i,onClick:()=>{m("collections"),f()}}),t(l,{children:"Searched Products"})]}),t("div",{children:Object.keys(p).length?t(e,{children:Object.keys(p).map((o=>{var e;return Object.keys((null===(e=null==p?void 0:p[o])||void 0===e?void 0:e.products)||[]).map((e=>{let i=!1;return(null==p?void 0:p.isCustom)&&(i=!0),t(d,{collectionId:o,upliftAdditions:(t,e)=>((o,t,e)=>{const i=n(e,p[o]);h({type:t,data:Object.assign(Object.assign({},i),{isRestricted:a})})})(o,t,e),productId:e,data:p[o].products[e],isProductPartiallyChecked:O(o,e),selectedData:v,selectedCollectionsDispatch:h,viewOnly:i,hideProductCheckbox:C,hideVariantCheckbox:j,hideProductVariants:b,pickerType:k},e)}))}))}):t(c,{title:"No search results found",subtitle:"We couldn’t find the product you were looking for."})})]})};export{u as SearchScreen};
|
|
@@ -2,6 +2,7 @@ export declare const ContainerStyle: import("styled-components").StyledComponent
|
|
|
2
2
|
export declare const ScrollContainerStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
3
|
export declare const CollectionCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
4
4
|
isDisabled: boolean;
|
|
5
|
+
isActive: boolean;
|
|
5
6
|
}, never>;
|
|
6
7
|
export declare const CollectionCardInfoStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
7
8
|
export declare const CollectionCardDetailStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -9,6 +10,10 @@ export declare const ProductScreenHeader: import("styled-components").StyledComp
|
|
|
9
10
|
export declare const ProductScreenCollectionCardStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
10
11
|
export declare const ProductCardStyle: import("styled-components").StyledComponent<"div", any, {
|
|
11
12
|
isVariant: boolean;
|
|
13
|
+
isActive: boolean;
|
|
12
14
|
}, never>;
|
|
13
15
|
export declare const SelectedScreenHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
16
|
export declare const CollectionNameHolder: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
17
|
+
export declare const VariantCardListStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
|
+
export declare const VariantCardGridStyle: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
19
|
+
export declare const StyledHeaderRightIcon: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -9,7 +9,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
9
9
|
overflow-x: hidden;
|
|
10
10
|
`,n=e.div`
|
|
11
11
|
height: 64px;
|
|
12
|
-
background-color: ${e=>e.isDisabled?"#F0F0F0":"white"};
|
|
12
|
+
background-color: ${e=>e.isDisabled?"#F0F0F0":e.isActive?i.background.positive.light:"white"};
|
|
13
13
|
border-bottom: 1px solid #e0e0e0;
|
|
14
14
|
padding: 12px 24px;
|
|
15
15
|
display: flex;
|
|
@@ -17,7 +17,11 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
17
17
|
column-gap: 16px;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
20
|
-
|
|
20
|
+
:hover {
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
background-color: ${i.surface.hovered};
|
|
23
|
+
}
|
|
24
|
+
`,r=e.div`
|
|
21
25
|
display: flex;
|
|
22
26
|
flex-direction: row;
|
|
23
27
|
justify-content: center;
|
|
@@ -27,7 +31,7 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
27
31
|
display: flex;
|
|
28
32
|
flex-direction: column;
|
|
29
33
|
justify-content: center;
|
|
30
|
-
`,
|
|
34
|
+
`,l=e.div`
|
|
31
35
|
display: flex;
|
|
32
36
|
flex-direction: row;
|
|
33
37
|
max-height: 32px;
|
|
@@ -37,16 +41,16 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
37
41
|
align-items: center;
|
|
38
42
|
padding: 8px 16px;
|
|
39
43
|
margin-top: 16px;
|
|
40
|
-
`,
|
|
44
|
+
`,p=e.div`
|
|
41
45
|
display: flex;
|
|
42
46
|
flex-direction: row;
|
|
43
47
|
column-gap: 16px;
|
|
44
48
|
padding: 12px 16px;
|
|
45
49
|
border-bottom: 1px solid #e0e0e0;
|
|
46
50
|
align-items: center;
|
|
47
|
-
`,
|
|
51
|
+
`,x=e.div`
|
|
48
52
|
height: 64px;
|
|
49
|
-
background-color: white;
|
|
53
|
+
background-color: ${e=>e.isActive?i.background.positive.light:"white"};
|
|
50
54
|
border-bottom: 1px solid #e0e0e0;
|
|
51
55
|
padding: 12px 16px;
|
|
52
56
|
display: flex;
|
|
@@ -55,6 +59,10 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
55
59
|
justify-content: flex-start;
|
|
56
60
|
align-items: center;
|
|
57
61
|
padding-left: ${e=>e.isVariant?"42px":"16px"};
|
|
62
|
+
:hover {
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
background-color: ${i.surface.hovered};
|
|
65
|
+
}
|
|
58
66
|
`,c=e.div`
|
|
59
67
|
display: flex;
|
|
60
68
|
flex-direction: row;
|
|
@@ -67,4 +75,36 @@ import e from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
67
75
|
`,a=e.div`
|
|
68
76
|
display: flex;
|
|
69
77
|
flex-direction: column;
|
|
70
|
-
|
|
78
|
+
`,s=e.div`
|
|
79
|
+
height: 72px;
|
|
80
|
+
background: white;
|
|
81
|
+
padding: 12px 16px;
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: row;
|
|
84
|
+
gap: 16px;
|
|
85
|
+
align-items: center;
|
|
86
|
+
justify-content: center;
|
|
87
|
+
|
|
88
|
+
.tooltip-title-tag {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex: 1;
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
gap: 2px;
|
|
93
|
+
}
|
|
94
|
+
`,g=e.div`
|
|
95
|
+
height: 72px;
|
|
96
|
+
width: 72px;
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
margin: 16px;
|
|
101
|
+
`;e.div`
|
|
102
|
+
display: flex;
|
|
103
|
+
width: 32px;
|
|
104
|
+
height: 32px;
|
|
105
|
+
padding: 6px;
|
|
106
|
+
justify-content: center;
|
|
107
|
+
align-items: center;
|
|
108
|
+
border: 1px solid ${i.stroke.primary};
|
|
109
|
+
border-radius: 4px;
|
|
110
|
+
`;export{d as CollectionCardDetailStyle,r as CollectionCardInfoStyle,n as CollectionCardStyle,a as CollectionNameHolder,t as ContainerStyle,x as ProductCardStyle,p as ProductScreenCollectionCardStyle,l as ProductScreenHeader,o as ScrollContainerStyle,c as SelectedScreenHeader,g as VariantCardGridStyle,s as VariantCardListStyle};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ProductVariant } from './modal';
|
|
3
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
4
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
5
|
+
/**
|
|
6
|
+
* Extended type from Product Variant, which contains ids and name.
|
|
7
|
+
*/
|
|
8
|
+
export type ProductVariantForRearrange = ProductVariant & {
|
|
9
|
+
variantId: string;
|
|
10
|
+
productId: string;
|
|
11
|
+
collectionId: string;
|
|
12
|
+
productName: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Props type for variant card in rearrange screen
|
|
16
|
+
*/
|
|
17
|
+
export interface VariantCardInterface {
|
|
18
|
+
data: ProductVariantForRearrange;
|
|
19
|
+
selectedCollectionsDispatch?: React.Dispatch<SelectedCollectionsActions>;
|
|
20
|
+
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
21
|
+
onDelete?: () => void;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Variant card in list view format.
|
|
25
|
+
* Displays image, name and delete icon
|
|
26
|
+
*/
|
|
27
|
+
export declare const VariantCardListView: (props: VariantCardInterface) => import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
/**
|
|
29
|
+
* Variant card in grid view format.
|
|
30
|
+
* Displays only image
|
|
31
|
+
*/
|
|
32
|
+
export declare const VariantCardGridView: (props: VariantCardInterface) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsxs as t,jsx as e,Fragment as o}from"react/jsx-runtime";import i from"../../assets/icons/delete.svg.js";import r from"../../assets/icons/drag_handle.svg.js";import{COLORS as a}from"../../constants/Theme.js";import{IconButton as n}from"../icon-button/IconButton.js";import{ShimmerImage as l}from"../shimmer-image/ShimmerImage.js";import{TitleRegular as s}from"../TypographyStyle.js";import{truncate as c}from"./collectionScreen.js";import{ProductHelper as m}from"./helpers/ProductHelper.js";import{VariantCardListStyle as d,VariantCardGridStyle as h}from"./style.js";import{Tooltip as p}from"../tooltips/Tooltip.js";import{Tag as g}from"../tag/Tag.js";const j=h=>{const{data:j,selectedCollectionsDispatch:u,outOfStockAction:f}=h,b=m.getProductLabels(j,f),y=t=>{let e;return e=j.name.includes(j.productName)?j.name:`${j.productName} ${j.name}`,t?c(e,34,!0):e};return t(d,{children:[e(r,{width:24,height:24,color:a.content.placeholder}),e("div",{children:e(l,{width:40,height:40,imageUrl:j.image,alt:"Item",borderRadius:4},j.variantId)}),t("div",Object.assign({className:"tooltip-title-tag"},{children:[e(p,Object.assign({body:y(!1),placement:"bottom",delay:400},{children:e(s,{children:y(!0)})})),b?e("div",Object.assign({style:{width:90,display:"flex"}},{children:e(g,{tagText:b,type:"warning",theme:"light"})})):e(o,{})]})),e(n,{Icon:()=>e(i,{width:24,height:24,color:a.content.placeholder}),onClick:()=>{u&&u({type:"variantUnselected",data:{productId:j.productId,variantId:j.variantId,collectionId:j.collectionId}}),h.onDelete&&h.onDelete()}})]})},u=t=>{const{data:o}=t;return e(h,{children:e(p,Object.assign({body:o.name,alwaysVisible:!1,variant:"dark",placement:"bottom"},{children:e(l,{width:72,height:72,imageUrl:o.image,alt:"Item",borderRadius:4})}))})};export{u as VariantCardGridView,j as VariantCardListView};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SelectedCollectionsActions } from './reducers';
|
|
3
|
+
import { OUT_OF_STOCK_ACTION } from './type';
|
|
4
|
+
import { ProductVariantForRearrange } from './variant';
|
|
5
|
+
/**
|
|
6
|
+
* Props for list of variants - applicable both in list and grid view
|
|
7
|
+
*/
|
|
8
|
+
export type VariantsComponentProps = {
|
|
9
|
+
selectedVariants: ProductVariantForRearrange[];
|
|
10
|
+
setSelectedVariants: React.Dispatch<React.SetStateAction<ProductVariantForRearrange[]>>;
|
|
11
|
+
selectedCollectionsDispatch: React.Dispatch<SelectedCollectionsActions>;
|
|
12
|
+
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Returns a react component of variants list, which are eligible to drag and drop.
|
|
16
|
+
*/
|
|
17
|
+
export declare const VariantsList: ({ selectedVariants, setSelectedVariants, selectedCollectionsDispatch, outOfStockAction, }: VariantsComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
/**
|
|
19
|
+
* Returns a react component of variants grid, which are eligible to drag and drop.
|
|
20
|
+
*/
|
|
21
|
+
export declare const VariantsGrid: ({ selectedVariants }: VariantsComponentProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e,jsxs as r}from"react/jsx-runtime";import{useState as a}from"react";import{Droppable as t,Draggable as s}from"react-beautiful-dnd";import{COLORS as n}from"../../constants/Theme.js";import{VariantCardListView as d,VariantCardGridView as i}from"./variant.js";const l=i=>{let{selectedVariants:l,setSelectedVariants:o,selectedCollectionsDispatch:c,outOfStockAction:p}=i;const[g,b]=a(-1);function f(e){if(null==e?void 0:e.transform){const r=`translate(0px, ${e.transform.split(",").pop()}`;return Object.assign(Object.assign({},e),{transform:r})}return e}return e(t,Object.assign({droppableId:"droppable-list"},{children:(a,t)=>r("div",Object.assign({},a.droppableProps,{ref:a.innerRef,style:Object.assign({backgroundColor:n.surface.subdued,padding:"0.05px",height:l.length<8?"550px":"100%"},a.droppableProps.style)},{children:[l.map(((r,a)=>e("div",Object.assign({style:{background:n.surface.hovered,margin:"5px",boxShadow:a===g?"0px 4px 12px rgba(0, 0, 0, 0.12)":""},onMouseEnter:()=>b(a),onMouseLeave:()=>b(-1)},{children:e(s,Object.assign({draggableId:`${r.productId}-${r.variantId}`,index:a},{children:(t,s)=>e("div",Object.assign({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{style:f(Object.assign(Object.assign({},t.draggableProps.style),t.draggableSnapshot))},{children:e(d,{data:r,selectedCollectionsDispatch:c,onDelete:()=>{const e=l.slice();e[a].displayOrder=null,e.splice(a,1),o(e)},outOfStockAction:p},`${r.productId}-${r.variantId}`)}))}),`${r.productId}-${r.variantId}`)}),`${r.productId}-${r.variantId}`))),a.placeholder&&t.isDraggingOver?e("div",Object.assign({style:{background:n.surface.hovered,margin:"5px"}},{children:a.placeholder})):null]}))}))},o=a=>{let{selectedVariants:n}=a;return e(t,Object.assign({droppableId:"droppable-horizontal"},{children:a=>r("div",Object.assign({},a.droppableProps,{ref:a.innerRef,style:Object.assign(Object.assign({},a.droppableProps.style),{display:"flex"})},{children:[e(t,Object.assign({droppableId:"droppable-vertical",direction:"horizontal"},{children:a=>r("div",Object.assign({},a.droppableProps,{ref:a.innerRef,style:Object.assign(Object.assign({},a.droppableProps.style),{display:"flex",flexWrap:"wrap",flexDirection:"row"})},{children:[n.map(((a,t)=>e(s,Object.assign({draggableId:`${a.productId}-${a.variantId}`,index:t},{children:(t,s)=>r("div",Object.assign({ref:t.innerRef},t.draggableProps,t.dragHandleProps,{children:[e(i,{data:a}),t.placeholder]}))}),`${a.productId}-${a.variantId}`))),a.placeholder]}))})),a.placeholder]}))}))};export{o as VariantsGrid,l as VariantsList};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{useState as e,useEffect as r}from"react";import{resizeImage as i}from"../../utils/resizeImage.js";const m=m=>{let{imageUrl:o,targetSize:s,alt:a,style:c}=m;const[l,g]=e("");return r((()=>{i(o,s).then((t=>{g(t)})).catch((t=>{g(o)}))}),[o,s]),t("img",{alt:a,src:l,height:s,width:s,style:c})};export{m as ResizableImage};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export type ShimmerImageProps = {
|
|
3
3
|
imageUrl: string;
|
|
4
|
-
width: number;
|
|
4
|
+
width: number | string;
|
|
5
5
|
height: number;
|
|
6
6
|
alt?: string;
|
|
7
7
|
borderRadius?: number;
|
|
8
8
|
defaultImageUrl?: string;
|
|
9
9
|
};
|
|
10
|
+
export declare const DEFAULT_IMAGE = "https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c";
|
|
10
11
|
export declare const ShimmerImage: React.FC<ShimmerImageProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsxs as e,jsx as r}from"react/jsx-runtime";import{useState as t,useEffect as i}from"react";import{BikShimmer as o}from"../shimmer/ShimmerComponent/BikShimmer.js";const a="https://firebasestorage.googleapis.com/v0/b/bikayi-chat.appspot.com/o/images-uid%2F9034204a-cbf9-4b93-8b28-ccf880d273f9?alt=media&token=318529b5-8df0-4644-85b0-40fff1dc1d5c",l=l=>{let{imageUrl:s,width:d,height:n,borderRadius:m,alt:h,defaultImageUrl:c=a}=l;const[g,p]=t(!0),[b,u]=t(!1);return i((()=>{const e=new Image;return e.src=s,e.onload=()=>{u(!1),p(!1)},e.onerror=()=>{u(!0),p(!1)},()=>{e.onload=null,e.onerror=null}}),[s]),e("div",Object.assign({style:{position:"relative",width:d,height:n,borderRadius:m}},{children:[g&&r(o,{boxes:[{height:`${n}px`,width:`${d}px`,marginTop:"0px"}]}),r("img",b?{src:c,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:"block",width:"100%",height:"100%"}}:{src:s,alt:null!=h?h:"Image",style:{borderRadius:null!=m?m:0,display:g?"none":"block",width:"100%",height:"100%"}})]}))};export{l as ShimmerImage};
|
|
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{a as DEFAULT_IMAGE,l as ShimmerImage};
|
|
@@ -7,9 +7,11 @@ export interface SideModalProps {
|
|
|
7
7
|
footerDirection?: 'row' | 'row-reverse';
|
|
8
8
|
hideCrossButton?: boolean;
|
|
9
9
|
width?: string;
|
|
10
|
-
saveButtonProps
|
|
11
|
-
cancelButtonProps
|
|
10
|
+
saveButtonProps?: ButtonProps;
|
|
11
|
+
cancelButtonProps?: ButtonProps;
|
|
12
12
|
onClose: () => void;
|
|
13
13
|
zIndex?: number;
|
|
14
|
+
hideFooter?: boolean;
|
|
15
|
+
bodyStyle?: React.CSSProperties;
|
|
14
16
|
}
|
|
15
17
|
export declare const SideModal: React.FC<SideModalProps>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import i from"../../assets/icons/cross.svg.js";import{Button as n}from"../button/Button.js";import{TitleMedium as s}from"../TypographyStyle.js";import{SideModalStyle as c,SideModalContainer as d,SideModalHeader as
|
|
1
|
+
import{jsx as o,jsxs as t,Fragment as e}from"react/jsx-runtime";import r from"react-dom";import i from"../../assets/icons/cross.svg.js";import{Button as n}from"../button/Button.js";import{TitleMedium as s}from"../TypographyStyle.js";import{SideModalStyle as c,SideModalContainer as d,SideModalHeader as h,SideModalBody as l,SideModalFooter as m,FooterButtonWrapper as a}from"./SideModal.style.js";const j=j=>r.createPortal(o(c,Object.assign({zIndex:j.zIndex},{children:t(d,Object.assign({width:j.width},{children:[t(h,{children:[o(s,{children:j.header}),!j.hideCrossButton&&o(i,{width:24,height:24,onClick:j.onClose})]}),o(l,Object.assign({hideFooter:j.hideFooter,bodyStyle:Object.assign({},j.bodyStyle)},{children:j.children})),!0===j.hideFooter?null:t(m,Object.assign({footerDirection:j.footerDirection},{children:[t(a,Object.assign({footerDirection:j.footerDirection},{children:[o(n,Object.assign({},j.saveButtonProps)),o(n,Object.assign({},j.cancelButtonProps))]})),j.footerCustomComponent?j.footerCustomComponent:o(e,{})]}))]}))})),document.body);export{j as SideModal};
|
|
@@ -5,7 +5,10 @@ export declare const SideModalContainer: import("styled-components").StyledCompo
|
|
|
5
5
|
width?: string | undefined;
|
|
6
6
|
}, never>;
|
|
7
7
|
export declare const SideModalHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const SideModalBody: import("styled-components").StyledComponent<"div", any, {
|
|
8
|
+
export declare const SideModalBody: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
hideFooter?: boolean | undefined;
|
|
10
|
+
bodyStyle: React.CSSProperties;
|
|
11
|
+
}, never>;
|
|
9
12
|
export declare const SideModalFooter: import("styled-components").StyledComponent<"div", any, {
|
|
10
13
|
footerDirection?: "row" | "row-reverse" | undefined;
|
|
11
14
|
}, never>;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import t
|
|
1
|
+
import e,{css as t}from"styled-components";import{COLORS as i}from"../../constants/Theme.js";import{ComponentZindex as o}from"../../constants/zindex.js";const r=e.div`
|
|
2
2
|
position: fixed;
|
|
3
3
|
top: 0;
|
|
4
4
|
left: 0;
|
|
5
|
-
z-index: ${
|
|
5
|
+
z-index: ${e=>e.zIndex||o.SIDE_MODAL};
|
|
6
6
|
height: 100%;
|
|
7
7
|
width: 100%;
|
|
8
8
|
background-color: rgba(0, 0, 0, 0.4);
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: flex-end;
|
|
12
|
-
`,
|
|
12
|
+
`,n=e.div`
|
|
13
13
|
height: 100%;
|
|
14
|
-
width: ${
|
|
14
|
+
width: ${e=>e.width||"566px"};
|
|
15
15
|
background: ${i.surface.standard};
|
|
16
16
|
position: relative;
|
|
17
17
|
display: flex;
|
|
18
18
|
flex-direction: column;
|
|
19
|
-
`,
|
|
19
|
+
`,d=e.div`
|
|
20
20
|
width: 100%;
|
|
21
21
|
height: 60px;
|
|
22
22
|
position: sticky;
|
|
@@ -31,24 +31,27 @@ import t from"styled-components";import{COLORS as i}from"../../constants/Theme.j
|
|
|
31
31
|
svg:hover {
|
|
32
32
|
cursor: pointer;
|
|
33
33
|
}
|
|
34
|
-
`,
|
|
34
|
+
`,s=e.div`
|
|
35
35
|
overflow-y: auto;
|
|
36
36
|
padding: 24px;
|
|
37
|
-
height: calc(100% - 120px);
|
|
38
|
-
|
|
37
|
+
height: ${e=>e.hideFooter?"calc(100% - 60px)":"calc(100% - 120px)"};
|
|
38
|
+
${e=>{let{bodyStyle:i}=e;return t`
|
|
39
|
+
${Object.keys(i).map((e=>`${e}: ${i[e]};`)).join("\n")}
|
|
40
|
+
`}}
|
|
41
|
+
`,p=e.div`
|
|
39
42
|
height: 60px;
|
|
40
43
|
width: 100%;
|
|
41
44
|
position: sticky;
|
|
42
45
|
bottom: 0;
|
|
43
46
|
display: flex;
|
|
44
|
-
flex-direction: ${
|
|
47
|
+
flex-direction: ${e=>e.footerDirection||"row"};
|
|
45
48
|
justify-content: space-between;
|
|
46
49
|
align-items: center;
|
|
47
50
|
background: ${i.surface.standard};
|
|
48
51
|
border-top: 1px solid ${i.stroke.primary};
|
|
49
52
|
padding: 0px 24px;
|
|
50
|
-
`,
|
|
53
|
+
`,a=e.div`
|
|
51
54
|
display: flex;
|
|
52
|
-
flex-direction: ${
|
|
55
|
+
flex-direction: ${e=>e.footerDirection||"row"};
|
|
53
56
|
gap: 8px;
|
|
54
|
-
`;export{
|
|
57
|
+
`;export{a as FooterButtonWrapper,s as SideModalBody,n as SideModalContainer,p as SideModalFooter,d as SideModalHeader,r as SideModalStyle};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './slider';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SliderBikProps {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
defaultValue: number;
|
|
6
|
+
onChange: (event: Event) => void;
|
|
7
|
+
step?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const BikSlider: React.FC<SliderBikProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import{COLORS as r}from"../../constants/Theme.js";import a from"../../node_modules/@mui/material/styles/styled.js";import o from"../../node_modules/@mui/material/Slider/Slider.js";const i=a(o)({marginTop:"30px",color:r.background.brand,height:8,"& .MuiSlider-track":{border:"none"},"& .MuiSlider-thumb":{height:24,width:24,backgroundColor:r.background.brand,border:`2px solid ${r.background.brand}`,"&:hover":{boxShadow:"0px 0px 0px 8px rgba(115, 29, 207, 0.08)"},"&:focused":{boxShadow:"0px 0px 0px 8px rgba(115, 29, 207, 0.33)"},"&.Mui-active":{boxShadow:"0px 0px 0px 8px rgba(115, 29, 207, 0.5)"},"&.Mui-focusVisible":{boxShadow:"0px 0px 0px 8px rgba(115, 29, 207, 0.08)"},"&:before":{display:"none"}},"& .MuiSlider-valueLabel":{lineHeight:1.2,fontSize:12,background:"unset",padding:0,width:32,height:32,borderRadius:"50% 50% 50% 0",backgroundColor:r.background.brand,transformOrigin:"bottom left",transform:"translate(50%, -100%) rotate(-45deg) scale(0)","&:before":{display:"none"},"&.MuiSlider-valueLabelOpen":{transform:"translate(50%, -100%) rotate(-45deg) scale(1)"},"& > *":{transform:"rotate(45deg)"}}}),t=r=>{let{min:a,max:o,defaultValue:t,onChange:d,step:n=1,disabled:l=!1}=r;return e(i,{valueLabelDisplay:"auto","aria-label":"bik slider",value:t,min:a,max:o,onChange:d,step:n,disabled:l})};export{t as BikSlider};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as o}from"react/jsx-runtime";import{useState as e,useEffect as r}from"react";import{COLORS as n}from"../../constants/Theme.js";import t from"../../assets/icons/starEmpty.svg.js";import l from"../../assets/icons/starFilled.svg.js";const s=s=>{let{size:i,filled:
|
|
1
|
+
import{jsx as o}from"react/jsx-runtime";import{useState as e,useEffect as r}from"react";import{COLORS as n}from"../../constants/Theme.js";import t from"../../assets/icons/starEmpty.svg.js";import l from"../../assets/icons/starFilled.svg.js";const s=s=>{let{size:i,filled:u,emptyColor:c,filledColor:a,onClick:d,asHovered:m,onHover:h,mode:E}=s;const[g,p]=e(!1);return r((()=>{null==h||h(g)}),[g]),r((()=>{m||p(!1)}),[m]),m?o(l,{onClick:()=>{null==d||d("select")},onMouseEnter:()=>p(!0),onMouseLeave:()=>p(!1),style:{cursor:"pointer"},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):g?o(l,{onMouseLeave:()=>p(!1),onMouseEnter:()=>p(!0),style:{cursor:"pointer"},onClick:()=>{null==d||d("select")},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):u?o(l,{onMouseEnter:()=>"VIEW"!==E&&p(!0),onMouseLeave:()=>"VIEW"!==E&&p(!1),style:{cursor:"VIEW"!==E?"pointer":"default"},onClick:()=>{"VIEW"!==E&&(null==d||d("de-select"))},width:i,height:i,color:null!=a?a:n.background.warning.vibrant}):o(t,{onMouseEnter:()=>"VIEW"!==E&&p(!0),onMouseLeave:()=>"VIEW"!==E&&p(!1),style:{cursor:"VIEW"!==E?"pointer":"default"},onClick:()=>{"VIEW"!==E&&(null==d||d("select"))},width:i,height:i,color:null!=c?c:n.surface.standard})};export{s as Star};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import g from"@emotion/styled/base";import{jsx as I}from"react/jsx-runtime";import{useState as C,useMemo as A,useEffect as c}from"react";import{Star as l}from"./Star.js";const e=g("div","production"===process.env.NODE_ENV?{target:"e1yh3w250"}:{target:"e1yh3w250",label:"Container"})("production"===process.env.NODE_ENV?{name:"31c8wb",styles:"display:flex;flex-direction:row;gap:12px;justify-content:start;align-items:center"}:{name:"31c8wb",styles:"display:flex;flex-direction:row;gap:12px;justify-content:start;align-items:center",map:"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN0YXJSYXRpbmcudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUk2QiIsImZpbGUiOiJTdGFyUmF0aW5nLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGpzeCBhcyBfanN4IH0gZnJvbSBcInJlYWN0L2pzeC1ydW50aW1lXCI7XHJcbmltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgdXNlRWZmZWN0LCB1c2VNZW1vLCB1c2VTdGF0ZSB9IGZyb20gJ3JlYWN0JztcclxuaW1wb3J0IHsgU3RhciB9IGZyb20gJy4vU3Rhcic7XHJcbmNvbnN0IENvbnRhaW5lciA9IHN0eWxlZC5kaXYgYFxuXHRkaXNwbGF5OiBmbGV4O1xuXHRmbGV4LWRpcmVjdGlvbjogcm93O1xuXHRnYXA6IDEycHg7XG5cdGp1c3RpZnktY29udGVudDogc3RhcnQ7XG5cdGFsaWduLWl0ZW1zOiBjZW50ZXI7XG5gO1xyXG5leHBvcnQgY29uc3QgU3RhclJhdGluZyA9ICh7IGVtcHR5Q29sb3IsIGZpbGxlZENvbG9yLCBvbkNoYW5nZSwgdmFsdWUsIG1heFZhbHVlLCBzdGFyU2l6ZSwgbW9kZSwgfSkgPT4ge1xyXG4gICAgY29uc3QgW3N0YXJzLCBzZXRTdGFyc10gPSB1c2VTdGF0ZSh2YWx1ZSAhPT0gbnVsbCAmJiB2YWx1ZSAhPT0gdm9pZCAwID8gdmFsdWUgOiAwKTtcclxuICAgIGNvbnN0IFttb3VudGVkLCBzZXRNb3VudGVkRmxhZ10gPSB1c2VTdGF0ZShmYWxzZSk7XHJcbiAgICBjb25zdCBbaG92ZXJlZFN0YXIsIHNldEhvdmVyZWRTdGFyXSA9IHVzZVN0YXRlKDApO1xyXG4gICAgY29uc3QgYXJyID0gdXNlTWVtbygoKSA9PiB7XHJcbiAgICAgICAgY29uc3QgbGltaXQgPSBtYXhWYWx1ZSAhPT0gbnVsbCAmJiBtYXhWYWx1ZSAhPT0gdm9pZCAwID8gbWF4VmFsdWUgOiA1O1xyXG4gICAgICAgIHJldHVybiBBcnJheShsaW1pdClcclxuICAgICAgICAgICAgLmZpbGwobnVsbClcclxuICAgICAgICAgICAgLm1hcCgoXywgaWR4KSA9PiBpZHggKyAxKTtcclxuICAgIH0sIFttYXhWYWx1ZV0pO1xyXG4gICAgdXNlRWZmZWN0KCgpID0+IHtcclxuICAgICAgICBpZiAobW91bnRlZCkge1xyXG4gICAgICAgICAgICBvbkNoYW5nZShzdGFycyk7XHJcbiAgICAgICAgfVxyXG4gICAgfSwgW3N0YXJzXSk7XHJcbiAgICB1c2VFZmZlY3QoKCkgPT4ge1xyXG4gICAgICAgIHNldE1vdW50ZWRGbGFnKHRydWUpO1xyXG4gICAgfSwgW10pO1xyXG4gICAgcmV0dXJuIChfanN4KENvbnRhaW5lciwgeyBjaGlsZHJlbjogYXJyLm1hcCgoaWR4KSA9PiAoX2pzeChTdGFyLCB7IGFzSG92ZXJlZDogaG92ZXJlZFN0YXIgPyBpZHggPD0gaG92ZXJlZFN0YXIgOiBmYWxzZSwgc2l6ZTogc3RhclNpemUgIT09IG51bGwgJiYgc3RhclNpemUgIT09IHZvaWQgMCA/IHN0YXJTaXplIDogMjQsIGZpbGxlZDogaG92ZXJlZFN0YXIgPyB1bmRlZmluZWQgOiBpZHggPD0gc3RhcnMsIGVtcHR5Q29sb3I6IGVtcHR5Q29sb3IsIGZpbGxlZENvbG9yOiBmaWxsZWRDb2xvciwgb25DbGljazogKGFjdGlvbikgPT4ge1xyXG4gICAgICAgICAgICAgICAgaWYgKGFjdGlvbiA9PT0gJ2RlLXNlbGVjdCcpIHtcclxuICAgICAgICAgICAgICAgICAgICBpZiAoaWR4IDwgc3RhcnMpIHtcclxuICAgICAgICAgICAgICAgICAgICAgICAgc2V0U3RhcnMoaWR4KTtcclxuICAgICAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIHNldFN0YXJzKGlkeCAtIDEpO1xyXG4gICAgICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIH1cclxuICAgICAgICAgICAgICAgIGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgICAgIHNldFN0YXJzKGlkeCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0sIG9uSG92ZXI6IChob3ZlcmVkKSA9PiB7XHJcbiAgICAgICAgICAgICAgICBpZiAoaG92ZXJlZClcclxuICAgICAgICAgICAgICAgICAgICBzZXRIb3ZlcmVkU3RhcihpZHgpO1xyXG4gICAgICAgICAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgc2V0SG92ZXJlZFN0YXIoMCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIH0sIG1vZGU6IG1vZGUgfSwgaWR4KSkpIH0pKTtcclxufTtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9U3RhclJhdGluZy5qcy5tYXAiXX0= */",toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}),t=g=>{let{emptyColor:t,filledColor:Z,onChange:b,value:i,maxValue:G,starSize:X,mode:o}=g;const[d,a]=C(null!=i?i:0),[n,s]=C(!1),[p,W]=C(0),m=A((()=>Array(null!=G?G:5).fill(null).map(((g,I)=>I+1))),[G]);return c((()=>{n&&b(d)}),[d]),c((()=>{s(!0)}),[]),I(e,{children:m.map((g=>I(l,{asHovered:!!p&&g<=p,size:null!=X?X:24,filled:p?void 0:g<=d,emptyColor:t,filledColor:Z,onClick:I=>{a("de-select"===I?g<d?g:g-1:g)},onHover:I=>{W(I?g:0)},mode:o},g)))})};export{t as StarRating};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as
|
|
1
|
+
import{jsx as i,jsxs as e}from"react/jsx-runtime";import n from"../../assets/icons/bik_ai_stars_icon.svg.js";import r from"react";import{BodyCaption as a}from"../TypographyStyle.js";import{ValidTagTypeMap as t}from"./model.js";import{Tag as s}from"./Tag.styled.js";import{getTagIconColor as c}from"./themes.js";const o=o=>{let{tagText:l,LeadingIcon:g,TrailingIcon:d,onLeadingIconClicked:m,leadingIconId:p,trailingIconId:j,onTrailingIconClicked:b,theme:h="light",type:u="neutral",variant:y="regular",version:O,cursor:f}=o;var v;let I=l,k=h,T=u;t[y][u]||(T="neutral"),"circle"===y&&(k="dark","number"==typeof I&&I>99&&(I="99+"));const w={height:16,width:16,color:c(h,T),style:{display:"block"}},N=()=>"ai"!==u||g?g:n;return i(s,Object.assign({cursor:f,theme:k,type:u,variant:y,version:O},{children:e("div",Object.assign({className:"container"},{children:[N()&&i("button",Object.assign({className:"icon-leading",onClick:m,id:`${p}-wrapper`||"leading-icon-wrapper"},{children:r.createElement(null!==(v=N())&&void 0!==v?v:"",Object.assign(Object.assign({},w),{id:p||"leading-icon"}))})),i(a,Object.assign({className:"text"},{children:I})),d&&i("button",Object.assign({className:"icon-trailing",onClick:b,id:`${j}-wrapper`||"trailing-icon-wrapper"},{children:r.createElement(d,Object.assign(Object.assign({},w),{id:j||"trailing-icon"}))}))]}))}))};o.displayName="Tag";export{o as Tag};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as
|
|
1
|
+
import c from"@emotion/styled/base";import{getPadding as l,getBackgroundColor as b,generateBorder as d,getTextColor as t}from"./themes.js";const e=c("div","production"===process.env.NODE_ENV?{target:"e930jd90"}:{target:"e930jd90",label:"Tag"})("cursor:",(c=>{var l;return null!==(l=c.cursor)&&void 0!==l?l:"default"}),";",(c=>"regular"===c.variant?"display: block;\n\t\t min-height: 26px;\n\t\t":"min-height: 20px;")," .container{display:flex;align-items:center;gap:6px;padding:",(c=>l(c.variant)),";background:",(c=>b(c.theme,c.type)),";border-radius:",(c=>"regular"===c.variant?"4px":"12px"),";",(c=>"light"===c.theme&&`border: ${"2.0"===c.version?.5:1}px solid ${d(c.type)};`)," .text{color:",(c=>t(c.theme,c.type)),";}.icon-trailing{all:unset;display:flex;}.icon-leading{all:unset;display:flex;}}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlRhZy5zdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUU4QiIsImZpbGUiOiJUYWcuc3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgZ2VuZXJhdGVCb3JkZXIsIGdldEJhY2tncm91bmRDb2xvciwgZ2V0UGFkZGluZywgZ2V0VGV4dENvbG9yLCB9IGZyb20gJy4vdGhlbWVzJztcclxuZXhwb3J0IGNvbnN0IFRhZyA9IHN0eWxlZC5kaXYgYFxuXHRjdXJzb3I6ICR7KHByb3BzKSA9PiB7IHZhciBfYTsgcmV0dXJuIChfYSA9IHByb3BzLmN1cnNvcikgIT09IG51bGwgJiYgX2EgIT09IHZvaWQgMCA/IF9hIDogJ2RlZmF1bHQnOyB9fTtcblx0JHsocHJvcHMpID0+IHByb3BzLnZhcmlhbnQgPT09ICdyZWd1bGFyJ1xyXG4gICAgPyBgZGlzcGxheTogYmxvY2s7XG5cdFx0ICAgICBtaW4taGVpZ2h0OiAyNnB4O1xuXHRcdGBcclxuICAgIDogYG1pbi1oZWlnaHQ6IDIwcHg7YH1cblx0LmNvbnRhaW5lciB7XG5cdFx0ZGlzcGxheTogZmxleDtcblx0XHRhbGlnbi1pdGVtczogY2VudGVyO1xuXHRcdGdhcDogNnB4O1xuXHRcdHBhZGRpbmc6ICR7KHByb3BzKSA9PiBnZXRQYWRkaW5nKHByb3BzLnZhcmlhbnQpfTtcblxuXHRcdGJhY2tncm91bmQ6ICR7KHByb3BzKSA9PiBnZXRCYWNrZ3JvdW5kQ29sb3IocHJvcHMudGhlbWUsIHByb3BzLnR5cGUpfTtcblxuXHRcdGJvcmRlci1yYWRpdXM6ICR7KHByb3BzKSA9PiAocHJvcHMudmFyaWFudCA9PT0gJ3JlZ3VsYXInID8gJzRweCcgOiAnMTJweCcpfTtcblxuXHRcdCR7KHByb3BzKSA9PiBwcm9wcy50aGVtZSA9PT0gJ2xpZ2h0JyAmJlxyXG4gICAgYGJvcmRlcjogJHtwcm9wcy52ZXJzaW9uID09PSAnMi4wJyA/IDAuNSA6IDF9cHggc29saWQgJHtnZW5lcmF0ZUJvcmRlcihwcm9wcy50eXBlKX07YH1cblxuXHRcdC50ZXh0IHtcblx0XHRcdGNvbG9yOiAkeyhwcm9wcykgPT4gZ2V0VGV4dENvbG9yKHByb3BzLnRoZW1lLCBwcm9wcy50eXBlKX07XG5cdFx0fVxuXG5cdFx0Lmljb24tdHJhaWxpbmcge1xuXHRcdFx0YWxsOiB1bnNldDtcblx0XHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0fVxuXG5cdFx0Lmljb24tbGVhZGluZyB7XG5cdFx0XHRhbGw6IHVuc2V0O1xuXHRcdFx0ZGlzcGxheTogZmxleDtcblx0XHR9XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVRhZy5zdHlsZWQuanMubWFwIl19 */"));export{e as Tag};
|