@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.
Files changed (47) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/lib/PersonaCoin.d.ts +2 -8
  3. package/lib/PersonaCoin.helpers.d.ts +6 -13
  4. package/lib/PersonaCoin.helpers.js +102 -106
  5. package/lib/PersonaCoin.js +70 -80
  6. package/lib/PersonaCoin.settings.d.ts +1 -1
  7. package/lib/PersonaCoin.settings.js +10 -10
  8. package/lib/PersonaCoin.tokens.icon.d.ts +2 -2
  9. package/lib/PersonaCoin.tokens.icon.js +17 -17
  10. package/lib/PersonaCoin.tokens.initials.d.ts +2 -6
  11. package/lib/PersonaCoin.tokens.initials.js +7 -7
  12. package/lib/PersonaCoin.tokens.initialsBackground.d.ts +2 -6
  13. package/lib/PersonaCoin.tokens.initialsBackground.js +22 -21
  14. package/lib/PersonaCoin.tokens.photo.d.ts +2 -2
  15. package/lib/PersonaCoin.tokens.photo.js +11 -11
  16. package/lib/PersonaCoin.tokens.ring.d.ts +3 -3
  17. package/lib/PersonaCoin.tokens.ring.js +43 -41
  18. package/lib/PersonaCoin.tokens.root.d.ts +2 -2
  19. package/lib/PersonaCoin.tokens.root.js +14 -14
  20. package/lib/PersonaCoin.types.d.ts +45 -85
  21. package/lib/PersonaCoin.types.js +1 -1
  22. package/lib/index.d.ts +2 -17
  23. package/lib/index.js +1 -1
  24. package/lib-commonjs/PersonaCoin.d.ts +2 -8
  25. package/lib-commonjs/PersonaCoin.helpers.d.ts +6 -13
  26. package/lib-commonjs/PersonaCoin.helpers.js +105 -109
  27. package/lib-commonjs/PersonaCoin.js +86 -97
  28. package/lib-commonjs/PersonaCoin.settings.d.ts +1 -1
  29. package/lib-commonjs/PersonaCoin.settings.js +14 -14
  30. package/lib-commonjs/PersonaCoin.tokens.icon.d.ts +2 -2
  31. package/lib-commonjs/PersonaCoin.tokens.icon.js +21 -21
  32. package/lib-commonjs/PersonaCoin.tokens.initials.d.ts +2 -6
  33. package/lib-commonjs/PersonaCoin.tokens.initials.js +11 -11
  34. package/lib-commonjs/PersonaCoin.tokens.initialsBackground.d.ts +2 -6
  35. package/lib-commonjs/PersonaCoin.tokens.initialsBackground.js +26 -25
  36. package/lib-commonjs/PersonaCoin.tokens.photo.d.ts +2 -2
  37. package/lib-commonjs/PersonaCoin.tokens.photo.js +15 -15
  38. package/lib-commonjs/PersonaCoin.tokens.ring.d.ts +3 -3
  39. package/lib-commonjs/PersonaCoin.tokens.ring.js +47 -51
  40. package/lib-commonjs/PersonaCoin.tokens.root.d.ts +2 -2
  41. package/lib-commonjs/PersonaCoin.tokens.root.js +18 -18
  42. package/lib-commonjs/PersonaCoin.types.d.ts +45 -85
  43. package/lib-commonjs/PersonaCoin.types.js +3 -3
  44. package/lib-commonjs/index.d.ts +2 -17
  45. package/lib-commonjs/index.js +9 -24
  46. package/package.json +28 -27
  47. 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
