@faststore/ui 1.3.26 → 1.3.27
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/index.d.ts +2 -2
- package/dist/ui.cjs.development.js +40 -0
- 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 +38 -1
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +12 -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.3.27 (2021-12-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add Banner Components exportation ([#1072](https://github.com/vtex/faststore/issues/1072)) ([4024104](https://github.com/vtex/faststore/commit/4024104f9804c8762037f03d986a4334af819b3c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 1.3.26 (2021-12-09)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @faststore/ui
|
package/dist/index.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export { default as IconButton } from './molecules/IconButton';
|
|
|
40
40
|
export type { IconButtonProps } from './molecules/IconButton';
|
|
41
41
|
export { default as Modal } from './molecules/Modal';
|
|
42
42
|
export type { ModalProps } from './molecules/Modal';
|
|
43
|
-
export { default as Banner } from './molecules/Banner';
|
|
44
|
-
export type { BannerProps } from './molecules/Banner';
|
|
43
|
+
export { default as Banner, BannerContent, BannerImage, BannerLink, } from './molecules/Banner';
|
|
44
|
+
export type { BannerProps, BannerContentProps, BannerImageProps, BannerLinkProps, } from './molecules/Banner';
|
|
45
45
|
export { default as PaymentMethods } from './molecules/PaymentMethods';
|
|
46
46
|
export type { PaymentMethodsProps } from './molecules/PaymentMethods';
|
|
47
47
|
export { default as Breadcrumb } from './molecules/Breadcrumb';
|
|
@@ -1021,6 +1021,43 @@ const Banner = ({
|
|
|
1021
1021
|
}, children);
|
|
1022
1022
|
};
|
|
1023
1023
|
|
|
1024
|
+
const BannerImage = /*#__PURE__*/React.forwardRef(function BannerImage({
|
|
1025
|
+
testId = 'store-banner-image',
|
|
1026
|
+
children,
|
|
1027
|
+
...otherProps
|
|
1028
|
+
}, ref) {
|
|
1029
|
+
return React__default.createElement("div", Object.assign({
|
|
1030
|
+
ref: ref,
|
|
1031
|
+
"data-store-banner-image": true,
|
|
1032
|
+
"data-testid": testId
|
|
1033
|
+
}, otherProps), children);
|
|
1034
|
+
});
|
|
1035
|
+
|
|
1036
|
+
const BannerContent = /*#__PURE__*/React.forwardRef(function BannerContent({
|
|
1037
|
+
testId = 'store-banner-content',
|
|
1038
|
+
children,
|
|
1039
|
+
...otherProps
|
|
1040
|
+
}, ref) {
|
|
1041
|
+
return React__default.createElement("div", Object.assign({
|
|
1042
|
+
ref: ref,
|
|
1043
|
+
role: "region",
|
|
1044
|
+
"data-store-banner-content": true,
|
|
1045
|
+
"data-testid": testId
|
|
1046
|
+
}, otherProps), children);
|
|
1047
|
+
});
|
|
1048
|
+
|
|
1049
|
+
const BannerLink = /*#__PURE__*/React.forwardRef(function BannerLink({
|
|
1050
|
+
testId = 'store-banner-link',
|
|
1051
|
+
children,
|
|
1052
|
+
...otherProps
|
|
1053
|
+
}, ref) {
|
|
1054
|
+
return React__default.createElement("div", Object.assign({
|
|
1055
|
+
ref: ref,
|
|
1056
|
+
"data-store-banner-link": true,
|
|
1057
|
+
"data-testid": testId
|
|
1058
|
+
}, otherProps), children);
|
|
1059
|
+
});
|
|
1060
|
+
|
|
1024
1061
|
const PaymentMethods = /*#__PURE__*/React.forwardRef(function PaymentMethods({
|
|
1025
1062
|
testId = 'store-payment-methods',
|
|
1026
1063
|
title,
|
|
@@ -1472,6 +1509,9 @@ exports.AccordionPanel = AccordionPanel;
|
|
|
1472
1509
|
exports.Alert = Alert;
|
|
1473
1510
|
exports.Badge = Badge;
|
|
1474
1511
|
exports.Banner = Banner;
|
|
1512
|
+
exports.BannerContent = BannerContent;
|
|
1513
|
+
exports.BannerImage = BannerImage;
|
|
1514
|
+
exports.BannerLink = BannerLink;
|
|
1475
1515
|
exports.Breadcrumb = Breadcrumb;
|
|
1476
1516
|
exports.Bullets = Bullets;
|
|
1477
1517
|
exports.Button = Button;
|