@faststore/components 2.2.0-alpha.9 → 2.2.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/assets/ArrowElbowDownRight.d.ts +4 -0
- package/dist/assets/ArrowElbowDownRight.js +8 -0
- package/dist/assets/ArrowElbowDownRight.js.map +1 -0
- package/dist/assets/ArrowLeft.d.ts +4 -0
- package/dist/assets/ArrowLeft.js +6 -0
- package/dist/assets/ArrowLeft.js.map +1 -0
- package/dist/assets/ArrowRight.d.ts +3 -0
- package/dist/assets/ArrowRight.js +8 -0
- package/dist/assets/ArrowRight.js.map +1 -0
- package/dist/assets/ArrowSquareOut.d.ts +3 -0
- package/dist/assets/ArrowSquareOut.js +6 -0
- package/dist/assets/ArrowSquareOut.js.map +1 -0
- package/dist/assets/BellRinging.d.ts +4 -0
- package/dist/assets/BellRinging.js +6 -0
- package/dist/assets/BellRinging.js.map +1 -0
- package/dist/assets/CaretDown.d.ts +3 -0
- package/dist/assets/CaretDown.js +7 -0
- package/dist/assets/CaretDown.js.map +1 -0
- package/dist/assets/CaretRight.d.ts +3 -0
- package/dist/assets/CaretRight.js +7 -0
- package/dist/assets/CaretRight.js.map +1 -0
- package/dist/assets/Checked.d.ts +3 -0
- package/dist/assets/Checked.js +6 -0
- package/dist/assets/Checked.js.map +1 -0
- package/dist/assets/CircleWavyCheck.d.ts +4 -0
- package/dist/assets/CircleWavyCheck.js +8 -0
- package/dist/assets/CircleWavyCheck.js.map +1 -0
- package/dist/assets/CircleWavyWarning.d.ts +4 -0
- package/dist/assets/CircleWavyWarning.js +6 -0
- package/dist/assets/CircleWavyWarning.js.map +1 -0
- package/dist/assets/ClockClockwise.d.ts +3 -0
- package/dist/assets/ClockClockwise.js +10 -0
- package/dist/assets/ClockClockwise.js.map +1 -0
- package/dist/assets/DotsThree.d.ts +4 -0
- package/dist/assets/DotsThree.js +9 -0
- package/dist/assets/DotsThree.js.map +1 -0
- package/dist/assets/FadersHorizontal.d.ts +3 -0
- package/dist/assets/FadersHorizontal.js +12 -0
- package/dist/assets/FadersHorizontal.js.map +1 -0
- package/dist/assets/Heart.d.ts +3 -0
- package/dist/assets/Heart.js +7 -0
- package/dist/assets/Heart.js.map +1 -0
- package/dist/assets/House.d.ts +4 -0
- package/dist/assets/House.js +7 -0
- package/dist/assets/House.js.map +1 -0
- package/dist/assets/IconProps.d.ts +3 -0
- package/dist/assets/IconProps.js +2 -0
- package/dist/assets/IconProps.js.map +1 -0
- package/dist/assets/MagnifyingGlass.d.ts +4 -0
- package/dist/assets/MagnifyingGlass.js +7 -0
- package/dist/assets/MagnifyingGlass.js.map +1 -0
- package/dist/assets/MapPin.d.ts +3 -0
- package/dist/assets/MapPin.js +8 -0
- package/dist/assets/MapPin.js.map +1 -0
- package/dist/assets/Minus.d.ts +3 -0
- package/dist/assets/Minus.js +7 -0
- package/dist/assets/Minus.js.map +1 -0
- package/dist/assets/MinusCircle.d.ts +3 -0
- package/dist/assets/MinusCircle.js +8 -0
- package/dist/assets/MinusCircle.js.map +1 -0
- package/dist/assets/PaymentFlags/ApplePay.d.ts +3 -0
- package/dist/assets/PaymentFlags/ApplePay.js +7 -0
- package/dist/assets/PaymentFlags/ApplePay.js.map +1 -0
- package/dist/assets/PaymentFlags/Diners.d.ts +3 -0
- package/dist/assets/PaymentFlags/Diners.js +8 -0
- package/dist/assets/PaymentFlags/Diners.js.map +1 -0
- package/dist/assets/PaymentFlags/EloCard.d.ts +3 -0
- package/dist/assets/PaymentFlags/EloCard.js +11 -0
- package/dist/assets/PaymentFlags/EloCard.js.map +1 -0
- package/dist/assets/PaymentFlags/GooglePay.d.ts +3 -0
- package/dist/assets/PaymentFlags/GooglePay.js +11 -0
- package/dist/assets/PaymentFlags/GooglePay.js.map +1 -0
- package/dist/assets/PaymentFlags/Mastercard.d.ts +3 -0
- package/dist/assets/PaymentFlags/Mastercard.js +9 -0
- package/dist/assets/PaymentFlags/Mastercard.js.map +1 -0
- package/dist/assets/PaymentFlags/PayPal.d.ts +3 -0
- package/dist/assets/PaymentFlags/PayPal.js +10 -0
- package/dist/assets/PaymentFlags/PayPal.js.map +1 -0
- package/dist/assets/PaymentFlags/Stripe.d.ts +3 -0
- package/dist/assets/PaymentFlags/Stripe.js +7 -0
- package/dist/assets/PaymentFlags/Stripe.js.map +1 -0
- package/dist/assets/PaymentFlags/Visa.d.ts +3 -0
- package/dist/assets/PaymentFlags/Visa.js +7 -0
- package/dist/assets/PaymentFlags/Visa.js.map +1 -0
- package/dist/assets/PaymentFlags/index.d.ts +8 -0
- package/dist/assets/PaymentFlags/index.js +9 -0
- package/dist/assets/PaymentFlags/index.js.map +1 -0
- package/dist/assets/Plus.d.ts +3 -0
- package/dist/assets/Plus.js +8 -0
- package/dist/assets/Plus.js.map +1 -0
- package/dist/assets/PlusCircle.d.ts +3 -0
- package/dist/assets/PlusCircle.js +9 -0
- package/dist/assets/PlusCircle.js.map +1 -0
- package/dist/assets/Ruler.d.ts +3 -0
- package/dist/assets/Ruler.js +10 -0
- package/dist/assets/Ruler.js.map +1 -0
- package/dist/assets/SealCheck.d.ts +4 -0
- package/dist/assets/SealCheck.js +6 -0
- package/dist/assets/SealCheck.js.map +1 -0
- package/dist/assets/SealWarning.d.ts +4 -0
- package/dist/assets/SealWarning.js +6 -0
- package/dist/assets/SealWarning.js.map +1 -0
- package/dist/assets/ShoppingCart.d.ts +3 -0
- package/dist/assets/ShoppingCart.js +10 -0
- package/dist/assets/ShoppingCart.js.map +1 -0
- package/dist/assets/Star.d.ts +3 -0
- package/dist/assets/Star.js +7 -0
- package/dist/assets/Star.js.map +1 -0
- package/dist/assets/TagIcon.d.ts +3 -0
- package/dist/assets/TagIcon.js +8 -0
- package/dist/assets/TagIcon.js.map +1 -0
- package/dist/assets/X.d.ts +3 -0
- package/dist/assets/X.js +8 -0
- package/dist/assets/X.js.map +1 -0
- package/dist/assets/XCircle.d.ts +3 -0
- package/dist/assets/XCircle.js +9 -0
- package/dist/assets/XCircle.js.map +1 -0
- package/dist/assets/index.d.ts +25 -0
- package/dist/assets/index.js +27 -0
- package/dist/assets/index.js.map +1 -0
- 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/Iconn.d.ts +18 -0
- package/dist/atoms/Icon/Iconn.js +13 -0
- package/dist/atoms/Icon/Iconn.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 +13 -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/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/hooks/UIProvider.d.ts +33 -0
- package/dist/hooks/UIProvider.js +73 -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 +137 -0
- package/dist/index.js +76 -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/HomeLink.d.ts +3 -0
- package/dist/molecules/Breadcrumb/HomeLink.js +6 -0
- package/dist/molecules/Breadcrumb/HomeLink.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 +59 -0
- package/dist/molecules/Carousel/Carousel.js +184 -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 +11 -0
- package/dist/molecules/Carousel/CarouselItem.js +18 -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 +14 -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 +17 -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 +10 -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 +59 -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 +5 -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 +10 -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/NavbarSlider/NavbarSlider.d.ts +19 -0
- package/dist/molecules/NavbarSlider/NavbarSlider.js +7 -0
- package/dist/molecules/NavbarSlider/NavbarSlider.js.map +1 -0
- package/dist/molecules/NavbarSlider/NavbarSliderContent.d.ts +10 -0
- package/dist/molecules/NavbarSlider/NavbarSliderContent.js +6 -0
- package/dist/molecules/NavbarSlider/NavbarSliderContent.js.map +1 -0
- package/dist/molecules/NavbarSlider/NavbarSliderFooter.d.ts +10 -0
- package/dist/molecules/NavbarSlider/NavbarSliderFooter.js +6 -0
- package/dist/molecules/NavbarSlider/NavbarSliderFooter.js.map +1 -0
- package/dist/molecules/NavbarSlider/NavbarSliderHeader.d.ts +10 -0
- package/dist/molecules/NavbarSlider/NavbarSliderHeader.js +7 -0
- package/dist/molecules/NavbarSlider/NavbarSliderHeader.js.map +1 -0
- package/dist/molecules/NavbarSlider/index.d.ts +8 -0
- package/dist/molecules/NavbarSlider/index.js +5 -0
- package/dist/molecules/NavbarSlider/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/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 +5 -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/SearchProductCard/SearchProductCard.d.ts +20 -0
- package/dist/molecules/SearchProductCard/SearchProductCard.js +8 -0
- package/dist/molecules/SearchProductCard/SearchProductCard.js.map +1 -0
- package/dist/molecules/SearchProductCard/SearchProductCardContent.d.ts +20 -0
- package/dist/molecules/SearchProductCard/SearchProductCardContent.js +11 -0
- package/dist/molecules/SearchProductCard/SearchProductCardContent.js.map +1 -0
- package/dist/molecules/SearchProductCard/SearchProductCardImage.d.ts +10 -0
- package/dist/molecules/SearchProductCard/SearchProductCardImage.js +6 -0
- package/dist/molecules/SearchProductCard/SearchProductCardImage.js.map +1 -0
- package/dist/molecules/SearchProductCard/index.d.ts +6 -0
- package/dist/molecules/SearchProductCard/index.js +4 -0
- package/dist/molecules/SearchProductCard/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 +11 -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 +26 -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 +44 -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 +27 -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/FacetBoolean.d.ts +5 -0
- package/dist/organisms/Filter/FacetBoolean.js +7 -0
- package/dist/organisms/Filter/FacetBoolean.js.map +1 -0
- package/dist/organisms/Filter/FacetBooleanItem.d.ts +38 -0
- package/dist/organisms/Filter/FacetBooleanItem.js +12 -0
- package/dist/organisms/Filter/FacetBooleanItem.js.map +1 -0
- package/dist/organisms/Filter/FacetRange.d.ts +32 -0
- package/dist/organisms/Filter/FacetRange.js +11 -0
- package/dist/organisms/Filter/FacetRange.js.map +1 -0
- package/dist/organisms/Filter/Facets.d.ts +21 -0
- package/dist/organisms/Filter/Facets.js +9 -0
- package/dist/organisms/Filter/Facets.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 +35 -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 +30 -0
- package/dist/organisms/Hero/HeroHeader.js +15 -0
- package/dist/organisms/Hero/HeroHeader.js.map +1 -0
- package/dist/organisms/Hero/HeroHeading.d.ts +30 -0
- package/dist/organisms/Hero/HeroHeading.js +16 -0
- package/dist/organisms/Hero/HeroHeading.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 +31 -0
- package/dist/organisms/ImageGallery/ImageGallerySelector.js +46 -0
- package/dist/organisms/ImageGallery/ImageGallerySelector.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/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 +79 -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 +38 -0
- package/dist/organisms/SlideOver/SlideOver.js +7 -0
- package/dist/organisms/SlideOver/SlideOver.js.map +1 -0
- package/dist/organisms/SlideOver/SlideOverHeader.d.ts +19 -0
- package/dist/organisms/SlideOver/SlideOverHeader.js +9 -0
- package/dist/organisms/SlideOver/SlideOverHeader.js.map +1 -0
- package/dist/organisms/SlideOver/index.d.ts +4 -0
- package/dist/organisms/SlideOver/index.js +3 -0
- package/dist/organisms/SlideOver/index.js.map +1 -0
- package/dist/typings/PolymorphicGenerics.d.ts +28 -0
- package/dist/typings/PolymorphicGenerics.js +8 -0
- package/dist/typings/PolymorphicGenerics.js.map +1 -0
- package/dist/typings/PriceDefinition.d.ts +6 -0
- package/dist/typings/PriceDefinition.js +2 -0
- package/dist/typings/PriceDefinition.js.map +1 -0
- package/dist/typings/index.d.ts +2 -0
- package/dist/typings/index.js +2 -0
- package/dist/typings/index.js.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useSlider.js","sourceRoot":"","sources":["../../src/hooks/useSlider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAyD9C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,KAAa,EAAE,EAAE,CACzD,CAAC,OAAO,GAAG,CAAC,CAAC,GAAG,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,OAAe,EAAE,KAAa,EAAE,EAAE,CAC7D,CAAC,KAAK,GAAG,CAAC,CAAC,KAAK,GAAG,OAAO,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,KAAK,CAAA;AAEnD,SAAS,OAAO,CAAC,KAAkB,EAAE,MAAc;IACjD,QAAQ,MAAM,CAAC,IAAI,EAAE;QACnB,KAAK,WAAW,CAAC,CAAC;YAChB,qEAAqE;YACrE,yEAAyE;YACzE,MAAM,kBAAkB,GAAG,KAAK,CAAC,QAAQ;gBACvC,CAAC,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC;gBACtB,CAAC,CAAC,KAAK,CAAC,UAAU,CAAA;YAEpB,MAAM,aAAa,GAAG,QAAQ,CAAC,KAAK,CAAC,WAAW,EAAE,kB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EACb,EAAE,EAAE;IAClB,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,CACxE,kBAAkB,CAAC,UAAU,EAAE,YAAY,EAAE,YAAY,CAAC,CAC3D,CAAA;IAED,MAAM,QAAQ,GAAG,YAAY,CAAC;QAC5B,aAAa,EAAE,GAAG,EAAE,CAClB,kBAAkB,IAAI,KAAK,CAAC,UAAU,EAAE,cAAc,CAAC;QACzD,YAAY,EAAE,GAAG,EAAE,CAAC,kBAAkB,IAAI,KAAK,CAAC,MAAM,EAAE,cAAc,CAAC;QACvE,UAAU,EAAE,IAAI;QAChB,GAAG,wBAAwB;KAC5B,CAAC,CAAA;IAEF,OAAO;QACL,QAAQ;QACR,KAAK;QACL,WAAW;QACX,cAAc;KACf,CAAA;AACH,CAAC,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { RefObject } from 'react';
|
|
2
|
+
interface TrapFocusParams {
|
|
3
|
+
beforeElementRef: RefObject<HTMLElement>;
|
|
4
|
+
trapFocusRef: RefObject<HTMLElement>;
|
|
5
|
+
afterElementRef: RefObject<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
export declare const useTrapFocus: ({ trapFocusRef, beforeElementRef, afterElementRef, }: TrapFocusParams) => void;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { tabbable } from 'tabbable';
|
|
3
|
+
/*
|
|
4
|
+
* Element that will maintain the focus inside trapFocusRef, focus the first element,
|
|
5
|
+
* and focus back on the element that was in focus when useTrapFocus was triggered.
|
|
6
|
+
*
|
|
7
|
+
* Inspired by Reakit useTrapFocus https://github.com/reakit/reakit/blob/a211d94da9f3b683182568a56479b91afb1b85ae/packages/reakit/src/Dialog/__utils/useFocusTrap.ts
|
|
8
|
+
*/
|
|
9
|
+
export const useTrapFocus = ({ trapFocusRef, beforeElementRef, afterElementRef, }) => {
|
|
10
|
+
const tabbableNodesRef = useRef();
|
|
11
|
+
const nodeToRestoreRef = useRef(document.hasFocus() ? document.activeElement : null);
|
|
12
|
+
// Focus back on the element that was focused when useTrapFocus is triggered.
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const nodeToRestore = nodeToRestoreRef.current;
|
|
15
|
+
return () => {
|
|
16
|
+
nodeToRestore?.focus();
|
|
17
|
+
};
|
|
18
|
+
}, [nodeToRestoreRef]);
|
|
19
|
+
// Set focus on first tabbable element
|
|
20
|
+
useEffect(() => {
|
|
21
|
+
if (!trapFocusRef.current) {
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
if (!tabbableNodesRef.current) {
|
|
25
|
+
tabbableNodesRef.current = tabbable(trapFocusRef.current);
|
|
26
|
+
}
|
|
27
|
+
const [firstTabbable] = tabbableNodesRef.current;
|
|
28
|
+
if (!firstTabbable) {
|
|
29
|
+
trapFocusRef.current.focus();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
firstTabbable.focus();
|
|
33
|
+
}, [trapFocusRef]);
|
|
34
|
+
// Handle loop focus. Set keydown and focusin event listeners
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
if (!trapFocusRef.current ||
|
|
37
|
+
!beforeElementRef.current ||
|
|
38
|
+
!afterElementRef.current) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
const beforeElement = beforeElementRef.current;
|
|
42
|
+
const afterElement = afterElementRef.current;
|
|
43
|
+
const trapFocus = trapFocusRef.current;
|
|
44
|
+
const handleLoopFocus = (nativeEvent) => {
|
|
45
|
+
if (!document.hasFocus()) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
tabbableNodesRef.current = tabbable(trapFocusRef.current);
|
|
49
|
+
if (!tabbableNodesRef.current.length) {
|
|
50
|
+
trapFocus.focus();
|
|
51
|
+
}
|
|
52
|
+
/*
|
|
53
|
+
* Handle loop focus from beforeElementRef. This node can only be focused if the user press shift tab.
|
|
54
|
+
* It will focus the last element of the trapFocusRef.
|
|
55
|
+
*/
|
|
56
|
+
if (nativeEvent.target === beforeElement) {
|
|
57
|
+
tabbableNodesRef.current[tabbableNodesRef.current.length - 1]?.focus();
|
|
58
|
+
}
|
|
59
|
+
/*
|
|
60
|
+
* Handle loop focus from afterElementRef. This node can only be focused if the user press tab.
|
|
61
|
+
* It will focus the first element of the trapFocusRef.
|
|
62
|
+
*/
|
|
63
|
+
if (nativeEvent.target === afterElement) {
|
|
64
|
+
tabbableNodesRef.current[0]?.focus();
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
beforeElement?.addEventListener('focusin', handleLoopFocus);
|
|
68
|
+
afterElement?.addEventListener('focusin', handleLoopFocus);
|
|
69
|
+
return () => {
|
|
70
|
+
beforeElement?.removeEventListener('focusin', handleLoopFocus);
|
|
71
|
+
afterElement?.removeEventListener('focusin', handleLoopFocus);
|
|
72
|
+
};
|
|
73
|
+
}, [tabbableNodesRef, afterElementRef, beforeElementRef, trapFocusRef]);
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=useTrapFocus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTrapFocus.js","sourceRoot":"","sources":["../../src/hooks/useTrapFocus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAQnC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAC3B,YAAY,EACZ,gBAAgB,EAChB,eAAe,GACC,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,MAAM,EAAsB,CAAA;IACrD,MAAM,gBAAgB,GAAG,MAAM,CAC7B,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAE,QAAQ,CAAC,aAA6B,CAAC,CAAC,CAAC,IAAI,CACrE,CAAA;IA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OAAO,CAAC,MAAM,EAAE;gBACpC,SAAS,CAAC,KAAK,EAAE,CAAA;aAClB;YAED;;;eAGG;YACH,IAAI,WAAW,CAAC,MAAM,KAAK,aAAa,EAAE;gBACxC,gBAAgB,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;aACvE;YAED;;;eAGG;YACH,IAAI,WAAW,CAAC,MAAM,KAAK,YAAY,EAAE;gBACvC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;aACrC;QACH,CAAC,CAAA;QAED,aAAa,EAAE,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAC3D,YAAY,EAAE,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAE1D,OAAO,GAAG,EAAE;YACV,aAAa,EAAE,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;YAC9D,YAAY,EAAE,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAC/D,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC,CAAA;AACzE,CAAC,CAAA"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
export * from './hooks';
|
|
2
|
+
export { default as Badge } from './atoms/Badge';
|
|
3
|
+
export type { BadgeProps } from './atoms/Badge';
|
|
4
|
+
export { default as Button } from './atoms/Button';
|
|
5
|
+
export type { ButtonProps } from './atoms/Button';
|
|
6
|
+
export { default as Checkbox } from './atoms/Checkbox';
|
|
7
|
+
export type { CheckboxProps } from './atoms/Checkbox';
|
|
8
|
+
export { default as Icon } from './atoms/Icon';
|
|
9
|
+
export type { IconProps } from './atoms/Icon';
|
|
10
|
+
export { default as Input } from './atoms/Input';
|
|
11
|
+
export type { InputProps } from './atoms/Input';
|
|
12
|
+
export { default as Label } from './atoms/Label';
|
|
13
|
+
export type { LabelProps } from './atoms/Label';
|
|
14
|
+
export { default as Link } from './atoms/Link';
|
|
15
|
+
export type { LinkProps, LinkElementType } from './atoms/Link';
|
|
16
|
+
export { default as Loader } from './atoms/Loader';
|
|
17
|
+
export type { LoaderProps } from './atoms/Loader';
|
|
18
|
+
export { default as List } from './atoms/List';
|
|
19
|
+
export type { ListProps } from './atoms/List';
|
|
20
|
+
export { default as Overlay } from './atoms/Overlay';
|
|
21
|
+
export type { OverlayProps } from './atoms/Overlay';
|
|
22
|
+
export { default as Price } from './atoms/Price';
|
|
23
|
+
export type { PriceProps } from './atoms/Price';
|
|
24
|
+
export { default as Radio } from './atoms/Radio';
|
|
25
|
+
export type { RadioProps } from './atoms/Radio';
|
|
26
|
+
export { default as Skeleton } from './atoms/Skeleton';
|
|
27
|
+
export type { SkeletonProps } from './atoms/Skeleton';
|
|
28
|
+
export { default as Select } from './atoms/Select';
|
|
29
|
+
export type { SelectProps } from './atoms/Select';
|
|
30
|
+
export { default as Slider } from './atoms/Slider';
|
|
31
|
+
export type { SliderProps } from './atoms/Slider';
|
|
32
|
+
export { default as SROnly } from './atoms/SROnly';
|
|
33
|
+
export { default as Accordion, AccordionItem, AccordionButton, AccordionPanel, } from './molecules/Accordion';
|
|
34
|
+
export type { AccordionProps, AccordionItemProps, AccordionButtonProps, AccordionPanelProps, } from './molecules/Accordion';
|
|
35
|
+
export { default as Alert } from './molecules/Alert';
|
|
36
|
+
export type { AlertProps } from './molecules/Alert';
|
|
37
|
+
export { BreadcrumbPure, Breadcrumb } from './molecules/Breadcrumb';
|
|
38
|
+
export type { BreadcrumbPureProps, BreadcrumbProps, } from './molecules/Breadcrumb';
|
|
39
|
+
export { default as BuyButton } from './molecules/BuyButton';
|
|
40
|
+
export { default as Carousel, CarouselItem, CarouselBullets, } from './molecules/Carousel';
|
|
41
|
+
export type { CarouselProps, CarouselItemProps, CarouselBulletsProps, } from './molecules/Carousel';
|
|
42
|
+
export { default as CartItem, CartItemImage, CartItemSummary, } from './molecules/CartItem';
|
|
43
|
+
export type { CartItemProps, CartItemImageProps, CartItemSummaryProps, } from './molecules/CartItem';
|
|
44
|
+
export { default as CheckboxField } from './molecules/CheckboxField';
|
|
45
|
+
export type { CheckboxFieldProps } from './molecules/CheckboxField';
|
|
46
|
+
export { default as IconButton } from './molecules/IconButton';
|
|
47
|
+
export type { IconButtonProps } from './molecules/IconButton';
|
|
48
|
+
export { default as DiscountBadge } from './molecules/DiscountBadge';
|
|
49
|
+
export type { DiscountBadgeProps } from './molecules/DiscountBadge';
|
|
50
|
+
export { default as Dropdown, DropdownButton, DropdownItem, DropdownMenu, } from './molecules/Dropdown';
|
|
51
|
+
export type { DropdownProps, DropdownButtonProps, DropdownItemProps, DropdownMenuProps, } from './molecules/Dropdown';
|
|
52
|
+
export { default as Gift, GiftContent, GiftImage } from './molecules/Gift';
|
|
53
|
+
export type { GiftProps, GiftContentProps, GiftImageProps, } from './molecules/Gift';
|
|
54
|
+
export { default as InputField } from './molecules/InputField';
|
|
55
|
+
export type { InputFieldProps } from './molecules/InputField';
|
|
56
|
+
export { default as LinkButton } from './molecules/LinkButton';
|
|
57
|
+
export type { LinkButtonProps } from './molecules/LinkButton';
|
|
58
|
+
export { default as Modal, ModalHeader, ModalBody } from './molecules/Modal';
|
|
59
|
+
export type { ModalProps, ModalHeaderProps } from './molecules/Modal';
|
|
60
|
+
export { default as NavbarLinks, NavbarLinksList, NavbarLinksListItem, } from './molecules/NavbarLinks';
|
|
61
|
+
export type { NavbarLinksProps, NavbarLinksListProps, NavbarLinksListItemProps, } from './molecules/NavbarLinks';
|
|
62
|
+
export { default as OrderSummary } from './molecules/OrderSummary';
|
|
63
|
+
export type { OrderSummaryProps } from './molecules/OrderSummary';
|
|
64
|
+
export { default as ProductCard, ProductCardImage, ProductCardContent, } from './molecules/ProductCard';
|
|
65
|
+
export type { ProductCardProps, ProductCardImageProps, ProductCardContentProps, } from './molecules/ProductCard';
|
|
66
|
+
export { default as ProductTitle } from './molecules/ProductTitle';
|
|
67
|
+
export type { ProductTitleProps } from './molecules/ProductTitle';
|
|
68
|
+
export { default as RadioField } from './molecules/RadioField';
|
|
69
|
+
export type { RadioFieldProps } from './molecules/RadioField';
|
|
70
|
+
export { default as RadioGroup, RadioOption } from './molecules/RadioGroup';
|
|
71
|
+
export type { RadioGroupProps, RadioOptionProps } from './molecules/RadioGroup';
|
|
72
|
+
export { default as Rating } from './molecules/Rating';
|
|
73
|
+
export type { RatingProps } from './molecules/Rating';
|
|
74
|
+
export { default as RegionBar } from './molecules/RegionBar';
|
|
75
|
+
export type { RegionBarProps } from './molecules/RegionBar';
|
|
76
|
+
export { default as SearchProvider } from './molecules/SearchProvider';
|
|
77
|
+
export type { SearchProviderContextValue } from './molecules/SearchProvider';
|
|
78
|
+
export { default as SearchInputField } from './molecules/SearchInputField';
|
|
79
|
+
export type { SearchInputFieldProps, SearchInputFieldRef, } from './molecules/SearchInputField';
|
|
80
|
+
export { default as SearchAutoComplete, SearchAutoCompleteTerm, } from './molecules/SearchAutoComplete';
|
|
81
|
+
export type { SearchAutoCompleteProps, SearchAutoCompleteTermProps, } from './molecules/SearchAutoComplete';
|
|
82
|
+
export { default as SearchDropdown, SearchDropdownProps, } from './molecules/SearchDropdown';
|
|
83
|
+
export { default as SearchHistory, SearchHistoryTerm, } from './molecules/SearchHistory';
|
|
84
|
+
export type { SearchHistoryProps, SearchHistoryTermProps, } from './molecules/SearchHistory';
|
|
85
|
+
export { default as SearchProducts, SearchProductItem, SearchProductItemImage, SearchProductItemContent, } from './molecules/SearchProducts';
|
|
86
|
+
export type { SearchProductsProps, SearchProductItemProps, SearchProductItemImageProps, SearchProductItemContentProps, } from './molecules/SearchProducts';
|
|
87
|
+
export { default as SearchTop, SearchTopTerm } from './molecules/SearchTop';
|
|
88
|
+
export type { SearchTopProps, SearchTopTermProps } from './molecules/SearchTop';
|
|
89
|
+
export { default as SelectField } from './molecules/SelectField';
|
|
90
|
+
export type { SelectFieldProps } from './molecules/SelectField';
|
|
91
|
+
export { default as SkuSelector } from './molecules/SkuSelector';
|
|
92
|
+
export type { SkuSelectorProps, SkuOption } from './molecules/SkuSelector';
|
|
93
|
+
export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './molecules/Table';
|
|
94
|
+
export type { TableProps, TableBodyProps, TableCellProps, TableFooterProps, TableHeadProps, TableRowProps, } from './molecules/Table';
|
|
95
|
+
export { default as Tag } from './molecules/Tag';
|
|
96
|
+
export type { TagProps } from './molecules/Tag';
|
|
97
|
+
export { default as Toast } from './molecules/Toast';
|
|
98
|
+
export { default as Toggle } from './molecules/Toggle';
|
|
99
|
+
export type { ToggleProps } from './molecules/Toggle';
|
|
100
|
+
export { default as ToggleField } from './molecules/ToggleField';
|
|
101
|
+
export type { ToggleFieldProps } from './molecules/ToggleField';
|
|
102
|
+
export { default as QuantitySelector } from './molecules/QuantitySelector';
|
|
103
|
+
export type { QuantitySelectorProps } from './molecules/QuantitySelector';
|
|
104
|
+
export { default as BannerText, BannerTextContent, } from './organisms/BannerText';
|
|
105
|
+
export type { BannerTextProps, BannerTextContentProps, } from './organisms/BannerText';
|
|
106
|
+
export { default as CartSidebar, CartSidebarList, CartSidebarFooter, } from './organisms/CartSidebar';
|
|
107
|
+
export type { CartSidebarProps } from './organisms/CartSidebar';
|
|
108
|
+
export { default as EmptyState } from './organisms/EmptyState';
|
|
109
|
+
export type { EmptyStateProps } from './organisms/EmptyState';
|
|
110
|
+
export { default as Filter, FilterFacetBoolean, FilterFacetBooleanItem, FilterFacetRange, FilterFacets, FilterSlider, } from './organisms/Filter';
|
|
111
|
+
export type { FilterFacetBooleanItemProps, FilterFacetRangeProps, FilterFacetsProps, FilterProps, FilterSliderProps, } from './organisms/Filter';
|
|
112
|
+
export { default as Hero, HeroImage, HeroHeader } from './organisms/Hero';
|
|
113
|
+
export type { HeroProps, HeroImageProps, HeroHeaderProps, } from './organisms/Hero';
|
|
114
|
+
export { default as ImageGallery, ImageGallerySelector, ImageZoom, } from './organisms/ImageGallery';
|
|
115
|
+
export type { ImageElementData, ImageGalleryProps, ImageGallerySelectorProps, ImageZoomProps, } from './organisms/ImageGallery';
|
|
116
|
+
export { default as Navbar, NavbarHeader, NavbarRow, NavbarButtons, } from './organisms/Navbar';
|
|
117
|
+
export type { NavbarProps, NavbarHeaderProps, NavbarRowProps, NavbarButtonsProps, } from './organisms/Navbar';
|
|
118
|
+
export { default as NavbarSlider, NavbarSliderHeader, NavbarSliderContent, NavbarSliderFooter, } from './organisms/NavbarSlider';
|
|
119
|
+
export type { NavbarSliderProps, NavbarSliderHeaderProps, NavbarSliderContentProps, NavbarSliderFooterProps, } from './organisms/NavbarSlider';
|
|
120
|
+
export { default as OutOfStock } from './organisms/OutOfStock';
|
|
121
|
+
export type { OutOfStockProps } from './organisms/OutOfStock';
|
|
122
|
+
export { default as PaymentMethods } from './organisms/PaymentMethods';
|
|
123
|
+
export type { PaymentMethodsProps } from './organisms/PaymentMethods';
|
|
124
|
+
export { default as PriceRange } from './organisms/PriceRange';
|
|
125
|
+
export type { PriceRangeProps } from './organisms/PriceRange';
|
|
126
|
+
export { default as ProductGrid, ProductGridItem, } from './organisms/ProductGrid';
|
|
127
|
+
export type { ProductGridProps, ProductGridItemProps, } from './organisms/ProductGrid';
|
|
128
|
+
export { default as ProductShelf, ProductShelfItems, ProductShelfItem, } from './organisms/ProductShelf';
|
|
129
|
+
export type { ProductShelfProps, ProductShelfItemsProps, ProductShelfItemProps, } from './organisms/ProductShelf';
|
|
130
|
+
export { default as RegionModal } from './organisms/RegionModal';
|
|
131
|
+
export type { RegionModalProps } from './organisms/RegionModal';
|
|
132
|
+
export { default as SearchInput } from './organisms/SearchInput';
|
|
133
|
+
export type { SearchInputProps } from './organisms/SearchInput';
|
|
134
|
+
export { default as ShippingSimulation } from './organisms/ShippingSimulation';
|
|
135
|
+
export type { ShippingSimulationProps } from './organisms/ShippingSimulation';
|
|
136
|
+
export { default as SlideOver, SlideOverHeader } from './organisms/SlideOver';
|
|
137
|
+
export type { SlideOverProps, SlideOverHeaderProps, } from './organisms/SlideOver';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
// Hooks
|
|
2
|
+
export * from './hooks';
|
|
3
|
+
// Atoms
|
|
4
|
+
export { default as Badge } from './atoms/Badge';
|
|
5
|
+
export { default as Button } from './atoms/Button';
|
|
6
|
+
export { default as Checkbox } from './atoms/Checkbox';
|
|
7
|
+
export { default as Icon } from './atoms/Icon';
|
|
8
|
+
export { default as Input } from './atoms/Input';
|
|
9
|
+
export { default as Label } from './atoms/Label';
|
|
10
|
+
export { default as Link } from './atoms/Link';
|
|
11
|
+
export { default as Loader } from './atoms/Loader';
|
|
12
|
+
export { default as List } from './atoms/List';
|
|
13
|
+
export { default as Overlay } from './atoms/Overlay';
|
|
14
|
+
export { default as Price } from './atoms/Price';
|
|
15
|
+
export { default as Radio } from './atoms/Radio';
|
|
16
|
+
export { default as Skeleton } from './atoms/Skeleton';
|
|
17
|
+
export { default as Select } from './atoms/Select';
|
|
18
|
+
export { default as Slider } from './atoms/Slider';
|
|
19
|
+
export { default as SROnly } from './atoms/SROnly';
|
|
20
|
+
// Molecules
|
|
21
|
+
export { default as Accordion, AccordionItem, AccordionButton, AccordionPanel, } from './molecules/Accordion';
|
|
22
|
+
export { default as Alert } from './molecules/Alert';
|
|
23
|
+
export { BreadcrumbPure, Breadcrumb } from './molecules/Breadcrumb';
|
|
24
|
+
export { default as BuyButton } from './molecules/BuyButton';
|
|
25
|
+
export { default as Carousel, CarouselItem, CarouselBullets, } from './molecules/Carousel';
|
|
26
|
+
export { default as CartItem, CartItemImage, CartItemSummary, } from './molecules/CartItem';
|
|
27
|
+
export { default as CheckboxField } from './molecules/CheckboxField';
|
|
28
|
+
export { default as IconButton } from './molecules/IconButton';
|
|
29
|
+
export { default as DiscountBadge } from './molecules/DiscountBadge';
|
|
30
|
+
export { default as Dropdown, DropdownButton, DropdownItem, DropdownMenu, } from './molecules/Dropdown';
|
|
31
|
+
export { default as Gift, GiftContent, GiftImage } from './molecules/Gift';
|
|
32
|
+
export { default as InputField } from './molecules/InputField';
|
|
33
|
+
export { default as LinkButton } from './molecules/LinkButton';
|
|
34
|
+
export { default as Modal, ModalHeader, ModalBody } from './molecules/Modal';
|
|
35
|
+
export { default as NavbarLinks, NavbarLinksList, NavbarLinksListItem, } from './molecules/NavbarLinks';
|
|
36
|
+
export { default as OrderSummary } from './molecules/OrderSummary';
|
|
37
|
+
export { default as ProductCard, ProductCardImage, ProductCardContent, } from './molecules/ProductCard';
|
|
38
|
+
export { default as ProductTitle } from './molecules/ProductTitle';
|
|
39
|
+
export { default as RadioField } from './molecules/RadioField';
|
|
40
|
+
export { default as RadioGroup, RadioOption } from './molecules/RadioGroup';
|
|
41
|
+
export { default as Rating } from './molecules/Rating';
|
|
42
|
+
export { default as RegionBar } from './molecules/RegionBar';
|
|
43
|
+
export { default as SearchProvider } from './molecules/SearchProvider';
|
|
44
|
+
export { default as SearchInputField } from './molecules/SearchInputField';
|
|
45
|
+
export { default as SearchAutoComplete, SearchAutoCompleteTerm, } from './molecules/SearchAutoComplete';
|
|
46
|
+
export { default as SearchDropdown, } from './molecules/SearchDropdown';
|
|
47
|
+
export { default as SearchHistory, SearchHistoryTerm, } from './molecules/SearchHistory';
|
|
48
|
+
export { default as SearchProducts, SearchProductItem, SearchProductItemImage, SearchProductItemContent, } from './molecules/SearchProducts';
|
|
49
|
+
export { default as SearchTop, SearchTopTerm } from './molecules/SearchTop';
|
|
50
|
+
export { default as SelectField } from './molecules/SelectField';
|
|
51
|
+
export { default as SkuSelector } from './molecules/SkuSelector';
|
|
52
|
+
export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './molecules/Table';
|
|
53
|
+
export { default as Tag } from './molecules/Tag';
|
|
54
|
+
export { default as Toast } from './molecules/Toast';
|
|
55
|
+
export { default as Toggle } from './molecules/Toggle';
|
|
56
|
+
export { default as ToggleField } from './molecules/ToggleField';
|
|
57
|
+
export { default as QuantitySelector } from './molecules/QuantitySelector';
|
|
58
|
+
// Organisms
|
|
59
|
+
export { default as BannerText, BannerTextContent, } from './organisms/BannerText';
|
|
60
|
+
export { default as CartSidebar, CartSidebarList, CartSidebarFooter, } from './organisms/CartSidebar';
|
|
61
|
+
export { default as EmptyState } from './organisms/EmptyState';
|
|
62
|
+
export { default as Filter, FilterFacetBoolean, FilterFacetBooleanItem, FilterFacetRange, FilterFacets, FilterSlider, } from './organisms/Filter';
|
|
63
|
+
export { default as Hero, HeroImage, HeroHeader } from './organisms/Hero';
|
|
64
|
+
export { default as ImageGallery, ImageGallerySelector, ImageZoom, } from './organisms/ImageGallery';
|
|
65
|
+
export { default as Navbar, NavbarHeader, NavbarRow, NavbarButtons, } from './organisms/Navbar';
|
|
66
|
+
export { default as NavbarSlider, NavbarSliderHeader, NavbarSliderContent, NavbarSliderFooter, } from './organisms/NavbarSlider';
|
|
67
|
+
export { default as OutOfStock } from './organisms/OutOfStock';
|
|
68
|
+
export { default as PaymentMethods } from './organisms/PaymentMethods';
|
|
69
|
+
export { default as PriceRange } from './organisms/PriceRange';
|
|
70
|
+
export { default as ProductGrid, ProductGridItem, } from './organisms/ProductGrid';
|
|
71
|
+
export { default as ProductShelf, ProductShelfItems, ProductShelfItem, } from './organisms/ProductShelf';
|
|
72
|
+
export { default as RegionModal } from './organisms/RegionModal';
|
|
73
|
+
export { default as SearchInput } from './organisms/SearchInput';
|
|
74
|
+
export { default as ShippingSimulation } from './organisms/ShippingSimulation';
|
|
75
|
+
export { default as SlideOver, SlideOverHeader } from './organisms/SlideOver';
|
|
76
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,SAAS,CAAA;AAEvB,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,e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AI,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AAG9E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
interface AccordionContext {
|
|
4
|
+
indices: Set<number>;
|
|
5
|
+
onChange: (index: number) => void;
|
|
6
|
+
numberOfItems: number;
|
|
7
|
+
}
|
|
8
|
+
declare const AccordionContext: React.Context<AccordionContext | undefined>;
|
|
9
|
+
export interface AccordionProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
10
|
+
/**
|
|
11
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
12
|
+
* testing-library, and jest).
|
|
13
|
+
*/
|
|
14
|
+
testId?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Indices that indicate which accordion items are opened.
|
|
17
|
+
*/
|
|
18
|
+
indices: Iterable<number>;
|
|
19
|
+
/**
|
|
20
|
+
* Function that is triggered when an accordion item is opened/closed.
|
|
21
|
+
*/
|
|
22
|
+
onChange: (index: number) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const Accordion: React.ForwardRefExoticComponent<AccordionProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
|
+
export declare function useAccordion(): AccordionContext;
|
|
26
|
+
export default Accordion;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { useContext, cloneElement, forwardRef, createContext, } from 'react';
|
|
2
|
+
const AccordionContext = createContext(undefined);
|
|
3
|
+
const Accordion = forwardRef(function Accordion({ testId = 'fs-accordion', indices, onChange, children, ...otherProps }, ref) {
|
|
4
|
+
const childrenWithIndex = React.Children.map(children, (child, index) => cloneElement(child, { index: child.props.index ?? index }));
|
|
5
|
+
const context = {
|
|
6
|
+
indices: new Set(indices),
|
|
7
|
+
onChange,
|
|
8
|
+
numberOfItems: childrenWithIndex.length,
|
|
9
|
+
};
|
|
10
|
+
return (React.createElement(AccordionContext.Provider, { value: context },
|
|
11
|
+
React.createElement("div", { ref: ref, "data-fs-accordion": true, role: "region", "data-testid": testId, ...otherProps }, childrenWithIndex)));
|
|
12
|
+
});
|
|
13
|
+
export function useAccordion() {
|
|
14
|
+
const context = useContext(AccordionContext);
|
|
15
|
+
if (context === undefined) {
|
|
16
|
+
throw new Error('Do not use Accordion components outside the Accordion context.');
|
|
17
|
+
}
|
|
18
|
+
return context;
|
|
19
|
+
}
|
|
20
|
+
export default Accordion;
|
|
21
|
+
//# sourceMappingURL=Accordion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/Accordion.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EACZ,UAAU,EACV,YAAY,EACZ,UAAU,EACV,aAAa,GACd,MAAM,OAAO,CAAA;AAQd,MAAM,gBAAgB,GAAG,aAAa,CAA+B,SAAS,CAAC,CAAA;AAmB/E,MAAM,SAAS,GAAG,UAAU,CAAiC,SAAS,SAAS,CAC7E,EAAE,MAAM,GAAG,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACvE,GAAG;IAEH,MAAM,iBAAiB,GAAG,KAAK,CAAC,QAAQ,CAAC,GAAG,CAC1C,QAAwB,EACxB,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,KAAK,IAAI,KAAK,EAAE,CAAC,CAC7E,CAAA;IAED,MAAM,OAAO,GAAG;QACd,OAAO,EAAE,IAAI,GAAG,CAAC,OAAO,CAAC;QACzB,QAAQ;QACR,aAAa,EAAE,iBAAiB,CAAC,MAAM;KACxC,CAAA;IAED,OAAO,CACL,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QACvC,6BACE,GAAG,EAAE,GAAG,6BAER,IAAI,EAAC,QAAQ,iBACA,MAAM,KACf,UAAU,IAEb,iBAAiB,CACd,CACoB,CAC7B,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,UAAU,YAAY;IAC1B,MAAM,OAAO,GAAG,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAE5C,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,gEAAgE,CACjE,CAAA;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { ButtonProps } from '../..';
|
|
4
|
+
export interface AccordionButtonProps extends ButtonProps {
|
|
5
|
+
/**
|
|
6
|
+
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
7
|
+
*/
|
|
8
|
+
testId?: string;
|
|
9
|
+
/**
|
|
10
|
+
* A React component is rendered as an icon when the accordion is expanded.
|
|
11
|
+
*/
|
|
12
|
+
expandedIcon?: ReactNode;
|
|
13
|
+
/**
|
|
14
|
+
* A React component is rendered as an icon when the accordion is collapsed.
|
|
15
|
+
*/
|
|
16
|
+
collapsedIcon?: ReactNode;
|
|
17
|
+
}
|
|
18
|
+
declare const AccordionButton: React.ForwardRefExoticComponent<AccordionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
export default AccordionButton;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { useAccordion } from './Accordion';
|
|
3
|
+
import { useAccordionItem } from './AccordionItem';
|
|
4
|
+
import { Button, Icon } from '../..';
|
|
5
|
+
const AccordionButton = forwardRef(function AccordionButton({ testId = 'fs-accordion-button', expandedIcon = React.createElement(Icon, { name: "MinusCircle", "data-icon": "expanded" }), collapsedIcon = React.createElement(Icon, { name: "PlusCircle", "data-icon": "collapsed" }), children, ...otherProps }, ref) {
|
|
6
|
+
const { indices, onChange, numberOfItems } = useAccordion();
|
|
7
|
+
const { index, panel, button, prefixId } = useAccordionItem();
|
|
8
|
+
const onKeyDown = (event) => {
|
|
9
|
+
if (!['ArrowDown', 'ArrowUp'].includes(event.key)) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const getNext = () => {
|
|
13
|
+
const next = Number(index) + 1 === numberOfItems ? 0 : Number(index) + 1;
|
|
14
|
+
return document.getElementById(`${prefixId && `${prefixId}-`}button--${next}`);
|
|
15
|
+
};
|
|
16
|
+
const getPrevious = () => {
|
|
17
|
+
const previous = Number(index) - 1 < 0 ? numberOfItems - 1 : Number(index) - 1;
|
|
18
|
+
return document.getElementById(`${prefixId && `${prefixId}-`}button--${previous}`);
|
|
19
|
+
};
|
|
20
|
+
switch (event.key) {
|
|
21
|
+
case 'ArrowDown':
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
getNext()?.focus();
|
|
24
|
+
break;
|
|
25
|
+
case 'ArrowUp':
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
getPrevious()?.focus();
|
|
28
|
+
break;
|
|
29
|
+
default:
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
return (React.createElement(Button, { ref: ref, id: button, variant: "tertiary", "data-fs-accordion-button": true, "aria-expanded": indices.has(index), icon: indices.has(index) ? expandedIcon : collapsedIcon, iconPosition: "right", "aria-controls": panel, onKeyDown: onKeyDown, onClick: () => {
|
|
33
|
+
onChange(index);
|
|
34
|
+
}, "data-testid": testId, ...otherProps }, children));
|
|
35
|
+
});
|
|
36
|
+
export default AccordionButton;
|
|
37
|
+
//# sourceMappingURL=AccordionButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionButton.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/AccordionButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAA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,CAAC,aAAa,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;YAE/D,OAAO,QAAQ,CAAC,cAAc,CAC5B,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,WAAW,QAAQ,EAAE,CACnD,CAAA;QACH,CAAC,CAAA;QAED,QAAQ,KAAK,CAAC,GAAG,EAAE;YACjB,KAAK,WAAW;gBACd,KAAK,CAAC,cAAc,EAAE,CAAA;gBACtB,OAAO,EAAE,EAAE,KAAK,EAAE,CAAA;gBAClB,MAAK;YAEP,KAAK,SAAS;gBACZ,KAAK,CAAC,cAAc,EAAE,CAAA;gBACtB,WAAW,EAAE,EAAE,KAAK,EAAE,CAAA;gBACtB,MAAK;YAEP,QAAQ;SACT;IACH,CAAC,CAAA;IAED,OAAO,CACL,oBAAC,MAAM,IACL,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,MAAM,EACV,OAAO,EAAC,UAAU,qDAEH,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,EACjC,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,aAAa,EACvD,YAAY,EAAC,OAAO,mBACL,KAAK,EACpB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,GAAG,EAAE;YACZ,QAAQ,CAAC,KAAK,CAAC,CAAA;QACjB,CAAC,iBACY,MAAM,KACf,UAAU,IAEb,QAAQ,CACF,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ElementType, HTMLAttributes, ReactElement } from 'react';
|
|
3
|
+
import type { PolymorphicComponentPropsWithRef } from '../../typings';
|
|
4
|
+
interface AccordionItemContext {
|
|
5
|
+
index: number;
|
|
6
|
+
panel: string;
|
|
7
|
+
button: string;
|
|
8
|
+
prefixId: string;
|
|
9
|
+
}
|
|
10
|
+
declare const AccordionItemContext: React.Context<AccordionItemContext | undefined>;
|
|
11
|
+
interface Props extends HTMLAttributes<HTMLDivElement> {
|
|
12
|
+
/**
|
|
13
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
14
|
+
* testing-library, and jest).
|
|
15
|
+
*/
|
|
16
|
+
testId?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Index of the current accordion item within the accordion.
|
|
19
|
+
*/
|
|
20
|
+
index?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Namespace ID prefix for the current Accordion item's panel and button
|
|
23
|
+
* to avoid ID duplication when multiple instances are on the same page.
|
|
24
|
+
*/
|
|
25
|
+
prefixId?: string;
|
|
26
|
+
}
|
|
27
|
+
export type AccordionItemProps<C extends ElementType> = PolymorphicComponentPropsWithRef<C, Props>;
|
|
28
|
+
type AccordionItemComponent = <C extends ElementType = 'div'>(props: AccordionItemProps<C>) => ReactElement | null;
|
|
29
|
+
declare const AccordionItem: AccordionItemComponent;
|
|
30
|
+
export declare function useAccordionItem(): AccordionItemContext;
|
|
31
|
+
export default AccordionItem;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { useContext, forwardRef, createContext } from 'react';
|
|
2
|
+
const AccordionItemContext = createContext(undefined);
|
|
3
|
+
const AccordionItem = forwardRef(function AccordionItem({ prefixId = '', index = 0, as: MaybeComponent, children, testId = 'fs-accordion-item', ...otherProps }, ref) {
|
|
4
|
+
const Component = MaybeComponent ?? 'div';
|
|
5
|
+
const context = {
|
|
6
|
+
index,
|
|
7
|
+
prefixId,
|
|
8
|
+
panel: `${prefixId && `${prefixId}-`}panel--${index}`,
|
|
9
|
+
button: `${prefixId && `${prefixId}-`}button--${index}`,
|
|
10
|
+
};
|
|
11
|
+
return (React.createElement(AccordionItemContext.Provider, { value: context },
|
|
12
|
+
React.createElement(Component, { ref: ref, "data-fs-accordion-item": true, "data-testid": testId, ...otherProps }, children)));
|
|
13
|
+
});
|
|
14
|
+
export function useAccordionItem() {
|
|
15
|
+
const context = useContext(AccordionItemContext);
|
|
16
|
+
if (context === undefined) {
|
|
17
|
+
throw new Error('Do not use AccordionItem components outside the AccordionItem context.');
|
|
18
|
+
}
|
|
19
|
+
return context;
|
|
20
|
+
}
|
|
21
|
+
export default AccordionItem;
|
|
22
|
+
//# sourceMappingURL=AccordionItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAcpE,MAAM,oBAAoB,GAAG,aAAa,CACxC,SAAS,CACV,CAAA;AA0BD,MAAM,aAAa,GAA2B,UAAU,CAAC,SAAS,aAAa,CAG7E,EACE,QAAQ,GAAG,EAAE,EACb,KAAK,GAAG,CAAC,EACT,EAAE,EAAE,cAAc,EAClB,QAAQ,EACR,MAAM,GAAG,mBAAmB,EAC5B,GAAG,UAAU,EACS,EACxB,GAAsB;IAEtB,MAAM,SAAS,GAAG,cAAc,IAAI,KAAK,CAAA;IAEzC,MAAM,OAAO,GAAG;QACd,KAAK;QACL,QAAQ;QACR,KAAK,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,UAAU,KAAK,EAAE;QACrD,MAAM,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,WAAW,KAAK,EAAE;KACxD,CAAA;IAED,OAAO,CACL,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC3C,oBAAC,SAAS,IACR,GAAG,EAAE,GAAG,iDAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACC,CACkB,CACjC,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAEhD,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAA;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,eAAe,aAAa,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export interface AccordionPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
|
|
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 AccordionPanel: React.ForwardRefExoticComponent<AccordionPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export default AccordionPanel;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { forwardRef } from 'react';
|
|
2
|
+
import { useAccordion } from './Accordion';
|
|
3
|
+
import { useAccordionItem } from './AccordionItem';
|
|
4
|
+
const AccordionPanel = forwardRef(function AccordionPanel({ testId = 'fs-accordion-panel', children, ...otherProps }, ref) {
|
|
5
|
+
const { indices } = useAccordion();
|
|
6
|
+
const { index, button, panel } = useAccordionItem();
|
|
7
|
+
return (React.createElement("div", { ref: ref, id: panel, "data-fs-accordion-panel": true, "aria-labelledby": button, role: "region", hidden: !indices.has(index), "data-testid": testId, ...otherProps }, children));
|
|
8
|
+
});
|
|
9
|
+
export default AccordionPanel;
|
|
10
|
+
//# sourceMappingURL=AccordionPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionPanel.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/AccordionPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAUlD,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EAAE,MAAM,GAAG,oBAAoB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC1D,GAAG;IAEH,MAAM,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,CAAA;IAEnD,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,KAAK,sDAEQ,MAAM,EACvB,IAAI,EAAC,QAAQ,EACb,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,iBACd,MAAM,KACf,UAAU,IAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { default } from './Accordion';
|
|
2
|
+
export type { AccordionProps } from './Accordion';
|
|
3
|
+
export { default as AccordionItem } from './AccordionItem';
|
|
4
|
+
export type { AccordionItemProps } from './AccordionItem';
|
|
5
|
+
export { default as AccordionButton } from './AccordionButton';
|
|
6
|
+
export type { AccordionButtonProps } from './AccordionButton';
|
|
7
|
+
export { default as AccordionPanel } from './AccordionPanel';
|
|
8
|
+
export type { AccordionPanelProps } from './AccordionPanel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGrC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { LinkProps } from '../../';
|
|
4
|
+
import type { MouseEvent, ReactNode } from 'react';
|
|
5
|
+
export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
|
|
6
|
+
/**
|
|
7
|
+
* ID to find this component in testing tools (e.g.: cypress,
|
|
8
|
+
* testing-library, and jest).
|
|
9
|
+
*/
|
|
10
|
+
testId?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Icon component for additional customization.
|
|
13
|
+
*/
|
|
14
|
+
icon?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Enables dismissible feature.
|
|
17
|
+
*/
|
|
18
|
+
dismissible?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Extends all Link Props.
|
|
21
|
+
*/
|
|
22
|
+
link?: LinkProps;
|
|
23
|
+
/**
|
|
24
|
+
* Function called when dismiss button is clicked.
|
|
25
|
+
*/
|
|
26
|
+
onClose?: (event: MouseEvent<HTMLElement>) => void;
|
|
27
|
+
}
|
|
28
|
+
declare const Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
|
|
29
|
+
export default Alert;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React, { forwardRef, useCallback } from 'react';
|
|
2
|
+
import { Icon, IconButton, Link } from '../../';
|
|
3
|
+
const Alert = forwardRef(function Alert({ testId = 'fs-alert', children, icon, dismissible, link, onClose, ...otherProps }, ref) {
|
|
4
|
+
const handleClose = useCallback((event) => {
|
|
5
|
+
if (event.defaultPrevented) {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
onClose?.(event);
|
|
9
|
+
}, [onClose]);
|
|
10
|
+
return (React.createElement("div", { ref: ref, role: "alert", "data-fs-alert": true, "data-fs-alert-dismissible": dismissible, "data-fs-content": "alert", "data-testid": testId, ...otherProps },
|
|
11
|
+
!!icon && icon,
|
|
12
|
+
React.createElement("p", { "data-fs-alert-content": true }, children),
|
|
13
|
+
link && React.createElement(Link, { "data-fs-alert-link": true, variant: "inline", ...link }),
|
|
14
|
+
dismissible && (React.createElement(IconButton, { "data-fs-alert-button": true, size: "small", "aria-label": "Close", icon: React.createElement(Icon, { name: "X" }), onClick: handleClose }))));
|
|
15
|
+
});
|
|
16
|
+
export default Alert;
|
|
17
|
+
//# sourceMappingURL=Alert.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/molecules/Alert/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAEtD,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,IAAI,EAAa,MAAM,QAAQ,CAAA;AA6B1D,MAAM,KAAK,GAAG,UAAU,CAA6B,SAAS,KAAK,CACjE,EACE,MAAM,GAAG,UAAU,EACnB,QAAQ,EACR,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,OAAO,EACP,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,WAAW,GAAG,WAAW,CAC7B,CAAC,KAA8B,EAAE,EAAE;QACjC,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC1B,OAAM;SACP;QAED,OAAO,EAAE,CAAC,KAAK,CAAC,CAAA;IAClB,CAAC,EACD,CAAC,OAAO,CAAC,CACV,CAAA;IACD,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,OAAO,sDAEe,WAAW,qBACtB,OAAO,iBACV,MAAM,KACf,UAAU;QAEb,CAAC,CAAC,IAAI,IAAI,IAAI;QAEf,4DAA0B,QAAQ,CAAK;QAEtC,IAAI,IAAI,oBAAC,IAAI,gCAAoB,OAAO,EAAC,QAAQ,KAAK,IAAI,GAAI;QAE9D,WAAW,IAAI,CACd,oBAAC,UAAU,kCAET,IAAI,EAAC,OAAO,gBACD,OAAO,EAClB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,GAAG,EACvB,OAAO,EAAE,WAAW,GACpB,CACH,CACG,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,KAAK,CAAA"}
|