@spectrum-web-components/radio 0.31.1-overlay.29 → 0.31.1-react.2

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