@fluentui/react-badge 0.0.0-nightly0025eeb82020211108.1 → 0.0.0-nightly003de9a95220220111.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CHANGELOG.json +188 -16
  2. package/CHANGELOG.md +49 -11
  3. package/dist/react-badge.d.ts +12 -13
  4. package/lib/components/Badge/Badge.types.d.ts +1 -1
  5. package/lib/components/Badge/renderBadge.js +4 -1
  6. package/lib/components/Badge/renderBadge.js.map +1 -1
  7. package/lib/components/Badge/useBadgeStyles.js +74 -53
  8. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  9. package/lib/components/CounterBadge/CounterBadge.types.d.ts +7 -8
  10. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  11. package/lib/components/CounterBadge/useCounterBadgeStyles.js +4 -35
  12. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  13. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  14. package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
  15. package/lib/components/PresenceBadge/presenceIcons.js +128 -0
  16. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
  17. package/lib/components/PresenceBadge/usePresenceBadge.js +29 -15
  18. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  19. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +39 -43
  20. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  21. package/lib-commonjs/components/Badge/Badge.types.d.ts +1 -1
  22. package/lib-commonjs/components/Badge/renderBadge.js +4 -1
  23. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  24. package/lib-commonjs/components/Badge/useBadgeStyles.js +74 -52
  25. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  26. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +7 -8
  27. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  28. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +3 -34
  29. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  30. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  31. package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
  32. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  33. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  34. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +28 -14
  35. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  36. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +38 -42
  37. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  38. package/package.json +11 -10
  39. package/lib/common/isConformant.d.ts +0 -4
  40. package/lib/common/isConformant.js +0 -13
  41. package/lib/common/isConformant.js.map +0 -1
  42. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  43. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -98
  44. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  45. package/lib-commonjs/common/isConformant.d.ts +0 -4
  46. package/lib-commonjs/common/isConformant.js +0 -24
  47. package/lib-commonjs/common/isConformant.js.map +0 -1
  48. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  49. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -113
  50. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,17 +2,183 @@
2
2
  "name": "@fluentui/react-badge",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 08 Nov 2021 04:16:55 GMT",
