@faststore/ui 1.9.8 → 1.9.11

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 (435) hide show
  1. package/CHANGELOG.md +742 -2289
  2. package/README.md +2 -0
  3. package/dist/atoms/Badge/Badge.d.ts +11 -11
  4. package/dist/atoms/Badge/Badge.js +6 -0
  5. package/dist/atoms/Badge/Badge.js.map +1 -0
  6. package/dist/atoms/Badge/index.d.ts +2 -2
  7. package/dist/atoms/Badge/index.js +2 -0
  8. package/dist/atoms/Badge/index.js.map +1 -0
  9. package/dist/atoms/Button/Button.d.ts +10 -10
  10. package/dist/atoms/Button/Button.js +6 -0
  11. package/dist/atoms/Button/Button.js.map +1 -0
  12. package/dist/atoms/Button/index.d.ts +2 -2
  13. package/dist/atoms/Button/index.js +2 -0
  14. package/dist/atoms/Button/index.js.map +1 -0
  15. package/dist/atoms/Checkbox/Checkbox.d.ts +10 -10
  16. package/dist/atoms/Checkbox/Checkbox.js +6 -0
  17. package/dist/atoms/Checkbox/Checkbox.js.map +1 -0
  18. package/dist/atoms/Checkbox/index.d.ts +2 -2
  19. package/dist/atoms/Checkbox/index.js +2 -0
  20. package/dist/atoms/Checkbox/index.js.map +1 -0
  21. package/dist/atoms/Icon/Icon.d.ts +14 -14
  22. package/dist/atoms/Icon/Icon.js +6 -0
  23. package/dist/atoms/Icon/Icon.js.map +1 -0
  24. package/dist/atoms/Icon/index.d.ts +2 -2
  25. package/dist/atoms/Icon/index.js +2 -0
  26. package/dist/atoms/Icon/index.js.map +1 -0
  27. package/dist/atoms/Icon/stories/assets/ShoppingCart.d.ts +3 -3
  28. package/dist/atoms/Icon/stories/assets/ShoppingCart.js +8 -0
  29. package/dist/atoms/Icon/stories/assets/ShoppingCart.js.map +1 -0
  30. package/dist/atoms/Incentive/Incentive.d.ts +11 -11
  31. package/dist/atoms/Incentive/Incentive.js +6 -0
  32. package/dist/atoms/Incentive/Incentive.js.map +1 -0
  33. package/dist/atoms/Incentive/index.d.ts +2 -2
  34. package/dist/atoms/Incentive/index.js +2 -0
  35. package/dist/atoms/Incentive/index.js.map +1 -0
  36. package/dist/atoms/Incentive/stories/assets/Icons.d.ts +2 -2
  37. package/dist/atoms/Incentive/stories/assets/Icons.js +6 -0
  38. package/dist/atoms/Incentive/stories/assets/Icons.js.map +1 -0
  39. package/dist/atoms/Input/Input.d.ts +14 -14
  40. package/dist/atoms/Input/Input.js +10 -0
  41. package/dist/atoms/Input/Input.js.map +1 -0
  42. package/dist/atoms/Input/index.d.ts +2 -2
  43. package/dist/atoms/Input/index.js +2 -0
  44. package/dist/atoms/Input/index.js.map +1 -0
  45. package/dist/atoms/Label/Label.d.ts +10 -10
  46. package/dist/atoms/Label/Label.js +6 -0
  47. package/dist/atoms/Label/Label.js.map +1 -0
  48. package/dist/atoms/Label/index.d.ts +2 -2
  49. package/dist/atoms/Label/index.js +2 -0
  50. package/dist/atoms/Label/index.js.map +1 -0
  51. package/dist/atoms/Link/Link.d.ts +19 -19
  52. package/dist/atoms/Link/Link.js +13 -0
  53. package/dist/atoms/Link/Link.js.map +1 -0
  54. package/dist/atoms/Link/index.d.ts +2 -2
  55. package/dist/atoms/Link/index.js +2 -0
  56. package/dist/atoms/Link/index.js.map +1 -0
  57. package/dist/atoms/List/List.d.ts +12 -12
  58. package/dist/atoms/List/List.js +16 -0
  59. package/dist/atoms/List/List.js.map +1 -0
  60. package/dist/atoms/List/index.d.ts +2 -2
  61. package/dist/atoms/List/index.js +2 -0
  62. package/dist/atoms/List/index.js.map +1 -0
  63. package/dist/atoms/Overlay/Overlay.d.ts +10 -10
  64. package/dist/atoms/Overlay/Overlay.js +6 -0
  65. package/dist/atoms/Overlay/Overlay.js.map +1 -0
  66. package/dist/atoms/Overlay/index.d.ts +2 -2
  67. package/dist/atoms/Overlay/index.js +2 -0
  68. package/dist/atoms/Overlay/index.js.map +1 -0
  69. package/dist/atoms/Popover/Popover.d.ts +15 -15
  70. package/dist/atoms/Popover/Popover.js +7 -0
  71. package/dist/atoms/Popover/Popover.js.map +1 -0
  72. package/dist/atoms/Popover/index.d.ts +2 -2
  73. package/dist/atoms/Popover/index.js +2 -0
  74. package/dist/atoms/Popover/index.js.map +1 -0
  75. package/dist/atoms/Price/Price.d.ts +28 -28
  76. package/dist/atoms/Price/Price.js +7 -0
  77. package/dist/atoms/Price/Price.js.map +1 -0
  78. package/dist/atoms/Price/index.d.ts +2 -2
  79. package/dist/atoms/Price/index.js +2 -0
  80. package/dist/atoms/Price/index.js.map +1 -0
  81. package/dist/atoms/Radio/Radio.d.ts +7 -7
  82. package/dist/atoms/Radio/Radio.js +6 -0
  83. package/dist/atoms/Radio/Radio.js.map +1 -0
  84. package/dist/atoms/Radio/index.d.ts +2 -2
  85. package/dist/atoms/Radio/index.js +2 -0
  86. package/dist/atoms/Radio/index.js.map +1 -0
  87. package/dist/atoms/Select/Select.d.ts +10 -10
  88. package/dist/atoms/Select/Select.js +6 -0
  89. package/dist/atoms/Select/Select.js.map +1 -0
  90. package/dist/atoms/Select/index.d.ts +2 -2
  91. package/dist/atoms/Select/index.js +2 -0
  92. package/dist/atoms/Select/index.js.map +1 -0
  93. package/dist/atoms/Skeleton/Skeleton.d.ts +10 -10
  94. package/dist/atoms/Skeleton/Skeleton.js +6 -0
  95. package/dist/atoms/Skeleton/Skeleton.js.map +1 -0
  96. package/dist/atoms/Skeleton/index.d.ts +2 -2
  97. package/dist/atoms/Skeleton/index.js +2 -0
  98. package/dist/atoms/Skeleton/index.js.map +1 -0
  99. package/dist/atoms/Slider/Slider.d.ts +45 -37
  100. package/dist/atoms/Slider/Slider.js +30 -0
  101. package/dist/atoms/Slider/Slider.js.map +1 -0
  102. package/dist/atoms/Slider/index.d.ts +2 -2
  103. package/dist/atoms/Slider/index.js +2 -0
  104. package/dist/atoms/Slider/index.js.map +1 -0
  105. package/dist/atoms/Spinner/Spinner.d.ts +11 -11
  106. package/dist/atoms/Spinner/Spinner.js +6 -0
  107. package/dist/atoms/Spinner/Spinner.js.map +1 -0
  108. package/dist/atoms/Spinner/index.d.ts +2 -2
  109. package/dist/atoms/Spinner/index.js +2 -0
  110. package/dist/atoms/Spinner/index.js.map +1 -0
  111. package/dist/atoms/TextArea/TextArea.d.ts +14 -14
  112. package/dist/atoms/TextArea/TextArea.js +10 -0
  113. package/dist/atoms/TextArea/TextArea.js.map +1 -0
  114. package/dist/atoms/TextArea/index.d.ts +2 -2
  115. package/dist/atoms/TextArea/index.js +2 -0
  116. package/dist/atoms/TextArea/index.js.map +1 -0
  117. package/dist/hooks/useSlider/index.d.ts +2 -2
  118. package/dist/hooks/useSlider/index.js +3 -0
  119. package/dist/hooks/useSlider/index.js.map +1 -0
  120. package/dist/hooks/useSlider/useSlider.d.ts +62 -62
  121. package/dist/hooks/useSlider/useSlider.js +108 -0
  122. package/dist/hooks/useSlider/useSlider.js.map +1 -0
  123. package/dist/index.d.ts +80 -80
  124. package/dist/index.js +45 -8
  125. package/dist/index.js.map +1 -0
  126. package/dist/molecules/Accordion/Accordion.d.ts +26 -26
  127. package/dist/molecules/Accordion/Accordion.js +21 -0
  128. package/dist/molecules/Accordion/Accordion.js.map +1 -0
  129. package/dist/molecules/Accordion/AccordionButton.d.ts +10 -10
  130. package/dist/molecules/Accordion/AccordionButton.js +37 -0
  131. package/dist/molecules/Accordion/AccordionButton.js.map +1 -0
  132. package/dist/molecules/Accordion/AccordionItem.d.ts +28 -28
  133. package/dist/molecules/Accordion/AccordionItem.js +21 -0
  134. package/dist/molecules/Accordion/AccordionItem.js.map +1 -0
  135. package/dist/molecules/Accordion/AccordionPanel.d.ts +10 -10
  136. package/dist/molecules/Accordion/AccordionPanel.js +10 -0
  137. package/dist/molecules/Accordion/AccordionPanel.js.map +1 -0
  138. package/dist/molecules/Accordion/index.d.ts +8 -8
  139. package/dist/molecules/Accordion/index.js +5 -0
  140. package/dist/molecules/Accordion/index.js.map +1 -0
  141. package/dist/molecules/AggregateRating/AggregateRating.d.ts +18 -18
  142. package/dist/molecules/AggregateRating/AggregateRating.js +26 -0
  143. package/dist/molecules/AggregateRating/AggregateRating.js.map +1 -0
  144. package/dist/molecules/AggregateRating/index.d.ts +2 -2
  145. package/dist/molecules/AggregateRating/index.js +2 -0
  146. package/dist/molecules/AggregateRating/index.js.map +1 -0
  147. package/dist/molecules/Alert/Alert.d.ts +11 -11
  148. package/dist/molecules/Alert/Alert.js +6 -0
  149. package/dist/molecules/Alert/Alert.js.map +1 -0
  150. package/dist/molecules/Alert/index.d.ts +2 -2
  151. package/dist/molecules/Alert/index.js +2 -0
  152. package/dist/molecules/Alert/index.js.map +1 -0
  153. package/dist/molecules/Banner/Banner.d.ts +14 -14
  154. package/dist/molecules/Banner/Banner.js +6 -0
  155. package/dist/molecules/Banner/Banner.js.map +1 -0
  156. package/dist/molecules/Banner/BannerContent.d.ts +10 -10
  157. package/dist/molecules/Banner/BannerContent.js +6 -0
  158. package/dist/molecules/Banner/BannerContent.js.map +1 -0
  159. package/dist/molecules/Banner/BannerImage.d.ts +10 -10
  160. package/dist/molecules/Banner/BannerImage.js +6 -0
  161. package/dist/molecules/Banner/BannerImage.js.map +1 -0
  162. package/dist/molecules/Banner/BannerLink.d.ts +10 -10
  163. package/dist/molecules/Banner/BannerLink.js +6 -0
  164. package/dist/molecules/Banner/BannerLink.js.map +1 -0
  165. package/dist/molecules/Banner/index.d.ts +8 -8
  166. package/dist/molecules/Banner/index.js +5 -0
  167. package/dist/molecules/Banner/index.js.map +1 -0
  168. package/dist/molecules/Breadcrumb/Breadcrumb.d.ts +14 -14
  169. package/dist/molecules/Breadcrumb/Breadcrumb.js +38 -0
  170. package/dist/molecules/Breadcrumb/Breadcrumb.js.map +1 -0
  171. package/dist/molecules/Breadcrumb/index.d.ts +2 -2
  172. package/dist/molecules/Breadcrumb/index.js +2 -0
  173. package/dist/molecules/Breadcrumb/index.js.map +1 -0
  174. package/dist/molecules/Bullets/Bullets.d.ts +35 -35
  175. package/dist/molecules/Bullets/Bullets.js +12 -0
  176. package/dist/molecules/Bullets/Bullets.js.map +1 -0
  177. package/dist/molecules/Bullets/index.d.ts +2 -2
  178. package/dist/molecules/Bullets/index.js +2 -0
  179. package/dist/molecules/Bullets/index.js.map +1 -0
  180. package/dist/molecules/Card/Card.d.ts +10 -10
  181. package/dist/molecules/Card/Card.js +6 -0
  182. package/dist/molecules/Card/Card.js.map +1 -0
  183. package/dist/molecules/Card/CardActions.d.ts +10 -10
  184. package/dist/molecules/Card/CardActions.js +6 -0
  185. package/dist/molecules/Card/CardActions.js.map +1 -0
  186. package/dist/molecules/Card/CardContent.d.ts +10 -10
  187. package/dist/molecules/Card/CardContent.js +6 -0
  188. package/dist/molecules/Card/CardContent.js.map +1 -0
  189. package/dist/molecules/Card/CardImage.d.ts +10 -10
  190. package/dist/molecules/Card/CardImage.js +6 -0
  191. package/dist/molecules/Card/CardImage.js.map +1 -0
  192. package/dist/molecules/Card/index.d.ts +8 -8
  193. package/dist/molecules/Card/index.js +5 -0
  194. package/dist/molecules/Card/index.js.map +1 -0
  195. package/dist/molecules/Carousel/Arrows.d.ts +12 -12
  196. package/dist/molecules/Carousel/Arrows.js +6 -0
  197. package/dist/molecules/Carousel/Arrows.js.map +1 -0
  198. package/dist/molecules/Carousel/Carousel.d.ts +16 -16
  199. package/dist/molecules/Carousel/Carousel.js +124 -0
  200. package/dist/molecules/Carousel/Carousel.js.map +1 -0
  201. package/dist/molecules/Carousel/hooks/useSlideVisibility.d.ts +9 -9
  202. package/dist/molecules/Carousel/hooks/useSlideVisibility.js +29 -0
  203. package/dist/molecules/Carousel/hooks/useSlideVisibility.js.map +1 -0
  204. package/dist/molecules/Carousel/index.d.ts +2 -2
  205. package/dist/molecules/Carousel/index.js +3 -0
  206. package/dist/molecules/Carousel/index.js.map +1 -0
  207. package/dist/molecules/Dropdown/Dropdown.d.ts +9 -9
  208. package/dist/molecules/Dropdown/Dropdown.js +67 -0
  209. package/dist/molecules/Dropdown/Dropdown.js.map +1 -0
  210. package/dist/molecules/Dropdown/DropdownButton.d.ts +10 -10
  211. package/dist/molecules/Dropdown/DropdownButton.js +11 -0
  212. package/dist/molecules/Dropdown/DropdownButton.js.map +1 -0
  213. package/dist/molecules/Dropdown/DropdownItem.d.ts +10 -10
  214. package/dist/molecules/Dropdown/DropdownItem.js +26 -0
  215. package/dist/molecules/Dropdown/DropdownItem.js.map +1 -0
  216. package/dist/molecules/Dropdown/DropdownMenu.d.ts +22 -22
  217. package/dist/molecules/Dropdown/DropdownMenu.js +65 -0
  218. package/dist/molecules/Dropdown/DropdownMenu.js.map +1 -0
  219. package/dist/molecules/Dropdown/contexts/DropdownContext.d.ts +41 -41
  220. package/dist/molecules/Dropdown/contexts/DropdownContext.js +11 -0
  221. package/dist/molecules/Dropdown/contexts/DropdownContext.js.map +1 -0
  222. package/dist/molecules/Dropdown/hooks/useDropdown.d.ts +6 -6
  223. package/dist/molecules/Dropdown/hooks/useDropdown.js +14 -0
  224. package/dist/molecules/Dropdown/hooks/useDropdown.js.map +1 -0
  225. package/dist/molecules/Dropdown/hooks/useDropdownPosition.d.ts +8 -8
  226. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js +25 -0
  227. package/dist/molecules/Dropdown/hooks/useDropdownPosition.js.map +1 -0
  228. package/dist/molecules/Dropdown/index.d.ts +8 -8
  229. package/dist/molecules/Dropdown/index.js +5 -0
  230. package/dist/molecules/Dropdown/index.js.map +1 -0
  231. package/dist/molecules/Dropdown/stories/assets/Caret.d.ts +2 -2
  232. package/dist/molecules/Dropdown/stories/assets/Caret.js +4 -0
  233. package/dist/molecules/Dropdown/stories/assets/Caret.js.map +1 -0
  234. package/dist/molecules/Form/Form.d.ts +11 -11
  235. package/dist/molecules/Form/Form.js +6 -0
  236. package/dist/molecules/Form/Form.js.map +1 -0
  237. package/dist/molecules/Form/index.d.ts +2 -2
  238. package/dist/molecules/Form/index.js +2 -0
  239. package/dist/molecules/Form/index.js.map +1 -0
  240. package/dist/molecules/IconButton/IconButton.d.ts +19 -19
  241. package/dist/molecules/IconButton/IconButton.js +9 -0
  242. package/dist/molecules/IconButton/IconButton.js.map +1 -0
  243. package/dist/molecules/IconButton/index.d.ts +2 -2
  244. package/dist/molecules/IconButton/index.js +2 -0
  245. package/dist/molecules/IconButton/index.js.map +1 -0
  246. package/dist/molecules/LoadingButton/LoadingButton.d.ts +14 -14
  247. package/dist/molecules/LoadingButton/LoadingButton.js +8 -0
  248. package/dist/molecules/LoadingButton/LoadingButton.js.map +1 -0
  249. package/dist/molecules/LoadingButton/index.d.ts +2 -2
  250. package/dist/molecules/LoadingButton/index.js +2 -0
  251. package/dist/molecules/LoadingButton/index.js.map +1 -0
  252. package/dist/molecules/Modal/Modal.d.ts +25 -25
  253. package/dist/molecules/Modal/Modal.js +31 -0
  254. package/dist/molecules/Modal/Modal.js.map +1 -0
  255. package/dist/molecules/Modal/ModalContent.d.ts +10 -10
  256. package/dist/molecules/Modal/ModalContent.js +23 -0
  257. package/dist/molecules/Modal/ModalContent.js.map +1 -0
  258. package/dist/molecules/Modal/index.d.ts +2 -2
  259. package/dist/molecules/Modal/index.js +2 -0
  260. package/dist/molecules/Modal/index.js.map +1 -0
  261. package/dist/molecules/Modal/useTrapFocus.d.ts +8 -8
  262. package/dist/molecules/Modal/useTrapFocus.js +76 -0
  263. package/dist/molecules/Modal/useTrapFocus.js.map +1 -0
  264. package/dist/molecules/PaymentMethods/PaymentMethods.d.ts +26 -26
  265. package/dist/molecules/PaymentMethods/PaymentMethods.js +8 -0
  266. package/dist/molecules/PaymentMethods/PaymentMethods.js.map +1 -0
  267. package/dist/molecules/PaymentMethods/index.d.ts +2 -2
  268. package/dist/molecules/PaymentMethods/index.js +2 -0
  269. package/dist/molecules/PaymentMethods/index.js.map +1 -0
  270. package/dist/molecules/PaymentMethods/stories/assets/Icons.d.ts +9 -9
  271. package/dist/molecules/PaymentMethods/stories/assets/Icons.js +26 -0
  272. package/dist/molecules/PaymentMethods/stories/assets/Icons.js.map +1 -0
  273. package/dist/molecules/PriceRange/PriceRange.d.ts +23 -23
  274. package/dist/molecules/PriceRange/PriceRange.js +16 -0
  275. package/dist/molecules/PriceRange/PriceRange.js.map +1 -0
  276. package/dist/molecules/PriceRange/index.d.ts +2 -2
  277. package/dist/molecules/PriceRange/index.js +2 -0
  278. package/dist/molecules/PriceRange/index.js.map +1 -0
  279. package/dist/molecules/ProductCard/ProductCard.d.ts +11 -11
  280. package/dist/molecules/ProductCard/ProductCard.js +6 -0
  281. package/dist/molecules/ProductCard/ProductCard.js.map +1 -0
  282. package/dist/molecules/ProductCard/ProductCardActions.d.ts +10 -10
  283. package/dist/molecules/ProductCard/ProductCardActions.js +6 -0
  284. package/dist/molecules/ProductCard/ProductCardActions.js.map +1 -0
  285. package/dist/molecules/ProductCard/ProductCardContent.d.ts +10 -10
  286. package/dist/molecules/ProductCard/ProductCardContent.js +6 -0
  287. package/dist/molecules/ProductCard/ProductCardContent.js.map +1 -0
  288. package/dist/molecules/ProductCard/ProductCardImage.d.ts +10 -10
  289. package/dist/molecules/ProductCard/ProductCardImage.js +6 -0
  290. package/dist/molecules/ProductCard/ProductCardImage.js.map +1 -0
  291. package/dist/molecules/ProductCard/index.d.ts +8 -8
  292. package/dist/molecules/ProductCard/index.js +5 -0
  293. package/dist/molecules/ProductCard/index.js.map +1 -0
  294. package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +30 -30
  295. package/dist/molecules/QuantitySelector/QuantitySelector.js +11 -0
  296. package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -0
  297. package/dist/molecules/QuantitySelector/index.d.ts +2 -2
  298. package/dist/molecules/QuantitySelector/index.js +2 -0
  299. package/dist/molecules/QuantitySelector/index.js.map +1 -0
  300. package/dist/molecules/QuantitySelector/stories/assets/Icons.d.ts +7 -7
  301. package/dist/molecules/QuantitySelector/stories/assets/Icons.js +11 -0
  302. package/dist/molecules/QuantitySelector/stories/assets/Icons.js.map +1 -0
  303. package/dist/molecules/RadioGroup/RadioGroup.d.ts +5 -5
  304. package/dist/molecules/RadioGroup/RadioGroup.js +10 -0
  305. package/dist/molecules/RadioGroup/RadioGroup.js.map +1 -0
  306. package/dist/molecules/RadioGroup/RadioOption.d.ts +19 -19
  307. package/dist/molecules/RadioGroup/RadioOption.js +11 -0
  308. package/dist/molecules/RadioGroup/RadioOption.js.map +1 -0
  309. package/dist/molecules/RadioGroup/index.d.ts +4 -4
  310. package/dist/molecules/RadioGroup/index.js +3 -0
  311. package/dist/molecules/RadioGroup/index.js.map +1 -0
  312. package/dist/molecules/RadioGroup/useRadioGroup.d.ts +17 -17
  313. package/dist/molecules/RadioGroup/useRadioGroup.js +10 -0
  314. package/dist/molecules/RadioGroup/useRadioGroup.js.map +1 -0
  315. package/dist/molecules/SearchInput/SearchInput.d.ts +28 -28
  316. package/dist/molecules/SearchInput/SearchInput.js +28 -0
  317. package/dist/molecules/SearchInput/SearchInput.js.map +1 -0
  318. package/dist/molecules/SearchInput/index.d.ts +2 -2
  319. package/dist/molecules/SearchInput/index.js +2 -0
  320. package/dist/molecules/SearchInput/index.js.map +1 -0
  321. package/dist/molecules/SearchInput/stories/assets/CustomIcon.d.ts +3 -3
  322. package/dist/molecules/SearchInput/stories/assets/CustomIcon.js +7 -0
  323. package/dist/molecules/SearchInput/stories/assets/CustomIcon.js.map +1 -0
  324. package/dist/molecules/Table/Table.d.ts +11 -11
  325. package/dist/molecules/Table/Table.js +6 -0
  326. package/dist/molecules/Table/Table.js.map +1 -0
  327. package/dist/molecules/Table/TableBody.d.ts +11 -11
  328. package/dist/molecules/Table/TableBody.js +6 -0
  329. package/dist/molecules/Table/TableBody.js.map +1 -0
  330. package/dist/molecules/Table/TableCell.d.ts +20 -20
  331. package/dist/molecules/Table/TableCell.js +7 -0
  332. package/dist/molecules/Table/TableCell.js.map +1 -0
  333. package/dist/molecules/Table/TableFooter.d.ts +11 -11
  334. package/dist/molecules/Table/TableFooter.js +6 -0
  335. package/dist/molecules/Table/TableFooter.js.map +1 -0
  336. package/dist/molecules/Table/TableHead.d.ts +11 -11
  337. package/dist/molecules/Table/TableHead.js +6 -0
  338. package/dist/molecules/Table/TableHead.js.map +1 -0
  339. package/dist/molecules/Table/TableRow.d.ts +11 -11
  340. package/dist/molecules/Table/TableRow.js +6 -0
  341. package/dist/molecules/Table/TableRow.js.map +1 -0
  342. package/dist/molecules/Table/index.d.ts +12 -12
  343. package/dist/molecules/Table/index.js +7 -0
  344. package/dist/molecules/Table/index.js.map +1 -0
  345. package/dist/organisms/Hero/Hero.d.ts +11 -11
  346. package/dist/organisms/Hero/Hero.js +6 -0
  347. package/dist/organisms/Hero/Hero.js.map +1 -0
  348. package/dist/organisms/Hero/HeroHeading.d.ts +10 -10
  349. package/dist/organisms/Hero/HeroHeading.js +6 -0
  350. package/dist/organisms/Hero/HeroHeading.js.map +1 -0
  351. package/dist/organisms/Hero/HeroImage.d.ts +10 -10
  352. package/dist/organisms/Hero/HeroImage.js +6 -0
  353. package/dist/organisms/Hero/HeroImage.js.map +1 -0
  354. package/dist/organisms/Hero/index.d.ts +6 -6
  355. package/dist/organisms/Hero/index.js +4 -0
  356. package/dist/organisms/Hero/index.js.map +1 -0
  357. package/dist/organisms/OutOfStock/OutOfStock.d.ts +21 -21
  358. package/dist/organisms/OutOfStock/OutOfStock.js +8 -0
  359. package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -0
  360. package/dist/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -9
  361. package/dist/organisms/OutOfStock/OutOfStockMessage.js +5 -0
  362. package/dist/organisms/OutOfStock/OutOfStockMessage.js.map +1 -0
  363. package/dist/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -9
  364. package/dist/organisms/OutOfStock/OutOfStockTitle.js +5 -0
  365. package/dist/organisms/OutOfStock/OutOfStockTitle.js.map +1 -0
  366. package/dist/organisms/OutOfStock/index.d.ts +6 -6
  367. package/dist/organisms/OutOfStock/index.js +4 -0
  368. package/dist/organisms/OutOfStock/index.js.map +1 -0
  369. package/dist/setupTests.d.ts +1 -1
  370. package/dist/setupTests.js +6 -0
  371. package/dist/setupTests.js.map +1 -0
  372. package/dist/typings/PolymorphicGenerics.d.ts +28 -28
  373. package/dist/typings/PolymorphicGenerics.js +8 -0
  374. package/dist/typings/PolymorphicGenerics.js.map +1 -0
  375. package/dist/typings/index.d.ts +1 -1
  376. package/dist/typings/index.js +2 -0
  377. package/dist/typings/index.js.map +1 -0
  378. package/dist/utils/toHaveNoIncomplete.d.ts +17 -17
  379. package/dist/utils/toHaveNoIncomplete.js +43 -0
  380. package/dist/utils/toHaveNoIncomplete.js.map +1 -0
  381. package/package.json +6 -11
  382. package/src/atoms/Slider/Slider.test.tsx +13 -2
  383. package/src/atoms/Slider/Slider.tsx +50 -55
  384. package/src/molecules/AggregateRating/stories/AggregateRating.stories.tsx +2 -3
  385. package/src/molecules/Bullets/Bullets.tsx +4 -3
  386. package/src/molecules/Dropdown/DropdownItem.tsx +2 -5
  387. package/src/molecules/Dropdown/DropdownMenu.tsx +2 -7
  388. package/src/molecules/PriceRange/PriceRange.test.tsx +8 -2
  389. package/src/molecules/PriceRange/PriceRange.tsx +12 -20
  390. package/src/typings/PolymorphicGenerics.ts +2 -3
  391. package/dist/atoms/Badge/stories/Badge.stories.d.ts +0 -17
  392. package/dist/atoms/Button/stories/Button.stories.d.ts +0 -14
  393. package/dist/atoms/Checkbox/stories/Checkbox.stories.d.ts +0 -4
  394. package/dist/atoms/Icon/stories/Icon.stories.d.ts +0 -14
  395. package/dist/atoms/Incentive/stories/Incentive.stories.d.ts +0 -4
  396. package/dist/atoms/Input/stories/Input.stories.d.ts +0 -14
  397. package/dist/atoms/Label/stories/Label.stories.d.ts +0 -14
  398. package/dist/atoms/List/stories/List.stories.d.ts +0 -22
  399. package/dist/atoms/Overlay/stories/Overlay.stories.d.ts +0 -8
  400. package/dist/atoms/Popover/stories/Popover.stories.d.ts +0 -14
  401. package/dist/atoms/Price/stories/Price.stories.d.ts +0 -18
  402. package/dist/atoms/Radio/stories/Radio.stories.d.ts +0 -4
  403. package/dist/atoms/Select/stories/Select.stories.d.ts +0 -20
  404. package/dist/atoms/Skeleton/stories/Skeleton.stories.d.ts +0 -12
  405. package/dist/atoms/Slider/stories/Slider.stories.d.ts +0 -4
  406. package/dist/atoms/Spinner/stories/Spinner.stories.d.ts +0 -12
  407. package/dist/atoms/TextArea/stories/TextArea.stories.d.ts +0 -4
  408. package/dist/molecules/Accordion/stories/Accordion.stories.d.ts +0 -14
  409. package/dist/molecules/AggregateRating/stories/AggregateRating.stories.d.ts +0 -16
  410. package/dist/molecules/Alert/stories/Alert.stories.d.ts +0 -5
  411. package/dist/molecules/Banner/stories/Banner.stories.d.ts +0 -4
  412. package/dist/molecules/Breadcrumb/stories/Breadcrumb.stories.d.ts +0 -15
  413. package/dist/molecules/Bullets/stories/Bullets.stories.d.ts +0 -15
  414. package/dist/molecules/Card/stories/Card.stories.d.ts +0 -4
  415. package/dist/molecules/Carousel/stories/Carousel.stories.d.ts +0 -18
  416. package/dist/molecules/Dropdown/stories/Dropdown.stories.d.ts +0 -7
  417. package/dist/molecules/Form/stories/Form.stories.d.ts +0 -12
  418. package/dist/molecules/IconButton/stories/IconButton.stories.d.ts +0 -5
  419. package/dist/molecules/LoadingButton/stories/LoadingButton.stories.d.ts +0 -14
  420. package/dist/molecules/Modal/stories/Modal.stories.d.ts +0 -5
  421. package/dist/molecules/PaymentMethods/stories/PaymentMethods.stories.d.ts +0 -4
  422. package/dist/molecules/PriceRange/stories/PriceRange.stories.d.ts +0 -4
  423. package/dist/molecules/ProductCard/stories/ProductCard.stories.d.ts +0 -4
  424. package/dist/molecules/QuantitySelector/stories/QuantitySelector.stories.d.ts +0 -5
  425. package/dist/molecules/RadioGroup/stories/RadioGroup.stories.d.ts +0 -15
  426. package/dist/molecules/SearchInput/stories/SearchInput.stories.d.ts +0 -15
  427. package/dist/molecules/Table/stories/Table.stories.d.ts +0 -12
  428. package/dist/organisms/Hero/stories/Hero.stories.d.ts +0 -4
  429. package/dist/organisms/OutOfStock/stories/OutOfStock.stories.d.ts +0 -10
  430. package/dist/ui.cjs.development.js +0 -2109
  431. package/dist/ui.cjs.development.js.map +0 -1
  432. package/dist/ui.cjs.production.min.js +0 -2
  433. package/dist/ui.cjs.production.min.js.map +0 -1
  434. package/dist/ui.esm.js +0 -2037
  435. package/dist/ui.esm.js.map +0 -1
