@faststore/ui 2.2.0-alpha.9 → 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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/atoms/Select/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface SkeletonProps 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 Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default Skeleton;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const Skeleton = forwardRef(function Skeleton({ testId = 'store-skeleton', ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("div", Object.assign({ ref: ref, "data-fs-skeleton": true, "data-testid": testId }, otherProps)));
|
|
4
|
+
});
|
|
5
|
+
export default Skeleton;
|
|
6
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/atoms/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,QAAQ,GAAG,UAAU,CAAgC,SAAS,QAAQ,CAC1E,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,UAAU,EAAE,EAC5C,GAAG;IAEH,OAAO,CACL,2CAAK,GAAG,EAAE,GAAG,2CAAgC,MAAM,IAAM,UAAU,EAAI,CACxE,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/atoms/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code is inspired by the work of [sandra-lewis](https://codesandbox.io/u/sandra-lewis)
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
6
|
+
interface Range {
|
|
7
|
+
absolute: number;
|
|
8
|
+
selected: number;
|
|
9
|
+
}
|
|
10
|
+
export declare type SliderProps = {
|
|
11
|
+
/**
|
|
12
|
+
* The minimum value of the slider.
|
|
13
|
+
*/
|
|
14
|
+
min: Range;
|
|
15
|
+
/**
|
|
16
|
+
* The maximum value of the slider.
|
|
17
|
+
*/
|
|
18
|
+
max: Range;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the number interval to be used in the inputs.
|
|
21
|
+
*/
|
|
22
|
+
step?: number;
|
|
23
|
+
/**
|
|
24
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
25
|
+
*
|
|
26
|
+
* @default 'store-slider'
|
|
27
|
+
*/
|
|
28
|
+
testId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Callback that fires when the slider value changes.
|
|
31
|
+
*/
|
|
32
|
+
onChange?: (value: {
|
|
33
|
+
min: number;
|
|
34
|
+
max: number;
|
|
35
|
+
}) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Callback that fires when the slider value ends changing.
|
|
38
|
+
*/
|
|
39
|
+
onEnd?: (value: {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
}) => void;
|
|
43
|
+
/**
|
|
44
|
+
* A function used to set a human-readable value text based on the slider's current value.
|
|
45
|
+
*/
|
|
46
|
+
getAriaValueText?(value: number, thumb?: 'min' | 'max'): string;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the value of element's class content attribute.
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Component that renders min value label above the left thumb.
|
|
53
|
+
*/
|
|
54
|
+
minValueLabelComponent?: (minValue: number) => ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Component that renders max value label above the right thumb.
|
|
57
|
+
*/
|
|
58
|
+
maxValueLabelComponent?: (maxValue: number) => ReactNode;
|
|
59
|
+
};
|
|
60
|
+
declare type SliderRefType = {
|
|
61
|
+
setSliderValues: (values: {
|
|
62
|
+
min: number;
|
|
63
|
+
max: number;
|
|
64
|
+
}) => void;
|
|
65
|
+
};
|
|
66
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<SliderRefType | undefined>>;
|
|
67
|
+
export default Slider;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code is inspired by the work of [sandra-lewis](https://codesandbox.io/u/sandra-lewis)
|
|
3
|
+
*/
|
|
4
|
+
import React, { useState, useMemo, useImperativeHandle, forwardRef, } from 'react';
|
|
5
|
+
const percent = (value, min, max) => Math.round(((value - min) / (max - min)) * 100);
|
|
6
|
+
const Slider = forwardRef(function Slider({ min, max, onChange, onEnd, testId = 'store-slider', getAriaValueText, className, step, minValueLabelComponent, maxValueLabelComponent, }, ref) {
|
|
7
|
+
const widthPercent = useMemo(() => (max.absolute - min.absolute) / 100, [max.absolute, min.absolute]);
|
|
8
|
+
const [minPercent, setMinPercent] = useState(() => percent(min.selected, min.absolute, max.absolute));
|
|
9
|
+
const [maxPercent, setMaxPercent] = useState(() => percent(max.selected, min.absolute, max.absolute));
|
|
10
|
+
const [minVal, setMinVal] = useState(() => Math.round(min.absolute + minPercent * widthPercent));
|
|
11
|
+
const [maxVal, setMaxVal] = useState(() => Math.round(min.absolute + maxPercent * widthPercent));
|
|
12
|
+
useImperativeHandle(ref, () => ({
|
|
13
|
+
setSliderValues: (values) => {
|
|
14
|
+
const sliderMinValue = Math.min(Number(values.min), maxVal);
|
|
15
|
+
setMinVal(sliderMinValue);
|
|
16
|
+
setMinPercent(percent(sliderMinValue, min.absolute, max.absolute));
|
|
17
|
+
if (values.max > max.absolute) {
|
|
18
|
+
setMaxVal(max.absolute);
|
|
19
|
+
setMaxPercent(percent(max.absolute, min.absolute, max.absolute));
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const sliderMaxValue = Math.max(Number(values.max), minVal);
|
|
23
|
+
setMaxVal(sliderMaxValue);
|
|
24
|
+
setMaxPercent(percent(sliderMaxValue, min.absolute, max.absolute));
|
|
25
|
+
},
|
|
26
|
+
}));
|
|
27
|
+
return (React.createElement("div", { "data-fs-slider": true, "data-testid": testId, className: className },
|
|
28
|
+
React.createElement("div", { "data-slider-range": true, style: {
|
|
29
|
+
left: `${minPercent}%`,
|
|
30
|
+
width: `${maxPercent - minPercent}%`,
|
|
31
|
+
} }),
|
|
32
|
+
React.createElement("input", { type: "range", min: Math.round(min.absolute), max: Math.round(max.absolute), value: minVal, step: step, onMouseUp: () => onEnd?.({ min: minVal, max: maxVal }), onTouchEnd: () => onEnd?.({ min: minVal, max: maxVal }), onChange: (event) => {
|
|
33
|
+
const minValue = Math.min(Number(event.target.value), maxVal);
|
|
34
|
+
setMinVal(minValue);
|
|
35
|
+
setMinPercent(percent(minValue, min.absolute, max.absolute));
|
|
36
|
+
onChange?.({ min: minValue, max: maxVal });
|
|
37
|
+
}, "data-slider-thumb": "left", "aria-valuemin": min.absolute, "aria-valuemax": max.absolute, "aria-valuenow": minVal, "aria-label": String(minVal), "aria-labelledby": getAriaValueText?.(minVal, 'min') }),
|
|
38
|
+
minValueLabelComponent && minValueLabelComponent(minVal),
|
|
39
|
+
React.createElement("input", { type: "range", min: Math.round(min.absolute), max: Math.round(max.absolute), value: maxVal, step: step, onMouseUp: () => onEnd?.({ min: minVal, max: maxVal }), onTouchEnd: () => onEnd?.({ min: minVal, max: maxVal }), onChange: (event) => {
|
|
40
|
+
const maxValue = Math.max(Number(event.target.value), minVal);
|
|
41
|
+
setMaxVal(maxValue);
|
|
42
|
+
setMaxPercent(percent(maxValue, min.absolute, max.absolute));
|
|
43
|
+
onChange?.({ min: minVal, max: maxValue });
|
|
44
|
+
}, "data-slider-thumb": "right", "aria-valuemin": min.absolute, "aria-valuemax": max.absolute, "aria-valuenow": maxVal, "aria-label": String(maxVal), "aria-labelledby": getAriaValueText?.(maxVal, 'max') }),
|
|
45
|
+
maxValueLabelComponent && maxValueLabelComponent(maxVal)));
|
|
46
|
+
});
|
|
47
|
+
export default Slider;
|
|
48
|
+
//# sourceMappingURL=Slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/atoms/Slider/Slider.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,EACZ,QAAQ,EACR,OAAO,EACP,mBAAmB,EACnB,UAAU,GACX,MAAM,OAAO,CAAA;AAyDd,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAE,EAAE,CAC1D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;AAEjD,MAAM,MAAM,GAAG,UAAU,CACvB,SAAS,MAAM,CACb,EACE,GAAG,EACH,GAAG,EACH,QAAQ,EACR,KAAK,EACL,MAAM,GAAG,cAAc,EACvB,gBAAgB,EAChB,SAAS,EACT,IAAI,EACJ,sBAAsB,EAC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ACnB,aAAa,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAA;gBAC5D,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAA;YAC5C,CAAC,uBACiB,OAAO,mBACV,GAAG,CAAC,QAAQ,mBACZ,GAAG,CAAC,QAAQ,mBACZ,MAAM,gBACT,MAAM,CAAC,MAAM,CAAC,qBACT,gBAAgB,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,GAClD;QACD,sBAAsB,IAAI,sBAAsB,CAAC,MAAM,CAAC,CACrD,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/atoms/Slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare type SpinnerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
5
|
+
*/
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default Spinner;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const Spinner = forwardRef(function Spinner({ children, testId = 'store-spinner', ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("span", Object.assign({ ref: ref, "data-fs-spinner": true, "data-testid": testId }, otherProps)));
|
|
4
|
+
});
|
|
5
|
+
export default Spinner;
|
|
6
|
+
//# sourceMappingURL=Spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/atoms/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,OAAO,GAAG,UAAU,CACxB,SAAS,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG;IACzE,OAAO,CACL,4CAAM,GAAG,EAAE,GAAG,0CAA+B,MAAM,IAAM,UAAU,EAAI,CACxE,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/atoms/Spinner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Current variant of the input.
|
|
6
|
+
*/
|
|
7
|
+
variant?: 'success' | 'error';
|
|
8
|
+
/**
|
|
9
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
10
|
+
*/
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
14
|
+
export default TextArea;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const TextArea = forwardRef(function TextArea({ variant, testId = 'store-textarea', ...otherProps }, ref) {
|
|
3
|
+
const variants = {
|
|
4
|
+
'data-success': variant === 'success' || undefined,
|
|
5
|
+
'data-error': variant === 'error' || undefined,
|
|
6
|
+
};
|
|
7
|
+
return (React.createElement("textarea", Object.assign({ ref: ref, "data-fs-textarea": true, "data-testid": testId }, variants, otherProps)));
|
|
8
|
+
});
|
|
9
|
+
export default TextArea;
|
|
10
|
+
//# sourceMappingURL=TextArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../src/atoms/TextArea/TextArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAczC,MAAM,QAAQ,GAAG,UAAU,CACzB,SAAS,QAAQ,CACf,EAAE,OAAO,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,UAAU,EAAE,EACrD,GAAG;IAEH,MAAM,QAAQ,GAAG;QACf,cAAc,EAAE,OAAO,KAAK,SAAS,IAAI,SAAS;QAClD,YAAY,EAAE,OAAO,KAAK,OAAO,IAAI,SAAS;KAC/C,CAAA;IAED,OAAO,CACL,gDACE,GAAG,EAAE,GAAG,2CAEK,MAAM,IACf,QAAQ,EACR,UAAU,EACd,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/atoms/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface IncentiveProps 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 Incentive: React.ForwardRefExoticComponent<IncentiveProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default Incentive;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const Incentive = forwardRef(function Incentive({ testId = 'store-incentive', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-fs-incentive": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default Incentive;
|
|
6
|
+
//# sourceMappingURL=Incentive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Incentive.js","sourceRoot":"","sources":["../../../../src/components/atoms/Incentive/Incentive.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,SAAS,GAAG,UAAU,CAAiC,SAAS,SAAS,CAC7E,EAAE,MAAM,GAAG,iBAAiB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACvD,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,4CAAiC,MAAM,KAAM,UAAU,IACjE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/Incentive/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { PopoverProps as ReachPopoverProps } from '@reach/popover';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export type PopoverProps = Omit<ReachPopoverProps, 'position' | 'targetRef'> & {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
6
|
+
*/
|
|
7
|
+
testId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Ref for the component initial position.
|
|
10
|
+
*/
|
|
11
|
+
targetRef: ReachPopoverProps['targetRef'];
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
declare const Popover: ({ targetRef, testId, children, ...otherProps }: PopoverProps) => JSX.Element;
|
|
15
|
+
export default Popover;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import ReachPopover, { positionDefault } from '@reach/popover';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
const Popover = ({ targetRef, testId = 'store-popover', children, ...otherProps }) => {
|
|
4
|
+
return (React.createElement(ReachPopover, { "data-fs-popover": true, "data-testid": testId, position: positionDefault, targetRef: targetRef, ...otherProps }, children));
|
|
5
|
+
};
|
|
6
|
+
export default Popover;
|
|
7
|
+
//# sourceMappingURL=Popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Popover.js","sourceRoot":"","sources":["../../../../src/components/atoms/Popover/Popover.tsx"],"names":[],"mappings":"AACA,OAAO,YAAY,EAAE,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAE9D,OAAO,KAAK,MAAM,OAAO,CAAA;AAczB,MAAM,OAAO,GAAG,CAAC,EACf,SAAS,EACT,MAAM,GAAG,eAAe,EACxB,QAAQ,EACR,GAAG,UAAU,EACA,EAAE,EAAE;IACjB,OAAO,CACL,oBAAC,YAAY,4CAEE,MAAM,EACnB,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,SAAS,KAChB,UAAU,IAEb,QAAQ,CACI,CAChB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/Popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface SkeletonProps 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 Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default Skeleton;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const Skeleton = forwardRef(function Skeleton({ testId = 'store-skeleton', ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-fs-skeleton": true, "data-testid": testId, ...otherProps }));
|
|
4
|
+
});
|
|
5
|
+
export default Skeleton;
|
|
6
|
+
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../../src/components/atoms/Skeleton/Skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,QAAQ,GAAG,UAAU,CAAgC,SAAS,QAAQ,CAC1E,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,UAAU,EAAE,EAC5C,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,2CAAgC,MAAM,KAAM,UAAU,GAAI,CACxE,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/Skeleton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code is inspired by the work of [sandra-lewis](https://codesandbox.io/u/sandra-lewis)
|
|
3
|
+
*/
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import type { ReactNode } from 'react';
|
|
6
|
+
interface Range {
|
|
7
|
+
absolute: number;
|
|
8
|
+
selected: number;
|
|
9
|
+
}
|
|
10
|
+
export type SliderProps = {
|
|
11
|
+
/**
|
|
12
|
+
* The minimum value of the slider.
|
|
13
|
+
*/
|
|
14
|
+
min: Range;
|
|
15
|
+
/**
|
|
16
|
+
* The maximum value of the slider.
|
|
17
|
+
*/
|
|
18
|
+
max: Range;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the number interval to be used in the inputs.
|
|
21
|
+
*/
|
|
22
|
+
step?: number;
|
|
23
|
+
/**
|
|
24
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
25
|
+
*
|
|
26
|
+
* @default 'store-slider'
|
|
27
|
+
*/
|
|
28
|
+
testId?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Callback that fires when the slider value changes.
|
|
31
|
+
*/
|
|
32
|
+
onChange?: (value: {
|
|
33
|
+
min: number;
|
|
34
|
+
max: number;
|
|
35
|
+
}) => void;
|
|
36
|
+
/**
|
|
37
|
+
* Callback that fires when the slider value ends changing.
|
|
38
|
+
*/
|
|
39
|
+
onEnd?: (value: {
|
|
40
|
+
min: number;
|
|
41
|
+
max: number;
|
|
42
|
+
}) => void;
|
|
43
|
+
/**
|
|
44
|
+
* A function used to set a human-readable value text based on the slider's current value.
|
|
45
|
+
*/
|
|
46
|
+
getAriaValueText?(value: number, thumb?: 'min' | 'max'): string;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the value of element's class content attribute.
|
|
49
|
+
*/
|
|
50
|
+
className?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Component that renders min value label above the left thumb.
|
|
53
|
+
*/
|
|
54
|
+
minValueLabelComponent?: (minValue: number) => ReactNode;
|
|
55
|
+
/**
|
|
56
|
+
* Component that renders max value label above the right thumb.
|
|
57
|
+
*/
|
|
58
|
+
maxValueLabelComponent?: (maxValue: number) => ReactNode;
|
|
59
|
+
};
|
|
60
|
+
type SliderRefType = {
|
|
61
|
+
setSliderValues: (values: {
|
|
62
|
+
min: number;
|
|
63
|
+
max: number;
|
|
64
|
+
}) => void;
|
|
65
|
+
};
|
|
66
|
+
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<SliderRefType | undefined>>;
|
|
67
|
+
export default Slider;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code is inspired by the work of [sandra-lewis](https://codesandbox.io/u/sandra-lewis)
|
|
3
|
+
*/
|
|
4
|
+
import React, { useState, useMemo, useImperativeHandle, forwardRef, } from 'react';
|
|
5
|
+
const percent = (value, min, max) => Math.round(((value - min) / (max - min)) * 100);
|
|
6
|
+
const Slider = forwardRef(function Slider({ min, max, onChange, onEnd, testId = 'store-slider', getAriaValueText, className, step, minValueLabelComponent, maxValueLabelComponent, }, ref) {
|
|
7
|
+
const widthPercent = useMemo(() => (max.absolute - min.absolute) / 100, [max.absolute, min.absolute]);
|
|
8
|
+
const [minPercent, setMinPercent] = useState(() => percent(min.selected, min.absolute, max.absolute));
|
|
9
|
+
const [maxPercent, setMaxPercent] = useState(() => percent(max.selected, min.absolute, max.absolute));
|
|
10
|
+
const [minVal, setMinVal] = useState(() => Math.round(min.absolute + minPercent * widthPercent));
|
|
11
|
+
const [maxVal, setMaxVal] = useState(() => Math.round(min.absolute + maxPercent * widthPercent));
|
|
12
|
+
useImperativeHandle(ref, () => ({
|
|
13
|
+
setSliderValues: (values) => {
|
|
14
|
+
const sliderMinValue = Math.min(Number(values.min), maxVal);
|
|
15
|
+
setMinVal(sliderMinValue);
|
|
16
|
+
setMinPercent(percent(sliderMinValue, min.absolute, max.absolute));
|
|
17
|
+
if (values.max > max.absolute) {
|
|
18
|
+
setMaxVal(max.absolute);
|
|
19
|
+
setMaxPercent(percent(max.absolute, min.absolute, max.absolute));
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const sliderMaxValue = Math.max(Number(values.max), minVal);
|
|
23
|
+
setMaxVal(sliderMaxValue);
|
|
24
|
+
setMaxPercent(percent(sliderMaxValue, min.absolute, max.absolute));
|
|
25
|
+
},
|
|
26
|
+
}));
|
|
27
|
+
return (React.createElement("div", { "data-fs-slider": true, "data-testid": testId, className: className },
|
|
28
|
+
React.createElement("div", { "data-slider-range": true, style: {
|
|
29
|
+
left: `${minPercent}%`,
|
|
30
|
+
width: `${maxPercent - minPercent}%`,
|
|
31
|
+
} }),
|
|
32
|
+
React.createElement("input", { type: "range", min: Math.round(min.absolute), max: Math.round(max.absolute), value: minVal, step: step, onMouseUp: () => onEnd?.({ min: minVal, max: maxVal }), onTouchEnd: () => onEnd?.({ min: minVal, max: maxVal }), onChange: (event) => {
|
|
33
|
+
const minValue = Math.min(Number(event.target.value), maxVal);
|
|
34
|
+
setMinVal(minValue);
|
|
35
|
+
setMinPercent(percent(minValue, min.absolute, max.absolute));
|
|
36
|
+
onChange?.({ min: minValue, max: maxVal });
|
|
37
|
+
}, "data-slider-thumb": "left", "aria-valuemin": min.absolute, "aria-valuemax": max.absolute, "aria-valuenow": minVal, "aria-label": String(minVal), "aria-labelledby": getAriaValueText?.(minVal, 'min') }),
|
|
38
|
+
minValueLabelComponent && minValueLabelComponent(minVal),
|
|
39
|
+
React.createElement("input", { type: "range", min: Math.round(min.absolute), max: Math.round(max.absolute), value: maxVal, step: step, onMouseUp: () => onEnd?.({ min: minVal, max: maxVal }), onTouchEnd: () => onEnd?.({ min: minVal, max: maxVal }), onChange: (event) => {
|
|
40
|
+
const maxValue = Math.max(Number(event.target.value), minVal);
|
|
41
|
+
setMaxVal(maxValue);
|
|
42
|
+
setMaxPercent(percent(maxValue, min.absolute, max.absolute));
|
|
43
|
+
onChange?.({ min: minVal, max: maxValue });
|
|
44
|
+
}, "data-slider-thumb": "right", "aria-valuemin": min.absolute, "aria-valuemax": max.absolute, "aria-valuenow": maxVal, "aria-label": String(maxVal), "aria-labelledby": getAriaValueText?.(maxVal, 'max') }),
|
|
45
|
+
maxValueLabelComponent && maxValueLabelComponent(maxVal)));
|
|
46
|
+
});
|
|
47
|
+
export default Slider;
|
|
48
|
+
//# sourceMappingURL=Slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../../src/components/atoms/Slider/Slider.tsx"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,EACZ,QAAQ,EACR,OAAO,EACP,mBAAmB,EACnB,UAAU,GACX,MAAM,OAAO,CAAA;AAyDd,MAAM,OAAO,GAAG,CAAC,KAAa,EAAE,GAAW,EAAE,GAAW,EAAE,EAAE,CAC1D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,CAAA;AAEjD,MAAM,MAAM,GAAG,UAAU,CACvB,SAAS,MAAM,CACb,EACE,GAAG,EACH,GAAG,EACH,QAAQ,EACR,KAAK,EACL,MAAM,GAAG,cAAc,EACvB,gBAAgB,EAChB,SAAS,EACT,IAAI,EACJ,sBAAsB,EACtB,sBAAsB,GACvB,EACD,GAAG;IAEH,MAAM,YAAY,GAAG,OAAO,CAC1B,GAAG,EAAE,CAAC,CAAC,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,EACzC,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,CAC7B,CAAA;IACD,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAChD,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,QAAQ,CAAC,CAClD,CAAA;IAED,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,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F,CAAA;AAED,eAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/Slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type SpinnerProps = {
|
|
3
|
+
/**
|
|
4
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
5
|
+
*/
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & {
|
|
9
|
+
children?: React.ReactNode;
|
|
10
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export default Spinner;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const Spinner = forwardRef(function Spinner({ children, testId = 'store-spinner', ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("span", { ref: ref, "data-fs-spinner": true, "data-testid": testId, ...otherProps }));
|
|
4
|
+
});
|
|
5
|
+
export default Spinner;
|
|
6
|
+
//# sourceMappingURL=Spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../../src/components/atoms/Spinner/Spinner.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,OAAO,GAAG,UAAU,CACxB,SAAS,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG;IACzE,OAAO,CACL,8BAAM,GAAG,EAAE,GAAG,0CAA+B,MAAM,KAAM,UAAU,GAAI,CACxE,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,OAAO,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/Spinner/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { TextareaHTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface TextAreaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'children'> {
|
|
4
|
+
/**
|
|
5
|
+
* Current variant of the input.
|
|
6
|
+
*/
|
|
7
|
+
variant?: 'success' | 'error';
|
|
8
|
+
/**
|
|
9
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
10
|
+
*/
|
|
11
|
+
testId?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const TextArea: React.ForwardRefExoticComponent<TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
14
|
+
export default TextArea;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const TextArea = forwardRef(function TextArea({ variant, testId = 'store-textarea', ...otherProps }, ref) {
|
|
3
|
+
const variants = {
|
|
4
|
+
'data-success': variant === 'success' || undefined,
|
|
5
|
+
'data-error': variant === 'error' || undefined,
|
|
6
|
+
};
|
|
7
|
+
return (React.createElement("textarea", { ref: ref, "data-fs-textarea": true, "data-testid": testId, ...variants, ...otherProps }));
|
|
8
|
+
});
|
|
9
|
+
export default TextArea;
|
|
10
|
+
//# sourceMappingURL=TextArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.js","sourceRoot":"","sources":["../../../../src/components/atoms/TextArea/TextArea.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAczC,MAAM,QAAQ,GAAG,UAAU,CACzB,SAAS,QAAQ,CACf,EAAE,OAAO,EAAE,MAAM,GAAG,gBAAgB,EAAE,GAAG,UAAU,EAAE,EACrD,GAAG;IAEH,MAAM,QAAQ,GAAG;QACf,cAAc,EAAE,OAAO,KAAK,SAAS,IAAI,SAAS;QAClD,YAAY,EAAE,OAAO,KAAK,OAAO,IAAI,SAAS;KAC/C,CAAA;IAED,OAAO,CACL,kCACE,GAAG,EAAE,GAAG,2CAEK,MAAM,KACf,QAAQ,KACR,UAAU,GACd,CACH,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/TextArea/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA"}
|