@instructure/ui-focusable 10.16.1-snapshot-0 → 10.16.1

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,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import { FocusableState } from './props';
3
3
  import type { FocusableProps } from './props';
4
4
  type HTMLElementWithType = HTMLElement & {
@@ -11,18 +11,18 @@ category: components/utilities
11
11
  **/
12
12
  declare class Focusable extends Component<FocusableProps, FocusableState> {
13
13
  static propTypes: import("@instructure/shared-types").PropValidators<keyof {
14
- children?: (opts: import("./props").FocusableRenderOptions) => (React.ReactElement | React.ReactComponentElement<any> | React.DOMElement<any, any> | React.CElement<any, any> | React.FunctionComponentElement<any>) & {
14
+ children?: (opts: import("./props").FocusableRenderOptions) => (import("react").ReactElement | import("react").ReactComponentElement<any> | import("react").DOMElement<any, any> | import("react").CElement<any, any> | import("react").FunctionComponentElement<any>) & {
15
15
  ref?: (args: any[]) => unknown;
16
16
  };
17
- render?: (opts: import("./props").FocusableRenderOptions) => (React.ReactElement | React.ReactComponentElement<any> | React.DOMElement<any, any> | React.CElement<any, any> | React.FunctionComponentElement<any>) & {
17
+ render?: (opts: import("./props").FocusableRenderOptions) => (import("react").ReactElement | import("react").ReactComponentElement<any> | import("react").DOMElement<any, any> | import("react").CElement<any, any> | import("react").FunctionComponentElement<any>) & {
18
18
  ref?: (args: any[]) => unknown;
19
19
  };
20
20
  }>;
21
21
  static allowedProps: readonly (keyof {
22
- children?: (opts: import("./props").FocusableRenderOptions) => (React.ReactElement | React.ReactComponentElement<any> | React.DOMElement<any, any> | React.CElement<any, any> | React.FunctionComponentElement<any>) & {
22
+ children?: (opts: import("./props").FocusableRenderOptions) => (import("react").ReactElement | import("react").ReactComponentElement<any> | import("react").DOMElement<any, any> | import("react").CElement<any, any> | import("react").FunctionComponentElement<any>) & {
23
23
  ref?: (args: any[]) => unknown;
24
24
  };
25
- render?: (opts: import("./props").FocusableRenderOptions) => (React.ReactElement | React.ReactComponentElement<any> | React.DOMElement<any, any> | React.CElement<any, any> | React.FunctionComponentElement<any>) & {
25
+ render?: (opts: import("./props").FocusableRenderOptions) => (import("react").ReactElement | import("react").ReactComponentElement<any> | import("react").DOMElement<any, any> | import("react").CElement<any, any> | import("react").FunctionComponentElement<any>) & {
26
26
  ref?: (args: any[]) => unknown;
27
27
  };
28
28
  })[];
@@ -73,7 +73,7 @@ declare class Focusable extends Component<FocusableProps, FocusableState> {
73
73
  ref: React.ReactInstance | null;
74
74
  attachRef: (el: React.ReactInstance | null) => void;
75
75
  isFocusVisible(focused: boolean, focusable?: HTMLElementWithType): boolean;
76
- render(): React.ReactElement<any, string | React.JSXElementConstructor<any>> | null;
76
+ render(): import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | null;
77
77
  }
78
78
  export default Focusable;
79
79
  export { Focusable };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Focusable/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,KAAK,EAAE,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAUtD,OAAO,EAA2B,cAAc,EAAE,MAAM,SAAS,CAAA;AACjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAG7C,KAAK,mBAAmB,GAAG,WAAW,GAAG;IACvC,IAAI,CAAC,EAAE,MAAM,OAAO,SAAS,CAAC,UAAU,CAAA;CACzC,CAAA;AAED;;;;GAIG;AACH,cAAM,SAAU,SAAQ,SAAS,CAAC,cAAc,EAAE,cAAc,CAAC;IAC/D,MAAM,CAAC,SAAS;;eAMT,CAAC;;;eAAD,CAAC;;OANoB;IAC5B,MAAM,CAAC,YAAY;;eAKZ,CAAC;;;eAAD,CAAC;;SAL0B;IAClC,MAAM,CAAC,YAAY;;MAElB;IAED,MAAM,CAAC,UAAU;;;;;;;;;;;;;;MAchB;IAED,cAAc,EAAE;QAAE,MAAM,IAAI,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