@fluentui/react-button 0.0.0-nightly0025eeb82020211108.1 → 0.0.0-nightly003de9a95220220111.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.
- package/CHANGELOG.json +184 -26
- package/CHANGELOG.md +51 -14
- package/dist/react-button.d.ts +4 -1
- package/lib/components/Button/renderButton.js +4 -1
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.js +2 -1
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.js +95 -60
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js +6 -1
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +5 -3
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.d.ts +5 -1
- package/lib/components/MenuButton/renderMenuButton.js +4 -1
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.js +6 -2
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.js +4 -1
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js +1 -0
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js +32 -31
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.js +4 -1
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +2 -1
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.js +95 -59
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +6 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +5 -2
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +5 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +4 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js +5 -1
- package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +4 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +2 -0
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +32 -30
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/package.json +14 -15
- 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,17 +2,175 @@
|
|
2
2
|
"name": "@fluentui/react-button",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "
|
6
|
-
"tag": "@fluentui/react-button_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Tue, 11 Jan 2022 04:18:35 GMT",
|
6
|
+
"tag": "@fluentui/react-button_v0.0.0-nightly003de9a95220220111.1",
|
7
|
+
"version": "0.0.0-nightly003de9a95220220111.1",
|
8
8
|
"comments": {
|
9
9
|
"prerelease": [
|
10
10
|
{
|
11
11
|
"author": "email not defined",
|
12
12
|
"package": "@fluentui/react-button",
|
13
|
-
"commit": "
|
13
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "ololubek@microsoft.com",
|
18
|
+
"package": "@fluentui/react-button",
|
19
|
+
"commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
|
20
|
+
"comment": "Update react-icons usage to resizable icons"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "ololubek@microsoft.com",
|
24
|
+
"package": "@fluentui/react-button",
|
25
|
+
"commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
|
26
|
+
"comment": "(fix): Update react-icons dependency to latest version"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
30
|
+
"package": "@fluentui/react-button",
|
31
|
+
"commit": "0a4c1a9af2f8bb29c3a3544f06964a8554cd692a",
|
32
|
+
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "olfedias@microsoft.com",
|
36
|
+
"package": "@fluentui/react-button",
|
37
|
+
"commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
|
38
|
+
"comment": "update styles to not use CSS shorthands"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
42
|
+
"package": "@fluentui/react-button",
|
43
|
+
"commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
|
44
|
+
"comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
|
45
|
+
},
|
46
|
+
{
|
47
|
+
"author": "beachball",
|
48
|
+
"package": "@fluentui/react-button",
|
49
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly003de9a95220220111.1",
|
50
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
51
|
+
},
|
52
|
+
{
|
53
|
+
"author": "beachball",
|
54
|
+
"package": "@fluentui/react-button",
|
55
|
+
"comment": "Bump @fluentui/react-aria to v0.0.0-nightly003de9a95220220111.1",
|
56
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"author": "beachball",
|
60
|
+
"package": "@fluentui/react-button",
|
61
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly003de9a95220220111.1",
|
62
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
63
|
+
},
|
64
|
+
{
|
65
|
+
"author": "beachball",
|
66
|
+
"package": "@fluentui/react-button",
|
67
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly003de9a95220220111.1",
|
68
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
69
|
+
},
|
70
|
+
{
|
71
|
+
"author": "beachball",
|
72
|
+
"package": "@fluentui/react-button",
|
73
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly003de9a95220220111.1",
|
74
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
75
|
+
},
|
76
|
+
{
|
77
|
+
"author": "beachball",
|
78
|
+
"package": "@fluentui/react-button",
|
79
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly003de9a95220220111.1",
|
80
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
81
|
+
},
|
82
|
+
{
|
83
|
+
"author": "beachball",
|
84
|
+
"package": "@fluentui/react-button",
|
85
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly003de9a95220220111.1",
|
86
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
87
|
+
},
|
88
|
+
{
|
89
|
+
"author": "beachball",
|
90
|
+
"package": "@fluentui/react-button",
|
91
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1",
|
92
|
+
"commit": "60c7bd46e2d01b8e309739827125609a2621d863"
|
93
|
+
}
|
94
|
+
],
|
95
|
+
"none": [
|
96
|
+
{
|
97
|
+
"author": "tkrasniqi@microsoft.com",
|
98
|
+
"package": "@fluentui/react-button",
|
99
|
+
"commit": "ca886fed17b4a73b9bb3b5a9e54d143062cbfa99",
|
100
|
+
"comment": "Migration to new tsconfig"
|
101
|
+
}
|
102
|
+
]
|
103
|
+
}
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"date": "Thu, 25 Nov 2021 08:34:12 GMT",
|
107
|
+
"tag": "@fluentui/react-button_v9.0.0-beta.5",
|
108
|
+
"version": "9.0.0-beta.5",
|
109
|
+
"comments": {
|
110
|
+
"prerelease": [
|
111
|
+
{
|
112
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
113
|
+
"package": "@fluentui/react-button",
|
114
|
+
"commit": "8825574c42f414c26f9d49238be02ca7dcb44cfe",
|
115
|
+
"comment": "MenuButton: Removing tight coupling with Menu by replicating type locally."
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"author": "ololubek@microsoft.com",
|
119
|
+
"package": "@fluentui/react-button",
|
120
|
+
"commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
|
121
|
+
"comment": "update react-icons dependency"
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"author": "beachball",
|
125
|
+
"package": "@fluentui/react-button",
|
126
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-beta.4",
|
127
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
128
|
+
},
|
129
|
+
{
|
130
|
+
"author": "beachball",
|
131
|
+
"package": "@fluentui/react-button",
|
132
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
133
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"author": "beachball",
|
137
|
+
"package": "@fluentui/react-button",
|
138
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
139
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
140
|
+
},
|
141
|
+
{
|
142
|
+
"author": "beachball",
|
143
|
+
"package": "@fluentui/react-button",
|
144
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
145
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"author": "beachball",
|
149
|
+
"package": "@fluentui/react-button",
|
150
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
151
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
152
|
+
},
|
153
|
+
{
|
154
|
+
"author": "beachball",
|
155
|
+
"package": "@fluentui/react-button",
|
156
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
157
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"author": "beachball",
|
161
|
+
"package": "@fluentui/react-button",
|
162
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
163
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
164
|
+
}
|
165
|
+
]
|
166
|
+
}
|
167
|
+
},
|
168
|
+
{
|
169
|
+
"date": "Fri, 12 Nov 2021 13:25:16 GMT",
|
170
|
+
"tag": "@fluentui/react-button_v9.0.0-beta.4",
|
171
|
+
"version": "9.0.0-beta.4",
|
172
|
+
"comments": {
|
173
|
+
"prerelease": [
|
16
174
|
{
|
17
175
|
"author": "olfedias@microsoft.com",
|
18
176
|
"package": "@fluentui/react-button",
|
@@ -40,56 +198,50 @@
|
|
40
198
|
{
|
41
199
|
"author": "beachball",
|
42
200
|
"package": "@fluentui/react-button",
|
43
|
-
"comment": "Bump @fluentui/
|
44
|
-
"commit": "
|
45
|
-
},
|
46
|
-
{
|
47
|
-
"author": "beachball",
|
48
|
-
"package": "@fluentui/react-button",
|
49
|
-
"comment": "Bump @fluentui/react-aria to v0.0.0-nightly0025eeb82020211108.1",
|
50
|
-
"commit": "e827ff6b79e47c8702651bbdc55176c0f505f4e9"
|
201
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-beta.3",
|
202
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
51
203
|
},
|
52
204
|
{
|
53
205
|
"author": "beachball",
|
54
206
|
"package": "@fluentui/react-button",
|
55
|
-
"comment": "Bump @fluentui/react-make-styles to
|
56
|
-
"commit": "
|
207
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
208
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
57
209
|
},
|
58
210
|
{
|
59
211
|
"author": "beachball",
|
60
212
|
"package": "@fluentui/react-button",
|
61
|
-
"comment": "Bump @fluentui/react-tabster to
|
62
|
-
"commit": "
|
213
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
214
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
63
215
|
},
|
64
216
|
{
|
65
217
|
"author": "beachball",
|
66
218
|
"package": "@fluentui/react-button",
|
67
|
-
"comment": "Bump @fluentui/react-utilities to
|
68
|
-
"commit": "
|
219
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
220
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
69
221
|
},
|
70
222
|
{
|
71
223
|
"author": "beachball",
|
72
224
|
"package": "@fluentui/react-button",
|
73
|
-
"comment": "Bump @fluentui/babel-make-styles to
|
74
|
-
"commit": "
|
225
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
226
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
75
227
|
},
|
76
228
|
{
|
77
229
|
"author": "beachball",
|
78
230
|
"package": "@fluentui/react-button",
|
79
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to
|
80
|
-
"commit": "
|
231
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
232
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
81
233
|
},
|
82
234
|
{
|
83
235
|
"author": "beachball",
|
84
236
|
"package": "@fluentui/react-button",
|
85
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to
|
86
|
-
"commit": "
|
237
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
238
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
87
239
|
},
|
88
240
|
{
|
89
241
|
"author": "beachball",
|
90
242
|
"package": "@fluentui/react-button",
|
91
|
-
"comment": "Bump @fluentui/react-menu to
|
92
|
-
"commit": "
|
243
|
+
"comment": "Bump @fluentui/react-menu to v9.0.0-beta.4",
|
244
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
93
245
|
}
|
94
246
|
],
|
95
247
|
"none": [
|
@@ -110,6 +262,12 @@
|
|
110
262
|
"package": "@fluentui/react-button",
|
111
263
|
"commit": "73857e89e8c403370ba723415121f2ce1e530fff",
|
112
264
|
"comment": "add docs for menu and compound button"
|
265
|
+
},
|
266
|
+
{
|
267
|
+
"author": "lingfangao@hotmail.com",
|
268
|
+
"package": "@fluentui/react-button",
|
269
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
270
|
+
"comment": "Remove beta release tag"
|
113
271
|
}
|
114
272
|
]
|
115
273
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,30 +1,67 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on
|
3
|
+
This log was last generated on Tue, 11 Jan 2022 04:18:35 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightly003de9a95220220111.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly003de9a95220220111.1)
|
8
8
|
|
9
|
-
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.
|
9
|
+
Tue, 11 Jan 2022 04:18:35 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightly003de9a95220220111.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by email not defined)
|
15
|
+
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
16
|
+
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
17
|
+
- Replacing use of functions in makeStyles with direct use of tokens. ([PR #21039](https://github.com/microsoft/fluentui/pull/21039) by Humberto.Morimoto@microsoft.com)
|
18
|
+
- update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
|
19
|
+
- Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster. ([PR #21035](https://github.com/microsoft/fluentui/pull/21035) by Humberto.Morimoto@microsoft.com)
|
20
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
21
|
+
- Bump @fluentui/react-aria to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
22
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
23
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
24
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
25
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
26
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
27
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly003de9a95220220111.1 ([commit](https://github.com/microsoft/fluentui/commit/60c7bd46e2d01b8e309739827125609a2621d863) by beachball)
|
28
|
+
|
29
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
|
30
|
+
|
31
|
+
Thu, 25 Nov 2021 08:34:12 GMT
|
32
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v9.0.0-beta.5)
|
33
|
+
|
34
|
+
### Changes
|
35
|
+
|
36
|
+
- MenuButton: Removing tight coupling with Menu by replicating type locally. ([PR #20635](https://github.com/microsoft/fluentui/pull/20635) by Humberto.Morimoto@microsoft.com)
|
37
|
+
- update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
|
38
|
+
- Bump @fluentui/react-aria to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
39
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
40
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
41
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
42
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
43
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
44
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
45
|
+
|
46
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.4)
|
47
|
+
|
48
|
+
Fri, 12 Nov 2021 13:25:16 GMT
|
49
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.3..@fluentui/react-button_v9.0.0-beta.4)
|
11
50
|
|
12
51
|
### Changes
|
13
52
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by email not defined)
|
15
53
|
- export static classes for components ([PR #20454](https://github.com/microsoft/fluentui/pull/20454) by olfedias@microsoft.com)
|
16
54
|
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
17
55
|
- react-button: Removing use of enzyme in the converged package. ([PR #20342](https://github.com/microsoft/fluentui/pull/20342) by Humberto.Morimoto@microsoft.com)
|
18
56
|
- Fixing incomplete comment. ([PR #20273](https://github.com/microsoft/fluentui/pull/20273) by Humberto.Morimoto@microsoft.com)
|
19
|
-
- Bump @fluentui/
|
20
|
-
- Bump @fluentui/react-
|
21
|
-
- Bump @fluentui/react-
|
22
|
-
- Bump @fluentui/react-
|
23
|
-
- Bump @fluentui/
|
24
|
-
- Bump @fluentui/
|
25
|
-
- Bump @fluentui/
|
26
|
-
- Bump @fluentui/react-
|
27
|
-
- Bump @fluentui/react-menu to v0.0.0-nightly0025eeb82020211108.1 ([commit](https://github.com/microsoft/fluentui/commit/e827ff6b79e47c8702651bbdc55176c0f505f4e9) by beachball)
|
57
|
+
- Bump @fluentui/react-aria to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
58
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
59
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
60
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
61
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
62
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
63
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
64
|
+
- Bump @fluentui/react-menu to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
28
65
|
|
29
66
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.3)
|
30
67
|
|
package/dist/react-button.d.ts
CHANGED
@@ -3,7 +3,6 @@ import type { ComponentProps } from '@fluentui/react-utilities';
|
|
3
3
|
import type { ComponentState } from '@fluentui/react-utilities';
|
4
4
|
import { ForwardRefComponent } from '@fluentui/react-utilities';
|
5
5
|
import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
6
|
-
import type { MenuTriggerChildProps } from '@fluentui/react-menu';
|
7
6
|
import type { ObjectShorthandProps } from '@fluentui/react-utilities';
|
8
7
|
import * as React_2 from 'react';
|
9
8
|
|
@@ -118,6 +117,10 @@ export declare type MenuButtonSlots = ButtonSlots & {
|
|
118
117
|
|
119
118
|
export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
|
120
119
|
|
120
|
+
declare type MenuTriggerChildProps = Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'> & {
|
121
|
+
ref?: React_2.Ref<never>;
|
122
|
+
};
|
123
|
+
|
121
124
|
/**
|
122
125
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
123
126
|
*/
|
@@ -13,6 +13,9 @@ export const renderButton = state => {
|
|
13
13
|
iconOnly,
|
14
14
|
iconPosition
|
15
15
|
} = state;
|
16
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
16
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
17
|
+
}, iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
18
|
+
}), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
19
|
+
}));
|
17
20
|
};
|
18
21
|
//# sourceMappingURL=renderButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,YAAY,GAAI,KAAD,IAAuB;AACjD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,EAAqB,CAAC,MAAD,EAAS,MAAT,CAArB,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,
|
1
|
+
{"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,YAAY,GAAI,KAAD,IAAuB;AACjD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,EAAqB,CAAC,MAAD,EAAS,MAAT,CAArB,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD/B,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
|
@@ -40,7 +40,8 @@ export const useButton = (props, ref) => {
|
|
40
40
|
defaultProps: {
|
41
41
|
// useARIAButton isn't working with React.Ref<HTMLButtonElement | HTMLAnchorElement>
|
42
42
|
ref: ref,
|
43
|
-
type: 'button'
|
43
|
+
type: 'button' // This is added because the default for type is 'submit'
|
44
|
+
|
44
45
|
}
|
45
46
|
})),
|
46
47
|
icon: iconShorthand
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,M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