@fluentui/react-badge 0.0.0-nightlyfe9829e48120211112.1 → 0.0.0-nightlyff78d1e27a20220217.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/CHANGELOG.json +299 -16
  2. package/CHANGELOG.md +70 -11
  3. package/dist/react-badge.d.ts +27 -28
  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.d.ts +1 -1
  8. package/lib/components/Badge/Badge.js +7 -7
  9. package/lib/components/Badge/Badge.js.map +1 -1
  10. package/lib/components/Badge/Badge.types.d.ts +4 -5
  11. package/lib/components/Badge/Badge.types.js.map +1 -1
  12. package/lib/components/Badge/index.d.ts +1 -1
  13. package/lib/components/Badge/index.js +0 -1
  14. package/lib/components/Badge/index.js.map +1 -1
  15. package/lib/components/Badge/renderBadge.d.ts +1 -1
  16. package/lib/components/Badge/renderBadge.js +6 -3
  17. package/lib/components/Badge/renderBadge.js.map +1 -1
  18. package/lib/components/Badge/useBadge.d.ts +1 -1
  19. package/lib/components/Badge/useBadge.js +1 -1
  20. package/lib/components/Badge/useBadge.js.map +1 -1
  21. package/lib/components/Badge/useBadgeStyles.d.ts +1 -1
  22. package/lib/components/Badge/useBadgeStyles.js +209 -203
  23. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  24. package/lib/components/CounterBadge/CounterBadge.d.ts +1 -1
  25. package/lib/components/CounterBadge/CounterBadge.js +7 -7
  26. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  27. package/lib/components/CounterBadge/CounterBadge.types.d.ts +9 -9
  28. package/lib/components/CounterBadge/CounterBadge.types.js.map +1 -1
  29. package/lib/components/CounterBadge/index.js.map +1 -1
  30. package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -1
  31. package/lib/components/CounterBadge/useCounterBadge.js +3 -3
  32. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  33. package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
  34. package/lib/components/CounterBadge/useCounterBadgeStyles.js +7 -38
  35. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  36. package/lib/components/PresenceBadge/PresenceBadge.d.ts +1 -1
  37. package/lib/components/PresenceBadge/PresenceBadge.js +7 -7
  38. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  39. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +7 -5
  40. package/lib/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  41. package/lib/components/PresenceBadge/index.js.map +1 -1
  42. package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
  43. package/lib/components/PresenceBadge/presenceIcons.js +128 -0
  44. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
  45. package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
  46. package/lib/components/PresenceBadge/usePresenceBadge.js +32 -18
  47. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  48. package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
  49. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +40 -44
  50. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  51. package/lib/index.js.map +1 -1
  52. package/lib-commonjs/Badge.js.map +1 -1
  53. package/lib-commonjs/CounterBadge.js.map +1 -1
  54. package/lib-commonjs/PresenceBadge.js.map +1 -1
  55. package/lib-commonjs/components/Badge/Badge.d.ts +1 -1
  56. package/lib-commonjs/components/Badge/Badge.js +4 -4
  57. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  58. package/lib-commonjs/components/Badge/Badge.types.d.ts +4 -5
  59. package/lib-commonjs/components/Badge/Badge.types.js.map +1 -1
  60. package/lib-commonjs/components/Badge/index.d.ts +1 -1
  61. package/lib-commonjs/components/Badge/index.js +0 -2
  62. package/lib-commonjs/components/Badge/index.js.map +1 -1
  63. package/lib-commonjs/components/Badge/renderBadge.d.ts +1 -1
  64. package/lib-commonjs/components/Badge/renderBadge.js +8 -5
  65. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  66. package/lib-commonjs/components/Badge/useBadge.d.ts +1 -1
  67. package/lib-commonjs/components/Badge/useBadge.js +3 -3
  68. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  69. package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +1 -1
  70. package/lib-commonjs/components/Badge/useBadgeStyles.js +212 -205
  71. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  72. package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +1 -1
  73. package/lib-commonjs/components/CounterBadge/CounterBadge.js +4 -4
  74. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  75. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +9 -9
  76. package/lib-commonjs/components/CounterBadge/CounterBadge.types.js.map +1 -1
  77. package/lib-commonjs/components/CounterBadge/index.js.map +1 -1
  78. package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -1
  79. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +4 -4
  80. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  81. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
  82. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +9 -40
  83. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  84. package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +1 -1
  85. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +4 -4
  86. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  87. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +7 -5
  88. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.js.map +1 -1
  89. package/lib-commonjs/components/PresenceBadge/index.js.map +1 -1
  90. package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
  91. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  92. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  93. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
  94. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +32 -18
  95. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  96. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
  97. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +43 -47
  98. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  99. package/lib-commonjs/index.js.map +1 -1
  100. package/package.json +14 -15
  101. package/lib/common/isConformant.d.ts +0 -4
  102. package/lib/common/isConformant.js +0 -13
  103. package/lib/common/isConformant.js.map +0 -1
  104. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  105. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -98
  106. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  107. package/lib-commonjs/common/isConformant.d.ts +0 -4
  108. package/lib-commonjs/common/isConformant.js +0 -24
  109. package/lib-commonjs/common/isConformant.js.map +0 -1
  110. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  111. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -113
  112. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,17 +2,294 @@
