@spectrum-web-components/radio 0.11.10-react.48 → 0.11.10-react.50

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,455 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-radio-group.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "custom-element-definition",
12
+ "name": "sp-radio-group",
13
+ "declaration": {
14
+ "name": "RadioGroup",
15
+ "module": "/src/RadioGroup.js"
16
+ }
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "sp-radio.ts",
23
+ "declarations": [],
24
+ "exports": [
25
+ {
26
+ "kind": "custom-element-definition",
27
+ "name": "sp-radio",
28
+ "declaration": {
29
+ "name": "Radio",
30
+ "module": "/src/Radio.js"
31
+ }
32
+ }
33
+ ]
34
+ },
35
+ {
36
+ "kind": "javascript-module",
37
+ "path": "src/Radio.ts",
38
+ "declarations": [
39
+ {
40
+ "kind": "class",
41
+ "description": "",
42
+ "name": "Radio",
43
+ "slots": [
44
+ {
45
+ "description": "text label of the Radio button",
46
+ "name": ""
47
+ }
48
+ ],
49
+ "members": [
50
+ {
51
+ "kind": "field",
52
+ "name": "autofocus",
53
+ "type": {
54
+ "text": "boolean"
55
+ },
56
+ "privacy": "private",
57
+ "default": "false",
58
+ "description": "When this control is rendered, focus it automatically",
59
+ "attribute": "autofocus"
60
+ },
61
+ {
62
+ "kind": "field",
63
+ "name": "value",
64
+ "type": {
65
+ "text": "string"
66
+ },
67
+ "privacy": "public",
68
+ "default": "''",
69
+ "attribute": "value",
70
+ "reflects": true
71
+ },
72
+ {
73
+ "kind": "field",
74
+ "name": "checked",
75
+ "type": {
76
+ "text": "boolean"
77
+ },
78
+ "privacy": "public",
79
+ "default": "false",
80
+ "attribute": "checked",
81
+ "reflects": true
82
+ },
83
+ {
84
+ "kind": "field",
85
+ "name": "disabled",
86
+ "type": {
87
+ "text": "boolean"
88
+ },
89
+ "privacy": "public",
90
+ "default": "false",
91
+ "attribute": "disabled",
92
+ "reflects": true
93
+ },
94
+ {
95
+ "kind": "field",
96
+ "name": "emphasized",
97
+ "type": {
98
+ "text": "boolean"
99
+ },
100
+ "privacy": "public",
101
+ "default": "false",
102
+ "attribute": "emphasized",
103
+ "reflects": true
104
+ },
105
+ {
106
+ "kind": "field",
107
+ "name": "invalid",
108
+ "type": {
109
+ "text": "boolean"
110
+ },
111
+ "privacy": "public",
112
+ "default": "false",
113
+ "attribute": "invalid",
114
+ "reflects": true
115
+ },
116
+ {
117
+ "kind": "field",
118
+ "name": "readonly",
119
+ "type": {
120
+ "text": "boolean"
121
+ },
122
+ "privacy": "public",
123
+ "default": "false",
124
+ "attribute": "readonly",
125
+ "reflects": true
126
+ },
127
+ {
128
+ "kind": "method",
129
+ "name": "click",
130
+ "privacy": "public",
131
+ "return": {
132
+ "type": {
133
+ "text": "void"
134
+ }
135
+ }
136
+ },
137
+ {
138
+ "kind": "method",
139
+ "name": "manageAutoFocus",
140
+ "privacy": "protected",
141
+ "return": {
142
+ "type": {
143
+ "text": "void"
144
+ }
145
+ }
146
+ },
147
+ {
148
+ "kind": "method",
149
+ "name": "activate",
150
+ "privacy": "protected",
151
+ "return": {
152
+ "type": {
153
+ "text": "void"
154
+ }
155
+ }
156
+ },
157
+ {
158
+ "kind": "method",
159
+ "name": "handleKeyup",
160
+ "privacy": "protected",
161
+ "return": {
162
+ "type": {
163
+ "text": "void"
164
+ }
165
+ },
166
+ "parameters": [
167
+ {
168
+ "name": "event",
169
+ "type": {
170
+ "text": "KeyboardEvent"
171
+ }
172
+ }
173
+ ]
174
+ }
175
+ ],
176
+ "events": [
177
+ {
178
+ "name": "keydown",
179
+ "type": {
180
+ "text": "KeyboardEvent"
181
+ },
182
+ "description": "Trick :focus-visible polyfill into thinking keyboard based focus"
183
+ },
184
+ {
185
+ "name": "change",
186
+ "type": {
187
+ "text": "Event"
188
+ },
189
+ "description": "When the input is interacted with and its state is changed"
190
+ }
191
+ ],
192
+ "attributes": [
193
+ {
194
+ "description": "Moves the label below the radio button",
195
+ "name": "label-below"
196
+ },
197
+ {
198
+ "description": "Uses the invalid style",
199
+ "name": "invalid",
200
+ "type": {
201
+ "text": "boolean"
202
+ },
203
+ "default": "false",
204
+ "fieldName": "invalid"
205
+ },
206
+ {
207
+ "description": "Uses the disabled style",
208
+ "name": "disabled",
209
+ "type": {
210
+ "text": "boolean"
211
+ },
212
+ "default": "false",
213
+ "fieldName": "disabled"
214
+ },
215
+ {
216
+ "description": "Represents when the input is checked",
217
+ "name": "checked",
218
+ "type": {
219
+ "text": "boolean"
220
+ },
221
+ "default": "false",
222
+ "fieldName": "checked"
223
+ },
224
+ {
225
+ "description": "Identifies this radio button within its radio group",
226
+ "name": "value",
227
+ "type": {
228
+ "text": "string"
229
+ },
230
+ "default": "''",
231
+ "fieldName": "value"
232
+ },
233
+ {
234
+ "name": "autofocus",
235
+ "type": {
236
+ "text": "boolean"
237
+ },
238
+ "default": "false",
239
+ "description": "When this control is rendered, focus it automatically",
240
+ "fieldName": "autofocus"
241
+ },
242
+ {
243
+ "name": "emphasized",
244
+ "type": {
245
+ "text": "boolean"
246
+ },
247
+ "default": "false",
248
+ "fieldName": "emphasized"
249
+ },
250
+ {
251
+ "name": "readonly",
252
+ "type": {
253
+ "text": "boolean"
254
+ },
255
+ "default": "false",
256
+ "fieldName": "readonly"
257
+ }
258
+ ],
259
+ "mixins": [
260
+ {
261
+ "name": "SizedMixin",
262
+ "package": "@spectrum-web-components/base"
263
+ },
264
+ {
265
+ "name": "FocusVisiblePolyfillMixin",
266
+ "package": "@spectrum-web-components/shared/src/focus-visible.js"
267
+ }
268
+ ],
269
+ "superclass": {
270
+ "name": "SpectrumElement",
271
+ "package": "@spectrum-web-components/base"
272
+ },
273
+ "tagName": "sp-radio",
274
+ "customElement": true
275
+ }
276
+ ],
277
+ "exports": [
278
+ {
279
+ "kind": "js",
280
+ "name": "Radio",
281
+ "declaration": {
282
+ "name": "Radio",
283
+ "module": "src/Radio.ts"
284
+ }
285
+ }
286
+ ]
287
+ },
288
+ {
289
+ "kind": "javascript-module",
290
+ "path": "src/RadioGroup.ts",
291
+ "declarations": [
292
+ {
293
+ "kind": "class",
294
+ "description": "",
295
+ "name": "RadioGroup",
296
+ "slots": [
297
+ {
298
+ "description": "The `sp-radio` elements to display/manage in the group.",
299
+ "name": ""
300
+ },
301
+ {
302
+ "description": "default or non-negative help text to associate to your form element",
303
+ "name": "help-text"
304
+ },
305
+ {
306
+ "description": "negative help text to associate to your form element when `invalid`",
307
+ "name": "negative-help-text"
308
+ }
309
+ ],
310
+ "members": [
311
+ {
312
+ "kind": "field",
313
+ "name": "name",
314
+ "type": {
315
+ "text": "string"
316
+ },
317
+ "privacy": "public",
318
+ "default": "''",
319
+ "attribute": "name"
320
+ },
321
+ {
322
+ "kind": "field",
323
+ "name": "defaultNodes",
324
+ "type": {
325
+ "text": "Node[]"
326
+ },
327
+ "privacy": "public"
328
+ },
329
+ {
330
+ "kind": "field",
331
+ "name": "buttons",
332
+ "type": {
333
+ "text": "Radio[]"
334
+ },
335
+ "privacy": "public"
336
+ },
337
+ {
338
+ "kind": "field",
339
+ "name": "rovingTabindexController",
340
+ "default": "new RovingTabindexController<Radio>(this, {\n focusInIndex: (elements: Radio[]) => {\n return elements.findIndex((el) => {\n return this.selected\n ? !el.disabled && el.value === this.selected\n : !el.disabled;\n });\n },\n elementEnterAction: (el: Radio) => {\n this.selected = el.value;\n },\n elements: () => this.buttons,\n isFocusableElement: (el: Radio) => !el.disabled,\n })"
341
+ },
342
+ {
343
+ "kind": "method",
344
+ "name": "focus",
345
+ "privacy": "public",
346
+ "return": {
347
+ "type": {
348
+ "text": "void"
349
+ }
350
+ }
351
+ },
352
+ {
353
+ "kind": "method",
354
+ "name": "_setSelected",
355
+ "privacy": "private",
356
+ "return": {
357
+ "type": {
358
+ "text": "void"
359
+ }
360
+ },
361
+ "parameters": [
362
+ {
363
+ "name": "value",
364
+ "type": {
365
+ "text": "string"
366
+ }
367
+ }
368
+ ]
369
+ },
370
+ {
371
+ "kind": "field",
372
+ "name": "selected",
373
+ "type": {
374
+ "text": "string"
375
+ },
376
+ "privacy": "public",
377
+ "default": "''",
378
+ "attribute": "selected",
379
+ "reflects": true
380
+ },
381
+ {
382
+ "kind": "method",
383
+ "name": "validateRadios",
384
+ "privacy": "private",
385
+ "return": {
386
+ "type": {
387
+ "text": "Promise<void>"
388
+ }
389
+ }
390
+ },
391
+ {
392
+ "kind": "method",
393
+ "name": "handleSlotchange",
394
+ "privacy": "protected",
395
+ "return": {
396
+ "type": {
397
+ "text": "void"
398
+ }
399
+ }
400
+ }
401
+ ],
402
+ "events": [
403
+ {
404
+ "name": "change",
405
+ "type": {
406
+ "text": "Event"
407
+ },
408
+ "description": "An alteration to the value of the element has been committed by the user."
409
+ }
410
+ ],
411
+ "attributes": [
412
+ {
413
+ "name": "name",
414
+ "type": {
415
+ "text": "string"
416
+ },
417
+ "default": "''",
418
+ "fieldName": "name"
419
+ },
420
+ {
421
+ "name": "selected",
422
+ "type": {
423
+ "text": "string"
424
+ },
425
+ "default": "''",
426
+ "fieldName": "selected"
427
+ }
428
+ ],
429
+ "mixins": [
430
+ {
431
+ "name": "FocusVisiblePolyfillMixin",
432
+ "package": "@spectrum-web-components/shared/src/focus-visible.js"
433
+ }
434
+ ],
435
+ "superclass": {
436
+ "name": "FieldGroup",
437
+ "package": "@spectrum-web-components/field-group"
438
+ },
439
+ "tagName": "sp-radio-group",
440
+ "customElement": true
441
+ }
442
+ ],
443
+ "exports": [
444
+ {
445
+ "kind": "js",
446
+ "name": "RadioGroup",
447
+ "declaration": {
448
+ "name": "RadioGroup",
449
+ "module": "src/RadioGroup.ts"
450
+ }
451
+ }
452
+ ]
453
+ }
454
+ ]
455
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/radio",
3
- "version": "0.11.10-react.48+e4fada004",
3
+ "version": "0.11.10-react.50+474992be7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -65,11 +65,11 @@
65
65
  "lit-html"
