@momentum-design/components 0.134.19 → 0.134.21
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/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +2 -2
- package/dist/components/accordion/accordion.component.d.ts +15 -5
- package/dist/components/accordionbutton/accordionbutton.component.d.ts +14 -26
- package/dist/components/accordionbutton/accordionbutton.component.js +0 -22
- package/dist/components/accordiongroup/accordiongroup.component.d.ts +12 -16
- package/dist/components/accordiongroup/accordiongroup.component.js +0 -14
- package/dist/components/alertchip/alertchip.component.d.ts +15 -11
- package/dist/components/alertchip/alertchip.component.js +0 -7
- package/dist/components/animation/animation.component.d.ts +14 -6
- package/dist/components/animation/animation.component.js +0 -5
- package/dist/components/announcementdialog/announcementdialog.component.d.ts +18 -25
- package/dist/components/announcementdialog/announcementdialog.component.js +1 -20
- package/dist/components/appheader/appheader.component.d.ts +13 -12
- package/dist/components/appheader/appheader.component.js +0 -9
- package/dist/components/avatar/avatar.component.d.ts +14 -34
- package/dist/components/avatar/avatar.component.js +1 -31
- package/dist/components/avatarbutton/avatarbutton.component.d.ts +15 -14
- package/dist/components/avatarbutton/avatarbutton.component.js +1 -10
- package/dist/components/badge/badge.component.d.ts +16 -20
- package/dist/components/badge/badge.component.js +1 -17
- package/dist/components/banner/banner.component.d.ts +17 -17
- package/dist/components/banner/banner.component.js +1 -13
- package/dist/components/brandvisual/brandvisual.component.d.ts +15 -12
- package/dist/components/brandvisual/brandvisual.component.js +0 -10
- package/dist/components/bullet/bullet.component.d.ts +15 -16
- package/dist/components/bullet/bullet.component.js +0 -15
- package/dist/components/button/button.component.d.ts +21 -52
- package/dist/components/button/button.component.js +1 -47
- package/dist/components/buttongroup/buttongroup.component.d.ts +17 -20
- package/dist/components/buttongroup/buttongroup.component.js +0 -17
- package/dist/components/buttonlink/buttonlink.component.d.ts +19 -16
- package/dist/components/buttonlink/buttonlink.component.js +1 -11
- package/dist/components/buttonsimple/buttonsimple.component.d.ts +16 -25
- package/dist/components/buttonsimple/buttonsimple.component.js +0 -22
- package/dist/components/calendar/calendar.component.d.ts +17 -11
- package/dist/components/calendar/calendar.component.js +0 -8
- package/dist/components/card/card.component.d.ts +18 -17
- package/dist/components/card/card.component.js +0 -13
- package/dist/components/cardbutton/cardbutton.component.d.ts +20 -14
- package/dist/components/cardbutton/cardbutton.component.js +0 -9
- package/dist/components/cardcheckbox/cardcheckbox.component.d.ts +20 -19
- package/dist/components/cardcheckbox/cardcheckbox.component.js +0 -14
- package/dist/components/cardradio/cardradio.component.d.ts +20 -20
- package/dist/components/cardradio/cardradio.component.js +0 -15
- package/dist/components/checkbox/checkbox.component.d.ts +22 -26
- package/dist/components/checkbox/checkbox.component.js +1 -22
- package/dist/components/chip/chip.component.d.ts +20 -13
- package/dist/components/chip/chip.component.js +0 -9
- package/dist/components/coachmark/coachmark.component.d.ts +22 -22
- package/dist/components/coachmark/coachmark.component.js +1 -18
- package/dist/components/combobox/combobox.component.d.ts +27 -37
- package/dist/components/combobox/combobox.component.js +1 -32
- package/dist/components/controltypeprovider/controltypeprovider.component.d.ts +19 -11
- package/dist/components/controltypeprovider/controltypeprovider.component.js +0 -10
- package/dist/components/datepicker/datepicker.component.d.ts +20 -14
- package/dist/components/datepicker/datepicker.component.js +0 -9
- package/dist/components/dialog/dialog.component.d.ts +25 -40
- package/dist/components/dialog/dialog.component.js +1 -35
- package/dist/components/divider/divider.component.d.ts +23 -25
- package/dist/components/divider/divider.component.js +0 -23
- package/dist/components/filterchip/filterchip.component.d.ts +20 -9
- package/dist/components/filterchip/filterchip.component.js +0 -5
- package/dist/components/formfieldgroup/formfieldgroup.component.d.ts +18 -19
- package/dist/components/formfieldgroup/formfieldgroup.component.js +0 -15
- package/dist/components/formfieldwrapper/formfieldwrapper.component.d.ts +16 -8
- package/dist/components/formfieldwrapper/formfieldwrapper.component.js +0 -4
- package/dist/components/icon/icon.component.d.ts +16 -41
- package/dist/components/icon/icon.component.js +0 -39
- package/dist/components/iconprovider/iconprovider.component.d.ts +14 -24
- package/dist/components/iconprovider/iconprovider.component.js +0 -23
- package/dist/components/illustration/illustration.component.d.ts +16 -32
- package/dist/components/illustration/illustration.component.js +0 -30
- package/dist/components/illustrationprovider/illustrationprovider.component.d.ts +14 -24
- package/dist/components/illustrationprovider/illustrationprovider.component.js +0 -23
- package/dist/components/input/input.component.d.ts +21 -16
- package/dist/components/input/input.component.js +0 -11
- package/dist/components/inputchip/inputchip.component.d.ts +19 -13
- package/dist/components/inputchip/inputchip.component.js +0 -7
- package/dist/components/link/link.component.d.ts +18 -12
- package/dist/components/link/link.component.js +1 -9
- package/dist/components/linkbutton/linkbutton.component.d.ts +19 -12
- package/dist/components/linkbutton/linkbutton.component.js +1 -8
- package/dist/components/linksimple/linksimple.component.d.ts +17 -10
- package/dist/components/linksimple/linksimple.component.js +0 -7
- package/dist/components/list/list.component.d.ts +17 -7
- package/dist/components/list/list.component.js +0 -5
- package/dist/components/listbox/listbox.component.d.ts +21 -16
- package/dist/components/listbox/listbox.component.js +1 -11
- package/dist/components/listheader/listheader.component.d.ts +14 -6
- package/dist/components/listheader/listheader.component.js +0 -3
- package/dist/components/listitem/listitem.component.d.ts +20 -18
- package/dist/components/listitem/listitem.component.js +0 -13
- package/dist/components/marker/marker.component.d.ts +15 -16
- package/dist/components/marker/marker.component.js +0 -15
- package/dist/components/menubar/menubar.component.d.ts +12 -19
- package/dist/components/menubar/menubar.component.js +0 -19
- package/dist/components/menuitem/menuitem.component.d.ts +18 -19
- package/dist/components/menuitem/menuitem.component.js +1 -15
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.d.ts +19 -30
- package/dist/components/menuitemcheckbox/menuitemcheckbox.component.js +1 -25
- package/dist/components/menuitemradio/menuitemradio.component.d.ts +18 -31
- package/dist/components/menuitemradio/menuitemradio.component.js +1 -26
- package/dist/components/menupopover/menupopover.component.d.ts +16 -38
- package/dist/components/menupopover/menupopover.component.js +0 -34
- package/dist/components/menusection/menusection.component.d.ts +16 -12
- package/dist/components/menusection/menusection.component.js +0 -8
- package/dist/components/navmenuitem/navmenuitem.component.d.ts +16 -15
- package/dist/components/navmenuitem/navmenuitem.component.js +0 -11
- package/dist/components/optgroup/optgroup.component.d.ts +17 -7
- package/dist/components/optgroup/optgroup.component.js +1 -3
- package/dist/components/option/option.component.d.ts +17 -19
- package/dist/components/option/option.component.js +1 -15
- package/dist/components/password/password.component.d.ts +18 -17
- package/dist/components/password/password.component.js +0 -11
- package/dist/components/popover/popover.component.d.ts +20 -52
- package/dist/components/popover/popover.component.js +1 -47
- package/dist/components/presence/presence.component.d.ts +17 -10
- package/dist/components/presence/presence.component.js +1 -7
- package/dist/components/progressbar/progressbar.component.d.ts +17 -13
- package/dist/components/progressbar/progressbar.component.js +0 -9
- package/dist/components/progressspinner/progressspinner.component.d.ts +14 -19
- package/dist/components/progressspinner/progressspinner.component.js +0 -17
- package/dist/components/radio/radio.component.d.ts +19 -41
- package/dist/components/radio/radio.component.js +1 -37
- package/dist/components/radiogroup/radiogroup.component.d.ts +12 -5
- package/dist/components/radiogroup/radiogroup.component.js +0 -4
- package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.d.ts +11 -29
- package/dist/components/responsivesettingsprovider/responsivesettingsprovider.component.js +0 -29
- package/dist/components/screenreaderannouncer/screenreaderannouncer.component.d.ts +12 -51
- package/dist/components/screenreaderannouncer/screenreaderannouncer.component.js +0 -51
- package/dist/components/searchfield/searchfield.component.d.ts +16 -24
- package/dist/components/searchfield/searchfield.component.js +0 -20
- package/dist/components/searchpopover/searchpopover.component.d.ts +16 -20
- package/dist/components/searchpopover/searchpopover.component.js +0 -16
- package/dist/components/select/select.component.d.ts +23 -19
- package/dist/components/select/select.component.js +1 -14
- package/dist/components/selectlistbox/selectlistbox.component.d.ts +12 -8
- package/dist/components/selectlistbox/selectlistbox.component.js +0 -7
- package/dist/components/sidenavigation/sidenavigation.component.d.ts +21 -41
- package/dist/components/sidenavigation/sidenavigation.component.js +1 -35
- package/dist/components/skeleton/skeleton.component.d.ts +14 -15
- package/dist/components/skeleton/skeleton.component.js +0 -13
- package/dist/components/slider/slider.component.d.ts +17 -15
- package/dist/components/slider/slider.component.js +0 -11
- package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.d.ts +15 -215
- package/dist/components/spatialnavigationprovider/spatialnavigationprovider.component.js +1 -215
- package/dist/components/spinner/spinner.component.d.ts +15 -27
- package/dist/components/spinner/spinner.component.js +0 -25
- package/dist/components/staticcheckbox/staticcheckbox.component.d.ts +16 -21
- package/dist/components/staticcheckbox/staticcheckbox.component.js +0 -17
- package/dist/components/staticchip/staticchip.component.d.ts +17 -8
- package/dist/components/staticchip/staticchip.component.js +0 -5
- package/dist/components/staticradio/staticradio.component.d.ts +15 -19
- package/dist/components/staticradio/staticradio.component.js +0 -16
- package/dist/components/statictoggle/statictoggle.component.d.ts +16 -21
- package/dist/components/statictoggle/statictoggle.component.js +0 -17
- package/dist/components/stepper/stepper.component.d.ts +13 -5
- package/dist/components/stepper/stepper.component.js +0 -3
- package/dist/components/stepperconnector/stepperconnector.component.d.ts +13 -6
- package/dist/components/stepperconnector/stepperconnector.component.js +0 -4
- package/dist/components/stepperitem/stepperitem.component.d.ts +16 -14
- package/dist/components/stepperitem/stepperitem.component.js +1 -10
- package/dist/components/tab/tab.component.d.ts +20 -23
- package/dist/components/tab/tab.component.js +1 -16
- package/dist/components/tablist/tablist.component.d.ts +18 -30
- package/dist/components/tablist/tablist.component.js +0 -24
- package/dist/components/text/text.component.d.ts +12 -13
- package/dist/components/text/text.component.js +0 -12
- package/dist/components/textarea/textarea.component.d.ts +17 -39
- package/dist/components/textarea/textarea.component.js +0 -34
- package/dist/components/themeprovider/themeprovider.component.d.ts +13 -27
- package/dist/components/themeprovider/themeprovider.component.js +0 -25
- package/dist/components/timepicker/timepicker.component.d.ts +17 -19
- package/dist/components/timepicker/timepicker.component.js +0 -14
- package/dist/components/toast/toast.component.d.ts +20 -12
- package/dist/components/toast/toast.component.js +1 -7
- package/dist/components/toggle/toggle.component.d.ts +18 -24
- package/dist/components/toggle/toggle.component.js +1 -21
- package/dist/components/toggletip/toggletip.component.d.ts +18 -28
- package/dist/components/toggletip/toggletip.component.js +1 -24
- package/dist/components/tooltip/tooltip.component.d.ts +16 -16
- package/dist/components/tooltip/tooltip.component.js +0 -13
- package/dist/components/typewriter/typewriter.component.d.ts +18 -34
- package/dist/components/typewriter/typewriter.component.js +1 -31
- package/dist/components/verticaltablist/verticaltablist.component.d.ts +17 -30
- package/dist/components/verticaltablist/verticaltablist.component.js +0 -26
- package/dist/components/virtualizedlist/virtualizedlist.component.d.ts +16 -58
- package/dist/components/virtualizedlist/virtualizedlist.component.js +0 -55
- package/dist/custom-elements.json +190 -190
- package/dist/react/accordion/index.d.ts +15 -5
- package/dist/react/accordionbutton/index.d.ts +14 -26
- package/dist/react/accordionbutton/index.js +0 -22
- package/dist/react/accordiongroup/index.d.ts +12 -16
- package/dist/react/accordiongroup/index.js +0 -14
- package/dist/react/alertchip/index.d.ts +15 -11
- package/dist/react/alertchip/index.js +0 -7
- package/dist/react/animation/index.d.ts +14 -6
- package/dist/react/animation/index.js +0 -5
- package/dist/react/announcementdialog/index.d.ts +18 -25
- package/dist/react/announcementdialog/index.js +1 -20
- package/dist/react/appheader/index.d.ts +13 -12
- package/dist/react/appheader/index.js +0 -9
- package/dist/react/avatar/index.d.ts +14 -34
- package/dist/react/avatar/index.js +1 -31
- package/dist/react/avatarbutton/index.d.ts +15 -14
- package/dist/react/avatarbutton/index.js +1 -10
- package/dist/react/badge/index.d.ts +16 -20
- package/dist/react/badge/index.js +1 -17
- package/dist/react/banner/index.d.ts +17 -17
- package/dist/react/banner/index.js +1 -13
- package/dist/react/brandvisual/index.d.ts +15 -12
- package/dist/react/brandvisual/index.js +0 -10
- package/dist/react/bullet/index.d.ts +15 -16
- package/dist/react/bullet/index.js +0 -15
- package/dist/react/button/index.d.ts +21 -52
- package/dist/react/button/index.js +1 -47
- package/dist/react/buttongroup/index.d.ts +17 -20
- package/dist/react/buttongroup/index.js +0 -17
- package/dist/react/buttonlink/index.d.ts +19 -16
- package/dist/react/buttonlink/index.js +1 -11
- package/dist/react/buttonsimple/index.d.ts +16 -25
- package/dist/react/buttonsimple/index.js +0 -22
- package/dist/react/calendar/index.d.ts +17 -11
- package/dist/react/calendar/index.js +0 -8
- package/dist/react/card/index.d.ts +18 -17
- package/dist/react/card/index.js +0 -13
- package/dist/react/cardbutton/index.d.ts +20 -14
- package/dist/react/cardbutton/index.js +0 -9
- package/dist/react/cardcheckbox/index.d.ts +20 -19
- package/dist/react/cardcheckbox/index.js +0 -14
- package/dist/react/cardradio/index.d.ts +20 -20
- package/dist/react/cardradio/index.js +0 -15
- package/dist/react/checkbox/index.d.ts +22 -26
- package/dist/react/checkbox/index.js +1 -22
- package/dist/react/chip/index.d.ts +20 -13
- package/dist/react/chip/index.js +0 -9
- package/dist/react/coachmark/index.d.ts +22 -22
- package/dist/react/coachmark/index.js +1 -18
- package/dist/react/combobox/index.d.ts +27 -37
- package/dist/react/combobox/index.js +1 -32
- package/dist/react/controltypeprovider/index.d.ts +19 -11
- package/dist/react/controltypeprovider/index.js +0 -10
- package/dist/react/datepicker/index.d.ts +20 -14
- package/dist/react/datepicker/index.js +0 -9
- package/dist/react/dialog/index.d.ts +25 -40
- package/dist/react/dialog/index.js +1 -35
- package/dist/react/divider/index.d.ts +23 -25
- package/dist/react/divider/index.js +0 -23
- package/dist/react/filterchip/index.d.ts +20 -9
- package/dist/react/filterchip/index.js +0 -5
- package/dist/react/formfieldgroup/index.d.ts +18 -19
- package/dist/react/formfieldgroup/index.js +0 -15
- package/dist/react/formfieldwrapper/index.d.ts +16 -8
- package/dist/react/formfieldwrapper/index.js +0 -4
- package/dist/react/icon/index.d.ts +16 -41
- package/dist/react/icon/index.js +0 -39
- package/dist/react/iconprovider/index.d.ts +14 -24
- package/dist/react/iconprovider/index.js +0 -23
- package/dist/react/illustration/index.d.ts +16 -32
- package/dist/react/illustration/index.js +0 -30
- package/dist/react/illustrationprovider/index.d.ts +14 -24
- package/dist/react/illustrationprovider/index.js +0 -23
- package/dist/react/input/index.d.ts +21 -16
- package/dist/react/input/index.js +0 -11
- package/dist/react/inputchip/index.d.ts +19 -13
- package/dist/react/inputchip/index.js +0 -7
- package/dist/react/link/index.d.ts +18 -12
- package/dist/react/link/index.js +1 -9
- package/dist/react/linkbutton/index.d.ts +19 -12
- package/dist/react/linkbutton/index.js +1 -8
- package/dist/react/linksimple/index.d.ts +17 -10
- package/dist/react/linksimple/index.js +0 -7
- package/dist/react/list/index.d.ts +17 -7
- package/dist/react/list/index.js +0 -5
- package/dist/react/listbox/index.d.ts +21 -16
- package/dist/react/listbox/index.js +1 -11
- package/dist/react/listheader/index.d.ts +14 -6
- package/dist/react/listheader/index.js +0 -3
- package/dist/react/listitem/index.d.ts +20 -18
- package/dist/react/listitem/index.js +0 -13
- package/dist/react/marker/index.d.ts +15 -16
- package/dist/react/marker/index.js +0 -15
- package/dist/react/menubar/index.d.ts +12 -19
- package/dist/react/menubar/index.js +0 -19
- package/dist/react/menuitem/index.d.ts +18 -19
- package/dist/react/menuitem/index.js +1 -15
- package/dist/react/menuitemcheckbox/index.d.ts +19 -30
- package/dist/react/menuitemcheckbox/index.js +1 -25
- package/dist/react/menuitemradio/index.d.ts +18 -31
- package/dist/react/menuitemradio/index.js +1 -26
- package/dist/react/menupopover/index.d.ts +16 -38
- package/dist/react/menupopover/index.js +0 -34
- package/dist/react/menusection/index.d.ts +16 -12
- package/dist/react/menusection/index.js +0 -8
- package/dist/react/navmenuitem/index.d.ts +16 -15
- package/dist/react/navmenuitem/index.js +0 -11
- package/dist/react/optgroup/index.d.ts +17 -7
- package/dist/react/optgroup/index.js +1 -3
- package/dist/react/option/index.d.ts +17 -19
- package/dist/react/option/index.js +1 -15
- package/dist/react/password/index.d.ts +18 -17
- package/dist/react/password/index.js +0 -11
- package/dist/react/popover/index.d.ts +20 -52
- package/dist/react/popover/index.js +1 -47
- package/dist/react/presence/index.d.ts +17 -10
- package/dist/react/presence/index.js +1 -7
- package/dist/react/progressbar/index.d.ts +17 -13
- package/dist/react/progressbar/index.js +0 -9
- package/dist/react/progressspinner/index.d.ts +14 -19
- package/dist/react/progressspinner/index.js +0 -17
- package/dist/react/radio/index.d.ts +19 -41
- package/dist/react/radio/index.js +1 -37
- package/dist/react/radiogroup/index.d.ts +12 -5
- package/dist/react/radiogroup/index.js +0 -4
- package/dist/react/responsivesettingsprovider/index.d.ts +11 -29
- package/dist/react/responsivesettingsprovider/index.js +0 -29
- package/dist/react/screenreaderannouncer/index.d.ts +12 -51
- package/dist/react/screenreaderannouncer/index.js +0 -51
- package/dist/react/searchfield/index.d.ts +16 -24
- package/dist/react/searchfield/index.js +0 -20
- package/dist/react/searchpopover/index.d.ts +16 -20
- package/dist/react/searchpopover/index.js +0 -16
- package/dist/react/select/index.d.ts +23 -19
- package/dist/react/select/index.js +1 -14
- package/dist/react/selectlistbox/index.d.ts +12 -8
- package/dist/react/selectlistbox/index.js +0 -7
- package/dist/react/sidenavigation/index.d.ts +21 -41
- package/dist/react/sidenavigation/index.js +1 -35
- package/dist/react/skeleton/index.d.ts +14 -15
- package/dist/react/skeleton/index.js +0 -13
- package/dist/react/slider/index.d.ts +17 -15
- package/dist/react/slider/index.js +0 -11
- package/dist/react/spatialnavigationprovider/index.d.ts +15 -215
- package/dist/react/spatialnavigationprovider/index.js +1 -214
- package/dist/react/spinner/index.d.ts +15 -27
- package/dist/react/spinner/index.js +0 -25
- package/dist/react/staticcheckbox/index.d.ts +16 -21
- package/dist/react/staticcheckbox/index.js +0 -17
- package/dist/react/staticchip/index.d.ts +17 -8
- package/dist/react/staticchip/index.js +0 -5
- package/dist/react/staticradio/index.d.ts +15 -19
- package/dist/react/staticradio/index.js +0 -16
- package/dist/react/statictoggle/index.d.ts +16 -21
- package/dist/react/statictoggle/index.js +0 -17
- package/dist/react/stepper/index.d.ts +13 -5
- package/dist/react/stepper/index.js +0 -3
- package/dist/react/stepperconnector/index.d.ts +13 -6
- package/dist/react/stepperconnector/index.js +0 -4
- package/dist/react/stepperitem/index.d.ts +16 -14
- package/dist/react/stepperitem/index.js +1 -10
- package/dist/react/tab/index.d.ts +20 -23
- package/dist/react/tab/index.js +1 -16
- package/dist/react/tablist/index.d.ts +18 -30
- package/dist/react/tablist/index.js +0 -24
- package/dist/react/text/index.d.ts +12 -13
- package/dist/react/text/index.js +0 -12
- package/dist/react/textarea/index.d.ts +17 -39
- package/dist/react/textarea/index.js +0 -34
- package/dist/react/themeprovider/index.d.ts +13 -27
- package/dist/react/themeprovider/index.js +0 -25
- package/dist/react/timepicker/index.d.ts +17 -19
- package/dist/react/timepicker/index.js +0 -14
- package/dist/react/toast/index.d.ts +20 -12
- package/dist/react/toast/index.js +1 -7
- package/dist/react/toggle/index.d.ts +18 -24
- package/dist/react/toggle/index.js +1 -21
- package/dist/react/toggletip/index.d.ts +18 -28
- package/dist/react/toggletip/index.js +1 -24
- package/dist/react/tooltip/index.d.ts +16 -16
- package/dist/react/tooltip/index.js +0 -13
- package/dist/react/typewriter/index.d.ts +18 -34
- package/dist/react/typewriter/index.js +1 -31
- package/dist/react/verticaltablist/index.d.ts +17 -30
- package/dist/react/verticaltablist/index.js +0 -26
- package/dist/react/virtualizedlist/index.d.ts +16 -58
- package/dist/react/virtualizedlist/index.js +0 -55
- package/dist/utils/dom.js +1 -1
- package/package.json +1 -1
|
@@ -3,19 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/tooltip';
|
|
4
4
|
import { TAG_NAME } from '../../components/tooltip/tooltip.constants';
|
|
5
5
|
/**
|
|
6
|
-
* A Tooltip is a special type of popovers that provide additional context to content on the screen. <br/>
|
|
7
|
-
* Tooltip is triggered by mouse hover or by keyboard focus and will disappear upon mouse exit or focus change.
|
|
8
|
-
*
|
|
9
|
-
* Because of this, tooltips cannot contain content that can be focused or interacted with.
|
|
10
|
-
* When a tooltip must contain a focusable element like a link or button, use a toggle tip instead.
|
|
11
|
-
*
|
|
12
|
-
* A tooltip is triggered by mouse hover or by keyboard focus
|
|
13
|
-
* and will disappear upon mouse exit or focus change.
|
|
14
|
-
*
|
|
15
|
-
* Note:
|
|
16
|
-
* - Tooltips cannot contain content that can be focused or interacted with.
|
|
17
|
-
* - Tooltips will contain the default `aria-hidden="true"` so that VO will never focus the tooltip.
|
|
18
|
-
*
|
|
19
6
|
* @tagname mdc-tooltip
|
|
20
7
|
*
|
|
21
8
|
* @event shown - (React: onShown) This event is dispatched when the tooltip is shown
|
|
@@ -2,45 +2,29 @@ import { type EventName } from '@lit/react';
|
|
|
2
2
|
import Component from '../../components/typewriter';
|
|
3
3
|
import type { Events } from '../../components/typewriter/typewriter.types';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* -
|
|
16
|
-
* -
|
|
17
|
-
* -
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* Advanced features:
|
|
21
|
-
* - Dynamic speed adjustment during typing
|
|
22
|
-
* - Chunked text addition via addTextChunk() method
|
|
23
|
-
* - Instant text addition via addInstantTextChunk() method or instant parameter
|
|
24
|
-
* - Mixed instant and animated chunks in queue
|
|
25
|
-
* - Continues typing in background tabs
|
|
26
|
-
* - Performance optimized for large text
|
|
27
|
-
* - maxQueueSize to limit memory usage from excessive queuing
|
|
28
|
-
* - event handling for typing completion and content changes
|
|
29
|
-
*
|
|
30
|
-
* The component includes accessibility features:
|
|
31
|
-
* - Screen readers announce the complete text, not character by character
|
|
32
|
-
* - Uses aria-live="polite" for dynamic content updates
|
|
33
|
-
* - Sets aria-busy during typing animation
|
|
34
|
-
*
|
|
35
|
-
* @dependency mdc-text
|
|
36
|
-
*
|
|
5
|
+
* `mdc-typewriter` progressively reveals its text content character-by-character to produce a typewriter effect. It renders through `mdc-text`, so it inherits the same typography options, and exposes both a static markup mode (slotted text) and an imperative API for appending text chunks at runtime.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Stream model or assistant output where text should appear progressively rather than all at once.
|
|
10
|
+
* - Animate the arrival of short notifications or status messages to draw user attention.
|
|
11
|
+
* - Build chat-style transcripts where additional content can be appended after the initial render.
|
|
12
|
+
*
|
|
13
|
+
* **When not to use**
|
|
14
|
+
*
|
|
15
|
+
* - Use `mdc-text` directly when content should appear immediately and never animate.
|
|
16
|
+
* - Use `mdc-toast`, `mdc-banner`, or another notification surface when you need a container and chrome — the typewriter only animates text.
|
|
17
|
+
* - Avoid for long, dense content where the animation would slow down comprehension.
|
|
18
|
+
*
|
|
37
19
|
* @tagname mdc-typewriter
|
|
20
|
+
* @dependency mdc-text
|
|
21
|
+
*
|
|
38
22
|
* @slot - Default slot for text content
|
|
39
|
-
*
|
|
23
|
+
*
|
|
40
24
|
* @csspart container - Container for the text element
|
|
41
25
|
* @csspart text - The text element (forwarded to mdc-text)
|
|
42
26
|
* @csspart typewriter-hidden - The hidden typewriter text
|
|
43
|
-
*
|
|
27
|
+
*
|
|
44
28
|
* @event typing-complete - (React: onTypingComplete) Fired when the typewriter finishes typing all content.
|
|
45
29
|
* Detail: \{ finalContent: string \}
|
|
46
30
|
* @event change - (React: onChange) Fired when the content of the typewriter changes.
|
|
@@ -3,39 +3,9 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/typewriter';
|
|
4
4
|
import { TAG_NAME } from '../../components/typewriter/typewriter.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* It uses the Text component internally, adding a progressive typing effect.
|
|
8
|
-
*
|
|
9
|
-
* The `type` attribute allows changing the text style (passed to the internal Text component).
|
|
10
|
-
* The `tagname` attribute allows changing the tag name of the text element (passed to the internal Text component).
|
|
11
|
-
* The default tag name is `p`.
|
|
12
|
-
*
|
|
13
|
-
* The `speed` attribute controls typing speed in milliseconds per character:
|
|
14
|
-
* - 'very-slow' = 240ms per character
|
|
15
|
-
* - 'slow' = 120ms per character
|
|
16
|
-
* - 'normal' = 60ms per character (default)
|
|
17
|
-
* - 'fast' = 20ms per character
|
|
18
|
-
* - 'very-fast' = 1ms per character
|
|
19
|
-
* - Or any numeric string representing milliseconds
|
|
20
|
-
*
|
|
21
|
-
* Advanced features:
|
|
22
|
-
* - Dynamic speed adjustment during typing
|
|
23
|
-
* - Chunked text addition via addTextChunk() method
|
|
24
|
-
* - Instant text addition via addInstantTextChunk() method or instant parameter
|
|
25
|
-
* - Mixed instant and animated chunks in queue
|
|
26
|
-
* - Continues typing in background tabs
|
|
27
|
-
* - Performance optimized for large text
|
|
28
|
-
* - maxQueueSize to limit memory usage from excessive queuing
|
|
29
|
-
* - event handling for typing completion and content changes
|
|
30
|
-
*
|
|
31
|
-
* The component includes accessibility features:
|
|
32
|
-
* - Screen readers announce the complete text, not character by character
|
|
33
|
-
* - Uses aria-live="polite" for dynamic content updates
|
|
34
|
-
* - Sets aria-busy during typing animation
|
|
35
|
-
*
|
|
6
|
+
* @tagname mdc-typewriter
|
|
36
7
|
* @dependency mdc-text
|
|
37
8
|
*
|
|
38
|
-
* @tagname mdc-typewriter
|
|
39
9
|
* @slot - Default slot for text content
|
|
40
10
|
*
|
|
41
11
|
* @csspart container - Container for the text element
|
|
@@ -2,43 +2,30 @@ import { type EventName } from '@lit/react';
|
|
|
2
2
|
import Component from '../../components/verticaltablist';
|
|
3
3
|
import type { Events } from '../../components/verticaltablist/verticaltablist.types';
|
|
4
4
|
/**
|
|
5
|
-
* `mdc-verticaltablist`
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* - Each element that serves as a tab has role `tab` and is contained within the element with role `tablist` (Tab components passed in to default slot).
|
|
19
|
-
* - The active tab element has the state `aria-selected` set to `true`
|
|
20
|
-
* and all other tab elements have it set to `false`.
|
|
21
|
-
*
|
|
22
|
-
* **Accessibility notes for consuming (have to be explicitly set when you consume the component)**
|
|
23
|
-
*
|
|
24
|
-
* - Each element that contains the `content panel` for a `tab` has role `tabpanel`.
|
|
25
|
-
* - The `tablist` element needs to have a label provided by `data-aria-label`.
|
|
26
|
-
* - Each element with role `tab` has the property `aria-controls`
|
|
27
|
-
* that should refer to its associated `tabpanel` element.
|
|
28
|
-
* - The vertical orientation is conveyed through the aria-orientation property on the `tablist` element, which is set to `vertical` by the component.
|
|
29
|
-
* - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.
|
|
30
|
-
*
|
|
5
|
+
* `mdc-verticaltablist` organises a set of tabs vertically and lets users move between them with the up/down arrow keys, Home, End, and by clicking. It manages tab selection state and the active-tab semantics while the consumer renders the corresponding `tabpanel` content elsewhere in the DOM.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Provide vertical navigation between sibling content panels (settings categories, side-by-side detail views).
|
|
10
|
+
* - When horizontal space is constrained or when the related content is naturally laid out beside the tab list.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Use `mdc-tablist` for a horizontal arrangement of tabs.
|
|
15
|
+
* - Use `mdc-sidenavigation` for top-level navigation between different pages or views rather than between related panels of the same view.
|
|
16
|
+
* - Use `mdc-listbox` / `mdc-select` for selection of a value rather than switching between visible panels.
|
|
17
|
+
*
|
|
31
18
|
* @tagname mdc-verticaltablist
|
|
32
|
-
*
|
|
19
|
+
*
|
|
33
20
|
* @dependency mdc-tab
|
|
34
|
-
*
|
|
21
|
+
*
|
|
35
22
|
* @event change - (React: onChange) This event is dispatched when the tab is selected.
|
|
36
23
|
* Event that fires when user changes the active tab.
|
|
37
24
|
* The function sent as the argument will receive the fired event
|
|
38
25
|
* and the new tab id can be fetched from event.detail.tabId.
|
|
39
|
-
*
|
|
26
|
+
*
|
|
40
27
|
* `(event: CustomEvent) => handleTabChange(event.detail.tabId);`
|
|
41
|
-
*
|
|
28
|
+
*
|
|
42
29
|
* @slot Default slot for mdc-tab elements.
|
|
43
30
|
*/
|
|
44
31
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
@@ -3,32 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/verticaltablist';
|
|
4
4
|
import { TAG_NAME } from '../../components/verticaltablist/verticaltablist.constants';
|
|
5
5
|
/**
|
|
6
|
-
* `mdc-verticaltablist` is a vertical tab list component that extends the List component.
|
|
7
|
-
* It organizes tabs vertically and follows the same WCAG standards as the horizontal tablist.
|
|
8
|
-
*
|
|
9
|
-
* Children of the vertical tab list are `mdc-tab` elements, sent to the default slot.
|
|
10
|
-
* Currently only "line" variant of the tab is supported, setting other variants doesn't have any effect.
|
|
11
|
-
* The variant is automatically set on the tab when it is added to the vertical tab list, so there is no need to set it manually.
|
|
12
|
-
*
|
|
13
|
-
* The tabs can be navigated using the up/down arrow keys, and selected by clicking,
|
|
14
|
-
* or pressing the Enter and Space keys.
|
|
15
|
-
*
|
|
16
|
-
* **Implicit accessibility rules**
|
|
17
|
-
*
|
|
18
|
-
* - The element that serves as the container for the set of tabs has role `tablist`.
|
|
19
|
-
* - Each element that serves as a tab has role `tab` and is contained within the element with role `tablist` (Tab components passed in to default slot).
|
|
20
|
-
* - The active tab element has the state `aria-selected` set to `true`
|
|
21
|
-
* and all other tab elements have it set to `false`.
|
|
22
|
-
*
|
|
23
|
-
* **Accessibility notes for consuming (have to be explicitly set when you consume the component)**
|
|
24
|
-
*
|
|
25
|
-
* - Each element that contains the `content panel` for a `tab` has role `tabpanel`.
|
|
26
|
-
* - The `tablist` element needs to have a label provided by `data-aria-label`.
|
|
27
|
-
* - Each element with role `tab` has the property `aria-controls`
|
|
28
|
-
* that should refer to its associated `tabpanel` element.
|
|
29
|
-
* - The vertical orientation is conveyed through the aria-orientation property on the `tablist` element, which is set to `vertical` by the component.
|
|
30
|
-
* - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.
|
|
31
|
-
*
|
|
32
6
|
* @tagname mdc-verticaltablist
|
|
33
7
|
*
|
|
34
8
|
* @dependency mdc-tab
|
|
@@ -2,69 +2,27 @@ import { type EventName } from '@lit/react';
|
|
|
2
2
|
import Component from '../../components/virtualizedlist';
|
|
3
3
|
import type { Events } from '../../components/virtualizedlist/virtualizedlist.types';
|
|
4
4
|
/**
|
|
5
|
-
* `mdc-virtualizedlist`
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* `
|
|
16
|
-
* - `
|
|
17
|
-
*
|
|
18
|
-
* - `getItemKey` is a function that returns a unique key for each item in the list.
|
|
19
|
-
*
|
|
20
|
-
* ### Render list items
|
|
21
|
-
*
|
|
22
|
-
* To keep the component framework-agnostic, the rendering of the list items is left to the consumer.
|
|
23
|
-
*
|
|
24
|
-
* We need to render only the visible items. The list of visible items are provided by the `virtualitemschange` event.
|
|
25
|
-
* The event detail contains the `virtualItems` array, which contains the information for the rendering.
|
|
26
|
-
* List items must have an `data-index` attribute, the indexes are in the `virtualItems` list.
|
|
27
|
-
*
|
|
28
|
-
* ## Best practices
|
|
29
|
-
*
|
|
30
|
-
* ### List updates
|
|
31
|
-
*
|
|
32
|
-
* Tanstack needs only the count of the items in the list and the size of each item to perform virtualization.
|
|
33
|
-
* List updates happens when
|
|
34
|
-
* - when `virtualizerProps` property of the component instance changes
|
|
35
|
-
* - when `observe-size-changes` is set and the item's size changes (it uses ResizeObserver internally)
|
|
36
|
-
* - when `component.visualiser.measure` called manually.
|
|
37
|
-
*
|
|
38
|
-
* ### Header
|
|
39
|
-
*
|
|
40
|
-
* To add a header to the list, use the `mdc-listheader` component and place it in the `list-header` slot.
|
|
41
|
-
*
|
|
42
|
-
* ### Lists with dynamic content
|
|
43
|
-
*
|
|
44
|
-
* Unique keys for the list items are critical for dynamically changing list items or item's content.
|
|
45
|
-
* If the key change with the content it will cause scrollbar and content shuttering.
|
|
46
|
-
*
|
|
47
|
-
* ### Top/Bottom Padding
|
|
48
|
-
*
|
|
49
|
-
* If padding is required at the top or the bottom of the list, do not apply padding/margin via CSS since this
|
|
50
|
-
* will break the virtualization calculations and can cause scrollbars when they are not necessary.
|
|
51
|
-
* Instead use the `paddingStart` and `paddingEnd` properties (in pixels) of the `virtualizerProps` prop.
|
|
52
|
-
*
|
|
53
|
-
* ### Gaps between items
|
|
54
|
-
*
|
|
55
|
-
* If you are adding gaps between items using CSS margin or gap properties, you must provide the same value in pixels
|
|
56
|
-
* to the `gap` property of the `virtualizerProps` prop. This ensures that the virtualization calculations are accurate.
|
|
57
|
-
* If you are using CSS margins, ensure that you are not applying the margin to the top of the first or the bottom of the last item.
|
|
58
|
-
* If you need spacing there, use the `paddingStart` and `paddingEnd` properties of the `virtualizerProps` prop.
|
|
59
|
-
*
|
|
5
|
+
* `mdc-virtualizedlist` renders only the items currently visible in the scroll viewport, using TanStack Virtual under the hood. It adds keyboard navigation, focus management, scroll anchoring, and accessibility wiring on top of the virtualization primitives so very large lists stay performant while remaining usable for keyboard and assistive technology users.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Render long or unbounded lists (chats, search results, logs) where mounting every item would be expensive.
|
|
10
|
+
* - Lists whose items change size dynamically and need accurate measurement (with `observe-size-changes`).
|
|
11
|
+
* - Bottom-anchored streams (e.g. chat transcripts) that should follow new content until the user scrolls away.
|
|
12
|
+
*
|
|
13
|
+
* **When not to use**
|
|
14
|
+
*
|
|
15
|
+
* - Use `mdc-list` when the data set is small enough to render in full — virtualization adds complexity that isn't needed.
|
|
16
|
+
* - Use `mdc-listbox` or `mdc-select` for selecting a single value from a list of options.
|
|
17
|
+
*
|
|
60
18
|
* @tagname mdc-virtualizedlist
|
|
61
|
-
*
|
|
19
|
+
*
|
|
62
20
|
* @event scroll - (React: onScroll) Event that gets called when user scrolls inside of list.
|
|
63
21
|
* @event virtualitemschange - (React: onVirtualItemsChange) Event that gets called when the virtual items change.
|
|
64
|
-
*
|
|
22
|
+
*
|
|
65
23
|
* @slot default - This is a default/unnamed slot, where listitems can be placed.
|
|
66
24
|
* @slot list-header - This slot is used to pass a header for the list, which can be a `mdc-listheader` component.
|
|
67
|
-
*
|
|
25
|
+
*
|
|
68
26
|
* @csspart container - The container of the virtualized list.
|
|
69
27
|
* @csspart scroll - The scrollable area of the virtualized list.
|
|
70
28
|
*/
|
|
@@ -3,61 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/virtualizedlist';
|
|
4
4
|
import { TAG_NAME } from '../../components/virtualizedlist/virtualizedlist.constants';
|
|
5
5
|
/**
|
|
6
|
-
* `mdc-virtualizedlist` is an extension of the `mdc-list` component that adds virtualization capabilities using
|
|
7
|
-
* the Tanstack Virtual library.
|
|
8
|
-
*
|
|
9
|
-
* This component is thin wrapper around the Tanstack libray to provide additional funtionalities such as
|
|
10
|
-
* keyboard navigation, focus management, scroll anchoring and accessibility features.
|
|
11
|
-
*
|
|
12
|
-
* Please refer to [Tanstack Virtual Docs](https://tanstack.com/virtual/latest) for more in depth documentation.
|
|
13
|
-
*
|
|
14
|
-
* ## Setup
|
|
15
|
-
*
|
|
16
|
-
* `virtualizerProps` is a required prop that requires at least three properties to be set:
|
|
17
|
-
* - `count` is the total number of items in the list
|
|
18
|
-
* - `estimateSize` is a function that returns the estimated size (in pixels) of each item in the list
|
|
19
|
-
* - `getItemKey` is a function that returns a unique key for each item in the list.
|
|
20
|
-
*
|
|
21
|
-
* ### Render list items
|
|
22
|
-
*
|
|
23
|
-
* To keep the component framework-agnostic, the rendering of the list items is left to the consumer.
|
|
24
|
-
*
|
|
25
|
-
* We need to render only the visible items. The list of visible items are provided by the `virtualitemschange` event.
|
|
26
|
-
* The event detail contains the `virtualItems` array, which contains the information for the rendering.
|
|
27
|
-
* List items must have an `data-index` attribute, the indexes are in the `virtualItems` list.
|
|
28
|
-
*
|
|
29
|
-
* ## Best practices
|
|
30
|
-
*
|
|
31
|
-
* ### List updates
|
|
32
|
-
*
|
|
33
|
-
* Tanstack needs only the count of the items in the list and the size of each item to perform virtualization.
|
|
34
|
-
* List updates happens when
|
|
35
|
-
* - when `virtualizerProps` property of the component instance changes
|
|
36
|
-
* - when `observe-size-changes` is set and the item's size changes (it uses ResizeObserver internally)
|
|
37
|
-
* - when `component.visualiser.measure` called manually.
|
|
38
|
-
*
|
|
39
|
-
* ### Header
|
|
40
|
-
*
|
|
41
|
-
* To add a header to the list, use the `mdc-listheader` component and place it in the `list-header` slot.
|
|
42
|
-
*
|
|
43
|
-
* ### Lists with dynamic content
|
|
44
|
-
*
|
|
45
|
-
* Unique keys for the list items are critical for dynamically changing list items or item's content.
|
|
46
|
-
* If the key change with the content it will cause scrollbar and content shuttering.
|
|
47
|
-
*
|
|
48
|
-
* ### Top/Bottom Padding
|
|
49
|
-
*
|
|
50
|
-
* If padding is required at the top or the bottom of the list, do not apply padding/margin via CSS since this
|
|
51
|
-
* will break the virtualization calculations and can cause scrollbars when they are not necessary.
|
|
52
|
-
* Instead use the `paddingStart` and `paddingEnd` properties (in pixels) of the `virtualizerProps` prop.
|
|
53
|
-
*
|
|
54
|
-
* ### Gaps between items
|
|
55
|
-
*
|
|
56
|
-
* If you are adding gaps between items using CSS margin or gap properties, you must provide the same value in pixels
|
|
57
|
-
* to the `gap` property of the `virtualizerProps` prop. This ensures that the virtualization calculations are accurate.
|
|
58
|
-
* If you are using CSS margins, ensure that you are not applying the margin to the top of the first or the bottom of the last item.
|
|
59
|
-
* If you need spacing there, use the `paddingStart` and `paddingEnd` properties of the `virtualizerProps` prop.
|
|
60
|
-
*
|
|
61
6
|
* @tagname mdc-virtualizedlist
|
|
62
7
|
*
|
|
63
8
|
* @event scroll - (React: onScroll) Event that gets called when user scrolls inside of list.
|
package/dist/utils/dom.js
CHANGED
|
@@ -251,7 +251,7 @@ export const getDomActiveElement = (root = document) => {
|
|
|
251
251
|
* @param element - The element to check
|
|
252
252
|
* @returns True if the element has the OverflowMixin methods
|
|
253
253
|
*/
|
|
254
|
-
export const hasOverflowMixin = (element) => 'isWidthOverflowing' in element && typeof element.isWidthOverflowing === 'function';
|
|
254
|
+
export const hasOverflowMixin = (element) => element && 'isWidthOverflowing' in element && typeof element.isWidthOverflowing === 'function';
|
|
255
255
|
/**
|
|
256
256
|
* Recursively gets the host element if the provided element is inside a shadow DOM.
|
|
257
257
|
*
|