@fluentui/react-aria 9.0.0-rc.1 → 9.0.0-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,203 @@
2
2
  "name": "@fluentui/react-aria",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 10 Feb 2022 08:45:31 GMT",
5
+ "date": "Tue, 31 May 2022 21:26:44 GMT",
6
+ "tag": "@fluentui/react-aria_v9.0.0-rc.10",
7
+ "version": "9.0.0-rc.10",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "beachball",
12
+ "package": "@fluentui/react-aria",
13
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.10",
14
+ "commit": "335ebfcfd47005003901b5e319782bfe9ccd89fd"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 23 May 2022 12:14:24 GMT",
21
+ "tag": "@fluentui/react-aria_v9.0.0-rc.9",
22
+ "version": "9.0.0-rc.9",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "beachball",
27
+ "package": "@fluentui/react-aria",
28
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.9",
29
+ "commit": "8d58f08997acf595e3eb7f628123e7fa7830c394"
30
+ }
31
+ ]
32
+ }
33
+ },
34
+ {
35
+ "date": "Thu, 05 May 2022 18:26:28 GMT",
36
+ "tag": "@fluentui/react-aria_v9.0.0-rc.8",
37
+ "version": "9.0.0-rc.8",
38
+ "comments": {
39
+ "prerelease": [
40
+ {
41
+ "author": "humberto_makoto@hotmail.com",
42
+ "package": "@fluentui/react-aria",
43
+ "commit": "44e0945655df57a0986376ac8732e605f0378f22",
44
+ "comment": "Removing star exports."
45
+ },
46
+ {
47
+ "author": "martinhochel@microsoft.com",
48
+ "package": "@fluentui/react-aria",
49
+ "commit": "e465622ca241f3dd0534da50823a51e7311fd9ef",
50
+ "comment": "feat: ship rolluped only dts"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-aria",
55
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.6",
56
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
57
+ },
58
+ {
59
+ "author": "beachball",
60
+ "package": "@fluentui/react-aria",
61
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.8",
62
+ "commit": "c5abb9c480ac94d12aa644d68d30773d77f2a159"
63
+ }
64
+ ]
65
+ }
66
+ },
67
+ {
68
+ "date": "Wed, 04 May 2022 13:26:37 GMT",
69
+ "tag": "@fluentui/react-aria_v9.0.0-rc.7",
70
+ "version": "9.0.0-rc.7",
71
+ "comments": {
72
+ "none": [
73
+ {
74
+ "author": "tristan.watanabe@gmail.com",
75
+ "package": "@fluentui/react-aria",
76
+ "commit": "35dc16cc0ebb2ce181bd802b4b9002b12ea2d86f",
77
+ "comment": "react-aria: Move to new common folder."
78
+ }
79
+ ],
80
+ "prerelease": [
81
+ {
82
+ "author": "beachball",
83
+ "package": "@fluentui/react-aria",
84
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.5",
85
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
86
+ },
87
+ {
88
+ "author": "beachball",
89
+ "package": "@fluentui/react-aria",
90
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.7",
91
+ "commit": "65f94192ed3b2cde7e52b9c7e12d6f38b81965dd"
92
+ }
93
+ ]
94
+ }
95
+ },
96
+ {
97
+ "date": "Tue, 19 Apr 2022 19:17:07 GMT",
98
+ "tag": "@fluentui/react-aria_v9.0.0-rc.6",
99
+ "version": "9.0.0-rc.6",
100
+ "comments": {
101
+ "none": [
102
+ {
103
+ "author": "elcraig@microsoft.com",
104
+ "package": "@fluentui/react-aria",
105
+ "commit": "b7f17e976f9e058f39c9fce4f0f9bb6eb4dfa577",
106
+ "comment": "Update React dev deps and hoist them to the repo root"
107
+ },
108
+ {
109
+ "author": "mgodbolt@microsoft.com",
110
+ "package": "@fluentui/react-aria",
111
+ "commit": "905e46db07ada986fd7885531f72a71b7bbaabdc",
112
+ "comment": "create v9 api extractor config and set all v9 packags to use it, suppress forgotten export"
113
+ }
114
+ ],
115
+ "prerelease": [
116
+ {
117
+ "author": "beachball",
118
+ "package": "@fluentui/react-aria",
119
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.6",
120
+ "commit": "f94b48c825ca8c8b2e3b6755bdd29fe15c7d435d"
121
+ }
122
+ ]
123
+ }
124
+ },
125
+ {
126
+ "date": "Fri, 04 Mar 2022 05:17:33 GMT",
127
+ "tag": "@fluentui/react-aria_v9.0.0-rc.5",
128
+ "version": "9.0.0-rc.5",
129
+ "comments": {
130
+ "prerelease": [
131
+ {
132
+ "author": "dzearing@microsoft.com",
133
+ "package": "@fluentui/react-aria",
134
+ "commit": "f2f1c0ea948cc3517eeb442c05433eb0918def29",
135
+ "comment": "Adding explicit export maps on all consumer packages for FUIR 8 and 9."
136
+ },
137
+ {
138
+ "author": "beachball",
139
+ "package": "@fluentui/react-aria",
140
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.4",
141
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
142
+ },
143
+ {
144
+ "author": "beachball",
145
+ "package": "@fluentui/react-aria",
146
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.5",
147
+ "commit": "1494f0b620f6d5aae7f0aef33fc9e8f6eb7f8749"
148
+ }
149
+ ]
150
+ }
151
+ },
152
+ {
153
+ "date": "Tue, 01 Mar 2022 02:17:40 GMT",
154
+ "tag": "@fluentui/react-aria_v9.0.0-rc.4",
155
+ "version": "9.0.0-rc.4",
156
+ "comments": {
157
+ "prerelease": [
158
+ {
159
+ "author": "beachball",
160
+ "package": "@fluentui/react-aria",
161
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.4",
162
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
163
+ }
164
+ ]
165
+ }
166
+ },
167
+ {
168
+ "date": "Fri, 18 Feb 2022 13:35:38 GMT",
169
+ "tag": "@fluentui/react-aria_v9.0.0-rc.3",
170
+ "version": "9.0.0-rc.3",
171
+ "comments": {
172
+ "prerelease": [
173
+ {
174
+ "author": "lingfangao@hotmail.com",
175
+ "package": "@fluentui/react-aria",
176
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
177
+ "comment": "fix: Source maps contain original source code"
178
+ },
179
+ {
180
+ "author": "Humberto.Morimoto@microsoft.com",
181
+ "package": "@fluentui/react-aria",
182
+ "commit": "ca590a438b12b85d32fdf8b592ada3b0e7b2314c",
183
+ "comment": "Fixing issue in useAriaButton where passing disabledFocusable=false caused aria-disabled to be set to false and appear in DOM instead of just be undefined for that element."
184
+ },
185
+ {
186
+ "author": "beachball",
187
+ "package": "@fluentui/react-aria",
188
+ "comment": "Bump @fluentui/keyboard-keys to v9.0.0-rc.3",
189
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
190
+ },
191
+ {
192
+ "author": "beachball",
193
+ "package": "@fluentui/react-aria",
194
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
195
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
196
+ }
197
+ ]
198
+ }
199
+ },
200
+ {
201
+ "date": "Thu, 10 Feb 2022 08:52:17 GMT",
6
202
  "tag": "@fluentui/react-aria_v9.0.0-rc.1",
7
203
  "version": "9.0.0-rc.1",
8
204
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,93 @@
1
1
  # Change Log - @fluentui/react-aria
2
2
 
3
- This log was last generated on Thu, 10 Feb 2022 08:45:31 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 31 May 2022 21:26:44 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-rc.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.10)
8
+
9
+ Tue, 31 May 2022 21:26:44 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.9..@fluentui/react-aria_v9.0.0-rc.10)
11
+
12
+ ### Changes
13
+
14
+ - Bump @fluentui/react-utilities to v9.0.0-rc.10 ([PR #23325](https://github.com/microsoft/fluentui/pull/23325) by beachball)
15
+
16
+ ## [9.0.0-rc.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.9)
17
+
18
+ Mon, 23 May 2022 12:14:24 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.8..@fluentui/react-aria_v9.0.0-rc.9)
20
+
21
+ ### Changes
22
+
23
+ - Bump @fluentui/react-utilities to v9.0.0-rc.9 ([PR #23030](https://github.com/microsoft/fluentui/pull/23030) by beachball)
24
+
25
+ ## [9.0.0-rc.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.8)
26
+
27
+ Thu, 05 May 2022 18:26:28 GMT
28
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.7..@fluentui/react-aria_v9.0.0-rc.8)
29
+
30
+ ### Changes
31
+
32
+ - Removing star exports. ([PR #22798](https://github.com/microsoft/fluentui/pull/22798) by humberto_makoto@hotmail.com)
33
+ - feat: ship rolluped only dts ([PR #22823](https://github.com/microsoft/fluentui/pull/22823) by martinhochel@microsoft.com)
34
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.6 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
35
+ - Bump @fluentui/react-utilities to v9.0.0-rc.8 ([PR #22857](https://github.com/microsoft/fluentui/pull/22857) by beachball)
36
+
37
+ ## [9.0.0-rc.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.7)
38
+
39
+ Wed, 04 May 2022 13:26:37 GMT
40
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.6..@fluentui/react-aria_v9.0.0-rc.7)
41
+
42
+ ### Changes
43
+
44
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.5 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
45
+ - Bump @fluentui/react-utilities to v9.0.0-rc.7 ([PR #22786](https://github.com/microsoft/fluentui/pull/22786) by beachball)
46
+
47
+ ## [9.0.0-rc.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.6)
48
+
49
+ Tue, 19 Apr 2022 19:17:07 GMT
50
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.5..@fluentui/react-aria_v9.0.0-rc.6)
51
+
52
+ ### Changes
53
+
54
+ - Bump @fluentui/react-utilities to v9.0.0-rc.6 ([PR #21995](https://github.com/microsoft/fluentui/pull/21995) by beachball)
55
+
56
+ ## [9.0.0-rc.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.5)
57
+
58
+ Fri, 04 Mar 2022 05:17:33 GMT
59
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.4..@fluentui/react-aria_v9.0.0-rc.5)
60
+
61
+ ### Changes
62
+
63
+ - Adding explicit export maps on all consumer packages for FUIR 8 and 9. ([PR #21508](https://github.com/microsoft/fluentui/pull/21508) by dzearing@microsoft.com)
64
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.4 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
65
+ - Bump @fluentui/react-utilities to v9.0.0-rc.5 ([PR #21947](https://github.com/microsoft/fluentui/pull/21947) by beachball)
66
+
67
+ ## [9.0.0-rc.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.4)
68
+
69
+ Tue, 01 Mar 2022 02:17:40 GMT
70
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.3..@fluentui/react-aria_v9.0.0-rc.4)
71
+
72
+ ### Changes
73
+
74
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
75
+
76
+ ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.3)
77
+
78
+ Fri, 18 Feb 2022 13:35:38 GMT
79
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-rc.1..@fluentui/react-aria_v9.0.0-rc.3)
80
+
81
+ ### Changes
82
+
83
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
84
+ - Fixing issue in useAriaButton where passing disabledFocusable=false caused aria-disabled to be set to false and appear in DOM instead of just be undefined for that element. ([PR #21703](https://github.com/microsoft/fluentui/pull/21703) by Humberto.Morimoto@microsoft.com)
85
+ - Bump @fluentui/keyboard-keys to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
86
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
87
+
7
88
  ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-rc.1)
8
89
 
9
- Thu, 10 Feb 2022 08:45:31 GMT
90
+ Thu, 10 Feb 2022 08:52:17 GMT
10
91
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.4..@fluentui/react-aria_v9.0.0-rc.1)
11
92
 
12
93
  ### Changes
@@ -21,7 +102,7 @@ Thu, 10 Feb 2022 08:45:31 GMT
21
102
 
22
103
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.4)
23
104
 
24
- Thu, 25 Nov 2021 08:34:10 GMT
105
+ Thu, 25 Nov 2021 08:34:10 GMT
25
106
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.3..@fluentui/react-aria_v9.0.0-beta.4)
26
107
 
27
108
  ### Changes
@@ -33,7 +114,7 @@ Thu, 25 Nov 2021 08:34:10 GMT
33
114
 
34
115
  ## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.3)
35
116
 
36
- Fri, 12 Nov 2021 13:25:13 GMT
117
+ Fri, 12 Nov 2021 13:25:13 GMT
37
118
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.2..@fluentui/react-aria_v9.0.0-beta.3)
38
119
 
39
120
  ### Changes
@@ -46,7 +127,7 @@ Fri, 12 Nov 2021 13:25:13 GMT
46
127
 
47
128
  ## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.2)
48
129
 
49
- Wed, 27 Oct 2021 12:14:13 GMT
130
+ Wed, 27 Oct 2021 12:14:13 GMT
50
131
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-beta.1..@fluentui/react-aria_v9.0.0-beta.2)
51
132
 
52
133
  ### Changes
@@ -58,7 +139,7 @@ Wed, 27 Oct 2021 12:14:13 GMT
58
139
 
59
140
  ## [9.0.0-beta.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-beta.1)
60
141
 
61
- Wed, 06 Oct 2021 10:37:22 GMT
142
+ Wed, 06 Oct 2021 10:37:22 GMT
62
143
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.45..@fluentui/react-aria_v9.0.0-beta.1)
63
144
 
64
145
  ### Changes
@@ -71,7 +152,7 @@ Wed, 06 Oct 2021 10:37:22 GMT
71
152
 
72
153
  ## [9.0.0-alpha.45](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.45)
73
154
 
74
- Tue, 05 Oct 2021 12:47:58 GMT
155
+ Tue, 05 Oct 2021 12:47:58 GMT
75
156
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.44..@fluentui/react-aria_v9.0.0-alpha.45)
76
157
 
77
158
  ### Changes
@@ -81,7 +162,7 @@ Tue, 05 Oct 2021 12:47:58 GMT
81
162
 
82
163
  ## [9.0.0-alpha.44](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.44)
83
164
 
84
- Tue, 05 Oct 2021 09:28:07 GMT
165
+ Tue, 05 Oct 2021 09:28:07 GMT
85
166
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.43..@fluentui/react-aria_v9.0.0-alpha.44)
86
167
 
87
168
  ### Changes
@@ -92,7 +173,7 @@ Tue, 05 Oct 2021 09:28:07 GMT
92
173
 
93
174
  ## [9.0.0-alpha.43](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.43)
94
175
 
95
- Fri, 01 Oct 2021 14:13:08 GMT
176
+ Fri, 01 Oct 2021 14:13:08 GMT
96
177
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.41..@fluentui/react-aria_v9.0.0-alpha.43)
97
178
 
98
179
  ### Changes
@@ -105,7 +186,7 @@ Fri, 01 Oct 2021 14:13:08 GMT
105
186
 
106
187
  ## [9.0.0-alpha.41](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.41)
107
188
 
108
- Fri, 01 Oct 2021 12:30:46 GMT
189
+ Fri, 01 Oct 2021 12:30:46 GMT
109
190
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.40..@fluentui/react-aria_v9.0.0-alpha.41)
110
191
 
111
192
  ### Changes
@@ -114,7 +195,7 @@ Fri, 01 Oct 2021 12:30:46 GMT
114
195
 
115
196
  ## [9.0.0-alpha.40](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.40)
116
197
 
117
- Wed, 29 Sep 2021 08:06:11 GMT
198
+ Wed, 29 Sep 2021 08:06:11 GMT
118
199
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.39..@fluentui/react-aria_v9.0.0-alpha.40)
119
200
 
