@faststore/ui 2.0.3-alpha.0 → 2.0.5-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 +18 -0
- package/dist/assets/ShoppingCart.d.ts +3 -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/{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}/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 +1 -1
- 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/{molecules → components/molecules}/Carousel/Carousel.d.ts +0 -0
- package/dist/{molecules → components/molecules}/Carousel/Carousel.js +2 -2
- package/dist/components/molecules/Carousel/Carousel.js.map +1 -0
- package/dist/{molecules → components/molecules}/Carousel/CarouselItem.d.ts +1 -1
- package/dist/{molecules → components/molecules}/Carousel/CarouselItem.js +0 -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 +2 -2
- 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/index.d.ts +77 -92
- package/dist/index.js +39 -46
- package/dist/index.js.map +1 -1
- package/package.json +29 -36
- package/src/assets/ShoppingCart.tsx +50 -0
- package/src/assets/X.tsx +38 -0
- package/src/base/layout.scss +78 -0
- package/src/base/tokens.scss +274 -0
- package/src/base/typography.scss +64 -0
- package/src/components/atoms/Badge/Badge.stories.mdx +156 -0
- package/src/components/atoms/Badge/styles.scss +209 -0
- package/src/components/atoms/Button/Button.stories.mdx +110 -0
- package/src/components/atoms/Button/styles.scss +316 -0
- package/src/components/atoms/Checkbox/styles.scss +155 -0
- package/src/{atoms → components/atoms}/Incentive/Incentive.tsx +0 -0
- package/src/{atoms → components/atoms}/Incentive/index.tsx +0 -0
- package/src/{atoms → components/atoms}/Incentive/stories/Incentive.mdx +0 -0
- package/src/{atoms → components/atoms}/Incentive/stories/Incentive.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/Incentive/stories/assets/Icons.tsx +0 -0
- package/src/{atoms → components/atoms}/Input/Input.tsx +0 -0
- package/src/{atoms → components/atoms}/Input/index.ts +0 -0
- package/src/{atoms → components/atoms}/Input/stories/Input.mdx +0 -0
- package/src/{atoms → components/atoms}/Input/stories/Input.stories.tsx +1 -1
- package/src/components/atoms/Label/Label.stories.mdx +65 -0
- package/src/{atoms → components/atoms}/Link/Link.tsx +1 -1
- package/src/{atoms → components/atoms}/Link/index.tsx +0 -0
- package/src/{atoms → components/atoms}/Link/stories/Link.mdx +0 -0
- package/src/{atoms → components/atoms}/Link/stories/Link.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/List/List.tsx +0 -0
- package/src/{atoms → components/atoms}/List/index.ts +0 -0
- package/src/{atoms → components/atoms}/List/stories/List.mdx +0 -0
- package/src/{atoms → components/atoms}/List/stories/List.stories.tsx +1 -1
- package/src/components/atoms/Overlay/styles.scss +14 -0
- package/src/{atoms → components/atoms}/Popover/Popover.tsx +0 -0
- package/src/{atoms → components/atoms}/Popover/index.ts +0 -0
- package/src/{atoms → components/atoms}/Popover/stories/Popover.mdx +0 -0
- package/src/{atoms → components/atoms}/Popover/stories/Popover.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Price/Price.tsx +0 -0
- package/src/{atoms → components/atoms}/Price/index.ts +0 -0
- package/src/{atoms → components/atoms}/Price/stories/Price.mdx +0 -0
- package/src/{atoms → components/atoms}/Price/stories/Price.stories.tsx +1 -1
- package/src/components/atoms/Radio/Radio.stories.mdx +101 -0
- package/src/components/atoms/Radio/styles.scss +108 -0
- package/src/{atoms → components/atoms}/Select/Select.tsx +0 -0
- package/src/{atoms → components/atoms}/Select/index.ts +0 -0
- package/src/{atoms → components/atoms}/Select/stories/Select.mdx +0 -0
- package/src/{atoms → components/atoms}/Select/stories/Select.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Skeleton/Skeleton.tsx +0 -0
- package/src/{atoms → components/atoms}/Skeleton/index.ts +0 -0
- package/src/{atoms → components/atoms}/Skeleton/stories/Skeleton.mdx +0 -0
- package/src/{atoms → components/atoms}/Skeleton/stories/Skeleton.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/Slider/Slider.tsx +0 -0
- package/src/{atoms → components/atoms}/Slider/index.ts +0 -0
- package/src/{atoms → components/atoms}/Slider/stories/Slider.mdx +0 -0
- package/src/{atoms → components/atoms}/Slider/stories/Slider.stories.tsx +1 -1
- package/src/{atoms → components/atoms}/Spinner/Spinner.tsx +0 -0
- package/src/{atoms → components/atoms}/Spinner/index.tsx +0 -0
- package/src/{atoms → components/atoms}/Spinner/stories/Spinner.mdx +0 -0
- package/src/{atoms → components/atoms}/Spinner/stories/Spinner.stories.tsx +0 -0
- package/src/{atoms → components/atoms}/TextArea/TextArea.tsx +0 -0
- package/src/{atoms → components/atoms}/TextArea/index.ts +0 -0
- package/src/{atoms → components/atoms}/TextArea/stories/TextArea.mdx +0 -0
- package/src/{atoms → components/atoms}/TextArea/stories/TextArea.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Accordion/Accordion.tsx +0 -0
- package/src/{molecules → components/molecules}/Accordion/AccordionButton.tsx +4 -4
- package/src/{molecules → components/molecules}/Accordion/AccordionItem.tsx +1 -1
- package/src/{molecules → components/molecules}/Accordion/AccordionPanel.tsx +0 -0
- package/src/{molecules → components/molecules}/Accordion/index.ts +0 -0
- package/src/{molecules → components/molecules}/Accordion/stories/Accordion.mdx +0 -0
- package/src/{molecules → components/molecules}/Accordion/stories/Accordion.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/AggregateRating/AggregateRating.tsx +0 -0
- package/src/{molecules → components/molecules}/AggregateRating/index.ts +0 -0
- package/src/{molecules → components/molecules}/AggregateRating/stories/AggregateRating.mdx +0 -0
- package/src/{molecules → components/molecules}/AggregateRating/stories/AggregateRating.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Alert/Alert.tsx +0 -0
- package/src/{molecules → components/molecules}/Alert/index.ts +0 -0
- package/src/{molecules → components/molecules}/Alert/stories/Alert.mdx +0 -0
- package/src/{molecules → components/molecules}/Alert/stories/Alert.stories.tsx +3 -3
- package/src/{molecules → components/molecules}/Banner/Banner.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/BannerContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/BannerImage.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/BannerLink.tsx +0 -0
- package/src/{molecules → components/molecules}/Banner/index.ts +0 -0
- package/src/{molecules → components/molecules}/Banner/stories/Banner.mdx +0 -0
- package/src/{molecules → components/molecules}/Banner/stories/Banner.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Breadcrumb/Breadcrumb.tsx +0 -0
- package/src/{molecules → components/molecules}/Breadcrumb/index.ts +0 -0
- package/src/{molecules → components/molecules}/Breadcrumb/stories/Breadcrumb.mdx +0 -0
- package/src/{molecules → components/molecules}/Breadcrumb/stories/Breadcrumb.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Bullets/Bullets.tsx +1 -1
- package/src/{molecules → components/molecules}/Bullets/index.ts +0 -0
- package/src/{molecules → components/molecules}/Bullets/stories/Bullets.mdx +0 -0
- package/src/{molecules → components/molecules}/Bullets/stories/Bullets.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Card/Card.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/CardActions.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/CardContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/CardImage.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/index.tsx +0 -0
- package/src/{molecules → components/molecules}/Card/stories/Card.mdx +0 -0
- package/src/{molecules → components/molecules}/Card/stories/Card.stories.tsx +5 -5
- package/src/{molecules → components/molecules}/Carousel/Arrows.tsx +0 -0
- package/src/{molecules → components/molecules}/Carousel/Carousel.tsx +2 -2
- package/src/{molecules → components/molecules}/Carousel/CarouselItem.tsx +1 -1
- package/src/{molecules → components/molecules}/Carousel/hooks/useSlideVisibility.ts +0 -0
- package/src/{molecules → components/molecules}/Carousel/index.ts +0 -0
- package/src/{molecules → components/molecules}/Carousel/stories/Carousel.mdx +0 -0
- package/src/{molecules → components/molecules}/Carousel/stories/Carousel.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/CartItem/CartItem.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemActions.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemContent.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemImage.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemPrices.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemSummary.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/CartItemTitle.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/index.tsx +0 -0
- package/src/{molecules → components/molecules}/CartItem/stories/CartItem.mdx +0 -0
- package/src/{molecules → components/molecules}/CartItem/stories/CartItem.stories.tsx +1 -1
- package/src/components/molecules/CheckboxField/CheckboxField.stories.mdx +38 -0
- package/src/components/molecules/CheckboxField/styles.scss +12 -0
- package/src/{molecules → components/molecules}/Dropdown/Dropdown.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/DropdownButton.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/DropdownItem.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/DropdownMenu.tsx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/contexts/DropdownContext.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/hooks/useDropdown.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/hooks/useDropdownPosition.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/index.ts +0 -0
- package/src/{molecules → components/molecules}/Dropdown/stories/Dropdown.mdx +0 -0
- package/src/{molecules → components/molecules}/Dropdown/stories/Dropdown.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Dropdown/stories/assets/Caret.tsx +0 -0
- package/src/{molecules → components/molecules}/Form/Form.tsx +0 -0
- package/src/{molecules → components/molecules}/Form/index.ts +0 -0
- package/src/{molecules → components/molecules}/Form/stories/Form.mdx +0 -0
- package/src/{molecules → components/molecules}/Form/stories/Form.stories.tsx +2 -1
- package/src/{molecules → components/molecules}/Gift/Gift.tsx +2 -3
- package/src/{molecules → components/molecules}/Gift/GiftContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Gift/GiftImage.tsx +0 -0
- package/src/{molecules → components/molecules}/Gift/index.tsx +0 -0
- package/src/{molecules → components/molecules}/Gift/stories/Gift.mdx +0 -0
- package/src/{molecules → components/molecules}/Gift/stories/Gift.stories.tsx +1 -1
- package/src/components/molecules/IconButton/IconButton.stories.mdx +47 -0
- package/src/{molecules → components/molecules}/LoadingButton/LoadingButton.tsx +3 -8
- package/src/{molecules → components/molecules}/LoadingButton/index.tsx +0 -0
- package/src/{molecules → components/molecules}/LoadingButton/stories/LoadingButton.mdx +0 -0
- package/src/{molecules → components/molecules}/LoadingButton/stories/LoadingButton.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Modal/Modal.tsx +2 -3
- package/src/{molecules → components/molecules}/Modal/ModalContent.tsx +0 -0
- package/src/{molecules → components/molecules}/Modal/index.tsx +0 -0
- package/src/{molecules → components/molecules}/Modal/stories/Modal.mdx +0 -2
- package/src/{molecules → components/molecules}/Modal/stories/Modal.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Modal/useTrapFocus.ts +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/OrderSummary.tsx +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/index.tsx +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/stories/OrderSummary.mdx +0 -0
- package/src/{molecules → components/molecules}/OrderSummary/stories/OrderSummary.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/PaymentMethods.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/index.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/stories/PaymentMethods.mdx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/stories/PaymentMethods.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/PaymentMethods/stories/assets/Icons.tsx +0 -0
- package/src/{molecules → components/molecules}/PriceRange/PriceRange.tsx +0 -0
- package/src/{molecules → components/molecules}/PriceRange/index.ts +0 -0
- package/src/{molecules → components/molecules}/PriceRange/stories/PriceRange.mdx +0 -0
- package/src/{molecules → components/molecules}/PriceRange/stories/PriceRange.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/ProductCard/ProductCard.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/ProductCardActions.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/ProductCardContent.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/ProductCardImage.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/index.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/stories/ProductCard.mdx +0 -0
- package/src/{molecules → components/molecules}/ProductCard/stories/ProductCard.stories.tsx +1 -2
- package/src/{molecules → components/molecules}/ProductTitle/ProductTitle.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductTitle/index.tsx +0 -0
- package/src/{molecules → components/molecules}/ProductTitle/stories/ProductTitle.mdx +0 -0
- package/src/{molecules → components/molecules}/ProductTitle/stories/ProductTitle.stories.tsx +3 -3
- package/src/{molecules → components/molecules}/QuantitySelector/QuantitySelector.tsx +2 -2
- package/src/{molecules → components/molecules}/QuantitySelector/index.ts +0 -0
- package/src/{molecules → components/molecules}/QuantitySelector/stories/QuantitySelector.mdx +0 -0
- package/src/{molecules → components/molecules}/QuantitySelector/stories/QuantitySelector.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/QuantitySelector/stories/assets/Icons.tsx +0 -0
- package/src/components/molecules/RadioField/RadioField.stories.mdx +38 -0
- package/src/components/molecules/RadioField/styles.scss +12 -0
- package/src/{molecules → components/molecules}/RadioGroup/RadioGroup.tsx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/RadioOption.tsx +1 -1
- package/src/{molecules → components/molecules}/RadioGroup/index.tsx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/stories/RadioGroup.mdx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/stories/RadioGroup.stories.tsx +0 -0
- package/src/{molecules → components/molecules}/RadioGroup/useRadioGroup.ts +0 -0
- package/src/{molecules → components/molecules}/SearchInput/SearchInput.tsx +2 -3
- package/src/{molecules → components/molecules}/SearchInput/index.ts +0 -0
- package/src/{molecules → components/molecules}/SearchInput/stories/SearchInput.mdx +0 -0
- package/src/{molecules → components/molecules}/SearchInput/stories/SearchInput.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/SearchInput/stories/assets/CustomIcon.tsx +0 -0
- package/src/{molecules → components/molecules}/SkuSelector/SkuSelector.tsx +3 -2
- package/src/{molecules → components/molecules}/SkuSelector/index.tsx +0 -0
- package/src/{molecules → components/molecules}/SkuSelector/stories/SkuSelector.mdx +0 -0
- package/src/{molecules → components/molecules}/SkuSelector/stories/SkuSelector.stories.tsx +1 -1
- package/src/{molecules → components/molecules}/Table/Table.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableBody.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableCell.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableFooter.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableHead.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/TableRow.tsx +0 -0
- package/src/{molecules → components/molecules}/Table/index.ts +0 -0
- package/src/{molecules → components/molecules}/Table/stories/Table.mdx +0 -0
- package/src/{molecules → components/molecules}/Table/stories/Table.stories.tsx +0 -0
- package/src/components/molecules/Tag/Tag.stories.mdx +31 -0
- package/src/components/molecules/Tag/styles.scss +99 -0
- package/src/{organisms → components/organisms}/Hero/Hero.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/HeroHeading.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/HeroImage.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/index.tsx +0 -0
- package/src/{organisms → components/organisms}/Hero/stories/Hero.mdx +0 -0
- package/src/{organisms → components/organisms}/Hero/stories/Hero.stories.tsx +1 -1
- package/src/{organisms → components/organisms}/OutOfStock/OutOfStock.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/OutOfStockMessage.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/OutOfStockTitle.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/index.tsx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/stories/OutOfStock.mdx +0 -0
- package/src/{organisms → components/organisms}/OutOfStock/stories/OutOfStock.stories.tsx +1 -1
- package/src/{organisms → components/organisms}/Tiles/Tile.tsx +0 -0
- package/src/{organisms → components/organisms}/Tiles/Tiles.tsx +0 -0
- package/src/{organisms → components/organisms}/Tiles/index.ts +0 -0
- package/src/{organisms → components/organisms}/Tiles/stories/Tiles.mdx +0 -0
- package/src/{organisms → components/organisms}/Tiles/stories/Tiles.stories.tsx +0 -0
- package/src/index.ts +95 -100
- package/src/styles/base.scss +3 -0
- package/src/styles/components.scss +11 -0
- package/src/styles/global.scss +4 -0
- package/src/styles/reset.scss +54 -0
- package/src/styles/utilities.scss +75 -0
- package/src/typings/utils.d.ts +2 -2
- package/dist/atoms/Badge/Badge.d.ts +0 -11
- package/dist/atoms/Badge/Badge.js +0 -6
- package/dist/atoms/Badge/Badge.js.map +0 -1
- package/dist/atoms/Badge/index.d.ts +0 -2
- package/dist/atoms/Badge/index.js +0 -2
- package/dist/atoms/Badge/index.js.map +0 -1
- package/dist/atoms/Button/Button.d.ts +0 -10
- package/dist/atoms/Button/Button.js +0 -6
- package/dist/atoms/Button/Button.js.map +0 -1
- package/dist/atoms/Button/index.d.ts +0 -2
- package/dist/atoms/Button/index.js +0 -2
- package/dist/atoms/Button/index.js.map +0 -1
- package/dist/atoms/Checkbox/Checkbox.d.ts +0 -10
- package/dist/atoms/Checkbox/Checkbox.js +0 -6
- package/dist/atoms/Checkbox/Checkbox.js.map +0 -1
- package/dist/atoms/Checkbox/index.d.ts +0 -2
- package/dist/atoms/Checkbox/index.js +0 -2
- package/dist/atoms/Checkbox/index.js.map +0 -1
- package/dist/atoms/Icon/Icon.d.ts +0 -14
- package/dist/atoms/Icon/Icon.js +0 -6
- package/dist/atoms/Icon/Icon.js.map +0 -1
- package/dist/atoms/Icon/index.d.ts +0 -2
- package/dist/atoms/Icon/index.js +0 -2
- package/dist/atoms/Icon/index.js.map +0 -1
- package/dist/atoms/Icon/stories/assets/ShoppingCart.d.ts +0 -3
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js +0 -8
- package/dist/atoms/Icon/stories/assets/ShoppingCart.js.map +0 -1
- package/dist/atoms/Incentive/Incentive.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.d.ts +0 -10
- package/dist/atoms/Overlay/Overlay.js +0 -6
- package/dist/atoms/Overlay/Overlay.js.map +0 -1
- package/dist/atoms/Overlay/index.d.ts +0 -2
- package/dist/atoms/Overlay/index.js +0 -2
- package/dist/atoms/Overlay/index.js.map +0 -1
- package/dist/atoms/Popover/Popover.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.js.map +0 -1
- package/dist/molecules/Carousel/CarouselItem.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
- package/src/atoms/Badge/Badge.test.tsx +0 -23
- package/src/atoms/Badge/Badge.tsx +0 -23
- package/src/atoms/Badge/index.ts +0 -2
- package/src/atoms/Badge/stories/Badge.mdx +0 -18
- package/src/atoms/Badge/stories/Badge.stories.tsx +0 -37
- package/src/atoms/Button/Button.test.tsx +0 -12
- package/src/atoms/Button/Button.tsx +0 -23
- package/src/atoms/Button/index.ts +0 -2
- package/src/atoms/Button/stories/Button.mdx +0 -18
- package/src/atoms/Button/stories/Button.stories.tsx +0 -36
- package/src/atoms/Checkbox/Checkbox.test.tsx +0 -65
- package/src/atoms/Checkbox/Checkbox.tsx +0 -27
- package/src/atoms/Checkbox/index.ts +0 -2
- package/src/atoms/Checkbox/stories/Checkbox.mdx +0 -18
- package/src/atoms/Checkbox/stories/Checkbox.stories.tsx +0 -65
- package/src/atoms/Icon/Icon.test.tsx +0 -43
- package/src/atoms/Icon/Icon.tsx +0 -26
- package/src/atoms/Icon/index.ts +0 -2
- package/src/atoms/Icon/stories/Icon.mdx +0 -18
- package/src/atoms/Icon/stories/Icon.stories.tsx +0 -40
- package/src/atoms/Icon/stories/assets/ShoppingCart.tsx +0 -23
- package/src/atoms/Incentive/Incentive.test.tsx +0 -36
- package/src/atoms/Input/Input.test.tsx +0 -73
- package/src/atoms/Label/Label.test.tsx +0 -71
- package/src/atoms/Label/Label.tsx +0 -22
- package/src/atoms/Label/index.ts +0 -2
- package/src/atoms/Label/stories/Label.mdx +0 -18
- package/src/atoms/Label/stories/Label.stories.tsx +0 -30
- package/src/atoms/Link/Link.test.tsx +0 -53
- package/src/atoms/List/List.test.tsx +0 -195
- package/src/atoms/Overlay/Overlay.test.tsx +0 -23
- package/src/atoms/Overlay/Overlay.tsx +0 -26
- package/src/atoms/Overlay/index.ts +0 -2
- package/src/atoms/Overlay/stories/Overlay.mdx +0 -18
- package/src/atoms/Overlay/stories/Overlay.stories.tsx +0 -48
- package/src/atoms/Popover/Popover.test.tsx +0 -39
- package/src/atoms/Price/Price.test.tsx +0 -63
- package/src/atoms/Radio/Radio.test.tsx +0 -59
- package/src/atoms/Radio/Radio.tsx +0 -24
- package/src/atoms/Radio/index.ts +0 -2
- package/src/atoms/Radio/stories/Radio.mdx +0 -18
- package/src/atoms/Radio/stories/Radio.stories.tsx +0 -41
- package/src/atoms/Select/Select.test.tsx +0 -71
- package/src/atoms/Skeleton/Skeleton.test.tsx +0 -13
- package/src/atoms/Slider/Slider.test.tsx +0 -32
- package/src/atoms/Spinner/Spinner.test.tsx +0 -12
- package/src/atoms/TextArea/TextArea.test.tsx +0 -77
- package/src/hooks/useSlider/useSlider.test.ts +0 -176
- package/src/molecules/Accordion/Accordion.test.tsx +0 -226
- package/src/molecules/AggregateRating/AggregateRating.test.tsx +0 -87
- package/src/molecules/Alert/Alert.test.tsx +0 -23
- package/src/molecules/Banner/Banner.test.tsx +0 -67
- package/src/molecules/Breadcrumb/Breadcrumb.test.tsx +0 -124
- package/src/molecules/Bullets/Bullets.test.tsx +0 -128
- package/src/molecules/Card/Card.test.tsx +0 -68
- package/src/molecules/Carousel/Carousel.test.tsx +0 -587
- package/src/molecules/Carousel/hooks/hooks.test.ts +0 -109
- package/src/molecules/CartItem/CartItem.test.tsx +0 -79
- package/src/molecules/Dropdown/Dropdown.test.tsx +0 -275
- package/src/molecules/Form/Form.test.tsx +0 -61
- package/src/molecules/Gift/Gift.test.tsx +0 -53
- package/src/molecules/IconButton/IconButton.test.tsx +0 -31
- package/src/molecules/IconButton/IconButton.tsx +0 -35
- package/src/molecules/IconButton/index.tsx +0 -2
- package/src/molecules/IconButton/stories/IconButton.mdx +0 -27
- package/src/molecules/IconButton/stories/IconButton.stories.tsx +0 -35
- package/src/molecules/LoadingButton/LoadingButton.test.tsx +0 -14
- package/src/molecules/Modal/Modal.test.tsx +0 -241
- package/src/molecules/OrderSummary/OrderSummary.test.tsx +0 -103
- package/src/molecules/PaymentMethods/PaymentMethods.test.tsx +0 -37
- package/src/molecules/PriceRange/PriceRange.test.tsx +0 -70
- package/src/molecules/ProductCard/ProductCard.test.tsx +0 -75
- package/src/molecules/QuantitySelector/QuantitySelector.test.tsx +0 -93
- package/src/molecules/RadioGroup/RadioGroup.test.tsx +0 -107
- package/src/molecules/SearchInput/SearchInput.test.tsx +0 -34
- package/src/molecules/SkuSelector/SkuSelector.test.tsx +0 -42
- package/src/molecules/Table/Table.test.tsx +0 -233
- package/src/organisms/Hero/Hero.test.tsx +0 -60
- package/src/organisms/OutOfStock/OutOfStock.test.tsx +0 -122
- package/src/setupTests.ts +0 -7
- package/src/utils/toHaveNoIncomplete.ts +0 -76
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Story, Canvas, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
-
import Checkbox from '../Checkbox'
|
|
3
|
-
|
|
4
|
-
# Checkbox
|
|
5
|
-
|
|
6
|
-
<Canvas>
|
|
7
|
-
<Story id="atoms-checkbox--checkbox" />
|
|
8
|
-
</Canvas>
|
|
9
|
-
|
|
10
|
-
## Props
|
|
11
|
-
|
|
12
|
-
<ArgsTable of={Checkbox} />
|
|
13
|
-
|
|
14
|
-
## CSS Selectors
|
|
15
|
-
|
|
16
|
-
```css
|
|
17
|
-
[data-fs-checkbox] {}
|
|
18
|
-
```
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import type { Story, Meta } from '@storybook/react'
|
|
2
|
-
import React, { useEffect, useState } from 'react'
|
|
3
|
-
|
|
4
|
-
import type { ComponentArgTypes } from '../../../typings/utils'
|
|
5
|
-
import type { CheckboxProps } from '../Checkbox'
|
|
6
|
-
import Component from '../Checkbox'
|
|
7
|
-
import mdx from './Checkbox.mdx'
|
|
8
|
-
|
|
9
|
-
const CheckboxTemplate: Story<CheckboxProps> = ({
|
|
10
|
-
checked,
|
|
11
|
-
onClick,
|
|
12
|
-
...otherProps
|
|
13
|
-
}) => {
|
|
14
|
-
const [localChecked, setLocalChecked] = useState(checked)
|
|
15
|
-
|
|
16
|
-
useEffect(() => {
|
|
17
|
-
setLocalChecked(checked)
|
|
18
|
-
}, [checked])
|
|
19
|
-
|
|
20
|
-
return (
|
|
21
|
-
<>
|
|
22
|
-
<Component
|
|
23
|
-
{...otherProps}
|
|
24
|
-
checked={localChecked}
|
|
25
|
-
onClick={(e) => {
|
|
26
|
-
onClick?.(e)
|
|
27
|
-
setLocalChecked(!localChecked)
|
|
28
|
-
}}
|
|
29
|
-
id="checkbox"
|
|
30
|
-
/>
|
|
31
|
-
|
|
32
|
-
<label htmlFor="checkbox">Checkbox</label>
|
|
33
|
-
</>
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const Checkbox = CheckboxTemplate.bind({})
|
|
38
|
-
Checkbox.args = {
|
|
39
|
-
checked: true,
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
const controls: ComponentArgTypes<CheckboxProps> = {
|
|
43
|
-
checked: {
|
|
44
|
-
control: {
|
|
45
|
-
type: 'boolean',
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
const actions: ComponentArgTypes<CheckboxProps> = {
|
|
51
|
-
onClick: { action: 'clicked', table: { disable: true } },
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export default {
|
|
55
|
-
title: 'Atoms/Checkbox',
|
|
56
|
-
argTypes: {
|
|
57
|
-
...controls,
|
|
58
|
-
...actions,
|
|
59
|
-
},
|
|
60
|
-
parameters: {
|
|
61
|
-
docs: {
|
|
62
|
-
page: mdx,
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
} as Meta
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { render } from '@testing-library/react'
|
|
2
|
-
import { axe } from 'jest-axe'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
import Icon from './Icon'
|
|
6
|
-
|
|
7
|
-
const ShoppingCart = () => (
|
|
8
|
-
<svg
|
|
9
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
-
width="1em"
|
|
11
|
-
height="1em"
|
|
12
|
-
viewBox="0 0 24 24"
|
|
13
|
-
fill="none"
|
|
14
|
-
stroke="currentColor"
|
|
15
|
-
strokeWidth="2"
|
|
16
|
-
strokeLinecap="round"
|
|
17
|
-
strokeLinejoin="round"
|
|
18
|
-
>
|
|
19
|
-
<circle cx="9" cy="21" r="1" />
|
|
20
|
-
<circle cx="20" cy="21" r="1" />
|
|
21
|
-
<path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" />
|
|
22
|
-
</svg>
|
|
23
|
-
)
|
|
24
|
-
|
|
25
|
-
describe('Icon', () => {
|
|
26
|
-
it('`data-fs-icon` is present', () => {
|
|
27
|
-
const { getByTestId } = render(
|
|
28
|
-
<Icon data-testid="store-icon" component={<ShoppingCart />} />
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
expect(getByTestId('store-icon')).toHaveAttribute('data-fs-icon')
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
describe('Accessibility', () => {
|
|
35
|
-
it('should have no violations', async () => {
|
|
36
|
-
const { container } = render(
|
|
37
|
-
<Icon data-testid="store-icon" component={<ShoppingCart />} />
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
expect(await axe(container)).toHaveNoViolations()
|
|
41
|
-
})
|
|
42
|
-
})
|
|
43
|
-
})
|
package/src/atoms/Icon/Icon.tsx
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes, ReactNode } from 'react'
|
|
2
|
-
import React, { forwardRef } from 'react'
|
|
3
|
-
|
|
4
|
-
export interface IconProps extends HTMLAttributes<HTMLSpanElement> {
|
|
5
|
-
/**
|
|
6
|
-
* A React component that will be rendered as an icon.
|
|
7
|
-
*/
|
|
8
|
-
component: ReactNode
|
|
9
|
-
/**
|
|
10
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
11
|
-
*/
|
|
12
|
-
testId?: string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const Icon = forwardRef<HTMLSpanElement, IconProps>(function Button(
|
|
16
|
-
{ component, testId = 'store-icon', ...otherProps }: IconProps,
|
|
17
|
-
ref
|
|
18
|
-
) {
|
|
19
|
-
return (
|
|
20
|
-
<span ref={ref} data-fs-icon data-testid={testId} {...otherProps}>
|
|
21
|
-
{component}
|
|
22
|
-
</span>
|
|
23
|
-
)
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
export default Icon
|
package/src/atoms/Icon/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Story, Canvas, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
-
import Icon from '../Icon'
|
|
3
|
-
|
|
4
|
-
# Icon
|
|
5
|
-
|
|
6
|
-
<Canvas>
|
|
7
|
-
<Story id="atoms-icon--icon" />
|
|
8
|
-
</Canvas>
|
|
9
|
-
|
|
10
|
-
## Props
|
|
11
|
-
|
|
12
|
-
<ArgsTable of={Icon} />
|
|
13
|
-
|
|
14
|
-
## CSS Selectors
|
|
15
|
-
|
|
16
|
-
```css
|
|
17
|
-
[data-fs-icon] {}
|
|
18
|
-
```
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import type { Story } from '@storybook/react'
|
|
3
|
-
|
|
4
|
-
import Component from '../Icon'
|
|
5
|
-
import type { IconProps } from '../Icon'
|
|
6
|
-
import mdx from './Icon.mdx'
|
|
7
|
-
import ShoppingCart from './assets/ShoppingCart'
|
|
8
|
-
import type { ComponentArgTypes } from '../../../typings/utils'
|
|
9
|
-
|
|
10
|
-
const IconTemplate: Story<IconProps> = ({ style }) => (
|
|
11
|
-
<Component style={style} component={<ShoppingCart />} />
|
|
12
|
-
)
|
|
13
|
-
|
|
14
|
-
export const Icon = IconTemplate.bind({})
|
|
15
|
-
Icon.args = {
|
|
16
|
-
style: {
|
|
17
|
-
fontSize: '32px',
|
|
18
|
-
color: 'red',
|
|
19
|
-
},
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const argTypes: ComponentArgTypes<Omit<IconProps, 'component'>> = {
|
|
23
|
-
style: {
|
|
24
|
-
control: { type: 'object' },
|
|
25
|
-
},
|
|
26
|
-
onClick: {
|
|
27
|
-
action: 'Icon clicked',
|
|
28
|
-
table: { disable: true },
|
|
29
|
-
},
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export default {
|
|
33
|
-
title: 'Atoms/Icon',
|
|
34
|
-
argTypes,
|
|
35
|
-
parameters: {
|
|
36
|
-
docs: {
|
|
37
|
-
page: mdx,
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
import type { FC } from 'react'
|
|
3
|
-
|
|
4
|
-
// icon by feathericons
|
|
5
|
-
const ShoppingCart: FC = () => (
|
|
6
|
-
<svg
|
|
7
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
8
|
-
width="1em"
|
|
9
|
-
height="1em"
|
|
10
|
-
viewBox="0 0 24 24"
|
|
11
|
-
fill="none"
|
|
12
|
-
stroke="currentColor"
|
|
13
|
-
strokeWidth="2"
|
|
14
|
-
strokeLinecap="round"
|
|
15
|
-
strokeLinejoin="round"
|
|
16
|
-
>
|
|
17
|
-
<circle cx="9" cy="21" r="1" />
|
|
18
|
-
<circle cx="20" cy="21" r="1" />
|
|
19
|
-
<path d="M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6" />
|
|
20
|
-
</svg>
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
export default ShoppingCart
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { render } from '@testing-library/react'
|
|
2
|
-
import { axe } from 'jest-axe'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
import Incentive from './Incentive'
|
|
6
|
-
|
|
7
|
-
const TestIncentive = () => {
|
|
8
|
-
return (
|
|
9
|
-
<Incentive>
|
|
10
|
-
<span>Item title</span>
|
|
11
|
-
<span>Item description</span>
|
|
12
|
-
</Incentive>
|
|
13
|
-
)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
describe('Incentive', () => {
|
|
17
|
-
let incentive: HTMLElement
|
|
18
|
-
|
|
19
|
-
beforeEach(() => {
|
|
20
|
-
const { getByTestId } = render(<TestIncentive />)
|
|
21
|
-
|
|
22
|
-
incentive = getByTestId('store-incentive')
|
|
23
|
-
})
|
|
24
|
-
|
|
25
|
-
describe('Data attributes', () => {
|
|
26
|
-
it('should have `data-fs-incentive` attribute', () => {
|
|
27
|
-
expect(incentive).toHaveAttribute('data-fs-incentive')
|
|
28
|
-
})
|
|
29
|
-
})
|
|
30
|
-
|
|
31
|
-
describe('Accessibility', () => {
|
|
32
|
-
it('should have no violations', async () => {
|
|
33
|
-
expect(await axe(incentive)).toHaveNoViolations()
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
})
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { render } from '@testing-library/react'
|
|
2
|
-
import { axe } from 'jest-axe'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
import Input from '.'
|
|
6
|
-
|
|
7
|
-
describe('Input', () => {
|
|
8
|
-
it('`data-fs-input` is present', () => {
|
|
9
|
-
const { getByPlaceholderText } = render(
|
|
10
|
-
<Input placeholder="Hello World!" />
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
expect(getByPlaceholderText('Hello World!')).toHaveAttribute(
|
|
14
|
-
'data-fs-input'
|
|
15
|
-
)
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
it('`data-error` is present', () => {
|
|
19
|
-
const { getByPlaceholderText } = render(
|
|
20
|
-
<Input placeholder="Hello World!" variant="error" />
|
|
21
|
-
)
|
|
22
|
-
|
|
23
|
-
expect(getByPlaceholderText('Hello World!')).toHaveAttribute('data-error')
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
it('`data-success` is present', () => {
|
|
27
|
-
const { getByPlaceholderText } = render(
|
|
28
|
-
<Input placeholder="Hello World!" variant="success" />
|
|
29
|
-
)
|
|
30
|
-
|
|
31
|
-
expect(getByPlaceholderText('Hello World!')).toHaveAttribute('data-success')
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
describe('Accessibility', () => {
|
|
35
|
-
it('should have no violations using aria-label', async () => {
|
|
36
|
-
const { container } = render(
|
|
37
|
-
<Input aria-label="label input for test" testId="store-input" />
|
|
38
|
-
)
|
|
39
|
-
|
|
40
|
-
expect(await axe(container)).toHaveNoViolations()
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
it('should have no violations using aria-labelledby', async () => {
|
|
44
|
-
const { container } = render(
|
|
45
|
-
<>
|
|
46
|
-
<span id="label">My test label</span>
|
|
47
|
-
<Input aria-labelledby="label" testId="store-input" />
|
|
48
|
-
</>
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
expect(await axe(container)).toHaveNoViolations()
|
|
52
|
-
})
|
|
53
|
-
|
|
54
|
-
it('should have no violations using placeholder', async () => {
|
|
55
|
-
const { container } = render(
|
|
56
|
-
<Input placeholder="Accessibility placeholder" testId="store-input" />
|
|
57
|
-
)
|
|
58
|
-
|
|
59
|
-
expect(await axe(container)).toHaveNoViolations()
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
it('should have no violations using id with explicit label', async () => {
|
|
63
|
-
const { container } = render(
|
|
64
|
-
<>
|
|
65
|
-
<label htmlFor="input">My test label</label>
|
|
66
|
-
<Input id="input" testId="store-input" />
|
|
67
|
-
</>
|
|
68
|
-
)
|
|
69
|
-
|
|
70
|
-
expect(await axe(container)).toHaveNoViolations()
|
|
71
|
-
})
|
|
72
|
-
})
|
|
73
|
-
})
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { render } from '@testing-library/react'
|
|
2
|
-
import { axe } from 'jest-axe'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
import Label from '.'
|
|
6
|
-
|
|
7
|
-
describe('Label', () => {
|
|
8
|
-
it('`data-fs-label` is present', () => {
|
|
9
|
-
const { getByTestId } = render(<Label />)
|
|
10
|
-
|
|
11
|
-
expect(getByTestId('store-label')).toHaveAttribute('data-fs-label')
|
|
12
|
-
})
|
|
13
|
-
|
|
14
|
-
describe('Accessibility', () => {
|
|
15
|
-
it('should have no violations', async () => {
|
|
16
|
-
const { container } = render(<Label>Label</Label>)
|
|
17
|
-
|
|
18
|
-
expect(await axe(container)).toHaveNoViolations()
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
it('should have no violations when using `for` attribute', async () => {
|
|
22
|
-
const { container: inputContainer } = render(
|
|
23
|
-
<>
|
|
24
|
-
<Label htmlFor="input_newsletter">Subscribe to our newsletter</Label>
|
|
25
|
-
<input id="input_newsletter" />
|
|
26
|
-
</>
|
|
27
|
-
)
|
|
28
|
-
|
|
29
|
-
expect(await axe(inputContainer)).toHaveNoViolations()
|
|
30
|
-
|
|
31
|
-
const { container: selectContainer } = render(
|
|
32
|
-
<>
|
|
33
|
-
<Label htmlFor="interest">Select your main interest</Label>
|
|
34
|
-
<select id="interest">
|
|
35
|
-
<option value="clothing">Clothing</option>
|
|
36
|
-
<option value="electronics">Electronics</option>
|
|
37
|
-
<option value="sale">Sale</option>
|
|
38
|
-
</select>
|
|
39
|
-
</>
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
expect(await axe(selectContainer)).toHaveNoViolations()
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
it('should have no violations when wrapping a control element and the labeling text', async () => {
|
|
46
|
-
// Using input element
|
|
47
|
-
const { container: inputContainer } = render(
|
|
48
|
-
<Label>
|
|
49
|
-
Subscribe to our newsletter
|
|
50
|
-
<input />
|
|
51
|
-
</Label>
|
|
52
|
-
)
|
|
53
|
-
|
|
54
|
-
expect(await axe(inputContainer)).toHaveNoViolations()
|
|
55
|
-
|
|
56
|
-
// Using select element
|
|
57
|
-
const { container: selectContainer } = render(
|
|
58
|
-
<Label>
|
|
59
|
-
Select your main interest
|
|
60
|
-
<select id="interest">
|
|
61
|
-
<option value="clothing">Clothing</option>
|
|
62
|
-
<option value="electronics">Electronics</option>
|
|
63
|
-
<option value="sale">Sale</option>
|
|
64
|
-
</select>
|
|
65
|
-
</Label>
|
|
66
|
-
)
|
|
67
|
-
|
|
68
|
-
expect(await axe(selectContainer)).toHaveNoViolations()
|
|
69
|
-
})
|
|
70
|
-
})
|
|
71
|
-
})
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { LabelHTMLAttributes } from 'react'
|
|
2
|
-
import React, { forwardRef } from 'react'
|
|
3
|
-
|
|
4
|
-
export interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {
|
|
5
|
-
/**
|
|
6
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
7
|
-
*/
|
|
8
|
-
testId?: string
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const Label = forwardRef<HTMLLabelElement, LabelProps>(function Label(
|
|
12
|
-
{ testId = 'store-label', children, ...otherProps },
|
|
13
|
-
ref
|
|
14
|
-
) {
|
|
15
|
-
return (
|
|
16
|
-
<label ref={ref} data-fs-label data-testid={testId} {...otherProps}>
|
|
17
|
-
{children}
|
|
18
|
-
</label>
|
|
19
|
-
)
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
export default Label
|
package/src/atoms/Label/index.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Story, Canvas, ArgsTable } from '@storybook/addon-docs'
|
|
2
|
-
import Label from '../Label'
|
|
3
|
-
|
|
4
|
-
# Label
|
|
5
|
-
|
|
6
|
-
<Canvas>
|
|
7
|
-
<Story id="atoms-label--label" />
|
|
8
|
-
</Canvas>
|
|
9
|
-
|
|
10
|
-
## Props
|
|
11
|
-
|
|
12
|
-
<ArgsTable of={Label} />
|
|
13
|
-
|
|
14
|
-
## CSS Selectors
|
|
15
|
-
|
|
16
|
-
```css
|
|
17
|
-
[data-fs-label] {}
|
|
18
|
-
```
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { Story } from '@storybook/react'
|
|
2
|
-
import React from 'react'
|
|
3
|
-
|
|
4
|
-
import type { ComponentArgTypes } from '../../../typings/utils'
|
|
5
|
-
import type { LabelProps } from '../Label'
|
|
6
|
-
import Component from '../Label'
|
|
7
|
-
import mdx from './Label.mdx'
|
|
8
|
-
|
|
9
|
-
const LabelTemplate: Story<LabelProps> = ({ children }) => (
|
|
10
|
-
<Component>{children}</Component>
|
|
11
|
-
)
|
|
12
|
-
|
|
13
|
-
export const Label = LabelTemplate.bind({})
|
|
14
|
-
|
|
15
|
-
const argTypes: ComponentArgTypes<LabelProps> = {
|
|
16
|
-
children: {
|
|
17
|
-
control: { type: 'text' },
|
|
18
|
-
defaultValue: 'Label',
|
|
19
|
-
},
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export default {
|
|
23
|
-
title: 'Atoms/Label',
|
|
24
|
-
argTypes,
|
|
25
|
-
parameters: {
|
|
26
|
-
docs: {
|
|
27
|
-
page: mdx,
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { render } from '@testing-library/react'
|
|
2
|
-
import { axe } from 'jest-axe'
|
|
3
|
-
import React from 'react'
|
|
4
|
-
|
|
5
|
-
import type { LinkProps } from '.'
|
|
6
|
-
import LinkComponent from '.'
|
|
7
|
-
|
|
8
|
-
const TestLink = ({ href = '/', testId }: LinkProps<'a'>) => {
|
|
9
|
-
return (
|
|
10
|
-
<LinkComponent testId={testId} href={href}>
|
|
11
|
-
Link
|
|
12
|
-
</LinkComponent>
|
|
13
|
-
)
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
describe('Link', () => {
|
|
17
|
-
it('should receive a custom component', () => {
|
|
18
|
-
const { getByTestId } = render(
|
|
19
|
-
<LinkComponent
|
|
20
|
-
href="/"
|
|
21
|
-
as={(props: { href: string }) => {
|
|
22
|
-
return (
|
|
23
|
-
<div {...props}>
|
|
24
|
-
<a data-testid="custom-anchor" href={props.href}>
|
|
25
|
-
Link
|
|
26
|
-
</a>
|
|
27
|
-
</div>
|
|
28
|
-
)
|
|
29
|
-
}}
|
|
30
|
-
/>
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
expect(getByTestId('custom-anchor')).toHaveAttribute('href', '/')
|
|
34
|
-
expect(getByTestId('store-link')).toHaveAttribute('data-fs-link')
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
describe('Data Attributes', () => {
|
|
38
|
-
it('should have `data-fs-link` attribute', () => {
|
|
39
|
-
const { getByTestId } = render(<TestLink />)
|
|
40
|
-
|
|
41
|
-
expect(getByTestId('store-link')).toHaveAttribute('data-fs-link')
|
|
42
|
-
})
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
describe('Accessibility', () => {
|
|
46
|
-
it('should have no violations', async () => {
|
|
47
|
-
const { getByTestId } = render(<TestLink />)
|
|
48
|
-
|
|
49
|
-
expect(await axe(getByTestId('store-link'))).toHaveNoViolations()
|
|
50
|
-
expect(await axe(getByTestId('store-link'))).toHaveNoIncompletes()
|
|
51
|
-
})
|
|
52
|
-
})
|
|
53
|
-
})
|