@fluentui/react-button 0.0.0-nightly9edaf68d4420211116.1 → 0.0.0-nightlya9c3d10d9520220113.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/CHANGELOG.json +135 -22
  2. package/CHANGELOG.md +38 -14
  3. package/dist/react-button.d.ts +5 -2
  4. package/lib/components/Button/Button.types.d.ts +1 -1
  5. package/lib/components/Button/renderButton.js +5 -2
  6. package/lib/components/Button/renderButton.js.map +1 -1
  7. package/lib/components/Button/useButton.js +2 -1
  8. package/lib/components/Button/useButton.js.map +1 -1
  9. package/lib/components/Button/useButtonStyles.js +95 -60
  10. package/lib/components/Button/useButtonStyles.js.map +1 -1
  11. package/lib/components/CompoundButton/renderCompoundButton.js +7 -2
  12. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  13. package/lib/components/CompoundButton/useCompoundButtonStyles.js +5 -3
  14. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  15. package/lib/components/MenuButton/MenuButton.types.d.ts +5 -1
  16. package/lib/components/MenuButton/renderMenuButton.js +5 -2
  17. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  18. package/lib/components/MenuButton/useMenuButton.js +2 -2
  19. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  20. package/lib/components/SplitButton/renderSplitButton.js +5 -2
  21. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  22. package/lib/components/SplitButton/useSplitButtonStyles.js +1 -0
  23. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  24. package/lib/components/ToggleButton/useToggleButtonStyles.js +32 -31
  25. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  26. package/lib-commonjs/components/Button/Button.types.d.ts +1 -1
  27. package/lib-commonjs/components/Button/renderButton.js +5 -2
  28. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  29. package/lib-commonjs/components/Button/useButton.js +2 -1
  30. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  31. package/lib-commonjs/components/Button/useButtonStyles.js +95 -59
  32. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  33. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +7 -2
  34. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  35. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +5 -2
  36. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  37. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +5 -1
  38. package/lib-commonjs/components/MenuButton/renderMenuButton.js +5 -2
  39. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  40. package/lib-commonjs/components/MenuButton/useMenuButton.js +1 -1
  41. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  42. package/lib-commonjs/components/SplitButton/renderSplitButton.js +5 -2
  43. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  44. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +2 -0
  45. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  46. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +32 -30
  47. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  48. package/package.json +14 -14
  49. package/lib/common/isConformant.d.ts +0 -4
  50. package/lib/common/isConformant.js +0 -13
  51. package/lib/common/isConformant.js.map +0 -1
  52. package/lib-commonjs/common/isConformant.d.ts +0 -4
  53. package/lib-commonjs/common/isConformant.js +0 -24
  54. package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,70 +2,183 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 16 Nov 2021 04:18:26 GMT",
6
- "tag": "@fluentui/react-button_v0.0.0-nightly9edaf68d4420211116.1",
7
- "version": "0.0.0-nightly9edaf68d4420211116.1",
5
+ "date": "Thu, 13 Jan 2022 04:15:41 GMT",
6
+ "tag": "@fluentui/react-button_v0.0.0-nightlya9c3d10d9520220113.1",
7
+ "version": "0.0.0-nightlya9c3d10d9520220113.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-button",
13
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb",
13
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "behowell@microsoft.com",
18
+ "package": "@fluentui/react-button",
19
+ "commit": "d778282b56baae57cb6b407debdbfb6beca76761",
20
+ "comment": "Remove fontSize from default menuIcon, as it is already set via css"
21
+ },
22
+ {
23
+ "author": "olfedias@microsoft.com",
24
+ "package": "@fluentui/react-button",
25
+ "commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
26
+ "comment": "update styles to not use CSS shorthands"
27
+ },
28
+ {
29
+ "author": "Humberto.Morimoto@microsoft.com",
30
+ "package": "@fluentui/react-button",
31
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
32
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
33
+ },
34
+ {
35
+ "author": "Humberto.Morimoto@microsoft.com",
36
+ "package": "@fluentui/react-button",
37
+ "commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
38
+ "comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
39
+ },
40
+ {
41
+ "author": "ololubek@microsoft.com",
42
+ "package": "@fluentui/react-button",
43
+ "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
44
+ "comment": "Update react-icons usage to resizable icons"
45
+ },
46
+ {
47
+ "author": "ololubek@microsoft.com",
48
+ "package": "@fluentui/react-button",
49
+ "commit": "7cb2a5d8db1b6a1ddb638aa82d5815ab5ae84e69",
50
+ "comment": "(fix): Update react-icons dependency to latest version"
51
+ },
52
+ {
53
+ "author": "Humberto.Morimoto@microsoft.com",
54
+ "package": "@fluentui/react-button",
55
+ "commit": "0a4c1a9af2f8bb29c3a3544f06964a8554cd692a",
56
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens."
57
+ },
58
+ {
59
+ "author": "behowell@microsoft.com",
60
+ "package": "@fluentui/react-button",
61
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
62
+ "comment": "Remove component's shorthandProps array"
63
+ },
16
64
  {
17
65
  "author": "beachball",
18
66
  "package": "@fluentui/react-button",
19
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightly9edaf68d4420211116.1",
20
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
67
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlya9c3d10d9520220113.1",
68
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
21
69
  },
