@nvidia-elements/core 2.2.3 → 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.
Files changed (138) hide show
  1. package/CHANGELOG.md +11 -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/bundle.d.ts +2 -0
  10. package/dist/bundles/index.d.ts +60 -8
  11. package/dist/bundles/index.js +6 -6
  12. package/dist/button/button2.js +1 -1
  13. package/dist/button-group/button-group2.js +1 -1
  14. package/dist/card/card2.js +4 -4
  15. package/dist/chat-message/chat-message2.js +1 -1
  16. package/dist/checkbox/checkbox-group2.js +1 -1
  17. package/dist/checkbox/checkbox2.js +1 -1
  18. package/dist/color/color2.js +1 -1
  19. package/dist/combobox/combobox2.js +1 -1
  20. package/dist/copy-button/copy-button2.js +1 -1
  21. package/dist/custom-elements-jsx.d.ts +46 -10
  22. package/dist/custom-elements-vue.d.ts +46 -10
  23. package/dist/custom-elements.json +389 -16
  24. package/dist/data.html.json +64 -6
  25. package/dist/data.snippets.json +27 -27
  26. package/dist/date/date2.js +1 -1
  27. package/dist/datetime/datetime2.js +1 -1
  28. package/dist/dialog/dialog-footer2.js +1 -1
  29. package/dist/dialog/dialog-header2.js +1 -1
  30. package/dist/dialog/dialog.d.ts +1 -1
  31. package/dist/dialog/dialog2.js +1 -1
  32. package/dist/dialog/dialog2.js.map +1 -1
  33. package/dist/divider/divider2.js +1 -1
  34. package/dist/dot/dot2.js +1 -1
  35. package/dist/drawer/drawer-content2.js +1 -1
  36. package/dist/drawer/drawer-footer2.js +1 -1
  37. package/dist/drawer/drawer-header2.js +1 -1
  38. package/dist/drawer/drawer.d.ts +1 -1
  39. package/dist/drawer/drawer2.js +1 -1
  40. package/dist/drawer/drawer2.js.map +1 -1
  41. package/dist/dropdown/dropdown-footer2.js +1 -1
  42. package/dist/dropdown/dropdown-header2.js +1 -1
  43. package/dist/dropdown/dropdown.d.ts +3 -3
  44. package/dist/dropdown/dropdown2.js +1 -1
  45. package/dist/dropdown/dropdown2.js.map +1 -1
  46. package/dist/dropdown-group/dropdown-group.js +1 -1
  47. package/dist/dropzone/dropzone2.js +1 -1
  48. package/dist/file/file2.js +1 -1
  49. package/dist/format-bytes/define.d.ts +6 -0
  50. package/dist/format-bytes/define.js +7 -0
  51. package/dist/format-bytes/define.js.map +1 -0
  52. package/dist/format-bytes/format-bytes.d.ts +53 -0
  53. package/dist/format-bytes/format-bytes.examples.js +6 -0
  54. package/dist/format-bytes/format-bytes.examples.js.map +1 -0
  55. package/dist/format-bytes/format-bytes.examples.json +69 -0
  56. package/dist/format-bytes/format-bytes.js +6 -0
  57. package/dist/format-bytes/format-bytes.js.map +1 -0
  58. package/dist/format-bytes/format-bytes2.js +182 -0
  59. package/dist/format-bytes/format-bytes2.js.map +1 -0
  60. package/dist/format-bytes/index.d.ts +1 -0
  61. package/dist/format-bytes/index.js +2 -0
  62. package/dist/format-datetime/format-datetime2.js +1 -1
  63. package/dist/format-number/format-number2.js +1 -1
  64. package/dist/format-relative-time/format-relative-time2.js +1 -1
  65. package/dist/forms/control/control2.js +1 -1
  66. package/dist/forms/control-group/control-group2.js +1 -1
  67. package/dist/forms/control-message/control-message2.js +1 -1
  68. package/dist/gauge/gauge.examples.js.map +1 -1
  69. package/dist/gauge/gauge.examples.json +1 -1
  70. package/dist/gauge/gauge2.js +1 -1
  71. package/dist/grid/cell/cell2.js +1 -1
  72. package/dist/grid/column/column2.js +1 -1
  73. package/dist/grid/footer/footer2.js +1 -1
  74. package/dist/grid/grid2.js +1 -1
  75. package/dist/grid/header/header2.js +1 -1
  76. package/dist/grid/placeholder/placeholder2.js +1 -1
  77. package/dist/grid/row/row2.js +1 -1
  78. package/dist/icon/icon2.js +2 -2
  79. package/dist/icon-button/icon-button2.js +1 -1
  80. package/dist/index.js +1 -1
  81. package/dist/input/input-group2.js +1 -1
  82. package/dist/input/input2.js +1 -1
  83. package/dist/internal/services/global.service.js +1 -1
  84. package/dist/logo/logo2.js +1 -1
  85. package/dist/menu/menu-item2.js +1 -1
  86. package/dist/menu/menu2.js +1 -1
  87. package/dist/month/month2.js +1 -1
  88. package/dist/notification/notification-group2.js +1 -1
  89. package/dist/notification/notification.d.ts +1 -1
  90. package/dist/notification/notification2.js +1 -1
  91. package/dist/notification/notification2.js.map +1 -1
  92. package/dist/page/page-panel/page-panel-content2.js +1 -1
  93. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  94. package/dist/page/page-panel/page-panel-header2.js +1 -1
  95. package/dist/page/page-panel/page-panel2.js +1 -1
  96. package/dist/page/page2.js +1 -1
  97. package/dist/page-header/page-header2.js +1 -1
  98. package/dist/page-loader/page-loader2.js +1 -1
  99. package/dist/pagination/pagination2.js +1 -1
  100. package/dist/panel/panel2.js +4 -4
  101. package/dist/password/password2.js +1 -1
  102. package/dist/preferences-input/preferences-input2.js +1 -1
  103. package/dist/progress-bar/progress-bar2.js +1 -1
  104. package/dist/progress-ring/progress-ring2.js +1 -1
  105. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  106. package/dist/pulse/pulse2.js +1 -1
  107. package/dist/radio/radio-group2.js +1 -1
  108. package/dist/radio/radio2.js +1 -1
  109. package/dist/range/range2.js +1 -1
  110. package/dist/resize-handle/resize-handle2.js +1 -1
  111. package/dist/search/search2.js +1 -1
  112. package/dist/select/select2.js +1 -1
  113. package/dist/skeleton/skeleton2.js +1 -1
  114. package/dist/sort-button/sort-button2.js +1 -1
  115. package/dist/sparkline/sparkline2.js +1 -1
  116. package/dist/star-rating/star-rating2.js +1 -1
  117. package/dist/steps/steps2.js +2 -2
  118. package/dist/switch/switch-group2.js +1 -1
  119. package/dist/switch/switch2.js +1 -1
  120. package/dist/tabs/tabs-group2.js +1 -1
  121. package/dist/tabs/tabs2.js +2 -2
  122. package/dist/tag/tag2.js +1 -1
  123. package/dist/textarea/textarea2.js +1 -1
  124. package/dist/time/time2.js +1 -1
  125. package/dist/toast/toast.d.ts +1 -1
  126. package/dist/toast/toast2.js +1 -1
  127. package/dist/toast/toast2.js.map +1 -1
  128. package/dist/toggletip/toggletip-footer2.js +1 -1
  129. package/dist/toggletip/toggletip-header2.js +1 -1
  130. package/dist/toggletip/toggletip2.js +1 -1
  131. package/dist/toolbar/toolbar2.js +1 -1
  132. package/dist/tooltip/tooltip.d.ts +1 -1
  133. package/dist/tooltip/tooltip2.js +1 -1
  134. package/dist/tooltip/tooltip2.js.map +1 -1
  135. package/dist/tree/tree-node2.js +1 -1
  136. package/dist/tree/tree2.js +1 -1
  137. package/dist/week/week2.js +1 -1
  138. package/package.json +15 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## 2.3.0 (2026-08-07)
