@fluentui/react-accordion 0.0.0-nightly0bc161458e20220126.1 → 0.0.0-nightly2170ed575f20220223.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 (99) hide show
  1. package/CHANGELOG.json +195 -31
  2. package/CHANGELOG.md +52 -14
  3. package/Spec.md +36 -4
  4. package/dist/react-accordion.d.ts +19 -15
  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 +7 -5
  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 +12 -8
  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 +1 -1
  27. package/lib/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
  28. package/lib/components/AccordionHeader/useAccordionHeader.js +2 -2
  29. package/lib/components/AccordionHeader/useAccordionHeader.js.map +1 -1
  30. package/lib/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
  31. package/lib/components/AccordionHeader/useAccordionHeaderStyles.js +5 -1
  32. package/lib/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
  33. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  34. package/lib/components/AccordionItem/AccordionItem.types.d.ts +4 -3
  35. package/lib/components/AccordionItem/AccordionItem.types.js.map +1 -1
  36. package/lib/components/AccordionItem/AccordionItemContext.js.map +1 -1
  37. package/lib/components/AccordionItem/index.js.map +1 -1
  38. package/lib/components/AccordionItem/renderAccordionItem.js.map +1 -1
  39. package/lib/components/AccordionItem/useAccordionItem.js +5 -7
  40. package/lib/components/AccordionItem/useAccordionItem.js.map +1 -1
  41. package/lib/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
  42. package/lib/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
  43. package/lib/components/AccordionPanel/AccordionPanel.js.map +1 -1
  44. package/lib/components/AccordionPanel/AccordionPanel.types.d.ts +2 -2
  45. package/lib/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
  46. package/lib/components/AccordionPanel/index.js.map +1 -1
  47. package/lib/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
  48. package/lib/components/AccordionPanel/useAccordionPanel.js +0 -1
  49. package/lib/components/AccordionPanel/useAccordionPanel.js.map +1 -1
  50. package/lib/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
  51. package/lib/index.js.map +1 -1
  52. package/lib-commonjs/Accordion.js.map +1 -1
  53. package/lib-commonjs/AccordionHeader.js.map +1 -1
  54. package/lib-commonjs/AccordionItem.js.map +1 -1
  55. package/lib-commonjs/AccordionPanel.js.map +1 -1
  56. package/lib-commonjs/components/Accordion/Accordion.js.map +1 -1
  57. package/lib-commonjs/components/Accordion/Accordion.types.d.ts +7 -5
  58. package/lib-commonjs/components/Accordion/Accordion.types.js.map +1 -1
  59. package/lib-commonjs/components/Accordion/AccordionContext.js +0 -1
  60. package/lib-commonjs/components/Accordion/AccordionContext.js.map +1 -1
  61. package/lib-commonjs/components/Accordion/index.js.map +1 -1
  62. package/lib-commonjs/components/Accordion/renderAccordion.js.map +1 -1
  63. package/lib-commonjs/components/Accordion/useAccordion.js +14 -18
  64. package/lib-commonjs/components/Accordion/useAccordion.js.map +1 -1
  65. package/lib-commonjs/components/Accordion/useAccordionContextValues.js +2 -2
  66. package/lib-commonjs/components/Accordion/useAccordionContextValues.js.map +1 -1
  67. package/lib-commonjs/components/Accordion/useAccordionStyles.js.map +1 -1
  68. package/lib-commonjs/components/AccordionHeader/AccordionHeader.js.map +1 -1
  69. package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.d.ts +12 -8
  70. package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.js.map +1 -1
  71. package/lib-commonjs/components/AccordionHeader/AccordionHeaderContext.js.map +1 -1
  72. package/lib-commonjs/components/AccordionHeader/index.js.map +1 -1
  73. package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js +1 -1
  74. package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
  75. package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js +2 -2
  76. package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js.map +1 -1
  77. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
  78. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js +5 -1
  79. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
  80. package/lib-commonjs/components/AccordionItem/AccordionItem.js.map +1 -1
  81. package/lib-commonjs/components/AccordionItem/AccordionItem.types.d.ts +4 -3
  82. package/lib-commonjs/components/AccordionItem/AccordionItem.types.js.map +1 -1
  83. package/lib-commonjs/components/AccordionItem/AccordionItemContext.js.map +1 -1
  84. package/lib-commonjs/components/AccordionItem/index.js.map +1 -1
  85. package/lib-commonjs/components/AccordionItem/renderAccordionItem.js.map +1 -1
  86. package/lib-commonjs/components/AccordionItem/useAccordionItem.js +4 -6
  87. package/lib-commonjs/components/AccordionItem/useAccordionItem.js.map +1 -1
  88. package/lib-commonjs/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
  89. package/lib-commonjs/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
  90. package/lib-commonjs/components/AccordionPanel/AccordionPanel.js.map +1 -1
  91. package/lib-commonjs/components/AccordionPanel/AccordionPanel.types.d.ts +2 -2
  92. package/lib-commonjs/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
  93. package/lib-commonjs/components/AccordionPanel/index.js.map +1 -1
  94. package/lib-commonjs/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
  95. package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js +0 -1
  96. package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js.map +1 -1
  97. package/lib-commonjs/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
  98. package/lib-commonjs/index.js.map +1 -1
  99. package/package.json +12 -12
