@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.
- package/CHANGELOG.json +196 -1
- package/CHANGELOG.md +221 -175
- package/dist/{react-button.d.ts → index.d.ts} +22 -3
- package/lib/components/Button/Button.types.d.ts +3 -1
- package/lib/components/Button/Button.types.js.map +1 -1
- package/lib/components/Button/index.d.ts +1 -1
- package/lib/components/Button/index.js +3 -1
- package/lib/components/Button/index.js.map +1 -1
- package/lib/components/Button/useButton.js +1 -0
- package/lib/components/Button/useButton.js.map +1 -1
- package/lib/components/Button/useButtonStyles.d.ts +3 -0
- package/lib/components/Button/useButtonStyles.js +103 -57
- package/lib/components/Button/useButtonStyles.js.map +1 -1
- package/lib/components/CompoundButton/CompoundButton.d.ts +1 -1
- package/lib/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/index.js +3 -1
- package/lib/components/CompoundButton/index.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButton.js +7 -2
- package/lib/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib/components/CompoundButton/useCompoundButtonStyles.d.ts +3 -0
- package/lib/components/CompoundButton/useCompoundButtonStyles.js +22 -10
- package/lib/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib/components/MenuButton/index.d.ts +1 -1
- package/lib/components/MenuButton/index.js +3 -1
- package/lib/components/MenuButton/index.js.map +1 -1
- package/lib/components/MenuButton/useMenuButtonStyles.d.ts +3 -0
- package/lib/components/MenuButton/useMenuButtonStyles.js +5 -2
- package/lib/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib/components/SplitButton/SplitButton.types.d.ts +1 -1
- package/lib/components/SplitButton/SplitButton.types.js.map +1 -1
- package/lib/components/SplitButton/index.d.ts +1 -1
- package/lib/components/SplitButton/index.js +3 -1
- package/lib/components/SplitButton/index.js.map +1 -1
- package/lib/components/SplitButton/useSplitButton.js +1 -0
- package/lib/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
- package/lib/components/SplitButton/useSplitButtonStyles.js +17 -8
- package/lib/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib/components/ToggleButton/index.d.ts +1 -1
- package/lib/components/ToggleButton/index.js +3 -1
- package/lib/components/ToggleButton/index.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButton.d.ts +1 -1
- package/lib/components/ToggleButton/useToggleButton.js +3 -41
- package/lib/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib/components/ToggleButton/useToggleButtonStyles.d.ts +5 -0
- package/lib/components/ToggleButton/useToggleButtonStyles.js +73 -60
- package/lib/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib/index.d.ts +11 -5
- package/lib/index.js +11 -5
- package/lib/index.js.map +1 -1
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +2 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/useToggleState.d.ts +3 -0
- package/lib/utils/useToggleState.js +37 -0
- package/lib/utils/useToggleState.js.map +1 -0
- package/lib-commonjs/components/Button/Button.types.d.ts +3 -1
- package/lib-commonjs/components/Button/index.d.ts +1 -1
- package/lib-commonjs/components/Button/index.js +2 -0
- package/lib-commonjs/components/Button/index.js.map +1 -1
- package/lib-commonjs/components/Button/useButton.js +1 -0
- package/lib-commonjs/components/Button/useButton.js.map +1 -1
- package/lib-commonjs/components/Button/useButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/Button/useButtonStyles.js +104 -57
- package/lib-commonjs/components/Button/useButtonStyles.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.d.ts +1 -1
- package/lib-commonjs/components/CompoundButton/CompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/index.js +2 -0
- package/lib-commonjs/components/CompoundButton/index.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js +7 -2
- package/lib-commonjs/components/CompoundButton/useCompoundButton.js.map +1 -1
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js +22 -10
- package/lib-commonjs/components/CompoundButton/useCompoundButtonStyles.js.map +1 -1
- package/lib-commonjs/components/MenuButton/index.d.ts +1 -1
- package/lib-commonjs/components/MenuButton/index.js +2 -0
- package/lib-commonjs/components/MenuButton/index.js.map +1 -1
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js +5 -2
- package/lib-commonjs/components/MenuButton/useMenuButtonStyles.js.map +1 -1
- package/lib-commonjs/components/SplitButton/SplitButton.types.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/index.d.ts +1 -1
- package/lib-commonjs/components/SplitButton/index.js +2 -0
- package/lib-commonjs/components/SplitButton/index.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButton.js +1 -0
- package/lib-commonjs/components/SplitButton/useSplitButton.js.map +1 -1
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.d.ts +3 -0
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js +17 -8
- package/lib-commonjs/components/SplitButton/useSplitButtonStyles.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/index.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/index.js +2 -0
- package/lib-commonjs/components/ToggleButton/index.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.d.ts +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButton.js +3 -42
- package/lib-commonjs/components/ToggleButton/useToggleButton.js.map +1 -1
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.d.ts +5 -0
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js +77 -62
- package/lib-commonjs/components/ToggleButton/useToggleButtonStyles.js.map +1 -1
- package/lib-commonjs/index.d.ts +11 -5
- package/lib-commonjs/index.js +204 -6
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/index.d.ts +1 -0
- package/lib-commonjs/utils/index.js +10 -0
- package/lib-commonjs/utils/index.js.map +1 -0
- package/lib-commonjs/utils/useToggleState.d.ts +3 -0
- package/lib-commonjs/utils/useToggleState.js +48 -0
- package/lib-commonjs/utils/useToggleState.js.map +1 -0
- package/package.json +12 -22
- package/dist/demo/index.html +0 -71
- package/dist/demo/react-dom.development.js +0 -21413
- 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": "
|
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": {
|