@faststore/components 2.0.96-alpha.0 → 2.0.101-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/dist/atoms/Button/Button.d.ts +1 -1
  2. package/dist/atoms/Button/Button.js +3 -3
  3. package/dist/atoms/Button/Button.js.map +1 -1
  4. package/dist/atoms/Icon/Icon.d.ts +15 -6
  5. package/dist/atoms/Icon/Icon.js +11 -3
  6. package/dist/atoms/Icon/Icon.js.map +1 -1
  7. package/dist/atoms/Select/Select.d.ts +1 -1
  8. package/dist/atoms/Select/Select.js +1 -2
  9. package/dist/atoms/Select/Select.js.map +1 -1
  10. package/dist/index.d.ts +0 -1
  11. package/dist/index.js +0 -2
  12. package/dist/index.js.map +1 -1
  13. package/dist/molecules/Accordion/AccordionButton.d.ts +1 -1
  14. package/dist/molecules/Accordion/AccordionButton.js +2 -2
  15. package/dist/molecules/Accordion/AccordionButton.js.map +1 -1
  16. package/dist/molecules/Alert/Alert.d.ts +1 -1
  17. package/dist/molecules/Alert/Alert.js +4 -6
  18. package/dist/molecules/Alert/Alert.js.map +1 -1
  19. package/dist/molecules/Breadcrumb/BreadcrumbBase.js +7 -5
  20. package/dist/molecules/Breadcrumb/BreadcrumbBase.js.map +1 -1
  21. package/dist/molecules/Breadcrumb/HomeLink.js +3 -3
  22. package/dist/molecules/Breadcrumb/HomeLink.js.map +1 -1
  23. package/dist/molecules/BuyButton/BuyButton.js +2 -3
  24. package/dist/molecules/BuyButton/BuyButton.js.map +1 -1
  25. package/dist/molecules/CartItem/CartItem.js +2 -3
  26. package/dist/molecules/CartItem/CartItem.js.map +1 -1
  27. package/dist/molecules/Dropdown/DropdownItem.d.ts +2 -3
  28. package/dist/molecules/Dropdown/DropdownItem.js +2 -3
  29. package/dist/molecules/Dropdown/DropdownItem.js.map +1 -1
  30. package/dist/molecules/Gift/Gift.js +3 -2
  31. package/dist/molecules/Gift/Gift.js.map +1 -1
  32. package/dist/molecules/InputField/InputField.js +2 -3
  33. package/dist/molecules/InputField/InputField.js.map +1 -1
  34. package/dist/molecules/LinkButton/LinkButton.js +2 -3
  35. package/dist/molecules/LinkButton/LinkButton.js.map +1 -1
  36. package/dist/molecules/Modal/ModalHeader.js +2 -2
  37. package/dist/molecules/Modal/ModalHeader.js.map +1 -1
  38. package/dist/molecules/ProductCard/ProductCardContent.d.ts +1 -1
  39. package/dist/molecules/ProductCard/ProductCardContent.js +3 -4
  40. package/dist/molecules/ProductCard/ProductCardContent.js.map +1 -1
  41. package/dist/molecules/ProductTitle/ProductTitle.d.ts +1 -1
  42. package/dist/molecules/QuantitySelector/QuantitySelector.js +4 -5
  43. package/dist/molecules/QuantitySelector/QuantitySelector.js.map +1 -1
  44. package/dist/molecules/Rating/Rating.d.ts +2 -4
  45. package/dist/molecules/Rating/Rating.js +5 -5
  46. package/dist/molecules/Rating/Rating.js.map +1 -1
  47. package/dist/molecules/RegionBar/RegionBar.d.ts +1 -1
  48. package/dist/molecules/RegionBar/RegionBar.js +2 -3
  49. package/dist/molecules/RegionBar/RegionBar.js.map +1 -1
  50. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.d.ts +1 -1
  51. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js +4 -3
  52. package/dist/molecules/SearchAutoComplete/SearchAutoCompleteTerm.js.map +1 -1
  53. package/dist/molecules/SearchHistory/SearchHistoryTerm.d.ts +1 -1
  54. package/dist/molecules/SearchHistory/SearchHistoryTerm.js +4 -3
  55. package/dist/molecules/SearchHistory/SearchHistoryTerm.js.map +1 -1
  56. package/dist/molecules/SearchInputField/SearchInputField.d.ts +1 -1
  57. package/dist/molecules/SearchInputField/SearchInputField.js +2 -2
  58. package/dist/molecules/SearchInputField/SearchInputField.js.map +1 -1
  59. package/dist/molecules/Table/Table.d.ts +1 -1
  60. package/dist/molecules/Tag/Tag.d.ts +1 -1
  61. package/dist/molecules/Tag/Tag.js +2 -5
  62. package/dist/molecules/Tag/Tag.js.map +1 -1
  63. package/dist/molecules/Toast/Toast.js +1 -3
  64. package/dist/molecules/Toast/Toast.js.map +1 -1
  65. package/dist/molecules/Toggle/Toggle.d.ts +1 -1
  66. package/dist/molecules/Toggle/Toggle.js +2 -3
  67. package/dist/molecules/Toggle/Toggle.js.map +1 -1
  68. package/dist/organisms/Hero/HeroHeader.d.ts +1 -1
  69. package/dist/organisms/Hero/HeroHeader.js +4 -3
  70. package/dist/organisms/Hero/HeroHeader.js.map +1 -1
  71. package/dist/organisms/OutOfStock/OutOfStock.d.ts +1 -1
  72. package/dist/organisms/OutOfStock/OutOfStock.js +2 -3
  73. package/dist/organisms/OutOfStock/OutOfStock.js.map +1 -1
  74. package/dist/organisms/ShippingSimulation/ShippingSimulation.d.ts +1 -1
  75. package/dist/organisms/ShippingSimulation/ShippingSimulation.js +2 -3
  76. package/dist/organisms/ShippingSimulation/ShippingSimulation.js.map +1 -1
  77. package/dist/organisms/SlideOver/SlideOverHeader.d.ts +2 -2
  78. package/dist/organisms/SlideOver/SlideOverHeader.js +2 -3
  79. package/dist/organisms/SlideOver/SlideOverHeader.js.map +1 -1
  80. package/package.json +2 -2
  81. package/src/atoms/Button/Button.tsx +4 -4
  82. package/src/atoms/Icon/Icon.tsx +36 -10
  83. package/src/atoms/Select/Select.tsx +2 -3
  84. package/src/index.ts +0 -3
  85. package/src/molecules/Accordion/AccordionButton.tsx +4 -4
  86. package/src/molecules/Alert/Alert.tsx +5 -8
  87. package/src/molecules/Breadcrumb/BreadcrumbBase.tsx +43 -27
  88. package/src/molecules/Breadcrumb/HomeLink.tsx +3 -3
  89. package/src/molecules/BuyButton/BuyButton.tsx +2 -3
  90. package/src/molecules/CartItem/CartItem.tsx +2 -3
  91. package/src/molecules/Dropdown/DropdownItem.tsx +4 -5
  92. package/src/molecules/Gift/Gift.tsx +3 -2
  93. package/src/molecules/InputField/InputField.tsx +3 -4
  94. package/src/molecules/LinkButton/LinkButton.tsx +3 -4
  95. package/src/molecules/Modal/ModalHeader.tsx +2 -2
  96. package/src/molecules/ProductCard/ProductCardContent.tsx +3 -10
  97. package/src/molecules/QuantitySelector/QuantitySelector.tsx +4 -5
  98. package/src/molecules/Rating/Rating.tsx +12 -10
  99. package/src/molecules/RegionBar/RegionBar.tsx +3 -4
  100. package/src/molecules/SearchAutoComplete/SearchAutoCompleteTerm.tsx +10 -9
  101. package/src/molecules/SearchHistory/SearchHistoryTerm.tsx +9 -6
  102. package/src/molecules/SearchInputField/SearchInputField.tsx +5 -4
  103. package/src/molecules/Tag/Tag.tsx +3 -5
  104. package/src/molecules/Toast/Toast.tsx +1 -2
  105. package/src/molecules/Toggle/Toggle.tsx +3 -4
  106. package/src/organisms/Hero/HeroHeader.tsx +11 -5
  107. package/src/organisms/OutOfStock/OutOfStock.tsx +3 -4
  108. package/src/organisms/ShippingSimulation/ShippingSimulation.tsx +3 -11
  109. package/src/organisms/SlideOver/SlideOverHeader.tsx +3 -5
  110. package/dist/assets/ArrowElbowDownRight.d.ts +0 -4
  111. package/dist/assets/ArrowElbowDownRight.js +0 -8
  112. package/dist/assets/ArrowElbowDownRight.js.map +0 -1
  113. package/dist/assets/ArrowRight.d.ts +0 -3
  114. package/dist/assets/ArrowRight.js +0 -8
  115. package/dist/assets/ArrowRight.js.map +0 -1
  116. package/dist/assets/ArrowSquareOut.d.ts +0 -4
  117. package/dist/assets/ArrowSquareOut.js +0 -6
  118. package/dist/assets/ArrowSquareOut.js.map +0 -1
  119. package/dist/assets/BellRinging.d.ts +0 -4
  120. package/dist/assets/BellRinging.js +0 -6
  121. package/dist/assets/BellRinging.js.map +0 -1
  122. package/dist/assets/CaretDown.d.ts +0 -3
  123. package/dist/assets/CaretDown.js +0 -7
  124. package/dist/assets/CaretDown.js.map +0 -1
  125. package/dist/assets/CaretRight.d.ts +0 -4
  126. package/dist/assets/CaretRight.js +0 -7
  127. package/dist/assets/CaretRight.js.map +0 -1
  128. package/dist/assets/Checked.d.ts +0 -3
  129. package/dist/assets/Checked.js +0 -6
  130. package/dist/assets/Checked.js.map +0 -1
  131. package/dist/assets/ClockClockwise.d.ts +0 -3
  132. package/dist/assets/ClockClockwise.js +0 -10
  133. package/dist/assets/ClockClockwise.js.map +0 -1
  134. package/dist/assets/DotsThree.d.ts +0 -4
  135. package/dist/assets/DotsThree.js +0 -9
  136. package/dist/assets/DotsThree.js.map +0 -1
  137. package/dist/assets/FadersHorizontal.d.ts +0 -3
  138. package/dist/assets/FadersHorizontal.js +0 -12
  139. package/dist/assets/FadersHorizontal.js.map +0 -1
  140. package/dist/assets/Heart.d.ts +0 -3
  141. package/dist/assets/Heart.js +0 -7
  142. package/dist/assets/Heart.js.map +0 -1
  143. package/dist/assets/House.d.ts +0 -4
  144. package/dist/assets/House.js +0 -7
  145. package/dist/assets/House.js.map +0 -1
  146. package/dist/assets/IconProps.d.ts +0 -3
  147. package/dist/assets/IconProps.js +0 -2
  148. package/dist/assets/IconProps.js.map +0 -1
  149. package/dist/assets/MagnifyingGlass.d.ts +0 -4
  150. package/dist/assets/MagnifyingGlass.js +0 -7
  151. package/dist/assets/MagnifyingGlass.js.map +0 -1
  152. package/dist/assets/MapPin.d.ts +0 -4
  153. package/dist/assets/MapPin.js +0 -8
  154. package/dist/assets/MapPin.js.map +0 -1
  155. package/dist/assets/Minus.d.ts +0 -3
  156. package/dist/assets/Minus.js +0 -7
  157. package/dist/assets/Minus.js.map +0 -1
  158. package/dist/assets/MinusCircle.d.ts +0 -3
  159. package/dist/assets/MinusCircle.js +0 -8
  160. package/dist/assets/MinusCircle.js.map +0 -1
  161. package/dist/assets/PaymentFlags/ApplePay.d.ts +0 -3
  162. package/dist/assets/PaymentFlags/ApplePay.js +0 -7
  163. package/dist/assets/PaymentFlags/ApplePay.js.map +0 -1
  164. package/dist/assets/PaymentFlags/Diners.d.ts +0 -3
  165. package/dist/assets/PaymentFlags/Diners.js +0 -8
  166. package/dist/assets/PaymentFlags/Diners.js.map +0 -1
  167. package/dist/assets/PaymentFlags/EloCard.d.ts +0 -3
  168. package/dist/assets/PaymentFlags/EloCard.js +0 -11
  169. package/dist/assets/PaymentFlags/EloCard.js.map +0 -1
  170. package/dist/assets/PaymentFlags/GooglePay.d.ts +0 -3
  171. package/dist/assets/PaymentFlags/GooglePay.js +0 -11
  172. package/dist/assets/PaymentFlags/GooglePay.js.map +0 -1
  173. package/dist/assets/PaymentFlags/Mastercard.d.ts +0 -3
  174. package/dist/assets/PaymentFlags/Mastercard.js +0 -9
  175. package/dist/assets/PaymentFlags/Mastercard.js.map +0 -1
  176. package/dist/assets/PaymentFlags/PayPal.d.ts +0 -3
  177. package/dist/assets/PaymentFlags/PayPal.js +0 -10
  178. package/dist/assets/PaymentFlags/PayPal.js.map +0 -1
  179. package/dist/assets/PaymentFlags/Stripe.d.ts +0 -3
  180. package/dist/assets/PaymentFlags/Stripe.js +0 -7
  181. package/dist/assets/PaymentFlags/Stripe.js.map +0 -1
  182. package/dist/assets/PaymentFlags/Visa.d.ts +0 -3
  183. package/dist/assets/PaymentFlags/Visa.js +0 -7
  184. package/dist/assets/PaymentFlags/Visa.js.map +0 -1
  185. package/dist/assets/PaymentFlags/index.d.ts +0 -8
  186. package/dist/assets/PaymentFlags/index.js +0 -9
  187. package/dist/assets/PaymentFlags/index.js.map +0 -1
  188. package/dist/assets/Plus.d.ts +0 -3
  189. package/dist/assets/Plus.js +0 -8
  190. package/dist/assets/Plus.js.map +0 -1
  191. package/dist/assets/PlusCircle.d.ts +0 -3
  192. package/dist/assets/PlusCircle.js +0 -9
  193. package/dist/assets/PlusCircle.js.map +0 -1
  194. package/dist/assets/Ruler.d.ts +0 -3
  195. package/dist/assets/Ruler.js +0 -10
  196. package/dist/assets/Ruler.js.map +0 -1
  197. package/dist/assets/SealCheck.d.ts +0 -4
  198. package/dist/assets/SealCheck.js +0 -6
  199. package/dist/assets/SealCheck.js.map +0 -1
  200. package/dist/assets/SealWarning.d.ts +0 -4
  201. package/dist/assets/SealWarning.js +0 -6
  202. package/dist/assets/SealWarning.js.map +0 -1
  203. package/dist/assets/ShoppingCart.d.ts +0 -3
  204. package/dist/assets/ShoppingCart.js +0 -10
  205. package/dist/assets/ShoppingCart.js.map +0 -1
  206. package/dist/assets/Star.d.ts +0 -3
  207. package/dist/assets/Star.js +0 -7
  208. package/dist/assets/Star.js.map +0 -1
  209. package/dist/assets/TagIcon.d.ts +0 -3
  210. package/dist/assets/TagIcon.js +0 -8
  211. package/dist/assets/TagIcon.js.map +0 -1
  212. package/dist/assets/X.d.ts +0 -3
  213. package/dist/assets/X.js +0 -8
  214. package/dist/assets/X.js.map +0 -1
  215. package/dist/assets/XCircle.d.ts +0 -3
  216. package/dist/assets/XCircle.js +0 -9
  217. package/dist/assets/XCircle.js.map +0 -1
  218. package/dist/assets/index.d.ts +0 -27
  219. package/dist/assets/index.js +0 -29
  220. package/dist/assets/index.js.map +0 -1
  221. package/src/assets/ArrowElbowDownRight.tsx +0 -28
  222. package/src/assets/ArrowRight.tsx +0 -37
  223. package/src/assets/ArrowSquareOut.tsx +0 -19
  224. package/src/assets/BellRinging.tsx +0 -18
  225. package/src/assets/CaretDown.tsx +0 -26
  226. package/src/assets/CaretRight.tsx +0 -25
  227. package/src/assets/Checked.tsx +0 -24
  228. package/src/assets/ClockClockwise.tsx +0 -56
  229. package/src/assets/DotsThree.tsx +0 -21
  230. package/src/assets/FadersHorizontal.tsx +0 -84
  231. package/src/assets/Heart.tsx +0 -19
  232. package/src/assets/House.tsx +0 -26
  233. package/src/assets/IconProps.ts +0 -3
  234. package/src/assets/MagnifyingGlass.tsx +0 -22
  235. package/src/assets/MapPin.tsx +0 -34
  236. package/src/assets/Minus.tsx +0 -28
  237. package/src/assets/MinusCircle.tsx +0 -36
  238. package/src/assets/PaymentFlags/ApplePay.tsx +0 -20
  239. package/src/assets/PaymentFlags/Diners.tsx +0 -20
  240. package/src/assets/PaymentFlags/EloCard.tsx +0 -32
  241. package/src/assets/PaymentFlags/GooglePay.tsx +0 -41
  242. package/src/assets/PaymentFlags/Mastercard.tsx +0 -32
  243. package/src/assets/PaymentFlags/PayPal.tsx +0 -38
  244. package/src/assets/PaymentFlags/Stripe.tsx +0 -25
  245. package/src/assets/PaymentFlags/Visa.tsx +0 -20
  246. package/src/assets/PaymentFlags/index.ts +0 -8
  247. package/src/assets/Plus.tsx +0 -38
  248. package/src/assets/PlusCircle.tsx +0 -46
  249. package/src/assets/Ruler.tsx +0 -64
  250. package/src/assets/SealCheck.tsx +0 -17
  251. package/src/assets/SealWarning.tsx +0 -17
  252. package/src/assets/ShoppingCart.tsx +0 -50
  253. package/src/assets/Star.tsx +0 -19
  254. package/src/assets/TagIcon.tsx +0 -26
  255. package/src/assets/X.tsx +0 -38
  256. package/src/assets/XCircle.tsx +0 -46
  257. package/src/assets/index.ts +0 -29