2
2
  "name": "@fluentui/react-badge",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 12 Nov 2021 04:20:20 GMT",
6
- "tag": "@fluentui/react-badge_v0.0.0-nightlyfe9829e48120211112.1",
7
- "version": "0.0.0-nightlyfe9829e48120211112.1",
5
+ "date": "Thu, 17 Feb 2022 11:41:17 GMT",
6
+ "tag": "@fluentui/react-badge_v0.0.0-nightlyff78d1e27a20220217.1",
7
+ "version": "0.0.0-nightlyff78d1e27a20220217.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-badge",
13
- "commit": "142a7cc99189d401f2f98ff0ee2f1db652df8b72",
13
+ "commit": "966e16625ca79f990ad8ca408ba47857adc522b3",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-badge",
19
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyff78d1e27a20220217.1",
20
+ "commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-badge",
25
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyff78d1e27a20220217.1",
26
+ "commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-badge",
31
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyff78d1e27a20220217.1",
32
+ "commit": "966e16625ca79f990ad8ca408ba47857adc522b3"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Thu, 10 Feb 2022 08:51:40 GMT",
39
+ "tag": "@fluentui/react-badge_v9.0.0-rc.1",
40
+ "version": "9.0.0-rc.1",
41
+ "comments": {
42
+ "none": [
43
+ {
44
+ "author": "olfedias@microsoft.com",
45
+ "package": "@fluentui/react-badge",
46
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
47
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
48
+ },
49
+ {
50
+ "author": "bsunderhus@microsoft.com",
51
+ "package": "@fluentui/react-badge",
52
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
53
+ "comment": "Updates components with nullRender changes"
54
+ },
55
+ {
56
+ "author": "tkrasniqi@microsoft.com",
57
+ "package": "@fluentui/react-badge",
58
+ "commit": "87e12a2e3a9d90b4ff95d3ed333739756d190f6c",
59
+ "comment": "Updated best practices for long text"
60
+ },
61
+ {
62
+ "author": "elcraig@microsoft.com",
63
+ "package": "@fluentui/react-badge",
64
+ "commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
65
+ "comment": "Remove outdated boilerplate comments"
66
+ },
67
+ {
68
+ "author": "martinhochel@microsoft.com",
69
+ "package": "@fluentui/react-badge",
70
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
71
+ "comment": "chore: use storybook runner for all vNext packages"
72
+ }
73
+ ],
74
+ "prerelease": [
75
+ {
76
+ "author": "ololubek@microsoft.com",
77
+ "package": "@fluentui/react-badge",
78
+ "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
79
+ "comment": "(fix): Update react-icons dependency to latest version"
80
+ },
81
+ {
82
+ "author": "lingfangao@hotmail.com",
83
+ "package": "@fluentui/react-badge",
84
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
85
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
86
+ },
87
+ {
88
+ "author": "behowell@microsoft.com",
89
+ "package": "@fluentui/react-badge",
90
+ "commit": "f5e7fa7a2129d3a4637a2ce777cecec435c256ec",
91
+ "comment": "Refactor and re-organize Badge styles; no visual changes."
92
+ },
93
+ {
94
+ "author": "behowell@microsoft.com",
95
+ "package": "@fluentui/react-badge",
96
+ "commit": "3bc0517363984081469903ee137a06543f825f1c",
97
+ "comment": "Add fontSize styling to icon slot, to automatically size user-provided icons"
98
+ },
99
+ {
100
+ "author": "Humberto.Morimoto@microsoft.com",
101
+ "package": "@fluentui/react-badge",
102
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
103
+ "comment": "Updating based on changes to composition types."
104
+ },
105
+ {
106
+ "author": "olfedias@microsoft.com",
107
+ "package": "@fluentui/react-badge",
108
+ "commit": "5a49512b8e33d5a588212069a1f2827b806d584c",
109
+ "comment": "update styles to not use CSS shorthands"
110
+ },
111
+ {
112
+ "author": "lingfangao@hotmail.com",
113
+ "package": "@fluentui/react-badge",
114
+ "commit": "4e5e955acede0fc79334ef90a563de4bd35ee231",
115
+ "comment": "fix: use updated tokens for ghost and outline variants"
116
+ },
117
+ {
118
+ "author": "Humberto.Morimoto@microsoft.com",
119
+ "package": "@fluentui/react-badge",
120
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
121
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
122
+ },
123
+ {
124
+ "author": "tristan.watanabe@gmail.com",
125
+ "package": "@fluentui/react-badge",
126
+ "commit": "13f940ea4687d769dd2faf61edc27ff75f6bb565",
127
+ "comment": "Allow React 17 in peerDependencies."
128
+ },
129
+ {
130
+ "author": "ololubek@microsoft.com",
131
+ "package": "@fluentui/react-badge",
132
+ "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
133
+ "comment": "Update react-icons usage to resizable icons"
134
+ },
135
+ {
136
+ "author": "mgodbolt@microsoft.com",
137
+ "package": "@fluentui/react-badge",
138
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
139
+ "comment": "remove export of commons types"
140
+ },
141
+ {
142
+ "author": "behowell@microsoft.com",
143
+ "package": "@fluentui/react-badge",
144
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
145
+ "comment": "Refactor component Slot typings"
146
+ },
147
+ {
148
+ "author": "behowell@microsoft.com",
149
+ "package": "@fluentui/react-badge",
150
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
151
+ "comment": "Remove component's shorthandProps array"
152
+ },
153
+ {
154
+ "author": "Humberto.Morimoto@microsoft.com",
155
+ "package": "@fluentui/react-badge",
156
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
157
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
158
+ },
159
+ {
160
+ "author": "olfedias@microsoft.com",
161
+ "package": "@fluentui/react-badge",
162
+ "commit": "b23239743c4f5518bcf7dcad496a36fc16bbd2e5",
163
+ "comment": "update @fluentui/react-icons package"
164
+ },
165
+ {
166
+ "author": "olfedias@microsoft.com",
167
+ "package": "@fluentui/react-badge",
168
+ "commit": "8c75114e82b205810c9ac3692af71f6f7748225c",
169
+ "comment": "use Griffel packages"
170
+ },
171
+ {
172
+ "author": "Humberto.Morimoto@microsoft.com",
173
+ "package": "@fluentui/react-badge",
174
+ "commit": "2c54271f07c30f65718e085084c2e5b213268dfd",
175
+ "comment": "react-badge: Replacing use of functions in makeStyles with direct use of tokens."
176
+ },
177
+ {
178
+ "author": "behowell@microsoft.com",
179
+ "package": "@fluentui/react-badge",
180
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
181
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
182
+ },
183
+ {
184
+ "author": "lingfangao@hotmail.com",
185
+ "package": "@fluentui/react-badge",
186
+ "commit": "4e7acd7ff3c437663de70206416d3c19b6a87cfa",
187
+ "comment": "fix: Add uniform padding and modify gaps"
188
+ },
189
+ {
190
+ "author": "beachball",
191
+ "package": "@fluentui/react-badge",
192
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
193
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
194
+ },
195
+ {
196
+ "author": "beachball",
197
+ "package": "@fluentui/react-badge",
198
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
199
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
200
+ },
201
+ {
202
+ "author": "beachball",
203
+ "package": "@fluentui/react-badge",
204
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
205
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
206
+ }
207
+ ]
208
+ }
209
+ },
210
+ {
211
+ "date": "Thu, 25 Nov 2021 08:34:11 GMT",
212
+ "tag": "@fluentui/react-badge_v9.0.0-beta.4",
213
+ "version": "9.0.0-beta.4",
214
+ "comments": {
215
+ "none": [
216
+ {
217
+ "author": "lingfangao@hotmail.com",
218
+ "package": "@fluentui/react-badge",
219
+ "commit": "cc3fe8e29cbb4b9d03f26e9a06b58d7aa24ffb65",
220
+ "comment": "Migrate package to use solution style ts-config"
221
+ }
222
+ ],
223
+ "prerelease": [
224
+ {
225
+ "author": "lingfangao@hotmail.com",
226
+ "package": "@fluentui/react-badge",
227
+ "commit": "6183f8ae46233d7ecec2a3d12e7348b7b41eea0c",
228
+ "comment": "various styling fixes for base Badge component"
229
+ },
230
+ {
231
+ "author": "lingfangao@hotmail.com",
232
+ "package": "@fluentui/react-badge",
233
+ "commit": "c5c66cb39e6906f506bf30c9e56c0839f10e2d51",
234
+ "comment": "Reduce colour set and align with base badge colours"
235
+ },
236
+ {
237
+ "author": "ololubek@microsoft.com",
238
+ "package": "@fluentui/react-badge",
239
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
240
+ "comment": "update react-icons dependency"
241
+ },
242
+ {
243
+ "author": "lingfangao@hotmail.com",
244
+ "package": "@fluentui/react-badge",
245
+ "commit": "48e52fc91e41ab721c9842f8f68ac84ad569a851",
246
+ "comment": "Remove props and return correct presence icons"
247
+ },
248
+ {
249
+ "author": "beachball",
250
+ "package": "@fluentui/react-badge",
251
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
252
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
253
+ },
254
+ {
255
+ "author": "beachball",
256
+ "package": "@fluentui/react-badge",
257
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
258
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
259
+ },
260
+ {
261
+ "author": "beachball",
262
+ "package": "@fluentui/react-badge",
263
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
264
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
265
+ },
266
+ {
267
+ "author": "beachball",
268
+ "package": "@fluentui/react-badge",
269
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
270
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
271
+ },
272
+ {
273
+ "author": "beachball",
274
+ "package": "@fluentui/react-badge",
275
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
276
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
277
+ },
278
+ {
279
+ "author": "beachball",
280
+ "package": "@fluentui/react-badge",
281
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
282
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
283
+ }
284
+ ]
285
+ }
286
+ },
287
+ {
288
+ "date": "Fri, 12 Nov 2021 13:25:15 GMT",
289
+ "tag": "@fluentui/react-badge_v9.0.0-beta.3",
290
+ "version": "9.0.0-beta.3",
291
+ "comments": {
292
+ "prerelease": [
16
293
  {
17
294
  "author": "olfedias@microsoft.com",
18
295
  "package": "@fluentui/react-badge",
@@ -28,38 +305,38 @@
28
305
  {
29
306
  "author": "beachball",
30
307
  "package": "@fluentui/react-badge",
31
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyfe9829e48120211112.1",
32
- "commit": "142a7cc99189d401f2f98ff0ee2f1db652df8b72"
308
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
309
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
33
310
  },
34
311
  {
35
312
  "author": "beachball",
36
313
  "package": "@fluentui/react-badge",
37
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightlyfe9829e48120211112.1",
38
- "commit": "142a7cc99189d401f2f98ff0ee2f1db652df8b72"
314
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
315
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
39
316
  },
40
317
  {
41
318
  "author": "beachball",
42
319
  "package": "@fluentui/react-badge",
43
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyfe9829e48120211112.1",
44
- "commit": "142a7cc99189d401f2f98ff0ee2f1db652df8b72"
320
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
321
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
45
322
  },
46
323
  {
47
324
  "author": "beachball",
48
325
  "package": "@fluentui/react-badge",
49
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyfe9829e48120211112.1",
50
- "commit": "142a7cc99189d401f2f98ff0ee2f1db652df8b72"
326
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
327
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
51
328
  },
52
329
  {
53
330
  "author": "beachball",
54
331
  "package": "@fluentui/react-badge",
55
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyfe9829e48120211112.1",
56
- "commit": "142a7cc99189d401f2f98ff0ee2f1db652df8b72"
332
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
333
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
57
334
  },
58
335
  {
59
336
  "author": "beachball",
60
337
  "package": "@fluentui/react-badge",
61
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyfe9829e48120211112.1",
62
- "commit": "142a7cc99189d401f2f98ff0ee2f1db652df8b72"
338
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
339
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
63
340
  }
64
341
  ],
65
342
  "none": [
@@ -69,6 +346,12 @@
69
346
  "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
70
347
  "comment": "update docs descriptions"
71
348
  },
349
+ {
350
+ "author": "lingfangao@hotmail.com",
351
+ "package": "@fluentui/react-badge",
352
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
353
+ "comment": "Remove beta release tag"
354
+ },
72
355
  {
73
356
  "author": "me@levithomason.com",
74
357
  "package": "@fluentui/react-badge",
package/CHANGELOG.md CHANGED
@@ -1,25 +1,84 @@
1
1
  # Change Log - @fluentui/react-badge
2
2
 
3
- This log was last generated on Fri, 12 Nov 2021 04:20:20 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 17 Feb 2022 11:41:17 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyfe9829e48120211112.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightlyfe9829e48120211112.1)
7
+ ## [0.0.0-nightlyff78d1e27a20220217.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightlyff78d1e27a20220217.1)
8
8
 
9
- Fri, 12 Nov 2021 04:20:20 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.2..@fluentui/react-badge_v0.0.0-nightlyfe9829e48120211112.1)
9
+ Thu, 17 Feb 2022 11:41:17 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-rc.1..@fluentui/react-badge_v0.0.0-nightlyff78d1e27a20220217.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by email not defined)
15
+ - Bump @fluentui/react-theme to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
16
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
17
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyff78d1e27a20220217.1 ([commit](https://github.com/microsoft/fluentui/commit/966e16625ca79f990ad8ca408ba47857adc522b3) by beachball)
18
+
19
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-rc.1)
20
+
21
+ Thu, 10 Feb 2022 08:51:40 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.4..@fluentui/react-badge_v9.0.0-rc.1)
23
+
24
+ ### Changes
25
+
26
+ - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
27
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
28
+ - Refactor and re-organize Badge styles; no visual changes. ([PR #21271](https://github.com/microsoft/fluentui/pull/21271) by behowell@microsoft.com)
29
+ - Add fontSize styling to icon slot, to automatically size user-provided icons ([PR #21219](https://github.com/microsoft/fluentui/pull/21219) by behowell@microsoft.com)
30
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
31
+ - update styles to not use CSS shorthands ([PR #20802](https://github.com/microsoft/fluentui/pull/20802) by olfedias@microsoft.com)
32
+ - fix: use updated tokens for ghost and outline variants ([PR #20893](https://github.com/microsoft/fluentui/pull/20893) by lingfangao@hotmail.com)
33
+ - Updating use of tokens.fontWeight now that we don't need to use casting. ([PR #21217](https://github.com/microsoft/fluentui/pull/21217) by Humberto.Morimoto@microsoft.com)
34
+ - Allow React 17 in peerDependencies. ([PR #21544](https://github.com/microsoft/fluentui/pull/21544) by tristan.watanabe@gmail.com)
35
+ - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
36
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
37
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
38
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
39
+ - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
40
+ - update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
41
+ - use Griffel packages ([PR #21437](https://github.com/microsoft/fluentui/pull/21437) by olfedias@microsoft.com)
42
+ - 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)
43
+ - BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet ([PR #21365](https://github.com/microsoft/fluentui/pull/21365) by behowell@microsoft.com)
44
+ - fix: Add uniform padding and modify gaps ([PR #20974](https://github.com/microsoft/fluentui/pull/20974) by lingfangao@hotmail.com)
45
+ - Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
46
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
47
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
48
+
49
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.4)
50
+
51
+ Thu, 25 Nov 2021 08:34:11 GMT
52
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v9.0.0-beta.4)
53
+
54
+ ### Changes
55
+
56
+ - various styling fixes for base Badge component ([PR #20693](https://github.com/microsoft/fluentui/pull/20693) by lingfangao@hotmail.com)
57
+ - Reduce colour set and align with base badge colours ([PR #20596](https://github.com/microsoft/fluentui/pull/20596) by lingfangao@hotmail.com)
58
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
59
+ - Remove props and return correct presence icons ([PR #20630](https://github.com/microsoft/fluentui/pull/20630) by lingfangao@hotmail.com)
60
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
61
+ - Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
62
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
63
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
64
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
65
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
66
+
67
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.3)
68
+
69
+ Fri, 12 Nov 2021 13:25:15 GMT
70
+ [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
71
 
12
72
  ### Changes
13
73
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/142a7cc99189d401f2f98ff0ee2f1db652df8b72) by email not defined)
15
74
  - export static classes for components ([PR #20453](https://github.com/microsoft/fluentui/pull/20453) by olfedias@microsoft.com)
16
75
  - 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-nightlyfe9829e48120211112.1 ([commit](https://github.com/microsoft/fluentui/commit/142a7cc99189d401f2f98ff0ee2f1db652df8b72) by beachball)
18
- - Bump @fluentui/react-theme to v0.0.0-nightlyfe9829e48120211112.1 ([commit](https://github.com/microsoft/fluentui/commit/142a7cc99189d401f2f98ff0ee2f1db652df8b72) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightlyfe9829e48120211112.1 ([commit](https://github.com/microsoft/fluentui/commit/142a7cc99189d401f2f98ff0ee2f1db652df8b72) by beachball)
20
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyfe9829e48120211112.1 ([commit](https://github.com/microsoft/fluentui/commit/142a7cc99189d401f2f98ff0ee2f1db652df8b72) by beachball)
21
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyfe9829e48120211112.1 ([commit](https://github.com/microsoft/fluentui/commit/142a7cc99189d401f2f98ff0ee2f1db652df8b72) by beachball)
22
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyfe9829e48120211112.1 ([commit](https://github.com/microsoft/fluentui/commit/142a7cc99189d401f2f98ff0ee2f1db652df8b72) by beachball)
76
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
77
+ - Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
78
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
79
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
80
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
81
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
23
82
 
24
83
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.2)
25
84
 
@@ -1,17 +1,17 @@
1
1
  import type { ComponentProps } from '@fluentui/react-utilities';
2
2
  import type { ComponentState } from '@fluentui/react-utilities';
3
3
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
4
- import type { ObjectShorthandProps } from '@fluentui/react-utilities';
5
4
  import * as React_2 from 'react';
5
+ import type { Slot } from '@fluentui/react-utilities';
6
6
 
7
7
  /**
8
- * Define a styled Badge, using the `useBadge` hook.
8
+ * Define a styled Badge, using the `useBadge_unstable` hook.
9
9
  */
10
10
  export declare const Badge: ForwardRefComponent<BadgeProps>;
11
11
 
12
12
  export declare const badgeClassName = "fui-Badge";
13
13
 
14
- export declare type BadgeCommons = {
14
+ declare type BadgeCommons = {
15
15
  /**
16
16
  * A Badge can be filled, outline, ghost, inverted
17
17
  * @defaultvalue filled
@@ -39,23 +39,23 @@ export declare type BadgeCommons = {
39
39
  size: 'tiny' | 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
40
40
  };
41
41
 
42
- export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
42
+ export declare type BadgeProps = Omit<ComponentProps<BadgeSlots>, 'color'> & Partial<BadgeCommons>;
43
43
 
44
44
  export declare type BadgeSlots = {
45
- root: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
46
- icon?: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
45
+ root: Slot<'div'>;
46
+ icon?: Slot<'span'>;
47
47
  };
48
48
 
49
49
  export declare type BadgeState = ComponentState<BadgeSlots> & BadgeCommons;
50
50
 
51
51
  /**
52
- * Define a styled CounterBadge, using the `useCounterBadge` hook.
52
+ * Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.
53
53
  */
54
54
  export declare const CounterBadge: ForwardRefComponent<CounterBadgeProps>;
55
55
 
56
56
  export declare const counterBadgeClassName = "fui-CounterBadge";
57
57
 
58
- export declare type CounterBadgeCommons = {
58
+ declare type CounterBadgeCommons = {
59
59
  /**
60
60
  * Max number to be displayed
61
61
  * @default 99
@@ -86,26 +86,25 @@ 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
- * Define a styled Badge, using the `useBadge` hook.
101
+ * Define a styled Badge, using the `useBadge_unstable` hook.
103
102
  */
104
103
  export declare const PresenceBadge: ForwardRefComponent<PresenceBadgeProps>;
105
104
 
106
105
  export declare const presenceBadgeClassName = "fui-PresenceBadge";
107
106
 
108
- export declare interface PresenceBadgeCommons {
107
+ declare type PresenceBadgeCommons = {
109
108
  /**
110
109
  * Represents several status
111
110
  * @default available
@@ -117,44 +116,44 @@ 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 = Omit<ComponentProps<Pick<BadgeSlots, 'root'>>, 'color'> & 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
 
128
- export declare const renderBadge: (state: BadgeState) => JSX.Element;
127
+ export declare const renderBadge_unstable: (state: BadgeState) => JSX.Element;
129
128
 
130
129
  /**
131
130
  * Returns the props and state required to render the component
132
131
  */
133
- export declare const useBadge: (props: BadgeProps, ref: React_2.Ref<HTMLElement>) => BadgeState;
132
+ export declare const useBadge_unstable: (props: BadgeProps, ref: React_2.Ref<HTMLElement>) => BadgeState;
134
133
 
135
134
  /**
136
135
  * Applies style classnames to slots
137
136
  */
138
- export declare const useBadgeStyles: (state: BadgeState) => BadgeState;
137
+ export declare const useBadgeStyles_unstable: (state: BadgeState) => BadgeState;
139
138
 
140
139
  /**
141
140
  * Returns the props and state required to render the component
142
141
  */
143
- export declare const useCounterBadge: (props: CounterBadgeProps, ref: React_2.Ref<HTMLElement>) => CounterBadgeState;
142
+ export declare const useCounterBadge_unstable: (props: CounterBadgeProps, ref: React_2.Ref<HTMLElement>) => CounterBadgeState;
144
143
 
145
144
  /**
146
145
  * Applies style classnames to slots
147
146
  */
148
- export declare const useCounterBadgeStyles: (state: CounterBadgeState) => CounterBadgeState;
147
+ export declare const useCounterBadgeStyles_unstable: (state: CounterBadgeState) => CounterBadgeState;
149
148
 
150
149
  /**
151
150
  * Returns the props and state required to render the component
152
151
  */
153
- export declare const usePresenceBadge: (props: PresenceBadgeProps, ref: React_2.Ref<HTMLElement>) => PresenceBadgeState;
152
+ export declare const usePresenceBadge_unstable: (props: PresenceBadgeProps, ref: React_2.Ref<HTMLElement>) => PresenceBadgeState;
154
153
 
155
154
  /**
156
155
  * Applies style classnames to slots
157
156
  */
158
- export declare const usePresenceBadgeStyles: (state: PresenceBadgeState) => PresenceBadgeState;
157
+ export declare const usePresenceBadgeStyles_unstable: (state: PresenceBadgeState) => PresenceBadgeState;
159
158
 
160
159
  export { }
package/lib/Badge.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Badge.js","sourceRoot":"","sources":["../src/Badge.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
1
+ {"version":3,"file":"Badge.js","sourceRoot":"../src/","sources":["Badge.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC","sourcesContent":["export * from './components/Badge/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"CounterBadge.js","sourceRoot":"","sources":["../src/CounterBadge.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"CounterBadge.js","sourceRoot":"../src/","sources":["CounterBadge.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './components/CounterBadge/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"PresenceBadge.js","sourceRoot":"","sources":["../src/PresenceBadge.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
1
+ {"version":3,"file":"PresenceBadge.js","sourceRoot":"../src/","sources":["PresenceBadge.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './components/PresenceBadge/index';\n"]}
@@ -1,6 +1,6 @@
1
1
  import type { BadgeProps } from './Badge.types';
2
2
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
3
  /**
4
- * Define a styled Badge, using the `useBadge` hook.
4
+ * Define a styled Badge, using the `useBadge_unstable` hook.
5
5
  */
6
6
  export declare const Badge: ForwardRefComponent<BadgeProps>;