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

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,715 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "sp-tab-panel.ts",
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.ts",
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.ts",
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.ts",
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.ts"
241
+ }
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "kind": "javascript-module",
247
+ "path": "src/TabPanel.ts",
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.ts"
326
+ }
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "kind": "javascript-module",
332
+ "path": "src/Tabs.ts",
333
+ "declarations": [
334
+ {
335
+ "kind": "variable",
336
+ "name": "ScaledIndicator",
337
+ "type": {
338
+ "text": "object"
339
+ },
340
+ "default": "{\n baseSize: 100 as const,\n noSelectionStyle: 'transform: translateX(0px) scaleX(0) scaleY(0)',\n\n transformX(left: number, width: number): string {\n const scale = width / this.baseSize;\n return `transform: translateX(${left}px) scaleX(${scale});`;\n },\n\n transformY(top: number, height: number): string {\n const scale = height / this.baseSize;\n return `transform: translateY(${top}px) scaleY(${scale});`;\n },\n\n baseStyles(): CSSResult {\n return css`\n :host([direction='vertical-right']) #selection-indicator,\n :host([direction='vertical']) #selection-indicator {\n height: ${this.baseSize}px;\n }\n :host([dir][direction='horizontal']) #selection-indicator {\n width: ${this.baseSize}px;\n }\n `;\n },\n}"
341
+ },
342
+ {
343
+ "kind": "class",
344
+ "description": "",
345
+ "name": "Tabs",
346
+ "cssParts": [
347
+ {
348
+ "description": "Container element for the slotted sp-tab elements",
349
+ "name": "tablist"
350
+ }
351
+ ],
352
+ "slots": [
353
+ {
354
+ "description": "Tab elements to manage as a group",
355
+ "name": ""
356
+ },
357
+ {
358
+ "description": "Tab Panel elements related to the listed Tab elements",
359
+ "name": "tab-panel"
360
+ }
361
+ ],
362
+ "members": [
363
+ {
364
+ "kind": "field",
365
+ "name": "auto",
366
+ "type": {
367
+ "text": "boolean"
368
+ },
369
+ "privacy": "public",
370
+ "default": "false",
371
+ "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",
372
+ "attribute": "auto"
373
+ },
374
+ {
375
+ "kind": "field",
376
+ "name": "compact",
377
+ "type": {
378
+ "text": "boolean"
379
+ },
380
+ "privacy": "public",
381
+ "default": "false",
382
+ "description": "The tab items are displayed closer together.",
383
+ "attribute": "compact",
384
+ "reflects": true
385
+ },
386
+ {
387
+ "kind": "field",
388
+ "name": "direction",
389
+ "type": {
390
+ "text": "'vertical' | 'vertical-right' | 'horizontal'"
391
+ },
392
+ "privacy": "public",
393
+ "default": "'horizontal'",
394
+ "attribute": "direction",
395
+ "reflects": true
396
+ },
397
+ {
398
+ "kind": "field",
399
+ "name": "emphasized",
400
+ "type": {
401
+ "text": "boolean"
402
+ },
403
+ "privacy": "public",
404
+ "default": "false",
405
+ "attribute": "emphasized",
406
+ "reflects": true
407
+ },
408
+ {
409
+ "kind": "field",
410
+ "name": "label",
411
+ "type": {
412
+ "text": "string"
413
+ },
414
+ "privacy": "public",
415
+ "default": "''",
416
+ "attribute": "label"
417
+ },
418
+ {
419
+ "kind": "field",
420
+ "name": "quiet",
421
+ "type": {
422
+ "text": "boolean"
423
+ },
424
+ "privacy": "public",
425
+ "default": "false",
426
+ "description": "The tab list is displayed without a border.",
427
+ "attribute": "quiet",
428
+ "reflects": true
429
+ },
430
+ {
431
+ "kind": "field",
432
+ "name": "selectionIndicatorStyle",
433
+ "privacy": "public"
434
+ },
435
+ {
436
+ "kind": "field",
437
+ "name": "shouldAnimate",
438
+ "type": {
439
+ "text": "boolean"
440
+ },
441
+ "privacy": "public",
442
+ "default": "false"
443
+ },
444
+ {
445
+ "kind": "field",
446
+ "name": "tabList",
447
+ "type": {
448
+ "text": "HTMLDivElement"
449
+ },
450
+ "privacy": "private"
451
+ },
452
+ {
453
+ "kind": "field",
454
+ "name": "selected",
455
+ "type": {
456
+ "text": "string"
457
+ },
458
+ "privacy": "public",
459
+ "attribute": "selected",
460
+ "reflects": true
461
+ },
462
+ {
463
+ "kind": "field",
464
+ "name": "_selected",
465
+ "type": {
466
+ "text": "string"
467
+ },
468
+ "privacy": "private",
469
+ "default": "''"
470
+ },
471
+ {
472
+ "kind": "field",
473
+ "name": "tabs",
474
+ "privacy": "private",
475
+ "type": {
476
+ "text": "Tab[]"
477
+ }
478
+ },
479
+ {
480
+ "kind": "field",
481
+ "name": "_tabs",
482
+ "type": {
483
+ "text": "Tab[]"
484
+ },
485
+ "privacy": "private",
486
+ "default": "[]"
487
+ },
488
+ {
489
+ "kind": "field",
490
+ "name": "rovingTabindexController",
491
+ "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 })"
492
+ },
493
+ {
494
+ "kind": "field",
495
+ "name": "focusElement",
496
+ "type": {
497
+ "text": "Tab | this"
498
+ },
499
+ "privacy": "private"
500
+ },
501
+ {
502
+ "kind": "method",
503
+ "name": "manageAutoFocus",
504
+ "privacy": "protected",
505
+ "return": {
506
+ "type": {
507
+ "text": "void"
508
+ }
509
+ }
510
+ },
511
+ {
512
+ "kind": "method",
513
+ "name": "managePanels",
514
+ "privacy": "protected",
515
+ "return": {
516
+ "type": {
517
+ "text": "void"
518
+ }
519
+ },
520
+ "parameters": [
521
+ {
522
+ "name": "{\n target,\n }",
523
+ "type": {
524
+ "text": "Event & { target: HTMLSlotElement }"
525
+ }
526
+ }
527
+ ]
528
+ },
529
+ {
530
+ "kind": "field",
531
+ "name": "onClick",
532
+ "privacy": "private"
533
+ },
534
+ {
535
+ "kind": "field",
536
+ "name": "onKeyDown",
537
+ "privacy": "private"
538
+ },
539
+ {
540
+ "kind": "method",
541
+ "name": "selectTarget",
542
+ "privacy": "private",
543
+ "return": {
544
+ "type": {
545
+ "text": "void"
546
+ }
547
+ },
548
+ "parameters": [
549
+ {
550
+ "name": "target",
551
+ "type": {
552
+ "text": "HTMLElement"
553
+ }
554
+ }
555
+ ]
556
+ },
557
+ {
558
+ "kind": "method",
559
+ "name": "onSlotChange",
560
+ "privacy": "private",
561
+ "return": {
562
+ "type": {
563
+ "text": "void"
564
+ }
565
+ }
566
+ },
567
+ {
568
+ "kind": "method",
569
+ "name": "shouldUpdateCheckedState",
570
+ "privacy": "private",
571
+ "return": {
572
+ "type": {
573
+ "text": "void"
574
+ }
575
+ }
576
+ },
577
+ {
578
+ "kind": "field",
579
+ "name": "updateCheckedState",
580
+ "privacy": "private"
581
+ },
582
+ {
583
+ "kind": "field",
584
+ "name": "updateSelectionIndicator",
585
+ "privacy": "private"
586
+ },
587
+ {
588
+ "kind": "field",
589
+ "name": "tabChangePromise",
590
+ "privacy": "private"
591
+ },
592
+ {
593
+ "kind": "field",
594
+ "name": "tabChangeResolver",
595
+ "type": {
596
+ "text": "() => void"
597
+ },
598
+ "privacy": "private",
599
+ "default": "function () {\n return;\n }"
600
+ },
601
+ {
602
+ "kind": "method",
603
+ "name": "getUpdateComplete",
604
+ "privacy": "protected",
605
+ "return": {
606
+ "type": {
607
+ "text": "Promise<boolean>"
608
+ }
609
+ }
610
+ }
611
+ ],
612
+ "events": [
613
+ {
614
+ "name": "change",
615
+ "type": {
616
+ "text": "Event"
617
+ },
618
+ "description": "The selected Tab child has changed."
619
+ }
620
+ ],
621
+ "attributes": [
622
+ {
623
+ "name": "auto",
624
+ "type": {
625
+ "text": "boolean"
626
+ },
627
+ "default": "false",
628
+ "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",
629
+ "fieldName": "auto"
630
+ },
631
+ {
632
+ "name": "compact",
633
+ "type": {
634
+ "text": "boolean"
635
+ },
636
+ "default": "false",
637
+ "description": "The tab items are displayed closer together.",
638
+ "fieldName": "compact"
639
+ },
640
+ {
641
+ "name": "direction",
642
+ "type": {
643
+ "text": "'vertical' | 'vertical-right' | 'horizontal'"
644
+ },
645
+ "default": "'horizontal'",
646
+ "fieldName": "direction"
647
+ },
648
+ {
649
+ "name": "emphasized",
650
+ "type": {
651
+ "text": "boolean"
652
+ },
653
+ "default": "false",
654
+ "fieldName": "emphasized"
655
+ },
656
+ {
657
+ "name": "label",
658
+ "type": {
659
+ "text": "string"
660
+ },
661
+ "default": "''",
662
+ "fieldName": "label"
663
+ },
664
+ {
665
+ "name": "quiet",
666
+ "type": {
667
+ "text": "boolean"
668
+ },
669
+ "default": "false",
670
+ "description": "The tab list is displayed without a border.",
671
+ "fieldName": "quiet"
672
+ },
673
+ {
674
+ "name": "selected",
675
+ "type": {
676
+ "text": "string"
677
+ },
678
+ "fieldName": "selected"
679
+ }
680
+ ],
681
+ "mixins": [
682
+ {
683
+ "name": "SizedMixin",
684
+ "package": "@spectrum-web-components/base"
685
+ }
686
+ ],
687
+ "superclass": {
688
+ "name": "Focusable",
689
+ "package": "@spectrum-web-components/shared"
690
+ },
691
+ "tagName": "sp-tabs",
692
+ "customElement": true
693
+ }
694
+ ],
695
+ "exports": [
696
+ {
697
+ "kind": "js",
698
+ "name": "ScaledIndicator",
699
+ "declaration": {
700
+ "name": "ScaledIndicator",
701
+ "module": "src/Tabs.ts"
702
+ }
703
+ },
704
+ {
705
+ "kind": "js",
706
+ "name": "Tabs",
707
+ "declaration": {
708
+ "name": "Tabs",
709
+ "module": "src/Tabs.ts"
710
+ }
711
+ }
712
+ ]
713
+ }
714
+ ]
715
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spectrum-web-components/tabs",
3
- "version": "0.10.7-react.48+e4fada004",
3
+ "version": "0.10.7-react.49+7959cb8d1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -76,9 +76,9 @@
76
76
  ],
77
77
  "dependencies": {
78
78
  "@lit-labs/observers": "^1.0.1",
79
- "@spectrum-web-components/base": "^0.7.5-react.48+e4fada004",
80
- "@spectrum-web-components/reactive-controllers": "^0.3.6-react.78+e4fada004",
81
- "@spectrum-web-components/shared": "^0.15.6-react.48+e4fada004"
79
+ "@spectrum-web-components/base": "^0.7.5-react.49+7959cb8d1",
80
+ "@spectrum-web-components/reactive-controllers": "^0.3.6-react.79+7959cb8d1",
81
+ "@spectrum-web-components/shared": "^0.15.6-react.49+7959cb8d1"
82
82
  },
83
83
  "devDependencies": {
84
84
  "@spectrum-css/tabs": "^3.2.24"
@@ -89,5 +89,5 @@
89
89
  "./sp-*.js",
90
90
  "./**/*.dev.js"
91
91
  ],
92
- "gitHead": "e4fada0040dcaf1e1267f2159f366ec708cb2d09"
92
+ "gitHead": "7959cb8d1df072fc473ec1687b2a7328550b96f7"
93
93
  }