@fluentui/react-badge 0.0.0-nightly050f89bf0020211102.1 → 0.0.0-nightly07d9ed6d1b20211221.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 (81) hide show
  1. package/CHANGELOG.json +186 -16
  2. package/CHANGELOG.md +49 -11
  3. package/dist/react-badge.d.ts +18 -7
  4. package/lib/components/Badge/Badge.js +2 -2
  5. package/lib/components/Badge/Badge.js.map +1 -1
  6. package/lib/components/Badge/Badge.types.d.ts +1 -1
  7. package/lib/components/Badge/renderBadge.js +9 -7
  8. package/lib/components/Badge/renderBadge.js.map +1 -1
  9. package/lib/components/Badge/useBadge.js +19 -22
  10. package/lib/components/Badge/useBadge.js.map +1 -1
  11. package/lib/components/Badge/useBadgeStyles.d.ts +1 -0
  12. package/lib/components/Badge/useBadgeStyles.js +89 -68
  13. package/lib/components/Badge/useBadgeStyles.js.map +1 -1
  14. package/lib/components/CounterBadge/CounterBadge.js +2 -2
  15. package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
  16. package/lib/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  17. package/lib/components/CounterBadge/useCounterBadge.js +18 -24
  18. package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
  19. package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -0
  20. package/lib/components/CounterBadge/useCounterBadgeStyles.js +8 -38
  21. package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  22. package/lib/components/PresenceBadge/PresenceBadge.js +2 -2
  23. package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
  24. package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  25. package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
  26. package/lib/components/PresenceBadge/presenceIcons.js +128 -0
  27. package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
  28. package/lib/components/PresenceBadge/usePresenceBadge.js +35 -24
  29. package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  30. package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -0
  31. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +42 -46
  32. package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  33. package/lib-commonjs/Badge.js +1 -1
  34. package/lib-commonjs/CounterBadge.js +1 -1
  35. package/lib-commonjs/PresenceBadge.js +1 -1
  36. package/lib-commonjs/components/Badge/Badge.js +6 -6
  37. package/lib-commonjs/components/Badge/Badge.js.map +1 -1
  38. package/lib-commonjs/components/Badge/Badge.types.d.ts +1 -1
  39. package/lib-commonjs/components/Badge/index.js +1 -1
  40. package/lib-commonjs/components/Badge/renderBadge.js +11 -10
  41. package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
  42. package/lib-commonjs/components/Badge/useBadge.js +20 -24
  43. package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
  44. package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +1 -0
  45. package/lib-commonjs/components/Badge/useBadgeStyles.js +91 -69
  46. package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
  47. package/lib-commonjs/components/CounterBadge/CounterBadge.js +6 -6
  48. package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
  49. package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +7 -2
  50. package/lib-commonjs/components/CounterBadge/index.js +1 -1
  51. package/lib-commonjs/components/CounterBadge/useCounterBadge.js +19 -26
  52. package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
  53. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -0
  54. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +11 -40
  55. package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
  56. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +6 -6
  57. package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
  58. package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
  59. package/lib-commonjs/components/PresenceBadge/index.js +1 -1
  60. package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
  61. package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
  62. package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
  63. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +36 -26
  64. package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
  65. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -0
  66. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +43 -47
  67. package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
  68. package/lib-commonjs/index.js +1 -1
  69. package/package.json +11 -10
  70. package/lib/common/isConformant.d.ts +0 -4
  71. package/lib/common/isConformant.js +0 -13
  72. package/lib/common/isConformant.js.map +0 -1
  73. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  74. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -111
  75. package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
  76. package/lib-commonjs/common/isConformant.d.ts +0 -4
  77. package/lib-commonjs/common/isConformant.js +0 -24
  78. package/lib-commonjs/common/isConformant.js.map +0 -1
  79. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
  80. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -127
  81. package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,52 +2,210 @@
2
2
  "name": "@fluentui/react-badge",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 02 Nov 2021 08:40:43 GMT",