6
- "tag": "@fluentui/react-badge_v0.0.0-nightly0025eeb82020211108.1",
7
- "version": "0.0.0-nightly0025eeb82020211108.1",
5
+ "date": "Tue, 11 Jan 2022 04:18:34 GMT",
6
+ "tag": "@fluentui/react-badge_v0.0.0-nightly003de9a95220220111.1",
7
+ "version": "0.0.0-nightly003de9a95220220111.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-badge",
13
- "commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9",
13
+ "commit": "60c7bd46e2d01b8e309739827125609a2621d863",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "ololubek@microsoft.com",
18
+ "package": "@fluentui/react-badge",
19
+ "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
20
+ "comment": "(fix): Update react-icons dependency to latest version"
21
+ },
22
+ {
23
+ "author": "olfedias@microsoft.com",
24
+ "package": "@fluentui/react-badge",
25
+ "commit": "5a49512b8e33d5a588212069a1f2827b806d584c",
26
+ "comment": "update styles to not use CSS shorthands"
27
+ },
28
+ {
29
+ "author": "lingfangao@hotmail.com",
30
+ "package": "@fluentui/react-badge",
31
+ "commit": "4e5e955acede0fc79334ef90a563de4bd35ee231",
32
+ "comment": "fix: use updated tokens for ghost and outline variants"
33
+ },
34
+ {
35
+ "author": "ololubek@microsoft.com",
36
+ "package": "@fluentui/react-badge",
37
+ "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
38
+ "comment": "Update react-icons usage to resizable icons"
39
+ },
40
+ {
41
+ "author": "Humberto.Morimoto@microsoft.com",
42
+ "package": "@fluentui/react-badge",
43
+ "commit": "2c54271f07c30f65718e085084c2e5b213268dfd",
44
+ "comment": "react-badge: Replacing use of functions in makeStyles with direct use of tokens."
45
+ },
46
+ {
47
+ "author": "lingfangao@hotmail.com",
48
+ "package": "@fluentui/react-badge",
49
+ "commit": "4e7acd7ff3c437663de70206416d3c19b6a87cfa",
50
+ "comment": "fix: Add uniform padding and modify gaps"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-badge",
55
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly003de9a95220220111.1",
56
+ "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-badge",
61
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly003de9a95220220111.1",
62
+ "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-badge",
67
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly003de9a95220220111.1",
68
+ "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-badge",
73
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly003de9a95220220111.1",
74
+ "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui/react-badge",
79
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly003de9a95220220111.1",
80
+ "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@fluentui/react-badge",
85
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1",
86
+ "commit": "60c7bd46e2d01b8e309739827125609a2621d863"
87
+ }
88
+ ],
89
+ "none": [
90
+ {
91
+ "author": "elcraig@microsoft.com",
92
+ "package": "@fluentui/react-badge",
93
+ "commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
94
+ "comment": "Remove outdated boilerplate comments"
95
+ }
96
+ ]
97
+ }
98
+ },
99
+ {
100
+ "date": "Thu, 25 Nov 2021 08:34:11 GMT",
101
+ "tag": "@fluentui/react-badge_v9.0.0-beta.4",
102
+ "version": "9.0.0-beta.4",
103
+ "comments": {
104
+ "none": [
105
+ {
106
+ "author": "lingfangao@hotmail.com",
107
+ "package": "@fluentui/react-badge",
108
+ "commit": "cc3fe8e29cbb4b9d03f26e9a06b58d7aa24ffb65",
109
+ "comment": "Migrate package to use solution style ts-config"
110
+ }
111
+ ],
112
+ "prerelease": [
113
+ {
114
+ "author": "lingfangao@hotmail.com",
115
+ "package": "@fluentui/react-badge",
116
+ "commit": "6183f8ae46233d7ecec2a3d12e7348b7b41eea0c",
117
+ "comment": "various styling fixes for base Badge component"
118
+ },
119
+ {
120
+ "author": "lingfangao@hotmail.com",
121
+ "package": "@fluentui/react-badge",
122
+ "commit": "c5c66cb39e6906f506bf30c9e56c0839f10e2d51",
123
+ "comment": "Reduce colour set and align with base badge colours"
124
+ },
125
+ {
126
+ "author": "ololubek@microsoft.com",
127
+ "package": "@fluentui/react-badge",
128
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
129
+ "comment": "update react-icons dependency"
130
+ },
131
+ {
132
+ "author": "lingfangao@hotmail.com",
133
+ "package": "@fluentui/react-badge",
134
+ "commit": "48e52fc91e41ab721c9842f8f68ac84ad569a851",
135
+ "comment": "Remove props and return correct presence icons"
136
+ },
137
+ {
138
+ "author": "beachball",
139
+ "package": "@fluentui/react-badge",
140
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
141
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
142
+ },
143
+ {
144
+ "author": "beachball",
145
+ "package": "@fluentui/react-badge",
146
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
147
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
148
+ },
149
+ {
150
+ "author": "beachball",
151
+ "package": "@fluentui/react-badge",
152
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
153
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
154
+ },
155
+ {
156
+ "author": "beachball",
157
+ "package": "@fluentui/react-badge",
158
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
159
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
160
+ },
161
+ {
162
+ "author": "beachball",
163
+ "package": "@fluentui/react-badge",
164
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
165
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
166
+ },
167
+ {
168
+ "author": "beachball",
169
+ "package": "@fluentui/react-badge",
170
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
171
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
172
+ }
173
+ ]
174
+ }
175
+ },
176
+ {
177
+ "date": "Fri, 12 Nov 2021 13:25:15 GMT",
178
+ "tag": "@fluentui/react-badge_v9.0.0-beta.3",
179
+ "version": "9.0.0-beta.3",
180
+ "comments": {
181
+ "prerelease": [
16
182
  {
17
183
  "author": "olfedias@microsoft.com",
18
184
  "package": "@fluentui/react-badge",
@@ -28,38 +194,38 @@
28
194
  {
29
195
  "author": "beachball",
30
196
  "package": "@fluentui/react-badge",
31
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly0025eeb82020211108.1",
32
- "commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9"
197
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
198
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
33
199
  },
34
200
  {
35
201
  "author": "beachball",
36
202
  "package": "@fluentui/react-badge",
37
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly0025eeb82020211108.1",
38
- "commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9"
203
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
204
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
39
205
  },
40
206
  {
41
207
  "author": "beachball",
42
208
  "package": "@fluentui/react-badge",
43
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly0025eeb82020211108.1",
44
- "commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9"
209
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
210
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
45
211
  },
46
212
  {
47
213
  "author": "beachball",
48
214
  "package": "@fluentui/react-badge",
49
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly0025eeb82020211108.1",
50
- "commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9"
215
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
216
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
51
217
  },
52
218
  {
53
219
  "author": "beachball",
54
220
  "package": "@fluentui/react-badge",
55
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly0025eeb82020211108.1",
56
- "commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9"
221
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
222
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
57
223
  },
58
224
  {
59
225
  "author": "beachball",
60
226
  "package": "@fluentui/react-badge",
61
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly0025eeb82020211108.1",
62
- "commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9"
227
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
228
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
63
229
  }
64
230
  ],
65
231
  "none": [
@@ -69,6 +235,12 @@
69
235
  "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
70
236
  "comment": "update docs descriptions"
71
237
  },
238
+ {
239
+ "author": "lingfangao@hotmail.com",
240
+ "package": "@fluentui/react-badge",
241
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
242
+ "comment": "Remove beta release tag"
243
+ },
72
244
  {
73
245
  "author": "me@levithomason.com",
74
246
  "package": "@fluentui/react-badge",
package/CHANGELOG.md CHANGED
@@ -1,25 +1,63 @@
1
1
  # Change Log - @fluentui/react-badge
2
2
 
3
- This log was last generated on Mon, 08 Nov 2021 04:16:55 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 11 Jan 2022 04:18:34 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly0025eeb82020211108.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightly0025eeb82020211108.1)
7
+ ## [0.0.0-nightly003de9a95220220111.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightly003de9a95220220111.1)
8
8
 
9
- Mon, 08 Nov 2021 04:16:55 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.2..@fluentui/react-badge_v0.0.0-nightly0025eeb82020211108.1)
9
+ Tue, 11 Jan 2022 04:18:34 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.4..@fluentui/react-badge_v0.0.0-nightly003de9a95220220111.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by email not defined)
15
+ - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
16
+ - update styles to not use CSS shorthands ([PR #20802](https://github.com/microsoft/fluentui/pull/20802) by olfedias@microsoft.com)
17
+ - fix: use updated tokens for ghost and outline variants ([PR #20893](https://github.com/microsoft/fluentui/pull/20893) by lingfangao@hotmail.com)
18
+ - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
19
+ - react-badge: Replacing use of functions in makeStyles with direct use of tokens. ([PR #21038](https://github.com/microsoft/fluentui/pull/21038) by Humberto.Morimoto@microsoft.com)
20
+ - fix: Add uniform padding and modify gaps ([PR #20974](https://github.com/microsoft/fluentui/pull/20974) by lingfangao@hotmail.com)
21
+ - Bump @fluentui/react-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
22
+ - Bump @fluentui/react-theme to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
23
+ - Bump @fluentui/react-utilities to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
24
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
25
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
26
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
27
+
28
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.4)
29
+
30
+ Thu, 25 Nov 2021 08:34:11 GMT
31
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v9.0.0-beta.4)
32
+
33
+ ### Changes
34
+
35
+ - various styling fixes for base Badge component ([PR #20693](https://github.com/microsoft/fluentui/pull/20693) by lingfangao@hotmail.com)
36
+ - Reduce colour set and align with base badge colours ([PR #20596](https://github.com/microsoft/fluentui/pull/20596) by lingfangao@hotmail.com)
37
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
38
+ - Remove props and return correct presence icons ([PR #20630](https://github.com/microsoft/fluentui/pull/20630) by lingfangao@hotmail.com)
39
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
40
+ - Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
41
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
42
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
43
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
44
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
45
+
46
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.3)
47
+
48
+ Fri, 12 Nov 2021 13:25:15 GMT
49
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.2..@fluentui/react-badge_v9.0.0-beta.3)
11
50
 
12
51
  ### Changes
13
52
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by email not defined)
15
53
  - export static classes for components ([PR #20453](https://github.com/microsoft/fluentui/pull/20453) by olfedias@microsoft.com)
16
54
  - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
17
- - Bump @fluentui/react-make-styles to v0.0.0-nightly0025eeb82020211108.1 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by beachball)
18
- - Bump @fluentui/react-theme to v0.0.0-nightly0025eeb82020211108.1 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightly0025eeb82020211108.1 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by beachball)
20
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly0025eeb82020211108.1 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by beachball)
21
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly0025eeb82020211108.1 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by beachball)
22
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly0025eeb82020211108.1 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by beachball)
55
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
56
+ - Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
57
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
58
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
59
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
60
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
23
61
 
24
62
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.2)
25
63
 
@@ -42,7 +42,7 @@ export declare type BadgeCommons = {
42
42
  export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
43
43
 
44
44
  export declare type BadgeSlots = {
45
- root: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
45
+ root: ObjectShorthandProps<Omit<React_2.HTMLAttributes<HTMLElement>, 'color'>>;
46
46
  icon?: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
47
47
  };
48
48
 
@@ -86,17 +86,16 @@ export declare type CounterBadgeCommons = {
86
86
  * @default filled
87
87
  */
88
88
  appearance: 'filled' | 'ghost';
89
+ /**
90
+ * Semantic colors for a counter badge
91
+ * @default brand
92
+ */
93
+ color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
89
94
  };
90
95
 
91
- /**
92
- * {@docCategory CounterBadge}
93
- */
94
- export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
96
+ export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
95
97
 
96
- /**
97
- * {@docCategory CounterBadge}
98
- */
99
- export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
98
+ export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
100
99
 
101
100
  /**
102
101
  * Define a styled Badge, using the `useBadge` hook.
@@ -105,7 +104,7 @@ export declare const PresenceBadge: ForwardRefComponent<PresenceBadgeProps>;
105
104
 
106
105
  export declare const presenceBadgeClassName = "fui-PresenceBadge";
107
106
 
108
- export declare interface PresenceBadgeCommons {
107
+ export declare type PresenceBadgeCommons = {
109
108
  /**
110
109
  * Represents several status
111
110
  * @default available
@@ -117,11 +116,11 @@ export declare interface PresenceBadgeCommons {
117
116
  * @default false
118
117
  */
119
118
  outOfOffice: boolean;
120
- }
119
+ } & BadgeCommons;
121
120
 
122
- export declare type PresenceBadgeProps = BadgeProps & Partial<PresenceBadgeCommons>;
121
+ export declare type PresenceBadgeProps = ComponentProps<Partial<Pick<BadgeSlots, 'root'>>> & Partial<Pick<PresenceBadgeCommons, 'status' | 'outOfOffice' | 'size'>>;
123
122
 
124
- export declare type PresenceBadgeState = BadgeState & PresenceBadgeCommons;
123
+ export declare type PresenceBadgeState = PresenceBadgeCommons & ComponentState<BadgeSlots>;
125
124
 
126
125
  export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
127
126
 
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { ComponentProps, ComponentState, ObjectShorthandProps } from '@fluentui/react-utilities';
3
3
  export declare type BadgeSlots = {
4
- root: ObjectShorthandProps<React.HTMLAttributes<HTMLElement>>;
4
+ root: ObjectShorthandProps<Omit<React.HTMLAttributes<HTMLElement>, 'color'>>;
5
5
  icon?: ObjectShorthandProps<React.HTMLAttributes<HTMLElement>>;
6
6
  };
7
7
  export declare type BadgeCommons = {
@@ -5,6 +5,9 @@ export const renderBadge = state => {
5
5
  slots,
6
6
  slotProps
7
7
  } = getSlots(state, ['icon', 'root']);
8
- return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), state.iconPosition === 'before' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), state.root.children, state.iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)));
8
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
9
+ }, state.iconPosition === 'before' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
10
+ }), state.root.children, state.iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
11
+ }));
9
12
  };
10
13
  //# sourceMappingURL=renderBadge.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA,OAAO,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAa,KAAb,EAAoB,CAAC,MAAD,EAAS,MAAT,CAApB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,KAAK,CAAC,YAAN,KAAuB,QAAvB,iBAAmC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CADtC,EAEG,KAAK,CAAC,IAAN,CAAW,QAFd,EAGG,KAAK,CAAC,YAAN,KAAuB,OAAvB,iBAAkC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAHrC,CADF;AAOD,CAVM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA,OAAO,MAAM,WAAW,GAAI,KAAD,IAAsB;AAC/C,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAa,KAAb,EAAoB,CAAC,MAAD,EAAS,MAAT,CAApB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,KAAK,CAAC,YAAN,KAAuB,QAAvB,iBAAmC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CADtC,EAEG,KAAK,CAAC,IAAN,CAAW,QAFd,EAGG,KAAK,CAAC,YAAN,KAAuB,OAAvB,iBAAkC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAHrC,CADF;AAOD,CAVM","sourceRoot":""}