@@ -1,6 +1,5 @@
1
- import React, { useState, useEffect } from 'react';
2
- import { IconButton, Input } from '../../';
3
- import { Minus, Plus } from '../../assets';
1
+ import React, { useEffect, useState } from 'react';
2
+ import { Icon, IconButton, Input } from '../../';
4
3
  const QuantitySelector = ({ max, min = 1, initial, disabled = false, onChange, testId = 'fs-quantity-selector', ...otherProps }) => {
5
4
  const [quantity, setQuantity] = useState(initial ?? min);
6
5
  const isLeftDisabled = quantity === min;
@@ -30,9 +29,9 @@ const QuantitySelector = ({ max, min = 1, initial, disabled = false, onChange, t
30
29
  initial && setQuantity(initial);
31
30
  }, [initial]);
32
31
  return (React.createElement("div", { "data-fs-quantity-selector": disabled ? 'disabled' : 'true', "data-testid": testId, ...otherProps },
33
- React.createElement(IconButton, { "data-quantity-selector-button": "left", icon: React.createElement(Minus, null), "aria-label": "Decrement Quantity", "aria-controls": "quantity-selector-input", disabled: isLeftDisabled || disabled, onClick: decrease, testId: `${testId}-left-button` }),
32
+ React.createElement(IconButton, { "data-quantity-selector-button": "left", icon: React.createElement(Icon, { name: "Minus", width: 16, height: 16, weight: "bold" }), "aria-label": "Decrement Quantity", "aria-controls": "quantity-selector-input", disabled: isLeftDisabled || disabled, onClick: decrease, testId: `${testId}-left-button` }),
34
33
  React.createElement(Input, { "data-quantity-selector-input": true, id: "quantity-selector-input", "aria-label": "Quantity", value: quantity, onChange: validateInput, disabled: disabled }),
35
- React.createElement(IconButton, { "data-quantity-selector-button": "right", "aria-controls": "quantity-selector-input", "aria-label": "Increment Quantity", disabled: isRightDisabled || disabled, icon: React.createElement(Plus, null), onClick: increase, testId: `${testId}-right-button` })));
34
+ React.createElement(IconButton, { "data-quantity-selector-button": "right", "aria-controls": "quantity-selector-input", "aria-label": "Increment Quantity", disabled: isRightDisabled || disabled, icon: React.createElement(Icon, { name: "Plus", width: 16, height: 16, weight: "bold" }), onClick: increase, testId: `${testId}-right-button` })));
36
35
  };