6
- "tag": "@fluentui/react-badge_v0.0.0-nightly050f89bf0020211102.1",
7
- "version": "0.0.0-nightly050f89bf0020211102.1",
5
+ "date": "Tue, 21 Dec 2021 04:16:41 GMT",
6
+ "tag": "@fluentui/react-badge_v0.0.0-nightly07d9ed6d1b20211221.1",
7
+ "version": "0.0.0-nightly07d9ed6d1b20211221.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-badge",
13
- "commit": "40469cc9aef788dfd49e97df32d6aed267c2cc26",
13
+ "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8",
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
+ },
16
40
  {
17
41
  "author": "beachball",
18
42
  "package": "@fluentui/react-badge",
19
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly050f89bf0020211102.1",
20
- "commit": "40469cc9aef788dfd49e97df32d6aed267c2cc26"
43
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
44
+ "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
21
45
  },
22
46
  {
23
47
  "author": "beachball",
24
48
  "package": "@fluentui/react-badge",
25
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly050f89bf0020211102.1",
26
- "commit": "40469cc9aef788dfd49e97df32d6aed267c2cc26"
49
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly07d9ed6d1b20211221.1",
50
+ "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
27
51
  },
28
52
  {
29
53
  "author": "beachball",
30
54
  "package": "@fluentui/react-badge",
31
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly050f89bf0020211102.1",
32
- "commit": "40469cc9aef788dfd49e97df32d6aed267c2cc26"
55
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly07d9ed6d1b20211221.1",
56
+ "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
33
57
  },
34
58
  {
35
59
  "author": "beachball",
36
60
  "package": "@fluentui/react-badge",
37
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly050f89bf0020211102.1",
38
- "commit": "40469cc9aef788dfd49e97df32d6aed267c2cc26"
61
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
62
+ "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
39
63
  },
40
64
  {
41
65
  "author": "beachball",
42
66
  "package": "@fluentui/react-badge",
43
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly050f89bf0020211102.1",
44
- "commit": "40469cc9aef788dfd49e97df32d6aed267c2cc26"
67
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
68
+ "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
45
69
  },
46
70
  {
47
71
  "author": "beachball",
48
72
  "package": "@fluentui/react-badge",
49
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly050f89bf0020211102.1",
50
- "commit": "40469cc9aef788dfd49e97df32d6aed267c2cc26"
73
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1",
74
+ "commit": "6e6f95bef032550f051ca8b80e4674e69f9edaa8"
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": [
162
+ {
163
+ "author": "olfedias@microsoft.com",
164
+ "package": "@fluentui/react-badge",
165
+ "commit": "e42f50656c1b703d88c398b114f225ba5f1f5f22",
166
+ "comment": "export static classes for components"
167
+ },
168
+ {
169
+ "author": "gcox@microsoft.com",
170
+ "package": "@fluentui/react-badge",
171
+ "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
172
+ "comment": "Updated beta and RC components to ES2019"
173
+ },
174
+ {
175
+ "author": "beachball",
176
+ "package": "@fluentui/react-badge",
177
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
178
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
179
+ },
180
+ {
181
+ "author": "beachball",
182
+ "package": "@fluentui/react-badge",
183
+ "comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
184
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
185
+ },
186
+ {
187
+ "author": "beachball",
188
+ "package": "@fluentui/react-badge",
189
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
190
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
191
+ },
192
+ {
193
+ "author": "beachball",
194
+ "package": "@fluentui/react-badge",
195
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
196
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
197
+ },
198
+ {
199
+ "author": "beachball",
200
+ "package": "@fluentui/react-badge",
201
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
202
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
203
+ },
204
+ {
205
+ "author": "beachball",
206
+ "package": "@fluentui/react-badge",
207
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
208
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
51
209
  }
52
210
  ],
53
211
  "none": [
@@ -56,6 +214,18 @@
56
214
  "package": "@fluentui/react-badge",
57
215
  "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
58
216
  "comment": "update docs descriptions"
217
+ },
218
+ {
219
+ "author": "lingfangao@hotmail.com",
220
+ "package": "@fluentui/react-badge",
221
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
222
+ "comment": "Remove beta release tag"
223
+ },
224
+ {
225
+ "author": "me@levithomason.com",
226
+ "package": "@fluentui/react-badge",
227
+ "commit": "cdbe0769d2a6ee91a98a3e62c6ac9329a714355c",
228
+ "comment": "Docs update"
59
229
  }
60
230
  ]
61
231
  }
package/CHANGELOG.md CHANGED
@@ -1,23 +1,61 @@
1
1
  # Change Log - @fluentui/react-badge
2
2
 
3
- This log was last generated on Tue, 02 Nov 2021 08:40:43 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 21 Dec 2021 04:16:41 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly050f89bf0020211102.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightly050f89bf0020211102.1)
7
+ ## [0.0.0-nightly07d9ed6d1b20211221.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightly07d9ed6d1b20211221.1)
8
8
 