- const { physicalSize } = calculateEffectiveSizes(tokenProps);
6
- const { backgroundColor, coinColor, coinColorFluent } = tokenProps;
7
- let effectiveBackgroundColor = backgroundColor;
8
- if (coinColorFluent) {
9
- effectiveBackgroundColor = convertCoinColorFluent(coinColorFluent);
10
- } else if (coinColor) {
11
- effectiveBackgroundColor = convertCoinColor(coinColor);
12
- }
13
- return {
14
- style: {
15
- borderRadius: physicalSize / 2,
16
- width: physicalSize,
17
- height: physicalSize,
18
- flexGrow: 1,
19
- alignSelf: 'stretch',
20
- justifyContent: 'center',
21
- alignItems: 'center',
22
- backgroundColor: effectiveBackgroundColor,
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('@fluentui-react-native/tokens').StyleFactoryFunction<ImageProps, IPersonaCoinTokens, Theme>;
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
- 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
- };
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('@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
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
- const { physicalSize } = calculateEffectiveSizes(tokenProps);
6
- const { ring } = tokenProps;
7
- if (!ring) return {};
8
- const innerGap = ring.innerGap != undefined ? getRingThickness(ring.innerGap) : getRingThickness(ring.ringThickness || 'xxlarge');
9
- const effectiveRingThickness = 2 * getRingThickness(ring.ringThickness || 'xxlarge') + innerGap;
10
- const effectiveSize = physicalSize + 2 * effectiveRingThickness;
11
- const ringColor = ring.ringBackgroundColor || theme.colors.personaActivityRing;
12
- return {
13
- style: {
14
- borderStyle: 'solid',
15
- borderColor: ringColor,
16
- borderWidth: effectiveRingThickness,
17
- borderRadius: effectiveSize / 2,
18
- width: effectiveSize,
19
- height: effectiveSize,
20
- position: 'absolute',
21
- top: -effectiveRingThickness,
22
- left: -effectiveRingThickness,
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
- const { physicalSize } = calculateEffectiveSizes(tokenProps);
28
- const { ring } = tokenProps;
29
- if (!ring) return {};
30
- const innerGap = ring.innerGap != undefined ? getRingThickness(ring.innerGap) : getRingThickness(ring.ringThickness || 'xxlarge');
31
- const effectiveRingThickness = getRingThickness(ring.ringThickness || 'xxlarge') + innerGap;
32
- const effectiveSize = physicalSize + 2 * effectiveRingThickness;
33
- const glowColor = ring.accent ? theme.colors.accentButtonBackground : ring.ringColor || theme.colors.personaActivityGlow;
34
- return {
35
- style: {
36
- borderStyle: 'solid',
37
- borderColor: glowColor,
38
- borderWidth: effectiveRingThickness - innerGap,
39
- borderRadius: effectiveSize / 2,
40
- width: effectiveSize,
41
- height: effectiveSize,
42
- position: 'absolute',
43
- top: -effectiveRingThickness,
44
- left: -effectiveRingThickness,
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('@fluentui-react-native/tokens').StyleFactoryFunction<IViewProps, IPersonaCoinTokens, Theme>;
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
- start: 'flex-start',
5
- center: 'center',
6
- end: 'flex-end',
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
- 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 };
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 = 'RNFPersonaCoin';
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
- accent?: boolean;
60
- transparent?: boolean;
61
- ringColor?: ColorValue;
62
- ringBackgroundColor?: ColorValue;
63
- ringThickness?: RingThickness;
64
- innerGap?: RingThickness;
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
- size?: PersonaSize;
68
- /**
69
- * Sets color of the coin when there is no picture
70
- * @deprecated Use coinColorFluent instead
71
- */
72
- coinColor?: PersonaCoinColor;
73
- ring?: RingConfig;
74
- coinColorFluent?: PersonaCoinFluentColor;
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
- imageUrl?: string;
78
- imageDescription?: string;
79
- initials?: string;
80
- presence?: PersonaPresence;
81
- isOutOfOffice?: boolean;
37
+ imageUrl?: string;
38
+ imageDescription?: string;
39
+ initials?: string;
40
+ presence?: PersonaPresence;
41
+ isOutOfOffice?: boolean;
82
42
  }
83
43
  export interface IPersonaCoinSlotProps {
84
- root: ViewProps;
85
- photo: ImageProps;
86
- initials: TextProps;
87
- initialsBackground: ViewProps;
88
- icon: ImageProps;
89
- ring: ViewProps;
90
- glow: ViewProps;
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
- coinSize?: number;
95
- iconSize?: number;
96
- iconStrokeWidth?: number;
97
- iconStrokeColor?: string;
98
- initialsSize?: number;
99
- horizontalIconAlignment?: IconAlignment;
100
- verticalIconAlignment?: IconAlignment;
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
- personaPhotoSource: ImageURISource | undefined;
104
- iconSource: ImageURISource | undefined;
105
- showRing: boolean;
106
- transparentRing: boolean;
63
+ personaPhotoSource: ImageURISource | undefined;
64
+ iconSource: ImageURISource | undefined;
65
+ showRing: boolean;
66
+ transparentRing: boolean;
107
67
  }
108
68
  export interface IPersonaCoinType {
109
- props: IPersonaCoinProps;
110
- slotProps: IPersonaCoinSlotProps;
111
- tokens: IPersonaCoinTokens;
112
- state: IPersonaCoinState;
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
@@ -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,4 +1,4 @@
1
1
  export { PersonaCoin } from './PersonaCoin';
2
2
  export { personaCoinName } from './PersonaCoin.types';
3
3
  export { buildRootStyles } from './PersonaCoin.tokens.root';
4
- //# sourceMappingURL=index.js.map
4
+ //# sourceMappingURL=index.js.map
@@ -1,9 +1,3 @@
1
1
  import type { IPersonaCoinProps, IPersonaCoinSlotProps, IPersonaCoinState } from './PersonaCoin.types';
2
- export declare const PersonaCoin: import('@uifabricshared/foundation-compose').IComposeReturnType<
3
- IPersonaCoinProps,
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
- physicalSize: number;
13
- iconSize: number;
14
- iconStrokeWidth: number;
15
- initialsSize: number;
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