@faststore/ui 1.4.6 → 1.4.7
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 +11 -0
- package/dist/molecules/IconButton/IconButton.d.ts +5 -1
- package/dist/molecules/QuantitySelector/QuantitySelector.d.ts +2 -2
- package/dist/ui.cjs.development.js +2 -2
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +2 -2
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/atoms/Checkbox/stories/Checkbox.stories.tsx +13 -8
- package/src/atoms/Radio/stories/Radio.stories.tsx +6 -1
- package/src/atoms/Select/stories/Select.stories.tsx +12 -9
- package/src/atoms/TextArea/stories/TextArea.stories.tsx +1 -1
- package/src/molecules/Carousel/Carousel.tsx +2 -2
- package/src/molecules/IconButton/IconButton.test.tsx +6 -2
- package/src/molecules/IconButton/IconButton.tsx +6 -1
- package/src/molecules/IconButton/stories/IconButton.stories.tsx +7 -2
- package/src/molecules/QuantitySelector/QuantitySelector.tsx +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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.7 (2022-01-05)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* fix accessibility on storybook ([#1096](https://github.com/vtex/faststore/issues/1096)) ([55805b1](https://github.com/vtex/faststore/commit/55805b1b2cffd111ef64857321c20e0a001a93b2))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 1.4.6 (2022-01-05)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @faststore/ui
|
|
@@ -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", {
|