@faststore/components 3.0.32-alpha.0 → 3.0.39
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/cjs/molecules/CheckboxField/CheckboxField.d.ts +2 -17
- package/dist/cjs/molecules/CheckboxField/CheckboxField.js +2 -2
- package/dist/cjs/molecules/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js +1 -1
- package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
- package/dist/esm/molecules/CheckboxField/CheckboxField.d.ts +2 -17
- package/dist/esm/molecules/CheckboxField/CheckboxField.js +2 -2
- package/dist/esm/molecules/CheckboxField/CheckboxField.js.map +1 -1
- package/dist/esm/organisms/PaymentMethods/PaymentMethods.js +1 -1
- package/dist/esm/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
- package/package.json +10 -5
- package/src/molecules/CheckboxField/CheckboxField.tsx +18 -20
- package/src/organisms/PaymentMethods/PaymentMethods.tsx +1 -1
- package/dist/atoms/Badge/Badge.d.ts +0 -27
- package/dist/atoms/Badge/Badge.js +0 -7
- 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 -45
- package/dist/atoms/Button/Button.js +0 -14
- 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 -14
- 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 -35
- package/dist/atoms/Icon/Icon.js +0 -14
- 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/Input/Input.d.ts +0 -10
- package/dist/atoms/Input/Input.js +0 -6
- package/dist/atoms/Input/Input.js.map +0 -1
- package/dist/atoms/Input/index.d.ts +0 -2
- package/dist/atoms/Input/index.js +0 -2
- 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.d.ts +0 -25
- package/dist/atoms/Link/Link.js +0 -7
- package/dist/atoms/Link/Link.js.map +0 -1
- package/dist/atoms/Link/index.d.ts +0 -2
- package/dist/atoms/Link/index.js +0 -2
- package/dist/atoms/Link/index.js.map +0 -1
- package/dist/atoms/List/List.d.ts +0 -16
- package/dist/atoms/List/List.js +0 -7
- package/dist/atoms/List/List.js.map +0 -1
- package/dist/atoms/List/index.d.ts +0 -2
- package/dist/atoms/List/index.js +0 -2
- package/dist/atoms/List/index.js.map +0 -1
- package/dist/atoms/Loader/Loader.d.ts +0 -14
- package/dist/atoms/Loader/Loader.js +0 -9
- package/dist/atoms/Loader/Loader.js.map +0 -1
- package/dist/atoms/Loader/index.d.ts +0 -2
- package/dist/atoms/Loader/index.js +0 -2
- package/dist/atoms/Loader/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/Price/Price.d.ts +0 -32
- package/dist/atoms/Price/Price.js +0 -10
- package/dist/atoms/Price/Price.js.map +0 -1
- package/dist/atoms/Price/index.d.ts +0 -2
- package/dist/atoms/Price/index.js +0 -2
- package/dist/atoms/Price/index.js.map +0 -1
- package/dist/atoms/Radio/Radio.d.ts +0 -10
- 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/SROnly/SROnly.d.ts +0 -14
- package/dist/atoms/SROnly/SROnly.js +0 -7
- package/dist/atoms/SROnly/SROnly.js.map +0 -1
- package/dist/atoms/SROnly/index.d.ts +0 -1
- package/dist/atoms/SROnly/index.js +0 -2
- package/dist/atoms/SROnly/index.js.map +0 -1
- package/dist/atoms/Select/Select.d.ts +0 -20
- package/dist/atoms/Select/Select.js +0 -9
- package/dist/atoms/Select/Select.js.map +0 -1
- package/dist/atoms/Select/index.d.ts +0 -2
- package/dist/atoms/Select/index.js +0 -2
- package/dist/atoms/Select/index.js.map +0 -1
- package/dist/atoms/Skeleton/Skeleton.d.ts +0 -37
- package/dist/atoms/Skeleton/Skeleton.js +0 -10
- package/dist/atoms/Skeleton/Skeleton.js.map +0 -1
- package/dist/atoms/Skeleton/index.d.ts +0 -2
- package/dist/atoms/Skeleton/index.js +0 -2
- package/dist/atoms/Skeleton/index.js.map +0 -1
- package/dist/atoms/Slider/Slider.d.ts +0 -71
- package/dist/atoms/Slider/Slider.js +0 -57
- package/dist/atoms/Slider/Slider.js.map +0 -1
- package/dist/atoms/Slider/index.d.ts +0 -2
- package/dist/atoms/Slider/index.js +0 -2
- package/dist/atoms/Slider/index.js.map +0 -1
- package/dist/cjs/organisms/ImageGallery/ImageZoom.d.ts +0 -7
- package/dist/cjs/organisms/ImageGallery/ImageZoom.js +0 -9
- package/dist/cjs/organisms/ImageGallery/ImageZoom.js.map +0 -1
- package/dist/esm/organisms/ImageGallery/ImageZoom.d.ts +0 -7
- package/dist/esm/organisms/ImageGallery/ImageZoom.js +0 -6
- package/dist/esm/organisms/ImageGallery/ImageZoom.js.map +0 -1
- package/dist/hooks/UIProvider.d.ts +0 -34
- package/dist/hooks/UIProvider.js +0 -78
- package/dist/hooks/UIProvider.js.map +0 -1
- package/dist/hooks/index.d.ts +0 -8
- package/dist/hooks/index.js +0 -8
- package/dist/hooks/index.js.map +0 -1
- package/dist/hooks/useFadeEffect.d.ts +0 -5
- package/dist/hooks/useFadeEffect.js +0 -18
- package/dist/hooks/useFadeEffect.js.map +0 -1
- package/dist/hooks/useScrollDirection.d.ts +0 -1
- package/dist/hooks/useScrollDirection.js +0 -22
- package/dist/hooks/useScrollDirection.js.map +0 -1
- package/dist/hooks/useSearch.d.ts +0 -7
- package/dist/hooks/useSearch.js +0 -10
- package/dist/hooks/useSearch.js.map +0 -1
- package/dist/hooks/useSlideVisibility.d.ts +0 -9
- package/dist/hooks/useSlideVisibility.js +0 -29
- package/dist/hooks/useSlideVisibility.js.map +0 -1
- package/dist/hooks/useSlider.d.ts +0 -64
- package/dist/hooks/useSlider.js +0 -103
- package/dist/hooks/useSlider.js.map +0 -1
- package/dist/hooks/useTrapFocus.d.ts +0 -8
- package/dist/hooks/useTrapFocus.js +0 -75
- package/dist/hooks/useTrapFocus.js.map +0 -1
- package/dist/index.d.ts +0 -141
- package/dist/index.js +0 -78
- package/dist/index.js.map +0 -1
- package/dist/molecules/Accordion/Accordion.d.ts +0 -26
- package/dist/molecules/Accordion/Accordion.js +0 -21
- package/dist/molecules/Accordion/Accordion.js.map +0 -1
- package/dist/molecules/Accordion/AccordionButton.d.ts +0 -19
- package/dist/molecules/Accordion/AccordionButton.js +0 -37
- package/dist/molecules/Accordion/AccordionButton.js.map +0 -1
- package/dist/molecules/Accordion/AccordionItem.d.ts +0 -31
- package/dist/molecules/Accordion/AccordionItem.js +0 -22
- package/dist/molecules/Accordion/AccordionItem.js.map +0 -1
- package/dist/molecules/Accordion/AccordionPanel.d.ts +0 -10
- package/dist/molecules/Accordion/AccordionPanel.js +0 -10
- package/dist/molecules/Accordion/AccordionPanel.js.map +0 -1
- package/dist/molecules/Accordion/index.d.ts +0 -8
- package/dist/molecules/Accordion/index.js +0 -5
- package/dist/molecules/Accordion/index.js.map +0 -1
- package/dist/molecules/Alert/Alert.d.ts +0 -29
- package/dist/molecules/Alert/Alert.js +0 -17
- package/dist/molecules/Alert/Alert.js.map +0 -1
- package/dist/molecules/Alert/index.d.ts +0 -2
- package/dist/molecules/Alert/index.js +0 -2
- package/dist/molecules/Alert/index.js.map +0 -1
- package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +0 -6
- package/dist/molecules/Breadcrumb/Breadcrumb.js +0 -7
- package/dist/molecules/Breadcrumb/Breadcrumb.js.map +0 -1
- package/dist/molecules/Breadcrumb/BreadcrumbBase.d.ts +0 -47
- package/dist/molecules/Breadcrumb/BreadcrumbBase.js +0 -45
- package/dist/molecules/Breadcrumb/BreadcrumbBase.js.map +0 -1
- package/dist/molecules/Breadcrumb/BreadcrumbPure.d.ts +0 -14
- package/dist/molecules/Breadcrumb/BreadcrumbPure.js +0 -12
- package/dist/molecules/Breadcrumb/BreadcrumbPure.js.map +0 -1
- package/dist/molecules/Breadcrumb/Divider.d.ts +0 -4
- package/dist/molecules/Breadcrumb/Divider.js +0 -14
- package/dist/molecules/Breadcrumb/Divider.js.map +0 -1
- package/dist/molecules/Breadcrumb/ListItem.d.ts +0 -10
- package/dist/molecules/Breadcrumb/ListItem.js +0 -20
- package/dist/molecules/Breadcrumb/ListItem.js.map +0 -1
- package/dist/molecules/Breadcrumb/index.d.ts +0 -4
- package/dist/molecules/Breadcrumb/index.js +0 -3
- package/dist/molecules/Breadcrumb/index.js.map +0 -1
- package/dist/molecules/BuyButton/BuyButton.d.ts +0 -5
- package/dist/molecules/BuyButton/BuyButton.js +0 -7
- package/dist/molecules/BuyButton/BuyButton.js.map +0 -1
- package/dist/molecules/BuyButton/index.d.ts +0 -1
- package/dist/molecules/BuyButton/index.js +0 -2
- package/dist/molecules/BuyButton/index.js.map +0 -1
- package/dist/molecules/Carousel/Carousel.d.ts +0 -60
- package/dist/molecules/Carousel/Carousel.js +0 -188
- package/dist/molecules/Carousel/Carousel.js.map +0 -1
- package/dist/molecules/Carousel/CarouselBullets.d.ts +0 -39
- package/dist/molecules/Carousel/CarouselBullets.js +0 -12
- package/dist/molecules/Carousel/CarouselBullets.js.map +0 -1
- package/dist/molecules/Carousel/CarouselItem.d.ts +0 -13
- package/dist/molecules/Carousel/CarouselItem.js +0 -20
- package/dist/molecules/Carousel/CarouselItem.js.map +0 -1
- package/dist/molecules/Carousel/index.d.ts +0 -6
- package/dist/molecules/Carousel/index.js +0 -4
- package/dist/molecules/Carousel/index.js.map +0 -1
- package/dist/molecules/CartItem/CartItem.d.ts +0 -32
- package/dist/molecules/CartItem/CartItem.js +0 -12
- package/dist/molecules/CartItem/CartItem.js.map +0 -1
- package/dist/molecules/CartItem/CartItemImage.d.ts +0 -10
- package/dist/molecules/CartItem/CartItemImage.js +0 -6
- package/dist/molecules/CartItem/CartItemImage.js.map +0 -1
- package/dist/molecules/CartItem/CartItemSummary.d.ts +0 -21
- package/dist/molecules/CartItem/CartItemSummary.js +0 -12
- package/dist/molecules/CartItem/CartItemSummary.js.map +0 -1
- package/dist/molecules/CartItem/index.d.ts +0 -6
- package/dist/molecules/CartItem/index.js +0 -4
- package/dist/molecules/CartItem/index.js.map +0 -1
- package/dist/molecules/CheckboxField/CheckboxField.d.ts +0 -25
- package/dist/molecules/CheckboxField/CheckboxField.js +0 -10
- package/dist/molecules/CheckboxField/CheckboxField.js.map +0 -1
- package/dist/molecules/CheckboxField/index.d.ts +0 -2
- package/dist/molecules/CheckboxField/index.js +0 -2
- package/dist/molecules/CheckboxField/index.js.map +0 -1
- package/dist/molecules/DiscountBadge/DiscountBadge.d.ts +0 -26
- package/dist/molecules/DiscountBadge/DiscountBadge.js +0 -19
- package/dist/molecules/DiscountBadge/DiscountBadge.js.map +0 -1
- package/dist/molecules/DiscountBadge/index.d.ts +0 -2
- package/dist/molecules/DiscountBadge/index.js +0 -2
- package/dist/molecules/DiscountBadge/index.js.map +0 -1
- package/dist/molecules/DiscountBadge/useDiscountPercent.d.ts +0 -1
- package/dist/molecules/DiscountBadge/useDiscountPercent.js +0 -9
- package/dist/molecules/DiscountBadge/useDiscountPercent.js.map +0 -1
- package/dist/molecules/Dropdown/Dropdown.d.ts +0 -18
- package/dist/molecules/Dropdown/Dropdown.js +0 -66
- package/dist/molecules/Dropdown/Dropdown.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownButton.d.ts +0 -14
- package/dist/molecules/Dropdown/DropdownButton.js +0 -12
- package/dist/molecules/Dropdown/DropdownButton.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownItem.d.ts +0 -14
- package/dist/molecules/Dropdown/DropdownItem.js +0 -28
- package/dist/molecules/Dropdown/DropdownItem.js.map +0 -1
- package/dist/molecules/Dropdown/DropdownMenu.d.ts +0 -26
- package/dist/molecules/Dropdown/DropdownMenu.js +0 -66
- package/dist/molecules/Dropdown/DropdownMenu.js.map +0 -1
- package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +0 -41
- package/dist/molecules/Dropdown/contexts/DropdownContext.js +0 -11
- package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +0 -1
- package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +0 -6
- package/dist/molecules/Dropdown/hooks/useDropdown.js +0 -14
- package/dist/molecules/Dropdown/hooks/useDropdown.js.map +0 -1
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +0 -8
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +0 -25
- package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +0 -1
- package/dist/molecules/Dropdown/index.d.ts +0 -8
- package/dist/molecules/Dropdown/index.js +0 -5
- package/dist/molecules/Dropdown/index.js.map +0 -1
- package/dist/molecules/Gift/Gift.d.ts +0 -15
- package/dist/molecules/Gift/Gift.js +0 -8
- package/dist/molecules/Gift/Gift.js.map +0 -1
- package/dist/molecules/Gift/GiftContent.d.ts +0 -27
- package/dist/molecules/Gift/GiftContent.js +0 -14
- package/dist/molecules/Gift/GiftContent.js.map +0 -1
- package/dist/molecules/Gift/GiftImage.d.ts +0 -10
- package/dist/molecules/Gift/GiftImage.js +0 -6
- package/dist/molecules/Gift/GiftImage.js.map +0 -1
- package/dist/molecules/Gift/index.d.ts +0 -6
- package/dist/molecules/Gift/index.js +0 -4
- 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 -7
- 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/InputField/InputField.d.ts +0 -60
- package/dist/molecules/InputField/InputField.js +0 -18
- package/dist/molecules/InputField/InputField.js.map +0 -1
- package/dist/molecules/InputField/index.d.ts +0 -2
- package/dist/molecules/InputField/index.js +0 -2
- package/dist/molecules/InputField/index.js.map +0 -1
- package/dist/molecules/LinkButton/LinkButton.d.ts +0 -6
- package/dist/molecules/LinkButton/LinkButton.js +0 -17
- package/dist/molecules/LinkButton/LinkButton.js.map +0 -1
- package/dist/molecules/LinkButton/index.d.ts +0 -2
- package/dist/molecules/LinkButton/index.js +0 -2
- package/dist/molecules/LinkButton/index.js.map +0 -1
- package/dist/molecules/Modal/Modal.d.ts +0 -39
- package/dist/molecules/Modal/Modal.js +0 -38
- package/dist/molecules/Modal/Modal.js.map +0 -1
- package/dist/molecules/Modal/ModalBody.d.ts +0 -9
- package/dist/molecules/Modal/ModalBody.js +0 -4
- package/dist/molecules/Modal/ModalBody.js.map +0 -1
- package/dist/molecules/Modal/ModalContent.d.ts +0 -11
- package/dist/molecules/Modal/ModalContent.js +0 -23
- package/dist/molecules/Modal/ModalContent.js.map +0 -1
- package/dist/molecules/Modal/ModalHeader.d.ts +0 -22
- package/dist/molecules/Modal/ModalHeader.js +0 -11
- package/dist/molecules/Modal/ModalHeader.js.map +0 -1
- package/dist/molecules/Modal/index.d.ts +0 -5
- package/dist/molecules/Modal/index.js +0 -4
- package/dist/molecules/Modal/index.js.map +0 -1
- package/dist/molecules/NavbarLinks/NavbarLinks.d.ts +0 -10
- package/dist/molecules/NavbarLinks/NavbarLinks.js +0 -6
- package/dist/molecules/NavbarLinks/NavbarLinks.js.map +0 -1
- package/dist/molecules/NavbarLinks/NavbarLinksList.d.ts +0 -10
- package/dist/molecules/NavbarLinks/NavbarLinksList.js +0 -7
- package/dist/molecules/NavbarLinks/NavbarLinksList.js.map +0 -1
- package/dist/molecules/NavbarLinks/NavbarLinksListItem.d.ts +0 -10
- package/dist/molecules/NavbarLinks/NavbarLinksListItem.js +0 -6
- package/dist/molecules/NavbarLinks/NavbarLinksListItem.js.map +0 -1
- package/dist/molecules/NavbarLinks/index.d.ts +0 -6
- package/dist/molecules/NavbarLinks/index.js +0 -4
- package/dist/molecules/NavbarLinks/index.js.map +0 -1
- package/dist/molecules/OrderSummary/OrderSummary.d.ts +0 -35
- package/dist/molecules/OrderSummary/OrderSummary.js +0 -16
- package/dist/molecules/OrderSummary/OrderSummary.js.map +0 -1
- package/dist/molecules/OrderSummary/index.d.ts +0 -2
- package/dist/molecules/OrderSummary/index.js +0 -2
- package/dist/molecules/OrderSummary/index.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCard.d.ts +0 -23
- package/dist/molecules/ProductCard/ProductCard.js +0 -6
- package/dist/molecules/ProductCard/ProductCard.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardContent.d.ts +0 -48
- package/dist/molecules/ProductCard/ProductCardContent.js +0 -19
- package/dist/molecules/ProductCard/ProductCardContent.js.map +0 -1
- package/dist/molecules/ProductCard/ProductCardImage.d.ts +0 -14
- package/dist/molecules/ProductCard/ProductCardImage.js +0 -8
- package/dist/molecules/ProductCard/ProductCardImage.js.map +0 -1
- package/dist/molecules/ProductCard/index.d.ts +0 -6
- package/dist/molecules/ProductCard/index.js +0 -4
- package/dist/molecules/ProductCard/index.js.map +0 -1
- package/dist/molecules/ProductPrice/ProductPrice.d.ts +0 -24
- package/dist/molecules/ProductPrice/ProductPrice.js +0 -11
- package/dist/molecules/ProductPrice/ProductPrice.js.map +0 -1
- package/dist/molecules/ProductPrice/index.d.ts +0 -2
- package/dist/molecules/ProductPrice/index.js +0 -2
- package/dist/molecules/ProductPrice/index.js.map +0 -1
- package/dist/molecules/ProductTitle/ProductTitle.d.ts +0 -30
- package/dist/molecules/ProductTitle/ProductTitle.js +0 -16
- package/dist/molecules/ProductTitle/ProductTitle.js.map +0 -1
- package/dist/molecules/ProductTitle/index.d.ts +0 -2
- package/dist/molecules/ProductTitle/index.js +0 -2
- package/dist/molecules/ProductTitle/index.js.map +0 -1
- package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +0 -31
- package/dist/molecules/QuantitySelector/QuantitySelector.js +0 -37
- package/dist/molecules/QuantitySelector/QuantitySelector.js.map +0 -1
- package/dist/molecules/QuantitySelector/index.d.ts +0 -2
- package/dist/molecules/QuantitySelector/index.js +0 -2
- package/dist/molecules/QuantitySelector/index.js.map +0 -1
- package/dist/molecules/RadioField/RadioField.d.ts +0 -26
- package/dist/molecules/RadioField/RadioField.js +0 -10
- package/dist/molecules/RadioField/RadioField.js.map +0 -1
- package/dist/molecules/RadioField/index.d.ts +0 -2
- package/dist/molecules/RadioField/index.js +0 -2
- package/dist/molecules/RadioField/index.js.map +0 -1
- package/dist/molecules/RadioGroup/RadioGroup.d.ts +0 -6
- package/dist/molecules/RadioGroup/RadioGroup.js +0 -10
- package/dist/molecules/RadioGroup/RadioGroup.js.map +0 -1
- package/dist/molecules/RadioGroup/RadioOption.d.ts +0 -19
- package/dist/molecules/RadioGroup/RadioOption.js +0 -11
- package/dist/molecules/RadioGroup/RadioOption.js.map +0 -1
- package/dist/molecules/RadioGroup/index.d.ts +0 -4
- package/dist/molecules/RadioGroup/index.js +0 -3
- package/dist/molecules/RadioGroup/index.js.map +0 -1
- package/dist/molecules/RadioGroup/useRadioGroup.d.ts +0 -17
- package/dist/molecules/RadioGroup/useRadioGroup.js +0 -10
- package/dist/molecules/RadioGroup/useRadioGroup.js.map +0 -1
- package/dist/molecules/Rating/Rating.d.ts +0 -29
- package/dist/molecules/Rating/Rating.js +0 -27
- package/dist/molecules/Rating/Rating.js.map +0 -1
- package/dist/molecules/Rating/index.d.ts +0 -2
- package/dist/molecules/Rating/index.js +0 -2
- package/dist/molecules/Rating/index.js.map +0 -1
- package/dist/molecules/RegionBar/RegionBar.d.ts +0 -30
- package/dist/molecules/RegionBar/RegionBar.js +0 -12
- package/dist/molecules/RegionBar/RegionBar.js.map +0 -1
- package/dist/molecules/RegionBar/index.d.ts +0 -2
- package/dist/molecules/RegionBar/index.js +0 -2
- package/dist/molecules/RegionBar/index.js.map +0 -1
- package/dist/molecules/SearchAutoComplete/SearchAutoComplete.d.ts +0 -9
- package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js +0 -12
- package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js.map +0 -1
- package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.d.ts +0 -27
- package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js +0 -27
- package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js.map +0 -1
- package/dist/molecules/SearchAutoComplete/index.d.ts +0 -4
- package/dist/molecules/SearchAutoComplete/index.js +0 -3
- package/dist/molecules/SearchAutoComplete/index.js.map +0 -1
- package/dist/molecules/SearchDropdown/SearchDropdown.d.ts +0 -14
- package/dist/molecules/SearchDropdown/SearchDropdown.js +0 -14
- package/dist/molecules/SearchDropdown/SearchDropdown.js.map +0 -1
- package/dist/molecules/SearchDropdown/index.d.ts +0 -2
- package/dist/molecules/SearchDropdown/index.js +0 -2
- package/dist/molecules/SearchDropdown/index.js.map +0 -1
- package/dist/molecules/SearchHistory/SearchHistory.d.ts +0 -21
- package/dist/molecules/SearchHistory/SearchHistory.js +0 -15
- package/dist/molecules/SearchHistory/SearchHistory.js.map +0 -1
- package/dist/molecules/SearchHistory/SearchHistoryTerm.d.ts +0 -23
- package/dist/molecules/SearchHistory/SearchHistoryTerm.js +0 -10
- package/dist/molecules/SearchHistory/SearchHistoryTerm.js.map +0 -1
- package/dist/molecules/SearchHistory/index.d.ts +0 -4
- package/dist/molecules/SearchHistory/index.js +0 -3
- package/dist/molecules/SearchHistory/index.js.map +0 -1
- package/dist/molecules/SearchInputField/SearchInputField.d.ts +0 -36
- package/dist/molecules/SearchInputField/SearchInputField.js +0 -21
- package/dist/molecules/SearchInputField/SearchInputField.js.map +0 -1
- package/dist/molecules/SearchInputField/index.d.ts +0 -2
- package/dist/molecules/SearchInputField/index.js +0 -2
- package/dist/molecules/SearchInputField/index.js.map +0 -1
- package/dist/molecules/SearchProducts/SearchProductItem.d.ts +0 -16
- package/dist/molecules/SearchProducts/SearchProductItem.js +0 -8
- package/dist/molecules/SearchProducts/SearchProductItem.js.map +0 -1
- package/dist/molecules/SearchProducts/SearchProductItemContent.d.ts +0 -14
- package/dist/molecules/SearchProducts/SearchProductItemContent.js +0 -9
- package/dist/molecules/SearchProducts/SearchProductItemContent.js.map +0 -1
- package/dist/molecules/SearchProducts/SearchProductItemImage.d.ts +0 -10
- package/dist/molecules/SearchProducts/SearchProductItemImage.js +0 -6
- package/dist/molecules/SearchProducts/SearchProductItemImage.js.map +0 -1
- package/dist/molecules/SearchProducts/SearchProducts.d.ts +0 -13
- package/dist/molecules/SearchProducts/SearchProducts.js +0 -14
- package/dist/molecules/SearchProducts/SearchProducts.js.map +0 -1
- package/dist/molecules/SearchProducts/index.d.ts +0 -8
- package/dist/molecules/SearchProducts/index.js +0 -5
- package/dist/molecules/SearchProducts/index.js.map +0 -1
- package/dist/molecules/SearchProvider/SearchProvider.d.ts +0 -29
- package/dist/molecules/SearchProvider/SearchProvider.js +0 -8
- package/dist/molecules/SearchProvider/SearchProvider.js.map +0 -1
- package/dist/molecules/SearchProvider/index.d.ts +0 -2
- package/dist/molecules/SearchProvider/index.js +0 -2
- package/dist/molecules/SearchProvider/index.js.map +0 -1
- package/dist/molecules/SearchTop/SearchTop.d.ts +0 -14
- package/dist/molecules/SearchTop/SearchTop.js +0 -15
- package/dist/molecules/SearchTop/SearchTop.js.map +0 -1
- package/dist/molecules/SearchTop/SearchTopTerm.d.ts +0 -23
- package/dist/molecules/SearchTop/SearchTopTerm.js +0 -10
- package/dist/molecules/SearchTop/SearchTopTerm.js.map +0 -1
- package/dist/molecules/SearchTop/index.d.ts +0 -4
- package/dist/molecules/SearchTop/index.js +0 -3
- package/dist/molecules/SearchTop/index.js.map +0 -1
- package/dist/molecules/SelectField/SelectField.d.ts +0 -12
- package/dist/molecules/SelectField/SelectField.js +0 -9
- package/dist/molecules/SelectField/SelectField.js.map +0 -1
- package/dist/molecules/SelectField/index.d.ts +0 -2
- package/dist/molecules/SelectField/index.js +0 -2
- package/dist/molecules/SelectField/index.js.map +0 -1
- package/dist/molecules/SkuSelector/SkuSelector.d.ts +0 -78
- package/dist/molecules/SkuSelector/SkuSelector.js +0 -31
- package/dist/molecules/SkuSelector/SkuSelector.js.map +0 -1
- package/dist/molecules/SkuSelector/index.d.ts +0 -2
- package/dist/molecules/SkuSelector/index.js +0 -2
- package/dist/molecules/SkuSelector/index.js.map +0 -1
- package/dist/molecules/SkuSelector/useDefineVariant.d.ts +0 -3
- package/dist/molecules/SkuSelector/useDefineVariant.js +0 -27
- package/dist/molecules/SkuSelector/useDefineVariant.js.map +0 -1
- package/dist/molecules/SkuSelector/useSkuSlug.d.ts +0 -6
- package/dist/molecules/SkuSelector/useSkuSlug.js +0 -23
- package/dist/molecules/SkuSelector/useSkuSlug.js.map +0 -1
- package/dist/molecules/Table/Table.d.ts +0 -26
- package/dist/molecules/Table/Table.js +0 -7
- package/dist/molecules/Table/Table.js.map +0 -1
- package/dist/molecules/Table/TableBody.d.ts +0 -12
- package/dist/molecules/Table/TableBody.js +0 -6
- package/dist/molecules/Table/TableBody.js.map +0 -1
- package/dist/molecules/Table/TableCell.d.ts +0 -26
- package/dist/molecules/Table/TableCell.js +0 -7
- package/dist/molecules/Table/TableCell.js.map +0 -1
- package/dist/molecules/Table/TableFooter.d.ts +0 -12
- package/dist/molecules/Table/TableFooter.js +0 -6
- package/dist/molecules/Table/TableFooter.js.map +0 -1
- package/dist/molecules/Table/TableHead.d.ts +0 -12
- package/dist/molecules/Table/TableHead.js +0 -6
- package/dist/molecules/Table/TableHead.js.map +0 -1
- package/dist/molecules/Table/TableRow.d.ts +0 -12
- package/dist/molecules/Table/TableRow.js +0 -6
- package/dist/molecules/Table/TableRow.js.map +0 -1
- package/dist/molecules/Table/index.d.ts +0 -12
- package/dist/molecules/Table/index.js +0 -7
- package/dist/molecules/Table/index.js.map +0 -1
- package/dist/molecules/Tag/Tag.d.ts +0 -27
- package/dist/molecules/Tag/Tag.js +0 -9
- package/dist/molecules/Tag/Tag.js.map +0 -1
- package/dist/molecules/Tag/index.d.ts +0 -2
- package/dist/molecules/Tag/index.js +0 -2
- package/dist/molecules/Tag/index.js.map +0 -1
- package/dist/molecules/Toast/Toast.d.ts +0 -3
- package/dist/molecules/Toast/Toast.js +0 -29
- package/dist/molecules/Toast/Toast.js.map +0 -1
- package/dist/molecules/Toast/index.d.ts +0 -1
- package/dist/molecules/Toast/index.js +0 -2
- package/dist/molecules/Toast/index.js.map +0 -1
- package/dist/molecules/Toggle/Toggle.d.ts +0 -22
- package/dist/molecules/Toggle/Toggle.js +0 -10
- package/dist/molecules/Toggle/Toggle.js.map +0 -1
- package/dist/molecules/Toggle/index.d.ts +0 -2
- package/dist/molecules/Toggle/index.js +0 -2
- package/dist/molecules/Toggle/index.js.map +0 -1
- package/dist/molecules/ToggleField/ToggleField.d.ts +0 -29
- package/dist/molecules/ToggleField/ToggleField.js +0 -9
- package/dist/molecules/ToggleField/ToggleField.js.map +0 -1
- package/dist/molecules/ToggleField/index.d.ts +0 -2
- package/dist/molecules/ToggleField/index.js +0 -2
- package/dist/molecules/ToggleField/index.js.map +0 -1
- package/dist/organisms/BannerText/BannerText.d.ts +0 -27
- package/dist/organisms/BannerText/BannerText.js +0 -16
- package/dist/organisms/BannerText/BannerText.js.map +0 -1
- package/dist/organisms/BannerText/BannerTextContent.d.ts +0 -30
- package/dist/organisms/BannerText/BannerTextContent.js +0 -13
- package/dist/organisms/BannerText/BannerTextContent.js.map +0 -1
- package/dist/organisms/BannerText/index.d.ts +0 -4
- package/dist/organisms/BannerText/index.js +0 -3
- package/dist/organisms/BannerText/index.js.map +0 -1
- package/dist/organisms/CartSidebar/CartSidebar.d.ts +0 -45
- package/dist/organisms/CartSidebar/CartSidebar.js +0 -18
- package/dist/organisms/CartSidebar/CartSidebar.js.map +0 -1
- package/dist/organisms/CartSidebar/CartSidebarFooter.d.ts +0 -5
- package/dist/organisms/CartSidebar/CartSidebarFooter.js +0 -6
- package/dist/organisms/CartSidebar/CartSidebarFooter.js.map +0 -1
- package/dist/organisms/CartSidebar/CartSidebarList.d.ts +0 -5
- package/dist/organisms/CartSidebar/CartSidebarList.js +0 -7
- package/dist/organisms/CartSidebar/CartSidebarList.js.map +0 -1
- package/dist/organisms/CartSidebar/index.d.ts +0 -4
- package/dist/organisms/CartSidebar/index.js +0 -4
- package/dist/organisms/CartSidebar/index.js.map +0 -1
- package/dist/organisms/EmptyState/EmptyState.d.ts +0 -28
- package/dist/organisms/EmptyState/EmptyState.js +0 -10
- package/dist/organisms/EmptyState/EmptyState.js.map +0 -1
- package/dist/organisms/EmptyState/index.d.ts +0 -2
- package/dist/organisms/EmptyState/index.js +0 -2
- package/dist/organisms/EmptyState/index.js.map +0 -1
- package/dist/organisms/Filter/Filter.d.ts +0 -26
- package/dist/organisms/Filter/Filter.js +0 -9
- package/dist/organisms/Filter/Filter.js.map +0 -1
- package/dist/organisms/Filter/FilterFacetBoolean.d.ts +0 -5
- package/dist/organisms/Filter/FilterFacetBoolean.js +0 -7
- package/dist/organisms/Filter/FilterFacetBoolean.js.map +0 -1
- package/dist/organisms/Filter/FilterFacetBooleanItem.d.ts +0 -38
- package/dist/organisms/Filter/FilterFacetBooleanItem.js +0 -12
- package/dist/organisms/Filter/FilterFacetBooleanItem.js.map +0 -1
- package/dist/organisms/Filter/FilterFacetRange.d.ts +0 -32
- package/dist/organisms/Filter/FilterFacetRange.js +0 -11
- package/dist/organisms/Filter/FilterFacetRange.js.map +0 -1
- package/dist/organisms/Filter/FilterFacets.d.ts +0 -21
- package/dist/organisms/Filter/FilterFacets.js +0 -9
- package/dist/organisms/Filter/FilterFacets.js.map +0 -1
- package/dist/organisms/Filter/FilterSlider.d.ts +0 -36
- package/dist/organisms/Filter/FilterSlider.js +0 -22
- package/dist/organisms/Filter/FilterSlider.js.map +0 -1
- package/dist/organisms/Filter/index.d.ts +0 -11
- package/dist/organisms/Filter/index.js +0 -7
- package/dist/organisms/Filter/index.js.map +0 -1
- package/dist/organisms/Hero/Hero.d.ts +0 -27
- package/dist/organisms/Hero/Hero.js +0 -16
- package/dist/organisms/Hero/Hero.js.map +0 -1
- package/dist/organisms/Hero/HeroHeader.d.ts +0 -34
- package/dist/organisms/Hero/HeroHeader.js +0 -15
- package/dist/organisms/Hero/HeroHeader.js.map +0 -1
- package/dist/organisms/Hero/HeroImage.d.ts +0 -10
- package/dist/organisms/Hero/HeroImage.js +0 -6
- package/dist/organisms/Hero/HeroImage.js.map +0 -1
- package/dist/organisms/Hero/index.d.ts +0 -6
- package/dist/organisms/Hero/index.js +0 -4
- package/dist/organisms/Hero/index.js.map +0 -1
- package/dist/organisms/ImageGallery/ImageGallery.d.ts +0 -42
- package/dist/organisms/ImageGallery/ImageGallery.js +0 -10
- package/dist/organisms/ImageGallery/ImageGallery.js.map +0 -1
- package/dist/organisms/ImageGallery/ImageGallerySelector.d.ts +0 -32
- package/dist/organisms/ImageGallery/ImageGallerySelector.js +0 -46
- package/dist/organisms/ImageGallery/ImageGallerySelector.js.map +0 -1
- package/dist/organisms/ImageGallery/ImageGalleryViewer.d.ts +0 -8
- package/dist/organisms/ImageGallery/ImageGalleryViewer.js +0 -6
- package/dist/organisms/ImageGallery/ImageGalleryViewer.js.map +0 -1
- package/dist/organisms/ImageGallery/ImageZoom.d.ts +0 -7
- package/dist/organisms/ImageGallery/ImageZoom.js +0 -6
- package/dist/organisms/ImageGallery/ImageZoom.js.map +0 -1
- package/dist/organisms/ImageGallery/index.d.ts +0 -6
- package/dist/organisms/ImageGallery/index.js +0 -4
- package/dist/organisms/ImageGallery/index.js.map +0 -1
- package/dist/organisms/Navbar/Navbar.d.ts +0 -14
- package/dist/organisms/Navbar/Navbar.js +0 -6
- package/dist/organisms/Navbar/Navbar.js.map +0 -1
- package/dist/organisms/Navbar/NavbarButtons.d.ts +0 -14
- package/dist/organisms/Navbar/NavbarButtons.js +0 -6
- package/dist/organisms/Navbar/NavbarButtons.js.map +0 -1
- package/dist/organisms/Navbar/NavbarHeader.d.ts +0 -10
- package/dist/organisms/Navbar/NavbarHeader.js +0 -6
- package/dist/organisms/Navbar/NavbarHeader.js.map +0 -1
- package/dist/organisms/Navbar/NavbarRow.d.ts +0 -10
- package/dist/organisms/Navbar/NavbarRow.js +0 -6
- package/dist/organisms/Navbar/NavbarRow.js.map +0 -1
- package/dist/organisms/Navbar/index.d.ts +0 -8
- package/dist/organisms/Navbar/index.js +0 -5
- package/dist/organisms/Navbar/index.js.map +0 -1
- package/dist/organisms/NavbarSlider/NavbarSlider.d.ts +0 -19
- package/dist/organisms/NavbarSlider/NavbarSlider.js +0 -7
- package/dist/organisms/NavbarSlider/NavbarSlider.js.map +0 -1
- package/dist/organisms/NavbarSlider/NavbarSliderContent.d.ts +0 -10
- package/dist/organisms/NavbarSlider/NavbarSliderContent.js +0 -6
- package/dist/organisms/NavbarSlider/NavbarSliderContent.js.map +0 -1
- package/dist/organisms/NavbarSlider/NavbarSliderFooter.d.ts +0 -10
- package/dist/organisms/NavbarSlider/NavbarSliderFooter.js +0 -6
- package/dist/organisms/NavbarSlider/NavbarSliderFooter.js.map +0 -1
- package/dist/organisms/NavbarSlider/NavbarSliderHeader.d.ts +0 -10
- package/dist/organisms/NavbarSlider/NavbarSliderHeader.js +0 -7
- package/dist/organisms/NavbarSlider/NavbarSliderHeader.js.map +0 -1
- package/dist/organisms/NavbarSlider/index.d.ts +0 -8
- package/dist/organisms/NavbarSlider/index.js +0 -5
- package/dist/organisms/NavbarSlider/index.js.map +0 -1
- package/dist/organisms/Newsletter/Newsletter.d.ts +0 -19
- package/dist/organisms/Newsletter/Newsletter.js +0 -6
- package/dist/organisms/Newsletter/Newsletter.js.map +0 -1
- package/dist/organisms/Newsletter/NewsletterAddendum.d.ts +0 -14
- package/dist/organisms/Newsletter/NewsletterAddendum.js +0 -6
- package/dist/organisms/Newsletter/NewsletterAddendum.js.map +0 -1
- package/dist/organisms/Newsletter/NewsletterContent.d.ts +0 -10
- package/dist/organisms/Newsletter/NewsletterContent.js +0 -6
- package/dist/organisms/Newsletter/NewsletterContent.js.map +0 -1
- package/dist/organisms/Newsletter/NewsletterForm.d.ts +0 -14
- package/dist/organisms/Newsletter/NewsletterForm.js +0 -6
- package/dist/organisms/Newsletter/NewsletterForm.js.map +0 -1
- package/dist/organisms/Newsletter/NewsletterHeader.d.ts +0 -22
- package/dist/organisms/Newsletter/NewsletterHeader.js +0 -10
- package/dist/organisms/Newsletter/NewsletterHeader.js.map +0 -1
- package/dist/organisms/Newsletter/index.d.ts +0 -10
- package/dist/organisms/Newsletter/index.js +0 -6
- package/dist/organisms/Newsletter/index.js.map +0 -1
- package/dist/organisms/OutOfStock/OutOfStock.d.ts +0 -43
- package/dist/organisms/OutOfStock/OutOfStock.js +0 -13
- package/dist/organisms/OutOfStock/OutOfStock.js.map +0 -1
- package/dist/organisms/OutOfStock/index.d.ts +0 -2
- package/dist/organisms/OutOfStock/index.js +0 -2
- package/dist/organisms/OutOfStock/index.js.map +0 -1
- package/dist/organisms/PaymentMethods/PaymentMethods.d.ts +0 -32
- package/dist/organisms/PaymentMethods/PaymentMethods.js +0 -11
- package/dist/organisms/PaymentMethods/PaymentMethods.js.map +0 -1
- package/dist/organisms/PaymentMethods/index.d.ts +0 -2
- package/dist/organisms/PaymentMethods/index.js +0 -2
- package/dist/organisms/PaymentMethods/index.js.map +0 -1
- package/dist/organisms/PriceRange/PriceRange.d.ts +0 -25
- package/dist/organisms/PriceRange/PriceRange.js +0 -75
- package/dist/organisms/PriceRange/PriceRange.js.map +0 -1
- package/dist/organisms/PriceRange/index.d.ts +0 -2
- package/dist/organisms/PriceRange/index.js +0 -2
- package/dist/organisms/PriceRange/index.js.map +0 -1
- package/dist/organisms/ProductGrid/ProductGrid.d.ts +0 -10
- package/dist/organisms/ProductGrid/ProductGrid.js +0 -6
- package/dist/organisms/ProductGrid/ProductGrid.js.map +0 -1
- package/dist/organisms/ProductGrid/ProductGridItem.d.ts +0 -10
- package/dist/organisms/ProductGrid/ProductGridItem.js +0 -6
- package/dist/organisms/ProductGrid/ProductGridItem.js.map +0 -1
- package/dist/organisms/ProductGrid/index.d.ts +0 -4
- package/dist/organisms/ProductGrid/index.js +0 -3
- package/dist/organisms/ProductGrid/index.js.map +0 -1
- package/dist/organisms/ProductShelf/ProductShelf.d.ts +0 -10
- package/dist/organisms/ProductShelf/ProductShelf.js +0 -6
- package/dist/organisms/ProductShelf/ProductShelf.js.map +0 -1
- package/dist/organisms/ProductShelf/ProductShelfItem.d.ts +0 -10
- package/dist/organisms/ProductShelf/ProductShelfItem.js +0 -6
- package/dist/organisms/ProductShelf/ProductShelfItem.js.map +0 -1
- package/dist/organisms/ProductShelf/ProductShelfItems.d.ts +0 -10
- package/dist/organisms/ProductShelf/ProductShelfItems.js +0 -6
- package/dist/organisms/ProductShelf/ProductShelfItems.js.map +0 -1
- package/dist/organisms/ProductShelf/index.d.ts +0 -6
- package/dist/organisms/ProductShelf/index.js +0 -4
- package/dist/organisms/ProductShelf/index.js.map +0 -1
- package/dist/organisms/RegionModal/RegionModal.d.ts +0 -72
- package/dist/organisms/RegionModal/RegionModal.js +0 -19
- package/dist/organisms/RegionModal/RegionModal.js.map +0 -1
- package/dist/organisms/RegionModal/index.d.ts +0 -2
- package/dist/organisms/RegionModal/index.js +0 -2
- package/dist/organisms/RegionModal/index.js.map +0 -1
- package/dist/organisms/SearchInput/SearchInput.d.ts +0 -26
- package/dist/organisms/SearchInput/SearchInput.js +0 -8
- package/dist/organisms/SearchInput/SearchInput.js.map +0 -1
- package/dist/organisms/SearchInput/index.d.ts +0 -2
- package/dist/organisms/SearchInput/index.js +0 -2
- package/dist/organisms/SearchInput/index.js.map +0 -1
- package/dist/organisms/ShippingSimulation/ShippingSimulation.d.ts +0 -125
- package/dist/organisms/ShippingSimulation/ShippingSimulation.js +0 -22
- package/dist/organisms/ShippingSimulation/ShippingSimulation.js.map +0 -1
- package/dist/organisms/ShippingSimulation/index.d.ts +0 -2
- package/dist/organisms/ShippingSimulation/index.js +0 -2
- package/dist/organisms/ShippingSimulation/index.js.map +0 -1
- package/dist/organisms/SlideOver/SlideOver.d.ts +0 -39
- package/dist/organisms/SlideOver/SlideOver.js +0 -7
- package/dist/organisms/SlideOver/SlideOver.js.map +0 -1
- package/dist/organisms/SlideOver/SlideOverHeader.d.ts +0 -19
- package/dist/organisms/SlideOver/SlideOverHeader.js +0 -9
- package/dist/organisms/SlideOver/SlideOverHeader.js.map +0 -1
- package/dist/organisms/SlideOver/index.d.ts +0 -4
- package/dist/organisms/SlideOver/index.js +0 -3
- package/dist/organisms/SlideOver/index.js.map +0 -1
- package/dist/typings/PolymorphicGenerics.d.ts +0 -28
- package/dist/typings/PolymorphicGenerics.js +0 -8
- package/dist/typings/PolymorphicGenerics.js.map +0 -1
- package/dist/typings/PriceDefinition.d.ts +0 -6
- package/dist/typings/PriceDefinition.js +0 -2
- package/dist/typings/PriceDefinition.js.map +0 -1
- package/dist/typings/index.d.ts +0 -2
- package/dist/typings/index.js +0 -2
- package/dist/typings/index.js.map +0 -1
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,6 +0,0 @@
|
|
|
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';
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,35 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/OrderSummary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,48 +0,0 @@
|
|
|
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;
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardContent.js","sourceRoot":"","sources":["../../../src/molecules/ProductCard/ProductCardContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAIzC,OAAO,EACL,KAAK,EACL,MAAM,EACN,aAAa,EACb,IAAI,EACJ,IAAI,EAGJ,YAAY,EACZ,MAAM,GACP,MAAM,QAAQ,CAAA;AA6Cf,MAAM,kBAAkB,GAAG,UAAU,CACnC,SAAS,WAAW,CAClB,EACE,MAAM,GAAG,yBAAyB,EAClC,KAAK,EACL,SAAS,EACT,KAAK,EACL,UAAU,EACV,eAAe,GAAG,cAAc,EAChC,WAAW,EACX,iBAAiB,EACjB,WAAW,GAAG,KAAK,EACnB,aAAa,EACb,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,YAAY,GAAG,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAA;IAC3D,MAAM,YAAY,GAAG,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAEnD,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,sEAEoB,iBAAiB,iBAChC,MAAM,KACf,UAAU;QAEd;YACE;gBACE,oBAAC,IAAI,OAAK,SAAS,EAAE,KAAK,EAAE,KAAK;oBAC/B,kCAAO,KAAK,CAAQ,CACf,CACJ;YACJ,CAAC,UAAU,IAAI,CACd,oBAAC,YAAY,yCAEX,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,KAAK,EAAE,SAAS,GAC3B,CACH;YACA,WAAW,IAAI,CACd,oBAAC,MAAM,IAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG,GAAI,CAC3D,CACG;QACL,iBAAiB,IAAI,CAAC,UAAU,IAAI,CACnC,oBAAC,aAAa,IAAC,SAAS,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,GAAI,CACpE;QACA,UAAU,IAAI,oBAAC,KAAK,QAAE,eAAe,CAAS;QAC9C,aAAa,IAAI,CAAC,UAAU,IAAI,CAC/B;YACE,oBAAC,MAAM,IACL,OAAO,EAAC,SAAS,EACjB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,cAAc,GAAG,EAClC,YAAY,EAAC,MAAM,EACnB,IAAI,EAAC,OAAO,EACZ,OAAO,EAAE,aAAa,IAErB,WAAW,CACL,CACL,CACP,CACO,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,kBAAkB,CAAA"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface ProductCardImageProps 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
|
-
* Specifies the ProductCard image's aspect ratio.
|
|
10
|
-
*/
|
|
11
|
-
aspectRatio?: number;
|
|
12
|
-
}
|
|
13
|
-
declare const ProductCardImage: React.ForwardRefExoticComponent<ProductCardImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export default ProductCardImage;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
const ProductCardImage = forwardRef(function ProductCardImage({ testId = 'fs-product-card-image', aspectRatio = 1, children, ...otherProps }, ref) {
|
|
3
|
-
return (React.createElement("div", { ref: ref, "data-fs-product-card-image": true, "data-testid": testId, style: {
|
|
4
|
-
'--fs-product-card-image-aspect-ratio': aspectRatio
|
|
5
|
-
}, ...otherProps }, children));
|
|
6
|
-
});
|
|
7
|
-
export default ProductCardImage;
|
|
8
|
-
//# sourceMappingURL=ProductCardImage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCardImage.js","sourceRoot":"","sources":["../../../src/molecules/ProductCard/ProductCardImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAazC,MAAM,gBAAgB,GAAG,UAAU,CACjC,SAAS,gBAAgB,CACvB,EACE,MAAM,GAAG,uBAAuB,EAChC,WAAW,GAAG,CAAC,EACf,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,qDAEK,MAAM,EACnB,KAAK,EACH;YACE,sCAAsC,EAAE,WAAW;SAC7B,KAEtB,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { default } from './ProductCard';
|
|
2
|
-
export type { ProductCardProps } from './ProductCard';
|
|
3
|
-
export { default as ProductCardImage } from './ProductCardImage';
|
|
4
|
-
export type { ProductCardImageProps } from './ProductCardImage';
|
|
5
|
-
export { default as ProductCardContent } from './ProductCardContent';
|
|
6
|
-
export type { ProductCardContentProps } from './ProductCardContent';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/ProductCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAGhE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { HTMLAttributes } from 'react';
|
|
3
|
-
import type { PriceFormatter } from '../../atoms/Price';
|
|
4
|
-
export interface ProductPriceProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
-
/**
|
|
6
|
-
* Specifies product's raw price value.
|
|
7
|
-
*/
|
|
8
|
-
value: number;
|
|
9
|
-
/**
|
|
10
|
-
* Specifies product's listing price.
|
|
11
|
-
*/
|
|
12
|
-
listPrice: number;
|
|
13
|
-
/**
|
|
14
|
-
* Formatter function that transforms the raw price value and render the result.
|
|
15
|
-
*/
|
|
16
|
-
formatter?: PriceFormatter;
|
|
17
|
-
/**
|
|
18
|
-
* ID to find this component in testing tools (e.g.: cypress,
|
|
19
|
-
* testing-library, and jest).
|
|
20
|
-
*/
|
|
21
|
-
testId?: string;
|
|
22
|
-
}
|
|
23
|
-
declare const ProductPrice: React.ForwardRefExoticComponent<ProductPriceProps & React.RefAttributes<HTMLDivElement>>;
|
|
24
|
-
export default ProductPrice;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import { Price } from '../../';
|
|
3
|
-
const ProductPrice = forwardRef(function ProductCard({ testId = 'fs-product-price', value, listPrice, formatter, ...otherProps }, ref) {
|
|
4
|
-
const listingPrice = listPrice ?? 0;
|
|
5
|
-
const sellingPrice = value ?? 0;
|
|
6
|
-
return (React.createElement("div", { ref: ref, "data-fs-product-price": true, "data-testid": testId, ...otherProps }, sellingPrice !== listingPrice && listingPrice !== 0 ? (React.createElement(React.Fragment, null,
|
|
7
|
-
React.createElement(Price, { value: listingPrice, formatter: formatter, testId: "list-price", "data-value": listingPrice, variant: "listing", SRText: "Original price:" }),
|
|
8
|
-
React.createElement(Price, { value: sellingPrice, formatter: formatter, testId: "price", "data-value": sellingPrice, variant: "spot", SRText: "Price:" }))) : (React.createElement(Price, { value: sellingPrice, formatter: formatter, testId: "price", "data-value": sellingPrice, variant: "spot", SRText: "Price:" }))));
|
|
9
|
-
});
|
|
10
|
-
export default ProductPrice;
|
|
11
|
-
//# sourceMappingURL=ProductPrice.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductPrice.js","sourceRoot":"","sources":["../../../src/molecules/ProductPrice/ProductPrice.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAIzC,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAsB9B,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,kBAAkB,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,UAAU,EAAE,EAC3E,GAAG;IAEH,MAAM,YAAY,GAAG,SAAS,IAAI,CAAC,CAAA;IACnC,MAAM,YAAY,GAAG,KAAK,IAAI,CAAC,CAAA;IAE/B,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,gDAAqC,MAAM,KAAM,UAAU,IACrE,YAAY,KAAK,YAAY,IAAI,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CACrD;QACE,oBAAC,KAAK,IACJ,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAC,YAAY,gBACP,YAAY,EACxB,OAAO,EAAC,SAAS,EACjB,MAAM,EAAC,iBAAiB,GACxB;QACF,oBAAC,KAAK,IACJ,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAC,OAAO,gBACF,YAAY,EACxB,OAAO,EAAC,MAAM,EACd,MAAM,EAAC,QAAQ,GACf,CACD,CACJ,CAAC,CAAC,CAAC,CACF,oBAAC,KAAK,IACJ,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,SAAS,EACpB,MAAM,EAAC,OAAO,gBACF,YAAY,EACxB,OAAO,EAAC,MAAM,EACd,MAAM,EAAC,QAAQ,GACf,CACH,CACG,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/ProductPrice/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
2
|
-
import type { ReactNode } from 'react';
|
|
3
|
-
export interface ProductTitleProps extends Omit<HTMLAttributes<HTMLElement>, 'title'> {
|
|
4
|
-
/**
|
|
5
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
6
|
-
*/
|
|
7
|
-
testId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* A react component to be used as the product title, e.g. a `h1`
|
|
10
|
-
*/
|
|
11
|
-
title: ReactNode;
|
|
12
|
-
/**
|
|
13
|
-
* A react component to be used as the product label, e.g. a `DiscountBadge`
|
|
14
|
-
*/
|
|
15
|
-
label?: ReactNode;
|
|
16
|
-
/**
|
|
17
|
-
* Label for reference.
|
|
18
|
-
*/
|
|
19
|
-
refTag?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A text to be used below the title and the label, such as the product's reference number.
|
|
22
|
-
*/
|
|
23
|
-
refNumber?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The current value of the rating, a number from 0 to 5.
|
|
26
|
-
*/
|
|
27
|
-
ratingValue?: number;
|
|
28
|
-
}
|
|
29
|
-
declare const ProductTitle: React.ForwardRefExoticComponent<ProductTitleProps & React.RefAttributes<HTMLElement>>;
|
|
30
|
-
export default ProductTitle;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import { Rating } from '../../';
|
|
3
|
-
const ProductTitle = forwardRef(function ProductTitle({ title, label, refTag = 'Ref.: ', refNumber, testId = 'fs-product-title', ratingValue, ...otherProps }, ref) {
|
|
4
|
-
return (React.createElement("header", { ref: ref, "data-fs-product-title": true, "data-testid": testId, ...otherProps },
|
|
5
|
-
React.createElement("div", { "data-fs-product-title-header": true },
|
|
6
|
-
title,
|
|
7
|
-
!!label && label),
|
|
8
|
-
(refNumber || ratingValue) && (React.createElement("div", { "data-fs-product-title-addendum": true },
|
|
9
|
-
ratingValue && React.createElement(Rating, { value: ratingValue }),
|
|
10
|
-
refNumber && (React.createElement(React.Fragment, null,
|
|
11
|
-
refTag,
|
|
12
|
-
" ",
|
|
13
|
-
refNumber))))));
|
|
14
|
-
});
|
|
15
|
-
export default ProductTitle;
|
|
16
|
-
//# sourceMappingURL=ProductTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductTitle.js","sourceRoot":"","sources":["../../../src/molecules/ProductTitle/ProductTitle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAkB,MAAM,OAAO,CAAA;AAGzD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AA8B/B,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,KAAK,EACL,KAAK,EACL,MAAM,GAAG,QAAQ,EACjB,SAAS,EACT,MAAM,GAAG,kBAAkB,EAC3B,WAAW,EACX,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,gDAEK,MAAM,KACf,UAAU;QAEd;YACG,KAAK;YACL,CAAC,CAAC,KAAK,IAAI,KAAK,CACb;QAEL,CAAC,SAAS,IAAI,WAAW,CAAC,IAAI,CAC7B;YACG,WAAW,IAAI,oBAAC,MAAM,IAAC,KAAK,EAAE,WAAW,GAAI;YAC7C,SAAS,IAAI,CACZ;gBACG,MAAM;;gBAAG,SAAS,CAClB,CACJ,CACG,CACP,CACM,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/ProductTitle/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export interface QuantitySelectorProps {
|
|
3
|
-
/**
|
|
4
|
-
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
5
|
-
*
|
|
6
|
-
* @default 'fs-quantity-selector'
|
|
7
|
-
*/
|
|
8
|
-
testId?: string;
|
|
9
|
-
/**
|
|
10
|
-
* The maximum value the quantity selector can receive
|
|
11
|
-
*/
|
|
12
|
-
max?: number;
|
|
13
|
-
/**
|
|
14
|
-
* The minimum value the quantity selector can receive
|
|
15
|
-
*/
|
|
16
|
-
min?: number;
|
|
17
|
-
/**
|
|
18
|
-
* The initial value for quantity selector
|
|
19
|
-
*/
|
|
20
|
-
initial?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Specifies that the whole quantity selector component should be disabled.
|
|
23
|
-
*/
|
|
24
|
-
disabled?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Event emitted when value is changed
|
|
27
|
-
*/
|
|
28
|
-
onChange?: (value: number) => void;
|
|
29
|
-
}
|
|
30
|
-
declare const QuantitySelector: ({ max, min, initial, disabled, onChange, testId, ...otherProps }: QuantitySelectorProps) => React.JSX.Element;
|
|
31
|
-
export default QuantitySelector;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { Icon, IconButton, Input } from '../../';
|
|
3
|
-
const QuantitySelector = ({ max, min = 1, initial, disabled = false, onChange, testId = 'fs-quantity-selector', ...otherProps }) => {
|
|
4
|
-
const [quantity, setQuantity] = useState(initial ?? min);
|
|
5
|
-
const isLeftDisabled = quantity === min;
|
|
6
|
-
const isRightDisabled = quantity === max;
|
|
7
|
-
const changeQuantity = (increaseValue) => {
|
|
8
|
-
const quantityValue = validateQuantityBounds(quantity + increaseValue);
|
|
9
|
-
onChange?.(quantityValue);
|
|
10
|
-
setQuantity(quantityValue);
|
|
11
|
-
};
|
|
12
|
-
const increase = () => changeQuantity(1);
|
|
13
|
-
const decrease = () => changeQuantity(-1);
|
|
14
|
-
function validateQuantityBounds(n) {
|
|
15
|
-
const maxValue = min ? Math.max(n, min) : n;
|
|
16
|
-
return max ? Math.min(maxValue, max) : maxValue;
|
|
17
|
-
}
|
|
18
|
-
function validateInput(e) {
|
|
19
|
-
const val = e.currentTarget.value;
|
|
20
|
-
if (!Number.isNaN(Number(val))) {
|
|
21
|
-
setQuantity(() => {
|
|
22
|
-
const quantityValue = validateQuantityBounds(Number(val));
|
|
23
|
-
onChange?.(quantityValue);
|
|
24
|
-
return quantityValue;
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
useEffect(() => {
|
|
29
|
-
initial && setQuantity(initial);
|
|
30
|
-
}, [initial]);
|
|
31
|
-
return (React.createElement("div", { "data-fs-quantity-selector": disabled ? 'disabled' : 'true', "data-testid": testId, ...otherProps },
|
|
32
|
-
React.createElement(IconButton, { "data-quantity-selector-button": "left", icon: React.createElement(Icon, { name: "Minus", width: 16, height: 16, weight: "bold" }), "aria-label": "Decrement Quantity", "aria-controls": "quantity-selector-input", disabled: isLeftDisabled || disabled, onClick: decrease, testId: `${testId}-left-button`, size: "small" }),
|
|
33
|
-
React.createElement(Input, { "data-quantity-selector-input": true, id: "quantity-selector-input", "aria-label": "Quantity", value: quantity, onChange: validateInput, disabled: disabled }),
|
|
34
|
-
React.createElement(IconButton, { "data-quantity-selector-button": "right", "aria-controls": "quantity-selector-input", "aria-label": "Increment Quantity", disabled: isRightDisabled || disabled, icon: React.createElement(Icon, { name: "Plus", width: 16, height: 16, weight: "bold" }), onClick: increase, testId: `${testId}-right-button`, size: "small" })));
|
|
35
|
-
};
|
|
36
|
-
export default QuantitySelector;
|
|
37
|
-
//# sourceMappingURL=QuantitySelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuantitySelector.js","sourceRoot":"","sources":["../../../src/molecules/QuantitySelector/QuantitySelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AA+BhD,MAAM,gBAAgB,GAAG,CAAC,EACxB,GAAG,EACH,GAAG,GAAG,CAAC,EACP,OAAO,EACP,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,MAAM,GAAG,sBAAsB,EAC/B,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAS,OAAO,IAAI,GAAG,CAAC,CAAA;IAEhE,MAAM,cAAc,GAAG,QAAQ,KAAK,GAAG,CAAA;IACvC,MAAM,eAAe,GAAG,QAAQ,KAAK,GAAG,CAAA;IAExC,MAAM,cAAc,GAAG,CAAC,aAAqB,EAAE,EAAE;QAC/C,MAAM,aAAa,GAAG,sBAAsB,CAAC,QAAQ,GAAG,aAAa,CAAC,CAAA;QAEtE,QAAQ,EAAE,CAAC,aAAa,CAAC,CAAA;QACzB,WAAW,CAAC,aAAa,CAAC,CAAA;IAC5B,CAAC,CAAA;IAED,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAA;IAExC,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAEzC,SAAS,sBAAsB,CAAC,CAAS;QACvC,MAAM,QAAQ,GAAG,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;QAE3C,OAAO,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAA;IACjD,CAAC;IAED,SAAS,aAAa,CAAC,CAAoC;QACzD,MAAM,GAAG,GAAG,CAAC,CAAC,aAAa,CAAC,KAAK,CAAA;QAEjC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE;YAC9B,WAAW,CAAC,GAAG,EAAE;gBACf,MAAM,aAAa,GAAG,sBAAsB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAA;gBAEzD,QAAQ,EAAE,CAAC,aAAa,CAAC,CAAA;gBAEzB,OAAO,aAAa,CAAA;YACtB,CAAC,CAAC,CAAA;SACH;IACH,CAAC;IAED,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,IAAI,WAAW,CAAC,OAAO,CAAC,CAAA;IACjC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IAEb,OAAO,CACL,0DAC6B,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,iBAC5C,MAAM,KACf,UAAU;QAEd,oBAAC,UAAU,qCACqB,MAAM,EACpC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAC,MAAM,GAAG,gBACrD,oBAAoB,mBACjB,yBAAyB,EACvC,QAAQ,EAAE,cAAc,IAAI,QAAQ,EACpC,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,GAAG,MAAM,cAAc,EAC/B,IAAI,EAAC,OAAO,GACZ;QACF,oBAAC,KAAK,0CAEJ,EAAE,EAAC,yBAAyB,gBACjB,UAAU,EACrB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,aAAa,EACvB,QAAQ,EAAE,QAAQ,GAClB;QACF,oBAAC,UAAU,qCACqB,OAAO,mBACvB,yBAAyB,gBAC5B,oBAAoB,EAC/B,QAAQ,EAAE,eAAe,IAAI,QAAQ,EACrC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAC,MAAM,GAAG,EAC/D,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,GAAG,MAAM,eAAe,EAChC,IAAI,EAAC,OAAO,GACZ,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/QuantitySelector/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { HTMLAttributes } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface RadioFieldProps 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
|
-
* ID to identify input and corresponding label.
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* The text displayed to identify the input radio.
|
|
14
|
-
*/
|
|
15
|
-
label: string;
|
|
16
|
-
/**
|
|
17
|
-
* The value to identify the input radio.
|
|
18
|
-
*/
|
|
19
|
-
value?: string;
|
|
20
|
-
/**
|
|
21
|
-
* Identify radio in the same group.
|
|
22
|
-
*/
|
|
23
|
-
name?: string;
|
|
24
|
-
}
|
|
25
|
-
declare const RadioField: React.ForwardRefExoticComponent<RadioFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
26
|
-
export default RadioField;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import Label from '../../atoms/Label';
|
|
3
|
-
import Radio from '../../atoms/Radio';
|
|
4
|
-
const RadioField = forwardRef(function RadioField({ testId = 'fs-radio-field', id, label, value, name, ...otherProps }, ref) {
|
|
5
|
-
return (React.createElement("div", { ref: ref, "data-fs-radio-field": true, "data-testid": testId },
|
|
6
|
-
React.createElement(Radio, { id: id, value: value ?? label, name: name, ...otherProps }),
|
|
7
|
-
React.createElement(Label, { htmlFor: id }, label)));
|
|
8
|
-
});
|
|
9
|
-
export default RadioField;
|
|
10
|
-
//# sourceMappingURL=RadioField.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioField.js","sourceRoot":"","sources":["../../../src/molecules/RadioField/RadioField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,MAAM,mBAAmB,CAAA;AACrC,OAAO,KAAK,MAAM,mBAAmB,CAAA;AAyBrC,MAAM,UAAU,GAAG,UAAU,CAC3B,SAAS,UAAU,CACjB,EAAE,MAAM,GAAG,gBAAgB,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,UAAU,EAAE,EACpE,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,8CAAmC,MAAM;QACpD,oBAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,IAAI,KAAK,EAAE,IAAI,EAAE,IAAI,KAAM,UAAU,GAAI;QACpE,oBAAC,KAAK,IAAC,OAAO,EAAE,EAAE,IAAG,KAAK,CAAS,CAC/B,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/RadioField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PropsWithChildren } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { RadioGroupContext } from './useRadioGroup';
|
|
4
|
-
export type RadioGroupProps = PropsWithChildren<RadioGroupContext>;
|
|
5
|
-
declare const RadioGroup: ({ name, onChange, children, selectedValue, }: RadioGroupProps) => React.JSX.Element;
|
|
6
|
-
export default RadioGroup;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { RadioGroupContext } from './useRadioGroup';
|
|
3
|
-
const RadioGroup = ({ name, onChange, children, selectedValue, }) => {
|
|
4
|
-
const contextValues = React.useMemo(() => {
|
|
5
|
-
return { name, selectedValue, onChange };
|
|
6
|
-
}, [name, selectedValue, onChange]);
|
|
7
|
-
return (React.createElement(RadioGroupContext.Provider, { value: contextValues }, children));
|
|
8
|
-
};
|
|
9
|
-
export default RadioGroup;
|
|
10
|
-
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../src/molecules/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAInD,MAAM,UAAU,GAAG,CAAC,EAClB,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,aAAa,GACG,EAAE,EAAE;IACpB,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAA;IAC1C,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAA;IAEnC,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa,IAC7C,QAAQ,CACkB,CAC9B,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { InputHTMLAttributes } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
export interface RadioOptionProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
|
|
4
|
-
/**
|
|
5
|
-
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
|
-
* testing-library, and jest).
|
|
7
|
-
*/
|
|
8
|
-
testId?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Attribute to set aria-label option as required.
|
|
11
|
-
*/
|
|
12
|
-
label: string;
|
|
13
|
-
/**
|
|
14
|
-
* Value to be emitted when radio is clicked.
|
|
15
|
-
*/
|
|
16
|
-
value: string | number;
|
|
17
|
-
}
|
|
18
|
-
declare const RadioOption: React.ForwardRefExoticComponent<RadioOptionProps & React.RefAttributes<HTMLInputElement>>;
|
|
19
|
-
export default RadioOption;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { forwardRef } from 'react';
|
|
2
|
-
import Radio from '../../atoms/Radio';
|
|
3
|
-
import { useRadioGroup } from './useRadioGroup';
|
|
4
|
-
const RadioOption = forwardRef(function RadioOption({ label, value, children, testId = 'fs-radio-group-option', ...otherProps }, ref) {
|
|
5
|
-
const { name, selectedValue, onChange } = useRadioGroup();
|
|
6
|
-
return (React.createElement("label", { "aria-label": label, "data-fs-radio-group-option": true },
|
|
7
|
-
React.createElement(Radio, { "data-fs-radio-option-item": true, ref: ref, name: name, checked: value === selectedValue, onChange: onChange, value: value, testId: testId, ...otherProps }),
|
|
8
|
-
children));
|
|
9
|
-
});
|
|
10
|
-
export default RadioOption;
|
|
11
|
-
//# sourceMappingURL=RadioOption.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioOption.js","sourceRoot":"","sources":["../../../src/molecules/RadioGroup/RadioOption.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,MAAM,mBAAmB,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAmB/C,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,uBAAuB,EAAE,GAAG,UAAU,EAAE,EAC3E,GAAG;IAEH,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CAAA;IAEzD,OAAO,CACL,6CAAmB,KAAK;QACtB,oBAAC,KAAK,uCAEJ,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,KAAK,KAAK,aAAa,EAChC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,KACV,UAAU,GACd;QACD,QAAQ,CACH,CACT,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
|