@fluentui/react-button 0.0.0-nightlyf1be0a972820211214.1 → 0.0.0-nightlyf3017f159620220222.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/CHANGELOG.json +239 -23
  2. package/CHANGELOG.md +59 -13
  3. package/dist/react-button.d.ts +31 -36
  4. package/lib/Button.js.map +1 -1
  5. package/lib/CompoundButton.js.map +1 -1
  6. package/lib/MenuButton.js.map +1 -1
  7. package/lib/SplitButton.js.map +1 -1
  8. package/lib/ToggleButton.js.map +1 -1
  9. package/lib/components/Button/Button.js +6 -6
  10. package/lib/components/Button/Button.js.map +1 -1
  11. package/lib/components/Button/Button.types.d.ts +5 -5
  12. package/lib/components/Button/Button.types.js.map +1 -1
  13. package/lib/components/Button/index.d.ts +2 -2
  14. package/lib/components/Button/index.js +1 -2
  15. package/lib/components/Button/index.js.map +1 -1
  16. package/lib/components/Button/renderButton.d.ts +1 -1
  17. package/lib/components/Button/renderButton.js +4 -4
  18. package/lib/components/Button/renderButton.js.map +1 -1
  19. package/lib/components/Button/useButton.d.ts +1 -1
  20. package/lib/components/Button/useButton.js +1 -1
  21. package/lib/components/Button/useButton.js.map +1 -1
  22. package/lib/components/Button/useButtonStyles.d.ts +1 -9
  23. package/lib/components/Button/useButtonStyles.js +9 -18
  24. package/lib/components/Button/useButtonStyles.js.map +1 -1
  25. package/lib/components/CompoundButton/CompoundButton.js +6 -6
  26. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  27. package/lib/components/CompoundButton/CompoundButton.types.d.ts +4 -4
  28. package/lib/components/CompoundButton/CompoundButton.types.js.map +1 -1
  29. package/lib/components/CompoundButton/index.d.ts +1 -1
  30. package/lib/components/CompoundButton/index.js +1 -1
  31. package/lib/components/CompoundButton/index.js.map +1 -1
  32. package/lib/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  33. package/lib/components/CompoundButton/renderCompoundButton.js +5 -5
  34. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  35. package/lib/components/CompoundButton/useCompoundButton.d.ts +1 -1
  36. package/lib/components/CompoundButton/useCompoundButton.js +3 -3
  37. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  38. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  39. package/lib/components/CompoundButton/useCompoundButtonStyles.js +12 -12
  40. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  41. package/lib/components/MenuButton/MenuButton.js +6 -6
  42. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  43. package/lib/components/MenuButton/MenuButton.types.d.ts +3 -8
  44. package/lib/components/MenuButton/MenuButton.types.js.map +1 -1
  45. package/lib/components/MenuButton/index.d.ts +1 -1
  46. package/lib/components/MenuButton/index.js +1 -1
  47. package/lib/components/MenuButton/index.js.map +1 -1
  48. package/lib/components/MenuButton/renderMenuButton.d.ts +1 -1
  49. package/lib/components/MenuButton/renderMenuButton.js +4 -4
  50. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  51. package/lib/components/MenuButton/useMenuButton.d.ts +1 -1
  52. package/lib/components/MenuButton/useMenuButton.js +5 -5
  53. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  54. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  55. package/lib/components/MenuButton/useMenuButtonStyles.js +4 -4
  56. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  57. package/lib/components/SplitButton/SplitButton.js +6 -6
  58. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  59. package/lib/components/SplitButton/SplitButton.types.d.ts +6 -4
  60. package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
  61. package/lib/components/SplitButton/index.d.ts +1 -1
  62. package/lib/components/SplitButton/index.js +1 -1
  63. package/lib/components/SplitButton/index.js.map +1 -1
  64. package/lib/components/SplitButton/renderSplitButton.d.ts +1 -1
  65. package/lib/components/SplitButton/renderSplitButton.js +4 -4
  66. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  67. package/lib/components/SplitButton/useSplitButton.d.ts +1 -1
  68. package/lib/components/SplitButton/useSplitButton.js +17 -5
  69. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  70. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  71. package/lib/components/SplitButton/useSplitButtonStyles.js +3 -2
  72. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  73. package/lib/components/ToggleButton/ToggleButton.js +6 -6
  74. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  75. package/lib/components/ToggleButton/ToggleButton.types.d.ts +2 -1
  76. package/lib/components/ToggleButton/ToggleButton.types.js.map +1 -1
  77. package/lib/components/ToggleButton/index.d.ts +1 -1
  78. package/lib/components/ToggleButton/index.js +1 -1
  79. package/lib/components/ToggleButton/index.js.map +1 -1
  80. package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -1
  81. package/lib/components/ToggleButton/renderToggleButton.js +1 -1
  82. package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
  83. package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
  84. package/lib/components/ToggleButton/useToggleButton.js +13 -9
  85. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  86. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  87. package/lib/components/ToggleButton/useToggleButtonStyles.js +5 -4
  88. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  89. package/lib/index.js.map +1 -1
  90. package/lib-commonjs/Button.js.map +1 -1
  91. package/lib-commonjs/CompoundButton.js.map +1 -1
  92. package/lib-commonjs/MenuButton.js.map +1 -1
  93. package/lib-commonjs/SplitButton.js.map +1 -1
  94. package/lib-commonjs/ToggleButton.js.map +1 -1
  95. package/lib-commonjs/components/Button/Button.js +3 -3
  96. package/lib-commonjs/components/Button/Button.js.map +1 -1
  97. package/lib-commonjs/components/Button/Button.types.d.ts +5 -5
  98. package/lib-commonjs/components/Button/Button.types.js.map +1 -1
  99. package/lib-commonjs/components/Button/index.d.ts +2 -2
  100. package/lib-commonjs/components/Button/index.js +3 -5
  101. package/lib-commonjs/components/Button/index.js.map +1 -1
  102. package/lib-commonjs/components/Button/renderButton.d.ts +1 -1
  103. package/lib-commonjs/components/Button/renderButton.js +6 -6
  104. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  105. package/lib-commonjs/components/Button/useButton.d.ts +1 -1
  106. package/lib-commonjs/components/Button/useButton.js +3 -3
  107. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  108. package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -9
  109. package/lib-commonjs/components/Button/useButtonStyles.js +18 -26
  110. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  111. package/lib-commonjs/components/CompoundButton/CompoundButton.js +3 -3
  112. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  113. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +4 -4
  114. package/lib-commonjs/components/CompoundButton/CompoundButton.types.js.map +1 -1
  115. package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
  116. package/lib-commonjs/components/CompoundButton/index.js +3 -3
  117. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  118. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  119. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +7 -7
  120. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  121. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +1 -1
  122. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +4 -4
  123. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  124. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  125. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +23 -22
  126. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  127. package/lib-commonjs/components/MenuButton/MenuButton.js +3 -3
  128. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  129. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +3 -8
  130. package/lib-commonjs/components/MenuButton/MenuButton.types.js.map +1 -1
  131. package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
  132. package/lib-commonjs/components/MenuButton/index.js +3 -3
  133. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  134. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +1 -1
  135. package/lib-commonjs/components/MenuButton/renderMenuButton.js +6 -6
  136. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  137. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +1 -1
  138. package/lib-commonjs/components/MenuButton/useMenuButton.js +5 -5
  139. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  140. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  141. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +8 -8
  142. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  143. package/lib-commonjs/components/SplitButton/SplitButton.js +3 -3
  144. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  145. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +6 -4
  146. package/lib-commonjs/components/SplitButton/SplitButton.types.js.map +1 -1
  147. package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
  148. package/lib-commonjs/components/SplitButton/index.js +3 -3
  149. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  150. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +1 -1
  151. package/lib-commonjs/components/SplitButton/renderSplitButton.js +6 -6
  152. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  153. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +1 -1
  154. package/lib-commonjs/components/SplitButton/useSplitButton.js +18 -6
  155. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  156. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  157. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +11 -9
  158. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  159. package/lib-commonjs/components/ToggleButton/ToggleButton.js +3 -3
  160. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  161. package/lib-commonjs/components/ToggleButton/ToggleButton.types.d.ts +2 -1
  162. package/lib-commonjs/components/ToggleButton/ToggleButton.types.js.map +1 -1
  163. package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
  164. package/lib-commonjs/components/ToggleButton/index.js +3 -3
  165. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  166. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -1
  167. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +3 -3
  168. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
  169. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
  170. package/lib-commonjs/components/ToggleButton/useToggleButton.js +14 -10
  171. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  172. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  173. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +10 -8
  174. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  175. package/lib-commonjs/index.js.map +1 -1
  176. package/package.json +9 -11
