@faststore/ui 1.12.32 → 1.12.33
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/components/atoms/Incentive/Incentive.js +1 -1
- package/dist/components/atoms/Incentive/Incentive.js.map +1 -1
- package/dist/components/atoms/Popover/Popover.d.ts +1 -1
- package/dist/components/atoms/Popover/Popover.js +1 -1
- package/dist/components/atoms/Popover/Popover.js.map +1 -1
- package/dist/components/atoms/Skeleton/Skeleton.js +1 -1
- package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/atoms/Slider/Slider.d.ts +2 -2
- package/dist/components/atoms/Spinner/Spinner.d.ts +1 -1
- package/dist/components/atoms/Spinner/Spinner.js +1 -1
- package/dist/components/atoms/Spinner/Spinner.js.map +1 -1
- package/dist/components/atoms/TextArea/TextArea.js +1 -1
- package/dist/components/atoms/TextArea/TextArea.js.map +1 -1
- package/dist/components/molecules/AggregateRating/AggregateRating.d.ts +2 -2
- package/dist/components/molecules/AggregateRating/AggregateRating.js +4 -4
- package/dist/components/molecules/AggregateRating/AggregateRating.js.map +1 -1
- package/dist/components/molecules/Alert/Alert.js +1 -1
- package/dist/components/molecules/Alert/Alert.js.map +1 -1
- package/dist/components/molecules/Banner/Banner.d.ts +1 -1
- package/dist/components/molecules/Banner/Banner.js +1 -1
- package/dist/components/molecules/Banner/Banner.js.map +1 -1
- package/dist/components/molecules/Banner/BannerContent.js +1 -1
- package/dist/components/molecules/Banner/BannerContent.js.map +1 -1
- package/dist/components/molecules/Banner/BannerImage.js +1 -1
- package/dist/components/molecules/Banner/BannerImage.js.map +1 -1
- package/dist/components/molecules/Banner/BannerLink.js +1 -1
- package/dist/components/molecules/Banner/BannerLink.js.map +1 -1
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js +5 -5
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/molecules/Bullets/Bullets.js +1 -1
- package/dist/components/molecules/Bullets/Bullets.js.map +1 -1
- package/dist/components/molecules/Card/Card.js +1 -1
- package/dist/components/molecules/Card/Card.js.map +1 -1
- package/dist/components/molecules/Card/CardActions.js +1 -1
- package/dist/components/molecules/Card/CardActions.js.map +1 -1
- package/dist/components/molecules/Card/CardContent.js +1 -1
- package/dist/components/molecules/Card/CardContent.js.map +1 -1
- package/dist/components/molecules/Card/CardImage.js +1 -1
- package/dist/components/molecules/Card/CardImage.js.map +1 -1
- package/dist/components/molecules/Carousel/Carousel.js +2 -2
- package/dist/components/molecules/Carousel/Carousel.js.map +1 -1
- package/dist/components/molecules/CartItem/CartItem.js +1 -1
- package/dist/components/molecules/CartItem/CartItem.js.map +1 -1
- package/dist/components/molecules/CartItem/CartItemActions.js +1 -1
- package/dist/components/molecules/CartItem/CartItemActions.js.map +1 -1
- package/dist/components/molecules/CartItem/CartItemContent.js +1 -1
- package/dist/components/molecules/CartItem/CartItemContent.js.map +1 -1
- package/dist/components/molecules/CartItem/CartItemImage.js +1 -1
- package/dist/components/molecules/CartItem/CartItemImage.js.map +1 -1
- package/dist/components/molecules/CartItem/CartItemPrices.js +1 -1
- package/dist/components/molecules/CartItem/CartItemPrices.js.map +1 -1
- package/dist/components/molecules/CartItem/CartItemSummary.js +1 -1
- package/dist/components/molecules/CartItem/CartItemSummary.js.map +1 -1
- package/dist/components/molecules/CartItem/CartItemTitle.js +1 -1
- package/dist/components/molecules/CartItem/CartItemTitle.js.map +1 -1
- package/dist/components/molecules/Form/Form.js +1 -1
- package/dist/components/molecules/Form/Form.js.map +1 -1
- package/dist/components/molecules/LoadingButton/LoadingButton.js +1 -1
- package/dist/components/molecules/LoadingButton/LoadingButton.js.map +1 -1
- package/dist/components/molecules/Modal/Modal.js +3 -3
- package/dist/components/molecules/Modal/Modal.js.map +1 -1
- package/dist/components/molecules/Modal/ModalContent.d.ts +1 -1
- package/dist/components/molecules/Modal/ModalContent.js +3 -3
- package/dist/components/molecules/Modal/ModalContent.js.map +1 -1
- package/dist/components/molecules/OrderSummary/OrderSummary.d.ts +3 -3
- package/dist/components/molecules/OrderSummary/OrderSummary.js +3 -3
- package/dist/components/molecules/OrderSummary/OrderSummary.js.map +1 -1
- package/dist/components/molecules/PaymentMethods/PaymentMethods.js +1 -1
- package/dist/components/molecules/PaymentMethods/PaymentMethods.js.map +1 -1
- package/dist/components/molecules/PriceRange/PriceRange.d.ts +3 -3
- package/dist/components/molecules/PriceRange/PriceRange.js +1 -1
- package/dist/components/molecules/PriceRange/PriceRange.js.map +1 -1
- package/dist/components/molecules/ProductCard/ProductCard.js +1 -1
- package/dist/components/molecules/ProductCard/ProductCard.js.map +1 -1
- package/dist/components/molecules/ProductCard/ProductCardActions.js +1 -1
- package/dist/components/molecules/ProductCard/ProductCardActions.js.map +1 -1
- package/dist/components/molecules/ProductCard/ProductCardContent.js +1 -1
- package/dist/components/molecules/ProductCard/ProductCardContent.js.map +1 -1
- package/dist/components/molecules/ProductCard/ProductCardImage.js +1 -1
- package/dist/components/molecules/ProductCard/ProductCardImage.js.map +1 -1
- package/dist/components/molecules/ProductTitle/ProductTitle.d.ts +1 -1
- package/dist/components/molecules/ProductTitle/ProductTitle.js +1 -1
- package/dist/components/molecules/ProductTitle/ProductTitle.js.map +1 -1
- package/dist/components/molecules/QuantitySelector/QuantitySelector.d.ts +1 -2
- package/dist/components/molecules/QuantitySelector/QuantitySelector.js +5 -6
- package/dist/components/molecules/QuantitySelector/QuantitySelector.js.map +1 -1
- package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/molecules/RadioGroup/RadioOption.js +1 -1
- package/dist/components/molecules/RadioGroup/RadioOption.js.map +1 -1
- package/dist/components/molecules/SearchInput/SearchInput.d.ts +1 -1
- package/dist/components/molecules/SearchInput/SearchInput.js +2 -3
- package/dist/components/molecules/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/molecules/SkuSelector/SkuSelector.d.ts +1 -1
- package/dist/components/molecules/SkuSelector/SkuSelector.js +1 -1
- package/dist/components/molecules/SkuSelector/SkuSelector.js.map +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStock.d.ts +2 -2
- package/dist/components/organisms/OutOfStock/OutOfStock.js +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStock.js.map +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.d.ts +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.js +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.js.map +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.d.ts +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.js +1 -1
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.js.map +1 -1
- package/dist/components/organisms/Tiles/Tile.js +1 -1
- package/dist/components/organisms/Tiles/Tile.js.map +1 -1
- package/dist/components/organisms/Tiles/Tiles.js +1 -1
- package/dist/components/organisms/Tiles/Tiles.js.map +1 -1
- package/dist/components/src/atoms/List/List.d.ts +16 -0
- package/dist/components/src/atoms/List/List.js +7 -0
- package/dist/components/src/atoms/List/List.js.map +1 -0
- package/dist/components/src/atoms/List/index.d.ts +2 -0
- package/dist/components/src/atoms/List/index.js +2 -0
- package/dist/components/src/atoms/List/index.js.map +1 -0
- package/dist/components/src/typings/PolymorphicGenerics.d.ts +28 -0
- package/dist/components/src/typings/PolymorphicGenerics.js +8 -0
- package/dist/components/src/typings/PolymorphicGenerics.js.map +1 -0
- package/dist/components/src/typings/index.d.ts +1 -0
- package/dist/components/src/typings/index.js +2 -0
- package/dist/components/src/typings/index.js.map +1 -0
- package/dist/hooks/useSlider/useSlider.d.ts +3 -3
- package/dist/index.d.ts +0 -22
- package/dist/index.js +0 -11
- package/dist/index.js.map +1 -1
- package/dist/typings/PolymorphicGenerics.d.ts +6 -6
- package/dist/ui/src/components/atoms/Incentive/Incentive.d.ts +11 -0
- package/dist/ui/src/components/atoms/Incentive/Incentive.js +6 -0
- package/dist/ui/src/components/atoms/Incentive/Incentive.js.map +1 -0
- package/dist/ui/src/components/atoms/Incentive/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Incentive/index.js +2 -0
- package/dist/ui/src/components/atoms/Incentive/index.js.map +1 -0
- package/dist/ui/src/components/atoms/Incentive/stories/assets/Icons.d.ts +2 -0
- package/dist/ui/src/components/atoms/Incentive/stories/assets/Icons.js +6 -0
- package/dist/ui/src/components/atoms/Incentive/stories/assets/Icons.js.map +1 -0
- package/dist/ui/src/components/atoms/Link/Link.d.ts +19 -0
- package/dist/ui/src/components/atoms/Link/Link.js +13 -0
- package/dist/ui/src/components/atoms/Link/Link.js.map +1 -0
- package/dist/ui/src/components/atoms/Link/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Link/index.js +2 -0
- package/dist/ui/src/components/atoms/Link/index.js.map +1 -0
- package/dist/ui/src/components/atoms/Popover/Popover.d.ts +15 -0
- package/dist/ui/src/components/atoms/Popover/Popover.js +7 -0
- package/dist/ui/src/components/atoms/Popover/Popover.js.map +1 -0
- package/dist/ui/src/components/atoms/Popover/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Popover/index.js +2 -0
- package/dist/ui/src/components/atoms/Popover/index.js.map +1 -0
- package/dist/ui/src/components/atoms/Price/Price.d.ts +28 -0
- package/dist/ui/src/components/atoms/Price/Price.js +7 -0
- package/dist/ui/src/components/atoms/Price/Price.js.map +1 -0
- package/dist/ui/src/components/atoms/Price/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Price/index.js +2 -0
- package/dist/ui/src/components/atoms/Price/index.js.map +1 -0
- package/dist/ui/src/components/atoms/Select/Select.d.ts +10 -0
- package/dist/ui/src/components/atoms/Select/Select.js +6 -0
- package/dist/ui/src/components/atoms/Select/Select.js.map +1 -0
- package/dist/ui/src/components/atoms/Select/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Select/index.js +2 -0
- package/dist/ui/src/components/atoms/Select/index.js.map +1 -0
- package/dist/ui/src/components/atoms/Skeleton/Skeleton.d.ts +10 -0
- package/dist/ui/src/components/atoms/Skeleton/Skeleton.js +6 -0
- package/dist/ui/src/components/atoms/Skeleton/Skeleton.js.map +1 -0
- package/dist/ui/src/components/atoms/Skeleton/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Skeleton/index.js +2 -0
- package/dist/ui/src/components/atoms/Skeleton/index.js.map +1 -0
- package/dist/ui/src/components/atoms/Slider/Slider.d.ts +67 -0
- package/dist/ui/src/components/atoms/Slider/Slider.js +48 -0
- package/dist/ui/src/components/atoms/Slider/Slider.js.map +1 -0
- package/dist/ui/src/components/atoms/Slider/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Slider/index.js +2 -0
- package/dist/ui/src/components/atoms/Slider/index.js.map +1 -0
- package/dist/ui/src/components/atoms/Spinner/Spinner.d.ts +11 -0
- package/dist/ui/src/components/atoms/Spinner/Spinner.js +6 -0
- package/dist/ui/src/components/atoms/Spinner/Spinner.js.map +1 -0
- package/dist/ui/src/components/atoms/Spinner/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/Spinner/index.js +2 -0
- package/dist/ui/src/components/atoms/Spinner/index.js.map +1 -0
- package/dist/ui/src/components/atoms/TextArea/TextArea.d.ts +14 -0
- package/dist/ui/src/components/atoms/TextArea/TextArea.js +10 -0
- package/dist/ui/src/components/atoms/TextArea/TextArea.js.map +1 -0
- package/dist/ui/src/components/atoms/TextArea/index.d.ts +2 -0
- package/dist/ui/src/components/atoms/TextArea/index.js +2 -0
- package/dist/ui/src/components/atoms/TextArea/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Accordion/Accordion.d.ts +26 -0
- package/dist/ui/src/components/molecules/Accordion/Accordion.js +21 -0
- package/dist/ui/src/components/molecules/Accordion/Accordion.js.map +1 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionButton.d.ts +10 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionButton.js +37 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionButton.js.map +1 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionItem.d.ts +37 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionItem.js +28 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionItem.js.map +1 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionPanel.d.ts +10 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionPanel.js +10 -0
- package/dist/ui/src/components/molecules/Accordion/AccordionPanel.js.map +1 -0
- package/dist/ui/src/components/molecules/Accordion/index.d.ts +8 -0
- package/dist/ui/src/components/molecules/Accordion/index.js +5 -0
- package/dist/ui/src/components/molecules/Accordion/index.js.map +1 -0
- package/dist/ui/src/components/molecules/AggregateRating/AggregateRating.d.ts +18 -0
- package/dist/ui/src/components/molecules/AggregateRating/AggregateRating.js +26 -0
- package/dist/ui/src/components/molecules/AggregateRating/AggregateRating.js.map +1 -0
- package/dist/ui/src/components/molecules/AggregateRating/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/AggregateRating/index.js +2 -0
- package/dist/ui/src/components/molecules/AggregateRating/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Alert/Alert.d.ts +11 -0
- package/dist/ui/src/components/molecules/Alert/Alert.js +6 -0
- package/dist/ui/src/components/molecules/Alert/Alert.js.map +1 -0
- package/dist/ui/src/components/molecules/Alert/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/Alert/index.js +2 -0
- package/dist/ui/src/components/molecules/Alert/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Banner/Banner.d.ts +14 -0
- package/dist/ui/src/components/molecules/Banner/Banner.js +6 -0
- package/dist/ui/src/components/molecules/Banner/Banner.js.map +1 -0
- package/dist/ui/src/components/molecules/Banner/BannerContent.d.ts +10 -0
- package/dist/ui/src/components/molecules/Banner/BannerContent.js +6 -0
- package/dist/ui/src/components/molecules/Banner/BannerContent.js.map +1 -0
- package/dist/ui/src/components/molecules/Banner/BannerImage.d.ts +10 -0
- package/dist/ui/src/components/molecules/Banner/BannerImage.js +6 -0
- package/dist/ui/src/components/molecules/Banner/BannerImage.js.map +1 -0
- package/dist/ui/src/components/molecules/Banner/BannerLink.d.ts +10 -0
- package/dist/ui/src/components/molecules/Banner/BannerLink.js +6 -0
- package/dist/ui/src/components/molecules/Banner/BannerLink.js.map +1 -0
- package/dist/ui/src/components/molecules/Banner/index.d.ts +8 -0
- package/dist/ui/src/components/molecules/Banner/index.js +5 -0
- package/dist/ui/src/components/molecules/Banner/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Breadcrumb/Breadcrumb.d.ts +14 -0
- package/dist/ui/src/components/molecules/Breadcrumb/Breadcrumb.js +38 -0
- package/dist/ui/src/components/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/ui/src/components/molecules/Breadcrumb/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/Breadcrumb/index.js +2 -0
- package/dist/ui/src/components/molecules/Breadcrumb/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Bullets/Bullets.d.ts +35 -0
- package/dist/ui/src/components/molecules/Bullets/Bullets.js +12 -0
- package/dist/ui/src/components/molecules/Bullets/Bullets.js.map +1 -0
- package/dist/ui/src/components/molecules/Bullets/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/Bullets/index.js +2 -0
- package/dist/ui/src/components/molecules/Bullets/index.js.map +1 -0
- package/dist/{components/atoms/Overlay/Overlay.d.ts → ui/src/components/molecules/Card/Card.d.ts} +4 -4
- package/dist/ui/src/components/molecules/Card/Card.js +6 -0
- package/dist/ui/src/components/molecules/Card/Card.js.map +1 -0
- package/dist/ui/src/components/molecules/Card/CardActions.d.ts +10 -0
- package/dist/ui/src/components/molecules/Card/CardActions.js +6 -0
- package/dist/ui/src/components/molecules/Card/CardActions.js.map +1 -0
- package/dist/ui/src/components/molecules/Card/CardContent.d.ts +10 -0
- package/dist/ui/src/components/molecules/Card/CardContent.js +6 -0
- package/dist/ui/src/components/molecules/Card/CardContent.js.map +1 -0
- package/dist/ui/src/components/molecules/Card/CardImage.d.ts +10 -0
- package/dist/ui/src/components/molecules/Card/CardImage.js +6 -0
- package/dist/ui/src/components/molecules/Card/CardImage.js.map +1 -0
- package/dist/ui/src/components/molecules/Card/index.d.ts +8 -0
- package/dist/ui/src/components/molecules/Card/index.js +5 -0
- package/dist/ui/src/components/molecules/Card/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Carousel/Arrows.d.ts +12 -0
- package/dist/ui/src/components/molecules/Carousel/Arrows.js +6 -0
- package/dist/ui/src/components/molecules/Carousel/Arrows.js.map +1 -0
- package/dist/ui/src/components/molecules/Carousel/Carousel.d.ts +54 -0
- package/dist/ui/src/components/molecules/Carousel/Carousel.js +183 -0
- package/dist/ui/src/components/molecules/Carousel/Carousel.js.map +1 -0
- package/dist/ui/src/components/molecules/Carousel/CarouselItem.d.ts +11 -0
- package/dist/ui/src/components/molecules/Carousel/CarouselItem.js +18 -0
- package/dist/ui/src/components/molecules/Carousel/CarouselItem.js.map +1 -0
- package/dist/ui/src/components/molecules/Carousel/hooks/useSlideVisibility.d.ts +9 -0
- package/dist/ui/src/components/molecules/Carousel/hooks/useSlideVisibility.js +29 -0
- package/dist/ui/src/components/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
- package/dist/ui/src/components/molecules/Carousel/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/Carousel/index.js +3 -0
- package/dist/ui/src/components/molecules/Carousel/index.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/CartItem.d.ts +10 -0
- package/dist/ui/src/components/molecules/CartItem/CartItem.js +6 -0
- package/dist/ui/src/components/molecules/CartItem/CartItem.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemActions.d.ts +10 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemActions.js +6 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemActions.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemContent.d.ts +10 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemContent.js +6 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemContent.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemImage.d.ts +10 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemImage.js +6 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemImage.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemPrices.d.ts +10 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemPrices.js +6 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemPrices.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemSummary.d.ts +10 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemSummary.js +6 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemSummary.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemTitle.d.ts +10 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemTitle.js +6 -0
- package/dist/ui/src/components/molecules/CartItem/CartItemTitle.js.map +1 -0
- package/dist/ui/src/components/molecules/CartItem/index.d.ts +14 -0
- package/dist/ui/src/components/molecules/CartItem/index.js +8 -0
- package/dist/ui/src/components/molecules/CartItem/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/Dropdown.d.ts +9 -0
- package/dist/ui/src/components/molecules/Dropdown/Dropdown.js +67 -0
- package/dist/ui/src/components/molecules/Dropdown/Dropdown.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownButton.d.ts +10 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownButton.js +11 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownButton.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownItem.d.ts +10 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownItem.js +26 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownItem.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownMenu.d.ts +22 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownMenu.js +65 -0
- package/dist/ui/src/components/molecules/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -0
- package/dist/ui/src/components/molecules/Dropdown/contexts/DropdownContext.js +11 -0
- package/dist/ui/src/components/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdown.d.ts +6 -0
- package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdown.js +14 -0
- package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -0
- package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
- package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/index.d.ts +8 -0
- package/dist/ui/src/components/molecules/Dropdown/index.js +5 -0
- package/dist/ui/src/components/molecules/Dropdown/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Dropdown/stories/assets/Caret.d.ts +2 -0
- package/dist/ui/src/components/molecules/Dropdown/stories/assets/Caret.js +4 -0
- package/dist/ui/src/components/molecules/Dropdown/stories/assets/Caret.js.map +1 -0
- package/dist/ui/src/components/molecules/Form/Form.d.ts +11 -0
- package/dist/ui/src/components/molecules/Form/Form.js +6 -0
- package/dist/ui/src/components/molecules/Form/Form.js.map +1 -0
- package/dist/ui/src/components/molecules/Form/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/Form/index.js +2 -0
- package/dist/ui/src/components/molecules/Form/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Gift/Gift.d.ts +15 -0
- package/dist/ui/src/components/molecules/Gift/Gift.js +9 -0
- package/dist/ui/src/components/molecules/Gift/Gift.js.map +1 -0
- package/dist/ui/src/components/molecules/Gift/GiftContent.d.ts +10 -0
- package/dist/ui/src/components/molecules/Gift/GiftContent.js +6 -0
- package/dist/ui/src/components/molecules/Gift/GiftContent.js.map +1 -0
- package/dist/ui/src/components/molecules/Gift/GiftImage.d.ts +10 -0
- package/dist/ui/src/components/molecules/Gift/GiftImage.js +6 -0
- package/dist/ui/src/components/molecules/Gift/GiftImage.js.map +1 -0
- package/dist/ui/src/components/molecules/Gift/index.d.ts +6 -0
- package/dist/ui/src/components/molecules/Gift/index.js +4 -0
- package/dist/ui/src/components/molecules/Gift/index.js.map +1 -0
- package/dist/ui/src/components/molecules/LoadingButton/LoadingButton.d.ts +14 -0
- package/dist/ui/src/components/molecules/LoadingButton/LoadingButton.js +8 -0
- package/dist/ui/src/components/molecules/LoadingButton/LoadingButton.js.map +1 -0
- package/dist/ui/src/components/molecules/LoadingButton/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/LoadingButton/index.js +2 -0
- package/dist/ui/src/components/molecules/LoadingButton/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Modal/Modal.d.ts +25 -0
- package/dist/ui/src/components/molecules/Modal/Modal.js +31 -0
- package/dist/ui/src/components/molecules/Modal/Modal.js.map +1 -0
- package/dist/ui/src/components/molecules/Modal/ModalContent.d.ts +10 -0
- package/dist/ui/src/components/molecules/Modal/ModalContent.js +23 -0
- package/dist/ui/src/components/molecules/Modal/ModalContent.js.map +1 -0
- package/dist/ui/src/components/molecules/Modal/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/Modal/index.js +2 -0
- package/dist/ui/src/components/molecules/Modal/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Modal/useTrapFocus.d.ts +8 -0
- package/dist/ui/src/components/molecules/Modal/useTrapFocus.js +76 -0
- package/dist/ui/src/components/molecules/Modal/useTrapFocus.js.map +1 -0
- package/dist/ui/src/components/molecules/OrderSummary/OrderSummary.d.ts +35 -0
- package/dist/ui/src/components/molecules/OrderSummary/OrderSummary.js +16 -0
- package/dist/ui/src/components/molecules/OrderSummary/OrderSummary.js.map +1 -0
- package/dist/ui/src/components/molecules/OrderSummary/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/OrderSummary/index.js +2 -0
- package/dist/ui/src/components/molecules/OrderSummary/index.js.map +1 -0
- package/dist/ui/src/components/molecules/PaymentMethods/PaymentMethods.d.ts +26 -0
- package/dist/ui/src/components/molecules/PaymentMethods/PaymentMethods.js +8 -0
- package/dist/ui/src/components/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
- package/dist/ui/src/components/molecules/PaymentMethods/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/PaymentMethods/index.js +2 -0
- package/dist/ui/src/components/molecules/PaymentMethods/index.js.map +1 -0
- package/dist/ui/src/components/molecules/PaymentMethods/stories/assets/Icons.d.ts +9 -0
- package/dist/ui/src/components/molecules/PaymentMethods/stories/assets/Icons.js +26 -0
- package/dist/ui/src/components/molecules/PaymentMethods/stories/assets/Icons.js.map +1 -0
- package/dist/ui/src/components/molecules/PriceRange/PriceRange.d.ts +47 -0
- package/dist/ui/src/components/molecules/PriceRange/PriceRange.js +28 -0
- package/dist/ui/src/components/molecules/PriceRange/PriceRange.js.map +1 -0
- package/dist/ui/src/components/molecules/PriceRange/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/PriceRange/index.js +2 -0
- package/dist/ui/src/components/molecules/PriceRange/index.js.map +1 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCard.d.ts +11 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCard.js +6 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCard.js.map +1 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardActions.d.ts +10 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardActions.js +6 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardActions.js.map +1 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardContent.d.ts +10 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardContent.js +6 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardContent.js.map +1 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardImage.d.ts +10 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardImage.js +6 -0
- package/dist/ui/src/components/molecules/ProductCard/ProductCardImage.js.map +1 -0
- package/dist/ui/src/components/molecules/ProductCard/index.d.ts +8 -0
- package/dist/ui/src/components/molecules/ProductCard/index.js +5 -0
- package/dist/ui/src/components/molecules/ProductCard/index.js.map +1 -0
- package/dist/ui/src/components/molecules/ProductTitle/ProductTitle.d.ts +47 -0
- package/dist/ui/src/components/molecules/ProductTitle/ProductTitle.js +12 -0
- package/dist/ui/src/components/molecules/ProductTitle/ProductTitle.js.map +1 -0
- package/dist/ui/src/components/molecules/ProductTitle/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/ProductTitle/index.js +2 -0
- package/dist/ui/src/components/molecules/ProductTitle/index.js.map +1 -0
- package/dist/ui/src/components/molecules/QuantitySelector/QuantitySelector.d.ts +29 -0
- package/dist/ui/src/components/molecules/QuantitySelector/QuantitySelector.js +10 -0
- package/dist/ui/src/components/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
- package/dist/ui/src/components/molecules/QuantitySelector/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/QuantitySelector/index.js +2 -0
- package/dist/ui/src/components/molecules/QuantitySelector/index.js.map +1 -0
- package/dist/ui/src/components/molecules/QuantitySelector/stories/assets/Icons.d.ts +7 -0
- package/dist/ui/src/components/molecules/QuantitySelector/stories/assets/Icons.js +11 -0
- package/dist/ui/src/components/molecules/QuantitySelector/stories/assets/Icons.js.map +1 -0
- package/dist/ui/src/components/molecules/RadioGroup/RadioGroup.d.ts +5 -0
- package/dist/ui/src/components/molecules/RadioGroup/RadioGroup.js +10 -0
- package/dist/ui/src/components/molecules/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/ui/src/components/molecules/RadioGroup/RadioOption.d.ts +19 -0
- package/dist/ui/src/components/molecules/RadioGroup/RadioOption.js +11 -0
- package/dist/ui/src/components/molecules/RadioGroup/RadioOption.js.map +1 -0
- package/dist/ui/src/components/molecules/RadioGroup/index.d.ts +4 -0
- package/dist/ui/src/components/molecules/RadioGroup/index.js +3 -0
- package/dist/ui/src/components/molecules/RadioGroup/index.js.map +1 -0
- package/dist/ui/src/components/molecules/RadioGroup/useRadioGroup.d.ts +17 -0
- package/dist/ui/src/components/molecules/RadioGroup/useRadioGroup.js +10 -0
- package/dist/ui/src/components/molecules/RadioGroup/useRadioGroup.js.map +1 -0
- package/dist/ui/src/components/molecules/SearchInput/SearchInput.d.ts +28 -0
- package/dist/ui/src/components/molecules/SearchInput/SearchInput.js +26 -0
- package/dist/ui/src/components/molecules/SearchInput/SearchInput.js.map +1 -0
- package/dist/ui/src/components/molecules/SearchInput/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/SearchInput/index.js +2 -0
- package/dist/ui/src/components/molecules/SearchInput/index.js.map +1 -0
- package/dist/ui/src/components/molecules/SearchInput/stories/assets/CustomIcon.d.ts +3 -0
- package/dist/ui/src/components/molecules/SearchInput/stories/assets/CustomIcon.js +7 -0
- package/dist/ui/src/components/molecules/SearchInput/stories/assets/CustomIcon.js.map +1 -0
- package/dist/ui/src/components/molecules/SkuSelector/SkuSelector.d.ts +58 -0
- package/dist/ui/src/components/molecules/SkuSelector/SkuSelector.js +16 -0
- package/dist/ui/src/components/molecules/SkuSelector/SkuSelector.js.map +1 -0
- package/dist/ui/src/components/molecules/SkuSelector/index.d.ts +2 -0
- package/dist/ui/src/components/molecules/SkuSelector/index.js +2 -0
- package/dist/ui/src/components/molecules/SkuSelector/index.js.map +1 -0
- package/dist/ui/src/components/molecules/Table/Table.d.ts +11 -0
- package/dist/ui/src/components/molecules/Table/Table.js +6 -0
- package/dist/ui/src/components/molecules/Table/Table.js.map +1 -0
- package/dist/ui/src/components/molecules/Table/TableBody.d.ts +11 -0
- package/dist/ui/src/components/molecules/Table/TableBody.js +6 -0
- package/dist/ui/src/components/molecules/Table/TableBody.js.map +1 -0
- package/dist/ui/src/components/molecules/Table/TableCell.d.ts +20 -0
- package/dist/ui/src/components/molecules/Table/TableCell.js +7 -0
- package/dist/ui/src/components/molecules/Table/TableCell.js.map +1 -0
- package/dist/ui/src/components/molecules/Table/TableFooter.d.ts +11 -0
- package/dist/ui/src/components/molecules/Table/TableFooter.js +6 -0
- package/dist/ui/src/components/molecules/Table/TableFooter.js.map +1 -0
- package/dist/ui/src/components/molecules/Table/TableHead.d.ts +11 -0
- package/dist/ui/src/components/molecules/Table/TableHead.js +6 -0
- package/dist/ui/src/components/molecules/Table/TableHead.js.map +1 -0
- package/dist/ui/src/components/molecules/Table/TableRow.d.ts +11 -0
- package/dist/ui/src/components/molecules/Table/TableRow.js +6 -0
- package/dist/ui/src/components/molecules/Table/TableRow.js.map +1 -0
- package/dist/ui/src/components/molecules/Table/index.d.ts +12 -0
- package/dist/ui/src/components/molecules/Table/index.js +7 -0
- package/dist/ui/src/components/molecules/Table/index.js.map +1 -0
- package/dist/ui/src/components/organisms/Hero/Hero.d.ts +11 -0
- package/dist/ui/src/components/organisms/Hero/Hero.js +6 -0
- package/dist/ui/src/components/organisms/Hero/Hero.js.map +1 -0
- package/dist/ui/src/components/organisms/Hero/HeroHeading.d.ts +10 -0
- package/dist/ui/src/components/organisms/Hero/HeroHeading.js +6 -0
- package/dist/ui/src/components/organisms/Hero/HeroHeading.js.map +1 -0
- package/dist/ui/src/components/organisms/Hero/HeroImage.d.ts +10 -0
- package/dist/ui/src/components/organisms/Hero/HeroImage.js +6 -0
- package/dist/ui/src/components/organisms/Hero/HeroImage.js.map +1 -0
- package/dist/ui/src/components/organisms/Hero/index.d.ts +6 -0
- package/dist/ui/src/components/organisms/Hero/index.js +4 -0
- package/dist/ui/src/components/organisms/Hero/index.js.map +1 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStock.d.ts +21 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStock.js +8 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStock.js.map +1 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStockMessage.js +5 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStockTitle.js +5 -0
- package/dist/ui/src/components/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
- package/dist/ui/src/components/organisms/OutOfStock/index.d.ts +6 -0
- package/dist/ui/src/components/organisms/OutOfStock/index.js +4 -0
- package/dist/ui/src/components/organisms/OutOfStock/index.js.map +1 -0
- package/dist/ui/src/components/organisms/Tiles/Tile.d.ts +11 -0
- package/dist/ui/src/components/organisms/Tiles/Tile.js +6 -0
- package/dist/ui/src/components/organisms/Tiles/Tile.js.map +1 -0
- package/dist/ui/src/components/organisms/Tiles/Tiles.d.ts +11 -0
- package/dist/ui/src/components/organisms/Tiles/Tiles.js +30 -0
- package/dist/ui/src/components/organisms/Tiles/Tiles.js.map +1 -0
- package/dist/ui/src/components/organisms/Tiles/index.d.ts +4 -0
- package/dist/ui/src/components/organisms/Tiles/index.js +3 -0
- package/dist/ui/src/components/organisms/Tiles/index.js.map +1 -0
- package/dist/ui/src/hooks/useSlider/index.d.ts +2 -0
- package/dist/ui/src/hooks/useSlider/index.js +3 -0
- package/dist/ui/src/hooks/useSlider/index.js.map +1 -0
- package/dist/ui/src/hooks/useSlider/useSlider.d.ts +64 -0
- package/dist/ui/src/hooks/useSlider/useSlider.js +103 -0
- package/dist/ui/src/hooks/useSlider/useSlider.js.map +1 -0
- package/dist/ui/src/index.d.ts +75 -0
- package/dist/ui/src/index.js +43 -0
- package/dist/ui/src/index.js.map +1 -0
- package/dist/ui/src/typings/PolymorphicGenerics.d.ts +28 -0
- package/dist/ui/src/typings/PolymorphicGenerics.js +8 -0
- package/dist/ui/src/typings/PolymorphicGenerics.js.map +1 -0
- package/dist/ui/src/typings/index.d.ts +1 -0
- package/dist/ui/src/typings/index.js +2 -0
- package/dist/ui/src/typings/index.js.map +1 -0
- package/package.json +4 -5
- package/CHANGELOG.md +0 -2032
- package/LICENSE +0 -21
- package/dist/assets/ShoppingCart.d.ts +0 -3
- package/dist/assets/ShoppingCart.js +0 -10
- package/dist/assets/ShoppingCart.js.map +0 -1
- package/dist/assets/X.d.ts +0 -3
- package/dist/assets/X.js +0 -8
- package/dist/assets/X.js.map +0 -1
- package/dist/assets/index.d.ts +0 -2
- package/dist/assets/index.js +0 -3
- package/dist/assets/index.js.map +0 -1
- package/dist/components/atoms/Overlay/Overlay.js +0 -6
- package/dist/components/atoms/Overlay/Overlay.js.map +0 -1
- package/dist/components/atoms/Overlay/index.d.ts +0 -2
- package/dist/components/atoms/Overlay/index.js +0 -2
- package/dist/components/atoms/Overlay/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/LoadingButton/LoadingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAE9C,OAAO,OAAO,MAAM,qBAAqB,CAAA;AAazC,MAAM,aAAa,GAAG,UAAU,CAC9B,SAAS,aAAa,CACpB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,GAAG,UAAU,EAAE,EACrE,GAAG;IAEH,OAAO,CACL,oBAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"LoadingButton.js","sourceRoot":"","sources":["../../../../src/components/molecules/LoadingButton/LoadingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAE9C,OAAO,OAAO,MAAM,qBAAqB,CAAA;AAazC,MAAM,aAAa,GAAG,UAAU,CAC9B,SAAS,aAAa,CACpB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,GAAG,UAAU,EAAE,EACrE,GAAG;IAEH,OAAO,CACL,oBAAC,MAAM,IAAC,GAAG,EAAE,GAAG,kCAAyB,MAAM,EAAE,MAAM,KAAM,UAAU,IACpE,OAAO,CAAC,CAAC,CAAC,oBAAC,OAAO,OAAG,CAAC,CAAC,CAAC,QAAQ,CAC1B,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { createPortal } from 'react-dom';
|
|
3
|
-
import Overlay from '
|
|
3
|
+
import { Overlay } from '@faststore/components';
|
|
4
4
|
import ModalContent from './ModalContent';
|
|
5
5
|
/*
|
|
6
6
|
* This component is based on @reach/dialog.
|
|
@@ -23,8 +23,8 @@ const Modal = ({ isOpen, children, onDismiss, testId = 'store-modal', ...otherPr
|
|
|
23
23
|
onDismiss?.(event);
|
|
24
24
|
};
|
|
25
25
|
return isOpen
|
|
26
|
-
? createPortal(React.createElement(Overlay, {
|
|
27
|
-
React.createElement(ModalContent,
|
|
26
|
+
? createPortal(React.createElement(Overlay, { onClick: handleBackdropClick, onKeyDown: handleBackdropKeyDown },
|
|
27
|
+
React.createElement(ModalContent, { ...otherProps, testId: testId }, children)), document.body)
|
|
28
28
|
: null;
|
|
29
29
|
};
|
|
30
30
|
export default Modal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/Modal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,OAAO,OAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/Modal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAwBzC;;;;GAIG;AAEH,MAAM,KAAK,GAAG,CAAC,EACb,MAAM,EACN,QAAQ,EACR,SAAS,EACT,MAAM,GAAG,aAAa,EACtB,GAAG,UAAU,EACiB,EAAE,EAAE;IAClC,MAAM,mBAAmB,GAAG,CAAC,KAAiB,EAAE,EAAE;QAChD,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC1B,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC,CAAA;IAED,MAAM,qBAAqB,GAAG,CAAC,KAAoB,EAAE,EAAE;QACrD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,gBAAgB,EAAE;YACpD,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC,CAAA;IAED,OAAO,MAAM;QACX,CAAC,CAAC,YAAY,CACV,oBAAC,OAAO,IACN,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,qBAAqB;YAEhC,oBAAC,YAAY,OAAK,UAAU,EAAE,MAAM,EAAE,MAAM,IACzC,QAAQ,CACI,CACP,EACV,QAAQ,CAAC,IAAI,CACd;QACH,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -5,6 +5,6 @@ interface ModalContentPureProps extends Omit<DetailedHTMLProps<HTMLAttributes<HT
|
|
|
5
5
|
afterElementRef: RefObject<HTMLDivElement>;
|
|
6
6
|
testId?: string;
|
|
7
7
|
}
|
|
8
|
-
export
|
|
8
|
+
export type ModalContentProps = Omit<ModalContentPureProps, 'trapFocusRef' | 'onClick' | 'beforeElementRef' | 'afterElementRef'>;
|
|
9
9
|
declare const ModalContent: ({ children, ...otherProps }: ModalContentProps) => JSX.Element;
|
|
10
10
|
export default ModalContent;
|
|
@@ -3,7 +3,7 @@ import useTrapFocus from './useTrapFocus';
|
|
|
3
3
|
const ModalContentPure = ({ beforeElementRef, trapFocusRef, afterElementRef, testId = 'store-modal-content', children, ...otherProps }) => {
|
|
4
4
|
return (React.createElement(React.Fragment, null,
|
|
5
5
|
React.createElement("div", { ref: beforeElementRef, "data-testid": "beforeElement", tabIndex: 0, "aria-hidden": "true" }),
|
|
6
|
-
React.createElement("div",
|
|
6
|
+
React.createElement("div", { "data-fs-modal-content": true, "data-testid": testId, ref: trapFocusRef, "aria-modal": "true", role: "dialog", tabIndex: -1, ...otherProps }, children),
|
|
7
7
|
React.createElement("div", { ref: afterElementRef, "data-testid": "afterElement", tabIndex: 0, "aria-hidden": "true" })));
|
|
8
8
|
};
|
|
9
9
|
const ModalContent = ({ children, ...otherProps }) => {
|
|
@@ -15,9 +15,9 @@ const ModalContent = ({ children, ...otherProps }) => {
|
|
|
15
15
|
trapFocusRef,
|
|
16
16
|
afterElementRef,
|
|
17
17
|
});
|
|
18
|
-
return (React.createElement(ModalContentPure,
|
|
18
|
+
return (React.createElement(ModalContentPure, { ...otherProps, trapFocusRef: trapFocusRef, beforeElementRef: beforeElementRef, afterElementRef: afterElementRef, onClick: (event) => {
|
|
19
19
|
event.stopPropagation();
|
|
20
|
-
} }
|
|
20
|
+
} }, children));
|
|
21
21
|
};
|
|
22
22
|
export default ModalContent;
|
|
23
23
|
//# sourceMappingURL=ModalContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/ModalContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAazC,MAAM,gBAAgB,GAAG,CAAC,EACxB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,MAAM,GAAG,qBAAqB,EAC9B,QAAQ,EACR,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,OAAO,CACL;QACE,6BACE,GAAG,EAAE,gBAAgB,iBACT,eAAe,EAC3B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB;QACF,
|
|
1
|
+
{"version":3,"file":"ModalContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/Modal/ModalContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAazC,MAAM,gBAAgB,GAAG,CAAC,EACxB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,MAAM,GAAG,qBAAqB,EAC9B,QAAQ,EACR,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,OAAO,CACL;QACE,6BACE,GAAG,EAAE,gBAAgB,iBACT,eAAe,EAC3B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB;QACF,2EAEe,MAAM,EACnB,GAAG,EAAE,YAAY,gBACN,MAAM,EACjB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,KACR,UAAU,IAEb,QAAQ,CACL;QACN,6BACE,GAAG,EAAE,eAAe,iBACR,cAAc,EAC1B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAOD,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAqB,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACjD,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACrD,MAAM,eAAe,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAEpD,YAAY,CAAC;QACX,gBAAgB;QAChB,YAAY;QACZ,eAAe;KAChB,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,gBAAgB,OACX,UAAU,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YAC7B,KAAK,CAAC,eAAe,EAAE,CAAA;QACzB,CAAC,IAEA,QAAQ,CACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export interface OrderSummaryProps
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface OrderSummaryProps extends HTMLAttributes<HTMLUListElement> {
|
|
4
4
|
/**
|
|
5
5
|
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
6
|
* testing-library, and jest).
|
|
@@ -31,5 +31,5 @@ export interface OrderSummaryProps<T = HTMLElement> extends Omit<ListProps<T>, '
|
|
|
31
31
|
*/
|
|
32
32
|
totalValue?: string;
|
|
33
33
|
}
|
|
34
|
-
declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps
|
|
34
|
+
declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLUListElement>>;
|
|
35
35
|
export default OrderSummary;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import List from '
|
|
3
|
-
const OrderSummary = forwardRef(function OrderSummary({ testId = 'store-order-summary',
|
|
4
|
-
return (React.createElement(List,
|
|
2
|
+
import { List } from '@faststore/components';
|
|
3
|
+
const OrderSummary = forwardRef(function OrderSummary({ testId = 'store-order-summary', subtotalLabel, subtotalValue, discountLabel, discountValue, totalLabel, totalValue, ...otherProps }, ref) {
|
|
4
|
+
return (React.createElement(List, { ref: ref, "data-fs-order-summary": true, "data-testid": testId, ...otherProps },
|
|
5
5
|
subtotalValue ? (React.createElement("li", { "data-fs-order-summary-subtotal": true },
|
|
6
6
|
React.createElement("span", { "data-fs-order-summary-subtotal-label": true, "data-testid": `${testId}-subtotal-label` }, subtotalLabel),
|
|
7
7
|
React.createElement("span", { "data-fs-order-summary-subtotal-value": true, "data-testid": `${testId}-subtotal-value` }, subtotalValue))) : null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrderSummary.js","sourceRoot":"","sources":["../../../../src/components/molecules/OrderSummary/OrderSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"OrderSummary.js","sourceRoot":"","sources":["../../../../src/components/molecules/OrderSummary/OrderSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAkC5C,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,MAAM,GAAG,qBAAqB,EAC9B,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,UAAU,EACV,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,gDAEK,MAAM,KACf,UAAU;QAEb,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACP,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACR;YACE,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN;YACP,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN,CACJ,CACA,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
const PaymentMethods = forwardRef(function PaymentMethods({ testId = 'store-payment-methods', title, 'aria-label': ariaLabel = 'Payment Methods', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("div",
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-fs-payment-methods": true, "data-testid": testId, ...otherProps },
|
|
4
4
|
!!title && React.createElement("div", null, title),
|
|
5
5
|
React.createElement("div", { "data-payment-methods-flags": true, "aria-label": title ? undefined : ariaLabel }, children)));
|
|
6
6
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentMethods.js","sourceRoot":"","sources":["../../../../src/components/molecules/PaymentMethods/PaymentMethods.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyBzC,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EACE,MAAM,GAAG,uBAAuB,EAChC,KAAK,EACL,YAAY,EAAE,SAAS,GAAG,iBAAiB,EAC3C,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"PaymentMethods.js","sourceRoot":"","sources":["../../../../src/components/molecules/PaymentMethods/PaymentMethods.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyBzC,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EACE,MAAM,GAAG,uBAAuB,EAChC,KAAK,EACL,YAAY,EAAE,SAAS,GAAG,iBAAiB,EAC3C,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,kDAEK,MAAM,KACf,UAAU;QAEb,CAAC,CAAC,KAAK,IAAI,iCAAM,KAAK,CAAO;QAC9B,+EAEc,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,IAExC,QAAQ,CACL,CACF,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AriaAttributes } from 'react';
|
|
3
|
-
import type { PriceProps } from '
|
|
3
|
+
import type { PriceProps } from '@faststore/components';
|
|
4
4
|
import type { SliderProps } from '../../atoms/Slider';
|
|
5
|
-
export
|
|
5
|
+
export type PriceRangeProps = SliderProps & {
|
|
6
6
|
/**
|
|
7
7
|
* The current use case variant for prices.
|
|
8
8
|
*/
|
|
@@ -20,7 +20,7 @@ export declare type PriceRangeProps = SliderProps & {
|
|
|
20
20
|
*/
|
|
21
21
|
'aria-label'?: AriaAttributes['aria-label'];
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type PriceRangeRefType = {
|
|
24
24
|
setPriceRangeValues: (values: {
|
|
25
25
|
min: number;
|
|
26
26
|
max: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useRef, useImperativeHandle, forwardRef } from 'react';
|
|
2
|
-
import Price from '
|
|
2
|
+
import { Price } from '@faststore/components';
|
|
3
3
|
import Slider from '../../atoms/Slider';
|
|
4
4
|
const PriceRange = forwardRef(function PriceRange({ className, formatter, max, min, step, onChange, onEnd, testId = 'store-price-range', variant, 'aria-label': ariaLabel, }, ref) {
|
|
5
5
|
const sliderRef = useRef();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceRange.js","sourceRoot":"","sources":["../../../../src/components/molecules/PriceRange/PriceRange.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGtE,OAAO,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"PriceRange.js","sourceRoot":"","sources":["../../../../src/components/molecules/PriceRange/PriceRange.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGtE,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAG7C,OAAO,MAAM,MAAM,oBAAoB,CAAA;AA0BvC,MAAM,UAAU,GAAG,UAAU,CAC3B,SAAS,UAAU,CACjB,EACE,SAAS,EACT,SAAS,EACT,GAAG,EACH,GAAG,EACH,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,MAAM,GAAG,mBAAmB,EAC5B,OAAO,EACP,YAAY,EAAE,SAAS,GACxB,EACD,GAAG;IAEH,MAAM,SAAS,GAAG,MAAM,EAEpB,CAAA;IAEJ,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,mBAAmB,EAAE,CAAC,MAAoC,EAAE,EAAE;YAC5D,QAAQ,EAAE,CAAC,MAAM,CAAC,CAAA;YAClB,SAAS,CAAC,OAAO,EAAE,eAAe,CAAC,MAAM,CAAC,CAAA;QAC5C,CAAC;KACF,CAAC,CAAC,CAAA;IAEH,OAAO,CACL,yEAAsC,MAAM,EAAE,SAAS,EAAE,SAAS;QAChE,oBAAC,MAAM,IACL,GAAG,EAAE,SAAS,EACd,GAAG,EAAE,GAAG,EACR,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,gBACA,SAAS,EACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,EACtC,sBAAsB,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACnC,MAAM,UAAU,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAA;gBAElD,OAAO,CACL,oBAAC,KAAK,IACJ,KAAK,EAAE,QAAQ,EACf,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,SAAS,kCACS,KAAK,EAClC,KAAK,EAAE;wBACL,QAAQ,EAAE,UAAU;wBACpB,IAAI,EAAE,QAAQ,UAAU,QAAQ,CAAC,GAAG,UAAU,GAAG,GAAG,MAAM;qBAC3D,GACD,CACH,CAAA;YACH,CAAC,EACD,sBAAsB,EAAE,CAAC,QAAQ,EAAE,EAAE;gBACnC,MAAM,UAAU,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAA;gBAElD,OAAO,CACL,oBAAC,KAAK,IACJ,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,QAAQ,kCACc,KAAK,EAClC,KAAK,EAAE;wBACL,QAAQ,EAAE,UAAU;wBACpB,IAAI,EAAE,QAAQ,UAAU,QAAQ,CAAC,GAAG,UAAU,GAAG,GAAG,MAAM;qBAC3D,GACD,CACH,CAAA;YACH,CAAC,GACD,CACE,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
const ProductCard = forwardRef(function Card({ testId = 'store-product-card', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("article",
|
|
3
|
+
return (React.createElement("article", { ref: ref, "data-fs-product-card": true, "data-testid": testId, ...otherProps }, children));
|
|
4
4
|
});
|
|
5
5
|
export default ProductCard;
|
|
6
6
|
//# sourceMappingURL=ProductCard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,WAAW,GAAG,UAAU,CAAmC,SAAS,IAAI,CAC5E,EAAE,MAAM,GAAG,oBAAoB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC1D,GAAG;IAEH,OAAO,CACL
|
|
1
|
+
{"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,WAAW,GAAG,UAAU,CAAmC,SAAS,IAAI,CAC5E,EAAE,MAAM,GAAG,oBAAoB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC1D,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,+CAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,WAAW,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
const ProductCardActions = forwardRef(function CardActions({ testId = 'store-product-card-actions', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("div",
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-product-card-actions": true, "data-testid": testId, ...otherProps }, children));
|
|
4
4
|
});
|
|
5
5
|
export default ProductCardActions;
|
|
6
6
|
//# sourceMappingURL=ProductCardActions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardActions.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,kBAAkB,GAAG,UAAU,CACnC,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,4BAA4B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClE,GAAG;IAEH,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"ProductCardActions.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,kBAAkB,GAAG,UAAU,CACnC,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,4BAA4B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClE,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,oDAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
const ProductCardContent = forwardRef(function CardContent({ testId = 'store-product-card-content', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("section",
|
|
3
|
+
return (React.createElement("section", { ref: ref, "data-product-card-content": true, "data-testid": testId, ...otherProps }, children));
|
|
4
4
|
});
|
|
5
5
|
export default ProductCardContent;
|
|
6
6
|
//# sourceMappingURL=ProductCardContent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,kBAAkB,GAAG,UAAU,CACnC,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,4BAA4B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClE,GAAG;IAEH,OAAO,CACL
|
|
1
|
+
{"version":3,"file":"ProductCardContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,kBAAkB,GAAG,UAAU,CACnC,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,4BAA4B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClE,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,oDAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
const ProductCardImage = forwardRef(function ProductCardImage({ testId = 'store-product-card-image', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("div",
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-product-card-image": true, "data-testid": testId, ...otherProps }, children));
|
|
4
4
|
});
|
|
5
5
|
export default ProductCardImage;
|
|
6
6
|
//# sourceMappingURL=ProductCardImage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardImage.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,gBAAgB,GAAG,UAAU,CACjC,SAAS,gBAAgB,CACvB,EAAE,MAAM,GAAG,0BAA0B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAChE,GAAG;IAEH,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"ProductCardImage.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductCard/ProductCardImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,gBAAgB,GAAG,UAAU,CACjC,SAAS,gBAAgB,CACvB,EAAE,MAAM,GAAG,0BAA0B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAChE,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,kDAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { HTMLAttributes } from 'react';
|
|
2
2
|
import type { ReactNode } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type ProductTitleProps = Omit<HTMLAttributes<HTMLElement>, 'title'> & {
|
|
4
4
|
/**
|
|
5
5
|
* A react component to be used as the product title, e.g. a `h1`
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
const ProductTitle = forwardRef(function ProductTitle({ title, label, refTag = "Ref.: ", refNumber, testId = 'store-product-title', ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("header",
|
|
3
|
+
return (React.createElement("header", { ref: ref, "data-fs-product-title": true, "data-testid": testId, ...otherProps },
|
|
4
4
|
React.createElement("div", { "data-fs-product-title-header": true },
|
|
5
5
|
title,
|
|
6
6
|
!!label && label),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTitle.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductTitle/ProductTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AA0BzD,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAE,QAAQ,EAAC,SAAS,EAAE,MAAM,GAAE,qBAAqB,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG;IACnH,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"ProductTitle.js","sourceRoot":"","sources":["../../../../src/components/molecules/ProductTitle/ProductTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AA0BzD,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAE,QAAQ,EAAC,SAAS,EAAE,MAAM,GAAE,qBAAqB,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG;IACnH,OAAO,CACL,gCAAQ,GAAG,EAAE,GAAG,gDAAqC,MAAM,KAAM,UAAU;QACzE;YACG,KAAK;YACL,CAAC,CAAC,KAAK,IAAI,KAAK,CACb;QAEL,SAAS,IAAI,CACZ;YACG,MAAM;YAAE,SAAS,CAChB,CACL,CACM,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { InputHTMLAttributes } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
import type { InputProps } from '
|
|
4
|
-
import type { IconButtonProps } from '../../../index';
|
|
3
|
+
import type { IconButtonProps, InputProps } from '@faststore/components';
|
|
5
4
|
export interface QuantitySelectorProps extends InputHTMLAttributes<HTMLDivElement> {
|
|
6
5
|
/**
|
|
7
6
|
* Sets the current value that should be displayed on the input at the center of the quantity selector.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
|
-
import Input from '
|
|
3
|
-
import { IconButton } from '../../../index';
|
|
2
|
+
import { IconButton, Input } from '@faststore/components';
|
|
4
3
|
const QuantitySelector = forwardRef(function QuantitySelector({ quantity, testId = 'store-quantity-selector', leftButtonProps, inputProps, rightButtonProps, ...otherProps }, ref) {
|
|
5
|
-
return (React.createElement("div",
|
|
6
|
-
React.createElement(IconButton,
|
|
7
|
-
React.createElement(Input,
|
|
8
|
-
React.createElement(IconButton,
|
|
4
|
+
return (React.createElement("div", { "data-fs-quantity-selector": true, "data-testid": testId, ref: ref, ...otherProps },
|
|
5
|
+
React.createElement(IconButton, { "aria-controls": "quantity-selector-input", "aria-label": "Decrement Quantity", "data-quantity-selector-button": "left", ...leftButtonProps }),
|
|
6
|
+
React.createElement(Input, { "aria-label": "Quantity", "data-quantity-selector-input": true, id: "quantity-selector-input", value: quantity, ...inputProps }),
|
|
7
|
+
React.createElement(IconButton, { "aria-controls": "quantity-selector-input", "aria-label": "Increment Quantity", "data-quantity-selector-button": "right", ...rightButtonProps })));
|
|
9
8
|
});
|
|
10
9
|
export default QuantitySelector;
|
|
11
10
|
//# sourceMappingURL=QuantitySelector.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuantitySelector.js","sourceRoot":"","sources":["../../../../src/components/molecules/QuantitySelector/QuantitySelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,
|
|
1
|
+
{"version":3,"file":"QuantitySelector.js","sourceRoot":"","sources":["../../../../src/components/molecules/QuantitySelector/QuantitySelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAgCzD,MAAM,gBAAgB,GAAG,UAAU,CACjC,SAAS,gBAAgB,CACvB,EACE,QAAQ,EACR,MAAM,GAAG,yBAAyB,EAClC,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,GAAG,UAAU,EACS,EACxB,GAAG;IAEH,OAAO,CACL,+EAEe,MAAM,EACnB,GAAG,EAAE,GAAG,KACJ,UAAU;QAEd,oBAAC,UAAU,qBACK,yBAAyB,gBAC5B,oBAAoB,mCACD,MAAM,KAChC,eAAe,GACnB;QACF,oBAAC,KAAK,kBACO,UAAU,wCAErB,EAAE,EAAC,yBAAyB,EAC5B,KAAK,EAAE,QAAQ,KACX,UAAU,GACd;QACF,oBAAC,UAAU,qBACK,yBAAyB,gBAC5B,oBAAoB,mCACD,OAAO,KACjC,gBAAgB,GACpB,CACE,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { PropsWithChildren } from 'react';
|
|
2
2
|
import { RadioGroupContext } from './useRadioGroup';
|
|
3
|
-
export
|
|
3
|
+
export type RadioGroupProps = PropsWithChildren<RadioGroupContext>;
|
|
4
4
|
declare const RadioGroup: ({ name, onChange, children, selectedValue, }: RadioGroupProps) => JSX.Element;
|
|
5
5
|
export default RadioGroup;
|
|
@@ -4,7 +4,7 @@ import { useRadioGroup } from './useRadioGroup';
|
|
|
4
4
|
const RadioOption = forwardRef(function RadioOption({ label, value, children, testId = 'store-radio-option', ...otherProps }, ref) {
|
|
5
5
|
const { name, selectedValue, onChange } = useRadioGroup();
|
|
6
6
|
return (React.createElement("label", { "aria-label": label, "data-fs-radio-option": true },
|
|
7
|
-
React.createElement(Radio,
|
|
7
|
+
React.createElement(Radio, { "data-fs-radio-option-item": true, ref: ref, name: name, checked: value === selectedValue, onChange: onChange, value: value, testId: testId, ...otherProps }),
|
|
8
8
|
children));
|
|
9
9
|
});
|
|
10
10
|
export default RadioOption;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioOption.js","sourceRoot":"","sources":["../../../../src/components/molecules/RadioGroup/RadioOption.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAmB/C,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,oBAAoB,EAAE,GAAG,UAAU,EAAE,EACxE,GAAG;IAEH,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CAAA;IAEzD,OAAO,CACL,6CAAmB,KAAK;QACtB,oBAAC,KAAK,
|
|
1
|
+
{"version":3,"file":"RadioOption.js","sourceRoot":"","sources":["../../../../src/components/molecules/RadioGroup/RadioOption.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAmB/C,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,oBAAoB,EAAE,GAAG,UAAU,EAAE,EACxE,GAAG;IAEH,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CAAA;IAEzD,OAAO,CACL,6CAAmB,KAAK;QACtB,oBAAC,KAAK,uCAEJ,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,KAAK,KAAK,aAAa,EAChC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,KACV,UAAU,GACd;QACD,QAAQ,CACH,CACT,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AriaAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
|
|
3
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onSubmit'>;
|
|
4
4
|
export interface SearchInputProps extends InputProps {
|
|
5
5
|
/**
|
|
6
6
|
* Callback function when submitted.
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
2
|
-
import { Icon, Button } from '@faststore/components';
|
|
3
|
-
import Input from '../../atoms/Input';
|
|
2
|
+
import { Icon, Button, Input } from '@faststore/components';
|
|
4
3
|
import Form from '../Form';
|
|
5
4
|
const SearchIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" },
|
|
6
5
|
React.createElement("circle", { cx: "11", cy: "11", r: "8" }),
|
|
@@ -19,7 +18,7 @@ const SearchInput = forwardRef(function SearchInput({ onSubmit, icon, 'aria-labe
|
|
|
19
18
|
formRef: formRef.current,
|
|
20
19
|
}));
|
|
21
20
|
return (React.createElement(Form, { ref: formRef, "data-fs-search-input-form": true, "data-testid": testId, onSubmit: handleSubmit, role: "search" },
|
|
22
|
-
React.createElement(Input,
|
|
21
|
+
React.createElement(Input, { ref: inputRef, "aria-label": ariaLabel, ...otherProps }),
|
|
23
22
|
React.createElement(Button, { type: "submit", "aria-label": "Submit Search" },
|
|
24
23
|
React.createElement(Icon, { component: icon ?? React.createElement(SearchIcon, null) }))));
|
|
25
24
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../../src/components/molecules/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,IAAI,MAAM,SAAS,CAAA;AAE1B,MAAM,UAAU,GAAG,GAAG,EAAE,CAAC,CACvB,6BACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO;IAEtB,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,GAAG,GAAG;IAChC,8BAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,OAAO,EAAC,EAAE,EAAC,OAAO,GAAG,CAC1C,CACP,CAAA;AA6BD,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,QAAQ,EACR,IAAI,EACJ,YAAY,EAAE,SAAS,GAAG,QAAQ,EAClC,MAAM,GAAG,oBAAoB,EAC7B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IAE7C,MAAM,YAAY,GAAG,CAAC,KAAgB,EAAE,EAAE;QACxC,KAAK,CAAC,cAAc,EAAE,CAAA;QAEtB,IAAI,QAAQ,CAAC,OAAO,EAAE,KAAK,KAAK,EAAE,EAAE;YAClC,QAAQ,CAAC,QAAQ,CAAC,OAAQ,CAAC,KAAK,CAAC,CAAA;SAClC;IACH,CAAC,CAAA;IAED,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,QAAQ,EAAE,QAAQ,CAAC,OAAO;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC,CAAA;IAEH,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,OAAO,oDAEC,MAAM,EACnB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAC,QAAQ;QAEb,oBAAC,KAAK,IAAC,GAAG,EAAE,QAAQ,gBAAc,SAAS,KAAM,UAAU,GAAI;QAC/D,oBAAC,MAAM,IAAC,IAAI,EAAC,QAAQ,gBAAY,eAAe;YAC9C,oBAAC,IAAI,IAAC,SAAS,EAAE,IAAI,IAAI,oBAAC,UAAU,OAAG,GAAI,CACpC,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -22,7 +22,7 @@ interface SkuProps {
|
|
|
22
22
|
*/
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
}
|
|
25
|
-
|
|
25
|
+
type Variant = 'label' | 'image';
|
|
26
26
|
export interface SkuSelectorProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
27
|
/**
|
|
28
28
|
* ID to find this component in testing tools (e.g.: cypress,
|
|
@@ -3,7 +3,7 @@ import { Label } from '@faststore/components';
|
|
|
3
3
|
import RadioGroup from '../RadioGroup';
|
|
4
4
|
const SkuSelector = forwardRef(function SkuSelector({ id, label, variant, onChange, testId = 'store-sku-selector', activeValue, children, ...otherProps }, ref) {
|
|
5
5
|
const radioGroupId = id ? `-${id}` : '';
|
|
6
|
-
return (React.createElement("div",
|
|
6
|
+
return (React.createElement("div", { ref: ref, "data-fs-sku-selector": true, "data-testid": testId, "data-fs-sku-selector-variant": variant, ...otherProps },
|
|
7
7
|
label && (React.createElement(Label, { "data-fs-sku-selector-title": true },
|
|
8
8
|
label,
|
|
9
9
|
": ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkuSelector.js","sourceRoot":"","sources":["../../../../src/components/molecules/SkuSelector/SkuSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,UAAU,MAAM,eAAe,CAAA;AA4DtC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,EAAE,EACF,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,GAAG,oBAAoB,EAC7B,WAAW,EACX,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAEvC,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"SkuSelector.js","sourceRoot":"","sources":["../../../../src/components/molecules/SkuSelector/SkuSelector.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAA;AAC7C,OAAO,UAAU,MAAM,eAAe,CAAA;AA4DtC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,EAAE,EACF,KAAK,EACL,OAAO,EACP,QAAQ,EACR,MAAM,GAAG,oBAAoB,EAC7B,WAAW,EACX,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,YAAY,GAAG,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAA;IAEvC,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,+CAEK,MAAM,kCACW,OAAO,KACjC,UAAU;QAEb,KAAK,IAAI,CACR,oBAAC,KAAK;YACH,KAAK;;YAAG,oCAAS,WAAW,CAAU,CACjC,CACT;QACD,oBAAC,UAAU,IACT,aAAa,EAAE,WAAW,EAC1B,IAAI,EAAE,gBAAgB,OAAO,GAAG,YAAY,EAAE,EAC9C,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;gBACd,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAA;YACf,CAAC,IAEA,QAAQ,CACE,CACT,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ReactNode, FormHTMLAttributes } from 'react';
|
|
3
|
-
export
|
|
3
|
+
export type OutOfStockBaseProps = {
|
|
4
4
|
/**
|
|
5
5
|
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
6
|
* testing-library, and jest).
|
|
@@ -11,7 +11,7 @@ export declare type OutOfStockBaseProps = {
|
|
|
11
11
|
*/
|
|
12
12
|
children: string | ReactNode;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type OutOfStockProps = OutOfStockBaseProps & {
|
|
15
15
|
/**
|
|
16
16
|
* Event emitted when form is submitted.
|
|
17
17
|
*/
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import Form from '../../molecules/Form';
|
|
3
3
|
const OutOfStock = ({ testId = 'store-out-of-stock', children, ...otherProps }) => {
|
|
4
4
|
return (React.createElement("section", { "data-fs-out-of-stock": true, "data-testid": testId },
|
|
5
|
-
React.createElement(Form,
|
|
5
|
+
React.createElement(Form, { "data-out-of-stock-form": true, testId: `${testId}-form`, ...otherProps }, children)));
|
|
6
6
|
};
|
|
7
7
|
export default OutOfStock;
|
|
8
8
|
//# sourceMappingURL=OutOfStock.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfStock.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,IAAI,MAAM,sBAAsB,CAAA;AAqBvC,MAAM,UAAU,GAAG,CAAC,EAClB,MAAM,GAAG,oBAAoB,EAC7B,QAAQ,EACR,GAAG,UAAU,EACG,EAAE,EAAE;IACpB,OAAO,CACL,8EAA2C,MAAM;QAC/C,oBAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"OutOfStock.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,IAAI,MAAM,sBAAsB,CAAA;AAqBvC,MAAM,UAAU,GAAG,CAAC,EAClB,MAAM,GAAG,oBAAoB,EAC7B,QAAQ,EACR,GAAG,UAAU,EACG,EAAE,EAAE;IACpB,OAAO,CACL,8EAA2C,MAAM;QAC/C,oBAAC,IAAI,oCAAwB,MAAM,EAAE,GAAG,MAAM,OAAO,KAAM,UAAU,IAClE,QAAQ,CACJ,CACC,CACX,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export const OutOfStockMessage = ({ as: MessageComponent = 'p', testId = 'store-out-of-stock-message', children, ...otherProps }) => {
|
|
3
|
-
return (React.createElement(MessageComponent,
|
|
3
|
+
return (React.createElement(MessageComponent, { "data-out-of-stock-message": true, "data-testid": testId, ...otherProps }, children));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=OutOfStockMessage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfStockMessage.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStockMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,EAAE,EAAE,gBAAgB,GAAG,GAAG,EAC1B,MAAM,GAAG,4BAA4B,EACrC,QAAQ,EACR,GAAG,UAAU,EACU,EAAE,EAAE;IAC3B,OAAO,CACL,oBAAC,gBAAgB,
|
|
1
|
+
{"version":3,"file":"OutOfStockMessage.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStockMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAChC,EAAE,EAAE,gBAAgB,GAAG,GAAG,EAC1B,MAAM,GAAG,4BAA4B,EACrC,QAAQ,EACR,GAAG,UAAU,EACU,EAAE,EAAE;IAC3B,OAAO,CACL,oBAAC,gBAAgB,sDAEF,MAAM,KACf,UAAU,IAEb,QAAQ,CACQ,CACpB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export const OutOfStockTitle = ({ as: TitleComponent = 'h2', testId = 'store-out-of-stock-title', children, ...otherProps }) => {
|
|
3
|
-
return (React.createElement(TitleComponent,
|
|
3
|
+
return (React.createElement(TitleComponent, { "data-out-of-stock-title": true, "data-testid": testId, ...otherProps }, children));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=OutOfStockTitle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OutOfStockTitle.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStockTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,EAAE,EAAE,cAAc,GAAG,IAAI,EACzB,MAAM,GAAG,0BAA0B,EACnC,QAAQ,EACR,GAAG,UAAU,EACQ,EAAE,EAAE;IACzB,OAAO,CACL,oBAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"OutOfStockTitle.js","sourceRoot":"","sources":["../../../../src/components/organisms/OutOfStock/OutOfStockTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAWzB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAC9B,EAAE,EAAE,cAAc,GAAG,IAAI,EACzB,MAAM,GAAG,0BAA0B,EACnC,QAAQ,EACR,GAAG,UAAU,EACQ,EAAE,EAAE;IACzB,OAAO,CACL,oBAAC,cAAc,oDAEA,MAAM,KACf,UAAU,IAEb,QAAQ,CACM,CAClB,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef } from 'react';
|
|
2
2
|
const Tile = forwardRef(function Tile({ testId = 'store-tile', children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("li",
|
|
3
|
+
return (React.createElement("li", { ref: ref, "data-fs-tile": true, "data-testid": testId, ...otherProps }, children));
|
|
4
4
|
});
|
|
5
5
|
export default Tile;
|
|
6
6
|
//# sourceMappingURL=Tile.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,IAAI,GAAG,UAAU,CAA2B,SAAS,IAAI,CAC7D,EAAE,MAAM,GAAG,YAAY,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClD,GAAG;IAEH,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"Tile.js","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,IAAI,GAAG,UAAU,CAA2B,SAAS,IAAI,CAC7D,EAAE,MAAM,GAAG,YAAY,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClD,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,uCAA4B,MAAM,KAAM,UAAU,IAC3D,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -24,7 +24,7 @@ const Tiles = forwardRef(function Tiles({ testId = 'store-tiles', children, ...o
|
|
|
24
24
|
: childrenCount === NUMBER_ITEMS_TO_EXPAND_FIRST_TWO
|
|
25
25
|
? 'expanded-first-two'
|
|
26
26
|
: '';
|
|
27
|
-
return (React.createElement("ul",
|
|
27
|
+
return (React.createElement("ul", { ref: ref, "data-fs-tiles": true, "data-fs-tiles-variant": expandedClass, "data-testid": testId, ...otherProps }, children));
|
|
28
28
|
});
|
|
29
29
|
export default Tiles;
|
|
30
30
|
//# sourceMappingURL=Tiles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tiles.js","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGnD,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAA;AAUxB,MAAM,YAAY,GAAG,CAAC,CAAA;AACtB,MAAM,YAAY,GAAG,CAAC,CAAA;AACtB,MAAM,gCAAgC,GAAG,CAAC,CAAA;AAC1C,MAAM,4BAA4B,GAAG,CAAC,CAAA;AAEtC,MAAM,KAAK,GAAG,UAAU,CAA+B,SAAS,KAAK,CACnE,EAAE,MAAM,GAAG,aAAa,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACnD,GAAG;IAEH,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAE9C,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC1C,MAAM,aAAa,GACjB,aAAa,GAAG,YAAY,IAAI,aAAa,GAAG,YAAY,CAAA;QAE9D,IAAI,aAAa,EAAE;YACjB,MAAM,IAAI,KAAK,CACb,kCAAkC,YAAY,iBAAiB,YAAY,YAAY,CACxF,CAAA;SACF;KACF;IAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC1C,QAAQ,CAAC,OAAO,CAAC,QAAwB,EAAE,CAAC,KAAK,EAAE,EAAE;YACnD,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;gBACvB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;aAC7D;QACH,CAAC,CAAC,CAAA;KACH;IAED,MAAM,aAAa,GACjB,aAAa,KAAK,4BAA4B;QAC5C,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,aAAa,KAAK,gCAAgC;YACpD,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAC,EAAE,CAAA;IAER,OAAO,CACL,
|
|
1
|
+
{"version":3,"file":"Tiles.js","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGnD,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAA;AAUxB,MAAM,YAAY,GAAG,CAAC,CAAA;AACtB,MAAM,YAAY,GAAG,CAAC,CAAA;AACtB,MAAM,gCAAgC,GAAG,CAAC,CAAA;AAC1C,MAAM,4BAA4B,GAAG,CAAC,CAAA;AAEtC,MAAM,KAAK,GAAG,UAAU,CAA+B,SAAS,KAAK,CACnE,EAAE,MAAM,GAAG,aAAa,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACnD,GAAG;IAEH,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAA;IAE9C,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC1C,MAAM,aAAa,GACjB,aAAa,GAAG,YAAY,IAAI,aAAa,GAAG,YAAY,CAAA;QAE9D,IAAI,aAAa,EAAE;YACjB,MAAM,IAAI,KAAK,CACb,kCAAkC,YAAY,iBAAiB,YAAY,YAAY,CACxF,CAAA;SACF;KACF;IAED,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QAC1C,QAAQ,CAAC,OAAO,CAAC,QAAwB,EAAE,CAAC,KAAK,EAAE,EAAE;YACnD,IAAI,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;gBACvB,MAAM,IAAI,KAAK,CAAC,2CAA2C,CAAC,CAAA;aAC7D;QACH,CAAC,CAAC,CAAA;KACH;IAED,MAAM,aAAa,GACjB,aAAa,KAAK,4BAA4B;QAC5C,CAAC,CAAC,gBAAgB;QAClB,CAAC,CAAC,aAAa,KAAK,gCAAgC;YACpD,CAAC,CAAC,oBAAoB;YACtB,CAAC,CAAC,EAAE,CAAA;IAER,OAAO,CACL,4BACE,GAAG,EAAE,GAAG,kDAEe,aAAa,iBACvB,MAAM,KACf,UAAU,IAEb,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ElementType, ReactElement } from 'react';
|
|
2
|
+
import type { PolymorphicComponentPropsWithRef } from '../../typings';
|
|
3
|
+
interface BaseProps {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
6
|
+
*/
|
|
7
|
+
testId?: string;
|
|
8
|
+
/**
|
|
9
|
+
* Specify whether or not this component should display the list's markers (bullets or numbers).
|
|
10
|
+
*/
|
|
11
|
+
marker?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare type ListProps<T extends ElementType> = PolymorphicComponentPropsWithRef<T, BaseProps>;
|
|
14
|
+
declare type ListComponent = <T extends ElementType = 'ul'>(props: ListProps<T>) => ReactElement | null;
|
|
15
|
+
declare const List: ListComponent;
|
|
16
|
+
export default List;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const List = forwardRef(function List({ as, marker, testId = 'fs-list', ...otherProps }, ref) {
|
|
3
|
+
const Component = as ?? 'ul';
|
|
4
|
+
return (React.createElement(Component, Object.assign({ ref: ref, "data-fs-list": true, "data-testid": testId, "data-fs-list-marker": marker }, otherProps)));
|
|
5
|
+
});
|
|
6
|
+
export default List;
|
|
7
|
+
//# sourceMappingURL=List.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.js","sourceRoot":"","sources":["../../../../../../components/src/atoms/List/List.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AA4BzC,MAAM,IAAI,GAAkB,UAAU,CAAC,SAAS,IAAI,CAGlD,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,UAAU,EAAgB,EAC/D,GAAsB;IAEtB,MAAM,SAAS,GAAG,EAAE,IAAI,IAAI,CAAA;IAE5B,OAAO,CACL,oBAAC,SAAS,kBACR,GAAG,EAAE,GAAG,uCAEK,MAAM,yBACE,MAAM,IACvB,UAAU,EACd,CACH,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../components/src/atoms/List/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
|