@instructure/ui-pill 8.12.1-snapshot.44 → 8.12.1-snapshot.50
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/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 -17
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.12.1-snapshot.
|
|
3
|
+
"version": "8.12.1-snapshot.50+3786369ec",
|
|
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.12.1-snapshot.
|
|
29
|
-
"@instructure/emotion": "8.12.1-snapshot.
|
|
30
|
-
"@instructure/shared-types": "8.12.1-snapshot.
|
|
31
|
-
"@instructure/ui-react-utils": "8.12.1-snapshot.
|
|
32
|
-
"@instructure/ui-testable": "8.12.1-snapshot.
|
|
33
|
-
"@instructure/ui-tooltip": "8.12.1-snapshot.
|
|
34
|
-
"@instructure/ui-truncate-text": "8.12.1-snapshot.
|
|
35
|
-
"@instructure/ui-utils": "8.12.1-snapshot.
|
|
36
|
-
"@instructure/ui-view": "8.12.1-snapshot.
|
|
28
|
+
"@instructure/console": "8.12.1-snapshot.50+3786369ec",
|
|
29
|
+
"@instructure/emotion": "8.12.1-snapshot.50+3786369ec",
|
|
30
|
+
"@instructure/shared-types": "8.12.1-snapshot.50+3786369ec",
|
|
31
|
+
"@instructure/ui-react-utils": "8.12.1-snapshot.50+3786369ec",
|
|
32
|
+
"@instructure/ui-testable": "8.12.1-snapshot.50+3786369ec",
|
|
33
|
+
"@instructure/ui-tooltip": "8.12.1-snapshot.50+3786369ec",
|
|
34
|
+
"@instructure/ui-truncate-text": "8.12.1-snapshot.50+3786369ec",
|
|
35
|
+
"@instructure/ui-utils": "8.12.1-snapshot.50+3786369ec",
|
|
36
|
+
"@instructure/ui-view": "8.12.1-snapshot.50+3786369ec",
|
|
37
37
|
"prop-types": "^15"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@instructure/ui-babel-preset": "8.12.1-snapshot.
|
|
41
|
-
"@instructure/ui-color-utils": "8.12.1-snapshot.
|
|
42
|
-
"@instructure/ui-test-locator": "8.12.1-snapshot.
|
|
43
|
-
"@instructure/ui-test-queries": "8.12.1-snapshot.
|
|
44
|
-
"@instructure/ui-test-utils": "8.12.1-snapshot.
|
|
45
|
-
"@instructure/ui-themes": "8.12.1-snapshot.
|
|
40
|
+
"@instructure/ui-babel-preset": "8.12.1-snapshot.50+3786369ec",
|
|
41
|
+
"@instructure/ui-color-utils": "8.12.1-snapshot.50+3786369ec",
|
|
42
|
+
"@instructure/ui-test-locator": "8.12.1-snapshot.50+3786369ec",
|
|
43
|
+
"@instructure/ui-test-queries": "8.12.1-snapshot.50+3786369ec",
|
|
44
|
+
"@instructure/ui-test-utils": "8.12.1-snapshot.50+3786369ec",
|
|
45
|
+
"@instructure/ui-themes": "8.12.1-snapshot.50+3786369ec"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"react": ">=16.8 <=17"
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"access": "public"
|
|
52
52
|
},
|
|
53
53
|
"sideEffects": false,
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "3786369ec892bc0f716844828cc2729447adb8be"
|
|
55
55
|
}
|