@fluentui-react-native/pressable 0.9.53 → 0.9.55

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": "Mon, 30 Jan 2023 07:10:00 GMT",
5
+ "date": "Thu, 02 Feb 2023 01:27:10 GMT",
6
+ "tag": "@fluentui-react-native/pressable_v0.9.55",
7
+ "version": "0.9.55",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui-react-native/pressable",
13
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.16",
14
+ "commit": "ac679ca51704ba5c2d2cc2385a71694b69735a1d"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Wed, 01 Feb 2023 22:33:16 GMT",
21
+ "tag": "@fluentui-react-native/pressable_v0.9.54",
22
+ "version": "0.9.54",
23
+ "comments": {
24
+ "patch": [
25
+ {
26
+ "author": "30809111+acoates-ms@users.noreply.github.com",
27
+ "package": "@fluentui-react-native/pressable",
28
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910",
29
+ "comment": "Enable @typescript-eslint/consistent-type-imports"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@fluentui-react-native/pressable",
34
+ "comment": "Bump @fluentui-react-native/adapters to v0.10.1",
35
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
36
+ },
37
+ {
38
+ "author": "beachball",
39
+ "package": "@fluentui-react-native/pressable",
40
+ "comment": "Bump @fluentui-react-native/interactive-hooks to v0.22.15",
41
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
42
+ },
43
+ {
44
+ "author": "beachball",
45
+ "package": "@fluentui-react-native/pressable",
46
+ "comment": "Bump @uifabricshared/foundation-composable to v0.11.2",
47
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui-react-native/pressable",
52
+ "comment": "Bump @uifabricshared/foundation-settings to v0.12.2",
53
+ "commit": "2d0138c80d7512b905fcf32583760bec2b911910"
54
+ }
55
+ ]
56
+ }
57
+ },
58
+ {
59
+ "date": "Mon, 30 Jan 2023 15:17:31 GMT",
60
+ "tag": "@fluentui-react-native/pressable_v0.9.53",
61
+ "version": "0.9.53",
62
+ "comments": {
63
+ "none": [
64
+ {
65
+ "author": "4123478+tido64@users.noreply.github.com",
66
+ "package": "@fluentui-react-native/pressable",
67
+ "commit": "4de4c2b37c835ebd9af015ff767f9dd68452f786",
68
+ "comment": "Migrate to align-deps"
69
+ }
70
+ ]
71
+ }
72
+ },
73
+ {
74
+ "date": "Mon, 30 Jan 2023 07:12:38 GMT",
6
75
  "tag": "@fluentui-react-native/pressable_v0.9.53",
7
76
  "version": "0.9.53",
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 Mon, 30 Jan 2023 07:10:00 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 02 Feb 2023 01:27:10 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.9.55
8
+
9
+ Thu, 02 Feb 2023 01:27:10 GMT
10
+
11
+ ### Patches
12
+
13
+ - Bump @fluentui-react-native/interactive-hooks to v0.22.16
14
+
15
+ ## 0.9.54
16
+
17
+ Wed, 01 Feb 2023 22:33:16 GMT
18
+
19
+ ### Patches
20
+
21
+ - Enable @typescript-eslint/consistent-type-imports (30809111+acoates-ms@users.noreply.github.com)
22
+ - Bump @fluentui-react-native/adapters to v0.10.1
23
+ - Bump @fluentui-react-native/interactive-hooks to v0.22.15
24
+ - Bump @uifabricshared/foundation-composable to v0.11.2
25
+ - Bump @uifabricshared/foundation-settings to v0.12.2
26
+
7
27
  ## 0.9.53
8
28
 
9
- Mon, 30 Jan 2023 07:10:00 GMT
29
+ Mon, 30 Jan 2023 07:12:38 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;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C,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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AK,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,C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AE;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.53",
3
+ "version": "0.9.55",
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.14 <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.16 <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