120
201
  ### Changes
@@ -124,7 +205,7 @@ Wed, 29 Sep 2021 08:06:11 GMT
124
205
 
125
206
  ## [9.0.0-alpha.39](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.39)
126
207
 
127
- Mon, 27 Sep 2021 08:06:00 GMT
208
+ Mon, 27 Sep 2021 08:06:00 GMT
128
209
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.38..@fluentui/react-aria_v9.0.0-alpha.39)
129
210
 
130
211
  ### Changes
@@ -135,7 +216,7 @@ Mon, 27 Sep 2021 08:06:00 GMT
135
216
 
136
217
  ## [9.0.0-alpha.38](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.38)
137
218
 
138
- Fri, 24 Sep 2021 09:17:17 GMT
219
+ Fri, 24 Sep 2021 09:17:17 GMT
139
220
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.37..@fluentui/react-aria_v9.0.0-alpha.38)
140
221
 
141
222
  ### Changes
@@ -146,7 +227,7 @@ Fri, 24 Sep 2021 09:17:17 GMT
146
227
 
147
228
  ## [9.0.0-alpha.37](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.37)
148
229
 
149
- Thu, 23 Sep 2021 08:21:34 GMT
230
+ Thu, 23 Sep 2021 08:21:34 GMT
150
231
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.36..@fluentui/react-aria_v9.0.0-alpha.37)
151
232
 