9
- Tue, 02 Nov 2021 08:40:43 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.2..@fluentui/react-badge_v0.0.0-nightly050f89bf0020211102.1)
9
+ Tue, 21 Dec 2021 04:16:41 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.4..@fluentui/react-badge_v0.0.0-nightly07d9ed6d1b20211221.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/40469cc9aef788dfd49e97df32d6aed267c2cc26) by email not defined)
15
- - Bump @fluentui/react-make-styles to v0.0.0-nightly050f89bf0020211102.1 ([commit](https://github.com/microsoft/fluentui/commit/40469cc9aef788dfd49e97df32d6aed267c2cc26) by beachball)
16
- - Bump @fluentui/react-theme to v0.0.0-nightly050f89bf0020211102.1 ([commit](https://github.com/microsoft/fluentui/commit/40469cc9aef788dfd49e97df32d6aed267c2cc26) by beachball)
17
- - Bump @fluentui/react-utilities to v0.0.0-nightly050f89bf0020211102.1 ([commit](https://github.com/microsoft/fluentui/commit/40469cc9aef788dfd49e97df32d6aed267c2cc26) by beachball)
18
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly050f89bf0020211102.1 ([commit](https://github.com/microsoft/fluentui/commit/40469cc9aef788dfd49e97df32d6aed267c2cc26) by beachball)
19
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly050f89bf0020211102.1 ([commit](https://github.com/microsoft/fluentui/commit/40469cc9aef788dfd49e97df32d6aed267c2cc26) by beachball)
20
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly050f89bf0020211102.1 ([commit](https://github.com/microsoft/fluentui/commit/40469cc9aef788dfd49e97df32d6aed267c2cc26) by beachball)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) 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-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
20
+ - Bump @fluentui/react-theme to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
21
+ - Bump @fluentui/react-utilities to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
22
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
23
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) by beachball)
24
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly07d9ed6d1b20211221.1 ([commit](https://github.com/microsoft/fluentui/commit/6e6f95bef032550f051ca8b80e4674e69f9edaa8) 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)
48
+
49
+ ### Changes
50
+
51
+ - export static classes for components ([PR #20453](https://github.com/microsoft/fluentui/pull/20453) by olfedias@microsoft.com)
52
+ - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
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)
21
59
 
22
60
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.2)
23
61
 
@@ -9,6 +9,8 @@ import * as React_2 from 'react';
9
9
  */
10
10
  export declare const Badge: ForwardRefComponent<BadgeProps>;
11
11
 
12
+ export declare const badgeClassName = "fui-Badge";
13
+
12
14
  export declare type BadgeCommons = {
13
15
  /**
14
16
  * A Badge can be filled, outline, ghost, inverted
@@ -40,7 +42,7 @@ export declare type BadgeCommons = {
40
42
  export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
41
43
 
42
44
  export declare type BadgeSlots = {
43
- root: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
45
+ root: ObjectShorthandProps<Omit<React_2.HTMLAttributes<HTMLElement>, 'color'>>;
44
46
  icon?: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
45
47
  };
46
48
 
@@ -51,6 +53,8 @@ export declare type BadgeState = ComponentState<BadgeSlots> & BadgeCommons;
51
53
  */
52
54
  export declare const CounterBadge: ForwardRefComponent<CounterBadgeProps>;
53
55
 
56
+ export declare const counterBadgeClassName = "fui-CounterBadge";
57
+
54
58
  export declare type CounterBadgeCommons = {
55
59
  /**
56
60
  * Max number to be displayed
@@ -82,24 +86,31 @@ export declare type CounterBadgeCommons = {
82
86
  * @default filled
83
87
  */
84
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'>;
85
94
  };
86
95
 
87
96
  /**
88
97
  * {@docCategory CounterBadge}
89
98
  */
90
- export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape'> & Partial<CounterBadgeCommons>;
99
+ export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
91
100
 
92
101
  /**
93
102
  * {@docCategory CounterBadge}
94
103
  */
95
- export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape'> & CounterBadgeCommons;
104
+ export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
96
105
 
97
106
  /**
98
107
  * Define a styled Badge, using the `useBadge` hook.
99
108
  */
100
109
  export declare const PresenceBadge: ForwardRefComponent<PresenceBadgeProps>;
101
110
 
102
- export declare interface PresenceBadgeCommons {
111
+ export declare const presenceBadgeClassName = "fui-PresenceBadge";
112
+
113
+ export declare type PresenceBadgeCommons = {
103
114
  /**
104
115
  * Represents several status
105
116
  * @default available
@@ -111,11 +122,11 @@ export declare interface PresenceBadgeCommons {
111
122
  * @default false
112
123
  */
113
124
  outOfOffice: boolean;
114
- }
125
+ } & BadgeCommons;
115
126
 
116
- export declare type PresenceBadgeProps = BadgeProps & Partial<PresenceBadgeCommons>;
127
+ export declare type PresenceBadgeProps = ComponentProps<Partial<Pick<BadgeSlots, 'root'>>> & Partial<Pick<PresenceBadgeCommons, 'status' | 'outOfOffice' | 'size'>>;
117
128
 
118
- export declare type PresenceBadgeState = BadgeState & PresenceBadgeCommons;
129
+ export declare type PresenceBadgeState = PresenceBadgeCommons & ComponentState<BadgeSlots>;
119
130
 
120
131
  export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
121
132
 
@@ -6,8 +6,8 @@ import { renderBadge } from './renderBadge';
6
6
  * Define a styled Badge, using the `useBadge` hook.
7
7
  */
8
8
 
9
- export var Badge = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = useBadge(props, ref);
9
+ export const Badge = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useBadge(props, ref);
11
11
  useBadgeStyles(state);
12
12
  return renderBadge(state);
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,YAAzB;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,WAAT,QAA4B,eAA5B;AAIA;;AAEG;;AACH,OAAO,IAAM,KAAK,gBAAoC,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAChF,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAD,EAAQ,GAAR,CAAtB;AACA,EAAA,cAAc,CAAC,KAAD,CAAd;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALqD,CAA/C;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,YAAzB;AACA,SAAS,cAAT,QAA+B,kBAA/B;AACA,SAAS,WAAT,QAA4B,eAA5B;AAIA;;AAEG;;AACH,OAAO,MAAM,KAAK,gBAAoC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpF,QAAM,KAAK,GAAG,QAAQ,CAAC,KAAD,EAAQ,GAAR,CAAtB;AACA,EAAA,cAAc,CAAC,KAAD,CAAd;AAEA,SAAO,WAAW,CAAC,KAAD,CAAlB;AACD,CALqD,CAA/C;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourceRoot":""}
@@ -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 = {
@@ -1,11 +1,13 @@
1
- import { __assign } from "tslib";
2
1
  import * as React from 'react';
3
2
  import { getSlots } from '@fluentui/react-utilities';
4
- export var renderBadge = function (state) {
5
- var _a = getSlots(state, ['icon', 'root']),
6
- slots = _a.slots,
7
- slotProps = _a.slotProps;
8
-
9
- return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root), state.iconPosition === 'before' && /*#__PURE__*/React.createElement(slots.icon, __assign({}, slotProps.icon)), state.root.children, state.iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, __assign({}, slotProps.icon)));
3
+ export const renderBadge = state => {
4
+ const {
5
+ slots,
6
+ slotProps
7
+ } = getSlots(state, ['icon', 'root']);
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
+ }));
10
12
  };
11
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,IAAM,WAAW,GAAG,UAAC,KAAD,EAAkB;AACrC,MAAA,EAAA,GAAuB,QAAQ,CAAa,KAAb,EAAoB,CAAC,MAAD,EAAS,MAAT,CAApB,CAA/B;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AAEN,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,KAAK,CAAC,YAAN,KAAuB,QAAvB,iBAAmC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,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,QAAA,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":""}
@@ -1,34 +1,31 @@
1
- import { __assign } from "tslib";
2
1
  import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';
3
2
  /**
4
3
  * Returns the props and state required to render the component
5
4
  */
6
5
 
7
- export var useBadge = function (props, ref) {
8
- var _a = props.shape,
9
- shape = _a === void 0 ? 'circular' : _a,
10
- _b = props.size,
11
- size = _b === void 0 ? 'medium' : _b,
12
- _c = props.iconPosition,
13
- iconPosition = _c === void 0 ? 'before' : _c,
14
- _d = props.appearance,
15
- appearance = _d === void 0 ? 'filled' : _d,
16
- _e = props.color,
17
- color = _e === void 0 ? 'brand' : _e;
18
- var state = {
19
- shape: shape,
20
- size: size,
21
- iconPosition: iconPosition,
22
- appearance: appearance,
23
- color: color,
6
+ export const useBadge = (props, ref) => {
7
+ const {
8
+ shape = 'circular',
9
+ size = 'medium',
10
+ iconPosition = 'before',
11
+ appearance = 'filled',
12
+ color = 'brand'
13
+ } = props;
14
+ const state = {
15
+ shape,
16
+ size,
17
+ iconPosition,
18
+ appearance,
19
+ color,
24
20
  components: {
25
21
  root: 'div',
26
22
  icon: 'span'
27
23
  },
28
- root: getNativeElementProps('div', __assign({
29
- ref: ref,
30
- 'aria-hidden': true
31
- }, props)),
24
+ root: getNativeElementProps('div', {
25
+ ref,
26
+ 'aria-hidden': true,
27
+ ...props
28
+ }),
32
29
  icon: resolveShorthand(props.icon)
33
30
  };
34
31
  return state;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Badge/useBadge.ts"],"names":[],"mappings":";AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;AAEG;;AACH,OAAO,IAAM,QAAQ,GAAG,UAAC,KAAD,EAAoB,GAApB,EAA+C;AAEnE,MAAA,EAAA,GAKE,KAAK,CALW,KAAlB;AAAA,MAAA,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,UAAH,GAAa,EAAlB;AAAA,MACA,EAAA,GAIE,KAAK,CAJQ,IADf;AAAA,MACA,IAAI,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EADf;AAAA,MAEA,EAAA,GAGE,KAAK,CAHgB,YAFvB;AAAA,MAEA,YAAY,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EAFvB;AAAA,MAGA,EAAA,GAEE,KAAK,CAFc,UAHrB;AAAA,MAGA,UAAU,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EAHrB;AAAA,MAIA,EAAA,GACE,KAAK,CADQ,KAJf;AAAA,MAIA,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,OAAH,GAAU,EAJf;AAOF,MAAM,KAAK,GAAe;AACxB,IAAA,KAAK,EAAA,KADmB;AAExB,IAAA,IAAI,EAAA,IAFoB;AAGxB,IAAA,YAAY,EAAA,YAHY;AAIxB,IAAA,UAAU,EAAA,UAJc;AAKxB,IAAA,KAAK,EAAA,KALmB;AAMxB,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,KADI;AAEV,MAAA,IAAI,EAAE;AAFI,KANY;AAUxB,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAM,QAAA,CAAA;AAC/B,MAAA,GAAG,EAAA,GAD4B;AAE/B,qBAAe;AAFgB,KAAA,EAG5B,KAH4B,CAAN,CAVH;AAexB,IAAA,IAAI,EAAE,gBAAgB,CAAC,KAAK,CAAC,IAAP;AAfE,GAA1B;AAkBA,SAAO,KAAP;AACD,CA5BM","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Badge/useBadge.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;AAEG;;AACH,OAAO,MAAM,QAAQ,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;AACrF,QAAM;AACJ,IAAA,KAAK,GAAG,UADJ;AAEJ,IAAA,IAAI,GAAG,QAFH;AAGJ,IAAA,YAAY,GAAG,QAHX;AAIJ,IAAA,UAAU,GAAG,QAJT;AAKJ,IAAA,KAAK,GAAG;AALJ,MAMF,KANJ;AAQA,QAAM,KAAK,GAAe;AACxB,IAAA,KADwB;AAExB,IAAA,IAFwB;AAGxB,IAAA,YAHwB;AAIxB,IAAA,UAJwB;AAKxB,IAAA,KALwB;AAMxB,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,KADI;AAEV,MAAA,IAAI,EAAE;AAFI,KANY;AAUxB,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ;AACjC,MAAA,GADiC;AAEjC,qBAAe,IAFkB;AAGjC,SAAG;AAH8B,KAAR,CAVH;AAexB,IAAA,IAAI,EAAE,gBAAgB,CAAC,KAAK,CAAC,IAAP;AAfE,GAA1B;AAkBA,SAAO,KAAP;AACD,CA5BM","sourceRoot":""}
@@ -1,4 +1,5 @@
1
1
  import type { BadgeState } from './Badge.types';
2
+ export declare const badgeClassName = "fui-Badge";
2
3
  /**
3
4
  * Applies style classnames to slots
4
5
  */