@spectrum-web-components/tabs 0.10.6 → 0.10.7-react.48

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.
@@ -1,703 +0,0 @@
1
- {
2
- "schemaVersion": "1.0.0",
3
- "readme": "",
4
- "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "sp-tab-panel.js",
8
- "declarations": [],
9
- "exports": [
10
- {
11
- "kind": "custom-element-definition",
12
- "name": "sp-tab-panel",
13
- "declaration": {
14
- "name": "TabPanel",
15
- "module": "/src/TabPanel.js"
16
- }
17
- }
18
- ]
19
- },
20
- {
21
- "kind": "javascript-module",
22
- "path": "sp-tab.js",
23
- "declarations": [],
24
- "exports": [
25
- {
26
- "kind": "custom-element-definition",
27
- "name": "sp-tab",
28
- "declaration": {
29
- "name": "Tab",
30
- "module": "/src/Tab.js"
31
- }
32
- }
33
- ]
34
- },
35
- {
36
- "kind": "javascript-module",
37
- "path": "sp-tabs.js",
38
- "declarations": [],
39
- "exports": [
40
- {
41
- "kind": "custom-element-definition",
42
- "name": "sp-tabs",
43
- "declaration": {
44
- "name": "Tabs",
45
- "module": "/src/Tabs.js"
46
- }
47
- }
48
- ]
49
- },
50
- {
51
- "kind": "javascript-module",
52
- "path": "src/Tab.js",
53
- "declarations": [
54
- {
55
- "kind": "class",
56
- "description": "",
57
- "name": "Tab",
58
- "slots": [
59
- {
60
- "description": "text label of the Tab",
61
- "name": ""
62
- },
63
- {
64
- "description": "The icon that appears on the left of the label",
65
- "name": "icon"
66
- }
67
- ],
68
- "members": [
69
- {
70
- "kind": "field",
71
- "name": "instanceCount",
72
- "type": {
73
- "text": "number"
74
- },
75
- "static": true,
76
- "default": "0",
77
- "privacy": "private"
78
- },
79
- {
80
- "kind": "field",
81
- "name": "hasIcon",
82
- "type": {
83
- "text": "boolean"
84
- },
85
- "privacy": "protected"
86
- },
87
- {
88
- "kind": "field",
89
- "name": "hasLabel",
90
- "type": {
91
- "text": "boolean"
92
- },
93
- "privacy": "protected"
94
- },
95
- {
96
- "kind": "field",
97
- "name": "disabled",
98
- "type": {
99
- "text": "boolean"
100
- },
101
- "privacy": "public",
102
- "default": "false",
103
- "attribute": "disabled",
104
- "reflects": true
105
- },
106
- {
107
- "kind": "field",
108
- "name": "label",
109
- "type": {
110
- "text": "string"
111
- },
112
- "privacy": "public",
113
- "default": "''",
114
- "attribute": "label",
115
- "reflects": true
116
- },
117
- {
118
- "kind": "field",
119
- "name": "selected",
120
- "type": {
121
- "text": "boolean"
122
- },
123
- "privacy": "public",
124
- "default": "false",
125
- "attribute": "selected",
126
- "reflects": true
127
- },
128
- {
129
- "kind": "field",
130
- "name": "vertical",
131
- "type": {
132
- "text": "boolean"
133
- },
134
- "privacy": "public",
135
- "default": "false",
136
- "attribute": "vertical",
137
- "reflects": true
138
- },
139
- {
140
- "kind": "field",
141
- "name": "value",
142
- "type": {
143
- "text": "string"
144
- },
145
- "privacy": "public",
146
- "default": "''",
147
- "attribute": "value",
148
- "reflects": true
149
- },
150
- {
151
- "kind": "method",
152
- "name": "handleContentChange",
153
- "privacy": "protected",
154
- "return": {
155
- "type": {
156
- "text": "void"
157
- }
158
- }
159
- }
160
- ],
161
- "events": [
162
- {
163
- "name": "sp-tab-contentchange",
164
- "type": {
165
- "text": "Event"
166
- },
167
- "description": "When the content in a tab has changed, JS powered layout related to that content may also need to be changed."
168
- }
169
- ],
170
- "attributes": [
171
- {
172
- "name": "disabled",
173
- "type": {
174
- "text": "boolean"
175
- },
176
- "default": "false",
177
- "fieldName": "disabled"
178
- },
179
- {
180
- "name": "label",
181
- "type": {
182
- "text": "string"
183
- },
184
- "default": "''",
185
- "fieldName": "label"
186
- },
187
- {
188
- "name": "selected",
189
- "type": {
190
- "text": "boolean"
191
- },
192
- "default": "false",
193
- "fieldName": "selected"
194
- },
195
- {
196
- "name": "vertical",
197
- "type": {
198
- "text": "boolean"
199
- },
200
- "default": "false",
201
- "fieldName": "vertical"
202
- },
203
- {
204
- "name": "value",
205
- "type": {
206
- "text": "string"
207
- },
208
- "default": "''",
209
- "fieldName": "value"
210
- }
211
- ],
212
- "mixins": [
213
- {
214
- "name": "FocusVisiblePolyfillMixin",
215
- "package": "@spectrum-web-components/shared"
216
- },
217
- {
218
- "name": "ObserveSlotText",
219
- "package": "@spectrum-web-components/shared"
220
- },
221
- {
222
- "name": "ObserveSlotPresence",
223
- "package": "@spectrum-web-components/shared"
224
- }
225
- ],
226
- "superclass": {
227
- "name": "SpectrumElement",
228
- "package": "@spectrum-web-components/base"
229
- },
230
- "tagName": "sp-tab",
231
- "customElement": true
232
- }
233
- ],
234
- "exports": [
235
- {
236
- "kind": "js",
237
- "name": "Tab",
238
- "declaration": {
239
- "name": "Tab",
240
- "module": "src/Tab.js"
241
- }
242
- }
243
- ]
244
- },
245
- {
246
- "kind": "javascript-module",
247
- "path": "src/TabPanel.js",
248
- "declarations": [
249
- {
250
- "kind": "class",
251
- "description": "",
252
- "name": "TabPanel",
253
- "slots": [
254
- {
255
- "description": "content of the Tab Panel",
256
- "name": ""
257
- }
258
- ],
259
- "members": [
260
- {
261
- "kind": "field",
262
- "name": "instanceCount",
263
- "type": {
264
- "text": "number"
265
- },
266
- "static": true,
267
- "default": "0",
268
- "privacy": "private"
269
- },
270
- {
271
- "kind": "field",
272
- "name": "selected",
273
- "type": {
274
- "text": "boolean"
275
- },
276
- "privacy": "public",
277
- "default": "false",
278
- "attribute": "selected",
279
- "reflects": true
280
- },
281
- {
282
- "kind": "field",
283
- "name": "value",
284
- "type": {
285
- "text": "string"
286
- },
287
- "privacy": "public",
288
- "default": "''",
289
- "attribute": "value",
290
- "reflects": true
291
- }
292
- ],
293
- "attributes": [
294
- {
295
- "name": "selected",
296
- "type": {
297
- "text": "boolean"
298
- },
299
- "default": "false",
300
- "fieldName": "selected"
301
- },
302
- {
303
- "name": "value",
304
- "type": {
305
- "text": "string"
306
- },
307
- "default": "''",
308
- "fieldName": "value"
309
- }
310
- ],
311
- "superclass": {
312
- "name": "SpectrumElement",
313
- "package": "@spectrum-web-components/base"
314
- },
315
- "tagName": "sp-tab-panel",
316
- "customElement": true
317
- }
318
- ],
319
- "exports": [
320
- {
321
- "kind": "js",
322
- "name": "TabPanel",
323
- "declaration": {
324
- "name": "TabPanel",
325
- "module": "src/TabPanel.js"
326
- }
327
- }
328
- ]
329
- },
330
- {
331
- "kind": "javascript-module",
332
- "path": "src/Tabs.js",
333
- "declarations": [
334
- {
335
- "kind": "class",
336
- "description": "",
337
- "name": "Tabs",
338
- "cssParts": [
339
- {
340
- "description": "Container element for the slotted sp-tab elements",
341
- "name": "tablist"
342
- }
343
- ],
344
- "slots": [
345
- {
346
- "description": "Tab elements to manage as a group",
347
- "name": ""
348
- },
349
- {
350
- "description": "Tab Panel elements related to the listed Tab elements",
351
- "name": "tab-panel"
352
- }
353
- ],
354
- "members": [
355
- {
356
- "kind": "field",
357
- "name": "auto",
358
- "type": {
359
- "text": "boolean"
360
- },
361
- "privacy": "public",
362
- "default": "false",
363
- "description": "Whether to activate a tab on keyboard focus or not.\n\nBy default a tab is activated via a \"click\" interaction. This is specifically intended for when\ntab content cannot be displayed instantly, e.g. not all of the DOM content is available, etc.\nTo learn more about \"Deciding When to Make Selection Automatically Follow Focus\", visit:\nhttps://w3c.github.io/aria-practices/#kbd_selection_follows_focus",
364
- "attribute": "auto"
365
- },
366
- {
367
- "kind": "field",
368
- "name": "compact",
369
- "type": {
370
- "text": "boolean"
371
- },
372
- "privacy": "public",
373
- "default": "false",
374
- "description": "The tab items are displayed closer together.",
375
- "attribute": "compact",
376
- "reflects": true
377
- },
378
- {
379
- "kind": "field",
380
- "name": "direction",
381
- "type": {
382
- "text": "'vertical' | 'vertical-right' | 'horizontal'"
383
- },
384
- "privacy": "public",
385
- "default": "'horizontal'",
386
- "attribute": "direction",
387
- "reflects": true
388
- },
389
- {
390
- "kind": "field",
391
- "name": "emphasized",
392
- "type": {
393
- "text": "boolean"
394
- },
395
- "privacy": "public",
396
- "default": "false",
397
- "attribute": "emphasized",
398
- "reflects": true
399
- },
400
- {
401
- "kind": "field",
402
- "name": "label",
403
- "type": {
404
- "text": "string"
405
- },
406
- "privacy": "public",
407
- "default": "''",
408
- "attribute": "label"
409
- },
410
- {
411
- "kind": "field",
412
- "name": "quiet",
413
- "type": {
414
- "text": "boolean"
415
- },
416
- "privacy": "public",
417
- "default": "false",
418
- "description": "The tab list is displayed without a border.",
419
- "attribute": "quiet",
420
- "reflects": true
421
- },
422
- {
423
- "kind": "field",
424
- "name": "selectionIndicatorStyle",
425
- "privacy": "public",
426
- "default": "'transform: translateX(0px) scaleX(0) scaleY(0)'",
427
- "type": {
428
- "text": "string"
429
- }
430
- },
431
- {
432
- "kind": "field",
433
- "name": "shouldAnimate",
434
- "type": {
435
- "text": "boolean"
436
- },
437
- "privacy": "public",
438
- "default": "false"
439
- },
440
- {
441
- "kind": "field",
442
- "name": "tabList",
443
- "type": {
444
- "text": "HTMLDivElement"
445
- },
446
- "privacy": "private"
447
- },
448
- {
449
- "kind": "field",
450
- "name": "selected",
451
- "type": {
452
- "text": "string"
453
- },
454
- "privacy": "public",
455
- "attribute": "selected",
456
- "reflects": true
457
- },
458
- {
459
- "kind": "field",
460
- "name": "_selected",
461
- "type": {
462
- "text": "string"
463
- },
464
- "privacy": "private",
465
- "default": "''"
466
- },
467
- {
468
- "kind": "field",
469
- "name": "tabs",
470
- "privacy": "private",
471
- "type": {
472
- "text": "Tab[]"
473
- }
474
- },
475
- {
476
- "kind": "field",
477
- "name": "_tabs",
478
- "type": {
479
- "text": "Tab[]"
480
- },
481
- "privacy": "private",
482
- "default": "[]"
483
- },
484
- {
485
- "kind": "field",
486
- "name": "rovingTabindexController",
487
- "default": "new RovingTabindexController<Tab>(this, {\n focusInIndex: (elements) => {\n let focusInIndex = 0;\n const firstFocusableElement = elements.find((el, index) => {\n const focusInElement = this.selected\n ? !el.disabled && el.value === this.selected\n : !el.disabled;\n focusInIndex = index;\n return focusInElement;\n });\n return firstFocusableElement ? focusInIndex : -1;\n },\n direction: () =>\n this.direction === 'horizontal' ? 'horizontal' : 'vertical',\n elementEnterAction: (el) => {\n if (!this.auto) return;\n\n this.shouldAnimate = true;\n this.selectTarget(el);\n },\n elements: () => this.tabs,\n isFocusableElement: (el) => !el.disabled,\n listenerScope: () => this.tabList,\n })"
488
- },
489
- {
490
- "kind": "field",
491
- "name": "focusElement",
492
- "type": {
493
- "text": "Tab | this"
494
- },
495
- "privacy": "private"
496
- },
497
- {
498
- "kind": "method",
499
- "name": "manageAutoFocus",
500
- "privacy": "protected",
501
- "return": {
502
- "type": {
503
- "text": "void"
504
- }
505
- }
506
- },
507
- {
508
- "kind": "method",
509
- "name": "managePanels",
510
- "privacy": "protected",
511
- "return": {
512
- "type": {
513
- "text": "void"
514
- }
515
- },
516
- "parameters": [
517
- {
518
- "name": "{\n target,\n }",
519
- "type": {
520
- "text": "Event & { target: HTMLSlotElement }"
521
- }
522
- }
523
- ]
524
- },
525
- {
526
- "kind": "field",
527
- "name": "onClick",
528
- "privacy": "private"
529
- },
530
- {
531
- "kind": "field",
532
- "name": "onKeyDown",
533
- "privacy": "private"
534
- },
535
- {
536
- "kind": "method",
537
- "name": "selectTarget",
538
- "privacy": "private",
539
- "return": {
540
- "type": {
541
- "text": "void"
542
- }
543
- },
544
- "parameters": [
545
- {
546
- "name": "target",
547
- "type": {
548
- "text": "HTMLElement"
549
- }
550
- }
551
- ]
552
- },
553
- {
554
- "kind": "method",
555
- "name": "onSlotChange",
556
- "privacy": "private",
557
- "return": {
558
- "type": {
559
- "text": "void"
560
- }
561
- }
562
- },
563
- {
564
- "kind": "method",
565
- "name": "shouldUpdateCheckedState",
566
- "privacy": "private",
567
- "return": {
568
- "type": {
569
- "text": "void"
570
- }
571
- }
572
- },
573
- {
574
- "kind": "field",
575
- "name": "updateCheckedState",
576
- "privacy": "private"
577
- },
578
- {
579
- "kind": "field",
580
- "name": "updateSelectionIndicator",
581
- "privacy": "private"
582
- },
583
- {
584
- "kind": "field",
585
- "name": "tabChangePromise",
586
- "privacy": "private"
587
- },
588
- {
589
- "kind": "field",
590
- "name": "tabChangeResolver",
591
- "type": {
592
- "text": "() => void"
593
- },
594
- "privacy": "private",
595
- "default": "function () {\n return;\n }"
596
- },
597
- {
598
- "kind": "method",
599
- "name": "getUpdateComplete",
600
- "privacy": "protected",
601
- "return": {
602
- "type": {
603
- "text": "Promise<boolean>"
604
- }
605
- }
606
- }
607
- ],
608
- "events": [
609
- {
610
- "name": "change",
611
- "type": {
612
- "text": "Event"
613
- },
614
- "description": "The selected Tab child has changed."
615
- }
616
- ],
617
- "attributes": [
618
- {
619
- "name": "auto",
620
- "type": {
621
- "text": "boolean"
622
- },
623
- "default": "false",
624
- "description": "Whether to activate a tab on keyboard focus or not.\n\nBy default a tab is activated via a \"click\" interaction. This is specifically intended for when\ntab content cannot be displayed instantly, e.g. not all of the DOM content is available, etc.\nTo learn more about \"Deciding When to Make Selection Automatically Follow Focus\", visit:\nhttps://w3c.github.io/aria-practices/#kbd_selection_follows_focus",
625
- "fieldName": "auto"
626
- },
627
- {
628
- "name": "compact",
629
- "type": {
630
- "text": "boolean"
631
- },
632
- "default": "false",
633
- "description": "The tab items are displayed closer together.",
634
- "fieldName": "compact"
635
- },
636
- {
637
- "name": "direction",
638
- "type": {
639
- "text": "'vertical' | 'vertical-right' | 'horizontal'"
640
- },
641
- "default": "'horizontal'",
642
- "fieldName": "direction"
643
- },
644
- {
645
- "name": "emphasized",
646
- "type": {
647
- "text": "boolean"
648
- },
649
- "default": "false",
650
- "fieldName": "emphasized"
651
- },
652
- {
653
- "name": "label",
654
- "type": {
655
- "text": "string"
656
- },
657
- "default": "''",
658
- "fieldName": "label"
659
- },
660
- {
661
- "name": "quiet",
662
- "type": {
663
- "text": "boolean"
664
- },
665
- "default": "false",
666
- "description": "The tab list is displayed without a border.",
667
- "fieldName": "quiet"
668
- },
669
- {
670
- "name": "selected",
671
- "type": {
672
- "text": "string"
673
- },
674
- "fieldName": "selected"
675
- }
676
- ],
677
- "mixins": [
678
- {
679
- "name": "SizedMixin",
680
- "package": "@spectrum-web-components/base"
681
- }
682
- ],
683
- "superclass": {
684
- "name": "Focusable",
685
- "package": "@spectrum-web-components/shared"
686
- },
687
- "tagName": "sp-tabs",
688
- "customElement": true
689
- }
690
- ],
691
- "exports": [
692
- {
693
- "kind": "js",
694
- "name": "Tabs",
695
- "declaration": {
696
- "name": "Tabs",
697
- "module": "src/Tabs.js"
698
- }
699
- }
700
- ]
701
- }
702
- ]
703
- }