@faststore/ui 2.2.0-alpha.4 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (672) hide show
  1. package/dist/atoms/Badge/Badge.d.ts +11 -0
  2. package/dist/atoms/Badge/Badge.js +6 -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 +10 -0
  8. package/dist/atoms/Button/Button.js +6 -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 +10 -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 +14 -0
  20. package/dist/atoms/Icon/Icon.js +6 -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/Icon/stories/assets/ShoppingCart.d.ts +3 -0
  26. package/dist/atoms/Icon/stories/assets/ShoppingCart.js +8 -0
  27. package/dist/atoms/Icon/stories/assets/ShoppingCart.js.map +1 -0
  28. package/dist/atoms/Incentive/Incentive.d.ts +11 -0
  29. package/dist/atoms/Incentive/Incentive.js +6 -0
  30. package/dist/atoms/Incentive/Incentive.js.map +1 -0
  31. package/dist/atoms/Incentive/index.d.ts +2 -0
  32. package/dist/atoms/Incentive/index.js +2 -0
  33. package/dist/atoms/Incentive/index.js.map +1 -0
  34. package/dist/atoms/Incentive/stories/assets/Icons.d.ts +2 -0
  35. package/dist/atoms/Incentive/stories/assets/Icons.js +6 -0
  36. package/dist/atoms/Incentive/stories/assets/Icons.js.map +1 -0
  37. package/dist/atoms/Input/Input.d.ts +14 -0
  38. package/dist/atoms/Input/Input.js +10 -0
  39. package/dist/atoms/Input/Input.js.map +1 -0
  40. package/dist/atoms/Input/index.d.ts +2 -0
  41. package/dist/atoms/Input/index.js +2 -0
  42. package/dist/atoms/Input/index.js.map +1 -0
  43. package/dist/atoms/Label/Label.d.ts +10 -0
  44. package/dist/atoms/Label/Label.js +6 -0
  45. package/dist/atoms/Label/Label.js.map +1 -0
  46. package/dist/atoms/Label/index.d.ts +2 -0
  47. package/dist/atoms/Label/index.js +2 -0
  48. package/dist/atoms/Label/index.js.map +1 -0
  49. package/dist/atoms/Link/Link.d.ts +19 -0
  50. package/dist/atoms/Link/Link.js +13 -0
  51. package/dist/atoms/Link/Link.js.map +1 -0
  52. package/dist/atoms/Link/index.d.ts +2 -0
  53. package/dist/atoms/Link/index.js +2 -0
  54. package/dist/atoms/Link/index.js.map +1 -0
  55. package/dist/atoms/List/List.d.ts +12 -0
  56. package/dist/atoms/List/List.js +16 -0
  57. package/dist/atoms/List/List.js.map +1 -0
  58. package/dist/atoms/List/index.d.ts +2 -0
  59. package/dist/atoms/List/index.js +2 -0
  60. package/dist/atoms/List/index.js.map +1 -0
  61. package/dist/atoms/Overlay/Overlay.d.ts +10 -0
  62. package/dist/atoms/Overlay/Overlay.js +6 -0
  63. package/dist/atoms/Overlay/Overlay.js.map +1 -0
  64. package/dist/atoms/Overlay/index.d.ts +2 -0
  65. package/dist/atoms/Overlay/index.js +2 -0
  66. package/dist/atoms/Overlay/index.js.map +1 -0
  67. package/dist/atoms/Popover/Popover.d.ts +15 -0
  68. package/dist/atoms/Popover/Popover.js +7 -0
  69. package/dist/atoms/Popover/Popover.js.map +1 -0
  70. package/dist/atoms/Popover/index.d.ts +2 -0
  71. package/dist/atoms/Popover/index.js +2 -0
  72. package/dist/atoms/Popover/index.js.map +1 -0
  73. package/dist/atoms/Price/Price.d.ts +28 -0
  74. package/dist/atoms/Price/Price.js +7 -0
  75. package/dist/atoms/Price/Price.js.map +1 -0
  76. package/dist/atoms/Price/index.d.ts +2 -0
  77. package/dist/atoms/Price/index.js +2 -0
  78. package/dist/atoms/Price/index.js.map +1 -0
  79. package/dist/atoms/Radio/Radio.d.ts +7 -0
  80. package/dist/atoms/Radio/Radio.js +6 -0
  81. package/dist/atoms/Radio/Radio.js.map +1 -0
  82. package/dist/atoms/Radio/index.d.ts +2 -0
  83. package/dist/atoms/Radio/index.js +2 -0
  84. package/dist/atoms/Radio/index.js.map +1 -0
  85. package/dist/atoms/Select/Select.d.ts +10 -0
  86. package/dist/atoms/Select/Select.js +6 -0
  87. package/dist/atoms/Select/Select.js.map +1 -0
  88. package/dist/atoms/Select/index.d.ts +2 -0
  89. package/dist/atoms/Select/index.js +2 -0
  90. package/dist/atoms/Select/index.js.map +1 -0
  91. package/dist/atoms/Skeleton/Skeleton.d.ts +10 -0
  92. package/dist/atoms/Skeleton/Skeleton.js +6 -0
  93. package/dist/atoms/Skeleton/Skeleton.js.map +1 -0
  94. package/dist/atoms/Skeleton/index.d.ts +2 -0
  95. package/dist/atoms/Skeleton/index.js +2 -0
  96. package/dist/atoms/Skeleton/index.js.map +1 -0
  97. package/dist/atoms/Slider/Slider.d.ts +67 -0
  98. package/dist/atoms/Slider/Slider.js +48 -0
  99. package/dist/atoms/Slider/Slider.js.map +1 -0
  100. package/dist/atoms/Slider/index.d.ts +2 -0
  101. package/dist/atoms/Slider/index.js +2 -0
  102. package/dist/atoms/Slider/index.js.map +1 -0
  103. package/dist/atoms/Spinner/Spinner.d.ts +11 -0
  104. package/dist/atoms/Spinner/Spinner.js +6 -0
  105. package/dist/atoms/Spinner/Spinner.js.map +1 -0
  106. package/dist/atoms/Spinner/index.d.ts +2 -0
  107. package/dist/atoms/Spinner/index.js +2 -0
  108. package/dist/atoms/Spinner/index.js.map +1 -0
  109. package/dist/atoms/TextArea/TextArea.d.ts +14 -0
  110. package/dist/atoms/TextArea/TextArea.js +10 -0
  111. package/dist/atoms/TextArea/TextArea.js.map +1 -0
  112. package/dist/atoms/TextArea/index.d.ts +2 -0
  113. package/dist/atoms/TextArea/index.js +2 -0
  114. package/dist/atoms/TextArea/index.js.map +1 -0
  115. package/dist/components/atoms/Incentive/Incentive.d.ts +11 -0
  116. package/dist/components/atoms/Incentive/Incentive.js +6 -0
  117. package/dist/components/atoms/Incentive/Incentive.js.map +1 -0
  118. package/dist/components/atoms/Incentive/index.d.ts +2 -0
  119. package/dist/components/atoms/Incentive/index.js +2 -0
  120. package/dist/components/atoms/Incentive/index.js.map +1 -0
  121. package/dist/components/atoms/Popover/Popover.d.ts +15 -0
  122. package/dist/components/atoms/Popover/Popover.js +7 -0
  123. package/dist/components/atoms/Popover/Popover.js.map +1 -0
  124. package/dist/components/atoms/Popover/index.d.ts +2 -0
  125. package/dist/components/atoms/Popover/index.js +2 -0
  126. package/dist/components/atoms/Popover/index.js.map +1 -0
  127. package/dist/components/atoms/Skeleton/Skeleton.d.ts +10 -0
  128. package/dist/components/atoms/Skeleton/Skeleton.js +6 -0
  129. package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -0
  130. package/dist/components/atoms/Skeleton/index.d.ts +2 -0
  131. package/dist/components/atoms/Skeleton/index.js +2 -0
  132. package/dist/components/atoms/Skeleton/index.js.map +1 -0
  133. package/dist/components/atoms/Slider/Slider.d.ts +67 -0
  134. package/dist/components/atoms/Slider/Slider.js +48 -0
  135. package/dist/components/atoms/Slider/Slider.js.map +1 -0
  136. package/dist/components/atoms/Slider/index.d.ts +2 -0
  137. package/dist/components/atoms/Slider/index.js +2 -0
  138. package/dist/components/atoms/Slider/index.js.map +1 -0
  139. package/dist/components/atoms/Spinner/Spinner.d.ts +11 -0
  140. package/dist/components/atoms/Spinner/Spinner.js +6 -0
  141. package/dist/components/atoms/Spinner/Spinner.js.map +1 -0
  142. package/dist/components/atoms/Spinner/index.d.ts +2 -0
  143. package/dist/components/atoms/Spinner/index.js +2 -0
  144. package/dist/components/atoms/Spinner/index.js.map +1 -0
  145. package/dist/components/atoms/TextArea/TextArea.d.ts +14 -0
  146. package/dist/components/atoms/TextArea/TextArea.js +10 -0
  147. package/dist/components/atoms/TextArea/TextArea.js.map +1 -0
  148. package/dist/components/atoms/TextArea/index.d.ts +2 -0
  149. package/dist/components/atoms/TextArea/index.js +2 -0
  150. package/dist/components/atoms/TextArea/index.js.map +1 -0
  151. package/dist/components/molecules/Banner/Banner.d.ts +14 -0
  152. package/dist/components/molecules/Banner/Banner.js +6 -0
  153. package/dist/components/molecules/Banner/Banner.js.map +1 -0
  154. package/dist/components/molecules/Banner/BannerContent.d.ts +10 -0
  155. package/dist/components/molecules/Banner/BannerContent.js +6 -0
  156. package/dist/components/molecules/Banner/BannerContent.js.map +1 -0
  157. package/dist/components/molecules/Banner/BannerImage.d.ts +10 -0
  158. package/dist/components/molecules/Banner/BannerImage.js +6 -0
  159. package/dist/components/molecules/Banner/BannerImage.js.map +1 -0
  160. package/dist/components/molecules/Banner/BannerLink.d.ts +10 -0
  161. package/dist/components/molecules/Banner/BannerLink.js +6 -0
  162. package/dist/components/molecules/Banner/BannerLink.js.map +1 -0
  163. package/dist/components/molecules/Banner/index.d.ts +8 -0
  164. package/dist/components/molecules/Banner/index.js +5 -0
  165. package/dist/components/molecules/Banner/index.js.map +1 -0
  166. package/dist/components/molecules/Breadcrumb/Breadcrumb.d.ts +14 -0
  167. package/dist/components/molecules/Breadcrumb/Breadcrumb.js +38 -0
  168. package/dist/components/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
  169. package/dist/components/molecules/Breadcrumb/index.d.ts +2 -0
  170. package/dist/components/molecules/Breadcrumb/index.js +2 -0
  171. package/dist/components/molecules/Breadcrumb/index.js.map +1 -0
  172. package/dist/components/molecules/Bullets/Bullets.d.ts +35 -0
  173. package/dist/components/molecules/Bullets/Bullets.js +12 -0
  174. package/dist/components/molecules/Bullets/Bullets.js.map +1 -0
  175. package/dist/components/molecules/Bullets/index.d.ts +2 -0
  176. package/dist/components/molecules/Bullets/index.js +2 -0
  177. package/dist/components/molecules/Bullets/index.js.map +1 -0
  178. package/dist/components/molecules/Card/Card.d.ts +10 -0
  179. package/dist/components/molecules/Card/Card.js +6 -0
  180. package/dist/components/molecules/Card/Card.js.map +1 -0
  181. package/dist/components/molecules/Card/CardActions.d.ts +10 -0
  182. package/dist/components/molecules/Card/CardActions.js +6 -0
  183. package/dist/components/molecules/Card/CardActions.js.map +1 -0
  184. package/dist/components/molecules/Card/CardContent.d.ts +10 -0
  185. package/dist/components/molecules/Card/CardContent.js +6 -0
  186. package/dist/components/molecules/Card/CardContent.js.map +1 -0
  187. package/dist/components/molecules/Card/CardImage.d.ts +10 -0
  188. package/dist/components/molecules/Card/CardImage.js +6 -0
  189. package/dist/components/molecules/Card/CardImage.js.map +1 -0
  190. package/dist/components/molecules/Card/index.d.ts +8 -0
  191. package/dist/components/molecules/Card/index.js +5 -0
  192. package/dist/components/molecules/Card/index.js.map +1 -0
  193. package/dist/components/molecules/Carousel/Arrows.d.ts +12 -0
  194. package/dist/components/molecules/Carousel/Arrows.js +6 -0
  195. package/dist/components/molecules/Carousel/Arrows.js.map +1 -0
  196. package/dist/components/molecules/Carousel/Carousel.d.ts +54 -0
  197. package/dist/components/molecules/Carousel/Carousel.js +183 -0
  198. package/dist/components/molecules/Carousel/Carousel.js.map +1 -0
  199. package/dist/components/molecules/Carousel/CarouselItem.d.ts +11 -0
  200. package/dist/components/molecules/Carousel/CarouselItem.js +18 -0
  201. package/dist/components/molecules/Carousel/CarouselItem.js.map +1 -0
  202. package/dist/components/molecules/Carousel/hooks/useSlideVisibility.d.ts +9 -0
  203. package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js +29 -0
  204. package/dist/components/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
  205. package/dist/components/molecules/Carousel/index.d.ts +2 -0
  206. package/dist/components/molecules/Carousel/index.js +3 -0
  207. package/dist/components/molecules/Carousel/index.js.map +1 -0
  208. package/dist/components/molecules/CartItem/CartItem.d.ts +10 -0
  209. package/dist/components/molecules/CartItem/CartItem.js +6 -0
  210. package/dist/components/molecules/CartItem/CartItem.js.map +1 -0
  211. package/dist/components/molecules/CartItem/CartItemActions.d.ts +10 -0
  212. package/dist/components/molecules/CartItem/CartItemActions.js +6 -0
  213. package/dist/components/molecules/CartItem/CartItemActions.js.map +1 -0
  214. package/dist/components/molecules/CartItem/CartItemContent.d.ts +10 -0
  215. package/dist/components/molecules/CartItem/CartItemContent.js +6 -0
  216. package/dist/components/molecules/CartItem/CartItemContent.js.map +1 -0
  217. package/dist/components/molecules/CartItem/CartItemImage.d.ts +10 -0
  218. package/dist/components/molecules/CartItem/CartItemImage.js +6 -0
  219. package/dist/components/molecules/CartItem/CartItemImage.js.map +1 -0
  220. package/dist/components/molecules/CartItem/CartItemPrices.d.ts +10 -0
  221. package/dist/components/molecules/CartItem/CartItemPrices.js +6 -0
  222. package/dist/components/molecules/CartItem/CartItemPrices.js.map +1 -0
  223. package/dist/components/molecules/CartItem/CartItemSummary.d.ts +10 -0
  224. package/dist/components/molecules/CartItem/CartItemSummary.js +6 -0
  225. package/dist/components/molecules/CartItem/CartItemSummary.js.map +1 -0
  226. package/dist/components/molecules/CartItem/CartItemTitle.d.ts +10 -0
  227. package/dist/components/molecules/CartItem/CartItemTitle.js +6 -0
  228. package/dist/components/molecules/CartItem/CartItemTitle.js.map +1 -0
  229. package/dist/components/molecules/CartItem/index.d.ts +14 -0
  230. package/dist/components/molecules/CartItem/index.js +8 -0
  231. package/dist/components/molecules/CartItem/index.js.map +1 -0
  232. package/dist/components/molecules/Form/Form.d.ts +11 -0
  233. package/dist/components/molecules/Form/Form.js +6 -0
  234. package/dist/components/molecules/Form/Form.js.map +1 -0
  235. package/dist/components/molecules/Form/index.d.ts +2 -0
  236. package/dist/components/molecules/Form/index.js +2 -0
  237. package/dist/components/molecules/Form/index.js.map +1 -0
  238. package/dist/components/molecules/Gift/Gift.d.ts +15 -0
  239. package/dist/components/molecules/Gift/Gift.js +9 -0
  240. package/dist/components/molecules/Gift/Gift.js.map +1 -0
  241. package/dist/components/molecules/Gift/GiftContent.d.ts +10 -0
  242. package/dist/components/molecules/Gift/GiftContent.js +6 -0
  243. package/dist/components/molecules/Gift/GiftContent.js.map +1 -0
  244. package/dist/components/molecules/Gift/GiftImage.d.ts +10 -0
  245. package/dist/components/molecules/Gift/GiftImage.js +6 -0
  246. package/dist/components/molecules/Gift/GiftImage.js.map +1 -0
  247. package/dist/components/molecules/Gift/index.d.ts +6 -0
  248. package/dist/components/molecules/Gift/index.js +4 -0
  249. package/dist/components/molecules/Gift/index.js.map +1 -0
  250. package/dist/components/molecules/LoadingButton/LoadingButton.d.ts +14 -0
  251. package/dist/components/molecules/LoadingButton/LoadingButton.js +8 -0
  252. package/dist/components/molecules/LoadingButton/LoadingButton.js.map +1 -0
  253. package/dist/components/molecules/LoadingButton/index.d.ts +2 -0
  254. package/dist/components/molecules/LoadingButton/index.js +2 -0
  255. package/dist/components/molecules/LoadingButton/index.js.map +1 -0
  256. package/dist/components/molecules/Modal/Modal.d.ts +25 -0
  257. package/dist/components/molecules/Modal/Modal.js +31 -0
  258. package/dist/components/molecules/Modal/Modal.js.map +1 -0
  259. package/dist/components/molecules/Modal/ModalContent.d.ts +10 -0
  260. package/dist/components/molecules/Modal/ModalContent.js +23 -0
  261. package/dist/components/molecules/Modal/ModalContent.js.map +1 -0
  262. package/dist/components/molecules/Modal/index.d.ts +2 -0
  263. package/dist/components/molecules/Modal/index.js +2 -0
  264. package/dist/components/molecules/Modal/index.js.map +1 -0
  265. package/dist/components/molecules/Modal/useTrapFocus.d.ts +8 -0
  266. package/dist/components/molecules/Modal/useTrapFocus.js +76 -0
  267. package/dist/components/molecules/Modal/useTrapFocus.js.map +1 -0
  268. package/dist/components/molecules/OrderSummary/OrderSummary.d.ts +35 -0
  269. package/dist/components/molecules/OrderSummary/OrderSummary.js +16 -0
  270. package/dist/components/molecules/OrderSummary/OrderSummary.js.map +1 -0
  271. package/dist/components/molecules/OrderSummary/index.d.ts +2 -0
  272. package/dist/components/molecules/OrderSummary/index.js +2 -0
  273. package/dist/components/molecules/OrderSummary/index.js.map +1 -0
  274. package/dist/components/molecules/PaymentMethods/PaymentMethods.d.ts +26 -0
  275. package/dist/components/molecules/PaymentMethods/PaymentMethods.js +8 -0
  276. package/dist/components/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
  277. package/dist/components/molecules/PaymentMethods/index.d.ts +2 -0
  278. package/dist/components/molecules/PaymentMethods/index.js +2 -0
  279. package/dist/components/molecules/PaymentMethods/index.js.map +1 -0
  280. package/dist/components/molecules/PriceRange/PriceRange.d.ts +47 -0
  281. package/dist/components/molecules/PriceRange/PriceRange.js +28 -0
  282. package/dist/components/molecules/PriceRange/PriceRange.js.map +1 -0
  283. package/dist/components/molecules/PriceRange/index.d.ts +2 -0
  284. package/dist/components/molecules/PriceRange/index.js +2 -0
  285. package/dist/components/molecules/PriceRange/index.js.map +1 -0
  286. package/dist/components/molecules/ProductCard/ProductCard.d.ts +11 -0
  287. package/dist/components/molecules/ProductCard/ProductCard.js +6 -0
  288. package/dist/components/molecules/ProductCard/ProductCard.js.map +1 -0
  289. package/dist/components/molecules/ProductCard/ProductCardActions.d.ts +10 -0
  290. package/dist/components/molecules/ProductCard/ProductCardActions.js +6 -0
  291. package/dist/components/molecules/ProductCard/ProductCardActions.js.map +1 -0
  292. package/dist/components/molecules/ProductCard/ProductCardContent.d.ts +10 -0
  293. package/dist/components/molecules/ProductCard/ProductCardContent.js +6 -0
  294. package/dist/components/molecules/ProductCard/ProductCardContent.js.map +1 -0
  295. package/dist/components/molecules/ProductCard/ProductCardImage.d.ts +10 -0
  296. package/dist/components/molecules/ProductCard/ProductCardImage.js +6 -0
  297. package/dist/components/molecules/ProductCard/ProductCardImage.js.map +1 -0
  298. package/dist/components/molecules/ProductCard/index.d.ts +8 -0
  299. package/dist/components/molecules/ProductCard/index.js +5 -0
  300. package/dist/components/molecules/ProductCard/index.js.map +1 -0
  301. package/dist/components/molecules/ProductTitle/ProductTitle.d.ts +47 -0
  302. package/dist/components/molecules/ProductTitle/ProductTitle.js +12 -0
  303. package/dist/components/molecules/ProductTitle/ProductTitle.js.map +1 -0
  304. package/dist/components/molecules/ProductTitle/index.d.ts +2 -0
  305. package/dist/components/molecules/ProductTitle/index.js +2 -0
  306. package/dist/components/molecules/ProductTitle/index.js.map +1 -0
  307. package/dist/components/molecules/SearchInput/SearchInput.d.ts +28 -0
  308. package/dist/components/molecules/SearchInput/SearchInput.js +26 -0
  309. package/dist/components/molecules/SearchInput/SearchInput.js.map +1 -0
  310. package/dist/components/molecules/SearchInput/index.d.ts +2 -0
  311. package/dist/components/molecules/SearchInput/index.js +2 -0
  312. package/dist/components/molecules/SearchInput/index.js.map +1 -0
  313. package/dist/components/molecules/SkuSelector/SkuSelector.d.ts +58 -0
  314. package/dist/components/molecules/SkuSelector/SkuSelector.js +15 -0
  315. package/dist/components/molecules/SkuSelector/SkuSelector.js.map +1 -0
  316. package/dist/components/molecules/SkuSelector/index.d.ts +2 -0
  317. package/dist/components/molecules/SkuSelector/index.js +2 -0
  318. package/dist/components/molecules/SkuSelector/index.js.map +1 -0
  319. package/dist/components/organisms/OutOfStock/OutOfStock.d.ts +21 -0
  320. package/dist/components/organisms/OutOfStock/OutOfStock.js +8 -0
  321. package/dist/components/organisms/OutOfStock/OutOfStock.js.map +1 -0
  322. package/dist/components/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -0
  323. package/dist/components/organisms/OutOfStock/OutOfStockMessage.js +5 -0
  324. package/dist/components/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
  325. package/dist/components/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -0
  326. package/dist/components/organisms/OutOfStock/OutOfStockTitle.js +5 -0
  327. package/dist/components/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
  328. package/dist/components/organisms/OutOfStock/index.d.ts +6 -0
  329. package/dist/components/organisms/OutOfStock/index.js +4 -0
  330. package/dist/components/organisms/OutOfStock/index.js.map +1 -0
  331. package/dist/components/organisms/Tiles/Tile.d.ts +11 -0
  332. package/dist/components/organisms/Tiles/Tile.js +6 -0
  333. package/dist/components/organisms/Tiles/Tile.js.map +1 -0
  334. package/dist/components/organisms/Tiles/Tiles.d.ts +11 -0
  335. package/dist/components/organisms/Tiles/Tiles.js +30 -0
  336. package/dist/components/organisms/Tiles/Tiles.js.map +1 -0
  337. package/dist/components/organisms/Tiles/index.d.ts +4 -0
  338. package/dist/components/organisms/Tiles/index.js +3 -0
  339. package/dist/components/organisms/Tiles/index.js.map +1 -0
  340. package/dist/hooks/useSlider/index.d.ts +2 -0
  341. package/dist/hooks/useSlider/index.js +3 -0
  342. package/dist/hooks/useSlider/index.js.map +1 -0
  343. package/dist/hooks/useSlider/useSlider.d.ts +64 -0
  344. package/dist/hooks/useSlider/useSlider.js +103 -0
  345. package/dist/hooks/useSlider/useSlider.js.map +1 -0
  346. package/dist/index.d.ts +7 -0
  347. package/dist/index.js +7 -0
  348. package/dist/index.js.map +1 -0
  349. package/dist/molecules/Accordion/Accordion.d.ts +26 -0
  350. package/dist/molecules/Accordion/Accordion.js +21 -0
  351. package/dist/molecules/Accordion/Accordion.js.map +1 -0
  352. package/dist/molecules/Accordion/AccordionButton.d.ts +10 -0
  353. package/dist/molecules/Accordion/AccordionButton.js +37 -0
  354. package/dist/molecules/Accordion/AccordionButton.js.map +1 -0
  355. package/dist/molecules/Accordion/AccordionItem.d.ts +37 -0
  356. package/dist/molecules/Accordion/AccordionItem.js +28 -0
  357. package/dist/molecules/Accordion/AccordionItem.js.map +1 -0
  358. package/dist/molecules/Accordion/AccordionPanel.d.ts +10 -0
  359. package/dist/molecules/Accordion/AccordionPanel.js +10 -0
  360. package/dist/molecules/Accordion/AccordionPanel.js.map +1 -0
  361. package/dist/molecules/Accordion/index.d.ts +8 -0
  362. package/dist/molecules/Accordion/index.js +5 -0
  363. package/dist/molecules/Accordion/index.js.map +1 -0
  364. package/dist/molecules/AggregateRating/AggregateRating.d.ts +18 -0
  365. package/dist/molecules/AggregateRating/AggregateRating.js +26 -0
  366. package/dist/molecules/AggregateRating/AggregateRating.js.map +1 -0
  367. package/dist/molecules/AggregateRating/index.d.ts +2 -0
  368. package/dist/molecules/AggregateRating/index.js +2 -0
  369. package/dist/molecules/AggregateRating/index.js.map +1 -0
  370. package/dist/molecules/Alert/Alert.d.ts +11 -0
  371. package/dist/molecules/Alert/Alert.js +6 -0
  372. package/dist/molecules/Alert/Alert.js.map +1 -0
  373. package/dist/molecules/Alert/index.d.ts +2 -0
  374. package/dist/molecules/Alert/index.js +2 -0
  375. package/dist/molecules/Alert/index.js.map +1 -0
  376. package/dist/molecules/Banner/Banner.d.ts +14 -0
  377. package/dist/molecules/Banner/Banner.js +6 -0
  378. package/dist/molecules/Banner/Banner.js.map +1 -0
  379. package/dist/molecules/Banner/BannerContent.d.ts +10 -0
  380. package/dist/molecules/Banner/BannerContent.js +6 -0
  381. package/dist/molecules/Banner/BannerContent.js.map +1 -0
  382. package/dist/molecules/Banner/BannerImage.d.ts +10 -0
  383. package/dist/molecules/Banner/BannerImage.js +6 -0
  384. package/dist/molecules/Banner/BannerImage.js.map +1 -0
  385. package/dist/molecules/Banner/BannerLink.d.ts +10 -0
  386. package/dist/molecules/Banner/BannerLink.js +6 -0
  387. package/dist/molecules/Banner/BannerLink.js.map +1 -0
  388. package/dist/molecules/Banner/index.d.ts +8 -0
  389. package/dist/molecules/Banner/index.js +5 -0
  390. package/dist/molecules/Banner/index.js.map +1 -0
  391. package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +14 -0
  392. package/dist/molecules/Breadcrumb/Breadcrumb.js +38 -0
  393. package/dist/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
  394. package/dist/molecules/Breadcrumb/index.d.ts +2 -0
  395. package/dist/molecules/Breadcrumb/index.js +2 -0
  396. package/dist/molecules/Breadcrumb/index.js.map +1 -0
  397. package/dist/molecules/Bullets/Bullets.d.ts +35 -0
  398. package/dist/molecules/Bullets/Bullets.js +12 -0
  399. package/dist/molecules/Bullets/Bullets.js.map +1 -0
  400. package/dist/molecules/Bullets/index.d.ts +2 -0
  401. package/dist/molecules/Bullets/index.js +2 -0
  402. package/dist/molecules/Bullets/index.js.map +1 -0
  403. package/dist/molecules/Card/Card.d.ts +10 -0
  404. package/dist/molecules/Card/Card.js +6 -0
  405. package/dist/molecules/Card/Card.js.map +1 -0
  406. package/dist/molecules/Card/CardActions.d.ts +10 -0
  407. package/dist/molecules/Card/CardActions.js +6 -0
  408. package/dist/molecules/Card/CardActions.js.map +1 -0
  409. package/dist/molecules/Card/CardContent.d.ts +10 -0
  410. package/dist/molecules/Card/CardContent.js +6 -0
  411. package/dist/molecules/Card/CardContent.js.map +1 -0
  412. package/dist/molecules/Card/CardImage.d.ts +10 -0
  413. package/dist/molecules/Card/CardImage.js +6 -0
  414. package/dist/molecules/Card/CardImage.js.map +1 -0
  415. package/dist/molecules/Card/index.d.ts +8 -0
  416. package/dist/molecules/Card/index.js +5 -0
  417. package/dist/molecules/Card/index.js.map +1 -0
  418. package/dist/molecules/Carousel/Arrows.d.ts +12 -0
  419. package/dist/molecules/Carousel/Arrows.js +6 -0
  420. package/dist/molecules/Carousel/Arrows.js.map +1 -0
  421. package/dist/molecules/Carousel/Carousel.d.ts +54 -0
  422. package/dist/molecules/Carousel/Carousel.js +183 -0
  423. package/dist/molecules/Carousel/Carousel.js.map +1 -0
  424. package/dist/molecules/Carousel/CarouselItem.d.ts +11 -0
  425. package/dist/molecules/Carousel/CarouselItem.js +18 -0
  426. package/dist/molecules/Carousel/CarouselItem.js.map +1 -0
  427. package/dist/molecules/Carousel/hooks/useSlideVisibility.d.ts +9 -0
  428. package/dist/molecules/Carousel/hooks/useSlideVisibility.js +29 -0
  429. package/dist/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
  430. package/dist/molecules/Carousel/index.d.ts +2 -0
  431. package/dist/molecules/Carousel/index.js +3 -0
  432. package/dist/molecules/Carousel/index.js.map +1 -0
  433. package/dist/molecules/CartItem/CartItem.d.ts +10 -0
  434. package/dist/molecules/CartItem/CartItem.js +6 -0
  435. package/dist/molecules/CartItem/CartItem.js.map +1 -0
  436. package/dist/molecules/CartItem/CartItemActions.d.ts +10 -0
  437. package/dist/molecules/CartItem/CartItemActions.js +6 -0
  438. package/dist/molecules/CartItem/CartItemActions.js.map +1 -0
  439. package/dist/molecules/CartItem/CartItemContent.d.ts +10 -0
  440. package/dist/molecules/CartItem/CartItemContent.js +6 -0
  441. package/dist/molecules/CartItem/CartItemContent.js.map +1 -0
  442. package/dist/molecules/CartItem/CartItemImage.d.ts +10 -0
  443. package/dist/molecules/CartItem/CartItemImage.js +6 -0
  444. package/dist/molecules/CartItem/CartItemImage.js.map +1 -0
  445. package/dist/molecules/CartItem/CartItemPrices.d.ts +10 -0
  446. package/dist/molecules/CartItem/CartItemPrices.js +6 -0
  447. package/dist/molecules/CartItem/CartItemPrices.js.map +1 -0
  448. package/dist/molecules/CartItem/CartItemSummary.d.ts +10 -0
  449. package/dist/molecules/CartItem/CartItemSummary.js +6 -0
  450. package/dist/molecules/CartItem/CartItemSummary.js.map +1 -0
  451. package/dist/molecules/CartItem/CartItemTitle.d.ts +10 -0
  452. package/dist/molecules/CartItem/CartItemTitle.js +6 -0
  453. package/dist/molecules/CartItem/CartItemTitle.js.map +1 -0
  454. package/dist/molecules/CartItem/index.d.ts +14 -0
  455. package/dist/molecules/CartItem/index.js +8 -0
  456. package/dist/molecules/CartItem/index.js.map +1 -0
  457. package/dist/molecules/Dropdown/Dropdown.d.ts +9 -0
  458. package/dist/molecules/Dropdown/Dropdown.js +67 -0
  459. package/dist/molecules/Dropdown/Dropdown.js.map +1 -0
  460. package/dist/molecules/Dropdown/DropdownButton.d.ts +10 -0
  461. package/dist/molecules/Dropdown/DropdownButton.js +11 -0
  462. package/dist/molecules/Dropdown/DropdownButton.js.map +1 -0
  463. package/dist/molecules/Dropdown/DropdownItem.d.ts +10 -0
  464. package/dist/molecules/Dropdown/DropdownItem.js +26 -0
  465. package/dist/molecules/Dropdown/DropdownItem.js.map +1 -0
  466. package/dist/molecules/Dropdown/DropdownMenu.d.ts +22 -0
  467. package/dist/molecules/Dropdown/DropdownMenu.js +65 -0
  468. package/dist/molecules/Dropdown/DropdownMenu.js.map +1 -0
  469. package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -0
  470. package/dist/molecules/Dropdown/contexts/DropdownContext.js +11 -0
  471. package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
  472. package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +6 -0
  473. package/dist/molecules/Dropdown/hooks/useDropdown.js +14 -0
  474. package/dist/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
  475. package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -0
  476. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
  477. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
  478. package/dist/molecules/Dropdown/index.d.ts +8 -0
  479. package/dist/molecules/Dropdown/index.js +5 -0
  480. package/dist/molecules/Dropdown/index.js.map +1 -0
  481. package/dist/molecules/Dropdown/stories/assets/Caret.d.ts +2 -0
  482. package/dist/molecules/Dropdown/stories/assets/Caret.js +4 -0
  483. package/dist/molecules/Dropdown/stories/assets/Caret.js.map +1 -0
  484. package/dist/molecules/Form/Form.d.ts +11 -0
  485. package/dist/molecules/Form/Form.js +6 -0
  486. package/dist/molecules/Form/Form.js.map +1 -0
  487. package/dist/molecules/Form/index.d.ts +2 -0
  488. package/dist/molecules/Form/index.js +2 -0
  489. package/dist/molecules/Form/index.js.map +1 -0
  490. package/dist/molecules/Gift/Gift.d.ts +16 -0
  491. package/dist/molecules/Gift/Gift.js +9 -0
  492. package/dist/molecules/Gift/Gift.js.map +1 -0
  493. package/dist/molecules/Gift/GiftContent.d.ts +10 -0
  494. package/dist/molecules/Gift/GiftContent.js +6 -0
  495. package/dist/molecules/Gift/GiftContent.js.map +1 -0
  496. package/dist/molecules/Gift/GiftImage.d.ts +10 -0
  497. package/dist/molecules/Gift/GiftImage.js +6 -0
  498. package/dist/molecules/Gift/GiftImage.js.map +1 -0
  499. package/dist/molecules/Gift/index.d.ts +6 -0
  500. package/dist/molecules/Gift/index.js +4 -0
  501. package/dist/molecules/Gift/index.js.map +1 -0
  502. package/dist/molecules/IconButton/IconButton.d.ts +19 -0
  503. package/dist/molecules/IconButton/IconButton.js +9 -0
  504. package/dist/molecules/IconButton/IconButton.js.map +1 -0
  505. package/dist/molecules/IconButton/index.d.ts +2 -0
  506. package/dist/molecules/IconButton/index.js +2 -0
  507. package/dist/molecules/IconButton/index.js.map +1 -0
  508. package/dist/molecules/LoadingButton/LoadingButton.d.ts +14 -0
  509. package/dist/molecules/LoadingButton/LoadingButton.js +8 -0
  510. package/dist/molecules/LoadingButton/LoadingButton.js.map +1 -0
  511. package/dist/molecules/LoadingButton/index.d.ts +2 -0
  512. package/dist/molecules/LoadingButton/index.js +2 -0
  513. package/dist/molecules/LoadingButton/index.js.map +1 -0
  514. package/dist/molecules/Modal/Modal.d.ts +25 -0
  515. package/dist/molecules/Modal/Modal.js +31 -0
  516. package/dist/molecules/Modal/Modal.js.map +1 -0
  517. package/dist/molecules/Modal/ModalContent.d.ts +10 -0
  518. package/dist/molecules/Modal/ModalContent.js +23 -0
  519. package/dist/molecules/Modal/ModalContent.js.map +1 -0
  520. package/dist/molecules/Modal/index.d.ts +2 -0
  521. package/dist/molecules/Modal/index.js +2 -0
  522. package/dist/molecules/Modal/index.js.map +1 -0
  523. package/dist/molecules/Modal/useTrapFocus.d.ts +8 -0
  524. package/dist/molecules/Modal/useTrapFocus.js +76 -0
  525. package/dist/molecules/Modal/useTrapFocus.js.map +1 -0
  526. package/dist/molecules/OrderSummary/OrderSummary.d.ts +35 -0
  527. package/dist/molecules/OrderSummary/OrderSummary.js +16 -0
  528. package/dist/molecules/OrderSummary/OrderSummary.js.map +1 -0
  529. package/dist/molecules/OrderSummary/index.d.ts +2 -0
  530. package/dist/molecules/OrderSummary/index.js +2 -0
  531. package/dist/molecules/OrderSummary/index.js.map +1 -0
  532. package/dist/molecules/PaymentMethods/PaymentMethods.d.ts +26 -0
  533. package/dist/molecules/PaymentMethods/PaymentMethods.js +8 -0
  534. package/dist/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
  535. package/dist/molecules/PaymentMethods/index.d.ts +2 -0
  536. package/dist/molecules/PaymentMethods/index.js +2 -0
  537. package/dist/molecules/PaymentMethods/index.js.map +1 -0
  538. package/dist/molecules/PaymentMethods/stories/assets/Icons.d.ts +9 -0
  539. package/dist/molecules/PaymentMethods/stories/assets/Icons.js +26 -0
  540. package/dist/molecules/PaymentMethods/stories/assets/Icons.js.map +1 -0
  541. package/dist/molecules/PriceRange/PriceRange.d.ts +47 -0
  542. package/dist/molecules/PriceRange/PriceRange.js +28 -0
  543. package/dist/molecules/PriceRange/PriceRange.js.map +1 -0
  544. package/dist/molecules/PriceRange/index.d.ts +2 -0
  545. package/dist/molecules/PriceRange/index.js +2 -0
  546. package/dist/molecules/PriceRange/index.js.map +1 -0
  547. package/dist/molecules/ProductCard/ProductCard.d.ts +11 -0
  548. package/dist/molecules/ProductCard/ProductCard.js +6 -0
  549. package/dist/molecules/ProductCard/ProductCard.js.map +1 -0
  550. package/dist/molecules/ProductCard/ProductCardActions.d.ts +10 -0
  551. package/dist/molecules/ProductCard/ProductCardActions.js +6 -0
  552. package/dist/molecules/ProductCard/ProductCardActions.js.map +1 -0
  553. package/dist/molecules/ProductCard/ProductCardContent.d.ts +10 -0
  554. package/dist/molecules/ProductCard/ProductCardContent.js +6 -0
  555. package/dist/molecules/ProductCard/ProductCardContent.js.map +1 -0
  556. package/dist/molecules/ProductCard/ProductCardImage.d.ts +10 -0
  557. package/dist/molecules/ProductCard/ProductCardImage.js +6 -0
  558. package/dist/molecules/ProductCard/ProductCardImage.js.map +1 -0
  559. package/dist/molecules/ProductCard/index.d.ts +8 -0
  560. package/dist/molecules/ProductCard/index.js +5 -0
  561. package/dist/molecules/ProductCard/index.js.map +1 -0
  562. package/dist/molecules/ProductTitle/ProductTitle.d.ts +47 -0
  563. package/dist/molecules/ProductTitle/ProductTitle.js +12 -0
  564. package/dist/molecules/ProductTitle/ProductTitle.js.map +1 -0
  565. package/dist/molecules/ProductTitle/index.d.ts +2 -0
  566. package/dist/molecules/ProductTitle/index.js +2 -0
  567. package/dist/molecules/ProductTitle/index.js.map +1 -0
  568. package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +30 -0
  569. package/dist/molecules/QuantitySelector/QuantitySelector.js +11 -0
  570. package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
  571. package/dist/molecules/QuantitySelector/index.d.ts +2 -0
  572. package/dist/molecules/QuantitySelector/index.js +2 -0
  573. package/dist/molecules/QuantitySelector/index.js.map +1 -0
  574. package/dist/molecules/QuantitySelector/stories/assets/Icons.d.ts +7 -0
  575. package/dist/molecules/QuantitySelector/stories/assets/Icons.js +11 -0
  576. package/dist/molecules/QuantitySelector/stories/assets/Icons.js.map +1 -0
  577. package/dist/molecules/RadioGroup/RadioGroup.d.ts +5 -0
  578. package/dist/molecules/RadioGroup/RadioGroup.js +10 -0
  579. package/dist/molecules/RadioGroup/RadioGroup.js.map +1 -0
  580. package/dist/molecules/RadioGroup/RadioOption.d.ts +19 -0
  581. package/dist/molecules/RadioGroup/RadioOption.js +11 -0
  582. package/dist/molecules/RadioGroup/RadioOption.js.map +1 -0
  583. package/dist/molecules/RadioGroup/index.d.ts +4 -0
  584. package/dist/molecules/RadioGroup/index.js +3 -0
  585. package/dist/molecules/RadioGroup/index.js.map +1 -0
  586. package/dist/molecules/RadioGroup/useRadioGroup.d.ts +17 -0
  587. package/dist/molecules/RadioGroup/useRadioGroup.js +10 -0
  588. package/dist/molecules/RadioGroup/useRadioGroup.js.map +1 -0
  589. package/dist/molecules/SearchInput/SearchInput.d.ts +28 -0
  590. package/dist/molecules/SearchInput/SearchInput.js +28 -0
  591. package/dist/molecules/SearchInput/SearchInput.js.map +1 -0
  592. package/dist/molecules/SearchInput/index.d.ts +2 -0
  593. package/dist/molecules/SearchInput/index.js +2 -0
  594. package/dist/molecules/SearchInput/index.js.map +1 -0
  595. package/dist/molecules/SearchInput/stories/assets/CustomIcon.d.ts +3 -0
  596. package/dist/molecules/SearchInput/stories/assets/CustomIcon.js +7 -0
  597. package/dist/molecules/SearchInput/stories/assets/CustomIcon.js.map +1 -0
  598. package/dist/molecules/SkuSelector/SkuSelector.d.ts +58 -0
  599. package/dist/molecules/SkuSelector/SkuSelector.js +15 -0
  600. package/dist/molecules/SkuSelector/SkuSelector.js.map +1 -0
  601. package/dist/molecules/SkuSelector/index.d.ts +2 -0
  602. package/dist/molecules/SkuSelector/index.js +2 -0
  603. package/dist/molecules/SkuSelector/index.js.map +1 -0
  604. package/dist/molecules/Table/Table.d.ts +11 -0
  605. package/dist/molecules/Table/Table.js +6 -0
  606. package/dist/molecules/Table/Table.js.map +1 -0
  607. package/dist/molecules/Table/TableBody.d.ts +11 -0
  608. package/dist/molecules/Table/TableBody.js +6 -0
  609. package/dist/molecules/Table/TableBody.js.map +1 -0
  610. package/dist/molecules/Table/TableCell.d.ts +20 -0
  611. package/dist/molecules/Table/TableCell.js +7 -0
  612. package/dist/molecules/Table/TableCell.js.map +1 -0
  613. package/dist/molecules/Table/TableFooter.d.ts +11 -0
  614. package/dist/molecules/Table/TableFooter.js +6 -0
  615. package/dist/molecules/Table/TableFooter.js.map +1 -0
  616. package/dist/molecules/Table/TableHead.d.ts +11 -0
  617. package/dist/molecules/Table/TableHead.js +6 -0
  618. package/dist/molecules/Table/TableHead.js.map +1 -0
  619. package/dist/molecules/Table/TableRow.d.ts +11 -0
  620. package/dist/molecules/Table/TableRow.js +6 -0
  621. package/dist/molecules/Table/TableRow.js.map +1 -0
  622. package/dist/molecules/Table/index.d.ts +12 -0
  623. package/dist/molecules/Table/index.js +7 -0
  624. package/dist/molecules/Table/index.js.map +1 -0
  625. package/dist/organisms/Hero/Hero.d.ts +11 -0
  626. package/dist/organisms/Hero/Hero.js +6 -0
  627. package/dist/organisms/Hero/Hero.js.map +1 -0
  628. package/dist/organisms/Hero/HeroHeading.d.ts +10 -0
  629. package/dist/organisms/Hero/HeroHeading.js +6 -0
  630. package/dist/organisms/Hero/HeroHeading.js.map +1 -0
  631. package/dist/organisms/Hero/HeroImage.d.ts +10 -0
  632. package/dist/organisms/Hero/HeroImage.js +6 -0
  633. package/dist/organisms/Hero/HeroImage.js.map +1 -0
  634. package/dist/organisms/Hero/index.d.ts +6 -0
  635. package/dist/organisms/Hero/index.js +4 -0
  636. package/dist/organisms/Hero/index.js.map +1 -0
  637. package/dist/organisms/OutOfStock/OutOfStock.d.ts +21 -0
  638. package/dist/organisms/OutOfStock/OutOfStock.js +8 -0
  639. package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -0
  640. package/dist/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -0
  641. package/dist/organisms/OutOfStock/OutOfStockMessage.js +5 -0
  642. package/dist/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
  643. package/dist/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -0
  644. package/dist/organisms/OutOfStock/OutOfStockTitle.js +5 -0
  645. package/dist/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
  646. package/dist/organisms/OutOfStock/index.d.ts +6 -0
  647. package/dist/organisms/OutOfStock/index.js +4 -0
  648. package/dist/organisms/OutOfStock/index.js.map +1 -0
  649. package/dist/organisms/Tiles/Tile.d.ts +11 -0
  650. package/dist/organisms/Tiles/Tile.js +6 -0
  651. package/dist/organisms/Tiles/Tile.js.map +1 -0
  652. package/dist/organisms/Tiles/Tiles.d.ts +11 -0
  653. package/dist/organisms/Tiles/Tiles.js +30 -0
  654. package/dist/organisms/Tiles/Tiles.js.map +1 -0
  655. package/dist/organisms/Tiles/index.d.ts +4 -0
  656. package/dist/organisms/Tiles/index.js +3 -0
  657. package/dist/organisms/Tiles/index.js.map +1 -0
  658. package/dist/setupTests.d.ts +1 -0
  659. package/dist/setupTests.js +6 -0
  660. package/dist/setupTests.js.map +1 -0
  661. package/dist/typings/PolymorphicGenerics.d.ts +28 -0
  662. package/dist/typings/PolymorphicGenerics.js +8 -0
  663. package/dist/typings/PolymorphicGenerics.js.map +1 -0
  664. package/dist/typings/index.d.ts +1 -0
  665. package/dist/typings/index.js +2 -0
  666. package/dist/typings/index.js.map +1 -0
  667. package/dist/utils/toHaveNoIncomplete.d.ts +17 -0
  668. package/dist/utils/toHaveNoIncomplete.js +43 -0
  669. package/dist/utils/toHaveNoIncomplete.js.map +1 -0
  670. package/package.json +5 -5
  671. package/src/components/organisms/ProductDetails/styles.scss +12 -0
  672. package/src/styles/base/layout.scss +1 -0