152
233
  ### Changes
@@ -157,7 +238,7 @@ Thu, 23 Sep 2021 08:21:34 GMT
157
238
 
158
239
  ## [9.0.0-alpha.36](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.36)
159
240
 
160
- Wed, 22 Sep 2021 10:10:07 GMT
241
+ Wed, 22 Sep 2021 10:10:07 GMT
161
242
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.35..@fluentui/react-aria_v9.0.0-alpha.36)
162
243
 
163
244
  ### Changes
@@ -168,7 +249,7 @@ Wed, 22 Sep 2021 10:10:07 GMT
168
249
 
169
250
  ## [9.0.0-alpha.35](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.35)
170
251
 
171
- Tue, 21 Sep 2021 07:42:34 GMT
252
+ Tue, 21 Sep 2021 07:42:34 GMT
172
253
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.34..@fluentui/react-aria_v9.0.0-alpha.35)
173
254
 
174
255
  ### Changes
@@ -178,7 +259,7 @@ Tue, 21 Sep 2021 07:42:34 GMT
178
259
 
179
260
  ## [9.0.0-alpha.34](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.34)
180
261
 
181
- Mon, 20 Sep 2021 07:36:26 GMT
262
+ Mon, 20 Sep 2021 07:36:26 GMT
182
263
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.33..@fluentui/react-aria_v9.0.0-alpha.34)
183
264
 
184
265
  ### Changes
@@ -187,7 +268,7 @@ Mon, 20 Sep 2021 07:36:26 GMT
187
268
 
188
269
  ## [9.0.0-alpha.33](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.33)
189
270
 
190
- Fri, 17 Sep 2021 07:35:26 GMT
271
+ Fri, 17 Sep 2021 07:35:26 GMT
191
272
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.32..@fluentui/react-aria_v9.0.0-alpha.33)
192
273
 
193
274
  ### Changes
@@ -196,7 +277,7 @@ Fri, 17 Sep 2021 07:35:26 GMT
196
277
 
197
278
  ## [9.0.0-alpha.32](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.32)
198
279
 
199
- Thu, 16 Sep 2021 07:38:39 GMT
280
+ Thu, 16 Sep 2021 07:38:39 GMT
200
281
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.31..@fluentui/react-aria_v9.0.0-alpha.32)
201
282
 
202
283
  ### Changes
@@ -205,7 +286,7 @@ Thu, 16 Sep 2021 07:38:39 GMT
205
286
 
206
287
  ## [9.0.0-alpha.31](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.31)
207
288
 
208
- Tue, 14 Sep 2021 20:09:02 GMT
289
+ Tue, 14 Sep 2021 20:09:02 GMT
209
290
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.30..@fluentui/react-aria_v9.0.0-alpha.31)
210
291
 
211
292
  ### Changes
@@ -214,7 +295,7 @@ Tue, 14 Sep 2021 20:09:02 GMT
214
295
 
215
296
  ## [9.0.0-alpha.30](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.30)
216
297
 
217
- Tue, 14 Sep 2021 07:38:18 GMT
298
+ Tue, 14 Sep 2021 07:38:18 GMT
218
299
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.29..@fluentui/react-aria_v9.0.0-alpha.30)
219
300
 
220
301
  ### Changes
@@ -223,7 +304,7 @@ Tue, 14 Sep 2021 07:38:18 GMT
223
304
 
224
305
  ## [9.0.0-alpha.29](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.29)
225
306
 
226
- Fri, 10 Sep 2021 16:31:53 GMT
307
+ Fri, 10 Sep 2021 16:31:53 GMT
227
308
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.28..@fluentui/react-aria_v9.0.0-alpha.29)
228
309
 
229
310
  ### Changes
@@ -233,7 +314,7 @@ Fri, 10 Sep 2021 16:31:53 GMT
233
314
 
234
315
  ## [9.0.0-alpha.28](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.28)
235
316
 
236
- Fri, 10 Sep 2021 07:39:51 GMT
317
+ Fri, 10 Sep 2021 07:39:51 GMT
237
318
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.27..@fluentui/react-aria_v9.0.0-alpha.28)
238
319
 
239
320
  ### Changes
@@ -242,7 +323,7 @@ Fri, 10 Sep 2021 07:39:51 GMT
242
323
 
243
324
  ## [9.0.0-alpha.27](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.27)
244
325
 
245
- Mon, 06 Sep 2021 07:34:53 GMT
326
+ Mon, 06 Sep 2021 07:34:53 GMT
246
327
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.26..@fluentui/react-aria_v9.0.0-alpha.27)
247
328
 
248
329
  ### Changes
@@ -251,7 +332,7 @@ Mon, 06 Sep 2021 07:34:53 GMT
251
332
 
252
333
  ## [9.0.0-alpha.26](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.26)
253
334
 
254
- Thu, 02 Sep 2021 07:36:46 GMT
335
+ Thu, 02 Sep 2021 07:36:46 GMT
255
336
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.25..@fluentui/react-aria_v9.0.0-alpha.26)
256
337
 
257
338
  ### Patches
@@ -260,7 +341,7 @@ Thu, 02 Sep 2021 07:36:46 GMT
260
341
 
