@primitiv-ui/web 0.1.55 → 0.1.57
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.
- package/README.md +70 -3
- package/dist/cdn/chunks/chunk-P2K4DPA4.js +1 -0
- package/dist/cdn/dropdown.js +1 -0
- package/dist/cdn/popover.js +1 -1
- package/dist/cdn/tooltip.js +1 -0
- package/dist/custom-elements.json +1647 -381
- package/dist/define/dropdown.d.ts +1 -0
- package/dist/define/dropdown.js +12 -0
- package/dist/define/index.d.ts +2 -0
- package/dist/define/index.js +2 -0
- package/dist/define/tooltip.d.ts +1 -0
- package/dist/define/tooltip.js +11 -0
- package/dist/dropdown/DropdownController.d.ts +63 -0
- package/dist/dropdown/DropdownController.js +130 -0
- package/dist/dropdown/DropdownSubController.d.ts +34 -0
- package/dist/dropdown/DropdownSubController.js +78 -0
- package/dist/dropdown/elements.d.ts +174 -0
- package/dist/dropdown/elements.js +501 -0
- package/dist/dropdown/index.d.ts +3 -0
- package/dist/dropdown/index.js +3 -0
- package/dist/frameworks/events.d.ts +22 -0
- package/dist/frameworks/react.d.ts +62 -2
- package/dist/frameworks/svelte.d.ts +59 -1
- package/dist/frameworks/vue.d.ts +64 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/popover/PopoverController.d.ts +6 -0
- package/dist/popover/PopoverController.js +41 -1
- package/dist/primitiv-web.js +1 -1
- package/dist/tags.d.ts +21 -0
- package/dist/tooltip/TooltipController.d.ts +74 -0
- package/dist/tooltip/TooltipController.js +149 -0
- package/dist/tooltip/TooltipGroup.d.ts +23 -0
- package/dist/tooltip/TooltipGroup.js +44 -0
- package/dist/tooltip/elements.d.ts +83 -0
- package/dist/tooltip/elements.js +223 -0
- package/dist/tooltip/index.d.ts +3 -0
- package/dist/tooltip/index.js +3 -0
- package/package.json +18 -2
|
@@ -518,50 +518,41 @@
|
|
|
518
518
|
},
|
|
519
519
|
{
|
|
520
520
|
"kind": "javascript-module",
|
|
521
|
-
"path": "src/
|
|
521
|
+
"path": "src/dropdown/elements.ts",
|
|
522
522
|
"declarations": [
|
|
523
523
|
{
|
|
524
524
|
"kind": "class",
|
|
525
|
-
"description": "`<primitiv-
|
|
526
|
-
"name": "
|
|
525
|
+
"description": "`<primitiv-dropdown>` — the state owner of a dropdown menu (WAI-ARIA APG\nMenu Button): a trigger that opens a menu of items. The menu is a\n`popover=\"auto\"` in the top layer, shown with the trigger as its source,\nwhich makes the trigger its implicit anchor for CSS anchor positioning.\nChoosing an item — any item, a submenu's too — closes the menu and hands\nfocus back to the trigger.\n\nThe root finds its own parts and reconciles their ARIA from its reflected\nstate whenever a part arrives, leaves, or changes an attribute the root\nreads (the lifecycle is `PrimitivRootElement`'s).",
|
|
526
|
+
"name": "PrimitivDropdownElement",
|
|
527
527
|
"members": [
|
|
528
528
|
{
|
|
529
529
|
"kind": "field",
|
|
530
|
-
"name": "#
|
|
530
|
+
"name": "#content",
|
|
531
531
|
"privacy": "private",
|
|
532
532
|
"type": {
|
|
533
|
-
"text": "
|
|
533
|
+
"text": "HTMLElement | null"
|
|
534
534
|
},
|
|
535
535
|
"default": "null",
|
|
536
|
-
"description": "The
|
|
536
|
+
"description": "The menu the root currently decorates, and the controller over it."
|
|
537
537
|
},
|
|
538
538
|
{
|
|
539
539
|
"kind": "field",
|
|
540
|
-
"name": "#
|
|
540
|
+
"name": "#menu",
|
|
541
541
|
"privacy": "private",
|
|
542
542
|
"type": {
|
|
543
|
-
"text": "
|
|
543
|
+
"text": "DropdownController | null"
|
|
544
544
|
},
|
|
545
545
|
"default": "null"
|
|
546
546
|
},
|
|
547
547
|
{
|
|
548
548
|
"kind": "field",
|
|
549
|
-
"name": "#
|
|
550
|
-
"privacy": "private",
|
|
551
|
-
"type": {
|
|
552
|
-
"text": "HTMLElement[]"
|
|
553
|
-
},
|
|
554
|
-
"default": "[]",
|
|
555
|
-
"description": "The decorated trigger and close buttons, as of the last reconcile."
|
|
556
|
-
},
|
|
557
|
-
{
|
|
558
|
-
"kind": "field",
|
|
559
|
-
"name": "#closers",
|
|
549
|
+
"name": "#trigger",
|
|
560
550
|
"privacy": "private",
|
|
561
551
|
"type": {
|
|
562
|
-
"text": "HTMLElement
|
|
552
|
+
"text": "HTMLElement | null"
|
|
563
553
|
},
|
|
564
|
-
"default": "
|
|
554
|
+
"default": "null",
|
|
555
|
+
"description": "The decorated trigger, as of the last reconcile."
|
|
565
556
|
},
|
|
566
557
|
{
|
|
567
558
|
"kind": "field",
|
|
@@ -571,7 +562,7 @@
|
|
|
571
562
|
"text": "AbortController | null"
|
|
572
563
|
},
|
|
573
564
|
"default": "null",
|
|
574
|
-
"description": "The root's own
|
|
565
|
+
"description": "The root's own listeners, while connected."
|
|
575
566
|
},
|
|
576
567
|
{
|
|
577
568
|
"kind": "field",
|
|
@@ -591,7 +582,7 @@
|
|
|
591
582
|
},
|
|
592
583
|
"privacy": "protected",
|
|
593
584
|
"readonly": true,
|
|
594
|
-
"default": "[\"open\"]"
|
|
585
|
+
"default": "[\"open\", \"disabled\", \"checked\", \"value\"]"
|
|
595
586
|
},
|
|
596
587
|
{
|
|
597
588
|
"kind": "field",
|
|
@@ -599,7 +590,7 @@
|
|
|
599
590
|
"type": {
|
|
600
591
|
"text": "boolean"
|
|
601
592
|
},
|
|
602
|
-
"description": "Whether the
|
|
593
|
+
"description": "Whether the menu is open, reflected as the boolean `open` attribute."
|
|
603
594
|
},
|
|
604
595
|
{
|
|
605
596
|
"kind": "method",
|
|
@@ -607,7 +598,7 @@
|
|
|
607
598
|
"privacy": "private",
|
|
608
599
|
"return": {
|
|
609
600
|
"type": {
|
|
610
|
-
"text": "
|
|
601
|
+
"text": "DropdownControllerHost"
|
|
611
602
|
}
|
|
612
603
|
},
|
|
613
604
|
"description": "The controller's view of this element: state lives in the reflected attribute."
|
|
@@ -653,25 +644,26 @@
|
|
|
653
644
|
},
|
|
654
645
|
{
|
|
655
646
|
"kind": "method",
|
|
656
|
-
"name": "#
|
|
647
|
+
"name": "#itemOf",
|
|
657
648
|
"privacy": "private",
|
|
658
649
|
"return": {
|
|
659
650
|
"type": {
|
|
660
|
-
"text": "
|
|
651
|
+
"text": "HTMLElement | null"
|
|
661
652
|
}
|
|
662
653
|
},
|
|
663
654
|
"parameters": [
|
|
664
655
|
{
|
|
665
|
-
"name": "
|
|
656
|
+
"name": "target",
|
|
666
657
|
"type": {
|
|
667
|
-
"text": "
|
|
658
|
+
"text": "EventTarget | null"
|
|
668
659
|
}
|
|
669
660
|
}
|
|
670
|
-
]
|
|
661
|
+
],
|
|
662
|
+
"description": "The item part (of this root) an event landed in, or `null`."
|
|
671
663
|
},
|
|
672
664
|
{
|
|
673
665
|
"kind": "method",
|
|
674
|
-
"name": "#
|
|
666
|
+
"name": "#highlight",
|
|
675
667
|
"privacy": "private",
|
|
676
668
|
"return": {
|
|
677
669
|
"type": {
|
|
@@ -680,42 +672,66 @@
|
|
|
680
672
|
},
|
|
681
673
|
"parameters": [
|
|
682
674
|
{
|
|
683
|
-
"name": "
|
|
675
|
+
"name": "event",
|
|
684
676
|
"type": {
|
|
685
|
-
"text": "
|
|
677
|
+
"text": "PointerEvent"
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"name": "over",
|
|
682
|
+
"type": {
|
|
683
|
+
"text": "boolean"
|
|
686
684
|
}
|
|
687
685
|
}
|
|
688
686
|
],
|
|
689
|
-
"description": "
|
|
687
|
+
"description": "Mark the item the pointer is over, as React's `data-highlighted`."
|
|
690
688
|
},
|
|
691
689
|
{
|
|
692
690
|
"kind": "method",
|
|
693
|
-
"name": "
|
|
694
|
-
"privacy": "
|
|
691
|
+
"name": "#click",
|
|
692
|
+
"privacy": "private",
|
|
695
693
|
"return": {
|
|
696
694
|
"type": {
|
|
697
695
|
"text": "void"
|
|
698
696
|
}
|
|
699
|
-
}
|
|
697
|
+
},
|
|
698
|
+
"parameters": [
|
|
699
|
+
{
|
|
700
|
+
"name": "event",
|
|
701
|
+
"type": {
|
|
702
|
+
"text": "MouseEvent"
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
]
|
|
700
706
|
},
|
|
701
707
|
{
|
|
702
708
|
"kind": "method",
|
|
703
|
-
"name": "#
|
|
709
|
+
"name": "#use",
|
|
704
710
|
"privacy": "private",
|
|
705
711
|
"return": {
|
|
706
712
|
"type": {
|
|
707
|
-
"text": "
|
|
713
|
+
"text": "void"
|
|
708
714
|
}
|
|
709
715
|
},
|
|
710
716
|
"parameters": [
|
|
711
717
|
{
|
|
712
|
-
"name": "
|
|
718
|
+
"name": "content",
|
|
713
719
|
"type": {
|
|
714
|
-
"text": "
|
|
720
|
+
"text": "HTMLElement | null"
|
|
715
721
|
}
|
|
716
722
|
}
|
|
717
723
|
],
|
|
718
|
-
"description": "
|
|
724
|
+
"description": "Decorate `content` from now on: the controller follows it. Only a\nreconcile calls this, and a root reconciles only while connected, so the\nnew controller listens at once."
|
|
725
|
+
},
|
|
726
|
+
{
|
|
727
|
+
"kind": "method",
|
|
728
|
+
"name": "reconcile",
|
|
729
|
+
"privacy": "protected",
|
|
730
|
+
"return": {
|
|
731
|
+
"type": {
|
|
732
|
+
"text": "void"
|
|
733
|
+
}
|
|
734
|
+
}
|
|
719
735
|
}
|
|
720
736
|
],
|
|
721
737
|
"events": [
|
|
@@ -723,8 +739,29 @@
|
|
|
723
739
|
"type": {
|
|
724
740
|
"text": "CustomEvent<{ open: boolean }>"
|
|
725
741
|
},
|
|
726
|
-
"description": "Bubbles, cancelable, fired before a user-driven change is applied —
|
|
727
|
-
"name": "primitiv-
|
|
742
|
+
"description": "Bubbles, cancelable, fired before a user-driven change is applied — the trigger, Escape, a press outside or a chosen item — with the open state afterwards. Call `preventDefault()` to veto it.",
|
|
743
|
+
"name": "primitiv-dropdown-change"
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"type": {
|
|
747
|
+
"text": "CustomEvent<null>"
|
|
748
|
+
},
|
|
749
|
+
"description": "Bubbles, cancelable, fired on the item part when an item is chosen, after a checkbox or radio item has changed. Call `preventDefault()` to keep the menu open.",
|
|
750
|
+
"name": "primitiv-dropdown-select"
|
|
751
|
+
},
|
|
752
|
+
{
|
|
753
|
+
"type": {
|
|
754
|
+
"text": "CustomEvent<{ checked: boolean }>"
|
|
755
|
+
},
|
|
756
|
+
"description": "Bubbles, cancelable, fired on a checkbox item before it changes, with its state afterwards. Call `preventDefault()` to veto it.",
|
|
757
|
+
"name": "primitiv-dropdown-checked-change"
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
"type": {
|
|
761
|
+
"text": "CustomEvent<{ value: string }>"
|
|
762
|
+
},
|
|
763
|
+
"description": "Bubbles, cancelable, fired on a radio group before its value changes, with the value afterwards. Call `preventDefault()` to veto it.",
|
|
764
|
+
"name": "primitiv-dropdown-value-change"
|
|
728
765
|
}
|
|
729
766
|
],
|
|
730
767
|
"attributes": [
|
|
@@ -732,7 +769,7 @@
|
|
|
732
769
|
"type": {
|
|
733
770
|
"text": "boolean"
|
|
734
771
|
},
|
|
735
|
-
"description": "Whether the
|
|
772
|
+
"description": "Whether the menu is open. Reflected: it changes as the user opens and dismisses it. Set it (or the `open` property) to open or close it from script.",
|
|
736
773
|
"name": "open"
|
|
737
774
|
}
|
|
738
775
|
],
|
|
@@ -740,160 +777,14 @@
|
|
|
740
777
|
"name": "PrimitivRootElement",
|
|
741
778
|
"module": "/src/internal/RootElement.ts"
|
|
742
779
|
},
|
|
743
|
-
"tagName": "primitiv-
|
|
780
|
+
"tagName": "primitiv-dropdown",
|
|
744
781
|
"customElement": true,
|
|
745
|
-
"summary": "The state owner of a
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
"kind": "class",
|
|
749
|
-
"description": "`<primitiv-modal-trigger>` — an interactive part. It decorates exactly one\nchild the consumer writes, a `<button>`, which opens the dialog and receives\n`aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, so the\nrendered DOM matches React's (RFC 0033 D24). A modal may have several.",
|
|
750
|
-
"name": "PrimitivModalTriggerElement",
|
|
751
|
-
"superclass": {
|
|
752
|
-
"name": "ElementBase",
|
|
753
|
-
"module": "/src/internal/element.ts"
|
|
754
|
-
},
|
|
755
|
-
"tagName": "primitiv-modal-trigger",
|
|
756
|
-
"customElement": true
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"kind": "class",
|
|
760
|
-
"description": "`<primitiv-modal-content>` — decorates exactly one native `<dialog>` the\nconsumer writes, which the root opens with `showModal()`, closes, and gives\nan id, `data-state`, and `aria-labelledby` / `aria-describedby` pointing at\nthe title and description. The dialog keeps its implicit `dialog` role.",
|
|
761
|
-
"name": "PrimitivModalContentElement",
|
|
762
|
-
"superclass": {
|
|
763
|
-
"name": "ElementBase",
|
|
764
|
-
"module": "/src/internal/element.ts"
|
|
765
|
-
},
|
|
766
|
-
"tagName": "primitiv-modal-content",
|
|
767
|
-
"customElement": true
|
|
768
|
-
},
|
|
769
|
-
{
|
|
770
|
-
"kind": "class",
|
|
771
|
-
"description": "`<primitiv-modal-title>` — decorates exactly one heading the consumer writes\n(an `<h2>`, usually), whose id becomes the dialog's `aria-labelledby`, so it\nis the name a screen reader announces as the dialog opens.",
|
|
772
|
-
"name": "PrimitivModalTitleElement",
|
|
773
|
-
"superclass": {
|
|
774
|
-
"name": "ElementBase",
|
|
775
|
-
"module": "/src/internal/element.ts"
|
|
776
|
-
},
|
|
777
|
-
"tagName": "primitiv-modal-title",
|
|
778
|
-
"customElement": true
|
|
779
|
-
},
|
|
780
|
-
{
|
|
781
|
-
"kind": "class",
|
|
782
|
-
"description": "`<primitiv-modal-description>` — decorates exactly one element the consumer\nwrites (a `<p>`, usually), whose id becomes the dialog's `aria-describedby`.",
|
|
783
|
-
"name": "PrimitivModalDescriptionElement",
|
|
784
|
-
"superclass": {
|
|
785
|
-
"name": "ElementBase",
|
|
786
|
-
"module": "/src/internal/element.ts"
|
|
787
|
-
},
|
|
788
|
-
"tagName": "primitiv-modal-description",
|
|
789
|
-
"customElement": true
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
"kind": "class",
|
|
793
|
-
"description": "`<primitiv-modal-close>` — an interactive part. It decorates exactly one\n`<button>` the consumer writes, which closes the dialog. A modal may have\nseveral: the header's icon button and the footer's Cancel.",
|
|
794
|
-
"name": "PrimitivModalCloseElement",
|
|
795
|
-
"superclass": {
|
|
796
|
-
"name": "ElementBase",
|
|
797
|
-
"module": "/src/internal/element.ts"
|
|
798
|
-
},
|
|
799
|
-
"tagName": "primitiv-modal-close",
|
|
800
|
-
"customElement": true
|
|
801
|
-
},
|
|
802
|
-
{
|
|
803
|
-
"kind": "function",
|
|
804
|
-
"name": "defineModal",
|
|
805
|
-
"return": {
|
|
806
|
-
"type": {
|
|
807
|
-
"text": "void"
|
|
808
|
-
}
|
|
809
|
-
},
|
|
810
|
-
"parameters": [
|
|
811
|
-
{
|
|
812
|
-
"name": "registry",
|
|
813
|
-
"default": "globalThis.customElements",
|
|
814
|
-
"type": {
|
|
815
|
-
"text": "ElementRegistry | undefined"
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
],
|
|
819
|
-
"description": "Define the six Modal elements on `registry` (the global `customElements` by\ndefault). Safe to call more than once, and a no-op where there is no\nregistry (a server render)."
|
|
820
|
-
}
|
|
821
|
-
],
|
|
822
|
-
"exports": [
|
|
823
|
-
{
|
|
824
|
-
"kind": "js",
|
|
825
|
-
"name": "ElementRegistry",
|
|
826
|
-
"declaration": {
|
|
827
|
-
"name": "ElementRegistry",
|
|
828
|
-
"module": "src/modal/elements.ts"
|
|
829
|
-
}
|
|
830
|
-
},
|
|
831
|
-
{
|
|
832
|
-
"kind": "js",
|
|
833
|
-
"name": "PrimitivModalElement",
|
|
834
|
-
"declaration": {
|
|
835
|
-
"name": "PrimitivModalElement",
|
|
836
|
-
"module": "src/modal/elements.ts"
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
"kind": "js",
|
|
841
|
-
"name": "PrimitivModalTriggerElement",
|
|
842
|
-
"declaration": {
|
|
843
|
-
"name": "PrimitivModalTriggerElement",
|
|
844
|
-
"module": "src/modal/elements.ts"
|
|
845
|
-
}
|
|
846
|
-
},
|
|
847
|
-
{
|
|
848
|
-
"kind": "js",
|
|
849
|
-
"name": "PrimitivModalContentElement",
|
|
850
|
-
"declaration": {
|
|
851
|
-
"name": "PrimitivModalContentElement",
|
|
852
|
-
"module": "src/modal/elements.ts"
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
{
|
|
856
|
-
"kind": "js",
|
|
857
|
-
"name": "PrimitivModalTitleElement",
|
|
858
|
-
"declaration": {
|
|
859
|
-
"name": "PrimitivModalTitleElement",
|
|
860
|
-
"module": "src/modal/elements.ts"
|
|
861
|
-
}
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
"kind": "js",
|
|
865
|
-
"name": "PrimitivModalDescriptionElement",
|
|
866
|
-
"declaration": {
|
|
867
|
-
"name": "PrimitivModalDescriptionElement",
|
|
868
|
-
"module": "src/modal/elements.ts"
|
|
869
|
-
}
|
|
870
|
-
},
|
|
871
|
-
{
|
|
872
|
-
"kind": "js",
|
|
873
|
-
"name": "PrimitivModalCloseElement",
|
|
874
|
-
"declaration": {
|
|
875
|
-
"name": "PrimitivModalCloseElement",
|
|
876
|
-
"module": "src/modal/elements.ts"
|
|
877
|
-
}
|
|
782
|
+
"summary": "The state owner of a dropdown menu."
|
|
878
783
|
},
|
|
879
|
-
{
|
|
880
|
-
"kind": "js",
|
|
881
|
-
"name": "defineModal",
|
|
882
|
-
"declaration": {
|
|
883
|
-
"name": "defineModal",
|
|
884
|
-
"module": "src/modal/elements.ts"
|
|
885
|
-
}
|
|
886
|
-
}
|
|
887
|
-
]
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
"kind": "javascript-module",
|
|
891
|
-
"path": "src/popover/elements.ts",
|
|
892
|
-
"declarations": [
|
|
893
784
|
{
|
|
894
785
|
"kind": "class",
|
|
895
|
-
"description": "`<primitiv-
|
|
896
|
-
"name": "
|
|
786
|
+
"description": "`<primitiv-dropdown-sub>` — the state owner of a submenu, inside a dropdown's\nmenu: a sub-trigger row that opens a nested menu on a click, a hover, or the\narrow pointing away from its parent (ArrowRight, or ArrowLeft right to\nleft), and closes it on the arrow back, or when the pointer moves to another\nrow of the parent menu.",
|
|
787
|
+
"name": "PrimitivDropdownSubElement",
|
|
897
788
|
"members": [
|
|
898
789
|
{
|
|
899
790
|
"kind": "field",
|
|
@@ -902,15 +793,14 @@
|
|
|
902
793
|
"type": {
|
|
903
794
|
"text": "HTMLElement | null"
|
|
904
795
|
},
|
|
905
|
-
"default": "null"
|
|
906
|
-
"description": "The panel the root currently decorates, and the controller over it."
|
|
796
|
+
"default": "null"
|
|
907
797
|
},
|
|
908
798
|
{
|
|
909
799
|
"kind": "field",
|
|
910
|
-
"name": "#
|
|
800
|
+
"name": "#menu",
|
|
911
801
|
"privacy": "private",
|
|
912
802
|
"type": {
|
|
913
|
-
"text": "
|
|
803
|
+
"text": "DropdownSubController | null"
|
|
914
804
|
},
|
|
915
805
|
"default": "null"
|
|
916
806
|
},
|
|
@@ -921,26 +811,27 @@
|
|
|
921
811
|
"type": {
|
|
922
812
|
"text": "HTMLElement | null"
|
|
923
813
|
},
|
|
924
|
-
"default": "null"
|
|
925
|
-
"description": "The decorated trigger and close buttons, and the anchor, as of the last reconcile."
|
|
814
|
+
"default": "null"
|
|
926
815
|
},
|
|
927
816
|
{
|
|
928
817
|
"kind": "field",
|
|
929
|
-
"name": "#
|
|
818
|
+
"name": "#triggerPart",
|
|
930
819
|
"privacy": "private",
|
|
931
820
|
"type": {
|
|
932
821
|
"text": "HTMLElement | null"
|
|
933
822
|
},
|
|
934
|
-
"default": "null"
|
|
823
|
+
"default": "null",
|
|
824
|
+
"description": "The sub-trigger part (whose `disabled` the sub reads), as of the last reconcile."
|
|
935
825
|
},
|
|
936
826
|
{
|
|
937
827
|
"kind": "field",
|
|
938
|
-
"name": "#
|
|
828
|
+
"name": "#hovered",
|
|
939
829
|
"privacy": "private",
|
|
940
830
|
"type": {
|
|
941
|
-
"text": "
|
|
831
|
+
"text": "boolean"
|
|
942
832
|
},
|
|
943
|
-
"default": "
|
|
833
|
+
"default": "false",
|
|
834
|
+
"description": "Whether the pointer is over the sub-trigger."
|
|
944
835
|
},
|
|
945
836
|
{
|
|
946
837
|
"kind": "field",
|
|
@@ -949,8 +840,7 @@
|
|
|
949
840
|
"type": {
|
|
950
841
|
"text": "AbortController | null"
|
|
951
842
|
},
|
|
952
|
-
"default": "null"
|
|
953
|
-
"description": "The root's own click listener, while connected."
|
|
843
|
+
"default": "null"
|
|
954
844
|
},
|
|
955
845
|
{
|
|
956
846
|
"kind": "field",
|
|
@@ -970,7 +860,7 @@
|
|
|
970
860
|
},
|
|
971
861
|
"privacy": "protected",
|
|
972
862
|
"readonly": true,
|
|
973
|
-
"default": "[\"open\"]"
|
|
863
|
+
"default": "[\"open\", \"disabled\"]"
|
|
974
864
|
},
|
|
975
865
|
{
|
|
976
866
|
"kind": "field",
|
|
@@ -978,7 +868,7 @@
|
|
|
978
868
|
"type": {
|
|
979
869
|
"text": "boolean"
|
|
980
870
|
},
|
|
981
|
-
"description": "Whether the
|
|
871
|
+
"description": "Whether the submenu is open, reflected as the boolean `open` attribute."
|
|
982
872
|
},
|
|
983
873
|
{
|
|
984
874
|
"kind": "method",
|
|
@@ -986,10 +876,9 @@
|
|
|
986
876
|
"privacy": "private",
|
|
987
877
|
"return": {
|
|
988
878
|
"type": {
|
|
989
|
-
"text": "
|
|
879
|
+
"text": "DropdownSubControllerHost"
|
|
990
880
|
}
|
|
991
|
-
}
|
|
992
|
-
"description": "The controller's view of this element: state lives in the reflected attribute."
|
|
881
|
+
}
|
|
993
882
|
},
|
|
994
883
|
{
|
|
995
884
|
"kind": "method",
|
|
@@ -1007,8 +896,18 @@
|
|
|
1007
896
|
"text": "boolean"
|
|
1008
897
|
}
|
|
1009
898
|
}
|
|
1010
|
-
]
|
|
1011
|
-
|
|
899
|
+
]
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"kind": "method",
|
|
903
|
+
"name": "#disabled",
|
|
904
|
+
"privacy": "private",
|
|
905
|
+
"return": {
|
|
906
|
+
"type": {
|
|
907
|
+
"text": "boolean"
|
|
908
|
+
}
|
|
909
|
+
},
|
|
910
|
+
"description": "Whether the sub-trigger is disabled. Only asked once a decorated sub-trigger exists."
|
|
1012
911
|
},
|
|
1013
912
|
{
|
|
1014
913
|
"kind": "method",
|
|
@@ -1032,7 +931,36 @@
|
|
|
1032
931
|
},
|
|
1033
932
|
{
|
|
1034
933
|
"kind": "method",
|
|
1035
|
-
"name": "#
|
|
934
|
+
"name": "#onTrigger",
|
|
935
|
+
"privacy": "private",
|
|
936
|
+
"return": {
|
|
937
|
+
"type": {
|
|
938
|
+
"text": "boolean"
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
"parameters": [
|
|
942
|
+
{
|
|
943
|
+
"name": "event",
|
|
944
|
+
"type": {
|
|
945
|
+
"text": "Event"
|
|
946
|
+
}
|
|
947
|
+
}
|
|
948
|
+
],
|
|
949
|
+
"description": "Whether an event landed on the decorated sub-trigger."
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"kind": "method",
|
|
953
|
+
"name": "#openIfEnabled",
|
|
954
|
+
"privacy": "private",
|
|
955
|
+
"return": {
|
|
956
|
+
"type": {
|
|
957
|
+
"text": "void"
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"kind": "method",
|
|
963
|
+
"name": "#keydown",
|
|
1036
964
|
"privacy": "private",
|
|
1037
965
|
"return": {
|
|
1038
966
|
"type": {
|
|
@@ -1043,11 +971,54 @@
|
|
|
1043
971
|
{
|
|
1044
972
|
"name": "event",
|
|
1045
973
|
"type": {
|
|
1046
|
-
"text": "
|
|
974
|
+
"text": "KeyboardEvent"
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
]
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"kind": "method",
|
|
981
|
+
"name": "#pointer",
|
|
982
|
+
"privacy": "private",
|
|
983
|
+
"return": {
|
|
984
|
+
"type": {
|
|
985
|
+
"text": "void"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
"parameters": [
|
|
989
|
+
{
|
|
990
|
+
"name": "event",
|
|
991
|
+
"type": {
|
|
992
|
+
"text": "PointerEvent"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"name": "over",
|
|
997
|
+
"type": {
|
|
998
|
+
"text": "boolean"
|
|
1047
999
|
}
|
|
1048
1000
|
}
|
|
1049
1001
|
]
|
|
1050
1002
|
},
|
|
1003
|
+
{
|
|
1004
|
+
"kind": "method",
|
|
1005
|
+
"name": "#sibling",
|
|
1006
|
+
"privacy": "private",
|
|
1007
|
+
"return": {
|
|
1008
|
+
"type": {
|
|
1009
|
+
"text": "void"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
"parameters": [
|
|
1013
|
+
{
|
|
1014
|
+
"name": "event",
|
|
1015
|
+
"type": {
|
|
1016
|
+
"text": "PointerEvent"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
],
|
|
1020
|
+
"description": "The pointer reached another row of the parent menu: close, as moving the keyboard there would."
|
|
1021
|
+
},
|
|
1051
1022
|
{
|
|
1052
1023
|
"kind": "method",
|
|
1053
1024
|
"name": "#use",
|
|
@@ -1064,8 +1035,7 @@
|
|
|
1064
1035
|
"text": "HTMLElement | null"
|
|
1065
1036
|
}
|
|
1066
1037
|
}
|
|
1067
|
-
]
|
|
1068
|
-
"description": "Decorate `content` from now on: the controller follows it. Only a\nreconcile calls this, and a root reconciles only while connected, so the\nnew controller listens at once."
|
|
1038
|
+
]
|
|
1069
1039
|
},
|
|
1070
1040
|
{
|
|
1071
1041
|
"kind": "method",
|
|
@@ -1083,8 +1053,8 @@
|
|
|
1083
1053
|
"type": {
|
|
1084
1054
|
"text": "CustomEvent<{ open: boolean }>"
|
|
1085
1055
|
},
|
|
1086
|
-
"description": "Bubbles, cancelable, fired before a user-driven change is applied
|
|
1087
|
-
"name": "primitiv-
|
|
1056
|
+
"description": "Bubbles, cancelable, fired before a user-driven change is applied, with the open state afterwards. Call `preventDefault()` to veto it.",
|
|
1057
|
+
"name": "primitiv-dropdown-sub-change"
|
|
1088
1058
|
}
|
|
1089
1059
|
],
|
|
1090
1060
|
"attributes": [
|
|
@@ -1092,7 +1062,7 @@
|
|
|
1092
1062
|
"type": {
|
|
1093
1063
|
"text": "boolean"
|
|
1094
1064
|
},
|
|
1095
|
-
"description": "Whether the
|
|
1065
|
+
"description": "Whether the submenu is open. Reflected.",
|
|
1096
1066
|
"name": "open"
|
|
1097
1067
|
}
|
|
1098
1068
|
],
|
|
@@ -1100,79 +1070,213 @@
|
|
|
1100
1070
|
"name": "PrimitivRootElement",
|
|
1101
1071
|
"module": "/src/internal/RootElement.ts"
|
|
1102
1072
|
},
|
|
1103
|
-
"tagName": "primitiv-
|
|
1073
|
+
"tagName": "primitiv-dropdown-sub",
|
|
1104
1074
|
"customElement": true,
|
|
1105
|
-
"summary": "The state owner of a
|
|
1075
|
+
"summary": "The state owner of a submenu."
|
|
1106
1076
|
},
|
|
1107
1077
|
{
|
|
1108
1078
|
"kind": "class",
|
|
1109
|
-
"description": "`<primitiv-
|
|
1110
|
-
"name": "
|
|
1079
|
+
"description": "`<primitiv-dropdown-trigger>` — an interactive part. It decorates exactly\none child the consumer writes, a `<button>`, which toggles the menu and is\nits menu button (`aria-haspopup`, `aria-expanded`, `aria-controls`).",
|
|
1080
|
+
"name": "PrimitivDropdownTriggerElement",
|
|
1111
1081
|
"superclass": {
|
|
1112
1082
|
"name": "ElementBase",
|
|
1113
1083
|
"module": "/src/internal/element.ts"
|
|
1114
1084
|
},
|
|
1115
|
-
"tagName": "primitiv-
|
|
1085
|
+
"tagName": "primitiv-dropdown-trigger",
|
|
1116
1086
|
"customElement": true
|
|
1117
1087
|
},
|
|
1118
1088
|
{
|
|
1119
1089
|
"kind": "class",
|
|
1120
|
-
"description": "`<primitiv-
|
|
1121
|
-
"name": "
|
|
1090
|
+
"description": "`<primitiv-dropdown-content>` — the menu itself. Structural: the root gives\nit an id, `role=\"menu\"` and `popover=\"auto\"` (write it in your markup too, so\nit is hidden before the script loads).",
|
|
1091
|
+
"name": "PrimitivDropdownContentElement",
|
|
1122
1092
|
"superclass": {
|
|
1123
1093
|
"name": "ElementBase",
|
|
1124
1094
|
"module": "/src/internal/element.ts"
|
|
1125
1095
|
},
|
|
1126
|
-
"tagName": "primitiv-
|
|
1096
|
+
"tagName": "primitiv-dropdown-content",
|
|
1127
1097
|
"customElement": true
|
|
1128
1098
|
},
|
|
1129
1099
|
{
|
|
1130
1100
|
"kind": "class",
|
|
1131
|
-
"description": "`<primitiv-
|
|
1132
|
-
"name": "
|
|
1101
|
+
"description": "`<primitiv-dropdown-item>` — an interactive part: one item. It decorates\nexactly one child the consumer writes, an `<li>` (or a link), which gets\n`role=\"menuitem\"`, `tabindex=\"-1\"` and `data-highlighted` while the pointer\nis over it.",
|
|
1102
|
+
"name": "PrimitivDropdownItemElement",
|
|
1103
|
+
"attributes": [
|
|
1104
|
+
{
|
|
1105
|
+
"type": {
|
|
1106
|
+
"text": "boolean"
|
|
1107
|
+
},
|
|
1108
|
+
"description": "Skipped by the keyboard, and does nothing when clicked (`aria-disabled` on the child).",
|
|
1109
|
+
"name": "disabled"
|
|
1110
|
+
}
|
|
1111
|
+
],
|
|
1133
1112
|
"superclass": {
|
|
1134
1113
|
"name": "ElementBase",
|
|
1135
1114
|
"module": "/src/internal/element.ts"
|
|
1136
1115
|
},
|
|
1137
|
-
"tagName": "primitiv-
|
|
1116
|
+
"tagName": "primitiv-dropdown-item",
|
|
1138
1117
|
"customElement": true
|
|
1139
1118
|
},
|
|
1140
1119
|
{
|
|
1141
1120
|
"kind": "class",
|
|
1142
|
-
"description": "`<primitiv-
|
|
1143
|
-
"name": "
|
|
1121
|
+
"description": "`<primitiv-dropdown-checkbox-item>` — an item that toggles. Its child gets\n`role=\"menuitemcheckbox\"` and `aria-checked`.",
|
|
1122
|
+
"name": "PrimitivDropdownCheckboxItemElement",
|
|
1123
|
+
"attributes": [
|
|
1124
|
+
{
|
|
1125
|
+
"type": {
|
|
1126
|
+
"text": "boolean"
|
|
1127
|
+
},
|
|
1128
|
+
"description": "Whether it is checked; `checked=\"indeterminate\"` for mixed. Reflected.",
|
|
1129
|
+
"name": "checked"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"type": {
|
|
1133
|
+
"text": "boolean"
|
|
1134
|
+
},
|
|
1135
|
+
"description": "As on an item.",
|
|
1136
|
+
"name": "disabled"
|
|
1137
|
+
}
|
|
1138
|
+
],
|
|
1144
1139
|
"superclass": {
|
|
1145
1140
|
"name": "ElementBase",
|
|
1146
1141
|
"module": "/src/internal/element.ts"
|
|
1147
1142
|
},
|
|
1148
|
-
"tagName": "primitiv-
|
|
1143
|
+
"tagName": "primitiv-dropdown-checkbox-item",
|
|
1149
1144
|
"customElement": true
|
|
1150
1145
|
},
|
|
1151
1146
|
{
|
|
1152
1147
|
"kind": "class",
|
|
1153
|
-
"description": "`<primitiv-
|
|
1154
|
-
"name": "
|
|
1148
|
+
"description": "`<primitiv-dropdown-radio-group>` — a group of radio items, one of which is\nchecked. Structural: `role=\"group\"`.",
|
|
1149
|
+
"name": "PrimitivDropdownRadioGroupElement",
|
|
1150
|
+
"attributes": [
|
|
1151
|
+
{
|
|
1152
|
+
"type": {
|
|
1153
|
+
"text": "string"
|
|
1154
|
+
},
|
|
1155
|
+
"description": "The checked item's value. Reflected.",
|
|
1156
|
+
"name": "value"
|
|
1157
|
+
}
|
|
1158
|
+
],
|
|
1155
1159
|
"superclass": {
|
|
1156
1160
|
"name": "ElementBase",
|
|
1157
1161
|
"module": "/src/internal/element.ts"
|
|
1158
1162
|
},
|
|
1159
|
-
"tagName": "primitiv-
|
|
1163
|
+
"tagName": "primitiv-dropdown-radio-group",
|
|
1160
1164
|
"customElement": true
|
|
1161
1165
|
},
|
|
1162
1166
|
{
|
|
1163
1167
|
"kind": "class",
|
|
1164
|
-
"description": "`<primitiv-
|
|
1165
|
-
"name": "
|
|
1168
|
+
"description": "`<primitiv-dropdown-radio-item>` — an item checked when its value is its\ngroup's. Its child gets `role=\"menuitemradio\"` and `aria-checked`.",
|
|
1169
|
+
"name": "PrimitivDropdownRadioItemElement",
|
|
1170
|
+
"attributes": [
|
|
1171
|
+
{
|
|
1172
|
+
"type": {
|
|
1173
|
+
"text": "string"
|
|
1174
|
+
},
|
|
1175
|
+
"description": "The value it sets on its group.",
|
|
1176
|
+
"name": "value"
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"type": {
|
|
1180
|
+
"text": "boolean"
|
|
1181
|
+
},
|
|
1182
|
+
"description": "As on an item.",
|
|
1183
|
+
"name": "disabled"
|
|
1184
|
+
}
|
|
1185
|
+
],
|
|
1166
1186
|
"superclass": {
|
|
1167
1187
|
"name": "ElementBase",
|
|
1168
1188
|
"module": "/src/internal/element.ts"
|
|
1169
1189
|
},
|
|
1170
|
-
"tagName": "primitiv-
|
|
1190
|
+
"tagName": "primitiv-dropdown-radio-item",
|
|
1191
|
+
"customElement": true
|
|
1192
|
+
},
|
|
1193
|
+
{
|
|
1194
|
+
"kind": "class",
|
|
1195
|
+
"description": "`<primitiv-dropdown-item-indicator>` — the check or dot inside a checkbox or\nradio item, `hidden` while unchecked. Structural: it gets `data-state`.",
|
|
1196
|
+
"name": "PrimitivDropdownItemIndicatorElement",
|
|
1197
|
+
"attributes": [
|
|
1198
|
+
{
|
|
1199
|
+
"type": {
|
|
1200
|
+
"text": "boolean"
|
|
1201
|
+
},
|
|
1202
|
+
"description": "Keep it shown while unchecked, to animate it.",
|
|
1203
|
+
"name": "force-mount"
|
|
1204
|
+
}
|
|
1205
|
+
],
|
|
1206
|
+
"superclass": {
|
|
1207
|
+
"name": "ElementBase",
|
|
1208
|
+
"module": "/src/internal/element.ts"
|
|
1209
|
+
},
|
|
1210
|
+
"tagName": "primitiv-dropdown-item-indicator",
|
|
1211
|
+
"customElement": true
|
|
1212
|
+
},
|
|
1213
|
+
{
|
|
1214
|
+
"kind": "class",
|
|
1215
|
+
"description": "`<primitiv-dropdown-group>` — a labelled group of items. Structural:\n`role=\"group\"`, named by the label inside it.",
|
|
1216
|
+
"name": "PrimitivDropdownGroupElement",
|
|
1217
|
+
"superclass": {
|
|
1218
|
+
"name": "ElementBase",
|
|
1219
|
+
"module": "/src/internal/element.ts"
|
|
1220
|
+
},
|
|
1221
|
+
"tagName": "primitiv-dropdown-group",
|
|
1222
|
+
"customElement": true
|
|
1223
|
+
},
|
|
1224
|
+
{
|
|
1225
|
+
"kind": "class",
|
|
1226
|
+
"description": "`<primitiv-dropdown-label>` — a group's label, not an item. Structural: the\nroot gives it an id.",
|
|
1227
|
+
"name": "PrimitivDropdownLabelElement",
|
|
1228
|
+
"superclass": {
|
|
1229
|
+
"name": "ElementBase",
|
|
1230
|
+
"module": "/src/internal/element.ts"
|
|
1231
|
+
},
|
|
1232
|
+
"tagName": "primitiv-dropdown-label",
|
|
1233
|
+
"customElement": true
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"kind": "class",
|
|
1237
|
+
"description": "`<primitiv-dropdown-separator>` — a rule between items. Structural:\n`role=\"separator\"`.",
|
|
1238
|
+
"name": "PrimitivDropdownSeparatorElement",
|
|
1239
|
+
"superclass": {
|
|
1240
|
+
"name": "ElementBase",
|
|
1241
|
+
"module": "/src/internal/element.ts"
|
|
1242
|
+
},
|
|
1243
|
+
"tagName": "primitiv-dropdown-separator",
|
|
1244
|
+
"customElement": true
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"kind": "class",
|
|
1248
|
+
"description": "`<primitiv-dropdown-sub-trigger>` — the row that opens a submenu. It\ndecorates exactly one child, an `<li>`, which gets `role=\"menuitem\"` and the\nsubmenu's `aria-haspopup`, `aria-expanded` and `aria-controls`.",
|
|
1249
|
+
"name": "PrimitivDropdownSubTriggerElement",
|
|
1250
|
+
"attributes": [
|
|
1251
|
+
{
|
|
1252
|
+
"type": {
|
|
1253
|
+
"text": "boolean"
|
|
1254
|
+
},
|
|
1255
|
+
"description": "It does not open the submenu.",
|
|
1256
|
+
"name": "disabled"
|
|
1257
|
+
}
|
|
1258
|
+
],
|
|
1259
|
+
"superclass": {
|
|
1260
|
+
"name": "ElementBase",
|
|
1261
|
+
"module": "/src/internal/element.ts"
|
|
1262
|
+
},
|
|
1263
|
+
"tagName": "primitiv-dropdown-sub-trigger",
|
|
1264
|
+
"customElement": true
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
"kind": "class",
|
|
1268
|
+
"description": "`<primitiv-dropdown-sub-content>` — the submenu itself, inside the parent\nmenu. Structural, as the content: an id, `role=\"menu\"`, `popover=\"auto\"`.",
|
|
1269
|
+
"name": "PrimitivDropdownSubContentElement",
|
|
1270
|
+
"superclass": {
|
|
1271
|
+
"name": "ElementBase",
|
|
1272
|
+
"module": "/src/internal/element.ts"
|
|
1273
|
+
},
|
|
1274
|
+
"tagName": "primitiv-dropdown-sub-content",
|
|
1171
1275
|
"customElement": true
|
|
1172
1276
|
},
|
|
1173
1277
|
{
|
|
1174
1278
|
"kind": "function",
|
|
1175
|
-
"name": "
|
|
1279
|
+
"name": "defineDropdown",
|
|
1176
1280
|
"return": {
|
|
1177
1281
|
"type": {
|
|
1178
1282
|
"text": "void"
|
|
@@ -1187,7 +1291,7 @@
|
|
|
1187
1291
|
}
|
|
1188
1292
|
}
|
|
1189
1293
|
],
|
|
1190
|
-
"description": "Define the
|
|
1294
|
+
"description": "Define the fourteen Dropdown elements on `registry` (the global\n`customElements` by default). Safe to call more than once, and a no-op where\nthere is no registry (a server render)."
|
|
1191
1295
|
}
|
|
1192
1296
|
],
|
|
1193
1297
|
"exports": [
|
|
@@ -1196,111 +1300,1274 @@
|
|
|
1196
1300
|
"name": "ElementRegistry",
|
|
1197
1301
|
"declaration": {
|
|
1198
1302
|
"name": "ElementRegistry",
|
|
1199
|
-
"module": "src/
|
|
1303
|
+
"module": "src/dropdown/elements.ts"
|
|
1200
1304
|
}
|
|
1201
1305
|
},
|
|
1202
1306
|
{
|
|
1203
1307
|
"kind": "js",
|
|
1204
|
-
"name": "
|
|
1308
|
+
"name": "PrimitivDropdownElement",
|
|
1205
1309
|
"declaration": {
|
|
1206
|
-
"name": "
|
|
1207
|
-
"module": "src/
|
|
1310
|
+
"name": "PrimitivDropdownElement",
|
|
1311
|
+
"module": "src/dropdown/elements.ts"
|
|
1208
1312
|
}
|
|
1209
1313
|
},
|
|
1210
1314
|
{
|
|
1211
1315
|
"kind": "js",
|
|
1212
|
-
"name": "
|
|
1316
|
+
"name": "PrimitivDropdownSubElement",
|
|
1213
1317
|
"declaration": {
|
|
1214
|
-
"name": "
|
|
1215
|
-
"module": "src/
|
|
1318
|
+
"name": "PrimitivDropdownSubElement",
|
|
1319
|
+
"module": "src/dropdown/elements.ts"
|
|
1216
1320
|
}
|
|
1217
1321
|
},
|
|
1218
1322
|
{
|
|
1219
1323
|
"kind": "js",
|
|
1220
|
-
"name": "
|
|
1324
|
+
"name": "PrimitivDropdownTriggerElement",
|
|
1221
1325
|
"declaration": {
|
|
1222
|
-
"name": "
|
|
1223
|
-
"module": "src/
|
|
1326
|
+
"name": "PrimitivDropdownTriggerElement",
|
|
1327
|
+
"module": "src/dropdown/elements.ts"
|
|
1224
1328
|
}
|
|
1225
1329
|
},
|
|
1226
1330
|
{
|
|
1227
1331
|
"kind": "js",
|
|
1228
|
-
"name": "
|
|
1332
|
+
"name": "PrimitivDropdownContentElement",
|
|
1229
1333
|
"declaration": {
|
|
1230
|
-
"name": "
|
|
1231
|
-
"module": "src/
|
|
1334
|
+
"name": "PrimitivDropdownContentElement",
|
|
1335
|
+
"module": "src/dropdown/elements.ts"
|
|
1232
1336
|
}
|
|
1233
1337
|
},
|
|
1234
1338
|
{
|
|
1235
1339
|
"kind": "js",
|
|
1236
|
-
"name": "
|
|
1340
|
+
"name": "PrimitivDropdownItemElement",
|
|
1237
1341
|
"declaration": {
|
|
1238
|
-
"name": "
|
|
1239
|
-
"module": "src/
|
|
1342
|
+
"name": "PrimitivDropdownItemElement",
|
|
1343
|
+
"module": "src/dropdown/elements.ts"
|
|
1240
1344
|
}
|
|
1241
1345
|
},
|
|
1242
1346
|
{
|
|
1243
1347
|
"kind": "js",
|
|
1244
|
-
"name": "
|
|
1348
|
+
"name": "PrimitivDropdownCheckboxItemElement",
|
|
1245
1349
|
"declaration": {
|
|
1246
|
-
"name": "
|
|
1247
|
-
"module": "src/
|
|
1350
|
+
"name": "PrimitivDropdownCheckboxItemElement",
|
|
1351
|
+
"module": "src/dropdown/elements.ts"
|
|
1248
1352
|
}
|
|
1249
1353
|
},
|
|
1250
1354
|
{
|
|
1251
1355
|
"kind": "js",
|
|
1252
|
-
"name": "
|
|
1356
|
+
"name": "PrimitivDropdownRadioGroupElement",
|
|
1253
1357
|
"declaration": {
|
|
1254
|
-
"name": "
|
|
1255
|
-
"module": "src/
|
|
1358
|
+
"name": "PrimitivDropdownRadioGroupElement",
|
|
1359
|
+
"module": "src/dropdown/elements.ts"
|
|
1256
1360
|
}
|
|
1257
1361
|
},
|
|
1258
1362
|
{
|
|
1259
1363
|
"kind": "js",
|
|
1260
|
-
"name": "
|
|
1364
|
+
"name": "PrimitivDropdownRadioItemElement",
|
|
1261
1365
|
"declaration": {
|
|
1262
|
-
"name": "
|
|
1263
|
-
"module": "src/
|
|
1366
|
+
"name": "PrimitivDropdownRadioItemElement",
|
|
1367
|
+
"module": "src/dropdown/elements.ts"
|
|
1264
1368
|
}
|
|
1265
|
-
}
|
|
1266
|
-
]
|
|
1267
|
-
},
|
|
1268
|
-
{
|
|
1269
|
-
"kind": "javascript-module",
|
|
1270
|
-
"path": "src/tabs/elements.ts",
|
|
1271
|
-
"declarations": [
|
|
1369
|
+
},
|
|
1272
1370
|
{
|
|
1273
|
-
"kind": "
|
|
1274
|
-
"
|
|
1275
|
-
"
|
|
1371
|
+
"kind": "js",
|
|
1372
|
+
"name": "PrimitivDropdownItemIndicatorElement",
|
|
1373
|
+
"declaration": {
|
|
1374
|
+
"name": "PrimitivDropdownItemIndicatorElement",
|
|
1375
|
+
"module": "src/dropdown/elements.ts"
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"kind": "js",
|
|
1380
|
+
"name": "PrimitivDropdownGroupElement",
|
|
1381
|
+
"declaration": {
|
|
1382
|
+
"name": "PrimitivDropdownGroupElement",
|
|
1383
|
+
"module": "src/dropdown/elements.ts"
|
|
1384
|
+
}
|
|
1385
|
+
},
|
|
1386
|
+
{
|
|
1387
|
+
"kind": "js",
|
|
1388
|
+
"name": "PrimitivDropdownLabelElement",
|
|
1389
|
+
"declaration": {
|
|
1390
|
+
"name": "PrimitivDropdownLabelElement",
|
|
1391
|
+
"module": "src/dropdown/elements.ts"
|
|
1392
|
+
}
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"kind": "js",
|
|
1396
|
+
"name": "PrimitivDropdownSeparatorElement",
|
|
1397
|
+
"declaration": {
|
|
1398
|
+
"name": "PrimitivDropdownSeparatorElement",
|
|
1399
|
+
"module": "src/dropdown/elements.ts"
|
|
1400
|
+
}
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"kind": "js",
|
|
1404
|
+
"name": "PrimitivDropdownSubTriggerElement",
|
|
1405
|
+
"declaration": {
|
|
1406
|
+
"name": "PrimitivDropdownSubTriggerElement",
|
|
1407
|
+
"module": "src/dropdown/elements.ts"
|
|
1408
|
+
}
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
"kind": "js",
|
|
1412
|
+
"name": "PrimitivDropdownSubContentElement",
|
|
1413
|
+
"declaration": {
|
|
1414
|
+
"name": "PrimitivDropdownSubContentElement",
|
|
1415
|
+
"module": "src/dropdown/elements.ts"
|
|
1416
|
+
}
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"kind": "js",
|
|
1420
|
+
"name": "defineDropdown",
|
|
1421
|
+
"declaration": {
|
|
1422
|
+
"name": "defineDropdown",
|
|
1423
|
+
"module": "src/dropdown/elements.ts"
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
]
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"kind": "javascript-module",
|
|
1430
|
+
"path": "src/modal/elements.ts",
|
|
1431
|
+
"declarations": [
|
|
1432
|
+
{
|
|
1433
|
+
"kind": "class",
|
|
1434
|
+
"description": "`<primitiv-modal>` — the state owner of a modal dialog, built on the native\n`<dialog>` and its `showModal()`: the browser makes the page behind it inert,\npaints the `::backdrop` and owns the top layer, and the element adds the\nrest of the WAI-ARIA Modal Dialog pattern — Tab wraps inside the dialog,\nEscape and a press on the backdrop close it, and closing hands focus back to\nthe button that opened it.\n\nThe root finds its own parts, so a modal nested in a dialog keeps its own,\nand reconciles their ARIA from its reflected state whenever a part arrives,\nleaves, or changes an attribute the root reads (the lifecycle is\n`PrimitivRootElement`'s). Leave `open` off the `<dialog>` itself: the root\nopens it, modally.",
|
|
1435
|
+
"name": "PrimitivModalElement",
|
|
1436
|
+
"members": [
|
|
1437
|
+
{
|
|
1438
|
+
"kind": "field",
|
|
1439
|
+
"name": "#dialog",
|
|
1440
|
+
"privacy": "private",
|
|
1441
|
+
"type": {
|
|
1442
|
+
"text": "HTMLDialogElement | null"
|
|
1443
|
+
},
|
|
1444
|
+
"default": "null",
|
|
1445
|
+
"description": "The dialog the root currently decorates, and the controller over it."
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "field",
|
|
1449
|
+
"name": "#modal",
|
|
1450
|
+
"privacy": "private",
|
|
1451
|
+
"type": {
|
|
1452
|
+
"text": "ModalController | null"
|
|
1453
|
+
},
|
|
1454
|
+
"default": "null"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"kind": "field",
|
|
1458
|
+
"name": "#openers",
|
|
1459
|
+
"privacy": "private",
|
|
1460
|
+
"type": {
|
|
1461
|
+
"text": "HTMLElement[]"
|
|
1462
|
+
},
|
|
1463
|
+
"default": "[]",
|
|
1464
|
+
"description": "The decorated trigger and close buttons, as of the last reconcile."
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"kind": "field",
|
|
1468
|
+
"name": "#closers",
|
|
1469
|
+
"privacy": "private",
|
|
1470
|
+
"type": {
|
|
1471
|
+
"text": "HTMLElement[]"
|
|
1472
|
+
},
|
|
1473
|
+
"default": "[]"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"kind": "field",
|
|
1477
|
+
"name": "#listening",
|
|
1478
|
+
"privacy": "private",
|
|
1479
|
+
"type": {
|
|
1480
|
+
"text": "AbortController | null"
|
|
1481
|
+
},
|
|
1482
|
+
"default": "null",
|
|
1483
|
+
"description": "The root's own click listener, while connected."
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"kind": "field",
|
|
1487
|
+
"name": "controller",
|
|
1488
|
+
"type": {
|
|
1489
|
+
"text": "{ connect(): void; disconnect(): void }"
|
|
1490
|
+
},
|
|
1491
|
+
"privacy": "protected",
|
|
1492
|
+
"readonly": true,
|
|
1493
|
+
"default": "{ connect: (): void => this.#connect(), disconnect: (): void => this.#disconnect(), }"
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"kind": "field",
|
|
1497
|
+
"name": "reconcileOn",
|
|
1498
|
+
"type": {
|
|
1499
|
+
"text": "readonly string[]"
|
|
1500
|
+
},
|
|
1501
|
+
"privacy": "protected",
|
|
1502
|
+
"readonly": true,
|
|
1503
|
+
"default": "[\"open\"]"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"kind": "field",
|
|
1507
|
+
"name": "open",
|
|
1508
|
+
"type": {
|
|
1509
|
+
"text": "boolean"
|
|
1510
|
+
},
|
|
1511
|
+
"description": "Whether the dialog is open, reflected as the boolean `open` attribute."
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"kind": "method",
|
|
1515
|
+
"name": "#host",
|
|
1516
|
+
"privacy": "private",
|
|
1517
|
+
"return": {
|
|
1518
|
+
"type": {
|
|
1519
|
+
"text": "ModalControllerHost"
|
|
1520
|
+
}
|
|
1521
|
+
},
|
|
1522
|
+
"description": "The controller's view of this element: state lives in the reflected attribute."
|
|
1523
|
+
},
|
|
1524
|
+
{
|
|
1525
|
+
"kind": "method",
|
|
1526
|
+
"name": "#change",
|
|
1527
|
+
"privacy": "private",
|
|
1528
|
+
"return": {
|
|
1529
|
+
"type": {
|
|
1530
|
+
"text": "void"
|
|
1531
|
+
}
|
|
1532
|
+
},
|
|
1533
|
+
"parameters": [
|
|
1534
|
+
{
|
|
1535
|
+
"name": "open",
|
|
1536
|
+
"type": {
|
|
1537
|
+
"text": "boolean"
|
|
1538
|
+
}
|
|
1539
|
+
}
|
|
1540
|
+
],
|
|
1541
|
+
"description": "A change the user asked for: announced first, so a listener can veto it."
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"kind": "method",
|
|
1545
|
+
"name": "#connect",
|
|
1546
|
+
"privacy": "private",
|
|
1547
|
+
"return": {
|
|
1548
|
+
"type": {
|
|
1549
|
+
"text": "void"
|
|
1550
|
+
}
|
|
1551
|
+
}
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"kind": "method",
|
|
1555
|
+
"name": "#disconnect",
|
|
1556
|
+
"privacy": "private",
|
|
1557
|
+
"return": {
|
|
1558
|
+
"type": {
|
|
1559
|
+
"text": "void"
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"kind": "method",
|
|
1565
|
+
"name": "#click",
|
|
1566
|
+
"privacy": "private",
|
|
1567
|
+
"return": {
|
|
1568
|
+
"type": {
|
|
1569
|
+
"text": "void"
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
"parameters": [
|
|
1573
|
+
{
|
|
1574
|
+
"name": "event",
|
|
1575
|
+
"type": {
|
|
1576
|
+
"text": "MouseEvent"
|
|
1577
|
+
}
|
|
1578
|
+
}
|
|
1579
|
+
]
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
"kind": "method",
|
|
1583
|
+
"name": "#use",
|
|
1584
|
+
"privacy": "private",
|
|
1585
|
+
"return": {
|
|
1586
|
+
"type": {
|
|
1587
|
+
"text": "void"
|
|
1588
|
+
}
|
|
1589
|
+
},
|
|
1590
|
+
"parameters": [
|
|
1591
|
+
{
|
|
1592
|
+
"name": "dialog",
|
|
1593
|
+
"type": {
|
|
1594
|
+
"text": "HTMLDialogElement | null"
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
],
|
|
1598
|
+
"description": "Decorate `dialog` from now on: the controller follows it. Only a reconcile\ncalls this, and a root reconciles only while connected, so the new\ncontroller listens at once."
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"kind": "method",
|
|
1602
|
+
"name": "reconcile",
|
|
1603
|
+
"privacy": "protected",
|
|
1604
|
+
"return": {
|
|
1605
|
+
"type": {
|
|
1606
|
+
"text": "void"
|
|
1607
|
+
}
|
|
1608
|
+
}
|
|
1609
|
+
},
|
|
1610
|
+
{
|
|
1611
|
+
"kind": "method",
|
|
1612
|
+
"name": "#buttons",
|
|
1613
|
+
"privacy": "private",
|
|
1614
|
+
"return": {
|
|
1615
|
+
"type": {
|
|
1616
|
+
"text": "HTMLElement[]"
|
|
1617
|
+
}
|
|
1618
|
+
},
|
|
1619
|
+
"parameters": [
|
|
1620
|
+
{
|
|
1621
|
+
"name": "selector",
|
|
1622
|
+
"type": {
|
|
1623
|
+
"text": "string"
|
|
1624
|
+
}
|
|
1625
|
+
}
|
|
1626
|
+
],
|
|
1627
|
+
"description": "The buttons this root's `selector` parts decorate."
|
|
1628
|
+
}
|
|
1629
|
+
],
|
|
1630
|
+
"events": [
|
|
1631
|
+
{
|
|
1632
|
+
"type": {
|
|
1633
|
+
"text": "CustomEvent<{ open: boolean }>"
|
|
1634
|
+
},
|
|
1635
|
+
"description": "Bubbles, cancelable, fired before a user-driven change is applied — a trigger or close click, Escape, a press on the backdrop, or the dialog closing natively — with the open state afterwards. Call `preventDefault()` to veto it, e.g. to keep a form with unsaved changes open.",
|
|
1636
|
+
"name": "primitiv-modal-change"
|
|
1637
|
+
}
|
|
1638
|
+
],
|
|
1639
|
+
"attributes": [
|
|
1640
|
+
{
|
|
1641
|
+
"type": {
|
|
1642
|
+
"text": "boolean"
|
|
1643
|
+
},
|
|
1644
|
+
"description": "Whether the dialog is open. Reflected: it changes as the user opens and dismisses the dialog, so a server re-render or a history snapshot sees the live state. Set it (or the `open` property) to open or close the dialog from script.",
|
|
1645
|
+
"name": "open"
|
|
1646
|
+
}
|
|
1647
|
+
],
|
|
1648
|
+
"superclass": {
|
|
1649
|
+
"name": "PrimitivRootElement",
|
|
1650
|
+
"module": "/src/internal/RootElement.ts"
|
|
1651
|
+
},
|
|
1652
|
+
"tagName": "primitiv-modal",
|
|
1653
|
+
"customElement": true,
|
|
1654
|
+
"summary": "The state owner of a modal dialog on the native `<dialog>`."
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
"kind": "class",
|
|
1658
|
+
"description": "`<primitiv-modal-trigger>` — an interactive part. It decorates exactly one\nchild the consumer writes, a `<button>`, which opens the dialog and receives\n`aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, so the\nrendered DOM matches React's (RFC 0033 D24). A modal may have several.",
|
|
1659
|
+
"name": "PrimitivModalTriggerElement",
|
|
1660
|
+
"superclass": {
|
|
1661
|
+
"name": "ElementBase",
|
|
1662
|
+
"module": "/src/internal/element.ts"
|
|
1663
|
+
},
|
|
1664
|
+
"tagName": "primitiv-modal-trigger",
|
|
1665
|
+
"customElement": true
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"kind": "class",
|
|
1669
|
+
"description": "`<primitiv-modal-content>` — decorates exactly one native `<dialog>` the\nconsumer writes, which the root opens with `showModal()`, closes, and gives\nan id, `data-state`, and `aria-labelledby` / `aria-describedby` pointing at\nthe title and description. The dialog keeps its implicit `dialog` role.",
|
|
1670
|
+
"name": "PrimitivModalContentElement",
|
|
1671
|
+
"superclass": {
|
|
1672
|
+
"name": "ElementBase",
|
|
1673
|
+
"module": "/src/internal/element.ts"
|
|
1674
|
+
},
|
|
1675
|
+
"tagName": "primitiv-modal-content",
|
|
1676
|
+
"customElement": true
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"kind": "class",
|
|
1680
|
+
"description": "`<primitiv-modal-title>` — decorates exactly one heading the consumer writes\n(an `<h2>`, usually), whose id becomes the dialog's `aria-labelledby`, so it\nis the name a screen reader announces as the dialog opens.",
|
|
1681
|
+
"name": "PrimitivModalTitleElement",
|
|
1682
|
+
"superclass": {
|
|
1683
|
+
"name": "ElementBase",
|
|
1684
|
+
"module": "/src/internal/element.ts"
|
|
1685
|
+
},
|
|
1686
|
+
"tagName": "primitiv-modal-title",
|
|
1687
|
+
"customElement": true
|
|
1688
|
+
},
|
|
1689
|
+
{
|
|
1690
|
+
"kind": "class",
|
|
1691
|
+
"description": "`<primitiv-modal-description>` — decorates exactly one element the consumer\nwrites (a `<p>`, usually), whose id becomes the dialog's `aria-describedby`.",
|
|
1692
|
+
"name": "PrimitivModalDescriptionElement",
|
|
1693
|
+
"superclass": {
|
|
1694
|
+
"name": "ElementBase",
|
|
1695
|
+
"module": "/src/internal/element.ts"
|
|
1696
|
+
},
|
|
1697
|
+
"tagName": "primitiv-modal-description",
|
|
1698
|
+
"customElement": true
|
|
1699
|
+
},
|
|
1700
|
+
{
|
|
1701
|
+
"kind": "class",
|
|
1702
|
+
"description": "`<primitiv-modal-close>` — an interactive part. It decorates exactly one\n`<button>` the consumer writes, which closes the dialog. A modal may have\nseveral: the header's icon button and the footer's Cancel.",
|
|
1703
|
+
"name": "PrimitivModalCloseElement",
|
|
1704
|
+
"superclass": {
|
|
1705
|
+
"name": "ElementBase",
|
|
1706
|
+
"module": "/src/internal/element.ts"
|
|
1707
|
+
},
|
|
1708
|
+
"tagName": "primitiv-modal-close",
|
|
1709
|
+
"customElement": true
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
"kind": "function",
|
|
1713
|
+
"name": "defineModal",
|
|
1714
|
+
"return": {
|
|
1715
|
+
"type": {
|
|
1716
|
+
"text": "void"
|
|
1717
|
+
}
|
|
1718
|
+
},
|
|
1719
|
+
"parameters": [
|
|
1720
|
+
{
|
|
1721
|
+
"name": "registry",
|
|
1722
|
+
"default": "globalThis.customElements",
|
|
1723
|
+
"type": {
|
|
1724
|
+
"text": "ElementRegistry | undefined"
|
|
1725
|
+
}
|
|
1726
|
+
}
|
|
1727
|
+
],
|
|
1728
|
+
"description": "Define the six Modal elements on `registry` (the global `customElements` by\ndefault). Safe to call more than once, and a no-op where there is no\nregistry (a server render)."
|
|
1729
|
+
}
|
|
1730
|
+
],
|
|
1731
|
+
"exports": [
|
|
1732
|
+
{
|
|
1733
|
+
"kind": "js",
|
|
1734
|
+
"name": "ElementRegistry",
|
|
1735
|
+
"declaration": {
|
|
1736
|
+
"name": "ElementRegistry",
|
|
1737
|
+
"module": "src/modal/elements.ts"
|
|
1738
|
+
}
|
|
1739
|
+
},
|
|
1740
|
+
{
|
|
1741
|
+
"kind": "js",
|
|
1742
|
+
"name": "PrimitivModalElement",
|
|
1743
|
+
"declaration": {
|
|
1744
|
+
"name": "PrimitivModalElement",
|
|
1745
|
+
"module": "src/modal/elements.ts"
|
|
1746
|
+
}
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"kind": "js",
|
|
1750
|
+
"name": "PrimitivModalTriggerElement",
|
|
1751
|
+
"declaration": {
|
|
1752
|
+
"name": "PrimitivModalTriggerElement",
|
|
1753
|
+
"module": "src/modal/elements.ts"
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
{
|
|
1757
|
+
"kind": "js",
|
|
1758
|
+
"name": "PrimitivModalContentElement",
|
|
1759
|
+
"declaration": {
|
|
1760
|
+
"name": "PrimitivModalContentElement",
|
|
1761
|
+
"module": "src/modal/elements.ts"
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"kind": "js",
|
|
1766
|
+
"name": "PrimitivModalTitleElement",
|
|
1767
|
+
"declaration": {
|
|
1768
|
+
"name": "PrimitivModalTitleElement",
|
|
1769
|
+
"module": "src/modal/elements.ts"
|
|
1770
|
+
}
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"kind": "js",
|
|
1774
|
+
"name": "PrimitivModalDescriptionElement",
|
|
1775
|
+
"declaration": {
|
|
1776
|
+
"name": "PrimitivModalDescriptionElement",
|
|
1777
|
+
"module": "src/modal/elements.ts"
|
|
1778
|
+
}
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"kind": "js",
|
|
1782
|
+
"name": "PrimitivModalCloseElement",
|
|
1783
|
+
"declaration": {
|
|
1784
|
+
"name": "PrimitivModalCloseElement",
|
|
1785
|
+
"module": "src/modal/elements.ts"
|
|
1786
|
+
}
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"kind": "js",
|
|
1790
|
+
"name": "defineModal",
|
|
1791
|
+
"declaration": {
|
|
1792
|
+
"name": "defineModal",
|
|
1793
|
+
"module": "src/modal/elements.ts"
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
]
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
"kind": "javascript-module",
|
|
1800
|
+
"path": "src/popover/elements.ts",
|
|
1801
|
+
"declarations": [
|
|
1802
|
+
{
|
|
1803
|
+
"kind": "class",
|
|
1804
|
+
"description": "`<primitiv-popover>` — the state owner of a non-modal popover: a trigger\nthat opens a floating panel, built on the native Popover API. The browser\nputs the panel in the top layer and light-dismisses it; the element adds the\nrest of the WAI-ARIA non-modal dialog pattern — focus moves into the panel\nas it opens, Escape closes it and hands focus back to the trigger, and the\ntrigger's `aria-expanded` follows it.\n\nThe panel is shown with its trigger (or the anchor) as its source, which\nmakes that element the panel's implicit anchor, so CSS anchor positioning\n(`position-area`) places it with no `anchor-name` to wire.\n\nThe root finds its own parts, so a popover nested in a panel keeps its own,\nand reconciles their ARIA from its reflected state whenever a part arrives,\nleaves, or changes an attribute the root reads (the lifecycle is\n`PrimitivRootElement`'s).",
|
|
1805
|
+
"name": "PrimitivPopoverElement",
|
|
1806
|
+
"members": [
|
|
1807
|
+
{
|
|
1808
|
+
"kind": "field",
|
|
1809
|
+
"name": "#content",
|
|
1810
|
+
"privacy": "private",
|
|
1811
|
+
"type": {
|
|
1812
|
+
"text": "HTMLElement | null"
|
|
1813
|
+
},
|
|
1814
|
+
"default": "null",
|
|
1815
|
+
"description": "The panel the root currently decorates, and the controller over it."
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"kind": "field",
|
|
1819
|
+
"name": "#popover",
|
|
1820
|
+
"privacy": "private",
|
|
1821
|
+
"type": {
|
|
1822
|
+
"text": "PopoverController | null"
|
|
1823
|
+
},
|
|
1824
|
+
"default": "null"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"kind": "field",
|
|
1828
|
+
"name": "#trigger",
|
|
1829
|
+
"privacy": "private",
|
|
1830
|
+
"type": {
|
|
1831
|
+
"text": "HTMLElement | null"
|
|
1832
|
+
},
|
|
1833
|
+
"default": "null",
|
|
1834
|
+
"description": "The decorated trigger and close buttons, and the anchor, as of the last reconcile."
|
|
1835
|
+
},
|
|
1836
|
+
{
|
|
1837
|
+
"kind": "field",
|
|
1838
|
+
"name": "#anchor",
|
|
1839
|
+
"privacy": "private",
|
|
1840
|
+
"type": {
|
|
1841
|
+
"text": "HTMLElement | null"
|
|
1842
|
+
},
|
|
1843
|
+
"default": "null"
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
"kind": "field",
|
|
1847
|
+
"name": "#closers",
|
|
1848
|
+
"privacy": "private",
|
|
1849
|
+
"type": {
|
|
1850
|
+
"text": "HTMLElement[]"
|
|
1851
|
+
},
|
|
1852
|
+
"default": "[]"
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
"kind": "field",
|
|
1856
|
+
"name": "#listening",
|
|
1857
|
+
"privacy": "private",
|
|
1858
|
+
"type": {
|
|
1859
|
+
"text": "AbortController | null"
|
|
1860
|
+
},
|
|
1861
|
+
"default": "null",
|
|
1862
|
+
"description": "The root's own click listener, while connected."
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
"kind": "field",
|
|
1866
|
+
"name": "controller",
|
|
1867
|
+
"type": {
|
|
1868
|
+
"text": "{ connect(): void; disconnect(): void }"
|
|
1869
|
+
},
|
|
1870
|
+
"privacy": "protected",
|
|
1871
|
+
"readonly": true,
|
|
1872
|
+
"default": "{ connect: (): void => this.#connect(), disconnect: (): void => this.#disconnect(), }"
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
"kind": "field",
|
|
1876
|
+
"name": "reconcileOn",
|
|
1877
|
+
"type": {
|
|
1878
|
+
"text": "readonly string[]"
|
|
1879
|
+
},
|
|
1880
|
+
"privacy": "protected",
|
|
1881
|
+
"readonly": true,
|
|
1882
|
+
"default": "[\"open\"]"
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
"kind": "field",
|
|
1886
|
+
"name": "open",
|
|
1887
|
+
"type": {
|
|
1888
|
+
"text": "boolean"
|
|
1889
|
+
},
|
|
1890
|
+
"description": "Whether the panel is open, reflected as the boolean `open` attribute."
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"kind": "method",
|
|
1894
|
+
"name": "#host",
|
|
1895
|
+
"privacy": "private",
|
|
1896
|
+
"return": {
|
|
1897
|
+
"type": {
|
|
1898
|
+
"text": "PopoverControllerHost"
|
|
1899
|
+
}
|
|
1900
|
+
},
|
|
1901
|
+
"description": "The controller's view of this element: state lives in the reflected attribute."
|
|
1902
|
+
},
|
|
1903
|
+
{
|
|
1904
|
+
"kind": "method",
|
|
1905
|
+
"name": "#change",
|
|
1906
|
+
"privacy": "private",
|
|
1907
|
+
"return": {
|
|
1908
|
+
"type": {
|
|
1909
|
+
"text": "void"
|
|
1910
|
+
}
|
|
1911
|
+
},
|
|
1912
|
+
"parameters": [
|
|
1913
|
+
{
|
|
1914
|
+
"name": "open",
|
|
1915
|
+
"type": {
|
|
1916
|
+
"text": "boolean"
|
|
1917
|
+
}
|
|
1918
|
+
}
|
|
1919
|
+
],
|
|
1920
|
+
"description": "A change the user asked for: announced first, so a listener can veto it."
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"kind": "method",
|
|
1924
|
+
"name": "#connect",
|
|
1925
|
+
"privacy": "private",
|
|
1926
|
+
"return": {
|
|
1927
|
+
"type": {
|
|
1928
|
+
"text": "void"
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"kind": "method",
|
|
1934
|
+
"name": "#disconnect",
|
|
1935
|
+
"privacy": "private",
|
|
1936
|
+
"return": {
|
|
1937
|
+
"type": {
|
|
1938
|
+
"text": "void"
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"kind": "method",
|
|
1944
|
+
"name": "#click",
|
|
1945
|
+
"privacy": "private",
|
|
1946
|
+
"return": {
|
|
1947
|
+
"type": {
|
|
1948
|
+
"text": "void"
|
|
1949
|
+
}
|
|
1950
|
+
},
|
|
1951
|
+
"parameters": [
|
|
1952
|
+
{
|
|
1953
|
+
"name": "event",
|
|
1954
|
+
"type": {
|
|
1955
|
+
"text": "MouseEvent"
|
|
1956
|
+
}
|
|
1957
|
+
}
|
|
1958
|
+
]
|
|
1959
|
+
},
|
|
1960
|
+
{
|
|
1961
|
+
"kind": "method",
|
|
1962
|
+
"name": "#use",
|
|
1963
|
+
"privacy": "private",
|
|
1964
|
+
"return": {
|
|
1965
|
+
"type": {
|
|
1966
|
+
"text": "void"
|
|
1967
|
+
}
|
|
1968
|
+
},
|
|
1969
|
+
"parameters": [
|
|
1970
|
+
{
|
|
1971
|
+
"name": "content",
|
|
1972
|
+
"type": {
|
|
1973
|
+
"text": "HTMLElement | null"
|
|
1974
|
+
}
|
|
1975
|
+
}
|
|
1976
|
+
],
|
|
1977
|
+
"description": "Decorate `content` from now on: the controller follows it. Only a\nreconcile calls this, and a root reconciles only while connected, so the\nnew controller listens at once."
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
"kind": "method",
|
|
1981
|
+
"name": "reconcile",
|
|
1982
|
+
"privacy": "protected",
|
|
1983
|
+
"return": {
|
|
1984
|
+
"type": {
|
|
1985
|
+
"text": "void"
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
],
|
|
1990
|
+
"events": [
|
|
1991
|
+
{
|
|
1992
|
+
"type": {
|
|
1993
|
+
"text": "CustomEvent<{ open: boolean }>"
|
|
1994
|
+
},
|
|
1995
|
+
"description": "Bubbles, cancelable, fired before a user-driven change is applied — a trigger or close click, Escape, or a light dismiss — with the open state afterwards. Call `preventDefault()` to veto it.",
|
|
1996
|
+
"name": "primitiv-popover-change"
|
|
1997
|
+
}
|
|
1998
|
+
],
|
|
1999
|
+
"attributes": [
|
|
2000
|
+
{
|
|
2001
|
+
"type": {
|
|
2002
|
+
"text": "boolean"
|
|
2003
|
+
},
|
|
2004
|
+
"description": "Whether the panel is open. Reflected: it changes as the user opens and dismisses it, so a server re-render or a history snapshot sees the live state. Set it (or the `open` property) to open or close the panel from script.",
|
|
2005
|
+
"name": "open"
|
|
2006
|
+
}
|
|
2007
|
+
],
|
|
2008
|
+
"superclass": {
|
|
2009
|
+
"name": "PrimitivRootElement",
|
|
2010
|
+
"module": "/src/internal/RootElement.ts"
|
|
2011
|
+
},
|
|
2012
|
+
"tagName": "primitiv-popover",
|
|
2013
|
+
"customElement": true,
|
|
2014
|
+
"summary": "The state owner of a non-modal popover on the native Popover API."
|
|
2015
|
+
},
|
|
2016
|
+
{
|
|
2017
|
+
"kind": "class",
|
|
2018
|
+
"description": "`<primitiv-popover-trigger>` — an interactive part. It decorates exactly one\nchild the consumer writes, a `<button>`, which toggles the panel and receives\n`aria-haspopup=\"dialog\"`, `aria-expanded` and `aria-controls`, so the\nrendered DOM matches React's (RFC 0033 D24).",
|
|
2019
|
+
"name": "PrimitivPopoverTriggerElement",
|
|
2020
|
+
"superclass": {
|
|
2021
|
+
"name": "ElementBase",
|
|
2022
|
+
"module": "/src/internal/element.ts"
|
|
2023
|
+
},
|
|
2024
|
+
"tagName": "primitiv-popover-trigger",
|
|
2025
|
+
"customElement": true
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"kind": "class",
|
|
2029
|
+
"description": "`<primitiv-popover-anchor>` — optional. It decorates exactly one element the\nconsumer writes, which the panel is anchored to in place of the trigger: a\nfield, say, whose trigger is an icon inside it.",
|
|
2030
|
+
"name": "PrimitivPopoverAnchorElement",
|
|
2031
|
+
"superclass": {
|
|
2032
|
+
"name": "ElementBase",
|
|
2033
|
+
"module": "/src/internal/element.ts"
|
|
2034
|
+
},
|
|
2035
|
+
"tagName": "primitiv-popover-anchor",
|
|
2036
|
+
"customElement": true
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"kind": "class",
|
|
2040
|
+
"description": "`<primitiv-popover-content>` — the panel. Structural: the root gives it an\nid, `role=\"dialog\"`, `popover=\"auto\"` (write it in your markup too, so the\npanel is hidden before the script loads), `tabindex=\"-1\"`, `data-state`, and\n`aria-labelledby` / `aria-describedby` pointing at the title and description.",
|
|
2041
|
+
"name": "PrimitivPopoverContentElement",
|
|
2042
|
+
"superclass": {
|
|
2043
|
+
"name": "ElementBase",
|
|
2044
|
+
"module": "/src/internal/element.ts"
|
|
2045
|
+
},
|
|
2046
|
+
"tagName": "primitiv-popover-content",
|
|
2047
|
+
"customElement": true
|
|
2048
|
+
},
|
|
2049
|
+
{
|
|
2050
|
+
"kind": "class",
|
|
2051
|
+
"description": "`<primitiv-popover-title>` — decorates exactly one heading the consumer\nwrites, whose id becomes the panel's `aria-labelledby`.",
|
|
2052
|
+
"name": "PrimitivPopoverTitleElement",
|
|
2053
|
+
"superclass": {
|
|
2054
|
+
"name": "ElementBase",
|
|
2055
|
+
"module": "/src/internal/element.ts"
|
|
2056
|
+
},
|
|
2057
|
+
"tagName": "primitiv-popover-title",
|
|
2058
|
+
"customElement": true
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
"kind": "class",
|
|
2062
|
+
"description": "`<primitiv-popover-description>` — decorates exactly one element the\nconsumer writes (a `<p>`, usually), whose id becomes the panel's\n`aria-describedby`.",
|
|
2063
|
+
"name": "PrimitivPopoverDescriptionElement",
|
|
2064
|
+
"superclass": {
|
|
2065
|
+
"name": "ElementBase",
|
|
2066
|
+
"module": "/src/internal/element.ts"
|
|
2067
|
+
},
|
|
2068
|
+
"tagName": "primitiv-popover-description",
|
|
2069
|
+
"customElement": true
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"kind": "class",
|
|
2073
|
+
"description": "`<primitiv-popover-close>` — an interactive part. It decorates exactly one\n`<button>` the consumer writes, which closes the panel. A popover may have\nseveral.",
|
|
2074
|
+
"name": "PrimitivPopoverCloseElement",
|
|
2075
|
+
"superclass": {
|
|
2076
|
+
"name": "ElementBase",
|
|
2077
|
+
"module": "/src/internal/element.ts"
|
|
2078
|
+
},
|
|
2079
|
+
"tagName": "primitiv-popover-close",
|
|
2080
|
+
"customElement": true
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"kind": "function",
|
|
2084
|
+
"name": "definePopover",
|
|
2085
|
+
"return": {
|
|
2086
|
+
"type": {
|
|
2087
|
+
"text": "void"
|
|
2088
|
+
}
|
|
2089
|
+
},
|
|
2090
|
+
"parameters": [
|
|
2091
|
+
{
|
|
2092
|
+
"name": "registry",
|
|
2093
|
+
"default": "globalThis.customElements",
|
|
2094
|
+
"type": {
|
|
2095
|
+
"text": "ElementRegistry | undefined"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
],
|
|
2099
|
+
"description": "Define the seven Popover elements on `registry` (the global `customElements`\nby default). Safe to call more than once, and a no-op where there is no\nregistry (a server render)."
|
|
2100
|
+
}
|
|
2101
|
+
],
|
|
2102
|
+
"exports": [
|
|
2103
|
+
{
|
|
2104
|
+
"kind": "js",
|
|
2105
|
+
"name": "ElementRegistry",
|
|
2106
|
+
"declaration": {
|
|
2107
|
+
"name": "ElementRegistry",
|
|
2108
|
+
"module": "src/popover/elements.ts"
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
"kind": "js",
|
|
2113
|
+
"name": "PrimitivPopoverElement",
|
|
2114
|
+
"declaration": {
|
|
2115
|
+
"name": "PrimitivPopoverElement",
|
|
2116
|
+
"module": "src/popover/elements.ts"
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
{
|
|
2120
|
+
"kind": "js",
|
|
2121
|
+
"name": "PrimitivPopoverTriggerElement",
|
|
2122
|
+
"declaration": {
|
|
2123
|
+
"name": "PrimitivPopoverTriggerElement",
|
|
2124
|
+
"module": "src/popover/elements.ts"
|
|
2125
|
+
}
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
"kind": "js",
|
|
2129
|
+
"name": "PrimitivPopoverAnchorElement",
|
|
2130
|
+
"declaration": {
|
|
2131
|
+
"name": "PrimitivPopoverAnchorElement",
|
|
2132
|
+
"module": "src/popover/elements.ts"
|
|
2133
|
+
}
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
"kind": "js",
|
|
2137
|
+
"name": "PrimitivPopoverContentElement",
|
|
2138
|
+
"declaration": {
|
|
2139
|
+
"name": "PrimitivPopoverContentElement",
|
|
2140
|
+
"module": "src/popover/elements.ts"
|
|
2141
|
+
}
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
"kind": "js",
|
|
2145
|
+
"name": "PrimitivPopoverTitleElement",
|
|
2146
|
+
"declaration": {
|
|
2147
|
+
"name": "PrimitivPopoverTitleElement",
|
|
2148
|
+
"module": "src/popover/elements.ts"
|
|
2149
|
+
}
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"kind": "js",
|
|
2153
|
+
"name": "PrimitivPopoverDescriptionElement",
|
|
2154
|
+
"declaration": {
|
|
2155
|
+
"name": "PrimitivPopoverDescriptionElement",
|
|
2156
|
+
"module": "src/popover/elements.ts"
|
|
2157
|
+
}
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"kind": "js",
|
|
2161
|
+
"name": "PrimitivPopoverCloseElement",
|
|
2162
|
+
"declaration": {
|
|
2163
|
+
"name": "PrimitivPopoverCloseElement",
|
|
2164
|
+
"module": "src/popover/elements.ts"
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"kind": "js",
|
|
2169
|
+
"name": "definePopover",
|
|
2170
|
+
"declaration": {
|
|
2171
|
+
"name": "definePopover",
|
|
2172
|
+
"module": "src/popover/elements.ts"
|
|
2173
|
+
}
|
|
2174
|
+
}
|
|
2175
|
+
]
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
"kind": "javascript-module",
|
|
2179
|
+
"path": "src/tabs/elements.ts",
|
|
2180
|
+
"declarations": [
|
|
2181
|
+
{
|
|
2182
|
+
"kind": "class",
|
|
2183
|
+
"description": "`<primitiv-tabs>` — the state owner of a WAI-ARIA tab set.\n\nThe root finds its own parts, so a tab set nested in a panel keeps its own,\nand reconciles their ARIA from its reflected state whenever a part arrives,\nleaves, or changes an attribute the root reads (the lifecycle is\n`PrimitivRootElement`'s). `activation-mode` is read live at each key press,\nso a change to it needs no reconcile.",
|
|
2184
|
+
"name": "PrimitivTabsElement",
|
|
2185
|
+
"members": [
|
|
2186
|
+
{
|
|
2187
|
+
"kind": "field",
|
|
2188
|
+
"name": "#shown",
|
|
2189
|
+
"privacy": "private",
|
|
2190
|
+
"type": {
|
|
2191
|
+
"text": "string | undefined"
|
|
2192
|
+
},
|
|
2193
|
+
"description": "The value of the panel last shown, so a change fires primitiv-tabs-show."
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"kind": "field",
|
|
2197
|
+
"name": "#rendered",
|
|
2198
|
+
"privacy": "private",
|
|
2199
|
+
"type": {
|
|
2200
|
+
"text": "boolean"
|
|
2201
|
+
},
|
|
2202
|
+
"default": "false"
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
"kind": "field",
|
|
2206
|
+
"name": "controller",
|
|
2207
|
+
"type": {
|
|
2208
|
+
"text": "TabsController"
|
|
2209
|
+
},
|
|
2210
|
+
"privacy": "protected",
|
|
2211
|
+
"readonly": true,
|
|
2212
|
+
"default": "new TabsController(this, this.#host())"
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
"kind": "field",
|
|
2216
|
+
"name": "reconcileOn",
|
|
2217
|
+
"type": {
|
|
2218
|
+
"text": "readonly string[]"
|
|
2219
|
+
},
|
|
2220
|
+
"privacy": "protected",
|
|
2221
|
+
"readonly": true,
|
|
2222
|
+
"default": "[\"value\", \"disabled\", \"label\", \"orientation\"]"
|
|
2223
|
+
},
|
|
2224
|
+
{
|
|
2225
|
+
"kind": "field",
|
|
2226
|
+
"name": "value",
|
|
2227
|
+
"type": {
|
|
2228
|
+
"text": "string | undefined"
|
|
2229
|
+
},
|
|
2230
|
+
"description": "The active tab's value, reflected as the `value` attribute."
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
"kind": "method",
|
|
2234
|
+
"name": "#host",
|
|
2235
|
+
"privacy": "private",
|
|
2236
|
+
"return": {
|
|
2237
|
+
"type": {
|
|
2238
|
+
"text": "TabsControllerHost"
|
|
2239
|
+
}
|
|
2240
|
+
},
|
|
2241
|
+
"description": "The controller's view of this element: state lives in reflected attributes."
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"kind": "method",
|
|
2245
|
+
"name": "#activationMode",
|
|
2246
|
+
"privacy": "private",
|
|
2247
|
+
"return": {
|
|
2248
|
+
"type": {
|
|
2249
|
+
"text": "TabsActivationMode"
|
|
2250
|
+
}
|
|
2251
|
+
}
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"kind": "method",
|
|
2255
|
+
"name": "#orientation",
|
|
2256
|
+
"privacy": "private",
|
|
2257
|
+
"return": {
|
|
2258
|
+
"type": {
|
|
2259
|
+
"text": "TabsOrientation"
|
|
2260
|
+
}
|
|
2261
|
+
}
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
"kind": "method",
|
|
2265
|
+
"name": "reconcile",
|
|
2266
|
+
"privacy": "protected",
|
|
2267
|
+
"return": {
|
|
2268
|
+
"type": {
|
|
2269
|
+
"text": "void"
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
],
|
|
2274
|
+
"events": [
|
|
2275
|
+
{
|
|
2276
|
+
"type": {
|
|
2277
|
+
"text": "CustomEvent<{ value: string; index: number }>"
|
|
2278
|
+
},
|
|
2279
|
+
"description": "Bubbles, cancelable, fired before a user-driven change is applied. Call `preventDefault()` to veto it.",
|
|
2280
|
+
"name": "primitiv-tabs-change"
|
|
2281
|
+
}
|
|
2282
|
+
],
|
|
2283
|
+
"attributes": [
|
|
2284
|
+
{
|
|
2285
|
+
"type": {
|
|
2286
|
+
"text": "string"
|
|
2287
|
+
},
|
|
2288
|
+
"description": "The active tab's value. Reflected: it moves as the user switches tabs, so a server re-render or a history snapshot sees the live selection.",
|
|
2289
|
+
"name": "value"
|
|
2290
|
+
},
|
|
2291
|
+
{
|
|
2292
|
+
"type": {
|
|
2293
|
+
"text": "\"horizontal\" | \"vertical\""
|
|
2294
|
+
},
|
|
2295
|
+
"description": "Layout axis, which picks the arrow-key pair. Defaults to `horizontal`.",
|
|
2296
|
+
"name": "orientation"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"type": {
|
|
2300
|
+
"text": "\"automatic\" | \"manual\""
|
|
2301
|
+
},
|
|
2302
|
+
"description": "`automatic` activates a tab as focus arrives; `manual` waits for Enter or Space. Defaults to `automatic`.",
|
|
2303
|
+
"name": "activation-mode"
|
|
2304
|
+
}
|
|
2305
|
+
],
|
|
2306
|
+
"superclass": {
|
|
2307
|
+
"name": "PrimitivRootElement",
|
|
2308
|
+
"module": "/src/internal/RootElement.ts"
|
|
2309
|
+
},
|
|
2310
|
+
"tagName": "primitiv-tabs",
|
|
2311
|
+
"customElement": true,
|
|
2312
|
+
"summary": "The state owner of a WAI-ARIA tab set."
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"kind": "class",
|
|
2316
|
+
"description": "`<primitiv-tabs-list>` — the tablist. Structural: the root writes its ARIA.",
|
|
2317
|
+
"name": "PrimitivTabsListElement",
|
|
2318
|
+
"attributes": [
|
|
2319
|
+
{
|
|
2320
|
+
"type": {
|
|
2321
|
+
"text": "string"
|
|
2322
|
+
},
|
|
2323
|
+
"description": "The tablist's accessible name. Give this or `aria-labelledby`.",
|
|
2324
|
+
"name": "label"
|
|
2325
|
+
}
|
|
2326
|
+
],
|
|
2327
|
+
"superclass": {
|
|
2328
|
+
"name": "ElementBase",
|
|
2329
|
+
"module": "/src/internal/element.ts"
|
|
2330
|
+
},
|
|
2331
|
+
"tagName": "primitiv-tabs-list",
|
|
2332
|
+
"customElement": true
|
|
2333
|
+
},
|
|
2334
|
+
{
|
|
2335
|
+
"kind": "class",
|
|
2336
|
+
"description": "`<primitiv-tabs-trigger>` — an interactive part. It decorates exactly one\nchild the consumer writes (a `<button>`, an `<a href>`, a router link), which\nreceives the tab role, so the rendered DOM matches React's `<button role=\"tab\">`\n(RFC 0033 D24).",
|
|
2337
|
+
"name": "PrimitivTabsTriggerElement",
|
|
2338
|
+
"attributes": [
|
|
2339
|
+
{
|
|
2340
|
+
"type": {
|
|
2341
|
+
"text": "string"
|
|
2342
|
+
},
|
|
2343
|
+
"description": "The tab's value, pairing it with the panel of the same value.",
|
|
2344
|
+
"name": "value"
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"type": {
|
|
2348
|
+
"text": "boolean"
|
|
2349
|
+
},
|
|
2350
|
+
"description": "Marks the tab disabled: arrow keys still land on it, but it never activates.",
|
|
2351
|
+
"name": "disabled"
|
|
2352
|
+
}
|
|
2353
|
+
],
|
|
2354
|
+
"superclass": {
|
|
2355
|
+
"name": "ElementBase",
|
|
2356
|
+
"module": "/src/internal/element.ts"
|
|
2357
|
+
},
|
|
2358
|
+
"tagName": "primitiv-tabs-trigger",
|
|
2359
|
+
"customElement": true
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
"kind": "class",
|
|
2363
|
+
"description": "`<primitiv-tabs-content>` — a tab panel. Structural: the root writes its ARIA.",
|
|
2364
|
+
"name": "PrimitivTabsContentElement",
|
|
2365
|
+
"events": [
|
|
2366
|
+
{
|
|
2367
|
+
"type": {
|
|
2368
|
+
"text": "CustomEvent"
|
|
2369
|
+
},
|
|
2370
|
+
"description": "Bubbles from the panel as it becomes active (not on first render), so a lazy panel can fetch its content.",
|
|
2371
|
+
"name": "primitiv-tabs-show"
|
|
2372
|
+
}
|
|
2373
|
+
],
|
|
2374
|
+
"attributes": [
|
|
2375
|
+
{
|
|
2376
|
+
"type": {
|
|
2377
|
+
"text": "string"
|
|
2378
|
+
},
|
|
2379
|
+
"description": "The panel's value, pairing it with the tab of the same value.",
|
|
2380
|
+
"name": "value"
|
|
2381
|
+
}
|
|
2382
|
+
],
|
|
2383
|
+
"superclass": {
|
|
2384
|
+
"name": "ElementBase",
|
|
2385
|
+
"module": "/src/internal/element.ts"
|
|
2386
|
+
},
|
|
2387
|
+
"tagName": "primitiv-tabs-content",
|
|
2388
|
+
"customElement": true
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"kind": "function",
|
|
2392
|
+
"name": "defineTabs",
|
|
2393
|
+
"return": {
|
|
2394
|
+
"type": {
|
|
2395
|
+
"text": "void"
|
|
2396
|
+
}
|
|
2397
|
+
},
|
|
2398
|
+
"parameters": [
|
|
2399
|
+
{
|
|
2400
|
+
"name": "registry",
|
|
2401
|
+
"default": "globalThis.customElements",
|
|
2402
|
+
"type": {
|
|
2403
|
+
"text": "ElementRegistry | undefined"
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
],
|
|
2407
|
+
"description": "Define the four Tabs elements on `registry` (the global `customElements` by\ndefault, so a scoped registry can be passed when browsers support one). Safe\nto call more than once, and a no-op where there is no registry (a server\nrender)."
|
|
2408
|
+
}
|
|
2409
|
+
],
|
|
2410
|
+
"exports": [
|
|
2411
|
+
{
|
|
2412
|
+
"kind": "js",
|
|
2413
|
+
"name": "ElementRegistry",
|
|
2414
|
+
"declaration": {
|
|
2415
|
+
"name": "ElementRegistry",
|
|
2416
|
+
"module": "src/tabs/elements.ts"
|
|
2417
|
+
}
|
|
2418
|
+
},
|
|
2419
|
+
{
|
|
2420
|
+
"kind": "js",
|
|
2421
|
+
"name": "PrimitivTabsElement",
|
|
2422
|
+
"declaration": {
|
|
2423
|
+
"name": "PrimitivTabsElement",
|
|
2424
|
+
"module": "src/tabs/elements.ts"
|
|
2425
|
+
}
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
"kind": "js",
|
|
2429
|
+
"name": "PrimitivTabsListElement",
|
|
2430
|
+
"declaration": {
|
|
2431
|
+
"name": "PrimitivTabsListElement",
|
|
2432
|
+
"module": "src/tabs/elements.ts"
|
|
2433
|
+
}
|
|
2434
|
+
},
|
|
2435
|
+
{
|
|
2436
|
+
"kind": "js",
|
|
2437
|
+
"name": "PrimitivTabsTriggerElement",
|
|
2438
|
+
"declaration": {
|
|
2439
|
+
"name": "PrimitivTabsTriggerElement",
|
|
2440
|
+
"module": "src/tabs/elements.ts"
|
|
2441
|
+
}
|
|
2442
|
+
},
|
|
2443
|
+
{
|
|
2444
|
+
"kind": "js",
|
|
2445
|
+
"name": "PrimitivTabsContentElement",
|
|
2446
|
+
"declaration": {
|
|
2447
|
+
"name": "PrimitivTabsContentElement",
|
|
2448
|
+
"module": "src/tabs/elements.ts"
|
|
2449
|
+
}
|
|
2450
|
+
},
|
|
2451
|
+
{
|
|
2452
|
+
"kind": "js",
|
|
2453
|
+
"name": "defineTabs",
|
|
2454
|
+
"declaration": {
|
|
2455
|
+
"name": "defineTabs",
|
|
2456
|
+
"module": "src/tabs/elements.ts"
|
|
2457
|
+
}
|
|
2458
|
+
}
|
|
2459
|
+
]
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
"kind": "javascript-module",
|
|
2463
|
+
"path": "src/tooltip/elements.ts",
|
|
2464
|
+
"declarations": [
|
|
2465
|
+
{
|
|
2466
|
+
"kind": "class",
|
|
2467
|
+
"description": "`<primitiv-tooltip-provider>` — optional. The tooltips inside it share one\nskip-delay window and its default delay, as inside React's\n`Tooltip.Provider`; tooltips outside any provider share a document-wide one.",
|
|
2468
|
+
"name": "PrimitivTooltipProviderElement",
|
|
2469
|
+
"members": [
|
|
2470
|
+
{
|
|
2471
|
+
"kind": "field",
|
|
2472
|
+
"name": "#group",
|
|
2473
|
+
"privacy": "private",
|
|
2474
|
+
"type": {
|
|
2475
|
+
"text": "TooltipGroup | undefined"
|
|
2476
|
+
}
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
"kind": "field",
|
|
2480
|
+
"name": "group",
|
|
2481
|
+
"type": {
|
|
2482
|
+
"text": "TooltipGroup"
|
|
2483
|
+
},
|
|
2484
|
+
"description": "The skip-delay window this provider's tooltips share, created on first use.",
|
|
2485
|
+
"readonly": true
|
|
2486
|
+
}
|
|
2487
|
+
],
|
|
2488
|
+
"attributes": [
|
|
2489
|
+
{
|
|
2490
|
+
"type": {
|
|
2491
|
+
"text": "number"
|
|
2492
|
+
},
|
|
2493
|
+
"description": "How long, in milliseconds, a pointer rests on a trigger before its tooltip opens. Default 700. A tooltip's own `delay-duration` overrides it.",
|
|
2494
|
+
"name": "delay-duration"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"type": {
|
|
2498
|
+
"text": "number"
|
|
2499
|
+
},
|
|
2500
|
+
"description": "How long, in milliseconds, after one tooltip closes that hovering another opens it at once. Default 300.",
|
|
2501
|
+
"name": "skip-delay-duration"
|
|
2502
|
+
}
|
|
2503
|
+
],
|
|
2504
|
+
"superclass": {
|
|
2505
|
+
"name": "ElementBase",
|
|
2506
|
+
"module": "/src/internal/element.ts"
|
|
2507
|
+
},
|
|
2508
|
+
"tagName": "primitiv-tooltip-provider",
|
|
2509
|
+
"customElement": true
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
"kind": "class",
|
|
2513
|
+
"description": "`<primitiv-tooltip>` — the state owner of a tooltip: a short description of\nits trigger that appears on hover after a delay, and at once on focus. It\ncloses when the pointer leaves (after a moment, so it can be reached),\non blur, on Escape and on a press outside. Moving from one trigger to the\nnext opens each next tooltip at once (the skip delay). The tooltip is shown\nas a `popover=\"manual\"` in the top layer, with the trigger as its source,\nwhich makes the trigger its implicit anchor for CSS anchor positioning.\n\nThe root finds its own parts and reconciles their ARIA from its reflected\nstate whenever a part arrives, leaves, or changes an attribute the root\nreads (the lifecycle is `PrimitivRootElement`'s).",
|
|
2514
|
+
"name": "PrimitivTooltipElement",
|
|
1276
2515
|
"members": [
|
|
2516
|
+
{
|
|
2517
|
+
"kind": "field",
|
|
2518
|
+
"name": "#trigger",
|
|
2519
|
+
"privacy": "private",
|
|
2520
|
+
"type": {
|
|
2521
|
+
"text": "HTMLElement | null"
|
|
2522
|
+
},
|
|
2523
|
+
"default": "null",
|
|
2524
|
+
"description": "The decorated trigger button and the tooltip, as of the last reconcile."
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"kind": "field",
|
|
2528
|
+
"name": "#content",
|
|
2529
|
+
"privacy": "private",
|
|
2530
|
+
"type": {
|
|
2531
|
+
"text": "HTMLElement | null"
|
|
2532
|
+
},
|
|
2533
|
+
"default": "null"
|
|
2534
|
+
},
|
|
1277
2535
|
{
|
|
1278
2536
|
"kind": "field",
|
|
1279
2537
|
"name": "#shown",
|
|
1280
2538
|
"privacy": "private",
|
|
1281
2539
|
"type": {
|
|
1282
|
-
"text": "
|
|
2540
|
+
"text": "HTMLElement | null"
|
|
1283
2541
|
},
|
|
1284
|
-
"
|
|
2542
|
+
"default": "null",
|
|
2543
|
+
"description": "The tooltip this root has shown, while it shows."
|
|
1285
2544
|
},
|
|
1286
2545
|
{
|
|
1287
2546
|
"kind": "field",
|
|
1288
|
-
"name": "#
|
|
2547
|
+
"name": "#bindings",
|
|
1289
2548
|
"privacy": "private",
|
|
1290
2549
|
"type": {
|
|
1291
|
-
"text": "
|
|
2550
|
+
"text": "AbortController | null"
|
|
1292
2551
|
},
|
|
1293
|
-
"default": "
|
|
2552
|
+
"default": "null",
|
|
2553
|
+
"description": "The listeners on the trigger and the tooltip, rebuilt when either changes."
|
|
2554
|
+
},
|
|
2555
|
+
{
|
|
2556
|
+
"kind": "field",
|
|
2557
|
+
"name": "#tooltip",
|
|
2558
|
+
"privacy": "private",
|
|
2559
|
+
"readonly": true,
|
|
2560
|
+
"default": "new TooltipController(this.#host())"
|
|
1294
2561
|
},
|
|
1295
2562
|
{
|
|
1296
2563
|
"kind": "field",
|
|
1297
2564
|
"name": "controller",
|
|
1298
2565
|
"type": {
|
|
1299
|
-
"text": "
|
|
2566
|
+
"text": "{ connect(): void; disconnect(): void }"
|
|
1300
2567
|
},
|
|
1301
2568
|
"privacy": "protected",
|
|
1302
2569
|
"readonly": true,
|
|
1303
|
-
"default": "
|
|
2570
|
+
"default": "{ connect: (): void => {}, disconnect: (): void => this.#disconnect(), }"
|
|
1304
2571
|
},
|
|
1305
2572
|
{
|
|
1306
2573
|
"kind": "field",
|
|
@@ -1310,15 +2577,15 @@
|
|
|
1310
2577
|
},
|
|
1311
2578
|
"privacy": "protected",
|
|
1312
2579
|
"readonly": true,
|
|
1313
|
-
"default": "[\"
|
|
2580
|
+
"default": "[\"open\"]"
|
|
1314
2581
|
},
|
|
1315
2582
|
{
|
|
1316
2583
|
"kind": "field",
|
|
1317
|
-
"name": "
|
|
2584
|
+
"name": "open",
|
|
1318
2585
|
"type": {
|
|
1319
|
-
"text": "
|
|
2586
|
+
"text": "boolean"
|
|
1320
2587
|
},
|
|
1321
|
-
"description": "
|
|
2588
|
+
"description": "Whether the tooltip is showing, reflected as the boolean `open` attribute."
|
|
1322
2589
|
},
|
|
1323
2590
|
{
|
|
1324
2591
|
"kind": "method",
|
|
@@ -1326,30 +2593,45 @@
|
|
|
1326
2593
|
"privacy": "private",
|
|
1327
2594
|
"return": {
|
|
1328
2595
|
"type": {
|
|
1329
|
-
"text": "
|
|
2596
|
+
"text": "TooltipControllerHost"
|
|
1330
2597
|
}
|
|
1331
2598
|
},
|
|
1332
|
-
"description": "The controller's view of this element: state lives in reflected
|
|
2599
|
+
"description": "The controller's view of this element: state lives in the reflected attribute."
|
|
1333
2600
|
},
|
|
1334
2601
|
{
|
|
1335
2602
|
"kind": "method",
|
|
1336
|
-
"name": "#
|
|
2603
|
+
"name": "#disconnect",
|
|
1337
2604
|
"privacy": "private",
|
|
1338
2605
|
"return": {
|
|
1339
2606
|
"type": {
|
|
1340
|
-
"text": "
|
|
2607
|
+
"text": "void"
|
|
1341
2608
|
}
|
|
1342
2609
|
}
|
|
1343
2610
|
},
|
|
1344
2611
|
{
|
|
1345
2612
|
"kind": "method",
|
|
1346
|
-
"name": "#
|
|
2613
|
+
"name": "#bind",
|
|
1347
2614
|
"privacy": "private",
|
|
1348
2615
|
"return": {
|
|
1349
2616
|
"type": {
|
|
1350
|
-
"text": "
|
|
2617
|
+
"text": "void"
|
|
1351
2618
|
}
|
|
1352
|
-
}
|
|
2619
|
+
},
|
|
2620
|
+
"parameters": [
|
|
2621
|
+
{
|
|
2622
|
+
"name": "trigger",
|
|
2623
|
+
"type": {
|
|
2624
|
+
"text": "HTMLElement | null"
|
|
2625
|
+
}
|
|
2626
|
+
},
|
|
2627
|
+
{
|
|
2628
|
+
"name": "content",
|
|
2629
|
+
"type": {
|
|
2630
|
+
"text": "HTMLElement | null"
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
],
|
|
2634
|
+
"description": "Listen on `trigger` and `content`, rebinding only when either changed."
|
|
1353
2635
|
},
|
|
1354
2636
|
{
|
|
1355
2637
|
"kind": "method",
|
|
@@ -1360,127 +2642,103 @@
|
|
|
1360
2642
|
"text": "void"
|
|
1361
2643
|
}
|
|
1362
2644
|
}
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
"kind": "method",
|
|
2648
|
+
"name": "#show",
|
|
2649
|
+
"privacy": "private",
|
|
2650
|
+
"return": {
|
|
2651
|
+
"type": {
|
|
2652
|
+
"text": "void"
|
|
2653
|
+
}
|
|
2654
|
+
},
|
|
2655
|
+
"parameters": [
|
|
2656
|
+
{
|
|
2657
|
+
"name": "content",
|
|
2658
|
+
"type": {
|
|
2659
|
+
"text": "HTMLElement | null"
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
],
|
|
2663
|
+
"description": "Show `content` (anchored to the trigger), or hide what is showing when it is `null`."
|
|
1363
2664
|
}
|
|
1364
2665
|
],
|
|
1365
2666
|
"events": [
|
|
1366
2667
|
{
|
|
1367
2668
|
"type": {
|
|
1368
|
-
"text": "CustomEvent<{
|
|
2669
|
+
"text": "CustomEvent<{ open: boolean }>"
|
|
1369
2670
|
},
|
|
1370
|
-
"description": "Bubbles, cancelable, fired before a user-driven change is applied. Call `preventDefault()` to veto it.",
|
|
1371
|
-
"name": "primitiv-
|
|
2671
|
+
"description": "Bubbles, cancelable, fired before a user-driven change is applied — hover, focus, blur, Escape or a press outside — with the open state afterwards. Call `preventDefault()` to veto it.",
|
|
2672
|
+
"name": "primitiv-tooltip-change"
|
|
1372
2673
|
}
|
|
1373
2674
|
],
|
|
1374
2675
|
"attributes": [
|
|
1375
2676
|
{
|
|
1376
2677
|
"type": {
|
|
1377
|
-
"text": "
|
|
2678
|
+
"text": "boolean"
|
|
1378
2679
|
},
|
|
1379
|
-
"description": "
|
|
1380
|
-
"name": "
|
|
2680
|
+
"description": "Whether the tooltip is showing. Reflected: it changes as the user hovers, focuses and dismisses it. Set it (or the `open` property) to show or hide it from script.",
|
|
2681
|
+
"name": "open"
|
|
1381
2682
|
},
|
|
1382
2683
|
{
|
|
1383
2684
|
"type": {
|
|
1384
|
-
"text": "
|
|
2685
|
+
"text": "number"
|
|
1385
2686
|
},
|
|
1386
|
-
"description": "
|
|
1387
|
-
"name": "
|
|
2687
|
+
"description": "How long, in milliseconds, a pointer rests on the trigger before the tooltip opens. Defaults to the provider's, or 700. Focus always opens it at once.",
|
|
2688
|
+
"name": "delay-duration"
|
|
1388
2689
|
},
|
|
1389
2690
|
{
|
|
1390
2691
|
"type": {
|
|
1391
|
-
"text": "
|
|
2692
|
+
"text": "boolean"
|
|
1392
2693
|
},
|
|
1393
|
-
"description": "
|
|
1394
|
-
"name": "
|
|
2694
|
+
"description": "Close as soon as the pointer leaves the trigger, rather than giving it a moment to reach the tooltip.",
|
|
2695
|
+
"name": "disable-hoverable-content"
|
|
1395
2696
|
}
|
|
1396
2697
|
],
|
|
1397
2698
|
"superclass": {
|
|
1398
2699
|
"name": "PrimitivRootElement",
|
|
1399
2700
|
"module": "/src/internal/RootElement.ts"
|
|
1400
2701
|
},
|
|
1401
|
-
"tagName": "primitiv-
|
|
2702
|
+
"tagName": "primitiv-tooltip",
|
|
1402
2703
|
"customElement": true,
|
|
1403
|
-
"summary": "The state owner of a
|
|
2704
|
+
"summary": "The state owner of a tooltip, shown on hover and focus."
|
|
1404
2705
|
},
|
|
1405
2706
|
{
|
|
1406
2707
|
"kind": "class",
|
|
1407
|
-
"description": "`<primitiv-
|
|
1408
|
-
"name": "
|
|
1409
|
-
"attributes": [
|
|
1410
|
-
{
|
|
1411
|
-
"type": {
|
|
1412
|
-
"text": "string"
|
|
1413
|
-
},
|
|
1414
|
-
"description": "The tablist's accessible name. Give this or `aria-labelledby`.",
|
|
1415
|
-
"name": "label"
|
|
1416
|
-
}
|
|
1417
|
-
],
|
|
2708
|
+
"description": "`<primitiv-tooltip-trigger>` — an interactive part. It decorates exactly one\nchild the consumer writes, a `<button>`, which opens the tooltip on hover and\nfocus and is described by it (`aria-describedby`), so the rendered DOM\nmatches React's (RFC 0033 D24).",
|
|
2709
|
+
"name": "PrimitivTooltipTriggerElement",
|
|
1418
2710
|
"superclass": {
|
|
1419
2711
|
"name": "ElementBase",
|
|
1420
2712
|
"module": "/src/internal/element.ts"
|
|
1421
2713
|
},
|
|
1422
|
-
"tagName": "primitiv-
|
|
2714
|
+
"tagName": "primitiv-tooltip-trigger",
|
|
1423
2715
|
"customElement": true
|
|
1424
2716
|
},
|
|
1425
2717
|
{
|
|
1426
2718
|
"kind": "class",
|
|
1427
|
-
"description": "`<primitiv-
|
|
1428
|
-
"name": "
|
|
1429
|
-
"attributes": [
|
|
1430
|
-
{
|
|
1431
|
-
"type": {
|
|
1432
|
-
"text": "string"
|
|
1433
|
-
},
|
|
1434
|
-
"description": "The tab's value, pairing it with the panel of the same value.",
|
|
1435
|
-
"name": "value"
|
|
1436
|
-
},
|
|
1437
|
-
{
|
|
1438
|
-
"type": {
|
|
1439
|
-
"text": "boolean"
|
|
1440
|
-
},
|
|
1441
|
-
"description": "Marks the tab disabled: arrow keys still land on it, but it never activates.",
|
|
1442
|
-
"name": "disabled"
|
|
1443
|
-
}
|
|
1444
|
-
],
|
|
2719
|
+
"description": "`<primitiv-tooltip-content>` — the tooltip itself. Structural: the root\ngives it an id, `role=\"tooltip\"`, `popover=\"manual\"` (write it in your markup\ntoo, so it is hidden before the script loads) and `data-state`.",
|
|
2720
|
+
"name": "PrimitivTooltipContentElement",
|
|
1445
2721
|
"superclass": {
|
|
1446
2722
|
"name": "ElementBase",
|
|
1447
2723
|
"module": "/src/internal/element.ts"
|
|
1448
2724
|
},
|
|
1449
|
-
"tagName": "primitiv-
|
|
2725
|
+
"tagName": "primitiv-tooltip-content",
|
|
1450
2726
|
"customElement": true
|
|
1451
2727
|
},
|
|
1452
2728
|
{
|
|
1453
2729
|
"kind": "class",
|
|
1454
|
-
"description": "`<primitiv-
|
|
1455
|
-
"name": "
|
|
1456
|
-
"events": [
|
|
1457
|
-
{
|
|
1458
|
-
"type": {
|
|
1459
|
-
"text": "CustomEvent"
|
|
1460
|
-
},
|
|
1461
|
-
"description": "Bubbles from the panel as it becomes active (not on first render), so a lazy panel can fetch its content.",
|
|
1462
|
-
"name": "primitiv-tabs-show"
|
|
1463
|
-
}
|
|
1464
|
-
],
|
|
1465
|
-
"attributes": [
|
|
1466
|
-
{
|
|
1467
|
-
"type": {
|
|
1468
|
-
"text": "string"
|
|
1469
|
-
},
|
|
1470
|
-
"description": "The panel's value, pairing it with the tab of the same value.",
|
|
1471
|
-
"name": "value"
|
|
1472
|
-
}
|
|
1473
|
-
],
|
|
2730
|
+
"description": "`<primitiv-tooltip-arrow>` — an optional, decorative pointer, inside the\ncontent. The element writes nothing on it; style it as you like.",
|
|
2731
|
+
"name": "PrimitivTooltipArrowElement",
|
|
1474
2732
|
"superclass": {
|
|
1475
2733
|
"name": "ElementBase",
|
|
1476
2734
|
"module": "/src/internal/element.ts"
|
|
1477
2735
|
},
|
|
1478
|
-
"tagName": "primitiv-
|
|
2736
|
+
"tagName": "primitiv-tooltip-arrow",
|
|
1479
2737
|
"customElement": true
|
|
1480
2738
|
},
|
|
1481
2739
|
{
|
|
1482
2740
|
"kind": "function",
|
|
1483
|
-
"name": "
|
|
2741
|
+
"name": "defineTooltip",
|
|
1484
2742
|
"return": {
|
|
1485
2743
|
"type": {
|
|
1486
2744
|
"text": "void"
|
|
@@ -1495,7 +2753,7 @@
|
|
|
1495
2753
|
}
|
|
1496
2754
|
}
|
|
1497
2755
|
],
|
|
1498
|
-
"description": "Define the
|
|
2756
|
+
"description": "Define the five Tooltip elements on `registry` (the global `customElements`\nby default). Safe to call more than once, and a no-op where there is no\nregistry (a server render)."
|
|
1499
2757
|
}
|
|
1500
2758
|
],
|
|
1501
2759
|
"exports": [
|
|
@@ -1504,47 +2762,55 @@
|
|
|
1504
2762
|
"name": "ElementRegistry",
|
|
1505
2763
|
"declaration": {
|
|
1506
2764
|
"name": "ElementRegistry",
|
|
1507
|
-
"module": "src/
|
|
2765
|
+
"module": "src/tooltip/elements.ts"
|
|
1508
2766
|
}
|
|
1509
2767
|
},
|
|
1510
2768
|
{
|
|
1511
2769
|
"kind": "js",
|
|
1512
|
-
"name": "
|
|
2770
|
+
"name": "PrimitivTooltipProviderElement",
|
|
1513
2771
|
"declaration": {
|
|
1514
|
-
"name": "
|
|
1515
|
-
"module": "src/
|
|
2772
|
+
"name": "PrimitivTooltipProviderElement",
|
|
2773
|
+
"module": "src/tooltip/elements.ts"
|
|
1516
2774
|
}
|
|
1517
2775
|
},
|
|
1518
2776
|
{
|
|
1519
2777
|
"kind": "js",
|
|
1520
|
-
"name": "
|
|
2778
|
+
"name": "PrimitivTooltipElement",
|
|
1521
2779
|
"declaration": {
|
|
1522
|
-
"name": "
|
|
1523
|
-
"module": "src/
|
|
2780
|
+
"name": "PrimitivTooltipElement",
|
|
2781
|
+
"module": "src/tooltip/elements.ts"
|
|
1524
2782
|
}
|
|
1525
2783
|
},
|
|
1526
2784
|
{
|
|
1527
2785
|
"kind": "js",
|
|
1528
|
-
"name": "
|
|
2786
|
+
"name": "PrimitivTooltipTriggerElement",
|
|
1529
2787
|
"declaration": {
|
|
1530
|
-
"name": "
|
|
1531
|
-
"module": "src/
|
|
2788
|
+
"name": "PrimitivTooltipTriggerElement",
|
|
2789
|
+
"module": "src/tooltip/elements.ts"
|
|
1532
2790
|
}
|
|
1533
2791
|
},
|
|
1534
2792
|
{
|
|
1535
2793
|
"kind": "js",
|
|
1536
|
-
"name": "
|
|
2794
|
+
"name": "PrimitivTooltipContentElement",
|
|
1537
2795
|
"declaration": {
|
|
1538
|
-
"name": "
|
|
1539
|
-
"module": "src/
|
|
2796
|
+
"name": "PrimitivTooltipContentElement",
|
|
2797
|
+
"module": "src/tooltip/elements.ts"
|
|
1540
2798
|
}
|
|
1541
2799
|
},
|
|
1542
2800
|
{
|
|
1543
2801
|
"kind": "js",
|
|
1544
|
-
"name": "
|
|
2802
|
+
"name": "PrimitivTooltipArrowElement",
|
|
1545
2803
|
"declaration": {
|
|
1546
|
-
"name": "
|
|
1547
|
-
"module": "src/
|
|
2804
|
+
"name": "PrimitivTooltipArrowElement",
|
|
2805
|
+
"module": "src/tooltip/elements.ts"
|
|
2806
|
+
}
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
"kind": "js",
|
|
2810
|
+
"name": "defineTooltip",
|
|
2811
|
+
"declaration": {
|
|
2812
|
+
"name": "defineTooltip",
|
|
2813
|
+
"module": "src/tooltip/elements.ts"
|
|
1548
2814
|
}
|
|
1549
2815
|
}
|
|
1550
2816
|
]
|