@momentum-design/components 0.134.20 → 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.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/package.json +1 -1
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
import Component from '../../components/staticchip';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
3
|
+
* The static chip is a small, non-interactive element used to display a short label with an optional leading icon. It is intended for displaying metadata, tags, or status, and supports a fixed set of colour variants.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use `mdc-staticchip` to display a short label or status that the user cannot interact with (e.g. a tag, category, or read-only attribute).
|
|
8
|
+
* - Use it inside lists, cards, or summary rows where the chip is purely informational.
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Use `mdc-chip` when the chip should respond to user interaction (click, selection).
|
|
13
|
+
* - Use `mdc-filterchip` for chips that toggle on/off as filters.
|
|
14
|
+
* - Use `mdc-inputchip` for editable, removable chips inside an input.
|
|
15
|
+
* - Use `mdc-badge` when you need a smaller, status-only indicator (especially for counts or notifications).
|
|
16
|
+
*
|
|
8
17
|
* @tagname mdc-staticchip
|
|
9
|
-
*
|
|
18
|
+
*
|
|
10
19
|
* @dependency mdc-icon
|
|
11
20
|
* @dependency mdc-text
|
|
12
|
-
*
|
|
21
|
+
*
|
|
13
22
|
* @cssproperty --mdc-chip-color - The color of the static chip.
|
|
14
23
|
* @cssproperty --mdc-chip-border-color - The border color of the static chip.
|
|
15
24
|
* @cssproperty --mdc-chip-background-color - The background color of the static chip.
|
|
16
|
-
*
|
|
25
|
+
*
|
|
17
26
|
* @csspart label - The label of the static chip.
|
|
18
27
|
* @csspart icon - The icon of the static chip.
|
|
19
28
|
*/
|
|
@@ -3,11 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/staticchip';
|
|
4
4
|
import { TAG_NAME } from '../../components/staticchip/staticchip.constants';
|
|
5
5
|
/**
|
|
6
|
-
* mdc-staticchip is an static element that can be used to represent a chip. It supports a leading icon along with label.
|
|
7
|
-
*
|
|
8
|
-
* It is recommended to keep the label text for the chip component concise and compact.<br/>
|
|
9
|
-
* For best results, we recommend limiting the <b>maximum length of the label text to 20 characters</b>, including empty spaces to split words.
|
|
10
|
-
*
|
|
11
6
|
* @tagname mdc-staticchip
|
|
12
7
|
*
|
|
13
8
|
* @dependency mdc-icon
|
|
@@ -1,31 +1,27 @@
|
|
|
1
1
|
import Component from '../../components/staticradio';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* `mdc-radio`
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* - StaticRadio is decorative and non-interactive by design
|
|
16
|
-
* - Always pair with descriptive text labels in the default slot
|
|
17
|
-
* - Do not use this as a replacement for interactive radio buttons in forms
|
|
18
|
-
*
|
|
3
|
+
* The static radio is a decorative, non-interactive radio button used to display radio states in read-only contexts (summary views, confirmation screens, historical form data). It supports checked, disabled, soft-disabled, and read-only visual states but does not handle user interaction or participate in forms.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use `mdc-staticradio` to render the visual shape of a radio button in read-only UIs such as summary screens, confirmation screens, or historical form data.
|
|
8
|
+
* - Use it inside lists or cards where the radio is part of the display, not a control.
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Use `mdc-radio` for any interactive radio in a form.
|
|
13
|
+
* - Do not use `mdc-staticradio` as a replacement for `mdc-radio` — it cannot be focused, toggled, or submitted with a form.
|
|
14
|
+
*
|
|
19
15
|
* @tagname mdc-staticradio
|
|
20
|
-
*
|
|
16
|
+
*
|
|
21
17
|
* @cssproperty --mdc-staticradio-inner-circle-size - Size of the inner circle when checked.
|
|
22
18
|
* @cssproperty --mdc-staticradio-outer-circle-size - Size of the outer circle border.
|
|
23
19
|
* @cssproperty --mdc-staticradio-inner-circle-background-color - Background color of the inner circle when checked.
|
|
24
20
|
* @cssproperty --mdc-staticradio-outer-circle-border-color - Border color of the outer circle.
|
|
25
21
|
* @cssproperty --mdc-staticradio-outer-circle-background-color - Background color of the outer circle.
|
|
26
|
-
*
|
|
22
|
+
*
|
|
27
23
|
* @csspart radio-icon - The radio icon element.
|
|
28
|
-
*
|
|
24
|
+
*
|
|
29
25
|
* @slot - Default slot for the label of the radio.
|
|
30
26
|
*/
|
|
31
27
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -3,22 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/staticradio';
|
|
4
4
|
import { TAG_NAME } from '../../components/staticradio/staticradio.constants';
|
|
5
5
|
/**
|
|
6
|
-
* The StaticRadio component is a decorative, non-interactive radio button used for visual
|
|
7
|
-
* presentation in read-only scenarios. Unlike the interactive `mdc-radio`, it does not
|
|
8
|
-
* handle user interactions or form submissions.
|
|
9
|
-
*
|
|
10
|
-
* This component supports multiple visual states: checked, disabled, readonly, and soft-disabled.
|
|
11
|
-
*
|
|
12
|
-
* ## When to use
|
|
13
|
-
* Use StaticRadio to display radio button states in read-only contexts such as summary views,
|
|
14
|
-
* confirmation screens, or when showing historical form data. For interactive radio buttons, use
|
|
15
|
-
* `mdc-radio` instead.
|
|
16
|
-
*
|
|
17
|
-
* ## Accessibility
|
|
18
|
-
* - StaticRadio is decorative and non-interactive by design
|
|
19
|
-
* - Always pair with descriptive text labels in the default slot
|
|
20
|
-
* - Do not use this as a replacement for interactive radio buttons in forms
|
|
21
|
-
*
|
|
22
6
|
* @tagname mdc-staticradio
|
|
23
7
|
*
|
|
24
8
|
* @cssproperty --mdc-staticradio-inner-circle-size - Size of the inner circle when checked.
|
|
@@ -1,26 +1,21 @@
|
|
|
1
1
|
import Component from '../../components/statictoggle';
|
|
2
2
|
/**
|
|
3
|
-
* The
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* ## Accessibility
|
|
16
|
-
* - StaticToggle is decorative and non-interactive by design
|
|
17
|
-
* - When used within parent components, ensure proper ARIA attributes are provided by the parent
|
|
18
|
-
* - Do not use this as a replacement for interactive toggles in forms
|
|
19
|
-
*
|
|
3
|
+
* The static toggle is a decorative, non-interactive toggle switch used for visual presentation. It shares the same styling as the interactive `mdc-toggle` but does not provide user interaction or form participation.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use to display toggle state in read-only contexts such as summary views, confirmation screens, or list rows where state is reported but not editable.
|
|
8
|
+
* - Use as a visual building block inside custom interactive components (e.g. composed inside a list item that handles the click).
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Do not use as a replacement for an interactive toggle in forms — use `mdc-toggle` instead.
|
|
13
|
+
* - Do not use when users need to change the value directly on this control.
|
|
14
|
+
*
|
|
20
15
|
* @tagname mdc-statictoggle
|
|
21
|
-
*
|
|
16
|
+
*
|
|
22
17
|
* @dependency mdc-icon
|
|
23
|
-
*
|
|
18
|
+
*
|
|
24
19
|
* @cssproperty --mdc-statictoggle-width - Width of the static toggle.
|
|
25
20
|
* @cssproperty --mdc-statictoggle-height - Height of the static toggle.
|
|
26
21
|
* @cssproperty --mdc-statictoggle-border-radius - Border radius of the static toggle.
|
|
@@ -28,10 +23,10 @@ import Component from '../../components/statictoggle';
|
|
|
28
23
|
* @cssproperty --mdc-statictoggle-background-color - Background color of the static toggle.
|
|
29
24
|
* @cssproperty --mdc-statictoggle-icon-color - Icon color of the static toggle.
|
|
30
25
|
* @cssproperty --mdc-statictoggle-icon-background-color - Icon background color of the static toggle.
|
|
31
|
-
*
|
|
26
|
+
*
|
|
32
27
|
* @csspart slider - The slider part of the toggle.
|
|
33
28
|
* @csspart toggle-icon - The icon part of the toggle.
|
|
34
|
-
*
|
|
29
|
+
*
|
|
35
30
|
* @slot - Default slot for slotted content (typically used by parent `mdc-toggle` for the checkbox input).
|
|
36
31
|
*/
|
|
37
32
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -3,23 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/statictoggle';
|
|
4
4
|
import { TAG_NAME } from '../../components/statictoggle/statictoggle.constants';
|
|
5
5
|
/**
|
|
6
|
-
* The StaticToggle component is a decorative, non-interactive toggle switch used for visual
|
|
7
|
-
* presentation. It shares the same styling as the interactive `mdc-toggle` component but does
|
|
8
|
-
* not provide user interaction functionality.
|
|
9
|
-
*
|
|
10
|
-
* This component supports multiple visual states: checked, disabled, readonly, soft-disabled,
|
|
11
|
-
* and size variations (default, compact).
|
|
12
|
-
*
|
|
13
|
-
* ## When to use
|
|
14
|
-
* Use StaticToggle to display toggle states in read-only contexts such as summary views,
|
|
15
|
-
* confirmation screens, or as a building block within custom interactive components. For
|
|
16
|
-
* interactive toggles, use `mdc-toggle` instead.
|
|
17
|
-
*
|
|
18
|
-
* ## Accessibility
|
|
19
|
-
* - StaticToggle is decorative and non-interactive by design
|
|
20
|
-
* - When used within parent components, ensure proper ARIA attributes are provided by the parent
|
|
21
|
-
* - Do not use this as a replacement for interactive toggles in forms
|
|
22
|
-
*
|
|
23
6
|
* @tagname mdc-statictoggle
|
|
24
7
|
*
|
|
25
8
|
* @dependency mdc-icon
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
import Component from '../../components/stepper';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
3
|
+
* The stepper is the container component that arranges a sequence of `mdc-stepperitem` elements interleaved with `mdc-stepperconnector` elements. It provides the shared orientation and variant context that the items and connectors read so they render consistently with the group.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use to communicate progress through a multi-step linear process (e.g. an onboarding flow, a checkout, a wizard).
|
|
8
|
+
* - Use horizontally for top-of-page progress indicators and vertically when the steps need richer help text alongside each entry.
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Do not use for non-sequential navigation between unrelated views — use `mdc-tablist` or another navigation pattern instead.
|
|
13
|
+
* - Do not use when there is only one step.
|
|
14
|
+
*
|
|
6
15
|
* @tagname mdc-stepper
|
|
7
|
-
*
|
|
16
|
+
*
|
|
8
17
|
* @slot default - Pass the list of `mdc-stepperitem` and `mdc-stepperconnector` elements to be rendered inside the stepper.
|
|
9
|
-
*
|
|
10
18
|
*/
|
|
11
19
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
12
20
|
export default reactWrapper;
|
|
@@ -3,9 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/stepper';
|
|
4
4
|
import { TAG_NAME } from '../../components/stepper/stepper.constants';
|
|
5
5
|
/**
|
|
6
|
-
* Stepper component, which orchestrates stepperitem and stepperconnector components, is a wrapper for the stepper functionality.
|
|
7
|
-
* It provides the context for the stepper items and connectors, allowing them to adapt to the stepper's orientation and variant.
|
|
8
|
-
*
|
|
9
6
|
* @tagname mdc-stepper
|
|
10
7
|
*
|
|
11
8
|
* @slot default - Pass the list of `mdc-stepperitem` and `mdc-stepperconnector` elements to be rendered inside the stepper.
|
|
@@ -1,13 +1,20 @@
|
|
|
1
1
|
import Component from '../../components/stepperconnector';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
3
|
+
* The stepper connector is the decorative line drawn between two `mdc-stepperitem` elements inside an `mdc-stepper`. Its colour reflects whether the connection between the two steps is complete or incomplete.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Place between every pair of adjacent `mdc-stepperitem` elements so the visual progress chain is unbroken.
|
|
8
|
+
*
|
|
9
|
+
* **When not to use**
|
|
10
|
+
*
|
|
11
|
+
* - Do not use outside of an `mdc-stepper` — without the parent context the orientation will not follow the group.
|
|
12
|
+
* - Do not use as a generic divider; use a divider component instead.
|
|
13
|
+
*
|
|
7
14
|
* @tagname mdc-stepperconnector
|
|
8
|
-
*
|
|
15
|
+
*
|
|
9
16
|
* @csspart connector - The main connector line between steps
|
|
10
|
-
*
|
|
17
|
+
*
|
|
11
18
|
* @cssproperty --mdc-stepperconnector-complete-background - Background color for the complete connector
|
|
12
19
|
* @cssproperty --mdc-stepperconnector-incomplete-background - Background color for the incomplete connector
|
|
13
20
|
*/
|
|
@@ -3,10 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/stepperconnector';
|
|
4
4
|
import { TAG_NAME } from '../../components/stepperconnector/stepperconnector.constants';
|
|
5
5
|
/**
|
|
6
|
-
* StepperConnector component visually represents the connection between two stepper items.
|
|
7
|
-
* Indicates whether the connection is complete or incomplete, and supports vertical or horizontal orientation.
|
|
8
|
-
* They are used between 2 `mdc-stepperitem` components to visually connect them and wrapped in a `mdc-stepper` component.
|
|
9
|
-
*
|
|
10
6
|
* @tagname mdc-stepperconnector
|
|
11
7
|
*
|
|
12
8
|
* @csspart connector - The main connector line between steps
|
|
@@ -2,24 +2,26 @@ import { type EventName } from '@lit/react';
|
|
|
2
2
|
import Component from '../../components/stepperitem';
|
|
3
3
|
import type { Events } from '../../components/stepperitem/stepperitem.types';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
5
|
+
* The stepper item represents a single step inside an `mdc-stepper`. It renders a status indicator (completed checkmark, current pencil, error icon, or step number), a label, and an optional help text line. The component is uncontrolled — consumers drive the `status` of each step.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use one stepper item per step in a sequenced process, placed inside an `mdc-stepper` with `mdc-stepperconnector` elements between adjacent items.
|
|
10
|
+
*
|
|
11
|
+
* **When not to use**
|
|
12
|
+
*
|
|
13
|
+
* - Do not use as a standalone clickable card; for selectable cards use `mdc-cardbutton` or similar.
|
|
14
|
+
* - Do not use outside of `mdc-stepper`, since orientation and variant come from the parent context.
|
|
15
|
+
*
|
|
16
|
+
* @tagname mdc-stepperitem
|
|
17
|
+
*
|
|
14
18
|
* @dependency mdc-icon
|
|
15
19
|
* @dependency mdc-text
|
|
16
|
-
*
|
|
17
|
-
* @tagname mdc-stepperitem
|
|
18
|
-
*
|
|
20
|
+
*
|
|
19
21
|
* @event click - (React: onClick) This event is dispatched when the stepperitem is clicked.
|
|
20
22
|
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the stepperitem.
|
|
21
23
|
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the stepperitem.
|
|
22
|
-
*
|
|
24
|
+
*
|
|
23
25
|
* @csspart status-container - The container for the status icon or step number.
|
|
24
26
|
* @csspart label-container - The container for the label and help text.
|
|
25
27
|
* @csspart help-text-container - The container for the help text and error icon when applicable.
|
|
@@ -28,7 +30,7 @@ import type { Events } from '../../components/stepperitem/stepperitem.types';
|
|
|
28
30
|
* @csspart label - The text representing the label of the stepper item.
|
|
29
31
|
* @csspart help-text - The text providing additional information about the stepper item.
|
|
30
32
|
* @csspart help-icon - The icon representing an error in the stepper item.
|
|
31
|
-
*
|
|
33
|
+
*
|
|
32
34
|
* @cssproperty --mdc-stepperitem-status-container-background - The background color of the status container.
|
|
33
35
|
* @cssproperty --mdc-stepperitem-status-container-border-color - The border color of the status container.
|
|
34
36
|
* @cssproperty --mdc-stepperitem-label-color - The color of the label text.
|
|
@@ -3,20 +3,11 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/stepperitem';
|
|
4
4
|
import { TAG_NAME } from '../../components/stepperitem/stepperitem.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* It can have different statuses such as `completed`, `current`, `incomplete`, `error-current`, and `error-incomplete`.
|
|
8
|
-
* The component supports various visual styles and can be customized with labels, help text, and step numbers.
|
|
9
|
-
*
|
|
10
|
-
* This is an uncontrolled component, meaning it does not manage its own state. Instead, it relies on the consumer's to manage the state of each step.
|
|
11
|
-
* Make sure to set `aria-current="step"` on the current stepper item. It is applicable only when status is `current` or `error-current`. This ensures accessibility for the stepper component. Only one stepper item should have this attribute at a time.
|
|
12
|
-
*
|
|
13
|
-
* Additionally, make use of `aria-label` to provide a descriptive detail about the stepper item, especially for screen readers. If this aria-label is not set, it would read out only the label text and doesn't provide enough context for the user.
|
|
6
|
+
* @tagname mdc-stepperitem
|
|
14
7
|
*
|
|
15
8
|
* @dependency mdc-icon
|
|
16
9
|
* @dependency mdc-text
|
|
17
10
|
*
|
|
18
|
-
* @tagname mdc-stepperitem
|
|
19
|
-
*
|
|
20
11
|
* @event click - (React: onClick) This event is dispatched when the stepperitem is clicked.
|
|
21
12
|
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the stepperitem.
|
|
22
13
|
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the stepperitem.
|
|
@@ -3,24 +3,23 @@ import Component from '../../components/tab';
|
|
|
3
3
|
import type { Events } from '../../components/tab/tab.types';
|
|
4
4
|
import type { Events as EventsInherited } from '../../components/buttonsimple/buttonsimple.types';
|
|
5
5
|
/**
|
|
6
|
-
* `mdc-
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
6
|
+
* The tab is the individual control rendered inside an `mdc-tablist`. It displays an optional icon, a text label, and optional postfix content (badge or chip), and reflects its active state to assistive technologies.
|
|
7
|
+
*
|
|
8
|
+
* **When to use**
|
|
9
|
+
*
|
|
10
|
+
* - Use inside an `mdc-tablist` to represent one panel of content the user can switch to.
|
|
11
|
+
* - Use to provide a compact, single-line label for content panels related to one another.
|
|
12
|
+
*
|
|
13
|
+
* **When not to use**
|
|
14
|
+
*
|
|
15
|
+
* - Do not use tabs to navigate between unrelated pages — use a navigation pattern.
|
|
16
|
+
* - Do not use a tab outside of an `mdc-tablist` if the tabs pattern semantics are needed; the list owns roving focus and selection wiring.
|
|
17
|
+
*
|
|
18
|
+
* @tagname mdc-tab
|
|
19
|
+
*
|
|
21
20
|
* @dependency mdc-icon
|
|
22
21
|
* @dependency mdc-text
|
|
23
|
-
*
|
|
22
|
+
*
|
|
24
23
|
* @event click - (React: onClick) This event is dispatched when the tab is clicked.
|
|
25
24
|
* @event keydown - (React: onKeyDown) This event is dispatched when a key is pressed down on the tab.
|
|
26
25
|
* @event keyup - (React: onKeyUp) This event is dispatched when a key is released on the tab.
|
|
@@ -31,9 +30,7 @@ import type { Events as EventsInherited } from '../../components/buttonsimple/bu
|
|
|
31
30
|
* <br />
|
|
32
31
|
* Note: the activechange event is used by the tab list component to react to the change in state of the tab,
|
|
33
32
|
* so this event won't be needed if the tab list is used.
|
|
34
|
-
*
|
|
35
|
-
* @tagname mdc-tab
|
|
36
|
-
*
|
|
33
|
+
*
|
|
37
34
|
* @cssproperty --mdc-tab-height - The height of the tab.
|
|
38
35
|
* @cssproperty --mdc-tab-padding-left - The left padding of the tab.
|
|
39
36
|
* @cssproperty --mdc-tab-padding-right - The right padding of the tab.
|
|
@@ -42,21 +39,21 @@ import type { Events as EventsInherited } from '../../components/buttonsimple/bu
|
|
|
42
39
|
* @cssproperty --mdc-tab-color - The text color of the tab.
|
|
43
40
|
* @cssproperty --mdc-tab-border-radius - The border radius of the tab.
|
|
44
41
|
* @cssproperty --mdc-tab-content-justification - The justification of the content in the tab.
|
|
45
|
-
*
|
|
42
|
+
*
|
|
46
43
|
* @cssproperty --mdc-tab-line-active-indicator-height - The height of the active indicator line.
|
|
47
44
|
* @cssproperty --mdc-tab-line-active-indicator-width - The width of the active indicator line.
|
|
48
|
-
*
|
|
45
|
+
*
|
|
49
46
|
* @cssproperty --mdc-tab-line-border-bottom-left-radius - The border bottom left radius of the active indicator line.
|
|
50
47
|
* @cssproperty --mdc-tab-line-border-bottom-right-radius - The border bottom right radius of the active indicator line.
|
|
51
48
|
* @cssproperty --mdc-tab-line-border-top-left-radius - The border top left radius of the active indicator line.
|
|
52
49
|
* @cssproperty --mdc-tab-line-border-top-right-radius - The border top right radius of the active indicator line.
|
|
53
|
-
*
|
|
50
|
+
*
|
|
54
51
|
* @csspart container - The container of the tab.
|
|
55
52
|
* @csspart regular-icon - The icon of the tab, if inactive.
|
|
56
53
|
* @csspart filled-icon - The icon of the tab, if active.
|
|
57
54
|
* @csspart indicator - The indicator of the tab.
|
|
58
55
|
* @csspart text - The text of the tab.
|
|
59
|
-
*
|
|
56
|
+
*
|
|
60
57
|
* @slot prefix - The slot for the content before the text, typically used for the icon.
|
|
61
58
|
* @slot postfix - The slot for the content after the text, typically used for the badge or chip.
|
|
62
59
|
*/
|
package/dist/react/tab/index.js
CHANGED
|
@@ -3,20 +3,7 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/tab';
|
|
4
4
|
import { TAG_NAME } from '../../components/tab/tab.constants';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Passing in the attribute `text` to the tab component is changing the text displayed in the tab.
|
|
9
|
-
*
|
|
10
|
-
* Pass attribute `tabid` when using inside of `tablist` component.
|
|
11
|
-
*
|
|
12
|
-
* The `slot="badge"` can be used to add a badge to the tab.
|
|
13
|
-
*
|
|
14
|
-
* The `slot="chip"` can be used to add a chip to the tab.
|
|
15
|
-
*
|
|
16
|
-
* For `icon`, the `mdc-icon` component is used to render the icon.
|
|
17
|
-
*
|
|
18
|
-
* Note: Icons can be used in conjunction with badges or chips.
|
|
19
|
-
* Badges and chips should not be used at the same time.
|
|
6
|
+
* @tagname mdc-tab
|
|
20
7
|
*
|
|
21
8
|
* @dependency mdc-icon
|
|
22
9
|
* @dependency mdc-text
|
|
@@ -32,8 +19,6 @@ import { TAG_NAME } from '../../components/tab/tab.constants';
|
|
|
32
19
|
* Note: the activechange event is used by the tab list component to react to the change in state of the tab,
|
|
33
20
|
* so this event won't be needed if the tab list is used.
|
|
34
21
|
*
|
|
35
|
-
* @tagname mdc-tab
|
|
36
|
-
*
|
|
37
22
|
* @cssproperty --mdc-tab-height - The height of the tab.
|
|
38
23
|
* @cssproperty --mdc-tab-padding-left - The left padding of the tab.
|
|
39
24
|
* @cssproperty --mdc-tab-padding-right - The right padding of the tab.
|
|
@@ -2,48 +2,36 @@ import { type EventName } from '@lit/react';
|
|
|
2
2
|
import Component from '../../components/tablist';
|
|
3
3
|
import type { Events } from '../../components/tablist/tablist.types';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* **
|
|
13
|
-
*
|
|
14
|
-
* -
|
|
15
|
-
* -
|
|
16
|
-
*
|
|
17
|
-
* and all other tab elements have it set to `false`.
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* **Accessibility notes for consuming (have to be explicitly set when you consume the component)**
|
|
21
|
-
*
|
|
22
|
-
* - Each element that contains the `content panel` for a `tab` has role `tabpanel`.
|
|
23
|
-
* - The `tablist` element needs to have a label provided by `data-aria-label`.
|
|
24
|
-
* - Each element with role `tab` has the property `aria-controls`
|
|
25
|
-
* that should refer to its associated `tabpanel` element.
|
|
26
|
-
* - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.
|
|
27
|
-
* - If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.
|
|
28
|
-
*
|
|
5
|
+
* The tab list organises a row of `mdc-tab` elements into a horizontal container. It implements the WAI-ARIA tabs pattern: roving focus with arrow keys, click or Enter/Space activation, and automatic scroll arrow buttons when the tabs overflow their container.
|
|
6
|
+
*
|
|
7
|
+
* **When to use**
|
|
8
|
+
*
|
|
9
|
+
* - Use to switch between several related content panels in the same view.
|
|
10
|
+
* - Use when one panel is visible at a time and the user can move between them.
|
|
11
|
+
*
|
|
12
|
+
* **When not to use**
|
|
13
|
+
*
|
|
14
|
+
* - Do not use for primary navigation between pages.
|
|
15
|
+
* - Do not use when there is only one panel or when the panels are conceptually unrelated.
|
|
16
|
+
*
|
|
29
17
|
* @tagname mdc-tablist
|
|
30
|
-
*
|
|
18
|
+
*
|
|
31
19
|
* @dependency mdc-tab
|
|
32
20
|
* @dependency mdc-button
|
|
33
|
-
*
|
|
21
|
+
*
|
|
34
22
|
* @event change - (React: onChange) This event is dispatched when the tab is selected.
|
|
35
23
|
* Event that fires when user changes the active tab.
|
|
36
24
|
* The function sent as the argument will receive the fired event
|
|
37
25
|
* and the new tab id can be fetched from event.detail.tabId.
|
|
38
|
-
*
|
|
26
|
+
*
|
|
39
27
|
* `(event: CustomEvent) => handleTabChange(event.detail.tabId);`
|
|
40
|
-
*
|
|
28
|
+
*
|
|
41
29
|
* @slot Default slot for mdc-tab elements.
|
|
42
|
-
*
|
|
30
|
+
*
|
|
43
31
|
* @cssproperty --mdc-tablist-gap - Gap between tabs
|
|
44
32
|
* @cssproperty --mdc-tablist-width - Width of the tablist
|
|
45
33
|
* @cssproperty --mdc-tablist-arrow-button-margin - Margin value for the arrow button
|
|
46
|
-
*
|
|
34
|
+
*
|
|
47
35
|
* @csspart container - The tablist container.
|
|
48
36
|
*/
|
|
49
37
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {
|
|
@@ -3,30 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/tablist';
|
|
4
4
|
import { TAG_NAME } from '../../components/tablist/tablist.constants';
|
|
5
5
|
/**
|
|
6
|
-
* Tab list organizes tabs into a container.
|
|
7
|
-
*
|
|
8
|
-
* Children of the tab list are `mdc-tab` elements, sent to the default slot.
|
|
9
|
-
*
|
|
10
|
-
* The tabs can be navigated using the left/right arrow keys, and selected by clicking,
|
|
11
|
-
* or pressing the Enter and Space keys.
|
|
12
|
-
*
|
|
13
|
-
* **Implicit accessibility rules**
|
|
14
|
-
*
|
|
15
|
-
* - The element that serves as the container for the set of tabs has role `tablist`.
|
|
16
|
-
* - Each element that serves as a tab has role `tab` and is contained within the element with role `tablist`.
|
|
17
|
-
* - The active tab element has the state `aria-selected` set to `true`
|
|
18
|
-
* and all other tab elements have it set to `false`.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* **Accessibility notes for consuming (have to be explicitly set when you consume the component)**
|
|
22
|
-
*
|
|
23
|
-
* - Each element that contains the `content panel` for a `tab` has role `tabpanel`.
|
|
24
|
-
* - The `tablist` element needs to have a label provided by `data-aria-label`.
|
|
25
|
-
* - Each element with role `tab` has the property `aria-controls`
|
|
26
|
-
* that should refer to its associated `tabpanel` element.
|
|
27
|
-
* - Each element with role `tabpanel` has the property `aria-labelledby` referring to its associated `tab` element.
|
|
28
|
-
* - If a `tab` element has a popup menu, it needs to have the property `aria-haspopup` set to either `menu` or `true`.
|
|
29
|
-
*
|
|
30
6
|
* @tagname mdc-tablist
|
|
31
7
|
*
|
|
32
8
|
* @dependency mdc-tab
|
|
@@ -1,20 +1,19 @@
|
|
|
1
1
|
import Component from '../../components/text';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
3
|
+
* The text component is the typography primitive for the design system. It renders any of the standard text-bearing HTML elements (`p`, `span`, `div`, `small`, `h1`–`h6`) and applies one of the predefined token-driven type styles. Mount the component inside an `mdc-themeprovider` so colour and font tokens resolve correctly.
|
|
4
|
+
*
|
|
5
|
+
* **When to use**
|
|
6
|
+
*
|
|
7
|
+
* - Use whenever you need a piece of styled text inside any component or page.
|
|
8
|
+
* - Use to choose the semantic tag (`tagname`) independently from the visual style (`type`), so the heading hierarchy of the page stays correct without forcing a specific size.
|
|
9
|
+
*
|
|
10
|
+
* **When not to use**
|
|
11
|
+
*
|
|
12
|
+
* - Do not use to render rich interactive controls — wrap text inside the appropriate interactive component instead.
|
|
13
|
+
*
|
|
15
14
|
* @tagname mdc-text
|
|
16
15
|
* @slot - Default slot for text content
|
|
17
|
-
*
|
|
16
|
+
*
|
|
18
17
|
* @csspart text - The text element
|
|
19
18
|
*/
|
|
20
19
|
declare const reactWrapper: import("@lit/react").ReactWebComponent<Component, {}>;
|
package/dist/react/text/index.js
CHANGED
|
@@ -3,18 +3,6 @@ import { createComponent } from '@lit/react';
|
|
|
3
3
|
import Component from '../../components/text';
|
|
4
4
|
import { TAG_NAME } from '../../components/text/text.constants';
|
|
5
5
|
/**
|
|
6
|
-
* Text component for creating styled text elements.
|
|
7
|
-
* It has to be mounted within the ThemeProvider to access color and font tokens.
|
|
8
|
-
*
|
|
9
|
-
* The `type` attribute allows changing the text style.
|
|
10
|
-
* The `tagname` attribute allows changing the tag name of the text element.
|
|
11
|
-
* The default tag name is `p`.
|
|
12
|
-
*
|
|
13
|
-
* The `tagname` attribute should be a valid HTML tag name.
|
|
14
|
-
* If the `tagname` attribute is not a valid HTML tag name, the default tag name will be used.
|
|
15
|
-
*
|
|
16
|
-
* The styling is applied based on the `type` attribute.
|
|
17
|
-
*
|
|
18
6
|
* @tagname mdc-text
|
|
19
7
|
* @slot - Default slot for text content
|
|
20
8
|
*
|