@faststore/components 3.0.7 → 3.0.32-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (694) 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/molecules/SkuSelector/useDefineVariant.d.ts +4 -0
  98. package/dist/cjs/molecules/SkuSelector/useDefineVariant.js +11 -0
  99. package/dist/cjs/molecules/SkuSelector/useDefineVariant.js.map +1 -1
  100. package/dist/cjs/organisms/ImageGallery/ImageZoom.d.ts +7 -0
  101. package/dist/cjs/organisms/ImageGallery/ImageZoom.js +9 -0
  102. package/dist/cjs/organisms/ImageGallery/ImageZoom.js.map +1 -0
  103. package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js +1 -1
  104. package/dist/cjs/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
  105. package/dist/esm/molecules/SkuSelector/useDefineVariant.d.ts +4 -0
  106. package/dist/esm/molecules/SkuSelector/useDefineVariant.js +11 -0
  107. package/dist/esm/molecules/SkuSelector/useDefineVariant.js.map +1 -1
  108. package/dist/esm/organisms/ImageGallery/ImageZoom.d.ts +7 -0
  109. package/dist/esm/organisms/ImageGallery/ImageZoom.js +6 -0
  110. package/dist/esm/organisms/ImageGallery/ImageZoom.js.map +1 -0
  111. package/dist/esm/organisms/PaymentMethods/PaymentMethods.js +1 -1
  112. package/dist/esm/organisms/PaymentMethods/PaymentMethods.js.map +1 -1
  113. package/dist/hooks/UIProvider.d.ts +34 -0
  114. package/dist/hooks/UIProvider.js +78 -0
  115. package/dist/hooks/UIProvider.js.map +1 -0
  116. package/dist/hooks/index.d.ts +8 -0
  117. package/dist/hooks/index.js +8 -0
  118. package/dist/hooks/index.js.map +1 -0
  119. package/dist/hooks/useFadeEffect.d.ts +5 -0
  120. package/dist/hooks/useFadeEffect.js +18 -0
  121. package/dist/hooks/useFadeEffect.js.map +1 -0
  122. package/dist/hooks/useScrollDirection.d.ts +1 -0
  123. package/dist/hooks/useScrollDirection.js +22 -0
  124. package/dist/hooks/useScrollDirection.js.map +1 -0
  125. package/dist/hooks/useSearch.d.ts +7 -0
  126. package/dist/hooks/useSearch.js +10 -0
  127. package/dist/hooks/useSearch.js.map +1 -0
  128. package/dist/hooks/useSlideVisibility.d.ts +9 -0
  129. package/dist/hooks/useSlideVisibility.js +29 -0
  130. package/dist/hooks/useSlideVisibility.js.map +1 -0
  131. package/dist/hooks/useSlider.d.ts +64 -0
  132. package/dist/hooks/useSlider.js +103 -0
  133. package/dist/hooks/useSlider.js.map +1 -0
  134. package/dist/hooks/useTrapFocus.d.ts +8 -0
  135. package/dist/hooks/useTrapFocus.js +75 -0
  136. package/dist/hooks/useTrapFocus.js.map +1 -0
  137. package/dist/index.d.ts +141 -0
  138. package/dist/index.js +78 -0
  139. package/dist/index.js.map +1 -0
  140. package/dist/molecules/Accordion/Accordion.d.ts +26 -0
  141. package/dist/molecules/Accordion/Accordion.js +21 -0
  142. package/dist/molecules/Accordion/Accordion.js.map +1 -0
  143. package/dist/molecules/Accordion/AccordionButton.d.ts +19 -0
  144. package/dist/molecules/Accordion/AccordionButton.js +37 -0
  145. package/dist/molecules/Accordion/AccordionButton.js.map +1 -0
  146. package/dist/molecules/Accordion/AccordionItem.d.ts +31 -0
  147. package/dist/molecules/Accordion/AccordionItem.js +22 -0
  148. package/dist/molecules/Accordion/AccordionItem.js.map +1 -0
  149. package/dist/molecules/Accordion/AccordionPanel.d.ts +10 -0
  150. package/dist/molecules/Accordion/AccordionPanel.js +10 -0
  151. package/dist/molecules/Accordion/AccordionPanel.js.map +1 -0
  152. package/dist/molecules/Accordion/index.d.ts +8 -0
  153. package/dist/molecules/Accordion/index.js +5 -0
  154. package/dist/molecules/Accordion/index.js.map +1 -0
  155. package/dist/molecules/Alert/Alert.d.ts +29 -0
  156. package/dist/molecules/Alert/Alert.js +17 -0
  157. package/dist/molecules/Alert/Alert.js.map +1 -0
  158. package/dist/molecules/Alert/index.d.ts +2 -0
  159. package/dist/molecules/Alert/index.js +2 -0
  160. package/dist/molecules/Alert/index.js.map +1 -0
  161. package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +6 -0
  162. package/dist/molecules/Breadcrumb/Breadcrumb.js +7 -0
  163. package/dist/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
  164. package/dist/molecules/Breadcrumb/BreadcrumbBase.d.ts +47 -0
  165. package/dist/molecules/Breadcrumb/BreadcrumbBase.js +45 -0
  166. package/dist/molecules/Breadcrumb/BreadcrumbBase.js.map +1 -0
  167. package/dist/molecules/Breadcrumb/BreadcrumbPure.d.ts +14 -0
  168. package/dist/molecules/Breadcrumb/BreadcrumbPure.js +12 -0
  169. package/dist/molecules/Breadcrumb/BreadcrumbPure.js.map +1 -0
  170. package/dist/molecules/Breadcrumb/Divider.d.ts +4 -0
  171. package/dist/molecules/Breadcrumb/Divider.js +14 -0
  172. package/dist/molecules/Breadcrumb/Divider.js.map +1 -0
  173. package/dist/molecules/Breadcrumb/ListItem.d.ts +10 -0
  174. package/dist/molecules/Breadcrumb/ListItem.js +20 -0
  175. package/dist/molecules/Breadcrumb/ListItem.js.map +1 -0
  176. package/dist/molecules/Breadcrumb/index.d.ts +4 -0
  177. package/dist/molecules/Breadcrumb/index.js +3 -0
  178. package/dist/molecules/Breadcrumb/index.js.map +1 -0
  179. package/dist/molecules/BuyButton/BuyButton.d.ts +5 -0
  180. package/dist/molecules/BuyButton/BuyButton.js +7 -0
  181. package/dist/molecules/BuyButton/BuyButton.js.map +1 -0
  182. package/dist/molecules/BuyButton/index.d.ts +1 -0
  183. package/dist/molecules/BuyButton/index.js +2 -0
  184. package/dist/molecules/BuyButton/index.js.map +1 -0
  185. package/dist/molecules/Carousel/Carousel.d.ts +60 -0
  186. package/dist/molecules/Carousel/Carousel.js +188 -0
  187. package/dist/molecules/Carousel/Carousel.js.map +1 -0
  188. package/dist/molecules/Carousel/CarouselBullets.d.ts +39 -0
  189. package/dist/molecules/Carousel/CarouselBullets.js +12 -0
  190. package/dist/molecules/Carousel/CarouselBullets.js.map +1 -0
  191. package/dist/molecules/Carousel/CarouselItem.d.ts +13 -0
  192. package/dist/molecules/Carousel/CarouselItem.js +20 -0
  193. package/dist/molecules/Carousel/CarouselItem.js.map +1 -0
  194. package/dist/molecules/Carousel/index.d.ts +6 -0
  195. package/dist/molecules/Carousel/index.js +4 -0
  196. package/dist/molecules/Carousel/index.js.map +1 -0
  197. package/dist/molecules/CartItem/CartItem.d.ts +32 -0
  198. package/dist/molecules/CartItem/CartItem.js +12 -0
  199. package/dist/molecules/CartItem/CartItem.js.map +1 -0
  200. package/dist/molecules/CartItem/CartItemImage.d.ts +10 -0
  201. package/dist/molecules/CartItem/CartItemImage.js +6 -0
  202. package/dist/molecules/CartItem/CartItemImage.js.map +1 -0
  203. package/dist/molecules/CartItem/CartItemSummary.d.ts +21 -0
  204. package/dist/molecules/CartItem/CartItemSummary.js +12 -0
  205. package/dist/molecules/CartItem/CartItemSummary.js.map +1 -0
  206. package/dist/molecules/CartItem/index.d.ts +6 -0
  207. package/dist/molecules/CartItem/index.js +4 -0
  208. package/dist/molecules/CartItem/index.js.map +1 -0
  209. package/dist/molecules/CheckboxField/CheckboxField.d.ts +25 -0
  210. package/dist/molecules/CheckboxField/CheckboxField.js +10 -0
  211. package/dist/molecules/CheckboxField/CheckboxField.js.map +1 -0
  212. package/dist/molecules/CheckboxField/index.d.ts +2 -0
  213. package/dist/molecules/CheckboxField/index.js +2 -0
  214. package/dist/molecules/CheckboxField/index.js.map +1 -0
  215. package/dist/molecules/DiscountBadge/DiscountBadge.d.ts +26 -0
  216. package/dist/molecules/DiscountBadge/DiscountBadge.js +19 -0
  217. package/dist/molecules/DiscountBadge/DiscountBadge.js.map +1 -0
  218. package/dist/molecules/DiscountBadge/index.d.ts +2 -0
  219. package/dist/molecules/DiscountBadge/index.js +2 -0
  220. package/dist/molecules/DiscountBadge/index.js.map +1 -0
  221. package/dist/molecules/DiscountBadge/useDiscountPercent.d.ts +1 -0
  222. package/dist/molecules/DiscountBadge/useDiscountPercent.js +9 -0
  223. package/dist/molecules/DiscountBadge/useDiscountPercent.js.map +1 -0
  224. package/dist/molecules/Dropdown/Dropdown.d.ts +18 -0
  225. package/dist/molecules/Dropdown/Dropdown.js +66 -0
  226. package/dist/molecules/Dropdown/Dropdown.js.map +1 -0
  227. package/dist/molecules/Dropdown/DropdownButton.d.ts +14 -0
  228. package/dist/molecules/Dropdown/DropdownButton.js +12 -0
  229. package/dist/molecules/Dropdown/DropdownButton.js.map +1 -0
  230. package/dist/molecules/Dropdown/DropdownItem.d.ts +14 -0
  231. package/dist/molecules/Dropdown/DropdownItem.js +28 -0
  232. package/dist/molecules/Dropdown/DropdownItem.js.map +1 -0
  233. package/dist/molecules/Dropdown/DropdownMenu.d.ts +26 -0
  234. package/dist/molecules/Dropdown/DropdownMenu.js +66 -0
  235. package/dist/molecules/Dropdown/DropdownMenu.js.map +1 -0
  236. package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -0
  237. package/dist/molecules/Dropdown/contexts/DropdownContext.js +11 -0
  238. package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
  239. package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +6 -0
  240. package/dist/molecules/Dropdown/hooks/useDropdown.js +14 -0
  241. package/dist/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
  242. package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -0
  243. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
  244. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
  245. package/dist/molecules/Dropdown/index.d.ts +8 -0
  246. package/dist/molecules/Dropdown/index.js +5 -0
  247. package/dist/molecules/Dropdown/index.js.map +1 -0
  248. package/dist/molecules/Gift/Gift.d.ts +15 -0
  249. package/dist/molecules/Gift/Gift.js +8 -0
  250. package/dist/molecules/Gift/Gift.js.map +1 -0
  251. package/dist/molecules/Gift/GiftContent.d.ts +27 -0
  252. package/dist/molecules/Gift/GiftContent.js +14 -0
  253. package/dist/molecules/Gift/GiftContent.js.map +1 -0
  254. package/dist/molecules/Gift/GiftImage.d.ts +10 -0
  255. package/dist/molecules/Gift/GiftImage.js +6 -0
  256. package/dist/molecules/Gift/GiftImage.js.map +1 -0
  257. package/dist/molecules/Gift/index.d.ts +6 -0
  258. package/dist/molecules/Gift/index.js +4 -0
  259. package/dist/molecules/Gift/index.js.map +1 -0
  260. package/dist/molecules/IconButton/IconButton.d.ts +19 -0
  261. package/dist/molecules/IconButton/IconButton.js +7 -0
  262. package/dist/molecules/IconButton/IconButton.js.map +1 -0
  263. package/dist/molecules/IconButton/index.d.ts +2 -0
  264. package/dist/molecules/IconButton/index.js +2 -0
  265. package/dist/molecules/IconButton/index.js.map +1 -0
  266. package/dist/molecules/InputField/InputField.d.ts +60 -0
  267. package/dist/molecules/InputField/InputField.js +18 -0
  268. package/dist/molecules/InputField/InputField.js.map +1 -0
  269. package/dist/molecules/InputField/index.d.ts +2 -0
  270. package/dist/molecules/InputField/index.js +2 -0
  271. package/dist/molecules/InputField/index.js.map +1 -0
  272. package/dist/molecules/LinkButton/LinkButton.d.ts +6 -0
  273. package/dist/molecules/LinkButton/LinkButton.js +17 -0
  274. package/dist/molecules/LinkButton/LinkButton.js.map +1 -0
  275. package/dist/molecules/LinkButton/index.d.ts +2 -0
  276. package/dist/molecules/LinkButton/index.js +2 -0
  277. package/dist/molecules/LinkButton/index.js.map +1 -0
  278. package/dist/molecules/Modal/Modal.d.ts +39 -0
  279. package/dist/molecules/Modal/Modal.js +38 -0
  280. package/dist/molecules/Modal/Modal.js.map +1 -0
  281. package/dist/molecules/Modal/ModalBody.d.ts +9 -0
  282. package/dist/molecules/Modal/ModalBody.js +4 -0
  283. package/dist/molecules/Modal/ModalBody.js.map +1 -0
  284. package/dist/molecules/Modal/ModalContent.d.ts +11 -0
  285. package/dist/molecules/Modal/ModalContent.js +23 -0
  286. package/dist/molecules/Modal/ModalContent.js.map +1 -0
  287. package/dist/molecules/Modal/ModalHeader.d.ts +22 -0
  288. package/dist/molecules/Modal/ModalHeader.js +11 -0
  289. package/dist/molecules/Modal/ModalHeader.js.map +1 -0
  290. package/dist/molecules/Modal/index.d.ts +5 -0
  291. package/dist/molecules/Modal/index.js +4 -0
  292. package/dist/molecules/Modal/index.js.map +1 -0
  293. package/dist/molecules/NavbarLinks/NavbarLinks.d.ts +10 -0
  294. package/dist/molecules/NavbarLinks/NavbarLinks.js +6 -0
  295. package/dist/molecules/NavbarLinks/NavbarLinks.js.map +1 -0
  296. package/dist/molecules/NavbarLinks/NavbarLinksList.d.ts +10 -0
  297. package/dist/molecules/NavbarLinks/NavbarLinksList.js +7 -0
  298. package/dist/molecules/NavbarLinks/NavbarLinksList.js.map +1 -0
  299. package/dist/molecules/NavbarLinks/NavbarLinksListItem.d.ts +10 -0
  300. package/dist/molecules/NavbarLinks/NavbarLinksListItem.js +6 -0
  301. package/dist/molecules/NavbarLinks/NavbarLinksListItem.js.map +1 -0
  302. package/dist/molecules/NavbarLinks/index.d.ts +6 -0
  303. package/dist/molecules/NavbarLinks/index.js +4 -0
  304. package/dist/molecules/NavbarLinks/index.js.map +1 -0
  305. package/dist/molecules/OrderSummary/OrderSummary.d.ts +35 -0
  306. package/dist/molecules/OrderSummary/OrderSummary.js +16 -0
  307. package/dist/molecules/OrderSummary/OrderSummary.js.map +1 -0
  308. package/dist/molecules/OrderSummary/index.d.ts +2 -0
  309. package/dist/molecules/OrderSummary/index.js +2 -0
  310. package/dist/molecules/OrderSummary/index.js.map +1 -0
  311. package/dist/molecules/ProductCard/ProductCard.d.ts +23 -0
  312. package/dist/molecules/ProductCard/ProductCard.js +6 -0
  313. package/dist/molecules/ProductCard/ProductCard.js.map +1 -0
  314. package/dist/molecules/ProductCard/ProductCardContent.d.ts +48 -0
  315. package/dist/molecules/ProductCard/ProductCardContent.js +19 -0
  316. package/dist/molecules/ProductCard/ProductCardContent.js.map +1 -0
  317. package/dist/molecules/ProductCard/ProductCardImage.d.ts +14 -0
  318. package/dist/molecules/ProductCard/ProductCardImage.js +8 -0
  319. package/dist/molecules/ProductCard/ProductCardImage.js.map +1 -0
  320. package/dist/molecules/ProductCard/index.d.ts +6 -0
  321. package/dist/molecules/ProductCard/index.js +4 -0
  322. package/dist/molecules/ProductCard/index.js.map +1 -0
  323. package/dist/molecules/ProductPrice/ProductPrice.d.ts +24 -0
  324. package/dist/molecules/ProductPrice/ProductPrice.js +11 -0
  325. package/dist/molecules/ProductPrice/ProductPrice.js.map +1 -0
  326. package/dist/molecules/ProductPrice/index.d.ts +2 -0
  327. package/dist/molecules/ProductPrice/index.js +2 -0
  328. package/dist/molecules/ProductPrice/index.js.map +1 -0
  329. package/dist/molecules/ProductTitle/ProductTitle.d.ts +30 -0
  330. package/dist/molecules/ProductTitle/ProductTitle.js +16 -0
  331. package/dist/molecules/ProductTitle/ProductTitle.js.map +1 -0
  332. package/dist/molecules/ProductTitle/index.d.ts +2 -0
  333. package/dist/molecules/ProductTitle/index.js +2 -0
  334. package/dist/molecules/ProductTitle/index.js.map +1 -0
  335. package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +31 -0
  336. package/dist/molecules/QuantitySelector/QuantitySelector.js +37 -0
  337. package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
  338. package/dist/molecules/QuantitySelector/index.d.ts +2 -0
  339. package/dist/molecules/QuantitySelector/index.js +2 -0
  340. package/dist/molecules/QuantitySelector/index.js.map +1 -0
  341. package/dist/molecules/RadioField/RadioField.d.ts +26 -0
  342. package/dist/molecules/RadioField/RadioField.js +10 -0
  343. package/dist/molecules/RadioField/RadioField.js.map +1 -0
  344. package/dist/molecules/RadioField/index.d.ts +2 -0
  345. package/dist/molecules/RadioField/index.js +2 -0
  346. package/dist/molecules/RadioField/index.js.map +1 -0
  347. package/dist/molecules/RadioGroup/RadioGroup.d.ts +6 -0
  348. package/dist/molecules/RadioGroup/RadioGroup.js +10 -0
  349. package/dist/molecules/RadioGroup/RadioGroup.js.map +1 -0
  350. package/dist/molecules/RadioGroup/RadioOption.d.ts +19 -0
  351. package/dist/molecules/RadioGroup/RadioOption.js +11 -0
  352. package/dist/molecules/RadioGroup/RadioOption.js.map +1 -0
  353. package/dist/molecules/RadioGroup/index.d.ts +4 -0
  354. package/dist/molecules/RadioGroup/index.js +3 -0
  355. package/dist/molecules/RadioGroup/index.js.map +1 -0
  356. package/dist/molecules/RadioGroup/useRadioGroup.d.ts +17 -0
  357. package/dist/molecules/RadioGroup/useRadioGroup.js +10 -0
  358. package/dist/molecules/RadioGroup/useRadioGroup.js.map +1 -0
  359. package/dist/molecules/Rating/Rating.d.ts +29 -0
  360. package/dist/molecules/Rating/Rating.js +27 -0
  361. package/dist/molecules/Rating/Rating.js.map +1 -0
  362. package/dist/molecules/Rating/index.d.ts +2 -0
  363. package/dist/molecules/Rating/index.js +2 -0
  364. package/dist/molecules/Rating/index.js.map +1 -0
  365. package/dist/molecules/RegionBar/RegionBar.d.ts +30 -0
  366. package/dist/molecules/RegionBar/RegionBar.js +12 -0
  367. package/dist/molecules/RegionBar/RegionBar.js.map +1 -0
  368. package/dist/molecules/RegionBar/index.d.ts +2 -0
  369. package/dist/molecules/RegionBar/index.js +2 -0
  370. package/dist/molecules/RegionBar/index.js.map +1 -0
  371. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.d.ts +9 -0
  372. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js +12 -0
  373. package/dist/molecules/SearchAutoComplete/SearchAutoComplete.js.map +1 -0
  374. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.d.ts +27 -0
  375. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js +27 -0
  376. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js.map +1 -0
  377. package/dist/molecules/SearchAutoComplete/index.d.ts +4 -0
  378. package/dist/molecules/SearchAutoComplete/index.js +3 -0
  379. package/dist/molecules/SearchAutoComplete/index.js.map +1 -0
  380. package/dist/molecules/SearchDropdown/SearchDropdown.d.ts +14 -0
  381. package/dist/molecules/SearchDropdown/SearchDropdown.js +14 -0
  382. package/dist/molecules/SearchDropdown/SearchDropdown.js.map +1 -0
  383. package/dist/molecules/SearchDropdown/index.d.ts +2 -0
  384. package/dist/molecules/SearchDropdown/index.js +2 -0
  385. package/dist/molecules/SearchDropdown/index.js.map +1 -0
  386. package/dist/molecules/SearchHistory/SearchHistory.d.ts +21 -0
  387. package/dist/molecules/SearchHistory/SearchHistory.js +15 -0
  388. package/dist/molecules/SearchHistory/SearchHistory.js.map +1 -0
  389. package/dist/molecules/SearchHistory/SearchHistoryTerm.d.ts +23 -0
  390. package/dist/molecules/SearchHistory/SearchHistoryTerm.js +10 -0
  391. package/dist/molecules/SearchHistory/SearchHistoryTerm.js.map +1 -0
  392. package/dist/molecules/SearchHistory/index.d.ts +4 -0
  393. package/dist/molecules/SearchHistory/index.js +3 -0
  394. package/dist/molecules/SearchHistory/index.js.map +1 -0
  395. package/dist/molecules/SearchInputField/SearchInputField.d.ts +36 -0
  396. package/dist/molecules/SearchInputField/SearchInputField.js +21 -0
  397. package/dist/molecules/SearchInputField/SearchInputField.js.map +1 -0
  398. package/dist/molecules/SearchInputField/index.d.ts +2 -0
  399. package/dist/molecules/SearchInputField/index.js +2 -0
  400. package/dist/molecules/SearchInputField/index.js.map +1 -0
  401. package/dist/molecules/SearchProducts/SearchProductItem.d.ts +16 -0
  402. package/dist/molecules/SearchProducts/SearchProductItem.js +8 -0
  403. package/dist/molecules/SearchProducts/SearchProductItem.js.map +1 -0
  404. package/dist/molecules/SearchProducts/SearchProductItemContent.d.ts +14 -0
  405. package/dist/molecules/SearchProducts/SearchProductItemContent.js +9 -0
  406. package/dist/molecules/SearchProducts/SearchProductItemContent.js.map +1 -0
  407. package/dist/molecules/SearchProducts/SearchProductItemImage.d.ts +10 -0
  408. package/dist/molecules/SearchProducts/SearchProductItemImage.js +6 -0
  409. package/dist/molecules/SearchProducts/SearchProductItemImage.js.map +1 -0
  410. package/dist/molecules/SearchProducts/SearchProducts.d.ts +13 -0
  411. package/dist/molecules/SearchProducts/SearchProducts.js +14 -0
  412. package/dist/molecules/SearchProducts/SearchProducts.js.map +1 -0
  413. package/dist/molecules/SearchProducts/index.d.ts +8 -0
  414. package/dist/molecules/SearchProducts/index.js +5 -0
  415. package/dist/molecules/SearchProducts/index.js.map +1 -0
  416. package/dist/molecules/SearchProvider/SearchProvider.d.ts +29 -0
  417. package/dist/molecules/SearchProvider/SearchProvider.js +8 -0
  418. package/dist/molecules/SearchProvider/SearchProvider.js.map +1 -0
  419. package/dist/molecules/SearchProvider/index.d.ts +2 -0
  420. package/dist/molecules/SearchProvider/index.js +2 -0
  421. package/dist/molecules/SearchProvider/index.js.map +1 -0
  422. package/dist/molecules/SearchTop/SearchTop.d.ts +14 -0
  423. package/dist/molecules/SearchTop/SearchTop.js +15 -0
  424. package/dist/molecules/SearchTop/SearchTop.js.map +1 -0
  425. package/dist/molecules/SearchTop/SearchTopTerm.d.ts +23 -0
  426. package/dist/molecules/SearchTop/SearchTopTerm.js +10 -0
  427. package/dist/molecules/SearchTop/SearchTopTerm.js.map +1 -0
  428. package/dist/molecules/SearchTop/index.d.ts +4 -0
  429. package/dist/molecules/SearchTop/index.js +3 -0
  430. package/dist/molecules/SearchTop/index.js.map +1 -0
  431. package/dist/molecules/SelectField/SelectField.d.ts +12 -0
  432. package/dist/molecules/SelectField/SelectField.js +9 -0
  433. package/dist/molecules/SelectField/SelectField.js.map +1 -0
  434. package/dist/molecules/SelectField/index.d.ts +2 -0
  435. package/dist/molecules/SelectField/index.js +2 -0
  436. package/dist/molecules/SelectField/index.js.map +1 -0
  437. package/dist/molecules/SkuSelector/SkuSelector.d.ts +78 -0
  438. package/dist/molecules/SkuSelector/SkuSelector.js +31 -0
  439. package/dist/molecules/SkuSelector/SkuSelector.js.map +1 -0
  440. package/dist/molecules/SkuSelector/index.d.ts +2 -0
  441. package/dist/molecules/SkuSelector/index.js +2 -0
  442. package/dist/molecules/SkuSelector/index.js.map +1 -0
  443. package/dist/molecules/SkuSelector/useDefineVariant.d.ts +3 -0
  444. package/dist/molecules/SkuSelector/useDefineVariant.js +27 -0
  445. package/dist/molecules/SkuSelector/useDefineVariant.js.map +1 -0
  446. package/dist/molecules/SkuSelector/useSkuSlug.d.ts +6 -0
  447. package/dist/molecules/SkuSelector/useSkuSlug.js +23 -0
  448. package/dist/molecules/SkuSelector/useSkuSlug.js.map +1 -0
  449. package/dist/molecules/Table/Table.d.ts +26 -0
  450. package/dist/molecules/Table/Table.js +7 -0
  451. package/dist/molecules/Table/Table.js.map +1 -0
  452. package/dist/molecules/Table/TableBody.d.ts +12 -0
  453. package/dist/molecules/Table/TableBody.js +6 -0
  454. package/dist/molecules/Table/TableBody.js.map +1 -0
  455. package/dist/molecules/Table/TableCell.d.ts +26 -0
  456. package/dist/molecules/Table/TableCell.js +7 -0
  457. package/dist/molecules/Table/TableCell.js.map +1 -0
  458. package/dist/molecules/Table/TableFooter.d.ts +12 -0
  459. package/dist/molecules/Table/TableFooter.js +6 -0
  460. package/dist/molecules/Table/TableFooter.js.map +1 -0
  461. package/dist/molecules/Table/TableHead.d.ts +12 -0
  462. package/dist/molecules/Table/TableHead.js +6 -0
  463. package/dist/molecules/Table/TableHead.js.map +1 -0
  464. package/dist/molecules/Table/TableRow.d.ts +12 -0
  465. package/dist/molecules/Table/TableRow.js +6 -0
  466. package/dist/molecules/Table/TableRow.js.map +1 -0
  467. package/dist/molecules/Table/index.d.ts +12 -0
  468. package/dist/molecules/Table/index.js +7 -0
  469. package/dist/molecules/Table/index.js.map +1 -0
  470. package/dist/molecules/Tag/Tag.d.ts +27 -0
  471. package/dist/molecules/Tag/Tag.js +9 -0
  472. package/dist/molecules/Tag/Tag.js.map +1 -0
  473. package/dist/molecules/Tag/index.d.ts +2 -0
  474. package/dist/molecules/Tag/index.js +2 -0
  475. package/dist/molecules/Tag/index.js.map +1 -0
  476. package/dist/molecules/Toast/Toast.d.ts +3 -0
  477. package/dist/molecules/Toast/Toast.js +29 -0
  478. package/dist/molecules/Toast/Toast.js.map +1 -0
  479. package/dist/molecules/Toast/index.d.ts +1 -0
  480. package/dist/molecules/Toast/index.js +2 -0
  481. package/dist/molecules/Toast/index.js.map +1 -0
  482. package/dist/molecules/Toggle/Toggle.d.ts +22 -0
  483. package/dist/molecules/Toggle/Toggle.js +10 -0
  484. package/dist/molecules/Toggle/Toggle.js.map +1 -0
  485. package/dist/molecules/Toggle/index.d.ts +2 -0
  486. package/dist/molecules/Toggle/index.js +2 -0
  487. package/dist/molecules/Toggle/index.js.map +1 -0
  488. package/dist/molecules/ToggleField/ToggleField.d.ts +29 -0
  489. package/dist/molecules/ToggleField/ToggleField.js +9 -0
  490. package/dist/molecules/ToggleField/ToggleField.js.map +1 -0
  491. package/dist/molecules/ToggleField/index.d.ts +2 -0
  492. package/dist/molecules/ToggleField/index.js +2 -0
  493. package/dist/molecules/ToggleField/index.js.map +1 -0
  494. package/dist/organisms/BannerText/BannerText.d.ts +27 -0
  495. package/dist/organisms/BannerText/BannerText.js +16 -0
  496. package/dist/organisms/BannerText/BannerText.js.map +1 -0
  497. package/dist/organisms/BannerText/BannerTextContent.d.ts +30 -0
  498. package/dist/organisms/BannerText/BannerTextContent.js +13 -0
  499. package/dist/organisms/BannerText/BannerTextContent.js.map +1 -0
  500. package/dist/organisms/BannerText/index.d.ts +4 -0
  501. package/dist/organisms/BannerText/index.js +3 -0
  502. package/dist/organisms/BannerText/index.js.map +1 -0
  503. package/dist/organisms/CartSidebar/CartSidebar.d.ts +45 -0
  504. package/dist/organisms/CartSidebar/CartSidebar.js +18 -0
  505. package/dist/organisms/CartSidebar/CartSidebar.js.map +1 -0
  506. package/dist/organisms/CartSidebar/CartSidebarFooter.d.ts +5 -0
  507. package/dist/organisms/CartSidebar/CartSidebarFooter.js +6 -0
  508. package/dist/organisms/CartSidebar/CartSidebarFooter.js.map +1 -0
  509. package/dist/organisms/CartSidebar/CartSidebarList.d.ts +5 -0
  510. package/dist/organisms/CartSidebar/CartSidebarList.js +7 -0
  511. package/dist/organisms/CartSidebar/CartSidebarList.js.map +1 -0
  512. package/dist/organisms/CartSidebar/index.d.ts +4 -0
  513. package/dist/organisms/CartSidebar/index.js +4 -0
  514. package/dist/organisms/CartSidebar/index.js.map +1 -0
  515. package/dist/organisms/EmptyState/EmptyState.d.ts +28 -0
  516. package/dist/organisms/EmptyState/EmptyState.js +10 -0
  517. package/dist/organisms/EmptyState/EmptyState.js.map +1 -0
  518. package/dist/organisms/EmptyState/index.d.ts +2 -0
  519. package/dist/organisms/EmptyState/index.js +2 -0
  520. package/dist/organisms/EmptyState/index.js.map +1 -0
  521. package/dist/organisms/Filter/Filter.d.ts +26 -0
  522. package/dist/organisms/Filter/Filter.js +9 -0
  523. package/dist/organisms/Filter/Filter.js.map +1 -0
  524. package/dist/organisms/Filter/FilterFacetBoolean.d.ts +5 -0
  525. package/dist/organisms/Filter/FilterFacetBoolean.js +7 -0
  526. package/dist/organisms/Filter/FilterFacetBoolean.js.map +1 -0
  527. package/dist/organisms/Filter/FilterFacetBooleanItem.d.ts +38 -0
  528. package/dist/organisms/Filter/FilterFacetBooleanItem.js +12 -0
  529. package/dist/organisms/Filter/FilterFacetBooleanItem.js.map +1 -0
  530. package/dist/organisms/Filter/FilterFacetRange.d.ts +32 -0
  531. package/dist/organisms/Filter/FilterFacetRange.js +11 -0
  532. package/dist/organisms/Filter/FilterFacetRange.js.map +1 -0
  533. package/dist/organisms/Filter/FilterFacets.d.ts +21 -0
  534. package/dist/organisms/Filter/FilterFacets.js +9 -0
  535. package/dist/organisms/Filter/FilterFacets.js.map +1 -0
  536. package/dist/organisms/Filter/FilterSlider.d.ts +36 -0
  537. package/dist/organisms/Filter/FilterSlider.js +22 -0
  538. package/dist/organisms/Filter/FilterSlider.js.map +1 -0
  539. package/dist/organisms/Filter/index.d.ts +11 -0
  540. package/dist/organisms/Filter/index.js +7 -0
  541. package/dist/organisms/Filter/index.js.map +1 -0
  542. package/dist/organisms/Hero/Hero.d.ts +27 -0
  543. package/dist/organisms/Hero/Hero.js +16 -0
  544. package/dist/organisms/Hero/Hero.js.map +1 -0
  545. package/dist/organisms/Hero/HeroHeader.d.ts +34 -0
  546. package/dist/organisms/Hero/HeroHeader.js +15 -0
  547. package/dist/organisms/Hero/HeroHeader.js.map +1 -0
  548. package/dist/organisms/Hero/HeroImage.d.ts +10 -0
  549. package/dist/organisms/Hero/HeroImage.js +6 -0
  550. package/dist/organisms/Hero/HeroImage.js.map +1 -0
  551. package/dist/organisms/Hero/index.d.ts +6 -0
  552. package/dist/organisms/Hero/index.js +4 -0
  553. package/dist/organisms/Hero/index.js.map +1 -0
  554. package/dist/organisms/ImageGallery/ImageGallery.d.ts +42 -0
  555. package/dist/organisms/ImageGallery/ImageGallery.js +10 -0
  556. package/dist/organisms/ImageGallery/ImageGallery.js.map +1 -0
  557. package/dist/organisms/ImageGallery/ImageGallerySelector.d.ts +32 -0
  558. package/dist/organisms/ImageGallery/ImageGallerySelector.js +46 -0
  559. package/dist/organisms/ImageGallery/ImageGallerySelector.js.map +1 -0
  560. package/dist/organisms/ImageGallery/ImageGalleryViewer.d.ts +8 -0
  561. package/dist/organisms/ImageGallery/ImageGalleryViewer.js +6 -0
  562. package/dist/organisms/ImageGallery/ImageGalleryViewer.js.map +1 -0
  563. package/dist/organisms/ImageGallery/ImageZoom.d.ts +7 -0
  564. package/dist/organisms/ImageGallery/ImageZoom.js +6 -0
  565. package/dist/organisms/ImageGallery/ImageZoom.js.map +1 -0
  566. package/dist/organisms/ImageGallery/index.d.ts +6 -0
  567. package/dist/organisms/ImageGallery/index.js +4 -0
  568. package/dist/organisms/ImageGallery/index.js.map +1 -0
  569. package/dist/organisms/Navbar/Navbar.d.ts +14 -0
  570. package/dist/organisms/Navbar/Navbar.js +6 -0
  571. package/dist/organisms/Navbar/Navbar.js.map +1 -0
  572. package/dist/organisms/Navbar/NavbarButtons.d.ts +14 -0
  573. package/dist/organisms/Navbar/NavbarButtons.js +6 -0
  574. package/dist/organisms/Navbar/NavbarButtons.js.map +1 -0
  575. package/dist/organisms/Navbar/NavbarHeader.d.ts +10 -0
  576. package/dist/organisms/Navbar/NavbarHeader.js +6 -0
  577. package/dist/organisms/Navbar/NavbarHeader.js.map +1 -0
  578. package/dist/organisms/Navbar/NavbarRow.d.ts +10 -0
  579. package/dist/organisms/Navbar/NavbarRow.js +6 -0
  580. package/dist/organisms/Navbar/NavbarRow.js.map +1 -0
  581. package/dist/organisms/Navbar/index.d.ts +8 -0
  582. package/dist/organisms/Navbar/index.js +5 -0
  583. package/dist/organisms/Navbar/index.js.map +1 -0
  584. package/dist/organisms/NavbarSlider/NavbarSlider.d.ts +19 -0
  585. package/dist/organisms/NavbarSlider/NavbarSlider.js +7 -0
  586. package/dist/organisms/NavbarSlider/NavbarSlider.js.map +1 -0
  587. package/dist/organisms/NavbarSlider/NavbarSliderContent.d.ts +10 -0
  588. package/dist/organisms/NavbarSlider/NavbarSliderContent.js +6 -0
  589. package/dist/organisms/NavbarSlider/NavbarSliderContent.js.map +1 -0
  590. package/dist/organisms/NavbarSlider/NavbarSliderFooter.d.ts +10 -0
  591. package/dist/organisms/NavbarSlider/NavbarSliderFooter.js +6 -0
  592. package/dist/organisms/NavbarSlider/NavbarSliderFooter.js.map +1 -0
  593. package/dist/organisms/NavbarSlider/NavbarSliderHeader.d.ts +10 -0
  594. package/dist/organisms/NavbarSlider/NavbarSliderHeader.js +7 -0
  595. package/dist/organisms/NavbarSlider/NavbarSliderHeader.js.map +1 -0
  596. package/dist/organisms/NavbarSlider/index.d.ts +8 -0
  597. package/dist/organisms/NavbarSlider/index.js +5 -0
  598. package/dist/organisms/NavbarSlider/index.js.map +1 -0
  599. package/dist/organisms/Newsletter/Newsletter.d.ts +19 -0
  600. package/dist/organisms/Newsletter/Newsletter.js +6 -0
  601. package/dist/organisms/Newsletter/Newsletter.js.map +1 -0
  602. package/dist/organisms/Newsletter/NewsletterAddendum.d.ts +14 -0
  603. package/dist/organisms/Newsletter/NewsletterAddendum.js +6 -0
  604. package/dist/organisms/Newsletter/NewsletterAddendum.js.map +1 -0
  605. package/dist/organisms/Newsletter/NewsletterContent.d.ts +10 -0
  606. package/dist/organisms/Newsletter/NewsletterContent.js +6 -0
  607. package/dist/organisms/Newsletter/NewsletterContent.js.map +1 -0
  608. package/dist/organisms/Newsletter/NewsletterForm.d.ts +14 -0
  609. package/dist/organisms/Newsletter/NewsletterForm.js +6 -0
  610. package/dist/organisms/Newsletter/NewsletterForm.js.map +1 -0
  611. package/dist/organisms/Newsletter/NewsletterHeader.d.ts +22 -0
  612. package/dist/organisms/Newsletter/NewsletterHeader.js +10 -0
  613. package/dist/organisms/Newsletter/NewsletterHeader.js.map +1 -0
  614. package/dist/organisms/Newsletter/index.d.ts +10 -0
  615. package/dist/organisms/Newsletter/index.js +6 -0
  616. package/dist/organisms/Newsletter/index.js.map +1 -0
  617. package/dist/organisms/OutOfStock/OutOfStock.d.ts +43 -0
  618. package/dist/organisms/OutOfStock/OutOfStock.js +13 -0
  619. package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -0
  620. package/dist/organisms/OutOfStock/index.d.ts +2 -0
  621. package/dist/organisms/OutOfStock/index.js +2 -0
  622. package/dist/organisms/OutOfStock/index.js.map +1 -0
  623. package/dist/organisms/PaymentMethods/PaymentMethods.d.ts +32 -0
  624. package/dist/organisms/PaymentMethods/PaymentMethods.js +11 -0
  625. package/dist/organisms/PaymentMethods/PaymentMethods.js.map +1 -0
  626. package/dist/organisms/PaymentMethods/index.d.ts +2 -0
  627. package/dist/organisms/PaymentMethods/index.js +2 -0
  628. package/dist/organisms/PaymentMethods/index.js.map +1 -0
  629. package/dist/organisms/PriceRange/PriceRange.d.ts +25 -0
  630. package/dist/organisms/PriceRange/PriceRange.js +75 -0
  631. package/dist/organisms/PriceRange/PriceRange.js.map +1 -0
  632. package/dist/organisms/PriceRange/index.d.ts +2 -0
  633. package/dist/organisms/PriceRange/index.js +2 -0
  634. package/dist/organisms/PriceRange/index.js.map +1 -0
  635. package/dist/organisms/ProductGrid/ProductGrid.d.ts +10 -0
  636. package/dist/organisms/ProductGrid/ProductGrid.js +6 -0
  637. package/dist/organisms/ProductGrid/ProductGrid.js.map +1 -0
  638. package/dist/organisms/ProductGrid/ProductGridItem.d.ts +10 -0
  639. package/dist/organisms/ProductGrid/ProductGridItem.js +6 -0
  640. package/dist/organisms/ProductGrid/ProductGridItem.js.map +1 -0
  641. package/dist/organisms/ProductGrid/index.d.ts +4 -0
  642. package/dist/organisms/ProductGrid/index.js +3 -0
  643. package/dist/organisms/ProductGrid/index.js.map +1 -0
  644. package/dist/organisms/ProductShelf/ProductShelf.d.ts +10 -0
  645. package/dist/organisms/ProductShelf/ProductShelf.js +6 -0
  646. package/dist/organisms/ProductShelf/ProductShelf.js.map +1 -0
  647. package/dist/organisms/ProductShelf/ProductShelfItem.d.ts +10 -0
  648. package/dist/organisms/ProductShelf/ProductShelfItem.js +6 -0
  649. package/dist/organisms/ProductShelf/ProductShelfItem.js.map +1 -0
  650. package/dist/organisms/ProductShelf/ProductShelfItems.d.ts +10 -0
  651. package/dist/organisms/ProductShelf/ProductShelfItems.js +6 -0
  652. package/dist/organisms/ProductShelf/ProductShelfItems.js.map +1 -0
  653. package/dist/organisms/ProductShelf/index.d.ts +6 -0
  654. package/dist/organisms/ProductShelf/index.js +4 -0
  655. package/dist/organisms/ProductShelf/index.js.map +1 -0
  656. package/dist/organisms/RegionModal/RegionModal.d.ts +72 -0
  657. package/dist/organisms/RegionModal/RegionModal.js +19 -0
  658. package/dist/organisms/RegionModal/RegionModal.js.map +1 -0
  659. package/dist/organisms/RegionModal/index.d.ts +2 -0
  660. package/dist/organisms/RegionModal/index.js +2 -0
  661. package/dist/organisms/RegionModal/index.js.map +1 -0
  662. package/dist/organisms/SearchInput/SearchInput.d.ts +26 -0
  663. package/dist/organisms/SearchInput/SearchInput.js +8 -0
  664. package/dist/organisms/SearchInput/SearchInput.js.map +1 -0
  665. package/dist/organisms/SearchInput/index.d.ts +2 -0
  666. package/dist/organisms/SearchInput/index.js +2 -0
  667. package/dist/organisms/SearchInput/index.js.map +1 -0
  668. package/dist/organisms/ShippingSimulation/ShippingSimulation.d.ts +125 -0
  669. package/dist/organisms/ShippingSimulation/ShippingSimulation.js +22 -0
  670. package/dist/organisms/ShippingSimulation/ShippingSimulation.js.map +1 -0
  671. package/dist/organisms/ShippingSimulation/index.d.ts +2 -0
  672. package/dist/organisms/ShippingSimulation/index.js +2 -0
  673. package/dist/organisms/ShippingSimulation/index.js.map +1 -0
  674. package/dist/organisms/SlideOver/SlideOver.d.ts +39 -0
  675. package/dist/organisms/SlideOver/SlideOver.js +7 -0
  676. package/dist/organisms/SlideOver/SlideOver.js.map +1 -0
  677. package/dist/organisms/SlideOver/SlideOverHeader.d.ts +19 -0
  678. package/dist/organisms/SlideOver/SlideOverHeader.js +9 -0
  679. package/dist/organisms/SlideOver/SlideOverHeader.js.map +1 -0
  680. package/dist/organisms/SlideOver/index.d.ts +4 -0
  681. package/dist/organisms/SlideOver/index.js +3 -0
  682. package/dist/organisms/SlideOver/index.js.map +1 -0
  683. package/dist/typings/PolymorphicGenerics.d.ts +28 -0
  684. package/dist/typings/PolymorphicGenerics.js +8 -0
  685. package/dist/typings/PolymorphicGenerics.js.map +1 -0
  686. package/dist/typings/PriceDefinition.d.ts +6 -0
  687. package/dist/typings/PriceDefinition.js +2 -0
  688. package/dist/typings/PriceDefinition.js.map +1 -0
  689. package/dist/typings/index.d.ts +2 -0
  690. package/dist/typings/index.js +2 -0
  691. package/dist/typings/index.js.map +1 -0
  692. package/package.json +4 -4
  693. package/src/molecules/SkuSelector/useDefineVariant.ts +12 -0
  694. package/src/organisms/PaymentMethods/PaymentMethods.tsx +1 -1
