@nova-design-system/nova-webcomponents 3.11.0 → 3.12.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-3b6beb66.js → constants-aac59496.js} +19 -42
- package/dist/cjs/constants-aac59496.js.map +1 -0
- package/dist/cjs/index.cjs.js +99 -7
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/native.cjs.js +1 -1
- package/dist/cjs/nv-alert.cjs.entry.js +2 -2
- package/dist/cjs/nv-alert.cjs.entry.js.map +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-badge_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/nv-breadcrumb.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-button.cjs.entry.js +2 -2
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-calendar.cjs.entry.js +1 -1
- package/dist/cjs/nv-datagrid.cjs.entry.js +2 -2
- package/dist/cjs/nv-datagrid.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-dialog.cjs.entry.js +1 -1
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddate.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddaterange.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +1 -1
- package/dist/cjs/nv-fielddropdown.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js +1 -1
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-fieldtime.cjs.entry.js +2 -2
- package/dist/cjs/nv-fieldtime.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-icon.cjs.entry.js +2 -2
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +1 -1
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-popover.cjs.entry.js +21 -4
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js +1 -1
- package/dist/cjs/nv-toggle.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-togglebutton.cjs.entry.js +1 -1
- package/dist/cjs/nv-togglebutton.cjs.entry.js.map +1 -1
- package/dist/cjs/nv-tooltip.cjs.entry.js +11 -2
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -1
- package/dist/collection/components/nv-alert/nv-alert.css +0 -5
- package/dist/collection/components/nv-badge/nv-badge.css +0 -21
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.css +0 -2
- package/dist/collection/components/nv-button/styles/nv-button.css +0 -8
- package/dist/collection/components/nv-datagrid/nv-datagrid.css +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +0 -1
- package/dist/collection/components/nv-fielddate/styles/nv-fielddate.css +4 -0
- package/dist/collection/components/nv-fielddaterange/styles/nv-fielddaterange.css +6 -0
- package/dist/collection/components/nv-fielddropdown/styles/nv-fielddropdown.css +4 -0
- package/dist/collection/components/nv-fieldmultiselect/styles/nv-fieldmultiselect.css +4 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +8 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +4 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.css +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +6 -0
- package/dist/collection/components/nv-fieldtime/styles/nv-fieldtime.css +4 -0
- package/dist/collection/components/nv-icon/nv-icons.js +5 -5
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.css +0 -4
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +1 -1
- package/dist/collection/components/nv-popover/nv-popover.css +7 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js +4 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js.map +1 -1
- package/dist/collection/components/nv-popover/nv-popover.js +47 -2
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -1
- package/dist/collection/components/nv-toggle/nv-toggle.css +0 -1
- package/dist/collection/components/nv-togglebutton/styles/nv-togglebutton.css +3 -2
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js +5 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js.map +1 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +38 -3
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -1
- package/dist/collection/index.js +10 -2
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +6 -6
- package/dist/components/index.js.map +1 -1
- package/dist/components/nv-accordion-item.js +1 -1
- package/dist/components/nv-accordion.js +3 -3
- package/dist/components/nv-alert.js +3 -3
- package/dist/components/nv-alert.js.map +1 -1
- package/dist/components/nv-avatar.js +2 -2
- package/dist/components/nv-badge.js +1 -1
- package/dist/components/nv-breadcrumb.js +3 -3
- package/dist/components/nv-breadcrumb.js.map +1 -1
- package/dist/components/nv-button.js +1 -1
- package/dist/components/nv-calendar.js +1 -1
- package/dist/components/nv-datagrid.js +4 -4
- package/dist/components/nv-datagrid.js.map +1 -1
- package/dist/components/nv-dialog.js +4 -4
- package/dist/components/nv-dialogfooter.js +1 -1
- package/dist/components/nv-fieldcheckbox.js +1 -1
- package/dist/components/nv-fielddate.js +6 -6
- package/dist/components/nv-fielddate.js.map +1 -1
- package/dist/components/nv-fielddaterange.js +6 -6
- package/dist/components/nv-fielddaterange.js.map +1 -1
- package/dist/components/nv-fielddropdown.js +5 -5
- package/dist/components/nv-fielddropdown.js.map +1 -1
- package/dist/components/nv-fielddropdownitem.js +1 -1
- package/dist/components/nv-fielddropdownitemcheck.js +1 -1
- package/dist/components/nv-fieldmultiselect.js +7 -7
- package/dist/components/nv-fieldmultiselect.js.map +1 -1
- package/dist/components/nv-fieldnumber.js +1 -1
- package/dist/components/nv-fieldpassword.js +3 -3
- package/dist/components/nv-fieldpassword.js.map +1 -1
- package/dist/components/nv-fieldradio.js +1 -1
- package/dist/components/nv-fieldradio.js.map +1 -1
- package/dist/components/nv-fieldselect.js +3 -3
- package/dist/components/nv-fieldselect.js.map +1 -1
- package/dist/components/nv-fieldslider.js +3 -3
- package/dist/components/nv-fieldtext.js +1 -1
- package/dist/components/nv-fieldtime.js +5 -5
- package/dist/components/nv-fieldtime.js.map +1 -1
- package/dist/components/nv-icon.js +1 -1
- package/dist/components/nv-iconbutton.js +1 -1
- package/dist/components/nv-menu.js +3 -3
- package/dist/components/nv-menuitem.js +1 -1
- package/dist/components/nv-popover.js +1 -1
- package/dist/components/nv-toggle.js +1 -1
- package/dist/components/nv-toggle.js.map +1 -1
- package/dist/components/nv-togglebutton.js +1 -1
- package/dist/components/nv-togglebutton.js.map +1 -1
- package/dist/components/nv-tooltip.js +1 -1
- package/dist/components/{p-cf06032d.js → p-095c8285.js} +3 -3
- package/dist/components/{p-cf06032d.js.map → p-095c8285.js.map} +1 -1
- package/dist/components/{p-50d0db7b.js → p-0b015832.js} +3 -3
- package/dist/components/{p-50d0db7b.js.map → p-0b015832.js.map} +1 -1
- package/dist/components/{p-a5002d14.js → p-1172e9bb.js} +2 -2
- package/dist/components/{p-a5002d14.js.map → p-1172e9bb.js.map} +1 -1
- package/dist/components/{p-0ffb4785.js → p-2030d84d.js} +2 -2
- package/dist/components/{p-0ffb4785.js.map → p-2030d84d.js.map} +1 -1
- package/dist/components/{p-195f46f3.js → p-2ad58e41.js} +25 -6
- package/dist/components/p-2ad58e41.js.map +1 -0
- package/dist/components/{p-45a625fb.js → p-4c3dc7e4.js} +4 -4
- package/dist/components/{p-45a625fb.js.map → p-4c3dc7e4.js.map} +1 -1
- package/dist/components/{p-b659b999.js → p-57ae32bc.js} +2 -2
- package/dist/components/{p-b659b999.js.map → p-57ae32bc.js.map} +1 -1
- package/dist/components/{p-a3ddec4c.js → p-5f594b35.js} +2 -24
- package/dist/components/p-5f594b35.js.map +1 -0
- package/dist/components/{p-1bb737fa.js → p-7372258e.js} +2 -2
- package/dist/components/{p-1bb737fa.js.map → p-7372258e.js.map} +1 -1
- package/dist/components/{p-9fdaea9a.js → p-84f4b071.js} +3 -3
- package/dist/components/{p-9fdaea9a.js.map → p-84f4b071.js.map} +1 -1
- package/dist/components/{p-f47a1e1e.js → p-87079346.js} +15 -5
- package/dist/components/p-87079346.js.map +1 -0
- package/dist/components/{p-ec4558aa.js → p-ac91582e.js} +2 -2
- package/dist/components/{p-ec4558aa.js.map → p-ac91582e.js.map} +1 -1
- package/dist/components/{p-8aee1010.js → p-b2c31970.js} +2 -2
- package/dist/components/{p-8aee1010.js.map → p-b2c31970.js.map} +1 -1
- package/dist/components/p-b3035205.js +88 -0
- package/dist/components/p-b3035205.js.map +1 -0
- package/dist/components/{p-2db5d1ab.js → p-b7629769.js} +4 -4
- package/dist/components/{p-2db5d1ab.js.map → p-b7629769.js.map} +1 -1
- package/dist/components/{p-32e8e42e.js → p-dc5dad90.js} +2 -2
- package/dist/components/{p-32e8e42e.js.map → p-dc5dad90.js.map} +1 -1
- package/dist/components/p-ddb7aa4e.js +189 -0
- package/dist/components/{p-8011513c.js.map → p-ddb7aa4e.js.map} +1 -1
- package/dist/esm/{constants-23aaef7b.js → constants-a857c476.js} +2 -24
- package/dist/esm/constants-a857c476.js.map +1 -0
- package/dist/esm/index.js +6 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/native.js +1 -1
- package/dist/esm/nv-alert.entry.js +2 -2
- package/dist/esm/nv-alert.entry.js.map +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-badge_2.entry.js.map +1 -1
- package/dist/esm/nv-breadcrumb.entry.js +1 -1
- package/dist/esm/nv-breadcrumb.entry.js.map +1 -1
- package/dist/esm/nv-button.entry.js +2 -2
- package/dist/esm/nv-button.entry.js.map +1 -1
- package/dist/esm/nv-calendar.entry.js +1 -1
- package/dist/esm/nv-datagrid.entry.js +2 -2
- package/dist/esm/nv-datagrid.entry.js.map +1 -1
- package/dist/esm/nv-dialog.entry.js +1 -1
- package/dist/esm/nv-dialogfooter_2.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js +1 -1
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -1
- package/dist/esm/nv-fielddate.entry.js +1 -1
- package/dist/esm/nv-fielddate.entry.js.map +1 -1
- package/dist/esm/nv-fielddaterange.entry.js +1 -1
- package/dist/esm/nv-fielddaterange.entry.js.map +1 -1
- package/dist/esm/nv-fielddropdown.entry.js +1 -1
- package/dist/esm/nv-fielddropdown.entry.js.map +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js +1 -1
- package/dist/esm/nv-fieldmultiselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldnumber.entry.js +1 -1
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -1
- package/dist/esm/nv-fieldpassword.entry.js +1 -1
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -1
- package/dist/esm/nv-fieldradio.entry.js +1 -1
- package/dist/esm/nv-fieldradio.entry.js.map +1 -1
- package/dist/esm/nv-fieldselect.entry.js +1 -1
- package/dist/esm/nv-fieldselect.entry.js.map +1 -1
- package/dist/esm/nv-fieldtime.entry.js +2 -2
- package/dist/esm/nv-fieldtime.entry.js.map +1 -1
- package/dist/esm/nv-icon.entry.js +2 -2
- package/dist/esm/nv-icon.entry.js.map +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js +1 -1
- package/dist/esm/nv-iconbutton_2.entry.js.map +1 -1
- package/dist/esm/nv-popover.entry.js +21 -4
- package/dist/esm/nv-popover.entry.js.map +1 -1
- package/dist/esm/nv-toggle.entry.js +1 -1
- package/dist/esm/nv-toggle.entry.js.map +1 -1
- package/dist/esm/nv-togglebutton.entry.js +1 -1
- package/dist/esm/nv-togglebutton.entry.js.map +1 -1
- package/dist/esm/nv-tooltip.entry.js +11 -2
- package/dist/esm/nv-tooltip.entry.js.map +1 -1
- package/dist/native/index.esm.js +1 -1
- package/dist/native/index.esm.js.map +1 -1
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -1
- package/dist/native/native.esm.js.map +1 -1
- package/dist/native/p-1ad1bff9.entry.js +2 -0
- package/dist/native/{p-0ef94dae.entry.js.map → p-1ad1bff9.entry.js.map} +1 -1
- package/dist/native/{p-7f0d576b.entry.js → p-2781637d.entry.js} +2 -2
- package/dist/native/{p-7f0d576b.entry.js.map → p-2781637d.entry.js.map} +1 -1
- package/dist/native/{p-681f2bac.entry.js → p-29ee7b1c.entry.js} +2 -2
- package/dist/native/{p-681f2bac.entry.js.map → p-29ee7b1c.entry.js.map} +1 -1
- package/dist/native/{p-62032cd9.entry.js → p-38af3aaf.entry.js} +2 -2
- package/dist/native/{p-aacd8789.entry.js → p-3a8f65a9.entry.js} +2 -2
- package/dist/native/p-47901c83.entry.js +2 -0
- package/dist/native/p-47901c83.entry.js.map +1 -0
- package/dist/native/p-48cf2457.entry.js +2 -0
- package/dist/native/{p-ba9906b7.entry.js.map → p-48cf2457.entry.js.map} +1 -1
- package/dist/native/{p-888ad58e.entry.js → p-5d352456.entry.js} +2 -2
- package/dist/native/p-5d352456.entry.js.map +1 -0
- package/dist/native/{p-fc9564b3.js → p-5f594b35.js} +2 -2
- package/dist/native/{p-fc9564b3.js.map → p-5f594b35.js.map} +1 -1
- package/dist/native/p-62aa0531.entry.js +2 -0
- package/dist/native/{p-397c0fca.entry.js.map → p-62aa0531.entry.js.map} +1 -1
- package/dist/native/p-63fea160.entry.js +2 -0
- package/dist/native/p-63fea160.entry.js.map +1 -0
- package/dist/native/p-67d861e2.entry.js +2 -0
- package/dist/native/{p-4f4ed012.entry.js.map → p-67d861e2.entry.js.map} +1 -1
- package/dist/native/p-9e0fe7e8.entry.js +2 -0
- package/dist/native/{p-019d164d.entry.js.map → p-9e0fe7e8.entry.js.map} +1 -1
- package/dist/native/p-a34beedf.entry.js +2 -0
- package/dist/native/p-a34beedf.entry.js.map +1 -0
- package/dist/native/{p-676447d7.entry.js → p-a63929db.entry.js} +3 -3
- package/dist/native/p-ab1e1a96.entry.js +2 -0
- package/dist/native/{p-9991116a.entry.js.map → p-ab1e1a96.entry.js.map} +1 -1
- package/dist/native/p-bc01787b.entry.js +2 -0
- package/dist/native/{p-ad2cc829.entry.js.map → p-bc01787b.entry.js.map} +1 -1
- package/dist/native/p-bcff76ab.entry.js +2 -0
- package/dist/native/{p-44dd9a4c.entry.js.map → p-bcff76ab.entry.js.map} +1 -1
- package/dist/native/p-c3ad7617.entry.js +2 -0
- package/dist/native/{p-fb672f90.entry.js.map → p-c3ad7617.entry.js.map} +1 -1
- package/dist/native/p-cea942b9.entry.js +2 -0
- package/dist/native/{p-3ed84cd9.entry.js.map → p-cea942b9.entry.js.map} +1 -1
- package/dist/native/p-d0ef1bbb.entry.js +2 -0
- package/dist/native/p-d0ef1bbb.entry.js.map +1 -0
- package/dist/native/p-d88c416f.entry.js +2 -0
- package/dist/native/{p-2197ffdf.entry.js.map → p-d88c416f.entry.js.map} +1 -1
- package/dist/native/{p-348c6bb4.entry.js → p-e603c6ed.entry.js} +2 -2
- package/dist/native/p-e765a624.entry.js +2 -0
- package/dist/native/{p-184032cb.entry.js.map → p-e765a624.entry.js.map} +1 -1
- package/dist/native/{p-9f451b8a.entry.js → p-e7a929e7.entry.js} +3 -3
- package/dist/native/{p-9f451b8a.entry.js.map → p-e7a929e7.entry.js.map} +1 -1
- package/dist/native/p-f0cbfb3d.entry.js +2 -0
- package/dist/native/{p-b58fb522.entry.js.map → p-f0cbfb3d.entry.js.map} +1 -1
- package/dist/types/components/nv-icon/nv-icons.d.ts +1 -1
- package/dist/types/components/nv-popover/nv-popover.d.ts +11 -1
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +11 -2
- package/dist/types/components.d.ts +20 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/vscode-data.json +40 -16
- package/hydrate/index.js +56 -28
- package/hydrate/index.mjs +56 -28
- package/package.json +5 -1
- package/dist/cjs/constants-3b6beb66.js.map +0 -1
- package/dist/components/p-195f46f3.js.map +0 -1
- package/dist/components/p-8011513c.js +0 -189
- package/dist/components/p-a1fe0a5d.js +0 -88
- package/dist/components/p-a1fe0a5d.js.map +0 -1
- package/dist/components/p-a3ddec4c.js.map +0 -1
- package/dist/components/p-f47a1e1e.js.map +0 -1
- package/dist/esm/constants-23aaef7b.js.map +0 -1
- package/dist/native/p-019d164d.entry.js +0 -2
- package/dist/native/p-0ef94dae.entry.js +0 -2
- package/dist/native/p-184032cb.entry.js +0 -2
- package/dist/native/p-2197ffdf.entry.js +0 -2
- package/dist/native/p-397c0fca.entry.js +0 -2
- package/dist/native/p-3da64006.entry.js +0 -2
- package/dist/native/p-3da64006.entry.js.map +0 -1
- package/dist/native/p-3ed84cd9.entry.js +0 -2
- package/dist/native/p-4302824a.entry.js +0 -2
- package/dist/native/p-4302824a.entry.js.map +0 -1
- package/dist/native/p-44dd9a4c.entry.js +0 -2
- package/dist/native/p-4f4ed012.entry.js +0 -2
- package/dist/native/p-553778e6.entry.js +0 -2
- package/dist/native/p-553778e6.entry.js.map +0 -1
- package/dist/native/p-888ad58e.entry.js.map +0 -1
- package/dist/native/p-8a577f91.entry.js +0 -2
- package/dist/native/p-8a577f91.entry.js.map +0 -1
- package/dist/native/p-9991116a.entry.js +0 -2
- package/dist/native/p-ad2cc829.entry.js +0 -2
- package/dist/native/p-b58fb522.entry.js +0 -2
- package/dist/native/p-ba9906b7.entry.js +0 -2
- package/dist/native/p-fb672f90.entry.js +0 -2
- /package/dist/native/{p-62032cd9.entry.js.map → p-38af3aaf.entry.js.map} +0 -0
- /package/dist/native/{p-aacd8789.entry.js.map → p-3a8f65a9.entry.js.map} +0 -0
- /package/dist/native/{p-676447d7.entry.js.map → p-a63929db.entry.js.map} +0 -0
- /package/dist/native/{p-348c6bb4.entry.js.map → p-e603c6ed.entry.js.map} +0 -0
|
@@ -6,7 +6,7 @@ const index = require('./index-c56424e5.js');
|
|
|
6
6
|
const clsx = require('./clsx-fc789adc.js');
|
|
7
7
|
const v4 = require('./v4-7014b8b0.js');
|
|
8
8
|
|
|
9
|
-
const nvToggleCss = "nv-toggle{display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-toggle:not([disabled],[readonly]) input,nv-toggle:not([disabled],[readonly]) label{cursor:pointer}nv-toggle.label-placement-before{flex-direction:row-reverse}nv-toggle[disabled]{opacity:0.5}nv-toggle label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-toggle label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-toggle .input-container{position:relative;color:var(--components-form-shape-foreground-default)}nv-toggle .input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--components-form-shape-foreground-disabled)}nv-toggle .input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-toggle-width);height:var(--form-toggle-height);flex-direction:column;align-items:flex-start;border-radius:var(--form-toggle-radius);border-width:var(--form-toggle-border-width);border-style:solid;border-color:var(--components-form-field-border-default);background:var(--components-form-field-background-default)}nv-toggle .input-container input[type=checkbox]::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-form-shape-foreground-switch-dot);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:25%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:hover{border-color:var(--components-form-field-border-hover)}nv-toggle .input-container input[type=checkbox]:focus{border-color:var(--components-form-field-border-default)}nv-toggle .input-container input[type=checkbox]:focus,nv-toggle .input-container input[type=checkbox]:focus-within{outline:none}nv-toggle .input-container input[type=checkbox]:focus-visible,nv-toggle .input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)
|
|
9
|
+
const nvToggleCss = "nv-toggle{display:inline-flex;align-items:flex-start;gap:var(--form-gap-x);position:relative}nv-toggle:not([disabled],[readonly]) input,nv-toggle:not([disabled],[readonly]) label{cursor:pointer}nv-toggle.label-placement-before{flex-direction:row-reverse}nv-toggle[disabled]{opacity:0.5}nv-toggle label{align-self:stretch;color:var(--components-form-text-label-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-label-font-size);font-style:normal;font-weight:500;line-height:var(--form-label-line-height)}nv-toggle label.visually-hidden{position:absolute;padding:0;border:0;overflow:hidden;white-space:nowrap;width:1px;height:1px;margin:-1px;clip:rect(0, 0, 0, 0)}nv-toggle .input-container{position:relative;color:var(--components-form-shape-foreground-default)}nv-toggle .input-container:has(input[type=checkbox]:disabled:not([readonly])){color:var(--components-form-shape-foreground-disabled)}nv-toggle .input-container input[type=checkbox]{appearance:none;position:relative;display:flex;width:var(--form-toggle-width);height:var(--form-toggle-height);flex-direction:column;align-items:flex-start;border-radius:var(--form-toggle-radius);border-width:var(--form-toggle-border-width);border-style:solid;border-color:var(--components-form-field-border-default);background:var(--components-form-field-background-default)}nv-toggle .input-container input[type=checkbox]::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-form-shape-foreground-switch-dot);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:25%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:hover{border-color:var(--components-form-field-border-hover)}nv-toggle .input-container input[type=checkbox]:focus{border-color:var(--components-form-field-border-default)}nv-toggle .input-container input[type=checkbox]:focus,nv-toggle .input-container input[type=checkbox]:focus-within{outline:none}nv-toggle .input-container input[type=checkbox]:focus-visible,nv-toggle .input-container input[type=checkbox]:has(:focus-visible){outline:calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-toggle .input-container input[type=checkbox]:checked{background:var(--components-form-field-background-checked);border-color:var(--components-form-field-background-checked)}nv-toggle .input-container input[type=checkbox]:checked::after{content:\"\";display:block;width:var(--form-toggle-switch-dot-default);height:var(--form-toggle-switch-dot-default);background-color:var(--components-form-shape-foreground-default);border-radius:var(--radius-rounded-full);position:absolute;top:50%;left:75%;transform:translate(-50%, -50%)}nv-toggle .input-container input[type=checkbox]:checked:focus{background:var(--components-form-field-background-checked);border-color:var(--components-form-field-border-focus)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]){box-shadow:unset;background:var(--components-form-field-background-disabled);border-color:var(--components-form-field-border-default)}nv-toggle .input-container input[type=checkbox]:disabled:not([readonly]):checked::after{background-color:var(--components-form-shape-foreground-disabled)}nv-toggle .description{align-self:stretch;color:var(--components-form-text-description-default);font-family:\"TT Norms Pro\", sans-serif;font-size:var(--form-description-font-size);font-style:normal;font-weight:450;line-height:var(--form-description-line-height)}nv-toggle .text-container{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0}";
|
|
10
10
|
const NvToggleStyle0 = nvToggleCss;
|
|
11
11
|
|
|
12
12
|
const NvToggle = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"nv-toggle.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,WAAW,GAAG,mpHAAmpH,CAAC;AACxqH,uBAAe,WAAW;;MCyBb,QAAQ;IANrB;;;;;;;;;;;QAmBW,YAAO,GAAWA,KAAM,EAAE,CAAC;;;;;QAgC3B,cAAS,GAAY,KAAK,CAAC;;QAWpC,YAAO,GAAY,KAAK,CAAC;;QAIhB,aAAQ,GAAY,KAAK,CAAC;;;;;QAO1B,aAAQ,GAAY,KAAK,CAAC;KA2FpC;;;;;;;;IArEC,gBAAgB,CAAC,OAAgB;QAC/B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACnC;;;;;;IAQD,YAAY,CAAC,KAAY;QACvB,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B,CAAC;QAEhD,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,IAAI,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,OAAO,EAAE;YAC5D,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;gBAClC,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO;aACR;YAED,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;SAC/B;KACF;;;;IAMD,MAAM;QACJ,QACEC,QAACC,UAAI,qDACH,KAAK,EAAEC,SAAI,CACT,IAAI,CAAC,cAAc,KAAK,QAAQ,IAAI,wBAAwB,CAC7D,IAEDF,kEAAK,KAAK,EAAC,iBAAiB,IAC1BA,oEACE,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,IAAI,CAAC,OAAO,EAChB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAC,KAAK,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAC9B,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACvB,CACE,EAENA,kEAAK,KAAK,EAAC,gBAAgB,IACxB,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,MACrDA,oEACE,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAEE,SAAI,CAAC,IAAI,CAAC,SAAS,IAAI,iBAAiB,CAAC,IAEhDF,mEAAM,IAAI,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAQ,CAChC,CACT,EAEA,CAAC,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,sBAAsB,CAAC,MAC7CA,kEAAK,KAAK,EAAC,aAAa,IACtBA,mEAAM,IAAI,EAAC,aAAa,IAAE,IAAI,CAAC,WAAW,CAAQ,CAC9C,CACP,CACG,CACD,EACP;KACH;;;;;;;;;;;","names":["uuidv4","h","Host","clsx"],"sources":["src/components/nv-toggle/nv-toggle.scss?tag=nv-toggle","src/components/nv-toggle/nv-toggle.tsx"],"sourcesContent":["@use \"../../styles/utils\" as utils;\n@import \"../../styles/focus-ring\";\n\n@mixin root-styles() {\n display: inline-flex;\n align-items: flex-start;\n gap: var(--form-gap-x);\n position: relative;\n\n &:not([disabled], [readonly]) {\n input,\n label {\n cursor: pointer;\n }\n }\n}\n\n@mixin label-before-styles() {\n flex-direction: row-reverse;\n}\n\n@mixin label-styles() {\n align-self: stretch;\n color: var(--components-form-text-label-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-label-font-size);\n font-style: normal;\n font-weight: 500;\n line-height: var(--form-label-line-height);\n}\n\n@mixin description-styles() {\n align-self: stretch;\n color: var(--components-form-text-description-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-description-font-size);\n font-style: normal;\n font-weight: 450;\n line-height: var(--form-description-line-height);\n}\n\n@mixin text-container-styles() {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1 0 0;\n}\n\n@mixin input-container-styles() {\n position: relative;\n color: var(--components-form-shape-foreground-default);\n\n &:has(input[type=\"checkbox\"]:disabled:not([readonly])) {\n color: var(--components-form-shape-foreground-disabled);\n }\n}\n\n@mixin input-styles() {\n appearance: none;\n position: relative;\n display: flex;\n width: var(--form-toggle-width);\n height: var(--form-toggle-height);\n flex-direction: column;\n align-items: flex-start;\n border-radius: var(--form-toggle-radius);\n border-width: var(--form-toggle-border-width);\n border-style: solid;\n border-color: var(--components-form-field-border-default);\n background: var(--components-form-field-background-default);\n\n &::after {\n content: '';\n display: block;\n width: var(--form-toggle-switch-dot-default);\n height: var(--form-toggle-switch-dot-default);\n background-color: var(--components-form-shape-foreground-switch-dot);\n border-radius: var(--radius-rounded-full);\n position: absolute;\n top: 50%;\n left: 25%;\n transform: translate(-50%, -50%);\n }\n\n &:hover {\n border-color: var(--components-form-field-border-hover);\n }\n\n &:focus {\n border-color: var(--components-form-field-border-default);\n }\n\n @include focus-ring();\n\n &:checked {\n background: var(--components-form-field-background-checked);\n border-color: var(--components-form-field-background-checked);\n\n &::after {\n content: '';\n display: block;\n width: var(--form-toggle-switch-dot-default);\n height: var(--form-toggle-switch-dot-default);\n background-color: var(--components-form-shape-foreground-default);\n border-radius: var(--radius-rounded-full);\n position: absolute;\n top: 50%;\n left: 75%;\n transform: translate(-50%, -50%);\n }\n\n &:focus {\n background: var(--components-form-field-background-checked);\n border-color: var(--components-form-field-border-focus);\n }\n }\n\n &:disabled:not([readonly]) {\n box-shadow: unset;\n background: var(--components-form-field-background-disabled);\n border-color: var(--components-form-field-border-default);\n\n &:checked {\n &::after {\n background-color: var(--components-form-shape-foreground-disabled);\n }\n }\n }\n}\n\nnv-toggle {\n @include root-styles();\n\n &.label-placement-before {\n @include label-before-styles();\n }\n\n &[disabled] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n // opacity: var(--components-form-opacity-disabled); Error: Invalid value for --components-form-opacity-disabled (expected a <number> but got \"50px\")\n opacity: 0.5;\n }\n label {\n @include label-styles();\n\n &.visually-hidden {\n @include utils.visually-hidden();\n }\n }\n\n .input-container {\n @include input-container-styles();\n\n input[type=\"checkbox\"] {\n @include input-styles();\n }\n }\n\n .description {\n @include description-styles();\n }\n\n .text-container {\n @include text-container-styles();\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Watch,\n Event,\n EventEmitter,\n Listen,\n} from '@stencil/core';\nimport clsx from 'clsx';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { type LabelPlacement } from '../../utils/constants';\n\n/**\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n */\n@Component({\n tag: 'nv-toggle',\n styleUrl: 'nv-toggle.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class NvToggle {\n @Element() el!: HTMLNvToggleElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the radio button’s input element and the for attribute of\n * the associated label. If no ID is provided, a random one will be\n * automatically generated to ensure unique identification, facilitating\n * proper label association and accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * The name attribute for the toggle input, used to reference the form data\n * after submission.\n */\n @Prop({ reflect: true })\n readonly name?: string;\n\n /**\n * The value attribute of the toggle input, representing the value sent on\n * form submission when the toggle is checked.\n */\n @Prop({ reflect: true })\n readonly value?: string;\n\n /** The label displayed next to the toggle.*/\n @Prop({ reflect: true })\n readonly label?: string;\n\n /**\n * Determines the position of the label relative to the toggle, either\n * 'start' (before) or 'end' (after).\n */\n @Prop({ reflect: true })\n readonly labelPlacement: `${LabelPlacement}`;\n\n /**\n * Hides the label visually while still keeping it available for screen\n * readers.\n */\n @Prop({ reflect: true })\n readonly hideLabel: boolean = false;\n\n /**\n * A description providing additional context or information about the\n * toggle.\n */\n @Prop({ reflect: true })\n readonly description?: string;\n\n /** Indicates whether the toggle is checked or not. */\n @Prop({ reflect: true, mutable: true })\n checked: boolean = false;\n\n /** Disables the toggle, preventing user interaction. */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Sets the toggle to read-only, preventing user changes but still allowing\n * focus and selection of text.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emits when the checked state changes.\n * @bind checked\n */\n @Event()\n checkedChanged: EventEmitter<boolean>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region WATCHERS\n\n /**\n * Watches for changes to the checked state and emits the new value.\n * @param {boolean} checked - The new value of the checked state.\n */\n @Watch('checked')\n onCheckedChanged(checked: boolean) {\n this.checkedChanged.emit(checked);\n }\n\n /**\n * Listens for the change event on the toggle input element and updates the checked state.\n * the checked state of the host elements.\n * @param {Event} event - The change event.\n */\n @Listen('change')\n handleChange(event: Event) {\n const target = event.target as HTMLInputElement;\n\n if (target.type === 'checkbox' && target.id === this.inputId) {\n if (this.readonly || this.disabled) {\n event.preventDefault();\n return;\n }\n\n this.checked = target.checked;\n }\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n class={clsx(\n this.labelPlacement === 'before' && 'label-placement-before',\n )}\n >\n <div class=\"input-container\">\n <input\n type=\"checkbox\"\n id={this.inputId}\n name={this.name}\n autocomplete=\"off\"\n value={this.value}\n checked={Boolean(this.checked)}\n disabled={this.disabled || this.readonly}\n readonly={this.readonly}\n />\n </div>\n\n <div class=\"text-container\">\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label\n htmlFor={this.inputId}\n class={clsx(this.hideLabel && 'visually-hidden')}\n >\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n </div>\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"],"version":3}
|
|
1
|
+
{"file":"nv-toggle.entry.cjs.js","mappings":";;;;;;;;AAAA,MAAM,WAAW,GAAG,uoHAAuoH,CAAC;AAC5pH,uBAAe,WAAW;;MCyBb,QAAQ;IANrB;;;;;;;;;;;QAmBW,YAAO,GAAWA,KAAM,EAAE,CAAC;;;;;QAgC3B,cAAS,GAAY,KAAK,CAAC;;QAWpC,YAAO,GAAY,KAAK,CAAC;;QAIhB,aAAQ,GAAY,KAAK,CAAC;;;;;QAO1B,aAAQ,GAAY,KAAK,CAAC;KA2FpC;;;;;;;;IArEC,gBAAgB,CAAC,OAAgB;QAC/B,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KACnC;;;;;;IAQD,YAAY,CAAC,KAAY;QACvB,MAAM,MAAM,GAAG,KAAK,CAAC,MAA0B,CAAC;QAEhD,IAAI,MAAM,CAAC,IAAI,KAAK,UAAU,IAAI,MAAM,CAAC,EAAE,KAAK,IAAI,CAAC,OAAO,EAAE;YAC5D,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EAAE;gBAClC,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO;aACR;YAED,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;SAC/B;KACF;;;;IAMD,MAAM;QACJ,QACEC,QAACC,UAAI,qDACH,KAAK,EAAEC,SAAI,CACT,IAAI,CAAC,cAAc,KAAK,QAAQ,IAAI,wBAAwB,CAC7D,IAEDF,kEAAK,KAAK,EAAC,iBAAiB,IAC1BA,oEACE,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,IAAI,CAAC,OAAO,EAChB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,YAAY,EAAC,KAAK,EAClB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,EAC9B,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,EACxC,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACvB,CACE,EAENA,kEAAK,KAAK,EAAC,gBAAgB,IACxB,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,gBAAgB,CAAC,MACrDA,oEACE,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAEE,SAAI,CAAC,IAAI,CAAC,SAAS,IAAI,iBAAiB,CAAC,IAEhDF,mEAAM,IAAI,EAAC,OAAO,IAAE,IAAI,CAAC,KAAK,CAAQ,CAChC,CACT,EAEA,CAAC,IAAI,CAAC,WAAW;YAChB,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,sBAAsB,CAAC,MAC7CA,kEAAK,KAAK,EAAC,aAAa,IACtBA,mEAAM,IAAI,EAAC,aAAa,IAAE,IAAI,CAAC,WAAW,CAAQ,CAC9C,CACP,CACG,CACD,EACP;KACH;;;;;;;;;;;","names":["uuidv4","h","Host","clsx"],"sources":["src/components/nv-toggle/nv-toggle.scss?tag=nv-toggle","src/components/nv-toggle/nv-toggle.tsx"],"sourcesContent":["@use \"../../styles/utils\" as utils;\n@import \"../../styles/focus-ring\";\n\n@mixin root-styles() {\n display: inline-flex;\n align-items: flex-start;\n gap: var(--form-gap-x);\n position: relative;\n\n &:not([disabled], [readonly]) {\n input,\n label {\n cursor: pointer;\n }\n }\n}\n\n@mixin label-before-styles() {\n flex-direction: row-reverse;\n}\n\n@mixin label-styles() {\n align-self: stretch;\n color: var(--components-form-text-label-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-label-font-size);\n font-style: normal;\n font-weight: 500;\n line-height: var(--form-label-line-height);\n}\n\n@mixin description-styles() {\n align-self: stretch;\n color: var(--components-form-text-description-default);\n font-family: \"TT Norms Pro\", sans-serif;\n font-size: var(--form-description-font-size);\n font-style: normal;\n font-weight: 450;\n line-height: var(--form-description-line-height);\n}\n\n@mixin text-container-styles() {\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n flex: 1 0 0;\n}\n\n@mixin input-container-styles() {\n position: relative;\n color: var(--components-form-shape-foreground-default);\n\n &:has(input[type=\"checkbox\"]:disabled:not([readonly])) {\n color: var(--components-form-shape-foreground-disabled);\n }\n}\n\n@mixin input-styles() {\n appearance: none;\n position: relative;\n display: flex;\n width: var(--form-toggle-width);\n height: var(--form-toggle-height);\n flex-direction: column;\n align-items: flex-start;\n border-radius: var(--form-toggle-radius);\n border-width: var(--form-toggle-border-width);\n border-style: solid;\n border-color: var(--components-form-field-border-default);\n background: var(--components-form-field-background-default);\n\n &::after {\n content: '';\n display: block;\n width: var(--form-toggle-switch-dot-default);\n height: var(--form-toggle-switch-dot-default);\n background-color: var(--components-form-shape-foreground-switch-dot);\n border-radius: var(--radius-rounded-full);\n position: absolute;\n top: 50%;\n left: 25%;\n transform: translate(-50%, -50%);\n }\n\n &:hover {\n border-color: var(--components-form-field-border-hover);\n }\n\n &:focus {\n border-color: var(--components-form-field-border-default);\n }\n\n @include focus-ring();\n\n &:checked {\n background: var(--components-form-field-background-checked);\n border-color: var(--components-form-field-background-checked);\n\n &::after {\n content: '';\n display: block;\n width: var(--form-toggle-switch-dot-default);\n height: var(--form-toggle-switch-dot-default);\n background-color: var(--components-form-shape-foreground-default);\n border-radius: var(--radius-rounded-full);\n position: absolute;\n top: 50%;\n left: 75%;\n transform: translate(-50%, -50%);\n }\n\n &:focus {\n background: var(--components-form-field-background-checked);\n border-color: var(--components-form-field-border-focus);\n }\n }\n\n &:disabled:not([readonly]) {\n box-shadow: unset;\n background: var(--components-form-field-background-disabled);\n border-color: var(--components-form-field-border-default);\n\n &:checked {\n &::after {\n background-color: var(--components-form-shape-foreground-disabled);\n }\n }\n }\n}\n\nnv-toggle {\n @include root-styles();\n\n &.label-placement-before {\n @include label-before-styles();\n }\n\n &[disabled] {\n // TODO: Find a way to use the --components-form-opacity-disabled variable properly, right now it outputs a value of 50px instead of 0.5.\n // opacity: var(--components-form-opacity-disabled); Error: Invalid value for --components-form-opacity-disabled (expected a <number> but got \"50px\")\n opacity: 0.5;\n }\n label {\n @include label-styles();\n\n &.visually-hidden {\n @include utils.visually-hidden();\n }\n }\n\n .input-container {\n @include input-container-styles();\n\n input[type=\"checkbox\"] {\n @include input-styles();\n }\n }\n\n .description {\n @include description-styles();\n }\n\n .text-container {\n @include text-container-styles();\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n Element,\n Watch,\n Event,\n EventEmitter,\n Listen,\n} from '@stencil/core';\nimport clsx from 'clsx';\nimport { v4 as uuidv4 } from 'uuid';\n\nimport { type LabelPlacement } from '../../utils/constants';\n\n/**\n * @slot label - Content to be placed as the label, will override the label prop.\n * @slot description - Content to be placed as the description, will override the description prop.\n */\n@Component({\n tag: 'nv-toggle',\n styleUrl: 'nv-toggle.scss',\n shadow: false,\n formAssociated: true,\n})\nexport class NvToggle {\n @Element() el!: HTMLNvToggleElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Sets the ID for the radio button’s input element and the for attribute of\n * the associated label. If no ID is provided, a random one will be\n * automatically generated to ensure unique identification, facilitating\n * proper label association and accessibility.\n */\n @Prop({ reflect: true })\n readonly inputId: string = uuidv4();\n\n /**\n * The name attribute for the toggle input, used to reference the form data\n * after submission.\n */\n @Prop({ reflect: true })\n readonly name?: string;\n\n /**\n * The value attribute of the toggle input, representing the value sent on\n * form submission when the toggle is checked.\n */\n @Prop({ reflect: true })\n readonly value?: string;\n\n /** The label displayed next to the toggle.*/\n @Prop({ reflect: true })\n readonly label?: string;\n\n /**\n * Determines the position of the label relative to the toggle, either\n * 'start' (before) or 'end' (after).\n */\n @Prop({ reflect: true })\n readonly labelPlacement: `${LabelPlacement}`;\n\n /**\n * Hides the label visually while still keeping it available for screen\n * readers.\n */\n @Prop({ reflect: true })\n readonly hideLabel: boolean = false;\n\n /**\n * A description providing additional context or information about the\n * toggle.\n */\n @Prop({ reflect: true })\n readonly description?: string;\n\n /** Indicates whether the toggle is checked or not. */\n @Prop({ reflect: true, mutable: true })\n checked: boolean = false;\n\n /** Disables the toggle, preventing user interaction. */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Sets the toggle to read-only, preventing user changes but still allowing\n * focus and selection of text.\n */\n @Prop({ reflect: true })\n readonly readonly: boolean = false;\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emits when the checked state changes.\n * @bind checked\n */\n @Event()\n checkedChanged: EventEmitter<boolean>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region WATCHERS\n\n /**\n * Watches for changes to the checked state and emits the new value.\n * @param {boolean} checked - The new value of the checked state.\n */\n @Watch('checked')\n onCheckedChanged(checked: boolean) {\n this.checkedChanged.emit(checked);\n }\n\n /**\n * Listens for the change event on the toggle input element and updates the checked state.\n * the checked state of the host elements.\n * @param {Event} event - The change event.\n */\n @Listen('change')\n handleChange(event: Event) {\n const target = event.target as HTMLInputElement;\n\n if (target.type === 'checkbox' && target.id === this.inputId) {\n if (this.readonly || this.disabled) {\n event.preventDefault();\n return;\n }\n\n this.checked = target.checked;\n }\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n class={clsx(\n this.labelPlacement === 'before' && 'label-placement-before',\n )}\n >\n <div class=\"input-container\">\n <input\n type=\"checkbox\"\n id={this.inputId}\n name={this.name}\n autocomplete=\"off\"\n value={this.value}\n checked={Boolean(this.checked)}\n disabled={this.disabled || this.readonly}\n readonly={this.readonly}\n />\n </div>\n\n <div class=\"text-container\">\n {(this.label || this.el.querySelector('[slot=\"label\"]')) && (\n <label\n htmlFor={this.inputId}\n class={clsx(this.hideLabel && 'visually-hidden')}\n >\n <slot name=\"label\">{this.label}</slot>\n </label>\n )}\n\n {(this.description ||\n this.el.querySelector('[slot=\"description\"]')) && (\n <div class=\"description\">\n <slot name=\"description\">{this.description}</slot>\n </div>\n )}\n </div>\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-c56424e5.js');
|
|
6
6
|
|
|
7
|
-
const nvTogglebuttonCss = "nv-togglebutton{display:inline-flex;justify-content:center;align-items:center}nv-togglebutton[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);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);padding-top:calc(var(--togglegroup-xs-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-xs-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-xs-button-radius));border-width:0}nv-togglebutton[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-togglebutton[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);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);padding-top:calc(var(--togglegroup-sm-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-sm-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-sm-button-radius));border-width:0}nv-togglebutton[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-togglebutton[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);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);padding-top:calc(var(--togglegroup-md-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-md-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-md-button-radius));border-width:0}nv-togglebutton[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-togglebutton[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);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);padding-top:calc(var(--togglegroup-lg-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-lg-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-lg-button-radius));border-width:0}nv-togglebutton[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-togglebutton[emphasis=high]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-togglebutton[emphasis=high]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-togglebutton[emphasis=high]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-togglebutton[emphasis=high]:focus,nv-togglebutton[emphasis=high]:focus-within{outline:none}nv-togglebutton[emphasis=high]:focus-visible,nv-togglebutton[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)
|
|
7
|
+
const nvTogglebuttonCss = "nv-togglebutton{display:inline-flex;justify-content:center;align-items:center}nv-togglebutton:focus-visible,nv-togglebutton:has(:focus-visible){z-index:1}nv-togglebutton[size=xs]{padding:var(--button-xs-padding-y) var(--button-xs-padding-x);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);padding-top:calc(var(--togglegroup-xs-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-xs-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-xs-button-radius));border-width:0}nv-togglebutton[size=xs] nv-icon>svg{width:var(--spacing-3);height:var(--spacing-3);stroke-width:1.2px}nv-togglebutton[size=sm]{padding:var(--button-sm-padding-y) var(--button-sm-padding-x);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);padding-top:calc(var(--togglegroup-sm-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-sm-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-sm-button-radius));border-width:0}nv-togglebutton[size=sm] nv-icon>svg{width:var(--spacing-4);height:var(--spacing-4);stroke-width:1.5px}nv-togglebutton[size=md]{padding:var(--button-md-padding-y) var(--button-md-padding-x);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);padding-top:calc(var(--togglegroup-md-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-md-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-md-button-radius));border-width:0}nv-togglebutton[size=md] nv-icon>svg{width:var(--spacing-5);height:var(--spacing-5);stroke-width:1.6px}nv-togglebutton[size=lg]{padding:var(--button-lg-padding-y) var(--button-lg-padding-x);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);padding-top:calc(var(--togglegroup-lg-button-padding-y) - 1px);padding-bottom:calc(var(--togglegroup-lg-button-padding-y) - 1px);border-radius:calc(var(--togglegroup-lg-button-radius));border-width:0}nv-togglebutton[size=lg] nv-icon>svg{width:var(--spacing-6);height:var(--spacing-6);stroke-width:1.8px}nv-togglebutton[emphasis=high]{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-togglebutton[emphasis=high]:hover{background:var(--components-button-low-background-hover);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text-hover)}nv-togglebutton[emphasis=high]:active{background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-togglebutton[emphasis=high]:focus,nv-togglebutton[emphasis=high]:focus-within{outline:none}nv-togglebutton[emphasis=high]:focus-visible,nv-togglebutton[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-togglebutton[emphasis=high]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-togglebutton[emphasis=high][active]:not([active=false]){background:var(--components-button-low-background-active);border:1px solid var(--components-button-low-border-active);color:var(--components-button-low-text-active)}nv-togglebutton[emphasis=low]{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-togglebutton[emphasis=low]:hover{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}nv-togglebutton[emphasis=low]:active{background:var(--components-button-lower-background-active);border:1px solid var(--components-button-lower-border-active);color:var(--components-button-lower-text-active)}nv-togglebutton[emphasis=low]:focus,nv-togglebutton[emphasis=low]:focus-within{outline:none}nv-togglebutton[emphasis=low]:focus-visible,nv-togglebutton[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-togglebutton[emphasis=low]:disabled:not([disabled=false]){opacity:0.5;cursor:not-allowed;box-shadow:none}nv-togglebutton[emphasis=low][active]:not([active=false]),nv-togglebutton[emphasis=low]:active{background:var(--components-button-lower-background-hover);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text-hover)}";
|
|
8
8
|
const NvTogglebuttonStyle0 = nvTogglebuttonCss;
|
|
9
9
|
|
|
10
10
|
const NvTogglebutton = class {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"nv-togglebutton.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,
|
|
1
|
+
{"file":"nv-togglebutton.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,iBAAiB,GAAG,+rJAA+rJ,CAAC;AAC1tJ,6BAAe,iBAAiB;;MCUnB,cAAc;IAL3B;;;;;;;;;;QAeW,SAAI,GAA0B,IAAI,CAAC;;;;QAanC,aAAQ,GAAY,KAAK,CAAC;;;;;QAO1B,WAAM,GAAY,KAAK,CAAC;;;;QAMxB,aAAQ,GAA8B,MAAM,CAAC;;;;QAM9C,gBAAW,GAAG;YACpB,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAE1B,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;gBAChB,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,MAAM,EAAE,IAAI,CAAC,MAAM;aACpB,CAAC,CAAC;SACJ,CAAC;KAiCH;;;;IAbC,MAAM;QACJ,QACEA,QAACC,UAAI,qDACH,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAC,GAAG,kBACE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,EACjC,OAAO,EAAE,IAAI,CAAC,WAAW,IAEzBD,oEAAa,CACR,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/nv-togglebutton/styles/nv-togglebutton.scss?tag=nv-togglebutton","src/components/nv-togglebutton/nv-togglebutton.tsx"],"sourcesContent":["@use \"./mixins\" as *;\n\nnv-togglebutton {\n @include root-styles();\n\n @each $size in $sizes {\n &[size=\"#{$size}\"] {\n @include button-size-styles($size);\n @include togglegroup-button-size-styles($size);\n }\n }\n\n &[emphasis=\"high\"] {\n @include button-emphasis-styles('low');\n &[active]:not([active=\"false\"]) {\n @include button-active-styles('low');\n }\n }\n &[emphasis=\"low\"] {\n @include button-emphasis-styles('lower');\n &[active]:not([active=\"false\"]), &:active {\n @include button-hover-styles('lower');\n }\n }\n}\n","import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { ToggleButtonEmphasis, ToggleButtonSize } from '../../utils/constants';\n\n/**\n * @slot default - Child content of the toggle button.\n */\n@Component({\n tag: 'nv-togglebutton',\n styleUrl: 'styles/nv-togglebutton.scss',\n shadow: false,\n})\nexport class NvTogglebutton {\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * Determines how large or small the togglebutton appears, allowing for\n * customization of the togglebutton's dimensions to fit different design\n * specifications and user needs.\n */\n @Prop({ reflect: true })\n readonly size: `${ToggleButtonSize}` = 'md';\n\n /**\n * The value to associated with the button when selected in a\n * Togglebuttongroup.\n */\n @Prop({ reflect: true })\n readonly value: string;\n\n /**\n * Prevents all interaction, rendering the toggle in a non-interactive state.\n */\n @Prop({ reflect: true })\n readonly disabled: boolean = false;\n\n /**\n * Whether the button is active or not. Will not toggle automatically but\n * needs to be controlled externally.\n */\n @Prop({ reflect: true })\n readonly active: boolean = false;\n\n /**\n * Make it more or less visually prominent to users.\n */\n @Prop({ reflect: true })\n readonly emphasis: `${ToggleButtonEmphasis}` = 'high';\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region METHODS\n\n private handleClick = () => {\n if (this.disabled) return;\n\n this.toggled.emit({\n value: this.value,\n active: this.active,\n });\n };\n\n //#endregion METHODS\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the button is toggled.\n */\n @Event({ eventName: 'toggled' })\n toggled: EventEmitter<{\n /** The value associated with the button. */\n value: string;\n /** If the button is active when clicked. */\n active: boolean;\n }>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region RENDER\n render() {\n return (\n <Host\n role=\"button\"\n tabindex=\"0\"\n aria-pressed={String(this.active)}\n onClick={this.handleClick}\n >\n <slot></slot>\n </Host>\n );\n }\n // #endregion RENDER\n}\n"],"version":3}
|
|
@@ -20,9 +20,18 @@ const NvTooltip = class {
|
|
|
20
20
|
/**
|
|
21
21
|
* Controls how long (in milliseconds) the tooltip waits to show after you
|
|
22
22
|
* hover over or focus on an element. If you move away before the delay is up,
|
|
23
|
-
* the tooltip won
|
|
23
|
+
* the tooltip won't appear.
|
|
24
24
|
*/
|
|
25
25
|
this.enterDelay = 0;
|
|
26
|
+
/**
|
|
27
|
+
* Sets the positioning strategy for the tooltip. Options include:
|
|
28
|
+
* - `absolute`: Positions the tooltip relative to the trigger element
|
|
29
|
+
* (default).
|
|
30
|
+
* - `fixed`: Positions the tooltip relative to the viewport, useful when you
|
|
31
|
+
* need the tooltip to break out of overflow hidden containers, it will not
|
|
32
|
+
* scroll inside a scroll container due to the fixed positioning.
|
|
33
|
+
*/
|
|
34
|
+
this.strategy = 'absolute';
|
|
26
35
|
}
|
|
27
36
|
//#endregion EVENTS
|
|
28
37
|
/****************************************************************************/
|
|
@@ -37,7 +46,7 @@ const NvTooltip = class {
|
|
|
37
46
|
/****************************************************************************/
|
|
38
47
|
//#region RENDER
|
|
39
48
|
render() {
|
|
40
|
-
return (index.h(index.Host, { key: '
|
|
49
|
+
return (index.h(index.Host, { key: '02f95c0f1f41fe11785859fc8f1bf585cbe35af5' }, index.h("slot", { key: '338049b6a5ce354b5ddcba1f183488e2f6b2116e' }), index.h("nv-popover", { key: 'f2e82343908d4e59a3ecf93f791c2756f29714ae', triggerMode: "hover", hasArrow: true, placement: this.placement, strategy: this.strategy, triggerElement: this.triggerElement, groupName: 'tooltip', enterDelay: this.enterDelay }, index.h("p", { key: 'ee35eff1233d1d03accdff3260b6d71ef0815d47', slot: "content" }, this.message), index.h("slot", { key: '1a5cdc8a671ea9f3f84cb0414579b9a85a183630', name: "content" }))));
|
|
41
50
|
}
|
|
42
51
|
get el() { return index.getElement(this); }
|
|
43
52
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"nv-tooltip.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,YAAY,GAAG,4yBAA4yB,CAAC;AACl0B,wBAAe,YAAY;;MCmBd,SAAS;IALtB;;;;;;;;QAiCW,cAAS,GAAc,QAAQ,CAAC;;;;;;QAQhC,eAAU,GAAW,CAAC,CAAC;
|
|
1
|
+
{"file":"nv-tooltip.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,YAAY,GAAG,4yBAA4yB,CAAC;AACl0B,wBAAe,YAAY;;MCmBd,SAAS;IALtB;;;;;;;;QAiCW,cAAS,GAAc,QAAQ,CAAC;;;;;;QAQhC,eAAU,GAAW,CAAC,CAAC;;;;;;;;;QAWvB,aAAQ,GAAa,UAAU,CAAC;KAkD1C;;;;IAjCC,iBAAiB;QACf,IAAI,CAAC,IAAI,CAAC,cAAc;YACtB,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK;gBAC3D,OAAO,KAAK,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;aAC5C,CAAC,CAAC;KACN;;;;IAMD,MAAM;QACJ,QACEA,QAACC,UAAI,uDACHD,oEAAa,EAEbA,yEACE,WAAW,EAAC,OAAO,EACnB,QAAQ,QACR,SAAS,EAAE,IAAI,CAAC,SAAS,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,cAAc,EAAE,IAAI,CAAC,cAAc,EACnC,SAAS,EAAE,SAAS,EACpB,UAAU,EAAE,IAAI,CAAC,UAAU,IAE3BA,gEAAG,IAAI,EAAC,SAAS,IAAE,IAAI,CAAC,OAAO,CAAK,EACpCA,mEAAM,IAAI,EAAC,SAAS,GAAQ,CACjB,CACR,EACP;KACH;;;;;;;","names":["h","Host"],"sources":["src/components/nv-tooltip/nv-tooltip.scss?tag=nv-tooltip","src/components/nv-tooltip/nv-tooltip.tsx"],"sourcesContent":["@mixin root-styles() {\n display: inline-block;\n position: relative;\n user-select: none;\n &:has([fluid]:not([fluid='false'])) {\n display: block;\n }\n}\n\n@mixin tooltip-styles() {\n background: var(--components-tooltip-background);\n color: var(--components-tooltip-text);\n font-weight: var(--font-weight-medium-emphasis);\n padding: var(--tooltip-padding-y) var(--tooltip-padding-x);\n font-size: var(--tooltip-font-size);\n border-radius: var(--tooltip-radius);\n border: none;\n box-shadow:\n 0px var(--shadow-y-axis-lg-1) var(--shadow-blur-lg-1)\n var(--shadow-spread-lg-1) var(--shadow-color-opacity-1),\n 0px var(--shadow-y-axis-lg-2) var(--shadow-blur-lg-2)\n var(--shadow-spread-lg-2) var(--shadow-color-opacity-2);\n}\n\n@mixin arrow-styles() {\n background: var(--components-tooltip-background);\n box-shadow: none;\n border: none;\n}\n\nnv-tooltip {\n @include root-styles();\n\n nv-popover > [data-scope='popover'] {\n @include tooltip-styles();\n\n [data-scope='arrow'] {\n @include arrow-styles();\n }\n }\n}\n","import {\n Component,\n Host,\n h,\n Element,\n Prop,\n Event,\n EventEmitter,\n} from '@stencil/core';\nimport type { Placement, Strategy } from '@floating-ui/dom';\n\n/**\n * @slot default - Content to be placed as the trigger.\n * @slot content - Content to be placed within the popover. Use for custom html, will render under the message.\n */\n@Component({\n tag: 'nv-tooltip',\n styleUrl: 'nv-tooltip.scss',\n shadow: false,\n})\nexport class NvTooltip {\n @Element() el: HTMLNvTooltipElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n\n /**\n * @internal\n * Accepts a reference to the DOM element acting as the popover trigger. This\n * should be used when the slot for the trigger is not defined.\n */\n @Prop({ reflect: false, mutable: true })\n triggerElement: Element;\n\n /**\n * A string representing the text to be displayed inside the tooltip. This\n * content is shown when the tooltip is activated by the user, such as on\n * hover or focus events.\n */\n @Prop({ reflect: true })\n readonly message: string;\n\n /**\n * Decides where the tooltip shows up next to the element it’s linked to\n * (above, below, to the sides). If there isn’t enough room, it will adjust\n * it's position on the axis to fit on the screen, so users can always see it.\n */\n @Prop({ reflect: true })\n readonly placement: Placement = 'bottom';\n\n /**\n * Controls how long (in milliseconds) the tooltip waits to show after you\n * hover over or focus on an element. If you move away before the delay is up,\n * the tooltip won't appear.\n */\n @Prop({ reflect: true })\n readonly enterDelay: number = 0;\n\n /**\n * Sets the positioning strategy for the tooltip. Options include:\n * - `absolute`: Positions the tooltip relative to the trigger element\n * (default).\n * - `fixed`: Positions the tooltip relative to the viewport, useful when you\n * need the tooltip to break out of overflow hidden containers, it will not\n * scroll inside a scroll container due to the fixed positioning.\n */\n @Prop({ reflect: true })\n readonly strategy: Strategy = 'absolute';\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region EVENTS\n\n /**\n * Emitted when the tooltip is opened or closed. Bubbles up from the popover\n * element.\n */\n @Event()\n openChanged: EventEmitter<boolean>;\n\n //#endregion EVENTS\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillLoad() {\n if (!this.triggerElement)\n this.triggerElement = Array.from(this.el.children).find(child => {\n return child.getAttribute('slot') === null;\n });\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host>\n <slot></slot>\n\n <nv-popover\n triggerMode=\"hover\"\n hasArrow\n placement={this.placement}\n strategy={this.strategy}\n triggerElement={this.triggerElement}\n groupName={'tooltip'}\n enterDelay={this.enterDelay}\n >\n <p slot=\"content\">{this.message}</p>\n <slot name=\"content\"></slot>\n </nv-popover>\n </Host>\n );\n }\n\n //#endregion RENDER\n}\n"],"version":3}
|
|
@@ -25,7 +25,6 @@ nv-alert.feedback-information > .close:focus, nv-alert.feedback-information > .c
|
|
|
25
25
|
nv-alert.feedback-information > .close:focus-visible, nv-alert.feedback-information > .close:has(:focus-visible) {
|
|
26
26
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-information-border);
|
|
27
27
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
28
|
-
z-index: 111;
|
|
29
28
|
}
|
|
30
29
|
nv-alert.feedback-warning {
|
|
31
30
|
background-color: var(--components-alert-warning-background);
|
|
@@ -37,7 +36,6 @@ nv-alert.feedback-warning > .close:focus, nv-alert.feedback-warning > .close:foc
|
|
|
37
36
|
nv-alert.feedback-warning > .close:focus-visible, nv-alert.feedback-warning > .close:has(:focus-visible) {
|
|
38
37
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-warning-border);
|
|
39
38
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
40
|
-
z-index: 111;
|
|
41
39
|
}
|
|
42
40
|
nv-alert.feedback-error {
|
|
43
41
|
background-color: var(--components-alert-error-background);
|
|
@@ -49,7 +47,6 @@ nv-alert.feedback-error > .close:focus, nv-alert.feedback-error > .close:focus-w
|
|
|
49
47
|
nv-alert.feedback-error > .close:focus-visible, nv-alert.feedback-error > .close:has(:focus-visible) {
|
|
50
48
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-error-border);
|
|
51
49
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
52
|
-
z-index: 111;
|
|
53
50
|
}
|
|
54
51
|
nv-alert.feedback-success {
|
|
55
52
|
background-color: var(--components-alert-success-background);
|
|
@@ -61,7 +58,6 @@ nv-alert.feedback-success > .close:focus, nv-alert.feedback-success > .close:foc
|
|
|
61
58
|
nv-alert.feedback-success > .close:focus-visible, nv-alert.feedback-success > .close:has(:focus-visible) {
|
|
62
59
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-success-border);
|
|
63
60
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
64
|
-
z-index: 111;
|
|
65
61
|
}
|
|
66
62
|
nv-alert.feedback-neutral {
|
|
67
63
|
background-color: var(--components-alert-neutral-background);
|
|
@@ -73,7 +69,6 @@ nv-alert.feedback-neutral > .close:focus, nv-alert.feedback-neutral > .close:foc
|
|
|
73
69
|
nv-alert.feedback-neutral > .close:focus-visible, nv-alert.feedback-neutral > .close:has(:focus-visible) {
|
|
74
70
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--components-alert-neutral-border);
|
|
75
71
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
76
|
-
z-index: 111;
|
|
77
72
|
}
|
|
78
73
|
nv-alert > nv-icon.icon-information {
|
|
79
74
|
color: var(--components-alert-information-icon);
|
|
@@ -70,7 +70,6 @@ nv-badge.badge-1 .close:focus, nv-badge.badge-1 .close:focus-within {
|
|
|
70
70
|
nv-badge.badge-1 .close:focus-visible, nv-badge.badge-1 .close:has(:focus-visible) {
|
|
71
71
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-1-content);
|
|
72
72
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
73
|
-
z-index: 111;
|
|
74
73
|
}
|
|
75
74
|
nv-badge.badge-1 nv-icon {
|
|
76
75
|
color: var(--color-rainbow-1-icon);
|
|
@@ -86,7 +85,6 @@ nv-badge.badge-2 .close:focus, nv-badge.badge-2 .close:focus-within {
|
|
|
86
85
|
nv-badge.badge-2 .close:focus-visible, nv-badge.badge-2 .close:has(:focus-visible) {
|
|
87
86
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-2-content);
|
|
88
87
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
89
|
-
z-index: 111;
|
|
90
88
|
}
|
|
91
89
|
nv-badge.badge-2 nv-icon {
|
|
92
90
|
color: var(--color-rainbow-2-icon);
|
|
@@ -102,7 +100,6 @@ nv-badge.badge-3 .close:focus, nv-badge.badge-3 .close:focus-within {
|
|
|
102
100
|
nv-badge.badge-3 .close:focus-visible, nv-badge.badge-3 .close:has(:focus-visible) {
|
|
103
101
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-3-content);
|
|
104
102
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
105
|
-
z-index: 111;
|
|
106
103
|
}
|
|
107
104
|
nv-badge.badge-3 nv-icon {
|
|
108
105
|
color: var(--color-rainbow-3-icon);
|
|
@@ -118,7 +115,6 @@ nv-badge.badge-4 .close:focus, nv-badge.badge-4 .close:focus-within {
|
|
|
118
115
|
nv-badge.badge-4 .close:focus-visible, nv-badge.badge-4 .close:has(:focus-visible) {
|
|
119
116
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-4-content);
|
|
120
117
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
121
|
-
z-index: 111;
|
|
122
118
|
}
|
|
123
119
|
nv-badge.badge-4 nv-icon {
|
|
124
120
|
color: var(--color-rainbow-4-icon);
|
|
@@ -134,7 +130,6 @@ nv-badge.badge-5 .close:focus, nv-badge.badge-5 .close:focus-within {
|
|
|
134
130
|
nv-badge.badge-5 .close:focus-visible, nv-badge.badge-5 .close:has(:focus-visible) {
|
|
135
131
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-5-content);
|
|
136
132
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
137
|
-
z-index: 111;
|
|
138
133
|
}
|
|
139
134
|
nv-badge.badge-5 nv-icon {
|
|
140
135
|
color: var(--color-rainbow-5-icon);
|
|
@@ -150,7 +145,6 @@ nv-badge.badge-6 .close:focus, nv-badge.badge-6 .close:focus-within {
|
|
|
150
145
|
nv-badge.badge-6 .close:focus-visible, nv-badge.badge-6 .close:has(:focus-visible) {
|
|
151
146
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-6-content);
|
|
152
147
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
153
|
-
z-index: 111;
|
|
154
148
|
}
|
|
155
149
|
nv-badge.badge-6 nv-icon {
|
|
156
150
|
color: var(--color-rainbow-6-icon);
|
|
@@ -166,7 +160,6 @@ nv-badge.badge-7 .close:focus, nv-badge.badge-7 .close:focus-within {
|
|
|
166
160
|
nv-badge.badge-7 .close:focus-visible, nv-badge.badge-7 .close:has(:focus-visible) {
|
|
167
161
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-7-content);
|
|
168
162
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
169
|
-
z-index: 111;
|
|
170
163
|
}
|
|
171
164
|
nv-badge.badge-7 nv-icon {
|
|
172
165
|
color: var(--color-rainbow-7-icon);
|
|
@@ -182,7 +175,6 @@ nv-badge.badge-8 .close:focus, nv-badge.badge-8 .close:focus-within {
|
|
|
182
175
|
nv-badge.badge-8 .close:focus-visible, nv-badge.badge-8 .close:has(:focus-visible) {
|
|
183
176
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-8-content);
|
|
184
177
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
185
|
-
z-index: 111;
|
|
186
178
|
}
|
|
187
179
|
nv-badge.badge-8 nv-icon {
|
|
188
180
|
color: var(--color-rainbow-8-icon);
|
|
@@ -198,7 +190,6 @@ nv-badge.badge-9 .close:focus, nv-badge.badge-9 .close:focus-within {
|
|
|
198
190
|
nv-badge.badge-9 .close:focus-visible, nv-badge.badge-9 .close:has(:focus-visible) {
|
|
199
191
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-9-content);
|
|
200
192
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
201
|
-
z-index: 111;
|
|
202
193
|
}
|
|
203
194
|
nv-badge.badge-9 nv-icon {
|
|
204
195
|
color: var(--color-rainbow-9-icon);
|
|
@@ -214,7 +205,6 @@ nv-badge.badge-10 .close:focus, nv-badge.badge-10 .close:focus-within {
|
|
|
214
205
|
nv-badge.badge-10 .close:focus-visible, nv-badge.badge-10 .close:has(:focus-visible) {
|
|
215
206
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-rainbow-10-content);
|
|
216
207
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
217
|
-
z-index: 111;
|
|
218
208
|
}
|
|
219
209
|
nv-badge.badge-10 nv-icon {
|
|
220
210
|
color: var(--color-rainbow-10-icon);
|
|
@@ -230,7 +220,6 @@ nv-badge.badge-error .close:focus, nv-badge.badge-error .close:focus-within {
|
|
|
230
220
|
nv-badge.badge-error .close:focus-visible, nv-badge.badge-error .close:has(:focus-visible) {
|
|
231
221
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-feedback-error-low-content, var(--color-feedback-error-low-text));
|
|
232
222
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
233
|
-
z-index: 111;
|
|
234
223
|
}
|
|
235
224
|
nv-badge.badge-error nv-icon {
|
|
236
225
|
color: var(--color-feedback-error-low-icon);
|
|
@@ -246,7 +235,6 @@ nv-badge.badge-information .close:focus, nv-badge.badge-information .close:focus
|
|
|
246
235
|
nv-badge.badge-information .close:focus-visible, nv-badge.badge-information .close:has(:focus-visible) {
|
|
247
236
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-feedback-information-low-content, var(--color-feedback-information-low-text));
|
|
248
237
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
249
|
-
z-index: 111;
|
|
250
238
|
}
|
|
251
239
|
nv-badge.badge-information nv-icon {
|
|
252
240
|
color: var(--color-feedback-information-low-icon);
|
|
@@ -262,7 +250,6 @@ nv-badge.badge-neutral .close:focus, nv-badge.badge-neutral .close:focus-within
|
|
|
262
250
|
nv-badge.badge-neutral .close:focus-visible, nv-badge.badge-neutral .close:has(:focus-visible) {
|
|
263
251
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-feedback-neutral-low-content, var(--color-feedback-neutral-low-text));
|
|
264
252
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
265
|
-
z-index: 111;
|
|
266
253
|
}
|
|
267
254
|
nv-badge.badge-neutral nv-icon {
|
|
268
255
|
color: var(--color-feedback-neutral-low-icon);
|
|
@@ -278,7 +265,6 @@ nv-badge.badge-success .close:focus, nv-badge.badge-success .close:focus-within
|
|
|
278
265
|
nv-badge.badge-success .close:focus-visible, nv-badge.badge-success .close:has(:focus-visible) {
|
|
279
266
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-feedback-success-low-content, var(--color-feedback-success-low-text));
|
|
280
267
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
281
|
-
z-index: 111;
|
|
282
268
|
}
|
|
283
269
|
nv-badge.badge-success nv-icon {
|
|
284
270
|
color: var(--color-feedback-success-low-icon);
|
|
@@ -294,7 +280,6 @@ nv-badge.badge-warning .close:focus, nv-badge.badge-warning .close:focus-within
|
|
|
294
280
|
nv-badge.badge-warning .close:focus-visible, nv-badge.badge-warning .close:has(:focus-visible) {
|
|
295
281
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-feedback-warning-low-content, var(--color-feedback-warning-low-text));
|
|
296
282
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
297
|
-
z-index: 111;
|
|
298
283
|
}
|
|
299
284
|
nv-badge.badge-warning nv-icon {
|
|
300
285
|
color: var(--color-feedback-warning-low-icon);
|
|
@@ -310,7 +295,6 @@ nv-badge.badge-amber .close:focus, nv-badge.badge-amber .close:focus-within {
|
|
|
310
295
|
nv-badge.badge-amber .close:focus-visible, nv-badge.badge-amber .close:has(:focus-visible) {
|
|
311
296
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-amber-content, var(--color-rainbow-1-text));
|
|
312
297
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
313
|
-
z-index: 111;
|
|
314
298
|
}
|
|
315
299
|
nv-badge.badge-amber nv-icon {
|
|
316
300
|
color: var(--color-rainbow-1-icon);
|
|
@@ -326,7 +310,6 @@ nv-badge.badge-orange .close:focus, nv-badge.badge-orange .close:focus-within {
|
|
|
326
310
|
nv-badge.badge-orange .close:focus-visible, nv-badge.badge-orange .close:has(:focus-visible) {
|
|
327
311
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-orange-content, var(--color-rainbow-2-text));
|
|
328
312
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
329
|
-
z-index: 111;
|
|
330
313
|
}
|
|
331
314
|
nv-badge.badge-orange nv-icon {
|
|
332
315
|
color: var(--color-rainbow-2-icon);
|
|
@@ -342,7 +325,6 @@ nv-badge.badge-turquoise .close:focus, nv-badge.badge-turquoise .close:focus-wit
|
|
|
342
325
|
nv-badge.badge-turquoise .close:focus-visible, nv-badge.badge-turquoise .close:has(:focus-visible) {
|
|
343
326
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-turquoise-content, var(--color-rainbow-5-text));
|
|
344
327
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
345
|
-
z-index: 111;
|
|
346
328
|
}
|
|
347
329
|
nv-badge.badge-turquoise nv-icon {
|
|
348
330
|
color: var(--color-rainbow-5-icon);
|
|
@@ -358,7 +340,6 @@ nv-badge.badge-crimson .close:focus, nv-badge.badge-crimson .close:focus-within
|
|
|
358
340
|
nv-badge.badge-crimson .close:focus-visible, nv-badge.badge-crimson .close:has(:focus-visible) {
|
|
359
341
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-crimson-content, var(--color-rainbow-6-text));
|
|
360
342
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
361
|
-
z-index: 111;
|
|
362
343
|
}
|
|
363
344
|
nv-badge.badge-crimson nv-icon {
|
|
364
345
|
color: var(--color-rainbow-6-icon);
|
|
@@ -374,7 +355,6 @@ nv-badge.badge-lime .close:focus, nv-badge.badge-lime .close:focus-within {
|
|
|
374
355
|
nv-badge.badge-lime .close:focus-visible, nv-badge.badge-lime .close:has(:focus-visible) {
|
|
375
356
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-lime-content, var(--color-rainbow-9-text));
|
|
376
357
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
377
|
-
z-index: 111;
|
|
378
358
|
}
|
|
379
359
|
nv-badge.badge-lime nv-icon {
|
|
380
360
|
color: var(--color-rainbow-9-icon);
|
|
@@ -390,7 +370,6 @@ nv-badge.badge-petrol .close:focus, nv-badge.badge-petrol .close:focus-within {
|
|
|
390
370
|
nv-badge.badge-petrol .close:focus-visible, nv-badge.badge-petrol .close:has(:focus-visible) {
|
|
391
371
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-petrol-content, var(--color-rainbow-8-text));
|
|
392
372
|
outline-offset: calc(var(--focus-outline-offset) * 0.2);
|
|
393
|
-
z-index: 111;
|
|
394
373
|
}
|
|
395
374
|
nv-badge.badge-petrol nv-icon {
|
|
396
375
|
color: var(--color-rainbow-8-icon);
|
|
@@ -45,7 +45,6 @@ nv-breadcrumb ul button:focus-visible,
|
|
|
45
45
|
nv-breadcrumb ul button:has(:focus-visible) {
|
|
46
46
|
outline: calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);
|
|
47
47
|
outline-offset: calc(var(--focus-outline-offset) * 0.3);
|
|
48
|
-
z-index: 111;
|
|
49
48
|
}
|
|
50
49
|
nv-breadcrumb ul a:hover,
|
|
51
50
|
nv-breadcrumb ul button:hover {
|
|
@@ -68,7 +67,6 @@ nv-breadcrumb > a:focus, nv-breadcrumb > a:focus-within, nv-breadcrumb > button:
|
|
|
68
67
|
nv-breadcrumb > a:focus-visible, nv-breadcrumb > a:has(:focus-visible), nv-breadcrumb > button:focus-visible, nv-breadcrumb > button:has(:focus-visible) {
|
|
69
68
|
outline: calc(var(--focus-outline-stroke) * 0.5) solid var(--components-breadcrumb-text-hover);
|
|
70
69
|
outline-offset: calc(var(--focus-outline-offset) * 0.3);
|
|
71
|
-
z-index: 111;
|
|
72
70
|
}
|
|
73
71
|
nv-breadcrumb > a:hover, nv-breadcrumb > button:hover {
|
|
74
72
|
text-decoration: underline;
|
|
@@ -81,7 +81,6 @@ nv-button[emphasis=high]:focus, nv-button[emphasis=high]:focus-within {
|
|
|
81
81
|
nv-button[emphasis=high]:focus-visible, nv-button[emphasis=high]:has(:focus-visible) {
|
|
82
82
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);
|
|
83
83
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
84
|
-
z-index: 111;
|
|
85
84
|
}
|
|
86
85
|
nv-button[emphasis=high]:disabled:not([disabled=false]) {
|
|
87
86
|
opacity: 0.5;
|
|
@@ -109,7 +108,6 @@ nv-button[emphasis=high][danger]:not([danger=false]):focus, nv-button[emphasis=h
|
|
|
109
108
|
nv-button[emphasis=high][danger]:not([danger=false]):focus-visible, nv-button[emphasis=high][danger]:not([danger=false]):has(:focus-visible) {
|
|
110
109
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);
|
|
111
110
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
112
|
-
z-index: 111;
|
|
113
111
|
}
|
|
114
112
|
nv-button[emphasis=medium] {
|
|
115
113
|
background: var(--components-button-medium-background);
|
|
@@ -132,7 +130,6 @@ nv-button[emphasis=medium]:focus, nv-button[emphasis=medium]:focus-within {
|
|
|
132
130
|
nv-button[emphasis=medium]:focus-visible, nv-button[emphasis=medium]:has(:focus-visible) {
|
|
133
131
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);
|
|
134
132
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
135
|
-
z-index: 111;
|
|
136
133
|
}
|
|
137
134
|
nv-button[emphasis=medium]:disabled:not([disabled=false]) {
|
|
138
135
|
opacity: 0.5;
|
|
@@ -160,7 +157,6 @@ nv-button[emphasis=medium][danger]:not([danger=false]):focus, nv-button[emphasis
|
|
|
160
157
|
nv-button[emphasis=medium][danger]:not([danger=false]):focus-visible, nv-button[emphasis=medium][danger]:not([danger=false]):has(:focus-visible) {
|
|
161
158
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);
|
|
162
159
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
163
|
-
z-index: 111;
|
|
164
160
|
}
|
|
165
161
|
nv-button[emphasis=low] {
|
|
166
162
|
background: var(--components-button-low-background);
|
|
@@ -183,7 +179,6 @@ nv-button[emphasis=low]:focus, nv-button[emphasis=low]:focus-within {
|
|
|
183
179
|
nv-button[emphasis=low]:focus-visible, nv-button[emphasis=low]:has(:focus-visible) {
|
|
184
180
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);
|
|
185
181
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
186
|
-
z-index: 111;
|
|
187
182
|
}
|
|
188
183
|
nv-button[emphasis=low]:disabled:not([disabled=false]) {
|
|
189
184
|
opacity: 0.5;
|
|
@@ -211,7 +206,6 @@ nv-button[emphasis=low][danger]:not([danger=false]):focus, nv-button[emphasis=lo
|
|
|
211
206
|
nv-button[emphasis=low][danger]:not([danger=false]):focus-visible, nv-button[emphasis=low][danger]:not([danger=false]):has(:focus-visible) {
|
|
212
207
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);
|
|
213
208
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
214
|
-
z-index: 111;
|
|
215
209
|
}
|
|
216
210
|
nv-button[emphasis=lower] {
|
|
217
211
|
background: var(--components-button-lower-background);
|
|
@@ -234,7 +228,6 @@ nv-button[emphasis=lower]:focus, nv-button[emphasis=lower]:focus-within {
|
|
|
234
228
|
nv-button[emphasis=lower]:focus-visible, nv-button[emphasis=lower]:has(:focus-visible) {
|
|
235
229
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-brand);
|
|
236
230
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
237
|
-
z-index: 111;
|
|
238
231
|
}
|
|
239
232
|
nv-button[emphasis=lower]:disabled:not([disabled=false]) {
|
|
240
233
|
opacity: 0.5;
|
|
@@ -262,7 +255,6 @@ nv-button[emphasis=lower][danger]:not([danger=false]):focus, nv-button[emphasis=
|
|
|
262
255
|
nv-button[emphasis=lower][danger]:not([danger=false]):focus-visible, nv-button[emphasis=lower][danger]:not([danger=false]):has(:focus-visible) {
|
|
263
256
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--color-focus-destructive);
|
|
264
257
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
265
|
-
z-index: 111;
|
|
266
258
|
}
|
|
267
259
|
nv-button[fluid]:not([fluid=false]) {
|
|
268
260
|
width: 100%;
|
|
@@ -100,7 +100,6 @@ nv-datagrid .checkbox-container input[type=checkbox]:focus, nv-datagrid .checkbo
|
|
|
100
100
|
nv-datagrid .checkbox-container input[type=checkbox]:focus-visible, nv-datagrid .checkbox-container input[type=checkbox]:has(:focus-visible) {
|
|
101
101
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--nv-datagrid-outline-color);
|
|
102
102
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
103
|
-
z-index: 111;
|
|
104
103
|
}
|
|
105
104
|
nv-datagrid .checkbox-container input[type=checkbox]:checked, nv-datagrid .checkbox-container input[type=checkbox]:indeterminate {
|
|
106
105
|
background: var(--nv-datagrid-background-checked);
|
|
@@ -85,7 +85,6 @@ nv-fieldcheckbox > .input-container input[type=checkbox]:focus, nv-fieldcheckbox
|
|
|
85
85
|
nv-fieldcheckbox > .input-container input[type=checkbox]:focus-visible, nv-fieldcheckbox > .input-container input[type=checkbox]:has(:focus-visible) {
|
|
86
86
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldcheckbox-outline-color);
|
|
87
87
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
88
|
-
z-index: 111;
|
|
89
88
|
}
|
|
90
89
|
nv-fieldcheckbox > .input-container input[type=checkbox]:checked, nv-fieldcheckbox > .input-container input[type=checkbox]:indeterminate {
|
|
91
90
|
background: var(--nv-fieldcheckbox-background-checked);
|
|
@@ -196,6 +196,10 @@ nv-fielddate .input-wrapper .input-container > nv-iconbutton:focus-visible {
|
|
|
196
196
|
border-radius: var(--button-md-border-radius);
|
|
197
197
|
outline-offset: -3px;
|
|
198
198
|
}
|
|
199
|
+
nv-fielddate .input-wrapper .input-container > nv-iconbutton:last-of-type {
|
|
200
|
+
border-top-right-radius: var(--form-field-radius);
|
|
201
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
202
|
+
}
|
|
199
203
|
nv-fielddate .input-wrapper .input-container nv-icon.validation {
|
|
200
204
|
color: var(--nv-field-border-default);
|
|
201
205
|
}
|
|
@@ -104,6 +104,7 @@ nv-fielddaterange nv-popover [data-scope=popover] {
|
|
|
104
104
|
background-color: var(--components-list-dropdown-background);
|
|
105
105
|
border: 1px solid var(--components-list-dropdown-border);
|
|
106
106
|
width: auto;
|
|
107
|
+
z-index: 2;
|
|
107
108
|
}
|
|
108
109
|
nv-fielddaterange nv-popover [slot=content] {
|
|
109
110
|
display: block;
|
|
@@ -203,6 +204,10 @@ nv-fielddaterange .input-wrapper .input-container > nv-iconbutton:focus-visible
|
|
|
203
204
|
border-radius: var(--button-md-border-radius);
|
|
204
205
|
outline-offset: -3px;
|
|
205
206
|
}
|
|
207
|
+
nv-fielddaterange .input-wrapper .input-container > nv-iconbutton:last-of-type {
|
|
208
|
+
border-top-right-radius: var(--form-field-radius);
|
|
209
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
210
|
+
}
|
|
206
211
|
nv-fielddaterange .input-wrapper .input-container nv-icon.validation {
|
|
207
212
|
color: var(--nv-field-border-default);
|
|
208
213
|
}
|
|
@@ -234,6 +239,7 @@ nv-fielddaterange .range-inputs {
|
|
|
234
239
|
align-items: center;
|
|
235
240
|
gap: 0;
|
|
236
241
|
width: 100%;
|
|
242
|
+
z-index: 1;
|
|
237
243
|
}
|
|
238
244
|
nv-fielddaterange .range-inputs input {
|
|
239
245
|
flex: 1;
|
|
@@ -227,6 +227,10 @@ nv-fielddropdown .input-container > nv-iconbutton:focus-visible {
|
|
|
227
227
|
border-radius: var(--button-md-border-radius);
|
|
228
228
|
outline-offset: -3px;
|
|
229
229
|
}
|
|
230
|
+
nv-fielddropdown .input-container > nv-iconbutton:last-of-type {
|
|
231
|
+
border-top-right-radius: var(--form-field-radius);
|
|
232
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
233
|
+
}
|
|
230
234
|
nv-fielddropdown .input-container nv-icon.validation {
|
|
231
235
|
color: var(--nv-field-border-default);
|
|
232
236
|
}
|
|
@@ -264,6 +264,10 @@ nv-fieldmultiselect .input-container-multiselect > nv-iconbutton:focus-visible {
|
|
|
264
264
|
border-radius: var(--button-md-border-radius);
|
|
265
265
|
outline-offset: -3px;
|
|
266
266
|
}
|
|
267
|
+
nv-fieldmultiselect .input-container-multiselect > nv-iconbutton:last-of-type {
|
|
268
|
+
border-top-right-radius: var(--form-field-radius);
|
|
269
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
270
|
+
}
|
|
267
271
|
nv-fieldmultiselect .input-container-multiselect nv-icon.validation {
|
|
268
272
|
color: var(--nv-field-border-default);
|
|
269
273
|
}
|
|
@@ -188,6 +188,10 @@ nv-fieldnumber .input-wrapper .input-container > nv-iconbutton:focus-visible {
|
|
|
188
188
|
border-radius: var(--button-md-border-radius);
|
|
189
189
|
outline-offset: -3px;
|
|
190
190
|
}
|
|
191
|
+
nv-fieldnumber .input-wrapper .input-container > nv-iconbutton:last-of-type {
|
|
192
|
+
border-top-right-radius: var(--form-field-radius);
|
|
193
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
194
|
+
}
|
|
191
195
|
nv-fieldnumber .input-wrapper .input-container .stepper {
|
|
192
196
|
display: flex;
|
|
193
197
|
border-left: var(--notification-border-width-low-emphasis) solid var(--components-form-field-border-readonly);
|
|
@@ -201,6 +205,10 @@ nv-fieldnumber .input-wrapper .input-container .stepper > nv-iconbutton:focus-vi
|
|
|
201
205
|
border-radius: var(--button-md-border-radius);
|
|
202
206
|
outline-offset: -3px;
|
|
203
207
|
}
|
|
208
|
+
nv-fieldnumber .input-wrapper .input-container .stepper > nv-iconbutton:last-of-type {
|
|
209
|
+
border-top-right-radius: var(--form-field-radius);
|
|
210
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
211
|
+
}
|
|
204
212
|
@container field-number-input-container (width < 150px) {
|
|
205
213
|
nv-fieldnumber .input-wrapper .input-container .stepper-spacer {
|
|
206
214
|
display: none;
|
|
@@ -175,6 +175,10 @@ nv-fieldpassword .input-wrapper .input-container > nv-iconbutton:focus-visible {
|
|
|
175
175
|
border-radius: var(--button-md-border-radius);
|
|
176
176
|
outline-offset: -3px;
|
|
177
177
|
}
|
|
178
|
+
nv-fieldpassword .input-wrapper .input-container > nv-iconbutton:last-of-type {
|
|
179
|
+
border-top-right-radius: var(--form-field-radius);
|
|
180
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
181
|
+
}
|
|
178
182
|
nv-fieldpassword .input-wrapper .input-container nv-icon.validation {
|
|
179
183
|
color: var(--nv-field-border-default);
|
|
180
184
|
}
|
|
@@ -70,7 +70,6 @@ nv-fieldradio input[type=radio]:focus, nv-fieldradio input[type=radio]:focus-wit
|
|
|
70
70
|
nv-fieldradio input[type=radio]:focus-visible, nv-fieldradio input[type=radio]:has(:focus-visible) {
|
|
71
71
|
outline: calc(var(--focus-outline-stroke) * 1) solid var(--nv-fieldradio-outline-color);
|
|
72
72
|
outline-offset: calc(var(--focus-outline-offset) * 1);
|
|
73
|
-
z-index: 111;
|
|
74
73
|
}
|
|
75
74
|
nv-fieldradio input[type=radio]:checked {
|
|
76
75
|
background: var(--nv-fieldradio-background-checked);
|
|
@@ -98,6 +98,8 @@ nv-fieldselect[multiple]:not([multiple=false]) .select-wrapper > .select-contain
|
|
|
98
98
|
nv-fieldselect[multiple]:not([multiple=false]) .select-wrapper > .select-container > select {
|
|
99
99
|
height: 100%;
|
|
100
100
|
box-sizing: border-box;
|
|
101
|
+
background-color: var(--color-level-05-background);
|
|
102
|
+
border-radius: var(--form-field-radius);
|
|
101
103
|
}
|
|
102
104
|
nv-fieldselect label {
|
|
103
105
|
display: flex;
|
|
@@ -158,6 +160,10 @@ nv-fieldselect .select-wrapper .select-container > .select-icons > nv-iconbutton
|
|
|
158
160
|
border-radius: var(--button-md-border-radius);
|
|
159
161
|
outline-offset: -3px;
|
|
160
162
|
}
|
|
163
|
+
nv-fieldselect .select-wrapper .select-container > .select-icons > nv-iconbutton:last-of-type {
|
|
164
|
+
border-top-right-radius: var(--form-field-radius);
|
|
165
|
+
border-bottom-right-radius: var(--form-field-radius);
|
|
166
|
+
}
|
|
161
167
|
nv-fieldselect .select-wrapper .select-container input {
|
|
162
168
|
display: flex;
|
|
163
169
|
align-items: center;
|