@fluentui/react-badge 9.0.0-alpha.92 → 9.0.0-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +277 -1
- package/CHANGELOG.md +67 -2
- package/dist/react-badge.d.ts +18 -7
- package/lib/components/Badge/Badge.js +2 -2
- package/lib/components/Badge/Badge.js.map +1 -1
- package/lib/components/Badge/Badge.types.d.ts +1 -1
- package/lib/components/Badge/renderBadge.js +6 -7
- package/lib/components/Badge/renderBadge.js.map +1 -1
- package/lib/components/Badge/useBadge.js +19 -22
- package/lib/components/Badge/useBadge.js.map +1 -1
- package/lib/components/Badge/useBadgeStyles.d.ts +1 -0
- package/lib/components/Badge/useBadgeStyles.js +35 -35
- package/lib/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.js +2 -2
- package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.types.d.ts +7 -2
- package/lib/components/CounterBadge/useCounterBadge.js +18 -24
- package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -0
- package/lib/components/CounterBadge/useCounterBadgeStyles.js +6 -34
- package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.js +2 -2
- package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
- package/lib/components/PresenceBadge/presenceIcons.d.ts +11 -0
- package/lib/components/PresenceBadge/presenceIcons.js +128 -0
- package/lib/components/PresenceBadge/presenceIcons.js.map +1 -0
- package/lib/components/PresenceBadge/usePresenceBadge.js +35 -24
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -0
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +38 -45
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/Badge.js +1 -1
- package/lib-commonjs/CounterBadge.js +1 -1
- package/lib-commonjs/PresenceBadge.js +1 -1
- package/lib-commonjs/components/Badge/Badge.js +6 -6
- package/lib-commonjs/components/Badge/Badge.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.types.d.ts +1 -1
- package/lib-commonjs/components/Badge/index.js +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js +8 -10
- package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadge.js +20 -24
- package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +1 -0
- package/lib-commonjs/components/Badge/useBadgeStyles.js +38 -37
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.js +6 -6
- package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +7 -2
- package/lib-commonjs/components/CounterBadge/index.js +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js +19 -26
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -0
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +10 -37
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +6 -6
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.types.d.ts +6 -5
- package/lib-commonjs/components/PresenceBadge/index.js +1 -1
- package/lib-commonjs/components/PresenceBadge/presenceIcons.d.ts +11 -0
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js +136 -0
- package/lib-commonjs/components/PresenceBadge/presenceIcons.js.map +1 -0
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +36 -26
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -0
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +40 -47
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -1
- package/package.json +11 -10
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -13
- package/lib/common/isConformant.js.map +0 -1
- package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
- package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -111
- package/lib/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -24
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.d.ts +0 -10
- package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js +0 -127
- package/lib-commonjs/components/PresenceBadge/DefaultPresenceBadgeIcons.js.map +0 -1
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,283 @@
|
|
2
2
|
"name": "@fluentui/react-badge",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Thu, 25 Nov 2021 08:31:29 GMT",
|
6
|
+
"tag": "@fluentui/react-badge_v9.0.0-beta.4",
|
7
|
+
"version": "9.0.0-beta.4",
|
8
|
+
"comments": {
|
9
|
+
"none": [
|
10
|
+
{
|
11
|
+
"author": "lingfangao@hotmail.com",
|
12
|
+
"package": "@fluentui/react-badge",
|
13
|
+
"commit": "cc3fe8e29cbb4b9d03f26e9a06b58d7aa24ffb65",
|
14
|
+
"comment": "Migrate package to use solution style ts-config"
|
15
|
+
}
|
16
|
+
],
|
17
|
+
"prerelease": [
|
18
|
+
{
|
19
|
+
"author": "lingfangao@hotmail.com",
|
20
|
+
"package": "@fluentui/react-badge",
|
21
|
+
"commit": "6183f8ae46233d7ecec2a3d12e7348b7b41eea0c",
|
22
|
+
"comment": "various styling fixes for base Badge component"
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"author": "lingfangao@hotmail.com",
|
26
|
+
"package": "@fluentui/react-badge",
|
27
|
+
"commit": "c5c66cb39e6906f506bf30c9e56c0839f10e2d51",
|
28
|
+
"comment": "Reduce colour set and align with base badge colours"
|
29
|
+
},
|
30
|
+
{
|
31
|
+
"author": "ololubek@microsoft.com",
|
32
|
+
"package": "@fluentui/react-badge",
|
33
|
+
"commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
|
34
|
+
"comment": "update react-icons dependency"
|
35
|
+
},
|
36
|
+
{
|
37
|
+
"author": "lingfangao@hotmail.com",
|
38
|
+
"package": "@fluentui/react-badge",
|
39
|
+
"commit": "48e52fc91e41ab721c9842f8f68ac84ad569a851",
|
40
|
+
"comment": "Remove props and return correct presence icons"
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"author": "beachball",
|
44
|
+
"package": "@fluentui/react-badge",
|
45
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
46
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
47
|
+
},
|
48
|
+
{
|
49
|
+
"author": "beachball",
|
50
|
+
"package": "@fluentui/react-badge",
|
51
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
|
52
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"author": "beachball",
|
56
|
+
"package": "@fluentui/react-badge",
|
57
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
58
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"author": "beachball",
|
62
|
+
"package": "@fluentui/react-badge",
|
63
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
64
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"author": "beachball",
|
68
|
+
"package": "@fluentui/react-badge",
|
69
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
70
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
71
|
+
},
|
72
|
+
{
|
73
|
+
"author": "beachball",
|
74
|
+
"package": "@fluentui/react-badge",
|
75
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
76
|
+
"commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
|
77
|
+
}
|
78
|
+
]
|
79
|
+
}
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"date": "Fri, 12 Nov 2021 13:25:15 GMT",
|
83
|
+
"tag": "@fluentui/react-badge_v9.0.0-beta.3",
|
84
|
+
"version": "9.0.0-beta.3",
|
85
|
+
"comments": {
|
86
|
+
"prerelease": [
|
87
|
+
{
|
88
|
+
"author": "olfedias@microsoft.com",
|
89
|
+
"package": "@fluentui/react-badge",
|
90
|
+
"commit": "e42f50656c1b703d88c398b114f225ba5f1f5f22",
|
91
|
+
"comment": "export static classes for components"
|
92
|
+
},
|
93
|
+
{
|
94
|
+
"author": "gcox@microsoft.com",
|
95
|
+
"package": "@fluentui/react-badge",
|
96
|
+
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
|
97
|
+
"comment": "Updated beta and RC components to ES2019"
|
98
|
+
},
|
99
|
+
{
|
100
|
+
"author": "beachball",
|
101
|
+
"package": "@fluentui/react-badge",
|
102
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
103
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"author": "beachball",
|
107
|
+
"package": "@fluentui/react-badge",
|
108
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
|
109
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
110
|
+
},
|
111
|
+
{
|
112
|
+
"author": "beachball",
|
113
|
+
"package": "@fluentui/react-badge",
|
114
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
115
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"author": "beachball",
|
119
|
+
"package": "@fluentui/react-badge",
|
120
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
121
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"author": "beachball",
|
125
|
+
"package": "@fluentui/react-badge",
|
126
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
127
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"author": "beachball",
|
131
|
+
"package": "@fluentui/react-badge",
|
132
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
133
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
134
|
+
}
|
135
|
+
],
|
136
|
+
"none": [
|
137
|
+
{
|
138
|
+
"author": "mgodbolt@microsoft.com",
|
139
|
+
"package": "@fluentui/react-badge",
|
140
|
+
"commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
|
141
|
+
"comment": "update docs descriptions"
|
142
|
+
},
|
143
|
+
{
|
144
|
+
"author": "lingfangao@hotmail.com",
|
145
|
+
"package": "@fluentui/react-badge",
|
146
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
147
|
+
"comment": "Remove beta release tag"
|
148
|
+
},
|
149
|
+
{
|
150
|
+
"author": "me@levithomason.com",
|
151
|
+
"package": "@fluentui/react-badge",
|
152
|
+
"commit": "cdbe0769d2a6ee91a98a3e62c6ac9329a714355c",
|
153
|
+
"comment": "Docs update"
|
154
|
+
}
|
155
|
+
]
|
156
|
+
}
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"date": "Wed, 27 Oct 2021 12:14:14 GMT",
|
160
|
+
"tag": "@fluentui/react-badge_v9.0.0-beta.2",
|
161
|
+
"version": "9.0.0-beta.2",
|
162
|
+
"comments": {
|
163
|
+
"none": [
|
164
|
+
{
|
165
|
+
"author": "olfedias@microsoft.com",
|
166
|
+
"package": "@fluentui/react-badge",
|
167
|
+
"commit": "7518a483df09e687ef56153d3f25da27802431a3",
|
168
|
+
"comment": "fix bundle size fixture"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"author": "olfedias@microsoft.com",
|
172
|
+
"package": "@fluentui/react-badge",
|
173
|
+
"commit": "193af6527f202f11efdd71da7581cc6e76ca2925",
|
174
|
+
"comment": "remove unused story file"
|
175
|
+
}
|
176
|
+
],
|
177
|
+
"prerelease": [
|
178
|
+
{
|
179
|
+
"author": "gcox@microsoft.com",
|
180
|
+
"package": "@fluentui/react-badge",
|
181
|
+
"commit": "fd1d90fbddc49971db9f04e691d6dd16a0595f4a",
|
182
|
+
"comment": "Removed duplicate 'Badge' from story names"
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"author": "peter@draxler.ml",
|
186
|
+
"package": "@fluentui/react-badge",
|
187
|
+
"commit": "f6db7c8d6b7db0902775e7857b62b745be35b59a",
|
188
|
+
"comment": "added styling of documentation"
|
189
|
+
},
|
190
|
+
{
|
191
|
+
"author": "beachball",
|
192
|
+
"package": "@fluentui/react-badge",
|
193
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.2",
|
194
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"author": "beachball",
|
198
|
+
"package": "@fluentui/react-badge",
|
199
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.2",
|
200
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
201
|
+
},
|
202
|
+
{
|
203
|
+
"author": "beachball",
|
204
|
+
"package": "@fluentui/react-badge",
|
205
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.2",
|
206
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"author": "beachball",
|
210
|
+
"package": "@fluentui/react-badge",
|
211
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.2",
|
212
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"author": "beachball",
|
216
|
+
"package": "@fluentui/react-badge",
|
217
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2",
|
218
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
219
|
+
},
|
220
|
+
{
|
221
|
+
"author": "beachball",
|
222
|
+
"package": "@fluentui/react-badge",
|
223
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2",
|
224
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
225
|
+
}
|
226
|
+
]
|
227
|
+
}
|
228
|
+
},
|
229
|
+
{
|
230
|
+
"date": "Wed, 06 Oct 2021 10:37:22 GMT",
|
231
|
+
"tag": "@fluentui/react-badge_v9.0.0-beta.1",
|
232
|
+
"version": "9.0.0-beta.1",
|
233
|
+
"comments": {
|
234
|
+
"prerelease": [
|
235
|
+
{
|
236
|
+
"author": "lingfangao@hotmail.com",
|
237
|
+
"package": "@fluentui/react-badge",
|
238
|
+
"comment": "Bump all v9 components to beta prerelease tag",
|
239
|
+
"commit": "5553164c190a4beb4780745d0e6403109e057913"
|
240
|
+
},
|
241
|
+
{
|
242
|
+
"author": "beachball",
|
243
|
+
"package": "@fluentui/react-badge",
|
244
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.1",
|
245
|
+
"commit": "5553164c190a4beb4780745d0e6403109e057913"
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"author": "beachball",
|
249
|
+
"package": "@fluentui/react-badge",
|
250
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.1",
|
251
|
+
"commit": "5553164c190a4beb4780745d0e6403109e057913"
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"author": "beachball",
|
255
|
+
"package": "@fluentui/react-badge",
|
256
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.1",
|
257
|
+
"commit": "5553164c190a4beb4780745d0e6403109e057913"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"author": "beachball",
|
261
|
+
"package": "@fluentui/react-badge",
|
262
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.1",
|
263
|
+
"commit": "5553164c190a4beb4780745d0e6403109e057913"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"author": "beachball",
|
267
|
+
"package": "@fluentui/react-badge",
|
268
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.1",
|
269
|
+
"commit": "5553164c190a4beb4780745d0e6403109e057913"
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"author": "beachball",
|
273
|
+
"package": "@fluentui/react-badge",
|
274
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.1",
|
275
|
+
"commit": "5553164c190a4beb4780745d0e6403109e057913"
|
276
|
+
}
|
277
|
+
]
|
278
|
+
}
|
279
|
+
},
|
280
|
+
{
|
281
|
+
"date": "Tue, 05 Oct 2021 12:47:58 GMT",
|
6
282
|
"tag": "@fluentui/react-badge_v9.0.0-alpha.92",
|
7
283
|
"version": "9.0.0-alpha.92",
|
8
284
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,77 @@
|
|
1
1
|
# Change Log - @fluentui/react-badge
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Thu, 25 Nov 2021 08:31:29 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.4)
|
8
|
+
|
9
|
+
Thu, 25 Nov 2021 08:31:29 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v9.0.0-beta.4)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- various styling fixes for base Badge component ([PR #20693](https://github.com/microsoft/fluentui/pull/20693) by lingfangao@hotmail.com)
|
15
|
+
- Reduce colour set and align with base badge colours ([PR #20596](https://github.com/microsoft/fluentui/pull/20596) by lingfangao@hotmail.com)
|
16
|
+
- update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
|
17
|
+
- Remove props and return correct presence icons ([PR #20630](https://github.com/microsoft/fluentui/pull/20630) by lingfangao@hotmail.com)
|
18
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
19
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
20
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
21
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
22
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
23
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
|
24
|
+
|
25
|
+
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.3)
|
26
|
+
|
27
|
+
Fri, 12 Nov 2021 13:25:15 GMT
|
28
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.2..@fluentui/react-badge_v9.0.0-beta.3)
|
29
|
+
|
30
|
+
### Changes
|
31
|
+
|
32
|
+
- export static classes for components ([PR #20453](https://github.com/microsoft/fluentui/pull/20453) by olfedias@microsoft.com)
|
33
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
34
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
35
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
36
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
37
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
38
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
39
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
40
|
+
|
41
|
+
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.2)
|
42
|
+
|
43
|
+
Wed, 27 Oct 2021 12:14:14 GMT
|
44
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.1..@fluentui/react-badge_v9.0.0-beta.2)
|
45
|
+
|
46
|
+
### Changes
|
47
|
+
|
48
|
+
- Removed duplicate 'Badge' from story names ([PR #20265](https://github.com/microsoft/fluentui/pull/20265) by gcox@microsoft.com)
|
49
|
+
- added styling of documentation ([PR #20193](https://github.com/microsoft/fluentui/pull/20193) by peter@draxler.ml)
|
50
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
51
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
52
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
53
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
54
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
55
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
56
|
+
|
57
|
+
## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.1)
|
58
|
+
|
59
|
+
Wed, 06 Oct 2021 10:37:22 GMT
|
60
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.92..@fluentui/react-badge_v9.0.0-beta.1)
|
61
|
+
|
62
|
+
### Changes
|
63
|
+
|
64
|
+
- Bump all v9 components to beta prerelease tag ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by lingfangao@hotmail.com)
|
65
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
|
66
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
|
67
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
|
68
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
|
69
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
|
70
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.1 ([PR #20106](https://github.com/microsoft/fluentui/pull/20106) by beachball)
|
71
|
+
|
7
72
|
## [9.0.0-alpha.92](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-alpha.92)
|
8
73
|
|
9
|
-
Tue, 05 Oct 2021 12:47:
|
74
|
+
Tue, 05 Oct 2021 12:47:58 GMT
|
10
75
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-alpha.91..@fluentui/react-badge_v9.0.0-alpha.92)
|
11
76
|
|
12
77
|
### Changes
|
package/dist/react-badge.d.ts
CHANGED
@@ -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
|
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 =
|
127
|
+
export declare type PresenceBadgeProps = ComponentProps<Partial<Pick<BadgeSlots, 'root'>>> & Partial<Pick<PresenceBadgeCommons, 'status' | 'outOfOffice' | 'size'>>;
|
117
128
|
|
118
|
-
export declare type PresenceBadgeState =
|
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
|
10
|
-
|
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,
|
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,10 @@
|
|
1
|
-
import { __assign } from "tslib";
|
2
1
|
import * as React from 'react';
|
3
2
|
import { getSlots } from '@fluentui/react-utilities';
|
4
|
-
export
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
3
|
+
export const renderBadge = state => {
|
4
|
+
const {
|
5
|
+
slots,
|
6
|
+
slotProps
|
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)));
|
10
9
|
};
|
11
10
|
//# sourceMappingURL=renderBadge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":"
|
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,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
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
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',
|
29
|
-
ref
|
30
|
-
'aria-hidden': true
|
31
|
-
|
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":"
|
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":""}
|