@@ -0,0 +1,6 @@
1
+ export { default } from './ProductShelf';
2
+ export type { ProductShelfProps } from './ProductShelf';
3
+ export { default as ProductShelfItems } from './ProductShelfItems';
4
+ export type { ProductShelfItemsProps } from './ProductShelfItems';
5
+ export { default as ProductShelfItem } from './ProductShelfItem';
6
+ export type { ProductShelfItemProps } from './ProductShelfItem';
@@ -0,0 +1,4 @@
1
+ export { default } from './ProductShelf';
2
+ export { default as ProductShelfItems } from './ProductShelfItems';
3
+ export { default as ProductShelfItem } from './ProductShelfItem';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/organisms/ProductShelf/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAGxC,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAA"}
@@ -0,0 +1,72 @@
1
+ import React from 'react';
2
+ import type { MutableRefObject } from 'react';
3
+ import type { LinkElementType, LinkProps, ModalProps, OverlayProps } from '../../';
4
+ export interface RegionModalProps extends Omit<ModalProps, 'children'> {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress,
7
+ * testing-library, and jest).
8
+ */
9
+ testId?: string;
10
+ /**
11
+ * The region modal's title.
12
+ */
13
+ title?: string;
14
+ /**
15
+ * Description for region modal.
16
+ */
17
+ description?: string;
18
+ /**
19
+ * Close button aria-label.
20
+ */
21
+ closeButtonAriaLabel?: string;
22
+ /**
23
+ * Props for the link `I don't know my Postal Code`.
24
+ */
25
+ idkPostalCodeLinkProps?: Partial<LinkProps<LinkElementType>>;
26
+ /**
27
+ * Props for the `I don't know my Postal Code` link on modal body content.
28
+ */
29
+ linkText?: Partial<LinkProps<LinkElementType>>;
30
+ /**
31
+ * Message of error for input.
32
+ */
33
+ errorMessage?: string;
34
+ /**
35
+ * Postal code input's ref.
36
+ */
37
+ inputRef?: MutableRefObject<HTMLInputElement | null>;
38
+ /**
39
+ * Postal code input's value.
40
+ */
41
+ inputValue?: string;
42
+ /**
43
+ * Postal code input's label.
44
+ */
45
+ inputLabel?: string;
46
+ /**
47
+ * Enables fadeOut effect on modal after onSubmit function
48
+ */
49
+ fadeOutOnSubmit?: boolean;
50
+ /**
51
+ * Props forwarded to the `Overlay` component.
52
+ */
53
+ overlayProps?: OverlayProps;
54
+ /**
55
+ * Function called when Close button is clicked.
56
+ */
57
+ onClose?: () => void;
58
+ /**
59
+ * Callback function when input is typed.
60
+ */
61
+ onInput?: (event: React.FormEvent<HTMLInputElement>) => void;
62
+ /**
63
+ * Callback function when form is submitted.
64
+ */
65
+ onSubmit?: () => void;
66
+ /**
67
+ * Callback function when the input clear button is clicked.
68
+ */
69
+ onClear?: () => void;
70
+ }
71
+ declare function RegionModal({ testId, title, description, closeButtonAriaLabel, idkPostalCodeLinkProps, errorMessage, inputRef, inputValue, inputLabel, fadeOutOnSubmit, overlayProps, onClose, onInput, onSubmit, onClear, ...otherProps }: RegionModalProps): React.JSX.Element;
72
+ export default RegionModal;
@@ -0,0 +1,19 @@
1
+ import React from 'react';
2
+ import { InputField, Link, Modal, ModalBody, ModalHeader } from '../..';
3
+ function RegionModal({ testId = 'fs-region-modal', title = 'Set your location', description = 'Prices, offers and availability may vary according to your location.', closeButtonAriaLabel = 'Close Region Modal', idkPostalCodeLinkProps, errorMessage, inputRef, inputValue, inputLabel = 'Postal Code', fadeOutOnSubmit, overlayProps, onClose, onInput, onSubmit, onClear, ...otherProps }) {
4
+ return (React.createElement(Modal, { "data-fs-region-modal": true, testId: testId, overlayProps: overlayProps, title: "Region modal", "aria-label": "Region modal", ...otherProps }, ({ fadeOut }) => (React.createElement(React.Fragment, null,
5
+ React.createElement(ModalHeader, { onClose: () => {
6
+ fadeOut();
7
+ onClose?.();
8
+ }, title: title, description: description, closeBtnProps: {
9
+ 'aria-label': closeButtonAriaLabel,
10
+ } }),
11
+ React.createElement(ModalBody, null,
12
+ React.createElement(InputField, { "data-fs-region-modal-input": true, id: `${testId}-input-field`, inputRef: inputRef, label: inputLabel, actionable: true, value: inputValue, onInput: (event) => onInput?.(event), onSubmit: () => {
13
+ onSubmit?.();
14
+ fadeOutOnSubmit ? fadeOut() : null;
15
+ }, onClear: () => onClear?.(), error: errorMessage }),
16
+ React.createElement(Link, { "data-fs-region-modal-link": true, ...idkPostalCodeLinkProps }))))));
17
+ }
18
+ export default RegionModal;
19
+ //# sourceMappingURL=RegionModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RegionModal.js","sourceRoot":"","sources":["../../../src/organisms/RegionModal/RegionModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AA4EvE,SAAS,WAAW,CAAC,EACnB,MAAM,GAAG,iBAAiB,EAC1B,KAAK,GAAG,mBAAmB,EAC3B,WAAW,GAAG,sEAAsE,EACpF,oBAAoB,GAAG,oBAAoB,EAC3C,sBAAsB,EACtB,YAAY,EACZ,QAAQ,EACR,UAAU,EACV,UAAU,GAAG,aAAa,EAC1B,eAAe,EACf,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,OAAO,EACP,GAAG,UAAU,EACI;IACjB,OAAO,CACL,oBAAC,KAAK,kCAEJ,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,EAC1B,KAAK,EAAC,cAAc,gBACT,cAAc,KACrB,UAAU,IAEb,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,CAChB;QACE,oBAAC,WAAW,IACV,OAAO,EAAE,GAAG,EAAE;gBACZ,OAAO,EAAE,CAAA;gBACT,OAAO,EAAE,EAAE,CAAA;YACb,CAAC,EACD,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,aAAa,EAAE;gBACb,YAAY,EAAE,oBAAoB;aACnC,GACD;QACF,oBAAC,SAAS;YACR,oBAAC,UAAU,wCAET,EAAE,EAAE,GAAG,MAAM,cAAc,EAC3B,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,UAAU,EACjB,UAAU,QACV,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EACpC,QAAQ,EAAE,GAAG,EAAE;oBACb,QAAQ,EAAE,EAAE,CAAA;oBACZ,eAAe,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;gBACpC,CAAC,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,EAC1B,KAAK,EAAE,YAAY,GACnB;YAEF,oBAAC,IAAI,0CAA+B,sBAAsB,GAAI,CACpD,CACX,CACJ,CACK,CACT,CAAA;AACH,CAAC;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './RegionModal';
2
+ export type { RegionModalProps } from './RegionModal';
@@ -0,0 +1,2 @@
1
+ export { default } from './RegionModal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/organisms/RegionModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ import { SearchProviderContextValue } from '../../molecules/SearchProvider';
4
+ export type SearchInputProps = {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress,
7
+ * testing-library, and jest).
8
+ */
9
+ testId?: string;
10
+ /**
11
+ * The current status of the Search Dropdown.
12
+ */
13
+ visibleDropdown: boolean;
14
+ } & HTMLAttributes<HTMLDivElement> & SearchProviderContextValue;
15
+ declare const SearchInput: React.ForwardRefExoticComponent<{
16
+ /**
17
+ * ID to find this component in testing tools (e.g.: cypress,
18
+ * testing-library, and jest).
19
+ */
20
+ testId?: string | undefined;
21
+ /**
22
+ * The current status of the Search Dropdown.
23
+ */
24
+ visibleDropdown: boolean;
25
+ } & React.HTMLAttributes<HTMLDivElement> & SearchProviderContextValue & React.RefAttributes<HTMLDivElement>>;
26
+ export default SearchInput;
@@ -0,0 +1,8 @@
1
+ import React, { forwardRef } from 'react';
2
+ import SearchProvider from '../../molecules/SearchProvider';
3
+ const SearchInput = forwardRef(function SearchInput({ children, visibleDropdown = false, testId = 'fs-search-input', isLoading, products, term, terms, onSearchSelection, ...otherProps }, ref) {
4
+ return (React.createElement("div", { ref: ref, "data-fs-search-input": true, "data-fs-search-input-dropdown-visible": visibleDropdown, "data-testid": testId, ...otherProps },
5
+ React.createElement(SearchProvider, { onSearchSelection: onSearchSelection, isLoading: isLoading, term: term, products: products, terms: terms }, children)));
6
+ });
7
+ export default SearchInput;
8
+ //# sourceMappingURL=SearchInput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchInput.js","sourceRoot":"","sources":["../../../src/organisms/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,cAA8C,MAAM,gCAAgC,CAAA;AAe3F,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EACE,QAAQ,EACR,eAAe,GAAG,KAAK,EACvB,MAAM,GAAG,iBAAiB,EAC1B,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,KAAK,EACL,iBAAiB,EACjB,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,6BACE,GAAG,EAAE,GAAG,yEAE+B,eAAe,iBACzC,MAAM,KACf,UAAU;QAEd,oBAAC,cAAc,IACb,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,SAAS,EACpB,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,IAEX,QAAQ,CACM,CACb,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './SearchInput';
2
+ export type { SearchInputProps } from './SearchInput';
@@ -0,0 +1,2 @@
1
+ export { default } from './SearchInput';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/organisms/SearchInput/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,125 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import type { PriceFormatter } from '../../atoms/Price/Price';
3
+ import React from 'react';
4
+ import { LinkElementType, LinkProps } from '../..';
5
+ interface ShippingSLA {
6
+ /**
7
+ * ShippingSLA carrier.
8
+ */
9
+ carrier: string;
10
+ /**
11
+ * ShippingSLA localized shipping estimate.
12
+ */
13
+ localizedEstimates: string;
14
+ /**
15
+ * ShippingSLA price.
16
+ */
17
+ price: number;
18
+ }
19
+ interface Address {
20
+ /**
21
+ * Address postal code
22
+ */
23
+ postalCode?: string;
24
+ /**
25
+ * Address city
26
+ */
27
+ city?: string;
28
+ /**
29
+ * Address state
30
+ */
31
+ state?: string;
32
+ /**
33
+ * Address country
34
+ */
35
+ country?: string;
36
+ /**
37
+ * Address street
38
+ */
39
+ street?: string;
40
+ /**
41
+ * Address number
42
+ */
43
+ number?: string;
44
+ /**
45
+ * Address neighborhood
46
+ */
47
+ neighborhood?: string;
48
+ /**
49
+ * Address complement
50
+ */
51
+ complement?: string;
52
+ /**
53
+ * Address reference
54
+ */
55
+ reference?: string;
56
+ /**
57
+ * Address geoCoordinates
58
+ */
59
+ geoCoordinates?: [number];
60
+ }
61
+ export interface ShippingSimulationProps extends HTMLAttributes<HTMLDivElement> {
62
+ /**
63
+ * ID to find this component in testing tools (e.g.: cypress,
64
+ * testing-library, and jest).
65
+ */
66
+ testId?: string;
67
+ /**
68
+ * Formatter function that transforms the raw price value and render the result.
69
+ */
70
+ formatter: PriceFormatter;
71
+ /**
72
+ * The Shipping Suggestions Section's title.
73
+ */
74
+ title?: string;
75
+ /**
76
+ * The text displayed to Shipping Simulation input text.
77
+ */
78
+ inputLabel?: string;
79
+ /**
80
+ * The text displayed in Shipping options table.
81
+ */
82
+ optionsLabel?: string;
83
+ /**
84
+ * Props for the link `I don't know my Postal Code`.
85
+ */
86
+ idkPostalCodeLinkProps?: Partial<LinkProps<LinkElementType>>;
87
+ /**
88
+ * Callback function when input is typed.
89
+ */
90
+ onInput?: (event: React.FormEvent<HTMLInputElement>) => void;
91
+ /**
92
+ * Callback function when form is submitted.
93
+ */
94
+ onSubmit?: () => void;
95
+ /**
96
+ * Callback function when the input clear button is clicked.
97
+ */
98
+ onClear?: () => void;
99
+ /**
100
+ * Location for shipping.
101
+ */
102
+ location?: string;
103
+ /**
104
+ * Address for shipping.
105
+ */
106
+ address?: Address;
107
+ /**
108
+ * Options for shipping simulation.
109
+ */
110
+ options?: ShippingSLA[];
111
+ /**
112
+ * Show clear button.
113
+ */
114
+ displayClearButton?: boolean;
115
+ /**
116
+ * Message of error for input.
117
+ */
118
+ errorMessage?: string;
119
+ /**
120
+ * Postal code.
121
+ */
122
+ postalCode?: string;
123
+ }
124
+ declare function ShippingSimulation({ testId, formatter, title, inputLabel, optionsLabel, idkPostalCodeLinkProps, onInput, onSubmit, onClear, location, options, displayClearButton, errorMessage, postalCode, ...otherProps }: ShippingSimulationProps): React.JSX.Element;
125
+ export default ShippingSimulation;
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { Icon, InputField, Link, Price, Table, TableBody, TableCell, TableRow, } from '../..';
3
+ function ShippingSimulation({ testId = 'fs-shipping-simulation', formatter, title = 'Shipping', inputLabel = 'Postal Code', optionsLabel = 'Shipping options', idkPostalCodeLinkProps, onInput, onSubmit, onClear, location, options = [], displayClearButton = false, errorMessage, postalCode, ...otherProps }) {
4
+ const hasShippingOptions = !!options && options.length > 0;
5
+ return (React.createElement("section", { "data-fs-shipping-simulation": true, "data-fs-shipping-simulation-empty": !hasShippingOptions ? 'true' : 'false', "data-testid": testId, ...otherProps },
6
+ React.createElement("h2", { "data-fs-shipping-simulation-title": true }, title),
7
+ React.createElement(InputField, { actionable: true, error: errorMessage, id: `${testId}-input-field`, label: inputLabel, value: postalCode, onInput: (event) => onInput?.(event), onSubmit: () => onSubmit?.(), onClear: () => onClear?.(), displayClearButton: displayClearButton }),
8
+ React.createElement(Link, { href: "/", "data-fs-shipping-simulation-link": true, size: "small", ...idkPostalCodeLinkProps }, idkPostalCodeLinkProps?.children ?? (React.createElement(React.Fragment, null,
9
+ "I don't know my Postal Code",
10
+ React.createElement(Icon, { name: "ArrowSquareOut", width: 20, height: 20 })))),
11
+ hasShippingOptions && (React.createElement(React.Fragment, null,
12
+ React.createElement("header", { "data-fs-shipping-simulation-header": true },
13
+ React.createElement("h3", { "data-fs-shipping-simulation-subtitle": true }, optionsLabel),
14
+ React.createElement("p", { "data-fs-shipping-simulation-location": true }, location)),
15
+ React.createElement(Table, null,
16
+ React.createElement(TableBody, null, options.map((option) => (React.createElement(TableRow, { key: option.carrier },
17
+ React.createElement(TableCell, { align: "left" }, option.carrier),
18
+ React.createElement(TableCell, null, option.localizedEstimates),
19
+ React.createElement(TableCell, { align: "right" }, option.price && (React.createElement(Price, { formatter: formatter, value: option.price, SRText: "price" }))))))))))));
20
+ }
21
+ export default ShippingSimulation;
22
+ //# sourceMappingURL=ShippingSimulation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ShippingSimulation.js","sourceRoot":"","sources":["../../../src/organisms/ShippingSimulation/ShippingSimulation.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,IAAI,EACJ,UAAU,EACV,IAAI,EAGJ,KAAK,EACL,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,GACT,MAAM,OAAO,CAAA;AA6Hd,SAAS,kBAAkB,CAAC,EAC1B,MAAM,GAAG,wBAAwB,EACjC,SAAS,EACT,KAAK,GAAG,UAAU,EAClB,UAAU,GAAG,aAAa,EAC1B,YAAY,GAAG,kBAAkB,EACjC,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,kBAAkB,GAAG,KAAK,EAC1B,YAAY,EACZ,UAAU,EACV,GAAG,UAAU,EACW;IACxB,MAAM,kBAAkB,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAA;IAE1D,OAAO,CACL,2GAEqC,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,iBAC5D,MAAM,KACf,UAAU;QAEd,yEAAuC,KAAK,CAAM;QAElD,oBAAC,UAAU,IACT,UAAU,QACV,KAAK,EAAE,YAAY,EACnB,EAAE,EAAE,GAAG,MAAM,cAAc,EAC3B,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,EAC1B,kBAAkB,EAAE,kBAAkB,GACtC;QAEF,oBAAC,IAAI,IACH,IAAI,EAAC,GAAG,4CAER,IAAI,EAAC,OAAO,KACR,sBAAsB,IAEzB,sBAAsB,EAAE,QAAQ,IAAI,CACnC;YACG,6BAA6B;YAC9B,oBAAC,IAAI,IAAC,IAAI,EAAC,gBAAgB,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,GAAI,CACpD,CACJ,CACI;QAEN,kBAAkB,IAAI,CACrB;YACE;gBACE,4EAA0C,YAAY,CAAM;gBAC5D,2EAAyC,QAAQ,CAAK,CAC/C;YAET,oBAAC,KAAK;gBACJ,oBAAC,SAAS,QACP,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,oBAAC,QAAQ,IAAC,GAAG,EAAE,MAAM,CAAC,OAAO;oBAC3B,oBAAC,SAAS,IAAC,KAAK,EAAC,MAAM,IAAE,MAAM,CAAC,OAAO,CAAa;oBACpD,oBAAC,SAAS,QAAE,MAAM,CAAC,kBAAkB,CAAa;oBAClD,oBAAC,SAAS,IAAC,KAAK,EAAC,OAAO,IACrB,MAAM,CAAC,KAAK,IAAI,CACf,oBAAC,KAAK,IACJ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,MAAM,EAAC,OAAO,GACd,CACH,CACS,CACH,CACZ,CAAC,CACQ,CACN,CACP,CACJ,CACO,CACX,CAAA;AACH,CAAC;AAED,eAAe,kBAAkB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ShippingSimulation';
2
+ export type { ShippingSimulationProps } from './ShippingSimulation';
@@ -0,0 +1,2 @@
1
+ export { default } from './ShippingSimulation';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/organisms/ShippingSimulation/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA"}
@@ -0,0 +1,39 @@
1
+ import type { ReactNode } from 'react';
2
+ import React from 'react';
3
+ import type { ModalProps, OverlayProps } from '../../';
4
+ export type Direction = 'leftSide' | 'rightSide';
5
+ export type WidthSize = 'full' | 'partial';
6
+ export interface SlideOverProps extends Omit<ModalProps, 'title'> {
7
+ /**
8
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
9
+ */
10
+ testId?: string;
11
+ /**
12
+ * A boolean value that represents the state of the SlideOver
13
+ */
14
+ isOpen: boolean;
15
+ /**
16
+ * Represents the side that the SlideOver comes from.
17
+ */
18
+ direction: Direction;
19
+ /**
20
+ * Represents the size of the SlideOver.
21
+ */
22
+ size: WidthSize;
23
+ /**
24
+ * Represents the fade effect of the SlideOver.
25
+ */
26
+ fade: 'in' | 'out';
27
+ children: ReactNode;
28
+ /**
29
+ * Props forwarded to the `Overlay` component.
30
+ */
31
+ overlayProps?: OverlayProps;
32
+ /**
33
+ * This function is called whenever the user clicks outside.
34
+ * the modal content
35
+ */
36
+ onDismiss?: () => void;
37
+ }
38
+ declare function SlideOver({ testId, isOpen, direction, size, fade, children, overlayProps, onDismiss, ...otherProps }: SlideOverProps): React.JSX.Element;
39
+ export default SlideOver;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { Modal } from '../../';
3
+ function SlideOver({ testId = 'fs-slide-over', isOpen, direction = 'leftSide', size = 'full', fade = 'out', children, overlayProps, onDismiss, ...otherProps }) {
4
+ return (React.createElement(Modal, { "data-fs-modal": null, "data-fs-slide-over": true, "data-fs-slide-over-direction": direction, "data-fs-slide-over-size": size, "data-fs-slide-over-state": fade, isOpen: isOpen, onDismiss: onDismiss, testId: testId, overlayProps: overlayProps, ...otherProps }, children));
5
+ }
6
+ export default SlideOver;
7
+ //# sourceMappingURL=SlideOver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlideOver.js","sourceRoot":"","sources":["../../../src/organisms/SlideOver/SlideOver.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAsC9B,SAAS,SAAS,CAAC,EACjB,MAAM,GAAG,eAAe,EACxB,MAAM,EACN,SAAS,GAAG,UAAU,EACtB,IAAI,GAAG,MAAM,EACb,IAAI,GAAG,KAAK,EACZ,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,GAAG,UAAU,EACE;IACf,OAAO,CACL,oBAAC,KAAK,qBACW,IAAI,8DAEW,SAAS,6BACd,IAAI,8BACH,IAAI,EAC9B,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,YAAY,KACtB,UAAU,IAEb,QAAQ,CACH,CACT,CAAA;AACH,CAAC;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { ReactNode } from 'react';
2
+ import React, { HTMLAttributes } from 'react';
3
+ import { IconButtonProps } from '../../';
4
+ export interface SlideOverHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
5
+ /**
6
+ * A react component to be used as the title in the header.
7
+ */
8
+ children: ReactNode;
9
+ /**
10
+ * Props for the Close Button component.
11
+ */
12
+ closeBtnProps?: Partial<Omit<IconButtonProps, 'onClick'>>;
13
+ /**
14
+ * Function called when Close Button is clicked.
15
+ */
16
+ onClose: () => void;
17
+ }
18
+ declare const SlideOverHeader: ({ children, closeBtnProps, onClose, ...otherProps }: SlideOverHeaderProps) => React.JSX.Element;
19
+ export default SlideOverHeader;
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import { Icon, IconButton } from '../../';
3
+ const SlideOverHeader = ({ children, closeBtnProps = {}, onClose, ...otherProps }) => {
4
+ return (React.createElement("header", { "data-fs-slide-over-header": true, ...otherProps },
5
+ children,
6
+ React.createElement(IconButton, { "data-fs-slide-over-header-icon": true, "aria-label": "Close", icon: React.createElement(Icon, { name: "X" }), onClick: onClose, ...closeBtnProps })));
7
+ };
8
+ export default SlideOverHeader;
9
+ //# sourceMappingURL=SlideOverHeader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlideOverHeader.js","sourceRoot":"","sources":["../../../src/organisms/SlideOver/SlideOverHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAmB,MAAM,QAAQ,CAAA;AAkB1D,MAAM,eAAe,GAAG,CAAC,EACvB,QAAQ,EACR,aAAa,GAAG,EAAE,EAClB,OAAO,EACP,GAAG,UAAU,EACQ,EAAE,EAAE;IACzB,OAAO,CACL,sEAAsC,UAAU;QAC7C,QAAQ;QACT,oBAAC,UAAU,0DAEE,OAAO,EAClB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,GAAG,EACvB,OAAO,EAAE,OAAO,KACZ,aAAa,GACjB,CACK,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { default, Direction as SlideOverDirection, WidthSize as SlideOverWidthSize } from './SlideOver';
2
+ export type { SlideOverProps } from './SlideOver';
3
+ export { default as SlideOverHeader } from './SlideOverHeader';
4
+ export type { SlideOverHeaderProps } from './SlideOverHeader';
@@ -0,0 +1,3 @@
1
+ export { default } from './SlideOver';
2
+ export { default as SlideOverHeader } from './SlideOverHeader';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/organisms/SlideOver/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAoE,MAAM,aAAa,CAAA;AAEvG,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA"}
@@ -0,0 +1,28 @@
1
+ /**
2
+ * These were heavily inspired by "Forwarding refs for a polymorphic React
3
+ * component in TypeScript", written by Ben Ilegbodu.
4
+ *
5
+ * Article link: https://www.benmvp.com/blog/forwarding-refs-polymorphic-react-component-typescript/
6
+ */
7
+ import type { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType } from 'react';
8
+ type AsProp<C extends ElementType> = {
9
+ as?: C;
10
+ };
11
+ /**
12
+ * Allows for extending a set of props (`ExtendedProps`) by an overriding set of props
13
+ * (`OverrideProps`), ensuring that any duplicates are overridden by the overriding
14
+ * set of props.
15
+ */
16
+ type ExtendableProps<ExtendedProps = Record<string, never>, OverrideProps = Record<string, never>> = OverrideProps & Omit<ExtendedProps, keyof OverrideProps>;
17
+ /**
18
+ * Allows for inheriting the props from the specified element type so that
19
+ * props like children, className & style work, as well as element-specific
20
+ * attributes like aria roles. The component (`C`) must be passed in.
21
+ */
22
+ type InheritableElementProps<C extends ElementType, Props = Record<string, never>> = ExtendableProps<ComponentPropsWithoutRef<C>, Props>;
23
+ export type PolymorphicComponentProps<C extends ElementType, Props = Record<string, never>> = InheritableElementProps<C, Props & AsProp<C>>;
24
+ export type PolymorphicComponentPropsWithRef<C extends ElementType, P = Record<string, never>> = PolymorphicComponentProps<C, P> & {
25
+ ref?: ComponentPropsWithRef<C>['ref'];
26
+ };
27
+ export type PolymorphicRef<C extends ElementType> = PolymorphicComponentPropsWithRef<C>['ref'];
28
+ export {};
@@ -0,0 +1,8 @@
1
+ /**
2
+ * These were heavily inspired by "Forwarding refs for a polymorphic React
3
+ * component in TypeScript", written by Ben Ilegbodu.
4
+ *
5
+ * Article link: https://www.benmvp.com/blog/forwarding-refs-polymorphic-react-component-typescript/
6
+ */
7
+ export {};
8
+ //# sourceMappingURL=PolymorphicGenerics.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolymorphicGenerics.js","sourceRoot":"","sources":["../../src/typings/PolymorphicGenerics.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
@@ -0,0 +1,6 @@
1
+ import type { PriceFormatter } from '../atoms/Price';
2
+ export interface PriceDefinition {
3
+ value: number;
4
+ listPrice: number;
5
+ formatter: PriceFormatter;
6
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PriceDefinition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PriceDefinition.js","sourceRoot":"","sources":["../../src/typings/PriceDefinition.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type { PolymorphicRef, PolymorphicComponentProps, PolymorphicComponentPropsWithRef, } from './PolymorphicGenerics';
2
+ export type { PriceDefinition } from './PriceDefinition';
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/typings/index.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "3.0.7",
3
+ "version": "3.0.32-alpha.0",
4
4
  "main": "dist/cjs/index.js",
5
5
  "module": "dist/esm/index.js",
6
6
  "typings": "dist/esm/index.d.ts",
@@ -34,8 +34,8 @@
34
34
  "react-dom": "^18.2.0"
35
35
  },
