@spectrum-web-components/accordion 0.31.1-overlay.29 → 0.31.1-react.3

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