261
342
  ## [9.0.0-alpha.25](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.25)
262
343
 
263
- Wed, 01 Sep 2021 07:39:56 GMT
344
+ Wed, 01 Sep 2021 07:39:56 GMT
264
345
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.24..@fluentui/react-aria_v9.0.0-alpha.25)
265
346
 
266
347
  ### Changes
@@ -269,7 +350,7 @@ Wed, 01 Sep 2021 07:39:56 GMT
269
350
 
270
351
  ## [9.0.0-alpha.24](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.24)
271
352
 
272
- Tue, 31 Aug 2021 07:37:47 GMT
353
+ Tue, 31 Aug 2021 07:37:47 GMT
273
354
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.23..@fluentui/react-aria_v9.0.0-alpha.24)
274
355
 
275
356
  ### Changes
@@ -278,7 +359,7 @@ Tue, 31 Aug 2021 07:37:47 GMT
278
359
 
279
360
  ## [9.0.0-alpha.23](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.23)
280
361
 
281
- Mon, 30 Aug 2021 07:35:05 GMT
362
+ Mon, 30 Aug 2021 07:35:05 GMT
282
363
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.22..@fluentui/react-aria_v9.0.0-alpha.23)
283
364
 
284
365
  ### Changes
@@ -287,7 +368,7 @@ Mon, 30 Aug 2021 07:35:05 GMT
287
368
 
288
369
  ## [9.0.0-alpha.22](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.22)
289
370
 
290
- Fri, 20 Aug 2021 07:37:28 GMT
371
+ Fri, 20 Aug 2021 07:37:28 GMT
291
372
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.21..@fluentui/react-aria_v9.0.0-alpha.22)
292
373
 
293
374
  ### Changes
@@ -296,7 +377,7 @@ Fri, 20 Aug 2021 07:37:28 GMT
296
377
 
297
378
  ## [9.0.0-alpha.21](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.21)
298
379
 
299
- Thu, 19 Aug 2021 07:41:35 GMT
380
+ Thu, 19 Aug 2021 07:41:35 GMT
300
381
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.20..@fluentui/react-aria_v9.0.0-alpha.21)
301
382
 
302
383
  ### Changes
@@ -305,7 +386,7 @@ Thu, 19 Aug 2021 07:41:35 GMT
305
386
 
306
387
  ## [9.0.0-alpha.20](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.20)
307
388
 
308
- Fri, 13 Aug 2021 07:36:34 GMT
389
+ Fri, 13 Aug 2021 07:36:34 GMT
309
390
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.19..@fluentui/react-aria_v9.0.0-alpha.20)
310
391
 
311
392
  ### Changes
@@ -314,7 +395,7 @@ Fri, 13 Aug 2021 07:36:34 GMT
314
395
 
315
396
  ## [9.0.0-alpha.19](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.19)
316
397
 
317
- Fri, 06 Aug 2021 07:35:14 GMT
398
+ Fri, 06 Aug 2021 07:35:14 GMT
318
399
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.18..@fluentui/react-aria_v9.0.0-alpha.19)
319
400
 
320
401
  ### Changes
@@ -323,7 +404,7 @@ Fri, 06 Aug 2021 07:35:14 GMT
323
404
 
324
405
  ## [9.0.0-alpha.18](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.18)
325
406
 
326
- Tue, 03 Aug 2021 07:39:30 GMT
407
+ Tue, 03 Aug 2021 07:39:30 GMT
327
408
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.17..@fluentui/react-aria_v9.0.0-alpha.18)
328
409
 
329
410
  ### Patches
@@ -338,7 +419,7 @@ Tue, 03 Aug 2021 07:39:30 GMT
338
419
 
339
420
  ## [9.0.0-alpha.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.17)
340
421
 
341
- Mon, 02 Aug 2021 07:36:20 GMT
422
+ Mon, 02 Aug 2021 07:36:20 GMT
342
423
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.16..@fluentui/react-aria_v9.0.0-alpha.17)
343
424
 
344
425
  ### Changes
@@ -347,7 +428,7 @@ Mon, 02 Aug 2021 07:36:20 GMT
347
428
 
348
429
  ## [9.0.0-alpha.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.16)
349
430
 
350
- Mon, 26 Jul 2021 07:37:30 GMT
431
+ Mon, 26 Jul 2021 07:37:30 GMT
351
432
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.15..@fluentui/react-aria_v9.0.0-alpha.16)
352
433
 
353
434
  ### Changes
@@ -356,7 +437,7 @@ Mon, 26 Jul 2021 07:37:30 GMT
356
437
 
357
438
  ## [9.0.0-alpha.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.15)
358
439
 
359
- Fri, 23 Jul 2021 07:38:19 GMT
440
+ Fri, 23 Jul 2021 07:38:19 GMT
360
441
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.14..@fluentui/react-aria_v9.0.0-alpha.15)
361
442
 
362
443
  ### Changes
@@ -365,7 +446,7 @@ Fri, 23 Jul 2021 07:38:19 GMT
365
446
 
366
447
  ## [9.0.0-alpha.14](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.14)
367
448
 
368
- Thu, 22 Jul 2021 07:36:55 GMT
449
+ Thu, 22 Jul 2021 07:36:55 GMT
369
450
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.13..@fluentui/react-aria_v9.0.0-alpha.14)
370
451
 
371
452
  ### Changes
@@ -374,7 +455,7 @@ Thu, 22 Jul 2021 07:36:55 GMT
374
455
 
375
456
  ## [9.0.0-alpha.13](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.13)
376
457
 
377
- Tue, 20 Jul 2021 22:23:17 GMT
458
+ Tue, 20 Jul 2021 22:23:17 GMT
378
459
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.12..@fluentui/react-aria_v9.0.0-alpha.13)
379
460
 
380
461
  ### Changes
@@ -383,7 +464,7 @@ Tue, 20 Jul 2021 22:23:17 GMT
383
464
 
384
465
  ## [9.0.0-alpha.12](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.12)
385
466
 
386
- Thu, 15 Jul 2021 07:36:18 GMT
467
+ Thu, 15 Jul 2021 07:36:18 GMT
387
468
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.11..@fluentui/react-aria_v9.0.0-alpha.12)
388
469
 
389
470
  ### Changes
@@ -392,7 +473,7 @@ Thu, 15 Jul 2021 07:36:18 GMT
392
473
 
393
474
  ## [9.0.0-alpha.11](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.11)
394
475
 
395
- Tue, 13 Jul 2021 22:32:58 GMT
476
+ Tue, 13 Jul 2021 22:32:58 GMT
396
477
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.10..@fluentui/react-aria_v9.0.0-alpha.11)
397
478
 
398
479
  ### Patches
@@ -401,7 +482,7 @@ Tue, 13 Jul 2021 22:32:58 GMT
401
482
 
402
483
  ## [9.0.0-alpha.10](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.10)
403
484
 
404
- Tue, 13 Jul 2021 07:35:36 GMT
485
+ Tue, 13 Jul 2021 07:35:36 GMT
405
486
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.9..@fluentui/react-aria_v9.0.0-alpha.10)
406
487
 
407
488
  ### Changes
@@ -410,7 +491,7 @@ Tue, 13 Jul 2021 07:35:36 GMT
410
491
 
411
492
  ## [9.0.0-alpha.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.9)
412
493
 
