@fluentui/react-badge 9.1.3 → 9.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. package/.swcrc +30 -0
  2. package/CHANGELOG.json +73 -1
  3. package/CHANGELOG.md +27 -2
  4. package/lib/Badge.js.map +1 -1
  5. package/lib/CounterBadge.js.map +1 -1
  6. package/lib/PresenceBadge.js.map +1 -1
  7. package/lib/components/Badge/Badge.js.map +1 -1
  8. package/lib/components/Badge/Badge.types.js.map +1 -1
  9. package/lib/components/Badge/index.js.map +1 -1
  10. package/lib/components/Badge/renderBadge.js +1 -7
  11. package/lib/components/Badge/renderBadge.js.map +1 -1
  12. package/lib/components/Badge/useBadge.js +1 -0
  13. package/lib/components/Badge/useBadge.js.map +1 -1
  14. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  15. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  16. package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
  17. package/lib/components/CounterBadge/index.js.map +1 -1
  18. package/lib/components/CounterBadge/useCounterBadge.js +1 -0
  19. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  20. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  21. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  22. package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  23. package/lib/components/PresenceBadge/index.js.map +1 -1
  24. package/lib/components/PresenceBadge/presenceIcons.js +34 -41
  25. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -1
  26. package/lib/components/PresenceBadge/usePresenceBadge.js +2 -2
  27. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  28. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +1 -1
  29. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  30. package/lib/index.js.map +1 -1
  31. package/lib-commonjs/Badge.js +5 -4
  32. package/lib-commonjs/Badge.js.map +1 -1
  33. package/lib-commonjs/CounterBadge.js +5 -4
  34. package/lib-commonjs/CounterBadge.js.map +1 -1
  35. package/lib-commonjs/PresenceBadge.js +5 -4
  36. package/lib-commonjs/PresenceBadge.js.map +1 -1
  37. package/lib-commonjs/components/Badge/Badge.js +19 -20
  38. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  39. package/lib-commonjs/components/Badge/Badge.types.js +3 -2
  40. package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
  41. package/lib-commonjs/components/Badge/index.js +8 -7
  42. package/lib-commonjs/components/Badge/index.js.map +1 -1
  43. package/lib-commonjs/components/Badge/renderBadge.js +13 -19
  44. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  45. package/lib-commonjs/components/Badge/useBadge.js +29 -34
  46. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  47. package/lib-commonjs/components/Badge/useBadgeStyles.js +608 -310
  48. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  49. package/lib-commonjs/components/CounterBadge/CounterBadge.js +19 -20
  50. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  51. package/lib-commonjs/components/CounterBadge/CounterBadge.types.js +3 -2
  52. package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
  53. package/lib-commonjs/components/CounterBadge/index.js +8 -7
  54. package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
  55. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +24 -30
  56. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  57. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +54 -34
  58. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  59. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +19 -20
  60. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  61. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js +3 -2
  62. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  63. package/lib-commonjs/components/PresenceBadge/index.js +8 -7
  64. package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
  65. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +146 -134
  66. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -1
  67. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +61 -65
  68. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  69. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +102 -78
  70. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  71. package/lib-commonjs/index.js +28 -85
  72. package/lib-commonjs/index.js.map +1 -1
  73. package/package.json +9 -8
  74. package/lib-amd/Badge.js +0 -6
  75. package/lib-amd/Badge.js.map +0 -1
  76. package/lib-amd/CounterBadge.js +0 -6
  77. package/lib-amd/CounterBadge.js.map +0 -1
  78. package/lib-amd/PresenceBadge.js +0 -6
  79. package/lib-amd/PresenceBadge.js.map +0 -1
  80. package/lib-amd/components/Badge/Badge.js +0 -17
  81. package/lib-amd/components/Badge/Badge.js.map +0 -1
  82. package/lib-amd/components/Badge/Badge.types.js +0 -5
  83. package/lib-amd/components/Badge/Badge.types.js.map +0 -1
  84. package/lib-amd/components/Badge/index.js +0 -9
  85. package/lib-amd/components/Badge/index.js.map +0 -1
  86. package/lib-amd/components/Badge/renderBadge.js +0 -14
  87. package/lib-amd/components/Badge/renderBadge.js.map +0 -1
  88. package/lib-amd/components/Badge/useBadge.js +0 -27
  89. package/lib-amd/components/Badge/useBadge.js.map +0 -1
  90. package/lib-amd/components/Badge/useBadgeStyles.js +0 -212
  91. package/lib-amd/components/Badge/useBadgeStyles.js.map +0 -1
  92. package/lib-amd/components/CounterBadge/CounterBadge.js +0 -17
  93. package/lib-amd/components/CounterBadge/CounterBadge.js.map +0 -1
  94. package/lib-amd/components/CounterBadge/CounterBadge.types.js +0 -5
  95. package/lib-amd/components/CounterBadge/CounterBadge.types.js.map +0 -1
  96. package/lib-amd/components/CounterBadge/index.js +0 -9
  97. package/lib-amd/components/CounterBadge/index.js.map +0 -1
  98. package/lib-amd/components/CounterBadge/useCounterBadge.js +0 -18
  99. package/lib-amd/components/CounterBadge/useCounterBadge.js.map +0 -1
  100. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js +0 -28
  101. package/lib-amd/components/CounterBadge/useCounterBadgeStyles.js.map +0 -1
  102. package/lib-amd/components/PresenceBadge/PresenceBadge.js +0 -17
  103. package/lib-amd/components/PresenceBadge/PresenceBadge.js.map +0 -1
  104. package/lib-amd/components/PresenceBadge/PresenceBadge.types.js +0 -5
  105. package/lib-amd/components/PresenceBadge/PresenceBadge.types.js.map +0 -1
  106. package/lib-amd/components/PresenceBadge/index.js +0 -9
  107. package/lib-amd/components/PresenceBadge/index.js.map +0 -1
  108. package/lib-amd/components/PresenceBadge/presenceIcons.js +0 -146
  109. package/lib-amd/components/PresenceBadge/presenceIcons.js.map +0 -1
  110. package/lib-amd/components/PresenceBadge/usePresenceBadge.js +0 -53
  111. package/lib-amd/components/PresenceBadge/usePresenceBadge.js.map +0 -1
  112. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js +0 -101
  113. package/lib-amd/components/PresenceBadge/usePresenceBadgeStyles.js.map +0 -1
  114. package/lib-amd/index.js +0 -19
  115. package/lib-amd/index.js.map +0 -1
