@fluentui/react-accordion 0.0.0-nightly-20220714-0418.1 → 0.0.0-nightly-20221007-1237.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 +274 -18
  2. package/CHANGELOG.md +90 -12
  3. package/dist/index.d.ts +1 -1
  4. package/lib/Accordion.js.map +1 -1
  5. package/lib/AccordionHeader.js.map +1 -1
  6. package/lib/AccordionItem.js.map +1 -1
  7. package/lib/AccordionPanel.js.map +1 -1
  8. package/lib/components/Accordion/Accordion.js.map +1 -1
  9. package/lib/components/Accordion/Accordion.types.js.map +1 -1
  10. package/lib/components/Accordion/AccordionContext.js +4 -3
  11. package/lib/components/Accordion/AccordionContext.js.map +1 -1
  12. package/lib/components/Accordion/index.js.map +1 -1
  13. package/lib/components/Accordion/renderAccordion.js.map +1 -1
  14. package/lib/components/Accordion/useAccordion.js.map +1 -1
  15. package/lib/components/Accordion/useAccordionContextValues.js.map +1 -1
  16. package/lib/components/Accordion/useAccordionStyles.js.map +1 -1
  17. package/lib/components/AccordionHeader/AccordionHeader.js.map +1 -1
  18. package/lib/components/AccordionHeader/AccordionHeader.types.js.map +1 -1
  19. package/lib/components/AccordionHeader/AccordionHeaderContext.js +8 -3
  20. package/lib/components/AccordionHeader/AccordionHeaderContext.js.map +1 -1
  21. package/lib/components/AccordionHeader/index.js.map +1 -1
  22. package/lib/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
  23. package/lib/components/AccordionHeader/useAccordionHeader.js +9 -7
  24. package/lib/components/AccordionHeader/useAccordionHeader.js.map +1 -1
  25. package/lib/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
  26. package/lib/components/AccordionHeader/useAccordionHeaderStyles.js +32 -30
  27. package/lib/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
  28. package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
  29. package/lib/components/AccordionItem/AccordionItem.types.js.map +1 -1
  30. package/lib/components/AccordionItem/AccordionItemContext.js +9 -5
  31. package/lib/components/AccordionItem/AccordionItemContext.js.map +1 -1
  32. package/lib/components/AccordionItem/index.js.map +1 -1
  33. package/lib/components/AccordionItem/renderAccordionItem.js.map +1 -1
  34. package/lib/components/AccordionItem/useAccordionItem.js +3 -4
  35. package/lib/components/AccordionItem/useAccordionItem.js.map +1 -1
  36. package/lib/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
  37. package/lib/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
  38. package/lib/components/AccordionPanel/AccordionPanel.js.map +1 -1
  39. package/lib/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
  40. package/lib/components/AccordionPanel/index.js.map +1 -1
  41. package/lib/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
  42. package/lib/components/AccordionPanel/useAccordionPanel.js +2 -3
  43. package/lib/components/AccordionPanel/useAccordionPanel.js.map +1 -1
  44. package/lib/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
  45. package/lib/index.js.map +1 -1
  46. package/lib-commonjs/Accordion.js.map +1 -1
  47. package/lib-commonjs/AccordionHeader.js.map +1 -1
  48. package/lib-commonjs/AccordionItem.js.map +1 -1
  49. package/lib-commonjs/AccordionPanel.js.map +1 -1
  50. package/lib-commonjs/components/Accordion/Accordion.js.map +1 -1
  51. package/lib-commonjs/components/Accordion/Accordion.types.js.map +1 -1
  52. package/lib-commonjs/components/Accordion/AccordionContext.js +4 -3
  53. package/lib-commonjs/components/Accordion/AccordionContext.js.map +1 -1
  54. package/lib-commonjs/components/Accordion/index.js.map +1 -1
  55. package/lib-commonjs/components/Accordion/renderAccordion.js.map +1 -1
  56. package/lib-commonjs/components/Accordion/useAccordion.js.map +1 -1
  57. package/lib-commonjs/components/Accordion/useAccordionContextValues.js.map +1 -1
  58. package/lib-commonjs/components/Accordion/useAccordionStyles.js.map +1 -1
  59. package/lib-commonjs/components/AccordionHeader/AccordionHeader.js.map +1 -1
  60. package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.js.map +1 -1
  61. package/lib-commonjs/components/AccordionHeader/AccordionHeaderContext.js +8 -3
  62. package/lib-commonjs/components/AccordionHeader/AccordionHeaderContext.js.map +1 -1
  63. package/lib-commonjs/components/AccordionHeader/index.js.map +1 -1
  64. package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
  65. package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js +7 -6
  66. package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js.map +1 -1
  67. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
  68. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js +32 -30
  69. package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
  70. package/lib-commonjs/components/AccordionItem/AccordionItem.js.map +1 -1
  71. package/lib-commonjs/components/AccordionItem/AccordionItem.types.js.map +1 -1
  72. package/lib-commonjs/components/AccordionItem/AccordionItemContext.js +9 -5
  73. package/lib-commonjs/components/AccordionItem/AccordionItemContext.js.map +1 -1
  74. package/lib-commonjs/components/AccordionItem/index.js.map +1 -1
  75. package/lib-commonjs/components/AccordionItem/renderAccordionItem.js.map +1 -1
  76. package/lib-commonjs/components/AccordionItem/useAccordionItem.js +2 -4
  77. package/lib-commonjs/components/AccordionItem/useAccordionItem.js.map +1 -1
  78. package/lib-commonjs/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
  79. package/lib-commonjs/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
  80. package/lib-commonjs/components/AccordionPanel/AccordionPanel.js.map +1 -1
  81. package/lib-commonjs/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
  82. package/lib-commonjs/components/AccordionPanel/index.js.map +1 -1
  83. package/lib-commonjs/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
  84. package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js +1 -3
  85. package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js.map +1 -1
  86. package/lib-commonjs/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
  87. package/lib-commonjs/index.js.map +1 -1
  88. package/package.json +11 -15
  89. package/dist/tsdoc-metadata.json +0 -11
