@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.
Files changed (687) hide show
  1. package/dist/atoms/Badge/Badge.d.ts +27 -0
  2. package/dist/atoms/Badge/Badge.js +7 -0
  3. package/dist/atoms/Badge/Badge.js.map +1 -0
  4. package/dist/atoms/Badge/index.d.ts +2 -0
  5. package/dist/atoms/Badge/index.js +2 -0
  6. package/dist/atoms/Badge/index.js.map +1 -0
  7. package/dist/atoms/Button/Button.d.ts +45 -0
  8. package/dist/atoms/Button/Button.js +14 -0
  9. package/dist/atoms/Button/Button.js.map +1 -0
  10. package/dist/atoms/Button/index.d.ts +2 -0
  11. package/dist/atoms/Button/index.js +2 -0
  12. package/dist/atoms/Button/index.js.map +1 -0
  13. package/dist/atoms/Checkbox/Checkbox.d.ts +14 -0
  14. package/dist/atoms/Checkbox/Checkbox.js +6 -0
  15. package/dist/atoms/Checkbox/Checkbox.js.map +1 -0
  16. package/dist/atoms/Checkbox/index.d.ts +2 -0
  17. package/dist/atoms/Checkbox/index.js +2 -0
  18. package/dist/atoms/Checkbox/index.js.map +1 -0
  19. package/dist/atoms/Icon/Icon.d.ts +35 -0
  20. package/dist/atoms/Icon/Icon.js +14 -0
  21. package/dist/atoms/Icon/Icon.js.map +1 -0
  22. package/dist/atoms/Icon/index.d.ts +2 -0
  23. package/dist/atoms/Icon/index.js +2 -0
  24. package/dist/atoms/Icon/index.js.map +1 -0
  25. package/dist/atoms/Input/Input.d.ts +10 -0
  26. package/dist/atoms/Input/Input.js +6 -0
  27. package/dist/atoms/Input/Input.js.map +1 -0
  28. package/dist/atoms/Input/index.d.ts +2 -0
  29. package/dist/atoms/Input/index.js +2 -0
  30. package/dist/atoms/Input/index.js.map +1 -0
  31. package/dist/atoms/Label/Label.d.ts +10 -0
  32. package/dist/atoms/Label/Label.js +6 -0
  33. package/dist/atoms/Label/Label.js.map +1 -0
  34. package/dist/atoms/Label/index.d.ts +2 -0
  35. package/dist/atoms/Label/index.js +2 -0
  36. package/dist/atoms/Label/index.js.map +1 -0
  37. package/dist/atoms/Link/Link.d.ts +25 -0
  38. package/dist/atoms/Link/Link.js +7 -0
  39. package/dist/atoms/Link/Link.js.map +1 -0
  40. package/dist/atoms/Link/index.d.ts +2 -0
  41. package/dist/atoms/Link/index.js +2 -0
  42. package/dist/atoms/Link/index.js.map +1 -0
  43. package/dist/atoms/List/List.d.ts +16 -0
  44. package/dist/atoms/List/List.js +7 -0
  45. package/dist/atoms/List/List.js.map +1 -0
  46. package/dist/atoms/List/index.d.ts +2 -0
  47. package/dist/atoms/List/index.js +2 -0
  48. package/dist/atoms/List/index.js.map +1 -0
  49. package/dist/atoms/Loader/Loader.d.ts +14 -0
  50. package/dist/atoms/Loader/Loader.js +9 -0
  51. package/dist/atoms/Loader/Loader.js.map +1 -0
  52. package/dist/atoms/Loader/index.d.ts +2 -0
  53. package/dist/atoms/Loader/index.js +2 -0
  54. package/dist/atoms/Loader/index.js.map +1 -0
  55. package/dist/atoms/Overlay/Overlay.d.ts +10 -0
  56. package/dist/atoms/Overlay/Overlay.js +6 -0
  57. package/dist/atoms/Overlay/Overlay.js.map +1 -0
  58. package/dist/atoms/Overlay/index.d.ts +2 -0
  59. package/dist/atoms/Overlay/index.js +2 -0
  60. package/dist/atoms/Overlay/index.js.map +1 -0
  61. package/dist/atoms/Price/Price.d.ts +32 -0
  62. package/dist/atoms/Price/Price.js +10 -0
  63. package/dist/atoms/Price/Price.js.map +1 -0
  64. package/dist/atoms/Price/index.d.ts +2 -0
  65. package/dist/atoms/Price/index.js +2 -0
  66. package/dist/atoms/Price/index.js.map +1 -0
  67. package/dist/atoms/Radio/Radio.d.ts +10 -0
  68. package/dist/atoms/Radio/Radio.js +6 -0
  69. package/dist/atoms/Radio/Radio.js.map +1 -0
  70. package/dist/atoms/Radio/index.d.ts +2 -0
  71. package/dist/atoms/Radio/index.js +2 -0
  72. package/dist/atoms/Radio/index.js.map +1 -0
  73. package/dist/atoms/SROnly/SROnly.d.ts +14 -0
  74. package/dist/atoms/SROnly/SROnly.js +7 -0
  75. package/dist/atoms/SROnly/SROnly.js.map +1 -0
  76. package/dist/atoms/SROnly/index.d.ts +1 -0
  77. package/dist/atoms/SROnly/index.js +2 -0
  78. package/dist/atoms/SROnly/index.js.map +1 -0
  79. package/dist/atoms/Select/Select.d.ts +20 -0
  80. package/dist/atoms/Select/Select.js +9 -0
  81. package/dist/atoms/Select/Select.js.map +1 -0
  82. package/dist/atoms/Select/index.d.ts +2 -0
  83. package/dist/atoms/Select/index.js +2 -0
  84. package/dist/atoms/Select/index.js.map +1 -0
  85. package/dist/atoms/Skeleton/Skeleton.d.ts +37 -0
  86. package/dist/atoms/Skeleton/Skeleton.js +10 -0
  87. package/dist/atoms/Skeleton/Skeleton.js.map +1 -0
  88. package/dist/atoms/Skeleton/index.d.ts +2 -0
  89. package/dist/atoms/Skeleton/index.js +2 -0
  90. package/dist/atoms/Skeleton/index.js.map +1 -0
  91. package/dist/atoms/Slider/Slider.d.ts +71 -0
  92. package/dist/atoms/Slider/Slider.js +57 -0
  93. package/dist/atoms/Slider/Slider.js.map +1 -0
  94. package/dist/atoms/Slider/index.d.ts +2 -0
  95. package/dist/atoms/Slider/index.js +2 -0
  96. package/dist/atoms/Slider/index.js.map +1 -0
  97. package/dist/cjs/organisms/ImageGallery/ImageZoom.d.ts +7 -0
  98. package/dist/cjs/organisms/ImageGallery/ImageZoom.js +9 -0
  99. package/dist/cjs/organisms/ImageGallery/ImageZoom.js.map +1 -0
  100. package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js +1 -1
  101. package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
  102. package/dist/esm/organisms/ImageGallery/ImageZoom.d.ts +7 -0
  103. package/dist/esm/organisms/ImageGallery/ImageZoom.js +6 -0
  104. package/dist/esm/organisms/ImageGallery/ImageZoom.js.map +1 -0
  105. package/dist/esm/organisms/PaymentMethods/PaymentMethods.js +1 -1
  106. package/dist/esm/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
  107. package/dist/hooks/UIProvider.d.ts +34 -0
  108. package/dist/hooks/UIProvider.js +78 -0
  109. package/dist/hooks/UIProvider.js.map +1 -0
  110. package/dist/hooks/index.d.ts +8 -0
  111. package/dist/hooks/index.js +8 -0
  112. package/dist/hooks/index.js.map +1 -0
  113. package/dist/hooks/useFadeEffect.d.ts +5 -0
  114. package/dist/hooks/useFadeEffect.js +18 -0
  115. package/dist/hooks/useFadeEffect.js.map +1 -0
  116. package/dist/hooks/useScrollDirection.d.ts +1 -0
  117. package/dist/hooks/useScrollDirection.js +22 -0
  118. package/dist/hooks/useScrollDirection.js.map +1 -0
  119. package/dist/hooks/useSearch.d.ts +7 -0
  120. package/dist/hooks/useSearch.js +10 -0
  121. package/dist/hooks/useSearch.js.map +1 -0
  122. package/dist/hooks/useSlideVisibility.d.ts +9 -0
  123. package/dist/hooks/useSlideVisibility.js +29 -0
  124. package/dist/hooks/useSlideVisibility.js.map +1 -0
  125. package/dist/hooks/useSlider.d.ts +64 -0
  126. package/dist/hooks/useSlider.js +103 -0
  127. package/dist/hooks/useSlider.js.map +1 -0
  128. package/dist/hooks/useTrapFocus.d.ts +8 -0
  129. package/dist/hooks/useTrapFocus.js +75 -0
  130. package/dist/hooks/useTrapFocus.js.map +1 -0
  131. package/dist/index.d.ts +141 -0
  132. package/dist/index.js +78 -0
  133. package/dist/index.js.map +1 -0
  134. package/dist/molecules/Accordion/Accordion.d.ts +26 -0
  135. package/dist/molecules/Accordion/Accordion.js +21 -0
  136. package/dist/molecules/Accordion/Accordion.js.map +1 -0
  137. package/dist/molecules/Accordion/AccordionButton.d.ts +19 -0
  138. package/dist/molecules/Accordion/AccordionButton.js +37 -0
  139. package/dist/molecules/Accordion/AccordionButton.js.map +1 -0
  140. package/dist/molecules/Accordion/AccordionItem.d.ts +31 -0
  141. package/dist/molecules/Accordion/AccordionItem.js +22 -0
  142. package/dist/molecules/Accordion/AccordionItem.js.map +1 -0
  143. package/dist/molecules/Accordion/AccordionPanel.d.ts +10 -0
  144. package/dist/molecules/Accordion/AccordionPanel.js +10 -0
  145. package/dist/molecules/Accordion/AccordionPanel.js.map +1 -0
  146. package/dist/molecules/Accordion/index.d.ts +8 -0
  147. package/dist/molecules/Accordion/index.js +5 -0
  148. package/dist/molecules/Accordion/index.js.map +1 -0
  149. package/dist/molecules/Alert/Alert.d.ts +29 -0
  150. package/dist/molecules/Alert/Alert.js +17 -0
  151. package/dist/molecules/Alert/Alert.js.map +1 -0
  152. package/dist/molecules/Alert/index.d.ts +2 -0
  153. package/dist/molecules/Alert/index.js +2 -0
  154. package/dist/molecules/Alert/index.js.map +1 -0
  155. package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +6 -0
  156. package/dist/molecules/Breadcrumb/Breadcrumb.js +7 -0
  157. package/dist/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
  158. package/dist/molecules/Breadcrumb/BreadcrumbBase.d.ts +47 -0
  159. package/dist/molecules/Breadcrumb/BreadcrumbBase.js +45 -0
  160. package/dist/molecules/Breadcrumb/BreadcrumbBase.js.map +1 -0
  161. package/dist/molecules/Breadcrumb/BreadcrumbPure.d.ts +14 -0
  162. package/dist/molecules/Breadcrumb/BreadcrumbPure.js +12 -0
  163. package/dist/molecules/Breadcrumb/BreadcrumbPure.js.map +1 -0
  164. package/dist/molecules/Breadcrumb/Divider.d.ts +4 -0
  165. package/dist/molecules/Breadcrumb/Divider.js +14 -0
  166. package/dist/molecules/Breadcrumb/Divider.js.map +1 -0
  167. package/dist/molecules/Breadcrumb/ListItem.d.ts +10 -0
  168. package/dist/molecules/Breadcrumb/ListItem.js +20 -0
  169. package/dist/molecules/Breadcrumb/ListItem.js.map +1 -0
  170. package/dist/molecules/Breadcrumb/index.d.ts +4 -0
  171. package/dist/molecules/Breadcrumb/index.js +3 -0
  172. package/dist/molecules/Breadcrumb/index.js.map +1 -0
  173. package/dist/molecules/BuyButton/BuyButton.d.ts +5 -0
  174. package/dist/molecules/BuyButton/BuyButton.js +7 -0
  175. package/dist/molecules/BuyButton/BuyButton.js.map +1 -0
  176. package/dist/molecules/BuyButton/index.d.ts +1 -0
  177. package/dist/molecules/BuyButton/index.js +2 -0
  178. package/dist/molecules/BuyButton/index.js.map +1 -0
  179. package/dist/molecules/Carousel/Carousel.d.ts +60 -0
  180. package/dist/molecules/Carousel/Carousel.js +188 -0
  181. package/dist/molecules/Carousel/Carousel.js.map +1 -0
  182. package/dist/molecules/Carousel/CarouselBullets.d.ts +39 -0
  183. package/dist/molecules/Carousel/CarouselBullets.js +12 -0
  184. package/dist/molecules/Carousel/CarouselBullets.js.map +1 -0
  185. package/dist/molecules/Carousel/CarouselItem.d.ts +13 -0
  186. package/dist/molecules/Carousel/CarouselItem.js +20 -0
  187. package/dist/molecules/Carousel/CarouselItem.js.map +1 -0
  188. package/dist/molecules/Carousel/index.d.ts +6 -0
  189. package/dist/molecules/Carousel/index.js +4 -0
  190. package/dist/molecules/Carousel/index.js.map +1 -0
  191. package/dist/molecules/CartItem/CartItem.d.ts +32 -0
  192. package/dist/molecules/CartItem/CartItem.js +12 -0
  193. package/dist/molecules/CartItem/CartItem.js.map +1 -0
  194. package/dist/molecules/CartItem/CartItemImage.d.ts +10 -0
  195. package/dist/molecules/CartItem/CartItemImage.js +6 -0
  196. package/dist/molecules/CartItem/CartItemImage.js.map +1 -0
  197. package/dist/molecules/CartItem/CartItemSummary.d.ts +21 -0
  198. package/dist/molecules/CartItem/CartItemSummary.js +12 -0
  199. package/dist/molecules/CartItem/CartItemSummary.js.map +1 -0
  200. package/dist/molecules/CartItem/index.d.ts +6 -0
  201. package/dist/molecules/CartItem/index.js +4 -0
  202. package/dist/molecules/CartItem/index.js.map +1 -0
  203. package/dist/molecules/CheckboxField/CheckboxField.d.ts +25 -0
  204. package/dist/molecules/CheckboxField/CheckboxField.js +10 -0
  205. package/dist/molecules/CheckboxField/CheckboxField.js.map +1 -0
  206. package/dist/molecules/CheckboxField/index.d.ts +2 -0
  207. package/dist/molecules/CheckboxField/index.js +2 -0
  208. package/dist/molecules/CheckboxField/index.js.map +1 -0
  209. package/dist/molecules/DiscountBadge/DiscountBadge.d.ts +26 -0
  210. package/dist/molecules/DiscountBadge/DiscountBadge.js +19 -0
  211. package/dist/molecules/DiscountBadge/DiscountBadge.js.map +1 -0
  212. package/dist/molecules/DiscountBadge/index.d.ts +2 -0
  213. package/dist/molecules/DiscountBadge/index.js +2 -0
  214. package/dist/molecules/DiscountBadge/index.js.map +1 -0
  215. package/dist/molecules/DiscountBadge/useDiscountPercent.d.ts +1 -0
  216. package/dist/molecules/DiscountBadge/useDiscountPercent.js +9 -0
  217. package/dist/molecules/DiscountBadge/useDiscountPercent.js.map +1 -0
  218. package/dist/molecules/Dropdown/Dropdown.d.ts +18 -0
  219. package/dist/molecules/Dropdown/Dropdown.js +66 -0
  220. package/dist/molecules/Dropdown/Dropdown.js.map +1 -0
  221. package/dist/molecules/Dropdown/DropdownButton.d.ts +14 -0
  222. package/dist/molecules/Dropdown/DropdownButton.js +12 -0
  223. package/dist/molecules/Dropdown/DropdownButton.js.map +1 -0
  224. package/dist/molecules/Dropdown/DropdownItem.d.ts +14 -0
  225. package/dist/molecules/Dropdown/DropdownItem.js +28 -0
  226. package/dist/molecules/Dropdown/DropdownItem.js.map +1 -0
  227. package/dist/molecules/Dropdown/DropdownMenu.d.ts +26 -0
  228. package/dist/molecules/Dropdown/DropdownMenu.js +66 -0
  229. package/dist/molecules/Dropdown/DropdownMenu.js.map +1 -0
  230. package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -0
  231. package/dist/molecules/Dropdown/contexts/DropdownContext.js +11 -0
  232. package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
  233. package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +6 -0
  234. package/dist/molecules/Dropdown/hooks/useDropdown.js +14 -0
  235. package/dist/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
  236. package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -0
  237. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
  238. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
  239. package/dist/molecules/Dropdown/index.d.ts +8 -0
  240. package/dist/molecules/Dropdown/index.js +5 -0
  241. package/dist/molecules/Dropdown/index.js.map +1 -0
  242. package/dist/molecules/Gift/Gift.d.ts +15 -0
  243. package/dist/molecules/Gift/Gift.js +8 -0
  244. package/dist/molecules/Gift/Gift.js.map +1 -0
  245. package/dist/molecules/Gift/GiftContent.d.ts +27 -0
  246. package/dist/molecules/Gift/GiftContent.js +14 -0
  247. package/dist/molecules/Gift/GiftContent.js.map +1 -0
  248. package/dist/molecules/Gift/GiftImage.d.ts +10 -0
  249. package/dist/molecules/Gift/GiftImage.js +6 -0
  250. package/dist/molecules/Gift/GiftImage.js.map +1 -0
  251. package/dist/molecules/Gift/index.d.ts +6 -0
  252. package/dist/molecules/Gift/index.js +4 -0
  253. package/dist/molecules/Gift/index.js.map +1 -0
  254. package/dist/molecules/IconButton/IconButton.d.ts +19 -0
  255. package/dist/molecules/IconButton/IconButton.js +7 -0
  256. package/dist/molecules/IconButton/IconButton.js.map +1 -0
  257. package/dist/molecules/IconButton/index.d.ts +2 -0
  258. package/dist/molecules/IconButton/index.js +2 -0
  259. package/dist/molecules/IconButton/index.js.map +1 -0
  260. package/dist/molecules/InputField/InputField.d.ts +60 -0
  261. package/dist/molecules/InputField/InputField.js +18 -0
  262. package/dist/molecules/InputField/InputField.js.map +1 -0
  263. package/dist/molecules/InputField/index.d.ts +2 -0
  264. package/dist/molecules/InputField/index.js +2 -0
  265. package/dist/molecules/InputField/index.js.map +1 -0
  266. package/dist/molecules/LinkButton/LinkButton.d.ts +6 -0
  267. package/dist/molecules/LinkButton/LinkButton.js +17 -0
  268. package/dist/molecules/LinkButton/LinkButton.js.map +1 -0
  269. package/dist/molecules/LinkButton/index.d.ts +2 -0
  270. package/dist/molecules/LinkButton/index.js +2 -0
  271. package/dist/molecules/LinkButton/index.js.map +1 -0
  272. package/dist/molecules/Modal/Modal.d.ts +39 -0
  273. package/dist/molecules/Modal/Modal.js +38 -0
  274. package/dist/molecules/Modal/Modal.js.map +1 -0
  275. package/dist/molecules/Modal/ModalBody.d.ts +9 -0
  276. package/dist/molecules/Modal/ModalBody.js +4 -0
  277. package/dist/molecules/Modal/ModalBody.js.map +1 -0
  278. package/dist/molecules/Modal/ModalContent.d.ts +11 -0
  279. package/dist/molecules/Modal/ModalContent.js +23 -0
  280. package/dist/molecules/Modal/ModalContent.js.map +1 -0
  281. package/dist/molecules/Modal/ModalHeader.d.ts +22 -0
  282. package/dist/molecules/Modal/ModalHeader.js +11 -0
  283. package/dist/molecules/Modal/ModalHeader.js.map +1 -0
  284. package/dist/molecules/Modal/index.d.ts +5 -0
  285. package/dist/molecules/Modal/index.js +4 -0
  286. package/dist/molecules/Modal/index.js.map +1 -0
  287. package/dist/molecules/NavbarLinks/NavbarLinks.d.ts +10 -0
  288. package/dist/molecules/NavbarLinks/NavbarLinks.js +6 -0
  289. package/dist/molecules/NavbarLinks/NavbarLinks.js.map +1 -0
  290. package/dist/molecules/NavbarLinks/NavbarLinksList.d.ts +10 -0
  291. package/dist/molecules/NavbarLinks/NavbarLinksList.js +7 -0
  292. package/dist/molecules/NavbarLinks/NavbarLinksList.js.map +1 -0
  293. package/dist/molecules/NavbarLinks/NavbarLinksListItem.d.ts +10 -0
  294. package/dist/molecules/NavbarLinks/NavbarLinksListItem.js +6 -0
  295. package/dist/molecules/NavbarLinks/NavbarLinksListItem.js.map +1 -0
  296. package/dist/molecules/NavbarLinks/index.d.ts +6 -0
  297. package/dist/molecules/NavbarLinks/index.js +4 -0
  298. package/dist/molecules/NavbarLinks/index.js.map +1 -0
  299. package/dist/molecules/OrderSummary/OrderSummary.d.ts +35 -0
  300. package/dist/molecules/OrderSummary/OrderSummary.js +16 -0
  301. package/dist/molecules/OrderSummary/OrderSummary.js.map +1 -0
  302. package/dist/molecules/OrderSummary/index.d.ts +2 -0
  303. package/dist/molecules/OrderSummary/index.js +2 -0
  304. package/dist/molecules/OrderSummary/index.js.map +1 -0
  305. package/dist/molecules/ProductCard/ProductCard.d.ts +23 -0
  306. package/dist/molecules/ProductCard/ProductCard.js +6 -0
  307. package/dist/molecules/ProductCard/ProductCard.js.map +1 -0
  308. package/dist/molecules/ProductCard/ProductCardContent.d.ts +48 -0
  309. package/dist/molecules/ProductCard/ProductCardContent.js +19 -0
  310. package/dist/molecules/ProductCard/ProductCardContent.js.map +1 -0
  311. package/dist/molecules/ProductCard/ProductCardImage.d.ts +14 -0
  312. package/dist/molecules/ProductCard/ProductCardImage.js +8 -0
  313. package/dist/molecules/ProductCard/ProductCardImage.js.map +1 -0
  314. package/dist/molecules/ProductCard/index.d.ts +6 -0
  315. package/dist/molecules/ProductCard/index.js +4 -0
  316. package/dist/molecules/ProductCard/index.js.map +1 -0
  317. package/dist/molecules/ProductPrice/ProductPrice.d.ts +24 -0
  318. package/dist/molecules/ProductPrice/ProductPrice.js +11 -0
  319. package/dist/molecules/ProductPrice/ProductPrice.js.map +1 -0
  320. package/dist/molecules/ProductPrice/index.d.ts +2 -0
  321. package/dist/molecules/ProductPrice/index.js +2 -0
  322. package/dist/molecules/ProductPrice/index.js.map +1 -0
  323. package/dist/molecules/ProductTitle/ProductTitle.d.ts +30 -0
  324. package/dist/molecules/ProductTitle/ProductTitle.js +16 -0
  325. package/dist/molecules/ProductTitle/ProductTitle.js.map +1 -0
  326. package/dist/molecules/ProductTitle/index.d.ts +2 -0
  327. package/dist/molecules/ProductTitle/index.js +2 -0
  328. package/dist/molecules/ProductTitle/index.js.map +1 -0
  329. package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +31 -0
  330. package/dist/molecules/QuantitySelector/QuantitySelector.js +37 -0
  331. package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
  332. package/dist/molecules/QuantitySelector/index.d.ts +2 -0
  333. package/dist/molecules/QuantitySelector/index.js +2 -0
  334. package/dist/molecules/QuantitySelector/index.js.map +1 -0
  335. package/dist/molecules/RadioField/RadioField.d.ts +26 -0
  336. package/dist/molecules/RadioField/RadioField.js +10 -0
  337. package/dist/molecules/RadioField/RadioField.js.map +1 -0
  338. package/dist/molecules/RadioField/index.d.ts +2 -0
  339. package/dist/molecules/RadioField/index.js +2 -0
  340. package/dist/molecules/RadioField/index.js.map +1 -0
  341. package/dist/molecules/RadioGroup/RadioGroup.d.ts +6 -0
  342. package/dist/molecules/RadioGroup/RadioGroup.js +10 -0
  343. package/dist/molecules/RadioGroup/RadioGroup.js.map +1 -0
  344. package/dist/molecules/RadioGroup/RadioOption.d.ts +19 -0
  345. package/dist/molecules/RadioGroup/RadioOption.js +11 -0
  346. package/dist/molecules/RadioGroup/RadioOption.js.map +1 -0
  347. package/dist/molecules/RadioGroup/index.d.ts +4 -0
  348. package/dist/molecules/RadioGroup/index.js +3 -0
  349. package/dist/molecules/RadioGroup/index.js.map +1 -0
  350. package/dist/molecules/RadioGroup/useRadioGroup.d.ts +17 -0
  351. package/dist/molecules/RadioGroup/useRadioGroup.js +10 -0
  352. package/dist/molecules/RadioGroup/useRadioGroup.js.map +1 -0
  353. package/dist/molecules/Rating/Rating.d.ts +29 -0
  354. package/dist/molecules/Rating/Rating.js +27 -0
  355. package/dist/molecules/Rating/Rating.js.map +1 -0
  356. package/dist/molecules/Rating/index.d.ts +2 -0
  357. package/dist/molecules/Rating/index.js +2 -0
  358. package/dist/molecules/Rating/index.js.map +1 -0
  359. package/dist/molecules/RegionBar/RegionBar.d.ts +30 -0
  360. package/dist/molecules/RegionBar/RegionBar.js +12 -0
  361. package/dist/molecules/RegionBar/RegionBar.js.map +1 -0
  362. package/dist/molecules/RegionBar/index.d.ts +2 -0
  363. package/dist/molecules/RegionBar/index.js +2 -0
  364. package/dist/molecules/RegionBar/index.js.map +1 -0
  365. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.d.ts +9 -0
  366. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js +12 -0
  367. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js.map +1 -0
  368. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.d.ts +27 -0
  369. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js +27 -0
  370. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js.map +1 -0
  371. package/dist/molecules/SearchAutoComplete/index.d.ts +4 -0
  372. package/dist/molecules/SearchAutoComplete/index.js +3 -0
  373. package/dist/molecules/SearchAutoComplete/index.js.map +1 -0
  374. package/dist/molecules/SearchDropdown/SearchDropdown.d.ts +14 -0
  375. package/dist/molecules/SearchDropdown/SearchDropdown.js +14 -0
  376. package/dist/molecules/SearchDropdown/SearchDropdown.js.map +1 -0
  377. package/dist/molecules/SearchDropdown/index.d.ts +2 -0
  378. package/dist/molecules/SearchDropdown/index.js +2 -0
  379. package/dist/molecules/SearchDropdown/index.js.map +1 -0
  380. package/dist/molecules/SearchHistory/SearchHistory.d.ts +21 -0
  381. package/dist/molecules/SearchHistory/SearchHistory.js +15 -0
  382. package/dist/molecules/SearchHistory/SearchHistory.js.map +1 -0
  383. package/dist/molecules/SearchHistory/SearchHistoryTerm.d.ts +23 -0
  384. package/dist/molecules/SearchHistory/SearchHistoryTerm.js +10 -0
  385. package/dist/molecules/SearchHistory/SearchHistoryTerm.js.map +1 -0
  386. package/dist/molecules/SearchHistory/index.d.ts +4 -0
  387. package/dist/molecules/SearchHistory/index.js +3 -0
  388. package/dist/molecules/SearchHistory/index.js.map +1 -0
  389. package/dist/molecules/SearchInputField/SearchInputField.d.ts +36 -0
  390. package/dist/molecules/SearchInputField/SearchInputField.js +21 -0
  391. package/dist/molecules/SearchInputField/SearchInputField.js.map +1 -0
  392. package/dist/molecules/SearchInputField/index.d.ts +2 -0
  393. package/dist/molecules/SearchInputField/index.js +2 -0
  394. package/dist/molecules/SearchInputField/index.js.map +1 -0
  395. package/dist/molecules/SearchProducts/SearchProductItem.d.ts +16 -0
  396. package/dist/molecules/SearchProducts/SearchProductItem.js +8 -0
  397. package/dist/molecules/SearchProducts/SearchProductItem.js.map +1 -0
  398. package/dist/molecules/SearchProducts/SearchProductItemContent.d.ts +14 -0
  399. package/dist/molecules/SearchProducts/SearchProductItemContent.js +9 -0
  400. package/dist/molecules/SearchProducts/SearchProductItemContent.js.map +1 -0
  401. package/dist/molecules/SearchProducts/SearchProductItemImage.d.ts +10 -0
  402. package/dist/molecules/SearchProducts/SearchProductItemImage.js +6 -0
  403. package/dist/molecules/SearchProducts/SearchProductItemImage.js.map +1 -0
  404. package/dist/molecules/SearchProducts/SearchProducts.d.ts +13 -0
  405. package/dist/molecules/SearchProducts/SearchProducts.js +14 -0
  406. package/dist/molecules/SearchProducts/SearchProducts.js.map +1 -0
  407. package/dist/molecules/SearchProducts/index.d.ts +8 -0
  408. package/dist/molecules/SearchProducts/index.js +5 -0
  409. package/dist/molecules/SearchProducts/index.js.map +1 -0
  410. package/dist/molecules/SearchProvider/SearchProvider.d.ts +29 -0
  411. package/dist/molecules/SearchProvider/SearchProvider.js +8 -0
  412. package/dist/molecules/SearchProvider/SearchProvider.js.map +1 -0
  413. package/dist/molecules/SearchProvider/index.d.ts +2 -0
  414. package/dist/molecules/SearchProvider/index.js +2 -0
  415. package/dist/molecules/SearchProvider/index.js.map +1 -0
  416. package/dist/molecules/SearchTop/SearchTop.d.ts +14 -0
  417. package/dist/molecules/SearchTop/SearchTop.js +15 -0
  418. package/dist/molecules/SearchTop/SearchTop.js.map +1 -0
  419. package/dist/molecules/SearchTop/SearchTopTerm.d.ts +23 -0
  420. package/dist/molecules/SearchTop/SearchTopTerm.js +10 -0
  421. package/dist/molecules/SearchTop/SearchTopTerm.js.map +1 -0
  422. package/dist/molecules/SearchTop/index.d.ts +4 -0
  423. package/dist/molecules/SearchTop/index.js +3 -0
  424. package/dist/molecules/SearchTop/index.js.map +1 -0
  425. package/dist/molecules/SelectField/SelectField.d.ts +12 -0
  426. package/dist/molecules/SelectField/SelectField.js +9 -0
  427. package/dist/molecules/SelectField/SelectField.js.map +1 -0
  428. package/dist/molecules/SelectField/index.d.ts +2 -0
  429. package/dist/molecules/SelectField/index.js +2 -0
  430. package/dist/molecules/SelectField/index.js.map +1 -0
  431. package/dist/molecules/SkuSelector/SkuSelector.d.ts +78 -0
  432. package/dist/molecules/SkuSelector/SkuSelector.js +31 -0
  433. package/dist/molecules/SkuSelector/SkuSelector.js.map +1 -0
  434. package/dist/molecules/SkuSelector/index.d.ts +2 -0
  435. package/dist/molecules/SkuSelector/index.js +2 -0
  436. package/dist/molecules/SkuSelector/index.js.map +1 -0
  437. package/dist/molecules/SkuSelector/useDefineVariant.d.ts +3 -0
  438. package/dist/molecules/SkuSelector/useDefineVariant.js +27 -0
  439. package/dist/molecules/SkuSelector/useDefineVariant.js.map +1 -0
  440. package/dist/molecules/SkuSelector/useSkuSlug.d.ts +6 -0
  441. package/dist/molecules/SkuSelector/useSkuSlug.js +23 -0
  442. package/dist/molecules/SkuSelector/useSkuSlug.js.map +1 -0
  443. package/dist/molecules/Table/Table.d.ts +26 -0
  444. package/dist/molecules/Table/Table.js +7 -0
  445. package/dist/molecules/Table/Table.js.map +1 -0
  446. package/dist/molecules/Table/TableBody.d.ts +12 -0
  447. package/dist/molecules/Table/TableBody.js +6 -0
  448. package/dist/molecules/Table/TableBody.js.map +1 -0
  449. package/dist/molecules/Table/TableCell.d.ts +26 -0
  450. package/dist/molecules/Table/TableCell.js +7 -0
  451. package/dist/molecules/Table/TableCell.js.map +1 -0
  452. package/dist/molecules/Table/TableFooter.d.ts +12 -0
  453. package/dist/molecules/Table/TableFooter.js +6 -0
  454. package/dist/molecules/Table/TableFooter.js.map +1 -0
  455. package/dist/molecules/Table/TableHead.d.ts +12 -0
  456. package/dist/molecules/Table/TableHead.js +6 -0
  457. package/dist/molecules/Table/TableHead.js.map +1 -0
  458. package/dist/molecules/Table/TableRow.d.ts +12 -0
  459. package/dist/molecules/Table/TableRow.js +6 -0
  460. package/dist/molecules/Table/TableRow.js.map +1 -0
  461. package/dist/molecules/Table/index.d.ts +12 -0
  462. package/dist/molecules/Table/index.js +7 -0
  463. package/dist/molecules/Table/index.js.map +1 -0
  464. package/dist/molecules/Tag/Tag.d.ts +27 -0
  465. package/dist/molecules/Tag/Tag.js +9 -0
  466. package/dist/molecules/Tag/Tag.js.map +1 -0
  467. package/dist/molecules/Tag/index.d.ts +2 -0
  468. package/dist/molecules/Tag/index.js +2 -0
  469. package/dist/molecules/Tag/index.js.map +1 -0
  470. package/dist/molecules/Toast/Toast.d.ts +3 -0
  471. package/dist/molecules/Toast/Toast.js +29 -0
  472. package/dist/molecules/Toast/Toast.js.map +1 -0
  473. package/dist/molecules/Toast/index.d.ts +1 -0
  474. package/dist/molecules/Toast/index.js +2 -0
  475. package/dist/molecules/Toast/index.js.map +1 -0
  476. package/dist/molecules/Toggle/Toggle.d.ts +22 -0
  477. package/dist/molecules/Toggle/Toggle.js +10 -0
  478. package/dist/molecules/Toggle/Toggle.js.map +1 -0
  479. package/dist/molecules/Toggle/index.d.ts +2 -0
  480. package/dist/molecules/Toggle/index.js +2 -0
  481. package/dist/molecules/Toggle/index.js.map +1 -0
  482. package/dist/molecules/ToggleField/ToggleField.d.ts +29 -0
  483. package/dist/molecules/ToggleField/ToggleField.js +9 -0
  484. package/dist/molecules/ToggleField/ToggleField.js.map +1 -0
  485. package/dist/molecules/ToggleField/index.d.ts +2 -0
  486. package/dist/molecules/ToggleField/index.js +2 -0
  487. package/dist/molecules/ToggleField/index.js.map +1 -0
  488. package/dist/organisms/BannerText/BannerText.d.ts +27 -0
  489. package/dist/organisms/BannerText/BannerText.js +16 -0
  490. package/dist/organisms/BannerText/BannerText.js.map +1 -0
  491. package/dist/organisms/BannerText/BannerTextContent.d.ts +30 -0
  492. package/dist/organisms/BannerText/BannerTextContent.js +13 -0
  493. package/dist/organisms/BannerText/BannerTextContent.js.map +1 -0
  494. package/dist/organisms/BannerText/index.d.ts +4 -0
  495. package/dist/organisms/BannerText/index.js +3 -0
  496. package/dist/organisms/BannerText/index.js.map +1 -0
  497. package/dist/organisms/CartSidebar/CartSidebar.d.ts +45 -0
  498. package/dist/organisms/CartSidebar/CartSidebar.js +18 -0
  499. package/dist/organisms/CartSidebar/CartSidebar.js.map +1 -0
  500. package/dist/organisms/CartSidebar/CartSidebarFooter.d.ts +5 -0
  501. package/dist/organisms/CartSidebar/CartSidebarFooter.js +6 -0
  502. package/dist/organisms/CartSidebar/CartSidebarFooter.js.map +1 -0
  503. package/dist/organisms/CartSidebar/CartSidebarList.d.ts +5 -0
  504. package/dist/organisms/CartSidebar/CartSidebarList.js +7 -0
  505. package/dist/organisms/CartSidebar/CartSidebarList.js.map +1 -0
  506. package/dist/organisms/CartSidebar/index.d.ts +4 -0
  507. package/dist/organisms/CartSidebar/index.js +4 -0
  508. package/dist/organisms/CartSidebar/index.js.map +1 -0
  509. package/dist/organisms/EmptyState/EmptyState.d.ts +28 -0
  510. package/dist/organisms/EmptyState/EmptyState.js +10 -0
  511. package/dist/organisms/EmptyState/EmptyState.js.map +1 -0
  512. package/dist/organisms/EmptyState/index.d.ts +2 -0
  513. package/dist/organisms/EmptyState/index.js +2 -0
  514. package/dist/organisms/EmptyState/index.js.map +1 -0
  515. package/dist/organisms/Filter/Filter.d.ts +26 -0
  516. package/dist/organisms/Filter/Filter.js +9 -0
  517. package/dist/organisms/Filter/Filter.js.map +1 -0
  518. package/dist/organisms/Filter/FilterFacetBoolean.d.ts +5 -0
  519. package/dist/organisms/Filter/FilterFacetBoolean.js +7 -0
  520. package/dist/organisms/Filter/FilterFacetBoolean.js.map +1 -0
  521. package/dist/organisms/Filter/FilterFacetBooleanItem.d.ts +38 -0
  522. package/dist/organisms/Filter/FilterFacetBooleanItem.js +12 -0
  523. package/dist/organisms/Filter/FilterFacetBooleanItem.js.map +1 -0
  524. package/dist/organisms/Filter/FilterFacetRange.d.ts +32 -0
  525. package/dist/organisms/Filter/FilterFacetRange.js +11 -0
  526. package/dist/organisms/Filter/FilterFacetRange.js.map +1 -0
  527. package/dist/organisms/Filter/FilterFacets.d.ts +21 -0
  528. package/dist/organisms/Filter/FilterFacets.js +9 -0
  529. package/dist/organisms/Filter/FilterFacets.js.map +1 -0
  530. package/dist/organisms/Filter/FilterSlider.d.ts +36 -0
  531. package/dist/organisms/Filter/FilterSlider.js +22 -0
  532. package/dist/organisms/Filter/FilterSlider.js.map +1 -0
  533. package/dist/organisms/Filter/index.d.ts +11 -0
  534. package/dist/organisms/Filter/index.js +7 -0
  535. package/dist/organisms/Filter/index.js.map +1 -0
  536. package/dist/organisms/Hero/Hero.d.ts +27 -0
  537. package/dist/organisms/Hero/Hero.js +16 -0
  538. package/dist/organisms/Hero/Hero.js.map +1 -0
  539. package/dist/organisms/Hero/HeroHeader.d.ts +34 -0
  540. package/dist/organisms/Hero/HeroHeader.js +15 -0
  541. package/dist/organisms/Hero/HeroHeader.js.map +1 -0
  542. package/dist/organisms/Hero/HeroImage.d.ts +10 -0
  543. package/dist/organisms/Hero/HeroImage.js +6 -0
  544. package/dist/organisms/Hero/HeroImage.js.map +1 -0
  545. package/dist/organisms/Hero/index.d.ts +6 -0
  546. package/dist/organisms/Hero/index.js +4 -0
  547. package/dist/organisms/Hero/index.js.map +1 -0
  548. package/dist/organisms/ImageGallery/ImageGallery.d.ts +42 -0
  549. package/dist/organisms/ImageGallery/ImageGallery.js +10 -0
  550. package/dist/organisms/ImageGallery/ImageGallery.js.map +1 -0
  551. package/dist/organisms/ImageGallery/ImageGallerySelector.d.ts +32 -0
  552. package/dist/organisms/ImageGallery/ImageGallerySelector.js +46 -0
  553. package/dist/organisms/ImageGallery/ImageGallerySelector.js.map +1 -0
  554. package/dist/organisms/ImageGallery/ImageGalleryViewer.d.ts +8 -0
  555. package/dist/organisms/ImageGallery/ImageGalleryViewer.js +6 -0
  556. package/dist/organisms/ImageGallery/ImageGalleryViewer.js.map +1 -0
  557. package/dist/organisms/ImageGallery/ImageZoom.d.ts +7 -0
  558. package/dist/organisms/ImageGallery/ImageZoom.js +6 -0
  559. package/dist/organisms/ImageGallery/ImageZoom.js.map +1 -0
  560. package/dist/organisms/ImageGallery/index.d.ts +6 -0
  561. package/dist/organisms/ImageGallery/index.js +4 -0
  562. package/dist/organisms/ImageGallery/index.js.map +1 -0
  563. package/dist/organisms/Navbar/Navbar.d.ts +14 -0
  564. package/dist/organisms/Navbar/Navbar.js +6 -0
  565. package/dist/organisms/Navbar/Navbar.js.map +1 -0
  566. package/dist/organisms/Navbar/NavbarButtons.d.ts +14 -0
  567. package/dist/organisms/Navbar/NavbarButtons.js +6 -0
  568. package/dist/organisms/Navbar/NavbarButtons.js.map +1 -0
  569. package/dist/organisms/Navbar/NavbarHeader.d.ts +10 -0
  570. package/dist/organisms/Navbar/NavbarHeader.js +6 -0
  571. package/dist/organisms/Navbar/NavbarHeader.js.map +1 -0
  572. package/dist/organisms/Navbar/NavbarRow.d.ts +10 -0
  573. package/dist/organisms/Navbar/NavbarRow.js +6 -0
  574. package/dist/organisms/Navbar/NavbarRow.js.map +1 -0
  575. package/dist/organisms/Navbar/index.d.ts +8 -0
  576. package/dist/organisms/Navbar/index.js +5 -0
  577. package/dist/organisms/Navbar/index.js.map +1 -0
  578. package/dist/organisms/NavbarSlider/NavbarSlider.d.ts +19 -0
  579. package/dist/organisms/NavbarSlider/NavbarSlider.js +7 -0
  580. package/dist/organisms/NavbarSlider/NavbarSlider.js.map +1 -0
  581. package/dist/organisms/NavbarSlider/NavbarSliderContent.d.ts +10 -0
  582. package/dist/organisms/NavbarSlider/NavbarSliderContent.js +6 -0
  583. package/dist/organisms/NavbarSlider/NavbarSliderContent.js.map +1 -0
  584. package/dist/organisms/NavbarSlider/NavbarSliderFooter.d.ts +10 -0
  585. package/dist/organisms/NavbarSlider/NavbarSliderFooter.js +6 -0
  586. package/dist/organisms/NavbarSlider/NavbarSliderFooter.js.map +1 -0
  587. package/dist/organisms/NavbarSlider/NavbarSliderHeader.d.ts +10 -0
  588. package/dist/organisms/NavbarSlider/NavbarSliderHeader.js +7 -0
  589. package/dist/organisms/NavbarSlider/NavbarSliderHeader.js.map +1 -0
  590. package/dist/organisms/NavbarSlider/index.d.ts +8 -0
  591. package/dist/organisms/NavbarSlider/index.js +5 -0
  592. package/dist/organisms/NavbarSlider/index.js.map +1 -0
  593. package/dist/organisms/Newsletter/Newsletter.d.ts +19 -0
  594. package/dist/organisms/Newsletter/Newsletter.js +6 -0
  595. package/dist/organisms/Newsletter/Newsletter.js.map +1 -0
  596. package/dist/organisms/Newsletter/NewsletterAddendum.d.ts +14 -0
  597. package/dist/organisms/Newsletter/NewsletterAddendum.js +6 -0
  598. package/dist/organisms/Newsletter/NewsletterAddendum.js.map +1 -0
  599. package/dist/organisms/Newsletter/NewsletterContent.d.ts +10 -0
  600. package/dist/organisms/Newsletter/NewsletterContent.js +6 -0
  601. package/dist/organisms/Newsletter/NewsletterContent.js.map +1 -0
  602. package/dist/organisms/Newsletter/NewsletterForm.d.ts +14 -0
  603. package/dist/organisms/Newsletter/NewsletterForm.js +6 -0
  604. package/dist/organisms/Newsletter/NewsletterForm.js.map +1 -0
  605. package/dist/organisms/Newsletter/NewsletterHeader.d.ts +22 -0
  606. package/dist/organisms/Newsletter/NewsletterHeader.js +10 -0
  607. package/dist/organisms/Newsletter/NewsletterHeader.js.map +1 -0
  608. package/dist/organisms/Newsletter/index.d.ts +10 -0
  609. package/dist/organisms/Newsletter/index.js +6 -0
  610. package/dist/organisms/Newsletter/index.js.map +1 -0
  611. package/dist/organisms/OutOfStock/OutOfStock.d.ts +43 -0
  612. package/dist/organisms/OutOfStock/OutOfStock.js +13 -0
  613. package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -0
  614. package/dist/organisms/OutOfStock/index.d.ts +2 -0
  615. package/dist/organisms/OutOfStock/index.js +2 -0
  616. package/dist/organisms/OutOfStock/index.js.map +1 -0
  617. package/dist/organisms/PaymentMethods/PaymentMethods.d.ts +32 -0
  618. package/dist/organisms/PaymentMethods/PaymentMethods.js +11 -0
  619. package/dist/organisms/PaymentMethods/PaymentMethods.js.map +1 -0
  620. package/dist/organisms/PaymentMethods/index.d.ts +2 -0
  621. package/dist/organisms/PaymentMethods/index.js +2 -0
  622. package/dist/organisms/PaymentMethods/index.js.map +1 -0
  623. package/dist/organisms/PriceRange/PriceRange.d.ts +25 -0
  624. package/dist/organisms/PriceRange/PriceRange.js +75 -0
  625. package/dist/organisms/PriceRange/PriceRange.js.map +1 -0
  626. package/dist/organisms/PriceRange/index.d.ts +2 -0
  627. package/dist/organisms/PriceRange/index.js +2 -0
  628. package/dist/organisms/PriceRange/index.js.map +1 -0
  629. package/dist/organisms/ProductGrid/ProductGrid.d.ts +10 -0
  630. package/dist/organisms/ProductGrid/ProductGrid.js +6 -0
  631. package/dist/organisms/ProductGrid/ProductGrid.js.map +1 -0
  632. package/dist/organisms/ProductGrid/ProductGridItem.d.ts +10 -0
  633. package/dist/organisms/ProductGrid/ProductGridItem.js +6 -0
  634. package/dist/organisms/ProductGrid/ProductGridItem.js.map +1 -0
  635. package/dist/organisms/ProductGrid/index.d.ts +4 -0
  636. package/dist/organisms/ProductGrid/index.js +3 -0
  637. package/dist/organisms/ProductGrid/index.js.map +1 -0
  638. package/dist/organisms/ProductShelf/ProductShelf.d.ts +10 -0
  639. package/dist/organisms/ProductShelf/ProductShelf.js +6 -0
  640. package/dist/organisms/ProductShelf/ProductShelf.js.map +1 -0
  641. package/dist/organisms/ProductShelf/ProductShelfItem.d.ts +10 -0
  642. package/dist/organisms/ProductShelf/ProductShelfItem.js +6 -0
  643. package/dist/organisms/ProductShelf/ProductShelfItem.js.map +1 -0
  644. package/dist/organisms/ProductShelf/ProductShelfItems.d.ts +10 -0
  645. package/dist/organisms/ProductShelf/ProductShelfItems.js +6 -0
  646. package/dist/organisms/ProductShelf/ProductShelfItems.js.map +1 -0
  647. package/dist/organisms/ProductShelf/index.d.ts +6 -0
  648. package/dist/organisms/ProductShelf/index.js +4 -0
  649. package/dist/organisms/ProductShelf/index.js.map +1 -0
  650. package/dist/organisms/RegionModal/RegionModal.d.ts +72 -0
  651. package/dist/organisms/RegionModal/RegionModal.js +19 -0
  652. package/dist/organisms/RegionModal/RegionModal.js.map +1 -0
  653. package/dist/organisms/RegionModal/index.d.ts +2 -0
  654. package/dist/organisms/RegionModal/index.js +2 -0
  655. package/dist/organisms/RegionModal/index.js.map +1 -0
  656. package/dist/organisms/SearchInput/SearchInput.d.ts +26 -0
  657. package/dist/organisms/SearchInput/SearchInput.js +8 -0
  658. package/dist/organisms/SearchInput/SearchInput.js.map +1 -0
  659. package/dist/organisms/SearchInput/index.d.ts +2 -0
  660. package/dist/organisms/SearchInput/index.js +2 -0
  661. package/dist/organisms/SearchInput/index.js.map +1 -0
  662. package/dist/organisms/ShippingSimulation/ShippingSimulation.d.ts +125 -0
  663. package/dist/organisms/ShippingSimulation/ShippingSimulation.js +22 -0
  664. package/dist/organisms/ShippingSimulation/ShippingSimulation.js.map +1 -0
  665. package/dist/organisms/ShippingSimulation/index.d.ts +2 -0
  666. package/dist/organisms/ShippingSimulation/index.js +2 -0
  667. package/dist/organisms/ShippingSimulation/index.js.map +1 -0
  668. package/dist/organisms/SlideOver/SlideOver.d.ts +39 -0
  669. package/dist/organisms/SlideOver/SlideOver.js +7 -0
  670. package/dist/organisms/SlideOver/SlideOver.js.map +1 -0
  671. package/dist/organisms/SlideOver/SlideOverHeader.d.ts +19 -0
  672. package/dist/organisms/SlideOver/SlideOverHeader.js +9 -0
  673. package/dist/organisms/SlideOver/SlideOverHeader.js.map +1 -0
  674. package/dist/organisms/SlideOver/index.d.ts +4 -0
  675. package/dist/organisms/SlideOver/index.js +3 -0
  676. package/dist/organisms/SlideOver/index.js.map +1 -0
  677. package/dist/typings/PolymorphicGenerics.d.ts +28 -0
  678. package/dist/typings/PolymorphicGenerics.js +8 -0
  679. package/dist/typings/PolymorphicGenerics.js.map +1 -0
  680. package/dist/typings/PriceDefinition.d.ts +6 -0
  681. package/dist/typings/PriceDefinition.js +2 -0
  682. package/dist/typings/PriceDefinition.js.map +1 -0
  683. package/dist/typings/index.d.ts +2 -0
  684. package/dist/typings/index.js +2 -0
  685. package/dist/typings/index.js.map +1 -0
  686. package/package.json +2 -2
  687. package/src/organisms/PaymentMethods/PaymentMethods.tsx +1 -1
