@nvidia-elements/core 0.0.12 → 0.1.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 (128) hide show
  1. package/CHANGELOG.md +19 -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 +1 -0
  10. package/dist/bundles/index.d.ts +86 -0
  11. package/dist/bundles/index.js +3 -3
  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 +50 -0
  22. package/dist/custom-elements-vue.d.ts +50 -0
  23. package/dist/custom-elements.json +788 -2
  24. package/dist/data.html.json +119 -1
  25. package/dist/data.snippets.json +2 -2
  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/dialog2.js +1 -1
  31. package/dist/divider/divider2.js +1 -1
  32. package/dist/dot/dot2.js +1 -1
  33. package/dist/drawer/drawer-content2.js +1 -1
  34. package/dist/drawer/drawer-footer2.js +1 -1
  35. package/dist/drawer/drawer-header2.js +1 -1
  36. package/dist/drawer/drawer2.js +1 -1
  37. package/dist/dropdown/dropdown-footer2.js +1 -1
  38. package/dist/dropdown/dropdown-header2.js +1 -1
  39. package/dist/dropdown/dropdown2.js +1 -1
  40. package/dist/dropdown-group/dropdown-group.js +1 -1
  41. package/dist/dropzone/dropzone2.js +1 -1
  42. package/dist/file/file2.js +1 -1
  43. package/dist/format-datetime/format-datetime2.js +1 -1
  44. package/dist/format-number/define.d.ts +6 -0
  45. package/dist/format-number/define.js +7 -0
  46. package/dist/format-number/define.js.map +1 -0
  47. package/dist/format-number/format-number.d.ts +87 -0
  48. package/dist/format-number/format-number.examples.js +6 -0
  49. package/dist/format-number/format-number.examples.js.map +1 -0
  50. package/dist/format-number/format-number.examples.json +87 -0
  51. package/dist/format-number/format-number.js +6 -0
  52. package/dist/format-number/format-number.js.map +1 -0
  53. package/dist/format-number/format-number2.js +111 -0
  54. package/dist/format-number/format-number2.js.map +1 -0
  55. package/dist/format-number/index.d.ts +1 -0
  56. package/dist/format-number/index.js +2 -0
  57. package/dist/format-relative-time/format-relative-time2.js +1 -1
  58. package/dist/forms/control/control2.js +1 -1
  59. package/dist/forms/control-group/control-group2.js +1 -1
  60. package/dist/forms/control-message/control-message2.js +1 -1
  61. package/dist/grid/cell/cell2.js +1 -1
  62. package/dist/grid/column/column2.js +1 -1
  63. package/dist/grid/footer/footer2.js +1 -1
  64. package/dist/grid/grid2.js +1 -1
  65. package/dist/grid/header/header2.js +1 -1
  66. package/dist/grid/placeholder/placeholder2.js +1 -1
  67. package/dist/grid/row/row2.js +1 -1
  68. package/dist/icon/icon2.js +2 -2
  69. package/dist/icon-button/icon-button2.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/input/input-group2.js +1 -1
  72. package/dist/input/input2.js +1 -1
  73. package/dist/internal/services/global.service.js +1 -1
  74. package/dist/logo/logo.examples.js.map +1 -1
  75. package/dist/logo/logo.examples.json +4 -4
  76. package/dist/logo/logo2.js +1 -1
  77. package/dist/menu/menu-item2.js +1 -1
  78. package/dist/menu/menu.examples.js.map +1 -1
  79. package/dist/menu/menu.examples.json +3 -3
  80. package/dist/menu/menu2.js +1 -1
  81. package/dist/month/month2.js +1 -1
  82. package/dist/notification/notification-group2.js +1 -1
  83. package/dist/notification/notification2.js +1 -1
  84. package/dist/page/page-panel/page-panel-content2.js +1 -1
  85. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  86. package/dist/page/page-panel/page-panel-header2.js +1 -1
  87. package/dist/page/page-panel/page-panel2.js +1 -1
  88. package/dist/page/page2.js +1 -1
  89. package/dist/page-header/page-header2.js +1 -1
  90. package/dist/page-loader/page-loader2.js +1 -1
  91. package/dist/pagination/pagination2.js +1 -1
  92. package/dist/panel/panel2.js +4 -4
  93. package/dist/password/password2.js +1 -1
  94. package/dist/preferences-input/preferences-input.examples.js.map +1 -1
  95. package/dist/preferences-input/preferences-input.examples.json +1 -1
  96. package/dist/preferences-input/preferences-input2.js +1 -1
  97. package/dist/progress-bar/progress-bar2.js +1 -1
  98. package/dist/progress-ring/progress-ring2.js +1 -1
  99. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  100. package/dist/pulse/pulse2.js +1 -1
  101. package/dist/radio/radio-group2.js +1 -1
  102. package/dist/radio/radio2.js +1 -1
  103. package/dist/range/range2.js +1 -1
  104. package/dist/resize-handle/resize-handle2.js +1 -1
  105. package/dist/search/search2.js +1 -1
  106. package/dist/select/select2.js +1 -1
  107. package/dist/skeleton/skeleton2.js +1 -1
  108. package/dist/sort-button/sort-button2.js +1 -1
  109. package/dist/sparkline/sparkline2.js +1 -1
  110. package/dist/star-rating/star-rating2.js +1 -1
  111. package/dist/steps/steps2.js +2 -2
  112. package/dist/switch/switch-group2.js +1 -1
  113. package/dist/switch/switch2.js +1 -1
  114. package/dist/tabs/tabs-group2.js +1 -1
  115. package/dist/tabs/tabs2.js +2 -2
  116. package/dist/tag/tag2.js +1 -1
  117. package/dist/textarea/textarea2.js +1 -1
  118. package/dist/time/time2.js +1 -1
  119. package/dist/toast/toast2.js +1 -1
  120. package/dist/toggletip/toggletip-footer2.js +1 -1
  121. package/dist/toggletip/toggletip-header2.js +1 -1
  122. package/dist/toggletip/toggletip2.js +1 -1
  123. package/dist/toolbar/toolbar2.js +1 -1
  124. package/dist/tooltip/tooltip2.js +1 -1
  125. package/dist/tree/tree-node2.js +1 -1
  126. package/dist/tree/tree2.js +1 -1
  127. package/dist/week/week2.js +1 -1
  128. package/package.json +15 -3