413
- Mon, 12 Jul 2021 07:33:23 GMT
494
+ Mon, 12 Jul 2021 07:33:23 GMT
414
495
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.8..@fluentui/react-aria_v9.0.0-alpha.9)
415
496
 
416
497
  ### Changes
@@ -420,7 +501,7 @@ Mon, 12 Jul 2021 07:33:23 GMT
420
501
 
421
502
  ## [9.0.0-alpha.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.8)
422
503
 
423
- Fri, 09 Jul 2021 07:39:31 GMT
504
+ Fri, 09 Jul 2021 07:39:31 GMT
424
505
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.7..@fluentui/react-aria_v9.0.0-alpha.8)
425
506
 
426
507
  ### Patches
@@ -436,7 +517,7 @@ Fri, 09 Jul 2021 07:39:31 GMT
436
517
 
437
518
  ## [9.0.0-alpha.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.7)
438
519
 
439
- Fri, 02 Jul 2021 23:15:55 GMT
520
+ Fri, 02 Jul 2021 23:15:55 GMT
440
521
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.6..@fluentui/react-aria_v9.0.0-alpha.7)
441
522
 
442
523
  ### Changes
@@ -445,7 +526,7 @@ Fri, 02 Jul 2021 23:15:55 GMT
445
526
 
446
527
  ## [9.0.0-alpha.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.6)
447
528
 
448
- Fri, 02 Jul 2021 07:37:06 GMT
529
+ Fri, 02 Jul 2021 07:37:06 GMT
449
530
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.5..@fluentui/react-aria_v9.0.0-alpha.6)
450
531
 
451
532
  ### Changes
@@ -454,7 +535,7 @@ Fri, 02 Jul 2021 07:37:06 GMT
454
535
 
455
536
  ## [9.0.0-alpha.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.5)
456
537
 
457
- Thu, 01 Jul 2021 07:35:05 GMT
538
+ Thu, 01 Jul 2021 07:35:05 GMT
458
539
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.4..@fluentui/react-aria_v9.0.0-alpha.5)
459
540
 
460
541
  ### Changes
@@ -463,7 +544,7 @@ Thu, 01 Jul 2021 07:35:05 GMT
463
544
 
464
545
  ## [9.0.0-alpha.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.4)
465
546
 
466
- Wed, 30 Jun 2021 07:38:35 GMT
547
+ Wed, 30 Jun 2021 07:38:35 GMT
467
548
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.3..@fluentui/react-aria_v9.0.0-alpha.4)
468
549
 
469
550
  ### Changes
@@ -472,7 +553,7 @@ Wed, 30 Jun 2021 07:38:35 GMT
472
553
 
473
554
  ## [9.0.0-alpha.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.3)
474
555
 
475
- Tue, 29 Jun 2021 07:33:32 GMT
556
+ Tue, 29 Jun 2021 07:33:32 GMT
476
557
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.2..@fluentui/react-aria_v9.0.0-alpha.3)
477
558
 
478
559
  ### Changes
@@ -481,7 +562,7 @@ Tue, 29 Jun 2021 07:33:32 GMT
481
562
 
482
563
  ## [9.0.0-alpha.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-aria_v9.0.0-alpha.2)
483
564
 
484
- Mon, 21 Jun 2021 07:34:33 GMT
565
+ Mon, 21 Jun 2021 07:34:33 GMT
485
566
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-aria_v9.0.0-alpha.1..@fluentui/react-aria_v9.0.0-alpha.2)
486
567
 
487
568
  ### Changes
