@nova-design-system/nova-webcomponents 3.29.0 → 3.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{constants-BugGJYqL.js → constants-BSdCE1ZF.js} +5 -0
- package/dist/cjs/index-Bj9nnTVm.js +4856 -0
- package/dist/cjs/index.cjs.js +14 -1
- 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 +3 -3
- package/dist/cjs/nv-accordion.cjs.entry.js +2 -2
- package/dist/cjs/nv-alert.cjs.entry.js +3 -3
- package/dist/cjs/nv-avatar.cjs.entry.js +3 -3
- package/dist/cjs/nv-badge_2.cjs.entry.js +5 -5
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +2 -2
- package/dist/cjs/nv-button.cjs.entry.js +3 -3
- package/dist/cjs/nv-buttongroup.cjs.entry.js +2 -2
- package/dist/cjs/nv-calendar.cjs.entry.js +4 -4
- package/dist/cjs/nv-col.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagrid.cjs.entry.js +4 -4
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -2
- package/dist/cjs/nv-datetest.cjs.entry.js +2 -2
- package/dist/cjs/nv-datetimetest.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +3 -3
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +4 -4
- package/dist/cjs/nv-drawer.cjs.entry.js +3 -3
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +5 -5
- package/dist/cjs/nv-fielddate.cjs.entry.js +7 -7
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +7 -7
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +101 -23
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldradio.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldselect.cjs.entry.js +45 -7
- package/dist/cjs/nv-fieldslider.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtext.cjs.entry.js +5 -5
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +4 -4
- package/dist/cjs/nv-fieldtime.cjs.entry.js +5 -5
- package/dist/cjs/nv-icon.cjs.entry.js +4 -4
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +3 -3
- package/dist/cjs/nv-menu.cjs.entry.js +2 -2
- package/dist/cjs/nv-menuitem.cjs.entry.js +2 -2
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +1 -1
- package/dist/cjs/nv-notification.cjs.entry.js +3 -3
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +2 -2
- package/dist/cjs/nv-pagination-nav.cjs.entry.js +2 -2
- package/dist/cjs/nv-paginationtable.cjs.entry.js +19 -3
- 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 +178 -4
- 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 +39 -0
- package/dist/cjs/nv-table.cjs.entry.js +3 -3
- package/dist/cjs/nv-tableheader.cjs.entry.js +2 -2
- package/dist/cjs/nv-tag.cjs.entry.js +82 -0
- 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 +2 -2
- 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 +2 -0
- package/dist/collection/components/nv-accordion/nv-accordion.js +1 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +2 -2
- package/dist/collection/components/nv-alert/nv-alert.js +2 -2
- package/dist/collection/components/nv-avatar/nv-avatar.js +1 -1
- package/dist/collection/components/nv-badge/nv-badge.js +5 -5
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +1 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -1
- package/dist/collection/components/nv-button/nv-button.js +1 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js +1 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +2 -2
- package/dist/collection/components/nv-col/nv-col.js +1 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +2 -2
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +1 -1
- package/dist/collection/components/nv-datetest/nv-datetest.js +1 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js +1 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +3 -3
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js +1 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +3 -3
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js +1 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +4 -4
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +6 -6
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +6 -6
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +11 -0
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +151 -22
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js +7 -7
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +1 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -4
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +4 -4
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +3 -3
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +11 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +98 -5
- package/dist/collection/components/nv-fieldselect/styles/nv-fieldselect.css +3 -0
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -3
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +4 -4
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -3
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +3 -3
- package/dist/collection/components/nv-icon/nv-icon.js +2 -2
- package/dist/collection/components/nv-icon/nv-icons.js +9 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +2 -2
- package/dist/collection/components/nv-loader/nv-loader.js +1 -1
- package/dist/collection/components/nv-menu/nv-menu.js +1 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +2 -2
- package/dist/collection/components/nv-notification/nv-notification.js +2 -2
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +1 -1
- package/dist/collection/components/nv-pagination-nav/nv-pagination-nav.js +1 -1
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.js +6 -3
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.utils.js +13 -0
- package/dist/collection/components/nv-paginationtable/test/nv-paginationtable.utils.test.js +26 -1
- 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.docs.js +7 -0
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +274 -2
- package/dist/collection/components/nv-sidebar/styles/nv-sidebar.css +26 -0
- 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 +2 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -1
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.css +73 -0
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.docs.js +34 -0
- package/dist/collection/components/nv-statusindicator/nv-statusindicator.js +122 -0
- package/dist/collection/components/nv-table/nv-table.js +1 -1
- package/dist/collection/components/nv-table/styles/nv-table.css +22 -3
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +1 -1
- package/dist/collection/components/nv-tag/nv-tag.css +228 -0
- package/dist/collection/components/nv-tag/nv-tag.docs.js +114 -0
- package/dist/collection/components/nv-tag/nv-tag.js +251 -0
- 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 +1 -1
- 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/constants.js +5 -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-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.d.ts +11 -0
- package/dist/components/nv-statusindicator.js +1 -0
- package/dist/components/nv-table.js +1 -1
- package/dist/components/nv-tableheader.js +1 -1
- package/dist/components/nv-tag.d.ts +11 -0
- package/dist/components/nv-tag.js +1 -0
- 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-CUjRfVPl.js → p-1Zs1aHJ4.js} +1 -1
- package/dist/components/{p-_zOMJBOq.js → p-B4Uw_U8V.js} +1 -1
- package/dist/components/{p-CfOVizcp.js → p-BFM_8Jgq.js} +1 -1
- package/dist/components/{p-CBlrNW6n.js → p-BU3AWnne.js} +1 -1
- package/dist/components/{p-DKgmDzJ1.js → p-B_SethFg.js} +1 -1
- package/dist/components/{p-D3JDACHw.js → p-Bt5_pj49.js} +1 -1
- package/dist/components/{p-RYxAzR3m.js → p-C-Rs6wG9.js} +1 -1
- package/dist/components/{p-Cuq_uNwY.js → p-CObbk0-q.js} +1 -1
- package/dist/components/{p-CD12QIMB.js → p-CTISxdir.js} +1 -1
- package/dist/components/p-C_eOV3Z7.js +1 -0
- package/dist/components/{p-CT782LKx.js → p-Co54UCK_.js} +1 -1
- package/dist/components/{p-DdcXhR3I.js → p-CsPx96EZ.js} +1 -1
- package/dist/components/{p-Bl7rc9YV.js → p-Cyn4-37z.js} +1 -1
- package/dist/components/{p-EV8CtE4q.js → p-CzRJpv7x.js} +1 -1
- package/dist/components/p-DCYvyQ_j.js +1 -0
- package/dist/components/{p-Cnlbk416.js → p-DWvQs_c-.js} +1 -1
- package/dist/components/{p-p1ofW2Cs.js → p-DZdOQQrW.js} +1 -1
- package/dist/components/p-DiwYO24j.js +2 -0
- package/dist/components/{p-ChVdX6FG.js → p-GDyaHbt9.js} +1 -1
- package/dist/components/p-Ghb9L_N-.js +1 -0
- package/dist/components/{p-CgufQqes.js → p-Oger3lC0.js} +1 -1
- package/dist/components/{p-Bytxo1iR.js → p-VppCgviO.js} +1 -1
- package/dist/components/{p-D1psKXwD.js → p-YhjPEgIT.js} +1 -1
- package/dist/components/p-gOKBmbgZ.js +1 -0
- package/dist/esm/{constants-BReL3Lsa.js → constants-gOKBmbgZ.js} +6 -1
- package/dist/esm/index-CTmBvINI.js +4820 -0
- package/dist/esm/index.js +10 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/native.js +3 -3
- package/dist/esm/nv-accordion-item.entry.js +3 -3
- package/dist/esm/nv-accordion.entry.js +2 -2
- package/dist/esm/nv-alert.entry.js +3 -3
- package/dist/esm/nv-avatar.entry.js +3 -3
- package/dist/esm/nv-badge_2.entry.js +5 -5
- package/dist/esm/nv-breadcrumb.entry.js +2 -2
- package/dist/esm/nv-breadcrumbs.entry.js +2 -2
- package/dist/esm/nv-button.entry.js +3 -3
- package/dist/esm/nv-buttongroup.entry.js +2 -2
- package/dist/esm/nv-calendar.entry.js +4 -4
- package/dist/esm/nv-col.entry.js +2 -2
- package/dist/esm/nv-datagrid.entry.js +4 -4
- package/dist/esm/nv-datagridcolumn.entry.js +2 -2
- package/dist/esm/nv-datetest.entry.js +2 -2
- package/dist/esm/nv-datetimetest.entry.js +1 -1
- package/dist/esm/nv-dialog.entry.js +3 -3
- package/dist/esm/nv-dialogfooter_2.entry.js +4 -4
- package/dist/esm/nv-drawer.entry.js +3 -3
- package/dist/esm/nv-drawerfooter_2.entry.js +4 -4
- package/dist/esm/nv-fieldcheckbox.entry.js +5 -5
- package/dist/esm/nv-fielddate.entry.js +7 -7
- package/dist/esm/nv-fielddaterange.entry.js +7 -7
- package/dist/esm/nv-fielddropdown.entry.js +101 -23
- package/dist/esm/nv-fielddropdownitem.entry.js +2 -2
- package/dist/esm/nv-fieldmultiselect.entry.js +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +5 -5
- package/dist/esm/nv-fieldpassword.entry.js +5 -5
- package/dist/esm/nv-fieldradio.entry.js +4 -4
- package/dist/esm/nv-fieldselect.entry.js +45 -7
- package/dist/esm/nv-fieldslider.entry.js +4 -4
- package/dist/esm/nv-fieldtext.entry.js +5 -5
- package/dist/esm/nv-fieldtextarea.entry.js +4 -4
- package/dist/esm/nv-fieldtime.entry.js +5 -5
- package/dist/esm/nv-icon.entry.js +4 -4
- package/dist/esm/nv-iconbutton_2.entry.js +3 -3
- package/dist/esm/nv-menu.entry.js +2 -2
- package/dist/esm/nv-menuitem.entry.js +2 -2
- package/dist/esm/nv-notification-bullet.entry.js +1 -1
- package/dist/esm/nv-notification.entry.js +3 -3
- package/dist/esm/nv-notificationcontainer.entry.js +2 -2
- package/dist/esm/nv-pagination-nav.entry.js +2 -2
- package/dist/esm/nv-paginationtable.entry.js +19 -3
- 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 +178 -4
- 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 +37 -0
- package/dist/esm/nv-table.entry.js +3 -3
- package/dist/esm/nv-tableheader.entry.js +2 -2
- package/dist/esm/nv-tag.entry.js +80 -0
- 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 +2 -2
- 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 +5711 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/{p-568fbdac.entry.js → p-007fef99.entry.js} +1 -1
- package/dist/native/{p-9b8478a7.entry.js → p-00f4c8d3.entry.js} +1 -1
- package/dist/native/{p-b7436a14.entry.js → p-06eb42e0.entry.js} +1 -1
- package/dist/native/{p-1bc76216.entry.js → p-13c507cd.entry.js} +1 -1
- package/dist/native/{p-5cefca3c.entry.js → p-144ab827.entry.js} +1 -1
- package/dist/native/p-16037ec8.entry.js +1 -0
- package/dist/native/{p-0d03b6ed.entry.js → p-270bf467.entry.js} +1 -1
- package/dist/native/{p-48c1bab4.entry.js → p-29acf903.entry.js} +1 -1
- package/dist/native/{p-706eeea4.entry.js → p-29b23e1d.entry.js} +1 -1
- package/dist/native/{p-07f3200b.entry.js → p-2b20125e.entry.js} +1 -1
- package/dist/native/p-31e192d9.entry.js +1 -0
- package/dist/native/p-34d30b90.entry.js +1 -0
- package/dist/native/{p-04e40a1e.entry.js → p-352854eb.entry.js} +1 -1
- package/dist/native/{p-26c0c34b.entry.js → p-3855de15.entry.js} +1 -1
- package/dist/native/{p-c20e0b5f.entry.js → p-3969a700.entry.js} +1 -1
- package/dist/native/{p-8e05077a.entry.js → p-39d5af96.entry.js} +1 -1
- package/dist/native/p-3bed118d.entry.js +1 -0
- package/dist/native/{p-eb737344.entry.js → p-410c21e3.entry.js} +1 -1
- package/dist/native/{p-1ea2a804.entry.js → p-42dc404a.entry.js} +1 -1
- package/dist/native/p-49ceb38e.entry.js +1 -0
- package/dist/native/{p-d468c445.entry.js → p-4b8945c0.entry.js} +1 -1
- package/dist/native/{p-4bb9b387.entry.js → p-4cff908a.entry.js} +1 -1
- package/dist/native/{p-3ddc967e.entry.js → p-513fb9e7.entry.js} +1 -1
- package/dist/native/p-5adac760.entry.js +1 -0
- package/dist/native/p-5c321768.entry.js +1 -0
- package/dist/native/{p-7fd6f0b0.entry.js → p-5df9c196.entry.js} +1 -1
- package/dist/native/{p-9a05395d.entry.js → p-5ef11914.entry.js} +1 -1
- package/dist/native/{p-59ecaf60.entry.js → p-64649214.entry.js} +1 -1
- package/dist/native/{p-27ecae3c.entry.js → p-6bb02337.entry.js} +1 -1
- package/dist/native/{p-2e932ca4.entry.js → p-6dab2e90.entry.js} +1 -1
- package/dist/native/p-6e49d3a1.entry.js +1 -0
- package/dist/native/{p-1450d746.entry.js → p-728f09d5.entry.js} +1 -1
- package/dist/native/{p-d5e931c9.entry.js → p-72c461ac.entry.js} +1 -1
- package/dist/native/{p-2d5189eb.entry.js → p-77bc9afe.entry.js} +1 -1
- package/dist/native/p-789fdae9.entry.js +1 -0
- package/dist/native/{p-49c6d122.entry.js → p-7b1c369b.entry.js} +1 -1
- package/dist/native/p-7b3853be.entry.js +1 -0
- package/dist/native/{p-2b1efb98.entry.js → p-80ba6f84.entry.js} +1 -1
- package/dist/native/{p-0d3ab890.entry.js → p-8dfcfb72.entry.js} +1 -1
- package/dist/native/p-90397b9d.entry.js +1 -0
- package/dist/native/p-915fe20c.entry.js +1 -0
- package/dist/native/{p-7bb2536f.entry.js → p-91719d87.entry.js} +1 -1
- package/dist/native/p-91cb5c65.entry.js +1 -0
- package/dist/native/{p-16600d93.entry.js → p-9affde0d.entry.js} +1 -1
- package/dist/native/p-CTmBvINI.js +2 -0
- package/dist/native/{p-f7fdca43.entry.js → p-a1ef6740.entry.js} +1 -1
- package/dist/native/p-a5d647f1.entry.js +1 -0
- package/dist/native/{p-0f9a284e.entry.js → p-a6554d37.entry.js} +1 -1
- package/dist/native/p-b2c31350.entry.js +1 -0
- package/dist/native/p-b76682bb.entry.js +1 -0
- package/dist/native/{p-a5e39524.entry.js → p-b7a10751.entry.js} +1 -1
- package/dist/native/{p-ca4ab8a5.entry.js → p-b88dcd21.entry.js} +1 -1
- package/dist/native/{p-0f59cb66.entry.js → p-bc0b637f.entry.js} +1 -1
- package/dist/native/p-bebf7bf7.entry.js +1 -0
- package/dist/native/{p-0770997b.entry.js → p-befb5e4e.entry.js} +1 -1
- package/dist/native/{p-0a17050f.entry.js → p-c81532c9.entry.js} +1 -1
- package/dist/native/{p-12269ed5.entry.js → p-cd21a60d.entry.js} +1 -1
- package/dist/native/p-cec93106.entry.js +1 -0
- package/dist/native/{p-f078f10a.entry.js → p-cfe99a3f.entry.js} +1 -1
- package/dist/native/{p-4badca4e.entry.js → p-d0c5f580.entry.js} +1 -1
- package/dist/native/{p-336d63c4.entry.js → p-dc000c85.entry.js} +1 -1
- package/dist/native/p-df3ab86a.entry.js +1 -0
- package/dist/native/p-ef90ca99.entry.js +1 -0
- package/dist/native/{p-2e40d5d9.entry.js → p-f6341ac4.entry.js} +1 -1
- package/dist/native/{p-2d37df11.entry.js → p-f986b4e5.entry.js} +1 -1
- package/dist/native/p-gOKBmbgZ.js +1 -0
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +39 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +28 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-paginationtable/nv-paginationtable.utils.d.ts +9 -0
- package/dist/types/components/nv-sidebar/nv-sidebar.d.ts +43 -0
- package/dist/types/components/nv-split/nv-split.d.ts +1 -0
- package/dist/types/components/nv-statusindicator/nv-statusindicator.d.ts +22 -0
- package/dist/types/components/nv-statusindicator/nv-statusindicator.docs.d.ts +4 -0
- package/dist/types/components/nv-tag/nv-tag.d.ts +64 -0
- package/dist/types/components/nv-tag/nv-tag.docs.d.ts +4 -0
- package/dist/types/components.d.ts +248 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/utils/constants.d.ts +4 -0
- package/dist/vscode-data.json +477 -0
- package/hydrate/index.js +604 -137
- package/hydrate/index.mjs +604 -137
- package/package.json +21 -9
- package/dist/cjs/index-eLt3bBQs.js +0 -4848
- package/dist/components/p-BReL3Lsa.js +0 -1
- package/dist/components/p-C47vpaBp.js +0 -1
- package/dist/components/p-C99g_PrG.js +0 -1
- package/dist/components/p-Cr_-lRNo.js +0 -1
- package/dist/components/p-flcatmxD.js +0 -2
- package/dist/esm/index-DU3Vhh_k.js +0 -4812
- package/dist/native/p-3afa34d1.entry.js +0 -1
- package/dist/native/p-5f6e45ca.entry.js +0 -1
- package/dist/native/p-6f1213fb.entry.js +0 -1
- package/dist/native/p-6f91712c.entry.js +0 -1
- package/dist/native/p-7126f67e.entry.js +0 -1
- package/dist/native/p-748661f0.entry.js +0 -1
- package/dist/native/p-7b545176.entry.js +0 -1
- package/dist/native/p-803759ef.entry.js +0 -1
- package/dist/native/p-92539825.entry.js +0 -1
- package/dist/native/p-943a4dfd.entry.js +0 -1
- package/dist/native/p-96078a63.entry.js +0 -1
- package/dist/native/p-BReL3Lsa.js +0 -1
- package/dist/native/p-DU3Vhh_k.js +0 -2
- package/dist/native/p-bff549dd.entry.js +0 -1
- package/dist/native/p-d5060f92.entry.js +0 -1
- package/dist/native/p-dc647a64.entry.js +0 -1
- package/dist/native/p-df5c6b0c.entry.js +0 -1
- package/dist/native/p-e8569a99.entry.js +0 -1
- package/dist/native/p-f3756dfd.entry.js +0 -1
- package/dist/native/p-f3ded7e8.entry.js +0 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
nv-statusindicator {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
gap: var(--status-indicator-gap-x);
|
|
5
|
+
padding: var(--status-indicator-padding-y) var(--status-indicator-padding-x);
|
|
6
|
+
height: var(--status-indicator-height);
|
|
7
|
+
border-radius: var(--status-indicator-radius);
|
|
8
|
+
border: 1px solid;
|
|
9
|
+
font-family: var(--font-family-default), var(--font-family-fallback), sans-serif;
|
|
10
|
+
font-size: var(--status-indicator-label-size);
|
|
11
|
+
font-weight: var(--font-weight-medium-emphasis);
|
|
12
|
+
line-height: var(--status-indicator-label-line-height);
|
|
13
|
+
width: fit-content;
|
|
14
|
+
vertical-align: middle;
|
|
15
|
+
}
|
|
16
|
+
nv-statusindicator.status-success {
|
|
17
|
+
color: var(--color-feedback-success-low-text);
|
|
18
|
+
border-color: var(--color-feedback-success-low-border);
|
|
19
|
+
}
|
|
20
|
+
nv-statusindicator.status-success nv-icon {
|
|
21
|
+
color: var(--color-feedback-success-low-icon);
|
|
22
|
+
}
|
|
23
|
+
nv-statusindicator.status-success.emphasis-high {
|
|
24
|
+
background-color: var(--color-feedback-success-low-background);
|
|
25
|
+
border-color: var(--color-feedback-success-low-border-subtle);
|
|
26
|
+
}
|
|
27
|
+
nv-statusindicator.status-warning {
|
|
28
|
+
color: var(--color-feedback-warning-low-text);
|
|
29
|
+
border-color: var(--color-feedback-warning-low-border);
|
|
30
|
+
}
|
|
31
|
+
nv-statusindicator.status-warning nv-icon {
|
|
32
|
+
color: var(--color-feedback-warning-low-icon);
|
|
33
|
+
}
|
|
34
|
+
nv-statusindicator.status-warning.emphasis-high {
|
|
35
|
+
background-color: var(--color-feedback-warning-low-background);
|
|
36
|
+
border-color: var(--color-feedback-warning-low-border-subtle);
|
|
37
|
+
}
|
|
38
|
+
nv-statusindicator.status-error {
|
|
39
|
+
color: var(--color-feedback-error-low-text);
|
|
40
|
+
border-color: var(--color-feedback-error-low-border);
|
|
41
|
+
}
|
|
42
|
+
nv-statusindicator.status-error nv-icon {
|
|
43
|
+
color: var(--color-feedback-error-low-icon);
|
|
44
|
+
}
|
|
45
|
+
nv-statusindicator.status-error.emphasis-high {
|
|
46
|
+
background-color: var(--color-feedback-error-low-background);
|
|
47
|
+
border-color: var(--color-feedback-error-low-border-subtle);
|
|
48
|
+
}
|
|
49
|
+
nv-statusindicator.status-information {
|
|
50
|
+
color: var(--color-feedback-information-low-text);
|
|
51
|
+
border-color: var(--color-feedback-information-low-border);
|
|
52
|
+
}
|
|
53
|
+
nv-statusindicator.status-information nv-icon {
|
|
54
|
+
color: var(--color-feedback-information-low-icon);
|
|
55
|
+
}
|
|
56
|
+
nv-statusindicator.status-information.emphasis-high {
|
|
57
|
+
background-color: var(--color-feedback-information-low-background);
|
|
58
|
+
border-color: var(--color-feedback-information-low-border-subtle);
|
|
59
|
+
}
|
|
60
|
+
nv-statusindicator.status-neutral {
|
|
61
|
+
color: var(--color-feedback-neutral-low-text);
|
|
62
|
+
border-color: var(--color-feedback-neutral-low-border);
|
|
63
|
+
}
|
|
64
|
+
nv-statusindicator.status-neutral nv-icon {
|
|
65
|
+
color: var(--color-feedback-neutral-low-icon);
|
|
66
|
+
}
|
|
67
|
+
nv-statusindicator.status-neutral.emphasis-high {
|
|
68
|
+
background-color: var(--color-feedback-neutral-low-background);
|
|
69
|
+
border-color: var(--color-feedback-neutral-low-border-subtle);
|
|
70
|
+
}
|
|
71
|
+
nv-statusindicator .nv-statusindicator-label {
|
|
72
|
+
white-space: nowrap;
|
|
73
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { nameof } from "../../utils/class.utils";
|
|
3
|
+
const NvStatusindicatorDocs = {
|
|
4
|
+
component: 'nv-statusindicator',
|
|
5
|
+
badge: 'new',
|
|
6
|
+
parentGroup: 'Status Indicator',
|
|
7
|
+
subcomponents: ['nv-icon'],
|
|
8
|
+
stories: [
|
|
9
|
+
{
|
|
10
|
+
name: 'Default',
|
|
11
|
+
args: {
|
|
12
|
+
status: 'neutral',
|
|
13
|
+
label: 'Draft',
|
|
14
|
+
},
|
|
15
|
+
template: h("nv-statusindicator", { "data-storybook-args": true }),
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: nameof(x => x.status),
|
|
19
|
+
description: 'Five status variants communicate different system states.',
|
|
20
|
+
template: (h("div", null, h("nv-statusindicator", { status: "success", label: "Validated" }), h("nv-statusindicator", { status: "warning", label: "Expiring" }), h("nv-statusindicator", { status: "error", label: "Failed" }), h("nv-statusindicator", { status: "information", label: "In progress" }), h("nv-statusindicator", { status: "neutral", label: "Draft" }))),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
name: nameof(x => x.emphasis),
|
|
24
|
+
description: 'High emphasis adds a coloured background for greater visual weight. Low emphasis (default) uses border only.',
|
|
25
|
+
template: (h("div", null, h("nv-statusindicator", { status: "success", emphasis: "low", label: "Low" }), h("nv-statusindicator", { status: "success", emphasis: "high", label: "High" }), h("nv-statusindicator", { status: "error", emphasis: "low", label: "Low" }), h("nv-statusindicator", { status: "error", emphasis: "high", label: "High" }))),
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: nameof(x => x.label),
|
|
29
|
+
description: 'When label is omitted, the indicator renders icon-only with an aria-label for accessibility.',
|
|
30
|
+
template: (h("div", null, h("nv-statusindicator", { status: "success" }), h("nv-statusindicator", { status: "warning" }), h("nv-statusindicator", { status: "error" }), h("nv-statusindicator", { status: "information" }), h("nv-statusindicator", { status: "neutral" }))),
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
export default NvStatusindicatorDocs;
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
const STATUS_ICONS = {
|
|
4
|
+
success: 'circle-check',
|
|
5
|
+
warning: 'alert-triangle',
|
|
6
|
+
error: 'alert-circle',
|
|
7
|
+
information: 'info-circle',
|
|
8
|
+
neutral: 'help',
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A static, non-interactive visual indicator that communicates
|
|
12
|
+
* system-controlled status through colour, icon, and optional label.
|
|
13
|
+
*/
|
|
14
|
+
export class NvStatusindicator {
|
|
15
|
+
constructor() {
|
|
16
|
+
/****************************************************************************/
|
|
17
|
+
//#region PROPERTIES
|
|
18
|
+
/**
|
|
19
|
+
* The status variant of the indicator.
|
|
20
|
+
*/
|
|
21
|
+
this.status = 'neutral';
|
|
22
|
+
/**
|
|
23
|
+
* The visual emphasis of the indicator.
|
|
24
|
+
*/
|
|
25
|
+
this.emphasis = 'low';
|
|
26
|
+
}
|
|
27
|
+
//#endregion PROPERTIES
|
|
28
|
+
/****************************************************************************/
|
|
29
|
+
//#region RENDER
|
|
30
|
+
render() {
|
|
31
|
+
const hasLabel = Boolean(this.label);
|
|
32
|
+
return (h(Host, { key: '47deb7af39321cdc397266b6618efc1e45d06302', class: clsx(`status-${this.status}`, `emphasis-${this.emphasis}`), ...(!hasLabel ? { 'aria-label': this.status } : {}) }, h("nv-icon", { key: '9e2e8e9903c4ea4257d54c9fc286d0b94368066c', name: STATUS_ICONS[this.status], size: "xs", "aria-hidden": "true" }), hasLabel && h("span", { key: '0feef750f27a913158857fdd661a5847d7291816', class: "nv-statusindicator-label" }, this.label)));
|
|
33
|
+
}
|
|
34
|
+
static get is() { return "nv-statusindicator"; }
|
|
35
|
+
static get originalStyleUrls() {
|
|
36
|
+
return {
|
|
37
|
+
"$": ["nv-statusindicator.scss"]
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
static get styleUrls() {
|
|
41
|
+
return {
|
|
42
|
+
"$": ["nv-statusindicator.css"]
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
static get properties() {
|
|
46
|
+
return {
|
|
47
|
+
"status": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"mutable": false,
|
|
50
|
+
"complexType": {
|
|
51
|
+
"original": "`${FeedbackColors}`",
|
|
52
|
+
"resolved": "\"error\" | \"information\" | \"neutral\" | \"success\" | \"warning\"",
|
|
53
|
+
"references": {
|
|
54
|
+
"FeedbackColors": {
|
|
55
|
+
"location": "import",
|
|
56
|
+
"path": "../../utils/constants",
|
|
57
|
+
"id": "src/utils/constants.ts::FeedbackColors",
|
|
58
|
+
"referenceLocation": "FeedbackColors"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"required": false,
|
|
63
|
+
"optional": false,
|
|
64
|
+
"docs": {
|
|
65
|
+
"tags": [],
|
|
66
|
+
"text": "The status variant of the indicator."
|
|
67
|
+
},
|
|
68
|
+
"getter": false,
|
|
69
|
+
"setter": false,
|
|
70
|
+
"reflect": true,
|
|
71
|
+
"attribute": "status",
|
|
72
|
+
"defaultValue": "'neutral'"
|
|
73
|
+
},
|
|
74
|
+
"emphasis": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"mutable": false,
|
|
77
|
+
"complexType": {
|
|
78
|
+
"original": "`${StatusIndicatorEmphasis}`",
|
|
79
|
+
"resolved": "\"high\" | \"low\"",
|
|
80
|
+
"references": {
|
|
81
|
+
"StatusIndicatorEmphasis": {
|
|
82
|
+
"location": "import",
|
|
83
|
+
"path": "../../utils/constants",
|
|
84
|
+
"id": "src/utils/constants.ts::StatusIndicatorEmphasis",
|
|
85
|
+
"referenceLocation": "StatusIndicatorEmphasis"
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": false,
|
|
90
|
+
"optional": false,
|
|
91
|
+
"docs": {
|
|
92
|
+
"tags": [],
|
|
93
|
+
"text": "The visual emphasis of the indicator."
|
|
94
|
+
},
|
|
95
|
+
"getter": false,
|
|
96
|
+
"setter": false,
|
|
97
|
+
"reflect": true,
|
|
98
|
+
"attribute": "emphasis",
|
|
99
|
+
"defaultValue": "'low'"
|
|
100
|
+
},
|
|
101
|
+
"label": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"mutable": false,
|
|
104
|
+
"complexType": {
|
|
105
|
+
"original": "string",
|
|
106
|
+
"resolved": "string",
|
|
107
|
+
"references": {}
|
|
108
|
+
},
|
|
109
|
+
"required": false,
|
|
110
|
+
"optional": true,
|
|
111
|
+
"docs": {
|
|
112
|
+
"tags": [],
|
|
113
|
+
"text": "The text label of the indicator. When omitted, the component renders icon-only."
|
|
114
|
+
},
|
|
115
|
+
"getter": false,
|
|
116
|
+
"setter": false,
|
|
117
|
+
"reflect": true,
|
|
118
|
+
"attribute": "label"
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -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: 'b5e48658bf7af1793298acc73edbc1473f535397' }, h("slot", { key: 'd3893f308eb48d8fc0854c121f3edd2b23405a3e' })));
|
|
62
62
|
}
|
|
63
63
|
static get is() { return "nv-table"; }
|
|
64
64
|
static get originalStyleUrls() {
|
|
@@ -9,6 +9,15 @@ nv-table table {
|
|
|
9
9
|
nv-table table thead {
|
|
10
10
|
background: var(--components-datagrid-header-background);
|
|
11
11
|
}
|
|
12
|
+
nv-table table tbody tr:hover {
|
|
13
|
+
background: var(--components-datagrid-body-background-hover);
|
|
14
|
+
}
|
|
15
|
+
nv-table table tbody tr[data-selected] {
|
|
16
|
+
background: var(--components-datagrid-body-background-active);
|
|
17
|
+
}
|
|
18
|
+
nv-table table tbody tr[data-selected]:hover {
|
|
19
|
+
background: var(--components-datagrid-body-background-active);
|
|
20
|
+
}
|
|
12
21
|
nv-table table tbody tr.nv-datatable-row-clickable {
|
|
13
22
|
cursor: pointer;
|
|
14
23
|
}
|
|
@@ -19,14 +28,24 @@ nv-table table tbody tr.nv-datatable-row-clickable:focus-visible {
|
|
|
19
28
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);
|
|
20
29
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
21
30
|
}
|
|
22
|
-
nv-table table tbody tr
|
|
23
|
-
|
|
31
|
+
nv-table table tbody tr.nv-datatable-expanded-row > td {
|
|
32
|
+
padding: 0;
|
|
33
|
+
height: auto;
|
|
34
|
+
border-bottom: 1px solid var(--components-datagrid-expander-border);
|
|
35
|
+
background: var(--components-datagrid-expander-expander-background);
|
|
36
|
+
}
|
|
37
|
+
nv-table table tbody .nv-datatable-expanded-content {
|
|
38
|
+
position: sticky;
|
|
39
|
+
left: 0;
|
|
40
|
+
width: 0;
|
|
41
|
+
min-width: 100%;
|
|
42
|
+
padding: var(--datagrid-cell-body-padding-y) var(--datagrid-cell-body-padding-x);
|
|
43
|
+
box-sizing: border-box;
|
|
24
44
|
}
|
|
25
45
|
nv-table table[data-row-click-enabled=true] tbody tr.nv-datatable-row-clickable:hover td {
|
|
26
46
|
background: var(--components-datagrid-body-background-hover);
|
|
27
47
|
}
|
|
28
48
|
nv-table table[data-row-click-enabled=false] > tbody > tr:hover:not([data-selected]) {
|
|
29
|
-
background-color: transparent !important;
|
|
30
49
|
cursor: default;
|
|
31
50
|
}
|
|
32
51
|
nv-table table[data-row-click-enabled=false] > tbody > tr:hover:not([data-selected]) > td {
|
|
@@ -55,7 +55,7 @@ export class NvTableheader {
|
|
|
55
55
|
/****************************************************************************/
|
|
56
56
|
//#region RENDER
|
|
57
57
|
render() {
|
|
58
|
-
return (h(Host, { key: '
|
|
58
|
+
return (h(Host, { key: '729de448df598764070ba87ec85efc66ab2b9195', role: "columnheader", "aria-sort": this.ariaSort, tabindex: this.sortable ? 0 : undefined, onKeyDown: this.handleKeyDown.bind(this), onClick: this.cycleSortDirection.bind(this) }, h("slot", { key: '50b91ac2025ef216b120757a5d6848950f4fc76f' }), this.sortable && (h("span", { key: '61e8b7a4473b0f6f248f6966477c7358370fc228', class: "sort-icon-wrap", "aria-hidden": "true" }, h("nv-iconbutton", { key: '423b47f88ba4fc52a65bbd1fca3148aa21b4ca54', disableTabindex: true, name: "arrow-up", size: "xs", emphasis: this.sortDirection === 'none' ? 'lower' : 'low',
|
|
59
59
|
// prevent mousedown from selecting text
|
|
60
60
|
onMouseDown: (e) => e.preventDefault(), class: {
|
|
61
61
|
'is-none': this.sortDirection === 'none',
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
/* Tag color variants mapped to rainbow palette tokens */
|
|
2
|
+
/* Color token maps: tag color name -> rainbow token */
|
|
3
|
+
nv-tag {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
gap: var(--tag-gap-x);
|
|
7
|
+
padding: 0 var(--tag-padding-x);
|
|
8
|
+
border-radius: var(--tag-border-radius);
|
|
9
|
+
border: 1px solid;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
font-family: var(--font-family-default), var(--font-family-fallback), sans-serif;
|
|
12
|
+
font-size: var(--font-size-xs);
|
|
13
|
+
font-weight: var(--font-weight-medium-emphasis);
|
|
14
|
+
line-height: var(--line-height-xs);
|
|
15
|
+
height: var(--tag-height);
|
|
16
|
+
width: fit-content;
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
}
|
|
19
|
+
nv-tag.has-dismiss {
|
|
20
|
+
padding-right: 0;
|
|
21
|
+
}
|
|
22
|
+
nv-tag.tag-orange {
|
|
23
|
+
color: var(--color-rainbow-2-text);
|
|
24
|
+
background-color: var(--color-rainbow-2-background);
|
|
25
|
+
border-color: var(--color-rainbow-2-border-light);
|
|
26
|
+
}
|
|
27
|
+
nv-tag.tag-orange nv-icon {
|
|
28
|
+
color: var(--color-rainbow-2-icon);
|
|
29
|
+
}
|
|
30
|
+
nv-tag.tag-orange .nv-tag-content:focus, nv-tag.tag-orange .nv-tag-content:focus-within {
|
|
31
|
+
outline: none;
|
|
32
|
+
}
|
|
33
|
+
nv-tag.tag-orange .nv-tag-content:focus-visible, nv-tag.tag-orange .nv-tag-content:has(:focus-visible) {
|
|
34
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-2-text);
|
|
35
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
36
|
+
}
|
|
37
|
+
nv-tag.tag-crimson {
|
|
38
|
+
color: var(--color-rainbow-6-text);
|
|
39
|
+
background-color: var(--color-rainbow-6-background);
|
|
40
|
+
border-color: var(--color-rainbow-6-border-light);
|
|
41
|
+
}
|
|
42
|
+
nv-tag.tag-crimson nv-icon {
|
|
43
|
+
color: var(--color-rainbow-6-icon);
|
|
44
|
+
}
|
|
45
|
+
nv-tag.tag-crimson .nv-tag-content:focus, nv-tag.tag-crimson .nv-tag-content:focus-within {
|
|
46
|
+
outline: none;
|
|
47
|
+
}
|
|
48
|
+
nv-tag.tag-crimson .nv-tag-content:focus-visible, nv-tag.tag-crimson .nv-tag-content:has(:focus-visible) {
|
|
49
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-6-text);
|
|
50
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
51
|
+
}
|
|
52
|
+
nv-tag.tag-yellow {
|
|
53
|
+
color: var(--color-rainbow-3-text);
|
|
54
|
+
background-color: var(--color-rainbow-3-background);
|
|
55
|
+
border-color: var(--color-rainbow-3-border-light);
|
|
56
|
+
}
|
|
57
|
+
nv-tag.tag-yellow nv-icon {
|
|
58
|
+
color: var(--color-rainbow-3-icon);
|
|
59
|
+
}
|
|
60
|
+
nv-tag.tag-yellow .nv-tag-content:focus, nv-tag.tag-yellow .nv-tag-content:focus-within {
|
|
61
|
+
outline: none;
|
|
62
|
+
}
|
|
63
|
+
nv-tag.tag-yellow .nv-tag-content:focus-visible, nv-tag.tag-yellow .nv-tag-content:has(:focus-visible) {
|
|
64
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-3-text);
|
|
65
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
66
|
+
}
|
|
67
|
+
nv-tag.tag-red {
|
|
68
|
+
color: var(--color-rainbow-4-text);
|
|
69
|
+
background-color: var(--color-rainbow-4-background);
|
|
70
|
+
border-color: var(--color-rainbow-4-border-light);
|
|
71
|
+
}
|
|
72
|
+
nv-tag.tag-red nv-icon {
|
|
73
|
+
color: var(--color-rainbow-4-icon);
|
|
74
|
+
}
|
|
75
|
+
nv-tag.tag-red .nv-tag-content:focus, nv-tag.tag-red .nv-tag-content:focus-within {
|
|
76
|
+
outline: none;
|
|
77
|
+
}
|
|
78
|
+
nv-tag.tag-red .nv-tag-content:focus-visible, nv-tag.tag-red .nv-tag-content:has(:focus-visible) {
|
|
79
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-4-text);
|
|
80
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
81
|
+
}
|
|
82
|
+
nv-tag.tag-blue {
|
|
83
|
+
color: var(--color-rainbow-8-text);
|
|
84
|
+
background-color: var(--color-rainbow-8-background);
|
|
85
|
+
border-color: var(--color-rainbow-8-border-light);
|
|
86
|
+
}
|
|
87
|
+
nv-tag.tag-blue nv-icon {
|
|
88
|
+
color: var(--color-rainbow-8-icon);
|
|
89
|
+
}
|
|
90
|
+
nv-tag.tag-blue .nv-tag-content:focus, nv-tag.tag-blue .nv-tag-content:focus-within {
|
|
91
|
+
outline: none;
|
|
92
|
+
}
|
|
93
|
+
nv-tag.tag-blue .nv-tag-content:focus-visible, nv-tag.tag-blue .nv-tag-content:has(:focus-visible) {
|
|
94
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-8-text);
|
|
95
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
96
|
+
}
|
|
97
|
+
nv-tag.tag-amber {
|
|
98
|
+
color: var(--color-rainbow-1-text);
|
|
99
|
+
background-color: var(--color-rainbow-1-background);
|
|
100
|
+
border-color: var(--color-rainbow-1-border-light);
|
|
101
|
+
}
|
|
102
|
+
nv-tag.tag-amber nv-icon {
|
|
103
|
+
color: var(--color-rainbow-1-icon);
|
|
104
|
+
}
|
|
105
|
+
nv-tag.tag-amber .nv-tag-content:focus, nv-tag.tag-amber .nv-tag-content:focus-within {
|
|
106
|
+
outline: none;
|
|
107
|
+
}
|
|
108
|
+
nv-tag.tag-amber .nv-tag-content:focus-visible, nv-tag.tag-amber .nv-tag-content:has(:focus-visible) {
|
|
109
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-1-text);
|
|
110
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
111
|
+
}
|
|
112
|
+
nv-tag.tag-green {
|
|
113
|
+
color: var(--color-rainbow-7-text);
|
|
114
|
+
background-color: var(--color-rainbow-7-background);
|
|
115
|
+
border-color: var(--color-rainbow-7-border-light);
|
|
116
|
+
}
|
|
117
|
+
nv-tag.tag-green nv-icon {
|
|
118
|
+
color: var(--color-rainbow-7-icon);
|
|
119
|
+
}
|
|
120
|
+
nv-tag.tag-green .nv-tag-content:focus, nv-tag.tag-green .nv-tag-content:focus-within {
|
|
121
|
+
outline: none;
|
|
122
|
+
}
|
|
123
|
+
nv-tag.tag-green .nv-tag-content:focus-visible, nv-tag.tag-green .nv-tag-content:has(:focus-visible) {
|
|
124
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-7-text);
|
|
125
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
126
|
+
}
|
|
127
|
+
nv-tag.tag-turquoise {
|
|
128
|
+
color: var(--color-rainbow-5-text);
|
|
129
|
+
background-color: var(--color-rainbow-5-background);
|
|
130
|
+
border-color: var(--color-rainbow-5-border-light);
|
|
131
|
+
}
|
|
132
|
+
nv-tag.tag-turquoise nv-icon {
|
|
133
|
+
color: var(--color-rainbow-5-icon);
|
|
134
|
+
}
|
|
135
|
+
nv-tag.tag-turquoise .nv-tag-content:focus, nv-tag.tag-turquoise .nv-tag-content:focus-within {
|
|
136
|
+
outline: none;
|
|
137
|
+
}
|
|
138
|
+
nv-tag.tag-turquoise .nv-tag-content:focus-visible, nv-tag.tag-turquoise .nv-tag-content:has(:focus-visible) {
|
|
139
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-5-text);
|
|
140
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
141
|
+
}
|
|
142
|
+
nv-tag.tag-lime {
|
|
143
|
+
color: var(--color-rainbow-9-text);
|
|
144
|
+
background-color: var(--color-rainbow-9-background);
|
|
145
|
+
border-color: var(--color-rainbow-9-border-light);
|
|
146
|
+
}
|
|
147
|
+
nv-tag.tag-lime nv-icon {
|
|
148
|
+
color: var(--color-rainbow-9-icon);
|
|
149
|
+
}
|
|
150
|
+
nv-tag.tag-lime .nv-tag-content:focus, nv-tag.tag-lime .nv-tag-content:focus-within {
|
|
151
|
+
outline: none;
|
|
152
|
+
}
|
|
153
|
+
nv-tag.tag-lime .nv-tag-content:focus-visible, nv-tag.tag-lime .nv-tag-content:has(:focus-visible) {
|
|
154
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-9-text);
|
|
155
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
156
|
+
}
|
|
157
|
+
nv-tag.tag-grey {
|
|
158
|
+
color: var(--color-rainbow-10-text);
|
|
159
|
+
background-color: var(--color-rainbow-10-background);
|
|
160
|
+
border-color: var(--color-rainbow-10-border-light);
|
|
161
|
+
}
|
|
162
|
+
nv-tag.tag-grey nv-icon {
|
|
163
|
+
color: var(--color-rainbow-10-icon);
|
|
164
|
+
}
|
|
165
|
+
nv-tag.tag-grey .nv-tag-content:focus, nv-tag.tag-grey .nv-tag-content:focus-within {
|
|
166
|
+
outline: none;
|
|
167
|
+
}
|
|
168
|
+
nv-tag.tag-grey .nv-tag-content:focus-visible, nv-tag.tag-grey .nv-tag-content:has(:focus-visible) {
|
|
169
|
+
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-10-text);
|
|
170
|
+
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
171
|
+
}
|
|
172
|
+
nv-tag .nv-tag-leading {
|
|
173
|
+
display: contents;
|
|
174
|
+
}
|
|
175
|
+
nv-tag .nv-tag-label {
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
}
|
|
178
|
+
nv-tag .nv-tag-content {
|
|
179
|
+
display: inline-flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
gap: var(--tag-gap-x);
|
|
182
|
+
color: inherit;
|
|
183
|
+
text-decoration: none;
|
|
184
|
+
border-radius: var(--tag-border-radius);
|
|
185
|
+
}
|
|
186
|
+
nv-tag.is-link .nv-tag-content {
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
}
|
|
189
|
+
nv-tag.is-link .nv-tag-content:hover {
|
|
190
|
+
text-decoration: underline;
|
|
191
|
+
}
|
|
192
|
+
nv-tag .nv-tag-dismiss {
|
|
193
|
+
padding: 0;
|
|
194
|
+
margin: 0;
|
|
195
|
+
line-height: 0;
|
|
196
|
+
border: none;
|
|
197
|
+
background: none;
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
color: inherit;
|
|
200
|
+
display: inline-flex;
|
|
201
|
+
align-items: center;
|
|
202
|
+
justify-content: center;
|
|
203
|
+
width: var(--tag-height);
|
|
204
|
+
height: var(--tag-height);
|
|
205
|
+
border-radius: 0;
|
|
206
|
+
appearance: none;
|
|
207
|
+
}
|
|
208
|
+
nv-tag .nv-tag-dismiss:focus, nv-tag .nv-tag-dismiss:focus-within {
|
|
209
|
+
outline: none;
|
|
210
|
+
}
|
|
211
|
+
nv-tag .nv-tag-dismiss:focus-visible {
|
|
212
|
+
border-radius: 0;
|
|
213
|
+
box-shadow: inset 0 0 0 var(--focus-outline-stroke) var(--color-focus-brand);
|
|
214
|
+
}
|
|
215
|
+
nv-tag .nv-tag-dismiss:hover {
|
|
216
|
+
background-color: var(--color-interaction-container-neutral-background-hover);
|
|
217
|
+
mix-blend-mode: multiply;
|
|
218
|
+
}
|
|
219
|
+
nv-tag .nv-tag-dismiss:disabled {
|
|
220
|
+
opacity: var(--opacity-disabled);
|
|
221
|
+
pointer-events: none;
|
|
222
|
+
cursor: default;
|
|
223
|
+
}
|
|
224
|
+
nv-tag nv-icon > svg {
|
|
225
|
+
width: var(--spacing-3);
|
|
226
|
+
height: var(--spacing-3);
|
|
227
|
+
stroke-width: 1.2px;
|
|
228
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
import { nameof } from "../../utils/class.utils";
|
|
3
|
+
const NvTagDocs = {
|
|
4
|
+
component: 'nv-tag',
|
|
5
|
+
badge: 'new',
|
|
6
|
+
parentGroup: 'Tag',
|
|
7
|
+
subcomponents: ['nv-icon'],
|
|
8
|
+
stories: [
|
|
9
|
+
// Default
|
|
10
|
+
{
|
|
11
|
+
name: 'Default',
|
|
12
|
+
args: {
|
|
13
|
+
label: 'Category',
|
|
14
|
+
},
|
|
15
|
+
template: h("nv-tag", { "data-storybook-args": true }),
|
|
16
|
+
},
|
|
17
|
+
// label
|
|
18
|
+
{
|
|
19
|
+
name: nameof(x => x.label),
|
|
20
|
+
args: {
|
|
21
|
+
label: 'Infrastructure',
|
|
22
|
+
},
|
|
23
|
+
template: h("nv-tag", { "data-storybook-args": true }),
|
|
24
|
+
},
|
|
25
|
+
// color
|
|
26
|
+
{
|
|
27
|
+
name: nameof(x => x.color),
|
|
28
|
+
description: 'Tag supports 10 colour variants from the rainbow palette.',
|
|
29
|
+
template: (h("div", { "data-class": "flex flex-wrap gap-4" }, h("nv-tag", { "data-storybook-args": true, color: "orange", label: "Orange" }), h("nv-tag", { "data-storybook-args": true, color: "crimson", label: "Crimson" }), h("nv-tag", { "data-storybook-args": true, color: "yellow", label: "Yellow" }), h("nv-tag", { "data-storybook-args": true, color: "red", label: "Red" }), h("nv-tag", { "data-storybook-args": true, color: "blue", label: "Blue" }), h("nv-tag", { "data-storybook-args": true, color: "amber", label: "Amber" }), h("nv-tag", { "data-storybook-args": true, color: "green", label: "Green" }), h("nv-tag", { "data-storybook-args": true, color: "turquoise", label: "Turquoise" }), h("nv-tag", { "data-storybook-args": true, color: "lime", label: "Lime" }), h("nv-tag", { "data-storybook-args": true, color: "grey", label: "Grey" }))),
|
|
30
|
+
},
|
|
31
|
+
// dismissible
|
|
32
|
+
{
|
|
33
|
+
name: nameof(x => x.dismissible),
|
|
34
|
+
description: 'When dismissible, a dismiss button is rendered. Clicking it emits the `dismissed` event.',
|
|
35
|
+
args: {
|
|
36
|
+
label: 'Active filter',
|
|
37
|
+
color: 'orange',
|
|
38
|
+
dismissible: true,
|
|
39
|
+
},
|
|
40
|
+
template: h("nv-tag", { "data-storybook-args": true }),
|
|
41
|
+
},
|
|
42
|
+
// href
|
|
43
|
+
{
|
|
44
|
+
name: nameof(x => x.href),
|
|
45
|
+
description: 'When `href` is set, the tag renders as a link. The label area navigates; the dismiss button (if present) is a separate action zone.',
|
|
46
|
+
args: {
|
|
47
|
+
label: 'View category',
|
|
48
|
+
color: 'amber',
|
|
49
|
+
href: '#',
|
|
50
|
+
},
|
|
51
|
+
template: h("nv-tag", { "data-storybook-args": true }),
|
|
52
|
+
},
|
|
53
|
+
// target
|
|
54
|
+
{
|
|
55
|
+
name: nameof(x => x.target),
|
|
56
|
+
description: 'When `target="_blank"`, the link opens in a new tab and `rel="noopener noreferrer"` is automatically applied for security.',
|
|
57
|
+
args: {
|
|
58
|
+
label: 'Documentation',
|
|
59
|
+
color: 'blue',
|
|
60
|
+
href: 'https://nova.eliagroup.io/',
|
|
61
|
+
target: '_blank',
|
|
62
|
+
},
|
|
63
|
+
template: h("nv-tag", { "data-storybook-args": true }),
|
|
64
|
+
},
|
|
65
|
+
// rel
|
|
66
|
+
{
|
|
67
|
+
name: nameof(x => x.rel),
|
|
68
|
+
description: 'Overrides the `rel` attribute on the anchor. When `target="_blank"` and `rel` is not set, it defaults to `"noopener noreferrer"` for security.',
|
|
69
|
+
args: {
|
|
70
|
+
label: 'Partner site',
|
|
71
|
+
color: 'blue',
|
|
72
|
+
href: 'https://partner.example.com/',
|
|
73
|
+
target: '_blank',
|
|
74
|
+
rel: 'noopener',
|
|
75
|
+
},
|
|
76
|
+
template: h("nv-tag", { "data-storybook-args": true }),
|
|
77
|
+
},
|
|
78
|
+
// disabled
|
|
79
|
+
{
|
|
80
|
+
name: nameof(x => x.disabled),
|
|
81
|
+
description: 'When `disabled` is true, the dismiss button is visually dimmed and non-interactive.',
|
|
82
|
+
args: {
|
|
83
|
+
label: 'Read-only filter',
|
|
84
|
+
color: 'orange',
|
|
85
|
+
dismissible: true,
|
|
86
|
+
disabled: true,
|
|
87
|
+
},
|
|
88
|
+
template: h("nv-tag", { "data-storybook-args": true }),
|
|
89
|
+
},
|
|
90
|
+
// Combined: link + dismissible + icon
|
|
91
|
+
{
|
|
92
|
+
name: 'LinkDismissibleWithIcon',
|
|
93
|
+
description: 'Combined variant with link navigation, dismiss action, and a leading icon. The label area navigates while the dismiss button emits a separate event.',
|
|
94
|
+
args: {
|
|
95
|
+
label: 'Energy',
|
|
96
|
+
color: 'turquoise',
|
|
97
|
+
dismissible: true,
|
|
98
|
+
href: '#',
|
|
99
|
+
},
|
|
100
|
+
template: (h("nv-tag", { "data-storybook-args": true }, h("nv-icon", { slot: "leading-icon", name: "bolt" }))),
|
|
101
|
+
},
|
|
102
|
+
// Slot: leading-icon
|
|
103
|
+
{
|
|
104
|
+
name: 'SlotLeadingIcon',
|
|
105
|
+
description: 'Tag with a leading icon via the `leading-icon` slot.',
|
|
106
|
+
args: {
|
|
107
|
+
label: 'Renewable',
|
|
108
|
+
color: 'green',
|
|
109
|
+
},
|
|
110
|
+
template: (h("nv-tag", { "data-storybook-args": true }, h("nv-icon", { slot: "leading-icon", name: "leaf" }))),
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
};
|
|
114
|
+
export default NvTagDocs;
|