@primitiv-ui/web 0.1.53 → 0.1.55

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.
Files changed (39) hide show
  1. package/README.md +69 -4
  2. package/dist/cdn/accordion.js +1 -1
  3. package/dist/cdn/chunks/chunk-EDLRMP2K.js +1 -0
  4. package/dist/cdn/chunks/chunk-HXGMU6SD.js +1 -0
  5. package/dist/cdn/chunks/chunk-PKW6AKXD.js +1 -0
  6. package/dist/cdn/chunks/chunk-QVNDDONZ.js +1 -0
  7. package/dist/cdn/collapsible.js +1 -1
  8. package/dist/cdn/modal.js +1 -0
  9. package/dist/cdn/popover.js +1 -0
  10. package/dist/cdn/tabs.js +1 -1
  11. package/dist/custom-elements.json +749 -0
  12. package/dist/define/index.d.ts +2 -0
  13. package/dist/define/index.js +2 -0
  14. package/dist/define/modal.d.ts +1 -0
  15. package/dist/define/modal.js +11 -0
  16. package/dist/define/popover.d.ts +1 -0
  17. package/dist/define/popover.js +11 -0
  18. package/dist/frameworks/events.d.ts +8 -0
  19. package/dist/frameworks/react.d.ts +25 -2
  20. package/dist/frameworks/svelte.d.ts +22 -1
  21. package/dist/frameworks/vue.d.ts +22 -1
  22. package/dist/index.d.ts +2 -0
  23. package/dist/index.js +2 -0
  24. package/dist/modal/ModalController.d.ts +58 -0
  25. package/dist/modal/ModalController.js +91 -0
  26. package/dist/modal/elements.d.ts +86 -0
  27. package/dist/modal/elements.js +235 -0
  28. package/dist/modal/index.d.ts +2 -0
  29. package/dist/modal/index.js +2 -0
  30. package/dist/popover/PopoverController.d.ts +55 -0
  31. package/dist/popover/PopoverController.js +100 -0
  32. package/dist/popover/elements.d.ts +98 -0
  33. package/dist/popover/elements.js +230 -0
  34. package/dist/popover/index.d.ts +2 -0
  35. package/dist/popover/index.js +2 -0
  36. package/dist/primitiv-web.js +1 -1
  37. package/dist/tags.d.ts +15 -0
  38. package/package.json +18 -2
  39. package/dist/cdn/chunks/chunk-WVI5UEAW.js +0 -1
@@ -516,6 +516,755 @@
516
516
  }
517
517
  ]
518
518
  },
