@nvidia-elements/core 0.1.4 → 0.2.1

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.
Files changed (119) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/accordion/accordion2.js +4 -4
  3. package/dist/alert/alert-group2.js +1 -1
  4. package/dist/alert/alert2.js +1 -1
  5. package/dist/avatar/avatar-group2.js +1 -1
  6. package/dist/avatar/avatar2.js +1 -1
  7. package/dist/badge/badge2.js +1 -1
  8. package/dist/breadcrumb/breadcrumb2.js +1 -1
  9. package/dist/bundles/index.js +2 -2
  10. package/dist/button/button2.js +1 -1
  11. package/dist/button-group/button-group2.js +1 -1
  12. package/dist/card/card2.js +4 -4
  13. package/dist/chat-message/chat-message2.js +1 -1
  14. package/dist/checkbox/checkbox-group2.js +1 -1
  15. package/dist/checkbox/checkbox2.js +1 -1
  16. package/dist/color/color2.js +1 -1
  17. package/dist/combobox/combobox.d.ts +7 -1
  18. package/dist/combobox/combobox.examples.js.map +1 -1
  19. package/dist/combobox/combobox.examples.json +21 -1
  20. package/dist/combobox/combobox.js +1 -1
  21. package/dist/combobox/combobox.js.map +1 -1
  22. package/dist/combobox/combobox2.js +67 -58
  23. package/dist/combobox/combobox2.js.map +1 -1
  24. package/dist/copy-button/copy-button2.js +1 -1
  25. package/dist/custom-elements-jsx.d.ts +5 -1
  26. package/dist/custom-elements-vue.d.ts +5 -1
  27. package/dist/custom-elements.json +46 -9
  28. package/dist/data.html.json +4 -4
  29. package/dist/data.snippets.json +32 -32
  30. package/dist/date/date2.js +1 -1
  31. package/dist/datetime/datetime2.js +1 -1
  32. package/dist/dialog/dialog-footer2.js +1 -1
  33. package/dist/dialog/dialog-header2.js +1 -1
  34. package/dist/dialog/dialog2.js +1 -1
  35. package/dist/divider/divider2.js +1 -1
  36. package/dist/dot/dot2.js +1 -1
  37. package/dist/drawer/drawer-content2.js +1 -1
  38. package/dist/drawer/drawer-footer2.js +1 -1
  39. package/dist/drawer/drawer-header2.js +1 -1
  40. package/dist/drawer/drawer2.js +1 -1
  41. package/dist/dropdown/dropdown-footer2.js +1 -1
  42. package/dist/dropdown/dropdown-header2.js +1 -1
  43. package/dist/dropdown/dropdown2.js +1 -1
  44. package/dist/dropdown-group/dropdown-group.js +1 -1
  45. package/dist/dropzone/dropzone2.js +1 -1
  46. package/dist/file/file2.js +1 -1
  47. package/dist/format-datetime/format-datetime2.js +1 -1
  48. package/dist/format-number/format-number2.js +1 -1
  49. package/dist/format-relative-time/format-relative-time2.js +1 -1
  50. package/dist/forms/control/control2.js +1 -1
  51. package/dist/forms/control-group/control-group2.js +1 -1
  52. package/dist/forms/control-message/control-message2.js +1 -1
  53. package/dist/grid/cell/cell2.js +1 -1
  54. package/dist/grid/column/column2.js +1 -1
  55. package/dist/grid/footer/footer2.js +1 -1
  56. package/dist/grid/grid2.js +1 -1
  57. package/dist/grid/header/header2.js +1 -1
  58. package/dist/grid/placeholder/placeholder2.js +1 -1
  59. package/dist/grid/row/row2.js +1 -1
  60. package/dist/icon/icon2.js +2 -2
  61. package/dist/icon-button/icon-button2.js +1 -1
  62. package/dist/index.js +1 -1
  63. package/dist/input/input-group2.js +1 -1
  64. package/dist/input/input2.js +1 -1
  65. package/dist/internal/controllers/type-native-popover.controller.js +18 -15
  66. package/dist/internal/controllers/type-native-popover.controller.js.map +1 -1
  67. package/dist/internal/controllers/type-touch.controller.js +1 -0
  68. package/dist/internal/controllers/type-touch.controller.js.map +1 -1
  69. package/dist/internal/services/global.service.js +1 -1
  70. package/dist/logo/logo2.js +1 -1
  71. package/dist/menu/menu-item2.js +1 -1
  72. package/dist/menu/menu2.js +1 -1
  73. package/dist/month/month2.js +1 -1
  74. package/dist/notification/notification-group2.js +1 -1
  75. package/dist/notification/notification2.js +1 -1
  76. package/dist/page/page-panel/page-panel-content2.js +1 -1
  77. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  78. package/dist/page/page-panel/page-panel-header2.js +1 -1
  79. package/dist/page/page-panel/page-panel2.js +1 -1
  80. package/dist/page/page2.js +1 -1
  81. package/dist/page-header/page-header2.js +1 -1
  82. package/dist/page-loader/page-loader2.js +1 -1
  83. package/dist/pagination/pagination2.js +1 -1
  84. package/dist/panel/panel2.js +4 -4
  85. package/dist/password/password2.js +1 -1
  86. package/dist/preferences-input/preferences-input2.js +2 -1
  87. package/dist/preferences-input/preferences-input2.js.map +1 -1
  88. package/dist/progress-bar/progress-bar2.js +1 -1
  89. package/dist/progress-ring/progress-ring2.js +1 -1
  90. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  91. package/dist/pulse/pulse2.js +1 -1
  92. package/dist/radio/radio-group2.js +1 -1
  93. package/dist/radio/radio2.js +1 -1
  94. package/dist/range/range2.js +1 -1
  95. package/dist/resize-handle/resize-handle2.js +1 -1
  96. package/dist/search/search2.js +1 -1
  97. package/dist/select/select2.js +1 -1
  98. package/dist/skeleton/skeleton2.js +1 -1
  99. package/dist/sort-button/sort-button2.js +1 -1
  100. package/dist/sparkline/sparkline2.js +1 -1
  101. package/dist/star-rating/star-rating2.js +1 -1
  102. package/dist/steps/steps2.js +2 -2
  103. package/dist/switch/switch-group2.js +1 -1
  104. package/dist/switch/switch2.js +1 -1
  105. package/dist/tabs/tabs-group2.js +1 -1
  106. package/dist/tabs/tabs2.js +2 -2
  107. package/dist/tag/tag2.js +1 -1
  108. package/dist/textarea/textarea2.js +1 -1
  109. package/dist/time/time2.js +1 -1
  110. package/dist/toast/toast2.js +1 -1
  111. package/dist/toggletip/toggletip-footer2.js +1 -1
  112. package/dist/toggletip/toggletip-header2.js +1 -1
  113. package/dist/toggletip/toggletip2.js +1 -1
  114. package/dist/toolbar/toolbar2.js +1 -1
  115. package/dist/tooltip/tooltip2.js +1 -1
  116. package/dist/tree/tree-node2.js +1 -1
  117. package/dist/tree/tree2.js +1 -1
  118. package/dist/week/week2.js +1 -1
  119. package/package.json +3 -3
