@faststore/ui 1.3.37 → 1.3.38

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/ui",
3
- "version": "1.3.37",
3
+ "version": "1.3.38",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -76,7 +76,7 @@
76
76
  "@types/jest-axe": "^3.5.3",
77
77
  "@types/tabbable": "^3.1.1",
78
78
  "@types/testing-library__jest-dom": "^5.9.5",
79
- "@vtex/theme-b2c-tailwind": "^1.3.37",
79
+ "@vtex/theme-b2c-tailwind": "^1.3.38",
80
80
  "@vtex/tsconfig": "^0.5.0",
81
81
  "chalk": "^5.0.0",
82
82
  "jest-axe": "^5.0.1",
@@ -89,5 +89,5 @@
89
89
  "tsdx": "^0.14.1",
90
90
  "typescript": "^4.2.4"
91
91
  },
92
- "gitHead": "45ea1ebe1bdd2bea6c3c5fa05432be8cdb7c9a02"
92
+ "gitHead": "97fad3120f0d42d25ed482090e67b2ed5e41e351"
93
93
  }
@@ -1,8 +1,7 @@
1
1
  import type { HTMLAttributes } from 'react'
2
2
  import React, { forwardRef } from 'react'
3
3
 
4
- export interface BannerContentProps
5
- extends Omit<HTMLAttributes<HTMLDivElement>, 'role'> {
4
+ export interface BannerContentProps extends HTMLAttributes<HTMLDivElement> {
6
5
  /**
7
6
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
8
7
  */
@@ -17,7 +16,6 @@ const BannerContent = forwardRef<HTMLDivElement, BannerContentProps>(
17
16
  return (
18
17
  <div
19
18
  ref={ref}
20
- role="region"
21
19
  data-store-banner-content
22
20
  data-testid={testId}
23
21
  {...otherProps}
@@ -77,9 +77,10 @@ const SearchInput = forwardRef<HTMLFormElement, SearchInputProps>(
77
77
  data-store-search-input
78
78
  data-testid={testId}
79
79
  onSubmit={handleSubmit}
80
+ role="search"
80
81
  >
81
82
  <Input ref={valueRef} aria-label={ariaLabel} {...otherProps} />
82
- <Button type="submit" aria-label={`button-${ariaLabel}`}>
83
+ <Button type="submit" aria-label="Submit Search">
83
84
  <Icon component={icon ?? <SearchIcon />} />
84
85
  </Button>
85
86
  </Form>