@nova-design-system/nova-webcomponents 3.0.0-beta.17
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/LICENSE.MD +157 -0
- package/dist/blazor-docs.json +9342 -0
- package/dist/cjs/app-globals-2ceecab2.js +11 -0
- package/dist/cjs/app-globals-2ceecab2.js.map +1 -0
- package/dist/cjs/clsx-fc789adc.js +7 -0
- package/dist/cjs/clsx-fc789adc.js.map +1 -0
- package/dist/cjs/constants-33057c89.js +140 -0
- package/dist/cjs/constants-33057c89.js.map +1 -0
- package/dist/cjs/fade.animation-0d33d198.js +1875 -0
- package/dist/cjs/fade.animation-0d33d198.js.map +1 -0
- package/dist/cjs/grow.animation-46e7ae4b.js +119 -0
- package/dist/cjs/grow.animation-46e7ae4b.js.map +1 -0
- package/dist/cjs/index-5d1f2412.js +1984 -0
- package/dist/cjs/index-5d1f2412.js.map +1 -0
- package/dist/cjs/index.cjs.js +494 -0
- package/dist/cjs/index.cjs.js.map +1 -0
- package/dist/cjs/loader.cjs.js +17 -0
- package/dist/cjs/loader.cjs.js.map +1 -0
- package/dist/cjs/native.cjs.js +48 -0
- package/dist/cjs/native.cjs.js.map +1 -0
- package/dist/cjs/nv-alert.cjs.entry.js +140 -0
- package/dist/cjs/nv-alert.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-avatar.cjs.entry.js +73 -0
- package/dist/cjs/nv-avatar.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-badge.cjs.entry.js +119 -0
- package/dist/cjs/nv-badge.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-base.cjs.entry.js +75 -0
- package/dist/cjs/nv-base.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-button.cjs.entry.js +91 -0
- package/dist/cjs/nv-button.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-col.cjs.entry.js +41 -0
- package/dist/cjs/nv-col.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +94 -0
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +94 -0
- package/dist/cjs/nv-fieldnumber.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +79 -0
- package/dist/cjs/nv-fieldpassword.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldradio.cjs.entry.js +81 -0
- package/dist/cjs/nv-fieldradio.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldselect.cjs.entry.js +290 -0
- package/dist/cjs/nv-fieldselect.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtext.cjs.entry.js +83 -0
- package/dist/cjs/nv-fieldtext.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +151 -0
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js +64 -0
- package/dist/cjs/nv-fieldtoggle.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-icon.cjs.entry.js +66 -0
- package/dist/cjs/nv-icon.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-iconbutton.cjs.entry.js +92 -0
- package/dist/cjs/nv-iconbutton.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-loader.cjs.entry.js +29 -0
- package/dist/cjs/nv-loader.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-menu.cjs.entry.js +189 -0
- package/dist/cjs/nv-menu.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-menuitem.cjs.entry.js +30 -0
- package/dist/cjs/nv-menuitem.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-popover.cjs.entry.js +2327 -0
- package/dist/cjs/nv-popover.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-row.cjs.entry.js +24 -0
- package/dist/cjs/nv-row.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-stack.cjs.entry.js +31 -0
- package/dist/cjs/nv-stack.cjs.entry.js.map +1 -0
- package/dist/cjs/nv-tooltip.cjs.entry.js +37 -0
- package/dist/cjs/nv-tooltip.cjs.entry.js.map +1 -0
- package/dist/cjs/timeline.animation-dbb9c5ea.js +107 -0
- package/dist/cjs/timeline.animation-dbb9c5ea.js.map +1 -0
- package/dist/cjs/v4-7014b8b0.js +67 -0
- package/dist/cjs/v4-7014b8b0.js.map +1 -0
- package/dist/collection/animations/collapse.animation.js +82 -0
- package/dist/collection/animations/collapse.animation.js.map +1 -0
- package/dist/collection/animations/fade.animation.js +66 -0
- package/dist/collection/animations/fade.animation.js.map +1 -0
- package/dist/collection/animations/grow.animation.js +87 -0
- package/dist/collection/animations/grow.animation.js.map +1 -0
- package/dist/collection/animations/index.js +5 -0
- package/dist/collection/animations/index.js.map +1 -0
- package/dist/collection/animations/timeline.animation.js +21 -0
- package/dist/collection/animations/timeline.animation.js.map +1 -0
- package/dist/collection/collection-manifest.json +35 -0
- package/dist/collection/components/nv-alert/nv-alert.css +113 -0
- package/dist/collection/components/nv-alert/nv-alert.docs.js +61 -0
- package/dist/collection/components/nv-alert/nv-alert.docs.js.map +1 -0
- package/dist/collection/components/nv-alert/nv-alert.js +355 -0
- package/dist/collection/components/nv-alert/nv-alert.js.map +1 -0
- package/dist/collection/components/nv-avatar/nv-avatar.css +154 -0
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js +42 -0
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js.map +1 -0
- package/dist/collection/components/nv-avatar/nv-avatar.js +311 -0
- package/dist/collection/components/nv-avatar/nv-avatar.js.map +1 -0
- package/dist/collection/components/nv-badge/nv-badge.css +174 -0
- package/dist/collection/components/nv-badge/nv-badge.docs.js +72 -0
- package/dist/collection/components/nv-badge/nv-badge.docs.js.map +1 -0
- package/dist/collection/components/nv-badge/nv-badge.js +354 -0
- package/dist/collection/components/nv-badge/nv-badge.js.map +1 -0
- package/dist/collection/components/nv-base/nv-base.docs.js +5 -0
- package/dist/collection/components/nv-base/nv-base.docs.js.map +1 -0
- package/dist/collection/components/nv-base/nv-base.js +69 -0
- package/dist/collection/components/nv-base/nv-base.js.map +1 -0
- package/dist/collection/components/nv-button/nv-button.css +259 -0
- package/dist/collection/components/nv-button/nv-button.docs.js +56 -0
- package/dist/collection/components/nv-button/nv-button.docs.js.map +1 -0
- package/dist/collection/components/nv-button/nv-button.js +241 -0
- package/dist/collection/components/nv-button/nv-button.js.map +1 -0
- package/dist/collection/components/nv-col/nv-col.css +45 -0
- package/dist/collection/components/nv-col/nv-col.docs.js +18 -0
- package/dist/collection/components/nv-col/nv-col.docs.js.map +1 -0
- package/dist/collection/components/nv-col/nv-col.js +63 -0
- package/dist/collection/components/nv-col/nv-col.js.map +1 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.css +136 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js +231 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +448 -0
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +1 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.css +183 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +180 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +435 -0
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +1 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.css +149 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +189 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +465 -0
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +1 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.css +133 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js +121 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +347 -0
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +1 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.css +197 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +157 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +610 -0
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +1 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.css +141 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +206 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +499 -0
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +1 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.css +141 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +175 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +527 -0
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +1 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.css +114 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.docs.js +65 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.docs.js.map +1 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js +283 -0
- package/dist/collection/components/nv-fieldtoggle/nv-fieldtoggle.js.map +1 -0
- package/dist/collection/components/nv-icon/nv-icon.css +32 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js +31 -0
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +1 -0
- package/dist/collection/components/nv-icon/nv-icon.js +245 -0
- package/dist/collection/components/nv-icon/nv-icon.js.map +1 -0
- package/dist/collection/components/nv-icon/nv-icons.js +450 -0
- package/dist/collection/components/nv-icon/nv-icons.js.map +1 -0
- package/dist/collection/components/nv-icon/test/nv-icon.test.js +25 -0
- package/dist/collection/components/nv-icon/test/nv-icon.test.js.map +1 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.css +152 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js +61 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js.map +1 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +263 -0
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +1 -0
- package/dist/collection/components/nv-loader/nv-loader.css +162 -0
- package/dist/collection/components/nv-loader/nv-loader.docs.js +27 -0
- package/dist/collection/components/nv-loader/nv-loader.docs.js.map +1 -0
- package/dist/collection/components/nv-loader/nv-loader.js +78 -0
- package/dist/collection/components/nv-loader/nv-loader.js.map +1 -0
- package/dist/collection/components/nv-menu/nv-menu.css +61 -0
- package/dist/collection/components/nv-menu/nv-menu.docs.js +40 -0
- package/dist/collection/components/nv-menu/nv-menu.docs.js.map +1 -0
- package/dist/collection/components/nv-menu/nv-menu.js +355 -0
- package/dist/collection/components/nv-menu/nv-menu.js.map +1 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.css +29 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js +6 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js.map +1 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +111 -0
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +1 -0
- package/dist/collection/components/nv-popover/nv-popover.css +42 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js +74 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js.map +1 -0
- package/dist/collection/components/nv-popover/nv-popover.js +587 -0
- package/dist/collection/components/nv-popover/nv-popover.js.map +1 -0
- package/dist/collection/components/nv-row/nv-row.css +7 -0
- package/dist/collection/components/nv-row/nv-row.docs.js +13 -0
- package/dist/collection/components/nv-row/nv-row.docs.js.map +1 -0
- package/dist/collection/components/nv-row/nv-row.js +23 -0
- package/dist/collection/components/nv-row/nv-row.js.map +1 -0
- package/dist/collection/components/nv-stack/nv-stack.css +61 -0
- package/dist/collection/components/nv-stack/nv-stack.docs.js +39 -0
- package/dist/collection/components/nv-stack/nv-stack.docs.js.map +1 -0
- package/dist/collection/components/nv-stack/nv-stack.js +123 -0
- package/dist/collection/components/nv-stack/nv-stack.js.map +1 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.css +22 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js +38 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js.map +1 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +102 -0
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +1 -0
- package/dist/collection/dev/dev-components.js +3 -0
- package/dist/collection/dev/dev-components.js.map +1 -0
- package/dist/collection/dev/dev-forms.js +3 -0
- package/dist/collection/dev/dev-forms.js.map +1 -0
- package/dist/collection/dev/dev-root.js +23 -0
- package/dist/collection/dev/dev-root.js.map +1 -0
- package/dist/collection/dev/dev-utils.js +54 -0
- package/dist/collection/dev/dev-utils.js.map +1 -0
- package/dist/collection/fonts/TT_Norms_Pro_Bold.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Medium.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Mono_Bold.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Mono_Medium.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Mono_Regular.woff2 +0 -0
- package/dist/collection/fonts/TT_Norms_Pro_Regular.woff2 +0 -0
- package/dist/collection/global.js +6 -0
- package/dist/collection/global.js.map +1 -0
- package/dist/collection/index.js +10 -0
- package/dist/collection/index.js.map +1 -0
- package/dist/collection/utils/class.utils.js +15 -0
- package/dist/collection/utils/class.utils.js.map +1 -0
- package/dist/collection/utils/constants.js +122 -0
- package/dist/collection/utils/constants.js.map +1 -0
- package/dist/collection/utils/events.utils.js +19 -0
- package/dist/collection/utils/events.utils.js.map +1 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/index.js +488 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/nv-alert.d.ts +11 -0
- package/dist/components/nv-alert.js +171 -0
- package/dist/components/nv-alert.js.map +1 -0
- package/dist/components/nv-avatar.d.ts +11 -0
- package/dist/components/nv-avatar.js +106 -0
- package/dist/components/nv-avatar.js.map +1 -0
- package/dist/components/nv-badge.d.ts +11 -0
- package/dist/components/nv-badge.js +154 -0
- package/dist/components/nv-badge.js.map +1 -0
- package/dist/components/nv-base.d.ts +11 -0
- package/dist/components/nv-base.js +89 -0
- package/dist/components/nv-base.js.map +1 -0
- package/dist/components/nv-button.d.ts +11 -0
- package/dist/components/nv-button.js +116 -0
- package/dist/components/nv-button.js.map +1 -0
- package/dist/components/nv-col.d.ts +11 -0
- package/dist/components/nv-col.js +57 -0
- package/dist/components/nv-col.js.map +1 -0
- package/dist/components/nv-fieldcheckbox.d.ts +11 -0
- package/dist/components/nv-fieldcheckbox.js +128 -0
- package/dist/components/nv-fieldcheckbox.js.map +1 -0
- package/dist/components/nv-fieldnumber.d.ts +11 -0
- package/dist/components/nv-fieldnumber.js +134 -0
- package/dist/components/nv-fieldnumber.js.map +1 -0
- package/dist/components/nv-fieldpassword.d.ts +11 -0
- package/dist/components/nv-fieldpassword.js +134 -0
- package/dist/components/nv-fieldpassword.js.map +1 -0
- package/dist/components/nv-fieldradio.d.ts +11 -0
- package/dist/components/nv-fieldradio.js +110 -0
- package/dist/components/nv-fieldradio.js.map +1 -0
- package/dist/components/nv-fieldselect.d.ts +11 -0
- package/dist/components/nv-fieldselect.js +332 -0
- package/dist/components/nv-fieldselect.js.map +1 -0
- package/dist/components/nv-fieldtext.d.ts +11 -0
- package/dist/components/nv-fieldtext.js +125 -0
- package/dist/components/nv-fieldtext.js.map +1 -0
- package/dist/components/nv-fieldtextarea.d.ts +11 -0
- package/dist/components/nv-fieldtextarea.js +188 -0
- package/dist/components/nv-fieldtextarea.js.map +1 -0
- package/dist/components/nv-fieldtoggle.d.ts +11 -0
- package/dist/components/nv-fieldtoggle.js +91 -0
- package/dist/components/nv-fieldtoggle.js.map +1 -0
- package/dist/components/nv-icon.d.ts +11 -0
- package/dist/components/nv-icon.js +8 -0
- package/dist/components/nv-icon.js.map +1 -0
- package/dist/components/nv-iconbutton.d.ts +11 -0
- package/dist/components/nv-iconbutton.js +8 -0
- package/dist/components/nv-iconbutton.js.map +1 -0
- package/dist/components/nv-loader.d.ts +11 -0
- package/dist/components/nv-loader.js +8 -0
- package/dist/components/nv-loader.js.map +1 -0
- package/dist/components/nv-menu.d.ts +11 -0
- package/dist/components/nv-menu.js +216 -0
- package/dist/components/nv-menu.js.map +1 -0
- package/dist/components/nv-menuitem.d.ts +11 -0
- package/dist/components/nv-menuitem.js +55 -0
- package/dist/components/nv-menuitem.js.map +1 -0
- package/dist/components/nv-popover.d.ts +11 -0
- package/dist/components/nv-popover.js +8 -0
- package/dist/components/nv-popover.js.map +1 -0
- package/dist/components/nv-row.d.ts +11 -0
- package/dist/components/nv-row.js +38 -0
- package/dist/components/nv-row.js.map +1 -0
- package/dist/components/nv-stack.d.ts +11 -0
- package/dist/components/nv-stack.js +51 -0
- package/dist/components/nv-stack.js.map +1 -0
- package/dist/components/nv-tooltip.d.ts +11 -0
- package/dist/components/nv-tooltip.js +61 -0
- package/dist/components/nv-tooltip.js.map +1 -0
- package/dist/components/p-1daca48a.js +1871 -0
- package/dist/components/p-1daca48a.js.map +1 -0
- package/dist/components/p-42301d8f.js +104 -0
- package/dist/components/p-42301d8f.js.map +1 -0
- package/dist/components/p-50bd2808.js +1198 -0
- package/dist/components/p-50bd2808.js.map +1 -0
- package/dist/components/p-6146d4b0.js +87 -0
- package/dist/components/p-6146d4b0.js.map +1 -0
- package/dist/components/p-632bedb8.js +1730 -0
- package/dist/components/p-632bedb8.js.map +1 -0
- package/dist/components/p-8a1a6e56.js +5 -0
- package/dist/components/p-8a1a6e56.js.map +1 -0
- package/dist/components/p-8da6d9a3.js +43 -0
- package/dist/components/p-8da6d9a3.js.map +1 -0
- package/dist/components/p-a15ddd42.js +138 -0
- package/dist/components/p-a15ddd42.js.map +1 -0
- package/dist/components/p-be79e7bc.js +121 -0
- package/dist/components/p-be79e7bc.js.map +1 -0
- package/dist/components/p-c711fe67.js +2355 -0
- package/dist/components/p-c711fe67.js.map +1 -0
- package/dist/components/p-f5ff676c.js +65 -0
- package/dist/components/p-f5ff676c.js.map +1 -0
- package/dist/docs.d.ts +435 -0
- package/dist/docs.json +9249 -0
- package/dist/esm/app-globals-df0a3c8d.js +9 -0
- package/dist/esm/app-globals-df0a3c8d.js.map +1 -0
- package/dist/esm/clsx-297c1ffe.js +5 -0
- package/dist/esm/clsx-297c1ffe.js.map +1 -0
- package/dist/esm/constants-e9bee611.js +138 -0
- package/dist/esm/constants-e9bee611.js.map +1 -0
- package/dist/esm/fade.animation-2a077983.js +1871 -0
- package/dist/esm/fade.animation-2a077983.js.map +1 -0
- package/dist/esm/grow.animation-88a8ee8f.js +114 -0
- package/dist/esm/grow.animation-88a8ee8f.js.map +1 -0
- package/dist/esm/index-179dfba2.js +1952 -0
- package/dist/esm/index-179dfba2.js.map +1 -0
- package/dist/esm/index.js +487 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/loader.js +13 -0
- package/dist/esm/loader.js.map +1 -0
- package/dist/esm/native.js +43 -0
- package/dist/esm/native.js.map +1 -0
- package/dist/esm/nv-alert.entry.js +136 -0
- package/dist/esm/nv-alert.entry.js.map +1 -0
- package/dist/esm/nv-avatar.entry.js +69 -0
- package/dist/esm/nv-avatar.entry.js.map +1 -0
- package/dist/esm/nv-badge.entry.js +115 -0
- package/dist/esm/nv-badge.entry.js.map +1 -0
- package/dist/esm/nv-base.entry.js +71 -0
- package/dist/esm/nv-base.entry.js.map +1 -0
- package/dist/esm/nv-button.entry.js +87 -0
- package/dist/esm/nv-button.entry.js.map +1 -0
- package/dist/esm/nv-col.entry.js +37 -0
- package/dist/esm/nv-col.entry.js.map +1 -0
- package/dist/esm/nv-fieldcheckbox.entry.js +90 -0
- package/dist/esm/nv-fieldcheckbox.entry.js.map +1 -0
- package/dist/esm/nv-fieldnumber.entry.js +90 -0
- package/dist/esm/nv-fieldnumber.entry.js.map +1 -0
- package/dist/esm/nv-fieldpassword.entry.js +75 -0
- package/dist/esm/nv-fieldpassword.entry.js.map +1 -0
- package/dist/esm/nv-fieldradio.entry.js +77 -0
- package/dist/esm/nv-fieldradio.entry.js.map +1 -0
- package/dist/esm/nv-fieldselect.entry.js +286 -0
- package/dist/esm/nv-fieldselect.entry.js.map +1 -0
- package/dist/esm/nv-fieldtext.entry.js +79 -0
- package/dist/esm/nv-fieldtext.entry.js.map +1 -0
- package/dist/esm/nv-fieldtextarea.entry.js +147 -0
- package/dist/esm/nv-fieldtextarea.entry.js.map +1 -0
- package/dist/esm/nv-fieldtoggle.entry.js +60 -0
- package/dist/esm/nv-fieldtoggle.entry.js.map +1 -0
- package/dist/esm/nv-icon.entry.js +62 -0
- package/dist/esm/nv-icon.entry.js.map +1 -0
- package/dist/esm/nv-iconbutton.entry.js +88 -0
- package/dist/esm/nv-iconbutton.entry.js.map +1 -0
- package/dist/esm/nv-loader.entry.js +25 -0
- package/dist/esm/nv-loader.entry.js.map +1 -0
- package/dist/esm/nv-menu.entry.js +185 -0
- package/dist/esm/nv-menu.entry.js.map +1 -0
- package/dist/esm/nv-menuitem.entry.js +26 -0
- package/dist/esm/nv-menuitem.entry.js.map +1 -0
- package/dist/esm/nv-popover.entry.js +2323 -0
- package/dist/esm/nv-popover.entry.js.map +1 -0
- package/dist/esm/nv-row.entry.js +20 -0
- package/dist/esm/nv-row.entry.js.map +1 -0
- package/dist/esm/nv-stack.entry.js +27 -0
- package/dist/esm/nv-stack.entry.js.map +1 -0
- package/dist/esm/nv-tooltip.entry.js +33 -0
- package/dist/esm/nv-tooltip.entry.js.map +1 -0
- package/dist/esm/timeline.animation-1b88f052.js +104 -0
- package/dist/esm/timeline.animation-1b88f052.js.map +1 -0
- package/dist/esm/v4-a79185f4.js +65 -0
- package/dist/esm/v4-a79185f4.js.map +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/native/fonts/TT_Norms_Pro_Bold.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Medium.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Mono_Bold.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Mono_Medium.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Mono_Regular.woff2 +0 -0
- package/dist/native/fonts/TT_Norms_Pro_Regular.woff2 +0 -0
- package/dist/native/index.esm.js +2 -0
- package/dist/native/index.esm.js.map +1 -0
- package/dist/native/native.css +1 -0
- package/dist/native/native.esm.js +2 -0
- package/dist/native/native.esm.js.map +1 -0
- package/dist/native/p-06f64d05.entry.js +2 -0
- package/dist/native/p-06f64d05.entry.js.map +1 -0
- package/dist/native/p-0aa0193b.entry.js +2 -0
- package/dist/native/p-0aa0193b.entry.js.map +1 -0
- package/dist/native/p-124a7067.entry.js +2 -0
- package/dist/native/p-124a7067.entry.js.map +1 -0
- package/dist/native/p-13d0ab5b.entry.js +2 -0
- package/dist/native/p-13d0ab5b.entry.js.map +1 -0
- package/dist/native/p-14c08510.entry.js +2 -0
- package/dist/native/p-14c08510.entry.js.map +1 -0
- package/dist/native/p-1ceee367.entry.js +2 -0
- package/dist/native/p-1ceee367.entry.js.map +1 -0
- package/dist/native/p-1daca48a.js +16 -0
- package/dist/native/p-1daca48a.js.map +1 -0
- package/dist/native/p-29d482cd.entry.js +2 -0
- package/dist/native/p-29d482cd.entry.js.map +1 -0
- package/dist/native/p-42301d8f.js +2 -0
- package/dist/native/p-42301d8f.js.map +1 -0
- package/dist/native/p-43cd42ca.entry.js +2 -0
- package/dist/native/p-43cd42ca.entry.js.map +1 -0
- package/dist/native/p-519e0f59.entry.js +2 -0
- package/dist/native/p-519e0f59.entry.js.map +1 -0
- package/dist/native/p-617d6a09.entry.js +2 -0
- package/dist/native/p-617d6a09.entry.js.map +1 -0
- package/dist/native/p-6f762ec2.entry.js +2 -0
- package/dist/native/p-6f762ec2.entry.js.map +1 -0
- package/dist/native/p-71d6aad8.entry.js +2 -0
- package/dist/native/p-71d6aad8.entry.js.map +1 -0
- package/dist/native/p-7ce1b712.entry.js +2 -0
- package/dist/native/p-7ce1b712.entry.js.map +1 -0
- package/dist/native/p-80788ddf.js +2 -0
- package/dist/native/p-80788ddf.js.map +1 -0
- package/dist/native/p-830ec54a.entry.js +2 -0
- package/dist/native/p-830ec54a.entry.js.map +1 -0
- package/dist/native/p-89accab1.entry.js +2 -0
- package/dist/native/p-89accab1.entry.js.map +1 -0
- package/dist/native/p-8a1a6e56.js +2 -0
- package/dist/native/p-8a1a6e56.js.map +1 -0
- package/dist/native/p-8b65b16f.entry.js +2 -0
- package/dist/native/p-8b65b16f.entry.js.map +1 -0
- package/dist/native/p-a15ddd42.js +2 -0
- package/dist/native/p-a15ddd42.js.map +1 -0
- package/dist/native/p-a37c2ac2.js +2 -0
- package/dist/native/p-a37c2ac2.js.map +1 -0
- package/dist/native/p-b5e4a9e7.entry.js +2 -0
- package/dist/native/p-b5e4a9e7.entry.js.map +1 -0
- package/dist/native/p-b8eb4c31.entry.js +2 -0
- package/dist/native/p-b8eb4c31.entry.js.map +1 -0
- package/dist/native/p-b99aa075.entry.js +2 -0
- package/dist/native/p-b99aa075.entry.js.map +1 -0
- package/dist/native/p-d5a8b6c4.entry.js +2 -0
- package/dist/native/p-d5a8b6c4.entry.js.map +1 -0
- package/dist/native/p-db2a68f3.js +3 -0
- package/dist/native/p-db2a68f3.js.map +1 -0
- package/dist/native/p-f5acea50.entry.js +2 -0
- package/dist/native/p-f5acea50.entry.js.map +1 -0
- package/dist/native/p-f5ff676c.js +2 -0
- package/dist/native/p-f5ff676c.js.map +1 -0
- package/dist/native/p-f9aac71a.entry.js +2 -0
- package/dist/native/p-f9aac71a.entry.js.map +1 -0
- package/dist/native/p-fb6f42b7.entry.js +2 -0
- package/dist/native/p-fb6f42b7.entry.js.map +1 -0
- package/dist/types/animations/collapse.animation.d.ts +11 -0
- package/dist/types/animations/fade.animation.d.ts +11 -0
- package/dist/types/animations/grow.animation.d.ts +15 -0
- package/dist/types/animations/index.d.ts +4 -0
- package/dist/types/animations/timeline.animation.d.ts +18 -0
- package/dist/types/components/nv-alert/nv-alert.d.ts +85 -0
- package/dist/types/components/nv-alert/nv-alert.docs.d.ts +4 -0
- package/dist/types/components/nv-avatar/nv-avatar.d.ts +75 -0
- package/dist/types/components/nv-avatar/nv-avatar.docs.d.ts +4 -0
- package/dist/types/components/nv-badge/nv-badge.d.ts +93 -0
- package/dist/types/components/nv-badge/nv-badge.docs.d.ts +4 -0
- package/dist/types/components/nv-base/nv-base.d.ts +17 -0
- package/dist/types/components/nv-base/nv-base.docs.d.ts +5 -0
- package/dist/types/components/nv-button/nv-button.d.ts +63 -0
- package/dist/types/components/nv-button/nv-button.docs.d.ts +4 -0
- package/dist/types/components/nv-col/nv-col.d.ts +18 -0
- package/dist/types/components/nv-col/nv-col.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldcheckbox/nv-fieldcheckbox.d.ts +119 -0
- package/dist/types/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.d.ts +132 -0
- package/dist/types/components/nv-fieldnumber/nv-fieldnumber.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.d.ts +145 -0
- package/dist/types/components/nv-fieldpassword/nv-fieldpassword.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldradio/nv-fieldradio.d.ts +101 -0
- package/dist/types/components/nv-fieldradio/nv-fieldradio.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.d.ts +195 -0
- package/dist/types/components/nv-fieldselect/nv-fieldselect.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldtext/nv-fieldtext.d.ts +162 -0
- package/dist/types/components/nv-fieldtext/nv-fieldtext.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.d.ts +161 -0
- package/dist/types/components/nv-fieldtextarea/nv-fieldtextarea.docs.d.ts +4 -0
- package/dist/types/components/nv-fieldtoggle/nv-fieldtoggle.d.ts +73 -0
- package/dist/types/components/nv-fieldtoggle/nv-fieldtoggle.docs.d.ts +4 -0
- package/dist/types/components/nv-icon/nv-icon.d.ts +51 -0
- package/dist/types/components/nv-icon/nv-icon.docs.d.ts +4 -0
- package/dist/types/components/nv-icon/nv-icons.d.ts +3 -0
- package/dist/types/components/nv-icon/test/nv-icon.test.d.ts +1 -0
- package/dist/types/components/nv-iconbutton/nv-iconbutton.d.ts +70 -0
- package/dist/types/components/nv-iconbutton/nv-iconbutton.docs.d.ts +4 -0
- package/dist/types/components/nv-loader/nv-loader.d.ts +18 -0
- package/dist/types/components/nv-loader/nv-loader.docs.d.ts +4 -0
- package/dist/types/components/nv-menu/nv-menu.d.ts +60 -0
- package/dist/types/components/nv-menu/nv-menu.docs.d.ts +4 -0
- package/dist/types/components/nv-menuitem/nv-menuitem.d.ts +31 -0
- package/dist/types/components/nv-menuitem/nv-menuitem.docs.d.ts +4 -0
- package/dist/types/components/nv-popover/nv-popover.d.ts +114 -0
- package/dist/types/components/nv-popover/nv-popover.docs.d.ts +4 -0
- package/dist/types/components/nv-row/nv-row.d.ts +7 -0
- package/dist/types/components/nv-row/nv-row.docs.d.ts +4 -0
- package/dist/types/components/nv-stack/nv-stack.d.ts +36 -0
- package/dist/types/components/nv-stack/nv-stack.docs.d.ts +4 -0
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +32 -0
- package/dist/types/components/nv-tooltip/nv-tooltip.docs.d.ts +4 -0
- package/dist/types/components.d.ts +2412 -0
- package/dist/types/dev/dev-components.d.ts +2 -0
- package/dist/types/dev/dev-forms.d.ts +2 -0
- package/dist/types/dev/dev-root.d.ts +1 -0
- package/dist/types/dev/dev-utils.d.ts +17 -0
- package/dist/types/global.d.ts +1 -0
- package/dist/types/index.d.ts +15 -0
- package/dist/types/nova-docs.d.ts +32 -0
- package/dist/types/stencil-public-runtime.d.ts +1678 -0
- package/dist/types/utils/class.utils.d.ts +6 -0
- package/dist/types/utils/constants.d.ts +112 -0
- package/dist/types/utils/events.utils.d.ts +15 -0
- package/dist/vscode-data.json +3179 -0
- package/hydrate/index.d.ts +242 -0
- package/hydrate/index.js +24827 -0
- package/hydrate/index.mjs +24819 -0
- package/hydrate/package.json +12 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/loader/package.json +11 -0
- package/package.json +197 -0
- package/readme.md +67 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
var FeedbackColors;
|
|
2
|
+
(function (FeedbackColors) {
|
|
3
|
+
FeedbackColors["Information"] = "information";
|
|
4
|
+
FeedbackColors["Warning"] = "warning";
|
|
5
|
+
FeedbackColors["Success"] = "success";
|
|
6
|
+
FeedbackColors["Error"] = "error";
|
|
7
|
+
FeedbackColors["Neutral"] = "neutral";
|
|
8
|
+
})(FeedbackColors || (FeedbackColors = {}));
|
|
9
|
+
var DeprecatedSemanticColors;
|
|
10
|
+
(function (DeprecatedSemanticColors) {
|
|
11
|
+
DeprecatedSemanticColors["Neutral"] = "neutral";
|
|
12
|
+
DeprecatedSemanticColors["Primary"] = "primary";
|
|
13
|
+
DeprecatedSemanticColors["Secondary"] = "secondary";
|
|
14
|
+
DeprecatedSemanticColors["Success"] = "success";
|
|
15
|
+
DeprecatedSemanticColors["Error"] = "error";
|
|
16
|
+
})(DeprecatedSemanticColors || (DeprecatedSemanticColors = {}));
|
|
17
|
+
var SemanticSizes;
|
|
18
|
+
(function (SemanticSizes) {
|
|
19
|
+
SemanticSizes["ExtraSmall"] = "xs";
|
|
20
|
+
SemanticSizes["Small"] = "sm";
|
|
21
|
+
SemanticSizes["Medium"] = "md";
|
|
22
|
+
SemanticSizes["Large"] = "lg";
|
|
23
|
+
SemanticSizes["ExtraLarge"] = "xl";
|
|
24
|
+
})(SemanticSizes || (SemanticSizes = {}));
|
|
25
|
+
var ButtonSize;
|
|
26
|
+
(function (ButtonSize) {
|
|
27
|
+
ButtonSize["ExtraSmall"] = "xs";
|
|
28
|
+
ButtonSize["Small"] = "sm";
|
|
29
|
+
ButtonSize["Medium"] = "md";
|
|
30
|
+
ButtonSize["Large"] = "lg";
|
|
31
|
+
})(ButtonSize || (ButtonSize = {}));
|
|
32
|
+
var ButtonEmphasis;
|
|
33
|
+
(function (ButtonEmphasis) {
|
|
34
|
+
ButtonEmphasis["High"] = "high";
|
|
35
|
+
ButtonEmphasis["Medium"] = "medium";
|
|
36
|
+
ButtonEmphasis["Low"] = "low";
|
|
37
|
+
ButtonEmphasis["Lower"] = "lower";
|
|
38
|
+
})(ButtonEmphasis || (ButtonEmphasis = {}));
|
|
39
|
+
var ButtonType;
|
|
40
|
+
(function (ButtonType) {
|
|
41
|
+
ButtonType["Submit"] = "submit";
|
|
42
|
+
ButtonType["Reset"] = "reset";
|
|
43
|
+
ButtonType["Button"] = "button";
|
|
44
|
+
})(ButtonType || (ButtonType = {}));
|
|
45
|
+
var LoaderColors;
|
|
46
|
+
(function (LoaderColors) {
|
|
47
|
+
LoaderColors["High"] = "brand";
|
|
48
|
+
LoaderColors["Low"] = "white";
|
|
49
|
+
})(LoaderColors || (LoaderColors = {}));
|
|
50
|
+
var FieldLabelPlacement;
|
|
51
|
+
(function (FieldLabelPlacement) {
|
|
52
|
+
FieldLabelPlacement["Before"] = "before";
|
|
53
|
+
FieldLabelPlacement["After"] = "after";
|
|
54
|
+
})(FieldLabelPlacement || (FieldLabelPlacement = {}));
|
|
55
|
+
var TextInputAutocomplete;
|
|
56
|
+
(function (TextInputAutocomplete) {
|
|
57
|
+
TextInputAutocomplete["On"] = "on";
|
|
58
|
+
TextInputAutocomplete["Off"] = "off";
|
|
59
|
+
TextInputAutocomplete["Section"] = "section-*";
|
|
60
|
+
TextInputAutocomplete["Shipping"] = "shipping";
|
|
61
|
+
TextInputAutocomplete["Billing"] = "billing";
|
|
62
|
+
TextInputAutocomplete["Home"] = "home";
|
|
63
|
+
TextInputAutocomplete["Work"] = "work";
|
|
64
|
+
TextInputAutocomplete["Mobile"] = "mobile";
|
|
65
|
+
TextInputAutocomplete["Fax"] = "fax";
|
|
66
|
+
TextInputAutocomplete["Pager"] = "pager";
|
|
67
|
+
TextInputAutocomplete["Tel"] = "tel";
|
|
68
|
+
TextInputAutocomplete["TelCountryCode"] = "tel-country-code";
|
|
69
|
+
TextInputAutocomplete["TelNational"] = "tel-national";
|
|
70
|
+
TextInputAutocomplete["TelAreaCode"] = "tel-area-code";
|
|
71
|
+
TextInputAutocomplete["TelLocal"] = "tel-local";
|
|
72
|
+
TextInputAutocomplete["TelLocalPrefix"] = "tel-local-prefix";
|
|
73
|
+
TextInputAutocomplete["TelLocalSuffix"] = "tel-local-suffix";
|
|
74
|
+
TextInputAutocomplete["TelExtension"] = "tel-extension";
|
|
75
|
+
TextInputAutocomplete["Email"] = "email";
|
|
76
|
+
TextInputAutocomplete["IMProtocol"] = "impp";
|
|
77
|
+
TextInputAutocomplete["Name"] = "name";
|
|
78
|
+
TextInputAutocomplete["HonorificPrefix"] = "honorific-prefix";
|
|
79
|
+
TextInputAutocomplete["GivenName"] = "given-name";
|
|
80
|
+
TextInputAutocomplete["AdditionalName"] = "additional-name";
|
|
81
|
+
TextInputAutocomplete["FamilyName"] = "family-name";
|
|
82
|
+
TextInputAutocomplete["HonorificSuffix"] = "honorific-suffix";
|
|
83
|
+
TextInputAutocomplete["Nickname"] = "nickname";
|
|
84
|
+
TextInputAutocomplete["Username"] = "username";
|
|
85
|
+
TextInputAutocomplete["NewPassword"] = "new-password";
|
|
86
|
+
TextInputAutocomplete["CurrentPassword"] = "current-password";
|
|
87
|
+
TextInputAutocomplete["OneTimeCode"] = "one-time-code";
|
|
88
|
+
TextInputAutocomplete["OrganizationTitle"] = "organization-title";
|
|
89
|
+
TextInputAutocomplete["Organization"] = "organization";
|
|
90
|
+
TextInputAutocomplete["StreetAddress"] = "street-address";
|
|
91
|
+
TextInputAutocomplete["AddressLine1"] = "address-line1";
|
|
92
|
+
TextInputAutocomplete["AddressLine2"] = "address-line2";
|
|
93
|
+
TextInputAutocomplete["AddressLine3"] = "address-line3";
|
|
94
|
+
TextInputAutocomplete["AddressLevel4"] = "address-level4";
|
|
95
|
+
TextInputAutocomplete["AddressLevel3"] = "address-level3";
|
|
96
|
+
TextInputAutocomplete["AddressLevel2"] = "address-level2";
|
|
97
|
+
TextInputAutocomplete["AddressLevel1"] = "address-level1";
|
|
98
|
+
TextInputAutocomplete["Country"] = "country";
|
|
99
|
+
TextInputAutocomplete["CountryName"] = "country-name";
|
|
100
|
+
TextInputAutocomplete["PostalCode"] = "postal-code";
|
|
101
|
+
TextInputAutocomplete["CCName"] = "cc-name";
|
|
102
|
+
TextInputAutocomplete["CCGivenName"] = "cc-given-name";
|
|
103
|
+
TextInputAutocomplete["CCAdditionalName"] = "cc-additional-name";
|
|
104
|
+
TextInputAutocomplete["CCFamilyName"] = "cc-family-name";
|
|
105
|
+
TextInputAutocomplete["CCNumber"] = "cc-number";
|
|
106
|
+
TextInputAutocomplete["CCExp"] = "cc-exp";
|
|
107
|
+
TextInputAutocomplete["CCExpMonth"] = "cc-exp-month";
|
|
108
|
+
TextInputAutocomplete["CCExpYear"] = "cc-exp-year";
|
|
109
|
+
TextInputAutocomplete["CCCSC"] = "cc-csc";
|
|
110
|
+
TextInputAutocomplete["CCType"] = "cc-type";
|
|
111
|
+
TextInputAutocomplete["TransactionCurrency"] = "transaction-currency";
|
|
112
|
+
TextInputAutocomplete["TransactionAmount"] = "transaction-amount";
|
|
113
|
+
TextInputAutocomplete["Language"] = "language";
|
|
114
|
+
TextInputAutocomplete["Bday"] = "bday";
|
|
115
|
+
TextInputAutocomplete["BdayDay"] = "bday-day";
|
|
116
|
+
TextInputAutocomplete["BdayMonth"] = "bday-month";
|
|
117
|
+
TextInputAutocomplete["BdayYear"] = "bday-year";
|
|
118
|
+
TextInputAutocomplete["Sex"] = "sex";
|
|
119
|
+
TextInputAutocomplete["Url"] = "url";
|
|
120
|
+
TextInputAutocomplete["Photo"] = "photo";
|
|
121
|
+
})(TextInputAutocomplete || (TextInputAutocomplete = {}));
|
|
122
|
+
|
|
123
|
+
const constants = /*#__PURE__*/Object.freeze({
|
|
124
|
+
__proto__: null,
|
|
125
|
+
get FeedbackColors () { return FeedbackColors; },
|
|
126
|
+
get DeprecatedSemanticColors () { return DeprecatedSemanticColors; },
|
|
127
|
+
get SemanticSizes () { return SemanticSizes; },
|
|
128
|
+
get ButtonSize () { return ButtonSize; },
|
|
129
|
+
get ButtonEmphasis () { return ButtonEmphasis; },
|
|
130
|
+
get ButtonType () { return ButtonType; },
|
|
131
|
+
get LoaderColors () { return LoaderColors; },
|
|
132
|
+
get FieldLabelPlacement () { return FieldLabelPlacement; },
|
|
133
|
+
get TextInputAutocomplete () { return TextInputAutocomplete; }
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
export { ButtonSize as B, FeedbackColors as F, SemanticSizes as S, constants as c };
|
|
137
|
+
|
|
138
|
+
//# sourceMappingURL=p-a15ddd42.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-a15ddd42.js","mappings":"IAAY;AAAZ,WAAY,cAAc;IACxB,6CAA2B,CAAA;IAC3B,qCAAmB,CAAA;IACnB,qCAAmB,CAAA;IACnB,iCAAe,CAAA;IACf,qCAAmB,CAAA;AACrB,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB;AACD,IAAY,wBAMX;AAND,WAAY,wBAAwB;IAClC,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;IACnB,mDAAuB,CAAA;IACvB,+CAAmB,CAAA;IACnB,2CAAe,CAAA;AACjB,CAAC,EANW,wBAAwB,KAAxB,wBAAwB,QAMnC;IACW;AAAZ,WAAY,aAAa;IACvB,kCAAiB,CAAA;IACjB,6BAAY,CAAA;IACZ,8BAAa,CAAA;IACb,6BAAY,CAAA;IACZ,kCAAiB,CAAA;AACnB,CAAC,EANW,aAAa,KAAb,aAAa,QAMxB;IACW;AAAZ,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,0BAAY,CAAA;IACZ,2BAAa,CAAA;IACb,0BAAY,CAAA;AACd,CAAC,EALW,UAAU,KAAV,UAAU,QAKrB;AACD,IAAY,cAKX;AALD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,mCAAiB,CAAA;IACjB,6BAAW,CAAA;IACX,iCAAe,CAAA;AACjB,CAAC,EALW,cAAc,KAAd,cAAc,QAKzB;AACD,IAAY,UAIX;AAJD,WAAY,UAAU;IACpB,+BAAiB,CAAA;IACjB,6BAAe,CAAA;IACf,+BAAiB,CAAA;AACnB,CAAC,EAJW,UAAU,KAAV,UAAU,QAIrB;AACD,IAAY,YAGX;AAHD,WAAY,YAAY;IACtB,8BAAc,CAAA;IACd,6BAAa,CAAA;AACf,CAAC,EAHW,YAAY,KAAZ,YAAY,QAGvB;AACD,IAAY,mBAGX;AAHD,WAAY,mBAAmB;IAC7B,wCAAiB,CAAA;IACjB,sCAAe,CAAA;AACjB,CAAC,EAHW,mBAAmB,KAAnB,mBAAmB,QAG9B;AAED,IAAY,qBAiEX;AAjED,WAAY,qBAAqB;IAC/B,kCAAS,CAAA;IACT,oCAAW,CAAA;IACX,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,4CAAmB,CAAA;IACnB,sCAAa,CAAA;IACb,sCAAa,CAAA;IACb,0CAAiB,CAAA;IACjB,oCAAW,CAAA;IACX,wCAAe,CAAA;IACf,oCAAW,CAAA;IACX,4DAAmC,CAAA;IACnC,qDAA4B,CAAA;IAC5B,sDAA6B,CAAA;IAC7B,+CAAsB,CAAA;IACtB,4DAAmC,CAAA;IACnC,4DAAmC,CAAA;IACnC,uDAA8B,CAAA;IAC9B,wCAAe,CAAA;IACf,4CAAmB,CAAA;IACnB,sCAAa,CAAA;IACb,6DAAoC,CAAA;IACpC,iDAAwB,CAAA;IACxB,2DAAkC,CAAA;IAClC,mDAA0B,CAAA;IAC1B,6DAAoC,CAAA;IACpC,8CAAqB,CAAA;IACrB,8CAAqB,CAAA;IACrB,qDAA4B,CAAA;IAC5B,6DAAoC,CAAA;IACpC,sDAA6B,CAAA;IAC7B,iEAAwC,CAAA;IACxC,sDAA6B,CAAA;IAC7B,yDAAgC,CAAA;IAChC,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,uDAA8B,CAAA;IAC9B,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,yDAAgC,CAAA;IAChC,4CAAmB,CAAA;IACnB,qDAA4B,CAAA;IAC5B,mDAA0B,CAAA;IAC1B,2CAAkB,CAAA;IAClB,sDAA6B,CAAA;IAC7B,gEAAuC,CAAA;IACvC,wDAA+B,CAAA;IAC/B,+CAAsB,CAAA;IACtB,yCAAgB,CAAA;IAChB,oDAA2B,CAAA;IAC3B,kDAAyB,CAAA;IACzB,yCAAgB,CAAA;IAChB,2CAAkB,CAAA;IAClB,qEAA4C,CAAA;IAC5C,iEAAwC,CAAA;IACxC,8CAAqB,CAAA;IACrB,sCAAa,CAAA;IACb,6CAAoB,CAAA;IACpB,iDAAwB,CAAA;IACxB,+CAAsB,CAAA;IACtB,oCAAW,CAAA;IACX,oCAAW,CAAA;IACX,wCAAe,CAAA;AACjB,CAAC,EAjEW,qBAAqB,KAArB,qBAAqB;;;;;;;;;;;;;;;;;","names":[],"sources":["src/utils/constants.ts"],"sourcesContent":["export enum FeedbackColors {\n Information = 'information',\n Warning = 'warning',\n Success = 'success',\n Error = 'error',\n Neutral = 'neutral',\n}\nexport enum DeprecatedSemanticColors {\n Neutral = 'neutral',\n Primary = 'primary',\n Secondary = 'secondary',\n Success = 'success',\n Error = 'error',\n}\nexport enum SemanticSizes {\n ExtraSmall = 'xs',\n Small = 'sm',\n Medium = 'md',\n Large = 'lg',\n ExtraLarge = 'xl',\n}\nexport enum ButtonSize {\n ExtraSmall = 'xs',\n Small = 'sm',\n Medium = 'md',\n Large = 'lg',\n}\nexport enum ButtonEmphasis {\n High = 'high',\n Medium = 'medium',\n Low = 'low',\n Lower = 'lower',\n}\nexport enum ButtonType {\n Submit = 'submit',\n Reset = 'reset',\n Button = 'button',\n}\nexport enum LoaderColors {\n High = 'brand',\n Low = 'white',\n}\nexport enum FieldLabelPlacement {\n Before = 'before',\n After = 'after',\n}\n\nexport enum TextInputAutocomplete {\n On = 'on',\n Off = 'off',\n Section = 'section-*',\n Shipping = 'shipping',\n Billing = 'billing',\n Home = 'home',\n Work = 'work',\n Mobile = 'mobile',\n Fax = 'fax',\n Pager = 'pager',\n Tel = 'tel',\n TelCountryCode = 'tel-country-code',\n TelNational = 'tel-national',\n TelAreaCode = 'tel-area-code',\n TelLocal = 'tel-local',\n TelLocalPrefix = 'tel-local-prefix',\n TelLocalSuffix = 'tel-local-suffix',\n TelExtension = 'tel-extension',\n Email = 'email',\n IMProtocol = 'impp',\n Name = 'name',\n HonorificPrefix = 'honorific-prefix',\n GivenName = 'given-name',\n AdditionalName = 'additional-name',\n FamilyName = 'family-name',\n HonorificSuffix = 'honorific-suffix',\n Nickname = 'nickname',\n Username = 'username',\n NewPassword = 'new-password',\n CurrentPassword = 'current-password',\n OneTimeCode = 'one-time-code',\n OrganizationTitle = 'organization-title',\n Organization = 'organization',\n StreetAddress = 'street-address',\n AddressLine1 = 'address-line1',\n AddressLine2 = 'address-line2',\n AddressLine3 = 'address-line3',\n AddressLevel4 = 'address-level4',\n AddressLevel3 = 'address-level3',\n AddressLevel2 = 'address-level2',\n AddressLevel1 = 'address-level1',\n Country = 'country',\n CountryName = 'country-name',\n PostalCode = 'postal-code',\n CCName = 'cc-name',\n CCGivenName = 'cc-given-name',\n CCAdditionalName = 'cc-additional-name',\n CCFamilyName = 'cc-family-name',\n CCNumber = 'cc-number',\n CCExp = 'cc-exp',\n CCExpMonth = 'cc-exp-month',\n CCExpYear = 'cc-exp-year',\n CCCSC = 'cc-csc',\n CCType = 'cc-type',\n TransactionCurrency = 'transaction-currency',\n TransactionAmount = 'transaction-amount',\n Language = 'language',\n Bday = 'bday',\n BdayDay = 'bday-day',\n BdayMonth = 'bday-month',\n BdayYear = 'bday-year',\n Sex = 'sex',\n Url = 'url',\n Photo = 'photo',\n}\n"],"version":3}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { p as proxyCustomElement, H, h, d as Host } from './p-632bedb8.js';
|
|
2
|
+
import { c as clsx } from './p-8a1a6e56.js';
|
|
3
|
+
import { d as defineCustomElement$2 } from './p-6146d4b0.js';
|
|
4
|
+
import { d as defineCustomElement$1 } from './p-8da6d9a3.js';
|
|
5
|
+
|
|
6
|
+
const nvIconbuttonCss = "nv-iconbutton.root{display:inline-flex;justify-content:center;align-items:center;font-style:normal;font-weight:500;font-family:\"TT Norms Pro\", sans-serif;transition:background-color 150ms ease-out;height:fit-content;width:fit-content}nv-iconbutton.size-xs{padding:var(--button-xs-icon-button-padding);gap:var(--button-xs-gap);border-radius:var(--button-xs-border-radius);line-height:var(--button-xs-line-height);font-size:var(--button-xs-font-size)}nv-iconbutton.size-sm{padding:var(--button-sm-icon-button-padding);gap:var(--button-sm-gap);border-radius:var(--button-sm-border-radius);line-height:var(--button-sm-line-height);font-size:var(--button-sm-font-size)}nv-iconbutton.size-md{padding:var(--button-md-icon-button-padding);gap:var(--button-md-gap);border-radius:var(--button-md-border-radius);line-height:var(--button-md-line-height);font-size:var(--button-md-font-size)}nv-iconbutton.size-lg{padding:var(--button-lg-icon-button-padding);gap:var(--button-lg-gap);border-radius:var(--button-lg-border-radius);line-height:var(--button-lg-line-height);font-size:var(--button-lg-font-size)}nv-iconbutton.emphasis-high{background:var(--components-button-high-background);border:1px solid var(--components-button-high-border);color:var(--components-button-high-text)}nv-iconbutton.emphasis-high:hover{background:var(--components-button-high-background-hover);color:var(--components-button-high-text-hover)}nv-iconbutton.emphasis-high:focus,nv-iconbutton.emphasis-high:focus-within{outline:none}nv-iconbutton.emphasis-high:focus-visible,nv-iconbutton.emphasis-high:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-high:disabled{background:var(--components-button-high-background);color:var(--components-button-high-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-high nv-icon>svg{color:var(--components-button-high-icon)}nv-iconbutton.emphasis-medium{background:var(--components-button-medium-background);border:1px solid var(--components-button-medium-border);color:var(--components-button-medium-text)}nv-iconbutton.emphasis-medium:hover{background:var(--components-button-medium-background-hover);color:var(--components-button-medium-text-hover)}nv-iconbutton.emphasis-medium:focus,nv-iconbutton.emphasis-medium:focus-within{outline:none}nv-iconbutton.emphasis-medium:focus-visible,nv-iconbutton.emphasis-medium:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-medium:disabled{background:var(--components-button-medium-background);color:var(--components-button-medium-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-medium nv-icon>svg{color:var(--components-button-medium-icon)}nv-iconbutton.emphasis-low{background:var(--components-button-low-background);border:1px solid var(--components-button-low-border);color:var(--components-button-low-text)}nv-iconbutton.emphasis-low:hover{background:var(--components-button-low-background-hover);color:var(--components-button-low-text-hover)}nv-iconbutton.emphasis-low:focus,nv-iconbutton.emphasis-low:focus-within{outline:none}nv-iconbutton.emphasis-low:focus-visible,nv-iconbutton.emphasis-low:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-low:disabled{background:var(--components-button-low-background);color:var(--components-button-low-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-low nv-icon>svg{color:var(--components-button-low-icon)}nv-iconbutton.emphasis-lower{background:var(--components-button-lower-background);border:1px solid var(--components-button-lower-border);color:var(--components-button-lower-text)}nv-iconbutton.emphasis-lower:hover{background:var(--components-button-lower-background-hover);color:var(--components-button-lower-text-hover)}nv-iconbutton.emphasis-lower:focus,nv-iconbutton.emphasis-lower:focus-within{outline:none}nv-iconbutton.emphasis-lower:focus-visible,nv-iconbutton.emphasis-lower:has(:focus-visible){outline:var(--focus-outline-stroke) solid var(--color-focus-brand);outline-offset:calc(var(--focus-outline-offset) * 1)}nv-iconbutton.emphasis-lower:disabled{background:var(--components-button-lower-background);color:var(--components-button-lower-text);opacity:0.5;cursor:not-allowed;box-shadow:none}nv-iconbutton.emphasis-lower nv-icon>svg{color:var(--components-button-lower-icon)}nv-iconbutton.loading [slot=leading-icon]{display:none}nv-iconbutton.shape-rounded{border-radius:var(--radius-rounded-full)}";
|
|
7
|
+
const NvIconbuttonStyle0 = nvIconbuttonCss;
|
|
8
|
+
|
|
9
|
+
const NvIconbutton = /*@__PURE__*/ proxyCustomElement(class NvIconbutton extends H {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
this.__registerHost();
|
|
13
|
+
this.internals = this.attachInternals();
|
|
14
|
+
//#endregion PROPERTIES
|
|
15
|
+
/****************************************************************************/
|
|
16
|
+
//#region METHODS
|
|
17
|
+
/**
|
|
18
|
+
* Handles form-related actions when the button is clicked.
|
|
19
|
+
* - Submits the form if the button type is 'submit'.
|
|
20
|
+
* - Resets the form if the button type is 'reset'.
|
|
21
|
+
* @param {Event} event - The click event.
|
|
22
|
+
*/
|
|
23
|
+
this.handleClick = (event) => {
|
|
24
|
+
var _a, _b, _c, _d;
|
|
25
|
+
if (this.loading || this.disabled) {
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
if (this.type === 'submit') {
|
|
30
|
+
(_b = (_a = this.internals) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.requestSubmit();
|
|
31
|
+
}
|
|
32
|
+
if (this.type === 'reset') {
|
|
33
|
+
(_d = (_c = this.internals) === null || _c === void 0 ? void 0 : _c.form) === null || _d === void 0 ? void 0 : _d.reset();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
this.size = 'md';
|
|
37
|
+
this.emphasis = 'high';
|
|
38
|
+
this.loading = false;
|
|
39
|
+
this.disabled = false;
|
|
40
|
+
this.active = false;
|
|
41
|
+
this.name = undefined;
|
|
42
|
+
this.type = 'button';
|
|
43
|
+
this.shape = 'square';
|
|
44
|
+
}
|
|
45
|
+
//#endregion METHODS
|
|
46
|
+
/****************************************************************************/
|
|
47
|
+
//#region WATCHERS
|
|
48
|
+
handleLoadingChange(loading) {
|
|
49
|
+
this.loading = loading;
|
|
50
|
+
this.disabled = loading;
|
|
51
|
+
}
|
|
52
|
+
handleDisabledChange(disabled) {
|
|
53
|
+
if (this.loading) {
|
|
54
|
+
this.disabled = this.loading;
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
this.disabled = disabled;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
//#endregion WATCHERS
|
|
61
|
+
/****************************************************************************/
|
|
62
|
+
//#region LIFECYCLE
|
|
63
|
+
componentWillLoad() {
|
|
64
|
+
if (this.loading) {
|
|
65
|
+
this.disabled = this.loading;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
//#endregion LIFECYCLE
|
|
69
|
+
/****************************************************************************/
|
|
70
|
+
//#region RENDER
|
|
71
|
+
render() {
|
|
72
|
+
return (h(Host, { key: '3ca84b14312db9e4fff85fac71fbb0cc7ae7db44', role: "button", type: this.type, tabindex: "0", disabled: this.disabled ? true : undefined, class: clsx('root', `size-${this.size}`, `emphasis-${this.emphasis}`, this.loading && 'loading', `shape-${this.shape}`), onClick: this.handleClick }, this.loading && h("nv-loader", { key: 'bfb6c6ee4dbfa56595b704f436120c3ae18f4fc4', size: this.size }), !this.loading && h("nv-icon", { key: '7e87da2f6d233289bbce12416bf0d39b647f43f3', name: this.name, size: this.size }), h("slot", { key: '43972e79cf4efb921cbc9714110b13590144a268' })));
|
|
73
|
+
}
|
|
74
|
+
static get formAssociated() { return true; }
|
|
75
|
+
get el() { return this; }
|
|
76
|
+
static get watchers() { return {
|
|
77
|
+
"loading": ["handleLoadingChange"],
|
|
78
|
+
"disabled": ["handleDisabledChange"]
|
|
79
|
+
}; }
|
|
80
|
+
static get style() { return NvIconbuttonStyle0; }
|
|
81
|
+
}, [68, "nv-iconbutton", {
|
|
82
|
+
"size": [513],
|
|
83
|
+
"emphasis": [513],
|
|
84
|
+
"loading": [1540],
|
|
85
|
+
"disabled": [1540],
|
|
86
|
+
"active": [516],
|
|
87
|
+
"name": [513],
|
|
88
|
+
"type": [513],
|
|
89
|
+
"shape": [513]
|
|
90
|
+
}, undefined, {
|
|
91
|
+
"loading": ["handleLoadingChange"],
|
|
92
|
+
"disabled": ["handleDisabledChange"]
|
|
93
|
+
}]);
|
|
94
|
+
function defineCustomElement() {
|
|
95
|
+
if (typeof customElements === "undefined") {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const components = ["nv-iconbutton", "nv-icon", "nv-loader"];
|
|
99
|
+
components.forEach(tagName => { switch (tagName) {
|
|
100
|
+
case "nv-iconbutton":
|
|
101
|
+
if (!customElements.get(tagName)) {
|
|
102
|
+
customElements.define(tagName, NvIconbutton);
|
|
103
|
+
}
|
|
104
|
+
break;
|
|
105
|
+
case "nv-icon":
|
|
106
|
+
if (!customElements.get(tagName)) {
|
|
107
|
+
defineCustomElement$2();
|
|
108
|
+
}
|
|
109
|
+
break;
|
|
110
|
+
case "nv-loader":
|
|
111
|
+
if (!customElements.get(tagName)) {
|
|
112
|
+
defineCustomElement$1();
|
|
113
|
+
}
|
|
114
|
+
break;
|
|
115
|
+
} });
|
|
116
|
+
}
|
|
117
|
+
defineCustomElement();
|
|
118
|
+
|
|
119
|
+
export { NvIconbutton as N, defineCustomElement as d };
|
|
120
|
+
|
|
121
|
+
//# sourceMappingURL=p-be79e7bc.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"file":"p-be79e7bc.js","mappings":";;;;;AAAA,MAAM,eAAe,GAAG,8nJAA8nJ,CAAC;AACvpJ,2BAAe,eAAe;;MCuBjB,YAAY;;;;;;;;;;;;;;QA6Ef,gBAAW,GAAG,CAAC,KAAY;;YACjC,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,QAAQ,EAAE;gBACjC,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO;aACR;YAED,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,EAAE;gBAC1B,MAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,IAAI,0CAAE,aAAa,EAAE,CAAC;aACvC;YACD,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE;gBACzB,MAAA,MAAA,IAAI,CAAC,SAAS,0CAAE,IAAI,0CAAE,KAAK,EAAE,CAAC;aAC/B;SACF,CAAC;oBA7E+B,IAAI;wBAQI,MAAM;uBAU5B,KAAK;wBAMJ,KAAK;sBAOE,KAAK;;oBAgBC,QAAQ;qBAMF,QAAQ;;;;;IA+B/C,mBAAmB,CAAC,OAAgB;QAClC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;KACzB;IAGD,oBAAoB,CAAC,QAAiB;QACpC,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;SAC9B;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;SAC1B;KACF;;;;IAMD,iBAAiB;QACf,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC;SAC9B;KACF;;;;IAMD,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,IAAI,EAAC,QAAQ,EACb,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAC,GAAG,EACZ,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,SAAS,EAC1C,KAAK,EAAE,IAAI,CACT,MAAM,EACN,QAAQ,IAAI,CAAC,IAAI,EAAE,EACnB,YAAY,IAAI,CAAC,QAAQ,EAAE,EAC3B,IAAI,CAAC,OAAO,IAAI,SAAS,EACzB,SAAS,IAAI,CAAC,KAAK,EAAE,CACtB,EACD,OAAO,EAAE,IAAI,CAAC,WAAW,IAExB,IAAI,CAAC,OAAO,IAAI,kEAAW,IAAI,EAAE,IAAI,CAAC,IAAI,GAAc,EAExD,CAAC,IAAI,CAAC,OAAO,IAAI,gEAAS,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI,EAE/D,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/nv-iconbutton/nv-iconbutton.scss?tag=nv-iconbutton","src/components/nv-iconbutton/nv-iconbutton.tsx"],"sourcesContent":["@use \"sass:map\";\n@import \"../../styles/focus-ring\";\n\n/* Variants */\n$button-sizes: (\"xs\", \"sm\", \"md\", \"lg\");\n$button-emphasis: (\"high\", \"medium\", \"low\", \"lower\");\n\n/* Define maps for size-related variables */\n$button-icon-button-padding: (\n \"xs\": var(--button-xs-icon-button-padding),\n \"sm\": var(--button-sm-icon-button-padding),\n \"md\": var(--button-md-icon-button-padding),\n \"lg\": var(--button-lg-icon-button-padding)\n);\n\n$button-gap: (\n \"xs\": var(--button-xs-gap),\n \"sm\": var(--button-sm-gap),\n \"md\": var(--button-md-gap),\n \"lg\": var(--button-lg-gap)\n);\n\n$button-border-radius: (\n \"xs\": var(--button-xs-border-radius),\n \"sm\": var(--button-sm-border-radius),\n \"md\": var(--button-md-border-radius),\n \"lg\": var(--button-lg-border-radius)\n);\n\n$button-line-height: (\n \"xs\": var(--button-xs-line-height),\n \"sm\": var(--button-sm-line-height),\n \"md\": var(--button-md-line-height),\n \"lg\": var(--button-lg-line-height)\n);\n\n$button-font-size: (\n \"xs\": var(--button-xs-font-size),\n \"sm\": var(--button-sm-font-size),\n \"md\": var(--button-md-font-size),\n \"lg\": var(--button-lg-font-size)\n);\n\n/* Define maps for emphasis-related variables */\n$components-button-background: (\n \"high\": var(--components-button-high-background),\n \"medium\": var(--components-button-medium-background),\n \"low\": var(--components-button-low-background),\n \"lower\": var(--components-button-lower-background)\n);\n\n$components-button-border: (\n \"high\": var(--components-button-high-border),\n \"medium\": var(--components-button-medium-border),\n \"low\": var(--components-button-low-border),\n \"lower\": var(--components-button-lower-border)\n);\n\n$components-button-text: (\n \"high\": var(--components-button-high-text),\n \"medium\": var(--components-button-medium-text),\n \"low\": var(--components-button-low-text),\n \"lower\": var(--components-button-lower-text)\n);\n\n$components-button-background-hover: (\n \"high\": var(--components-button-high-background-hover),\n \"medium\": var(--components-button-medium-background-hover),\n \"low\": var(--components-button-low-background-hover),\n \"lower\": var(--components-button-lower-background-hover)\n);\n\n$components-button-text-hover: (\n \"high\": var(--components-button-high-text-hover),\n \"medium\": var(--components-button-medium-text-hover),\n \"low\": var(--components-button-low-text-hover),\n \"lower\": var(--components-button-lower-text-hover)\n);\n\n$components-button-icon: (\n \"high\": var(--components-button-high-icon),\n \"medium\": var(--components-button-medium-icon),\n \"low\": var(--components-button-low-icon),\n \"lower\": var(--components-button-lower-icon)\n);\n\n@mixin root-styles() {\n display: inline-flex;\n justify-content: center;\n align-items: center;\n font-style: normal;\n font-weight: 500;\n font-family: \"TT Norms Pro\", sans-serif;\n transition: background-color 150ms ease-out;\n height: fit-content;\n width: fit-content;\n}\n\n@mixin size-styles($size) {\n padding: map.get($button-icon-button-padding, $size);\n gap: map.get($button-gap, $size);\n border-radius: map.get($button-border-radius, $size);\n line-height: map.get($button-line-height, $size);\n font-size: map.get($button-font-size, $size);\n}\n\n@mixin emphasis-styles($emphasis) {\n background: map.get($components-button-background, $emphasis);\n border: 1px solid map.get($components-button-border, $emphasis);\n color: map.get($components-button-text, $emphasis);\n\n &:hover {\n background: map.get($components-button-background-hover, $emphasis);\n color: map.get($components-button-text-hover, $emphasis);\n }\n\n @include focus-ring();\n\n &:disabled {\n background: map.get($components-button-background, $emphasis);\n color: map.get($components-button-text, $emphasis);\n opacity: 0.5;\n cursor: not-allowed;\n box-shadow: none;\n }\n\n & nv-icon > svg {\n color: map.get($components-button-icon, $emphasis);\n }\n}\n\nnv-iconbutton {\n &.root {\n @include root-styles();\n }\n\n @each $size in $button-sizes {\n &.size-#{$size} {\n @include size-styles($size);\n }\n }\n\n @each $emphasis in $button-emphasis {\n &.emphasis-#{$emphasis} {\n @include emphasis-styles($emphasis);\n }\n }\n\n &.loading {\n [slot=\"leading-icon\"] {\n display: none;\n }\n }\n\n &.shape-rounded {\n border-radius: var(--radius-rounded-full);\n }\n}\n","import {\n Component,\n Host,\n h,\n Prop,\n AttachInternals,\n Element,\n Watch,\n} from '@stencil/core';\nimport clsx from 'clsx';\n\nimport { ButtonSize, ButtonEmphasis, ButtonType } from '../../utils/constants';\nimport { IconName } from '../nv-icon/nv-icons';\n\n/**\n * @slot default - Content of the button.\n */\n@Component({\n tag: 'nv-iconbutton',\n shadow: false,\n formAssociated: true,\n styleUrl: 'nv-iconbutton.scss',\n scoped: false,\n})\nexport class NvIconbutton {\n @AttachInternals() internals: ElementInternals;\n @Element() el: HTMLNvIconbuttonElement;\n\n /****************************************************************************/\n //#region PROPERTIES\n /**\n * Determines how large or small the button appears, allowing for\n * customization of the button's dimensions to fit different design\n * specifications and user needs.\n */\n @Prop({ reflect: true })\n readonly size: `${ButtonSize}` = 'md';\n\n /**\n * Adjusts the button’s emphasis to make it more or less visually prominent\n * to users. Use this to draw attention to important actions or reduce focus\n * on less critical ones.\n */\n @Prop({ reflect: true })\n readonly emphasis: `${ButtonEmphasis}` = 'high';\n\n /**\n * Set this to true to show a spinner on the button, letting users know that\n * their action is being processed. It helps improve user experience by\n * indicating ongoing activities. The icon is not displayed when the button\n * is loading. Also, the button is disabled. If you want to disable the\n * button, it is not possible. It is automatically disabled when loading.\n */\n @Prop({ reflect: true, mutable: true })\n loading: boolean = false;\n\n /**\n * Disables the button, preventing user interaction.\n */\n @Prop({ mutable: true, reflect: true })\n disabled: boolean = false;\n\n /**\n * Makes the button look active when it’s within a compatible component\n * like a button group.\n */\n @Prop({ reflect: true })\n readonly active: boolean = false;\n\n /**\n * Choose the icon you want to display. This also sets the aria-label for\n * improved accessibility, helping users who rely on screen readers.\n * The icon is not displayed when the button is loading.\n */\n @Prop({ reflect: true })\n readonly name: `${IconName}` | string;\n\n /**\n * Sets the button type to control its function in forms. Use 'submit' to send\n * form data, 'reset' to clear the form, or 'button' for a standard button\n * that doesn’t interact with form submission by default.\n */\n @Prop({ reflect: true })\n readonly type: `${ButtonType}` = 'button';\n\n /**\n * Sets the shape of the button. Choose between square and rounded.\n */\n @Prop({ reflect: true })\n readonly shape: 'square' | 'rounded' = 'square';\n\n //#endregion PROPERTIES\n /****************************************************************************/\n //#region METHODS\n\n /**\n * Handles form-related actions when the button is clicked.\n * - Submits the form if the button type is 'submit'.\n * - Resets the form if the button type is 'reset'.\n * @param {Event} event - The click event.\n */\n private handleClick = (event: Event) => {\n if (this.loading || this.disabled) {\n event.preventDefault();\n return;\n }\n\n if (this.type === 'submit') {\n this.internals?.form?.requestSubmit();\n }\n if (this.type === 'reset') {\n this.internals?.form?.reset();\n }\n };\n\n //#endregion METHODS\n /****************************************************************************/\n //#region WATCHERS\n\n @Watch('loading')\n handleLoadingChange(loading: boolean) {\n this.loading = loading;\n this.disabled = loading;\n }\n\n @Watch('disabled')\n handleDisabledChange(disabled: boolean) {\n if (this.loading) {\n this.disabled = this.loading;\n } else {\n this.disabled = disabled;\n }\n }\n\n //#endregion WATCHERS\n /****************************************************************************/\n //#region LIFECYCLE\n\n componentWillLoad() {\n if (this.loading) {\n this.disabled = this.loading;\n }\n }\n\n //#endregion LIFECYCLE\n /****************************************************************************/\n //#region RENDER\n\n render() {\n return (\n <Host\n role=\"button\"\n type={this.type}\n tabindex=\"0\"\n disabled={this.disabled ? true : undefined}\n class={clsx(\n 'root',\n `size-${this.size}`,\n `emphasis-${this.emphasis}`,\n this.loading && 'loading',\n `shape-${this.shape}`,\n )}\n onClick={this.handleClick}\n >\n {this.loading && <nv-loader size={this.size}></nv-loader>}\n\n {!this.loading && <nv-icon name={this.name} size={this.size} />}\n\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
|