@fluentui/react-accordion 0.0.0-nightly3082edf34720220208.1 → 0.0.0-nightly43b133e62020220224.1

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.
Files changed (89) hide show
  1. package/CHANGELOG.json +144 -16
  2. package/CHANGELOG.md +44 -11
  3. package/Spec.md +36 -4
  4. package/dist/react-accordion.d.ts +6 -5
  5. package/lib/Accordion.js.map +1 -1
  6. package/lib/AccordionHeader.js.map +1 -1
  7. package/lib/AccordionItem.js.map +1 -1
  8. package/lib/AccordionPanel.js.map +1 -1
  9. package/lib/components/Accordion/Accordion.js.map +1 -1
  10. package/lib/components/Accordion/Accordion.types.d.ts +5 -3
  11. package/lib/components/Accordion/Accordion.types.js.map +1 -1
  12. package/lib/components/Accordion/AccordionContext.js +0 -1
  13. package/lib/components/Accordion/AccordionContext.js.map +1 -1
  14. package/lib/components/Accordion/index.js.map +1 -1
  15. package/lib/components/Accordion/renderAccordion.js.map +1 -1
  16. package/lib/components/Accordion/useAccordion.js +13 -18
  17. package/lib/components/Accordion/useAccordion.js.map +1 -1
  18. package/lib/components/Accordion/useAccordionContextValues.js +2 -2
  19. package/lib/components/Accordion/useAccordionContextValues.js.map +1 -1
  20. package/lib/components/Accordion/useAccordionStyles.js.map +1 -1
  21. package/lib/components/AccordionHeader/AccordionHeader.js.map +1 -1
  22. package/lib/components/AccordionHeader/AccordionHeader.types.d.ts +2 -1
  23. package/lib/components/AccordionHeader/AccordionHeader.types.js.map +1 -1
  24. package/lib/components/AccordionHeader/AccordionHeaderContext.js.map +1 -1
  25. package/lib/components/AccordionHeader/index.js.map +1 -1
  26. package/lib/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
  27. package/lib/components/AccordionHeader/useAccordionHeader.js.map +1 -1
  28. package/lib/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
  29. package/lib/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
  30. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  31. package/lib/components/AccordionItem/AccordionItem.types.d.ts +2 -1
  32. package/lib/components/AccordionItem/AccordionItem.types.js.map +1 -1
  33. package/lib/components/AccordionItem/AccordionItemContext.js.map +1 -1
  34. package/lib/components/AccordionItem/index.js.map +1 -1
  35. package/lib/components/AccordionItem/renderAccordionItem.js.map +1 -1
  36. package/lib/components/AccordionItem/useAccordionItem.js +5 -7
  37. package/lib/components/AccordionItem/useAccordionItem.js.map +1 -1
  38. package/lib/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
  39. package/lib/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
  40. package/lib/components/AccordionPanel/AccordionPanel.js.map +1 -1
  41. package/lib/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
  42. package/lib/components/AccordionPanel/index.js.map +1 -1
  43. package/lib/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
  44. package/lib/components/AccordionPanel/useAccordionPanel.js.map +1 -1
  45. package/lib/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
  46. package/lib/index.js.map +1 -1
  47. package/lib-commonjs/Accordion.js.map +1 -1
  48. package/lib-commonjs/AccordionHeader.js.map +1 -1
  49. package/lib-commonjs/AccordionItem.js.map +1 -1
  50. package/lib-commonjs/AccordionPanel.js.map +1 -1
  51. package/lib-commonjs/components/Accordion/Accordion.js.map +1 -1
  52. package/lib-commonjs/components/Accordion/Accordion.types.d.ts +5 -3
  53. package/lib-commonjs/components/Accordion/Accordion.types.js.map +1 -1
  54. package/lib-commonjs/components/Accordion/AccordionContext.js +0 -1
  55. package/lib-commonjs/components/Accordion/AccordionContext.js.map +1 -1
  56. package/lib-commonjs/components/Accordion/index.js.map +1 -1
  57. package/lib-commonjs/components/Accordion/renderAccordion.js.map +1 -1
  58. package/lib-commonjs/components/Accordion/useAccordion.js +14 -18
  59. package/lib-commonjs/components/Accordion/useAccordion.js.map +1 -1
  60. package/lib-commonjs/components/Accordion/useAccordionContextValues.js +2 -2
  61. package/lib-commonjs/components/Accordion/useAccordionContextValues.js.map +1 -1
  62. package/lib-commonjs/components/Accordion/useAccordionStyles.js.map +1 -1
  63. package/lib-commonjs/components/AccordionHeader/AccordionHeader.js.map +1 -1
  64. package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.d.ts +2 -1
  65. package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.js.map +1 -1
  66. package/lib-commonjs/components/AccordionHeader/AccordionHeaderContext.js.map +1 -1
  67. package/lib-commonjs/components/AccordionHeader/index.js.map +1 -1
  68. package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
  69. package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js.map +1 -1
  70. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
  71. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
  72. package/lib-commonjs/components/AccordionItem/AccordionItem.js.map +1 -1
  73. package/lib-commonjs/components/AccordionItem/AccordionItem.types.d.ts +2 -1
  74. package/lib-commonjs/components/AccordionItem/AccordionItem.types.js.map +1 -1
  75. package/lib-commonjs/components/AccordionItem/AccordionItemContext.js.map +1 -1
  76. package/lib-commonjs/components/AccordionItem/index.js.map +1 -1
  77. package/lib-commonjs/components/AccordionItem/renderAccordionItem.js.map +1 -1
  78. package/lib-commonjs/components/AccordionItem/useAccordionItem.js +4 -6
  79. package/lib-commonjs/components/AccordionItem/useAccordionItem.js.map +1 -1
  80. package/lib-commonjs/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
  81. package/lib-commonjs/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
  82. package/lib-commonjs/components/AccordionPanel/AccordionPanel.js.map +1 -1
  83. package/lib-commonjs/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
  84. package/lib-commonjs/components/AccordionPanel/index.js.map +1 -1
  85. package/lib-commonjs/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
  86. package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js.map +1 -1
  87. package/lib-commonjs/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
  88. package/lib-commonjs/index.js.map +1 -1
  89. package/package.json +7 -7
package/CHANGELOG.json CHANGED
@@ -2,17 +2,133 @@
2
2
  "name": "@fluentui/react-accordion",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 08 Feb 2022 04:14:22 GMT",
