@nvidia-elements/core 2.2.1 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -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/bundles/index.d.ts +1 -0
- package/dist/bundles/index.js +2 -2
- 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 +1 -0
- package/dist/custom-elements-vue.d.ts +1 -0
- package/dist/custom-elements.json +5 -1
- package/dist/data.html.json +1 -1
- 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/dialog2.js +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.js +1 -1
- package/dist/drawer/drawer.js.map +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown2.js +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-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/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/notification2.js +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 +2 -2
- package/dist/select/select2.js.map +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/toast2.js +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/tooltip2.js +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 +13 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,29 @@
|
|
|
1
|
+
## <small>2.2.3 (2026-08-05)</small>
|
|
2
|
+
|
|
3
|
+
* fix(cli): workspace dependency ([5ecbd96](https://github.com/NVIDIA/elements/commit/5ecbd96))
|
|
4
|
+
* fix(core): size height calculation ([204aa52](https://github.com/NVIDIA/elements/commit/204aa52))
|
|
5
|
+
* fix(core): update fit-text input to native field sizing ([cadc33c](https://github.com/NVIDIA/elements/commit/cadc33c))
|
|
6
|
+
* fix(styles): add width rule for row layout with space-between alignment ([61113ad](https://github.com/NVIDIA/elements/commit/61113ad))
|
|
7
|
+
* chore(ci): add github dependabot skill ([4cb37a7](https://github.com/NVIDIA/elements/commit/4cb37a7))
|
|
8
|
+
* chore(ci): enhance ci performance profiling and add new scripts ([ef0a912](https://github.com/NVIDIA/elements/commit/ef0a912))
|
|
9
|
+
* chore(ci): update dependencies ([4601239](https://github.com/NVIDIA/elements/commit/4601239))
|
|
10
|
+
* chore(ci): update metadata and test coverage report ([216a7a9](https://github.com/NVIDIA/elements/commit/216a7a9))
|
|
11
|
+
* chore(docs): july update ([59d3f83](https://github.com/NVIDIA/elements/commit/59d3f83))
|
|
12
|
+
* chore(release): @nvidia-elements/cli-v2.1.9 [skip ci] ([651abf3](https://github.com/NVIDIA/elements/commit/651abf3))
|
|
13
|
+
* chore(release): @nvidia-elements/lint-v2.3.0 [skip ci] ([35bb729](https://github.com/NVIDIA/elements/commit/35bb729))
|
|
14
|
+
* chore(release): @nvidia-elements/styles-v2.1.2 [skip ci] ([71fab6c](https://github.com/NVIDIA/elements/commit/71fab6c))
|
|
15
|
+
* feat(lint): add rule to restrict container="full" usage ([a634e39](https://github.com/NVIDIA/elements/commit/a634e39))
|
|
16
|
+
|
|
17
|
+
## <small>2.2.2 (2026-07-30)</small>
|
|
18
|
+
|
|
19
|
+
* fix(cli): update mcp sdk ([0640e11](https://github.com/NVIDIA/elements/commit/0640e11))
|
|
20
|
+
* fix(core): drawer positioning ([f66cab0](https://github.com/NVIDIA/elements/commit/f66cab0))
|
|
21
|
+
* fix(core): update select size handling and improve layout ([6af535d](https://github.com/NVIDIA/elements/commit/6af535d))
|
|
22
|
+
* chore(docs): add design md file ([5c63566](https://github.com/NVIDIA/elements/commit/5c63566))
|
|
23
|
+
* chore(docs): fix sitemap ([7c9f059](https://github.com/NVIDIA/elements/commit/7c9f059))
|
|
24
|
+
* chore(release): @nvidia-elements/cli-v2.1.7 [skip ci] ([3fcca0d](https://github.com/NVIDIA/elements/commit/3fcca0d))
|
|
25
|
+
* chore(release): @nvidia-elements/cli-v2.1.8 [skip ci] ([1521595](https://github.com/NVIDIA/elements/commit/1521595))
|
|
26
|
+
|
|
1
27
|
## <small>2.2.1 (2026-07-28)</small>
|
|
2
28
|
|
|
3
29
|
* fix(cli): update mcp deps ([a7d5f7c](https://github.com/NVIDIA/elements/commit/a7d5f7c))
|
|
@@ -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.2.
|
|
31
|
+
version: "2.2.3"
|
|
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.2.
|
|
49
|
+
version: "2.2.3"
|
|
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.2.
|
|
65
|
+
version: "2.2.3",
|
|
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.2.
|
|
123
|
+
version: "2.2.3",
|
|
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/bundles/index.d.ts
CHANGED
|
@@ -3697,6 +3697,7 @@ export declare class NotificationGroup extends LitElement {
|
|
|
3697
3697
|
* @cssprop --border-radius
|
|
3698
3698
|
* @cssprop --box-shadow
|
|
3699
3699
|
* @cssprop --min-height
|
|
3700
|
+
* @cssprop --gap - Vertical gap spacing between main content items
|
|
3700
3701
|
* @aria https://www.w3.org/WAI/ARIA/apg/patterns/landmarks/
|
|
3701
3702
|
* @responsive false
|
|
3702
3703
|
*
|