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