@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,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These were heavily inspired by "Forwarding refs for a polymorphic React
|
|
3
|
-
* component in TypeScript", written by Ben Ilegbodu.
|
|
4
|
-
*
|
|
5
|
-
* Article link: https://www.benmvp.com/blog/forwarding-refs-polymorphic-react-component-typescript/
|
|
6
|
-
*/
|
|
7
|
-
import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType } from 'react';
|
|
8
|
-
type AsProp<C extends ElementType> = {
|
|
9
|
-
as?: C;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Allows for extending a set of props (`ExtendedProps`) by an overriding set of props
|
|
13
|
-
* (`OverrideProps`), ensuring that any duplicates are overridden by the overriding
|
|
14
|
-
* set of props.
|
|
15
|
-
*/
|
|
16
|
-
type ExtendableProps<ExtendedProps = Record<string, never>, OverrideProps = Record<string, never>> = OverrideProps & Omit<ExtendedProps, keyof OverrideProps>;
|
|
17
|
-
/**
|
|
18
|
-
* Allows for inheriting the props from the specified element type so that
|
|
19
|
-
* props like children, className & style work, as well as element-specific
|
|
20
|
-
* attributes like aria roles. The component (`C`) must be passed in.
|
|
21
|
-
*/
|
|
22
|
-
type InheritableElementProps<C extends ElementType, Props = Record<string, never>> = ExtendableProps<ComponentPropsWithoutRef<C>, Props>;
|
|
23
|
-
export type PolymorphicComponentProps<C extends ElementType, Props = Record<string, never>> = InheritableElementProps<C, Props & AsProp<C>>;
|
|
24
|
-
export type PolymorphicComponentPropsWithRef<C extends ElementType, P = Record<string, never>> = PolymorphicComponentProps<C, P> & {
|
|
25
|
-
ref?: ComponentPropsWithRef<C>['ref'];
|
|
26
|
-
};
|
|
27
|
-
export type PolymorphicRef<C extends ElementType> = PolymorphicComponentPropsWithRef<C>['ref'];
|
|
28
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* These were heavily inspired by "Forwarding refs for a polymorphic React
|
|
3
|
-
* component in TypeScript", written by Ben Ilegbodu.
|
|
4
|
-
*
|
|
5
|
-
* Article link: https://www.benmvp.com/blog/forwarding-refs-polymorphic-react-component-typescript/
|
|
6
|
-
*/
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=PolymorphicGenerics.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PolymorphicGenerics.js","sourceRoot":"","sources":["../../src/typings/PolymorphicGenerics.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
package/dist/typings/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { PolymorphicComponentProps, PolymorphicComponentPropsWithRef, PolymorphicRef, } from './PolymorphicGenerics';
|
package/dist/typings/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typings/index.ts"],"names":[],"mappings":""}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { AxeResults } from 'axe-core';
|
|
2
|
-
export declare const toHaveNoIncompletes: {
|
|
3
|
-
toHaveNoIncompletes: (results: AxeResults) => {
|
|
4
|
-
actual: import("axe-core").Result[];
|
|
5
|
-
message: () => string;
|
|
6
|
-
pass: boolean;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
declare global {
|
|
10
|
-
namespace jest {
|
|
11
|
-
interface Matchers<R> {
|
|
12
|
-
toHaveNoIncompletes(): R;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
interface Node {
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { printReceived, matcherHint } from 'jest-matcher-utils';
|
|
2
|
-
import chalk from 'chalk';
|
|
3
|
-
// This code is based on jest-axe library.
|
|
4
|
-
// https://github.com/nickcolley/jest-axe
|
|
5
|
-
export const toHaveNoIncompletes = {
|
|
6
|
-
toHaveNoIncompletes: (results) => {
|
|
7
|
-
if (typeof results.incomplete === 'undefined') {
|
|
8
|
-
throw new Error('No incompletes found in aXe results object');
|
|
9
|
-
}
|
|
10
|
-
const reporter = (incompletes) => {
|
|
11
|
-
if (incompletes.length === 0) {
|
|
12
|
-
return [];
|
|
13
|
-
}
|
|
14
|
-
const lineBreak = '\n\n';
|
|
15
|
-
const horizontalLine = '\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500';
|
|
16
|
-
return incompletes
|
|
17
|
-
.map((incomplete) => {
|
|
18
|
-
const errorBody = incomplete.nodes
|
|
19
|
-
.map((node) => {
|
|
20
|
-
const selector = node.target.join(', ');
|
|
21
|
-
const expectedText = `Expected the HTML found at $('${selector}') to have no incompletes:${lineBreak}`;
|
|
22
|
-
return `${expectedText + chalk.grey(node.html) + lineBreak}Received:${lineBreak}${printReceived(`${incomplete.help} (${incomplete.id})`)}${lineBreak}${chalk.yellow(node.failureSummary)}${lineBreak}${incomplete.helpUrl
|
|
23
|
-
? `You can find more information on this issue here: \n${chalk.blue(incomplete.helpUrl)}`
|
|
24
|
-
: ''}`;
|
|
25
|
-
})
|
|
26
|
-
.join(lineBreak);
|
|
27
|
-
return errorBody;
|
|
28
|
-
})
|
|
29
|
-
.join(lineBreak + horizontalLine + lineBreak);
|
|
30
|
-
};
|
|
31
|
-
const { incomplete: incompletes } = results;
|
|
32
|
-
const formatedIncompletes = reporter(incompletes);
|
|
33
|
-
const pass = formatedIncompletes.length === 0;
|
|
34
|
-
const message = () => {
|
|
35
|
-
if (pass) {
|
|
36
|
-
return '';
|
|
37
|
-
}
|
|
38
|
-
return (`${matcherHint('.toHaveNoIncompletes')}\n\n` + `${formatedIncompletes}`);
|
|
39
|
-
};
|
|
40
|
-
return { actual: incompletes, message, pass };
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=toHaveNoIncomplete.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"toHaveNoIncomplete.js","sourceRoot":"","sources":["../../src/utils/toHaveNoIncomplete.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,0CAA0C;AAC1C,yCAAyC;AACzC,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,mBAAmB,EAAE,CAAC,OAAmB,EAAE,EAAE;QAC3C,IAAI,OAAO,OAAO,CAAC,UAAU,KAAK,WAAW,EAAE;YAC7C,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAA;SAC9D;QAED,MAAM,QAAQ,GAAG,CAAC,WAAqC,EAAE,EAAE;YACzD,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;gBAC5B,OAAO,EAAE,CAAA;aACV;YAED,MAAM,SAAS,GAAG,MAAM,CAAA;YACxB,MAAM,cAAc,GAAG,kDAAkD,CAAA;YAEzE,OAAO,WAAW;iBACf,GAAG,CAAC,CAAC,UAAU,EAAE,EAAE;gBAClB,MAAM,SAAS,GAAG,UAAU,CAAC,KAAK;qBAC/B,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACZ,MAAM,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;oBACvC,MAAM,YAAY,GAAG,iCAAiC,QAAQ,6BAA6B,SAAS,EAAE,CAAA;oBAEtG,OAAO,GACL,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,SACzC,YAAY,SAAS,GAAG,aAAa,CACnC,GAAG,UAAU,CAAC,IAAI,KAAK,UAAU,CAAC,EAAE,GAAG,CACxC,GAAG,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,GAAG,SAAS,GAC3D,UAAU,CAAC,OAAO;wBAChB,CAAC,CAAC,uDAAuD,KAAK,CAAC,IAAI,CAC/D,UAAU,CAAC,OAAO,CACnB,EAAE;wBACL,CAAC,CAAC,EACN,EAAE,CAAA;gBACJ,CAAC,CAAC;qBACD,IAAI,CAAC,SAAS,CAAC,CAAA;gBAElB,OAAO,SAAS,CAAA;YAClB,CAAC,CAAC;iBACD,IAAI,CAAC,SAAS,GAAG,cAAc,GAAG,SAAS,CAAC,CAAA;QACjD,CAAC,CAAA;QAED,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,OAAO,CAAA;QAC3C,MAAM,mBAAmB,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAA;QACjD,MAAM,IAAI,GAAG,mBAAmB,CAAC,MAAM,KAAK,CAAC,CAAA;QAE7C,MAAM,OAAO,GAAG,GAAG,EAAE;YACnB,IAAI,IAAI,EAAE;gBACR,OAAO,EAAE,CAAA;aACV;YAED,OAAO,CACL,GAAG,WAAW,CAAC,sBAAsB,CAAC,MAAM,GAAG,GAAG,mBAAmB,EAAE,CACxE,CAAA;QACH,CAAC,CAAA;QAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA;IAC/C,CAAC;CACF,CAAA"}
|