@faststore/ui 1.3.43 → 1.4.1

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.43",
3
+ "version": "1.4.1",
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.43",
79
+ "@vtex/theme-b2c-tailwind": "^1.4.1",
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": "d5f68246cc8e3f3689774a2fcb27508bdbee36c7"
92
+ "gitHead": "91327188d021bb9ffd7cc8a3f8d33e31be856bb5"
93
93
  }
@@ -1,38 +1,27 @@
1
- import type { HTMLAttributes, AriaAttributes } from 'react'
1
+ import type { HTMLAttributes } from 'react'
2
2
  import React, { forwardRef } from 'react'
3
3
 
4
- export interface CardContentProps extends HTMLAttributes<HTMLDivElement> {
4
+ export interface CardContentProps extends HTMLAttributes<HTMLElement> {
5
5
  /**
6
6
  * ID to find this component in testing tools (e.g.: cypress, testing library, and jest).
7
7
  */
8
8
  testId?: string
9
- /**
10
- * Defines a string value that labels the current element.
11
- */
12
- 'aria-label'?: AriaAttributes['aria-label']
13
9
  }
14
10
 
15
- const CardContent = forwardRef<HTMLDivElement, CardContentProps>(
11
+ const CardContent = forwardRef<HTMLElement, CardContentProps>(
16
12
  function CardContent(
17
- {
18
- testId = 'store-card-content',
19
- 'aria-label': ariaLabel = 'Card content',
20
- children,
21
- ...otherProps
22
- },
13
+ { testId = 'store-card-content', children, ...otherProps },
23
14
  ref
24
15
  ) {
25
16
  return (
26
- <div
17
+ <section
27
18
  ref={ref}
28
- role="region"
29
- aria-label={ariaLabel}
30
19
  data-store-card-content
31
20
  data-testid={testId}
32
21
  {...otherProps}
33
22
  >
34
23
  {children}
35
- </div>
24
+ </section>
36
25
  )
37
26
  }
38
27
  )