@faststore/components 2.0.48-alpha.0 → 2.0.50-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/index.d.ts CHANGED
@@ -43,6 +43,8 @@ export { default as LinkButton } from './molecules/LinkButton';
43
43
  export type { LinkButtonProps } from './molecules/LinkButton';
44
44
  export { default as RadioField } from './molecules/RadioField';
45
45
  export type { RadioFieldProps } from './molecules/RadioField';
46
+ export { default as RadioGroup, RadioOption, } from './molecules/RadioGroup';
47
+ export type { RadioGroupProps, RadioOptionProps, } from './molecules/RadioGroup';
46
48
  export { default as Rating } from './molecules/Rating';
47
49
  export type { RatingProps } from './molecules/Rating';
48
50
  export { default as SelectField } from './molecules/SelectField';
package/dist/index.js CHANGED
@@ -25,6 +25,7 @@ export { default as Dropdown, DropdownButton, DropdownItem, DropdownMenu, } from
25
25
  export { default as InputField } from './molecules/InputField';
26
26
  export { default as LinkButton } from './molecules/LinkButton';
27
27
  export { default as RadioField } from './molecules/RadioField';
28
+ export { default as RadioGroup, RadioOption, } from './molecules/RadioGroup';
28
29
  export { default as Rating } from './molecules/Rating';
29
30
  export { default as SelectField } from './molecules/SelectField';
