@trafilea/afrodita-components 4.0.2-beta.6 → 4.1.0
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/build/index.d.ts +1035 -909
- package/build/index.esm.js +535 -346
- package/build/index.esm.js.map +1 -1
- package/build/index.js +543 -347
- package/build/index.js.map +1 -1
- package/build/{dts/core/theme/Theme.d.ts → theme/shapermint.theme.d.ts} +26 -25
- package/build/theme/shapermint.theme.js +139 -63
- package/build/theme/truekind.theme.d.ts +383 -0
- package/build/theme/truekind.theme.js +82 -52
- package/package.json +1 -1
- package/build/dts/components/Demo.stories.d.ts +0 -7
- package/build/dts/components/Icon-wrapper/IconWrapper.d.ts +0 -12
- package/build/dts/components/Icon-wrapper/IconWrapper.test.d.ts +0 -1
- package/build/dts/components/accordion/Accordion.d.ts +0 -13
- package/build/dts/components/accordion/Accordion.stories.d.ts +0 -9
- package/build/dts/components/accordion/Accordion.test.d.ts +0 -1
- package/build/dts/components/accordion/styles.d.ts +0 -16
- package/build/dts/components/bundle/index.d.ts +0 -5
- package/build/dts/components/bundle/minimalistic/Minimalistic.d.ts +0 -15
- package/build/dts/components/bundle/minimalistic/Minimalistic.stories.d.ts +0 -9
- package/build/dts/components/bundle/minimalistic/Minimalistic.test.d.ts +0 -1
- package/build/dts/components/bundle/simple/Simple.d.ts +0 -10
- package/build/dts/components/bundle/simple/Simple.stories.d.ts +0 -9
- package/build/dts/components/bundle/simple/Simple.test.d.ts +0 -1
- package/build/dts/components/cartProductItem/CloseIcon/Close.test.d.ts +0 -1
- package/build/dts/components/cartProductItem/CloseIcon/CloseButton.d.ts +0 -5
- package/build/dts/components/cartProductItem/CloseIcon/CloseButton.stories.d.ts +0 -9
- package/build/dts/components/cartProductItem/Description/Description.d.ts +0 -5
- package/build/dts/components/cartProductItem/Description/Description.stories.d.ts +0 -9
- package/build/dts/components/cartProductItem/Description/Description.test.d.ts +0 -1
- package/build/dts/components/cartProductItem/Promo/Promo.d.ts +0 -5
- package/build/dts/components/cartProductItem/Promo/Promo.stories.d.ts +0 -9
- package/build/dts/components/cartProductItem/Promo/Promo.test.d.ts +0 -1
- package/build/dts/components/cartProductItem/ThinPrice/ThinPrice.d.ts +0 -5
- package/build/dts/components/cartProductItem/ThinPrice/ThinPrice.stories.d.ts +0 -9
- package/build/dts/components/cartProductItem/ThinPrice/ThinPrice.test.d.ts +0 -1
- package/build/dts/components/cartProductItem/Title/Title.d.ts +0 -5
- package/build/dts/components/cartProductItem/Title/Title.stories.d.ts +0 -9
- package/build/dts/components/cartProductItem/Title/Title.test.d.ts +0 -1
- package/build/dts/components/cartProductItem/index.d.ts +0 -8
- package/build/dts/components/checkbox/Checkbox.d.ts +0 -21
- package/build/dts/components/checkbox/Checkbox.stories.d.ts +0 -24
- package/build/dts/components/checkbox/Checkbox.test.d.ts +0 -1
- package/build/dts/components/checkbox/styles.d.ts +0 -9
- package/build/dts/components/collection/grid/WithProductGrid.d.ts +0 -11
- package/build/dts/components/collection/grid/WithProductGrid.stories.d.ts +0 -9
- package/build/dts/components/collection/grid/WithProductGrid.test.d.ts +0 -1
- package/build/dts/components/collection/index.d.ts +0 -5
- package/build/dts/components/collection/product/mobile/ProductItemMobile.d.ts +0 -7
- package/build/dts/components/collection/product/mobile/ProductItemMobile.stories.d.ts +0 -24
- package/build/dts/components/collection/product/mobile/ProductItemMobile.test.d.ts +0 -1
- package/build/dts/components/collection/product/types.d.ts +0 -14
- package/build/dts/components/color/ColorRadioGroup.d.ts +0 -25
- package/build/dts/components/color/MultiColorPicker.d.ts +0 -10
- package/build/dts/components/color/MultiColorPicker.stories.d.ts +0 -9
- package/build/dts/components/color/MultiColorPicker.test.d.ts +0 -1
- package/build/dts/components/color/SingleColorPicker.d.ts +0 -10
- package/build/dts/components/color/SingleColorPicker.stories.d.ts +0 -9
- package/build/dts/components/color/SingleColorPicker.test.d.ts +0 -1
- package/build/dts/components/color/selector/ColorSelector.d.ts +0 -15
- package/build/dts/components/color/selector/ColorSelector.stories.d.ts +0 -14
- package/build/dts/components/color/selector/ColorSelector.test.d.ts +0 -1
- package/build/dts/components/color/selector/OneColorSelector.d.ts +0 -8
- package/build/dts/components/color/selector/OutOfStock.d.ts +0 -6
- package/build/dts/components/color/selector/PatternSelector.d.ts +0 -8
- package/build/dts/components/color/selector/PatternSelector.test.d.ts +0 -1
- package/build/dts/components/color/selector/ThreeColorSelector.d.ts +0 -10
- package/build/dts/components/color/selector/TwoColorSelector.d.ts +0 -9
- package/build/dts/components/cross-sell/Checkbox/CrossSellCheckbox.d.ts +0 -13
- package/build/dts/components/cross-sell/Checkbox/CrossSellCheckbox.stories.d.ts +0 -9
- package/build/dts/components/cross-sell/Checkbox/CrossSellCheckbox.test.d.ts +0 -1
- package/build/dts/components/cross-sell/index.d.ts +0 -1
- package/build/dts/components/cta/BaseCTA.d.ts +0 -13
- package/build/dts/components/cta/BaseCTA.test.d.ts +0 -1
- package/build/dts/components/cta/index.d.ts +0 -3
- package/build/dts/components/cta/primary/ButtonPrimary.d.ts +0 -3
- package/build/dts/components/cta/primary/ButtonPrimary.stories.d.ts +0 -37
- package/build/dts/components/cta/primary/ButtonPrimary.test.d.ts +0 -1
- package/build/dts/components/cta/secondary/ButtonSecondary.d.ts +0 -3
- package/build/dts/components/cta/secondary/ButtonSecondary.stories.d.ts +0 -37
- package/build/dts/components/cta/secondary/ButtonSecondary.test.d.ts +0 -1
- package/build/dts/components/cta/secondary/ButtonSecondaryOutline.d.ts +0 -3
- package/build/dts/components/cta/secondary/ButtonSecondaryOutline.stories.d.ts +0 -37
- package/build/dts/components/cta/secondary/ButtonSecondaryOutline.test.d.ts +0 -1
- package/build/dts/components/delivery-details/DeliveryDetails.d.ts +0 -26
- package/build/dts/components/delivery-details/DeliveryDetails.stories.d.ts +0 -9
- package/build/dts/components/delivery-details/DeliveryDetails.test.d.ts +0 -1
- package/build/dts/components/delivery-details/Note/Note.d.ts +0 -9
- package/build/dts/components/delivery-details/Note/Note.stories.d.ts +0 -9
- package/build/dts/components/delivery-details/Note/Note.test.d.ts +0 -1
- package/build/dts/components/drawer/Drawer.d.ts +0 -13
- package/build/dts/components/drawer/Drawer.stories.d.ts +0 -14
- package/build/dts/components/drawer/Drawer.test.d.ts +0 -1
- package/build/dts/components/dropdown/base/BaseDropdown.d.ts +0 -17
- package/build/dts/components/dropdown/base/BaseDropdownButton.d.ts +0 -12
- package/build/dts/components/dropdown/base/BaseDropdownOption.d.ts +0 -11
- package/build/dts/components/dropdown/base/BaseDropdownOptions.d.ts +0 -6
- package/build/dts/components/dropdown/variants/filtering/Filtering.test.d.ts +0 -1
- package/build/dts/components/dropdown/variants/filtering/FilteringDropdown.d.ts +0 -13
- package/build/dts/components/dropdown/variants/filtering/FilteringDropdown.stories.d.ts +0 -12
- package/build/dts/components/dropdown/variants/simple/SimpleDropdown.d.ts +0 -20
- package/build/dts/components/dropdown/variants/simple/SimpleDropdown.stories.d.ts +0 -13
- package/build/dts/components/dropdown/variants/simple/SimpleDropdown.test.d.ts +0 -1
- package/build/dts/components/dropdown-list-icons/DropdownListIcons.d.ts +0 -6
- package/build/dts/components/dropdown-list-icons/DropdownListIcons.stories.d.ts +0 -9
- package/build/dts/components/dropdown-list-icons/DropdownListIcons.test.d.ts +0 -1
- package/build/dts/components/dropdown-list-icons/Styled.d.ts +0 -34
- package/build/dts/components/filtering/Accordion.d.ts +0 -8
- package/build/dts/components/filtering/Filters.d.ts +0 -15
- package/build/dts/components/filtering/Filters.stories.d.ts +0 -9
- package/build/dts/components/filtering/Filters.test.d.ts +0 -1
- package/build/dts/components/filtering/FiltersStyled.d.ts +0 -43
- package/build/dts/components/filtering/Tags/Tags.d.ts +0 -24
- package/build/dts/components/filtering/Tags/Tags.stories.d.ts +0 -9
- package/build/dts/components/filtering/Tags/Tags.test.d.ts +0 -1
- package/build/dts/components/fit/FitPredictor.d.ts +0 -5
- package/build/dts/components/fit/FitPredictor.stories.d.ts +0 -7
- package/build/dts/components/fit/FitPredictor.test.d.ts +0 -1
- package/build/dts/components/gallery/ImagePreviewList.d.ts +0 -9
- package/build/dts/components/gallery/ImagePreviewList.test.d.ts +0 -1
- package/build/dts/components/gallery/ImageProductWithTags.d.ts +0 -10
- package/build/dts/components/gallery/ImageProductWithTags.test.d.ts +0 -1
- package/build/dts/components/gallery/ImageSmallPreview.d.ts +0 -9
- package/build/dts/components/gallery/ImageSmallPreview.test.d.ts +0 -1
- package/build/dts/components/gallery/ProductGallery.d.ts +0 -12
- package/build/dts/components/gallery/ProductGallery.stories.d.ts +0 -9
- package/build/dts/components/gallery/ProductGallery.test.d.ts +0 -1
- package/build/dts/components/icon-button/IconButton.d.ts +0 -16
- package/build/dts/components/icon-button/IconButton.stories.d.ts +0 -23
- package/build/dts/components/icon-button/IconButton.test.d.ts +0 -1
- package/build/dts/components/icon-button/amazonAndPaypal/AmazonPaypalButtons.d.ts +0 -6
- package/build/dts/components/icon-button/amazonAndPaypal/AmazonPaypalButtons.stories.d.ts +0 -7
- package/build/dts/components/icon-button/amazonAndPaypal/AmazonPaypalButtons.test.d.ts +0 -1
- package/build/dts/components/icons/Actions/Check.d.ts +0 -3
- package/build/dts/components/icons/Actions/ClearLight.d.ts +0 -3
- package/build/dts/components/icons/Actions/Close.d.ts +0 -3
- package/build/dts/components/icons/Actions/LightCheck.d.ts +0 -6
- package/build/dts/components/icons/Actions/LightExclamation.d.ts +0 -3
- package/build/dts/components/icons/Actions/Question.d.ts +0 -3
- package/build/dts/components/icons/Actions/Trash.d.ts +0 -3
- package/build/dts/components/icons/Actions/index.d.ts +0 -7
- package/build/dts/components/icons/Arrows/ChevronDown.d.ts +0 -3
- package/build/dts/components/icons/Arrows/ChevronLeft.d.ts +0 -3
- package/build/dts/components/icons/Arrows/ChevronRight.d.ts +0 -3
- package/build/dts/components/icons/Arrows/ChevronRightVariant.d.ts +0 -3
- package/build/dts/components/icons/Arrows/ChevronUp.d.ts +0 -3
- package/build/dts/components/icons/Arrows/ChevronUpSolid.d.ts +0 -3
- package/build/dts/components/icons/Arrows/CircleUp.d.ts +0 -3
- package/build/dts/components/icons/Arrows/index.d.ts +0 -7
- package/build/dts/components/icons/Custom/SixtyDaysGuarantee.d.ts +0 -3
- package/build/dts/components/icons/Custom/index.d.ts +0 -1
- package/build/dts/components/icons/Download/AppleStore.d.ts +0 -3
- package/build/dts/components/icons/Download/GooglePlay.d.ts +0 -3
- package/build/dts/components/icons/Download/index.d.ts +0 -2
- package/build/dts/components/icons/Messaging/Comment.d.ts +0 -3
- package/build/dts/components/icons/Messaging/Mail.d.ts +0 -2
- package/build/dts/components/icons/Messaging/Message.d.ts +0 -8
- package/build/dts/components/icons/Messaging/Messenger.d.ts +0 -3
- package/build/dts/components/icons/Messaging/QuestionCircle.d.ts +0 -3
- package/build/dts/components/icons/Messaging/index.d.ts +0 -5
- package/build/dts/components/icons/Navigation/MapMarker.d.ts +0 -3
- package/build/dts/components/icons/Navigation/Search.d.ts +0 -3
- package/build/dts/components/icons/Navigation/ShoppingBag.d.ts +0 -3
- package/build/dts/components/icons/Navigation/User.d.ts +0 -3
- package/build/dts/components/icons/Navigation/index.d.ts +0 -4
- package/build/dts/components/icons/Other/FitPredictor.d.ts +0 -3
- package/build/dts/components/icons/Other/Loading.d.ts +0 -6
- package/build/dts/components/icons/Other/Shapermint.d.ts +0 -3
- package/build/dts/components/icons/Other/index.d.ts +0 -4
- package/build/dts/components/icons/Other/mcAfee.d.ts +0 -3
- package/build/dts/components/icons/PDP/Clock.d.ts +0 -3
- package/build/dts/components/icons/PDP/FlagUSA.d.ts +0 -3
- package/build/dts/components/icons/PDP/Minus.d.ts +0 -3
- package/build/dts/components/icons/PDP/Plus.d.ts +0 -3
- package/build/dts/components/icons/PDP/Rule.d.ts +0 -3
- package/build/dts/components/icons/PDP/Shipping.d.ts +0 -3
- package/build/dts/components/icons/PDP/Star.d.ts +0 -3
- package/build/dts/components/icons/PDP/StarEmpty.d.ts +0 -3
- package/build/dts/components/icons/PDP/StarHalf.d.ts +0 -3
- package/build/dts/components/icons/PDP/Stopwatch.d.ts +0 -3
- package/build/dts/components/icons/PDP/index.d.ts +0 -10
- package/build/dts/components/icons/Payment/Amazon.d.ts +0 -3
- package/build/dts/components/icons/Payment/Amex.d.ts +0 -3
- package/build/dts/components/icons/Payment/JCB.d.ts +0 -3
- package/build/dts/components/icons/Payment/Klarna.d.ts +0 -3
- package/build/dts/components/icons/Payment/MasterCard.d.ts +0 -3
- package/build/dts/components/icons/Payment/Paypal.d.ts +0 -3
- package/build/dts/components/icons/Payment/Visa.d.ts +0 -3
- package/build/dts/components/icons/Payment/index.d.ts +0 -7
- package/build/dts/components/icons/SlideDots/SlideDot.d.ts +0 -3
- package/build/dts/components/icons/SlideDots/index.d.ts +0 -1
- package/build/dts/components/icons/SocialMedia/Facebook.d.ts +0 -3
- package/build/dts/components/icons/SocialMedia/FacebookSolid.d.ts +0 -3
- package/build/dts/components/icons/SocialMedia/Instagram.d.ts +0 -3
- package/build/dts/components/icons/SocialMedia/InstagramSolid.d.ts +0 -3
- package/build/dts/components/icons/SocialMedia/Pinterest.d.ts +0 -3
- package/build/dts/components/icons/SocialMedia/Twitter.d.ts +0 -3
- package/build/dts/components/icons/SocialMedia/Youtube.d.ts +0 -3
- package/build/dts/components/icons/SocialMedia/index.d.ts +0 -7
- package/build/dts/components/icons/index.d.ts +0 -27
- package/build/dts/components/index.d.ts +0 -48
- package/build/dts/components/input/base/BaseInput.d.ts +0 -14
- package/build/dts/components/input/base/BaseInput.stories.d.ts +0 -9
- package/build/dts/components/input/base/BaseInput.test.d.ts +0 -1
- package/build/dts/components/input/base/Error.d.ts +0 -6
- package/build/dts/components/input/base/Styled.d.ts +0 -31
- package/build/dts/components/input/basePlusButton/BasePlusButton.d.ts +0 -13
- package/build/dts/components/input/basePlusButton/BasePlusButton.stories.d.ts +0 -9
- package/build/dts/components/input/basePlusButton/BasePlusButton.test.d.ts +0 -1
- package/build/dts/components/input/basePlusButton/Success.d.ts +0 -6
- package/build/dts/components/input/basePlusIcon/BasePlusIcon.d.ts +0 -7
- package/build/dts/components/input/basePlusIcon/BasePlusIcon.stories.d.ts +0 -9
- package/build/dts/components/input/basePlusIcon/BasePlusIcon.test.d.ts +0 -1
- package/build/dts/components/input/custom/Custom.d.ts +0 -8
- package/build/dts/components/input/custom/Custom.stories.d.ts +0 -9
- package/build/dts/components/input/custom/Custom.test.d.ts +0 -1
- package/build/dts/components/input/index.d.ts +0 -7
- package/build/dts/components/input/label/Label.d.ts +0 -15
- package/build/dts/components/input/label/Label.stories.d.ts +0 -9
- package/build/dts/components/input/label/Label.test.d.ts +0 -1
- package/build/dts/components/mobile/gallery/ImageProductWithTagsMobile.d.ts +0 -10
- package/build/dts/components/mobile/gallery/ProductGalleryMobile.d.ts +0 -12
- package/build/dts/components/mobile/gallery/ProductGalleryMobile.stories.d.ts +0 -8
- package/build/dts/components/mobile/gallery/ProductGalleryMobile.test.d.ts +0 -1
- package/build/dts/components/mobile/gallery/slide_navigation/ArrowButton.d.ts +0 -8
- package/build/dts/components/mobile/gallery/slide_navigation/SlideDots.d.ts +0 -8
- package/build/dts/components/mobile/gallery/slide_navigation/SlideDots.test.d.ts +0 -1
- package/build/dts/components/mobile/gallery/slide_navigation/SlideNavigation.d.ts +0 -9
- package/build/dts/components/mobile/gallery/slide_navigation/SlideNavigation.test.d.ts +0 -1
- package/build/dts/components/offer-banner/OfferBanner.d.ts +0 -15
- package/build/dts/components/offer-banner/OfferBanner.stories.d.ts +0 -9
- package/build/dts/components/offer-banner/OfferBanner.test.d.ts +0 -1
- package/build/dts/components/order-bar/OrderBar.d.ts +0 -17
- package/build/dts/components/order-bar/OrderBar.stories.d.ts +0 -9
- package/build/dts/components/order-bar/OrderBar.test.d.ts +0 -1
- package/build/dts/components/pagination/Pagination.d.ts +0 -11
- package/build/dts/components/pagination/Pagination.stories.d.ts +0 -9
- package/build/dts/components/pagination/Pagination.test.d.ts +0 -1
- package/build/dts/components/pagination/styles.d.ts +0 -29
- package/build/dts/components/payment-methods/PaymentMethod.d.ts +0 -20
- package/build/dts/components/payment-methods/PaymentMethod.stories.d.ts +0 -13
- package/build/dts/components/payment-methods/PaymentMethod.test.d.ts +0 -1
- package/build/dts/components/pricing/discount/DiscountTag.d.ts +0 -21
- package/build/dts/components/pricing/discount/DiscountTag.stories.d.ts +0 -23
- package/build/dts/components/pricing/discount/DiscountTag.test.d.ts +0 -1
- package/build/dts/components/pricing/index.d.ts +0 -2
- package/build/dts/components/pricing/price/PriceLabel.d.ts +0 -11
- package/build/dts/components/pricing/price/PriceLabel.stories.d.ts +0 -23
- package/build/dts/components/pricing/price/PriceLabel.test.d.ts +0 -1
- package/build/dts/components/product/order/item/SimpleOrderItem.d.ts +0 -20
- package/build/dts/components/product/order/item/SimpleOrderItem.stories.d.ts +0 -11
- package/build/dts/components/product/order/item/SimpleOrderItem.test.d.ts +0 -1
- package/build/dts/components/progress-bar/ProgressBar.d.ts +0 -8
- package/build/dts/components/progress-bar/ProgressBar.stories.d.ts +0 -8
- package/build/dts/components/progress-bar/ProgressBar.test.d.ts +0 -1
- package/build/dts/components/quantityPicker/QuantityPicker.d.ts +0 -6
- package/build/dts/components/quantityPicker/QuantityPicker.stories.d.ts +0 -9
- package/build/dts/components/quantityPicker/QuantityPicker.test.d.ts +0 -1
- package/build/dts/components/radio/container/group.d.ts +0 -12
- package/build/dts/components/radio/container/group.stories.d.ts +0 -23
- package/build/dts/components/radio/container/group.test.d.ts +0 -1
- package/build/dts/components/radio/index.d.ts +0 -1
- package/build/dts/components/radio/input/radio.d.ts +0 -13
- package/build/dts/components/radio/input/radio.stories.d.ts +0 -23
- package/build/dts/components/radio/input/radio.test.d.ts +0 -1
- package/build/dts/components/radio/input/styles.d.ts +0 -13
- package/build/dts/components/rating/Rating.d.ts +0 -9
- package/build/dts/components/rating/Rating.stories.d.ts +0 -24
- package/build/dts/components/rating/Rating.test.d.ts +0 -1
- package/build/dts/components/rating/starList/StarList.d.ts +0 -9
- package/build/dts/components/rating/starList/StarList.stories.d.ts +0 -24
- package/build/dts/components/rating/starList/StarList.test.d.ts +0 -1
- package/build/dts/components/rating/starList/styles.d.ts +0 -12
- package/build/dts/components/rating/styles.d.ts +0 -13
- package/build/dts/components/review/Review.d.ts +0 -19
- package/build/dts/components/review/Review.stories.d.ts +0 -9
- package/build/dts/components/review/Review.test.d.ts +0 -1
- package/build/dts/components/scroll-to-top/ScrollToTop.d.ts +0 -18
- package/build/dts/components/scroll-to-top/ScrollToTop.stories.d.ts +0 -9
- package/build/dts/components/scroll-to-top/ScrollToTop.test.d.ts +0 -1
- package/build/dts/components/search-bar/ClearButton.d.ts +0 -6
- package/build/dts/components/search-bar/ClearButton.test.d.ts +0 -1
- package/build/dts/components/search-bar/Footer.d.ts +0 -7
- package/build/dts/components/search-bar/Input.d.ts +0 -9
- package/build/dts/components/search-bar/ProductItem.d.ts +0 -8
- package/build/dts/components/search-bar/ProductItem.test.d.ts +0 -1
- package/build/dts/components/search-bar/ResultsPanel.d.ts +0 -12
- package/build/dts/components/search-bar/ResultsPanel.test.d.ts +0 -1
- package/build/dts/components/search-bar/SearchBar.d.ts +0 -11
- package/build/dts/components/search-bar/SearchBar.stories.d.ts +0 -7
- package/build/dts/components/search-bar/SearchBar.test.d.ts +0 -1
- package/build/dts/components/search-bar/SearchControl.d.ts +0 -7
- package/build/dts/components/search-bar/SearchControl.test.d.ts +0 -1
- package/build/dts/components/search-bar/index.d.ts +0 -1
- package/build/dts/components/selector/simple/SelectorSecondary.d.ts +0 -4
- package/build/dts/components/selector/simple/SelectorSecondary.stories.d.ts +0 -23
- package/build/dts/components/selector/simple/SelectorSecondary.test.d.ts +0 -1
- package/build/dts/components/selector/simple/SimpleSelector.d.ts +0 -11
- package/build/dts/components/selector/simple/SimpleSelector.test.d.ts +0 -1
- package/build/dts/components/shared/button/BaseButton.d.ts +0 -13
- package/build/dts/components/shared/button/BaseButton.stories.d.ts +0 -14
- package/build/dts/components/shared/card/Card.d.ts +0 -18
- package/build/dts/components/shared/card/Card.stories.d.ts +0 -7
- package/build/dts/components/shared/card/Card.test.d.ts +0 -1
- package/build/dts/components/shared/card/CardBody.d.ts +0 -5
- package/build/dts/components/shared/card/CardSection.d.ts +0 -6
- package/build/dts/components/shared/card/index.d.ts +0 -2
- package/build/dts/components/shared/image/Image.d.ts +0 -14
- package/build/dts/components/shared/image/Image.test.d.ts +0 -1
- package/build/dts/components/shared/label/label.d.ts +0 -13
- package/build/dts/components/shared/label/label.test.d.ts +0 -1
- package/build/dts/components/shared/label/styles.d.ts +0 -7
- package/build/dts/components/shared/select/BaseSelect.d.ts +0 -16
- package/build/dts/components/shared/select/BaseSelect.stories.d.ts +0 -11
- package/build/dts/components/shared/select/BaseSelectButton.d.ts +0 -17
- package/build/dts/components/shared/select/BaseSelectOption.d.ts +0 -22
- package/build/dts/components/shared/select/BaseSelectOptions.d.ts +0 -7
- package/build/dts/components/size/guide/SizeFitGuide.d.ts +0 -9
- package/build/dts/components/size/guide/SizeFitGuide.stories.d.ts +0 -9
- package/build/dts/components/size/guide/SizeFitGuide.test.d.ts +0 -1
- package/build/dts/components/size/selector/SizeSelector.d.ts +0 -10
- package/build/dts/components/size/selector/SizeSelector.stories.d.ts +0 -8
- package/build/dts/components/size/selector/SizeSelector.test.d.ts +0 -1
- package/build/dts/components/size-table/SizeTable.d.ts +0 -6
- package/build/dts/components/size-table/SizeTable.stories.d.ts +0 -9
- package/build/dts/components/size-table/SizeTable.test.d.ts +0 -1
- package/build/dts/components/slider/ArrowButton.d.ts +0 -14
- package/build/dts/components/slider/SliderNatigation.test.d.ts +0 -1
- package/build/dts/components/slider/SliderNavigation.d.ts +0 -17
- package/build/dts/components/slider/SliderNavigation.stories.d.ts +0 -9
- package/build/dts/components/slider/StyledSlider.d.ts +0 -16
- package/build/dts/components/spinner/Spinner.d.ts +0 -10
- package/build/dts/components/spinner/Spinner.stories.d.ts +0 -9
- package/build/dts/components/spinner/Spinner.test.d.ts +0 -1
- package/build/dts/components/tag/Tag.d.ts +0 -7
- package/build/dts/components/tag/Tag.test.d.ts +0 -1
- package/build/dts/components/tag/index.d.ts +0 -3
- package/build/dts/components/tag/variants/pdp/category/CategoryTag.d.ts +0 -8
- package/build/dts/components/tag/variants/pdp/category/CategoryTag.stories.d.ts +0 -22
- package/build/dts/components/tag/variants/pdp/category/CategoryTag.test.d.ts +0 -1
- package/build/dts/components/tag/variants/pdp/season-offer/SeasonOfferTag.d.ts +0 -9
- package/build/dts/components/tag/variants/pdp/season-offer/SeasonOfferTag.stories.d.ts +0 -22
- package/build/dts/components/tag/variants/pdp/season-offer/SeasonOfferTag.test.d.ts +0 -1
- package/build/dts/components/text/Text.d.ts +0 -99
- package/build/dts/components/text/Text.stories.d.ts +0 -16
- package/build/dts/components/text-button/TextButton.d.ts +0 -13
- package/build/dts/components/text-button/TextButton.stories.d.ts +0 -58
- package/build/dts/components/text-button/TextButton.test.d.ts +0 -1
- package/build/dts/components/timer/Timer.d.ts +0 -13
- package/build/dts/components/timer/Timer.stories.d.ts +0 -9
- package/build/dts/components/timer/Timer.test.d.ts +0 -1
- package/build/dts/components/tooltip/Arrow.d.ts +0 -6
- package/build/dts/components/tooltip/Styled.d.ts +0 -56
- package/build/dts/components/tooltip/Tooltip.d.ts +0 -15
- package/build/dts/components/tooltip/Tooltip.stories.d.ts +0 -35
- package/build/dts/components/tooltip/Tooltip.test.d.ts +0 -1
- package/build/dts/components/tooltip/utils.d.ts +0 -7
- package/build/dts/components/totals/index.d.ts +0 -5
- package/build/dts/components/totals/subtotal/Subtotal.d.ts +0 -22
- package/build/dts/components/totals/subtotal/Subtotal.stories.d.ts +0 -9
- package/build/dts/components/totals/subtotal/Subtotal.test.d.ts +0 -1
- package/build/dts/components/totals/total/Total.d.ts +0 -38
- package/build/dts/components/totals/total/Total.stories.d.ts +0 -9
- package/build/dts/components/totals/total/Total.test.d.ts +0 -1
- package/build/dts/config/breakpoints.d.ts +0 -5
- package/build/dts/core/theme/Theme.test.d.ts +0 -1
- package/build/dts/core/theme/shapermint.theme.d.ts +0 -3
- package/build/dts/core/theme/theme.helpers.d.ts +0 -13
- package/build/dts/core/theme/truekind.theme.d.ts +0 -3
- package/build/dts/hooks/WindowDimensions.d.ts +0 -8
- package/build/dts/hooks/click-outside.d.ts +0 -3
- package/build/dts/hooks/index.d.ts +0 -3
- package/build/dts/index.d.ts +0 -5
- package/build/dts/setupTests.d.ts +0 -1
- package/build/dts/types/enums.d.ts +0 -21
- package/build/dts/types/types.d.ts +0 -81
- package/build/dts/utils/dateFormatter/dateFormatter.d.ts +0 -1
- package/build/dts/utils/dateFormatter/dateFormatter.test.d.ts +0 -1
- package/build/dts/utils/decimalParser/decimalParser.d.ts +0 -4
- package/build/dts/utils/decimalParser/decimalParser.test.d.ts +0 -1
- package/build/dts/utils/index.d.ts +0 -4
- package/build/dts/utils/media.d.ts +0 -7
- package/build/dts/utils/simulateClick/simulateClick.d.ts +0 -1
- package/build/dts/utils/simulateClick/simulateClick.test.d.ts +0 -1
- package/build/dts/utils/sliceString/sliceString.d.ts +0 -1
- package/build/dts/utils/sliceString/sliceString.test.d.ts +0 -1
- package/build/dts/utils/validations/validations.d.ts +0 -5
- package/build/dts/utils/validations/validations.test.d.ts +0 -1
package/build/index.d.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import React, { ReactNode, FC, AriaAttributes, CSSProperties, AnchorHTMLAttributes, LabelHTMLAttributes, ElementType, RefObject } from 'react';
|
|
2
|
+
import React, { FC, ReactNode, ElementType, CSSProperties, AriaAttributes, AnchorHTMLAttributes, LabelHTMLAttributes, RefObject } from 'react';
|
|
4
3
|
import * as _emotion_react_jsx_runtime from '@emotion/react/jsx-runtime';
|
|
5
4
|
import * as _emotion_react_types_jsx_namespace from '@emotion/react/types/jsx-namespace';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import * as _emotion_styled from '@emotion/styled';
|
|
6
|
+
import * as _emotion_react from '@emotion/react';
|
|
8
7
|
|
|
9
8
|
declare enum CardSectionType {
|
|
10
9
|
Header = 0,
|
|
@@ -28,7 +27,7 @@ declare enum InputValidationType {
|
|
|
28
27
|
Empty = 2
|
|
29
28
|
}
|
|
30
29
|
|
|
31
|
-
interface IconProps
|
|
30
|
+
interface IconProps {
|
|
32
31
|
width?: number;
|
|
33
32
|
height?: number;
|
|
34
33
|
fill?: string;
|
|
@@ -77,7 +76,7 @@ declare type ImageType = {
|
|
|
77
76
|
imageUrl: string;
|
|
78
77
|
alt: string;
|
|
79
78
|
};
|
|
80
|
-
interface IconWithOpacityProps extends IconProps
|
|
79
|
+
interface IconWithOpacityProps extends IconProps {
|
|
81
80
|
opacity?: number;
|
|
82
81
|
}
|
|
83
82
|
interface WithTestId {
|
|
@@ -108,7 +107,7 @@ interface SearchBarOptionItem {
|
|
|
108
107
|
title: string;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
|
-
declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps
|
|
110
|
+
declare const SixtyDaysGuarantee: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
112
111
|
|
|
113
112
|
declare const Custom_SixtyDaysGuarantee: typeof SixtyDaysGuarantee;
|
|
114
113
|
declare namespace Custom {
|
|
@@ -117,22 +116,22 @@ declare namespace Custom {
|
|
|
117
116
|
};
|
|
118
117
|
}
|
|
119
118
|
|
|
120
|
-
declare const Check: ({ height, width, fill }: IconProps
|
|
119
|
+
declare const Check: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
121
120
|
|
|
122
|
-
declare const ClearLight: ({ height, width, fill }: IconProps
|
|
121
|
+
declare const ClearLight: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
123
122
|
|
|
124
|
-
declare const LightExclamation: ({ height, width, fill }: IconProps
|
|
123
|
+
declare const LightExclamation: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
125
124
|
|
|
126
|
-
interface LightCheckProps extends IconProps
|
|
125
|
+
interface LightCheckProps extends IconProps {
|
|
127
126
|
strokeWidth?: number;
|
|
128
127
|
}
|
|
129
128
|
declare const LightCheck: ({ height, width, fill, strokeWidth }: LightCheckProps) => JSX.Element;
|
|
130
129
|
|
|
131
|
-
declare const Question: ({ height, width, fill }: IconProps
|
|
130
|
+
declare const Question: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
132
131
|
|
|
133
|
-
declare const Close: ({ height, width, fill }: IconProps
|
|
132
|
+
declare const Close: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
134
133
|
|
|
135
|
-
declare const Trash: ({ height, width, fill }: IconProps
|
|
134
|
+
declare const Trash: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
136
135
|
|
|
137
136
|
declare const Actions_Check: typeof Check;
|
|
138
137
|
declare const Actions_ClearLight: typeof ClearLight;
|
|
@@ -155,16 +154,16 @@ declare namespace Actions {
|
|
|
155
154
|
};
|
|
156
155
|
}
|
|
157
156
|
|
|
158
|
-
declare const FitPredictor$1: ({ height, width, fill }: IconProps
|
|
157
|
+
declare const FitPredictor$1: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
159
158
|
|
|
160
|
-
interface LoadingProps extends IconProps
|
|
159
|
+
interface LoadingProps extends IconProps {
|
|
161
160
|
backgroundColor: string;
|
|
162
161
|
}
|
|
163
162
|
declare const Loading: ({ height, width, fill, backgroundColor }: LoadingProps) => JSX.Element;
|
|
164
163
|
|
|
165
|
-
declare const Shapermint: ({ height, width }: IconProps
|
|
164
|
+
declare const Shapermint: ({ height, width }: IconProps) => JSX.Element;
|
|
166
165
|
|
|
167
|
-
declare const McAfee: ({ height, width }: IconProps
|
|
166
|
+
declare const McAfee: ({ height, width }: IconProps) => JSX.Element;
|
|
168
167
|
|
|
169
168
|
type Other_LoadingProps = LoadingProps;
|
|
170
169
|
declare const Other_Loading: typeof Loading;
|
|
@@ -180,19 +179,19 @@ declare namespace Other {
|
|
|
180
179
|
};
|
|
181
180
|
}
|
|
182
181
|
|
|
183
|
-
declare const ChevronDown: ({ height, width, fill }: IconProps
|
|
182
|
+
declare const ChevronDown: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
184
183
|
|
|
185
184
|
declare const ChevronLeft: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
|
|
186
185
|
|
|
187
186
|
declare const ChevronRight: ({ height, width, fill, opacity }: IconWithOpacityProps) => JSX.Element;
|
|
188
187
|
|
|
189
|
-
declare const ChevronRightVariant: ({ height, width, fill }: IconProps
|
|
188
|
+
declare const ChevronRightVariant: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
190
189
|
|
|
191
|
-
declare const ChevronUp: ({ height, width, fill }: IconProps
|
|
190
|
+
declare const ChevronUp: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
192
191
|
|
|
193
|
-
declare const ChevronUpSolid: ({ height, width, fill }: IconProps
|
|
192
|
+
declare const ChevronUpSolid: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
194
193
|
|
|
195
|
-
declare const CircleUp: ({ width, height, fill }: IconProps
|
|
194
|
+
declare const CircleUp: ({ width, height, fill }: IconProps) => JSX.Element;
|
|
196
195
|
|
|
197
196
|
declare const Arrows_ChevronDown: typeof ChevronDown;
|
|
198
197
|
declare const Arrows_ChevronLeft: typeof ChevronLeft;
|
|
@@ -213,25 +212,25 @@ declare namespace Arrows {
|
|
|
213
212
|
};
|
|
214
213
|
}
|
|
215
214
|
|
|
216
|
-
declare const Clock: ({ height, width, fill }: IconProps
|
|
215
|
+
declare const Clock: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
217
216
|
|
|
218
|
-
declare const FlagUSA: ({ height, width, fill }: IconProps
|
|
217
|
+
declare const FlagUSA: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
219
218
|
|
|
220
|
-
declare const Minus: ({ height, width, fill, title }: IconProps
|
|
219
|
+
declare const Minus: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
221
220
|
|
|
222
|
-
declare const Plus: ({ height, width, fill, title }: IconProps
|
|
221
|
+
declare const Plus: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
223
222
|
|
|
224
|
-
declare const Rule: ({ width, height, fill }: IconProps
|
|
223
|
+
declare const Rule: ({ width, height, fill }: IconProps) => JSX.Element;
|
|
225
224
|
|
|
226
|
-
declare const Star: ({ height, width, fill }: IconProps
|
|
225
|
+
declare const Star: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
227
226
|
|
|
228
|
-
declare const StarEmpty: ({ height, width, fill }: IconProps
|
|
227
|
+
declare const StarEmpty: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
229
228
|
|
|
230
|
-
declare const StarHalf: ({ height, width, fill }: IconProps
|
|
229
|
+
declare const StarHalf: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
231
230
|
|
|
232
|
-
declare const Stopwatch: ({ height, width, fill, title }: IconProps
|
|
231
|
+
declare const Stopwatch: ({ height, width, fill, title }: IconProps) => JSX.Element;
|
|
233
232
|
|
|
234
|
-
declare const Shipping: ({ height, width, fill }: IconProps
|
|
233
|
+
declare const Shipping: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
235
234
|
|
|
236
235
|
declare const PDP_Clock: typeof Clock;
|
|
237
236
|
declare const PDP_FlagUSA: typeof FlagUSA;
|
|
@@ -258,19 +257,19 @@ declare namespace PDP {
|
|
|
258
257
|
};
|
|
259
258
|
}
|
|
260
259
|
|
|
261
|
-
declare const Facebook: ({ height, width, fill }: IconProps
|
|
260
|
+
declare const Facebook: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
262
261
|
|
|
263
|
-
declare const FacebookSolid: ({ height, width, fill }: IconProps
|
|
262
|
+
declare const FacebookSolid: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
264
263
|
|
|
265
|
-
declare const Instagram: ({ height, width, fill }: IconProps
|
|
264
|
+
declare const Instagram: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
266
265
|
|
|
267
|
-
declare const InstagramSolid: ({ height, width, fill }: IconProps
|
|
266
|
+
declare const InstagramSolid: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
268
267
|
|
|
269
|
-
declare const Pinterest: ({ height, width, fill }: IconProps
|
|
268
|
+
declare const Pinterest: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
270
269
|
|
|
271
|
-
declare const Twitter: ({ height, width, fill }: IconProps
|
|
270
|
+
declare const Twitter: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
272
271
|
|
|
273
|
-
declare const Youtube: ({ height, width, fill }: IconProps
|
|
272
|
+
declare const Youtube: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
274
273
|
|
|
275
274
|
declare const SocialMedia_Facebook: typeof Facebook;
|
|
276
275
|
declare const SocialMedia_FacebookSolid: typeof FacebookSolid;
|
|
@@ -291,61 +290,70 @@ declare namespace SocialMedia {
|
|
|
291
290
|
};
|
|
292
291
|
}
|
|
293
292
|
|
|
294
|
-
declare const Search: ({ height, width, fill }: IconProps
|
|
293
|
+
declare const Search: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
294
|
+
|
|
295
|
+
declare const User: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
295
296
|
|
|
296
|
-
declare const
|
|
297
|
+
declare const ShoppingBag: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
297
298
|
|
|
298
|
-
declare const
|
|
299
|
+
declare const ShoppingCart: FC<IconProps>;
|
|
299
300
|
|
|
300
|
-
declare const MapMarker: ({ height, width, fill }: IconProps
|
|
301
|
+
declare const MapMarker: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
302
|
+
|
|
303
|
+
declare const Hamburger: FC<IconProps>;
|
|
301
304
|
|
|
302
305
|
declare const Navigation_Search: typeof Search;
|
|
303
306
|
declare const Navigation_User: typeof User;
|
|
304
307
|
declare const Navigation_ShoppingBag: typeof ShoppingBag;
|
|
308
|
+
declare const Navigation_ShoppingCart: typeof ShoppingCart;
|
|
305
309
|
declare const Navigation_MapMarker: typeof MapMarker;
|
|
310
|
+
declare const Navigation_Hamburger: typeof Hamburger;
|
|
306
311
|
declare namespace Navigation {
|
|
307
312
|
export {
|
|
308
313
|
Navigation_Search as Search,
|
|
309
314
|
Navigation_User as User,
|
|
310
315
|
Navigation_ShoppingBag as ShoppingBag,
|
|
316
|
+
Navigation_ShoppingCart as ShoppingCart,
|
|
311
317
|
Navigation_MapMarker as MapMarker,
|
|
318
|
+
Navigation_Hamburger as Hamburger,
|
|
312
319
|
};
|
|
313
320
|
}
|
|
314
321
|
|
|
315
|
-
declare const QuestionCircle: ({ height, width, fill }: IconProps
|
|
322
|
+
declare const QuestionCircle: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
316
323
|
|
|
317
|
-
declare const Messenger: ({ height, width, fill }: IconProps
|
|
324
|
+
declare const Messenger: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
318
325
|
|
|
319
|
-
declare const Comment: ({ height, width, fill }: IconProps
|
|
326
|
+
declare const Comment: ({ height, width, fill }: IconProps) => JSX.Element;
|
|
320
327
|
|
|
321
|
-
interface
|
|
328
|
+
interface IconWrapperProps {
|
|
322
329
|
width?: number;
|
|
323
330
|
height?: number;
|
|
324
|
-
fill?: string;
|
|
325
331
|
title?: string;
|
|
326
|
-
|
|
327
|
-
|
|
332
|
+
viewBoxX: number;
|
|
333
|
+
viewBoxY: number;
|
|
334
|
+
children: React.ReactNode;
|
|
335
|
+
testid?: string;
|
|
336
|
+
fill?: string;
|
|
337
|
+
}
|
|
328
338
|
|
|
329
339
|
declare const Mail: ({ height, width }: IconWrapperProps) => JSX.Element;
|
|
330
340
|
|
|
331
341
|
declare const Messaging_QuestionCircle: typeof QuestionCircle;
|
|
332
342
|
declare const Messaging_Messenger: typeof Messenger;
|
|
333
343
|
declare const Messaging_Comment: typeof Comment;
|
|
334
|
-
declare const Messaging_Message: typeof Message;
|
|
335
344
|
declare const Messaging_Mail: typeof Mail;
|
|
336
345
|
declare namespace Messaging {
|
|
337
346
|
export {
|
|
338
347
|
Messaging_QuestionCircle as QuestionCircle,
|
|
339
348
|
Messaging_Messenger as Messenger,
|
|
340
349
|
Messaging_Comment as Comment,
|
|
341
|
-
Messaging_Message as Message,
|
|
342
350
|
Messaging_Mail as Mail,
|
|
343
351
|
};
|
|
344
352
|
}
|
|
345
353
|
|
|
346
|
-
declare const AppleStore: ({ height, width }: IconProps
|
|
354
|
+
declare const AppleStore: ({ height, width }: IconProps) => JSX.Element;
|
|
347
355
|
|
|
348
|
-
declare const GooglePlay: ({ height, width }: IconProps
|
|
356
|
+
declare const GooglePlay: ({ height, width }: IconProps) => JSX.Element;
|
|
349
357
|
|
|
350
358
|
declare const Download_AppleStore: typeof AppleStore;
|
|
351
359
|
declare const Download_GooglePlay: typeof GooglePlay;
|
|
@@ -356,23 +364,23 @@ declare namespace Download {
|
|
|
356
364
|
};
|
|
357
365
|
}
|
|
358
366
|
|
|
359
|
-
declare const Visa: ({ height, width }: IconProps
|
|
367
|
+
declare const Visa: ({ height, width }: IconProps) => JSX.Element;
|
|
360
368
|
|
|
361
|
-
declare const MasterCard: ({ height, width }: IconProps
|
|
369
|
+
declare const MasterCard: ({ height, width }: IconProps) => JSX.Element;
|
|
362
370
|
|
|
363
|
-
declare const
|
|
371
|
+
declare const Amex: ({ height, width }: IconProps) => JSX.Element;
|
|
364
372
|
|
|
365
|
-
declare const JCB: ({ height, width }: IconProps
|
|
373
|
+
declare const JCB: ({ height, width }: IconProps) => JSX.Element;
|
|
366
374
|
|
|
367
|
-
declare const Paypal: ({ height, width }: IconProps
|
|
375
|
+
declare const Paypal: ({ height, width }: IconProps) => JSX.Element;
|
|
368
376
|
|
|
369
|
-
declare const Klarna: ({ height, width }: IconProps
|
|
377
|
+
declare const Klarna: ({ height, width }: IconProps) => JSX.Element;
|
|
370
378
|
|
|
371
|
-
declare const Amazon: ({ height, width }: IconProps
|
|
379
|
+
declare const Amazon: ({ height, width }: IconProps) => JSX.Element;
|
|
372
380
|
|
|
373
381
|
declare const Payment_Visa: typeof Visa;
|
|
374
382
|
declare const Payment_MasterCard: typeof MasterCard;
|
|
375
|
-
declare const
|
|
383
|
+
declare const Payment_Amex: typeof Amex;
|
|
376
384
|
declare const Payment_JCB: typeof JCB;
|
|
377
385
|
declare const Payment_Paypal: typeof Paypal;
|
|
378
386
|
declare const Payment_Klarna: typeof Klarna;
|
|
@@ -381,7 +389,7 @@ declare namespace Payment {
|
|
|
381
389
|
export {
|
|
382
390
|
Payment_Visa as Visa,
|
|
383
391
|
Payment_MasterCard as MasterCard,
|
|
384
|
-
|
|
392
|
+
Payment_Amex as Amex,
|
|
385
393
|
Payment_JCB as JCB,
|
|
386
394
|
Payment_Paypal as Paypal,
|
|
387
395
|
Payment_Klarna as Klarna,
|
|
@@ -398,7 +406,7 @@ declare namespace SlideDots {
|
|
|
398
406
|
};
|
|
399
407
|
}
|
|
400
408
|
|
|
401
|
-
declare type IconType = ({ height, width, fill }: IconProps
|
|
409
|
+
declare type IconType = ({ height, width, fill }: IconProps) => JSX.Element;
|
|
402
410
|
declare const Icon: {
|
|
403
411
|
Custom: typeof Custom;
|
|
404
412
|
Arrows: typeof Arrows;
|
|
@@ -444,23 +452,27 @@ declare const ButtonSecondary: ({ text, onClick, disabled, wide, size, className
|
|
|
444
452
|
|
|
445
453
|
declare const ButtonSecondaryOutline: ({ text, onClick, disabled, wide, size, className, }: CTAProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
446
454
|
|
|
455
|
+
declare type Value<T> = DropdownOption<T>;
|
|
456
|
+
declare type OnChange<T> = (option: Value<T>) => void;
|
|
447
457
|
declare type CommonProps<T> = {
|
|
448
|
-
options:
|
|
458
|
+
options: Value<T>[];
|
|
449
459
|
disabled?: boolean;
|
|
450
460
|
wide?: boolean;
|
|
451
|
-
onChange: (option: DropdownOption<T>) => void;
|
|
452
461
|
label?: string;
|
|
453
462
|
sort?: boolean;
|
|
454
|
-
|
|
455
|
-
declare type ConditionalProps<T> = {
|
|
456
|
-
initialValue: DropdownOption<T>;
|
|
457
|
-
placeHolder?: string;
|
|
458
|
-
} | {
|
|
459
|
-
initialValue?: undefined;
|
|
463
|
+
initialValue?: Value<T>;
|
|
460
464
|
placeHolder: string;
|
|
461
465
|
};
|
|
462
|
-
declare type
|
|
463
|
-
|
|
466
|
+
declare type ControlledProps<T> = {
|
|
467
|
+
value: Value<T>;
|
|
468
|
+
onChange: OnChange<T>;
|
|
469
|
+
} & CommonProps<T>;
|
|
470
|
+
declare type UncontrolledProps<T> = {
|
|
471
|
+
value?: never;
|
|
472
|
+
onChange?: OnChange<T>;
|
|
473
|
+
} & CommonProps<T>;
|
|
474
|
+
declare type SimpleDropdownProps<T> = UncontrolledProps<T> | ControlledProps<T>;
|
|
475
|
+
declare function SimpleDropdown<T>({ options, disabled, initialValue, placeHolder, label, wide, sort, onChange, value, }: SimpleDropdownProps<T>): JSX.Element;
|
|
464
476
|
|
|
465
477
|
interface SizeSelectorProps {
|
|
466
478
|
label: string;
|
|
@@ -487,6 +499,7 @@ interface BaseButtonProps {
|
|
|
487
499
|
type?: ButtonType;
|
|
488
500
|
onClick: () => void;
|
|
489
501
|
className?: string;
|
|
502
|
+
inline?: boolean;
|
|
490
503
|
}
|
|
491
504
|
|
|
492
505
|
declare type BaseProps = Pick<BaseButtonProps, 'disabled' | 'type' | 'onClick'>;
|
|
@@ -599,892 +612,1005 @@ interface AccordionProps {
|
|
|
599
612
|
}
|
|
600
613
|
declare const Accordion: ({ header, content, defaultOpen, variant, disabled, openIcon, closeIcon, }: AccordionProps) => JSX.Element;
|
|
601
614
|
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
+
declare const ThemeProvider: FC<{
|
|
616
|
+
theme: Theme;
|
|
617
|
+
children: ReactNode;
|
|
618
|
+
}>;
|
|
619
|
+
declare const useTheme: () => Theme;
|
|
620
|
+
declare const ThemeVariables: FC<{
|
|
621
|
+
theme: Theme;
|
|
622
|
+
Container?: ElementType;
|
|
623
|
+
}>;
|
|
624
|
+
declare const AssetsProvider: FC<{
|
|
625
|
+
assets: ThemeAssets;
|
|
626
|
+
}>;
|
|
627
|
+
declare const useThemeAssets: () => ThemeAssets;
|
|
628
|
+
declare type Theme = {
|
|
615
629
|
name: string;
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
interface MinimalisticProps {
|
|
634
|
-
backgroundColor?: string;
|
|
635
|
-
borderColor?: string;
|
|
636
|
-
originalPrice: string;
|
|
637
|
-
price: string;
|
|
638
|
-
savingPrice: string;
|
|
639
|
-
getMorePayLessText: string;
|
|
640
|
-
youAreSavingText: string;
|
|
641
|
-
getQtyForText: string;
|
|
642
|
-
discount: number;
|
|
643
|
-
offText: string;
|
|
644
|
-
widthAuto?: boolean;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
declare const Bundle: {
|
|
648
|
-
Minimalistic: ({ backgroundColor, borderColor, originalPrice, price, savingPrice, getMorePayLessText, youAreSavingText, getQtyForText, discount, offText, widthAuto, }: MinimalisticProps) => JSX.Element;
|
|
649
|
-
Simple: ({ title, freeShippingText, price, anyQtyForText, backgroundColor, widthAuto, }: SimpleProps) => JSX.Element;
|
|
650
|
-
};
|
|
651
|
-
|
|
652
|
-
interface CategoryTagProps {
|
|
653
|
-
text: string;
|
|
654
|
-
size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
655
|
-
className?: string;
|
|
656
|
-
}
|
|
657
|
-
declare const CategoryTag: ({ text, size, className }: CategoryTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
658
|
-
|
|
659
|
-
interface SeasonOfferTagProps {
|
|
660
|
-
text: string;
|
|
661
|
-
backgroundColor?: string;
|
|
662
|
-
size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
663
|
-
className?: string;
|
|
664
|
-
}
|
|
665
|
-
declare const SeasonOfferTag: ({ text, backgroundColor, size, className, }: SeasonOfferTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
666
|
-
|
|
667
|
-
interface TimeProps {
|
|
668
|
-
hours: number;
|
|
669
|
-
minutes: number;
|
|
670
|
-
seconds: number;
|
|
671
|
-
}
|
|
672
|
-
interface TimerProps extends TimeProps {
|
|
673
|
-
onTimeUp: () => void;
|
|
674
|
-
}
|
|
675
|
-
declare const Timer: ({ onTimeUp, ...rest }: TimerProps) => JSX.Element;
|
|
676
|
-
|
|
677
|
-
interface BaseInputProps {
|
|
678
|
-
defaultValue?: string;
|
|
679
|
-
maxLength?: number;
|
|
680
|
-
placeholder?: string;
|
|
681
|
-
label?: string;
|
|
682
|
-
onChange?: (value: string) => void;
|
|
683
|
-
onValidation?: (status: InputValidationType) => void;
|
|
684
|
-
disabled?: boolean;
|
|
685
|
-
required?: string;
|
|
686
|
-
children?: React.ReactNode;
|
|
687
|
-
}
|
|
688
|
-
|
|
689
|
-
interface BasePlusIconProps extends BaseInputProps {
|
|
690
|
-
Icon: IconType;
|
|
691
|
-
}
|
|
692
|
-
|
|
693
|
-
declare type BaseInputPropsWithoutLabel = Omit<BaseInputProps, 'label'>;
|
|
694
|
-
interface BasePlusButtonProps extends BaseInputPropsWithoutLabel {
|
|
695
|
-
onClick: () => void;
|
|
696
|
-
onClickEdit: () => void;
|
|
697
|
-
text: string;
|
|
698
|
-
success: boolean;
|
|
699
|
-
editText: string;
|
|
700
|
-
successText: string;
|
|
701
|
-
}
|
|
702
|
-
|
|
703
|
-
interface CustomProps extends BaseInputProps {
|
|
704
|
-
onClick: () => void;
|
|
705
|
-
text: string;
|
|
706
|
-
type: 'primary' | 'secondary';
|
|
707
|
-
}
|
|
708
|
-
|
|
709
|
-
declare const Input: {
|
|
710
|
-
Simple: ({ onChange, defaultValue, label, children, required, onValidation, ...rest }: BaseInputProps) => JSX.Element;
|
|
711
|
-
Custom: ({ onClick, text, type, ...rest }: CustomProps) => JSX.Element;
|
|
712
|
-
SimplePlusButton: ({ onClick, onClickEdit, text, success, editText, successText, ...rest }: BasePlusButtonProps) => JSX.Element;
|
|
713
|
-
SimplePlusIcon: ({ Icon, ...rest }: BasePlusIconProps) => JSX.Element;
|
|
714
|
-
};
|
|
715
|
-
|
|
716
|
-
interface PaymentMethodsProps {
|
|
717
|
-
Icon: IconType;
|
|
718
|
-
width: string;
|
|
719
|
-
height: string;
|
|
720
|
-
onClick?: () => void;
|
|
721
|
-
}
|
|
722
|
-
declare const PaymentMethod: ({ Icon, width, height, onClick }: PaymentMethodsProps) => JSX.Element;
|
|
723
|
-
|
|
724
|
-
interface OfferBannerProps {
|
|
725
|
-
discountAppliedText: string;
|
|
726
|
-
backgroundColor: string;
|
|
727
|
-
}
|
|
728
|
-
declare const OfferBanner: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
|
|
729
|
-
|
|
730
|
-
declare type SubtotalOption = {
|
|
731
|
-
label: string;
|
|
732
|
-
value: string;
|
|
630
|
+
fontSizes: number[];
|
|
631
|
+
fontWeights: number[];
|
|
632
|
+
lineHeights: number[];
|
|
633
|
+
mediaQueries: ThemeBreakpoints;
|
|
634
|
+
radius: {
|
|
635
|
+
regular: string;
|
|
636
|
+
};
|
|
637
|
+
zIndex: {
|
|
638
|
+
modal: number;
|
|
639
|
+
overlay: number;
|
|
640
|
+
};
|
|
641
|
+
colors: ThemeColors;
|
|
642
|
+
component: ThemeComponent;
|
|
643
|
+
typography: ThemeTypography;
|
|
644
|
+
fonts: ThemeFonts;
|
|
645
|
+
assets: ThemeAssets;
|
|
733
646
|
};
|
|
734
|
-
declare type
|
|
735
|
-
|
|
736
|
-
|
|
647
|
+
declare type ThemeBreakpoints = {
|
|
648
|
+
mobile: number;
|
|
649
|
+
desktop: number;
|
|
737
650
|
};
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
651
|
+
declare type ThemeBasicPallete = {
|
|
652
|
+
color: string;
|
|
653
|
+
contrast: string;
|
|
654
|
+
};
|
|
655
|
+
declare type ThemeColorPallete = ThemeBasicPallete & {
|
|
656
|
+
soft: ThemeBasicPallete;
|
|
657
|
+
};
|
|
658
|
+
declare type ThemeColorPrimaryPallete = ThemeColorPallete & {
|
|
659
|
+
20: ThemeColorPallete;
|
|
660
|
+
40: ThemeColorPallete;
|
|
661
|
+
60: ThemeColorPallete;
|
|
662
|
+
80: ThemeColorPallete;
|
|
663
|
+
};
|
|
664
|
+
declare type ThemeColors = {
|
|
665
|
+
pallete: {
|
|
666
|
+
primary: ThemeColorPrimaryPallete;
|
|
667
|
+
secondary: ThemeColorPrimaryPallete;
|
|
668
|
+
} & Partial<Record<string, ThemeColorPallete>>;
|
|
669
|
+
shades: {
|
|
670
|
+
black: ThemeBasicPallete;
|
|
671
|
+
white: ThemeBasicPallete;
|
|
672
|
+
5: ThemeBasicPallete;
|
|
673
|
+
10: ThemeBasicPallete;
|
|
674
|
+
50: ThemeBasicPallete;
|
|
675
|
+
100: ThemeBasicPallete;
|
|
676
|
+
150: ThemeBasicPallete;
|
|
677
|
+
200: ThemeBasicPallete;
|
|
678
|
+
250: ThemeBasicPallete;
|
|
679
|
+
300: ThemeBasicPallete;
|
|
680
|
+
350: ThemeBasicPallete;
|
|
681
|
+
400: ThemeBasicPallete;
|
|
682
|
+
450: ThemeBasicPallete;
|
|
683
|
+
500: ThemeBasicPallete;
|
|
684
|
+
550: ThemeBasicPallete;
|
|
685
|
+
600: ThemeBasicPallete;
|
|
686
|
+
650: ThemeBasicPallete;
|
|
687
|
+
700: ThemeBasicPallete;
|
|
688
|
+
750: ThemeBasicPallete;
|
|
689
|
+
800: ThemeBasicPallete;
|
|
690
|
+
850: ThemeBasicPallete;
|
|
691
|
+
900: ThemeBasicPallete;
|
|
692
|
+
950: ThemeBasicPallete;
|
|
693
|
+
990: ThemeBasicPallete;
|
|
747
694
|
};
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
highlightColor?: string;
|
|
754
|
-
saving?: {
|
|
755
|
-
amount: string;
|
|
756
|
-
savingText: string;
|
|
695
|
+
semantic: {
|
|
696
|
+
positive: ThemeBasicPallete;
|
|
697
|
+
urgent: ThemeBasicPallete;
|
|
698
|
+
attention: ThemeBasicPallete;
|
|
699
|
+
informative: ThemeBasicPallete;
|
|
757
700
|
};
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
Subtotal: ({ subtotal, shipping, taxes, coupon, highlightColor, }: SubtotalProps) => JSX.Element;
|
|
763
|
-
};
|
|
764
|
-
|
|
765
|
-
declare type detail = {
|
|
766
|
-
title: string;
|
|
767
|
-
details: string;
|
|
768
|
-
};
|
|
769
|
-
interface orderUpdate extends detail {
|
|
770
|
-
keepMeUpdated: {
|
|
771
|
-
title: string;
|
|
772
|
-
onClick: () => void;
|
|
701
|
+
border: {
|
|
702
|
+
color: string;
|
|
703
|
+
disabled: string;
|
|
704
|
+
highlight: string;
|
|
773
705
|
};
|
|
774
|
-
|
|
775
|
-
interface DeliveryDetailsProps {
|
|
776
|
-
deliveryDetailsText: string;
|
|
777
|
-
arrivingBy: detail;
|
|
778
|
-
shippingTo: detail;
|
|
779
|
-
instantOrderUpdate: orderUpdate;
|
|
780
|
-
note?: {
|
|
781
|
-
importantNoteText: string;
|
|
782
|
-
text: string;
|
|
783
|
-
accentColor: string;
|
|
784
|
-
backgroundColor: string;
|
|
706
|
+
background: {
|
|
785
707
|
color: string;
|
|
708
|
+
disabled: string;
|
|
786
709
|
};
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
interface ScrollToTopProps {
|
|
791
|
-
scrollToTopText: string;
|
|
792
|
-
onClick: () => void;
|
|
793
|
-
}
|
|
794
|
-
declare const ScrollToTop: ({ scrollToTopText, onClick }: ScrollToTopProps) => JSX.Element;
|
|
795
|
-
|
|
796
|
-
interface OrderBarProps {
|
|
797
|
-
message: string;
|
|
798
|
-
}
|
|
799
|
-
declare const OrderBar: ({ message }: OrderBarProps) => JSX.Element;
|
|
800
|
-
|
|
801
|
-
interface TableProps {
|
|
802
|
-
headers: string[];
|
|
803
|
-
data: string[][];
|
|
804
|
-
}
|
|
805
|
-
declare const SizeTable: ({ headers, data }: TableProps) => JSX.Element;
|
|
806
|
-
|
|
807
|
-
interface Price extends Pick<PriceLabelProps, 'finalPrice' | 'originalPrice'> {
|
|
808
|
-
color?: string;
|
|
809
|
-
}
|
|
810
|
-
interface ProductOrderItemProps {
|
|
811
|
-
title: string;
|
|
812
|
-
subtitle: string;
|
|
813
|
-
image: {
|
|
814
|
-
src: string;
|
|
815
|
-
alt: string;
|
|
710
|
+
text: {
|
|
711
|
+
color: string;
|
|
712
|
+
disabled: string;
|
|
816
713
|
};
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
714
|
+
};
|
|
715
|
+
declare type ThemeComponent = {
|
|
716
|
+
button: {
|
|
717
|
+
border: string;
|
|
718
|
+
borderRadius: string;
|
|
719
|
+
fontWeight: number;
|
|
720
|
+
size: {
|
|
721
|
+
small: {
|
|
722
|
+
fontSize: string;
|
|
723
|
+
padding: string;
|
|
724
|
+
};
|
|
725
|
+
medium: {
|
|
726
|
+
fontSize: string;
|
|
727
|
+
padding: string;
|
|
728
|
+
};
|
|
729
|
+
large: {
|
|
730
|
+
fontSize: string;
|
|
731
|
+
padding: string;
|
|
732
|
+
};
|
|
733
|
+
};
|
|
734
|
+
primary: {
|
|
735
|
+
active: {
|
|
736
|
+
backgroundColor: string;
|
|
737
|
+
color: string;
|
|
738
|
+
};
|
|
739
|
+
hover: {
|
|
740
|
+
backgroundColor: string;
|
|
741
|
+
color: string;
|
|
742
|
+
};
|
|
743
|
+
};
|
|
744
|
+
secondary: {
|
|
745
|
+
active: {
|
|
746
|
+
backgroundColor: string;
|
|
747
|
+
color: string;
|
|
748
|
+
};
|
|
749
|
+
hover: {
|
|
750
|
+
backgroundColor: string;
|
|
751
|
+
color: string;
|
|
752
|
+
};
|
|
753
|
+
};
|
|
821
754
|
};
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
interface ReviewProps {
|
|
826
|
-
reviewerName: string;
|
|
827
|
-
date: Date;
|
|
828
|
-
rating: number;
|
|
829
|
-
stars: {
|
|
755
|
+
input: {
|
|
756
|
+
background: string;
|
|
830
757
|
color: string;
|
|
831
|
-
|
|
758
|
+
placeholderColor: string;
|
|
759
|
+
borderRadius: string;
|
|
760
|
+
fontSize: string;
|
|
761
|
+
fontWeight: number;
|
|
762
|
+
padding: string;
|
|
763
|
+
lineHeight: string;
|
|
764
|
+
border: string;
|
|
765
|
+
boxShadow: string;
|
|
832
766
|
};
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
767
|
+
inputCustom: {
|
|
768
|
+
button: {
|
|
769
|
+
borderRadius: string;
|
|
770
|
+
};
|
|
771
|
+
input: {
|
|
772
|
+
borderRadius: string;
|
|
773
|
+
};
|
|
838
774
|
};
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
775
|
+
selector: {
|
|
776
|
+
size: {
|
|
777
|
+
small: {
|
|
778
|
+
padding: string;
|
|
779
|
+
borderRadius: string;
|
|
780
|
+
};
|
|
781
|
+
medium: {
|
|
782
|
+
padding: string;
|
|
783
|
+
borderRadius: string;
|
|
784
|
+
};
|
|
785
|
+
};
|
|
786
|
+
default: {
|
|
787
|
+
fontWeight: number;
|
|
788
|
+
border: string;
|
|
789
|
+
background: string;
|
|
790
|
+
color: string;
|
|
791
|
+
};
|
|
792
|
+
hover: {
|
|
793
|
+
fontWeight: number;
|
|
794
|
+
background: string;
|
|
795
|
+
border: string;
|
|
796
|
+
color: string;
|
|
797
|
+
};
|
|
798
|
+
disabled: {
|
|
799
|
+
border: string;
|
|
800
|
+
};
|
|
801
|
+
fontSize: string;
|
|
853
802
|
};
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
interface AmazonPaypalBtnProps {
|
|
876
|
-
onClick: () => void;
|
|
877
|
-
}
|
|
878
|
-
declare const AmazonButton: ({ onClick }: AmazonPaypalBtnProps) => JSX.Element;
|
|
879
|
-
declare const PaypalButton: ({ onClick }: AmazonPaypalBtnProps) => JSX.Element;
|
|
880
|
-
|
|
881
|
-
interface CrossSellCheckboxProps extends rightToLeftProps {
|
|
882
|
-
imageURL: string;
|
|
883
|
-
title: string;
|
|
884
|
-
description: string;
|
|
885
|
-
freeShippingText: string;
|
|
886
|
-
onChange: (checked: Boolean) => void;
|
|
887
|
-
}
|
|
888
|
-
interface rightToLeftProps {
|
|
889
|
-
rightToLeft: boolean;
|
|
890
|
-
}
|
|
891
|
-
declare const CrossSellCheckbox: ({ imageURL, title, description, freeShippingText, rightToLeft, onChange, }: CrossSellCheckboxProps) => JSX.Element;
|
|
892
|
-
|
|
893
|
-
type index_d_CrossSellCheckboxProps = CrossSellCheckboxProps;
|
|
894
|
-
declare const index_d_CrossSellCheckbox: typeof CrossSellCheckbox;
|
|
895
|
-
declare namespace index_d {
|
|
896
|
-
export {
|
|
897
|
-
index_d_CrossSellCheckboxProps as CrossSellCheckboxProps,
|
|
898
|
-
index_d_CrossSellCheckbox as CrossSellCheckbox,
|
|
899
|
-
};
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
interface ProductItemProps {
|
|
903
|
-
title: string;
|
|
904
|
-
image: ImageProps;
|
|
905
|
-
price: Pick<PriceLabelProps, 'finalPrice' | 'originalPrice' | 'color'>;
|
|
906
|
-
rating: Pick<RatingProps, 'rating' | 'reviews'>;
|
|
907
|
-
tags?: {
|
|
908
|
-
categoryTagText: string;
|
|
909
|
-
seasonOfferTagText: string;
|
|
803
|
+
rating: {
|
|
804
|
+
fontWeight: number;
|
|
805
|
+
size: {
|
|
806
|
+
xsmall: {
|
|
807
|
+
fontSize: string;
|
|
808
|
+
lineHeight: string;
|
|
809
|
+
};
|
|
810
|
+
small: {
|
|
811
|
+
fontSize: string;
|
|
812
|
+
lineHeight: string;
|
|
813
|
+
};
|
|
814
|
+
medium: {
|
|
815
|
+
fontSize: string;
|
|
816
|
+
lineHeight: string;
|
|
817
|
+
};
|
|
818
|
+
large: {
|
|
819
|
+
fontSize: string;
|
|
820
|
+
lineHeight: string;
|
|
821
|
+
};
|
|
822
|
+
};
|
|
910
823
|
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
824
|
+
card: {
|
|
825
|
+
borderRadius: string;
|
|
826
|
+
};
|
|
827
|
+
radio: {
|
|
828
|
+
borderColor: string;
|
|
829
|
+
background: string;
|
|
830
|
+
size: {
|
|
831
|
+
small: {
|
|
832
|
+
borderWidth: string;
|
|
833
|
+
margin: string;
|
|
834
|
+
height: string;
|
|
835
|
+
active: {
|
|
836
|
+
borderWidth: string;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
839
|
+
medium: {
|
|
840
|
+
borderWidth: string;
|
|
841
|
+
margin: string;
|
|
842
|
+
height: string;
|
|
843
|
+
active: {
|
|
844
|
+
borderWidth: string;
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
large: {
|
|
848
|
+
borderWidth: string;
|
|
849
|
+
margin: string;
|
|
850
|
+
height: string;
|
|
851
|
+
active: {
|
|
852
|
+
borderWidth: string;
|
|
853
|
+
};
|
|
854
|
+
};
|
|
855
|
+
};
|
|
856
|
+
};
|
|
857
|
+
label: {
|
|
858
|
+
fontSize: {
|
|
859
|
+
small: string;
|
|
860
|
+
medium: string;
|
|
861
|
+
large: string;
|
|
862
|
+
};
|
|
863
|
+
lineHeight: {
|
|
864
|
+
small: string;
|
|
865
|
+
medium: string;
|
|
866
|
+
large: string;
|
|
867
|
+
};
|
|
868
|
+
};
|
|
869
|
+
checkbox: {
|
|
870
|
+
background: string;
|
|
871
|
+
borderColor: string;
|
|
872
|
+
active: {
|
|
873
|
+
background: string;
|
|
874
|
+
};
|
|
875
|
+
size: {
|
|
876
|
+
large: {
|
|
877
|
+
width: string;
|
|
878
|
+
height: string;
|
|
879
|
+
borderRadius: string;
|
|
880
|
+
borderWidth: string;
|
|
881
|
+
margin: string;
|
|
882
|
+
icon: {
|
|
883
|
+
width: string;
|
|
884
|
+
height: string;
|
|
885
|
+
};
|
|
886
|
+
};
|
|
887
|
+
medium: {
|
|
888
|
+
width: string;
|
|
889
|
+
height: string;
|
|
890
|
+
borderRadius: string;
|
|
891
|
+
borderWidth: string;
|
|
892
|
+
margin: string;
|
|
893
|
+
icon: {
|
|
894
|
+
width: string;
|
|
895
|
+
height: string;
|
|
896
|
+
};
|
|
897
|
+
};
|
|
898
|
+
small: {
|
|
899
|
+
width: string;
|
|
900
|
+
height: string;
|
|
901
|
+
borderRadius: string;
|
|
902
|
+
borderWidth: string;
|
|
903
|
+
margin: string;
|
|
904
|
+
icon: {
|
|
905
|
+
width: string;
|
|
906
|
+
height: string;
|
|
907
|
+
};
|
|
908
|
+
};
|
|
909
|
+
};
|
|
910
|
+
};
|
|
911
|
+
accordion: {
|
|
912
|
+
variant: {
|
|
913
|
+
box: {
|
|
914
|
+
container: {
|
|
915
|
+
border: string;
|
|
916
|
+
borderColor: string;
|
|
917
|
+
borderRadius: string;
|
|
918
|
+
padding: string;
|
|
919
|
+
};
|
|
920
|
+
summary: {
|
|
921
|
+
fontWeight: number;
|
|
922
|
+
fontSize: string;
|
|
923
|
+
lineHeight: string;
|
|
924
|
+
color: string;
|
|
925
|
+
};
|
|
926
|
+
details: {
|
|
927
|
+
margin: string;
|
|
928
|
+
};
|
|
929
|
+
icon: {
|
|
930
|
+
width: number;
|
|
931
|
+
height: number;
|
|
932
|
+
color: string;
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
simple: {
|
|
936
|
+
container: {
|
|
937
|
+
borderTop: string;
|
|
938
|
+
borderBottom: string;
|
|
939
|
+
borderColor: string;
|
|
940
|
+
borderRadius: string;
|
|
941
|
+
padding: string;
|
|
942
|
+
};
|
|
943
|
+
summary: {
|
|
944
|
+
fontWeight: number;
|
|
945
|
+
fontSize: string;
|
|
946
|
+
lineHeight: string;
|
|
947
|
+
color: string;
|
|
948
|
+
};
|
|
949
|
+
details: {
|
|
950
|
+
margin: string;
|
|
951
|
+
};
|
|
952
|
+
icon: {
|
|
953
|
+
width: number;
|
|
954
|
+
height: number;
|
|
955
|
+
color: string;
|
|
956
|
+
};
|
|
957
|
+
};
|
|
958
|
+
};
|
|
959
|
+
};
|
|
960
|
+
dropdown: {
|
|
961
|
+
borderRadius: string;
|
|
962
|
+
fontSize: string;
|
|
963
|
+
fontWeight: number;
|
|
964
|
+
lineHeight: string;
|
|
965
|
+
padding: string;
|
|
966
|
+
color: string;
|
|
967
|
+
fill: string;
|
|
968
|
+
options: {
|
|
969
|
+
borderColor: string;
|
|
970
|
+
color: string;
|
|
971
|
+
};
|
|
972
|
+
};
|
|
973
|
+
modal: {
|
|
974
|
+
minWidth: string;
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
declare type ThemeTypography = {
|
|
978
|
+
config: {
|
|
979
|
+
weight: {
|
|
980
|
+
heavy: number;
|
|
981
|
+
bold: number;
|
|
982
|
+
demi: number;
|
|
983
|
+
regular: number;
|
|
984
|
+
};
|
|
985
|
+
};
|
|
986
|
+
variants: Record<string, CSSProperties>;
|
|
987
|
+
};
|
|
988
|
+
declare type ThemeFonts = {
|
|
989
|
+
url: string;
|
|
990
|
+
config: Array<{
|
|
991
|
+
src: string;
|
|
992
|
+
family: string;
|
|
993
|
+
weight?: number | string;
|
|
994
|
+
style?: string;
|
|
995
|
+
stretch?: string;
|
|
996
|
+
}>;
|
|
997
|
+
};
|
|
998
|
+
declare type ThemeAssets = {
|
|
999
|
+
images: {
|
|
1000
|
+
favicon: string;
|
|
1001
|
+
logo: string;
|
|
1002
|
+
};
|
|
1003
|
+
[key: string]: any;
|
|
1004
|
+
};
|
|
1005
|
+
|
|
1006
|
+
interface CheckboxProps {
|
|
1007
|
+
disabled?: boolean;
|
|
1008
|
+
onChange: (checked: boolean) => void;
|
|
1009
|
+
size?: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1010
|
+
text: string;
|
|
1011
|
+
checked?: boolean;
|
|
1012
|
+
id: string;
|
|
942
1013
|
backgroundColor?: string;
|
|
943
|
-
|
|
944
|
-
position?: 'left' | 'right';
|
|
945
|
-
width?: string;
|
|
1014
|
+
variant: 'primary' | 'secondary';
|
|
946
1015
|
}
|
|
947
|
-
declare const
|
|
1016
|
+
declare const Checkbox: ({ disabled, onChange, size, text, checked, id, variant, }: CheckboxProps) => JSX.Element;
|
|
948
1017
|
|
|
949
|
-
interface
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
1018
|
+
interface RadioGroupInputProps {
|
|
1019
|
+
name: string;
|
|
1020
|
+
options?: RadioGroupOption[];
|
|
1021
|
+
value?: RadioGroupOption;
|
|
1022
|
+
onChange: (value: RadioGroupOption) => void;
|
|
1023
|
+
size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
1024
|
+
disabled?: boolean;
|
|
956
1025
|
}
|
|
957
|
-
declare const
|
|
1026
|
+
declare const RadioGroupInput: ({ name, options, value, onChange, size, disabled, }: RadioGroupInputProps) => JSX.Element;
|
|
958
1027
|
|
|
959
|
-
interface
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
1028
|
+
interface SimpleProps {
|
|
1029
|
+
title: string;
|
|
1030
|
+
freeShippingText: string;
|
|
1031
|
+
price: string;
|
|
1032
|
+
anyQtyForText: string;
|
|
1033
|
+
backgroundColor: string;
|
|
1034
|
+
widthAuto?: boolean;
|
|
1035
|
+
}
|
|
965
1036
|
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1037
|
+
interface MinimalisticProps {
|
|
1038
|
+
backgroundColor?: string;
|
|
1039
|
+
borderColor?: string;
|
|
1040
|
+
originalPrice: string;
|
|
1041
|
+
price: string;
|
|
1042
|
+
savingPrice: string;
|
|
1043
|
+
getMorePayLessText: string;
|
|
1044
|
+
youAreSavingText: string;
|
|
1045
|
+
getQtyForText: string;
|
|
1046
|
+
discount: number;
|
|
1047
|
+
offText: string;
|
|
1048
|
+
widthAuto?: boolean;
|
|
1049
|
+
}
|
|
976
1050
|
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
1051
|
+
declare const Bundle: {
|
|
1052
|
+
Minimalistic: ({ backgroundColor, borderColor, originalPrice, price, savingPrice, getMorePayLessText, youAreSavingText, getQtyForText, discount, offText, widthAuto, }: MinimalisticProps) => JSX.Element;
|
|
1053
|
+
Simple: ({ title, freeShippingText, price, anyQtyForText, backgroundColor, widthAuto, }: SimpleProps) => JSX.Element;
|
|
1054
|
+
};
|
|
1055
|
+
|
|
1056
|
+
interface CategoryTagProps {
|
|
1057
|
+
text: string;
|
|
1058
|
+
size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1059
|
+
className?: string;
|
|
985
1060
|
}
|
|
986
|
-
declare const
|
|
1061
|
+
declare const CategoryTag: ({ text, size, className }: CategoryTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
987
1062
|
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
weight?: 'bold' | 'demi' | 'regular';
|
|
1013
|
-
size?: 'regular';
|
|
1014
|
-
underline?: never;
|
|
1015
|
-
disabled?: never;
|
|
1016
|
-
wide?: never;
|
|
1017
|
-
original?: never;
|
|
1018
|
-
allCaps?: never;
|
|
1019
|
-
};
|
|
1020
|
-
declare type TextBodyProps = {
|
|
1021
|
-
variant: 'body';
|
|
1022
|
-
size?: 'regular' | 'small';
|
|
1023
|
-
weight?: 'bold' | 'demi' | 'regular';
|
|
1024
|
-
underline?: never;
|
|
1025
|
-
disabled?: never;
|
|
1026
|
-
wide?: never;
|
|
1027
|
-
original?: never;
|
|
1028
|
-
allCaps?: never;
|
|
1029
|
-
};
|
|
1030
|
-
declare type TextButtonProps = {
|
|
1031
|
-
variant: 'button';
|
|
1032
|
-
size: 'large' | 'regular' | 'small';
|
|
1033
|
-
weight: 'bold' | 'demi';
|
|
1034
|
-
underline?: never;
|
|
1035
|
-
disabled?: never;
|
|
1036
|
-
wide?: boolean;
|
|
1037
|
-
original?: never;
|
|
1038
|
-
allCaps?: never;
|
|
1039
|
-
};
|
|
1040
|
-
declare type TextPricingProps = {
|
|
1041
|
-
variant: 'pricing';
|
|
1042
|
-
size: 'large' | 'medium' | 'regular' | 'small';
|
|
1043
|
-
weight?: never;
|
|
1044
|
-
underline?: never;
|
|
1045
|
-
disabled?: never;
|
|
1046
|
-
wide?: never;
|
|
1047
|
-
original?: boolean;
|
|
1048
|
-
allCaps?: never;
|
|
1049
|
-
};
|
|
1050
|
-
declare type TextLinkProps = {
|
|
1051
|
-
variant: 'link';
|
|
1052
|
-
weight?: 'demi' | 'regular';
|
|
1053
|
-
size?: 'regular' | 'small';
|
|
1054
|
-
underline?: boolean;
|
|
1063
|
+
interface SeasonOfferTagProps {
|
|
1064
|
+
text: string;
|
|
1065
|
+
backgroundColor?: string;
|
|
1066
|
+
size: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1067
|
+
className?: string;
|
|
1068
|
+
}
|
|
1069
|
+
declare const SeasonOfferTag: ({ text, backgroundColor, size, className, }: SeasonOfferTagProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1070
|
+
|
|
1071
|
+
interface TimeProps {
|
|
1072
|
+
hours: number;
|
|
1073
|
+
minutes: number;
|
|
1074
|
+
seconds: number;
|
|
1075
|
+
}
|
|
1076
|
+
interface TimerProps extends TimeProps {
|
|
1077
|
+
onTimeUp: () => void;
|
|
1078
|
+
}
|
|
1079
|
+
declare const Timer: ({ onTimeUp, ...rest }: TimerProps) => JSX.Element;
|
|
1080
|
+
|
|
1081
|
+
interface BaseInputCommmonProps {
|
|
1082
|
+
defaultValue?: string;
|
|
1083
|
+
maxLength?: number;
|
|
1084
|
+
placeholder?: string;
|
|
1085
|
+
label?: string;
|
|
1086
|
+
onValidation?: (status: InputValidationType) => void;
|
|
1055
1087
|
disabled?: boolean;
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
allCaps?: never;
|
|
1059
|
-
} & AnchorHTMLAttributes<'a'>;
|
|
1060
|
-
declare type TextLabelProps = {
|
|
1061
|
-
variant: 'label';
|
|
1062
|
-
weight?: 'regular' | 'demi';
|
|
1088
|
+
required?: string;
|
|
1089
|
+
children?: React.ReactNode;
|
|
1063
1090
|
size?: 'regular' | 'small';
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1091
|
+
}
|
|
1092
|
+
interface BaseInputControlled extends BaseInputCommmonProps {
|
|
1093
|
+
value: string;
|
|
1094
|
+
onChange: (value: string) => void;
|
|
1095
|
+
}
|
|
1096
|
+
interface BaseInputUncontrolled extends BaseInputCommmonProps {
|
|
1097
|
+
value?: never;
|
|
1098
|
+
onChange?: (value: string) => void;
|
|
1099
|
+
}
|
|
1100
|
+
declare type BaseInputProps = BaseInputControlled | BaseInputUncontrolled;
|
|
1101
|
+
|
|
1102
|
+
declare type BasePlusIconProps = BaseInputProps & {
|
|
1103
|
+
Icon: IconType;
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
declare type BasePlusButtonProps = BaseInputProps & {
|
|
1107
|
+
label?: undefined;
|
|
1108
|
+
onClick: (value: string) => void;
|
|
1109
|
+
onClickEdit: () => void;
|
|
1110
|
+
text: string;
|
|
1111
|
+
success: boolean;
|
|
1112
|
+
editText: string;
|
|
1113
|
+
successText: string;
|
|
1114
|
+
};
|
|
1115
|
+
|
|
1116
|
+
interface BaseCTAProps {
|
|
1117
|
+
onClick: () => void;
|
|
1075
1118
|
disabled?: boolean;
|
|
1076
|
-
wide?:
|
|
1077
|
-
original?: never;
|
|
1078
|
-
allCaps?: boolean;
|
|
1079
|
-
};
|
|
1080
|
-
declare type TextProps = AriaAttributes & {
|
|
1081
|
-
style?: CSSProperties;
|
|
1119
|
+
wide?: boolean;
|
|
1082
1120
|
className?: string;
|
|
1083
|
-
|
|
1121
|
+
size?: ComponentSize;
|
|
1122
|
+
text: string;
|
|
1123
|
+
type?: ButtonType;
|
|
1124
|
+
}
|
|
1084
1125
|
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1126
|
+
declare type ButtonProps = {
|
|
1127
|
+
variant: 'primary' | 'secondary' | 'secondary-outline';
|
|
1128
|
+
} & BaseCTAProps;
|
|
1129
|
+
|
|
1130
|
+
declare type CustomProps = BaseInputProps & {
|
|
1131
|
+
onClick: () => void;
|
|
1132
|
+
text: string;
|
|
1133
|
+
variant: ButtonProps['variant'];
|
|
1134
|
+
};
|
|
1135
|
+
|
|
1136
|
+
declare const Input: {
|
|
1137
|
+
Simple: ({ value, onChange, defaultValue, label, children, required, onValidation, size, ...rest }: BaseInputProps) => JSX.Element;
|
|
1138
|
+
Custom: ({ onClick, text, variant, ...rest }: CustomProps) => JSX.Element;
|
|
1139
|
+
SimplePlusButton: ({ onClick, onClickEdit, text, success, editText, successText, ...rest }: BasePlusButtonProps) => JSX.Element;
|
|
1140
|
+
SimplePlusIcon: ({ Icon, ...rest }: BasePlusIconProps) => JSX.Element;
|
|
1141
|
+
};
|
|
1142
|
+
|
|
1143
|
+
interface PaymentMethodsProps {
|
|
1144
|
+
Icon: IconType;
|
|
1145
|
+
width: string;
|
|
1146
|
+
height: string;
|
|
1147
|
+
onClick?: () => void;
|
|
1091
1148
|
}
|
|
1092
|
-
declare const
|
|
1149
|
+
declare const PaymentMethod: ({ Icon, width, height, onClick }: PaymentMethodsProps) => JSX.Element;
|
|
1093
1150
|
|
|
1094
|
-
interface
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
DiscountTagElement?: JSX.Element;
|
|
1098
|
-
BestSellerTagElement?: JSX.Element;
|
|
1099
|
-
productImageDataTestId?: string;
|
|
1100
|
-
slideDotsDataTestId?: string;
|
|
1151
|
+
interface OfferBannerProps {
|
|
1152
|
+
discountAppliedText: string;
|
|
1153
|
+
backgroundColor: string;
|
|
1101
1154
|
}
|
|
1102
|
-
declare const
|
|
1155
|
+
declare const OfferBanner: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
|
|
1103
1156
|
|
|
1104
|
-
declare
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
}>;
|
|
1108
|
-
declare const useTheme: () => Theme;
|
|
1109
|
-
declare const ThemeVariables: FC<{
|
|
1110
|
-
theme: Theme;
|
|
1111
|
-
Container?: ElementType;
|
|
1112
|
-
}>;
|
|
1113
|
-
declare const AssetsProvider: FC<{
|
|
1114
|
-
assets: ThemeAssets;
|
|
1115
|
-
}>;
|
|
1116
|
-
declare const useThemeAssets: () => ThemeAssets;
|
|
1117
|
-
declare type Theme = {
|
|
1118
|
-
name: string;
|
|
1119
|
-
fontSizes: number[];
|
|
1120
|
-
fontWeights: number[];
|
|
1121
|
-
lineHeights: number[];
|
|
1122
|
-
mediaQueries: ThemeBreakpoints;
|
|
1123
|
-
colors: ThemeColors;
|
|
1124
|
-
component: ThemeComponent;
|
|
1125
|
-
typography: ThemeTypography;
|
|
1126
|
-
fonts: ThemeFonts;
|
|
1127
|
-
assets: ThemeAssets;
|
|
1128
|
-
};
|
|
1129
|
-
declare type ThemeBreakpoints = {
|
|
1130
|
-
mobile: number;
|
|
1131
|
-
desktop: number;
|
|
1157
|
+
declare type SubtotalOption = {
|
|
1158
|
+
label: string;
|
|
1159
|
+
value: string;
|
|
1132
1160
|
};
|
|
1133
|
-
declare type
|
|
1134
|
-
|
|
1135
|
-
|
|
1161
|
+
declare type Coupon = {
|
|
1162
|
+
code: string;
|
|
1163
|
+
amount: string;
|
|
1136
1164
|
};
|
|
1137
|
-
|
|
1138
|
-
|
|
1165
|
+
interface SubtotalProps {
|
|
1166
|
+
subtotal: SubtotalOption;
|
|
1167
|
+
shipping: SubtotalOption;
|
|
1168
|
+
taxes: SubtotalOption;
|
|
1169
|
+
highlightColor?: string;
|
|
1170
|
+
coupon?: {
|
|
1171
|
+
couponText: string;
|
|
1172
|
+
appliedText: string;
|
|
1173
|
+
coupons: Coupon[];
|
|
1174
|
+
};
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
interface TotalProps {
|
|
1178
|
+
total: string;
|
|
1179
|
+
currency: string;
|
|
1180
|
+
highlightColor?: string;
|
|
1181
|
+
saving?: {
|
|
1182
|
+
amount: string;
|
|
1183
|
+
savingText: string;
|
|
1184
|
+
};
|
|
1185
|
+
}
|
|
1186
|
+
|
|
1187
|
+
declare const Totals: {
|
|
1188
|
+
Total: ({ total, currency, saving, highlightColor }: TotalProps) => JSX.Element;
|
|
1189
|
+
Subtotal: ({ subtotal, shipping, taxes, coupon, highlightColor, }: SubtotalProps) => JSX.Element;
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
declare type detail = {
|
|
1193
|
+
title: string;
|
|
1194
|
+
details: string;
|
|
1139
1195
|
};
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
80: ThemeColorPallete;
|
|
1145
|
-
};
|
|
1146
|
-
declare type ThemeColors = {
|
|
1147
|
-
pallete: {
|
|
1148
|
-
primary: ThemeColorPrimaryPallete;
|
|
1149
|
-
secondary: ThemeColorPrimaryPallete;
|
|
1150
|
-
} & Partial<Record<string, ThemeColorPallete>>;
|
|
1151
|
-
shades: {
|
|
1152
|
-
black: ThemeBasicPallete;
|
|
1153
|
-
white: ThemeBasicPallete;
|
|
1154
|
-
5: ThemeBasicPallete;
|
|
1155
|
-
10: ThemeBasicPallete;
|
|
1156
|
-
50: ThemeBasicPallete;
|
|
1157
|
-
100: ThemeBasicPallete;
|
|
1158
|
-
150: ThemeBasicPallete;
|
|
1159
|
-
200: ThemeBasicPallete;
|
|
1160
|
-
250: ThemeBasicPallete;
|
|
1161
|
-
300: ThemeBasicPallete;
|
|
1162
|
-
350: ThemeBasicPallete;
|
|
1163
|
-
400: ThemeBasicPallete;
|
|
1164
|
-
450: ThemeBasicPallete;
|
|
1165
|
-
500: ThemeBasicPallete;
|
|
1166
|
-
550: ThemeBasicPallete;
|
|
1167
|
-
600: ThemeBasicPallete;
|
|
1168
|
-
650: ThemeBasicPallete;
|
|
1169
|
-
700: ThemeBasicPallete;
|
|
1170
|
-
750: ThemeBasicPallete;
|
|
1171
|
-
800: ThemeBasicPallete;
|
|
1172
|
-
850: ThemeBasicPallete;
|
|
1173
|
-
900: ThemeBasicPallete;
|
|
1174
|
-
950: ThemeBasicPallete;
|
|
1175
|
-
990: ThemeBasicPallete;
|
|
1176
|
-
};
|
|
1177
|
-
semantic: {
|
|
1178
|
-
positive: ThemeBasicPallete;
|
|
1179
|
-
urgent: ThemeBasicPallete;
|
|
1180
|
-
attention: ThemeBasicPallete;
|
|
1181
|
-
informative: ThemeBasicPallete;
|
|
1182
|
-
};
|
|
1183
|
-
border: {
|
|
1184
|
-
color: string;
|
|
1185
|
-
disabled: string;
|
|
1186
|
-
highlight: string;
|
|
1196
|
+
interface orderUpdate extends detail {
|
|
1197
|
+
keepMeUpdated: {
|
|
1198
|
+
title: string;
|
|
1199
|
+
onClick: () => void;
|
|
1187
1200
|
};
|
|
1188
|
-
|
|
1201
|
+
}
|
|
1202
|
+
interface DeliveryDetailsProps {
|
|
1203
|
+
deliveryDetailsText: string;
|
|
1204
|
+
arrivingBy: detail;
|
|
1205
|
+
shippingTo: detail;
|
|
1206
|
+
instantOrderUpdate: orderUpdate;
|
|
1207
|
+
note?: {
|
|
1208
|
+
importantNoteText: string;
|
|
1209
|
+
text: string;
|
|
1210
|
+
accentColor: string;
|
|
1211
|
+
backgroundColor: string;
|
|
1189
1212
|
color: string;
|
|
1190
|
-
disabled: string;
|
|
1191
1213
|
};
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1214
|
+
}
|
|
1215
|
+
declare const DeliveryDetails: ({ deliveryDetailsText, arrivingBy, shippingTo, instantOrderUpdate, note, }: DeliveryDetailsProps) => JSX.Element;
|
|
1216
|
+
|
|
1217
|
+
interface ScrollToTopProps {
|
|
1218
|
+
scrollToTopText: string;
|
|
1219
|
+
onClick: () => void;
|
|
1220
|
+
}
|
|
1221
|
+
declare const ScrollToTop: ({ scrollToTopText, onClick }: ScrollToTopProps) => JSX.Element;
|
|
1222
|
+
|
|
1223
|
+
interface OrderBarProps {
|
|
1224
|
+
message: string;
|
|
1225
|
+
}
|
|
1226
|
+
declare const OrderBar: ({ message }: OrderBarProps) => JSX.Element;
|
|
1227
|
+
|
|
1228
|
+
interface TableProps {
|
|
1229
|
+
headers: string[];
|
|
1230
|
+
data: string[][];
|
|
1231
|
+
}
|
|
1232
|
+
declare const SizeTable: ({ headers, data }: TableProps) => JSX.Element;
|
|
1233
|
+
|
|
1234
|
+
interface Price extends Pick<PriceLabelProps, 'finalPrice' | 'originalPrice'> {
|
|
1235
|
+
color?: string;
|
|
1236
|
+
}
|
|
1237
|
+
interface ProductOrderItemProps {
|
|
1238
|
+
title: string;
|
|
1239
|
+
subtitle: string;
|
|
1240
|
+
image: {
|
|
1241
|
+
src: string;
|
|
1242
|
+
alt: string;
|
|
1195
1243
|
};
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
fontWeight: number;
|
|
1202
|
-
size: {
|
|
1203
|
-
small: {
|
|
1204
|
-
fontSize: string;
|
|
1205
|
-
padding: string;
|
|
1206
|
-
};
|
|
1207
|
-
medium: {
|
|
1208
|
-
fontSize: string;
|
|
1209
|
-
padding: string;
|
|
1210
|
-
};
|
|
1211
|
-
large: {
|
|
1212
|
-
fontSize: string;
|
|
1213
|
-
padding: string;
|
|
1214
|
-
};
|
|
1215
|
-
};
|
|
1216
|
-
primary: {
|
|
1217
|
-
active: {
|
|
1218
|
-
backgroundColor: string;
|
|
1219
|
-
color: string;
|
|
1220
|
-
};
|
|
1221
|
-
hover: {
|
|
1222
|
-
backgroundColor: string;
|
|
1223
|
-
color: string;
|
|
1224
|
-
};
|
|
1225
|
-
};
|
|
1226
|
-
secondary: {
|
|
1227
|
-
active: {
|
|
1228
|
-
backgroundColor: string;
|
|
1229
|
-
color: string;
|
|
1230
|
-
};
|
|
1231
|
-
hover: {
|
|
1232
|
-
backgroundColor: string;
|
|
1233
|
-
color: string;
|
|
1234
|
-
};
|
|
1235
|
-
};
|
|
1244
|
+
quantity?: number;
|
|
1245
|
+
price: Price;
|
|
1246
|
+
tag?: {
|
|
1247
|
+
text: string;
|
|
1248
|
+
backgroundColor: string;
|
|
1236
1249
|
};
|
|
1237
|
-
|
|
1238
|
-
|
|
1250
|
+
}
|
|
1251
|
+
declare const SimpleOrderItem: ({ title, subtitle, image, price, tag, quantity, }: ProductOrderItemProps) => JSX.Element;
|
|
1252
|
+
|
|
1253
|
+
interface ReviewProps {
|
|
1254
|
+
reviewerName: string;
|
|
1255
|
+
date: Date;
|
|
1256
|
+
rating: number;
|
|
1257
|
+
stars: {
|
|
1239
1258
|
color: string;
|
|
1240
|
-
|
|
1241
|
-
borderRadius: string;
|
|
1242
|
-
fontSize: string;
|
|
1243
|
-
fontWeight: number;
|
|
1244
|
-
padding: string;
|
|
1245
|
-
lineHeight: string;
|
|
1246
|
-
border: string;
|
|
1247
|
-
boxShadow: string;
|
|
1248
|
-
};
|
|
1249
|
-
inputCustom: {
|
|
1250
|
-
button: {
|
|
1251
|
-
borderRadius: string;
|
|
1252
|
-
};
|
|
1253
|
-
input: {
|
|
1254
|
-
borderRadius: string;
|
|
1255
|
-
};
|
|
1256
|
-
};
|
|
1257
|
-
selector: {
|
|
1258
|
-
size: {
|
|
1259
|
-
small: {
|
|
1260
|
-
padding: string;
|
|
1261
|
-
borderRadius: string;
|
|
1262
|
-
};
|
|
1263
|
-
medium: {
|
|
1264
|
-
padding: string;
|
|
1265
|
-
borderRadius: string;
|
|
1266
|
-
};
|
|
1267
|
-
};
|
|
1268
|
-
default: {
|
|
1269
|
-
fontWeight: number;
|
|
1270
|
-
border: string;
|
|
1271
|
-
background: string;
|
|
1272
|
-
color: string;
|
|
1273
|
-
};
|
|
1274
|
-
hover: {
|
|
1275
|
-
fontWeight: number;
|
|
1276
|
-
background: string;
|
|
1277
|
-
border: string;
|
|
1278
|
-
color: string;
|
|
1279
|
-
};
|
|
1280
|
-
disabled: {
|
|
1281
|
-
border: string;
|
|
1282
|
-
};
|
|
1283
|
-
fontSize: string;
|
|
1259
|
+
size: ComponentSize.Medium | ComponentSize.Small;
|
|
1284
1260
|
};
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
lineHeight: string;
|
|
1291
|
-
};
|
|
1292
|
-
small: {
|
|
1293
|
-
fontSize: string;
|
|
1294
|
-
lineHeight: string;
|
|
1295
|
-
};
|
|
1296
|
-
medium: {
|
|
1297
|
-
fontSize: string;
|
|
1298
|
-
lineHeight: string;
|
|
1299
|
-
};
|
|
1300
|
-
large: {
|
|
1301
|
-
fontSize: string;
|
|
1302
|
-
lineHeight: string;
|
|
1303
|
-
};
|
|
1304
|
-
};
|
|
1261
|
+
title: string;
|
|
1262
|
+
description: string;
|
|
1263
|
+
image: {
|
|
1264
|
+
src: string;
|
|
1265
|
+
alt: string;
|
|
1305
1266
|
};
|
|
1306
|
-
|
|
1307
|
-
|
|
1267
|
+
}
|
|
1268
|
+
declare const Review: ({ reviewerName, date, rating, stars, title, description, image }: ReviewProps) => JSX.Element;
|
|
1269
|
+
|
|
1270
|
+
interface SliderNavigationProps {
|
|
1271
|
+
children: JSX.Element[];
|
|
1272
|
+
infinite: boolean;
|
|
1273
|
+
adaptiveHeight: boolean;
|
|
1274
|
+
dotsSize: ComponentSize.Large | ComponentSize.Medium | ComponentSize.Small;
|
|
1275
|
+
dotListMarginTop: number;
|
|
1276
|
+
initialSlide?: number;
|
|
1277
|
+
arrows?: {
|
|
1278
|
+
arrowWidth: number;
|
|
1279
|
+
arrowHeight: number;
|
|
1280
|
+
arrowPadding: number;
|
|
1308
1281
|
};
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
height: string;
|
|
1367
|
-
};
|
|
1368
|
-
};
|
|
1369
|
-
medium: {
|
|
1370
|
-
width: string;
|
|
1371
|
-
height: string;
|
|
1372
|
-
borderRadius: string;
|
|
1373
|
-
borderWidth: string;
|
|
1374
|
-
margin: string;
|
|
1375
|
-
icon: {
|
|
1376
|
-
width: string;
|
|
1377
|
-
height: string;
|
|
1378
|
-
};
|
|
1379
|
-
};
|
|
1380
|
-
small: {
|
|
1381
|
-
width: string;
|
|
1382
|
-
height: string;
|
|
1383
|
-
borderRadius: string;
|
|
1384
|
-
borderWidth: string;
|
|
1385
|
-
margin: string;
|
|
1386
|
-
icon: {
|
|
1387
|
-
width: string;
|
|
1388
|
-
height: string;
|
|
1389
|
-
};
|
|
1390
|
-
};
|
|
1391
|
-
};
|
|
1392
|
-
};
|
|
1393
|
-
accordion: {
|
|
1394
|
-
variant: {
|
|
1395
|
-
box: {
|
|
1396
|
-
container: {
|
|
1397
|
-
border: string;
|
|
1398
|
-
borderColor: string;
|
|
1399
|
-
borderRadius: string;
|
|
1400
|
-
padding: string;
|
|
1401
|
-
};
|
|
1402
|
-
summary: {
|
|
1403
|
-
fontWeight: number;
|
|
1404
|
-
fontSize: string;
|
|
1405
|
-
lineHeight: string;
|
|
1406
|
-
color: string;
|
|
1407
|
-
};
|
|
1408
|
-
details: {
|
|
1409
|
-
margin: string;
|
|
1410
|
-
};
|
|
1411
|
-
icon: {
|
|
1412
|
-
width: number;
|
|
1413
|
-
height: number;
|
|
1414
|
-
color: string;
|
|
1415
|
-
};
|
|
1416
|
-
};
|
|
1417
|
-
simple: {
|
|
1418
|
-
container: {
|
|
1419
|
-
borderTop: string;
|
|
1420
|
-
borderBottom: string;
|
|
1421
|
-
borderColor: string;
|
|
1422
|
-
borderRadius: string;
|
|
1423
|
-
padding: string;
|
|
1424
|
-
};
|
|
1425
|
-
summary: {
|
|
1426
|
-
fontWeight: number;
|
|
1427
|
-
fontSize: string;
|
|
1428
|
-
lineHeight: string;
|
|
1429
|
-
color: string;
|
|
1430
|
-
};
|
|
1431
|
-
details: {
|
|
1432
|
-
margin: string;
|
|
1433
|
-
};
|
|
1434
|
-
icon: {
|
|
1435
|
-
width: number;
|
|
1436
|
-
height: number;
|
|
1437
|
-
color: string;
|
|
1438
|
-
};
|
|
1439
|
-
};
|
|
1440
|
-
};
|
|
1441
|
-
};
|
|
1442
|
-
dropdown: {
|
|
1443
|
-
borderRadius: string;
|
|
1444
|
-
fontSize: string;
|
|
1445
|
-
fontWeight: number;
|
|
1446
|
-
lineHeight: string;
|
|
1447
|
-
padding: string;
|
|
1448
|
-
color: string;
|
|
1449
|
-
fill: string;
|
|
1450
|
-
options: {
|
|
1451
|
-
borderColor: string;
|
|
1452
|
-
color: string;
|
|
1453
|
-
};
|
|
1282
|
+
}
|
|
1283
|
+
declare const SliderNavigation: ({ children, infinite, arrows, adaptiveHeight, dotsSize, dotListMarginTop, initialSlide, }: SliderNavigationProps) => _emotion_react_jsx_runtime.JSX.Element;
|
|
1284
|
+
|
|
1285
|
+
interface DropdownListIconsProps {
|
|
1286
|
+
items: DropdownListIconsItem[];
|
|
1287
|
+
}
|
|
1288
|
+
declare const DropdownListIcons: ({ items }: DropdownListIconsProps) => JSX.Element;
|
|
1289
|
+
|
|
1290
|
+
interface ImageStyleProps {
|
|
1291
|
+
height?: string;
|
|
1292
|
+
width?: string;
|
|
1293
|
+
borderRadius?: string;
|
|
1294
|
+
objectFit?: string;
|
|
1295
|
+
objectPosition?: string;
|
|
1296
|
+
className?: string;
|
|
1297
|
+
}
|
|
1298
|
+
interface ImageProps extends ImageStyleProps {
|
|
1299
|
+
src: string;
|
|
1300
|
+
alt: string;
|
|
1301
|
+
}
|
|
1302
|
+
declare const Image: ({ src, alt, height, width, borderRadius, objectFit, objectPosition, className, }: ImageProps) => JSX.Element;
|
|
1303
|
+
|
|
1304
|
+
interface AmazonPaypalBtnProps {
|
|
1305
|
+
onClick: () => void;
|
|
1306
|
+
}
|
|
1307
|
+
declare const AmazonButton: ({ onClick }: AmazonPaypalBtnProps) => JSX.Element;
|
|
1308
|
+
declare const PaypalButton: ({ onClick }: AmazonPaypalBtnProps) => JSX.Element;
|
|
1309
|
+
|
|
1310
|
+
interface CrossSellCheckboxProps extends rightToLeftProps {
|
|
1311
|
+
imageURL: string;
|
|
1312
|
+
title: string;
|
|
1313
|
+
description: string;
|
|
1314
|
+
freeShippingText: string;
|
|
1315
|
+
onChange: (checked: Boolean) => void;
|
|
1316
|
+
}
|
|
1317
|
+
interface rightToLeftProps {
|
|
1318
|
+
rightToLeft: boolean;
|
|
1319
|
+
}
|
|
1320
|
+
declare const CrossSellCheckbox: ({ imageURL, title, description, freeShippingText, rightToLeft, onChange, }: CrossSellCheckboxProps) => JSX.Element;
|
|
1321
|
+
|
|
1322
|
+
type index_d_CrossSellCheckboxProps = CrossSellCheckboxProps;
|
|
1323
|
+
declare const index_d_CrossSellCheckbox: typeof CrossSellCheckbox;
|
|
1324
|
+
declare namespace index_d {
|
|
1325
|
+
export {
|
|
1326
|
+
index_d_CrossSellCheckboxProps as CrossSellCheckboxProps,
|
|
1327
|
+
index_d_CrossSellCheckbox as CrossSellCheckbox,
|
|
1328
|
+
};
|
|
1329
|
+
}
|
|
1330
|
+
|
|
1331
|
+
interface ProductItemProps {
|
|
1332
|
+
title: string;
|
|
1333
|
+
image: ImageProps;
|
|
1334
|
+
price: Pick<PriceLabelProps, 'finalPrice' | 'originalPrice' | 'color'>;
|
|
1335
|
+
rating: Pick<RatingProps, 'rating' | 'reviews'>;
|
|
1336
|
+
tags?: {
|
|
1337
|
+
categoryTagText: string;
|
|
1338
|
+
seasonOfferTagText: string;
|
|
1454
1339
|
};
|
|
1340
|
+
alignName?: 'left' | 'center';
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
interface ProductItemSmallMobileProps extends ProductItemProps {
|
|
1344
|
+
size: ComponentSize.Medium | ComponentSize.Small;
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
declare function withProductGrid<P extends ProductItemProps>(ProductItemComponent: React.FC<P>, data: ProductItemProps[]): {
|
|
1348
|
+
(props: Omit<P, 'title' | 'image' | 'price' | 'rating'>): JSX.Element;
|
|
1349
|
+
displayName: string;
|
|
1350
|
+
};
|
|
1351
|
+
|
|
1352
|
+
declare const Collection: {
|
|
1353
|
+
ProductItemMobile: ({ title, image, price, rating, size, tags, alignName, }: ProductItemSmallMobileProps) => _emotion_react_types_jsx_namespace.EmotionJSX.Element;
|
|
1354
|
+
withProductGrid: typeof withProductGrid;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
interface StarListProps {
|
|
1358
|
+
rating: number;
|
|
1359
|
+
size?: ComponentSize;
|
|
1360
|
+
starsNumber: number;
|
|
1361
|
+
fill: string;
|
|
1362
|
+
}
|
|
1363
|
+
declare const StarList: ({ rating, starsNumber, fill, size, }: StarListProps) => JSX.Element;
|
|
1364
|
+
|
|
1365
|
+
interface DrawerProps {
|
|
1366
|
+
children: React.ReactNode;
|
|
1367
|
+
isOpen: boolean;
|
|
1368
|
+
onClose?: () => void;
|
|
1369
|
+
onOpen?: () => void;
|
|
1370
|
+
onClickOutside?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
1371
|
+
backgroundColor?: string;
|
|
1372
|
+
backdropColor?: string;
|
|
1373
|
+
position?: 'left' | 'right';
|
|
1374
|
+
width?: string;
|
|
1375
|
+
}
|
|
1376
|
+
declare const Drawer: ({ children, isOpen, onClose, onOpen, backgroundColor, backdropColor, position, width, onClickOutside, }: DrawerProps) => JSX.Element | null;
|
|
1377
|
+
|
|
1378
|
+
interface SpinnerProps {
|
|
1379
|
+
fill: string;
|
|
1380
|
+
background: string;
|
|
1381
|
+
animationDuration?: number;
|
|
1382
|
+
complete?: boolean;
|
|
1383
|
+
completeIconStroke?: number;
|
|
1384
|
+
size?: string;
|
|
1385
|
+
}
|
|
1386
|
+
declare const Spinner: ({ fill, background, animationDuration, complete, completeIconStroke, size, }: SpinnerProps) => JSX.Element;
|
|
1387
|
+
|
|
1388
|
+
interface TagsProps {
|
|
1389
|
+
color?: string;
|
|
1390
|
+
items: string[];
|
|
1391
|
+
onCloseClick: (index: number) => void;
|
|
1392
|
+
}
|
|
1393
|
+
declare const Tags: ({ color, items, onCloseClick }: TagsProps) => JSX.Element;
|
|
1394
|
+
|
|
1395
|
+
declare type FilteringDropdownProps<T> = {
|
|
1396
|
+
options: DropdownOption<T>[];
|
|
1397
|
+
disabled?: boolean;
|
|
1398
|
+
wide?: boolean;
|
|
1399
|
+
onChange: (options: DropdownOption<T>[]) => void;
|
|
1400
|
+
filter?: boolean;
|
|
1401
|
+
sliceAfter?: number;
|
|
1402
|
+
placeHolder: string;
|
|
1455
1403
|
};
|
|
1456
|
-
declare
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1404
|
+
declare function FilteringDropdown<T>({ options, disabled, placeHolder, wide, sliceAfter, filter, onChange, }: FilteringDropdownProps<T>): JSX.Element;
|
|
1405
|
+
|
|
1406
|
+
interface PaginationProps {
|
|
1407
|
+
from: number;
|
|
1408
|
+
to: number;
|
|
1409
|
+
onChange: (page: number) => void;
|
|
1410
|
+
currentPage?: number;
|
|
1411
|
+
underlineActive?: boolean;
|
|
1412
|
+
boldActive?: boolean;
|
|
1413
|
+
disabled?: boolean;
|
|
1414
|
+
}
|
|
1415
|
+
declare const Pagination: ({ from, to, currentPage, onChange, underlineActive, boldActive, disabled, }: PaginationProps) => JSX.Element;
|
|
1416
|
+
|
|
1417
|
+
declare const Text: FC<TextProps>;
|
|
1418
|
+
declare type TextHeroProps = {
|
|
1419
|
+
variant: 'hero1' | 'hero2' | 'hero3';
|
|
1420
|
+
weight?: 'heavy' | 'bold' | 'demi';
|
|
1421
|
+
size?: 'regular';
|
|
1422
|
+
underline?: never;
|
|
1423
|
+
disabled?: never;
|
|
1424
|
+
wide?: never;
|
|
1425
|
+
original?: never;
|
|
1426
|
+
allCaps?: never;
|
|
1466
1427
|
};
|
|
1467
|
-
declare type
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1428
|
+
declare type TextDisplayProps = {
|
|
1429
|
+
variant: 'display1' | 'display2';
|
|
1430
|
+
weight?: 'bold' | 'demi';
|
|
1431
|
+
size?: 'regular';
|
|
1432
|
+
underline?: never;
|
|
1433
|
+
disabled?: never;
|
|
1434
|
+
wide?: never;
|
|
1435
|
+
original?: never;
|
|
1436
|
+
allCaps?: never;
|
|
1476
1437
|
};
|
|
1477
|
-
declare type
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1438
|
+
declare type TextHeadingProps = {
|
|
1439
|
+
variant: 'heading1' | 'heading2' | 'heading3' | 'heading4' | 'heading5' | 'heading6';
|
|
1440
|
+
weight?: 'bold' | 'demi' | 'regular';
|
|
1441
|
+
size?: 'regular';
|
|
1442
|
+
underline?: never;
|
|
1443
|
+
disabled?: never;
|
|
1444
|
+
wide?: never;
|
|
1445
|
+
original?: never;
|
|
1446
|
+
allCaps?: never;
|
|
1447
|
+
};
|
|
1448
|
+
declare type TextBodyProps = {
|
|
1449
|
+
variant: 'body';
|
|
1450
|
+
size?: 'regular' | 'small';
|
|
1451
|
+
weight?: 'bold' | 'demi' | 'regular';
|
|
1452
|
+
underline?: never;
|
|
1453
|
+
disabled?: never;
|
|
1454
|
+
wide?: never;
|
|
1455
|
+
original?: never;
|
|
1456
|
+
allCaps?: never;
|
|
1457
|
+
};
|
|
1458
|
+
declare type TextButtonProps = {
|
|
1459
|
+
variant: 'button';
|
|
1460
|
+
size: 'large' | 'regular' | 'small';
|
|
1461
|
+
weight: 'bold' | 'demi';
|
|
1462
|
+
underline?: never;
|
|
1463
|
+
disabled?: never;
|
|
1464
|
+
wide?: boolean;
|
|
1465
|
+
original?: never;
|
|
1466
|
+
allCaps?: never;
|
|
1467
|
+
};
|
|
1468
|
+
declare type TextPricingProps = {
|
|
1469
|
+
variant: 'pricing';
|
|
1470
|
+
size: 'large' | 'medium' | 'regular' | 'small';
|
|
1471
|
+
weight?: never;
|
|
1472
|
+
underline?: never;
|
|
1473
|
+
disabled?: never;
|
|
1474
|
+
wide?: never;
|
|
1475
|
+
original?: boolean;
|
|
1476
|
+
allCaps?: never;
|
|
1477
|
+
};
|
|
1478
|
+
declare type TextLinkProps = {
|
|
1479
|
+
variant: 'link';
|
|
1480
|
+
weight?: 'demi' | 'regular';
|
|
1481
|
+
size?: 'regular' | 'small';
|
|
1482
|
+
underline?: boolean;
|
|
1483
|
+
disabled?: boolean;
|
|
1484
|
+
wide?: never;
|
|
1485
|
+
original?: never;
|
|
1486
|
+
allCaps?: never;
|
|
1487
|
+
} & AnchorHTMLAttributes<'a'>;
|
|
1488
|
+
declare type TextLabelProps = {
|
|
1489
|
+
variant: 'label';
|
|
1490
|
+
weight?: 'regular' | 'demi';
|
|
1491
|
+
size?: 'regular' | 'small';
|
|
1492
|
+
underline?: never;
|
|
1493
|
+
disabled?: boolean;
|
|
1494
|
+
wide?: never;
|
|
1495
|
+
original?: never;
|
|
1496
|
+
allCaps?: never;
|
|
1497
|
+
} & LabelHTMLAttributes<'label'>;
|
|
1498
|
+
declare type TextTagProps = {
|
|
1499
|
+
variant: 'tag';
|
|
1500
|
+
size?: 'regular' | 'small' | 'x-small';
|
|
1501
|
+
weight?: 'regular' | 'demi' | 'bold';
|
|
1502
|
+
underline?: never;
|
|
1503
|
+
disabled?: boolean;
|
|
1504
|
+
wide?: never;
|
|
1505
|
+
original?: never;
|
|
1506
|
+
allCaps?: boolean;
|
|
1507
|
+
};
|
|
1508
|
+
declare type TextProps = AriaAttributes & {
|
|
1509
|
+
style?: CSSProperties;
|
|
1510
|
+
className?: string;
|
|
1511
|
+
} & (TextHeroProps | TextDisplayProps | TextHeadingProps | TextBodyProps | TextLinkProps | TextButtonProps | TextPricingProps | TextLabelProps | TextTagProps);
|
|
1512
|
+
|
|
1513
|
+
interface SearchBarProps {
|
|
1514
|
+
suggestions: SearchBarOptionItem[];
|
|
1515
|
+
resultOptions: SearchBarOptionItem[];
|
|
1516
|
+
onChange: (text: string) => void;
|
|
1517
|
+
onSearch: (term: string) => void;
|
|
1518
|
+
resultsPanelDataTestId?: string;
|
|
1519
|
+
}
|
|
1520
|
+
declare const SearchBar: ({ suggestions, resultOptions, onChange, onSearch, resultsPanelDataTestId, }: SearchBarProps) => JSX.Element;
|
|
1521
|
+
|
|
1522
|
+
interface ProductGalleryMobileProps {
|
|
1523
|
+
images: ImageType[];
|
|
1524
|
+
selectedValue?: ImageType;
|
|
1525
|
+
DiscountTagElement?: JSX.Element;
|
|
1526
|
+
BestSellerTagElement?: JSX.Element;
|
|
1527
|
+
productImageDataTestId?: string;
|
|
1528
|
+
slideDotsDataTestId?: string;
|
|
1529
|
+
}
|
|
1530
|
+
declare const ProductGalleryMobile: ({ images, selectedValue, DiscountTagElement, BestSellerTagElement, productImageDataTestId, slideDotsDataTestId, }: ProductGalleryMobileProps) => JSX.Element;
|
|
1531
|
+
|
|
1532
|
+
interface RadioProps {
|
|
1533
|
+
name: string;
|
|
1534
|
+
value: string;
|
|
1535
|
+
id: string;
|
|
1536
|
+
label: string;
|
|
1537
|
+
size?: ComponentSize.Small | ComponentSize.Medium | ComponentSize.Large;
|
|
1538
|
+
checked?: boolean;
|
|
1539
|
+
disabled?: boolean;
|
|
1540
|
+
onChange: (option: RadioGroupOption) => void;
|
|
1541
|
+
}
|
|
1542
|
+
declare const RadioInput: ({ name, value, id, label, checked, disabled, onChange, size, }: RadioProps) => JSX.Element;
|
|
1543
|
+
|
|
1544
|
+
declare type PortalProps = {
|
|
1545
|
+
id: string;
|
|
1546
|
+
className?: string;
|
|
1547
|
+
};
|
|
1548
|
+
declare const Portal: FC<PortalProps>;
|
|
1549
|
+
|
|
1550
|
+
declare type ModalProps = {
|
|
1551
|
+
id: string;
|
|
1552
|
+
dismissable?: boolean;
|
|
1553
|
+
};
|
|
1554
|
+
declare const Overlay: _emotion_styled.StyledComponent<{
|
|
1555
|
+
theme?: _emotion_react.Theme | undefined;
|
|
1556
|
+
as?: React.ElementType<any> | undefined;
|
|
1557
|
+
} & {
|
|
1558
|
+
opened?: boolean | undefined;
|
|
1559
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
1560
|
+
declare const Modal: FC<ModalProps>;
|
|
1561
|
+
declare type ModalEventDetail = {
|
|
1562
|
+
id: string;
|
|
1563
|
+
type: 'open' | 'close';
|
|
1564
|
+
};
|
|
1565
|
+
declare const modalEvent: (id: string, detail: Omit<ModalEventDetail, 'id'>) => void;
|
|
1566
|
+
declare global {
|
|
1567
|
+
interface WindowEventMap {
|
|
1568
|
+
modal: CustomEvent<ModalEventDetail>;
|
|
1569
|
+
}
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
interface CloseButtonProps {
|
|
1573
|
+
onClick: () => void;
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
interface DescriptionProps {
|
|
1577
|
+
text: string;
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
interface PromoProps {
|
|
1581
|
+
text: string;
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
interface TitleProps {
|
|
1585
|
+
title: string;
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
declare const CartProductItem: {
|
|
1589
|
+
Title: ({ title }: TitleProps) => JSX.Element;
|
|
1590
|
+
Tag: ({ discountAppliedText, backgroundColor }: OfferBannerProps) => JSX.Element;
|
|
1591
|
+
Promo: ({ text }: PromoProps) => JSX.Element;
|
|
1592
|
+
Description: ({ text }: DescriptionProps) => JSX.Element;
|
|
1593
|
+
CloseButton: ({ onClick }: CloseButtonProps) => JSX.Element;
|
|
1483
1594
|
};
|
|
1484
1595
|
|
|
1596
|
+
declare type QuantityPickerPropsOnChange = (value: number) => void;
|
|
1597
|
+
declare type QuantityPickerPropsControlled = {
|
|
1598
|
+
value: number;
|
|
1599
|
+
onChange: QuantityPickerPropsOnChange;
|
|
1600
|
+
};
|
|
1601
|
+
declare type QuantityPickerPropsUncontrolled = {
|
|
1602
|
+
value?: never;
|
|
1603
|
+
onChange?: QuantityPickerPropsOnChange;
|
|
1604
|
+
};
|
|
1605
|
+
declare type QuantityPickerProps = {
|
|
1606
|
+
initialValue?: number;
|
|
1607
|
+
maxValue?: number;
|
|
1608
|
+
} & (QuantityPickerPropsControlled | QuantityPickerPropsUncontrolled);
|
|
1609
|
+
declare const QuantityPicker: ({ initialValue, maxValue, value, onChange, }: QuantityPickerProps) => JSX.Element;
|
|
1610
|
+
|
|
1485
1611
|
declare const useOnClickOutside: <T extends HTMLElement = HTMLElement>(ref: RefObject<T>, handler: (event: Event) => void) => void;
|
|
1486
1612
|
|
|
1487
|
-
declare const useWindowDimensions: (breakpoints: ThemeBreakpoints
|
|
1613
|
+
declare const useWindowDimensions: (breakpoints: ThemeBreakpoints) => {
|
|
1488
1614
|
isMobile: boolean;
|
|
1489
1615
|
windowDimensions: {
|
|
1490
1616
|
width: number;
|
|
@@ -1492,4 +1618,4 @@ declare const useWindowDimensions: (breakpoints: ThemeBreakpoints$1) => {
|
|
|
1492
1618
|
};
|
|
1493
1619
|
};
|
|
1494
1620
|
|
|
1495
|
-
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, FitPredictor, Icon, IconButton, IconProps
|
|
1621
|
+
export { Accordion, AmazonButton, AssetsProvider, Bundle, ButtonPrimary, ButtonSecondary, ButtonSecondaryOutline, ButtonType, CTAProps, _default as Card, CardSectionType, CartProductItem, CategoryTag, Checkbox, Collection, Color, ColorPickerOption, ComponentPosition, ComponentSize, index_d as CrossSell, DeliveryDetails, DiscountTag, Drawer, DropdownListIcons, DropdownListIconsItem, DropdownListIconsSubItem, DropdownOption, Filter, FilterChange, FilteringDropdown, Tags as FilteringTags, FitPredictor, Icon, IconButton, IconProps, IconWithOpacityProps, Image, ImageType, Input, InputValidationType, Modal, MultiColorPicker, OfferBanner, OrderBar, Overlay, Pagination, Pattern, PaymentMethod, PaypalButton, Portal, PriceLabel, ProductGallery, ProductGalleryMobile, ProgressBar, QuantityPicker, RadioGroupInput, RadioGroupOption, RadioInput, Rating, Review, ScrollToTop, SearchBar, SearchBarOptionItem, SeasonOfferTag, SimpleDropdown, SimpleOrderItem, SingleColorPicker, SizeFitGuide, SizeOption, SizeSelector, SizeTable, SliderNavigation, Spinner, StarList, Text, TextButton, Theme, ThemeAssets, ThemeBasicPallete, ThemeBreakpoints, ThemeColorPallete, ThemeColors, ThemeComponent, ThemeFonts, ThemeProvider, ThemeTypography, ThemeVariables, Timer, Tooltip, Totals, WithTestId, modalEvent, useOnClickOutside, useTheme, useThemeAssets, useWindowDimensions };
|