@transferwise/components 0.0.0-experimental-a7e0e6f → 0.0.0-experimental-9bcd91d

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,3 @@
1
- export default function highlight(value: any, query: any): any;
1
+ /// <reference types="react" />
2
+ export default function highlight(value: string, query: string): string | import("react").JSX.Element;
2
3
  //# sourceMappingURL=highlight.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/typeahead/util/highlight.js"],"names":[],"mappings":"AAAA,+DAeC"}
1
+ {"version":3,"file":"highlight.d.ts","sourceRoot":"","sources":["../../../../src/typeahead/util/highlight.tsx"],"names":[],"mappings":";AAAA,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,wCAe7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@transferwise/components",
3
- "version": "0.0.0-experimental-a7e0e6f",
3
+ "version": "0.0.0-experimental-9bcd91d",
4
4
  "description": "Neptune React components",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- export default function highlight(value, query) {
1
+ export default function highlight(value: string, query: string) {
2
2
  if (value && query) {
3
3
  const highlightStart = value.toUpperCase().indexOf(query.trim().toUpperCase());
4
4
  const highlightEnd = highlightStart + query.trim().length;