@nvidia-elements/core 0.0.10 → 0.0.11
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 +12 -0
- package/dist/accordion/accordion.examples.json +11 -11
- package/dist/accordion/accordion2.js +4 -4
- package/dist/alert/alert-group2.js +1 -1
- package/dist/alert/alert.examples.json +12 -12
- package/dist/alert/alert2.js +1 -1
- package/dist/avatar/avatar-group2.js +1 -1
- package/dist/avatar/avatar.examples.json +6 -6
- package/dist/avatar/avatar2.js +1 -1
- package/dist/badge/badge.examples.json +12 -12
- package/dist/badge/badge2.js +1 -1
- package/dist/breadcrumb/breadcrumb.examples.json +3 -3
- package/dist/breadcrumb/breadcrumb2.js +1 -1
- package/dist/bundles/index.js +3 -3
- package/dist/button/button.examples.json +24 -24
- package/dist/button/button2.js +1 -1
- package/dist/button-group/button-group.examples.json +11 -11
- package/dist/button-group/button-group2.js +1 -1
- package/dist/card/card.examples.json +10 -10
- package/dist/card/card2.js +4 -4
- package/dist/chat-message/chat-message.examples.json +7 -7
- package/dist/chat-message/chat-message2.js +1 -1
- package/dist/checkbox/checkbox-group2.js +1 -1
- package/dist/checkbox/checkbox.examples.json +7 -7
- package/dist/checkbox/checkbox2.js +1 -1
- package/dist/color/color.examples.json +4 -4
- package/dist/color/color2.js +1 -1
- package/dist/combobox/combobox.examples.json +24 -24
- package/dist/combobox/combobox2.js +1 -1
- package/dist/copy-button/copy-button.examples.json +9 -9
- package/dist/copy-button/copy-button2.js +1 -1
- package/dist/custom-elements.json +13 -71
- package/dist/date/date.examples.json +7 -7
- package/dist/date/date2.js +1 -1
- package/dist/datetime/datetime.examples.json +4 -4
- 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.examples.json +21 -21
- package/dist/dialog/dialog2.js +1 -1
- package/dist/divider/divider.examples.json +5 -5
- package/dist/divider/divider2.js +1 -1
- package/dist/dot/dot.examples.json +5 -5
- 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.examples.json +13 -13
- 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/dropdown.examples.json +14 -14
- package/dist/dropdown/dropdown2.js +1 -1
- package/dist/dropdown-group/dropdown-group.examples.json +4 -4
- package/dist/dropdown-group/dropdown-group.js +1 -1
- package/dist/dropzone/dropzone.examples.json +3 -3
- package/dist/dropzone/dropzone2.js +1 -1
- package/dist/file/file.examples.json +3 -3
- package/dist/file/file2.js +1 -1
- package/dist/format-datetime/format-datetime.examples.json +9 -9
- package/dist/format-datetime/format-datetime2.js +1 -1
- package/dist/format-relative-time/format-relative-time.examples.json +7 -7
- package/dist/format-relative-time/format-relative-time2.js +1 -1
- package/dist/forms/actions.examples.json +3 -3
- package/dist/forms/control/control.examples.json +11 -11
- 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.json +8 -8
- package/dist/forms/validation.examples.json +5 -5
- 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.json +43 -43
- package/dist/grid/grid2.js +1 -1
- package/dist/grid/header/header2.js +2 -2
- package/dist/grid/header/header2.js.map +1 -1
- package/dist/grid/placeholder/placeholder2.js +1 -1
- package/dist/grid/row/row2.js +1 -1
- package/dist/icon/icon.examples.json +8 -8
- package/dist/icon/icon2.js +2 -2
- package/dist/icon-button/icon-button.examples.json +13 -13
- package/dist/icon-button/icon-button2.js +1 -1
- package/dist/index.js +1 -1
- package/dist/input/input-group.examples.json +2 -2
- package/dist/input/input-group2.js +1 -1
- package/dist/input/input.examples.json +8 -8
- package/dist/input/input2.js +1 -1
- package/dist/internal/controllers/i18n.controller.examples.json +1 -1
- package/dist/internal/controllers/keynav-grid.controller.examples.json +2 -2
- package/dist/internal/controllers/keynav-grid.controller.js +15 -7
- package/dist/internal/controllers/keynav-grid.controller.js.map +1 -1
- package/dist/internal/controllers/keynav-list.controller.examples.json +4 -4
- package/dist/internal/controllers/keynav-list.controller.js +11 -5
- package/dist/internal/controllers/keynav-list.controller.js.map +1 -1
- package/dist/internal/controllers/popover.examples.json +8 -8
- package/dist/internal/controllers/type-button.controller.examples.json +1 -1
- package/dist/internal/controllers/type-popover.controller.examples.json +2 -2
- package/dist/internal/controllers/type-touch.controller.examples.json +1 -1
- package/dist/internal/services/global.service.js +1 -1
- package/dist/logo/logo.examples.json +6 -6
- package/dist/logo/logo2.js +1 -1
- package/dist/menu/menu-item2.js +1 -1
- package/dist/menu/menu.examples.json +15 -15
- package/dist/menu/menu2.js +1 -1
- package/dist/month/month.examples.json +4 -4
- package/dist/month/month2.js +1 -1
- package/dist/notification/notification-group2.js +1 -1
- package/dist/notification/notification.examples.json +15 -15
- 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 +36 -34
- package/dist/page/page2.js +1 -1
- package/dist/page-header/page-header.examples.json +9 -9
- package/dist/page-header/page-header2.js +1 -1
- package/dist/page-loader/page-loader.examples.json +2 -2
- package/dist/page-loader/page-loader2.js +1 -1
- package/dist/pagination/pagination.examples.json +16 -16
- package/dist/pagination/pagination2.js +1 -1
- package/dist/panel/panel.examples.json +7 -7
- package/dist/panel/panel2.js +4 -4
- package/dist/password/password.examples.json +3 -3
- package/dist/password/password2.js +1 -1
- package/dist/preferences-input/preferences-input.examples.json +3 -3
- package/dist/preferences-input/preferences-input2.js +1 -1
- package/dist/progress-bar/progress-bar.examples.json +8 -8
- package/dist/progress-bar/progress-bar2.js +1 -1
- package/dist/progress-ring/progress-ring.examples.json +8 -8
- package/dist/progress-ring/progress-ring2.js +1 -1
- package/dist/progressive-filter-chip/progressive-filter-chip.examples.json +7 -7
- package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
- package/dist/pulse/pulse.examples.json +4 -4
- package/dist/pulse/pulse2.js +1 -1
- package/dist/radio/radio-group2.js +1 -1
- package/dist/radio/radio.examples.json +5 -5
- package/dist/radio/radio2.js +1 -1
- package/dist/range/range.examples.json +9 -9
- package/dist/range/range2.js +1 -1
- package/dist/resize-handle/resize-handle.examples.json +7 -7
- package/dist/resize-handle/resize-handle2.js +1 -1
- package/dist/search/search.examples.json +5 -5
- package/dist/search/search2.js +1 -1
- package/dist/select/select.examples.json +18 -18
- package/dist/select/select2.js +1 -1
- package/dist/skeleton/skeleton.examples.json +4 -4
- package/dist/skeleton/skeleton2.js +1 -1
- package/dist/sort-button/sort-button.examples.json +3 -3
- package/dist/sort-button/sort-button2.js +1 -1
- package/dist/sparkline/sparkline.examples.json +13 -13
- package/dist/sparkline/sparkline.utils.d.ts +26 -5
- package/dist/sparkline/sparkline.utils.js +30 -30
- package/dist/sparkline/sparkline.utils.js.map +1 -1
- package/dist/sparkline/sparkline2.js +21 -6
- package/dist/sparkline/sparkline2.js.map +1 -1
- package/dist/star-rating/star-rating.examples.json +4 -4
- package/dist/star-rating/star-rating2.js +1 -1
- package/dist/steps/steps.examples.json +5 -5
- package/dist/steps/steps2.js +2 -2
- package/dist/switch/switch-group2.js +1 -1
- package/dist/switch/switch.examples.json +7 -7
- package/dist/switch/switch2.js +1 -1
- package/dist/tabs/tabs-group2.js +9 -6
- package/dist/tabs/tabs-group2.js.map +1 -1
- package/dist/tabs/tabs.examples.json +14 -14
- package/dist/tabs/tabs2.js +2 -2
- package/dist/tag/tag.examples.json +8 -8
- package/dist/tag/tag2.js +1 -1
- package/dist/textarea/textarea.examples.json +5 -5
- package/dist/textarea/textarea2.js +1 -1
- package/dist/time/time.examples.json +4 -4
- package/dist/time/time2.js +1 -1
- package/dist/toast/toast.examples.json +11 -11
- package/dist/toast/toast2.js +1 -1
- package/dist/toggletip/toggletip-footer2.js +1 -1
- package/dist/toggletip/toggletip-header2.js +1 -1
- package/dist/toggletip/toggletip.examples.json +12 -12
- package/dist/toggletip/toggletip2.js +1 -1
- package/dist/toolbar/toolbar.examples.json +8 -8
- package/dist/toolbar/toolbar2.js +1 -1
- package/dist/tooltip/tooltip.examples.json +22 -22
- package/dist/tooltip/tooltip2.js +1 -1
- package/dist/tree/tree-node2.js +1 -1
- package/dist/tree/tree.examples.json +13 -13
- package/dist/tree/tree2.js +1 -1
- package/dist/week/week.examples.json +5 -5
- package/dist/week/week2.js +1 -1
- package/package.json +3 -3
|
@@ -48068,24 +48068,12 @@
|
|
|
48068
48068
|
}
|
|
48069
48069
|
},
|
|
48070
48070
|
{
|
|
48071
|
-
"name": "
|
|
48072
|
-
"
|
|
48073
|
-
"type": {
|
|
48074
|
-
"text": "number",
|
|
48075
|
-
"_sourceAliases": []
|
|
48076
|
-
}
|
|
48077
|
-
},
|
|
48078
|
-
{
|
|
48079
|
-
"name": "explicitMax",
|
|
48080
|
-
"optional": true,
|
|
48071
|
+
"name": "options",
|
|
48072
|
+
"default": "{}",
|
|
48081
48073
|
"type": {
|
|
48082
|
-
"text": "number",
|
|
48074
|
+
"text": "{ explicitMin?: number; explicitMax?: number; includeZero?: boolean }",
|
|
48083
48075
|
"_sourceAliases": []
|
|
48084
48076
|
}
|
|
48085
|
-
},
|
|
48086
|
-
{
|
|
48087
|
-
"name": "includeZero",
|
|
48088
|
-
"default": "false"
|
|
48089
48077
|
}
|
|
48090
48078
|
]
|
|
48091
48079
|
},
|
|
@@ -48106,16 +48094,9 @@
|
|
|
48106
48094
|
}
|
|
48107
48095
|
},
|
|
48108
48096
|
{
|
|
48109
|
-
"name": "
|
|
48097
|
+
"name": "range",
|
|
48110
48098
|
"type": {
|
|
48111
|
-
"text": "number",
|
|
48112
|
-
"_sourceAliases": []
|
|
48113
|
-
}
|
|
48114
|
-
},
|
|
48115
|
-
{
|
|
48116
|
-
"name": "max",
|
|
48117
|
-
"type": {
|
|
48118
|
-
"text": "number",
|
|
48099
|
+
"text": "{ min: number; max: number }",
|
|
48119
48100
|
"_sourceAliases": []
|
|
48120
48101
|
}
|
|
48121
48102
|
},
|
|
@@ -48142,29 +48123,18 @@
|
|
|
48142
48123
|
}
|
|
48143
48124
|
},
|
|
48144
48125
|
{
|
|
48145
|
-
"name": "
|
|
48126
|
+
"name": "range",
|
|
48146
48127
|
"type": {
|
|
48147
|
-
"text": "number",
|
|
48128
|
+
"text": "{ min: number; max: number }",
|
|
48148
48129
|
"_sourceAliases": []
|
|
48149
48130
|
}
|
|
48150
48131
|
},
|
|
48151
48132
|
{
|
|
48152
|
-
"name": "
|
|
48133
|
+
"name": "view",
|
|
48153
48134
|
"type": {
|
|
48154
|
-
"text": "number",
|
|
48135
|
+
"text": "{ width: number; height?: number }",
|
|
48155
48136
|
"_sourceAliases": []
|
|
48156
48137
|
}
|
|
48157
|
-
},
|
|
48158
|
-
{
|
|
48159
|
-
"name": "viewWidth",
|
|
48160
|
-
"type": {
|
|
48161
|
-
"text": "number",
|
|
48162
|
-
"_sourceAliases": []
|
|
48163
|
-
}
|
|
48164
|
-
},
|
|
48165
|
-
{
|
|
48166
|
-
"name": "viewHeight",
|
|
48167
|
-
"default": "VIEW_HEIGHT"
|
|
48168
48138
|
}
|
|
48169
48139
|
]
|
|
48170
48140
|
},
|
|
@@ -48185,30 +48155,9 @@
|
|
|
48185
48155
|
}
|
|
48186
48156
|
},
|
|
48187
48157
|
{
|
|
48188
|
-
"name": "
|
|
48189
|
-
"type": {
|
|
48190
|
-
"text": "boolean",
|
|
48191
|
-
"_sourceAliases": []
|
|
48192
|
-
}
|
|
48193
|
-
},
|
|
48194
|
-
{
|
|
48195
|
-
"name": "denoteLast",
|
|
48196
|
-
"type": {
|
|
48197
|
-
"text": "boolean",
|
|
48198
|
-
"_sourceAliases": []
|
|
48199
|
-
}
|
|
48200
|
-
},
|
|
48201
|
-
{
|
|
48202
|
-
"name": "denoteMin",
|
|
48158
|
+
"name": "denote",
|
|
48203
48159
|
"type": {
|
|
48204
|
-
"text": "boolean",
|
|
48205
|
-
"_sourceAliases": []
|
|
48206
|
-
}
|
|
48207
|
-
},
|
|
48208
|
-
{
|
|
48209
|
-
"name": "denoteMax",
|
|
48210
|
-
"type": {
|
|
48211
|
-
"text": "boolean",
|
|
48160
|
+
"text": "{ first: boolean; last: boolean; min: boolean; max: boolean }",
|
|
48212
48161
|
"_sourceAliases": []
|
|
48213
48162
|
}
|
|
48214
48163
|
}
|
|
@@ -48353,16 +48302,9 @@
|
|
|
48353
48302
|
}
|
|
48354
48303
|
},
|
|
48355
48304
|
{
|
|
48356
|
-
"name": "
|
|
48357
|
-
"type": {
|
|
48358
|
-
"text": "number",
|
|
48359
|
-
"_sourceAliases": []
|
|
48360
|
-
}
|
|
48361
|
-
},
|
|
48362
|
-
{
|
|
48363
|
-
"name": "height",
|
|
48305
|
+
"name": "dimensions",
|
|
48364
48306
|
"type": {
|
|
48365
|
-
"text": "number",
|
|
48307
|
+
"text": "{ width: number; height: number }",
|
|
48366
48308
|
"_sourceAliases": []
|
|
48367
48309
|
}
|
|
48368
48310
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"entrypoint": "@nvidia-elements/core/date/date.examples.json",
|
|
4
4
|
"items": [
|
|
5
5
|
{
|
|
6
|
-
"id": "
|
|
6
|
+
"id": "date",
|
|
7
7
|
"name": "Default",
|
|
8
8
|
"template": "<nve-date>\n <label>date</label>\n <input type=\"date\" />\n <nve-control-message>message</nve-control-message>\n</nve-date>\n",
|
|
9
9
|
"summary": "Basic date picker input with label and message for selecting calendar dates.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"tags": []
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"id": "
|
|
15
|
+
"id": "date-datalist",
|
|
16
16
|
"name": "Datalist",
|
|
17
17
|
"template": "<nve-date>\n <label>label</label>\n <input type=\"date\" />\n <nve-control-message>message</nve-control-message>\n <datalist>\n <option value=\"2018-07-22\"></option>\n <option value=\"2018-01-01\"></option>\n <option value=\"2018-12-31\"></option>\n </datalist>\n</nve-date>\n",
|
|
18
18
|
"summary": "Date picker with datalist providing suggested date options for quick selection from predefined dates.",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"tags": []
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"id": "
|
|
24
|
+
"id": "date-vertical",
|
|
25
25
|
"name": "Vertical",
|
|
26
26
|
"template": "<div nve-layout=\"column gap:lg align:stretch\">\n <nve-date>\n <label>label</label>\n <input type=\"date\" />\n <nve-control-message>message</nve-control-message>\n </nve-date>\n <nve-date>\n <label>disabled</label>\n <input type=\"date\" disabled />\n <nve-control-message>message</nve-control-message>\n </nve-date>\n <nve-date>\n <label>success</label>\n <input type=\"date\" />\n <nve-control-message status=\"success\">message</nve-control-message>\n </nve-date>\n <nve-date>\n <label>error</label>\n <input type=\"date\" />\n <nve-control-message status=\"error\">message</nve-control-message>\n </nve-date>\n</div>\n",
|
|
27
27
|
"summary": "Date pickers with vertical layout including validation states for disabled, success, and error.",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"id": "
|
|
35
|
+
"id": "date-horizontal",
|
|
36
36
|
"name": "Horizontal",
|
|
37
37
|
"template": "<div nve-layout=\"column gap:lg align:stretch\">\n <nve-date layout=\"horizontal\">\n <label>label</label>\n <input type=\"date\" />\n <nve-control-message>message</nve-control-message>\n </nve-date>\n <nve-date layout=\"horizontal\">\n <label>disabled</label>\n <input type=\"date\" disabled />\n <nve-control-message>message</nve-control-message>\n </nve-date>\n <nve-date layout=\"horizontal\">\n <label>success</label>\n <input type=\"date\" />\n <nve-control-message status=\"success\">message</nve-control-message>\n </nve-date>\n <nve-date layout=\"horizontal\">\n <label>error</label>\n <input type=\"date\" />\n <nve-control-message status=\"error\">message</nve-control-message>\n </nve-date>\n</div>\n",
|
|
38
38
|
"summary": "Date pickers with horizontal layout showing validation states for inline forms and compact layouts.",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
]
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"id": "
|
|
46
|
+
"id": "date-range",
|
|
47
47
|
"name": "Range",
|
|
48
48
|
"template": "<nve-input-group>\n <label>date range</label>\n <nve-date>\n <input type=\"date\" aria-label=\"start date\" value=\"2018-07-22\" />\n </nve-date>\n <nve-date>\n <input type=\"date\" aria-label=\"end date\" value=\"2022-07-22\" />\n </nve-date>\n <nve-control-message>message</nve-control-message>\n</nve-input-group>\n",
|
|
49
49
|
"summary": "Date range input with start and end date pickers for selecting time periods and date intervals.",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"tags": []
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"id": "
|
|
55
|
+
"id": "date-types",
|
|
56
56
|
"name": "Types",
|
|
57
57
|
"template": "<div nve-layout=\"column gap:lg align:stretch\">\n <nve-date layout=\"horizontal\">\n <label>date label</label>\n <input type=\"date\" />\n <nve-control-message>message</nve-control-message>\n </nve-date>\n <nve-datetime layout=\"horizontal\">\n <label>datetime label</label>\n <input type=\"datetime-local\" />\n <nve-control-message>message</nve-control-message>\n </nve-datetime>\n <nve-month layout=\"horizontal\">\n <label>month label</label>\n <input type=\"month\" />\n <nve-control-message>message</nve-control-message>\n </nve-month>\n <nve-week layout=\"horizontal\">\n <label>week label</label>\n <input type=\"week\" />\n <nve-control-message>message</nve-control-message>\n </nve-week>\n <nve-time layout=\"horizontal\">\n <label>time label</label>\n <input type=\"time\" />\n <nve-control-message>message</nve-control-message>\n </nve-time>\n <nve-input-group layout=\"horizontal\">\n <label>date range</label>\n <nve-date>\n <input type=\"date\" aria-label=\"start date\" value=\"2018-07-22\" />\n </nve-date>\n <nve-date>\n <input type=\"date\" aria-label=\"end date\" value=\"2022-07-22\" />\n </nve-date>\n <nve-control-message>message</nve-control-message>\n </nve-input-group>\n</div>\n",
|
|
58
58
|
"summary": "Collection of temporal input types including date, datetime, month, week, time, and date range pickers.",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"tags": []
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
"id": "
|
|
64
|
+
"id": "date-fit-text",
|
|
65
65
|
"name": "FitText",
|
|
66
66
|
"template": "<nve-date fit-text>\n <label>date</label>\n <input type=\"date\" value=\"2017-06-01\" />\n <nve-control-message>message</nve-control-message>\n</nve-date>\n",
|
|
67
67
|
"summary": "Date picker with fit-text styling that adjusts width to match the selected date value for compact displays.",
|
package/dist/date/date2.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"entrypoint": "@nvidia-elements/core/datetime/datetime.examples.json",
|
|
4
4
|
"items": [
|
|
5
5
|
{
|
|
6
|
-
"id": "
|
|
6
|
+
"id": "datetime",
|
|
7
7
|
"name": "Default",
|
|
8
8
|
"template": "<nve-datetime>\n <label>date</label>\n <input type=\"datetime-local\" />\n <nve-control-message>message</nve-control-message>\n</nve-datetime>\n",
|
|
9
9
|
"summary": "Basic datetime picker input with label and message for selecting both date and time values.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"tags": []
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"id": "
|
|
15
|
+
"id": "datetime-datalist",
|
|
16
16
|
"name": "Datalist",
|
|
17
17
|
"template": "<nve-datetime>\n <label>label</label>\n <input type=\"datetime-local\" />\n <nve-control-message>message</nve-control-message>\n <datalist>\n <option value=\"2018-06-07T00:00\"></option>\n <option value=\"2018-06-12T19:30\"></option>\n <option value=\"2018-06-14T00:00\"></option>\n </datalist>\n</nve-datetime>\n",
|
|
18
18
|
"summary": "Datetime picker with datalist providing suggested datetime options for quick selection from predefined values.",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"tags": []
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"id": "
|
|
24
|
+
"id": "datetime-vertical",
|
|
25
25
|
"name": "Vertical",
|
|
26
26
|
"template": "<div nve-layout=\"column gap:lg align:stretch\">\n <nve-datetime>\n <label>label</label>\n <input type=\"datetime-local\" />\n <nve-control-message>message</nve-control-message>\n </nve-datetime>\n <nve-datetime>\n <label>disabled</label>\n <input type=\"datetime-local\" disabled />\n <nve-control-message>message</nve-control-message>\n </nve-datetime>\n <nve-datetime>\n <label>success</label>\n <input type=\"datetime-local\" />\n <nve-control-message status=\"success\">message</nve-control-message>\n </nve-datetime>\n <nve-datetime>\n <label>error</label>\n <input type=\"datetime-local\" />\n <nve-control-message status=\"error\">message</nve-control-message>\n </nve-datetime>\n</div>\n",
|
|
27
27
|
"summary": "Datetime pickers with vertical layout including validation states for disabled, success, and error.",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"id": "
|
|
35
|
+
"id": "datetime-horizontal",
|
|
36
36
|
"name": "Horizontal",
|
|
37
37
|
"template": "<div nve-layout=\"column gap:lg align:stretch\">\n <nve-datetime layout=\"horizontal\">\n <label>label</label>\n <input type=\"datetime-local\" />\n <nve-control-message>message</nve-control-message>\n </nve-datetime>\n <nve-datetime layout=\"horizontal\">\n <label>disabled</label>\n <input type=\"datetime-local\" disabled />\n <nve-control-message>message</nve-control-message>\n </nve-datetime>\n <nve-datetime layout=\"horizontal\">\n <label>success</label>\n <input type=\"datetime-local\" />\n <nve-control-message status=\"success\">message</nve-control-message>\n </nve-datetime>\n <nve-datetime layout=\"horizontal\">\n <label>error</label>\n <input type=\"datetime-local\" />\n <nve-control-message status=\"error\">message</nve-control-message>\n </nve-datetime>\n</div>\n",
|
|
38
38
|
"summary": "Datetime pickers with horizontal layout showing validation states for inline forms and compact layouts.",
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"entrypoint": "@nvidia-elements/core/dialog/dialog.examples.json",
|
|
4
4
|
"items": [
|
|
5
5
|
{
|
|
6
|
-
"id": "
|
|
6
|
+
"id": "dialog",
|
|
7
7
|
"name": "Default",
|
|
8
8
|
"template": "<nve-button popovertarget=\"dialog\">button</nve-button>\n<nve-dialog id=\"dialog\" modal closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n</nve-dialog>\n",
|
|
9
9
|
"summary": "Basic modal dialog for focused user interactions. Use dialogs for confirmations, simple forms, or important information that requires user attention before continuing, creating a modal overlay that blocks interaction with the underlying page until dismissed.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"tags": []
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"id": "
|
|
15
|
+
"id": "dialog-invoker-command",
|
|
16
16
|
"name": "InvokerCommand",
|
|
17
17
|
"template": "<nve-button commandfor=\"dialog\" command=\"toggle-popover\">toggle popover</nve-button>\n<nve-dialog id=\"dialog\" modal closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n</nve-dialog>\n",
|
|
18
18
|
"summary": "Use the `commandfor` and `command` attributes to trigger custom Invoker Commands, such as toggling a dialog.",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"tags": []
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
"id": "
|
|
24
|
+
"id": "dialog-events",
|
|
25
25
|
"name": "Events",
|
|
26
26
|
"template": "<nve-dialog id=\"dialog\" modal closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n</nve-dialog>\n<nve-button popovertarget=\"dialog\">button</nve-button>\n<script type=\"module\">\n const dialog = document.querySelector(\"nve-dialog\");\n dialog.addEventListener(\"beforetoggle\", () => console.log(\"beforetoggle\"));\n dialog.addEventListener(\"toggle\", () => console.log(\"toggle\"));\n dialog.addEventListener(\"open\", () => console.log(\"open\"));\n dialog.addEventListener(\"close\", () => console.log(\"close\"));\n</script>\n",
|
|
27
27
|
"summary": "Dialog with event listeners for state change tracking. Use dialog events (beforetoggle, toggle, open, close) to trigger side effects like loading data on open, cleaning up resources on close, or preventing closure based on validation state.",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"id": "
|
|
35
|
+
"id": "dialog-visual",
|
|
36
36
|
"name": "Visual",
|
|
37
37
|
"template": "<nve-dialog closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n <nve-dialog-footer>\n <nve-button>button</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n",
|
|
38
38
|
"summary": "Dialog with header, content, and footer structure for complete user interactions. Use the footer for action buttons, organizing the dialog into clear sections that guide users through the information hierarchy and toward decision-making.",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tags": []
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"id": "
|
|
44
|
+
"id": "dialog-content",
|
|
45
45
|
"name": "Content",
|
|
46
46
|
"template": "<nve-dialog closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n <nve-dialog-footer>\n <nve-button>cancel</nve-button>\n <nve-button interaction=\"emphasis\">action</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n",
|
|
47
47
|
"summary": "Dialog with primary and secondary actions in footer. Use cancel + emphasized action pattern for confirmations or decisions where you need to present a choice, with emphasis on the primary action guiding users toward the preferred or expected path.",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
]
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
"id": "
|
|
55
|
+
"id": "dialog-small",
|
|
56
56
|
"name": "Small",
|
|
57
57
|
"template": "<nve-dialog size=\"sm\" closable>\n <h3 nve-text=\"heading\">Small</h3>\n <p nve-text=\"body\">some text content in a small dialog</p>\n</nve-dialog>\n",
|
|
58
58
|
"summary": "Small dialog size for brief confirmations or single-field inputs. Use size=\"sm\" for simple yes/no confirmations, quick edits, or minimal interactions that don't require significant screen space, keeping the interface uncluttered.",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
]
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
"id": "
|
|
66
|
+
"id": "dialog-medium",
|
|
67
67
|
"name": "Medium",
|
|
68
68
|
"template": "<nve-dialog size=\"md\" closable>\n <h3 nve-text=\"heading\">Medium</h3>\n <p nve-text=\"body\">some text content in a medium dialog</p>\n</nve-dialog>\n",
|
|
69
69
|
"summary": "Medium dialog size (default) for standard forms and content. Use size=\"md\" for typical dialogs containing short forms (3-5 fields), moderate content, or standard user interactions that need balanced space without overwhelming the interface.",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
]
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
"id": "
|
|
77
|
+
"id": "dialog-large",
|
|
78
78
|
"name": "Large",
|
|
79
79
|
"template": "<nve-dialog size=\"lg\" closable>\n <h3 nve-text=\"heading\">Large</h3>\n <p nve-text=\"body\">some text content in a large dialog</p>\n</nve-dialog>\n",
|
|
80
80
|
"summary": "Large dialog size for complex forms or extensive content. Use size=\"lg\" for multi-section forms, detailed settings panels, or content-rich interactions where users need more space to work comfortably, but consider using a drawer for large content areas.",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
]
|
|
86
86
|
},
|
|
87
87
|
{
|
|
88
|
-
"id": "
|
|
88
|
+
"id": "dialog-text-wrap",
|
|
89
89
|
"name": "TextWrap",
|
|
90
90
|
"template": "<nve-dialog closable>\n <h3 nve-text=\"heading\">Text Wrap</h3>\n <p nve-text=\"body\">\n Some text wrapped content in a small dialog. Some text wrapped content in a small dialog. Some text wrapped content\n in a small dialog. Some text wrapped content in a small dialog. Some text wrapped content in a small dialog. Some\n text wrapped content in a small dialog. Some text wrapped content in a small dialog. Some text wrapped content in a\n small dialog. Some text wrapped content in a small dialog. Some text wrapped content in a small dialog. Some text\n wrapped content in a small dialog. Some text wrapped content in a small dialog.\n </p>\n</nve-dialog>\n",
|
|
91
91
|
"summary": "Dialog with text wrapping behavior, where content adapts to dialog constraints and maintains readability in limited space.",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
]
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
|
-
"id": "
|
|
99
|
+
"id": "dialog-non-closable",
|
|
100
100
|
"name": "NonClosable",
|
|
101
101
|
"template": "<nve-button popovertarget=\"dialog\">open</nve-button>\n<nve-dialog id=\"dialog\" modal>\n <h3 nve-text=\"heading\">Non-Closable Dialog</h3>\n <p nve-text=\"body\">Clicking the background to dismiss will not work here</p>\n <nve-dialog-footer>\n <nve-button popovertarget=\"dialog\" popovertargetaction=\"hide\">cancel</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n",
|
|
102
102
|
"summary": "Non-closable dialog requiring explicit action through buttons. Use non-closable dialogs sparingly for critical decisions (like irreversible deletions) or required acknowledgments where you must ensure users make a conscious choice rather than accidentally dismissing the dialog.",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
]
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
"id": "
|
|
110
|
+
"id": "dialog-alignment",
|
|
111
111
|
"name": "Alignment",
|
|
112
112
|
"template": "<nve-dialog>center</nve-dialog>\n<nve-dialog position=\"top\">top center</nve-dialog>\n<nve-dialog position=\"top\" alignment=\"start\">top start</nve-dialog>\n<nve-dialog position=\"top\">top center</nve-dialog>\n<nve-dialog position=\"top\" alignment=\"end\">top end</nve-dialog>\n<nve-dialog position=\"right\" alignment=\"start\">right start</nve-dialog>\n<nve-dialog position=\"right\">right center</nve-dialog>\n<nve-dialog position=\"right\" alignment=\"end\">right end</nve-dialog>\n<nve-dialog position=\"bottom\" alignment=\"start\">bottom start</nve-dialog>\n<nve-dialog position=\"bottom\">bottom center</nve-dialog>\n<nve-dialog position=\"bottom\" alignment=\"end\">bottom end</nve-dialog>\n<nve-dialog position=\"left\" alignment=\"start\">left start</nve-dialog>\n<nve-dialog position=\"left\">left center</nve-dialog>\n<nve-dialog position=\"left\" alignment=\"end\">left end</nve-dialog>\n",
|
|
113
113
|
"summary": "Dialog positioning and alignment options for contextual placement. While center positioning is standard, use edge positioning (top/bottom/left/right) for contextually relevant dialogs that relate to specific interface regions or when working with limited vertical space.",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
]
|
|
119
119
|
},
|
|
120
120
|
{
|
|
121
|
-
"id": "
|
|
121
|
+
"id": "dialog-position",
|
|
122
122
|
"name": "Position",
|
|
123
123
|
"template": "<style>\n body {\n min-height: 200vh;\n }\n</style>\n<nve-dialog size=\"sm\" position=\"bottom\" alignment=\"end\" closable>\n <h3 nve-text=\"heading\">Position</h3>\n <p nve-text=\"body\">some text content in a small dialog</p>\n</nve-dialog>\n",
|
|
124
124
|
"summary": "Specific dialog positioning example, with placement in optimal locations for user interaction and visual hierarchy.",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
]
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
|
-
"id": "
|
|
132
|
+
"id": "dialog-legacy-trigger",
|
|
133
133
|
"name": "LegacyTrigger",
|
|
134
134
|
"template": "<nve-button id=\"dialog-btn\">open</nve-button>\n<nve-dialog trigger=\"dialog-btn\" closable modal hidden>\n <h3 nve-text=\"heading\">Title</h3>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n <nve-accordion behavior-expand>\n <nve-accordion-header>\n <h2 nve-text=\"heading xs medium\" slot=\"prefix\">Heading</h2>\n </nve-accordion-header>\n <nve-accordion-content\n >Adjust workspace preferences including theme, notification settings, and default project configurations to\n customize your experience.</nve-accordion-content\n >\n </nve-accordion>\n</nve-dialog>\n<script type=\"module\">\n const dialog = document.querySelector(\"nve-dialog\");\n dialog.addEventListener(\"open\", (e) => {\n console.log(e);\n dialog.hidden = false;\n });\n dialog.addEventListener(\"close\", (e) => {\n console.log(e);\n dialog.hidden = true;\n });\n</script>\n",
|
|
135
135
|
"summary": "Legacy trigger mechanism for dialog opening, with backward compatibility and alternative interaction patterns for dialog activation.",
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
]
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
|
-
"id": "
|
|
144
|
+
"id": "dialog-legacy-behavior-trigger",
|
|
145
145
|
"name": "LegacyBehaviorTrigger",
|
|
146
146
|
"template": "<nve-button id=\"dialog-btn\">open</nve-button>\n<nve-dialog trigger=\"dialog-btn\" behavior-trigger closable modal hidden>\n <h3 nve-text=\"heading\">Title</h3>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n <nve-accordion behavior-expand>\n <nve-accordion-header>\n <h2 nve-text=\"heading xs medium\" slot=\"prefix\">Heading</h2>\n </nve-accordion-header>\n <nve-accordion-content\n >Adjust workspace preferences including theme, notification settings, and default project configurations to\n customize your experience.</nve-accordion-content\n >\n </nve-accordion>\n</nve-dialog>\n",
|
|
147
147
|
"summary": "Legacy behavior trigger for dialog management, showing traditional dialog control patterns and event handling for dialog lifecycle.",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
]
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
|
-
"id": "
|
|
156
|
+
"id": "dialog-shadow-root",
|
|
157
157
|
"name": "ShadowRoot",
|
|
158
158
|
"template": "<dialog-test-shadow-root>\n <template shadowrootmode=\"open\">\n <style>\n :host {\n box-sizing: border-box;\n display: block;\n margin: 25vh auto;\n width: 400px;\n height: 400px;\n background: red;\n visibility: visible !important;\n }\n </style>\n <nve-dialog size=\"sm\">center</nve-dialog>\n <nve-dialog size=\"sm\" position=\"top\">top center</nve-dialog>\n <nve-dialog size=\"sm\" position=\"top\" alignment=\"start\">top start</nve-dialog>\n <nve-dialog size=\"sm\" position=\"top\" alignment=\"end\">top end</nve-dialog>\n <nve-dialog size=\"sm\" position=\"right\" alignment=\"start\">right start</nve-dialog>\n <nve-dialog size=\"sm\" position=\"right\">right center</nve-dialog>\n <nve-dialog size=\"sm\" position=\"right\" alignment=\"end\">right end</nve-dialog>\n <nve-dialog size=\"sm\" position=\"bottom\" alignment=\"start\">bottom start</nve-dialog>\n <nve-dialog size=\"sm\" position=\"bottom\">bottom center</nve-dialog>\n <nve-dialog size=\"sm\" position=\"bottom\" alignment=\"end\">bottom end</nve-dialog>\n <nve-dialog size=\"sm\" position=\"left\" alignment=\"start\">left start</nve-dialog>\n <nve-dialog size=\"sm\" position=\"left\">left center</nve-dialog>\n <nve-dialog size=\"sm\" position=\"left\" alignment=\"end\">left end</nve-dialog>\n </template>\n</dialog-test-shadow-root>\n",
|
|
159
159
|
"summary": "Dialog functionality within shadow DOM, with proper dialog behavior in encapsulated component environments and custom elements.",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
]
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
|
-
"id": "
|
|
167
|
+
"id": "dialog-scroll-content",
|
|
168
168
|
"name": "ScrollContent",
|
|
169
169
|
"template": "<nve-dialog id=\"dialog\" modal closable style=\"height: 400px\">\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\" style=\"height: 600px\">some tall content</p>\n <p nve-text=\"body\">some overflow content</p>\n <nve-dialog-footer>\n <nve-button id=\"cancel-btn\">cancel</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n",
|
|
170
170
|
"summary": "Dialog with scrollable content while keeping header and footer fixed. Use scrollable content areas for dialogs with variable or lengthy content (like terms of service or detailed descriptions) while keeping action buttons always visible, ensuring users can complete the task without scrolling to find buttons.",
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
]
|
|
176
176
|
},
|
|
177
177
|
{
|
|
178
|
-
"id": "
|
|
178
|
+
"id": "dialog-inert-modal",
|
|
179
179
|
"name": "InertModal",
|
|
180
180
|
"template": "<style>\n body {\n display: block !important;\n padding: 24px;\n }\n</style>\n<div>\n <button popovertarget=\"popover\">btn</button>\n <div>\n <button popovertarget=\"popover\">btn</button>\n <nve-dialog id=\"popover\" modal>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <button popovertarget=\"dropdown\">button</button>\n <nve-dropdown id=\"dropdown\">\n dropdown content\n <button>btn</button>\n </nve-dropdown>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n <button>btn</button>\n <button>btn</button>\n </nve-dialog>\n </div>\n</div>\n<button popovertarget=\"popover\">btn</button><br />\n<button popovertarget=\"popover\">btn</button>\n<div>\n <button popovertarget=\"popover\">btn</button>\n <div>\n <button popovertarget=\"popover\">btn</button>\n <div>\n <button popovertarget=\"popover\">btn</button>\n </div>\n </div>\n</div>\n",
|
|
181
181
|
"summary": "Modal dialog with inert behavior, including proper focus management and accessibility compliance for modal overlays and user interaction.",
|
|
@@ -186,7 +186,7 @@
|
|
|
186
186
|
]
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
|
-
"id": "
|
|
189
|
+
"id": "dialog-container-styles",
|
|
190
190
|
"name": "ContainerStyles",
|
|
191
191
|
"template": "<nve-dialog id=\"slots-dialog\" closable popover=\"manual\" position=\"top\">\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">default</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">default dialog with header and footer components</p>\n <nve-dialog-footer>\n <nve-button>button</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n<nve-dialog id=\"content-dialog\" closable popover=\"manual\" position=\"right\">\n <h3 nve-text=\"heading semibold\">title</h3>\n <p nve-text=\"body\">dialog with only content and no header or footer components</p>\n <nve-button>button</nve-button>\n</nve-dialog>\n<nve-dialog id=\"custom-dialog\" closable style=\"--padding: 0\" position=\"bottom\">\n <h3 nve-text=\"heading semibold\">title</h3>\n <p nve-text=\"body\">dialog with only content and no header or footer components and --padding set to 0</p>\n <nve-button>button</nve-button>\n</nve-dialog>\n<nve-dialog id=\"custom-slots\" closable style=\"--padding: 48px\" position=\"left\">\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">dialog with header and footer components with --padding set to 48px</p>\n <nve-dialog-footer>\n <nve-button>button</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n",
|
|
192
192
|
"summary": "Dialog with different container styles, including custom padding and layout options.",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
]
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
|
-
"id": "
|
|
200
|
+
"id": "dialog-max-height",
|
|
201
201
|
"name": "MaxHeight",
|
|
202
202
|
"template": "<nve-dialog id=\"dialog\" modal closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">some overflow content</p>\n <p nve-text=\"body\" style=\"min-height: 1000px\">some overflow content</p>\n <nve-button>button</nve-button>\n <nve-dialog-footer>\n <nve-button id=\"cancel-btn\">cancel</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n",
|
|
203
203
|
"summary": "Dialog with overflow content, including max-height constraints and a scrollable content area.",
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
]
|
|
209
209
|
},
|
|
210
210
|
{
|
|
211
|
-
"id": "
|
|
211
|
+
"id": "dialog-legacy-dom-creation",
|
|
212
212
|
"name": "LegacyDOMCreation",
|
|
213
213
|
"template": "<nve-button id=\"dialog-btn\">button</nve-button>\n<script type=\"module\">\n import \"@nvidia-elements/core/dialog/define.js\";\n import \"@nvidia-elements/core/button/define.js\";\n document.querySelector(\"#dialog-btn\").addEventListener(\"click\", () => {\n const dialog = document.createElement(\"nve-dialog\");\n dialog.id = \"dialog-dom-creation\";\n dialog.modal = true;\n dialog.closable = true;\n\n dialog.addEventListener(\n \"close\",\n () => {\n document.body.removeChild(dialog);\n },\n { once: true },\n );\n document.body.appendChild(dialog);\n });\n</script>\n",
|
|
214
214
|
"summary": "Legacy DOM Creation",
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
]
|
|
221
221
|
},
|
|
222
222
|
{
|
|
223
|
-
"id": "
|
|
223
|
+
"id": "dialog-center-alignment",
|
|
224
224
|
"name": "CenterAlignment",
|
|
225
225
|
"template": "<style>\n body {\n min-height: 200vh;\n }\n</style>\n<nve-button popovertarget=\"dialog\">button</nve-button>\n<nve-dialog id=\"dialog\" closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">title</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">some text content in a closable dialog</p>\n <nve-select>\n <select aria-label=\"select\">\n <option>one</option>\n <option>two</option>\n <option>three</option>\n </select>\n </nve-select>\n</nve-dialog>\n",
|
|
226
226
|
"summary": "Center alignment with anchor body",
|
package/dist/dialog/dialog2.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"entrypoint": "@nvidia-elements/core/divider/divider.examples.json",
|
|
4
4
|
"items": [
|
|
5
5
|
{
|
|
6
|
-
"id": "
|
|
6
|
+
"id": "divider",
|
|
7
7
|
"name": "Default",
|
|
8
8
|
"template": "<nve-divider></nve-divider>\n",
|
|
9
9
|
"summary": "Basic horizontal divider for separating content sections with a subtle line.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"tags": []
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"id": "
|
|
15
|
+
"id": "divider-emphasis",
|
|
16
16
|
"name": "Emphasis",
|
|
17
17
|
"template": "<nve-divider style=\"--color: var(--nve-ref-border-color-emphasis)\"></nve-divider>\n",
|
|
18
18
|
"summary": "Divider with emphasis color styling for stronger visual separation between content sections.",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"id": "
|
|
26
|
+
"id": "divider-muted",
|
|
27
27
|
"name": "Muted",
|
|
28
28
|
"template": "<nve-divider style=\"--color: var(--nve-ref-border-color-muted)\"></nve-divider>\n",
|
|
29
29
|
"summary": "Divider with muted color styling for subtle, low-contrast separation in dense layouts.",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
]
|
|
35
35
|
},
|
|
36
36
|
{
|
|
37
|
-
"id": "
|
|
37
|
+
"id": "divider-vertical",
|
|
38
38
|
"name": "Vertical",
|
|
39
39
|
"template": "<div nve-layout=\"row gap:sm align:vertical-center\" style=\"height: 50px\">\n <nve-divider orientation=\"vertical\"></nve-divider>\n <nve-icon-button icon-name=\"information-circle-stroke\"></nve-icon-button>\n <nve-icon-button icon-name=\"more-actions\"></nve-icon-button>\n</div>\n",
|
|
40
40
|
"summary": "Vertical divider for separating horizontally arranged elements like toolbar buttons or inline actions.",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"tags": []
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
|
-
"id": "
|
|
46
|
+
"id": "divider-rounded",
|
|
47
47
|
"name": "Rounded",
|
|
48
48
|
"template": "<nve-divider\n style=\"\n --size: var(--nve-ref-border-width-xl);\n --border-radius: var(--nve-ref-border-radius-xs);\n --color: var(--nve-sys-accent-secondary-background);\n \"\n></nve-divider>\n",
|
|
49
49
|
"summary": "Divider with custom rounded styling, thicker border, and accent color for decorative separation.",
|
package/dist/divider/divider2.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"entrypoint": "@nvidia-elements/core/dot/dot.examples.json",
|
|
4
4
|
"items": [
|
|
5
5
|
{
|
|
6
|
-
"id": "
|
|
6
|
+
"id": "dot",
|
|
7
7
|
"name": "Default",
|
|
8
8
|
"template": "<nve-dot status=\"starting\"></nve-dot>\n",
|
|
9
9
|
"summary": "Basic dot component with status indicator, providing a simple visual cue for process states and system status.",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"tags": []
|
|
13
13
|
},
|
|
14
14
|
{
|
|
15
|
-
"id": "
|
|
15
|
+
"id": "dot-size",
|
|
16
16
|
"name": "Size",
|
|
17
17
|
"template": "<div nve-layout=\"row gap:sm\">\n <nve-dot size=\"sm\">10</nve-dot>\n <nve-dot>10</nve-dot>\n <nve-dot size=\"lg\">10</nve-dot>\n</div>\n<br />\n<div nve-layout=\"row gap:lg\">\n <nve-dot size=\"sm\"></nve-dot>\n <nve-dot></nve-dot>\n <nve-dot size=\"lg\"></nve-dot>\n</div>\n",
|
|
18
18
|
"summary": "Different dot sizes to accommodate layout contexts from compact indicators to prominent status displays.",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
]
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
"id": "
|
|
26
|
+
"id": "dot-support-status",
|
|
27
27
|
"name": "SupportStatus",
|
|
28
28
|
"template": "<div nve-layout=\"row gap:md\">\n <nve-dot></nve-dot>\n <nve-dot status=\"accent\"></nve-dot>\n <nve-dot status=\"warning\"></nve-dot>\n <nve-dot status=\"success\"></nve-dot>\n <nve-dot status=\"danger\"></nve-dot>\n</div>\n",
|
|
29
29
|
"summary": "Semantic color variations for general status communication, enabling clear visual distinction of different states and priorities.",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"tags": []
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"id": "
|
|
35
|
+
"id": "dot-number",
|
|
36
36
|
"name": "Number",
|
|
37
37
|
"template": "<div nve-layout=\"row gap:md\">\n <nve-dot>10</nve-dot>\n <nve-dot status=\"accent\" aria-label=\"10 notifications\">10</nve-dot>\n <nve-dot status=\"warning\" aria-label=\"10 notifications\">10</nve-dot>\n <nve-dot status=\"success\" aria-label=\"10 notifications\">10</nve-dot>\n <nve-dot status=\"danger\" aria-label=\"10 notifications\">10</nve-dot>\n</div>\n",
|
|
38
38
|
"summary": "Dot with numeric content for notification badges and counters, providing clear visual indicators of quantity or alerts.",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"tags": []
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
"id": "
|
|
44
|
+
"id": "dot-status",
|
|
45
45
|
"name": "Status",
|
|
46
46
|
"template": "<div nve-layout=\"row gap:md\">\n <nve-dot status=\"scheduled\"></nve-dot>\n <nve-dot status=\"queued\"></nve-dot>\n <nve-dot status=\"pending\"></nve-dot>\n <nve-dot status=\"starting\"></nve-dot>\n <nve-dot status=\"running\"></nve-dot>\n <nve-dot status=\"restarting\"></nve-dot>\n <nve-dot status=\"stopping\"></nve-dot>\n <nve-dot status=\"finished\"></nve-dot>\n <nve-dot status=\"failed\"></nve-dot>\n <nve-dot status=\"unknown\"></nve-dot>\n</div>\n",
|
|
47
47
|
"summary": "Comprehensive process status indicators for system operations, providing clear visual feedback on job states and workflow progress.",
|
package/dist/dot/dot2.js
CHANGED