@faststore/components 2.0.145-alpha.0 → 2.0.151-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.
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { Button, Icon } from '../../';
2
+ import { Button } from '../../';
3
3
  function BuyButton({ testId = 'fs-buy-button', icon, children, ...otherProps }) {
4
- return (React.createElement(Button, { "data-fs-buy-button": true, icon: React.createElement(Icon, { name: "ShoppingCart" }), iconPosition: "left", "data-testid": testId, ...otherProps }, children));
4
+ return (React.createElement(Button, { "data-fs-buy-button": true, icon: icon, iconPosition: "left", "data-testid": testId, ...otherProps }, children));
5
5
  }
6
6
  export default BuyButton;
7
7
  //# sourceMappingURL=BuyButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BuyButton.js","sourceRoot":"","sources":["../../../src/molecules/BuyButton/BuyButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAA;AAIrC,SAAS,SAAS,CAAC,EACjB,MAAM,GAAG,eAAe,EACxB,IAAI,EACJ,QAAQ,EACR,GAAG,UAAU,EACE;IACf,OAAO,CACL,oBAAC,MAAM,gCAEL,IAAI,EAAE,oBAAC,IAAI,IAAC,IAAI,EAAC,cAAc,GAAG,EAClC,YAAY,EAAC,MAAM,iBACN,MAAM,KACf,UAAU,IAEb,QAAQ,CACF,CACV,CAAA;AACH,CAAC;AAED,eAAe,SAAS,CAAA"}
1
+ {"version":3,"file":"BuyButton.js","sourceRoot":"","sources":["../../../src/molecules/BuyButton/BuyButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAK/B,SAAS,SAAS,CAAC,EACjB,MAAM,GAAG,eAAe,EACxB,IAAI,EACJ,QAAQ,EACR,GAAG,UAAU,EACE;IACf,OAAO,CACL,oBAAC,MAAM,gCAEL,IAAI,EAAE,IAAI,EACV,YAAY,EAAC,MAAM,iBACN,MAAM,KACf,UAAU,IAEb,QAAQ,CACF,CACV,CAAA;AACH,CAAC;AAED,eAAe,SAAS,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "2.0.145-alpha.0",
3
+ "version": "2.0.151-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": "4b7a6bd07c48ec9a59fff5ed8dde6a63f96aa43e"
33
+ "gitHead": "6e3e406c91c7dd87beff20ddf090f4ad724b3a7d"
34
34
  }
@@ -1,7 +1,7 @@
1
1
  import React from 'react'
2
2
 
3
+ import { Button } from '../../'
3
4
  import type { ButtonProps } from '../../'
4
- import { Button, Icon } from '../../'
5
5
 
6
6
  type BuyButtonProps = ButtonProps
7
7
 
@@ -14,7 +14,7 @@ function BuyButton({
14
14
  return (
15
15
  <Button
16
16
  data-fs-buy-button
17
- icon={<Icon name="ShoppingCart" />}
17
+ icon={icon}
18
18
  iconPosition="left"
19
19
  data-testid={testId}
20
20
  {...otherProps}