2
+
3
+ * fix(cli): update dependencies ([ff596a1](https://github.com/NVIDIA/elements/commit/ff596a1))
4
+ * fix(forms): respect event default prevention ([5618862](https://github.com/NVIDIA/elements/commit/5618862))
5
+ * chore(ci): lint rules and skill for component registration and testing ([6c7fea0](https://github.com/NVIDIA/elements/commit/6c7fea0))
6
+ * chore(ci): update metadata ([b7120bf](https://github.com/NVIDIA/elements/commit/b7120bf))
7
+ * chore(docs): add component preview to card list ([c7e16a5](https://github.com/NVIDIA/elements/commit/c7e16a5))
8
+ * chore(release): @nvidia-elements/forms-v2.0.6 [skip ci] ([c977b1a](https://github.com/NVIDIA/elements/commit/c977b1a))
9
+ * feat(core): format-bytes ([bfd2e5e](https://github.com/NVIDIA/elements/commit/bfd2e5e))
10
+ * feat(media): init ([859c8f9](https://github.com/NVIDIA/elements/commit/859c8f9))
11
+
1
12
  ## <small>2.2.3 (2026-08-05)</small>
2
13
 
3
14
  * fix(cli): workspace dependency ([5ecbd96](https://github.com/NVIDIA/elements/commit/5ecbd96))
@@ -28,7 +28,7 @@ var b = class extends g {
28
28
  static {
29
29
  this.metadata = {
30
30
  tag: "nve-accordion-header",
31
- version: "2.2.3"
31
+ version: "2.3.0"
32
32
  };
33
33
  }
34
34
  render() {
@@ -46,7 +46,7 @@ var x = class extends g {
46
46
  static {
47
47
  this.metadata = {
48
48
  tag: "nve-accordion-content",
49
- version: "2.2.3"
49
+ version: "2.3.0"
50
50
  };
51
51
  }
52
52
  render() {
@@ -62,7 +62,7 @@ var x = class extends g {
62
62
  static {
63
63
  this.metadata = {
64
64
  tag: "nve-accordion",
65
- version: "2.2.3",
65
+ version: "2.3.0",
66
66
  children: [
67
67
  b.metadata.tag,
68
68
  x.metadata.tag,
@@ -120,7 +120,7 @@ var C = class extends g {
120
120
  static {
121
121
  this.metadata = {
122
122
  tag: "nve-accordion-group",
123
- version: "2.2.3",
123
+ version: "2.3.0",
124
124
  children: [S.metadata.tag]
125
125
  };
126
126
  }
@@ -19,7 +19,7 @@ var f = class extends c {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-alert-group",
22
- version: "2.2.3",
22
+ version: "2.3.0",
23
23
  children: [o.metadata.tag]
24
24
  };
25
25
  }
@@ -28,7 +28,7 @@ var v = class extends m {
28
28
  static {
29
29
  this.metadata = {
30
30
  tag: "nve-alert",
31
- version: "2.2.3"
31
+ version: "2.3.0"
32
32
  };
33
33
  }
34
34
  static {
@@ -10,7 +10,7 @@ var a = class extends r {
10
10
  static {
11
11
  this.metadata = {
12
12
  tag: "nve-avatar-group",
13
- version: "2.2.3"
13
+ version: "2.3.0"
14
14
  };
15
15
  }
16
16
  render() {
@@ -11,7 +11,7 @@ var s = class extends i {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-avatar",
14
- version: "2.2.3"
14
+ version: "2.3.0"
15
15
  };
16
16
  }
17
17
  render() {
@@ -25,7 +25,7 @@ var g = class extends f {
25
25
  static {
26
26
  this.metadata = {
27
27
  tag: "nve-badge",
28
- version: "2.2.3"
28
+ version: "2.3.0"
29
29
  };
30
30
  }
31
31
  static {
@@ -24,7 +24,7 @@ var m = class extends u {
24
24
  static {
25
25
  this.metadata = {
26
26
  tag: "nve-breadcrumb",
27
- version: "2.2.3"
27
+ version: "2.3.0"
28
28
  };
29
29
  }
30
30
  static {
package/dist/bundle.d.ts CHANGED
@@ -21,6 +21,7 @@ import '@nvidia-elements/core/dropdown/define.js';
21
21
  import '@nvidia-elements/core/dropdown-group/define.js';
22
22
  import '@nvidia-elements/core/dropzone/define.js';
23
23
  import '@nvidia-elements/core/file/define.js';
24
+ import '@nvidia-elements/core/format-bytes/define.js';
24
25
  import '@nvidia-elements/core/format-datetime/define.js';
25
26
  import '@nvidia-elements/core/format-number/define.js';
26
27
  import '@nvidia-elements/core/format-relative-time/define.js';
@@ -89,6 +90,7 @@ export * from '@nvidia-elements/core/dropdown';
89
90
  export * from '@nvidia-elements/core/dropdown-group';
90
91
  export * from '@nvidia-elements/core/dropzone';
91
92
  export * from '@nvidia-elements/core/file';
93
+ export * from '@nvidia-elements/core/format-bytes';
92
94
  export * from '@nvidia-elements/core/format-datetime';
93
95
  export * from '@nvidia-elements/core/format-number';
94
96
  export * from '@nvidia-elements/core/format-relative-time';
@@ -1898,12 +1898,12 @@ export declare class MenuItem extends MenuItem_base {
1898
1898
  }
1899
1899
  /**
1900
1900
  * @element nve-dropdown
1901
- * @description Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
1901
+ * @description Generic dropdown element for rendering a variety of different content such as interactive navigation or form controls.
1902
1902
  * @documentation https://nvidia.github.io/elements/docs/elements/dropdown/
1903
1903
  * @since 0.6.0
1904
1904
  * @entrypoint \@nvidia-elements/core/dropdown
1905
- * @event beforetoggle - Dispatched on a popover just before showing or hiding. [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/beforetoggle_event)
1906
- * @event toggle - Dispatched on a popover element just after showing or hiding. [MDN](https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/toggle_event)
1905
+ * @event beforetoggle - Dispatched on a popover just before showing or hiding.
1906
+ * @event toggle - Dispatched on a popover element just after showing or hiding.
1907
1907
  * @event open - Dispatched when the dropdown opens.
1908
1908
  * @event close - Dispatched when the dropdown closes.
1909
1909
  * @slot - default slot for dropdown content
@@ -2142,7 +2142,7 @@ export declare class Combobox extends Control implements ContainerElement {
2142
2142
  }
2143
2143
  /**
2144
2144
  * @element nve-toast
2145
- * @description 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. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
2145
+ * @description 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.
2146
2146
  * @documentation https://nvidia.github.io/elements/docs/elements/toast/
2147
2147
  * @since 0.6.0
2148
2148
  * @entrypoint \@nvidia-elements/core/toast
@@ -2234,7 +2234,7 @@ export declare class Toast extends LitElement {
2234
2234
  }
2235
2235
  /**
2236
2236
  * @element nve-tooltip
2237
- * @description A contextual popup that displays a plaintext description. Tooltips are [triggered](https://w3c.github.io/aria/#tooltip) by hovering, focusing, or tapping an element and cannot have interactive elements within them. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
2237
+ * @description A contextual popup that displays a plaintext description. Trigger tooltips by hovering, focusing, or tapping an element and cannot have interactive elements within them.
2238
2238
  * @documentation https://nvidia.github.io/elements/docs/elements/tooltip/
2239
2239
  * @since 0.6.0
2240
2240
  * @entrypoint \@nvidia-elements/core/tooltip
@@ -2439,7 +2439,7 @@ export declare class Datetime extends Control implements ContainerElement {
2439
2439
  }
2440
2440
  /**
2441
2441
  * @element nve-dialog
2442
- * @description Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
2442
+ * @description Dialog is a component that appears above main content. A modal dialog displays critical information that requires user attention and interrupts user flow.
2443
2443
  * @documentation https://nvidia.github.io/elements/docs/elements/dialog/
2444
2444
  * @since 0.6.0
2445
2445
  * @entrypoint \@nvidia-elements/core/dialog
@@ -2635,7 +2635,7 @@ export declare class Dot extends LitElement {
2635
2635
  }
2636
2636
  /**
2637
2637
  * @element nve-drawer
2638
- * @description Drawer are to display content that is out of context of the rest of the page (notifications, navigation, settings). Or use [Panel](./docs/elements/panel/) inline as its content couples with or closely relates to the content on the page (details, extra actions/options). [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
2638
+ * @description A drawer displays content separate from the rest of the page, such as notifications, navigation, and settings.
2639
2639
  * @documentation https://nvidia.github.io/elements/docs/elements/drawer/
2640
2640
  * @since 0.16.0
2641
2641
  * @entrypoint \@nvidia-elements/core/drawer
@@ -2906,6 +2906,58 @@ declare class File$1 extends Control {
2906
2906
  };
2907
2907
  connectedCallback(): void;
2908
2908
  }
2909
+ export type FormatBytesDisplay = "decimal" | "binary";
2910
+ export type FormatBytesUnit = "b" | "kb" | "mb" | "gb" | "tb" | "pb";
2911
+ export type FormatBytesUnitDisplay = "short" | "long";
2912
+ /**
2913
+ * @element nve-format-bytes
2914
+ * @description Formats a byte count as localized, human-readable decimal or binary units.
2915
+ * @documentation https://nvidia.github.io/elements/docs/elements/format-bytes/
2916
+ * @since 0.0.0
2917
+ * @entrypoint \@nvidia-elements/core/format-bytes
2918
+ * @slot - Numeric byte count to format (such as 1048576). Serves as fallback before hydration.
2919
+ * @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data
2920
+ */
2921
+ export declare class FormatBytes extends LitElement {
2922
+ #private;
2923
+ static styles: CSSResult[];
2924
+ static readonly metadata: {
2925
+ tag: string;
2926
+ version: string;
2927
+ };
2928
+ /**
2929
+ * Optional byte count for values supplied by JavaScript or bound data.
2930
+ * By default, the component formats the element's text content, which also serves as the SSR fallback.
2931
+ * When both are present, this property takes precedence.
2932
+ */
2933
+ value?: number;
2934
+ /**
2935
+ * Unit system: 'decimal' uses powers of 1000 and 'binary' uses powers of 1024.
2936
+ */
2937
+ display: FormatBytesDisplay;
2938
+ /**
2939
+ * Optional unit magnitude. When omitted, the component selects a unit from the byte count.
2940
+ */
2941
+ unit?: FormatBytesUnit;
2942
+ /**
2943
+ * Unit label length: 'short' renders labels such as 'mb'; 'long' renders labels such as 'megabytes'.
2944
+ */
2945
+ unitDisplay: FormatBytesUnitDisplay;
2946
+ /**
2947
+ * Language tag (such as en-US or de-DE) used to format the number.
2948
+ * Defaults to document.documentElement.lang or the runtime default.
2949
+ */
2950
+ locale?: string;
2951
+ /**
2952
+ * Pad fraction output to at least this many digits.
2953
+ */
2954
+ minimumFractionDigits?: number;
2955
+ /**
2956
+ * Round fraction output to at most this many digits. Defaults to two effective digits after the decimal point.
2957
+ */
2958
+ maximumFractionDigits?: number;
2959
+ render(): TemplateResult<1>;
2960
+ }
2909
2961
  /**
2910
2962
  * @element nve-format-datetime
2911
2963
  * @description Formats a date/time value as localized text using the Intl.DateTimeFormat API. Renders inside a semantic time element.
@@ -3536,7 +3588,7 @@ export declare class Month extends Control implements ContainerElement {
3536
3588
  }
3537
3589
  /**
3538
3590
  * @element nve-notification
3539
- * @description Displays real time updates without interrupting the user's workflow to communicate an important message or status. [MDN Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
3591
+ * @description Displays real time updates without interrupting the user's workflow to communicate an important message or status.
3540
3592
  * @documentation https://nvidia.github.io/elements/docs/elements/notification/
3541
3593
  * @since 0.6.0
3542
3594
  * @entrypoint \@nvidia-elements/core/notification