@fluentui-react-native/persona-coin 0.15.16 → 0.16.0

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.
Files changed (68) hide show
  1. package/CHANGELOG.md +52 -0
  2. package/lib/PersonaCoin.d.ts +8 -2
  3. package/lib/PersonaCoin.d.ts.map +1 -1
  4. package/lib/PersonaCoin.helpers.d.ts +13 -6
  5. package/lib/PersonaCoin.helpers.js +106 -102
  6. package/lib/PersonaCoin.helpers.js.map +1 -1
  7. package/lib/PersonaCoin.js +81 -77
  8. package/lib/PersonaCoin.js.map +1 -1
  9. package/lib/PersonaCoin.settings.d.ts +1 -1
  10. package/lib/PersonaCoin.settings.js +10 -10
  11. package/lib/PersonaCoin.settings.js.map +1 -1
  12. package/lib/PersonaCoin.tokens.icon.d.ts +2 -2
  13. package/lib/PersonaCoin.tokens.icon.js +17 -17
  14. package/lib/PersonaCoin.tokens.icon.js.map +1 -1
  15. package/lib/PersonaCoin.tokens.initials.d.ts +6 -2
  16. package/lib/PersonaCoin.tokens.initials.js +7 -7
  17. package/lib/PersonaCoin.tokens.initials.js.map +1 -1
  18. package/lib/PersonaCoin.tokens.initialsBackground.d.ts +6 -2
  19. package/lib/PersonaCoin.tokens.initialsBackground.js +21 -22
  20. package/lib/PersonaCoin.tokens.initialsBackground.js.map +1 -1
  21. package/lib/PersonaCoin.tokens.photo.d.ts +2 -2
  22. package/lib/PersonaCoin.tokens.photo.js +11 -11
  23. package/lib/PersonaCoin.tokens.photo.js.map +1 -1
  24. package/lib/PersonaCoin.tokens.ring.d.ts +3 -3
  25. package/lib/PersonaCoin.tokens.ring.js +41 -43
  26. package/lib/PersonaCoin.tokens.ring.js.map +1 -1
  27. package/lib/PersonaCoin.tokens.root.d.ts +2 -2
  28. package/lib/PersonaCoin.tokens.root.js +14 -14
  29. package/lib/PersonaCoin.tokens.root.js.map +1 -1
  30. package/lib/PersonaCoin.types.d.ts +85 -45
  31. package/lib/PersonaCoin.types.js +1 -1
  32. package/lib/index.d.ts +17 -2
  33. package/lib/index.js +1 -1
  34. package/lib-commonjs/PersonaCoin.d.ts +8 -2
  35. package/lib-commonjs/PersonaCoin.d.ts.map +1 -1
  36. package/lib-commonjs/PersonaCoin.helpers.d.ts +13 -6
  37. package/lib-commonjs/PersonaCoin.helpers.js +115 -112
  38. package/lib-commonjs/PersonaCoin.helpers.js.map +1 -1
  39. package/lib-commonjs/PersonaCoin.js +98 -93
  40. package/lib-commonjs/PersonaCoin.js.map +1 -1
  41. package/lib-commonjs/PersonaCoin.settings.d.ts +1 -1
  42. package/lib-commonjs/PersonaCoin.settings.js +14 -14
  43. package/lib-commonjs/PersonaCoin.settings.js.map +1 -1
  44. package/lib-commonjs/PersonaCoin.tokens.icon.d.ts +2 -2
  45. package/lib-commonjs/PersonaCoin.tokens.icon.js +21 -21
  46. package/lib-commonjs/PersonaCoin.tokens.icon.js.map +1 -1
  47. package/lib-commonjs/PersonaCoin.tokens.initials.d.ts +6 -2
  48. package/lib-commonjs/PersonaCoin.tokens.initials.js +11 -11
  49. package/lib-commonjs/PersonaCoin.tokens.initials.js.map +1 -1
  50. package/lib-commonjs/PersonaCoin.tokens.initialsBackground.d.ts +6 -2
  51. package/lib-commonjs/PersonaCoin.tokens.initialsBackground.js +25 -26
  52. package/lib-commonjs/PersonaCoin.tokens.initialsBackground.js.map +1 -1
  53. package/lib-commonjs/PersonaCoin.tokens.photo.d.ts +2 -2
  54. package/lib-commonjs/PersonaCoin.tokens.photo.js +15 -15
  55. package/lib-commonjs/PersonaCoin.tokens.photo.js.map +1 -1
  56. package/lib-commonjs/PersonaCoin.tokens.ring.d.ts +3 -3
  57. package/lib-commonjs/PersonaCoin.tokens.ring.js +51 -47
  58. package/lib-commonjs/PersonaCoin.tokens.ring.js.map +1 -1
  59. package/lib-commonjs/PersonaCoin.tokens.root.d.ts +2 -2
  60. package/lib-commonjs/PersonaCoin.tokens.root.js +18 -18
  61. package/lib-commonjs/PersonaCoin.tokens.root.js.map +1 -1
  62. package/lib-commonjs/PersonaCoin.types.d.ts +85 -45
  63. package/lib-commonjs/PersonaCoin.types.js +3 -3
  64. package/lib-commonjs/index.d.ts +17 -2
  65. package/lib-commonjs/index.js +24 -9
  66. package/lib-commonjs/index.js.map +1 -1
  67. package/package.json +62 -64
  68. package/src/PersonaCoin.tsx +2 -4
