@faststore/ui 2.2.0 → 2.2.13
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/package.json +3 -3
- package/src/components/molecules/Carousel/styles.scss +20 -37
- package/src/components/organisms/ImageGallery/styles.scss +2 -28
- package/dist/atoms/Badge/Badge.d.ts +0 -11
- package/dist/atoms/Badge/Badge.js +0 -6
- package/dist/atoms/Badge/Badge.js.map +0 -1
- package/dist/atoms/Badge/index.d.ts +0 -2
- package/dist/atoms/Badge/index.js +0 -2
- package/dist/atoms/Badge/index.js.map +0 -1
- package/dist/atoms/Button/Button.d.ts +0 -10
- package/dist/atoms/Button/Button.js +0 -6
- package/dist/atoms/Button/Button.js.map +0 -1
- package/dist/atoms/Button/index.d.ts +0 -2
- package/dist/atoms/Button/index.js +0 -2
- package/dist/atoms/Button/index.js.map +0 -1
- package/dist/atoms/Checkbox/Checkbox.d.ts +0 -10
- package/dist/atoms/Checkbox/Checkbox.js +0 -6
- package/dist/atoms/Checkbox/Checkbox.js.map +0 -1
- package/dist/atoms/Checkbox/index.d.ts +0 -2
- package/dist/atoms/Checkbox/index.js +0 -2
- package/dist/atoms/Checkbox/index.js.map +0 -1
- package/dist/atoms/Icon/Icon.d.ts +0 -14
- package/dist/atoms/Icon/Icon.js +0 -6
- package/dist/atoms/Icon/Icon.js.map +0 -1
- package/dist/atoms/Icon/index.d.ts +0 -2
- package/dist/atoms/Icon/index.js +0 -2
- package/dist/atoms/Icon/index.js.map +0 -1
- package/dist/atoms/Icon/stories/assets/ShoppingCart.d.ts +0 -3
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js +0 -8
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js.map +0 -1
- package/dist/atoms/Incentive/Incentive.d.ts +0 -11
- package/dist/atoms/Incentive/Incentive.js +0 -6
- package/dist/atoms/Incentive/Incentive.js.map +0 -1
- package/dist/atoms/Incentive/index.d.ts +0 -2
- package/dist/atoms/Incentive/index.js +0 -2
- package/dist/atoms/Incentive/index.js.map +0 -1
- package/dist/atoms/Incentive/stories/assets/Icons.d.ts +0 -2
- package/dist/atoms/Incentive/stories/assets/Icons.js +0 -6
- package/dist/atoms/Incentive/stories/assets/Icons.js.map +0 -1
- package/dist/atoms/Input/Input.d.ts +0 -14
- package/dist/atoms/Input/Input.js +0 -10
- package/dist/atoms/Input/Input.js.map +0 -1
- package/dist/atoms/Input/index.d.ts +0 -2
- package/dist/atoms/Input/index.js +0 -2
- package/dist/atoms/Input/index.js.map +0 -1
- package/dist/atoms/Label/Label.d.ts +0 -10
- package/dist/atoms/Label/Label.js +0 -6
- package/dist/atoms/Label/Label.js.map +0 -1
- package/dist/atoms/Label/index.d.ts +0 -2
- package/dist/atoms/Label/index.js +0 -2
- package/dist/atoms/Label/index.js.map +0 -1
- package/dist/atoms/Link/Link.d.ts +0 -19
- package/dist/atoms/Link/Link.js +0 -13
- package/dist/atoms/Link/Link.js.map +0 -1
- package/dist/atoms/Link/index.d.ts +0 -2
- package/dist/atoms/Link/index.js +0 -2
- package/dist/atoms/Link/index.js.map +0 -1
- package/dist/atoms/List/List.d.ts +0 -12
- package/dist/atoms/List/List.js +0 -16
- package/dist/atoms/List/List.js.map +0 -1
- package/dist/atoms/List/index.d.ts +0 -2
- package/dist/atoms/List/index.js +0 -2
- package/dist/atoms/List/index.js.map +0 -1
- package/dist/atoms/Overlay/Overlay.d.ts +0 -10
- package/dist/atoms/Overlay/Overlay.js +0 -6
- package/dist/atoms/Overlay/Overlay.js.map +0 -1
- package/dist/atoms/Overlay/index.d.ts +0 -2
- package/dist/atoms/Overlay/index.js +0 -2
- package/dist/atoms/Overlay/index.js.map +0 -1
- package/dist/atoms/Popover/Popover.d.ts +0 -15
- package/dist/atoms/Popover/Popover.js +0 -7
- package/dist/atoms/Popover/Popover.js.map +0 -1
- package/dist/atoms/Popover/index.d.ts +0 -2
- package/dist/atoms/Popover/index.js +0 -2
- package/dist/atoms/Popover/index.js.map +0 -1
- package/dist/atoms/Price/Price.d.ts +0 -28
- package/dist/atoms/Price/Price.js +0 -7
- package/dist/atoms/Price/Price.js.map +0 -1
- package/dist/atoms/Price/index.d.ts +0 -2
- package/dist/atoms/Price/index.js +0 -2
- package/dist/atoms/Price/index.js.map +0 -1
- package/dist/atoms/Radio/Radio.d.ts +0 -7
- package/dist/atoms/Radio/Radio.js +0 -6
- package/dist/atoms/Radio/Radio.js.map +0 -1
- package/dist/atoms/Radio/index.d.ts +0 -2
- package/dist/atoms/Radio/index.js +0 -2
- package/dist/atoms/Radio/index.js.map +0 -1
- package/dist/atoms/Select/Select.d.ts +0 -10
- package/dist/atoms/Select/Select.js +0 -6
- package/dist/atoms/Select/Select.js.map +0 -1
- package/dist/atoms/Select/index.d.ts +0 -2
- package/dist/atoms/Select/index.js +0 -2
- package/dist/atoms/Select/index.js.map +0 -1
- package/dist/atoms/Skeleton/Skeleton.d.ts +0 -10
- package/dist/atoms/Skeleton/Skeleton.js +0 -6
- package/dist/atoms/Skeleton/Skeleton.js.map +0 -1
- package/dist/atoms/Skeleton/index.d.ts +0 -2
- package/dist/atoms/Skeleton/index.js +0 -2
- package/dist/atoms/Skeleton/index.js.map +0 -1
- package/dist/atoms/Slider/Slider.d.ts +0 -67
- package/dist/atoms/Slider/Slider.js +0 -48
- package/dist/atoms/Slider/Slider.js.map +0 -1
- package/dist/atoms/Slider/index.d.ts +0 -2
- package/dist/atoms/Slider/index.js +0 -2
- package/dist/atoms/Slider/index.js.map +0 -1
- package/dist/atoms/Spinner/Spinner.d.ts +0 -11
- package/dist/atoms/Spinner/Spinner.js +0 -6
- package/dist/atoms/Spinner/Spinner.js.map +0 -1
- package/dist/atoms/Spinner/index.d.ts +0 -2
- package/dist/atoms/Spinner/index.js +0 -2
- package/dist/atoms/Spinner/index.js.map +0 -1
- package/dist/atoms/TextArea/TextArea.d.ts +0 -14
- package/dist/atoms/TextArea/TextArea.js +0 -10
- package/dist/atoms/TextArea/TextArea.js.map +0 -1
- package/dist/atoms/TextArea/index.d.ts +0 -2
- package/dist/atoms/TextArea/index.js +0 -2
- package/dist/atoms/TextArea/index.js.map +0 -1
- package/dist/components/atoms/Incentive/Incentive.d.ts +0 -11
- package/dist/components/atoms/Incentive/Incentive.js +0 -6
- package/dist/components/atoms/Incentive/Incentive.js.map +0 -1
- package/dist/components/atoms/Incentive/index.d.ts +0 -2
- package/dist/components/atoms/Incentive/index.js +0 -2
- package/dist/components/atoms/Incentive/index.js.map +0 -1
- package/dist/components/atoms/Popover/Popover.d.ts +0 -15
- package/dist/components/atoms/Popover/Popover.js +0 -7
- package/dist/components/atoms/Popover/Popover.js.map +0 -1
- package/dist/components/atoms/Popover/index.d.ts +0 -2
- package/dist/components/atoms/Popover/index.js +0 -2
- package/dist/components/atoms/Popover/index.js.map +0 -1
- package/dist/components/atoms/Skeleton/Skeleton.d.ts +0 -10
- package/dist/components/atoms/Skeleton/Skeleton.js +0 -6
- package/dist/components/atoms/Skeleton/Skeleton.js.map +0 -1
- package/dist/components/atoms/Skeleton/index.d.ts +0 -2
- package/dist/components/atoms/Skeleton/index.js +0 -2
- package/dist/components/atoms/Skeleton/index.js.map +0 -1
- package/dist/components/atoms/Slider/Slider.d.ts +0 -67
- package/dist/components/atoms/Slider/Slider.js +0 -48
- package/dist/components/atoms/Slider/Slider.js.map +0 -1
- package/dist/components/atoms/Slider/index.d.ts +0 -2
- package/dist/components/atoms/Slider/index.js +0 -2
- package/dist/components/atoms/Slider/index.js.map +0 -1
- package/dist/components/atoms/Spinner/Spinner.d.ts +0 -11
- package/dist/components/atoms/Spinner/Spinner.js +0 -6
- package/dist/components/atoms/Spinner/Spinner.js.map +0 -1
- package/dist/components/atoms/Spinner/index.d.ts +0 -2
- package/dist/components/atoms/Spinner/index.js +0 -2
- package/dist/components/atoms/Spinner/index.js.map +0 -1
- package/dist/components/atoms/TextArea/TextArea.d.ts +0 -14
- package/dist/components/atoms/TextArea/TextArea.js +0 -10
- package/dist/components/atoms/TextArea/TextArea.js.map +0 -1
- package/dist/components/atoms/TextArea/index.d.ts +0 -2
- package/dist/components/atoms/TextArea/index.js +0 -2
- package/dist/components/atoms/TextArea/index.js.map +0 -1
- package/dist/components/molecules/Banner/Banner.d.ts +0 -14
- package/dist/components/molecules/Banner/Banner.js +0 -6
- package/dist/components/molecules/Banner/Banner.js.map +0 -1
- package/dist/components/molecules/Banner/BannerContent.d.ts +0 -10
- package/dist/components/molecules/Banner/BannerContent.js +0 -6
- package/dist/components/molecules/Banner/BannerContent.js.map +0 -1
- package/dist/components/molecules/Banner/BannerImage.d.ts +0 -10
- package/dist/components/molecules/Banner/BannerImage.js +0 -6
- package/dist/components/molecules/Banner/BannerImage.js.map +0 -1
- package/dist/components/molecules/Banner/BannerLink.d.ts +0 -10
- package/dist/components/molecules/Banner/BannerLink.js +0 -6
- package/dist/components/molecules/Banner/BannerLink.js.map +0 -1
- package/dist/components/molecules/Banner/index.d.ts +0 -8
- package/dist/components/molecules/Banner/index.js +0 -5
- package/dist/components/molecules/Banner/index.js.map +0 -1
- package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts +0 -14
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js +0 -38
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js.map +0 -1
- package/dist/components/molecules/Breadcrumb/index.d.ts +0 -2
- package/dist/components/molecules/Breadcrumb/index.js +0 -2
- package/dist/components/molecules/Breadcrumb/index.js.map +0 -1
- package/dist/components/molecules/Bullets/Bullets.d.ts +0 -35
- package/dist/components/molecules/Bullets/Bullets.js +0 -12
- package/dist/components/molecules/Bullets/Bullets.js.map +0 -1
- package/dist/components/molecules/Bullets/index.d.ts +0 -2
- package/dist/components/molecules/Bullets/index.js +0 -2
- package/dist/components/molecules/Bullets/index.js.map +0 -1
- package/dist/components/molecules/Card/Card.d.ts +0 -10
- package/dist/components/molecules/Card/Card.js +0 -6
- package/dist/components/molecules/Card/Card.js.map +0 -1
- package/dist/components/molecules/Card/CardActions.d.ts +0 -10
- package/dist/components/molecules/Card/CardActions.js +0 -6
- package/dist/components/molecules/Card/CardActions.js.map +0 -1
- package/dist/components/molecules/Card/CardContent.d.ts +0 -10
- package/dist/components/molecules/Card/CardContent.js +0 -6
- package/dist/components/molecules/Card/CardContent.js.map +0 -1
- package/dist/components/molecules/Card/CardImage.d.ts +0 -10
- package/dist/components/molecules/Card/CardImage.js +0 -6
- package/dist/components/molecules/Card/CardImage.js.map +0 -1
- package/dist/components/molecules/Card/index.d.ts +0 -8
- package/dist/components/molecules/Card/index.js +0 -5
- package/dist/components/molecules/Card/index.js.map +0 -1
- package/dist/components/molecules/Carousel/Arrows.d.ts +0 -12
- package/dist/components/molecules/Carousel/Arrows.js +0 -6
- package/dist/components/molecules/Carousel/Arrows.js.map +0 -1
- package/dist/components/molecules/Carousel/Carousel.d.ts +0 -54
- package/dist/components/molecules/Carousel/Carousel.js +0 -183
- package/dist/components/molecules/Carousel/Carousel.js.map +0 -1
- package/dist/components/molecules/Carousel/CarouselItem.d.ts +0 -11
- package/dist/components/molecules/Carousel/CarouselItem.js +0 -18
- package/dist/components/molecules/Carousel/CarouselItem.js.map +0 -1
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.d.ts +0 -9
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js +0 -29
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js.map +0 -1
- package/dist/components/molecules/Carousel/index.d.ts +0 -2
- package/dist/components/molecules/Carousel/index.js +0 -3
- package/dist/components/molecules/Carousel/index.js.map +0 -1
- package/dist/components/molecules/CartItem/CartItem.d.ts +0 -10
- package/dist/components/molecules/CartItem/CartItem.js +0 -6
- package/dist/components/molecules/CartItem/CartItem.js.map +0 -1
- package/dist/components/molecules/CartItem/CartItemActions.d.ts +0 -10
- package/dist/components/molecules/CartItem/CartItemActions.js +0 -6
- package/dist/components/molecules/CartItem/CartItemActions.js.map +0 -1
- package/dist/components/molecules/CartItem/CartItemContent.d.ts +0 -10
- package/dist/components/molecules/CartItem/CartItemContent.js +0 -6
- package/dist/components/molecules/CartItem/CartItemContent.js.map +0 -1
- package/dist/components/molecules/CartItem/CartItemImage.d.ts +0 -10
- package/dist/components/molecules/CartItem/CartItemImage.js +0 -6
- package/dist/components/molecules/CartItem/CartItemImage.js.map +0 -1
- package/dist/components/molecules/CartItem/CartItemPrices.d.ts +0 -10
- package/dist/components/molecules/CartItem/CartItemPrices.js +0 -6
- package/dist/components/molecules/CartItem/CartItemPrices.js.map +0 -1
- package/dist/components/molecules/CartItem/CartItemSummary.d.ts +0 -10
- package/dist/components/molecules/CartItem/CartItemSummary.js +0 -6
- package/dist/components/molecules/CartItem/CartItemSummary.js.map +0 -1
- package/dist/components/molecules/CartItem/CartItemTitle.d.ts +0 -10
- package/dist/components/molecules/CartItem/CartItemTitle.js +0 -6
- package/dist/components/molecules/CartItem/CartItemTitle.js.map +0 -1
- package/dist/components/molecules/CartItem/index.d.ts +0 -14
- package/dist/components/molecules/CartItem/index.js +0 -8
- package/dist/components/molecules/CartItem/index.js.map +0 -1
- package/dist/components/molecules/Form/Form.d.ts +0 -11
- package/dist/components/molecules/Form/Form.js +0 -6
- package/dist/components/molecules/Form/Form.js.map +0 -1
- package/dist/components/molecules/Form/index.d.ts +0 -2
- package/dist/components/molecules/Form/index.js +0 -2
- package/dist/components/molecules/Form/index.js.map +0 -1
- package/dist/components/molecules/Gift/Gift.d.ts +0 -15
- package/dist/components/molecules/Gift/Gift.js +0 -9
- package/dist/components/molecules/Gift/Gift.js.map +0 -1
- package/dist/components/molecules/Gift/GiftContent.d.ts +0 -10
- package/dist/components/molecules/Gift/GiftContent.js +0 -6
- package/dist/components/molecules/Gift/GiftContent.js.map +0 -1
- package/dist/components/molecules/Gift/GiftImage.d.ts +0 -10
- package/dist/components/molecules/Gift/GiftImage.js +0 -6
- package/dist/components/molecules/Gift/GiftImage.js.map +0 -1
- package/dist/components/molecules/Gift/index.d.ts +0 -6
- package/dist/components/molecules/Gift/index.js +0 -4
- package/dist/components/molecules/Gift/index.js.map +0 -1
- package/dist/components/molecules/LoadingButton/LoadingButton.d.ts +0 -14
- package/dist/components/molecules/LoadingButton/LoadingButton.js +0 -8
- package/dist/components/molecules/LoadingButton/LoadingButton.js.map +0 -1
- package/dist/components/molecules/LoadingButton/index.d.ts +0 -2
- package/dist/components/molecules/LoadingButton/index.js +0 -2
- package/dist/components/molecules/LoadingButton/index.js.map +0 -1
- package/dist/components/molecules/Modal/Modal.d.ts +0 -25
- package/dist/components/molecules/Modal/Modal.js +0 -31
- package/dist/components/molecules/Modal/Modal.js.map +0 -1
- package/dist/components/molecules/Modal/ModalContent.d.ts +0 -10
- package/dist/components/molecules/Modal/ModalContent.js +0 -23
- package/dist/components/molecules/Modal/ModalContent.js.map +0 -1
- package/dist/components/molecules/Modal/index.d.ts +0 -2
- package/dist/components/molecules/Modal/index.js +0 -2
- package/dist/components/molecules/Modal/index.js.map +0 -1
- package/dist/components/molecules/Modal/useTrapFocus.d.ts +0 -8
- package/dist/components/molecules/Modal/useTrapFocus.js +0 -76
- package/dist/components/molecules/Modal/useTrapFocus.js.map +0 -1
- package/dist/components/molecules/OrderSummary/OrderSummary.d.ts +0 -35
- package/dist/components/molecules/OrderSummary/OrderSummary.js +0 -16
- package/dist/components/molecules/OrderSummary/OrderSummary.js.map +0 -1
- package/dist/components/molecules/OrderSummary/index.d.ts +0 -2
- package/dist/components/molecules/OrderSummary/index.js +0 -2
- package/dist/components/molecules/OrderSummary/index.js.map +0 -1
- package/dist/components/molecules/PaymentMethods/PaymentMethods.d.ts +0 -26
- package/dist/components/molecules/PaymentMethods/PaymentMethods.js +0 -8
- package/dist/components/molecules/PaymentMethods/PaymentMethods.js.map +0 -1
- package/dist/components/molecules/PaymentMethods/index.d.ts +0 -2
- package/dist/components/molecules/PaymentMethods/index.js +0 -2
- package/dist/components/molecules/PaymentMethods/index.js.map +0 -1
- package/dist/components/molecules/PriceRange/PriceRange.d.ts +0 -47
- package/dist/components/molecules/PriceRange/PriceRange.js +0 -28
- package/dist/components/molecules/PriceRange/PriceRange.js.map +0 -1
- package/dist/components/molecules/PriceRange/index.d.ts +0 -2
- package/dist/components/molecules/PriceRange/index.js +0 -2
- package/dist/components/molecules/PriceRange/index.js.map +0 -1
- package/dist/components/molecules/ProductCard/ProductCard.d.ts +0 -11
- package/dist/components/molecules/ProductCard/ProductCard.js +0 -6
- package/dist/components/molecules/ProductCard/ProductCard.js.map +0 -1
- package/dist/components/molecules/ProductCard/ProductCardActions.d.ts +0 -10
- package/dist/components/molecules/ProductCard/ProductCardActions.js +0 -6
- package/dist/components/molecules/ProductCard/ProductCardActions.js.map +0 -1
- package/dist/components/molecules/ProductCard/ProductCardContent.d.ts +0 -10
- package/dist/components/molecules/ProductCard/ProductCardContent.js +0 -6
- package/dist/components/molecules/ProductCard/ProductCardContent.js.map +0 -1
- package/dist/components/molecules/ProductCard/ProductCardImage.d.ts +0 -10
- package/dist/components/molecules/ProductCard/ProductCardImage.js +0 -6
- package/dist/components/molecules/ProductCard/ProductCardImage.js.map +0 -1
- package/dist/components/molecules/ProductCard/index.d.ts +0 -8
- package/dist/components/molecules/ProductCard/index.js +0 -5
- package/dist/components/molecules/ProductCard/index.js.map +0 -1
- package/dist/components/molecules/ProductTitle/ProductTitle.d.ts +0 -47
- package/dist/components/molecules/ProductTitle/ProductTitle.js +0 -12
- package/dist/components/molecules/ProductTitle/ProductTitle.js.map +0 -1
- package/dist/components/molecules/ProductTitle/index.d.ts +0 -2
- package/dist/components/molecules/ProductTitle/index.js +0 -2
- package/dist/components/molecules/ProductTitle/index.js.map +0 -1
- package/dist/components/molecules/SearchInput/SearchInput.d.ts +0 -28
- package/dist/components/molecules/SearchInput/SearchInput.js +0 -26
- package/dist/components/molecules/SearchInput/SearchInput.js.map +0 -1
- package/dist/components/molecules/SearchInput/index.d.ts +0 -2
- package/dist/components/molecules/SearchInput/index.js +0 -2
- package/dist/components/molecules/SearchInput/index.js.map +0 -1
- package/dist/components/molecules/SkuSelector/SkuSelector.d.ts +0 -58
- package/dist/components/molecules/SkuSelector/SkuSelector.js +0 -15
- package/dist/components/molecules/SkuSelector/SkuSelector.js.map +0 -1
- package/dist/components/molecules/SkuSelector/index.d.ts +0 -2
- package/dist/components/molecules/SkuSelector/index.js +0 -2
- package/dist/components/molecules/SkuSelector/index.js.map +0 -1
- package/dist/components/organisms/OutOfStock/OutOfStock.d.ts +0 -21
- package/dist/components/organisms/OutOfStock/OutOfStock.js +0 -8
- package/dist/components/organisms/OutOfStock/OutOfStock.js.map +0 -1
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.d.ts +0 -9
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.js +0 -5
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.js.map +0 -1
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.d.ts +0 -9
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.js +0 -5
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.js.map +0 -1
- package/dist/components/organisms/OutOfStock/index.d.ts +0 -6
- package/dist/components/organisms/OutOfStock/index.js +0 -4
- package/dist/components/organisms/OutOfStock/index.js.map +0 -1
- package/dist/components/organisms/Tiles/Tile.d.ts +0 -11
- package/dist/components/organisms/Tiles/Tile.js +0 -6
- package/dist/components/organisms/Tiles/Tile.js.map +0 -1
- package/dist/components/organisms/Tiles/Tiles.d.ts +0 -11
- package/dist/components/organisms/Tiles/Tiles.js +0 -30
- package/dist/components/organisms/Tiles/Tiles.js.map +0 -1
- package/dist/components/organisms/Tiles/index.d.ts +0 -4
- package/dist/components/organisms/Tiles/index.js +0 -3
- package/dist/components/organisms/Tiles/index.js.map +0 -1
- package/dist/hooks/useSlider/index.d.ts +0 -2
- package/dist/hooks/useSlider/index.js +0 -3
- package/dist/hooks/useSlider/index.js.map +0 -1
- package/dist/hooks/useSlider/useSlider.d.ts +0 -64
- package/dist/hooks/useSlider/useSlider.js +0 -103
- package/dist/hooks/useSlider/useSlider.js.map +0 -1
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/molecules/Accordion/Accordion.d.ts +0 -26
- package/dist/molecules/Accordion/Accordion.js +0 -21
- package/dist/molecules/Accordion/Accordion.js.map +0 -1
- package/dist/molecules/Accordion/AccordionButton.d.ts +0 -10
- package/dist/molecules/Accordion/AccordionButton.js +0 -37
- package/dist/molecules/Accordion/AccordionButton.js.map +0 -1
- package/dist/molecules/Accordion/AccordionItem.d.ts +0 -37
- package/dist/molecules/Accordion/AccordionItem.js +0 -28
- package/dist/molecules/Accordion/AccordionItem.js.map +0 -1
- package/dist/molecules/Accordion/AccordionPanel.d.ts +0 -10
- package/dist/molecules/Accordion/AccordionPanel.js +0 -10
- package/dist/molecules/Accordion/AccordionPanel.js.map +0 -1
- package/dist/molecules/Accordion/index.d.ts +0 -8
- package/dist/molecules/Accordion/index.js +0 -5
- package/dist/molecules/Accordion/index.js.map +0 -1
- package/dist/molecules/AggregateRating/AggregateRating.d.ts +0 -18
- package/dist/molecules/AggregateRating/AggregateRating.js +0 -26
- package/dist/molecules/AggregateRating/AggregateRating.js.map +0 -1
- package/dist/molecules/AggregateRating/index.d.ts +0 -2
- package/dist/molecules/AggregateRating/index.js +0 -2
- package/dist/molecules/AggregateRating/index.js.map +0 -1
- package/dist/molecules/Alert/Alert.d.ts +0 -11
- package/dist/molecules/Alert/Alert.js +0 -6
- package/dist/molecules/Alert/Alert.js.map +0 -1
- package/dist/molecules/Alert/index.d.ts +0 -2
- package/dist/molecules/Alert/index.js +0 -2
- package/dist/molecules/Alert/index.js.map +0 -1
- package/dist/molecules/Banner/Banner.d.ts +0 -14
- package/dist/molecules/Banner/Banner.js +0 -6
- package/dist/molecules/Banner/Banner.js.map +0 -1
- package/dist/molecules/Banner/BannerContent.d.ts +0 -10
- package/dist/molecules/Banner/BannerContent.js +0 -6
- package/dist/molecules/Banner/BannerContent.js.map +0 -1
- package/dist/molecules/Banner/BannerImage.d.ts +0 -10
- package/dist/molecules/Banner/BannerImage.js +0 -6
- package/dist/molecules/Banner/BannerImage.js.map +0 -1
- package/dist/molecules/Banner/BannerLink.d.ts +0 -10
- package/dist/molecules/Banner/BannerLink.js +0 -6
- package/dist/molecules/Banner/BannerLink.js.map +0 -1
- package/dist/molecules/Banner/index.d.ts +0 -8
- package/dist/molecules/Banner/index.js +0 -5
- package/dist/molecules/Banner/index.js.map +0 -1
- package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +0 -14
- package/dist/molecules/Breadcrumb/Breadcrumb.js +0 -38
- package/dist/molecules/Breadcrumb/Breadcrumb.js.map +0 -1
- package/dist/molecules/Breadcrumb/index.d.ts +0 -2
- package/dist/molecules/Breadcrumb/index.js +0 -2
- package/dist/molecules/Breadcrumb/index.js.map +0 -1
- package/dist/molecules/Bullets/Bullets.d.ts +0 -35
- package/dist/molecules/Bullets/Bullets.js +0 -12
- package/dist/molecules/Bullets/Bullets.js.map +0 -1
- package/dist/molecules/Bullets/index.d.ts +0 -2
- package/dist/molecules/Bullets/index.js +0 -2
- package/dist/molecules/Bullets/index.js.map +0 -1
- package/dist/molecules/Card/Card.d.ts +0 -10
- package/dist/molecules/Card/Card.js +0 -6
- package/dist/molecules/Card/Card.js.map +0 -1
- package/dist/molecules/Card/CardActions.d.ts +0 -10
- package/dist/molecules/Card/CardActions.js +0 -6
- package/dist/molecules/Card/CardActions.js.map +0 -1
- package/dist/molecules/Card/CardContent.d.ts +0 -10
- package/dist/molecules/Card/CardContent.js +0 -6
- package/dist/molecules/Card/CardContent.js.map +0 -1
- package/dist/molecules/Card/CardImage.d.ts +0 -10
- package/dist/molecules/Card/CardImage.js +0 -6
- package/dist/molecules/Card/CardImage.js.map +0 -1
- package/dist/molecules/Card/index.d.ts +0 -8
- package/dist/molecules/Card/index.js +0 -5
- package/dist/molecules/Card/index.js.map +0 -1
- package/dist/molecules/Carousel/Arrows.d.ts +0 -12
- package/dist/molecules/Carousel/Arrows.js +0 -6
- package/dist/molecules/Carousel/Arrows.js.map +0 -1
- package/dist/molecules/Carousel/Carousel.d.ts +0 -54
- package/dist/molecules/Carousel/Carousel.js +0 -183
- package/dist/molecules/Carousel/Carousel.js.map +0 -1
- package/dist/molecules/Carousel/CarouselItem.d.ts +0 -11
- package/dist/molecules/Carousel/CarouselItem.js +0 -18
- package/dist/molecules/Carousel/CarouselItem.js.map +0 -1
- package/dist/molecules/Carousel/hooks/useSlideVisibility.d.ts +0 -9
- package/dist/molecules/Carousel/hooks/useSlideVisibility.js +0 -29
- package/dist/molecules/Carousel/hooks/useSlideVisibility.js.map +0 -1
- package/dist/molecules/Carousel/index.d.ts +0 -2
- package/dist/molecules/Carousel/index.js +0 -3
- package/dist/molecules/Carousel/index.js.map +0 -1
- package/dist/molecules/CartItem/CartItem.d.ts +0 -10
- package/dist/molecules/CartItem/CartItem.js +0 -6
- package/dist/molecules/CartItem/CartItem.js.map +0 -1
- package/dist/molecules/CartItem/CartItemActions.d.ts +0 -10
- package/dist/molecules/CartItem/CartItemActions.js +0 -6
- package/dist/molecules/CartItem/CartItemActions.js.map +0 -1
- package/dist/molecules/CartItem/CartItemContent.d.ts +0 -10
- package/dist/molecules/CartItem/CartItemContent.js +0 -6
- package/dist/molecules/CartItem/CartItemContent.js.map +0 -1
- package/dist/molecules/CartItem/CartItemImage.d.ts +0 -10
- package/dist/molecules/CartItem/CartItemImage.js +0 -6
- package/dist/molecules/CartItem/CartItemImage.js.map +0 -1
- package/dist/molecules/CartItem/CartItemPrices.d.ts +0 -10
- package/dist/molecules/CartItem/CartItemPrices.js +0 -6
- package/dist/molecules/CartItem/CartItemPrices.js.map +0 -1
- package/dist/molecules/CartItem/CartItemSummary.d.ts +0 -10
- package/dist/molecules/CartItem/CartItemSummary.js +0 -6
- package/dist/molecules/CartItem/CartItemSummary.js.map +0 -1
- package/dist/molecules/CartItem/CartItemTitle.d.ts +0 -10
- package/dist/molecules/CartItem/CartItemTitle.js +0 -6
- package/dist/molecules/CartItem/CartItemTitle.js.map +0 -1
- package/dist/molecules/CartItem/index.d.ts +0 -14
- package/dist/molecules/CartItem/index.js +0 -8
- package/dist/molecules/CartItem/index.js.map +0 -1
- package/dist/molecules/Dropdown/Dropdown.d.ts +0 -9
- package/dist/molecules/Dropdown/Dropdown.js +0 -67
- package/dist/molecules/Dropdown/Dropdown.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownButton.d.ts +0 -10
- package/dist/molecules/Dropdown/DropdownButton.js +0 -11
- package/dist/molecules/Dropdown/DropdownButton.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownItem.d.ts +0 -10
- package/dist/molecules/Dropdown/DropdownItem.js +0 -26
- package/dist/molecules/Dropdown/DropdownItem.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownMenu.d.ts +0 -22
- package/dist/molecules/Dropdown/DropdownMenu.js +0 -65
- package/dist/molecules/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +0 -41
- package/dist/molecules/Dropdown/contexts/DropdownContext.js +0 -11
- package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +0 -1
- package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +0 -6
- package/dist/molecules/Dropdown/hooks/useDropdown.js +0 -14
- package/dist/molecules/Dropdown/hooks/useDropdown.js.map +0 -1
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +0 -8
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +0 -25
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +0 -1
- package/dist/molecules/Dropdown/index.d.ts +0 -8
- package/dist/molecules/Dropdown/index.js +0 -5
- package/dist/molecules/Dropdown/index.js.map +0 -1
- package/dist/molecules/Dropdown/stories/assets/Caret.d.ts +0 -2
- package/dist/molecules/Dropdown/stories/assets/Caret.js +0 -4
- package/dist/molecules/Dropdown/stories/assets/Caret.js.map +0 -1
- package/dist/molecules/Form/Form.d.ts +0 -11
- package/dist/molecules/Form/Form.js +0 -6
- package/dist/molecules/Form/Form.js.map +0 -1
- package/dist/molecules/Form/index.d.ts +0 -2
- package/dist/molecules/Form/index.js +0 -2
- package/dist/molecules/Form/index.js.map +0 -1
- package/dist/molecules/Gift/Gift.d.ts +0 -16
- package/dist/molecules/Gift/Gift.js +0 -9
- package/dist/molecules/Gift/Gift.js.map +0 -1
- package/dist/molecules/Gift/GiftContent.d.ts +0 -10
- package/dist/molecules/Gift/GiftContent.js +0 -6
- package/dist/molecules/Gift/GiftContent.js.map +0 -1
- package/dist/molecules/Gift/GiftImage.d.ts +0 -10
- package/dist/molecules/Gift/GiftImage.js +0 -6
- package/dist/molecules/Gift/GiftImage.js.map +0 -1
- package/dist/molecules/Gift/index.d.ts +0 -6
- package/dist/molecules/Gift/index.js +0 -4
- package/dist/molecules/Gift/index.js.map +0 -1
- package/dist/molecules/IconButton/IconButton.d.ts +0 -19
- package/dist/molecules/IconButton/IconButton.js +0 -9
- package/dist/molecules/IconButton/IconButton.js.map +0 -1
- package/dist/molecules/IconButton/index.d.ts +0 -2
- package/dist/molecules/IconButton/index.js +0 -2
- package/dist/molecules/IconButton/index.js.map +0 -1
- package/dist/molecules/LoadingButton/LoadingButton.d.ts +0 -14
- package/dist/molecules/LoadingButton/LoadingButton.js +0 -8
- package/dist/molecules/LoadingButton/LoadingButton.js.map +0 -1
- package/dist/molecules/LoadingButton/index.d.ts +0 -2
- package/dist/molecules/LoadingButton/index.js +0 -2
- package/dist/molecules/LoadingButton/index.js.map +0 -1
- package/dist/molecules/Modal/Modal.d.ts +0 -25
- package/dist/molecules/Modal/Modal.js +0 -31
- package/dist/molecules/Modal/Modal.js.map +0 -1
- package/dist/molecules/Modal/ModalContent.d.ts +0 -10
- package/dist/molecules/Modal/ModalContent.js +0 -23
- package/dist/molecules/Modal/ModalContent.js.map +0 -1
- package/dist/molecules/Modal/index.d.ts +0 -2
- package/dist/molecules/Modal/index.js +0 -2
- package/dist/molecules/Modal/index.js.map +0 -1
- package/dist/molecules/Modal/useTrapFocus.d.ts +0 -8
- package/dist/molecules/Modal/useTrapFocus.js +0 -76
- package/dist/molecules/Modal/useTrapFocus.js.map +0 -1
- package/dist/molecules/OrderSummary/OrderSummary.d.ts +0 -35
- package/dist/molecules/OrderSummary/OrderSummary.js +0 -16
- package/dist/molecules/OrderSummary/OrderSummary.js.map +0 -1
- package/dist/molecules/OrderSummary/index.d.ts +0 -2
- package/dist/molecules/OrderSummary/index.js +0 -2
- package/dist/molecules/OrderSummary/index.js.map +0 -1
- package/dist/molecules/PaymentMethods/PaymentMethods.d.ts +0 -26
- package/dist/molecules/PaymentMethods/PaymentMethods.js +0 -8
- package/dist/molecules/PaymentMethods/PaymentMethods.js.map +0 -1
- package/dist/molecules/PaymentMethods/index.d.ts +0 -2
- package/dist/molecules/PaymentMethods/index.js +0 -2
- package/dist/molecules/PaymentMethods/index.js.map +0 -1
- package/dist/molecules/PaymentMethods/stories/assets/Icons.d.ts +0 -9
- package/dist/molecules/PaymentMethods/stories/assets/Icons.js +0 -26
- package/dist/molecules/PaymentMethods/stories/assets/Icons.js.map +0 -1
- package/dist/molecules/PriceRange/PriceRange.d.ts +0 -47
- package/dist/molecules/PriceRange/PriceRange.js +0 -28
- package/dist/molecules/PriceRange/PriceRange.js.map +0 -1
- package/dist/molecules/PriceRange/index.d.ts +0 -2
- package/dist/molecules/PriceRange/index.js +0 -2
- package/dist/molecules/PriceRange/index.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCard.d.ts +0 -11
- package/dist/molecules/ProductCard/ProductCard.js +0 -6
- package/dist/molecules/ProductCard/ProductCard.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardActions.d.ts +0 -10
- package/dist/molecules/ProductCard/ProductCardActions.js +0 -6
- package/dist/molecules/ProductCard/ProductCardActions.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardContent.d.ts +0 -10
- package/dist/molecules/ProductCard/ProductCardContent.js +0 -6
- package/dist/molecules/ProductCard/ProductCardContent.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardImage.d.ts +0 -10
- package/dist/molecules/ProductCard/ProductCardImage.js +0 -6
- package/dist/molecules/ProductCard/ProductCardImage.js.map +0 -1
- package/dist/molecules/ProductCard/index.d.ts +0 -8
- package/dist/molecules/ProductCard/index.js +0 -5
- package/dist/molecules/ProductCard/index.js.map +0 -1
- package/dist/molecules/ProductTitle/ProductTitle.d.ts +0 -47
- package/dist/molecules/ProductTitle/ProductTitle.js +0 -12
- package/dist/molecules/ProductTitle/ProductTitle.js.map +0 -1
- package/dist/molecules/ProductTitle/index.d.ts +0 -2
- package/dist/molecules/ProductTitle/index.js +0 -2
- package/dist/molecules/ProductTitle/index.js.map +0 -1
- package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +0 -30
- package/dist/molecules/QuantitySelector/QuantitySelector.js +0 -11
- package/dist/molecules/QuantitySelector/QuantitySelector.js.map +0 -1
- package/dist/molecules/QuantitySelector/index.d.ts +0 -2
- package/dist/molecules/QuantitySelector/index.js +0 -2
- package/dist/molecules/QuantitySelector/index.js.map +0 -1
- package/dist/molecules/QuantitySelector/stories/assets/Icons.d.ts +0 -7
- package/dist/molecules/QuantitySelector/stories/assets/Icons.js +0 -11
- package/dist/molecules/QuantitySelector/stories/assets/Icons.js.map +0 -1
- package/dist/molecules/RadioGroup/RadioGroup.d.ts +0 -5
- package/dist/molecules/RadioGroup/RadioGroup.js +0 -10
- package/dist/molecules/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/molecules/RadioGroup/RadioOption.d.ts +0 -19
- package/dist/molecules/RadioGroup/RadioOption.js +0 -11
- package/dist/molecules/RadioGroup/RadioOption.js.map +0 -1
- package/dist/molecules/RadioGroup/index.d.ts +0 -4
- package/dist/molecules/RadioGroup/index.js +0 -3
- package/dist/molecules/RadioGroup/index.js.map +0 -1
- package/dist/molecules/RadioGroup/useRadioGroup.d.ts +0 -17
- package/dist/molecules/RadioGroup/useRadioGroup.js +0 -10
- package/dist/molecules/RadioGroup/useRadioGroup.js.map +0 -1
- package/dist/molecules/SearchInput/SearchInput.d.ts +0 -28
- package/dist/molecules/SearchInput/SearchInput.js +0 -28
- package/dist/molecules/SearchInput/SearchInput.js.map +0 -1
- package/dist/molecules/SearchInput/index.d.ts +0 -2
- package/dist/molecules/SearchInput/index.js +0 -2
- package/dist/molecules/SearchInput/index.js.map +0 -1
- package/dist/molecules/SearchInput/stories/assets/CustomIcon.d.ts +0 -3
- package/dist/molecules/SearchInput/stories/assets/CustomIcon.js +0 -7
- package/dist/molecules/SearchInput/stories/assets/CustomIcon.js.map +0 -1
- package/dist/molecules/SkuSelector/SkuSelector.d.ts +0 -58
- package/dist/molecules/SkuSelector/SkuSelector.js +0 -15
- package/dist/molecules/SkuSelector/SkuSelector.js.map +0 -1
- package/dist/molecules/SkuSelector/index.d.ts +0 -2
- package/dist/molecules/SkuSelector/index.js +0 -2
- package/dist/molecules/SkuSelector/index.js.map +0 -1
- package/dist/molecules/Table/Table.d.ts +0 -11
- package/dist/molecules/Table/Table.js +0 -6
- package/dist/molecules/Table/Table.js.map +0 -1
- package/dist/molecules/Table/TableBody.d.ts +0 -11
- package/dist/molecules/Table/TableBody.js +0 -6
- package/dist/molecules/Table/TableBody.js.map +0 -1
- package/dist/molecules/Table/TableCell.d.ts +0 -20
- package/dist/molecules/Table/TableCell.js +0 -7
- package/dist/molecules/Table/TableCell.js.map +0 -1
- package/dist/molecules/Table/TableFooter.d.ts +0 -11
- package/dist/molecules/Table/TableFooter.js +0 -6
- package/dist/molecules/Table/TableFooter.js.map +0 -1
- package/dist/molecules/Table/TableHead.d.ts +0 -11
- package/dist/molecules/Table/TableHead.js +0 -6
- package/dist/molecules/Table/TableHead.js.map +0 -1
- package/dist/molecules/Table/TableRow.d.ts +0 -11
- package/dist/molecules/Table/TableRow.js +0 -6
- package/dist/molecules/Table/TableRow.js.map +0 -1
- package/dist/molecules/Table/index.d.ts +0 -12
- package/dist/molecules/Table/index.js +0 -7
- package/dist/molecules/Table/index.js.map +0 -1
- package/dist/organisms/Hero/Hero.d.ts +0 -11
- package/dist/organisms/Hero/Hero.js +0 -6
- package/dist/organisms/Hero/Hero.js.map +0 -1
- package/dist/organisms/Hero/HeroHeading.d.ts +0 -10
- package/dist/organisms/Hero/HeroHeading.js +0 -6
- package/dist/organisms/Hero/HeroHeading.js.map +0 -1
- package/dist/organisms/Hero/HeroImage.d.ts +0 -10
- package/dist/organisms/Hero/HeroImage.js +0 -6
- package/dist/organisms/Hero/HeroImage.js.map +0 -1
- package/dist/organisms/Hero/index.d.ts +0 -6
- package/dist/organisms/Hero/index.js +0 -4
- package/dist/organisms/Hero/index.js.map +0 -1
- package/dist/organisms/OutOfStock/OutOfStock.d.ts +0 -21
- package/dist/organisms/OutOfStock/OutOfStock.js +0 -8
- package/dist/organisms/OutOfStock/OutOfStock.js.map +0 -1
- package/dist/organisms/OutOfStock/OutOfStockMessage.d.ts +0 -9
- package/dist/organisms/OutOfStock/OutOfStockMessage.js +0 -5
- package/dist/organisms/OutOfStock/OutOfStockMessage.js.map +0 -1
- package/dist/organisms/OutOfStock/OutOfStockTitle.d.ts +0 -9
- package/dist/organisms/OutOfStock/OutOfStockTitle.js +0 -5
- package/dist/organisms/OutOfStock/OutOfStockTitle.js.map +0 -1
- package/dist/organisms/OutOfStock/index.d.ts +0 -6
- package/dist/organisms/OutOfStock/index.js +0 -4
- package/dist/organisms/OutOfStock/index.js.map +0 -1
- package/dist/organisms/Tiles/Tile.d.ts +0 -11
- package/dist/organisms/Tiles/Tile.js +0 -6
- package/dist/organisms/Tiles/Tile.js.map +0 -1
- package/dist/organisms/Tiles/Tiles.d.ts +0 -11
- package/dist/organisms/Tiles/Tiles.js +0 -30
- package/dist/organisms/Tiles/Tiles.js.map +0 -1
- package/dist/organisms/Tiles/index.d.ts +0 -4
- package/dist/organisms/Tiles/index.js +0 -3
- package/dist/organisms/Tiles/index.js.map +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -6
- package/dist/setupTests.js.map +0 -1
- package/dist/typings/PolymorphicGenerics.d.ts +0 -28
- package/dist/typings/PolymorphicGenerics.js +0 -8
- package/dist/typings/PolymorphicGenerics.js.map +0 -1
- package/dist/typings/index.d.ts +0 -1
- package/dist/typings/index.js +0 -2
- package/dist/typings/index.js.map +0 -1
- package/dist/utils/toHaveNoIncomplete.d.ts +0 -17
- package/dist/utils/toHaveNoIncomplete.js +0 -43
- package/dist/utils/toHaveNoIncomplete.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface ProductCardImageProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
-
/**
|
|
5
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
6
|
-
*/
|
|
7
|
-
testId?: string;
|
|
8
|
-
}
|
|
9
|
-
declare const ProductCardImage: React.ForwardRefExoticComponent<ProductCardImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export default ProductCardImage;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
const ProductCardImage = forwardRef(function ProductCardImage({ testId = 'store-product-card-image', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("div", { ref: ref, "data-product-card-image": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
-
});
|
|
5
|
-
export default ProductCardImage;
|
|
6
|
-
//# sourceMappingURL=ProductCardImage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardImage.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,gBAAgB,GAAG,UAAU,CACjC,SAAS,gBAAgB,CACvB,EAAE,MAAM,GAAG,0BAA0B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAChE,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,kDAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export { default } from './ProductCard';
|
|
2
|
-
export type { ProductCardProps } from './ProductCard';
|
|
3
|
-
export { default as ProductCardImage } from './ProductCardImage';
|
|
4
|
-
export type { ProductCardImageProps } from './ProductCardImage';
|
|
5
|
-
export { default as ProductCardContent } from './ProductCardContent';
|
|
6
|
-
export type { ProductCardContentProps } from './ProductCardContent';
|
|
7
|
-
export { default as ProductCardActions } from './ProductCardActions';
|
|
8
|
-
export type { ProductCardActionsProps } from './ProductCardActions';
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { default } from './ProductCard';
|
|
2
|
-
export { default as ProductCardImage } from './ProductCardImage';
|
|
3
|
-
export { default as ProductCardContent } from './ProductCardContent';
|
|
4
|
-
export { default as ProductCardActions } from './ProductCardActions';
|
|
5
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGhE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAGpE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export type ProductTitleProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
4
|
-
/**
|
|
5
|
-
* A react component to be used as the product title, e.g. a `h1`
|
|
6
|
-
*/
|
|
7
|
-
title: ReactNode;
|
|
8
|
-
/**
|
|
9
|
-
* A react component to be used as the product label, e.g. a `DiscountBadge`
|
|
10
|
-
*/
|
|
11
|
-
label?: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* Label for reference.
|
|
14
|
-
*/
|
|
15
|
-
refTag?: string;
|
|
16
|
-
/**
|
|
17
|
-
* A text to be used below the title and the label, such as the product's reference number.
|
|
18
|
-
*/
|
|
19
|
-
refNumber?: string;
|
|
20
|
-
/**
|
|
21
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
22
|
-
*/
|
|
23
|
-
testId?: string;
|
|
24
|
-
};
|
|
25
|
-
declare const ProductTitle: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLElement>, "title"> & {
|
|
26
|
-
/**
|
|
27
|
-
* A react component to be used as the product title, e.g. a `h1`
|
|
28
|
-
*/
|
|
29
|
-
title: ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* A react component to be used as the product label, e.g. a `DiscountBadge`
|
|
32
|
-
*/
|
|
33
|
-
label?: ReactNode;
|
|
34
|
-
/**
|
|
35
|
-
* Label for reference.
|
|
36
|
-
*/
|
|
37
|
-
refTag?: string | undefined;
|
|
38
|
-
/**
|
|
39
|
-
* A text to be used below the title and the label, such as the product's reference number.
|
|
40
|
-
*/
|
|
41
|
-
refNumber?: string | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
44
|
-
*/
|
|
45
|
-
testId?: string | undefined;
|
|
46
|
-
} & React.RefAttributes<HTMLElement>>;
|
|
47
|
-
export default ProductTitle;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
const ProductTitle = forwardRef(function ProductTitle({ title, label, refTag = "Ref.: ", refNumber, testId = 'store-product-title', ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("header", { ref: ref, "data-fs-product-title": true, "data-testid": testId, ...otherProps },
|
|
4
|
-
React.createElement("div", { "data-fs-product-title-header": true },
|
|
5
|
-
title,
|
|
6
|
-
!!label && label),
|
|
7
|
-
refNumber && (React.createElement("p", { "data-fs-product-title-addendum": true },
|
|
8
|
-
refTag,
|
|
9
|
-
refNumber))));
|
|
10
|
-
});
|
|
11
|
-
export default ProductTitle;
|
|
12
|
-
//# sourceMappingURL=ProductTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTitle.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductTitle/ProductTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AA0BzD,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAE,QAAQ,EAAC,SAAS,EAAE,MAAM,GAAE,qBAAqB,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG;IACnH,OAAO,CACL,gCAAQ,GAAG,EAAE,GAAG,gDAAqC,MAAM,KAAM,UAAU;QACzE;YACG,KAAK;YACL,CAAC,CAAC,KAAK,IAAI,KAAK,CACb;QAEL,SAAS,IAAI,CACZ;YACG,MAAM;YAAE,SAAS,CAChB,CACL,CACM,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductTitle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { AriaAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onSubmit'>;
|
|
4
|
-
export interface SearchInputProps extends InputProps {
|
|
5
|
-
/**
|
|
6
|
-
* Callback function when submitted.
|
|
7
|
-
*/
|
|
8
|
-
onSubmit: (value: string) => void;
|
|
9
|
-
/**
|
|
10
|
-
* Custom icon inside the submit button.
|
|
11
|
-
*/
|
|
12
|
-
icon?: ReactNode;
|
|
13
|
-
/**
|
|
14
|
-
* Custom aria-label for input and button.
|
|
15
|
-
*/
|
|
16
|
-
'aria-label'?: AriaAttributes['aria-label'];
|
|
17
|
-
/**
|
|
18
|
-
/**
|
|
19
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
20
|
-
*/
|
|
21
|
-
testId?: string;
|
|
22
|
-
}
|
|
23
|
-
export interface SearchInputRef {
|
|
24
|
-
inputRef?: HTMLInputElement | null;
|
|
25
|
-
formRef?: HTMLFormElement | null;
|
|
26
|
-
}
|
|
27
|
-
declare const SearchInput: React.ForwardRefExoticComponent<SearchInputProps & React.RefAttributes<SearchInputRef | null>>;
|
|
28
|
-
export default SearchInput;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
2
|
-
import { Icon, Button, Input } from '@faststore/components';
|
|
3
|
-
import Form from '../Form';
|
|
4
|
-
const SearchIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" },
|
|
5
|
-
React.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
6
|
-
React.createElement("line", { x1: "21", y1: "21", x2: "16.65", y2: "16.65" })));
|
|
7
|
-
const SearchInput = forwardRef(function SearchInput({ onSubmit, icon, 'aria-label': ariaLabel = 'search', testId = 'store-search-input', ...otherProps }, ref) {
|
|
8
|
-
const inputRef = useRef(null);
|
|
9
|
-
const formRef = useRef(null);
|
|
10
|
-
const handleSubmit = (event) => {
|
|
11
|
-
event.preventDefault();
|
|
12
|
-
if (inputRef.current?.value !== '') {
|
|
13
|
-
onSubmit(inputRef.current.value);
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
useImperativeHandle(ref, () => ({
|
|
17
|
-
inputRef: inputRef.current,
|
|
18
|
-
formRef: formRef.current,
|
|
19
|
-
}));
|
|
20
|
-
return (React.createElement(Form, { ref: formRef, "data-fs-search-input-form": true, "data-testid": testId, onSubmit: handleSubmit, role: "search" },
|
|
21
|
-
React.createElement(Input, { ref: inputRef, "aria-label": ariaLabel, ...otherProps }),
|
|
22
|
-
React.createElement(Button, { type: "submit", "aria-label": "Submit Search" },
|
|
23
|
-
React.createElement(Icon, { component: icon ?? React.createElement(SearchIcon, null) }))));
|
|
24
|
-
});
|
|
25
|
-
export default SearchInput;
|
|
26
|
-
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,IAAI,MAAM,SAAS,CAAA;AAE1B,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CACvB,6BACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO;IAEtB,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG;IAChC,8BAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,OAAO,EAAC,EAAE,EAAC,OAAO,GAAG,CAC1C,CACP,CAAA;AA6BD,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,QAAQ,EACR,IAAI,EACJ,YAAY,EAAE,SAAS,GAAG,QAAQ,EAClC,MAAM,GAAG,oBAAoB,EAC7B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IAE7C,MAAM,YAAY,GAAG,CAAC,KAAgB,EAAE,EAAE;QACxC,KAAK,CAAC,cAAc,EAAE,CAAA;QAEtB,IAAI,QAAQ,CAAC,OAAO,EAAE,KAAK,KAAK,EAAE,EAAE;YAClC,QAAQ,CAAC,QAAQ,CAAC,OAAQ,CAAC,KAAK,CAAC,CAAA;SAClC;IACH,CAAC,CAAA;IAED,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,QAAQ,EAAE,QAAQ,CAAC,OAAO;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC,CAAA;IAEH,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,OAAO,oDAEC,MAAM,EACnB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAC,QAAQ;QAEb,oBAAC,KAAK,IAAC,GAAG,EAAE,QAAQ,gBAAc,SAAS,KAAM,UAAU,GAAI;QAC/D,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,gBAAY,eAAe;YAC9C,oBAAC,IAAI,IAAC,SAAS,EAAE,IAAI,IAAI,oBAAC,UAAU,OAAG,GAAI,CACpC,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/SearchInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { ChangeEventHandler, HTMLAttributes } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface SkuProps {
|
|
4
|
-
/**
|
|
5
|
-
* Alternative text description of the image.
|
|
6
|
-
*/
|
|
7
|
-
alt?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Image URL.
|
|
10
|
-
*/
|
|
11
|
-
src?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Label to describe the option when selected.
|
|
14
|
-
*/
|
|
15
|
-
label: string;
|
|
16
|
-
/**
|
|
17
|
-
* Current value for this option.
|
|
18
|
-
*/
|
|
19
|
-
value: string;
|
|
20
|
-
/**
|
|
21
|
-
* Specifies that this option should be disabled.
|
|
22
|
-
*/
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
}
|
|
25
|
-
type Variant = 'label' | 'image';
|
|
26
|
-
export interface SkuSelectorProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
|
-
/**
|
|
28
|
-
* ID to find this component in testing tools (e.g.: cypress,
|
|
29
|
-
* testing-library, and jest).
|
|
30
|
-
*/
|
|
31
|
-
testId?: string;
|
|
32
|
-
/**
|
|
33
|
-
* ID of the current instance of the component.
|
|
34
|
-
*/
|
|
35
|
-
id?: string;
|
|
36
|
-
/**
|
|
37
|
-
* Specify which variant the component should handle.
|
|
38
|
-
*/
|
|
39
|
-
variant: Variant;
|
|
40
|
-
/**
|
|
41
|
-
* SKU options that should be rendered.
|
|
42
|
-
*/
|
|
43
|
-
options: SkuProps[];
|
|
44
|
-
/**
|
|
45
|
-
* Section label for the SKU selector.
|
|
46
|
-
*/
|
|
47
|
-
label?: string;
|
|
48
|
-
/**
|
|
49
|
-
* Currently active variation's value.
|
|
50
|
-
*/
|
|
51
|
-
activeValue: string;
|
|
52
|
-
/**
|
|
53
|
-
* Function to be triggered when SKU option change.
|
|
54
|
-
*/
|
|
55
|
-
onChange?: ChangeEventHandler<HTMLInputElement>;
|
|
56
|
-
}
|
|
57
|
-
declare const SkuSelector: React.ForwardRefExoticComponent<SkuSelectorProps & React.RefAttributes<HTMLDivElement>>;
|
|
58
|
-
export default SkuSelector;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import { Label, RadioGroup } from '@faststore/components';
|
|
3
|
-
const SkuSelector = forwardRef(function SkuSelector({ id, label, variant, onChange, testId = 'store-sku-selector', activeValue, children, ...otherProps }, ref) {
|
|
4
|
-
const radioGroupId = id ? `-${id}` : '';
|
|
5
|
-
return (React.createElement("div", { ref: ref, "data-fs-sku-selector": true, "data-testid": testId, "data-fs-sku-selector-variant": variant, ...otherProps },
|
|
6
|
-
label && (React.createElement(Label, { "data-fs-sku-selector-title": true },
|
|
7
|
-
label,
|
|
8
|
-
": ",
|
|
9
|
-
React.createElement("strong", null, activeValue))),
|
|
10
|
-
React.createElement(RadioGroup, { selectedValue: activeValue, name: `sku-selector-${variant}${radioGroupId}`, onChange: (e) => {
|
|
11
|
-
onChange?.(e);
|
|
12
|
-
} }, children)));
|
|
13
|
-
});
|
|
14
|
-
export default SkuSelector;
|
|
15
|
-
//# sourceMappingURL=SkuSelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SkuSelector.js","sourceRoot":"","sources":["../../../../src/components/molecules/SkuSelector/SkuSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AA4DzD,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,EAAE,EACF,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,GAAG,oBAAoB,EAC7B,WAAW,EACX,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAEvC,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,+CAEK,MAAM,kCACW,OAAO,KACjC,UAAU;QAEb,KAAK,IAAI,CACR,oBAAC,KAAK;YACH,KAAK;;YAAG,oCAAS,WAAW,CAAU,CACjC,CACT;QACD,oBAAC,UAAU,IACT,aAAa,EAAE,WAAW,EAC1B,IAAI,EAAE,gBAAgB,OAAO,GAAG,YAAY,EAAE,EAC9C,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAA;YACf,CAAC,IAEA,QAAQ,CACE,CACT,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/SkuSelector/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactNode, FormHTMLAttributes } from 'react';
|
|
3
|
-
export type OutOfStockBaseProps = {
|
|
4
|
-
/**
|
|
5
|
-
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
|
-
* testing-library, and jest).
|
|
7
|
-
*/
|
|
8
|
-
testId?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Children for Out of Stock components.
|
|
11
|
-
*/
|
|
12
|
-
children: string | ReactNode;
|
|
13
|
-
};
|
|
14
|
-
export type OutOfStockProps = OutOfStockBaseProps & {
|
|
15
|
-
/**
|
|
16
|
-
* Event emitted when form is submitted.
|
|
17
|
-
*/
|
|
18
|
-
onSubmit?: (event: React.FormEvent<HTMLFormElement>) => void;
|
|
19
|
-
} & FormHTMLAttributes<HTMLFormElement>;
|
|
20
|
-
declare const OutOfStock: ({ testId, children, ...otherProps }: OutOfStockProps) => JSX.Element;
|
|
21
|
-
export default OutOfStock;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Form from '../../molecules/Form';
|
|
3
|
-
const OutOfStock = ({ testId = 'store-out-of-stock', children, ...otherProps }) => {
|
|
4
|
-
return (React.createElement("section", { "data-fs-out-of-stock": true, "data-testid": testId },
|
|
5
|
-
React.createElement(Form, { "data-out-of-stock-form": true, testId: `${testId}-form`, ...otherProps }, children)));
|
|
6
|
-
};
|
|
7
|
-
export default OutOfStock;
|
|
8
|
-
//# sourceMappingURL=OutOfStock.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfStock.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,IAAI,MAAM,sBAAsB,CAAA;AAqBvC,MAAM,UAAU,GAAG,CAAC,EAClB,MAAM,GAAG,oBAAoB,EAC7B,QAAQ,EACR,GAAG,UAAU,EACG,EAAE,EAAE;IACpB,OAAO,CACL,8EAA2C,MAAM;QAC/C,oBAAC,IAAI,oCAAwB,MAAM,EAAE,GAAG,MAAM,OAAO,KAAM,UAAU,IAClE,QAAQ,CACJ,CACC,CACX,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { OutOfStockBaseProps } from './OutOfStock';
|
|
3
|
-
export type OutOfStockMessageProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Attribute used for polymorphic component.
|
|
6
|
-
*/
|
|
7
|
-
as?: 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span';
|
|
8
|
-
} & OutOfStockBaseProps;
|
|
9
|
-
export declare const OutOfStockMessage: ({ as: MessageComponent, testId, children, ...otherProps }: OutOfStockMessageProps) => JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export const OutOfStockMessage = ({ as: MessageComponent = 'p', testId = 'store-out-of-stock-message', children, ...otherProps }) => {
|
|
3
|
-
return (React.createElement(MessageComponent, { "data-out-of-stock-message": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=OutOfStockMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfStockMessage.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStockMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,EAAE,EAAE,gBAAgB,GAAG,GAAG,EAC1B,MAAM,GAAG,4BAA4B,EACrC,QAAQ,EACR,GAAG,UAAU,EACU,EAAE,EAAE;IAC3B,OAAO,CACL,oBAAC,gBAAgB,sDAEF,MAAM,KACf,UAAU,IAEb,QAAQ,CACQ,CACpB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { OutOfStockBaseProps } from './OutOfStock';
|
|
3
|
-
export type OutOfStockTitleProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Attribute used for polymorphic component.
|
|
6
|
-
*/
|
|
7
|
-
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p';
|
|
8
|
-
} & OutOfStockBaseProps;
|
|
9
|
-
export declare const OutOfStockTitle: ({ as: TitleComponent, testId, children, ...otherProps }: OutOfStockTitleProps) => JSX.Element;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export const OutOfStockTitle = ({ as: TitleComponent = 'h2', testId = 'store-out-of-stock-title', children, ...otherProps }) => {
|
|
3
|
-
return (React.createElement(TitleComponent, { "data-out-of-stock-title": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=OutOfStockTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfStockTitle.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStockTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,EAAE,EAAE,cAAc,GAAG,IAAI,EACzB,MAAM,GAAG,0BAA0B,EACnC,QAAQ,EACR,GAAG,UAAU,EACQ,EAAE,EAAE;IACzB,OAAO,CACL,oBAAC,cAAc,oDAEA,MAAM,KACf,UAAU,IAEb,QAAQ,CACM,CAClB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default } from './OutOfStock';
|
|
2
|
-
export { OutOfStockMessage } from './OutOfStockMessage';
|
|
3
|
-
export { OutOfStockTitle } from './OutOfStockTitle';
|
|
4
|
-
export type { OutOfStockProps } from './OutOfStock';
|
|
5
|
-
export type { OutOfStockMessageProps } from './OutOfStockMessage';
|
|
6
|
-
export type { OutOfStockTitleProps } from './OutOfStockTitle';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { HTMLAttributes } from 'react';
|
|
3
|
-
export interface TileProps extends HTMLAttributes<HTMLLIElement> {
|
|
4
|
-
/**
|
|
5
|
-
* ID to find this component in testing tools (e.g.: Cypress,
|
|
6
|
-
* Testing Library, and Jest).
|
|
7
|
-
*/
|
|
8
|
-
testId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const Tile: React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLLIElement>>;
|
|
11
|
-
export default Tile;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
const Tile = forwardRef(function Tile({ testId = 'store-tile', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("li", { ref: ref, role: "listitem", "data-fs-tile": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
-
});
|
|
5
|
-
export default Tile;
|
|
6
|
-
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,IAAI,GAAG,UAAU,CAA2B,SAAS,IAAI,CAC7D,EAAE,MAAM,GAAG,YAAY,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClD,GAAG;IAEH,OAAO,CACL,4BACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,UAAU,uCAEF,MAAM,KACf,UAAU,IAEb,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { HTMLAttributes } from 'react';
|
|
3
|
-
export interface TilesProps extends HTMLAttributes<HTMLUListElement> {
|
|
4
|
-
/**
|
|
5
|
-
* ID to find this component in testing tools (e.g.: Cypress,
|
|
6
|
-
* Testing Library, and Jest).
|
|
7
|
-
*/
|
|
8
|
-
testId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const Tiles: React.ForwardRefExoticComponent<TilesProps & React.RefAttributes<HTMLUListElement>>;
|
|
11
|
-
export default Tiles;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { Children, forwardRef } from 'react';
|
|
2
|
-
import { Tile } from '.';
|
|
3
|
-
const MIN_CHILDREN = 2;
|
|
4
|
-
const MAX_CHILDREN = 4;
|
|
5
|
-
const NUMBER_ITEMS_TO_EXPAND_FIRST_TWO = 2;
|
|
6
|
-
const NUMBER_ITEMS_TO_EXPAND_FIRST = 3;
|
|
7
|
-
const Tiles = forwardRef(function Tiles({ testId = 'store-tiles', children, ...otherProps }, ref) {
|
|
8
|
-
const childrenCount = Children.count(children);
|
|
9
|
-
if (process.env.NODE_ENV === 'development') {
|
|
10
|
-
const isOutOfBounds = childrenCount < MIN_CHILDREN || childrenCount > MAX_CHILDREN;
|
|
11
|
-
if (isOutOfBounds) {
|
|
12
|
-
throw new Error(`Tiles cannot receive less than ${MIN_CHILDREN} or more than ${MAX_CHILDREN} children.`);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
if (process.env.NODE_ENV === 'development') {
|
|
16
|
-
Children.forEach(children, (child) => {
|
|
17
|
-
if (child.type !== Tile) {
|
|
18
|
-
throw new Error('Only Tile components allowed as children.');
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
const expandedClass = childrenCount === NUMBER_ITEMS_TO_EXPAND_FIRST
|
|
23
|
-
? 'expanded-first'
|
|
24
|
-
: childrenCount === NUMBER_ITEMS_TO_EXPAND_FIRST_TWO
|
|
25
|
-
? 'expanded-first-two'
|
|
26
|
-
: '';
|
|
27
|
-
return (React.createElement("ul", { ref: ref, role: "list", "data-fs-tiles": true, "data-fs-tiles-variant": expandedClass, "data-fs-content": "tiles", "data-testid": testId, ...otherProps }, children));
|
|
28
|
-
});
|
|
29
|
-
export default Tiles;
|
|
30
|
-
//# sourceMappingURL=Tiles.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tiles.js","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGnD,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAA;AAUxB,MAAM,YAAY,GAAG,CAAC,CAAA;AACtB,MAAM,YAAY,GAAG,CAAC,CAAA;AACtB,MAAM,gCAAgC,GAAG,CAAC,CAAA;AAC1C,MAAM,4BAA4B,GAAG,CAAC,CAAA;AAEtC,MAAM,KAAK,GAAG,UAAU,CAA+B,SAAS,KAAK,CACnE,EAAE,MAAM,GAAG,aAAa,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACnD,GAAG;IAEH,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAE9C,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC1C,MAAM,aAAa,GACjB,aAAa,GAAG,YAAY,IAAI,aAAa,GAAG,YAAY,CAAA;QAE9D,IAAI,aAAa,EAAE;YACjB,MAAM,IAAI,KAAK,CACb,kCAAkC,YAAY,iBAAiB,YAAY,YAAY,CACxF,CAAA;SACF;KACF;IAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC1C,QAAQ,CAAC,OAAO,CAAC,QAAwB,EAAE,CAAC,KAAK,EAAE,EAAE;YACnD,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;gBACvB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;aAC7D;QACH,CAAC,CAAC,CAAA;KACH;IAED,MAAM,aAAa,GACjB,aAAa,KAAK,4BAA4B;QAC5C,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,aAAa,KAAK,gCAAgC;YACpD,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAC,EAAE,CAAA;IAER,OAAO,CACL,4BACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,MAAM,kDAEY,aAAa,qBACpB,OAAO,iBACV,MAAM,KACf,UAAU,IAEb,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,KAAK,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAG1C,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/hooks/useSlider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,cAAc,aAAa,CAAA"}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from 'react';
|
|
2
|
-
import type { SwipeableProps } from 'react-swipeable';
|
|
3
|
-
export type SlideDirection = 'next' | 'previous';
|
|
4
|
-
interface NextPageAction {
|
|
5
|
-
type: 'NEXT_PAGE';
|
|
6
|
-
}
|
|
7
|
-
interface PreviousPageAction {
|
|
8
|
-
type: 'PREVIOUS_PAGE';
|
|
9
|
-
}
|
|
10
|
-
interface GoToPageAction {
|
|
11
|
-
type: 'GO_TO_PAGE';
|
|
12
|
-
payload: {
|
|
13
|
-
pageIndex: number;
|
|
14
|
-
shouldSlide: boolean;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
interface StopSlideAction {
|
|
18
|
-
type: 'STOP_SLIDE';
|
|
19
|
-
}
|
|
20
|
-
export type Action = NextPageAction | PreviousPageAction | StopSlideAction | GoToPageAction;
|
|
21
|
-
export type SliderDispatch = Dispatch<Action>;
|
|
22
|
-
export interface SliderState {
|
|
23
|
-
/**
|
|
24
|
-
* The `currentItem` in a Slider with multiple items in a single page is
|
|
25
|
-
* always **the one with the lowest index** in the current page.
|
|
26
|
-
*/
|
|
27
|
-
currentItem: number;
|
|
28
|
-
/** Currently active page */
|
|
29
|
-
currentPage: number;
|
|
30
|
-
/**
|
|
31
|
-
* Whether or not the Slider is currently sliding. This is useful to
|
|
32
|
-
* manipulate the `transition` property in a component.
|
|
33
|
-
*/
|
|
34
|
-
sliding: boolean;
|
|
35
|
-
/** The direction in which the Slider is sliding. */
|
|
36
|
-
slideDirection: SlideDirection;
|
|
37
|
-
/** The total number of unique items in the slider. */
|
|
38
|
-
totalItems: number;
|
|
39
|
-
/** The number of items in a single page. */
|
|
40
|
-
itemsPerPage: number;
|
|
41
|
-
/** The total number of pages in the slider. */
|
|
42
|
-
totalPages: number;
|
|
43
|
-
/** Whether or not the slider is infinite. */
|
|
44
|
-
infinite: boolean;
|
|
45
|
-
}
|
|
46
|
-
export declare const nextPage: (current: number, total: number) => number;
|
|
47
|
-
export declare const previousPage: (current: number, total: number) => number;
|
|
48
|
-
export interface UseSliderArgs extends SwipeableProps {
|
|
49
|
-
/** The total number of unique items in the slider. */
|
|
50
|
-
totalItems: number;
|
|
51
|
-
/** The number of items in a single slider page. */
|
|
52
|
-
itemsPerPage?: number;
|
|
53
|
-
/** Whether or not the slider is infinite. */
|
|
54
|
-
infiniteMode?: boolean;
|
|
55
|
-
/** Whether or not slide after swiping left/right. */
|
|
56
|
-
shouldSlideOnSwipe?: boolean;
|
|
57
|
-
}
|
|
58
|
-
export default function useSlider({ totalItems, itemsPerPage, infiniteMode, shouldSlideOnSwipe, ...swipeableConfigOverrides }: UseSliderArgs): {
|
|
59
|
-
handlers: import("react-swipeable").SwipeableHandlers;
|
|
60
|
-
slide: (page: number | SlideDirection, dispatch: Dispatch<Action>) => void;
|
|
61
|
-
sliderState: SliderState;
|
|
62
|
-
sliderDispatch: Dispatch<Action>;
|
|
63
|
-
};
|
|
64
|
-
export {};
|