@instructure/ui-link 9.0.2-snapshot-2 → 9.0.2-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 +1 -1
- package/es/Link/index.js +4 -5
- package/lib/Link/index.js +4 -5
- package/package.json +18 -18
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/Link/LinkLocator.d.ts +32 -32
- package/types/Link/index.d.ts +6 -6
- package/types/Link/index.d.ts.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
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
|
-
## [9.0.2-snapshot-
|
|
6
|
+
## [9.0.2-snapshot-4](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.0.2-snapshot-4) (2024-06-05)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @instructure/ui-link
|
|
9
9
|
|
package/es/Link/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
2
2
|
const _excluded = ["children", "onClick", "onMouseEnter", "color", "href", "margin", "renderIcon", "iconPlacement", "isWithinText"];
|
|
3
|
-
var _dec, _dec2, _class,
|
|
3
|
+
var _dec, _dec2, _class, _Link;
|
|
4
4
|
/*
|
|
5
5
|
* The MIT License (MIT)
|
|
6
6
|
*
|
|
@@ -42,7 +42,7 @@ import { propTypes, allowedProps } from './props';
|
|
|
42
42
|
category: components
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
|
-
let Link = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (
|
|
45
|
+
let Link = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = testable(), _dec(_class = _dec2(_class = (_Link = class Link extends Component {
|
|
46
46
|
constructor(...args) {
|
|
47
47
|
super(...args);
|
|
48
48
|
this.state = {
|
|
@@ -116,7 +116,6 @@ let Link = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
|
|
|
116
116
|
if (this.props.display) {
|
|
117
117
|
return this.props.display; // user-entered display property
|
|
118
118
|
}
|
|
119
|
-
|
|
120
119
|
const containsTruncateText = this.containsTruncateText;
|
|
121
120
|
if (this.props.renderIcon) {
|
|
122
121
|
return containsTruncateText ? 'inline-flex' : 'inline-block';
|
|
@@ -198,13 +197,13 @@ let Link = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
|
|
|
198
197
|
css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.link
|
|
199
198
|
}), renderIcon && iconPlacement === 'start' && this.renderIcon(), children, renderIcon && iconPlacement === 'end' && this.renderIcon());
|
|
200
199
|
}
|
|
201
|
-
},
|
|
200
|
+
}, _Link.displayName = "Link", _Link.componentId = 'Link', _Link.propTypes = propTypes, _Link.allowedProps = allowedProps, _Link.defaultProps = {
|
|
202
201
|
// Leave interaction default undefined so that `disabled` can also be supplied
|
|
203
202
|
interaction: void 0,
|
|
204
203
|
color: 'link',
|
|
205
204
|
iconPlacement: 'start',
|
|
206
205
|
isWithinText: true,
|
|
207
206
|
forceButtonRole: true
|
|
208
|
-
},
|
|
207
|
+
}, _Link)) || _class) || _class);
|
|
209
208
|
export default Link;
|
|
210
209
|
export { Link };
|
package/lib/Link/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var _styles = _interopRequireDefault(require("./styles"));
|
|
|
24
24
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
25
25
|
var _props = require("./props");
|
|
26
26
|
const _excluded = ["children", "onClick", "onMouseEnter", "color", "href", "margin", "renderIcon", "iconPlacement", "isWithinText"];
|
|
27
|
-
var _dec, _dec2, _class,
|
|
27
|
+
var _dec, _dec2, _class, _Link;
|
|
28
28
|
/*
|
|
29
29
|
* The MIT License (MIT)
|
|
30
30
|
*
|
|
@@ -54,7 +54,7 @@ var _dec, _dec2, _class, _class2;
|
|
|
54
54
|
category: components
|
|
55
55
|
---
|
|
56
56
|
**/
|
|
57
|
-
let Link = exports.Link = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (
|
|
57
|
+
let Link = exports.Link = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _dec2 = (0, _testable.testable)(), _dec(_class = _dec2(_class = (_Link = class Link extends _react.Component {
|
|
58
58
|
constructor(...args) {
|
|
59
59
|
super(...args);
|
|
60
60
|
this.state = {
|
|
@@ -128,7 +128,6 @@ let Link = exports.Link = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
128
128
|
if (this.props.display) {
|
|
129
129
|
return this.props.display; // user-entered display property
|
|
130
130
|
}
|
|
131
|
-
|
|
132
131
|
const containsTruncateText = this.containsTruncateText;
|
|
133
132
|
if (this.props.renderIcon) {
|
|
134
133
|
return containsTruncateText ? 'inline-flex' : 'inline-block';
|
|
@@ -210,12 +209,12 @@ let Link = exports.Link = (_dec = (0, _emotion.withStyle)(_styles.default, _them
|
|
|
210
209
|
css: (_this$props$styles2 = this.props.styles) === null || _this$props$styles2 === void 0 ? void 0 : _this$props$styles2.link
|
|
211
210
|
}), renderIcon && iconPlacement === 'start' && this.renderIcon(), children, renderIcon && iconPlacement === 'end' && this.renderIcon());
|
|
212
211
|
}
|
|
213
|
-
},
|
|
212
|
+
}, _Link.displayName = "Link", _Link.componentId = 'Link', _Link.propTypes = _props.propTypes, _Link.allowedProps = _props.allowedProps, _Link.defaultProps = {
|
|
214
213
|
// Leave interaction default undefined so that `disabled` can also be supplied
|
|
215
214
|
interaction: void 0,
|
|
216
215
|
color: 'link',
|
|
217
216
|
iconPlacement: 'start',
|
|
218
217
|
isWithinText: true,
|
|
219
218
|
forceButtonRole: true
|
|
220
|
-
},
|
|
219
|
+
}, _Link)) || _class) || _class);
|
|
221
220
|
var _default = exports.default = Link;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-link",
|
|
3
|
-
"version": "9.0.2-snapshot-
|
|
3
|
+
"version": "9.0.2-snapshot-4",
|
|
4
4
|
"description": "A component for creating links",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -23,26 +23,26 @@
|
|
|
23
23
|
},
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/runtime": "^7.
|
|
27
|
-
"@instructure/console": "9.0.2-snapshot-
|
|
28
|
-
"@instructure/emotion": "9.0.2-snapshot-
|
|
29
|
-
"@instructure/shared-types": "9.0.2-snapshot-
|
|
30
|
-
"@instructure/ui-a11y-utils": "9.0.2-snapshot-
|
|
31
|
-
"@instructure/ui-color-utils": "9.0.2-snapshot-
|
|
32
|
-
"@instructure/ui-dom-utils": "9.0.2-snapshot-
|
|
33
|
-
"@instructure/ui-icons": "9.0.2-snapshot-
|
|
34
|
-
"@instructure/ui-prop-types": "9.0.2-snapshot-
|
|
35
|
-
"@instructure/ui-react-utils": "9.0.2-snapshot-
|
|
36
|
-
"@instructure/ui-testable": "9.0.2-snapshot-
|
|
37
|
-
"@instructure/ui-view": "9.0.2-snapshot-
|
|
26
|
+
"@babel/runtime": "^7.24.5",
|
|
27
|
+
"@instructure/console": "9.0.2-snapshot-4",
|
|
28
|
+
"@instructure/emotion": "9.0.2-snapshot-4",
|
|
29
|
+
"@instructure/shared-types": "9.0.2-snapshot-4",
|
|
30
|
+
"@instructure/ui-a11y-utils": "9.0.2-snapshot-4",
|
|
31
|
+
"@instructure/ui-color-utils": "9.0.2-snapshot-4",
|
|
32
|
+
"@instructure/ui-dom-utils": "9.0.2-snapshot-4",
|
|
33
|
+
"@instructure/ui-icons": "9.0.2-snapshot-4",
|
|
34
|
+
"@instructure/ui-prop-types": "9.0.2-snapshot-4",
|
|
35
|
+
"@instructure/ui-react-utils": "9.0.2-snapshot-4",
|
|
36
|
+
"@instructure/ui-testable": "9.0.2-snapshot-4",
|
|
37
|
+
"@instructure/ui-view": "9.0.2-snapshot-4",
|
|
38
38
|
"prop-types": "^15.8.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@instructure/ui-babel-preset": "9.0.2-snapshot-
|
|
42
|
-
"@instructure/ui-test-locator": "9.0.2-snapshot-
|
|
43
|
-
"@instructure/ui-test-queries": "9.0.2-snapshot-
|
|
44
|
-
"@instructure/ui-test-utils": "9.0.2-snapshot-
|
|
45
|
-
"@instructure/ui-themes": "9.0.2-snapshot-
|
|
41
|
+
"@instructure/ui-babel-preset": "9.0.2-snapshot-4",
|
|
42
|
+
"@instructure/ui-test-locator": "9.0.2-snapshot-4",
|
|
43
|
+
"@instructure/ui-test-queries": "9.0.2-snapshot-4",
|
|
44
|
+
"@instructure/ui-test-utils": "9.0.2-snapshot-4",
|
|
45
|
+
"@instructure/ui-themes": "9.0.2-snapshot-4"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8 <=18"
|