@@ -1,10 +1,25 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ 'use strict';
2
+ Object.defineProperty(exports, '__esModule', { value: true });
3
3
  exports.buildRootStyles = exports.personaCoinName = exports.PersonaCoin = void 0;
4
- var PersonaCoin_1 = require("./PersonaCoin");
5
- Object.defineProperty(exports, "PersonaCoin", { enumerable: true, get: function () { return PersonaCoin_1.PersonaCoin; } });
6
- var PersonaCoin_types_1 = require("./PersonaCoin.types");
7
- Object.defineProperty(exports, "personaCoinName", { enumerable: true, get: function () { return PersonaCoin_types_1.personaCoinName; } });
8
- var PersonaCoin_tokens_root_1 = require("./PersonaCoin.tokens.root");
9
- Object.defineProperty(exports, "buildRootStyles", { enumerable: true, get: function () { return PersonaCoin_tokens_root_1.buildRootStyles; } });
10
- //# sourceMappingURL=index.js.map
4
+ const PersonaCoin_1 = require('./PersonaCoin');
5
+ Object.defineProperty(exports, 'PersonaCoin', {
6
+ enumerable: true,
7
+ get: function () {
8
+ return PersonaCoin_1.PersonaCoin;
9
+ },
10
+ });
11
+ const PersonaCoin_types_1 = require('./PersonaCoin.types');
12
+ Object.defineProperty(exports, 'personaCoinName', {
13
+ enumerable: true,
14
+ get: function () {
15
+ return PersonaCoin_types_1.personaCoinName;
16
+ },
17
+ });
18
+ const PersonaCoin_tokens_root_1 = require('./PersonaCoin.tokens.root');
19
+ Object.defineProperty(exports, 'buildRootStyles', {
20
+ enumerable: true,
21
+ get: function () {
22
+ return PersonaCoin_tokens_root_1.buildRootStyles;
23
+ },
24
+ });
25
+ //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,yDAAsD;AAA7C,oHAAA,eAAe,OAAA;AAiBxB,qEAA4D;AAAnD,0HAAA,eAAe,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,2DAAsD;AAA7C,oHAAA,eAAe,OAAA;AAiBxB,uEAA4D;AAAnD,0HAAA,eAAe,OAAA"}
package/package.json CHANGED
@@ -1,101 +1,99 @@
1
1
  {
2
2
  "name": "@fluentui-react-native/persona-coin",
3
- "version": "0.15.16",
3
+ "version": "0.16.0",
4
4
  "description": "A cross-platform PersonaCoin component using the Fluent Design System",
5
- "main": "lib-commonjs/index.js",
6
- "module": "lib/index.js",
7
- "react-native": "src/index.ts",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/microsoft/fluentui-react-native.git",
8
+ "directory": "packages/components/PersonaCoin"
9
+ },
10
+ "license": "MIT",
11
+ "author": "",
8
12
  "exports": {
9
13
  ".": {
14
+ "types": "./lib/index.d.ts",
10
15
  "import": "./lib/index.js",
11
- "require": "./lib-commonjs/index.js",
12
- "types": "./lib/index.d.ts"
16
+ "require": "./lib-commonjs/index.js"
13
17
  }
14
18
  },