519
+ {
520
+ "kind": "javascript-module",
521
+ "path": "src/modal/elements.ts",
522
+ "declarations": [
523
+ {
524
+ "kind": "class",
525
+ "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.",
526
+ "name": "PrimitivModalElement",
527
+ "members": [
528
+ {
529
+ "kind": "field",
530
+ "name": "#dialog",
531
+ "privacy": "private",
532
+ "type": {
533
+ "text": "HTMLDialogElement | null"
534
+ },
535
+ "default": "null",
536
+ "description": "The dialog the root currently decorates, and the controller over it."
537
+ },
538
+ {
539
+ "kind": "field",
540
+ "name": "#modal",
541
+ "privacy": "private",
542
+ "type": {
543
+ "text": "ModalController | null"
544
+ },
545
+ "default": "null"
546
+ },
547
+ {
548
+ "kind": "field",
549
+ "name": "#openers",
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",
560
+ "privacy": "private",
561
+ "type": {
562
+ "text": "HTMLElement[]"
563
+ },
564
+ "default": "[]"
565
+ },
566
+ {
567
+ "kind": "field",
568
+ "name": "#listening",
569
+ "privacy": "private",
570
+ "type": {
571
+ "text": "AbortController | null"
572
+ },
573
+ "default": "null",
574
+ "description": "The root's own click listener, while connected."
575
+ },
576
+ {
577
+ "kind": "field",
578
+ "name": "controller",
579
+ "type": {
580
+ "text": "{ connect(): void; disconnect(): void }"
581
+ },
582
+ "privacy": "protected",
583
+ "readonly": true,
584
+ "default": "{ connect: (): void => this.#connect(), disconnect: (): void => this.#disconnect(), }"
585
+ },
586
+ {
587
+ "kind": "field",
588
+ "name": "reconcileOn",
589
+ "type": {
590
+ "text": "readonly string[]"
591
+ },
592
+ "privacy": "protected",
593
+ "readonly": true,
594
+ "default": "[\"open\"]"
595
+ },
596
+ {
597
+ "kind": "field",
598
+ "name": "open",
599
+ "type": {
600
+ "text": "boolean"
601
+ },
602
+ "description": "Whether the dialog is open, reflected as the boolean `open` attribute."
603
+ },
604
+ {
605
+ "kind": "method",
606
+ "name": "#host",
607
+ "privacy": "private",
608
+ "return": {
609
+ "type": {
610
+ "text": "ModalControllerHost"
611
+ }
612
+ },
613
+ "description": "The controller's view of this element: state lives in the reflected attribute."
614
+ },
615
+ {
616
+ "kind": "method",
617
+ "name": "#change",
618
+ "privacy": "private",
619
+ "return": {
620
+ "type": {
621
+ "text": "void"
622
+ }
623
+ },
624
+ "parameters": [
625
+ {
626
+ "name": "open",
627
+ "type": {
628
+ "text": "boolean"
629
+ }
630
+ }
631
+ ],
632
+ "description": "A change the user asked for: announced first, so a listener can veto it."
633
+ },
634
+ {
635
+ "kind": "method",
636
+ "name": "#connect",
637
+ "privacy": "private",
638
+ "return": {
639
+ "type": {
640
+ "text": "void"
641
+ }
642
+ }
643
+ },
644
+ {
645
+ "kind": "method",
646
+ "name": "#disconnect",
647
+ "privacy": "private",
648
+ "return": {
649
+ "type": {
650
+ "text": "void"
651
+ }
652
+ }
653
+ },
654
+ {
655
+ "kind": "method",
656
+ "name": "#click",
657
+ "privacy": "private",
658
+ "return": {
659
+ "type": {
660
+ "text": "void"
661
+ }
662
+ },
663
+ "parameters": [
664
+ {
665
+ "name": "event",
666
+ "type": {
667
+ "text": "MouseEvent"
668
+ }
669
+ }
670
+ ]
671
+ },
672
+ {
673
+ "kind": "method",
674
+ "name": "#use",
675
+ "privacy": "private",
676
+ "return": {
677
+ "type": {
678
+ "text": "void"
679
+ }
680
+ },
681
+ "parameters": [
682
+ {
683
+ "name": "dialog",
684
+ "type": {
685
+ "text": "HTMLDialogElement | null"
686
+ }
687
+ }
688
+ ],
689
+ "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."
690
+ },
691
+ {
692
+ "kind": "method",
693
+ "name": "reconcile",
694
+ "privacy": "protected",
695
+ "return": {
696
+ "type": {
697
+ "text": "void"
698
+ }
699
+ }
700
+ },
701
+ {
702
+ "kind": "method",
703
+ "name": "#buttons",
704
+ "privacy": "private",
705
+ "return": {
706
+ "type": {
707
+ "text": "HTMLElement[]"
708
+ }
709
+ },
710
+ "parameters": [
711
+ {
712
+ "name": "selector",
713
+ "type": {
714
+ "text": "string"
715
+ }
716
+ }
717
+ ],
718
+ "description": "The buttons this root's `selector` parts decorate."
719
+ }
720
+ ],
721
+ "events": [
722
+ {
723
+ "type": {
724
+ "text": "CustomEvent<{ open: boolean }>"
725
+ },
726
+ "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.",
727
+ "name": "primitiv-modal-change"
728
+ }
729
+ ],
730
+ "attributes": [
731
+ {
732
+ "type": {
733
+ "text": "boolean"
734
+ },
735
+ "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.",
736
+ "name": "open"
737
+ }
738
+ ],
739
+ "superclass": {
740
+ "name": "PrimitivRootElement",
741
+ "module": "/src/internal/RootElement.ts"
742
+ },
743
+ "tagName": "primitiv-modal",
744
+ "customElement": true,
745
+ "summary": "The state owner of a modal dialog on the native `<dialog>`."
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
+ }
878
+ },
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
+ {
894
+ "kind": "class",
895
+ "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).",
896
+ "name": "PrimitivPopoverElement",
897
+ "members": [
898
+ {
899
+ "kind": "field",
900
+ "name": "#content",
901
+ "privacy": "private",
902
+ "type": {
903
+ "text": "HTMLElement | null"
904
+ },
905
+ "default": "null",
906
+ "description": "The panel the root currently decorates, and the controller over it."
907
+ },
908
+ {
909
+ "kind": "field",
910
+ "name": "#popover",
911
+ "privacy": "private",
912
+ "type": {
913
+ "text": "PopoverController | null"
914
+ },
915
+ "default": "null"
916
+ },
917
+ {
918
+ "kind": "field",
919
+ "name": "#trigger",
920
+ "privacy": "private",
921
+ "type": {
922
+ "text": "HTMLElement | null"
923
+ },
924
+ "default": "null",
925
+ "description": "The decorated trigger and close buttons, and the anchor, as of the last reconcile."
926
+ },
927
+ {
928
+ "kind": "field",
929
+ "name": "#anchor",
930
+ "privacy": "private",
931
+ "type": {
932
+ "text": "HTMLElement | null"
933
+ },
934
+ "default": "null"
935
+ },
936
+ {
937
+ "kind": "field",
938
+ "name": "#closers",
939
+ "privacy": "private",
940
+ "type": {
941
+ "text": "HTMLElement[]"
942
+ },
943
+ "default": "[]"
944
+ },
945
+ {
946
+ "kind": "field",
947
+ "name": "#listening",
948
+ "privacy": "private",
949
+ "type": {
950
+ "text": "AbortController | null"
951
+ },
952
+ "default": "null",
953
+ "description": "The root's own click listener, while connected."
954
+ },
955
+ {
956
+ "kind": "field",
957
+ "name": "controller",
958
+ "type": {
959
+ "text": "{ connect(): void; disconnect(): void }"
960
+ },
961
+ "privacy": "protected",
962
+ "readonly": true,
963
+ "default": "{ connect: (): void => this.#connect(), disconnect: (): void => this.#disconnect(), }"
964
+ },
965
+ {
966
+ "kind": "field",
967
+ "name": "reconcileOn",
968
+ "type": {
969
+ "text": "readonly string[]"
970
+ },
971
+ "privacy": "protected",
972
+ "readonly": true,
973
+ "default": "[\"open\"]"
974
+ },
975
+ {
976
+ "kind": "field",
977
+ "name": "open",
978
+ "type": {
979
+ "text": "boolean"
980
+ },
981
+ "description": "Whether the panel is open, reflected as the boolean `open` attribute."
982
+ },
983
+ {
984
+ "kind": "method",
985
+ "name": "#host",
986
+ "privacy": "private",
987
+ "return": {
988
+ "type": {
989
+ "text": "PopoverControllerHost"
990
+ }
991
+ },
992
+ "description": "The controller's view of this element: state lives in the reflected attribute."
993
+ },
994
+ {
995
+ "kind": "method",
996
+ "name": "#change",
997
+ "privacy": "private",
998
+ "return": {
999
+ "type": {
1000
+ "text": "void"
1001
+ }
1002
+ },
1003
+ "parameters": [
1004
+ {
1005
+ "name": "open",
1006
+ "type": {
1007
+ "text": "boolean"
1008
+ }
1009
+ }
1010
+ ],
1011
+ "description": "A change the user asked for: announced first, so a listener can veto it."
1012
+ },
1013
+ {
1014
+ "kind": "method",
1015
+ "name": "#connect",
1016
+ "privacy": "private",
1017
+ "return": {
1018
+ "type": {
1019
+ "text": "void"
1020
+ }
1021
+ }
1022
+ },
1023
+ {
1024
+ "kind": "method",
1025
+ "name": "#disconnect",
1026
+ "privacy": "private",
1027
+ "return": {
1028
+ "type": {
1029
+ "text": "void"
1030
+ }
1031
+ }
1032
+ },
1033
+ {
1034
+ "kind": "method",
1035
+ "name": "#click",
1036
+ "privacy": "private",
1037
+ "return": {
1038
+ "type": {
1039
+ "text": "void"
1040
+ }
1041
+ },
1042
+ "parameters": [
1043
+ {
1044
+ "name": "event",
1045
+ "type": {
1046
+ "text": "MouseEvent"
1047
+ }
1048
+ }
1049
+ ]
1050
+ },
1051
+ {
1052
+ "kind": "method",
1053
+ "name": "#use",
1054
+ "privacy": "private",
1055
+ "return": {
1056
+ "type": {
1057
+ "text": "void"
1058
+ }
1059
+ },
1060
+ "parameters": [
1061
+ {
1062
+ "name": "content",
1063
+ "type": {
1064
+ "text": "HTMLElement | null"
1065
+ }
1066
+ }
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."
1069
+ },
1070
+ {
1071
+ "kind": "method",
1072
+ "name": "reconcile",
1073
+ "privacy": "protected",
1074
+ "return": {
1075
+ "type": {
1076
+ "text": "void"
1077
+ }
1078
+ }
1079
+ }
1080
+ ],
1081
+ "events": [
1082
+ {
1083
+ "type": {
1084
+ "text": "CustomEvent<{ open: boolean }>"
1085
+ },
1086
+ "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.",
1087
+ "name": "primitiv-popover-change"
1088
+ }
1089
+ ],
1090
+ "attributes": [
1091
+ {
1092
+ "type": {
1093
+ "text": "boolean"
1094
+ },
1095
+ "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.",
1096
+ "name": "open"
1097
+ }
1098
+ ],
1099
+ "superclass": {
1100
+ "name": "PrimitivRootElement",
1101
+ "module": "/src/internal/RootElement.ts"
1102
+ },
1103
+ "tagName": "primitiv-popover",
1104
+ "customElement": true,
1105
+ "summary": "The state owner of a non-modal popover on the native Popover API."
1106
+ },
1107
+ {
1108
+ "kind": "class",
1109
+ "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).",
1110
+ "name": "PrimitivPopoverTriggerElement",
1111
+ "superclass": {
1112
+ "name": "ElementBase",
1113
+ "module": "/src/internal/element.ts"
1114
+ },
1115
+ "tagName": "primitiv-popover-trigger",
1116
+ "customElement": true
1117
+ },
1118
+ {
1119
+ "kind": "class",
1120
+ "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.",
1121
+ "name": "PrimitivPopoverAnchorElement",
1122
+ "superclass": {
1123
+ "name": "ElementBase",
1124
+ "module": "/src/internal/element.ts"
1125
+ },
1126
+ "tagName": "primitiv-popover-anchor",
1127
+ "customElement": true
1128
+ },
1129
+ {
1130
+ "kind": "class",
1131
+ "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.",
1132
+ "name": "PrimitivPopoverContentElement",
1133
+ "superclass": {
1134
+ "name": "ElementBase",
1135
+ "module": "/src/internal/element.ts"
1136
+ },
1137
+ "tagName": "primitiv-popover-content",
1138
+ "customElement": true
1139
+ },
1140
+ {
1141
+ "kind": "class",
1142
+ "description": "`<primitiv-popover-title>` — decorates exactly one heading the consumer\nwrites, whose id becomes the panel's `aria-labelledby`.",
1143
+ "name": "PrimitivPopoverTitleElement",
1144
+ "superclass": {
1145
+ "name": "ElementBase",
1146
+ "module": "/src/internal/element.ts"
1147
+ },
1148
+ "tagName": "primitiv-popover-title",
1149
+ "customElement": true
1150
+ },
1151
+ {
1152
+ "kind": "class",
1153
+ "description": "`<primitiv-popover-description>` — decorates exactly one element the\nconsumer writes (a `<p>`, usually), whose id becomes the panel's\n`aria-describedby`.",
1154
+ "name": "PrimitivPopoverDescriptionElement",
1155
+ "superclass": {
1156
+ "name": "ElementBase",
1157
+ "module": "/src/internal/element.ts"
1158
+ },
1159
+ "tagName": "primitiv-popover-description",
1160
+ "customElement": true
1161
+ },
1162
+ {
1163
+ "kind": "class",
1164
+ "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.",
1165
+ "name": "PrimitivPopoverCloseElement",
1166
+ "superclass": {
1167
+ "name": "ElementBase",
1168
+ "module": "/src/internal/element.ts"
1169
+ },
1170
+ "tagName": "primitiv-popover-close",
1171
+ "customElement": true
1172
+ },
1173
+ {
1174
+ "kind": "function",
1175
+ "name": "definePopover",
1176
+ "return": {
1177
+ "type": {
1178
+ "text": "void"
1179
+ }
1180
+ },
1181
+ "parameters": [
1182
+ {
1183
+ "name": "registry",
1184
+ "default": "globalThis.customElements",
1185
+ "type": {
1186
+ "text": "ElementRegistry | undefined"
1187
+ }
1188
+ }
1189
+ ],
1190
+ "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)."
1191
+ }
1192
+ ],
1193
+ "exports": [
1194
+ {
1195
+ "kind": "js",
1196
+ "name": "ElementRegistry",
1197
+ "declaration": {
1198
+ "name": "ElementRegistry",
1199
+ "module": "src/popover/elements.ts"
1200
+ }
1201
+ },
1202
+ {
1203
+ "kind": "js",
1204
+ "name": "PrimitivPopoverElement",
1205
+ "declaration": {
1206
+ "name": "PrimitivPopoverElement",
1207
+ "module": "src/popover/elements.ts"
1208
+ }
1209
+ },
1210
+ {
1211
+ "kind": "js",
1212
+ "name": "PrimitivPopoverTriggerElement",
1213
+ "declaration": {
1214
+ "name": "PrimitivPopoverTriggerElement",
1215
+ "module": "src/popover/elements.ts"
1216
+ }
1217
+ },
1218
+ {
1219
+ "kind": "js",
1220
+ "name": "PrimitivPopoverAnchorElement",
1221
+ "declaration": {
1222
+ "name": "PrimitivPopoverAnchorElement",
1223
+ "module": "src/popover/elements.ts"
1224
+ }
1225
+ },
1226
+ {
1227
+ "kind": "js",
1228
+ "name": "PrimitivPopoverContentElement",
1229
+ "declaration": {
1230
+ "name": "PrimitivPopoverContentElement",
1231
+ "module": "src/popover/elements.ts"
1232
+ }
1233
+ },
1234
+ {
1235
+ "kind": "js",
1236
+ "name": "PrimitivPopoverTitleElement",
1237
+ "declaration": {
1238
+ "name": "PrimitivPopoverTitleElement",
1239
+ "module": "src/popover/elements.ts"
1240
+ }
1241
+ },
1242
+ {
1243
+ "kind": "js",
1244
+ "name": "PrimitivPopoverDescriptionElement",
1245
+ "declaration": {
1246
+ "name": "PrimitivPopoverDescriptionElement",
1247
+ "module": "src/popover/elements.ts"
1248
+ }
1249
+ },
1250
+ {
1251
+ "kind": "js",
1252
+ "name": "PrimitivPopoverCloseElement",
1253
+ "declaration": {
1254
+ "name": "PrimitivPopoverCloseElement",
1255
+ "module": "src/popover/elements.ts"
1256
+ }
1257
+ },
1258
+ {
1259
+ "kind": "js",
1260
+ "name": "definePopover",
1261
+ "declaration": {
1262
+ "name": "definePopover",
1263
+ "module": "src/popover/elements.ts"
1264
+ }
1265
+ }
1266
+ ]
1267
+ },
519
1268
  {
520
1269
  "kind": "javascript-module",
521
1270
  "path": "src/tabs/elements.ts",