@atlaskit/quick-search 10.5.0 → 10.5.2

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @atlaskit/quick-search
2
2
 
3
+ ## 10.5.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 10.5.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`4df2d7549b0d8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/4df2d7549b0d8) -
14
+ Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
15
+ - Updated dependencies
16
+
3
17
  ## 10.5.0
4
18
 
5
19
  ### Minor Changes
@@ -6,9 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.ResultItemTextAfter = exports.ResultItemSubText = exports.ResultItemIcon = exports.ResultItemCaption = exports.ResultItemAfterWrapper = exports.ResultItemAfter = void 0;
8
8
  var _styledComponents = _interopRequireDefault(require("styled-components"));
9
- var _colors = require("@atlaskit/theme/colors");
10
9
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
10
 
11
+ // Copied from `@atlaskit/theme` to allow removal of that package
12
+ var N200 = '#6B778C';
13
+
12
14
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
13
15
  var ResultItemAfter = exports.ResultItemAfter = _styledComponents.default.div(function (props) {
14
16
  return {
@@ -24,7 +26,7 @@ var ResultItemAfterWrapper = exports.ResultItemAfterWrapper = _styledComponents.
24
26
 
25
27
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
28
  var ResultItemCaption = exports.ResultItemCaption = _styledComponents.default.span({
27
- color: _colors.N200,
29
+ color: N200,
28
30
  font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
29
31
  marginLeft: "var(--ds-space-100, 8px)"
30
32
  });
@@ -32,7 +34,7 @@ var ResultItemCaption = exports.ResultItemCaption = _styledComponents.default.sp
32
34
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
33
35
  var ResultItemSubText = exports.ResultItemSubText = _styledComponents.default.span({
34
36
  font: "var(--ds-font-body-small, normal 400 12px/16px \"Atlassian Sans\", ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, \"Helvetica Neue\", sans-serif)",
35
- color: _colors.N200
37
+ color: N200
36
38
  });
37
39
 
38
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -8,17 +8,21 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.getPlaceholderStyle = exports.getPlaceholderColor = exports.SearchInputTypeAhead = exports.SearchInputControlsContainer = exports.SearchInput = exports.SearchInner = exports.SearchFieldBaseOuter = exports.SearchFieldBaseInner = exports.SearchBox = void 0;
9
9
  var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
10
10
  var _styledComponents = _interopRequireWildcard(require("styled-components"));
11
- var _colors = require("@atlaskit/theme/colors");
12
11
  var _templateObject, _templateObject2; // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
12
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
13
+ // Copied from `@atlaskit/theme` to allow removal of that package
14
+ var B200 = '#2684FF';
15
+ var N0 = '#FFFFFF';
16
+ var N500 = '#42526E';
17
+ var N50 = '#C1C7D0';
14
18
  var inputRightPadding = "var(--ds-space-200, 16px)";
15
19
 
16
20
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
17
21
  var SearchBox = exports.SearchBox = _styledComponents.default.div({
18
22
  position: 'sticky',
19
23
  top: 0,
20
- backgroundColor: _colors.N0,
21
- color: _colors.N500,
24
+ backgroundColor: N0,
25
+ color: N500,
22
26
  display: 'flex',
23
27
  height: '36px',
24
28
  zIndex: 10 /* required to keep the search box on top of icons in results when sticky */
@@ -30,7 +34,7 @@ var SearchFieldBaseOuter = exports.SearchFieldBaseOuter = _styledComponents.defa
30
34
  flex: 1,
31
35
  marginRight: 'auto',
32
36
  paddingBottom: "var(--ds-space-025, 2px)",
33
- borderBottom: "2px solid ".concat(_colors.B200)
37
+ borderBottom: "2px solid ".concat(B200)
34
38
  });
35
39
 
36
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -54,15 +58,15 @@ var getPlaceholderStyle = exports.getPlaceholderStyle = function getPlaceholderS
54
58
 
55
59
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
56
60
  var getPlaceholderColor = exports.getPlaceholderColor = (0, _styledComponents.css)({
57
- color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")")
61
+ color: "var(--ds-text-subtlest, #6B6E76)"
58
62
  });
59
63
 
60
64
  // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
61
- var SearchInput = exports.SearchInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tbackground-color: transparent;\n\tborder: 0;\n\tcolor: ", ";\n\tflex-grow: 1;\n\tfont-size: 1.4em;\n\toutline: 0;\n\t/* Safari adds 2px margin-left */\n\tmargin-left: 0;\n\t", ";\n"])), _colors.N500, getPlaceholderStyle(getPlaceholderColor));
65
+ var SearchInput = exports.SearchInput = _styledComponents.default.input(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\tbackground-color: transparent;\n\tborder: 0;\n\tcolor: ", ";\n\tflex-grow: 1;\n\tfont-size: 1.4em;\n\toutline: 0;\n\t/* Safari adds 2px margin-left */\n\tmargin-left: 0;\n\t", ";\n"])), N500, getPlaceholderStyle(getPlaceholderColor));
62
66
 
63
67
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
64
68
  var SearchInputTypeAhead = exports.SearchInputTypeAhead = (0, _styledComponents.default)(SearchInput)({
65
- color: _colors.N50,
69
+ color: N50,
66
70
  position: 'absolute',
67
71
  width: "calc(100% - ".concat(inputRightPadding, ")"),
68
72
  zIndex: -1
@@ -1,6 +1,8 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from 'styled-components';
3
- import { N200 } from '@atlaskit/theme/colors';
3
+ // Copied from `@atlaskit/theme` to allow removal of that package
4
+ const N200 = '#6B778C';
5
+
4
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
5
7
  export const ResultItemAfter = styled.div(props => ({
6
8
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -1,6 +1,10 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled, { css } from 'styled-components';
3
- import { N0, N200, N500, B200, N50 } from '@atlaskit/theme/colors';
3
+ // Copied from `@atlaskit/theme` to allow removal of that package
4
+ const B200 = '#2684FF';
5
+ const N0 = '#FFFFFF';
6
+ const N500 = '#42526E';
7
+ const N50 = '#C1C7D0';
4
8
  const inputRightPadding = "var(--ds-space-200, 16px)";
5
9
 
6
10
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -62,7 +66,7 @@ export const getPlaceholderStyle = style => css`
62
66
 
63
67
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
64
68
  export const getPlaceholderColor = css({
65
- color: `var(--ds-text-subtlest, ${N200})`
69
+ color: "var(--ds-text-subtlest, #6B6E76)"
66
70
  });
67
71
 
68
72
  // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -1,6 +1,8 @@
1
1
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
2
2
  import styled from 'styled-components';
3
- import { N200 } from '@atlaskit/theme/colors';
3
+ // Copied from `@atlaskit/theme` to allow removal of that package
4
+ var N200 = '#6B778C';
5
+
4
6
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-dynamic-styles -- Ignored via go/DSP-18766
5
7
  export var ResultItemAfter = styled.div(function (props) {
6
8
  return {
@@ -2,7 +2,11 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
2
2
  var _templateObject, _templateObject2;
3
3
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
4
  import styled, { css } from 'styled-components';
5
- import { N0, N200, N500, B200, N50 } from '@atlaskit/theme/colors';
5
+ // Copied from `@atlaskit/theme` to allow removal of that package
6
+ var B200 = '#2684FF';
7
+ var N0 = '#FFFFFF';
8
+ var N500 = '#42526E';
9
+ var N50 = '#C1C7D0';
6
10
  var inputRightPadding = "var(--ds-space-200, 16px)";
7
11
 
8
12
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -46,7 +50,7 @@ export var getPlaceholderStyle = function getPlaceholderStyle(style) {
46
50
 
47
51
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
48
52
  export var getPlaceholderColor = css({
49
- color: "var(--ds-text-subtlest, ".concat(N200, ")")
53
+ color: "var(--ds-text-subtlest, #6B6E76)"
50
54
  });
51
55
 
52
56
  // eslint-disable-next-line @atlaskit/design-system/no-styled-tagged-template-expression, @atlaskit/ui-styling-standard/no-styled, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/quick-search",
3
- "version": "10.5.0",
3
+ "version": "10.5.2",
4
4
  "description": "A quick-search component",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -32,9 +32,8 @@
32
32
  "@atlaskit/analytics": "^9.0.0",
33
33
  "@atlaskit/avatar": "^25.11.0",
34
34
  "@atlaskit/menu": "^8.4.0",
35
- "@atlaskit/spinner": "^19.0.0",
36
- "@atlaskit/theme": "^22.0.0",
37
- "@atlaskit/tokens": "^11.4.0",
35
+ "@atlaskit/spinner": "^19.1.0",
36
+ "@atlaskit/tokens": "^12.0.0",
38
37
  "@babel/runtime": "^7.0.0",
39
38
  "keycode": "^2.1.7"
40
39
  },