package/CHANGELOG.json CHANGED
@@ -2,23 +2,203 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 14 Dec 2021 04:16:15 GMT",
6
- "tag": "@fluentui/react-button_v0.0.0-nightlyf1be0a972820211214.1",
7
- "version": "0.0.0-nightlyf1be0a972820211214.1",
5
+ "date": "Tue, 22 Feb 2022 04:13:21 GMT",
6
+ "tag": "@fluentui/react-button_v0.0.0-nightlyf3017f159620220222.1",
7
+ "version": "0.0.0-nightlyf3017f159620220222.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-button",
13
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca",
13
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921",
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-nightlyf3017f159620220222.1",
20
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-button",
25
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightlyf3017f159620220222.1",
26
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-button",
31
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyf3017f159620220222.1",
32
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-button",
37
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf3017f159620220222.1",
38
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-button",
43
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyf3017f159620220222.1",
44
+ "commit": "abd89ece026acc4dc588f4a78edfb26dc1b57921"
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": [
124
+ {
125
+ "author": "Humberto.Morimoto@microsoft.com",
126
+ "package": "@fluentui/react-button",
127
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
128
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
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
+ },
136
+ {
137
+ "author": "olfedias@microsoft.com",
138
+ "package": "@fluentui/react-button",
139
+ "commit": "0aa74f3ef5a64c647b5903e21af7ff5423d46182",
140
+ "comment": "Replace make-styles packages with griffel equivalents."
141
+ },
142
+ {
143
+ "author": "ololubek@microsoft.com",
144
+ "package": "@fluentui/react-button",
145
+ "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
146
+ "comment": "Update react-icons usage to resizable icons"
147
+ },
148
+ {
149
+ "author": "behowell@microsoft.com",
150
+ "package": "@fluentui/react-button",
151
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
152
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
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
+ },
16
160
  {
17
161
  "author": "ololubek@microsoft.com",
18
162
  "package": "@fluentui/react-button",
19
163
  "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
20
164
  "comment": "(fix): Update react-icons dependency to latest version"
21
165
  },
