@fluentui/react-button 0.0.0-nightlyc0273fdc6920211123.1 → 0.0.0-nightlyc49127232120220201.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (158) hide show
  1. package/CHANGELOG.json +164 -21
  2. package/CHANGELOG.md +40 -13
  3. package/dist/react-button.d.ts +28 -28
  4. package/lib/components/Button/Button.js +6 -6
  5. package/lib/components/Button/Button.js.map +1 -1
  6. package/lib/components/Button/Button.types.d.ts +5 -5
  7. package/lib/components/Button/index.d.ts +1 -1
  8. package/lib/components/Button/index.js +1 -1
  9. package/lib/components/Button/index.js.map +1 -1
  10. package/lib/components/Button/renderButton.d.ts +1 -1
  11. package/lib/components/Button/renderButton.js +6 -3
  12. package/lib/components/Button/renderButton.js.map +1 -1
  13. package/lib/components/Button/useButton.d.ts +1 -1
  14. package/lib/components/Button/useButton.js +3 -2
  15. package/lib/components/Button/useButton.js.map +1 -1
  16. package/lib/components/Button/useButtonStyles.d.ts +1 -1
  17. package/lib/components/Button/useButtonStyles.js +94 -59
  18. package/lib/components/Button/useButtonStyles.js.map +1 -1
  19. package/lib/components/CompoundButton/CompoundButton.js +6 -6
  20. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  21. package/lib/components/CompoundButton/CompoundButton.types.d.ts +3 -3
  22. package/lib/components/CompoundButton/index.d.ts +1 -1
  23. package/lib/components/CompoundButton/index.js +1 -1
  24. package/lib/components/CompoundButton/index.js.map +1 -1
  25. package/lib/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  26. package/lib/components/CompoundButton/renderCompoundButton.js +8 -3
  27. package/lib/components/CompoundButton/renderCompoundButton.js.map +1 -1
  28. package/lib/components/CompoundButton/useCompoundButton.d.ts +1 -1
  29. package/lib/components/CompoundButton/useCompoundButton.js +3 -3
  30. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  31. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  32. package/lib/components/CompoundButton/useCompoundButtonStyles.js +8 -6
  33. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  34. package/lib/components/MenuButton/MenuButton.js +6 -6
  35. package/lib/components/MenuButton/MenuButton.js.map +1 -1
  36. package/lib/components/MenuButton/MenuButton.types.d.ts +2 -2
  37. package/lib/components/MenuButton/index.d.ts +1 -1
  38. package/lib/components/MenuButton/index.js +1 -1
  39. package/lib/components/MenuButton/index.js.map +1 -1
  40. package/lib/components/MenuButton/renderMenuButton.d.ts +1 -1
  41. package/lib/components/MenuButton/renderMenuButton.js +6 -3
  42. package/lib/components/MenuButton/renderMenuButton.js.map +1 -1
  43. package/lib/components/MenuButton/useMenuButton.d.ts +1 -1
  44. package/lib/components/MenuButton/useMenuButton.js +5 -5
  45. package/lib/components/MenuButton/useMenuButton.js.map +1 -1
  46. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  47. package/lib/components/MenuButton/useMenuButtonStyles.js +4 -4
  48. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  49. package/lib/components/SplitButton/SplitButton.js +6 -6
  50. package/lib/components/SplitButton/SplitButton.js.map +1 -1
  51. package/lib/components/SplitButton/SplitButton.types.d.ts +6 -4
  52. package/lib/components/SplitButton/index.d.ts +1 -1
  53. package/lib/components/SplitButton/index.js +1 -1
  54. package/lib/components/SplitButton/index.js.map +1 -1
  55. package/lib/components/SplitButton/renderSplitButton.d.ts +1 -1
  56. package/lib/components/SplitButton/renderSplitButton.js +6 -3
  57. package/lib/components/SplitButton/renderSplitButton.js.map +1 -1
  58. package/lib/components/SplitButton/useSplitButton.d.ts +1 -1
  59. package/lib/components/SplitButton/useSplitButton.js +1 -1
  60. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  61. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  62. package/lib/components/SplitButton/useSplitButtonStyles.js +3 -2
  63. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  64. package/lib/components/ToggleButton/ToggleButton.js +6 -6
  65. package/lib/components/ToggleButton/ToggleButton.js.map +1 -1
  66. package/lib/components/ToggleButton/index.d.ts +1 -1
  67. package/lib/components/ToggleButton/index.js +1 -1
  68. package/lib/components/ToggleButton/index.js.map +1 -1
  69. package/lib/components/ToggleButton/renderToggleButton.d.ts +1 -1
  70. package/lib/components/ToggleButton/renderToggleButton.js +1 -1
  71. package/lib/components/ToggleButton/renderToggleButton.js.map +1 -1
  72. package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
  73. package/lib/components/ToggleButton/useToggleButton.js +8 -4
  74. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  75. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  76. package/lib/components/ToggleButton/useToggleButtonStyles.js +35 -34
  77. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  78. package/lib-commonjs/components/Button/Button.js +3 -3
  79. package/lib-commonjs/components/Button/Button.js.map +1 -1
  80. package/lib-commonjs/components/Button/Button.types.d.ts +5 -5
  81. package/lib-commonjs/components/Button/index.d.ts +1 -1
  82. package/lib-commonjs/components/Button/index.js +3 -3
  83. package/lib-commonjs/components/Button/index.js.map +1 -1
  84. package/lib-commonjs/components/Button/renderButton.d.ts +1 -1
  85. package/lib-commonjs/components/Button/renderButton.js +8 -5
  86. package/lib-commonjs/components/Button/renderButton.js.map +1 -1
  87. package/lib-commonjs/components/Button/useButton.d.ts +1 -1
  88. package/lib-commonjs/components/Button/useButton.js +5 -4
  89. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  90. package/lib-commonjs/components/Button/useButtonStyles.d.ts +1 -1
  91. package/lib-commonjs/components/Button/useButtonStyles.js +104 -68
  92. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  93. package/lib-commonjs/components/CompoundButton/CompoundButton.js +3 -3
  94. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  95. package/lib-commonjs/components/CompoundButton/CompoundButton.types.d.ts +3 -3
  96. package/lib-commonjs/components/CompoundButton/index.d.ts +1 -1
  97. package/lib-commonjs/components/CompoundButton/index.js +3 -3
  98. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  99. package/lib-commonjs/components/CompoundButton/renderCompoundButton.d.ts +1 -1
  100. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js +10 -5
  101. package/lib-commonjs/components/CompoundButton/renderCompoundButton.js.map +1 -1
  102. package/lib-commonjs/components/CompoundButton/useCompoundButton.d.ts +1 -1
  103. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +4 -4
  104. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  105. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +1 -1
  106. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +19 -16
  107. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  108. package/lib-commonjs/components/MenuButton/MenuButton.js +3 -3
  109. package/lib-commonjs/components/MenuButton/MenuButton.js.map +1 -1
  110. package/lib-commonjs/components/MenuButton/MenuButton.types.d.ts +2 -2
  111. package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
  112. package/lib-commonjs/components/MenuButton/index.js +3 -3
  113. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  114. package/lib-commonjs/components/MenuButton/renderMenuButton.d.ts +1 -1
  115. package/lib-commonjs/components/MenuButton/renderMenuButton.js +8 -5
  116. package/lib-commonjs/components/MenuButton/renderMenuButton.js.map +1 -1
  117. package/lib-commonjs/components/MenuButton/useMenuButton.d.ts +1 -1
  118. package/lib-commonjs/components/MenuButton/useMenuButton.js +5 -5
  119. package/lib-commonjs/components/MenuButton/useMenuButton.js.map +1 -1
  120. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +1 -1
  121. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +8 -8
  122. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  123. package/lib-commonjs/components/SplitButton/SplitButton.js +3 -3
  124. package/lib-commonjs/components/SplitButton/SplitButton.js.map +1 -1
  125. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +6 -4
  126. package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
  127. package/lib-commonjs/components/SplitButton/index.js +3 -3
  128. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  129. package/lib-commonjs/components/SplitButton/renderSplitButton.d.ts +1 -1
  130. package/lib-commonjs/components/SplitButton/renderSplitButton.js +8 -5
  131. package/lib-commonjs/components/SplitButton/renderSplitButton.js.map +1 -1
  132. package/lib-commonjs/components/SplitButton/useSplitButton.d.ts +1 -1
  133. package/lib-commonjs/components/SplitButton/useSplitButton.js +3 -3
  134. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  135. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +1 -1
  136. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +11 -9
  137. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  138. package/lib-commonjs/components/ToggleButton/ToggleButton.js +3 -3
  139. package/lib-commonjs/components/ToggleButton/ToggleButton.js.map +1 -1
  140. package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
  141. package/lib-commonjs/components/ToggleButton/index.js +3 -3
  142. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  143. package/lib-commonjs/components/ToggleButton/renderToggleButton.d.ts +1 -1
  144. package/lib-commonjs/components/ToggleButton/renderToggleButton.js +3 -3
  145. package/lib-commonjs/components/ToggleButton/renderToggleButton.js.map +1 -1
  146. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
  147. package/lib-commonjs/components/ToggleButton/useToggleButton.js +9 -5
  148. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  149. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +1 -1
  150. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +40 -38
  151. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  152. package/package.json +12 -13
  153. package/lib/common/isConformant.d.ts +0 -4
  154. package/lib/common/isConformant.js +0 -13
  155. package/lib/common/isConformant.js.map +0 -1
  156. package/lib-commonjs/common/isConformant.d.ts +0 -4
  157. package/lib-commonjs/common/isConformant.js +0 -24
  158. package/lib-commonjs/common/isConformant.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,17 +2,160 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 23 Nov 2021 04:19:27 GMT",
