@fluentui/react-accordion 0.0.0-nightly6a6e258c4020220125.1 → 0.0.0-nightly6faffd280a20220221.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.
- package/CHANGELOG.json +192 -34
- package/CHANGELOG.md +51 -14
- package/Spec.md +36 -4
- package/dist/react-accordion.d.ts +19 -15
- package/lib/Accordion.js.map +1 -1
- package/lib/AccordionHeader.js.map +1 -1
- package/lib/AccordionItem.js.map +1 -1
- package/lib/AccordionPanel.js.map +1 -1
- package/lib/components/Accordion/Accordion.js.map +1 -1
- package/lib/components/Accordion/Accordion.types.d.ts +7 -5
- package/lib/components/Accordion/Accordion.types.js.map +1 -1
- package/lib/components/Accordion/AccordionContext.js +0 -1
- package/lib/components/Accordion/AccordionContext.js.map +1 -1
- package/lib/components/Accordion/index.js.map +1 -1
- package/lib/components/Accordion/renderAccordion.js.map +1 -1
- package/lib/components/Accordion/useAccordion.js +13 -18
- package/lib/components/Accordion/useAccordion.js.map +1 -1
- package/lib/components/Accordion/useAccordionContextValues.js +2 -2
- package/lib/components/Accordion/useAccordionContextValues.js.map +1 -1
- package/lib/components/Accordion/useAccordionStyles.js +1 -1
- package/lib/components/Accordion/useAccordionStyles.js.map +1 -1
- package/lib/components/AccordionHeader/AccordionHeader.js.map +1 -1
- package/lib/components/AccordionHeader/AccordionHeader.types.d.ts +12 -8
- package/lib/components/AccordionHeader/AccordionHeader.types.js.map +1 -1
- package/lib/components/AccordionHeader/AccordionHeaderContext.js.map +1 -1
- package/lib/components/AccordionHeader/index.js.map +1 -1
- package/lib/components/AccordionHeader/renderAccordionHeader.js +1 -1
- package/lib/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
- package/lib/components/AccordionHeader/useAccordionHeader.js +2 -2
- package/lib/components/AccordionHeader/useAccordionHeader.js.map +1 -1
- package/lib/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
- package/lib/components/AccordionHeader/useAccordionHeaderStyles.js +6 -2
- package/lib/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItem.types.d.ts +4 -3
- package/lib/components/AccordionItem/AccordionItem.types.js.map +1 -1
- package/lib/components/AccordionItem/AccordionItemContext.js.map +1 -1
- package/lib/components/AccordionItem/index.js.map +1 -1
- package/lib/components/AccordionItem/renderAccordionItem.js.map +1 -1
- package/lib/components/AccordionItem/useAccordionItem.js +5 -7
- package/lib/components/AccordionItem/useAccordionItem.js.map +1 -1
- package/lib/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
- package/lib/components/AccordionItem/useAccordionItemStyles.js +1 -1
- package/lib/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
- package/lib/components/AccordionPanel/AccordionPanel.js.map +1 -1
- package/lib/components/AccordionPanel/AccordionPanel.types.d.ts +2 -2
- package/lib/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
- package/lib/components/AccordionPanel/index.js.map +1 -1
- package/lib/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
- package/lib/components/AccordionPanel/useAccordionPanel.js +0 -1
- package/lib/components/AccordionPanel/useAccordionPanel.js.map +1 -1
- package/lib/components/AccordionPanel/useAccordionPanelStyles.js +1 -1
- package/lib/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Accordion.js.map +1 -1
- package/lib-commonjs/AccordionHeader.js.map +1 -1
- package/lib-commonjs/AccordionItem.js.map +1 -1
- package/lib-commonjs/AccordionPanel.js.map +1 -1
- package/lib-commonjs/components/Accordion/Accordion.js.map +1 -1
- package/lib-commonjs/components/Accordion/Accordion.types.d.ts +7 -5
- package/lib-commonjs/components/Accordion/Accordion.types.js.map +1 -1
- package/lib-commonjs/components/Accordion/AccordionContext.js +0 -1
- package/lib-commonjs/components/Accordion/AccordionContext.js.map +1 -1
- package/lib-commonjs/components/Accordion/index.js.map +1 -1
- package/lib-commonjs/components/Accordion/renderAccordion.js.map +1 -1
- package/lib-commonjs/components/Accordion/useAccordion.js +14 -18
- package/lib-commonjs/components/Accordion/useAccordion.js.map +1 -1
- package/lib-commonjs/components/Accordion/useAccordionContextValues.js +2 -2
- package/lib-commonjs/components/Accordion/useAccordionContextValues.js.map +1 -1
- package/lib-commonjs/components/Accordion/useAccordionStyles.js +2 -2
- package/lib-commonjs/components/Accordion/useAccordionStyles.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/AccordionHeader.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.d.ts +12 -8
- package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/AccordionHeaderContext.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/index.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js +1 -1
- package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js +2 -2
- package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/useAccordionHeaderContextValues.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js +11 -7
- package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/AccordionItem.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/AccordionItem.types.d.ts +4 -3
- package/lib-commonjs/components/AccordionItem/AccordionItem.types.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/AccordionItemContext.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/index.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/renderAccordionItem.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/useAccordionItem.js +4 -6
- package/lib-commonjs/components/AccordionItem/useAccordionItem.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/useAccordionItemContextValues.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/useAccordionItemStyles.js +2 -2
- package/lib-commonjs/components/AccordionItem/useAccordionItemStyles.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/AccordionPanel.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/AccordionPanel.types.d.ts +2 -2
- package/lib-commonjs/components/AccordionPanel/AccordionPanel.types.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/index.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js +0 -1
- package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/useAccordionPanelStyles.js +3 -3
- package/lib-commonjs/components/AccordionPanel/useAccordionPanelStyles.js.map +1 -1
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +13 -15
package/CHANGELOG.json
CHANGED
|
@@ -2,35 +2,199 @@
|
|
|
2
2
|
"name": "@fluentui/react-accordion",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
6
|
-
"tag": "@fluentui/react-accordion_v0.0.0-
|
|
7
|
-
"version": "0.0.0-
|
|
5
|
+
"date": "Mon, 21 Feb 2022 04:15:25 GMT",
|
|
6
|
+
"tag": "@fluentui/react-accordion_v0.0.0-nightly6faffd280a20220221.1",
|
|
7
|
+
"version": "0.0.0-nightly6faffd280a20220221.1",
|
|
8
8
|
"comments": {
|
|
9
9
|
"prerelease": [
|
|
10
10
|
{
|
|
11
11
|
"author": "email not defined",
|
|
12
12
|
"package": "@fluentui/react-accordion",
|
|
13
|
-
"commit": "
|
|
13
|
+
"commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd",
|
|
14
14
|
"comment": "Release nightly v9"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-accordion",
|
|
19
|
+
"comment": "Bump @fluentui/react-aria to v0.0.0-nightly6faffd280a20220221.1",
|
|
20
|
+
"commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui/react-accordion",
|
|
25
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightly6faffd280a20220221.1",
|
|
26
|
+
"commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui/react-accordion",
|
|
31
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightly6faffd280a20220221.1",
|
|
32
|
+
"commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui/react-accordion",
|
|
37
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightly6faffd280a20220221.1",
|
|
38
|
+
"commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui/react-accordion",
|
|
43
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightly6faffd280a20220221.1",
|
|
44
|
+
"commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui/react-accordion",
|
|
49
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v0.0.0-nightly6faffd280a20220221.1",
|
|
50
|
+
"commit": "01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd"
|
|
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"
|
|
137
|
+
},
|
|
16
138
|
{
|
|
17
139
|
"author": "olfedias@microsoft.com",
|
|
18
140
|
"package": "@fluentui/react-accordion",
|
|
19
141
|
"commit": "b8537fb52cc3cc2787be5675c65300e01d882add",
|
|
20
142
|
"comment": "update styles to not use CSS shorthands"
|
|
21
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
|
+
},
|
|
22
162
|
{
|
|
23
163
|
"author": "behowell@microsoft.com",
|
|
24
164
|
"package": "@fluentui/react-accordion",
|
|
25
165
|
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
|
26
166
|
"comment": "Remove component's shorthandProps array"
|
|
27
167
|
},
|
|
168
|
+
{
|
|
169
|
+
"author": "olfedias@microsoft.com",
|
|
170
|
+
"package": "@fluentui/react-accordion",
|
|
171
|
+
"commit": "a2e02b2015b1f9307c69c8ecf005c166d496e206",
|
|
172
|
+
"comment": "use Griffel packages"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
176
|
+
"package": "@fluentui/react-accordion",
|
|
177
|
+
"commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
|
|
178
|
+
"comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
|
|
179
|
+
},
|
|
28
180
|
{
|
|
29
181
|
"author": "bsunderhus@microsoft.com",
|
|
30
182
|
"package": "@fluentui/react-accordion",
|
|
31
183
|
"commit": "940a86cbd6a9f711d275df3a823292b527017852",
|
|
32
184
|
"comment": "Removes children as a slot from AccordionHeader"
|
|
33
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
|
+
},
|
|
34
198
|
{
|
|
35
199
|
"author": "ololubek@microsoft.com",
|
|
36
200
|
"package": "@fluentui/react-accordion",
|
|
@@ -43,6 +207,12 @@
|
|
|
43
207
|
"commit": "317209bb5cd57c40f35bc42060acb7e3cce5ec95",
|
|
44
208
|
"comment": "BREAKING: Rename component hooks add the suffix _unstable, as their API has not been finalized yet"
|
|
45
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
|
+
},
|
|
46
216
|
{
|
|
47
217
|
"author": "Humberto.Morimoto@microsoft.com",
|
|
48
218
|
"package": "@fluentui/react-accordion",
|
|
@@ -64,56 +234,38 @@
|
|
|
64
234
|
{
|
|
65
235
|
"author": "beachball",
|
|
66
236
|
"package": "@fluentui/react-accordion",
|
|
67
|
-
"comment": "Bump @fluentui/react-aria to
|
|
68
|
-
"commit": "
|
|
237
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-rc.1",
|
|
238
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
69
239
|
},
|
|
70
240
|
{
|
|
71
241
|
"author": "beachball",
|
|
72
242
|
"package": "@fluentui/react-accordion",
|
|
73
|
-
"comment": "Bump @fluentui/react-context-selector to
|
|
74
|
-
"commit": "
|
|
243
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-rc.1",
|
|
244
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
75
245
|
},
|
|
76
246
|
{
|
|
77
247
|
"author": "beachball",
|
|
78
248
|
"package": "@fluentui/react-accordion",
|
|
79
|
-
"comment": "Bump @fluentui/react-
|
|
80
|
-
"commit": "
|
|
249
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
|
|
250
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
81
251
|
},
|
|
82
252
|
{
|
|
83
253
|
"author": "beachball",
|
|
84
254
|
"package": "@fluentui/react-accordion",
|
|
85
|
-
"comment": "Bump @fluentui/react-
|
|
86
|
-
"commit": "
|
|
255
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-rc.1",
|
|
256
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
87
257
|
},
|
|
88
258
|
{
|
|
89
259
|
"author": "beachball",
|
|
90
260
|
"package": "@fluentui/react-accordion",
|
|
91
|
-
"comment": "Bump @fluentui/react-
|
|
92
|
-
"commit": "
|
|
261
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
|
|
262
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
93
263
|
},
|
|
94
264
|
{
|
|
95
265
|
"author": "beachball",
|
|
96
266
|
"package": "@fluentui/react-accordion",
|
|
97
|
-
"comment": "Bump @fluentui/react-
|
|
98
|
-
"commit": "
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
"author": "beachball",
|
|
102
|
-
"package": "@fluentui/react-accordion",
|
|
103
|
-
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
|
|
104
|
-
"commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"author": "beachball",
|
|
108
|
-
"package": "@fluentui/react-accordion",
|
|
109
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
|
|
110
|
-
"commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
"author": "beachball",
|
|
114
|
-
"package": "@fluentui/react-accordion",
|
|
115
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1",
|
|
116
|
-
"commit": "1d41ec351a6d5902e871c87fcbaacf8db8ecb40d"
|
|
267
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
|
|
268
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
117
269
|
}
|
|
118
270
|
],
|
|
119
271
|
"none": [
|
|
@@ -123,6 +275,12 @@
|
|
|
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",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,34 +1,71 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-accordion
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 21 Feb 2022 04:15:25 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-
|
|
7
|
+
## [0.0.0-nightly6faffd280a20220221.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightly6faffd280a20220221.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-
|
|
9
|
+
Mon, 21 Feb 2022 04:15:25 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-rc.3..@fluentui/react-accordion_v0.0.0-nightly6faffd280a20220221.1)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/
|
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by email not defined)
|
|
15
|
+
- Bump @fluentui/react-aria to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
|
|
16
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
|
|
17
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
|
|
18
|
+
- Bump @fluentui/react-theme to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
|
|
19
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) by beachball)
|
|
20
|
+
- Bump @fluentui/react-conformance-griffel to v0.0.0-nightly6faffd280a20220221.1 ([commit](https://github.com/microsoft/fluentui/commit/01ee61722cce4da8e5deb9a2ab00f4e27fc01cfd) 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)
|
|
15
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)
|
|
16
51
|
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
|
52
|
+
- use Griffel packages ([PR #21394](https://github.com/microsoft/fluentui/pull/21394) by olfedias@microsoft.com)
|
|
53
|
+
- Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
|
|
17
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)
|
|
18
57
|
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
|
19
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)
|
|
59
|
+
- Updating based on changes to composition types. ([PR #20891](https://github.com/microsoft/fluentui/pull/20891) by Humberto.Morimoto@microsoft.com)
|
|
20
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)
|
|
21
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)
|
|
22
62
|
- Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead ([PR #21218](https://github.com/microsoft/fluentui/pull/21218) by behowell@microsoft.com)
|
|
23
|
-
- Bump @fluentui/react-aria to
|
|
24
|
-
- Bump @fluentui/react-context-selector to
|
|
25
|
-
- Bump @fluentui/react-
|
|
26
|
-
- Bump @fluentui/react-
|
|
27
|
-
- Bump @fluentui/react-
|
|
28
|
-
- Bump @fluentui/react-
|
|
29
|
-
- Bump @fluentui/babel-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
|
|
30
|
-
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
|
|
31
|
-
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightly6a6e258c4020220125.1 ([commit](https://github.com/microsoft/fluentui/commit/1d41ec351a6d5902e871c87fcbaacf8db8ecb40d) by beachball)
|
|
63
|
+
- Bump @fluentui/react-aria to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
64
|
+
- Bump @fluentui/react-context-selector to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
65
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
66
|
+
- Bump @fluentui/react-theme to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
67
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
68
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
32
69
|
|
|
33
70
|
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-beta.5)
|
|
34
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
|
-
|
|
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
|
-
##
|
|
414
|
+
## Accessibility
|
|
414
415
|
|
|
415
|
-
Accessibility
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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:
|
|
98
|
+
button: NonNullable<Slot<ARIAButtonSlotProps>>;
|
|
95
99
|
/**
|
|
96
100
|
* Expand icon slot rendered before (or after) children content in heading
|
|
97
101
|
*/
|
|
98
|
-
expandIcon:
|
|
102
|
+
expandIcon: Slot<'span'>;
|
|
99
103
|
/**
|
|
100
104
|
* Expand icon slot rendered before (or after) children content in heading
|
|
101
105
|
*/
|
|
102
|
-
icon?:
|
|
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
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
185
|
+
root: Slot<'div'>;
|
|
182
186
|
};
|
|
183
187
|
|
|
184
188
|
export declare type AccordionState = ComponentState<AccordionSlots> & AccordionCommons & AccordionContextValue;
|
package/lib/Accordion.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["
|
|
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":["
|
|
1
|
+
{"version":3,"file":"AccordionHeader.js","sourceRoot":"../src/","sources":["AccordionHeader.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAC","sourcesContent":["export * from './components/AccordionHeader/index';\n"]}
|
package/lib/AccordionItem.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["
|
|
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":["
|
|
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":["
|
|
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,
|
|
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
|
-
|
|
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
|
-
|
|
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:
|
|
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":["
|
|
1
|
+
{"version":3,"file":"Accordion.types.js","sourceRoot":"../src/","sources":["components/Accordion/Accordion.types.ts"],"names":[],"mappings":"","sourcesContent":["import * as React from 'react';\nimport type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';\nimport type { AccordionItemValue } from '../AccordionItem/AccordionItem.types';\n\nexport type AccordionIndex = number | number[];\n\nexport type AccordionToggleEvent<E = HTMLElement> = React.MouseEvent<E> | React.KeyboardEvent<E>;\n\nexport type AccordionToggleEventHandler = (event: AccordionToggleEvent, data: AccordionToggleData) => void;\n\ntype AccordionCommons = {\n /**\n * Indicates if keyboard navigation is available and gives two options,\n * linear or circular navigation\n */\n navigation?: 'linear' | 'circular';\n /**\n * Indicates if Accordion support multiple Panels opened at the same time\n */\n multiple: boolean;\n /**\n * Indicates if Accordion support multiple Panels closed at the same time\n */\n collapsible: boolean;\n};\n\nexport type AccordionContextValue = Omit<AccordionCommons, 'multiple'> & {\n /**\n * The list of opened panels by index\n */\n openItems: AccordionItemValue[];\n /**\n * Callback used by AccordionItem to request a change on it's own opened state\n * Should be used to toggle AccordionItem\n */\n requestToggle: (event: AccordionToggleEvent, data: AccordionToggleData) => void;\n};\n\nexport type AccordionContextValues = {\n accordion: AccordionContextValue;\n};\n\nexport type AccordionSlots = {\n root: Slot<'div'>;\n};\n\nexport type AccordionToggleData = {\n value: AccordionItemValue;\n};\n\nexport type AccordionProps = ComponentProps<AccordionSlots> &\n Partial<AccordionCommons> & {\n /**\n * Controls the state of the panel\n */\n openItems?: AccordionItemValue | AccordionItemValue[];\n /**\n * Default value for the uncontrolled state of the panel\n */\n defaultOpenItems?: AccordionItemValue | AccordionItemValue[];\n onToggle?: AccordionToggleEventHandler;\n };\n\nexport type AccordionState = ComponentState<AccordionSlots> & AccordionCommons & AccordionContextValue;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["components/Accordion/AccordionContext.ts"],"names":[],"mappings":"AAAA,SAAS,aAAT,QAA8B,kCAA9B;AAIA,OAAO,MAAM,gBAAgB,gBAAmC,aAAa,CAAwB;AACnG,EAAA,SAAS,EAAE,EADwF;AAEnG,EAAA,WAAW,EAAE,KAFsF;;AAGnG,EAAA,aAAa,GAAA;AACX;AACD;;AALkG,CAAxB,CAAtE","sourcesContent":["import { createContext } from '@fluentui/react-context-selector';\nimport type { Context } from '@fluentui/react-context-selector';\nimport type { AccordionContextValue } from './Accordion.types';\n\nexport const AccordionContext: Context<AccordionContextValue> = createContext<AccordionContextValue>({\n openItems: [],\n collapsible: false,\n requestToggle() {\n /* noop */\n },\n});\n"],"sourceRoot":"../src/"}
|