@@ -1,28 +1,28 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- interface AccordionItemContext {
4
- index: number;
5
- panel: string;
6
- button: string;
7
- prefixId: string;
8
- }
9
- declare const AccordionItemContext: React.Context<AccordionItemContext | undefined>;
10
- export interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
11
- /**
12
- * ID to find this component in testing tools (e.g.: cypress,
13
- * testing-library, and jest).
14
- */
15
- testId?: string;
16
- /**
17
- * Index of the current accordion item within the accordion.
18
- */
19
- index?: number;
20
- /**
21
- * Namespace ID prefix for the current Accordion item's panel and button
22
- * to avoid ID duplication when multiple instances are on the same page.
23
- */
24
- prefixId?: string;
25
- }
26
- declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
27
- export declare function useAccordionItem(): AccordionItemContext;
28
- export default AccordionItem;
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ interface AccordionItemContext {
4
+ index: number;
5
+ panel: string;
6
+ button: string;
7
+ prefixId: string;
8
+ }
9
+ declare const AccordionItemContext: React.Context<AccordionItemContext | undefined>;
10
+ export interface AccordionItemProps extends HTMLAttributes<HTMLDivElement> {
11
+ /**
12
+ * ID to find this component in testing tools (e.g.: cypress,
13
+ * testing-library, and jest).
14
+ */
15
+ testId?: string;
16
+ /**
17
+ * Index of the current accordion item within the accordion.
18
+ */
19
+ index?: number;
20
+ /**
21
+ * Namespace ID prefix for the current Accordion item's panel and button
22
+ * to avoid ID duplication when multiple instances are on the same page.
23
+ */
24
+ prefixId?: string;
25
+ }
26
+ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps & React.RefAttributes<HTMLDivElement>>;
27
+ export declare function useAccordionItem(): AccordionItemContext;
28
+ export default AccordionItem;
@@ -0,0 +1,21 @@
1
+ import React, { useContext, forwardRef, createContext } from 'react';
2
+ const AccordionItemContext = createContext(undefined);
3
+ const AccordionItem = forwardRef(function AccordionItem({ testId = 'store-accordion-item', children, prefixId = '', index = 0, ...otherProps }, ref) {
4
+ const context = {
5
+ index,
6
+ prefixId,
7
+ panel: `${prefixId && `${prefixId}-`}panel--${index}`,
8
+ button: `${prefixId && `${prefixId}-`}button--${index}`,
9
+ };
10
+ return (React.createElement(AccordionItemContext.Provider, { value: context },
11
+ React.createElement("div", Object.assign({ ref: ref, "data-accordion-item": true, "data-testid": testId }, otherProps), children)));
12
+ });
13
+ export function useAccordionItem() {
14
+ const context = useContext(AccordionItemContext);
15
+ if (context === undefined) {
16
+ throw new Error('Do not use AccordionItem components outside the AccordionItem context.');
17
+ }
18
+ return context;
19
+ }
20
+ export default AccordionItem;
21
+ //# sourceMappingURL=AccordionItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AASpE,MAAM,oBAAoB,GAAG,aAAa,CACxC,SAAS,CACV,CAAA;AAmBD,MAAM,aAAa,GAAG,UAAU,CAC9B,SAAS,aAAa,CACpB,EACE,MAAM,GAAG,sBAAsB,EAC/B,QAAQ,EACR,QAAQ,GAAG,EAAE,EACb,KAAK,GAAG,CAAC,EACT,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,OAAO,GAAG;QACd,KAAK;QACL,QAAQ;QACR,KAAK,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,UAAU,KAAK,EAAE;QACrD,MAAM,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,WAAW,KAAK,EAAE;KACxD,CAAA;IAED,OAAO,CACL,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC3C,2CAAK,GAAG,EAAE,GAAG,8CAAmC,MAAM,IAAM,UAAU,GACnE,QAAQ,CACL,CACwB,CACjC,CAAA;AACH,CAAC,CACF,CAAA;AAED,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAEhD,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAA;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,eAAe,aAAa,CAAA"}
@@ -1,10 +1,10 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface AccordionPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
4
- /**
5
- * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
- */
7
- testId?: string;
8
- }
9
- declare const AccordionPanel: React.ForwardRefExoticComponent<AccordionPanelProps & React.RefAttributes<HTMLDivElement>>;
10
- export default AccordionPanel;
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface AccordionPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
6
+ */
7
+ testId?: string;
8
+ }
9
+ declare const AccordionPanel: React.ForwardRefExoticComponent<AccordionPanelProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default AccordionPanel;
@@ -0,0 +1,10 @@
1
+ import React, { forwardRef } from 'react';
2
+ import { useAccordion } from './Accordion';
3
+ import { useAccordionItem } from './AccordionItem';
4
+ const AccordionPanel = forwardRef(function AccordionPanel({ testId = 'store-accordion-panel', children, ...otherProps }, ref) {
5
+ const { indices } = useAccordion();
6
+ const { index, button, panel } = useAccordionItem();
7
+ return (React.createElement("div", Object.assign({ ref: ref, id: panel, "aria-labelledby": button, role: "region", "data-accordion-panel": true, "data-testid": testId, hidden: !indices.has(index) }, otherProps), children));
8
+ });
9
+ export default AccordionPanel;
10
+ //# sourceMappingURL=AccordionPanel.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccordionPanel.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/AccordionPanel.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AAUlD,MAAM,cAAc,GAAG,UAAU,CAC/B,SAAS,cAAc,CACrB,EAAE,MAAM,GAAG,uBAAuB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC7D,GAAG;IAEH,MAAM,EAAE,OAAO,EAAE,GAAG,YAAY,EAAE,CAAA;IAClC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,gBAAgB,EAAE,CAAA;IAEnD,OAAO,CACL,2CACE,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,KAAK,qBACQ,MAAM,EACvB,IAAI,EAAC,QAAQ,+CAEA,MAAM,EACnB,MAAM,EAAE,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IACvB,UAAU,GAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,cAAc,CAAA"}
@@ -1,8 +1,8 @@
1
- export { default } from './Accordion';
2
- export type { AccordionProps } from './Accordion';
3
- export { default as AccordionItem } from './AccordionItem';
4
- export type { AccordionItemProps } from './AccordionItem';
5
- export { default as AccordionButton } from './AccordionButton';
6
- export type { AccordionButtonProps } from './AccordionButton';
7
- export { default as AccordionPanel } from './AccordionPanel';
8
- export type { AccordionPanelProps } from './AccordionPanel';
1
+ export { default } from './Accordion';
2
+ export type { AccordionProps } from './Accordion';
3
+ export { default as AccordionItem } from './AccordionItem';
4
+ export type { AccordionItemProps } from './AccordionItem';
5
+ export { default as AccordionButton } from './AccordionButton';
6
+ export type { AccordionButtonProps } from './AccordionButton';
7
+ export { default as AccordionPanel } from './AccordionPanel';
8
+ export type { AccordionPanelProps } from './AccordionPanel';
@@ -0,0 +1,5 @@
1
+ export { default } from './Accordion';
2
+ export { default as AccordionItem } from './AccordionItem';
3
+ export { default as AccordionButton } from './AccordionButton';
4
+ export { default as AccordionPanel } from './AccordionPanel';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAGrC,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAG9D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,18 +1,18 @@
1
- import React from 'react';
2
- import type { ListProps } from '../../atoms/List';
3
- export interface AggregateRatingProps extends ListProps<HTMLUListElement> {
4
- /**
5
- * The current value of the rating, based on the quantity of child elements.
6
- */
7
- value: number;
8
- /**
9
- * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
10
- */
11
- testId?: string;
12
- }
13
- export interface RatingItemProps {
14
- 'data-store-aggregate-rating-item'?: 'full' | 'partial' | 'empty';
15
- 'data-testid'?: string;
16
- }
17
- declare const AggregateRating: React.ForwardRefExoticComponent<AggregateRatingProps & React.RefAttributes<HTMLUListElement>>;
18
- export default AggregateRating;
1
+ import React from 'react';
2
+ import type { ListProps } from '../../atoms/List';
3
+ export interface AggregateRatingProps extends ListProps<HTMLUListElement> {
4
+ /**
5
+ * The current value of the rating, based on the quantity of child elements.
6
+ */
7
+ value: number;
8
+ /**
9
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
10
+ */
11
+ testId?: string;
12
+ }
13
+ export interface RatingItemProps {
14
+ 'data-store-aggregate-rating-item'?: 'full' | 'partial' | 'empty';
15
+ 'data-testid'?: string;
16
+ }
17
+ declare const AggregateRating: React.ForwardRefExoticComponent<AggregateRatingProps & React.RefAttributes<HTMLUListElement>>;
18
+ export default AggregateRating;
@@ -0,0 +1,26 @@
1
+ import React, { forwardRef } from 'react';
2
+ import List from '../../atoms/List';
3
+ const RatingItem = ({ children, ...otherProps }) => {
4
+ if (!React.isValidElement(children)) {
5
+ return React.createElement("li", Object.assign({}, otherProps), children);
6
+ }
7
+ return React.createElement("li", null, React.cloneElement(children, otherProps));
8
+ };
9
+ const AggregateRating = forwardRef(function AggregateRating({ children, testId = 'store-aggregate-rating', value, variant = 'unordered', ...otherProps }, ref) {
10
+ const fillCheck = (itemValue) => {
11
+ if (itemValue >= 1) {
12
+ return 'full';
13
+ }
14
+ if (0 < itemValue && itemValue < 1) {
15
+ return 'partial';
16
+ }
17
+ return 'empty';
18
+ };
19
+ return (React.createElement(List, Object.assign({ "data-store-aggregate-rating": true, variant: variant, ref: ref, "data-testid": testId }, otherProps), React.Children.map(children, (child, index) => {
20
+ const currentItemNumber = index;
21
+ const fill = fillCheck(value - currentItemNumber);
22
+ return (React.createElement(RatingItem, { key: `aggregate-rating-${index}`, "data-store-aggregate-rating-item": fill, "data-testid": `${testId}-item` }, child));
23
+ })));
24
+ });
25
+ export default AggregateRating;
26
+ //# sourceMappingURL=AggregateRating.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AggregateRating.js","sourceRoot":"","sources":["../../../src/molecules/AggregateRating/AggregateRating.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,IAAI,MAAM,kBAAkB,CAAA;AAmBnC,MAAM,UAAU,GAA2C,CAAC,EAC1D,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,EAAE;IACH,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;QACnC,OAAO,4CAAQ,UAAU,GAAG,QAAQ,CAAM,CAAA;KAC3C;IAED,OAAO,gCAAK,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAM,CAAA;AAC5D,CAAC,CAAA;AAED,MAAM,eAAe,GAAG,UAAU,CAChC,SAAS,eAAe,CACtB,EACE,QAAQ,EACR,MAAM,GAAG,wBAAwB,EACjC,KAAK,EACL,OAAO,GAAG,WAAW,EACrB,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,SAAS,GAAG,CAAC,SAAiB,EAAE,EAAE;QACtC,IAAI,SAAS,IAAI,CAAC,EAAE;YAClB,OAAO,MAAM,CAAA;SACd;QAED,IAAI,CAAC,GAAG,SAAS,IAAI,SAAS,GAAG,CAAC,EAAE;YAClC,OAAO,SAAS,CAAA;SACjB;QAED,OAAO,OAAO,CAAA;IAChB,CAAC,CAAA;IAED,OAAO,CACL,oBAAC,IAAI,uDAEH,OAAO,EAAE,OAAO,EAChB,GAAG,EAAE,GAAG,iBACK,MAAM,IACf,UAAU,GAEb,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAa,EAAE,EAAE;QACrD,MAAM,iBAAiB,GAAG,KAAK,CAAA;QAC/B,MAAM,IAAI,GAAG,SAAS,CAAC,KAAK,GAAG,iBAAiB,CAAC,CAAA;QAEjD,OAAO,CACL,oBAAC,UAAU,IACT,GAAG,EAAE,oBAAoB,KAAK,EAAE,sCACE,IAAI,iBACzB,GAAG,MAAM,OAAO,IAE5B,KAAK,CACK,CACd,CAAA;IACH,CAAC,CAAC,CACG,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,eAAe,CAAA"}
@@ -1,2 +1,2 @@
1
- export { default } from './AggregateRating';
2
- export type { AggregateRatingProps } from './AggregateRating';
1
+ export { default } from './AggregateRating';
2
+ export type { AggregateRatingProps } from './AggregateRating';
@@ -0,0 +1,2 @@
1
+ export { default } from './AggregateRating';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/AggregateRating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA"}
@@ -1,11 +1,11 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
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 Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
11
- export default Alert;
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface AlertProps extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
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 Alert: React.ForwardRefExoticComponent<AlertProps & React.RefAttributes<HTMLDivElement>>;
11
+ export default Alert;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const Alert = forwardRef(function Alert({ testId = 'store-alert', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", Object.assign({ ref: ref, role: "alert", "data-store-alert": true, "data-testid": testId }, otherProps), children));
4
+ });
5
+ export default Alert;
6
+ //# sourceMappingURL=Alert.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.js","sourceRoot":"","sources":["../../../src/molecules/Alert/Alert.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAWzC,MAAM,KAAK,GAAG,UAAU,CAA6B,SAAS,KAAK,CACjE,EAAE,MAAM,GAAG,aAAa,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACnD,GAAG;IAEH,OAAO,CACL,2CACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,OAAO,2CAEC,MAAM,IACf,UAAU,GAEb,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,KAAK,CAAA"}
@@ -1,2 +1,2 @@
1
- export { default } from './Alert';
2
- export type { AlertProps } from './Alert';
1
+ export { default } from './Alert';
2
+ export type { AlertProps } from './Alert';
@@ -0,0 +1,2 @@
1
+ export { default } from './Alert';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA"}
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import type { HTMLAttributes } from 'react';
3
- declare type BannerDirectionVariant = 'vertical' | 'horizontal';
4
- export interface BannerProps extends HTMLAttributes<HTMLDivElement> {
5
- /**
6
- * ID to find this component in testing tools (e.g.: cypress,
7
- * testing-library, and jest).
8
- */
9
- testId?: string;
10
- children: React.ReactNode;
11
- variant?: BannerDirectionVariant;
12
- }
13
- declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
14
- export default Banner;
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ declare type BannerDirectionVariant = 'vertical' | 'horizontal';
4
+ export interface BannerProps extends HTMLAttributes<HTMLDivElement> {
5
+ /**
6
+ * ID to find this component in testing tools (e.g.: cypress,
7
+ * testing-library, and jest).
8
+ */
9
+ testId?: string;
10
+ children: React.ReactNode;
11
+ variant?: BannerDirectionVariant;
12
+ }
13
+ declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
14
+ export default Banner;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const Banner = forwardRef(function Banner({ testId = 'store-banner', children, variant = 'vertical', ...otherProps }, ref) {
3
+ return (React.createElement("article", Object.assign({ ref: ref, "data-store-banner": variant, "data-testid": testId }, otherProps), children));
4
+ });
5
+ export default Banner;
6
+ //# sourceMappingURL=Banner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Banner.js","sourceRoot":"","sources":["../../../src/molecules/Banner/Banner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAczC,MAAM,MAAM,GAAG,UAAU,CAA8B,SAAS,MAAM,CACpE,EAAE,MAAM,GAAG,cAAc,EAAE,QAAQ,EAAE,OAAO,GAAG,UAAU,EAAE,GAAG,UAAU,EAAE,EAC1E,GAAG;IAEH,OAAO,CACL,+CACE,GAAG,EAAE,GAAG,uBACW,OAAO,iBACb,MAAM,IACf,UAAU,GAEb,QAAQ,CACD,CACX,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,MAAM,CAAA"}
@@ -1,10 +1,10 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface BannerContentProps 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 BannerContent: React.ForwardRefExoticComponent<BannerContentProps & React.RefAttributes<HTMLDivElement>>;
10
- export default BannerContent;
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface BannerContentProps 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 BannerContent: React.ForwardRefExoticComponent<BannerContentProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default BannerContent;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const BannerContent = forwardRef(function BannerContent({ testId = 'store-banner-content', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", Object.assign({ ref: ref, "data-banner-content": true, "data-testid": testId }, otherProps), children));
4
+ });
5
+ export default BannerContent;
6
+ //# sourceMappingURL=BannerContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BannerContent.js","sourceRoot":"","sources":["../../../src/molecules/Banner/BannerContent.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,aAAa,GAAG,UAAU,CAC9B,SAAS,aAAa,CACpB,EAAE,MAAM,GAAG,sBAAsB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EAC5D,GAAG;IAEH,OAAO,CACL,2CAAK,GAAG,EAAE,GAAG,8CAAmC,MAAM,IAAM,UAAU,GACnE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,aAAa,CAAA"}
@@ -1,10 +1,10 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface BannerImageProps 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 BannerImage: React.ForwardRefExoticComponent<BannerImageProps & React.RefAttributes<HTMLDivElement>>;
10
- export default BannerImage;
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface BannerImageProps 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 BannerImage: React.ForwardRefExoticComponent<BannerImageProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default BannerImage;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const BannerImage = forwardRef(function BannerImage({ testId = 'store-banner-image', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", Object.assign({ ref: ref, "data-banner-image": true, "data-testid": testId }, otherProps), children));
4
+ });
5
+ export default BannerImage;
6
+ //# sourceMappingURL=BannerImage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BannerImage.js","sourceRoot":"","sources":["../../../src/molecules/Banner/BannerImage.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,2CAAK,GAAG,EAAE,GAAG,4CAAiC,MAAM,IAAM,UAAU,GACjE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -1,10 +1,10 @@
1
- import type { HTMLAttributes } from 'react';
2
- import React from 'react';
3
- export interface BannerLinkProps 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 BannerLink: React.ForwardRefExoticComponent<BannerLinkProps & React.RefAttributes<HTMLDivElement>>;
10
- export default BannerLink;
1
+ import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface BannerLinkProps 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 BannerLink: React.ForwardRefExoticComponent<BannerLinkProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default BannerLink;
@@ -0,0 +1,6 @@
1
+ import React, { forwardRef } from 'react';
2
+ const BannerLink = forwardRef(function BannerLink({ testId = 'store-banner-link', children, ...otherProps }, ref) {
3
+ return (React.createElement("div", Object.assign({ ref: ref, "data-banner-link": true, "data-testid": testId }, otherProps), children));
4
+ });
5
+ export default BannerLink;
6
+ //# sourceMappingURL=BannerLink.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BannerLink.js","sourceRoot":"","sources":["../../../src/molecules/Banner/BannerLink.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASzC,MAAM,UAAU,GAAG,UAAU,CAC3B,SAAS,UAAU,CACjB,EAAE,MAAM,GAAG,mBAAmB,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAE,EACzD,GAAG;IAEH,OAAO,CACL,2CAAK,GAAG,EAAE,GAAG,2CAAgC,MAAM,IAAM,UAAU,GAChE,QAAQ,CACL,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,8 +1,8 @@
1
- export { default } from './Banner';
2
- export type { BannerProps } from './Banner';
3
- export { default as BannerImage } from './BannerImage';
4
- export type { BannerImageProps } from './BannerImage';
5
- export { default as BannerContent } from './BannerContent';
6
- export type { BannerContentProps } from './BannerContent';
7
- export { default as BannerLink } from './BannerLink';
8
- export type { BannerLinkProps } from './BannerLink';
1
+ export { default } from './Banner';
2
+ export type { BannerProps } from './Banner';
3
+ export { default as BannerImage } from './BannerImage';
4
+ export type { BannerImageProps } from './BannerImage';
5
+ export { default as BannerContent } from './BannerContent';
6
+ export type { BannerContentProps } from './BannerContent';
7
+ export { default as BannerLink } from './BannerLink';
8
+ export type { BannerLinkProps } from './BannerLink';
@@ -0,0 +1,5 @@
1
+ export { default } from './Banner';
2
+ export { default as BannerImage } from './BannerImage';
3
+ export { default as BannerContent } from './BannerContent';
4
+ export { default as BannerLink } from './BannerLink';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Banner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAGlC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA;AAGtD,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG1D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAA"}
@@ -1,14 +1,14 @@
1
- import React from 'react';
2
- import type { HTMLAttributes, ReactNode } from 'react';
3
- export interface BreadcrumbProps extends HTMLAttributes<HTMLDivElement> {
4
- /**
5
- * A ReactNode that will be rendered as the Divider icon.
6
- */
7
- divider?: ReactNode;
8
- /**
9
- * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
10
- */
11
- testId?: string;
12
- }
13
- declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
14
- export default Breadcrumb;
1
+ import React from 'react';
2
+ import type { HTMLAttributes, ReactNode } from 'react';
3
+ export interface BreadcrumbProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * A ReactNode that will be rendered as the Divider icon.
6
+ */
7
+ divider?: ReactNode;
8
+ /**
9
+ * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
10
+ */
11
+ testId?: string;
12
+ }
13
+ declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLDivElement>>;
14
+ export default Breadcrumb;
@@ -0,0 +1,38 @@
1
+ import React, { forwardRef } from 'react';
2
+ import List from '../../atoms/List';
3
+ const Divider = ({ divider, testId }) => {
4
+ const props = {
5
+ 'data-breadcrumb-divider': true,
6
+ 'aria-hidden': true,
7
+ 'data-testid': `${testId}-divider`,
8
+ };
9
+ if (React.isValidElement(divider)) {
10
+ return React.cloneElement(divider, props);
11
+ }
12
+ return React.createElement("span", Object.assign({}, props), divider ?? '/');
13
+ };
14
+ const ListItem = ({ children, isLastItem, divider, testId, }) => {
15
+ const props = {
16
+ 'data-testid': `${testId}-item`,
17
+ 'data-breadcrumb-item': isLastItem ? 'current' : true,
18
+ 'aria-current': isLastItem ? 'page' : undefined,
19
+ };
20
+ if (!React.isValidElement(children)) {
21
+ return (React.createElement("li", { "data-breadcrumb-list-item": true },
22
+ React.createElement("span", Object.assign({}, props),
23
+ children,
24
+ isLastItem ? null : React.createElement(Divider, { divider: divider, testId: testId }))));
25
+ }
26
+ return (React.createElement("li", { "data-breadcrumb-list-item": true },
27
+ React.cloneElement(children, props),
28
+ isLastItem ? null : React.createElement(Divider, { divider: divider, testId: testId })));
29
+ };
30
+ const Breadcrumb = forwardRef(function Breadcrumb({ children, divider: rawDivider, testId = 'store-breadcrumb', ...otherProps }, ref) {
31
+ return (React.createElement("nav", Object.assign({ "aria-label": "Breadcrumb", role: "navigation", ref: ref, "data-store-breadcrumb": true, "data-testid": testId }, otherProps),
32
+ React.createElement(List, { "data-breadcrumb-list": true, variant: "ordered" }, React.Children.toArray(children).map((child, index, childrenArray) => {
33
+ const isLastItem = index === childrenArray.length - 1;
34
+ return (React.createElement(ListItem, { isLastItem: isLastItem, divider: rawDivider, key: `breadcrumb-${index}`, testId: testId }, child));
35
+ }))));
36
+ });
37
+ export default Breadcrumb;
38
+ //# sourceMappingURL=Breadcrumb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breadcrumb.js","sourceRoot":"","sources":["../../../src/molecules/Breadcrumb/Breadcrumb.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,IAAI,MAAM,kBAAkB,CAAA;AAanC,MAAM,OAAO,GAAwB,CAAC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;IAC3D,MAAM,KAAK,GAAG;QACZ,yBAAyB,EAAE,IAAI;QAC/B,aAAa,EAAE,IAAI;QACnB,aAAa,EAAE,GAAG,MAAM,UAAU;KACnC,CAAA;IAED,IAAI,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE;QACjC,OAAO,KAAK,CAAC,YAAY,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;KAC1C;IAED,OAAO,8CAAU,KAAK,GAAG,OAAO,IAAI,GAAG,CAAQ,CAAA;AACjD,CAAC,CAAA;AASD,MAAM,QAAQ,GAAsB,CAAC,EACnC,QAAQ,EACR,UAAU,EACV,OAAO,EACP,MAAM,GACP,EAAE,EAAE;IACH,MAAM,KAAK,GAAG;QACZ,aAAa,EAAE,GAAG,MAAM,OAAO;QAC/B,sBAAsB,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI;QACrD,cAAc,EAAE,UAAU,CAAC,CAAC,CAAE,MAAgB,CAAC,CAAC,CAAC,SAAS;KAC3D,CAAA;IAED,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE;QACnC,OAAO,CACL;YACE,8CAAU,KAAK;gBACZ,QAAQ;gBACR,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAI,CAC7D,CACJ,CACN,CAAA;KACF;IAED,OAAO,CACL;QACG,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC;QACnC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,OAAO,IAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAI,CAC/D,CACN,CAAA;AACH,CAAC,CAAA;AAED,MAAM,UAAU,GAAG,UAAU,CAC3B,SAAS,UAAU,CACjB,EACE,QAAQ,EACR,OAAO,EAAE,UAAU,EACnB,MAAM,GAAG,kBAAkB,EAC3B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,yDACa,YAAY,EACvB,IAAI,EAAC,YAAY,EACjB,GAAG,EAAE,GAAG,gDAEK,MAAM,IACf,UAAU;QAEd,oBAAC,IAAI,kCAAsB,OAAO,EAAC,SAAS,IACzC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CACnC,CAAC,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,EAAE;YAC9B,MAAM,UAAU,GAAG,KAAK,KAAK,aAAa,CAAC,MAAM,GAAG,CAAC,CAAA;YAErD,OAAO,CACL,oBAAC,QAAQ,IACP,UAAU,EAAE,UAAU,EACtB,OAAO,EAAE,UAAU,EACnB,GAAG,EAAE,cAAc,KAAK,EAAE,EAC1B,MAAM,EAAE,MAAM,IAEb,KAAK,CACG,CACZ,CAAA;QACH,CAAC,CACF,CACI,CACH,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,2 +1,2 @@
1
- export { default } from './Breadcrumb';
2
- export type { BreadcrumbProps } from './Breadcrumb';
1
+ export { default } from './Breadcrumb';
2
+ export type { BreadcrumbProps } from './Breadcrumb';
@@ -0,0 +1,2 @@
1
+ export { default } from './Breadcrumb';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/Breadcrumb/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA"}