@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.
- package/CHANGELOG.md +52 -0
- package/lib/PersonaCoin.d.ts +8 -2
- package/lib/PersonaCoin.d.ts.map +1 -1
- package/lib/PersonaCoin.helpers.d.ts +13 -6
- package/lib/PersonaCoin.helpers.js +106 -102
- package/lib/PersonaCoin.helpers.js.map +1 -1
- package/lib/PersonaCoin.js +81 -77
- package/lib/PersonaCoin.js.map +1 -1
- package/lib/PersonaCoin.settings.d.ts +1 -1
- package/lib/PersonaCoin.settings.js +10 -10
- package/lib/PersonaCoin.settings.js.map +1 -1
- package/lib/PersonaCoin.tokens.icon.d.ts +2 -2
- package/lib/PersonaCoin.tokens.icon.js +17 -17
- package/lib/PersonaCoin.tokens.icon.js.map +1 -1
- package/lib/PersonaCoin.tokens.initials.d.ts +6 -2
- package/lib/PersonaCoin.tokens.initials.js +7 -7
- package/lib/PersonaCoin.tokens.initials.js.map +1 -1
- package/lib/PersonaCoin.tokens.initialsBackground.d.ts +6 -2
- package/lib/PersonaCoin.tokens.initialsBackground.js +21 -22
- package/lib/PersonaCoin.tokens.initialsBackground.js.map +1 -1
- package/lib/PersonaCoin.tokens.photo.d.ts +2 -2
- package/lib/PersonaCoin.tokens.photo.js +11 -11
- package/lib/PersonaCoin.tokens.photo.js.map +1 -1
- package/lib/PersonaCoin.tokens.ring.d.ts +3 -3
- package/lib/PersonaCoin.tokens.ring.js +41 -43
- package/lib/PersonaCoin.tokens.ring.js.map +1 -1
- package/lib/PersonaCoin.tokens.root.d.ts +2 -2
- package/lib/PersonaCoin.tokens.root.js +14 -14
- package/lib/PersonaCoin.tokens.root.js.map +1 -1
- package/lib/PersonaCoin.types.d.ts +85 -45
- package/lib/PersonaCoin.types.js +1 -1
- package/lib/index.d.ts +17 -2
- package/lib/index.js +1 -1
- package/lib-commonjs/PersonaCoin.d.ts +8 -2
- package/lib-commonjs/PersonaCoin.d.ts.map +1 -1
- package/lib-commonjs/PersonaCoin.helpers.d.ts +13 -6
- package/lib-commonjs/PersonaCoin.helpers.js +115 -112
- package/lib-commonjs/PersonaCoin.helpers.js.map +1 -1
- package/lib-commonjs/PersonaCoin.js +98 -93
- package/lib-commonjs/PersonaCoin.js.map +1 -1
- package/lib-commonjs/PersonaCoin.settings.d.ts +1 -1
- package/lib-commonjs/PersonaCoin.settings.js +14 -14
- package/lib-commonjs/PersonaCoin.settings.js.map +1 -1
- package/lib-commonjs/PersonaCoin.tokens.icon.d.ts +2 -2
- package/lib-commonjs/PersonaCoin.tokens.icon.js +21 -21
- package/lib-commonjs/PersonaCoin.tokens.icon.js.map +1 -1
- package/lib-commonjs/PersonaCoin.tokens.initials.d.ts +6 -2
- package/lib-commonjs/PersonaCoin.tokens.initials.js +11 -11
- package/lib-commonjs/PersonaCoin.tokens.initials.js.map +1 -1
- package/lib-commonjs/PersonaCoin.tokens.initialsBackground.d.ts +6 -2
- package/lib-commonjs/PersonaCoin.tokens.initialsBackground.js +25 -26
- package/lib-commonjs/PersonaCoin.tokens.initialsBackground.js.map +1 -1
- package/lib-commonjs/PersonaCoin.tokens.photo.d.ts +2 -2
- package/lib-commonjs/PersonaCoin.tokens.photo.js +15 -15
- package/lib-commonjs/PersonaCoin.tokens.photo.js.map +1 -1
- package/lib-commonjs/PersonaCoin.tokens.ring.d.ts +3 -3
- package/lib-commonjs/PersonaCoin.tokens.ring.js +51 -47
- package/lib-commonjs/PersonaCoin.tokens.ring.js.map +1 -1
- package/lib-commonjs/PersonaCoin.tokens.root.d.ts +2 -2
- package/lib-commonjs/PersonaCoin.tokens.root.js +18 -18
- package/lib-commonjs/PersonaCoin.tokens.root.js.map +1 -1
- package/lib-commonjs/PersonaCoin.types.d.ts +85 -45
- package/lib-commonjs/PersonaCoin.types.js +3 -3
- package/lib-commonjs/index.d.ts +17 -2
- package/lib-commonjs/index.js +24 -9
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +62 -64
- package/src/PersonaCoin.tsx +2 -4
package/lib-commonjs/index.js
CHANGED
|
@@ -1,10 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports,
|
|
1
|
+
'use strict';
|
|
2
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
3
3
|
exports.buildRootStyles = exports.personaCoinName = exports.PersonaCoin = void 0;
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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
|
|
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.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "A cross-platform PersonaCoin component using the Fluent Design System",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
"
|
|
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
|
-
"
|
|
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
|
-
"
|
|
23
|
-
"
|
|
28
|
+
"lint": "fluentui-scripts eslint",
|
|
29
|
+
"lint-package": "fluentui-scripts lint-package",
|
|
24
30
|
"prettier": "fluentui-scripts prettier",
|
|
25
|
-
"
|
|
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.
|
|
34
|
-
"@fluentui-react-native/framework": "0.
|
|
35
|
-
"@fluentui-react-native/theme-tokens": "0.
|
|
36
|
-
"@fluentui-react-native/tokens": "0.
|
|
37
|
-
"@uifabricshared/foundation-composable": "0.
|
|
38
|
-
"@uifabricshared/foundation-compose": "1.
|
|
39
|
-
"@uifabricshared/foundation-settings": "0.
|
|
40
|
-
"@uifabricshared/foundation-tokens": "0.
|
|
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/
|
|
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/
|
|
49
|
-
"@react-native/
|
|
50
|
-
"@
|
|
51
|
-
"react": "
|
|
52
|
-
"react
|
|
53
|
-
"react
|
|
54
|
-
"react-native
|
|
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
|
|
60
|
-
"react-native
|
|
61
|
-
"react-native-
|
|
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-
|
|
95
|
-
"optional": true
|
|
96
|
-
},
|
|
97
|
-
"react-native-windows": {
|
|
98
|
-
"optional": true
|
|
99
|
-
}
|
|
97
|
+
"extends": "@fluentui-react-native/kit-config"
|
|
100
98
|
}
|
|
101
|
-
}
|
|
99
|
+
}
|
package/src/PersonaCoin.tsx
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
/** @
|
|
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
|
}
|