166
+ {
167
+ "author": "Humberto.Morimoto@microsoft.com",
168
+ "package": "@fluentui/react-button",
169
+ "commit": "0a4c1a9af2f8bb29c3a3544f06964a8554cd692a",
170
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens."
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
+ },
178
+ {
179
+ "author": "behowell@microsoft.com",
180
+ "package": "@fluentui/react-button",
181
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
182
+ "comment": "Remove component's shorthandProps array"
183
+ },
184
+ {
185
+ "author": "mgodbolt@microsoft.com",
186
+ "package": "@fluentui/react-button",
187
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
188
+ "comment": "remove export of commons types"
189
+ },
190
+ {
191
+ "author": "behowell@microsoft.com",
192
+ "package": "@fluentui/react-button",
193
+ "commit": "d778282b56baae57cb6b407debdbfb6beca76761",
194
+ "comment": "Remove fontSize from default menuIcon, as it is already set via css"
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
+ },
22
202
  {
23
203
  "author": "olfedias@microsoft.com",
24
204
  "package": "@fluentui/react-button",
@@ -26,60 +206,96 @@
26
206
  "comment": "update styles to not use CSS shorthands"
27
207
  },
28
208
  {
29
- "author": "beachball",
209
+ "author": "behowell@microsoft.com",
30
210
  "package": "@fluentui/react-button",
31
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyf1be0a972820211214.1",
32
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
211
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
212
+ "comment": "Refactor component Slot typings"
33
213
  },
34
214
  {
35
- "author": "beachball",
215
+ "author": "Humberto.Morimoto@microsoft.com",
36
216
  "package": "@fluentui/react-button",
37
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightlyf1be0a972820211214.1",
38
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
217
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
218
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
39
219
  },
40
220
  {
41
- "author": "beachball",
221
+ "author": "Humberto.Morimoto@microsoft.com",
42
222
  "package": "@fluentui/react-button",
43
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
44
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
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
+ },
238
+ {
239
+ "author": "Humberto.Morimoto@microsoft.com",
240
+ "package": "@fluentui/react-button",
241
+ "commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
242
+ "comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
45
243
  },
46
244
  {
47
245
  "author": "beachball",
48
246
  "package": "@fluentui/react-button",
49
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyf1be0a972820211214.1",
50
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
247
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.1",
248
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
51
249
  },
52
250
  {
53
251
  "author": "beachball",
54
252
  "package": "@fluentui/react-button",
55
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1",
56
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
253
+ "comment": "Bump @fluentui/react-aria to v9.0.0-rc.1",
254
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
57
255
  },
58
256
  {
59
257
  "author": "beachball",
60
258
  "package": "@fluentui/react-button",
61
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
62
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
259
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
260
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
63
261
  },
