@faststore/components 2.0.17-alpha.0 → 2.0.18-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 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.18-alpha.0](https://github.com/vtex/faststore/compare/v2.0.17-alpha.0...v2.0.18-alpha.0) (2022-12-15)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Starter's Integration tests ([#1559](https://github.com/vtex/faststore/issues/1559)) ([d597d98](https://github.com/vtex/faststore/commit/d597d981079448ca46588a8e32964c4e5dcc84f8)), closes [#323](https://github.com/vtex/faststore/issues/323)
12
+
13
+
14
+
6
15
  ## [2.0.17-alpha.0](https://github.com/vtex/faststore/compare/v2.0.16-alpha.0...v2.0.17-alpha.0) (2022-12-15)
7
16
 
8
17
 
@@ -1,10 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
- import Select from '../../atoms/Select';
3
- import Label from '../../atoms/Label';
2
+ import { Label, Select } from '../..';
4
3
  const SelectField = forwardRef(function SelectField({ id, label, options, testId = 'fs-select-field', ...otherProps }, ref) {
5
- return (React.createElement("div", { ref: ref, "data-fs-select-field": true, "data-testid": testId },
4
+ return (React.createElement("div", { ref: ref, "data-fs-select-field": true },
6
5
  React.createElement(Label, { "data-fs-select-field-label": true, htmlFor: id }, label),
7
- React.createElement(Select, { id: id, options: options, ...otherProps })));
6
+ React.createElement(Select, { id: id, options: options, "data-testid": testId, ...otherProps })));
8
7
  });
9
8
  export default SelectField;
10
9
  //# sourceMappingURL=SelectField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SelectField.js","sourceRoot":"","sources":["../../../src/molecules/SelectField/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,MAAM,MAAM,oBAAoB,CAAA;AAEvC,OAAO,KAAK,MAAM,mBAAmB,CAAA;AASrC,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,iBAAiB,EAAE,GAAG,UAAU,EAAE,EACjE,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG,+CAAoC,MAAM;QACrD,oBAAC,KAAK,wCAA4B,OAAO,EAAE,EAAE,IAAG,KAAK,CAAS;QAC9D,oBAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,KAAM,UAAU,GAAI,CAChD,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
1
+ {"version":3,"file":"SelectField.js","sourceRoot":"","sources":["../../../src/molecules/SelectField/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,OAAO,CAAA;AAUrC,MAAM,WAAW,GAAG,UAAU,CAG5B,SAAS,WAAW,CACpB,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,GAAG,iBAAiB,EAAE,GAAG,UAAU,EAAE,EACjE,GAAG;IAEH,OAAO,CACL,6BAAK,GAAG,EAAE,GAAG;QACX,oBAAC,KAAK,wCAA4B,OAAO,EAAE,EAAE,IAC1C,KAAK,CACA;QACR,oBAAC,MAAM,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,iBAAe,MAAM,KAAM,UAAU,GAAI,CACrE,CACP,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,eAAe,WAAW,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "2.0.17-alpha.0",
3
+ "version": "2.0.18-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": "63d93423c77df7aadbbd8ba8b5f9d39302e6fd3e"
31
+ "gitHead": "f6117ac7008ebb70368642c145bab4e1f18be831"
32
32
  }
@@ -1,8 +1,8 @@
1
1
  import React, { forwardRef } from 'react'
2
2
  import type { PropsWithChildren } from 'react'
3
- import Select from '../../atoms/Select'
4
- import type {SelectProps} from '../../atoms/Select'
5
- import Label from '../../atoms/Label'
3
+
4
+ import { Label, Select } from '../..'
5
+ import type { SelectProps } from '../../atoms/Select'
6
6
 
7
7
  export interface SelectFieldProps extends SelectProps {
8
8
  /**
@@ -11,18 +11,21 @@ export interface SelectFieldProps extends SelectProps {
11
11
  label: string
12
12
  }
13
13
 
14
- const SelectField = forwardRef<HTMLDivElement, PropsWithChildren<SelectFieldProps>>(
15
- function SelectField(
16
- { id, label, options, testId = 'fs-select-field', ...otherProps },
17
- ref
18
- ) {
19
- return (
20
- <div ref={ref} data-fs-select-field data-testid={testId}>
21
- <Label data-fs-select-field-label htmlFor={id}>{label}</Label>
22
- <Select id={id} options={options} {...otherProps} />
23
- </div>
24
- )
25
- }
26
- )
14
+ const SelectField = forwardRef<
15
+ HTMLDivElement,
16
+ PropsWithChildren<SelectFieldProps>
17
+ >(function SelectField(
18
+ { id, label, options, testId = 'fs-select-field', ...otherProps },
19
+ ref
20
+ ) {
21
+ return (
22
+ <div ref={ref} data-fs-select-field>
23
+ <Label data-fs-select-field-label htmlFor={id}>
24
+ {label}
25
+ </Label>
26
+ <Select id={id} options={options} data-testid={testId} {...otherProps} />
27
+ </div>
28
+ )
29
+ })
27
30
 
28
31
  export default SelectField