package/CHANGELOG.json CHANGED
@@ -2,13 +2,13 @@
2
2
  "name": "@fluentui/react-accordion",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 14 Jul 2022 04:33:46 GMT",
6
- "tag": "@fluentui/react-accordion_v0.0.0-nightly-20220714-0418.1",
7
- "version": "0.0.0-nightly-20220714-0418.1",
5
+ "date": "Fri, 07 Oct 2022 12:44:15 GMT",
6
+ "tag": "@fluentui/react-accordion_v0.0.0-nightly-20221007-1237.1",
7
+ "version": "0.0.0-nightly-20221007-1237.1",
8
8
  "comments": {
9
9
  "prerelease": [
10
10
  {
11
- "author": "email not defined",
11
+ "author": "fluentui-internal@service.microsoft.com",
12
12
  "package": "@fluentui/react-accordion",
13
13
  "commit": "not available",
14
14
  "comment": "Release nightly v9"
@@ -16,44 +16,300 @@
16
16
  {
17
17
  "author": "beachball",
18
18
  "package": "@fluentui/react-accordion",
19
- "comment": "Bump @fluentui/react-aria to v0.0.0-nightly-20220714-0418.1",
20
- "commit": "93ca0b778c7b206b2f03fe89cbe706738a9f2917"
19
+ "comment": "Bump @fluentui/react-aria to v0.0.0-nightly-20221007-1237.1",
20
+ "commit": "cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-accordion",
25
+ "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20221007-1237.1",
26
+ "commit": "cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-accordion",
31
+ "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221007-1237.1",
32
+ "commit": "cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-accordion",
37
+ "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20221007-1237.1",
38
+ "commit": "cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec"
39
+ },
40
+ {
41
+ "author": "beachball",
42
+ "package": "@fluentui/react-accordion",
43
+ "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20221007-1237.1",
44
+ "commit": "cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec"
45
+ },
46
+ {
47
+ "author": "beachball",
48
+ "package": "@fluentui/react-accordion",
49
+ "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20221007-1237.1",
50
+ "commit": "cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@fluentui/react-accordion",
55
+ "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221007-1237.1",
56
+ "commit": "cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "date": "Mon, 03 Oct 2022 22:24:42 GMT",
63
+ "tag": "@fluentui/react-accordion_v9.0.7",
64
+ "version": "9.0.7",
65
+ "comments": {
66
+ "patch": [
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-accordion",
70
+ "comment": "Bump @fluentui/react-aria to v9.2.1",
71
+ "commit": "67a8c98b8d53cd2fa14d668cf639b867b68ad18a"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-accordion",
76
+ "comment": "Bump @fluentui/react-tabster to v9.1.2",
77
+ "commit": "67a8c98b8d53cd2fa14d668cf639b867b68ad18a"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ "date": "Tue, 20 Sep 2022 20:55:45 GMT",
84
+ "tag": "@fluentui/react-accordion_v9.0.6",
85
+ "version": "9.0.6",
86
+ "comments": {
87
+ "patch": [
88
+ {
89
+ "author": "beachball",
90
+ "package": "@fluentui/react-accordion",
91
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14",
92
+ "commit": "4ceba844c804a2f49b0465389100e7a3dabf116e"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ {
98
+ "date": "Thu, 15 Sep 2022 09:49:45 GMT",
99
+ "tag": "@fluentui/react-accordion_v9.0.5",
100
+ "version": "9.0.5",
101
+ "comments": {
102
+ "patch": [
103
+ {
104
+ "author": "lingfangao@hotmail.com",
105
+ "package": "@fluentui/react-accordion",
106
+ "commit": "a606fbedcf7d618d1a48706a5e15c26c4cd85ba6",
107
+ "comment": "chore: fix no-context-default-value lint violations for cxe"
108
+ },
109
+ {
110
+ "author": "ololubek@microsoft.com",
111
+ "package": "@fluentui/react-accordion",
112
+ "commit": "7b9f91b1fc1c2281bff1037b860b92dfbf99dfb1",
113
+ "comment": "fix(Refactor accordion expandIcon styling)"
114
+ },
115
+ {
116
+ "author": "sarah.higley@microsoft.com",
117
+ "package": "@fluentui/react-accordion",
118
+ "commit": "f17b8604209a099d354c212077832516dcfbbae2",
119
+ "comment": "fix: add type=button to button slot"
120
+ },
121
+ {
122
+ "author": "olfedias@microsoft.com",
123
+ "package": "@fluentui/react-accordion",
124
+ "commit": "e610024474cfe5d45f61501a8b6a21daf4c794a2",
125
+ "comment": "chore: Update Griffel to latest version"
126
+ },
127
+ {
128
+ "author": "beachball",
129
+ "package": "@fluentui/react-accordion",
130
+ "comment": "Bump @fluentui/react-aria to v9.2.0",
131
+ "commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
132
+ },
133
+ {
134
+ "author": "beachball",
135
+ "package": "@fluentui/react-accordion",
136
+ "comment": "Bump @fluentui/react-context-selector to v9.0.3",
137
+ "commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
138
+ },
139
+ {
140
+ "author": "beachball",
141
+ "package": "@fluentui/react-accordion",
142
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.1",
143
+ "commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
144
+ },
145
+ {
146
+ "author": "beachball",
147
+ "package": "@fluentui/react-accordion",
148
+ "comment": "Bump @fluentui/react-tabster to v9.1.1",
149
+ "commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
150
+ },
151
+ {
152
+ "author": "beachball",
153
+ "package": "@fluentui/react-accordion",
154
+ "comment": "Bump @fluentui/react-theme to v9.1.0",
155
+ "commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
156
+ },
157
+ {
158
+ "author": "beachball",
159
+ "package": "@fluentui/react-accordion",
160
+ "comment": "Bump @fluentui/react-utilities to v9.1.0",
161
+ "commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
162
+ },
163
+ {
164
+ "author": "beachball",
165
+ "package": "@fluentui/react-accordion",
166
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.13",
167
+ "commit": "a33448fe4a0f4117686c378f80b893d1406d95a8"
168
+ }
169
+ ],
170
+ "none": [
171
+ {
172
+ "author": "martinhochel@microsoft.com",
173
+ "package": "@fluentui/react-accordion",
174
+ "commit": "e6cf183695d6d67a24e038c49a876224e5ed35e5",
175
+ "comment": "chore: update package scaffold"
176
+ }
177
+ ]
178
+ }
179
+ },
180
+ {
181
+ "date": "Wed, 03 Aug 2022 16:03:35 GMT",
182
+ "tag": "@fluentui/react-accordion_v9.0.4",
183
+ "version": "9.0.4",
184
+ "comments": {
185
+ "patch": [
186
+ {
187
+ "author": "bernardo.sunderhus@gmail.com",
188
+ "package": "@fluentui/react-accordion",
189
+ "commit": "1293f53f79ea1dc7429f77e174b2dfdaffa99558",
190
+ "comment": "chore: Updates AccordionHeader to use useARIAButtonShorthand over useARIAButton"
191
+ },
192
+ {
193
+ "author": "miroslav.stastny@microsoft.com",
194
+ "package": "@fluentui/react-accordion",
195
+ "commit": "08563664778fd80284561d3c9d254307a0a32362",
196
+ "comment": "chore: Bump Griffel dependencies"
197
+ },
198
+ {
199
+ "author": "beachball",
200
+ "package": "@fluentui/react-accordion",
201
+ "comment": "Bump @fluentui/react-aria to v9.1.0",
202
+ "commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
21
203
  },
22
204
  {
23
205
  "author": "beachball",
24
206
  "package": "@fluentui/react-accordion",
25
- "comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly-20220714-0418.1",
26
- "commit": "93ca0b778c7b206b2f03fe89cbe706738a9f2917"
207
+ "comment": "Bump @fluentui/react-tabster to v9.1.0",
208
+ "commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
209
+ },
210
+ {
211
+ "author": "beachball",
212
+ "package": "@fluentui/react-accordion",
213
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.12",
214
+ "commit": "ee4a8be0d0831a6615f878f98db6a97cc61a802d"
215
+ }
216
+ ],
217
+ "none": [
218
+ {
219
+ "author": "lingfangao@hotmail.com",
220
+ "package": "@fluentui/react-accordion",
221
+ "commit": "99cc385631d04a76ee10ebc143cb9fecd99640b6",
222
+ "comment": "chore: Add `prerelease` as disallowed changetype for 9.0.0 packages"
223
+ },
224
+ {
225
+ "author": "bernardo.sunderhus@gmail.com",
226
+ "package": "@fluentui/react-accordion",
227
+ "commit": "d966ea3d9169f2e8d69f0d2a4daf86fe4ca328d6",
228
+ "comment": "disables eslint rule @fluentui/no-context-default-value for local component context"
229
+ }
230
+ ]
231
+ }
232
+ },
233
+ {
234
+ "date": "Thu, 14 Jul 2022 21:21:07 GMT",
235
+ "tag": "@fluentui/react-accordion_v9.0.3",
236
+ "version": "9.0.3",
237
+ "comments": {
238
+ "patch": [
239
+ {
240
+ "author": "Humberto.Morimoto@microsoft.com",
241
+ "package": "@fluentui/react-accordion",
242
+ "commit": "802bc4e3730a88b0fc61b5bf42ef7fc6b6543fe2",
243
+ "comment": "fix: Fixing bad version bump of @fluentui/react-utilities."
244
+ },
245
+ {
246
+ "author": "beachball",
247
+ "package": "@fluentui/react-accordion",
248
+ "comment": "Bump @fluentui/react-aria to v9.0.2",
249
+ "commit": "79b513146194367544160f364b0a7dd749ed93e4"
250
+ },
251
+ {
252
+ "author": "beachball",
253
+ "package": "@fluentui/react-accordion",
254
+ "comment": "Bump @fluentui/react-context-selector to v9.0.2",
255
+ "commit": "79b513146194367544160f364b0a7dd749ed93e4"
256
+ },
257
+ {
258
+ "author": "beachball",
259
+ "package": "@fluentui/react-accordion",
260
+ "comment": "Bump @fluentui/react-tabster to v9.0.3",
261
+ "commit": "79b513146194367544160f364b0a7dd749ed93e4"
262
+ },
263
+ {
264
+ "author": "beachball",
265
+ "package": "@fluentui/react-accordion",
266
+ "comment": "Bump @fluentui/react-utilities to v9.0.2",
267
+ "commit": "79b513146194367544160f364b0a7dd749ed93e4"
268
+ }
269
+ ]
270
+ }
271
+ },
272
+ {
273
+ "date": "Thu, 14 Jul 2022 17:06:25 GMT",
274
+ "tag": "@fluentui/react-accordion_v9.0.2",
275
+ "version": "9.0.2",
276
+ "comments": {
277
+ "patch": [
278
+ {
279
+ "author": "ololubek@microsoft.com",
280
+ "package": "@fluentui/react-accordion",
281
+ "commit": "63ab03fa7a9b3d02204147ea5356b8f78751df42",
282
+ "comment": "chore: Update @fluentui/react-icons dependency to v2.0.175"
27
283
  },
28
284
  {
29
285
  "author": "beachball",
30
286
  "package": "@fluentui/react-accordion",
31
- "comment": "Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20220714-0418.1",
32
- "commit": "93ca0b778c7b206b2f03fe89cbe706738a9f2917"
287
+ "comment": "Bump @fluentui/react-aria to v9.0.1",
288
+ "commit": "35237381e941c8935b1892c9217096cea3e5601f"
33
289
  },
34
290
  {
35
291
  "author": "beachball",
36
292
  "package": "@fluentui/react-accordion",
37
- "comment": "Bump @fluentui/react-tabster to v0.0.0-nightly-20220714-0418.1",
38
- "commit": "93ca0b778c7b206b2f03fe89cbe706738a9f2917"
293
+ "comment": "Bump @fluentui/react-context-selector to v9.0.1",
294
+ "commit": "35237381e941c8935b1892c9217096cea3e5601f"
39
295
  },
40
296
  {
41
297
  "author": "beachball",
42
298
  "package": "@fluentui/react-accordion",
43
- "comment": "Bump @fluentui/react-theme to v0.0.0-nightly-20220714-0418.1",
44
- "commit": "93ca0b778c7b206b2f03fe89cbe706738a9f2917"
299
+ "comment": "Bump @fluentui/react-tabster to v9.0.2",
300
+ "commit": "35237381e941c8935b1892c9217096cea3e5601f"
45
301
  },
46
302
  {
47
303
  "author": "beachball",
48
304
  "package": "@fluentui/react-accordion",
49
- "comment": "Bump @fluentui/react-utilities to v0.0.0-nightly-20220714-0418.1",
50
- "commit": "93ca0b778c7b206b2f03fe89cbe706738a9f2917"
305
+ "comment": "Bump @fluentui/react-utilities to v9.0.1-0",
306
+ "commit": "35237381e941c8935b1892c9217096cea3e5601f"
51
307
  },
52
308
  {
53
309
  "author": "beachball",
54
310
  "package": "@fluentui/react-accordion",
55
- "comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220714-0418.1",
56
- "commit": "93ca0b778c7b206b2f03fe89cbe706738a9f2917"
311
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.11",
312
+ "commit": "35237381e941c8935b1892c9217096cea3e5601f"
57
313
  }
58
314
  ]
59
315
  }
package/CHANGELOG.md CHANGED
@@ -1,24 +1,102 @@
1
1
  # Change Log - @fluentui/react-accordion
2
2
 
3
- This log was last generated on Thu, 14 Jul 2022 04:33:46 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 07 Oct 2022 12:44:15 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [0.0.0-nightly-20220714-0418.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightly-20220714-0418.1)
7
+ ## [0.0.0-nightly-20221007-1237.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightly-20221007-1237.1)
8
8
 
9
- Thu, 14 Jul 2022 04:33:46 GMT
10
- [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.1..@fluentui/react-accordion_v0.0.0-nightly-20220714-0418.1)
9
+ Fri, 07 Oct 2022 12:44:15 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.7..@fluentui/react-accordion_v0.0.0-nightly-20221007-1237.1)
11
11
 
12
12
  ### Changes
13
13
 
14
- - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by email not defined)
15
- - Bump @fluentui/react-aria to v0.0.0-nightly-20220714-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/93ca0b778c7b206b2f03fe89cbe706738a9f2917) by beachball)
16
- - Bump @fluentui/react-context-selector to v0.0.0-nightly-20220714-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/93ca0b778c7b206b2f03fe89cbe706738a9f2917) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20220714-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/93ca0b778c7b206b2f03fe89cbe706738a9f2917) by beachball)
18
- - Bump @fluentui/react-tabster to v0.0.0-nightly-20220714-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/93ca0b778c7b206b2f03fe89cbe706738a9f2917) by beachball)
19
- - Bump @fluentui/react-theme to v0.0.0-nightly-20220714-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/93ca0b778c7b206b2f03fe89cbe706738a9f2917) by beachball)
20
- - Bump @fluentui/react-utilities to v0.0.0-nightly-20220714-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/93ca0b778c7b206b2f03fe89cbe706738a9f2917) by beachball)
21
- - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20220714-0418.1 ([commit](https://github.com/microsoft/fluentui/commit/93ca0b778c7b206b2f03fe89cbe706738a9f2917) by beachball)
14
+ - Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/not available) by fluentui-internal@service.microsoft.com)
15
+ - Bump @fluentui/react-aria to v0.0.0-nightly-20221007-1237.1 ([commit](https://github.com/microsoft/fluentui/commit/cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec) by beachball)
16
+ - Bump @fluentui/react-context-selector to v0.0.0-nightly-20221007-1237.1 ([commit](https://github.com/microsoft/fluentui/commit/cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v0.0.0-nightly-20221007-1237.1 ([commit](https://github.com/microsoft/fluentui/commit/cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec) by beachball)
18
+ - Bump @fluentui/react-tabster to v0.0.0-nightly-20221007-1237.1 ([commit](https://github.com/microsoft/fluentui/commit/cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec) by beachball)
19
+ - Bump @fluentui/react-theme to v0.0.0-nightly-20221007-1237.1 ([commit](https://github.com/microsoft/fluentui/commit/cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec) by beachball)
20
+ - Bump @fluentui/react-utilities to v0.0.0-nightly-20221007-1237.1 ([commit](https://github.com/microsoft/fluentui/commit/cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec) by beachball)
21
+ - Bump @fluentui/react-conformance-griffel to v0.0.0-nightly-20221007-1237.1 ([commit](https://github.com/microsoft/fluentui/commit/cb80d71825ddb9ebe5d06bb14b1c970f8633c4ec) by beachball)
22
+
23
+ ## [9.0.7](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.7)
24
+
25
+ Mon, 03 Oct 2022 22:24:42 GMT
26
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.6..@fluentui/react-accordion_v9.0.7)
27
+
28
+ ### Patches
29
+
30
+ - Bump @fluentui/react-aria to v9.2.1 ([PR #25055](https://github.com/microsoft/fluentui/pull/25055) by beachball)
31
+ - Bump @fluentui/react-tabster to v9.1.2 ([PR #25055](https://github.com/microsoft/fluentui/pull/25055) by beachball)
32
+
33
+ ## [9.0.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.6)
34
+
35
+ Tue, 20 Sep 2022 20:55:45 GMT
36
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.5..@fluentui/react-accordion_v9.0.6)
37
+
38
+ ### Patches
39
+
40
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.14 ([PR #24869](https://github.com/microsoft/fluentui/pull/24869) by beachball)
41
+
42
+ ## [9.0.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.5)
43
+
44
+ Thu, 15 Sep 2022 09:49:45 GMT
45
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.4..@fluentui/react-accordion_v9.0.5)
46
+
47
+ ### Patches
48
+
49
+ - chore: fix no-context-default-value lint violations for cxe ([PR #24277](https://github.com/microsoft/fluentui/pull/24277) by lingfangao@hotmail.com)
50
+ - fix(Refactor accordion expandIcon styling) ([PR #24597](https://github.com/microsoft/fluentui/pull/24597) by ololubek@microsoft.com)
51
+ - fix: add type=button to button slot ([PR #24327](https://github.com/microsoft/fluentui/pull/24327) by sarah.higley@microsoft.com)
52
+ - chore: Update Griffel to latest version ([PR #24221](https://github.com/microsoft/fluentui/pull/24221) by olfedias@microsoft.com)
53
+ - Bump @fluentui/react-aria to v9.2.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
54
+ - Bump @fluentui/react-context-selector to v9.0.3 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
55
+ - Bump @fluentui/react-shared-contexts to v9.0.1 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
56
+ - Bump @fluentui/react-tabster to v9.1.1 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
57
+ - Bump @fluentui/react-theme to v9.1.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
58
+ - Bump @fluentui/react-utilities to v9.1.0 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
59
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.13 ([PR #24808](https://github.com/microsoft/fluentui/pull/24808) by beachball)
60
+
61
+ ## [9.0.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.4)
62
+
63
+ Wed, 03 Aug 2022 16:03:35 GMT
64
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.3..@fluentui/react-accordion_v9.0.4)
65
+
66
+ ### Patches
67
+
68
+ - chore: Updates AccordionHeader to use useARIAButtonShorthand over useARIAButton ([PR #24032](https://github.com/microsoft/fluentui/pull/24032) by bernardo.sunderhus@gmail.com)
69
+ - chore: Bump Griffel dependencies ([PR #24114](https://github.com/microsoft/fluentui/pull/24114) by miroslav.stastny@microsoft.com)
70
+ - Bump @fluentui/react-aria to v9.1.0 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
71
+ - Bump @fluentui/react-tabster to v9.1.0 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
72
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.12 ([PR #24131](https://github.com/microsoft/fluentui/pull/24131) by beachball)
73
+
74
+ ## [9.0.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.3)
75
+
76
+ Thu, 14 Jul 2022 21:21:07 GMT
77
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.2..@fluentui/react-accordion_v9.0.3)
78
+
79
+ ### Patches
80
+
81
+ - fix: Fixing bad version bump of @fluentui/react-utilities. ([PR #23920](https://github.com/microsoft/fluentui/pull/23920) by Humberto.Morimoto@microsoft.com)
82
+ - Bump @fluentui/react-aria to v9.0.2 ([PR #23918](https://github.com/microsoft/fluentui/pull/23918) by beachball)
83
+ - Bump @fluentui/react-context-selector to v9.0.2 ([PR #23918](https://github.com/microsoft/fluentui/pull/23918) by beachball)
84
+ - Bump @fluentui/react-tabster to v9.0.3 ([PR #23918](https://github.com/microsoft/fluentui/pull/23918) by beachball)
85
+ - Bump @fluentui/react-utilities to v9.0.2 ([PR #23918](https://github.com/microsoft/fluentui/pull/23918) by beachball)
86
+
87
+ ## [9.0.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.2)
88
+
89
+ Thu, 14 Jul 2022 17:06:25 GMT
90
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.1..@fluentui/react-accordion_v9.0.2)
91
+
92
+ ### Patches
93
+
94
+ - chore: Update @fluentui/react-icons dependency to v2.0.175 ([PR #23812](https://github.com/microsoft/fluentui/pull/23812) by ololubek@microsoft.com)
95
+ - Bump @fluentui/react-aria to v9.0.1 ([PR #23897](https://github.com/microsoft/fluentui/pull/23897) by beachball)
96
+ - Bump @fluentui/react-context-selector to v9.0.1 ([PR #23897](https://github.com/microsoft/fluentui/pull/23897) by beachball)
97
+ - Bump @fluentui/react-tabster to v9.0.2 ([PR #23897](https://github.com/microsoft/fluentui/pull/23897) by beachball)
98
+ - Bump @fluentui/react-utilities to v9.0.1-0 ([PR #23897](https://github.com/microsoft/fluentui/pull/23897) by beachball)
99
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.11 ([PR #23897](https://github.com/microsoft/fluentui/pull/23897) by beachball)
22
100
 
23
101
  ## [9.0.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.1)
24
102
 
package/dist/index.d.ts CHANGED
@@ -79,7 +79,7 @@ export declare type AccordionHeaderSlots = {
79
79
  /**
80
80
  * The component to be used as button in heading
81
81
  */
82
- button: NonNullable<Slot<ARIAButtonSlotProps>>;
82
+ button: NonNullable<Slot<ARIAButtonSlotProps<'a'>>>;
83
83
  /**
84
84
  * Expand icon slot rendered before (or after) children content in heading.
85
85
  */
@@ -1 +1 @@
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
+ {"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../src/Accordion.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './components/Accordion/index';\n"]}
@@ -1 +1 @@
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
+ {"version":3,"file":"AccordionHeader.js","sourceRoot":"","sources":["../src/AccordionHeader.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/AccordionHeader/index';\n"]}
@@ -1 +1 @@
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
+ {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../src/AccordionItem.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC","sourcesContent":["export * from './components/AccordionItem/index';\n"]}
@@ -1 +1 @@
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
+ {"version":3,"file":"AccordionPanel.js","sourceRoot":"","sources":["../src/AccordionPanel.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './components/AccordionPanel/index';\n"]}
@@ -1 +1 @@
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;EACb,MAAM,KAAK,GAAG,qBAAqB,CAAC,KAAD,EAAQ,GAAR,CAAnC;EACA,MAAM,aAAa,GAAG,kCAAkC,CAAC,KAAD,CAAxD;EAEA,2BAA2B,CAAC,KAAD,CAA3B;EAEA,OAAO,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
+ {"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;EACb,MAAM,KAAK,GAAG,qBAAqB,CAAC,KAAD,EAAQ,GAAR,CAAnC;EACA,MAAM,aAAa,GAAG,kCAAkC,CAAC,KAAD,CAAxD;EAEA,2BAA2B,CAAC,KAAD,CAA3B;EAEA,OAAO,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":""}
@@ -1 +1 @@
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\nexport type AccordionContextValue = Required<Pick<AccordionProps, 'collapsible'>> &\n Pick<AccordionProps, 'navigation'> & {\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 /**\n * Default value for the uncontrolled state of the panel.\n */\n defaultOpenItems?: AccordionItemValue | AccordionItemValue[];\n\n /**\n * Indicates if Accordion support multiple Panels closed at the same time.\n */\n collapsible?: boolean;\n\n /**\n * Indicates if Accordion support multiple Panels opened at the same time.\n */\n multiple?: boolean;\n\n /**\n * Indicates if keyboard navigation is available and gives two options, linear or circular navigation.\n */\n navigation?: 'linear' | 'circular';\n\n /**\n * Callback to be called when the opened items change.\n */\n onToggle?: AccordionToggleEventHandler;\n\n /**\n * Controls the state of the panel.\n */\n openItems?: AccordionItemValue | AccordionItemValue[];\n};\n\nexport type AccordionState = ComponentState<AccordionSlots> & AccordionContextValue;\n"]}
1
+ {"version":3,"file":"Accordion.types.js","sourceRoot":"","sources":["../../../src/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\nexport type AccordionContextValue = Required<Pick<AccordionProps, 'collapsible'>> &\n Pick<AccordionProps, 'navigation'> & {\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 /**\n * Default value for the uncontrolled state of the panel.\n */\n defaultOpenItems?: AccordionItemValue | AccordionItemValue[];\n\n /**\n * Indicates if Accordion support multiple Panels closed at the same time.\n */\n collapsible?: boolean;\n\n /**\n * Indicates if Accordion support multiple Panels opened at the same time.\n */\n multiple?: boolean;\n\n /**\n * Indicates if keyboard navigation is available and gives two options, linear or circular navigation.\n */\n navigation?: 'linear' | 'circular';\n\n /**\n * Callback to be called when the opened items change.\n */\n onToggle?: AccordionToggleEventHandler;\n\n /**\n * Controls the state of the panel.\n */\n openItems?: AccordionItemValue | AccordionItemValue[];\n};\n\nexport type AccordionState = ComponentState<AccordionSlots> & AccordionContextValue;\n"]}
@@ -1,5 +1,6 @@
1
1
  import { createContext, useContextSelector } from '@fluentui/react-context-selector';
2
- export const AccordionContext = /*#__PURE__*/createContext({
2
+ export const AccordionContext = /*#__PURE__*/createContext(undefined);
3
+ const accordionContextDefaultValue = {
3
4
  openItems: [],
4
5
  collapsible: false,
5
6
 
@@ -7,7 +8,7 @@ export const AccordionContext = /*#__PURE__*/createContext({
7
8
  /* noop */
8
9
  }
9
10
 
10
- });
11
+ };
11
12
  export const AccordionProvider = AccordionContext.Provider;
12
- export const useAccordionContext_unstable = selector => useContextSelector(AccordionContext, selector);
13
+ export const useAccordionContext_unstable = selector => useContextSelector(AccordionContext, (ctx = accordionContextDefaultValue) => selector(ctx));
13
14
  //# sourceMappingURL=AccordionContext.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Accordion/AccordionContext.ts"],"names":[],"mappings":"AAAA,SAAS,aAAT,EAAyC,kBAAzC,QAAmE,kCAAnE;AAIA,OAAO,MAAM,gBAAgB,gBAAmC,aAAa,CAAwB;EACnG,SAAS,EAAE,EADwF;EAEnG,WAAW,EAAE,KAFsF;;EAGnG,aAAa,GAAA;IACX;EACD;;AALkG,CAAxB,CAAtE;AAQP,OAAO,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAA3C;AACP,OAAO,MAAM,4BAA4B,GAAO,QAAJ,IAC1C,kBAAkB,CAAC,gBAAD,EAAmB,QAAnB,CADb","sourcesContent":["import { createContext, ContextSelector, useContextSelector } 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\nexport const AccordionProvider = AccordionContext.Provider;\nexport const useAccordionContext_unstable = <T>(selector: ContextSelector<AccordionContextValue, T>): T =>\n useContextSelector(AccordionContext, selector);\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Accordion/AccordionContext.ts"],"names":[],"mappings":"AAAA,SAAS,aAAT,EAAyC,kBAAzC,QAAmE,kCAAnE;AAIA,OAAO,MAAM,gBAAgB,gBAAmC,aAAa,CAC3E,SAD2E,CAAtE;AAIP,MAAM,4BAA4B,GAA0B;EAC1D,SAAS,EAAE,EAD+C;EAE1D,WAAW,EAAE,KAF6C;;EAG1D,aAAa,GAAA;IACX;EACD;;AALyD,CAA5D;AAQA,OAAO,MAAM,iBAAiB,GAAG,gBAAgB,CAAC,QAA3C;AACP,OAAO,MAAM,4BAA4B,GAAO,QAAJ,IAC1C,kBAAkB,CAAC,gBAAD,EAAmB,CAAC,GAAG,GAAG,4BAAP,KAAwC,QAAQ,CAAC,GAAD,CAAnE,CADb","sourcesContent":["import { createContext, ContextSelector, useContextSelector } 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 | undefined>(\n undefined,\n) as Context<AccordionContextValue>;\n\nconst accordionContextDefaultValue: AccordionContextValue = {\n openItems: [],\n collapsible: false,\n requestToggle() {\n /* noop */\n },\n};\n\nexport const AccordionProvider = AccordionContext.Provider;\nexport const useAccordionContext_unstable = <T>(selector: ContextSelector<AccordionContextValue, T>): T =>\n useContextSelector(AccordionContext, (ctx = accordionContextDefaultValue) => selector(ctx));\n"],"sourceRoot":""}
@@ -1 +1 @@
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
+ {"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","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":["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;EACvG,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAiB,KAAjB,CAArC;EAEA,oBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,eACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,CAAC,QAAlB,EAA0B;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAA1B,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
+ {"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;EACvG,MAAM;IAAE,KAAF;IAAS;EAAT,IAAuB,QAAQ,CAAiB,KAAjB,CAArC;EAEA,oBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;EAAf,CAAX,eACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,CAAC,QAAlB,EAA0B;IAAC,KAAK,EAAE,aAAa,CAAC;EAAtB,CAA1B,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":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Accordion/useAccordion.ts"],"names":[],"mappings":"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","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 tabbable: true,\n });\n\n const requestToggle = useEventCallback((event: AccordionToggleEvent, data: AccordionToggleData) => {\n onToggle?.(event, data);\n setOpenItems(previousOpenItems => updateOpenItems(data.value, previousOpenItems, multiple, collapsible));\n });\n\n return {\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 multiple - if Accordion support multiple Panels opened at the same time\n * @param collapsible - if Accordion support multiple Panels closed at the same time\n */\nfunction updateOpenItems(\n value: AccordionItemValue,\n previousOpenItems: AccordionItemValue[],\n multiple: boolean,\n collapsible: boolean,\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
+ {"version":3,"sources":["../../../src/components/Accordion/useAccordion.ts"],"names":[],"mappings":"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","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 tabbable: true,\n });\n\n const requestToggle = useEventCallback((event: AccordionToggleEvent, data: AccordionToggleData) => {\n onToggle?.(event, data);\n setOpenItems(previousOpenItems => updateOpenItems(data.value, previousOpenItems, multiple, collapsible));\n });\n\n return {\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 multiple - if Accordion support multiple Panels opened at the same time\n * @param collapsible - if Accordion support multiple Panels closed at the same time\n */\nfunction updateOpenItems(\n value: AccordionItemValue,\n previousOpenItems: AccordionItemValue[],\n multiple: boolean,\n collapsible: boolean,\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":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Accordion/useAccordionContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,kCAAV,CAA6C,KAA7C,EAAkE;EACtE,MAAM;IAAE,UAAF;IAAc,SAAd;IAAyB,aAAzB;IAAwC;EAAxC,IAAwD,KAA9D,CADsE,CAGtE;;EACA,MAAM,SAAS,GAA0B;IACvC,UADuC;IAEvC,SAFuC;IAGvC,aAHuC;IAIvC;EAJuC,CAAzC;EAOA,OAAO;IAAE;EAAF,CAAP;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
+ {"version":3,"sources":["../../../src/components/Accordion/useAccordionContextValues.ts"],"names":[],"mappings":"AAEA,OAAM,SAAU,kCAAV,CAA6C,KAA7C,EAAkE;EACtE,MAAM;IAAE,UAAF;IAAc,SAAd;IAAyB,aAAzB;IAAwC;EAAxC,IAAwD,KAA9D,CADsE,CAGtE;;EACA,MAAM,SAAS,GAA0B;IACvC,UADuC;IAEvC,SAFuC;IAGvC,aAHuC;IAIvC;EAJuC,CAAzC;EAOA,OAAO;IAAE;EAAF,CAAP;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":""}
@@ -1 +1 @@
1
- {"version":3,"sources":["components/Accordion/useAccordionStyles.ts"],"names":[],"mappings":"AACA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,OAAO,MAAM,mBAAmB,GAAmC;EACjE,IAAI,EAAE;AAD2D,CAA5D;AAIP,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0B;EACnE,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,mBAAmB,CAAC,IAArB,EAA2B,KAAK,CAAC,IAAN,CAAW,SAAtC,CAAnC;EAEA,OAAO,KAAP;AACD,CAJM","sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { mergeClasses } from '@griffel/react';\nimport type { AccordionSlots, AccordionState } from './Accordion.types';\n\nexport const accordionClassNames: SlotClassNames<AccordionSlots> = {\n root: 'fui-Accordion',\n};\n\nexport const useAccordionStyles_unstable = (state: AccordionState) => {\n state.root.className = mergeClasses(accordionClassNames.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
1
+ {"version":3,"sources":["../../../src/components/Accordion/useAccordionStyles.ts"],"names":[],"mappings":"AACA,SAAS,YAAT,QAA6B,gBAA7B;AAGA,OAAO,MAAM,mBAAmB,GAAmC;EACjE,IAAI,EAAE;AAD2D,CAA5D;AAIP,OAAO,MAAM,2BAA2B,GAAI,KAAD,IAA0B;EACnE,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,YAAY,CAAC,mBAAmB,CAAC,IAArB,EAA2B,KAAK,CAAC,IAAN,CAAW,SAAtC,CAAnC;EAEA,OAAO,KAAP;AACD,CAJM","sourcesContent":["import type { SlotClassNames } from '@fluentui/react-utilities';\nimport { mergeClasses } from '@griffel/react';\nimport type { AccordionSlots, AccordionState } from './Accordion.types';\n\nexport const accordionClassNames: SlotClassNames<AccordionSlots> = {\n root: 'fui-Accordion',\n};\n\nexport const useAccordionStyles_unstable = (state: AccordionState) => {\n state.root.className = mergeClasses(accordionClassNames.root, state.root.className);\n\n return state;\n};\n"],"sourceRoot":""}
@@ -1 +1 @@
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;EACxG,MAAM,KAAK,GAAG,2BAA2B,CAAC,KAAD,EAAQ,GAAR,CAAzC;EACA,MAAM,aAAa,GAAG,wCAAwC,CAAC,KAAD,CAA9D;EAEA,iCAAiC,CAAC,KAAD,CAAjC;EAEA,OAAO,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/"}
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;EACxG,MAAM,KAAK,GAAG,2BAA2B,CAAC,KAAD,EAAQ,GAAR,CAAzC;EACA,MAAM,aAAa,GAAG,wCAAwC,CAAC,KAAD,CAA9D;EAEA,iCAAiC,CAAC,KAAD,CAAjC;EAEA,OAAO,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":""}