@faststore/ui 1.12.32 → 1.12.33

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 (517) hide show
  1. package/dist/components/atoms/Incentive/Incentive.js +1 -1
  2. package/dist/components/atoms/Incentive/Incentive.js.map +1 -1
  3. package/dist/components/atoms/Popover/Popover.d.ts +1 -1
  4. package/dist/components/atoms/Popover/Popover.js +1 -1
  5. package/dist/components/atoms/Popover/Popover.js.map +1 -1
  6. package/dist/components/atoms/Skeleton/Skeleton.js +1 -1
  7. package/dist/components/atoms/Skeleton/Skeleton.js.map +1 -1
  8. package/dist/components/atoms/Slider/Slider.d.ts +2 -2
  9. package/dist/components/atoms/Spinner/Spinner.d.ts +1 -1
  10. package/dist/components/atoms/Spinner/Spinner.js +1 -1
  11. package/dist/components/atoms/Spinner/Spinner.js.map +1 -1
  12. package/dist/components/atoms/TextArea/TextArea.js +1 -1
  13. package/dist/components/atoms/TextArea/TextArea.js.map +1 -1
  14. package/dist/components/molecules/AggregateRating/AggregateRating.d.ts +2 -2
  15. package/dist/components/molecules/AggregateRating/AggregateRating.js +4 -4
  16. package/dist/components/molecules/AggregateRating/AggregateRating.js.map +1 -1
  17. package/dist/components/molecules/Alert/Alert.js +1 -1
  18. package/dist/components/molecules/Alert/Alert.js.map +1 -1
  19. package/dist/components/molecules/Banner/Banner.d.ts +1 -1
  20. package/dist/components/molecules/Banner/Banner.js +1 -1
  21. package/dist/components/molecules/Banner/Banner.js.map +1 -1
  22. package/dist/components/molecules/Banner/BannerContent.js +1 -1
  23. package/dist/components/molecules/Banner/BannerContent.js.map +1 -1
  24. package/dist/components/molecules/Banner/BannerImage.js +1 -1
  25. package/dist/components/molecules/Banner/BannerImage.js.map +1 -1
  26. package/dist/components/molecules/Banner/BannerLink.js +1 -1
  27. package/dist/components/molecules/Banner/BannerLink.js.map +1 -1
  28. package/dist/components/molecules/Breadcrumb/Breadcrumb.js +5 -5
  29. package/dist/components/molecules/Breadcrumb/Breadcrumb.js.map +1 -1
  30. package/dist/components/molecules/Bullets/Bullets.js +1 -1
  31. package/dist/components/molecules/Bullets/Bullets.js.map +1 -1
  32. package/dist/components/molecules/Card/Card.js +1 -1
  33. package/dist/components/molecules/Card/Card.js.map +1 -1
  34. package/dist/components/molecules/Card/CardActions.js +1 -1
  35. package/dist/components/molecules/Card/CardActions.js.map +1 -1
  36. package/dist/components/molecules/Card/CardContent.js +1 -1
  37. package/dist/components/molecules/Card/CardContent.js.map +1 -1
  38. package/dist/components/molecules/Card/CardImage.js +1 -1
  39. package/dist/components/molecules/Card/CardImage.js.map +1 -1
  40. package/dist/components/molecules/Carousel/Carousel.js +2 -2
  41. package/dist/components/molecules/Carousel/Carousel.js.map +1 -1
  42. package/dist/components/molecules/CartItem/CartItem.js +1 -1
  43. package/dist/components/molecules/CartItem/CartItem.js.map +1 -1
  44. package/dist/components/molecules/CartItem/CartItemActions.js +1 -1
  45. package/dist/components/molecules/CartItem/CartItemActions.js.map +1 -1
  46. package/dist/components/molecules/CartItem/CartItemContent.js +1 -1
  47. package/dist/components/molecules/CartItem/CartItemContent.js.map +1 -1
  48. package/dist/components/molecules/CartItem/CartItemImage.js +1 -1
  49. package/dist/components/molecules/CartItem/CartItemImage.js.map +1 -1
  50. package/dist/components/molecules/CartItem/CartItemPrices.js +1 -1
  51. package/dist/components/molecules/CartItem/CartItemPrices.js.map +1 -1
  52. package/dist/components/molecules/CartItem/CartItemSummary.js +1 -1
  53. package/dist/components/molecules/CartItem/CartItemSummary.js.map +1 -1
  54. package/dist/components/molecules/CartItem/CartItemTitle.js +1 -1
  55. package/dist/components/molecules/CartItem/CartItemTitle.js.map +1 -1
  56. package/dist/components/molecules/Form/Form.js +1 -1
  57. package/dist/components/molecules/Form/Form.js.map +1 -1
  58. package/dist/components/molecules/LoadingButton/LoadingButton.js +1 -1
  59. package/dist/components/molecules/LoadingButton/LoadingButton.js.map +1 -1
  60. package/dist/components/molecules/Modal/Modal.js +3 -3
  61. package/dist/components/molecules/Modal/Modal.js.map +1 -1
  62. package/dist/components/molecules/Modal/ModalContent.d.ts +1 -1
  63. package/dist/components/molecules/Modal/ModalContent.js +3 -3
  64. package/dist/components/molecules/Modal/ModalContent.js.map +1 -1
  65. package/dist/components/molecules/OrderSummary/OrderSummary.d.ts +3 -3
  66. package/dist/components/molecules/OrderSummary/OrderSummary.js +3 -3
  67. package/dist/components/molecules/OrderSummary/OrderSummary.js.map +1 -1
  68. package/dist/components/molecules/PaymentMethods/PaymentMethods.js +1 -1
  69. package/dist/components/molecules/PaymentMethods/PaymentMethods.js.map +1 -1
  70. package/dist/components/molecules/PriceRange/PriceRange.d.ts +3 -3
  71. package/dist/components/molecules/PriceRange/PriceRange.js +1 -1
  72. package/dist/components/molecules/PriceRange/PriceRange.js.map +1 -1
  73. package/dist/components/molecules/ProductCard/ProductCard.js +1 -1
  74. package/dist/components/molecules/ProductCard/ProductCard.js.map +1 -1
  75. package/dist/components/molecules/ProductCard/ProductCardActions.js +1 -1
  76. package/dist/components/molecules/ProductCard/ProductCardActions.js.map +1 -1
  77. package/dist/components/molecules/ProductCard/ProductCardContent.js +1 -1
  78. package/dist/components/molecules/ProductCard/ProductCardContent.js.map +1 -1
  79. package/dist/components/molecules/ProductCard/ProductCardImage.js +1 -1
  80. package/dist/components/molecules/ProductCard/ProductCardImage.js.map +1 -1
  81. package/dist/components/molecules/ProductTitle/ProductTitle.d.ts +1 -1
  82. package/dist/components/molecules/ProductTitle/ProductTitle.js +1 -1
  83. package/dist/components/molecules/ProductTitle/ProductTitle.js.map +1 -1
  84. package/dist/components/molecules/QuantitySelector/QuantitySelector.d.ts +1 -2
  85. package/dist/components/molecules/QuantitySelector/QuantitySelector.js +5 -6
  86. package/dist/components/molecules/QuantitySelector/QuantitySelector.js.map +1 -1
  87. package/dist/components/molecules/RadioGroup/RadioGroup.d.ts +1 -1
  88. package/dist/components/molecules/RadioGroup/RadioOption.js +1 -1
  89. package/dist/components/molecules/RadioGroup/RadioOption.js.map +1 -1
  90. package/dist/components/molecules/SearchInput/SearchInput.d.ts +1 -1
  91. package/dist/components/molecules/SearchInput/SearchInput.js +2 -3
  92. package/dist/components/molecules/SearchInput/SearchInput.js.map +1 -1
  93. package/dist/components/molecules/SkuSelector/SkuSelector.d.ts +1 -1
  94. package/dist/components/molecules/SkuSelector/SkuSelector.js +1 -1
  95. package/dist/components/molecules/SkuSelector/SkuSelector.js.map +1 -1
  96. package/dist/components/organisms/OutOfStock/OutOfStock.d.ts +2 -2
  97. package/dist/components/organisms/OutOfStock/OutOfStock.js +1 -1
  98. package/dist/components/organisms/OutOfStock/OutOfStock.js.map +1 -1
  99. package/dist/components/organisms/OutOfStock/OutOfStockMessage.d.ts +1 -1
  100. package/dist/components/organisms/OutOfStock/OutOfStockMessage.js +1 -1
  101. package/dist/components/organisms/OutOfStock/OutOfStockMessage.js.map +1 -1
  102. package/dist/components/organisms/OutOfStock/OutOfStockTitle.d.ts +1 -1
  103. package/dist/components/organisms/OutOfStock/OutOfStockTitle.js +1 -1
  104. package/dist/components/organisms/OutOfStock/OutOfStockTitle.js.map +1 -1
  105. package/dist/components/organisms/Tiles/Tile.js +1 -1
  106. package/dist/components/organisms/Tiles/Tile.js.map +1 -1
  107. package/dist/components/organisms/Tiles/Tiles.js +1 -1
  108. package/dist/components/organisms/Tiles/Tiles.js.map +1 -1
  109. package/dist/components/src/atoms/List/List.d.ts +16 -0
  110. package/dist/components/src/atoms/List/List.js +7 -0
  111. package/dist/components/src/atoms/List/List.js.map +1 -0
  112. package/dist/components/src/atoms/List/index.d.ts +2 -0
  113. package/dist/components/src/atoms/List/index.js +2 -0
  114. package/dist/components/src/atoms/List/index.js.map +1 -0
  115. package/dist/components/src/typings/PolymorphicGenerics.d.ts +28 -0
  116. package/dist/components/src/typings/PolymorphicGenerics.js +8 -0
  117. package/dist/components/src/typings/PolymorphicGenerics.js.map +1 -0
  118. package/dist/components/src/typings/index.d.ts +1 -0
  119. package/dist/components/src/typings/index.js +2 -0
  120. package/dist/components/src/typings/index.js.map +1 -0
  121. package/dist/hooks/useSlider/useSlider.d.ts +3 -3
  122. package/dist/index.d.ts +0 -22
  123. package/dist/index.js +0 -11
  124. package/dist/index.js.map +1 -1
  125. package/dist/typings/PolymorphicGenerics.d.ts +6 -6
  126. package/dist/ui/src/components/atoms/Incentive/Incentive.d.ts +11 -0
  127. package/dist/ui/src/components/atoms/Incentive/Incentive.js +6 -0
  128. package/dist/ui/src/components/atoms/Incentive/Incentive.js.map +1 -0
  129. package/dist/ui/src/components/atoms/Incentive/index.d.ts +2 -0
  130. package/dist/ui/src/components/atoms/Incentive/index.js +2 -0
  131. package/dist/ui/src/components/atoms/Incentive/index.js.map +1 -0
  132. package/dist/ui/src/components/atoms/Incentive/stories/assets/Icons.d.ts +2 -0
  133. package/dist/ui/src/components/atoms/Incentive/stories/assets/Icons.js +6 -0
  134. package/dist/ui/src/components/atoms/Incentive/stories/assets/Icons.js.map +1 -0
  135. package/dist/ui/src/components/atoms/Link/Link.d.ts +19 -0
  136. package/dist/ui/src/components/atoms/Link/Link.js +13 -0
  137. package/dist/ui/src/components/atoms/Link/Link.js.map +1 -0
  138. package/dist/ui/src/components/atoms/Link/index.d.ts +2 -0
  139. package/dist/ui/src/components/atoms/Link/index.js +2 -0
  140. package/dist/ui/src/components/atoms/Link/index.js.map +1 -0
  141. package/dist/ui/src/components/atoms/Popover/Popover.d.ts +15 -0
  142. package/dist/ui/src/components/atoms/Popover/Popover.js +7 -0
  143. package/dist/ui/src/components/atoms/Popover/Popover.js.map +1 -0
  144. package/dist/ui/src/components/atoms/Popover/index.d.ts +2 -0
  145. package/dist/ui/src/components/atoms/Popover/index.js +2 -0
  146. package/dist/ui/src/components/atoms/Popover/index.js.map +1 -0
  147. package/dist/ui/src/components/atoms/Price/Price.d.ts +28 -0
  148. package/dist/ui/src/components/atoms/Price/Price.js +7 -0
  149. package/dist/ui/src/components/atoms/Price/Price.js.map +1 -0
  150. package/dist/ui/src/components/atoms/Price/index.d.ts +2 -0
  151. package/dist/ui/src/components/atoms/Price/index.js +2 -0
  152. package/dist/ui/src/components/atoms/Price/index.js.map +1 -0
  153. package/dist/ui/src/components/atoms/Select/Select.d.ts +10 -0
  154. package/dist/ui/src/components/atoms/Select/Select.js +6 -0
  155. package/dist/ui/src/components/atoms/Select/Select.js.map +1 -0
  156. package/dist/ui/src/components/atoms/Select/index.d.ts +2 -0
  157. package/dist/ui/src/components/atoms/Select/index.js +2 -0
  158. package/dist/ui/src/components/atoms/Select/index.js.map +1 -0
  159. package/dist/ui/src/components/atoms/Skeleton/Skeleton.d.ts +10 -0
  160. package/dist/ui/src/components/atoms/Skeleton/Skeleton.js +6 -0
  161. package/dist/ui/src/components/atoms/Skeleton/Skeleton.js.map +1 -0
  162. package/dist/ui/src/components/atoms/Skeleton/index.d.ts +2 -0
  163. package/dist/ui/src/components/atoms/Skeleton/index.js +2 -0
  164. package/dist/ui/src/components/atoms/Skeleton/index.js.map +1 -0
  165. package/dist/ui/src/components/atoms/Slider/Slider.d.ts +67 -0
  166. package/dist/ui/src/components/atoms/Slider/Slider.js +48 -0
  167. package/dist/ui/src/components/atoms/Slider/Slider.js.map +1 -0
  168. package/dist/ui/src/components/atoms/Slider/index.d.ts +2 -0
  169. package/dist/ui/src/components/atoms/Slider/index.js +2 -0
  170. package/dist/ui/src/components/atoms/Slider/index.js.map +1 -0
  171. package/dist/ui/src/components/atoms/Spinner/Spinner.d.ts +11 -0
  172. package/dist/ui/src/components/atoms/Spinner/Spinner.js +6 -0
  173. package/dist/ui/src/components/atoms/Spinner/Spinner.js.map +1 -0
  174. package/dist/ui/src/components/atoms/Spinner/index.d.ts +2 -0
  175. package/dist/ui/src/components/atoms/Spinner/index.js +2 -0
  176. package/dist/ui/src/components/atoms/Spinner/index.js.map +1 -0
  177. package/dist/ui/src/components/atoms/TextArea/TextArea.d.ts +14 -0
  178. package/dist/ui/src/components/atoms/TextArea/TextArea.js +10 -0
  179. package/dist/ui/src/components/atoms/TextArea/TextArea.js.map +1 -0
  180. package/dist/ui/src/components/atoms/TextArea/index.d.ts +2 -0
  181. package/dist/ui/src/components/atoms/TextArea/index.js +2 -0
  182. package/dist/ui/src/components/atoms/TextArea/index.js.map +1 -0
  183. package/dist/ui/src/components/molecules/Accordion/Accordion.d.ts +26 -0
  184. package/dist/ui/src/components/molecules/Accordion/Accordion.js +21 -0
  185. package/dist/ui/src/components/molecules/Accordion/Accordion.js.map +1 -0
  186. package/dist/ui/src/components/molecules/Accordion/AccordionButton.d.ts +10 -0
  187. package/dist/ui/src/components/molecules/Accordion/AccordionButton.js +37 -0
  188. package/dist/ui/src/components/molecules/Accordion/AccordionButton.js.map +1 -0
  189. package/dist/ui/src/components/molecules/Accordion/AccordionItem.d.ts +37 -0
  190. package/dist/ui/src/components/molecules/Accordion/AccordionItem.js +28 -0
  191. package/dist/ui/src/components/molecules/Accordion/AccordionItem.js.map +1 -0
  192. package/dist/ui/src/components/molecules/Accordion/AccordionPanel.d.ts +10 -0
  193. package/dist/ui/src/components/molecules/Accordion/AccordionPanel.js +10 -0
  194. package/dist/ui/src/components/molecules/Accordion/AccordionPanel.js.map +1 -0
  195. package/dist/ui/src/components/molecules/Accordion/index.d.ts +8 -0
  196. package/dist/ui/src/components/molecules/Accordion/index.js +5 -0
  197. package/dist/ui/src/components/molecules/Accordion/index.js.map +1 -0
  198. package/dist/ui/src/components/molecules/AggregateRating/AggregateRating.d.ts +18 -0
  199. package/dist/ui/src/components/molecules/AggregateRating/AggregateRating.js +26 -0
  200. package/dist/ui/src/components/molecules/AggregateRating/AggregateRating.js.map +1 -0
  201. package/dist/ui/src/components/molecules/AggregateRating/index.d.ts +2 -0
  202. package/dist/ui/src/components/molecules/AggregateRating/index.js +2 -0
  203. package/dist/ui/src/components/molecules/AggregateRating/index.js.map +1 -0
  204. package/dist/ui/src/components/molecules/Alert/Alert.d.ts +11 -0
  205. package/dist/ui/src/components/molecules/Alert/Alert.js +6 -0
  206. package/dist/ui/src/components/molecules/Alert/Alert.js.map +1 -0
  207. package/dist/ui/src/components/molecules/Alert/index.d.ts +2 -0
  208. package/dist/ui/src/components/molecules/Alert/index.js +2 -0
  209. package/dist/ui/src/components/molecules/Alert/index.js.map +1 -0
  210. package/dist/ui/src/components/molecules/Banner/Banner.d.ts +14 -0
  211. package/dist/ui/src/components/molecules/Banner/Banner.js +6 -0
  212. package/dist/ui/src/components/molecules/Banner/Banner.js.map +1 -0
  213. package/dist/ui/src/components/molecules/Banner/BannerContent.d.ts +10 -0
  214. package/dist/ui/src/components/molecules/Banner/BannerContent.js +6 -0
  215. package/dist/ui/src/components/molecules/Banner/BannerContent.js.map +1 -0
  216. package/dist/ui/src/components/molecules/Banner/BannerImage.d.ts +10 -0
  217. package/dist/ui/src/components/molecules/Banner/BannerImage.js +6 -0
  218. package/dist/ui/src/components/molecules/Banner/BannerImage.js.map +1 -0
  219. package/dist/ui/src/components/molecules/Banner/BannerLink.d.ts +10 -0
  220. package/dist/ui/src/components/molecules/Banner/BannerLink.js +6 -0
  221. package/dist/ui/src/components/molecules/Banner/BannerLink.js.map +1 -0
  222. package/dist/ui/src/components/molecules/Banner/index.d.ts +8 -0
  223. package/dist/ui/src/components/molecules/Banner/index.js +5 -0
  224. package/dist/ui/src/components/molecules/Banner/index.js.map +1 -0
  225. package/dist/ui/src/components/molecules/Breadcrumb/Breadcrumb.d.ts +14 -0
  226. package/dist/ui/src/components/molecules/Breadcrumb/Breadcrumb.js +38 -0
  227. package/dist/ui/src/components/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
  228. package/dist/ui/src/components/molecules/Breadcrumb/index.d.ts +2 -0
  229. package/dist/ui/src/components/molecules/Breadcrumb/index.js +2 -0
  230. package/dist/ui/src/components/molecules/Breadcrumb/index.js.map +1 -0
  231. package/dist/ui/src/components/molecules/Bullets/Bullets.d.ts +35 -0
  232. package/dist/ui/src/components/molecules/Bullets/Bullets.js +12 -0
  233. package/dist/ui/src/components/molecules/Bullets/Bullets.js.map +1 -0
  234. package/dist/ui/src/components/molecules/Bullets/index.d.ts +2 -0
  235. package/dist/ui/src/components/molecules/Bullets/index.js +2 -0
  236. package/dist/ui/src/components/molecules/Bullets/index.js.map +1 -0
  237. package/dist/{components/atoms/Overlay/Overlay.d.ts → ui/src/components/molecules/Card/Card.d.ts} +4 -4
  238. package/dist/ui/src/components/molecules/Card/Card.js +6 -0
  239. package/dist/ui/src/components/molecules/Card/Card.js.map +1 -0
  240. package/dist/ui/src/components/molecules/Card/CardActions.d.ts +10 -0
  241. package/dist/ui/src/components/molecules/Card/CardActions.js +6 -0
  242. package/dist/ui/src/components/molecules/Card/CardActions.js.map +1 -0
  243. package/dist/ui/src/components/molecules/Card/CardContent.d.ts +10 -0
  244. package/dist/ui/src/components/molecules/Card/CardContent.js +6 -0
  245. package/dist/ui/src/components/molecules/Card/CardContent.js.map +1 -0
  246. package/dist/ui/src/components/molecules/Card/CardImage.d.ts +10 -0
  247. package/dist/ui/src/components/molecules/Card/CardImage.js +6 -0
  248. package/dist/ui/src/components/molecules/Card/CardImage.js.map +1 -0
  249. package/dist/ui/src/components/molecules/Card/index.d.ts +8 -0
  250. package/dist/ui/src/components/molecules/Card/index.js +5 -0
  251. package/dist/ui/src/components/molecules/Card/index.js.map +1 -0
  252. package/dist/ui/src/components/molecules/Carousel/Arrows.d.ts +12 -0
  253. package/dist/ui/src/components/molecules/Carousel/Arrows.js +6 -0
  254. package/dist/ui/src/components/molecules/Carousel/Arrows.js.map +1 -0
  255. package/dist/ui/src/components/molecules/Carousel/Carousel.d.ts +54 -0
  256. package/dist/ui/src/components/molecules/Carousel/Carousel.js +183 -0
  257. package/dist/ui/src/components/molecules/Carousel/Carousel.js.map +1 -0
  258. package/dist/ui/src/components/molecules/Carousel/CarouselItem.d.ts +11 -0
  259. package/dist/ui/src/components/molecules/Carousel/CarouselItem.js +18 -0
  260. package/dist/ui/src/components/molecules/Carousel/CarouselItem.js.map +1 -0
  261. package/dist/ui/src/components/molecules/Carousel/hooks/useSlideVisibility.d.ts +9 -0
  262. package/dist/ui/src/components/molecules/Carousel/hooks/useSlideVisibility.js +29 -0
  263. package/dist/ui/src/components/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
  264. package/dist/ui/src/components/molecules/Carousel/index.d.ts +2 -0
  265. package/dist/ui/src/components/molecules/Carousel/index.js +3 -0
  266. package/dist/ui/src/components/molecules/Carousel/index.js.map +1 -0
  267. package/dist/ui/src/components/molecules/CartItem/CartItem.d.ts +10 -0
  268. package/dist/ui/src/components/molecules/CartItem/CartItem.js +6 -0
  269. package/dist/ui/src/components/molecules/CartItem/CartItem.js.map +1 -0
  270. package/dist/ui/src/components/molecules/CartItem/CartItemActions.d.ts +10 -0
  271. package/dist/ui/src/components/molecules/CartItem/CartItemActions.js +6 -0
  272. package/dist/ui/src/components/molecules/CartItem/CartItemActions.js.map +1 -0
  273. package/dist/ui/src/components/molecules/CartItem/CartItemContent.d.ts +10 -0
  274. package/dist/ui/src/components/molecules/CartItem/CartItemContent.js +6 -0
  275. package/dist/ui/src/components/molecules/CartItem/CartItemContent.js.map +1 -0
  276. package/dist/ui/src/components/molecules/CartItem/CartItemImage.d.ts +10 -0
  277. package/dist/ui/src/components/molecules/CartItem/CartItemImage.js +6 -0
  278. package/dist/ui/src/components/molecules/CartItem/CartItemImage.js.map +1 -0
  279. package/dist/ui/src/components/molecules/CartItem/CartItemPrices.d.ts +10 -0
  280. package/dist/ui/src/components/molecules/CartItem/CartItemPrices.js +6 -0
  281. package/dist/ui/src/components/molecules/CartItem/CartItemPrices.js.map +1 -0
  282. package/dist/ui/src/components/molecules/CartItem/CartItemSummary.d.ts +10 -0
  283. package/dist/ui/src/components/molecules/CartItem/CartItemSummary.js +6 -0
  284. package/dist/ui/src/components/molecules/CartItem/CartItemSummary.js.map +1 -0
  285. package/dist/ui/src/components/molecules/CartItem/CartItemTitle.d.ts +10 -0
  286. package/dist/ui/src/components/molecules/CartItem/CartItemTitle.js +6 -0
  287. package/dist/ui/src/components/molecules/CartItem/CartItemTitle.js.map +1 -0
  288. package/dist/ui/src/components/molecules/CartItem/index.d.ts +14 -0
  289. package/dist/ui/src/components/molecules/CartItem/index.js +8 -0
  290. package/dist/ui/src/components/molecules/CartItem/index.js.map +1 -0
  291. package/dist/ui/src/components/molecules/Dropdown/Dropdown.d.ts +9 -0
  292. package/dist/ui/src/components/molecules/Dropdown/Dropdown.js +67 -0
  293. package/dist/ui/src/components/molecules/Dropdown/Dropdown.js.map +1 -0
  294. package/dist/ui/src/components/molecules/Dropdown/DropdownButton.d.ts +10 -0
  295. package/dist/ui/src/components/molecules/Dropdown/DropdownButton.js +11 -0
  296. package/dist/ui/src/components/molecules/Dropdown/DropdownButton.js.map +1 -0
  297. package/dist/ui/src/components/molecules/Dropdown/DropdownItem.d.ts +10 -0
  298. package/dist/ui/src/components/molecules/Dropdown/DropdownItem.js +26 -0
  299. package/dist/ui/src/components/molecules/Dropdown/DropdownItem.js.map +1 -0
  300. package/dist/ui/src/components/molecules/Dropdown/DropdownMenu.d.ts +22 -0
  301. package/dist/ui/src/components/molecules/Dropdown/DropdownMenu.js +65 -0
  302. package/dist/ui/src/components/molecules/Dropdown/DropdownMenu.js.map +1 -0
  303. package/dist/ui/src/components/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -0
  304. package/dist/ui/src/components/molecules/Dropdown/contexts/DropdownContext.js +11 -0
  305. package/dist/ui/src/components/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
  306. package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdown.d.ts +6 -0
  307. package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdown.js +14 -0
  308. package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
  309. package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -0
  310. package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
  311. package/dist/ui/src/components/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
  312. package/dist/ui/src/components/molecules/Dropdown/index.d.ts +8 -0
  313. package/dist/ui/src/components/molecules/Dropdown/index.js +5 -0
  314. package/dist/ui/src/components/molecules/Dropdown/index.js.map +1 -0
  315. package/dist/ui/src/components/molecules/Dropdown/stories/assets/Caret.d.ts +2 -0
  316. package/dist/ui/src/components/molecules/Dropdown/stories/assets/Caret.js +4 -0
  317. package/dist/ui/src/components/molecules/Dropdown/stories/assets/Caret.js.map +1 -0
  318. package/dist/ui/src/components/molecules/Form/Form.d.ts +11 -0
  319. package/dist/ui/src/components/molecules/Form/Form.js +6 -0
  320. package/dist/ui/src/components/molecules/Form/Form.js.map +1 -0
  321. package/dist/ui/src/components/molecules/Form/index.d.ts +2 -0
  322. package/dist/ui/src/components/molecules/Form/index.js +2 -0
  323. package/dist/ui/src/components/molecules/Form/index.js.map +1 -0
  324. package/dist/ui/src/components/molecules/Gift/Gift.d.ts +15 -0
  325. package/dist/ui/src/components/molecules/Gift/Gift.js +9 -0
  326. package/dist/ui/src/components/molecules/Gift/Gift.js.map +1 -0
  327. package/dist/ui/src/components/molecules/Gift/GiftContent.d.ts +10 -0
  328. package/dist/ui/src/components/molecules/Gift/GiftContent.js +6 -0
  329. package/dist/ui/src/components/molecules/Gift/GiftContent.js.map +1 -0
  330. package/dist/ui/src/components/molecules/Gift/GiftImage.d.ts +10 -0
  331. package/dist/ui/src/components/molecules/Gift/GiftImage.js +6 -0
  332. package/dist/ui/src/components/molecules/Gift/GiftImage.js.map +1 -0
  333. package/dist/ui/src/components/molecules/Gift/index.d.ts +6 -0
  334. package/dist/ui/src/components/molecules/Gift/index.js +4 -0
  335. package/dist/ui/src/components/molecules/Gift/index.js.map +1 -0
  336. package/dist/ui/src/components/molecules/LoadingButton/LoadingButton.d.ts +14 -0
  337. package/dist/ui/src/components/molecules/LoadingButton/LoadingButton.js +8 -0
  338. package/dist/ui/src/components/molecules/LoadingButton/LoadingButton.js.map +1 -0
  339. package/dist/ui/src/components/molecules/LoadingButton/index.d.ts +2 -0
  340. package/dist/ui/src/components/molecules/LoadingButton/index.js +2 -0
  341. package/dist/ui/src/components/molecules/LoadingButton/index.js.map +1 -0
  342. package/dist/ui/src/components/molecules/Modal/Modal.d.ts +25 -0
  343. package/dist/ui/src/components/molecules/Modal/Modal.js +31 -0
  344. package/dist/ui/src/components/molecules/Modal/Modal.js.map +1 -0
  345. package/dist/ui/src/components/molecules/Modal/ModalContent.d.ts +10 -0
  346. package/dist/ui/src/components/molecules/Modal/ModalContent.js +23 -0
  347. package/dist/ui/src/components/molecules/Modal/ModalContent.js.map +1 -0
  348. package/dist/ui/src/components/molecules/Modal/index.d.ts +2 -0
  349. package/dist/ui/src/components/molecules/Modal/index.js +2 -0
  350. package/dist/ui/src/components/molecules/Modal/index.js.map +1 -0
  351. package/dist/ui/src/components/molecules/Modal/useTrapFocus.d.ts +8 -0
  352. package/dist/ui/src/components/molecules/Modal/useTrapFocus.js +76 -0
  353. package/dist/ui/src/components/molecules/Modal/useTrapFocus.js.map +1 -0
  354. package/dist/ui/src/components/molecules/OrderSummary/OrderSummary.d.ts +35 -0
  355. package/dist/ui/src/components/molecules/OrderSummary/OrderSummary.js +16 -0
  356. package/dist/ui/src/components/molecules/OrderSummary/OrderSummary.js.map +1 -0
  357. package/dist/ui/src/components/molecules/OrderSummary/index.d.ts +2 -0
  358. package/dist/ui/src/components/molecules/OrderSummary/index.js +2 -0
  359. package/dist/ui/src/components/molecules/OrderSummary/index.js.map +1 -0
  360. package/dist/ui/src/components/molecules/PaymentMethods/PaymentMethods.d.ts +26 -0
  361. package/dist/ui/src/components/molecules/PaymentMethods/PaymentMethods.js +8 -0
  362. package/dist/ui/src/components/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
  363. package/dist/ui/src/components/molecules/PaymentMethods/index.d.ts +2 -0
  364. package/dist/ui/src/components/molecules/PaymentMethods/index.js +2 -0
  365. package/dist/ui/src/components/molecules/PaymentMethods/index.js.map +1 -0
  366. package/dist/ui/src/components/molecules/PaymentMethods/stories/assets/Icons.d.ts +9 -0
  367. package/dist/ui/src/components/molecules/PaymentMethods/stories/assets/Icons.js +26 -0
  368. package/dist/ui/src/components/molecules/PaymentMethods/stories/assets/Icons.js.map +1 -0
  369. package/dist/ui/src/components/molecules/PriceRange/PriceRange.d.ts +47 -0
  370. package/dist/ui/src/components/molecules/PriceRange/PriceRange.js +28 -0
  371. package/dist/ui/src/components/molecules/PriceRange/PriceRange.js.map +1 -0
  372. package/dist/ui/src/components/molecules/PriceRange/index.d.ts +2 -0
  373. package/dist/ui/src/components/molecules/PriceRange/index.js +2 -0
  374. package/dist/ui/src/components/molecules/PriceRange/index.js.map +1 -0
  375. package/dist/ui/src/components/molecules/ProductCard/ProductCard.d.ts +11 -0
  376. package/dist/ui/src/components/molecules/ProductCard/ProductCard.js +6 -0
  377. package/dist/ui/src/components/molecules/ProductCard/ProductCard.js.map +1 -0
  378. package/dist/ui/src/components/molecules/ProductCard/ProductCardActions.d.ts +10 -0
  379. package/dist/ui/src/components/molecules/ProductCard/ProductCardActions.js +6 -0
  380. package/dist/ui/src/components/molecules/ProductCard/ProductCardActions.js.map +1 -0
  381. package/dist/ui/src/components/molecules/ProductCard/ProductCardContent.d.ts +10 -0
  382. package/dist/ui/src/components/molecules/ProductCard/ProductCardContent.js +6 -0
  383. package/dist/ui/src/components/molecules/ProductCard/ProductCardContent.js.map +1 -0
  384. package/dist/ui/src/components/molecules/ProductCard/ProductCardImage.d.ts +10 -0
  385. package/dist/ui/src/components/molecules/ProductCard/ProductCardImage.js +6 -0
  386. package/dist/ui/src/components/molecules/ProductCard/ProductCardImage.js.map +1 -0
  387. package/dist/ui/src/components/molecules/ProductCard/index.d.ts +8 -0
  388. package/dist/ui/src/components/molecules/ProductCard/index.js +5 -0
  389. package/dist/ui/src/components/molecules/ProductCard/index.js.map +1 -0
  390. package/dist/ui/src/components/molecules/ProductTitle/ProductTitle.d.ts +47 -0
  391. package/dist/ui/src/components/molecules/ProductTitle/ProductTitle.js +12 -0
  392. package/dist/ui/src/components/molecules/ProductTitle/ProductTitle.js.map +1 -0
  393. package/dist/ui/src/components/molecules/ProductTitle/index.d.ts +2 -0
  394. package/dist/ui/src/components/molecules/ProductTitle/index.js +2 -0
  395. package/dist/ui/src/components/molecules/ProductTitle/index.js.map +1 -0
  396. package/dist/ui/src/components/molecules/QuantitySelector/QuantitySelector.d.ts +29 -0
  397. package/dist/ui/src/components/molecules/QuantitySelector/QuantitySelector.js +10 -0
  398. package/dist/ui/src/components/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
  399. package/dist/ui/src/components/molecules/QuantitySelector/index.d.ts +2 -0
  400. package/dist/ui/src/components/molecules/QuantitySelector/index.js +2 -0
  401. package/dist/ui/src/components/molecules/QuantitySelector/index.js.map +1 -0
  402. package/dist/ui/src/components/molecules/QuantitySelector/stories/assets/Icons.d.ts +7 -0
  403. package/dist/ui/src/components/molecules/QuantitySelector/stories/assets/Icons.js +11 -0
  404. package/dist/ui/src/components/molecules/QuantitySelector/stories/assets/Icons.js.map +1 -0
  405. package/dist/ui/src/components/molecules/RadioGroup/RadioGroup.d.ts +5 -0
  406. package/dist/ui/src/components/molecules/RadioGroup/RadioGroup.js +10 -0
  407. package/dist/ui/src/components/molecules/RadioGroup/RadioGroup.js.map +1 -0
  408. package/dist/ui/src/components/molecules/RadioGroup/RadioOption.d.ts +19 -0
  409. package/dist/ui/src/components/molecules/RadioGroup/RadioOption.js +11 -0
  410. package/dist/ui/src/components/molecules/RadioGroup/RadioOption.js.map +1 -0
  411. package/dist/ui/src/components/molecules/RadioGroup/index.d.ts +4 -0
  412. package/dist/ui/src/components/molecules/RadioGroup/index.js +3 -0
  413. package/dist/ui/src/components/molecules/RadioGroup/index.js.map +1 -0
  414. package/dist/ui/src/components/molecules/RadioGroup/useRadioGroup.d.ts +17 -0
  415. package/dist/ui/src/components/molecules/RadioGroup/useRadioGroup.js +10 -0
  416. package/dist/ui/src/components/molecules/RadioGroup/useRadioGroup.js.map +1 -0
  417. package/dist/ui/src/components/molecules/SearchInput/SearchInput.d.ts +28 -0
  418. package/dist/ui/src/components/molecules/SearchInput/SearchInput.js +26 -0
  419. package/dist/ui/src/components/molecules/SearchInput/SearchInput.js.map +1 -0
  420. package/dist/ui/src/components/molecules/SearchInput/index.d.ts +2 -0
  421. package/dist/ui/src/components/molecules/SearchInput/index.js +2 -0
  422. package/dist/ui/src/components/molecules/SearchInput/index.js.map +1 -0
  423. package/dist/ui/src/components/molecules/SearchInput/stories/assets/CustomIcon.d.ts +3 -0
  424. package/dist/ui/src/components/molecules/SearchInput/stories/assets/CustomIcon.js +7 -0
  425. package/dist/ui/src/components/molecules/SearchInput/stories/assets/CustomIcon.js.map +1 -0
  426. package/dist/ui/src/components/molecules/SkuSelector/SkuSelector.d.ts +58 -0
  427. package/dist/ui/src/components/molecules/SkuSelector/SkuSelector.js +16 -0
  428. package/dist/ui/src/components/molecules/SkuSelector/SkuSelector.js.map +1 -0
  429. package/dist/ui/src/components/molecules/SkuSelector/index.d.ts +2 -0
  430. package/dist/ui/src/components/molecules/SkuSelector/index.js +2 -0
  431. package/dist/ui/src/components/molecules/SkuSelector/index.js.map +1 -0
  432. package/dist/ui/src/components/molecules/Table/Table.d.ts +11 -0
  433. package/dist/ui/src/components/molecules/Table/Table.js +6 -0
  434. package/dist/ui/src/components/molecules/Table/Table.js.map +1 -0
  435. package/dist/ui/src/components/molecules/Table/TableBody.d.ts +11 -0
  436. package/dist/ui/src/components/molecules/Table/TableBody.js +6 -0
  437. package/dist/ui/src/components/molecules/Table/TableBody.js.map +1 -0
  438. package/dist/ui/src/components/molecules/Table/TableCell.d.ts +20 -0
  439. package/dist/ui/src/components/molecules/Table/TableCell.js +7 -0
  440. package/dist/ui/src/components/molecules/Table/TableCell.js.map +1 -0
  441. package/dist/ui/src/components/molecules/Table/TableFooter.d.ts +11 -0
  442. package/dist/ui/src/components/molecules/Table/TableFooter.js +6 -0
  443. package/dist/ui/src/components/molecules/Table/TableFooter.js.map +1 -0
  444. package/dist/ui/src/components/molecules/Table/TableHead.d.ts +11 -0
  445. package/dist/ui/src/components/molecules/Table/TableHead.js +6 -0
  446. package/dist/ui/src/components/molecules/Table/TableHead.js.map +1 -0
  447. package/dist/ui/src/components/molecules/Table/TableRow.d.ts +11 -0
  448. package/dist/ui/src/components/molecules/Table/TableRow.js +6 -0
  449. package/dist/ui/src/components/molecules/Table/TableRow.js.map +1 -0
  450. package/dist/ui/src/components/molecules/Table/index.d.ts +12 -0
  451. package/dist/ui/src/components/molecules/Table/index.js +7 -0
  452. package/dist/ui/src/components/molecules/Table/index.js.map +1 -0
  453. package/dist/ui/src/components/organisms/Hero/Hero.d.ts +11 -0
  454. package/dist/ui/src/components/organisms/Hero/Hero.js +6 -0
  455. package/dist/ui/src/components/organisms/Hero/Hero.js.map +1 -0
  456. package/dist/ui/src/components/organisms/Hero/HeroHeading.d.ts +10 -0
  457. package/dist/ui/src/components/organisms/Hero/HeroHeading.js +6 -0
  458. package/dist/ui/src/components/organisms/Hero/HeroHeading.js.map +1 -0
  459. package/dist/ui/src/components/organisms/Hero/HeroImage.d.ts +10 -0
  460. package/dist/ui/src/components/organisms/Hero/HeroImage.js +6 -0
  461. package/dist/ui/src/components/organisms/Hero/HeroImage.js.map +1 -0
  462. package/dist/ui/src/components/organisms/Hero/index.d.ts +6 -0
  463. package/dist/ui/src/components/organisms/Hero/index.js +4 -0
  464. package/dist/ui/src/components/organisms/Hero/index.js.map +1 -0
  465. package/dist/ui/src/components/organisms/OutOfStock/OutOfStock.d.ts +21 -0
  466. package/dist/ui/src/components/organisms/OutOfStock/OutOfStock.js +8 -0
  467. package/dist/ui/src/components/organisms/OutOfStock/OutOfStock.js.map +1 -0
  468. package/dist/ui/src/components/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -0
  469. package/dist/ui/src/components/organisms/OutOfStock/OutOfStockMessage.js +5 -0
  470. package/dist/ui/src/components/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
  471. package/dist/ui/src/components/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -0
  472. package/dist/ui/src/components/organisms/OutOfStock/OutOfStockTitle.js +5 -0
  473. package/dist/ui/src/components/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
  474. package/dist/ui/src/components/organisms/OutOfStock/index.d.ts +6 -0
  475. package/dist/ui/src/components/organisms/OutOfStock/index.js +4 -0
  476. package/dist/ui/src/components/organisms/OutOfStock/index.js.map +1 -0
  477. package/dist/ui/src/components/organisms/Tiles/Tile.d.ts +11 -0
  478. package/dist/ui/src/components/organisms/Tiles/Tile.js +6 -0
  479. package/dist/ui/src/components/organisms/Tiles/Tile.js.map +1 -0
  480. package/dist/ui/src/components/organisms/Tiles/Tiles.d.ts +11 -0
  481. package/dist/ui/src/components/organisms/Tiles/Tiles.js +30 -0
  482. package/dist/ui/src/components/organisms/Tiles/Tiles.js.map +1 -0
  483. package/dist/ui/src/components/organisms/Tiles/index.d.ts +4 -0
  484. package/dist/ui/src/components/organisms/Tiles/index.js +3 -0
  485. package/dist/ui/src/components/organisms/Tiles/index.js.map +1 -0
  486. package/dist/ui/src/hooks/useSlider/index.d.ts +2 -0
  487. package/dist/ui/src/hooks/useSlider/index.js +3 -0
  488. package/dist/ui/src/hooks/useSlider/index.js.map +1 -0
  489. package/dist/ui/src/hooks/useSlider/useSlider.d.ts +64 -0
  490. package/dist/ui/src/hooks/useSlider/useSlider.js +103 -0
  491. package/dist/ui/src/hooks/useSlider/useSlider.js.map +1 -0
  492. package/dist/ui/src/index.d.ts +75 -0
  493. package/dist/ui/src/index.js +43 -0
  494. package/dist/ui/src/index.js.map +1 -0
  495. package/dist/ui/src/typings/PolymorphicGenerics.d.ts +28 -0
  496. package/dist/ui/src/typings/PolymorphicGenerics.js +8 -0
  497. package/dist/ui/src/typings/PolymorphicGenerics.js.map +1 -0
  498. package/dist/ui/src/typings/index.d.ts +1 -0
  499. package/dist/ui/src/typings/index.js +2 -0
  500. package/dist/ui/src/typings/index.js.map +1 -0
  501. package/package.json +4 -5
  502. package/CHANGELOG.md +0 -2032
  503. package/LICENSE +0 -21
  504. package/dist/assets/ShoppingCart.d.ts +0 -3
  505. package/dist/assets/ShoppingCart.js +0 -10
  506. package/dist/assets/ShoppingCart.js.map +0 -1
  507. package/dist/assets/X.d.ts +0 -3
  508. package/dist/assets/X.js +0 -8
  509. package/dist/assets/X.js.map +0 -1
  510. package/dist/assets/index.d.ts +0 -2
  511. package/dist/assets/index.js +0 -3
  512. package/dist/assets/index.js.map +0 -1
  513. package/dist/components/atoms/Overlay/Overlay.js +0 -6
  514. package/dist/components/atoms/Overlay/Overlay.js.map +0 -1
  515. package/dist/components/atoms/Overlay/index.d.ts +0 -2
  516. package/dist/components/atoms/Overlay/index.js +0 -2
  517. package/dist/components/atoms/Overlay/index.js.map +0 -1