64
262
  {
65
263
  "author": "beachball",
66
264
  "package": "@fluentui/react-button",
67
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
68
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
265
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
266
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
69
267
  },
70
268
  {
71
269
  "author": "beachball",
72
270
  "package": "@fluentui/react-button",
73
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1",
74
- "commit": "3bda806f2deef1997fc6c070450a4a7aacb036ca"
271
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
272
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
75
273
  }
76
274
  ],
77
275
  "none": [
276
+ {
277
+ "author": "olfedias@microsoft.com",
278
+ "package": "@fluentui/react-button",
279
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
280
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
281
+ },
282
+ {
283
+ "author": "martinhochel@microsoft.com",
284
+ "package": "@fluentui/react-button",
285
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
286
+ "comment": "chore: use storybook runner for all vNext packages"
287
+ },
78
288
  {
79
289
  "author": "tkrasniqi@microsoft.com",
80
290
  "package": "@fluentui/react-button",
81
291
  "commit": "ca886fed17b4a73b9bb3b5a9e54d143062cbfa99",
82
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"
83
299
  }
84
300
  ]
85
301
  }
package/CHANGELOG.md CHANGED
@@ -1,27 +1,73 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Tue, 14 Dec 2021 04:16:15 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 22 Feb 2022 04:13:21 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyf1be0a972820211214.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlyf1be0a972820211214.1)
7
+ ## [0.0.0-nightlyf3017f159620220222.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlyf3017f159620220222.1)
8
8
 
9
- Tue, 14 Dec 2021 04:16:15 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightlyf1be0a972820211214.1)
9
+ Tue, 22 Feb 2022 04:13:21 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-rc.3..@fluentui/react-button_v0.0.0-nightlyf3017f159620220222.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by email not defined)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by email not defined)
15
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
16
+ - Bump @fluentui/react-aria to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
17
+ - Bump @fluentui/react-tabster to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
18
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) by beachball)
19
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyf3017f159620220222.1 ([commit](https://github.com/microsoft/fluentui/commit/abd89ece026acc4dc588f4a78edfb26dc1b57921) 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)
43
+
44
+ ### Changes
45
+
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)
48
+ - Replace make-styles packages with griffel equivalents. ([PR #21436](https://github.com/microsoft/fluentui/pull/21436) by olfedias@microsoft.com)
49
+ - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
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)
15
52
  - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
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)
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)
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)
16
59
  - update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
17
- - Bump @fluentui/keyboard-keys to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
18
- - Bump @fluentui/react-aria to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
19
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
20
- - Bump @fluentui/react-tabster to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
21
- - Bump @fluentui/react-utilities to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
22
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
23
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
24
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf1be0a972820211214.1 ([commit](https://github.com/microsoft/fluentui/commit/3bda806f2deef1997fc6c070450a4a7aacb036ca) by beachball)
60
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
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)
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)
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)
25
71
 
26
72
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
27
73
 
@@ -1,10 +1,9 @@
1
- import { ARIAButtonShorthandProps } from '@fluentui/react-aria';
1
+ import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
2
2
  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
