@faststore/components 3.0.7 → 3.0.32-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/dist/atoms/Badge/Badge.d.ts +27 -0
- package/dist/atoms/Badge/Badge.js +7 -0
- package/dist/atoms/Badge/Badge.js.map +1 -0
- package/dist/atoms/Badge/index.d.ts +2 -0
- package/dist/atoms/Badge/index.js +2 -0
- package/dist/atoms/Badge/index.js.map +1 -0
- package/dist/atoms/Button/Button.d.ts +45 -0
- package/dist/atoms/Button/Button.js +14 -0
- package/dist/atoms/Button/Button.js.map +1 -0
- package/dist/atoms/Button/index.d.ts +2 -0
- package/dist/atoms/Button/index.js +2 -0
- package/dist/atoms/Button/index.js.map +1 -0
- package/dist/atoms/Checkbox/Checkbox.d.ts +14 -0
- package/dist/atoms/Checkbox/Checkbox.js +6 -0
- package/dist/atoms/Checkbox/Checkbox.js.map +1 -0
- package/dist/atoms/Checkbox/index.d.ts +2 -0
- package/dist/atoms/Checkbox/index.js +2 -0
- package/dist/atoms/Checkbox/index.js.map +1 -0
- package/dist/atoms/Icon/Icon.d.ts +35 -0
- package/dist/atoms/Icon/Icon.js +14 -0
- package/dist/atoms/Icon/Icon.js.map +1 -0
- package/dist/atoms/Icon/index.d.ts +2 -0
- package/dist/atoms/Icon/index.js +2 -0
- package/dist/atoms/Icon/index.js.map +1 -0
- package/dist/atoms/Input/Input.d.ts +10 -0
- package/dist/atoms/Input/Input.js +6 -0
- package/dist/atoms/Input/Input.js.map +1 -0
- package/dist/atoms/Input/index.d.ts +2 -0
- package/dist/atoms/Input/index.js +2 -0
- package/dist/atoms/Input/index.js.map +1 -0
- package/dist/atoms/Label/Label.d.ts +10 -0
- package/dist/atoms/Label/Label.js +6 -0
- package/dist/atoms/Label/Label.js.map +1 -0
- package/dist/atoms/Label/index.d.ts +2 -0
- package/dist/atoms/Label/index.js +2 -0
- package/dist/atoms/Label/index.js.map +1 -0
- package/dist/atoms/Link/Link.d.ts +25 -0
- package/dist/atoms/Link/Link.js +7 -0
- package/dist/atoms/Link/Link.js.map +1 -0
- package/dist/atoms/Link/index.d.ts +2 -0
- package/dist/atoms/Link/index.js +2 -0
- package/dist/atoms/Link/index.js.map +1 -0
- package/dist/atoms/List/List.d.ts +16 -0
- package/dist/atoms/List/List.js +7 -0
- package/dist/atoms/List/List.js.map +1 -0
- package/dist/atoms/List/index.d.ts +2 -0
- package/dist/atoms/List/index.js +2 -0
- package/dist/atoms/List/index.js.map +1 -0
- package/dist/atoms/Loader/Loader.d.ts +14 -0
- package/dist/atoms/Loader/Loader.js +9 -0
- package/dist/atoms/Loader/Loader.js.map +1 -0
- package/dist/atoms/Loader/index.d.ts +2 -0
- package/dist/atoms/Loader/index.js +2 -0
- package/dist/atoms/Loader/index.js.map +1 -0
- package/dist/atoms/Overlay/Overlay.d.ts +10 -0
- package/dist/atoms/Overlay/Overlay.js +6 -0
- package/dist/atoms/Overlay/Overlay.js.map +1 -0
- package/dist/atoms/Overlay/index.d.ts +2 -0
- package/dist/atoms/Overlay/index.js +2 -0
- package/dist/atoms/Overlay/index.js.map +1 -0
- package/dist/atoms/Price/Price.d.ts +32 -0
- package/dist/atoms/Price/Price.js +10 -0
- package/dist/atoms/Price/Price.js.map +1 -0
- package/dist/atoms/Price/index.d.ts +2 -0
- package/dist/atoms/Price/index.js +2 -0
- package/dist/atoms/Price/index.js.map +1 -0
- package/dist/atoms/Radio/Radio.d.ts +10 -0
- package/dist/atoms/Radio/Radio.js +6 -0
- package/dist/atoms/Radio/Radio.js.map +1 -0
- package/dist/atoms/Radio/index.d.ts +2 -0
- package/dist/atoms/Radio/index.js +2 -0
- package/dist/atoms/Radio/index.js.map +1 -0
- package/dist/atoms/SROnly/SROnly.d.ts +14 -0
- package/dist/atoms/SROnly/SROnly.js +7 -0
- package/dist/atoms/SROnly/SROnly.js.map +1 -0
- package/dist/atoms/SROnly/index.d.ts +1 -0
- package/dist/atoms/SROnly/index.js +2 -0
- package/dist/atoms/SROnly/index.js.map +1 -0
- package/dist/atoms/Select/Select.d.ts +20 -0
- package/dist/atoms/Select/Select.js +9 -0
- package/dist/atoms/Select/Select.js.map +1 -0
- package/dist/atoms/Select/index.d.ts +2 -0
- package/dist/atoms/Select/index.js +2 -0
- package/dist/atoms/Select/index.js.map +1 -0
- package/dist/atoms/Skeleton/Skeleton.d.ts +37 -0
- package/dist/atoms/Skeleton/Skeleton.js +10 -0
- package/dist/atoms/Skeleton/Skeleton.js.map +1 -0
- package/dist/atoms/Skeleton/index.d.ts +2 -0
- package/dist/atoms/Skeleton/index.js +2 -0
- package/dist/atoms/Skeleton/index.js.map +1 -0
- package/dist/atoms/Slider/Slider.d.ts +71 -0
- package/dist/atoms/Slider/Slider.js +57 -0
- package/dist/atoms/Slider/Slider.js.map +1 -0
- package/dist/atoms/Slider/index.d.ts +2 -0
- package/dist/atoms/Slider/index.js +2 -0
- package/dist/atoms/Slider/index.js.map +1 -0
- package/dist/cjs/molecules/SkuSelector/useDefineVariant.d.ts +4 -0
- package/dist/cjs/molecules/SkuSelector/useDefineVariant.js +11 -0
- package/dist/cjs/molecules/SkuSelector/useDefineVariant.js.map +1 -1
- package/dist/cjs/organisms/ImageGallery/ImageZoom.d.ts +7 -0
- package/dist/cjs/organisms/ImageGallery/ImageZoom.js +9 -0
- package/dist/cjs/organisms/ImageGallery/ImageZoom.js.map +1 -0
- package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js +1 -1
- package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
- package/dist/esm/molecules/SkuSelector/useDefineVariant.d.ts +4 -0
- package/dist/esm/molecules/SkuSelector/useDefineVariant.js +11 -0
- package/dist/esm/molecules/SkuSelector/useDefineVariant.js.map +1 -1
- package/dist/esm/organisms/ImageGallery/ImageZoom.d.ts +7 -0
- package/dist/esm/organisms/ImageGallery/ImageZoom.js +6 -0
- package/dist/esm/organisms/ImageGallery/ImageZoom.js.map +1 -0
- package/dist/esm/organisms/PaymentMethods/PaymentMethods.js +1 -1
- package/dist/esm/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
- package/dist/hooks/UIProvider.d.ts +34 -0
- package/dist/hooks/UIProvider.js +78 -0
- package/dist/hooks/UIProvider.js.map +1 -0
- package/dist/hooks/index.d.ts +8 -0
- package/dist/hooks/index.js +8 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useFadeEffect.d.ts +5 -0
- package/dist/hooks/useFadeEffect.js +18 -0
- package/dist/hooks/useFadeEffect.js.map +1 -0
- package/dist/hooks/useScrollDirection.d.ts +1 -0
- package/dist/hooks/useScrollDirection.js +22 -0
- package/dist/hooks/useScrollDirection.js.map +1 -0
- package/dist/hooks/useSearch.d.ts +7 -0
- package/dist/hooks/useSearch.js +10 -0
- package/dist/hooks/useSearch.js.map +1 -0
- package/dist/hooks/useSlideVisibility.d.ts +9 -0
- package/dist/hooks/useSlideVisibility.js +29 -0
- package/dist/hooks/useSlideVisibility.js.map +1 -0
- package/dist/hooks/useSlider.d.ts +64 -0
- package/dist/hooks/useSlider.js +103 -0
- package/dist/hooks/useSlider.js.map +1 -0
- package/dist/hooks/useTrapFocus.d.ts +8 -0
- package/dist/hooks/useTrapFocus.js +75 -0
- package/dist/hooks/useTrapFocus.js.map +1 -0
- package/dist/index.d.ts +141 -0
- package/dist/index.js +78 -0
- package/dist/index.js.map +1 -0
- package/dist/molecules/Accordion/Accordion.d.ts +26 -0
- package/dist/molecules/Accordion/Accordion.js +21 -0
- package/dist/molecules/Accordion/Accordion.js.map +1 -0
- package/dist/molecules/Accordion/AccordionButton.d.ts +19 -0
- package/dist/molecules/Accordion/AccordionButton.js +37 -0
- package/dist/molecules/Accordion/AccordionButton.js.map +1 -0
- package/dist/molecules/Accordion/AccordionItem.d.ts +31 -0
- package/dist/molecules/Accordion/AccordionItem.js +22 -0
- package/dist/molecules/Accordion/AccordionItem.js.map +1 -0
- package/dist/molecules/Accordion/AccordionPanel.d.ts +10 -0
- package/dist/molecules/Accordion/AccordionPanel.js +10 -0
- package/dist/molecules/Accordion/AccordionPanel.js.map +1 -0
- package/dist/molecules/Accordion/index.d.ts +8 -0
- package/dist/molecules/Accordion/index.js +5 -0
- package/dist/molecules/Accordion/index.js.map +1 -0
- package/dist/molecules/Alert/Alert.d.ts +29 -0
- package/dist/molecules/Alert/Alert.js +17 -0
- package/dist/molecules/Alert/Alert.js.map +1 -0
- package/dist/molecules/Alert/index.d.ts +2 -0
- package/dist/molecules/Alert/index.js +2 -0
- package/dist/molecules/Alert/index.js.map +1 -0
- package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +6 -0
- package/dist/molecules/Breadcrumb/Breadcrumb.js +7 -0
- package/dist/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/molecules/Breadcrumb/BreadcrumbBase.d.ts +47 -0
- package/dist/molecules/Breadcrumb/BreadcrumbBase.js +45 -0
- package/dist/molecules/Breadcrumb/BreadcrumbBase.js.map +1 -0
- package/dist/molecules/Breadcrumb/BreadcrumbPure.d.ts +14 -0
- package/dist/molecules/Breadcrumb/BreadcrumbPure.js +12 -0
- package/dist/molecules/Breadcrumb/BreadcrumbPure.js.map +1 -0
- package/dist/molecules/Breadcrumb/Divider.d.ts +4 -0
- package/dist/molecules/Breadcrumb/Divider.js +14 -0
- package/dist/molecules/Breadcrumb/Divider.js.map +1 -0
- package/dist/molecules/Breadcrumb/ListItem.d.ts +10 -0
- package/dist/molecules/Breadcrumb/ListItem.js +20 -0
- package/dist/molecules/Breadcrumb/ListItem.js.map +1 -0
- package/dist/molecules/Breadcrumb/index.d.ts +4 -0
- package/dist/molecules/Breadcrumb/index.js +3 -0
- package/dist/molecules/Breadcrumb/index.js.map +1 -0
- package/dist/molecules/BuyButton/BuyButton.d.ts +5 -0
- package/dist/molecules/BuyButton/BuyButton.js +7 -0
- package/dist/molecules/BuyButton/BuyButton.js.map +1 -0
- package/dist/molecules/BuyButton/index.d.ts +1 -0
- package/dist/molecules/BuyButton/index.js +2 -0
- package/dist/molecules/BuyButton/index.js.map +1 -0
- package/dist/molecules/Carousel/Carousel.d.ts +60 -0
- package/dist/molecules/Carousel/Carousel.js +188 -0
- package/dist/molecules/Carousel/Carousel.js.map +1 -0
- package/dist/molecules/Carousel/CarouselBullets.d.ts +39 -0
- package/dist/molecules/Carousel/CarouselBullets.js +12 -0
- package/dist/molecules/Carousel/CarouselBullets.js.map +1 -0
- package/dist/molecules/Carousel/CarouselItem.d.ts +13 -0
- package/dist/molecules/Carousel/CarouselItem.js +20 -0
- package/dist/molecules/Carousel/CarouselItem.js.map +1 -0
- package/dist/molecules/Carousel/index.d.ts +6 -0
- package/dist/molecules/Carousel/index.js +4 -0
- package/dist/molecules/Carousel/index.js.map +1 -0
- package/dist/molecules/CartItem/CartItem.d.ts +32 -0
- package/dist/molecules/CartItem/CartItem.js +12 -0
- package/dist/molecules/CartItem/CartItem.js.map +1 -0
- package/dist/molecules/CartItem/CartItemImage.d.ts +10 -0
- package/dist/molecules/CartItem/CartItemImage.js +6 -0
- package/dist/molecules/CartItem/CartItemImage.js.map +1 -0
- package/dist/molecules/CartItem/CartItemSummary.d.ts +21 -0
- package/dist/molecules/CartItem/CartItemSummary.js +12 -0
- package/dist/molecules/CartItem/CartItemSummary.js.map +1 -0
- package/dist/molecules/CartItem/index.d.ts +6 -0
- package/dist/molecules/CartItem/index.js +4 -0
- package/dist/molecules/CartItem/index.js.map +1 -0
- package/dist/molecules/CheckboxField/CheckboxField.d.ts +25 -0
- package/dist/molecules/CheckboxField/CheckboxField.js +10 -0
- package/dist/molecules/CheckboxField/CheckboxField.js.map +1 -0
- package/dist/molecules/CheckboxField/index.d.ts +2 -0
- package/dist/molecules/CheckboxField/index.js +2 -0
- package/dist/molecules/CheckboxField/index.js.map +1 -0
- package/dist/molecules/DiscountBadge/DiscountBadge.d.ts +26 -0
- package/dist/molecules/DiscountBadge/DiscountBadge.js +19 -0
- package/dist/molecules/DiscountBadge/DiscountBadge.js.map +1 -0
- package/dist/molecules/DiscountBadge/index.d.ts +2 -0
- package/dist/molecules/DiscountBadge/index.js +2 -0
- package/dist/molecules/DiscountBadge/index.js.map +1 -0
- package/dist/molecules/DiscountBadge/useDiscountPercent.d.ts +1 -0
- package/dist/molecules/DiscountBadge/useDiscountPercent.js +9 -0
- package/dist/molecules/DiscountBadge/useDiscountPercent.js.map +1 -0
- package/dist/molecules/Dropdown/Dropdown.d.ts +18 -0
- package/dist/molecules/Dropdown/Dropdown.js +66 -0
- package/dist/molecules/Dropdown/Dropdown.js.map +1 -0
- package/dist/molecules/Dropdown/DropdownButton.d.ts +14 -0
- package/dist/molecules/Dropdown/DropdownButton.js +12 -0
- package/dist/molecules/Dropdown/DropdownButton.js.map +1 -0
- package/dist/molecules/Dropdown/DropdownItem.d.ts +14 -0
- package/dist/molecules/Dropdown/DropdownItem.js +28 -0
- package/dist/molecules/Dropdown/DropdownItem.js.map +1 -0
- package/dist/molecules/Dropdown/DropdownMenu.d.ts +26 -0
- package/dist/molecules/Dropdown/DropdownMenu.js +66 -0
- package/dist/molecules/Dropdown/DropdownMenu.js.map +1 -0
- package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -0
- package/dist/molecules/Dropdown/contexts/DropdownContext.js +11 -0
- package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
- package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +6 -0
- package/dist/molecules/Dropdown/hooks/useDropdown.js +14 -0
- package/dist/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -0
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
- package/dist/molecules/Dropdown/index.d.ts +8 -0
- package/dist/molecules/Dropdown/index.js +5 -0
- package/dist/molecules/Dropdown/index.js.map +1 -0
- package/dist/molecules/Gift/Gift.d.ts +15 -0
- package/dist/molecules/Gift/Gift.js +8 -0
- package/dist/molecules/Gift/Gift.js.map +1 -0
- package/dist/molecules/Gift/GiftContent.d.ts +27 -0
- package/dist/molecules/Gift/GiftContent.js +14 -0
- package/dist/molecules/Gift/GiftContent.js.map +1 -0
- package/dist/molecules/Gift/GiftImage.d.ts +10 -0
- package/dist/molecules/Gift/GiftImage.js +6 -0
- package/dist/molecules/Gift/GiftImage.js.map +1 -0
- package/dist/molecules/Gift/index.d.ts +6 -0
- package/dist/molecules/Gift/index.js +4 -0
- package/dist/molecules/Gift/index.js.map +1 -0
- package/dist/molecules/IconButton/IconButton.d.ts +19 -0
- package/dist/molecules/IconButton/IconButton.js +7 -0
- package/dist/molecules/IconButton/IconButton.js.map +1 -0
- package/dist/molecules/IconButton/index.d.ts +2 -0
- package/dist/molecules/IconButton/index.js +2 -0
- package/dist/molecules/IconButton/index.js.map +1 -0
- package/dist/molecules/InputField/InputField.d.ts +60 -0
- package/dist/molecules/InputField/InputField.js +18 -0
- package/dist/molecules/InputField/InputField.js.map +1 -0
- package/dist/molecules/InputField/index.d.ts +2 -0
- package/dist/molecules/InputField/index.js +2 -0
- package/dist/molecules/InputField/index.js.map +1 -0
- package/dist/molecules/LinkButton/LinkButton.d.ts +6 -0
- package/dist/molecules/LinkButton/LinkButton.js +17 -0
- package/dist/molecules/LinkButton/LinkButton.js.map +1 -0
- package/dist/molecules/LinkButton/index.d.ts +2 -0
- package/dist/molecules/LinkButton/index.js +2 -0
- package/dist/molecules/LinkButton/index.js.map +1 -0
- package/dist/molecules/Modal/Modal.d.ts +39 -0
- package/dist/molecules/Modal/Modal.js +38 -0
- package/dist/molecules/Modal/Modal.js.map +1 -0
- package/dist/molecules/Modal/ModalBody.d.ts +9 -0
- package/dist/molecules/Modal/ModalBody.js +4 -0
- package/dist/molecules/Modal/ModalBody.js.map +1 -0
- package/dist/molecules/Modal/ModalContent.d.ts +11 -0
- package/dist/molecules/Modal/ModalContent.js +23 -0
- package/dist/molecules/Modal/ModalContent.js.map +1 -0
- package/dist/molecules/Modal/ModalHeader.d.ts +22 -0
- package/dist/molecules/Modal/ModalHeader.js +11 -0
- package/dist/molecules/Modal/ModalHeader.js.map +1 -0
- package/dist/molecules/Modal/index.d.ts +5 -0
- package/dist/molecules/Modal/index.js +4 -0
- package/dist/molecules/Modal/index.js.map +1 -0
- package/dist/molecules/NavbarLinks/NavbarLinks.d.ts +10 -0
- package/dist/molecules/NavbarLinks/NavbarLinks.js +6 -0
- package/dist/molecules/NavbarLinks/NavbarLinks.js.map +1 -0
- package/dist/molecules/NavbarLinks/NavbarLinksList.d.ts +10 -0
- package/dist/molecules/NavbarLinks/NavbarLinksList.js +7 -0
- package/dist/molecules/NavbarLinks/NavbarLinksList.js.map +1 -0
- package/dist/molecules/NavbarLinks/NavbarLinksListItem.d.ts +10 -0
- package/dist/molecules/NavbarLinks/NavbarLinksListItem.js +6 -0
- package/dist/molecules/NavbarLinks/NavbarLinksListItem.js.map +1 -0
- package/dist/molecules/NavbarLinks/index.d.ts +6 -0
- package/dist/molecules/NavbarLinks/index.js +4 -0
- package/dist/molecules/NavbarLinks/index.js.map +1 -0
- package/dist/molecules/OrderSummary/OrderSummary.d.ts +35 -0
- package/dist/molecules/OrderSummary/OrderSummary.js +16 -0
- package/dist/molecules/OrderSummary/OrderSummary.js.map +1 -0
- package/dist/molecules/OrderSummary/index.d.ts +2 -0
- package/dist/molecules/OrderSummary/index.js +2 -0
- package/dist/molecules/OrderSummary/index.js.map +1 -0
- package/dist/molecules/ProductCard/ProductCard.d.ts +23 -0
- package/dist/molecules/ProductCard/ProductCard.js +6 -0
- package/dist/molecules/ProductCard/ProductCard.js.map +1 -0
- package/dist/molecules/ProductCard/ProductCardContent.d.ts +48 -0
- package/dist/molecules/ProductCard/ProductCardContent.js +19 -0
- package/dist/molecules/ProductCard/ProductCardContent.js.map +1 -0
- package/dist/molecules/ProductCard/ProductCardImage.d.ts +14 -0
- package/dist/molecules/ProductCard/ProductCardImage.js +8 -0
- package/dist/molecules/ProductCard/ProductCardImage.js.map +1 -0
- package/dist/molecules/ProductCard/index.d.ts +6 -0
- package/dist/molecules/ProductCard/index.js +4 -0
- package/dist/molecules/ProductCard/index.js.map +1 -0
- package/dist/molecules/ProductPrice/ProductPrice.d.ts +24 -0
- package/dist/molecules/ProductPrice/ProductPrice.js +11 -0
- package/dist/molecules/ProductPrice/ProductPrice.js.map +1 -0
- package/dist/molecules/ProductPrice/index.d.ts +2 -0
- package/dist/molecules/ProductPrice/index.js +2 -0
- package/dist/molecules/ProductPrice/index.js.map +1 -0
- package/dist/molecules/ProductTitle/ProductTitle.d.ts +30 -0
- package/dist/molecules/ProductTitle/ProductTitle.js +16 -0
- package/dist/molecules/ProductTitle/ProductTitle.js.map +1 -0
- package/dist/molecules/ProductTitle/index.d.ts +2 -0
- package/dist/molecules/ProductTitle/index.js +2 -0
- package/dist/molecules/ProductTitle/index.js.map +1 -0
- package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +31 -0
- package/dist/molecules/QuantitySelector/QuantitySelector.js +37 -0
- package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
- package/dist/molecules/QuantitySelector/index.d.ts +2 -0
- package/dist/molecules/QuantitySelector/index.js +2 -0
- package/dist/molecules/QuantitySelector/index.js.map +1 -0
- package/dist/molecules/RadioField/RadioField.d.ts +26 -0
- package/dist/molecules/RadioField/RadioField.js +10 -0
- package/dist/molecules/RadioField/RadioField.js.map +1 -0
- package/dist/molecules/RadioField/index.d.ts +2 -0
- package/dist/molecules/RadioField/index.js +2 -0
- package/dist/molecules/RadioField/index.js.map +1 -0
- package/dist/molecules/RadioGroup/RadioGroup.d.ts +6 -0
- package/dist/molecules/RadioGroup/RadioGroup.js +10 -0
- package/dist/molecules/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/molecules/RadioGroup/RadioOption.d.ts +19 -0
- package/dist/molecules/RadioGroup/RadioOption.js +11 -0
- package/dist/molecules/RadioGroup/RadioOption.js.map +1 -0
- package/dist/molecules/RadioGroup/index.d.ts +4 -0
- package/dist/molecules/RadioGroup/index.js +3 -0
- package/dist/molecules/RadioGroup/index.js.map +1 -0
- package/dist/molecules/RadioGroup/useRadioGroup.d.ts +17 -0
- package/dist/molecules/RadioGroup/useRadioGroup.js +10 -0
- package/dist/molecules/RadioGroup/useRadioGroup.js.map +1 -0
- package/dist/molecules/Rating/Rating.d.ts +29 -0
- package/dist/molecules/Rating/Rating.js +27 -0
- package/dist/molecules/Rating/Rating.js.map +1 -0
- package/dist/molecules/Rating/index.d.ts +2 -0
- package/dist/molecules/Rating/index.js +2 -0
- package/dist/molecules/Rating/index.js.map +1 -0
- package/dist/molecules/RegionBar/RegionBar.d.ts +30 -0
- package/dist/molecules/RegionBar/RegionBar.js +12 -0
- package/dist/molecules/RegionBar/RegionBar.js.map +1 -0
- package/dist/molecules/RegionBar/index.d.ts +2 -0
- package/dist/molecules/RegionBar/index.js +2 -0
- package/dist/molecules/RegionBar/index.js.map +1 -0
- package/dist/molecules/SearchAutoComplete/SearchAutoComplete.d.ts +9 -0
- package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js +12 -0
- package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js.map +1 -0
- package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.d.ts +27 -0
- package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js +27 -0
- package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js.map +1 -0
- package/dist/molecules/SearchAutoComplete/index.d.ts +4 -0
- package/dist/molecules/SearchAutoComplete/index.js +3 -0
- package/dist/molecules/SearchAutoComplete/index.js.map +1 -0
- package/dist/molecules/SearchDropdown/SearchDropdown.d.ts +14 -0
- package/dist/molecules/SearchDropdown/SearchDropdown.js +14 -0
- package/dist/molecules/SearchDropdown/SearchDropdown.js.map +1 -0
- package/dist/molecules/SearchDropdown/index.d.ts +2 -0
- package/dist/molecules/SearchDropdown/index.js +2 -0
- package/dist/molecules/SearchDropdown/index.js.map +1 -0
- package/dist/molecules/SearchHistory/SearchHistory.d.ts +21 -0
- package/dist/molecules/SearchHistory/SearchHistory.js +15 -0
- package/dist/molecules/SearchHistory/SearchHistory.js.map +1 -0
- package/dist/molecules/SearchHistory/SearchHistoryTerm.d.ts +23 -0
- package/dist/molecules/SearchHistory/SearchHistoryTerm.js +10 -0
- package/dist/molecules/SearchHistory/SearchHistoryTerm.js.map +1 -0
- package/dist/molecules/SearchHistory/index.d.ts +4 -0
- package/dist/molecules/SearchHistory/index.js +3 -0
- package/dist/molecules/SearchHistory/index.js.map +1 -0
- package/dist/molecules/SearchInputField/SearchInputField.d.ts +36 -0
- package/dist/molecules/SearchInputField/SearchInputField.js +21 -0
- package/dist/molecules/SearchInputField/SearchInputField.js.map +1 -0
- package/dist/molecules/SearchInputField/index.d.ts +2 -0
- package/dist/molecules/SearchInputField/index.js +2 -0
- package/dist/molecules/SearchInputField/index.js.map +1 -0
- package/dist/molecules/SearchProducts/SearchProductItem.d.ts +16 -0
- package/dist/molecules/SearchProducts/SearchProductItem.js +8 -0
- package/dist/molecules/SearchProducts/SearchProductItem.js.map +1 -0
- package/dist/molecules/SearchProducts/SearchProductItemContent.d.ts +14 -0
- package/dist/molecules/SearchProducts/SearchProductItemContent.js +9 -0
- package/dist/molecules/SearchProducts/SearchProductItemContent.js.map +1 -0
- package/dist/molecules/SearchProducts/SearchProductItemImage.d.ts +10 -0
- package/dist/molecules/SearchProducts/SearchProductItemImage.js +6 -0
- package/dist/molecules/SearchProducts/SearchProductItemImage.js.map +1 -0
- package/dist/molecules/SearchProducts/SearchProducts.d.ts +13 -0
- package/dist/molecules/SearchProducts/SearchProducts.js +14 -0
- package/dist/molecules/SearchProducts/SearchProducts.js.map +1 -0
- package/dist/molecules/SearchProducts/index.d.ts +8 -0
- package/dist/molecules/SearchProducts/index.js +5 -0
- package/dist/molecules/SearchProducts/index.js.map +1 -0
- package/dist/molecules/SearchProvider/SearchProvider.d.ts +29 -0
- package/dist/molecules/SearchProvider/SearchProvider.js +8 -0
- package/dist/molecules/SearchProvider/SearchProvider.js.map +1 -0
- package/dist/molecules/SearchProvider/index.d.ts +2 -0
- package/dist/molecules/SearchProvider/index.js +2 -0
- package/dist/molecules/SearchProvider/index.js.map +1 -0
- package/dist/molecules/SearchTop/SearchTop.d.ts +14 -0
- package/dist/molecules/SearchTop/SearchTop.js +15 -0
- package/dist/molecules/SearchTop/SearchTop.js.map +1 -0
- package/dist/molecules/SearchTop/SearchTopTerm.d.ts +23 -0
- package/dist/molecules/SearchTop/SearchTopTerm.js +10 -0
- package/dist/molecules/SearchTop/SearchTopTerm.js.map +1 -0
- package/dist/molecules/SearchTop/index.d.ts +4 -0
- package/dist/molecules/SearchTop/index.js +3 -0
- package/dist/molecules/SearchTop/index.js.map +1 -0
- package/dist/molecules/SelectField/SelectField.d.ts +12 -0
- package/dist/molecules/SelectField/SelectField.js +9 -0
- package/dist/molecules/SelectField/SelectField.js.map +1 -0
- package/dist/molecules/SelectField/index.d.ts +2 -0
- package/dist/molecules/SelectField/index.js +2 -0
- package/dist/molecules/SelectField/index.js.map +1 -0
- package/dist/molecules/SkuSelector/SkuSelector.d.ts +78 -0
- package/dist/molecules/SkuSelector/SkuSelector.js +31 -0
- package/dist/molecules/SkuSelector/SkuSelector.js.map +1 -0
- package/dist/molecules/SkuSelector/index.d.ts +2 -0
- package/dist/molecules/SkuSelector/index.js +2 -0
- package/dist/molecules/SkuSelector/index.js.map +1 -0
- package/dist/molecules/SkuSelector/useDefineVariant.d.ts +3 -0
- package/dist/molecules/SkuSelector/useDefineVariant.js +27 -0
- package/dist/molecules/SkuSelector/useDefineVariant.js.map +1 -0
- package/dist/molecules/SkuSelector/useSkuSlug.d.ts +6 -0
- package/dist/molecules/SkuSelector/useSkuSlug.js +23 -0
- package/dist/molecules/SkuSelector/useSkuSlug.js.map +1 -0
- package/dist/molecules/Table/Table.d.ts +26 -0
- package/dist/molecules/Table/Table.js +7 -0
- package/dist/molecules/Table/Table.js.map +1 -0
- package/dist/molecules/Table/TableBody.d.ts +12 -0
- package/dist/molecules/Table/TableBody.js +6 -0
- package/dist/molecules/Table/TableBody.js.map +1 -0
- package/dist/molecules/Table/TableCell.d.ts +26 -0
- package/dist/molecules/Table/TableCell.js +7 -0
- package/dist/molecules/Table/TableCell.js.map +1 -0
- package/dist/molecules/Table/TableFooter.d.ts +12 -0
- package/dist/molecules/Table/TableFooter.js +6 -0
- package/dist/molecules/Table/TableFooter.js.map +1 -0
- package/dist/molecules/Table/TableHead.d.ts +12 -0
- package/dist/molecules/Table/TableHead.js +6 -0
- package/dist/molecules/Table/TableHead.js.map +1 -0
- package/dist/molecules/Table/TableRow.d.ts +12 -0
- package/dist/molecules/Table/TableRow.js +6 -0
- package/dist/molecules/Table/TableRow.js.map +1 -0
- package/dist/molecules/Table/index.d.ts +12 -0
- package/dist/molecules/Table/index.js +7 -0
- package/dist/molecules/Table/index.js.map +1 -0
- package/dist/molecules/Tag/Tag.d.ts +27 -0
- package/dist/molecules/Tag/Tag.js +9 -0
- package/dist/molecules/Tag/Tag.js.map +1 -0
- package/dist/molecules/Tag/index.d.ts +2 -0
- package/dist/molecules/Tag/index.js +2 -0
- package/dist/molecules/Tag/index.js.map +1 -0
- package/dist/molecules/Toast/Toast.d.ts +3 -0
- package/dist/molecules/Toast/Toast.js +29 -0
- package/dist/molecules/Toast/Toast.js.map +1 -0
- package/dist/molecules/Toast/index.d.ts +1 -0
- package/dist/molecules/Toast/index.js +2 -0
- package/dist/molecules/Toast/index.js.map +1 -0
- package/dist/molecules/Toggle/Toggle.d.ts +22 -0
- package/dist/molecules/Toggle/Toggle.js +10 -0
- package/dist/molecules/Toggle/Toggle.js.map +1 -0
- package/dist/molecules/Toggle/index.d.ts +2 -0
- package/dist/molecules/Toggle/index.js +2 -0
- package/dist/molecules/Toggle/index.js.map +1 -0
- package/dist/molecules/ToggleField/ToggleField.d.ts +29 -0
- package/dist/molecules/ToggleField/ToggleField.js +9 -0
- package/dist/molecules/ToggleField/ToggleField.js.map +1 -0
- package/dist/molecules/ToggleField/index.d.ts +2 -0
- package/dist/molecules/ToggleField/index.js +2 -0
- package/dist/molecules/ToggleField/index.js.map +1 -0
- package/dist/organisms/BannerText/BannerText.d.ts +27 -0
- package/dist/organisms/BannerText/BannerText.js +16 -0
- package/dist/organisms/BannerText/BannerText.js.map +1 -0
- package/dist/organisms/BannerText/BannerTextContent.d.ts +30 -0
- package/dist/organisms/BannerText/BannerTextContent.js +13 -0
- package/dist/organisms/BannerText/BannerTextContent.js.map +1 -0
- package/dist/organisms/BannerText/index.d.ts +4 -0
- package/dist/organisms/BannerText/index.js +3 -0
- package/dist/organisms/BannerText/index.js.map +1 -0
- package/dist/organisms/CartSidebar/CartSidebar.d.ts +45 -0
- package/dist/organisms/CartSidebar/CartSidebar.js +18 -0
- package/dist/organisms/CartSidebar/CartSidebar.js.map +1 -0
- package/dist/organisms/CartSidebar/CartSidebarFooter.d.ts +5 -0
- package/dist/organisms/CartSidebar/CartSidebarFooter.js +6 -0
- package/dist/organisms/CartSidebar/CartSidebarFooter.js.map +1 -0
- package/dist/organisms/CartSidebar/CartSidebarList.d.ts +5 -0
- package/dist/organisms/CartSidebar/CartSidebarList.js +7 -0
- package/dist/organisms/CartSidebar/CartSidebarList.js.map +1 -0
- package/dist/organisms/CartSidebar/index.d.ts +4 -0
- package/dist/organisms/CartSidebar/index.js +4 -0
- package/dist/organisms/CartSidebar/index.js.map +1 -0
- package/dist/organisms/EmptyState/EmptyState.d.ts +28 -0
- package/dist/organisms/EmptyState/EmptyState.js +10 -0
- package/dist/organisms/EmptyState/EmptyState.js.map +1 -0
- package/dist/organisms/EmptyState/index.d.ts +2 -0
- package/dist/organisms/EmptyState/index.js +2 -0
- package/dist/organisms/EmptyState/index.js.map +1 -0
- package/dist/organisms/Filter/Filter.d.ts +26 -0
- package/dist/organisms/Filter/Filter.js +9 -0
- package/dist/organisms/Filter/Filter.js.map +1 -0
- package/dist/organisms/Filter/FilterFacetBoolean.d.ts +5 -0
- package/dist/organisms/Filter/FilterFacetBoolean.js +7 -0
- package/dist/organisms/Filter/FilterFacetBoolean.js.map +1 -0
- package/dist/organisms/Filter/FilterFacetBooleanItem.d.ts +38 -0
- package/dist/organisms/Filter/FilterFacetBooleanItem.js +12 -0
- package/dist/organisms/Filter/FilterFacetBooleanItem.js.map +1 -0
- package/dist/organisms/Filter/FilterFacetRange.d.ts +32 -0
- package/dist/organisms/Filter/FilterFacetRange.js +11 -0
- package/dist/organisms/Filter/FilterFacetRange.js.map +1 -0
- package/dist/organisms/Filter/FilterFacets.d.ts +21 -0
- package/dist/organisms/Filter/FilterFacets.js +9 -0
- package/dist/organisms/Filter/FilterFacets.js.map +1 -0
- package/dist/organisms/Filter/FilterSlider.d.ts +36 -0
- package/dist/organisms/Filter/FilterSlider.js +22 -0
- package/dist/organisms/Filter/FilterSlider.js.map +1 -0
- package/dist/organisms/Filter/index.d.ts +11 -0
- package/dist/organisms/Filter/index.js +7 -0
- package/dist/organisms/Filter/index.js.map +1 -0
- package/dist/organisms/Hero/Hero.d.ts +27 -0
- package/dist/organisms/Hero/Hero.js +16 -0
- package/dist/organisms/Hero/Hero.js.map +1 -0
- package/dist/organisms/Hero/HeroHeader.d.ts +34 -0
- package/dist/organisms/Hero/HeroHeader.js +15 -0
- package/dist/organisms/Hero/HeroHeader.js.map +1 -0
- package/dist/organisms/Hero/HeroImage.d.ts +10 -0
- package/dist/organisms/Hero/HeroImage.js +6 -0
- package/dist/organisms/Hero/HeroImage.js.map +1 -0
- package/dist/organisms/Hero/index.d.ts +6 -0
- package/dist/organisms/Hero/index.js +4 -0
- package/dist/organisms/Hero/index.js.map +1 -0
- package/dist/organisms/ImageGallery/ImageGallery.d.ts +42 -0
- package/dist/organisms/ImageGallery/ImageGallery.js +10 -0
- package/dist/organisms/ImageGallery/ImageGallery.js.map +1 -0
- package/dist/organisms/ImageGallery/ImageGallerySelector.d.ts +32 -0
- package/dist/organisms/ImageGallery/ImageGallerySelector.js +46 -0
- package/dist/organisms/ImageGallery/ImageGallerySelector.js.map +1 -0
- package/dist/organisms/ImageGallery/ImageGalleryViewer.d.ts +8 -0
- package/dist/organisms/ImageGallery/ImageGalleryViewer.js +6 -0
- package/dist/organisms/ImageGallery/ImageGalleryViewer.js.map +1 -0
- package/dist/organisms/ImageGallery/ImageZoom.d.ts +7 -0
- package/dist/organisms/ImageGallery/ImageZoom.js +6 -0
- package/dist/organisms/ImageGallery/ImageZoom.js.map +1 -0
- package/dist/organisms/ImageGallery/index.d.ts +6 -0
- package/dist/organisms/ImageGallery/index.js +4 -0
- package/dist/organisms/ImageGallery/index.js.map +1 -0
- package/dist/organisms/Navbar/Navbar.d.ts +14 -0
- package/dist/organisms/Navbar/Navbar.js +6 -0
- package/dist/organisms/Navbar/Navbar.js.map +1 -0
- package/dist/organisms/Navbar/NavbarButtons.d.ts +14 -0
- package/dist/organisms/Navbar/NavbarButtons.js +6 -0
- package/dist/organisms/Navbar/NavbarButtons.js.map +1 -0
- package/dist/organisms/Navbar/NavbarHeader.d.ts +10 -0
- package/dist/organisms/Navbar/NavbarHeader.js +6 -0
- package/dist/organisms/Navbar/NavbarHeader.js.map +1 -0
- package/dist/organisms/Navbar/NavbarRow.d.ts +10 -0
- package/dist/organisms/Navbar/NavbarRow.js +6 -0
- package/dist/organisms/Navbar/NavbarRow.js.map +1 -0
- package/dist/organisms/Navbar/index.d.ts +8 -0
- package/dist/organisms/Navbar/index.js +5 -0
- package/dist/organisms/Navbar/index.js.map +1 -0
- package/dist/organisms/NavbarSlider/NavbarSlider.d.ts +19 -0
- package/dist/organisms/NavbarSlider/NavbarSlider.js +7 -0
- package/dist/organisms/NavbarSlider/NavbarSlider.js.map +1 -0
- package/dist/organisms/NavbarSlider/NavbarSliderContent.d.ts +10 -0
- package/dist/organisms/NavbarSlider/NavbarSliderContent.js +6 -0
- package/dist/organisms/NavbarSlider/NavbarSliderContent.js.map +1 -0
- package/dist/organisms/NavbarSlider/NavbarSliderFooter.d.ts +10 -0
- package/dist/organisms/NavbarSlider/NavbarSliderFooter.js +6 -0
- package/dist/organisms/NavbarSlider/NavbarSliderFooter.js.map +1 -0
- package/dist/organisms/NavbarSlider/NavbarSliderHeader.d.ts +10 -0
- package/dist/organisms/NavbarSlider/NavbarSliderHeader.js +7 -0
- package/dist/organisms/NavbarSlider/NavbarSliderHeader.js.map +1 -0
- package/dist/organisms/NavbarSlider/index.d.ts +8 -0
- package/dist/organisms/NavbarSlider/index.js +5 -0
- package/dist/organisms/NavbarSlider/index.js.map +1 -0
- package/dist/organisms/Newsletter/Newsletter.d.ts +19 -0
- package/dist/organisms/Newsletter/Newsletter.js +6 -0
- package/dist/organisms/Newsletter/Newsletter.js.map +1 -0
- package/dist/organisms/Newsletter/NewsletterAddendum.d.ts +14 -0
- package/dist/organisms/Newsletter/NewsletterAddendum.js +6 -0
- package/dist/organisms/Newsletter/NewsletterAddendum.js.map +1 -0
- package/dist/organisms/Newsletter/NewsletterContent.d.ts +10 -0
- package/dist/organisms/Newsletter/NewsletterContent.js +6 -0
- package/dist/organisms/Newsletter/NewsletterContent.js.map +1 -0
- package/dist/organisms/Newsletter/NewsletterForm.d.ts +14 -0
- package/dist/organisms/Newsletter/NewsletterForm.js +6 -0
- package/dist/organisms/Newsletter/NewsletterForm.js.map +1 -0
- package/dist/organisms/Newsletter/NewsletterHeader.d.ts +22 -0
- package/dist/organisms/Newsletter/NewsletterHeader.js +10 -0
- package/dist/organisms/Newsletter/NewsletterHeader.js.map +1 -0
- package/dist/organisms/Newsletter/index.d.ts +10 -0
- package/dist/organisms/Newsletter/index.js +6 -0
- package/dist/organisms/Newsletter/index.js.map +1 -0
- package/dist/organisms/OutOfStock/OutOfStock.d.ts +43 -0
- package/dist/organisms/OutOfStock/OutOfStock.js +13 -0
- package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -0
- package/dist/organisms/OutOfStock/index.d.ts +2 -0
- package/dist/organisms/OutOfStock/index.js +2 -0
- package/dist/organisms/OutOfStock/index.js.map +1 -0
- package/dist/organisms/PaymentMethods/PaymentMethods.d.ts +32 -0
- package/dist/organisms/PaymentMethods/PaymentMethods.js +11 -0
- package/dist/organisms/PaymentMethods/PaymentMethods.js.map +1 -0
- package/dist/organisms/PaymentMethods/index.d.ts +2 -0
- package/dist/organisms/PaymentMethods/index.js +2 -0
- package/dist/organisms/PaymentMethods/index.js.map +1 -0
- package/dist/organisms/PriceRange/PriceRange.d.ts +25 -0
- package/dist/organisms/PriceRange/PriceRange.js +75 -0
- package/dist/organisms/PriceRange/PriceRange.js.map +1 -0
- package/dist/organisms/PriceRange/index.d.ts +2 -0
- package/dist/organisms/PriceRange/index.js +2 -0
- package/dist/organisms/PriceRange/index.js.map +1 -0
- package/dist/organisms/ProductGrid/ProductGrid.d.ts +10 -0
- package/dist/organisms/ProductGrid/ProductGrid.js +6 -0
- package/dist/organisms/ProductGrid/ProductGrid.js.map +1 -0
- package/dist/organisms/ProductGrid/ProductGridItem.d.ts +10 -0
- package/dist/organisms/ProductGrid/ProductGridItem.js +6 -0
- package/dist/organisms/ProductGrid/ProductGridItem.js.map +1 -0
- package/dist/organisms/ProductGrid/index.d.ts +4 -0
- package/dist/organisms/ProductGrid/index.js +3 -0
- package/dist/organisms/ProductGrid/index.js.map +1 -0
- package/dist/organisms/ProductShelf/ProductShelf.d.ts +10 -0
- package/dist/organisms/ProductShelf/ProductShelf.js +6 -0
- package/dist/organisms/ProductShelf/ProductShelf.js.map +1 -0
- package/dist/organisms/ProductShelf/ProductShelfItem.d.ts +10 -0
- package/dist/organisms/ProductShelf/ProductShelfItem.js +6 -0
- package/dist/organisms/ProductShelf/ProductShelfItem.js.map +1 -0
- package/dist/organisms/ProductShelf/ProductShelfItems.d.ts +10 -0
- package/dist/organisms/ProductShelf/ProductShelfItems.js +6 -0
- package/dist/organisms/ProductShelf/ProductShelfItems.js.map +1 -0
- package/dist/organisms/ProductShelf/index.d.ts +6 -0
- package/dist/organisms/ProductShelf/index.js +4 -0
- package/dist/organisms/ProductShelf/index.js.map +1 -0
- package/dist/organisms/RegionModal/RegionModal.d.ts +72 -0
- package/dist/organisms/RegionModal/RegionModal.js +19 -0
- package/dist/organisms/RegionModal/RegionModal.js.map +1 -0
- package/dist/organisms/RegionModal/index.d.ts +2 -0
- package/dist/organisms/RegionModal/index.js +2 -0
- package/dist/organisms/RegionModal/index.js.map +1 -0
- package/dist/organisms/SearchInput/SearchInput.d.ts +26 -0
- package/dist/organisms/SearchInput/SearchInput.js +8 -0
- package/dist/organisms/SearchInput/SearchInput.js.map +1 -0
- package/dist/organisms/SearchInput/index.d.ts +2 -0
- package/dist/organisms/SearchInput/index.js +2 -0
- package/dist/organisms/SearchInput/index.js.map +1 -0
- package/dist/organisms/ShippingSimulation/ShippingSimulation.d.ts +125 -0
- package/dist/organisms/ShippingSimulation/ShippingSimulation.js +22 -0
- package/dist/organisms/ShippingSimulation/ShippingSimulation.js.map +1 -0
- package/dist/organisms/ShippingSimulation/index.d.ts +2 -0
- package/dist/organisms/ShippingSimulation/index.js +2 -0
- package/dist/organisms/ShippingSimulation/index.js.map +1 -0
- package/dist/organisms/SlideOver/SlideOver.d.ts +39 -0
- package/dist/organisms/SlideOver/SlideOver.js +7 -0
- package/dist/organisms/SlideOver/SlideOver.js.map +1 -0
- package/dist/organisms/SlideOver/SlideOverHeader.d.ts +19 -0
- package/dist/organisms/SlideOver/SlideOverHeader.js +9 -0
- package/dist/organisms/SlideOver/SlideOverHeader.js.map +1 -0
- package/dist/organisms/SlideOver/index.d.ts +4 -0
- package/dist/organisms/SlideOver/index.js +3 -0
- package/dist/organisms/SlideOver/index.js.map +1 -0
- package/dist/typings/PolymorphicGenerics.d.ts +28 -0
- package/dist/typings/PolymorphicGenerics.js +8 -0
- package/dist/typings/PolymorphicGenerics.js.map +1 -0
- package/dist/typings/PriceDefinition.d.ts +6 -0
- package/dist/typings/PriceDefinition.js +2 -0
- package/dist/typings/PriceDefinition.js.map +1 -0
- package/dist/typings/index.d.ts +2 -0
- package/dist/typings/index.js +2 -0
- package/dist/typings/index.js.map +1 -0
- package/package.json +4 -4
- package/src/molecules/SkuSelector/useDefineVariant.ts +12 -0
- package/src/organisms/PaymentMethods/PaymentMethods.tsx +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { MutableRefObject } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { InputProps } from '../../';
|
|
4
|
+
type DefaultProps = {
|
|
5
|
+
/**
|
|
6
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* ID to identify input and corresponding label.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
/**
|
|
14
|
+
* The text displayed to identify input text.
|
|
15
|
+
*/
|
|
16
|
+
label: string;
|
|
17
|
+
/**
|
|
18
|
+
* The error message is displayed when an error occurs.
|
|
19
|
+
*/
|
|
20
|
+
error?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Component's ref.
|
|
23
|
+
*/
|
|
24
|
+
inputRef?: MutableRefObject<HTMLInputElement | null>;
|
|
25
|
+
/**
|
|
26
|
+
* Specifies that the whole input component should be disabled.
|
|
27
|
+
*/
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
};
|
|
30
|
+
type ActionableInputField = {
|
|
31
|
+
actionable?: never;
|
|
32
|
+
onSubmit?: never;
|
|
33
|
+
onClear?: never;
|
|
34
|
+
buttonActionText?: string;
|
|
35
|
+
displayClearButton?: never;
|
|
36
|
+
} | {
|
|
37
|
+
/**
|
|
38
|
+
* Adds a Button to the component.
|
|
39
|
+
*/
|
|
40
|
+
actionable: true;
|
|
41
|
+
/**
|
|
42
|
+
* Callback function when button is clicked. Required for actionable input.
|
|
43
|
+
*/
|
|
44
|
+
onSubmit: () => void;
|
|
45
|
+
/**
|
|
46
|
+
* Callback function when clear button is clicked. Required for actionable input.
|
|
47
|
+
*/
|
|
48
|
+
onClear: () => void;
|
|
49
|
+
/**
|
|
50
|
+
* The text displayed on the Button. Suggestion: maximum 9 characters.
|
|
51
|
+
*/
|
|
52
|
+
buttonActionText?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Boolean that controls the clear button.
|
|
55
|
+
*/
|
|
56
|
+
displayClearButton?: boolean;
|
|
57
|
+
};
|
|
58
|
+
export type InputFieldProps = DefaultProps & Omit<InputProps, 'disabled' | 'onSubmit'> & ActionableInputField;
|
|
59
|
+
declare const InputField: ({ id, label, type, error, displayClearButton, actionable, buttonActionText, onSubmit, onClear, placeholder, inputRef, disabled, value, testId, ...otherProps }: InputFieldProps) => React.JSX.Element;
|
|
60
|
+
export default InputField;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button, Icon, IconButton, Input, Label } from '../../';
|
|
3
|
+
const InputField = ({ id, label, type = 'text', error, displayClearButton, actionable, buttonActionText = 'Apply', onSubmit, onClear, placeholder = ' ', // initializes with an empty space to style float label using `placeholder-shown`
|
|
4
|
+
inputRef, disabled, value, testId = 'fs-input-field', ...otherProps }) => {
|
|
5
|
+
const shouldDisplayError = !disabled && error && error !== '';
|
|
6
|
+
const shouldDisplayButton = actionable && !disabled && value !== '';
|
|
7
|
+
return (React.createElement("div", { "data-fs-input-field": true, "data-fs-input-field-actionable": actionable, "data-fs-input-field-error": error && error !== '', "data-testid": testId },
|
|
8
|
+
React.createElement(Input, { id: id, type: type, value: value, ref: inputRef, disabled: disabled, placeholder: placeholder, ...otherProps }),
|
|
9
|
+
React.createElement(Label, { htmlFor: id }, label),
|
|
10
|
+
shouldDisplayButton &&
|
|
11
|
+
(displayClearButton || error ? (React.createElement(IconButton, { size: "small", "aria-label": "Clear Field", icon: React.createElement(Icon, { name: "XCircle" }), onClick: () => {
|
|
12
|
+
onClear?.();
|
|
13
|
+
inputRef?.current?.focus();
|
|
14
|
+
} })) : (React.createElement(Button, { variant: "tertiary", size: "small", onClick: onSubmit }, buttonActionText))),
|
|
15
|
+
shouldDisplayError && (React.createElement("span", { "data-fs-input-field-error-message": true }, error))));
|
|
16
|
+
};
|
|
17
|
+
export default InputField;
|
|
18
|
+
//# sourceMappingURL=InputField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InputField.js","sourceRoot":"","sources":["../../../src/molecules/InputField/InputField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAgE/D,MAAM,UAAU,GAAG,CAAC,EAClB,EAAE,EACF,KAAK,EACL,IAAI,GAAG,MAAM,EACb,KAAK,EACL,kBAAkB,EAClB,UAAU,EACV,gBAAgB,GAAG,OAAO,EAC1B,QAAQ,EACR,OAAO,EACP,WAAW,GAAG,GAAG,EAAE,iFAAiF;AACpG,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,MAAM,GAAG,gBAAgB,EACzB,GAAG,UAAU,EACG,EAAE,EAAE;IACpB,MAAM,kBAAkB,GAAG,CAAC,QAAQ,IAAI,KAAK,IAAI,KAAK,KAAK,EAAE,CAAA;IAC7D,MAAM,mBAAmB,GAAG,UAAU,IAAI,CAAC,QAAQ,IAAI,KAAK,KAAK,EAAE,CAAA;IAEnE,OAAO,CACL,4FAEkC,UAAU,+BACf,KAAK,IAAI,KAAK,KAAK,EAAE,iBACnC,MAAM;QAEnB,oBAAC,KAAK,IACJ,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,KACpB,UAAU,GACd;QACF,oBAAC,KAAK,IAAC,OAAO,EAAE,EAAE,IAAG,KAAK,CAAS;QAElC,mBAAmB;YAClB,CAAC,kBAAkB,IAAI,KAAK,CAAC,CAAC,CAAC,CAC7B,oBAAC,UAAU,IACT,IAAI,EAAC,OAAO,gBACD,aAAa,EACxB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,SAAS,GAAG,EAC7B,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,EAAE,EAAE,CAAA;oBACX,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;gBAC5B,CAAC,GACD,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,QAAQ,IACtD,gBAAgB,CACV,CACV,CAAC;QACH,kBAAkB,IAAI,CACrB,2EAAyC,KAAK,CAAQ,CACvD,CACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/InputField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { AnchorHTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ButtonProps } from '../..';
|
|
4
|
+
export type LinkButtonProps = AnchorHTMLAttributes<HTMLAnchorElement> & ButtonProps;
|
|
5
|
+
declare function LinkButton({ icon, inverse, children, disabled, iconPosition, size, variant, testId, ...otherProps }: LinkButtonProps): React.JSX.Element;
|
|
6
|
+
export default LinkButton;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
function LinkButton({ icon, inverse, children, disabled, iconPosition, size = 'regular', variant = 'primary', testId = 'fs-link-button', ...otherProps }) {
|
|
3
|
+
const linkRef = useRef(null);
|
|
4
|
+
function onFocus(e) {
|
|
5
|
+
e.preventDefault();
|
|
6
|
+
if (disabled) {
|
|
7
|
+
linkRef.current?.blur();
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
return (React.createElement("a", { ref: linkRef, "data-fs-button": true, "data-fs-link-button": true, "data-fs-button-size": size, "data-fs-button-variant": variant, "data-fs-button-inverse": inverse, "data-fs-button-disabled": disabled, onFocus: onFocus, "data-testid": testId, ...otherProps },
|
|
11
|
+
React.createElement("div", { "data-fs-button-wrapper": true },
|
|
12
|
+
!!icon && iconPosition === 'left' && (React.createElement("span", { "data-fs-button-icon": true }, icon)),
|
|
13
|
+
children && React.createElement("span", null, children),
|
|
14
|
+
!!icon && iconPosition === 'right' && (React.createElement("span", { "data-fs-button-icon": true }, icon)))));
|
|
15
|
+
}
|
|
16
|
+
export default LinkButton;
|
|
17
|
+
//# sourceMappingURL=LinkButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LinkButton.js","sourceRoot":"","sources":["../../../src/molecules/LinkButton/LinkButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAOrC,SAAS,UAAU,CAAC,EAClB,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,IAAI,GAAG,SAAS,EAChB,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,gBAAgB,EACzB,GAAG,UAAU,EACG;IAChB,MAAM,OAAO,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAA;IAEtD,SAAS,OAAO,CAAC,CAAa;QAC5B,CAAC,CAAC,cAAc,EAAE,CAAA;QAElB,IAAI,QAAQ,EAAE;YACZ,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,CAAA;SACxB;IACH,CAAC;IAED,OAAO,CACL,2BACE,GAAG,EAAE,OAAO,8EAGS,IAAI,4BACD,OAAO,4BACP,OAAO,6BACN,QAAQ,EACjC,OAAO,EAAE,OAAO,iBACH,MAAM,KACf,UAAU;QAEd;YACG,CAAC,CAAC,IAAI,IAAI,YAAY,KAAK,MAAM,IAAI,CACpC,6DAA2B,IAAI,CAAQ,CACxC;YACA,QAAQ,IAAI,kCAAO,QAAQ,CAAQ;YACnC,CAAC,CAAC,IAAI,IAAI,YAAY,KAAK,OAAO,IAAI,CACrC,6DAA2B,IAAI,CAAQ,CACxC,CACG,CACJ,CACL,CAAA;AACH,CAAC;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/LinkButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { AriaAttributes, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { OverlayProps } from '../..';
|
|
4
|
+
import type { ModalContentProps } from './ModalContent';
|
|
5
|
+
export type ModalChildrenProps = {
|
|
6
|
+
fade: 'in' | 'out';
|
|
7
|
+
fadeOut: () => void;
|
|
8
|
+
fadeIn: () => void;
|
|
9
|
+
};
|
|
10
|
+
type ModalChildrenFunction = (props: ModalChildrenProps) => ReactNode;
|
|
11
|
+
export interface ModalProps extends Omit<ModalContentProps, 'children'> {
|
|
12
|
+
/**
|
|
13
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
14
|
+
*/
|
|
15
|
+
testId?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Identifies the element (or elements) that labels the current element.
|
|
18
|
+
* @see aria-labelledby https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby
|
|
19
|
+
*/
|
|
20
|
+
'aria-labelledby'?: AriaAttributes['aria-label'];
|
|
21
|
+
/**
|
|
22
|
+
* A boolean value that represents the state of the Modal
|
|
23
|
+
*/
|
|
24
|
+
isOpen?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Event emitted when the modal is closed
|
|
27
|
+
*/
|
|
28
|
+
onDismiss?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Props forwarded to the `Overlay` component
|
|
31
|
+
*/
|
|
32
|
+
overlayProps?: OverlayProps;
|
|
33
|
+
/**
|
|
34
|
+
* Children or function as a children
|
|
35
|
+
*/
|
|
36
|
+
children: ModalChildrenFunction | ReactNode;
|
|
37
|
+
}
|
|
38
|
+
declare const Modal: ({ children, testId, isOpen, onDismiss, overlayProps, ...otherProps }: ModalProps) => React.ReactPortal | null;
|
|
39
|
+
export default Modal;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createPortal } from 'react-dom';
|
|
3
|
+
import { Overlay } from '../..';
|
|
4
|
+
import { useFadeEffect, useUI } from '../../hooks';
|
|
5
|
+
import ModalContent from './ModalContent';
|
|
6
|
+
/*
|
|
7
|
+
* This component is based on @reach/dialog.
|
|
8
|
+
* https://github.com/reach/reach-ui/blob/main/packages/dialog/src/index.tsx
|
|
9
|
+
* https://reach.tech/dialog
|
|
10
|
+
*/
|
|
11
|
+
const Modal = ({ children, testId = 'fs-modal', isOpen = true, onDismiss, overlayProps, ...otherProps }) => {
|
|
12
|
+
const { closeModal } = useUI();
|
|
13
|
+
const { fade, fadeOut, fadeIn } = useFadeEffect();
|
|
14
|
+
const handleBackdropClick = (event) => {
|
|
15
|
+
if (event.defaultPrevented) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
event.stopPropagation();
|
|
19
|
+
fadeOut?.();
|
|
20
|
+
onDismiss?.();
|
|
21
|
+
};
|
|
22
|
+
const handleBackdropKeyDown = (event) => {
|
|
23
|
+
if (event.key !== 'Escape' || event.defaultPrevented) {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
event.stopPropagation();
|
|
27
|
+
fadeOut?.();
|
|
28
|
+
onDismiss?.();
|
|
29
|
+
};
|
|
30
|
+
return isOpen
|
|
31
|
+
? createPortal(React.createElement(Overlay, { onClick: handleBackdropClick, onKeyDown: handleBackdropKeyDown, ...overlayProps },
|
|
32
|
+
React.createElement(ModalContent, { onTransitionEnd: () => fade === 'out' && closeModal(), "data-fs-modal": true, "data-fs-modal-state": fade, testId: testId, ...otherProps }, typeof children === 'function'
|
|
33
|
+
? children({ fade, fadeOut, fadeIn })
|
|
34
|
+
: children)), document.body)
|
|
35
|
+
: null;
|
|
36
|
+
};
|
|
37
|
+
export default Modal;
|
|
38
|
+
//# sourceMappingURL=Modal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/molecules/Modal/Modal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,OAAO,EAAE,OAAO,EAAgB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAsCzC;;;;GAIG;AAEH,MAAM,KAAK,GAAG,CAAC,EACb,QAAQ,EACR,MAAM,GAAG,UAAU,EACnB,MAAM,GAAG,IAAI,EACb,SAAS,EACT,YAAY,EACZ,GAAG,UAAU,EACF,EAAE,EAAE;IACf,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,CAAA;IAC9B,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAEjD,MAAM,mBAAmB,GAAG,CAAC,KAAiB,EAAE,EAAE;QAChD,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC1B,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,OAAO,EAAE,EAAE,CAAA;QACX,SAAS,EAAE,EAAE,CAAA;IACf,CAAC,CAAA;IAED,MAAM,qBAAqB,GAAG,CAAC,KAAoB,EAAE,EAAE;QACrD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,gBAAgB,EAAE;YACpD,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,OAAO,EAAE,EAAE,CAAA;QACX,SAAS,EAAE,EAAE,CAAA;IACf,CAAC,CAAA;IAED,OAAO,MAAM;QACX,CAAC,CAAC,YAAY,CACV,oBAAC,OAAO,IACN,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,qBAAqB,KAC5B,YAAY;YAEhB,oBAAC,YAAY,IACX,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,KAAK,IAAI,UAAU,EAAE,gDAEhC,IAAI,EACzB,MAAM,EAAE,MAAM,KACV,UAAU,IAEb,OAAO,QAAQ,KAAK,UAAU;gBAC7B,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;gBACrC,CAAC,CAAC,QAAQ,CACC,CACP,EACV,QAAQ,CAAC,IAAI,CACd;QACH,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { ReactNode, HTMLAttributes } from 'react';
|
|
2
|
+
export interface ModalBodyProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* Children or function as a children
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
declare const ModalBody: ({ children, ...otherProps }: ModalBodyProps) => React.JSX.Element;
|
|
9
|
+
export default ModalBody;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalBody.js","sourceRoot":"","sources":["../../../src/molecules/Modal/ModalBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAA;AASxD,MAAM,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAkB,EAAE,EAAE,CAAC,CACjE,4DAA4B,UAAU,IACnC,QAAQ,CACL,CACP,CAAA;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DetailedHTMLProps, HTMLAttributes, RefObject } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface ModalContentPureProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
|
|
4
|
+
beforeElementRef: RefObject<HTMLDivElement>;
|
|
5
|
+
trapFocusRef: RefObject<HTMLDivElement>;
|
|
6
|
+
afterElementRef: RefObject<HTMLDivElement>;
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
export type ModalContentProps = Omit<ModalContentPureProps, 'trapFocusRef' | 'onClick' | 'beforeElementRef' | 'afterElementRef'>;
|
|
10
|
+
declare const ModalContent: ({ children, ...otherProps }: ModalContentProps) => React.JSX.Element;
|
|
11
|
+
export default ModalContent;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { useRef } from 'react';
|
|
2
|
+
import { useTrapFocus } from '../../hooks';
|
|
3
|
+
const ModalContentPure = ({ beforeElementRef, trapFocusRef, afterElementRef, testId = 'store-modal-content', children, ...otherProps }) => {
|
|
4
|
+
return (React.createElement(React.Fragment, null,
|
|
5
|
+
React.createElement("div", { ref: beforeElementRef, "data-testid": "beforeElement", tabIndex: 0, "aria-hidden": "true" }),
|
|
6
|
+
React.createElement("div", { "data-fs-modal-content": true, "data-testid": testId, ref: trapFocusRef, "aria-modal": "true", role: "dialog", tabIndex: -1, ...otherProps }, children),
|
|
7
|
+
React.createElement("div", { ref: afterElementRef, "data-testid": "afterElement", tabIndex: 0, "aria-hidden": "true" })));
|
|
8
|
+
};
|
|
9
|
+
const ModalContent = ({ children, ...otherProps }) => {
|
|
10
|
+
const trapFocusRef = useRef(null);
|
|
11
|
+
const beforeElementRef = useRef(null);
|
|
12
|
+
const afterElementRef = useRef(null);
|
|
13
|
+
useTrapFocus({
|
|
14
|
+
beforeElementRef,
|
|
15
|
+
trapFocusRef,
|
|
16
|
+
afterElementRef,
|
|
17
|
+
});
|
|
18
|
+
return (React.createElement(ModalContentPure, { ...otherProps, trapFocusRef: trapFocusRef, beforeElementRef: beforeElementRef, afterElementRef: afterElementRef, onClick: (event) => {
|
|
19
|
+
event.stopPropagation();
|
|
20
|
+
} }, children));
|
|
21
|
+
};
|
|
22
|
+
export default ModalContent;
|
|
23
|
+
//# sourceMappingURL=ModalContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalContent.js","sourceRoot":"","sources":["../../../src/molecules/Modal/ModalContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAa1C,MAAM,gBAAgB,GAAG,CAAC,EACxB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,MAAM,GAAG,qBAAqB,EAC9B,QAAQ,EACR,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,OAAO,CACL;QACE,6BACE,GAAG,EAAE,gBAAgB,iBACT,eAAe,EAC3B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB;QACF,2EAEe,MAAM,EACnB,GAAG,EAAE,YAAY,gBACN,MAAM,EACjB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,KACR,UAAU,IAEb,QAAQ,CACL;QACN,6BACE,GAAG,EAAE,eAAe,iBACR,cAAc,EAC1B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAOD,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAqB,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACjD,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACrD,MAAM,eAAe,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAEpD,YAAY,CAAC;QACX,gBAAgB;QAChB,YAAY;QACZ,eAAe;KAChB,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,gBAAgB,OACX,UAAU,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YAC7B,KAAK,CAAC,eAAe,EAAE,CAAA;QACzB,CAAC,IAEA,QAAQ,CACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
import { IconButtonProps } from '../IconButton';
|
|
3
|
+
export interface ModalHeaderProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Title for header modal.
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Description for header modal.
|
|
10
|
+
*/
|
|
11
|
+
description?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Props for the Close Button component.
|
|
14
|
+
*/
|
|
15
|
+
closeBtnProps?: Partial<Omit<IconButtonProps, 'onClick'>>;
|
|
16
|
+
/**
|
|
17
|
+
* Function called when dismiss button is clicked.
|
|
18
|
+
*/
|
|
19
|
+
onClose?: () => void;
|
|
20
|
+
}
|
|
21
|
+
declare const ModalHeader: ({ onClose, title, closeBtnProps, description, }: ModalHeaderProps) => React.JSX.Element;
|
|
22
|
+
export default ModalHeader;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Icon from '../../atoms/Icon';
|
|
3
|
+
import IconButton from '../IconButton';
|
|
4
|
+
const ModalHeader = ({ onClose, title, closeBtnProps = {}, description, }) => {
|
|
5
|
+
return (React.createElement("header", { "data-fs-modal-header": true },
|
|
6
|
+
onClose && (React.createElement(IconButton, { "data-fs-modal-header-close-button": true, "aria-label": "Close modal", icon: React.createElement(Icon, { name: "X" }), onClick: () => onClose?.(), ...closeBtnProps })),
|
|
7
|
+
React.createElement("p", { "data-fs-modal-header-title": true }, title),
|
|
8
|
+
description && React.createElement("p", { "data-fs-modal-header-description": true }, description)));
|
|
9
|
+
};
|
|
10
|
+
export default ModalHeader;
|
|
11
|
+
//# sourceMappingURL=ModalHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ModalHeader.js","sourceRoot":"","sources":["../../../src/molecules/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,IAAI,MAAM,kBAAkB,CAAA;AACnC,OAAO,UAA+B,MAAM,eAAe,CAAA;AAqB3D,MAAM,WAAW,GAAG,CAAC,EACnB,OAAO,EACP,KAAK,EACL,aAAa,GAAG,EAAE,EAClB,WAAW,GACM,EAAE,EAAE;IACrB,OAAO,CACL;QACG,OAAO,IAAI,CACV,oBAAC,UAAU,6DAEE,aAAa,EACxB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,GAAG,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,KACtB,aAAa,GACjB,CACH;QACD,iEAA+B,KAAK,CAAK;QACxC,WAAW,IAAI,uEAAqC,WAAW,CAAK,CAC9D,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface NavbarLinksProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
|
|
6
|
+
*/
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const NavbarLinks: React.ForwardRefExoticComponent<NavbarLinksProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default NavbarLinks;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const NavbarLinks = forwardRef(function NavbarLinks({ children, testId = 'fs-navbar-links', ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("nav", { "data-fs-navbar-links": true, ref: ref, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default NavbarLinks;
|
|
6
|
+
//# sourceMappingURL=NavbarLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarLinks.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/NavbarLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,QAAQ,EAAE,MAAM,GAAG,iBAAiB,EAAE,GAAG,UAAU,EAAE,EACvD,GAAG;IAEH,OAAO,CACL,2DAA0B,GAAG,EAAE,GAAG,iBAAe,MAAM,KAAM,UAAU,IACpE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ListProps } from '../..';
|
|
3
|
+
export interface NavbarLinksListProps extends ListProps {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
|
|
6
|
+
*/
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const NavbarLinksList: React.ForwardRefExoticComponent<Omit<NavbarLinksListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
10
|
+
export default NavbarLinksList;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { List } from '../..';
|
|
3
|
+
const NavbarLinksList = forwardRef(function NavbarLinksList({ children, testId = 'fs-navbar-links-list', ...otherProps }, ref) {
|
|
4
|
+
return (React.createElement(List, { "data-fs-navbar-links-list": true, ref: ref, "data-testid": testId, ...otherProps }, children));
|
|
5
|
+
});
|
|
6
|
+
export default NavbarLinksList;
|
|
7
|
+
//# sourceMappingURL=NavbarLinksList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarLinksList.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/NavbarLinksList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAU5B,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,QAAQ,EAAE,MAAM,GAAG,sBAAsB,EAAE,GAAG,UAAU,EAAE,EAC5D,GAAG;IAEH,OAAO,CACL,oBAAC,IAAI,uCAEH,GAAG,EAAE,GAAG,iBACK,MAAM,KACf,UAAU,IAEb,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface NavbarLinksListItemProps extends HTMLAttributes<HTMLLIElement> {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
|
|
6
|
+
*/
|
|
7
|
+
testId?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const NavbarLinksListItem: React.ForwardRefExoticComponent<NavbarLinksListItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
10
|
+
export default NavbarLinksListItem;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const NavbarLinksListItem = forwardRef(function NavbarLinksListItem({ children, testId = 'fs-navbar-links-list-item', ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("li", { "data-fs-navbar-links-list-item": true, ref: ref, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default NavbarLinksListItem;
|
|
6
|
+
//# sourceMappingURL=NavbarLinksListItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavbarLinksListItem.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/NavbarLinksListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,mBAAmB,GAAG,UAAU,CACpC,SAAS,mBAAmB,CAC1B,EAAE,QAAQ,EAAE,MAAM,GAAG,2BAA2B,EAAE,GAAG,UAAU,EAAE,EACjE,GAAG;IAEH,OAAO,CACL,oEAEE,GAAG,EAAE,GAAG,iBACK,MAAM,KACf,UAAU,IAEb,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default } from './NavbarLinks';
|
|
2
|
+
export type { NavbarLinksProps } from './NavbarLinks';
|
|
3
|
+
export { default as NavbarLinksList } from './NavbarLinksList';
|
|
4
|
+
export type { NavbarLinksListProps } from './NavbarLinksList';
|
|
5
|
+
export { default as NavbarLinksListItem } from './NavbarLinksListItem';
|
|
6
|
+
export type { NavbarLinksListItemProps } from './NavbarLinksListItem';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface OrderSummaryProps extends HTMLAttributes<HTMLUListElement> {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
|
+
* testing-library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Label for the subtotal value of the order. Will only show if subtotalValue is provided.
|
|
11
|
+
*/
|
|
12
|
+
subtotalLabel?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Subtotal value of the order. If provided, subtotal label and value will be shown.
|
|
15
|
+
*/
|
|
16
|
+
subtotalValue?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Label for the discount value for the order. Will only show if discountValue is provided.
|
|
19
|
+
*/
|
|
20
|
+
discountLabel?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Discount value for the order. If provided, discount label and value will be shown.
|
|
23
|
+
*/
|
|
24
|
+
discountValue?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Label for the total value of the order.
|
|
27
|
+
*/
|
|
28
|
+
totalLabel?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Total value of the order.
|
|
31
|
+
*/
|
|
32
|
+
totalValue?: string;
|
|
33
|
+
}
|
|
34
|
+
declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLUListElement>>;
|
|
35
|
+
export default OrderSummary;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { List } from '../../';
|
|
3
|
+
const OrderSummary = forwardRef(function OrderSummary({ testId = 'fs-order-summary', subtotalLabel, subtotalValue, discountLabel = 'Discount', discountValue, totalLabel = 'Total', totalValue, ...otherProps }, ref) {
|
|
4
|
+
return (React.createElement(List, { ref: ref, "data-fs-order-summary": true, "data-testid": testId, ...otherProps },
|
|
5
|
+
subtotalValue ? (React.createElement("li", { "data-fs-order-summary-subtotal": true },
|
|
6
|
+
React.createElement("span", { "data-fs-order-summary-subtotal-label": true, "data-testid": `${testId}-subtotal-label` }, subtotalLabel),
|
|
7
|
+
React.createElement("span", { "data-fs-order-summary-subtotal-value": true, "data-testid": `${testId}-subtotal-value` }, subtotalValue))) : null,
|
|
8
|
+
discountValue ? (React.createElement("li", { "data-fs-order-summary-discount": true },
|
|
9
|
+
React.createElement("span", { "data-fs-order-summary-discount-label": true, "data-testid": `${testId}-discount-label` }, discountLabel),
|
|
10
|
+
React.createElement("span", { "data-fs-order-summary-discount-value": true, "data-testid": `${testId}-discount-value` }, discountValue))) : null,
|
|
11
|
+
React.createElement("li", { "data-fs-order-summary-total": true },
|
|
12
|
+
React.createElement("span", { "data-fs-order-summary-total-label": true, "data-testid": `${testId}-total-label` }, totalLabel),
|
|
13
|
+
React.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue))));
|
|
14
|
+
});
|
|
15
|
+
export default OrderSummary;
|
|
16
|
+
//# sourceMappingURL=OrderSummary.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrderSummary.js","sourceRoot":"","sources":["../../../src/molecules/OrderSummary/OrderSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAkC7B,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,MAAM,GAAG,kBAAkB,EAC3B,aAAa,EACb,aAAa,EACb,aAAa,GAAG,UAAU,EAC1B,aAAa,EACb,UAAU,GAAG,OAAO,EACpB,UAAU,EACV,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,gDAEK,MAAM,KACf,UAAU;QAEb,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACP,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACR;YACE,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN;YACP,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN,CACJ,CACA,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/OrderSummary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface ProductCardProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* Sets a border to the component.
|
|
6
|
+
*/
|
|
7
|
+
bordered?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Sets the component's size.
|
|
10
|
+
*/
|
|
11
|
+
variant?: 'wide' | 'default';
|
|
12
|
+
/**
|
|
13
|
+
* Enables a outOfStock status.
|
|
14
|
+
*/
|
|
15
|
+
outOfStock?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
18
|
+
* testing-library, and jest).
|
|
19
|
+
*/
|
|
20
|
+
testId?: string;
|
|
21
|
+
}
|
|
22
|
+
declare const ProductCard: React.ForwardRefExoticComponent<ProductCardProps & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export default ProductCard;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const ProductCard = forwardRef(function ProductCard({ testId = 'fs-product-card', variant = 'default', bordered = false, outOfStock, children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("article", { ref: ref, "data-fs-product-card": outOfStock ? 'out-of-stock' : '', "data-fs-product-card-variant": variant, "data-fs-product-card-bordered": bordered, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default ProductCard;
|
|
6
|
+
//# sourceMappingURL=ProductCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../src/molecules/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAuBzC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,MAAM,GAAG,iBAAiB,EAC1B,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,KAAK,EAChB,UAAU,EACV,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,0BACc,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,kCACxB,OAAO,mCACN,QAAQ,iBAC1B,MAAM,KACf,UAAU,IAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { PriceDefinition } from '../../typings/PriceDefinition';
|
|
4
|
+
import { LinkElementType, LinkProps } from '../../';
|
|
5
|
+
export interface ProductCardContentProps extends HTMLAttributes<HTMLElement> {
|
|
6
|
+
/**
|
|
7
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
8
|
+
*/
|
|
9
|
+
testId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Specifies the product's title.
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/**
|
|
15
|
+
* Props for the link from ProductCard component.
|
|
16
|
+
*/
|
|
17
|
+
linkProps?: Partial<LinkProps<LinkElementType>>;
|
|
18
|
+
/**
|
|
19
|
+
* Specifies product's prices.
|
|
20
|
+
*/
|
|
21
|
+
price?: PriceDefinition;
|
|
22
|
+
/**
|
|
23
|
+
* Enables a outOfStock status.
|
|
24
|
+
*/
|
|
25
|
+
outOfStock?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Specifies the OutOfStock badge's label.
|
|
28
|
+
*/
|
|
29
|
+
outOfStockLabel?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Specifies Rating Value of the product.
|
|
32
|
+
*/
|
|
33
|
+
ratingValue?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Specifies the button's label.
|
|
36
|
+
*/
|
|
37
|
+
buttonLabel?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Enables a DiscountBadge to the component.
|
|
40
|
+
*/
|
|
41
|
+
showDiscountBadge?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Callback function when button is clicked.
|
|
44
|
+
*/
|
|
45
|
+
onButtonClick?: () => void;
|
|
46
|
+
}
|
|
47
|
+
declare const ProductCardContent: React.ForwardRefExoticComponent<ProductCardContentProps & React.RefAttributes<HTMLElement>>;
|
|
48
|
+
export default ProductCardContent;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Badge, Button, DiscountBadge, Icon, Link, ProductPrice, Rating, } from '../../';
|
|
3
|
+
const ProductCardContent = forwardRef(function CardContent({ testId = 'fs-product-card-content', title, linkProps, price, outOfStock, outOfStockLabel = 'Out of stock', ratingValue, showDiscountBadge, buttonLabel = 'Add', onButtonClick, children, ...otherProps }, ref) {
|
|
4
|
+
const listingPrice = price?.listPrice ? price.listPrice : 0;
|
|
5
|
+
const sellingPrice = price?.value ? price.value : 0;
|
|
6
|
+
return (React.createElement("section", { ref: ref, "data-fs-product-card-content": true, "data-fs-product-card-badge": showDiscountBadge, "data-testid": testId, ...otherProps },
|
|
7
|
+
React.createElement("div", { "data-fs-product-card-heading": true },
|
|
8
|
+
React.createElement("h3", { "data-fs-product-card-title": true },
|
|
9
|
+
React.createElement(Link, { ...linkProps, title: title },
|
|
10
|
+
React.createElement("span", null, title))),
|
|
11
|
+
!outOfStock && (React.createElement(ProductPrice, { "data-fs-product-card-prices": true, value: sellingPrice, listPrice: listingPrice, formatter: price?.formatter })),
|
|
12
|
+
ratingValue && (React.createElement(Rating, { value: ratingValue, icon: React.createElement(Icon, { name: "Star" }) }))),
|
|
13
|
+
showDiscountBadge && !outOfStock && (React.createElement(DiscountBadge, { listPrice: listingPrice, spotPrice: sellingPrice })),
|
|
14
|
+
outOfStock && React.createElement(Badge, null, outOfStockLabel),
|
|
15
|
+
onButtonClick && !outOfStock && (React.createElement("div", { "data-fs-product-card-actions": true },
|
|
16
|
+
React.createElement(Button, { variant: "primary", icon: React.createElement(Icon, { name: "ShoppingCart" }), iconPosition: "left", size: "small", onClick: onButtonClick }, buttonLabel)))));
|
|
17
|
+
});
|
|
18
|
+
export default ProductCardContent;
|
|
19
|
+
//# sourceMappingURL=ProductCardContent.js.map
|