@@ -0,0 +1,183 @@
1
+ import React, { useMemo, useRef } from 'react';
2
+ import { RightArrowIcon, LeftArrowIcon } from './Arrows';
3
+ import CarouselItem from './CarouselItem';
4
+ import useSlider from '../../../hooks/useSlider/useSlider';
5
+ import Bullets from '../Bullets';
6
+ import { IconButton } from '../../../';
7
+ const createTransformValues = (infinite, totalItems) => {
8
+ const transformMap = {};
9
+ const slideWidth = 100 / totalItems;
10
+ for (let idx = 0; idx < totalItems; ++idx) {
11
+ const currIdx = infinite ? idx - 1 : idx;
12
+ const transformValue = -(slideWidth * idx);
13
+ transformMap[currIdx] = transformValue;
14
+ }
15
+ return transformMap;
16
+ };
17
+ function Carousel({ infiniteMode = true, controls = 'complete', testId = 'store-carousel', transition = {
18
+ duration: 400,
19
+ property: 'transform',
20
+ }, children, className, id = 'store-carousel', variant = 'slide', itemsPerPage = 1, navigationIcons = undefined, ...swipeableConfigOverrides }) {
21
+ const carouselTrackRef = useRef(null);
22
+ const isSlideCarousel = variant === 'slide';
23
+ const isScrollCarousel = variant === 'scroll';
24
+ const childrenArray = React.Children.toArray(children);
25
+ const childrenCount = childrenArray.length;
26
+ const numberOfSlides = infiniteMode ? childrenCount + 2 : childrenCount;
27
+ const slidingTransition = `${transition.property} ${transition.duration}ms ${transition.timing ?? ''} ${transition.delay ?? ''}`;
28
+ const showNavigationArrows = controls === 'complete' || controls === 'navigationArrows';
29
+ const showPaginationBullets = controls === 'complete' || controls === 'paginationBullets';
30
+ const transformValues = useMemo(() => createTransformValues(infiniteMode, numberOfSlides), [numberOfSlides, infiniteMode]);
31
+ const { handlers, slide, sliderState, sliderDispatch } = useSlider({
32
+ itemsPerPage,
33
+ infiniteMode,
34
+ totalItems: childrenCount,
35
+ shouldSlideOnSwipe: isSlideCarousel,
36
+ ...swipeableConfigOverrides,
37
+ });
38
+ const postRenderedSlides = infiniteMode && children ? childrenArray.slice(0, 1) : [];
39
+ const preRenderedSlides = infiniteMode && children ? childrenArray.slice(childrenCount - 1) : [];
40
+ const slides = preRenderedSlides.concat(children ?? [], postRenderedSlides);
41
+ const slideCarouselTrackStyle = useMemo(() => ({
42
+ display: 'flex',
43
+ width: `${numberOfSlides * 100}%`,
44
+ transition: sliderState.sliding ? slidingTransition : undefined,
45
+ transform: `translate3d(${transformValues[sliderState.currentPage]}%, 0, 0)`,
46
+ }), [
47
+ numberOfSlides,
48
+ transformValues,
49
+ slidingTransition,
50
+ sliderState.sliding,
51
+ sliderState.currentPage,
52
+ ]);
53
+ const scrollCarouselTrackStyle = useMemo(() => ({
54
+ width: '100%',
55
+ display: 'block',
56
+ overflowX: 'scroll',
57
+ whiteSpace: 'nowrap',
58
+ }), []);
59
+ const carouselTrackStyle = (isSlideCarousel && slideCarouselTrackStyle) ||
60
+ (isScrollCarousel && scrollCarouselTrackStyle);
61
+ const slidePrevious = () => {
62
+ if (sliderState.sliding ||
63
+ (!infiniteMode && sliderState.currentPage === 0)) {
64
+ return;
65
+ }
66
+ slide('previous', sliderDispatch);
67
+ };
68
+ const slideNext = () => {
69
+ if (sliderState.sliding ||
70
+ (!infiniteMode && sliderState.currentPage === childrenCount - 1)) {
71
+ return;
72
+ }
73
+ slide('next', sliderDispatch);
74
+ };
75
+ const onScrollTrack = (event) => {
76
+ if (isSlideCarousel || itemsPerPage > 1) {
77
+ return;
78
+ }
79
+ const itemWidth = Number(event.currentTarget.firstElementChild?.scrollWidth);
80
+ const scrollOffset = event.currentTarget?.scrollLeft;
81
+ const formatter = scrollOffset > itemWidth / 2 ? Math.round : Math.floor;
82
+ const page = formatter(scrollOffset / itemWidth);
83
+ slide(page, sliderDispatch);
84
+ };
85
+ const onTransitionTrackEnd = () => {
86
+ sliderDispatch({
87
+ type: 'STOP_SLIDE',
88
+ });
89
+ if (infiniteMode && sliderState.currentItem >= childrenCount) {
90
+ sliderDispatch({
91
+ type: 'GO_TO_PAGE',
92
+ payload: {
93
+ pageIndex: 0,
94
+ shouldSlide: false,
95
+ },
96
+ });
97
+ }
98
+ if (infiniteMode && sliderState.currentItem < 0) {
99
+ sliderDispatch({
100
+ type: 'GO_TO_PAGE',
101
+ payload: {
102
+ pageIndex: sliderState.totalPages - 1,
103
+ shouldSlide: false,
104
+ },
105
+ });
106
+ }
107
+ };
108
+ const onScrollPagination = async (index, slideDirection) => {
109
+ if (slideDirection === 'previous' && sliderState.currentPage === 0) {
110
+ return;
111
+ }
112
+ if (slideDirection === 'next' &&
113
+ sliderState.currentPage === sliderState.totalPages - 1) {
114
+ return;
115
+ }
116
+ let scrollOffset;
117
+ const carouselItemsWidth = Number(carouselTrackRef.current?.firstElementChild?.clientWidth);
118
+ if (itemsPerPage > 1) {
119
+ scrollOffset = index * carouselItemsWidth * itemsPerPage;
120
+ }
121
+ else {
122
+ scrollOffset = index * carouselItemsWidth - carouselItemsWidth * 0.125;
123
+ }
124
+ carouselTrackRef.current?.scrollTo({
125
+ left: scrollOffset,
126
+ behavior: 'smooth',
127
+ });
128
+ slide(index, sliderDispatch);
129
+ };
130
+ // accessible behavior for tablist
131
+ const handleBulletsKeyDown = (event) => {
132
+ switch (event.key) {
133
+ case 'ArrowLeft': {
134
+ isSlideCarousel && slidePrevious();
135
+ isScrollCarousel &&
136
+ onScrollPagination(sliderState.currentPage - 1, 'previous');
137
+ break;
138
+ }
139
+ case 'ArrowRight': {
140
+ isSlideCarousel && slideNext();
141
+ isScrollCarousel &&
142
+ onScrollPagination(sliderState.currentPage + 1, 'next');
143
+ break;
144
+ }
145
+ case 'Home': {
146
+ slide(0, sliderDispatch);
147
+ break;
148
+ }
149
+ case 'End': {
150
+ slide(childrenCount - 1, sliderDispatch);
151
+ break;
152
+ }
153
+ default:
154
+ }
155
+ };
156
+ return (React.createElement("section", { id: id, "data-fs-carousel": true, className: className, "data-testid": testId, "aria-label": "carousel", "aria-roledescription": "carousel" },
157
+ React.createElement("div", { "data-fs-carousel-track-container": true, style: {
158
+ width: '100%',
159
+ overflow: 'hidden',
160
+ display: isScrollCarousel ? 'block' : undefined,
161
+ }, ...handlers },
162
+ React.createElement("ul", { "aria-live": "polite", ref: carouselTrackRef, style: carouselTrackStyle, "data-fs-carousel-track": true, onScroll: onScrollTrack, onTransitionEnd: onTransitionTrackEnd }, slides.map((currentSlide, idx) => (React.createElement(CarouselItem, { index: idx, key: String(idx), state: sliderState, totalItems: childrenCount, infiniteMode: infiniteMode, isScrollCarousel: isScrollCarousel }, currentSlide))))),
163
+ showNavigationArrows && (React.createElement("div", { "data-fs-carousel-controls": true },
164
+ React.createElement(IconButton, { "data-fs-carousel-control": "left", "aria-controls": id, "aria-label": "previous", icon: navigationIcons?.left ?? React.createElement(LeftArrowIcon, null), onClick: () => {
165
+ isSlideCarousel && slidePrevious();
166
+ isScrollCarousel &&
167
+ onScrollPagination(sliderState.currentPage - 1, 'previous');
168
+ } }),
169
+ React.createElement(IconButton, { "data-fs-carousel-control": "right", "aria-controls": id, "aria-label": "next", icon: navigationIcons?.right ?? React.createElement(RightArrowIcon, null), onClick: () => {
170
+ isSlideCarousel && slideNext();
171
+ isScrollCarousel &&
172
+ onScrollPagination(sliderState.currentPage + 1, 'next');
173
+ } }))),
174
+ showPaginationBullets && (React.createElement("div", { "data-fs-carousel-bullets": true },
175
+ React.createElement(Bullets, { tabIndex: 0, activeBullet: sliderState.currentPage, totalQuantity: Math.ceil(childrenCount / sliderState.itemsPerPage), onKeyDown: handleBulletsKeyDown, onClick: async (_, idx) => {
176
+ isSlideCarousel &&
177
+ !sliderState.sliding &&
178
+ slide(idx, sliderDispatch);
179
+ isScrollCarousel && onScrollPagination(idx);
180
+ }, onFocus: (event) => event.currentTarget.focus(), ariaControlsGenerator: (idx) => `carousel-item-${idx}` })))));
181
+ }
182
+ export default Carousel;
183
+ //# sourceMappingURL=Carousel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../../../src/components/molecules/Carousel/Carousel.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAG9C,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,YAAY,MAAM,gBAAgB,CAAA;AACzC,OAAO,SAAS,MAAM,oCAAoC,CAAA;AAC1D,OAAO,OAAO,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAEtC,MAAM,qBAAqB,GAAG,CAAC,QAAiB,EAAE,UAAkB,EAAE,EAAE;IACtE,MAAM,YAAY,GAA2B,EAAE,CAAA;IAC/C,MAAM,UAAU,GAAG,GAAG,GAAG,UAAU,CAAA;IAEnC,KAAK,IAAI,GAAG,GAAG,CAAC,EAAE,GAAG,GAAG,UAAU,EAAE,EAAE,GAAG,EAAE;QACzC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAA;QACxC,MAAM,cAAc,GAAG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AC/C,qBAAqB,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,iBAAiB,GAAG,EAAE,GACtD,CACE,CACP,CACO,CACX,CAAA;AACH,CAAC;AAED,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { PropsWithChildren, HTMLAttributes } from 'react';
2
+ import type { SliderState } from '../../../hooks/useSlider/useSlider';
3
+ interface CarouselItemProps extends HTMLAttributes<HTMLLIElement> {
4
+ index: number;
5
+ totalItems: number;
6
+ state: SliderState;
7
+ infiniteMode: boolean;
8
+ isScrollCarousel: boolean;
9
+ }
10
+ declare function CarouselItem({ index, state, children, totalItems, infiniteMode, isScrollCarousel, }: PropsWithChildren<CarouselItemProps>): JSX.Element;
11
+ export default CarouselItem;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import useSlideVisibility from './hooks/useSlideVisibility';
3
+ function CarouselItem({ index, state, children, totalItems, infiniteMode, isScrollCarousel, }) {
4
+ const { isItemVisible, shouldRenderItem } = useSlideVisibility({
5
+ totalItems,
6
+ currentSlide: state.currentItem,
7
+ itemsPerPage: state.itemsPerPage,
8
+ });
9
+ const style = (!isScrollCarousel && { width: '100%' }) ||
10
+ (isScrollCarousel && {
11
+ maxWidth: '80%',
12
+ display: 'inline-block',
13
+ });
14
+ const shouldDisplayItem = isScrollCarousel || shouldRenderItem(index - Number(infiniteMode));
15
+ return (React.createElement("li", { style: style, "data-fs-carousel-item": true, "aria-roledescription": "slide", id: `carousel-item-${index}`, "data-fs-carousel-item-visible": isItemVisible(index - Number(infiniteMode)) || undefined }, shouldDisplayItem ? children : null));
16
+ }
17
+ export default CarouselItem;
18
+ //# sourceMappingURL=CarouselItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CarouselItem.js","sourceRoot":"","sources":["../../../../src/components/molecules/Carousel/CarouselItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,kBAAkB,MAAM,4BAA4B,CAAA;AAU3D,SAAS,YAAY,CAAC,EACpB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,gBAAgB,GACqB;IACrC,MAAM,EAAE,aAAa,EAAE,gBAAgB,EAAE,GAAG,kBAAkB,CAAC;QAC7D,UAAU;QACV,YAAY,EAAE,KAAK,CAAC,WAAW;QAC/B,YAAY,EAAE,KAAK,CAAC,YAAY;KACjC,CAAC,CAAA;IAEF,MAAM,KAAK,GACR,CAAC,CAAC,gBAAgB,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,CAAmB;QAC1D,CAAC,gBAAgB,IAAI;YACpB,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,cAAc;SACxB,CAAmB,CAAA;IAEtB,MAAM,iBAAiB,GACrB,gBAAgB,IAAI,gBAAgB,CAAC,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAA;IAEpE,OAAO,CACL,4BACE,KAAK,EAAE,KAAK,yDAES,OAAO,EAC5B,EAAE,EAAE,iBAAiB,KAAK,EAAE,mCAE1B,aAAa,CAAC,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,IAAI,SAAS,IAGzD,iBAAiB,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CACjC,CACN,CAAA;AACH,CAAC;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,9 @@
1
+ export interface UseSlideVisibilityArgs {
2
+ currentSlide: number;
3
+ itemsPerPage: number;
4
+ totalItems: number;
5
+ }
6
+ export default function useSlideVisibility({ currentSlide, itemsPerPage, totalItems, }: UseSlideVisibilityArgs): {
7
+ shouldRenderItem: (index: number) => boolean;
8
+ isItemVisible: (index: number) => boolean;
9
+ };
@@ -0,0 +1,29 @@
1
+ import { useRef, useEffect } from 'react';
2
+ function isSlideVisible({ itemsPerPage, currentSlide, slideIdx, totalItems, }) {
3
+ const isClonedSlide = currentSlide < 0 || currentSlide >= totalItems;
4
+ const isVisible = slideIdx >= currentSlide && slideIdx < currentSlide + itemsPerPage;
5
+ return isClonedSlide || isVisible;
6
+ }
7
+ export default function useSlideVisibility({ currentSlide, itemsPerPage, totalItems, }) {
8
+ /** Keeps track of slides that have been visualized before.
9
+ * We want to keep rendering them because the issue is mostly rendering
10
+ * slides that might never be viewed; On the other hand, hiding slides
11
+ * that were visible causes visual glitches */
12
+ const visitedSlides = useRef(new Set());
13
+ useEffect(() => {
14
+ for (let i = 0; i < itemsPerPage; i++) {
15
+ visitedSlides.current.add(currentSlide + i);
16
+ }
17
+ }, [currentSlide, itemsPerPage]);
18
+ const isItemVisible = (index) => isSlideVisible({
19
+ slideIdx: index,
20
+ currentSlide,
21
+ itemsPerPage,
22
+ totalItems,
23
+ });
24
+ const shouldRenderItem = (index) => {
25
+ return visitedSlides.current.has(index) || isItemVisible(index);
26
+ };
27
+ return { shouldRenderItem, isItemVisible };
28
+ }
29
+ //# sourceMappingURL=useSlideVisibility.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useSlideVisibility.js","sourceRoot":"","sources":["../../../../../src/components/molecules/Carousel/hooks/useSlideVisibility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAezC,SAAS,cAAc,CAAC,EACtB,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,UAAU,GACS;IACnB,MAAM,aAAa,GAAG,YAAY,GAAG,CAAC,IAAI,YAAY,IAAI,UAAU,CAAA;IACpE,MAAM,SAAS,GACb,QAAQ,IAAI,YAAY,IAAI,QAAQ,GAAG,YAAY,GAAG,YAAY,CAAA;IAEpE,OAAO,aAAa,IAAI,SAAS,CAAA;AACnC,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,YAAY,EACZ,YAAY,EACZ,UAAU,GACa;IACvB;;;kDAG8C;IAC9C,MAAM,aAAa,GAAG,MAAM,CAAc,IAAI,GAAG,EAAE,CAAC,CAAA;IAEpD,SAAS,CAAC,GAAG,EAAE;QACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,EAAE,CAAC,EAAE,EAAE;YACrC,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,YAAY,GAAG,CAAC,CAAC,CAAA;SAC5C;IACH,CAAC,EAAE,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC,CAAA;IAEhC,MAAM,aAAa,GAAG,CAAC,KAAa,EAAE,EAAE,CACtC,cAAc,CAAC;QACb,QAAQ,EAAE,KAAK;QACf,YAAY;QACZ,YAAY;QACZ,UAAU;KACX,CAAC,CAAA;IAEJ,MAAM,gBAAgB,GAAG,CAAC,KAAa,EAAE,EAAE;QACzC,OAAO,aAAa,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,CAAA;IACjE,CAAC,CAAA;IAED,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,CAAA;AAC5C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './Carousel';
2
+ export * from './Carousel';
@@ -0,0 +1,3 @@
1
+ export { default } from './Carousel';
2
+ export * from './Carousel';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/Carousel/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,cAAc,YAAY,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface CartItemProps 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 CartItem: React.ForwardRefExoticComponent<CartItemProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default CartItem;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const CartItem = forwardRef(function CartItem({ testId = 'store-cart-item', children, ...otherProps }, ref) {
3
+ return (React.createElement("article", { ref: ref, "data-fs-cart-item": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default CartItem;
6
+ //# sourceMappingURL=CartItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItem.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,QAAQ,GAAG,UAAU,CAAgC,SAAS,QAAQ,CAC1E,EAAE,MAAM,GAAG,iBAAiB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACvD,GAAG;IAEH,OAAO,CACL,iCAAS,GAAG,EAAE,GAAG,4CAAiC,MAAM,KAAM,UAAU,IACrE,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,QAAQ,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface CartItemActionsProps 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 CartItemActions: React.ForwardRefExoticComponent<CartItemActionsProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default CartItemActions;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const CartItemActions = forwardRef(function CartItemActions({ testId = 'store-cart-item-actions', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", { ref: ref, "data-fs-cart-item-actions": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default CartItemActions;
6
+ //# sourceMappingURL=CartItemActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItemActions.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemActions.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,MAAM,GAAG,yBAAyB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC/D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,oDAAyC,MAAM,KAAM,UAAU,IACzE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface CartItemContentProps extends HTMLAttributes<HTMLElement> {
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 CartItemContent: React.ForwardRefExoticComponent<CartItemContentProps & React.RefAttributes<HTMLElement>>;
10
+ export default CartItemContent;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const CartItemContent = forwardRef(function CartItemContent({ testId = 'store-cart-item-content', children, ...otherProps }, ref) {
3
+ return (React.createElement("section", { ref: ref, "data-fs-cart-item-content": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default CartItemContent;
6
+ //# sourceMappingURL=CartItemContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItemContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,MAAM,GAAG,yBAAyB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC/D,GAAG;IAEH,OAAO,CACL,iCAAS,GAAG,EAAE,GAAG,oDAAyC,MAAM,KAAM,UAAU,IAC7E,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface CartItemImageProps 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 CartItemImage: React.ForwardRefExoticComponent<CartItemImageProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default CartItemImage;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const CartItemImage = forwardRef(function CartItemImage({ testId = 'store-cart-item-image', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", { ref: ref, "data-fs-cart-item-image": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default CartItemImage;
6
+ //# sourceMappingURL=CartItemImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItemImage.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,aAAa,GAAG,UAAU,CAAqC,SAAS,aAAa,CACzF,EAAE,MAAM,GAAG,uBAAuB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC7D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,kDAAuC,MAAM,KAAM,UAAU,IACvE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,aAAa,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface CartItemPricesProps extends HTMLAttributes<HTMLSpanElement> {
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 CartItemPrices: React.ForwardRefExoticComponent<CartItemPricesProps & React.RefAttributes<HTMLSpanElement>>;
10
+ export default CartItemPrices;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const CartItemPrices = forwardRef(function CartItemPrices({ testId = 'store-cart-item-prices', children, ...otherProps }, ref) {
3
+ return (React.createElement("span", { ref: ref, "data-fs-cart-item-prices": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default CartItemPrices;
6
+ //# sourceMappingURL=CartItemPrices.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItemPrices.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemPrices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EAAE,MAAM,GAAG,wBAAwB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC9D,GAAG;IAEH,OAAO,CACL,8BAAM,GAAG,EAAE,GAAG,mDAAwC,MAAM,KAAM,UAAU,IACzE,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface CartItemSummaryProps 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 CartItemSummary: React.ForwardRefExoticComponent<CartItemSummaryProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default CartItemSummary;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const CartItemSummary = forwardRef(function CartItemSummary({ testId = 'store-cart-item-summary', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", { ref: ref, "data-fs-cart-item-summary": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default CartItemSummary;
6
+ //# sourceMappingURL=CartItemSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItemSummary.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EAAE,MAAM,GAAG,yBAAyB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC/D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,oDAAyC,MAAM,KAAM,UAAU,IACzE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface CartItemTitleProps 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 CartItemTitle: React.ForwardRefExoticComponent<CartItemTitleProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default CartItemTitle;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const CartItemTitle = forwardRef(function CartItemTitle({ testId = 'store-cart-item-title', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", { ref: ref, "data-fs-cart-item-title": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default CartItemTitle;
6
+ //# sourceMappingURL=CartItemTitle.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CartItemTitle.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/CartItemTitle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,aAAa,GAAG,UAAU,CAAqC,SAAS,aAAa,CACzF,EAAE,MAAM,GAAG,uBAAuB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC7D,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,kDAAuC,MAAM,KAAM,UAAU,IACvE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,aAAa,CAAA"}
@@ -0,0 +1,14 @@
1
+ export { default } from './CartItem';
2
+ export type { CartItemProps } from './CartItem';
3
+ export { default as CartItemActions } from './CartItemActions';
4
+ export type { CartItemActionsProps } from './CartItemActions';
5
+ export { default as CartItemContent } from './CartItemContent';
6
+ export type { CartItemContentProps } from './CartItemContent';
7
+ export { default as CartItemImage } from './CartItemImage';
8
+ export type { CartItemImageProps } from './CartItemImage';
9
+ export { default as CartItemPrices } from './CartItemPrices';
10
+ export type { CartItemPricesProps } from './CartItemPrices';
11
+ export { default as CartItemSummary } from './CartItemSummary';
12
+ export type { CartItemSummaryProps } from './CartItemSummary';
13
+ export { default as CartItemTitle } from './CartItemTitle';
14
+ export type { CartItemTitleProps } from './CartItemTitle';
@@ -0,0 +1,8 @@
1
+ export { default } from './CartItem';
2
+ export { default as CartItemActions } from './CartItemActions';
3
+ export { default as CartItemContent } from './CartItemContent';
4
+ export { default as CartItemImage } from './CartItemImage';
5
+ export { default as CartItemPrices } from './CartItemPrices';
6
+ export { default as CartItemSummary } from './CartItemSummary';
7
+ export { default as CartItemTitle } from './CartItemTitle';
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/CartItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AAGpC,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAG5D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import type { FormHTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface FormProps extends FormHTMLAttributes<HTMLFormElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress,
6
+ * testing-library, and jest).
7
+ */
8
+ testId?: string;
9
+ }
10
+ declare const Form: React.ForwardRefExoticComponent<FormProps & React.RefAttributes<HTMLFormElement>>;
11
+ export default Form;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const Form = forwardRef(function Form({ testId = 'store-form', children, ...otherProps }, ref) {
3
+ return (React.createElement("form", { ref: ref, "data-fs-form": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default Form;
6
+ //# sourceMappingURL=Form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Form.js","sourceRoot":"","sources":["../../../../src/components/molecules/Form/Form.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAUzC,MAAM,IAAI,GAAG,UAAU,CAA6B,SAAS,IAAI,CAC/D,EAAE,MAAM,GAAG,YAAY,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAClD,GAAG;IAEH,OAAO,CACL,8BAAM,GAAG,EAAE,GAAG,uCAA4B,MAAM,KAAM,UAAU,IAC7D,QAAQ,CACJ,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,IAAI,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './Form';
2
+ export type { FormProps } from './Form';
@@ -0,0 +1,2 @@
1
+ export { default } from './Form';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ import React from 'react';
3
+ export interface GiftProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress,
6
+ * testing-library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * A React component that will be rendered as an icon.
11
+ */
12
+ icon?: ReactNode;
13
+ }
14
+ declare const Gift: React.ForwardRefExoticComponent<GiftProps & React.RefAttributes<HTMLDivElement>>;
15
+ export default Gift;
@@ -0,0 +1,9 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { Icon } from '@faststore/components';
3
+ const Gift = forwardRef(function Gift({ icon, testId = 'store-gift', children, ...otherProps }, ref) {
4
+ return (React.createElement("div", { ref: ref, "data-fs-gift": true, "data-testid": testId, ...otherProps },
5
+ icon && React.createElement(Icon, { component: icon, "data-fs-gift-icon": true }),
6
+ React.createElement("div", { "data-fs-gift-wrapper": true }, children)));
7
+ });
8
+ export default Gift;
9
+ //# sourceMappingURL=Gift.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Gift.js","sourceRoot":"","sources":["../../../../src/components/molecules/Gift/Gift.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAA;AAc5C,MAAM,IAAI,GAAG,UAAU,CAA4B,SAAS,IAAI,CAC9D,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACxD,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,uCAA4B,MAAM,KAAM,UAAU;QAC5D,IAAI,IAAI,oBAAC,IAAI,IAAC,SAAS,EAAE,IAAI,8BAAsB;QACpD,6DAA2B,QAAQ,CAAO,CACtC,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,IAAI,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface GiftContentProps extends HTMLAttributes<HTMLElement> {
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 GiftContent: React.ForwardRefExoticComponent<GiftContentProps & React.RefAttributes<HTMLElement>>;
10
+ export default GiftContent;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const GiftContent = forwardRef(function GiftContent({ testId = 'store-gift-content', children, ...otherProps }, ref) {
3
+ return (React.createElement("section", { ref: ref, "data-fs-gift-content": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default GiftContent;
6
+ //# sourceMappingURL=GiftContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GiftContent.js","sourceRoot":"","sources":["../../../../src/components/molecules/Gift/GiftContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,MAAM,GAAG,oBAAoB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC1D,GAAG;IAEH,OAAO,CACL,iCACE,GAAG,EAAE,GAAG,+CAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface GiftImageProps 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 GiftImage: React.ForwardRefExoticComponent<GiftImageProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default GiftImage;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const GiftImage = forwardRef(function GiftImage({ testId = 'store-gift-image', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", { ref: ref, "data-fs-gift-image": true, "data-testid": testId, ...otherProps }, children));
4
+ });
5
+ export default GiftImage;
6
+ //# sourceMappingURL=GiftImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GiftImage.js","sourceRoot":"","sources":["../../../../src/components/molecules/Gift/GiftImage.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,SAAS,GAAG,UAAU,CAAiC,SAAS,SAAS,CAC7E,EAAE,MAAM,GAAG,kBAAkB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACxD,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,6CAAkC,MAAM,KAAM,UAAU,IAClE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,SAAS,CAAA"}