30
31
  export { Table, TableBody, TableCell, TableFooter, TableHead, TableRow, } from './molecules/Table';
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,SAAS;AACT,cAAc,UAAU,CAAA;AAExB,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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T,SAAS,EACT,WAAW,EACX,SAAS,EACT,QAAQ,GACT,MAAM,mBAAmB,CAAA;AAS1B,OAAO,EAAE,OAAO,IAAI,GAAG,EAAE,MAAM,iBAAiB,CAAA;AAEhD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEtD,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAA;AAEhE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAG1E,YAAY;AACZ,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { PropsWithChildren } from 'react';
2
+ import { RadioGroupContext } from './useRadioGroup';
3
+ export type RadioGroupProps = PropsWithChildren<RadioGroupContext>;
4
+ declare const RadioGroup: ({ name, onChange, children, selectedValue, }: RadioGroupProps) => JSX.Element;
5
+ export default RadioGroup;
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { RadioGroupContext } from './useRadioGroup';
3
+ const RadioGroup = ({ name, onChange, children, selectedValue, }) => {
4
+ const contextValues = React.useMemo(() => {
5
+ return { name, selectedValue, onChange };
6
+ }, [name, selectedValue, onChange]);
7
+ return (React.createElement(RadioGroupContext.Provider, { value: contextValues }, children));
8
+ };
9
+ export default RadioGroup;
10
+ //# sourceMappingURL=RadioGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../src/molecules/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAInD,MAAM,UAAU,GAAG,CAAC,EAClB,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,aAAa,GACG,EAAE,EAAE;IACpB,MAAM,aAAa,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,EAAE;QACvC,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,CAAA;IAC1C,CAAC,EAAE,CAAC,IAAI,EAAE,aAAa,EAAE,QAAQ,CAAC,CAAC,CAAA;IAEnC,OAAO,CACL,oBAAC,iBAAiB,CAAC,QAAQ,IAAC,KAAK,EAAE,aAAa,IAC7C,QAAQ,CACkB,CAC9B,CAAA;AACH,CAAC,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -0,0 +1,19 @@
1
+ import type { InputHTMLAttributes } from 'react';
2
+ import React from 'react';
3
+ export interface RadioOptionProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress,
6
+ * testing-library, and jest).
7
+ */
8
+ testId?: string;
9
+ /**
10
+ * Attribute to set aria-label option as required.
11
+ */
12
+ label: string;
13
+ /**
14
+ * Value to be emitted when radio is clicked.
15
+ */
16
+ value: string | number;
17
+ }
18
+ declare const RadioOption: React.ForwardRefExoticComponent<RadioOptionProps & React.RefAttributes<HTMLInputElement>>;
19
+ export default RadioOption;
@@ -0,0 +1,11 @@
1
+ import React, { forwardRef } from 'react';
2
+ import Radio from '../../atoms/Radio';
3
+ import { useRadioGroup } from './useRadioGroup';
4
+ const RadioOption = forwardRef(function RadioOption({ label, value, children, testId = 'fs-radio-group-option', ...otherProps }, ref) {
5
+ const { name, selectedValue, onChange } = useRadioGroup();
6
+ return (React.createElement("label", { "aria-label": label, "data-fs-radio-group-option": true },
7
+ React.createElement(Radio, { "data-fs-radio-option-item": true, ref: ref, name: name, checked: value === selectedValue, onChange: onChange, value: value, testId: testId, ...otherProps }),
8
+ children));
9
+ });
10
+ export default RadioOption;
11
+ //# sourceMappingURL=RadioOption.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RadioOption.js","sourceRoot":"","sources":["../../../src/molecules/RadioGroup/RadioOption.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,KAAK,MAAM,mBAAmB,CAAA;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAmB/C,MAAM,WAAW,GAAG,UAAU,CAC5B,SAAS,WAAW,CAClB,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,GAAG,uBAAuB,EAAE,GAAG,UAAU,EAAE,EAC3E,GAAG;IAEH,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,aAAa,EAAE,CAAA;IAEzD,OAAO,CACL,6CAAmB,KAAK;QACtB,oBAAC,KAAK,uCAEJ,GAAG,EAAE,GAAG,EACR,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,KAAK,KAAK,aAAa,EAChC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,KACV,UAAU,GACd;QACD,QAAQ,CACH,CACT,CAAA;AACH,CAAC,CACF,CAAA;AAED,eAAe,WAAW,CAAA"}
@@ -0,0 +1,4 @@
1
+ export { default } from './RadioGroup';
2
+ export type { RadioGroupProps } from './RadioGroup';
3
+ export { default as RadioOption } from './RadioOption';
4
+ export type { RadioOptionProps } from './RadioOption';
@@ -0,0 +1,3 @@
1
+ export { default } from './RadioGroup';
2
+ export { default as RadioOption } from './RadioOption';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/molecules/RadioGroup/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,17 @@
1
+ import type { ChangeEventHandler } from 'react';
2
+ export interface RadioGroupContext {
3
+ /**
4
+ * Name to link children by context.
5
+ */
6
+ name: string;
7
+ /**
8
+ * Value of checked child.
9
+ */
10
+ selectedValue?: string | number;
11
+ /**
12
+ * Function that is triggered when any children is checked.
13
+ */
14
+ onChange?: ChangeEventHandler<HTMLInputElement>;
15
+ }
16
+ export declare const RadioGroupContext: import("react").Context<RadioGroupContext | undefined>;
17
+ export declare function useRadioGroup(): RadioGroupContext;
@@ -0,0 +1,10 @@
1
+ import { createContext, useContext } from 'react';
2
+ export const RadioGroupContext = createContext(undefined);
3
+ export function useRadioGroup() {
4
+ const context = useContext(RadioGroupContext);
5
+ if (!context) {
6
+ throw new Error(`useRadioOption hook cannot be used outside the RadioGroup context`);
7
+ }
8
+ return context;
9
+ }
10
+ //# sourceMappingURL=useRadioGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRadioGroup.js","sourceRoot":"","sources":["../../../src/molecules/RadioGroup/useRadioGroup.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAiBjD,MAAM,CAAC,MAAM,iBAAiB,GAAG,aAAa,CAC5C,SAAS,CACV,CAAA;AAED,MAAM,UAAU,aAAa;IAC3B,MAAM,OAAO,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAE7C,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CACb,mEAAmE,CACpE,CAAA;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/components",
3
- "version": "2.0.48-alpha.0",
3
+ "version": "2.0.50-alpha.0",
4
4
  "module": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "author": "Emerson Laurentino @emersonlaurentino",
@@ -21,8 +21,8 @@
21
21
  "src"
22
22
  ],
23
23
  "devDependencies": {
24
- "@faststore/eslint-config": "^2.0.48-alpha.0",
25
- "@faststore/shared": "^2.0.48-alpha.0",
24
+ "@faststore/eslint-config": "^2.0.49-alpha.0",
25
+ "@faststore/shared": "^2.0.49-alpha.0",
26
26
  "eslint": "7.32.0",
27
27
  "typescript": "^4.8.4"
28
28
  },
