@faststore/ui 1.12.20 → 2.0.0-alpha.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/CHANGELOG.md +9 -0
- package/dist/{atoms/Icon/stories/assets → assets}/ShoppingCart.d.ts +0 -0
- package/dist/assets/ShoppingCart.js +10 -0
- package/dist/assets/ShoppingCart.js.map +1 -0
- package/dist/assets/X.d.ts +3 -0
- package/dist/assets/X.js +8 -0
- package/dist/assets/X.js.map +1 -0
- package/dist/assets/index.d.ts +2 -0
- package/dist/assets/index.js +3 -0
- package/dist/assets/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Incentive/Incentive.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Incentive/Incentive.js +0 -0
- package/dist/components/atoms/Incentive/Incentive.js.map +1 -0
- package/dist/{atoms → components/atoms}/Incentive/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Incentive/index.js +0 -0
- package/dist/components/atoms/Incentive/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Incentive/stories/assets/Icons.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Incentive/stories/assets/Icons.js +0 -0
- package/dist/components/atoms/Incentive/stories/assets/Icons.js.map +1 -0
- package/dist/{atoms → components/atoms}/Input/Input.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Input/Input.js +0 -0
- package/dist/components/atoms/Input/Input.js.map +1 -0
- package/dist/{atoms → components/atoms}/Input/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Input/index.js +0 -0
- package/dist/components/atoms/Input/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Link/Link.d.ts +1 -1
- package/dist/{atoms → components/atoms}/Link/Link.js +0 -0
- package/dist/components/atoms/Link/Link.js.map +1 -0
- package/dist/{atoms → components/atoms}/Link/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Link/index.js +0 -0
- package/dist/components/atoms/Link/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/List/List.d.ts +0 -0
- package/dist/{atoms → components/atoms}/List/List.js +0 -0
- package/dist/components/atoms/List/List.js.map +1 -0
- package/dist/{atoms → components/atoms}/List/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/List/index.js +0 -0
- package/dist/components/atoms/List/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Overlay/Overlay.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Overlay/Overlay.js +0 -0
- package/dist/components/atoms/Overlay/Overlay.js.map +1 -0
- package/dist/{atoms → components/atoms}/Overlay/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Overlay/index.js +0 -0
- package/dist/components/atoms/Overlay/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Popover/Popover.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Popover/Popover.js +0 -0
- package/dist/components/atoms/Popover/Popover.js.map +1 -0
- package/dist/{atoms → components/atoms}/Popover/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Popover/index.js +0 -0
- package/dist/components/atoms/Popover/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Price/Price.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Price/Price.js +0 -0
- package/dist/components/atoms/Price/Price.js.map +1 -0
- package/dist/{atoms → components/atoms}/Price/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Price/index.js +0 -0
- package/dist/components/atoms/Price/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Select/Select.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Select/Select.js +0 -0
- package/dist/components/atoms/Select/Select.js.map +1 -0
- package/dist/{atoms → components/atoms}/Select/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Select/index.js +0 -0
- package/dist/components/atoms/Select/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Skeleton/Skeleton.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Skeleton/Skeleton.js +0 -0
- package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -0
- package/dist/{atoms → components/atoms}/Skeleton/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Skeleton/index.js +0 -0
- package/dist/components/atoms/Skeleton/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Slider/Slider.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Slider/Slider.js +0 -0
- package/dist/components/atoms/Slider/Slider.js.map +1 -0
- package/dist/{atoms → components/atoms}/Slider/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Slider/index.js +0 -0
- package/dist/components/atoms/Slider/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/Spinner/Spinner.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Spinner/Spinner.js +0 -0
- package/dist/components/atoms/Spinner/Spinner.js.map +1 -0
- package/dist/{atoms → components/atoms}/Spinner/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/Spinner/index.js +0 -0
- package/dist/components/atoms/Spinner/index.js.map +1 -0
- package/dist/{atoms → components/atoms}/TextArea/TextArea.d.ts +0 -0
- package/dist/{atoms → components/atoms}/TextArea/TextArea.js +0 -0
- package/dist/components/atoms/TextArea/TextArea.js.map +1 -0
- package/dist/{atoms → components/atoms}/TextArea/index.d.ts +0 -0
- package/dist/{atoms → components/atoms}/TextArea/index.js +0 -0
- package/dist/components/atoms/TextArea/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Accordion/Accordion.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Accordion/Accordion.js +0 -0
- package/dist/components/molecules/Accordion/Accordion.js.map +1 -0
- package/dist/{molecules → components/molecules}/Accordion/AccordionButton.d.ts +2 -2
- package/dist/{molecules → components/molecules}/Accordion/AccordionButton.js +1 -1
- package/dist/components/molecules/Accordion/AccordionButton.js.map +1 -0
- package/dist/{molecules → components/molecules}/Accordion/AccordionItem.d.ts +1 -1
- package/dist/{molecules → components/molecules}/Accordion/AccordionItem.js +0 -0
- package/dist/components/molecules/Accordion/AccordionItem.js.map +1 -0
- package/dist/{molecules → components/molecules}/Accordion/AccordionPanel.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Accordion/AccordionPanel.js +0 -0
- package/dist/components/molecules/Accordion/AccordionPanel.js.map +1 -0
- package/dist/{molecules → components/molecules}/Accordion/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Accordion/index.js +0 -0
- package/dist/components/molecules/Accordion/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/AggregateRating/AggregateRating.d.ts +0 -0
- package/dist/{molecules → components/molecules}/AggregateRating/AggregateRating.js +0 -0
- package/dist/components/molecules/AggregateRating/AggregateRating.js.map +1 -0
- package/dist/{molecules → components/molecules}/AggregateRating/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/AggregateRating/index.js +0 -0
- package/dist/components/molecules/AggregateRating/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Alert/Alert.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Alert/Alert.js +0 -0
- package/dist/components/molecules/Alert/Alert.js.map +1 -0
- package/dist/{molecules → components/molecules}/Alert/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Alert/index.js +0 -0
- package/dist/components/molecules/Alert/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Banner/Banner.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Banner/Banner.js +0 -0
- package/dist/components/molecules/Banner/Banner.js.map +1 -0
- package/dist/{molecules → components/molecules}/Banner/BannerContent.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Banner/BannerContent.js +0 -0
- package/dist/components/molecules/Banner/BannerContent.js.map +1 -0
- package/dist/{molecules → components/molecules}/Banner/BannerImage.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Banner/BannerImage.js +0 -0
- package/dist/components/molecules/Banner/BannerImage.js.map +1 -0
- package/dist/{molecules → components/molecules}/Banner/BannerLink.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Banner/BannerLink.js +0 -0
- package/dist/components/molecules/Banner/BannerLink.js.map +1 -0
- package/dist/{molecules → components/molecules}/Banner/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Banner/index.js +0 -0
- package/dist/components/molecules/Banner/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Breadcrumb/Breadcrumb.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Breadcrumb/Breadcrumb.js +0 -0
- package/dist/components/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/{molecules → components/molecules}/Breadcrumb/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Breadcrumb/index.js +0 -0
- package/dist/components/molecules/Breadcrumb/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Bullets/Bullets.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Bullets/Bullets.js +2 -2
- package/dist/components/molecules/Bullets/Bullets.js.map +1 -0
- package/dist/{molecules → components/molecules}/Bullets/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Bullets/index.js +0 -0
- package/dist/components/molecules/Bullets/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Card/Card.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Card/Card.js +0 -0
- package/dist/components/molecules/Card/Card.js.map +1 -0
- package/dist/{molecules → components/molecules}/Card/CardActions.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Card/CardActions.js +0 -0
- package/dist/components/molecules/Card/CardActions.js.map +1 -0
- package/dist/{molecules → components/molecules}/Card/CardContent.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Card/CardContent.js +0 -0
- package/dist/components/molecules/Card/CardContent.js.map +1 -0
- package/dist/{molecules → components/molecules}/Card/CardImage.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Card/CardImage.js +0 -0
- package/dist/components/molecules/Card/CardImage.js.map +1 -0
- package/dist/{molecules → components/molecules}/Card/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Card/index.js +0 -0
- package/dist/components/molecules/Card/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Carousel/Arrows.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Carousel/Arrows.js +0 -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/{molecules → components/molecules}/Carousel/hooks/useSlideVisibility.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Carousel/hooks/useSlideVisibility.js +0 -0
- package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
- package/dist/{molecules → components/molecules}/Carousel/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Carousel/index.js +0 -0
- package/dist/components/molecules/Carousel/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItem.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItem.js +0 -0
- package/dist/components/molecules/CartItem/CartItem.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemActions.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemActions.js +0 -0
- package/dist/components/molecules/CartItem/CartItemActions.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemContent.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemContent.js +0 -0
- package/dist/components/molecules/CartItem/CartItemContent.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemImage.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemImage.js +0 -0
- package/dist/components/molecules/CartItem/CartItemImage.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemPrices.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemPrices.js +0 -0
- package/dist/components/molecules/CartItem/CartItemPrices.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemSummary.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemSummary.js +0 -0
- package/dist/components/molecules/CartItem/CartItemSummary.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemTitle.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/CartItemTitle.js +0 -0
- package/dist/components/molecules/CartItem/CartItemTitle.js.map +1 -0
- package/dist/{molecules → components/molecules}/CartItem/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/CartItem/index.js +0 -0
- package/dist/components/molecules/CartItem/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/Dropdown.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/Dropdown.js +0 -0
- package/dist/components/molecules/Dropdown/Dropdown.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/DropdownButton.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/DropdownButton.js +0 -0
- package/dist/components/molecules/Dropdown/DropdownButton.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/DropdownItem.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/DropdownItem.js +0 -0
- package/dist/components/molecules/Dropdown/DropdownItem.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/DropdownMenu.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/DropdownMenu.js +0 -0
- package/dist/components/molecules/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/contexts/DropdownContext.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/contexts/DropdownContext.js +0 -0
- package/dist/components/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/hooks/useDropdown.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/hooks/useDropdown.js +0 -0
- package/dist/components/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/hooks/useDropdownPosition.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/hooks/useDropdownPosition.js +0 -0
- package/dist/components/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/index.js +0 -0
- package/dist/components/molecules/Dropdown/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Dropdown/stories/assets/Caret.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Dropdown/stories/assets/Caret.js +0 -0
- package/dist/components/molecules/Dropdown/stories/assets/Caret.js.map +1 -0
- package/dist/{molecules → components/molecules}/Form/Form.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Form/Form.js +0 -0
- package/dist/components/molecules/Form/Form.js.map +1 -0
- package/dist/{molecules → components/molecules}/Form/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Form/index.js +0 -0
- package/dist/components/molecules/Form/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Gift/Gift.d.ts +1 -2
- package/dist/{molecules → components/molecules}/Gift/Gift.js +1 -1
- package/dist/components/molecules/Gift/Gift.js.map +1 -0
- package/dist/{molecules → components/molecules}/Gift/GiftContent.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Gift/GiftContent.js +0 -0
- package/dist/components/molecules/Gift/GiftContent.js.map +1 -0
- package/dist/{molecules → components/molecules}/Gift/GiftImage.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Gift/GiftImage.js +0 -0
- package/dist/components/molecules/Gift/GiftImage.js.map +1 -0
- package/dist/{molecules → components/molecules}/Gift/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Gift/index.js +0 -0
- package/dist/components/molecules/Gift/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/LoadingButton/LoadingButton.d.ts +1 -1
- package/dist/{molecules → components/molecules}/LoadingButton/LoadingButton.js +1 -1
- package/dist/components/molecules/LoadingButton/LoadingButton.js.map +1 -0
- package/dist/{molecules → components/molecules}/LoadingButton/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/LoadingButton/index.js +0 -0
- package/dist/components/molecules/LoadingButton/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Modal/Modal.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Modal/Modal.js +0 -0
- package/dist/components/molecules/Modal/Modal.js.map +1 -0
- package/dist/{molecules → components/molecules}/Modal/ModalContent.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Modal/ModalContent.js +0 -0
- package/dist/components/molecules/Modal/ModalContent.js.map +1 -0
- package/dist/{molecules → components/molecules}/Modal/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Modal/index.js +0 -0
- package/dist/components/molecules/Modal/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Modal/useTrapFocus.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Modal/useTrapFocus.js +0 -0
- package/dist/components/molecules/Modal/useTrapFocus.js.map +1 -0
- package/dist/{molecules → components/molecules}/OrderSummary/OrderSummary.d.ts +0 -0
- package/dist/{molecules → components/molecules}/OrderSummary/OrderSummary.js +0 -0
- package/dist/components/molecules/OrderSummary/OrderSummary.js.map +1 -0
- package/dist/{molecules → components/molecules}/OrderSummary/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/OrderSummary/index.js +0 -0
- package/dist/components/molecules/OrderSummary/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/PaymentMethods/PaymentMethods.d.ts +0 -0
- package/dist/{molecules → components/molecules}/PaymentMethods/PaymentMethods.js +0 -0
- package/dist/components/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
- package/dist/{molecules → components/molecules}/PaymentMethods/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/PaymentMethods/index.js +0 -0
- package/dist/components/molecules/PaymentMethods/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/PaymentMethods/stories/assets/Icons.d.ts +0 -0
- package/dist/{molecules → components/molecules}/PaymentMethods/stories/assets/Icons.js +0 -0
- package/dist/components/molecules/PaymentMethods/stories/assets/Icons.js.map +1 -0
- package/dist/{molecules → components/molecules}/PriceRange/PriceRange.d.ts +0 -0
- package/dist/{molecules → components/molecules}/PriceRange/PriceRange.js +0 -0
- package/dist/components/molecules/PriceRange/PriceRange.js.map +1 -0
- package/dist/{molecules → components/molecules}/PriceRange/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/PriceRange/index.js +0 -0
- package/dist/components/molecules/PriceRange/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCard.d.ts +0 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCard.js +0 -0
- package/dist/components/molecules/ProductCard/ProductCard.js.map +1 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCardActions.d.ts +0 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCardActions.js +0 -0
- package/dist/components/molecules/ProductCard/ProductCardActions.js.map +1 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCardContent.d.ts +0 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCardContent.js +0 -0
- package/dist/components/molecules/ProductCard/ProductCardContent.js.map +1 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCardImage.d.ts +0 -0
- package/dist/{molecules → components/molecules}/ProductCard/ProductCardImage.js +0 -0
- package/dist/components/molecules/ProductCard/ProductCardImage.js.map +1 -0
- package/dist/{molecules → components/molecules}/ProductCard/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/ProductCard/index.js +0 -0
- package/dist/components/molecules/ProductCard/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/ProductTitle/ProductTitle.d.ts +0 -0
- package/dist/{molecules → components/molecules}/ProductTitle/ProductTitle.js +0 -0
- package/dist/components/molecules/ProductTitle/ProductTitle.js.map +1 -0
- package/dist/{molecules → components/molecules}/ProductTitle/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/ProductTitle/index.js +0 -0
- package/dist/components/molecules/ProductTitle/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/QuantitySelector/QuantitySelector.d.ts +1 -1
- package/dist/{molecules → components/molecules}/QuantitySelector/QuantitySelector.js +1 -1
- package/dist/components/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
- package/dist/{molecules → components/molecules}/QuantitySelector/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/QuantitySelector/index.js +0 -0
- package/dist/components/molecules/QuantitySelector/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/QuantitySelector/stories/assets/Icons.d.ts +0 -0
- package/dist/{molecules → components/molecules}/QuantitySelector/stories/assets/Icons.js +0 -0
- package/dist/components/molecules/QuantitySelector/stories/assets/Icons.js.map +1 -0
- package/dist/{molecules → components/molecules}/RadioGroup/RadioGroup.d.ts +0 -0
- package/dist/{molecules → components/molecules}/RadioGroup/RadioGroup.js +0 -0
- package/dist/components/molecules/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/{molecules → components/molecules}/RadioGroup/RadioOption.d.ts +0 -0
- package/dist/{molecules → components/molecules}/RadioGroup/RadioOption.js +1 -1
- package/dist/components/molecules/RadioGroup/RadioOption.js.map +1 -0
- package/dist/{molecules → components/molecules}/RadioGroup/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/RadioGroup/index.js +0 -0
- package/dist/components/molecules/RadioGroup/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/RadioGroup/useRadioGroup.d.ts +0 -0
- package/dist/{molecules → components/molecules}/RadioGroup/useRadioGroup.js +0 -0
- package/dist/components/molecules/RadioGroup/useRadioGroup.js.map +1 -0
- package/dist/{molecules → components/molecules}/SearchInput/SearchInput.d.ts +0 -0
- package/dist/{molecules → components/molecules}/SearchInput/SearchInput.js +2 -3
- package/dist/components/molecules/SearchInput/SearchInput.js.map +1 -0
- package/dist/{molecules → components/molecules}/SearchInput/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/SearchInput/index.js +0 -0
- package/dist/components/molecules/SearchInput/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/SearchInput/stories/assets/CustomIcon.d.ts +0 -0
- package/dist/{molecules → components/molecules}/SearchInput/stories/assets/CustomIcon.js +0 -0
- package/dist/components/molecules/SearchInput/stories/assets/CustomIcon.js.map +1 -0
- package/dist/{molecules → components/molecules}/SkuSelector/SkuSelector.d.ts +1 -1
- package/dist/{molecules → components/molecules}/SkuSelector/SkuSelector.js +2 -1
- package/dist/components/molecules/SkuSelector/SkuSelector.js.map +1 -0
- package/dist/{molecules → components/molecules}/SkuSelector/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/SkuSelector/index.js +0 -0
- package/dist/components/molecules/SkuSelector/index.js.map +1 -0
- package/dist/{molecules → components/molecules}/Table/Table.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Table/Table.js +0 -0
- package/dist/components/molecules/Table/Table.js.map +1 -0
- package/dist/{molecules → components/molecules}/Table/TableBody.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Table/TableBody.js +0 -0
- package/dist/components/molecules/Table/TableBody.js.map +1 -0
- package/dist/{molecules → components/molecules}/Table/TableCell.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Table/TableCell.js +0 -0
- package/dist/components/molecules/Table/TableCell.js.map +1 -0
- package/dist/{molecules → components/molecules}/Table/TableFooter.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Table/TableFooter.js +0 -0
- package/dist/components/molecules/Table/TableFooter.js.map +1 -0
- package/dist/{molecules → components/molecules}/Table/TableHead.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Table/TableHead.js +0 -0
- package/dist/components/molecules/Table/TableHead.js.map +1 -0
- package/dist/{molecules → components/molecules}/Table/TableRow.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Table/TableRow.js +0 -0
- package/dist/components/molecules/Table/TableRow.js.map +1 -0
- package/dist/{molecules → components/molecules}/Table/index.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Table/index.js +0 -0
- package/dist/components/molecules/Table/index.js.map +1 -0
- package/dist/{organisms → components/organisms}/Hero/Hero.d.ts +0 -0
- package/dist/{organisms → components/organisms}/Hero/Hero.js +0 -0
- package/dist/components/organisms/Hero/Hero.js.map +1 -0
- package/dist/{organisms → components/organisms}/Hero/HeroHeading.d.ts +0 -0
- package/dist/{organisms → components/organisms}/Hero/HeroHeading.js +0 -0
- package/dist/components/organisms/Hero/HeroHeading.js.map +1 -0
- package/dist/{organisms → components/organisms}/Hero/HeroImage.d.ts +0 -0
- package/dist/{organisms → components/organisms}/Hero/HeroImage.js +0 -0
- package/dist/components/organisms/Hero/HeroImage.js.map +1 -0
- package/dist/{organisms → components/organisms}/Hero/index.d.ts +0 -0
- package/dist/{organisms → components/organisms}/Hero/index.js +0 -0
- package/dist/components/organisms/Hero/index.js.map +1 -0
- package/dist/{organisms → components/organisms}/OutOfStock/OutOfStock.d.ts +0 -0
- package/dist/{organisms → components/organisms}/OutOfStock/OutOfStock.js +0 -0
- package/dist/components/organisms/OutOfStock/OutOfStock.js.map +1 -0
- package/dist/{organisms → components/organisms}/OutOfStock/OutOfStockMessage.d.ts +0 -0
- package/dist/{organisms → components/organisms}/OutOfStock/OutOfStockMessage.js +0 -0
- package/dist/components/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
- package/dist/{organisms → components/organisms}/OutOfStock/OutOfStockTitle.d.ts +0 -0
- package/dist/{organisms → components/organisms}/OutOfStock/OutOfStockTitle.js +0 -0
- package/dist/components/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
- package/dist/{organisms → components/organisms}/OutOfStock/index.d.ts +0 -0
- package/dist/{organisms → components/organisms}/OutOfStock/index.js +0 -0
- package/dist/components/organisms/OutOfStock/index.js.map +1 -0
- package/dist/{organisms → components/organisms}/Tiles/Tile.d.ts +0 -0
- package/dist/{organisms → components/organisms}/Tiles/Tile.js +0 -0
- package/dist/components/organisms/Tiles/Tile.js.map +1 -0
- package/dist/{organisms → components/organisms}/Tiles/Tiles.d.ts +0 -0
- package/dist/{organisms → components/organisms}/Tiles/Tiles.js +0 -0
- package/dist/components/organisms/Tiles/Tiles.js.map +1 -0
- package/dist/{organisms → components/organisms}/Tiles/index.d.ts +0 -0
- package/dist/{organisms → components/organisms}/Tiles/index.js +0 -0
- package/dist/components/organisms/Tiles/index.js.map +1 -0
- package/dist/hooks/useSlider/useSlider.d.ts +3 -1
- package/dist/hooks/useSlider/useSlider.js +5 -10
- package/dist/hooks/useSlider/useSlider.js.map +1 -1
- package/dist/index.d.ts +79 -92
- package/dist/index.js +40 -46
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
- package/src/hooks/useSlider/useSlider.ts +8 -9
- package/src/molecules/Bullets/Bullets.test.tsx +5 -5
- package/src/molecules/Bullets/Bullets.tsx +3 -3
- package/src/molecules/Bullets/stories/Bullets.mdx +2 -2
- package/src/molecules/Carousel/Carousel.test.tsx +55 -52
- package/src/molecules/Carousel/Carousel.tsx +217 -85
- package/src/molecules/Carousel/CarouselItem.tsx +54 -0
- package/src/molecules/Carousel/stories/Carousel.mdx +7 -7
- package/src/molecules/Carousel/stories/Carousel.stories.tsx +6 -6
- package/dist/atoms/Badge/Badge.d.ts +0 -11
- package/dist/atoms/Badge/Badge.js +0 -6
- package/dist/atoms/Badge/Badge.js.map +0 -1
- package/dist/atoms/Badge/index.d.ts +0 -2
- package/dist/atoms/Badge/index.js +0 -2
- package/dist/atoms/Badge/index.js.map +0 -1
- package/dist/atoms/Button/Button.d.ts +0 -10
- package/dist/atoms/Button/Button.js +0 -6
- package/dist/atoms/Button/Button.js.map +0 -1
- package/dist/atoms/Button/index.d.ts +0 -2
- package/dist/atoms/Button/index.js +0 -2
- package/dist/atoms/Button/index.js.map +0 -1
- package/dist/atoms/Checkbox/Checkbox.d.ts +0 -10
- package/dist/atoms/Checkbox/Checkbox.js +0 -6
- package/dist/atoms/Checkbox/Checkbox.js.map +0 -1
- package/dist/atoms/Checkbox/index.d.ts +0 -2
- package/dist/atoms/Checkbox/index.js +0 -2
- package/dist/atoms/Checkbox/index.js.map +0 -1
- package/dist/atoms/Icon/Icon.d.ts +0 -14
- package/dist/atoms/Icon/Icon.js +0 -6
- package/dist/atoms/Icon/Icon.js.map +0 -1
- package/dist/atoms/Icon/index.d.ts +0 -2
- package/dist/atoms/Icon/index.js +0 -2
- package/dist/atoms/Icon/index.js.map +0 -1
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js +0 -8
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js.map +0 -1
- package/dist/atoms/Incentive/Incentive.js.map +0 -1
- package/dist/atoms/Incentive/index.js.map +0 -1
- package/dist/atoms/Incentive/stories/assets/Icons.js.map +0 -1
- package/dist/atoms/Input/Input.js.map +0 -1
- package/dist/atoms/Input/index.js.map +0 -1
- package/dist/atoms/Label/Label.d.ts +0 -10
- package/dist/atoms/Label/Label.js +0 -6
- package/dist/atoms/Label/Label.js.map +0 -1
- package/dist/atoms/Label/index.d.ts +0 -2
- package/dist/atoms/Label/index.js +0 -2
- package/dist/atoms/Label/index.js.map +0 -1
- package/dist/atoms/Link/Link.js.map +0 -1
- package/dist/atoms/Link/index.js.map +0 -1
- package/dist/atoms/List/List.js.map +0 -1
- package/dist/atoms/List/index.js.map +0 -1
- package/dist/atoms/Overlay/Overlay.js.map +0 -1
- package/dist/atoms/Overlay/index.js.map +0 -1
- package/dist/atoms/Popover/Popover.js.map +0 -1
- package/dist/atoms/Popover/index.js.map +0 -1
- package/dist/atoms/Price/Price.js.map +0 -1
- package/dist/atoms/Price/index.js.map +0 -1
- package/dist/atoms/Radio/Radio.d.ts +0 -7
- package/dist/atoms/Radio/Radio.js +0 -6
- package/dist/atoms/Radio/Radio.js.map +0 -1
- package/dist/atoms/Radio/index.d.ts +0 -2
- package/dist/atoms/Radio/index.js +0 -2
- package/dist/atoms/Radio/index.js.map +0 -1
- package/dist/atoms/Select/Select.js.map +0 -1
- package/dist/atoms/Select/index.js.map +0 -1
- package/dist/atoms/Skeleton/Skeleton.js.map +0 -1
- package/dist/atoms/Skeleton/index.js.map +0 -1
- package/dist/atoms/Slider/Slider.js.map +0 -1
- package/dist/atoms/Slider/index.js.map +0 -1
- package/dist/atoms/Spinner/Spinner.js.map +0 -1
- package/dist/atoms/Spinner/index.js.map +0 -1
- package/dist/atoms/TextArea/TextArea.js.map +0 -1
- package/dist/atoms/TextArea/index.js.map +0 -1
- package/dist/molecules/Accordion/Accordion.js.map +0 -1
- package/dist/molecules/Accordion/AccordionButton.js.map +0 -1
- package/dist/molecules/Accordion/AccordionItem.js.map +0 -1
- package/dist/molecules/Accordion/AccordionPanel.js.map +0 -1
- package/dist/molecules/Accordion/index.js.map +0 -1
- package/dist/molecules/AggregateRating/AggregateRating.js.map +0 -1
- package/dist/molecules/AggregateRating/index.js.map +0 -1
- package/dist/molecules/Alert/Alert.js.map +0 -1
- package/dist/molecules/Alert/index.js.map +0 -1
- package/dist/molecules/Banner/Banner.js.map +0 -1
- package/dist/molecules/Banner/BannerContent.js.map +0 -1
- package/dist/molecules/Banner/BannerImage.js.map +0 -1
- package/dist/molecules/Banner/BannerLink.js.map +0 -1
- package/dist/molecules/Banner/index.js.map +0 -1
- package/dist/molecules/Breadcrumb/Breadcrumb.js.map +0 -1
- package/dist/molecules/Breadcrumb/index.js.map +0 -1
- package/dist/molecules/Bullets/Bullets.js.map +0 -1
- package/dist/molecules/Bullets/index.js.map +0 -1
- package/dist/molecules/Card/Card.js.map +0 -1
- package/dist/molecules/Card/CardActions.js.map +0 -1
- package/dist/molecules/Card/CardContent.js.map +0 -1
- package/dist/molecules/Card/CardImage.js.map +0 -1
- package/dist/molecules/Card/index.js.map +0 -1
- package/dist/molecules/Carousel/Arrows.js.map +0 -1
- package/dist/molecules/Carousel/Carousel.d.ts +0 -16
- package/dist/molecules/Carousel/Carousel.js +0 -124
- package/dist/molecules/Carousel/Carousel.js.map +0 -1
- package/dist/molecules/Carousel/hooks/useSlideVisibility.js.map +0 -1
- package/dist/molecules/Carousel/index.js.map +0 -1
- package/dist/molecules/CartItem/CartItem.js.map +0 -1
- package/dist/molecules/CartItem/CartItemActions.js.map +0 -1
- package/dist/molecules/CartItem/CartItemContent.js.map +0 -1
- package/dist/molecules/CartItem/CartItemImage.js.map +0 -1
- package/dist/molecules/CartItem/CartItemPrices.js.map +0 -1
- package/dist/molecules/CartItem/CartItemSummary.js.map +0 -1
- package/dist/molecules/CartItem/CartItemTitle.js.map +0 -1
- package/dist/molecules/CartItem/index.js.map +0 -1
- package/dist/molecules/Dropdown/Dropdown.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownButton.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownItem.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +0 -1
- package/dist/molecules/Dropdown/hooks/useDropdown.js.map +0 -1
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +0 -1
- package/dist/molecules/Dropdown/index.js.map +0 -1
- package/dist/molecules/Dropdown/stories/assets/Caret.js.map +0 -1
- package/dist/molecules/Form/Form.js.map +0 -1
- package/dist/molecules/Form/index.js.map +0 -1
- package/dist/molecules/Gift/Gift.js.map +0 -1
- package/dist/molecules/Gift/GiftContent.js.map +0 -1
- package/dist/molecules/Gift/GiftImage.js.map +0 -1
- package/dist/molecules/Gift/index.js.map +0 -1
- package/dist/molecules/IconButton/IconButton.d.ts +0 -19
- package/dist/molecules/IconButton/IconButton.js +0 -9
- package/dist/molecules/IconButton/IconButton.js.map +0 -1
- package/dist/molecules/IconButton/index.d.ts +0 -2
- package/dist/molecules/IconButton/index.js +0 -2
- package/dist/molecules/IconButton/index.js.map +0 -1
- package/dist/molecules/LoadingButton/LoadingButton.js.map +0 -1
- package/dist/molecules/LoadingButton/index.js.map +0 -1
- package/dist/molecules/Modal/Modal.js.map +0 -1
- package/dist/molecules/Modal/ModalContent.js.map +0 -1
- package/dist/molecules/Modal/index.js.map +0 -1
- package/dist/molecules/Modal/useTrapFocus.js.map +0 -1
- package/dist/molecules/OrderSummary/OrderSummary.js.map +0 -1
- package/dist/molecules/OrderSummary/index.js.map +0 -1
- package/dist/molecules/PaymentMethods/PaymentMethods.js.map +0 -1
- package/dist/molecules/PaymentMethods/index.js.map +0 -1
- package/dist/molecules/PaymentMethods/stories/assets/Icons.js.map +0 -1
- package/dist/molecules/PriceRange/PriceRange.js.map +0 -1
- package/dist/molecules/PriceRange/index.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCard.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardActions.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardContent.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardImage.js.map +0 -1
- package/dist/molecules/ProductCard/index.js.map +0 -1
- package/dist/molecules/ProductTitle/ProductTitle.js.map +0 -1
- package/dist/molecules/ProductTitle/index.js.map +0 -1
- package/dist/molecules/QuantitySelector/QuantitySelector.js.map +0 -1
- package/dist/molecules/QuantitySelector/index.js.map +0 -1
- package/dist/molecules/QuantitySelector/stories/assets/Icons.js.map +0 -1
- package/dist/molecules/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/molecules/RadioGroup/RadioOption.js.map +0 -1
- package/dist/molecules/RadioGroup/index.js.map +0 -1
- package/dist/molecules/RadioGroup/useRadioGroup.js.map +0 -1
- package/dist/molecules/SearchInput/SearchInput.js.map +0 -1
- package/dist/molecules/SearchInput/index.js.map +0 -1
- package/dist/molecules/SearchInput/stories/assets/CustomIcon.js.map +0 -1
- package/dist/molecules/SkuSelector/SkuSelector.js.map +0 -1
- package/dist/molecules/SkuSelector/index.js.map +0 -1
- package/dist/molecules/Table/Table.js.map +0 -1
- package/dist/molecules/Table/TableBody.js.map +0 -1
- package/dist/molecules/Table/TableCell.js.map +0 -1
- package/dist/molecules/Table/TableFooter.js.map +0 -1
- package/dist/molecules/Table/TableHead.js.map +0 -1
- package/dist/molecules/Table/TableRow.js.map +0 -1
- package/dist/molecules/Table/index.js.map +0 -1
- package/dist/organisms/Hero/Hero.js.map +0 -1
- package/dist/organisms/Hero/HeroHeading.js.map +0 -1
- package/dist/organisms/Hero/HeroImage.js.map +0 -1
- package/dist/organisms/Hero/index.js.map +0 -1
- package/dist/organisms/OutOfStock/OutOfStock.js.map +0 -1
- package/dist/organisms/OutOfStock/OutOfStockMessage.js.map +0 -1
- package/dist/organisms/OutOfStock/OutOfStockTitle.js.map +0 -1
- package/dist/organisms/OutOfStock/index.js.map +0 -1
- package/dist/organisms/Tiles/Tile.js.map +0 -1
- package/dist/organisms/Tiles/Tiles.js.map +0 -1
- package/dist/organisms/Tiles/index.js.map +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/setupTests.js +0 -6
- package/dist/setupTests.js.map +0 -1
- package/dist/utils/toHaveNoIncomplete.d.ts +0 -17
- package/dist/utils/toHaveNoIncomplete.js +0 -43
- package/dist/utils/toHaveNoIncomplete.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSlider.js","sourceRoot":"","sources":["../../../src/hooks/useSlider/useSlider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAyD9C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,KAAa,EAAE,EAAE,CACzD,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,KAAa,EAAE,EAAE,CAC7D,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,KAAK,CAAA;AAEnD,SAAS,OAAO,CAAC,KAAkB,EAAE,MAAc;IACjD,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,WAAW,CAAC,CAAC;YAChB,qEAAqE;YACrE,yEAAyE;YACzE,MAAM,kBAAkB,GAAG,KAAK,CA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
|
10
|
-
export
|
|
11
|
-
export {
|
|
12
|
-
export
|
|
13
|
-
export {
|
|
14
|
-
export
|
|
15
|
-
export {
|
|
16
|
-
export
|
|
17
|
-
export {
|
|
18
|
-
export
|
|
19
|
-
export {
|
|
20
|
-
export
|
|
21
|
-
export {
|
|
22
|
-
export
|
|
23
|
-
export {
|
|
24
|
-
export
|
|
25
|
-
export {
|
|
26
|
-
export
|
|
27
|
-
export {
|
|
28
|
-
export
|
|
29
|
-
export {
|
|
30
|
-
export
|
|
31
|
-
export {
|
|
32
|
-
export
|
|
33
|
-
export {
|
|
34
|
-
export
|
|
35
|
-
export {
|
|
36
|
-
export
|
|
37
|
-
export {
|
|
38
|
-
export
|
|
39
|
-
export {
|
|
40
|
-
export
|
|
41
|
-
export {
|
|
42
|
-
export
|
|
43
|
-
export {
|
|
44
|
-
export
|
|
45
|
-
export {
|
|
46
|
-
export
|
|
47
|
-
export {
|
|
48
|
-
export
|
|
49
|
-
export {
|
|
50
|
-
export
|
|
51
|
-
export {
|
|
52
|
-
export
|
|
53
|
-
export {
|
|
54
|
-
export
|
|
55
|
-
export {
|
|
56
|
-
export
|
|
57
|
-
export {
|
|
58
|
-
export
|
|
59
|
-
export {
|
|
60
|
-
export
|
|
61
|
-
export {
|
|
62
|
-
export
|
|
63
|
-
export {
|
|
64
|
-
export
|
|
65
|
-
export {
|
|
66
|
-
export
|
|
67
|
-
export {
|
|
68
|
-
export
|
|
69
|
-
export {
|
|
70
|
-
export
|
|
71
|
-
export {
|
|
72
|
-
export
|
|
73
|
-
export {
|
|
74
|
-
export
|
|
75
|
-
export {
|
|
76
|
-
export
|
|
77
|
-
export {
|
|
78
|
-
export
|
|
79
|
-
export {
|
|
80
|
-
export type { FormProps } from './molecules/Form';
|
|
81
|
-
export { default as Alert } from './molecules/Alert';
|
|
82
|
-
export type { AlertProps } from './molecules/Alert';
|
|
83
|
-
export { default as QuantitySelector } from './molecules/QuantitySelector';
|
|
84
|
-
export type { QuantitySelectorProps } from './molecules/QuantitySelector';
|
|
85
|
-
export { default as Dropdown, DropdownButton, DropdownItem, DropdownMenu, } from './molecules/Dropdown';
|
|
86
|
-
export type { DropdownProps, DropdownButtonProps, DropdownItemProps, DropdownMenuProps, } from './molecules/Dropdown';
|
|
87
|
-
export { default as OutOfStock, OutOfStockTitle, OutOfStockMessage, } from './organisms/OutOfStock';
|
|
88
|
-
export type { OutOfStockProps, OutOfStockMessageProps, OutOfStockTitleProps, } from './organisms/OutOfStock';
|
|
89
|
-
export { Tiles, Tile } from './organisms/Tiles';
|
|
90
|
-
export type { TilesProps, TileProps } from './organisms/Tiles';
|
|
91
|
-
export { default as Hero, HeroHeading, HeroImage } from './organisms/Hero';
|
|
92
|
-
export type { HeroProps, HeroHeadingProps, HeroImageProps, } from './organisms/Hero';
|
|
1
|
+
export * from '@faststore/components';
|
|
2
|
+
export { default as Link } from './components/atoms/Link';
|
|
3
|
+
export type { LinkProps } from './components/atoms/Link';
|
|
4
|
+
export { default as Input } from './components/atoms/Input';
|
|
5
|
+
export type { InputProps } from './components/atoms/Input';
|
|
6
|
+
export { default as Popover } from './components/atoms/Popover';
|
|
7
|
+
export type { PopoverProps } from './components/atoms/Popover';
|
|
8
|
+
export { default as Price } from './components/atoms/Price';
|
|
9
|
+
export type { PriceProps } from './components/atoms/Price';
|
|
10
|
+
export { default as TextArea } from './components/atoms/TextArea';
|
|
11
|
+
export type { TextAreaProps } from './components/atoms/TextArea';
|
|
12
|
+
export { default as Overlay } from './components/atoms/Overlay';
|
|
13
|
+
export type { OverlayProps } from './components/atoms/Overlay';
|
|
14
|
+
export { default as Select } from './components/atoms/Select';
|
|
15
|
+
export type { SelectProps } from './components/atoms/Select';
|
|
16
|
+
export { default as Slider } from './components/atoms/Slider';
|
|
17
|
+
export type { SliderProps } from './components/atoms/Slider';
|
|
18
|
+
export { default as List } from './components/atoms/List';
|
|
19
|
+
export type { ListProps } from './components/atoms/List';
|
|
20
|
+
export { default as Skeleton } from './components/atoms/Skeleton';
|
|
21
|
+
export type { SkeletonProps } from './components/atoms/Skeleton';
|
|
22
|
+
export { default as Spinner } from './components/atoms/Spinner';
|
|
23
|
+
export type { SpinnerProps } from './components/atoms/Spinner';
|
|
24
|
+
export { default as Incentive } from './components/atoms/Incentive';
|
|
25
|
+
export type { IncentiveProps } from './components/atoms/Incentive';
|
|
26
|
+
export { default as SkuSelector } from './components/molecules/SkuSelector';
|
|
27
|
+
export type { SkuSelectorProps } from './components/molecules/SkuSelector';
|
|
28
|
+
export { default as Gift, GiftContent, GiftImage, } from './components/molecules/Gift';
|
|
29
|
+
export type { GiftProps, GiftContentProps, GiftImageProps, } from './components/molecules/Gift';
|
|
30
|
+
export { default as ProductTitle } from './components/molecules/ProductTitle';
|
|
31
|
+
export type { ProductTitleProps } from './components/molecules/ProductTitle';
|
|
32
|
+
export { default as OrderSummary } from './components/molecules/OrderSummary';
|
|
33
|
+
export type { OrderSummaryProps } from './components/molecules/OrderSummary';
|
|
34
|
+
export { default as AggregateRating } from './components/molecules/AggregateRating';
|
|
35
|
+
export type { AggregateRatingProps } from './components/molecules/AggregateRating';
|
|
36
|
+
export { default as ProductCard, ProductCardImage, ProductCardContent, ProductCardActions, } from './components/molecules/ProductCard';
|
|
37
|
+
export type { ProductCardProps, ProductCardImageProps, ProductCardContentProps, ProductCardActionsProps, } from './components/molecules/ProductCard';
|
|
38
|
+
export { default as Card, CardImage, CardContent, CardActions, } from './components/molecules/Card';
|
|
39
|
+
export type { CardProps, CardImageProps, CardContentProps, CardActionsProps, } from './components/molecules/Card';
|
|
40
|
+
export { default as CartItem, CartItemActions, CartItemContent, CartItemImage, CartItemPrices, CartItemSummary, CartItemTitle, } from './components/molecules/CartItem';
|
|
41
|
+
export type { CartItemProps, CartItemActionsProps, CartItemContentProps, CartItemImageProps, CartItemPricesProps, CartItemSummaryProps, CartItemTitleProps, } from './components/molecules/CartItem';
|
|
42
|
+
export { default as Bullets } from './components/molecules/Bullets';
|
|
43
|
+
export type { BulletsProps } from './components/molecules/Bullets';
|
|
44
|
+
export { default as SearchInput } from './components/molecules/SearchInput';
|
|
45
|
+
export type { SearchInputProps, SearchInputRef, } from './components/molecules/SearchInput';
|
|
46
|
+
export { default as Carousel } from './components/molecules/Carousel';
|
|
47
|
+
export type { CarouselProps } from './components/molecules/Carousel';
|
|
48
|
+
export { default as Modal } from './components/molecules/Modal';
|
|
49
|
+
export type { ModalProps } from './components/molecules/Modal';
|
|
50
|
+
export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
|
|
51
|
+
export type { BannerProps, BannerContentProps, BannerImageProps, BannerLinkProps, } from './components/molecules/Banner';
|
|
52
|
+
export { default as PaymentMethods } from './components/molecules/PaymentMethods';
|
|
53
|
+
export type { PaymentMethodsProps } from './components/molecules/PaymentMethods';
|
|
54
|
+
export { default as Breadcrumb } from './components/molecules/Breadcrumb';
|
|
55
|
+
export type { BreadcrumbProps } from './components/molecules/Breadcrumb';
|
|
56
|
+
export { default as LoadingButton } from './components/molecules/LoadingButton';
|
|
57
|
+
export type { LoadingButtonProps } from './components/molecules/LoadingButton';
|
|
58
|
+
export { default as PriceRange } from './components/molecules/PriceRange';
|
|
59
|
+
export type { PriceRangeProps } from './components/molecules/PriceRange';
|
|
60
|
+
export { default as RadioGroup, RadioOption, } from './components/molecules/RadioGroup';
|
|
61
|
+
export type { RadioGroupProps, RadioOptionProps, } from './components/molecules/RadioGroup';
|
|
62
|
+
export { default as Accordion, AccordionItem, AccordionButton, AccordionPanel, } from './components/molecules/Accordion';
|
|
63
|
+
export type { AccordionProps, AccordionItemProps, AccordionButtonProps, AccordionPanelProps, } from './components/molecules/Accordion';
|
|
64
|
+
export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './components/molecules/Table';
|
|
65
|
+
export type { TableProps, TableBodyProps, TableCellProps, TableFooterProps, TableHeadProps, TableRowProps, } from './components/molecules/Table';
|
|
66
|
+
export { default as Form } from './components/molecules/Form';
|
|
67
|
+
export type { FormProps } from './components/molecules/Form';
|
|
68
|
+
export { default as Alert } from './components/molecules/Alert';
|
|
69
|
+
export type { AlertProps } from './components/molecules/Alert';
|
|
70
|
+
export { default as QuantitySelector } from './components/molecules/QuantitySelector';
|
|
71
|
+
export type { QuantitySelectorProps } from './components/molecules/QuantitySelector';
|
|
72
|
+
export { default as Dropdown, DropdownButton, DropdownItem, DropdownMenu, } from './components/molecules/Dropdown';
|
|
73
|
+
export type { DropdownProps, DropdownButtonProps, DropdownItemProps, DropdownMenuProps, } from './components/molecules/Dropdown';
|
|
74
|
+
export { default as OutOfStock, OutOfStockTitle, OutOfStockMessage, } from './components/organisms/OutOfStock';
|
|
75
|
+
export type { OutOfStockProps, OutOfStockMessageProps, OutOfStockTitleProps, } from './components/organisms/OutOfStock';
|
|
76
|
+
export { Tiles, Tile } from './components/organisms/Tiles';
|
|
77
|
+
export type { TilesProps, TileProps } from './components/organisms/Tiles';
|
|
78
|
+
export { default as Hero, HeroHeading, HeroImage, } from './components/organisms/Hero';
|
|
79
|
+
export type { HeroProps, HeroHeadingProps, HeroImageProps, } from './components/organisms/Hero';
|
|
93
80
|
export { default as useSlider } from './hooks/useSlider';
|
|
94
81
|
export type { UseSliderArgs, SliderState, SliderDispatch, SlideDirection, } from './hooks/useSlider';
|
package/dist/index.js
CHANGED
|
@@ -1,52 +1,46 @@
|
|
|
1
|
+
export * from '@faststore/components';
|
|
1
2
|
// Atoms
|
|
2
|
-
export { default as Link } from './atoms/Link';
|
|
3
|
-
export { default as
|
|
4
|
-
export { default as
|
|
5
|
-
export { default as
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as
|
|
9
|
-
export { default as
|
|
10
|
-
export { default as
|
|
11
|
-
export { default as
|
|
12
|
-
export { default as
|
|
13
|
-
export { default as
|
|
14
|
-
export { default as Slider } from './atoms/Slider';
|
|
15
|
-
export { default as List } from './atoms/List';
|
|
16
|
-
export { default as Skeleton } from './atoms/Skeleton';
|
|
17
|
-
export { default as Spinner } from './atoms/Spinner';
|
|
18
|
-
export { default as Label } from './atoms/Label';
|
|
19
|
-
export { default as Incentive } from './atoms/Incentive';
|
|
3
|
+
export { default as Link } from './components/atoms/Link';
|
|
4
|
+
export { default as Input } from './components/atoms/Input';
|
|
5
|
+
export { default as Popover } from './components/atoms/Popover';
|
|
6
|
+
export { default as Price } from './components/atoms/Price';
|
|
7
|
+
export { default as TextArea } from './components/atoms/TextArea';
|
|
8
|
+
export { default as Overlay } from './components/atoms/Overlay';
|
|
9
|
+
export { default as Select } from './components/atoms/Select';
|
|
10
|
+
export { default as Slider } from './components/atoms/Slider';
|
|
11
|
+
export { default as List } from './components/atoms/List';
|
|
12
|
+
export { default as Skeleton } from './components/atoms/Skeleton';
|
|
13
|
+
export { default as Spinner } from './components/atoms/Spinner';
|
|
14
|
+
export { default as Incentive } from './components/atoms/Incentive';
|
|
20
15
|
// Molecules
|
|
21
|
-
export { default as SkuSelector } from './molecules/SkuSelector';
|
|
22
|
-
export { default as Gift, GiftContent, GiftImage } from './molecules/Gift';
|
|
23
|
-
export { default as ProductTitle } from './molecules/ProductTitle';
|
|
24
|
-
export { default as OrderSummary } from './molecules/OrderSummary';
|
|
25
|
-
export { default as AggregateRating } from './molecules/AggregateRating';
|
|
26
|
-
export { default as ProductCard, ProductCardImage, ProductCardContent, ProductCardActions, } from './molecules/ProductCard';
|
|
27
|
-
export { default as Card, CardImage, CardContent, CardActions, } from './molecules/Card';
|
|
28
|
-
export { default as CartItem, CartItemActions, CartItemContent, CartItemImage, CartItemPrices, CartItemSummary, CartItemTitle, } from './molecules/CartItem';
|
|
29
|
-
export { default as Bullets } from './molecules/Bullets';
|
|
30
|
-
export { default as SearchInput } from './molecules/SearchInput';
|
|
31
|
-
export { default as Carousel } from './molecules/Carousel';
|
|
32
|
-
export { default as
|
|
33
|
-
export { default as
|
|
34
|
-
export { default as
|
|
35
|
-
export { default as
|
|
36
|
-
export { default as
|
|
37
|
-
export { default as
|
|
38
|
-
export { default as
|
|
39
|
-
export { default as
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export { default as
|
|
43
|
-
export { default as
|
|
44
|
-
export { default as
|
|
45
|
-
export { default as Dropdown, DropdownButton, DropdownItem, DropdownMenu, } from './molecules/Dropdown';
|
|
16
|
+
export { default as SkuSelector } from './components/molecules/SkuSelector';
|
|
17
|
+
export { default as Gift, GiftContent, GiftImage, } from './components/molecules/Gift';
|
|
18
|
+
export { default as ProductTitle } from './components/molecules/ProductTitle';
|
|
19
|
+
export { default as OrderSummary } from './components/molecules/OrderSummary';
|
|
20
|
+
export { default as AggregateRating } from './components/molecules/AggregateRating';
|
|
21
|
+
export { default as ProductCard, ProductCardImage, ProductCardContent, ProductCardActions, } from './components/molecules/ProductCard';
|
|
22
|
+
export { default as Card, CardImage, CardContent, CardActions, } from './components/molecules/Card';
|
|
23
|
+
export { default as CartItem, CartItemActions, CartItemContent, CartItemImage, CartItemPrices, CartItemSummary, CartItemTitle, } from './components/molecules/CartItem';
|
|
24
|
+
export { default as Bullets } from './components/molecules/Bullets';
|
|
25
|
+
export { default as SearchInput } from './components/molecules/SearchInput';
|
|
26
|
+
export { default as Carousel } from './components/molecules/Carousel';
|
|
27
|
+
export { default as Modal } from './components/molecules/Modal';
|
|
28
|
+
export { default as Banner, BannerContent, BannerImage, BannerLink, } from './components/molecules/Banner';
|
|
29
|
+
export { default as PaymentMethods } from './components/molecules/PaymentMethods';
|
|
30
|
+
export { default as Breadcrumb } from './components/molecules/Breadcrumb';
|
|
31
|
+
export { default as LoadingButton } from './components/molecules/LoadingButton';
|
|
32
|
+
export { default as PriceRange } from './components/molecules/PriceRange';
|
|
33
|
+
export { default as RadioGroup, RadioOption, } from './components/molecules/RadioGroup';
|
|
34
|
+
export { default as Accordion, AccordionItem, AccordionButton, AccordionPanel, } from './components/molecules/Accordion';
|
|
35
|
+
export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './components/molecules/Table';
|
|
36
|
+
export { default as Form } from './components/molecules/Form';
|
|
37
|
+
export { default as Alert } from './components/molecules/Alert';
|
|
38
|
+
export { default as QuantitySelector } from './components/molecules/QuantitySelector';
|
|
39
|
+
export { default as Dropdown, DropdownButton, DropdownItem, DropdownMenu, } from './components/molecules/Dropdown';
|
|
46
40
|
// Organisms
|
|
47
|
-
export { default as OutOfStock, OutOfStockTitle, OutOfStockMessage, } from './organisms/OutOfStock';
|
|
48
|
-
export { Tiles, Tile } from './organisms/Tiles';
|
|
49
|
-
export { default as Hero, HeroHeading, HeroImage } from './organisms/Hero';
|
|
41
|
+
export { default as OutOfStock, OutOfStockTitle, OutOfStockMessage, } from './components/organisms/OutOfStock';
|
|
42
|
+
export { Tiles, Tile } from './components/organisms/Tiles';
|
|
43
|
+
export { default as Hero, HeroHeading, HeroImage, } from './components/organisms/Hero';
|
|
50
44
|
// Hooks
|
|
51
45
|
export { default as useSlider } from './hooks/useSlider';
|
|
52
46
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAGzD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAG3D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAG/D,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAA;AAG3D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAGjE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAG/D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE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O,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.0",
|
|
4
4
|
"description": "A lightweight, framework agnostic component library for React",
|
|
5
5
|
"author": "emersonlaurentino",
|
|
6
6
|
"license": "MIT",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@reach/popover": "^0.16.0",
|
|
51
51
|
"@storybook/addon-a11y": "^6.4.4",
|
|
52
|
-
"react-swipeable": "^
|
|
52
|
+
"react-swipeable": "^7.0.0",
|
|
53
53
|
"tabbable": "^5.2.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"react-dom": "^17.0.2"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@faststore/shared": "^
|
|
61
|
-
"@faststore/styles": "^
|
|
60
|
+
"@faststore/shared": "^2.0.0-alpha.0",
|
|
61
|
+
"@faststore/styles": "^2.0.0-alpha.0",
|
|
62
62
|
"@size-limit/preset-small-lib": "^7.0.8",
|
|
63
63
|
"@storybook/addon-actions": "^6.4.4",
|
|
64
64
|
"@storybook/addon-docs": "^6.4.4",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"tsdx": "^0.14.1",
|
|
86
86
|
"typescript": "^4.2.4"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "82a6325bd801a6c3a36a2d2aa294ea36a5e9b18d"
|
|
89
89
|
}
|
|
@@ -152,15 +152,11 @@ const defaultSliderState = (
|
|
|
152
152
|
|
|
153
153
|
const slide = (page: SlideDirection | number, dispatch: Dispatch<Action>) => {
|
|
154
154
|
if (page === 'next') {
|
|
155
|
-
dispatch({
|
|
156
|
-
type: 'NEXT_PAGE',
|
|
157
|
-
})
|
|
155
|
+
dispatch({ type: 'NEXT_PAGE' })
|
|
158
156
|
}
|
|
159
157
|
|
|
160
158
|
if (page === 'previous') {
|
|
161
|
-
dispatch({
|
|
162
|
-
type: 'PREVIOUS_PAGE',
|
|
163
|
-
})
|
|
159
|
+
dispatch({ type: 'PREVIOUS_PAGE' })
|
|
164
160
|
}
|
|
165
161
|
|
|
166
162
|
if (typeof page === 'number') {
|
|
@@ -181,12 +177,15 @@ export interface UseSliderArgs extends SwipeableProps {
|
|
|
181
177
|
itemsPerPage?: number
|
|
182
178
|
/** Whether or not the slider is infinite. */
|
|
183
179
|
infiniteMode?: boolean
|
|
180
|
+
/** Whether or not slide after swiping left/right. */
|
|
181
|
+
shouldSlideOnSwipe?: boolean
|
|
184
182
|
}
|
|
185
183
|
|
|
186
184
|
export default function useSlider({
|
|
187
185
|
totalItems,
|
|
188
186
|
itemsPerPage = 1,
|
|
189
187
|
infiniteMode = false,
|
|
188
|
+
shouldSlideOnSwipe = true,
|
|
190
189
|
...swipeableConfigOverrides
|
|
191
190
|
}: UseSliderArgs) {
|
|
192
191
|
const [sliderState, sliderDispatch] = useReducer(reducer, undefined, () =>
|
|
@@ -194,9 +193,9 @@ export default function useSlider({
|
|
|
194
193
|
)
|
|
195
194
|
|
|
196
195
|
const handlers = useSwipeable({
|
|
197
|
-
onSwipedRight: () =>
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
onSwipedRight: () =>
|
|
197
|
+
shouldSlideOnSwipe && slide('previous', sliderDispatch),
|
|
198
|
+
onSwipedLeft: () => shouldSlideOnSwipe && slide('next', sliderDispatch),
|
|
200
199
|
trackMouse: true,
|
|
201
200
|
...swipeableConfigOverrides,
|
|
202
201
|
})
|
|
@@ -13,17 +13,17 @@ describe('Bullets', () => {
|
|
|
13
13
|
expect(getByTestId('store-bullets')).toHaveAttribute('data-fs-bullets')
|
|
14
14
|
})
|
|
15
15
|
|
|
16
|
-
it('should render 5 bullets with `data-bullet
|
|
16
|
+
it('should render 5 bullets with `data-fs-bullet` attribute', () => {
|
|
17
17
|
const { queryAllByTestId } = render(
|
|
18
18
|
<Bullets totalQuantity={5} activeBullet={2} onClick={() => null} />
|
|
19
19
|
)
|
|
20
20
|
|
|
21
|
-
const bulletItems = queryAllByTestId('store-bullets-
|
|
21
|
+
const bulletItems = queryAllByTestId('store-bullets-bullet')
|
|
22
22
|
|
|
23
23
|
expect(bulletItems).toHaveLength(5)
|
|
24
24
|
|
|
25
25
|
bulletItems.forEach((bullet) =>
|
|
26
|
-
expect(bullet).toHaveAttribute('data-bullet
|
|
26
|
+
expect(bullet).toHaveAttribute('data-fs-bullet')
|
|
27
27
|
)
|
|
28
28
|
})
|
|
29
29
|
|
|
@@ -32,7 +32,7 @@ describe('Bullets', () => {
|
|
|
32
32
|
<Bullets totalQuantity={5} activeBullet={2} onClick={() => null} />
|
|
33
33
|
)
|
|
34
34
|
|
|
35
|
-
const bulletItems = queryAllByTestId('store-bullets-
|
|
35
|
+
const bulletItems = queryAllByTestId('store-bullets-bullet')
|
|
36
36
|
|
|
37
37
|
// eslint-disable-next-line prefer-destructuring
|
|
38
38
|
const expectedActiveBullet = bulletItems[2]
|
|
@@ -59,7 +59,7 @@ describe('Bullets', () => {
|
|
|
59
59
|
/>
|
|
60
60
|
)
|
|
61
61
|
|
|
62
|
-
const bulletItems = queryAllByTestId('store-bullets-
|
|
62
|
+
const bulletItems = queryAllByTestId('store-bullets-bullet')
|
|
63
63
|
|
|
64
64
|
expect(bulletItems).toHaveLength(5)
|
|
65
65
|
|
|
@@ -69,11 +69,11 @@ const Bullets = forwardRef<HTMLDivElement, BulletsProps>(function Bullets(
|
|
|
69
69
|
|
|
70
70
|
return (
|
|
71
71
|
<Button
|
|
72
|
-
|
|
72
|
+
key={idx}
|
|
73
73
|
role="tab"
|
|
74
74
|
tabIndex={-1}
|
|
75
|
-
|
|
76
|
-
testId={`${testId}-
|
|
75
|
+
data-fs-bullet
|
|
76
|
+
testId={`${testId}-bullet`}
|
|
77
77
|
onClick={(e) => onClick(e, idx)}
|
|
78
78
|
aria-label={ariaLabelGenerator(idx, isActive)}
|
|
79
79
|
aria-controls={ariaControlsGenerator?.(idx)}
|
|
@@ -17,9 +17,9 @@ import Bullets from '../Bullets'
|
|
|
17
17
|
```css
|
|
18
18
|
[data-fs-bullets] {}
|
|
19
19
|
|
|
20
|
-
[data-bullet
|
|
20
|
+
[data-fs-bullet] {}
|
|
21
21
|
|
|
22
|
-
[data-bullet
|
|
22
|
+
[data-fs-bullet][aria-selected="true"] {}
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
This component inherits [Button](?path=/docs/atoms-button--button#css-selectors) css selectors.
|