@instructure/ui-pill 8.12.1-snapshot.7 → 8.13.0
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 +6 -0
- package/es/Pill/PillLocator.js +2 -2
- package/es/Pill/index.js +3 -4
- package/lib/Pill/PillLocator.js +2 -2
- package/lib/Pill/index.js +4 -5
- package/lib/Pill/props.js +1 -1
- package/package.json +17 -18
- package/LICENSE.md +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +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.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ui-popover,ui-tooltip:** fixed Tooltip triggers being transformed to links/buttons ([07b0037](https://github.com/instructure/instructure-ui/commit/07b0037b0ddaf6d4f19cca140fc82fc9a2f1efc9))
|
|
11
|
+
|
|
6
12
|
# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @instructure/ui-pill
|
package/es/Pill/PillLocator.js
CHANGED
|
@@ -27,8 +27,8 @@ import { parseQueryArguments } from '@instructure/ui-test-queries'; // eslint-di
|
|
|
27
27
|
import { TooltipLocator } from '@instructure/ui-tooltip/es/Tooltip/TooltipLocator';
|
|
28
28
|
import { Pill } from './index';
|
|
29
29
|
export const PillLocator = locator(Pill.selector, {
|
|
30
|
-
findTooltipContent: async (
|
|
31
|
-
const _parseQueryArguments = parseQueryArguments(...
|
|
30
|
+
findTooltipContent: async function () {
|
|
31
|
+
const _parseQueryArguments = parseQueryArguments(...arguments),
|
|
32
32
|
element = _parseQueryArguments.element,
|
|
33
33
|
selector = _parseQueryArguments.selector,
|
|
34
34
|
options = _parseQueryArguments.options;
|
package/es/Pill/index.js
CHANGED
|
@@ -125,10 +125,9 @@ let Pill = (_dec = withStyle(generateStyle, generateComponentTheme), _dec2 = tes
|
|
|
125
125
|
if (this.state.truncated) {
|
|
126
126
|
return jsx(Tooltip, {
|
|
127
127
|
renderTip: this.props.children
|
|
128
|
-
},
|
|
129
|
-
focused,
|
|
130
|
-
|
|
131
|
-
}) => {
|
|
128
|
+
}, _ref => {
|
|
129
|
+
let focused = _ref.focused,
|
|
130
|
+
getTriggerProps = _ref.getTriggerProps;
|
|
132
131
|
return this.renderPill(focused, getTriggerProps);
|
|
133
132
|
});
|
|
134
133
|
} else {
|
package/lib/Pill/PillLocator.js
CHANGED
|
@@ -38,8 +38,8 @@ var _index = require("./index");
|
|
|
38
38
|
*/
|
|
39
39
|
// eslint-disable-next-line no-restricted-imports
|
|
40
40
|
const PillLocator = (0, _locator.locator)(_index.Pill.selector, {
|
|
41
|
-
findTooltipContent: async (
|
|
42
|
-
const _parseQueryArguments = (0, _uiTestQueries.parseQueryArguments)(...
|
|
41
|
+
findTooltipContent: async function () {
|
|
42
|
+
const _parseQueryArguments = (0, _uiTestQueries.parseQueryArguments)(...arguments),
|
|
43
43
|
element = _parseQueryArguments.element,
|
|
44
44
|
selector = _parseQueryArguments.selector,
|
|
45
45
|
options = _parseQueryArguments.options;
|
package/lib/Pill/index.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.default = exports.Pill = void 0;
|
|
9
9
|
|
|
10
10
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
11
|
|
|
@@ -118,10 +118,9 @@ let Pill = (_dec = (0, _emotion.withStyle)(_styles.default, _theme.default), _de
|
|
|
118
118
|
if (this.state.truncated) {
|
|
119
119
|
return (0, _emotion.jsx)(_Tooltip.Tooltip, {
|
|
120
120
|
renderTip: this.props.children
|
|
121
|
-
},
|
|
122
|
-
focused,
|
|
123
|
-
|
|
124
|
-
}) => {
|
|
121
|
+
}, _ref => {
|
|
122
|
+
let focused = _ref.focused,
|
|
123
|
+
getTriggerProps = _ref.getTriggerProps;
|
|
125
124
|
return this.renderPill(focused, getTriggerProps);
|
|
126
125
|
});
|
|
127
126
|
} else {
|
package/lib/Pill/props.js
CHANGED
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.propTypes = exports.allowedProps = void 0;
|
|
9
9
|
|
|
10
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/ui-pill",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0",
|
|
4
4
|
"description": "A UI component to communicate concise status.",
|
|
5
5
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -25,24 +25,24 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@babel/runtime": "^7.13.10",
|
|
28
|
-
"@instructure/console": "8.
|
|
29
|
-
"@instructure/emotion": "8.
|
|
30
|
-
"@instructure/shared-types": "8.
|
|
31
|
-
"@instructure/ui-react-utils": "8.
|
|
32
|
-
"@instructure/ui-testable": "8.
|
|
33
|
-
"@instructure/ui-tooltip": "8.
|
|
34
|
-
"@instructure/ui-truncate-text": "8.
|
|
35
|
-
"@instructure/ui-utils": "8.
|
|
36
|
-
"@instructure/ui-view": "8.
|
|
28
|
+
"@instructure/console": "8.13.0",
|
|
29
|
+
"@instructure/emotion": "8.13.0",
|
|
30
|
+
"@instructure/shared-types": "8.13.0",
|
|
31
|
+
"@instructure/ui-react-utils": "8.13.0",
|
|
32
|
+
"@instructure/ui-testable": "8.13.0",
|
|
33
|
+
"@instructure/ui-tooltip": "8.13.0",
|
|
34
|
+
"@instructure/ui-truncate-text": "8.13.0",
|
|
35
|
+
"@instructure/ui-utils": "8.13.0",
|
|
36
|
+
"@instructure/ui-view": "8.13.0",
|
|
37
37
|
"prop-types": "^15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@instructure/ui-babel-preset": "8.
|
|
41
|
-
"@instructure/ui-color-utils": "8.
|
|
42
|
-
"@instructure/ui-test-locator": "8.
|
|
43
|
-
"@instructure/ui-test-queries": "8.
|
|
44
|
-
"@instructure/ui-test-utils": "8.
|
|
45
|
-
"@instructure/ui-themes": "8.
|
|
40
|
+
"@instructure/ui-babel-preset": "8.13.0",
|
|
41
|
+
"@instructure/ui-color-utils": "8.13.0",
|
|
42
|
+
"@instructure/ui-test-locator": "8.13.0",
|
|
43
|
+
"@instructure/ui-test-queries": "8.13.0",
|
|
44
|
+
"@instructure/ui-test-utils": "8.13.0",
|
|
45
|
+
"@instructure/ui-themes": "8.13.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8 <=17"
|
|
@@ -50,6 +50,5 @@
|
|
|
50
50
|
"publishConfig": {
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
|
-
"sideEffects": false
|
|
54
|
-
"gitHead": "1e7ac821932a91fe9ef761c96f747c7ea1f3925a"
|
|
53
|
+
"sideEffects": false
|
|
55
54
|
}
|
package/LICENSE.md
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: The MIT License (MIT)
|
|
3
|
-
category: Getting Started
|
|
4
|
-
order: 9
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# The MIT License (MIT)
|
|
8
|
-
|
|
9
|
-
Copyright (c) 2015 Instructure, Inc.
|
|
10
|
-
|
|
11
|
-
**Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
13
|
-
in the Software without restriction, including without limitation the rights
|
|
14
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
15
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
16
|
-
furnished to do so, subject to the following conditions.**
|
|
17
|
-
|
|
18
|
-
The above copyright notice and this permission notice shall be included in all
|
|
19
|
-
copies or substantial portions of the Software.
|
|
20
|
-
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
22
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
23
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
24
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
25
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
26
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
27
|
-
SOFTWARE.
|