@fluentui/react-accordion 0.0.0-nightlyf3ce1fbe1d20211110.1 → 0.0.0-nightlyf6116328d620220124.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 +224 -22
- package/CHANGELOG.md +55 -14
- package/dist/react-accordion.d.ts +1 -24
- package/lib/components/Accordion/renderAccordion.js +2 -1
- package/lib/components/Accordion/renderAccordion.js.map +1 -1
- package/lib/components/Accordion/useAccordion.d.ts +1 -2
- package/lib/components/Accordion/useAccordion.js +3 -1
- package/lib/components/Accordion/useAccordion.js.map +1 -1
- package/lib/components/AccordionHeader/AccordionHeader.types.d.ts +2 -5
- package/lib/components/AccordionHeader/index.d.ts +0 -1
- package/lib/components/AccordionHeader/index.js +0 -1
- package/lib/components/AccordionHeader/index.js.map +1 -1
- package/lib/components/AccordionHeader/renderAccordionHeader.js +7 -3
- package/lib/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
- package/lib/components/AccordionHeader/useAccordionHeader.d.ts +1 -5
- package/lib/components/AccordionHeader/useAccordionHeader.js +23 -14
- package/lib/components/AccordionHeader/useAccordionHeader.js.map +1 -1
- package/lib/components/AccordionHeader/useAccordionHeaderStyles.js +34 -48
- package/lib/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
- package/lib/components/AccordionItem/renderAccordionItem.js +3 -3
- package/lib/components/AccordionItem/renderAccordionItem.js.map +1 -1
- package/lib/components/AccordionItem/useAccordionItem.d.ts +1 -5
- package/lib/components/AccordionItem/useAccordionItem.js +3 -5
- package/lib/components/AccordionItem/useAccordionItem.js.map +1 -1
- package/lib/components/AccordionPanel/renderAccordionPanel.js +3 -3
- package/lib/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
- package/lib/components/AccordionPanel/useAccordionPanel.d.ts +1 -5
- package/lib/components/AccordionPanel/useAccordionPanel.js +3 -5
- package/lib/components/AccordionPanel/useAccordionPanel.js.map +1 -1
- package/lib-commonjs/components/Accordion/renderAccordion.js +2 -1
- package/lib-commonjs/components/Accordion/renderAccordion.js.map +1 -1
- package/lib-commonjs/components/Accordion/useAccordion.d.ts +1 -2
- package/lib-commonjs/components/Accordion/useAccordion.js +5 -3
- package/lib-commonjs/components/Accordion/useAccordion.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/AccordionHeader.types.d.ts +2 -5
- package/lib-commonjs/components/AccordionHeader/index.d.ts +0 -1
- package/lib-commonjs/components/AccordionHeader/index.js +0 -2
- package/lib-commonjs/components/AccordionHeader/index.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js +7 -4
- package/lib-commonjs/components/AccordionHeader/renderAccordionHeader.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/useAccordionHeader.d.ts +1 -5
- package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js +26 -15
- package/lib-commonjs/components/AccordionHeader/useAccordionHeader.js.map +1 -1
- package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js +34 -47
- package/lib-commonjs/components/AccordionHeader/useAccordionHeaderStyles.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/renderAccordionItem.js +3 -4
- package/lib-commonjs/components/AccordionItem/renderAccordionItem.js.map +1 -1
- package/lib-commonjs/components/AccordionItem/useAccordionItem.d.ts +1 -5
- package/lib-commonjs/components/AccordionItem/useAccordionItem.js +5 -7
- package/lib-commonjs/components/AccordionItem/useAccordionItem.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/renderAccordionPanel.js +3 -4
- package/lib-commonjs/components/AccordionPanel/renderAccordionPanel.js.map +1 -1
- package/lib-commonjs/components/AccordionPanel/useAccordionPanel.d.ts +1 -5
- package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js +5 -7
- package/lib-commonjs/components/AccordionPanel/useAccordionPanel.js.map +1 -1
- package/package.json +15 -15
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib/components/AccordionHeader/AccordionHeaderExpandIcon.d.ts +0 -3
- package/lib/components/AccordionHeader/AccordionHeaderExpandIcon.js +0 -41
- package/lib/components/AccordionHeader/AccordionHeaderExpandIcon.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/components/AccordionHeader/AccordionHeaderExpandIcon.d.ts +0 -3
- package/lib-commonjs/components/AccordionHeader/AccordionHeaderExpandIcon.js +0 -50
- package/lib-commonjs/components/AccordionHeader/AccordionHeaderExpandIcon.js.map +0 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,17 +2,213 @@
|
|
|
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, 24 Jan 2022 04:14:05 GMT",
|
|
6
|
+
"tag": "@fluentui/react-accordion_v0.0.0-nightlyf6116328d620220124.1",
|
|
7
|
+
"version": "0.0.0-nightlyf6116328d620220124.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": "7e40e770b133f0e9b5a0ba356e78ea25a8647941",
|
|
14
14
|
"comment": "Release nightly v9"
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"author": "olfedias@microsoft.com",
|
|
18
|
+
"package": "@fluentui/react-accordion",
|
|
19
|
+
"commit": "b8537fb52cc3cc2787be5675c65300e01d882add",
|
|
20
|
+
"comment": "update styles to not use CSS shorthands"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "behowell@microsoft.com",
|
|
24
|
+
"package": "@fluentui/react-accordion",
|
|
25
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
|
26
|
+
"comment": "Remove component's shorthandProps array"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "bsunderhus@microsoft.com",
|
|
30
|
+
"package": "@fluentui/react-accordion",
|
|
31
|
+
"commit": "940a86cbd6a9f711d275df3a823292b527017852",
|
|
32
|
+
"comment": "Removes children as a slot from AccordionHeader"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "ololubek@microsoft.com",
|
|
36
|
+
"package": "@fluentui/react-accordion",
|
|
37
|
+
"commit": "63cbefe55e5db10eedbde19392aa8b6376d6a7f7",
|
|
38
|
+
"comment": "Update react-icons usage to resizable icons"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
42
|
+
"package": "@fluentui/react-accordion",
|
|
43
|
+
"commit": "38c8bed2c707014688ae2ae689033fa36ef23075",
|
|
44
|
+
"comment": "Updating packages based on changes to focusIndicator functions to remove functions from makeStyles in @fluentui/react-tabster."
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
48
|
+
"package": "@fluentui/react-accordion",
|
|
49
|
+
"commit": "22ef7434eddbe45d8818b16ff43c3488ac84ae45",
|
|
50
|
+
"comment": "Replacing use of functions in makeStyles with direct use of tokens."
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "behowell@microsoft.com",
|
|
54
|
+
"package": "@fluentui/react-accordion",
|
|
55
|
+
"commit": "dfb5538a2494b48cbb61702c4c2c9aaf8de37a6f",
|
|
56
|
+
"comment": "Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@fluentui/react-accordion",
|
|
61
|
+
"comment": "Bump @fluentui/react-aria to v0.0.0-nightlyf6116328d620220124.1",
|
|
62
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui/react-accordion",
|
|
67
|
+
"comment": "Bump @fluentui/react-context-selector to v0.0.0-nightlyf6116328d620220124.1",
|
|
68
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@fluentui/react-accordion",
|
|
73
|
+
"comment": "Bump @fluentui/react-make-styles to v0.0.0-nightlyf6116328d620220124.1",
|
|
74
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "beachball",
|
|
78
|
+
"package": "@fluentui/react-accordion",
|
|
79
|
+
"comment": "Bump @fluentui/react-tabster to v0.0.0-nightlyf6116328d620220124.1",
|
|
80
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@fluentui/react-accordion",
|
|
85
|
+
"comment": "Bump @fluentui/react-theme to v0.0.0-nightlyf6116328d620220124.1",
|
|
86
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"author": "beachball",
|
|
90
|
+
"package": "@fluentui/react-accordion",
|
|
91
|
+
"comment": "Bump @fluentui/react-utilities to v0.0.0-nightlyf6116328d620220124.1",
|
|
92
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"author": "beachball",
|
|
96
|
+
"package": "@fluentui/react-accordion",
|
|
97
|
+
"comment": "Bump @fluentui/babel-make-styles to v0.0.0-nightlyf6116328d620220124.1",
|
|
98
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"author": "beachball",
|
|
102
|
+
"package": "@fluentui/react-accordion",
|
|
103
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf6116328d620220124.1",
|
|
104
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"author": "beachball",
|
|
108
|
+
"package": "@fluentui/react-accordion",
|
|
109
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf6116328d620220124.1",
|
|
110
|
+
"commit": "7e40e770b133f0e9b5a0ba356e78ea25a8647941"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"none": [
|
|
114
|
+
{
|
|
115
|
+
"author": "martinhochel@microsoft.com",
|
|
116
|
+
"package": "@fluentui/react-accordion",
|
|
117
|
+
"commit": "28ceaaa83cd92a0389c466f0b15b283e3d9b08e4",
|
|
118
|
+
"comment": "chore: update all jest deps to v25 + apply single version policy"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"author": "martinhochel@microsoft.com",
|
|
122
|
+
"package": "@fluentui/react-accordion",
|
|
123
|
+
"commit": "8dfa712156b70414205b87b5b6d099367b0c297d",
|
|
124
|
+
"comment": "chore: use storybook runner for all vNext packages"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"author": "olfedias@microsoft.com",
|
|
128
|
+
"package": "@fluentui/react-accordion",
|
|
129
|
+
"commit": "c061e98be4b4a718c72a144a1f60bb5515824612",
|
|
130
|
+
"comment": "remove inline-style-expand-shorthand from tsconfigs"
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"date": "Thu, 25 Nov 2021 08:34:10 GMT",
|
|
137
|
+
"tag": "@fluentui/react-accordion_v9.0.0-beta.5",
|
|
138
|
+
"version": "9.0.0-beta.5",
|
|
139
|
+
"comments": {
|
|
140
|
+
"none": [
|
|
141
|
+
{
|
|
142
|
+
"author": "lingfangao@hotmail.com",
|
|
143
|
+
"package": "@fluentui/react-accordion",
|
|
144
|
+
"commit": "8a141d14f3a14de2e1c4691dad908622f310a9d1",
|
|
145
|
+
"comment": "Migrate package to use solution tsconfigs"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
"prerelease": [
|
|
149
|
+
{
|
|
150
|
+
"author": "beachball",
|
|
151
|
+
"package": "@fluentui/react-accordion",
|
|
152
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-beta.4",
|
|
153
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"author": "beachball",
|
|
157
|
+
"package": "@fluentui/react-accordion",
|
|
158
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.4",
|
|
159
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"author": "beachball",
|
|
163
|
+
"package": "@fluentui/react-accordion",
|
|
164
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
|
165
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"author": "beachball",
|
|
169
|
+
"package": "@fluentui/react-accordion",
|
|
170
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
|
171
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"author": "beachball",
|
|
175
|
+
"package": "@fluentui/react-accordion",
|
|
176
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.4",
|
|
177
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"author": "beachball",
|
|
181
|
+
"package": "@fluentui/react-accordion",
|
|
182
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
|
183
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"author": "beachball",
|
|
187
|
+
"package": "@fluentui/react-accordion",
|
|
188
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
|
189
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"author": "beachball",
|
|
193
|
+
"package": "@fluentui/react-accordion",
|
|
194
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
|
195
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"author": "beachball",
|
|
199
|
+
"package": "@fluentui/react-accordion",
|
|
200
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
|
201
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"date": "Fri, 12 Nov 2021 13:25:12 GMT",
|
|
208
|
+
"tag": "@fluentui/react-accordion_v9.0.0-beta.4",
|
|
209
|
+
"version": "9.0.0-beta.4",
|
|
210
|
+
"comments": {
|
|
211
|
+
"prerelease": [
|
|
16
212
|
{
|
|
17
213
|
"author": "olfedias@microsoft.com",
|
|
18
214
|
"package": "@fluentui/react-accordion",
|
|
@@ -34,56 +230,56 @@
|
|
|
34
230
|
{
|
|
35
231
|
"author": "beachball",
|
|
36
232
|
"package": "@fluentui/react-accordion",
|
|
37
|
-
"comment": "Bump @fluentui/react-aria to
|
|
38
|
-
"commit": "
|
|
233
|
+
"comment": "Bump @fluentui/react-aria to v9.0.0-beta.3",
|
|
234
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
39
235
|
},
|
|
40
236
|
{
|
|
41
237
|
"author": "beachball",
|
|
42
238
|
"package": "@fluentui/react-accordion",
|
|
43
|
-
"comment": "Bump @fluentui/react-context-selector to
|
|
44
|
-
"commit": "
|
|
239
|
+
"comment": "Bump @fluentui/react-context-selector to v9.0.0-beta.3",
|
|
240
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
45
241
|
},
|
|
46
242
|
{
|
|
47
243
|
"author": "beachball",
|
|
48
244
|
"package": "@fluentui/react-accordion",
|
|
49
|
-
"comment": "Bump @fluentui/react-make-styles to
|
|
50
|
-
"commit": "
|
|
245
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
|
246
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
51
247
|
},
|
|
52
248
|
{
|
|
53
249
|
"author": "beachball",
|
|
54
250
|
"package": "@fluentui/react-accordion",
|
|
55
|
-
"comment": "Bump @fluentui/react-tabster to
|
|
56
|
-
"commit": "
|
|
251
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
|
252
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
57
253
|
},
|
|
58
254
|
{
|
|
59
255
|
"author": "beachball",
|
|
60
256
|
"package": "@fluentui/react-accordion",
|
|
61
|
-
"comment": "Bump @fluentui/react-theme to
|
|
62
|
-
"commit": "
|
|
257
|
+
"comment": "Bump @fluentui/react-theme to v9.0.0-beta.3",
|
|
258
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
63
259
|
},
|
|
64
260
|
{
|
|
65
261
|
"author": "beachball",
|
|
66
262
|
"package": "@fluentui/react-accordion",
|
|
67
|
-
"comment": "Bump @fluentui/react-utilities to
|
|
68
|
-
"commit": "
|
|
263
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
|
264
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
69
265
|
},
|
|
70
266
|
{
|
|
71
267
|
"author": "beachball",
|
|
72
268
|
"package": "@fluentui/react-accordion",
|
|
73
|
-
"comment": "Bump @fluentui/babel-make-styles to
|
|
74
|
-
"commit": "
|
|
269
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
|
270
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
75
271
|
},
|
|
76
272
|
{
|
|
77
273
|
"author": "beachball",
|
|
78
274
|
"package": "@fluentui/react-accordion",
|
|
79
|
-
"comment": "Bump @fluentui/jest-serializer-make-styles to
|
|
80
|
-
"commit": "
|
|
275
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
|
276
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
81
277
|
},
|
|
82
278
|
{
|
|
83
279
|
"author": "beachball",
|
|
84
280
|
"package": "@fluentui/react-accordion",
|
|
85
|
-
"comment": "Bump @fluentui/react-conformance-make-styles to
|
|
86
|
-
"commit": "
|
|
281
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
|
282
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
87
283
|
}
|
|
88
284
|
],
|
|
89
285
|
"none": [
|
|
@@ -93,6 +289,12 @@
|
|
|
93
289
|
"commit": "cdbe0769d2a6ee91a98a3e62c6ac9329a714355c",
|
|
94
290
|
"comment": "Docs update"
|
|
95
291
|
},
|
|
292
|
+
{
|
|
293
|
+
"author": "lingfangao@hotmail.com",
|
|
294
|
+
"package": "@fluentui/react-accordion",
|
|
295
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
|
296
|
+
"comment": "Remove beta release tag"
|
|
297
|
+
},
|
|
96
298
|
{
|
|
97
299
|
"author": "mgodbolt@microsoft.com",
|
|
98
300
|
"package": "@fluentui/react-accordion",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,70 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-accordion
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 24 Jan 2022 04:14:05 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [0.0.0-
|
|
7
|
+
## [0.0.0-nightlyf6116328d620220124.1](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v0.0.0-nightlyf6116328d620220124.1)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-beta.
|
|
9
|
+
Mon, 24 Jan 2022 04:14:05 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-beta.5..@fluentui/react-accordion_v0.0.0-nightlyf6116328d620220124.1)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by email not defined)
|
|
15
|
+
- update styles to not use CSS shorthands ([PR #20800](https://github.com/microsoft/fluentui/pull/20800) by olfedias@microsoft.com)
|
|
16
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
|
17
|
+
- Removes children as a slot from AccordionHeader ([PR #21285](https://github.com/microsoft/fluentui/pull/21285) by bsunderhus@microsoft.com)
|
|
18
|
+
- Update react-icons usage to resizable icons ([PR #21074](https://github.com/microsoft/fluentui/pull/21074) by ololubek@microsoft.com)
|
|
19
|
+
- 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)
|
|
20
|
+
- 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)
|
|
21
|
+
- Remove AccordionHeaderExpandIcon, and use ChevronRightRegular from @fluentui/react-icons instead ([PR #21218](https://github.com/microsoft/fluentui/pull/21218) by behowell@microsoft.com)
|
|
22
|
+
- Bump @fluentui/react-aria to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
23
|
+
- Bump @fluentui/react-context-selector to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
24
|
+
- Bump @fluentui/react-make-styles to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
25
|
+
- Bump @fluentui/react-tabster to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
26
|
+
- Bump @fluentui/react-theme to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
27
|
+
- Bump @fluentui/react-utilities to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
28
|
+
- Bump @fluentui/babel-make-styles to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
29
|
+
- Bump @fluentui/jest-serializer-make-styles to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
30
|
+
- Bump @fluentui/react-conformance-make-styles to v0.0.0-nightlyf6116328d620220124.1 ([commit](https://github.com/microsoft/fluentui/commit/7e40e770b133f0e9b5a0ba356e78ea25a8647941) by beachball)
|
|
31
|
+
|
|
32
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-beta.5)
|
|
33
|
+
|
|
34
|
+
Thu, 25 Nov 2021 08:34:10 GMT
|
|
35
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-beta.4..@fluentui/react-accordion_v9.0.0-beta.5)
|
|
36
|
+
|
|
37
|
+
### Changes
|
|
38
|
+
|
|
39
|
+
- Bump @fluentui/react-aria to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
40
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
41
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
42
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
43
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
44
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
45
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
46
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
47
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
48
|
+
|
|
49
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-beta.4)
|
|
50
|
+
|
|
51
|
+
Fri, 12 Nov 2021 13:25:12 GMT
|
|
52
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-accordion_v9.0.0-beta.3..@fluentui/react-accordion_v9.0.0-beta.4)
|
|
11
53
|
|
|
12
54
|
### Changes
|
|
13
55
|
|
|
14
|
-
- Release nightly v9 ([commit](https://github.com/microsoft/fluentui/commit/c7a7f2302f3cfcbc6cd026f4d0ee4d5a2810371a) by email not defined)
|
|
15
56
|
- export static classes for components ([PR #20451](https://github.com/microsoft/fluentui/pull/20451) by olfedias@microsoft.com)
|
|
16
57
|
- Updating AccordionHeader tests to match changes in useARIAButton. ([PR #20342](https://github.com/microsoft/fluentui/pull/20342) by Humberto.Morimoto@microsoft.com)
|
|
17
58
|
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
|
18
|
-
- Bump @fluentui/react-aria to
|
|
19
|
-
- Bump @fluentui/react-context-selector to
|
|
20
|
-
- Bump @fluentui/react-make-styles to
|
|
21
|
-
- Bump @fluentui/react-tabster to
|
|
22
|
-
- Bump @fluentui/react-theme to
|
|
23
|
-
- Bump @fluentui/react-utilities to
|
|
24
|
-
- Bump @fluentui/babel-make-styles to
|
|
25
|
-
- Bump @fluentui/jest-serializer-make-styles to
|
|
26
|
-
- Bump @fluentui/react-conformance-make-styles to
|
|
59
|
+
- Bump @fluentui/react-aria to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
60
|
+
- Bump @fluentui/react-context-selector to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
61
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
62
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
63
|
+
- Bump @fluentui/react-theme to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
64
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
65
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
66
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
67
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
27
68
|
|
|
28
69
|
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-accordion_v9.0.0-beta.3)
|
|
29
70
|
|
|
@@ -4,7 +4,6 @@ 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
6
|
import type { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
|
7
|
-
import type { ObjectShorthandProps } from '@fluentui/react-utilities';
|
|
8
7
|
import * as React_2 from 'react';
|
|
9
8
|
|
|
10
9
|
/**
|
|
@@ -80,19 +79,10 @@ export declare type AccordionHeaderContextValues = {
|
|
|
80
79
|
accordionHeader: AccordionHeaderContextValue;
|
|
81
80
|
};
|
|
82
81
|
|
|
83
|
-
export declare const AccordionHeaderExpandIcon: ForwardRefComponent<AccordionHeaderExpandIconProps>;
|
|
84
|
-
|
|
85
82
|
export declare type AccordionHeaderExpandIconPosition = 'start' | 'end';
|
|
86
83
|
|
|
87
|
-
export declare type AccordionHeaderExpandIconProps = IntrinsicShorthandProps<'span'>;
|
|
88
|
-
|
|
89
84
|
export declare type AccordionHeaderProps = ComponentProps<AccordionHeaderSlots> & Partial<AccordionHeaderCommons>;
|
|
90
85
|
|
|
91
|
-
/**
|
|
92
|
-
* Const listing which props are shorthand props.
|
|
93
|
-
*/
|
|
94
|
-
export declare const accordionHeaderShorthandProps: Array<keyof AccordionHeaderSlots>;
|
|
95
|
-
|
|
96
86
|
export declare type AccordionHeaderSize = 'small' | 'medium' | 'large' | 'extra-large';
|
|
97
87
|
|
|
98
88
|
export declare type AccordionHeaderSlots = {
|
|
@@ -104,12 +94,11 @@ export declare type AccordionHeaderSlots = {
|
|
|
104
94
|
/**
|
|
105
95
|
* Expand icon slot rendered before (or after) children content in heading
|
|
106
96
|
*/
|
|
107
|
-
expandIcon:
|
|
97
|
+
expandIcon: IntrinsicShorthandProps<'span'>;
|
|
108
98
|
/**
|
|
109
99
|
* Expand icon slot rendered before (or after) children content in heading
|
|
110
100
|
*/
|
|
111
101
|
icon?: IntrinsicShorthandProps<'div'>;
|
|
112
|
-
children: ObjectShorthandProps<React_2.HTMLAttributes<HTMLElement>>;
|
|
113
102
|
};
|
|
114
103
|
|
|
115
104
|
export declare type AccordionHeaderState = ComponentState<AccordionHeaderSlots> & AccordionHeaderCommons & AccordionHeaderContextValue;
|
|
@@ -147,11 +136,6 @@ export declare type AccordionItemContextValues = {
|
|
|
147
136
|
|
|
148
137
|
export declare type AccordionItemProps = ComponentProps<AccordionItemSlots> & Partial<AccordionItemCommons> & Pick<AccordionItemCommons, 'value'>;
|
|
149
138
|
|
|
150
|
-
/**
|
|
151
|
-
* Const listing which props are shorthand props.
|
|
152
|
-
*/
|
|
153
|
-
export declare const accordionItemShorthandProps: Array<keyof AccordionItemSlots>;
|
|
154
|
-
|
|
155
139
|
export declare type AccordionItemSlots = {
|
|
156
140
|
root: IntrinsicShorthandProps<'div'>;
|
|
157
141
|
};
|
|
@@ -169,11 +153,6 @@ export declare const accordionPanelClassName = "fui-AccordionPanel";
|
|
|
169
153
|
|
|
170
154
|
export declare type AccordionPanelProps = ComponentProps<AccordionPanelSlots>;
|
|
171
155
|
|
|
172
|
-
/**
|
|
173
|
-
* Const listing which props are shorthand props.
|
|
174
|
-
*/
|
|
175
|
-
export declare const accordionPanelShorthandProps: Array<keyof AccordionPanelSlots>;
|
|
176
|
-
|
|
177
156
|
export declare type AccordionPanelSlots = {
|
|
178
157
|
root: IntrinsicShorthandProps<'div'>;
|
|
179
158
|
};
|
|
@@ -197,8 +176,6 @@ export declare type AccordionProps = ComponentProps<AccordionSlots> & Partial<Ac
|
|
|
197
176
|
onToggle?: AccordionToggleEventHandler;
|
|
198
177
|
};
|
|
199
178
|
|
|
200
|
-
export declare const accordionShorthandProps: Array<keyof AccordionSlots>;
|
|
201
|
-
|
|
202
179
|
export declare type AccordionSlots = {
|
|
203
180
|
root: IntrinsicShorthandProps<'div'>;
|
|
204
181
|
};
|
|
@@ -10,7 +10,8 @@ export const renderAccordion = (state, contextValues) => {
|
|
|
10
10
|
slots,
|
|
11
11
|
slotProps
|
|
12
12
|
} = getSlots(state);
|
|
13
|
-
return /*#__PURE__*/React.createElement(slots.root,
|
|
13
|
+
return /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
|
14
|
+
}, /*#__PURE__*/React.createElement(AccordionContext.Provider, {
|
|
14
15
|
value: contextValues.accordion
|
|
15
16
|
}, slotProps.root.children));
|
|
16
17
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Accordion/renderAccordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AAEA,SAAS,gBAAT,QAAiC,oBAAjC;AAGA;;AAEG;;AACH,OAAO,MAAM,eAAe,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AAC9F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,
|
|
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,eAAe,GAAG,CAAC,KAAD,EAAwB,aAAxB,KAAiE;AAC9F,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAiB,KAAjB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,gBAAgB,CAAC,QAAlB,EAA0B;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAA1B,EAA4D,SAAS,CAAC,IAAV,CAAe,QAA3E,CADF,CADF;AAKD,CARM","sourceRoot":""}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { AccordionProps,
|
|
3
|
-
export declare const accordionShorthandProps: Array<keyof AccordionSlots>;
|
|
2
|
+
import type { AccordionProps, AccordionState } from './Accordion.types';
|
|
4
3
|
/**
|
|
5
4
|
* Returns the props and state required to render the component
|
|
6
5
|
* @param props - Accordion properties
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getNativeElementProps, useControllableState, useEventCallback } from '@fluentui/react-utilities';
|
|
3
|
-
export const accordionShorthandProps = ['root'];
|
|
4
3
|
/**
|
|
5
4
|
* Returns the props and state required to render the component
|
|
6
5
|
* @param props - Accordion properties
|
|
@@ -40,6 +39,9 @@ export const useAccordion = (props, ref) => {
|
|
|
40
39
|
navigable,
|
|
41
40
|
openItems,
|
|
42
41
|
requestToggle,
|
|
42
|
+
components: {
|
|
43
|
+
root: 'div'
|
|
44
|
+
},
|
|
43
45
|
root: getNativeElementProps('div', { ...props,
|
|
44
46
|
ref
|
|
45
47
|
})
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Accordion/useAccordion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,qBAAT,EAAgC,oBAAhC,EAAsD,gBAAtD,QAA8E,2BAA9E;
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Accordion/useAccordion.ts"],"names":[],"mappings":"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","sourceRoot":""}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ComponentProps, ComponentState, IntrinsicShorthandProps, ObjectShorthandProps } from '@fluentui/react-utilities';
|
|
3
|
-
import type { AccordionHeaderExpandIconProps } from './AccordionHeaderExpandIcon';
|
|
1
|
+
import type { ComponentProps, ComponentState, IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
|
4
2
|
import type { ARIAButtonShorthandProps } from '@fluentui/react-aria';
|
|
5
3
|
export declare type AccordionHeaderSize = 'small' | 'medium' | 'large' | 'extra-large';
|
|
6
4
|
export declare type AccordionHeaderExpandIconPosition = 'start' | 'end';
|
|
@@ -22,12 +20,11 @@ export declare type AccordionHeaderSlots = {
|
|
|
22
20
|
/**
|
|
23
21
|
* Expand icon slot rendered before (or after) children content in heading
|
|
24
22
|
*/
|
|
25
|
-
expandIcon:
|
|
23
|
+
expandIcon: IntrinsicShorthandProps<'span'>;
|
|
26
24
|
/**
|
|
27
25
|
* Expand icon slot rendered before (or after) children content in heading
|
|
28
26
|
*/
|
|
29
27
|
icon?: IntrinsicShorthandProps<'div'>;
|
|
30
|
-
children: ObjectShorthandProps<React.HTMLAttributes<HTMLElement>>;
|
|
31
28
|
};
|
|
32
29
|
export declare type AccordionHeaderCommons = {
|
|
33
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AccordionHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AccordionHeader/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mCAAmC,CAAC;AAClD,cAAc,4BAA4B,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { getSlots } from '@fluentui/react-utilities';
|
|
3
|
-
import { accordionHeaderShorthandProps } from './useAccordionHeader';
|
|
4
3
|
import { AccordionHeaderContext } from './AccordionHeaderContext';
|
|
5
4
|
/**
|
|
6
5
|
* Function that renders the final JSX of the component
|
|
@@ -10,9 +9,14 @@ export const renderAccordionHeader = (state, contextValues) => {
|
|
|
10
9
|
const {
|
|
11
10
|
slots,
|
|
12
11
|
slotProps
|
|
13
|
-
} = getSlots(state
|
|
12
|
+
} = getSlots(state);
|
|
14
13
|
return /*#__PURE__*/React.createElement(AccordionHeaderContext.Provider, {
|
|
15
14
|
value: contextValues.accordionHeader
|
|
16
|
-
}, /*#__PURE__*/React.createElement(slots.root,
|
|
15
|
+
}, /*#__PURE__*/React.createElement(slots.root, { ...slotProps.root
|
|
16
|
+
}, /*#__PURE__*/React.createElement(slots.button, { ...slotProps.button
|
|
17
|
+
}, state.expandIconPosition === 'start' && /*#__PURE__*/React.createElement(slots.expandIcon, { ...slotProps.expandIcon
|
|
18
|
+
}), /*#__PURE__*/React.createElement(slots.icon, { ...slotProps.icon
|
|
19
|
+
}), slotProps.root.children, state.expandIconPosition === 'end' && /*#__PURE__*/React.createElement(slots.expandIcon, { ...slotProps.expandIcon
|
|
20
|
+
}))));
|
|
17
21
|
};
|
|
18
22
|
//# sourceMappingURL=renderAccordionHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/AccordionHeader/renderAccordionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/AccordionHeader/renderAccordionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,QAAT,QAAyB,2BAAzB;AACA,SAAS,sBAAT,QAAuC,0BAAvC;AAGA;;AAEG;;AACH,OAAO,MAAM,qBAAqB,GAAG,CAAC,KAAD,EAA8B,aAA9B,KAA6E;AAChH,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,QAAQ,CAAuB,KAAvB,CAArC;AAEA,sBACE,KAAA,CAAA,aAAA,CAAC,sBAAsB,CAAC,QAAxB,EAAgC;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAhC,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,eACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,MAAP,EAAa,EAAA,GAAK,SAAS,CAAC;AAAf,GAAb,EACG,KAAK,CAAC,kBAAN,KAA6B,OAA7B,iBAAwC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,UAAP,EAAiB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAjB,CAD3C,eAEE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,CAFF,EAGG,SAAS,CAAC,IAAV,CAAe,QAHlB,EAIG,KAAK,CAAC,kBAAN,KAA6B,KAA7B,iBAAsC,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,UAAP,EAAiB,EAAA,GAAK,SAAS,CAAC;AAAf,GAAjB,CAJzC,CADF,CADF,CADF;AAYD,CAfM","sourceRoot":""}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { AccordionHeaderProps, AccordionHeaderState
|
|
3
|
-
/**
|
|
4
|
-
* Const listing which props are shorthand props.
|
|
5
|
-
*/
|
|
6
|
-
export declare const accordionHeaderShorthandProps: Array<keyof AccordionHeaderSlots>;
|
|
2
|
+
import type { AccordionHeaderProps, AccordionHeaderState } from './AccordionHeader.types';
|
|
7
3
|
/**
|
|
8
4
|
* Returns the props and state required to render the component
|
|
9
5
|
* @param props - AccordionHeader properties
|