File without changes
File without changes
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["hooks/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './useARIAButton';\n"]}
@@ -75,7 +75,7 @@ export const useARIAButton = (shorthand, options) => {
75
75
  // If a <button> tag is to be rendered we just need to set disabled and aria-disabled correctly
76
76
  if (shorthandProps.as === 'button' || shorthandProps.as === undefined) {
77
77
  shorthandProps.disabled = disabled && !disabledFocusable;
78
- shorthandProps['aria-disabled'] = disabledFocusable; // Undefine events if disabledFocusable is passed in
78
+ shorthandProps['aria-disabled'] = disabledFocusable ? true : undefined; // Undefine events if disabledFocusable is passed in
79
79
 
80
80
  if (disabledFocusable) {
81
81
  shorthandProps.onClick = undefined;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/useARIAButton.ts"],"names":[],"mappings":"AAAA,SAAS,KAAT,EAAgB,KAAhB,QAA6B,yBAA7B;AACA,SAAS,gBAAT,EAA2B,gBAA3B,QAAmD,2BAAnD;AAQA;;;;AAIG;;AACH,OAAO,MAAM,aAAa,GAAkD,CAAC,SAAD,EAAY,OAAZ,KAAuB;;;AACjG,QAAM,cAAc,GAAG,gBAAgB,CAAC,SAAD,EAAY,OAAZ,CAAvC;AAEA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA,iBAAZ;AAA+B,IAAA,OAA/B;AAAwC,IAAA,SAAxC;AAAmD,IAAA,OAAnD;AAA4D,IAAA;AAA5D,MAA0E,cAAc,IAC5F,EADF;AAGA,QAAM,cAAc,GAAmC,gBAAgB,CAAC,EAAE,IAAG;AAC3E,QAAI,QA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;AACA,UAAI,iBAAJ,EAAuB;AACrB,QAAA,cAAc,CAAC,OAAf,GAAyB,SAAzB;AACA,QAAA,cAAc,CAAC,SAAf,GAA2B,SAA3B;AACA,QAAA,cAAc,CAAC,OAAf,GAAyB,SAAzB;AACD;AACF,KAVD,CAYA;AAZA,SAaK;AACH,aAAO,cAAc,CAAC,QAAtB;AACA,MAAA,cAAc,CAAC,eAAD,CAAd,GAAkC,QAAQ,IAAI,iBAA9C;AACC,MAAA,cAA6C,CAAC,IAA9C,GAAqD,QAAQ,GAC1D,SAD0D,GAEzD,cAA6C,CAAC,IAFlD;AAGD,MAAA,cAAc,CAAC,OAAf,GAAyB,cAAzB;AACA,MAAA,cAAc,CAAC,SAAf,GAA2B,gBAA3B;AACA,MAAA,cAAc,CAAC,OAAf,GAAyB,cAAzB;AACA,MAAA,cAAc,CAAC,IAAf,GAAsB,CAAA,EAAA,GAAA,cAAc,CAAC,IAAf,MAAmB,IAAnB,IAAmB,EAAA,KAAA,KAAA,CAAnB,GAAmB,EAAnB,GAAuB,QAA7C;AACA,MAAA,cAAc,CAAC,QAAf,GAA0B,QAAQ,IAAI,CAAC,iBAAb,GAAiC,SAAjC,GAA6C,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,CAAnF;AACD,KA1BiB,CA4BlB;;;AACA,WAAO,cAAc,CAAC,iBAAtB;AACD;;AAED,SAAO,cAAP;AACD,CAhGM","sourcesContent":["import { Enter, Space } from '@fluentui/keyboard-keys';\nimport { resolveShorthand, useEventCallback } from '@fluentui/react-utilities';\nimport type { ExtractSlotProps, ResolveShorthandFunction, Slot } from '@fluentui/react-utilities';\n\nexport type ARIAButtonSlotProps = ExtractSlotProps<Slot<'button', 'a'>> & {\n disabled?: boolean;\n disabledFocusable?: boolean;\n};\n\n/**\n * Button keyboard handling, role, disabled and tabIndex implementation that ensures ARIA spec\n * for multiple scenarios of shorthand properties. Ensuring 1st rule of ARIA for cases\n * where no attribute addition is required.\n */\nexport const useARIAButton: ResolveShorthandFunction<ARIAButtonSlotProps> = (shorthand, options) => {\n const shorthandProps = resolveShorthand(shorthand, options);\n\n const { disabled, disabledFocusable, onClick, onKeyDown, onKeyUp, tabIndex } = (shorthandProps ||\n {}) as ARIAButtonSlotProps;\n\n const onClickHandler: ARIAButtonSlotProps['onClick'] = useEventCallback(ev => {\n if (disabled || disabledFocusable) {\n ev.preventDefault();\n ev.stopPropagation();\n } else {\n onClick?.(ev);\n }\n });\n\n const onKeyDownHandler: ARIAButtonSlotProps['onKeyDown'] = useEventCallback(ev => {\n onKeyDown?.(ev);\n\n if (ev.isDefaultPrevented()) {\n return;\n }\n\n const key = ev.key;\n\n if ((disabled || disabledFocusable) && (key === Enter || key === Space)) {\n ev.preventDefault();\n ev.stopPropagation();\n return;\n }\n\n if (key === Space) {\n ev.preventDefault();\n return;\n }\n\n // If enter is pressed, activate the button\n else if (key === Enter) {\n ev.preventDefault();\n ev.currentTarget.click();\n }\n });\n\n const onKeyupHandler: ARIAButtonSlotProps['onKeyUp'] = useEventCallback(ev => {\n onKeyUp?.(ev);\n\n if (ev.isDefaultPrevented()) {\n return;\n }\n\n const key = ev.key;\n\n if ((disabled || disabledFocusable) && (key === Enter || key === Space)) {\n ev.preventDefault();\n ev.stopPropagation();\n return;\n }\n\n if (key === Space) {\n ev.preventDefault();\n ev.currentTarget.click();\n }\n });\n\n if (shorthandProps) {\n // If a <button> tag is to be rendered we just need to set disabled and aria-disabled correctly\n if (shorthandProps.as === 'button' || shorthandProps.as === undefined) {\n shorthandProps.disabled = disabled && !disabledFocusable;\n shorthandProps['aria-disabled'] = disabledFocusable ? true : undefined;\n\n // Undefine events if disabledFocusable is passed in\n if (disabledFocusable) {\n shorthandProps.onClick = undefined;\n shorthandProps.onKeyDown = undefined;\n shorthandProps.onKeyUp = undefined;\n }\n }\n\n // If an <a> tag is to be rendered we have to remove disabled and type, and set aria-disabled, role and tabIndex.\n else {\n delete shorthandProps.disabled;\n shorthandProps['aria-disabled'] = disabled || disabledFocusable;\n (shorthandProps as JSX.IntrinsicElements['a']).href = disabled\n ? undefined\n : (shorthandProps as JSX.IntrinsicElements['a']).href;\n shorthandProps.onClick = onClickHandler;\n shorthandProps.onKeyDown = onKeyDownHandler;\n shorthandProps.onKeyUp = onKeyupHandler;\n shorthandProps.role = shorthandProps.role ?? 'button';\n shorthandProps.tabIndex = disabled && !disabledFocusable ? undefined : tabIndex ?? 0;\n }\n\n // Remove non-DOM disabledFocusable prop\n delete shorthandProps.disabledFocusable;\n }\n\n return shorthandProps;\n};\n"],"sourceRoot":"../src/"}
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export * from './hooks/index';
2
- export * from './utils/index';
1
+ export { useARIAButton } from './hooks/index';
2
+ export { mergeARIADisabled } from './utils/index';
3
3
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC","sourcesContent":["export { useARIAButton } from './hooks/index';\nexport type { ARIAButtonSlotProps } from './hooks/index';\nexport { mergeARIADisabled } from './utils/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC","sourcesContent":["export * from './mergeARIADisabled';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/mergeARIADisabled.ts"],"names":[],"mappings":"AAAA;;AAEG;AACH,OAAM,SAAU,iBAAV,CAA4B,SAA5B,EAAiG;;;AACrG,QAAM,QAAQ,GAAG,CAAA,EAAA,GAAA,SAAS,CAAC,QAAV,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,SAAS,CAAC,eAAD,CAAhD;;AACA,MAAI,OAAO,QAAP,KAAoB,QAAxB,EAAkC;AAChC,WAAO,QAAQ,KAAK,OAAb,GAAuB,KAAvB,GAA+B,IAAtC;AACD;;AACD,SAAO,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAAnB;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["utils/mergeARIADisabled.ts"],"names":[],"mappings":"AAAA;;AAEG;AACH,OAAM,SAAU,iBAAV,CAA4B,SAA5B,EAAiG;;;AACrG,QAAM,QAAQ,GAAG,CAAA,EAAA,GAAA,SAAS,CAAC,QAAV,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,SAAS,CAAC,eAAD,CAAhD;;AACA,MAAI,OAAO,QAAP,KAAoB,QAAxB,EAAkC;AAChC,WAAO,QAAQ,KAAK,OAAb,GAAuB,KAAvB,GAA+B,IAAtC;AACD;;AACD,SAAO,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAAnB;AACD","sourcesContent":["/**\n * Merges disabled declaration with `aria-disabled`\n */\nexport function mergeARIADisabled(shorthand: { 'aria-disabled'?: string | boolean; disabled?: boolean }) {\n const disabled = shorthand.disabled ?? shorthand['aria-disabled'];\n if (typeof disabled === 'string') {\n return disabled === 'false' ? false : true;\n }\n return disabled ?? false;\n}\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["hooks/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './useARIAButton';\n"],"sourceRoot":"../src/"}
@@ -84,7 +84,7 @@ const useARIAButton = (shorthand, options) => {
84
84
  // If a <button> tag is to be rendered we just need to set disabled and aria-disabled correctly
85
85
  if (shorthandProps.as === 'button' || shorthandProps.as === undefined) {
86
86
  shorthandProps.disabled = disabled && !disabledFocusable;
87
- shorthandProps['aria-disabled'] = disabledFocusable; // Undefine events if disabledFocusable is passed in
87
+ shorthandProps['aria-disabled'] = disabledFocusable ? true : undefined; // Undefine events if disabledFocusable is passed in
88
88
 
89
89
  if (disabledFocusable) {
90
90
  shorthandProps.onClick = undefined;
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/hooks/useARIAButton.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAQA;;;;AAIG;;;AACI,MAAM,aAAa,GAAkD,CAAC,SAAD,EAAY,OAAZ,KAAuB;;;AACjG,QAAM,cAAc,GAAG,iBAAA,CAAA,gBAAA,CAAiB,SAAjB,EAA4B,OAA5B,CAAvB;AAEA,QAAM;AAAE,IAAA,QAAF;AAAY,IAAA,iBAAZ;AAA+B,IAAA,OAA/B;AAAwC,IAAA,SAAxC;AAAmD,IAAA,OAAnD;AAA4D,IAAA;AAA5D,MAA0E,cAAc,IAC5F,EADF;AAGA,QAAM,cAAc,GAAmC,iBAAA,CAAA,gBAAA,CAAiB,EAAE,IAAG;AAC3E,QAAI,QAAQ,IAAI,iBAAhB,EAAmC;AACjC,MAAA,EAAE,CAAC,cAAH;AACA,MAAA,EAAE,CAAC,eAAH;AACD,KAHD,MAGO;AACL,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AAC,EAAf,KAAsB,SAA5D,EAAuE;AACrE,MAAA,cAAc,CAAC,QAAf,GAA0B,QAAQ,IAAI,CAAC,iBAAvC;AACA,MAAA,cAAc,CAAC,eAAD,CAAd,GAAkC,iBAAiB,GAAG,IAAH,GAAU,SAA7D,CAFqE,CAIrE;;AACA,UAAI,iBAAJ,EAAuB;AACrB,QAAA,cAAc,CAAC,OAAf,GAAyB,SAAzB;AACA,QAAA,cAAc,CAAC,SAAf,GAA2B,SAA3B;AACA,QAAA,cAAc,CAAC,OAAf,GAAyB,SAAzB;AACD;AACF,KAVD,CAYA;AAZA,SAaK;AACH,aAAO,cAAc,CAAC,QAAtB;AACA,MAAA,cAAc,CAAC,eAAD,CAAd,GAAkC,QAAQ,IAAI,iBAA9C;AACC,MAAA,cAA6C,CAAC,IAA9C,GAAqD,QAAQ,GAC1D,SAD0D,GAEzD,cAA6C,CAAC,IAFlD;AAGD,MAAA,cAAc,CAAC,OAAf,GAAyB,cAAzB;AACA,MAAA,cAAc,CAAC,SAAf,GAA2B,gBAA3B;AACA,MAAA,cAAc,CAAC,OAAf,GAAyB,cAAzB;AACA,MAAA,cAAc,CAAC,IAAf,GAAsB,CAAA,EAAA,GAAA,cAAc,CAAC,IAAf,MAAmB,IAAnB,IAAmB,EAAA,KAAA,KAAA,CAAnB,GAAmB,EAAnB,GAAuB,QAA7C;AACA,MAAA,cAAc,CAAC,QAAf,GAA0B,QAAQ,IAAI,CAAC,iBAAb,GAAiC,SAAjC,GAA6C,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,CAAnF;AACD,KA1BiB,CA4BlB;;;AACA,WAAO,cAAc,CAAC,iBAAtB;AACD;;AAED,SAAO,cAAP;AACD,CAhGM;;AAAM,OAAA,CAAA,aAAA,GAAa,aAAb","sourcesContent":["import { Enter, Space } from '@fluentui/keyboard-keys';\nimport { resolveShorthand, useEventCallback } from '@fluentui/react-utilities';\nimport type { ExtractSlotProps, ResolveShorthandFunction, Slot } from '@fluentui/react-utilities';\n\nexport type ARIAButtonSlotProps = ExtractSlotProps<Slot<'button', 'a'>> & {\n disabled?: boolean;\n disabledFocusable?: boolean;\n};\n\n/**\n * Button keyboard handling, role, disabled and tabIndex implementation that ensures ARIA spec\n * for multiple scenarios of shorthand properties. Ensuring 1st rule of ARIA for cases\n * where no attribute addition is required.\n */\nexport const useARIAButton: ResolveShorthandFunction<ARIAButtonSlotProps> = (shorthand, options) => {\n const shorthandProps = resolveShorthand(shorthand, options);\n\n const { disabled, disabledFocusable, onClick, onKeyDown, onKeyUp, tabIndex } = (shorthandProps ||\n {}) as ARIAButtonSlotProps;\n\n const onClickHandler: ARIAButtonSlotProps['onClick'] = useEventCallback(ev => {\n if (disabled || disabledFocusable) {\n ev.preventDefault();\n ev.stopPropagation();\n } else {\n onClick?.(ev);\n }\n });\n\n const onKeyDownHandler: ARIAButtonSlotProps['onKeyDown'] = useEventCallback(ev => {\n onKeyDown?.(ev);\n\n if (ev.isDefaultPrevented()) {\n return;\n }\n\n const key = ev.key;\n\n if ((disabled || disabledFocusable) && (key === Enter || key === Space)) {\n ev.preventDefault();\n ev.stopPropagation();\n return;\n }\n\n if (key === Space) {\n ev.preventDefault();\n return;\n }\n\n // If enter is pressed, activate the button\n else if (key === Enter) {\n ev.preventDefault();\n ev.currentTarget.click();\n }\n });\n\n const onKeyupHandler: ARIAButtonSlotProps['onKeyUp'] = useEventCallback(ev => {\n onKeyUp?.(ev);\n\n if (ev.isDefaultPrevented()) {\n return;\n }\n\n const key = ev.key;\n\n if ((disabled || disabledFocusable) && (key === Enter || key === Space)) {\n ev.preventDefault();\n ev.stopPropagation();\n return;\n }\n\n if (key === Space) {\n ev.preventDefault();\n ev.currentTarget.click();\n }\n });\n\n if (shorthandProps) {\n // If a <button> tag is to be rendered we just need to set disabled and aria-disabled correctly\n if (shorthandProps.as === 'button' || shorthandProps.as === undefined) {\n shorthandProps.disabled = disabled && !disabledFocusable;\n shorthandProps['aria-disabled'] = disabledFocusable ? true : undefined;\n\n // Undefine events if disabledFocusable is passed in\n if (disabledFocusable) {\n shorthandProps.onClick = undefined;\n shorthandProps.onKeyDown = undefined;\n shorthandProps.onKeyUp = undefined;\n }\n }\n\n // If an <a> tag is to be rendered we have to remove disabled and type, and set aria-disabled, role and tabIndex.\n else {\n delete shorthandProps.disabled;\n shorthandProps['aria-disabled'] = disabled || disabledFocusable;\n (shorthandProps as JSX.IntrinsicElements['a']).href = disabled\n ? undefined\n : (shorthandProps as JSX.IntrinsicElements['a']).href;\n shorthandProps.onClick = onClickHandler;\n shorthandProps.onKeyDown = onKeyDownHandler;\n shorthandProps.onKeyUp = onKeyupHandler;\n shorthandProps.role = shorthandProps.role ?? 'button';\n shorthandProps.tabIndex = disabled && !disabledFocusable ? undefined : tabIndex ?? 0;\n }\n\n // Remove non-DOM disabledFocusable prop\n delete shorthandProps.disabledFocusable;\n }\n\n return shorthandProps;\n};\n"],"sourceRoot":"../src/"}
@@ -3,10 +3,23 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
+ exports.mergeARIADisabled = exports.useARIAButton = void 0;
6
7
 
7
- const tslib_1 = /*#__PURE__*/require("tslib");
8
+ var index_1 = /*#__PURE__*/require("./hooks/index");
8
9
 
9
- tslib_1.__exportStar(require("./hooks/index"), exports);
10
+ Object.defineProperty(exports, "useARIAButton", {
11
+ enumerable: true,
12
+ get: function () {
13
+ return index_1.useARIAButton;
14
+ }
15
+ });
16
+
17
+ var index_2 = /*#__PURE__*/require("./utils/index");
10
18
 
11
- tslib_1.__exportStar(require("./utils/index"), exports);
19
+ Object.defineProperty(exports, "mergeARIADisabled", {
20
+ enumerable: true,
21
+ get: function () {
22
+ return index_2.mergeARIADisabled;
23
+ }
24
+ });
12
25
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,eAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,OAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,eAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,OAAA,CAAA,aAAA;AAAa;AAAb,CAAA;;AAET,IAAA,OAAA,gBAAA,OAAA,CAAA,eAAA,CAAA;;AAAS,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,OAAA,CAAA,iBAAA;AAAiB;AAAjB,CAAA","sourcesContent":["export { useARIAButton } from './hooks/index';\nexport type { ARIAButtonSlotProps } from './hooks/index';\nexport { mergeARIADisabled } from './utils/index';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA","sourceRoot":""}
1
+ {"version":3,"sources":["utils/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,qBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './mergeARIADisabled';\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/utils/mergeARIADisabled.ts"],"names":[],"mappings":";;;;;;AAAA;;AAEG;;AACH,SAAgB,iBAAhB,CAAkC,SAAlC,EAAuG;;;AACrG,QAAM,QAAQ,GAAG,CAAA,EAAA,GAAA,SAAS,CAAC,QAAV,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,SAAS,CAAC,eAAD,CAAhD;;AACA,MAAI,OAAO,QAAP,KAAoB,QAAxB,EAAkC;AAChC,WAAO,QAAQ,KAAK,OAAb,GAAuB,KAAvB,GAA+B,IAAtC;AACD;;AACD,SAAO,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAAnB;AACD;;AAND,OAAA,CAAA,iBAAA,GAAA,iBAAA","sourceRoot":""}
1
+ {"version":3,"sources":["utils/mergeARIADisabled.ts"],"names":[],"mappings":";;;;;;AAAA;;AAEG;;AACH,SAAgB,iBAAhB,CAAkC,SAAlC,EAAuG;;;AACrG,QAAM,QAAQ,GAAG,CAAA,EAAA,GAAA,SAAS,CAAC,QAAV,MAAkB,IAAlB,IAAkB,EAAA,KAAA,KAAA,CAAlB,GAAkB,EAAlB,GAAsB,SAAS,CAAC,eAAD,CAAhD;;AACA,MAAI,OAAO,QAAP,KAAoB,QAAxB,EAAkC;AAChC,WAAO,QAAQ,KAAK,OAAb,GAAuB,KAAvB,GAA+B,IAAtC;AACD;;AACD,SAAO,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAA,QAAA,GAAY,KAAnB;AACD;;AAND,OAAA,CAAA,iBAAA,GAAA,iBAAA","sourcesContent":["/**\n * Merges disabled declaration with `aria-disabled`\n */\nexport function mergeARIADisabled(shorthand: { 'aria-disabled'?: string | boolean; disabled?: boolean }) {\n const disabled = shorthand.disabled ?? shorthand['aria-disabled'];\n if (typeof disabled === 'string') {\n return disabled === 'false' ? false : true;\n }\n return disabled ?? false;\n}\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@fluentui/react-aria",
3
- "version": "9.0.0-rc.1",
3
+ "version": "9.0.0-rc.10",
4
4
  "description": "React helper to ensure ARIA",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
7
- "typings": "lib/index.d.ts",
7
+ "typings": "dist/index.d.ts",
8
8
  "sideEffects": false,
9
9
  "repository": {
10
10
  "type": "git",
@@ -20,28 +20,18 @@
20
20
  "start": "yarn storybook",
21
21
  "test": "jest --passWithNoTests",
22
22
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
23
- "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-aria/src && yarn docs",
24
- "storybook": "node ../../scripts/storybook/runner",
23
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../../scripts/typescript/normalize-import --output ./dist/packages/react-components/react-aria/src && yarn docs",
24
+ "storybook": "node ../../../scripts/storybook/runner",
25
25
  "type-check": "tsc -b tsconfig.json"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/react-conformance": "*",
30
- "@fluentui/scripts": "^1.0.0",
31
- "@types/enzyme": "3.10.3",
32
- "@types/enzyme-adapter-react-16": "1.0.3",
33
- "@types/react": "16.9.42",
34
- "@types/react-dom": "16.9.10",
35
- "@types/react-test-renderer": "^16.0.0",
36
- "enzyme": "~3.10.0",
37
- "enzyme-adapter-react-16": "^1.15.0",
38
- "react": "16.8.6",
39
- "react-dom": "16.8.6",
40
- "react-test-renderer": "^16.3.0"
30
+ "@fluentui/scripts": "^1.0.0"
41
31
  },
42
32
  "dependencies": {
43
- "@fluentui/keyboard-keys": "9.0.0-rc.1",
44
- "@fluentui/react-utilities": "9.0.0-rc.1",
33
+ "@fluentui/keyboard-keys": "9.0.0-rc.6",
34
+ "@fluentui/react-utilities": "9.0.0-rc.10",
45
35
  "tslib": "^2.1.0"
46
36
  },
47
37
  "peerDependencies": {
@@ -56,5 +46,12 @@
56
46
  "minor",
57
47
  "patch"
58
48
  ]
49
+ },
50
+ "exports": {
51
+ ".": {
52
+ "types": "./lib/index.d.ts",
53
+ "import": "./lib/index.js",
54
+ "require": "./lib-commonjs/index.js"
55
+ }
59
56
  }
60
57
  }
@@ -1 +0,0 @@
1
- export * from './useARIAButton';
@@ -1,11 +0,0 @@
1
- import type { ExtractSlotProps, ResolveShorthandFunction, Slot } from '@fluentui/react-utilities';
2
- export declare type ARIAButtonSlotProps = ExtractSlotProps<Slot<'button', 'a'>> & {
3
- disabled?: boolean;
4
- disabledFocusable?: boolean;
5
- };
6
- /**
7
- * Button keyboard handling, role, disabled and tabIndex implementation that ensures ARIA spec
8
- * for multiple scenarios of shorthand properties. Ensuring 1st rule of ARIA for cases
9
- * where no attribute addition is required.
10
- */
11
- export declare const useARIAButton: ResolveShorthandFunction<ARIAButtonSlotProps>;
package/lib/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './hooks/index';
2
- export * from './utils/index';
@@ -1 +0,0 @@
1
- export * from './mergeARIADisabled';
@@ -1,7 +0,0 @@
1
- /**
2
- * Merges disabled declaration with `aria-disabled`
3
- */
4
- export declare function mergeARIADisabled(shorthand: {
5
- 'aria-disabled'?: string | boolean;
6
- disabled?: boolean;
7
- }): boolean;
@@ -1 +0,0 @@
1
- export * from './useARIAButton';
@@ -1,11 +0,0 @@
1
- import type { ExtractSlotProps, ResolveShorthandFunction, Slot } from '@fluentui/react-utilities';
2
- export declare type ARIAButtonSlotProps = ExtractSlotProps<Slot<'button', 'a'>> & {
3
- disabled?: boolean;
4
- disabledFocusable?: boolean;
5
- };
6
- /**
7
- * Button keyboard handling, role, disabled and tabIndex implementation that ensures ARIA spec
8
- * for multiple scenarios of shorthand properties. Ensuring 1st rule of ARIA for cases
9
- * where no attribute addition is required.
10
- */
11
- export declare const useARIAButton: ResolveShorthandFunction<ARIAButtonSlotProps>;
@@ -1,2 +0,0 @@
1
- export * from './hooks/index';
2
- export * from './utils/index';
@@ -1 +0,0 @@
1
- export * from './mergeARIADisabled';
@@ -1,7 +0,0 @@
1
- /**
2
- * Merges disabled declaration with `aria-disabled`
3
- */
4
- export declare function mergeARIADisabled(shorthand: {
5
- 'aria-disabled'?: string | boolean;
6
- disabled?: boolean;
7
- }): boolean;