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