@fluentui/react-badge 0.0.0-nightlyc0273fdc6920211123.1 → 0.0.0-nightlyc49127232120220201.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +173 -16
- package/CHANGELOG.md +38 -11
- package/dist/react-badge.d.ts +13 -19
- package/lib/components/Badge/Badge.d.ts +1 -1
- package/lib/components/Badge/Badge.js +7 -7
- package/lib/components/Badge/Badge.js.map +1 -1
- package/lib/components/Badge/Badge.types.d.ts +3 -4
- package/lib/components/Badge/renderBadge.d.ts +1 -1
- package/lib/components/Badge/renderBadge.js +6 -3
- package/lib/components/Badge/renderBadge.js.map +1 -1
- package/lib/components/Badge/useBadge.d.ts +1 -1
- package/lib/components/Badge/useBadge.js +1 -1
- package/lib/components/Badge/useBadge.js.map +1 -1
- package/lib/components/Badge/useBadgeStyles.d.ts +1 -1
- package/lib/components/Badge/useBadgeStyles.js +209 -203
- package/lib/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.d.ts +1 -1
- package/lib/components/CounterBadge/CounterBadge.js +7 -7
- package/lib/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/CounterBadge.types.d.ts +0 -6
- package/lib/components/CounterBadge/useCounterBadge.d.ts +1 -1
- package/lib/components/CounterBadge/useCounterBadge.js +3 -3
- package/lib/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
- package/lib/components/CounterBadge/useCounterBadgeStyles.js +6 -8
- package/lib/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.d.ts +1 -1
- package/lib/components/PresenceBadge/PresenceBadge.js +7 -7
- package/lib/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
- package/lib/components/PresenceBadge/usePresenceBadge.js +3 -3
- package/lib/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js +9 -5
- package/lib/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.d.ts +1 -1
- package/lib-commonjs/components/Badge/Badge.js +4 -4
- package/lib-commonjs/components/Badge/Badge.js.map +1 -1
- package/lib-commonjs/components/Badge/Badge.types.d.ts +3 -4
- package/lib-commonjs/components/Badge/renderBadge.d.ts +1 -1
- package/lib-commonjs/components/Badge/renderBadge.js +8 -5
- package/lib-commonjs/components/Badge/renderBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadge.d.ts +1 -1
- package/lib-commonjs/components/Badge/useBadge.js +3 -3
- package/lib-commonjs/components/Badge/useBadge.js.map +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.d.ts +1 -1
- package/lib-commonjs/components/Badge/useBadgeStyles.js +212 -205
- package/lib-commonjs/components/Badge/useBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.d.ts +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.js +4 -4
- package/lib-commonjs/components/CounterBadge/CounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/CounterBadge.types.d.ts +0 -6
- package/lib-commonjs/components/CounterBadge/useCounterBadge.d.ts +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js +4 -4
- package/lib-commonjs/components/CounterBadge/useCounterBadge.js.map +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.d.ts +1 -1
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js +8 -10
- package/lib-commonjs/components/CounterBadge/useCounterBadgeStyles.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.d.ts +1 -1
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js +4 -4
- package/lib-commonjs/components/PresenceBadge/PresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.d.ts +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js +4 -4
- package/lib-commonjs/components/PresenceBadge/usePresenceBadge.js.map +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.d.ts +1 -1
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js +14 -9
- package/lib-commonjs/components/PresenceBadge/usePresenceBadgeStyles.js.map +1 -1
- package/package.json +10 -11
- 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-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/CHANGELOG.json
CHANGED
@@ -2,23 +2,180 @@
|
|
2
2
|
"name": "@fluentui/react-badge",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Tue,
|
6
|
-
"tag": "@fluentui/react-badge_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Tue, 01 Feb 2022 04:14:48 GMT",
|
6
|
+
"tag": "@fluentui/react-badge_v0.0.0-nightlyc49127232120220201.1",
|
7
|
+
"version": "0.0.0-nightlyc49127232120220201.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-badge",
|
13
|
-
"commit": "
|
13
|
+
"commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954",
|
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": "behowell@microsoft.com",
|
24
|
+
"package": "@fluentui/react-badge",
|
25
|
+
"commit": "f5e7fa7a2129d3a4637a2ce777cecec435c256ec",
|
26
|
+
"comment": "Refactor and re-organize Badge styles; no visual changes."
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "behowell@microsoft.com",
|
30
|
+
"package": "@fluentui/react-badge",
|
31
|
+
"commit": "3bc0517363984081469903ee137a06543f825f1c",
|
32
|
+
"comment": "Add fontSize styling to icon slot, to automatically size user-provided icons"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
36
|
+
"package": "@fluentui/react-badge",
|
37
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
38
|
+
"comment": "Updating based on changes to composition types."
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "olfedias@microsoft.com",
|
42
|
+
"package": "@fluentui/react-badge",
|
43
|
+
"commit": "5a49512b8e33d5a588212069a1f2827b806d584c",
|
44
|
+
"comment": "update styles to not use CSS shorthands"
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "lingfangao@hotmail.com",
|
48
|
+
"package": "@fluentui/react-badge",
|
49
|
+
"commit": "4e5e955acede0fc79334ef90a563de4bd35ee231",
|
50
|
+
"comment": "fix: use updated tokens for ghost and outline variants"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
54
|
+
"package": "@fluentui/react-badge",
|
55
|
+
"commit": "00a5d945904c896a0664de6ba72c145a255f0848",
|
56
|
+
"comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "ololubek@microsoft.com",
|
60
|
+
"package": "@fluentui/react-badge",
|
61
|
+
"commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
|
62
|
+
"comment": "Update react-icons usage to resizable icons"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"author": "behowell@microsoft.com",
|
66
|
+
"package": "@fluentui/react-badge",
|
67
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
68
|
+
"comment": "Remove component's shorthandProps array"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
72
|
+
"package": "@fluentui/react-badge",
|
73
|
+
"commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
|
74
|
+
"comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"author": "olfedias@microsoft.com",
|
78
|
+
"package": "@fluentui/react-badge",
|
79
|
+
"commit": "8c75114e82b205810c9ac3692af71f6f7748225c",
|
80
|
+
"comment": "use Griffel packages"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
84
|
+
"package": "@fluentui/react-badge",
|
85
|
+
"commit": "2c54271f07c30f65718e085084c2e5b213268dfd",
|
86
|
+
"comment": "react-badge: Replacing use of functions in makeStyles with direct use of tokens."
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"author": "behowell@microsoft.com",
|
90
|
+
"package": "@fluentui/react-badge",
|
91
|
+
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
92
|
+
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
93
|
+
},
|
94
|
+
{
|
95
|
+
"author": "lingfangao@hotmail.com",
|
96
|
+
"package": "@fluentui/react-badge",
|
97
|
+
"commit": "4e7acd7ff3c437663de70206416d3c19b6a87cfa",
|
98
|
+
"comment": "fix: Add uniform padding and modify gaps"
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"author": "beachball",
|
102
|
+
"package": "@fluentui/react-badge",
|
103
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightlyc49127232120220201.1",
|
104
|
+
"commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
|
105
|
+
},
|
106
|
+
{
|
107
|
+
"author": "beachball",
|
108
|
+
"package": "@fluentui/react-badge",
|
109
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyc49127232120220201.1",
|
110
|
+
"commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"author": "beachball",
|
114
|
+
"package": "@fluentui/react-badge",
|
115
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyc49127232120220201.1",
|
116
|
+
"commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
|
117
|
+
}
|
118
|
+
],
|
119
|
+
"none": [
|
120
|
+
{
|
121
|
+
"author": "elcraig@microsoft.com",
|
122
|
+
"package": "@fluentui/react-badge",
|
123
|
+
"commit": "d892c7f79c543b6008634ecd669b75b5108cad46",
|
124
|
+
"comment": "Remove outdated boilerplate comments"
|
125
|
+
},
|
126
|
+
{
|
127
|
+
"author": "martinhochel@microsoft.com",
|
128
|
+
"package": "@fluentui/react-badge",
|
129
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
130
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
131
|
+
},
|
132
|
+
{
|
133
|
+
"author": "olfedias@microsoft.com",
|
134
|
+
"package": "@fluentui/react-badge",
|
135
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
136
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"author": "tkrasniqi@microsoft.com",
|
140
|
+
"package": "@fluentui/react-badge",
|
141
|
+
"commit": "87e12a2e3a9d90b4ff95d3ed333739756d190f6c",
|
142
|
+
"comment": "Updated best practices for long text"
|
143
|
+
}
|
144
|
+
]
|
145
|
+
}
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"date": "Thu, 25 Nov 2021 08:34:11 GMT",
|
149
|
+
"tag": "@fluentui/react-badge_v9.0.0-beta.4",
|
150
|
+
"version": "9.0.0-beta.4",
|
151
|
+
"comments": {
|
152
|
+
"none": [
|
153
|
+
{
|
154
|
+
"author": "lingfangao@hotmail.com",
|
155
|
+
"package": "@fluentui/react-badge",
|
156
|
+
"commit": "cc3fe8e29cbb4b9d03f26e9a06b58d7aa24ffb65",
|
157
|
+
"comment": "Migrate package to use solution style ts-config"
|
158
|
+
}
|
159
|
+
],
|
160
|
+
"prerelease": [
|
161
|
+
{
|
162
|
+
"author": "lingfangao@hotmail.com",
|
163
|
+
"package": "@fluentui/react-badge",
|
164
|
+
"commit": "6183f8ae46233d7ecec2a3d12e7348b7b41eea0c",
|
165
|
+
"comment": "various styling fixes for base Badge component"
|
166
|
+
},
|
16
167
|
{
|
17
168
|
"author": "lingfangao@hotmail.com",
|
18
169
|
"package": "@fluentui/react-badge",
|
19
170
|
"commit": "c5c66cb39e6906f506bf30c9e56c0839f10e2d51",
|
20
171
|
"comment": "Reduce colour set and align with base badge colours"
|
21
172
|
},
|
173
|
+
{
|
174
|
+
"author": "ololubek@microsoft.com",
|
175
|
+
"package": "@fluentui/react-badge",
|
176
|
+
"commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
|
177
|
+
"comment": "update react-icons dependency"
|
178
|
+
},
|
22
179
|
{
|
23
180
|
"author": "lingfangao@hotmail.com",
|
24
181
|
"package": "@fluentui/react-badge",
|
@@ -28,38 +185,38 @@
|
|
28
185
|
{
|
29
186
|
"author": "beachball",
|
30
187
|
"package": "@fluentui/react-badge",
|
31
|
-
"comment": "Bump @fluentui/react-make-styles to
|
32
|
-
"commit": "
|
188
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
189
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
33
190
|
},
|
34
191
|
{
|
35
192
|
"author": "beachball",
|
36
193
|
"package": "@fluentui/react-badge",
|
37
|
-
"comment": "Bump @fluentui/react-theme to
|
38
|
-
"commit": "
|
194
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
|
195
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
39
196
|
},
|
40
197
|
{
|
41
198
|
"author": "beachball",
|
42
199
|
"package": "@fluentui/react-badge",
|
43
|
-
"comment": "Bump @fluentui/react-utilities to
|
44
|
-
"commit": "
|
200
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
201
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
45
202
|
},
|
46
203
|
{
|
47
204
|
"author": "beachball",
|
48
205
|
"package": "@fluentui/react-badge",
|
49
|
-
"comment": "Bump @fluentui/babel-make-styles to
|
50
|
-
"commit": "
|
206
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
207
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
51
208
|
},
|
52
209
|
{
|
53
210
|
"author": "beachball",
|
54
211
|
"package": "@fluentui/react-badge",
|
55
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to
|
56
|
-
"commit": "
|
212
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
213
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
57
214
|
},
|
58
215
|
{
|
59
216
|
"author": "beachball",
|
60
217
|
"package": "@fluentui/react-badge",
|
61
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to
|
62
|
-
"commit": "
|
218
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
219
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
63
220
|
}
|
64
221
|
]
|
65
222
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,25 +1,52 @@
|
|
1
1
|
# Change Log - @fluentui/react-badge
|
2
2
|
|
3
|
-
This log was last generated on Tue,
|
3
|
+
This log was last generated on Tue, 01 Feb 2022 04:14:48 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightlyc49127232120220201.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v0.0.0-nightlyc49127232120220201.1)
|
8
8
|
|
9
|
-
Tue,
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.
|
9
|
+
Tue, 01 Feb 2022 04:14:48 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.4..@fluentui/react-badge_v0.0.0-nightlyc49127232120220201.1)
|
11
11
|
|
12
12
|
### Changes
|
13
13
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) 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
|
+
- Refactor and re-organize Badge styles; no visual changes. ([PR #21271](https://github.com/microsoft/fluentui/pull/21271) by behowell@microsoft.com)
|
17
|
+
- 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)
|
18
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
19
|
+
- update styles to not use CSS shorthands ([PR #20802](https://github.com/microsoft/fluentui/pull/20802) by olfedias@microsoft.com)
|
20
|
+
- fix: use updated tokens for ghost and outline variants ([PR #20893](https://github.com/microsoft/fluentui/pull/20893) by lingfangao@hotmail.com)
|
21
|
+
- 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)
|
22
|
+
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
23
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
24
|
+
- Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
|
25
|
+
- use Griffel packages ([PR #21437](https://github.com/microsoft/fluentui/pull/21437) by olfedias@microsoft.com)
|
26
|
+
- 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)
|
27
|
+
- 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)
|
28
|
+
- fix: Add uniform padding and modify gaps ([PR #20974](https://github.com/microsoft/fluentui/pull/20974) by lingfangao@hotmail.com)
|
29
|
+
- Bump @fluentui/react-theme to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
|
30
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
|
31
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
|
32
|
+
|
33
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.4)
|
34
|
+
|
35
|
+
Thu, 25 Nov 2021 08:34:11 GMT
|
36
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-badge_v9.0.0-beta.3..@fluentui/react-badge_v9.0.0-beta.4)
|
37
|
+
|
38
|
+
### Changes
|
39
|
+
|
40
|
+
- various styling fixes for base Badge component ([PR #20693](https://github.com/microsoft/fluentui/pull/20693) by lingfangao@hotmail.com)
|
15
41
|
- Reduce colour set and align with base badge colours ([PR #20596](https://github.com/microsoft/fluentui/pull/20596) by lingfangao@hotmail.com)
|
42
|
+
- update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
|
16
43
|
- Remove props and return correct presence icons ([PR #20630](https://github.com/microsoft/fluentui/pull/20630) by lingfangao@hotmail.com)
|
17
|
-
- Bump @fluentui/react-make-styles to
|
18
|
-
- Bump @fluentui/react-theme to
|
19
|
-
- Bump @fluentui/react-utilities to
|
20
|
-
- Bump @fluentui/babel-make-styles to
|
21
|
-
- Bump @fluentui/jest-serializer-make-styles to
|
22
|
-
- Bump @fluentui/react-conformance-make-styles to
|
44
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
45
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
46
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
47
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
48
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
49
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
23
50
|
|
24
51
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-badge_v9.0.0-beta.3)
|
25
52
|
|
package/dist/react-badge.d.ts
CHANGED
@@ -1,11 +1,11 @@
|
|
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 {
|
4
|
+
import type { IntrinsicSlotProps } from '@fluentui/react-utilities';
|
5
5
|
import * as React_2 from 'react';
|
6
6
|
|
7
7
|
/**
|
8
|
-
* Define a styled Badge, using the `
|
8
|
+
* Define a styled Badge, using the `useBadge_unstable` hook.
|
9
9
|
*/
|
10
10
|
export declare const Badge: ForwardRefComponent<BadgeProps>;
|
11
11
|
|
@@ -42,14 +42,14 @@ export declare type BadgeCommons = {
|
|
42
42
|
export declare type BadgeProps = ComponentProps<Partial<BadgeSlots>> & Partial<BadgeCommons>;
|
43
43
|
|
44
44
|
export declare type BadgeSlots = {
|
45
|
-
root:
|
46
|
-
icon?:
|
45
|
+
root: Omit<IntrinsicSlotProps<'div'>, 'color'>;
|
46
|
+
icon?: IntrinsicSlotProps<'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 `
|
52
|
+
* Define a styled CounterBadge, using the `useCounterBadge_unstable` hook.
|
53
53
|
*/
|
54
54
|
export declare const CounterBadge: ForwardRefComponent<CounterBadgeProps>;
|
55
55
|
|
@@ -93,18 +93,12 @@ export declare type CounterBadgeCommons = {
|
|
93
93
|
color: Extract<BadgeProps['color'], 'brand' | 'danger' | 'important' | 'informative'>;
|
94
94
|
};
|
95
95
|
|
96
|
-
/**
|
97
|
-
* {@docCategory CounterBadge}
|
98
|
-
*/
|
99
96
|
export declare type CounterBadgeProps = Omit<BadgeProps, 'appearance' | 'shape' | 'color'> & Partial<CounterBadgeCommons>;
|
100
97
|
|
101
|
-
/**
|
102
|
-
* {@docCategory CounterBadge}
|
103
|
-
*/
|
104
98
|
export declare type CounterBadgeState = Omit<BadgeState, 'appearance' | 'shape' | 'color'> & CounterBadgeCommons;
|
105
99
|
|
106
100
|
/**
|
107
|
-
* Define a styled Badge, using the `
|
101
|
+
* Define a styled Badge, using the `useBadge_unstable` hook.
|
108
102
|
*/
|
109
103
|
export declare const PresenceBadge: ForwardRefComponent<PresenceBadgeProps>;
|
110
104
|
|
@@ -130,36 +124,36 @@ export declare type PresenceBadgeState = PresenceBadgeCommons & ComponentState<B
|
|
130
124
|
|
131
125
|
export declare type PresenceBadgeStatus = 'busy' | 'outOfOffice' | 'away' | 'available' | 'offline' | 'doNotDisturb';
|
132
126
|
|
133
|
-
export declare const
|
127
|
+
export declare const renderBadge_unstable: (state: BadgeState) => JSX.Element;
|
134
128
|
|
135
129
|
/**
|
136
130
|
* Returns the props and state required to render the component
|
137
131
|
*/
|
138
|
-
export declare const
|
132
|
+
export declare const useBadge_unstable: (props: BadgeProps, ref: React_2.Ref<HTMLElement>) => BadgeState;
|
139
133
|
|
140
134
|
/**
|
141
135
|
* Applies style classnames to slots
|
142
136
|
*/
|
143
|
-
export declare const
|
137
|
+
export declare const useBadgeStyles_unstable: (state: BadgeState) => BadgeState;
|
144
138
|
|
145
139
|
/**
|
146
140
|
* Returns the props and state required to render the component
|
147
141
|
*/
|
148
|
-
export declare const
|
142
|
+
export declare const useCounterBadge_unstable: (props: CounterBadgeProps, ref: React_2.Ref<HTMLElement>) => CounterBadgeState;
|
149
143
|
|
150
144
|
/**
|
151
145
|
* Applies style classnames to slots
|
152
146
|
*/
|
153
|
-
export declare const
|
147
|
+
export declare const useCounterBadgeStyles_unstable: (state: CounterBadgeState) => CounterBadgeState;
|
154
148
|
|
155
149
|
/**
|
156
150
|
* Returns the props and state required to render the component
|
157
151
|
*/
|
158
|
-
export declare const
|
152
|
+
export declare const usePresenceBadge_unstable: (props: PresenceBadgeProps, ref: React_2.Ref<HTMLElement>) => PresenceBadgeState;
|
159
153
|
|
160
154
|
/**
|
161
155
|
* Applies style classnames to slots
|
162
156
|
*/
|
163
|
-
export declare const
|
157
|
+
export declare const usePresenceBadgeStyles_unstable: (state: PresenceBadgeState) => PresenceBadgeState;
|
164
158
|
|
165
159
|
export { }
|
@@ -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 `
|
4
|
+
* Define a styled Badge, using the `useBadge_unstable` hook.
|
5
5
|
*/
|
6
6
|
export declare const Badge: ForwardRefComponent<BadgeProps>;
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import * as React from 'react';
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import {
|
2
|
+
import { useBadge_unstable } from './useBadge';
|
3
|
+
import { useBadgeStyles_unstable } from './useBadgeStyles';
|
4
|
+
import { renderBadge_unstable } from './renderBadge';
|
5
5
|
/**
|
6
|
-
* Define a styled Badge, using the `
|
6
|
+
* Define a styled Badge, using the `useBadge_unstable` hook.
|
7
7
|
*/
|
8
8
|
|
9
9
|
export const Badge = /*#__PURE__*/React.forwardRef((props, ref) => {
|
10
|
-
const state =
|
11
|
-
|
12
|
-
return
|
10
|
+
const state = useBadge_unstable(props, ref);
|
11
|
+
useBadgeStyles_unstable(state);
|
12
|
+
return renderBadge_unstable(state);
|
13
13
|
});
|
14
14
|
Badge.displayName = 'Badge';
|
15
15
|
//# sourceMappingURL=Badge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
1
|
+
{"version":3,"sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,iBAAT,QAAkC,YAAlC;AACA,SAAS,uBAAT,QAAwC,kBAAxC;AACA,SAAS,oBAAT,QAAqC,eAArC;AAIA;;AAEG;;AACH,OAAO,MAAM,KAAK,gBAAoC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACpF,QAAM,KAAK,GAAG,iBAAiB,CAAC,KAAD,EAAQ,GAAR,CAA/B;AACA,EAAA,uBAAuB,CAAC,KAAD,CAAvB;AAEA,SAAO,oBAAoB,CAAC,KAAD,CAA3B;AACD,CALqD,CAA/C;AAOP,KAAK,CAAC,WAAN,GAAoB,OAApB","sourceRoot":""}
|
@@ -1,8 +1,7 @@
|
|
1
|
-
import
|
2
|
-
import type { ComponentProps, ComponentState, ObjectShorthandProps } from '@fluentui/react-utilities';
|
1
|
+
import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
|
3
2
|
export declare type BadgeSlots = {
|
4
|
-
root:
|
5
|
-
icon?:
|
3
|
+
root: Omit<IntrinsicSlotProps<'div'>, 'color'>;
|
4
|
+
icon?: IntrinsicSlotProps<'span'>;
|
6
5
|
};
|
7
6
|
export declare type BadgeCommons = {
|
8
7
|
/**
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import type { BadgeState } from './Badge.types';
|
2
|
-
export declare const
|
2
|
+
export declare const renderBadge_unstable: (state: BadgeState) => JSX.Element;
|
@@ -1,10 +1,13 @@
|
|
1
1
|
import * as React from 'react';
|
2
2
|
import { getSlots } from '@fluentui/react-utilities';
|
3
|
-
export const
|
3
|
+
export const renderBadge_unstable = state => {
|
4
4
|
const {
|
5
5
|
slots,
|
6
6
|
slotProps
|
7
|
-
} = getSlots(state
|
8
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
7
|
+
} = getSlots(state);
|
8
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
9
|
+
}, state.iconPosition === 'before' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
10
|
+
}), state.root.children, state.iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
11
|
+
}));
|
9
12
|
};
|
10
13
|
//# sourceMappingURL=renderBadge.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/renderBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA,OAAO,MAAM,
|
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,oBAAoB,GAAI,KAAD,IAAsB;AACxD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAa,KAAb,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":""}
|
@@ -3,4 +3,4 @@ import type { BadgeProps, BadgeState } from './Badge.types';
|
|
3
3
|
/**
|
4
4
|
* Returns the props and state required to render the component
|
5
5
|
*/
|
6
|
-
export declare const
|
6
|
+
export declare const useBadge_unstable: (props: BadgeProps, ref: React.Ref<HTMLElement>) => BadgeState;
|
@@ -3,7 +3,7 @@ import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utiliti
|
|
3
3
|
* Returns the props and state required to render the component
|
4
4
|
*/
|
5
5
|
|
6
|
-
export const
|
6
|
+
export const useBadge_unstable = (props, ref) => {
|
7
7
|
const {
|
8
8
|
shape = 'circular',
|
9
9
|
size = 'medium',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Badge/useBadge.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;AAEG;;AACH,OAAO,MAAM,
|
1
|
+
{"version":3,"sources":["../../../src/components/Badge/useBadge.ts"],"names":[],"mappings":"AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;AAEG;;AACH,OAAO,MAAM,iBAAiB,GAAG,CAAC,KAAD,EAAoB,GAApB,KAA+D;AAC9F,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":""}
|