@nvidia-elements/core 2.2.2 → 2.3.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/CHANGELOG.md +27 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert.examples.js.map +1 -1
- package/dist/alert/alert.examples.json +7 -3
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundles/index.d.ts +61 -8
- package/dist/bundles/index.js +6 -6
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card.examples.js.map +1 -1
- package/dist/card/card.examples.json +10 -4
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +47 -10
- package/dist/custom-elements-vue.d.ts +47 -10
- package/dist/custom-elements.json +394 -17
- package/dist/data.html.json +65 -7
- package/dist/data.snippets.json +27 -27
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/dialog/dialog2.js.map +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer.d.ts +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/drawer/drawer2.js.map +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown.d.ts +3 -3
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown/dropdown2.js.map +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/define.d.ts +6 -0
- package/dist/format-bytes/define.js +7 -0
- package/dist/format-bytes/define.js.map +1 -0
- package/dist/format-bytes/format-bytes.d.ts +53 -0
- package/dist/format-bytes/format-bytes.examples.js +6 -0
- package/dist/format-bytes/format-bytes.examples.js.map +1 -0
- package/dist/format-bytes/format-bytes.examples.json +69 -0
- package/dist/format-bytes/format-bytes.js +6 -0
- package/dist/format-bytes/format-bytes.js.map +1 -0
- package/dist/format-bytes/format-bytes2.js +182 -0
- package/dist/format-bytes/format-bytes2.js.map +1 -0
- package/dist/format-bytes/index.d.ts +1 -0
- package/dist/format-bytes/index.js +2 -0
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/forms/control/control.js +1 -1
- package/dist/forms/control/control.js.map +1 -1
- package/dist/forms/control/control2.js +9 -21
- package/dist/forms/control/control2.js.map +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge.examples.js.map +1 -1
- package/dist/gauge/gauge.examples.json +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid.examples.js.map +1 -1
- package/dist/grid/grid.examples.json +6 -2
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input.js +1 -1
- package/dist/input/input.js.map +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification.d.ts +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/notification/notification2.js.map +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page.d.ts +1 -0
- package/dist/page/page.js +1 -1
- package/dist/page/page.js.map +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page/page2.js.map +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select.js +1 -1
- package/dist/select/select.js.map +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast.d.ts +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toast/toast2.js.map +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip.examples.js.map +1 -1
- package/dist/toggletip/toggletip.examples.json +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar.examples.js.map +1 -1
- package/dist/toolbar/toolbar.examples.json +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip.d.ts +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tooltip/tooltip2.js.map +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +26 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,30 @@
|
|
|
1
|
+
## 2.3.0 (2026-08-07)
|
|
2
|
+
|
|
3
|
+
* fix(cli): update dependencies ([ff596a1](https://github.com/NVIDIA/elements/commit/ff596a1))
|
|
4
|
+
* fix(forms): respect event default prevention ([5618862](https://github.com/NVIDIA/elements/commit/5618862))
|
|
5
|
+
* chore(ci): lint rules and skill for component registration and testing ([6c7fea0](https://github.com/NVIDIA/elements/commit/6c7fea0))
|
|
6
|
+
* chore(ci): update metadata ([b7120bf](https://github.com/NVIDIA/elements/commit/b7120bf))
|
|
7
|
+
* chore(docs): add component preview to card list ([c7e16a5](https://github.com/NVIDIA/elements/commit/c7e16a5))
|
|
8
|
+
* chore(release): @nvidia-elements/forms-v2.0.6 [skip ci] ([c977b1a](https://github.com/NVIDIA/elements/commit/c977b1a))
|
|
9
|
+
* feat(core): format-bytes ([bfd2e5e](https://github.com/NVIDIA/elements/commit/bfd2e5e))
|
|
10
|
+
* feat(media): init ([859c8f9](https://github.com/NVIDIA/elements/commit/859c8f9))
|
|
11
|
+
|
|
12
|
+
## <small>2.2.3 (2026-08-05)</small>
|
|
13
|
+
|
|
14
|
+
* fix(cli): workspace dependency ([5ecbd96](https://github.com/NVIDIA/elements/commit/5ecbd96))
|
|
15
|
+
* fix(core): size height calculation ([204aa52](https://github.com/NVIDIA/elements/commit/204aa52))
|
|
16
|
+
* fix(core): update fit-text input to native field sizing ([cadc33c](https://github.com/NVIDIA/elements/commit/cadc33c))
|
|
17
|
+
* fix(styles): add width rule for row layout with space-between alignment ([61113ad](https://github.com/NVIDIA/elements/commit/61113ad))
|
|
18
|
+
* chore(ci): add github dependabot skill ([4cb37a7](https://github.com/NVIDIA/elements/commit/4cb37a7))
|
|
19
|
+
* chore(ci): enhance ci performance profiling and add new scripts ([ef0a912](https://github.com/NVIDIA/elements/commit/ef0a912))
|
|
20
|
+
* chore(ci): update dependencies ([4601239](https://github.com/NVIDIA/elements/commit/4601239))
|
|
21
|
+
* chore(ci): update metadata and test coverage report ([216a7a9](https://github.com/NVIDIA/elements/commit/216a7a9))
|
|
22
|
+
* chore(docs): july update ([59d3f83](https://github.com/NVIDIA/elements/commit/59d3f83))
|
|
23
|
+
* chore(release): @nvidia-elements/cli-v2.1.9 [skip ci] ([651abf3](https://github.com/NVIDIA/elements/commit/651abf3))
|
|
24
|
+
* chore(release): @nvidia-elements/lint-v2.3.0 [skip ci] ([35bb729](https://github.com/NVIDIA/elements/commit/35bb729))
|
|
25
|
+
* chore(release): @nvidia-elements/styles-v2.1.2 [skip ci] ([71fab6c](https://github.com/NVIDIA/elements/commit/71fab6c))
|
|
26
|
+
* feat(lint): add rule to restrict container="full" usage ([a634e39](https://github.com/NVIDIA/elements/commit/a634e39))
|
|
27
|
+
|
|
1
28
|
## <small>2.2.2 (2026-07-30)</small>
|
|
2
29
|
|
|
3
30
|
* fix(cli): update mcp sdk ([0640e11](https://github.com/NVIDIA/elements/commit/0640e11))
|
|
@@ -28,7 +28,7 @@ var b = class extends g {
|
|
|
28
28
|
static {
|
|
29
29
|
this.metadata = {
|
|
30
30
|
tag: "nve-accordion-header",
|
|
31
|
-
version: "2.
|
|
31
|
+
version: "2.3.0"
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
render() {
|
|
@@ -46,7 +46,7 @@ var x = class extends g {
|
|
|
46
46
|
static {
|
|
47
47
|
this.metadata = {
|
|
48
48
|
tag: "nve-accordion-content",
|
|
49
|
-
version: "2.
|
|
49
|
+
version: "2.3.0"
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
render() {
|
|
@@ -62,7 +62,7 @@ var x = class extends g {
|
|
|
62
62
|
static {
|
|
63
63
|
this.metadata = {
|
|
64
64
|
tag: "nve-accordion",
|
|
65
|
-
version: "2.
|
|
65
|
+
version: "2.3.0",
|
|
66
66
|
children: [
|
|
67
67
|
b.metadata.tag,
|
|
68
68
|
x.metadata.tag,
|
|
@@ -120,7 +120,7 @@ var C = class extends g {
|
|
|
120
120
|
static {
|
|
121
121
|
this.metadata = {
|
|
122
122
|
tag: "nve-accordion-group",
|
|
123
|
-
version: "2.
|
|
123
|
+
version: "2.3.0",
|
|
124
124
|
children: [S.metadata.tag]
|
|
125
125
|
};
|
|
126
126
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.examples.js","names":[],"sources":["../../src/alert/alert.examples.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html } from 'lit';\nimport '@nvidia-elements/core/alert/define.js';\nimport '@nvidia-elements/core/button/define.js';\nimport '@nvidia-elements/core/divider/define.js';\n\nexport default {\n title: 'Elements/Alert',\n component: 'nve-alert'\n};\n\n/**\n * @summary Basic alert for inline informational messages. Use alerts for persistent feedback that doesn't auto-dismiss, ideal for system status updates, or contextual information that users may need to reference while completing tasks.\n */\nexport const Default = {\n render: () => html`<nve-alert>alert message</nve-alert>`\n};\n\n/**\n * @summary Alert status variants for semantic messaging. Use accent for informational updates, warning for cautionary messages requiring attention, success for confirmations, and danger for errors or critical issues that may block user progress.\n */\nexport const SupportStatus = {\n render: () => html`\n<div nve-layout=\"column gap:md\">\n <nve-alert>Standard</nve-alert>\n <nve-alert status=\"accent\">Accent</nve-alert>\n <nve-alert status=\"warning\">Warning</nve-alert>\n <nve-alert status=\"success\">Success</nve-alert>\n <nve-alert status=\"danger\">Danger</nve-alert>\n</div>\n `\n}\n\n/**\n * @summary Extended status variants for workflow and process state communication. Use these specialized states (scheduled, queued, running, failed, etc.) in dashboards, build pipelines, or task management interfaces where users need detailed visibility into process lifecycle stages.\n */\nexport const Status = {\n render: () => html`\n<div nve-layout=\"column gap:md\">\n <nve-alert>Standard</nve-alert>\n <nve-alert status=\"accent\">Accent</nve-alert>\n <nve-alert status=\"warning\">Warning</nve-alert>\n <nve-alert status=\"success\">Success</nve-alert>\n <nve-alert status=\"danger\">Danger</nve-alert>\n\n <nve-alert status=\"scheduled\">Scheduled</nve-alert>\n <nve-alert status=\"queued\">Queued</nve-alert>\n <nve-alert status=\"finished\">Finished</nve-alert>\n <nve-alert status=\"failed\">Failed</nve-alert>\n <nve-alert status=\"unknown\">Unknown</nve-alert>\n <nve-alert status=\"pending\">Pending</nve-alert>\n <nve-alert status=\"starting\">Starting</nve-alert>\n <nve-alert status=\"running\">Running</nve-alert>\n <nve-alert status=\"restarting\">Restarting</nve-alert>\n <nve-alert status=\"stopping\">Stopping</nve-alert>\n <nve-alert status=\"ignored\">Ignored</nve-alert>\n</div>\n `\n}\n\n/**\n * @summary Alert group for visually organizing related messages with shared styling. Use alert groups to present many related messages as a cohesive unit, improving scannability and visual hierarchy.\n */\nexport const GroupDefault = {\n render: () => html`\n <nve-alert-group>\n <nve-alert>alert message</nve-alert>\n </nve-alert-group>\n `\n};\n\n/**\n * @summary Alert groups with inherited status styling for all children. Applying status at the group level ensures visual consistency across related messages, perfect for form validation where many fields share the same error context.\n */\nexport const GroupStatus = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group>\n <nve-alert>Standard</nve-alert>\n <nve-alert>Standard</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"accent\">\n <nve-alert>Accent</nve-alert>\n <nve-alert>Accent</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"warning\">\n <nve-alert>Warning</nve-alert>\n <nve-alert>Warning</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"success\">\n <nve-alert>Success</nve-alert>\n <nve-alert>Success</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"danger\">\n <nve-alert>Danger</nve-alert>\n <nve-alert>Danger</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary Dismissible alerts using the Invoker Command API for declarative close behavior. Use `commandfor` and `command=\"--close\"` on action buttons to dismiss individual alerts without custom JavaScript event handling.\n */\nexport const InvokerCommand = {\n render: () => html`\n<nve-alert-group>\n <nve-alert id=\"alert-1\">\n Alert Notification Message 1\n <nve-icon-button commandfor=\"alert-1\" command=\"--close\" slot=\"actions\" container=\"flat\" icon-name=\"cancel\" size=\"sm\" aria-label=\"close\"></nve-icon-button>\n </nve-alert>\n <nve-alert id=\"alert-2\">\n Alert Notification Message 2\n <nve-icon-button commandfor=\"alert-2\" command=\"--close\" slot=\"actions\" container=\"flat\" icon-name=\"cancel\" size=\"sm\" aria-label=\"close\"></nve-icon-button>\n </nve-alert>\n</nve-alert-group>`\n};\n\n/**\n * @summary Closable alerts that users can dismiss. Use closable alerts for messages that become irrelevant after reading (like onboarding tips, one-time announcements, or acknowledged warnings), but avoid for critical errors that need to remain visible until resolved.\n */\nexport const Closable = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group>\n <nve-alert closable>Standard</nve-alert>\n <nve-alert closable>Standard</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"accent\">\n <nve-alert closable>Accent</nve-alert>\n <nve-alert closable>Accent</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"warning\">\n <nve-alert closable>Warning</nve-alert>\n <nve-alert closable>Warning</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"success\">\n <nve-alert closable>Success</nve-alert>\n <nve-alert closable>Success</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"danger\">\n <nve-alert closable>Danger</nve-alert>\n <nve-alert closable>Danger</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary Alerts with action buttons for immediate user response. Include actions when the alert requires user decision-making (like \"Retry\", \"View Details\", or \"Undo\"), making the next step clear and reducing friction in error recovery or task completion flows.\n */\nexport const Actions = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group>\n <nve-alert>\n Standard <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"accent\">\n <nve-alert>\n Standard <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"warning\">\n <nve-alert>\n Warning <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"success\">\n <nve-alert>\n Success <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"danger\">\n <nve-alert>\n Danger <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary High-prominence alerts with emphasis styling for full-width banners. Use prominence=\"emphasis\" for system-wide announcements like maintenance windows, feature launches, or critical security updates that need max visibility and impact across the entire interface.\n */\nexport const Prominence = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Standard</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"accent\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Accent</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"warning\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Warning</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"success\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Success</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"danger\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Danger</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary Alert with complex structured content including expandable details. Use the content slot for rich information like stack traces, validation summaries, or detailed error logs where users need both the high-level message and access to technical details for debugging or reporting.\n */\nexport const Content = {\n render: () => html`\n <nve-alert-group status=\"danger\">\n <nve-alert>\n Session Paused:\n <div slot=\"content\" nve-layout=\"column gap:sm align:stretch\">\n <p nve-text=\"body sm emphasis\">Failed to verify drives.</p>\n <pre nve-text=\"sm emphasis\">\n10:06:01 AM [verify] update /virtual:/verify/\n10:06:11 AM [build] update /virtual:/build/\n10:06:22 AM [error] update /virtual:/error/ - failed to connect to remote</pre>\n </div>\n <nve-button slot=\"actions\" container=\"flat\">Collapse Details</nve-button>\n </nve-alert>\n </nve-alert-group>\n `\n}\n\n/**\n * @summary Custom color variants for brand-specific styling or extra visual differentiation beyond standard status colors. Use custom colors when standard semantic colors don't match your use case, such as category labels, team assignments, or brand-specific messaging.\n * @tags test-case\n */\nexport const Color = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group color=\"red-cardinal\">\n <nve-alert>red-cardinal</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"gray-slate\">\n <nve-alert>gray-slate</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"gray-denim\">\n <nve-alert>gray-denim</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\">\n <nve-alert>blue-indigo</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-cobalt\">\n <nve-alert>blue-cobalt</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-sky\">\n <nve-alert>blue-sky</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"teal-cyan\">\n <nve-alert>teal-cyan</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"green-mint\">\n <nve-alert>green-mint</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"teal-seafoam\">\n <nve-alert>teal-seafoam</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"green-grass\">\n <nve-alert>green-grass</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"yellow-amber\">\n <nve-alert>yellow-amber</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"orange-pumpkin\">\n <nve-alert>orange-pumpkin</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"red-tomato\">\n <nve-alert>red-tomato</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-magenta\">\n <nve-alert>pink-magenta</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"purple-plum\">\n <nve-alert>purple-plum</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"purple-violet\">\n <nve-alert>purple-violet</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"purple-lavender\">\n <nve-alert>purple-lavender</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\">\n <nve-alert>pink-rose</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"green-jade\">\n <nve-alert>green-jade</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"lime-pear\">\n <nve-alert>lime-pear</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"yellow-nova\">\n <nve-alert>yellow-nova</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"brand-green\">\n <nve-alert>brand-green</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary Custom color combinations with status icons and prominence for advanced theming. Custom colors interact with status icons and emphasis styling, useful for maintaining brand consistency while preserving semantic meaning through status indicators.\n * @tags test-case\n */\nexport const CustomColorCombinations = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group color=\"blue-indigo\">\n <nve-alert closable>Custom <code nve-text=\"code\">color</code> will theme the <code nve-text=\"code\">closable</code> icon.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"teal-seafoam\">\n <nve-alert>\n Custom <code nve-text=\"code\">color</code> is compatible with <code nve-text=\"code\">actions</code> button.\n <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"accent\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"success\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"warning\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"danger\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"accent\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"success\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"warning\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"danger\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n"],"mappings":";AAGA,IAAA,IAAS"}
|
|
1
|
+
{"version":3,"file":"alert.examples.js","names":[],"sources":["../../src/alert/alert.examples.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html } from 'lit';\nimport '@nvidia-elements/core/alert/define.js';\nimport '@nvidia-elements/core/button/define.js';\nimport '@nvidia-elements/core/divider/define.js';\nimport '@nvidia-elements/core/page/define.js';\n\nexport default {\n title: 'Elements/Alert',\n component: 'nve-alert'\n};\n\n/**\n * @summary Basic alert for inline informational messages. Use alerts for persistent feedback that doesn't auto-dismiss, ideal for system status updates, or contextual information that users may need to reference while completing tasks.\n */\nexport const Default = {\n render: () => html`<nve-alert>alert message</nve-alert>`\n};\n\n/**\n * @summary Alert status variants for semantic messaging. Use accent for informational updates, warning for cautionary messages requiring attention, success for confirmations, and danger for errors or critical issues that may block user progress.\n * @tags test-case\n */\nexport const SupportStatus = {\n render: () => html`\n<div nve-layout=\"column gap:md\">\n <nve-alert>Standard</nve-alert>\n <nve-alert status=\"accent\">Accent</nve-alert>\n <nve-alert status=\"warning\">Warning</nve-alert>\n <nve-alert status=\"success\">Success</nve-alert>\n <nve-alert status=\"danger\">Danger</nve-alert>\n</div>\n `\n}\n\n/**\n * @summary Extended status variants for workflow and process state communication. Use these specialized states (scheduled, queued, running, failed, etc.) in dashboards, build pipelines, or task management interfaces where users need detailed visibility into process lifecycle stages.\n * @tags test-case\n */\nexport const Status = {\n render: () => html`\n<div nve-layout=\"column gap:md\">\n <nve-alert>Standard</nve-alert>\n <nve-alert status=\"accent\">Accent</nve-alert>\n <nve-alert status=\"warning\">Warning</nve-alert>\n <nve-alert status=\"success\">Success</nve-alert>\n <nve-alert status=\"danger\">Danger</nve-alert>\n\n <nve-alert status=\"scheduled\">Scheduled</nve-alert>\n <nve-alert status=\"queued\">Queued</nve-alert>\n <nve-alert status=\"finished\">Finished</nve-alert>\n <nve-alert status=\"failed\">Failed</nve-alert>\n <nve-alert status=\"unknown\">Unknown</nve-alert>\n <nve-alert status=\"pending\">Pending</nve-alert>\n <nve-alert status=\"starting\">Starting</nve-alert>\n <nve-alert status=\"running\">Running</nve-alert>\n <nve-alert status=\"restarting\">Restarting</nve-alert>\n <nve-alert status=\"stopping\">Stopping</nve-alert>\n <nve-alert status=\"ignored\">Ignored</nve-alert>\n</div>\n `\n}\n\n/**\n * @summary Alert group for visually organizing related messages with shared styling. Use alert groups to present many related messages as a cohesive unit, improving scannability and visual hierarchy.\n */\nexport const GroupDefault = {\n render: () => html`\n <nve-alert-group>\n <nve-alert>alert message</nve-alert>\n </nve-alert-group>\n `\n};\n\n/**\n * @summary Alert groups with inherited status styling for all children. Applying status at the group level ensures visual consistency across related messages, perfect for form validation where many fields share the same error context.\n */\nexport const GroupStatus = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group>\n <nve-alert>Standard</nve-alert>\n <nve-alert>Standard</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"accent\">\n <nve-alert>Accent</nve-alert>\n <nve-alert>Accent</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"warning\">\n <nve-alert>Warning</nve-alert>\n <nve-alert>Warning</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"success\">\n <nve-alert>Success</nve-alert>\n <nve-alert>Success</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"danger\">\n <nve-alert>Danger</nve-alert>\n <nve-alert>Danger</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary Dismissible alerts using the Invoker Command API for declarative close behavior. Use `commandfor` and `command=\"--close\"` on action buttons to dismiss individual alerts without custom JavaScript event handling.\n */\nexport const InvokerCommand = {\n render: () => html`\n<nve-alert-group>\n <nve-alert id=\"alert-1\">\n Alert Notification Message 1\n <nve-icon-button commandfor=\"alert-1\" command=\"--close\" slot=\"actions\" container=\"flat\" icon-name=\"cancel\" size=\"sm\" aria-label=\"close\"></nve-icon-button>\n </nve-alert>\n <nve-alert id=\"alert-2\">\n Alert Notification Message 2\n <nve-icon-button commandfor=\"alert-2\" command=\"--close\" slot=\"actions\" container=\"flat\" icon-name=\"cancel\" size=\"sm\" aria-label=\"close\"></nve-icon-button>\n </nve-alert>\n</nve-alert-group>`\n};\n\n/**\n * @summary Closable alerts that users can dismiss. Use closable alerts for messages that become irrelevant after reading (like onboarding tips, one-time announcements, or acknowledged warnings), but avoid for critical errors that need to remain visible until resolved.\n */\nexport const Closable = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group>\n <nve-alert closable>Standard</nve-alert>\n <nve-alert closable>Standard</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"accent\">\n <nve-alert closable>Accent</nve-alert>\n <nve-alert closable>Accent</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"warning\">\n <nve-alert closable>Warning</nve-alert>\n <nve-alert closable>Warning</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"success\">\n <nve-alert closable>Success</nve-alert>\n <nve-alert closable>Success</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group status=\"danger\">\n <nve-alert closable>Danger</nve-alert>\n <nve-alert closable>Danger</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary Alerts with action buttons for immediate user response. Include actions when the alert requires user decision-making (like \"Retry\", \"View Details\", or \"Undo\"), making the next step clear and reducing friction in error recovery or task completion flows.\n */\nexport const Actions = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group>\n <nve-alert>\n Standard <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"accent\">\n <nve-alert>\n Standard <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"warning\">\n <nve-alert>\n Warning <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"success\">\n <nve-alert>\n Success <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n <nve-alert-group status=\"danger\">\n <nve-alert>\n Danger <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary High-prominence alerts with emphasis styling for full-width banners. Use prominence=\"emphasis\" for system-wide announcements like maintenance windows, feature launches, or critical security updates that need max visibility and impact across the entire interface.\n */\nexport const Prominence = {\n render: () => html`\n <nve-page document-scroll>\n <nve-alert-group slot=\"header\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Standard</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group slot=\"header\" status=\"accent\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Accent</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group slot=\"header\" status=\"warning\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Warning</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group slot=\"header\" status=\"success\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Success</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n\n <nve-alert-group slot=\"header\" status=\"danger\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable><span slot=\"prefix\">Danger</span> banner message <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert>\n </nve-alert-group>\n </nve-page>\n `\n}\n\n/**\n * @summary Alert with complex structured content including expandable details. Use the content slot for rich information like stack traces, validation summaries, or detailed error logs where users need both the high-level message and access to technical details for debugging or reporting.\n */\nexport const Content = {\n render: () => html`\n <nve-alert-group status=\"danger\">\n <nve-alert>\n Session Paused:\n <div slot=\"content\" nve-layout=\"column gap:sm align:stretch\">\n <p nve-text=\"body sm emphasis\">Failed to verify drives.</p>\n <pre nve-text=\"sm emphasis\">\n10:06:01 AM [verify] update /virtual:/verify/\n10:06:11 AM [build] update /virtual:/build/\n10:06:22 AM [error] update /virtual:/error/ - failed to connect to remote</pre>\n </div>\n <nve-button slot=\"actions\" container=\"flat\">Collapse Details</nve-button>\n </nve-alert>\n </nve-alert-group>\n `\n}\n\n/**\n * @summary Custom color variants for brand-specific styling or extra visual differentiation beyond standard status colors. Use custom colors when standard semantic colors don't match your use case, such as category labels, team assignments, or brand-specific messaging.\n * @tags test-case\n */\nexport const Color = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group color=\"red-cardinal\">\n <nve-alert>red-cardinal</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"gray-slate\">\n <nve-alert>gray-slate</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"gray-denim\">\n <nve-alert>gray-denim</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\">\n <nve-alert>blue-indigo</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-cobalt\">\n <nve-alert>blue-cobalt</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-sky\">\n <nve-alert>blue-sky</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"teal-cyan\">\n <nve-alert>teal-cyan</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"green-mint\">\n <nve-alert>green-mint</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"teal-seafoam\">\n <nve-alert>teal-seafoam</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"green-grass\">\n <nve-alert>green-grass</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"yellow-amber\">\n <nve-alert>yellow-amber</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"orange-pumpkin\">\n <nve-alert>orange-pumpkin</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"red-tomato\">\n <nve-alert>red-tomato</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-magenta\">\n <nve-alert>pink-magenta</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"purple-plum\">\n <nve-alert>purple-plum</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"purple-violet\">\n <nve-alert>purple-violet</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"purple-lavender\">\n <nve-alert>purple-lavender</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\">\n <nve-alert>pink-rose</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"green-jade\">\n <nve-alert>green-jade</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"lime-pear\">\n <nve-alert>lime-pear</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"yellow-nova\">\n <nve-alert>yellow-nova</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"brand-green\">\n <nve-alert>brand-green</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n\n/**\n * @summary Custom color combinations with status icons and prominence for advanced theming. Custom colors interact with status icons and emphasis styling, useful for maintaining brand consistency while preserving semantic meaning through status indicators.\n * @tags test-case\n */\nexport const CustomColorCombinations = {\n render: () => html`\n <div nve-layout=\"column gap:md\">\n <nve-alert-group color=\"blue-indigo\">\n <nve-alert closable>Custom <code nve-text=\"code\">color</code> will theme the <code nve-text=\"code\">closable</code> icon.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"teal-seafoam\">\n <nve-alert>\n Custom <code nve-text=\"code\">color</code> is compatible with <code nve-text=\"code\">actions</code> button.\n <nve-button slot=\"actions\" container=\"flat\">action</nve-button>\n </nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"accent\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"success\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"warning\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"pink-rose\" status=\"danger\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"pink-rose\"</code> with <code nve-text=\"code\">status</code> yields the status icon with custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"accent\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"success\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"warning\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n\n <nve-alert-group color=\"blue-indigo\" status=\"danger\" prominence=\"emphasis\">\n <nve-alert>Combining custom <code nve-text=\"code\">color=\"blue-indigo\"</code> with <code nve-text=\"code\">status</code> and <code nve-text=\"code\">prominence</code> yields the status icon with an <em>emphasized</em> custom alert color.</nve-alert>\n </nve-alert-group>\n </div>\n `\n}\n"],"mappings":";AAGA,IAAA,IAAS"}
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
"summary": "Alert status variants for semantic messaging. Use accent for informational updates, warning for cautionary messages requiring attention, success for confirmations, and danger for errors or critical issues that may block user progress.",
|
|
19
19
|
"description": "",
|
|
20
20
|
"composition": false,
|
|
21
|
-
"tags": [
|
|
21
|
+
"tags": [
|
|
22
|
+
"test-case"
|
|
23
|
+
]
|
|
22
24
|
},
|
|
23
25
|
{
|
|
24
26
|
"id": "alert-status",
|
|
@@ -27,7 +29,9 @@
|
|
|
27
29
|
"summary": "Extended status variants for workflow and process state communication. Use these specialized states (scheduled, queued, running, failed, etc.) in dashboards, build pipelines, or task management interfaces where users need detailed visibility into process lifecycle stages.",
|
|
28
30
|
"description": "",
|
|
29
31
|
"composition": false,
|
|
30
|
-
"tags": [
|
|
32
|
+
"tags": [
|
|
33
|
+
"test-case"
|
|
34
|
+
]
|
|
31
35
|
},
|
|
32
36
|
{
|
|
33
37
|
"id": "alert-group",
|
|
@@ -77,7 +81,7 @@
|
|
|
77
81
|
{
|
|
78
82
|
"id": "alert-prominence",
|
|
79
83
|
"name": "Prominence",
|
|
80
|
-
"template": "<
|
|
84
|
+
"template": "<nve-page document-scroll>\n <nve-alert-group slot=\"header\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable\n ><span slot=\"prefix\">Standard</span> banner message\n <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n >\n </nve-alert-group>\n <nve-alert-group slot=\"header\" status=\"accent\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable\n ><span slot=\"prefix\">Accent</span> banner message\n <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n >\n </nve-alert-group>\n <nve-alert-group slot=\"header\" status=\"warning\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable\n ><span slot=\"prefix\">Warning</span> banner message\n <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n >\n </nve-alert-group>\n <nve-alert-group slot=\"header\" status=\"success\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable\n ><span slot=\"prefix\">Success</span> banner message\n <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n >\n </nve-alert-group>\n <nve-alert-group slot=\"header\" status=\"danger\" prominence=\"emphasis\" container=\"full\">\n <nve-alert closable\n ><span slot=\"prefix\">Danger</span> banner message\n <a href=\"#\" nve-text=\"link\" slot=\"actions\">view details</a></nve-alert\n >\n </nve-alert-group>\n</nve-page>\n",
|
|
81
85
|
"summary": "High-prominence alerts with emphasis styling for full-width banners. Use prominence=\"emphasis\" for system-wide announcements like maintenance windows, feature launches, or critical security updates that need max visibility and impact across the entire interface.",
|
|
82
86
|
"description": "",
|
|
83
87
|
"composition": false,
|
package/dist/alert/alert2.js
CHANGED
package/dist/avatar/avatar2.js
CHANGED
package/dist/badge/badge2.js
CHANGED
package/dist/bundle.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import '@nvidia-elements/core/dropdown/define.js';
|
|
|
21
21
|
import '@nvidia-elements/core/dropdown-group/define.js';
|
|
22
22
|
import '@nvidia-elements/core/dropzone/define.js';
|
|
23
23
|
import '@nvidia-elements/core/file/define.js';
|
|
24
|
+
import '@nvidia-elements/core/format-bytes/define.js';
|
|
24
25
|
import '@nvidia-elements/core/format-datetime/define.js';
|
|
25
26
|
import '@nvidia-elements/core/format-number/define.js';
|
|
26
27
|
import '@nvidia-elements/core/format-relative-time/define.js';
|
|
@@ -89,6 +90,7 @@ export * from '@nvidia-elements/core/dropdown';
|
|
|
89
90
|
export * from '@nvidia-elements/core/dropdown-group';
|
|
90
91
|
export * from '@nvidia-elements/core/dropzone';
|
|
91
92
|
export * from '@nvidia-elements/core/file';
|
|
93
|
+
export * from '@nvidia-elements/core/format-bytes';
|
|
92
94
|
export * from '@nvidia-elements/core/format-datetime';
|
|
93
95
|
export * from '@nvidia-elements/core/format-number';
|
|
94
96
|
export * from '@nvidia-elements/core/format-relative-time';
|
package/dist/bundles/index.d.ts
CHANGED
|
@@ -1898,12 +1898,12 @@ export declare class MenuItem extends MenuItem_base {
|
|
|
1898
1898
|
}
|
|
1899
1899
|
/**
|
|
1900
1900
|
* @element nve-dropdown
|
|
1901
|
-
* @description Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls.
|
|
1901
|
+
* @description Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls.
|
|
1902
1902
|
* @documentation https://nvidia.github.io/elements/docs/elements/dropdown/
|
|
1903
1903
|
* @since 0.6.0
|
|
1904
1904
|
* @entrypoint \@nvidia-elements/core/dropdown
|
|
1905
|
-
* @event beforetoggle - Dispatched on a popover just before showing or hiding.
|
|
1906
|
-
* @event toggle - Dispatched on a popover element just after showing or hiding.
|
|
1905
|
+
* @event beforetoggle - Dispatched on a popover just before showing or hiding.
|
|
1906
|
+
* @event toggle - Dispatched on a popover element just after showing or hiding.
|
|
1907
1907
|
* @event open - Dispatched when the dropdown opens.
|
|
1908
1908
|
* @event close - Dispatched when the dropdown closes.
|
|
1909
1909
|
* @slot - default slot for dropdown content
|
|
@@ -2142,7 +2142,7 @@ export declare class Combobox extends Control implements ContainerElement {
|
|
|
2142
2142
|
}
|
|
2143
2143
|
/**
|
|
2144
2144
|
* @element nve-toast
|
|
2145
|
-
* @description A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them.
|
|
2145
|
+
* @description A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them.
|
|
2146
2146
|
* @documentation https://nvidia.github.io/elements/docs/elements/toast/
|
|
2147
2147
|
* @since 0.6.0
|
|
2148
2148
|
* @entrypoint \@nvidia-elements/core/toast
|
|
@@ -2234,7 +2234,7 @@ export declare class Toast extends LitElement {
|
|
|
2234
2234
|
}
|
|
2235
2235
|
/**
|
|
2236
2236
|
* @element nve-tooltip
|
|
2237
|
-
* @description A contextual popup that displays a plaintext description.
|
|
2237
|
+
* @description A contextual popup that displays a plaintext description. Trigger tooltips by hovering, focusing, or tapping an element and cannot have interactive elements within them.
|
|
2238
2238
|
* @documentation https://nvidia.github.io/elements/docs/elements/tooltip/
|
|
2239
2239
|
* @since 0.6.0
|
|
2240
2240
|
* @entrypoint \@nvidia-elements/core/tooltip
|
|
@@ -2439,7 +2439,7 @@ export declare class Datetime extends Control implements ContainerElement {
|
|
|
2439
2439
|
}
|
|
2440
2440
|
/**
|
|
2441
2441
|
* @element nve-dialog
|
|
2442
|
-
* @description Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow.
|
|
2442
|
+
* @description Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow.
|
|
2443
2443
|
* @documentation https://nvidia.github.io/elements/docs/elements/dialog/
|
|
2444
2444
|
* @since 0.6.0
|
|
2445
2445
|
* @entrypoint \@nvidia-elements/core/dialog
|
|
@@ -2635,7 +2635,7 @@ export declare class Dot extends LitElement {
|
|
|
2635
2635
|
}
|
|
2636
2636
|
/**
|
|
2637
2637
|
* @element nve-drawer
|
|
2638
|
-
* @description
|
|
2638
|
+
* @description A drawer displays content separate from the rest of the page, such as notifications, navigation, and settings.
|
|
2639
2639
|
* @documentation https://nvidia.github.io/elements/docs/elements/drawer/
|
|
2640
2640
|
* @since 0.16.0
|
|
2641
2641
|
* @entrypoint \@nvidia-elements/core/drawer
|
|
@@ -2906,6 +2906,58 @@ declare class File$1 extends Control {
|
|
|
2906
2906
|
};
|
|
2907
2907
|
connectedCallback(): void;
|
|
2908
2908
|
}
|
|
2909
|
+
export type FormatBytesDisplay = "decimal" | "binary";
|
|
2910
|
+
export type FormatBytesUnit = "b" | "kb" | "mb" | "gb" | "tb" | "pb";
|
|
2911
|
+
export type FormatBytesUnitDisplay = "short" | "long";
|
|
2912
|
+
/**
|
|
2913
|
+
* @element nve-format-bytes
|
|
2914
|
+
* @description Formats a byte count as localized, human-readable decimal or binary units.
|
|
2915
|
+
* @documentation https://nvidia.github.io/elements/docs/elements/format-bytes/
|
|
2916
|
+
* @since 0.0.0
|
|
2917
|
+
* @entrypoint \@nvidia-elements/core/format-bytes
|
|
2918
|
+
* @slot - Numeric byte count to format (such as 1048576). Serves as fallback before hydration.
|
|
2919
|
+
* @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data
|
|
2920
|
+
*/
|
|
2921
|
+
export declare class FormatBytes extends LitElement {
|
|
2922
|
+
#private;
|
|
2923
|
+
static styles: CSSResult[];
|
|
2924
|
+
static readonly metadata: {
|
|
2925
|
+
tag: string;
|
|
2926
|
+
version: string;
|
|
2927
|
+
};
|
|
2928
|
+
/**
|
|
2929
|
+
* Optional byte count for values supplied by JavaScript or bound data.
|
|
2930
|
+
* By default, the component formats the element's text content, which also serves as the SSR fallback.
|
|
2931
|
+
* When both are present, this property takes precedence.
|
|
2932
|
+
*/
|
|
2933
|
+
value?: number;
|
|
2934
|
+
/**
|
|
2935
|
+
* Unit system: 'decimal' uses powers of 1000 and 'binary' uses powers of 1024.
|
|
2936
|
+
*/
|
|
2937
|
+
display: FormatBytesDisplay;
|
|
2938
|
+
/**
|
|
2939
|
+
* Optional unit magnitude. When omitted, the component selects a unit from the byte count.
|
|
2940
|
+
*/
|
|
2941
|
+
unit?: FormatBytesUnit;
|
|
2942
|
+
/**
|
|
2943
|
+
* Unit label length: 'short' renders labels such as 'mb'; 'long' renders labels such as 'megabytes'.
|
|
2944
|
+
*/
|
|
2945
|
+
unitDisplay: FormatBytesUnitDisplay;
|
|
2946
|
+
/**
|
|
2947
|
+
* Language tag (such as en-US or de-DE) used to format the number.
|
|
2948
|
+
* Defaults to document.documentElement.lang or the runtime default.
|
|
2949
|
+
*/
|
|
2950
|
+
locale?: string;
|
|
2951
|
+
/**
|
|
2952
|
+
* Pad fraction output to at least this many digits.
|
|
2953
|
+
*/
|
|
2954
|
+
minimumFractionDigits?: number;
|
|
2955
|
+
/**
|
|
2956
|
+
* Round fraction output to at most this many digits. Defaults to two effective digits after the decimal point.
|
|
2957
|
+
*/
|
|
2958
|
+
maximumFractionDigits?: number;
|
|
2959
|
+
render(): TemplateResult<1>;
|
|
2960
|
+
}
|
|
2909
2961
|
/**
|
|
2910
2962
|
* @element nve-format-datetime
|
|
2911
2963
|
* @description Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element.
|
|
@@ -3536,7 +3588,7 @@ export declare class Month extends Control implements ContainerElement {
|
|
|
3536
3588
|
}
|
|
3537
3589
|
/**
|
|
3538
3590
|
* @element nve-notification
|
|
3539
|
-
* @description Displays real time updates without interrupting the user's workflow to communicate an important message or status.
|
|
3591
|
+
* @description Displays real time updates without interrupting the user's workflow to communicate an important message or status.
|
|
3540
3592
|
* @documentation https://nvidia.github.io/elements/docs/elements/notification/
|
|
3541
3593
|
* @since 0.6.0
|
|
3542
3594
|
* @entrypoint \@nvidia-elements/core/notification
|
|
@@ -3697,6 +3749,7 @@ export declare class NotificationGroup extends LitElement {
|
|
|
3697
3749
|
* @cssprop --border-radius
|
|
3698
3750
|
* @cssprop --box-shadow
|
|
3699
3751
|
* @cssprop --min-height
|
|
3752
|
+
* @cssprop --gap - Vertical gap spacing between main content items
|
|
3700
3753
|
* @aria https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/
|
|
3701
3754
|
* @responsive false
|
|
3702
3755
|
*
|