@faststore/ui 2.2.0-alpha.4 → 2.2.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/dist/atoms/Badge/Badge.d.ts +11 -0
- package/dist/atoms/Badge/Badge.js +6 -0
- package/dist/atoms/Badge/Badge.js.map +1 -0
- package/dist/atoms/Badge/index.d.ts +2 -0
- package/dist/atoms/Badge/index.js +2 -0
- package/dist/atoms/Badge/index.js.map +1 -0
- package/dist/atoms/Button/Button.d.ts +10 -0
- package/dist/atoms/Button/Button.js +6 -0
- package/dist/atoms/Button/Button.js.map +1 -0
- package/dist/atoms/Button/index.d.ts +2 -0
- package/dist/atoms/Button/index.js +2 -0
- package/dist/atoms/Button/index.js.map +1 -0
- package/dist/atoms/Checkbox/Checkbox.d.ts +10 -0
- package/dist/atoms/Checkbox/Checkbox.js +6 -0
- package/dist/atoms/Checkbox/Checkbox.js.map +1 -0
- package/dist/atoms/Checkbox/index.d.ts +2 -0
- package/dist/atoms/Checkbox/index.js +2 -0
- package/dist/atoms/Checkbox/index.js.map +1 -0
- package/dist/atoms/Icon/Icon.d.ts +14 -0
- package/dist/atoms/Icon/Icon.js +6 -0
- package/dist/atoms/Icon/Icon.js.map +1 -0
- package/dist/atoms/Icon/index.d.ts +2 -0
- package/dist/atoms/Icon/index.js +2 -0
- package/dist/atoms/Icon/index.js.map +1 -0
- package/dist/atoms/Icon/stories/assets/ShoppingCart.d.ts +3 -0
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js +8 -0
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js.map +1 -0
- package/dist/atoms/Incentive/Incentive.d.ts +11 -0
- package/dist/atoms/Incentive/Incentive.js +6 -0
- package/dist/atoms/Incentive/Incentive.js.map +1 -0
- package/dist/atoms/Incentive/index.d.ts +2 -0
- package/dist/atoms/Incentive/index.js +2 -0
- package/dist/atoms/Incentive/index.js.map +1 -0
- package/dist/atoms/Incentive/stories/assets/Icons.d.ts +2 -0
- package/dist/atoms/Incentive/stories/assets/Icons.js +6 -0
- package/dist/atoms/Incentive/stories/assets/Icons.js.map +1 -0
- package/dist/atoms/Input/Input.d.ts +14 -0
- package/dist/atoms/Input/Input.js +10 -0
- package/dist/atoms/Input/Input.js.map +1 -0
- package/dist/atoms/Input/index.d.ts +2 -0
- package/dist/atoms/Input/index.js +2 -0
- package/dist/atoms/Input/index.js.map +1 -0
- package/dist/atoms/Label/Label.d.ts +10 -0
- package/dist/atoms/Label/Label.js +6 -0
- package/dist/atoms/Label/Label.js.map +1 -0
- package/dist/atoms/Label/index.d.ts +2 -0
- package/dist/atoms/Label/index.js +2 -0
- package/dist/atoms/Label/index.js.map +1 -0
- package/dist/atoms/Link/Link.d.ts +19 -0
- package/dist/atoms/Link/Link.js +13 -0
- package/dist/atoms/Link/Link.js.map +1 -0
- package/dist/atoms/Link/index.d.ts +2 -0
- package/dist/atoms/Link/index.js +2 -0
- package/dist/atoms/Link/index.js.map +1 -0
- package/dist/atoms/List/List.d.ts +12 -0
- package/dist/atoms/List/List.js +16 -0
- package/dist/atoms/List/List.js.map +1 -0
- package/dist/atoms/List/index.d.ts +2 -0
- package/dist/atoms/List/index.js +2 -0
- package/dist/atoms/List/index.js.map +1 -0
- package/dist/atoms/Overlay/Overlay.d.ts +10 -0
- package/dist/atoms/Overlay/Overlay.js +6 -0
- package/dist/atoms/Overlay/Overlay.js.map +1 -0
- package/dist/atoms/Overlay/index.d.ts +2 -0
- package/dist/atoms/Overlay/index.js +2 -0
- package/dist/atoms/Overlay/index.js.map +1 -0
- package/dist/atoms/Popover/Popover.d.ts +15 -0
- package/dist/atoms/Popover/Popover.js +7 -0
- package/dist/atoms/Popover/Popover.js.map +1 -0
- package/dist/atoms/Popover/index.d.ts +2 -0
- package/dist/atoms/Popover/index.js +2 -0
- package/dist/atoms/Popover/index.js.map +1 -0
- package/dist/atoms/Price/Price.d.ts +28 -0
- package/dist/atoms/Price/Price.js +7 -0
- package/dist/atoms/Price/Price.js.map +1 -0
- package/dist/atoms/Price/index.d.ts +2 -0
- package/dist/atoms/Price/index.js +2 -0
- package/dist/atoms/Price/index.js.map +1 -0
- package/dist/atoms/Radio/Radio.d.ts +7 -0
- package/dist/atoms/Radio/Radio.js +6 -0
- package/dist/atoms/Radio/Radio.js.map +1 -0
- package/dist/atoms/Radio/index.d.ts +2 -0
- package/dist/atoms/Radio/index.js +2 -0
- package/dist/atoms/Radio/index.js.map +1 -0
- package/dist/atoms/Select/Select.d.ts +10 -0
- package/dist/atoms/Select/Select.js +6 -0
- package/dist/atoms/Select/Select.js.map +1 -0
- package/dist/atoms/Select/index.d.ts +2 -0
- package/dist/atoms/Select/index.js +2 -0
- package/dist/atoms/Select/index.js.map +1 -0
- package/dist/atoms/Skeleton/Skeleton.d.ts +10 -0
- package/dist/atoms/Skeleton/Skeleton.js +6 -0
- package/dist/atoms/Skeleton/Skeleton.js.map +1 -0
- package/dist/atoms/Skeleton/index.d.ts +2 -0
- package/dist/atoms/Skeleton/index.js +2 -0
- package/dist/atoms/Skeleton/index.js.map +1 -0
- package/dist/atoms/Slider/Slider.d.ts +67 -0
- package/dist/atoms/Slider/Slider.js +48 -0
- package/dist/atoms/Slider/Slider.js.map +1 -0
- package/dist/atoms/Slider/index.d.ts +2 -0
- package/dist/atoms/Slider/index.js +2 -0
- package/dist/atoms/Slider/index.js.map +1 -0
- package/dist/atoms/Spinner/Spinner.d.ts +11 -0
- package/dist/atoms/Spinner/Spinner.js +6 -0
- package/dist/atoms/Spinner/Spinner.js.map +1 -0
- package/dist/atoms/Spinner/index.d.ts +2 -0
- package/dist/atoms/Spinner/index.js +2 -0
- package/dist/atoms/Spinner/index.js.map +1 -0
- package/dist/atoms/TextArea/TextArea.d.ts +14 -0
- package/dist/atoms/TextArea/TextArea.js +10 -0
- package/dist/atoms/TextArea/TextArea.js.map +1 -0
- package/dist/atoms/TextArea/index.d.ts +2 -0
- package/dist/atoms/TextArea/index.js +2 -0
- package/dist/atoms/TextArea/index.js.map +1 -0
- package/dist/components/atoms/Incentive/Incentive.d.ts +11 -0
- package/dist/components/atoms/Incentive/Incentive.js +6 -0
- package/dist/components/atoms/Incentive/Incentive.js.map +1 -0
- package/dist/components/atoms/Incentive/index.d.ts +2 -0
- package/dist/components/atoms/Incentive/index.js +2 -0
- package/dist/components/atoms/Incentive/index.js.map +1 -0
- package/dist/components/atoms/Popover/Popover.d.ts +15 -0
- package/dist/components/atoms/Popover/Popover.js +7 -0
- package/dist/components/atoms/Popover/Popover.js.map +1 -0
- package/dist/components/atoms/Popover/index.d.ts +2 -0
- package/dist/components/atoms/Popover/index.js +2 -0
- package/dist/components/atoms/Popover/index.js.map +1 -0
- package/dist/components/atoms/Skeleton/Skeleton.d.ts +10 -0
- package/dist/components/atoms/Skeleton/Skeleton.js +6 -0
- package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/atoms/Skeleton/index.d.ts +2 -0
- package/dist/components/atoms/Skeleton/index.js +2 -0
- package/dist/components/atoms/Skeleton/index.js.map +1 -0
- package/dist/components/atoms/Slider/Slider.d.ts +67 -0
- package/dist/components/atoms/Slider/Slider.js +48 -0
- package/dist/components/atoms/Slider/Slider.js.map +1 -0
- package/dist/components/atoms/Slider/index.d.ts +2 -0
- package/dist/components/atoms/Slider/index.js +2 -0
- package/dist/components/atoms/Slider/index.js.map +1 -0
- package/dist/components/atoms/Spinner/Spinner.d.ts +11 -0
- package/dist/components/atoms/Spinner/Spinner.js +6 -0
- package/dist/components/atoms/Spinner/Spinner.js.map +1 -0
- package/dist/components/atoms/Spinner/index.d.ts +2 -0
- package/dist/components/atoms/Spinner/index.js +2 -0
- package/dist/components/atoms/Spinner/index.js.map +1 -0
- package/dist/components/atoms/TextArea/TextArea.d.ts +14 -0
- package/dist/components/atoms/TextArea/TextArea.js +10 -0
- package/dist/components/atoms/TextArea/TextArea.js.map +1 -0
- package/dist/components/atoms/TextArea/index.d.ts +2 -0
- package/dist/components/atoms/TextArea/index.js +2 -0
- package/dist/components/atoms/TextArea/index.js.map +1 -0
- package/dist/components/molecules/Banner/Banner.d.ts +14 -0
- package/dist/components/molecules/Banner/Banner.js +6 -0
- package/dist/components/molecules/Banner/Banner.js.map +1 -0
- package/dist/components/molecules/Banner/BannerContent.d.ts +10 -0
- package/dist/components/molecules/Banner/BannerContent.js +6 -0
- package/dist/components/molecules/Banner/BannerContent.js.map +1 -0
- package/dist/components/molecules/Banner/BannerImage.d.ts +10 -0
- package/dist/components/molecules/Banner/BannerImage.js +6 -0
- package/dist/components/molecules/Banner/BannerImage.js.map +1 -0
- package/dist/components/molecules/Banner/BannerLink.d.ts +10 -0
- package/dist/components/molecules/Banner/BannerLink.js +6 -0
- package/dist/components/molecules/Banner/BannerLink.js.map +1 -0
- package/dist/components/molecules/Banner/index.d.ts +8 -0
- package/dist/components/molecules/Banner/index.js +5 -0
- package/dist/components/molecules/Banner/index.js.map +1 -0
- package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js +38 -0
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/molecules/Breadcrumb/index.d.ts +2 -0
- package/dist/components/molecules/Breadcrumb/index.js +2 -0
- package/dist/components/molecules/Breadcrumb/index.js.map +1 -0
- package/dist/components/molecules/Bullets/Bullets.d.ts +35 -0
- package/dist/components/molecules/Bullets/Bullets.js +12 -0
- package/dist/components/molecules/Bullets/Bullets.js.map +1 -0
- package/dist/components/molecules/Bullets/index.d.ts +2 -0
- package/dist/components/molecules/Bullets/index.js +2 -0
- package/dist/components/molecules/Bullets/index.js.map +1 -0
- package/dist/components/molecules/Card/Card.d.ts +10 -0
- package/dist/components/molecules/Card/Card.js +6 -0
- package/dist/components/molecules/Card/Card.js.map +1 -0
- package/dist/components/molecules/Card/CardActions.d.ts +10 -0
- package/dist/components/molecules/Card/CardActions.js +6 -0
- package/dist/components/molecules/Card/CardActions.js.map +1 -0
- package/dist/components/molecules/Card/CardContent.d.ts +10 -0
- package/dist/components/molecules/Card/CardContent.js +6 -0
- package/dist/components/molecules/Card/CardContent.js.map +1 -0
- package/dist/components/molecules/Card/CardImage.d.ts +10 -0
- package/dist/components/molecules/Card/CardImage.js +6 -0
- package/dist/components/molecules/Card/CardImage.js.map +1 -0
- package/dist/components/molecules/Card/index.d.ts +8 -0
- package/dist/components/molecules/Card/index.js +5 -0
- package/dist/components/molecules/Card/index.js.map +1 -0
- package/dist/components/molecules/Carousel/Arrows.d.ts +12 -0
- package/dist/components/molecules/Carousel/Arrows.js +6 -0
- package/dist/components/molecules/Carousel/Arrows.js.map +1 -0
- package/dist/components/molecules/Carousel/Carousel.d.ts +54 -0
- package/dist/components/molecules/Carousel/Carousel.js +183 -0
- package/dist/components/molecules/Carousel/Carousel.js.map +1 -0
- package/dist/components/molecules/Carousel/CarouselItem.d.ts +11 -0
- package/dist/components/molecules/Carousel/CarouselItem.js +18 -0
- package/dist/components/molecules/Carousel/CarouselItem.js.map +1 -0
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.d.ts +9 -0
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js +29 -0
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
- package/dist/components/molecules/Carousel/index.d.ts +2 -0
- package/dist/components/molecules/Carousel/index.js +3 -0
- package/dist/components/molecules/Carousel/index.js.map +1 -0
- package/dist/components/molecules/CartItem/CartItem.d.ts +10 -0
- package/dist/components/molecules/CartItem/CartItem.js +6 -0
- package/dist/components/molecules/CartItem/CartItem.js.map +1 -0
- package/dist/components/molecules/CartItem/CartItemActions.d.ts +10 -0
- package/dist/components/molecules/CartItem/CartItemActions.js +6 -0
- package/dist/components/molecules/CartItem/CartItemActions.js.map +1 -0
- package/dist/components/molecules/CartItem/CartItemContent.d.ts +10 -0
- package/dist/components/molecules/CartItem/CartItemContent.js +6 -0
- package/dist/components/molecules/CartItem/CartItemContent.js.map +1 -0
- package/dist/components/molecules/CartItem/CartItemImage.d.ts +10 -0
- package/dist/components/molecules/CartItem/CartItemImage.js +6 -0
- package/dist/components/molecules/CartItem/CartItemImage.js.map +1 -0
- package/dist/components/molecules/CartItem/CartItemPrices.d.ts +10 -0
- package/dist/components/molecules/CartItem/CartItemPrices.js +6 -0
- package/dist/components/molecules/CartItem/CartItemPrices.js.map +1 -0
- package/dist/components/molecules/CartItem/CartItemSummary.d.ts +10 -0
- package/dist/components/molecules/CartItem/CartItemSummary.js +6 -0
- package/dist/components/molecules/CartItem/CartItemSummary.js.map +1 -0
- package/dist/components/molecules/CartItem/CartItemTitle.d.ts +10 -0
- package/dist/components/molecules/CartItem/CartItemTitle.js +6 -0
- package/dist/components/molecules/CartItem/CartItemTitle.js.map +1 -0
- package/dist/components/molecules/CartItem/index.d.ts +14 -0
- package/dist/components/molecules/CartItem/index.js +8 -0
- package/dist/components/molecules/CartItem/index.js.map +1 -0
- package/dist/components/molecules/Form/Form.d.ts +11 -0
- package/dist/components/molecules/Form/Form.js +6 -0
- package/dist/components/molecules/Form/Form.js.map +1 -0
- package/dist/components/molecules/Form/index.d.ts +2 -0
- package/dist/components/molecules/Form/index.js +2 -0
- package/dist/components/molecules/Form/index.js.map +1 -0
- package/dist/components/molecules/Gift/Gift.d.ts +15 -0
- package/dist/components/molecules/Gift/Gift.js +9 -0
- package/dist/components/molecules/Gift/Gift.js.map +1 -0
- package/dist/components/molecules/Gift/GiftContent.d.ts +10 -0
- package/dist/components/molecules/Gift/GiftContent.js +6 -0
- package/dist/components/molecules/Gift/GiftContent.js.map +1 -0
- package/dist/components/molecules/Gift/GiftImage.d.ts +10 -0
- package/dist/components/molecules/Gift/GiftImage.js +6 -0
- package/dist/components/molecules/Gift/GiftImage.js.map +1 -0
- package/dist/components/molecules/Gift/index.d.ts +6 -0
- package/dist/components/molecules/Gift/index.js +4 -0
- package/dist/components/molecules/Gift/index.js.map +1 -0
- package/dist/components/molecules/LoadingButton/LoadingButton.d.ts +14 -0
- package/dist/components/molecules/LoadingButton/LoadingButton.js +8 -0
- package/dist/components/molecules/LoadingButton/LoadingButton.js.map +1 -0
- package/dist/components/molecules/LoadingButton/index.d.ts +2 -0
- package/dist/components/molecules/LoadingButton/index.js +2 -0
- package/dist/components/molecules/LoadingButton/index.js.map +1 -0
- package/dist/components/molecules/Modal/Modal.d.ts +25 -0
- package/dist/components/molecules/Modal/Modal.js +31 -0
- package/dist/components/molecules/Modal/Modal.js.map +1 -0
- package/dist/components/molecules/Modal/ModalContent.d.ts +10 -0
- package/dist/components/molecules/Modal/ModalContent.js +23 -0
- package/dist/components/molecules/Modal/ModalContent.js.map +1 -0
- package/dist/components/molecules/Modal/index.d.ts +2 -0
- package/dist/components/molecules/Modal/index.js +2 -0
- package/dist/components/molecules/Modal/index.js.map +1 -0
- package/dist/components/molecules/Modal/useTrapFocus.d.ts +8 -0
- package/dist/components/molecules/Modal/useTrapFocus.js +76 -0
- package/dist/components/molecules/Modal/useTrapFocus.js.map +1 -0
- package/dist/components/molecules/OrderSummary/OrderSummary.d.ts +35 -0
- package/dist/components/molecules/OrderSummary/OrderSummary.js +16 -0
- package/dist/components/molecules/OrderSummary/OrderSummary.js.map +1 -0
- package/dist/components/molecules/OrderSummary/index.d.ts +2 -0
- package/dist/components/molecules/OrderSummary/index.js +2 -0
- package/dist/components/molecules/OrderSummary/index.js.map +1 -0
- package/dist/components/molecules/PaymentMethods/PaymentMethods.d.ts +26 -0
- package/dist/components/molecules/PaymentMethods/PaymentMethods.js +8 -0
- package/dist/components/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
- package/dist/components/molecules/PaymentMethods/index.d.ts +2 -0
- package/dist/components/molecules/PaymentMethods/index.js +2 -0
- package/dist/components/molecules/PaymentMethods/index.js.map +1 -0
- package/dist/components/molecules/PriceRange/PriceRange.d.ts +47 -0
- package/dist/components/molecules/PriceRange/PriceRange.js +28 -0
- package/dist/components/molecules/PriceRange/PriceRange.js.map +1 -0
- package/dist/components/molecules/PriceRange/index.d.ts +2 -0
- package/dist/components/molecules/PriceRange/index.js +2 -0
- package/dist/components/molecules/PriceRange/index.js.map +1 -0
- package/dist/components/molecules/ProductCard/ProductCard.d.ts +11 -0
- package/dist/components/molecules/ProductCard/ProductCard.js +6 -0
- package/dist/components/molecules/ProductCard/ProductCard.js.map +1 -0
- package/dist/components/molecules/ProductCard/ProductCardActions.d.ts +10 -0
- package/dist/components/molecules/ProductCard/ProductCardActions.js +6 -0
- package/dist/components/molecules/ProductCard/ProductCardActions.js.map +1 -0
- package/dist/components/molecules/ProductCard/ProductCardContent.d.ts +10 -0
- package/dist/components/molecules/ProductCard/ProductCardContent.js +6 -0
- package/dist/components/molecules/ProductCard/ProductCardContent.js.map +1 -0
- package/dist/components/molecules/ProductCard/ProductCardImage.d.ts +10 -0
- package/dist/components/molecules/ProductCard/ProductCardImage.js +6 -0
- package/dist/components/molecules/ProductCard/ProductCardImage.js.map +1 -0
- package/dist/components/molecules/ProductCard/index.d.ts +8 -0
- package/dist/components/molecules/ProductCard/index.js +5 -0
- package/dist/components/molecules/ProductCard/index.js.map +1 -0
- package/dist/components/molecules/ProductTitle/ProductTitle.d.ts +47 -0
- package/dist/components/molecules/ProductTitle/ProductTitle.js +12 -0
- package/dist/components/molecules/ProductTitle/ProductTitle.js.map +1 -0
- package/dist/components/molecules/ProductTitle/index.d.ts +2 -0
- package/dist/components/molecules/ProductTitle/index.js +2 -0
- package/dist/components/molecules/ProductTitle/index.js.map +1 -0
- package/dist/components/molecules/SearchInput/SearchInput.d.ts +28 -0
- package/dist/components/molecules/SearchInput/SearchInput.js +26 -0
- package/dist/components/molecules/SearchInput/SearchInput.js.map +1 -0
- package/dist/components/molecules/SearchInput/index.d.ts +2 -0
- package/dist/components/molecules/SearchInput/index.js +2 -0
- package/dist/components/molecules/SearchInput/index.js.map +1 -0
- package/dist/components/molecules/SkuSelector/SkuSelector.d.ts +58 -0
- package/dist/components/molecules/SkuSelector/SkuSelector.js +15 -0
- package/dist/components/molecules/SkuSelector/SkuSelector.js.map +1 -0
- package/dist/components/molecules/SkuSelector/index.d.ts +2 -0
- package/dist/components/molecules/SkuSelector/index.js +2 -0
- package/dist/components/molecules/SkuSelector/index.js.map +1 -0
- package/dist/components/organisms/OutOfStock/OutOfStock.d.ts +21 -0
- package/dist/components/organisms/OutOfStock/OutOfStock.js +8 -0
- package/dist/components/organisms/OutOfStock/OutOfStock.js.map +1 -0
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -0
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.js +5 -0
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -0
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.js +5 -0
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
- package/dist/components/organisms/OutOfStock/index.d.ts +6 -0
- package/dist/components/organisms/OutOfStock/index.js +4 -0
- package/dist/components/organisms/OutOfStock/index.js.map +1 -0
- package/dist/components/organisms/Tiles/Tile.d.ts +11 -0
- package/dist/components/organisms/Tiles/Tile.js +6 -0
- package/dist/components/organisms/Tiles/Tile.js.map +1 -0
- package/dist/components/organisms/Tiles/Tiles.d.ts +11 -0
- package/dist/components/organisms/Tiles/Tiles.js +30 -0
- package/dist/components/organisms/Tiles/Tiles.js.map +1 -0
- package/dist/components/organisms/Tiles/index.d.ts +4 -0
- package/dist/components/organisms/Tiles/index.js +3 -0
- package/dist/components/organisms/Tiles/index.js.map +1 -0
- package/dist/hooks/useSlider/index.d.ts +2 -0
- package/dist/hooks/useSlider/index.js +3 -0
- package/dist/hooks/useSlider/index.js.map +1 -0
- package/dist/hooks/useSlider/useSlider.d.ts +64 -0
- package/dist/hooks/useSlider/useSlider.js +103 -0
- package/dist/hooks/useSlider/useSlider.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/molecules/Accordion/Accordion.d.ts +26 -0
- package/dist/molecules/Accordion/Accordion.js +21 -0
- package/dist/molecules/Accordion/Accordion.js.map +1 -0
- package/dist/molecules/Accordion/AccordionButton.d.ts +10 -0
- package/dist/molecules/Accordion/AccordionButton.js +37 -0
- package/dist/molecules/Accordion/AccordionButton.js.map +1 -0
- package/dist/molecules/Accordion/AccordionItem.d.ts +37 -0
- package/dist/molecules/Accordion/AccordionItem.js +28 -0
- package/dist/molecules/Accordion/AccordionItem.js.map +1 -0
- package/dist/molecules/Accordion/AccordionPanel.d.ts +10 -0
- package/dist/molecules/Accordion/AccordionPanel.js +10 -0
- package/dist/molecules/Accordion/AccordionPanel.js.map +1 -0
- package/dist/molecules/Accordion/index.d.ts +8 -0
- package/dist/molecules/Accordion/index.js +5 -0
- package/dist/molecules/Accordion/index.js.map +1 -0
- package/dist/molecules/AggregateRating/AggregateRating.d.ts +18 -0
- package/dist/molecules/AggregateRating/AggregateRating.js +26 -0
- package/dist/molecules/AggregateRating/AggregateRating.js.map +1 -0
- package/dist/molecules/AggregateRating/index.d.ts +2 -0
- package/dist/molecules/AggregateRating/index.js +2 -0
- package/dist/molecules/AggregateRating/index.js.map +1 -0
- package/dist/molecules/Alert/Alert.d.ts +11 -0
- package/dist/molecules/Alert/Alert.js +6 -0
- package/dist/molecules/Alert/Alert.js.map +1 -0
- package/dist/molecules/Alert/index.d.ts +2 -0
- package/dist/molecules/Alert/index.js +2 -0
- package/dist/molecules/Alert/index.js.map +1 -0
- package/dist/molecules/Banner/Banner.d.ts +14 -0
- package/dist/molecules/Banner/Banner.js +6 -0
- package/dist/molecules/Banner/Banner.js.map +1 -0
- package/dist/molecules/Banner/BannerContent.d.ts +10 -0
- package/dist/molecules/Banner/BannerContent.js +6 -0
- package/dist/molecules/Banner/BannerContent.js.map +1 -0
- package/dist/molecules/Banner/BannerImage.d.ts +10 -0
- package/dist/molecules/Banner/BannerImage.js +6 -0
- package/dist/molecules/Banner/BannerImage.js.map +1 -0
- package/dist/molecules/Banner/BannerLink.d.ts +10 -0
- package/dist/molecules/Banner/BannerLink.js +6 -0
- package/dist/molecules/Banner/BannerLink.js.map +1 -0
- package/dist/molecules/Banner/index.d.ts +8 -0
- package/dist/molecules/Banner/index.js +5 -0
- package/dist/molecules/Banner/index.js.map +1 -0
- package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/molecules/Breadcrumb/Breadcrumb.js +38 -0
- package/dist/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/molecules/Breadcrumb/index.d.ts +2 -0
- package/dist/molecules/Breadcrumb/index.js +2 -0
- package/dist/molecules/Breadcrumb/index.js.map +1 -0
- package/dist/molecules/Bullets/Bullets.d.ts +35 -0
- package/dist/molecules/Bullets/Bullets.js +12 -0
- package/dist/molecules/Bullets/Bullets.js.map +1 -0
- package/dist/molecules/Bullets/index.d.ts +2 -0
- package/dist/molecules/Bullets/index.js +2 -0
- package/dist/molecules/Bullets/index.js.map +1 -0
- package/dist/molecules/Card/Card.d.ts +10 -0
- package/dist/molecules/Card/Card.js +6 -0
- package/dist/molecules/Card/Card.js.map +1 -0
- package/dist/molecules/Card/CardActions.d.ts +10 -0
- package/dist/molecules/Card/CardActions.js +6 -0
- package/dist/molecules/Card/CardActions.js.map +1 -0
- package/dist/molecules/Card/CardContent.d.ts +10 -0
- package/dist/molecules/Card/CardContent.js +6 -0
- package/dist/molecules/Card/CardContent.js.map +1 -0
- package/dist/molecules/Card/CardImage.d.ts +10 -0
- package/dist/molecules/Card/CardImage.js +6 -0
- package/dist/molecules/Card/CardImage.js.map +1 -0
- package/dist/molecules/Card/index.d.ts +8 -0
- package/dist/molecules/Card/index.js +5 -0
- package/dist/molecules/Card/index.js.map +1 -0
- package/dist/molecules/Carousel/Arrows.d.ts +12 -0
- package/dist/molecules/Carousel/Arrows.js +6 -0
- package/dist/molecules/Carousel/Arrows.js.map +1 -0
- package/dist/molecules/Carousel/Carousel.d.ts +54 -0
- package/dist/molecules/Carousel/Carousel.js +183 -0
- package/dist/molecules/Carousel/Carousel.js.map +1 -0
- package/dist/molecules/Carousel/CarouselItem.d.ts +11 -0
- package/dist/molecules/Carousel/CarouselItem.js +18 -0
- package/dist/molecules/Carousel/CarouselItem.js.map +1 -0
- package/dist/molecules/Carousel/hooks/useSlideVisibility.d.ts +9 -0
- package/dist/molecules/Carousel/hooks/useSlideVisibility.js +29 -0
- package/dist/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
- package/dist/molecules/Carousel/index.d.ts +2 -0
- package/dist/molecules/Carousel/index.js +3 -0
- package/dist/molecules/Carousel/index.js.map +1 -0
- package/dist/molecules/CartItem/CartItem.d.ts +10 -0
- package/dist/molecules/CartItem/CartItem.js +6 -0
- package/dist/molecules/CartItem/CartItem.js.map +1 -0
- package/dist/molecules/CartItem/CartItemActions.d.ts +10 -0
- package/dist/molecules/CartItem/CartItemActions.js +6 -0
- package/dist/molecules/CartItem/CartItemActions.js.map +1 -0
- package/dist/molecules/CartItem/CartItemContent.d.ts +10 -0
- package/dist/molecules/CartItem/CartItemContent.js +6 -0
- package/dist/molecules/CartItem/CartItemContent.js.map +1 -0
- package/dist/molecules/CartItem/CartItemImage.d.ts +10 -0
- package/dist/molecules/CartItem/CartItemImage.js +6 -0
- package/dist/molecules/CartItem/CartItemImage.js.map +1 -0
- package/dist/molecules/CartItem/CartItemPrices.d.ts +10 -0
- package/dist/molecules/CartItem/CartItemPrices.js +6 -0
- package/dist/molecules/CartItem/CartItemPrices.js.map +1 -0
- package/dist/molecules/CartItem/CartItemSummary.d.ts +10 -0
- package/dist/molecules/CartItem/CartItemSummary.js +6 -0
- package/dist/molecules/CartItem/CartItemSummary.js.map +1 -0
- package/dist/molecules/CartItem/CartItemTitle.d.ts +10 -0
- package/dist/molecules/CartItem/CartItemTitle.js +6 -0
- package/dist/molecules/CartItem/CartItemTitle.js.map +1 -0
- package/dist/molecules/CartItem/index.d.ts +14 -0
- package/dist/molecules/CartItem/index.js +8 -0
- package/dist/molecules/CartItem/index.js.map +1 -0
- package/dist/molecules/Dropdown/Dropdown.d.ts +9 -0
- package/dist/molecules/Dropdown/Dropdown.js +67 -0
- package/dist/molecules/Dropdown/Dropdown.js.map +1 -0
- package/dist/molecules/Dropdown/DropdownButton.d.ts +10 -0
- package/dist/molecules/Dropdown/DropdownButton.js +11 -0
- package/dist/molecules/Dropdown/DropdownButton.js.map +1 -0
- package/dist/molecules/Dropdown/DropdownItem.d.ts +10 -0
- package/dist/molecules/Dropdown/DropdownItem.js +26 -0
- package/dist/molecules/Dropdown/DropdownItem.js.map +1 -0
- package/dist/molecules/Dropdown/DropdownMenu.d.ts +22 -0
- package/dist/molecules/Dropdown/DropdownMenu.js +65 -0
- package/dist/molecules/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -0
- package/dist/molecules/Dropdown/contexts/DropdownContext.js +11 -0
- package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
- package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +6 -0
- package/dist/molecules/Dropdown/hooks/useDropdown.js +14 -0
- package/dist/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -0
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
- package/dist/molecules/Dropdown/index.d.ts +8 -0
- package/dist/molecules/Dropdown/index.js +5 -0
- package/dist/molecules/Dropdown/index.js.map +1 -0
- package/dist/molecules/Dropdown/stories/assets/Caret.d.ts +2 -0
- package/dist/molecules/Dropdown/stories/assets/Caret.js +4 -0
- package/dist/molecules/Dropdown/stories/assets/Caret.js.map +1 -0
- package/dist/molecules/Form/Form.d.ts +11 -0
- package/dist/molecules/Form/Form.js +6 -0
- package/dist/molecules/Form/Form.js.map +1 -0
- package/dist/molecules/Form/index.d.ts +2 -0
- package/dist/molecules/Form/index.js +2 -0
- package/dist/molecules/Form/index.js.map +1 -0
- package/dist/molecules/Gift/Gift.d.ts +16 -0
- package/dist/molecules/Gift/Gift.js +9 -0
- package/dist/molecules/Gift/Gift.js.map +1 -0
- package/dist/molecules/Gift/GiftContent.d.ts +10 -0
- package/dist/molecules/Gift/GiftContent.js +6 -0
- package/dist/molecules/Gift/GiftContent.js.map +1 -0
- package/dist/molecules/Gift/GiftImage.d.ts +10 -0
- package/dist/molecules/Gift/GiftImage.js +6 -0
- package/dist/molecules/Gift/GiftImage.js.map +1 -0
- package/dist/molecules/Gift/index.d.ts +6 -0
- package/dist/molecules/Gift/index.js +4 -0
- package/dist/molecules/Gift/index.js.map +1 -0
- package/dist/molecules/IconButton/IconButton.d.ts +19 -0
- package/dist/molecules/IconButton/IconButton.js +9 -0
- package/dist/molecules/IconButton/IconButton.js.map +1 -0
- package/dist/molecules/IconButton/index.d.ts +2 -0
- package/dist/molecules/IconButton/index.js +2 -0
- package/dist/molecules/IconButton/index.js.map +1 -0
- package/dist/molecules/LoadingButton/LoadingButton.d.ts +14 -0
- package/dist/molecules/LoadingButton/LoadingButton.js +8 -0
- package/dist/molecules/LoadingButton/LoadingButton.js.map +1 -0
- package/dist/molecules/LoadingButton/index.d.ts +2 -0
- package/dist/molecules/LoadingButton/index.js +2 -0
- package/dist/molecules/LoadingButton/index.js.map +1 -0
- package/dist/molecules/Modal/Modal.d.ts +25 -0
- package/dist/molecules/Modal/Modal.js +31 -0
- package/dist/molecules/Modal/Modal.js.map +1 -0
- package/dist/molecules/Modal/ModalContent.d.ts +10 -0
- package/dist/molecules/Modal/ModalContent.js +23 -0
- package/dist/molecules/Modal/ModalContent.js.map +1 -0
- package/dist/molecules/Modal/index.d.ts +2 -0
- package/dist/molecules/Modal/index.js +2 -0
- package/dist/molecules/Modal/index.js.map +1 -0
- package/dist/molecules/Modal/useTrapFocus.d.ts +8 -0
- package/dist/molecules/Modal/useTrapFocus.js +76 -0
- package/dist/molecules/Modal/useTrapFocus.js.map +1 -0
- package/dist/molecules/OrderSummary/OrderSummary.d.ts +35 -0
- package/dist/molecules/OrderSummary/OrderSummary.js +16 -0
- package/dist/molecules/OrderSummary/OrderSummary.js.map +1 -0
- package/dist/molecules/OrderSummary/index.d.ts +2 -0
- package/dist/molecules/OrderSummary/index.js +2 -0
- package/dist/molecules/OrderSummary/index.js.map +1 -0
- package/dist/molecules/PaymentMethods/PaymentMethods.d.ts +26 -0
- package/dist/molecules/PaymentMethods/PaymentMethods.js +8 -0
- package/dist/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
- package/dist/molecules/PaymentMethods/index.d.ts +2 -0
- package/dist/molecules/PaymentMethods/index.js +2 -0
- package/dist/molecules/PaymentMethods/index.js.map +1 -0
- package/dist/molecules/PaymentMethods/stories/assets/Icons.d.ts +9 -0
- package/dist/molecules/PaymentMethods/stories/assets/Icons.js +26 -0
- package/dist/molecules/PaymentMethods/stories/assets/Icons.js.map +1 -0
- package/dist/molecules/PriceRange/PriceRange.d.ts +47 -0
- package/dist/molecules/PriceRange/PriceRange.js +28 -0
- package/dist/molecules/PriceRange/PriceRange.js.map +1 -0
- package/dist/molecules/PriceRange/index.d.ts +2 -0
- package/dist/molecules/PriceRange/index.js +2 -0
- package/dist/molecules/PriceRange/index.js.map +1 -0
- package/dist/molecules/ProductCard/ProductCard.d.ts +11 -0
- package/dist/molecules/ProductCard/ProductCard.js +6 -0
- package/dist/molecules/ProductCard/ProductCard.js.map +1 -0
- package/dist/molecules/ProductCard/ProductCardActions.d.ts +10 -0
- package/dist/molecules/ProductCard/ProductCardActions.js +6 -0
- package/dist/molecules/ProductCard/ProductCardActions.js.map +1 -0
- package/dist/molecules/ProductCard/ProductCardContent.d.ts +10 -0
- package/dist/molecules/ProductCard/ProductCardContent.js +6 -0
- package/dist/molecules/ProductCard/ProductCardContent.js.map +1 -0
- package/dist/molecules/ProductCard/ProductCardImage.d.ts +10 -0
- package/dist/molecules/ProductCard/ProductCardImage.js +6 -0
- package/dist/molecules/ProductCard/ProductCardImage.js.map +1 -0
- package/dist/molecules/ProductCard/index.d.ts +8 -0
- package/dist/molecules/ProductCard/index.js +5 -0
- package/dist/molecules/ProductCard/index.js.map +1 -0
- package/dist/molecules/ProductTitle/ProductTitle.d.ts +47 -0
- package/dist/molecules/ProductTitle/ProductTitle.js +12 -0
- package/dist/molecules/ProductTitle/ProductTitle.js.map +1 -0
- package/dist/molecules/ProductTitle/index.d.ts +2 -0
- package/dist/molecules/ProductTitle/index.js +2 -0
- package/dist/molecules/ProductTitle/index.js.map +1 -0
- package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +30 -0
- package/dist/molecules/QuantitySelector/QuantitySelector.js +11 -0
- package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
- package/dist/molecules/QuantitySelector/index.d.ts +2 -0
- package/dist/molecules/QuantitySelector/index.js +2 -0
- package/dist/molecules/QuantitySelector/index.js.map +1 -0
- package/dist/molecules/QuantitySelector/stories/assets/Icons.d.ts +7 -0
- package/dist/molecules/QuantitySelector/stories/assets/Icons.js +11 -0
- package/dist/molecules/QuantitySelector/stories/assets/Icons.js.map +1 -0
- package/dist/molecules/RadioGroup/RadioGroup.d.ts +5 -0
- package/dist/molecules/RadioGroup/RadioGroup.js +10 -0
- package/dist/molecules/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/molecules/RadioGroup/RadioOption.d.ts +19 -0
- package/dist/molecules/RadioGroup/RadioOption.js +11 -0
- package/dist/molecules/RadioGroup/RadioOption.js.map +1 -0
- package/dist/molecules/RadioGroup/index.d.ts +4 -0
- package/dist/molecules/RadioGroup/index.js +3 -0
- package/dist/molecules/RadioGroup/index.js.map +1 -0
- package/dist/molecules/RadioGroup/useRadioGroup.d.ts +17 -0
- package/dist/molecules/RadioGroup/useRadioGroup.js +10 -0
- package/dist/molecules/RadioGroup/useRadioGroup.js.map +1 -0
- package/dist/molecules/SearchInput/SearchInput.d.ts +28 -0
- package/dist/molecules/SearchInput/SearchInput.js +28 -0
- package/dist/molecules/SearchInput/SearchInput.js.map +1 -0
- package/dist/molecules/SearchInput/index.d.ts +2 -0
- package/dist/molecules/SearchInput/index.js +2 -0
- package/dist/molecules/SearchInput/index.js.map +1 -0
- package/dist/molecules/SearchInput/stories/assets/CustomIcon.d.ts +3 -0
- package/dist/molecules/SearchInput/stories/assets/CustomIcon.js +7 -0
- package/dist/molecules/SearchInput/stories/assets/CustomIcon.js.map +1 -0
- package/dist/molecules/SkuSelector/SkuSelector.d.ts +58 -0
- package/dist/molecules/SkuSelector/SkuSelector.js +15 -0
- package/dist/molecules/SkuSelector/SkuSelector.js.map +1 -0
- package/dist/molecules/SkuSelector/index.d.ts +2 -0
- package/dist/molecules/SkuSelector/index.js +2 -0
- package/dist/molecules/SkuSelector/index.js.map +1 -0
- package/dist/molecules/Table/Table.d.ts +11 -0
- package/dist/molecules/Table/Table.js +6 -0
- package/dist/molecules/Table/Table.js.map +1 -0
- package/dist/molecules/Table/TableBody.d.ts +11 -0
- package/dist/molecules/Table/TableBody.js +6 -0
- package/dist/molecules/Table/TableBody.js.map +1 -0
- package/dist/molecules/Table/TableCell.d.ts +20 -0
- package/dist/molecules/Table/TableCell.js +7 -0
- package/dist/molecules/Table/TableCell.js.map +1 -0
- package/dist/molecules/Table/TableFooter.d.ts +11 -0
- package/dist/molecules/Table/TableFooter.js +6 -0
- package/dist/molecules/Table/TableFooter.js.map +1 -0
- package/dist/molecules/Table/TableHead.d.ts +11 -0
- package/dist/molecules/Table/TableHead.js +6 -0
- package/dist/molecules/Table/TableHead.js.map +1 -0
- package/dist/molecules/Table/TableRow.d.ts +11 -0
- package/dist/molecules/Table/TableRow.js +6 -0
- package/dist/molecules/Table/TableRow.js.map +1 -0
- package/dist/molecules/Table/index.d.ts +12 -0
- package/dist/molecules/Table/index.js +7 -0
- package/dist/molecules/Table/index.js.map +1 -0
- package/dist/organisms/Hero/Hero.d.ts +11 -0
- package/dist/organisms/Hero/Hero.js +6 -0
- package/dist/organisms/Hero/Hero.js.map +1 -0
- package/dist/organisms/Hero/HeroHeading.d.ts +10 -0
- package/dist/organisms/Hero/HeroHeading.js +6 -0
- package/dist/organisms/Hero/HeroHeading.js.map +1 -0
- package/dist/organisms/Hero/HeroImage.d.ts +10 -0
- package/dist/organisms/Hero/HeroImage.js +6 -0
- package/dist/organisms/Hero/HeroImage.js.map +1 -0
- package/dist/organisms/Hero/index.d.ts +6 -0
- package/dist/organisms/Hero/index.js +4 -0
- package/dist/organisms/Hero/index.js.map +1 -0
- package/dist/organisms/OutOfStock/OutOfStock.d.ts +21 -0
- package/dist/organisms/OutOfStock/OutOfStock.js +8 -0
- package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -0
- package/dist/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -0
- package/dist/organisms/OutOfStock/OutOfStockMessage.js +5 -0
- package/dist/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
- package/dist/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -0
- package/dist/organisms/OutOfStock/OutOfStockTitle.js +5 -0
- package/dist/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
- package/dist/organisms/OutOfStock/index.d.ts +6 -0
- package/dist/organisms/OutOfStock/index.js +4 -0
- package/dist/organisms/OutOfStock/index.js.map +1 -0
- package/dist/organisms/Tiles/Tile.d.ts +11 -0
- package/dist/organisms/Tiles/Tile.js +6 -0
- package/dist/organisms/Tiles/Tile.js.map +1 -0
- package/dist/organisms/Tiles/Tiles.d.ts +11 -0
- package/dist/organisms/Tiles/Tiles.js +30 -0
- package/dist/organisms/Tiles/Tiles.js.map +1 -0
- package/dist/organisms/Tiles/index.d.ts +4 -0
- package/dist/organisms/Tiles/index.js +3 -0
- package/dist/organisms/Tiles/index.js.map +1 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/setupTests.js +6 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/typings/PolymorphicGenerics.d.ts +28 -0
- package/dist/typings/PolymorphicGenerics.js +8 -0
- package/dist/typings/PolymorphicGenerics.js.map +1 -0
- package/dist/typings/index.d.ts +1 -0
- package/dist/typings/index.js +2 -0
- package/dist/typings/index.js.map +1 -0
- package/dist/utils/toHaveNoIncomplete.d.ts +17 -0
- package/dist/utils/toHaveNoIncomplete.js +43 -0
- package/dist/utils/toHaveNoIncomplete.js.map +1 -0
- package/package.json +5 -5
- package/src/components/organisms/ProductDetails/styles.scss +12 -0
- package/src/styles/base/layout.scss +1 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './Gift';
|
|
2
|
+
export type { GiftProps } from './Gift';
|
|
3
|
+
export { default as GiftContent } from './GiftContent';
|
|
4
|
+
export type { GiftContentProps } from './GiftContent';
|
|
5
|
+
export { default as GiftImage } from './GiftImage';
|
|
6
|
+
export type { GiftImageProps } from './GiftImage';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/Gift/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAGhC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AAGtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ButtonProps } from '@faststore/components';
|
|
3
|
+
export interface LoadingButtonProps extends ButtonProps {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
6
|
+
*/
|
|
7
|
+
testId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* The current loading state of the button.
|
|
10
|
+
*/
|
|
11
|
+
loading: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const LoadingButton: React.ForwardRefExoticComponent<LoadingButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
export default LoadingButton;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Button } from '@faststore/components';
|
|
3
|
+
import Spinner from '../../atoms/Spinner';
|
|
4
|
+
const LoadingButton = forwardRef(function LoadingButton({ children, loading, testId = 'store-loading-button', ...otherProps }, ref) {
|
|
5
|
+
return (React.createElement(Button, { ref: ref, "data-fs-loading-button": true, testId: testId, ...otherProps }, loading ? React.createElement(Spinner, null) : children));
|
|
6
|
+
});
|
|
7
|
+
export default LoadingButton;
|
|
8
|
+
//# sourceMappingURL=LoadingButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoadingButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/LoadingButton/LoadingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAE9C,OAAO,OAAO,MAAM,qBAAqB,CAAA;AAazC,MAAM,aAAa,GAAG,UAAU,CAC9B,SAAS,aAAa,CACpB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,GAAG,UAAU,EAAE,EACrE,GAAG;IAEH,OAAO,CACL,oBAAC,MAAM,IAAC,GAAG,EAAE,GAAG,kCAAyB,MAAM,EAAE,MAAM,KAAM,UAAU,IACpE,OAAO,CAAC,CAAC,CAAC,oBAAC,OAAO,OAAG,CAAC,CAAC,CAAC,QAAQ,CAC1B,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/LoadingButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { AriaAttributes, KeyboardEvent, MouseEvent, PropsWithChildren } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ModalContentProps } from './ModalContent';
|
|
4
|
+
export interface ModalProps extends ModalContentProps {
|
|
5
|
+
/**
|
|
6
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Identifies the element (or elements) that labels the current element.
|
|
11
|
+
* @see aria-labelledby https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby
|
|
12
|
+
*/
|
|
13
|
+
'aria-labelledby'?: AriaAttributes['aria-label'];
|
|
14
|
+
/**
|
|
15
|
+
* This function is called whenever the user hits "Escape" or clicks outside
|
|
16
|
+
* the dialog.
|
|
17
|
+
*/
|
|
18
|
+
onDismiss?: (event: MouseEvent | KeyboardEvent) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Controls whether or not the dialog is open.
|
|
21
|
+
*/
|
|
22
|
+
isOpen: boolean;
|
|
23
|
+
}
|
|
24
|
+
declare const Modal: ({ isOpen, children, onDismiss, testId, ...otherProps }: PropsWithChildren<ModalProps>) => React.ReactPortal | null;
|
|
25
|
+
export default Modal;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import { Overlay } from '@faststore/components';
|
|
4
|
+
import ModalContent from './ModalContent';
|
|
5
|
+
/*
|
|
6
|
+
* This component is based on @reach/dialog.
|
|
7
|
+
* https://github.com/reach/reach-ui/blob/main/packages/dialog/src/index.tsx
|
|
8
|
+
* https://reach.tech/dialog
|
|
9
|
+
*/
|
|
10
|
+
const Modal = ({ isOpen, children, onDismiss, testId = 'store-modal', ...otherProps }) => {
|
|
11
|
+
const handleBackdropClick = (event) => {
|
|
12
|
+
if (event.defaultPrevented) {
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
event.stopPropagation();
|
|
16
|
+
onDismiss?.(event);
|
|
17
|
+
};
|
|
18
|
+
const handleBackdropKeyDown = (event) => {
|
|
19
|
+
if (event.key !== 'Escape' || event.defaultPrevented) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
event.stopPropagation();
|
|
23
|
+
onDismiss?.(event);
|
|
24
|
+
};
|
|
25
|
+
return isOpen
|
|
26
|
+
? createPortal(React.createElement(Overlay, { onClick: handleBackdropClick, onKeyDown: handleBackdropKeyDown },
|
|
27
|
+
React.createElement(ModalContent, { ...otherProps, testId: testId }, children)), document.body)
|
|
28
|
+
: null;
|
|
29
|
+
};
|
|
30
|
+
export default Modal;
|
|
31
|
+
//# sourceMappingURL=Modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/Modal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAwBzC;;;;GAIG;AAEH,MAAM,KAAK,GAAG,CAAC,EACb,MAAM,EACN,QAAQ,EACR,SAAS,EACT,MAAM,GAAG,aAAa,EACtB,GAAG,UAAU,EACiB,EAAE,EAAE;IAClC,MAAM,mBAAmB,GAAG,CAAC,KAAiB,EAAE,EAAE;QAChD,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC1B,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC,CAAA;IAED,MAAM,qBAAqB,GAAG,CAAC,KAAoB,EAAE,EAAE;QACrD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,gBAAgB,EAAE;YACpD,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC,CAAA;IAED,OAAO,MAAM;QACX,CAAC,CAAC,YAAY,CACV,oBAAC,OAAO,IACN,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,qBAAqB;YAEhC,oBAAC,YAAY,OAAK,UAAU,EAAE,MAAM,EAAE,MAAM,IACzC,QAAQ,CACI,CACP,EACV,QAAQ,CAAC,IAAI,CACd;QACH,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes, RefObject } from 'react';
|
|
2
|
+
interface ModalContentPureProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
3
|
+
beforeElementRef: RefObject<HTMLDivElement>;
|
|
4
|
+
trapFocusRef: RefObject<HTMLDivElement>;
|
|
5
|
+
afterElementRef: RefObject<HTMLDivElement>;
|
|
6
|
+
testId?: string;
|
|
7
|
+
}
|
|
8
|
+
export type ModalContentProps = Omit<ModalContentPureProps, 'trapFocusRef' | 'onClick' | 'beforeElementRef' | 'afterElementRef'>;
|
|
9
|
+
declare const ModalContent: ({ children, ...otherProps }: ModalContentProps) => JSX.Element;
|
|
10
|
+
export default ModalContent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import useTrapFocus from './useTrapFocus';
|
|
3
|
+
const ModalContentPure = ({ beforeElementRef, trapFocusRef, afterElementRef, testId = 'store-modal-content', children, ...otherProps }) => {
|
|
4
|
+
return (React.createElement(React.Fragment, null,
|
|
5
|
+
React.createElement("div", { ref: beforeElementRef, "data-testid": "beforeElement", tabIndex: 0, "aria-hidden": "true" }),
|
|
6
|
+
React.createElement("div", { "data-fs-modal-content": true, "data-testid": testId, ref: trapFocusRef, "aria-modal": "true", role: "dialog", tabIndex: -1, ...otherProps }, children),
|
|
7
|
+
React.createElement("div", { ref: afterElementRef, "data-testid": "afterElement", tabIndex: 0, "aria-hidden": "true" })));
|
|
8
|
+
};
|
|
9
|
+
const ModalContent = ({ children, ...otherProps }) => {
|
|
10
|
+
const trapFocusRef = useRef(null);
|
|
11
|
+
const beforeElementRef = useRef(null);
|
|
12
|
+
const afterElementRef = useRef(null);
|
|
13
|
+
useTrapFocus({
|
|
14
|
+
beforeElementRef,
|
|
15
|
+
trapFocusRef,
|
|
16
|
+
afterElementRef,
|
|
17
|
+
});
|
|
18
|
+
return (React.createElement(ModalContentPure, { ...otherProps, trapFocusRef: trapFocusRef, beforeElementRef: beforeElementRef, afterElementRef: afterElementRef, onClick: (event) => {
|
|
19
|
+
event.stopPropagation();
|
|
20
|
+
} }, children));
|
|
21
|
+
};
|
|
22
|
+
export default ModalContent;
|
|
23
|
+
//# sourceMappingURL=ModalContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/ModalContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAazC,MAAM,gBAAgB,GAAG,CAAC,EACxB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,MAAM,GAAG,qBAAqB,EAC9B,QAAQ,EACR,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,OAAO,CACL;QACE,6BACE,GAAG,EAAE,gBAAgB,iBACT,eAAe,EAC3B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB;QACF,2EAEe,MAAM,EACnB,GAAG,EAAE,YAAY,gBACN,MAAM,EACjB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,KACR,UAAU,IAEb,QAAQ,CACL;QACN,6BACE,GAAG,EAAE,eAAe,iBACR,cAAc,EAC1B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAOD,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAqB,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACjD,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACrD,MAAM,eAAe,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAEpD,YAAY,CAAC;QACX,gBAAgB;QAChB,YAAY;QACZ,eAAe;KAChB,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,gBAAgB,OACX,UAAU,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YAC7B,KAAK,CAAC,eAAe,EAAE,CAAA;QACzB,CAAC,IAEA,QAAQ,CACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
interface TrapFocusParams {
|
|
3
|
+
beforeElementRef: RefObject<HTMLElement>;
|
|
4
|
+
trapFocusRef: RefObject<HTMLElement>;
|
|
5
|
+
afterElementRef: RefObject<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
declare const useTrapFocus: ({ trapFocusRef, beforeElementRef, afterElementRef, }: TrapFocusParams) => void;
|
|
8
|
+
export default useTrapFocus;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { tabbable } from 'tabbable';
|
|
3
|
+
/*
|
|
4
|
+
* Element that will maintain the focus inside trapFocusRef, focus the first element,
|
|
5
|
+
* and focus back on the element that was in focus when useTrapFocus was triggered.
|
|
6
|
+
*
|
|
7
|
+
* Inspired by Reakit useTrapFocus https://github.com/reakit/reakit/blob/a211d94da9f3b683182568a56479b91afb1b85ae/packages/reakit/src/Dialog/__utils/useFocusTrap.ts
|
|
8
|
+
*/
|
|
9
|
+
const useTrapFocus = ({ trapFocusRef, beforeElementRef, afterElementRef, }) => {
|
|
10
|
+
const tabbableNodesRef = useRef();
|
|
11
|
+
const nodeToRestoreRef = useRef(document.hasFocus() ? document.activeElement : null);
|
|
12
|
+
// Focus back on the element that was focused when useTrapFocus is triggered.
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const nodeToRestore = nodeToRestoreRef.current;
|
|
15
|
+
return () => {
|
|
16
|
+
nodeToRestore?.focus();
|
|
17
|
+
};
|
|
18
|
+
}, [nodeToRestoreRef]);
|
|
19
|
+
// Set focus on first tabbable element
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (!trapFocusRef.current) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (!tabbableNodesRef.current) {
|
|
25
|
+
tabbableNodesRef.current = tabbable(trapFocusRef.current);
|
|
26
|
+
}
|
|
27
|
+
const [firstTabbable] = tabbableNodesRef.current;
|
|
28
|
+
if (!firstTabbable) {
|
|
29
|
+
trapFocusRef.current.focus();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
firstTabbable.focus();
|
|
33
|
+
}, [trapFocusRef]);
|
|
34
|
+
// Handle loop focus. Set keydown and focusin event listeners
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (!trapFocusRef.current ||
|
|
37
|
+
!beforeElementRef.current ||
|
|
38
|
+
!afterElementRef.current) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const beforeElement = beforeElementRef.current;
|
|
42
|
+
const afterElement = afterElementRef.current;
|
|
43
|
+
const trapFocus = trapFocusRef.current;
|
|
44
|
+
const handleLoopFocus = (nativeEvent) => {
|
|
45
|
+
if (!document.hasFocus()) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
tabbableNodesRef.current = tabbable(trapFocusRef.current);
|
|
49
|
+
if (!tabbableNodesRef.current.length) {
|
|
50
|
+
trapFocus.focus();
|
|
51
|
+
}
|
|
52
|
+
/*
|
|
53
|
+
* Handle loop focus from beforeElementRef. This node can only be focused if the user press shift tab.
|
|
54
|
+
* It will focus the last element of the trapFocusRef.
|
|
55
|
+
*/
|
|
56
|
+
if (nativeEvent.target === beforeElement) {
|
|
57
|
+
tabbableNodesRef.current[tabbableNodesRef.current.length - 1]?.focus();
|
|
58
|
+
}
|
|
59
|
+
/*
|
|
60
|
+
* Handle loop focus from afterElementRef. This node can only be focused if the user press tab.
|
|
61
|
+
* It will focus the first element of the trapFocusRef.
|
|
62
|
+
*/
|
|
63
|
+
if (nativeEvent.target === afterElement) {
|
|
64
|
+
tabbableNodesRef.current[0]?.focus();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
beforeElement?.addEventListener('focusin', handleLoopFocus);
|
|
68
|
+
afterElement?.addEventListener('focusin', handleLoopFocus);
|
|
69
|
+
return () => {
|
|
70
|
+
beforeElement?.removeEventListener('focusin', handleLoopFocus);
|
|
71
|
+
afterElement?.removeEventListener('focusin', handleLoopFocus);
|
|
72
|
+
};
|
|
73
|
+
}, [tabbableNodesRef, afterElementRef, beforeElementRef, trapFocusRef]);
|
|
74
|
+
};
|
|
75
|
+
export default useTrapFocus;
|
|
76
|
+
//# sourceMappingURL=useTrapFocus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTrapFocus.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/useTrapFocus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAQnC;;;;;GAKG;AACH,MAAM,YAAY,GAAG,CAAC,EACpB,YAAY,EACZ,gBAAgB,EAChB,eAAe,GACC,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,MAAM,EAAsB,CAAA;IACrD,MAAM,gBAAgB,GAAG,MAAM,CAC7B,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAE,QAAQ,CAAC,aAA6B,CAAC,CAAC,CAAC,IAAI,CACrE,CAAA;IAED,6EAA6E;IAC7E,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAA;QAE9C,OAAO,GAAG,EAAE;YACV,aAAa,EAAE,KAAK,EAAE,CAAA;QACxB,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAEtB,sCAAsC;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;YACzB,OAAM;SACP;QAED,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE;YAC7B,gBAAgB,CAAC,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;SAC1D;QAED,MAAM,CAAC,aAAa,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAA;QAEhD,IAAI,CAAC,aAAa,EAAE;YAClB,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAA;YAE5B,OAAM;SACP;QAED,aAAa,CAAC,KAAK,EAAE,CAAA;IACvB,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;IAElB,6DAA6D;IAC7D,SAAS,CAAC,GAAG,EAAE;QACb,IACE,CAAC,YAAY,CAAC,OAAO;YACrB,CAAC,gBAAgB,CAAC,OAAO;YACzB,CAAC,eAAe,CAAC,OAAO,EACxB;YACA,OAAM;SACP;QAED,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAA;QAC9C,MAAM,YAAY,GAAG,eAAe,CAAC,OAAO,CAAA;QAC5C,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAA;QAEtC,MAAM,eAAe,GAAG,CAAC,WAAuB,EAAE,EAAE;YAClD,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE;gBACxB,OAAM;aACP;YAED,gBAAgB,CAAC,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,OAAQ,CAAC,CAAA;YAE1D,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE;gBACpC,SAAS,CAAC,KAAK,EAAE,CAAA;aAClB;YAED;;;eAGG;YACH,IAAI,WAAW,CAAC,MAAM,KAAK,aAAa,EAAE;gBACxC,gBAAgB,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;aACvE;YAED;;;eAGG;YACH,IAAI,WAAW,CAAC,MAAM,KAAK,YAAY,EAAE;gBACvC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;aACrC;QACH,CAAC,CAAA;QAED,aAAa,EAAE,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAC3D,YAAY,EAAE,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAE1D,OAAO,GAAG,EAAE;YACV,aAAa,EAAE,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;YAC9D,YAAY,EAAE,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAC/D,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC,CAAA;AACzE,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface OrderSummaryProps 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
|
+
* Label for the subtotal value of the order. Will only show if subtotalValue is provided.
|
|
11
|
+
*/
|
|
12
|
+
subtotalLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Subtotal value of the order. If provided, subtotal label and value will be shown.
|
|
15
|
+
*/
|
|
16
|
+
subtotalValue?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Label for the discount value for the order. Will only show if discountValue is provided.
|
|
19
|
+
*/
|
|
20
|
+
discountLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Discount value for the order. If provided, discount label and value will be shown.
|
|
23
|
+
*/
|
|
24
|
+
discountValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Label for the total value of the order.
|
|
27
|
+
*/
|
|
28
|
+
totalLabel?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Total value of the order.
|
|
31
|
+
*/
|
|
32
|
+
totalValue?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLUListElement>>;
|
|
35
|
+
export default OrderSummary;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { List } from '@faststore/components';
|
|
3
|
+
const OrderSummary = forwardRef(function OrderSummary({ testId = 'store-order-summary', subtotalLabel, subtotalValue, discountLabel, discountValue, totalLabel, totalValue, ...otherProps }, ref) {
|
|
4
|
+
return (React.createElement(List, { ref: ref, "data-fs-order-summary": true, "data-testid": testId, ...otherProps },
|
|
5
|
+
subtotalValue ? (React.createElement("li", { "data-fs-order-summary-subtotal": true },
|
|
6
|
+
React.createElement("span", { "data-fs-order-summary-subtotal-label": true, "data-testid": `${testId}-subtotal-label` }, subtotalLabel),
|
|
7
|
+
React.createElement("span", { "data-fs-order-summary-subtotal-value": true, "data-testid": `${testId}-subtotal-value` }, subtotalValue))) : null,
|
|
8
|
+
discountValue ? (React.createElement("li", { "data-fs-order-summary-discount": true },
|
|
9
|
+
React.createElement("span", { "data-fs-order-summary-discount-label": true, "data-testid": `${testId}-discount-label` }, discountLabel),
|
|
10
|
+
React.createElement("span", { "data-fs-order-summary-discount-value": true, "data-testid": `${testId}-discount-value` }, discountValue))) : null,
|
|
11
|
+
React.createElement("li", { "data-fs-order-summary-total": true },
|
|
12
|
+
React.createElement("span", { "data-fs-order-summary-total-label": true, "data-testid": `${testId}-total-label` }, totalLabel),
|
|
13
|
+
React.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue))));
|
|
14
|
+
});
|
|
15
|
+
export default OrderSummary;
|
|
16
|
+
//# sourceMappingURL=OrderSummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderSummary.js","sourceRoot":"","sources":["../../../../src/components/molecules/OrderSummary/OrderSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAkC5C,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,MAAM,GAAG,qBAAqB,EAC9B,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,UAAU,EACV,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,gDAEK,MAAM,KACf,UAAU;QAEb,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACP,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACR;YACE,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN;YACP,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN,CACJ,CACA,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/OrderSummary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ReactNode, AriaAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface PaymentMethodsProps {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
|
+
* testing-library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Title of the payment methods section (e.g.: "Payment methods",
|
|
11
|
+
* "Accepted Cards").
|
|
12
|
+
*/
|
|
13
|
+
title?: ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Defines a string value that labels the current element when
|
|
16
|
+
* title is not used.
|
|
17
|
+
*/
|
|
18
|
+
'aria-label'?: AriaAttributes['aria-label'];
|
|
19
|
+
/**
|
|
20
|
+
* Children will receive the flags to be displayed in the payment
|
|
21
|
+
* methods section (e.g.:, visa, mastercard, etc).
|
|
22
|
+
*/
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
}
|
|
25
|
+
declare const PaymentMethods: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
export default PaymentMethods;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const PaymentMethods = forwardRef(function PaymentMethods({ testId = 'store-payment-methods', title, 'aria-label': ariaLabel = 'Payment Methods', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-fs-payment-methods": true, "data-testid": testId, ...otherProps },
|
|
4
|
+
!!title && React.createElement("div", null, title),
|
|
5
|
+
React.createElement("div", { "data-payment-methods-flags": true, "aria-label": title ? undefined : ariaLabel }, children)));
|
|
6
|
+
});
|
|
7
|
+
export default PaymentMethods;
|
|
8
|
+
//# sourceMappingURL=PaymentMethods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PaymentMethods.js","sourceRoot":"","sources":["../../../../src/components/molecules/PaymentMethods/PaymentMethods.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyBzC,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EACE,MAAM,GAAG,uBAAuB,EAChC,KAAK,EACL,YAAY,EAAE,SAAS,GAAG,iBAAiB,EAC3C,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,kDAEK,MAAM,KACf,UAAU;QAEb,CAAC,CAAC,KAAK,IAAI,iCAAM,KAAK,CAAO;QAC9B,+EAEc,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,IAExC,QAAQ,CACL,CACF,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/PaymentMethods/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { AriaAttributes } from 'react';
|
|
3
|
+
import type { PriceProps } from '@faststore/components';
|
|
4
|
+
import type { SliderProps } from '../../atoms/Slider';
|
|
5
|
+
export type PriceRangeProps = SliderProps & {
|
|
6
|
+
/**
|
|
7
|
+
* The current use case variant for prices.
|
|
8
|
+
*/
|
|
9
|
+
variant?: PriceProps['variant'];
|
|
10
|
+
/**
|
|
11
|
+
* Formatter function that transforms the raw price value and render the result.
|
|
12
|
+
*/
|
|
13
|
+
formatter: PriceProps['formatter'];
|
|
14
|
+
/**
|
|
15
|
+
* Returns the value of element's class content attribute.
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Defines a string value that labels the current element.
|
|
20
|
+
*/
|
|
21
|
+
'aria-label'?: AriaAttributes['aria-label'];
|
|
22
|
+
};
|
|
23
|
+
type PriceRangeRefType = {
|
|
24
|
+
setPriceRangeValues: (values: {
|
|
25
|
+
min: number;
|
|
26
|
+
max: number;
|
|
27
|
+
}) => void;
|
|
28
|
+
};
|
|
29
|
+
declare const PriceRange: React.ForwardRefExoticComponent<SliderProps & {
|
|
30
|
+
/**
|
|
31
|
+
* The current use case variant for prices.
|
|
32
|
+
*/
|
|
33
|
+
variant?: PriceProps['variant'];
|
|
34
|
+
/**
|
|
35
|
+
* Formatter function that transforms the raw price value and render the result.
|
|
36
|
+
*/
|
|
37
|
+
formatter: PriceProps['formatter'];
|
|
38
|
+
/**
|
|
39
|
+
* Returns the value of element's class content attribute.
|
|
40
|
+
*/
|
|
41
|
+
className?: string | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Defines a string value that labels the current element.
|
|
44
|
+
*/
|
|
45
|
+
'aria-label'?: AriaAttributes['aria-label'];
|
|
46
|
+
} & React.RefAttributes<PriceRangeRefType | undefined>>;
|
|
47
|
+
export default PriceRange;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React, { useRef, useImperativeHandle, forwardRef } from 'react';
|
|
2
|
+
import { Price } from '@faststore/components';
|
|
3
|
+
import Slider from '../../atoms/Slider';
|
|
4
|
+
const PriceRange = forwardRef(function PriceRange({ className, formatter, max, min, step, onChange, onEnd, testId = 'store-price-range', variant, 'aria-label': ariaLabel, }, ref) {
|
|
5
|
+
const sliderRef = useRef();
|
|
6
|
+
useImperativeHandle(ref, () => ({
|
|
7
|
+
setPriceRangeValues: (values) => {
|
|
8
|
+
onChange?.(values);
|
|
9
|
+
sliderRef.current?.setSliderValues(values);
|
|
10
|
+
},
|
|
11
|
+
}));
|
|
12
|
+
return (React.createElement("div", { "data-fs-price-range": true, "data-testid": testId, className: className },
|
|
13
|
+
React.createElement(Slider, { ref: sliderRef, min: min, max: max, step: step, onEnd: onEnd, "aria-label": ariaLabel, onChange: (value) => onChange?.(value), minValueLabelComponent: (minValue) => {
|
|
14
|
+
const minPercent = (minValue / max.absolute) * 100;
|
|
15
|
+
return (React.createElement(Price, { value: minValue, variant: variant, formatter: formatter, "data-price-range-value-label": "min", style: {
|
|
16
|
+
position: 'absolute',
|
|
17
|
+
left: `calc(${minPercent}% + (${8 - minPercent * 0.2}px))`,
|
|
18
|
+
} }));
|
|
19
|
+
}, maxValueLabelComponent: (maxValue) => {
|
|
20
|
+
const maxPercent = (maxValue / max.absolute) * 100;
|
|
21
|
+
return (React.createElement(Price, { formatter: formatter, variant: variant, value: maxValue, "data-price-range-value-label": "max", style: {
|
|
22
|
+
position: 'absolute',
|
|
23
|
+
left: `calc(${maxPercent}% + (${8 - maxPercent * 0.2}px))`,
|
|
24
|
+
} }));
|
|
25
|
+
} })));
|
|
26
|
+
});
|
|
27
|
+
export default PriceRange;
|
|
28
|
+
//# sourceMappingURL=PriceRange.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PriceRange.js","sourceRoot":"","sources":["../../../../src/components/molecules/PriceRange/PriceRange.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGtE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAG7C,OAAO,MAAM,MAAM,oBAAoB,CAAA;AA0BvC,MAAM,UAAU,GAAG,UAAU,CAC3B,SAAS,UAAU,CACjB,EACE,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,GAAG,mBAAmB,EAC5B,OAAO,EACP,YAAY,EAAE,SAAS,GACxB,EACD,GAAG;IAEH,MAAM,SAAS,GAAG,MAAM,EAEpB,CAAA;IAEJ,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,mBAAmB,EAAE,CAAC,MAAoC,EAAE,EAAE;YAC5D,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAA;YAClB,SAAS,CAAC,OAAO,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;QAC5C,CAAC;KACF,CAAC,CAAC,CAAA;IAEH,OAAO,CACL,yEAAsC,MAAM,EAAE,SAAS,EAAE,SAAS;QAChE,oBAAC,MAAM,IACL,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,gBACA,SAAS,EACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EACtC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACnC,MAAM,UAAU,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAA;gBAElD,OAAO,CACL,oBAAC,KAAK,IACJ,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,kCACS,KAAK,EAClC,KAAK,EAAE;wBACL,QAAQ,EAAE,UAAU;wBACpB,IAAI,EAAE,QAAQ,UAAU,QAAQ,CAAC,GAAG,UAAU,GAAG,GAAG,MAAM;qBAC3D,GACD,CACH,CAAA;YACH,CAAC,EACD,sBAAsB,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACnC,MAAM,UAAU,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAA;gBAElD,OAAO,CACL,oBAAC,KAAK,IACJ,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,QAAQ,kCACc,KAAK,EAClC,KAAK,EAAE;wBACL,QAAQ,EAAE,UAAU;wBACpB,IAAI,EAAE,QAAQ,UAAU,QAAQ,CAAC,GAAG,UAAU,GAAG,GAAG,MAAM;qBAC3D,GACD,CACH,CAAA;YACH,CAAC,GACD,CACE,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/PriceRange/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface ProductCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
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 ProductCard: React.ForwardRefExoticComponent<ProductCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default ProductCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductCard = forwardRef(function Card({ testId = 'store-product-card', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("article", { ref: ref, "data-fs-product-card": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductCard;
|
|
6
|
+
//# sourceMappingURL=ProductCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,WAAW,GAAG,UAAU,CAAmC,SAAS,IAAI,CAC5E,EAAE,MAAM,GAAG,oBAAoB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC1D,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,+CAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface ProductCardActionsProps 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 ProductCardActions: React.ForwardRefExoticComponent<ProductCardActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default ProductCardActions;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductCardActions = forwardRef(function CardActions({ testId = 'store-product-card-actions', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-product-card-actions": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductCardActions;
|
|
6
|
+
//# sourceMappingURL=ProductCardActions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardActions.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,kBAAkB,GAAG,UAAU,CACnC,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,4BAA4B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClE,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,oDAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface ProductCardContentProps extends HTMLAttributes<HTMLElement> {
|
|
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 ProductCardContent: React.ForwardRefExoticComponent<ProductCardContentProps & React.RefAttributes<HTMLElement>>;
|
|
10
|
+
export default ProductCardContent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductCardContent = forwardRef(function CardContent({ testId = 'store-product-card-content', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("section", { ref: ref, "data-product-card-content": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductCardContent;
|
|
6
|
+
//# sourceMappingURL=ProductCardContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCardContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,kBAAkB,GAAG,UAAU,CACnC,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,4BAA4B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClE,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,oDAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
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';
|
|
@@ -0,0 +1,5 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|