@fluentui/react-button 9.0.0-rc.5 → 9.0.0-rc.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. package/CHANGELOG.json +196 -1
  2. package/CHANGELOG.md +221 -175
  3. package/dist/{react-button.d.ts → index.d.ts} +22 -3
  4. package/lib/components/Button/Button.types.d.ts +3 -1
  5. package/lib/components/Button/Button.types.js.map +1 -1
  6. package/lib/components/Button/index.d.ts +1 -1
  7. package/lib/components/Button/index.js +3 -1
  8. package/lib/components/Button/index.js.map +1 -1
  9. package/lib/components/Button/useButton.js +1 -0
  10. package/lib/components/Button/useButton.js.map +1 -1
  11. package/lib/components/Button/useButtonStyles.d.ts +3 -0
  12. package/lib/components/Button/useButtonStyles.js +103 -57
  13. package/lib/components/Button/useButtonStyles.js.map +1 -1
  14. package/lib/components/CompoundButton/CompoundButton.d.ts +1 -1
  15. package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
  16. package/lib/components/CompoundButton/index.js +3 -1
  17. package/lib/components/CompoundButton/index.js.map +1 -1
  18. package/lib/components/CompoundButton/useCompoundButton.js +7 -2
  19. package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
  20. package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +3 -0
  21. package/lib/components/CompoundButton/useCompoundButtonStyles.js +22 -10
  22. package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  23. package/lib/components/MenuButton/index.d.ts +1 -1
  24. package/lib/components/MenuButton/index.js +3 -1
  25. package/lib/components/MenuButton/index.js.map +1 -1
  26. package/lib/components/MenuButton/useMenuButtonStyles.d.ts +3 -0
  27. package/lib/components/MenuButton/useMenuButtonStyles.js +5 -2
  28. package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  29. package/lib/components/SplitButton/SplitButton.types.d.ts +1 -1
  30. package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
  31. package/lib/components/SplitButton/index.d.ts +1 -1
  32. package/lib/components/SplitButton/index.js +3 -1
  33. package/lib/components/SplitButton/index.js.map +1 -1
  34. package/lib/components/SplitButton/useSplitButton.js +1 -0
  35. package/lib/components/SplitButton/useSplitButton.js.map +1 -1
  36. package/lib/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
  37. package/lib/components/SplitButton/useSplitButtonStyles.js +17 -8
  38. package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  39. package/lib/components/ToggleButton/index.d.ts +1 -1
  40. package/lib/components/ToggleButton/index.js +3 -1
  41. package/lib/components/ToggleButton/index.js.map +1 -1
  42. package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
  43. package/lib/components/ToggleButton/useToggleButton.js +3 -41
  44. package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
  45. package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +5 -0
  46. package/lib/components/ToggleButton/useToggleButtonStyles.js +73 -60
  47. package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  48. package/lib/index.d.ts +11 -5
  49. package/lib/index.js +11 -5
  50. package/lib/index.js.map +1 -1
  51. package/lib/utils/index.d.ts +1 -0
  52. package/lib/utils/index.js +2 -0
  53. package/lib/utils/index.js.map +1 -0
  54. package/lib/utils/useToggleState.d.ts +3 -0
  55. package/lib/utils/useToggleState.js +37 -0
  56. package/lib/utils/useToggleState.js.map +1 -0
  57. package/lib-commonjs/components/Button/Button.types.d.ts +3 -1
  58. package/lib-commonjs/components/Button/index.d.ts +1 -1
  59. package/lib-commonjs/components/Button/index.js +2 -0
  60. package/lib-commonjs/components/Button/index.js.map +1 -1
  61. package/lib-commonjs/components/Button/useButton.js +1 -0
  62. package/lib-commonjs/components/Button/useButton.js.map +1 -1
  63. package/lib-commonjs/components/Button/useButtonStyles.d.ts +3 -0
  64. package/lib-commonjs/components/Button/useButtonStyles.js +104 -57
  65. package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
  66. package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +1 -1
  67. package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
  68. package/lib-commonjs/components/CompoundButton/index.js +2 -0
  69. package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
  70. package/lib-commonjs/components/CompoundButton/useCompoundButton.js +7 -2
  71. package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
  72. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +3 -0
  73. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +22 -10
  74. package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
  75. package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
  76. package/lib-commonjs/components/MenuButton/index.js +2 -0
  77. package/lib-commonjs/components/MenuButton/index.js.map +1 -1
  78. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +3 -0
  79. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +5 -2
  80. package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
  81. package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +1 -1
  82. package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
  83. package/lib-commonjs/components/SplitButton/index.js +2 -0
  84. package/lib-commonjs/components/SplitButton/index.js.map +1 -1
  85. package/lib-commonjs/components/SplitButton/useSplitButton.js +1 -0
  86. package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
  87. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
  88. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +17 -8
  89. package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
  90. package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
  91. package/lib-commonjs/components/ToggleButton/index.js +2 -0
  92. package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
  93. package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
  94. package/lib-commonjs/components/ToggleButton/useToggleButton.js +3 -42
  95. package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
  96. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +5 -0
  97. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +77 -62
  98. package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
  99. package/lib-commonjs/index.d.ts +11 -5
  100. package/lib-commonjs/index.js +204 -6
  101. package/lib-commonjs/index.js.map +1 -1
  102. package/lib-commonjs/utils/index.d.ts +1 -0
  103. package/lib-commonjs/utils/index.js +10 -0
  104. package/lib-commonjs/utils/index.js.map +1 -0
  105. package/lib-commonjs/utils/useToggleState.d.ts +3 -0
  106. package/lib-commonjs/utils/useToggleState.js +48 -0
  107. package/lib-commonjs/utils/useToggleState.js.map +1 -0
  108. package/package.json +12 -22
  109. package/dist/demo/index.html +0 -71
  110. package/dist/demo/react-dom.development.js +0 -21413
  111. package/dist/demo/react.development.js +0 -3155
