@faststore/components 2.0.142-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.
- package/dist/molecules/BuyButton/BuyButton.js +2 -2
- package/dist/molecules/BuyButton/BuyButton.js.map +1 -1
- package/dist/molecules/CheckboxField/CheckboxField.d.ts +2 -2
- package/package.json +2 -2
- package/src/molecules/BuyButton/BuyButton.tsx +2 -2
- package/src/molecules/CheckboxField/CheckboxField.tsx +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button
|
|
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:
|
|
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;
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export
|
|
2
|
+
export interface CheckboxFieldProps {
|
|
3
3
|
/**
|
|
4
4
|
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
5
5
|
*/
|
|
@@ -20,6 +20,6 @@ export type CheckboxFieldProps = {
|
|
|
20
20
|
* Identify checkbox in the same group.
|
|
21
21
|
*/
|
|
22
22
|
name?: string;
|
|
23
|
-
}
|
|
23
|
+
}
|
|
24
24
|
declare const CheckboxField: React.ForwardRefExoticComponent<CheckboxFieldProps & React.RefAttributes<HTMLDivElement>>;
|
|
25
25
|
export default CheckboxField;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/components",
|
|
3
|
-
"version": "2.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": "
|
|
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={
|
|
17
|
+
icon={icon}
|
|
18
18
|
iconPosition="left"
|
|
19
19
|
data-testid={testId}
|
|
20
20
|
{...otherProps}
|
|
@@ -2,7 +2,7 @@ import React, { forwardRef } from 'react'
|
|
|
2
2
|
import Checkbox from '../../atoms/Checkbox'
|
|
3
3
|
import Label from '../../atoms/Label'
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export interface CheckboxFieldProps {
|
|
6
6
|
/**
|
|
7
7
|
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
8
8
|
*/
|