@momentum-design/components 0.134.20 → 0.134.22
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 +481 -458
- package/dist/browser/index.js.map +4 -4
- 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 +25 -14
- package/dist/components/datepicker/datepicker.component.js +96 -35
- 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 +2 -20
- 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 +17 -39
- package/dist/components/menupopover/menupopover.component.js +4 -38
- 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 +47 -16
- package/dist/components/navmenuitem/navmenuitem.component.js +146 -20
- package/dist/components/navmenuitem/navmenuitem.constants.d.ts +1 -0
- package/dist/components/navmenuitem/navmenuitem.constants.js +1 -0
- package/dist/components/navmenuitem/navmenuitem.styles.js +16 -5
- 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 +64 -44
- package/dist/components/sidenavigation/sidenavigation.component.js +241 -43
- package/dist/components/sidenavigation/sidenavigation.constants.d.ts +6 -1
- package/dist/components/sidenavigation/sidenavigation.constants.js +6 -1
- package/dist/components/sidenavigation/sidenavigation.context.d.ts +6 -1
- package/dist/components/sidenavigation/sidenavigation.context.js +36 -11
- package/dist/components/sidenavigation/sidenavigation.types.d.ts +3 -2
- package/dist/components/sidenavigation/sidenavigationbase.d.ts +8 -0
- package/dist/components/sidenavigation/sidenavigationbase.js +7 -0
- 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 +334 -191
- package/dist/models/provider/provider.component.d.ts +2 -2
- package/dist/models/provider/provider.component.js +13 -0
- 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 +19 -16
- package/dist/react/navmenuitem/index.js +3 -12
- 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/package.json +1 -1
|
@@ -3,56 +3,10 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/popover';
|
|
4
4
|
import { TAG_NAME } from '../../components/popover/popover.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* It can be used for tooltips, dropdowns, menus or any showing any other contextual content.
|
|
9
|
-
*
|
|
10
|
-
* The popover automatically positions itself based on available space and
|
|
11
|
-
* supports dynamic height adjustments with scrollable content when needed.
|
|
12
|
-
* It uses [Floating UI](https://floating-ui.com/) for maintaining the position of the popover.
|
|
13
|
-
*
|
|
14
|
-
* ## Limitations
|
|
15
|
-
*
|
|
16
|
-
* ### On trigger for multiple popovers
|
|
17
|
-
*
|
|
18
|
-
* A component (button, etc.) can trigger more than one popover, but only one of them should change the
|
|
19
|
-
* aria-expanded and aria-haspopup attributes on the trigger.
|
|
20
|
-
*
|
|
21
|
-
* To prevent unexpected attribute changes on the trigger `disable-aria-expanded` attribute must be set on all linked
|
|
22
|
-
* Popovers except one.
|
|
23
|
-
*
|
|
24
|
-
* ### React Popover with append-to attribute
|
|
25
|
-
*
|
|
26
|
-
* React mounts the popover based on the virtual DOM, but when the append-to attribute is set, the popover removes itself
|
|
27
|
-
* and mounts to the specified element. React will not know about the move and will not know about the
|
|
28
|
-
* newly created mdc-popoverportal element either. This throws a `NotFoundError` error when the Popover is directly
|
|
29
|
-
* added/removed by React, for example:
|
|
30
|
-
*
|
|
31
|
-
* ```tsx
|
|
32
|
-
* const SomeComponent = () => {
|
|
33
|
-
* const [isOpen, setIsOpen] = useState(false);
|
|
34
|
-
* return (<div>
|
|
35
|
-
* {isOpen && <Popover append-to="some-element-id">...</mdc-popover>}
|
|
36
|
-
* </div>);
|
|
37
|
-
* }
|
|
38
|
-
* ```
|
|
39
|
-
* As a workaround Popover need to wrap with any other element/component, for example:
|
|
40
|
-
* ```tsx
|
|
41
|
-
* const SomeComponent = () => {
|
|
42
|
-
* const [isOpen, setIsOpen] = useState(false);
|
|
43
|
-
* return (<div>
|
|
44
|
-
* {isOpen && <div>
|
|
45
|
-
* <Popover append-to="some-element-id">...</mdc-popover>
|
|
46
|
-
* <div>}
|
|
47
|
-
* </div>);
|
|
48
|
-
* }
|
|
49
|
-
* ```
|
|
50
|
-
* Note the wrapper <div> around the Popover component (React.Fragment does not work).
|
|
6
|
+
* @tagname mdc-popover
|
|
51
7
|
*
|
|
52
8
|
* @dependency mdc-button
|
|
53
9
|
*
|
|
54
|
-
* @tagname mdc-popover
|
|
55
|
-
*
|
|
56
10
|
* @event shown - (React: onShown) This event is dispatched when the popover is shown
|
|
57
11
|
* @event hidden - (React: onHidden) This event is dispatched when the popover is hidden
|
|
58
12
|
* @event created - (React: onCreated) This event is dispatched when the popover is created (added to the DOM)
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
import Component from '../../components/presence';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
3
|
+
* The presence is a small status badge that visually represents the availability or activity state of a user or entity (for example: active, away, busy, do-not-disturb, on a call, presenting). It is sized to be paired with an avatar so the status renders as a corner indicator on top of the avatar artwork.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use `mdc-presence` next to or on top of an `mdc-avatar` to indicate the represented user/entity's current availability or activity.
|
|
8
|
+
* - Use it whenever the application has a meaningful status signal to communicate alongside an avatar (online, in a meeting, away, etc.).
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Do not use it as a standalone status indicator divorced from an avatar — pair it with `mdc-avatar` so the icon size matches the avatar size.
|
|
13
|
+
* - Use `mdc-badge` for counts, dots, or non-status decorations.
|
|
14
|
+
* - Use `mdc-icon` if you need an arbitrary icon at custom sizes outside the supported avatar size set.
|
|
15
|
+
*
|
|
11
16
|
* @tagname mdc-presence
|
|
12
|
-
*
|
|
17
|
+
*
|
|
18
|
+
* @dependency mdc-icon
|
|
19
|
+
*
|
|
13
20
|
* @cssproperty --mdc-presence-active-background-color - The background color of the presence type active.
|
|
14
21
|
* @cssproperty --mdc-presence-away-background-color - The background color of the presence type away.
|
|
15
22
|
* @cssproperty --mdc-presence-away-calling-background-color - The background color of the presence type away-calling.
|
|
@@ -25,7 +32,7 @@ import Component from '../../components/presence';
|
|
|
25
32
|
* @cssproperty --mdc-presence-quiet-background-color - The background color of the presence type quiet.
|
|
26
33
|
* @cssproperty --mdc-presence-scheduled-background-color - The background color of the presence type scheduled.
|
|
27
34
|
* @cssproperty --mdc-presence-overlay-background-color - The background color of the presence type overlay.
|
|
28
|
-
*
|
|
35
|
+
*
|
|
29
36
|
* @csspart presence-content - The presence content.
|
|
30
37
|
* @csspart mdc-presence-icon - The presence icon.
|
|
31
38
|
* @csspart mdc-presence-icon__active - The presence icon for active.
|
|
@@ -3,16 +3,10 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/presence';
|
|
4
4
|
import { TAG_NAME } from '../../components/presence/presence.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* display the presence status of a user or entity within an avatar component.
|
|
8
|
-
*
|
|
9
|
-
* This component is ideal for use within avatar UIs where the presence status
|
|
10
|
-
* needs to be visually represented.
|
|
6
|
+
* @tagname mdc-presence
|
|
11
7
|
*
|
|
12
8
|
* @dependency mdc-icon
|
|
13
9
|
*
|
|
14
|
-
* @tagname mdc-presence
|
|
15
|
-
*
|
|
16
10
|
* @cssproperty --mdc-presence-active-background-color - The background color of the presence type active.
|
|
17
11
|
* @cssproperty --mdc-presence-away-background-color - The background color of the presence type away.
|
|
18
12
|
* @cssproperty --mdc-presence-away-calling-background-color - The background color of the presence type away-calling.
|
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import Component from '../../components/progressbar';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* -
|
|
8
|
-
* -
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
3
|
+
* The progressbar is a determinate, linear progress indicator that visually represents the completion state of an ongoing process (loading, uploading, syncing, etc.). It renders an optional label, an optional helper/validation text, and a coloured bar that fills from 0 to 100 percent.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use `mdc-progressbar` for a determinate task whose completion percentage is known.
|
|
8
|
+
* - Use the `default` variant when the progressbar should stand on its own with a label above it and a percentage readout.
|
|
9
|
+
* - Use the `inline` variant when the progressbar must sit on a single line next to its label (e.g. inside a list row).
|
|
10
|
+
*
|
|
11
|
+
* **When not to use**
|
|
12
|
+
*
|
|
13
|
+
* - Use `mdc-progressspinner` for a circular determinate indicator (for example to indicate progress in a compact area or to surface a completion/error glyph at 100%).
|
|
14
|
+
* - Use `mdc-spinner` for an indeterminate "work in progress" state where no percentage is known.
|
|
15
|
+
*
|
|
12
16
|
* @tagname mdc-progressbar
|
|
13
|
-
*
|
|
17
|
+
*
|
|
14
18
|
* @dependency mdc-icon
|
|
15
19
|
* @dependency mdc-text
|
|
16
|
-
*
|
|
20
|
+
*
|
|
17
21
|
* @slot label - Slot for the label element. If not provided, the `label` property will be used to render the label.
|
|
18
22
|
* @slot help-icon - Slot for the helper/validation icon. If not provided, the icon will be rendered based on the `helpTextType` property.
|
|
19
|
-
*
|
|
23
|
+
*
|
|
20
24
|
* @csspart label - The label element.
|
|
21
25
|
* @csspart label-text - The container for the label and required indicator elements.
|
|
22
26
|
* @csspart help-text - The helper/validation text element.
|
|
23
27
|
* @csspart help-text-container - The container for the helper/validation icon and text elements.
|
|
24
|
-
*
|
|
28
|
+
*
|
|
25
29
|
* @cssproperty --mdc-label-font-size - Font size for the label text.
|
|
26
30
|
* @cssproperty --mdc-label-font-weight - Font weight for the label text.
|
|
27
31
|
* @cssproperty --mdc-label-line-height - Line height for the label text.
|
|
@@ -3,15 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/progressbar';
|
|
4
4
|
import { TAG_NAME } from '../../components/progressbar/progressbar.constants';
|
|
5
5
|
/**
|
|
6
|
-
* mdc-progressbar component visually represents a progress indicator, typically used to show
|
|
7
|
-
* the completion state of an ongoing process (e.g., loading, file upload, etc.).
|
|
8
|
-
* It contains an optional label and an optional helper text.
|
|
9
|
-
*
|
|
10
|
-
* - It supports mainly two types: Default and Inline
|
|
11
|
-
* - It supports three validation variants: Default, Success and Error.
|
|
12
|
-
*
|
|
13
|
-
* This component is created by extending FormfieldWrapper.
|
|
14
|
-
*
|
|
15
6
|
* @tagname mdc-progressbar
|
|
16
7
|
*
|
|
17
8
|
* @dependency mdc-icon
|
|
@@ -1,30 +1,25 @@
|
|
|
1
1
|
import Component from '../../components/progressspinner';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* -
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* The component supports different states:
|
|
16
|
-
* - **Default**: Circular spinner shows the progress.
|
|
17
|
-
* - **Success**: Displays a checkmark icon when progress reaches 100%.
|
|
18
|
-
* - **Error**: Displays an error icon when in an error state.
|
|
19
|
-
*
|
|
3
|
+
* The progressspinner is a determinate, circular progress indicator built from two concentric SVG arcs — one representing completed work and one representing remaining work. When the value reaches 100 the spinner is replaced by a check-circle success icon; when the component is in an error state it is replaced by an error icon.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use `mdc-progressspinner` for a determinate task whose completion percentage is known and where a compact, circular indicator fits better than a linear bar.
|
|
8
|
+
* - Use it when the final state should be communicated with a clear success or error glyph rather than a filled bar.
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Use `mdc-progressbar` when a linear bar with an explicit percentage readout and label is more appropriate.
|
|
13
|
+
* - Use `mdc-spinner` for an indeterminate spinner where no percentage is known.
|
|
14
|
+
*
|
|
20
15
|
* @tagname mdc-progressspinner
|
|
21
|
-
*
|
|
16
|
+
*
|
|
22
17
|
* @cssproperty --mdc-spinner-size - The size of the spinner.
|
|
23
18
|
* @cssproperty --mdc-track-color - The color of the spinner track.
|
|
24
19
|
* @cssproperty --mdc-progress-color - The color of the spinner progress.
|
|
25
20
|
* @cssproperty --mdc-progress-success-color - The color of the spinner when in success state.
|
|
26
21
|
* @cssproperty --mdc-progress-error-color - The color of the spinner when in error state.
|
|
27
|
-
*
|
|
22
|
+
*
|
|
28
23
|
* @csspart error-icon - The error icon of the progressspinner.
|
|
29
24
|
* @csspart spinner-base - The base of the progressspinner.
|
|
30
25
|
* @csspart spinner-container - The container of the progressspinner.
|
|
@@ -3,23 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/progressspinner';
|
|
4
4
|
import { TAG_NAME } from '../../components/progressspinner/progressspinner.constants';
|
|
5
5
|
/**
|
|
6
|
-
* `mdc-progressspinner` is a customizable, circular progress indicator component.
|
|
7
|
-
* It visually represents the current completion state of a process, such as loading,
|
|
8
|
-
* syncing, uploading, or any ongoing task that has a measurable percentage.
|
|
9
|
-
*
|
|
10
|
-
* The spinner is built using SVG with two concentric `<circle>` elements:
|
|
11
|
-
* - The `progress` arc represents the portion of work completed.
|
|
12
|
-
* - The `track` arc represents the remaining part.
|
|
13
|
-
*
|
|
14
|
-
* A visual gap is maintained between the progress and track arcs to clearly
|
|
15
|
-
* distinguish the two segments. The component smoothly animates arc length
|
|
16
|
-
* and respects accessibility best practices with ARIA attributes.
|
|
17
|
-
*
|
|
18
|
-
* The component supports different states:
|
|
19
|
-
* - **Default**: Circular spinner shows the progress.
|
|
20
|
-
* - **Success**: Displays a checkmark icon when progress reaches 100%.
|
|
21
|
-
* - **Error**: Displays an error icon when in an error state.
|
|
22
|
-
*
|
|
23
6
|
* @tagname mdc-progressspinner
|
|
24
7
|
*
|
|
25
8
|
* @cssproperty --mdc-spinner-size - The size of the spinner.
|
|
@@ -2,58 +2,36 @@ import { type EventName } from '@lit/react';
|
|
|
2
2
|
import Component from '../../components/radio';
|
|
3
3
|
import type { Events } from '../../components/radio/radio.types';
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* Alternatively you can also set the `validation-message` attribute of the `mdc-radio`. This message will appear
|
|
22
|
-
* in a native tooltip when the radio is checked and invalid.
|
|
23
|
-
*
|
|
24
|
-
* ## Accessibility
|
|
25
|
-
*
|
|
26
|
-
* - Provide clear labels that describe each option
|
|
27
|
-
* - Use `data-aria-label` when a visual label is not present
|
|
28
|
-
* - Keyboard navigation: Arrow keys to move between options, Space to select, Tab to navigate groups, Enter to submit form
|
|
29
|
-
* - Group related radio buttons using the same `name` attribute or `mdc-radiogroup` component
|
|
30
|
-
*
|
|
31
|
-
* ## Styling
|
|
32
|
-
*
|
|
33
|
-
* Use the `radio-indicator` part to apply custom styles to the radio visual element.
|
|
34
|
-
* This part exposes the underlying [StaticRadio](?path=/docs/components-decorator-staticradio--docs) component for advanced styling.
|
|
35
|
-
*
|
|
36
|
-
* The `indicator` slot allows replacing the default radio circle with a custom element.
|
|
37
|
-
* When a custom indicator is slotted, the component automatically adds the `mdc-focus-ring`
|
|
38
|
-
* class to the host element. This shifts the focus ring from the default static radio to the
|
|
39
|
-
* entire host element, ensuring keyboard focus remains visible.
|
|
40
|
-
*
|
|
5
|
+
* The radio is a single, form-associated radio button that lets the user pick exactly one option from a set of mutually exclusive choices. Radios that share a `name` attribute are grouped together — selecting one unchecks the others — and arrow-key navigation moves focus and selection between members of the group.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use `mdc-radio` (typically inside `mdc-radiogroup`) when the user must pick exactly one option from a short, mutually exclusive list.
|
|
10
|
+
* - Use it in forms, surveys, and settings where every option needs to be visible at once.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Use `mdc-checkbox` when the user can pick zero, one, or more options.
|
|
15
|
+
* - Use `mdc-select` or `mdc-combobox` when the list of options is long or should be revealed on demand.
|
|
16
|
+
* - Use `mdc-cardradio` when each option should render as a larger, card-shaped surface.
|
|
17
|
+
* - Use `mdc-toggle` for an on/off binary control.
|
|
18
|
+
*
|
|
19
|
+
* @tagname mdc-radio
|
|
20
|
+
*
|
|
41
21
|
* @dependency mdc-button
|
|
42
22
|
* @dependency mdc-icon
|
|
43
23
|
* @dependency mdc-text
|
|
44
24
|
* @dependency mdc-staticradio
|
|
45
25
|
* @dependency mdc-toggletip
|
|
46
|
-
*
|
|
47
|
-
* @tagname mdc-radio
|
|
48
|
-
*
|
|
26
|
+
*
|
|
49
27
|
* @event input - (React: onInput) Event that gets dispatched when the radio state changes (before the change event).
|
|
50
28
|
* @event change - (React: onChange) Event that gets dispatched when the radio state changes (after the input event).
|
|
51
29
|
* @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
|
|
52
|
-
*
|
|
30
|
+
*
|
|
53
31
|
* @csspart label - The label element.
|
|
54
32
|
* @csspart label-text - The container for the label and required indicator elements.
|
|
55
33
|
* @csspart radio-indicator - The staticradio that provides the visual radio appearance.
|
|
56
|
-
*
|
|
34
|
+
*
|
|
57
35
|
* @slot indicator - Slot for the radio indicator element. If not provided, a default styled radio will be rendered.
|
|
58
36
|
* @slot label - Slot for the label of the radio.
|
|
59
37
|
*/
|
|
@@ -3,41 +3,7 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/radio';
|
|
4
4
|
import { TAG_NAME } from '../../components/radio/radio.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* Unlike checkboxes which allow multiple selections, radio buttons ensure only one option can be selected
|
|
8
|
-
* at a time within the same group. These are commonly used in forms, surveys, and settings where users
|
|
9
|
-
* need to make a single selection from multiple options.
|
|
10
|
-
*
|
|
11
|
-
* To create a group of radio buttons, use the `mdc-radiogroup` component or ensure all radio buttons
|
|
12
|
-
* share the same `name` attribute.
|
|
13
|
-
*
|
|
14
|
-
* ## Validation
|
|
15
|
-
*
|
|
16
|
-
* Radio component support native form validation. But it does not have default validation message.
|
|
17
|
-
* Also, `required` attribute does not render indicator (red asterisk) for the radio component.
|
|
18
|
-
*
|
|
19
|
-
* The recommended way to show validation message for radio groups is to wrap the `mdc-radio` with `mdc-radiogroup`
|
|
20
|
-
* and set the `help-text` of the `mdc-radiogroup` based on its validation state.
|
|
21
|
-
*
|
|
22
|
-
* Alternatively you can also set the `validation-message` attribute of the `mdc-radio`. This message will appear
|
|
23
|
-
* in a native tooltip when the radio is checked and invalid.
|
|
24
|
-
*
|
|
25
|
-
* ## Accessibility
|
|
26
|
-
*
|
|
27
|
-
* - Provide clear labels that describe each option
|
|
28
|
-
* - Use `data-aria-label` when a visual label is not present
|
|
29
|
-
* - Keyboard navigation: Arrow keys to move between options, Space to select, Tab to navigate groups, Enter to submit form
|
|
30
|
-
* - Group related radio buttons using the same `name` attribute or `mdc-radiogroup` component
|
|
31
|
-
*
|
|
32
|
-
* ## Styling
|
|
33
|
-
*
|
|
34
|
-
* Use the `radio-indicator` part to apply custom styles to the radio visual element.
|
|
35
|
-
* This part exposes the underlying [StaticRadio](?path=/docs/components-decorator-staticradio--docs) component for advanced styling.
|
|
36
|
-
*
|
|
37
|
-
* The `indicator` slot allows replacing the default radio circle with a custom element.
|
|
38
|
-
* When a custom indicator is slotted, the component automatically adds the `mdc-focus-ring`
|
|
39
|
-
* class to the host element. This shifts the focus ring from the default static radio to the
|
|
40
|
-
* entire host element, ensuring keyboard focus remains visible.
|
|
6
|
+
* @tagname mdc-radio
|
|
41
7
|
*
|
|
42
8
|
* @dependency mdc-button
|
|
43
9
|
* @dependency mdc-icon
|
|
@@ -45,8 +11,6 @@ import { TAG_NAME } from '../../components/radio/radio.constants';
|
|
|
45
11
|
* @dependency mdc-staticradio
|
|
46
12
|
* @dependency mdc-toggletip
|
|
47
13
|
*
|
|
48
|
-
* @tagname mdc-radio
|
|
49
|
-
*
|
|
50
14
|
* @event input - (React: onInput) Event that gets dispatched when the radio state changes (before the change event).
|
|
51
15
|
* @event change - (React: onChange) Event that gets dispatched when the radio state changes (after the input event).
|
|
52
16
|
* @event focus - (React: onFocus) Event that gets dispatched when the radio receives focus.
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import Component from '../../components/radiogroup';
|
|
2
2
|
/**
|
|
3
|
-
* `mdc-
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* The radiogroup is a labelled wrapper that bundles related `mdc-radio` (or `mdc-cardradio`) elements together. It renders an optional header label and helper text, propagates a shared `name` and `required` state to its radio children, and exposes the wrapped controls as a `radiogroup` to assistive technologies.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use `mdc-radiogroup` whenever you render a set of `mdc-radio` (or `mdc-cardradio`) options that belong to the same question.
|
|
8
|
+
* - Use it to surface a single label and a single helper/validation message for the whole group.
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Use `mdc-formfieldgroup` directly when grouping checkbox or toggle controls instead of radios.
|
|
13
|
+
* - Use `mdc-select` or `mdc-combobox` when the user should pick one option from a long or dynamic list that does not need to be visible at once.
|
|
14
|
+
*
|
|
7
15
|
* @tagname mdc-radiogroup
|
|
8
|
-
*
|
|
9
16
|
*/
|
|
10
17
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
11
18
|
export default reactWrapper;
|
|
@@ -3,10 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/radiogroup';
|
|
4
4
|
import { TAG_NAME } from '../../components/radiogroup/radiogroup.constants';
|
|
5
5
|
/**
|
|
6
|
-
* `mdc-radiogroup` - This is the wrapper component for radio buttons which are grouped together.
|
|
7
|
-
* It can have a header text and a description. It enables users to select a single option from a set of options.
|
|
8
|
-
* It is often used in forms, settings, and selection in lists. It automatically group the radio buttons inside it.
|
|
9
|
-
*
|
|
10
6
|
* @tagname mdc-radiogroup
|
|
11
7
|
*
|
|
12
8
|
*/
|
|
@@ -1,34 +1,16 @@
|
|
|
1
1
|
import Component from '../../components/responsivesettingsprovider';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* based on
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* ### Media
|
|
16
|
-
*
|
|
17
|
-
* Generic media type to enforce responsive behavior in child components.
|
|
18
|
-
* Consumer component can use the media type from the context or
|
|
19
|
-
* just use CSS selector like [media="mobile"] to apply responsive styles.
|
|
20
|
-
*
|
|
21
|
-
* It is "unknown" by default so components can fall back to there default behavior.
|
|
22
|
-
*
|
|
23
|
-
* ### Popover Positioning
|
|
24
|
-
*
|
|
25
|
-
* By default, popovers are positioned close to the trigger element. But on small screens (e.g.: mobile devices),
|
|
26
|
-
* it is often better to show popovers/menus at the center of the screen like dialogs.
|
|
27
|
-
*
|
|
28
|
-
* ### Force Fullscreen Dialog
|
|
29
|
-
*
|
|
30
|
-
* Some components like dialogs can be shown in fullscreen mode on small screens for better user experience.
|
|
31
|
-
*
|
|
3
|
+
* The responsivesettingsprovider is a provider component that supplies a shared responsive-settings context to every descendant component that consumes it. The provider does not detect screen size itself — the consumer chooses when and how to update its attributes (via media queries, device-detection scripts, or any other strategy) so the same descendant components can adapt their layout without each one re-implementing breakpoint logic.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Wrap a subtree (typically near the application root) with `mdc-responsivesettingsprovider` when descendant components should adapt their layout based on a shared responsive signal — for example, rendering popovers centred on small screens or forcing dialogs to fullscreen on mobile.
|
|
8
|
+
*
|
|
9
|
+
* **When not to use**
|
|
10
|
+
*
|
|
11
|
+
* - Do not use it as a generic media-query helper for arbitrary CSS — components that don't read this context will not be affected.
|
|
12
|
+
* - Do not use it for theme tokens (use `mdc-themeprovider`) or icon set configuration (use `mdc-iconprovider`).
|
|
13
|
+
*
|
|
32
14
|
* @tagname mdc-responsivesettingsprovider
|
|
33
15
|
*/
|
|
34
16
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -3,35 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/responsivesettingsprovider';
|
|
4
4
|
import { TAG_NAME } from '../../components/responsivesettingsprovider/responsivesettingsprovider.constants';
|
|
5
5
|
/**
|
|
6
|
-
* `mdc-responsivesettingsprovider` is a provider component that supplies responsive settings
|
|
7
|
-
* context to its child components.
|
|
8
|
-
*
|
|
9
|
-
* This component does not make any assumptions about how the values are determined. Values can be set
|
|
10
|
-
* based on media queries or other device detection mechanisms.This way consumer can mix and match
|
|
11
|
-
* different settings depending on their target devices and use cases.
|
|
12
|
-
*
|
|
13
|
-
* For example, when the device has table screen size/resolution, but because it is fixed dialog like
|
|
14
|
-
* popovers provide better user experience.
|
|
15
|
-
*
|
|
16
|
-
* ## Responsive settings
|
|
17
|
-
*
|
|
18
|
-
* ### Media
|
|
19
|
-
*
|
|
20
|
-
* Generic media type to enforce responsive behavior in child components.
|
|
21
|
-
* Consumer component can use the media type from the context or
|
|
22
|
-
* just use CSS selector like [media="mobile"] to apply responsive styles.
|
|
23
|
-
*
|
|
24
|
-
* It is "unknown" by default so components can fall back to there default behavior.
|
|
25
|
-
*
|
|
26
|
-
* ### Popover Positioning
|
|
27
|
-
*
|
|
28
|
-
* By default, popovers are positioned close to the trigger element. But on small screens (e.g.: mobile devices),
|
|
29
|
-
* it is often better to show popovers/menus at the center of the screen like dialogs.
|
|
30
|
-
*
|
|
31
|
-
* ### Force Fullscreen Dialog
|
|
32
|
-
*
|
|
33
|
-
* Some components like dialogs can be shown in fullscreen mode on small screens for better user experience.
|
|
34
|
-
*
|
|
35
6
|
* @tagname mdc-responsivesettingsprovider
|
|
36
7
|
*/
|
|
37
8
|
const reactWrapper = createComponent({
|
|
@@ -1,56 +1,17 @@
|
|
|
1
1
|
import Component from '../../components/screenreaderannouncer';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* **
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* is created in the DOM.
|
|
16
|
-
*
|
|
17
|
-
* If you provide a custom `identity`, you must ensure that the element exists and is visually hidden.
|
|
18
|
-
*
|
|
19
|
-
* Example CSS:
|
|
20
|
-
*
|
|
21
|
-
* ```css
|
|
22
|
-
* #your-custom-announcer-id {
|
|
23
|
-
* clip: rect(0 0 0 0);
|
|
24
|
-
* clip-path: inset(50%);
|
|
25
|
-
* height: 1px;
|
|
26
|
-
* overflow: hidden;
|
|
27
|
-
* position: absolute;
|
|
28
|
-
* white-space: nowrap;
|
|
29
|
-
* width: 1px;
|
|
30
|
-
* }
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
* When the `announcement` attribute is set, the screenreader announcer will create a `<div>` element with
|
|
34
|
-
* `aria-live` attribute set to the value of `data-aria-live` attribute and append it to the `identity` element.
|
|
35
|
-
* After delay of `delay` milliseconds, a `<p>` element with the announcement text is appended to the `<div>` element.
|
|
36
|
-
*
|
|
37
|
-
* The announcement `<div>` element is removed from the DOM after `timeout` milliseconds.
|
|
38
|
-
*
|
|
39
|
-
* When the screen announcer component is disconnected from the DOM, all the timeouts are cleared and
|
|
40
|
-
* all the announcement elements added are removed from the DOM and timeouts cleared.
|
|
41
|
-
*
|
|
42
|
-
* **Note**
|
|
43
|
-
* 1. The default delay of 150 miliseconds is used as we dynamically generate the
|
|
44
|
-
* aria-live region in the DOM and add the announcement text to it.
|
|
45
|
-
* 2. If multiple `mdc-screenreaderannouncer` instances use the same `identity`, `data-aria-live`
|
|
46
|
-
* for that identity is effectively determined by the first instance that creates announcements for it.
|
|
47
|
-
* Changing `data-aria-live` in later instances for the same identity will not update already-created
|
|
48
|
-
* live-region containers.
|
|
49
|
-
* 3. If no `identity` is provided, all the screen reader components will create and use only one
|
|
50
|
-
* `<div>` element with id `mdc-screenreaderannouncer-identity` in the DOM.
|
|
51
|
-
*
|
|
52
|
-
* Reference: https://patrickhlauke.github.io/aria/tests/live-regions/
|
|
53
|
-
*
|
|
3
|
+
* The screenreaderannouncer is a non-visual helper component that pushes text into a shared aria-live region in the light DOM so that screen readers announce it. It manages the live-region container, debouncing, and clean-up so consumers only need to set an `announcement` (or call the public `announce()` method) when they want a message read out.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use it to surface a status update that has no visible UI counterpart — for example, "5 new messages", "Saved", or "Failed to load" — so screen-reader users hear the change.
|
|
8
|
+
* - Use it when a visible status message exists but is rendered outside the natural reading order or only briefly, and you want to guarantee assistive-technology announcement.
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Do not use it for content that is already in a visible, ARIA-live container, or for content that the screen reader will naturally announce because of focus changes.
|
|
13
|
+
* - Do not use it as a logging or toast surface — it is not a UI component and renders nothing visible.
|
|
14
|
+
*
|
|
54
15
|
* @tagname mdc-screenreaderannouncer
|
|
55
16
|
*/
|
|
56
17
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -3,57 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/screenreaderannouncer';
|
|
4
4
|
import { TAG_NAME } from '../../components/screenreaderannouncer/screenreaderannouncer.constants';
|
|
5
5
|
/**
|
|
6
|
-
* `mdc-screenreaderannouncer` can be used to announce messages with the screen reader.
|
|
7
|
-
*
|
|
8
|
-
* To make an announcement set `announcement` attribute on the `mdc-screenreaderannouncer` element.
|
|
9
|
-
*
|
|
10
|
-
* Consumers can also use the public `announce` function to trigger announcements programmatically
|
|
11
|
-
* by passing an options object where `announcement` is required and all other fields are optional.
|
|
12
|
-
*
|
|
13
|
-
* **Internal logic**
|
|
14
|
-
*
|
|
15
|
-
* When the screenreader announcer is connected to the DOM, if the `identity` attribute is not
|
|
16
|
-
* provided, it is set to `mdc-screenreaderannouncer-identity` and a `<div>` element with this id is created
|
|
17
|
-
* in the DOM. If the `identity` attribute is provided, the identity element is used and no new element
|
|
18
|
-
* is created in the DOM.
|
|
19
|
-
*
|
|
20
|
-
* If you provide a custom `identity`, you must ensure that the element exists and is visually hidden.
|
|
21
|
-
*
|
|
22
|
-
* Example CSS:
|
|
23
|
-
*
|
|
24
|
-
* ```css
|
|
25
|
-
* #your-custom-announcer-id {
|
|
26
|
-
* clip: rect(0 0 0 0);
|
|
27
|
-
* clip-path: inset(50%);
|
|
28
|
-
* height: 1px;
|
|
29
|
-
* overflow: hidden;
|
|
30
|
-
* position: absolute;
|
|
31
|
-
* white-space: nowrap;
|
|
32
|
-
* width: 1px;
|
|
33
|
-
* }
|
|
34
|
-
* ```
|
|
35
|
-
*
|
|
36
|
-
* When the `announcement` attribute is set, the screenreader announcer will create a `<div>` element with
|
|
37
|
-
* `aria-live` attribute set to the value of `data-aria-live` attribute and append it to the `identity` element.
|
|
38
|
-
* After delay of `delay` milliseconds, a `<p>` element with the announcement text is appended to the `<div>` element.
|
|
39
|
-
*
|
|
40
|
-
* The announcement `<div>` element is removed from the DOM after `timeout` milliseconds.
|
|
41
|
-
*
|
|
42
|
-
* When the screen announcer component is disconnected from the DOM, all the timeouts are cleared and
|
|
43
|
-
* all the announcement elements added are removed from the DOM and timeouts cleared.
|
|
44
|
-
*
|
|
45
|
-
* **Note**
|
|
46
|
-
* 1. The default delay of 150 miliseconds is used as we dynamically generate the
|
|
47
|
-
* aria-live region in the DOM and add the announcement text to it.
|
|
48
|
-
* 2. If multiple `mdc-screenreaderannouncer` instances use the same `identity`, `data-aria-live`
|
|
49
|
-
* for that identity is effectively determined by the first instance that creates announcements for it.
|
|
50
|
-
* Changing `data-aria-live` in later instances for the same identity will not update already-created
|
|
51
|
-
* live-region containers.
|
|
52
|
-
* 3. If no `identity` is provided, all the screen reader components will create and use only one
|
|
53
|
-
* `<div>` element with id `mdc-screenreaderannouncer-identity` in the DOM.
|
|
54
|
-
*
|
|
55
|
-
* Reference: https://patrickhlauke.github.io/aria/tests/live-regions/
|
|
56
|
-
*
|
|
57
6
|
* @tagname mdc-screenreaderannouncer
|
|
58
7
|
*/
|
|
59
8
|
const reactWrapper = createComponent({
|