@@ -865,9 +865,9 @@
865
865
  "values": [{ "name": "flat" }]
866
866
  },
867
867
  {
868
- "name": "notags",
869
- "description": "Disable rendering of inline tags for many-item select",
870
- "values": []
868
+ "name": "tag-layout",
869
+ "description": "Manage inline tag rendering for many-item select",
870
+ "values": [{ "name": "hidden" }, { "name": "wrap" }]
871
871
  },
872
872
  {
873
873
  "name": "behavior-create",
@@ -923,7 +923,7 @@
923
923
  },
924
924
  {
925
925
  "name": "markdown",
926
- "url": "## nve-combobox\n\nAn editable combobox with autocomplete behavior and selection support.\n\n### Example\n\n```html\n<nve-combobox>\n <label>label</label>\n <input type=\"search\" />\n <datalist>\n <option value=\"status\"></option>\n <option value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n </datalist>\n <nve-control-message>message</nve-control-message>\n</nve-combobox>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/combobox/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for an input and a datalist/select element |\n| prefix-icon | `string` | slot for icon before the input |\n| footer | `string` | slot for dropdown footer content |\n| label | `string` | Label element |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| container | `'flat'` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. |\n| notags | `boolean` | Disable rendering of inline tags for many-item select |\n| behaviorCreate (behavior-create) | `boolean` | Enable creation of new options when the input value doesn't match any existing option. Dispatches a `create` event with `{ value }` detail. |\n| reset | | Resets control value to initial attribute value and clears any active validation rules. |\n| selectAll | | Select all options provided |\n| status | `'warning' \\| 'error' \\| 'success' \\| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. |\n| layout | `\\| 'vertical'\n \\| 'vertical-inline'\n \\| 'horizontal'\n \\| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. |\n| fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) |\n| fitContent (fit-content) | `boolean` | Sets the input to match native default content block |\n| i18n | | Enables updating internal string values for internationalization. |\n| prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. |\n| nveControl | `string` | |\n| showPicker | | |\n\n### Events\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| create | `CustomEvent` | Fires when the user confirms a value that doesn't match any existing option and the `behavior-create` attribute exists. `detail: { value }`. |\n| scroll | `CustomEvent` | Fires when the user scrolls the dropdown option list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`. |\n| reset | `CustomEvent` | |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --scroll-height | `string` | |\n| --padding | `string` | [MDN](https://mdn.dev/CSS/padding) |\n| --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) |\n| --height | `string` | [MDN](https://mdn.dev/CSS/height) |\n| --background | `string` | [MDN](https://mdn.dev/CSS/background) |\n| --color | `string` | [MDN](https://mdn.dev/CSS/color) |\n| --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) |\n| --border | `string` | [MDN](https://mdn.dev/CSS/border) |\n| --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) |\n| --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) |\n| --width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --border-color | `string` | [MDN](https://mdn.dev/CSS/border-color) |\n| --max-height | `string` | [MDN](https://mdn.dev/CSS/max-height) |\n| --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) |\n| --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) |\n| --label-color | `string` | [MDN](https://mdn.dev/CSS/color) |\n| --label-width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) |\n| --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) |\n| --control-width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --control-height | `string` | [MDN](https://mdn.dev/CSS/height) |"
926
+ "url": "## nve-combobox\n\nAn editable combobox with autocomplete behavior and selection support.\n\n### Example\n\n```html\n<nve-combobox>\n <label>label</label>\n <input type=\"search\" />\n <datalist>\n <option value=\"status\"></option>\n <option value=\"priority\"></option>\n <option value=\"date\"></option>\n <option value=\"session\"></option>\n <option value=\"configuration\"></option>\n <option value=\"contains\"></option>\n </datalist>\n <nve-control-message>message</nve-control-message>\n</nve-combobox>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/combobox/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for an input and a datalist/select element |\n| prefix-icon | `string` | slot for icon before the input |\n| footer | `string` | slot for dropdown footer content |\n| label | `string` | Label element |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| container | `'flat'` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. |\n| tagLayout (tag-layout) | `'hidden' \\| 'wrap'` | Manage inline tag rendering for many-item select |\n| behaviorCreate (behavior-create) | `boolean` | Enable creation of new options when the input value doesn't match any existing option. Dispatches a `create` event with `{ value }` detail. |\n| reset | | Resets control value to initial attribute value and clears any active validation rules. |\n| selectAll | | Select all options provided |\n| status | `'warning' \\| 'error' \\| 'success' \\| 'disabled'` | Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions. - `warning` Indicates cautionary actions that require careful consideration before proceeding. - `success` Represents positive outcomes, confirmations, or constructive actions. |\n| layout | `\\| 'vertical'\n \\| 'vertical-inline'\n \\| 'horizontal'\n \\| 'horizontal-inline'` | Controls the directional arrangement and spacing behavior of the element's content. - `vertical` Arranges content in a vertical stack with block-level spacing. - `vertical-inline` Arranges content vertically with compact inline spacing for dense layouts. - `horizontal` Arranges content in a horizontal row with block-level spacing. - `horizontal-inline` Arranges content horizontally with compact inline spacing. |\n| fitText (fit-text) | `boolean` | Sets the input to match the width of the active text content of the control value. Only applicable to vertical input box type controls (input, select) |\n| fitContent (fit-content) | `boolean` | Sets the input to match native default content block |\n| i18n | | Enables updating internal string values for internationalization. |\n| prominence | `'muted'` | Controls the visual prominence to establish hierarchy and guide user attention. - `muted` Reduces visual weight for supporting content that should remain subtle and unobtrusive. |\n| nveControl | `string` | |\n| showPicker | | |\n\n### Events\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| create | `CustomEvent` | Fires when the user confirms a value that doesn't match any existing option and the `behavior-create` attribute exists. `detail: { value }`. |\n| scroll | `CustomEvent` | Fires when the user scrolls the dropdown option list. Throttled to one dispatch per animation frame. `detail: { scrollTop, scrollHeight, clientHeight }`. |\n| reset | `CustomEvent` | |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --scroll-height | `string` | |\n| --padding | `string` | [MDN](https://mdn.dev/CSS/padding) |\n| --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) |\n| --height | `string` | [MDN](https://mdn.dev/CSS/height) |\n| --background | `string` | [MDN](https://mdn.dev/CSS/background) |\n| --color | `string` | [MDN](https://mdn.dev/CSS/color) |\n| --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) |\n| --border | `string` | [MDN](https://mdn.dev/CSS/border) |\n| --cursor | `string` | [MDN](https://mdn.dev/CSS/cursor) |\n| --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) |\n| --width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --border-color | `string` | [MDN](https://mdn.dev/CSS/border-color) |\n| --max-height | `string` | [MDN](https://mdn.dev/CSS/max-height) |\n| --text-transform | `string` | [MDN](https://mdn.dev/CSS/text-transform) |\n| --accent-color | `string` | [MDN](https://mdn.dev/CSS/accent-color) |\n| --label-color | `string` | [MDN](https://mdn.dev/CSS/color) |\n| --label-width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --label-font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) |\n| --label-font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) |\n| --control-width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --control-height | `string` | [MDN](https://mdn.dev/CSS/height) |"
927
927
  }