- import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
6
- import type { ObjectShorthandProps } 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
- export declare type ButtonCommons = {
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.
@@ -43,7 +42,7 @@ export declare type ButtonCommons = {
43
42
  * A button can format its icon to appear before or after its content.
44
43
  * @default 'before'
45
44
  */
46
- iconPosition: 'before' | 'after';
45
+ iconPosition?: 'before' | 'after';
47
46
  /**
48
47
  * A button can be rounded, circular, or square.
49
48
  * @default 'rounded'
@@ -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: ARIAButtonShorthandProps;
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?: IntrinsicShorthandProps<'span'>;
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> & Partial<ButtonCommons>;
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?: IntrinsicShorthandProps<'span'>;
92
+ secondaryContent?: Slot<'span'>;
94
93
  /**
95
94
  * Container that wraps the children and the secondaryContent slot.
96
95
  */
97
- contentContainer: IntrinsicShorthandProps<'span'>;
96
+ contentContainer: NonNullable<Slot<'span'>>;
98
97
  };
99
98
 
100
99
  export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
@@ -106,42 +105,38 @@ 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'>> & Partial<MenuTriggerChildProps>;
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?: IntrinsicShorthandProps<'span'>;
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
  */
127
- declare const renderButton: (state: ButtonState) => JSX.Element;
128
- export { renderButton }
129
- export { renderButton as renderToggleButton }
122
+ declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
123
+ export { renderButton_unstable }
124
+ export { renderButton_unstable as renderToggleButton_unstable }
130
125
 
131
126
  /**
132
127
  * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
133
128
  */
134
- export declare const renderCompoundButton: (state: CompoundButtonState) => JSX.Element;
129
+ export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
135
130
 
136
131
  /**
137
132
  * Renders a MenuButton component by passing the state defined props to the appropriate slots.
138
133
  */
139
- export declare const renderMenuButton: (state: MenuButtonState) => JSX.Element;
134
+ export declare const renderMenuButton_unstable: (state: MenuButtonState) => JSX.Element;
140
135
 
141
136
  /**
142
137
  * Renders a SplitButton component by passing the state defined props to the appropriate slots.
143
138
  */
144
- export declare const renderSplitButton: (state: SplitButtonState) => JSX.Element;
139
+ export declare const renderSplitButton_unstable: (state: SplitButtonState) => JSX.Element;
145
140
 
146
141
  /**
147
142
  * SplitButtons are a grouping of two interactive surfaces where the interacting with the first one triggers a primary
@@ -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: IntrinsicShorthandProps<'div'>;
155
+ root: Slot<'div'>;
161
156
  /**
162
157
  * Button that opens menu with secondary actions in SplitButton.
163
158
  */
164
- menuButton?: ObjectShorthandProps<MenuButtonProps>;
159
+ menuButton?: Slot<typeof MenuButton>;
165
160
  /**
166
161
  * Button to perform primary action in SplitButton.
167
162
  */
168
- primaryActionButton?: ObjectShorthandProps<ButtonProps>;
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
- export declare type ToggleButtonCommons = {
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.
@@ -203,34 +198,34 @@ export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
203
198
  * @param props - User provided props to the Button component.
204
199
  * @param ref - User provided ref to be passed to the Button component.
205
200
  */
206
- export declare const useButton: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
201
+ export declare const useButton_unstable: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
207
202
 
208
- export declare const useButtonStyles: (state: ButtonState) => ButtonState;
203
+ export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
209
204
 
210
205
  /**
211
206
  * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
212
207
  * @param props - User provided props to the CompoundButton component.
213
208
  * @param ref - User provided ref to be passed to the CompoundButton component.
214
209
  */
215
- export declare const useCompoundButton: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
210
+ export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
216
211
 
217
- export declare const useCompoundButtonStyles: (state: CompoundButtonState) => CompoundButtonState;
212
+ export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;
218
213
 
219
214
  /**
220
215
  * Given user props, returns the final state for a MenuButton.
221
216
  */
222
- export declare const useMenuButton: ({ menuIcon, ...props }: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
217
+ export declare const useMenuButton_unstable: ({ menuIcon, ...props }: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
223
218
 
224
- export declare const useMenuButtonStyles: (state: MenuButtonState) => MenuButtonState;
219
+ export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => MenuButtonState;
225
220
 
226
221
  /**
227
222
  * Given user props, defines default props for the SplitButton and returns processed state.
228
223
  * @param props - User provided props to the SplitButton component.
229
224
  * @param ref - User provided ref to be passed to the SplitButton component.
230
225
  */
231
- export declare const useSplitButton: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
226
+ export declare const useSplitButton_unstable: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
232
227
 
233
- export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitButtonState;
228
+ export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) => SplitButtonState;
234
229
 
235
230
  /**
236
231
  * Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
@@ -238,8 +233,8 @@ export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitBut
238
233
  * @param props - User provided props to the ToggleButton component.
239
234
  * @param ref - User provided ref to be passed to the ToggleButton component.
240
235
  */
241
- export declare const useToggleButton: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
236
+ export declare const useToggleButton_unstable: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
242
237
 
243
- export declare const useToggleButtonStyles: (state: ToggleButtonState) => ToggleButtonState;
238
+ export declare const useToggleButtonStyles_unstable: (state: ToggleButtonState) => ToggleButtonState;
244
239
 
245
240
  export { }
package/lib/Button.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sourceRoot":"","sources":["../src/Button.tsx"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
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":["../src/CompoundButton.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"CompoundButton.js","sourceRoot":"../src/","sources":["CompoundButton.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/CompoundButton/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"MenuButton.js","sourceRoot":"","sources":["../src/MenuButton.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"SplitButton.js","sourceRoot":"","sources":["../src/SplitButton.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC"}
1
+ {"version":3,"file":"SplitButton.js","sourceRoot":"../src/","sources":["SplitButton.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC","sourcesContent":["export * from './components/SplitButton/index';\n"]}