@m3e/tabs 1.0.0-rc.1

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,725 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "*",
13
+ "declaration": {
14
+ "name": "*",
15
+ "package": "\"./TabElement\""
16
+ }
17
+ },
18
+ {
19
+ "kind": "js",
20
+ "name": "*",
21
+ "declaration": {
22
+ "name": "*",
23
+ "package": "\"./TabHeaderPosition\""
24
+ }
25
+ },
26
+ {
27
+ "kind": "js",
28
+ "name": "*",
29
+ "declaration": {
30
+ "name": "*",
31
+ "package": "\"./TabPanelElement\""
32
+ }
33
+ },
34
+ {
35
+ "kind": "js",
36
+ "name": "*",
37
+ "declaration": {
38
+ "name": "*",
39
+ "package": "\"./TabVariant\""
40
+ }
41
+ },
42
+ {
43
+ "kind": "js",
44
+ "name": "*",
45
+ "declaration": {
46
+ "name": "*",
47
+ "package": "\"./TabsElement\""
48
+ }
49
+ }
50
+ ]
51
+ },
52
+ {
53
+ "kind": "javascript-module",
54
+ "path": "src/TabElement.ts",
55
+ "declarations": [
56
+ {
57
+ "kind": "class",
58
+ "description": "",
59
+ "name": "M3eTabElement",
60
+ "cssProperties": [
61
+ {
62
+ "description": "Font size for tab label.",
63
+ "name": "--m3e-tab-font-size"
64
+ },
65
+ {
66
+ "description": "Font weight for tab label.",
67
+ "name": "--m3e-tab-font-weight"
68
+ },
69
+ {
70
+ "description": "Line height for tab label.",
71
+ "name": "--m3e-tab-line-height"
72
+ },
73
+ {
74
+ "description": "Letter spacing for tab label.",
75
+ "name": "--m3e-tab-tracking"
76
+ },
77
+ {
78
+ "description": "Padding on the inline start of the tab.",
79
+ "name": "--m3e-tab-padding-start"
80
+ },
81
+ {
82
+ "description": "Padding on the inline end of the tab.",
83
+ "name": "--m3e-tab-padding-end"
84
+ },
85
+ {
86
+ "description": "Border radius for the focus ring.",
87
+ "name": "--m3e-tab-focus-ring-shape"
88
+ },
89
+ {
90
+ "description": "Text color for selected tab.",
91
+ "name": "--m3e-tab-selected-color"
92
+ },
93
+ {
94
+ "description": "Hover state-layer color for selected tab.",
95
+ "name": "--m3e-tab-selected-container-hover-color"
96
+ },
97
+ {
98
+ "description": "Focus state-layer color for selected tab.",
99
+ "name": "--m3e-tab-selected-container-focus-color"
100
+ },
101
+ {
102
+ "description": "Ripple color for selected tab.",
103
+ "name": "--m3e-tab-selected-ripple-color"
104
+ },
105
+ {
106
+ "description": "Text color for unselected tab.",
107
+ "name": "--m3e-tab-unselected-color"
108
+ },
109
+ {
110
+ "description": "Hover state-layer color for unselected tab.",
111
+ "name": "--m3e-tab-unselected-container-hover-color"
112
+ },
113
+ {
114
+ "description": "Focus state-layer color for unselected tab.",
115
+ "name": "--m3e-tab-unselected-container-focus-color"
116
+ },
117
+ {
118
+ "description": "Ripple color for unselected tab.",
119
+ "name": "--m3e-tab-unselected-ripple-color"
120
+ },
121
+ {
122
+ "description": "Text color for disabled tab.",
123
+ "name": "--m3e-tab-disabled-color"
124
+ },
125
+ {
126
+ "description": "Text opacity for disabled tab.",
127
+ "name": "--m3e-tab-disabled-opacity"
128
+ },
129
+ {
130
+ "description": "Column gap between icon and label.",
131
+ "name": "--m3e-tab-spacing"
132
+ },
133
+ {
134
+ "description": "Font size for slotted icon.",
135
+ "name": "--m3e-tab-icon-size"
136
+ }
137
+ ],
138
+ "slots": [
139
+ {
140
+ "description": "Renders the label of the tab.",
141
+ "name": ""
142
+ },
143
+ {
144
+ "description": "Renders an icon before the tab's label.",
145
+ "name": "icon"
146
+ }
147
+ ],
148
+ "members": [
149
+ {
150
+ "kind": "field",
151
+ "name": "__nextId",
152
+ "type": {
153
+ "text": "number"
154
+ },
155
+ "privacy": "private",
156
+ "static": true,
157
+ "default": "0"
158
+ },
159
+ {
160
+ "kind": "field",
161
+ "name": "_focusRing",
162
+ "type": {
163
+ "text": "M3eFocusRingElement | undefined"
164
+ },
165
+ "privacy": "private",
166
+ "readonly": true
167
+ },
168
+ {
169
+ "kind": "field",
170
+ "name": "_stateLayer",
171
+ "type": {
172
+ "text": "M3eStateLayerElement | undefined"
173
+ },
174
+ "privacy": "private",
175
+ "readonly": true
176
+ },
177
+ {
178
+ "kind": "field",
179
+ "name": "_ripple",
180
+ "type": {
181
+ "text": "M3eRippleElement | undefined"
182
+ },
183
+ "privacy": "private",
184
+ "readonly": true
185
+ },
186
+ {
187
+ "kind": "field",
188
+ "name": "#clickHandler",
189
+ "privacy": "private",
190
+ "readonly": true
191
+ },
192
+ {
193
+ "kind": "method",
194
+ "name": "attach",
195
+ "return": {
196
+ "type": {
197
+ "text": "void"
198
+ }
199
+ },
200
+ "parameters": [
201
+ {
202
+ "name": "control",
203
+ "type": {
204
+ "text": "HTMLElement"
205
+ }
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ "kind": "method",
211
+ "name": "detach",
212
+ "return": {
213
+ "type": {
214
+ "text": "void"
215
+ }
216
+ }
217
+ },
218
+ {
219
+ "kind": "method",
220
+ "name": "#handleClick",
221
+ "privacy": "private",
222
+ "return": {
223
+ "type": {
224
+ "text": "void"
225
+ }
226
+ },
227
+ "parameters": [
228
+ {
229
+ "name": "e",
230
+ "type": {
231
+ "text": "Event"
232
+ }
233
+ }
234
+ ]
235
+ }
236
+ ],
237
+ "events": [
238
+ {
239
+ "name": "input",
240
+ "type": {
241
+ "text": "Event"
242
+ }
243
+ },
244
+ {
245
+ "name": "change",
246
+ "type": {
247
+ "text": "Event"
248
+ }
249
+ }
250
+ ],
251
+ "attributes": [
252
+ {
253
+ "description": "Whether the element is disabled.",
254
+ "name": "disabled"
255
+ },
256
+ {
257
+ "description": "The query selector used to specify the element related to this element.",
258
+ "name": "for"
259
+ },
260
+ {
261
+ "description": "Whether the element is selected.",
262
+ "name": "selected"
263
+ }
264
+ ],
265
+ "mixins": [
266
+ {
267
+ "name": "Selected",
268
+ "package": "@m3e/core"
269
+ },
270
+ {
271
+ "name": "HtmlFor",
272
+ "package": "@m3e/core"
273
+ },
274
+ {
275
+ "name": "KeyboardClick",
276
+ "package": "@m3e/core"
277
+ },
278
+ {
279
+ "name": "Focusable",
280
+ "package": "@m3e/core"
281
+ },
282
+ {
283
+ "name": "Disabled",
284
+ "package": "@m3e/core"
285
+ },
286
+ {
287
+ "name": "AttachInternals",
288
+ "package": "@m3e/core"
289
+ },
290
+ {
291
+ "name": "Role",
292
+ "package": "@m3e/core"
293
+ }
294
+ ],
295
+ "superclass": {
296
+ "name": "LitElement",
297
+ "package": "lit"
298
+ },
299
+ "tagName": "m3e-tab",
300
+ "customElement": true,
301
+ "summary": "An interactive element that, when activated, presents an associated tab panel."
302
+ }
303
+ ],
304
+ "exports": [
305
+ {
306
+ "kind": "js",
307
+ "name": "M3eTabElement",
308
+ "declaration": {
309
+ "name": "M3eTabElement",
310
+ "module": "src/TabElement.ts"
311
+ }
312
+ },
313
+ {
314
+ "kind": "custom-element-definition",
315
+ "name": "m3e-tab",
316
+ "declaration": {
317
+ "name": "M3eTabElement",
318
+ "module": "src/TabElement.ts"
319
+ }
320
+ }
321
+ ]
322
+ },
323
+ {
324
+ "kind": "javascript-module",
325
+ "path": "src/TabHeaderPosition.ts",
326
+ "declarations": [],
327
+ "exports": []
328
+ },
329
+ {
330
+ "kind": "javascript-module",
331
+ "path": "src/TabPanelElement.ts",
332
+ "declarations": [
333
+ {
334
+ "kind": "class",
335
+ "description": "",
336
+ "name": "M3eTabPanelElement",
337
+ "slots": [
338
+ {
339
+ "description": "Renders the content of the panel.",
340
+ "name": ""
341
+ }
342
+ ],
343
+ "members": [],
344
+ "mixins": [
345
+ {
346
+ "name": "Role",
347
+ "package": "@m3e/core"
348
+ }
349
+ ],
350
+ "superclass": {
351
+ "name": "LitElement",
352
+ "package": "lit"
353
+ },
354
+ "tagName": "m3e-tab-panel",
355
+ "customElement": true,
356
+ "summary": "A panel presented for a tab."
357
+ }
358
+ ],
359
+ "exports": [
360
+ {
361
+ "kind": "js",
362
+ "name": "M3eTabPanelElement",
363
+ "declaration": {
364
+ "name": "M3eTabPanelElement",
365
+ "module": "src/TabPanelElement.ts"
366
+ }
367
+ },
368
+ {
369
+ "kind": "custom-element-definition",
370
+ "name": "m3e-tab-panel",
371
+ "declaration": {
372
+ "name": "M3eTabPanelElement",
373
+ "module": "src/TabPanelElement.ts"
374
+ }
375
+ }
376
+ ]
377
+ },
378
+ {
379
+ "kind": "javascript-module",
380
+ "path": "src/TabsElement.ts",
381
+ "declarations": [
382
+ {
383
+ "kind": "class",
384
+ "description": "",
385
+ "name": "M3eTabsElement",
386
+ "cssProperties": [
387
+ {
388
+ "description": "Overrides the icon size for paginator buttons.",
389
+ "name": "--m3e-tabs-paginator-button-icon-size"
390
+ },
391
+ {
392
+ "description": "Color of the active tab indicator.",
393
+ "name": "--m3e-tabs-active-indicator-color"
394
+ },
395
+ {
396
+ "description": "Border radius for active indicator when header is before and variant is primary.",
397
+ "name": "--m3e-tabs-primary-before-active-indicator-shape"
398
+ },
399
+ {
400
+ "description": "Border radius for active indicator when header is after and variant is primary.",
401
+ "name": "--m3e-tabs-primary-after-active-indicator-shape"
402
+ },
403
+ {
404
+ "description": "Inset for primary variant's active indicator.",
405
+ "name": "--m3e-tabs-primary-active-indicator-inset"
406
+ },
407
+ {
408
+ "description": "Thickness for primary variant's active indicator.",
409
+ "name": "--m3e-tabs-primary-active-indicator-thickness"
410
+ },
411
+ {
412
+ "description": "Thickness for secondary variant's active indicator.",
413
+ "name": "--m3e-tabs-secondary-active-indicator-thickness"
414
+ }
415
+ ],
416
+ "slots": [
417
+ {
418
+ "description": "Renders the tabs.",
419
+ "name": ""
420
+ },
421
+ {
422
+ "description": "Renders the panels of the tabs.",
423
+ "name": "panel"
424
+ },
425
+ {
426
+ "description": "Renders the icon to present for the next button used to paginate.",
427
+ "name": "next-icon"
428
+ },
429
+ {
430
+ "description": "Renders the icon to present for the previous button used to paginate.",
431
+ "name": "prev-icon"
432
+ }
433
+ ],
434
+ "members": [
435
+ {
436
+ "kind": "field",
437
+ "name": "_tablist",
438
+ "type": {
439
+ "text": "HTMLElement"
440
+ },
441
+ "privacy": "private",
442
+ "readonly": true
443
+ },
444
+ {
445
+ "kind": "field",
446
+ "name": "_selectedIndex",
447
+ "type": {
448
+ "text": "number | null"
449
+ },
450
+ "default": "null",
451
+ "privacy": "private"
452
+ },
453
+ {
454
+ "kind": "field",
455
+ "name": "disablePagination",
456
+ "type": {
457
+ "text": "boolean"
458
+ },
459
+ "default": "false",
460
+ "description": "Whether scroll buttons are disabled.",
461
+ "attribute": "disable-pagination"
462
+ },
463
+ {
464
+ "kind": "field",
465
+ "name": "headerPosition",
466
+ "type": {
467
+ "text": "TabHeaderPosition"
468
+ },
469
+ "default": "\"before\"",
470
+ "description": "The position of the tab headers.",
471
+ "attribute": "header-position",
472
+ "reflects": true
473
+ },
474
+ {
475
+ "kind": "field",
476
+ "name": "variant",
477
+ "type": {
478
+ "text": "TabVariant"
479
+ },
480
+ "default": "\"secondary\"",
481
+ "description": "The appearance variant of the tabs.",
482
+ "attribute": "variant",
483
+ "reflects": true
484
+ },
485
+ {
486
+ "kind": "field",
487
+ "name": "stretch",
488
+ "type": {
489
+ "text": "boolean"
490
+ },
491
+ "default": "false",
492
+ "description": "Whether tabs are stretched to fill the header.",
493
+ "attribute": "stretch",
494
+ "reflects": true
495
+ },
496
+ {
497
+ "kind": "field",
498
+ "name": "previousPageLabel",
499
+ "type": {
500
+ "text": "string"
501
+ },
502
+ "default": "\"Previous page\"",
503
+ "description": "The accessible label given to the button used to move to the previous page.",
504
+ "attribute": "previous-page-label"
505
+ },
506
+ {
507
+ "kind": "field",
508
+ "name": "nextPageLabel",
509
+ "type": {
510
+ "text": "string"
511
+ },
512
+ "default": "\"Next page\"",
513
+ "description": "The accessible label given to the button used to move to the next page.",
514
+ "attribute": "next-page-label"
515
+ },
516
+ {
517
+ "kind": "field",
518
+ "name": "tabs",
519
+ "type": {
520
+ "text": "readonly M3eTabElement[]"
521
+ },
522
+ "description": "The tabs.",
523
+ "readonly": true
524
+ },
525
+ {
526
+ "kind": "field",
527
+ "name": "selectedTab",
528
+ "type": {
529
+ "text": "M3eTabElement | null"
530
+ },
531
+ "description": "The selected tab.",
532
+ "readonly": true
533
+ },
534
+ {
535
+ "kind": "field",
536
+ "name": "selectedIndex",
537
+ "type": {
538
+ "text": "number"
539
+ },
540
+ "description": "The zero-based index of the selected tab."
541
+ },
542
+ {
543
+ "kind": "method",
544
+ "name": "#renderHeader",
545
+ "privacy": "private",
546
+ "return": {
547
+ "type": {
548
+ "text": "unknown"
549
+ }
550
+ }
551
+ },
552
+ {
553
+ "kind": "method",
554
+ "name": "#handleSlotChange",
555
+ "privacy": "private",
556
+ "return": {
557
+ "type": {
558
+ "text": "void"
559
+ }
560
+ }
561
+ },
562
+ {
563
+ "kind": "method",
564
+ "name": "#handleKeyDown",
565
+ "privacy": "private",
566
+ "return": {
567
+ "type": {
568
+ "text": "void"
569
+ }
570
+ },
571
+ "parameters": [
572
+ {
573
+ "name": "e",
574
+ "type": {
575
+ "text": "KeyboardEvent"
576
+ }
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "kind": "method",
582
+ "name": "#handleChange",
583
+ "privacy": "private",
584
+ "return": {
585
+ "type": {
586
+ "text": "void"
587
+ }
588
+ },
589
+ "parameters": [
590
+ {
591
+ "name": "e",
592
+ "type": {
593
+ "text": "Event"
594
+ }
595
+ }
596
+ ]
597
+ },
598
+ {
599
+ "kind": "method",
600
+ "name": "#handleSelectedChange",
601
+ "privacy": "private",
602
+ "return": {
603
+ "type": {
604
+ "text": "void"
605
+ }
606
+ }
607
+ },
608
+ {
609
+ "kind": "method",
610
+ "name": "#updateInkBar",
611
+ "privacy": "private",
612
+ "return": {
613
+ "type": {
614
+ "text": "void"
615
+ }
616
+ }
617
+ }
618
+ ],
619
+ "events": [
620
+ {
621
+ "name": "change",
622
+ "type": {
623
+ "text": "Event"
624
+ },
625
+ "description": "Emitted when the selected tab changes."
626
+ }
627
+ ],
628
+ "attributes": [
629
+ {
630
+ "description": "Whether scroll buttons are disabled.",
631
+ "name": "disable-pagination",
632
+ "type": {
633
+ "text": "boolean"
634
+ },
635
+ "default": "false",
636
+ "fieldName": "disablePagination"
637
+ },
638
+ {
639
+ "description": "The position of the tab headers.",
640
+ "name": "header-position",
641
+ "type": {
642
+ "text": "TabHeaderPosition"
643
+ },
644
+ "default": "\"before\"",
645
+ "fieldName": "headerPosition"
646
+ },
647
+ {
648
+ "description": "The accessible label given to the button used to move to the next page.",
649
+ "name": "next-page-label",
650
+ "type": {
651
+ "text": "string"
652
+ },
653
+ "default": "\"Next page\"",
654
+ "fieldName": "nextPageLabel"
655
+ },
656
+ {
657
+ "description": "The accessible label given to the button used to move to the previous page.",
658
+ "name": "previous-page-label",
659
+ "type": {
660
+ "text": "string"
661
+ },
662
+ "default": "\"Previous page\"",
663
+ "fieldName": "previousPageLabel"
664
+ },
665
+ {
666
+ "description": "Whether tabs are stretched to fill the header.",
667
+ "name": "stretch",
668
+ "type": {
669
+ "text": "boolean"
670
+ },
671
+ "default": "false",
672
+ "fieldName": "stretch"
673
+ },
674
+ {
675
+ "description": "The appearance variant of the tabs.",
676
+ "name": "variant",
677
+ "type": {
678
+ "text": "TabVariant"
679
+ },
680
+ "default": "\"secondary\"",
681
+ "fieldName": "variant"
682
+ }
683
+ ],
684
+ "mixins": [
685
+ {
686
+ "name": "AttachInternals",
687
+ "package": "@m3e/core"
688
+ }
689
+ ],
690
+ "superclass": {
691
+ "name": "LitElement",
692
+ "package": "lit"
693
+ },
694
+ "tagName": "m3e-tabs",
695
+ "customElement": true,
696
+ "summary": "Organizes content into separate views where only one view can be visible at a time."
697
+ }
698
+ ],
699
+ "exports": [
700
+ {
701
+ "kind": "js",
702
+ "name": "M3eTabsElement",
703
+ "declaration": {
704
+ "name": "M3eTabsElement",
705
+ "module": "src/TabsElement.ts"
706
+ }
707
+ },
708
+ {
709
+ "kind": "custom-element-definition",
710
+ "name": "m3e-tabs",
711
+ "declaration": {
712
+ "name": "M3eTabsElement",
713
+ "module": "src/TabsElement.ts"
714
+ }
715
+ }
716
+ ]
717
+ },
718
+ {
719
+ "kind": "javascript-module",
720
+ "path": "src/TabVariant.ts",
721
+ "declarations": [],
722
+ "exports": []
723
+ }
724
+ ]
725
+ }