6
- "tag": "@fluentui/react-accordion_v0.0.0-nightly3082edf34720220208.1",
7
- "version": "0.0.0-nightly3082edf34720220208.1",
5
+ "date": "Thu, 24 Feb 2022 04:13:22 GMT",
6
+ "tag": "@fluentui/react-accordion_v0.0.0-nightly43b133e62020220224.1",
7
+ "version": "0.0.0-nightly43b133e62020220224.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-accordion",
13
- "commit": "2995e3262243608331236b8d12b1652c84d313bc",
13
+ "commit": "27a2c814edc7e5d9bb79037b2fabfff4a516ab8c",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-accordion",
19
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightly43b133e62020220224.1",
20
+ "commit": "27a2c814edc7e5d9bb79037b2fabfff4a516ab8c"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-accordion",
25
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly43b133e62020220224.1",
26
+ "commit": "27a2c814edc7e5d9bb79037b2fabfff4a516ab8c"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-accordion",
31
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly43b133e62020220224.1",
32
+ "commit": "27a2c814edc7e5d9bb79037b2fabfff4a516ab8c"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-accordion",
37
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly43b133e62020220224.1",
38
+ "commit": "27a2c814edc7e5d9bb79037b2fabfff4a516ab8c"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-accordion",
43
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly43b133e62020220224.1",
44
+ "commit": "27a2c814edc7e5d9bb79037b2fabfff4a516ab8c"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-accordion",
49
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly43b133e62020220224.1",
50
+ "commit": "27a2c814edc7e5d9bb79037b2fabfff4a516ab8c"
51
+ }
52
+ ]
53
+ }
54
+ },
55
+ {
56
+ "date": "Fri, 18 Feb 2022 13:35:37 GMT",
57
+ "tag": "@fluentui/react-accordion_v9.0.0-rc.3",
58
+ "version": "9.0.0-rc.3",
59
+ "comments": {
60
+ "prerelease": [
61
+ {
62
+ "author": "bsunderhus@microsoft.com",
63
+ "package": "@fluentui/react-accordion",
64
+ "commit": "5a45a787f2669a9f694a274b220823dbc10b04e2",
65
+ "comment": "Updates initial open items value to be empty on every case"
66
+ },
67
+ {
68
+ "author": "lingfangao@hotmail.com",
69
+ "package": "@fluentui/react-accordion",
70
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
71
+ "comment": "fix: Source maps contain original source code"
72
+ },
73
+ {
74
+ "author": "bsunderhus@microsoft.com",
75
+ "package": "@fluentui/react-accordion",
76
+ "commit": "ea090f75ef4a477f6ea9ffa2b4d7bec826a99b5f",
77
+ "comment": "Breaking change: navigable becomes navigation"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@fluentui/react-accordion",
82
+ "comment": "Bump @fluentui/react-aria to v9.0.0-rc.3",
83
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
84
+ },
85
+ {
86
+ "author": "beachball",
87
+ "package": "@fluentui/react-accordion",
88
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.3",
89
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
90
+ },
91
+ {
92
+ "author": "beachball",
93
+ "package": "@fluentui/react-accordion",
94
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.3",
95
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
96
+ },
97
+ {
98
+ "author": "beachball",
99
+ "package": "@fluentui/react-accordion",
100
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.3",
101
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
102
+ },
103
+ {
104
+ "author": "beachball",
105
+ "package": "@fluentui/react-accordion",
106
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
107
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
108
+ },
109
+ {
110
+ "author": "beachball",
111
+ "package": "@fluentui/react-accordion",
112
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
113
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
114
+ }
115
+ ],
116
+ "none": [
117
+ {
118
+ "author": "bsunderhus@microsoft.com",
119
+ "package": "@fluentui/react-accordion",
120
+ "commit": "3068d4518c5e599c60a216455eac40531d896162",
121
+ "comment": "Updates spec and story to add warning about heading level"
122
+ }
123
+ ]
124
+ }
125
+ },
126
+ {
127
+ "date": "Thu, 10 Feb 2022 08:52:11 GMT",
128
+ "tag": "@fluentui/react-accordion_v9.0.0-rc.1",
129
+ "version": "9.0.0-rc.1",
130
+ "comments": {
131
+ "prerelease": [
16
132
  {
17
133
  "author": "olfedias@microsoft.com",
18
134
  "package": "@fluentui/react-accordion",
@@ -25,6 +141,12 @@
25
141
  "commit": "b8537fb52cc3cc2787be5675c65300e01d882add",
26
142
  "comment": "update styles to not use CSS shorthands"
27
143
  },
144
+ {
145
+ "author": "mgodbolt@microsoft.com",
146
+ "package": "@fluentui/react-accordion",
147
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
148
+ "comment": "remove export of commons types"
149
+ },
28
150
  {
29
151
  "author": "behowell@microsoft.com",
30
152
  "package": "@fluentui/react-accordion",
@@ -61,6 +183,12 @@
61
183
  "commit": "940a86cbd6a9f711d275df3a823292b527017852",
62
184
  "comment": "Removes children as a slot from AccordionHeader"
63
185
  },
186
+ {
187
+ "author": "lingfangao@hotmail.com",
188
+ "package": "@fluentui/react-accordion",
189
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
190
+ "comment": "Bump Fluent UI packages to 9.0.0-rc"
191
+ },
64
192
  {
65
193
  "author": "sarah.higley@microsoft.com",
66
194
  "package": "@fluentui/react-accordion",
@@ -106,38 +234,38 @@
106
234
  {
107
235
  "author": "beachball",
108
236
  "package": "@fluentui/react-accordion",
109
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightly3082edf34720220208.1",
110
- "commit": "2995e3262243608331236b8d12b1652c84d313bc"
237
+ "comment": "Bump @fluentui/react-aria to v9.0.0-rc.1",
238
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
111
239
  },
112
240
  {
113
241
  "author": "beachball",
114
242
  "package": "@fluentui/react-accordion",
115
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly3082edf34720220208.1",
116
- "commit": "2995e3262243608331236b8d12b1652c84d313bc"
243
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.1",
244
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
117
245
  },
118
246
  {
119
247
  "author": "beachball",
120
248
  "package": "@fluentui/react-accordion",
121
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly3082edf34720220208.1",
122
- "commit": "2995e3262243608331236b8d12b1652c84d313bc"
249
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
250
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
123
251
  },
124
252
  {
125
253
  "author": "beachball",
126
254
  "package": "@fluentui/react-accordion",
127
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly3082edf34720220208.1",
128
- "commit": "2995e3262243608331236b8d12b1652c84d313bc"
255
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
256
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
129
257
  },
130
258
  {
131
259
  "author": "beachball",
132
260
  "package": "@fluentui/react-accordion",
133
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly3082edf34720220208.1",
134
- "commit": "2995e3262243608331236b8d12b1652c84d313bc"
261
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
262
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
135
263
  },
136
264
  {
137
265
  "author": "beachball",
138
266
  "package": "@fluentui/react-accordion",
139
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly3082edf34720220208.1",
140
- "commit": "2995e3262243608331236b8d12b1652c84d313bc"
267
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
268
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
141
269
  }
142
270
  ],
143
271
  "none": [
package/CHANGELOG.md CHANGED
@@ -1,25 +1,58 @@
1
1
  # Change Log - @fluentui/react-accordion
2
2
 
3
- This log was last generated on Tue, 08 Feb 2022 04:14:22 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 24 Feb 2022 04:13:22 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly3082edf34720220208.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightly3082edf34720220208.1)
7
+ ## [0.0.0-nightly43b133e62020220224.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightly43b133e62020220224.1)
8
8
 
9
- Tue, 08 Feb 2022 04:14:22 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-beta.5..@fluentui/react-accordion_v0.0.0-nightly3082edf34720220208.1)
9
+ Thu, 24 Feb 2022 04:13:22 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-rc.3..@fluentui/react-accordion_v0.0.0-nightly43b133e62020220224.1)
11
+
12
+ ### Changes
13
+
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/27a2c814edc7e5d9bb79037b2fabfff4a516ab8c) by email not defined)
15
+ - Bump @fluentui/react-aria to v0.0.0-nightly43b133e62020220224.1 ([commit](https://github.com/microsoft/fluentui/commit/27a2c814edc7e5d9bb79037b2fabfff4a516ab8c) by beachball)
16
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly43b133e62020220224.1 ([commit](https://github.com/microsoft/fluentui/commit/27a2c814edc7e5d9bb79037b2fabfff4a516ab8c) by beachball)
17
+ - Bump @fluentui/react-tabster to v0.0.0-nightly43b133e62020220224.1 ([commit](https://github.com/microsoft/fluentui/commit/27a2c814edc7e5d9bb79037b2fabfff4a516ab8c) by beachball)
18
+ - Bump @fluentui/react-theme to v0.0.0-nightly43b133e62020220224.1 ([commit](https://github.com/microsoft/fluentui/commit/27a2c814edc7e5d9bb79037b2fabfff4a516ab8c) by beachball)
19
+ - Bump @fluentui/react-utilities to v0.0.0-nightly43b133e62020220224.1 ([commit](https://github.com/microsoft/fluentui/commit/27a2c814edc7e5d9bb79037b2fabfff4a516ab8c) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly43b133e62020220224.1 ([commit](https://github.com/microsoft/fluentui/commit/27a2c814edc7e5d9bb79037b2fabfff4a516ab8c) by beachball)
21
+
22
+ ## [9.0.0-rc.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-rc.3)
23
+
24
+ Fri, 18 Feb 2022 13:35:37 GMT
25
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-rc.1..@fluentui/react-accordion_v9.0.0-rc.3)
26
+
27
+ ### Changes
28
+
29
+ - Updates initial open items value to be empty on every case ([PR #21728](https://github.com/microsoft/fluentui/pull/21728) by bsunderhus@microsoft.com)
30
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
31
+ - Breaking change: navigable becomes navigation ([PR #21729](https://github.com/microsoft/fluentui/pull/21729) by bsunderhus@microsoft.com)
32
+ - Bump @fluentui/react-aria to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
33
+ - Bump @fluentui/react-context-selector to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
34
+ - Bump @fluentui/react-tabster to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
35
+ - Bump @fluentui/react-theme to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
36
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
37
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
38
+
39
+ ## [9.0.0-rc.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-rc.1)
40
+
41
+ Thu, 10 Feb 2022 08:52:11 GMT
42
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-beta.5..@fluentui/react-accordion_v9.0.0-rc.1)
11
43
 
12
44
  ### Changes
13
45
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by email not defined)
15
46
  - update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
16
47
  - update styles to not use CSS shorthands ([PR #20800](https://github.com/microsoft/fluentui/pull/20800) by olfedias@microsoft.com)
48
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
17
49
  - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
18
50
  - Allow React 17 in peerDependencies. ([PR #21544](https://github.com/microsoft/fluentui/pull/21544) by tristan.watanabe@gmail.com)
19
51
  - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
20
52
  - use Griffel packages ([PR #21394](https://github.com/microsoft/fluentui/pull/21394) by olfedias@microsoft.com)
21
53
  - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
22
54
  - Removes children as a slot from AccordionHeader ([PR #21285](https://github.com/microsoft/fluentui/pull/21285) by bsunderhus@microsoft.com)
55
+ - Bump Fluent UI packages to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
23
56
  - update semantic elements and ARIA roles in react-accordion, add heading level story ([PR #21401](https://github.com/microsoft/fluentui/pull/21401) by sarah.higley@microsoft.com)
24
57
  - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
25
58
  - 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)
@@ -27,12 +60,12 @@ Tue, 08 Feb 2022 04:14:22 GMT
27
60
  - 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)
28
61
  - Replacing use of functions in makeStyles with direct use of tokens. ([PR #21036](https://github.com/microsoft/fluentui/pull/21036) by Humberto.Morimoto@microsoft.com)
29
62
  - Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead ([PR #21218](https://github.com/microsoft/fluentui/pull/21218) by behowell@microsoft.com)
30
- - Bump @fluentui/react-aria to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
31
- - Bump @fluentui/react-context-selector to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
32
- - Bump @fluentui/react-tabster to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
33
- - Bump @fluentui/react-theme to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
34
- - Bump @fluentui/react-utilities to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
35
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly3082edf34720220208.1 ([commit](https://github.com/microsoft/fluentui/commit/2995e3262243608331236b8d12b1652c84d313bc) by beachball)
63
+ - Bump @fluentui/react-aria to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
64
+ - Bump @fluentui/react-context-selector to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
65
+ - Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
66
+ - Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
67
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
68
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
36
69
 
37
70
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-beta.5)
38
71
 
package/Spec.md CHANGED
@@ -37,9 +37,10 @@ The root level component serves context and common API between all children.
37
37
  export type AccordionProps = ComponentProps &
38
38
  React.HTMLAttributes<HTMLElement> & {
39
39
  /**
40
- * Indicates if keyboard navigation is available
40
+ * Indicates if keyboard navigation is available and gives two options,
41
+ * linear or circular navigation
41
42
  */
42
- navigable?: boolean;
43
+ navigation?: 'linear' | 'circular';
43
44
  /**
44
45
  * Indicates if Accordion support multiple Panels opened at the same time
45
46
  */
@@ -410,6 +411,37 @@ As a general rule, once the accordion is closed the focus should return to the h
410
411
  | Keyboard | Home | Moves Focus | Moves focus to the first panel heading |
411
412
  | Keyboard | End | Moves Focus | Moves focus to the last panel heading |
412
413
 
413
- ## Accessibiltiy
414
+ ## Accessibility
414
415
 
415
- Accessibility behaviour is built into the spec as much as possible. This section addresses specific issues that don't fit well with the standard definition of the component.
416
+ Accessibility behavior is built into the spec as much as possible. This section addresses specific issues that don't fit well with the standard definition of the component.
417
+
418
+ ### No heading level on `AccordionHeader` by default
419
+
420
+ As described on [WAI-ARIA Roles, States, and Properties](https://www.w3.org/TR/wai-aria-practices/#wai-aria-roles-states-and-properties) documentation for accordion:
421
+
422
+ > Each accordion header button is wrapped in an element with role heading that has a value set for aria-level that is appropriate for the information architecture of the page.
423
+
424
+ Every `AccordionHeader` should have as its root a semantic heading element: `h1`, `h2`, `h3`, `h4`, `h5` or `h6`. Alternatively `role="heading"` and a proper `aria-level` attribute. This behavior is not implemented by default on `AccordionHeader` as it's impossible to predict which heading level will be required by the user. Requiring manual addition of such ARIA requirement.
425
+
426
+ ```tsx
427
+ {/* No heading level by default */}
428
+ <AccordionHeader>This is a header</AccordionHeader>
429
+ {/* Generated html */}
430
+ <div>
431
+ <button>This is a header</button>
432
+ </div>
433
+
434
+ {/* as semantic heading */}
435
+ <AccordionHeader as="h4">This is a header</AccordionHeader>
436
+ {/* Generated html */}
437
+ <h4>
438
+ <button>This is a header</button>
439
+ </h4>
440
+
441
+ {/* if no semantic heading can be used */}
442
+ <AccordionHeader role="heading" aria-level="4">This is a header</AccordionHeader>
443
+ {/* Generated html */}
444
+ <div role="heading" aria-level="4">
445
+ <button>This is a header</button>
446
+ </h4>
447
+ ```
@@ -13,11 +13,12 @@ export declare const Accordion: ForwardRefComponent<AccordionProps>;
13
13
 
14
14
  export declare const accordionClassName = "fui-Accordion";
15
15
 
16
- export declare type AccordionCommons = {
16
+ declare type AccordionCommons = {
17
17
  /**
18
- * Indicates if keyboard navigation is available
18
+ * Indicates if keyboard navigation is available and gives two options,
19
+ * linear or circular navigation
19
20
  */
20
- navigable: boolean;
21
+ navigation?: 'linear' | 'circular';
21
22
  /**
22
23
  * Indicates if Accordion support multiple Panels opened at the same time
23
24
  */
@@ -54,7 +55,7 @@ export declare const AccordionHeader: ForwardRefComponent<AccordionHeaderProps>;
54
55
 
55
56
  export declare const accordionHeaderClassName = "fui-AccordionHeader";
56
57
 
57
- export declare type AccordionHeaderCommons = {
58
+ declare type AccordionHeaderCommons = {
58
59
  /**
59
60
  * Size of spacing in the heading
60
61
  */
@@ -116,7 +117,7 @@ export declare const AccordionItem: ForwardRefComponent<AccordionItemProps>;
116
117
 
117
118
  export declare const accordionItemClassName = "fui-AccordionItem";
118
119
 
119
- export declare type AccordionItemCommons = {
120
+ declare type AccordionItemCommons = {
120
121
  /**
121
122
  * Disables opening/closing of panel
122
123
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../src/Accordion.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"Accordion.js","sourceRoot":"../src/","sources":["Accordion.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/Accordion/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionHeader.js","sourceRoot":"","sources":["../src/AccordionHeader.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC"}
1
+ {"version":3,"file":"AccordionHeader.js","sourceRoot":"../src/","sources":["AccordionHeader.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/AccordionHeader/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../src/AccordionItem.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC"}
1
+ {"version":3,"file":"AccordionItem.js","sourceRoot":"../src/","sources":["AccordionItem.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './components/AccordionItem/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionPanel.js","sourceRoot":"","sources":["../src/AccordionPanel.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC"}
1
+ {"version":3,"file":"AccordionPanel.js","sourceRoot":"../src/","sources":["AccordionPanel.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/AccordionPanel/index';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kCAAT,QAAmD,6BAAnD;AAGA,SAAS,2BAAT,QAA4C,sBAA5C;AAEA;;AAEG;;AACH,OAAO,MAAM,SAAS,gBAAwC,KAAK,CAAC,UAAN,CAC5D,CAAC,KAAD,EAAQ,GAAR,KAAe;AACb,QAAM,KAAK,GAAG,qBAAqB,CAAC,KAAD,EAAQ,GAAR,CAAnC;AACA,QAAM,aAAa,GAAG,kCAAkC,CAAC,KAAD,CAAxD;AAEA,EAAA,2BAA2B,CAAC,KAAD,CAA3B;AAEA,SAAO,wBAAwB,CAAC,KAAD,EAAQ,aAAR,CAA/B;AACD,CAR2D,CAAvD;AAWP,SAAS,CAAC,WAAV,GAAwB,WAAxB","sourceRoot":""}
1
+ {"version":3,"sources":["components/Accordion/Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,kCAAT,QAAmD,6BAAnD;AAGA,SAAS,2BAAT,QAA4C,sBAA5C;AAEA;;AAEG;;AACH,OAAO,MAAM,SAAS,gBAAwC,KAAK,CAAC,UAAN,CAC5D,CAAC,KAAD,EAAQ,GAAR,KAAe;AACb,QAAM,KAAK,GAAG,qBAAqB,CAAC,KAAD,EAAQ,GAAR,CAAnC;AACA,QAAM,aAAa,GAAG,kCAAkC,CAAC,KAAD,CAAxD;AAEA,EAAA,2BAA2B,CAAC,KAAD,CAA3B;AAEA,SAAO,wBAAwB,CAAC,KAAD,EAAQ,aAAR,CAA/B;AACD,CAR2D,CAAvD;AAWP,SAAS,CAAC,WAAV,GAAwB,WAAxB","sourcesContent":["import * as React from 'react';\nimport { renderAccordion_unstable } from './renderAccordion';\nimport { useAccordion_unstable } from './useAccordion';\nimport { useAccordionContextValues_unstable } from './useAccordionContextValues';\nimport type { AccordionProps } from './Accordion.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useAccordionStyles_unstable } from './useAccordionStyles';\n\n/**\n * Define a styled Accordion, using the `useAccordion_unstable` and `useAccordionStyles_unstable` hooks.\n */\nexport const Accordion: ForwardRefComponent<AccordionProps> = React.forwardRef<HTMLDivElement, AccordionProps>(\n (props, ref) => {\n const state = useAccordion_unstable(props, ref);\n const contextValues = useAccordionContextValues_unstable(state);\n\n useAccordionStyles_unstable(state);\n\n return renderAccordion_unstable(state, contextValues);\n },\n);\n\nAccordion.displayName = 'Accordion';\n"],"sourceRoot":"../src/"}
@@ -4,11 +4,12 @@ import type { AccordionItemValue } from '../AccordionItem/AccordionItem.types';
4
4
  export declare type AccordionIndex = number | number[];
5
5
  export declare type AccordionToggleEvent<E = HTMLElement> = React.MouseEvent<E> | React.KeyboardEvent<E>;
6
6
  export declare type AccordionToggleEventHandler = (event: AccordionToggleEvent, data: AccordionToggleData) => void;
7
- export declare type AccordionCommons = {
7
+ declare type AccordionCommons = {
8
8
  /**
9
- * Indicates if keyboard navigation is available
9
+ * Indicates if keyboard navigation is available and gives two options,
10
+ * linear or circular navigation
10
11
  */
11
- navigable: boolean;
12
+ navigation?: 'linear' | 'circular';
12
13
  /**
13
14
  * Indicates if Accordion support multiple Panels opened at the same time
14
15
  */
@@ -50,3 +51,4 @@ export declare type AccordionProps = ComponentProps<AccordionSlots> & Partial<Ac
50
51
  onToggle?: AccordionToggleEventHandler;
51
52
  };
52
53
  export declare type AccordionState = ComponentState<AccordionSlots> & AccordionCommons & AccordionContextValue;
54
+ export {};
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.types.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.types.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"Accordion.types.js","sourceRoot":"../src/","sources":["components/Accordion/Accordion.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { AccordionItemValue } from '../AccordionItem/AccordionItem.types';\n\nexport type AccordionIndex = number | number[];\n\nexport type AccordionToggleEvent<E = HTMLElement> = React.MouseEvent<E> | React.KeyboardEvent<E>;\n\nexport type AccordionToggleEventHandler = (event: AccordionToggleEvent, data: AccordionToggleData) => void;\n\ntype AccordionCommons = {\n /**\n * Indicates if keyboard navigation is available and gives two options,\n * linear or circular navigation\n */\n navigation?: 'linear' | 'circular';\n /**\n * Indicates if Accordion support multiple Panels opened at the same time\n */\n multiple: boolean;\n /**\n * Indicates if Accordion support multiple Panels closed at the same time\n */\n collapsible: boolean;\n};\n\nexport type AccordionContextValue = Omit<AccordionCommons, 'multiple'> & {\n /**\n * The list of opened panels by index\n */\n openItems: AccordionItemValue[];\n /**\n * Callback used by AccordionItem to request a change on it's own opened state\n * Should be used to toggle AccordionItem\n */\n requestToggle: (event: AccordionToggleEvent, data: AccordionToggleData) => void;\n};\n\nexport type AccordionContextValues = {\n accordion: AccordionContextValue;\n};\n\nexport type AccordionSlots = {\n root: Slot<'div'>;\n};\n\nexport type AccordionToggleData = {\n value: AccordionItemValue;\n};\n\nexport type AccordionProps = ComponentProps<AccordionSlots> &\n Partial<AccordionCommons> & {\n /**\n * Controls the state of the panel\n */\n openItems?: AccordionItemValue | AccordionItemValue[];\n /**\n * Default value for the uncontrolled state of the panel\n */\n defaultOpenItems?: AccordionItemValue | AccordionItemValue[];\n onToggle?: AccordionToggleEventHandler;\n };\n\nexport type AccordionState = ComponentState<AccordionSlots> & AccordionCommons & AccordionContextValue;\n"]}
@@ -1,7 +1,6 @@
1
1
  import { createContext } from '@fluentui/react-context-selector';
2
2
  export const AccordionContext = /*#__PURE__*/createContext({
3
3
  openItems: [],
4
- navigable: false,
5
4
  collapsible: false,
6
5
 
7
6
  requestToggle() {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Accordion/AccordionContext.ts"],"names":[],"mappings":"AAAA,SAAS,aAAT,QAA8B,kCAA9B;AAIA,OAAO,MAAM,gBAAgB,gBAAmC,aAAa,CAAwB;AACnG,EAAA,SAAS,EAAE,EADwF;AAEnG,EAAA,SAAS,EAAE,KAFwF;AAGnG,EAAA,WAAW,EAAE,KAHsF;;AAInG,EAAA,aAAa,GAAA;AACX;AACD;;AANkG,CAAxB,CAAtE","sourceRoot":""}
1
+ {"version":3,"sources":["components/Accordion/AccordionContext.ts"],"names":[],"mappings":"AAAA,SAAS,aAAT,QAA8B,kCAA9B;AAIA,OAAO,MAAM,gBAAgB,gBAAmC,aAAa,CAAwB;AACnG,EAAA,SAAS,EAAE,EADwF;AAEnG,EAAA,WAAW,EAAE,KAFsF;;AAGnG,EAAA,aAAa,GAAA;AACX;AACD;;AALkG,CAAxB,CAAtE","sourcesContent":["import { createContext } from '@fluentui/react-context-selector';\nimport type { Context } from '@fluentui/react-context-selector';\nimport type { AccordionContextValue } from './Accordion.types';\n\nexport const AccordionContext: Context<AccordionContextValue> = createContext<AccordionContextValue>({\n openItems: [],\n collapsible: false,\n requestToggle() {\n /* noop */\n },\n});\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"../src/","sources":["components/Accordion/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './Accordion';\nexport * from './Accordion.types';\nexport * from './renderAccordion';\nexport * from './useAccordion';\nexport * from './useAccordionStyles';\nexport * from './useAccordionContextValues';\nexport * from './AccordionContext';\n"]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Accordion/renderAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,gBAAT,QAAiC,oBAAjC;AAGA;;AAEG;;AACH,OAAO,MAAM,wBAAwB,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AACvG,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,CAAC,QAAlB,EAA0B;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAA1B,EAA4D,SAAS,CAAC,IAAV,CAAe,QAA3E,CADF,CADF;AAKD,CARM","sourceRoot":""}
1
+ {"version":3,"sources":["components/Accordion/renderAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,gBAAT,QAAiC,oBAAjC;AAGA;;AAEG;;AACH,OAAO,MAAM,wBAAwB,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AACvG,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,CAAC,QAAlB,EAA0B;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAA1B,EAA4D,SAAS,CAAC,IAAV,CAAe,QAA3E,CADF,CADF;AAKD,CARM","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\n\nimport { AccordionContext } from './AccordionContext';\nimport type { AccordionState, AccordionSlots, AccordionContextValues } from './Accordion.types';\n\n/**\n * Function that renders the final JSX of the component\n */\nexport const renderAccordion_unstable = (state: AccordionState, contextValues: AccordionContextValues) => {\n const { slots, slotProps } = getSlots<AccordionSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n <AccordionContext.Provider value={contextValues.accordion}>{slotProps.root.children}</AccordionContext.Provider>\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
@@ -1,5 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { getNativeElementProps, useControllableState, useEventCallback } from '@fluentui/react-utilities';
3
+ import { useArrowNavigationGroup } from '@fluentui/react-tabster';
3
4
  /**
4
5
  * Returns the props and state required to render the component
5
6
  * @param props - Accordion properties
@@ -13,36 +14,37 @@ export const useAccordion_unstable = (props, ref) => {
13
14
  multiple = false,
14
15
  collapsible = false,
15
16
  onToggle,
16
- navigable = false
17
+ navigation
17
18
  } = props;
18
19
  const [openItems, setOpenItems] = useControllableState({
19
20
  state: React.useMemo(() => normalizeValues(controlledOpenItems), [controlledOpenItems]),
20
21
  defaultState: () => initializeUncontrolledOpenItems({
21
- collapsible,
22
22
  defaultOpenItems,
23
23
  multiple
24
24
  }),
25
25
  initialState: []
26
26
  });
27
+ const arrowNavigationProps = useArrowNavigationGroup({
28
+ circular: navigation === 'circular'
29
+ });
27
30
  const requestToggle = useEventCallback((event, data) => {
28
31
  onToggle === null || onToggle === void 0 ? void 0 : onToggle(event, data);
29
- setOpenItems(previousOpenItems => {
30
- return updateOpenItems(data.value, previousOpenItems, {
31
- collapsible,
32
- multiple
33
- });
34
- });
32
+ setOpenItems(previousOpenItems => updateOpenItems(data.value, previousOpenItems, {
33
+ collapsible,
34
+ multiple
35
+ }));
35
36
  });
36
37
  return {
37
38
  multiple,
38
39
  collapsible,
39
- navigable,
40
+ navigation,
40
41
  openItems,
41
42
  requestToggle,
42
43
  components: {
43
44
  root: 'div'
44
45
  },
45
46
  root: getNativeElementProps('div', { ...props,
47
+ ...(navigation ? arrowNavigationProps : {}),
46
48
  ref
47
49
  })
48
50
  };
@@ -53,8 +55,7 @@ export const useAccordion_unstable = (props, ref) => {
53
55
 
54
56
  function initializeUncontrolledOpenItems({
55
57
  defaultOpenItems,
56
- multiple,
57
- collapsible
58
+ multiple
58
59
  }) {
59
60
  if (defaultOpenItems !== undefined) {
60
61
  if (Array.isArray(defaultOpenItems)) {
@@ -63,14 +64,8 @@ function initializeUncontrolledOpenItems({
63
64
 
64
65
  return [defaultOpenItems];
65
66
  }
66
- /**
67
- * TODO: since the dropping of descendants API due to performance issues,
68
- * the default behavior of Accordion has been compromised and [0] makes no sense
69
- * indexes are not used anymore to ensure the position of the element which should be opened by default
70
- */
71
-
72
67
 
73
- return collapsible ? [] : [0];
68
+ return [];
74
69
  }
75
70
  /**
76
71
  * Updates the list of open indexes based on an index that changes
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Accordion/useAccordion.ts"],"names":[],"mappings":"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","sourceRoot":""}
1
+ {"version":3,"sources":["components/Accordion/useAccordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,oBAAhC,EAAsD,gBAAtD,QAA8E,2BAA9E;AAGA,SAAS,uBAAT,QAAwC,yBAAxC;AAEA;;;;AAIG;;AACH,OAAO,MAAM,qBAAqB,GAAG,CAAC,KAAD,EAAwB,GAAxB,KAAuE;AAC1G,QAAM;AACJ,IAAA,SAAS,EAAE,mBADP;AAEJ,IAAA,gBAFI;AAGJ,IAAA,QAAQ,GAAG,KAHP;AAIJ,IAAA,WAAW,GAAG,KAJV;AAKJ,IAAA,QALI;AAMJ,IAAA;AANI,MAOF,KAPJ;AAQA,QAAM,CAAC,SAAD,EAAY,YAAZ,IAA4B,oBAAoB,CAAC;AACrD,IAAA,KAAK,EAAE,KAAK,CAAC,OAAN,CAAc,MAAM,eAAe,CAAC,mBAAD,CAAnC,EAA0D,CAAC,mBAAD,CAA1D,CAD8C;AAErD,IAAA,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAAE,MAAA,gBAAF;AAAoB,MAAA;AAApB,KAAD,CAFE;AAGrD,IAAA,YAAY,EAAE;AAHuC,GAAD,CAAtD;AAMA,QAAM,oBAAoB,GAAG,uBAAuB,CAAC;AACnD,IAAA,QAAQ,EAAE,UAAU,KAAK;AAD0B,GAAD,CAApD;AAIA,QAAM,aAAa,GAAG,gBAAgB,CAAC,CAAC,KAAD,EAA8B,IAA9B,KAA2D;AAChG,IAAA,QAAQ,KAAA,IAAR,IAAA,QAAQ,KAAA,KAAA,CAAR,GAAQ,KAAA,CAAR,GAAA,QAAQ,CAAG,KAAH,EAAU,IAAV,CAAR;AACA,IAAA,YAAY,CAAC,iBAAiB,IAC5B,eAAe,CAAC,IAAI,CAAC,KAAN,EAAa,iBAAb,EAAgC;AAC7C,MAAA,WAD6C;AAE7C,MAAA;AAF6C,KAAhC,CADL,CAAZ;AAMD,GARqC,CAAtC;AAUA,SAAO;AACL,IAAA,QADK;AAEL,IAAA,WAFK;AAGL,IAAA,UAHK;AAIL,IAAA,SAJK;AAKL,IAAA,aALK;AAML,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KANP;AASL,IAAA,IAAI,EAAE,qBAAqB,CAAC,KAAD,EAAQ,EACjC,GAAG,KAD8B;AAEjC,UAAI,UAAU,GAAG,oBAAH,GAA0B,EAAxC,CAFiC;AAGjC,MAAA;AAHiC,KAAR;AATtB,GAAP;AAeD,CA5CM;AA8CP;;AAEG;;AACH,SAAS,+BAAT,CAAyC;AACvC,EAAA,gBADuC;AAEvC,EAAA;AAFuC,CAAzC,EAGwD;AACtD,MAAI,gBAAgB,KAAK,SAAzB,EAAoC;AAClC,QAAI,KAAK,CAAC,OAAN,CAAc,gBAAd,CAAJ,EAAqC;AACnC,aAAO,QAAQ,GAAG,gBAAH,GAAsB,CAAC,gBAAgB,CAAC,CAAD,CAAjB,CAArC;AACD;;AACD,WAAO,CAAC,gBAAD,CAAP;AACD;;AACD,SAAO,EAAP;AACD;AAED;;;;;AAKG;;;AACH,SAAS,eAAT,CACE,KADF,EAEE,iBAFF,EAGE;AAAE,EAAA,QAAF;AAAY,EAAA;AAAZ,CAHF,EAG6E;AAE3E,MAAI,QAAJ,EAAc;AACZ,QAAI,iBAAiB,CAAC,QAAlB,CAA2B,KAA3B,CAAJ,EAAuC;AACrC,UAAI,iBAAiB,CAAC,MAAlB,GAA2B,CAA3B,IAAgC,WAApC,EAAiD;AAC/C,eAAO,iBAAiB,CAAC,MAAlB,CAAyB,CAAC,IAAI,CAAC,KAAK,KAApC,CAAP;AACD;AACF,KAJD,MAIO;AACL,aAAO,CAAC,GAAG,iBAAJ,EAAuB,KAAvB,EAA8B,IAA9B,EAAP;AACD;AACF,GARD,MAQO;AACL,WAAO,iBAAiB,CAAC,CAAD,CAAjB,KAAyB,KAAzB,IAAkC,WAAlC,GAAgD,EAAhD,GAAqD,CAAC,KAAD,CAA5D;AACD;;AACD,SAAO,iBAAP;AACD;AAED;;AAEG;;;AACH,SAAS,eAAT,CAAyB,KAAzB,EAA0E;AACxE,MAAI,KAAK,KAAK,SAAd,EAAyB;AACvB,WAAO,SAAP;AACD;;AACD,SAAO,KAAK,CAAC,OAAN,CAAc,KAAd,IAAuB,KAAvB,GAA+B,CAAC,KAAD,CAAtC;AACD","sourcesContent":["import * as React from 'react';\nimport { getNativeElementProps, useControllableState, useEventCallback } from '@fluentui/react-utilities';\nimport type { AccordionProps, AccordionState, AccordionToggleData, AccordionToggleEvent } from './Accordion.types';\nimport type { AccordionItemValue } from '../AccordionItem/AccordionItem.types';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\n\n/**\n * Returns the props and state required to render the component\n * @param props - Accordion properties\n * @param ref - reference to root HTMLElement of Accordion\n */\nexport const useAccordion_unstable = (props: AccordionProps, ref: React.Ref<HTMLElement>): AccordionState => {\n const {\n openItems: controlledOpenItems,\n defaultOpenItems,\n multiple = false,\n collapsible = false,\n onToggle,\n navigation,\n } = props;\n const [openItems, setOpenItems] = useControllableState({\n state: React.useMemo(() => normalizeValues(controlledOpenItems), [controlledOpenItems]),\n defaultState: () => initializeUncontrolledOpenItems({ defaultOpenItems, multiple }),\n initialState: [],\n });\n\n const arrowNavigationProps = useArrowNavigationGroup({\n circular: navigation === 'circular',\n });\n\n const requestToggle = useEventCallback((event: AccordionToggleEvent, data: AccordionToggleData) => {\n onToggle?.(event, data);\n setOpenItems(previousOpenItems =>\n updateOpenItems(data.value, previousOpenItems, {\n collapsible,\n multiple,\n }),\n );\n });\n\n return {\n multiple,\n collapsible,\n navigation,\n openItems,\n requestToggle,\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ...props,\n ...(navigation ? arrowNavigationProps : {}),\n ref,\n }),\n };\n};\n\n/**\n * Initial value for the uncontrolled case of the list of open indexes\n */\nfunction initializeUncontrolledOpenItems({\n defaultOpenItems,\n multiple,\n}: Pick<AccordionProps, 'defaultOpenItems' | 'multiple'>): AccordionItemValue[] {\n if (defaultOpenItems !== undefined) {\n if (Array.isArray(defaultOpenItems)) {\n return multiple ? defaultOpenItems : [defaultOpenItems[0]];\n }\n return [defaultOpenItems];\n }\n return [];\n}\n\n/**\n * Updates the list of open indexes based on an index that changes\n * @param value - the index that will change\n * @param previousOpenItems - list of current open indexes\n * @param param2 - {multiple, collapsible}\n */\nfunction updateOpenItems(\n value: AccordionItemValue,\n previousOpenItems: AccordionItemValue[],\n { multiple, collapsible }: Pick<AccordionState, 'multiple' | 'collapsible'>,\n) {\n if (multiple) {\n if (previousOpenItems.includes(value)) {\n if (previousOpenItems.length > 1 || collapsible) {\n return previousOpenItems.filter(i => i !== value);\n }\n } else {\n return [...previousOpenItems, value].sort();\n }\n } else {\n return previousOpenItems[0] === value && collapsible ? [] : [value];\n }\n return previousOpenItems;\n}\n\n/**\n * Normalizes Accordion index into an array of indexes\n */\nfunction normalizeValues(index?: AccordionItemValue | AccordionItemValue[]): AccordionItemValue[] | undefined {\n if (index === undefined) {\n return undefined;\n }\n return Array.isArray(index) ? index : [index];\n}\n"],"sourceRoot":"../src/"}
@@ -1,13 +1,13 @@
1
1
  export function useAccordionContextValues_unstable(state) {
2
2
  const {
3
- navigable,
3
+ navigation,
4
4
  openItems,
5
5
  requestToggle,
6
6
  collapsible
7
7
  } = state; // This context is created with "@fluentui/react-context-selector", these is no sense to memoize it
8
8
 
9
9
  const accordion = {
10
- navigable,
10
+ navigation,
11
11
  openItems,
12
12
  requestToggle,
13
13
  collapsible
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Accordion/useAccordionContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,kCAAV,CAA6C,KAA7C,EAAkE;AACtE,QAAM;AAAE,IAAA,SAAF;AAAa,IAAA,SAAb;AAAwB,IAAA,aAAxB;AAAuC,IAAA;AAAvC,MAAuD,KAA7D,CADsE,CAGtE;;AACA,QAAM,SAAS,GAA0B;AACvC,IAAA,SADuC;AAEvC,IAAA,SAFuC;AAGvC,IAAA,aAHuC;AAIvC,IAAA;AAJuC,GAAzC;AAOA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourceRoot":""}
1
+ {"version":3,"sources":["components/Accordion/useAccordionContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,kCAAV,CAA6C,KAA7C,EAAkE;AACtE,QAAM;AAAE,IAAA,UAAF;AAAc,IAAA,SAAd;AAAyB,IAAA,aAAzB;AAAwC,IAAA;AAAxC,MAAwD,KAA9D,CADsE,CAGtE;;AACA,QAAM,SAAS,GAA0B;AACvC,IAAA,UADuC;AAEvC,IAAA,SAFuC;AAGvC,IAAA,aAHuC;AAIvC,IAAA;AAJuC,GAAzC;AAOA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD","sourcesContent":["import type { AccordionContextValue, AccordionContextValues, AccordionState } from './Accordion.types';\n\nexport function useAccordionContextValues_unstable(state: AccordionState): AccordionContextValues {\n const { navigation, openItems, requestToggle, collapsible } = state;\n\n // This context is created with \"@fluentui/react-context-selector\", these is no sense to memoize it\n const accordion: AccordionContextValue = {\n navigation,\n openItems,\n requestToggle,\n collapsible,\n };\n\n return { accordion };\n}\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/Accordion/useAccordionStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,OAAO,MAAM,kBAAkB,GAAG,eAA3B;AAEP,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0B;AACnE,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,kBAAD,EAAqB,KAAK,CAAC,IAAN,CAAW,SAAhC,CAAnC;AAEA,SAAO,KAAP;AACD,CAJM","sourceRoot":""}
1
+ {"version":3,"sources":["components/Accordion/useAccordionStyles.ts"],"names":[],"mappings":"AAAA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,OAAO,MAAM,kBAAkB,GAAG,eAA3B;AAEP,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0B;AACnE,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,kBAAD,EAAqB,KAAK,CAAC,IAAN,CAAW,SAAhC,CAAnC;AAEA,SAAO,KAAP;AACD,CAJM","sourcesContent":["import { mergeClasses } from '@griffel/react';\nimport type { AccordionState } from './Accordion.types';\n\nexport const accordionClassName = 'fui-Accordion';\n\nexport const useAccordionStyles_unstable = (state: AccordionState) => {\n state.root.className = mergeClasses(accordionClassName, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/components/AccordionHeader/AccordionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,2BAAT,QAA4C,sBAA5C;AACA,SAAS,8BAAT,QAA+C,yBAA/C;AACA,SAAS,iCAAT,QAAkD,4BAAlD;AACA,SAAS,wCAAT,QAAyD,mCAAzD;AAIA;;;AAGG;;AACH,OAAO,MAAM,eAAe,gBAA8C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxG,QAAM,KAAK,GAAG,2BAA2B,CAAC,KAAD,EAAQ,GAAR,CAAzC;AACA,QAAM,aAAa,GAAG,wCAAwC,CAAC,KAAD,CAA9D;AAEA,EAAA,iCAAiC,CAAC,KAAD,CAAjC;AAEA,SAAO,8BAA8B,CAAC,KAAD,EAAQ,aAAR,CAArC;AACD,CAPyE,CAAnE;AASP,eAAe,CAAC,WAAhB,GAA8B,iBAA9B","sourceRoot":""}
1
+ {"version":3,"sources":["components/AccordionHeader/AccordionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,2BAAT,QAA4C,sBAA5C;AACA,SAAS,8BAAT,QAA+C,yBAA/C;AACA,SAAS,iCAAT,QAAkD,4BAAlD;AACA,SAAS,wCAAT,QAAyD,mCAAzD;AAIA;;;AAGG;;AACH,OAAO,MAAM,eAAe,gBAA8C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxG,QAAM,KAAK,GAAG,2BAA2B,CAAC,KAAD,EAAQ,GAAR,CAAzC;AACA,QAAM,aAAa,GAAG,wCAAwC,CAAC,KAAD,CAA9D;AAEA,EAAA,iCAAiC,CAAC,KAAD,CAAjC;AAEA,SAAO,8BAA8B,CAAC,KAAD,EAAQ,aAAR,CAArC;AACD,CAPyE,CAAnE;AASP,eAAe,CAAC,WAAhB,GAA8B,iBAA9B","sourcesContent":["import * as React from 'react';\nimport { useAccordionHeader_unstable } from './useAccordionHeader';\nimport { renderAccordionHeader_unstable } from './renderAccordionHeader';\nimport { useAccordionHeaderStyles_unstable } from './useAccordionHeaderStyles';\nimport { useAccordionHeaderContextValues_unstable } from './useAccordionHeaderContextValues';\nimport type { AccordionHeaderProps } from './AccordionHeader.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * Define a styled AccordionHeader, using the `useAccordionHeader_unstable` and `useAccordionHeaderStyles_unstable`\n * hooks.\n */\nexport const AccordionHeader: ForwardRefComponent<AccordionHeaderProps> = React.forwardRef((props, ref) => {\n const state = useAccordionHeader_unstable(props, ref);\n const contextValues = useAccordionHeaderContextValues_unstable(state);\n\n useAccordionHeaderStyles_unstable(state);\n\n return renderAccordionHeader_unstable(state, contextValues);\n});\n\nAccordionHeader.displayName = 'AccordionHeader';\n"],"sourceRoot":"../src/"}