22
70
  {
23
71
  "author": "beachball",
24
72
  "package": "@fluentui/react-button",
25
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightly9edaf68d4420211116.1",
26
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
73
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightlya9c3d10d9520220113.1",
74
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
75
+ },
76
+ {
77
+ "author": "beachball",
78
+ "package": "@fluentui/react-button",
79
+ "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
80
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
81
+ },
82
+ {
83
+ "author": "beachball",
84
+ "package": "@fluentui/react-button",
85
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlya9c3d10d9520220113.1",
86
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
87
+ },
88
+ {
89
+ "author": "beachball",
90
+ "package": "@fluentui/react-button",
91
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlya9c3d10d9520220113.1",
92
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
93
+ },
94
+ {
95
+ "author": "beachball",
96
+ "package": "@fluentui/react-button",
97
+ "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
98
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
99
+ },
100
+ {
101
+ "author": "beachball",
102
+ "package": "@fluentui/react-button",
103
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
104
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@fluentui/react-button",
109
+ "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya9c3d10d9520220113.1",
110
+ "commit": "e5182b449d13b07c2da6a36ece6f79ec664c4075"
111
+ }
112
+ ],
113
+ "none": [
114
+ {
115
+ "author": "tkrasniqi@microsoft.com",
116
+ "package": "@fluentui/react-button",
117
+ "commit": "ca886fed17b4a73b9bb3b5a9e54d143062cbfa99",
118
+ "comment": "Migration to new tsconfig"
119
+ }
120
+ ]
121
+ }
122
+ },
123
+ {
124
+ "date": "Thu, 25 Nov 2021 08:34:12 GMT",
125
+ "tag": "@fluentui/react-button_v9.0.0-beta.5",
126
+ "version": "9.0.0-beta.5",
127
+ "comments": {
128
+ "prerelease": [
129
+ {
130
+ "author": "Humberto.Morimoto@microsoft.com",
131
+ "package": "@fluentui/react-button",
132
+ "commit": "8825574c42f414c26f9d49238be02ca7dcb44cfe",
133
+ "comment": "MenuButton: Removing tight coupling with Menu by replicating type locally."
134
+ },
135
+ {
136
+ "author": "ololubek@microsoft.com",
137
+ "package": "@fluentui/react-button",
138
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
139
+ "comment": "update react-icons dependency"
27
140
  },
28
141
  {
29
142
  "author": "beachball",
30
143
  "package": "@fluentui/react-button",
31
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
32
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
144
+ "comment": "Bump @fluentui/react-aria to v9.0.0-beta.4",
145
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
33
146
  },
34
147
  {
35
148
  "author": "beachball",
36
149
  "package": "@fluentui/react-button",
37
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly9edaf68d4420211116.1",
38
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
150
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
151
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
39
152
  },
40
153
  {
41
154
  "author": "beachball",
42
155
  "package": "@fluentui/react-button",
43
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly9edaf68d4420211116.1",
44
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
156
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
157
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
45
158
  },
46
159
  {
47
160
  "author": "beachball",
48
161
  "package": "@fluentui/react-button",
49
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
50
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
162
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
163
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
51
164
  },
52
165
  {
53
166
  "author": "beachball",
54
167
  "package": "@fluentui/react-button",
55
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
56
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
168
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
169
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
57
170
  },
58
171
  {
59
172
  "author": "beachball",
60
173
  "package": "@fluentui/react-button",
61
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly9edaf68d4420211116.1",
62
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
174
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
175
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
63
176
  },
64
177
  {
65
178
  "author": "beachball",
66
179
  "package": "@fluentui/react-button",
67
- "comment": "Bump @fluentui/react-menu to v0.0.0-nightly9edaf68d4420211116.1",
68
- "commit": "5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb"
180
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
181
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
69
182
  }
70
183
  ]
71
184
  }
package/CHANGELOG.md CHANGED
@@ -1,26 +1,50 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Tue, 16 Nov 2021 04:18:26 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 13 Jan 2022 04:15:41 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly9edaf68d4420211116.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightly9edaf68d4420211116.1)
7
+ ## [0.0.0-nightlya9c3d10d9520220113.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlya9c3d10d9520220113.1)
8
8
 
