@fluentui-react-native/pressable 0.12.19 → 0.13.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,58 @@
1
1
  # Change Log - @fluentui-react-native/pressable
2
2
 
3
+ ## 0.13.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0d6e9c1: chore: migrate to `oxfmt`
8
+ - ac6e7af: Ensure packages have a default export that references the typescript entrypoint and clean up build dependency ordering
9
+ - Updated dependencies [0d6e9c1]
10
+ - Updated dependencies [ac6e7af]
11
+ - @uifabricshared/foundation-composable@0.14.1
12
+ - @uifabricshared/foundation-settings@0.16.1
13
+ - @fluentui-react-native/interactive-hooks@0.28.1
14
+ - @fluentui-react-native/adapters@0.14.1
15
+
16
+ ## 0.13.0
17
+
18
+ ### Minor Changes
19
+
20
+ - d7adbdd: # Migration from Beachball to Changesets
21
+
22
+ This changeset represents the migration from Beachball to Changesets for version management and consolidates all changes from 440+ beachball change files that were in the `change/` directory.
23
+
24
+ All 75 affected packages receive a minor version bump to acknowledge the accumulated changes from the beachball era.
25
+
26
+ ## What Changed
27
+
28
+ Going forward, all version management uses Changesets via `yarn changeset`. The following beachball infrastructure has been removed:
29
+
30
+ - ❌ 440+ beachball change files from `change/` directory
31
+ - ❌ `beachball` package dependency
32
+ - ❌ Beachball scripts from `package.json`
33
+ - ❌ `beachball.config.js` configuration file
34
+ - ❌ Beachball publish steps from Azure Pipelines
35
+
36
+ ## New Workflow
37
+
38
+ ✅ **Create changes**: Run `yarn changeset` to document changes
39
+ ✅ **Version bump PRs**: Automatically created by GitHub Actions
40
+ ✅ **Publishing**: Handled by Azure Pipelines using `changeset publish`
41
+ ✅ **Validation**: CI validates changesets and blocks major version bumps
42
+
43
+ For details, see `CHANGESETS_SETUP.md` and `CONTRIBUTING.md`.
44
+
45
+ ### Patch Changes
46
+
47
+ - d1d8c26: We were pinning @types/react and react-native-macos via resolutions. This fixes that which uncovered a bunch of type inconsistencies that needed to be addressed.
48
+ - Updated dependencies [d7adbdd]
49
+ - Updated dependencies [d1d8c26]
50
+ - Updated dependencies [d1d8c26]
51
+ - @fluentui-react-native/adapters@0.14.0
52
+ - @fluentui-react-native/interactive-hooks@0.28.0
53
+ - @uifabricshared/foundation-composable@0.14.0
54
+ - @uifabricshared/foundation-settings@0.16.0
55
+
3
56
  <!-- This log was last generated on Tue, 05 Aug 2025 18:50:41 GMT and should not be manually modified. -->
4
57
 
5
58
  <!-- Start content -->
@@ -1726,24 +1779,31 @@ Thu, 16 Apr 2020 23:57:38 GMT
1726
1779
  - publish with correct main/module references (jasonmo@microsoft.com)
1727
1780
 
1728
1781
  ## 0.2.11
1782
+
1729
1783
  Thu, 09 Apr 2020 18:39:15 GMT
1730
1784
 
1731
1785
  ### Patches
1732
1786
 
1733
1787
  - merge conflicts (ppatboyd@outlook.com)
1788
+
1734
1789
  ## 0.2.9
1790
+
1735
1791
  Fri, 03 Apr 2020 20:40:51 GMT
1736
1792
 
1737
1793
  ### Patches
1738
1794
 
1739
1795
  - switch the bin name from just-script to fluent-scripts to disambiguate names (jasonmo@microsoft.com)
1796
+
1740
1797
  ## 0.2.7
1798
+
1741
1799
  Mon, 30 Mar 2020 16:27:00 GMT
1742
1800
 
1743
1801
  ### Patches
1744
1802
 
1745
1803
  - Update main attribute to specify TypeScript index file. (kinhln@microsoft.com)
1804
+
1746
1805
  ## 0.2.0
1806
+
1747
1807
  Mon, 16 Mar 2020 23:03:24 GMT
1748
1808
 
1749
1809
  ### Minor changes
