@faststore/components 2.0.9-alpha.0 → 2.0.10-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.
- package/CHANGELOG.md +9 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/molecules/BuyButton/BuyButton.d.ts +5 -0
- package/dist/molecules/BuyButton/BuyButton.js +10 -0
- package/dist/molecules/BuyButton/BuyButton.js.map +1 -0
- package/dist/molecules/BuyButton/index.d.ts +1 -0
- package/dist/molecules/BuyButton/index.js +2 -0
- package/dist/molecules/BuyButton/index.js.map +1 -0
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/molecules/BuyButton/BuyButton.tsx +18 -0
- package/src/molecules/BuyButton/index.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.0.10-alpha.0](https://github.com/vtex/faststore/compare/v2.0.9-alpha.0...v2.0.10-alpha.0) (2022-12-12)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Adds `ButtonBuy` component ([#1551](https://github.com/vtex/faststore/issues/1551)) ([cf48bc8](https://github.com/vtex/faststore/commit/cf48bc803f0537e1a32eb87ff18e8328646939a5))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [2.0.9-alpha.0](https://github.com/vtex/faststore/compare/v2.0.8-alpha.0...v2.0.9-alpha.0) (2022-12-12)
|
|
7
16
|
|
|
8
17
|
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { default as Price } from './atoms/Price';
|
|
|
16
16
|
export type { PriceProps } from './atoms/Price';
|
|
17
17
|
export { default as Radio } from './atoms/Radio';
|
|
18
18
|
export type { RadioProps } from './atoms/Radio';
|
|
19
|
+
export { default as BuyButton } from './molecules/BuyButton';
|
|
19
20
|
export { default as CheckboxField } from './molecules/CheckboxField';
|
|
20
21
|
export type { CheckboxFieldProps } from './molecules/CheckboxField';
|
|
21
22
|
export { default as IconButton } from './molecules/IconButton';
|
package/dist/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export { default as Overlay } from './atoms/Overlay';
|
|
|
9
9
|
export { default as Price } from './atoms/Price';
|
|
10
10
|
export { default as Radio } from './atoms/Radio';
|
|
11
11
|
// Molecules
|
|
12
|
+
export { default as BuyButton } from './molecules/BuyButton';
|
|
12
13
|
export { default as CheckboxField } from './molecules/CheckboxField';
|
|
13
14
|
export { default as IconButton } from './molecules/IconButton';
|
|
14
15
|
export { default as DiscountBadge } from './molecules/DiscountBadge';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAElD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAEtD,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,cAAc,CAAA;AAE9C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAEpD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAGhD,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,aAAa,EA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AAM,2BAA2B,CAAA;AAEpE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,wBAAwB,CAAA;AAE9D,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button, Icon } from '../../index';
|
|
3
|
+
import { ShoppingCart } from '../../assets';
|
|
4
|
+
function BuyButton({ icon, children, ...otherProps }) {
|
|
5
|
+
return (React.createElement(Button, { "data-fs-buy-button": true, ...otherProps },
|
|
6
|
+
React.createElement(Icon, { component: React.createElement(ShoppingCart, null) }),
|
|
7
|
+
children));
|
|
8
|
+
}
|
|
9
|
+
export default BuyButton;
|
|
10
|
+
//# sourceMappingURL=BuyButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,IAAI,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAI3C,SAAS,SAAS,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,UAAU,EAAS;IACzD,OAAO,CACL,oBAAC,MAAM,mCAAwB,UAAU;QACvC,oBAAC,IAAI,IAAC,SAAS,EAAE,oBAAC,YAAY,OAAG,GAAI;QACpC,QAAQ,CACF,CACV,CAAA;AACH,CAAC;AAED,eAAe,SAAS,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BuyButton';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/BuyButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10-alpha.0",
|
|
4
4
|
"module": "dist/index.js",
|
|
5
5
|
"typings": "dist/index.d.ts",
|
|
6
6
|
"author": "Emerson Laurentino @emersonlaurentino",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"node": "16.18.0",
|
|
29
29
|
"yarn": "1.19.1"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "640305492dc03e55d3df05de18bcca8587d562fc"
|
|
32
32
|
}
|
package/src/index.ts
CHANGED
|
@@ -19,6 +19,7 @@ export { default as Radio } from './atoms/Radio'
|
|
|
19
19
|
export type { RadioProps } from './atoms/Radio'
|
|
20
20
|
|
|
21
21
|
// Molecules
|
|
22
|
+
export { default as BuyButton } from './molecules/BuyButton'
|
|
22
23
|
export { default as CheckboxField } from './molecules/CheckboxField'
|
|
23
24
|
export type { CheckboxFieldProps } from './molecules/CheckboxField'
|
|
24
25
|
export { default as IconButton } from './molecules/IconButton'
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
|
|
3
|
+
import { Button, Icon } from '../../index'
|
|
4
|
+
import type { ButtonProps } from '../../index'
|
|
5
|
+
import { ShoppingCart } from '../../assets'
|
|
6
|
+
|
|
7
|
+
type Props = ButtonProps
|
|
8
|
+
|
|
9
|
+
function BuyButton({ icon, children, ...otherProps }: Props) {
|
|
10
|
+
return (
|
|
11
|
+
<Button data-fs-buy-button {...otherProps}>
|
|
12
|
+
<Icon component={<ShoppingCart />} />
|
|
13
|
+
{children}
|
|
14
|
+
</Button>
|
|
15
|
+
)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export default BuyButton
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BuyButton'
|