package/CHANGELOG.json CHANGED
@@ -2,7 +2,202 @@
2
2
  "name": "@fluentui/react-button",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 04 Mar 2022 05:15:48 GMT",
5
+ "date": "Wed, 04 May 2022 13:24:05 GMT",
6
+ "tag": "@fluentui/react-button_v9.0.0-rc.8",
7
+ "version": "9.0.0-rc.8",
8
+ "comments": {
9
+ "none": [
10
+ {
11
+ "author": "tristan.watanabe@gmail.com",
12
+ "package": "@fluentui/react-button",
13
+ "commit": "e791a91f5f02b6dc19f178543b6a6b95d49edb46",
14
+ "comment": "react-button: Move to new common folder."
15
+ }
16
+ ],
17
+ "prerelease": [
18
+ {
19
+ "author": "beachball",
20
+ "package": "@fluentui/react-button",
21
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.5",
22
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
23
+ },
24
+ {
25
+ "author": "beachball",
26
+ "package": "@fluentui/react-button",
27
+ "comment": "Bump @fluentui/react-aria to v9.0.0-rc.7",
28
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
29
+ },
30
+ {
31
+ "author": "beachball",
32
+ "package": "@fluentui/react-button",
33
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.8",
34
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
35
+ },
36
+ {
37
+ "author": "beachball",
38
+ "package": "@fluentui/react-button",
39
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.6",
40
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
41
+ },
42
+ {
43
+ "author": "beachball",
44
+ "package": "@fluentui/react-button",
45
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.7",
46
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ {
52
+ "date": "Mon, 25 Apr 2022 09:32:16 GMT",
53
+ "tag": "@fluentui/react-button_v9.0.0-rc.7",
54
+ "version": "9.0.0-rc.7",
55
+ "comments": {
56
+ "prerelease": [
57
+ {
58
+ "author": "Humberto.Morimoto@microsoft.com",
59
+ "package": "@fluentui/react-button",
60
+ "commit": "4c11854b93b331f12cdaa7ee0628b01667acba12",
61
+ "comment": "Adding useToggleState hook to scaffold toggleable behavior for individual consumption."
62
+ },
63
+ {
64
+ "author": "jukapsia@microsoft.com",
65
+ "package": "@fluentui/react-button",
66
+ "commit": "3f8fffc216f60fb8b055461a6725d76983d131c0",
67
+ "comment": "fix(Button): Text color in HC mode for hover, active and checked states."
68
+ },
69
+ {
70
+ "author": "Humberto.Morimoto@microsoft.com",
71
+ "package": "@fluentui/react-button",
72
+ "commit": "8ca44964836cefd3c435e9cf9a6ef78ceb256258",
73
+ "comment": "Button: Stop applying active styles when mouse moves away while it is being held and improving styles in High Contrast mode."
74
+ },
75
+ {
76
+ "author": "beachball",
77
+ "package": "@fluentui/react-button",
78
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.7",
79
+ "commit": "02ca1d3c198452c1693067f5f18bd01b2ed5d6e6"
80
+ }
81
+ ],
82
+ "none": [
83
+ {
84
+ "author": "annkelle@microsoft.com",
85
+ "package": "@fluentui/react-button",
86
+ "commit": "155d4932b7cf3a544fa4f4605b5acc5cf74be763",
87
+ "comment": "Button: Use filled icons on hover."
88
+ }
89
+ ]
90
+ }
91
+ },
92
+ {
93
+ "date": "Tue, 19 Apr 2022 19:17:12 GMT",
94
+ "tag": "@fluentui/react-button_v9.0.0-rc.6",
95
+ "version": "9.0.0-rc.6",
96
+ "comments": {
97
+ "none": [
98
+ {
99
+ "author": "elcraig@microsoft.com",
100
+ "package": "@fluentui/react-button",
101
+ "commit": "b7f17e976f9e058f39c9fce4f0f9bb6eb4dfa577",
102
+ "comment": "Update React dev deps and hoist them to the repo root"
103
+ },
104
+ {
105
+ "author": "mgodbolt@microsoft.com",
106
+ "package": "@fluentui/react-button",
107
+ "commit": "905e46db07ada986fd7885531f72a71b7bbaabdc",
108
+ "comment": "create v9 api extractor config and set all v9 packags to use it, suppress forgotten export"
109
+ },
110
+ {
111
+ "author": "elcraig@microsoft.com",
112
+ "package": "@fluentui/react-button",
113
+ "commit": "13c32e184b7960671754582de21f3555bf9f02f3",
114
+ "comment": "Remove config file that's no longer needed"
115
+ }
116
+ ],
117
+ "prerelease": [
118
+ {
119
+ "author": "Humberto.Morimoto@microsoft.com",
120
+ "package": "@fluentui/react-button",
121
+ "commit": "e0660222b8d9f4f38a61b718c18d4c67e52c8df9",
122
+ "comment": "Disabling lint rule for deprecated [component]ClassName exports."
123
+ },
124
+ {
125
+ "author": "Humberto.Morimoto@microsoft.com",
126
+ "package": "@fluentui/react-button",
127
+ "commit": "1209d5881f9d9d581b481aa82979a22ce371cf8b",
128
+ "comment": "Button: Deprecating block prop."
129
+ },
130
+ {
131
+ "author": "Humberto.Morimoto@microsoft.com",
132
+ "package": "@fluentui/react-button",
133
+ "commit": "8c862ab1147fd38bc5008c85d1644f992561f89f",
134
+ "comment": "Button components: Making root a non-nullable slot."
135
+ },
136
+ {
137
+ "author": "Humberto.Morimoto@microsoft.com",
138
+ "package": "@fluentui/react-button",
139
+ "commit": "fac31825b58253b8b98c14b90090c97db2957373",
140
+ "comment": "CompoundButton: Fixing bug where component was iconOnly even when secondaryContent was being provided."
141
+ },
142
+ {
143
+ "author": "Humberto.Morimoto@microsoft.com",
144
+ "package": "@fluentui/react-button",
145
+ "commit": "6bee76a70a7490557cd2b5c2b5639ab6bed2e6a1",
146
+ "comment": "Removing star exports."
147
+ },
148
+ {
149
+ "author": "seanmonahan@microsoft.com",
150
+ "package": "@fluentui/react-button",
151
+ "commit": "086a675fd0c648944ff4048450190a0a13467de3",
152
+ "comment": "Add deprecation messages to react-button"
153
+ },
154
+ {
155
+ "author": "olfedias@microsoft.com",
156
+ "package": "@fluentui/react-button",
157
+ "commit": "e569d6e04d83cbcc6225e61db52ff81d2addd363",
158
+ "comment": "chore: Update Griffel to latest version"
159
+ },
160
+ {
161
+ "author": "seanmonahan@microsoft.com",
162
+ "package": "@fluentui/react-button",
163
+ "commit": "bea6aecfed8612f7b0664ab8bac77c5fccee1efb",
164
+ "comment": "update react-icons version to ^2.0.166-rc.3 from ^2.0.159-beta.10"
165
+ },
166
+ {
167
+ "author": "beachball",
168
+ "package": "@fluentui/react-button",
169
+ "comment": "Bump @fluentui/react-aria to v9.0.0-rc.6",
170
+ "commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
171
+ },
172
+ {
173
+ "author": "beachball",
174
+ "package": "@fluentui/react-button",
175
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.6",
176
+ "commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
177
+ },
178
+ {
179
+ "author": "beachball",
180
+ "package": "@fluentui/react-button",
181
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.5",
182
+ "commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
183
+ },
184
+ {
185
+ "author": "beachball",
186
+ "package": "@fluentui/react-button",
187
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.6",
188
+ "commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
189
+ },
190
+ {
191
+ "author": "beachball",
192
+ "package": "@fluentui/react-button",
193
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.4",
194
+ "commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
195
+ }
196
+ ]
197
+ }
198
+ },
199
+ {
200
+ "date": "Fri, 04 Mar 2022 05:17:34 GMT",
6
201
  "tag": "@fluentui/react-button_v9.0.0-rc.5",
7
202
  "version": "9.0.0-rc.5",
8
203
  "comments": {