9
- Tue, 16 Nov 2021 04:18:26 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v0.0.0-nightly9edaf68d4420211116.1)
9
+ Thu, 13 Jan 2022 04:15:41 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightlya9c3d10d9520220113.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by email not defined)
15
- - Bump @fluentui/keyboard-keys to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
16
- - Bump @fluentui/react-aria to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
17
- - Bump @fluentui/react-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
18
- - Bump @fluentui/react-tabster to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
19
- - Bump @fluentui/react-utilities to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
20
- - Bump @fluentui/babel-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
21
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
22
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
23
- - Bump @fluentui/react-menu to v0.0.0-nightly9edaf68d4420211116.1 ([commit](https://github.com/microsoft/fluentui/commit/5833e6990fdc70fd5e4b99c4780af6bb12e8fdbb) by beachball)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by email not defined)
15
+ - 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)
16
+ - update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
17
+ - 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)
18
+ - 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)
19
+ - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
20
+ - (fix): Update react-icons dependency to latest version ([PR #20943](https://github.com/microsoft/fluentui/pull/20943) by ololubek@microsoft.com)
21
+ - 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)
22
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
23
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
24
+ - Bump @fluentui/react-aria to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
25
+ - Bump @fluentui/react-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
26
+ - Bump @fluentui/react-tabster to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
27
+ - Bump @fluentui/react-utilities to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
28
+ - Bump @fluentui/babel-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
29
+ - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
30
+ - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlya9c3d10d9520220113.1 ([commit](https://github.com/microsoft/fluentui/commit/e5182b449d13b07c2da6a36ece6f79ec664c4075) by beachball)
31
+
32
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
33
+
34
+ Thu, 25 Nov 2021 08:34:12 GMT
35
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v9.0.0-beta.5)
36
+
37
+ ### Changes
38
+
39
+ - MenuButton: Removing tight coupling with Menu by replicating type locally. ([PR #20635](https://github.com/microsoft/fluentui/pull/20635) by Humberto.Morimoto@microsoft.com)
40
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
41
+ - Bump @fluentui/react-aria to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
42
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
43
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
44
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
45
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
46
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
47
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
24
48
 
25
49
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.4)
26
50
 
@@ -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
 
@@ -44,7 +43,7 @@ export declare type ButtonCommons = {
44
43
  * A button can format its icon to appear before or after its content.
45
44
  * @default 'before'
46
45
  */
47
- iconPosition: 'before' | 'after';
46
+ iconPosition?: 'before' | 'after';
48
47
  /**
49
48
  * A button can be rounded, circular, or square.
50
49
  * @default 'rounded'
@@ -118,6 +117,10 @@ export declare type MenuButtonSlots = ButtonSlots & {
118
117
 
119
118
  export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
120
119
 
120
+ declare type MenuTriggerChildProps = Pick<React_2.HTMLAttributes<HTMLElement>, 'onClick' | 'onMouseEnter' | 'onMouseLeave' | 'onContextMenu' | 'onKeyDown' | 'aria-haspopup' | 'aria-expanded' | 'id'> & {
121
+ ref?: React_2.Ref<never>;
122
+ };
123
+
121
124
  /**
122
125
  * Renders a Button component by passing the state defined props to the appropriate slots.
123
126
  */
@@ -40,7 +40,7 @@ export declare type ButtonCommons = {
40
40
  * A button can format its icon to appear before or after its content.
41
41
  * @default 'before'
42
42
  */
43
- iconPosition: 'before' | 'after';
43
+ iconPosition?: 'before' | 'after';
44
44
  /**
45
45
  * A button can be rounded, circular, or square.
46
46
  * @default 'rounded'
@@ -8,11 +8,14 @@ export const renderButton = state => {
8
8
  const {
9
9
  slots,
10
10
  slotProps
11
- } = getSlots(state, ['root', 'icon']);
11
+ } = getSlots(state);
12
12
  const {
13
13
  iconOnly,
14
14
  iconPosition
15
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
+ return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
17
+ }, iconPosition !== 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
18
+ }), !iconOnly && state.root.children, iconPosition === 'after' && /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
19
+ }));
17
20
  };
18
21
  //# sourceMappingURL=renderButton.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/renderButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAGA;;AAEG;;AACH,OAAO,MAAM,YAAY,GAAI,KAAD,IAAuB;AACjD,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,EAAqB,CAAC,MAAD,EAAS,MAAT,CAArB,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,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":""}
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,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAD/B,EAEG,CAAC,QAAD,IAAa,KAAK,CAAC,IAAN,CAAW,QAF3B,EAGG,YAAY,KAAK,OAAjB,iBAA4B,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAH/B,CADF;AAOD,CAXM","sourceRoot":""}
@@ -40,7 +40,8 @@ export const useButton = (props, ref) => {
40
40
  defaultProps: {
41
41
  // useARIAButton isn't working with React.Ref<HTMLButtonElement | HTMLAnchorElement>
42
42
  ref: ref,
43
- type: 'button'
43
+ type: 'button' // This is added because the default for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