15
- "typings": "lib/index.d.ts",
19
+ "main": "lib-commonjs/index.js",
20
+ "module": "lib/index.js",
21
+ "types": "lib/index.d.ts",
16
22
  "scripts": {
17
23
  "build": "fluentui-scripts build",
18
- "just": "fluentui-scripts",
24
+ "build-cjs": "tsgo --outDir lib-commonjs",
25
+ "build-esm": "tsgo --outDir lib --module esnext --moduleResolution bundler",
19
26
  "clean": "fluentui-scripts clean",
20
- "lint": "fluentui-scripts eslint",
21
27
  "depcheck": "fluentui-scripts depcheck",
22
- "test": "fluentui-scripts jest",
23
- "update-snapshots": "fluentui-scripts jest -u",
28
+ "lint": "fluentui-scripts eslint",
29
+ "lint-package": "fluentui-scripts lint-package",
24
30
  "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/PersonaCoin"
31
+ "test": "fluentui-scripts jest",
32
+ "update-snapshots": "fluentui-scripts jest -u"
31
33
  },
32
34
  "dependencies": {
33
- "@fluentui-react-native/adapters": "0.13.5",
34
- "@fluentui-react-native/framework": "0.14.16",
35
- "@fluentui-react-native/theme-tokens": "0.27.10",
36
- "@fluentui-react-native/tokens": "0.23.10",
37
- "@uifabricshared/foundation-composable": "0.13.11",
38
- "@uifabricshared/foundation-compose": "1.15.16",
39
- "@uifabricshared/foundation-settings": "0.15.11",
40
- "@uifabricshared/foundation-tokens": "0.15.16"
35
+ "@fluentui-react-native/adapters": "0.14.0",
36
+ "@fluentui-react-native/framework": "0.15.0",
37
+ "@fluentui-react-native/theme-tokens": "0.28.0",
38
+ "@fluentui-react-native/tokens": "0.24.0",
39
+ "@uifabricshared/foundation-composable": "0.14.0",
40
+ "@uifabricshared/foundation-compose": "1.16.0",
41
+ "@uifabricshared/foundation-settings": "0.16.0",
42
+ "@uifabricshared/foundation-tokens": "0.16.0"
41
43
  },
42
44
  "devDependencies": {
43
45
  "@babel/core": "^7.20.0",
44
46
  "@fluentui-react-native/babel-config": "0.1.1",
45
47
  "@fluentui-react-native/eslint-config-rules": "0.1.1",
46
- "@fluentui-react-native/scripts": "0.1.1",
48
+ "@fluentui-react-native/framework-base": "0.3.0",
49
+ "@fluentui-react-native/kit-config": "0.1.2",
50
+ "@fluentui-react-native/scripts": "0.1.2",
47
51
  "@office-iss/react-native-win32": "^0.74.0",
48
- "@react-native/babel-preset": "^0.74.0",
49
- "@react-native/metro-config": "^0.74.0",
50
- "@types/react": "~18.2.0",
51
- "react": "18.2.0",
52
- "react-native": "^0.74.0",
53
- "react-native-macos": "^0.74.0",
54
- "react-native-windows": "^0.74.0"
52
+ "@react-native-community/cli": "^20.0.0",
53
+ "@react-native-community/cli-platform-android": "^20.0.0",
54
+ "@react-native-community/cli-platform-ios": "^20.0.0",
55
+ "@react-native/metro-config": "^0.81.0",
56
+ "@types/react": "~19.1.0",
57
+ "react": "19.1.0",
58
+ "react-native": "^0.81.0",
59
+ "react-native-macos": "^0.81.0",
60
+ "react-native-windows": "^0.81.0"
55
61
  },
