@fluentui/react-button 9.0.0-beta.1 → 9.0.0-beta.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. package/CHANGELOG.json +275 -1
  2. package/CHANGELOG.md +67 -2
  3. package/dist/react-button.d.ts +15 -2
  4. package/lib/common/isConformant.js +1 -1
  5. package/lib/common/isConformant.js.map +1 -1
  6. package/lib/components/Button/Button.js +2 -2
  7. package/lib/components/Button/Button.js.map +1 -1
  8. package/lib/components/Button/Button.types.d.ts +1 -1
  9. package/lib/components/Button/index.d.ts +1 -1
  10. package/lib/components/Button/index.js +1 -1
  11. package/lib/components/Button/index.js.map +1 -1
  12. package/lib/components/Button/renderButton.js +10 -9
  13. package/lib/components/Button/renderButton.js.map +1 -1
  14. package/lib/components/Button/useButton.js +20 -24
  15. package/lib/components/Button/useButton.js.map +1 -1
  16. package/lib/components/Button/useButtonStyles.d.ts +1 -0
  17. package/lib/components/Button/useButtonStyles.js +27 -24
  18. package/lib/components/Button/useButtonStyles.js.map +1 -1
  19. package/lib/components/CompoundButton/CompoundButton.js +2 -2
  20. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  21. package/lib/components/CompoundButton/index.d.ts +1 -1
  22. package/lib/components/CompoundButton/index.js +1 -1
  23. package/lib/components/CompoundButton/index.js.map +1 -1
  24. package/lib/components/CompoundButton/renderCompoundButton.js +10 -9
  25. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  26. package/lib/components/CompoundButton/useCompoundButton.js +8 -8
  27. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  28. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -0
  29. package/lib/components/CompoundButton/useCompoundButtonStyles.js +40 -37
  30. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  31. package/lib/components/MenuButton/MenuButton.js +2 -2
  32. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  33. package/lib/components/MenuButton/MenuButton.types.d.ts +5 -1
  34. package/lib/components/MenuButton/index.d.ts +1 -1
  35. package/lib/components/MenuButton/index.js +1 -1
  36. package/lib/components/MenuButton/index.js.map +1 -1
  37. package/lib/components/MenuButton/renderMenuButton.js +10 -9
  38. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  39. package/lib/components/MenuButton/useMenuButton.js +8 -8
  40. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  41. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -0
  42. package/lib/components/MenuButton/useMenuButtonStyles.js +5 -3
  43. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  44. package/lib/components/SplitButton/SplitButton.js +2 -2
  45. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  46. package/lib/components/SplitButton/index.d.ts +1 -1
  47. package/lib/components/SplitButton/index.js +1 -1
  48. package/lib/components/SplitButton/index.js.map +1 -1
  49. package/lib/components/SplitButton/renderSplitButton.js +6 -7
  50. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  51. package/lib/components/SplitButton/useSplitButton.js +41 -45
  52. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  53. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -0
  54. package/lib/components/SplitButton/useSplitButtonStyles.js +36 -33
  55. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  56. package/lib/components/ToggleButton/ToggleButton.js +2 -2
  57. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  58. package/lib/components/ToggleButton/index.d.ts +1 -1
  59. package/lib/components/ToggleButton/index.js +1 -1
  60. package/lib/components/ToggleButton/index.js.map +1 -1
  61. package/lib/components/ToggleButton/useToggleButton.js +27 -29
  62. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  63. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -0
  64. package/lib/components/ToggleButton/useToggleButtonStyles.js +13 -10
  65. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  66. package/lib-commonjs/Button.js +1 -1
  67. package/lib-commonjs/CompoundButton.js +1 -1
  68. package/lib-commonjs/MenuButton.js +1 -1
  69. package/lib-commonjs/SplitButton.js +1 -1
  70. package/lib-commonjs/ToggleButton.js +1 -1
  71. package/lib-commonjs/common/isConformant.js +3 -3
  72. package/lib-commonjs/common/isConformant.js.map +1 -1
  73. package/lib-commonjs/components/Button/Button.js +6 -6
  74. package/lib-commonjs/components/Button/Button.js.map +1 -1
  75. package/lib-commonjs/components/Button/Button.types.d.ts +1 -1
  76. package/lib-commonjs/components/Button/index.d.ts +1 -1
  77. package/lib-commonjs/components/Button/index.js +8 -2
  78. package/lib-commonjs/components/Button/index.js.map +1 -1
  79. package/lib-commonjs/components/Button/renderButton.js +12 -12
  80. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  81. package/lib-commonjs/components/Button/useButton.js +22 -26
  82. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  83. package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -0
  84. package/lib-commonjs/components/Button/useButtonStyles.js +29 -26
  85. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  86. package/lib-commonjs/components/CompoundButton/CompoundButton.js +6 -6
  87. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  88. package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
  89. package/lib-commonjs/components/CompoundButton/index.js +8 -2
  90. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  91. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +12 -12
  92. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  93. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +10 -11
  94. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  95. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -0
  96. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +43 -40
  97. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  98. package/lib-commonjs/components/MenuButton/MenuButton.js +6 -6
  99. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  100. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +5 -1
  101. package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
  102. package/lib-commonjs/components/MenuButton/index.js +8 -2
  103. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  104. package/lib-commonjs/components/MenuButton/renderMenuButton.js +12 -12
  105. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  106. package/lib-commonjs/components/MenuButton/useMenuButton.js +12 -13
  107. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  108. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -0
  109. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +9 -6
  110. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  111. package/lib-commonjs/components/SplitButton/SplitButton.js +6 -6
  112. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  113. package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
  114. package/lib-commonjs/components/SplitButton/index.js +8 -2
  115. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  116. package/lib-commonjs/components/SplitButton/renderSplitButton.js +8 -10
  117. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  118. package/lib-commonjs/components/SplitButton/useSplitButton.js +44 -49
  119. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  120. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -0
  121. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +39 -36
  122. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  123. package/lib-commonjs/components/ToggleButton/ToggleButton.js +6 -6
  124. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  125. package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
  126. package/lib-commonjs/components/ToggleButton/index.js +8 -2
  127. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  128. package/lib-commonjs/components/ToggleButton/useToggleButton.js +31 -34
  129. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  130. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -0
  131. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +17 -13
  132. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  133. package/lib-commonjs/index.js +1 -1
  134. package/package.json +9 -11