36
36
  "devDependencies": {
37
- "@faststore/eslint-config": "^3.0.7",
38
- "@faststore/shared": "^3.0.7",
37
+ "@faststore/eslint-config": "^3.0.24",
38
+ "@faststore/shared": "^3.0.24",
39
39
  "@types/react": "^18.2.42",
40
40
  "@types/react-dom": "^18.2.17",
41
41
  "eslint": "7.32.0",
@@ -44,5 +44,5 @@
44
44
  "volta": {
45
45
  "extends": "../../package.json"
46
46
  },
47
- "gitHead": "1672bc9ba921b70b5f9acfa2845c8f566d29be16"
47
+ "gitHead": "0535b4a1cea2f006ddf542caed8e8e51675fd43a"
48
48
  }
@@ -9,6 +9,10 @@ const getImageName = (src: string) => {
9
9
  return imageName
10
10
  }
11
11
 
12
+ /**
13
+ * This hook infers what kind of SKU Selector will be displayed on the UI.
14
+ * There are three different options, color, image, and label (default version).
15
+ */
12
16
  export const useDefineVariant = (options: SkuOption[], variant?: Variant): Variant =>
13
17
  useMemo(() => {
14
18
  if(variant) return variant
@@ -20,6 +24,14 @@ export const useDefineVariant = (options: SkuOption[], variant?: Variant): Varia
20
24
 
21
25
  const firstImageName = options[0]?.src && getImageName(options[0].src)
22
26
 
27
+ /*
28
+ * If there's only one option (options.length === 1) and there is an image
29
+ * the correct return value is 'image'.
30
+ * */
31
+ if (firstImageName && options.length === 1) {
32
+ return 'image'
33
+ }
34
+
23
35
  const areSourcesEqualsOrNull = options.every((option) => {
24
36
  if (!option.src) {
25
37
  return true
@@ -60,7 +60,7 @@ const PaymentMethods = forwardRef<HTMLDivElement, PaymentMethodsProps>(
60
60
  data-fs-payment-methods-flag
61
61
  key={`fs-payment-method-${index}-${text}`}
62
62
  >
63
- <Icon width={32} height={22.5} name={icon} />
63
+ <Icon width={28} height={18} name={icon} />
64
64
  {text && <SROnly text={text} />}
65
65
  </li>
66
66
  ))}