@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
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
|
+
import { i as isToggleKey } from './accessibility.utils-C4Cy9iy8.js';
|
|
3
4
|
|
|
4
5
|
const nvIconbuttonCss = () => `nv-iconbutton.root{display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:var(--font-weight-medium-emphasis);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;transition:background-color 150ms ease-out;height:fit-content;width:fit-content}nv-iconbutton.size-xs{padding:calc(var(--button-xs-icon-button-padding) - 1px);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size)}nv-iconbutton.size-sm{padding:calc(var(--button-sm-icon-button-padding) - 1px);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size)}nv-iconbutton.size-md{padding:calc(var(--button-md-icon-button-padding) - 1px);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size)}nv-iconbutton.size-lg{padding:calc(var(--button-lg-icon-button-padding) - 1px);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size)}nv-iconbutton.emphasis-high{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-iconbutton.emphasis-high:hover{background:var(--components-button-high-background-hover);color:var(--components-button-high-text-hover)}nv-iconbutton.emphasis-high:focus,nv-iconbutton.emphasis-high:focus-within{outline:none}nv-iconbutton.emphasis-high:focus-visible,nv-iconbutton.emphasis-high:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-high:disabled{background:var(--components-button-high-background);color:var(--components-button-high-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-high nv-icon>svg{color:var(--components-button-high-icon)}nv-iconbutton.emphasis-medium{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-iconbutton.emphasis-medium:hover{background:var(--components-button-medium-background-hover);color:var(--components-button-medium-text-hover)}nv-iconbutton.emphasis-medium:focus,nv-iconbutton.emphasis-medium:focus-within{outline:none}nv-iconbutton.emphasis-medium:focus-visible,nv-iconbutton.emphasis-medium:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-medium:disabled{background:var(--components-button-medium-background);color:var(--components-button-medium-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-medium nv-icon>svg{color:var(--components-button-medium-icon)}nv-iconbutton.emphasis-low{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-iconbutton.emphasis-low:hover{background:var(--components-button-low-background-hover);color:var(--components-button-low-text-hover)}nv-iconbutton.emphasis-low:focus,nv-iconbutton.emphasis-low:focus-within{outline:none}nv-iconbutton.emphasis-low:focus-visible,nv-iconbutton.emphasis-low:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-low:disabled{background:var(--components-button-low-background);color:var(--components-button-low-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-low nv-icon>svg{color:var(--components-button-low-icon)}nv-iconbutton.emphasis-lower{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-iconbutton.emphasis-lower:hover{background:var(--components-button-lower-background-hover);color:var(--components-button-lower-text-hover)}nv-iconbutton.emphasis-lower:focus,nv-iconbutton.emphasis-lower:focus-within{outline:none}nv-iconbutton.emphasis-lower:focus-visible,nv-iconbutton.emphasis-lower:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-lower:disabled{background:var(--components-button-lower-background);color:var(--components-button-lower-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-lower nv-icon>svg{color:var(--components-button-lower-icon)}nv-iconbutton.loading [slot=leading-icon]{display:none}nv-iconbutton.shape-rounded{border-radius:var(--radius-rounded-full)}`;
|
|
5
6
|
|
|
@@ -100,7 +101,7 @@ const NvIconbutton = class {
|
|
|
100
101
|
/****************************************************************************/
|
|
101
102
|
//#region EVENTS
|
|
102
103
|
handleKeyDown(event) {
|
|
103
|
-
if (event.key
|
|
104
|
+
if (isToggleKey(event.key)) {
|
|
104
105
|
event.preventDefault();
|
|
105
106
|
this.el.click();
|
|
106
107
|
}
|
|
@@ -123,7 +124,7 @@ const NvIconbutton = class {
|
|
|
123
124
|
/****************************************************************************/
|
|
124
125
|
//#region RENDER
|
|
125
126
|
render() {
|
|
126
|
-
return (h(Host, { key: '
|
|
127
|
+
return (h(Host, { key: 'e657e688f0e40a738a7a83b5130f4ec0a51339e7', role: "button", type: this.type, tabindex: this.disableTabindex ? -1 : 0, disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && h("nv-loader", { key: 'd33fa5969fec5936f0de4ef9580387d1ee03929d', size: this.size }), !this.loading && h("nv-icon", { key: 'ff1518a8f1f49acf65c2c971fd1b1be45e581cba', name: this.name, size: this.size }), h("slot", { key: '4c694ffe57e30b997026922ee077e1cce96cef6c' })));
|
|
127
128
|
}
|
|
128
129
|
static get formAssociated() { return true; }
|
|
129
130
|
get el() { return getElement(this); }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvMenuCss = () => `nv-menuitem{display:flex;align-items:center;max-width:300px;width:100vw;font-size:var(--menu-contextual-item-font-size);font-weight:var(--menu-contextual-item-font-weight);color:var(--components-menu-contextual-item-content);border-radius:var(--menu-contextual-item-radius);gap:var(--menu-contextual-item-gap-x);padding:var(--menu-contextual-item-padding-y) var(--menu-contextual-item-padding-x);transition:background-color 150ms ease-out;cursor:pointer}nv-menuitem:hover,nv-menuitem:focus,nv-menuitem:focus-within{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menuitem *{pointer-events:none}nv-menuitem kbd{color:var(--components-menu-contextual-item-shortcut)}nv-menuitem [data-scope=text]{margin-right:auto}nv-menuitem[disabled]:not([disabled=false]){cursor:unset;background-color:unset;color:var(--components-menu-contextual-item-content-disabled)}nv-menu{display:inline-block;position:relative}nv-menu:has([fluid]:not([fluid=false])){display:block}nv-menu nv-popover{display:unset}nv-menu nv-popover [data-scope=popover]{background-color:transparent !important;padding:0 !important}nv-menu [slot=content]{padding:var(--menu-contextual-padding-y) var(--menu-contextual-padding-x);border-radius:var(--menu-contextual-radius);gap:var(--menu-contextual-gap-y);background-color:var(--components-menu-contextual-background);border-color:var(--components-menu-contextual-border);display:flex;flex-direction:column}nv-menu nv-menu[open]:not([open=false])>nv-menuitem{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menu hr{display:block;margin:var(--menu-contextual-divider-padding-top) var(--menu-contextual-divider-padding-x) var(--menu-contextual-divider-padding-bottom) var(--menu-contextual-divider-padding-x)}`;
|
|
4
4
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
|
+
import { i as isToggleKey } from './accessibility.utils-C4Cy9iy8.js';
|
|
2
3
|
|
|
3
4
|
const nvMenuitemCss = () => `nv-menuitem{display:flex;align-items:center;max-width:300px;width:100vw;font-size:var(--menu-contextual-item-font-size);font-weight:var(--menu-contextual-item-font-weight);color:var(--components-menu-contextual-item-content);border-radius:var(--menu-contextual-item-radius);gap:var(--menu-contextual-item-gap-x);padding:var(--menu-contextual-item-padding-y) var(--menu-contextual-item-padding-x);transition:background-color 150ms ease-out;cursor:pointer}nv-menuitem:hover,nv-menuitem:focus,nv-menuitem:focus-within{background-color:var(--components-menu-contextual-item-background-hover);color:var(--components-menu-contextual-item-content-hover)}nv-menuitem *{pointer-events:none}nv-menuitem kbd{color:var(--components-menu-contextual-item-shortcut)}nv-menuitem [data-scope=text]{margin-right:auto}nv-menuitem[disabled]:not([disabled=false]){cursor:unset;background-color:unset;color:var(--components-menu-contextual-item-content-disabled)}`;
|
|
4
5
|
|
|
@@ -31,7 +32,7 @@ const NvMenuitem = class {
|
|
|
31
32
|
this.handleMenuItemSelect(event);
|
|
32
33
|
}
|
|
33
34
|
handleKeyDown(event) {
|
|
34
|
-
if (event.key
|
|
35
|
+
if (isToggleKey(event.key)) {
|
|
35
36
|
const activeElement = document.activeElement;
|
|
36
37
|
if (activeElement &&
|
|
37
38
|
activeElement.tagName === 'NV-MENUITEM' &&
|
|
@@ -45,7 +46,7 @@ const NvMenuitem = class {
|
|
|
45
46
|
/****************************************************************************/
|
|
46
47
|
//#region RENDER
|
|
47
48
|
render() {
|
|
48
|
-
return (h(Host, { key: '
|
|
49
|
+
return (h(Host, { key: '0292e33304b74d540b2533570b1f314ca8ea100b', role: "menuitem", tabindex: this.disabled ? '-1' : '0' }, this.icon && h("nv-icon", { key: '1a94fdbbc5349fb4dd1c8985026197be91b7adff', name: this.icon }), h("slot", { key: '8994033b5371d1db6a55980c5b0a1e7455c573b7' }), this.label && h("span", { key: '9163ba9a67f050447ebed2a4743f6c8f3102e37b', "data-scope": "text" }, this.label), this.shortcut && !this.hasSubmenu && h("kbd", { key: '8adf1ba5789434c37bcbc53328b6b1dc9b82eeb5' }, this.shortcut), this.hasSubmenu && h("nv-icon", { key: 'b05b3c1245752d2bbd161db03b361a5e5406602a', name: "chevron-right" })));
|
|
49
50
|
}
|
|
50
51
|
get el() { return getElement(this); }
|
|
51
52
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvNotificationBulletCss = () => `nv-notification-bullet{display:inline-flex;align-items:center;justify-content:center;min-width:var(--sidebar-notification-bullet-size);max-width:var(--sidebar-notification-bullet-size);height:var(--sidebar-notification-bullet-size);padding:0 var(--spacing-1);border-radius:var(--radius-rounded-full);font-size:var(--sidebar-notification-bullet-font-size);font-weight:var(--sidebar-notification-bullet-font-weight);white-space:nowrap;flex-shrink:0;position:relative;}nv-notification-bullet.nv-notification-bullet-brand .nv-notification-bullet{display:inline-flex;align-items:center;justify-content:center;min-width:var(--sidebar-notification-bullet-size);max-width:var(--sidebar-notification-bullet-size);height:var(--sidebar-notification-bullet-size);padding:0 var(--spacing-1);border-radius:var(--radius-rounded-full);font-size:var(--sidebar-notification-bullet-font-size);font-weight:var(--sidebar-notification-bullet-font-weight);white-space:nowrap;flex-shrink:0}nv-notification-bullet.nv-notification-bullet-brand .nv-notification-bullet.nv-notification-bullet-high{background-color:var(--color-brand-500);color:var(--color-feedback-neutral-high-contrast-title)}nv-notification-bullet.nv-notification-bullet-brand .nv-notification-bullet.nv-notification-bullet-low{background-color:var(--color-brand-50);color:var(--color-brand-600);border:1px solid var(--color-brand-600)}nv-notification-bullet{}nv-notification-bullet.nv-notification-bullet-neutral{display:inline-flex;align-items:center;justify-content:center;min-width:var(--sidebar-notification-bullet-size);max-width:var(--sidebar-notification-bullet-size);height:var(--sidebar-notification-bullet-size);padding:0 var(--spacing-1);border-radius:var(--radius-rounded-full);font-size:var(--sidebar-notification-bullet-font-size);font-weight:var(--sidebar-notification-bullet-font-weight);white-space:nowrap;flex-shrink:0}nv-notification-bullet.nv-notification-bullet-neutral .nv-notification-bullet.nv-notification-bullet-high{background-color:var(--color-feedback-neutral-high-contrast-background);color:var(--color-feedback-neutral-high-contrast-title)}nv-notification-bullet.nv-notification-bullet-neutral .nv-notification-bullet.nv-notification-bullet-low{background-color:var(--color-feedback-neutral-low-background);color:var(--color-feedback-neutral-low-text);border-radius:var(--radius-rounded-full)}nv-notification-bullet{}nv-notification-bullet.nv-notification-bullet-with-cross-border::before{content:"";position:absolute;top:55%;left:45%;transform:translate(-50%, -50%);width:calc(var(--sidebar-notification-bullet-size) + 1.5px);height:calc(var(--sidebar-notification-bullet-size) * 1.5);border-radius:var(--radius-rounded-full);background-color:var(--nv-component-background, var(--nv-sidebarnavitem-background, var(--color-interaction-container-neutral-background)));z-index:-1;pointer-events:none}nv-notification-bullet{}nv-sidebar[collapsed] nv-notification-bullet.nv-notification-bullet-with-cross-border::before{width:calc(var(--sidebar-notification-bullet-size-reduced) * 1.5);height:calc(var(--sidebar-notification-bullet-size-reduced) * 1.5)}nv-notification-bullet{}nv-notification-bullet .nv-notification-bullet.nv-notification-bullet-reduced,nv-sidebar[collapsed] nv-notification-bullet .nv-notification-bullet{width:var(--sidebar-notification-bullet-size-reduced);height:var(--sidebar-notification-bullet-size-reduced);min-width:var(--sidebar-notification-bullet-size-reduced);max-width:var(--sidebar-notification-bullet-size-reduced);min-height:var(--sidebar-notification-bullet-size-reduced);max-height:var(--sidebar-notification-bullet-size-reduced);padding:0;font-size:0}`;
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
2
|
import { F as FeedbackColors, N as NotificationPosition } from './constants-gOKBmbgZ.js';
|
|
3
3
|
import { u as useCollapse } from './collapse.animation-DZDm0vSK.js';
|
|
4
4
|
import { u as useFade } from './fade.animation-DcRL9lcm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvNotificationcontainerCss = () => `nv-notificationcontainer{position:fixed;display:flex;flex-direction:column;padding:var(--spacing-2);padding-top:0;z-index:9999;pointer-events:none;width:100%;max-width:512px}nv-notificationcontainer.position-top-right{top:0;right:0}nv-notificationcontainer.position-top-right nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-top-left{top:0;left:0}nv-notificationcontainer.position-top-left nv-notification{margin-bottom:var(--spacing-2)}nv-notificationcontainer.position-top-center{top:0;left:50%;transform:translateX(-50%)}nv-notificationcontainer.position-top-center nv-notification{margin-bottom:var(--spacing-2)}nv-notificationcontainer.position-bottom-right{bottom:0;right:0;flex-direction:column-reverse}nv-notificationcontainer.position-bottom-right nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-bottom-left{bottom:0;left:0;flex-direction:column-reverse}nv-notificationcontainer.position-bottom-left nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer.position-bottom-center{bottom:0;left:50%;transform:translateX(-50%);flex-direction:column-reverse}nv-notificationcontainer.position-bottom-center nv-notification{margin-top:var(--spacing-2)}nv-notificationcontainer>*{pointer-events:auto}`;
|
|
4
4
|
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
import { r as registerInstance, a as createEvent, f as forceUpdate, i as Build, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
|
+
import { g as getRoleAwareNextSelectedState, n as normalizeToggleAriaRole, i as isToggleKey, a as getAriaStateAttributes } from './accessibility.utils-C4Cy9iy8.js';
|
|
3
|
+
|
|
4
|
+
const nvPillCss = () => `.storybook-force-hover:not([disabled]):hover,.storybook-force-hover:not([disabled]){background:var(--color-interaction-container-neutral-background-hover);border-color:var(--color-interaction-container-neutral-border-hover);color:var(--color-interaction-container-neutral-text-hover)}.storybook-force-focus:not([disabled]):focus-visible:focus,.storybook-force-focus:not([disabled]):focus-visible:focus-within,.storybook-force-focus:not([disabled]):focus,.storybook-force-focus:not([disabled]):focus-within{outline:none}.storybook-force-focus:not([disabled]):focus-visible:focus-visible,.storybook-force-focus:not([disabled]):focus-visible:has(:focus-visible),.storybook-force-focus:not([disabled]):focus-visible,.storybook-force-focus:not([disabled]):has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-pill{display:inline-flex;align-items:center;justify-content:center;gap:var(--pill-gap-x);height:var(--pill-height);padding:var(--pill-padding-y) var(--pill-padding-x);border-radius:var(--pill-border-radius);border:var(--pill-stroke) solid var(--color-interaction-container-neutral-border);background:var(--color-interaction-container-neutral-background);color:var(--color-interaction-container-neutral-text);font-family:var(--font-family-default), var(--font-family-fallback), sans-serif;font-size:var(--font-size-xs);line-height:var(--line-height-xs);font-weight:var(--font-weight-medium-emphasis);user-select:none;cursor:pointer;transition:background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out}nv-pill:focus,nv-pill:focus-within{outline:none}nv-pill:focus-visible,nv-pill:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-pill:not([disabled]:not([disabled=false])):hover{background:var(--color-interaction-container-neutral-background-hover);border-color:var(--color-interaction-container-neutral-border-hover);color:var(--color-interaction-container-neutral-text-hover)}nv-pill:not([disabled]:not([disabled=false])):active{background:var(--color-interaction-container-neutral-background-active);border-color:var(--color-interaction-container-neutral-border-active);color:var(--color-interaction-container-neutral-text-active)}nv-pill[selected]:not([selected=false]){background:var(--color-interaction-container-neutral-background-active);border-color:var(--color-interaction-container-neutral-border-active);color:var(--color-interaction-container-neutral-text-active)}nv-pill[selected]:not([selected=false]) .trailing-icon{color:var(--color-interaction-container-neutral-icon-active)}nv-pill[selected]:not([selected=false]):not([disabled]:not([disabled=false])):hover{background:var(--color-interaction-container-neutral-background-active);border-color:var(--color-interaction-container-neutral-border-active);color:var(--color-interaction-container-neutral-text-active)}nv-pill[disabled]:not([disabled=false]){opacity:0.5;cursor:not-allowed}nv-pill .leading-icon,nv-pill .trailing-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--color-interaction-container-neutral-icon)}nv-pill:not([leading-icon]):not(:has([slot=leading-icon])) .leading-icon,nv-pill[leading-icon=""]:not(:has([slot=leading-icon])) .leading-icon{display:none}nv-pill .label{white-space:nowrap}nv-pill nv-icon>svg{color:currentColor}`;
|
|
5
|
+
|
|
6
|
+
const NvPill = class {
|
|
7
|
+
constructor(hostRef) {
|
|
8
|
+
registerInstance(this, hostRef);
|
|
9
|
+
this.toggled = createEvent(this, "toggled", 3);
|
|
10
|
+
this.hasWarnedMissingLabel = false;
|
|
11
|
+
/**
|
|
12
|
+
* Whether the pill is currently selected.
|
|
13
|
+
*/
|
|
14
|
+
this.selected = false;
|
|
15
|
+
/**
|
|
16
|
+
* Prevents all interaction with the pill.
|
|
17
|
+
*/
|
|
18
|
+
this.disabled = false;
|
|
19
|
+
/**
|
|
20
|
+
* ARIA role for accessibility contexts.
|
|
21
|
+
* Defaults to button and can be overridden by group wrappers.
|
|
22
|
+
*/
|
|
23
|
+
this.pillAriaRole = 'button';
|
|
24
|
+
this.toggleSelected = () => {
|
|
25
|
+
if (!this.hasInteractiveLabel)
|
|
26
|
+
return;
|
|
27
|
+
const nextSelected = getRoleAwareNextSelectedState(this.normalizedRole, this.selected, this.disabled);
|
|
28
|
+
if (nextSelected === this.selected)
|
|
29
|
+
return;
|
|
30
|
+
this.selected = nextSelected;
|
|
31
|
+
if (this.isRadioInRadioGroup && this.selected) {
|
|
32
|
+
const parent = this.el.parentElement;
|
|
33
|
+
if (parent) {
|
|
34
|
+
const radioPills = Array.from(parent.querySelectorAll('nv-pill[pill-aria-role="radio"]'));
|
|
35
|
+
radioPills.forEach(pill => {
|
|
36
|
+
if (pill !== this.el) {
|
|
37
|
+
pill.selected = false;
|
|
38
|
+
pill.removeAttribute('selected');
|
|
39
|
+
}
|
|
40
|
+
const nextTabIndex = pill === this.el ? 0 : -1;
|
|
41
|
+
this.setPillTabIndex(pill, nextTabIndex);
|
|
42
|
+
if (pill !== this.el) {
|
|
43
|
+
forceUpdate(pill);
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// Watchers can fire before reflected attributes settle; pin the selected
|
|
48
|
+
// radio for the batched sync to keep radiogroup tabindex deterministic.
|
|
49
|
+
this.queueRadioGroupTabIndexSync(this.el);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
this.syncRadioGroupTabIndexes(this.selected ? this.el : undefined);
|
|
53
|
+
}
|
|
54
|
+
this.toggled.emit({
|
|
55
|
+
selected: this.selected,
|
|
56
|
+
active: this.selected,
|
|
57
|
+
value: this.value,
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
//#endregion PROPERTIES
|
|
62
|
+
/****************************************************************************/
|
|
63
|
+
//#region METHODS
|
|
64
|
+
get normalizedRole() {
|
|
65
|
+
return normalizeToggleAriaRole(String(this.pillAriaRole));
|
|
66
|
+
}
|
|
67
|
+
get resolvedLabel() {
|
|
68
|
+
return (this.label ?? '').trim();
|
|
69
|
+
}
|
|
70
|
+
get hasInteractiveLabel() {
|
|
71
|
+
return this.resolvedLabel.length > 0;
|
|
72
|
+
}
|
|
73
|
+
get resolvedTabIndex() {
|
|
74
|
+
if (this.disabled || !this.hasInteractiveLabel)
|
|
75
|
+
return -1;
|
|
76
|
+
if (this.normalizedRole !== 'radio')
|
|
77
|
+
return 0;
|
|
78
|
+
return NvPill.radioGroupTabIndexCache.get(this.el) ?? 0;
|
|
79
|
+
}
|
|
80
|
+
get isRadioInRadioGroup() {
|
|
81
|
+
return (this.normalizedRole === 'radio' &&
|
|
82
|
+
this.el.parentElement?.getAttribute('role') === 'radiogroup');
|
|
83
|
+
}
|
|
84
|
+
isInteractiveRadioPill(pill) {
|
|
85
|
+
const resolvedLabel = (pill.getAttribute('label') ?? pill.label ?? '').trim().length > 0;
|
|
86
|
+
return !pill.hasAttribute('disabled') && resolvedLabel;
|
|
87
|
+
}
|
|
88
|
+
setPillTabIndex(pill, value) {
|
|
89
|
+
pill.tabIndex = value;
|
|
90
|
+
NvPill.radioGroupTabIndexCache.set(pill, value);
|
|
91
|
+
}
|
|
92
|
+
syncRadioGroupTabIndexes(preferredSelectedRadio) {
|
|
93
|
+
if (!this.isRadioInRadioGroup)
|
|
94
|
+
return;
|
|
95
|
+
const parent = this.el.parentElement;
|
|
96
|
+
if (!parent)
|
|
97
|
+
return;
|
|
98
|
+
const radioPills = Array.from(parent.querySelectorAll('nv-pill[pill-aria-role="radio"]'));
|
|
99
|
+
const selectedRadio = preferredSelectedRadio &&
|
|
100
|
+
this.isInteractiveRadioPill(preferredSelectedRadio)
|
|
101
|
+
? preferredSelectedRadio
|
|
102
|
+
: radioPills.find(pill => this.isInteractiveRadioPill(pill) &&
|
|
103
|
+
pill.hasAttribute('selected'));
|
|
104
|
+
const firstInteractiveRadio = radioPills.find(pill => this.isInteractiveRadioPill(pill));
|
|
105
|
+
radioPills.forEach(pill => {
|
|
106
|
+
if (!this.isInteractiveRadioPill(pill)) {
|
|
107
|
+
this.setPillTabIndex(pill, -1);
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if (selectedRadio) {
|
|
111
|
+
const nextTabIndex = pill === selectedRadio ? 0 : -1;
|
|
112
|
+
this.setPillTabIndex(pill, nextTabIndex);
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const nextTabIndex = pill === firstInteractiveRadio ? 0 : -1;
|
|
116
|
+
this.setPillTabIndex(pill, nextTabIndex);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
queueRadioGroupTabIndexSync(preferredSelectedRadio) {
|
|
120
|
+
if (!this.isRadioInRadioGroup)
|
|
121
|
+
return;
|
|
122
|
+
const parent = this.el.parentElement;
|
|
123
|
+
if (!parent)
|
|
124
|
+
return;
|
|
125
|
+
const pending = NvPill.pendingRadioGroupSyncs.get(parent);
|
|
126
|
+
if (pending) {
|
|
127
|
+
if (preferredSelectedRadio &&
|
|
128
|
+
this.isInteractiveRadioPill(preferredSelectedRadio)) {
|
|
129
|
+
pending[1] = preferredSelectedRadio;
|
|
130
|
+
}
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const nextPending = [this];
|
|
134
|
+
if (preferredSelectedRadio &&
|
|
135
|
+
this.isInteractiveRadioPill(preferredSelectedRadio)) {
|
|
136
|
+
nextPending[1] = preferredSelectedRadio;
|
|
137
|
+
}
|
|
138
|
+
NvPill.pendingRadioGroupSyncs.set(parent, nextPending);
|
|
139
|
+
queueMicrotask(() => {
|
|
140
|
+
const latestPending = NvPill.pendingRadioGroupSyncs.get(parent);
|
|
141
|
+
NvPill.pendingRadioGroupSyncs.delete(parent);
|
|
142
|
+
if (!latestPending)
|
|
143
|
+
return;
|
|
144
|
+
const [runner, latestPreferredSelectedRadio] = latestPending;
|
|
145
|
+
if (!runner.el.isConnected)
|
|
146
|
+
return;
|
|
147
|
+
runner.syncRadioGroupTabIndexes(latestPreferredSelectedRadio);
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
handleRadioGroupArrowKey(event) {
|
|
151
|
+
if (!this.isRadioInRadioGroup)
|
|
152
|
+
return false;
|
|
153
|
+
const isNextKey = event.key === 'ArrowRight' ||
|
|
154
|
+
event.key === 'ArrowDown' ||
|
|
155
|
+
event.key === 'Right' ||
|
|
156
|
+
event.key === 'Down';
|
|
157
|
+
const isPreviousKey = event.key === 'ArrowLeft' ||
|
|
158
|
+
event.key === 'ArrowUp' ||
|
|
159
|
+
event.key === 'Left' ||
|
|
160
|
+
event.key === 'Up';
|
|
161
|
+
if (!isNextKey && !isPreviousKey) {
|
|
162
|
+
return false;
|
|
163
|
+
}
|
|
164
|
+
const parent = this.el.parentElement;
|
|
165
|
+
if (!parent) {
|
|
166
|
+
return false;
|
|
167
|
+
}
|
|
168
|
+
const radioPills = Array.from(parent.querySelectorAll('nv-pill[pill-aria-role="radio"]')).filter(pill => this.isInteractiveRadioPill(pill));
|
|
169
|
+
if (radioPills.length === 0) {
|
|
170
|
+
return false;
|
|
171
|
+
}
|
|
172
|
+
event.preventDefault();
|
|
173
|
+
const currentIndex = radioPills.indexOf(this.el);
|
|
174
|
+
if (currentIndex === -1) {
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
const delta = isNextKey ? 1 : -1;
|
|
178
|
+
const nextIndex = (currentIndex + delta + radioPills.length) % radioPills.length;
|
|
179
|
+
const nextRadio = radioPills[nextIndex];
|
|
180
|
+
if (nextRadio === this.el) {
|
|
181
|
+
return true;
|
|
182
|
+
}
|
|
183
|
+
const previousSelectedRadio = radioPills.find(pill => pill.selected);
|
|
184
|
+
radioPills.forEach(pill => {
|
|
185
|
+
const isTarget = pill === nextRadio;
|
|
186
|
+
if (pill.selected === isTarget)
|
|
187
|
+
return;
|
|
188
|
+
pill.selected = isTarget;
|
|
189
|
+
if (!isTarget) {
|
|
190
|
+
pill.removeAttribute('selected');
|
|
191
|
+
}
|
|
192
|
+
if (pill !== nextRadio) {
|
|
193
|
+
forceUpdate(pill);
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
this.queueRadioGroupTabIndexSync(nextRadio);
|
|
197
|
+
nextRadio.focus();
|
|
198
|
+
if (previousSelectedRadio !== nextRadio) {
|
|
199
|
+
nextRadio.dispatchEvent(new CustomEvent('toggled', {
|
|
200
|
+
bubbles: false,
|
|
201
|
+
detail: {
|
|
202
|
+
selected: true,
|
|
203
|
+
active: true,
|
|
204
|
+
value: nextRadio.value,
|
|
205
|
+
},
|
|
206
|
+
}));
|
|
207
|
+
}
|
|
208
|
+
return true;
|
|
209
|
+
}
|
|
210
|
+
//#endregion METHODS
|
|
211
|
+
/****************************************************************************/
|
|
212
|
+
//#region LISTENERS
|
|
213
|
+
componentDidLoad() {
|
|
214
|
+
this.queueRadioGroupTabIndexSync();
|
|
215
|
+
}
|
|
216
|
+
handleTabIndexAffectingChanges() {
|
|
217
|
+
if (!this.isRadioInRadioGroup) {
|
|
218
|
+
NvPill.radioGroupTabIndexCache.delete(this.el);
|
|
219
|
+
}
|
|
220
|
+
this.queueRadioGroupTabIndexSync();
|
|
221
|
+
}
|
|
222
|
+
handleKeyDown(event) {
|
|
223
|
+
if (!this.hasInteractiveLabel)
|
|
224
|
+
return;
|
|
225
|
+
if (this.disabled)
|
|
226
|
+
return;
|
|
227
|
+
if (event.repeat)
|
|
228
|
+
return;
|
|
229
|
+
if (this.handleRadioGroupArrowKey(event)) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
if (isToggleKey(event.key)) {
|
|
233
|
+
event.preventDefault();
|
|
234
|
+
this.el.click();
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
handleHostClickCapture(event) {
|
|
238
|
+
if (!this.hasInteractiveLabel) {
|
|
239
|
+
event.preventDefault();
|
|
240
|
+
event.stopImmediatePropagation();
|
|
241
|
+
event.stopPropagation();
|
|
242
|
+
return;
|
|
243
|
+
}
|
|
244
|
+
if (!this.disabled)
|
|
245
|
+
return;
|
|
246
|
+
event.preventDefault();
|
|
247
|
+
event.stopImmediatePropagation();
|
|
248
|
+
event.stopPropagation();
|
|
249
|
+
}
|
|
250
|
+
//#endregion EVENTS
|
|
251
|
+
/****************************************************************************/
|
|
252
|
+
//#region RENDER
|
|
253
|
+
render() {
|
|
254
|
+
if (Build.isDev &&
|
|
255
|
+
!this.hasInteractiveLabel &&
|
|
256
|
+
!this.hasWarnedMissingLabel) {
|
|
257
|
+
console.warn('[nv-pill] Missing required label prop. Unlabeled pills are rendered as non-interactive for accessibility.');
|
|
258
|
+
this.hasWarnedMissingLabel = true;
|
|
259
|
+
}
|
|
260
|
+
const ariaState = getAriaStateAttributes(this.normalizedRole, this.selected);
|
|
261
|
+
return (h(Host, { key: 'a117cead9ef6ad60f00fb19da3fa6d513a707092', role: this.hasInteractiveLabel ? this.normalizedRole : undefined, tabindex: this.resolvedTabIndex, "aria-pressed": this.hasInteractiveLabel ? ariaState.ariaPressed : undefined, "aria-checked": this.hasInteractiveLabel ? ariaState.ariaChecked : undefined, "aria-disabled": this.hasInteractiveLabel && this.disabled ? 'true' : undefined, "aria-label": this.hasInteractiveLabel ? this.resolvedLabel : undefined, "aria-hidden": this.hasInteractiveLabel ? undefined : 'true', onClick: this.hasInteractiveLabel ? this.toggleSelected : undefined }, h("span", { key: '1319aed0d2e9191624f41d8bc9c3e942ee2aa151', class: "leading-icon", "aria-hidden": "true" }, this.leadingIcon && (h("nv-icon", { key: '37b314abc0b385ba86d482312eb7e45b281f2705', name: this.leadingIcon, size: "xs" })), h("slot", { key: 'c61fb778c205c2dc7e87482c4650cb776ae46025', name: "leading-icon" })), h("span", { key: '4908da1bdada3803d029ca0757f9c064ae4d39ff', class: "label" }, this.resolvedLabel), this.selected && (h("span", { key: '3dcfab23e115665d403c1ba15ac6c74cc24e42ed', class: "trailing-icon", "aria-hidden": "true" }, h("nv-icon", { key: '2447fe8fc1b24acf95fa5b35bd167010173df92e', name: "check", size: "xs" })))));
|
|
262
|
+
}
|
|
263
|
+
get el() { return getElement(this); }
|
|
264
|
+
static get watchers() { return {
|
|
265
|
+
"selected": [{
|
|
266
|
+
"handleTabIndexAffectingChanges": 0
|
|
267
|
+
}],
|
|
268
|
+
"disabled": [{
|
|
269
|
+
"handleTabIndexAffectingChanges": 0
|
|
270
|
+
}],
|
|
271
|
+
"label": [{
|
|
272
|
+
"handleTabIndexAffectingChanges": 0
|
|
273
|
+
}],
|
|
274
|
+
"pillAriaRole": [{
|
|
275
|
+
"handleTabIndexAffectingChanges": 0
|
|
276
|
+
}]
|
|
277
|
+
}; }
|
|
278
|
+
};
|
|
279
|
+
NvPill.pendingRadioGroupSyncs = new WeakMap();
|
|
280
|
+
NvPill.radioGroupTabIndexCache = new WeakMap();
|
|
281
|
+
NvPill.style = nvPillCss();
|
|
282
|
+
|
|
283
|
+
export { NvPill as nv_pill };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as StencilCore, r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { S as StencilCore, r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
2
|
import { u as useFade } from './fade.animation-DcRL9lcm.js';
|
|
3
3
|
import { u as useGrow } from './grow.animation-D7ep_aVl.js';
|
|
4
4
|
import './style-value-types.es-xlgmw4x8.js';
|
|
@@ -1957,7 +1957,7 @@ const NvPopover = class {
|
|
|
1957
1957
|
/****************************************************************************/
|
|
1958
1958
|
//#region RENDER
|
|
1959
1959
|
render() {
|
|
1960
|
-
return (h(Host, { key: '
|
|
1960
|
+
return (h(Host, { key: '1a604043f59c8aa04237b6d03838125079ac5c49' }, h("slot", { key: 'c22461b3d5050f7b502635221cbe17c03ef425a9', name: "trigger" }), h("div", { key: '58a438db8308be12d854afe3deda462d4ae528fb', "data-scope": "popover", "data-strategy": this.strategy, hidden: true, ref: el => (this.popoverElement = el) }, this.hasArrow && (h("div", { key: 'af18bf4b8700484ca989a8d45da8295e8d11ea2e', "data-scope": "arrow", ref: el => (this.arrowElement = el) })), h("slot", { key: 'f3308bfc01d5a4f954a1f0b822cf378cd874f9bd', name: "content" }))));
|
|
1961
1961
|
}
|
|
1962
1962
|
get el() { return getElement(this); }
|
|
1963
1963
|
static get watchers() { return {
|
package/dist/esm/nv-row.entry.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvRowCss = () => `nv-row{display:flex;flex-wrap:wrap;margin-right:calc(var(--spacing-4) * -1);margin-left:calc(var(--spacing-4) * -1);row-gap:var(--spacing-4)}`;
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const NvRow = class {
|
|
|
9
9
|
/****************************************************************************/
|
|
10
10
|
//#region RENDER
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'f19fb4030becd15fb3cc8f6d3a7e3a04d8a172e4' }, h("slot", { key: 'e1f3ae7b01b0a66874ea6af627a503bed92e7f82' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
NvRow.style = nvRowCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, a as createEvent, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebarCss = () => `nv-sidebarnavitem a,nv-sidebarnavitem a:link,nv-sidebarnavitem a:visited,nv-sidebarnavitem a:hover,nv-sidebarnavitem a:active,nv-sidebarnavsubitem a,nv-sidebarnavsubitem a:link,nv-sidebarnavsubitem a:visited,nv-sidebarnavsubitem a:hover,nv-sidebarnavsubitem a:active{color:inherit !important;text-decoration:none !important}nv-sidebar{display:flex;flex-direction:column;position:relative;height:100vh;background-color:var(--components-sidebar-background);border-right:var(--sidebar-divider-size) solid var(--components-sidebar-border);transition:width 0.3s ease;width:var(--sidebar-width)}nv-sidebar[collapsed]{width:var(--sidebar-width-collapsed)}nv-sidebar[collapsed] [data-hide-on-collapsed]{display:none !important}nv-sidebar[collapsed] .nv-sidebar-container{padding:var(--sidebar-padding-y) var(--sidebar-padding-x-collapsed)}nv-sidebar[resizing]{transition:none}nv-sidebar .nv-sidebar-container{display:flex;flex-direction:column;flex:1;overflow:hidden;padding:var(--sidebar-padding-y) var(--sidebar-padding-x);gap:var(--sidebar-gap-y)}nv-sidebar .nv-sidebar-toggle{position:absolute;top:var(--sidebar-collapsible-button-position-top);right:calc(-1 * var(--sidebar-collapsible-button-position-right));display:flex;align-items:center;justify-content:center;padding:var(--sidebar-collapsible-button-padding);background-color:var(--components-sidebar-background);border:1px solid var(--color-content-low-border);border-radius:var(--radius-rounded-full);cursor:pointer;transition:transform 0.2s ease;z-index:10}nv-sidebar .nv-sidebar-toggle:hover{background-color:var(--color-interaction-container-neutral-background-hover)}nv-sidebar .nv-sidebar-toggle:focus,nv-sidebar .nv-sidebar-toggle:focus-within{outline:none}nv-sidebar .nv-sidebar-toggle:focus-visible,nv-sidebar .nv-sidebar-toggle:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-sidebar .nv-sidebar-toggle nv-icon{width:var(--sidebar-collapsible-button-icon-size);height:var(--sidebar-collapsible-button-icon-size);color:var(--color-interaction-container-neutral-icon)}nv-sidebar .nv-sidebar-toggle nv-icon:hover{color:var(--color-interaction-container-neutral-icon-hover)}nv-sidebar .nv-sidebar-resize-handle{position:absolute;top:0;right:calc(-1 * var(--sidebar-divider-size));width:4px;height:100%;cursor:col-resize;background-color:transparent;transition:background-color 0.15s ease;z-index:9;user-select:none;touch-action:none}nv-sidebar .nv-sidebar-resize-handle:hover,nv-sidebar .nv-sidebar-resize-handle:focus-visible{background-color:var(--color-interaction-container-branded-high-background)}nv-sidebar .nv-sidebar-resize-handle:focus,nv-sidebar .nv-sidebar-resize-handle:focus-within{outline:none}nv-sidebar .nv-sidebar-resize-handle:focus-visible,nv-sidebar .nv-sidebar-resize-handle:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}`;
|
|
4
4
|
|
|
@@ -319,9 +319,9 @@ const NvSidebar = class {
|
|
|
319
319
|
const isCollapsed = this.type === 'collapsible' && !this.open;
|
|
320
320
|
const showResizeHandle = this.resizable && !isCollapsed;
|
|
321
321
|
const [ariaValueMin, ariaValueMax] = this.getBounds();
|
|
322
|
-
return (h(Host, { key: '
|
|
322
|
+
return (h(Host, { key: 'f584d8b2007d46a966b1d5ea00ccc20ffdb7a566', role: "navigation", collapsed: isCollapsed ? true : undefined, resizing: this.resizing ? true : undefined, "notification-intention": this.notificationIntention, "notification-emphasis": this.notificationEmphasis, "aria-expanded": this.type === 'collapsible' ? String(this.open) : undefined }, h("div", { key: 'b4264b03e34c809616d492519146d4be4c6e9199', class: "nv-sidebar-container" }, h("slot", { key: 'b272545553a32d154b1d994057957ad6ef5f0413' })), this.type === 'collapsible' && (h("button", { key: '0c3ee094010027fc2036974116087c64dc8cf6c5', class: "nv-sidebar-toggle", onClick: this.handleToggle, "aria-label": this.open ? 'Collapse sidebar' : 'Expand sidebar' }, h("nv-icon", { key: '3bfcf6301a5376ff9a144912af82e1b83ed3b617', name: this.open
|
|
323
323
|
? 'layout-sidebar-left-collapse'
|
|
324
|
-
: 'layout-sidebar-right-collapse', size: "sm" }))), showResizeHandle && (h("div", { key: '
|
|
324
|
+
: 'layout-sidebar-right-collapse', size: "sm" }))), showResizeHandle && (h("div", { key: '12a6e9a907edd25b2b1adf52c831141905f3369b', class: "nv-sidebar-resize-handle", role: "separator", "aria-orientation": "vertical", "aria-label": "Resize sidebar", "aria-valuenow": this.getAriaValueNow(), "aria-valuemin": ariaValueMin, "aria-valuemax": ariaValueMax, tabIndex: 0, onPointerDown: this.handleResizeStart, onPointerMove: this.handleResizeMove, onPointerUp: this.handleResizeEnd, onPointerCancel: this.handleResizeCancel, onKeyDown: this.handleResizeKeyDown }))));
|
|
325
325
|
}
|
|
326
326
|
get el() { return getElement(this); }
|
|
327
327
|
static get watchers() { return {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebarcontentCss = () => `nv-sidebarcontent{display:flex;flex-direction:column;flex:1;overflow-y:auto;overflow-x:hidden}`;
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const NvSidebarcontent = class {
|
|
|
9
9
|
/****************************************************************************/
|
|
10
10
|
//#region RENDER
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '5e9ea9dabd866c1eeb822fb9ff0f240f9ed7baf6', role: "list" }, h("slot", { key: '9c196e39fccdce97a4abb97c78c4e4989a9d0a2f' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
NvSidebarcontent.style = nvSidebarcontentCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebardividerCss = () => `nv-sidebardivider{display:block;height:var(--sidebar-divider-size);background-color:var(--components-sidebar-divider)}`;
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const NvSidebardivider = class {
|
|
|
9
9
|
/****************************************************************************/
|
|
10
10
|
//#region RENDER
|
|
11
11
|
render() {
|
|
12
|
-
return h(Host, { key: '
|
|
12
|
+
return h(Host, { key: 'c72803cbb9850b35168a96482d9c23019de96424', role: "separator", "aria-orientation": "horizontal" });
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
NvSidebardivider.style = nvSidebardividerCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebarfooterCss = () => `nv-sidebarfooter{display:block;margin-top:auto}`;
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const NvSidebarfooter = class {
|
|
|
9
9
|
/****************************************************************************/
|
|
10
10
|
//#region RENDER
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '77a05cf3a036b84ac31632c96c988bdf9264909c' }, h("slot", { key: '9553a50d609f7f03fc5cca08833c9db2949371bf' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
NvSidebarfooter.style = nvSidebarfooterCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebargroupCss = () => `nv-sidebargroup{display:flex;flex-direction:column;gap:var(--sidebar-group-gap-y)}nv-sidebargroup .nv-sidebargroup-label{display:block;font-size:var(--font-size-sm);line-height:var(--line-height-sm);font-weight:var(--font-weight-medium-emphasis);color:var(--color-content-lower-text);letter-spacing:0;padding:var(--sidebar-title-padding-y) var(--sidebar-title-padding-x)}nv-sidebar[collapsed] nv-sidebargroup .nv-sidebargroup-label{display:none}`;
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ const NvSidebargroup = class {
|
|
|
10
10
|
/****************************************************************************/
|
|
11
11
|
//#region RENDER
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '94ff9b0f5a9b4c99a52f1259e3d7b0c6227b14a3', role: "group", "aria-label": this.label }, this.label && h("div", { key: '9a83d5a98fdd1d73b84b7a217c70ef279e69fa4a', class: "nv-sidebargroup-label" }, this.label), h("slot", { key: '4e987ce6b98fadced75ccc814b9ca9be80db0c8f' })));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
NvSidebargroup.style = nvSidebargroupCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebarheaderCss = () => `nv-sidebarheader{display:block}`;
|
|
4
4
|
|
|
@@ -9,7 +9,7 @@ const NvSidebarheader = class {
|
|
|
9
9
|
/****************************************************************************/
|
|
10
10
|
//#region RENDER
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: '4a2c70f79c4702dfd0bbbb5ab193382ad27d5522' }, h("slot", { key: '3c8c9ab5bc2837ed011d630b17c111eb7d091433' })));
|
|
13
13
|
}
|
|
14
14
|
};
|
|
15
15
|
NvSidebarheader.style = nvSidebarheaderCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebarlogoCss = () => `nv-sidebarlogo{display:block}nv-sidebarlogo .nv-sidebarlogo-container{display:flex;align-items:center;gap:var(--spacing-3)}nv-sidebarlogo .nv-sidebarlogo-full,nv-sidebarlogo .nv-sidebarlogo-collapsed{height:var(--spacing-8);width:auto;object-fit:contain}nv-sidebarlogo .nv-sidebarlogo-collapsed{display:none}nv-sidebarlogo .nv-sidebarlogo-title{font-size:var(--nv-sidebarlogo-font-size, var(--font-size-md));font-weight:var(--nv-sidebarlogo-font-weight, var(--font-weight-high-emphasis));font-family:var(--nv-sidebarlogo-font-family, inherit);color:var(--color-content-high-text);white-space:nowrap;overflow:hidden;transition:opacity 0.2s ease, max-width 0.3s ease, margin-left 0.3s ease;max-width:200px;opacity:1}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-full{display:none}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-collapsed{display:block}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-title{max-width:0;opacity:0;margin-left:0}nv-sidebar[collapsed] nv-sidebarlogo .nv-sidebarlogo-container{justify-content:center;align-items:center;gap:0;width:100%;min-height:var(--spacing-12);padding:0}`;
|
|
4
4
|
|
|
@@ -19,7 +19,7 @@ const NvSidebarlogo = class {
|
|
|
19
19
|
render() {
|
|
20
20
|
const logoSrc = this.logo || this.defaultLogo;
|
|
21
21
|
const collapsedLogoSrc = this.collapsedLogo || this.defaultCollapsedLogo;
|
|
22
|
-
return (h(Host, { key: '
|
|
22
|
+
return (h(Host, { key: 'ff93a7354c92b3fc7a9f35d89331537e0ed93209' }, h("div", { key: '7304b9c975b1499c4719da252d7c98826e81b559', class: "nv-sidebarlogo-container" }, h("img", { key: 'e1955ccfba4573bc834b0db681c1841daedef5c3', src: logoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-full" }), h("img", { key: 'b02a31dbb3a61509bae66043feab0987a5bc7517', src: collapsedLogoSrc, alt: this.label || 'Logo', class: "nv-sidebarlogo-collapsed" }), h("slot", { key: '9cf5c77752c1078ec4a2d75e186a626094f05d33', name: "label" }), this.label && h("span", { key: '0f738654eeea4dafe7ab171cd2c575245775fc6d', class: "nv-sidebarlogo-title" }, this.label))));
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
25
|
NvSidebarlogo.style = nvSidebarlogoCss();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, d as Host, e as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, d as Host, e as getElement } from './index-Dtg-LGcy.js';
|
|
2
2
|
|
|
3
3
|
const nvSidebarnavitemCss = () => `nv-sidebarnavitem{display:flex;flex-direction:column;gap:0}nv-sidebarnavitem .nv-sidebarnavitem-trigger{display:flex;align-items:center;gap:var(--sidebar-item-gap-x);padding:var(--sidebar-item-padding-y) var(--sidebar-item-padding-x);border-radius:var(--sidebar-item-radius);cursor:pointer;transition:all 0.15s ease;font-size:var(--sidebar-item-font-size);font-weight:var(--font-weight-medium-emphasis);color:var(--color-content-low-text);background:var(--components-sidebar-background);text-decoration:none;--nv-component-background:var(--components-sidebar-background);--nv-sidebarnavitem-background:var(--components-sidebar-background)}nv-sidebarnavitem .nv-sidebarnavitem-trigger:hover{background-color:var(--color-interaction-container-neutral-background-hover);color:var(--color-content-medium-text);--nv-component-background:var(--color-interaction-container-neutral-background-hover);--nv-sidebarnavitem-background:var(--color-interaction-container-neutral-background-hover)}nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus,nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus-within{outline:none}nv-sidebarnavitem .nv-sidebarnavitem-trigger:focus-visible,nv-sidebarnavitem .nv-sidebarnavitem-trigger:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-sidebarnavitem[active] .nv-sidebarnavitem-trigger{background-color:var(--color-interaction-container-neutral-background-active);color:var(--color-interaction-container-neutral-text-active);font-weight:var(--font-weight-medium-emphasis);--nv-component-background:var(--color-interaction-container-neutral-background-active);--nv-sidebarnavitem-background:var(--color-interaction-container-neutral-background-active)}nv-sidebarnavitem .nv-sidebarnavitem-icon{display:flex;align-items:center;justify-content:center;flex-shrink:0;color:inherit;width:var(--sidebar-item-icon-size);height:var(--sidebar-item-icon-size);position:relative}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-icon{overflow:visible;margin:0;justify-content:center}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-icon nv-notification-bullet{position:absolute;transform:translate(50%, -50%);z-index:1;--sidebar-notification-bullet-size-reduced:calc( var(--sidebar-item-icon-size) * 0.4 )}nv-sidebarnavitem .nv-sidebarnavitem-content{flex:1;display:flex;align-items:center}nv-sidebarnavitem .nv-sidebarnavitem-content a{color:inherit !important;text-decoration:none !important;font-weight:var(--font-weight-medium-emphasis) !important;flex:1}nv-sidebarnavitem .nv-sidebarnavitem-trailing{display:flex;align-items:center;gap:var(--spacing-2);margin-left:auto}nv-sidebarnavitem .nv-sidebarnavitem-chevron{transition:transform 0.2s ease;color:inherit}nv-sidebarnavitem[open] .nv-sidebarnavitem-chevron{transform:rotate(180deg)}nv-sidebarnavitem .nv-sidebarnavitem-subitems{display:flex;flex-direction:column;gap:0;max-height:0;overflow:hidden;opacity:0;transition:max-height 0.3s ease, opacity 0.2s ease;padding-left:0}nv-sidebarnavitem[open] .nv-sidebarnavitem-subitems{opacity:1;margin-top:var(--spacing-1)}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-trigger{justify-content:center;gap:0;padding:var(--sidebar-item-padding-y-collapsed) var(--sidebar-item-padding-x-collapsed)}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-content{display:none}nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-trailing,nv-sidebar[collapsed] nv-sidebarnavitem .nv-sidebarnavitem-chevron{display:none}`;
|
|
4
4
|
|
|
@@ -271,7 +271,7 @@ const NvSidebarnavitem = class {
|
|
|
271
271
|
render() {
|
|
272
272
|
const showNotificationBullet = this.notificationCount !== undefined && this.notificationCount > 0;
|
|
273
273
|
const notificationSize = this.isSidebarCollapsed ? 'reduced' : 'default';
|
|
274
|
-
return (h(Host, { key: '
|
|
274
|
+
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 => {
|
|
275
275
|
// Only update ref and initialize if element changed or not yet initialized
|
|
276
276
|
if (el !== this.subitemsRef) {
|
|
277
277
|
this.subitemsRef = el;
|
|
@@ -286,7 +286,7 @@ const NvSidebarnavitem = class {
|
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
} }, h("slot", { key: '
|
|
289
|
+
} }, h("slot", { key: 'fe94b2867f472c3af6b71ce80da4a6bfac71dd39', name: "subitems" })))));
|
|
290
290
|
}
|
|
291
291
|
get el() { return getElement(this); }
|
|
292
292
|
static get watchers() { return {
|