@faststore/ui 1.7.15 → 1.7.18
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 +24 -0
- package/dist/molecules/Banner/Banner.d.ts +3 -2
- package/dist/ui.cjs.development.js +8 -6
- 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 +8 -6
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/molecules/Banner/Banner.test.tsx +5 -1
- package/src/molecules/Banner/Banner.tsx +14 -9
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.7.18 (2022-04-08)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @faststore/ui
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.7.17 (2022-04-08)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @faststore/ui
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 1.7.16 (2022-04-07)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @faststore/ui
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## 1.7.15 (2022-04-07)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @faststore/ui
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import type { HTMLAttributes } from 'react';
|
|
2
3
|
declare type BannerDirectionVariant = 'vertical' | 'horizontal';
|
|
3
|
-
export interface BannerProps {
|
|
4
|
+
export interface BannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
/**
|
|
5
6
|
* ID to find this component in testing tools (e.g.: cypress,
|
|
6
7
|
* testing-library, and jest).
|
|
@@ -9,5 +10,5 @@ export interface BannerProps {
|
|
|
9
10
|
children: React.ReactNode;
|
|
10
11
|
variant?: BannerDirectionVariant;
|
|
11
12
|
}
|
|
12
|
-
declare const Banner:
|
|
13
|
+
declare const Banner: React.ForwardRefExoticComponent<BannerProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
14
|
export default Banner;
|
|
@@ -1032,16 +1032,18 @@ const Modal = ({
|
|
|
1032
1032
|
}), children)), document.body) : null;
|
|
1033
1033
|
};
|
|
1034
1034
|
|
|
1035
|
-
const Banner = ({
|
|
1035
|
+
const Banner = /*#__PURE__*/React.forwardRef(function Banner({
|
|
1036
1036
|
testId = 'store-banner',
|
|
1037
1037
|
children,
|
|
1038
|
-
variant = 'vertical'
|
|
1039
|
-
|
|
1040
|
-
|
|
1038
|
+
variant = 'vertical',
|
|
1039
|
+
...otherProps
|
|
1040
|
+
}, ref) {
|
|
1041
|
+
return React__default.createElement("article", Object.assign({
|
|
1042
|
+
ref: ref,
|
|
1041
1043
|
"data-store-banner": variant,
|
|
1042
1044
|
"data-testid": testId
|
|
1043
|
-
}, children);
|
|
1044
|
-
};
|
|
1045
|
+
}, otherProps), children);
|
|
1046
|
+
});
|
|
1045
1047
|
|
|
1046
1048
|
const BannerImage = /*#__PURE__*/React.forwardRef(function BannerImage({
|
|
1047
1049
|
testId = 'store-banner-image',
|