37
36
  export default QuantitySelector;
38
37
  //# sourceMappingURL=QuantitySelector.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"QuantitySelector.js","sourceRoot":"","sources":["../../../src/molecules/QuantitySelector/QuantitySelector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAElD,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAA;AAC1C,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AA+B1C,MAAM,gBAAgB,GAAG,CAAC,EACxB,GAAG,EACH,GAAG,GAAG,CAAC,EACP,OAAO,EACP,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,MAAM,GAAG,sBAAsB,EAC/B,GAAG,UAAU,EACS,EAAE,EAAE;IAC1B,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAS,OAAO,IAAI,GAAG,CAAC,CAAA;IAEhE,MAAM,cAAc,GAAG,QAAQ,KAAK,GAAG,CAAA;IACvC,MAAM,eAAe,GAAG,QAAQ,KAAK,GAAG,CAAA;IAExC,MAAM,cAAc,GAAG,CAAC,aAAqB,EAAE,EAAE;QAC/C,MAAM,a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MAAM,iBAC5C,MAAM,KACf,UAAU;QAEd,oBAAC,UAAU,qCACqB,MAAM,EACpC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAC,MAAM,GAAG,gBACrD,oBAAoB,mBACjB,yBAAyB,EACvC,QAAQ,EAAE,cAAc,IAAI,QAAQ,EACpC,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,GAAG,MAAM,cAAc,GAC/B;QACF,oBAAC,KAAK,0CAEJ,EAAE,EAAC,yBAAyB,gBACjB,UAAU,EACrB,KAAK,EAAE,QAAQ,EACf,QAAQ,EAAE,aAAa,EACvB,QAAQ,EAAE,QAAQ,GAClB;QACF,oBAAC,UAAU,qCACqB,OAAO,mBACvB,yBAAyB,gBAC5B,oBAAoB,EAC/B,QAAQ,EAAE,eAAe,IAAI,QAAQ,EACrC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAC,MAAM,GAAG,EAC/D,OAAO,EAAE,QAAQ,EACjB,MAAM,EAAE,GAAG,MAAM,eAAe,GAChC,CACE,CACP,CAAA;AACH,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,6 +1,4 @@