package/CHANGELOG.md CHANGED
@@ -1,3 +1,22 @@
1
+ ## 0.1.0 (2026-05-05)
2
+
3
+ * feat(core): add nve-format-number component ([d49ec24](https://github.com/NVIDIA/elements/commit/d49ec24))
4
+ * feat(lint): improve deprecated api migration rules ([d61ec17](https://github.com/NVIDIA/elements/commit/d61ec17))
5
+ * chore(ci): lint corrections for missing nve-logo content ([6fc306f](https://github.com/NVIDIA/elements/commit/6fc306f))
6
+ * chore(docs): add codex link ([36473c1](https://github.com/NVIDIA/elements/commit/36473c1))
7
+ * chore(docs): improve migration docs and layouts ([d905928](https://github.com/NVIDIA/elements/commit/d905928))
8
+ * chore(release): @nvidia-elements/cli-v0.0.10 [skip ci] ([72fe1ff](https://github.com/NVIDIA/elements/commit/72fe1ff))
9
+ * chore(release): @nvidia-elements/code-v0.0.8 [skip ci] ([1f779f9](https://github.com/NVIDIA/elements/commit/1f779f9))
10
+ * chore(release): @nvidia-elements/lint-v0.2.1 [skip ci] ([4a47a83](https://github.com/NVIDIA/elements/commit/4a47a83))
11
+ * chore(release): @nvidia-elements/lint-v0.3.0 [skip ci] ([05610ae](https://github.com/NVIDIA/elements/commit/05610ae))
12
+ * chore(release): @nvidia-elements/markdown-v0.0.8 [skip ci] ([8f687c7](https://github.com/NVIDIA/elements/commit/8f687c7))
13
+ * chore(release): @nvidia-elements/monaco-v0.0.10 [skip ci] ([60ec7eb](https://github.com/NVIDIA/elements/commit/60ec7eb))
14
+ * chore(release): @nvidia-elements/monaco-v0.0.8 [skip ci] ([76e5b06](https://github.com/NVIDIA/elements/commit/76e5b06))
15
+ * chore(release): @nvidia-elements/monaco-v0.0.9 [skip ci] ([4a07ec6](https://github.com/NVIDIA/elements/commit/4a07ec6))
16
+ * fix(cli): improved migration context ([771e194](https://github.com/NVIDIA/elements/commit/771e194))
17
+ * fix(monaco): address timing issue in validation patch ([1ac01cb](https://github.com/NVIDIA/elements/commit/1ac01cb))
18
+ * fix(monaco): patch monaco-editor broken paste action ([35f27ce](https://github.com/NVIDIA/elements/commit/35f27ce))
19
+
1
20
  ## <small>0.0.12 (2026-05-01)</small>
2
21
 
3
22
  * chore(ci): coder rabbit and sitemap verification ([97f3aca](https://github.com/NVIDIA/elements/commit/97f3aca))
@@ -28,7 +28,7 @@ var b = class extends g {
28
28
  static {
29
29
  this.metadata = {
30
30
  tag: "nve-accordion-header",
31
- version: "0.0.12"
31
+ version: "0.1.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: "0.0.12"
49
+ version: "0.1.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: "0.0.12",
65
+ version: "0.1.0",
66
66
  children: [
67
67
  b.metadata.tag,
68
68
  x.metadata.tag,
@@ -121,7 +121,7 @@ var C = class extends g {
121
121
  static {
122
122
  this.metadata = {
123
123
  tag: "nve-accordion-group",
124
- version: "0.0.12",
124
+ version: "0.1.0",
125
125
  children: [S.metadata.tag]
126
126
  };
127
127
  }
@@ -19,7 +19,7 @@ var f = class extends c {
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-alert-group",
22
- version: "0.0.12",
22
+ version: "0.1.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: "0.0.12"
31
+ version: "0.1.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: "0.0.12"
13
+ version: "0.1.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: "0.0.12"
14
+ version: "0.1.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: "0.0.12"
28
+ version: "0.1.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: "0.0.12"
27
+ version: "0.1.0"
28
28
  };
29
29
  }
30
30
  static {
package/dist/bundle.d.ts CHANGED
@@ -8,6 +8,7 @@ export * from './dropdown';
8
8
  export * from './dropzone';
9
9
  export * from './file';
10
10
  export * from './format-datetime';
11
+ export * from './format-number';
11
12
  export * from './format-relative-time';
12
13
  export * from './forms';
13
14
  export * from './grid';
@@ -2349,6 +2349,92 @@ export declare class FormatDatetime extends LitElement {
2349
2349
  timeZone?: string;
2350
2350
  render(): TemplateResult<1>;
2351
2351
  }
2352
+ export type FormatNumberStyle = "decimal" | "currency" | "percent" | "unit";
2353
+ export type CurrencyDisplayOption = "symbol" | "code" | "name" | "narrowSymbol";
2354
+ export type CurrencySignOption = "standard" | "accounting";
2355
+ export type NotationOption = "standard" | "scientific" | "engineering" | "compact";
2356
+ export type CompactDisplayOption = "short" | "long";
2357
+ export type UnitDisplayOption = "short" | "long" | "narrow";
2358
+ export type SignDisplayOption = "auto" | "never" | "always" | "exceptZero";
2359
+ /**
2360
+ * @element nve-format-number
2361
+ * @description A localized number formatter for currencies, percentages, units, and compact notation, backed by Intl.NumberFormat.
2362
+ * Provide a `currency` attribute when `formatStyle` is `currency`, and a `unit` attribute when `formatStyle` is `unit`.
2363
+ * @since 0.0.0
2364
+ * @entrypoint \@nvidia-elements/core/format-number
2365
+ * @slot - Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration.
2366
+ */
2367
+ export declare class FormatNumber extends LitElement {
2368
+ #private;
2369
+ static styles: CSSResult[];
2370
+ static readonly metadata: {
2371
+ tag: string;
2372
+ version: string;
2373
+ };
2374
+ /**
2375
+ * Optional numeric string for values supplied by JavaScript or bound data.
2376
+ * By default, the component formats the element's text content, which also serves as the SSR fallback.
2377
+ * When both are present, this property takes precedence.
2378
+ */
2379
+ number?: string;
2380
+ /**
2381
+ * Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default.
2382
+ */
2383
+ locale?: string;
2384
+ /**
2385
+ * Formatting style: 'decimal' | 'currency' | 'percent' | 'unit'.
2386
+ */
2387
+ formatStyle: FormatNumberStyle;
2388
+ /**
2389
+ * ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency.
2390
+ */
2391
+ currency?: string;
2392
+ /**
2393
+ * Currency sign style: 'standard' | 'accounting'.
2394
+ */
2395
+ currencySign?: CurrencySignOption;
2396
+ /**
2397
+ * Currency display style: 'symbol' | 'code' | 'name' | 'narrowSymbol'.
2398
+ */
2399
+ currencyDisplay?: CurrencyDisplayOption;
2400
+ /**
2401
+ * Unit identifier (such as kilometer or byte). Required when formatStyle is unit.
2402
+ */
2403
+ unit?: string;
2404
+ /**
2405
+ * Unit display style: 'short' | 'long' | 'narrow'.
2406
+ */
2407
+ unitDisplay?: UnitDisplayOption;
2408
+ /**
2409
+ * Number notation: 'standard' | 'scientific' | 'engineering' | 'compact'.
2410
+ */
2411
+ notation?: NotationOption;
2412
+ /**
2413
+ * Compact notation display: 'short' | 'long'. Only applies when notation is compact.
2414
+ */
2415
+ compactDisplay?: CompactDisplayOption;
2416
+ /**
2417
+ * Sign display: 'auto' | 'never' | 'always' | 'exceptZero'.
2418
+ */
2419
+ signDisplay?: SignDisplayOption;
2420
+ /**
2421
+ * Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'.
2422
+ */
2423
+ useGrouping?: string;
2424
+ /**
2425
+ * Pad fraction output to at least this many digits (0-20).
2426
+ */
2427
+ minimumFractionDigits?: number;
2428
+ /**
2429
+ * Round fraction output to at most this many digits (0-20).
2430
+ */
2431
+ maximumFractionDigits?: number;
2432
+ /**
2433
+ * Pad integer output to at least this many digits (1-21).
2434
+ */
2435
+ minimumIntegerDigits?: number;
2436
+ render(): TemplateResult<1>;
2437
+ }
2352
2438
  /**
2353
2439
  * @element nve-format-relative-time
2354
2440
  * @description Formats a date/time value as localized relative text using the Intl.RelativeTimeFormat API. Renders inside a semantic time element.