@fluentui/react-button 9.0.0-rc.9 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.json +307 -1
- package/CHANGELOG.md +92 -2
- package/README.md +81 -19
- package/dist/index.d.ts +32 -55
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/Button/index.js +1 -3
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.js +1 -4
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.js +146 -68
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib/components/CompoundButton/index.js +1 -3
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +47 -35
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +2 -1
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib/components/MenuButton/index.js +1 -3
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.js +24 -17
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js +1 -1
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/index.js +1 -3
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +1 -5
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js +15 -17
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib/components/ToggleButton/index.js +1 -3
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js +93 -9
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib/index.js +5 -10
- package/lib/index.js.map +1 -1
- package/lib/utils/useToggleState.js.map +1 -1
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/index.js +1 -9
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +1 -4
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.js +147 -69
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +1 -9
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +49 -37
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js +2 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.js +1 -9
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +26 -18
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/index.js +1 -9
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +1 -5
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +16 -18
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +1 -9
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +95 -10
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/index.js +1 -36
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/useToggleState.js.map +1 -1
- package/package.json +10 -12
package/CHANGELOG.json
CHANGED
@@ -2,7 +2,313 @@
|
|
2
2
|
"name": "@fluentui/react-button",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
5
|
+
"date": "Tue, 28 Jun 2022 15:08:38 GMT",
|
6
|
+
"tag": "@fluentui/react-button_v9.0.0",
|
7
|
+
"version": "9.0.0",
|
8
|
+
"comments": {
|
9
|
+
"prerelease": [
|
10
|
+
{
|
11
|
+
"author": "lingfangao@hotmail.com",
|
12
|
+
"package": "@fluentui/react-button",
|
13
|
+
"commit": "675acea49c97f10837ddee9b8c4350ca27750125",
|
14
|
+
"comment": "Bump Griffel dependencies"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
18
|
+
"package": "@fluentui/react-button",
|
19
|
+
"commit": "ce6fe7e35398b3ca4e11a26b777fd9ba46529c72",
|
20
|
+
"comment": "README and migration guide cleanup."
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
24
|
+
"package": "@fluentui/react-button",
|
25
|
+
"commit": "31b9f89bcd3ffc2b0719b0b55643ccf92ff6a686",
|
26
|
+
"comment": "Button: Adding missing forced color adjust overrides."
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "lingfangao@hotmail.com",
|
30
|
+
"package": "@fluentui/react-button",
|
31
|
+
"commit": "e0aabd850b15adf9c151ebd4e332f7c50ad6cfdf",
|
32
|
+
"comment": "Update 9.0.0-rc dependencies to use caret range"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
36
|
+
"package": "@fluentui/react-button",
|
37
|
+
"commit": "d32031b50748baff9cb9592ca360ef8e54f61ab8",
|
38
|
+
"comment": "Button: Fixing hover styles in High Contrast mode."
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "olfedias@microsoft.com",
|
42
|
+
"package": "@fluentui/react-button",
|
43
|
+
"commit": "82bd30dd41ad58df1f325e9b721200ed15d674a2",
|
44
|
+
"comment": "chore: Update @fluentui/react-icons to latest version"
|
45
|
+
}
|
46
|
+
],
|
47
|
+
"none": [
|
48
|
+
{
|
49
|
+
"author": "mgodbolt@microsoft.com",
|
50
|
+
"package": "@fluentui/react-button",
|
51
|
+
"commit": "19377b1b434b3fd25c7d2a4be1c548bb553803a1",
|
52
|
+
"comment": "chore: Moving button stories to folder with index entry."
|
53
|
+
}
|
54
|
+
],
|
55
|
+
"patch": [
|
56
|
+
{
|
57
|
+
"author": "lingfangao@hotmail.com",
|
58
|
+
"package": "@fluentui/react-button",
|
59
|
+
"commit": "c7b1348bdad7aa883c29bfbc96ef2a32e6ebc7dd",
|
60
|
+
"comment": "feat: Initial 9.0.0 release"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"author": "beachball",
|
64
|
+
"package": "@fluentui/react-button",
|
65
|
+
"comment": "Bump @fluentui/keyboard-keys to v9.0.0",
|
66
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"author": "beachball",
|
70
|
+
"package": "@fluentui/react-button",
|
71
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0",
|
72
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"author": "beachball",
|
76
|
+
"package": "@fluentui/react-button",
|
77
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0",
|
78
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"author": "beachball",
|
82
|
+
"package": "@fluentui/react-button",
|
83
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0",
|
84
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"author": "beachball",
|
88
|
+
"package": "@fluentui/react-button",
|
89
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0",
|
90
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"author": "beachball",
|
94
|
+
"package": "@fluentui/react-button",
|
95
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9",
|
96
|
+
"commit": "ba6c5d651559b91c815429c9a9357c4d5a390f3e"
|
97
|
+
}
|
98
|
+
]
|
99
|
+
}
|
100
|
+
},
|
101
|
+
{
|
102
|
+
"date": "Thu, 23 Jun 2022 14:25:31 GMT",
|
103
|
+
"tag": "@fluentui/react-button_v9.0.0-rc.14",
|
104
|
+
"version": "9.0.0-rc.14",
|
105
|
+
"comments": {
|
106
|
+
"prerelease": [
|
107
|
+
{
|
108
|
+
"author": "beachball",
|
109
|
+
"package": "@fluentui/react-button",
|
110
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.14",
|
111
|
+
"commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
|
112
|
+
},
|
113
|
+
{
|
114
|
+
"author": "beachball",
|
115
|
+
"package": "@fluentui/react-button",
|
116
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.10",
|
117
|
+
"commit": "b00790b7a0ea1473d8c3cc49c7ca0088002957ed"
|
118
|
+
}
|
119
|
+
]
|
120
|
+
}
|
121
|
+
},
|
122
|
+
{
|
123
|
+
"date": "Tue, 31 May 2022 21:28:36 GMT",
|
124
|
+
"tag": "@fluentui/react-button_v9.0.0-rc.13",
|
125
|
+
"version": "9.0.0-rc.13",
|
126
|
+
"comments": {
|
127
|
+
"prerelease": [
|
128
|
+
{
|
129
|
+
"author": "olfedias@microsoft.com",
|
130
|
+
"package": "@fluentui/react-button",
|
131
|
+
"commit": "0a5e9fa77a72eecafdd07034ccdc0b95fd49877c",
|
132
|
+
"comment": "chore: Update Griffel to latest version"
|
133
|
+
},
|
134
|
+
{
|
135
|
+
"author": "beachball",
|
136
|
+
"package": "@fluentui/react-button",
|
137
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-rc.10",
|
138
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
139
|
+
},
|
140
|
+
{
|
141
|
+
"author": "beachball",
|
142
|
+
"package": "@fluentui/react-button",
|
143
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.13",
|
144
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"author": "beachball",
|
148
|
+
"package": "@fluentui/react-button",
|
149
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
|
150
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"author": "beachball",
|
154
|
+
"package": "@fluentui/react-button",
|
155
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8",
|
156
|
+
"commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
|
157
|
+
}
|
158
|
+
]
|
159
|
+
}
|
160
|
+
},
|
161
|
+
{
|
162
|
+
"date": "Thu, 26 May 2022 21:01:23 GMT",
|
163
|
+
"tag": "@fluentui/react-button_v9.0.0-rc.12",
|
164
|
+
"version": "9.0.0-rc.12",
|
165
|
+
"comments": {
|
166
|
+
"prerelease": [
|
167
|
+
{
|
168
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
169
|
+
"package": "@fluentui/react-button",
|
170
|
+
"commit": "cc2a9d0f9b722f68a54da026ab320e3be22c21dd",
|
171
|
+
"comment": "ToggleButton: Differentiating hover and checked styles."
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
175
|
+
"package": "@fluentui/react-button",
|
176
|
+
"commit": "2c84c4f1ad43819325ee0aafa57d42a1f8239113",
|
177
|
+
"comment": "ToggleButton: Apply thicker border width to checked outline toggle buttons."
|
178
|
+
},
|
179
|
+
{
|
180
|
+
"author": "beachball",
|
181
|
+
"package": "@fluentui/react-button",
|
182
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.12",
|
183
|
+
"commit": "3cf55ce998048554bf6a550de44403843ea8ede0"
|
184
|
+
}
|
185
|
+
]
|
186
|
+
}
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"date": "Mon, 23 May 2022 18:56:41 GMT",
|
190
|
+
"tag": "@fluentui/react-button_v9.0.0-rc.11",
|
191
|
+
"version": "9.0.0-rc.11",
|
192
|
+
"comments": {
|
193
|
+
"prerelease": [
|
194
|
+
{
|
195
|
+
"author": "esteban.230@hotmail.com",
|
196
|
+
"package": "@fluentui/react-button",
|
197
|
+
"commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
|
198
|
+
"comment": "Removing <componentName>ClassName exports."
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
202
|
+
"package": "@fluentui/react-button",
|
203
|
+
"commit": "5ed22515a7542b432ed694f22606ac3718d501cb",
|
204
|
+
"comment": "Removing deprecated block prop from all button components."
|
205
|
+
},
|
206
|
+
{
|
207
|
+
"author": "beachball",
|
208
|
+
"package": "@fluentui/react-button",
|
209
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.11",
|
210
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
211
|
+
},
|
212
|
+
{
|
213
|
+
"author": "beachball",
|
214
|
+
"package": "@fluentui/react-button",
|
215
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.9",
|
216
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
217
|
+
},
|
218
|
+
{
|
219
|
+
"author": "beachball",
|
220
|
+
"package": "@fluentui/react-button",
|
221
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7",
|
222
|
+
"commit": "d4f80b17690e962d6a24e68959608d1ffe84aef6"
|
223
|
+
}
|
224
|
+
],
|
225
|
+
"none": [
|
226
|
+
{
|
227
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
228
|
+
"package": "@fluentui/react-button",
|
229
|
+
"commit": "aa1f446e037786d74a3c14f0bee09dbcf403a929",
|
230
|
+
"comment": "Improving README and updating spec and migration guide."
|
231
|
+
}
|
232
|
+
]
|
233
|
+
}
|
234
|
+
},
|
235
|
+
{
|
236
|
+
"date": "Mon, 23 May 2022 12:14:03 GMT",
|
237
|
+
"tag": "@fluentui/react-button_v9.0.0-rc.10",
|
238
|
+
"version": "9.0.0-rc.10",
|
239
|
+
"comments": {
|
240
|
+
"prerelease": [
|
241
|
+
{
|
242
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
243
|
+
"package": "@fluentui/react-button",
|
244
|
+
"commit": "6cb084a7afe7d662dc2d9d65b91474f132566390",
|
245
|
+
"comment": "Using spacing tokens for button components."
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
249
|
+
"package": "@fluentui/react-button",
|
250
|
+
"commit": "29f73d77cfdc20a123cb64115fb1a926300d216e",
|
251
|
+
"comment": "Removing flex gap from button components and fixing spacing to better align with design spec."
|
252
|
+
},
|
253
|
+
{
|
254
|
+
"author": "olfedias@microsoft.com",
|
255
|
+
"package": "@fluentui/react-button",
|
256
|
+
"commit": "f120fe9160ad7311a87af0cfacd8d2fb26275e34",
|
257
|
+
"comment": "chore: Update Griffel to latest version"
|
258
|
+
},
|
259
|
+
{
|
260
|
+
"author": "olfedias@microsoft.com",
|
261
|
+
"package": "@fluentui/react-button",
|
262
|
+
"commit": "60804cec07a495b8a5d1fc66338bf0443b212144",
|
263
|
+
"comment": "chore: Update Griffel to latest version"
|
264
|
+
},
|
265
|
+
{
|
266
|
+
"author": "humberto_makoto@hotmail.com",
|
267
|
+
"package": "@fluentui/react-button",
|
268
|
+
"commit": "606dca4330f71a3a3ac466a30b3db1664ad0c55d",
|
269
|
+
"comment": "Removing Common types from all button components."
|
270
|
+
},
|
271
|
+
{
|
272
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
273
|
+
"package": "@fluentui/react-button",
|
274
|
+
"commit": "be57c96ae39842da3bc38740b7823eeee68cc3ea",
|
275
|
+
"comment": "Removing ToggleButtonCommons type in @fluentui/react-button."
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"author": "beachball",
|
279
|
+
"package": "@fluentui/react-button",
|
280
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-rc.9",
|
281
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"author": "beachball",
|
285
|
+
"package": "@fluentui/react-button",
|
286
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.10",
|
287
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"author": "beachball",
|
291
|
+
"package": "@fluentui/react-button",
|
292
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.8",
|
293
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
294
|
+
},
|
295
|
+
{
|
296
|
+
"author": "beachball",
|
297
|
+
"package": "@fluentui/react-button",
|
298
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
|
299
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
300
|
+
},
|
301
|
+
{
|
302
|
+
"author": "beachball",
|
303
|
+
"package": "@fluentui/react-button",
|
304
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6",
|
305
|
+
"commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
|
306
|
+
}
|
307
|
+
]
|
308
|
+
}
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"date": "Thu, 05 May 2022 18:26:29 GMT",
|
6
312
|
"tag": "@fluentui/react-button_v9.0.0-rc.9",
|
7
313
|
"version": "9.0.0-rc.9",
|
8
314
|
"comments": {
|
package/CHANGELOG.md
CHANGED
@@ -1,12 +1,102 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 28 Jun 2022 15:08:38 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
+
## [9.0.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0)
|
8
|
+
|
9
|
+
Tue, 28 Jun 2022 15:08:38 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.14..@fluentui/react-button_v9.0.0)
|
11
|
+
|
12
|
+
### Patches
|
13
|
+
|
14
|
+
- feat: Initial 9.0.0 release ([PR #23733](https://github.com/microsoft/fluentui/pull/23733) by lingfangao@hotmail.com)
|
15
|
+
- Bump @fluentui/keyboard-keys to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
16
|
+
- Bump @fluentui/react-aria to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
17
|
+
- Bump @fluentui/react-tabster to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
18
|
+
- Bump @fluentui/react-theme to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
19
|
+
- Bump @fluentui/react-utilities to v9.0.0 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
20
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.9 ([commit](https://github.com/microsoft/fluentui/commit/ba6c5d651559b91c815429c9a9357c4d5a390f3e) by beachball)
|
21
|
+
|
22
|
+
### Changes
|
23
|
+
|
24
|
+
- Bump Griffel dependencies ([PR #23688](https://github.com/microsoft/fluentui/pull/23688) by lingfangao@hotmail.com)
|
25
|
+
- README and migration guide cleanup. ([PR #23395](https://github.com/microsoft/fluentui/pull/23395) by Humberto.Morimoto@microsoft.com)
|
26
|
+
- Button: Adding missing forced color adjust overrides. ([PR #23387](https://github.com/microsoft/fluentui/pull/23387) by Humberto.Morimoto@microsoft.com)
|
27
|
+
- Update 9.0.0-rc dependencies to use caret range ([PR #23732](https://github.com/microsoft/fluentui/pull/23732) by lingfangao@hotmail.com)
|
28
|
+
- Button: Fixing hover styles in High Contrast mode. ([PR #23384](https://github.com/microsoft/fluentui/pull/23384) by Humberto.Morimoto@microsoft.com)
|
29
|
+
- chore: Update @fluentui/react-icons to latest version ([PR #23459](https://github.com/microsoft/fluentui/pull/23459) by olfedias@microsoft.com)
|
30
|
+
|
31
|
+
## [9.0.0-rc.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.14)
|
32
|
+
|
33
|
+
Thu, 23 Jun 2022 14:25:31 GMT
|
34
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.13..@fluentui/react-button_v9.0.0-rc.14)
|
35
|
+
|
36
|
+
### Changes
|
37
|
+
|
38
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.14 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
|
39
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.10 ([PR #23608](https://github.com/microsoft/fluentui/pull/23608) by beachball)
|
40
|
+
|
41
|
+
## [9.0.0-rc.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.13)
|
42
|
+
|
43
|
+
Tue, 31 May 2022 21:28:36 GMT
|
44
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.12..@fluentui/react-button_v9.0.0-rc.13)
|
45
|
+
|
46
|
+
### Changes
|
47
|
+
|
48
|
+
- chore: Update Griffel to latest version ([PR #23275](https://github.com/microsoft/fluentui/pull/23275) by olfedias@microsoft.com)
|
49
|
+
- Bump @fluentui/react-aria to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
50
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.13 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
51
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
52
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.8 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
|
53
|
+
|
54
|
+
## [9.0.0-rc.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.12)
|
55
|
+
|
56
|
+
Thu, 26 May 2022 21:01:23 GMT
|
57
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.11..@fluentui/react-button_v9.0.0-rc.12)
|
58
|
+
|
59
|
+
### Changes
|
60
|
+
|
61
|
+
- ToggleButton: Differentiating hover and checked styles. ([PR #23209](https://github.com/microsoft/fluentui/pull/23209) by Humberto.Morimoto@microsoft.com)
|
62
|
+
- ToggleButton: Apply thicker border width to checked outline toggle buttons. ([PR #23207](https://github.com/microsoft/fluentui/pull/23207) by Humberto.Morimoto@microsoft.com)
|
63
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.12 ([PR #23267](https://github.com/microsoft/fluentui/pull/23267) by beachball)
|
64
|
+
|
65
|
+
## [9.0.0-rc.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.11)
|
66
|
+
|
67
|
+
Mon, 23 May 2022 18:56:41 GMT
|
68
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.10..@fluentui/react-button_v9.0.0-rc.11)
|
69
|
+
|
70
|
+
### Changes
|
71
|
+
|
72
|
+
- Removing <componentName>ClassName exports. ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by esteban.230@hotmail.com)
|
73
|
+
- Removing deprecated block prop from all button components. ([PR #23092](https://github.com/microsoft/fluentui/pull/23092) by Humberto.Morimoto@microsoft.com)
|
74
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.11 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
75
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.9 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
76
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.7 ([PR #23146](https://github.com/microsoft/fluentui/pull/23146) by beachball)
|
77
|
+
|
78
|
+
## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.10)
|
79
|
+
|
80
|
+
Mon, 23 May 2022 12:14:03 GMT
|
81
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.9..@fluentui/react-button_v9.0.0-rc.10)
|
82
|
+
|
83
|
+
### Changes
|
84
|
+
|
85
|
+
- Using spacing tokens for button components. ([PR #23076](https://github.com/microsoft/fluentui/pull/23076) by Humberto.Morimoto@microsoft.com)
|
86
|
+
- Removing flex gap from button components and fixing spacing to better align with design spec. ([PR #23091](https://github.com/microsoft/fluentui/pull/23091) by Humberto.Morimoto@microsoft.com)
|
87
|
+
- chore: Update Griffel to latest version ([PR #22894](https://github.com/microsoft/fluentui/pull/22894) by olfedias@microsoft.com)
|
88
|
+
- chore: Update Griffel to latest version ([PR #23029](https://github.com/microsoft/fluentui/pull/23029) by olfedias@microsoft.com)
|
89
|
+
- Removing Common types from all button components. ([PR #22904](https://github.com/microsoft/fluentui/pull/22904) by humberto_makoto@hotmail.com)
|
90
|
+
- Removing ToggleButtonCommons type in @fluentui/react-button. ([PR #23067](https://github.com/microsoft/fluentui/pull/23067) by Humberto.Morimoto@microsoft.com)
|
91
|
+
- Bump @fluentui/react-aria to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
92
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.10 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
93
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.8 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
94
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
95
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.6 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
|
96
|
+
|
7
97
|
## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.9)
|
8
98
|
|
9
|
-
Thu, 05 May 2022 18:
|
99
|
+
Thu, 05 May 2022 18:26:29 GMT
|
10
100
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.8..@fluentui/react-button_v9.0.0-rc.9)
|
11
101
|
|
12
102
|
### Changes
|
package/README.md
CHANGED
@@ -1,36 +1,98 @@
|
|
1
1
|
# @fluentui/react-button
|
2
2
|
|
3
|
-
**Button components for [Fluent UI React](https://
|
3
|
+
**Button components for [Fluent UI React](https://aka.ms/fluentui-storybook)**
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
- Buttons enable users to trigger an action or event, such as submitting a form, opening a dialog, canceling an action, or performing a delete operation.
|
6
|
+
- CompoundButtons are buttons that can have secondary content that adds extra information to the user.
|
7
|
+
- MenuButtons are buttons that have a chevron icon after the button contents and are usually clicked to open/close menus.
|
8
|
+
- SplitButtons are a grouping of two interactive surfaces where interacting with the first one triggers a primary action, while interacting with the second one opens a menu with secondary actions.
|
9
|
+
- ToggleButtons are buttons that toggle between two defined states when triggered.
|
10
10
|
|
11
11
|
## Usage
|
12
12
|
|
13
13
|
To import Button:
|
14
14
|
|
15
15
|
```js
|
16
|
-
import { Button } from '@fluentui/react-
|
16
|
+
import { Button, CompoundButton, MenuButton, SplitButton, ToggleButton } from '@fluentui/react-components';
|
17
17
|
```
|
18
18
|
|
19
|
-
|
19
|
+
### Examples
|
20
20
|
|
21
|
-
|
22
|
-
|
21
|
+
### Button
|
22
|
+
|
23
|
+
```jsx
|
24
|
+
<Button>Submit</Button>
|
25
|
+
<Button icon={<SVGIcon />} />
|
26
|
+
<Button icon={<SVGIcon />}>Submit</Button>
|
27
|
+
<Button icon={<SVGIcon />} iconPosition="after">Submit</Button>
|
28
|
+
<Button appearance="primary">Submit</Button>
|
29
|
+
<Button disabled>Submit</Button>
|
30
|
+
<Button size="small">Submit</Button>
|
31
|
+
<Button size="large">Submit</Button>
|
23
32
|
```
|
24
33
|
|
25
|
-
###
|
34
|
+
### CompoundButton
|
26
35
|
|
27
36
|
```jsx
|
28
|
-
<
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
37
|
+
<CompoundButton icon={<CalendarMonth />} secondaryContent="Secondary content" {...props}>
|
38
|
+
Example
|
39
|
+
</CompoundButton>
|
40
|
+
```
|
41
|
+
|
42
|
+
### MenuButton
|
43
|
+
|
44
|
+
```jsx
|
45
|
+
<Menu>
|
46
|
+
<MenuTrigger>
|
47
|
+
<MenuButton>Example</MenuButton>
|
48
|
+
</MenuTrigger>
|
49
|
+
|
50
|
+
<MenuPopover>
|
51
|
+
<MenuList>
|
52
|
+
<MenuItem>Item a</MenuItem>
|
53
|
+
<MenuItem>Item b</MenuItem>
|
54
|
+
</MenuList>
|
55
|
+
</MenuPopover>
|
56
|
+
</Menu>
|
57
|
+
```
|
58
|
+
|
59
|
+
### SplitButton
|
60
|
+
|
61
|
+
```jsx
|
62
|
+
<Menu positioning="below-end">
|
63
|
+
<MenuTrigger>
|
64
|
+
{(triggerProps: MenuButtonProps) => <SplitButton menuButton={triggerProps}>Example</SplitButton>}
|
65
|
+
</MenuTrigger>
|
66
|
+
|
67
|
+
<MenuPopover>
|
68
|
+
<MenuList>
|
69
|
+
<MenuItem>Item a</MenuItem>
|
70
|
+
<MenuItem>Item b</MenuItem>
|
71
|
+
</MenuList>
|
72
|
+
</MenuPopover>
|
73
|
+
</Menu>
|
74
|
+
```
|
75
|
+
|
76
|
+
### ToggleButton
|
77
|
+
|
78
|
+
```jsx
|
79
|
+
<ToggleButton>Toggle volume</ToggleButton>
|
80
|
+
<ToggleButton defaultChecked={true}>Toggle volume</ToggleButton>
|
81
|
+
<ToggleButton checked={true}>Toggle volume</ToggleButton>
|
82
|
+
<ToggleButton checked={false}>Toggle volume</ToggleButton>
|
36
83
|
```
|
84
|
+
|
85
|
+
See [Fluent UI Storybook](https://aka.ms/fluentui-storybook) for more detailed usage examples.
|
86
|
+
|
87
|
+
Alternatively, run Storybook locally with:
|
88
|
+
|
89
|
+
1. `yarn start`
|
90
|
+
2. Select `react-button` from the list.
|
91
|
+
|
92
|
+
### Specification
|
93
|
+
|
94
|
+
See [SPEC.md](./src/components/Button/SPEC.md).
|
95
|
+
|
96
|
+
### Migration Guide
|
97
|
+
|
98
|
+
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./src/components/Button/MIGRATION.md) for guidance on updating to the latest component implementations.
|