1
- import React from 'react';
2
- import { ReactNode } from 'react';
3
- import { HTMLAttributes } from 'react';
1
+ import React, { HTMLAttributes, ReactNode } from 'react';
4
2
  export interface RatingProps extends Omit<HTMLAttributes<HTMLUListElement>, 'onChange'> {
5
3
  /**
6
4
  * The length of child elements.
@@ -11,7 +9,7 @@ export interface RatingProps extends Omit<HTMLAttributes<HTMLUListElement>, 'onC
11
9
  */
12
10
  value: number;
13
11
  /**
14
- * Icon to represent the rating score unit (e.g.: a <Star /> component)
12
+ * Icon to represent the rating score unit (e.g.: a <Icon name="Star" /> component)
15
13
  */
16
14
  icon?: ReactNode;
17
15
  /**
@@ -1,9 +1,10 @@
1
1
  import React, { forwardRef, useState } from 'react';
2
+ import { Icon, IconButton } from '../..';
2
3
  import List from '../../atoms/List';
3
- import { Icon, IconButton, Star } from '../..';
4
4
  const Rating = forwardRef(function Rating({ children, testId = 'fs-rating', length = 5, value = 0, icon, onChange, ...otherProps }, ref) {
5
5
  const [hover, setHover] = useState(0);
6
- const ratingIcon = icon ? icon : React.createElement(Star, null);
6
+ const outlineProps = { 'data-fs-rating-icon-outline': true };
7
+ const ratingIcon = React.isValidElement(icon) ? icon : React.createElement(Icon, { name: "Star" });
7
8
  return (React.createElement(List, { ref: ref, "data-fs-rating": true, "data-fs-rating-actionable": typeof onChange === 'function', "data-testid": testId, ...otherProps }, Array.from({ length }).map((_, index) => {
8
9
  const tempIndex = index + 1;
9
10
  const fillCheck = () => {
@@ -18,9 +19,8 @@ const Rating = forwardRef(function Rating({ children, testId = 'fs-rating', leng
18
19
  return (React.createElement("li", { key: `rating-${index}`, "data-fs-rating-item": fillCheck(), "data-testid": `${testId}-item` }, onChange ? (React.createElement(IconButton, { "data-fs-rating-button": true, icon: ratingIcon, size: "small", "aria-label": "rate", onClick: () => {
19
20
  onChange(tempIndex);
20
21
  }, onMouseEnter: () => setHover(tempIndex), onMouseLeave: () => setHover(value) })) : (React.createElement(React.Fragment, null,
21
- React.createElement("div", { "data-fs-rating-icon-wrapper": true },
22
- React.createElement(Icon, { component: ratingIcon })),
23
- React.createElement(Icon, { "data-fs-rating-icon-outline": true, component: ratingIcon })))));
22
+ React.createElement("div", { "data-fs-rating-icon-wrapper": true }, ratingIcon),
23
+ React.isValidElement(icon) ? (React.cloneElement(icon, outlineProps)) : (React.createElement(Icon, { name: "Star", "data-fs-rating-icon-outline": true }))))));
24
24
  })));
25
25
  });
26
26
  export default Rating;
@@ -1 +1 @@
1
- {"version":3,"file":"Rating.js","sourceRoot":"","sources":["../../../src/molecules/Rating/Rating.tsx"],"names":[],"mappings":"AAAA,OAAO,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AI,EAAC,MAAM,wCAA+B,CACjD,CACA,CACJ,CACE,CACN,CAAA;IACH,CAAC,CAAC,CACG,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,MAAM,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { HTMLAttributes } from 'react';
2
+ import React from 'react';
3
3
  export interface RegionBarProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
5
5
  * Postal code string to be display in the component
@@ -1,14 +1,13 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { Button, Icon } from '../../';
3
- import { MapPin, CaretRight } from '../../';
4
3
  const RegionBar = forwardRef(function RegionBar({ postalCode, onButtonClick, ...otherProps }, ref) {
5
4
  return (React.createElement("div", { ref: ref, "data-fs-region-bar": true, ...otherProps },
6
5
  React.createElement(Button, { onClick: onButtonClick },
7
- React.createElement(Icon, { component: React.createElement(MapPin, null) }),
6
+ React.createElement(Icon, { name: "MapPin" }),
8
7
  postalCode ? (React.createElement(React.Fragment, null,
9
8
  React.createElement("span", { "data-fs-region-bar-postal-code": true }, postalCode),
10
9
  React.createElement("span", { "data-fs-region-bar-cta": true }, "Edit"))) : (React.createElement("span", { "data-fs-region-bar-message": true }, "Set your location")),
11
- React.createElement(Icon, { component: React.createElement(CaretRight, null) }))));
10
+ React.createElement(Icon, { name: "CaretRight" }))));
12
11
  });
13
12
  export default RegionBar;
14
13
  //# sourceMappingURL=RegionBar.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RegionBar.js","sourceRoot":"","sources":["../../../src/molecules/RegionBar/RegionBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AACrC,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAa3C,MAAM,SAAS,GAAG,UAAU,CAAiC,SAAS,SAAS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1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { HTMLAttributes } from 'react';
3
- import { LinkProps, LinkElementType } from '../..';
3
+ import { LinkElementType, LinkProps } from '../..';
4
4
  export interface SearchAutoCompleteTermProps extends HTMLAttributes<HTMLDivElement> {
5
5
  /**
6
6
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
@@ -1,5 +1,5 @@
1
1
  import React, { Fragment } from 'react';
2
- import { Icon, MagnifyingGlass, Link } from '../..';
2
+ import { Icon, Link } from '../..';
3
3
  function formatSearchTerm(indexSubstring, searchTerm, suggestion) {
4
4
  if (indexSubstring === 0) {
5
5
  return searchTerm
@@ -12,11 +12,12 @@ function formatSearchTerm(indexSubstring, searchTerm, suggestion) {
12
12
  return searchTerm.toLowerCase();
13
13
  }
14
14
  const SearchAutoCompleteTerm = ({ testId = 'fs-search-auto-complete-term', suggestion, term, linkProps, icon, }) => {
15
- const autoCompleteIcon = icon ? icon : React.createElement(MagnifyingGlass, null);
15
+ const iconProps = { "data-fs-search-auto-complete-item-icon": true };
16
+ const autoCompleteIcon = React.isValidElement(icon) ? (React.cloneElement(icon, iconProps)) : (React.createElement(Icon, { name: "MagnifyingGlass", "data-fs-search-auto-complete-item-icon": true }));
16
17
  const suggestionSubstring = suggestion.toLowerCase().split(term.toLowerCase());
17
18
  return (React.createElement("li", { "data-fs-search-auto-complete-item": true, "data-testid": testId },
18
19
  React.createElement(Link, { ...linkProps, "data-fs-search-auto-complete-item-link": true, variant: "display" },
19
- autoCompleteIcon && (React.createElement(Icon, { component: autoCompleteIcon, "data-fs-search-auto-complete-item-icon": true })),
20
+ autoCompleteIcon,
20
21
  React.createElement("p", null, suggestionSubstring.map((substring, indexSubstring) => (React.createElement(Fragment, { key: [substring, indexSubstring].join() },
21
22
  substring.length > 0 && (React.createElement("strong", { "data-fs-search-auto-complete-item-suggestion": true }, indexSubstring === 0
22
23
  ? substring.charAt(0).toUpperCase() + substring.slice(1)
@@ -1 +1 @@
1
- {"version":3,"file":"SearchAutoCompleteTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchAutoComplete/SearchAutoCompleteTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAkB,QAAQ,EAAE,MAAM,OAAO,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAE/E,SAAS,gBAAgB,CACvB,cAAsB,EACtB,UAAkB,EAClB,UAAkB;IAElB,IAAI,cAAc,KAAK,CAAC,EAAE;QACxB,OAAO,UAAU;aACd,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CACjB,GAAG,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC;YACvD,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE;YACpB,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CACvB;aACA,IAAI,CAAC,EAAE,CAAC,CAAA;KACZ;IAED,OAAO,UAAU,CAAC,WAAW,EAAE,CAAA;AACjC,CAAC;AA0BD,MAAM,sBAAsB,GAAG,CAAC,EAC9B,MAAM,GAAG,8BAA8B,EACvC,UAAU,EACV,IAAI,EACJ,SAAS,EACT,IAAI,GACwB,EAAE,EAAE;IAChC,MAAM,gBAAgB,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,eAAe,OAAG,CAAA;IAE1D,MAAM,mBAAmB,GAAG,UAAU,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAA;IAE9E,OAAO,CACL,sFAAmD,MAAM;QACvD,oBAAC,IAAI,OACC,SAAS,kDAEb,OAAO,EAAC,SAAS;YAEhB,gBAAgB,IAAI,CACnB,oBAAC,IAAI,IACH,SAAS,EAAE,gBAAgB,mDAE3B,CACH;YACD,+BACG,mBAAmB,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,cAAc,EAAE,EAAE,CAAC,CACtD,oBAAC,QAAQ,IAAC,GAAG,EAAE,CAAC,SAAS,EAAE,cAAc,CAAC,CAAC,IAAI,EAAE;gBAC9C,SAAS,CAAC,MAAM,GAAG,CAAC,IAAI,CACvB,wFACG,cAAc,KAAK,CAAC;oBACnB,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;oBACxD,CAAC,CAAC,SAAS,CACN,CACV;gBACA,cAAc,KAAK,mBAAmB,CAAC,MAAM,GAAG,CAAC;oBAChD,gBAAgB,CAAC,cAAc,EAAE,IAAI,EAAE,UAAU,CAAC,CAC3C,CACZ,CAAC,CACA,CACC,CACJ,CACN,CAAA;AACH,CAAC,CAAA;AAED,eAAe,sBAAsB,CAAA"}
1
+ {"version":3,"file":"SearchAutoCompleteTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchAutoComplete/SearchAutoCompleteTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAkB,MAAM,OAAO,CAAA;AACvD,OAAO,EAAE,IAAI,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAE9D,SAAS,gBAAgB,CACvB,cAAsB,EACtB,UAAkB,EAClB,UAAkB;IAElB,IAAI,cAAc,KAAK,CAAC,EAAE;QACxB,OAAO,UAAU;aACd,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,EAAE,CACjB,GAAG,KAAK,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,KAAK,CAAC;YACvD,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE;YACpB,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CACvB;aACA,IAAI,CAAC,EAAE,CAAC,CAAA;KACZ;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AA;AAED,eAAe,sBAAsB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import { HTMLAttributes } from 'react';
3
- import { LinkProps, LinkElementType } from '../..';
3
+ import { LinkElementType, LinkProps } from '../..';
4
4
  export interface SearchHistoryTermProps extends HTMLAttributes<HTMLDivElement> {
5
5
  /**
6
6
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
- import { Icon, ClockClockwise, Link } from '../..';
2
+ import { Icon, Link } from '../..';
3
3
  const SearchHistoryTerm = ({ testId = 'fs-search-history-term', value, linkProps, icon, }) => {
4
- const historyIcon = icon ? icon : React.createElement(ClockClockwise, null);
4
+ const iconProps = { "data-fs-search-history-item-icon": true };
5
+ const historyIcon = React.isValidElement(icon) ? (React.cloneElement(icon, iconProps)) : (React.createElement(Icon, { name: "ClockClockwise", "data-fs-search-history-item-icon": true }));
5
6
  return (React.createElement("li", { "data-fs-search-history-item": true, "data-testid": testId },
6
7
  React.createElement(Link, { ...linkProps, "data-fs-search-history-item-link": true, variant: "display" },
7
- historyIcon && (React.createElement(Icon, { component: historyIcon, "data-fs-search-history-item-icon": true })),
8
+ historyIcon,
8
9
  React.createElement("span", null, value))));
9
10
  };
10
11
  export default SearchHistoryTerm;
@@ -1 +1 @@
1
- {"version":3,"file":"SearchHistoryTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchHistory/SearchHistoryTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAqB9E,MAAM,iBAAiB,GAAG,CAAC,EACzB,MAAM,GAAG,wBAAwB,EACjC,KAAK,EACL,SAAS,EACT,IAAI,GACmB,EAAE,EAAE;IAC3B,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,cAAc,OAAG,CAAA;IAEpD,OAAO,CACL,gFAA6C,MAAM;QACjD,oBAAC,IAAI,OAAK,SAAS,4CAAmC,OAAO,EAAC,SAAS;YACpE,WAAW,IAAI,CACd,oBAAC,IAAI,IAAC,SAAS,EAAE,WAAW,6CAAqC,CAClE;YACD,kCAAO,KAAK,CAAQ,CACf,CACJ,CACN,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
1
+ {"version":3,"file":"SearchHistoryTerm.js","sourceRoot":"","sources":["../../../src/molecules/SearchHistory/SearchHistoryTerm.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,IAAI,EAA8B,MAAM,OAAO,CAAA;AAqB9D,MAAM,iBAAiB,GAAG,CAAC,EACzB,MAAM,GAAG,wBAAwB,EACjC,KAAK,EACL,SAAS,EACT,IAAI,GACmB,EAAE,EAAE;IAC3B,MAAM,SAAS,GAAG,EAAC,kCAAkC,EAAE,IAAI,EAAC,CAAA;IAE5D,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAC/C,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,SAAS,CAAC,CACpC,CAAC,CAAC,CAAC,CACF,oBAAC,IAAI,IAAC,IAAI,EAAC,gBAAgB,6CAAoC,CAChE,CAAA;IACD,OAAO,CACL,gFAA6C,MAAM;QACjD,oBAAC,IAAI,OAAK,SAAS,4CAAmC,OAAO,EAAC,SAAS;YACpE,WAAW;YACZ,kCAAO,KAAK,CAAQ,CACf,CACJ,CACN,CAAA;AACH,CAAC,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -16,7 +16,7 @@ export interface SearchInputFieldProps extends InputProps {
16
16
  buttonProps?: ButtonProps;
17
17
  /**
18
18
  * A React component that will be rendered as an icon (submit button).
19
- * @default <MagnifyingGlass />
19
+ * @default <Icon name="MagnifyingGlass" />
20
20
  */
21
21
  buttonIcon?: ReactNode;
22
22
  /**
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef, useImperativeHandle, useRef } from 'react';
2
- import { IconButton, Input, MagnifyingGlass } from '../..';
2
+ import { Icon, IconButton, Input } from '../..';
3
3
  const SearchInputField = forwardRef(function SearchInputField({ onSubmit, buttonIcon, 'aria-label': ariaLabel = 'search', testId = 'fs-search-input', buttonProps, ...otherProps }, ref) {
4
4
  const inputRef = useRef(null);
5
5
  const formRef = useRef(null);
@@ -15,7 +15,7 @@ const SearchInputField = forwardRef(function SearchInputField({ onSubmit, button
15
15
  }));
16
16
  return (React.createElement("form", { ref: formRef, "data-fs-search-input-field": true, "data-testid": testId, onSubmit: handleSubmit, role: "search" },
17
17
  React.createElement(Input, { ref: inputRef, "aria-label": ariaLabel, "data-fs-search-input-field-input": true, ...otherProps }),
18
- React.createElement(IconButton, { type: "submit", "aria-label": "Submit Search", icon: buttonIcon ?? React.createElement(MagnifyingGlass, null), ...buttonProps })));
18
+ React.createElement(IconButton, { "data-fs-icon-button": "null", type: "submit", "aria-label": "Submit Search", icon: buttonIcon ?? React.createElement(Icon, { name: "MagnifyingGlass" }), ...buttonProps })));
19
19
  });
20
20
  export default SearchInputField;
21
21
  //# sourceMappingURL=SearchInputField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SearchInputField.js","sourceRoot":"","sources":["../../../src/molecules/SearchInputField/SearchInputField.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAEtE,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,OAAO,CAAA;AAqC1D,MAAM,gBAAgB,GAAG,UAAU,CAGjC,SAAS,gBAAgB,CACzB,EACE,QAAQ,EACR,UAAU,EACV,YAAY,EAAE,SAAS,GAAG,QAAQ,EAClC,MAAM,GAAG,iBAAiB,EAC1B,WAAW,EACX,GAAG,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EACV,YAAY,EAAE,SAAS,GAAG,QAAQ,EAClC,MAAM,GAAG,iBAAiB,EAC1B,WAAW,EACX,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAA;IAC/C,MAAM,OAAO,GAAG,MAAM,CAAkB,IAAI,CAAC,CAAA;IAE7C,MAAM,YAAY,GAAG,CAAC,KAAgB,EAAE,EAAE;QACxC,KAAK,CAAC,cAAc,EAAE,CAAA;QAEtB,IAAI,QAAQ,CAAC,OAAO,EAAE,KAAK,KAAK,EAAE,EAAE;YAClC,QAAQ,CAAC,QAAQ,CAAC,OAAQ,CAAC,KAAK,CAAC,CAAA;SAClC;IACH,CAAC,CAAA;IAED,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;QAC9B,QAAQ,EAAE,QAAQ,CAAC,OAAO;QAC1B,OAAO,EAAE,OAAO,CAAC,OAAO;KACzB,CAAC,CAAC,CAAA;IAEH,OAAO,CACL,8BACE,GAAG,EAAE,OAAO,qDAEC,MAAM,EACnB,QAAQ,EAAE,YAAY,EACtB,IAAI,EAAC,QAAQ;QAEb,oBAAC,KAAK,IACJ,GAAG,EAAE,QAAQ,gBACD,SAAS,+CAEjB,UAAU,GACd;QACF,oBAAC,UAAU,2BACW,MAAM,EAC1B,IAAI,EAAC,QAAQ,gBACF,eAAe,EAC1B,IAAI,EAAE,UAAU,IAAI,oBAAC,IAAI,IAAC,IAAI,EAAC,iBAAiB,GAAG,KAC/C,WAAW,GACf,CACG,CACR,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,gBAAgB,CAAA"}
@@ -22,5 +22,5 @@ export interface TableProps extends DetailedHTMLProps<TableHTMLAttributes<HTMLTa
22
22
  */
23
23
  nonce?: string | undefined;
24
24
  }