6
- "tag": "@fluentui/react-button_v0.0.0-nightlyc0273fdc6920211123.1",
7
- "version": "0.0.0-nightlyc0273fdc6920211123.1",
5
+ "date": "Tue, 01 Feb 2022 04:14:48 GMT",
6
+ "tag": "@fluentui/react-button_v0.0.0-nightlyc49127232120220201.1",
7
+ "version": "0.0.0-nightlyc49127232120220201.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-button",
13
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e",
13
+ "commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "Humberto.Morimoto@microsoft.com",
18
+ "package": "@fluentui/react-button",
19
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
20
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
21
+ },
22
+ {
23
+ "author": "Humberto.Morimoto@microsoft.com",
24
+ "package": "@fluentui/react-button",
25
+ "commit": "940de09b95aa1cefcac9a1f6bbfa9499419e3634",
26
+ "comment": "Button: Changing border radius of small button to borderRadiusMedium from borderRadiusSmall."
27
+ },
28
+ {
29
+ "author": "olfedias@microsoft.com",
30
+ "package": "@fluentui/react-button",
31
+ "commit": "0aa74f3ef5a64c647b5903e21af7ff5423d46182",
32
+ "comment": "Replace make-styles packages with griffel equivalents."
33
+ },
34
+ {
35
+ "author": "ololubek@microsoft.com",
36
+ "package": "@fluentui/react-button",
37
+ "commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
38
+ "comment": "Update react-icons usage to resizable icons"
39
+ },
40
+ {
41
+ "author": "behowell@microsoft.com",
42
+ "package": "@fluentui/react-button",
43
+ "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
44
+ "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
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
+ },
64
+ {
65
+ "author": "behowell@microsoft.com",
66
+ "package": "@fluentui/react-button",
67
+ "commit": "d778282b56baae57cb6b407debdbfb6beca76761",
68
+ "comment": "Remove fontSize from default menuIcon, as it is already set via css"
69
+ },
70
+ {
71
+ "author": "Humberto.Morimoto@microsoft.com",
72
+ "package": "@fluentui/react-button",
73
+ "commit": "f5873dc09f0c07d4adf23ad89a5f3afad37a0da9",
74
+ "comment": "ToggleButton: Stopping aria-pressed from changing when ToggleButton is disabledFocusable."
75
+ },
76
+ {
77
+ "author": "olfedias@microsoft.com",
78
+ "package": "@fluentui/react-button",
79
+ "commit": "54118b29fde686ef15fe95a3a97f3fd7edca34a3",
80
+ "comment": "update styles to not use CSS shorthands"
81
+ },
82
+ {
83
+ "author": "Humberto.Morimoto@microsoft.com",
84
+ "package": "@fluentui/react-button",
85
+ "commit": "00a5d945904c896a0664de6ba72c145a255f0848",
86
+ "comment": "Updating use of tokens.fontWeight now that we don't need to use casting."
87
+ },
88
+ {
89
+ "author": "Humberto.Morimoto@microsoft.com",
90
+ "package": "@fluentui/react-button",
91
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
92
+ "comment": "Updating based on changes to composition types."
93
+ },
94
+ {
95
+ "author": "Humberto.Morimoto@microsoft.com",
96
+ "package": "@fluentui/react-button",
97
+ "commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
98
+ "comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
99
+ },
100
+ {
101
+ "author": "beachball",
102
+ "package": "@fluentui/react-button",
103
+ "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyc49127232120220201.1",
104
+ "commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@fluentui/react-button",
109
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightlyc49127232120220201.1",
110
+ "commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
111
+ },
112
+ {
113
+ "author": "beachball",
114
+ "package": "@fluentui/react-button",
115
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyc49127232120220201.1",
116
+ "commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
117
+ },
118
+ {
119
+ "author": "beachball",
120
+ "package": "@fluentui/react-button",
121
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyc49127232120220201.1",
122
+ "commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
123
+ },
124
+ {
125
+ "author": "beachball",
126
+ "package": "@fluentui/react-button",
127
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyc49127232120220201.1",
128
+ "commit": "985f437f8ccfa01dbd5fc9c04fca50e9b18d1954"
129
+ }
130
+ ],
131
+ "none": [
132
+ {
133
+ "author": "olfedias@microsoft.com",
134
+ "package": "@fluentui/react-button",
135
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
136
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
137
+ },
138
+ {
139
+ "author": "martinhochel@microsoft.com",
140
+ "package": "@fluentui/react-button",
141
+ "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
142
+ "comment": "chore: use storybook runner for all vNext packages"
143
+ },
144
+ {
145
+ "author": "tkrasniqi@microsoft.com",
146
+ "package": "@fluentui/react-button",
147
+ "commit": "ca886fed17b4a73b9bb3b5a9e54d143062cbfa99",
148
+ "comment": "Migration to new tsconfig"
149
+ }
150
+ ]
151
+ }
152
+ },
153
+ {
154
+ "date": "Thu, 25 Nov 2021 08:34:12 GMT",
155
+ "tag": "@fluentui/react-button_v9.0.0-beta.5",
156
+ "version": "9.0.0-beta.5",
157
+ "comments": {
158
+ "prerelease": [
16
159
  {
17
160
  "author": "Humberto.Morimoto@microsoft.com",
18
161
  "package": "@fluentui/react-button",
@@ -20,52 +163,52 @@
20
163
  "comment": "MenuButton: Removing tight coupling with Menu by replicating type locally."
21
164
  },
22
165
  {
23
- "author": "beachball",
166
+ "author": "ololubek@microsoft.com",
24
167
  "package": "@fluentui/react-button",
25
- "comment": "Bump @fluentui/keyboard-keys to v0.0.0-nightlyc0273fdc6920211123.1",
26
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
168
+ "commit": "ecab13cfd6ac22657020db8f86eb89f952b0f953",
169
+ "comment": "update react-icons dependency"
27
170
  },
28
171
  {
29
172
  "author": "beachball",
30
173
  "package": "@fluentui/react-button",
31
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightlyc0273fdc6920211123.1",
32
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
174
+ "comment": "Bump @fluentui/react-aria to v9.0.0-beta.4",
175
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
33
176
  },
34
177
  {
35
178
  "author": "beachball",
36
179
  "package": "@fluentui/react-button",
37
- "comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
38
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
180
+ "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
181
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
39
182
  },
40
183
  {
41
184
  "author": "beachball",
42
185
  "package": "@fluentui/react-button",
43
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyc0273fdc6920211123.1",
44
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
186
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
187
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
45
188
  },
46
189
  {
47
190
  "author": "beachball",
48
191
  "package": "@fluentui/react-button",
49
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyc0273fdc6920211123.1",
50
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
192
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
193
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
51
194
  },
52
195
  {
53
196
  "author": "beachball",
54
197
  "package": "@fluentui/react-button",
55
- "comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
56
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
198
+ "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
199
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
57
200
  },
58
201
  {
59
202
  "author": "beachball",
60
203
  "package": "@fluentui/react-button",
61
- "comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
62
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
204
+ "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
205
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
63
206
  },
64
207
  {
65
208
  "author": "beachball",
66
209
  "package": "@fluentui/react-button",
67
- "comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyc0273fdc6920211123.1",
68
- "commit": "ecb84838dc29fe424995bfc3c2983d3cd335936e"
210
+ "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
211
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
69
212
  }
70
213
  ]
71
214
  }
package/CHANGELOG.md CHANGED
@@ -1,26 +1,53 @@
1
1
  # Change Log - @fluentui/react-button
2
2
 
3
- This log was last generated on Tue, 23 Nov 2021 04:19:27 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 01 Feb 2022 04:14:48 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightlyc0273fdc6920211123.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlyc0273fdc6920211123.1)
7
+ ## [0.0.0-nightlyc49127232120220201.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v0.0.0-nightlyc49127232120220201.1)
8
8
 
