@instructure/ui-tag 10.6.1-snapshot-2 → 10.6.1-snapshot-4
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 +5 -2
- package/es/Tag/index.js +4 -2
- package/lib/Tag/index.js +4 -2
- package/package.json +14 -14
- package/src/Tag/index.tsx +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
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
|
-
## [10.6.1-snapshot-
|
|
6
|
+
## [10.6.1-snapshot-4](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1-snapshot-4) (2024-11-20)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **ui-progress,ui-tag:** remove onClick prop from Tag when callback is not provided. Fix Progress dependency mismatch (test-locator) ([de22f76](https://github.com/instructure/instructure-ui/commit/de22f76fd8fcdf6ef0a25788014da26f5fdfdd0e))
|
|
9
12
|
|
|
10
13
|
|
|
11
14
|
|
package/es/Tag/index.js
CHANGED
|
@@ -94,8 +94,10 @@ let Tag = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = test
|
|
|
94
94
|
className: className,
|
|
95
95
|
as: onClick ? 'button' : 'span',
|
|
96
96
|
margin: margin,
|
|
97
|
-
type: onClick ? 'button' : void 0
|
|
98
|
-
|
|
97
|
+
type: onClick ? 'button' : void 0
|
|
98
|
+
}, onClick && {
|
|
99
|
+
onClick: this.handleClick
|
|
100
|
+
}, {
|
|
99
101
|
disabled: disabled || readOnly,
|
|
100
102
|
display: void 0,
|
|
101
103
|
title: title || (typeof text === 'string' ? text : void 0)
|
package/lib/Tag/index.js
CHANGED
|
@@ -101,8 +101,10 @@ let Tag = exports.Tag = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.
|
|
|
101
101
|
className: className,
|
|
102
102
|
as: onClick ? 'button' : 'span',
|
|
103
103
|
margin: margin,
|
|
104
|
-
type: onClick ? 'button' : void 0
|
|
105
|
-
|
|
104
|
+
type: onClick ? 'button' : void 0
|
|
105
|
+
}, onClick && {
|
|
106
|
+
onClick: this.handleClick
|
|
107
|
+
}, {
|
|
106
108
|
disabled: disabled || readOnly,
|
|
107
109
|
display: void 0,
|
|
108
110
|
title: title || (typeof text === 'string' ? text : void 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-tag",
|
|
3
|
-
"version": "10.6.1-snapshot-
|
|
3
|
+
"version": "10.6.1-snapshot-4",
|
|
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.25.6",
|
|
27
|
-
"@instructure/console": "10.6.1-snapshot-
|
|
28
|
-
"@instructure/emotion": "10.6.1-snapshot-
|
|
29
|
-
"@instructure/shared-types": "10.6.1-snapshot-
|
|
30
|
-
"@instructure/ui-color-utils": "10.6.1-snapshot-
|
|
31
|
-
"@instructure/ui-dom-utils": "10.6.1-snapshot-
|
|
32
|
-
"@instructure/ui-icons": "10.6.1-snapshot-
|
|
33
|
-
"@instructure/ui-react-utils": "10.6.1-snapshot-
|
|
34
|
-
"@instructure/ui-testable": "10.6.1-snapshot-
|
|
35
|
-
"@instructure/ui-view": "10.6.1-snapshot-
|
|
27
|
+
"@instructure/console": "10.6.1-snapshot-4",
|
|
28
|
+
"@instructure/emotion": "10.6.1-snapshot-4",
|
|
29
|
+
"@instructure/shared-types": "10.6.1-snapshot-4",
|
|
30
|
+
"@instructure/ui-color-utils": "10.6.1-snapshot-4",
|
|
31
|
+
"@instructure/ui-dom-utils": "10.6.1-snapshot-4",
|
|
32
|
+
"@instructure/ui-icons": "10.6.1-snapshot-4",
|
|
33
|
+
"@instructure/ui-react-utils": "10.6.1-snapshot-4",
|
|
34
|
+
"@instructure/ui-testable": "10.6.1-snapshot-4",
|
|
35
|
+
"@instructure/ui-view": "10.6.1-snapshot-4",
|
|
36
36
|
"prop-types": "^15.8.1"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@instructure/ui-axe-check": "10.6.1-snapshot-
|
|
40
|
-
"@instructure/ui-babel-preset": "10.6.1-snapshot-
|
|
41
|
-
"@instructure/ui-test-utils": "10.6.1-snapshot-
|
|
42
|
-
"@instructure/ui-themes": "10.6.1-snapshot-
|
|
39
|
+
"@instructure/ui-axe-check": "10.6.1-snapshot-4",
|
|
40
|
+
"@instructure/ui-babel-preset": "10.6.1-snapshot-4",
|
|
41
|
+
"@instructure/ui-test-utils": "10.6.1-snapshot-4",
|
|
42
|
+
"@instructure/ui-themes": "10.6.1-snapshot-4",
|
|
43
43
|
"@testing-library/jest-dom": "^6.4.5",
|
|
44
44
|
"@testing-library/react": "^16.0.1",
|
|
45
45
|
"@testing-library/user-event": "^14.5.2",
|
package/src/Tag/index.tsx
CHANGED
|
@@ -122,7 +122,7 @@ class Tag extends Component<TagProps> {
|
|
|
122
122
|
as={onClick ? 'button' : 'span'}
|
|
123
123
|
margin={margin}
|
|
124
124
|
type={onClick ? 'button' : undefined}
|
|
125
|
-
onClick
|
|
125
|
+
{...(onClick && { onClick: this.handleClick })}
|
|
126
126
|
disabled={disabled || readOnly}
|
|
127
127
|
display={undefined}
|
|
128
128
|
title={title || (typeof text === 'string' ? text : undefined)}
|