@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,27 +3,23 @@ import { Component } from '../../models';
|
|
|
3
3
|
import type { BadgeType, IconVariant } from './badge.types';
|
|
4
4
|
declare const Badge_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/IconNameMixin").IconNameMixinInterface> & typeof Component;
|
|
5
5
|
/**
|
|
6
|
-
* The
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* - `
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* - `
|
|
15
|
-
* - `
|
|
16
|
-
* - `
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* For the `counter` type, the `mdc-text` component is used to render the counter value.
|
|
21
|
-
*
|
|
6
|
+
* The badge is a small, non-interactive indicator used to surface a notification, status, or count. It supports six types — `dot`, `icon`, `counter`, `success`, `warning`, and `error` — and can be layered on top of other UI (for example a button) with an optional outline overlay.
|
|
7
|
+
*
|
|
8
|
+
* **When to use**
|
|
9
|
+
*
|
|
10
|
+
* - Use `mdc-badge` to show an unread/notification dot, a numeric counter, or a status indicator next to or on top of another element.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Use `mdc-alertchip` when the indicator must be interactive (focusable, clickable) and behave as a button.
|
|
15
|
+
* - Use `mdc-staticchip` or `mdc-text` when the status needs richer label content rather than a single icon, dot, or count.
|
|
16
|
+
* - Use `mdc-presence` when you specifically need to indicate a user's activity/availability state (e.g. active, away, busy, dnd) rather than a generic notification, count, or status.
|
|
17
|
+
*
|
|
18
|
+
* @tagname mdc-badge
|
|
19
|
+
*
|
|
22
20
|
* @dependency mdc-icon
|
|
23
21
|
* @dependency mdc-text
|
|
24
|
-
*
|
|
25
|
-
* @tagname mdc-badge
|
|
26
|
-
*
|
|
22
|
+
*
|
|
27
23
|
* @cssproperty --mdc-badge-primary-foreground-color - The foreground color of the primary badge.
|
|
28
24
|
* @cssproperty --mdc-badge-primary-background-color - The background color of the primary badge.
|
|
29
25
|
* @cssproperty --mdc-badge-secondary-foreground-color - The foreground color of the secondary badge.
|
|
@@ -37,7 +33,7 @@ declare const Badge_base: import("../../utils/mixins/index.types").Constructor<i
|
|
|
37
33
|
* @cssproperty --mdc-badge-overlay-background-color - The background color of the badge overlay.
|
|
38
34
|
* @cssproperty --mdc-badge-dot-width - The width of the dot badge. Default is 0.75rem (12px).
|
|
39
35
|
* @cssproperty --mdc-badge-dot-height - The height of the dot badge. Default is 0.75rem (12px).
|
|
40
|
-
*
|
|
36
|
+
*
|
|
41
37
|
* @csspart badge-dot - The dot notification badge.
|
|
42
38
|
* @csspart badge-icon - The icon badge.
|
|
43
39
|
* @csspart badge-overlay - The overlay badge.
|
|
@@ -17,27 +17,11 @@ import { TYPE as FONT_TYPE, VALID_TEXT_TAGS } from '../text/text.constants';
|
|
|
17
17
|
import { DEFAULTS, ICON_NAMES_LIST, ICON_VARIANT, TYPE as BADGE_TYPE } from './badge.constants';
|
|
18
18
|
import styles from './badge.styles';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* display dot, icons, counters, success, warning and error type badge.
|
|
22
|
-
*
|
|
23
|
-
* Supported badge types:
|
|
24
|
-
* - `dot`: Displays a dot notification badge with a blue color.
|
|
25
|
-
* - `icon`: Displays a badge with a specified icon using the `icon-name` attribute.
|
|
26
|
-
* - `counter`: Displays a badge with a counter value. If the counter exceeds the `max-counter`,
|
|
27
|
-
* it shows `maxCounter+`. The maximum value of the counter is 999 and anything above that will be set to `999+`.
|
|
28
|
-
* - `success`: Displays a success badge with a check circle icon and green color.
|
|
29
|
-
* - `warning`: Displays a warning badge with a warning icon and yellow color.
|
|
30
|
-
* - `error`: Displays a error badge with a error legacy icon and red color.
|
|
31
|
-
*
|
|
32
|
-
* For `icon`, `success`, `warning` and `error` types, the `mdc-icon` component is used to render the icon.
|
|
33
|
-
*
|
|
34
|
-
* For the `counter` type, the `mdc-text` component is used to render the counter value.
|
|
20
|
+
* @tagname mdc-badge
|
|
35
21
|
*
|
|
36
22
|
* @dependency mdc-icon
|
|
37
23
|
* @dependency mdc-text
|
|
38
24
|
*
|
|
39
|
-
* @tagname mdc-badge
|
|
40
|
-
*
|
|
41
25
|
* @cssproperty --mdc-badge-primary-foreground-color - The foreground color of the primary badge.
|
|
42
26
|
* @cssproperty --mdc-badge-primary-background-color - The background color of the primary badge.
|
|
43
27
|
* @cssproperty --mdc-badge-secondary-foreground-color - The foreground color of the secondary badge.
|
|
@@ -2,35 +2,35 @@ import type { CSSResult, TemplateResult } from 'lit';
|
|
|
2
2
|
import { Component } from '../../models';
|
|
3
3
|
import type { BannerVariant } from './banner.types';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* - Use
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
16
|
-
*
|
|
5
|
+
* The banner is an in-page message used to communicate important information to users. It supports several message variants with appropriate icons and styling, and can be customised through label, secondary label, leading icon, and trailing action slots. Banners are designed to be noticeable yet non-intrusive — visible enough to inform without interrupting the user's workflow.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use `mdc-banner` to surface important contextual information at the top of a page, section, or panel — for example service status, validation summaries, or persistent notices that should remain visible until the user acts on them.
|
|
10
|
+
*
|
|
11
|
+
* **When not to use**
|
|
12
|
+
*
|
|
13
|
+
* - Use `mdc-toast` for short, transient feedback that should auto-dismiss and not occupy layout space.
|
|
14
|
+
* - Use `mdc-announcementdialog` or `mdc-dialog` when the message must block the rest of the UI until the user responds.
|
|
15
|
+
* - Use `mdc-alertchip` for a compact, interactive inline status indicator rather than a full-width message bar.
|
|
16
|
+
*
|
|
17
|
+
* @tagname mdc-banner
|
|
18
|
+
*
|
|
17
19
|
* @dependency mdc-icon
|
|
18
20
|
* @dependency mdc-text
|
|
19
|
-
*
|
|
21
|
+
*
|
|
20
22
|
* @slot content - Complete content override. When used, it replaces all default banner content including icon, label, secondary label, and actions.
|
|
21
23
|
* @slot leading-icon - Custom icon content. Overrides the default variant-based icon.
|
|
22
24
|
* @slot leading-text - Custom text content. Overrides the label and secondaryLabel properties.
|
|
23
25
|
* @slot trailing-actions - Custom action buttons and controls. Use this for dismiss buttons, reset buttons, or any other actions.
|
|
24
|
-
*
|
|
25
|
-
* @tagname mdc-banner
|
|
26
|
-
*
|
|
26
|
+
*
|
|
27
27
|
* @csspart leading - The leading section containing the icon and text.
|
|
28
28
|
* @csspart leading-icon - The icon displayed for variants or custom icon slot.
|
|
29
29
|
* @csspart leading-text - The leading section containing label and secondary label text.
|
|
30
30
|
* @csspart trailing - The trailing section containing action buttons and controls.
|
|
31
31
|
* @csspart leading-label - The label text of the banner.
|
|
32
32
|
* @csspart leading-secondary-label - The secondary label text of the banner.
|
|
33
|
-
*
|
|
33
|
+
*
|
|
34
34
|
* @cssproperty --mdc-banner-background-color - Background color of the banner.
|
|
35
35
|
* @cssproperty --mdc-banner-border-color - Border color of the banner.
|
|
36
36
|
* @cssproperty --mdc-banner-border-width - Border width of the banner.
|
|
@@ -15,17 +15,7 @@ import { DEFAULTS } from './banner.constants';
|
|
|
15
15
|
import styles from './banner.styles';
|
|
16
16
|
import { getIconNameForVariant } from './banner.utils';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* and requires user action to dismiss them. It supports different message types with appropriate styling
|
|
20
|
-
* and icons, and provides flexibility for customization through label, secondary label, icons, and actions.
|
|
21
|
-
*
|
|
22
|
-
* They are designed to be noticeable yet non-intrusive, helping users stay informed without interrupting their workflow.
|
|
23
|
-
*
|
|
24
|
-
* This component supports both structured content via properties and flexible customization via slots:
|
|
25
|
-
* - Use the properties (`label`, `secondaryLabel`, `variant`) for standard banner layouts with automatic icon selection.
|
|
26
|
-
* - Use slots for custom content and complete layout control.
|
|
27
|
-
* - Combine both approaches for maximum flexibility.
|
|
28
|
-
* - Create custom orientations and actions using CSS parts and slots.
|
|
18
|
+
* @tagname mdc-banner
|
|
29
19
|
*
|
|
30
20
|
* @dependency mdc-icon
|
|
31
21
|
* @dependency mdc-text
|
|
@@ -35,8 +25,6 @@ import { getIconNameForVariant } from './banner.utils';
|
|
|
35
25
|
* @slot leading-text - Custom text content. Overrides the label and secondaryLabel properties.
|
|
36
26
|
* @slot trailing-actions - Custom action buttons and controls. Use this for dismiss buttons, reset buttons, or any other actions.
|
|
37
27
|
*
|
|
38
|
-
* @tagname mdc-banner
|
|
39
|
-
*
|
|
40
28
|
* @csspart leading - The leading section containing the icon and text.
|
|
41
29
|
* @csspart leading-icon - The icon displayed for variants or custom icon slot.
|
|
42
30
|
* @csspart leading-text - The leading section containing label and secondary label text.
|
|
@@ -2,21 +2,24 @@ import { CSSResult, TemplateResult } from 'lit';
|
|
|
2
2
|
import { Component } from '../../models';
|
|
3
3
|
import type { BrandVisualNames } from './brandvisual.types';
|
|
4
4
|
/**
|
|
5
|
-
* The `
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
5
|
+
* The brandvisual renders brand artwork — logos and wordmarks — from the Momentum `brand-visuals` package. Assets are loaded dynamically by name, so the consumer only references the visual they need and the component handles fetching and inserting the SVG or image at runtime. Successful loads emit a `load` event; failed lookups emit an `error` event so the host application can react.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use `mdc-brandvisual` to render product, company, or partner logos that ship with the Momentum brand library.
|
|
10
|
+
* - Use it when the logo asset is published in `@momentum-design/brand-visuals` and you want the design system to keep the artwork in sync rather than hard-coding inline SVG.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Use `mdc-icon` for UI iconography (controls, status, decorative glyphs) rather than brand artwork.
|
|
15
|
+
* - Use `mdc-illustration` for larger illustrative imagery that is not a brand mark.
|
|
16
|
+
* - Use a plain `<img>` tag when the asset lives outside the Momentum brand library and you do not need the dynamic-loading or event semantics.
|
|
17
|
+
*
|
|
15
18
|
* @tagname mdc-brandvisual
|
|
16
|
-
*
|
|
19
|
+
*
|
|
17
20
|
* @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.
|
|
18
21
|
* @event error - (React: onError) This event is dispatched when the brandvisual fetching has failed.
|
|
19
|
-
*
|
|
22
|
+
*
|
|
20
23
|
* @csspart brandvisual - Set styles for the brandvisual svg container
|
|
21
24
|
* @csspart brandvisualImage - Set styles for the brandvisual image container
|
|
22
25
|
*/
|
|
@@ -12,16 +12,6 @@ import { property, state } from 'lit/decorators.js';
|
|
|
12
12
|
import { Component } from '../../models';
|
|
13
13
|
import styles from './brandvisual.styles';
|
|
14
14
|
/**
|
|
15
|
-
* The `mdc-brandvisual` component is responsible for rendering logos dynamically & ensures they are
|
|
16
|
-
* displayed correctly within applications.
|
|
17
|
-
*
|
|
18
|
-
* Features:
|
|
19
|
-
* - Dynamically loads brandvisuals based on the `name` attribute.
|
|
20
|
-
* - Emits a `load` event when the brandvisual is successfully fetched.
|
|
21
|
-
* - Emits an `error` event when the brandvisual import fails.
|
|
22
|
-
* - Supports accessibility best practices.
|
|
23
|
-
* - Used for brand representation within the design system.
|
|
24
|
-
*
|
|
25
15
|
* @tagname mdc-brandvisual
|
|
26
16
|
*
|
|
27
17
|
* @event load - (React: onLoad) This event is dispatched when the brandvisual has been successfully loaded.
|
|
@@ -2,23 +2,22 @@ import type { CSSResult } from 'lit';
|
|
|
2
2
|
import { Component } from '../../models';
|
|
3
3
|
import type { Size } from './bullet.types';
|
|
4
4
|
/**
|
|
5
|
-
* The
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* -
|
|
18
|
-
*
|
|
19
|
-
*
|
|
5
|
+
* The bullet is a small, non-interactive circular indicator used to mark or separate items in a list-style layout. It provides a consistent visual mark in three sizes (small, medium, large) so consumers can match the bullet to the surrounding content density.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use `mdc-bullet` as a visual marker in custom unordered lists, navigation indicators, or as a separator dot between inline text fragments.
|
|
10
|
+
* - Pick the size based on layout density and visual emphasis: `small` for compact rows, `medium` for typical body content, `large` when the marker should stand out.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Use a native `<ul>`/`<li>` list when the platform's default bullet styling is sufficient — it carries list semantics for free.
|
|
15
|
+
* - Use `mdc-badge` (`dot` type) when the indicator should communicate a notification or status rather than mark a list item.
|
|
16
|
+
* - Use `mdc-presence` when the dot conveys a user's availability state (active, away, busy, dnd).
|
|
17
|
+
* - Use `mdc-divider` when you need a visible separator between sections rather than a marker for an individual item.
|
|
18
|
+
*
|
|
20
19
|
* @tagname mdc-bullet
|
|
21
|
-
*
|
|
20
|
+
*
|
|
22
21
|
* @cssproperty --mdc-bullet-background-color - Background color of the bullet.
|
|
23
22
|
* @cssproperty --mdc-bullet-size - Height of the bullet.
|
|
24
23
|
*/
|
|
@@ -12,21 +12,6 @@ import { Component } from '../../models';
|
|
|
12
12
|
import styles from './bullet.styles';
|
|
13
13
|
import { SIZE } from './bullet.constants';
|
|
14
14
|
/**
|
|
15
|
-
* The Bullet component displays a small circular visual indicator used to organize and present
|
|
16
|
-
* items in a list format. It provides a simple, consistent way to mark list items or emphasize
|
|
17
|
-
* content points.
|
|
18
|
-
*
|
|
19
|
-
* Bullets are available in three sizes (small, medium, large) to accommodate different layout
|
|
20
|
-
* densities and visual hierarchies.
|
|
21
|
-
*
|
|
22
|
-
* ## When to use
|
|
23
|
-
* Use bullets to create unordered lists, mark navigation items, or provide visual indicators
|
|
24
|
-
* for list content. Choose bullet size based on content importance and layout density.
|
|
25
|
-
*
|
|
26
|
-
* ## Accessibility
|
|
27
|
-
* - Bullets are purely decorative and should be used alongside meaningful text content
|
|
28
|
-
* - Do not rely solely on bullet size or color to convey information
|
|
29
|
-
*
|
|
30
15
|
* @tagname mdc-bullet
|
|
31
16
|
*
|
|
32
17
|
* @cssproperty --mdc-bullet-background-color - Background color of the bullet.
|
|
@@ -5,66 +5,36 @@ import Buttonsimple from '../buttonsimple/buttonsimple.component';
|
|
|
5
5
|
import type { IconButtonSize, PillButtonSize } from './button.types';
|
|
6
6
|
declare const Button_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/OverflowMixin").OverflowMixinInterface> & import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/ButtonComponentMixin").ButtonComponentMixinInterface> & typeof Buttonsimple;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* -
|
|
19
|
-
* -
|
|
20
|
-
* -
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* Options for button backgrounds and borders:
|
|
25
|
-
*
|
|
26
|
-
* - **Primary**: Solid background color
|
|
27
|
-
* - **Secondary**: Transparent background with solid border
|
|
28
|
-
* - **Tertiary**: No background or border, text-only appearance
|
|
29
|
-
*
|
|
30
|
-
* ### Button Colors
|
|
31
|
-
*
|
|
32
|
-
* Color options for **Primary** and **Secondary** buttons:
|
|
33
|
-
*
|
|
34
|
-
* - **Default**: For standard actions
|
|
35
|
-
* - **Positive**: For success or confirmation actions
|
|
36
|
-
* - **Negative**: For destructive or error actions
|
|
37
|
-
* - **Accent**: For informational actions
|
|
38
|
-
* - **Promotional**: For promotional actions
|
|
39
|
-
*
|
|
40
|
-
* Color options for **Tertiary** buttons:
|
|
41
|
-
*
|
|
42
|
-
* - **Default**: For standard actions
|
|
43
|
-
* - **Accent**: For informational actions
|
|
44
|
-
* - **Negative**: For destructive or error actions
|
|
45
|
-
*
|
|
46
|
-
* ### Button Sizes
|
|
47
|
-
*
|
|
48
|
-
* Size options for different button configurations in REM:
|
|
49
|
-
*
|
|
50
|
-
* - **Pill button**: 40, 32, 28, 24
|
|
51
|
-
* - **Icon button**: 64, 52, 40, 32, 28, 24
|
|
52
|
-
* - **Tertiary icon button**: 20
|
|
53
|
-
*
|
|
54
|
-
* @dependency mdc-icon
|
|
55
|
-
*
|
|
8
|
+
* The button triggers user actions such as submitting a form, opening a dialog, or running a command. It supports three layouts — pill (text only), pill with leading/trailing icons, and icon-only — and offers variant, color, and size options so it can scale from a primary call-to-action down to a compact toolbar control.
|
|
9
|
+
*
|
|
10
|
+
* **When to use**
|
|
11
|
+
*
|
|
12
|
+
* - Use `mdc-button` for the primary, secondary, or tertiary actions inside forms, dialogs, toolbars, and content surfaces.
|
|
13
|
+
* - Use the icon-only layout for compact action targets such as toolbars or table-row controls where space is constrained and the icon's meaning is unambiguous.
|
|
14
|
+
* - Use the `inverted` flag when placing a primary default button on a dark or inverted surface so the color scheme keeps the required contrast.
|
|
15
|
+
*
|
|
16
|
+
* **When not to use**
|
|
17
|
+
*
|
|
18
|
+
* - Use `mdc-link` when the control navigates to a different URL or in-app route — links should look and behave like links, not buttons.
|
|
19
|
+
* - Use `mdc-linkbutton` when you need the visual styling of a button but the underlying action is a navigation (renders an `<a>` instead of a `<button>`, so it carries link semantics and browser affordances like open-in-new-tab).
|
|
20
|
+
* - Use `mdc-toggle` or `mdc-checkbox` for binary on/off state inside forms — they expose the right form-control semantics rather than mimicking state with a toggled button.
|
|
21
|
+
* - Use `mdc-tab` inside `mdc-tablist` for tabbed navigation rather than a styled button.
|
|
22
|
+
* - Use `mdc-menuitem` (or a related menu item) when the control lives inside a menu surface.
|
|
23
|
+
*
|
|
56
24
|
* @tagname mdc-button
|
|
57
|
-
*
|
|
25
|
+
*
|
|
26
|
+
* @dependency mdc-icon
|
|
27
|
+
*
|
|
58
28
|
* @slot - Text label of the button.
|
|
59
29
|
* @slot prefix - Content to be displayed before the text label.
|
|
60
30
|
* @slot postfix - Content to be displayed after the text label.
|
|
61
|
-
*
|
|
31
|
+
*
|
|
62
32
|
* @csspart button-text - Text label of the button, passed in default slot
|
|
63
33
|
* @csspart prefix - Content before the text label, passed in `prefix` slot
|
|
64
34
|
* @csspart postfix - Content after the text label, passed in `postfix` slot
|
|
65
35
|
* @csspart prefix-icon - Icon element displayed before the text label when `prefix-icon` attribute is set
|
|
66
36
|
* @csspart postfix-icon - Icon element displayed after the text label when `postfix-icon` attribute is set
|
|
67
|
-
*
|
|
37
|
+
*
|
|
68
38
|
* @cssproperty --mdc-button-height - Height for button size
|
|
69
39
|
* @cssproperty --mdc-button-background - Background of the button
|
|
70
40
|
* @cssproperty --mdc-button-border-color - Border color of the button
|
|
@@ -72,7 +42,6 @@ declare const Button_base: import("../../utils/mixins/index.types").Constructor<
|
|
|
72
42
|
* @cssproperty --mdc-button-prefix-icon-size - Size of the prefix icon
|
|
73
43
|
* @cssproperty --mdc-button-postfix-icon-size - Size of the postfix icon
|
|
74
44
|
* @cssproperty --mdc-button-line-height - Line height of the button text
|
|
75
|
-
*
|
|
76
45
|
*/
|
|
77
46
|
declare class Button extends Button_base {
|
|
78
47
|
/**
|
|
@@ -17,56 +17,10 @@ import { DEFAULTS } from './button.constants';
|
|
|
17
17
|
import styles from './button.styles';
|
|
18
18
|
import { getIconNameWithoutStyle } from './button.utils';
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* ## Button configuration
|
|
23
|
-
*
|
|
24
|
-
* The appearance of the button depends on combination of multiple attributes.
|
|
25
|
-
*
|
|
26
|
-
* ### Button Types
|
|
27
|
-
*
|
|
28
|
-
* The type of button is inferred based on the presence of slot and/or prefix and postfix icons/slots:
|
|
29
|
-
*
|
|
30
|
-
* - **Pill button**: Contains text value, commonly used for call to action, tags, or filters
|
|
31
|
-
* - **Pill button with icons**: Contains an icon on the left or right side of the button
|
|
32
|
-
* - **Icon button**: Represented by just an icon without any text
|
|
33
|
-
*
|
|
34
|
-
* ### Button Variants:
|
|
35
|
-
*
|
|
36
|
-
* Options for button backgrounds and borders:
|
|
37
|
-
*
|
|
38
|
-
* - **Primary**: Solid background color
|
|
39
|
-
* - **Secondary**: Transparent background with solid border
|
|
40
|
-
* - **Tertiary**: No background or border, text-only appearance
|
|
41
|
-
*
|
|
42
|
-
* ### Button Colors
|
|
43
|
-
*
|
|
44
|
-
* Color options for **Primary** and **Secondary** buttons:
|
|
45
|
-
*
|
|
46
|
-
* - **Default**: For standard actions
|
|
47
|
-
* - **Positive**: For success or confirmation actions
|
|
48
|
-
* - **Negative**: For destructive or error actions
|
|
49
|
-
* - **Accent**: For informational actions
|
|
50
|
-
* - **Promotional**: For promotional actions
|
|
51
|
-
*
|
|
52
|
-
* Color options for **Tertiary** buttons:
|
|
53
|
-
*
|
|
54
|
-
* - **Default**: For standard actions
|
|
55
|
-
* - **Accent**: For informational actions
|
|
56
|
-
* - **Negative**: For destructive or error actions
|
|
57
|
-
*
|
|
58
|
-
* ### Button Sizes
|
|
59
|
-
*
|
|
60
|
-
* Size options for different button configurations in REM:
|
|
61
|
-
*
|
|
62
|
-
* - **Pill button**: 40, 32, 28, 24
|
|
63
|
-
* - **Icon button**: 64, 52, 40, 32, 28, 24
|
|
64
|
-
* - **Tertiary icon button**: 20
|
|
20
|
+
* @tagname mdc-button
|
|
65
21
|
*
|
|
66
22
|
* @dependency mdc-icon
|
|
67
23
|
*
|
|
68
|
-
* @tagname mdc-button
|
|
69
|
-
*
|
|
70
24
|
* @slot - Text label of the button.
|
|
71
25
|
* @slot prefix - Content to be displayed before the text label.
|
|
72
26
|
* @slot postfix - Content to be displayed after the text label.
|
|
@@ -2,31 +2,28 @@ import { CSSResult, PropertyValues } from 'lit';
|
|
|
2
2
|
import { Component } from '../../models';
|
|
3
3
|
import type { ButtonGroupOrientation, ButtonGroupSize, ButtonGroupVariant } from './buttongroup.types';
|
|
4
4
|
/**
|
|
5
|
-
* `mdc-
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* -
|
|
10
|
-
* -
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
16
|
-
* -
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
* - Only `mdc-button` components are allowed as direct children
|
|
20
|
-
* - The `size` and `variant` set on buttongroup override individual button settings
|
|
21
|
-
*
|
|
5
|
+
* The buttongroup arranges related `mdc-button` instances into a single segmented control. It applies a shared `size` and `variant` to each slotted button so the group reads as one unit, supports horizontal or vertical layouts, and offers a compact mode for space-constrained surfaces.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use `mdc-buttongroup` to cluster mutually related actions that operate on the same target (for example a toolbar of formatting actions, a zoom in/out pair, or a "select / clear" duo).
|
|
10
|
+
* - Use it when the visual unification of multiple buttons communicates that they belong together and share styling.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Use a single `mdc-button` when there is only one action to present.
|
|
15
|
+
* - Use `mdc-tablist` with `mdc-tab` when the controls switch between panels of content — tabs carry the right semantics for that pattern.
|
|
16
|
+
* - Use `mdc-toggle` or `mdc-radiogroup` when the buttons represent a mutually exclusive selection that should be announced as a single form value.
|
|
17
|
+
* - Use `mdc-menubar` or `mdc-menupopover` when the actions belong inside a menu surface rather than a persistent toolbar.
|
|
18
|
+
*
|
|
22
19
|
* @tagname mdc-buttongroup
|
|
23
|
-
*
|
|
20
|
+
*
|
|
24
21
|
* @slot default - This is a default/unnamed slot, which contains the buttons
|
|
25
|
-
*
|
|
22
|
+
*
|
|
26
23
|
* @cssproperty --mdc-buttongroup-border-radius - The border radius of the buttongroup
|
|
27
24
|
* @cssproperty --mdc-buttongroup-border-color - The border color of the buttongroup
|
|
28
25
|
* @cssproperty --mdc-buttongroup-divider-color - The color of the divider between buttons within the buttongroup
|
|
29
|
-
*
|
|
26
|
+
*
|
|
30
27
|
* @csspart container - The container of the buttongroup.
|
|
31
28
|
*/
|
|
32
29
|
declare class ButtonGroup extends Component {
|
|
@@ -13,23 +13,6 @@ import { Component } from '../../models';
|
|
|
13
13
|
import { DEFAULTS } from './buttongroup.constants';
|
|
14
14
|
import styles from './buttongroup.styles';
|
|
15
15
|
/**
|
|
16
|
-
* `mdc-buttongroup` is a wrapper component that groups multiple buttons together.
|
|
17
|
-
*
|
|
18
|
-
* ## Supported button types
|
|
19
|
-
* - Icon buttons
|
|
20
|
-
* - Pill buttons
|
|
21
|
-
* - Combination of icon and pill buttons
|
|
22
|
-
*
|
|
23
|
-
* ## Features
|
|
24
|
-
* - Horizontal or vertical orientation
|
|
25
|
-
* - Unified size and variant applied to all child buttons
|
|
26
|
-
* - Optional compact mode for reduced height
|
|
27
|
-
* - Supported sizes: 24, 28 (default), 32, 40
|
|
28
|
-
*
|
|
29
|
-
* ## Usage
|
|
30
|
-
* - Only `mdc-button` components are allowed as direct children
|
|
31
|
-
* - The `size` and `variant` set on buttongroup override individual button settings
|
|
32
|
-
*
|
|
33
16
|
* @tagname mdc-buttongroup
|
|
34
17
|
*
|
|
35
18
|
* @slot default - This is a default/unnamed slot, which contains the buttons
|
|
@@ -3,32 +3,35 @@ import Linksimple from '../linksimple/linksimple.component';
|
|
|
3
3
|
import type { IconButtonSize, PillButtonSize } from '../button/button.types';
|
|
4
4
|
declare const ButtonLink_base: import("../../utils/mixins/index.types").Constructor<import("../../utils/mixins/ButtonComponentMixin").ButtonComponentMixinInterface> & typeof Linksimple;
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* -
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
6
|
+
* The buttonlink renders a navigational anchor (`<a>`) styled as a button. It is the right choice when the visual treatment should match a button but the action is navigation — the underlying element carries link semantics, so right-click, middle-click, and "open in new tab" all work as users expect.
|
|
7
|
+
*
|
|
8
|
+
* **When to use**
|
|
9
|
+
*
|
|
10
|
+
* - Use `mdc-buttonlink` when the control navigates to a different URL or in-app route but the design calls for a button's visual weight (primary call-to-action, prominent toolbar entry, etc.).
|
|
11
|
+
* - Use it when you want native browser link affordances such as `target="_blank"`, `download`, `ping`, or `rel` while keeping the button appearance.
|
|
12
|
+
*
|
|
13
|
+
* **When not to use**
|
|
14
|
+
*
|
|
15
|
+
* - Use `mdc-button` when the control performs an action (submitting a form, opening a dialog, running a command) and does not change the URL.
|
|
16
|
+
* - Use `mdc-link` when the control is a textual inline or standalone link and does not need to look like a button.
|
|
17
|
+
* - Use `mdc-linksimple` when you need a minimal, unstyled link primitive without button styling or icon slots.
|
|
18
|
+
*
|
|
18
19
|
* @tagname mdc-buttonlink
|
|
19
|
-
*
|
|
20
|
+
*
|
|
21
|
+
* @dependency mdc-icon
|
|
22
|
+
*
|
|
20
23
|
* @slot default - The default slot for buttonlink text content.
|
|
21
|
-
*
|
|
24
|
+
*
|
|
22
25
|
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|
|
23
26
|
* @event keydown - (React: onKeyDown) Fired when the user presses a key while the buttonLink has focus.
|
|
24
27
|
* @event focus - (React: onFocus) Fired when the buttonLink receives keyboard or mouse focus.
|
|
25
28
|
* @event blur - (React: onBlur) Fired when the buttonLink loses keyboard or mouse focus.
|
|
26
|
-
*
|
|
29
|
+
*
|
|
27
30
|
* @csspart anchor - The anchor element that wraps the buttonlink content.
|
|
28
31
|
* @csspart prefix-icon - The prefix icon element.
|
|
29
32
|
* @csspart button-text - The slot containing the buttonlink text.
|
|
30
33
|
* @csspart postfix-icon - The postfix icon element.
|
|
31
|
-
*
|
|
34
|
+
*
|
|
32
35
|
* @cssproperty --mdc-button-height - Height of the buttonlink
|
|
33
36
|
* @cssproperty --mdc-button-background - Background color of the buttonlink
|
|
34
37
|
* @cssproperty --mdc-button-border-color - Border color of the buttonlink
|
|
@@ -15,20 +15,10 @@ import { DEFAULTS } from '../button/button.constants';
|
|
|
15
15
|
import Linksimple from '../linksimple/linksimple.component';
|
|
16
16
|
import styles from './buttonlink.styles';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
19
|
-
* features of `mdc-button`. This includes support for variants, sizing, and optional
|
|
20
|
-
* prefix and postfix icons.
|
|
21
|
-
*
|
|
22
|
-
* ### Features:
|
|
23
|
-
* - Behaves like a link while visually resembling a button.
|
|
24
|
-
* - Customizable size, color, and variant through attributes.
|
|
25
|
-
* - Supports prefix and postfix icons.
|
|
26
|
-
* - Inherits accessibility and keyboard interaction support from `mdc-linksimple`.
|
|
18
|
+
* @tagname mdc-buttonlink
|
|
27
19
|
*
|
|
28
20
|
* @dependency mdc-icon
|
|
29
21
|
*
|
|
30
|
-
* @tagname mdc-buttonlink
|
|
31
|
-
*
|
|
32
22
|
* @slot default - The default slot for buttonlink text content.
|
|
33
23
|
*
|
|
34
24
|
* @event click - (React: onClick) Fired when the user activates the buttonLink using a mouse or assistive technology.
|