25
- declare const Table: React.ForwardRefExoticComponent<Pick<PropsWithChildren<TableProps>, "slot" | "style" | "summary" | "title" | "children" | "testId" | "variant" | "aria-label" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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-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" | "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" | "onResize" | "onResizeCapture" | "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" | "width" | "key" | "align" | "bgcolor" | "border" | "cellPadding" | "cellSpacing" | "frame" | "rules"> & React.RefAttributes<HTMLTableElement>>;
25
+ declare const Table: React.ForwardRefExoticComponent<Pick<PropsWithChildren<TableProps>, "children" | "slot" | "style" | "summary" | "title" | "testId" | "variant" | "aria-label" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "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-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" | "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" | "onResize" | "onResizeCapture" | "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" | "width" | "key" | "align" | "bgcolor" | "border" | "cellPadding" | "cellSpacing" | "frame" | "rules"> & React.RefAttributes<HTMLTableElement>>;
26
26
  export default Table;
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { ReactNode } from 'react';
2
+ import React from 'react';
3
3
  import { BadgeProps } from '../..';
4
4
  export interface TagProps extends BadgeProps {
5
5
  /**
@@ -1,12 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Icon } from '../..';
3
- import { Badge } from '../..';
4
- import { X } from '../../assets';
2
+ import { Badge, Icon } from '../..';
5
3
  const Tag = forwardRef(function Tag({ testId = 'fs-tag', label, icon, iconButtonLabel, onClose, ...otherProps }, ref) {
6
4
  return (React.createElement(Badge, { ref: ref, "data-fs-tag": true, size: "big", "data-testid": testId, ...otherProps },
7
5
  React.createElement("span", { "data-fs-tag-label": true }, label),
8
- React.createElement("button", { "data-fs-tag-icon-button": true, "aria-label": iconButtonLabel ? iconButtonLabel : 'remove', onClick: onClose },
9
- React.createElement(Icon, { component: icon ? icon : React.createElement(X, null) }))));
6
+ React.createElement("button", { "data-fs-tag-icon-button": true, "aria-label": iconButtonLabel ? iconButtonLabel : 'remove', onClick: onClose }, React.isValidElement(icon) ? icon : React.createElement(Icon, { name: "X" }))));
10
7
  });
11
8
  export default Tag;
12
9
  //# sourceMappingURL=Tag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/molecules/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAc,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAyBhC,MAAM,GAAG,GAAG,UAAU,CAA2B,SAAS,GAAG,CAC3D,EAAE,MAAM,GAAG,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,EAC3E,GAAG;IAEH,OAAO,CACL,oBAAC,KAAK,IACJ,GAAG,EAAE,GAAG,uBAER,IAAI,EAAC,KAAK,iBACG,MAAM,KACf,UAAU;QAEd,2DAAyB,KAAK,CAAQ;QACtC,+EAEc,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,EACxD,OAAO,EAAE,OAAO;YAEhB,oBAAC,IAAI,IAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,CAAC,OAAG,GAAI,CACjC,CACH,CACT,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,GAAG,CAAA"}
1
+ {"version":3,"file":"Tag.js","sourceRoot":"","sources":["../../../src/molecules/Tag/Tag.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,KAAK,EAAc,IAAI,EAAE,MAAM,OAAO,CAAA;AAyB/C,MAAM,GAAG,GAAG,UAAU,CAA2B,SAAS,GAAG,CAC3D,EAAE,MAAM,GAAG,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,eAAe,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,EAC3E,GAAG;IAEH,OAAO,CACL,oBAAC,KAAK,IACJ,GAAG,EAAE,GAAG,uBAER,IAAI,EAAC,KAAK,iBACG,MAAM,KACf,UAAU;QAEd,2DAAyB,KAAK,CAAQ;QACtC,+EAEc,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,QAAQ,EACxD,OAAO,EAAE,OAAO,IAEf,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,GAAG,CAC/C,CACH,CACT,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,GAAG,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import React, { useEffect, useRef, useState } from 'react';
2
- import { Icon } from '../..';
3
2
  import { useUI } from '../../hooks';
4
3
  function Toast() {
5
4
  const { toasts, popToast } = useUI();
@@ -21,8 +20,7 @@ function Toast() {
21
20
  return null;
22
21
  }
23
22
  return (React.createElement("div", { role: "status", "data-fs-toast": true, "data-fs-toast-visible": visible, onTransitionEnd: () => !visible && popToast() },
24
- toast.icon && (React.createElement("div", { "data-fs-toast-icon-container": true },
25
- React.createElement(Icon, { component: toast.icon }))),
23
+ toast.icon && (React.createElement("div", { "data-fs-toast-icon-container": true }, React.isValidElement(toast.icon) && toast.icon)),
26
24
  React.createElement("div", { "data-fs-toast-content": true },
27
25
  toast.title && React.createElement("p", { "data-fs-toast-title": true }, toast.title),
28
26
  React.createElement("p", { "data-fs-toast-message": true }, toast.message))));
@@ -1 +1 @@
1
- {"version":3,"file":"Toast.js","sourceRoot":"","sources":["../../../src/molecules/Toast/Toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAEnC,SAAS,KAAK;IACZ,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,CAAA;IACpC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IACvC,MAAM,UAAU,GAAG,MAAM,EAAkB,CAAA;IAE3C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAA;IAE7C,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,SAAS,CAAA;SACjB;QAED,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QAEtD,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,E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OAAO,SAAS,CAAA;SACjB;QAED,MAAM,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAA;QAEtD,OAAO,GAAG,EAAE,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;IACpC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAA;QAE7D,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,OAAO,IAAI,YAAY,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IACrE,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;IAEX,IAAI,KAAK,KAAK,SAAS,EAAE;QACvB,OAAO,IAAI,CAAA;KACZ;IAED,OAAO,CACL,6BACE,IAAI,EAAC,QAAQ,kDAEU,OAAO,EAC9B,eAAe,EAAE,GAAG,EAAE,CAAC,CAAC,OAAO,IAAI,QAAQ,EAAE;QAE5C,KAAK,CAAC,IAAI,IAAI,CACb,qEACG,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,KAAK,CAAC,IAAI,CAC3C,CACP;QACD;YACG,KAAK,CAAC,KAAK,IAAI,0DAAwB,KAAK,CAAC,KAAK,CAAK;YACxD,4DAA0B,KAAK,CAAC,OAAO,CAAK,CACxC,CACF,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { InputHTMLAttributes } from 'react';
2
+ import React from 'react';
3
3
  export interface ToggleProps extends InputHTMLAttributes<Omit<HTMLInputElement, 'disabled' | 'type'>> {
4
4
  /**
5
5
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
@@ -1,11 +1,10 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { Input, Icon } from './../../';
3
- import { Checked } from '../../assets';
2
+ import { Icon, Input } from './../../';
4
3
  const Toggle = forwardRef(function Toggle({ testId = 'fs-toggle', id, disabled, variant = 'horizontal', ...otherProps }, ref) {
5
4
  return (React.createElement("div", { "data-fs-toggle": true, "data-fs-toggle-variant": variant, "data-testid": testId },
6
5
  React.createElement(Input, { ref: ref, id: id, role: "switch", type: "checkbox", disabled: disabled, ...otherProps }),
7
6
  React.createElement("span", { "data-fs-toggle-knob": true },
8
- React.createElement(Icon, { component: React.createElement(Checked, null) }))));
7
+ React.createElement(Icon, { name: "Checked" }))));
9
8
  });
10
9
  export default Toggle;
11
10
  //# sourceMappingURL=Toggle.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Toggle.js","sourceRoot":"","sources":["../../../src/molecules/Toggle/Toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,UAAU,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAsBtC,MAAM,MAAM,GAAG,UAAU,CAAgC,SAAS,MAAM,CACtE,EACE,MAAM,GAAG,WAAW,EACpB,EAAE,EACF,QAAQ,EACR,OAAO,GAAG,YAAY,EACtB,GAAG,UAAU,EACD,EACd,GAAG;IAEH,OAAO,CACL,+EAA4C,OAAO,iBAAe,MAAM;QACtE,oBAAC,KAAK,IACJ,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,QAAQ,KACd,UAAU,GACd;QACF;YACE,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,OAAO,OAAG,GAAI,CAC3B,CACH,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"Toggle.js","sourceRoot":"","sources":["../../../src/molecules/Toggle/Toggle.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAsBtC,MAAM,MAAM,GAAG,UAAU,CAAgC,SAAS,MAAM,CACtE,EACE,MAAM,GAAG,WAAW,EACpB,EAAE,EACF,QAAQ,EACR,OAAO,GAAG,YAAY,EACtB,GAAG,UAAU,EACD,EACd,GAAG;IAEH,OAAO,CACL,+EAA4C,OAAO,iBAAe,MAAM;QACtE,oBAAC,KAAK,IACJ,GAAG,EAAE,GAAG,EACR,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,UAAU,EACf,QAAQ,EAAE,QAAQ,KACd,UAAU,GACd;QACF;YACE,oBAAC,IAAI,IAAC,IAAI,EAAC,SAAS,GAAG,CAClB,CACH,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,MAAM,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { ReactNode, HTMLAttributes } from 'react';
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
2
  import React from 'react';
3
3
  export interface HeroHeaderProps extends HTMLAttributes<HTMLDivElement> {
4
4
  /**
@@ -1,16 +1,17 @@
1
1
  import React, { forwardRef } from 'react';
2
2
  import { Icon, LinkButton } from '../..';
3
- import { ArrowRight } from '../../assets';
4
3
  import { useHero } from './Hero';
5
4
  const HeroHeader = forwardRef(function HeroHeader({ icon, link, title, linkText, subtitle, children, testId = 'fs-hero-heading', ...otherProps }, ref) {
6
5
  const { variant, colorVariant } = useHero();
6
+ const iconProps = { "data-fs-hero-icon": true };
7
+ const heroIcon = React.isValidElement(icon) ? (React.cloneElement(icon, iconProps)) : (icon);
7
8
  return (React.createElement("header", { ref: ref, "data-fs-hero-heading": true, "data-testid": testId, ...otherProps },
8
9
  React.createElement("div", { "data-fs-hero-wrapper": true, className: "layout__content" },
9
10
  React.createElement("div", { "data-fs-hero-info": true },
10
11
  React.createElement("h1", { "data-fs-hero-title": true }, title),
11
12
  React.createElement("p", { "data-fs-hero-subtitle": true }, subtitle),
12
- !!link && (React.createElement(LinkButton, { href: link, inverse: colorVariant === 'main', icon: React.createElement(ArrowRight, null), iconPosition: "right" }, linkText))),
13
- icon && variant === 'secondary' && (React.createElement(Icon, { "data-fs-hero-icon": true, component: icon })))));
13
+ !!link && (React.createElement(LinkButton, { href: link, inverse: colorVariant === 'main', icon: React.createElement(Icon, { name: "ArrowRight" }), iconPosition: "right" }, linkText))),
14
+ heroIcon && variant === 'secondary' && (heroIcon))));
14
15
  });
15
16
  export default HeroHeader;
16
17
  //# sourceMappingURL=HeroHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HeroHeader.js","sourceRoot":"","sources":["../../../src/organisms/Hero/HeroHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAEzC,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AA6BhC,MAAM,UAAU,GAAG,UAAU,CAC3B,SAAS,UAAU,CACjB,EACE,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,MAAM,GAAG,iBAAiB,EAC1B,GAAG,UAAU,EACd,EACD,GAAG;IAEH,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,OAAO,EAAE,CAAA;IAE3C,OAAO,CACL,gCACE,GAAG,EAAE,GAAG,+CAEK,MAAM,KACf,UAAU;QAEd,2DAA0B,SAAS,EAAC,iBAAiB;YACnD;gBACE,0DAAwB,KAAK,CAAM;gBACnC,4DAA0B,QAAQ,CAAK;gBACtC,CAAC,CAAC,IA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BACnC,4DAA0B,QAAQ,CAAK;gBACtC,CAAC,CAAC,IAAI,IAAI,CACT,oBAAC,UAAU,IACT,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,YAAY,KAAK,MAAM,EAChC,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,YAAY,GAAG,EAChC,YAAY,EAAC,OAAO,IAEnB,QAAQ,CACE,CACd,CACG;YACL,QAAQ,IAAI,OAAO,KAAK,WAAW,IAAI,CACtC,QAAQ,CACT,CACG,CACC,CACV,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { FormHTMLAttributes } from 'react';
2
+ import React from 'react';
3
3
  export interface OutOfStockProps extends FormHTMLAttributes<HTMLFormElement> {
4
4
  /**
5
5
  * ID to find this component in testing tools (e.g.: cypress,
@@ -1,14 +1,13 @@
1
1
  import React, { forwardRef } from 'react';
2
- import { BellRinging } from '../../assets';
3
2
  import { Button, Icon, InputField } from '../..';
4
3
  const OutOfStock = forwardRef(function OutOfStock({ testId = 'fs-out-of-stock', title, buttonLabel = 'Notify Me', loadingLabel = 'Loading', inputLabel, subtitle, disabled, errorMessage, onSubmit, ...otherProps }, ref) {
5
4
  return (React.createElement("form", { "data-fs-out-of-stock": true, ref: ref, "data-testid": testId, onSubmit: onSubmit, ...otherProps },
6
5
  React.createElement("h2", { "data-fs-out-of-stock-title": true }, title),
7
6
  subtitle && (React.createElement("p", { "data-fs-out-of-stock-message": true },
8
- React.createElement(Icon, { component: React.createElement(BellRinging, { size: 16 }) }),
7
+ React.createElement(Icon, { name: "BellRinging", width: 16, height: 16 }),
9
8
  subtitle)),
10
9
  React.createElement(InputField, { id: "out-of-stock-email", name: "out-of-stock-email", label: inputLabel, "aria-label": inputLabel, error: errorMessage, required: true }),
11
- React.createElement(Button, { "data-fs-out-of-stock-button": true, type: "submit", loading: disabled, loadingLabel: loadingLabel, disabled: disabled, variant: "primary", icon: React.createElement(BellRinging, null), iconPosition: "left" }, buttonLabel)));
10
+ React.createElement(Button, { "data-fs-out-of-stock-button": true, type: "submit", loading: disabled, loadingLabel: loadingLabel, disabled: disabled, variant: "primary", icon: React.createElement(Icon, { name: "BellRinging" }), iconPosition: "left" }, buttonLabel)));
12
11
  });
13
12
  export default OutOfStock;
14
13
  //# sourceMappingURL=OutOfStock.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OutOfStock.js","sourceRoot":"","sources":["../../../src/organisms/OutOfStock/OutOfStock.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AA0ChD,MAAM,UAAU,GAAG,UAAU,CAC3B,SAAS,UAAU,CACjB,EACE,MAAM,GAAG,iBAAiB,EAC1B,KAAK,EACL,WAAW,GAAG,WAAW,EACzB,YAAY,GAAG,SAAS,EACxB,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,QAAQ,EACR,GAAG,UAAU,EACd,EACD,GAAG;IAEH,OAAO,CACL,4DAEE,GAAG,EAAE,GAAG,iBACK,MAAM,EACnB,QAAQ,EAAE,QAAQ,KACd,UAAU;QAEd,kEAAgC,KAAK,CAAM;QAC1C,QAAQ,IAAI,CACX;YACE,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,WAAW,IAAC,IAAI,EAAE,EAAE,GAAI,GAAI;YAC7C,QAAQ,CACP,CACL;QACD,oBAAC,UAAU,IACT,EAAE,EAAC,oBAAoB,EACvB,IAAI,EAAC,oBAAoB,EACzB,KAAK,EAAE,UAAU,gBACL,UAAU,EACtB,KAAK,EAAE,YAAY,EACnB,QAAQ,SACR;QACF,oBAAC,MAAM,yCAEL,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,QAAQ,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jB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,aAAa,GAAG,EACjC,YAAY,EAAC,MAAM,IAElB,WAAW,CACL,CACJ,CACR,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,7 +1,7 @@
1
1
  import type { HTMLAttributes } from 'react';
2
2
  import type { PriceFormatter } from '../../atoms/Price/Price';
3
3
  import React from 'react';
4
- import { LinkProps, LinkElementType } from '../..';
4
+ import { LinkElementType, LinkProps } from '../..';
5
5
  interface ShippingSLA {
6
6
  /**
7
7
  * ShippingSLA carrier.
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
- import { ArrowSquareOut } from '../../assets';
3
- import { Icon, Link, Table, TableBody, TableCell, TableRow, InputField, Price, } from '../..';
2
+ import { Icon, InputField, Link, Price, Table, TableBody, TableCell, TableRow } from '../..';
4
3
  function ShippingSimulation({ testId = 'fs-shipping-simulation', formatter, title = "Shipping", inputLabel = "Postal Code", optionsLabel = "Shipping options", idkPostalCodeLinkProps, onInput, onSubmit, onClear, location, options = [], displayClearButton = false, errorMessage, postalCode, ...otherProps }) {
5
4
  const hasShippingOptions = !!options && options.length > 0;
6
5
  return (React.createElement("section", { "data-fs-shipping-simulation": true, "data-fs-shipping-simulation-empty": !hasShippingOptions ? "true" : "false", "data-testid": testId, ...otherProps },
@@ -9,7 +8,7 @@ function ShippingSimulation({ testId = 'fs-shipping-simulation', formatter, titl
9
8
  React.createElement(Link, { href: "/", "data-fs-shipping-simulation-link": true, size: "small", ...idkPostalCodeLinkProps }, idkPostalCodeLinkProps?.children ??
10
9
  React.createElement(React.Fragment, null,
11
10
  "I don't know my Postal Code",
12
- React.createElement(Icon, { component: React.createElement(ArrowSquareOut, null) }))),
11
+ React.createElement(Icon, { name: "ArrowSquareOut", width: 20, height: 20 }))),
13
12
  hasShippingOptions && (React.createElement(React.Fragment, null,
14
13
  React.createElement("header", { "data-fs-shipping-simulation-header": true },
15
14
  React.createElement("h3", { "data-fs-shipping-simulation-subtitle": true }, optionsLabel),
@@ -1 +1 @@
1
- {"version":3,"file":"ShippingSimulation.js","sourceRoot":"","sources":["../../../src/organisms/ShippingSimulation/ShippingSimulation.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAE7C,OAAO,EACL,IAAI,EACJ,IAAI,EACJ,KAAK,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,KAAK,GAGN,MAAM,OAAO,CAAA;AA8Ed,SAAS,kBAAkB,CAAC,EAC1B,MAAM,GAAG,wBAAwB,EACjC,SAAS,EACT,KAAK,GAAG,UAAU,EAClB,UAAU,GAAI,aAAa,EAC3B,YAAY,GAAG,kBAAkB,EACjC,sBAAsB,EACtB,OAAO,EACP,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,kBAAkB,GAAG,KAAK,EAC1B,YAAY,EACZ,UAAU,EACV,GAAG,UAAU,EACW;IAExB,MAAM,kBAAkB,GAAG,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,CAAA;IAE1D,OAAO,CACL,2GAEqC,CAAC,kBAAkB,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,iBAC5D,MAAM,KACf,UAAU;QAEd,yEACG,KAAK,CACH;QAEL,oBAAC,UAAU,IACT,UAAU,QACV,KAAK,EAAE,YAAY,EACnB,EAAE,EAAE,GAAG,MAAM,cAAc,EAC3B,KAAK,EAAE,UAAU,EACjB,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,EACpC,QAAQ,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,EAAE,EAC5B,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE,EAAE,EAC1B,kBAAkB,EAAE,kBAAkB,GACtC;QAEF,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,4CAAkC,IAAI,EAAC,OAAO,KAAK,sBAAsB,IAEnF,sBAAsB,EAAE,QAAQ;YAChC;gBACG,6BAA6B;gBAC9B,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,cAAc,OAAG,GAAI,CACtC,CAEA;QAEN,kBAAkB,IAAI,CACrB;YACE;gBACE,4EAA0C,YAAY,CAAM;gBAC5D,2EACG,QAAQ,CACP,CACG;YAET,oBAAC,KAAK;gBACJ,oBAAC,SAAS,QACP,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,oBAAC,QAAQ,IAAC,GAAG,EAAE,MAAM,CAAC,OAAO;oBAC3B,oBAAC,SAAS,IAAC,KAAK,EAAC,MAAM,IAAE,MAAM,CAAC,OAAO,CAAa;oBACpD,oBAAC,SAAS,QAAE,MAAM,CAAC,kBAAkB,CAAa;oBAClD,oBAAC,SAAS,IAAC,KAAK,EAAC,OAAO,IACrB,MAAM,CAAC,KAAK,IAAI,CACf,oBAAC,KAAK,IACJ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,MAAM,EAAC,OAAO,GACd,CACH,CACS,CACH,CACZ,CAAC,CACQ,CACN,CACP,CACJ,CACO,CACX,CAAA;AACH,CAAC;AAED,eAAe,kBAAkB,CAAA"}
1
+ {"version":3,"file":"ShippingSimulation.js","sourceRoot":"","sources":["../../../src/organisms/ShippingSimulation/ShippingSimulation.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EACL,IAAI,EAAE,UAAU,EAAE,IAAI,EAA8B,KAAK,EAAE,KAAK,EAChE,SAAS,EACT,SAAS,EACT,QAAQ,EACT,MAAM,OAAO,CAAA;AA8Ed,SAAS,kBAAkB,CAAC,EAC1B,MAAM,GAAG,wBAAwB,EACjC,SAAS,EACT,KAAK,GAAG,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CAAC,CACvB,oBAAC,QAAQ,IAAC,GAAG,EAAE,MAAM,CAAC,OAAO;oBAC3B,oBAAC,SAAS,IAAC,KAAK,EAAC,MAAM,IAAE,MAAM,CAAC,OAAO,CAAa;oBACpD,oBAAC,SAAS,QAAE,MAAM,CAAC,kBAAkB,CAAa;oBAClD,oBAAC,SAAS,IAAC,KAAK,EAAC,OAAO,IACrB,MAAM,CAAC,KAAK,IAAI,CACf,oBAAC,KAAK,IACJ,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,MAAM,EAAC,OAAO,GACd,CACH,CACS,CACH,CACZ,CAAC,CACQ,CACN,CACP,CACJ,CACO,CACX,CAAA;AACH,CAAC;AAED,eAAe,kBAAkB,CAAA"}
@@ -1,6 +1,6 @@
1
- import { HTMLAttributes } from 'react';
2
1
  import type { ReactNode } from 'react';
3
- import type { IconButtonProps } from '../../';
2
+ import { HTMLAttributes } from 'react';
3
+ import { IconButtonProps } from '../../';
4
4
  export interface SlideOverHeaderProps extends Omit<HTMLAttributes<HTMLDivElement>, 'title'> {
5
5
  /**
6
6
  * A react component to be used as the title in the header.
@@ -1,10 +1,9 @@
1
1
  import React from 'react';
2
- import { X } from '../../assets';
3
- import { IconButton } from '../../';
2
+ import { Icon, IconButton } from '../../';
4
3
  const SlideOverHeader = ({ children, closeBtnProps = {}, onClose, }) => {
5
4
  return (React.createElement("header", { "data-fs-slide-over-header": true },
6
5
  children,
7
- React.createElement(IconButton, { "data-fs-slide-over-header-icon": true, "aria-label": "Close", icon: React.createElement(X, null), onClick: onClose, ...closeBtnProps })));
6
+ React.createElement(IconButton, { "data-fs-slide-over-header-icon": true, "aria-label": "Close", icon: React.createElement(Icon, { name: "X" }), onClick: onClose, ...closeBtnProps })));
8
7
  };
9
8
  export default SlideOverHeader;
10
9
  //# sourceMappingURL=SlideOverHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SlideOverHeader.js","sourceRoot":"","sources":["../../../src/organisms/SlideOver/SlideOverHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAE7C,OAAO,EAAE,CAAC,EAAE,MAAM,cAAc,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAmBnC,MAAM,eAAe,GAAG,CAAC,EACvB,QAAQ,EACR,aAAa,GAAG,EAAE,EAClB,OAAO,GACc,EAAE,EAAE;IACzB,OAAO,CACL;QACG,QAAQ;QACT,oBAAC,UAAU,0DAEE,OAAO,EAClB,IAAI,EAAE,oBAAC,CAAC,OAAG,EACX,OAAO,EAAE,OAAO,KACZ,aAAa,GACjB,CACK,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
1
+ {"version":3,"file":"SlideOverHeader.js","sourceRoot":"","sources":["../../../src/organisms/SlideOver/SlideOverHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAyB,MAAM,OAAO,CAAA;AAC7C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAmB,MAAM,QAAQ,CAAA;AAkB1D,MAAM,eAAe,GAAG,CAAC,EACvB,QAAQ,EACR,aAAa,GAAG,EAAE,EAClB,OAAO,GACc,EAAE,EAAE;IACzB,OAAO,CACL;QACG,QAAQ;QACT,oBAAC,UAAU,0DAEE,OAAO,EAClB,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,GAAG,GAAG,EACvB,OAAO,EAAE,OAAO,KACZ,aAAa,GACjB,CACK,CACV,CAAA;AACH,CAAC,CAAA;AAED,eAAe,eAAe,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "2.0.96-alpha.0",
3
+ "version": "2.0.101-alpha.0",
4
4
  "module": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "author": "Emerson Laurentino @emersonlaurentino",
@@ -30,5 +30,5 @@
30
30
  "node": "16.18.0",
31
31
  "yarn": "1.19.1"
32
32
  },
33
- "gitHead": "00cc318de2c1c0e10c80c1ff9e26717cef277a1b"
33
+ "gitHead": "b7378bff2215b1edab942092e8c4faffbe9b1572"
34
34
  }
@@ -1,6 +1,6 @@
1
- import type { ReactNode, ButtonHTMLAttributes } from 'react'
1
+ import type { ButtonHTMLAttributes, ReactNode } from 'react'
2
2
  import React, { forwardRef } from 'react'
3
- import { Icon, Loader } from '../../'
3
+ import { Loader } from '../../'
4
4
 
5
5
  export type Variant = 'primary' | 'secondary' | 'tertiary'
6
6
  export type Size = 'small' | 'regular'
@@ -81,9 +81,9 @@ const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(
81
81
  />
82
82
  </p>
83
83
  )}
84
- {icon && iconPosition === 'left' && <Icon component={icon} />}
84
+ {React.isValidElement(icon) && iconPosition === 'left' && <span data-fs-button-icon>{icon}</span>}
85
85
  <span>{children}</span>
86
- {icon && iconPosition === 'right' && <Icon component={icon} />}
86
+ {React.isValidElement(icon) && iconPosition === 'right' && <span data-fs-button-icon>{icon}</span>}
87
87
  </button>
88
88
  )
89
89
  })