@bikdotai/bik-component-library 0.0.375-beta.4 → 0.0.375-beta.5
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/checkCircle.svg.js +1 -0
- package/dist/cjs/assets/icons/quotes.svg.js +1 -0
- package/dist/cjs/components/alerts/Alert.js +1 -1
- package/dist/cjs/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.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/CommonStyles.d.ts +4 -0
- package/dist/cjs/components/bik-layout/CommonStyles.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 +0 -1
- package/dist/cjs/components/bik-layout/index.d.ts +1 -0
- package/dist/cjs/components/button/Button.styled.js +1 -1
- package/dist/cjs/components/button/model.d.ts +1 -1
- package/dist/cjs/components/button/themes.d.ts +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/discount-modal/DiscountModal.js +1 -1
- package/dist/cjs/components/input-with-vars/InputWithVariables.d.ts +1 -0
- package/dist/cjs/components/input-with-vars/InputWithVariables.js +3 -3
- package/dist/cjs/components/modals/Modal.d.ts +1 -0
- package/dist/cjs/components/modals/Modal.js +1 -1
- package/dist/cjs/components/modals/styledModal.d.ts +1 -0
- package/dist/cjs/components/modals/styledModal.js +1 -1
- package/dist/cjs/components/plans/NewSubscriptionPlan.d.ts +18 -0
- package/dist/cjs/components/plans/NewSubscriptionPlan.js +1 -0
- package/dist/cjs/components/plans/SubscriptionPlan.d.ts +2 -2
- package/dist/cjs/components/plans/SubscriptionPlan.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 +14 -0
- package/dist/cjs/components/plans/SubscriptionPlansCollected.js +6 -0
- package/dist/cjs/components/plans/index.d.ts +2 -0
- 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/modal.d.ts +8 -1
- 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/style.d.ts +2 -0
- package/dist/cjs/components/product-picker-v2/style.js +13 -13
- 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/template-context-mapper/modalElements/VariableConnectorsPanel.js +1 -1
- package/dist/cjs/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/cjs/constants/Theme.d.ts +6 -0
- package/dist/cjs/constants/Theme.js +1 -1
- package/dist/cjs/index.d.ts +1 -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/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/checkCircle.svg.js +1 -0
- package/dist/esm/assets/icons/quotes.svg.js +1 -0
- package/dist/esm/components/alerts/Alert.js +1 -1
- package/dist/esm/components/analytics-chips-and-dropdowns/chart/Pie/PieChartAnalytics.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/CommonStyles.d.ts +4 -0
- package/dist/esm/components/bik-layout/CommonStyles.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 +0 -1
- package/dist/esm/components/bik-layout/index.d.ts +1 -0
- package/dist/esm/components/button/Button.styled.js +1 -1
- package/dist/esm/components/button/model.d.ts +1 -1
- package/dist/esm/components/button/themes.d.ts +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/discount-modal/DiscountModal.js +1 -1
- package/dist/esm/components/input-with-vars/InputWithVariables.d.ts +1 -0
- package/dist/esm/components/input-with-vars/InputWithVariables.js +3 -3
- package/dist/esm/components/modals/Modal.d.ts +1 -0
- package/dist/esm/components/modals/Modal.js +1 -1
- package/dist/esm/components/modals/styledModal.d.ts +1 -0
- package/dist/esm/components/modals/styledModal.js +1 -1
- package/dist/esm/components/plans/NewSubscriptionPlan.d.ts +18 -0
- package/dist/esm/components/plans/NewSubscriptionPlan.js +1 -0
- package/dist/esm/components/plans/SubscriptionPlan.d.ts +2 -2
- package/dist/esm/components/plans/SubscriptionPlan.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 +14 -0
- package/dist/esm/components/plans/SubscriptionPlansCollected.js +6 -0
- package/dist/esm/components/plans/index.d.ts +2 -0
- 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/modal.d.ts +8 -1
- 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/style.d.ts +2 -0
- package/dist/esm/components/product-picker-v2/style.js +5 -5
- 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/template-context-mapper/modalElements/VariableConnectorsPanel.js +1 -1
- package/dist/esm/components/template-preview/SmsTemplatePreview.js +1 -1
- package/dist/esm/constants/Theme.d.ts +6 -0
- package/dist/esm/constants/Theme.js +1 -1
- package/dist/esm/index.d.ts +1 -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/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { SubscriptionPlanProps } from './SubscriptionPlan';
|
|
3
|
+
export interface NewSubscriptionPlanProps extends SubscriptionPlanProps {
|
|
4
|
+
popularTestimony?: string;
|
|
5
|
+
skipRadioSelection?: boolean;
|
|
6
|
+
includeText?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
showFeaturesButton?: boolean;
|
|
9
|
+
businessDescription?: string[];
|
|
10
|
+
yearlyCode?: string;
|
|
11
|
+
isPlanSelected?: boolean;
|
|
12
|
+
onClickShowAllFeatures?: () => void;
|
|
13
|
+
showSelectedPlanChip?: boolean;
|
|
14
|
+
perMonthForYearly?: boolean;
|
|
15
|
+
}
|
|
16
|
+
type Props = NewSubscriptionPlanProps;
|
|
17
|
+
export declare const NewSubscriptionPlan: FunctionComponent<Props>;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../assets/icons/check.svg.js"),t=require("../../assets/icons/checkCircle.svg.js"),i=require("../../assets/icons/quotes.svg.js"),a=require("../../assets/icons/WhiteStarFilled.svg.js"),n=require("../button/Button.js"),r=require("./SubscriptionPlanStyled.js"),o=require("../TypographyStyle.js"),l=require("../../hooks/useCurreny.js"),c=require("../../constants/Theme.js"),d=require("../tag/Tag.js");exports.NewSubscriptionPlan=h=>{var u;const{formatCurrency:j}=l.useCurrency(),p=h.showMonthlyOptions?h.features:h.annualFeatures||[],g=h.showMonthlyOptions?h.monthlyPlan:h.yearlyPlan,m=!h.isDisabled&&h.isMostPopular,x=h.showMonthlyOptions?h.code:null!==(u=h.yearlyCode)&&void 0!==u?u:h.code,{planName:y,isSelected:b=!1,isDisabled:O=!1,onPlanSelect:C,oldPrice:S,hideMonthYearTag:v,planDescription:T,planDescriptionDiscount:N,showTrialOptions:f,freeTrialMessages:L,extraBlockMessage:P,isLoading:w,buttonText:M,bottomDescription:k,showMonthlyOptions:B,popularTestimony:q,skipRadioSelection:R=!1,includeText:D,height:F,showFeaturesButton:$,businessDescription:_,isPlanSelected:z=!1,onClickShowAllFeatures:W,showSelectedPlanChip:H=!1,perMonthForYearly:I=!1}=h,U=e=>I&&!B?0==e?"$0":j(Math.round(e/12),"USD"):0==e?"$0":j(e,"USD");return e.jsxs(r.NewSubscriptionStyled,Object.assign({height:F,showMostPopularChip:m||!1,onClick:()=>C(x)},{children:[m&&e.jsxs("div",Object.assign({className:"most-popular-chip"},{children:[e.jsx(o.Caption,Object.assign({className:"popular-text"},{children:"Most popular "})),e.jsx(a.default,{height:12,width:12})]})),e.jsxs("div",Object.assign({className:`box ${O?"disabled":""} \n\t\t\t\t`},{children:[e.jsxs("div",Object.assign({className:"radio-flex"},{children:[!R&&e.jsx("input",{type:"radio",id:"html",name:"fav_language",value:"HTML",disabled:null!=O&&O,onChange:()=>C(x),className:"radio-button",checked:z}),e.jsx(o.TitleRegular,Object.assign({style:{color:c.COLORS.content.secondary,marginBottom:4}},{children:y})),H&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:e.jsx(d.Tag,{tagText:"Current plan",type:"positive",theme:"dark"})}))]})),e.jsxs("div",Object.assign({className:"price-block"},{children:[S?e.jsx(o.BodyCaption,Object.assign({className:"old--price"},{children:U(g.price)})):e.jsx(e.Fragment,{}),e.jsx(o.TitleLarge,Object.assign({style:{color:c.COLORS.content.primary}},{children:U(S||g.price)})),e.jsx(o.Caption,Object.assign({style:{color:c.COLORS.content.secondary,marginLeft:4}},{children:v?"":"/ "+(B?"month":I?"month billed annually":"year")}))]})),T&&e.jsxs("div",Object.assign({className:"per-message-price"},{children:[e.jsx(o.BodyCaption,Object.assign({style:{color:c.COLORS.content.secondary}},{children:T})),N&&e.jsx(o.BodyCaption,Object.assign({style:{color:c.COLORS.background.positive.vibrant,marginLeft:4}},{children:N}))]})),_&&_.length&&e.jsx("div",Object.assign({style:{marginTop:4}},{children:_.map(((s,t)=>e.jsx(o.BodySecondary,{style:{color:c.COLORS.content.secondary},dangerouslySetInnerHTML:{__html:s}},t)))})),f&&e.jsxs(o.Caption,Object.assign({className:"trial "+(b?"selected":"")},{children:["7 day free trial with ",L," messages"]})),P&&e.jsx(o.Caption,Object.assign({className:"trial "+(b?"selected":"")},{children:P})),e.jsx(o.TitleSmall,Object.assign({className:"extra-include-margin",style:{height:D?"":"20px"}},{children:D||""})),e.jsx("div",Object.assign({className:"features"},{children:p.map(((s,i)=>e.jsxs("div",Object.assign({className:"feature"},{children:[e.jsx("div",{children:e.jsx(t.default,{height:20,width:20,color:c.COLORS.content.primary})}),e.jsx(o.BodySecondary,Object.assign({className:"feature-text"},{children:s.detail}),i)]}),s.detail)))})),$&&e.jsx(n.Button,{isLoading:!1,buttonType:"tertiary",buttonText:"See all features",size:"small",onClick:e=>{e.stopPropagation(),W&&W()}}),R&&e.jsx("div",Object.assign({className:"button-box"},{children:w?e.jsx(n.Button,{isLoading:!0,buttonType:"primary",buttonText:"Choose plan",size:"medium",matchParentWidth:!0}):e.jsxs(e.Fragment,{children:[b&&e.jsx(n.Button,{disabled:O,LeadingIcon:s.default,buttonType:"tertiary",size:"medium",matchParentWidth:!0,buttonText:M||"Selected Plan"}),!b&&!O&&e.jsx(n.Button,{buttonType:"primary",size:"medium",onClick:e=>{e.stopPropagation(),C(x)},matchParentWidth:!0,buttonText:M||"Choose plan"})]})})),q&&e.jsxs("div",Object.assign({className:"popular-testimony"},{children:[e.jsx(i.default,{height:26,width:70}),e.jsx("div",Object.assign({className:"testimony-text"},{children:e.jsx("i",{children:q})}))]}))]})),k&&e.jsx("div",Object.assign({className:`plan-bottom-information\n\t\t\t\t\t${O?"disabled":""}\n\t\t\t\t\t${b?"selected":""}\n\t\t\t\t`},{children:e.jsx(o.Caption,Object.assign({className:"text",style:{color:c.COLORS.background.inverse}},{children:k}))}))]}))};
|
|
@@ -17,8 +17,8 @@ export interface SubscriptionPlanProps {
|
|
|
17
17
|
yearlyPlan: PlanPrice;
|
|
18
18
|
features: PlanFeature[];
|
|
19
19
|
showMonthly: boolean;
|
|
20
|
-
planDescription
|
|
21
|
-
planDescriptionDiscount
|
|
20
|
+
planDescription?: string;
|
|
21
|
+
planDescriptionDiscount?: string;
|
|
22
22
|
onPlanSelect: (code: string) => void;
|
|
23
23
|
bottomDescription?: string;
|
|
24
24
|
freeTrialMessages?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../assets/icons/check.svg.js"),t=require("../button/Button.js"),i=require("./SubscriptionPlanStyled.js"),n=require("../TypographyStyle.js"),a=require("../../hooks/useCurreny.js"),r=require("../../constants/Theme.js");exports.SubscriptionPlan=c=>{const{formatCurrency:o}=a.useCurrency(),l=c.showMonthlyOptions?c.features:c.annualFeatures||[],d=c.showMonthlyOptions?c.monthlyPlan:c.yearlyPlan,j=!c.isDisabled&&c.isMostPopular,
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../assets/icons/check.svg.js"),t=require("../button/Button.js"),i=require("./SubscriptionPlanStyled.js"),n=require("../TypographyStyle.js"),a=require("../../hooks/useCurreny.js"),r=require("../../constants/Theme.js");exports.SubscriptionPlan=c=>{const{formatCurrency:o}=a.useCurrency(),l=c.showMonthlyOptions?c.features:c.annualFeatures||[],d=c.showMonthlyOptions?c.monthlyPlan:c.yearlyPlan,j=!c.isDisabled&&c.isMostPopular,p=e=>0==e?"$0":o(e,"USD");return e.jsxs(i.SubscriptionPlanStyled,Object.assign({isManifestPlan:!0,isSelected:c.isSelected||!1,style:{marginTop:j?0:24}},{children:[j&&e.jsx("div",Object.assign({className:"most-popular"},{children:e.jsx(n.Caption,Object.assign({className:"text"},{children:"Most popular ⭐️"}))})),e.jsxs("div",Object.assign({className:`box ${c.isSelected?"selected":""} ${c.isDisabled?"disabled":""} ${j?"":"rounded-corners"}\n\t\t\t\t`},{children:[e.jsxs("div",{children:[e.jsx(n.TitleRegular,Object.assign({style:{color:r.COLORS.content.secondary,marginBottom:4}},{children:c.planName})),e.jsxs("div",Object.assign({className:"price-block"},{children:[c.oldPrice?e.jsx(n.BodyCaption,Object.assign({className:"old--price"},{children:p(d.price)})):e.jsx(e.Fragment,{}),e.jsx(n.TitleMedium,Object.assign({style:{color:r.COLORS.content.primary}},{children:c.oldPrice?p(c.oldPrice):p(d.price)})),e.jsx(n.BodyPrimary,Object.assign({style:{color:r.COLORS.content.secondary,marginLeft:4}},{children:c.hideMonthYearTag?"":"/ "+(c.showMonthlyOptions?"month":"year")}))]})),e.jsxs("div",Object.assign({className:"per-message-price"},{children:[c.planDescription&&e.jsx(n.BodyCaption,Object.assign({style:{color:r.COLORS.content.secondary}},{children:c.planDescription})),c.planDescriptionDiscount&&e.jsx(n.BodyCaption,Object.assign({style:{color:r.COLORS.background.positive.vibrant,marginLeft:4}},{children:c.planDescriptionDiscount}))]})),c.showTrialOptions&&e.jsxs(n.Caption,Object.assign({className:"trial "+(c.isSelected?"selected":"")},{children:["7 day free trial with ",c.freeTrialMessages," messages"]})),c.extraBlockMessage&&e.jsx(n.Caption,Object.assign({className:"trial "+(c.isSelected?"selected":"")},{children:c.extraBlockMessage})),e.jsx("div",Object.assign({className:"features"},{children:l.map(((t,i)=>e.jsxs("div",Object.assign({className:"feature"},{children:[e.jsx("div",{children:e.jsx(s.default,{height:12,width:12,color:r.COLORS.content.primary})}),e.jsx(n.BodyCaption,Object.assign({className:"feature-text"},{children:t.detail}),i)]}),t.detail)))}))]}),e.jsx("div",Object.assign({className:"button-box"},{children:c.isLoading?e.jsx(t.Button,{isLoading:!0,buttonType:"primary",buttonText:"Choose plan",size:"medium",matchParentWidth:!0}):e.jsxs(e.Fragment,{children:[c.isSelected&&e.jsx(t.Button,{disabled:c.isDisabled,LeadingIcon:s.default,buttonType:"tertiary",size:"medium",matchParentWidth:!0,buttonText:c.buttonText||"Selected Plan"}),!c.isSelected&&!c.isDisabled&&e.jsx(t.Button,{buttonType:"primary",size:"medium",onClick:()=>c.onPlanSelect(c.code),matchParentWidth:!0,buttonText:c.buttonText||"Choose plan"})]})}))]})),c.bottomDescription&&e.jsx("div",Object.assign({className:`plan-bottom-information\n\t\t\t\t\t${c.isDisabled?"disabled":""}\n\t\t\t\t\t${c.isSelected?"selected":""}\n\t\t\t\t`},{children:e.jsx(n.Caption,Object.assign({className:"text",style:{color:r.COLORS.background.inverse}},{children:c.bottomDescription}))}))]}))};
|
|
@@ -6,3 +6,10 @@ export declare const SubscriptionPlanStyled: import("@emotion/styled").StyledCom
|
|
|
6
6
|
isSelected: boolean;
|
|
7
7
|
isManifestPlan?: boolean | undefined;
|
|
8
8
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
9
|
+
export declare const NewSubscriptionStyled: import("@emotion/styled").StyledComponent<{
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
showMostPopularChip: boolean;
|
|
14
|
+
height?: string | undefined;
|
|
15
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),d=require("../../constants/Theme.js");function b(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}const t=b(c).default("div","production"===process.env.NODE_ENV?{target:"e4062250"}:{target:"e4062250",label:"SubscriptionPlanStyled"})("border:1px solid ",d.COLORS.stroke.primary,";border:1px solid ",(c=>c.isSelected?d.COLORS.text.altSecondary:d.COLORS.stroke.primary),";box-shadow:0px 2px 8px rgba(0, 0, 0, 0.12);border-radius:4px;.box{height:",(c=>c.isManifestPlan?"400px":"600px"),";padding:24px;background-color:",d.COLORS.surface.standard,";display:flex;flex-direction:column;.button-box{margin-top:auto;display:flex;}}.box.selected{background-color:",d.COLORS.background.brandLight,";}.rounded-corners{border-top-left-radius:4px;border-top-right-radius:4px;}width:100%;.most-popular{background:linear-gradient(90.05deg, #743979 1.22%, #526dca 99.95%),#4b1583;padding:4px;border-top-left-radius:4px;border-top-right-radius:4px;display:flex;justify-content:center;align-items:center;.text{color:",d.COLORS.surface.standard,";}}.trial{margin-top:16px;margin-bottom:12px;padding:4px 8px;border-radius:4px;color:",d.COLORS.content.secondary,";background-color:",d.COLORS.surface.hovered,";}.trial.selected{background-color:",d.COLORS.surface.standard,";}.feature{display:flex;align-items:center;margin-top:4px;.feature-text{margin-left:12px;color:",d.COLORS.content.secondary,";}}.price-block{display:flex;margin-bottom:4px;align-items:center;}.per-message-price{display:flex;}.plan-bottom-information{margin-top:auto;text-align:center;background:",d.COLORS.background.brandLight,";padding:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;.text{color:",d.COLORS.background.inverse,";}}.disabled{*{color:",d.COLORS.content.inactive,"!important;}}.plan-bottom-information.disabled{background:",d.COLORS.background.base,";}.plan-bottom-information.selected{background:",d.COLORS.surface.standard,";color:",d.COLORS.content.placeholder,";}.old--price{color:",d.COLORS.content.secondary,";text-decoration:line-through;margin-right:4px;}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvblBsYW5TdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVpRCIsImZpbGUiOiJTdWJzY3JpcHRpb25QbGFuU3R5bGVkLnRzeCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBzdHlsZWQgZnJvbSAnQGVtb3Rpb24vc3R5bGVkJztcclxuaW1wb3J0IHsgQ09MT1JTIH0gZnJvbSBcIi4uLy4uL2NvbnN0YW50cy9UaGVtZVwiO1xyXG5leHBvcnQgY29uc3QgU3Vic2NyaXB0aW9uUGxhblN0eWxlZCA9IHN0eWxlZC5kaXYgYFxuXHRib3JkZXI6IDFweCBzb2xpZCAke0NPTE9SUy5zdHJva2UucHJpbWFyeX07XG5cdGJvcmRlcjogMXB4IHNvbGlkXG5cdFx0JHsocHJvcHMpID0+IHByb3BzLmlzU2VsZWN0ZWQgPyBDT0xPUlMudGV4dC5hbHRTZWNvbmRhcnkgOiBDT0xPUlMuc3Ryb2tlLnByaW1hcnl9O1xuXG5cdGJveC1zaGFkb3c6IDBweCAycHggOHB4IHJn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2tncm91bmQuYnJhbmRMaWdodH07XG5cdFx0cGFkZGluZzogNHB4O1xuXG5cdFx0LnRleHQge1xuXHRcdFx0Y29sb3I6ICR7Q09MT1JTLmJhY2tncm91bmQuaW52ZXJzZX07XG5cdFx0fVxuXG5cdFx0Ym9yZGVyLWJvdHRvbS1sZWZ0LXJhZGl1czogNHB4O1xuXHRcdGJvcmRlci1ib3R0b20tcmlnaHQtcmFkaXVzOiA0cHg7XG5cdH1cblxuXHQuZGlzYWJsZWQge1xuXHRcdCoge1xuXHRcdFx0Y29sb3I6ICR7Q09MT1JTLmNvbnRlbnQuaW5hY3RpdmV9ICFpbXBvcnRhbnQ7XG5cdFx0fVxuXHR9XG5cblx0LnBsYW4tYm90dG9tLWluZm9ybWF0aW9uLmRpc2FibGVkIHtcblx0XHRiYWNrZ3JvdW5kOiAke0NPTE9SUy5iYWNrZ3JvdW5kLmJhc2V9O1xuXHR9XG5cblx0LnBsYW4tYm90dG9tLWluZm9ybWF0aW9uLnNlbGVjdGVkIHtcblx0XHRiYWNrZ3JvdW5kOiAke0NPTE9SUy5zdXJmYWNlLnN0YW5kYXJkfTtcblx0XHRjb2xvcjogJHtDT0xPUlMuY29udGVudC5wbGFjZWhvbGRlcn07XG5cdH1cblx0Lm9sZC0tcHJpY2Uge1xuXHRcdGNvbG9yOiAke0NPTE9SUy5jb250ZW50LnNlY29uZGFyeX07XG5cdFx0dGV4dC1kZWNvcmF0aW9uOiBsaW5lLXRocm91Z2g7XG5cdFx0bWFyZ2luLXJpZ2h0OiA0cHg7XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVN1YnNjcmlwdGlvblBsYW5TdHlsZWQuanMubWFwIl19 */"));exports.SubscriptionPlanStyled=t;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var c=require("@emotion/styled/base"),b=require("../../constants/Theme.js");function d(c){return c&&"object"==typeof c&&"default"in c?c:{default:c}}var l=d(c);const x=l.default("div","production"===process.env.NODE_ENV?{target:"e4062251"}:{target:"e4062251",label:"SubscriptionPlanStyled"})("position:relative;border:1px solid ",b.COLORS.stroke.primary,";border:1px solid ",(c=>c.isSelected?b.COLORS.text.altSecondary:b.COLORS.stroke.primary),";box-shadow:0px 2px 8px rgba(0, 0, 0, 0.12);border-radius:4px;.box{height:",(c=>c.isManifestPlan?"400px":"600px"),";padding:24px;background-color:",b.COLORS.surface.standard,";display:flex;flex-direction:column;.button-box{margin-top:auto;display:flex;}}.box.selected{background-color:",b.COLORS.background.brandLight,";}.rounded-corners{border-top-left-radius:4px;border-top-right-radius:4px;}width:100%;.most-popular{background:linear-gradient(90.05deg, #743979 1.22%, #526dca 99.95%),#4b1583;padding:4px;border-top-left-radius:4px;border-top-right-radius:4px;display:flex;justify-content:center;align-items:center;.text{color:",b.COLORS.surface.standard,";}}.trial{margin-top:16px;margin-bottom:12px;padding:4px 8px;border-radius:4px;color:",b.COLORS.content.secondary,";background-color:",b.COLORS.surface.hovered,";}.trial.selected{background-color:",b.COLORS.surface.standard,";}.feature{display:flex;align-items:center;margin-top:4px;.feature-text{margin-left:12px;color:",b.COLORS.content.secondary,";}}.price-block{display:flex;margin-bottom:4px;align-items:center;}.per-message-price{display:flex;}.plan-bottom-information{margin-top:auto;text-align:center;background:",b.COLORS.background.brandLight,";padding:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;.text{color:",b.COLORS.background.inverse,";}}.disabled{*{color:",b.COLORS.content.inactive,"!important;}}.plan-bottom-information.disabled{background:",b.COLORS.background.base,";}.plan-bottom-information.selected{background:",b.COLORS.surface.standard,";color:",b.COLORS.content.placeholder,";}.old--price{color:",b.COLORS.content.secondary,";text-decoration:line-through;margin-right:4px;}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvblBsYW5TdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ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2h0fTtcblx0fVxuXHQudGVzdGltb255LXRleHQge1xuXHRcdGZvbnQtc2l6ZTogMTJweDtcblx0XHRmb250LXN0eWxlOiBub3JtYWw7XG5cdFx0Zm9udC13ZWlnaHQ6IDYwMDtcblx0XHRsaW5lLWhlaWdodDogMTZweDtcblx0fVxuXHQucmFkaW8tYnV0dG9uIHtcblx0XHR3aWR0aDogMThweDtcblx0XHRoZWlnaHQ6IDE4cHg7XG5cdH1cblxuXHRpbnB1dFt0eXBlPSdyYWRpbyddIHtcblx0XHRhY2NlbnQtY29sb3I6ICR7Q09MT1JTLnN0cm9rZS5wb3NpdGl2ZS52aWJyYW50fTtcblx0fVxuYDtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9U3Vic2NyaXB0aW9uUGxhblN0eWxlZC5qcy5tYXAiXX0= */")),X=l.default("div","production"===process.env.NODE_ENV?{target:"e4062250"}:{target:"e4062250",label:"NewSubscriptionStyled"})("position:relative;cursor:pointer;border:1px solid ",b.COLORS.stroke.primary,";box-shadow:",(c=>c.showMostPopularChip?"0px 0px 12px 0px rgba(116, 0, 255, 0.24)":""),";border-radius:8px;width:100;.box{border-radius:8px;min-height:",(c=>c.height?c.height:"525px"),";padding:16px;background-color:",b.COLORS.surface.standard,";display:flex;flex-direction:column;gap:12px;.button-box{margin-top:auto;display:flex;}}.trial{margin-top:16px;margin-bottom:12px;padding:4px 8px;border-radius:4px;color:",b.COLORS.content.secondary,";background-color:",b.COLORS.surface.hovered,";}.trial.selected{background-color:",b.COLORS.surface.standard,";}.features{display:flex;flex-direction:column;gap:12px;}.feature{display:flex;align-items:baseline;gap:9px;justify-content:flex-start;flex-direction:row;.feature-text{color:",b.COLORS.content.secondary,";}}.price-block{display:flex;align-items:center;}.per-message-price{display:flex;}.plan-bottom-information{margin-top:auto;text-align:center;background:",b.COLORS.background.brandLight,";padding:4px;border-bottom-left-radius:4px;border-bottom-right-radius:4px;.text{color:",b.COLORS.background.inverse,";}}.disabled{*{color:",b.COLORS.content.inactive,"!important;}}.plan-bottom-information.disabled{background:",b.COLORS.background.base,";}.plan-bottom-information.selected{background:",b.COLORS.surface.standard,";color:",b.COLORS.content.placeholder,";}.old--price{color:",b.COLORS.content.secondary,";text-decoration:line-through;margin-right:4px;}.most-popular-chip{border-radius:25px 25px 0px 0px;background:linear-gradient(180deg, #28034e -0.65%, #731dcf 99.55%);position:absolute;padding:7px 18px 5px 18px;top:-28px;right:16px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:4px;}.popular-text{color:",b.COLORS.surface.subdued,";font-size:10.345px;}.radio-flex{display:flex;align-items:baseline;justify-content:flex-start;gap:8px;}.extra-include-margin{margin-top:8px;}.buisness-desc{font-size:14px;font-style:normal;font-weight:400;color:",b.COLORS.content.secondary,";}.popular-testimony{display:flex;padding:12px;align-items:flex-start;gap:12px;border-radius:8px;background:",b.COLORS.background.brandLight,";}.testimony-text{font-size:12px;font-style:normal;font-weight:600;line-height:16px;}.radio-button{width:18px;height:18px;}input[type='radio']{accent-color:",b.COLORS.stroke.positive.vibrant,";}"+("production"===process.env.NODE_ENV?"":"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIlN1YnNjcmlwdGlvblBsYW5TdHlsZWQudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQXdIZ0QiLCJmaWxlIjoiU3Vic2NyaXB0aW9uUGxhblN0eWxlZC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCc7XHJcbmltcG9ydCB7IENPTE9SUyB9IGZyb20gXCIuLi8uLi9jb25zdGFudHMvVGhlbWVcIjtcclxuZXhwb3J0IGNvbnN0IFN1YnNjcmlwdGlvblBsYW5TdHlsZWQgPSBzdHlsZWQuZGl2IGBcblx0cG9zaXRpb246IHJlbGF0aXZlO1xuXG5cdGJvcmRlcjogMXB4IHNvbGlkICR7Q09MT1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udH07XG5cdH1cbmA7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPVN1YnNjcmlwdGlvblBsYW5TdHlsZWQuanMubWFwIl19 */"));exports.NewSubscriptionStyled=X,exports.SubscriptionPlanStyled=x;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { NewSubscriptionPlanProps } from './NewSubscriptionPlan';
|
|
3
|
+
type Props = {
|
|
4
|
+
plans: NewSubscriptionPlanProps[];
|
|
5
|
+
onPlanSelect: (code: string) => void;
|
|
6
|
+
onClickShowAllFeatures?: () => void;
|
|
7
|
+
showTrialOptions?: boolean;
|
|
8
|
+
staticWidth?: string;
|
|
9
|
+
selectedTab?: 'monthly' | 'annually';
|
|
10
|
+
selectedPlan?: string;
|
|
11
|
+
currentPlan?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const SubscriptionPlansCollected: FunctionComponent<Props>;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("react"),l=require("styled-components"),n=require("./NewSubscriptionPlan.js");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}const o=s(l).default.div`
|
|
2
|
+
display: flex;
|
|
3
|
+
column-gap: 22px;
|
|
4
|
+
align-items: stretch;
|
|
5
|
+
overflow-x: auto;
|
|
6
|
+
`;exports.SubscriptionPlansCollected=l=>{var s;const[a,i]=t.useState(null!==(s=l.selectedPlan)&&void 0!==s?s:"");return e.jsx(o,Object.assign({style:{padding:"28px 0px"}},{children:l.plans.map(((s,o)=>{var r,c;return e.jsx("div",Object.assign({style:{width:null!==(r=l.staticWidth)&&void 0!==r?r:308}},{children:t.createElement(n.NewSubscriptionPlan,Object.assign({},s,{showMonthly:!0,showMonthlyOptions:null!==(c="monthly"==l.selectedTab)&&void 0!==c&&c,showTrialOptions:l.showTrialOptions||!1,onPlanSelect:e=>{l.onPlanSelect(e),i(e)},key:s.planName,isPlanSelected:a==("monthly"==l.selectedTab?s.code:s.yearlyCode),onClickShowAllFeatures:l.onClickShowAllFeatures,showSelectedPlanChip:l.currentPlan==("monthly"==l.selectedTab?s.code:s.yearlyCode)}))}),o)}))}))};
|
|
@@ -21,6 +21,8 @@ interface CollectionsScreenInterface {
|
|
|
21
21
|
setCurPage: React.Dispatch<React.SetStateAction<number>>;
|
|
22
22
|
};
|
|
23
23
|
hideCollectionCheckbox?: boolean;
|
|
24
|
+
renderCoreComponent?: boolean;
|
|
25
|
+
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
24
26
|
}
|
|
25
27
|
export declare const CollectionsScreen: (props: CollectionsScreenInterface) => import("react/jsx-runtime").JSX.Element;
|
|
26
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/chevronRight.svg.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/chevronRight.svg.js"),i=require("react"),s=require("../checkBox/CheckBox.js"),o=require("../icon-button/IconButton.js"),c=require("../shimmer/ShimmerComponent/BikShimmer.js"),r=require("../tag/Tag.js"),l=require("../TypographyStyle.js"),n=require("./emptyState.js"),a=require("./style.js");const d=(e,t,i)=>{if(e.length<=t)return e;const s=e.slice(0,t-1);return(i?s.slice(0,s.lastIndexOf(" ")):s)+"..."},u=i=>{const{customCollectionRestriction:c,data:n,selectedCollectionsDispatch:u,setCollectionId:h,isPartiallyChecked:C,setScreen:p,id:x,isChecked:j,isDisabled:v,hideCollectionCheckbox:g,pickerType:m,selectedCollections:y}=i;return e.jsxs(a.CollectionCardStyle,Object.assign({isDisabled:v,onClick:e=>{if(!v){if("COLLECTION"===m)return e.stopPropagation(),u({type:"reset",data:{}}),u({type:"selected",data:{id:x,val:n,isRestricted:c}}),void h(x);h(x),p("products")}},isActive:!!y[x]},{children:[e.jsxs(a.CollectionCardInfoStyle,{children:[!g&&e.jsx(s.CheckBox,{isDisabled:v,isChecked:j,isPartiallyChecked:C,onValueChange:function(e,t,i){null==i||i.stopPropagation(),u(e?{type:"selected",data:{id:x,val:n,isRestricted:c}}:{type:"unselected",data:{id:x}}),h(e?x:"")}}),e.jsx(a.CollectionCardDetailStyle,{children:e.jsxs(a.CollectionNameHolder,{children:[e.jsx(l.TitleRegular,{children:d(n.name,40,!0)}),n.isSmartCollection?e.jsx(r.Tag,{tagText:"Smart Collection",type:"warning"}):e.jsx(e.Fragment,{})]})})]}),"COLLECTION"!==m&&e.jsx(o.IconButton,{height:12,width:12,disabled:v,Icon:t.default})]}))};exports.CollectionsScreen=t=>{const{customCollectionRestriction:s,dataLoading:o,collections:r,selectedCollectionsDispatch:l,setCollectionId:a,selectedCollections:d,setScreen:h,collectionFetcher:C,collectionsDispatch:p,pagingControls:x,storeId:j,setSaveDisabled:v,hideCollectionCheckbox:g,renderCoreComponent:m,pickerType:y}=t,b=i.useRef(null),k=i.useRef(x.curPage),f=!!s&&(null==d?void 0:d.isCustom),[S,O]=i.useState(!1);i.useEffect((()=>{k.current=x.curPage}),[x.curPage]),i.useEffect((()=>{const e=new IntersectionObserver((e=>{e[0].isIntersecting&&k.current>0&&(v(!0),O(!0),C(k.current,j).then((e=>{p({type:"paged",data:(null==e?void 0:e.collections)||{}}),x.setCurPage(k.current+1),O(!1),v(!1)})).catch())}),{threshold:1});return b.current&&e.observe(b.current),()=>{b.current&&e.unobserve(b.current)}}),[b]);const E=e=>{var t,i;let s=0,o=0;if(d[e]){const c=null===(t=r[e])||void 0===t?void 0:t.products;c&&Object.keys(c).forEach((e=>{var t;const i=null===(t=c[e])||void 0===t?void 0:t.variants;i&&Object.keys(i).forEach((e=>s+=1))}));const l=null===(i=d[e])||void 0===i?void 0:i.products;return l&&Object.keys(l).forEach((e=>{var t;const i=null===(t=l[e])||void 0===t?void 0:t.variants;i&&Object.keys(i).forEach((e=>o+=1))})),!(s<=0&&o>0)&&(o>0&&s!==o)}return!1};return e.jsxs("div",{children:[Object.keys(r).length?Object.keys(r).map((t=>e.jsx(u,{customCollectionRestriction:s,data:r[t],isDisabled:f&&!(null==d?void 0:d[t]),isChecked:!!(null==d?void 0:d[t]),isPartiallyChecked:E(t),selectedCollectionsDispatch:l,setCollectionId:a,setScreen:h,id:t,hideCollectionCheckbox:g,selectedCollections:d,renderCoreComponent:m,pickerType:y},t))):o?[1,2,3,4,5,6,7,8,9,10].map(((t,i)=>e.jsx("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(c.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),i))):e.jsx(n.EmptyState,{title:"No collections to show",subtitle:"We couldn’t find any collection."}),e.jsx("div",{ref:b}),S&&[1,2,3,4,5].map(((t,i)=>e.jsx("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(c.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),i)))]})},exports.truncate=d;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { OUT_OF_STOCK_ACTION } from './type';
|
|
2
3
|
export interface ProductVariant {
|
|
3
4
|
name: string;
|
|
@@ -47,7 +48,7 @@ export interface ProductPickerInterface {
|
|
|
47
48
|
storeId: string;
|
|
48
49
|
selectedItems: SelectedItems;
|
|
49
50
|
onAdd: (items: SelectedItems, total: number) => void;
|
|
50
|
-
onClose
|
|
51
|
+
onClose?: () => void;
|
|
51
52
|
visible: boolean;
|
|
52
53
|
zIndex?: number;
|
|
53
54
|
limit?: number;
|
|
@@ -58,5 +59,11 @@ export interface ProductPickerInterface {
|
|
|
58
59
|
selectProductsFromCustomCollection?: boolean;
|
|
59
60
|
hideSelectionCount?: boolean;
|
|
60
61
|
title?: string;
|
|
62
|
+
postHeader?: React.ReactNode;
|
|
63
|
+
width?: string;
|
|
64
|
+
renderCoreComponent?: boolean;
|
|
65
|
+
onClickSave?: number;
|
|
66
|
+
pickerType?: 'COLLECTION' | 'PRODUCT';
|
|
67
|
+
hideProductVariants?: boolean;
|
|
61
68
|
}
|
|
62
69
|
export declare const ProductPickerModal: (props: ProductPickerInterface) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/search.svg.js"),o=require("react"),c=require("../../constants/Theme.js"),s=require("../button/Button.js"),r=require("../input/Input.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/search.svg.js"),o=require("react"),c=require("../../constants/Theme.js"),s=require("../button/Button.js"),r=require("../input/Input.js"),n=require("../modals/styledModal.js"),l=require("../spinner/Spinner.js"),i=require("../tag/Tag.js"),d=require("./collectionScreen.js"),a=require("./productScreen.js"),u=require("./reducers.js"),h=require("./searchScreen.js"),p=require("./selectedScreen.js"),C=require("./style.js"),j=require("./type.js");exports.ProductPickerModal=x=>{const{storeId:S,selectedItems:g,onClose:y,visible:v,zIndex:b,limit:m,hideCollectionCheckbox:f,hideProductCheckbox:k,outOfStockAction:P=j.OUT_OF_STOCK_ACTION.BLUR,hideVariantCheckbox:O,selectProductsFromCustomCollection:T,hideSelectionCount:I,title:q,width:F,renderCoreComponent:E,onClickSave:R,pickerType:D,hideProductVariants:w=!1}=x,[B,A]=o.useReducer(u.collectionsReducer,{}),[L,_]=o.useState("collections"),[M,V]=o.useState(""),[z,G]=o.useState(0),[H,$]=o.useState(!1),[K,U]=o.useState(0),[N,Y]=o.useState(""),[J,Q]=o.useState(!1),[W,X]=o.useState(!1),[Z,ee]=o.useState(),[te,oe]=o.useReducer(u.selectedColectionsReducer,Object.keys(g).length>0?g:{});o.useEffect((()=>{$(!0),X(!0),x.collectionFetcher(z,S).then((e=>{A({type:"fetched",data:(null==e?void 0:e.collections)||{}}),$(!1),G((e=>e+1)),X(!1)})).catch()}),[]),o.useEffect((()=>{let e=0;Object.keys(te||[]).forEach((t=>{var o;Object.keys((null===(o=te[t])||void 0===o?void 0:o.products)||[]).forEach((o=>{var c,s;Object.keys((null===(s=null===(c=te[t].products)||void 0===c?void 0:c[o])||void 0===s?void 0:s.variants)||[]).forEach((()=>{e+=1}))}))})),U(e)})),o.useEffect((()=>{var e;M&&!(null===(e=null==B?void 0:B[M])||void 0===e?void 0:e.products)&&($(!0),x.productFetcher(M,S).then((e=>{Object.keys(e).length&&A({type:"productsFetched",data:{collectionId:M,products:e}}),$(!1)})).catch())}),[M]),o.useEffect((()=>{const e=setTimeout((()=>{N.length?(Q(!0),x.searchFetcher(S,N).then((e=>{ee(Object.assign({},e)),_("searchProducts"),$(!1),Q(!1)}))):_("collections")}),800);return()=>clearTimeout(e)}),[N]),o.useEffect((()=>{R&&(console.log("selectedCollections:: ",te),x.onAdd(te,K),ce())}),[R]);const ce=()=>{oe({type:"reset",data:{}})},se=e.jsxs(C.ContainerStyle,{children:[x.postHeader&&e.jsx("div",Object.assign({style:{padding:"0 24px"}},{children:x.postHeader})),!x.hideGlobalSearch&&e.jsx(e.Fragment,{children:("collections"===L||"searchProducts"===L)&&e.jsx("div",Object.assign({style:{padding:E?"8px 16px":"12px 24px",borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(r.Input,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>J?e.jsx(l.Spinner,{size:"small",color:c.COLORS.content.primary}):e.jsx(t.default,{})},id:"listInput",height:"24px",type:"text",value:N,onChangeText:e=>{e.length&&e.trim().length?Y(e):Y("")}})}))}),e.jsxs(C.ScrollContainerStyle,{children:["collections"===L&&e.jsx(d.CollectionsScreen,{customCollectionRestriction:x.customCollectionRestriction,dataLoading:W,collections:B,selectedCollectionsDispatch:oe,setCollectionId:V,setScreen:_,selectedCollections:te,collectionFetcher:x.collectionFetcher,storeId:S,collectionsDispatch:A,setSaveDisabled:$,pagingControls:{curPage:z,setCurPage:G},hideCollectionCheckbox:f,renderCoreComponent:E,pickerType:D}),"products"===L&&M&&e.jsx(u.CollectionIdContext.Provider,Object.assign({value:M},{children:e.jsx(a.ProductsScreen,{hideInCollectionSearch:x.hideInCollectionSearch,customCollectionRestriction:x.customCollectionRestriction,productFetcher:x.productFetcher,setScreen:_,storeId:S,data:B[M],collectionsDispatch:A,selectedCollectionsDispatch:oe,selectedData:te,setSaveDisabled:$,searchInCollectionFetcher:x.searchInCollectionFetcher,hideProductCheckbox:k,outOfStockAction:P,hideVariantCheckbox:O,selectProductsFromCustomCollection:T,renderCoreComponent:E,pickerType:D,hideProductVariants:w})})),"view"===L&&e.jsx(p.SelectedScreen,{selectedCollections:te||{},selectedCollectionsDispatch:oe,setScreen:_,collections:B}),"searchProducts"===L&&e.jsx(h.SearchScreen,{customCollectionRestriction:x.customCollectionRestriction,selectedCollections:te||{},searchedCollections:Z||{},selectedCollectionsDispatch:oe,setScreen:_,collections:B,onBackPress:()=>{Y(""),ee({})}})]})]});return e.jsx(e.Fragment,{children:E?se:e.jsx(n.StyledModal,Object.assign({zIndex:b,open:v,onClose:()=>{null==y||y(),ce()},headingTitle:q||("collections"===L||"products"===L?"Select Products":"view"===L?"Selected Products":"searchProducts"===L?"Searched Products":void 0),footerShadow:!0,centralContainerStyles:{width:F||"480px"},primaryButton:{buttonText:H?"Loading...":"Add",disabled:H||K<1||m&&K>m||!1,onClick:()=>{x.onAdd(te,K),ce()}},footerLeftCustomElement:I?e.jsx(e.Fragment,{}):m&&K>m?e.jsx(i.Tag,{tagText:`You can only select ${m} products`,type:"negative"}):K>0?e.jsx(s.Button,{onClick:()=>{_("view")},buttonText:`${K} products selected`,buttonType:"tertiaryGray"}):e.jsx(s.Button,{disabled:!0,buttonText:`${K} products selected`,buttonType:"tertiaryGray"})},{children:se}))})};
|
|
@@ -18,6 +18,9 @@ interface ProductsScreenInterface {
|
|
|
18
18
|
outOfStockAction?: OUT_OF_STOCK_ACTION;
|
|
19
19
|
hideVariantCheckbox?: boolean;
|
|
20
20
|
selectProductsFromCustomCollection?: boolean;
|
|
21
|
+
renderCoreComponent?: 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
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),i=require("../../assets/icons/box.svg.js"),o=require("../../assets/icons/search.svg.js"),c=require("lodash"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),t=require("../../assets/icons/arrow_left.svg.js"),i=require("../../assets/icons/box.svg.js"),o=require("../../assets/icons/search.svg.js"),c=require("lodash"),r=require("react"),d=require("../tag/Tag.js"),s=require("../../constants/Theme.js"),n=require("../checkBox/CheckBox.js"),l=require("../icon-button/IconButton.js"),a=require("../input/Input.js"),u=require("../shimmer/ShimmerComponent/BikShimmer.js"),h=require("../shimmer-image/ShimmerImage.js"),p=require("../spinner/Spinner.js"),v=require("../TypographyStyle.js"),j=require("./collectionScreen.js"),x=require("./emptyState.js"),y=require("./helpers/ProductHelper.js"),g=require("./reducers.js"),C=require("./style.js"),k=require("./type.js"),m=require("./utility.js");const b=t=>{const{collectionId:i,productId:o,data:c,selectedData:r,selectedCollectionsDispatch:d,viewOnly:s,upliftAdditions:n,isProductPartiallyChecked:l,hideProductCheckbox:a,outOfStockAction:u,hideVariantCheckbox:h,hideProductVariants:p,pickerType:v}=t,j=e=>{var t,c,d,s,n,l;if(!(null===(c=null===(t=null==r?void 0:r[i])||void 0===t?void 0:t.products)||void 0===c?void 0:c[o]))return!1;return!!(null===(l=null===(n=null===(s=null===(d=null==r?void 0:r[i])||void 0===d?void 0:d.products)||void 0===s?void 0:s[o])||void 0===n?void 0:n.variants)||void 0===l?void 0:l[e])};return e.jsxs("div",{children:[e.jsx(O,{isVariant:!1,data:c,productId:o,collectionId:i,isSelected:!!(null===(y=null===(x=null==r?void 0:r[i])||void 0===x?void 0:x.products)||void 0===y?void 0:y[o]),isPartiallyChecked:l,selectedCollectionsDispatch:d,upliftAdditions:n,viewOnly:s,hideProductCheckbox:a,hideVariantCheckbox:h,hideProductVariants:p,pickerType:v},o),p?null:Object.keys(c.variants||[]).map((t=>e.jsx(O,{isVariant:!0,hideVariantCheckbox:h,data:c.variants[t],variantId:t,productId:o,viewOnly:s,upliftAdditions:n,collectionId:i,isSelected:j(t),selectedCollectionsDispatch:d,outOfStockAction:u},t)))]});var x,y},O=t=>{const{isVariant:i,data:o,productId:c,collectionId:r,variantId:s,isSelected:l,selectedCollectionsDispatch:a,viewOnly:u,upliftAdditions:p,isPartiallyChecked:x,hideProductCheckbox:g,outOfStockAction:k,hideVariantCheckbox:m,hideProductVariants:b,pickerType:O}=t,I=y.ProductHelper.getProductLabels(o,k);return e.jsxs(C.ProductCardStyle,Object.assign({isVariant:i,onClick:e=>{"PRODUCT"===O&&b&&(e.stopPropagation(),a({type:"reset",data:{}}),p("variantSelected",{productId:c,variantId:s||Object.keys(o.variants)[0],collectionId:r,variant:o}))},isActive:l},{children:[i&&!u&&!m||!i&&!u&&!g?e.jsx(n.CheckBox,{isChecked:l,isPartiallyChecked:x||!1,onValueChange:function(e){i?e?p("variantSelected",{productId:c,variantId:s,collectionId:r,variant:o}):a({type:"variantUnselected",data:{productId:c,variantId:s,collectionId:r}}):e?p("productSelected",{productId:c,collectionId:r,product:o}):a({type:"productUnselected",data:{productId:c,collectionId:r}})}}):e.jsx(e.Fragment,{}),e.jsx("div",{children:e.jsx(h.ShimmerImage,{width:40,height:40,imageUrl:o.image,alt:"Item",borderRadius:4})}),e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(v.TitleRegular,{children:j.truncate(o.name,40,!0)}),I?e.jsx("div",Object.assign({style:{width:90,display:"flex"}},{children:e.jsx(d.Tag,{tagText:I,type:"warning",theme:"light"})})):e.jsx(e.Fragment,{})]}))]}))};exports.ProductCard=O,exports.ProductGroup=b,exports.ProductsScreen=d=>{const h=r.useContext(g.CollectionIdContext),{data:j,collectionsDispatch:y,selectedData:O,selectedCollectionsDispatch:I,productFetcher:S,storeId:f,setScreen:P,setSaveDisabled:q,hideInCollectionSearch:T,customCollectionRestriction:V,hideProductCheckbox:E,outOfStockAction:D=k.OUT_OF_STOCK_ACTION.BLUR,hideVariantCheckbox:w=!1,selectProductsFromCustomCollection:A=!1,pickerType:B,hideProductVariants:R}=d,[F,U]=r.useState(""),[_,H]=r.useState(!1),[L,K]=r.useState(j);r.useEffect((()=>{const e=setTimeout((()=>{F.length?(H(!0),d.searchInCollectionFetcher(f,h,F).then((e=>{var t;const i=c.cloneDeep(j);i.products={};for(const o of e)(null===(t=null==j?void 0:j.products)||void 0===t?void 0:t[o])&&(i.products[o]=j.products[o]);K(i),q(!1),H(!1)}))):K(j)}),800);return()=>clearTimeout(e)}),[F]);const N=!!V&&j.isSmartCollection,W=e=>{var t,i,o,c,r,d,s,n;let l=0,a=0;return!!((null===(i=null===(t=null==O?void 0:O[h])||void 0===t?void 0:t.products)||void 0===i?void 0:i[e])&&(null===(r=Object.keys((null===(c=null===(o=null==j?void 0:j.products)||void 0===o?void 0:o[e])||void 0===c?void 0:c.variants)||[]))||void 0===r||r.forEach((()=>a++)),Object.keys((null===(n=null===(s=null===(d=null==O?void 0:O[h])||void 0===d?void 0:d.products)||void 0===s?void 0:s[e])||void 0===n?void 0:n.variants)||[]).forEach((()=>l++)),l>0&&a!==l))};r.useEffect((()=>{(null==j?void 0:j.products)||z()}),[]);const z=()=>{q(!0),H(!0),S(h,f).then((e=>{Object.keys(e).length&&(y({type:"productsFetched",data:{collectionId:h,products:e}}),K(Object.assign(Object.assign({},L),{products:e}))),q(!1),H(!1)})).catch()},G=(e,t)=>{const i=m.liftTheStateUp(t,j);I({type:e,data:Object.assign(Object.assign({},i),{isRestricted:V})})};return e.jsxs("div",{children:[e.jsxs(C.ProductScreenHeader,{children:[e.jsx(l.IconButton,{Icon:t.default,height:16,onClick:()=>{P("collections")}}),e.jsx(v.BodyCaption,Object.assign({style:{color:s.COLORS.content.secondary}},{children:j.name}))]}),!T&&e.jsx("div",Object.assign({style:{padding:16,height:"76px",borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(a.Input,{noKeyDownChange:!0,noErrorHint:!0,rightIcon:{icon:()=>_&&F.length?e.jsx(p.Spinner,{size:"small",color:s.COLORS.content.primary}):e.jsx(o.default,{})},id:"listInput",height:"24px",type:"text",value:F,onChangeText:e=>{e.length&&e.trim().length?U(e):U("")},placeholder:"Search products in this collection..."})})),e.jsxs("div",{children:[Object.keys((null==L?void 0:L.products)||[]).length>0&&!N&&!F.length&&!E&&e.jsxs(C.ProductScreenCollectionCardStyle,{children:[e.jsx(n.CheckBox,{isChecked:!!(null==O?void 0:O[h]),isPartiallyChecked:(e=>{var t;let i=0,o=0;if(O[e]){const c=null==j?void 0:j.products;c&&Object.keys(c).forEach((e=>{var t;const o=null===(t=c[e])||void 0===t?void 0:t.variants;o&&Object.keys(o).forEach((e=>i+=1))}));const r=null===(t=O[e])||void 0===t?void 0:t.products;return r&&Object.keys(r).forEach((e=>{var t;const i=null===(t=r[e])||void 0===t?void 0:t.variants;i&&Object.keys(i).forEach((()=>o+=1))})),o>0&&i!==o}return!1})(h),onValueChange:function(e){I(e?{type:"selected",data:{id:h,val:j}}:{type:"unselected",data:{id:h}})}}),e.jsx("div",Object.assign({style:{width:40,height:40}},{children:e.jsx(i.default,{})})),e.jsx(v.TitleRegular,{children:"All Products"})]}),Object.keys((null==L?void 0:L.products)||[]).length?Object.keys(L.products||[]).map((t=>e.jsx(b,{outOfStockAction:D,collectionId:h,isProductPartiallyChecked:W(t),productId:t,data:L.products[t],selectedData:O,selectedCollectionsDispatch:I,viewOnly:!A&&!!N,upliftAdditions:G,hideProductCheckbox:E,hideVariantCheckbox:w,hideProductVariants:R,pickerType:B},t))):_?[1,2,3,4,5,6,7,8,9,10].map(((t,i)=>e.jsx("div",Object.assign({style:{borderBottom:"1px solid #E0E0E0"}},{children:e.jsx(u.BikShimmer,{boxes:[{height:"64px",width:"100%",marginTop:"0px"}]})}),i))):e.jsx(x.EmptyState,{title:"No products to show",subtitle:F.length?"We couldn't find the product you were looking for":"We couldn’t find any product in this collection."})]})]})};
|
|
@@ -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,7 @@ 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>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("../../constants/Theme.js");function
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components"),t=require("../../constants/Theme.js");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=i(e);const l=o.default.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
background-color: white;
|
|
4
4
|
max-height: 600px;
|
|
5
5
|
min-height: 600px;
|
|
6
6
|
flex-direction: column;
|
|
7
|
-
`,r=
|
|
7
|
+
`,r=o.default.div`
|
|
8
8
|
overflow-y: scroll;
|
|
9
9
|
overflow-x: hidden;
|
|
10
|
-
`,n=
|
|
10
|
+
`,n=o.default.div`
|
|
11
11
|
height: 64px;
|
|
12
|
-
background-color: ${e=>e.isDisabled?"#F0F0F0":"white"};
|
|
12
|
+
background-color: ${e=>e.isDisabled?"#F0F0F0":e.isActive?t.COLORS.background.positive.light:"white"};
|
|
13
13
|
border-bottom: 1px solid #e0e0e0;
|
|
14
14
|
padding: 12px 24px;
|
|
15
15
|
display: flex;
|
|
@@ -17,17 +17,17 @@
|
|
|
17
17
|
column-gap: 16px;
|
|
18
18
|
justify-content: space-between;
|
|
19
19
|
align-items: center;
|
|
20
|
-
`,d=
|
|
20
|
+
`,d=o.default.div`
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: row;
|
|
23
23
|
justify-content: center;
|
|
24
24
|
align-items: center;
|
|
25
25
|
column-gap: 18px;
|
|
26
|
-
`,a=
|
|
26
|
+
`,a=o.default.div`
|
|
27
27
|
display: flex;
|
|
28
28
|
flex-direction: column;
|
|
29
29
|
justify-content: center;
|
|
30
|
-
`,c=
|
|
30
|
+
`,c=o.default.div`
|
|
31
31
|
display: flex;
|
|
32
32
|
flex-direction: row;
|
|
33
33
|
max-height: 32px;
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
align-items: center;
|
|
38
38
|
padding: 8px 16px;
|
|
39
39
|
margin-top: 16px;
|
|
40
|
-
`,
|
|
40
|
+
`,p=o.default.div`
|
|
41
41
|
display: flex;
|
|
42
42
|
flex-direction: row;
|
|
43
43
|
column-gap: 16px;
|
|
44
44
|
padding: 12px 16px;
|
|
45
45
|
border-bottom: 1px solid #e0e0e0;
|
|
46
46
|
align-items: center;
|
|
47
|
-
`,
|
|
47
|
+
`,x=o.default.div`
|
|
48
48
|
height: 64px;
|
|
49
|
-
background-color: white;
|
|
49
|
+
background-color: ${e=>e.isActive?t.COLORS.background.positive.light:"white"};
|
|
50
50
|
border-bottom: 1px solid #e0e0e0;
|
|
51
51
|
padding: 12px 16px;
|
|
52
52
|
display: flex;
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
justify-content: flex-start;
|
|
56
56
|
align-items: center;
|
|
57
57
|
padding-left: ${e=>e.isVariant?"42px":"16px"};
|
|
58
|
-
`,s=
|
|
58
|
+
`,s=o.default.div`
|
|
59
59
|
display: flex;
|
|
60
60
|
flex-direction: row;
|
|
61
61
|
max-height: 32px;
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
justify-content: flex-start;
|
|
65
65
|
align-items: center;
|
|
66
66
|
padding: 8px 16px;
|
|
67
|
-
`,f=
|
|
67
|
+
`,f=o.default.div`
|
|
68
68
|
display: flex;
|
|
69
69
|
flex-direction: column;
|
|
70
|
-
`;exports.CollectionCardDetailStyle=a,exports.CollectionCardInfoStyle=d,exports.CollectionCardStyle=n,exports.CollectionNameHolder=f,exports.ContainerStyle=l,exports.ProductCardStyle=
|
|
70
|
+
`;exports.CollectionCardDetailStyle=a,exports.CollectionCardInfoStyle=d,exports.CollectionCardStyle=n,exports.CollectionNameHolder=f,exports.ContainerStyle=l,exports.ProductCardStyle=x,exports.ProductScreenCollectionCardStyle=p,exports.ProductScreenHeader=c,exports.ScrollContainerStyle=r,exports.SelectedScreenHeader=s;
|
|
@@ -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
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("../../constants/Theme.js"),a=require("../../node_modules/@mui/material/styles/styled.js"),o=require("../../node_modules/@mui/material/Slider/Slider.js");const d=a.default(o.default)({marginTop:"30px",color:r.COLORS.background.brand,height:8,"& .MuiSlider-track":{border:"none"},"& .MuiSlider-thumb":{height:24,width:24,backgroundColor:r.COLORS.background.brand,border:`2px solid ${r.COLORS.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.COLORS.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)"}}});exports.BikSlider=r=>{let{min:a,max:o,defaultValue:i,onChange:t,step:l=1,disabled:n=!1}=r;return e.jsx(d,{valueLabelDisplay:"auto","aria-label":"bik slider",value:i,min:a,max:o,onChange:t,step:l,disabled:n})};
|
package/dist/cjs/components/template-context-mapper/modalElements/VariableConnectorsPanel.js
CHANGED
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
display: flex;
|
|
26
26
|
align-items: center;
|
|
27
27
|
}
|
|
28
|
-
`;exports.AddVariableStyled=g,exports.Container=j,exports.default=i=>{let{onFocus:p,showVariableModal:b,variableList:f,discountCode:v,setDiscountCode:y}=i;const{originalVariableList:m,channel:V}=h.useTemplateModalContext(),[O,C]=t.useState(!1),[S,q]=t.useState(!1),[w,T]=t.useState(!1),[k,L]=t.useState(""),[B,E]=t.useState(!1),A=t.useRef(),I=t.useRef();return t.useEffect((()=>{y&&y(v+k)}),[k]),t.useEffect((()=>{m.forEach((e=>{"checkout.checkoutUrl"===e.updatedValue.replace("{{","").replace("}}","")&&(C(!0),v&&E&&E(!0))}))}),[m]),e.jsxs(j,{children:[e.jsxs("div",Object.assign({style:{padding:8}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",gap:8,alignItems:"center",marginBottom:4}},{children:[e.jsx(d.TitleRegular,Object.assign({style:{color:o.COLORS.content.primary}},{children:"Edit variables and links"})),e.jsx(n.Tooltip,Object.assign({body:"Variables are placeholder texts which can either be filled by data, eg: customer name or can have any custom text within them"},{children:e.jsx("div",Object.assign({style:{display:"flex"}},{children:e.jsx(a.default,{width:20,height:20,color:o.COLORS.content.placeholder})}))}))]})),e.jsx(d.BodySecondary,Object.assign({style:{color:o.COLORS.content.secondary}},{children:"You can view variables and links on the left underlined in purple colour."}))]})),null==m?void 0:m.map(((a,t)=>V!==u.CHANNEL_TYPE.EMAIL||a.isEditableVariable?e.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsx(x.default,{index:t,variable:a,onFocus:()=>null==p?void 0:p(t),showVariableModal:b,variableList:f,setShowDiscountCheckBox:C})}),t):e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(d.BodySecondary,Object.assign({style:{color:o.COLORS.content.primary}},{children:["Locked variable ",t+1]})),e.jsx(l.Input,{state:"disabled",placeholder:a.variableName,onChangeText:()=>{}})]}),t))),(O||v)&&e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",marginLeft:10,marginTop:8}},{children:[e.jsx(c.CheckBox,{isChecked:B,onValueChange:()=>{E(!B)}}),e.jsx(d.TitleSmall,Object.assign({style:{marginLeft:8}},{children:"Add discount code"}))]})),B&&e.jsxs("div",Object.assign({ref:A,style:{margin:10}},{children:[e.jsx(l.Input,{placeholder:"Enter your discount code",onChangeText:e=>{y&&y(e)},value:v,onFocus:()=>{q(!0)},onBlur:e=>{var a;"addVar"===(null===(a=e.relatedTarget)||void 0===a?void 0:a.id)?(A.current&&A.current.focus(),q(!0)):(q(!1),T(!1))},noErrorHint:!0,validate:e=>[!0,""]}),S&&e.jsx(g,Object.assign({ref:I,id:"addVar",onClick:e=>{e.stopPropagation(),T(!0)}},{children:e.jsxs("div",Object.assign({className:"add"},{children:[e.jsx(s.default,{width:20,height:20,color:"white"}),e.jsx("div",Object.assign({className:"variable"},{children:"Add variable"}))]}))}))]})),w&&e.jsx(r.AddVariableV2SideModal,{zIndex:2e3,data:null!=f?f:[],showVariable:w,setShowVariable:T,variableValue:k,setVariableValue:L,placeholder:"Add a variable",customTrigger:e=>{L(e.actualValue),q(!1)}})]})};
|
|
28
|
+
`;exports.AddVariableStyled=g,exports.Container=j,exports.default=i=>{let{onFocus:p,showVariableModal:b,variableList:f,discountCode:v,setDiscountCode:y}=i;const{originalVariableList:m,channel:V}=h.useTemplateModalContext(),[O,C]=t.useState(!1),[S,q]=t.useState(!1),[w,T]=t.useState(!1),[k,L]=t.useState(""),[B,E]=t.useState(!1),A=t.useRef(),I=t.useRef();return t.useEffect((()=>{y&&y(v+k)}),[k]),t.useEffect((()=>{m.forEach((e=>{"checkout.checkoutUrl"===e.updatedValue.replace("{{","").replace("}}","")&&(C(!0),v&&E&&E(!0))}))}),[m]),e.jsxs(j,{children:[e.jsxs("div",Object.assign({style:{padding:8}},{children:[e.jsxs("div",Object.assign({style:{display:"flex",gap:8,alignItems:"center",marginBottom:4}},{children:[e.jsx(d.TitleRegular,Object.assign({style:{color:o.COLORS.content.primary}},{children:"Edit variables and links"})),e.jsx(n.Tooltip,Object.assign({body:"Variables are placeholder texts which can either be filled by data, eg: customer name or can have any custom text within them"},{children:e.jsx("div",Object.assign({style:{display:"flex"}},{children:e.jsx(a.default,{width:20,height:20,color:o.COLORS.content.placeholder})}))}))]})),e.jsx(d.BodySecondary,Object.assign({style:{color:o.COLORS.content.secondary}},{children:"You can view variables and links on the left underlined in purple colour."}))]})),null==m?void 0:m.map(((a,t)=>V!==u.CHANNEL_TYPE.EMAIL||a.isEditableVariable?e.jsx("div",Object.assign({style:{marginTop:16}},{children:e.jsx(x.default,{index:t,variable:a,onFocus:()=>null==p?void 0:p(t),showVariableModal:b,variableList:f,setShowDiscountCheckBox:C})}),t):e.jsxs("div",Object.assign({style:{margin:"16px 8px"}},{children:[e.jsxs(d.BodySecondary,Object.assign({style:{color:o.COLORS.content.primary}},{children:["Locked variable ",t+1]})),e.jsx(l.Input,{state:"disabled",placeholder:a.variableName,onChangeText:()=>{}})]}),t))),(O||v)&&e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",marginLeft:10,marginTop:8}},{children:[e.jsx(c.CheckBox,{isChecked:B,onValueChange:()=>{B&&y&&y(""),E(!B)}}),e.jsx(d.TitleSmall,Object.assign({style:{marginLeft:8}},{children:"Add discount code"}))]})),B&&e.jsxs("div",Object.assign({ref:A,style:{margin:10}},{children:[e.jsx(l.Input,{placeholder:"Enter your discount code",onChangeText:e=>{y&&y(e)},value:v,onFocus:()=>{q(!0)},onBlur:e=>{var a;"addVar"===(null===(a=e.relatedTarget)||void 0===a?void 0:a.id)?(A.current&&A.current.focus(),q(!0)):(q(!1),T(!1))},noErrorHint:!0,validate:e=>[!0,""]}),S&&e.jsx(g,Object.assign({ref:I,id:"addVar",onClick:e=>{e.stopPropagation(),T(!0)}},{children:e.jsxs("div",Object.assign({className:"add"},{children:[e.jsx(s.default,{width:20,height:20,color:"white"}),e.jsx("div",Object.assign({className:"variable"},{children:"Add variable"}))]}))}))]})),w&&e.jsx(r.AddVariableV2SideModal,{zIndex:2e3,data:null!=f?f:[],showVariable:w,setShowVariable:T,variableValue:k,setVariableValue:L,placeholder:"Add a variable",customTrigger:e=>{L(e.actualValue),q(!1)}})]})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../assets/icons/arrow_left.svg.js"),r=require("../../assets/icons/more_vertical.svg.js"),t=require("../../assets/icons/search.svg.js"),i=require("../../constants/Theme.js"),l=require("../TypographyStyle.js"),n=require("./helpers/SmsTemplateHelper.js"),a=require("./SMS/SMSBubble.js"),o=require("./SmsTemplatePreview.styled.js");exports.default=d=>{let{template:c,variableStore:
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),s=require("../../assets/icons/arrow_left.svg.js"),r=require("../../assets/icons/more_vertical.svg.js"),t=require("../../assets/icons/search.svg.js"),i=require("../../constants/Theme.js"),l=require("../TypographyStyle.js"),n=require("./helpers/SmsTemplateHelper.js"),a=require("./SMS/SMSBubble.js"),o=require("./SmsTemplatePreview.styled.js");exports.default=d=>{let{template:c,variableStore:u,hideHeader:j,display_content:h,onlyTemplateContent:x,size:g}=d;var p;const S=null==c?void 0:c.content;return e.jsxs(e.Fragment,{children:[!j&&!x&&e.jsx(o.SMSCardHeader,{children:e.jsx(l.TitleRegular,Object.assign({style:{maxWidth:"100%"}},{children:c.name}))}),!x&&e.jsx(o.SMSHeader,{children:e.jsxs(e.Fragment,{children:[e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:8}},{children:[e.jsx(s.default,{width:16,height:16,color:i.COLORS.content.secondary}),e.jsx(l.Caption,{children:null===(p=null==c?void 0:c.headers)||void 0===p?void 0:p[0]})]})),e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"row",gap:8}},{children:[e.jsx(t.default,{width:16,height:16,color:i.COLORS.content.secondary}),e.jsx(r.default,{width:16,height:16,color:i.COLORS.content.secondary})]}))]})}),e.jsx(o.SMSBubbleContainer,Object.assign({size:g},{children:e.jsx(a.default,{size:null!=g?g:"large",content:null!=h?h:n.renderVariableUIForPreview(S,null!=u?u:[])})}))]})};
|
|
@@ -4,6 +4,7 @@ export declare const BASE_COLORS: {
|
|
|
4
4
|
800: string;
|
|
5
5
|
500: string;
|
|
6
6
|
50: string;
|
|
7
|
+
10: string;
|
|
7
8
|
};
|
|
8
9
|
grayscale: {
|
|
9
10
|
900: string;
|
|
@@ -12,6 +13,7 @@ export declare const BASE_COLORS: {
|
|
|
12
13
|
400: string;
|
|
13
14
|
200: string;
|
|
14
15
|
100: string;
|
|
16
|
+
70: string;
|
|
15
17
|
50: string;
|
|
16
18
|
white: string;
|
|
17
19
|
alpha: string;
|
|
@@ -43,6 +45,7 @@ export declare const COLORS: {
|
|
|
43
45
|
inverseLight: string;
|
|
44
46
|
brand: string;
|
|
45
47
|
brandLight: string;
|
|
48
|
+
brandVeryLight: string;
|
|
46
49
|
negative: {
|
|
47
50
|
vibrant: string;
|
|
48
51
|
light: string;
|
|
@@ -69,6 +72,7 @@ export declare const COLORS: {
|
|
|
69
72
|
standard: string;
|
|
70
73
|
subdued: string;
|
|
71
74
|
hovered: string;
|
|
75
|
+
grey: string;
|
|
72
76
|
};
|
|
73
77
|
content: {
|
|
74
78
|
primary: string;
|
|
@@ -323,6 +327,7 @@ export declare const DEFAULT_THEME: {
|
|
|
323
327
|
inverseLight: string;
|
|
324
328
|
brand: string;
|
|
325
329
|
brandLight: string;
|
|
330
|
+
brandVeryLight: string;
|
|
326
331
|
negative: {
|
|
327
332
|
vibrant: string;
|
|
328
333
|
light: string;
|
|
@@ -349,6 +354,7 @@ export declare const DEFAULT_THEME: {
|
|
|
349
354
|
standard: string;
|
|
350
355
|
subdued: string;
|
|
351
356
|
hovered: string;
|
|
357
|
+
grey: string;
|
|
352
358
|
};
|
|
353
359
|
content: {
|
|
354
360
|
primary: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={brand:{900:"#28034E",800:"#4B1583",500:"#731DCF",50:"#EFE6F9"},grayscale:{900:"#212121",700:"#616161",500:"#9E9E9E",400:"#BDBDBD",200:"#E0E0E0",100:"#F0F0F0",50:"#FAFAFA",white:"#FFFFFF",alpha:"#00000088"},negative:{900:"#B92321",700:"#D53434",100:"#FFCED4",50:"#FFEBEF"},warning:{900:"#99631B",500:"#FEC02D",100:"#FFEABE",50:"#FFF7E5"},positive:{900:"#00580E",700:"#1A872C",100:"#C3E4C4",50:"#E6F4E7"}},t={background:{inactive:e.grayscale[200],base:e.grayscale[100],inverse:e.brand[900],inverseLight:e.brand[800],brand:e.brand[500],brandLight:e.brand[50],negative:{vibrant:e.negative[700],light:e.negative[50]},warning:{vibrant:e.warning[500],light:e.warning[50]},positive:{vibrant:e.positive[700],light:e.positive[50]},blue:{light:"#E5F2FF"}},icon:{placeholder:"#9E9E9E"},scrim:{standard:"#00000099"},surface:{standard:e.grayscale.white,subdued:e.grayscale[50],hovered:e.grayscale[100]},content:{primary:e.grayscale[900],secondary:e.grayscale[700],placeholder:e.grayscale[500],inactive:e.grayscale[400],brand:e.brand[500],primaryInverse:e.grayscale.white,secondaryInverse:"#ffffffcc",negative:e.negative[900],warning:e.warning[900],positive:e.positive[900],blue:"#28458F"},stroke:{primary:e.grayscale[200],brand:e.brand[500],negative:{lightAlt:e.negative[100],vibrant:e.negative[700]},warning:{lightAlt:e.warning[100],vibrant:e.warning[500]},positive:{lightAlt:e.positive[100],vibrant:e.positive[700]},brandLightAlt:"#DDCCF0",blue:{lightAlt:"#C3D5E5"}},special:{whatsapp:{brand:"#25D366",gradient:"linear-gradient(360deg, #20B038 0%, #60D66A 100%)",dark:"#455A64",gradientArr:["#20B038","#60D66A"]},brand:{google:"#DD4B39",facebook:"#1877F2"}},text:{primary:e.grayscale[900],secondary:e.grayscale[700],placeholder:e.grayscale[500],disabled:e.grayscale[400],white:e.grayscale.white,brand:e.brand[500],altPrimary:e.brand[900],altSecondary:e.brand[800]}},i={display:{fontWeight:"400",fontSize:32,lineHeight:40,letterSpacing:0},titleXLarge:{fontWeight:"600",fontSize:32,lineHeight:40,letterSpacing:0},titleLarge:{fontWeight:"600",fontSize:28,lineHeight:40,letterSpacing:0},titleMedium:{fontWeight:"600",fontSize:20,lineHeight:28,letterSpacing:0},titleRegular:{fontWeight:"600",fontSize:16,lineHeight:24,letterSpacing:0},titleSmall:{fontWeight:"600",fontSize:14,lineHeight:20,letterSpacing:0},bodyPrimary:{fontWeight:"400",fontSize:16,lineHeight:24,letterSpacing:0},bodyLarge:{fontWeight:"400",fontSize:20,lineHeight:28,letterSpacing:0},bodySecondary:{fontWeight:"400",fontSize:14,lineHeight:20,letterSpacing:0},caption:{fontWeight:"400",fontSize:12,lineHeight:16,letterSpacing:0},tiny:{fontWeight:"400",fontSize:10,lineHeight:12,letterSpacing:0},subHeading:{fontWeight:"600",fontSize:10,lineHeight:12,letterSpacing:0},title1:{fontWeight:"600",fontSize:24,lineHeight:32,letterSpacing:0},title1Mobile:{fontWeight:"600",fontSize:20,lineHeight:30,letterSpacing:0},title2:{fontWeight:"600",fontSize:20,lineHeight:28,letterSpacing:0},title2Mobile:{fontWeight:"600",fontSize:18,lineHeight:24,letterSpacing:0},title3:{fontWeight:"600",fontSize:16,lineHeight:24,letterSpacing:0},title3Mobile:{fontWeight:"500",fontSize:14,lineHeight:20,letterSpacing:0},title4:{fontWeight:"400",fontSize:14,lineHeight:20,letterSpacing:0},textPlaceholder:{fontWeight:"400",fontSize:12,lineHeight:16,letterSpacing:0},title4Mobile:{fontWeight:"400",fontSize:10,lineHeight:16,letterSpacing:0},bodyRegularMobile:{fontWeight:"400",fontSize:14,lineHeight:18,letterSpacing:0},bodyRegular:{fontWeight:"400",fontSize:16,lineHeight:24,letterSpacing:0},bodySmall:{fontWeight:"400",fontSize:10,lineHeight:12,letterSpacing:0},buttonLarge:{fontWeight:"600",fontSize:16,lineHeight:20,letterSpacing:0},buttonRegular:{fontWeight:"600",fontSize:14,lineHeight:20,letterSpacing:0},captionMobile:{fontWeight:"500",fontSize:10,lineHeight:12,letterSpacing:0},captionBold:{fontWeight:"700",fontSize:12,lineHeight:16,letterSpacing:0},text1Bold:{fontWeight:"700",fontSize:10,lineHeight:14,letterSpacing:0},toast:{fontWeight:"400",fontSize:16,lineHeight:24,letterSpacing:0},toastMobile:{fontWeight:"400",fontSize:10,lineHeight:12,letterSpacing:0}},n={colorsV2:t,fonts:i};exports.BASE_COLORS=e,exports.COLORS=t,exports.DEFAULT_THEME=n,exports.FONTS=i;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const e={brand:{900:"#28034E",800:"#4B1583",500:"#731DCF",50:"#EFE6F9",10:"#F9F3FF"},grayscale:{900:"#212121",700:"#616161",500:"#9E9E9E",400:"#BDBDBD",200:"#E0E0E0",100:"#F0F0F0",70:"#F7F7F7",50:"#FAFAFA",white:"#FFFFFF",alpha:"#00000088"},negative:{900:"#B92321",700:"#D53434",100:"#FFCED4",50:"#FFEBEF"},warning:{900:"#99631B",500:"#FEC02D",100:"#FFEABE",50:"#FFF7E5"},positive:{900:"#00580E",700:"#1A872C",100:"#C3E4C4",50:"#E6F4E7"}},t={background:{inactive:e.grayscale[200],base:e.grayscale[100],inverse:e.brand[900],inverseLight:e.brand[800],brand:e.brand[500],brandLight:e.brand[50],brandVeryLight:e.brand[10],negative:{vibrant:e.negative[700],light:e.negative[50]},warning:{vibrant:e.warning[500],light:e.warning[50]},positive:{vibrant:e.positive[700],light:e.positive[50]},blue:{light:"#E5F2FF"}},icon:{placeholder:"#9E9E9E"},scrim:{standard:"#00000099"},surface:{standard:e.grayscale.white,subdued:e.grayscale[50],hovered:e.grayscale[100],grey:e.grayscale[70]},content:{primary:e.grayscale[900],secondary:e.grayscale[700],placeholder:e.grayscale[500],inactive:e.grayscale[400],brand:e.brand[500],primaryInverse:e.grayscale.white,secondaryInverse:"#ffffffcc",negative:e.negative[900],warning:e.warning[900],positive:e.positive[900],blue:"#28458F"},stroke:{primary:e.grayscale[200],brand:e.brand[500],negative:{lightAlt:e.negative[100],vibrant:e.negative[700]},warning:{lightAlt:e.warning[100],vibrant:e.warning[500]},positive:{lightAlt:e.positive[100],vibrant:e.positive[700]},brandLightAlt:"#DDCCF0",blue:{lightAlt:"#C3D5E5"}},special:{whatsapp:{brand:"#25D366",gradient:"linear-gradient(360deg, #20B038 0%, #60D66A 100%)",dark:"#455A64",gradientArr:["#20B038","#60D66A"]},brand:{google:"#DD4B39",facebook:"#1877F2"}},text:{primary:e.grayscale[900],secondary:e.grayscale[700],placeholder:e.grayscale[500],disabled:e.grayscale[400],white:e.grayscale.white,brand:e.brand[500],altPrimary:e.brand[900],altSecondary:e.brand[800]}},i={display:{fontWeight:"400",fontSize:32,lineHeight:40,letterSpacing:0},titleXLarge:{fontWeight:"600",fontSize:32,lineHeight:40,letterSpacing:0},titleLarge:{fontWeight:"600",fontSize:28,lineHeight:40,letterSpacing:0},titleMedium:{fontWeight:"600",fontSize:20,lineHeight:28,letterSpacing:0},titleRegular:{fontWeight:"600",fontSize:16,lineHeight:24,letterSpacing:0},titleSmall:{fontWeight:"600",fontSize:14,lineHeight:20,letterSpacing:0},bodyPrimary:{fontWeight:"400",fontSize:16,lineHeight:24,letterSpacing:0},bodyLarge:{fontWeight:"400",fontSize:20,lineHeight:28,letterSpacing:0},bodySecondary:{fontWeight:"400",fontSize:14,lineHeight:20,letterSpacing:0},caption:{fontWeight:"400",fontSize:12,lineHeight:16,letterSpacing:0},tiny:{fontWeight:"400",fontSize:10,lineHeight:12,letterSpacing:0},subHeading:{fontWeight:"600",fontSize:10,lineHeight:12,letterSpacing:0},title1:{fontWeight:"600",fontSize:24,lineHeight:32,letterSpacing:0},title1Mobile:{fontWeight:"600",fontSize:20,lineHeight:30,letterSpacing:0},title2:{fontWeight:"600",fontSize:20,lineHeight:28,letterSpacing:0},title2Mobile:{fontWeight:"600",fontSize:18,lineHeight:24,letterSpacing:0},title3:{fontWeight:"600",fontSize:16,lineHeight:24,letterSpacing:0},title3Mobile:{fontWeight:"500",fontSize:14,lineHeight:20,letterSpacing:0},title4:{fontWeight:"400",fontSize:14,lineHeight:20,letterSpacing:0},textPlaceholder:{fontWeight:"400",fontSize:12,lineHeight:16,letterSpacing:0},title4Mobile:{fontWeight:"400",fontSize:10,lineHeight:16,letterSpacing:0},bodyRegularMobile:{fontWeight:"400",fontSize:14,lineHeight:18,letterSpacing:0},bodyRegular:{fontWeight:"400",fontSize:16,lineHeight:24,letterSpacing:0},bodySmall:{fontWeight:"400",fontSize:10,lineHeight:12,letterSpacing:0},buttonLarge:{fontWeight:"600",fontSize:16,lineHeight:20,letterSpacing:0},buttonRegular:{fontWeight:"600",fontSize:14,lineHeight:20,letterSpacing:0},captionMobile:{fontWeight:"500",fontSize:10,lineHeight:12,letterSpacing:0},captionBold:{fontWeight:"700",fontSize:12,lineHeight:16,letterSpacing:0},text1Bold:{fontWeight:"700",fontSize:10,lineHeight:14,letterSpacing:0},toast:{fontWeight:"400",fontSize:16,lineHeight:24,letterSpacing:0},toastMobile:{fontWeight:"400",fontSize:10,lineHeight:12,letterSpacing:0}},n={colorsV2:t,fonts:i};exports.BASE_COLORS=e,exports.COLORS=t,exports.DEFAULT_THEME=n,exports.FONTS=i;
|
package/dist/cjs/index.d.ts
CHANGED