@atlaskit/quick-search 8.1.3 → 8.1.5
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 +30 -18
- package/dist/cjs/components/QuickSearch.js +5 -7
- package/dist/cjs/components/ResultItem/ResultItem.js +1 -2
- package/dist/cjs/components/ResultItem/ResultItemGroup.js +2 -3
- package/dist/cjs/components/ResultItem/styled.js +8 -16
- package/dist/cjs/components/Results/ContainerResult.js +2 -3
- package/dist/cjs/components/Results/ObjectResult.js +2 -3
- package/dist/cjs/components/Results/PersonResult.js +1 -2
- package/dist/cjs/components/Results/ResultBase.js +5 -7
- package/dist/cjs/components/Search/Search.js +2 -4
- package/dist/cjs/components/Search/styled.js +9 -18
- package/dist/cjs/components/constants.js +6 -12
- package/dist/cjs/components/context.js +2 -4
- package/dist/cjs/components/isReactElement.js +2 -3
- package/dist/es2019/components/ResultItem/styled.js +1 -1
- package/dist/esm/components/QuickSearch.js +2 -2
- package/dist/esm/components/ResultItem/styled.js +1 -1
- package/dist/esm/components/Results/ResultBase.js +2 -2
- package/dist/types/components/ResultItem/styled.d.ts +7 -7
- package/dist/types/components/Search/styled.d.ts +7 -7
- package/dist/types-ts4.5/components/ResultItem/styled.d.ts +7 -7
- package/dist/types-ts4.5/components/Search/styled.d.ts +7 -7
- package/package.json +5 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,41 @@
|
|
|
1
1
|
# @atlaskit/quick-search
|
|
2
2
|
|
|
3
|
+
## 8.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#39787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39787) [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
|
|
14
|
+
|
|
3
15
|
## 8.1.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
|
-
- [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
19
|
+
- [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
|
|
8
20
|
- Updated dependencies
|
|
9
21
|
|
|
10
22
|
## 8.1.2
|
|
11
23
|
|
|
12
24
|
### Patch Changes
|
|
13
25
|
|
|
14
|
-
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
26
|
+
- [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
15
27
|
|
|
16
28
|
## 8.1.1
|
|
17
29
|
|
|
18
30
|
### Patch Changes
|
|
19
31
|
|
|
20
|
-
- [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
32
|
+
- [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
|
|
21
33
|
|
|
22
34
|
## 8.1.0
|
|
23
35
|
|
|
24
36
|
### Minor Changes
|
|
25
37
|
|
|
26
|
-
- [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
38
|
+
- [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
|
|
27
39
|
|
|
28
40
|
### Patch Changes
|
|
29
41
|
|
|
@@ -33,25 +45,25 @@
|
|
|
33
45
|
|
|
34
46
|
### Patch Changes
|
|
35
47
|
|
|
36
|
-
- [`be610dca836`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be610dca836) - [ux] replace deprecated placeholder theme with tokens
|
|
48
|
+
- [#33004](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33004) [`be610dca836`](https://bitbucket.org/atlassian/atlassian-frontend/commits/be610dca836) - [ux] replace deprecated placeholder theme with tokens
|
|
37
49
|
|
|
38
50
|
## 8.0.14
|
|
39
51
|
|
|
40
52
|
### Patch Changes
|
|
41
53
|
|
|
42
|
-
- [`1378b2a7308`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1378b2a7308) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
54
|
+
- [#32031](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/32031) [`1378b2a7308`](https://bitbucket.org/atlassian/atlassian-frontend/commits/1378b2a7308) - Migrated use of `gridSize` to space tokens where possible. There is no expected visual or behaviour change.
|
|
43
55
|
|
|
44
56
|
## 8.0.13
|
|
45
57
|
|
|
46
58
|
### Patch Changes
|
|
47
59
|
|
|
48
|
-
- [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
60
|
+
- [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
|
|
49
61
|
|
|
50
62
|
## 8.0.12
|
|
51
63
|
|
|
52
64
|
### Patch Changes
|
|
53
65
|
|
|
54
|
-
- [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
66
|
+
- [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
|
|
55
67
|
|
|
56
68
|
## 8.0.11
|
|
57
69
|
|
|
@@ -63,7 +75,7 @@
|
|
|
63
75
|
|
|
64
76
|
### Patch Changes
|
|
65
77
|
|
|
66
|
-
- [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
78
|
+
- [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
|
|
67
79
|
|
|
68
80
|
## 8.0.9
|
|
69
81
|
|
|
@@ -75,14 +87,14 @@
|
|
|
75
87
|
|
|
76
88
|
### Patch Changes
|
|
77
89
|
|
|
78
|
-
- [`ea354666ca2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea354666ca2) - Added testid to default ObjectResult's AvatarImage.
|
|
90
|
+
- [#13864](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13864) [`ea354666ca2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/ea354666ca2) - Added testid to default ObjectResult's AvatarImage.
|
|
79
91
|
- Updated dependencies
|
|
80
92
|
|
|
81
93
|
## 8.0.7
|
|
82
94
|
|
|
83
95
|
### Patch Changes
|
|
84
96
|
|
|
85
|
-
- [`524b20aff9a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/524b20aff9a) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
|
|
97
|
+
- [#13136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13136) [`524b20aff9a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/524b20aff9a) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
|
|
86
98
|
- [`3c0349f272a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c0349f272a) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
|
|
87
99
|
- [`591d34f966f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/591d34f966f) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
|
|
88
100
|
|
|
@@ -90,20 +102,20 @@
|
|
|
90
102
|
|
|
91
103
|
### Patch Changes
|
|
92
104
|
|
|
93
|
-
- [`7fc13cf50a2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fc13cf50a2) - Fixes interal test referencing a compponent directly.
|
|
105
|
+
- [#11113](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/11113) [`7fc13cf50a2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7fc13cf50a2) - Fixes interal test referencing a compponent directly.
|
|
94
106
|
- Updated dependencies
|
|
95
107
|
|
|
96
108
|
## 8.0.5
|
|
97
109
|
|
|
98
110
|
### Patch Changes
|
|
99
111
|
|
|
100
|
-
- [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
112
|
+
- [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
|
|
101
113
|
|
|
102
114
|
## 8.0.4
|
|
103
115
|
|
|
104
116
|
### Patch Changes
|
|
105
117
|
|
|
106
|
-
- [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
118
|
+
- [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
|
|
107
119
|
This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
|
|
108
120
|
Also add `typescript` to `devDependencies` to denote version that the package was built with.
|
|
109
121
|
|
|
@@ -117,7 +129,7 @@
|
|
|
117
129
|
|
|
118
130
|
### Patch Changes
|
|
119
131
|
|
|
120
|
-
- [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
132
|
+
- [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
|
|
121
133
|
|
|
122
134
|
Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
|
|
123
135
|
to prevent duplicates of tslib being bundled.
|
|
@@ -132,7 +144,7 @@
|
|
|
132
144
|
|
|
133
145
|
### Major Changes
|
|
134
146
|
|
|
135
|
-
- [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
147
|
+
- [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
|
|
136
148
|
For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
|
|
137
149
|
|
|
138
150
|
### Patch Changes
|
|
@@ -155,13 +167,13 @@
|
|
|
155
167
|
|
|
156
168
|
### Patch Changes
|
|
157
169
|
|
|
158
|
-
- [`649f69b6d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/649f69b6d7) - Patch all packages that are used by confluence that have a broken es2019 dist
|
|
170
|
+
- [#2430](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2430) [`649f69b6d7`](https://bitbucket.org/atlassian/atlassian-frontend/commits/649f69b6d7) - Patch all packages that are used by confluence that have a broken es2019 dist
|
|
159
171
|
|
|
160
172
|
## 7.8.6
|
|
161
173
|
|
|
162
174
|
### Patch Changes
|
|
163
175
|
|
|
164
|
-
- [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
176
|
+
- [#2099](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/2099) [`131cee6d7a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/131cee6d7a) - Add missing tslib dependency
|
|
165
177
|
|
|
166
178
|
## 7.8.5
|
|
167
179
|
|
|
@@ -19,8 +19,8 @@ var _Search = _interopRequireDefault(require("./Search/Search"));
|
|
|
19
19
|
var _context = require("./context");
|
|
20
20
|
var _decorateWithAnalyticsData = _interopRequireDefault(require("./decorateWithAnalyticsData"));
|
|
21
21
|
var _constants = require("./constants");
|
|
22
|
-
function ownKeys(
|
|
23
|
-
function _objectSpread(
|
|
22
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
23
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
24
24
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
25
25
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
26
26
|
/**
|
|
@@ -76,7 +76,7 @@ var adjustIndex = function adjustIndex(arrayLength, currentIndex, adjustment) {
|
|
|
76
76
|
// Correct for negative indices
|
|
77
77
|
return adjustedIndex >= 0 ? adjustedIndex : adjustedIndex + arrayLength;
|
|
78
78
|
};
|
|
79
|
-
var QuickSearch = /*#__PURE__*/function (_React$Component) {
|
|
79
|
+
var QuickSearch = exports.QuickSearch = /*#__PURE__*/function (_React$Component) {
|
|
80
80
|
(0, _inherits2.default)(QuickSearch, _React$Component);
|
|
81
81
|
var _super = _createSuper(QuickSearch);
|
|
82
82
|
function QuickSearch(props) {
|
|
@@ -395,7 +395,6 @@ var QuickSearch = /*#__PURE__*/function (_React$Component) {
|
|
|
395
395
|
* `withAnalytics` - Injects analytics firing methods that are picked up by
|
|
396
396
|
* @atlaskit/analytics/AnalyticsListener.
|
|
397
397
|
*/
|
|
398
|
-
exports.QuickSearch = QuickSearch;
|
|
399
398
|
(0, _defineProperty2.default)(QuickSearch, "defaultProps", {
|
|
400
399
|
children: [],
|
|
401
400
|
firePrivateAnalyticsEvent: function firePrivateAnalyticsEvent(_) {},
|
|
@@ -406,7 +405,6 @@ exports.QuickSearch = QuickSearch;
|
|
|
406
405
|
placeholder: 'Search',
|
|
407
406
|
value: ''
|
|
408
407
|
});
|
|
409
|
-
var _default = (0, _decorateWithAnalyticsData.default)(
|
|
408
|
+
var _default = exports.default = (0, _decorateWithAnalyticsData.default)(
|
|
410
409
|
// @ts-ignore
|
|
411
|
-
(0, _analytics.withAnalytics)(QuickSearch, {}, {}));
|
|
412
|
-
exports.default = _default;
|
|
410
|
+
(0, _analytics.withAnalytics)(QuickSearch, {}, {}));
|
|
@@ -15,7 +15,7 @@ var _item = require("@atlaskit/item");
|
|
|
15
15
|
var _styled = require("./styled");
|
|
16
16
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
17
17
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
18
|
-
var ResultItemGroup = /*#__PURE__*/function (_React$Component) {
|
|
18
|
+
var ResultItemGroup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
19
19
|
(0, _inherits2.default)(ResultItemGroup, _React$Component);
|
|
20
20
|
var _super = _createSuper(ResultItemGroup);
|
|
21
21
|
function ResultItemGroup() {
|
|
@@ -35,5 +35,4 @@ var ResultItemGroup = /*#__PURE__*/function (_React$Component) {
|
|
|
35
35
|
}
|
|
36
36
|
}]);
|
|
37
37
|
return ResultItemGroup;
|
|
38
|
-
}(_react.default.Component);
|
|
39
|
-
exports.default = ResultItemGroup;
|
|
38
|
+
}(_react.default.Component);
|
|
@@ -9,22 +9,14 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
11
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
12
|
-
var ResultItemGroupHeader = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left:
|
|
13
|
-
exports.
|
|
14
|
-
var
|
|
15
|
-
exports.ResultItemGroupTitle = ResultItemGroupTitle;
|
|
16
|
-
var ResultItemAfter = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n min-width: ", ";\n"])), function (_ref) {
|
|
12
|
+
var ResultItemGroupHeader = exports.ResultItemGroupHeader = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n margin-left: ", ";\n margin-top: ", ";\n"])), "var(--ds-space-negative-150, -12px)", "var(--ds-space-150, 12px)");
|
|
13
|
+
var ResultItemGroupTitle = exports.ResultItemGroupTitle = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 11px;\n line-height: ", ";\n font-weight: 600;\n"])), "var(--ds-font-lineHeight-100, 16px)");
|
|
14
|
+
var ResultItemAfter = exports.ResultItemAfter = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n min-width: ", ";\n"])), function (_ref) {
|
|
17
15
|
var shouldTakeSpace = _ref.shouldTakeSpace;
|
|
18
16
|
return shouldTakeSpace ? '24px' : 0;
|
|
19
17
|
});
|
|
20
|
-
exports.
|
|
21
|
-
var
|
|
22
|
-
exports.
|
|
23
|
-
var
|
|
24
|
-
exports.
|
|
25
|
-
var ResultItemSubText = _styledComponents.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n color: ", ";\n"])), _colors.N200);
|
|
26
|
-
exports.ResultItemSubText = ResultItemSubText;
|
|
27
|
-
var ResultItemIcon = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: padding 200ms;\n\n > * {\n flex: 1 0 auto;\n }\n\n /* We need to ensure that any image passed in as a child (<img/>, <svg/>\n etc.) receives the correct width, height and border radius. We don't\n currently assume that the image passed in is the correct dimensions, or has\n width / height 100% */\n > img {\n height: ", ";\n width: ", ";\n }\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
28
|
-
exports.ResultItemIcon = ResultItemIcon;
|
|
29
|
-
var ResultItemTextAfter = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n z-index: 1;\n"])));
|
|
30
|
-
exports.ResultItemTextAfter = ResultItemTextAfter;
|
|
18
|
+
var ResultItemAfterWrapper = exports.ResultItemAfterWrapper = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n"])));
|
|
19
|
+
var ResultItemCaption = exports.ResultItemCaption = _styledComponents.default.span(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n font-size: 12px;\n margin-left: ", ";\n"])), _colors.N200, "var(--ds-space-100, 8px)");
|
|
20
|
+
var ResultItemSubText = exports.ResultItemSubText = _styledComponents.default.span(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n color: ", ";\n"])), _colors.N200);
|
|
21
|
+
var ResultItemIcon = exports.ResultItemIcon = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n transition: padding 200ms;\n\n > * {\n flex: 1 0 auto;\n }\n\n /* We need to ensure that any image passed in as a child (<img/>, <svg/>\n etc.) receives the correct width, height and border radius. We don't\n currently assume that the image passed in is the correct dimensions, or has\n width / height 100% */\n > img {\n height: ", ";\n width: ", ";\n }\n"])), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)");
|
|
22
|
+
var ResultItemTextAfter = exports.ResultItemTextAfter = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n z-index: 1;\n"])));
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
23
23
|
/**
|
|
24
24
|
* Generic result type for Atlassian containers.
|
|
25
25
|
*/
|
|
26
|
-
var ContainerResult = /*#__PURE__*/function (_React$PureComponent) {
|
|
26
|
+
var ContainerResult = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
27
27
|
(0, _inherits2.default)(ContainerResult, _React$PureComponent);
|
|
28
28
|
var _super = _createSuper(ContainerResult);
|
|
29
29
|
function ContainerResult() {
|
|
@@ -66,5 +66,4 @@ var ContainerResult = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
66
66
|
}
|
|
67
67
|
}]);
|
|
68
68
|
return ContainerResult;
|
|
69
|
-
}(_react.default.PureComponent);
|
|
70
|
-
exports.default = ContainerResult;
|
|
69
|
+
}(_react.default.PureComponent);
|
|
@@ -23,7 +23,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
23
23
|
/**
|
|
24
24
|
* Generic result type for Atlassian objects.
|
|
25
25
|
*/
|
|
26
|
-
var ObjectResult = /*#__PURE__*/function (_React$PureComponent) {
|
|
26
|
+
var ObjectResult = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
27
27
|
(0, _inherits2.default)(ObjectResult, _React$PureComponent);
|
|
28
28
|
var _super = _createSuper(ObjectResult);
|
|
29
29
|
function ObjectResult() {
|
|
@@ -79,5 +79,4 @@ var ObjectResult = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
79
79
|
}
|
|
80
80
|
}]);
|
|
81
81
|
return ObjectResult;
|
|
82
|
-
}(_react.default.PureComponent);
|
|
83
|
-
exports.default = ObjectResult;
|
|
82
|
+
}(_react.default.PureComponent);
|
|
@@ -20,7 +20,7 @@ var _ResultBase = _interopRequireDefault(require("./ResultBase"));
|
|
|
20
20
|
var _excluded = ["name", "mentionName", "mentionPrefix", "presenceMessage", "presenceState", "type"];
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
|
-
var PersonResult = /*#__PURE__*/function (_React$PureComponent) {
|
|
23
|
+
var PersonResult = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
24
24
|
(0, _inherits2.default)(PersonResult, _React$PureComponent);
|
|
25
25
|
var _super = _createSuper(PersonResult);
|
|
26
26
|
function PersonResult() {
|
|
@@ -68,7 +68,6 @@ var PersonResult = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
68
68
|
}]);
|
|
69
69
|
return PersonResult;
|
|
70
70
|
}(_react.default.PureComponent);
|
|
71
|
-
exports.default = PersonResult;
|
|
72
71
|
(0, _defineProperty2.default)(PersonResult, "defaultProps", {
|
|
73
72
|
mentionPrefix: '@',
|
|
74
73
|
presenceState: null // No presence indicator by default
|
|
@@ -17,13 +17,13 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
17
17
|
var _constants = require("../constants");
|
|
18
18
|
var _ResultItem = _interopRequireDefault(require("../ResultItem/ResultItem"));
|
|
19
19
|
var _context = require("../context");
|
|
20
|
-
function ownKeys(
|
|
21
|
-
function _objectSpread(
|
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
24
|
// context is an optional prop but the component provides a defaultProp. However, TS still complains
|
|
25
25
|
// when you don't pass it. There doesn't seem to be a better way of declaring optional default props.
|
|
26
|
-
var ResultBase = /*#__PURE__*/function (_React$PureComponent) {
|
|
26
|
+
var ResultBase = exports.ResultBase = /*#__PURE__*/function (_React$PureComponent) {
|
|
27
27
|
(0, _inherits2.default)(ResultBase, _React$PureComponent);
|
|
28
28
|
var _super = _createSuper(ResultBase);
|
|
29
29
|
function ResultBase() {
|
|
@@ -151,7 +151,6 @@ var ResultBase = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
151
151
|
}]);
|
|
152
152
|
return ResultBase;
|
|
153
153
|
}(_react.default.PureComponent);
|
|
154
|
-
exports.ResultBase = ResultBase;
|
|
155
154
|
(0, _defineProperty2.default)(ResultBase, "defaultProps", {
|
|
156
155
|
type: 'base',
|
|
157
156
|
context: {
|
|
@@ -167,11 +166,10 @@ exports.ResultBase = ResultBase;
|
|
|
167
166
|
},
|
|
168
167
|
analyticsData: {}
|
|
169
168
|
});
|
|
170
|
-
var _default = function _default(props) {
|
|
169
|
+
var _default = exports.default = function _default(props) {
|
|
171
170
|
return /*#__PURE__*/_react.default.createElement(_context.ResultContext.Consumer, null, function (context) {
|
|
172
171
|
return /*#__PURE__*/_react.default.createElement(ResultBase, (0, _extends2.default)({
|
|
173
172
|
context: context
|
|
174
173
|
}, props));
|
|
175
174
|
});
|
|
176
|
-
};
|
|
177
|
-
exports.default = _default;
|
|
175
|
+
};
|
|
@@ -20,10 +20,9 @@ var _styled = require("./styled");
|
|
|
20
20
|
var _templateObject;
|
|
21
21
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
22
22
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
23
|
-
var controlKeys = ['ArrowUp', 'ArrowDown', 'Enter', 'Tab', 'ArrowRight'];
|
|
24
|
-
exports.controlKeys = controlKeys;
|
|
23
|
+
var controlKeys = exports.controlKeys = ['ArrowUp', 'ArrowDown', 'Enter', 'Tab', 'ArrowRight'];
|
|
25
24
|
var SpinnerParent = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n height: 20px;\n margin-left: 10px;\n margin-top: 10px;\n"])));
|
|
26
|
-
var Search = /*#__PURE__*/function (_React$PureComponent) {
|
|
25
|
+
var Search = exports.default = /*#__PURE__*/function (_React$PureComponent) {
|
|
27
26
|
(0, _inherits2.default)(Search, _React$PureComponent);
|
|
28
27
|
var _super = _createSuper(Search);
|
|
29
28
|
function Search() {
|
|
@@ -87,7 +86,6 @@ var Search = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
87
86
|
}]);
|
|
88
87
|
return Search;
|
|
89
88
|
}(_react.default.PureComponent);
|
|
90
|
-
exports.default = Search;
|
|
91
89
|
(0, _defineProperty2.default)(Search, "defaultProps", {
|
|
92
90
|
isLoading: false,
|
|
93
91
|
onBlur: function onBlur() {},
|
|
@@ -13,24 +13,15 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4, _temp
|
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
15
|
var inputRightPadding = "var(--ds-space-200, 16px)";
|
|
16
|
-
var SearchBox = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: sticky;\n top: 0;\n background-color: ", ";\n color: ", ";\n display: flex;\n height: 36px;\n z-index: 10; /* required to keep the search box on top of icons in results when sticky */\n"])), _colors.N0, _colors.N500);
|
|
17
|
-
exports.
|
|
18
|
-
var
|
|
19
|
-
exports.
|
|
20
|
-
var
|
|
21
|
-
exports.SearchFieldBaseInner = SearchFieldBaseInner;
|
|
22
|
-
var SearchInner = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding-right: ", ";\n"])), "var(--ds-space-300, 24px)");
|
|
23
|
-
exports.SearchInner = SearchInner;
|
|
24
|
-
var getPlaceholderStyle = function getPlaceholderStyle(style) {
|
|
16
|
+
var SearchBox = exports.SearchBox = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: sticky;\n top: 0;\n background-color: ", ";\n color: ", ";\n display: flex;\n height: 36px;\n z-index: 10; /* required to keep the search box on top of icons in results when sticky */\n"])), _colors.N0, _colors.N500);
|
|
17
|
+
var SearchFieldBaseOuter = exports.SearchFieldBaseOuter = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex: 1;\n margin-right: auto;\n padding-bottom: 2px;\n border-bottom: 2px solid ", ";\n"])), _colors.B200);
|
|
18
|
+
var SearchFieldBaseInner = exports.SearchFieldBaseInner = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: center;\n padding-right: ", "; /* pad search text from FieldBase's isLoading spinner */\n display: flex;\n flex-grow: 1;\n"])), inputRightPadding);
|
|
19
|
+
var SearchInner = exports.SearchInner = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n padding-right: ", ";\n"])), "var(--ds-space-300, 24px)");
|
|
20
|
+
var getPlaceholderStyle = exports.getPlaceholderStyle = function getPlaceholderStyle(style) {
|
|
25
21
|
return (0, _styledComponents.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n &::-webkit-input-placeholder {\n ", ";\n }\n &::-moz-placeholder {\n /* Mozilla Firefox 19+ */\n ", " opacity: 1;\n }\n &::-ms-input-placeholder {\n /* Microsoft Edge */\n ", ";\n }\n &:-moz-placeholder {\n /* Mozilla Firefox 4 to 18 */\n ", " opacity: 1;\n }\n &:-ms-input-placeholder {\n /* Internet Explorer 10-11 */\n ", ";\n }\n"])), style, style, style, style, style);
|
|
26
22
|
};
|
|
27
|
-
exports.
|
|
28
|
-
var
|
|
29
|
-
exports.
|
|
30
|
-
var
|
|
31
|
-
exports.SearchInput = SearchInput;
|
|
32
|
-
var SearchInputTypeAhead = (0, _styledComponents.default)(SearchInput)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n position: absolute;\n width: calc(100% - ", ");\n z-index: -1;\n"])), _colors.N50, inputRightPadding);
|
|
33
|
-
exports.SearchInputTypeAhead = SearchInputTypeAhead;
|
|
34
|
-
var SearchInputControlsContainer = _styledComponents.default.span(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n padding-left: ", ";\n"])), "var(--ds-space-300, 24px)");
|
|
35
|
-
exports.SearchInputControlsContainer = SearchInputControlsContainer;
|
|
23
|
+
var getPlaceholderColor = exports.getPlaceholderColor = (0, _styledComponents.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n"])), "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
|
|
24
|
+
var SearchInput = exports.SearchInput = _styledComponents.default.input(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n background-color: transparent;\n border: 0;\n color: ", ";\n flex-grow: 1;\n font-size: 1.4em;\n outline: 0;\n // Safari adds 2px margin-left\n margin-left: 0;\n ", ";\n"])), _colors.N500, getPlaceholderStyle(getPlaceholderColor));
|
|
25
|
+
var SearchInputTypeAhead = exports.SearchInputTypeAhead = (0, _styledComponents.default)(SearchInput)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n color: ", ";\n position: absolute;\n width: calc(100% - ", ");\n z-index: -1;\n"])), _colors.N50, inputRightPadding);
|
|
26
|
+
var SearchInputControlsContainer = exports.SearchInputControlsContainer = _styledComponents.default.span(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n padding-left: ", ";\n"])), "var(--ds-space-300, 24px)");
|
|
36
27
|
SearchInputControlsContainer.displayName = 'SearchInputControlsContainer'; // required for testing
|
|
@@ -5,15 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.QS_ANALYTICS_EV_SUBMIT = exports.QS_ANALYTICS_EV_QUERY_ENTERED = exports.QS_ANALYTICS_EV_OPEN = exports.QS_ANALYTICS_EV_KB_CTRLS_USED = exports.QS_ANALYTICS_EV_CLOSE = exports.ATLASKIT_QUICKSEARCH_NS = void 0;
|
|
7
7
|
/* eslint-disable import/prefer-default-export */
|
|
8
|
-
var ATLASKIT_QUICKSEARCH_NS = 'atlaskit.navigation.quick-search';
|
|
9
|
-
exports.
|
|
10
|
-
var
|
|
11
|
-
exports.
|
|
12
|
-
var
|
|
13
|
-
exports.
|
|
14
|
-
var QS_ANALYTICS_EV_OPEN = "".concat(ATLASKIT_QUICKSEARCH_NS, ".open");
|
|
15
|
-
exports.QS_ANALYTICS_EV_OPEN = QS_ANALYTICS_EV_OPEN;
|
|
16
|
-
var QS_ANALYTICS_EV_QUERY_ENTERED = "".concat(ATLASKIT_QUICKSEARCH_NS, ".query-entered");
|
|
17
|
-
exports.QS_ANALYTICS_EV_QUERY_ENTERED = QS_ANALYTICS_EV_QUERY_ENTERED;
|
|
18
|
-
var QS_ANALYTICS_EV_SUBMIT = "".concat(ATLASKIT_QUICKSEARCH_NS, ".submit");
|
|
19
|
-
exports.QS_ANALYTICS_EV_SUBMIT = QS_ANALYTICS_EV_SUBMIT;
|
|
8
|
+
var ATLASKIT_QUICKSEARCH_NS = exports.ATLASKIT_QUICKSEARCH_NS = 'atlaskit.navigation.quick-search';
|
|
9
|
+
var QS_ANALYTICS_EV_CLOSE = exports.QS_ANALYTICS_EV_CLOSE = "".concat(ATLASKIT_QUICKSEARCH_NS, ".close");
|
|
10
|
+
var QS_ANALYTICS_EV_KB_CTRLS_USED = exports.QS_ANALYTICS_EV_KB_CTRLS_USED = "".concat(ATLASKIT_QUICKSEARCH_NS, ".keyboard-controls-used");
|
|
11
|
+
var QS_ANALYTICS_EV_OPEN = exports.QS_ANALYTICS_EV_OPEN = "".concat(ATLASKIT_QUICKSEARCH_NS, ".open");
|
|
12
|
+
var QS_ANALYTICS_EV_QUERY_ENTERED = exports.QS_ANALYTICS_EV_QUERY_ENTERED = "".concat(ATLASKIT_QUICKSEARCH_NS, ".query-entered");
|
|
13
|
+
var QS_ANALYTICS_EV_SUBMIT = exports.QS_ANALYTICS_EV_SUBMIT = "".concat(ATLASKIT_QUICKSEARCH_NS, ".submit");
|
|
@@ -16,7 +16,5 @@ var defaultState = {
|
|
|
16
16
|
return Number(n);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
var ResultContext = /*#__PURE__*/_react.default.createContext(defaultState);
|
|
20
|
-
exports.
|
|
21
|
-
var SelectedResultIdContext = /*#__PURE__*/_react.default.createContext(null);
|
|
22
|
-
exports.SelectedResultIdContext = SelectedResultIdContext;
|
|
19
|
+
var ResultContext = exports.ResultContext = /*#__PURE__*/_react.default.createContext(defaultState);
|
|
20
|
+
var SelectedResultIdContext = exports.SelectedResultIdContext = /*#__PURE__*/_react.default.createContext(null);
|
|
@@ -8,10 +8,9 @@ exports.default = void 0;
|
|
|
8
8
|
* Heuristically check whether an element is a react element or not.
|
|
9
9
|
* React elements have constructors for their type property but native elements use strings.
|
|
10
10
|
*/
|
|
11
|
-
var _default = function _default(element) {
|
|
11
|
+
var _default = exports.default = function _default(element) {
|
|
12
12
|
var type = element && element.type;
|
|
13
13
|
var hasFunctionAsType = !!type && typeof type === 'function';
|
|
14
14
|
var hasProps = element && element.props;
|
|
15
15
|
return hasFunctionAsType && hasProps;
|
|
16
|
-
};
|
|
17
|
-
exports.default = _default;
|
|
16
|
+
};
|
|
@@ -2,7 +2,7 @@ import styled from 'styled-components';
|
|
|
2
2
|
import { N200 } from '@atlaskit/theme/colors';
|
|
3
3
|
export const ResultItemGroupHeader = styled.div`
|
|
4
4
|
display: flex;
|
|
5
|
-
margin-left:
|
|
5
|
+
margin-left: ${"var(--ds-space-negative-150, -12px)"};
|
|
6
6
|
margin-top: ${"var(--ds-space-150, 12px)"};
|
|
7
7
|
`;
|
|
8
8
|
export const ResultItemGroupTitle = styled.div`
|
|
@@ -5,8 +5,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
5
5
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
6
6
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
8
|
-
function ownKeys(
|
|
9
|
-
function _objectSpread(
|
|
8
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
9
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
10
10
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
11
11
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
12
12
|
import React from 'react';
|
|
@@ -2,7 +2,7 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8;
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { N200 } from '@atlaskit/theme/colors';
|
|
5
|
-
export var ResultItemGroupHeader = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-left:
|
|
5
|
+
export var ResultItemGroupHeader = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-left: ", ";\n margin-top: ", ";\n"])), "var(--ds-space-negative-150, -12px)", "var(--ds-space-150, 12px)");
|
|
6
6
|
export var ResultItemGroupTitle = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n font-size: 11px;\n line-height: ", ";\n font-weight: 600;\n"])), "var(--ds-font-lineHeight-100, 16px)");
|
|
7
7
|
export var ResultItemAfter = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n min-width: ", ";\n"])), function (_ref) {
|
|
8
8
|
var shouldTakeSpace = _ref.shouldTakeSpace;
|
|
@@ -6,8 +6,8 @@ import _inherits from "@babel/runtime/helpers/inherits";
|
|
|
6
6
|
import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
|
|
7
7
|
import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
|
|
8
8
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
9
|
-
function ownKeys(
|
|
10
|
-
function _objectSpread(
|
|
9
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
10
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
13
|
import React from 'react';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ResultItemGroupHeader: import("styled-components").StyledComponentClass<import("react").
|
|
3
|
-
export declare const ResultItemGroupTitle: import("styled-components").StyledComponentClass<import("react").
|
|
2
|
+
export declare const ResultItemGroupHeader: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
3
|
+
export declare const ResultItemGroupTitle: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
4
4
|
export declare const ResultItemAfter: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
shouldTakeSpace: boolean;
|
|
6
6
|
}, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
7
7
|
shouldTakeSpace: boolean;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const ResultItemAfterWrapper: import("styled-components").StyledComponentClass<import("react").
|
|
10
|
-
export declare const ResultItemCaption: import("styled-components").StyledComponentClass<import("react").
|
|
11
|
-
export declare const ResultItemSubText: import("styled-components").StyledComponentClass<import("react").
|
|
12
|
-
export declare const ResultItemIcon: import("styled-components").StyledComponentClass<import("react").
|
|
13
|
-
export declare const ResultItemTextAfter: import("styled-components").StyledComponentClass<import("react").
|
|
9
|
+
export declare const ResultItemAfterWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
10
|
+
export declare const ResultItemCaption: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
11
|
+
export declare const ResultItemSubText: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
12
|
+
export declare const ResultItemIcon: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
13
|
+
export declare const ResultItemTextAfter: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SearchBox: import("styled-components").StyledComponentClass<import("react").
|
|
3
|
-
export declare const SearchFieldBaseOuter: import("styled-components").StyledComponentClass<import("react").
|
|
4
|
-
export declare const SearchFieldBaseInner: import("styled-components").StyledComponentClass<import("react").
|
|
5
|
-
export declare const SearchInner: import("styled-components").StyledComponentClass<import("react").
|
|
2
|
+
export declare const SearchBox: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
3
|
+
export declare const SearchFieldBaseOuter: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
4
|
+
export declare const SearchFieldBaseInner: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
5
|
+
export declare const SearchInner: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
6
6
|
export declare const getPlaceholderStyle: (style: any) => import("styled-components").InterpolationValue[];
|
|
7
7
|
export declare const getPlaceholderColor: import("styled-components").InterpolationValue[];
|
|
8
|
-
export declare const SearchInput: import("styled-components").StyledComponentClass<import("react").
|
|
9
|
-
export declare const SearchInputTypeAhead: import("styled-components").StyledComponentClass<import("react").
|
|
10
|
-
export declare const SearchInputControlsContainer: import("styled-components").StyledComponentClass<import("react").
|
|
8
|
+
export declare const SearchInput: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, any, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
|
|
9
|
+
export declare const SearchInputTypeAhead: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, any, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
|
|
10
|
+
export declare const SearchInputControlsContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const ResultItemGroupHeader: import("styled-components").StyledComponentClass<import("react").
|
|
3
|
-
export declare const ResultItemGroupTitle: import("styled-components").StyledComponentClass<import("react").
|
|
2
|
+
export declare const ResultItemGroupHeader: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
3
|
+
export declare const ResultItemGroupTitle: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
4
4
|
export declare const ResultItemAfter: import("styled-components").StyledComponentClass<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
shouldTakeSpace: boolean;
|
|
6
6
|
}, any, import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
7
7
|
shouldTakeSpace: boolean;
|
|
8
8
|
}>;
|
|
9
|
-
export declare const ResultItemAfterWrapper: import("styled-components").StyledComponentClass<import("react").
|
|
10
|
-
export declare const ResultItemCaption: import("styled-components").StyledComponentClass<import("react").
|
|
11
|
-
export declare const ResultItemSubText: import("styled-components").StyledComponentClass<import("react").
|
|
12
|
-
export declare const ResultItemIcon: import("styled-components").StyledComponentClass<import("react").
|
|
13
|
-
export declare const ResultItemTextAfter: import("styled-components").StyledComponentClass<import("react").
|
|
9
|
+
export declare const ResultItemAfterWrapper: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
10
|
+
export declare const ResultItemCaption: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
11
|
+
export declare const ResultItemSubText: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
|
12
|
+
export declare const ResultItemIcon: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
13
|
+
export declare const ResultItemTextAfter: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const SearchBox: import("styled-components").StyledComponentClass<import("react").
|
|
3
|
-
export declare const SearchFieldBaseOuter: import("styled-components").StyledComponentClass<import("react").
|
|
4
|
-
export declare const SearchFieldBaseInner: import("styled-components").StyledComponentClass<import("react").
|
|
5
|
-
export declare const SearchInner: import("styled-components").StyledComponentClass<import("react").
|
|
2
|
+
export declare const SearchBox: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
3
|
+
export declare const SearchFieldBaseOuter: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
4
|
+
export declare const SearchFieldBaseInner: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
5
|
+
export declare const SearchInner: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>>;
|
|
6
6
|
export declare const getPlaceholderStyle: (style: any) => import("styled-components").InterpolationValue[];
|
|
7
7
|
export declare const getPlaceholderColor: import("styled-components").InterpolationValue[];
|
|
8
|
-
export declare const SearchInput: import("styled-components").StyledComponentClass<import("react").
|
|
9
|
-
export declare const SearchInputTypeAhead: import("styled-components").StyledComponentClass<import("react").
|
|
10
|
-
export declare const SearchInputControlsContainer: import("styled-components").StyledComponentClass<import("react").
|
|
8
|
+
export declare const SearchInput: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, any, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
|
|
9
|
+
export declare const SearchInputTypeAhead: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, any, import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>>;
|
|
10
|
+
export declare const SearchInputControlsContainer: import("styled-components").StyledComponentClass<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, any, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/quick-search",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.5",
|
|
4
4
|
"description": "A quick-search component",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@atlaskit/analytics": "^8.1.0",
|
|
34
|
-
"@atlaskit/avatar": "^21.
|
|
34
|
+
"@atlaskit/avatar": "^21.4.0",
|
|
35
35
|
"@atlaskit/item": "^12.1.0",
|
|
36
|
-
"@atlaskit/spinner": "^
|
|
37
|
-
"@atlaskit/theme": "^12.
|
|
38
|
-
"@atlaskit/tokens": "^1.
|
|
36
|
+
"@atlaskit/spinner": "^16.0.0",
|
|
37
|
+
"@atlaskit/theme": "^12.6.0",
|
|
38
|
+
"@atlaskit/tokens": "^1.28.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"keycode": "^2.1.7"
|
|
41
41
|
},
|
|
@@ -44,7 +44,6 @@
|
|
|
44
44
|
"styled-components": "^3.2.6"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@atlaskit/avatar": "^21.3.0",
|
|
48
47
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
49
48
|
"enzyme": "^3.10.0",
|
|
50
49
|
"prop-types": "^15.5.10",
|