package/CHANGELOG.json CHANGED
@@ -2,34 +2,138 @@
2
2
  "name": "@fluentui/react-accordion",
3
3
  "entries": [
4
4
  {
5
- "date": "Wed, 26 Jan 2022 04:16:43 GMT",
6
- "tag": "@fluentui/react-accordion_v0.0.0-nightly0bc161458e20220126.1",
7
- "version": "0.0.0-nightly0bc161458e20220126.1",
5
+ "date": "Wed, 23 Feb 2022 04:16:19 GMT",
6
+ "tag": "@fluentui/react-accordion_v0.0.0-nightly2170ed575f20220223.1",
7
+ "version": "0.0.0-nightly2170ed575f20220223.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
11
  "author": "email not defined",
12
12
  "package": "@fluentui/react-accordion",
13
- "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c",
13
+ "commit": "d95e2014fb1257eac783ce505fc7a7652da408c2",
14
14
  "comment": "Release nightly v9"
15
15
  },
16
16
  {
17
- "author": "Humberto.Morimoto@microsoft.com",
17
+ "author": "beachball",
18
18
  "package": "@fluentui/react-accordion",
19
- "commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
20
- "comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
19
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightly2170ed575f20220223.1",
20
+ "commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
21
21
  },
22
22
  {
23
- "author": "Humberto.Morimoto@microsoft.com",
23
+ "author": "beachball",
24
24
  "package": "@fluentui/react-accordion",
25
- "commit": "22ef7434eddbe45d8818b16ff43c3488ac84ae45",
26
- "comment": "Replacing use of functions in makeStyles with direct use of tokens."
25
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly2170ed575f20220223.1",
26
+ "commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
27
27
  },
28
28
  {
29
- "author": "behowell@microsoft.com",
29
+ "author": "beachball",
30
30
  "package": "@fluentui/react-accordion",
31
- "commit": "dfb5538a2494b48cbb61702c4c2c9aaf8de37a6f",
32
- "comment": "Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead"
31
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly2170ed575f20220223.1",
32
+ "commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-accordion",
37
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly2170ed575f20220223.1",
38
+ "commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-accordion",
43
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly2170ed575f20220223.1",
44
+ "commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-accordion",
49
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly2170ed575f20220223.1",
50
+ "commit": "d95e2014fb1257eac783ce505fc7a7652da408c2"
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": [
132
+ {
133
+ "author": "olfedias@microsoft.com",
134
+ "package": "@fluentui/react-accordion",
135
+ "commit": "b23239743c4f5518bcf7dcad496a36fc16bbd2e5",
136
+ "comment": "update @fluentui/react-icons package"
33
137
  },
34
138
  {
35
139
  "author": "olfedias@microsoft.com",
@@ -37,6 +141,24 @@
37
141
  "commit": "b8537fb52cc3cc2787be5675c65300e01d882add",
38
142
  "comment": "update styles to not use CSS shorthands"
39
143
  },
144
+ {
145
+ "author": "mgodbolt@microsoft.com",
146
+ "package": "@fluentui/react-accordion",
147
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
148
+ "comment": "remove export of commons types"
149
+ },
150
+ {
151
+ "author": "behowell@microsoft.com",
152
+ "package": "@fluentui/react-accordion",
153
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
154
+ "comment": "Refactor component Slot typings"
155
+ },
156
+ {
157
+ "author": "tristan.watanabe@gmail.com",
158
+ "package": "@fluentui/react-accordion",
159
+ "commit": "13f940ea4687d769dd2faf61edc27ff75f6bb565",
160
+ "comment": "Allow React 17 in peerDependencies."
161
+ },
40
162
  {
41
163
  "author": "behowell@microsoft.com",
42
164
  "package": "@fluentui/react-accordion",
@@ -61,6 +183,18 @@
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
+ },
192
+ {
193
+ "author": "sarah.higley@microsoft.com",
194
+ "package": "@fluentui/react-accordion",
195
+ "commit": "d0758018bf44c69e01451c8a6bd4f73b43e397b7",
196
+ "comment": "update semantic elements and ARIA roles in react-accordion, add heading level story"
197
+ },
64
198
  {
65
199
  "author": "ololubek@microsoft.com",
66
200
  "package": "@fluentui/react-accordion",
@@ -73,61 +207,91 @@
73
207
  "commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
74
208
  "comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
75
209
  },
210
+ {
211
+ "author": "Humberto.Morimoto@microsoft.com",
212
+ "package": "@fluentui/react-accordion",
213
+ "commit": "e0b8e1fa6980077e7b311fd1c72c28d3e4305db0",
214
+ "comment": "Updating based on changes to composition types."
215
+ },
216
+ {
217
+ "author": "Humberto.Morimoto@microsoft.com",
218
+ "package": "@fluentui/react-accordion",
219
+ "commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
220
+ "comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
221
+ },
222
+ {
223
+ "author": "Humberto.Morimoto@microsoft.com",
224
+ "package": "@fluentui/react-accordion",
225
+ "commit": "22ef7434eddbe45d8818b16ff43c3488ac84ae45",
226
+ "comment": "Replacing use of functions in makeStyles with direct use of tokens."
227
+ },
228
+ {
229
+ "author": "behowell@microsoft.com",
230
+ "package": "@fluentui/react-accordion",
231
+ "commit": "dfb5538a2494b48cbb61702c4c2c9aaf8de37a6f",
232
+ "comment": "Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead"
233
+ },
76
234
  {
77
235
  "author": "beachball",
78
236
  "package": "@fluentui/react-accordion",
79
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightly0bc161458e20220126.1",
80
- "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
237
+ "comment": "Bump @fluentui/react-aria to v9.0.0-rc.1",
238
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
81
239
  },
82
240
  {
83
241
  "author": "beachball",
84
242
  "package": "@fluentui/react-accordion",
85
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly0bc161458e20220126.1",
86
- "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
243
+ "comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.1",
244
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
87
245
  },
88
246
  {
89
247
  "author": "beachball",
90
248
  "package": "@fluentui/react-accordion",
91
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1",
92
- "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
249
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
250
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
93
251
  },
94
252
  {
95
253
  "author": "beachball",
96
254
  "package": "@fluentui/react-accordion",
97
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly0bc161458e20220126.1",
98
- "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
255
+ "comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
256
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
99
257
  },
100
258
  {
101
259
  "author": "beachball",
102
260
  "package": "@fluentui/react-accordion",
103
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1",
104
- "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
261
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
262
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
105
263
  },
106
264
  {
107
265
  "author": "beachball",
108
266
  "package": "@fluentui/react-accordion",
109
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1",
110
- "commit": "68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c"
267
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
268
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
111
269
  }
112
270
  ],
113
271
  "none": [
114
- {
115
- "author": "olfedias@microsoft.com",
116
- "package": "@fluentui/react-accordion",
117
- "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
118
- "comment": "remove inline-style-expand-shorthand from tsconfigs"
119
- },
120
272
  {
121
273
  "author": "martinhochel@microsoft.com",
122
274
  "package": "@fluentui/react-accordion",
123
275
  "commit": "28ceaaa83cd92a0389c466f0b15b283e3d9b08e4",
124
276
  "comment": "chore: update all jest deps to v25 + apply single version policy"
125
277
  },
278
+ {
279
+ "author": "bsunderhus@microsoft.com",
280
+ "package": "@fluentui/react-accordion",
281
+ "commit": "c0d4e63ee58e60e2c6674efbacc0783cd520984e",
282
+ "comment": "Updates components with nullRender changes"
283
+ },
126
284
  {
127
285
  "author": "martinhochel@microsoft.com",
128
286
  "package": "@fluentui/react-accordion",
129
287
  "commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
130
288
  "comment": "chore: use storybook runner for all vNext packages"
289
+ },
290
+ {
291
+ "author": "olfedias@microsoft.com",
292
+ "package": "@fluentui/react-accordion",
293
+ "commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
294
+ "comment": "remove inline-style-expand-shorthand from tsconfigs"
131
295
  }
132
296
  ]
133
297
  }
