@fluentui-react-native/persona-coin 0.16.0 → 0.16.3
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 +47 -0
- package/lib/PersonaCoin.d.ts +2 -8
- package/lib/PersonaCoin.helpers.d.ts +6 -13
- package/lib/PersonaCoin.helpers.js +102 -106
- package/lib/PersonaCoin.js +70 -80
- package/lib/PersonaCoin.settings.d.ts +1 -1
- package/lib/PersonaCoin.settings.js +10 -10
- package/lib/PersonaCoin.tokens.icon.d.ts +2 -2
- package/lib/PersonaCoin.tokens.icon.js +17 -17
- package/lib/PersonaCoin.tokens.initials.d.ts +2 -6
- package/lib/PersonaCoin.tokens.initials.js +7 -7
- package/lib/PersonaCoin.tokens.initialsBackground.d.ts +2 -6
- package/lib/PersonaCoin.tokens.initialsBackground.js +22 -21
- package/lib/PersonaCoin.tokens.photo.d.ts +2 -2
- package/lib/PersonaCoin.tokens.photo.js +11 -11
- package/lib/PersonaCoin.tokens.ring.d.ts +3 -3
- package/lib/PersonaCoin.tokens.ring.js +43 -41
- package/lib/PersonaCoin.tokens.root.d.ts +2 -2
- package/lib/PersonaCoin.tokens.root.js +14 -14
- package/lib/PersonaCoin.types.d.ts +45 -85
- package/lib/PersonaCoin.types.js +1 -1
- package/lib/index.d.ts +2 -17
- package/lib/index.js +1 -1
- package/lib-commonjs/PersonaCoin.d.ts +2 -8
- package/lib-commonjs/PersonaCoin.helpers.d.ts +6 -13
- package/lib-commonjs/PersonaCoin.helpers.js +105 -109
- package/lib-commonjs/PersonaCoin.js +86 -97
- package/lib-commonjs/PersonaCoin.settings.d.ts +1 -1
- package/lib-commonjs/PersonaCoin.settings.js +14 -14
- package/lib-commonjs/PersonaCoin.tokens.icon.d.ts +2 -2
- package/lib-commonjs/PersonaCoin.tokens.icon.js +21 -21
- package/lib-commonjs/PersonaCoin.tokens.initials.d.ts +2 -6
- package/lib-commonjs/PersonaCoin.tokens.initials.js +11 -11
- package/lib-commonjs/PersonaCoin.tokens.initialsBackground.d.ts +2 -6
- package/lib-commonjs/PersonaCoin.tokens.initialsBackground.js +26 -25
- package/lib-commonjs/PersonaCoin.tokens.photo.d.ts +2 -2
- package/lib-commonjs/PersonaCoin.tokens.photo.js +15 -15
- package/lib-commonjs/PersonaCoin.tokens.ring.d.ts +3 -3
- package/lib-commonjs/PersonaCoin.tokens.ring.js +47 -51
- package/lib-commonjs/PersonaCoin.tokens.root.d.ts +2 -2
- package/lib-commonjs/PersonaCoin.tokens.root.js +18 -18
- package/lib-commonjs/PersonaCoin.types.d.ts +45 -85
- package/lib-commonjs/PersonaCoin.types.js +3 -3
- package/lib-commonjs/index.d.ts +2 -17
- package/lib-commonjs/index.js +9 -24
- package/package.json +28 -27
- package/eslint.config.js +0 -3
|
@@ -2,26 +2,27 @@ import { styleFunction } from '@uifabricshared/foundation-tokens';
|
|
|
2
2
|
import { convertCoinColor, convertCoinColorFluent, calculateEffectiveSizes } from './PersonaCoin.helpers';
|
|
3
3
|
const _initialsBackgroundKeyProps = ['coinSize', 'size', 'coinColor', 'coinColorFluent', 'backgroundColor'];
|
|
4
4
|
function _buildInitialsBackgroundStyles(tokenProps /*, theme: ITheme*/) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
5
|
+
const { physicalSize } = calculateEffectiveSizes(tokenProps);
|
|
6
|
+
const { backgroundColor, coinColor, coinColorFluent } = tokenProps;
|
|
7
|
+
let effectiveBackgroundColor = backgroundColor;
|
|
8
|
+
if (coinColorFluent) {
|
|
9
|
+
effectiveBackgroundColor = convertCoinColorFluent(coinColorFluent);
|
|
10
|
+
}
|
|
11
|
+
else if (coinColor) {
|
|
12
|
+
effectiveBackgroundColor = convertCoinColor(coinColor);
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
style: {
|
|
16
|
+
borderRadius: physicalSize / 2,
|
|
17
|
+
width: physicalSize,
|
|
18
|
+
height: physicalSize,
|
|
19
|
+
flexGrow: 1,
|
|
20
|
+
alignSelf: 'stretch',
|
|
21
|
+
justifyContent: 'center',
|
|
22
|
+
alignItems: 'center',
|
|
23
|
+
backgroundColor: effectiveBackgroundColor,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
25
26
|
}
|
|
26
27
|
export const buildInitialsBackgroundStyles = styleFunction(_buildInitialsBackgroundStyles, _initialsBackgroundKeyProps);
|
|
27
|
-
//# sourceMappingURL=PersonaCoin.tokens.initialsBackground.js.map
|
|
28
|
+
//# sourceMappingURL=PersonaCoin.tokens.initialsBackground.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ImageProps } from 'react-native';
|
|
2
2
|
import type { Theme } from '@fluentui-react-native/framework';
|
|
3
3
|
import type { IPersonaCoinTokens } from './PersonaCoin.types';
|
|
4
|
-
export declare const buildPhotoStyles: import(
|
|
5
|
-
//# sourceMappingURL=PersonaCoin.tokens.photo.d.ts.map
|
|
4
|
+
export declare const buildPhotoStyles: import("@fluentui-react-native/tokens").StyleFactoryFunction<ImageProps, IPersonaCoinTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=PersonaCoin.tokens.photo.d.ts.map
|
|
@@ -2,16 +2,16 @@ import { styleFunction } from '@uifabricshared/foundation-tokens';
|
|
|
2
2
|
import { calculateEffectiveSizes } from './PersonaCoin.helpers';
|
|
3
3
|
const _photoKeyProps = ['coinSize', 'size'];
|
|
4
4
|
function _buildPhotoStyles(tokenProps /*, theme: ITheme */) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
const { physicalSize } = calculateEffectiveSizes(tokenProps);
|
|
6
|
+
return {
|
|
7
|
+
source: {},
|
|
8
|
+
style: {
|
|
9
|
+
borderRadius: physicalSize / 2,
|
|
10
|
+
width: physicalSize,
|
|
11
|
+
height: physicalSize,
|
|
12
|
+
},
|
|
13
|
+
resizeMode: 'cover',
|
|
14
|
+
};
|
|
15
15
|
}
|
|
16
16
|
export const buildPhotoStyles = styleFunction(_buildPhotoStyles, _photoKeyProps);
|
|
17
|
-
//# sourceMappingURL=PersonaCoin.tokens.photo.js.map
|
|
17
|
+
//# sourceMappingURL=PersonaCoin.tokens.photo.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ViewProps } from 'react-native';
|
|
2
2
|
import type { Theme } from '@fluentui-react-native/framework';
|
|
3
3
|
import type { IPersonaCoinTokens } from './PersonaCoin.types';
|
|
4
|
-
export declare const buildRingStyles: import(
|
|
5
|
-
export declare const buildGlowStyles: import(
|
|
6
|
-
//# sourceMappingURL=PersonaCoin.tokens.ring.d.ts.map
|
|
4
|
+
export declare const buildRingStyles: import("@fluentui-react-native/tokens").StyleFactoryFunction<ViewProps, IPersonaCoinTokens, Theme>;
|
|
5
|
+
export declare const buildGlowStyles: import("@fluentui-react-native/tokens").StyleFactoryFunction<ViewProps, IPersonaCoinTokens, Theme>;
|
|
6
|
+
//# sourceMappingURL=PersonaCoin.tokens.ring.d.ts.map
|
|
@@ -2,49 +2,51 @@ import { styleFunction } from '@uifabricshared/foundation-tokens';
|
|
|
2
2
|
import { getRingThickness, calculateEffectiveSizes } from './PersonaCoin.helpers';
|
|
3
3
|
const _ringProps = ['coinSize', 'size', 'ring'];
|
|
4
4
|
function _buildRingStyles(tokenProps, theme) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
5
|
+
const { physicalSize } = calculateEffectiveSizes(tokenProps);
|
|
6
|
+
const { ring } = tokenProps;
|
|
7
|
+
if (!ring)
|
|
8
|
+
return {};
|
|
9
|
+
const innerGap = ring.innerGap != undefined ? getRingThickness(ring.innerGap) : getRingThickness(ring.ringThickness || 'xxlarge');
|
|
10
|
+
const effectiveRingThickness = 2 * getRingThickness(ring.ringThickness || 'xxlarge') + innerGap;
|
|
11
|
+
const effectiveSize = physicalSize + 2 * effectiveRingThickness;
|
|
12
|
+
const ringColor = ring.ringBackgroundColor || theme.colors.personaActivityRing;
|
|
13
|
+
return {
|
|
14
|
+
style: {
|
|
15
|
+
borderStyle: 'solid',
|
|
16
|
+
borderColor: ringColor,
|
|
17
|
+
borderWidth: effectiveRingThickness,
|
|
18
|
+
borderRadius: effectiveSize / 2,
|
|
19
|
+
width: effectiveSize,
|
|
20
|
+
height: effectiveSize,
|
|
21
|
+
position: 'absolute',
|
|
22
|
+
top: -effectiveRingThickness,
|
|
23
|
+
left: -effectiveRingThickness,
|
|
24
|
+
},
|
|
25
|
+
};
|
|
25
26
|
}
|
|
26
27
|
function _buildGlowStyles(tokenProps, theme) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
28
|
+
const { physicalSize } = calculateEffectiveSizes(tokenProps);
|
|
29
|
+
const { ring } = tokenProps;
|
|
30
|
+
if (!ring)
|
|
31
|
+
return {};
|
|
32
|
+
const innerGap = ring.innerGap != undefined ? getRingThickness(ring.innerGap) : getRingThickness(ring.ringThickness || 'xxlarge');
|
|
33
|
+
const effectiveRingThickness = getRingThickness(ring.ringThickness || 'xxlarge') + innerGap;
|
|
34
|
+
const effectiveSize = physicalSize + 2 * effectiveRingThickness;
|
|
35
|
+
const glowColor = ring.accent ? theme.colors.accentButtonBackground : ring.ringColor || theme.colors.personaActivityGlow;
|
|
36
|
+
return {
|
|
37
|
+
style: {
|
|
38
|
+
borderStyle: 'solid',
|
|
39
|
+
borderColor: glowColor,
|
|
40
|
+
borderWidth: effectiveRingThickness - innerGap,
|
|
41
|
+
borderRadius: effectiveSize / 2,
|
|
42
|
+
width: effectiveSize,
|
|
43
|
+
height: effectiveSize,
|
|
44
|
+
position: 'absolute',
|
|
45
|
+
top: -effectiveRingThickness,
|
|
46
|
+
left: -effectiveRingThickness,
|
|
47
|
+
},
|
|
48
|
+
};
|
|
47
49
|
}
|
|
48
50
|
export const buildRingStyles = styleFunction(_buildRingStyles, _ringProps);
|
|
49
51
|
export const buildGlowStyles = styleFunction(_buildGlowStyles, _ringProps);
|
|
50
|
-
//# sourceMappingURL=PersonaCoin.tokens.ring.js.map
|
|
52
|
+
//# sourceMappingURL=PersonaCoin.tokens.ring.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
2
2
|
import type { Theme } from '@fluentui-react-native/framework';
|
|
3
3
|
import type { IPersonaCoinTokens } from './PersonaCoin.types';
|
|
4
|
-
export declare const buildRootStyles: import(
|
|
5
|
-
//# sourceMappingURL=PersonaCoin.tokens.root.d.ts.map
|
|
4
|
+
export declare const buildRootStyles: import("@fluentui-react-native/tokens").StyleFactoryFunction<IViewProps, IPersonaCoinTokens, Theme>;
|
|
5
|
+
//# sourceMappingURL=PersonaCoin.tokens.root.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { styleFunction } from '@uifabricshared/foundation-tokens';
|
|
2
2
|
import { calculateEffectiveSizes } from './PersonaCoin.helpers';
|
|
3
3
|
const nameMap = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
start: 'flex-start',
|
|
5
|
+
center: 'center',
|
|
6
|
+
end: 'flex-end',
|
|
7
7
|
};
|
|
8
8
|
const _rootKeyProps = ['coinSize', 'size', 'horizontalIconAlignment', 'verticalIconAlignment'];
|
|
9
9
|
function _buildRootStyles(tokenProps /*, theme: ITheme */) {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
10
|
+
const rootStyle = {
|
|
11
|
+
flexDirection: 'row',
|
|
12
|
+
};
|
|
13
|
+
const { physicalSize } = calculateEffectiveSizes(tokenProps);
|
|
14
|
+
rootStyle.width = physicalSize;
|
|
15
|
+
rootStyle.height = physicalSize;
|
|
16
|
+
const { horizontalIconAlignment, verticalIconAlignment } = tokenProps;
|
|
17
|
+
rootStyle.justifyContent = nameMap[horizontalIconAlignment || 'end'];
|
|
18
|
+
rootStyle.alignItems = nameMap[verticalIconAlignment || 'end'];
|
|
19
|
+
return { style: rootStyle };
|
|
20
20
|
}
|
|
21
21
|
export const buildRootStyles = styleFunction(_buildRootStyles, _rootKeyProps);
|
|
22
|
-
//# sourceMappingURL=PersonaCoin.tokens.root.js.map
|
|
22
|
+
//# sourceMappingURL=PersonaCoin.tokens.root.js.map
|
|
@@ -2,114 +2,74 @@ import type { ImageProps, ViewProps, ImageURISource, TextProps, ColorValue } fro
|
|
|
2
2
|
import type { IViewProps } from '@fluentui-react-native/adapters';
|
|
3
3
|
import type { IBackgroundColorTokens, IForegroundColorTokens } from '@fluentui-react-native/tokens';
|
|
4
4
|
import type { IRenderData } from '@uifabricshared/foundation-composable';
|
|
5
|
-
export declare const personaCoinName =
|
|
5
|
+
export declare const personaCoinName = "RNFPersonaCoin";
|
|
6
6
|
export type PersonaSize = 'size8' | 'size24' | 'size32' | 'size40' | 'size48' | 'size56' | 'size72' | 'size100' | 'size120';
|
|
7
7
|
/**
|
|
8
8
|
* Sets color of the coin when there is no picture
|
|
9
9
|
* @deprecated Use PersonaCoinFluentColor instead.
|
|
10
10
|
*/
|
|
11
|
-
export type PersonaCoinColor =
|
|
12
|
-
| 'lightBlue'
|
|
13
|
-
| 'blue'
|
|
14
|
-
| 'darkBlue'
|
|
15
|
-
| 'teal'
|
|
16
|
-
| 'green'
|
|
17
|
-
| 'darkGreen'
|
|
18
|
-
| 'lightPink'
|
|
19
|
-
| 'pink'
|
|
20
|
-
| 'magenta'
|
|
21
|
-
| 'purple'
|
|
22
|
-
| 'orange'
|
|
23
|
-
| 'darkRed'
|
|
24
|
-
| 'violet'
|
|
25
|
-
| 'lightRed'
|
|
26
|
-
| 'gold'
|
|
27
|
-
| 'burgundy'
|
|
28
|
-
| 'warmGray'
|
|
29
|
-
| 'coolGray'
|
|
30
|
-
| 'cyan'
|
|
31
|
-
| 'rust';
|
|
11
|
+
export type PersonaCoinColor = 'lightBlue' | 'blue' | 'darkBlue' | 'teal' | 'green' | 'darkGreen' | 'lightPink' | 'pink' | 'magenta' | 'purple' | 'orange' | 'darkRed' | 'violet' | 'lightRed' | 'gold' | 'burgundy' | 'warmGray' | 'coolGray' | 'cyan' | 'rust';
|
|
32
12
|
/**
|
|
33
13
|
* Sets color of the coin when there is no picture. Uses fluent color names
|
|
34
14
|
*/
|
|
35
|
-
export type PersonaCoinFluentColor =
|
|
36
|
-
| 'cornflower'
|
|
37
|
-
| 'blue'
|
|
38
|
-
| 'royalBlue'
|
|
39
|
-
| 'teal'
|
|
40
|
-
| 'forest'
|
|
41
|
-
| 'darkGreen'
|
|
42
|
-
| 'berry'
|
|
43
|
-
| 'hotPink'
|
|
44
|
-
| 'grape'
|
|
45
|
-
| 'purple'
|
|
46
|
-
| 'pumpkin'
|
|
47
|
-
| 'red'
|
|
48
|
-
| 'burgundy'
|
|
49
|
-
| 'orchid'
|
|
50
|
-
| 'brass'
|
|
51
|
-
| 'darkRed'
|
|
52
|
-
| 'beige'
|
|
53
|
-
| 'platinum'
|
|
54
|
-
| 'steel'
|
|
55
|
-
| 'brown';
|
|
15
|
+
export type PersonaCoinFluentColor = 'cornflower' | 'blue' | 'royalBlue' | 'teal' | 'forest' | 'darkGreen' | 'berry' | 'hotPink' | 'grape' | 'purple' | 'pumpkin' | 'red' | 'burgundy' | 'orchid' | 'brass' | 'darkRed' | 'beige' | 'platinum' | 'steel' | 'brown';
|
|
56
16
|
export type PersonaPresence = 'none' | 'offline' | 'online' | 'away' | 'dnd' | 'blocked' | 'busy';
|
|
57
17
|
export type RingThickness = number | 'xSmall' | 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge';
|
|
58
18
|
export interface RingConfig {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
19
|
+
accent?: boolean;
|
|
20
|
+
transparent?: boolean;
|
|
21
|
+
ringColor?: ColorValue;
|
|
22
|
+
ringBackgroundColor?: ColorValue;
|
|
23
|
+
ringThickness?: RingThickness;
|
|
24
|
+
innerGap?: RingThickness;
|
|
65
25
|
}
|
|
66
26
|
export interface IPersonaConfigurableProps {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
27
|
+
size?: PersonaSize;
|
|
28
|
+
/**
|
|
29
|
+
* Sets color of the coin when there is no picture
|
|
30
|
+
* @deprecated Use coinColorFluent instead
|
|
31
|
+
*/
|
|
32
|
+
coinColor?: PersonaCoinColor;
|
|
33
|
+
ring?: RingConfig;
|
|
34
|
+
coinColorFluent?: PersonaCoinFluentColor;
|
|
75
35
|
}
|
|
76
36
|
export interface IPersonaCoinProps extends IViewProps, IPersonaConfigurableProps {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
37
|
+
imageUrl?: string;
|
|
38
|
+
imageDescription?: string;
|
|
39
|
+
initials?: string;
|
|
40
|
+
presence?: PersonaPresence;
|
|
41
|
+
isOutOfOffice?: boolean;
|
|
82
42
|
}
|
|
83
43
|
export interface IPersonaCoinSlotProps {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
44
|
+
root: ViewProps;
|
|
45
|
+
photo: ImageProps;
|
|
46
|
+
initials: TextProps;
|
|
47
|
+
initialsBackground: ViewProps;
|
|
48
|
+
icon: ImageProps;
|
|
49
|
+
ring: ViewProps;
|
|
50
|
+
glow: ViewProps;
|
|
91
51
|
}
|
|
92
52
|
export type IconAlignment = 'start' | 'center' | 'end';
|
|
93
53
|
export interface IPersonaCoinTokens extends IBackgroundColorTokens, IForegroundColorTokens, IPersonaConfigurableProps {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
54
|
+
coinSize?: number;
|
|
55
|
+
iconSize?: number;
|
|
56
|
+
iconStrokeWidth?: number;
|
|
57
|
+
iconStrokeColor?: string;
|
|
58
|
+
initialsSize?: number;
|
|
59
|
+
horizontalIconAlignment?: IconAlignment;
|
|
60
|
+
verticalIconAlignment?: IconAlignment;
|
|
101
61
|
}
|
|
102
62
|
export interface IPersonaCoinState {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
63
|
+
personaPhotoSource: ImageURISource | undefined;
|
|
64
|
+
iconSource: ImageURISource | undefined;
|
|
65
|
+
showRing: boolean;
|
|
66
|
+
transparentRing: boolean;
|
|
107
67
|
}
|
|
108
68
|
export interface IPersonaCoinType {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
69
|
+
props: IPersonaCoinProps;
|
|
70
|
+
slotProps: IPersonaCoinSlotProps;
|
|
71
|
+
tokens: IPersonaCoinTokens;
|
|
72
|
+
state: IPersonaCoinState;
|
|
113
73
|
}
|
|
114
74
|
export type IPersonaCoinRenderData = IRenderData<IPersonaCoinSlotProps, IPersonaCoinState>;
|
|
115
|
-
//# sourceMappingURL=PersonaCoin.types.d.ts.map
|
|
75
|
+
//# sourceMappingURL=PersonaCoin.types.d.ts.map
|
package/lib/PersonaCoin.types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export const personaCoinName = 'RNFPersonaCoin';
|
|
2
|
-
//# sourceMappingURL=PersonaCoin.types.js.map
|
|
2
|
+
//# sourceMappingURL=PersonaCoin.types.js.map
|
package/lib/index.d.ts
CHANGED
|
@@ -1,20 +1,5 @@
|
|
|
1
1
|
export { PersonaCoin } from './PersonaCoin';
|
|
2
2
|
export { personaCoinName } from './PersonaCoin.types';
|
|
3
|
-
export type {
|
|
4
|
-
IPersonaCoinProps,
|
|
5
|
-
IPersonaCoinRenderData,
|
|
6
|
-
IPersonaCoinSlotProps,
|
|
7
|
-
IPersonaCoinState,
|
|
8
|
-
IPersonaCoinTokens,
|
|
9
|
-
IPersonaCoinType,
|
|
10
|
-
IPersonaConfigurableProps,
|
|
11
|
-
IconAlignment,
|
|
12
|
-
PersonaCoinColor,
|
|
13
|
-
PersonaCoinFluentColor,
|
|
14
|
-
PersonaPresence,
|
|
15
|
-
PersonaSize,
|
|
16
|
-
RingConfig,
|
|
17
|
-
RingThickness,
|
|
18
|
-
} from './PersonaCoin.types';
|
|
3
|
+
export type { IPersonaCoinProps, IPersonaCoinRenderData, IPersonaCoinSlotProps, IPersonaCoinState, IPersonaCoinTokens, IPersonaCoinType, IPersonaConfigurableProps, IconAlignment, PersonaCoinColor, PersonaCoinFluentColor, PersonaPresence, PersonaSize, RingConfig, RingThickness, } from './PersonaCoin.types';
|
|
19
4
|
export { buildRootStyles } from './PersonaCoin.tokens.root';
|
|
20
|
-
//# sourceMappingURL=index.d.ts.map
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import type { IPersonaCoinProps, IPersonaCoinSlotProps, IPersonaCoinState } from './PersonaCoin.types';
|
|
2
|
-
export declare const PersonaCoin: import(
|
|
3
|
-
|
|
4
|
-
IPersonaCoinSlotProps,
|
|
5
|
-
import('./PersonaCoin.types').IPersonaCoinTokens,
|
|
6
|
-
IPersonaCoinState,
|
|
7
|
-
object
|
|
8
|
-
>;
|
|
9
|
-
//# sourceMappingURL=PersonaCoin.d.ts.map
|
|
2
|
+
export declare const PersonaCoin: import("@uifabricshared/foundation-compose").IComposeReturnType<IPersonaCoinProps, IPersonaCoinSlotProps, import("./PersonaCoin.types").IPersonaCoinTokens, IPersonaCoinState, object>;
|
|
3
|
+
//# sourceMappingURL=PersonaCoin.d.ts.map
|
|
@@ -1,18 +1,11 @@
|
|
|
1
1
|
import type { ImageURISource } from 'react-native';
|
|
2
|
-
import type {
|
|
3
|
-
PersonaSize,
|
|
4
|
-
PersonaCoinColor,
|
|
5
|
-
PersonaCoinFluentColor,
|
|
6
|
-
PersonaPresence,
|
|
7
|
-
IPersonaCoinTokens,
|
|
8
|
-
RingThickness,
|
|
9
|
-
} from './PersonaCoin.types';
|
|
2
|
+
import type { PersonaSize, PersonaCoinColor, PersonaCoinFluentColor, PersonaPresence, IPersonaCoinTokens, RingThickness } from './PersonaCoin.types';
|
|
10
3
|
export declare function getPresenceIconSource(presence: PersonaPresence, isOutOfOffice: boolean): ImageURISource;
|
|
11
4
|
export type PersonaSizeConfig = {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
physicalSize: number;
|
|
6
|
+
iconSize: number;
|
|
7
|
+
iconStrokeWidth: number;
|
|
8
|
+
initialsSize: number;
|
|
16
9
|
};
|
|
17
10
|
export declare function getSizeConfig(size: PersonaSize): PersonaSizeConfig;
|
|
18
11
|
/**
|
|
@@ -26,4 +19,4 @@ export declare function convertCoinColor(coinColor: PersonaCoinColor): string;
|
|
|
26
19
|
export declare function convertCoinColorFluent(coinColor: PersonaCoinFluentColor): string;
|
|
27
20
|
export declare function calculateEffectiveSizes(tokens: IPersonaCoinTokens): PersonaSizeConfig;
|
|
28
21
|
export declare function getRingThickness(thickness: RingThickness): number;
|
|
29
|
-
//# sourceMappingURL=PersonaCoin.helpers.d.ts.map
|
|
22
|
+
//# sourceMappingURL=PersonaCoin.helpers.d.ts.map
|