@faststore/components 3.0.24 → 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/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/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 +2 -2
- package/src/organisms/PaymentMethods/PaymentMethods.tsx +1 -1
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
import { LinkElementType, LinkProps } from '../..';
|
|
4
|
+
export interface SearchAutoCompleteTermProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Props for the link from term component.
|
|
11
|
+
*/
|
|
12
|
+
linkProps?: Partial<LinkProps<LinkElementType>>;
|
|
13
|
+
/**
|
|
14
|
+
* A React component that will be rendered as an icon.
|
|
15
|
+
*/
|
|
16
|
+
icon?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Term researched.
|
|
19
|
+
*/
|
|
20
|
+
term: string;
|
|
21
|
+
/**
|
|
22
|
+
* Suggestion proposed with auto complete.
|
|
23
|
+
*/
|
|
24
|
+
suggestion: string;
|
|
25
|
+
}
|
|
26
|
+
declare const SearchAutoCompleteTerm: ({ testId, suggestion, term, linkProps, icon, }: SearchAutoCompleteTermProps) => React.JSX.Element;
|
|
27
|
+
export default SearchAutoCompleteTerm;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { Fragment } from 'react';
|
|
2
|
+
import { Icon, Link } from '../..';
|
|
3
|
+
function formatSearchTerm(indexSubstring, searchTerm, suggestion) {
|
|
4
|
+
if (indexSubstring === 0) {
|
|
5
|
+
return searchTerm
|
|
6
|
+
.split('')
|
|
7
|
+
.map((char, idx) => idx === 0 && suggestion.indexOf(char.toUpperCase()) === 0
|
|
8
|
+
? char.toUpperCase()
|
|
9
|
+
: char.toLowerCase())
|
|
10
|
+
.join('');
|
|
11
|
+
}
|
|
12
|
+
return searchTerm.toLowerCase();
|
|
13
|
+
}
|
|
14
|
+
const SearchAutoCompleteTerm = ({ testId = 'fs-search-auto-complete-term', suggestion, term, linkProps, icon = React.createElement(Icon, { name: "MagnifyingGlass", width: 18, height: 18 }), }) => {
|
|
15
|
+
const suggestionSubstring = suggestion.toLowerCase().split(term.toLowerCase());
|
|
16
|
+
return (React.createElement("li", { "data-fs-search-auto-complete-item": true, "data-testid": testId },
|
|
17
|
+
React.createElement(Link, { ...linkProps, "data-fs-search-auto-complete-item-link": true, variant: "display" },
|
|
18
|
+
React.createElement("span", { "data-fs-search-auto-complete-item-icon": true }, icon),
|
|
19
|
+
React.createElement("p", null, suggestionSubstring.map((substring, indexSubstring) => (React.createElement(Fragment, { key: [substring, indexSubstring].join() },
|
|
20
|
+
substring.length > 0 && (React.createElement("strong", { "data-fs-search-auto-complete-item-suggestion": true }, indexSubstring === 0
|
|
21
|
+
? substring.charAt(0).toUpperCase() + substring.slice(1)
|
|
22
|
+
: substring)),
|
|
23
|
+
indexSubstring !== suggestionSubstring.length - 1 &&
|
|
24
|
+
formatSearchTerm(indexSubstring, term, suggestion))))))));
|
|
25
|
+
};
|
|
26
|
+
export default SearchAutoCompleteTerm;
|
|
27
|
+
//# sourceMappingURL=SearchAutoCompleteTerm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchAutoCompleteTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchAutoComplete/SearchAutoCompleteTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAE9D,SAAS,gBAAgB,CACvB,cAAsB,EACtB,UAAkB,EAClB,UAAkB;IAElB,IAAI,cAAc,KAAK,CAAC,EAAE;QACxB,OAAO,UAAU;aACd,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CACjB,GAAG,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC;YACvD,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE;YACpB,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CACvB;aACA,IAAI,CAAC,EAAE,CAAC,CAAA;KACZ;IAED,OAAO,UAAU,CAAC,WAAW,EAAE,CAAA;AACjC,CAAC;AA0BD,MAAM,sBAAsB,GAAG,CAAC,EAC9B,MAAM,GAAG,8BAA8B,EACvC,UAAU,EACV,IAAI,EACJ,SAAS,EACT,IAAI,GAAG,oBAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,GACjC,EAAE,EAAE;IAChC,MAAM,mBAAmB,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;IAE9E,OAAO,CACL,sFAAmD,MAAM;QACvD,oBAAC,IAAI,OACC,SAAS,kDAEb,OAAO,EAAC,SAAS;YAEjB,gFAA8C,IAAI,CAAQ;YAC1D,+BACG,mBAAmB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC,CACtD,oBAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,IAAI,EAAE;gBAC9C,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACvB,wFACG,cAAc,KAAK,CAAC;oBACnB,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;oBACxD,CAAC,CAAC,SAAS,CACN,CACV;gBACA,cAAc,KAAK,mBAAmB,CAAC,MAAM,GAAG,CAAC;oBAChD,gBAAgB,CAAC,cAAc,EAAE,IAAI,EAAE,UAAU,CAAC,CAC3C,CACZ,CAAC,CACA,CACC,CACJ,CACN,CAAA;AACH,CAAC,CAAA;AAED,eAAe,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default } from './SearchAutoComplete';
|
|
2
|
+
export type { SearchAutoCompleteProps } from './SearchAutoComplete';
|
|
3
|
+
export { default as SearchAutoCompleteTerm } from './SearchAutoCompleteTerm';
|
|
4
|
+
export type { SearchAutoCompleteTermProps } from './SearchAutoCompleteTerm';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchAutoComplete/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAG9C,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SearchDropdownProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
/**
|
|
5
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
|
+
* testing-library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
declare const SearchDropdown: React.ForwardRefExoticComponent<SearchDropdownProps & {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default SearchDropdown;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { useSearch } from '../../hooks';
|
|
3
|
+
const SearchLoading = () => {
|
|
4
|
+
const { inContext, values } = useSearch();
|
|
5
|
+
return (React.createElement(React.Fragment, null, (inContext && values.isLoading) && React.createElement("p", { "data-fs-search-dropdown-loading-text": true }, "Loading...")));
|
|
6
|
+
};
|
|
7
|
+
const SearchDropdown = forwardRef(function SearchDropdown({ testId = 'fs-search-dropdown', children, ...otherProps }, ref) {
|
|
8
|
+
return (React.createElement("div", { ref: ref, "data-fs-search-dropdown": true, "data-testid": testId, ...otherProps },
|
|
9
|
+
React.createElement("section", null,
|
|
10
|
+
React.createElement(SearchLoading, null),
|
|
11
|
+
children)));
|
|
12
|
+
});
|
|
13
|
+
export default SearchDropdown;
|
|
14
|
+
//# sourceMappingURL=SearchDropdown.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchDropdown.js","sourceRoot":"","sources":["../../../src/molecules/SearchDropdown/SearchDropdown.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAWvC,MAAM,aAAa,GAAG,GAAG,EAAE;IACzB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAA;IAEzC,OAAO,CACL,0CACI,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,IAAI,wFAAsD,CAC1F,CACJ,CAAA;AACH,CAAC,CAAA;AAED,MAAM,cAAc,GAAG,UAAU,CAG/B,SAAS,cAAc,CACvB,EACE,MAAM,GAAG,oBAAoB,EAC7B,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,kDAAuC,MAAM,KAAM,UAAU;QACxE;YACE,oBAAC,aAAa,OAAE;YACf,QAAQ,CACD,CACN,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchDropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface SearchHistoryProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
5
|
+
*/
|
|
6
|
+
testId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Title attribute for the <section> tag rendered by this component.
|
|
9
|
+
*/
|
|
10
|
+
title: string;
|
|
11
|
+
/**
|
|
12
|
+
* Defines the text displayed in clear history button.
|
|
13
|
+
*/
|
|
14
|
+
clearLabel?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Event handler for click on clear history button.
|
|
17
|
+
*/
|
|
18
|
+
onClear?: () => void;
|
|
19
|
+
}
|
|
20
|
+
declare const SearchHistory: ({ testId, title, clearLabel, onClear, children, ...otherProps }: SearchHistoryProps) => React.JSX.Element | null;
|
|
21
|
+
export default SearchHistory;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { List, Button, useSearch } from '../..';
|
|
3
|
+
const SearchHistory = ({ testId = 'fs-search-history', title = 'History', clearLabel = 'Clear History', onClear, children, ...otherProps }) => {
|
|
4
|
+
const { inContext, values } = useSearch();
|
|
5
|
+
if (inContext && (values.term.length !== 0 || values.isLoading)) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (React.createElement("section", { "data-testid": testId, "data-fs-search-history": true, ...otherProps },
|
|
9
|
+
React.createElement("header", { "data-fs-search-history-header": true },
|
|
10
|
+
React.createElement("p", { "data-fs-search-history-title": true }, title),
|
|
11
|
+
React.createElement(Button, { variant: "tertiary", onClick: onClear, size: "small" }, clearLabel)),
|
|
12
|
+
React.createElement(List, { as: "ol" }, children)));
|
|
13
|
+
};
|
|
14
|
+
export default SearchHistory;
|
|
15
|
+
//# sourceMappingURL=SearchHistory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchHistory.js","sourceRoot":"","sources":["../../../src/molecules/SearchHistory/SearchHistory.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAqB/C,MAAM,aAAa,GAAG,CAAC,EACrB,MAAM,GAAG,mBAAmB,EAC5B,KAAK,GAAG,SAAS,EACjB,UAAU,GAAG,eAAe,EAC5B,OAAO,EACP,QAAQ,EACR,GAAG,UAAU,EACM,EAAE,EAAE;IAEvB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAA;IAEzC,IAAI,SAAS,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE;QAC/D,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,gDAAsB,MAAM,qCAA6B,UAAU;QACjE;YACE,mEAAiC,KAAK,CAAK;YAC3C,oBAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAC,OAAO,IACtD,UAAU,CACJ,CACF;QACT,oBAAC,IAAI,IAAC,EAAE,EAAC,IAAI,IAAE,QAAQ,CAAQ,CACvB,CACX,CAAA;AACH,CAAC,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
import { LinkElementType, LinkProps } from '../..';
|
|
4
|
+
export interface SearchHistoryTermProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Defines the text displayed in history term item.
|
|
11
|
+
*/
|
|
12
|
+
value: string;
|
|
13
|
+
/**
|
|
14
|
+
* Props for the link from term component.
|
|
15
|
+
*/
|
|
16
|
+
linkProps?: Partial<LinkProps<LinkElementType>>;
|
|
17
|
+
/**
|
|
18
|
+
* A React component that will be rendered as an icon.
|
|
19
|
+
*/
|
|
20
|
+
icon?: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare const SearchHistoryTerm: ({ testId, value, linkProps, icon, }: SearchHistoryTermProps) => React.JSX.Element;
|
|
23
|
+
export default SearchHistoryTerm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Icon, Link } from '../..';
|
|
3
|
+
const SearchHistoryTerm = ({ testId = 'fs-search-history-term', value, linkProps, icon = React.createElement(Icon, { name: "ClockClockwise", width: 18, height: 18 }), }) => {
|
|
4
|
+
return (React.createElement("li", { "data-fs-search-history-item": true, "data-testid": testId },
|
|
5
|
+
React.createElement(Link, { ...linkProps, "data-fs-search-history-item-link": true, variant: "display" },
|
|
6
|
+
React.createElement("span", { "data-fs-search-history-item-icon": true }, icon),
|
|
7
|
+
React.createElement("span", null, value))));
|
|
8
|
+
};
|
|
9
|
+
export default SearchHistoryTerm;
|
|
10
|
+
//# sourceMappingURL=SearchHistoryTerm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchHistoryTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchHistory/SearchHistoryTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAqB9D,MAAM,iBAAiB,GAAG,CAAC,EACzB,MAAM,GAAG,wBAAwB,EACjC,KAAK,EACL,SAAS,EACT,IAAI,GAAG,oBAAC,IAAI,IAAC,IAAI,EAAC,gBAAgB,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,GACrC,EAAE,EAAE;IAC3B,OAAO,CACL,gFAA6C,MAAM;QACjD,oBAAC,IAAI,OAAK,SAAS,4CAAmC,OAAO,EAAC,SAAS;YACrE,0EAAwC,IAAI,CAAQ;YACpD,kCAAO,KAAK,CAAQ,CACf,CACJ,CACN,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchHistory/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAGzC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { AriaAttributes, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'onSubmit'>;
|
|
4
|
+
type ButtonProps = {
|
|
5
|
+
onClick?: () => void;
|
|
6
|
+
testId?: string;
|
|
7
|
+
};
|
|
8
|
+
export interface SearchInputFieldProps extends InputProps {
|
|
9
|
+
/**
|
|
10
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
11
|
+
*/
|
|
12
|
+
testId?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Props for the submit button inside the input.
|
|
15
|
+
*/
|
|
16
|
+
buttonProps?: ButtonProps;
|
|
17
|
+
/**
|
|
18
|
+
* A React component that will be rendered as an icon (submit button).
|
|
19
|
+
* @default <Icon name="MagnifyingGlass" />
|
|
20
|
+
*/
|
|
21
|
+
buttonIcon?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Custom aria-label for input and button.
|
|
24
|
+
*/
|
|
25
|
+
'aria-label'?: AriaAttributes['aria-label'];
|
|
26
|
+
/**
|
|
27
|
+
* Callback function when submitted.
|
|
28
|
+
*/
|
|
29
|
+
onSubmit: (value: string) => void;
|
|
30
|
+
}
|
|
31
|
+
export interface SearchInputFieldRef {
|
|
32
|
+
inputRef?: HTMLInputElement | null;
|
|
33
|
+
formRef?: HTMLFormElement | null;
|
|
34
|
+
}
|
|
35
|
+
declare const SearchInputField: React.ForwardRefExoticComponent<SearchInputFieldProps & React.RefAttributes<SearchInputFieldRef | null>>;
|
|
36
|
+
export default SearchInputField;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { forwardRef, useImperativeHandle, useRef } from 'react';
|
|
2
|
+
import { Icon, IconButton, Input } from '../..';
|
|
3
|
+
const SearchInputField = forwardRef(function SearchInputField({ onSubmit, buttonIcon, 'aria-label': ariaLabel = 'search', testId = 'fs-search-input', buttonProps, ...otherProps }, ref) {
|
|
4
|
+
const inputRef = useRef(null);
|
|
5
|
+
const formRef = useRef(null);
|
|
6
|
+
const handleSubmit = (event) => {
|
|
7
|
+
event.preventDefault();
|
|
8
|
+
if (inputRef.current?.value !== '') {
|
|
9
|
+
onSubmit(inputRef.current.value);
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
useImperativeHandle(ref, () => ({
|
|
13
|
+
inputRef: inputRef.current,
|
|
14
|
+
formRef: formRef.current,
|
|
15
|
+
}));
|
|
16
|
+
return (React.createElement("form", { ref: formRef, "data-fs-search-input-field": true, "data-testid": testId, onSubmit: handleSubmit, role: "search" },
|
|
17
|
+
React.createElement(Input, { ref: inputRef, "aria-label": ariaLabel, "data-fs-search-input-field-input": true, ...otherProps }),
|
|
18
|
+
React.createElement(IconButton, { type: "submit", "aria-label": "Submit Search", icon: buttonIcon ?? React.createElement(Icon, { name: "MagnifyingGlass" }), size: "small", ...buttonProps })));
|
|
19
|
+
});
|
|
20
|
+
export default SearchInputField;
|
|
21
|
+
//# sourceMappingURL=SearchInputField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInputField.js","sourceRoot":"","sources":["../../../src/molecules/SearchInputField/SearchInputField.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,OAAO,CAAA;AAqC/C,MAAM,gBAAgB,GAAG,UAAU,CAGjC,SAAS,gBAAgB,CACzB,EACE,QAAQ,EACR,UAAU,EACV,YAAY,EAAE,SAAS,GAAG,QAAQ,EAClC,MAAM,GAAG,iBAAiB,EAC1B,WAAW,EACX,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IAE7C,MAAM,YAAY,GAAG,CAAC,KAAgB,EAAE,EAAE;QACxC,KAAK,CAAC,cAAc,EAAE,CAAA;QAEtB,IAAI,QAAQ,CAAC,OAAO,EAAE,KAAK,KAAK,EAAE,EAAE;YAClC,QAAQ,CAAC,QAAQ,CAAC,OAAQ,CAAC,KAAK,CAAC,CAAA;SAClC;IACH,CAAC,CAAA;IAED,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,QAAQ,EAAE,QAAQ,CAAC,OAAO;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC,CAAA;IAEH,OAAO,CACL,8BACE,GAAG,EAAE,OAAO,qDAEC,MAAM,EACnB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAC,QAAQ;QAEb,oBAAC,KAAK,IACJ,GAAG,EAAE,QAAQ,gBACD,SAAS,+CAEjB,UAAU,GACd;QACF,oBAAC,UAAU,IACT,IAAI,EAAC,QAAQ,gBACF,eAAe,EAC1B,IAAI,EAAE,UAAU,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,GAAG,EACnD,IAAI,EAAC,OAAO,KACR,WAAW,GACf,CACG,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,gBAAgB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchInputField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { LinkElementType, LinkProps } from '../..';
|
|
4
|
+
export interface SearchProductItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
7
|
+
* testing-library, and jest).
|
|
8
|
+
*/
|
|
9
|
+
testId?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Props for the link from SearchProduct component.
|
|
12
|
+
*/
|
|
13
|
+
linkProps?: Partial<LinkProps<LinkElementType>>;
|
|
14
|
+
}
|
|
15
|
+
declare const SearchProductItem: React.ForwardRefExoticComponent<SearchProductItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
16
|
+
export default SearchProductItem;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Link } from '../..';
|
|
3
|
+
const SearchProductItem = forwardRef(function ProductItem({ testId = 'fs-search-product-item', linkProps, children }, ref) {
|
|
4
|
+
return (React.createElement("li", { ref: ref, "data-fs-search-product-item": true, "data-testid": testId },
|
|
5
|
+
React.createElement(Link, { ...linkProps, "data-fs-search-product-item-link": true, variant: "display" }, children)));
|
|
6
|
+
});
|
|
7
|
+
export default SearchProductItem;
|
|
8
|
+
//# sourceMappingURL=SearchProductItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchProductItem.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProductItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAcxD,MAAM,iBAAiB,GAAG,UAAU,CAClC,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,wBAAwB,EAAE,SAAS,EAAE,QAAQ,EAAE,EAC1D,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,sDAA2C,MAAM;QAC3D,oBAAC,IAAI,OAAK,SAAS,4CAAmC,OAAO,EAAC,SAAS,IACpE,QAAQ,CACJ,CACJ,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PriceDefinition } from '../../typings/PriceDefinition';
|
|
3
|
+
export interface SearchProductItemContentProps {
|
|
4
|
+
/**
|
|
5
|
+
* Specifies the product's title.
|
|
6
|
+
*/
|
|
7
|
+
title: string;
|
|
8
|
+
/**
|
|
9
|
+
* Specifies product's prices.
|
|
10
|
+
*/
|
|
11
|
+
price: PriceDefinition;
|
|
12
|
+
}
|
|
13
|
+
declare const SearchProductItemContent: React.ForwardRefExoticComponent<SearchProductItemContentProps & React.RefAttributes<HTMLElement>>;
|
|
14
|
+
export default SearchProductItemContent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { ProductPrice } from '../..';
|
|
3
|
+
const SearchProductItemContent = forwardRef(function SearchProductItemContent({ price, title, ...otherProps }, ref) {
|
|
4
|
+
return (React.createElement("section", { ref: ref, "data-fs-search-product-item-content": true, ...otherProps },
|
|
5
|
+
React.createElement("p", { "data-fs-search-product-item-title": true }, title),
|
|
6
|
+
price.value !== 0 && (React.createElement(ProductPrice, { "data-fs-search-product-item-prices": true, listPrice: price.listPrice, value: price.value, formatter: price.formatter }))));
|
|
7
|
+
});
|
|
8
|
+
export default SearchProductItemContent;
|
|
9
|
+
//# sourceMappingURL=SearchProductItemContent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchProductItemContent.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProductItemContent.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAepC,MAAM,wBAAwB,GAAG,UAAU,CAGzC,SAAS,wBAAwB,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,UAAU,EAAE,EAAE,GAAG;IACtE,OAAO,CACL,iCAAS,GAAG,EAAE,GAAG,kDAA0C,UAAU;QACnE,wEAAsC,KAAK,CAAK;QAE/C,KAAK,CAAC,KAAK,KAAK,CAAC,IAAI,CACpB,oBAAC,YAAY,gDAEX,SAAS,EAAE,KAAK,CAAC,SAAS,EAC1B,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,SAAS,EAAE,KAAK,CAAC,SAAS,GAC1B,CACH,CACO,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface SearchProductItemImageProps 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 SearchProductItemImage: React.ForwardRefExoticComponent<SearchProductItemImageProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default SearchProductItemImage;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
const SearchProductItemImage = forwardRef(function SearchProductItemImage({ testId = 'fs-search-product-item-image', children, ...otherProps }, ref) {
|
|
3
|
+
return (React.createElement("div", { ref: ref, "data-fs-search-product-item-image": true, "data-testid": testId, ...otherProps }, children));
|
|
4
|
+
});
|
|
5
|
+
export default SearchProductItemImage;
|
|
6
|
+
//# sourceMappingURL=SearchProductItemImage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchProductItemImage.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProductItemImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,sBAAsB,GAAG,UAAU,CAGvC,SAAS,sBAAsB,CAC/B,EAAE,MAAM,GAAG,8BAA8B,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACpE,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,4DAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { HTMLAttributes } from 'react';
|
|
2
|
+
export interface SearchProductsProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
|
+
/**
|
|
4
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
5
|
+
*/
|
|
6
|
+
testId?: string;
|
|
7
|
+
/**
|
|
8
|
+
* Title attribute for the <section> tag rendered by this component.
|
|
9
|
+
*/
|
|
10
|
+
title?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const SearchProductsProps: ({ testId, title, children, ...otherProps }: SearchProductsProps) => React.JSX.Element | null;
|
|
13
|
+
export default SearchProductsProps;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { List, useSearch } from '../..';
|
|
3
|
+
const SearchProductsProps = ({ testId = 'fs-search-products', title = 'Suggested Products', children, ...otherProps }) => {
|
|
4
|
+
const { inContext, values } = useSearch();
|
|
5
|
+
if (inContext && (values.products.length <= 0)) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
return (React.createElement("section", { "data-testid": testId, "data-fs-search-products": true, ...otherProps },
|
|
9
|
+
React.createElement("header", { "data-fs-search-products-header": true },
|
|
10
|
+
React.createElement("p", { "data-fs-search-products-title": true }, title)),
|
|
11
|
+
React.createElement(List, { as: "ol" }, children)));
|
|
12
|
+
};
|
|
13
|
+
export default SearchProductsProps;
|
|
14
|
+
//# sourceMappingURL=SearchProducts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchProducts.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/SearchProducts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAavC,MAAM,mBAAmB,GAAG,CAAC,EAC3B,MAAM,GAAG,oBAAoB,EAC7B,KAAK,GAAG,oBAAoB,EAC5B,QAAQ,EACR,GAAG,UAAU,EACO,EAAE,EAAE;IACxB,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAA;IAEzC,IAAI,SAAS,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC,EAAE;QAC9C,OAAO,IAAI,CAAA;KACZ;IACD,OAAO,CACL,gDAAsB,MAAM,sCAA8B,UAAU;QAClE;YACE,oEAAkC,KAAK,CAAK,CACrC;QACT,oBAAC,IAAI,IAAC,EAAE,EAAC,IAAI,IAAE,QAAQ,CAAQ,CACvB,CACX,CAAA;AACH,CAAC,CAAA;AAED,eAAe,mBAAmB,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default } from './SearchProducts';
|
|
2
|
+
export type { SearchProductsProps } from './SearchProducts';
|
|
3
|
+
export { default as SearchProductItem } from './SearchProductItem';
|
|
4
|
+
export type { SearchProductItemProps } from './SearchProductItem';
|
|
5
|
+
export { default as SearchProductItemImage } from './SearchProductItemImage';
|
|
6
|
+
export type { SearchProductItemImageProps } from './SearchProductItemImage';
|
|
7
|
+
export { default as SearchProductItemContent } from './SearchProductItemContent';
|
|
8
|
+
export type { SearchProductItemContentProps } from './SearchProductItemContent';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default } from './SearchProducts';
|
|
2
|
+
export { default as SearchProductItem } from './SearchProductItem';
|
|
3
|
+
export { default as SearchProductItemImage } from './SearchProductItemImage';
|
|
4
|
+
export { default as SearchProductItemContent } from './SearchProductItemContent';
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchProducts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAG1C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AAG5E,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { PropsWithChildren } from 'react';
|
|
3
|
+
export interface SearchProviderContextValue {
|
|
4
|
+
/**
|
|
5
|
+
* Term to be researched.
|
|
6
|
+
*/
|
|
7
|
+
term: string;
|
|
8
|
+
/**
|
|
9
|
+
* Enables a loading state.
|
|
10
|
+
*/
|
|
11
|
+
isLoading: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* List of Suggestion terms.
|
|
14
|
+
*/
|
|
15
|
+
terms: Array<{
|
|
16
|
+
value: string;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* List of Suggested products.
|
|
20
|
+
*/
|
|
21
|
+
products: {}[];
|
|
22
|
+
/**
|
|
23
|
+
* Callback function when a search term is selected.
|
|
24
|
+
*/
|
|
25
|
+
onSearchSelection?: (term: string, path: string) => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const SearchContext: React.Context<SearchProviderContextValue | null>;
|
|
28
|
+
declare function SearchProvider({ onSearchSelection, children, term, terms, products, isLoading, }: PropsWithChildren<SearchProviderContextValue>): React.JSX.Element;
|
|
29
|
+
export default SearchProvider;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { createContext } from 'react';
|
|
3
|
+
export const SearchContext = createContext(null);
|
|
4
|
+
function SearchProvider({ onSearchSelection, children, term, terms, products, isLoading, }) {
|
|
5
|
+
return (React.createElement(SearchContext.Provider, { value: { onSearchSelection, term, terms, products, isLoading } }, children));
|
|
6
|
+
}
|
|
7
|
+
export default SearchProvider;
|
|
8
|
+
//# sourceMappingURL=SearchProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchProvider.js","sourceRoot":"","sources":["../../../src/molecules/SearchProvider/SearchProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAyBrC,MAAM,CAAC,MAAM,aAAa,GAAG,aAAa,CACxC,IAAI,CACL,CAAA;AAED,SAAS,cAAc,CAAC,EACtB,iBAAiB,EACjB,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,SAAS,GACqC;IAC9C,OAAO,CACL,oBAAC,aAAa,CAAC,QAAQ,IACrB,KAAK,EAAE,EAAE,iBAAiB,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,IAE7D,QAAQ,CACc,CAC1B,CAAA;AACH,CAAC;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchProvider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
3
|
+
export interface SearchTopProps 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
|
+
* Title attribute for the <section> tag rendered by this component.
|
|
10
|
+
*/
|
|
11
|
+
title: string;
|
|
12
|
+
}
|
|
13
|
+
declare const SearchTop: React.ForwardRefExoticComponent<SearchTopProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default SearchTop;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { List, useSearch } from '../../';
|
|
4
|
+
const SearchTop = forwardRef(function SearchTop({ testId = 'fs-top-search', title = 'Top Search', children, ...otherProps }, ref) {
|
|
5
|
+
const { inContext, values } = useSearch();
|
|
6
|
+
if (inContext && (values.term.length !== 0 || values.isLoading)) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
return (React.createElement("section", { ref: ref, "data-testid": testId, "data-fs-search-top": true, ...otherProps },
|
|
10
|
+
React.createElement("header", { "data-fs-search-top-header": true },
|
|
11
|
+
React.createElement("p", { "data-fs-search-top-title": true }, title)),
|
|
12
|
+
React.createElement(List, { as: "ol" }, children)));
|
|
13
|
+
});
|
|
14
|
+
export default SearchTop;
|
|
15
|
+
//# sourceMappingURL=SearchTop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchTop.js","sourceRoot":"","sources":["../../../src/molecules/SearchTop/SearchTop.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGlC,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA;AAaxC,MAAM,SAAS,GAAG,UAAU,CAAiC,SAAS,SAAS,CAC7E,EACE,MAAM,GAAG,eAAe,EACxB,KAAK,GAAG,YAAY,EACpB,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAGH,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,CAAA;IAEzC,IAAI,SAAS,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,MAAM,CAAC,SAAS,CAAC,EAAE;QAC/D,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,iCAAS,GAAG,EAAE,GAAG,iBAAe,MAAM,iCAAyB,UAAU;QACrE;YACE,+DAA6B,KAAK,CAAK,CAChC;QACT,oBAAC,IAAI,IAAC,EAAE,EAAC,IAAI,IAAE,QAAQ,CAAQ,CACzB,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { LinkElementType, LinkProps } from '../../';
|
|
4
|
+
export interface SearchTopTermProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
/**
|
|
6
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Search term to be shown.
|
|
11
|
+
*/
|
|
12
|
+
value: string;
|
|
13
|
+
/**
|
|
14
|
+
* Props for the `<Link>` rendered by this component.
|
|
15
|
+
*/
|
|
16
|
+
linkProps?: Partial<LinkProps<LinkElementType>>;
|
|
17
|
+
/**
|
|
18
|
+
* Current term's position in a list of search terms.
|
|
19
|
+
*/
|
|
20
|
+
index: number;
|
|
21
|
+
}
|
|
22
|
+
declare const SearchTopTerm: React.ForwardRefExoticComponent<SearchTopTermProps & React.RefAttributes<HTMLLIElement>>;
|
|
23
|
+
export default SearchTopTerm;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { Badge, Link } from '../../';
|
|
3
|
+
const SearchTopTerm = forwardRef(function SearchTopTerm({ testId = 'fs-top-search-term', value, linkProps, index }, ref) {
|
|
4
|
+
return (React.createElement("li", { ref: ref, "data-fs-search-top-item": true, "data-testid": testId },
|
|
5
|
+
React.createElement(Link, { ...linkProps, "data-fs-search-top-item-link": true, variant: "display" },
|
|
6
|
+
React.createElement(Badge, { "data-fs-search-top-item-badge": true, variant: "info" }, index + 1),
|
|
7
|
+
value)));
|
|
8
|
+
});
|
|
9
|
+
export default SearchTopTerm;
|
|
10
|
+
//# sourceMappingURL=SearchTopTerm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchTopTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchTop/SearchTopTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,IAAI,EAA8B,MAAM,QAAQ,CAAA;AAqBhE,MAAM,aAAa,GAAG,UAAU,CAC9B,SAAS,aAAa,CACpB,EAAE,MAAM,GAAG,oBAAoB,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAC1D,GAAG;IAEH,OAAO,CACL,4BAAI,GAAG,EAAE,GAAG,kDAAuC,MAAM;QACvD,oBAAC,IAAI,OAAK,SAAS,wCAA+B,OAAO,EAAC,SAAS;YACjE,oBAAC,KAAK,2CAA+B,OAAO,EAAC,MAAM,IAChD,KAAK,GAAG,CAAC,CACJ;YACP,KAAK,CACD,CACJ,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/SearchTop/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGrC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SelectProps } from '../../atoms/Select';
|
|
3
|
+
export interface SelectFieldProps extends SelectProps {
|
|
4
|
+
/**
|
|
5
|
+
* Defines the text displayed in the label right next to the Select.
|
|
6
|
+
*/
|
|
7
|
+
label: string;
|
|
8
|
+
}
|
|
9
|
+
declare const SelectField: React.ForwardRefExoticComponent<SelectFieldProps & {
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export default SelectField;
|