@fluentui/react-persona 9.2.4 → 9.2.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +85 -1
  3. package/CHANGELOG.md +29 -2
  4. package/lib/Persona.js.map +1 -1
  5. package/lib/components/Persona/Persona.js.map +1 -1
  6. package/lib/components/Persona/Persona.types.js.map +1 -1
  7. package/lib/components/Persona/index.js.map +1 -1
  8. package/lib/components/Persona/renderPersona.js +2 -16
  9. package/lib/components/Persona/renderPersona.js.map +1 -1
  10. package/lib/components/Persona/usePersona.js +1 -0
  11. package/lib/components/Persona/usePersona.js.map +1 -1
  12. package/lib/components/Persona/usePersonaStyles.js.map +1 -1
  13. package/lib/index.js.map +1 -1
  14. package/lib-commonjs/Persona.js +5 -4
  15. package/lib-commonjs/Persona.js.map +1 -1
  16. package/lib-commonjs/components/Persona/Persona.js +19 -21
  17. package/lib-commonjs/components/Persona/Persona.js.map +1 -1
  18. package/lib-commonjs/components/Persona/Persona.types.js +3 -2
  19. package/lib-commonjs/components/Persona/Persona.types.js.map +1 -1
  20. package/lib-commonjs/components/Persona/index.js +9 -8
  21. package/lib-commonjs/components/Persona/index.js.map +1 -1
  22. package/lib-commonjs/components/Persona/renderPersona.js +15 -35
  23. package/lib-commonjs/components/Persona/renderPersona.js.map +1 -1
  24. package/lib-commonjs/components/Persona/usePersona.js +80 -84
  25. package/lib-commonjs/components/Persona/usePersona.js.map +1 -1
  26. package/lib-commonjs/components/Persona/usePersonaStyles.js +252 -208
  27. package/lib-commonjs/components/Persona/usePersonaStyles.js.map +1 -1
  28. package/lib-commonjs/index.js +16 -33
  29. package/lib-commonjs/index.js.map +1 -1
  30. package/package.json +10 -9
  31. package/lib-amd/Persona.js +0 -6
  32. package/lib-amd/Persona.js.map +0 -1
  33. package/lib-amd/components/Persona/Persona.js +0 -18
  34. package/lib-amd/components/Persona/Persona.js.map +0 -1
  35. package/lib-amd/components/Persona/Persona.types.js +0 -5
  36. package/lib-amd/components/Persona/Persona.types.js.map +0 -1
  37. package/lib-amd/components/Persona/index.js +0 -10
  38. package/lib-amd/components/Persona/index.js.map +0 -1
  39. package/lib-amd/components/Persona/renderPersona.js +0 -24
  40. package/lib-amd/components/Persona/renderPersona.js.map +0 -1
  41. package/lib-amd/components/Persona/usePersona.js +0 -84
  42. package/lib-amd/components/Persona/usePersona.js.map +0 -1
  43. package/lib-amd/components/Persona/usePersonaStyles.js +0 -191
  44. package/lib-amd/components/Persona/usePersonaStyles.js.map +0 -1
  45. package/lib-amd/index.js +0 -11
  46. package/lib-amd/index.js.map +0 -1
@@ -1,226 +1,270 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ personaClassNames: ()=>personaClassNames,
13
+ usePersonaStyles_unstable: ()=>usePersonaStyles_unstable
5
14
  });
