@instructure/ui-tag 8.51.1-snapshot-9 → 8.51.1-snapshot-10

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,9 +3,12 @@
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
- ## [8.51.1-snapshot-9](https://github.com/instructure/instructure-ui/compare/v8.51.0...v8.51.1-snapshot-9) (2024-02-01)
6
+ ## [8.51.1-snapshot-10](https://github.com/instructure/instructure-ui/compare/v8.51.0...v8.51.1-snapshot-10) (2024-02-01)
7
7
 
8
- **Note:** Version bump only for package @instructure/ui-tag
8
+
9
+ ### Bug Fixes
10
+
11
+ * **shared-types:** extend OtherHTMLAttributes with Element ([474fa4d](https://github.com/instructure/instructure-ui/commit/474fa4da4781acc347b993a7c64c52d101b00feb))
9
12
 
10
13
 
11
14
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@instructure/ui-tag",
3
- "version": "8.51.1-snapshot-9",
3
+ "version": "8.51.1-snapshot-10",
4
4
  "description": "A tag component",
5
5
  "author": "Instructure, Inc. Engineering and Product Design",
6
6
  "module": "./es/index.js",
@@ -24,22 +24,22 @@
24
24
  "license": "MIT",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.23.2",
27
- "@instructure/console": "8.51.1-snapshot-9",
28
- "@instructure/emotion": "8.51.1-snapshot-9",
29
- "@instructure/shared-types": "8.51.1-snapshot-9",
30
- "@instructure/ui-color-utils": "8.51.1-snapshot-9",
31
- "@instructure/ui-dom-utils": "8.51.1-snapshot-9",
32
- "@instructure/ui-icons": "8.51.1-snapshot-9",
33
- "@instructure/ui-react-utils": "8.51.1-snapshot-9",
34
- "@instructure/ui-testable": "8.51.1-snapshot-9",
35
- "@instructure/ui-view": "8.51.1-snapshot-9",
27
+ "@instructure/console": "8.51.1-snapshot-10",
28
+ "@instructure/emotion": "8.51.1-snapshot-10",
29
+ "@instructure/shared-types": "8.51.1-snapshot-10",
30
+ "@instructure/ui-color-utils": "8.51.1-snapshot-10",
31
+ "@instructure/ui-dom-utils": "8.51.1-snapshot-10",
32
+ "@instructure/ui-icons": "8.51.1-snapshot-10",
33
+ "@instructure/ui-react-utils": "8.51.1-snapshot-10",
34
+ "@instructure/ui-testable": "8.51.1-snapshot-10",
35
+ "@instructure/ui-view": "8.51.1-snapshot-10",
36
36
  "prop-types": "^15.8.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@instructure/ui-babel-preset": "8.51.1-snapshot-9",
40
- "@instructure/ui-test-locator": "8.51.1-snapshot-9",
41
- "@instructure/ui-test-utils": "8.51.1-snapshot-9",
42
- "@instructure/ui-themes": "8.51.1-snapshot-9"
39
+ "@instructure/ui-babel-preset": "8.51.1-snapshot-10",
40
+ "@instructure/ui-test-locator": "8.51.1-snapshot-10",
41
+ "@instructure/ui-test-utils": "8.51.1-snapshot-10",
42
+ "@instructure/ui-themes": "8.51.1-snapshot-10"
43
43
  },
44
44
  "peerDependencies": {
45
45
  "react": ">=16.8 <=18"
package/src/Tag/index.tsx CHANGED
@@ -76,7 +76,7 @@ class Tag extends Component<TagProps> {
76
76
  this.ref && (this.ref as HTMLElement).focus()
77
77
  }
78
78
 
79
- handleClick = (e: React.MouseEvent<ViewProps>) => {
79
+ handleClick = (e: React.MouseEvent<ViewProps & Element>) => {
80
80
  const { disabled, readOnly, onClick } = this.props
81
81
 
82
82
  if (disabled || readOnly) {
package/src/Tag/props.ts CHANGED
@@ -61,7 +61,7 @@ type TagOwnProps = {
61
61
  /**
62
62
  * If you add an onClick prop, Tag renders as a clickable button
63
63
  */
64
- onClick?: (event: React.MouseEvent<ViewProps>) => void
64
+ onClick?: (event: React.MouseEvent<ViewProps & Element>) => void
65
65
  /**
66
66
  * Provides a reference to the underlying html root element
67
67
  */