@@ -1,5 +1,5 @@
1
1
  import type { IPressableProps } from './Pressable.props';
2
- 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>, {
2
+ export declare const Pressable: import("@uifabricshared/foundation-composable").IWithComposable<import("react").FunctionComponent<IPressableProps>, import("@uifabricshared/foundation-composable").IComposable<IPressableProps, {
3
3
  root: import("@fluentui-react-native/adapters").IViewProps;
4
4
  }, object>>;
5
5
  export default Pressable;
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;AAEb,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACrB,eAAe,EAAE,CAAC,SAA0B,EAAE,UAAuC,EAAE,EAAE;QACvF,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC;QAC3C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAG,UAAU,CAAC,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,EAAE;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;AAEb,OAAO,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAEpC,OAAO,EAAE,cAAc,EAAE,MAAM,0CAA0C,CAAC;AAE1E,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,qCAAqC,CAAC;AAIpE,MAAM,CAAC,MAAM,SAAS,GAAG,UAAU,CAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IACrB,eAAe,EAAE,CAAC,SAA0B,EAAE,UAAuC,EAAE,EAAE,CAAC;QACxF,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC;QAC3C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAG,UAAU,CAAC,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,EAAE;SACjB,CAAC;IAAA,CACH;CACF,CAAC,CAAC;AAEH,eAAe,SAAS,CAAC"}
@@ -1,11 +1,11 @@
1
1
  import type * as React from 'react';
2
- import type { ViewStyle, StyleProp } from 'react-native';
3
- import type { IViewProps } from '@fluentui-react-native/adapters';
2
+ import type { ViewStyle } from 'react-native';
3
+ import type { IViewProps, IViewStyle } from '@fluentui-react-native/adapters';
4
4
  import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
5
5
  type ObjectBase = {};
6
- export type IPressableProps<TBase extends ObjectBase = IViewProps> = IWithPressableOptions<TBase> & {
7
- children?: IRenderChild<IPressableState>;
8
- renderStyle?: IRenderStyle<IPressableState, ViewStyle>;
6
+ export type IPressableProps = IWithPressableOptions<IViewProps> & {
7
+ children?: React.ReactNode;
8
+ renderStyle?: IRenderStyle<IPressableState, IViewStyle>;
9
9
  };
10
10
  /**
11
11
  * Used by IRenderChild, it simply describes a function that takes
@@ -24,12 +24,12 @@ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
24
24
  /**
25
25
  * An IRenderStyle describes style as a function that takes the current
26
26
  * state of the parent component. It is up to the parent to invoke the function
27
- * and make proper use of the more typical StyleProp<S> object that is returned
27
+ * and make proper use of the more typical ViewStyle object that is returned
28
28
  * This is convenient for when styles need to be calculated depending on interaction states.
29
29
  */
30
- export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
30
+ export type IRenderStyle<T, S extends ViewStyle> = (state: T) => S;
31
31
  export type IPressableType<TBase extends ObjectBase = IViewProps> = {
32
- props: IPressableProps<TBase>;
32
+ props: IPressableProps;
33
33
  slotProps: {
34
34
  root: TBase;
35
35
  };
@@ -1 +1 @@
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;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvG,KAAK,UAAU,GAAG,EAAE,CAAC;AAErB,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI,qBAAqB,CAAC,KAAK,CAAC,GAAG;IAClG,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,SAA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;;;;;GAKG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,CAAC,SAAS,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAEnE,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IAClE,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE;QACT,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CACH,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { IPressableProps } from './Pressable.props';
2
- 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>, {
2
+ export declare const Pressable: import("@uifabricshared/foundation-composable").IWithComposable<import("react").FunctionComponent<IPressableProps>, import("@uifabricshared/foundation-composable").IComposable<IPressableProps, {
3
3
  root: import("@fluentui-react-native/adapters").IViewProps;
4
4
  }, object>>;
5
5
  export default Pressable;
@@ -1 +1 @@
1
- {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;AAEb,+CAAoC;AAEpC,gFAA0E;AAE1E,iFAAmE;AACnE,6EAAoE;AAIvD,QAAA,SAAS,GAAG,IAAA,kCAAU,EAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,mBAAI,EAAE;IACrB,eAAe,EAAE,CAAC,SAA0B,EAAE,UAAuC,EAAE,EAAE;QACvF,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC;QAC3C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAA,kCAAc,EAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACrC,WAAW,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAA8B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClF,KAAK,EAAE,EAAE,KAAK,EAAE;SACjB,CAAC;IACJ,CAAC;CACF,CAAC,CAAC;AAEH,kBAAe,iBAAS,CAAC"}
1
+ {"version":3,"file":"Pressable.js","sourceRoot":"","sources":["../src/Pressable.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,YAAY,CAAC;;;AAEb,+CAAoC;AAEpC,gFAA0E;AAE1E,iFAAmE;AACnE,6EAAoE;AAIvD,QAAA,SAAS,GAAG,IAAA,kCAAU,EAAiB;IAClD,KAAK,EAAE,EAAE,IAAI,EAAE,mBAAI,EAAE;IACrB,eAAe,EAAE,CAAC,SAA0B,EAAE,UAAuC,EAAE,EAAE,CAAC;QACxF,MAAM,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,GAAG,SAAS,CAAC;QAC3C,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,IAAA,kCAAc,EAAC,IAAI,CAAC,CAAC;QAC9C,MAAM,UAAU,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;QACrC,WAAW,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,OAAO;YACL,SAAS,EAAE,IAAA,mCAAa,EAA8B,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;YAClF,KAAK,EAAE,EAAE,KAAK,EAAE;SACjB,CAAC;IAAA,CACH;CACF,CAAC,CAAC;kBAEY,QAAA,SAAS"}
@@ -1,11 +1,11 @@
1
1
  import type * as React from 'react';
2
- import type { ViewStyle, StyleProp } from 'react-native';
3
- import type { IViewProps } from '@fluentui-react-native/adapters';
2
+ import type { ViewStyle } from 'react-native';
3
+ import type { IViewProps, IViewStyle } from '@fluentui-react-native/adapters';
4
4
  import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
5
5
  type ObjectBase = {};
6
- export type IPressableProps<TBase extends ObjectBase = IViewProps> = IWithPressableOptions<TBase> & {
7
- children?: IRenderChild<IPressableState>;
8
- renderStyle?: IRenderStyle<IPressableState, ViewStyle>;
6
+ export type IPressableProps = IWithPressableOptions<IViewProps> & {
7
+ children?: React.ReactNode;
8
+ renderStyle?: IRenderStyle<IPressableState, IViewStyle>;
9
9
  };
10
10
  /**
11
11
  * Used by IRenderChild, it simply describes a function that takes
@@ -24,12 +24,12 @@ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
24
24
  /**
25
25
  * An IRenderStyle describes style as a function that takes the current
26
26
  * state of the parent component. It is up to the parent to invoke the function
27
- * and make proper use of the more typical StyleProp<S> object that is returned
27
+ * and make proper use of the more typical ViewStyle object that is returned
28
28
  * This is convenient for when styles need to be calculated depending on interaction states.
29
29
  */
30
- export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
30
+ export type IRenderStyle<T, S extends ViewStyle> = (state: T) => S;
31
31
  export type IPressableType<TBase extends ObjectBase = IViewProps> = {
32
- props: IPressableProps<TBase>;
32
+ props: IPressableProps;
33
33
  slotProps: {
34
34
  root: TBase;
35
35
  };
@@ -1 +1 @@
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;AAEzD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAGvG,KAAK,UAAU,GAAG,EAAE,CAAC;AAErB,MAAM,MAAM,eAAe,CAAC,KAAK,SAAS,UAA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,YAAY,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC;CACzD,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,SAAS,SAAS,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;AAEnE,MAAM,MAAM,cAAc,CAAC,KAAK,SAAS,UAAU,GAAG,UAAU,IAAI;IAClE,KAAK,EAAE,eAAe,CAAC;IACvB,SAAS,EAAE;QACT,IAAI,EAAE,KAAK,CAAC;KACb,CAAC;CACH,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Pressable = void 0;
4
- var Pressable_1 = require("./Pressable");
4
+ const Pressable_1 = require("./Pressable");
5
5
  Object.defineProperty(exports, "Pressable", { enumerable: true, get: function () { return Pressable_1.Pressable; } });
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,yCAAwC;AAA/B,sGAAA,SAAS,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,2CAAwC;AAA/B,sGAAA,SAAS,OAAA"}
package/package.json CHANGED
@@ -1,96 +1,94 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/pressable",
3
- "version": "0.12.19",
3
+ "version": "0.13.1",
4
4
  "description": "A cross-platform Pressable component",
5
+ "license": "MIT",
6
+ "author": "",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/microsoft/fluentui-react-native.git",
10
+ "directory": "packages/components/Pressable"
11
+ },
5
12
  "main": "lib-commonjs/index.js",
6
13
  "module": "lib/index.js",
7
- "react-native": "src/index.ts",
14
+ "types": "lib/index.d.ts",
8
15
  "exports": {
9
16
  ".": {
17
+ "types": "./lib/index.d.ts",
10
18
  "import": "./lib/index.js",
11
19
  "require": "./lib-commonjs/index.js",
12
- "types": "./lib/index.d.ts"
20
+ "default": "./src/index.ts"
13
21
  }
14
22
  },
15
- "typings": "lib/index.d.ts",
16
23
  "scripts": {
17
24
  "build": "fluentui-scripts build",
18
- "just": "fluentui-scripts",
25
+ "build-cjs": "tsgo --outDir lib-commonjs",
26
+ "build-core": "tsgo --outDir lib --module esnext --moduleResolution bundler",
19
27
  "clean": "fluentui-scripts clean",
20
28
  "depcheck": "fluentui-scripts depcheck",
21
29
  "lint": "fluentui-scripts eslint",
30
+ "lint-package": "fluentui-scripts lint-package",
31
+ "format": "fluentui-scripts format",
22
32
  "test": "fluentui-scripts jest",
23
- "update-snapshots": "fluentui-scripts jest -u",
24
- "prettier": "fluentui-scripts prettier",
25
- "prettier-fix": "fluentui-scripts prettier --fix true"
26
- },
27
- "repository": {
28
- "type": "git",
29
- "url": "https://github.com/microsoft/fluentui-react-native.git",
30
- "directory": "packages/components/Pressable"
33
+ "update-snapshots": "fluentui-scripts jest -u"
31
34
  },
32
35
  "dependencies": {
33
- "@fluentui-react-native/adapters": "0.13.5",
34
- "@fluentui-react-native/interactive-hooks": "0.27.19",
35
- "@uifabricshared/foundation-composable": "0.13.11",
36
- "@uifabricshared/foundation-settings": "0.15.11"
36
+ "@fluentui-react-native/adapters": "0.14.1",
37
+ "@fluentui-react-native/interactive-hooks": "0.28.1",
38
+ "@uifabricshared/foundation-composable": "0.14.1",
39
+ "@uifabricshared/foundation-settings": "0.16.1"
37
40
  },
38
41
  "devDependencies": {
39
42
  "@babel/core": "^7.20.0",
40
43
  "@fluentui-react-native/babel-config": "0.1.1",
41
- "@fluentui-react-native/eslint-config-rules": "0.1.1",
42
- "@fluentui-react-native/scripts": "0.1.1",
43
- "@react-native/babel-preset": "^0.74.0",
44
- "@react-native/metro-config": "^0.74.0",
45
- "@types/react": "~18.2.0",
46
- "react": "18.2.0",
47
- "react-native": "^0.74.0",
48
- "react-native-macos": "^0.74.0",
49
- "react-native-windows": "^0.74.0"
44
+ "@fluentui-react-native/eslint-config-rules": "0.1.2",
45
+ "@fluentui-react-native/kit-config": "0.1.2",
46
+ "@fluentui-react-native/scripts": "0.1.0",
47
+ "@react-native-community/cli": "^20.0.0",
48
+ "@react-native-community/cli-platform-android": "^20.0.0",
49
+ "@react-native-community/cli-platform-ios": "^20.0.0",
50
+ "@react-native/metro-config": "^0.81.0",
51
+ "@types/react": "~19.1.0",
52
+ "react": "19.1.0",
53
+ "react-native": "^0.81.0",
54
+ "react-native-macos": "^0.81.0",
55
+ "react-native-windows": "^0.81.0"
50
56
  },
51
57
  "peerDependencies": {
52
58
  "@office-iss/react-native-win32": "^0.74.0",
53
- "react": "18.2.0",
54
- "react-native": "^0.73.0 || ^0.74.0",
55
- "react-native-macos": "^0.73.0 || ^0.74.0",
56
- "react-native-windows": "^0.73.0 || ^0.74.0"
59
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
60
+ "react": "18.2.0 || 19.0.0 || 19.1.0",
61
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
62
+ "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
63
+ "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
64
+ },
65
+ "peerDependenciesMeta": {
66
+ "@office-iss/react-native-win32": {
67
+ "optional": true
68
+ },
69
+ "@types/react": {
70
+ "optional": true
71
+ },
72
+ "react-native-macos": {
73
+ "optional": true
74
+ },
75
+ "react-native-windows": {
76
+ "optional": true
77
+ }
57
78
  },
58
- "author": "",
59
- "license": "MIT",
60
79
  "rnx-kit": {
61
80
  "kitType": "library",
62
81
  "alignDeps": {
63
- "presets": [
64
- "microsoft/react-native"
65
- ],
66
- "requirements": {
67
- "development": [
68
- "react-native@0.74"
69
- ],
70
- "production": [
71
- "react-native@0.73 || 0.74"
72
- ]
73
- },
74
82
  "capabilities": [
75
- "babel-preset-react-native",
76
83
  "core",
77
84
  "core-android",
78
85
  "core-ios",
79
86
  "core-macos",
80
87
  "core-windows",
81
- "react"
88
+ "react",
89
+ "tools-core"
82
90
  ]
83
- }
84
- },
85
- "peerDependenciesMeta": {
86
- "@office-iss/react-native-win32": {
87
- "optional": true
88
91
  },
89
- "react-native-macos": {
90
- "optional": true
91
- },
92
- "react-native-windows": {
93
- "optional": true
94
- }
92
+ "extends": "@fluentui-react-native/kit-config"
95
93
  }
96
- }
94
+ }
@@ -1,22 +1,22 @@
1
1
  import type * as React from 'react';
2
- import type { ViewStyle, StyleProp } from 'react-native';
2
+ import type { ViewStyle } from 'react-native';
3
3
 
4
- import type { IViewProps } from '@fluentui-react-native/adapters';
4
+ import type { IViewProps, IViewStyle } from '@fluentui-react-native/adapters';
5
5
  import type { IWithPressableOptions, IPressableState } from '@fluentui-react-native/interactive-hooks';
6
6
 
7
7
  // eslint-disable-next-line @typescript-eslint/no-empty-object-type
8
8
  type ObjectBase = {};
9
9
 
10
- export type IPressableProps<TBase extends ObjectBase = IViewProps> = IWithPressableOptions<TBase> & {
11
- children?: IRenderChild<IPressableState>;
10
+ export type IPressableProps = IWithPressableOptions<IViewProps> & {
11
+ children?: React.ReactNode;
12
12
 
13
13
  // Typescript will not allow an extension of the IView* interface
14
14
  // that allows style to take on a function value. This is not a problem
15
15
  // with children, presumably because function components are valid as children.
16
16
  // As such, a renderStyle prop that takes a function value is provided
17
- // instead, in conjunction with the base style prop (StyleProp<ViewStyle>).
17
+ // instead, in conjunction with the base style prop (ViewStyle).
18
18
  // The style prop will only be used if a renderStyle is not provided.
19
- renderStyle?: IRenderStyle<IPressableState, ViewStyle>;
19
+ renderStyle?: IRenderStyle<IPressableState, IViewStyle>;
20
20
  };
21
21
 
22
22
  /**
@@ -38,13 +38,13 @@ export type IRenderChild<T> = IChildAsFunction<T> | React.ReactNode;
38
38
  /**
39
39
  * An IRenderStyle describes style as a function that takes the current
40
40
  * state of the parent component. It is up to the parent to invoke the function
41
- * and make proper use of the more typical StyleProp<S> object that is returned
41
+ * and make proper use of the more typical ViewStyle object that is returned
42
42
  * This is convenient for when styles need to be calculated depending on interaction states.
43
43
  */
44
- export type IRenderStyle<T, S> = (state: T) => StyleProp<S>;
44
+ export type IRenderStyle<T, S extends ViewStyle> = (state: T) => S;
45
45
 
46
46
  export type IPressableType<TBase extends ObjectBase = IViewProps> = {
47
- props: IPressableProps<TBase>;
47
+ props: IPressableProps;
48
48
  slotProps: {
49
49
  root: TBase;
50
50
  };