928
928
  ]
929
929
  },
@@ -179,15 +179,6 @@
179
179
  "description": "Dropdown with checkbox select pattern",
180
180
  "body": "<nve-button id=\"btn\" nve-control>test suites <nve-icon name=\"caret\" direction=\"down\" size=\"sm\"></nve-icon></nve-button>\n\n<nve-dropdown anchor=\"btn\">\n <nve-checkbox-group style=\"width: 250px\">\n <label>${1:Test Suites}</label>\n\n <nve-checkbox>\n <label>${2:Local}</label>\n <input type=\"checkbox\">\n </nve-checkbox>\n\n <nve-checkbox>\n <label>${3:Nightly}</label>\n <input type=\"checkbox\" checked>\n </nve-checkbox>\n\n <nve-checkbox>\n <label>${4:Remote}</label>\n <input type=\"checkbox\">\n </nve-checkbox>\n </nve-checkbox-group>\n</nve-dropdown>\n$0\n"
181
181
  },
182
- "Dialog": {
183
- "srcFile": "dialog.snippets.html",
184
- "prefix": [
185
- "dialog"
186
- ],
187
- "type": "pattern",
188
- "description": "Dialog is a component that appears above main content. A modal dialog is used to display critical information that requires users attention.",
189
- "body": "<nve-dialog size=\"${6:md}\" closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">${1:Title}</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">${2:Content}</p>\n <nve-dialog-footer>\n <nve-button>${3:Cancel}</nve-button>\n <nve-button interaction=\"${4:emphasis}\">${5:OK}</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n$0\n"
190
- },
191
182
  "Card": {
192
183
  "srcFile": "card.snippets.html",
193
184
  "prefix": [
@@ -251,6 +242,33 @@
251
242
  "description": "Simple vertical button group with three icon buttons.",
252
243
  "body": "<nve-button-group orientation=\"vertical\">\n <nve-icon-button icon-name=\"${1:copy}\"></nve-icon-button>\n <nve-icon-button icon-name=\"${2:add-comment}\"></nve-icon-button>\n <nve-icon-button icon-name=\"${3:download}\"></nve-icon-button>\n</nve-button-group>\n"
253
244
  },
245
+ "Alert Group": {
246
+ "srcFile": "alert.snippets.html",
247
+ "prefix": [
248
+ "alert-group"
249
+ ],
250
+ "type": "pattern",
251
+ "description": "Alert group with two alerts.",
252
+ "body": "<nve-alert-group status=\"${1:accent}\" container=\"${2:flat}\" prominence=\"emphasis\">\n <nve-alert closable>${3:Alert Text}</nve-alert>\n <nve-alert closable>${4:Alert Text}</nve-alert>\n</nve-alert-group>\n$0\n"
253
+ },
254
+ "Alert with Action": {
255
+ "srcFile": "alert.snippets.html",
256
+ "prefix": [
257
+ "alert-action"
258
+ ],
259
+ "type": "pattern",
260
+ "description": "Alert with action button.",
261
+ "body": "<nve-alert-group status=\"${1:accent}\" container=\"${2:flat}\" prominence=\"emphasis\">\n <nve-alert> ${3:Alert Text} <nve-button slot=\"actions\" container=\"flat\">${4:OK!}</nve-button> </nve-alert>\n</nve-alert-group>\n$0\n"
262
+ },
263
+ "Multiline Alert ": {
264
+ "srcFile": "alert.snippets.html",
265
+ "prefix": [
266
+ "multiline-alert"
267
+ ],
268
+ "type": "pattern",
269
+ "description": "Alert text and preformatted code output.",
270
+ "body": "<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\">Failed to verify drives. <a href=\"#\" nve-text=\"link\">Check Status</a></p>\n <nve-divider style=\"--color: var(--nve-sys-text-muted-color)\"></nve-divider>\n <pre nve-text=\"code sm\" style=\"background: transparent !important; margin: 0;\">10: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\n </pre>\n </div>\n </nve-alert>\n</nve-alert-group>\n$0\n"
271
+ },
254
272
  "Accordion": {
255
273
  "srcFile": "accordion.snippets.html",
256
274
  "prefix": [
@@ -278,31 +296,13 @@
278
296
  "description": "Accordion group with two accordion children.",
279
297
  "body": "<nve-accordion-group behavior-expand-single container=\"${1:flat}\">\n <nve-accordion>\n <nve-accordion-header>\n <div slot=\"title\">${2:Title}</div>\n </nve-accordion-header>\n\n <nve-accordion-content> ${3:Content} </nve-accordion-content>\n </nve-accordion>\n\n <nve-accordion>\n <nve-accordion-header>\n <div slot=\"title\">${4:Title}</div>\n </nve-accordion-header>\n\n <nve-accordion-content> ${5:Content} </nve-accordion-content>\n </nve-accordion>\n\n <nve-accordion>\n <nve-accordion-header>\n <div slot=\"title\">${6:Title}</div>\n </nve-accordion-header>\n\n <nve-accordion-content> ${7:Content} </nve-accordion-content>\n </nve-accordion>\n</nve-accordion-group>\n$0\n"
280
298
  },
281
- "Alert Group": {
282
- "srcFile": "alert.snippets.html",
283
- "prefix": [
284
- "alert-group"
285
- ],
286
- "type": "pattern",
287
- "description": "Alert group with two alerts.",
288
- "body": "<nve-alert-group status=\"${1:accent}\" container=\"${2:flat}\" prominence=\"emphasis\">\n <nve-alert closable>${3:Alert Text}</nve-alert>\n <nve-alert closable>${4:Alert Text}</nve-alert>\n</nve-alert-group>\n$0\n"
289
- },
290
- "Alert with Action": {
291
- "srcFile": "alert.snippets.html",
292
- "prefix": [
293
- "alert-action"
294
- ],
295
- "type": "pattern",
296
- "description": "Alert with action button.",
297
- "body": "<nve-alert-group status=\"${1:accent}\" container=\"${2:flat}\" prominence=\"emphasis\">\n <nve-alert> ${3:Alert Text} <nve-button slot=\"actions\" container=\"flat\">${4:OK!}</nve-button> </nve-alert>\n</nve-alert-group>\n$0\n"
298
- },
299
- "Multiline Alert ": {
300
- "srcFile": "alert.snippets.html",
299
+ "Dialog": {
300
+ "srcFile": "dialog.snippets.html",
301
301
  "prefix": [
302
- "multiline-alert"
302
+ "dialog"
303
303
  ],
304
304
  "type": "pattern",
305
- "description": "Alert text and preformatted code output.",
306
- "body": "<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\">Failed to verify drives. <a href=\"#\" nve-text=\"link\">Check Status</a></p>\n <nve-divider style=\"--color: var(--nve-sys-text-muted-color)\"></nve-divider>\n <pre nve-text=\"code sm\" style=\"background: transparent !important; margin: 0;\">10: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\n </pre>\n </div>\n </nve-alert>\n</nve-alert-group>\n$0\n"
305
+ "description": "Dialog is a component that appears above main content. A modal dialog is used to display critical information that requires users attention.",
306
+ "body": "<nve-dialog size=\"${6:md}\" closable>\n <nve-dialog-header>\n <h3 nve-text=\"heading semibold\">${1:Title}</h3>\n </nve-dialog-header>\n <p nve-text=\"body\">${2:Content}</p>\n <nve-dialog-footer>\n <nve-button>${3:Cancel}</nve-button>\n <nve-button interaction=\"${4:emphasis}\">${5:OK}</nve-button>\n </nve-dialog-footer>\n</nve-dialog>\n$0\n"
307
307
  }
308
308
  }
@@ -19,7 +19,7 @@ var l = class extends r {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-date",
22
- version: "0.1.4"
22
+ version: "0.2.1"
23
23
  };
24
24
  }
25
25
  static {
@@ -19,7 +19,7 @@ var l = class extends r {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-datetime",
22
- version: "0.1.4"
22
+ version: "0.2.1"
23
23
  };
24
24
  }
25
25
  static {
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dialog-footer",
14
- version: "0.1.4",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dialog"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dialog-header",
14
- version: "0.1.4",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dialog"]
16
16
  };
17
17
  }
