@nova-design-system/nova-webcomponents 3.31.1-beta.1 → 3.31.2-beta.3
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/THIRD_PARTY_NOTICES.txt +117535 -0
- package/dist/cjs/accessibility.utils-CeSsswXF.js +78 -0
- package/dist/cjs/{index-BvJsoRtw.js → index-BfQyuDYm.js} +6 -1
- package/dist/cjs/index.cjs.js +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/native.cjs.js +2 -2
- package/dist/cjs/nv-accordion-item.cjs.entry.js +9 -8
- package/dist/cjs/nv-accordion.cjs.entry.js +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +1 -1
- package/dist/cjs/nv-avatar.cjs.entry.js +1 -1
- package/dist/cjs/nv-badge_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +4 -3
- package/dist/cjs/nv-buttongroup.cjs.entry.js +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +1 -1
- package/dist/cjs/nv-col.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +1 -1
- package/dist/cjs/nv-datetest.cjs.entry.js +1 -1
- package/dist/cjs/nv-datetimetest.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +4 -3
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-drawer.cjs.entry.js +4 -3
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +4 -3
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +3 -3
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldslider.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldtext.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +2 -2
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +4 -3
- package/dist/cjs/nv-menu.cjs.entry.js +1 -1
- package/dist/cjs/nv-menuitem.cjs.entry.js +4 -3
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +1 -1
- package/dist/cjs/nv-notification.cjs.entry.js +1 -1
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +1 -1
- package/dist/cjs/nv-pagination-nav.cjs.entry.js +1 -1
- package/dist/cjs/nv-paginationtable.cjs.entry.js +1 -1
- package/dist/cjs/nv-pill.cjs.entry.js +285 -0
- package/dist/cjs/nv-popover.cjs.entry.js +2 -2
- package/dist/cjs/nv-row.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebar.cjs.entry.js +3 -3
- package/dist/cjs/nv-sidebarcontent.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebardivider.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarfooter.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebargroup.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarheader.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarlogo.cjs.entry.js +2 -2
- package/dist/cjs/nv-sidebarnavitem.cjs.entry.js +3 -3
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-split.cjs.entry.js +2 -2
- package/dist/cjs/nv-stack.cjs.entry.js +2 -2
- package/dist/cjs/nv-statusindicator.cjs.entry.js +2 -2
- package/dist/cjs/nv-table.cjs.entry.js +2 -2
- package/dist/cjs/nv-tableheader.cjs.entry.js +4 -3
- package/dist/cjs/nv-tag.cjs.entry.js +1 -1
- package/dist/cjs/nv-timetest.cjs.entry.js +2 -2
- package/dist/cjs/nv-toggle.cjs.entry.js +3 -3
- package/dist/cjs/nv-togglebutton.cjs.entry.js +4 -3
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +2 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +8 -7
- package/dist/collection/components/nv-alert/nv-alert.js +1 -1
- package/dist/collection/components/nv-badge/nv-badge.js +2 -2
- package/dist/collection/components/nv-button/nv-button.js +3 -2
- package/dist/collection/components/nv-dialog/nv-dialog.js +3 -2
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +2 -2
- package/dist/collection/components/nv-drawer/nv-drawer.js +3 -2
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +2 -2
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +3 -2
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +2 -2
- package/dist/collection/components/nv-icon/nv-icon.js +1 -1
- package/dist/collection/components/nv-icon/nv-icons.js +1 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +4 -3
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +4 -3
- package/dist/collection/components/nv-notification/nv-notification.js +1 -1
- package/dist/collection/components/nv-pill/nv-pill.css +88 -0
- package/dist/collection/components/nv-pill/nv-pill.docs.js +104 -0
- package/dist/collection/components/nv-pill/nv-pill.js +464 -0
- package/dist/collection/components/nv-popover/nv-popover.js +1 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +2 -2
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +1 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +1 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +1 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +1 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +1 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +1 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +3 -3
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -1
- package/dist/collection/components/nv-split/nv-split.js +1 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.js +1 -1
- package/dist/collection/components/nv-table/nv-table.js +1 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +3 -2
- package/dist/collection/components/nv-timetest/nv-timetest.js +1 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +2 -2
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +3 -2
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +1 -1
- package/dist/collection/utils/accessibility.utils.js +71 -0
- package/dist/collection/utils/test/accessibility.utils.test.js +90 -0
- package/dist/components/index.js +1 -1
- package/dist/components/nv-accordion-item.js +1 -1
- package/dist/components/nv-accordion.js +1 -1
- package/dist/components/nv-alert.js +1 -1
- package/dist/components/nv-avatar.js +1 -1
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +1 -1
- package/dist/components/nv-breadcrumbs.js +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-buttongroup.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-col.js +1 -1
- package/dist/components/nv-datagrid.js +1 -1
- package/dist/components/nv-datagridcolumn.js +1 -1
- package/dist/components/nv-datetest.js +1 -1
- package/dist/components/nv-datetimetest.js +1 -1
- package/dist/components/nv-dialog.js +1 -1
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-dialogheader.js +1 -1
- package/dist/components/nv-drawer.js +1 -1
- package/dist/components/nv-drawerfooter.js +1 -1
- package/dist/components/nv-drawerheader.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +1 -1
- package/dist/components/nv-fielddaterange.js +1 -1
- package/dist/components/nv-fielddropdown.js +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +1 -1
- package/dist/components/nv-fieldnumber.js +1 -1
- package/dist/components/nv-fieldpassword.js +1 -1
- package/dist/components/nv-fieldradio.js +1 -1
- package/dist/components/nv-fieldselect.js +1 -1
- package/dist/components/nv-fieldslider.js +1 -1
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtextarea.js +1 -1
- package/dist/components/nv-fieldtime.js +1 -1
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-loader.js +1 -1
- package/dist/components/nv-menu.js +1 -1
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-notification-bullet.js +1 -1
- package/dist/components/nv-notification.js +1 -1
- package/dist/components/nv-notificationcontainer.js +1 -1
- package/dist/components/nv-pagination-nav.js +1 -1
- package/dist/components/nv-paginationtable.js +1 -1
- package/dist/components/nv-pill.d.ts +11 -0
- package/dist/components/nv-pill.js +1 -0
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-row.js +1 -1
- package/dist/components/nv-sidebar.js +1 -1
- package/dist/components/nv-sidebarcontent.js +1 -1
- package/dist/components/nv-sidebardivider.js +1 -1
- package/dist/components/nv-sidebarfooter.js +1 -1
- package/dist/components/nv-sidebargroup.js +1 -1
- package/dist/components/nv-sidebarheader.js +1 -1
- package/dist/components/nv-sidebarlogo.js +1 -1
- package/dist/components/nv-sidebarnavitem.js +1 -1
- package/dist/components/nv-sidebarnavsubitem.js +1 -1
- package/dist/components/nv-split.js +1 -1
- package/dist/components/nv-stack.js +1 -1
- package/dist/components/nv-statusindicator.js +1 -1
- package/dist/components/nv-table.js +1 -1
- package/dist/components/nv-tableheader.js +1 -1
- package/dist/components/nv-tag.js +1 -1
- package/dist/components/nv-timetest.js +1 -1
- package/dist/components/nv-toggle.js +1 -1
- package/dist/components/nv-togglebutton.js +1 -1
- package/dist/components/nv-togglebuttongroup.js +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-i4xf4cpe.js → p-151La_Re.js} +1 -1
- package/dist/components/{p-BvQ9X__D.js → p-6T2ybMzE.js} +1 -1
- package/dist/components/{p-c3oT8uX6.js → p-B4EbX_RC.js} +1 -1
- package/dist/components/{p-BDdtTC-6.js → p-BLVk95gn.js} +1 -1
- package/dist/components/{p-DJnO10rr.js → p-BRfiHFNV.js} +1 -1
- package/dist/components/{p-CxKLuAfn.js → p-BWRw4xPL.js} +1 -1
- package/dist/components/{p-BxbhIzS0.js → p-BnO_M5Vy.js} +1 -1
- package/dist/components/{p-CQZEAqG5.js → p-C0sYXnfw.js} +1 -1
- package/dist/components/p-C4Cy9iy8.js +1 -0
- package/dist/components/{p-uV6ubOsB.js → p-C7TlN1NZ.js} +1 -1
- package/dist/components/p-CHBitkH2.js +1 -0
- package/dist/components/{p-D28iz8d1.js → p-CM4DYhll.js} +1 -1
- package/dist/components/p-CtKp5aji.js +1 -0
- package/dist/components/{p-C2KEXGV2.js → p-DCP9DeqM.js} +1 -1
- package/dist/components/p-DGGc-sMF.js +1 -0
- package/dist/components/{p-BzJGjY6m.js → p-DMtFowUl.js} +2 -2
- package/dist/components/p-DQwzzl-e.js +1 -0
- package/dist/components/{p-69UoKKHf.js → p-DYbGTjPL.js} +1 -1
- package/dist/components/{p-Bu_98LLu.js → p-DiZ4PH5U.js} +1 -1
- package/dist/components/{p-dLi3HLyK.js → p-MJEiA0Bq.js} +1 -1
- package/dist/components/{p-s1FlXcfZ.js → p-N_OyEprf.js} +1 -1
- package/dist/components/{p-C6V_Ba1j.js → p-hklkrJsV.js} +1 -1
- package/dist/components/p-m37Anefm.js +1 -0
- package/dist/components/p-p6cOkAo9.js +1 -0
- package/dist/esm/accessibility.utils-C4Cy9iy8.js +73 -0
- package/dist/esm/{index-C5xbfYEI.js → index-Dtg-LGcy.js} +6 -2
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/native.js +3 -3
- package/dist/esm/nv-accordion-item.entry.js +9 -8
- package/dist/esm/nv-accordion.entry.js +1 -1
- package/dist/esm/nv-alert.entry.js +1 -1
- package/dist/esm/nv-avatar.entry.js +1 -1
- package/dist/esm/nv-badge_2.entry.js +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumbs.entry.js +1 -1
- package/dist/esm/nv-button.entry.js +4 -3
- package/dist/esm/nv-buttongroup.entry.js +1 -1
- package/dist/esm/nv-calendar.entry.js +1 -1
- package/dist/esm/nv-col.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +1 -1
- package/dist/esm/nv-datagridcolumn.entry.js +1 -1
- package/dist/esm/nv-datetest.entry.js +1 -1
- package/dist/esm/nv-datetimetest.entry.js +1 -1
- package/dist/esm/nv-dialog.entry.js +4 -3
- package/dist/esm/nv-dialogfooter_2.entry.js +1 -1
- package/dist/esm/nv-drawer.entry.js +4 -3
- package/dist/esm/nv-drawerfooter_2.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fielddate.entry.js +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +1 -1
- package/dist/esm/nv-fielddropdownitem.entry.js +4 -3
- package/dist/esm/nv-fieldmultiselect.entry.js +3 -3
- package/dist/esm/nv-fieldnumber.entry.js +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +1 -1
- package/dist/esm/nv-fieldradio.entry.js +1 -1
- package/dist/esm/nv-fieldselect.entry.js +1 -1
- package/dist/esm/nv-fieldslider.entry.js +1 -1
- package/dist/esm/nv-fieldtext.entry.js +1 -1
- package/dist/esm/nv-fieldtextarea.entry.js +1 -1
- package/dist/esm/nv-fieldtime.entry.js +1 -1
- package/dist/esm/nv-icon.entry.js +2 -2
- package/dist/esm/nv-iconbutton_2.entry.js +4 -3
- package/dist/esm/nv-menu.entry.js +1 -1
- package/dist/esm/nv-menuitem.entry.js +4 -3
- package/dist/esm/nv-notification-bullet.entry.js +1 -1
- package/dist/esm/nv-notification.entry.js +1 -1
- package/dist/esm/nv-notificationcontainer.entry.js +1 -1
- package/dist/esm/nv-pagination-nav.entry.js +1 -1
- package/dist/esm/nv-paginationtable.entry.js +1 -1
- package/dist/esm/nv-pill.entry.js +283 -0
- package/dist/esm/nv-popover.entry.js +2 -2
- package/dist/esm/nv-row.entry.js +2 -2
- package/dist/esm/nv-sidebar.entry.js +3 -3
- package/dist/esm/nv-sidebarcontent.entry.js +2 -2
- package/dist/esm/nv-sidebardivider.entry.js +2 -2
- package/dist/esm/nv-sidebarfooter.entry.js +2 -2
- package/dist/esm/nv-sidebargroup.entry.js +2 -2
- package/dist/esm/nv-sidebarheader.entry.js +2 -2
- package/dist/esm/nv-sidebarlogo.entry.js +2 -2
- package/dist/esm/nv-sidebarnavitem.entry.js +3 -3
- package/dist/esm/nv-sidebarnavsubitem.entry.js +2 -2
- package/dist/esm/nv-split.entry.js +2 -2
- package/dist/esm/nv-stack.entry.js +2 -2
- package/dist/esm/nv-statusindicator.entry.js +2 -2
- package/dist/esm/nv-table.entry.js +2 -2
- package/dist/esm/nv-tableheader.entry.js +4 -3
- package/dist/esm/nv-tag.entry.js +1 -1
- package/dist/esm/nv-timetest.entry.js +2 -2
- package/dist/esm/nv-toggle.entry.js +3 -3
- package/dist/esm/nv-togglebutton.entry.js +4 -3
- package/dist/esm/nv-togglebuttongroup.entry.js +2 -2
- package/dist/esm/nv-tooltip.entry.js +2 -2
- package/dist/native/index.esm.js +1 -1
- package/dist/native/native.css +14 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/{p-82585156.entry.js → p-006b0662.entry.js} +1 -1
- package/dist/native/{p-6522e66a.entry.js → p-086101d2.entry.js} +1 -1
- package/dist/native/{p-ff632801.entry.js → p-0be43863.entry.js} +1 -1
- package/dist/native/p-11ae498c.entry.js +1 -0
- package/dist/native/{p-5a023c1e.entry.js → p-193d5813.entry.js} +1 -1
- package/dist/native/{p-7c1abe21.entry.js → p-1b5d11d4.entry.js} +1 -1
- package/dist/native/{p-c443d94f.entry.js → p-1e6706d5.entry.js} +1 -1
- package/dist/native/{p-36693b1e.entry.js → p-247cfbfd.entry.js} +1 -1
- package/dist/native/{p-65ec0c32.entry.js → p-282f27a8.entry.js} +1 -1
- package/dist/native/{p-86f04951.entry.js → p-29283b5d.entry.js} +1 -1
- package/dist/native/{p-a9ba884d.entry.js → p-32461255.entry.js} +1 -1
- package/dist/native/p-35cca4d2.entry.js +1 -0
- package/dist/native/p-38b731e1.entry.js +1 -0
- package/dist/native/{p-471b9f1e.entry.js → p-3c85e99e.entry.js} +1 -1
- package/dist/native/p-44c55d88.entry.js +1 -0
- package/dist/native/p-45191d81.entry.js +1 -0
- package/dist/native/{p-76ffc82f.entry.js → p-474b7e0b.entry.js} +1 -1
- package/dist/native/p-4ac17d24.entry.js +1 -0
- package/dist/native/{p-dfcd833c.entry.js → p-520e5d0d.entry.js} +1 -1
- package/dist/native/p-532c4d1d.entry.js +1 -0
- package/dist/native/p-5de603c6.entry.js +1 -0
- package/dist/native/{p-2965f9e5.entry.js → p-60aaa50f.entry.js} +1 -1
- package/dist/native/p-6153e9ce.entry.js +1 -0
- package/dist/native/{p-da659927.entry.js → p-61a088c5.entry.js} +1 -1
- package/dist/native/{p-8687ee45.entry.js → p-61a5cc1e.entry.js} +1 -1
- package/dist/native/{p-1d4a2991.entry.js → p-676eda8d.entry.js} +1 -1
- package/dist/native/p-6f3616fb.entry.js +1 -0
- package/dist/native/p-6f67be75.entry.js +1 -0
- package/dist/native/{p-7d98bd7c.entry.js → p-709a678c.entry.js} +1 -1
- package/dist/native/p-73e3bd21.entry.js +1 -0
- package/dist/native/p-76a1f5b0.entry.js +1 -0
- package/dist/native/{p-9582387b.entry.js → p-78d98c99.entry.js} +1 -1
- package/dist/native/{p-7f36356d.entry.js → p-7a2189fd.entry.js} +1 -1
- package/dist/native/{p-ef5ab954.entry.js → p-7b1291df.entry.js} +1 -1
- package/dist/native/{p-d210686c.entry.js → p-7be16470.entry.js} +1 -1
- package/dist/native/{p-e069649b.entry.js → p-7c81eec5.entry.js} +1 -1
- package/dist/native/{p-5b323d4d.entry.js → p-82352a0c.entry.js} +1 -1
- package/dist/native/p-82e00a15.entry.js +1 -0
- package/dist/native/{p-5ff91848.entry.js → p-84069455.entry.js} +1 -1
- package/dist/native/{p-de699164.entry.js → p-8457693f.entry.js} +1 -1
- package/dist/native/p-88b5887c.entry.js +1 -0
- package/dist/native/{p-57ac7c52.entry.js → p-899e319c.entry.js} +1 -1
- package/dist/native/{p-e6982f77.entry.js → p-89fb8dc6.entry.js} +1 -1
- package/dist/native/p-89fe54eb.entry.js +1 -0
- package/dist/native/p-8d1b7295.entry.js +1 -0
- package/dist/native/{p-955a0e99.entry.js → p-8f182f2f.entry.js} +1 -1
- package/dist/native/{p-bcd2d229.entry.js → p-9ae86283.entry.js} +1 -1
- package/dist/native/{p-87c21cd0.entry.js → p-9cb72554.entry.js} +1 -1
- package/dist/native/p-C4Cy9iy8.js +1 -0
- package/dist/native/{p-C5xbfYEI.js → p-Dtg-LGcy.js} +2 -2
- package/dist/native/{p-55b6ba99.entry.js → p-a14356a2.entry.js} +1 -1
- package/dist/native/{p-4ee63bd0.entry.js → p-b6b5b50a.entry.js} +1 -1
- package/dist/native/{p-280000e2.entry.js → p-ba32c793.entry.js} +1 -1
- package/dist/native/{p-ebdad820.entry.js → p-bf10fbd2.entry.js} +1 -1
- package/dist/native/{p-453561f2.entry.js → p-bf94b26d.entry.js} +1 -1
- package/dist/native/p-d3003a4d.entry.js +1 -0
- package/dist/native/{p-acd0792e.entry.js → p-dc05eb91.entry.js} +1 -1
- package/dist/native/{p-36a9b8c4.entry.js → p-dc3c0181.entry.js} +1 -1
- package/dist/native/{p-7f2a2112.entry.js → p-e97155c2.entry.js} +1 -1
- package/dist/native/{p-07eb3ea5.entry.js → p-e97d9772.entry.js} +1 -1
- package/dist/native/{p-cb9b5250.entry.js → p-f2ab9665.entry.js} +1 -1
- package/dist/native/{p-f513cf73.entry.js → p-f35cfcf7.entry.js} +1 -1
- package/dist/native/{p-65eb35d5.entry.js → p-f49dac2e.entry.js} +1 -1
- package/dist/native/{p-a788c88a.entry.js → p-f50d6e7b.entry.js} +1 -1
- package/dist/native/{p-d26a8889.entry.js → p-f551703a.entry.js} +1 -1
- package/dist/native/{p-ad1b5573.entry.js → p-f69ce8b0.entry.js} +1 -1
- package/dist/native/{p-339005af.entry.js → p-fde8def2.entry.js} +1 -1
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-pill/nv-pill.d.ts +74 -0
- package/dist/types/components/nv-pill/nv-pill.docs.d.ts +4 -0
- package/dist/types/components.d.ts +120 -0
- package/dist/types/utils/accessibility.utils.d.ts +61 -0
- package/dist/types/utils/test/accessibility.utils.test.d.ts +1 -0
- package/dist/vscode-data.json +1876 -204
- package/hydrate/index.js +421 -49
- package/hydrate/index.mjs +421 -49
- package/package.json +8 -2
- package/dist/components/p-1Oq0x2Rx.js +0 -1
- package/dist/components/p-BxhBaMXw.js +0 -1
- package/dist/components/p-CrNItly_.js +0 -1
- package/dist/components/p-CuSI994X.js +0 -1
- package/dist/components/p-DnBhX14P.js +0 -1
- package/dist/components/p-waLAN4j3.js +0 -1
- package/dist/native/p-0d7baedd.entry.js +0 -1
- package/dist/native/p-19a5fbf9.entry.js +0 -1
- package/dist/native/p-1a73ca05.entry.js +0 -1
- package/dist/native/p-42fa065d.entry.js +0 -1
- package/dist/native/p-4853fcc6.entry.js +0 -1
- package/dist/native/p-57aefdfe.entry.js +0 -1
- package/dist/native/p-645a8913.entry.js +0 -1
- package/dist/native/p-6ddb0f38.entry.js +0 -1
- package/dist/native/p-72b29097.entry.js +0 -1
- package/dist/native/p-7c571a3e.entry.js +0 -1
- package/dist/native/p-9847ff24.entry.js +0 -1
- package/dist/native/p-a0cb305e.entry.js +0 -1
- package/dist/native/p-a67c35a0.entry.js +0 -1
- package/dist/native/p-a764e15b.entry.js +0 -1
- package/dist/native/p-c04a8b31.entry.js +0 -1
- package/dist/native/p-cbaf5269.entry.js +0 -1
- package/dist/native/p-e808c744.entry.js +0 -1
|
@@ -275,7 +275,7 @@ export class NvSidebarnavitem {
|
|
|
275
275
|
render() {
|
|
276
276
|
const showNotificationBullet = this.notificationCount !== undefined && this.notificationCount > 0;
|
|
277
277
|
const notificationSize = this.isSidebarCollapsed ? 'reduced' : 'default';
|
|
278
|
-
return (h(Host, { key: '
|
|
278
|
+
return (h(Host, { key: 'b91fe5e893da97a5c0689676894e806fb7263a80', role: "listitem" }, h("div", { key: 'a8f8a3e65144a10884aa097edaaff2f49c17cf4a', class: "nv-sidebarnavitem-trigger", onClick: this.handleToggle, "aria-expanded": this.collapsible ? String(this.open) : undefined, "aria-current": this.active && !this.collapsible ? 'page' : undefined }, this.icon && (h("div", { key: '8c34b7e8b7fc41503aa1f0e7eea6270b5889e6da', class: "nv-sidebarnavitem-icon" }, h("nv-icon", { key: '73afc94a134d96da07322786025b5ac2334f53b4', name: this.icon, size: "md" }), showNotificationBullet && this.isSidebarCollapsed && (h("nv-notification-bullet", { key: '93e5de4631e68dd5005778c56124a0ecc6338e81', count: this.notificationCount, size: notificationSize, contrastingBorder: true })))), h("div", { key: 'a3e2c46e1802d7ab16c3922ae56476b61bedf3c3', class: "nv-sidebarnavitem-content" }, h("slot", { key: 'f830c358b690bc90302dfa2c1053f39889412c8e' })), h("div", { key: 'dec2b6d2b86b8be336440a69049c206e30116bb3', class: "nv-sidebarnavitem-trailing" }, h("slot", { key: '4553629737f60012755f08f269466302524f9a21', name: "trailing" }), showNotificationBullet && !this.isSidebarCollapsed && (h("nv-notification-bullet", { key: '04e2408dccbee9b365e1e8b8efe77c674851d29e', count: this.notificationCount, size: notificationSize })), this.collapsible && (h("nv-icon", { key: 'b38dff75884b4696c146e8351cb91c5a33eda8c6', name: "chevron-down", size: "sm", class: "nv-sidebarnavitem-chevron" })))), this.collapsible && this.hasSubitems && (h("div", { key: '720f0050710f377a8cbb4258ebf95f8f3127dc36', class: "nv-sidebarnavitem-subitems", ref: el => {
|
|
279
279
|
// Only update ref and initialize if element changed or not yet initialized
|
|
280
280
|
if (el !== this.subitemsRef) {
|
|
281
281
|
this.subitemsRef = el;
|
|
@@ -290,7 +290,7 @@ export class NvSidebarnavitem {
|
|
|
290
290
|
});
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
} }, h("slot", { key: '
|
|
293
|
+
} }, h("slot", { key: 'fe94b2867f472c3af6b71ce80da4a6bfac71dd39', name: "subitems" })))));
|
|
294
294
|
}
|
|
295
295
|
static get is() { return "nv-sidebarnavitem"; }
|
|
296
296
|
static get originalStyleUrls() {
|
|
@@ -310,7 +310,7 @@ export class NvSidebarnavitem {
|
|
|
310
310
|
"mutable": false,
|
|
311
311
|
"complexType": {
|
|
312
312
|
"original": "`${IconName}`",
|
|
313
|
-
"resolved": "\"access-point\" | \"access-point-off\" | \"accessible\" | \"activity\" | \"address-book\" | \"adjustments\" | \"adjustments-horizontal\" | \"adjustments-up\" | \"affiliate\" | \"air-conditioning\" | \"alert-circle\" | \"alert-square-rounded\" | \"alert-triangle\" | \"align-center\" | \"align-left\" | \"align-right\" | \"app-window\" | \"apps\" | \"archive\" | \"areas\" | \"arrow-back\" | \"arrow-back-up\" | \"arrow-down\" | \"arrow-down-left\" | \"arrow-down-right\" | \"arrow-forward\" | \"arrow-forward-up\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"arrow-up-left\" | \"arrow-up-right\" | \"arrows-diagonal\" | \"arrows-exchange\" | \"arrows-maximize\" | \"arrows-minimize\" | \"arrows-move\" | \"aspect-ratio\" | \"atom\" | \"ban\" | \"basket\" | \"battery\" | \"battery-1\" | \"battery-2\" | \"battery-3\" | \"battery-4\" | \"battery-automotive\" | \"battery-charging\" | \"battery-eco\" | \"battery-off\" | \"bell\" | \"bell-bolt\" | \"bell-off\" | \"bell-ringing\" | \"bike\" | \"bluetooth\" | \"bluetooth-connected\" | \"bluetooth-off\" | \"bolt\" | \"bolt-off\" | \"book\" | \"bookmark\" | \"bookmark-off\" | \"bookmarks\" | \"box-align-top\" | \"box-multiple\" | \"brand-facebook\" | \"brand-instagram\" | \"brand-linkedin\" | \"brand-x\" | \"brand-youtube\" | \"briefcase\" | \"brightness-down\" | \"brightness-up\" | \"browser\" | \"browser-check\" | \"browser-plus\" | \"browser-x\" | \"brush\" | \"building\" | \"building-bank\" | \"building-factory\" | \"building-lighthouse\" | \"building-store\" | \"bulb\" | \"bulb-off\" | \"cake\" | \"calendar\" | \"calendar-time\" | \"calendar-week\" | \"camera\" | \"camera-off\" | \"car\" | \"car-crane\" | \"caravan\" | \"cash\" | \"cash-banknote\" | \"cast\" | \"cell\" | \"charging-pile\" | \"chart-arcs\" | \"chart-area\" | \"chart-area-line\" | \"chart-arrows\" | \"chart-arrows-vertical\" | \"chart-bar\" | \"chart-bubble\" | \"chart-circles\" | \"chart-donut\" | \"chart-dots\" | \"chart-line\" | \"chart-pie\" | \"chart-radar\" | \"check\" | \"checkbox\" | \"checklist\" | \"checks\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-top\" | \"chevrons-left\" | \"chevrons-right\" | \"circle-caret-right\" | \"circle-check\" | \"circle-minus\" | \"circle-x\" | \"circuit-alternate\" | \"circuit-ground-digital\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-list\" | \"clipboard-plus\" | \"clipboard-text\" | \"clipboard-x\" | \"clock\" | \"clock-edit\" | \"cloud\" | \"cloud-data-connection\" | \"cloud-download\" | \"cloud-rain\" | \"cloud-snow\" | \"cloud-upload\" | \"color-picker\" | \"color-swatch\" | \"columns-1\" | \"columns-2\" | \"columns-3\" | \"compass\" | \"contract\" | \"cookie\" | \"copy\" | \"cpu\" | \"crane\" | \"credit-card\" | \"crop\" | \"cross\" | \"crown\" | \"currency-bitcoin\" | \"currency-dollar\" | \"currency-ethereum\" | \"currency-euro\" | \"cut\" | \"dashboard\" | \"database\" | \"device-desktop\" | \"device-floppy\" | \"device-gamepad\" | \"device-laptop\" | \"device-mobile\" | \"device-mobile-rotated\" | \"device-tablet\" | \"device-watch\" | \"devices\" | \"dialpad\" | \"direction\" | \"direction-horizontal\" | \"direction-sign\" | \"discount\" | \"door-enter\" | \"door-exit\" | \"door-off\" | \"dots\" | \"dots-vertical\" | \"download\" | \"drone\" | \"droplet\" | \"droplet-filled\" | \"droplet-half\" | \"droplets\" | \"edit\" | \"empty\" | \"engine\" | \"equal-not\" | \"eraser\" | \"eraser-off\" | \"exclamation-mark\" | \"external-link\" | \"eye\" | \"eye-check\" | \"eye-off\" | \"eyeglass2\" | \"face-id\" | \"feather\" | \"file\" | \"file-alert\" | \"file-analytics\" | \"file-check\" | \"file-code\" | \"file-download\" | \"file-export\" | \"file-horizontal\" | \"file-import\" | \"file-plus\" | \"file-search\" | \"file-text\" | \"file-text-bookmark\" | \"file-type-bmp\" | \"file-type-css\" | \"file-type-csv\" | \"file-type-doc\" | \"file-type-html\" | \"file-type-jpg\" | \"file-type-js\" | \"file-type-pdf\" | \"file-type-png\" | \"file-type-ppt\" | \"file-type-xls\" | \"file-type-xml\" | \"file-type-zip\" | \"file-upload\" | \"file-x\" | \"file-zip\" | \"files\" | \"files-off\" | \"filter\" | \"filter-off\" | \"filter-sort\" | \"fingerprint\" | \"fire-extinguisher\" | \"flag\" | \"flame\" | \"flip-horizontal\" | \"flip-vertical\" | \"folder\" | \"folder-minus\" | \"folder-off\" | \"folder-plus\" | \"folder-x\" | \"folders\" | \"frame\" | \"gas-station\" | \"gauge\" | \"gauge-off\" | \"gift\" | \"git-branch\" | \"git-branch-delete\" | \"git-cherry-pick\" | \"git-commit\" | \"git-compare\" | \"git-fork\" | \"git-merge\" | \"git-pull-request\" | \"git-pull-request-closed\" | \"git-pull-request-draft\" | \"gps\" | \"grid-dots\" | \"grip-horizontal\" | \"grip-vertical\" | \"hand-stop\" | \"hand-waving\" | \"hash\" | \"haze\" | \"headphones\" | \"headphones-off\" | \"headset\" | \"heart\" | \"heart-off\" | \"heartbeat\" | \"helicopter\" | \"helmet\" | \"helmet-swopp\" | \"help\" | \"history\" | \"home\" | \"hourglass\" | \"hourglass-empty\" | \"hourglass-high\" | \"hourglass-low\" | \"hourglass-off\" | \"inbox\" | \"info-circle\" | \"info-small\" | \"keyboard\" | \"keyboard-hide\" | \"keyboard-show\" | \"layers-intersect\" | \"layers-off\" | \"layout\" | \"layout-board-split\" | \"layout-dashboard\" | \"layout-grid\" | \"layout-sidebar-left-collapse\" | \"layout-sidebar-left-expand\" | \"layout-sidebar-right-collapse\" | \"layout-sidebar-right-expand\" | \"leaf\" | \"lifebuoy\" | \"link\" | \"list\" | \"list-search\" | \"loader\" | \"location\" | \"lock\" | \"lock-off\" | \"lock-open\" | \"login\" | \"logout\" | \"mail\" | \"mail-forward\" | \"mail-opened\" | \"map\" | \"map-pin\" | \"map-pin-2\" | \"map-pin-off\" | \"master-data\" | \"menu\" | \"message\" | \"message-dots\" | \"message-off\" | \"messages\" | \"microphone\" | \"microphone-off\" | \"minus\" | \"mist\" | \"moon\" | \"motorbike\" | \"mouse\" | \"movie\" | \"network\" | \"news\" | \"note\" | \"notebook\" | \"notes\" | \"offshore-station\" | \"package\" | \"palette\" | \"paperclip\" | \"pencil\" | \"phone\" | \"phone-call\" | \"phone-calling\" | \"phone-check\" | \"phone-incoming\" | \"phone-off\" | \"phone-outgoing\" | \"photo\" | \"photo-off\" | \"pig\" | \"pin\" | \"pinned\" | \"pinned-off\" | \"plane\" | \"plane-off\" | \"plant\" | \"player-pause\" | \"player-play\" | \"player-skip-back\" | \"player-skip-forward\" | \"player-stop\" | \"player-track-next\" | \"player-track-prev\" | \"plug\" | \"plug-connected\" | \"plus\" | \"power\" | \"power-ac\" | \"power-dc\" | \"presentation\" | \"presentation-analytics\" | \"printer\" | \"propeller\" | \"published\" | \"puzzle\" | \"puzzle-2\" | \"pylon\" | \"qrcode\" | \"question-mark\" | \"quotes\" | \"quotes-open\" | \"radar\" | \"radio\" | \"radioactive\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"recharging\" | \"recycle\" | \"refresh\" | \"refresh-alert\" | \"refresh-off\" | \"repeat\" | \"repeat-once\" | \"replace\" | \"report\" | \"report-analytics\" | \"report-medical\" | \"report-search\" | \"ripple\" | \"ripple-off\" | \"rocket\" | \"rotate\" | \"rotate-2\" | \"rotate-clockwise\" | \"rotate-clockwise-2\" | \"rotate-dot\" | \"router\" | \"ruler-measure\" | \"sailboat\" | \"satellite\" | \"scale\" | \"school\" | \"scissors\" | \"scooter-electric\" | \"screenshot\" | \"search\" | \"seeding\" | \"select\" | \"selector\" | \"send\" | \"server\" | \"settings\" | \"shape\" | \"share\" | \"share-2\" | \"shield\" | \"shield-check\" | \"shield-lock\" | \"shield-off\" | \"shield-x\" | \"ship\" | \"ship-off\" | \"shopping-cart\" | \"sitemap\" | \"slash\" | \"smart-home\" | \"snowflake\" | \"solar-panel\" | \"sort-ascending-letters\" | \"sort-ascending-numbers\" | \"sort-descending-letters\" | \"sort-descending-numbers\" | \"spacing-horizontal\" | \"spacing-vertical\" | \"sparkles\" | \"speakerphone\" | \"stack\" | \"stairs\" | \"star\" | \"sun\" | \"sunrise\" | \"sunset\" | \"switch-horizontal\" | \"switch-vertical\" | \"table\" | \"tag\" | \"tank-empty-fill\" | \"tank-full-fill\" | \"tank-medium-fill\" | \"temperature\" | \"temperature-off\" | \"template\" | \"terminal\" | \"text\" | \"text-size\" | \"thumb-down\" | \"thumb-up\" | \"ticket\" | \"timeline\" | \"tir\" | \"tool\" | \"tools\" | \"train\" | \"trash\" | \"trash-off\" | \"tree\" | \"trees\" | \"trending-down\" | \"trending-down-2\" | \"trending-down-3\" | \"trending-up\" | \"trending-up-2\" | \"trending-up-3\" | \"truck\" | \"truck-delivery\" | \"umbrella\" | \"unlink\" | \"upload\" | \"user\" | \"user-circle\" | \"user-exclamation\" | \"user-minus\" | \"user-off\" | \"user-plus\" | \"user-worker\" | \"users\" | \"versions\" | \"video\" | \"video-minus\" | \"video-off\" | \"video-plus\" | \"volume\" | \"volume-2\" | \"volume-3\" | \"wallet\" | \"wand\" | \"wave\" | \"waves\" | \"wifi\" | \"wifi-off\" | \"wind\" | \"wind-direction\" | \"windmill\" | \"wood\" | \"world\" | \"world-code\" | \"writing\" | \"x\" | \"zoom-reset\"",
|
|
313
|
+
"resolved": "\"access-point\" | \"access-point-off\" | \"accessible\" | \"activity\" | \"address-book\" | \"adjustments\" | \"adjustments-horizontal\" | \"adjustments-up\" | \"affiliate\" | \"air-conditioning\" | \"alert-circle\" | \"alert-square-rounded\" | \"alert-triangle\" | \"align-center\" | \"align-left\" | \"align-right\" | \"app-window\" | \"apps\" | \"archive\" | \"areas\" | \"arrow-back\" | \"arrow-back-up\" | \"arrow-down\" | \"arrow-down-left\" | \"arrow-down-right\" | \"arrow-forward\" | \"arrow-forward-up\" | \"arrow-left\" | \"arrow-right\" | \"arrow-up\" | \"arrow-up-left\" | \"arrow-up-right\" | \"arrows-diagonal\" | \"arrows-exchange\" | \"arrows-maximize\" | \"arrows-minimize\" | \"arrows-move\" | \"aspect-ratio\" | \"atom\" | \"ban\" | \"basket\" | \"battery\" | \"battery-1\" | \"battery-2\" | \"battery-3\" | \"battery-4\" | \"battery-automotive\" | \"battery-charging\" | \"battery-eco\" | \"battery-off\" | \"bell\" | \"bell-bolt\" | \"bell-off\" | \"bell-ringing\" | \"bike\" | \"bluetooth\" | \"bluetooth-connected\" | \"bluetooth-off\" | \"bolt\" | \"bolt-off\" | \"book\" | \"bookmark\" | \"bookmark-off\" | \"bookmarks\" | \"box-align-top\" | \"box-multiple\" | \"brand-facebook\" | \"brand-instagram\" | \"brand-linkedin\" | \"brand-x\" | \"brand-youtube\" | \"briefcase\" | \"brightness-down\" | \"brightness-up\" | \"browser\" | \"browser-check\" | \"browser-plus\" | \"browser-x\" | \"brush\" | \"building\" | \"building-bank\" | \"building-factory\" | \"building-lighthouse\" | \"building-store\" | \"bulb\" | \"bulb-off\" | \"cake\" | \"calendar\" | \"calendar-time\" | \"calendar-week\" | \"camera\" | \"camera-off\" | \"car\" | \"car-crane\" | \"caravan\" | \"cash\" | \"cash-banknote\" | \"cast\" | \"cell\" | \"charging-pile\" | \"chart-arcs\" | \"chart-area\" | \"chart-area-line\" | \"chart-arrows\" | \"chart-arrows-vertical\" | \"chart-bar\" | \"chart-bubble\" | \"chart-circles\" | \"chart-donut\" | \"chart-dots\" | \"chart-line\" | \"chart-pie\" | \"chart-radar\" | \"check\" | \"checkbox\" | \"checklist\" | \"checks\" | \"chevron-down\" | \"chevron-left\" | \"chevron-right\" | \"chevron-top\" | \"chevrons-left\" | \"chevrons-right\" | \"circle-caret-right\" | \"circle-check\" | \"circle-minus\" | \"circle-x\" | \"circuit-alternate\" | \"circuit-ground-digital\" | \"clipboard\" | \"clipboard-check\" | \"clipboard-list\" | \"clipboard-plus\" | \"clipboard-text\" | \"clipboard-x\" | \"clock\" | \"clock-edit\" | \"cloud\" | \"cloud-data-connection\" | \"cloud-download\" | \"cloud-rain\" | \"cloud-snow\" | \"cloud-upload\" | \"color-picker\" | \"color-swatch\" | \"columns-1\" | \"columns-2\" | \"columns-3\" | \"compass\" | \"contract\" | \"cookie\" | \"copy\" | \"cpu\" | \"crane\" | \"credit-card\" | \"crop\" | \"cross\" | \"crown\" | \"currency-bitcoin\" | \"currency-dollar\" | \"currency-ethereum\" | \"currency-euro\" | \"cut\" | \"dashboard\" | \"database\" | \"device-desktop\" | \"device-floppy\" | \"device-gamepad\" | \"device-laptop\" | \"device-mobile\" | \"device-mobile-rotated\" | \"device-tablet\" | \"device-watch\" | \"devices\" | \"dialpad\" | \"direction\" | \"direction-horizontal\" | \"direction-sign\" | \"discount\" | \"door-enter\" | \"door-exit\" | \"door-off\" | \"dots\" | \"dots-vertical\" | \"download\" | \"drone\" | \"droplet\" | \"droplet-filled\" | \"droplet-half\" | \"droplets\" | \"edit\" | \"empty\" | \"engine\" | \"equal-not\" | \"eraser\" | \"eraser-off\" | \"exclamation-mark\" | \"external-link\" | \"eye\" | \"eye-check\" | \"eye-off\" | \"eyeglass2\" | \"face-id\" | \"feather\" | \"file\" | \"file-alert\" | \"file-analytics\" | \"file-check\" | \"file-code\" | \"file-download\" | \"file-export\" | \"file-horizontal\" | \"file-import\" | \"file-plus\" | \"file-search\" | \"file-text\" | \"file-text-bookmark\" | \"file-type-bmp\" | \"file-type-css\" | \"file-type-csv\" | \"file-type-doc\" | \"file-type-html\" | \"file-type-jpg\" | \"file-type-js\" | \"file-type-pdf\" | \"file-type-png\" | \"file-type-ppt\" | \"file-type-xls\" | \"file-type-xml\" | \"file-type-zip\" | \"file-upload\" | \"file-x\" | \"file-zip\" | \"files\" | \"files-off\" | \"filter\" | \"filter-off\" | \"filter-sort\" | \"fingerprint\" | \"fire-extinguisher\" | \"flag\" | \"flame\" | \"flip-horizontal\" | \"flip-vertical\" | \"folder\" | \"folder-minus\" | \"folder-off\" | \"folder-plus\" | \"folder-x\" | \"folders\" | \"frame\" | \"gas-station\" | \"gauge\" | \"gauge-off\" | \"gift\" | \"git-branch\" | \"git-branch-delete\" | \"git-cherry-pick\" | \"git-commit\" | \"git-compare\" | \"git-fork\" | \"git-merge\" | \"git-pull-request\" | \"git-pull-request-closed\" | \"git-pull-request-draft\" | \"gps\" | \"grid-dots\" | \"grip-horizontal\" | \"grip-vertical\" | \"hand-stop\" | \"hand-waving\" | \"hash\" | \"haze\" | \"headphones\" | \"headphones-off\" | \"headset\" | \"heart\" | \"heart-off\" | \"heartbeat\" | \"helicopter\" | \"helmet\" | \"helmet-swopp\" | \"help\" | \"history\" | \"home\" | \"hourglass\" | \"hourglass-empty\" | \"hourglass-high\" | \"hourglass-low\" | \"hourglass-off\" | \"inbox\" | \"info-circle\" | \"info-small\" | \"keyboard\" | \"keyboard-hide\" | \"keyboard-show\" | \"layers-intersect\" | \"layers-off\" | \"layout\" | \"layout-board-split\" | \"layout-dashboard\" | \"layout-grid\" | \"layout-sidebar-left-collapse\" | \"layout-sidebar-left-expand\" | \"layout-sidebar-right-collapse\" | \"layout-sidebar-right-expand\" | \"leaf\" | \"lifebuoy\" | \"link\" | \"list\" | \"list-search\" | \"loader\" | \"location\" | \"lock\" | \"lock-off\" | \"lock-open\" | \"login\" | \"logout\" | \"mail\" | \"mail-forward\" | \"mail-opened\" | \"map\" | \"map-pin\" | \"map-pin-2\" | \"map-pin-off\" | \"master-data\" | \"menu\" | \"message\" | \"message-dots\" | \"message-off\" | \"messages\" | \"microphone\" | \"microphone-off\" | \"minus\" | \"mist\" | \"moon\" | \"motorbike\" | \"mouse\" | \"movie\" | \"network\" | \"news\" | \"note\" | \"notebook\" | \"notes\" | \"offshore-station\" | \"package\" | \"palette\" | \"paperclip\" | \"pencil\" | \"phone\" | \"phone-call\" | \"phone-calling\" | \"phone-check\" | \"phone-incoming\" | \"phone-off\" | \"phone-outgoing\" | \"photo\" | \"photo-off\" | \"pig\" | \"pin\" | \"pinned\" | \"pinned-off\" | \"plane\" | \"plane-off\" | \"plant\" | \"player-pause\" | \"player-play\" | \"player-skip-back\" | \"player-skip-forward\" | \"player-stop\" | \"player-track-next\" | \"player-track-prev\" | \"plug\" | \"plug-connected\" | \"plus\" | \"power\" | \"power-ac\" | \"power-dc\" | \"presentation\" | \"presentation-analytics\" | \"printer\" | \"propeller\" | \"published\" | \"puzzle\" | \"puzzle-2\" | \"pylon\" | \"qrcode\" | \"question-mark\" | \"quotes\" | \"quotes-open\" | \"radar\" | \"radio\" | \"radioactive\" | \"receipt\" | \"receipt-dollar\" | \"receipt-euro\" | \"recharging\" | \"recycle\" | \"refresh\" | \"refresh-alert\" | \"refresh-off\" | \"repeat\" | \"repeat-once\" | \"replace\" | \"report\" | \"report-analytics\" | \"report-medical\" | \"report-search\" | \"ripple\" | \"ripple-off\" | \"rocket\" | \"rotate\" | \"rotate-2\" | \"rotate-clockwise\" | \"rotate-clockwise-2\" | \"rotate-dot\" | \"router\" | \"ruler-measure\" | \"sailboat\" | \"satellite\" | \"scale\" | \"school\" | \"scissors\" | \"scooter-electric\" | \"screenshot\" | \"search\" | \"seeding\" | \"select\" | \"selector\" | \"send\" | \"server\" | \"settings\" | \"shape\" | \"share\" | \"share-2\" | \"shield\" | \"shield-check\" | \"shield-lock\" | \"shield-off\" | \"shield-x\" | \"ship\" | \"ship-off\" | \"shopping-cart\" | \"sitemap\" | \"slash\" | \"smart-home\" | \"snowflake\" | \"solar-panel\" | \"sort-ascending-letters\" | \"sort-ascending-numbers\" | \"sort-descending-letters\" | \"sort-descending-numbers\" | \"spacing-horizontal\" | \"spacing-vertical\" | \"sparkles\" | \"speakerphone\" | \"stack\" | \"stairs\" | \"star\" | \"sun\" | \"sunrise\" | \"sunset\" | \"switch-horizontal\" | \"switch-vertical\" | \"table\" | \"tag\" | \"tank-empty-fill\" | \"tank-full-fill\" | \"tank-medium-fill\" | \"temperature\" | \"temperature-off\" | \"template\" | \"terminal\" | \"text\" | \"text-size\" | \"thumb-down\" | \"thumb-up\" | \"ticket\" | \"timeline\" | \"tir\" | \"tool\" | \"tools\" | \"train\" | \"trash\" | \"trash-off\" | \"tree\" | \"trees\" | \"trending-down\" | \"trending-down-2\" | \"trending-down-3\" | \"trending-up\" | \"trending-up-2\" | \"trending-up-3\" | \"truck\" | \"truck-delivery\" | \"umbrella\" | \"unlink\" | \"upload\" | \"user\" | \"user-circle\" | \"user-exclamation\" | \"user-minus\" | \"user-off\" | \"user-plus\" | \"user-worker\" | \"users\" | \"users-group\" | \"versions\" | \"video\" | \"video-minus\" | \"video-off\" | \"video-plus\" | \"volume\" | \"volume-2\" | \"volume-3\" | \"wallet\" | \"wand\" | \"wave\" | \"waves\" | \"wifi\" | \"wifi-off\" | \"wind\" | \"wind-direction\" | \"windmill\" | \"wood\" | \"world\" | \"world-code\" | \"writing\" | \"x\" | \"zoom-reset\"",
|
|
314
314
|
"references": {
|
|
315
315
|
"IconName": {
|
|
316
316
|
"location": "import",
|
|
@@ -23,7 +23,7 @@ export class NvSidebarnavsubitem {
|
|
|
23
23
|
/****************************************************************************/
|
|
24
24
|
//#region RENDER
|
|
25
25
|
render() {
|
|
26
|
-
return (h(Host, { key: '
|
|
26
|
+
return (h(Host, { key: '8e9a0d7cf4959780fe7ab6d83430c4ec4506241b', role: "listitem", "aria-current": this.active ? 'page' : undefined }, h("div", { key: '46bf34f370de8886b792163a8adc1d671c3c726b', class: "nv-sidebarnavsubitem-indicator" }), h("div", { key: '70d5a923d8ad647639629e889a06ce0b85029b3e', class: "nv-sidebarnavsubitem-content" }, h("slot", { key: '64e1bc7e2e88607b8d4db1330fa281ea555551bc' })), h("div", { key: '55ca89e4b66d7d63d48bbbac83d882fb791621a8', class: "nv-sidebarnavsubitem-trailing" }, h("slot", { key: 'd3e35d06eac31658fa029f091e1696136383698f', name: "trailing" }))));
|
|
27
27
|
}
|
|
28
28
|
static get is() { return "nv-sidebarnavsubitem"; }
|
|
29
29
|
static get originalStyleUrls() {
|
|
@@ -322,7 +322,7 @@ export class NvSplit {
|
|
|
322
322
|
/****************************************************************************/
|
|
323
323
|
//#region RENDER
|
|
324
324
|
render() {
|
|
325
|
-
return (h(Host, { key: '
|
|
325
|
+
return (h(Host, { key: '28c22828546ee5e31d7d07adb375d1e17780900a', "data-dragging": this.isDragging.toString() }, h("slot", { key: '47929d6f76777619c3856f5e14eafc82e3ed52d2', name: "pane" }), h("slot", { key: 'fa6f2edfc712cddc683f9099e8bcebf80d7b751a', name: "gutter" }), h("slot", { key: '30c0eeca863ddf3749f579498d5498c0a7d9a711' })));
|
|
326
326
|
}
|
|
327
327
|
static get is() { return "nv-split"; }
|
|
328
328
|
static get originalStyleUrls() {
|
|
@@ -18,7 +18,7 @@ export class NvStack {
|
|
|
18
18
|
/****************************************************************************/
|
|
19
19
|
//#region RENDER
|
|
20
20
|
render() {
|
|
21
|
-
return (h(Host, { key: '
|
|
21
|
+
return (h(Host, { key: 'a1ef1909df99c36b818bc66579a5ca6d9624e58a', class: clsx(this.fill && 'nv-stack-fill', this.flex && 'nv-stack-flex', this.full && 'w-full', this.gutter && !this.vertical && `gap-x-${this.gutter}`, this.gutter && this.vertical && `gap-y-${this.gutter}`, this.vertical && 'nv-stack-vertical') }, h("slot", { key: 'eee424b5481e90b80801fc86af83ae51e7749d6d' })));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "nv-stack"; }
|
|
24
24
|
static get originalStyleUrls() {
|
|
@@ -29,7 +29,7 @@ export class NvStatusindicator {
|
|
|
29
29
|
//#region RENDER
|
|
30
30
|
render() {
|
|
31
31
|
const hasLabel = Boolean(this.label);
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: 'd8cf80aa90c5dbedf5cddebd775d375f0bf6ef6f', class: clsx(`status-${this.status}`, `emphasis-${this.emphasis}`), ...(!hasLabel ? { 'aria-label': this.status } : {}) }, h("nv-icon", { key: 'ecaed029da1ef6af10ad50ab0ddd3fec0a5c3d31', name: STATUS_ICONS[this.status], size: "xs", "aria-hidden": "true" }), hasLabel && h("span", { key: 'a094dc720a8bdc5efcac8c9c1111374fc87816ea', class: "nv-statusindicator-label" }, this.label)));
|
|
33
33
|
}
|
|
34
34
|
static get is() { return "nv-statusindicator"; }
|
|
35
35
|
static get originalStyleUrls() {
|
|
@@ -58,7 +58,7 @@ export class NvTable {
|
|
|
58
58
|
/****************************************************************************/
|
|
59
59
|
//#region RENDER
|
|
60
60
|
render() {
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: '3df49803ba847db54f5d485b1bcd939b8a19aeb8' }, h("slot", { key: '43ded7aea3327caaced0acd07966b0ca32784440' })));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "nv-table"; }
|
|
64
64
|
static get originalStyleUrls() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { isToggleKey } from "../../utils/accessibility.utils";
|
|
2
3
|
/**
|
|
3
4
|
* @slot default - Child content of the component.
|
|
4
5
|
*/
|
|
@@ -36,7 +37,7 @@ export class NvTableheader {
|
|
|
36
37
|
handleKeyDown(event) {
|
|
37
38
|
if (!this.sortable)
|
|
38
39
|
return;
|
|
39
|
-
if (event.key
|
|
40
|
+
if (isToggleKey(event.key)) {
|
|
40
41
|
event.preventDefault();
|
|
41
42
|
this.cycleSortDirection();
|
|
42
43
|
}
|
|
@@ -55,7 +56,7 @@ export class NvTableheader {
|
|
|
55
56
|
/****************************************************************************/
|
|
56
57
|
//#region RENDER
|
|
57
58
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
59
|
+
return (h(Host, { key: '51664d6db370f7bb22a031aa8a9edbc29bd653b5', role: "columnheader", "aria-sort": this.ariaSort, tabindex: this.sortable ? 0 : undefined, onKeyDown: this.handleKeyDown.bind(this), onClick: this.cycleSortDirection.bind(this) }, h("slot", { key: '196ddb958ea6b0e4d27268d9a32ea241b3e26539' }), this.sortable && (h("span", { key: '279282cba3643ef51a41d0ea34f315db4fd9be38', class: "sort-icon-wrap", "aria-hidden": "true" }, h("nv-iconbutton", { key: '69f4fda379fdbece57025bb6e1d206b88a255ad8', disableTabindex: true, name: "arrow-up", size: "xs", emphasis: this.sortDirection === 'none' ? 'lower' : 'low',
|
|
59
60
|
// prevent mousedown from selecting text
|
|
60
61
|
onMouseDown: (e) => e.preventDefault(), class: {
|
|
61
62
|
'is-none': this.sortDirection === 'none',
|
|
@@ -62,7 +62,7 @@ export class NvTimetest {
|
|
|
62
62
|
/****************************************************************************/
|
|
63
63
|
//#region RENDER
|
|
64
64
|
render() {
|
|
65
|
-
return (h(Host, { key: '
|
|
65
|
+
return (h(Host, { key: 'fca1d9cc2dbb4709cd7621381dd6847d9eea8227' }, h("label", { key: 'dddf78b4c3f50b645c91cdf1d57fd78c07d0e23f' }, "Start:", h("input", { key: '40246bb99d14a1f852d67ebdffce36448d9c2edb', type: "time", step: "1", value: this.value?.start ?? '', onInput: this.handleStartChange })), h("label", { key: '86022907d2e31d56427fac0ebef19e561ffb5f5d' }, "End:", h("input", { key: 'c19a51da31a352a71a08811caccd4d0a7c8fb849', type: "time", step: "1", value: this.value?.end ?? '', onInput: this.handleEndChange })), h("slot", { key: 'c50aba949ff2a48fcee1249c6da496d232fb1ee7' })));
|
|
66
66
|
}
|
|
67
67
|
static get is() { return "nv-timetest"; }
|
|
68
68
|
static get originalStyleUrls() {
|
|
@@ -60,8 +60,8 @@ export class NvToggle {
|
|
|
60
60
|
/****************************************************************************/
|
|
61
61
|
//#region RENDER
|
|
62
62
|
render() {
|
|
63
|
-
return (h(Host, { key: '
|
|
64
|
-
this.el.querySelector('[slot="description"]')) && (h("div", { key: '
|
|
63
|
+
return (h(Host, { key: 'd6e831dca92210237a3030cf04975f31e2e2c0dd', class: clsx(this.labelPlacement === 'before' && 'label-placement-before') }, h("div", { key: 'eb6abba696627da46e3229005a425196e5468ce7', class: "input-container" }, h("input", { key: 'b7c2dc3acd899fb85ab4f6af70469d7370d90f74', type: "checkbox", id: this.inputId, name: this.name, autocomplete: "off", value: this.value, checked: Boolean(this.checked), disabled: this.disabled || this.readonly, readonly: this.readonly })), h("div", { key: 'eca25273a47ce736ccad50cca2d268f2ce244f05', class: "text-container" }, (this.label || this.el.querySelector('[slot="label"]')) && (h("label", { key: 'c602458370913dadd198c7b05c24927cd067a24f', htmlFor: this.inputId, class: clsx(this.hideLabel && 'visually-hidden') }, h("slot", { key: '30a04d9d3642b81f3612dd187a70fbb666c721d0', name: "label" }, this.label))), (this.description ||
|
|
64
|
+
this.el.querySelector('[slot="description"]')) && (h("div", { key: '3d1c84edf97b0055c316c71ffe084dda85973436', class: "description" }, h("slot", { key: 'a14162023e1f6faeb3c713ff01eae212aa015ff9', name: "description" }, this.description))))));
|
|
65
65
|
}
|
|
66
66
|
static get is() { return "nv-toggle"; }
|
|
67
67
|
static get formAssociated() { return true; }
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { isToggleKey } from "../../utils/accessibility.utils";
|
|
2
3
|
/**
|
|
3
4
|
* @slot default - Child content of the toggle button.
|
|
4
5
|
*/
|
|
@@ -41,7 +42,7 @@ export class NvTogglebutton {
|
|
|
41
42
|
/****************************************************************************/
|
|
42
43
|
//#region LISTENERS
|
|
43
44
|
handleKeyDown(event) {
|
|
44
|
-
if (event.key
|
|
45
|
+
if (isToggleKey(event.key)) {
|
|
45
46
|
event.preventDefault();
|
|
46
47
|
this.el.click();
|
|
47
48
|
}
|
|
@@ -50,7 +51,7 @@ export class NvTogglebutton {
|
|
|
50
51
|
/****************************************************************************/
|
|
51
52
|
//#region RENDER
|
|
52
53
|
render() {
|
|
53
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: 'a56ab971d7bc599df65879f79247046b0369e3cd', role: "button", tabindex: "0", "aria-pressed": String(this.active), onClick: this.handleClick }, h("slot", { key: '21e528d9090d9d2015fbbd3e1d6631686e926507' })));
|
|
54
55
|
}
|
|
55
56
|
static get is() { return "nv-togglebutton"; }
|
|
56
57
|
static get originalStyleUrls() {
|
|
@@ -149,7 +149,7 @@ export class NvTogglebuttongroup {
|
|
|
149
149
|
/****************************************************************************/
|
|
150
150
|
//#region RENDER
|
|
151
151
|
render() {
|
|
152
|
-
return (h(Host, { key: '
|
|
152
|
+
return (h(Host, { key: '14797a5ced5fb74254dcf05ae8e1673ada95fb10' }, h("slot", { key: '77a7dc8252103bf259c979b2a41fb3727503b7dd' })));
|
|
153
153
|
}
|
|
154
154
|
static get is() { return "nv-togglebuttongroup"; }
|
|
155
155
|
static get originalStyleUrls() {
|
|
@@ -46,7 +46,7 @@ export class NvTooltip {
|
|
|
46
46
|
/****************************************************************************/
|
|
47
47
|
//#region RENDER
|
|
48
48
|
render() {
|
|
49
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '620c5961fe95f7623a65ceed07a7fb42306189ae' }, h("nv-popover", { key: 'a40db9e814ab527f57e625bf5c83c81fba9efe5e', ref: el => (this.popoverElement = el), triggerMode: "hover", hasArrow: true, placement: this.placement, strategy: this.strategy, groupName: 'tooltip', enterDelay: this.enterDelay, onOpenChanged: e => this.openChanged.emit(e.detail) }, h("p", { key: '8baf04ff0d82f385e9366e228a942062fca39e45', slot: "content" }, this.message), h("slot", { key: '7534cdbf49b6e9eb92156bc9b8bffb447172a273', name: "content" })), h("slot", { key: '6a8d93fda3f5e9b2b83c2e7a43356de8d4d5680e', ref: el => (this.defaultSlot = el) })));
|
|
50
50
|
}
|
|
51
51
|
static get is() { return "nv-tooltip"; }
|
|
52
52
|
static get originalStyleUrls() {
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const TOGGLE_ARIA_ROLES = new Set([
|
|
2
|
+
'button',
|
|
3
|
+
'checkbox',
|
|
4
|
+
'radio',
|
|
5
|
+
]);
|
|
6
|
+
/**
|
|
7
|
+
* Checks whether a keyboard key should toggle a control.
|
|
8
|
+
* @param {string} key - KeyboardEvent key value.
|
|
9
|
+
* @returns {boolean} True when key should trigger toggle behavior.
|
|
10
|
+
*/
|
|
11
|
+
export function isToggleKey(key) {
|
|
12
|
+
return key === 'Enter' || key === ' ';
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Checks whether a role is a supported toggle ARIA role.
|
|
16
|
+
* @param {string} role - Role value to validate.
|
|
17
|
+
* @returns {boolean} True when role is supported.
|
|
18
|
+
*/
|
|
19
|
+
export function isToggleAriaRole(role) {
|
|
20
|
+
return TOGGLE_ARIA_ROLES.has(role);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Normalizes runtime role values to supported toggle roles.
|
|
24
|
+
* Falls back to button semantics for invalid values.
|
|
25
|
+
* @param {string} role - Role value to normalize.
|
|
26
|
+
* @returns {ToggleAriaRole} Supported role value.
|
|
27
|
+
*/
|
|
28
|
+
export function normalizeToggleAriaRole(role) {
|
|
29
|
+
return isToggleAriaRole(role) ? role : 'button';
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Calculates the next selected state for a toggle interaction.
|
|
33
|
+
* @param {boolean} selected - Current selected state.
|
|
34
|
+
* @param {boolean} disabled - Disabled state.
|
|
35
|
+
* @returns {boolean} Updated selected state.
|
|
36
|
+
*/
|
|
37
|
+
export function getNextSelectedState(selected, disabled) {
|
|
38
|
+
if (disabled)
|
|
39
|
+
return selected;
|
|
40
|
+
return !selected;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Calculates the next selected state based on role semantics.
|
|
44
|
+
* Radio-like controls cannot toggle off directly once selected.
|
|
45
|
+
* Group-level coordination (for example deselecting sibling radios) is handled
|
|
46
|
+
* by the consuming component in radiogroup context.
|
|
47
|
+
* @param {ToggleAriaRole} role - Interactive role of the control.
|
|
48
|
+
* @param {boolean} selected - Current selected state.
|
|
49
|
+
* @param {boolean} disabled - Disabled state.
|
|
50
|
+
* @returns {boolean} Updated selected state for the role.
|
|
51
|
+
*/
|
|
52
|
+
export function getRoleAwareNextSelectedState(role, selected, disabled) {
|
|
53
|
+
if (disabled)
|
|
54
|
+
return selected;
|
|
55
|
+
if (role === 'radio') {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
return getNextSelectedState(selected, disabled);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Maps role + state to ARIA attributes.
|
|
62
|
+
* @param {ToggleAriaRole} role - Interactive role of the control.
|
|
63
|
+
* @param {boolean} selected - Selected state.
|
|
64
|
+
* @returns {AriaStateAttributes} ARIA state attributes for the role.
|
|
65
|
+
*/
|
|
66
|
+
export function getAriaStateAttributes(role, selected) {
|
|
67
|
+
if (role === 'button') {
|
|
68
|
+
return { ariaPressed: String(selected) };
|
|
69
|
+
}
|
|
70
|
+
return { ariaChecked: String(selected) };
|
|
71
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { getAriaStateAttributes, getNextSelectedState, getRoleAwareNextSelectedState, isToggleAriaRole, normalizeToggleAriaRole, isToggleKey, } from "../accessibility.utils";
|
|
3
|
+
describe('accessibility.utils', () => {
|
|
4
|
+
describe('isToggleKey', () => {
|
|
5
|
+
it('returns true for Enter', () => {
|
|
6
|
+
expect(isToggleKey('Enter')).toBe(true);
|
|
7
|
+
});
|
|
8
|
+
it('returns true for Space', () => {
|
|
9
|
+
expect(isToggleKey(' ')).toBe(true);
|
|
10
|
+
});
|
|
11
|
+
it('returns false for other keys', () => {
|
|
12
|
+
expect(isToggleKey('Escape')).toBe(false);
|
|
13
|
+
expect(isToggleKey('Tab')).toBe(false);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
describe('isToggleAriaRole', () => {
|
|
17
|
+
it('returns true for supported roles', () => {
|
|
18
|
+
expect(isToggleAriaRole('button')).toBe(true);
|
|
19
|
+
expect(isToggleAriaRole('checkbox')).toBe(true);
|
|
20
|
+
expect(isToggleAriaRole('radio')).toBe(true);
|
|
21
|
+
});
|
|
22
|
+
it('returns false for unsupported roles', () => {
|
|
23
|
+
expect(isToggleAriaRole('menuitem')).toBe(false);
|
|
24
|
+
expect(isToggleAriaRole('switch')).toBe(false);
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
describe('normalizeToggleAriaRole', () => {
|
|
28
|
+
it('keeps supported roles unchanged', () => {
|
|
29
|
+
expect(normalizeToggleAriaRole('button')).toBe('button');
|
|
30
|
+
expect(normalizeToggleAriaRole('checkbox')).toBe('checkbox');
|
|
31
|
+
expect(normalizeToggleAriaRole('radio')).toBe('radio');
|
|
32
|
+
});
|
|
33
|
+
it('falls back to button for unsupported roles', () => {
|
|
34
|
+
expect(normalizeToggleAriaRole('menuitem')).toBe('button');
|
|
35
|
+
expect(normalizeToggleAriaRole('switch')).toBe('button');
|
|
36
|
+
});
|
|
37
|
+
});
|
|
38
|
+
describe('getNextSelectedState', () => {
|
|
39
|
+
it('toggles selected state when enabled', () => {
|
|
40
|
+
expect(getNextSelectedState(false, false)).toBe(true);
|
|
41
|
+
expect(getNextSelectedState(true, false)).toBe(false);
|
|
42
|
+
});
|
|
43
|
+
it('keeps selected state unchanged when disabled', () => {
|
|
44
|
+
expect(getNextSelectedState(false, true)).toBe(false);
|
|
45
|
+
expect(getNextSelectedState(true, true)).toBe(true);
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
describe('getRoleAwareNextSelectedState', () => {
|
|
49
|
+
it('uses toggle semantics for button and checkbox roles', () => {
|
|
50
|
+
expect(getRoleAwareNextSelectedState('button', false, false)).toBe(true);
|
|
51
|
+
expect(getRoleAwareNextSelectedState('button', true, false)).toBe(false);
|
|
52
|
+
expect(getRoleAwareNextSelectedState('checkbox', false, false)).toBe(true);
|
|
53
|
+
expect(getRoleAwareNextSelectedState('checkbox', true, false)).toBe(false);
|
|
54
|
+
});
|
|
55
|
+
it('uses radio semantics and does not toggle off once selected', () => {
|
|
56
|
+
expect(getRoleAwareNextSelectedState('radio', false, false)).toBe(true);
|
|
57
|
+
expect(getRoleAwareNextSelectedState('radio', true, false)).toBe(true);
|
|
58
|
+
});
|
|
59
|
+
it('keeps state unchanged for disabled controls', () => {
|
|
60
|
+
expect(getRoleAwareNextSelectedState('button', false, true)).toBe(false);
|
|
61
|
+
expect(getRoleAwareNextSelectedState('radio', true, true)).toBe(true);
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
describe('getAriaStateAttributes', () => {
|
|
65
|
+
it('maps button role to aria-pressed', () => {
|
|
66
|
+
expect(getAriaStateAttributes('button', true)).toEqual({
|
|
67
|
+
ariaPressed: 'true',
|
|
68
|
+
});
|
|
69
|
+
expect(getAriaStateAttributes('button', false)).toEqual({
|
|
70
|
+
ariaPressed: 'false',
|
|
71
|
+
});
|
|
72
|
+
});
|
|
73
|
+
it('maps checkbox role to aria-checked', () => {
|
|
74
|
+
expect(getAriaStateAttributes('checkbox', true)).toEqual({
|
|
75
|
+
ariaChecked: 'true',
|
|
76
|
+
});
|
|
77
|
+
expect(getAriaStateAttributes('checkbox', false)).toEqual({
|
|
78
|
+
ariaChecked: 'false',
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
it('maps radio role to aria-checked', () => {
|
|
82
|
+
expect(getAriaStateAttributes('radio', true)).toEqual({
|
|
83
|
+
ariaChecked: 'true',
|
|
84
|
+
});
|
|
85
|
+
expect(getAriaStateAttributes('radio', false)).toEqual({
|
|
86
|
+
ariaChecked: 'false',
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
});
|
package/dist/components/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-
|
|
1
|
+
export{g as getAssetPath,r as render,s as setAssetPath,a as setNonce,b as setPlatformOptions}from"./p-DMtFowUl.js";export{a as ButtonEmphasis,B as ButtonSize,b as ButtonType,C as CUSTOM_DAY_NAMES,j as CUSTOM_MONTH_NAMES,D as DeprecatedSemanticColors,F as FeedbackColors,G as GlobalFilterPosition,I as IconButtonShape,f as LabelPlacement,L as LoaderColors,c as NotificationEmphasis,N as NotificationPosition,S as SemanticSizes,i as SortingPossibility,d as StatusIndicatorEmphasis,g as TextInputAutocomplete,h as TimeType,T as ToggleButtonEmphasis,e as ToggleButtonSize,W as WEEK_ABBREVIATIONS}from"./p-gOKBmbgZ.js";export{e as eventUtils}from"./p-B6GgGra-.js";export{u as uriUtils}from"./p-CnI0auJM.js";export{n as dateTimeUtils}from"./p-CyL2J6O4.js";import{u as o}from"./p-D1C_pu0E.js";import{u as t}from"./p-9xYwU7ku.js";import{u as l}from"./p-D02w_Ru6.js";import{u as p}from"./p-D2otK4Ce.js";import{p as m,t as k}from"./p-CgHCo_Ho.js";import{D as w,a as y,b as v,c as _,F as x,H as E,M as z,d as U,e as A,S as O,f as R,g as M,h as H,i as q,j as P,k as K,l as Y,n as Z,r as X,s as J,m as V,o as Q,p as $,q as ee,t as re}from"./p-BaF3Tuua.js";var ae=Object.freeze({__proto__:null,nameof:function(e){return e(new Proxy({},{get:(e,r)=>r}))}}),oe=Object.freeze({__proto__:null,startsWithIgnoreCase:function(e,r){return!(!e||!r)&&e.toLowerCase().startsWith(r.toLowerCase())}}),te=Object.freeze({__proto__:null,parallel:m,timeline:k,useCollapse:o,useFade:t,useGrow:l,useSlide:p}),se=Object.freeze({__proto__:null,DEFAULT_DEBOUNCE_DELAY:w,DEFAULT_FUZZY_THRESHOLD:y,DEFAULT_MAX_RESULTS:v,DEFAULT_WORKER_THRESHOLD:_,FUZZY_DEBOUNCE_DELAY:x,HARD_CAP_MAX_RESULTS:E,MAX_WORKER_THRESHOLD:z,MIN_MAX_RESULTS:U,MIN_WORKER_THRESHOLD:A,SearchWorkerClient:O,buildIndex:R,clampFuzzyThreshold:M,clampMaxResults:H,clampWorkerThreshold:q,clearFuzzyCache:P,getEffectiveFilterMode:K,isWorkerSupported:Y,normalize:Z,rebuildIndex:X,search:J,searchFuzzy:V,searchSmart:Q,searchStrict:$,shouldUseWorker:ee,tokenize:re});const ie=["access-point-off","access-point","accessible","activity","address-book","adjustments-horizontal","adjustments-up","adjustments","affiliate","air-conditioning","alert-circle","alert-square-rounded","alert-triangle","align-center","align-left","align-right","app-window","apps","archive","areas","arrow-back-up","arrow-back","arrow-down-left","arrow-down-right","arrow-down","arrow-forward-up","arrow-forward","arrow-left","arrow-right","arrow-up-left","arrow-up-right","arrow-up","arrows-diagonal","arrows-exchange","arrows-maximize","arrows-minimize","arrows-move","aspect-ratio","atom","ban","basket","battery-1","battery-2","battery-3","battery-4","battery-automotive","battery-charging","battery-eco","battery-off","battery","bell-bolt","bell-off","bell-ringing","bell","bike","bluetooth-connected","bluetooth-off","bluetooth","bolt-off","bolt","book","bookmark-off","bookmark","bookmarks","box-align-top","box-multiple","brand-facebook","brand-instagram","brand-linkedin","brand-x","brand-youtube","briefcase","brightness-down","brightness-up","browser-check","browser-plus","browser-x","browser","brush","building-bank","building-factory","building-lighthouse","building-store","building","bulb-off","bulb","cake","calendar-time","calendar-week","calendar","camera-off","camera","car-crane","car","caravan","cash-banknote","cash","cast","cell","charging-pile","chart-arcs","chart-area-line","chart-area","chart-arrows-vertical","chart-arrows","chart-bar","chart-bubble","chart-circles","chart-donut","chart-dots","chart-line","chart-pie","chart-radar","check","checkbox","checklist","checks","chevron-down","chevron-left","chevron-right","chevron-top","chevrons-left","chevrons-right","circle-caret-right","circle-check","circle-minus","circle-x","circuit-alternate","circuit-ground-digital","clipboard-check","clipboard-list","clipboard-plus","clipboard-text","clipboard-x","clipboard","clock-edit","clock","cloud-data-connection","cloud-download","cloud-rain","cloud-snow","cloud-upload","cloud","color-picker","color-swatch","columns-1","columns-2","columns-3","compass","contract","cookie","copy","cpu","crane","credit-card","crop","cross","crown","currency-bitcoin","currency-dollar","currency-ethereum","currency-euro","cut","dashboard","database","device-desktop","device-floppy","device-gamepad","device-laptop","device-mobile-rotated","device-mobile","device-tablet","device-watch","devices","dialpad","direction-horizontal","direction-sign","direction","discount","door-enter","door-exit","door-off","dots-vertical","dots","download","drone","droplet-filled","droplet-half","droplet","droplets","edit","empty","engine","equal-not","eraser-off","eraser","exclamation-mark","external-link","eye-check","eye-off","eye","eyeglass2","face-id","feather","file-alert","file-analytics","file-check","file-code","file-download","file-export","file-horizontal","file-import","file-plus","file-search","file-text-bookmark","file-text","file-type-bmp","file-type-css","file-type-csv","file-type-doc","file-type-html","file-type-jpg","file-type-js","file-type-pdf","file-type-png","file-type-ppt","file-type-xls","file-type-xml","file-type-zip","file-upload","file-x","file-zip","file","files-off","files","filter-off","filter-sort","filter","fingerprint","fire-extinguisher","flag","flame","flip-horizontal","flip-vertical","folder-minus","folder-off","folder-plus","folder-x","folder","folders","frame","gas-station","gauge-off","gauge","gift","git-branch-delete","git-branch","git-cherry-pick","git-commit","git-compare","git-fork","git-merge","git-pull-request-closed","git-pull-request-draft","git-pull-request","gps","grid-dots","grip-horizontal","grip-vertical","hand-stop","hand-waving","hash","haze","headphones-off","headphones","headset","heart-off","heart","heartbeat","helicopter","helmet-swopp","helmet","help","history","home","hourglass-empty","hourglass-high","hourglass-low","hourglass-off","hourglass","inbox","info-circle","info-small","keyboard-hide","keyboard-show","keyboard","layers-intersect","layers-off","layout-board-split","layout-dashboard","layout-grid","layout-sidebar-left-collapse","layout-sidebar-left-expand","layout-sidebar-right-collapse","layout-sidebar-right-expand","layout","leaf","lifebuoy","link","list-search","list","loader","location","lock-off","lock-open","lock","login","logout","mail-forward","mail-opened","mail","map-pin-2","map-pin-off","map-pin","map","master-data","menu","message-dots","message-off","message","messages","microphone-off","microphone","minus","mist","moon","motorbike","mouse","movie","network","news","note","notebook","notes","offshore-station","package","palette","paperclip","pencil","phone-call","phone-calling","phone-check","phone-incoming","phone-off","phone-outgoing","phone","photo-off","photo","pig","pin","pinned-off","pinned","plane-off","plane","plant","player-pause","player-play","player-skip-back","player-skip-forward","player-stop","player-track-next","player-track-prev","plug-connected","plug","plus","power-ac","power-dc","power","presentation-analytics","presentation","printer","propeller","published","puzzle-2","puzzle","pylon","qrcode","question-mark","quotes-open","quotes","radar","radio","radioactive","receipt-dollar","receipt-euro","receipt","recharging","recycle","refresh-alert","refresh-off","refresh","repeat-once","repeat","replace","report-analytics","report-medical","report-search","report","ripple-off","ripple","rocket","rotate-2","rotate-clockwise-2","rotate-clockwise","rotate-dot","rotate","router","ruler-measure","sailboat","satellite","scale","school","scissors","scooter-electric","screenshot","search","seeding","select","selector","send","server","settings","shape","share-2","share","shield-check","shield-lock","shield-off","shield-x","shield","ship-off","ship","shopping-cart","sitemap","slash","smart-home","snowflake","solar-panel","sort-ascending-letters","sort-ascending-numbers","sort-descending-letters","sort-descending-numbers","spacing-horizontal","spacing-vertical","sparkles","speakerphone","stack","stairs","star","sun","sunrise","sunset","switch-horizontal","switch-vertical","table","tag","tank-empty-fill","tank-full-fill","tank-medium-fill","temperature-off","temperature","template","terminal","text-size","text","thumb-down","thumb-up","ticket","timeline","tir","tool","tools","train","trash-off","trash","tree","trees","trending-down-2","trending-down-3","trending-down","trending-up-2","trending-up-3","trending-up","truck-delivery","truck","umbrella","unlink","upload","user-circle","user-exclamation","user-minus","user-off","user-plus","user-worker","user","users-group","users","versions","video-minus","video-off","video-plus","video","volume-2","volume-3","volume","wallet","wand","wave","waves","wifi-off","wifi","wind-direction","wind","windmill","wood","world-code","world","writing","x","zoom-reset"];export{te as animations,ae as classUtils,ie as iconNames,se as searchEngine,oe as stringUtils}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as o,d as
|
|
1
|
+
import{N as o,d as p}from"./p-p6cOkAo9.js";const s=o,r=p;export{s as NvAccordionItem,r as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as o,p as e,H as t,c as n,f as s,h as i,d as a}from"./p-
|
|
1
|
+
import{t as o,p as e,H as t,c as n,f as s,h as i,d as a}from"./p-DMtFowUl.js";import{d as r}from"./p-p6cOkAo9.js";import{d as c}from"./p-CtKp5aji.js";import{d}from"./p-m37Anefm.js";import{d as l}from"./p-BnO_M5Vy.js";const h=e(class extends t{constructor(o){super(),!1!==o&&this.__registerHost(),this.openIndexesChanged=n(this,"openIndexesChanged",3),this.data=[],this.mode="accordion",this.openIndexes=[],this.updatingFromInternal=!1}async open(o){this.toggleItem(o,!0)}async close(o){this.toggleItem(o,!1)}toggleItem(o,e){const t=Array.from(this.el.querySelectorAll("nv-accordion-item"))[o];if(!t||t.disabled)return console.warn("[toggleItem] Item not found or disabled:",o),void this.openIndexesChanged.emit([...this.openIndexes||[]]);let n=[...this.openIndexes||[]];const s=n.includes(o);"accordion"===this.mode?n=!1===e||void 0===e&&s?[]:[o]:!1===e?n=n.filter((e=>e!==o)):!0!==e||s?void 0===e&&(n=s?n.filter((e=>e!==o)):[...n,o]):n.push(o),this.updatingFromInternal=!0,this.openIndexes=[...n],this.updateChildrenState(),this.updatingFromInternal=!1,this.openIndexesChanged.emit([...n])}async updateChildrenState(){Array.from(this.el.querySelectorAll("nv-accordion-item")).forEach(((o,e)=>{const t=(this.openIndexes||[]).includes(e);o.open=t,o.mode=this.mode,o.setAttribute("aria-expanded",t?"true":"false"),s(o)}))}onItemToggle(o){if(o.stopPropagation(),this.updatingFromInternal)return;const e=Array.from(this.el.querySelectorAll("nv-accordion-item")).indexOf(o.target);-1!==e?this.toggleItem(e,o.detail):console.warn("[onItemToggle] Target item not found in items list")}onOpenIndexesChange(o,e){this.updatingFromInternal||void 0===o||o===e||this.updateChildrenState()}onModeChange(){this.updateChildrenState()}componentWillLoad(){void 0===this.openIndexes&&(this.openIndexes=[])}async componentDidLoad(){const o=Array.from(this.el.querySelectorAll("nv-accordion-item"));if(!(this.data?.length||this.openIndexes&&0!==this.openIndexes.length)){const e=o.map(((o,e)=>o.hasAttribute("open")||o.open?e:-1)).filter((o=>-1!==o));e.length>0&&(this.updatingFromInternal=!0,this.openIndexes=[...e],this.updatingFromInternal=!1,this.openIndexesChanged.emit([...this.openIndexes]))}await this.updateChildrenState()}render(){return i(a,{key:"60fa93fd799665c25cae9e7d52f80a8dcd4123cf",role:"list",class:"nv-accordion"},this.data?.length?this.data.map(((o,e)=>i("nv-accordion-item",{key:o.id??e,itemTitle:o.title,disabled:o.disabled,open:(this.openIndexes||[]).includes(e),mode:this.mode},o.subtitle?i("div",{slot:"header"},i("div",{class:"nv-accordion-item__header-content"},i("span",{class:"nv-accordion-item__title"},o.title),i("span",{class:"nv-accordion-item__subtitle"},o.subtitle))):null,i("div",{slot:"content"},o.content),o.footer&&i("div",{slot:"footer"},o.footer)))):i("slot",null))}get el(){return this}static get watchers(){return{openIndexes:[{onOpenIndexesChange:0}],mode:[{onModeChange:0}]}}static get style(){return"nv-accordion{display:block;border:var(--spacing-px) solid var(--color-content-low-border);border-radius:var(--radius-rounded-lg)}nv-accordion .nv-accordion__footer{padding:var(--spacing-3);background:var(--color-level-05-background);border-radius:0 0 var(--radius-rounded-lg) var(--radius-rounded-lg);margin-top:calc(var(--spacing-px) * -1);border-top:var(--spacing-px) solid var(--color-content-low-border)}nv-accordion .nv-accordion__footer:empty{display:none}"}},[260,"nv-accordion",{data:[16],mode:[513],openIndexes:[1040],updatingFromInternal:[32],open:[64],close:[64]},[[0,"itemToggle","onItemToggle"]],{openIndexes:[{onOpenIndexesChange:0}],mode:[{onModeChange:0}]}]);function m(){"undefined"!=typeof customElements&&["nv-accordion","nv-accordion-item","nv-icon","nv-iconbutton","nv-loader"].forEach((e=>{switch(e){case"nv-accordion":customElements.get(o(e))||customElements.define(o(e),h);break;case"nv-accordion-item":customElements.get(o(e))||r();break;case"nv-icon":customElements.get(o(e))||c();break;case"nv-iconbutton":customElements.get(o(e))||d();break;case"nv-loader":customElements.get(o(e))||l()}}))}m();const p=h,v=m;export{p as NvAccordion,v as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e,p as o,H as n,c as t,h as a,d as r}from"./p-
|
|
1
|
+
import{t as e,p as o,H as n,c as t,h as a,d as r}from"./p-DMtFowUl.js";import{c as s}from"./p-ChV9xqsO.js";import{F as i}from"./p-gOKBmbgZ.js";import{u as c}from"./p-D1C_pu0E.js";import{u as l}from"./p-9xYwU7ku.js";import"./p-Dz1GUhVy.js";import{t as d}from"./p-CgHCo_Ho.js";import{d as f}from"./p-CtKp5aji.js";const u=o(class extends n{constructor(e){super(),!1!==e&&this.__registerHost(),this.hiddenChanged=t(this,"hiddenChanged",3),this.hiddenChangedComplete=t(this,"hiddenChangedComplete",3),this.closeClicked=t(this,"closeClicked",3),this.feedback="information",this.dismissible=!1,this.preventAutoClose=!1,this.hidden=!1,this.hasNoAnimations=!1,this.handleDismiss=()=>{this.preventAutoClose||(this.hidden=!0),this.closeClicked.emit()},this.getDefaultIcon=()=>{switch(this.feedback){case i.Warning:return"alert-circle";case i.Information:return"info-circle";case i.Success:return"circle-check";case i.Error:return"alert-circle";case i.Neutral:return"help";default:return"info-circle"}}}componentWillRender(){if(this.color)switch(this.color){case"primary":this.feedback="warning";break;case"secondary":case"neutral":this.feedback="information";break;default:this.feedback=this.color}}async handleHiddenChange(e){this.hiddenChanged.emit(e),await this.updateVisibility(e),this.hiddenChangedComplete.emit(e)}async updateVisibility(e){if(this.hasNoAnimations)return void this.toggleHiddenClass(e);const{fadeIn:o,fadeOut:n}=l(this.el,{duration:150}),{collapse:t,expand:a}=c(this.el,{duration:250});e?(await d(n,t).start(),this.toggleHiddenClass(!0)):(this.toggleHiddenClass(!1),await d(a,o).start())}toggleHiddenClass(e){this.el.classList.toggle("hidden",e)}componentWillLoad(){if(this.color)switch(this.color){case"primary":this.feedback="warning";break;case"secondary":case"neutral":this.feedback="information";break;default:this.feedback=this.color}this.hidden&&this.el.classList.add("hidden")}render(){return a(r,{key:"4dc8704f790d4753a364be3727f14dfe033e8f75",role:"alert",class:s("root","feedback-"+this.feedback)},a("nv-icon",{key:"b7e4a1b213c29001d2aa16d4276777fa3fa77039",name:this.icon??this.getDefaultIcon(),class:"icon-"+this.feedback,size:"md"}),a("div",{key:"4ae0406ed796ee2c8cf8e5ed1e40c96dd1bfa7b5",class:"content"},this.heading&&a("p",{key:"02bff20045603c5e5bd3790140ce52cc66857225",class:"heading"},this.heading),this.message&&a("p",{key:"e1436fe5bcffc5226747abd612266c2925d0680d",class:"message"},this.message),a("slot",{key:"deda05a3494ffd1c86ea4670c7ef793773d8c893"})),this.dismissible&&a("button",{key:"0c92c297f4df2ee1dd3eb781df782c983b5b61d5",class:"close",type:"button",onClick:this.handleDismiss},a("nv-icon",{key:"2bf2c72e4dedc932549af6e15cf221678640ea26",name:"x",size:"sm"})))}get el(){return this}static get watchers(){return{hidden:[{handleHiddenChange:0}]}}static get style(){return"nv-alert{display:flex !important;align-items:flex-start;position:relative;gap:var(--alert-gap-x);border-radius:var(--alert-radius);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif}nv-alert>nv-icon{margin-left:var(--alert-icon-position-x);margin-top:var(--alert-icon-position-y)}nv-alert.hidden{display:none !important}nv-alert.feedback-information{background-color:var(--components-alert-information-background);border:1px solid var(--components-alert-information-border) !important}nv-alert.feedback-information>.close:focus,nv-alert.feedback-information>.close:focus-within{outline:none}nv-alert.feedback-information>.close:focus-visible,nv-alert.feedback-information>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-information-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-warning{background-color:var(--components-alert-warning-background);border:1px solid var(--components-alert-warning-border) !important}nv-alert.feedback-warning>.close:focus,nv-alert.feedback-warning>.close:focus-within{outline:none}nv-alert.feedback-warning>.close:focus-visible,nv-alert.feedback-warning>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-warning-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-error{background-color:var(--components-alert-error-background);border:1px solid var(--components-alert-error-border) !important}nv-alert.feedback-error>.close:focus,nv-alert.feedback-error>.close:focus-within{outline:none}nv-alert.feedback-error>.close:focus-visible,nv-alert.feedback-error>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-error-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-success{background-color:var(--components-alert-success-background);border:1px solid var(--components-alert-success-border) !important}nv-alert.feedback-success>.close:focus,nv-alert.feedback-success>.close:focus-within{outline:none}nv-alert.feedback-success>.close:focus-visible,nv-alert.feedback-success>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-success-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert.feedback-neutral{background-color:var(--components-alert-neutral-background);border:1px solid var(--components-alert-neutral-border) !important}nv-alert.feedback-neutral>.close:focus,nv-alert.feedback-neutral>.close:focus-within{outline:none}nv-alert.feedback-neutral>.close:focus-visible,nv-alert.feedback-neutral>.close:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-neutral-border);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-alert>nv-icon.icon-information{color:var(--components-alert-information-icon)}nv-alert>nv-icon.icon-warning{color:var(--components-alert-warning-icon)}nv-alert>nv-icon.icon-error{color:var(--components-alert-error-icon)}nv-alert>nv-icon.icon-success{color:var(--components-alert-success-icon)}nv-alert>nv-icon.icon-neutral{color:var(--components-alert-neutral-icon)}nv-alert>.content{display:flex;padding:var(--alert-padding);padding-right:calc(var(--alert-padding) + var(--spacing-5) + var(--spacing-1));padding-left:0;flex-direction:column;gap:var(--alert-gap-y)}nv-alert>.content>.heading{color:var(--components-alert-content-title);font-size:var(--alert-heading-font-size);line-height:var(--alert-heading-line-height);font-weight:var(--alert-heading-font-weight)}nv-alert>.content>.message{color:var(--components-alert-content-description);font-size:var(--alert-message-font-size);line-height:var(--alert-message-line-height)}nv-alert>.close{border-radius:var(--alert-radius);position:absolute;display:flex;top:var(--alert-icon-position-y);right:var(--alert-icon-position-x);padding:0;border:none;background:none;cursor:pointer}"}},[260,"nv-alert",{color:[513],feedback:[1537],message:[513],heading:[513],icon:[513],dismissible:[516],preventAutoClose:[516,"prevent-auto-close"],hidden:[1540],hasNoAnimations:[516,"has-no-animations"]},void 0,{hidden:[{handleHiddenChange:0}]}]);function v(){"undefined"!=typeof customElements&&["nv-alert","nv-icon"].forEach((o=>{switch(o){case"nv-alert":customElements.get(e(o))||customElements.define(e(o),u);break;case"nv-icon":customElements.get(e(o))||f()}}))}v();const h=u,p=v;export{h as NvAlert,p as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as a,p as t,H as r,h as o,d as n}from"./p-
|
|
1
|
+
import{t as a,p as t,H as r,h as o,d as n}from"./p-DMtFowUl.js";import{c as v}from"./p-ChV9xqsO.js";import{S as s}from"./p-gOKBmbgZ.js";import{d as i}from"./p-CtKp5aji.js";const e=t(class extends r{constructor(a){super(),!1!==a&&this.__registerHost(),this.size="md",this.color="1"}componentWillRender(){this.xsmall&&(this.size=s.ExtraSmall),this.small&&(this.size=s.Small),this.medium&&(this.size=s.Medium),this.large&&(this.size=s.Large),this.xlarge&&(this.size=s.ExtraLarge),this.text&&(this.initials=this.text),this.url&&(this.src=this.url)}trimInitials(a){return a.trim().substring(0,2)}render(){return o(n,{key:"04faba5849d8626fd926d353d85e866d812a8398",class:v("avatar-"+this.size,"avatar-color-"+this.color),"aria-label":this.alt},this.src?o("img",{src:this.src,alt:this.alt}):this.initials?this.trimInitials(this.initials):o("slot",{name:"icon"},o("nv-icon",{name:"user"})))}static get style(){return"nv-avatar{align-items:center !important;background-color:var(--components-avatar-background-1);border-radius:var(--radius-rounded-full) !important;display:flex !important;flex-shrink:0 !important;font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-style:normal;font-weight:var(--font-weight-medium-emphasis);justify-content:center !important;leading-trim:both;line-height:1 !important;text-align:center;text-edge:cap;text-transform:uppercase}nv-avatar.avatar-color-1{background-color:var(--components-avatar-background-1);color:var(--components-avatar-content-1)}nv-avatar.avatar-color-2{background-color:var(--components-avatar-background-2);color:var(--components-avatar-content-2)}nv-avatar.avatar-color-3{background-color:var(--components-avatar-background-3);color:var(--components-avatar-content-3)}nv-avatar.avatar-color-4{background-color:var(--components-avatar-background-4);color:var(--components-avatar-content-4)}nv-avatar.avatar-color-5{background-color:var(--components-avatar-background-5);color:var(--components-avatar-content-5)}nv-avatar.avatar-color-6{background-color:var(--components-avatar-background-6);color:var(--components-avatar-content-6)}nv-avatar.avatar-color-7{background-color:var(--components-avatar-background-7);color:var(--components-avatar-content-7)}nv-avatar.avatar-color-8{background-color:var(--components-avatar-background-8);color:var(--components-avatar-content-8)}nv-avatar.avatar-color-9{background-color:var(--components-avatar-background-9);color:var(--components-avatar-content-9)}nv-avatar.avatar-color-10{background-color:var(--components-avatar-background-10);color:var(--components-avatar-content-10)}nv-avatar img{height:100%;width:100%;object-fit:cover;object-position:center;border-radius:50%}nv-avatar.avatar-xs{width:var(--avatar-xs-size);height:var(--avatar-xs-size);font-size:var(--avatar-xs-font-size);line-height:var(--avatar-xs-font-size)}nv-avatar.avatar-xs nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-avatar.avatar-sm{width:var(--avatar-sm-size);height:var(--avatar-sm-size);font-size:var(--avatar-sm-font-size);line-height:var(--avatar-sm-font-size)}nv-avatar.avatar-sm nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-avatar.avatar-md{width:var(--avatar-md-size);height:var(--avatar-md-size);font-size:var(--avatar-md-font-size);line-height:var(--avatar-md-font-size)}nv-avatar.avatar-md nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-avatar.avatar-lg{width:var(--avatar-lg-size);height:var(--avatar-lg-size);font-size:var(--avatar-lg-font-size);line-height:var(--avatar-lg-font-size)}nv-avatar.avatar-lg nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-avatar.avatar-xl{width:var(--avatar-xl-size);height:var(--avatar-xl-size);font-size:var(--avatar-xl-font-size);line-height:var(--avatar-xl-font-size)}nv-avatar.avatar-xl nv-icon>svg{width:var(--spacing-7);height:var(--spacing-7);stroke-width:1.9px}"}},[260,"nv-avatar",{xsmall:[516],small:[516],medium:[516],large:[516],xlarge:[516],text:[513],url:[513],alt:[513],src:[1537],initials:[1537],size:[1537],color:[513]}]);function c(){"undefined"!=typeof customElements&&["nv-avatar","nv-icon"].forEach((t=>{switch(t){case"nv-avatar":customElements.get(a(t))||customElements.define(a(t),e);break;case"nv-icon":customElements.get(a(t))||i()}}))}c();const l=e,h=c;export{l as NvAvatar,h as defineCustomElement}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{N as o,d as s}from"./p-
|
|
1
|
+
import{N as o,d as s}from"./p-BWRw4xPL.js";const p=o,r=s;export{p as NvBadge,r as defineCustomElement}
|