@jobber/components 4.24.1-autocomple.1 → 4.24.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.
@@ -4,7 +4,12 @@ import { GroupOption, Option } from "./Option";
4
4
  import { InputTextRef } from "../InputText";
5
5
  import { FormFieldProps } from "../FormField";
6
6
  type OptionCollection = XOR<Option[], GroupOption[]>;
7
- interface AutocompleteProps extends Pick<FormFieldProps, "inputRef" | "invalid" | "name" | "onBlur" | "onFocus" | "prefix" | "size" | "suffix" | "validations"> {
7
+ interface AutocompleteProps extends Pick<FormFieldProps, "invalid" | "name" | "onBlur" | "onFocus" | "prefix" | "size" | "suffix" | "validations"> {
8
+ /**
9
+ * @deprecated
10
+ * Use `ref` instead.
11
+ */
12
+ readonly inputRef?: FormFieldProps["inputRef"];
8
13
  /**
9
14
  * Initial options to show when user first focuses the Autocomplete
10
15
  */
@@ -13,7 +13,7 @@ var reactPopper = require('react-popper');
13
13
  var Text = require('../Text-e7ed0974.js');
14
14
  var Icon = require('../Icon-405a216c.js');
15
15
  var Heading = require('../Heading-a1191b15.js');
16
- var InputText = require('../InputText-c2a7f236.js');
16
+ var InputText = require('../InputText-c66e199a.js');
17
17
  require('../Typography-fd6f932a.js');
18
18
  require('@jobber/design');
19
19
  require('../FormField-090113ec.js');
@@ -7,11 +7,7 @@ export interface InputTextRef {
7
7
  insert(text: string): void;
8
8
  blur(): void;
9
9
  focus(): void;
10
- scrollIntoView({ behavior, block, inline, }: {
11
- behavior?: ScrollBehavior;
12
- block?: ScrollLogicalPosition;
13
- inline?: ScrollLogicalPosition;
14
- }): void;
10
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
15
11
  }
16
12
  export declare const InputText: React.ForwardRefExoticComponent<({
17
13
  readonly multiline: true;
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var InputText = require('../InputText-c2a7f236.js');
5
+ var InputText = require('../InputText-c66e199a.js');
6
6
  require('react');
7
7
  require('../FormField-090113ec.js');
8
8
  require('../tslib.es6-5b8768b7.js');
@@ -27,10 +27,10 @@ function InputTextInternal(props, ref) {
27
27
  input.focus();
28
28
  }
29
29
  },
30
- scrollIntoView: ({ behavior, block, inline }) => {
30
+ scrollIntoView: arg => {
31
31
  const input = inputRef.current;
32
32
  if (input) {
33
- input.scrollIntoView({ behavior, block, inline });
33
+ input.scrollIntoView(arg);
34
34
  }
35
35
  },
36
36
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.24.1-autocomple.1+06412fec",
3
+ "version": "4.24.2",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@jobber/design": "^0.44.4",
23
- "@jobber/formatters": "^0.2.2",
23
+ "@jobber/formatters": "*",
24
24
  "@jobber/hooks": "^2.1.5",
25
25
  "@popperjs/core": "^2.0.6",
26
26
  "@std-proposal/temporal": "0.0.1",
@@ -83,5 +83,5 @@
83
83
  "> 1%",
84
84
  "IE 10"
85
85
  ],
86
- "gitHead": "06412fec17ffca111043706527b356b04cacdb66"
86
+ "gitHead": "2a7429f445c7d4af80b9706b05796d62bc810bc9"
87
87
  }