@nvidia-elements/core 0.0.3 → 0.0.4
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 +20 -17
- package/NOTICE.md +119 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-banner2.js +1 -1
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert.examples.js.map +1 -1
- package/dist/alert/alert.examples.json +1 -1
- 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 +176 -1
- package/dist/bundles/index.js +3 -3
- package/dist/button/button.examples.js.map +1 -1
- package/dist/button/button.examples.json +3 -3
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- 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/combobox.d.ts +4 -0
- package/dist/combobox/combobox.examples.js.map +1 -1
- package/dist/combobox/combobox.examples.json +12 -1
- package/dist/combobox/combobox.js +1 -1
- package/dist/combobox/combobox.js.map +1 -1
- package/dist/combobox/combobox2.js +90 -62
- package/dist/combobox/combobox2.js.map +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +117 -2
- package/dist/custom-elements-vue.d.ts +117 -2
- package/dist/custom-elements.json +1543 -51
- package/dist/data.html.json +202 -6
- package/dist/data.snippets.json +9 -0
- 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/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/dropzone.examples.js.map +1 -1
- package/dist/dropzone/dropzone.examples.json +3 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-datetime/define.d.ts +6 -0
- package/dist/format-datetime/define.js +7 -0
- package/dist/format-datetime/define.js.map +1 -0
- package/dist/format-datetime/format-datetime.d.ts +74 -0
- package/dist/format-datetime/format-datetime.examples.js +6 -0
- package/dist/format-datetime/format-datetime.examples.js.map +1 -0
- package/dist/format-datetime/format-datetime.examples.json +87 -0
- package/dist/format-datetime/format-datetime.js +6 -0
- package/dist/format-datetime/format-datetime.js.map +1 -0
- package/dist/format-datetime/format-datetime2.js +77 -0
- package/dist/format-datetime/format-datetime2.js.map +1 -0
- package/dist/format-datetime/index.d.ts +1 -0
- package/dist/format-datetime/index.js +2 -0
- package/dist/format-relative-time/define.d.ts +6 -0
- package/dist/format-relative-time/define.js +7 -0
- package/dist/format-relative-time/define.js.map +1 -0
- package/dist/format-relative-time/format-relative-time.d.ts +47 -0
- package/dist/format-relative-time/format-relative-time.examples.js +6 -0
- package/dist/format-relative-time/format-relative-time.examples.js.map +1 -0
- package/dist/format-relative-time/format-relative-time.examples.json +69 -0
- package/dist/format-relative-time/format-relative-time.js +6 -0
- package/dist/format-relative-time/format-relative-time.js.map +1 -0
- package/dist/format-relative-time/format-relative-time2.js +118 -0
- package/dist/format-relative-time/format-relative-time2.js.map +1 -0
- package/dist/format-relative-time/index.d.ts +1 -0
- package/dist/format-relative-time/index.js +2 -0
- package/dist/forms/control/control2.js +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/forms/forms.examples.js.map +1 -1
- package/dist/forms/forms.examples.json +4 -2
- 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 +1 -1
- 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/input2.js +1 -1
- package/dist/internal/index.js +40 -40
- package/dist/internal/services/global.service.js +1 -1
- package/dist/internal/services/i18n.service.d.ts +1 -0
- package/dist/internal/services/i18n.service.js +2 -1
- package/dist/internal/services/i18n.service.js.map +1 -1
- package/dist/internal/utils/dom.d.ts +8 -0
- package/dist/internal/utils/dom.js +7 -1
- package/dist/internal/utils/dom.js.map +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.examples.js.map +1 -1
- package/dist/page/page.examples.json +0 -11
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header.examples.js.map +1 -1
- package/dist/page-header/page-header.examples.json +2 -2
- 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-handle.examples.js.map +1 -1
- package/dist/resize-handle/resize-handle.examples.json +3 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton.examples.js.map +1 -1
- package/dist/skeleton/skeleton.examples.json +3 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline.examples.js.map +1 -1
- package/dist/sparkline/sparkline.examples.json +3 -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/define.d.ts +2 -1
- package/dist/tabs/define.js +2 -1
- package/dist/tabs/define.js.map +1 -1
- package/dist/tabs/index.d.ts +1 -0
- package/dist/tabs/index.js +2 -1
- package/dist/tabs/tabs-group.d.ts +51 -0
- package/dist/tabs/tabs-group.js +6 -0
- package/dist/tabs/tabs-group.js.map +1 -0
- package/dist/tabs/tabs-group2.js +144 -0
- package/dist/tabs/tabs-group2.js.map +1 -0
- package/dist/tabs/tabs.examples.js.map +1 -1
- package/dist/tabs/tabs.examples.json +38 -2
- 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/toggletip2.js +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node.d.ts +1 -1
- package/dist/tree/tree-node.js +1 -1
- package/dist/tree/tree-node.js.map +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree-node2.js.map +1 -1
- package/dist/tree/tree.examples.js.map +1 -1
- package/dist/tree/tree.examples.json +1 -10
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +43 -15
package/CHANGELOG.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
## <small>0.0.
|
|
1
|
+
## <small>0.0.4 (2026-04-16)</small>
|
|
2
2
|
|
|
3
|
-
* chore(ci): add
|
|
4
|
-
* chore(ci):
|
|
5
|
-
* chore(
|
|
6
|
-
* chore(release): @nvidia-elements/
|
|
7
|
-
* chore(release): @nvidia-elements/
|
|
8
|
-
*
|
|
9
|
-
* fix(
|
|
10
|
-
* fix(
|
|
11
|
-
* fix(
|
|
12
|
-
* fix(
|
|
13
|
-
* fix(
|
|
14
|
-
* fix(
|
|
15
|
-
* fix(
|
|
16
|
-
* fix(
|
|
17
|
-
* fix(
|
|
18
|
-
|
|
3
|
+
* chore(ci): add spdx license headers ([d5583b0](https://github.com/NVIDIA/elements/commit/d5583b0))
|
|
4
|
+
* chore(ci): regenerate lockfile after migration ([2502e6f](https://github.com/NVIDIA/elements/commit/2502e6f))
|
|
5
|
+
* chore(release): @nvidia-elements/forms-v0.0.4 [skip ci] ([3a60045](https://github.com/NVIDIA/elements/commit/3a60045))
|
|
6
|
+
* chore(release): @nvidia-elements/styles-v0.0.4 [skip ci] ([7df6a83](https://github.com/NVIDIA/elements/commit/7df6a83))
|
|
7
|
+
* chore(release): @nvidia-elements/themes-v0.0.5 [skip ci] ([11f7e1e](https://github.com/NVIDIA/elements/commit/11f7e1e))
|
|
8
|
+
* fix(cli): reset versions ([8a81268](https://github.com/NVIDIA/elements/commit/8a81268))
|
|
9
|
+
* fix(code): reset versions ([1c08cc7](https://github.com/NVIDIA/elements/commit/1c08cc7))
|
|
10
|
+
* fix(core): reset versions ([553ae54](https://github.com/NVIDIA/elements/commit/553ae54))
|
|
11
|
+
* fix(create): reset versions ([a69d52b](https://github.com/NVIDIA/elements/commit/a69d52b))
|
|
12
|
+
* fix(forms): reset versions ([c17d18f](https://github.com/NVIDIA/elements/commit/c17d18f))
|
|
13
|
+
* fix(lint): reset versions ([d9e5ee5](https://github.com/NVIDIA/elements/commit/d9e5ee5))
|
|
14
|
+
* fix(markdown): reset versions ([ccabfbd](https://github.com/NVIDIA/elements/commit/ccabfbd))
|
|
15
|
+
* fix(monaco): reset versions ([5abcaf1](https://github.com/NVIDIA/elements/commit/5abcaf1))
|
|
16
|
+
* fix(styles): reset versions ([eb768c0](https://github.com/NVIDIA/elements/commit/eb768c0))
|
|
17
|
+
* fix(themes): reset versions ([71d28f6](https://github.com/NVIDIA/elements/commit/71d28f6))
|
|
18
|
+
|
|
19
|
+
## 0.0.0
|
|
20
|
+
|
|
21
|
+
Initial release.
|
package/NOTICE.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
NOTICE
|
|
2
|
+
|
|
3
|
+
Elements - NVIDIA Elements Design System
|
|
4
|
+
Copyright 2024-2026 NVIDIA Corporation
|
|
5
|
+
|
|
6
|
+
This project includes the following bundled third-party software:
|
|
7
|
+
|
|
8
|
+
- lit v3.3.2 [BSD-3-Clause]
|
|
9
|
+
Copyright: Google LLC
|
|
10
|
+
|
|
11
|
+
- lit-html v3.3.2 [BSD-3-Clause]
|
|
12
|
+
Copyright: Google LLC
|
|
13
|
+
|
|
14
|
+
This product includes SVG icons derived from the following third-party icon libraries:
|
|
15
|
+
|
|
16
|
+
- Fluent UI System Icons [MIT] (https://github.com/microsoft/fluentui-system-icons)
|
|
17
|
+
Copyright: Microsoft Corporation
|
|
18
|
+
|
|
19
|
+
- Heroicons [MIT] (https://github.com/tailwindlabs/heroicons)
|
|
20
|
+
Copyright: Tailwind Labs, Inc.
|
|
21
|
+
|
|
22
|
+
- Lucide [ISC] (https://github.com/lucide-icons/lucide)
|
|
23
|
+
Copyright: Lucide Contributors
|
|
24
|
+
|
|
25
|
+
- Material Symbols [Apache-2.0] (https://github.com/google/material-design-icons)
|
|
26
|
+
Copyright: Google LLC
|
|
27
|
+
|
|
28
|
+
==============================================================================
|
|
29
|
+
Apache-2.0
|
|
30
|
+
==============================================================================
|
|
31
|
+
|
|
32
|
+
The following bundled components are provided under the Apache-2.0 license:
|
|
33
|
+
|
|
34
|
+
Material Symbols - Copyright Google LLC
|
|
35
|
+
|
|
36
|
+
See https://opensource.org/licenses/Apache-2.0 for the full license text.
|
|
37
|
+
|
|
38
|
+
==============================================================================
|
|
39
|
+
MIT
|
|
40
|
+
==============================================================================
|
|
41
|
+
|
|
42
|
+
The following bundled components are provided under the MIT license:
|
|
43
|
+
|
|
44
|
+
Fluent UI System Icons - Copyright Microsoft Corporation
|
|
45
|
+
Heroicons - Copyright Tailwind Labs, Inc.
|
|
46
|
+
|
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
48
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
49
|
+
in the Software without restriction, including without limitation the rights
|
|
50
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
51
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
52
|
+
furnished to do so, subject to the following conditions:
|
|
53
|
+
|
|
54
|
+
The above copyright notice and this permission notice shall be included in all
|
|
55
|
+
copies or substantial portions of the Software.
|
|
56
|
+
|
|
57
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
58
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
59
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
60
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
61
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
62
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
63
|
+
SOFTWARE.
|
|
64
|
+
|
|
65
|
+
==============================================================================
|
|
66
|
+
ISC
|
|
67
|
+
==============================================================================
|
|
68
|
+
|
|
69
|
+
The following bundled components are provided under the ISC license:
|
|
70
|
+
|
|
71
|
+
Lucide - Copyright Lucide Contributors
|
|
72
|
+
|
|
73
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
74
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
75
|
+
copyright notice and this permission notice appear in all copies.
|
|
76
|
+
|
|
77
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
78
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
79
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
80
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
81
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
82
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
83
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
84
|
+
|
|
85
|
+
==============================================================================
|
|
86
|
+
BSD-3-Clause
|
|
87
|
+
==============================================================================
|
|
88
|
+
|
|
89
|
+
The following bundled components are provided under the BSD-3-Clause license:
|
|
90
|
+
|
|
91
|
+
lit v3.3.2 - Copyright Google LLC
|
|
92
|
+
lit-html v3.3.2 - Copyright Google LLC
|
|
93
|
+
|
|
94
|
+
Redistribution and use in source and binary forms, with or without
|
|
95
|
+
modification, are permitted provided that the following conditions are met:
|
|
96
|
+
|
|
97
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
98
|
+
list of conditions and the following disclaimer.
|
|
99
|
+
|
|
100
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
101
|
+
this list of conditions and the following disclaimer in the documentation
|
|
102
|
+
and/or other materials provided with the distribution.
|
|
103
|
+
|
|
104
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
105
|
+
contributors may be used to endorse or promote products derived from
|
|
106
|
+
this software without specific prior written permission.
|
|
107
|
+
|
|
108
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
109
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
110
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
111
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
112
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
113
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
114
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
115
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
116
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
117
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
118
|
+
|
|
119
|
+
For license details, see: MIT: https://opensource.org/licenses/MIT, ISC: https://opensource.org/licenses/ISC, BSD-3-Clause: https://opensource.org/licenses/BSD-3-Clause, Apache-2.0: https://opensource.org/licenses/Apache-2.0
|
|
@@ -28,7 +28,7 @@ var b = class extends g {
|
|
|
28
28
|
static {
|
|
29
29
|
this.metadata = {
|
|
30
30
|
tag: "nve-accordion-header",
|
|
31
|
-
version: "0.0.
|
|
31
|
+
version: "0.0.4"
|
|
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: "0.0.
|
|
49
|
+
version: "0.0.4"
|
|
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: "0.0.
|
|
65
|
+
version: "0.0.4",
|
|
66
66
|
children: [
|
|
67
67
|
b.metadata.tag,
|
|
68
68
|
x.metadata.tag,
|
|
@@ -121,7 +121,7 @@ var C = class extends g {
|
|
|
121
121
|
static {
|
|
122
122
|
this.metadata = {
|
|
123
123
|
tag: "nve-accordion-group",
|
|
124
|
-
version: "0.0.
|
|
124
|
+
version: "0.0.4",
|
|
125
125
|
children: [S.metadata.tag]
|
|
126
126
|
};
|
|
127
127
|
}
|
|
@@ -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\" style=\"background: transparent !important; margin: 0;\">\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}"],"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';\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"}
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
{
|
|
87
87
|
"id": "core-alert_content",
|
|
88
88
|
"name": "Content",
|
|
89
|
-
"template": "<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\"
|
|
89
|
+
"template": "<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 >\n </div>\n <nve-button slot=\"actions\" container=\"flat\">Collapse Details</nve-button>\n </nve-alert>\n</nve-alert-group>\n",
|
|
90
90
|
"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.",
|
|
91
91
|
"description": "",
|
|
92
92
|
"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
|
@@ -7,6 +7,8 @@ export * from './drawer';
|
|
|
7
7
|
export * from './dropdown';
|
|
8
8
|
export * from './dropzone';
|
|
9
9
|
export * from './file';
|
|
10
|
+
export * from './format-datetime';
|
|
11
|
+
export * from './format-relative-time';
|
|
10
12
|
export * from './forms';
|
|
11
13
|
export * from './grid';
|
|
12
14
|
export * from './icon';
|
package/dist/bundles/index.d.ts
CHANGED
|
@@ -218,6 +218,7 @@ export interface I18nStrings {
|
|
|
218
218
|
dragAndDrop: string;
|
|
219
219
|
browseFiles: string;
|
|
220
220
|
maxFileSize: string;
|
|
221
|
+
create: string;
|
|
221
222
|
}
|
|
222
223
|
export interface IconSVG {
|
|
223
224
|
svg: () => Promise<string> | string;
|
|
@@ -2272,6 +2273,125 @@ declare class File$1 extends Control {
|
|
|
2272
2273
|
};
|
|
2273
2274
|
connectedCallback(): void;
|
|
2274
2275
|
}
|
|
2276
|
+
/**
|
|
2277
|
+
* @element nve-format-datetime
|
|
2278
|
+
* @description Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element.
|
|
2279
|
+
* Granular options (weekday, year, month, day, hour, minute, second) mirror the Intl.DateTimeFormat API. 'numeric' omits zero-padding, '2-digit' zero-pads.
|
|
2280
|
+
* @since 0.0.0
|
|
2281
|
+
* @entrypoint \@nvidia-elements/core/format-datetime
|
|
2282
|
+
* @slot - Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration.
|
|
2283
|
+
*/
|
|
2284
|
+
export declare class FormatDatetime extends LitElement {
|
|
2285
|
+
#private;
|
|
2286
|
+
static styles: CSSResult[];
|
|
2287
|
+
static readonly metadata: {
|
|
2288
|
+
tag: string;
|
|
2289
|
+
version: string;
|
|
2290
|
+
};
|
|
2291
|
+
/**
|
|
2292
|
+
* Optional date string for values supplied by JavaScript or bound data.
|
|
2293
|
+
* By default, the component formats the element's text content, which also serves as the SSR fallback.
|
|
2294
|
+
* When both are present, this property takes precedence.
|
|
2295
|
+
*/
|
|
2296
|
+
date?: string;
|
|
2297
|
+
/**
|
|
2298
|
+
* Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default.
|
|
2299
|
+
*/
|
|
2300
|
+
locale?: string;
|
|
2301
|
+
/**
|
|
2302
|
+
* Weekday representation: 'long' | 'short' | 'narrow'.
|
|
2303
|
+
*/
|
|
2304
|
+
weekday?: "long" | "short" | "narrow";
|
|
2305
|
+
/**
|
|
2306
|
+
* Year representation: 'numeric' | '2-digit'.
|
|
2307
|
+
*/
|
|
2308
|
+
year?: "numeric" | "2-digit";
|
|
2309
|
+
/**
|
|
2310
|
+
* Month representation: 'numeric' | '2-digit' | 'long' | 'short' | 'narrow'.
|
|
2311
|
+
*/
|
|
2312
|
+
month?: "numeric" | "2-digit" | "long" | "short" | "narrow";
|
|
2313
|
+
/**
|
|
2314
|
+
* Day representation: 'numeric' | '2-digit'.
|
|
2315
|
+
*/
|
|
2316
|
+
day?: "numeric" | "2-digit";
|
|
2317
|
+
/**
|
|
2318
|
+
* Hour representation: 'numeric' | '2-digit'.
|
|
2319
|
+
*/
|
|
2320
|
+
hour?: "numeric" | "2-digit";
|
|
2321
|
+
/**
|
|
2322
|
+
* Minute representation: 'numeric' | '2-digit'.
|
|
2323
|
+
*/
|
|
2324
|
+
minute?: "numeric" | "2-digit";
|
|
2325
|
+
/**
|
|
2326
|
+
* Second representation: 'numeric' | '2-digit'.
|
|
2327
|
+
*/
|
|
2328
|
+
second?: "numeric" | "2-digit";
|
|
2329
|
+
/**
|
|
2330
|
+
* Preset date formatting style: 'full' | 'long' | 'medium' | 'short'.
|
|
2331
|
+
* Preset styles take precedence over granular date and time part options.
|
|
2332
|
+
*/
|
|
2333
|
+
dateStyle?: "full" | "long" | "medium" | "short";
|
|
2334
|
+
/**
|
|
2335
|
+
* Preset time formatting style: 'full' | 'long' | 'medium' | 'short'.
|
|
2336
|
+
* Preset styles take precedence over granular date and time part options.
|
|
2337
|
+
*/
|
|
2338
|
+
timeStyle?: "full" | "long" | "medium" | "short";
|
|
2339
|
+
/**
|
|
2340
|
+
* Time zone name display: 'long' | 'short'. Use it with granular options only; preset styles ignore it.
|
|
2341
|
+
*/
|
|
2342
|
+
timeZoneName?: "long" | "short";
|
|
2343
|
+
/**
|
|
2344
|
+
* IANA time zone identifier (such as 'America/New_York', 'UTC').
|
|
2345
|
+
*/
|
|
2346
|
+
timeZone?: string;
|
|
2347
|
+
render(): TemplateResult<1>;
|
|
2348
|
+
}
|
|
2349
|
+
/**
|
|
2350
|
+
* @element nve-format-relative-time
|
|
2351
|
+
* @description Formats a date/time value as localized relative text using the Intl.RelativeTimeFormat API. Renders inside a semantic time element.
|
|
2352
|
+
* Options mirror the Intl.RelativeTimeFormat API. When unit is 'auto', the component selects the best unit based on the time difference.
|
|
2353
|
+
* @since 0.0.0
|
|
2354
|
+
* @entrypoint \@nvidia-elements/core/format-relative-time
|
|
2355
|
+
* @slot - Date string to format (such as 2023-07-28T04:20:17.434Z). Serves as fallback before hydration.
|
|
2356
|
+
*/
|
|
2357
|
+
export declare class FormatRelativeTime extends LitElement {
|
|
2358
|
+
#private;
|
|
2359
|
+
static styles: CSSResult[];
|
|
2360
|
+
static readonly metadata: {
|
|
2361
|
+
tag: string;
|
|
2362
|
+
version: string;
|
|
2363
|
+
};
|
|
2364
|
+
/**
|
|
2365
|
+
* Optional date string for values supplied by JavaScript or bound data.
|
|
2366
|
+
* By default, the component formats the element's text content, which also serves as the SSR fallback.
|
|
2367
|
+
* When both are present, this property takes precedence.
|
|
2368
|
+
*/
|
|
2369
|
+
date?: string;
|
|
2370
|
+
/**
|
|
2371
|
+
* Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default.
|
|
2372
|
+
*/
|
|
2373
|
+
locale?: string;
|
|
2374
|
+
/**
|
|
2375
|
+
* Numeric formatting: 'always' | 'auto'. When 'auto', enables natural language forms such as 'yesterday' instead of '1 day ago'.
|
|
2376
|
+
*/
|
|
2377
|
+
numeric: "always" | "auto";
|
|
2378
|
+
/**
|
|
2379
|
+
* Formatting length: 'long' | 'short' | 'narrow'. Controls verbosity (such as '3 days ago' vs '3d ago'). Maps to Intl.RelativeTimeFormat style option.
|
|
2380
|
+
*/
|
|
2381
|
+
formatStyle: "long" | "short" | "narrow";
|
|
2382
|
+
/**
|
|
2383
|
+
* Time unit: 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year' | 'auto'. Use 'auto' to let the component select the most appropriate unit based on the time difference.
|
|
2384
|
+
*/
|
|
2385
|
+
unit: "second" | "minute" | "hour" | "day" | "week" | "month" | "year" | "auto";
|
|
2386
|
+
/**
|
|
2387
|
+
* When present, auto-updates the displayed relative time at appropriate intervals.
|
|
2388
|
+
*/
|
|
2389
|
+
sync: boolean;
|
|
2390
|
+
connectedCallback(): void;
|
|
2391
|
+
disconnectedCallback(): void;
|
|
2392
|
+
updated(changed: Map<string, unknown>): void;
|
|
2393
|
+
render(): TemplateResult<1>;
|
|
2394
|
+
}
|
|
2275
2395
|
/**
|
|
2276
2396
|
* @element nve-grid-column
|
|
2277
2397
|
* @description Defines a column header within a grid, specifying the column's label, width, and alignment for all cells beneath it.
|
|
@@ -5234,6 +5354,61 @@ export declare class Tabs extends LitElement {
|
|
|
5234
5354
|
connectedCallback(): void;
|
|
5235
5355
|
updated(props: PropertyValues<this>): void;
|
|
5236
5356
|
}
|
|
5357
|
+
/** Arranges the tab strip and slot-matched panels: stacked column (`top`), or sidebar row with tabs at inline-start (`start`) or inline-end (`end`). */
|
|
5358
|
+
export type TabsGroupAlignment = "top" | "start" | "end";
|
|
5359
|
+
/**
|
|
5360
|
+
* @element nve-tabs-group
|
|
5361
|
+
* @description Coordinates tabs with matching panel content using Invoker Commands and slot-matched panels.
|
|
5362
|
+
* @since 1.67.0
|
|
5363
|
+
* @entrypoint \@nvidia-elements/core/tabs
|
|
5364
|
+
* @command --toggle - Select the matching tab and reveal the panel whose slot matches the invoker value.
|
|
5365
|
+
* @event select - Dispatched when the selected tab value changes after an invoker `--toggle` updates selection
|
|
5366
|
+
* @slot - Default slot for a single nve-tabs element. Do not use behavior-select on nve-tabs when using this group.
|
|
5367
|
+
* @slot {value} - Named panel content where the slot name matches a nve-tabs-item value.
|
|
5368
|
+
* @cssprop --padding
|
|
5369
|
+
* @aria https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
5370
|
+
* @responsive false
|
|
5371
|
+
*/
|
|
5372
|
+
export declare class TabsGroup extends LitElement {
|
|
5373
|
+
#private;
|
|
5374
|
+
static styles: CSSResult[];
|
|
5375
|
+
static readonly metadata: {
|
|
5376
|
+
tag: string;
|
|
5377
|
+
version: string;
|
|
5378
|
+
children: string[];
|
|
5379
|
+
};
|
|
5380
|
+
/** Options for observing the slotted `nve-tabs` subtree (tab list / item attribute changes). */
|
|
5381
|
+
protected static readonly subtreeObserverInit: {
|
|
5382
|
+
readonly childList: true;
|
|
5383
|
+
readonly subtree: true;
|
|
5384
|
+
readonly attributes: true;
|
|
5385
|
+
readonly attributeFilter: [
|
|
5386
|
+
"disabled",
|
|
5387
|
+
"id",
|
|
5388
|
+
"selected",
|
|
5389
|
+
"value"
|
|
5390
|
+
];
|
|
5391
|
+
};
|
|
5392
|
+
private defaultSlotElements;
|
|
5393
|
+
/**
|
|
5394
|
+
* Arranges the tab strip relative to slot-matched panels: stacked column (`top`), or sidebar row with tabs at
|
|
5395
|
+
* inline-start (`start`) or inline-end (`end`) beside the panel region.
|
|
5396
|
+
*/
|
|
5397
|
+
alignment: TabsGroupAlignment;
|
|
5398
|
+
private panelValues;
|
|
5399
|
+
private selectedValue;
|
|
5400
|
+
/** @private */
|
|
5401
|
+
_internals: ElementInternals;
|
|
5402
|
+
/**
|
|
5403
|
+
* Renders the default slot (single `nve-tabs`) plus one named `<slot name={value}>` per distinct selectable
|
|
5404
|
+
* `nve-tabs-item` value. `#syncPanelSlot` applies panel visibility and ARIA from `selectedValue`.
|
|
5405
|
+
*/
|
|
5406
|
+
render(): TemplateResult<1>;
|
|
5407
|
+
connectedCallback(): void;
|
|
5408
|
+
firstUpdated(): void;
|
|
5409
|
+
disconnectedCallback(): void;
|
|
5410
|
+
updated(changedProperties: PropertyValues<this>): void;
|
|
5411
|
+
}
|
|
5237
5412
|
/**
|
|
5238
5413
|
* @element nve-textarea
|
|
5239
5414
|
* @description A textarea is a control that enables users to enter and edit text.
|
|
@@ -5486,7 +5661,7 @@ export declare class Toolbar extends LitElement implements ContainerElement {
|
|
|
5486
5661
|
* @command --close - use to close the node
|
|
5487
5662
|
* @command --toggle - use to toggle open / closed state of the node
|
|
5488
5663
|
* @slot - Use default slot for basic text content or nested <nve-tree-node> elements.
|
|
5489
|
-
* @slot content - Use for extended long form content containing interactive elements or form inputs.
|
|
5664
|
+
* @slot content - Use only for extended long form content containing interactive elements or form inputs.
|
|
5490
5665
|
* @cssprop --color
|
|
5491
5666
|
* @cssprop --border-radius
|
|
5492
5667
|
* @cssprop --font-size
|