56
62
  "peerDependencies": {
57
63
  "@office-iss/react-native-win32": "^0.74.0",
58
- "react": "18.2.0",
59
- "react-native": "^0.73.0 || ^0.74.0",
60
- "react-native-macos": "^0.73.0 || ^0.74.0",
61
- "react-native-windows": "^0.73.0 || ^0.74.0"
64
+ "@types/react": "~18.2.0 || ~19.0.0 || ~19.1.0",
65
+ "react": "18.2.0 || 19.0.0 || 19.1.0",
66
+ "react-native": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
67
+ "react-native-macos": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0",
68
+ "react-native-windows": "^0.73.0 || ^0.74.0 || ^0.78.0 || ^0.81.0"
69
+ },
70
+ "peerDependenciesMeta": {
71
+ "@office-iss/react-native-win32": {
72
+ "optional": true
73
+ },
74
+ "@types/react": {
75
+ "optional": true
76
+ },
77
+ "react-native-macos": {
78
+ "optional": true
79
+ },
80
+ "react-native-windows": {
81
+ "optional": true
82
+ }
62
83
  },
63
- "author": "",
64
- "license": "MIT",
65
84
  "rnx-kit": {
66
85
  "kitType": "library",
67
86
  "alignDeps": {
68
- "presets": [
69
- "microsoft/react-native"
70
- ],
71
- "requirements": {
72
- "development": [
73
- "react-native@0.74"
74
- ],
75
- "production": [
76
- "react-native@0.73 || 0.74"
77
- ]
78
- },
79
87
  "capabilities": [
80
- "babel-preset-react-native",
81
88
  "core",
82
89
  "core-android",
83
90
  "core-ios",
84
91
  "core-macos",
85
92
  "core-windows",
86
- "react"
93
+ "react",
94
+ "tools-core"
87
95
  ]
88
- }
89
- },
90
- "peerDependenciesMeta": {
91
- "@office-iss/react-native-win32": {
92
- "optional": true
93
96
  },
94
- "react-native-macos": {
95
- "optional": true
96
- },
97
- "react-native-windows": {
98
- "optional": true
99
- }
97
+ "extends": "@fluentui-react-native/kit-config"
100
98
  }
101
- }
99
+ }
@@ -1,11 +1,9 @@
1
- /** @jsxRuntime classic */
2
- /** @jsx withSlots */
1
+ /** @jsxImportSource @fluentui-react-native/framework-base */
3
2
  import { Image, View, Text } from 'react-native';
4
3
 
5
4
  import { filterViewProps, filterImageProps } from '@fluentui-react-native/adapters';
6
5
  import { foregroundColorTokens } from '@fluentui-react-native/tokens';
7
6
  import type { ISlots, IRenderData } from '@uifabricshared/foundation-composable';
8
- import { withSlots } from '@uifabricshared/foundation-composable';
9
7
  import { compose } from '@uifabricshared/foundation-compose';
10
8
  import type { IUseComposeStyling } from '@uifabricshared/foundation-compose';
11
9
  import { mergeSettings } from '@uifabricshared/foundation-settings';
@@ -63,7 +61,7 @@ function usePrepareForProps(
63
61
  };
64
62
  }
65
63
 
66
- const render = (Slots: ISlots<IPersonaCoinSlotProps>, renderData: IPersonaCoinRenderData): JSX.Element | null => {
64
+ const render = (Slots: ISlots<IPersonaCoinSlotProps>, renderData: IPersonaCoinRenderData): React.JSX.Element | null => {
67
65
  if (!renderData.state) {
68
66
  return null;
69
67
  }