@nvidia-elements/core 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert.examples.js.map +1 -1
- package/dist/alert/alert.examples.json +7 -3
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundle.d.ts +2 -0
- package/dist/bundles/index.d.ts +61 -8
- package/dist/bundles/index.js +6 -6
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card.examples.js.map +1 -1
- package/dist/card/card.examples.json +10 -4
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements-jsx.d.ts +47 -10
- package/dist/custom-elements-vue.d.ts +47 -10
- package/dist/custom-elements.json +394 -17
- package/dist/data.html.json +65 -7
- package/dist/data.snippets.json +27 -27
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime2.js +1 -1
- package/dist/dialog/dialog-footer2.js +1 -1
- package/dist/dialog/dialog-header2.js +1 -1
- package/dist/dialog/dialog.d.ts +1 -1
- package/dist/dialog/dialog2.js +1 -1
- package/dist/dialog/dialog2.js.map +1 -1
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot2.js +1 -1
- package/dist/drawer/drawer-content2.js +1 -1
- package/dist/drawer/drawer-footer2.js +1 -1
- package/dist/drawer/drawer-header2.js +1 -1
- package/dist/drawer/drawer.d.ts +1 -1
- package/dist/drawer/drawer2.js +1 -1
- package/dist/drawer/drawer2.js.map +1 -1
- package/dist/dropdown/dropdown-footer2.js +1 -1
- package/dist/dropdown/dropdown-header2.js +1 -1
- package/dist/dropdown/dropdown.d.ts +3 -3
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown/dropdown2.js.map +1 -1
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file2.js +1 -1
- package/dist/format-bytes/define.d.ts +6 -0
- package/dist/format-bytes/define.js +7 -0
- package/dist/format-bytes/define.js.map +1 -0
- package/dist/format-bytes/format-bytes.d.ts +53 -0
- package/dist/format-bytes/format-bytes.examples.js +6 -0
- package/dist/format-bytes/format-bytes.examples.js.map +1 -0
- package/dist/format-bytes/format-bytes.examples.json +69 -0
- package/dist/format-bytes/format-bytes.js +6 -0
- package/dist/format-bytes/format-bytes.js.map +1 -0
- package/dist/format-bytes/format-bytes2.js +182 -0
- package/dist/format-bytes/format-bytes2.js.map +1 -0
- package/dist/format-bytes/index.d.ts +1 -0
- package/dist/format-bytes/index.js +2 -0
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-number/format-number2.js +1 -1
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/forms/control/control.js +1 -1
- package/dist/forms/control/control.js.map +1 -1
- package/dist/forms/control/control2.js +9 -21
- package/dist/forms/control/control2.js.map +1 -1
- package/dist/forms/control-group/control-group2.js +1 -1
- package/dist/forms/control-message/control-message2.js +1 -1
- package/dist/gauge/gauge.examples.js.map +1 -1
- package/dist/gauge/gauge.examples.json +1 -1
- package/dist/gauge/gauge2.js +1 -1
- package/dist/grid/cell/cell2.js +1 -1
- package/dist/grid/column/column2.js +1 -1
- package/dist/grid/footer/footer2.js +1 -1
- package/dist/grid/grid.examples.js.map +1 -1
- package/dist/grid/grid.examples.json +6 -2
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input.js +1 -1
- package/dist/input/input.js.map +1 -1
- package/dist/input/input2.js +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification.d.ts +1 -1
- package/dist/notification/notification2.js +1 -1
- package/dist/notification/notification2.js.map +1 -1
- package/dist/page/page-panel/page-panel-content2.js +1 -1
- package/dist/page/page-panel/page-panel-footer2.js +1 -1
- package/dist/page/page-panel/page-panel-header2.js +1 -1
- package/dist/page/page-panel/page-panel2.js +1 -1
- package/dist/page/page.d.ts +1 -0
- package/dist/page/page.js +1 -1
- package/dist/page/page.js.map +1 -1
- package/dist/page/page2.js +1 -1
- package/dist/page/page2.js.map +1 -1
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search2.js +1 -1
- package/dist/select/select.js +1 -1
- package/dist/select/select.js.map +1 -1
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline2.js +1 -1
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +1 -1
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast.d.ts +1 -1
- package/dist/toast/toast2.js +1 -1
- package/dist/toast/toast2.js.map +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip.examples.js.map +1 -1
- package/dist/toggletip/toggletip.examples.json +1 -1
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar.examples.js.map +1 -1
- package/dist/toolbar/toolbar.examples.json +1 -1
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip.d.ts +1 -1
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tooltip/tooltip2.js.map +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week2.js +1 -1
- package/package.json +26 -7
package/dist/button/button2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.examples.js","names":[],"sources":["../../src/card/card.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/card/define.js';\nimport '@nvidia-elements/core/button/define.js';\nimport '@nvidia-elements/core/icon-button/define.js';\nimport '@nvidia-elements/core/icon/define.js';\nimport '@nvidia-elements/core/tabs/define.js';\nimport '@nvidia-elements/core/divider/define.js';\n\nexport default {\n title: 'Elements/Card',\n component: 'nve-card'\n};\n\n/**\n * @summary Basic card component with header, content, and footer sections. Use this as a starting point for simple content containers.\n */\nexport const Default = {\n render: () => html`\n <nve-card>\n <nve-card-header>\n <h2 nve-text=\"heading sm medium\">Heading</h2>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 64px\">card content</p>\n </nve-card-content>\n <nve-card-footer>\n <p nve-text=\"body\">card footer</p>\n </nve-card-footer>\n </nve-card>\n `\n};\n\n/**\n * @summary Card with action buttons in the footer, including primary and secondary actions for interactive card layouts.\n */\nexport const Actions = {\n render: () => html`\n <nve-card>\n <nve-card-header>\n <div nve-layout=\"column gap:xs\">\n <h2 nve-text=\"heading sm bold\">Heading</h2>\n <h3 nve-text=\"body sm muted\">Sub Heading</h3>\n </div>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 64px\">card content</p>\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\" style=\"margin-left: auto\">cancel</nve-button> \n <nve-button>action</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n `\n}\n\n/**\n * @summary Cards with media content (images) displayed in a grid layout, ideal for photo galleries, product catalogs, or visual content showcases.\n */\nexport const MediaCard = {\n render: () => html`\n <div nve-layout=\"grid gap:md span-items:6 align:stretch\" style=\"max-width: 900px\">\n <nve-card style=\"height: 100%; width: 100%;\">\n <img src=\"/static/images/test-image-1.svg\" alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; object-fit: cover;\" />\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 24px\">card content</p>\n </nve-card-content>\n </nve-card>\n <nve-card style=\"height: 100%; width: 100%;\">\n <img src=\"/static/images/test-image-1.svg\" alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; object-fit: cover;\" />\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 24px\">card content</p>\n </nve-card-content>\n </nve-card>\n </div>\n `\n}\n\n/**\n * @summary Card with a divider separating different content sections, useful for organizing related but distinct information within a single card.\n */\nexport const WithDivider = {\n render: () => html`\n <nve-card style=\"width: 400px; height: 300px;\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Heading</h2>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\">card content</p>\n </nve-card-content>\n <nve-divider></nve-divider>\n <nve-card-content>\n <p nve-text=\"body\">card content</p>\n </nve-card-content>\n </nve-card>\n `\n}\n\n/**\n * @summary Card containing a description list layout, perfect for displaying key-value pairs, definitions, or structured data in a readable format.\n */\nexport const DescriptionList = {\n render: () => html`\n <nve-card style=\"width: 650px\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Nautical Terms</h2>\n </nve-card-header>\n <nve-card-content>\n <dl nve-layout=\"grid gap:lg\">\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Knot</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Knot is a unit of speed equaling 1 nautical mile per hour.</dd>\n\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Port</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Port is the nautical term that refers to the left side of a ship, as perceived by a person facing towards the bow (the front of the vessel).</dd>\n\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Starboard</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Starboard is the nautical term that refers to the right side of a vessel, as perceived by a person facing towards the bow (the front of the vessel).</dd>\n </dl>\n </nve-card-content>\n </nve-card>\n `\n}\n\n/**\n * @summary Card with integrated tabs in the header for multi-panel content within a single card interface.\n */\nexport const WithTabs = {\n render: () => html`\n <nve-card style=\"width:400px; height:200px\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Heading</h2>\n <nve-tabs>\n <nve-tabs-item selected>tab 1</nve-tabs-item>\n <nve-tabs-item>tab 2</nve-tabs-item>\n <nve-tabs-item>tab 3</nve-tabs-item>\n </nve-tabs>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\">card content</p>\n </nve-card-content>\n </nve-card>\n `\n}\n\n/**\n * @summary Card with full container styling that extends to the edges, suitable for full-width layouts or when you want the card to blend with its container.\n */\nexport const ContainerFull = {\n render: () => html`\n <nve-card container=\"full\">\n
|
|
1
|
+
{"version":3,"file":"card.examples.js","names":[],"sources":["../../src/card/card.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/card/define.js';\nimport '@nvidia-elements/core/button/define.js';\nimport '@nvidia-elements/core/icon-button/define.js';\nimport '@nvidia-elements/core/icon/define.js';\nimport '@nvidia-elements/core/tabs/define.js';\nimport '@nvidia-elements/core/divider/define.js';\nimport '@nvidia-elements/core/page/define.js';\n\nexport default {\n title: 'Elements/Card',\n component: 'nve-card'\n};\n\n/**\n * @summary Basic card component with header, content, and footer sections. Use this as a starting point for simple content containers.\n */\nexport const Default = {\n render: () => html`\n <nve-card>\n <nve-card-header>\n <h2 nve-text=\"heading sm medium\">Heading</h2>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 64px\">card content</p>\n </nve-card-content>\n <nve-card-footer>\n <p nve-text=\"body\">card footer</p>\n </nve-card-footer>\n </nve-card>\n `\n};\n\n/**\n * @summary Card with action buttons in the footer, including primary and secondary actions for interactive card layouts.\n */\nexport const Actions = {\n render: () => html`\n <nve-card>\n <nve-card-header>\n <div nve-layout=\"column gap:xs\">\n <h2 nve-text=\"heading sm bold\">Heading</h2>\n <h3 nve-text=\"body sm muted\">Sub Heading</h3>\n </div>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 64px\">card content</p>\n </nve-card-content>\n <nve-card-footer>\n <div nve-layout=\"row gap:xs\">\n <nve-button container=\"flat\" style=\"margin-left: auto\">cancel</nve-button> \n <nve-button>action</nve-button>\n </div>\n </nve-card-footer>\n </nve-card>\n `\n}\n\n/**\n * @summary Cards with media content (images) displayed in a grid layout, ideal for photo galleries, product catalogs, or visual content showcases.\n */\nexport const MediaCard = {\n render: () => html`\n <div nve-layout=\"grid gap:md span-items:6 align:stretch\" style=\"max-width: 900px\">\n <nve-card style=\"height: 100%; width: 100%;\">\n <img src=\"/static/images/test-image-1.svg\" alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; object-fit: cover;\" />\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 24px\">card content</p>\n </nve-card-content>\n </nve-card>\n <nve-card style=\"height: 100%; width: 100%;\">\n <img src=\"/static/images/test-image-1.svg\" alt=\"example visualization for media card demo\" loading=\"lazy\" style=\"width: 100%; object-fit: cover;\" />\n <nve-card-content>\n <p nve-text=\"body\" style=\"min-height: 24px\">card content</p>\n </nve-card-content>\n </nve-card>\n </div>\n `\n}\n\n/**\n * @summary Card with a divider separating different content sections, useful for organizing related but distinct information within a single card.\n */\nexport const WithDivider = {\n render: () => html`\n <nve-card style=\"width: 400px; height: 300px;\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Heading</h2>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\">card content</p>\n </nve-card-content>\n <nve-divider></nve-divider>\n <nve-card-content>\n <p nve-text=\"body\">card content</p>\n </nve-card-content>\n </nve-card>\n `\n}\n\n/**\n * @summary Card containing a description list layout, perfect for displaying key-value pairs, definitions, or structured data in a readable format.\n */\nexport const DescriptionList = {\n render: () => html`\n <nve-card style=\"width: 650px\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Nautical Terms</h2>\n </nve-card-header>\n <nve-card-content>\n <dl nve-layout=\"grid gap:lg\">\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Knot</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Knot is a unit of speed equaling 1 nautical mile per hour.</dd>\n\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Port</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Port is the nautical term that refers to the left side of a ship, as perceived by a person facing towards the bow (the front of the vessel).</dd>\n\n <dt nve-layout=\"span:4\" nve-text=\"body muted medium\">Starboard</dt>\n <dd nve-layout=\"span:8\" nve-text=\"body\">Starboard is the nautical term that refers to the right side of a vessel, as perceived by a person facing towards the bow (the front of the vessel).</dd>\n </dl>\n </nve-card-content>\n </nve-card>\n `\n}\n\n/**\n * @summary Card with integrated tabs in the header for multi-panel content within a single card interface.\n */\nexport const WithTabs = {\n render: () => html`\n <nve-card style=\"width:400px; height:200px\">\n <nve-card-header>\n <h2 nve-text=\"heading sm bold\">Heading</h2>\n <nve-tabs>\n <nve-tabs-item selected>tab 1</nve-tabs-item>\n <nve-tabs-item>tab 2</nve-tabs-item>\n <nve-tabs-item>tab 3</nve-tabs-item>\n </nve-tabs>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\">card content</p>\n </nve-card-content>\n </nve-card>\n `\n}\n\n/**\n * @summary Card with full container styling that extends to the edges, suitable for full-width layouts or when you want the card to blend with its container.\n * @tags test-case\n */\nexport const ContainerFull = {\n render: () => html`\n <nve-page document-scroll>\n <nve-card container=\"full\">\n <nve-card-content>\n <p nve-text=\"body\">container full</p>\n </nve-card-content>\n </nve-card>\n </nve-page>\n `\n}\n\n/**\n * @summary Card with flat container styling that removes the default card elevation, ideal for subtle content containers or when you want a more minimal appearance.\n * @tags test-case\n */\nexport const ContainerFlat = {\n render: () => html`\n <nve-card container=\"flat\">\n <nve-card-content>\n <p nve-text=\"body\">container flat</p>\n </nve-card-content>\n </nve-card>\n `\n}\n\n/**\n * @summary Examples of invalid card usage patterns for testing and documentation purposes, showing what not to do when implementing cards.\n * @tags test-case\n */\nexport const Audit = {\n /* eslint-disable @nvidia-elements/lint/no-restricted-attributes */\n render: () => html`\n <!-- invalid padding usage -->\n <nve-card nve-layout=\"pad:md\"></nve-card>\n\n <!-- invalid parent element -->\n <nve-card-header>\n card header\n </nve-card-header>\n <nve-card-content>\n card content\n </nve-card-content>\n <nve-card-footer>\n card footer\n </nve-card-footer>\n `\n /* eslint-enable */\n};\n\n/**\n * @summary Card with overflow content, where the card body scrolls when content exceeds the card height.\n * @tags test-case\n */\nexport const OverflowContent = {\n render: () => html`\n <nve-card style=\"height: 250px; width: 400px;\">\n <nve-card-header>\n <h2 nve-text=\"heading sm medium\">Heading</h2>\n </nve-card-header>\n <nve-card-content>\n <p nve-text=\"body\" style=\"margin-bottom: 300px\">card content</p>\n <p nve-text=\"body\">card content</p>\n </nve-card-content>\n <nve-card-footer>\n <p nve-text=\"body\">card footer</p>\n </nve-card-footer>\n </nve-card>\n `\n};\n"],"mappings":";AAGA,IAAA,IAAS"}
|
|
@@ -59,11 +59,13 @@
|
|
|
59
59
|
{
|
|
60
60
|
"id": "card-container-full",
|
|
61
61
|
"name": "ContainerFull",
|
|
62
|
-
"template": "<nve-card container=\"full\">\n
|
|
62
|
+
"template": "<nve-page document-scroll>\n <nve-card container=\"full\">\n <nve-card-content>\n <p nve-text=\"body\">container full</p>\n </nve-card-content>\n </nve-card>\n</nve-page>\n",
|
|
63
63
|
"summary": "Card with full container styling that extends to the edges, suitable for full-width layouts or when you want the card to blend with its container.",
|
|
64
64
|
"description": "",
|
|
65
65
|
"composition": false,
|
|
66
|
-
"tags": [
|
|
66
|
+
"tags": [
|
|
67
|
+
"test-case"
|
|
68
|
+
]
|
|
67
69
|
},
|
|
68
70
|
{
|
|
69
71
|
"id": "card-container-flat",
|
|
@@ -72,7 +74,9 @@
|
|
|
72
74
|
"summary": "Card with flat container styling that removes the default card elevation, ideal for subtle content containers or when you want a more minimal appearance.",
|
|
73
75
|
"description": "",
|
|
74
76
|
"composition": false,
|
|
75
|
-
"tags": [
|
|
77
|
+
"tags": [
|
|
78
|
+
"test-case"
|
|
79
|
+
]
|
|
76
80
|
},
|
|
77
81
|
{
|
|
78
82
|
"id": "card-audit",
|
|
@@ -92,7 +96,9 @@
|
|
|
92
96
|
"summary": "Card with overflow content, where the card body scrolls when content exceeds the card height.",
|
|
93
97
|
"description": "",
|
|
94
98
|
"composition": false,
|
|
95
|
-
"tags": [
|
|
99
|
+
"tags": [
|
|
100
|
+
"test-case"
|
|
101
|
+
]
|
|
96
102
|
}
|
|
97
103
|
]
|
|
98
104
|
}
|
package/dist/card/card2.js
CHANGED
|
@@ -16,7 +16,7 @@ var d = class extends c {
|
|
|
16
16
|
static {
|
|
17
17
|
this.metadata = {
|
|
18
18
|
tag: "nve-card",
|
|
19
|
-
version: "2.
|
|
19
|
+
version: "2.3.0"
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
@@ -37,7 +37,7 @@ var f = class extends c {
|
|
|
37
37
|
static {
|
|
38
38
|
this.metadata = {
|
|
39
39
|
tag: "nve-card-header",
|
|
40
|
-
version: "2.
|
|
40
|
+
version: "2.3.0",
|
|
41
41
|
parents: ["nve-card"]
|
|
42
42
|
};
|
|
43
43
|
}
|
|
@@ -53,7 +53,7 @@ var p = class extends c {
|
|
|
53
53
|
static {
|
|
54
54
|
this.metadata = {
|
|
55
55
|
tag: "nve-card-content",
|
|
56
|
-
version: "2.
|
|
56
|
+
version: "2.3.0",
|
|
57
57
|
parents: ["nve-card"]
|
|
58
58
|
};
|
|
59
59
|
}
|
|
@@ -72,7 +72,7 @@ var m = class extends c {
|
|
|
72
72
|
static {
|
|
73
73
|
this.metadata = {
|
|
74
74
|
tag: "nve-card-footer",
|
|
75
|
-
version: "2.
|
|
75
|
+
version: "2.3.0",
|
|
76
76
|
parents: ["nve-card"]
|
|
77
77
|
};
|
|
78
78
|
}
|
package/dist/color/color2.js
CHANGED
|
@@ -976,9 +976,9 @@ Determines if popover visibility behavior should be automatically controlled by
|
|
|
976
976
|
arrow?: boolean;
|
|
977
977
|
/** Enables internal string values to update for internationalization. */
|
|
978
978
|
i18n?: string;
|
|
979
|
-
/** Dispatched on a popover just before showing or hiding.
|
|
979
|
+
/** Dispatched on a popover just before showing or hiding. */
|
|
980
980
|
onbeforetoggle?: (e: CustomEvent<never>) => void;
|
|
981
|
-
/** Dispatched on a popover element just after showing or hiding.
|
|
981
|
+
/** Dispatched on a popover element just after showing or hiding. */
|
|
982
982
|
ontoggle?: (e: CustomEvent<never>) => void;
|
|
983
983
|
/** Dispatched when the dropdown opens. */
|
|
984
984
|
onopen?: (e: CustomEvent<never>) => void;
|
|
@@ -1103,6 +1103,32 @@ export type FileProps = {
|
|
|
1103
1103
|
onreset?: (e: CustomEvent<CustomEvent>) => void;
|
|
1104
1104
|
};
|
|
1105
1105
|
|
|
1106
|
+
export type FormatBytesProps = {
|
|
1107
|
+
/** Unit label length: 'short' renders labels such as 'mb'; 'long' renders labels such as 'megabytes'. */
|
|
1108
|
+
"unit-display"?: "short" | "long";
|
|
1109
|
+
/** Pad fraction output to at least this many digits. */
|
|
1110
|
+
"minimum-fraction-digits"?: number | undefined;
|
|
1111
|
+
/** Round fraction output to at most this many digits. Defaults to two effective digits after the decimal point. */
|
|
1112
|
+
"maximum-fraction-digits"?: number | undefined;
|
|
1113
|
+
/** Optional byte count for values supplied by JavaScript or bound data.
|
|
1114
|
+
By default, the component formats the element's text content, which also serves as the SSR fallback.
|
|
1115
|
+
When both are present, this property takes precedence. */
|
|
1116
|
+
value?: number | undefined;
|
|
1117
|
+
/** Unit system: 'decimal' uses powers of 1000 and 'binary' uses powers of 1024. */
|
|
1118
|
+
display?: "decimal" | "binary";
|
|
1119
|
+
/** Optional unit magnitude. When omitted, the component selects a unit from the byte count. */
|
|
1120
|
+
unit?: "b" | "kb" | "mb" | "gb" | "tb" | "pb" | undefined;
|
|
1121
|
+
/** Unit label length: 'short' renders labels such as 'mb'; 'long' renders labels such as 'megabytes'. */
|
|
1122
|
+
unitDisplay?: "short" | "long";
|
|
1123
|
+
/** Language tag (such as en-US or de-DE) used to format the number.
|
|
1124
|
+
Defaults to document.documentElement.lang or the runtime default. */
|
|
1125
|
+
locale?: string | undefined;
|
|
1126
|
+
/** Pad fraction output to at least this many digits. */
|
|
1127
|
+
minimumFractionDigits?: number | undefined;
|
|
1128
|
+
/** Round fraction output to at most this many digits. Defaults to two effective digits after the decimal point. */
|
|
1129
|
+
maximumFractionDigits?: number | undefined;
|
|
1130
|
+
};
|
|
1131
|
+
|
|
1106
1132
|
export type FormatDatetimeProps = {
|
|
1107
1133
|
/** Preset date formatting style: 'full' | 'long' | 'medium' | 'short'.
|
|
1108
1134
|
Preset styles take precedence over granular date and time part options. */
|
|
@@ -4628,7 +4654,7 @@ export type CustomElements = {
|
|
|
4628
4654
|
"nve-dialog-header": Partial<DialogHeaderProps & BaseProps & BaseEvents>;
|
|
4629
4655
|
|
|
4630
4656
|
/**
|
|
4631
|
-
* Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow.
|
|
4657
|
+
* Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow.
|
|
4632
4658
|
* ---
|
|
4633
4659
|
*
|
|
4634
4660
|
*
|
|
@@ -4742,7 +4768,7 @@ export type CustomElements = {
|
|
|
4742
4768
|
"nve-drawer-header": Partial<DrawerHeaderProps & BaseProps & BaseEvents>;
|
|
4743
4769
|
|
|
4744
4770
|
/**
|
|
4745
|
-
*
|
|
4771
|
+
* A drawer displays content separate from the rest of the page, such as notifications, navigation, and settings.
|
|
4746
4772
|
* ---
|
|
4747
4773
|
*
|
|
4748
4774
|
*
|
|
@@ -4822,13 +4848,13 @@ export type CustomElements = {
|
|
|
4822
4848
|
"nve-dropdown-header": Partial<DropdownHeaderProps & BaseProps & BaseEvents>;
|
|
4823
4849
|
|
|
4824
4850
|
/**
|
|
4825
|
-
* Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls.
|
|
4851
|
+
* Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls.
|
|
4826
4852
|
* ---
|
|
4827
4853
|
*
|
|
4828
4854
|
*
|
|
4829
4855
|
* ### **Events:**
|
|
4830
|
-
* - **beforetoggle** - Dispatched on a popover just before showing or hiding.
|
|
4831
|
-
* - **toggle** - Dispatched on a popover element just after showing or hiding.
|
|
4856
|
+
* - **beforetoggle** - Dispatched on a popover just before showing or hiding.
|
|
4857
|
+
* - **toggle** - Dispatched on a popover element just after showing or hiding.
|
|
4832
4858
|
* - **open** - Dispatched when the dropdown opens.
|
|
4833
4859
|
* - **close** - Dispatched when the dropdown closes.
|
|
4834
4860
|
*
|
|
@@ -4924,6 +4950,16 @@ export type CustomElements = {
|
|
|
4924
4950
|
*/
|
|
4925
4951
|
"nve-file": Partial<FileProps & BaseProps & BaseEvents>;
|
|
4926
4952
|
|
|
4953
|
+
/**
|
|
4954
|
+
* Formats a byte count as localized, human-readable decimal or binary units.
|
|
4955
|
+
* ---
|
|
4956
|
+
*
|
|
4957
|
+
*
|
|
4958
|
+
* ### **Slots:**
|
|
4959
|
+
* - _default_ - Numeric byte count to format (such as 1048576). Serves as fallback before hydration.
|
|
4960
|
+
*/
|
|
4961
|
+
"nve-format-bytes": Partial<FormatBytesProps & BaseProps & BaseEvents>;
|
|
4962
|
+
|
|
4927
4963
|
/**
|
|
4928
4964
|
* Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element.
|
|
4929
4965
|
* Granular options (weekday, year, month, day, hour, minute, second) mirror the Intl.DateTimeFormat API. 'numeric' omits zero-padding, '2-digit' zero-pads.
|
|
@@ -5401,7 +5437,7 @@ export type CustomElements = {
|
|
|
5401
5437
|
"nve-notification-group": Partial<NotificationGroupProps & BaseProps & BaseEvents>;
|
|
5402
5438
|
|
|
5403
5439
|
/**
|
|
5404
|
-
* Displays real time updates without interrupting the user's workflow to communicate an important message or status.
|
|
5440
|
+
* Displays real time updates without interrupting the user's workflow to communicate an important message or status.
|
|
5405
5441
|
* ---
|
|
5406
5442
|
*
|
|
5407
5443
|
*
|
|
@@ -5570,6 +5606,7 @@ export type CustomElements = {
|
|
|
5570
5606
|
* - **--border-radius** - undefined _(default: undefined)_
|
|
5571
5607
|
* - **--box-shadow** - undefined _(default: undefined)_
|
|
5572
5608
|
* - **--min-height** - undefined _(default: undefined)_
|
|
5609
|
+
* - **--gap** - Vertical gap spacing between main content items _(default: undefined)_
|
|
5573
5610
|
*/
|
|
5574
5611
|
"nve-page": Partial<PageProps & BaseProps & BaseEvents>;
|
|
5575
5612
|
|
|
@@ -6385,7 +6422,7 @@ export type CustomElements = {
|
|
|
6385
6422
|
"nve-time": Partial<TimeProps & BaseProps & BaseEvents>;
|
|
6386
6423
|
|
|
6387
6424
|
/**
|
|
6388
|
-
* A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them.
|
|
6425
|
+
* A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them.
|
|
6389
6426
|
* ---
|
|
6390
6427
|
*
|
|
6391
6428
|
*
|
|
@@ -6506,7 +6543,7 @@ export type CustomElements = {
|
|
|
6506
6543
|
"nve-toolbar": Partial<ToolbarProps & BaseProps & BaseEvents>;
|
|
6507
6544
|
|
|
6508
6545
|
/**
|
|
6509
|
-
* A contextual popup that displays a plaintext description.
|
|
6546
|
+
* A contextual popup that displays a plaintext description. Trigger tooltips by hovering, focusing, or tapping an element and cannot have interactive elements within them.
|
|
6510
6547
|
* ---
|
|
6511
6548
|
*
|
|
6512
6549
|
*
|
|
@@ -862,9 +862,9 @@ Determines if popover visibility behavior should be automatically controlled by
|
|
|
862
862
|
arrow?: boolean;
|
|
863
863
|
/** Enables internal string values to update for internationalization. */
|
|
864
864
|
i18n?: string;
|
|
865
|
-
/** Dispatched on a popover just before showing or hiding.
|
|
865
|
+
/** Dispatched on a popover just before showing or hiding. */
|
|
866
866
|
onbeforetoggle?: (e: CustomEvent<never>) => void;
|
|
867
|
-
/** Dispatched on a popover element just after showing or hiding.
|
|
867
|
+
/** Dispatched on a popover element just after showing or hiding. */
|
|
868
868
|
ontoggle?: (e: CustomEvent<never>) => void;
|
|
869
869
|
/** Dispatched when the dropdown opens. */
|
|
870
870
|
onopen?: (e: CustomEvent<never>) => void;
|
|
@@ -979,6 +979,32 @@ type FileProps = {
|
|
|
979
979
|
onreset?: (e: CustomEvent<CustomEvent>) => void;
|
|
980
980
|
};
|
|
981
981
|
|
|
982
|
+
type FormatBytesProps = {
|
|
983
|
+
/** Unit label length: 'short' renders labels such as 'mb'; 'long' renders labels such as 'megabytes'. */
|
|
984
|
+
"unit-display"?: "short" | "long";
|
|
985
|
+
/** Pad fraction output to at least this many digits. */
|
|
986
|
+
"minimum-fraction-digits"?: number | undefined;
|
|
987
|
+
/** Round fraction output to at most this many digits. Defaults to two effective digits after the decimal point. */
|
|
988
|
+
"maximum-fraction-digits"?: number | undefined;
|
|
989
|
+
/** Optional byte count for values supplied by JavaScript or bound data.
|
|
990
|
+
By default, the component formats the element's text content, which also serves as the SSR fallback.
|
|
991
|
+
When both are present, this property takes precedence. */
|
|
992
|
+
value?: number | undefined;
|
|
993
|
+
/** Unit system: 'decimal' uses powers of 1000 and 'binary' uses powers of 1024. */
|
|
994
|
+
display?: "decimal" | "binary";
|
|
995
|
+
/** Optional unit magnitude. When omitted, the component selects a unit from the byte count. */
|
|
996
|
+
unit?: "b" | "kb" | "mb" | "gb" | "tb" | "pb" | undefined;
|
|
997
|
+
/** Unit label length: 'short' renders labels such as 'mb'; 'long' renders labels such as 'megabytes'. */
|
|
998
|
+
unitDisplay?: "short" | "long";
|
|
999
|
+
/** Language tag (such as en-US or de-DE) used to format the number.
|
|
1000
|
+
Defaults to document.documentElement.lang or the runtime default. */
|
|
1001
|
+
locale?: string | undefined;
|
|
1002
|
+
/** Pad fraction output to at least this many digits. */
|
|
1003
|
+
minimumFractionDigits?: number | undefined;
|
|
1004
|
+
/** Round fraction output to at most this many digits. Defaults to two effective digits after the decimal point. */
|
|
1005
|
+
maximumFractionDigits?: number | undefined;
|
|
1006
|
+
};
|
|
1007
|
+
|
|
982
1008
|
type FormatDatetimeProps = {
|
|
983
1009
|
/** Preset date formatting style: 'full' | 'long' | 'medium' | 'short'.
|
|
984
1010
|
Preset styles take precedence over granular date and time part options. */
|
|
@@ -4386,7 +4412,7 @@ export type CustomElements = {
|
|
|
4386
4412
|
"nve-dialog-header": DefineComponent<DialogHeaderProps>;
|
|
4387
4413
|
|
|
4388
4414
|
/**
|
|
4389
|
-
* Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow.
|
|
4415
|
+
* Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow.
|
|
4390
4416
|
* ---
|
|
4391
4417
|
*
|
|
4392
4418
|
*
|
|
@@ -4500,7 +4526,7 @@ export type CustomElements = {
|
|
|
4500
4526
|
"nve-drawer-header": DefineComponent<DrawerHeaderProps>;
|
|
4501
4527
|
|
|
4502
4528
|
/**
|
|
4503
|
-
*
|
|
4529
|
+
* A drawer displays content separate from the rest of the page, such as notifications, navigation, and settings.
|
|
4504
4530
|
* ---
|
|
4505
4531
|
*
|
|
4506
4532
|
*
|
|
@@ -4580,13 +4606,13 @@ export type CustomElements = {
|
|
|
4580
4606
|
"nve-dropdown-header": DefineComponent<DropdownHeaderProps>;
|
|
4581
4607
|
|
|
4582
4608
|
/**
|
|
4583
|
-
* Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls.
|
|
4609
|
+
* Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls.
|
|
4584
4610
|
* ---
|
|
4585
4611
|
*
|
|
4586
4612
|
*
|
|
4587
4613
|
* ### **Events:**
|
|
4588
|
-
* - **beforetoggle** - Dispatched on a popover just before showing or hiding.
|
|
4589
|
-
* - **toggle** - Dispatched on a popover element just after showing or hiding.
|
|
4614
|
+
* - **beforetoggle** - Dispatched on a popover just before showing or hiding.
|
|
4615
|
+
* - **toggle** - Dispatched on a popover element just after showing or hiding.
|
|
4590
4616
|
* - **open** - Dispatched when the dropdown opens.
|
|
4591
4617
|
* - **close** - Dispatched when the dropdown closes.
|
|
4592
4618
|
*
|
|
@@ -4682,6 +4708,16 @@ export type CustomElements = {
|
|
|
4682
4708
|
*/
|
|
4683
4709
|
"nve-file": DefineComponent<FileProps>;
|
|
4684
4710
|
|
|
4711
|
+
/**
|
|
4712
|
+
* Formats a byte count as localized, human-readable decimal or binary units.
|
|
4713
|
+
* ---
|
|
4714
|
+
*
|
|
4715
|
+
*
|
|
4716
|
+
* ### **Slots:**
|
|
4717
|
+
* - _default_ - Numeric byte count to format (such as 1048576). Serves as fallback before hydration.
|
|
4718
|
+
*/
|
|
4719
|
+
"nve-format-bytes": DefineComponent<FormatBytesProps>;
|
|
4720
|
+
|
|
4685
4721
|
/**
|
|
4686
4722
|
* Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element.
|
|
4687
4723
|
* Granular options (weekday, year, month, day, hour, minute, second) mirror the Intl.DateTimeFormat API. 'numeric' omits zero-padding, '2-digit' zero-pads.
|
|
@@ -5159,7 +5195,7 @@ export type CustomElements = {
|
|
|
5159
5195
|
"nve-notification-group": DefineComponent<NotificationGroupProps>;
|
|
5160
5196
|
|
|
5161
5197
|
/**
|
|
5162
|
-
* Displays real time updates without interrupting the user's workflow to communicate an important message or status.
|
|
5198
|
+
* Displays real time updates without interrupting the user's workflow to communicate an important message or status.
|
|
5163
5199
|
* ---
|
|
5164
5200
|
*
|
|
5165
5201
|
*
|
|
@@ -5328,6 +5364,7 @@ export type CustomElements = {
|
|
|
5328
5364
|
* - **--border-radius** - undefined _(default: undefined)_
|
|
5329
5365
|
* - **--box-shadow** - undefined _(default: undefined)_
|
|
5330
5366
|
* - **--min-height** - undefined _(default: undefined)_
|
|
5367
|
+
* - **--gap** - Vertical gap spacing between main content items _(default: undefined)_
|
|
5331
5368
|
*/
|
|
5332
5369
|
"nve-page": DefineComponent<PageProps>;
|
|
5333
5370
|
|
|
@@ -6143,7 +6180,7 @@ export type CustomElements = {
|
|
|
6143
6180
|
"nve-time": DefineComponent<TimeProps>;
|
|
6144
6181
|
|
|
6145
6182
|
/**
|
|
6146
|
-
* A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them.
|
|
6183
|
+
* A contextual popup that displays a status. Toasts are [triggered](https://w3c.github.io/aria/#tooltip) by clicking, focusing, or tapping an element and cannot have interactive elements within them.
|
|
6147
6184
|
* ---
|
|
6148
6185
|
*
|
|
6149
6186
|
*
|
|
@@ -6264,7 +6301,7 @@ export type CustomElements = {
|
|
|
6264
6301
|
"nve-toolbar": DefineComponent<ToolbarProps>;
|
|
6265
6302
|
|
|
6266
6303
|
/**
|
|
6267
|
-
* A contextual popup that displays a plaintext description.
|
|
6304
|
+
* A contextual popup that displays a plaintext description. Trigger tooltips by hovering, focusing, or tapping an element and cannot have interactive elements within them.
|
|
6268
6305
|
* ---
|
|
6269
6306
|
*
|
|
6270
6307
|
*
|