6
- exports.usePersonaStyles_unstable = exports.personaClassNames = void 0;
7
- const react_1 = /*#__PURE__*/require("@griffel/react");
8
- const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
9
- exports.personaClassNames = {
10
- root: 'fui-Persona',
11
- avatar: 'fui-Persona__avatar',
12
- presence: 'fui-Persona__presence',
13
- primaryText: 'fui-Persona__primaryText',
14
- secondaryText: 'fui-Persona__secondaryText',
15
- tertiaryText: 'fui-Persona__tertiaryText',
16
- quaternaryText: 'fui-Persona__quaternaryText'
15
+ const _react = require("@griffel/react");
16
+ const personaClassNames = {
17
+ root: 'fui-Persona',
18
+ avatar: 'fui-Persona__avatar',
19
+ presence: 'fui-Persona__presence',
20
+ primaryText: 'fui-Persona__primaryText',
21
+ secondaryText: 'fui-Persona__secondaryText',
22
+ tertiaryText: 'fui-Persona__tertiaryText',
23
+ quaternaryText: 'fui-Persona__quaternaryText'
17
24
  };
18
25
  const avatarSpacing = `--fui-Persona__avatar--spacing`;
19
- const useRootClassName = /*#__PURE__*/react_1.__resetStyles("rlroi9i", null, [".rlroi9i{display:inline-grid;grid-auto-rows:max-content;grid-auto-flow:column;justify-items:start;grid-template-columns:max-content [middle] auto;}"]);
26
+ const useRootClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("rlroi9i", null, [
27
+ ".rlroi9i{display:inline-grid;grid-auto-rows:max-content;grid-auto-flow:column;justify-items:start;grid-template-columns:max-content [middle] auto;}"
28
+ ]);
20
29
  /**
21
30
  * Styles for the root slot
22
- */
23
- const useStyles = /*#__PURE__*/react_1.__styles({
24
- beforeAfterCenter: {
25
- wkccdc: "f1iantul"
26
- },
27
- after: {},
28
- before: {
29
- B7hvi0a: "f1tll2w5",
30
- Budl1dq: "ffvkwdr"
31
- },
32
- below: {
33
- Bxotwcr: "f1nkeedh",
34
- B7hvi0a: "f1oiokrs",
35
- Budl1dq: "f1emgwh2"
36
- },
37
- media: {
38
- Ijaq50: "f1hek2iy"
39
- },
40
- mediaBeforeAfterCenter: {
41
- Ijaq50: "fa4dipu"
42
- },
43
- start: {
44
- qb2dma: "f9h729m"
45
- },
46
- center: {
47
- qb2dma: "f7nlbp4"
48
- },
49
- afterAlignToPrimary: {
50
- qb2dma: "f7nlbp4",
51
- Ijaq50: "f1rnkkuc",
52
- Bw0ie65: "f1warjpf"
53
- },
54
- beforeAlignToPrimary: {
55
- qb2dma: "f7nlbp4",
56
- Ijaq50: "f1rnkkuc",
57
- Br312pm: "fwu52yu"
58
- },
59
- secondLineSpacing: {
60
- B6of3ja: "f1ryq6si"
61
- },
62
- primary: {
63
- Ijaq50: "f1q3ipgb"
64
- },
65
- secondary: {
66
- Ijaq50: "f3drtdk"
67
- },
68
- tertiary: {
69
- Ijaq50: "fa1o6s1"
70
- },
71
- quaternary: {
72
- Ijaq50: "f1tuwaia"
73
- }
74
- }, {
75
- d: [".f1iantul{grid-template-rows:1fr [primary] max-content [secondary] max-content [tertiary] max-content [quaternary] max-content 1fr;}", ".f1tll2w5{justify-items:end;}", ".ffvkwdr{grid-template-columns:auto [middle] max-content;}", ".f1nkeedh{grid-auto-flow:unset;}", ".f1oiokrs{justify-items:center;}", ".f1emgwh2{grid-template-columns:unset;}", ".f1hek2iy{grid-row-start:span 5;}", ".fa4dipu{grid-row-start:span 6;}", ".f9h729m{-webkit-align-self:start;-ms-flex-item-align:start;align-self:start;}", ".f7nlbp4{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;}", ".f1rnkkuc{grid-row-start:unset;}", ".f1warjpf{grid-column-end:middle;}", ".fwu52yu{grid-column-start:middle;}", ".f1ryq6si{margin-top:-2px;}", ".f1q3ipgb{grid-row-start:primary;}", ".f3drtdk{grid-row-start:secondary;}", ".fa1o6s1{grid-row-start:tertiary;}", ".f1tuwaia{grid-row-start:quaternary;}"]
76
- });
77
- const useAvatarSpacingStyles = /*#__PURE__*/react_1.__styles({
78
- "extra-small": {
79
- Bs1gm4r: "f1e48tse"
80
- },
81
- small: {
82
- Bs1gm4r: "f18q9vkd"
83
- },
84
- medium: {
85
- Bs1gm4r: "f18q9vkd"
86
- },
87
- large: {
88
- Bs1gm4r: "fx34bi6"
89
- },
90
- "extra-large": {
91
- Bs1gm4r: "fx34bi6"
92
- },
93
- huge: {
94
- Bs1gm4r: "f1o96qtm"
95
- },
96
- after: {
97
- t21cq0: ["f103ycu4", "f1tao51"]
98
- },
99
- below: {
100
- jrapky: "fbo7acy"
101
- },
102
- before: {
103
- Frg6f3: ["f1tao51", "f103ycu4"]
104
- }
31
+ */ const useStyles = /*#__PURE__*/ (0, _react["__styles"])({
32
+ beforeAfterCenter: {
33
+ wkccdc: "f1iantul"
34
+ },
35
+ after: {},
36
+ before: {
37
+ B7hvi0a: "f1tll2w5",
38
+ Budl1dq: "ffvkwdr"
39
+ },
40
+ below: {
41
+ Bxotwcr: "f1nkeedh",
42
+ B7hvi0a: "f1oiokrs",
43
+ Budl1dq: "f1emgwh2"
44
+ },
45
+ media: {
46
+ Ijaq50: "f1hek2iy"
47
+ },
48
+ mediaBeforeAfterCenter: {
49
+ Ijaq50: "fa4dipu"
50
+ },
51
+ start: {
52
+ qb2dma: "f9h729m"
53
+ },
54
+ center: {
55
+ qb2dma: "f7nlbp4"
56
+ },
57
+ afterAlignToPrimary: {
58
+ qb2dma: "f7nlbp4",
59
+ Ijaq50: "f1rnkkuc",
60
+ Bw0ie65: "f1warjpf"
61
+ },
62
+ beforeAlignToPrimary: {
63
+ qb2dma: "f7nlbp4",
64
+ Ijaq50: "f1rnkkuc",
65
+ Br312pm: "fwu52yu"
66
+ },
67
+ secondLineSpacing: {
68
+ B6of3ja: "f1ryq6si"
69
+ },
70
+ primary: {
71
+ Ijaq50: "f1q3ipgb"
72
+ },
73
+ secondary: {
74
+ Ijaq50: "f3drtdk"
75
+ },
76
+ tertiary: {
77
+ Ijaq50: "fa1o6s1"
78
+ },
79
+ quaternary: {
80
+ Ijaq50: "f1tuwaia"
81
+ }
105
82
  }, {
106
- d: [".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}", ".f18q9vkd{--fui-Persona__avatar--spacing:var(--spacingHorizontalS);}", ".fx34bi6{--fui-Persona__avatar--spacing:var(--spacingHorizontalMNudge);}", ".f1o96qtm{--fui-Persona__avatar--spacing:var(--spacingHorizontalM);}", ".f103ycu4{margin-right:var(--fui-Persona__avatar--spacing);}", ".f1tao51{margin-left:var(--fui-Persona__avatar--spacing);}", ".fbo7acy{margin-bottom:var(--fui-Persona__avatar--spacing);}"]
83
+ d: [
84
+ ".f1iantul{grid-template-rows:1fr [primary] max-content [secondary] max-content [tertiary] max-content [quaternary] max-content 1fr;}",
85
+ ".f1tll2w5{justify-items:end;}",
86
+ ".ffvkwdr{grid-template-columns:auto [middle] max-content;}",
87
+ ".f1nkeedh{grid-auto-flow:unset;}",
88
+ ".f1oiokrs{justify-items:center;}",
89
+ ".f1emgwh2{grid-template-columns:unset;}",
90
+ ".f1hek2iy{grid-row-start:span 5;}",
91
+ ".fa4dipu{grid-row-start:span 6;}",
92
+ ".f9h729m{-webkit-align-self:start;-ms-flex-item-align:start;align-self:start;}",
93
+ ".f7nlbp4{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;}",
94
+ ".f1rnkkuc{grid-row-start:unset;}",
95
+ ".f1warjpf{grid-column-end:middle;}",
96
+ ".fwu52yu{grid-column-start:middle;}",
97
+ ".f1ryq6si{margin-top:-2px;}",
98
+ ".f1q3ipgb{grid-row-start:primary;}",
99
+ ".f3drtdk{grid-row-start:secondary;}",
100
+ ".fa1o6s1{grid-row-start:tertiary;}",
101
+ ".f1tuwaia{grid-row-start:quaternary;}"
102
+ ]
107
103
  });
108
- const usePresenceSpacingStyles = /*#__PURE__*/react_1.__styles({
109
- small: {
110
- Bs1gm4r: "f1e48tse"
111
- }
104
+ const useAvatarSpacingStyles = /*#__PURE__*/ (0, _react["__styles"])({
105
+ "extra-small": {
106
+ Bs1gm4r: "f1e48tse"
107
+ },
108
+ small: {
109
+ Bs1gm4r: "f18q9vkd"
110
+ },
111
+ medium: {
112
+ Bs1gm4r: "f18q9vkd"
113
+ },
114
+ large: {
115
+ Bs1gm4r: "fx34bi6"
116
+ },
117
+ "extra-large": {
118
+ Bs1gm4r: "fx34bi6"
119
+ },
120
+ huge: {
121
+ Bs1gm4r: "f1o96qtm"
122
+ },
123
+ after: {
124
+ t21cq0: [
125
+ "f103ycu4",
126
+ "f1tao51"
127
+ ]
128
+ },
129
+ below: {
130
+ jrapky: "fbo7acy"
131
+ },
132
+ before: {
133
+ Frg6f3: [
134
+ "f1tao51",
135
+ "f103ycu4"
136
+ ]
137
+ }
112
138
  }, {
113
- d: [".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}"]
139
+ d: [
140
+ ".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}",
141
+ ".f18q9vkd{--fui-Persona__avatar--spacing:var(--spacingHorizontalS);}",
142
+ ".fx34bi6{--fui-Persona__avatar--spacing:var(--spacingHorizontalMNudge);}",
143
+ ".f1o96qtm{--fui-Persona__avatar--spacing:var(--spacingHorizontalM);}",
144
+ ".f103ycu4{margin-right:var(--fui-Persona__avatar--spacing);}",
145
+ ".f1tao51{margin-left:var(--fui-Persona__avatar--spacing);}",
146
+ ".fbo7acy{margin-bottom:var(--fui-Persona__avatar--spacing);}"
147
+ ]
114
148
  });
115
- /**
116
- * Apply styling to the Persona slots based on the state
117
- */
118
- const usePersonaStyles_unstable = state => {
119
- const {
120
- presenceOnly,
121
- size,
122
- textAlignment,
123
- textPosition
124
- } = state;
125
- const alignToPrimary = presenceOnly && textAlignment === 'start' && size !== 'extra-large' && size !== 'huge';
126
- const alignBeforeAfterCenter = textPosition !== 'below' && textAlignment === 'center';
127
- const {
128
- primaryTextClassName,
129
- optionalTextClassName
130
- } = useTextClassNames(state, alignToPrimary);
131
- const rootClassName = useRootClassName();
132
- const styles = useStyles();
133
- const avatarSpacingStyles = useAvatarSpacingStyles();
134
- const presenceSpacingStyles = {
135
- ...avatarSpacingStyles,
136
- ...usePresenceSpacingStyles()
137
- };
138
- state.root.className = react_1.mergeClasses(exports.personaClassNames.root, rootClassName, alignBeforeAfterCenter && styles.beforeAfterCenter, styles[textPosition], state.root.className);
139
- if (state.avatar) {
140
- state.avatar.className = react_1.mergeClasses(exports.personaClassNames.avatar, textPosition !== 'below' && styles.media, alignBeforeAfterCenter && styles.mediaBeforeAfterCenter, styles[textAlignment], avatarSpacingStyles[size], avatarSpacingStyles[textPosition], state.avatar.className);
141
- }
142
- if (state.presence) {
143
- state.presence.className = react_1.mergeClasses(exports.personaClassNames.presence, textPosition !== 'below' && styles.media, alignBeforeAfterCenter && styles.mediaBeforeAfterCenter, styles[textAlignment], presenceSpacingStyles[size], presenceSpacingStyles[textPosition], textPosition === 'after' && alignToPrimary && styles.afterAlignToPrimary, textPosition === 'before' && alignToPrimary && styles.beforeAlignToPrimary, state.presence.className);
144
- }
145
- if (state.primaryText) {
146
- state.primaryText.className = react_1.mergeClasses(exports.personaClassNames.primaryText, alignBeforeAfterCenter && styles.primary, primaryTextClassName, state.primaryText.className);
147
- }
148
- if (state.secondaryText) {
149
- state.secondaryText.className = react_1.mergeClasses(exports.personaClassNames.secondaryText, alignBeforeAfterCenter && styles.secondary, optionalTextClassName, styles.secondLineSpacing, state.secondaryText.className);
150
- }
151
- if (state.tertiaryText) {
152
- state.tertiaryText.className = react_1.mergeClasses(exports.personaClassNames.tertiaryText, alignBeforeAfterCenter && styles.tertiary, optionalTextClassName, state.tertiaryText.className);
153
- }
154
- if (state.quaternaryText) {
155
- state.quaternaryText.className = react_1.mergeClasses(exports.personaClassNames.quaternaryText, alignBeforeAfterCenter && styles.quaternary, optionalTextClassName, state.quaternaryText.className);
156
- }
157
- return state;
158
- };
159
- exports.usePersonaStyles_unstable = usePersonaStyles_unstable;
160
- const usePrimaryTextBaseClassName = /*#__PURE__*/react_1.__resetStyles("rvj41k9", null, [".rvj41k9{display:block;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"]);
161
- const useOptionalTextBaseClassName = /*#__PURE__*/react_1.__resetStyles("rp1pf9e", null, [".rp1pf9e{display:block;color:var(--colorNeutralForeground2);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]);
162
- const useTextStyles = /*#__PURE__*/react_1.__styles({
163
- beforeAlignToPrimary: {
164
- Bw0ie65: "f1warjpf"
165
- },
166
- afterAlignToPrimary: {
167
- Br312pm: "fwu52yu"
168
- },
169
- body1: {
170
- Bahqtrf: "fk6fouc",
171
- Be2twd7: "fkhj508",
172
- Bhrd7zp: "figsok6",
173
- Bg96gwp: "f1i3iumi"
174
- },
175
- caption1: {
176
- Bahqtrf: "fk6fouc",
177
- Be2twd7: "fy9rknc",
178
- Bhrd7zp: "figsok6",
179
- Bg96gwp: "fwrc4pm"
180
- },
181
- subtitle2: {
182
- Bahqtrf: "fk6fouc",
183
- Be2twd7: "fod5ikn",
184
- Bhrd7zp: "fl43uef",
185
- Bg96gwp: "faaz57k"
186
- }
149
+ const usePresenceSpacingStyles = /*#__PURE__*/ (0, _react["__styles"])({
150
+ small: {
151
+ Bs1gm4r: "f1e48tse"
152
+ }
187
153
  }, {
188
- d: [".f1warjpf{grid-column-end:middle;}", ".fwu52yu{grid-column-start:middle;}", ".fk6fouc{font-family:var(--fontFamilyBase);}", ".fkhj508{font-size:var(--fontSizeBase300);}", ".figsok6{font-weight:var(--fontWeightRegular);}", ".f1i3iumi{line-height:var(--lineHeightBase300);}", ".fy9rknc{font-size:var(--fontSizeBase200);}", ".fwrc4pm{line-height:var(--lineHeightBase200);}", ".fod5ikn{font-size:var(--fontSizeBase400);}", ".fl43uef{font-weight:var(--fontWeightSemibold);}", ".faaz57k{line-height:var(--lineHeightBase400);}"]
154
+ d: [
155
+ ".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}"
156
+ ]
189
157
  });
190
- const useTextClassNames = (state, alignToPrimary) => {
191
- const {
192
- presenceOnly,
193
- size,
194
- textPosition
195
- } = state;
196
- const primaryTextBaseClassName = usePrimaryTextBaseClassName();
197
- const optionalTextBaseClassName = useOptionalTextBaseClassName();
198
- const textStyles = useTextStyles();
199
- let primaryTextSize;
200
- let alignToPrimaryClassName;
201
- if (presenceOnly) {
202
- if (size === 'extra-small') {
203
- primaryTextSize = state.numTextLines <= 1 && textStyles.caption1;
204
- } else if (size === 'extra-large' || size === 'huge') {
205
- primaryTextSize = textStyles.subtitle2;
158
+ const usePersonaStyles_unstable = (state)=>{
159
+ const { presenceOnly , size , textAlignment , textPosition } = state;
160
+ const alignToPrimary = presenceOnly && textAlignment === 'start' && size !== 'extra-large' && size !== 'huge';
161
+ const alignBeforeAfterCenter = textPosition !== 'below' && textAlignment === 'center';
162
+ const { primaryTextClassName , optionalTextClassName } = useTextClassNames(state, alignToPrimary);
163
+ const rootClassName = useRootClassName();
164
+ const styles = useStyles();
165
+ const avatarSpacingStyles = useAvatarSpacingStyles();
166
+ const presenceSpacingStyles = {
167
+ ...avatarSpacingStyles,
168
+ ...usePresenceSpacingStyles()
169
+ };
170
+ state.root.className = (0, _react.mergeClasses)(personaClassNames.root, rootClassName, alignBeforeAfterCenter && styles.beforeAfterCenter, styles[textPosition], state.root.className);
171
+ if (state.avatar) {
172
+ state.avatar.className = (0, _react.mergeClasses)(personaClassNames.avatar, textPosition !== 'below' && styles.media, alignBeforeAfterCenter && styles.mediaBeforeAfterCenter, styles[textAlignment], avatarSpacingStyles[size], avatarSpacingStyles[textPosition], state.avatar.className);
206
173
  }
207
- if (alignToPrimary) {
208
- if (textPosition === 'before') {
209
- alignToPrimaryClassName = textStyles.beforeAlignToPrimary;
210
- } else if (textPosition === 'after') {
211
- alignToPrimaryClassName = textStyles.afterAlignToPrimary;
212
- }
174
+ if (state.presence) {
175
+ state.presence.className = (0, _react.mergeClasses)(personaClassNames.presence, textPosition !== 'below' && styles.media, alignBeforeAfterCenter && styles.mediaBeforeAfterCenter, styles[textAlignment], presenceSpacingStyles[size], presenceSpacingStyles[textPosition], textPosition === 'after' && alignToPrimary && styles.afterAlignToPrimary, textPosition === 'before' && alignToPrimary && styles.beforeAlignToPrimary, state.presence.className);
213
176
  }
214
- } else {
215
- if (size === 'huge') {
216
- primaryTextSize = textStyles.subtitle2;
217
- } else if (size === 'extra-large') {
218
- primaryTextSize = textStyles.subtitle2;
177
+ if (state.primaryText) {
178
+ state.primaryText.className = (0, _react.mergeClasses)(personaClassNames.primaryText, alignBeforeAfterCenter && styles.primary, primaryTextClassName, state.primaryText.className);
219
179
  }
220
- }
221
- return {
222
- primaryTextClassName: react_1.mergeClasses(primaryTextBaseClassName, primaryTextSize, alignToPrimaryClassName),
223
- optionalTextClassName: react_1.mergeClasses(optionalTextBaseClassName, !presenceOnly && size === 'huge' && textStyles.body1, alignToPrimaryClassName)
224
- };
180
+ if (state.secondaryText) {
181
+ state.secondaryText.className = (0, _react.mergeClasses)(personaClassNames.secondaryText, alignBeforeAfterCenter && styles.secondary, optionalTextClassName, styles.secondLineSpacing, state.secondaryText.className);
182
+ }
183
+ if (state.tertiaryText) {
184
+ state.tertiaryText.className = (0, _react.mergeClasses)(personaClassNames.tertiaryText, alignBeforeAfterCenter && styles.tertiary, optionalTextClassName, state.tertiaryText.className);
185
+ }
186
+ if (state.quaternaryText) {
187
+ state.quaternaryText.className = (0, _react.mergeClasses)(personaClassNames.quaternaryText, alignBeforeAfterCenter && styles.quaternary, optionalTextClassName, state.quaternaryText.className);
188
+ }
189
+ return state;
225
190
  };
191
+ const usePrimaryTextBaseClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("rvj41k9", null, [
192
+ ".rvj41k9{display:block;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"
193
+ ]);
194
+ const useOptionalTextBaseClassName = /*#__PURE__*/ (0, _react["__resetStyles"])("rp1pf9e", null, [
195
+ ".rp1pf9e{display:block;color:var(--colorNeutralForeground2);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"
196
+ ]);
197
+ const useTextStyles = /*#__PURE__*/ (0, _react["__styles"])({
198
+ beforeAlignToPrimary: {
199
+ Bw0ie65: "f1warjpf"
200
+ },
201
+ afterAlignToPrimary: {
202
+ Br312pm: "fwu52yu"
203
+ },
204
+ body1: {
205
+ Bahqtrf: "fk6fouc",
206
+ Be2twd7: "fkhj508",
207
+ Bhrd7zp: "figsok6",
208
+ Bg96gwp: "f1i3iumi"
209
+ },
210
+ caption1: {
211
+ Bahqtrf: "fk6fouc",
212
+ Be2twd7: "fy9rknc",
213
+ Bhrd7zp: "figsok6",
214
+ Bg96gwp: "fwrc4pm"
215
+ },
216
+ subtitle2: {
217
+ Bahqtrf: "fk6fouc",
218
+ Be2twd7: "fod5ikn",
219
+ Bhrd7zp: "fl43uef",
220
+ Bg96gwp: "faaz57k"
221
+ }
222
+ }, {
223
+ d: [
224
+ ".f1warjpf{grid-column-end:middle;}",
225
+ ".fwu52yu{grid-column-start:middle;}",
226
+ ".fk6fouc{font-family:var(--fontFamilyBase);}",
227
+ ".fkhj508{font-size:var(--fontSizeBase300);}",
228
+ ".figsok6{font-weight:var(--fontWeightRegular);}",
229
+ ".f1i3iumi{line-height:var(--lineHeightBase300);}",
230
+ ".fy9rknc{font-size:var(--fontSizeBase200);}",
231
+ ".fwrc4pm{line-height:var(--lineHeightBase200);}",
232
+ ".fod5ikn{font-size:var(--fontSizeBase400);}",
233
+ ".fl43uef{font-weight:var(--fontWeightSemibold);}",
234
+ ".faaz57k{line-height:var(--lineHeightBase400);}"
235
+ ]
236
+ });
237
+ const useTextClassNames = (state, alignToPrimary)=>{
238
+ const { presenceOnly , size , textPosition } = state;
239
+ const primaryTextBaseClassName = usePrimaryTextBaseClassName();
240
+ const optionalTextBaseClassName = useOptionalTextBaseClassName();
241
+ const textStyles = useTextStyles();
242
+ let primaryTextSize;
243
+ let alignToPrimaryClassName;
244
+ if (presenceOnly) {
245
+ if (size === 'extra-small') {
246
+ primaryTextSize = state.numTextLines <= 1 && textStyles.caption1;
247
+ } else if (size === 'extra-large' || size === 'huge') {
248
+ primaryTextSize = textStyles.subtitle2;
249
+ }
250
+ if (alignToPrimary) {
251
+ if (textPosition === 'before') {
252
+ alignToPrimaryClassName = textStyles.beforeAlignToPrimary;
253
+ } else if (textPosition === 'after') {
254
+ alignToPrimaryClassName = textStyles.afterAlignToPrimary;
255
+ }
256
+ }
257
+ } else {
258
+ if (size === 'huge') {
259
+ primaryTextSize = textStyles.subtitle2;
260
+ } else if (size === 'extra-large') {
261
+ primaryTextSize = textStyles.subtitle2;
262
+ }
263
+ }
264
+ return {
265
+ primaryTextClassName: (0, _react.mergeClasses)(primaryTextBaseClassName, primaryTextSize, alignToPrimaryClassName),
266
+ optionalTextClassName: (0, _react.mergeClasses)(optionalTextBaseClassName, !presenceOnly && size === 'huge' && textStyles.body1, alignToPrimaryClassName)
267
+ };
268
+ }; //# sourceMappingURL=usePersonaStyles.js.map
269
+
226
270
  //# sourceMappingURL=usePersonaStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["react_1","require","react_theme_1","exports","personaClassNames","root","avatar","presence","primaryText","secondaryText","tertiaryText","quaternaryText","avatarSpacing","useRootClassName","__resetStyles","useStyles","__styles","beforeAfterCenter","wkccdc","after","before","B7hvi0a","Budl1dq","below","Bxotwcr","media","Ijaq50","mediaBeforeAfterCenter","start","qb2dma","center","afterAlignToPrimary","Bw0ie65","beforeAlignToPrimary","Br312pm","secondLineSpacing","B6of3ja","primary","secondary","tertiary","quaternary","d","useAvatarSpacingStyles","Bs1gm4r","small","medium","large","huge","t21cq0","jrapky","Frg6f3","usePresenceSpacingStyles","usePersonaStyles_unstable","state","presenceOnly","size","textAlignment","textPosition","alignToPrimary","alignBeforeAfterCenter","primaryTextClassName","optionalTextClassName","useTextClassNames","rootClassName","styles","avatarSpacingStyles","presenceSpacingStyles","className","mergeClasses","usePrimaryTextBaseClassName","useOptionalTextBaseClassName","useTextStyles","body1","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","caption1","subtitle2","primaryTextBaseClassName","optionalTextBaseClassName","textStyles","primaryTextSize","alignToPrimaryClassName","numTextLines"],"sources":["../src/packages/react-components/react-persona/src/components/Persona/usePersonaStyles.ts"],"sourcesContent":["import { makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport type { PersonaSlots, PersonaState } from './Persona.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const personaClassNames: SlotClassNames<PersonaSlots> = {\n root: 'fui-Persona',\n avatar: 'fui-Persona__avatar',\n presence: 'fui-Persona__presence',\n primaryText: 'fui-Persona__primaryText',\n secondaryText: 'fui-Persona__secondaryText',\n tertiaryText: 'fui-Persona__tertiaryText',\n quaternaryText: 'fui-Persona__quaternaryText',\n};\n\nconst avatarSpacing = `--fui-Persona__avatar--spacing`;\n\nconst useRootClassName = makeResetStyles({\n display: 'inline-grid',\n gridAutoRows: 'max-content',\n gridAutoFlow: 'column',\n justifyItems: 'start',\n gridTemplateColumns: 'max-content [middle] auto',\n});\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n beforeAfterCenter: {\n // This template is needed to make sure the Avatar is centered when it takes up more space than the text lines\n gridTemplateRows:\n '1fr [primary] max-content [secondary] max-content [tertiary] max-content [quaternary] max-content 1fr',\n },\n\n after: {\n // Intentionally empty\n },\n before: {\n justifyItems: 'end',\n gridTemplateColumns: 'auto [middle] max-content',\n },\n below: {\n gridAutoFlow: 'unset',\n justifyItems: 'center',\n gridTemplateColumns: 'unset',\n },\n\n media: {\n gridRowStart: 'span 5',\n },\n\n mediaBeforeAfterCenter: {\n gridRowStart: 'span 6',\n },\n\n start: {\n alignSelf: 'start',\n },\n center: {\n alignSelf: 'center',\n },\n\n afterAlignToPrimary: {\n alignSelf: 'center',\n gridRowStart: 'unset',\n gridColumnEnd: 'middle',\n },\n beforeAlignToPrimary: {\n alignSelf: 'center',\n gridRowStart: 'unset',\n gridColumnStart: 'middle',\n },\n\n secondLineSpacing: {\n marginTop: '-2px',\n },\n\n primary: { gridRowStart: 'primary' },\n secondary: { gridRowStart: 'secondary' },\n tertiary: { gridRowStart: 'tertiary' },\n quaternary: { gridRowStart: 'quaternary' },\n});\n\nconst useAvatarSpacingStyles = makeStyles({\n 'extra-small': {\n [avatarSpacing]: tokens.spacingHorizontalSNudge,\n },\n small: {\n [avatarSpacing]: tokens.spacingHorizontalS,\n },\n medium: {\n [avatarSpacing]: tokens.spacingHorizontalS,\n },\n large: {\n [avatarSpacing]: tokens.spacingHorizontalMNudge,\n },\n 'extra-large': {\n [avatarSpacing]: tokens.spacingHorizontalMNudge,\n },\n huge: {\n [avatarSpacing]: tokens.spacingHorizontalM,\n },\n after: {\n marginRight: `var(${avatarSpacing})`,\n },\n below: {\n marginBottom: `var(${avatarSpacing})`,\n },\n before: {\n marginLeft: `var(${avatarSpacing})`,\n },\n});\n\nconst usePresenceSpacingStyles = makeStyles({\n small: {\n [avatarSpacing]: tokens.spacingHorizontalSNudge,\n },\n});\n\n/**\n * Apply styling to the Persona slots based on the state\n */\nexport const usePersonaStyles_unstable = (state: PersonaState): PersonaState => {\n const { presenceOnly, size, textAlignment, textPosition } = state;\n\n const alignToPrimary = presenceOnly && textAlignment === 'start' && size !== 'extra-large' && size !== 'huge';\n const alignBeforeAfterCenter = textPosition !== 'below' && textAlignment === 'center';\n const { primaryTextClassName, optionalTextClassName } = useTextClassNames(state, alignToPrimary);\n\n const rootClassName = useRootClassName();\n const styles = useStyles();\n const avatarSpacingStyles = useAvatarSpacingStyles();\n const presenceSpacingStyles = { ...avatarSpacingStyles, ...usePresenceSpacingStyles() };\n\n state.root.className = mergeClasses(\n personaClassNames.root,\n rootClassName,\n alignBeforeAfterCenter && styles.beforeAfterCenter,\n styles[textPosition],\n state.root.className,\n );\n\n if (state.avatar) {\n state.avatar.className = mergeClasses(\n personaClassNames.avatar,\n textPosition !== 'below' && styles.media,\n alignBeforeAfterCenter && styles.mediaBeforeAfterCenter,\n styles[textAlignment],\n avatarSpacingStyles[size],\n avatarSpacingStyles[textPosition],\n state.avatar.className,\n );\n }\n\n if (state.presence) {\n state.presence.className = mergeClasses(\n personaClassNames.presence,\n textPosition !== 'below' && styles.media,\n alignBeforeAfterCenter && styles.mediaBeforeAfterCenter,\n styles[textAlignment],\n presenceSpacingStyles[size],\n presenceSpacingStyles[textPosition],\n textPosition === 'after' && alignToPrimary && styles.afterAlignToPrimary,\n textPosition === 'before' && alignToPrimary && styles.beforeAlignToPrimary,\n state.presence.className,\n );\n }\n\n if (state.primaryText) {\n state.primaryText.className = mergeClasses(\n personaClassNames.primaryText,\n alignBeforeAfterCenter && styles.primary,\n primaryTextClassName,\n state.primaryText.className,\n );\n }\n\n if (state.secondaryText) {\n state.secondaryText.className = mergeClasses(\n personaClassNames.secondaryText,\n alignBeforeAfterCenter && styles.secondary,\n optionalTextClassName,\n styles.secondLineSpacing,\n state.secondaryText.className,\n );\n }\n\n if (state.tertiaryText) {\n state.tertiaryText.className = mergeClasses(\n personaClassNames.tertiaryText,\n alignBeforeAfterCenter && styles.tertiary,\n optionalTextClassName,\n state.tertiaryText.className,\n );\n }\n\n if (state.quaternaryText) {\n state.quaternaryText.className = mergeClasses(\n personaClassNames.quaternaryText,\n alignBeforeAfterCenter && styles.quaternary,\n optionalTextClassName,\n state.quaternaryText.className,\n );\n }\n\n return state;\n};\n\nconst usePrimaryTextBaseClassName = makeResetStyles({\n display: 'block',\n color: tokens.colorNeutralForeground1,\n ...typographyStyles.body1,\n});\n\nconst useOptionalTextBaseClassName = makeResetStyles({\n display: 'block',\n color: tokens.colorNeutralForeground2,\n ...typographyStyles.caption1,\n});\n\nconst useTextStyles = makeStyles({\n beforeAlignToPrimary: {\n gridColumnEnd: 'middle',\n },\n afterAlignToPrimary: {\n gridColumnStart: 'middle',\n },\n\n body1: typographyStyles.body1,\n caption1: typographyStyles.caption1,\n subtitle2: typographyStyles.subtitle2,\n});\n\nconst useTextClassNames = (\n state: PersonaState,\n alignToPrimary: boolean,\n): {\n primaryTextClassName: string;\n optionalTextClassName: string;\n} => {\n const { presenceOnly, size, textPosition } = state;\n const primaryTextBaseClassName = usePrimaryTextBaseClassName();\n const optionalTextBaseClassName = useOptionalTextBaseClassName();\n const textStyles = useTextStyles();\n\n let primaryTextSize;\n let alignToPrimaryClassName;\n\n if (presenceOnly) {\n if (size === 'extra-small') {\n primaryTextSize = state.numTextLines <= 1 && textStyles.caption1;\n } else if (size === 'extra-large' || size === 'huge') {\n primaryTextSize = textStyles.subtitle2;\n }\n\n if (alignToPrimary) {\n if (textPosition === 'before') {\n alignToPrimaryClassName = textStyles.beforeAlignToPrimary;\n } else if (textPosition === 'after') {\n alignToPrimaryClassName = textStyles.afterAlignToPrimary;\n }\n }\n } else {\n if (size === 'huge') {\n primaryTextSize = textStyles.subtitle2;\n } else if (size === 'extra-large') {\n primaryTextSize = textStyles.subtitle2;\n }\n }\n\n return {\n primaryTextClassName: mergeClasses(primaryTextBaseClassName, primaryTextSize, alignToPrimaryClassName),\n optionalTextClassName: mergeClasses(\n optionalTextBaseClassName,\n !presenceOnly && size === 'huge' && textStyles.body1,\n alignToPrimaryClassName,\n ),\n };\n};\n"],"mappings":";;;;;;AAAA,MAAAA,OAAA,gBAAAC,OAAA;AACA,MAAAC,aAAA,gBAAAD,OAAA;AAIaE,OAAA,CAAAC,iBAAiB,GAAiC;EAC7DC,IAAI,EAAE,aAAa;EACnBC,MAAM,EAAE,qBAAqB;EAC7BC,QAAQ,EAAE,uBAAuB;EACjCC,WAAW,EAAE,0BAA0B;EACvCC,aAAa,EAAE,4BAA4B;EAC3CC,YAAY,EAAE,2BAA2B;EACzCC,cAAc,EAAE;CACjB;AAED,MAAMC,aAAa,GAAG,gCAAgC;AAEtD,MAAMC,gBAAgB,gBAAGb,OAAA,CAAAc,aAAe,0KAMtC;AAEF;;;AAGA,MAAMC,SAAS,gBAAGf,OAAA,CAAAgB,QAAU;EAAAC,iBAAA;IAAAC,MAAA;EAAA;EAAAC,KAAA;EAAAC,MAAA;IAAAC,OAAA;IAAAC,OAAA;EAAA;EAAAC,KAAA;IAAAC,OAAA;IAAAH,OAAA;IAAAC,OAAA;EAAA;EAAAG,KAAA;IAAAC,MAAA;EAAA;EAAAC,sBAAA;IAAAD,MAAA;EAAA;EAAAE,KAAA;IAAAC,MAAA;EAAA;EAAAC,MAAA;IAAAD,MAAA;EAAA;EAAAE,mBAAA;IAAAF,MAAA;IAAAH,MAAA;IAAAM,OAAA;EAAA;EAAAC,oBAAA;IAAAJ,MAAA;IAAAH,MAAA;IAAAQ,OAAA;EAAA;EAAAC,iBAAA;IAAAC,OAAA;EAAA;EAAAC,OAAA;IAAAX,MAAA;EAAA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AK,MAAM,EAAE;MACnB2B,eAAe,GAAGD,UAAU,CAACH,SAAS;KACvC,MAAM,IAAIvB,IAAI,KAAK,aAAa,EAAE;MACjC2B,eAAe,GAAGD,UAAU,CAACH,SAAS;;;EAI1C,OAAO;IACLlB,oBAAoB,EAAE5D,OAAA,CAAAoE,YAAY,CAACW,wBAAwB,EAAEG,eAAe,EAAEC,uBAAuB,CAAC;IACtGtB,qBAAqB,EAAE7D,OAAA,CAAAoE,YAAY,CACjCY,yBAAyB,EACzB,CAAC1B,YAAY,IAAIC,IAAI,KAAK,MAAM,IAAI0B,UAAU,CAACT,KAAK,EACpDW,uBAAuB;GAE1B;AACH,CAAC"}
1
+ {"version":3,"sources":["../../../lib/components/Persona/usePersonaStyles.js"],"sourcesContent":["import { __resetStyles, __styles, mergeClasses } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nexport const personaClassNames = {\n root: 'fui-Persona',\n avatar: 'fui-Persona__avatar',\n presence: 'fui-Persona__presence',\n primaryText: 'fui-Persona__primaryText',\n secondaryText: 'fui-Persona__secondaryText',\n tertiaryText: 'fui-Persona__tertiaryText',\n quaternaryText: 'fui-Persona__quaternaryText'\n};\nconst avatarSpacing = `--fui-Persona__avatar--spacing`;\nconst useRootClassName = /*#__PURE__*/__resetStyles(\"rlroi9i\", null, [\".rlroi9i{display:inline-grid;grid-auto-rows:max-content;grid-auto-flow:column;justify-items:start;grid-template-columns:max-content [middle] auto;}\"]);\n/**\n * Styles for the root slot\n */\nconst useStyles = /*#__PURE__*/__styles({\n beforeAfterCenter: {\n wkccdc: \"f1iantul\"\n },\n after: {},\n before: {\n B7hvi0a: \"f1tll2w5\",\n Budl1dq: \"ffvkwdr\"\n },\n below: {\n Bxotwcr: \"f1nkeedh\",\n B7hvi0a: \"f1oiokrs\",\n Budl1dq: \"f1emgwh2\"\n },\n media: {\n Ijaq50: \"f1hek2iy\"\n },\n mediaBeforeAfterCenter: {\n Ijaq50: \"fa4dipu\"\n },\n start: {\n qb2dma: \"f9h729m\"\n },\n center: {\n qb2dma: \"f7nlbp4\"\n },\n afterAlignToPrimary: {\n qb2dma: \"f7nlbp4\",\n Ijaq50: \"f1rnkkuc\",\n Bw0ie65: \"f1warjpf\"\n },\n beforeAlignToPrimary: {\n qb2dma: \"f7nlbp4\",\n Ijaq50: \"f1rnkkuc\",\n Br312pm: \"fwu52yu\"\n },\n secondLineSpacing: {\n B6of3ja: \"f1ryq6si\"\n },\n primary: {\n Ijaq50: \"f1q3ipgb\"\n },\n secondary: {\n Ijaq50: \"f3drtdk\"\n },\n tertiary: {\n Ijaq50: \"fa1o6s1\"\n },\n quaternary: {\n Ijaq50: \"f1tuwaia\"\n }\n}, {\n d: [\".f1iantul{grid-template-rows:1fr [primary] max-content [secondary] max-content [tertiary] max-content [quaternary] max-content 1fr;}\", \".f1tll2w5{justify-items:end;}\", \".ffvkwdr{grid-template-columns:auto [middle] max-content;}\", \".f1nkeedh{grid-auto-flow:unset;}\", \".f1oiokrs{justify-items:center;}\", \".f1emgwh2{grid-template-columns:unset;}\", \".f1hek2iy{grid-row-start:span 5;}\", \".fa4dipu{grid-row-start:span 6;}\", \".f9h729m{-webkit-align-self:start;-ms-flex-item-align:start;align-self:start;}\", \".f7nlbp4{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;}\", \".f1rnkkuc{grid-row-start:unset;}\", \".f1warjpf{grid-column-end:middle;}\", \".fwu52yu{grid-column-start:middle;}\", \".f1ryq6si{margin-top:-2px;}\", \".f1q3ipgb{grid-row-start:primary;}\", \".f3drtdk{grid-row-start:secondary;}\", \".fa1o6s1{grid-row-start:tertiary;}\", \".f1tuwaia{grid-row-start:quaternary;}\"]\n});\nconst useAvatarSpacingStyles = /*#__PURE__*/__styles({\n \"extra-small\": {\n Bs1gm4r: \"f1e48tse\"\n },\n small: {\n Bs1gm4r: \"f18q9vkd\"\n },\n medium: {\n Bs1gm4r: \"f18q9vkd\"\n },\n large: {\n Bs1gm4r: \"fx34bi6\"\n },\n \"extra-large\": {\n Bs1gm4r: \"fx34bi6\"\n },\n huge: {\n Bs1gm4r: \"f1o96qtm\"\n },\n after: {\n t21cq0: [\"f103ycu4\", \"f1tao51\"]\n },\n below: {\n jrapky: \"fbo7acy\"\n },\n before: {\n Frg6f3: [\"f1tao51\", \"f103ycu4\"]\n }\n}, {\n d: [\".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}\", \".f18q9vkd{--fui-Persona__avatar--spacing:var(--spacingHorizontalS);}\", \".fx34bi6{--fui-Persona__avatar--spacing:var(--spacingHorizontalMNudge);}\", \".f1o96qtm{--fui-Persona__avatar--spacing:var(--spacingHorizontalM);}\", \".f103ycu4{margin-right:var(--fui-Persona__avatar--spacing);}\", \".f1tao51{margin-left:var(--fui-Persona__avatar--spacing);}\", \".fbo7acy{margin-bottom:var(--fui-Persona__avatar--spacing);}\"]\n});\nconst usePresenceSpacingStyles = /*#__PURE__*/__styles({\n small: {\n Bs1gm4r: \"f1e48tse\"\n }\n}, {\n d: [\".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}\"]\n});\n/**\n * Apply styling to the Persona slots based on the state\n */\nexport const usePersonaStyles_unstable = state => {\n const {\n presenceOnly,\n size,\n textAlignment,\n textPosition\n } = state;\n const alignToPrimary = presenceOnly && textAlignment === 'start' && size !== 'extra-large' && size !== 'huge';\n const alignBeforeAfterCenter = textPosition !== 'below' && textAlignment === 'center';\n const {\n primaryTextClassName,\n optionalTextClassName\n } = useTextClassNames(state, alignToPrimary);\n const rootClassName = useRootClassName();\n const styles = useStyles();\n const avatarSpacingStyles = useAvatarSpacingStyles();\n const presenceSpacingStyles = {\n ...avatarSpacingStyles,\n ...usePresenceSpacingStyles()\n };\n state.root.className = mergeClasses(personaClassNames.root, rootClassName, alignBeforeAfterCenter && styles.beforeAfterCenter, styles[textPosition], state.root.className);\n if (state.avatar) {\n state.avatar.className = mergeClasses(personaClassNames.avatar, textPosition !== 'below' && styles.media, alignBeforeAfterCenter && styles.mediaBeforeAfterCenter, styles[textAlignment], avatarSpacingStyles[size], avatarSpacingStyles[textPosition], state.avatar.className);\n }\n if (state.presence) {\n state.presence.className = mergeClasses(personaClassNames.presence, textPosition !== 'below' && styles.media, alignBeforeAfterCenter && styles.mediaBeforeAfterCenter, styles[textAlignment], presenceSpacingStyles[size], presenceSpacingStyles[textPosition], textPosition === 'after' && alignToPrimary && styles.afterAlignToPrimary, textPosition === 'before' && alignToPrimary && styles.beforeAlignToPrimary, state.presence.className);\n }\n if (state.primaryText) {\n state.primaryText.className = mergeClasses(personaClassNames.primaryText, alignBeforeAfterCenter && styles.primary, primaryTextClassName, state.primaryText.className);\n }\n if (state.secondaryText) {\n state.secondaryText.className = mergeClasses(personaClassNames.secondaryText, alignBeforeAfterCenter && styles.secondary, optionalTextClassName, styles.secondLineSpacing, state.secondaryText.className);\n }\n if (state.tertiaryText) {\n state.tertiaryText.className = mergeClasses(personaClassNames.tertiaryText, alignBeforeAfterCenter && styles.tertiary, optionalTextClassName, state.tertiaryText.className);\n }\n if (state.quaternaryText) {\n state.quaternaryText.className = mergeClasses(personaClassNames.quaternaryText, alignBeforeAfterCenter && styles.quaternary, optionalTextClassName, state.quaternaryText.className);\n }\n return state;\n};\nconst usePrimaryTextBaseClassName = /*#__PURE__*/__resetStyles(\"rvj41k9\", null, [\".rvj41k9{display:block;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}\"]);\nconst useOptionalTextBaseClassName = /*#__PURE__*/__resetStyles(\"rp1pf9e\", null, [\".rp1pf9e{display:block;color:var(--colorNeutralForeground2);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}\"]);\nconst useTextStyles = /*#__PURE__*/__styles({\n beforeAlignToPrimary: {\n Bw0ie65: \"f1warjpf\"\n },\n afterAlignToPrimary: {\n Br312pm: \"fwu52yu\"\n },\n body1: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fkhj508\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"f1i3iumi\"\n },\n caption1: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fy9rknc\",\n Bhrd7zp: \"figsok6\",\n Bg96gwp: \"fwrc4pm\"\n },\n subtitle2: {\n Bahqtrf: \"fk6fouc\",\n Be2twd7: \"fod5ikn\",\n Bhrd7zp: \"fl43uef\",\n Bg96gwp: \"faaz57k\"\n }\n}, {\n d: [\".f1warjpf{grid-column-end:middle;}\", \".fwu52yu{grid-column-start:middle;}\", \".fk6fouc{font-family:var(--fontFamilyBase);}\", \".fkhj508{font-size:var(--fontSizeBase300);}\", \".figsok6{font-weight:var(--fontWeightRegular);}\", \".f1i3iumi{line-height:var(--lineHeightBase300);}\", \".fy9rknc{font-size:var(--fontSizeBase200);}\", \".fwrc4pm{line-height:var(--lineHeightBase200);}\", \".fod5ikn{font-size:var(--fontSizeBase400);}\", \".fl43uef{font-weight:var(--fontWeightSemibold);}\", \".faaz57k{line-height:var(--lineHeightBase400);}\"]\n});\nconst useTextClassNames = (state, alignToPrimary) => {\n const {\n presenceOnly,\n size,\n textPosition\n } = state;\n const primaryTextBaseClassName = usePrimaryTextBaseClassName();\n const optionalTextBaseClassName = useOptionalTextBaseClassName();\n const textStyles = useTextStyles();\n let primaryTextSize;\n let alignToPrimaryClassName;\n if (presenceOnly) {\n if (size === 'extra-small') {\n primaryTextSize = state.numTextLines <= 1 && textStyles.caption1;\n } else if (size === 'extra-large' || size === 'huge') {\n primaryTextSize = textStyles.subtitle2;\n }\n if (alignToPrimary) {\n if (textPosition === 'before') {\n alignToPrimaryClassName = textStyles.beforeAlignToPrimary;\n } else if (textPosition === 'after') {\n alignToPrimaryClassName = textStyles.afterAlignToPrimary;\n }\n }\n } else {\n if (size === 'huge') {\n primaryTextSize = textStyles.subtitle2;\n } else if (size === 'extra-large') {\n primaryTextSize = textStyles.subtitle2;\n }\n }\n return {\n primaryTextClassName: mergeClasses(primaryTextBaseClassName, primaryTextSize, alignToPrimaryClassName),\n optionalTextClassName: mergeClasses(optionalTextBaseClassName, !presenceOnly && size === 'huge' && textStyles.body1, alignToPrimaryClassName)\n };\n};\n//# sourceMappingURL=usePersonaStyles.js.map"],"names":["personaClassNames","usePersonaStyles_unstable","root","avatar","presence","primaryText","secondaryText","tertiaryText","quaternaryText","avatarSpacing","useRootClassName","__resetStyles","useStyles","__styles","beforeAfterCenter","wkccdc","after","before","B7hvi0a","Budl1dq","below","Bxotwcr","media","Ijaq50","mediaBeforeAfterCenter","start","qb2dma","center","afterAlignToPrimary","Bw0ie65","beforeAlignToPrimary","Br312pm","secondLineSpacing","B6of3ja","primary","secondary","tertiary","quaternary","d","useAvatarSpacingStyles","Bs1gm4r","small","medium","large","huge","t21cq0","jrapky","Frg6f3","usePresenceSpacingStyles","state","presenceOnly","size","textAlignment","textPosition","alignToPrimary","alignBeforeAfterCenter","primaryTextClassName","optionalTextClassName","useTextClassNames","rootClassName","styles","avatarSpacingStyles","presenceSpacingStyles","className","mergeClasses","usePrimaryTextBaseClassName","useOptionalTextBaseClassName","useTextStyles","body1","Bahqtrf","Be2twd7","Bhrd7zp","Bg96gwp","caption1","subtitle2","primaryTextBaseClassName","optionalTextBaseClassName","textStyles","primaryTextSize","alignToPrimaryClassName","numTextLines"],"mappings":";;;;;;;;;;;IAEaA,iBAAiB,MAAjBA;IA6GAC,yBAAyB,MAAzBA;;uBA/GyC;AAE/C,MAAMD,oBAAoB;IAC/BE,MAAM;IACNC,QAAQ;IACRC,UAAU;IACVC,aAAa;IACbC,eAAe;IACfC,cAAc;IACdC,gBAAgB;AAClB;AACA,MAAMC,gBAAgB,CAAC,8BAA8B,CAAC;AACtD,MAAMC,mBAAmB,WAAW,GAAEC,IAAAA,uBAAa,EAAC,WAAW,IAAI,EAAE;IAAC;CAAsJ;AAC5N;;CAEC,GACD,MAAMC,YAAY,WAAW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O;QACLlB,sBAAsBQ,IAAAA,mBAAY,EAACW,0BAA0BG,iBAAiBC;QAC9EtB,uBAAuBO,IAAAA,mBAAY,EAACY,2BAA2B,CAAC1B,gBAAgBC,SAAS,UAAU0B,WAAWT,KAAK,EAAEW;IACvH;AACF,GACA,4CAA4C"}
@@ -1,38 +1,21 @@
1
1
  "use strict";
2
-
3
2
  Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.usePersona_unstable = exports.usePersonaStyles_unstable = exports.renderPersona_unstable = exports.personaClassNames = exports.Persona = void 0;
7
- var Persona_1 = /*#__PURE__*/require("./Persona");
8
- Object.defineProperty(exports, "Persona", {
9
- enumerable: true,
10
- get: function () {
11
- return Persona_1.Persona;
12
- }
13
- });
14
- Object.defineProperty(exports, "personaClassNames", {
15
- enumerable: true,
16
- get: function () {
17
- return Persona_1.personaClassNames;
18
- }
3
+ value: true
19
4
  });
20
- Object.defineProperty(exports, "renderPersona_unstable", {
21
- enumerable: true,
22
- get: function () {
23
- return Persona_1.renderPersona_unstable;
24
- }
25
- });
26
- Object.defineProperty(exports, "usePersonaStyles_unstable", {
27
- enumerable: true,
28
- get: function () {
29
- return Persona_1.usePersonaStyles_unstable;
30
- }
31
- });
32
- Object.defineProperty(exports, "usePersona_unstable", {
33
- enumerable: true,
34
- get: function () {
35
- return Persona_1.usePersona_unstable;
36
- }
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ Persona: ()=>_persona.Persona,
13
+ personaClassNames: ()=>_persona.personaClassNames,
14
+ renderPersona_unstable: ()=>_persona.renderPersona_unstable,
15
+ usePersonaStyles_unstable: ()=>_persona.usePersonaStyles_unstable,
16
+ usePersona_unstable: ()=>_persona.usePersona_unstable
37
17
  });
18
+ const _persona = require("./Persona");
19
+ //# sourceMappingURL=index.js.map
20
+
38
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Persona_1","require","Object","defineProperty","exports","enumerable","get","Persona","personaClassNames","renderPersona_unstable","usePersonaStyles_unstable","usePersona_unstable"],"sources":["../src/packages/react-components/react-persona/src/index.ts"],"sourcesContent":["export {\n Persona,\n personaClassNames,\n renderPersona_unstable,\n usePersonaStyles_unstable,\n usePersona_unstable,\n} from './Persona';\nexport type { PersonaProps, PersonaSlots, PersonaState } from './Persona';\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,gBAAAC,OAAA;AACEC,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,SAAA,CAAAO,OAAO;EAAA;AAAA;AACPL,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,SAAA,CAAAQ,iBAAiB;EAAA;AAAA;AACjBN,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,SAAA,CAAAS,sBAAsB;EAAA;AAAA;AACtBP,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,SAAA,CAAAU,yBAAyB;EAAA;AAAA;AACzBR,MAAA,CAAAC,cAAA,CAAAC,OAAA;EAAAC,UAAA;EAAAC,GAAA,WAAAA,CAAA;IAAA,OAAAN,SAAA,CAAAW,mBAAmB;EAAA;AAAA"}
1
+ {"version":3,"sources":["../lib/index.js"],"sourcesContent":["export { Persona, personaClassNames, renderPersona_unstable, usePersonaStyles_unstable, usePersona_unstable } from './Persona';\n//# sourceMappingURL=index.js.map"],"names":["Persona","personaClassNames","renderPersona_unstable","usePersonaStyles_unstable","usePersona_unstable"],"mappings":";;;;;;;;;;;IAASA,OAAO,MAAPA,gBAAO;IAAEC,iBAAiB,MAAjBA,0BAAiB;IAAEC,sBAAsB,MAAtBA,+BAAsB;IAAEC,yBAAyB,MAAzBA,kCAAyB;IAAEC,mBAAmB,MAAnBA,4BAAmB;;yBAAQ;CACnH,iCAAiC"}