66
66
  ],
67
67
  "dependencies": {
68
- "@spectrum-web-components/base": "^0.7.5-react.48+e4fada004",
69
- "@spectrum-web-components/field-group": "^0.8.3-react.48+e4fada004",
70
- "@spectrum-web-components/help-text": "^0.2.10-react.48+e4fada004",
71
- "@spectrum-web-components/reactive-controllers": "^0.3.6-react.78+e4fada004",
72
- "@spectrum-web-components/shared": "^0.15.6-react.48+e4fada004"
68
+ "@spectrum-web-components/base": "^0.7.5-react.50+474992be7",
69
+ "@spectrum-web-components/field-group": "^0.8.3-react.50+474992be7",
70
+ "@spectrum-web-components/help-text": "^0.2.10-react.50+474992be7",
71
+ "@spectrum-web-components/reactive-controllers": "^0.3.6-react.80+474992be7",
72
+ "@spectrum-web-components/shared": "^0.15.6-react.50+474992be7"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@spectrum-css/radio": "^5.0.1"
@@ -80,5 +80,5 @@
80
80
  "./sp-*.js",
81
81
  "./**/*.dev.js"
82
82
  ],
83
- "gitHead": "e4fada0040dcaf1e1267f2159f366ec708cb2d09"
83
+ "gitHead": "474992be7513cad160eeeec0b522600243babc70"
84
84
  }