@@ -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", Object.assign({ 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,4CAAM,GAAG,EAAE,GAAG,uCAA4B,MAAM,IAAM,UAAU,GAC7D,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", Object.assign({ 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,2CAAK,GAAG,EAAE,GAAG,uCAA4B,MAAM,IAAM,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", Object.assign({ 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,+CACE,GAAG,EAAE,GAAG,+CAEK,MAAM,IACf,UAAU,GAEb,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", Object.assign({ 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,2CAAK,GAAG,EAAE,GAAG,6CAAkC,MAAM,IAAM,UAAU,GAClE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,SAAS,CAAA"}
@@ -0,0 +1,6 @@
1
+ export { default } from './Gift';
2
+ export type { GiftProps } from './Gift';
3
+ export { default as GiftContent } from './GiftContent';
4
+ export type { GiftContentProps } from './GiftContent';
5
+ export { default as GiftImage } from './GiftImage';
6
+ export type { GiftImageProps } from './GiftImage';
@@ -0,0 +1,4 @@
1
+ export { default } from './Gift';
2
+ export { default as GiftContent } from './GiftContent';
3
+ export { default as GiftImage } from './GiftImage';
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/Gift/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAGhC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AAGtD,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import type { ButtonProps } from '@faststore/components';
3
+ export interface LoadingButtonProps extends ButtonProps {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
+ */
7
+ testId?: string;
8
+ /**
9
+ * The current loading state of the button.
10
+ */
11
+ loading: boolean;
12
+ }
13
+ declare const LoadingButton: React.ForwardRefExoticComponent<LoadingButtonProps & React.RefAttributes<HTMLButtonElement>>;
14
+ export default LoadingButton;
@@ -0,0 +1,8 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { Button } from '@faststore/components';
3
+ import Spinner from '../../atoms/Spinner';
4
+ const LoadingButton = forwardRef(function LoadingButton({ children, loading, testId = 'store-loading-button', ...otherProps }, ref) {
5
+ return (React.createElement(Button, Object.assign({ ref: ref, "data-fs-loading-button": true, testId: testId }, otherProps), loading ? React.createElement(Spinner, null) : children));
6
+ });
7
+ export default LoadingButton;
8
+ //# sourceMappingURL=LoadingButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingButton.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/LoadingButton/LoadingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAE9C,OAAO,OAAO,MAAM,qBAAqB,CAAA;AAazC,MAAM,aAAa,GAAG,UAAU,CAC9B,SAAS,aAAa,CACpB,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,GAAG,UAAU,EAAE,EACrE,GAAG;IAEH,OAAO,CACL,oBAAC,MAAM,kBAAC,GAAG,EAAE,GAAG,kCAAyB,MAAM,EAAE,MAAM,IAAM,UAAU,GACpE,OAAO,CAAC,CAAC,CAAC,oBAAC,OAAO,OAAG,CAAC,CAAC,CAAC,QAAQ,CAC1B,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './LoadingButton';
2
+ export type { LoadingButtonProps } from './LoadingButton';
@@ -0,0 +1,2 @@
1
+ export { default } from './LoadingButton';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/LoadingButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA"}
@@ -0,0 +1,25 @@
1
+ import type { AriaAttributes, KeyboardEvent, MouseEvent, PropsWithChildren } from 'react';
2
+ import React from 'react';
3
+ import type { ModalContentProps } from './ModalContent';
4
+ export interface ModalProps extends ModalContentProps {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Identifies the element (or elements) that labels the current element.
11
+ * @see aria-labelledby https://www.w3.org/TR/wai-aria-1.1/#aria-labelledby
12
+ */
13
+ 'aria-labelledby'?: AriaAttributes['aria-label'];
14
+ /**
15
+ * This function is called whenever the user hits "Escape" or clicks outside
16
+ * the dialog.
17
+ */
18
+ onDismiss?: (event: MouseEvent | KeyboardEvent) => void;
19
+ /**
20
+ * Controls whether or not the dialog is open.
21
+ */
22
+ isOpen: boolean;
23
+ }
24
+ declare const Modal: ({ isOpen, children, onDismiss, testId, ...otherProps }: PropsWithChildren<ModalProps>) => React.ReactPortal | null;
25
+ export default Modal;
@@ -0,0 +1,31 @@
1
+ import React from 'react';
2
+ import { createPortal } from 'react-dom';
3
+ import { Overlay } from '@faststore/components';
4
+ import ModalContent from './ModalContent';
5
+ /*
6
+ * This component is based on @reach/dialog.
7
+ * https://github.com/reach/reach-ui/blob/main/packages/dialog/src/index.tsx
8
+ * https://reach.tech/dialog
9
+ */
10
+ const Modal = ({ isOpen, children, onDismiss, testId = 'store-modal', ...otherProps }) => {
11
+ const handleBackdropClick = (event) => {
12
+ if (event.defaultPrevented) {
13
+ return;
14
+ }
15
+ event.stopPropagation();
16
+ onDismiss?.(event);
17
+ };
18
+ const handleBackdropKeyDown = (event) => {
19
+ if (event.key !== 'Escape' || event.defaultPrevented) {
20
+ return;
21
+ }
22
+ event.stopPropagation();
23
+ onDismiss?.(event);
24
+ };
25
+ return isOpen
26
+ ? createPortal(React.createElement(Overlay, { onClick: handleBackdropClick, onKeyDown: handleBackdropKeyDown },
27
+ React.createElement(ModalContent, Object.assign({}, otherProps, { testId: testId }), children)), document.body)
28
+ : null;
29
+ };
30
+ export default Modal;
31
+ //# sourceMappingURL=Modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/Modal/Modal.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAExC,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAE/C,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAwBzC;;;;GAIG;AAEH,MAAM,KAAK,GAAG,CAAC,EACb,MAAM,EACN,QAAQ,EACR,SAAS,EACT,MAAM,GAAG,aAAa,EACtB,GAAG,UAAU,EACiB,EAAE,EAAE;IAClC,MAAM,mBAAmB,GAAG,CAAC,KAAiB,EAAE,EAAE;QAChD,IAAI,KAAK,CAAC,gBAAgB,EAAE;YAC1B,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC,CAAA;IAED,MAAM,qBAAqB,GAAG,CAAC,KAAoB,EAAE,EAAE;QACrD,IAAI,KAAK,CAAC,GAAG,KAAK,QAAQ,IAAI,KAAK,CAAC,gBAAgB,EAAE;YACpD,OAAM;SACP;QAED,KAAK,CAAC,eAAe,EAAE,CAAA;QACvB,SAAS,EAAE,CAAC,KAAK,CAAC,CAAA;IACpB,CAAC,CAAA;IAED,OAAO,MAAM;QACX,CAAC,CAAC,YAAY,CACV,oBAAC,OAAO,IACN,OAAO,EAAE,mBAAmB,EAC5B,SAAS,EAAE,qBAAqB;YAEhC,oBAAC,YAAY,oBAAK,UAAU,IAAE,MAAM,EAAE,MAAM,KACzC,QAAQ,CACI,CACP,EACV,QAAQ,CAAC,IAAI,CACd;QACH,CAAC,CAAC,IAAI,CAAA;AACV,CAAC,CAAA;AAED,eAAe,KAAK,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { DetailedHTMLProps, HTMLAttributes, RefObject } from 'react';
2
+ interface ModalContentPureProps extends Omit<DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
3
+ beforeElementRef: RefObject<HTMLDivElement>;
4
+ trapFocusRef: RefObject<HTMLDivElement>;
5
+ afterElementRef: RefObject<HTMLDivElement>;
6
+ testId?: string;
7
+ }
8
+ export declare type ModalContentProps = Omit<ModalContentPureProps, 'trapFocusRef' | 'onClick' | 'beforeElementRef' | 'afterElementRef'>;
9
+ declare const ModalContent: ({ children, ...otherProps }: ModalContentProps) => JSX.Element;
10
+ export default ModalContent;
@@ -0,0 +1,23 @@
1
+ import React, { useRef } from 'react';
2
+ import useTrapFocus from './useTrapFocus';
3
+ const ModalContentPure = ({ beforeElementRef, trapFocusRef, afterElementRef, testId = 'store-modal-content', children, ...otherProps }) => {
4
+ return (React.createElement(React.Fragment, null,
5
+ React.createElement("div", { ref: beforeElementRef, "data-testid": "beforeElement", tabIndex: 0, "aria-hidden": "true" }),
6
+ React.createElement("div", Object.assign({ "data-fs-modal-content": true, "data-testid": testId, ref: trapFocusRef, "aria-modal": "true", role: "dialog", tabIndex: -1 }, otherProps), children),
7
+ React.createElement("div", { ref: afterElementRef, "data-testid": "afterElement", tabIndex: 0, "aria-hidden": "true" })));
8
+ };
9
+ const ModalContent = ({ children, ...otherProps }) => {
10
+ const trapFocusRef = useRef(null);
11
+ const beforeElementRef = useRef(null);
12
+ const afterElementRef = useRef(null);
13
+ useTrapFocus({
14
+ beforeElementRef,
15
+ trapFocusRef,
16
+ afterElementRef,
17
+ });
18
+ return (React.createElement(ModalContentPure, Object.assign({}, otherProps, { trapFocusRef: trapFocusRef, beforeElementRef: beforeElementRef, afterElementRef: afterElementRef, onClick: (event) => {
19
+ event.stopPropagation();
20
+ } }), children));
21
+ };
22
+ export default ModalContent;
23
+ //# sourceMappingURL=ModalContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModalContent.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/Modal/ModalContent.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAErC,OAAO,YAAY,MAAM,gBAAgB,CAAA;AAazC,MAAM,gBAAgB,GAAG,CAAC,EACxB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,MAAM,GAAG,qBAAqB,EAC9B,QAAQ,EACR,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,OAAO,CACL;QACE,6BACE,GAAG,EAAE,gBAAgB,iBACT,eAAe,EAC3B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB;QACF,yFAEe,MAAM,EACnB,GAAG,EAAE,YAAY,gBACN,MAAM,EACjB,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,CAAC,CAAC,IACR,UAAU,GAEb,QAAQ,CACL;QACN,6BACE,GAAG,EAAE,eAAe,iBACR,cAAc,EAC1B,QAAQ,EAAE,CAAC,iBACC,MAAM,GAClB,CACD,CACJ,CAAA;AACH,CAAC,CAAA;AAOD,MAAM,YAAY,GAAG,CAAC,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAqB,EAAE,EAAE;IACtE,MAAM,YAAY,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACjD,MAAM,gBAAgB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IACrD,MAAM,eAAe,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAA;IAEpD,YAAY,CAAC;QACX,gBAAgB;QAChB,YAAY;QACZ,eAAe;KAChB,CAAC,CAAA;IAEF,OAAO,CACL,oBAAC,gBAAgB,oBACX,UAAU,IACd,YAAY,EAAE,YAAY,EAC1B,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,eAAe,EAChC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YAC7B,KAAK,CAAC,eAAe,EAAE,CAAA;QACzB,CAAC,KAEA,QAAQ,CACQ,CACpB,CAAA;AACH,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './Modal';
2
+ export type { ModalProps } from './Modal';
@@ -0,0 +1,2 @@
1
+ export { default } from './Modal';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/Modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -0,0 +1,8 @@
1
+ import type { RefObject } from 'react';
2
+ interface TrapFocusParams {
3
+ beforeElementRef: RefObject<HTMLElement>;
4
+ trapFocusRef: RefObject<HTMLElement>;
5
+ afterElementRef: RefObject<HTMLElement>;
6
+ }
7
+ declare const useTrapFocus: ({ trapFocusRef, beforeElementRef, afterElementRef, }: TrapFocusParams) => void;
8
+ export default useTrapFocus;
@@ -0,0 +1,76 @@
1
+ import { useEffect, useRef } from 'react';
2
+ import { tabbable } from 'tabbable';
3
+ /*
4
+ * Element that will maintain the focus inside trapFocusRef, focus the first element,
5
+ * and focus back on the element that was in focus when useTrapFocus was triggered.
6
+ *
7
+ * Inspired by Reakit useTrapFocus https://github.com/reakit/reakit/blob/a211d94da9f3b683182568a56479b91afb1b85ae/packages/reakit/src/Dialog/__utils/useFocusTrap.ts
8
+ */
9
+ const useTrapFocus = ({ trapFocusRef, beforeElementRef, afterElementRef, }) => {
10
+ const tabbableNodesRef = useRef();
11
+ const nodeToRestoreRef = useRef(document.hasFocus() ? document.activeElement : null);
12
+ // Focus back on the element that was focused when useTrapFocus is triggered.
13
+ useEffect(() => {
14
+ const nodeToRestore = nodeToRestoreRef.current;
15
+ return () => {
16
+ nodeToRestore?.focus();
17
+ };
18
+ }, [nodeToRestoreRef]);
19
+ // Set focus on first tabbable element
20
+ useEffect(() => {
21
+ if (!trapFocusRef.current) {
22
+ return;
23
+ }
24
+ if (!tabbableNodesRef.current) {
25
+ tabbableNodesRef.current = tabbable(trapFocusRef.current);
26
+ }
27
+ const [firstTabbable] = tabbableNodesRef.current;
28
+ if (!firstTabbable) {
29
+ trapFocusRef.current.focus();
30
+ return;
31
+ }
32
+ firstTabbable.focus();
33
+ }, [trapFocusRef]);
34
+ // Handle loop focus. Set keydown and focusin event listeners
35
+ useEffect(() => {
36
+ if (!trapFocusRef.current ||
37
+ !beforeElementRef.current ||
38
+ !afterElementRef.current) {
39
+ return;
40
+ }
41
+ const beforeElement = beforeElementRef.current;
42
+ const afterElement = afterElementRef.current;
43
+ const trapFocus = trapFocusRef.current;
44
+ const handleLoopFocus = (nativeEvent) => {
45
+ if (!document.hasFocus()) {
46
+ return;
47
+ }
48
+ tabbableNodesRef.current = tabbable(trapFocusRef.current);
49
+ if (!tabbableNodesRef.current.length) {
50
+ trapFocus.focus();
51
+ }
52
+ /*
53
+ * Handle loop focus from beforeElementRef. This node can only be focused if the user press shift tab.
54
+ * It will focus the last element of the trapFocusRef.
55
+ */
56
+ if (nativeEvent.target === beforeElement) {
57
+ tabbableNodesRef.current[tabbableNodesRef.current.length - 1]?.focus();
58
+ }
59
+ /*
60
+ * Handle loop focus from afterElementRef. This node can only be focused if the user press tab.
61
+ * It will focus the first element of the trapFocusRef.
62
+ */
63
+ if (nativeEvent.target === afterElement) {
64
+ tabbableNodesRef.current[0]?.focus();
65
+ }
66
+ };
67
+ beforeElement?.addEventListener('focusin', handleLoopFocus);
68
+ afterElement?.addEventListener('focusin', handleLoopFocus);
69
+ return () => {
70
+ beforeElement?.removeEventListener('focusin', handleLoopFocus);
71
+ afterElement?.removeEventListener('focusin', handleLoopFocus);
72
+ };
73
+ }, [tabbableNodesRef, afterElementRef, beforeElementRef, trapFocusRef]);
74
+ };
75
+ export default useTrapFocus;
76
+ //# sourceMappingURL=useTrapFocus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTrapFocus.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/Modal/useTrapFocus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AAQnC;;;;;GAKG;AACH,MAAM,YAAY,GAAG,CAAC,EACpB,YAAY,EACZ,gBAAgB,EAChB,eAAe,GACC,EAAE,EAAE;IACpB,MAAM,gBAAgB,GAAG,MAAM,EAAsB,CAAA;IACrD,MAAM,gBAAgB,GAAG,MAAM,CAC7B,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAE,QAAQ,CAAC,aAA6B,CAAC,CAAC,CAAC,IAAI,CACrE,CAAA;IAED,6EAA6E;IAC7E,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAA;QAE9C,OAAO,GAAG,EAAE;YACV,aAAa,EAAE,KAAK,EAAE,CAAA;QACxB,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAEtB,sCAAsC;IACtC,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,YAAY,CAAC,OAAO,EAAE;YACzB,OAAM;SACP;QAED,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE;YAC7B,gBAAgB,CAAC,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;SAC1D;QAED,MAAM,CAAC,aAAa,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAA;QAEhD,IAAI,CAAC,aAAa,EAAE;YAClB,YAAY,CAAC,OAAO,CAAC,KAAK,EAAE,CAAA;YAE5B,OAAM;SACP;QAED,aAAa,CAAC,KAAK,EAAE,CAAA;IACvB,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;IAElB,6DAA6D;IAC7D,SAAS,CAAC,GAAG,EAAE;QACb,IACE,CAAC,YAAY,CAAC,OAAO;YACrB,CAAC,gBAAgB,CAAC,OAAO;YACzB,CAAC,eAAe,CAAC,OAAO,EACxB;YACA,OAAM;SACP;QAED,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAA;QAC9C,MAAM,YAAY,GAAG,eAAe,CAAC,OAAO,CAAA;QAC5C,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAA;QAEtC,MAAM,eAAe,GAAG,CAAC,WAAuB,EAAE,EAAE;YAClD,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,EAAE;gBACxB,OAAM;aACP;YAED,gBAAgB,CAAC,OAAO,GAAG,QAAQ,CAAC,YAAY,CAAC,OAAQ,CAAC,CAAA;YAE1D,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,EAAE;gBACpC,SAAS,CAAC,KAAK,EAAE,CAAA;aAClB;YAED;;;eAGG;YACH,IAAI,WAAW,CAAC,MAAM,KAAK,aAAa,EAAE;gBACxC,gBAAgB,CAAC,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;aACvE;YAED;;;eAGG;YACH,IAAI,WAAW,CAAC,MAAM,KAAK,YAAY,EAAE;gBACvC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAA;aACrC;QACH,CAAC,CAAA;QAED,aAAa,EAAE,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAC3D,YAAY,EAAE,gBAAgB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAE1D,OAAO,GAAG,EAAE;YACV,aAAa,EAAE,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;YAC9D,YAAY,EAAE,mBAAmB,CAAC,SAAS,EAAE,eAAe,CAAC,CAAA;QAC/D,CAAC,CAAA;IACH,CAAC,EAAE,CAAC,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC,CAAA;AACzE,CAAC,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,35 @@
1
+ import React from 'react';
2
+ import { ListProps } from '../../../../../components/src/atoms/List';
3
+ export interface OrderSummaryProps extends ListProps<'ul'> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress,
6
+ * testing-library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Label for the subtotal value of the order. Will only show if subtotalValue is provided.
11
+ */
12
+ subtotalLabel?: string;
13
+ /**
14
+ * Subtotal value of the order. If provided, subtotal label and value will be shown.
15
+ */
16
+ subtotalValue?: string;
17
+ /**
18
+ * Label for the discount value for the order. Will only show if discountValue is provided.
19
+ */
20
+ discountLabel?: string;
21
+ /**
22
+ * Discount value for the order. If provided, discount label and value will be shown.
23
+ */
24
+ discountValue?: string;
25
+ /**
26
+ * Label for the total value of the order.
27
+ */
28
+ totalLabel?: string;
29
+ /**
30
+ * Total value of the order.
31
+ */
32
+ totalValue?: string;
33
+ }
34
+ declare const OrderSummary: React.ForwardRefExoticComponent<Pick<OrderSummaryProps, "slot" | "style" | "title" | "marker" | "as" | "className" | "color" | "id" | "lang" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "testId" | "subtotalLabel" | "subtotalValue" | "discountLabel" | "discountValue" | "totalLabel" | "totalValue"> & React.RefAttributes<HTMLUListElement>>;
35
+ export default OrderSummary;
@@ -0,0 +1,16 @@
1
+ import React, { forwardRef } from 'react';
2
+ import List from '../../../../../components/src/atoms/List';
3
+ const OrderSummary = forwardRef(function OrderSummary({ testId = 'store-order-summary', children, subtotalLabel, subtotalValue, discountLabel, discountValue, totalLabel, totalValue, ...otherProps }, ref) {
4
+ return (React.createElement(List, Object.assign({ ref: ref, "data-fs-order-summary": true, "data-testid": testId }, otherProps),
5
+ subtotalValue ? (React.createElement("li", { "data-fs-order-summary-subtotal": true },
6
+ React.createElement("span", { "data-fs-order-summary-subtotal-label": true, "data-testid": `${testId}-subtotal-label` }, subtotalLabel),
7
+ React.createElement("span", { "data-fs-order-summary-subtotal-value": true, "data-testid": `${testId}-subtotal-value` }, subtotalValue))) : null,
8
+ discountValue ? (React.createElement("li", { "data-fs-order-summary-discount": true },
9
+ React.createElement("span", { "data-fs-order-summary-discount-label": true, "data-testid": `${testId}-discount-label` }, discountLabel),
10
+ React.createElement("span", { "data-fs-order-summary-discount-value": true, "data-testid": `${testId}-discount-value` }, discountValue))) : null,
11
+ React.createElement("li", { "data-fs-order-summary-total": true },
12
+ React.createElement("span", { "data-fs-order-summary-total-label": true, "data-testid": `${testId}-total-label` }, totalLabel),
13
+ React.createElement("span", { "data-fs-order-summary-total-value": true, "data-testid": `${testId}-total-value` }, totalValue))));
14
+ });
15
+ export default OrderSummary;
16
+ //# sourceMappingURL=OrderSummary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrderSummary.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/OrderSummary/OrderSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,IAAmB,MAAM,0CAA0C,CAAA;AAkC1E,MAAM,YAAY,GAAG,UAAU,CAC7B,SAAS,YAAY,CACnB,EACE,MAAM,GAAG,qBAAqB,EAC9B,QAAQ,EACR,aAAa,EACb,aAAa,EACb,aAAa,EACb,aAAa,EACb,UAAU,EACV,UAAU,EACV,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,oBAAC,IAAI,kBACH,GAAG,EAAE,GAAG,gDAEK,MAAM,IACf,UAAU;QAEb,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACP,aAAa,CAAC,CAAC,CAAC,CACf;YACE,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT;YACP,2FAEe,GAAG,MAAM,iBAAiB,IAEtC,aAAa,CACT,CACJ,CACN,CAAC,CAAC,CAAC,IAAI;QACR;YACE,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN;YACP,wFAEe,GAAG,MAAM,cAAc,IAEnC,UAAU,CACN,CACJ,CACA,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './OrderSummary';
2
+ export type { OrderSummaryProps } from './OrderSummary';
@@ -0,0 +1,2 @@
1
+ export { default } from './OrderSummary';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/OrderSummary/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,26 @@
1
+ import type { ReactNode, AriaAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface PaymentMethodsProps {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress,
6
+ * testing-library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Title of the payment methods section (e.g.: "Payment methods",
11
+ * "Accepted Cards").
12
+ */
13
+ title?: ReactNode;
14
+ /**
15
+ * Defines a string value that labels the current element when
16
+ * title is not used.
17
+ */
18
+ 'aria-label'?: AriaAttributes['aria-label'];
19
+ /**
20
+ * Children will receive the flags to be displayed in the payment
21
+ * methods section (e.g.:, visa, mastercard, etc).
22
+ */
23
+ children: ReactNode;
24
+ }
25
+ declare const PaymentMethods: React.ForwardRefExoticComponent<PaymentMethodsProps & React.RefAttributes<HTMLDivElement>>;
26
+ export default PaymentMethods;
@@ -0,0 +1,8 @@
1
+ import React, { forwardRef } from 'react';
2
+ const PaymentMethods = forwardRef(function PaymentMethods({ testId = 'store-payment-methods', title, 'aria-label': ariaLabel = 'Payment Methods', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", Object.assign({ ref: ref, "data-fs-payment-methods": true, "data-testid": testId }, otherProps),
4
+ !!title && React.createElement("div", null, title),
5
+ React.createElement("div", { "data-payment-methods-flags": true, "aria-label": title ? undefined : ariaLabel }, children)));
6
+ });
7
+ export default PaymentMethods;
8
+ //# sourceMappingURL=PaymentMethods.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PaymentMethods.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/PaymentMethods/PaymentMethods.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAyBzC,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EACE,MAAM,GAAG,uBAAuB,EAChC,KAAK,EACL,YAAY,EAAE,SAAS,GAAG,iBAAiB,EAC3C,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,2CACE,GAAG,EAAE,GAAG,kDAEK,MAAM,IACf,UAAU;QAEb,CAAC,CAAC,KAAK,IAAI,iCAAM,KAAK,CAAO;QAC9B,+EAEc,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,IAExC,QAAQ,CACL,CACF,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { default } from './PaymentMethods';
2
+ export type { PaymentMethodsProps } from './PaymentMethods';
@@ -0,0 +1,2 @@
1
+ export { default } from './PaymentMethods';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/PaymentMethods/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ export declare function VisaCard(): JSX.Element;
3
+ export declare function MasterCard(): JSX.Element;
4
+ export declare function AmericanExpressCard(): JSX.Element;
5
+ export declare function MaestroCard(): JSX.Element;
6
+ export declare function EloCard(): JSX.Element;
7
+ export declare function HiperCard(): JSX.Element;
8
+ export declare function PayPal(): JSX.Element;
9
+ export declare function DinersClub(): JSX.Element;
@@ -0,0 +1,26 @@
1
+ import React from 'react';
2
+ export function VisaCard() {
3
+ return (React.createElement("img", { alt: "Visa logo", width: 50, height: 50, src: "https://seeklogo.com/images/V/visa-logo-BDDD51C62D-seeklogo.com.png" }));
4
+ }
5
+ export function MasterCard() {
6
+ return (React.createElement("img", { alt: "Mastercard logo", width: 50, height: 50, src: "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Mastercard-logo.svg/1544px-Mastercard-logo.svg.png" }));
7
+ }
8
+ export function AmericanExpressCard() {
9
+ return (React.createElement("img", { alt: "American express logo", width: 50, height: 50, src: "https://seeklogo.com/images/A/american-express-logo-EDF87C04A0-seeklogo.com.png" }));
10
+ }
11
+ export function MaestroCard() {
12
+ return (React.createElement("img", { alt: "American express logo", width: 50, height: 50, src: "https://seeklogo.com/images/M/Maestro-logo-BF4E5E7686-seeklogo.com.png" }));
13
+ }
14
+ export function EloCard() {
15
+ return (React.createElement("img", { alt: "Elo logo", width: 50, height: 50, src: "https://seeklogo.com/images/E/elo-logo-9F0CF48D54-seeklogo.com.png" }));
16
+ }
17
+ export function HiperCard() {
18
+ return (React.createElement("img", { alt: "Hipercard logo", width: 50, height: 50, src: "https://seeklogo.com/images/H/Hipercard-logo-139D91D263-seeklogo.com.png" }));
19
+ }
20
+ export function PayPal() {
21
+ return (React.createElement("img", { alt: "PayPal brand", width: 50, height: 50, src: "https://seeklogo.com/images/P/paypal-logo-484B6FE744-seeklogo.com.png" }));
22
+ }
23
+ export function DinersClub() {
24
+ return (React.createElement("img", { alt: "Diners club logo", width: 50, height: 50, src: "https://seeklogo.com/images/D/Diners_Club_International-logo-EF50D35BE8-seeklogo.com.png" }));
25
+ }
26
+ //# sourceMappingURL=Icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../../../../../../../src/components/molecules/PaymentMethods/stories/assets/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,6BACE,GAAG,EAAC,WAAW,EACf,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,qEAAqE,GACzE,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,6BACE,GAAG,EAAC,iBAAiB,EACrB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,8GAA8G,GAClH,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,CACL,6BACE,GAAG,EAAC,uBAAuB,EAC3B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,iFAAiF,GACrF,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,6BACE,GAAG,EAAC,uBAAuB,EAC3B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,wEAAwE,GAC5E,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,OAAO;IACrB,OAAO,CACL,6BACE,GAAG,EAAC,UAAU,EACd,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,oEAAoE,GACxE,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,6BACE,GAAG,EAAC,gBAAgB,EACpB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,0EAA0E,GAC9E,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,MAAM;IACpB,OAAO,CACL,6BACE,GAAG,EAAC,cAAc,EAClB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,uEAAuE,GAC3E,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,6BACE,GAAG,EAAC,kBAAkB,EACtB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,0FAA0F,GAC9F,CACH,CAAA;AACH,CAAC"}