@faststore/ui 1.7.13 → 1.7.16

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,33 @@
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.16 (2022-04-07)
7
+
8
+ **Note:** Version bump only for package @faststore/ui
9
+
10
+
11
+
12
+
13
+
14
+ ## 1.7.15 (2022-04-07)
15
+
16
+ **Note:** Version bump only for package @faststore/ui
17
+
18
+
19
+
20
+
21
+
22
+ ## 1.7.14 (2022-04-07)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * Uses catalog slugify ([#1214](https://github.com/vtex/faststore/issues/1214)) ([0b38efc](https://github.com/vtex/faststore/commit/0b38efc96ecab8920cf15f01c29e7f9d5becba3d))
28
+
29
+
30
+
31
+
32
+
6
33
  ## 1.7.13 (2022-04-07)
7
34
 
8
35
  **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: ({ testId, children, variant, }: BannerProps) => JSX.Element;
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
- return React__default.createElement("article", {
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',