@@ -30,5 +30,5 @@
30
30
  "node": "16.18.0",
31
31
  "yarn": "1.19.1"
32
32
  },
33
- "gitHead": "13071d1410c4d42df70946ba27631549d2544d85"
33
+ "gitHead": "ff4612f903a6be4e99df0b614a032b21ad7dc711"
34
34
  }
package/src/index.ts CHANGED
@@ -68,6 +68,14 @@ export { default as LinkButton } from './molecules/LinkButton'
68
68
  export type { LinkButtonProps } from './molecules/LinkButton'
69
69
  export { default as RadioField } from './molecules/RadioField'
70
70
  export type { RadioFieldProps } from './molecules/RadioField'
71
+ export {
72
+ default as RadioGroup,
73
+ RadioOption,
74
+ } from './molecules/RadioGroup'
75
+ export type {
76
+ RadioGroupProps,
77
+ RadioOptionProps,
78
+ } from './molecules/RadioGroup'
71
79
  export { default as Rating } from './molecules/Rating'
72
80
  export type { RatingProps } from './molecules/Rating'
73
81
  export { default as SelectField } from './molecules/SelectField'
@@ -0,0 +1,25 @@
1
+ import type { PropsWithChildren } from 'react'
2
+ import React from 'react'
3
+
4
+ import { RadioGroupContext } from './useRadioGroup'
5
+
6
+ export type RadioGroupProps = PropsWithChildren<RadioGroupContext>
7
+
8
+ const RadioGroup = ({
9
+ name,
10
+ onChange,
11
+ children,
12
+ selectedValue,
13
+ }: RadioGroupProps) => {
14
+ const contextValues = React.useMemo(() => {
15
+ return { name, selectedValue, onChange }
16
+ }, [name, selectedValue, onChange])
17
+
18
+ return (
19
+ <RadioGroupContext.Provider value={contextValues}>
20
+ {children}
21
+ </RadioGroupContext.Provider>
22
+ )
23
+ }
24
+
25
+ export default RadioGroup
@@ -0,0 +1,49 @@
1
+ import type { InputHTMLAttributes } from 'react'
2
+ import React, { forwardRef } from 'react'
3
+
4
+ import Radio from '../../atoms/Radio'
5
+ import { useRadioGroup } from './useRadioGroup'
6
+
7
+ export interface RadioOptionProps
8
+ extends Omit<InputHTMLAttributes<HTMLInputElement>, 'type'> {
9
+ /**
10
+ * ID to find this component in testing tools (e.g.: cypress,
11
+ * testing-library, and jest).
12
+ */
13
+ testId?: string
14
+ /**
15
+ * Attribute to set aria-label option as required.
16
+ */
17
+ label: string
18
+ /**
19
+ * Value to be emitted when radio is clicked.
20
+ */
21
+ value: string | number
22
+ }
23
+
24
+ const RadioOption = forwardRef<HTMLInputElement, RadioOptionProps>(
25
+ function RadioOption(
26
+ { label, value, children, testId = 'fs-radio-group-option', ...otherProps },
27
+ ref
28
+ ) {
29
+ const { name, selectedValue, onChange } = useRadioGroup()
30
+
31
+ return (
32
+ <label aria-label={label} data-fs-radio-group-option>
33
+ <Radio
34
+ data-fs-radio-option-item
35
+ ref={ref}
36
+ name={name}
37
+ checked={value === selectedValue}
38
+ onChange={onChange}
39
+ value={value}
40
+ testId={testId}
41
+ {...otherProps}
42
+ />
43
+ {children}
44
+ </label>
45
+ )
46
+ }
47
+ )
48
+
49
+ export default RadioOption
@@ -0,0 +1,5 @@
1
+ export { default } from './RadioGroup'
2
+ export type { RadioGroupProps } from './RadioGroup'
3
+
4
+ export { default as RadioOption } from './RadioOption'
5
+ export type { RadioOptionProps } from './RadioOption'
@@ -0,0 +1,33 @@
1
+ import type { ChangeEventHandler } from 'react'
2
+ import { createContext, useContext } from 'react'
3
+
4
+ export interface RadioGroupContext {
5
+ /**
6
+ * Name to link children by context.
7
+ */
8
+ name: string
9
+ /**
10
+ * Value of checked child.
11
+ */
12
+ selectedValue?: string | number
13
+ /**
14
+ * Function that is triggered when any children is checked.
15
+ */
16
+ onChange?: ChangeEventHandler<HTMLInputElement>
17
+ }
18
+
19
+ export const RadioGroupContext = createContext<RadioGroupContext | undefined>(
20
+ undefined
21
+ )
22
+
23
+ export function useRadioGroup() {
24
+ const context = useContext(RadioGroupContext)
25
+
26
+ if (!context) {
27
+ throw new Error(
28
+ `useRadioOption hook cannot be used outside the RadioGroup context`
29
+ )
30
+ }
31
+
32
+ return context
33
+ }
package/CHANGELOG.md DELETED
@@ -1,321 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- ## 2.0.48-alpha.0 (2023-01-13)
7
-
8
-
9
- ### Features
10
-
11
- * Adds `Alert` Component ([#1590](https://github.com/vtex/faststore/issues/1590)) ([6e1cc00](https://github.com/vtex/faststore/commit/6e1cc004a5f3ae8674798fe6a36fd2a5d1451d7c))
12
-
13
-
14
-
15
- ## [2.0.47-alpha.0](https://github.com/vtex/faststore/compare/v2.0.46-alpha.0...v2.0.47-alpha.0) (2023-01-13)
16
-
17
-
18
- ### Features
19
-
20
- * Adds `QuantitySelector` component ([#1597](https://github.com/vtex/faststore/issues/1597)) ([a587155](https://github.com/vtex/faststore/commit/a5871559a4a28754dd9868b7f85c92a5bde52917))
21
-
22
-
23
-
24
- ## [2.0.44-alpha.0](https://github.com/vtex/faststore/compare/v2.0.43-alpha.0...v2.0.44-alpha.0) (2023-01-11)
25
-
26
- **Note:** Version bump only for package @faststore/components
27
-
28
-
29
-
30
-
31
-
32
- ## [2.0.43-alpha.0](https://github.com/vtex/faststore/compare/v2.0.42-alpha.0...v2.0.43-alpha.0) (2023-01-11)
33
-
34
-
35
- ### Bug Fixes
36
-
37
- * revert table props and adds new props (types mismatch) ([#1601](https://github.com/vtex/faststore/issues/1601)) ([e791a3f](https://github.com/vtex/faststore/commit/e791a3f6cdd6f3382997bce1d9f105531c05ddbd))
38
-
39
-
40
-
41
- ## [2.0.42-alpha.0](https://github.com/vtex/faststore/compare/v2.0.41-alpha.0...v2.0.42-alpha.0) (2023-01-10)
42
-
43
-
44
- ### Chores
45
-
46
- * `Table` component's improvements ([#1592](https://github.com/vtex/faststore/issues/1592)) ([176a710](https://github.com/vtex/faststore/commit/176a710cf8d2917527cb4f99a8ddc956d841ae76))
47
-
48
-
49
-
50
- ## [2.0.41-alpha.0](https://github.com/vtex/faststore/compare/v2.0.40-alpha.0...v2.0.41-alpha.0) (2023-01-10)
51
-
52
-
53
- ### Features
54
-
55
- * Adds `Dropdown` component ([#1572](https://github.com/vtex/faststore/issues/1572)) ([edfe557](https://github.com/vtex/faststore/commit/edfe55797d51049b137c1d8c0d648f36d3ebf980))
56
-
57
-
58
-
59
- ## [2.0.39-alpha.0](https://github.com/vtex/faststore/compare/v2.0.38-alpha.0...v2.0.39-alpha.0) (2023-01-09)
60
-
61
-
62
- ### Bug Fixes
63
-
64
- * Edit TableProps ([#1594](https://github.com/vtex/faststore/issues/1594)) ([dcf7970](https://github.com/vtex/faststore/commit/dcf797001c09d1abc685fcbd7ec8aa4bdc7a7bcc))
65
-
66
-
67
-
68
- ## [2.0.38-alpha.0](https://github.com/vtex/faststore/compare/v2.0.37-alpha.0...v2.0.38-alpha.0) (2023-01-09)
69
-
70
-
71
- ### Features
72
-
73
- * Adds `Accordion` component ([#1567](https://github.com/vtex/faststore/issues/1567)) ([0173e20](https://github.com/vtex/faststore/commit/0173e20b162d53d8faae0791e08110f335c6d6f6))
74
-
75
-
76
-
77
- ## 2.0.37-alpha.0 (2023-01-06)
78
-
79
-
80
- ### Chores
81
-
82
- * remove styles ([#1589](https://github.com/vtex/faststore/issues/1589)) ([7a21b1c](https://github.com/vtex/faststore/commit/7a21b1cfbbd7cee190299365087984c33cc8d4e2))
83
-
84
-
85
-
86
- ## 2.0.34-alpha.0 (2023-01-04)
87
-
88
-
89
- ### Chores
90
-
91
- * remove storybook ([#1586](https://github.com/vtex/faststore/issues/1586)) ([82dbfb3](https://github.com/vtex/faststore/commit/82dbfb3102850bfa1115547773f84a293a055c6b))
92
-
93
-
94
-
95
- ## 2.0.33-alpha.0 (2023-01-04)
96
-
97
-
98
- ### Bug Fixes
99
-
100
- * remove storybook from ui ([#1579](https://github.com/vtex/faststore/issues/1579)) ([682d5e4](https://github.com/vtex/faststore/commit/682d5e4290beb738685fcdc009772d04c0901278))
101
-
102
-
103
-
104
- ## 2.0.32-alpha.0 (2023-01-04)
105
-
106
-
107
- ### Bug Fixes
108
-
109
- * yarn lock ([#1578](https://github.com/vtex/faststore/issues/1578)) ([d07ebf2](https://github.com/vtex/faststore/commit/d07ebf26fef4518a3a1a1ffede34371d8866a07b))
110
-
111
-
112
-
113
- ## 2.0.31-alpha.0 (2023-01-03)
114
-
115
-
116
- ### Bug Fixes
117
-
118
- * turbo config ([0048756](https://github.com/vtex/faststore/commit/00487564d0aa2a4bee382574a40fa20431a8f0eb))
119
-
120
-
121
- ### Chores
122
-
123
- * lint ([#1576](https://github.com/vtex/faststore/issues/1576)) ([a9f5e2e](https://github.com/vtex/faststore/commit/a9f5e2e921a29af898e631380736ee1211aecc0d))
124
-
125
-
126
-
127
- ## 2.0.30-alpha.0 (2023-01-02)
128
-
129
-
130
- ### Documentation
131
-
132
- * cms ([#1573](https://github.com/vtex/faststore/issues/1573)) ([f540edd](https://github.com/vtex/faststore/commit/f540edd5e8c7ea10e8cd26b1c6f65b10ecce67c4))
133
-
134
-
135
-
136
- ## [2.0.29-alpha.0](https://github.com/vtex/faststore/compare/v2.0.28-alpha.0...v2.0.29-alpha.0) (2022-12-23)
137
-
138
-
139
- ### Bug Fixes
140
-
141
- * Adds Badge props to `DiscountBadge` + Fixes SelectField testId ([#1570](https://github.com/vtex/faststore/issues/1570)) ([b1513a5](https://github.com/vtex/faststore/commit/b1513a569235cb60bd3a1c6f16e24fd61d810017))
142
-
143
-
144
-
145
- ## [2.0.28-alpha.0](https://github.com/vtex/faststore/compare/v2.0.27-alpha.0...v2.0.28-alpha.0) (2022-12-23)
146
-
147
-
148
- ### Chores
149
-
150
- * Removes icons id ([#1571](https://github.com/vtex/faststore/issues/1571)) ([2e790fa](https://github.com/vtex/faststore/commit/2e790faa2ca37fc4f6f9f7c7796f79ceaf6a3f02))
151
-
152
-
153
-
154
- ## [2.0.27-alpha.0](https://github.com/vtex/faststore/compare/v2.0.26-alpha.0...v2.0.27-alpha.0) (2022-12-23)
155
-
156
-
157
- ### Features
158
-
159
- * Adds `Table` component ([#1554](https://github.com/vtex/faststore/issues/1554)) ([0ed5f45](https://github.com/vtex/faststore/commit/0ed5f455fa42cf3a02ae3dd0370759782caf6cdd))
160
-
161
-
162
-
163
- ## [2.0.24-alpha.0](https://github.com/vtex/faststore/compare/v2.0.23-alpha.0...v2.0.24-alpha.0) (2022-12-20)
164
-
165
-
166
- ### Chores
167
-
168
- * Review components docs ([#1557](https://github.com/vtex/faststore/issues/1557)) ([2da23a0](https://github.com/vtex/faststore/commit/2da23a0ffe2f201f7e6163ea3db8dea4de07afa8))
169
-
170
-
171
-
172
- ## [2.0.19-alpha.0](https://github.com/vtex/faststore/compare/v2.0.18-alpha.0...v2.0.19-alpha.0) (2022-12-16)
173
-
174
-
175
- ### Features
176
-
177
- * Adds `Hero` component ([#1556](https://github.com/vtex/faststore/issues/1556)) ([871f35c](https://github.com/vtex/faststore/commit/871f35cdcfc85d5ec0038dcc55a9aeedcc5ff546))
178
-
179
-
180
-
181
- ## [2.0.18-alpha.0](https://github.com/vtex/faststore/compare/v2.0.17-alpha.0...v2.0.18-alpha.0) (2022-12-15)
182
-
183
-
184
- ### Bug Fixes
185
-
186
- * 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)
187
-
188
-
189
-
190
- ## [2.0.17-alpha.0](https://github.com/vtex/faststore/compare/v2.0.16-alpha.0...v2.0.17-alpha.0) (2022-12-15)
191
-
192
-
193
- ### Features
194
-
195
- * Create `LinkButton` component ([#1558](https://github.com/vtex/faststore/issues/1558)) ([bbbebdb](https://github.com/vtex/faststore/commit/bbbebdb081f9c40315d8b661461e3b09a34b84b6))
196
-
197
-
198
-
199
- ## [2.0.16-alpha.0](https://github.com/vtex/faststore/compare/v2.0.15-alpha.0...v2.0.16-alpha.0) (2022-12-15)
200
-
201
-
202
- ### Features
203
-
204
- * Adds `Toggle` & `ToggleField` & `SROnly` components ([#1555](https://github.com/vtex/faststore/issues/1555)) ([b055c0a](https://github.com/vtex/faststore/commit/b055c0aa67291ad88e865b60e96b8a898a97db14))
205
-
206
-
207
-
208
- ## [2.0.15-alpha.0](https://github.com/vtex/faststore/compare/v2.0.14-alpha.0...v2.0.15-alpha.0) (2022-12-14)
209
-
210
-
211
- ### Features
212
-
213
- * Adds `List` component ([#1549](https://github.com/vtex/faststore/issues/1549)) ([55858fe](https://github.com/vtex/faststore/commit/55858fe39c254786e7c7a1e1dd3da96ed3be0d16))
214
-
215
-
216
-
217
- ## [2.0.14-alpha.0](https://github.com/vtex/faststore/compare/v2.0.13-alpha.0...v2.0.14-alpha.0) (2022-12-14)
218
-
219
-
220
- ### Features
221
-
222
- * Adds `Link` component ([#1543](https://github.com/vtex/faststore/issues/1543)) ([9c219eb](https://github.com/vtex/faststore/commit/9c219eba996fc6fec90edd1383a4abf8dbe0a7ef))
223
-
224
-
225
-
226
- ## [2.0.13-alpha.0](https://github.com/vtex/faststore/compare/v2.0.12-alpha.0...v2.0.13-alpha.0) (2022-12-14)
227
-
228
-
229
- ### Features
230
-
231
- * Adds `Select` and `SelectField` components ([#1547](https://github.com/vtex/faststore/issues/1547)) ([7c4beb0](https://github.com/vtex/faststore/commit/7c4beb085c893ad540e1a4440cc7b902fa36a75c))
232
-
233
-
234
-
235
- ## [2.0.10-alpha.0](https://github.com/vtex/faststore/compare/v2.0.9-alpha.0...v2.0.10-alpha.0) (2022-12-12)
236
-
237
-
238
- ### Features
239
-
240
- * Adds `ButtonBuy` component ([#1551](https://github.com/vtex/faststore/issues/1551)) ([cf48bc8](https://github.com/vtex/faststore/commit/cf48bc803f0537e1a32eb87ff18e8328646939a5))
241
-
242
-
243
-
244
- ## [2.0.9-alpha.0](https://github.com/vtex/faststore/compare/v2.0.8-alpha.0...v2.0.9-alpha.0) (2022-12-12)
245
-
246
-
247
- ### Features
248
-
249
- * Create `Price` component ([#1548](https://github.com/vtex/faststore/issues/1548)) ([2d7418a](https://github.com/vtex/faststore/commit/2d7418ad45f42cdb0174d45d7c4de5b6d6e27f60))
250
-
251
-
252
-
253
- ## [2.0.7-alpha.0](https://github.com/vtex/faststore/compare/v2.0.6-alpha.0...v2.0.7-alpha.0) (2022-12-09)
254
-
255
-
256
- ### Features
257
-
258
- * Adds `DiscountBadge` component ([#1546](https://github.com/vtex/faststore/issues/1546)) ([9b2e279](https://github.com/vtex/faststore/commit/9b2e27940ffa9b52c9a62541a07e1f593a0bcfb7)), closes [#313](https://github.com/vtex/faststore/issues/313)
259
-
260
-
261
-
262
- ## [2.0.6-alpha.0](https://github.com/vtex/faststore/compare/v2.0.5-alpha.0...v2.0.6-alpha.0) (2022-12-08)
263
-
264
-
265
- ### Features
266
-
267
- * Adds `Input` & `InputField` components ([#1545](https://github.com/vtex/faststore/issues/1545)) ([f89ec49](https://github.com/vtex/faststore/commit/f89ec4930dbcc7179f0fac484e16b0981540b6df))
268
-
269
-
270
-
271
- ## [2.0.5-alpha.0](https://github.com/vtex/faststore/compare/v2.0.4-alpha.0...v2.0.5-alpha.0) (2022-12-07)
272
-
273
-
274
- ### Features
275
-
276
- * `Overlay` Component. ([#1544](https://github.com/vtex/faststore/issues/1544)) ([dad6872](https://github.com/vtex/faststore/commit/dad6872654faaa4411d1f5949e5beab609e2ca36))
277
-
278
-
279
-
280
- ## [2.0.4-alpha.0](https://github.com/vtex/faststore/compare/v2.0.3-alpha.0...v2.0.4-alpha.0) (2022-12-07)
281
-
282
-
283
- ### Chores
284
-
285
- * config faststore ui ([#1495](https://github.com/vtex/faststore/issues/1495)) ([ed5aa8f](https://github.com/vtex/faststore/commit/ed5aa8f83ab3d929dd47f30b1e171240e1c3c459))
286
-
287
-
288
-
289
- ## 2.0.3-alpha.0 (2022-11-30)
290
-
291
-
292
- ### Chores
293
-
294
- * Change from `patch` to `prepatch` release (alpha) ([#1523](https://github.com/vtex/faststore/issues/1523)) ([2f2c5b7](https://github.com/vtex/faststore/commit/2f2c5b77d2d71f887dad64a9488fabc4e6a29e07))
295
-
296
-
297
-
298
- ## 1.12.20 (2022-10-26)
299
-
300
-
301
- ### Chores
302
-
303
- * git blame ignore modification by data-fs ([#1494](https://github.com/vtex/faststore/issues/1494)) ([783079e](https://github.com/vtex/faststore/commit/783079e7095b39270bbb60e79063b774056dc5d4))
304
-
305
-
306
-
307
- ## 1.12.19 (2022-10-25)
308
-
309
-
310
- ### Bug Fixes
311
-
312
- * yarn ([#1490](https://github.com/vtex/faststore/issues/1490)) ([52756b1](https://github.com/vtex/faststore/commit/52756b1ec66d9b70ae4899ed373a180749f8e5cd))
313
-
314
-
315
-
316
- ## [1.12.18](https://github.com/vtex/faststore/compare/v1.12.17...v1.12.18) (2022-10-25)
317
-
318
-
319
- ### Features
320
-
321
- * create the components packages ([#1489](https://github.com/vtex/faststore/issues/1489)) ([549805d](https://github.com/vtex/faststore/commit/549805df0d489aa768ed0a09413d0fcc569bdbd3))