@fluentui-react-native/pressable 0.9.52 → 0.9.54

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.json CHANGED
@@ -2,7 +2,76 @@
2
2
  "name": "@fluentui-react-native/pressable",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 25 Jan 2023 21:28:23 GMT",
5
+ "date": "Wed, 01 Feb 2023 22:30:11 GMT",
6
+ "tag": "@fluentui-react-native/pressable_v0.9.54",
7
+ "version": "0.9.54",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "30809111+acoates-ms@users.noreply.github.com",
12
+ "package": "@fluentui-react-native/pressable",
13
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910",
14
+ "comment": "Enable @typescript-eslint/consistent-type-imports"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui-react-native/pressable",
19
+ "comment": "Bump @fluentui-react-native/adapters to v0.10.1",
20
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui-react-native/pressable",
25
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.15",
26
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui-react-native/pressable",
31
+ "comment": "Bump @uifabricshared/foundation-composable to v0.11.2",
32
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui-react-native/pressable",
37
+ "comment": "Bump @uifabricshared/foundation-settings to v0.12.2",
38
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
39
+ }
40
+ ]
41
+ }
42
+ },
43
+ {
44
+ "date": "Mon, 30 Jan 2023 15:17:31 GMT",
45
+ "tag": "@fluentui-react-native/pressable_v0.9.53",
46
+ "version": "0.9.53",
47
+ "comments": {
48
+ "none": [
49
+ {
50
+ "author": "4123478+tido64@users.noreply.github.com",
51
+ "package": "@fluentui-react-native/pressable",
52
+ "commit": "4de4c2b37c835ebd9af015ff767f9dd68452f786",
53
+ "comment": "Migrate to align-deps"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ "date": "Mon, 30 Jan 2023 07:12:38 GMT",
60
+ "tag": "@fluentui-react-native/pressable_v0.9.53",
61
+ "version": "0.9.53",
62
+ "comments": {
63
+ "patch": [
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui-react-native/pressable",
67
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.14",
68
+ "commit": "f6f403b2efe86a229448a618b043601ceefd9a5f"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "date": "Wed, 25 Jan 2023 21:31:18 GMT",
6
75
  "tag": "@fluentui-react-native/pressable_v0.9.52",
7
76
  "version": "0.9.52",
8
77
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,32 @@
1
1
  # Change Log - @fluentui-react-native/pressable
2
2
 
3
- This log was last generated on Wed, 25 Jan 2023 21:28:23 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 01 Feb 2023 22:30:11 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.9.54
8
+
9
+ Wed, 01 Feb 2023 22:30:11 GMT
10
+
11
+ ### Patches
12
+
13
+ - Enable @typescript-eslint/consistent-type-imports (30809111+acoates-ms@users.noreply.github.com)
14
+ - Bump @fluentui-react-native/adapters to v0.10.1
15
+ - Bump @fluentui-react-native/interactive-hooks to v0.22.15
16
+ - Bump @uifabricshared/foundation-composable to v0.11.2
17
+ - Bump @uifabricshared/foundation-settings to v0.12.2
18
+
19
+ ## 0.9.53
20
+
21
+ Mon, 30 Jan 2023 07:12:38 GMT
22
+
23
+ ### Patches
24
+
25
+ - Bump @fluentui-react-native/interactive-hooks to v0.22.14
26
+
7
27
  ## 0.9.52
8
28
 
9
- Wed, 25 Jan 2023 21:28:23 GMT
29
+ Wed, 25 Jan 2023 21:31:18 GMT
10
30
 
11
31
  ### Patches
12
32
 
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IPressableProps } from './Pressable.props';
2
+ import type { IPressableProps } from './Pressable.props';
3
3
  export declare const Pressable: import("@uifabricshared/foundation-composable").IWithComposable<import("react").FunctionComponent<IPressableProps<import("@fluentui-react-native/adapters").IViewProps>>, import("@uifabricshared/foundation-composable").IComposable<IPressableProps<import("@fluentui-react-native/adapters").IViewProps>, {
4
4
  root: import("@fluentui-react-native/adapters").IViewProps;
5
5
  }, object>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAkB,MAAM,mBAAmB,CAAC;AAIpE,eAAO,MAAM,SAAS;;WAYpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,mBAAmB,CAAC;AAIzE,eAAO,MAAM,SAAS;;WAYpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,EAAe,UAAU,EAAE,MAAM,uCAAuC,CAAC;AAChF,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,MAAM,CAAC,IAAM,SAAS,GAAG,UAAU,CAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IAC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KAAK,CAAC,CAAC;QACrC,WAAW,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,OAAO;YACL,SAAS,EAAE,aAAa,CAA8B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClF,KAAK,EAAE,EAAE,KAAK,OAAA,EAAE;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { ViewStyle, StyleProp } from 'react-native';
3
- import { IViewProps } from '@fluentui-react-native/adapters';
4
- import { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
5
- export declare type IPressableProps<TBase extends object = IViewProps> = IWithPressableOptions<TBase> & {
1
+ import type * as React from 'react';
2
+ import type { ViewStyle, StyleProp } from 'react-native';
3
+ import type { IViewProps } from '@fluentui-react-native/adapters';
4
+ import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
5
+ export type IPressableProps<TBase extends object = IViewProps> = IWithPressableOptions<TBase> & {
6
6
  children?: IRenderChild<IPressableState>;
7
7
  renderStyle?: IRenderStyle<IPressableState, ViewStyle>;
8
8
  };
@@ -10,7 +10,7 @@ export declare type IPressableProps<TBase extends object = IViewProps> = IWithPr
10
10
  * Used by IRenderChild, it simply describes a function that takes
11
11
  * some generic state type T and returns a ReactNode
12
12
  */
13
- export declare type IChildAsFunction<T> = (state: T) => React.ReactNode;
13
+ export type IChildAsFunction<T> = (state: T) => React.ReactNode;
14
14
  /**
15
15
  * An IRenderChild describes children as a function that take the current
16
16
  * state of the parent component. It is up to the parent to invoke the function
@@ -19,15 +19,15 @@ export declare type IChildAsFunction<T> = (state: T) => React.ReactNode;
19
19
  * knowledge of the interaction state of their parent to properly render themselves
20
20
  * (e.g. foreground color of a text child)
21
21
  */
22
- export declare type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
22
+ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
23
23
  /**
24
24
  * An IRenderStyle describes style as a function that takes the current
25
25
  * state of the parent component. It is up to the parent to invoke the function
26
26
  * and make proper use of the more typical StyleProp<S> object that is returned
27
27
  * This is convenient for when styles need to be calculated depending on interaction states.
28
28
  */
29
- export declare type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
30
- export declare type IPressableType<TBase extends object = IViewProps> = {
29
+ export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
30
+ export type IPressableType<TBase extends object = IViewProps> = {
31
31
  props: IPressableProps<TBase>;
32
32
  slotProps: {
33
33
  root: TBase;
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.props.d.ts","sourceRoot":"","sources":["../src/Pressable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGlG,oBAAY,eAAe,CAAC,KAAK,SAAS,MAAM,GAAG,UAAU,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC9F,QAAQ,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAQzC,WAAW,CAAC,EAAE,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,oBAAY,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAEhE;;;;;;;GAOG;AACH,oBAAY,YAAY,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;AAEpE;;;;;GAKG;AACH,oBAAY,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,K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,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9B,SAAS,EAAE;QACT,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { IPressableProps } from './Pressable.props';
2
+ import type { IPressableProps } from './Pressable.props';
3
3
  export declare const Pressable: import("@uifabricshared/foundation-composable").IWithComposable<import("react").FunctionComponent<IPressableProps<import("@fluentui-react-native/adapters").IViewProps>>, import("@uifabricshared/foundation-composable").IComposable<IPressableProps<import("@fluentui-react-native/adapters").IViewProps>, {
4
4
  root: import("@fluentui-react-native/adapters").IViewProps;
5
5
  }, object>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":";AAcA,OAAO,EAAE,eAAe,EAAkB,MAAM,mBAAmB,CAAC;AAIpE,eAAO,MAAM,SAAS;;WAYpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Pressable.d.ts","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":";AAeA,OAAO,KAAK,EAAE,eAAe,EAAkB,MAAM,mBAAmB,CAAC;AAIzE,eAAO,MAAM,SAAS;;WAYpB,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;;;;;;;;;;;;AAEb,+EAAgF;AAChF,6CAAoC;AAEpC,2EAAoE;AACpE,8EAA0E;AAE7D,QAAA,SAAS,GAAG,IAAA,kCAAU,EAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,mBAAI,EAAE;IACrB,eAAe,EAAE,UAAC,SAA0B,EAAE,UAAuC;QAC3E,IAAA,WAAW,GAAc,SAAS,YAAvB,EAAK,IAAI,UAAK,SAAS,EAApC,eAAwB,CAA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;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,iBAAS,CAAC"}
@@ -1,8 +1,8 @@
1
- import * as React from 'react';
2
- import { ViewStyle, StyleProp } from 'react-native';
3
- import { IViewProps } from '@fluentui-react-native/adapters';
4
- import { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
5
- export declare type IPressableProps<TBase extends object = IViewProps> = IWithPressableOptions<TBase> & {
1
+ import type * as React from 'react';
2
+ import type { ViewStyle, StyleProp } from 'react-native';
3
+ import type { IViewProps } from '@fluentui-react-native/adapters';
4
+ import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
5
+ export type IPressableProps<TBase extends object = IViewProps> = IWithPressableOptions<TBase> & {
6
6
  children?: IRenderChild<IPressableState>;
7
7
  renderStyle?: IRenderStyle<IPressableState, ViewStyle>;
8
8
  };
@@ -10,7 +10,7 @@ export declare type IPressableProps<TBase extends object = IViewProps> = IWithPr
10
10
  * Used by IRenderChild, it simply describes a function that takes
11
11
  * some generic state type T and returns a ReactNode
12
12
  */
13
- export declare type IChildAsFunction<T> = (state: T) => React.ReactNode;
13
+ export type IChildAsFunction<T> = (state: T) => React.ReactNode;
14
14
  /**
15
15
  * An IRenderChild describes children as a function that take the current
16
16
  * state of the parent component. It is up to the parent to invoke the function
@@ -19,15 +19,15 @@ export declare type IChildAsFunction<T> = (state: T) => React.ReactNode;
19
19
  * knowledge of the interaction state of their parent to properly render themselves
20
20
  * (e.g. foreground color of a text child)
21
21
  */
22
- export declare type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
22
+ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
23
23
  /**
24
24
  * An IRenderStyle describes style as a function that takes the current
25
25
  * state of the parent component. It is up to the parent to invoke the function
26
26
  * and make proper use of the more typical StyleProp<S> object that is returned
27
27
  * This is convenient for when styles need to be calculated depending on interaction states.
28
28
  */
29
- export declare type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
30
- export declare type IPressableType<TBase extends object = IViewProps> = {
29
+ export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
30
+ export type IPressableType<TBase extends object = IViewProps> = {
31
31
  props: IPressableProps<TBase>;
32
32
  slotProps: {
33
33
  root: TBase;
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.props.d.ts","sourceRoot":"","sources":["../src/Pressable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGlG,oBAAY,eAAe,CAAC,KAAK,SAAS,MAAM,GAAG,UAAU,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC9F,QAAQ,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAQzC,WAAW,CAAC,EAAE,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,oBAAY,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAEhE;;;;;;;GAOG;AACH,oBAAY,YAAY,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;AAEpE;;;;;GAKG;AACH,oBAAY,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;AAG5D,oBAAY,cAAc,CAAC,KAAK,SAAS,MAAM,GAAG,UAAU,IAAI;IAC9D,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9B,SAAS,EAAE;QACT,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CACH,CAAC"}
1
+ {"version":3,"file":"Pressable.props.d.ts","sourceRoot":"","sources":["../src/Pressable.props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,KAAK,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvG,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,MAAM,GAAG,UAAU,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAC9F,QAAQ,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAQzC,WAAW,CAAC,EAAE,YAAY,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;CACxD,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;AAEhE;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,gBAAgB,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,SAAS,CAAC;AAEpE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,CAAC;AAG5D,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,MAAM,GAAG,UAAU,IAAI;IAC9D,KAAK,EAAE,eAAe,CAAC,KAAK,CAAC,CAAC;IAC9B,SAAS,EAAE;QACT,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/pressable",
3
- "version": "0.9.52",
3
+ "version": "0.9.54",
4
4
  "description": "A cross-platform Pressable component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -22,10 +22,10 @@
22
22
  "directory": "packages/components/Pressable"
23
23
  },
24
24
  "dependencies": {
25
- "@fluentui-react-native/adapters": ">=0.10.0 <1.0.0",
26
- "@fluentui-react-native/interactive-hooks": ">=0.22.13 <1.0.0",
27
- "@uifabricshared/foundation-composable": ">=0.11.1 <1.0.0",
28
- "@uifabricshared/foundation-settings": ">=0.12.1 <1.0.0"
25
+ "@fluentui-react-native/adapters": ">=0.10.1 <1.0.0",
26
+ "@fluentui-react-native/interactive-hooks": ">=0.22.15 <1.0.0",
27
+ "@uifabricshared/foundation-composable": ">=0.11.2 <1.0.0",
28
+ "@uifabricshared/foundation-settings": ">=0.12.2 <1.0.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@fluentui-react-native/eslint-config-rules": "^0.1.1",
@@ -41,14 +41,20 @@
41
41
  "author": "",
42
42
  "license": "MIT",
43
43
  "rnx-kit": {
44
- "reactNativeVersion": "^0.68",
45
- "reactNativeDevVersion": "^0.68",
46
44
  "kitType": "library",
47
- "capabilities": [
48
- "core",
49
- "core-android",
50
- "core-ios",
51
- "react"
52
- ]
45
+ "alignDeps": {
46
+ "presets": [
47
+ "microsoft/react-native"
48
+ ],
49
+ "requirements": [
50
+ "react-native@0.68"
51
+ ],
52
+ "capabilities": [
53
+ "core",
54
+ "core-android",
55
+ "core-ios",
56
+ "react"
57
+ ]
58
+ }
53
59
  }
54
60
  }
@@ -1,7 +1,7 @@
1
- import * as React from 'react';
2
- import { ViewStyle, StyleProp } from 'react-native';
3
- import { IViewProps } from '@fluentui-react-native/adapters';
4
- import { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
1
+ import type * as React from 'react';
2
+ import type { ViewStyle, StyleProp } from 'react-native';
3
+ import type { IViewProps } from '@fluentui-react-native/adapters';
4
+ import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
5
5
 
6
6
  // eslint-disable-next-line @typescript-eslint/ban-types
7
7
  export type IPressableProps<TBase extends object = IViewProps> = IWithPressableOptions<TBase> & {
package/src/Pressable.tsx CHANGED
@@ -10,9 +10,10 @@
10
10
  */
11
11
  'use strict';
12
12
 
13
- import { IUseStyling, composable } from '@uifabricshared/foundation-composable';
13
+ import type { IUseStyling } from '@uifabricshared/foundation-composable';
14
+ import { composable } from '@uifabricshared/foundation-composable';
14
15
  import { View } from 'react-native';
15
- import { IPressableProps, IPressableType } from './Pressable.props';
16
+ import type { IPressableProps, IPressableType } from './Pressable.props';
16
17
  import { mergeSettings } from '@uifabricshared/foundation-settings';
17
18
  import { useAsPressable } from '@fluentui-react-native/interactive-hooks';
18
19