@faststore/ui 1.3.44 → 1.4.2
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 +35 -0
- package/dist/organisms/Card/CardContent.d.ts +3 -7
- package/dist/ui.cjs.development.js +2 -8
- 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 -8
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/molecules/PaymentMethods/PaymentMethods.tsx +1 -2
- package/src/organisms/Card/CardContent.tsx +6 -17
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.2 (2022-01-03)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui:** removing aria-labelledby from payment methods component ([#1092](https://github.com/vtex/faststore/issues/1092)) ([bf4c7a9](https://github.com/vtex/faststore/commit/bf4c7a981c379ffb1777a2fd8cae787f735f7d2d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 1.4.1 (2022-01-03)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @faststore/ui
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 1.3.46 (2021-12-23)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @faststore/ui
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## 1.3.45 (2021-12-21)
|
|
34
|
+
|
|
35
|
+
**Note:** Version bump only for package @faststore/ui
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
6
41
|
## 1.3.44 (2021-12-21)
|
|
7
42
|
|
|
8
43
|
**Note:** Version bump only for package @faststore/ui
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
import type { HTMLAttributes
|
|
1
|
+
import type { HTMLAttributes } from 'react';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export interface CardContentProps extends HTMLAttributes<
|
|
3
|
+
export interface CardContentProps extends HTMLAttributes<HTMLElement> {
|
|
4
4
|
/**
|
|
5
5
|
* ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
|
|
6
6
|
*/
|
|
7
7
|
testId?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Defines a string value that labels the current element.
|
|
10
|
-
*/
|
|
11
|
-
'aria-label'?: AriaAttributes['aria-label'];
|
|
12
8
|
}
|
|
13
|
-
declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<
|
|
9
|
+
declare const CardContent: React.ForwardRefExoticComponent<CardContentProps & React.RefAttributes<HTMLElement>>;
|
|
14
10
|
export default CardContent;
|
|
@@ -1087,11 +1087,8 @@ const PaymentMethods = /*#__PURE__*/React.forwardRef(function PaymentMethods({
|
|
|
1087
1087
|
ref: ref,
|
|
1088
1088
|
"data-store-payment-methods": true,
|
|
1089
1089
|
"data-testid": testId
|
|
1090
|
-
}, otherProps), !!title && React__default.createElement("div", {
|
|
1091
|
-
id: "payment-methods"
|
|
1092
|
-
}, title), React__default.createElement("div", {
|
|
1090
|
+
}, otherProps), !!title && React__default.createElement("div", null, title), React__default.createElement("div", {
|
|
1093
1091
|
"data-payment-methods-flags": true,
|
|
1094
|
-
"aria-labelledby": title ? 'payment-methods' : undefined,
|
|
1095
1092
|
"aria-label": title ? undefined : ariaLabel
|
|
1096
1093
|
}, children));
|
|
1097
1094
|
});
|
|
@@ -1574,14 +1571,11 @@ const CardImage = /*#__PURE__*/React.forwardRef(function CardImage({
|
|
|
1574
1571
|
|
|
1575
1572
|
const CardContent = /*#__PURE__*/React.forwardRef(function CardContent({
|
|
1576
1573
|
testId = 'store-card-content',
|
|
1577
|
-
'aria-label': ariaLabel = 'Card content',
|
|
1578
1574
|
children,
|
|
1579
1575
|
...otherProps
|
|
1580
1576
|
}, ref) {
|
|
1581
|
-
return React__default.createElement("
|
|
1577
|
+
return React__default.createElement("section", Object.assign({
|
|
1582
1578
|
ref: ref,
|
|
1583
|
-
role: "region",
|
|
1584
|
-
"aria-label": ariaLabel,
|
|
1585
1579
|
"data-store-card-content": true,
|
|
1586
1580
|
"data-testid": testId
|
|
1587
1581
|
}, otherProps), children);
|