package/CHANGELOG.json CHANGED
@@ -2,7 +2,281 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 06 Oct 2021 10:36:00 GMT",
5
+ "date": "Thu, 25 Nov 2021 08:31:30 GMT",
6
+ "tag": "@fluentui/react-button_v9.0.0-beta.5",
7
+ "version": "9.0.0-beta.5",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "Humberto.Morimoto@microsoft.com",
12
+ "package": "@fluentui/react-button",
13
+ "commit": "8825574c42f414c26f9d49238be02ca7dcb44cfe",
14
+ "comment": "MenuButton: Removing tight coupling with Menu by replicating type locally."
15
+ },
16
+ {
17
+ "author": "ololubek@microsoft.com",
18
+ "package": "@fluentui/react-button",
19
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
20
+ "comment": "update react-icons dependency"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-button",
25
+ "comment": "Bump @fluentui/react-aria to v9.0.0-beta.4",
26
+ "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-button",
31
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
32
+ "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-button",
37
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
38
+ "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-button",
43
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
44
+ "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-button",
49
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
50
+ "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-button",
55
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
56
+ "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-button",
61
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
62
+ "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Fri, 12 Nov 2021 13:25:16 GMT",
69
+ "tag": "@fluentui/react-button_v9.0.0-beta.4",
70
+ "version": "9.0.0-beta.4",
71
+ "comments": {
72
+ "prerelease": [
73
+ {
74
+ "author": "olfedias@microsoft.com",
75
+ "package": "@fluentui/react-button",
76
+ "commit": "7eb7d2daebaa11dbdcd555b0b962407013a7ca80",
77
+ "comment": "export static classes for components"
78
+ },
79
+ {
80
+ "author": "gcox@microsoft.com",
81
+ "package": "@fluentui/react-button",
82
+ "commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
83
+ "comment": "Updated beta and RC components to ES2019"
84
+ },
85
+ {
86
+ "author": "Humberto.Morimoto@microsoft.com",
87
+ "package": "@fluentui/react-button",
88
+ "commit": "a4ea9b6227d2f634f85b40fe4cec10e4c391244b",
89
+ "comment": "react-button: Removing use of enzyme in the converged package."
90
+ },
91
+ {
92
+ "author": "Humberto.Morimoto@microsoft.com",
93
+ "package": "@fluentui/react-button",
94
+ "commit": "0e0cf06c34f78d54db4468a602a17b0a5a30ac87",
95
+ "comment": "Fixing incomplete comment."
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-button",
100
+ "comment": "Bump @fluentui/react-aria to v9.0.0-beta.3",
101
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@fluentui/react-button",
106
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
107
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui/react-button",
112
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
113
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
114
+ },
115
+ {
116
+ "author": "beachball",
117
+ "package": "@fluentui/react-button",
118
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
119
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
120
+ },
121
+ {
122
+ "author": "beachball",
123
+ "package": "@fluentui/react-button",
124
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
125
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
126
+ },
127
+ {
128
+ "author": "beachball",
129
+ "package": "@fluentui/react-button",
130
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
131
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
132
+ },
133
+ {
134
+ "author": "beachball",
135
+ "package": "@fluentui/react-button",
136
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
137
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
138
+ },
139
+ {
140
+ "author": "beachball",
141
+ "package": "@fluentui/react-button",
142
+ "comment": "Bump @fluentui/react-menu to v9.0.0-beta.4",
143
+ "commit": "742342e52c65066f779232e4e1302fedf0dd460d"
144
+ }
145
+ ],
146
+ "none": [
147
+ {
148
+ "author": "mgodbolt@microsoft.com",
149
+ "package": "@fluentui/react-button",
150
+ "commit": "d28932cc68561cf46a56a4300b6e18d7de8af14b",
151
+ "comment": "adding toggle and split button docs"
152
+ },
153
+ {
154
+ "author": "mgodbolt@microsoft.com",
155
+ "package": "@fluentui/react-button",
156
+ "commit": "7fafe76eb2c09f9d17a03c11ba73729d91ef411e",
157
+ "comment": "update docs descriptions"
158
+ },
159
+ {
160
+ "author": "mgodbolt@microsoft.com",
161
+ "package": "@fluentui/react-button",
162
+ "commit": "73857e89e8c403370ba723415121f2ce1e530fff",
163
+ "comment": "add docs for menu and compound button"
164
+ },
165
+ {
166
+ "author": "lingfangao@hotmail.com",
167
+ "package": "@fluentui/react-button",
168
+ "commit": "00f70581480b536e723fb69edf0ae617beac4807",
169
+ "comment": "Remove beta release tag"
170
+ }
171
+ ]
172
+ }
173
+ },
174
+ {
175
+ "date": "Wed, 27 Oct 2021 12:14:15 GMT",
176
+ "tag": "@fluentui/react-button_v9.0.0-beta.3",
177
+ "version": "9.0.0-beta.3",
178
+ "comments": {
179
+ "prerelease": [
180
+ {
181
+ "author": "gcox@microsoft.com",
182
+ "package": "@fluentui/react-button",
183
+ "commit": "1708c7b753fb7c9d6d726cfe75f07c6633caaebe",
184
+ "comment": "Removed duplicate 'Button' from story names"
185
+ },
186
+ {
187
+ "author": "peter@draxler.ml",
188
+ "package": "@fluentui/react-button",
189
+ "commit": "f6db7c8d6b7db0902775e7857b62b745be35b59a",
190
+ "comment": "added styling of documentation"
191
+ },
192
+ {
193
+ "author": "beachball",
194
+ "package": "@fluentui/react-button",
195
+ "comment": "Bump @fluentui/react-aria to v9.0.0-beta.2",
196
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
197
+ },
198
+ {
199
+ "author": "beachball",
200
+ "package": "@fluentui/react-button",
201
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.2",
202
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
203
+ },
204
+ {
205
+ "author": "beachball",
206
+ "package": "@fluentui/react-button",
207
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.3",
208
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
209
+ },
210
+ {
211
+ "author": "beachball",
212
+ "package": "@fluentui/react-button",
213
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.2",
214
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
215
+ },
216
+ {
217
+ "author": "beachball",
218
+ "package": "@fluentui/react-button",
219
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.2",
220
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
221
+ },
222
+ {
223
+ "author": "beachball",
224
+ "package": "@fluentui/react-button",
225
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2",
226
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
227
+ },
228
+ {
229
+ "author": "beachball",
230
+ "package": "@fluentui/react-button",
231
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2",
232
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
233
+ },
234
+ {
235
+ "author": "beachball",
236
+ "package": "@fluentui/react-button",
237
+ "comment": "Bump @fluentui/react-menu to v9.0.0-beta.3",
238
+ "commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
239
+ }
240
+ ],
241
+ "none": [
242
+ {
243
+ "author": "lingfangao@hotmail.com",
244
+ "package": "@fluentui/react-button",
245
+ "commit": "e2723666e63feb392712ade7aa477790a3e5b440",
246
+ "comment": "chore(Button): Make documentation exportable to codesandbox"
247
+ },
248
+ {
249
+ "author": "mgodbolt@microsoft.com",
250
+ "package": "@fluentui/react-button",
251
+ "commit": "8bcee39f3aefc8d6dc1c1eb9f27aab901e7b55c9",
252
+ "comment": "remove playground from button examples"
253
+ }
254
+ ]
255
+ }
256
+ },
257
+ {
258
+ "date": "Tue, 12 Oct 2021 19:45:58 GMT",
259
+ "tag": "@fluentui/react-button_v9.0.0-beta.2",
260
+ "version": "9.0.0-beta.2",
261
+ "comments": {
262
+ "prerelease": [
263
+ {
264
+ "author": "beachball",
265
+ "package": "@fluentui/react-button",
266
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.2",
267
+ "commit": "bdd19e2bb827fc1d8eb329e6ed48cd0542048358"
268
+ },
269
+ {
270
+ "author": "beachball",
271
+ "package": "@fluentui/react-button",
272
+ "comment": "Bump @fluentui/react-menu to v9.0.0-beta.2",
273
+ "commit": "bdd19e2bb827fc1d8eb329e6ed48cd0542048358"
274
+ }
275
+ ]
276
+ }
277
+ },
278
+ {
279
+ "date": "Wed, 06 Oct 2021 10:37:22 GMT",
6
280
  "tag": "@fluentui/react-button_v9.0.0-beta.1",
7
281
  "version": "9.0.0-beta.1",
8
282
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,77 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Wed, 06 Oct 2021 10:36:00 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 25 Nov 2021 08:31:30 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
8
+
9
+ Thu, 25 Nov 2021 08:31:30 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v9.0.0-beta.5)
11
+
12
+ ### Changes
13
+
14
+ - MenuButton: Removing tight coupling with Menu by replicating type locally. ([PR #20635](https://github.com/microsoft/fluentui/pull/20635) by Humberto.Morimoto@microsoft.com)
15
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
16
+ - Bump @fluentui/react-aria to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
17
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
18
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
20
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
21
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
22
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
23
+
24
+ ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.4)
25
+
26
+ Fri, 12 Nov 2021 13:25:16 GMT
27
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.3..@fluentui/react-button_v9.0.0-beta.4)
28
+
29
+ ### Changes
30
+
31
+ - export static classes for components ([PR #20454](https://github.com/microsoft/fluentui/pull/20454) by olfedias@microsoft.com)
32
+ - Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
33
+ - react-button: Removing use of enzyme in the converged package. ([PR #20342](https://github.com/microsoft/fluentui/pull/20342) by Humberto.Morimoto@microsoft.com)
34
+ - Fixing incomplete comment. ([PR #20273](https://github.com/microsoft/fluentui/pull/20273) by Humberto.Morimoto@microsoft.com)
35
+ - Bump @fluentui/react-aria to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
36
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
37
+ - Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
38
+ - Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
39
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
40
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
41
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
42
+ - Bump @fluentui/react-menu to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
43
+
44
+ ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.3)
45
+
46
+ Wed, 27 Oct 2021 12:14:15 GMT
47
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.2..@fluentui/react-button_v9.0.0-beta.3)
48
+
49
+ ### Changes
50
+
51
+ - Removed duplicate 'Button' from story names ([PR #20266](https://github.com/microsoft/fluentui/pull/20266) by gcox@microsoft.com)
52
+ - added styling of documentation ([PR #20193](https://github.com/microsoft/fluentui/pull/20193) by peter@draxler.ml)
53
+ - Bump @fluentui/react-aria to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
54
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
55
+ - Bump @fluentui/react-tabster to v9.0.0-beta.3 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
56
+ - Bump @fluentui/react-utilities to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
57
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
58
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
59
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
60
+ - Bump @fluentui/react-menu to v9.0.0-beta.3 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
61
+
62
+ ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.2)
63
+
64
+ Tue, 12 Oct 2021 19:45:58 GMT
65
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.1..@fluentui/react-button_v9.0.0-beta.2)
66
+
67
+ ### Changes
68
+
69
+ - Bump @fluentui/react-tabster to v9.0.0-beta.2 ([PR #20132](https://github.com/microsoft/fluentui/pull/20132) by beachball)
70
+ - Bump @fluentui/react-menu to v9.0.0-beta.2 ([PR #20132](https://github.com/microsoft/fluentui/pull/20132) by beachball)
71
+
7
72
  ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.1)
8
73
 
9
- Wed, 06 Oct 2021 10:36:00 GMT
74
+ Wed, 06 Oct 2021 10:37:22 GMT
10
75
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-alpha.101..@fluentui/react-button_v9.0.0-beta.1)
11
76
 
12
77
  ### Changes
@@ -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
 
@@ -12,6 +11,8 @@ import * as React_2 from 'react';
12
11
  */
13
12
  export declare const Button: ForwardRefComponent<ButtonProps>;
14
13
 
14
+ export declare const buttonClassName = "fui-Button";
15
+
15
16
  export declare type ButtonCommons = {
16
17
  /**
17
18
  * A button can have its content and borders styled for greater emphasis or to be subtle.
@@ -59,7 +60,7 @@ export declare type ButtonProps = ComponentProps<ButtonSlots> & Partial<ButtonCo
59
60
 
60
61
  export declare type ButtonSlots = {
61
62
  /**
62
- * Root of the component that renders as either a <button> tag.
63
+ * Root of the component that renders as either a `<button>` tag or an `<a>` tag.
63
64
  */
64
65
  root: ARIAButtonShorthandProps;
65
66
  /**
@@ -81,6 +82,8 @@ export declare type ButtonState = ComponentState<ButtonSlots> & ButtonCommons &
81
82
  */
82
83
  export declare const CompoundButton: ForwardRefComponent<CompoundButtonProps>;
83
84
 
85
+ export declare const compoundButtonClassName = "fui-CompoundButton";
86
+
84
87
  export declare type CompoundButtonProps = ComponentProps<CompoundButtonSlots> & Partial<ButtonCommons>;
85
88
 
86
89
  export declare type CompoundButtonSlots = ButtonSlots & {
@@ -101,6 +104,8 @@ export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> &
101
104
  */
102
105
  export declare const MenuButton: ForwardRefComponent<MenuButtonProps>;
103
106
 
107
+ export declare const menuButtonClassName = "fui-MenuButton";
108
+
104
109
  export declare type MenuButtonProps = ComponentProps<MenuButtonSlots> & Partial<Omit<ButtonCommons, 'iconPosition'>> & Partial<MenuTriggerChildProps>;
105
110
 
106
111
  export declare type MenuButtonSlots = ButtonSlots & {
@@ -112,6 +117,10 @@ export declare type MenuButtonSlots = ButtonSlots & {
112
117
 
113
118
  export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
114
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
+
115
124
  /**
116
125
  * Renders a Button component by passing the state defined props to the appropriate slots.
117
126
  */
@@ -140,6 +149,8 @@ export declare const renderSplitButton: (state: SplitButtonState) => JSX.Element
140
149
  */
141
150
  export declare const SplitButton: ForwardRefComponent<SplitButtonProps>;
142
151
 
152
+ export declare const splitButtonClassName = "fui-SplitButton";
153
+
143
154
  export declare type SplitButtonProps = ComponentProps<SplitButtonSlots> & Omit<ButtonProps, 'root'> & Omit<MenuButtonProps, 'root'>;
144
155
 
145
156
  export declare type SplitButtonSlots = {
@@ -164,6 +175,8 @@ export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<B
164
175
  */
165
176
  export declare const ToggleButton: ForwardRefComponent<ToggleButtonProps>;
166
177
 
178
+ export declare const toggleButtonClassName = "fui-ToggleButton";
179
+
167
180
  export declare type ToggleButtonCommons = {
168
181
  /**
169
182
  * Defines the controlled checked state of the `ToggleButton`.
@@ -1,7 +1,7 @@
1
1
  import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
2
  import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
3
  export function isConformant(testInfo) {
4
- var defaultOptions = {
4
+ const defaultOptions = {
5
5
  asPropHandlesRef: true,
6
6
  componentPath: module.parent.filename.replace('.test', ''),
7
7
  disabledTests: ['has-docblock', 'kebab-aria-attributes'],
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,MAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,aAAa,EAAE,CAAC,cAAD,EAAiB,uBAAjB,CAH4C;AAI3D,IAAA,UAAU,EAAE,eAJ+C;AAK3D,IAAA,eAAe,EAAE;AAL0C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["../../src/common/isConformant.ts"],"names":[],"mappings":"AAAA,SAAS,YAAY,IAAI,gBAAzB,QAAiD,6BAAjD;AAEA,OAAO,eAAP,MAA4B,yCAA5B;AAEA,OAAM,SAAU,YAAV,CACJ,QADI,EACqF;AAEzF,QAAM,cAAc,GAAyC;AAC3D,IAAA,gBAAgB,EAAE,IADyC;AAE3D,IAAA,aAAa,EAAE,MAAO,CAAC,MAAR,CAAgB,QAAhB,CAAyB,OAAzB,CAAiC,OAAjC,EAA0C,EAA1C,CAF4C;AAG3D,IAAA,aAAa,EAAE,CAAC,cAAD,EAAiB,uBAAjB,CAH4C;AAI3D,IAAA,UAAU,EAAE,eAJ+C;AAK3D,IAAA,eAAe,EAAE;AAL0C,GAA7D;AAQA,EAAA,gBAAgB,CAAC,cAAD,EAAiB,QAAjB,CAAhB;AACD","sourceRoot":""}
@@ -6,8 +6,8 @@ import { useButtonStyles } from './useButtonStyles';
6
6
  * Buttons give people a way to trigger an action.
7
7
  */
8
8
 
9
- export var Button = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = useButton(props, ref);
9
+ export const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
10
+ const state = useButton(props, ref);
11
11
  useButtonStyles(state);
12
12
  return renderButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
13
13
  });
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,SAAT,QAA0B,aAA1B;AACA,SAAS,eAAT,QAAgC,mBAAhC;AAIA;;AAEG;;AACH,OAAO,IAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAClF,MAAM,KAAK,GAAG,SAAS,CAAC,KAAD,EAAQ,GAAR,CAAvB;AAEA,EAAA,eAAe,CAAC,KAAD,CAAf;AAEA,SAAO,YAAY,CAAC,KAAD,CAAnB,CALkF,CAMlF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
1
+ {"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,SAAT,QAA0B,aAA1B;AACA,SAAS,eAAT,QAAgC,mBAAhC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,SAAS,CAAC,KAAD,EAAQ,GAAR,CAAvB;AAEA,EAAA,eAAe,CAAC,KAAD,CAAf;AAEA,SAAO,YAAY,CAAC,KAAD,CAAnB,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
@@ -2,7 +2,7 @@ import { ARIAButtonShorthandProps } from '@fluentui/react-aria';
2
2
  import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
3
3
  export declare type ButtonSlots = {
4
4
  /**
5
- * Root of the component that renders as either a <button> tag.
5
+ * Root of the component that renders as either a `<button>` tag or an `<a>` tag.
6
6
  */
7
7
  root: ARIAButtonShorthandProps;
8
8
  /**
@@ -2,4 +2,4 @@ export * from './Button';
2
2
  export * from './Button.types';
3
3
  export * from './renderButton';
4
4
  export * from './useButton';
5
- export { useButtonStyles } from './useButtonStyles';
5
+ export { buttonClassName, useButtonStyles } from './useButtonStyles';
@@ -2,5 +2,5 @@ export * from './Button';
2
2
  export * from './Button.types';
3
3
  export * from './renderButton';
4
4
  export * from './useButton';
5
- export { useButtonStyles } from './useButtonStyles';
5
+ export { buttonClassName, useButtonStyles } from './useButtonStyles';
6
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Button/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
@@ -1,17 +1,18 @@
1
- import { __assign } from "tslib";
2
1
  import * as React from 'react';
3
2
  import { getSlots } from '@fluentui/react-utilities';
4
3
  /**
5
4
  * Renders a Button component by passing the state defined props to the appropriate slots.
6
5
  */
7
6
 
8
- export var renderButton = function (state) {
9
- var _a = getSlots(state, ['root', 'icon']),
10
- slots = _a.slots,
11
- slotProps = _a.slotProps;
12
-
13
- var iconOnly = state.iconOnly,
14
- iconPosition = state.iconPosition;
15
- return /*#__PURE__*/React.createElement(slots.root, __assign({}, slotProps.root), iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, __assign({}, slotProps.icon)), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, __assign({}, slotProps.icon)));
7
+ export const renderButton = state => {
8
+ const {
9
+ slots,
10
+ slotProps
11
+ } = getSlots(state, ['root', 'icon']);
12
+ const {
13
+ iconOnly,
14
+ iconPosition
15
+ } = state;
16
+ return /*#__PURE__*/React.createElement(slots.root, Object.assign({}, slotProps.root), iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, Object.assign({}, slotProps.icon)));
16
17
  };
17
18
  //# 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,IAAM,YAAY,GAAG,UAAC,KAAD,EAAmB;AACvC,MAAA,EAAA,GAAuB,QAAQ,CAAc,KAAd,EAAqB,CAAC,MAAD,EAAS,MAAT,CAArB,CAA/B;AAAA,MAAE,KAAK,GAAA,EAAA,CAAA,KAAP;AAAA,MAAS,SAAS,GAAA,EAAA,CAAA,SAAlB;;AACE,MAAA,QAAQ,GAAmB,KAAK,CAAxB,QAAR;AAAA,MAAU,YAAY,GAAK,KAAK,CAAV,YAAtB;AAER,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAD/B,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,QAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
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,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAD/B,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,MAAA,CAAA,MAAA,CAAA,EAAA,EAAK,SAAS,CAAC,IAAf,CAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
@@ -6,32 +6,28 @@ import { getNativeElementProps, resolveShorthand } from '@fluentui/react-utiliti
6
6
  * @param ref - User provided ref to be passed to the Button component.
7
7
  */
8
8
 
9
- export var useButton = function (props, ref) {
10
- var appearance = props.appearance,
11
- as = props.as,
12
- _a = props.block,
13
- block = _a === void 0 ? false : _a,
14
- _b = props.disabled,
15
- disabled = _b === void 0 ? false : _b,
16
- _c = props.disabledFocusable,
17
- disabledFocusable = _c === void 0 ? false : _c,
18
- icon = props.icon,
19
- _d = props.iconPosition,
20
- iconPosition = _d === void 0 ? 'before' : _d,
21
- _e = props.shape,
22
- shape = _e === void 0 ? 'rounded' : _e,
23
- _f = props.size,
24
- size = _f === void 0 ? 'medium' : _f;
25
- var iconShorthand = resolveShorthand(icon);
9
+ export const useButton = (props, ref) => {
10
+ const {
11
+ appearance,
12
+ as,
13
+ block = false,
14
+ disabled = false,
15
+ disabledFocusable = false,
16
+ icon,
17
+ iconPosition = 'before',
18
+ shape = 'rounded',
19
+ size = 'medium'
20
+ } = props;
21
+ const iconShorthand = resolveShorthand(icon);
26
22
  return {
27
23
  // Props passed at the top-level
28
- appearance: appearance,
29
- block: block,
30
- disabled: disabled,
31
- disabledFocusable: disabledFocusable,
32
- iconPosition: iconPosition,
33
- shape: shape,
34
- size: size,
24
+ appearance,
25
+ block,
26
+ disabled,
27
+ disabledFocusable,
28
+ iconPosition,
29
+ shape,
30
+ size,
35
31
  // State calculated from a set of props
36
32
  iconOnly: Boolean((iconShorthand === null || iconShorthand === void 0 ? void 0 : iconShorthand.children) && !props.children),
37
33
  // Slots definition
@@ -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,IAAM,SAAS,GAAG,UAAC,KAAD,EAAqB,GAArB,EAA0E;AAE/F,MAAA,UAAU,GASR,KAAK,CATG,UAAV;AAAA,MACA,EAAE,GAQA,KAAK,CARL,EADF;AAAA,MAEA,EAAA,GAOE,KAAK,CAPM,KAFb;AAAA,MAEA,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EAFb;AAAA,MAGA,EAAA,GAME,KAAK,CANS,QAHhB;AAAA,MAGA,QAAQ,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EAHhB;AAAA,MAIA,EAAA,GAKE,KAAK,CALkB,iBAJzB;AAAA,MAIA,iBAAiB,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,KAAH,GAAQ,EAJzB;AAAA,MAKA,IAAI,GAIF,KAAK,CAJH,IALJ;AAAA,MAMA,EAAA,GAGE,KAAK,CAHgB,YANvB;AAAA,MAMA,YAAY,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EANvB;AAAA,MAOA,EAAA,GAEE,KAAK,CAFU,KAPjB;AAAA,MAOA,KAAK,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,SAAH,GAAY,EAPjB;AAAA,MAQA,EAAA,GACE,KAAK,CADQ,IARf;AAAA,MAQA,IAAI,GAAA,EAAA,KAAA,KAAA,CAAA,GAAG,QAAH,GAAW,EARf;AAUF,MAAM,aAAa,GAAG,gBAAgB,CAAC,IAAD,CAAtC;AAEA,SAAO;AACL;AACA,IAAA,UAAU,EAAA,UAFL;AAGL,IAAA,KAAK,EAAA,KAHA;AAIL,IAAA,QAAQ,EAAA,QAJH;AAKL,IAAA,iBAAiB,EAAA,iBALZ;AAML,IAAA,YAAY,EAAA,YANP;AAOL,IAAA,KAAK,EAAA,KAPA;AAQL,IAAA,IAAI,EAAA,IARC;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,CAAC,KAAD,EAAQ;AACnB,MAAA,QAAQ,EAAE,IADS;AAEnB,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE;AAHM;AAFK,KAAR,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CA9CM","sourceRoot":""}
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,MAAM,SAAS,GAAG,CAAC,KAAD,EAAqB,GAArB,KAA2F;AAClH,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,CAAC,KAAD,EAAQ;AACnB,MAAA,QAAQ,EAAE,IADS;AAEnB,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE;AAHM;AAFK,KAAR,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CA9CM","sourceRoot":""}
@@ -1,4 +1,5 @@
1
1
  import type { ButtonState } from './Button.types';
2
+ export declare const buttonClassName = "fui-Button";
2
3
  export declare const buttonSpacing: {
3
4
  smallest: string;
4
5
  smaller: string;