@@ -30,7 +30,7 @@ var h = class extends f {
30
30
  static {
31
31
  this.metadata = {
32
32
  tag: "nve-dialog",
33
- version: "0.1.4"
33
+ version: "0.2.1"
34
34
  };
35
35
  }
36
36
  static {
@@ -15,7 +15,7 @@ var s = class extends i {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-divider",
18
- version: "0.1.4"
18
+ version: "0.2.1"
19
19
  };
20
20
  }
21
21
  render() {
package/dist/dot/dot2.js CHANGED
@@ -16,7 +16,7 @@ var l = class extends o {
16
16
  static {
17
17
  this.metadata = {
18
18
  tag: "nve-dot",
19
- version: "0.1.4"
19
+ version: "0.2.1"
20
20
  };
21
21
  }
22
22
  render() {
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-drawer-content",
14
- version: "0.1.4",
14
+ version: "0.2.1",
15
15
  parents: ["nve-drawer"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-drawer-footer",
14
- version: "0.1.4",
14
+ version: "0.2.1",
15
15
  parents: ["nve-drawer"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-drawer-header",
14
- version: "0.1.4",
14
+ version: "0.2.1",
15
15
  parents: ["nve-drawer"]
16
16
  };
17
17
  }
@@ -30,7 +30,7 @@ var p = class extends u {
30
30
  static {
31
31
  this.metadata = {
32
32
  tag: "nve-drawer",
33
- version: "0.1.4"
33
+ version: "0.2.1"
34
34
  };
35
35
  }
36
36
  static {
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dropdown-footer",
14
- version: "0.1.4",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dropdown"]
16
16
  };
17
17
  }
@@ -11,7 +11,7 @@ var o = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-dropdown-header",
14
- version: "0.1.4",
14
+ version: "0.2.1",
15
15
  parents: ["nve-dropdown"]
16
16
  };
17
17
  }
@@ -21,7 +21,7 @@ var p = class extends l {
21
21
  static {
22
22
  this.metadata = {
23
23
  tag: "nve-dropdown",
24
- version: "0.1.4"
24
+ version: "0.2.1"
25
25
  };
26
26
  }
27
27
  static {
@@ -14,7 +14,7 @@ var d = class extends c {
14
14
  static {
15
15
  this.metadata = {
16
16
  tag: "nve-dropdown-group",
17
- version: "0.1.4",
17
+ version: "0.2.1",
18
18
  children: ["nve-dropdown"]
19
19
  };
20
20
  }
@@ -20,7 +20,7 @@ var g = class extends h(d) {
20
20
  static {
21
21
  this.metadata = {
22
22
  tag: "nve-dropzone",
23
- version: "0.1.4",
23
+ version: "0.2.1",
24
24
  validators: [l, c],
25
25
  valueSchema: {
26
26
  type: "array",
@@ -11,7 +11,7 @@ var a = class extends n {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-file",
14
- version: "0.1.4"
14
+ version: "0.2.1"
15
15
  };
16
16
  }
17
17
  connectedCallback() {
@@ -13,7 +13,7 @@ var c = class extends a {
13
13
  static {
14
14
  this.metadata = {
15
15
  tag: "nve-format-datetime",
16
- version: "0.1.4"
16
+ version: "0.2.1"
17
17
  };
18
18
  }
19
19
  get #e() {
@@ -29,7 +29,7 @@ var c = [
29
29
  static {
30
30
  this.metadata = {
31
31
  tag: "nve-format-number",
32
- version: "0.1.4"
32
+ version: "0.2.1"
33
33
  };
34
34
  }
35
35
  get #e() {
@@ -53,7 +53,7 @@ var c = {
53
53
  static {
54
54
  this.metadata = {
55
55
  tag: "nve-format-relative-time",
56
- version: "0.1.4"
56
+ version: "0.2.1"
57
57
  };
58
58
  }
59
59
  #e;
@@ -50,7 +50,7 @@ var C = class extends v {
50
50
  static {
51
51
  this.metadata = {
52
52
  tag: "nve-control",
53
- version: "0.1.4"
53
+ version: "0.2.1"
54
54
  };
55
55
  }
56
56
  render() {
@@ -24,7 +24,7 @@ var m = class extends d {
24
24
  static {
25
25
  this.metadata = {
26
26
  tag: "nve-control-group",
27
- version: "0.1.4"
27
+ version: "0.2.1"
28
28
  };
29
29
  }
30
30
  render() {
@@ -23,7 +23,7 @@ var l = {
23
23
  static {
24
24
  this.metadata = {
25
25
  tag: "nve-control-message",
26
- version: "0.1.4"
26
+ version: "0.2.1"
27
27
  };
28
28
  }
29
29
  static {
@@ -10,7 +10,7 @@ var a = class extends r {
10
10
  static {
11
11
  this.metadata = {
12
12
  tag: "nve-grid-cell",
13
- version: "0.1.4"
13
+ version: "0.2.1"
14
14
  };
15
15
  }
16
16
  render() {
@@ -13,7 +13,7 @@ var c = class n extends a {
13
13
  static {
14
14
  this.metadata = {
15
15
  tag: "nve-grid-column",
16
- version: "0.1.4"
16
+ version: "0.2.1"
17
17
  };
18
18
  }
19
19
  get #e() {
@@ -15,7 +15,7 @@ var s = class extends a {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-grid-footer",
18
- version: "0.1.4"
18
+ version: "0.2.1"
19
19
  };
20
20
  }
21
21
  static {
@@ -22,7 +22,7 @@ var v = class extends h {
22
22
  static {
23
23
  this.metadata = {
24
24
  tag: "nve-grid",
25
- version: "0.1.4",
25
+ version: "0.2.1",
26
26
  children: [
27
27
  u.metadata.tag,
28
28
  d.metadata.tag,
@@ -19,7 +19,7 @@ var m = class extends d {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-grid-header",
22
- version: "0.1.4",
22
+ version: "0.2.1",
23
23
  children: [c.metadata.tag]
24
24
  };
25
25
  }
@@ -10,7 +10,7 @@ var a = class extends r {
10
10
  static {
11
11
  this.metadata = {
12
12
  tag: "nve-grid-placeholder",
13
- version: "0.1.4"
13
+ version: "0.2.1"
14
14
  };
15
15
  }
16
16
  render() {
@@ -15,7 +15,7 @@ var u = class extends s {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-grid-row",
18
- version: "0.1.4",
18
+ version: "0.2.1",
19
19
  children: [a.metadata.tag]
20
20
  };
21
21
  }
@@ -16,7 +16,7 @@ var f = class e extends o {
16
16
  static {
17
17
  this.metadata = {
18
18
  tag: "nve-icon",
19
- version: "0.1.4"
19
+ version: "0.2.1"
20
20
  };
21
21
  }
22
22
  static {
@@ -86,7 +86,7 @@ n([l({
86
86
  })], f.prototype, "name", void 0), n([d()], f.prototype, "svg", void 0);
87
87
  function p(t) {
88
88
  if (typeof globalThis.customElements?.get == "function") {
89
- let n = e(t.metadata.version), r = e("0.1.4");
89
+ let n = e(t.metadata.version), r = e("0.2.1");
90
90
  n.minor <= r.minor && n.major <= r.major && (t._icons = {
91
91
  ...t._icons,
92
92
  ...i
@@ -15,7 +15,7 @@ var l = class extends a {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-icon-button",
18
- version: "0.1.4"
18
+ version: "0.2.1"
19
19
  };
20
20
  }
21
21
  static {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { getThemeTokens as e } from "./internal/utils/dom.js";
2
2
  import { I18nService as t } from "./internal/services/i18n.service.js";
3
3
  import { statusIcons as n } from "./internal/types/index.js";
4
4
  //#region src/index.ts
5
- var r = "0.1.4", i = "@nvidia-elements";
5
+ var r = "0.2.1", i = "@nvidia-elements";
6
6
  //#endregion
7
7
  export { t as I18nService, i as SCOPE, r as VERSION, e as getThemeTokens, n as statusIcons };
8
8
 
@@ -11,7 +11,7 @@ var a = class extends n {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-input-group",
14
- version: "0.1.4"
14
+ version: "0.2.1"
15
15
  };
16
16
  }
17
17
  async connectedCallback() {
@@ -14,7 +14,7 @@ var a = r, o = class extends n {
14
14
  static {
15
15
  this.metadata = {
16
16
  tag: "nve-input",
17
- version: "0.1.4"
17
+ version: "0.2.1"
18
18
  };
19
19
  }
20
20
  };
@@ -23,19 +23,19 @@ var c = class {
23
23
  };
24
24
  }
25
25
  async hostConnected() {
26
- i(this.host), this.host.popover = this.host.popoverType ?? null, await this.host.updateComplete, this.host.setAttribute("nve-popover", ""), this.#l(), this.#c(), this.#o(), this.host.inert = this.host.matches(":not(:popover-open)") && !!this.#e.length, this.host.addEventListener("beforetoggle", (e) => {
26
+ i(this.host), this.host.popover = this.host.popoverType ?? null, await this.host.updateComplete, this.host.setAttribute("nve-popover", ""), this.#u(), this.#l(), this.#s(), this.host.inert = this.host.matches(":not(:popover-open)") && !!this.#e.length, this.host.addEventListener("beforetoggle", (e) => {
27
27
  e.newState === "open" && this.host._internals.states.add("transition-start");
28
28
  }), this.host.addEventListener("toggle", (e) => {
29
- this.host.behaviorTrigger && (this.host.hidden = e.newState === "closed"), e.newState === "open" && this.host.closeTimeout && setTimeout(() => this.host.hidePopover(), this.host.closeTimeout), this.host.inert = this.host.matches(":not(:popover-open)"), this.host.modal && this.#u(e.newState === "open", e.target), this.host.dispatchEvent(new CustomEvent(e.newState === "open" && e.oldState !== "open" ? "open" : "close", {
29
+ this.host.behaviorTrigger && (this.host.hidden = e.newState === "closed"), e.newState === "open" && this.host.closeTimeout && setTimeout(() => this.host.hidePopover(), this.host.closeTimeout), e.newState === "closed" && this.#i(), this.host.inert = this.host.matches(":not(:popover-open)"), this.host.modal && this.#d(e.newState === "open", e.target), this.host.dispatchEvent(new CustomEvent(e.newState === "open" && e.oldState !== "open" ? "open" : "close", {
30
30
  bubbles: !0,
31
31
  composed: !0,
32
32
  detail: { trigger: e.source }
33
33
  }));
34
34
  }), this.host.addEventListener("command", ((e) => {
35
- e.command === "toggle-popover" && this.host.togglePopover({ source: e.source }), e.command === "hide-popover" && this.host.hidePopover(), e.command === "show-popover" && this.host.showPopover({ source: e.source });
35
+ e.command === "toggle-popover" && this.host.togglePopover({ source: e.source }), e.command === "hide-popover" && (this.host.hidePopover(), this.#i()), e.command === "show-popover" && this.host.showPopover({ source: e.source });
36
36
  })), this.host.addEventListener("interest", ((e) => {
37
37
  if (e.source?.localName.includes("-")) {
38
- let t = this.host.openDelay ?? this.#i();
38
+ let t = this.host.openDelay ?? this.#a();
39
39
  t ? this.#t = setTimeout(() => {
40
40
  this.host.isConnected && this.host.showPopover({ source: e.source });
41
41
  }, t) : this.host.showPopover({ source: e.source });
@@ -48,38 +48,41 @@ var c = class {
48
48
  #n = [];
49
49
  #r = null;
50
50
  async hostUpdated() {
51
- this.host.popover = this.host.popoverType ?? null, this.#l();
51
+ this.host.popover = this.host.popoverType ?? null, this.#u();
52
52
  }
53
53
  hostDisconnected() {
54
- this.#n.forEach((e) => e.disconnect()), this.#t &&= (clearTimeout(this.#t), null);
54
+ this.#n.forEach((e) => e.disconnect()), this.#i();
55
55
  }
56
56
  #i() {
57
+ this.#t &&= (clearTimeout(this.#t), null);
58
+ }
59
+ #a() {
57
60
  let e = getComputedStyle(this.host).interestDelayStart;
58
61
  if (!e) return 0;
59
62
  let t = parseFloat(e);
60
63
  return e.endsWith("ms") ? t : t * 1e3;
61
64
  }
62
- #a = !1;
63
- #o() {
65
+ #o = !1;
66
+ #s() {
64
67
  this.host.addEventListener("pointerdown", (e) => {
65
- this.host.modal && this.host.matches(":popover-open") && (this.#a = t(e, this.host));
68
+ this.host.modal && this.host.matches(":popover-open") && (this.#o = t(e, this.host));
66
69
  }), this.host.addEventListener("pointerup", (e) => {
67
- this.#a && this.host.popoverDismissible && this.host.modal && this.host.matches(":popover-open") && !s(this.host) && t(e, this.host) && this.host.hidePopover();
70
+ this.#o && this.host.popoverDismissible && this.host.modal && this.host.matches(":popover-open") && !s(this.host) && t(e, this.host) && this.host.hidePopover();
68
71
  });
69
72
  }
70
- get #s() {
73
+ get #c() {
71
74
  return this.host.trigger ? o(this.host, this.host.trigger) : null;
72
75
  }
73
- async #c() {
76
+ async #l() {
74
77
  await new Promise((e) => requestAnimationFrame(e)), this.#n.push(r(this.host, ["hidden"], () => {
75
78
  this.host.isConnected && !this.host.hidden && !this.host.matches(":popover-open") && this.host.showPopover(), this.host.isConnected && this.host.hidden && this.host.matches(":popover-open") && this.host.hidePopover();
76
79
  })), this.host.isConnected && !this.#e.length && !this.host.hidden && !this.host.matches(":popover-open") && (this.host.popover = "manual", this.host.showPopover());
77
80
  }
78
- #l() {
79
- let e = this.#s;
81
+ #u() {
82
+ let e = this.#c;
80
83
  this.#r && this.#r !== e && (this.#r.popoverTargetElement = null, this.#r.removeAttribute("popovertarget")), e && (this.host.popoverType === "hint" ? (e.addEventListener("mouseenter", () => this.host.showPopover({ source: e })), e.addEventListener("mouseleave", () => this.host.hidePopover()), e.addEventListener("focusout", () => this.host.hidePopover())) : (this.host.id = this.host.id ? this.host.id : n(), e.popoverTargetElement = this.host, e.setAttribute("popovertarget", this.host.id)), this.#r = e);
81
84
  }
82
- #u(t, n) {
85
+ #d(t, n) {
83
86
  t ? this.host.getRootNode().activeElement !== this.host && !this.host.shadowRoot.activeElement && e(this.host) : e(n);
84
87
  }
85
88
  };