@@ -0,0 +1,60 @@
1
+ import type { MutableRefObject } from 'react';
2
+ import React from 'react';
3
+ import type { InputProps } from '../../';
4
+ type DefaultProps = {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * ID to identify input and corresponding label.
11
+ */
12
+ id: string;
13
+ /**
14
+ * The text displayed to identify input text.
15
+ */
16
+ label: string;
17
+ /**
18
+ * The error message is displayed when an error occurs.
19
+ */
20
+ error?: string;
21
+ /**
22
+ * Component's ref.
23
+ */
24
+ inputRef?: MutableRefObject<HTMLInputElement | null>;
25
+ /**
26
+ * Specifies that the whole input component should be disabled.
27
+ */
28
+ disabled?: boolean;
29
+ };
30
+ type ActionableInputField = {
31
+ actionable?: never;
32
+ onSubmit?: never;
33
+ onClear?: never;
34
+ buttonActionText?: string;
35
+ displayClearButton?: never;
36
+ } | {
37
+ /**
38
+ * Adds a Button to the component.
39
+ */
40
+ actionable: true;
41
+ /**
42
+ * Callback function when button is clicked. Required for actionable input.
43
+ */
44
+ onSubmit: () => void;
45
+ /**
46
+ * Callback function when clear button is clicked. Required for actionable input.
47
+ */
48
+ onClear: () => void;
49
+ /**
50
+ * The text displayed on the Button. Suggestion: maximum 9 characters.
51
+ */
52
+ buttonActionText?: string;
53
+ /**
54
+ * Boolean that controls the clear button.
55
+ */
56
+ displayClearButton?: boolean;
57
+ };
58
+ export type InputFieldProps = DefaultProps & Omit<InputProps, 'disabled' | 'onSubmit'> & ActionableInputField;
59
+ declare const InputField: ({ id, label, type, error, displayClearButton, actionable, buttonActionText, onSubmit, onClear, placeholder, inputRef, disabled, value, testId, ...otherProps }: InputFieldProps) => React.JSX.Element;
60
+ export default InputField;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { Button, Icon, IconButton, Input, Label } from '../../';
3
+ const InputField = ({ id, label, type = 'text', error, displayClearButton, actionable, buttonActionText = 'Apply', onSubmit, onClear, placeholder = ' ', // initializes with an empty space to style float label using `placeholder-shown`
4
+ inputRef, disabled, value, testId = 'fs-input-field', ...otherProps }) => {
5
+ const shouldDisplayError = !disabled && error && error !== '';
6
+ const shouldDisplayButton = actionable && !disabled && value !== '';
7
+ return (React.createElement("div", { "data-fs-input-field": true, "data-fs-input-field-actionable": actionable, "data-fs-input-field-error": error && error !== '', "data-testid": testId },
8
+ React.createElement(Input, { id: id, type: type, value: value, ref: inputRef, disabled: disabled, placeholder: placeholder, ...otherProps }),
9
+ React.createElement(Label, { htmlFor: id }, label),
10
+ shouldDisplayButton &&
11
+ (displayClearButton || error ? (React.createElement(IconButton, { size: "small", "aria-label": "Clear Field", icon: React.createElement(Icon, { name: "XCircle" }), onClick: () => {
12
+ onClear?.();
13
+ inputRef?.current?.focus();
14
+ } })) : (React.createElement(Button, { variant: "tertiary", size: "small", onClick: onSubmit }, buttonActionText))),
15
+ shouldDisplayError && (React.createElement("span", { "data-fs-input-field-error-message": true }, error))));
16
+ };
17
+ export default InputField;
18
+ //# sourceMappingURL=InputField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InputField.js","sourceRoot":"","sources":["../../../src/molecules/InputField/InputField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAgE/D,MAAM,UAAU,GAAG,CAAC,EAClB,EAAE,EACF,KAAK,EACL,IAAI,GAAG,MAAM,EACb,KAAK,EACL,kBAAkB,EAClB,UAAU,EACV,gBAAgB,GAAG,OAAO,EAC1B,QAAQ,EACR,OAAO,EACP,WAAW,GAAG,GAAG,EAAE,iFAAiF;AACpG,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,MAAM,GAAG,gBAAgB,EACzB,GAAG,UAAU,EACG,EAAE,EAAE;IACpB,MAAM,kBAAkB,GAAG,CAAC,QAAQ,IAAI,KAAK,IAAI,KAAK,KAAK,EAAE,CAAA;IAC7D,MAAM,mBAAmB,GAAG,UAAU,IAAI,CAAC,QAAQ,IAAI,KAAK,KAAK,EAAE,CAAA;IAEnE,OAAO,CACL,4FAEkC,UAAU,+BACf,KAAK,IAAI,KAAK,KAAK,EAAE,iBACnC,MAAM;QAEnB,oBAAC,KAAK,IACJ,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,KACpB,UAAU,GACd;QACF,oBAAC,KAAK,IAAC,OAAO,EAAE,EAAE,IAAG,KAAK,CAAS;QAElC,mBAAmB;YAClB,CAAC,kBAAkB,IAAI,KAAK,CAAC,CAAC,CAAC,CAC7B,oBAAC,UAAU,IACT,IAAI,EAAC,OAAO,gBACD,aAAa,EACxB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,SAAS,GAAG,EAC7B,OAAO,EAAE,GAAG,EAAE;oBACZ,OAAO,EAAE,EAAE,CAAA;oBACX,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAA;gBAC5B,CAAC,GACD,CACH,CAAC,CAAC,CAAC,CACF,oBAAC,MAAM,IAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,QAAQ,IACtD,gBAAgB,CACV,CACV,CAAC;QACH,kBAAkB,IAAI,CACrB,2EAAyC,KAAK,CAAQ,CACvD,CACG,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './InputField';
2
+ export type { InputFieldProps } from './InputField';
@@ -0,0 +1,2 @@
1
+ export { default } from './InputField';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/InputField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { AnchorHTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ import type { ButtonProps } from '../..';
4
+ export type LinkButtonProps = AnchorHTMLAttributes<HTMLAnchorElement> & ButtonProps;
5
+ declare function LinkButton({ icon, inverse, children, disabled, iconPosition, size, variant, testId, ...otherProps }: LinkButtonProps): React.JSX.Element;
6
+ export default LinkButton;
@@ -0,0 +1,17 @@
1
+ import React, { useRef } from 'react';
2
+ function LinkButton({ icon, inverse, children, disabled, iconPosition, size = 'regular', variant = 'primary', testId = 'fs-link-button', ...otherProps }) {
3
+ const linkRef = useRef(null);
4
+ function onFocus(e) {
5
+ e.preventDefault();
6
+ if (disabled) {
7
+ linkRef.current?.blur();
8
+ }
9
+ }
10
+ return (React.createElement("a", { ref: linkRef, "data-fs-button": true, "data-fs-link-button": true, "data-fs-button-size": size, "data-fs-button-variant": variant, "data-fs-button-inverse": inverse, "data-fs-button-disabled": disabled, onFocus: onFocus, "data-testid": testId, ...otherProps },
11
+ React.createElement("div", { "data-fs-button-wrapper": true },
12
+ !!icon && iconPosition === 'left' && (React.createElement("span", { "data-fs-button-icon": true }, icon)),
13
+ children && React.createElement("span", null, children),
14
+ !!icon && iconPosition === 'right' && (React.createElement("span", { "data-fs-button-icon": true }, icon)))));
15
+ }
16
+ export default LinkButton;
17
+ //# sourceMappingURL=LinkButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LinkButton.js","sourceRoot":"","sources":["../../../src/molecules/LinkButton/LinkButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAOrC,SAAS,UAAU,CAAC,EAClB,IAAI,EACJ,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,IAAI,GAAG,SAAS,EAChB,OAAO,GAAG,SAAS,EACnB,MAAM,GAAG,gBAAgB,EACzB,GAAG,UAAU,EACG;IAChB,MAAM,OAAO,GAAG,MAAM,CAA2B,IAAI,CAAC,CAAA;IAEtD,SAAS,OAAO,CAAC,CAAa;QAC5B,CAAC,CAAC,cAAc,EAAE,CAAA;QAElB,IAAI,QAAQ,EAAE;YACZ,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,CAAA;SACxB;IACH,CAAC;IAED,OAAO,CACL,2BACE,GAAG,EAAE,OAAO,8EAGS,IAAI,4BACD,OAAO,4BACP,OAAO,6BACN,QAAQ,EACjC,OAAO,EAAE,OAAO,iBACH,MAAM,KACf,UAAU;QAEd;YACG,CAAC,CAAC,IAAI,IAAI,YAAY,KAAK,MAAM,IAAI,CACpC,6DAA2B,IAAI,CAAQ,CACxC;YACA,QAAQ,IAAI,kCAAO,QAAQ,CAAQ;YACnC,CAAC,CAAC,IAAI,IAAI,YAAY,KAAK,OAAO,IAAI,CACrC,6DAA2B,IAAI,CAAQ,CACxC,CACG,CACJ,CACL,CAAA;AACH,CAAC;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './LinkButton';
2
+ export type { LinkButtonProps } from './LinkButton';
@@ -0,0 +1,2 @@
1
+ export { default } from './LinkButton';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/LinkButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}
@@ -0,0 +1,39 @@
1
+ import type { AriaAttributes, ReactNode } from 'react';
2
+ import React from 'react';
3
+ import { OverlayProps } from '../..';
4
+ import type { ModalContentProps } from './ModalContent';
5
+ export type ModalChildrenProps = {
6
+ fade: 'in' | 'out';
7
+ fadeOut: () => void;
8
+ fadeIn: () => void;
9
+ };
10
+ type ModalChildrenFunction = (props: ModalChildrenProps) => ReactNode;
11
+ export interface ModalProps extends Omit<ModalContentProps, 'children'> {
12
+ /**
13
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
14
+ */
15
+ testId?: string;
16
+ /**
17
+ * Identifies the element (or elements) that labels the current element.
18
+ * @see aria-labelledby https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby
19
+ */
20
+ 'aria-labelledby'?: AriaAttributes['aria-label'];
21
+ /**
22
+ * A boolean value that represents the state of the Modal
23
+ */
24
+ isOpen?: boolean;
25
+ /**
26
+ * Event emitted when the modal is closed
27
+ */
28
+ onDismiss?: () => void;
29
+ /**
30
+ * Props forwarded to the `Overlay` component
31
+ */
32
+ overlayProps?: OverlayProps;
33
+ /**
34
+ * Children or function as a children
35
+ */
36
+ children: ModalChildrenFunction | ReactNode;
37
+ }
38
+ declare const Modal: ({ children, testId, isOpen, onDismiss, overlayProps, ...otherProps }: ModalProps) => React.ReactPortal | null;
39
+ export default Modal;
@@ -0,0 +1,38 @@
1
+ import React from 'react';
2
+ import { createPortal } from 'react-dom';
3
+ import { Overlay } from '../..';
4
+ import { useFadeEffect, useUI } from '../../hooks';
5
+ import ModalContent from './ModalContent';
6
+ /*
7
+ * This component is based on @reach/dialog.
8
+ * https://github.com/reach/reach-ui/blob/main/packages/dialog/src/index.tsx
9
+ * https://reach.tech/dialog
10
+ */
11
+ const Modal = ({ children, testId = 'fs-modal', isOpen = true, onDismiss, overlayProps, ...otherProps }) => {
12
+ const { closeModal } = useUI();
13
+ const { fade, fadeOut, fadeIn } = useFadeEffect();
14
+ const handleBackdropClick = (event) => {
15
+ if (event.defaultPrevented) {
16
+ return;
17
+ }
18
+ event.stopPropagation();
19
+ fadeOut?.();
20
+ onDismiss?.();
21
+ };
22
+ const handleBackdropKeyDown = (event) => {
23
+ if (event.key !== 'Escape' || event.defaultPrevented) {
24
+ return;
25
+ }
26
+ event.stopPropagation();
27
+ fadeOut?.();
28
+ onDismiss?.();
29
+ };
30
+ return isOpen
31
+ ? createPortal(React.createElement(Overlay, { onClick: handleBackdropClick, onKeyDown: handleBackdropKeyDown, ...overlayProps },
32
+ React.createElement(ModalContent, { onTransitionEnd: () => fade === 'out' && closeModal(), "data-fs-modal": true, "data-fs-modal-state": fade, testId: testId, ...otherProps }, typeof children === 'function'
33
+ ? children({ fade, fadeOut, fadeIn })
34
+ : children)), document.body)
35
+ : null;
36
+ };
37
+ export default Modal;
38
+ //# sourceMappingURL=Modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/molecules/Modal/Modal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,OAAO,EAAE,OAAO,EAAgB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAElD,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAsCzC;;;;GAIG;AAEH,MAAM,KAAK,GAAG,CAAC,EACb,QAAQ,EACR,MAAM,GAAG,UAAU,EACnB,MAAM,GAAG,IAAI,EACb,SAAS,EACT,YAAY,EACZ,GAAG,UAAU,EACF,EAAE,EAAE;IACf,MAAM,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,CAAA;IAC9B,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,aAAa,EAAE,CAAA;IAEjD,MAAM,mBAAmB,GAAG,CAAC,KAAiB,EAAE,EAAE;QAChD,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC1B,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,OAAO,EAAE,EAAE,CAAA;QACX,SAAS,EAAE,EAAE,CAAA;IACf,CAAC,CAAA;IAED,MAAM,qBAAqB,GAAG,CAAC,KAAoB,EAAE,EAAE;QACrD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,gBAAgB,EAAE;YACpD,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,OAAO,EAAE,EAAE,CAAA;QACX,SAAS,EAAE,EAAE,CAAA;IACf,CAAC,CAAA;IAED,OAAO,MAAM;QACX,CAAC,CAAC,YAAY,CACV,oBAAC,OAAO,IACN,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,qBAAqB,KAC5B,YAAY;YAEhB,oBAAC,YAAY,IACX,eAAe,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,KAAK,IAAI,UAAU,EAAE,gDAEhC,IAAI,EACzB,MAAM,EAAE,MAAM,KACV,UAAU,IAEb,OAAO,QAAQ,KAAK,UAAU;gBAC7B,CAAC,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;gBACrC,CAAC,CAAC,QAAQ,CACC,CACP,EACV,QAAQ,CAAC,IAAI,CACd;QACH,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,9 @@
1
+ import React, { ReactNode, HTMLAttributes } from 'react';
2
+ export interface ModalBodyProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * Children or function as a children
5
+ */
6
+ children: ReactNode;
7
+ }
8
+ declare const ModalBody: ({ children, ...otherProps }: ModalBodyProps) => React.JSX.Element;
9
+ export default ModalBody;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ const ModalBody = ({ children, ...otherProps }) => (React.createElement("div", { "data-fs-modal-body": true, ...otherProps }, children));
3
+ export default ModalBody;
4
+ //# sourceMappingURL=ModalBody.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalBody.js","sourceRoot":"","sources":["../../../src/molecules/Modal/ModalBody.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoC,MAAM,OAAO,CAAA;AASxD,MAAM,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAkB,EAAE,EAAE,CAAC,CACjE,4DAA4B,UAAU,IACnC,QAAQ,CACL,CACP,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { DetailedHTMLProps, HTMLAttributes, RefObject } from 'react';
2
+ import React from 'react';
3
+ interface ModalContentPureProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
4
+ beforeElementRef: RefObject<HTMLDivElement>;
5
+ trapFocusRef: RefObject<HTMLDivElement>;
6
+ afterElementRef: RefObject<HTMLDivElement>;
7
+ testId?: string;
8
+ }
9
+ export type ModalContentProps = Omit<ModalContentPureProps, 'trapFocusRef' | 'onClick' | 'beforeElementRef' | 'afterElementRef'>;
10
+ declare const ModalContent: ({ children, ...otherProps }: ModalContentProps) => React.JSX.Element;
11
+ export default ModalContent;
@@ -0,0 +1,23 @@
1
+ import React, { useRef } from 'react';
2
+ import { useTrapFocus } from '../../hooks';
3
+ const ModalContentPure = ({ beforeElementRef, trapFocusRef, afterElementRef, testId = 'store-modal-content', children, ...otherProps }) => {
4
+ return (React.createElement(React.Fragment, null,
5
+ React.createElement("div", { ref: beforeElementRef, "data-testid": "beforeElement", tabIndex: 0, "aria-hidden": "true" }),
6
+ React.createElement("div", { "data-fs-modal-content": true, "data-testid": testId, ref: trapFocusRef, "aria-modal": "true", role: "dialog", tabIndex: -1, ...otherProps }, children),
7
+ React.createElement("div", { ref: afterElementRef, "data-testid": "afterElement", tabIndex: 0, "aria-hidden": "true" })));
8
+ };
9
+ const ModalContent = ({ children, ...otherProps }) => {
10
+ const trapFocusRef = useRef(null);
11
+ const beforeElementRef = useRef(null);
12
+ const afterElementRef = useRef(null);
13
+ useTrapFocus({
14
+ beforeElementRef,
15
+ trapFocusRef,
16
+ afterElementRef,
17
+ });
18
+ return (React.createElement(ModalContentPure, { ...otherProps, trapFocusRef: trapFocusRef, beforeElementRef: beforeElementRef, afterElementRef: afterElementRef, onClick: (event) => {
19
+ event.stopPropagation();
20
+ } }, children));
21
+ };
22
+ export default ModalContent;
23
+ //# sourceMappingURL=ModalContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalContent.js","sourceRoot":"","sources":["../../../src/molecules/Modal/ModalContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAa1C,MAAM,gBAAgB,GAAG,CAAC,EACxB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,MAAM,GAAG,qBAAqB,EAC9B,QAAQ,EACR,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,OAAO,CACL;QACE,6BACE,GAAG,EAAE,gBAAgB,iBACT,eAAe,EAC3B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB;QACF,2EAEe,MAAM,EACnB,GAAG,EAAE,YAAY,gBACN,MAAM,EACjB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,KACR,UAAU,IAEb,QAAQ,CACL;QACN,6BACE,GAAG,EAAE,eAAe,iBACR,cAAc,EAC1B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAOD,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAqB,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACjD,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACrD,MAAM,eAAe,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAEpD,YAAY,CAAC;QACX,gBAAgB;QAChB,YAAY;QACZ,eAAe;KAChB,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,gBAAgB,OACX,UAAU,EACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YAC7B,KAAK,CAAC,eAAe,EAAE,CAAA;QACzB,CAAC,IAEA,QAAQ,CACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,22 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import { IconButtonProps } from '../IconButton';
3
+ export interface ModalHeaderProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * Title for header modal.
6
+ */
7
+ title: string;
8
+ /**
9
+ * Description for header modal.
10
+ */
11
+ description?: string;
12
+ /**
13
+ * Props for the Close Button component.
14
+ */
15
+ closeBtnProps?: Partial<Omit<IconButtonProps, 'onClick'>>;
16
+ /**
17
+ * Function called when dismiss button is clicked.
18
+ */
19
+ onClose?: () => void;
20
+ }
21
+ declare const ModalHeader: ({ onClose, title, closeBtnProps, description, }: ModalHeaderProps) => React.JSX.Element;
22
+ export default ModalHeader;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import Icon from '../../atoms/Icon';
3
+ import IconButton from '../IconButton';
4
+ const ModalHeader = ({ onClose, title, closeBtnProps = {}, description, }) => {
5
+ return (React.createElement("header", { "data-fs-modal-header": true },
6
+ onClose && (React.createElement(IconButton, { "data-fs-modal-header-close-button": true, "aria-label": "Close modal", icon: React.createElement(Icon, { name: "X" }), onClick: () => onClose?.(), ...closeBtnProps })),
7
+ React.createElement("p", { "data-fs-modal-header-title": true }, title),
8
+ description && React.createElement("p", { "data-fs-modal-header-description": true }, description)));
9
+ };
10
+ export default ModalHeader;
11
+ //# sourceMappingURL=ModalHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalHeader.js","sourceRoot":"","sources":["../../../src/molecules/Modal/ModalHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,IAAI,MAAM,kBAAkB,CAAA;AACnC,OAAO,UAA+B,MAAM,eAAe,CAAA;AAqB3D,MAAM,WAAW,GAAG,CAAC,EACnB,OAAO,EACP,KAAK,EACL,aAAa,GAAG,EAAE,EAClB,WAAW,GACM,EAAE,EAAE;IACrB,OAAO,CACL;QACG,OAAO,IAAI,CACV,oBAAC,UAAU,6DAEE,aAAa,EACxB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,GAAG,EACvB,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,KACtB,aAAa,GACjB,CACH;QACD,iEAA+B,KAAK,CAAK;QACxC,WAAW,IAAI,uEAAqC,WAAW,CAAK,CAC9D,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { default } from './Modal';
2
+ export { default as ModalHeader } from './ModalHeader';
3
+ export { default as ModalBody } from './ModalBody';
4
+ export type { ModalProps } from './Modal';
5
+ export type { ModalHeaderProps } from './ModalHeader';
@@ -0,0 +1,4 @@
1
+ export { default } from './Modal';
2
+ export { default as ModalHeader } from './ModalHeader';
3
+ export { default as ModalBody } from './ModalBody';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface NavbarLinksProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
+ */
7
+ testId?: string;
8
+ }
9
+ declare const NavbarLinks: React.ForwardRefExoticComponent<NavbarLinksProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default NavbarLinks;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const NavbarLinks = forwardRef(function NavbarLinks({ children, testId = 'fs-navbar-links', ...otherProps }, ref) {
3
+ return (React.createElement("nav", { "data-fs-navbar-links": true, ref: ref, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default NavbarLinks;
6
+ //# sourceMappingURL=NavbarLinks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavbarLinks.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/NavbarLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,QAAQ,EAAE,MAAM,GAAG,iBAAiB,EAAE,GAAG,UAAU,EAAE,EACvD,GAAG;IAEH,OAAO,CACL,2DAA0B,GAAG,EAAE,GAAG,iBAAe,MAAM,KAAM,UAAU,IACpE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { ListProps } from '../..';
3
+ export interface NavbarLinksListProps extends ListProps {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
+ */
7
+ testId?: string;
8
+ }
9
+ declare const NavbarLinksList: React.ForwardRefExoticComponent<Omit<NavbarLinksListProps, "ref"> & React.RefAttributes<HTMLUListElement>>;
10
+ export default NavbarLinksList;
@@ -0,0 +1,7 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { List } from '../..';
3
+ const NavbarLinksList = forwardRef(function NavbarLinksList({ children, testId = 'fs-navbar-links-list', ...otherProps }, ref) {
4
+ return (React.createElement(List, { "data-fs-navbar-links-list": true, ref: ref, "data-testid": testId, ...otherProps }, children));
5
+ });
6
+ export default NavbarLinksList;
7
+ //# sourceMappingURL=NavbarLinksList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavbarLinksList.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/NavbarLinksList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAU5B,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,QAAQ,EAAE,MAAM,GAAG,sBAAsB,EAAE,GAAG,UAAU,EAAE,EAC5D,GAAG;IAEH,OAAO,CACL,oBAAC,IAAI,uCAEH,GAAG,EAAE,GAAG,iBACK,MAAM,KACf,UAAU,IAEb,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface NavbarLinksListItemProps extends HTMLAttributes<HTMLLIElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: Cypress, Testing Library, and Jest).
6
+ */
7
+ testId?: string;
8
+ }
9
+ declare const NavbarLinksListItem: React.ForwardRefExoticComponent<NavbarLinksListItemProps & React.RefAttributes<HTMLLIElement>>;
10
+ export default NavbarLinksListItem;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const NavbarLinksListItem = forwardRef(function NavbarLinksListItem({ children, testId = 'fs-navbar-links-list-item', ...otherProps }, ref) {
3
+ return (React.createElement("li", { "data-fs-navbar-links-list-item": true, ref: ref, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default NavbarLinksListItem;
6
+ //# sourceMappingURL=NavbarLinksListItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NavbarLinksListItem.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/NavbarLinksListItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,mBAAmB,GAAG,UAAU,CACpC,SAAS,mBAAmB,CAC1B,EAAE,QAAQ,EAAE,MAAM,GAAG,2BAA2B,EAAE,GAAG,UAAU,EAAE,EACjE,GAAG;IAEH,OAAO,CACL,oEAEE,GAAG,EAAE,GAAG,iBACK,MAAM,KACf,UAAU,IAEb,QAAQ,CACN,CACN,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,6 @@
1
+ export { default } from './NavbarLinks';
2
+ export type { NavbarLinksProps } from './NavbarLinks';
3
+ export { default as NavbarLinksList } from './NavbarLinksList';
4
+ export type { NavbarLinksListProps } from './NavbarLinksList';
5
+ export { default as NavbarLinksListItem } from './NavbarLinksListItem';
6
+ export type { NavbarLinksListItemProps } from './NavbarLinksListItem';
@@ -0,0 +1,4 @@
1
+ export { default } from './NavbarLinks';
2
+ export { default as NavbarLinksList } from './NavbarLinksList';
3
+ export { default as NavbarLinksListItem } from './NavbarLinksListItem';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/NavbarLinks/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAGvC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,uBAAuB,CAAA"}
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface OrderSummaryProps extends HTMLAttributes<HTMLUListElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress,
6
+ * testing-library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Label for the subtotal value of the order. Will only show if subtotalValue is provided.
11
+ */
12
+ subtotalLabel?: string;
13
+ /**
14
+ * Subtotal value of the order. If provided, subtotal label and value will be shown.
15
+ */
16
+ subtotalValue?: string;
17
+ /**
18
+ * Label for the discount value for the order. Will only show if discountValue is provided.
19
+ */
20
+ discountLabel?: string;
21
+ /**
22
+ * Discount value for the order. If provided, discount label and value will be shown.
23
+ */
24
+ discountValue?: string;
25
+ /**
26
+ * Label for the total value of the order.
27
+ */
28
+ totalLabel?: string;
29
+ /**
30
+ * Total value of the order.
31
+ */
32
+ totalValue?: string;
33
+ }
34
+ declare const OrderSummary: React.ForwardRefExoticComponent<OrderSummaryProps & React.RefAttributes<HTMLUListElement>>;
35
+ export default OrderSummary;
@@ -0,0 +1,16 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { List } from '../../';
3
+ const OrderSummary = forwardRef(function OrderSummary({ testId = 'fs-order-summary', subtotalLabel, subtotalValue, discountLabel = 'Discount', discountValue, totalLabel = 'Total', totalValue, ...otherProps }, ref) {
4
+ return (React.createElement(List, { ref: ref, "data-fs-order-summary": true, "data-testid": testId, ...otherProps },
5
+ subtotalValue ? (React.createElement("li", { "data-fs-order-summary-subtotal": true },
6
+ React.createElement("span", { "data-fs-order-summary-subtotal-label": true, "data-testid": `${testId}-subtotal-label` }, subtotalLabel),
7
+ React.createElement("span", { "data-fs-order-summary-subtotal-value": true, "data-testid": `${testId}-subtotal-value` }, subtotalValue))) : null,
8
+ discountValue ? (React.createElement("li", { "data-fs-order-summary-discount": true },
9
+ React.createElement("span", { "data-fs-order-summary-discount-label": true, "data-testid": `${testId}-discount-label` }, discountLabel),
10
+ React.createElement("span", { "data-fs-order-summary-discount-value": true, "data-testid": `${testId}-discount-value` }, discountValue))) : null,
11
+ React.createElement("li", { "data-fs-order-summary-total": true },
12
+ React.createElement("span", { "data-fs-order-summary-total-label": true, "data-testid": `${testId}-total-label` }, totalLabel),
13
+ React.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue))));
14
+ });
15
+ export default OrderSummary;
16
+ //# sourceMappingURL=OrderSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderSummary.js","sourceRoot":"","sources":["../../../src/molecules/OrderSummary/OrderSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAkC7B,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,MAAM,GAAG,kBAAkB,EAC3B,aAAa,EACb,aAAa,EACb,aAAa,GAAG,UAAU,EAC1B,aAAa,EACb,UAAU,GAAG,OAAO,EACpB,UAAU,EACV,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,oBAAC,IAAI,IACH,GAAG,EAAE,GAAG,gDAEK,MAAM,KACf,UAAU;QAEb,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACP,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACR;YACE,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN;YACP,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN,CACJ,CACA,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './OrderSummary';
2
+ export type { OrderSummaryProps } from './OrderSummary';
@@ -0,0 +1,2 @@
1
+ export { default } from './OrderSummary';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/OrderSummary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface ProductCardProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * Sets a border to the component.
6
+ */
7
+ bordered?: boolean;
8
+ /**
9
+ * Sets the component's size.
10
+ */
11
+ variant?: 'wide' | 'default';
12
+ /**
13
+ * Enables a outOfStock status.
14
+ */
15
+ outOfStock?: boolean;
16
+ /**
17
+ * ID to find this component in testing tools (e.g.: cypress,
18
+ * testing-library, and jest).
19
+ */
20
+ testId?: string;
21
+ }
22
+ declare const ProductCard: React.ForwardRefExoticComponent<ProductCardProps & React.RefAttributes<HTMLDivElement>>;
23
+ export default ProductCard;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const ProductCard = forwardRef(function ProductCard({ testId = 'fs-product-card', variant = 'default', bordered = false, outOfStock, children, ...otherProps }, ref) {
3
+ return (React.createElement("article", { ref: ref, "data-fs-product-card": outOfStock ? 'out-of-stock' : '', "data-fs-product-card-variant": variant, "data-fs-product-card-bordered": bordered, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default ProductCard;
6
+ //# sourceMappingURL=ProductCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ProductCard.js","sourceRoot":"","sources":["../../../src/molecules/ProductCard/ProductCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAuBzC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,MAAM,GAAG,iBAAiB,EAC1B,OAAO,GAAG,SAAS,EACnB,QAAQ,GAAG,KAAK,EAChB,UAAU,EACV,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,0BACc,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,kCACxB,OAAO,mCACN,QAAQ,iBAC1B,MAAM,KACf,UAAU,IAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,48 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ import type { PriceDefinition } from '../../typings/PriceDefinition';
4
+ import { LinkElementType, LinkProps } from '../../';
5
+ export interface ProductCardContentProps extends HTMLAttributes<HTMLElement> {
6
+ /**
7
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
8
+ */
9
+ testId?: string;
10
+ /**
11
+ * Specifies the product's title.
12
+ */
13
+ title: string;
14
+ /**
15
+ * Props for the link from ProductCard component.
16
+ */
17
+ linkProps?: Partial<LinkProps<LinkElementType>>;
18
+ /**
19
+ * Specifies product's prices.
20
+ */
21
+ price?: PriceDefinition;
22
+ /**
23
+ * Enables a outOfStock status.
24
+ */
25
+ outOfStock?: boolean;
26
+ /**
27
+ * Specifies the OutOfStock badge's label.
28
+ */
29
+ outOfStockLabel?: string;
30
+ /**
31
+ * Specifies Rating Value of the product.
32
+ */
33
+ ratingValue?: number;
34
+ /**
35
+ * Specifies the button's label.
36
+ */
37
+ buttonLabel?: string;
38
+ /**
39
+ * Enables a DiscountBadge to the component.
40
+ */
41
+ showDiscountBadge?: boolean;
42
+ /**
43
+ * Callback function when button is clicked.
44
+ */
45
+ onButtonClick?: () => void;
46
+ }
47
+ declare const ProductCardContent: React.ForwardRefExoticComponent<ProductCardContentProps & React.RefAttributes<HTMLElement>>;
48
+ export default ProductCardContent;
@@ -0,0 +1,19 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { Badge, Button, DiscountBadge, Icon, Link, ProductPrice, Rating, } from '../../';
3
+ const ProductCardContent = forwardRef(function CardContent({ testId = 'fs-product-card-content', title, linkProps, price, outOfStock, outOfStockLabel = 'Out of stock', ratingValue, showDiscountBadge, buttonLabel = 'Add', onButtonClick, children, ...otherProps }, ref) {
4
+ const listingPrice = price?.listPrice ? price.listPrice : 0;
5
+ const sellingPrice = price?.value ? price.value : 0;
6
+ return (React.createElement("section", { ref: ref, "data-fs-product-card-content": true, "data-fs-product-card-badge": showDiscountBadge, "data-testid": testId, ...otherProps },
7
+ React.createElement("div", { "data-fs-product-card-heading": true },
8
+ React.createElement("h3", { "data-fs-product-card-title": true },
9
+ React.createElement(Link, { ...linkProps, title: title },
10
+ React.createElement("span", null, title))),
11
+ !outOfStock && (React.createElement(ProductPrice, { "data-fs-product-card-prices": true, value: sellingPrice, listPrice: listingPrice, formatter: price?.formatter })),
12
+ ratingValue && (React.createElement(Rating, { value: ratingValue, icon: React.createElement(Icon, { name: "Star" }) }))),
13
+ showDiscountBadge && !outOfStock && (React.createElement(DiscountBadge, { listPrice: listingPrice, spotPrice: sellingPrice })),
14
+ outOfStock && React.createElement(Badge, null, outOfStockLabel),
15
+ onButtonClick && !outOfStock && (React.createElement("div", { "data-fs-product-card-actions": true },
16
+ React.createElement(Button, { variant: "primary", icon: React.createElement(Icon, { name: "ShoppingCart" }), iconPosition: "left", size: "small", onClick: onButtonClick }, buttonLabel)))));
17
+ });
18
+ export default ProductCardContent;
19
+ //# sourceMappingURL=ProductCardContent.js.map