@fluentui/react-button 0.0.0-nightly0bc161458e20220126.1 → 0.0.0-nightly2170ed575f20220223.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 +182 -14
- package/CHANGELOG.md +50 -10
- package/dist/react-button.d.ts +14 -19
- package/lib/Button.js.map +1 -1
- package/lib/CompoundButton.js.map +1 -1
- package/lib/MenuButton.js.map +1 -1
- package/lib/SplitButton.js.map +1 -1
- package/lib/ToggleButton.js.map +1 -1
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Button/Button.types.d.ts +4 -4
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/Button/index.d.ts +1 -1
- package/lib/components/Button/index.js +0 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/renderButton.js +2 -2
- package/lib/components/Button/renderButton.js.map +1 -1
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.d.ts +0 -8
- package/lib/components/Button/useButtonStyles.js +6 -16
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.types.d.ts +4 -4
- package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/renderCompoundButton.js +3 -3
- package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +8 -9
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.types.d.ts +3 -8
- package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/renderMenuButton.js +2 -2
- package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButton.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.d.ts +4 -4
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/renderSplitButton.js +2 -2
- package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +16 -4
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/ToggleButton.types.d.ts +2 -1
- package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.js +10 -6
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Button.js.map +1 -1
- package/lib-commonjs/CompoundButton.js.map +1 -1
- package/lib-commonjs/MenuButton.js.map +1 -1
- package/lib-commonjs/SplitButton.js.map +1 -1
- package/lib-commonjs/ToggleButton.js.map +1 -1
- package/lib-commonjs/components/Button/Button.js.map +1 -1
- package/lib-commonjs/components/Button/Button.types.d.ts +4 -4
- package/lib-commonjs/components/Button/Button.types.js.map +1 -1
- package/lib-commonjs/components/Button/index.d.ts +1 -1
- package/lib-commonjs/components/Button/index.js +0 -2
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/renderButton.js +2 -2
- package/lib-commonjs/components/Button/renderButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.d.ts +0 -8
- package/lib-commonjs/components/Button/useButtonStyles.js +7 -17
- 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/CompoundButton.types.d.ts +4 -4
- package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +3 -3
- 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 +7 -8
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
- package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +3 -8
- package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/renderMenuButton.js +2 -2
- 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.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +4 -4
- package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/renderSplitButton.js +2 -2
- package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +15 -3
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- 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/ToggleButton.types.d.ts +2 -1
- package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
- 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 +10 -6
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +7 -7
package/CHANGELOG.json
CHANGED
@@ -2,23 +2,137 @@
|
|
2
2
|
"name": "@fluentui/react-button",
|
3
3
|
"entries": [
|
4
4
|
{
|
5
|
-
"date": "Wed,
|
6
|
-
"tag": "@fluentui/react-button_v0.0.0-
|
7
|
-
"version": "0.0.0-
|
5
|
+
"date": "Wed, 23 Feb 2022 04:16:20 GMT",
|
6
|
+
"tag": "@fluentui/react-button_v0.0.0-nightly2170ed575f20220223.1",
|
7
|
+
"version": "0.0.0-nightly2170ed575f20220223.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": "d95e2014fb1257eac783ce505fc7a7652da408c2",
|
14
14
|
"comment": "Release nightly v9"
|
15
15
|
},
|
16
|
+
{
|
17
|
+
"author": "beachball",
|
18
|
+
"package": "@fluentui/react-button",
|
19
|
+
"comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly2170ed575f20220223.1",
|
20
|
+
"commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
|
21
|
+
},
|
22
|
+
{
|
23
|
+
"author": "beachball",
|
24
|
+
"package": "@fluentui/react-button",
|
25
|
+
"comment": "Bump @fluentui/react-aria to v0.0.0-nightly2170ed575f20220223.1",
|
26
|
+
"commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"author": "beachball",
|
30
|
+
"package": "@fluentui/react-button",
|
31
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly2170ed575f20220223.1",
|
32
|
+
"commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
|
33
|
+
},
|
34
|
+
{
|
35
|
+
"author": "beachball",
|
36
|
+
"package": "@fluentui/react-button",
|
37
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly2170ed575f20220223.1",
|
38
|
+
"commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
|
39
|
+
},
|
40
|
+
{
|
41
|
+
"author": "beachball",
|
42
|
+
"package": "@fluentui/react-button",
|
43
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly2170ed575f20220223.1",
|
44
|
+
"commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
|
45
|
+
}
|
46
|
+
]
|
47
|
+
}
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"date": "Fri, 18 Feb 2022 13:35:28 GMT",
|
51
|
+
"tag": "@fluentui/react-button_v9.0.0-rc.3",
|
52
|
+
"version": "9.0.0-rc.3",
|
53
|
+
"comments": {
|
54
|
+
"prerelease": [
|
55
|
+
{
|
56
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
57
|
+
"package": "@fluentui/react-button",
|
58
|
+
"commit": "0b7d30b6ecb6f20d2ac4d4edbfb327a8f8f915a0",
|
59
|
+
"comment": "SplitButton: Fixing issue where menuIcon prop was not being respected."
|
60
|
+
},
|
61
|
+
{
|
62
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
63
|
+
"package": "@fluentui/react-button",
|
64
|
+
"commit": "d45ba4664643f36cce5674b1d05645feae0e09a5",
|
65
|
+
"comment": "Button: Updating stories to fix a11y issues."
|
66
|
+
},
|
67
|
+
{
|
68
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
69
|
+
"package": "@fluentui/react-button",
|
70
|
+
"commit": "ca590a438b12b85d32fdf8b592ada3b0e7b2314c",
|
71
|
+
"comment": "SplitButton: Fixing screen reader access issues."
|
72
|
+
},
|
73
|
+
{
|
74
|
+
"author": "lingfangao@hotmail.com",
|
75
|
+
"package": "@fluentui/react-button",
|
76
|
+
"commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
|
77
|
+
"comment": "fix: Source maps contain original source code"
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
81
|
+
"package": "@fluentui/react-button",
|
82
|
+
"commit": "c7718355f464d9d3e7ec4c0ef0f39dac3d196014",
|
83
|
+
"comment": "Button: Adding tests and fixing issues in SplitButton and ToggleButton."
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"author": "beachball",
|
87
|
+
"package": "@fluentui/react-button",
|
88
|
+
"comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.3",
|
89
|
+
"commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
|
90
|
+
},
|
91
|
+
{
|
92
|
+
"author": "beachball",
|
93
|
+
"package": "@fluentui/react-button",
|
94
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-rc.3",
|
95
|
+
"commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"author": "beachball",
|
99
|
+
"package": "@fluentui/react-button",
|
100
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.3",
|
101
|
+
"commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
|
102
|
+
},
|
103
|
+
{
|
104
|
+
"author": "beachball",
|
105
|
+
"package": "@fluentui/react-button",
|
106
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
|
107
|
+
"commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
|
108
|
+
},
|
109
|
+
{
|
110
|
+
"author": "beachball",
|
111
|
+
"package": "@fluentui/react-button",
|
112
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
|
113
|
+
"commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
|
114
|
+
}
|
115
|
+
]
|
116
|
+
}
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"date": "Thu, 10 Feb 2022 08:51:46 GMT",
|
120
|
+
"tag": "@fluentui/react-button_v9.0.0-rc.1",
|
121
|
+
"version": "9.0.0-rc.1",
|
122
|
+
"comments": {
|
123
|
+
"prerelease": [
|
16
124
|
{
|
17
125
|
"author": "Humberto.Morimoto@microsoft.com",
|
18
126
|
"package": "@fluentui/react-button",
|
19
127
|
"commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
|
20
128
|
"comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
|
21
129
|
},
|
130
|
+
{
|
131
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
132
|
+
"package": "@fluentui/react-button",
|
133
|
+
"commit": "940de09b95aa1cefcac9a1f6bbfa9499419e3634",
|
134
|
+
"comment": "Button: Changing border radius of small button to borderRadiusMedium from borderRadiusSmall."
|
135
|
+
},
|
22
136
|
{
|
23
137
|
"author": "olfedias@microsoft.com",
|
24
138
|
"package": "@fluentui/react-button",
|
@@ -37,6 +151,12 @@
|
|
37
151
|
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
38
152
|
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
39
153
|
},
|
154
|
+
{
|
155
|
+
"author": "lingfangao@hotmail.com",
|
156
|
+
"package": "@fluentui/react-button",
|
157
|
+
"commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
|
158
|
+
"comment": "Bump Fluent UI packages to 9.0.0-rc"
|
159
|
+
},
|
40
160
|
{
|
41
161
|
"author": "ololubek@microsoft.com",
|
42
162
|
"package": "@fluentui/react-button",
|
@@ -49,30 +169,72 @@
|
|
49
169
|
"commit": "0a4c1a9af2f8bb29c3a3544f06964a8554cd692a",
|
50
170
|
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
51
171
|
},
|
172
|
+
{
|
173
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
174
|
+
"package": "@fluentui/react-button",
|
175
|
+
"commit": "a21bfaceecf201d0c984fa84704148a24f956901",
|
176
|
+
"comment": "CompoundButton: Updating styles to match latest design spec."
|
177
|
+
},
|
52
178
|
{
|
53
179
|
"author": "behowell@microsoft.com",
|
54
180
|
"package": "@fluentui/react-button",
|
55
181
|
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
56
182
|
"comment": "Remove component's shorthandProps array"
|
57
183
|
},
|
184
|
+
{
|
185
|
+
"author": "mgodbolt@microsoft.com",
|
186
|
+
"package": "@fluentui/react-button",
|
187
|
+
"commit": "839ec14849e112b85aa321d034739ec421199141",
|
188
|
+
"comment": "remove export of commons types"
|
189
|
+
},
|
58
190
|
{
|
59
191
|
"author": "behowell@microsoft.com",
|
60
192
|
"package": "@fluentui/react-button",
|
61
193
|
"commit": "d778282b56baae57cb6b407debdbfb6beca76761",
|
62
194
|
"comment": "Remove fontSize from default menuIcon, as it is already set via css"
|
63
195
|
},
|
196
|
+
{
|
197
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
198
|
+
"package": "@fluentui/react-button",
|
199
|
+
"commit": "f5873dc09f0c07d4adf23ad89a5f3afad37a0da9",
|
200
|
+
"comment": "ToggleButton: Stopping aria-pressed from changing when ToggleButton is disabledFocusable."
|
201
|
+
},
|
64
202
|
{
|
65
203
|
"author": "olfedias@microsoft.com",
|
66
204
|
"package": "@fluentui/react-button",
|
67
205
|
"commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
|
68
206
|
"comment": "update styles to not use CSS shorthands"
|
69
207
|
},
|
208
|
+
{
|
209
|
+
"author": "behowell@microsoft.com",
|
210
|
+
"package": "@fluentui/react-button",
|
211
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
212
|
+
"comment": "Refactor component Slot typings"
|
213
|
+
},
|
70
214
|
{
|
71
215
|
"author": "Humberto.Morimoto@microsoft.com",
|
72
216
|
"package": "@fluentui/react-button",
|
73
217
|
"commit": "00a5d945904c896a0664de6ba72c145a255f0848",
|
74
218
|
"comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
|
75
219
|
},
|
220
|
+
{
|
221
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
222
|
+
"package": "@fluentui/react-button",
|
223
|
+
"commit": "7797d49103b5dd7662ef59f734921f6326b2273d",
|
224
|
+
"comment": "MenuButton: Updating types so it properly supports ref."
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"author": "olfedias@microsoft.com",
|
228
|
+
"package": "@fluentui/react-button",
|
229
|
+
"commit": "b23239743c4f5518bcf7dcad496a36fc16bbd2e5",
|
230
|
+
"comment": "update @fluentui/react-icons package"
|
231
|
+
},
|
232
|
+
{
|
233
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
234
|
+
"package": "@fluentui/react-button",
|
235
|
+
"commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
|
236
|
+
"comment": "Updating based on changes to composition types."
|
237
|
+
},
|
76
238
|
{
|
77
239
|
"author": "Humberto.Morimoto@microsoft.com",
|
78
240
|
"package": "@fluentui/react-button",
|
@@ -82,32 +244,32 @@
|
|
82
244
|
{
|
83
245
|
"author": "beachball",
|
84
246
|
"package": "@fluentui/react-button",
|
85
|
-
"comment": "Bump @fluentui/keyboard-keys to
|
86
|
-
"commit": "
|
247
|
+
"comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.1",
|
248
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
87
249
|
},
|
88
250
|
{
|
89
251
|
"author": "beachball",
|
90
252
|
"package": "@fluentui/react-button",
|
91
|
-
"comment": "Bump @fluentui/react-aria to
|
92
|
-
"commit": "
|
253
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-rc.1",
|
254
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
93
255
|
},
|
94
256
|
{
|
95
257
|
"author": "beachball",
|
96
258
|
"package": "@fluentui/react-button",
|
97
|
-
"comment": "Bump @fluentui/react-tabster to
|
98
|
-
"commit": "
|
259
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
|
260
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
99
261
|
},
|
100
262
|
{
|
101
263
|
"author": "beachball",
|
102
264
|
"package": "@fluentui/react-button",
|
103
|
-
"comment": "Bump @fluentui/react-utilities to
|
104
|
-
"commit": "
|
265
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
|
266
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
105
267
|
},
|
106
268
|
{
|
107
269
|
"author": "beachball",
|
108
270
|
"package": "@fluentui/react-button",
|
109
|
-
"comment": "Bump @fluentui/react-conformance-griffel to
|
110
|
-
"commit": "
|
271
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
|
272
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
111
273
|
}
|
112
274
|
],
|
113
275
|
"none": [
|
@@ -128,6 +290,12 @@
|
|
128
290
|
"package": "@fluentui/react-button",
|
129
291
|
"commit": "ca886fed17b4a73b9bb3b5a9e54d143062cbfa99",
|
130
292
|
"comment": "Migration to new tsconfig"
|
293
|
+
},
|
294
|
+
{
|
295
|
+
"author": "bsunderhus@microsoft.com",
|
296
|
+
"package": "@fluentui/react-button",
|
297
|
+
"commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
|
298
|
+
"comment": "Updates components with nullRender changes"
|
131
299
|
}
|
132
300
|
]
|
133
301
|
}
|
package/CHANGELOG.md
CHANGED
@@ -1,33 +1,73 @@
|
|
1
1
|
# Change Log - @fluentui/react-button
|
2
2
|
|
3
|
-
This log was last generated on Wed,
|
3
|
+
This log was last generated on Wed, 23 Feb 2022 04:16:20 GMT and should not be manually modified.
|
4
4
|
|
5
5
|
<!-- Start content -->
|
6
6
|
|
7
|
-
## [0.0.0-
|
7
|
+
## [0.0.0-nightly2170ed575f20220223.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly2170ed575f20220223.1)
|
8
8
|
|
9
|
-
Wed,
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-
|
9
|
+
Wed, 23 Feb 2022 04:16:20 GMT
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.3..@fluentui/react-button_v0.0.0-nightly2170ed575f20220223.1)
|
11
|
+
|
12
|
+
### Changes
|
13
|
+
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by email not defined)
|
15
|
+
- Bump @fluentui/keyboard-keys to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
|
16
|
+
- Bump @fluentui/react-aria to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
|
17
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
|
18
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
|
19
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
|
20
|
+
|
21
|
+
## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.3)
|
22
|
+
|
23
|
+
Fri, 18 Feb 2022 13:35:28 GMT
|
24
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.1..@fluentui/react-button_v9.0.0-rc.3)
|
25
|
+
|
26
|
+
### Changes
|
27
|
+
|
28
|
+
- SplitButton: Fixing issue where menuIcon prop was not being respected. ([PR #21683](https://github.com/microsoft/fluentui/pull/21683) by Humberto.Morimoto@microsoft.com)
|
29
|
+
- Button: Updating stories to fix a11y issues. ([PR #21679](https://github.com/microsoft/fluentui/pull/21679) by Humberto.Morimoto@microsoft.com)
|
30
|
+
- SplitButton: Fixing screen reader access issues. ([PR #21703](https://github.com/microsoft/fluentui/pull/21703) by Humberto.Morimoto@microsoft.com)
|
31
|
+
- fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
|
32
|
+
- Button: Adding tests and fixing issues in SplitButton and ToggleButton. ([PR #21719](https://github.com/microsoft/fluentui/pull/21719) by Humberto.Morimoto@microsoft.com)
|
33
|
+
- Bump @fluentui/keyboard-keys to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
34
|
+
- Bump @fluentui/react-aria to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
35
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
36
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
37
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
|
38
|
+
|
39
|
+
## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-rc.1)
|
40
|
+
|
41
|
+
Thu, 10 Feb 2022 08:51:46 GMT
|
42
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v9.0.0-rc.1)
|
11
43
|
|
12
44
|
### Changes
|
13
45
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by email not defined)
|
15
46
|
- Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
|
47
|
+
- Button: Changing border radius of small button to borderRadiusMedium from borderRadiusSmall. ([PR #21494](https://github.com/microsoft/fluentui/pull/21494) by Humberto.Morimoto@microsoft.com)
|
16
48
|
- Replace make-styles packages with griffel equivalents. ([PR #21436](https://github.com/microsoft/fluentui/pull/21436) by olfedias@microsoft.com)
|
17
49
|
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
18
50
|
- 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)
|
51
|
+
- Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
19
52
|
- (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
|
20
53
|
- 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)
|
54
|
+
- CompoundButton: Updating styles to match latest design spec. ([PR #21523](https://github.com/microsoft/fluentui/pull/21523) by Humberto.Morimoto@microsoft.com)
|
21
55
|
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
56
|
+
- remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
|
22
57
|
- Remove fontSize from default menuIcon, as it is already set via css ([PR #21221](https://github.com/microsoft/fluentui/pull/21221) by behowell@microsoft.com)
|
58
|
+
- ToggleButton: Stopping aria-pressed from changing when ToggleButton is disabledFocusable. ([PR #21492](https://github.com/microsoft/fluentui/pull/21492) by Humberto.Morimoto@microsoft.com)
|
23
59
|
- update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
|
60
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
24
61
|
- 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)
|
62
|
+
- MenuButton: Updating types so it properly supports ref. ([PR #21515](https://github.com/microsoft/fluentui/pull/21515) by Humberto.Morimoto@microsoft.com)
|
63
|
+
- update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
|
64
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
25
65
|
- 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)
|
26
|
-
- Bump @fluentui/keyboard-keys to
|
27
|
-
- Bump @fluentui/react-aria to
|
28
|
-
- Bump @fluentui/react-tabster to
|
29
|
-
- Bump @fluentui/react-utilities to
|
30
|
-
- Bump @fluentui/react-conformance-griffel to
|
66
|
+
- Bump @fluentui/keyboard-keys to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
67
|
+
- Bump @fluentui/react-aria to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
68
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
69
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
70
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
31
71
|
|
32
72
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
|
33
73
|
|
package/dist/react-button.d.ts
CHANGED
@@ -1,10 +1,9 @@
|
|
1
|
-
import {
|
1
|
+
import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
|
2
2
|
import type { ComponentProps } from '@fluentui/react-utilities';
|
3
|
-
import type { ComponentSlotProps } from '@fluentui/react-utilities';
|
4
3
|
import type { ComponentState } from '@fluentui/react-utilities';
|
5
4
|
import { ForwardRefComponent } from '@fluentui/react-utilities';
|
6
|
-
import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
7
5
|
import * as React_2 from 'react';
|
6
|
+
import type { Slot } from '@fluentui/react-utilities';
|
8
7
|
|
9
8
|
/**
|
10
9
|
* Buttons give people a way to trigger an action.
|
@@ -13,7 +12,7 @@ export declare const Button: ForwardRefComponent<ButtonProps>;
|
|
13
12
|
|
14
13
|
export declare const buttonClassName = "fui-Button";
|
15
14
|
|
16
|
-
|
15
|
+
declare type ButtonCommons = {
|
17
16
|
/**
|
18
17
|
* A button can have its content and borders styled for greater emphasis or to be subtle.
|
19
18
|
* - 'primary': Emphasizes the button as a primary action.
|
@@ -62,11 +61,11 @@ export declare type ButtonSlots = {
|
|
62
61
|
/**
|
63
62
|
* Root of the component that renders as either a `<button>` tag or an `<a>` tag.
|
64
63
|
*/
|
65
|
-
root:
|
64
|
+
root: Slot<ARIAButtonSlotProps>;
|
66
65
|
/**
|
67
66
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
68
67
|
*/
|
69
|
-
icon?:
|
68
|
+
icon?: Slot<'span'>;
|
70
69
|
};
|
71
70
|
|
72
71
|
export declare type ButtonState = ComponentState<ButtonSlots> & ButtonCommons & {
|
@@ -84,17 +83,17 @@ export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
|
|
84
83
|
|
85
84
|
export declare const compoundButtonClassName = "fui-CompoundButton";
|
86
85
|
|
87
|
-
export declare type CompoundButtonProps = ComponentProps<CompoundButtonSlots
|
86
|
+
export declare type CompoundButtonProps = ComponentProps<Partial<CompoundButtonSlots>> & Partial<ButtonCommons>;
|
88
87
|
|
89
88
|
export declare type CompoundButtonSlots = ButtonSlots & {
|
90
89
|
/**
|
91
90
|
* Second line of text that describes the action this button takes.
|
92
91
|
*/
|
93
|
-
secondaryContent?:
|
92
|
+
secondaryContent?: Slot<'span'>;
|
94
93
|
/**
|
95
94
|
* Container that wraps the children and the secondaryContent slot.
|
96
95
|
*/
|
97
|
-
contentContainer:
|
96
|
+
contentContainer: NonNullable<Slot<'span'>>;
|
98
97
|
};
|
99
98
|
|
100
99
|
export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
|
@@ -106,21 +105,17 @@ export declare const MenuButton: ForwardRefComponent<MenuButtonProps>;
|
|
106
105
|
|
107
106
|
export declare const menuButtonClassName = "fui-MenuButton";
|
108
107
|
|
109
|
-
export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'
|
108
|
+
export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>>;
|
110
109
|
|
111
110
|
export declare type MenuButtonSlots = ButtonSlots & {
|
112
111
|
/**
|
113
112
|
* Menu icon that indicates that this button has a menu that can be expanded.
|
114
113
|
*/
|
115
|
-
menuIcon?:
|
114
|
+
menuIcon?: Slot<'span'>;
|
116
115
|
};
|
117
116
|
|
118
117
|
export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
|
119
118
|
|
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
|
-
|
124
119
|
/**
|
125
120
|
* Renders a Button component by passing the state defined props to the appropriate slots.
|
126
121
|
*/
|
@@ -157,15 +152,15 @@ export declare type SplitButtonSlots = {
|
|
157
152
|
/**
|
158
153
|
* Root of the component that wraps the primary action button and menu button.
|
159
154
|
*/
|
160
|
-
root:
|
155
|
+
root: Slot<'div'>;
|
161
156
|
/**
|
162
157
|
* Button that opens menu with secondary actions in SplitButton.
|
163
158
|
*/
|
164
|
-
menuButton?:
|
159
|
+
menuButton?: Slot<typeof MenuButton>;
|
165
160
|
/**
|
166
161
|
* Button to perform primary action in SplitButton.
|
167
162
|
*/
|
168
|
-
primaryActionButton?:
|
163
|
+
primaryActionButton?: Slot<typeof Button>;
|
169
164
|
};
|
170
165
|
|
171
166
|
export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<ButtonState, 'components' | 'iconOnly' | 'root'> & Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;
|
@@ -177,7 +172,7 @@ export declare const ToggleButton: ForwardRefComponent<ToggleButtonProps>;
|
|
177
172
|
|
178
173
|
export declare const toggleButtonClassName = "fui-ToggleButton";
|
179
174
|
|
180
|
-
|
175
|
+
declare type ToggleButtonCommons = {
|
181
176
|
/**
|
182
177
|
* Defines the controlled checked state of the `ToggleButton`.
|
183
178
|
* If passed, `ToggleButton` ignores the `defaultChecked` property.
|
package/lib/Button.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"../src/","sources":["Button.tsx"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './components/Button/index';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CompoundButton.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"CompoundButton.js","sourceRoot":"../src/","sources":["CompoundButton.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/CompoundButton/index';\n"]}
|
package/lib/MenuButton.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MenuButton.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"MenuButton.js","sourceRoot":"../src/","sources":["MenuButton.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC","sourcesContent":["export * from './components/MenuButton/index';\n"]}
|
package/lib/SplitButton.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SplitButton.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"SplitButton.js","sourceRoot":"../src/","sources":["SplitButton.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './components/SplitButton/index';\n"]}
|
package/lib/ToggleButton.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ToggleButton.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"ToggleButton.js","sourceRoot":"../src/","sources":["ToggleButton.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './components/ToggleButton/index';\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AAEA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourcesContent":["import * as React from 'react';\nimport { renderButton_unstable } from './renderButton';\nimport { useButton_unstable } from './useButton';\nimport { useButtonStyles_unstable } from './useButtonStyles';\nimport type { ButtonProps } from './Button.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Buttons give people a way to trigger an action.\n */\nexport const Button: ForwardRefComponent<ButtonProps> = React.forwardRef((props, ref) => {\n const state = useButton_unstable(props, ref);\n\n useButtonStyles_unstable(state);\n\n return renderButton_unstable(state);\n // Casting is required due to lack of distributive union to support unions on @types/react\n}) as ForwardRefComponent<ButtonProps>;\n\nButton.displayName = 'Button';\n"],"sourceRoot":"../src/"}
|
@@ -1,14 +1,14 @@
|
|
1
|
-
import {
|
2
|
-
import type { ComponentProps, ComponentState,
|
1
|
+
import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
|
2
|
+
import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
|
3
3
|
export declare type ButtonSlots = {
|
4
4
|
/**
|
5
5
|
* Root of the component that renders as either a `<button>` tag or an `<a>` tag.
|
6
6
|
*/
|
7
|
-
root:
|
7
|
+
root: Slot<ARIAButtonSlotProps>;
|
8
8
|
/**
|
9
9
|
* Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
|
10
10
|
*/
|
11
|
-
icon?:
|
11
|
+
icon?: Slot<'span'>;
|
12
12
|
};
|
13
13
|
export declare type ButtonCommons = {
|
14
14
|
/**
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.types.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"Button.types.js","sourceRoot":"../src/","sources":["components/Button/Button.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\n\nexport type ButtonSlots = {\n /**\n * Root of the component that renders as either a `<button>` tag or an `<a>` tag.\n */\n root: Slot<ARIAButtonSlotProps>;\n\n /**\n * Icon that renders either before or after the `children` as specified by the `iconPosition` prop.\n */\n icon?: Slot<'span'>;\n};\n\nexport type ButtonCommons = {\n /**\n * A button can have its content and borders styled for greater emphasis or to be subtle.\n * - 'primary': Emphasizes the button as a primary action.\n * - 'outline': Removes background styling.\n * - 'subtle': Minimizes emphasis to blend into the background until hovered or focused.\n * - 'transparent': Removes background and border styling.\n */\n appearance?: 'primary' | 'outline' | 'subtle' | 'transparent';\n\n /**\n * A button can fill the width of its container.\n * @default false\n */\n block: boolean;\n\n /**\n * When set, allows the button to be focusable even when it has been disabled. This is used in scenarios where it\n * is important to keep a consistent tab order for screen reader and keyboard users. The primary example of this\n * pattern is when the disabled button is in a menu or a commandbar and is seldom used for standalone buttons.\n * @default false\n */\n disabledFocusable: boolean;\n\n /**\n * A button can show that it cannot be interacted with.\n * @default false\n */\n disabled: boolean;\n\n /**\n * A button can format its icon to appear before or after its content.\n * @default 'before'\n */\n iconPosition?: 'before' | 'after';\n\n /**\n * A button can be rounded, circular, or square.\n * @default 'rounded'\n */\n shape: 'rounded' | 'circular' | 'square';\n\n /**\n * A button supports different sizes.\n * @default 'medium'\n */\n size: 'small' | 'medium' | 'large';\n};\n\nexport type ButtonProps = ComponentProps<ButtonSlots> & Partial<ButtonCommons>;\n\nexport type ButtonState = ComponentState<ButtonSlots> &\n ButtonCommons & {\n /**\n * A button can contain only an icon.\n * @default false\n */\n iconOnly: boolean;\n };\n"]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from './Button';
|
2
|
-
export
|
2
|
+
export type { ButtonProps, ButtonSlots, ButtonState } from './Button.types';
|
3
3
|
export * from './renderButton';
|
4
4
|
export * from './useButton';
|
5
5
|
export { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AAGzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC","sourcesContent":["export * from './Button';\n// Explicit exports to omit ButtonCommons\nexport type { ButtonProps, ButtonSlots, ButtonState } from './Button.types';\nexport * from './renderButton';\nexport * from './useButton';\nexport { buttonClassName, useButtonStyles_unstable } from './useButtonStyles';\n"]}
|
@@ -14,8 +14,8 @@ export const renderButton_unstable = state => {
|
|
14
14
|
iconPosition
|
15
15
|
} = state;
|
16
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
|
17
|
+
}, iconPosition !== 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
18
|
+
}), !iconOnly && state.root.children, iconPosition === 'after' && slots.icon && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
19
19
|
}));
|
20
20
|
};
|
21
21
|
//# sourceMappingURL=renderButton.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,GAAI,KAAD,IAAuB;AAC1D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,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,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD7C,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,IAA4B,KAAK,CAAC,IAAlC,iBAA0C,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAH7C,CADF;AAOD,CAXM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { ButtonSlots, ButtonState } from './Button.types';\n\n/**\n * Renders a Button component by passing the state defined props to the appropriate slots.\n */\nexport const renderButton_unstable = (state: ButtonState) => {\n const { slots, slotProps } = getSlots<ButtonSlots>(state);\n const { iconOnly, iconPosition } = state;\n\n return (\n <slots.root {...slotProps.root}>\n {iconPosition !== 'after' && slots.icon && <slots.icon {...slotProps.icon} />}\n {!iconOnly && state.root.children}\n {iconPosition === 'after' && slots.icon && <slots.icon {...slotProps.icon} />}\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["
|
1
|
+
{"version":3,"sources":["components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AAEA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,MAAM,kBAAkB,GAAG,CAChC,KADgC,EAEhC,GAFgC,KAGjB;AACf,QAAM;AACJ,IAAA,UADI;AAEJ,IAAA,EAFI;AAGJ,IAAA,KAAK,GAAG,KAHJ;AAIJ,IAAA,QAAQ,GAAG,KAJP;AAKJ,IAAA,iBAAiB,GAAG,KALhB;AAMJ,IAAA,IANI;AAOJ,IAAA,YAAY,GAAG,QAPX;AAQJ,IAAA,KAAK,GAAG,SARJ;AASJ,IAAA,IAAI,GAAG;AATH,MAUF,KAVJ;AAWA,QAAM,aAAa,GAAG,gBAAgB,CAAC,IAAD,CAAtC;AAEA,SAAO;AACL;AACA,IAAA,UAFK;AAGL,IAAA,KAHK;AAIL,IAAA,QAJK;AAKL,IAAA,iBALK;AAML,IAAA,YANK;AAOL,IAAA,KAPK;AAQL,IAAA,IARK;AAUL;AACA,IAAA,QAAQ,EAAE,OAAO,CAAC,CAAA,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAa,KAAA,CAAb,GAAA,aAAa,CAAE,QAAf,KAA2B,CAAC,KAAK,CAAC,QAAnC,CAXZ;AAaL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE;AAFI,KAdP;AAmBL,IAAA,IAAI,EAAE,qBAAqB,CACzB,EAAE,IAAI,QADmB,EAEzB,aAAa,CAAsB,KAAtB,EAA6B;AACxC,MAAA,QAAQ,EAAE,IAD8B;AAExC,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE,QAHM,CAGI;;AAHJ;AAF0B,KAA7B,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CAjDM","sourcesContent":["import * as React from 'react';\nimport { useARIAButton } from '@fluentui/react-aria';\nimport type { ARIAButtonSlotProps } from '@fluentui/react-aria';\nimport { getNativeElementProps, resolveShorthand } from '@fluentui/react-utilities';\nimport type { ButtonProps, ButtonState } from './Button.types';\n\n/**\n * Given user props, defines default props for the Button, calls useButtonState, and returns processed state.\n * @param props - User provided props to the Button component.\n * @param ref - User provided ref to be passed to the Button component.\n */\nexport const useButton_unstable = (\n props: ButtonProps,\n ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>,\n): ButtonState => {\n const {\n appearance,\n as,\n block = false,\n disabled = false,\n disabledFocusable = false,\n icon,\n iconPosition = 'before',\n shape = 'rounded',\n size = 'medium',\n } = props;\n const iconShorthand = resolveShorthand(icon);\n\n return {\n // Props passed at the top-level\n appearance,\n block,\n disabled,\n disabledFocusable,\n iconPosition,\n shape,\n size,\n\n // State calculated from a set of props\n iconOnly: Boolean(iconShorthand?.children && !props.children),\n\n // Slots definition\n components: {\n root: 'button',\n icon: 'span',\n },\n\n root: getNativeElementProps(\n as || 'button',\n useARIAButton<ARIAButtonSlotProps>(props, {\n required: true,\n defaultProps: {\n // useARIAButton isn't working with React.Ref<HTMLButtonElement | HTMLAnchorElement>\n ref: ref as React.Ref<HTMLButtonElement>,\n type: 'button', // This is added because the default for type is 'submit'\n },\n }),\n ),\n icon: iconShorthand,\n };\n};\n"],"sourceRoot":"../src/"}
|
@@ -1,11 +1,3 @@
|
|
1
1
|
import type { ButtonState } from './Button.types';
|
2
2
|
export declare const buttonClassName = "fui-Button";
|
3
|
-
export declare const buttonSpacing: {
|
4
|
-
smallest: string;
|
5
|
-
smaller: string;
|
6
|
-
small: string;
|
7
|
-
medium: string;
|
8
|
-
large: string;
|
9
|
-
larger: string;
|
10
|
-
};
|
11
3
|
export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
|