@faststore/ui 1.4.4 → 1.4.8

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,41 @@
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
+ ## 1.4.8 (2022-01-05)
7
+
8
+ **Note:** Version bump only for package @faststore/ui
9
+
10
+
11
+
12
+
13
+
14
+ ## 1.4.7 (2022-01-05)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * fix accessibility on storybook ([#1096](https://github.com/vtex/faststore/issues/1096)) ([55805b1](https://github.com/vtex/faststore/commit/55805b1b2cffd111ef64857321c20e0a001a93b2))
20
+
21
+
22
+
23
+
24
+
25
+ ## 1.4.6 (2022-01-05)
26
+
27
+ **Note:** Version bump only for package @faststore/ui
28
+
29
+
30
+
31
+
32
+
33
+ ## 1.4.5 (2022-01-04)
34
+
35
+ **Note:** Version bump only for package @faststore/ui
36
+
37
+
38
+
39
+
40
+
6
41
  ## 1.4.4 (2022-01-04)
7
42
 
8
43
 
@@ -1,7 +1,7 @@
1
1
  import type { ReactNode } from 'react';
2
2
  import React from 'react';
3
3
  import type { ButtonProps } from '../../atoms/Button';
4
- export interface Props extends Omit<ButtonProps, 'children'> {
4
+ export interface Props extends Omit<ButtonProps, 'children' | 'aria-label'> {
5
5
  /**
6
6
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
7
  */
@@ -10,6 +10,10 @@ export interface Props extends Omit<ButtonProps, 'children'> {
10
10
  * A React component that will be rendered as an icon.
11
11
  */
12
12
  icon: ReactNode;
13
+ /**
14
+ * Label to be required for accessibility.
15
+ */
16
+ 'aria-label': string;
13
17
  }
14
18
  declare const IconButton: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLButtonElement>>;
15
19
  export default IconButton;
@@ -10,7 +10,7 @@ export interface QuantitySelectorProps extends InputHTMLAttributes<HTMLDivElemen
10
10
  /**
11
11
  * Object with properties that will be passed forward the inner IconButton atom at the left of the input.
12
12
  */
13
- leftButtonProps: IconButtonProps;
13
+ leftButtonProps: Omit<IconButtonProps, 'aria-label'>;
14
14
  /**
15
15
  * Object with properties that will be passed forward the inner Input atom between the two buttons.
16
16
  */
@@ -18,7 +18,7 @@ export interface QuantitySelectorProps extends InputHTMLAttributes<HTMLDivElemen
18
18
  /**
19
19
  * Object with properties that will be passed forward the inner IconButton atom at the right of the input.
20
20
  */
21
- rightButtonProps: IconButtonProps;
21
+ rightButtonProps: Omit<IconButtonProps, 'aria-label'>;
22
22
  /**
23
23
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
24
24
  *
@@ -812,15 +812,15 @@ function Carousel({
812
812
  }, shouldRenderItem(idx - Number(infiniteMode)) ? currentSlide : null)))), showNavigationArrows && React__default.createElement("div", {
813
813
  "data-carousel-controls": true
814
814
  }, React__default.createElement(IconButton, {
815
+ "aria-label": "previous",
815
816
  "data-arrow": "left",
816
817
  "aria-controls": id,
817
- "aria-label": "previous",
818
818
  onClick: slidePrevious,
819
819
  icon: React__default.createElement(LeftArrowIcon, null)
820
820
  }), React__default.createElement(IconButton, {
821
+ "aria-label": "next",
821
822
  "data-arrow": "right",
822
823
  "aria-controls": id,
823
- "aria-label": "next",
824
824
  onClick: slideNext,
825
825
  icon: React__default.createElement(RightArrowIcon, null)
826
826
  })), showPaginationBullets && React__default.createElement("div", {