@fluentui/react-badge 0.0.0-nightlyed2d7c8d6320211111.1 → 0.0.0-nightlyf1be0a972820211214.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/CHANGELOG.json +168 -16
  2. package/CHANGELOG.md +47 -11
  3. package/dist/react-badge.d.ts +12 -7
  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 +73 -53
  8. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  9. package/lib/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  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 +38 -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 +72 -52
  25. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  26. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  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 +37 -43
  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,163 @@
2
2
  "name": "@fluentui/react-badge",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 11 Nov 2021 13:12:46 GMT",
6
- "tag": "@fluentui/react-badge_v0.0.0-nightlyed2d7c8d6320211111.1",
7
- "version": "0.0.0-nightlyed2d7c8d6320211111.1",
5
+ "date": "Tue, 14 Dec 2021 04:16:15 GMT",
6
+ "tag": "@fluentui/react-badge_v0.0.0-nightlyf1be0a972820211214.1",
7
+ "version": "0.0.0-nightlyf1be0a972820211214.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-badge",
13
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9",
13
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca",
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": "lingfangao@hotmail.com",
36
+ "package": "@fluentui/react-badge",
37
+ "commit": "4e7acd7ff3c437663de70206416d3c19b6a87cfa",
38
+ "comment": "fix: Add uniform padding and modify gaps"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-badge",
43
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
44
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-badge",
49
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyf1be0a972820211214.1",
50
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-badge",
55
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1",
56
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-badge",
61
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
62
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
63
+ },
64
+ {
65
+ "author": "beachball",
66
+ "package": "@fluentui/react-badge",
67
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
68
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
69
+ },
70
+ {
71
+ "author": "beachball",
72
+ "package": "@fluentui/react-badge",
73
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
74
+ "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
75
+ }
76
+ ]
77
+ }
78
+ },
79
+ {
80
+ "date": "Thu, 25 Nov 2021 08:34:11 GMT",
81
+ "tag": "@fluentui/react-badge_v9.0.0-beta.4",
82
+ "version": "9.0.0-beta.4",
83
+ "comments": {
84
+ "none": [
85
+ {
86
+ "author": "lingfangao@hotmail.com",
87
+ "package": "@fluentui/react-badge",
88
+ "commit": "cc3fe8e29cbb4b9d03f26e9a06b58d7aa24ffb65",
89
+ "comment": "Migrate package to use solution style ts-config"
90
+ }
91
+ ],
92
+ "prerelease": [
93
+ {
94
+ "author": "lingfangao@hotmail.com",
95
+ "package": "@fluentui/react-badge",
96
+ "commit": "6183f8ae46233d7ecec2a3d12e7348b7b41eea0c",
97
+ "comment": "various styling fixes for base Badge component"
98
+ },
99
+ {
100
+ "author": "lingfangao@hotmail.com",
101
+ "package": "@fluentui/react-badge",
102
+ "commit": "c5c66cb39e6906f506bf30c9e56c0839f10e2d51",
103
+ "comment": "Reduce colour set and align with base badge colours"
104
+ },
105
+ {
106
+ "author": "ololubek@microsoft.com",
107
+ "package": "@fluentui/react-badge",
108
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
109
+ "comment": "update react-icons dependency"
110
+ },
111
+ {
112
+ "author": "lingfangao@hotmail.com",
113
+ "package": "@fluentui/react-badge",
114
+ "commit": "48e52fc91e41ab721c9842f8f68ac84ad569a851",
115
+ "comment": "Remove props and return correct presence icons"
116
+ },
117
+ {
118
+ "author": "beachball",
119
+ "package": "@fluentui/react-badge",
120
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
121
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
122
+ },
123
+ {
124
+ "author": "beachball",
125
+ "package": "@fluentui/react-badge",
126
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
127
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
128
+ },
129
+ {
130
+ "author": "beachball",
131
+ "package": "@fluentui/react-badge",
132
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
133
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
134
+ },
135
+ {
136
+ "author": "beachball",
137
+ "package": "@fluentui/react-badge",
138
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
139
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
140
+ },
141
+ {
142
+ "author": "beachball",
143
+ "package": "@fluentui/react-badge",
144
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
145
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
146
+ },
147
+ {
148
+ "author": "beachball",
149
+ "package": "@fluentui/react-badge",
150
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
151
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
152
+ }
153
+ ]
154
+ }
155
+ },
156
+ {
157
+ "date": "Fri, 12 Nov 2021 13:25:15 GMT",
158
+ "tag": "@fluentui/react-badge_v9.0.0-beta.3",
159
+ "version": "9.0.0-beta.3",
160
+ "comments": {
161
+ "prerelease": [
16
162
  {
17
163
  "author": "olfedias@microsoft.com",
18
164
  "package": "@fluentui/react-badge",
@@ -28,38 +174,38 @@
28
174
  {
29
175
  "author": "beachball",
30
176
  "package": "@fluentui/react-badge",
31
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
32
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
177
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
178
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
33
179
  },
34
180
  {
35
181
  "author": "beachball",
36
182
  "package": "@fluentui/react-badge",
37
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyed2d7c8d6320211111.1",
38
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
183
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
184
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
39
185
  },
40
186
  {
41
187
  "author": "beachball",
42
188
  "package": "@fluentui/react-badge",
43
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyed2d7c8d6320211111.1",
44
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
189
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
190
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
45
191
  },
46
192
  {
47
193
  "author": "beachball",
48
194
  "package": "@fluentui/react-badge",
49
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
50
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
195
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
196
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
51
197
  },
52
198
  {
53
199
  "author": "beachball",
54
200
  "package": "@fluentui/react-badge",
55
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
56
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
201
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
202
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
57
203
  },
58
204
  {
59
205
  "author": "beachball",
60
206
  "package": "@fluentui/react-badge",
61
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1",
62
- "commit": "69054b5abc9c52ffb203f51ad40b49d9729af7d9"
207
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
208
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
63
209
  }
64
210
  ],
65
211
  "none": [
@@ -69,6 +215,12 @@
69
215
  "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
70
216
  "comment": "update docs descriptions"
71
217
  },
218
+ {
219
+ "author": "lingfangao@hotmail.com",
220
+ "package": "@fluentui/react-badge",
221
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
222
+ "comment": "Remove beta release tag"
223
+ },
72
224
  {
73
225
  "author": "me@levithomason.com",
74
226
  "package": "@fluentui/react-badge",
package/CHANGELOG.md CHANGED
@@ -1,25 +1,61 @@
1
1
  # Change Log - @fluentui/react-badge
2
2
 
3
- This log was last generated on Thu, 11 Nov 2021 13:12:46 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 14 Dec 2021 04:16:15 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyed2d7c8d6320211111.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightlyed2d7c8d6320211111.1)
7
+ ## [0.0.0-nightlyf1be0a972820211214.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightlyf1be0a972820211214.1)
8
8
 
9
- Thu, 11 Nov 2021 13:12:46 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.2..@fluentui/react-badge_v0.0.0-nightlyed2d7c8d6320211111.1)
9
+ Tue, 14 Dec 2021 04:16:15 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.4..@fluentui/react-badge_v0.0.0-nightlyf1be0a972820211214.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) 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
+ - fix: Add uniform padding and modify gaps ([PR #20974](https://github.com/microsoft/fluentui/pull/20974) by lingfangao@hotmail.com)
19
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
20
+ - Bump @fluentui/react-theme to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
21
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
22
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
23
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
24
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
25
+
26
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.4)
27
+
28
+ Thu, 25 Nov 2021 08:34:11 GMT
29
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v9.0.0-beta.4)
30
+
31
+ ### Changes
32
+
33
+ - various styling fixes for base Badge component ([PR #20693](https://github.com/microsoft/fluentui/pull/20693) by lingfangao@hotmail.com)
34
+ - Reduce colour set and align with base badge colours ([PR #20596](https://github.com/microsoft/fluentui/pull/20596) by lingfangao@hotmail.com)
35
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
36
+ - Remove props and return correct presence icons ([PR #20630](https://github.com/microsoft/fluentui/pull/20630) by lingfangao@hotmail.com)
37
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
38
+ - Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
39
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
40
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
41
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
42
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
43
+
44
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.3)
45
+
46
+ Fri, 12 Nov 2021 13:25:15 GMT
47
+ [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
48
 
12
49
  ### Changes
13
50
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by email not defined)
15
51
  - export static classes for components ([PR #20453](https://github.com/microsoft/fluentui/pull/20453) by olfedias@microsoft.com)
16
52
  - 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-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
18
- - Bump @fluentui/react-theme to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
20
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
21
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
22
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyed2d7c8d6320211111.1 ([commit](https://github.com/microsoft/fluentui/commit/69054b5abc9c52ffb203f51ad40b49d9729af7d9) by beachball)
53
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
54
+ - Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
55
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
56
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
57
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
58
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
23
59
 
24
60
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.2)
25
61
 
@@ -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,22 @@ 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
96
  /**
92
97
  * {@docCategory CounterBadge}
93
98
  */
94
- export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
99
+ export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
95
100
 
96
101
  /**
97
102
  * {@docCategory CounterBadge}
98
103
  */
99
- export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
104
+ export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
100
105
 
101
106
  /**
102
107
  * Define a styled Badge, using the `useBadge` hook.
@@ -105,7 +110,7 @@ export declare const PresenceBadge: ForwardRefComponent<PresenceBadgeProps>;
105
110
 
106
111
  export declare const presenceBadgeClassName = "fui-PresenceBadge";
107
112
 
108
- export declare interface PresenceBadgeCommons {
113
+ export declare type PresenceBadgeCommons = {
109
114
  /**
110
115
  * Represents several status
111
116
  * @default available
@@ -117,11 +122,11 @@ export declare interface PresenceBadgeCommons {
117
122
  * @default false
118
123
  */
119
124
  outOfOffice: boolean;
120
- }
125
+ } & BadgeCommons;
121
126
 
122
- export declare type PresenceBadgeProps = BadgeProps & Partial<PresenceBadgeCommons>;
127
+ export declare type PresenceBadgeProps = ComponentProps<Partial<Pick<BadgeSlots, 'root'>>> & Partial<Pick<PresenceBadgeCommons, 'status' | 'outOfOffice' | 'size'>>;
123
128
 
124
- export declare type PresenceBadgeState = BadgeState & PresenceBadgeCommons;
129
+ export declare type PresenceBadgeState = PresenceBadgeCommons & ComponentState<BadgeSlots>;
125
130
 
126
131
  export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
127
132
 
@@ -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":""}