@spectrum-web-components/accordion 0.49.0-beta.2 → 0.49.0

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.
@@ -0,0 +1,322 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-accordion-item.js",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-accordion-item",
13
+ "declaration": {
14
+ "name": "AccordionItem",
15
+ "module": "/src/AccordionItem.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "sp-accordion.js",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "custom-element-definition",
27
+ "name": "sp-accordion",
28
+ "declaration": {
29
+ "name": "Accordion",
30
+ "module": "/src/Accordion.js"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "kind": "javascript-module",
37
+ "path": "src/Accordion.js",
38
+ "declarations": [
39
+ {
40
+ "kind": "class",
41
+ "description": "",
42
+ "name": "Accordion",
43
+ "slots": [
44
+ {
45
+ "description": "The sp-accordion-item children to display.",
46
+ "name": ""
47
+ }
48
+ ],
49
+ "members": [
50
+ {
51
+ "kind": "field",
52
+ "name": "allowMultiple",
53
+ "type": {
54
+ "text": "boolean"
55
+ },
56
+ "privacy": "public",
57
+ "default": "false",
58
+ "description": "Allows multiple accordion items to be opened at the same time",
59
+ "attribute": "allow-multiple",
60
+ "reflects": true
61
+ },
62
+ {
63
+ "kind": "field",
64
+ "name": "density",
65
+ "type": {
66
+ "text": "'compact' | 'spacious' | undefined"
67
+ },
68
+ "privacy": "public",
69
+ "description": "Sets the spacing between the content to borders of an accordion item",
70
+ "attribute": "density",
71
+ "reflects": true
72
+ },
73
+ {
74
+ "kind": "field",
75
+ "name": "defaultNodes",
76
+ "type": {
77
+ "text": "NodeListOf<AccordionItem>"
78
+ },
79
+ "privacy": "private"
80
+ },
81
+ {
82
+ "kind": "field",
83
+ "name": "items",
84
+ "type": {
85
+ "text": "AccordionItem[]"
86
+ },
87
+ "privacy": "private",
88
+ "readonly": true
89
+ },
90
+ {
91
+ "kind": "field",
92
+ "name": "focusGroupController",
93
+ "default": "new FocusGroupController<AccordionItem>(this, {\n direction: 'vertical',\n elements: () => this.items,\n isFocusableElement: (el: AccordionItem) => !el.disabled,\n })"
94
+ },
95
+ {
96
+ "kind": "method",
97
+ "name": "focus",
98
+ "privacy": "public",
99
+ "return": {
100
+ "type": {
101
+ "text": "void"
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "kind": "method",
107
+ "name": "onToggle",
108
+ "privacy": "private",
109
+ "return": {
110
+ "type": {
111
+ "text": "Promise<void>"
112
+ }
113
+ },
114
+ "parameters": [
115
+ {
116
+ "name": "event",
117
+ "type": {
118
+ "text": "Event"
119
+ }
120
+ }
121
+ ]
122
+ },
123
+ {
124
+ "kind": "method",
125
+ "name": "handleSlotchange",
126
+ "privacy": "private",
127
+ "return": {
128
+ "type": {
129
+ "text": "void"
130
+ }
131
+ }
132
+ }
133
+ ],
134
+ "attributes": [
135
+ {
136
+ "name": "allow-multiple",
137
+ "type": {
138
+ "text": "boolean"
139
+ },
140
+ "default": "false",
141
+ "description": "Allows multiple accordion items to be opened at the same time",
142
+ "fieldName": "allowMultiple"
143
+ },
144
+ {
145
+ "name": "density",
146
+ "type": {
147
+ "text": "'compact' | 'spacious' | undefined"
148
+ },
149
+ "description": "Sets the spacing between the content to borders of an accordion item",
150
+ "fieldName": "density"
151
+ }
152
+ ],
153
+ "mixins": [
154
+ {
155
+ "name": "SizedMixin",
156
+ "package": "@spectrum-web-components/base"
157
+ }
158
+ ],
159
+ "superclass": {
160
+ "name": "SpectrumElement",
161
+ "package": "@spectrum-web-components/base"
162
+ },
163
+ "tagName": "sp-accordion",
164
+ "customElement": true
165
+ }
166
+ ],
167
+ "exports": [
168
+ {
169
+ "kind": "js",
170
+ "name": "Accordion",
171
+ "declaration": {
172
+ "name": "Accordion",
173
+ "module": "src/Accordion.js"
174
+ }
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ "kind": "javascript-module",
180
+ "path": "src/AccordionItem.js",
181
+ "declarations": [
182
+ {
183
+ "kind": "class",
184
+ "description": "",
185
+ "name": "AccordionItem",
186
+ "slots": [
187
+ {
188
+ "description": "The content of the item that is hidden when the item is not open",
189
+ "name": ""
190
+ }
191
+ ],
192
+ "members": [
193
+ {
194
+ "kind": "field",
195
+ "name": "open",
196
+ "type": {
197
+ "text": "boolean"
198
+ },
199
+ "privacy": "public",
200
+ "default": "false",
201
+ "attribute": "open",
202
+ "reflects": true
203
+ },
204
+ {
205
+ "kind": "field",
206
+ "name": "label",
207
+ "type": {
208
+ "text": "string"
209
+ },
210
+ "privacy": "public",
211
+ "default": "''",
212
+ "attribute": "label",
213
+ "reflects": true
214
+ },
215
+ {
216
+ "kind": "field",
217
+ "name": "disabled",
218
+ "type": {
219
+ "text": "boolean"
220
+ },
221
+ "privacy": "public",
222
+ "default": "false",
223
+ "attribute": "disabled",
224
+ "reflects": true
225
+ },
226
+ {
227
+ "kind": "field",
228
+ "name": "focusElement",
229
+ "type": {
230
+ "text": "HTMLElement"
231
+ },
232
+ "privacy": "public",
233
+ "readonly": true
234
+ },
235
+ {
236
+ "kind": "method",
237
+ "name": "onClick",
238
+ "privacy": "private",
239
+ "return": {
240
+ "type": {
241
+ "text": "void"
242
+ }
243
+ }
244
+ },
245
+ {
246
+ "kind": "method",
247
+ "name": "toggle",
248
+ "privacy": "private",
249
+ "return": {
250
+ "type": {
251
+ "text": "void"
252
+ }
253
+ }
254
+ },
255
+ {
256
+ "kind": "field",
257
+ "name": "renderChevronIcon",
258
+ "privacy": "protected"
259
+ }
260
+ ],
261
+ "events": [
262
+ {
263
+ "name": "sp-accordion-item-toggle",
264
+ "type": {
265
+ "text": "CustomEvent"
266
+ },
267
+ "description": "Announce that an accordion item has been toggled while allowing the event to be cancelled."
268
+ }
269
+ ],
270
+ "attributes": [
271
+ {
272
+ "name": "open",
273
+ "type": {
274
+ "text": "boolean"
275
+ },
276
+ "default": "false",
277
+ "fieldName": "open"
278
+ },
279
+ {
280
+ "name": "label",
281
+ "type": {
282
+ "text": "string"
283
+ },
284
+ "default": "''",
285
+ "fieldName": "label"
286
+ },
287
+ {
288
+ "name": "disabled",
289
+ "type": {
290
+ "text": "boolean"
291
+ },
292
+ "default": "false",
293
+ "fieldName": "disabled"
294
+ }
295
+ ],
296
+ "mixins": [
297
+ {
298
+ "name": "SizedMixin",
299
+ "package": "@spectrum-web-components/base"
300
+ }
301
+ ],
302
+ "superclass": {
303
+ "name": "Focusable",
304
+ "package": "@spectrum-web-components/shared/src/focusable.js"
305
+ },
306
+ "tagName": "sp-accordion-item",
307
+ "customElement": true
308
+ }
309
+ ],
310
+ "exports": [
311
+ {
312
+ "kind": "js",
313
+ "name": "AccordionItem",
314
+ "declaration": {
315
+ "name": "AccordionItem",
316
+ "module": "src/AccordionItem.js"
317
+ }
318
+ }
319
+ ]
320
+ }
321
+ ]
322
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/accordion",
3
- "version": "0.49.0-beta.2",
3
+ "version": "0.49.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -66,11 +66,11 @@
66
66
  "lit-html"
67
67
  ],
68
68
  "dependencies": {
69
- "@spectrum-web-components/base": "^0.49.0-beta.2",
70
- "@spectrum-web-components/icon": "^0.49.0-beta.2",
71
- "@spectrum-web-components/icons-ui": "^0.49.0-beta.2",
72
- "@spectrum-web-components/reactive-controllers": "^0.49.0-beta.2",
73
- "@spectrum-web-components/shared": "^0.49.0-beta.2"
69
+ "@spectrum-web-components/base": "^0.49.0",
70
+ "@spectrum-web-components/icon": "^0.49.0",
71
+ "@spectrum-web-components/icons-ui": "^0.49.0",
72
+ "@spectrum-web-components/reactive-controllers": "^0.49.0",
73
+ "@spectrum-web-components/shared": "^0.49.0"
74
74
  },
75
75
  "devDependencies": {
76
76
  "@spectrum-css/accordion": "^5.1.2"
@@ -81,5 +81,5 @@
81
81
  "./sp-*.js",
82
82
  "./**/*.dev.js"
83
83
  ],
84
- "gitHead": "2a8752a182e31dfd71c010b72bece20b0b5d1c9e"
84
+ "gitHead": "088e84caa1e2f723d735b011608ca0a3411e2149"
85
85
  }