package/CHANGELOG.md CHANGED
@@ -1,33 +1,71 @@
1
1
  # Change Log - @fluentui/react-accordion
2
2
 
3
- This log was last generated on Wed, 26 Jan 2022 04:16:43 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 23 Feb 2022 04:16:19 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly0bc161458e20220126.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightly0bc161458e20220126.1)
7
+ ## [0.0.0-nightly2170ed575f20220223.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightly2170ed575f20220223.1)
8
8
 
9
- Wed, 26 Jan 2022 04:16:43 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-beta.5..@fluentui/react-accordion_v0.0.0-nightly0bc161458e20220126.1)
9
+ Wed, 23 Feb 2022 04:16:19 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-rc.3..@fluentui/react-accordion_v0.0.0-nightly2170ed575f20220223.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by email not defined)
15
- - 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)
16
- - 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)
17
- - Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead ([PR #21218](https://github.com/microsoft/fluentui/pull/21218) by behowell@microsoft.com)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by email not defined)
15
+ - Bump @fluentui/react-aria to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
16
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
17
+ - Bump @fluentui/react-tabster to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
18
+ - Bump @fluentui/react-theme to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
19
+ - Bump @fluentui/react-utilities to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) by beachball)
20
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly2170ed575f20220223.1 ([commit](https://github.com/microsoft/fluentui/commit/d95e2014fb1257eac783ce505fc7a7652da408c2) 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)
43
+
44
+ ### Changes
45
+
46
+ - update @fluentui/react-icons package ([PR #21498](https://github.com/microsoft/fluentui/pull/21498) by olfedias@microsoft.com)
18
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)
49
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
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)
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)
23
57
  - Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
24
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)
25
- - Bump @fluentui/react-aria to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
26
- - Bump @fluentui/react-context-selector to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
27
- - Bump @fluentui/react-tabster to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
28
- - Bump @fluentui/react-theme to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
29
- - Bump @fluentui/react-utilities to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
30
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly0bc161458e20220126.1 ([commit](https://github.com/microsoft/fluentui/commit/68e7ec86018b052c1f95cc84d4a0a2fbe361eb7c) by beachball)
59
+ - Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
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)
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)
62
+ - Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead ([PR #21218](https://github.com/microsoft/fluentui/pull/21218) by behowell@microsoft.com)
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)
31
69
 
32
70
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-beta.5)
33
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
+ ```
@@ -1,10 +1,10 @@
1
- import type { ARIAButtonShorthandProps } from '@fluentui/react-aria';
1
+ import type { ARIAButtonSlotProps } from '@fluentui/react-aria';
2
2
  import type { ComponentProps } from '@fluentui/react-utilities';
3
3
  import type { ComponentState } from '@fluentui/react-utilities';
4
4
  import type { Context } from '@fluentui/react-context-selector';
5
5
  import type { ForwardRefComponent } from '@fluentui/react-utilities';
6
- import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
7
6
  import * as React_2 from 'react';
7
+ import type { Slot } from '@fluentui/react-utilities';
8
8
 
9
9
  /**
10
10
  * Define a styled Accordion, using the `useAccordion_unstable` and `useAccordionStyles_unstable` hooks.
@@ -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
  */
@@ -82,24 +83,27 @@ export declare type AccordionHeaderContextValues = {
82
83
 
83
84
  export declare type AccordionHeaderExpandIconPosition = 'start' | 'end';
84
85
 
85
- export declare type AccordionHeaderProps = ComponentProps<AccordionHeaderSlots> & Partial<AccordionHeaderCommons>;
86
+ export declare type AccordionHeaderProps = ComponentProps<Partial<AccordionHeaderSlots>> & Partial<AccordionHeaderCommons>;
86
87
 
87
88
  export declare type AccordionHeaderSize = 'small' | 'medium' | 'large' | 'extra-large';
88
89
 
89
90
  export declare type AccordionHeaderSlots = {
90
- root: IntrinsicShorthandProps<'div'>;
91
+ /**
92
+ * The element wrapping the button. By default this is a div, but can be a heading.
93
+ */
94
+ root: Slot<'div', 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;
91
95
  /**
92
96
  * The component to be used as button in heading
93
97
  */
94
- button: ARIAButtonShorthandProps;
98
+ button: NonNullable<Slot<ARIAButtonSlotProps>>;
95
99
  /**
96
100
  * Expand icon slot rendered before (or after) children content in heading
97
101
  */
98
- expandIcon: IntrinsicShorthandProps<'span'>;
102
+ expandIcon: Slot<'span'>;
99
103
  /**
100
104
  * Expand icon slot rendered before (or after) children content in heading
101
105
  */
102
- icon?: IntrinsicShorthandProps<'div'>;
106
+ icon?: Slot<'div'>;
103
107
  };
104
108
 
105
109
  export declare type AccordionHeaderState = ComponentState<AccordionHeaderSlots> & AccordionHeaderCommons & AccordionHeaderContextValue;
@@ -113,7 +117,7 @@ export declare const AccordionItem: ForwardRefComponent<AccordionItemProps>;
113
117
 
114
118
  export declare const accordionItemClassName = "fui-AccordionItem";
115
119
 
116
- export declare type AccordionItemCommons = {
120
+ declare type AccordionItemCommons = {
117
121
  /**
118
122
  * Disables opening/closing of panel
119
123
  */
@@ -138,7 +142,7 @@ export declare type AccordionItemContextValues = {
138
142
  export declare type AccordionItemProps = ComponentProps<AccordionItemSlots> & Partial<AccordionItemCommons> & Pick<AccordionItemCommons, 'value'>;
139
143
 
140
144
  export declare type AccordionItemSlots = {
141
- root: IntrinsicShorthandProps<'div'>;
145
+ root: Slot<'div'>;
142
146
  };
143
147
 
144
148
  export declare type AccordionItemState = ComponentState<AccordionItemSlots> & AccordionItemCommons & AccordionItemContextValue;
@@ -155,7 +159,7 @@ export declare const accordionPanelClassName = "fui-AccordionPanel";
155
159
  export declare type AccordionPanelProps = ComponentProps<AccordionPanelSlots>;
156
160
 
157
161
  export declare type AccordionPanelSlots = {
158
- root: IntrinsicShorthandProps<'div'>;
162
+ root: Slot<'div'>;
159
163
  };
160
164
 
161
165
  export declare type AccordionPanelState = ComponentState<AccordionPanelSlots> & {
@@ -178,7 +182,7 @@ export declare type AccordionProps = ComponentProps<AccordionSlots> & Partial<Ac
178
182
  };
179
183
 
180
184
  export declare type AccordionSlots = {
181
- root: IntrinsicShorthandProps<'div'>;
185
+ root: Slot<'div'>;
182
186
  };
183
187
 
184
188
  export declare type AccordionState = ComponentState<AccordionSlots> & AccordionCommons & AccordionContextValue;
@@ -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/"}
@@ -1,14 +1,15 @@
1
1
  import * as React from 'react';
2
- import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
2
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
3
  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
  */
@@ -33,7 +34,7 @@ export declare type AccordionContextValues = {
33
34
  accordion: AccordionContextValue;
34
35
  };
35
36
  export declare type AccordionSlots = {
36
- root: IntrinsicShorthandProps<'div'>;
37
+ root: Slot<'div'>;
37
38
  };
38
39
  export declare type AccordionToggleData = {
39
40
  value: AccordionItemValue;
@@ -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"]}