@@ -1,212 +0,0 @@
1
- define(["require", "exports", "tslib", "@griffel/react", "@fluentui/react-theme"], function (require, exports, tslib_1, react_1, react_theme_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.useBadgeStyles_unstable = exports.badgeClassNames = void 0;
5
- exports.badgeClassNames = {
6
- root: 'fui-Badge',
7
- icon: 'fui-Badge__icon',
8
- };
9
- // The text content of the badge has additional horizontal padding, but there is no `text` slot to add that padding to.
10
- // Instead, add extra padding to the root, and a negative margin on the icon to "remove" the extra padding on the icon.
11
- var textPadding = react_theme_1.tokens.spacingHorizontalXXS;
12
- var useRootClassName = react_1.makeResetStyles(tslib_1.__assign(tslib_1.__assign({ display: 'inline-flex', boxSizing: 'border-box', alignItems: 'center', justifyContent: 'center', position: 'relative' }, react_theme_1.typographyStyles.caption1Strong), { height: '20px', minWidth: '20px', padding: "0 calc(" + react_theme_1.tokens.spacingHorizontalXS + " + " + textPadding + ")", borderRadius: react_theme_1.tokens.borderRadiusCircular,
13
- // Use a transparent stroke (rather than no border) so the border is visible in high contrast
14
- borderColor: react_theme_1.tokens.colorTransparentStroke, '::after': {
15
- content: '""',
16
- position: 'absolute',
17
- top: 0,
18
- left: 0,
19
- bottom: 0,
20
- right: 0,
21
- borderStyle: 'solid',
22
- borderColor: 'inherit',
23
- borderWidth: react_theme_1.tokens.strokeWidthThin,
24
- borderRadius: 'inherit',
25
- } }));
26
- var useRootStyles = react_1.makeStyles({
27
- fontSmallToTiny: tslib_1.__assign({}, react_theme_1.typographyStyles.caption2Strong),
28
- // size
29
- tiny: tslib_1.__assign({ width: '6px', height: '6px', fontSize: '4px', lineHeight: '4px', minWidth: 'unset' }, react_1.shorthands.padding('unset')),
30
- 'extra-small': tslib_1.__assign({ width: '10px', height: '10px', fontSize: '6px', lineHeight: '6px', minWidth: 'unset' }, react_1.shorthands.padding('unset')),
31
- small: tslib_1.__assign({ minWidth: '16px', height: '16px' }, react_1.shorthands.padding(0, "calc(" + react_theme_1.tokens.spacingHorizontalXXS + " + " + textPadding + ")")),
32
- medium: {
33
- // Set by useRootClassName
34
- },
35
- large: tslib_1.__assign({ minWidth: '24px', height: '24px' }, react_1.shorthands.padding(0, "calc(" + react_theme_1.tokens.spacingHorizontalXS + " + " + textPadding + ")")),
36
- 'extra-large': tslib_1.__assign({ minWidth: '32px', height: '32px' }, react_1.shorthands.padding(0, "calc(" + react_theme_1.tokens.spacingHorizontalSNudge + " + " + textPadding + ")")),
37
- // shape
38
- square: tslib_1.__assign({}, react_1.shorthands.borderRadius(react_theme_1.tokens.borderRadiusNone)),
39
- rounded: tslib_1.__assign({}, react_1.shorthands.borderRadius(react_theme_1.tokens.borderRadiusMedium)),
40
- roundedSmallToTiny: tslib_1.__assign({}, react_1.shorthands.borderRadius(react_theme_1.tokens.borderRadiusSmall)),
41
- circular: {
42
- // Set by useRootClassName
43
- },
44
- // hide the boder when appearance is "ghost"
45
- borderGhost: {
46
- // The border is applied in an ::after pseudo-element because it should not affect layout.
47
- // The padding and size of the badge should be the same regardless of whether or not it has a border.
48
- '::after': {
49
- display: 'none',
50
- },
51
- },
52
- // appearance: filled
53
- filled: {
54
- // Set by useRootClassName
55
- },
56
- 'filled-brand': {
57
- backgroundColor: react_theme_1.tokens.colorBrandBackground,
58
- color: react_theme_1.tokens.colorNeutralForegroundOnBrand,
59
- },
60
- 'filled-danger': {
61
- backgroundColor: react_theme_1.tokens.colorPaletteRedBackground3,
62
- color: react_theme_1.tokens.colorNeutralForegroundOnBrand,
63
- },
64
- 'filled-important': {
65
- backgroundColor: react_theme_1.tokens.colorNeutralForeground1,
66
- color: react_theme_1.tokens.colorNeutralBackground1,
67
- },
68
- 'filled-informative': {
69
- backgroundColor: react_theme_1.tokens.colorNeutralBackground5,
70
- color: react_theme_1.tokens.colorNeutralForeground3,
71
- },
72
- 'filled-severe': {
73
- backgroundColor: react_theme_1.tokens.colorPaletteDarkOrangeBackground3,
74
- color: react_theme_1.tokens.colorNeutralForegroundOnBrand,
75
- },
76
- 'filled-subtle': {
77
- backgroundColor: react_theme_1.tokens.colorNeutralBackground1,
78
- color: react_theme_1.tokens.colorNeutralForeground1,
79
- },
80
- 'filled-success': {
81
- backgroundColor: react_theme_1.tokens.colorPaletteGreenBackground3,
82
- color: react_theme_1.tokens.colorNeutralForegroundOnBrand,
83
- },
84
- 'filled-warning': {
85
- backgroundColor: react_theme_1.tokens.colorPaletteYellowBackground3,
86
- color: react_theme_1.tokens.colorNeutralForeground1Static,
87
- },
88
- // appearance: ghost
89
- ghost: {
90
- // No shared colors between ghost appearances
91
- },
92
- 'ghost-brand': {
93
- color: react_theme_1.tokens.colorBrandForeground1,
94
- },
95
- 'ghost-danger': {
96
- color: react_theme_1.tokens.colorPaletteRedForeground3,
97
- },
98
- 'ghost-important': {
99
- color: react_theme_1.tokens.colorNeutralForeground1,
100
- },
101
- 'ghost-informative': {
102
- color: react_theme_1.tokens.colorNeutralForeground3,
103
- },
104
- 'ghost-severe': {
105
- color: react_theme_1.tokens.colorPaletteDarkOrangeForeground3,
106
- },
107
- 'ghost-subtle': {
108
- color: react_theme_1.tokens.colorNeutralForegroundStaticInverted,
109
- },
110
- 'ghost-success': {
111
- color: react_theme_1.tokens.colorPaletteGreenForeground3,
112
- },
113
- 'ghost-warning': {
114
- color: react_theme_1.tokens.colorPaletteYellowForeground2,
115
- },
116
- // appearance: outline
117
- outline: tslib_1.__assign({}, react_1.shorthands.borderColor('currentColor')),
118
- 'outline-brand': {
119
- color: react_theme_1.tokens.colorBrandForeground1,
120
- },
121
- 'outline-danger': tslib_1.__assign({ color: react_theme_1.tokens.colorPaletteRedForeground3 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorPaletteRedBorder2)),
122
- 'outline-important': tslib_1.__assign({ color: react_theme_1.tokens.colorNeutralForeground3 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorNeutralStrokeAccessible)),
123
- 'outline-informative': tslib_1.__assign({ color: react_theme_1.tokens.colorNeutralForeground3 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorNeutralStroke2)),
124
- 'outline-severe': {
125
- color: react_theme_1.tokens.colorPaletteDarkOrangeForeground3,
126
- },
127
- 'outline-subtle': {
128
- color: react_theme_1.tokens.colorNeutralForegroundStaticInverted,
129
- },
130
- 'outline-success': tslib_1.__assign({ color: react_theme_1.tokens.colorPaletteGreenForeground3 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorPaletteGreenBorder2)),
131
- 'outline-warning': {
132
- color: react_theme_1.tokens.colorPaletteYellowForeground2,
133
- },
134
- // appearance: tint
135
- tint: {
136
- // No shared colors between tint appearances
137
- },
138
- 'tint-brand': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorBrandBackground2, color: react_theme_1.tokens.colorBrandForeground2 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorBrandStroke2)),
139
- 'tint-danger': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorPaletteRedBackground1, color: react_theme_1.tokens.colorPaletteRedForeground1 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorPaletteRedBorder1)),
140
- 'tint-important': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorNeutralForeground3, color: react_theme_1.tokens.colorNeutralBackground1 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorTransparentStroke)),
141
- 'tint-informative': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorNeutralBackground4, color: react_theme_1.tokens.colorNeutralForeground3 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorNeutralStroke2)),
142
- 'tint-severe': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorPaletteDarkOrangeBackground1, color: react_theme_1.tokens.colorPaletteDarkOrangeForeground1 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorPaletteDarkOrangeBorder1)),
143
- 'tint-subtle': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorNeutralBackground1, color: react_theme_1.tokens.colorNeutralForeground3 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorNeutralStroke2)),
144
- 'tint-success': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorPaletteGreenBackground1, color: react_theme_1.tokens.colorPaletteGreenForeground1 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorPaletteGreenBorder1)),
145
- 'tint-warning': tslib_1.__assign({ backgroundColor: react_theme_1.tokens.colorPaletteYellowBackground1, color: react_theme_1.tokens.colorPaletteYellowForeground1 }, react_1.shorthands.borderColor(react_theme_1.tokens.colorPaletteYellowBorder1)),
146
- });
147
- var useIconRootClassName = react_1.makeResetStyles({
148
- display: 'flex',
149
- lineHeight: '1',
150
- margin: "0 calc(-1 * " + textPadding + ")",
151
- fontSize: '12px',
152
- });
153
- var useIconStyles = react_1.makeStyles({
154
- beforeText: {
155
- marginRight: "calc(" + react_theme_1.tokens.spacingHorizontalXXS + " + " + textPadding + ")",
156
- },
157
- afterText: {
158
- marginLeft: "calc(" + react_theme_1.tokens.spacingHorizontalXXS + " + " + textPadding + ")",
159
- },
160
- beforeTextXL: {
161
- marginRight: "calc(" + react_theme_1.tokens.spacingHorizontalXS + " + " + textPadding + ")",
162
- },
163
- afterTextXL: {
164
- marginLeft: "calc(" + react_theme_1.tokens.spacingHorizontalXS + " + " + textPadding + ")",
165
- },
166
- // size
167
- tiny: {
168
- fontSize: '6px',
169
- },
170
- 'extra-small': {
171
- fontSize: '10px',
172
- },
173
- small: {
174
- fontSize: '12px',
175
- },
176
- medium: {
177
- // Set by useIconRootClassName
178
- },
179
- large: {
180
- fontSize: '16px',
181
- },
182
- 'extra-large': {
183
- fontSize: '20px',
184
- },
185
- });
186
- /**
187
- * Applies style classnames to slots
188
- */
189
- var useBadgeStyles_unstable = function (state) {
190
- var rootClassName = useRootClassName();
191
- var rootStyles = useRootStyles();
192
- var smallToTiny = state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny';
193
- state.root.className = react_1.mergeClasses(exports.badgeClassNames.root, rootClassName, smallToTiny && rootStyles.fontSmallToTiny, rootStyles[state.size], rootStyles[state.shape], state.shape === 'rounded' && smallToTiny && rootStyles.roundedSmallToTiny, state.appearance === 'ghost' && rootStyles.borderGhost, rootStyles[state.appearance], rootStyles[state.appearance + "-" + state.color], state.root.className);
194
- var iconRootClassName = useIconRootClassName();
195
- var iconStyles = useIconStyles();
196
- if (state.icon) {
197
- var iconPositionClass = void 0;
198
- if (state.root.children) {
199
- if (state.size === 'extra-large') {
200
- iconPositionClass = state.iconPosition === 'after' ? iconStyles.afterTextXL : iconStyles.beforeTextXL;
201
- }
202
- else {
203
- iconPositionClass = state.iconPosition === 'after' ? iconStyles.afterText : iconStyles.beforeText;
204
- }
205
- }
206
- state.icon.className = react_1.mergeClasses(exports.badgeClassNames.icon, iconRootClassName, iconPositionClass, iconStyles[state.size], state.icon.className);
207
- }
208
- return state;
209
- };
210
- exports.useBadgeStyles_unstable = useBadgeStyles_unstable;
211
- });
212
- //# sourceMappingURL=useBadgeStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useBadgeStyles.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/Badge/useBadgeStyles.ts"],"names":[],"mappings":";;;;IAKa,QAAA,eAAe,GAA+B;QACzD,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,iBAAiB;KACxB,CAAC;IAEF,uHAAuH;IACvH,uHAAuH;IACvH,IAAM,WAAW,GAAG,oBAAM,CAAC,oBAAoB,CAAC;IAEhD,IAAM,gBAAgB,GAAG,uBAAe,qCACtC,OAAO,EAAE,aAAa,EACtB,SAAS,EAAE,YAAY,EACvB,UAAU,EAAE,QAAQ,EACpB,cAAc,EAAE,QAAQ,EACxB,QAAQ,EAAE,UAAU,IACjB,8BAAgB,CAAC,cAAc,KAClC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,YAAU,oBAAM,CAAC,mBAAmB,WAAM,WAAW,MAAG,EACjE,YAAY,EAAE,oBAAM,CAAC,oBAAoB;QACzC,6FAA6F;QAC7F,WAAW,EAAE,oBAAM,CAAC,sBAAsB,EAE1C,SAAS,EAAE;YACT,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,UAAU;YACpB,GAAG,EAAE,CAAC;YACN,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,CAAC;YACR,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,oBAAM,CAAC,eAAe;YACnC,YAAY,EAAE,SAAS;SACxB,IACD,CAAC;IAEH,IAAM,aAAa,GAAG,kBAAU,CAAC;QAC/B,eAAe,uBACV,8BAAgB,CAAC,cAAc,CACnC;QAED,OAAO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U,CAAC,KAAK,CAAC,KAAK,CAAC,EACvB,KAAK,CAAC,KAAK,KAAK,SAAS,IAAI,WAAW,IAAI,UAAU,CAAC,kBAAkB,EACzE,KAAK,CAAC,UAAU,KAAK,OAAO,IAAI,UAAU,CAAC,WAAW,EACtD,UAAU,CAAC,KAAK,CAAC,UAAU,CAAC,EAC5B,UAAU,CAAI,KAAK,CAAC,UAAU,SAAI,KAAK,CAAC,KAAgB,CAAC,EACzD,KAAK,CAAC,IAAI,CAAC,SAAS,CACrB,CAAC;QAEF,IAAM,iBAAiB,GAAG,oBAAoB,EAAE,CAAC;QACjD,IAAM,UAAU,GAAG,aAAa,EAAE,CAAC;QACnC,IAAI,KAAK,CAAC,IAAI,EAAE;YACd,IAAI,iBAAiB,SAAA,CAAC;YACtB,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;gBACvB,IAAI,KAAK,CAAC,IAAI,KAAK,aAAa,EAAE;oBAChC,iBAAiB,GAAG,KAAK,CAAC,YAAY,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC;iBACvG;qBAAM;oBACL,iBAAiB,GAAG,KAAK,CAAC,YAAY,KAAK,OAAO,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC;iBACnG;aACF;YAED,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,oBAAY,CACjC,uBAAe,CAAC,IAAI,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,EACtB,KAAK,CAAC,IAAI,CAAC,SAAS,CACrB,CAAC;SACH;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAzCW,QAAA,uBAAuB,2BAyClC","sourcesContent":["import { shorthands, makeResetStyles, makeStyles, mergeClasses } from '@griffel/react';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport type { BadgeSlots, BadgeState } from './Badge.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\nexport const badgeClassNames: SlotClassNames<BadgeSlots> = {\n root: 'fui-Badge',\n icon: 'fui-Badge__icon',\n};\n\n// The text content of the badge has additional horizontal padding, but there is no `text` slot to add that padding to.\n// Instead, add extra padding to the root, and a negative margin on the icon to \"remove\" the extra padding on the icon.\nconst textPadding = tokens.spacingHorizontalXXS;\n\nconst useRootClassName = makeResetStyles({\n display: 'inline-flex',\n boxSizing: 'border-box',\n alignItems: 'center',\n justifyContent: 'center',\n position: 'relative',\n ...typographyStyles.caption1Strong,\n height: '20px',\n minWidth: '20px',\n padding: `0 calc(${tokens.spacingHorizontalXS} + ${textPadding})`,\n borderRadius: tokens.borderRadiusCircular,\n // Use a transparent stroke (rather than no border) so the border is visible in high contrast\n borderColor: tokens.colorTransparentStroke,\n\n '::after': {\n content: '\"\"',\n position: 'absolute',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n borderStyle: 'solid',\n borderColor: 'inherit',\n borderWidth: tokens.strokeWidthThin,\n borderRadius: 'inherit',\n },\n});\n\nconst useRootStyles = makeStyles({\n fontSmallToTiny: {\n ...typographyStyles.caption2Strong,\n },\n\n // size\n\n tiny: {\n width: '6px',\n height: '6px',\n fontSize: '4px',\n lineHeight: '4px',\n minWidth: 'unset',\n ...shorthands.padding('unset'),\n },\n 'extra-small': {\n width: '10px',\n height: '10px',\n fontSize: '6px',\n lineHeight: '6px',\n minWidth: 'unset',\n ...shorthands.padding('unset'),\n },\n small: {\n minWidth: '16px',\n height: '16px',\n ...shorthands.padding(0, `calc(${tokens.spacingHorizontalXXS} + ${textPadding})`),\n },\n medium: {\n // Set by useRootClassName\n },\n large: {\n minWidth: '24px',\n height: '24px',\n ...shorthands.padding(0, `calc(${tokens.spacingHorizontalXS} + ${textPadding})`),\n },\n 'extra-large': {\n minWidth: '32px',\n height: '32px',\n ...shorthands.padding(0, `calc(${tokens.spacingHorizontalSNudge} + ${textPadding})`),\n },\n\n // shape\n\n square: {\n ...shorthands.borderRadius(tokens.borderRadiusNone),\n },\n rounded: {\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n },\n roundedSmallToTiny: {\n ...shorthands.borderRadius(tokens.borderRadiusSmall),\n },\n circular: {\n // Set by useRootClassName\n },\n\n // hide the boder when appearance is \"ghost\"\n\n borderGhost: {\n // The border is applied in an ::after pseudo-element because it should not affect layout.\n // The padding and size of the badge should be the same regardless of whether or not it has a border.\n '::after': {\n display: 'none',\n },\n },\n\n // appearance: filled\n\n filled: {\n // Set by useRootClassName\n },\n 'filled-brand': {\n backgroundColor: tokens.colorBrandBackground,\n color: tokens.colorNeutralForegroundOnBrand,\n },\n 'filled-danger': {\n backgroundColor: tokens.colorPaletteRedBackground3,\n color: tokens.colorNeutralForegroundOnBrand,\n },\n 'filled-important': {\n backgroundColor: tokens.colorNeutralForeground1,\n color: tokens.colorNeutralBackground1,\n },\n 'filled-informative': {\n backgroundColor: tokens.colorNeutralBackground5,\n color: tokens.colorNeutralForeground3,\n },\n 'filled-severe': {\n backgroundColor: tokens.colorPaletteDarkOrangeBackground3,\n color: tokens.colorNeutralForegroundOnBrand,\n },\n 'filled-subtle': {\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground1,\n },\n 'filled-success': {\n backgroundColor: tokens.colorPaletteGreenBackground3,\n color: tokens.colorNeutralForegroundOnBrand,\n },\n 'filled-warning': {\n backgroundColor: tokens.colorPaletteYellowBackground3,\n color: tokens.colorNeutralForeground1Static,\n },\n\n // appearance: ghost\n\n ghost: {\n // No shared colors between ghost appearances\n },\n 'ghost-brand': {\n color: tokens.colorBrandForeground1,\n },\n 'ghost-danger': {\n color: tokens.colorPaletteRedForeground3,\n },\n 'ghost-important': {\n color: tokens.colorNeutralForeground1,\n },\n 'ghost-informative': {\n color: tokens.colorNeutralForeground3,\n },\n 'ghost-severe': {\n color: tokens.colorPaletteDarkOrangeForeground3,\n },\n 'ghost-subtle': {\n color: tokens.colorNeutralForegroundStaticInverted,\n },\n 'ghost-success': {\n color: tokens.colorPaletteGreenForeground3,\n },\n 'ghost-warning': {\n color: tokens.colorPaletteYellowForeground2,\n },\n\n // appearance: outline\n\n outline: {\n ...shorthands.borderColor('currentColor'),\n },\n 'outline-brand': {\n color: tokens.colorBrandForeground1,\n },\n 'outline-danger': {\n color: tokens.colorPaletteRedForeground3,\n ...shorthands.borderColor(tokens.colorPaletteRedBorder2),\n },\n 'outline-important': {\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessible),\n },\n 'outline-informative': {\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n 'outline-severe': {\n color: tokens.colorPaletteDarkOrangeForeground3,\n },\n 'outline-subtle': {\n color: tokens.colorNeutralForegroundStaticInverted,\n },\n 'outline-success': {\n color: tokens.colorPaletteGreenForeground3,\n ...shorthands.borderColor(tokens.colorPaletteGreenBorder2),\n },\n 'outline-warning': {\n color: tokens.colorPaletteYellowForeground2,\n },\n\n // appearance: tint\n\n tint: {\n // No shared colors between tint appearances\n },\n 'tint-brand': {\n backgroundColor: tokens.colorBrandBackground2,\n color: tokens.colorBrandForeground2,\n ...shorthands.borderColor(tokens.colorBrandStroke2),\n },\n 'tint-danger': {\n backgroundColor: tokens.colorPaletteRedBackground1,\n color: tokens.colorPaletteRedForeground1,\n ...shorthands.borderColor(tokens.colorPaletteRedBorder1),\n },\n 'tint-important': {\n backgroundColor: tokens.colorNeutralForeground3,\n color: tokens.colorNeutralBackground1,\n ...shorthands.borderColor(tokens.colorTransparentStroke),\n },\n 'tint-informative': {\n backgroundColor: tokens.colorNeutralBackground4,\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n 'tint-severe': {\n backgroundColor: tokens.colorPaletteDarkOrangeBackground1,\n color: tokens.colorPaletteDarkOrangeForeground1,\n ...shorthands.borderColor(tokens.colorPaletteDarkOrangeBorder1),\n },\n 'tint-subtle': {\n backgroundColor: tokens.colorNeutralBackground1,\n color: tokens.colorNeutralForeground3,\n ...shorthands.borderColor(tokens.colorNeutralStroke2),\n },\n 'tint-success': {\n backgroundColor: tokens.colorPaletteGreenBackground1,\n color: tokens.colorPaletteGreenForeground1,\n ...shorthands.borderColor(tokens.colorPaletteGreenBorder1),\n },\n 'tint-warning': {\n backgroundColor: tokens.colorPaletteYellowBackground1,\n color: tokens.colorPaletteYellowForeground1,\n ...shorthands.borderColor(tokens.colorPaletteYellowBorder1),\n },\n});\n\nconst useIconRootClassName = makeResetStyles({\n display: 'flex',\n lineHeight: '1',\n margin: `0 calc(-1 * ${textPadding})`, // Remove text padding added to root\n fontSize: '12px',\n});\n\nconst useIconStyles = makeStyles({\n beforeText: {\n marginRight: `calc(${tokens.spacingHorizontalXXS} + ${textPadding})`,\n },\n afterText: {\n marginLeft: `calc(${tokens.spacingHorizontalXXS} + ${textPadding})`,\n },\n\n beforeTextXL: {\n marginRight: `calc(${tokens.spacingHorizontalXS} + ${textPadding})`,\n },\n afterTextXL: {\n marginLeft: `calc(${tokens.spacingHorizontalXS} + ${textPadding})`,\n },\n\n // size\n\n tiny: {\n fontSize: '6px',\n },\n 'extra-small': {\n fontSize: '10px',\n },\n small: {\n fontSize: '12px',\n },\n medium: {\n // Set by useIconRootClassName\n },\n large: {\n fontSize: '16px',\n },\n 'extra-large': {\n fontSize: '20px',\n },\n});\n\n/**\n * Applies style classnames to slots\n */\nexport const useBadgeStyles_unstable = (state: BadgeState): BadgeState => {\n const rootClassName = useRootClassName();\n const rootStyles = useRootStyles();\n\n const smallToTiny = state.size === 'small' || state.size === 'extra-small' || state.size === 'tiny';\n\n state.root.className = mergeClasses(\n badgeClassNames.root,\n rootClassName,\n smallToTiny && rootStyles.fontSmallToTiny,\n rootStyles[state.size],\n rootStyles[state.shape],\n state.shape === 'rounded' && smallToTiny && rootStyles.roundedSmallToTiny,\n state.appearance === 'ghost' && rootStyles.borderGhost,\n rootStyles[state.appearance],\n rootStyles[`${state.appearance}-${state.color}` as const],\n state.root.className,\n );\n\n const iconRootClassName = useIconRootClassName();\n const iconStyles = useIconStyles();\n if (state.icon) {\n let iconPositionClass;\n if (state.root.children) {\n if (state.size === 'extra-large') {\n iconPositionClass = state.iconPosition === 'after' ? iconStyles.afterTextXL : iconStyles.beforeTextXL;\n } else {\n iconPositionClass = state.iconPosition === 'after' ? iconStyles.afterText : iconStyles.beforeText;\n }\n }\n\n state.icon.className = mergeClasses(\n badgeClassNames.icon,\n iconRootClassName,\n iconPositionClass,\n iconStyles[state.size],\n state.icon.className,\n );\n }\n\n return state;\n};\n"]}
@@ -1,17 +0,0 @@
1
- define(["require", "exports", "react", "./useCounterBadge", "./useCounterBadgeStyles", "@fluentui/react-shared-contexts", "../Badge/index"], function (require, exports, React, useCounterBadge_1, useCounterBadgeStyles_1, react_shared_contexts_1, index_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.CounterBadge = void 0;
5
- /**
6
- * Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.
7
- */
8
- exports.CounterBadge = React.forwardRef(function (props, ref) {
9
- var state = useCounterBadge_1.useCounterBadge_unstable(props, ref);
10
- useCounterBadgeStyles_1.useCounterBadgeStyles_unstable(state);
11
- var useCustomStyles = react_shared_contexts_1.useCustomStyleHooks_unstable().useCounterBadgeStyles_unstable;
12
- useCustomStyles(state);
13
- return index_1.renderBadge_unstable(state);
14
- });
15
- exports.CounterBadge.displayName = 'CounterBadge';
16
- });
17
- //# sourceMappingURL=CounterBadge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CounterBadge.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/CounterBadge/CounterBadge.tsx"],"names":[],"mappings":";;;;IAQA;;OAEG;IACU,QAAA,YAAY,GAA2C,KAAK,CAAC,UAAU,CAAC,UAAC,KAAK,EAAE,GAAG;QAC9F,IAAM,KAAK,GAAG,0CAAwB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAEnD,sDAA8B,CAAC,KAAK,CAAC,CAAC;QAE9B,IAAgC,eAAe,GAAK,oDAA4B,EAAE,+BAAnC,CAAoC;QAC3F,eAAe,CAAC,KAAK,CAAC,CAAC;QAEvB,OAAO,4BAAoB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,oBAAY,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import * as React from 'react';\nimport { useCounterBadge_unstable } from './useCounterBadge';\nimport { useCounterBadgeStyles_unstable } from './useCounterBadgeStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\nimport { renderBadge_unstable } from '../Badge/index';\nimport type { CounterBadgeProps } from './CounterBadge.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.\n */\nexport const CounterBadge: ForwardRefComponent<CounterBadgeProps> = React.forwardRef((props, ref) => {\n const state = useCounterBadge_unstable(props, ref);\n\n useCounterBadgeStyles_unstable(state);\n\n const { useCounterBadgeStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderBadge_unstable(state);\n});\n\nCounterBadge.displayName = 'CounterBadge';\n"]}
@@ -1,5 +0,0 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- });
5
- //# sourceMappingURL=CounterBadge.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CounterBadge.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/CounterBadge/CounterBadge.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { BadgeProps, BadgeState } from '../Badge/index';\n\nexport type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'color' | 'shape'> & {\n /**\n * A Badge can have different appearances that emphasize certain parts of it:\n * - filled: The default appearance if one is not specified.\n * The badge background is filled with color with a contrasting foreground text to match.\n * - ghost: The badge background is transparent, with the foreground text taking color to emphasize it.\n * @default filled\n */\n appearance?: 'filled' | 'ghost';\n\n /**\n * Semantic colors for a counter badge\n * @default brand\n */\n color?: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;\n\n /**\n * Value displayed by the Badge\n * @default 0\n */\n count?: number;\n\n /**\n * If a dot should be displayed without the count\n * @default false\n */\n dot?: boolean;\n\n /**\n * Max number to be displayed\n * @default 99\n */\n overflowCount?: number;\n\n /**\n * A Badge can be circular or rounded\n * @default circular\n */\n shape?: 'circular' | 'rounded';\n\n /**\n * If the badge should be shown when count is 0\n * @default false\n */\n showZero?: boolean;\n};\n\nexport type CounterBadgeState = Omit<BadgeState, 'appearance' | 'color' | 'shape'> &\n Required<Pick<CounterBadgeProps, 'appearance' | 'color' | 'count' | 'dot' | 'shape' | 'showZero'>>;\n"]}
@@ -1,9 +0,0 @@
1
- define(["require", "exports", "tslib", "./CounterBadge", "./CounterBadge.types", "./useCounterBadge", "./useCounterBadgeStyles"], function (require, exports, tslib_1, CounterBadge_1, CounterBadge_types_1, useCounterBadge_1, useCounterBadgeStyles_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- tslib_1.__exportStar(CounterBadge_1, exports);
5
- tslib_1.__exportStar(CounterBadge_types_1, exports);
6
- tslib_1.__exportStar(useCounterBadge_1, exports);
7
- tslib_1.__exportStar(useCounterBadgeStyles_1, exports);
8
- });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/CounterBadge/index.ts"],"names":[],"mappings":";;;IAAA,8CAA+B;IAC/B,oDAAqC;IACrC,iDAAkC;IAClC,uDAAwC","sourcesContent":["export * from './CounterBadge';\nexport * from './CounterBadge.types';\nexport * from './useCounterBadge';\nexport * from './useCounterBadgeStyles';\n"]}
@@ -1,18 +0,0 @@
1
- define(["require", "exports", "tslib", "../Badge/index"], function (require, exports, tslib_1, index_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.useCounterBadge_unstable = void 0;
5
- /**
6
- * Returns the props and state required to render the component
7
- */
8
- var useCounterBadge_unstable = function (props, ref) {
9
- var _a = props.shape, shape = _a === void 0 ? 'circular' : _a, _b = props.appearance, appearance = _b === void 0 ? 'filled' : _b, _c = props.showZero, showZero = _c === void 0 ? false : _c, _d = props.overflowCount, overflowCount = _d === void 0 ? 99 : _d, _e = props.count, count = _e === void 0 ? 0 : _e, _f = props.dot, dot = _f === void 0 ? false : _f;
10
- var state = tslib_1.__assign(tslib_1.__assign({}, index_1.useBadge_unstable(props, ref)), { shape: shape, appearance: appearance, showZero: showZero, count: count, dot: dot });
11
- if ((count !== 0 || showZero) && !dot && !state.root.children) {
12
- state.root.children = count > overflowCount ? overflowCount + "+" : "" + count;
13
- }
14
- return state;
15
- };
16
- exports.useCounterBadge_unstable = useCounterBadge_unstable;
17
- });
18
- //# sourceMappingURL=useCounterBadge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCounterBadge.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/CounterBadge/useCounterBadge.ts"],"names":[],"mappings":";;;;IAKA;;OAEG;IACI,IAAM,wBAAwB,GAAG,UAAC,KAAwB,EAAE,GAA2B;QAE1F,IAAA,KAME,KAAK,MANW,EAAlB,KAAK,mBAAG,UAAU,KAAA,EAClB,KAKE,KAAK,WALc,EAArB,UAAU,mBAAG,QAAQ,KAAA,EACrB,KAIE,KAAK,SAJS,EAAhB,QAAQ,mBAAG,KAAK,KAAA,EAChB,KAGE,KAAK,cAHW,EAAlB,aAAa,mBAAG,EAAE,KAAA,EAClB,KAEE,KAAK,MAFE,EAAT,KAAK,mBAAG,CAAC,KAAA,EACT,KACE,KAAK,IADI,EAAX,GAAG,mBAAG,KAAK,KAAA,CACH;QAEV,IAAM,KAAK,yCACL,yBAAiB,CAAC,KAAK,EAAE,GAAG,CAA+C,KAC/E,KAAK,OAAA,EACL,UAAU,YAAA,EACV,QAAQ,UAAA,EACR,KAAK,OAAA,EACL,GAAG,KAAA,GACJ,CAAC;QAEF,IAAI,CAAC,KAAK,KAAK,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC7D,KAAK,CAAC,IAAI,CAAC,QAAQ,GAAG,KAAK,GAAG,aAAa,CAAC,CAAC,CAAI,aAAa,MAAG,CAAC,CAAC,CAAC,KAAG,KAAO,CAAC;SAChF;QAED,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAxBW,QAAA,wBAAwB,4BAwBnC","sourcesContent":["import * as React from 'react';\nimport type { BadgeState } from '../Badge/index';\nimport { useBadge_unstable } from '../Badge/index';\nimport type { CounterBadgeProps, CounterBadgeState } from './CounterBadge.types';\n\n/**\n * Returns the props and state required to render the component\n */\nexport const useCounterBadge_unstable = (props: CounterBadgeProps, ref: React.Ref<HTMLElement>): CounterBadgeState => {\n const {\n shape = 'circular',\n appearance = 'filled',\n showZero = false,\n overflowCount = 99,\n count = 0,\n dot = false,\n } = props;\n\n const state: CounterBadgeState = {\n ...(useBadge_unstable(props, ref) as Pick<CounterBadgeState, keyof BadgeState>),\n shape,\n appearance,\n showZero,\n count,\n dot,\n };\n\n if ((count !== 0 || showZero) && !dot && !state.root.children) {\n state.root.children = count > overflowCount ? `${overflowCount}+` : `${count}`;\n }\n\n return state;\n};\n"]}
@@ -1,28 +0,0 @@
1
- define(["require", "exports", "tslib", "@griffel/react", "../Badge/useBadgeStyles"], function (require, exports, tslib_1, react_1, useBadgeStyles_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.useCounterBadgeStyles_unstable = exports.counterBadgeClassNames = void 0;
5
- exports.counterBadgeClassNames = {
6
- root: 'fui-CounterBadge',
7
- icon: 'fui-CounterBadge__icon',
8
- };
9
- var useStyles = react_1.makeStyles({
10
- dot: tslib_1.__assign({ minWidth: 'auto', width: '6px', height: '6px' }, react_1.shorthands.padding('0')),
11
- hide: {
12
- display: 'none',
13
- },
14
- });
15
- /**
16
- * Applies style classnames to slots
17
- */
18
- var useCounterBadgeStyles_unstable = function (state) {
19
- var styles = useStyles();
20
- state.root.className = react_1.mergeClasses(exports.counterBadgeClassNames.root, state.dot && styles.dot, !state.root.children && !state.dot && styles.hide, state.root.className);
21
- if (state.icon) {
22
- state.icon.className = react_1.mergeClasses(exports.counterBadgeClassNames.icon, state.icon.className);
23
- }
24
- return useBadgeStyles_1.useBadgeStyles_unstable(state);
25
- };
26
- exports.useCounterBadgeStyles_unstable = useCounterBadgeStyles_unstable;
27
- });
28
- //# sourceMappingURL=useCounterBadgeStyles.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCounterBadgeStyles.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/CounterBadge/useCounterBadgeStyles.ts"],"names":[],"mappings":";;;;IAMa,QAAA,sBAAsB,GAA+B;QAChE,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,wBAAwB;KAC/B,CAAC;IAEF,IAAM,SAAS,GAAG,kBAAU,CAAC;QAC3B,GAAG,qBACD,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,KAAK,IACV,kBAAU,CAAC,OAAO,CAAC,GAAG,CAAC,CAC3B;QACD,IAAI,EAAE;YACJ,OAAO,EAAE,MAAM;SAChB;KACF,CAAC,CAAC;IAEH;;OAEG;IACI,IAAM,8BAA8B,GAAG,UAAC,KAAwB;QACrE,IAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,oBAAY,CACjC,8BAAsB,CAAC,IAAI,EAC3B,KAAK,CAAC,GAAG,IAAI,MAAM,CAAC,GAAG,EACvB,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,MAAM,CAAC,IAAI,EACjD,KAAK,CAAC,IAAI,CAAC,SAAS,CACrB,CAAC;QAEF,IAAI,KAAK,CAAC,IAAI,EAAE;YACd,KAAK,CAAC,IAAI,CAAC,SAAS,GAAG,oBAAY,CAAC,8BAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;SACxF;QAED,OAAO,wCAAuB,CAAC,KAAK,CAAsB,CAAC;IAC7D,CAAC,CAAC;IAdW,QAAA,8BAA8B,kCAczC","sourcesContent":["import { shorthands, mergeClasses, makeStyles } from '@griffel/react';\nimport { useBadgeStyles_unstable } from '../Badge/useBadgeStyles';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { BadgeSlots } from '../Badge/Badge.types';\nimport type { CounterBadgeState } from './CounterBadge.types';\n\nexport const counterBadgeClassNames: SlotClassNames<BadgeSlots> = {\n root: 'fui-CounterBadge',\n icon: 'fui-CounterBadge__icon',\n};\n\nconst useStyles = makeStyles({\n dot: {\n minWidth: 'auto',\n width: '6px',\n height: '6px',\n ...shorthands.padding('0'),\n },\n hide: {\n display: 'none',\n },\n});\n\n/**\n * Applies style classnames to slots\n */\nexport const useCounterBadgeStyles_unstable = (state: CounterBadgeState): CounterBadgeState => {\n const styles = useStyles();\n state.root.className = mergeClasses(\n counterBadgeClassNames.root,\n state.dot && styles.dot,\n !state.root.children && !state.dot && styles.hide,\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(counterBadgeClassNames.icon, state.icon.className);\n }\n\n return useBadgeStyles_unstable(state) as CounterBadgeState;\n};\n"]}
@@ -1,17 +0,0 @@
1
- define(["require", "exports", "react", "./usePresenceBadge", "./usePresenceBadgeStyles", "@fluentui/react-shared-contexts", "../../Badge"], function (require, exports, React, usePresenceBadge_1, usePresenceBadgeStyles_1, react_shared_contexts_1, Badge_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.PresenceBadge = void 0;
5
- /**
6
- * Define a styled Badge, using the `useBadge_unstable` hook.
7
- */
8
- exports.PresenceBadge = React.forwardRef(function (props, ref) {
9
- var state = usePresenceBadge_1.usePresenceBadge_unstable(props, ref);
10
- usePresenceBadgeStyles_1.usePresenceBadgeStyles_unstable(state);
11
- var useCustomStyles = react_shared_contexts_1.useCustomStyleHooks_unstable().usePresenceBadgeStyles_unstable;
12
- useCustomStyles(state);
13
- return Badge_1.renderBadge_unstable(state);
14
- });
15
- exports.PresenceBadge.displayName = 'PresenceBadge';
16
- });
17
- //# sourceMappingURL=PresenceBadge.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PresenceBadge.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/PresenceBadge/PresenceBadge.tsx"],"names":[],"mappings":";;;;IAQA;;OAEG;IACU,QAAA,aAAa,GAA4C,KAAK,CAAC,UAAU,CAAC,UAAC,KAAK,EAAE,GAAG;QAChG,IAAM,KAAK,GAAG,4CAAyB,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;QAEpD,wDAA+B,CAAC,KAAK,CAAC,CAAC;QAE/B,IAAiC,eAAe,GAAK,oDAA4B,EAAE,gCAAnC,CAAoC;QAC5F,eAAe,CAAC,KAAK,CAAC,CAAC;QAEvB,OAAO,4BAAoB,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,qBAAa,CAAC,WAAW,GAAG,eAAe,CAAC","sourcesContent":["import * as React from 'react';\nimport { usePresenceBadge_unstable } from './usePresenceBadge';\nimport { usePresenceBadgeStyles_unstable } from './usePresenceBadgeStyles';\nimport { useCustomStyleHooks_unstable } from '@fluentui/react-shared-contexts';\nimport { renderBadge_unstable } from '../../Badge';\nimport type { PresenceBadgeProps } from './PresenceBadge.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled Badge, using the `useBadge_unstable` hook.\n */\nexport const PresenceBadge: ForwardRefComponent<PresenceBadgeProps> = React.forwardRef((props, ref) => {\n const state = usePresenceBadge_unstable(props, ref);\n\n usePresenceBadgeStyles_unstable(state);\n\n const { usePresenceBadgeStyles_unstable: useCustomStyles } = useCustomStyleHooks_unstable();\n useCustomStyles(state);\n\n return renderBadge_unstable(state);\n});\n\nPresenceBadge.displayName = 'PresenceBadge';\n"]}
@@ -1,5 +0,0 @@
1
- define(["require", "exports"], function (require, exports) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- });
5
- //# sourceMappingURL=PresenceBadge.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PresenceBadge.types.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/PresenceBadge/PresenceBadge.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ComponentProps, ComponentState } from '@fluentui/react-utilities';\nimport type { BadgeProps, BadgeState, BadgeSlots } from '../Badge/Badge.types';\n\nexport type PresenceBadgeStatus =\n | 'busy'\n | 'out-of-office'\n | 'away'\n | 'available'\n | 'offline'\n | 'do-not-disturb'\n | 'unknown'\n | 'blocked';\n\nexport type PresenceBadgeProps = Omit<ComponentProps<Pick<BadgeSlots, 'root' | 'icon'>>, 'color'> &\n Pick<BadgeProps, 'size'> & {\n /**\n * Represents several status\n * @default available\n */\n status?: PresenceBadgeStatus;\n\n /**\n * Modifies the display to indicate that the user is out of office.\n * This can be combined with any status to display an out-of-office version of that status\n * @default false\n */\n outOfOffice?: boolean;\n };\n\nexport type PresenceBadgeState = ComponentState<BadgeSlots> &\n BadgeState &\n Required<Pick<PresenceBadgeProps, 'status' | 'outOfOffice'>>;\n"]}
@@ -1,9 +0,0 @@
1
- define(["require", "exports", "tslib", "./PresenceBadge", "./PresenceBadge.types", "./usePresenceBadge", "./usePresenceBadgeStyles"], function (require, exports, tslib_1, PresenceBadge_1, PresenceBadge_types_1, usePresenceBadge_1, usePresenceBadgeStyles_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- tslib_1.__exportStar(PresenceBadge_1, exports);
5
- tslib_1.__exportStar(PresenceBadge_types_1, exports);
6
- tslib_1.__exportStar(usePresenceBadge_1, exports);
7
- tslib_1.__exportStar(usePresenceBadgeStyles_1, exports);
8
- });
9
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/PresenceBadge/index.ts"],"names":[],"mappings":";;;IAAA,+CAAgC;IAChC,qDAAsC;IACtC,kDAAmC;IACnC,wDAAyC","sourcesContent":["export * from './PresenceBadge';\nexport * from './PresenceBadge.types';\nexport * from './usePresenceBadge';\nexport * from './usePresenceBadgeStyles';\n"]}
@@ -1,146 +0,0 @@
1
- define(["require", "exports", "@fluentui/react-icons"], function (require, exports, react_icons_1) {
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.presenceUnknownRegular = exports.presenceOfflineRegular = exports.presenceOofRegular = exports.presenceDndRegular = exports.presenceDndFilled = exports.presenceBusyFilled = exports.presenceBlockedRegular = exports.presenceAvailableFilled = exports.presenceAvailableRegular = exports.presenceAwayFilled = void 0;
5
- exports.presenceAwayFilled = {
6
- // FIXME not all presence icon sizes are available
7
- // https://github.com/microsoft/fluentui/issues/20650
8
- tiny: react_icons_1.PresenceAway10Filled,
9
- 'extra-small': react_icons_1.PresenceAway10Filled,
10
- small: react_icons_1.PresenceAway12Filled,
11
- medium: react_icons_1.PresenceAway16Filled,
12
- // FIXME not all presence icon sizes are available
13
- // https://github.com/microsoft/fluentui/issues/20650
14
- large: react_icons_1.PresenceAway16Filled,
15
- // FIXME not all presence icon sizes are available
16
- // https://github.com/microsoft/fluentui/issues/20650
17
- 'extra-large': react_icons_1.PresenceAway16Filled,
18
- };
19
- exports.presenceAvailableRegular = {
20
- // FIXME not all presence icon sizes are available
21
- // https://github.com/microsoft/fluentui/issues/20650
22
- tiny: react_icons_1.PresenceAvailable10Regular,
23
- 'extra-small': react_icons_1.PresenceAvailable10Regular,
24
- small: react_icons_1.PresenceAvailable12Regular,
25
- medium: react_icons_1.PresenceAvailable16Regular,
26
- // FIXME not all presence icon sizes are available
27
- // https://github.com/microsoft/fluentui/issues/20650
28
- large: react_icons_1.PresenceAvailable16Regular,
29
- // FIXME not all presence icon sizes are available
30
- // https://github.com/microsoft/fluentui/issues/20650
31
- 'extra-large': react_icons_1.PresenceAvailable16Regular,
32
- };
33
- exports.presenceAvailableFilled = {
34
- // FIXME not all presence icon sizes are available
35
- // https://github.com/microsoft/fluentui/issues/20650
36
- tiny: react_icons_1.PresenceAvailable10Filled,
37
- 'extra-small': react_icons_1.PresenceAvailable10Filled,
38
- small: react_icons_1.PresenceAvailable12Filled,
39
- medium: react_icons_1.PresenceAvailable16Filled,
40
- // FIXME not all presence icon sizes are available
41
- // https://github.com/microsoft/fluentui/issues/20650
42
- large: react_icons_1.PresenceAvailable16Filled,
43
- // FIXME not all presence icon sizes are available
44
- // https://github.com/microsoft/fluentui/issues/20650
45
- 'extra-large': react_icons_1.PresenceAvailable16Filled,
46
- };
47
- exports.presenceBlockedRegular = {
48
- // FIXME not all presence icon sizes are available
49
- // https://github.com/microsoft/fluentui/issues/20650
50
- tiny: react_icons_1.PresenceBlocked10Regular,
51
- 'extra-small': react_icons_1.PresenceBlocked10Regular,
52
- small: react_icons_1.PresenceBlocked12Regular,
53
- medium: react_icons_1.PresenceBlocked16Regular,
54
- // FIXME not all presence icon sizes are available
55
- // https://github.com/microsoft/fluentui/issues/20650
56
- large: react_icons_1.PresenceBlocked16Regular,
57
- // FIXME not all presence icon sizes are available
58
- // https://github.com/microsoft/fluentui/issues/20650
59
- 'extra-large': react_icons_1.PresenceBlocked16Regular,
60
- };
61
- exports.presenceBusyFilled = {
62
- // FIXME not all presence icon sizes are available
63
- // https://github.com/microsoft/fluentui/issues/20650
64
- tiny: react_icons_1.PresenceBusy10Filled,
65
- 'extra-small': react_icons_1.PresenceBusy10Filled,
66
- small: react_icons_1.PresenceBusy12Filled,
67
- medium: react_icons_1.PresenceBusy16Filled,
68
- // FIXME not all presence icon sizes are available
69
- // https://github.com/microsoft/fluentui/issues/20650
70
- large: react_icons_1.PresenceBusy16Filled,
71
- // FIXME not all presence icon sizes are available
72
- // https://github.com/microsoft/fluentui/issues/20650
73
- 'extra-large': react_icons_1.PresenceBusy16Filled,
74
- };
75
- exports.presenceDndFilled = {
76
- // FIXME not all presence icon sizes are available
77
- // https://github.com/microsoft/fluentui/issues/20650
78
- tiny: react_icons_1.PresenceDnd10Filled,
79
- 'extra-small': react_icons_1.PresenceDnd10Filled,
80
- small: react_icons_1.PresenceDnd12Filled,
81
- medium: react_icons_1.PresenceDnd16Filled,
82
- // FIXME not all presence icon sizes are available
83
- // https://github.com/microsoft/fluentui/issues/20650
84
- large: react_icons_1.PresenceDnd16Filled,
85
- // FIXME not all presence icon sizes are available
86
- // https://github.com/microsoft/fluentui/issues/20650
87
- 'extra-large': react_icons_1.PresenceDnd16Filled,
88
- };
89
- exports.presenceDndRegular = {
90
- // FIXME not all presence icon sizes are available
91
- // https://github.com/microsoft/fluentui/issues/20650
92
- tiny: react_icons_1.PresenceDnd10Regular,
93
- 'extra-small': react_icons_1.PresenceDnd10Regular,
94
- small: react_icons_1.PresenceDnd12Regular,
95
- medium: react_icons_1.PresenceDnd16Regular,
96
- // FIXME not all presence icon sizes are available
97
- // https://github.com/microsoft/fluentui/issues/20650
98
- large: react_icons_1.PresenceDnd16Regular,
99
- // FIXME not all presence icon sizes are available
100
- // https://github.com/microsoft/fluentui/issues/20650
101
- 'extra-large': react_icons_1.PresenceDnd16Regular,
102
- };
103
- exports.presenceOofRegular = {
104
- // FIXME not all presence icon sizes are available
105
- // https://github.com/microsoft/fluentui/issues/20650
106
- tiny: react_icons_1.PresenceOof10Regular,
107
- 'extra-small': react_icons_1.PresenceOof10Regular,
108
- small: react_icons_1.PresenceOof12Regular,
109
- medium: react_icons_1.PresenceOof16Regular,
110
- // FIXME not all presence icon sizes are available
111
- // https://github.com/microsoft/fluentui/issues/20650
112
- large: react_icons_1.PresenceOof16Regular,
113
- // FIXME not all presence icon sizes are available
114
- // https://github.com/microsoft/fluentui/issues/20650
115
- 'extra-large': react_icons_1.PresenceOof16Regular,
116
- };
117
- exports.presenceOfflineRegular = {
118
- // FIXME not all presence icon sizes are available
119
- // https://github.com/microsoft/fluentui/issues/20650
120
- tiny: react_icons_1.PresenceOffline10Regular,
121
- 'extra-small': react_icons_1.PresenceOffline10Regular,
122
- small: react_icons_1.PresenceOffline12Regular,
123
- medium: react_icons_1.PresenceOffline16Regular,
124
- // FIXME not all presence icon sizes are available
125
- // https://github.com/microsoft/fluentui/issues/20650
126
- large: react_icons_1.PresenceOffline16Regular,
127
- // FIXME not all presence icon sizes are available
128
- // https://github.com/microsoft/fluentui/issues/20650
129
- 'extra-large': react_icons_1.PresenceOffline16Regular,
130
- };
131
- exports.presenceUnknownRegular = {
132
- // FIXME not all presence icon sizes are available
133
- // https://github.com/microsoft/fluentui/issues/20650
134
- tiny: react_icons_1.PresenceUnknown10Regular,
135
- 'extra-small': react_icons_1.PresenceUnknown10Regular,
136
- small: react_icons_1.PresenceUnknown12Regular,
137
- medium: react_icons_1.PresenceUnknown16Regular,
138
- // FIXME not all presence icon sizes are available
139
- // https://github.com/microsoft/fluentui/issues/20650
140
- large: react_icons_1.PresenceUnknown16Regular,
141
- // FIXME not all presence icon sizes are available
142
- // https://github.com/microsoft/fluentui/issues/20650
143
- 'extra-large': react_icons_1.PresenceUnknown16Regular,
144
- };
145
- });
146
- //# sourceMappingURL=presenceIcons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"presenceIcons.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-badge/src/components/PresenceBadge/presenceIcons.ts"],"names":[],"mappings":";;;;IAmCa,QAAA,kBAAkB,GAAgE;QAC7F,kDAAkD;QAClD,qDAAqD;QACrD,IAAI,EAAE,kCAAoB;QAC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QAClD,qDAAqD;QACrD,aAAa,EAAE,sCAAwB;KACxC,CAAC;IAEW,QAAA,sBAAsB,GAAgE;QACjG,kDAAkD;QAClD,qDAAqD;QACrD,IAAI,EAAE,sCAAwB;QAC9B,aAAa,EAAE,sCAAwB;QACvC,KAAK,EAAE,sCAAwB;QAC/B,MAAM,EAAE,sCAAwB;QAChC,kDAAkD;QAClD,qDAAqD;QACrD,KAAK,EAAE,sCAAwB;QAC/B,kDAAkD;QAClD,qDAAqD;QACrD,aAAa,EAAE,sCAAwB;KACxC,CAAC","sourcesContent":["import * as React from 'react';\nimport {\n PresenceAvailable10Regular,\n PresenceAvailable12Regular,\n PresenceAvailable16Regular,\n PresenceAvailable10Filled,\n PresenceAvailable12Filled,\n PresenceAvailable16Filled,\n PresenceAway10Filled,\n PresenceAway12Filled,\n PresenceAway16Filled,\n PresenceBlocked10Regular,\n PresenceBlocked12Regular,\n PresenceBlocked16Regular,\n PresenceBusy10Filled,\n PresenceBusy12Filled,\n PresenceBusy16Filled,\n PresenceDnd10Regular,\n PresenceDnd12Regular,\n PresenceDnd16Regular,\n PresenceDnd10Filled,\n PresenceDnd12Filled,\n PresenceDnd16Filled,\n PresenceOof10Regular,\n PresenceOof12Regular,\n PresenceOof16Regular,\n PresenceOffline10Regular,\n PresenceOffline12Regular,\n PresenceOffline16Regular,\n PresenceUnknown10Regular,\n PresenceUnknown12Regular,\n PresenceUnknown16Regular,\n} from '@fluentui/react-icons';\nimport type { PresenceBadgeState } from './PresenceBadge.types';\n\nexport const presenceAwayFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAway10Filled,\n 'extra-small': PresenceAway10Filled,\n small: PresenceAway12Filled,\n medium: PresenceAway16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceAway16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAway16Filled,\n};\n\nexport const presenceAvailableRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAvailable10Regular,\n 'extra-small': PresenceAvailable10Regular,\n small: PresenceAvailable12Regular,\n medium: PresenceAvailable16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceAvailable16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAvailable16Regular,\n};\n\nexport const presenceAvailableFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceAvailable10Filled,\n 'extra-small': PresenceAvailable10Filled,\n small: PresenceAvailable12Filled,\n medium: PresenceAvailable16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceAvailable16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceAvailable16Filled,\n};\n\nexport const presenceBlockedRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceBlocked10Regular,\n 'extra-small': PresenceBlocked10Regular,\n small: PresenceBlocked12Regular,\n medium: PresenceBlocked16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceBlocked16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceBlocked16Regular,\n};\n\nexport const presenceBusyFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceBusy10Filled,\n 'extra-small': PresenceBusy10Filled,\n small: PresenceBusy12Filled,\n medium: PresenceBusy16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceBusy16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceBusy16Filled,\n};\n\nexport const presenceDndFilled: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceDnd10Filled,\n 'extra-small': PresenceDnd10Filled,\n small: PresenceDnd12Filled,\n medium: PresenceDnd16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceDnd16Filled,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceDnd16Filled,\n};\n\nexport const presenceDndRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceDnd10Regular,\n 'extra-small': PresenceDnd10Regular,\n small: PresenceDnd12Regular,\n medium: PresenceDnd16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceDnd16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceDnd16Regular,\n};\n\nexport const presenceOofRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceOof10Regular,\n 'extra-small': PresenceOof10Regular,\n small: PresenceOof12Regular,\n medium: PresenceOof16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceOof16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceOof16Regular,\n};\n\nexport const presenceOfflineRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceOffline10Regular,\n 'extra-small': PresenceOffline10Regular,\n small: PresenceOffline12Regular,\n medium: PresenceOffline16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceOffline16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceOffline16Regular,\n};\n\nexport const presenceUnknownRegular: Record<PresenceBadgeState['size'], React.FunctionComponent> = {\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n tiny: PresenceUnknown10Regular,\n 'extra-small': PresenceUnknown10Regular,\n small: PresenceUnknown12Regular,\n medium: PresenceUnknown16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n large: PresenceUnknown16Regular,\n // FIXME not all presence icon sizes are available\n // https://github.com/microsoft/fluentui/issues/20650\n 'extra-large': PresenceUnknown16Regular,\n};\n"]}