9
- Tue, 23 Nov 2021 04:19:27 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.4..@fluentui/react-button_v0.0.0-nightlyc0273fdc6920211123.1)
9
+ Tue, 01 Feb 2022 04:14:48 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-button_v9.0.0-beta.5..@fluentui/react-button_v0.0.0-nightlyc49127232120220201.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by email not defined)
15
+ - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
16
+ - 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)
17
+ - Replace make-styles packages with griffel equivalents. ([PR #21436](https://github.com/microsoft/fluentui/pull/21436) by olfedias@microsoft.com)
18
+ - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
19
+ - 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)
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
+ - 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)
24
+ - ToggleButton: Stopping aria-pressed from changing when ToggleButton is disabledFocusable. ([PR #21492](https://github.com/microsoft/fluentui/pull/21492) by Humberto.Morimoto@microsoft.com)
25
+ - update styles to not use CSS shorthands ([PR #20815](https://github.com/microsoft/fluentui/pull/20815) by olfedias@microsoft.com)
26
+ - 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)
27
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
28
+ - 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)
29
+ - Bump @fluentui/keyboard-keys to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
30
+ - Bump @fluentui/react-aria to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
31
+ - Bump @fluentui/react-tabster to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
32
+ - Bump @fluentui/react-utilities to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
33
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightlyc49127232120220201.1 ([commit](https://github.com/microsoft/fluentui/commit/985f437f8ccfa01dbd5fc9c04fca50e9b18d1954) by beachball)
34
+
35
+ ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.5)
36
+
37
+ Thu, 25 Nov 2021 08:34:12 GMT
38
+ [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
39
 
12
40
  ### Changes
13
41
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by email not defined)
15
42
  - MenuButton: Removing tight coupling with Menu by replicating type locally. ([PR #20635](https://github.com/microsoft/fluentui/pull/20635) by Humberto.Morimoto@microsoft.com)
16
- - Bump @fluentui/keyboard-keys to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
17
- - Bump @fluentui/react-aria to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
18
- - Bump @fluentui/react-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
19
- - Bump @fluentui/react-tabster to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
20
- - Bump @fluentui/react-utilities to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
21
- - Bump @fluentui/babel-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
22
- - Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
23
- - Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyc0273fdc6920211123.1 ([commit](https://github.com/microsoft/fluentui/commit/ecb84838dc29fe424995bfc3c2983d3cd335936e) by beachball)
43
+ - update react-icons dependency ([PR #20563](https://github.com/microsoft/fluentui/pull/20563) by ololubek@microsoft.com)
44
+ - Bump @fluentui/react-aria to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
45
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
46
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
47
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
48
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
49
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
50
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
24
51
 
25
52
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-button_v9.0.0-beta.4)
26
53
 
@@ -1,9 +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
+ import type { ComponentSlotProps } from '@fluentui/react-utilities';
3
4
  import type { ComponentState } from '@fluentui/react-utilities';
4
5
  import { ForwardRefComponent } from '@fluentui/react-utilities';
5
- import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
6
- import type { ObjectShorthandProps } from '@fluentui/react-utilities';
6
+ import type { IntrinsicSlotProps } from '@fluentui/react-utilities';
7
7
  import * as React_2 from 'react';
8
8
 
9
9
  /**
@@ -43,7 +43,7 @@ export declare type ButtonCommons = {
43
43
  * A button can format its icon to appear before or after its content.
44
44
  * @default 'before'
45
45
  */
46
- iconPosition: 'before' | 'after';
46
+ iconPosition?: 'before' | 'after';
47
47
  /**
48
48
  * A button can be rounded, circular, or square.
49
49
  * @default 'rounded'
@@ -62,11 +62,11 @@ export declare type ButtonSlots = {
62
62
  /**
63
63
  * Root of the component that renders as either a `<button>` tag or an `<a>` tag.
64
64
  */
65
- root: ARIAButtonShorthandProps;
65
+ root: ARIAButtonSlotProps;
66
66
  /**
67
67
  * Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
68
68
  */
69
- icon?: IntrinsicShorthandProps<'span'>;
69
+ icon?: IntrinsicSlotProps<'span'>;
70
70
  };
71
71
 
72
72
  export declare type ButtonState = ComponentState<ButtonSlots> & ButtonCommons & {
@@ -90,11 +90,11 @@ export declare type CompoundButtonSlots = ButtonSlots & {
90
90
  /**
91
91
  * Second line of text that describes the action this button takes.
92
92
  */
93
- secondaryContent?: IntrinsicShorthandProps<'span'>;
93
+ secondaryContent?: IntrinsicSlotProps<'span'>;
94
94
  /**
95
95
  * Container that wraps the children and the secondaryContent slot.
96
96
  */
97
- contentContainer: IntrinsicShorthandProps<'span'>;
97
+ contentContainer: IntrinsicSlotProps<'span'>;
98
98
  };
99
99
 
100
100
  export declare type CompoundButtonState = ComponentState<CompoundButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components'>;
@@ -112,7 +112,7 @@ export declare type MenuButtonSlots = ButtonSlots & {
112
112
  /**
113
113
  * Menu icon that indicates that this button has a menu that can be expanded.
114
114
  */
115
- menuIcon?: IntrinsicShorthandProps<'span'>;
115
+ menuIcon?: IntrinsicSlotProps<'span'>;
116
116
  };
117
117
 
118
118
  export declare type MenuButtonState = ComponentState<MenuButtonSlots> & Omit<ButtonState, keyof ButtonSlots | 'components' | 'iconPosition'>;
@@ -124,24 +124,24 @@ declare type MenuTriggerChildProps = Pick<React_2.HTMLAttributes<HTMLElement>, '
124
124
  /**
125
125
  * Renders a Button component by passing the state defined props to the appropriate slots.
126
126
  */
127
- declare const renderButton: (state: ButtonState) => JSX.Element;
128
- export { renderButton }
129
- export { renderButton as renderToggleButton }
127
+ declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
128
+ export { renderButton_unstable }
129
+ export { renderButton_unstable as renderToggleButton_unstable }
130
130
 
131
131
  /**
132
132
  * Renders a CompoundButton component by passing the state defined props to the appropriate slots.
133
133
  */
134
- export declare const renderCompoundButton: (state: CompoundButtonState) => JSX.Element;
134
+ export declare const renderCompoundButton_unstable: (state: CompoundButtonState) => JSX.Element;
135
135
 
136
136
  /**
137
137
  * Renders a MenuButton component by passing the state defined props to the appropriate slots.
138
138
  */
139
- export declare const renderMenuButton: (state: MenuButtonState) => JSX.Element;
139
+ export declare const renderMenuButton_unstable: (state: MenuButtonState) => JSX.Element;
140
140
 
141
141
  /**
142
142
  * Renders a SplitButton component by passing the state defined props to the appropriate slots.
143
143
  */
144
- export declare const renderSplitButton: (state: SplitButtonState) => JSX.Element;
144
+ export declare const renderSplitButton_unstable: (state: SplitButtonState) => JSX.Element;
145
145
 
146
146
  /**
147
147
  * SplitButtons are a grouping of two interactive surfaces where the interacting with the first one triggers a primary
@@ -157,15 +157,15 @@ export declare type SplitButtonSlots = {
157
157
  /**
158
158
  * Root of the component that wraps the primary action button and menu button.
159
159
  */
160
- root: IntrinsicShorthandProps<'div'>;
160
+ root: IntrinsicSlotProps<'div'>;
161
161
  /**
162
162
  * Button that opens menu with secondary actions in SplitButton.
163
163
  */
164
- menuButton?: ObjectShorthandProps<MenuButtonProps>;
164
+ menuButton?: ComponentSlotProps<typeof MenuButton>;
165
165
  /**
166
166
  * Button to perform primary action in SplitButton.
167
167
  */
168
- primaryActionButton?: ObjectShorthandProps<ButtonProps>;
168
+ primaryActionButton?: ComponentSlotProps<typeof Button>;
169
169
  };
170
170
 
171
171
  export declare type SplitButtonState = ComponentState<SplitButtonSlots> & Omit<ButtonState, 'components' | 'iconOnly' | 'root'> & Omit<MenuButtonState, 'components' | 'iconOnly' | 'root'>;
@@ -203,34 +203,34 @@ export declare type ToggleButtonState = ButtonState & ToggleButtonCommons;
203
203
  * @param props - User provided props to the Button component.
204
204
  * @param ref - User provided ref to be passed to the Button component.
205
205
  */
206
- export declare const useButton: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
206
+ export declare const useButton_unstable: (props: ButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
207
207
 
208
- export declare const useButtonStyles: (state: ButtonState) => ButtonState;
208
+ export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;
209
209
 
210
210
  /**
211
211
  * Given user props, defines default props for the CompoundButton, calls useButtonState, and returns processed state.
212
212
  * @param props - User provided props to the CompoundButton component.
213
213
  * @param ref - User provided ref to be passed to the CompoundButton component.
214
214
  */
215
- export declare const useCompoundButton: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
215
+ export declare const useCompoundButton_unstable: ({ contentContainer, secondaryContent, ...props }: CompoundButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => CompoundButtonState;
216
216
 
217
- export declare const useCompoundButtonStyles: (state: CompoundButtonState) => CompoundButtonState;
217
+ export declare const useCompoundButtonStyles_unstable: (state: CompoundButtonState) => CompoundButtonState;
218
218
 
219
219
  /**
220
220
  * Given user props, returns the final state for a MenuButton.
221
221
  */
222
- export declare const useMenuButton: ({ menuIcon, ...props }: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
222
+ export declare const useMenuButton_unstable: ({ menuIcon, ...props }: MenuButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => MenuButtonState;
223
223
 
224
- export declare const useMenuButtonStyles: (state: MenuButtonState) => MenuButtonState;
224
+ export declare const useMenuButtonStyles_unstable: (state: MenuButtonState) => MenuButtonState;
225
225
 
226
226
  /**
227
227
  * Given user props, defines default props for the SplitButton and returns processed state.
228
228
  * @param props - User provided props to the SplitButton component.
229
229
  * @param ref - User provided ref to be passed to the SplitButton component.
230
230
  */
231
- export declare const useSplitButton: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
231
+ export declare const useSplitButton_unstable: (props: SplitButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => SplitButtonState;
232
232
 
233
- export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitButtonState;
233
+ export declare const useSplitButtonStyles_unstable: (state: SplitButtonState) => SplitButtonState;
234
234
 
235
235
  /**
236
236
  * Given user props, defines default props for the ToggleButton, calls useButtonState and useChecked, and returns
@@ -238,8 +238,8 @@ export declare const useSplitButtonStyles: (state: SplitButtonState) => SplitBut
238
238
  * @param props - User provided props to the ToggleButton component.
239
239
  * @param ref - User provided ref to be passed to the ToggleButton component.
240
240
  */
241
- export declare const useToggleButton: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
241
+ export declare const useToggleButton_unstable: ({ checked, defaultChecked, ...props }: ToggleButtonProps, ref: React_2.Ref<HTMLButtonElement | HTMLAnchorElement>) => ToggleButtonState;
242
242
 
243
- export declare const useToggleButtonStyles: (state: ToggleButtonState) => ToggleButtonState;
243
+ export declare const useToggleButtonStyles_unstable: (state: ToggleButtonState) => ToggleButtonState;
244
244
 
245
245
  export { }
@@ -1,15 +1,15 @@
1
1
  import * as React from 'react';
2
- import { renderButton } from './renderButton';
3
- import { useButton } from './useButton';
4
- import { useButtonStyles } from './useButtonStyles';
2
+ import { renderButton_unstable } from './renderButton';
3
+ import { useButton_unstable } from './useButton';
4
+ import { useButtonStyles_unstable } from './useButtonStyles';
5
5
  /**
6
6
  * Buttons give people a way to trigger an action.
7
7
  */
8
8
 
9
9
  export const Button = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useButton(props, ref);
11
- useButtonStyles(state);
12
- return renderButton(state); // Casting is required due to lack of distributive union to support unions on @types/react
10
+ const state = useButton_unstable(props, ref);
11
+ useButtonStyles_unstable(state);
12
+ return renderButton_unstable(state); // Casting is required due to lack of distributive union to support unions on @types/react
13
13
  });
14
14
  Button.displayName = 'Button';
15
15
  //# sourceMappingURL=Button.js.map
@@ -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,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":""}
1
+ {"version":3,"sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AAEA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B,CALsF,CAMtF;AACD,CAPuD,CAAjD;AASP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
@@ -1,14 +1,14 @@
1
- import { ARIAButtonShorthandProps } from '@fluentui/react-aria';
2
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
1
+ import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
2
+ import type { ComponentProps, ComponentState, IntrinsicSlotProps } from '@fluentui/react-utilities';
3
3
  export declare type ButtonSlots = {
4
4
  /**
5
5
  * Root of the component that renders as either a `<button>` tag or an `<a>` tag.
6
6
  */
7
- root: ARIAButtonShorthandProps;
7
+ root: ARIAButtonSlotProps;
8
8
  /**
9
9
  * Icon that renders either before or after the `children` as specified by the `iconPosition` prop.
10
10
  */
11
- icon?: IntrinsicShorthandProps<'span'>;
11
+ icon?: IntrinsicSlotProps<'span'>;
12
12
  };
13
13
  export declare type ButtonCommons = {
14
14
  /**
@@ -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'
@@ -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 { buttonClassName, useButtonStyles } from './useButtonStyles';
5
+ export { buttonClassName, useButtonStyles_unstable } 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 { buttonClassName, useButtonStyles } from './useButtonStyles';
5
+ export { buttonClassName, useButtonStyles_unstable } 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,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,wBAAwB,EAAE,MAAM,mBAAmB,CAAC"}
@@ -2,4 +2,4 @@ import type { ButtonState } from './Button.types';
2
2
  /**
3
3
  * Renders a Button component by passing the state defined props to the appropriate slots.
4
4
  */
5
- export declare const renderButton: (state: ButtonState) => JSX.Element;
5
+ export declare const renderButton_unstable: (state: ButtonState) => JSX.Element;
@@ -4,15 +4,18 @@ import { getSlots } from '@fluentui/react-utilities';
4
4
  * Renders a Button component by passing the state defined props to the appropriate slots.
5
5
  */
6
6
 
7
- export const renderButton = state => {
7
+ export const renderButton_unstable = 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,qBAAqB,GAAI,KAAD,IAAuB;AAC1D,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAc,KAAd,CAArC;AACA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA;AAAZ,MAA6B,KAAnC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACG,YAAY,KAAK,OAAjB,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":""}
@@ -5,4 +5,4 @@ import type { ButtonProps, ButtonState } from './Button.types';
5
5
  * @param props - User provided props to the Button component.
6
6
  * @param ref - User provided ref to be passed to the Button component.
7
7
  */
8
- export declare const useButton: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
8
+ export declare const useButton_unstable: (props: ButtonProps, ref: React.Ref<HTMLButtonElement | HTMLAnchorElement>) => ButtonState;
@@ -6,7 +6,7 @@ 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 const useButton = (props, ref) => {
9
+ export const useButton_unstable = (props, ref) => {
10
10
  const {
11
11
  appearance,
12
12
  as,
@@ -40,7 +40,8 @@ export const useButton = (props, ref) => {
40
40
  defaultProps: {
41
41
  // useARIAButton isn't working with React.Ref<HTMLButtonElement | HTMLAnchorElement>
42
42
  ref: ref,
43
- type: 'button'
43
+ type: 'button' // This is added because the default for type is 'submit'
44
+
44
45
  }
45
46
  })),
46
47
  icon: iconShorthand
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Button/useButton.ts"],"names":[],"mappings":"AACA,SAAS,aAAT,QAA8B,sBAA9B;AACA,SAAS,qBAAT,EAAgC,gBAAhC,QAAwD,2BAAxD;AAGA;;;;AAIG;;AACH,OAAO,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
+ {"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,kBAAkB,GAAG,CAChC,KADgC,EAEhC,GAFgC,KAGjB;AACf,QAAM;AACJ,IAAA,UADI;AAEJ,IAAA,EAFI;AAGJ,IAAA,KAAK,GAAG,KAHJ;AAIJ,IAAA,QAAQ,GAAG,KAJP;AAKJ,IAAA,iBAAiB,GAAG,KALhB;AAMJ,IAAA,IANI;AAOJ,IAAA,YAAY,GAAG,QAPX;AAQJ,IAAA,KAAK,GAAG,SARJ;AASJ,IAAA,IAAI,GAAG;AATH,MAUF,KAVJ;AAWA,QAAM,aAAa,GAAG,gBAAgB,CAAC,IAAD,CAAtC;AAEA,SAAO;AACL;AACA,IAAA,UAFK;AAGL,IAAA,KAHK;AAIL,IAAA,QAJK;AAKL,IAAA,iBALK;AAML,IAAA,YANK;AAOL,IAAA,KAPK;AAQL,IAAA,IARK;AAUL;AACA,IAAA,QAAQ,EAAE,OAAO,CAAC,CAAA,aAAa,KAAA,IAAb,IAAA,aAAa,KAAA,KAAA,CAAb,GAAa,KAAA,CAAb,GAAA,aAAa,CAAE,QAAf,KAA2B,CAAC,KAAK,CAAC,QAAnC,CAXZ;AAaL;AACA,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE,QADI;AAEV,MAAA,IAAI,EAAE;AAFI,KAdP;AAmBL,IAAA,IAAI,EAAE,qBAAqB,CACzB,EAAE,IAAI,QADmB,EAEzB,aAAa,CAAC,KAAD,EAAQ;AACnB,MAAA,QAAQ,EAAE,IADS;AAEnB,MAAA,YAAY,EAAE;AACZ;AACA,QAAA,GAAG,EAAE,GAFO;AAGZ,QAAA,IAAI,EAAE,QAHM,CAGI;;AAHJ;AAFK,KAAR,CAFY,CAnBtB;AA8BL,IAAA,IAAI,EAAE;AA9BD,GAAP;AAgCD,CAjDM","sourceRoot":""}
@@ -8,4 +8,4 @@ export declare const buttonSpacing: {
8
8
  large: string;
9
9
  larger: string;
10
10
  };
11
- export declare const useButtonStyles: (state: ButtonState) => ButtonState;
11
+ export declare const useButtonStyles_unstable: (state: ButtonState) => ButtonState;