@transferwise/components 0.0.0-experimental-64452da → 0.0.0-experimental-e3bf70c

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.
@@ -1,2 +1,2 @@
1
- export default function hightlight(value: any, query: any): any;
1
+ export default function highlight(value: any, query: any): any;
2
2
  //# sourceMappingURL=highlight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/typeahead/util/highlight.js"],"names":[],"mappings":"AAAA,gEAeC"}
1
+ {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/typeahead/util/highlight.js"],"names":[],"mappings":"AAAA,+DAeC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-64452da",
3
+ "version": "0.0.0-experimental-e3bf70c",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -78,12 +78,12 @@
78
78
  "rollup": "^3.28.1",
79
79
  "storybook": "^7.4.5",
80
80
  "@transferwise/less-config": "3.0.6",
81
- "@transferwise/neptune-css": "0.0.0-experimental-64452da",
81
+ "@transferwise/neptune-css": "14.8.1",
82
82
  "@wise/components-theming": "0.8.4"
83
83
  },
84
84
  "peerDependencies": {
85
85
  "@transferwise/icons": "^3.7.0",
86
- "@transferwise/neptune-css": "0.0.0-experimental-64452da",
86
+ "@transferwise/neptune-css": "^14.8.1",
87
87
  "@wise/art": "^2.7.0",
88
88
  "@wise/components-theming": "^0.8.4",
89
89
  "currency-flags": "^4.0.2",
@@ -2,7 +2,7 @@
2
2
  import classNames from 'classnames';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
- import hightlight from '../util/highlight';
5
+ import highlight from '../util/highlight';
6
6
 
7
7
  const Option = (props) => {
8
8
  const { option, selected, onClick, query } = props;
@@ -17,10 +17,10 @@ const Option = (props) => {
17
17
  })}
18
18
  >
19
19
  <a className="dropdown-item" href="#" tabIndex={-1} onClick={onClick}>
20
- <span>{hightlight(label, query)}</span>
20
+ <span>{highlight(label, query)}</span>
21
21
  {note && <span className="np-text-body-default m-l-1">{note}</span>}
22
22
  {secondary && (
23
- <span className="np-text-body-default text-ellipsis">{hightlight(secondary, query)}</span>
23
+ <span className="np-text-body-default text-ellipsis">{highlight(secondary, query)}</span>
24
24
  )}
25
25
  </a>
26
26
  </li>
@@ -1,4 +1,4 @@
1
- export default function hightlight(value, query) {
1
+ export default function highlight(value, query) {
2
2
  if (value && query) {
3
3
  const highlightStart = value.toUpperCase().indexOf(query.trim().toUpperCase());
4
4
  const highlightEnd = highlightStart + query.trim().length;