@nvidia-elements/core 0.0.11 → 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 (136) hide show
  1. package/CHANGELOG.md +40 -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 +4 -4
  12. package/dist/button/button2.js +1 -1
  13. package/dist/button-group/button-group.d.ts +1 -1
  14. package/dist/button-group/button-group2.js +1 -1
  15. package/dist/button-group/button-group2.js.map +1 -1
  16. package/dist/card/card2.js +4 -4
  17. package/dist/chat-message/chat-message2.js +1 -1
  18. package/dist/checkbox/checkbox-group2.js +1 -1
  19. package/dist/checkbox/checkbox2.js +1 -1
  20. package/dist/color/color2.js +1 -1
  21. package/dist/combobox/combobox2.js +1 -1
  22. package/dist/copy-button/copy-button2.js +1 -1
  23. package/dist/custom-elements-jsx.d.ts +51 -1
  24. package/dist/custom-elements-vue.d.ts +51 -1
  25. package/dist/custom-elements.json +790 -4
  26. package/dist/data.html.json +121 -3
  27. package/dist/data.snippets.json +2 -2
  28. package/dist/date/date2.js +1 -1
  29. package/dist/datetime/datetime2.js +1 -1
  30. package/dist/dialog/dialog-footer2.js +1 -1
  31. package/dist/dialog/dialog-header2.js +1 -1
  32. package/dist/dialog/dialog2.js +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/drawer2.js +1 -1
  39. package/dist/dropdown/dropdown-footer2.js +1 -1
  40. package/dist/dropdown/dropdown-header2.js +1 -1
  41. package/dist/dropdown/dropdown2.js +1 -1
  42. package/dist/dropdown-group/dropdown-group.js +1 -1
  43. package/dist/dropzone/dropzone2.js +1 -1
  44. package/dist/file/file2.js +1 -1
  45. package/dist/format-datetime/format-datetime2.js +1 -1
  46. package/dist/format-number/define.d.ts +6 -0
  47. package/dist/format-number/define.js +7 -0
  48. package/dist/format-number/define.js.map +1 -0
  49. package/dist/format-number/format-number.d.ts +87 -0
  50. package/dist/format-number/format-number.examples.js +6 -0
  51. package/dist/format-number/format-number.examples.js.map +1 -0
  52. package/dist/format-number/format-number.examples.json +87 -0
  53. package/dist/format-number/format-number.js +6 -0
  54. package/dist/format-number/format-number.js.map +1 -0
  55. package/dist/format-number/format-number2.js +111 -0
  56. package/dist/format-number/format-number2.js.map +1 -0
  57. package/dist/format-number/index.d.ts +1 -0
  58. package/dist/format-number/index.js +2 -0
  59. package/dist/format-relative-time/format-relative-time2.js +73 -53
  60. package/dist/format-relative-time/format-relative-time2.js.map +1 -1
  61. package/dist/forms/control/control2.js +1 -1
  62. package/dist/forms/control-group/control-group2.js +1 -1
  63. package/dist/forms/control-message/control-message2.js +1 -1
  64. package/dist/forms/validation.examples.js.map +1 -1
  65. package/dist/grid/cell/cell2.js +1 -1
  66. package/dist/grid/column/column2.js +1 -1
  67. package/dist/grid/footer/footer2.js +1 -1
  68. package/dist/grid/grid2.js +1 -1
  69. package/dist/grid/header/header2.js +1 -1
  70. package/dist/grid/placeholder/placeholder2.js +1 -1
  71. package/dist/grid/row/row2.js +1 -1
  72. package/dist/icon/icon2.js +2 -2
  73. package/dist/icon-button/icon-button2.js +1 -1
  74. package/dist/index.js +1 -1
  75. package/dist/input/input-group2.js +1 -1
  76. package/dist/input/input2.js +1 -1
  77. package/dist/internal/services/global.service.js +1 -1
  78. package/dist/internal/utils/objects.js +17 -9
  79. package/dist/internal/utils/objects.js.map +1 -1
  80. package/dist/logo/logo.examples.js.map +1 -1
  81. package/dist/logo/logo.examples.json +4 -4
  82. package/dist/logo/logo2.js +1 -1
  83. package/dist/menu/menu-item2.js +1 -1
  84. package/dist/menu/menu.examples.js.map +1 -1
  85. package/dist/menu/menu.examples.json +3 -3
  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/notification2.js +1 -1
  90. package/dist/page/page-panel/page-panel-content2.js +1 -1
  91. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  92. package/dist/page/page-panel/page-panel-header2.js +1 -1
  93. package/dist/page/page-panel/page-panel2.js +1 -1
  94. package/dist/page/page.examples.js.map +1 -1
  95. package/dist/page/page.examples.json +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-input.examples.js.map +1 -1
  103. package/dist/preferences-input/preferences-input.examples.json +1 -1
  104. package/dist/preferences-input/preferences-input2.js +1 -1
  105. package/dist/progress-bar/progress-bar2.js +1 -1
  106. package/dist/progress-ring/progress-ring2.js +1 -1
  107. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  108. package/dist/pulse/pulse2.js +1 -1
  109. package/dist/radio/radio-group2.js +1 -1
  110. package/dist/radio/radio2.js +1 -1
  111. package/dist/range/range2.js +1 -1
  112. package/dist/resize-handle/resize-handle2.js +1 -1
  113. package/dist/search/search2.js +1 -1
  114. package/dist/select/select2.js +1 -1
  115. package/dist/skeleton/skeleton2.js +1 -1
  116. package/dist/sort-button/sort-button2.js +1 -1
  117. package/dist/sparkline/sparkline2.js +1 -1
  118. package/dist/star-rating/star-rating2.js +1 -1
  119. package/dist/steps/steps2.js +2 -2
  120. package/dist/switch/switch-group2.js +1 -1
  121. package/dist/switch/switch2.js +1 -1
  122. package/dist/tabs/tabs-group2.js +1 -1
  123. package/dist/tabs/tabs2.js +2 -2
  124. package/dist/tag/tag2.js +1 -1
  125. package/dist/textarea/textarea2.js +1 -1
  126. package/dist/time/time2.js +1 -1
  127. package/dist/toast/toast2.js +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/tooltip2.js +1 -1
  133. package/dist/tree/tree-node2.js +1 -1
  134. package/dist/tree/tree2.js +1 -1
  135. package/dist/week/week2.js +1 -1
  136. package/package.json +16 -4
@@ -3446,6 +3446,14 @@
3446
3446
  "package": "@nvidia-elements/core/format-datetime"
3447
3447
  }
3448
3448
  },
3449
+ {
3450
+ "kind": "js",
3451
+ "name": "*",
3452
+ "declaration": {
3453
+ "name": "*",
3454
+ "package": "@nvidia-elements/core/format-number"
3455
+ }
3456
+ },
3449
3457
  {
3450
3458
  "kind": "js",
3451
3459
  "name": "*",
@@ -3790,7 +3798,7 @@
3790
3798
  "declarations": [
3791
3799
  {
3792
3800
  "kind": "class",
3793
- "description": "A button group is a control that enables users to choose between two or more distinct mutually exclusive options.",
3801
+ "description": "A button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.",
3794
3802
  "name": "ButtonGroup",
3795
3803
  "cssProperties": [
3796
3804
  {
@@ -4158,7 +4166,7 @@
4158
4166
  "since": "0.16.0",
4159
4167
  "status": "stable",
4160
4168
  "behavior": "container",
4161
- "markdown": "## nve-button-group\n\nA button group is a control that enables users to choose between two or more distinct mutually exclusive options.\n\n### Example\n\n```html\n<nve-button-group>\n <nve-icon-button selected icon-name=\"copy\"></nve-icon-button>\n <nve-icon-button icon-name=\"add-comment\"></nve-icon-button>\n <nve-icon-button icon-name=\"download\"></nve-icon-button>\n</nve-button-group>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/button-group/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for `nve-button` or `nve-icon-button` |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| behaviorSelect (behavior-select) | `'single' \\| 'multi'` | By default the button group is stateless. Add the `behavior-select` attribute and set to `single` or `multi` to enable stateful selction handling. |\n| container | `'flat' \\| 'rounded' \\| \"default\"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. |\n| orientation | `'horizontal' \\| 'vertical' \\| \"default\"` | Controls the directional flow of the element's layout and interaction pattern. - `horizontal` Element orients horizontally with left-to-right flow. - `vertical` Element orients vertically with top-to-bottom flow. |\n| interaction | `'emphasis' \\| 'destructive'` | The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors. - `emphasis` Shows the interaction targets emphasis or highlighting primary actions. - `destructive` Shows the interaction targets destructive actions such as deleting or removing. |\n| size | `'sm' \\| 'md' \\| 'lg' \\| \"default\"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --background | `string` | [MDN](https://mdn.dev/CSS/background) |\n| --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) |\n| --padding | `string` | [MDN](https://mdn.dev/CSS/padding) |\n| --gap | `string` | [MDN](https://mdn.dev/CSS/gap) |\n| --width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --height | `string` | [MDN](https://mdn.dev/CSS/height) |\n| --color | `string` | [MDN](https://mdn.dev/CSS/color) |"
4169
+ "markdown": "## nve-button-group\n\nA button group organizes related buttons and can support either mutually exclusive single or multi selection. Prefer usage within toolbars.\n\n### Example\n\n```html\n<nve-button-group>\n <nve-icon-button selected icon-name=\"copy\"></nve-icon-button>\n <nve-icon-button icon-name=\"add-comment\"></nve-icon-button>\n <nve-icon-button icon-name=\"download\"></nve-icon-button>\n</nve-button-group>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/button-group/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for `nve-button` or `nve-icon-button` |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| behaviorSelect (behavior-select) | `'single' \\| 'multi'` | By default the button group is stateless. Add the `behavior-select` attribute and set to `single` or `multi` to enable stateful selction handling. |\n| container | `'flat' \\| 'rounded' \\| \"default\"` | Demonstrates different container styles to accommodate visual weight and context. - `flat` Element has white space bounds but reduced visual container. |\n| orientation | `'horizontal' \\| 'vertical' \\| \"default\"` | Controls the directional flow of the element's layout and interaction pattern. - `horizontal` Element orients horizontally with left-to-right flow. - `vertical` Element orients vertically with top-to-bottom flow. |\n| interaction | `'emphasis' \\| 'destructive'` | The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors. - `emphasis` Shows the interaction targets emphasis or highlighting primary actions. - `destructive` Shows the interaction targets destructive actions such as deleting or removing. |\n| size | `'sm' \\| 'md' \\| 'lg' \\| \"default\"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --background | `string` | [MDN](https://mdn.dev/CSS/background) |\n| --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) |\n| --padding | `string` | [MDN](https://mdn.dev/CSS/padding) |\n| --gap | `string` | [MDN](https://mdn.dev/CSS/gap) |\n| --width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --height | `string` | [MDN](https://mdn.dev/CSS/height) |\n| --color | `string` | [MDN](https://mdn.dev/CSS/color) |"
4162
4170
  }
4163
4171
  }
4164
4172
  ],
@@ -17176,6 +17184,784 @@
17176
17184
  }
17177
17185
  ]
17178
17186
  },
17187
+ {
17188
+ "kind": "javascript-module",
17189
+ "path": "/src/format-number/define.js",
17190
+ "declarations": [],
17191
+ "exports": []
17192
+ },
17193
+ {
17194
+ "kind": "javascript-module",
17195
+ "path": "/src/format-number/format-number.js",
17196
+ "declarations": [
17197
+ {
17198
+ "kind": "class",
17199
+ "description": "A localized number formatter for currencies, percentages, units, and compact notation, backed by Intl.NumberFormat.\nProvide a `currency` attribute when `formatStyle` is `currency`, and a `unit` attribute when `formatStyle` is `unit`.",
17200
+ "name": "FormatNumber",
17201
+ "slots": [
17202
+ {
17203
+ "description": "Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration.",
17204
+ "name": ""
17205
+ }
17206
+ ],
17207
+ "members": [
17208
+ {
17209
+ "kind": "field",
17210
+ "name": "number",
17211
+ "type": {
17212
+ "text": "string | \"default\"",
17213
+ "_sourceAliases": [],
17214
+ "values": [
17215
+ {
17216
+ "value": "string",
17217
+ "description": ""
17218
+ }
17219
+ ]
17220
+ },
17221
+ "description": "Optional numeric string for values supplied by JavaScript or bound data.\nBy default, the component formats the element's text content, which also serves as the SSR fallback.\nWhen both are present, this property takes precedence.",
17222
+ "attribute": "number"
17223
+ },
17224
+ {
17225
+ "kind": "field",
17226
+ "name": "locale",
17227
+ "type": {
17228
+ "text": "string | \"default\"",
17229
+ "_sourceAliases": [],
17230
+ "values": [
17231
+ {
17232
+ "value": "string",
17233
+ "description": ""
17234
+ }
17235
+ ]
17236
+ },
17237
+ "description": "Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default.",
17238
+ "attribute": "locale"
17239
+ },
17240
+ {
17241
+ "kind": "field",
17242
+ "name": "formatStyle",
17243
+ "type": {
17244
+ "text": "'decimal' | 'currency' | 'percent' | 'unit'",
17245
+ "_sourceAliases": [
17246
+ "FormatNumberStyle"
17247
+ ],
17248
+ "values": [
17249
+ {
17250
+ "value": "decimal",
17251
+ "description": ""
17252
+ },
17253
+ {
17254
+ "value": "currency",
17255
+ "description": ""
17256
+ },
17257
+ {
17258
+ "value": "percent",
17259
+ "description": ""
17260
+ },
17261
+ {
17262
+ "value": "unit",
17263
+ "description": ""
17264
+ }
17265
+ ]
17266
+ },
17267
+ "default": "'decimal'",
17268
+ "description": "Formatting style: 'decimal' | 'currency' | 'percent' | 'unit'.",
17269
+ "attribute": "format-style"
17270
+ },
17271
+ {
17272
+ "kind": "field",
17273
+ "name": "currency",
17274
+ "type": {
17275
+ "text": "string | \"default\"",
17276
+ "_sourceAliases": [],
17277
+ "values": [
17278
+ {
17279
+ "value": "string",
17280
+ "description": ""
17281
+ }
17282
+ ]
17283
+ },
17284
+ "description": "ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency.",
17285
+ "attribute": "currency"
17286
+ },
17287
+ {
17288
+ "kind": "field",
17289
+ "name": "currencySign",
17290
+ "type": {
17291
+ "text": "'standard' | 'accounting' | \"default\"",
17292
+ "_sourceAliases": [
17293
+ "CurrencySignOption"
17294
+ ],
17295
+ "values": [
17296
+ {
17297
+ "value": "standard",
17298
+ "description": ""
17299
+ },
17300
+ {
17301
+ "value": "accounting",
17302
+ "description": ""
17303
+ }
17304
+ ]
17305
+ },
17306
+ "description": "Currency sign style: 'standard' | 'accounting'.",
17307
+ "attribute": "currency-sign"
17308
+ },
17309
+ {
17310
+ "kind": "field",
17311
+ "name": "currencyDisplay",
17312
+ "type": {
17313
+ "text": "'symbol' | 'code' | 'name' | 'narrowSymbol' | \"default\"",
17314
+ "_sourceAliases": [
17315
+ "CurrencyDisplayOption"
17316
+ ],
17317
+ "values": [
17318
+ {
17319
+ "value": "symbol",
17320
+ "description": ""
17321
+ },
17322
+ {
17323
+ "value": "code",
17324
+ "description": ""
17325
+ },
17326
+ {
17327
+ "value": "name",
17328
+ "description": ""
17329
+ },
17330
+ {
17331
+ "value": "narrowSymbol",
17332
+ "description": ""
17333
+ }
17334
+ ]
17335
+ },
17336
+ "description": "Currency display style: 'symbol' | 'code' | 'name' | 'narrowSymbol'.",
17337
+ "attribute": "currency-display"
17338
+ },
17339
+ {
17340
+ "kind": "field",
17341
+ "name": "unit",
17342
+ "type": {
17343
+ "text": "string | \"default\"",
17344
+ "_sourceAliases": [],
17345
+ "values": [
17346
+ {
17347
+ "value": "string",
17348
+ "description": ""
17349
+ }
17350
+ ]
17351
+ },
17352
+ "description": "Unit identifier (such as kilometer or byte). Required when formatStyle is unit.",
17353
+ "attribute": "unit"
17354
+ },
17355
+ {
17356
+ "kind": "field",
17357
+ "name": "unitDisplay",
17358
+ "type": {
17359
+ "text": "'short' | 'long' | 'narrow' | \"default\"",
17360
+ "_sourceAliases": [
17361
+ "UnitDisplayOption"
17362
+ ],
17363
+ "values": [
17364
+ {
17365
+ "value": "short",
17366
+ "description": ""
17367
+ },
17368
+ {
17369
+ "value": "long",
17370
+ "description": ""
17371
+ },
17372
+ {
17373
+ "value": "narrow",
17374
+ "description": ""
17375
+ }
17376
+ ]
17377
+ },
17378
+ "description": "Unit display style: 'short' | 'long' | 'narrow'.",
17379
+ "attribute": "unit-display"
17380
+ },
17381
+ {
17382
+ "kind": "field",
17383
+ "name": "notation",
17384
+ "type": {
17385
+ "text": "'standard' | 'scientific' | 'engineering' | 'compact' | \"default\"",
17386
+ "_sourceAliases": [
17387
+ "NotationOption"
17388
+ ],
17389
+ "values": [
17390
+ {
17391
+ "value": "standard",
17392
+ "description": ""
17393
+ },
17394
+ {
17395
+ "value": "scientific",
17396
+ "description": ""
17397
+ },
17398
+ {
17399
+ "value": "engineering",
17400
+ "description": ""
17401
+ },
17402
+ {
17403
+ "value": "compact",
17404
+ "description": ""
17405
+ }
17406
+ ]
17407
+ },
17408
+ "description": "Number notation: 'standard' | 'scientific' | 'engineering' | 'compact'.",
17409
+ "attribute": "notation"
17410
+ },
17411
+ {
17412
+ "kind": "field",
17413
+ "name": "compactDisplay",
17414
+ "type": {
17415
+ "text": "'short' | 'long' | \"default\"",
17416
+ "_sourceAliases": [
17417
+ "CompactDisplayOption"
17418
+ ],
17419
+ "values": [
17420
+ {
17421
+ "value": "short",
17422
+ "description": ""
17423
+ },
17424
+ {
17425
+ "value": "long",
17426
+ "description": ""
17427
+ }
17428
+ ]
17429
+ },
17430
+ "description": "Compact notation display: 'short' | 'long'. Only applies when notation is compact.",
17431
+ "attribute": "compact-display"
17432
+ },
17433
+ {
17434
+ "kind": "field",
17435
+ "name": "signDisplay",
17436
+ "type": {
17437
+ "text": "'auto' | 'never' | 'always' | 'exceptZero' | \"default\"",
17438
+ "_sourceAliases": [
17439
+ "SignDisplayOption"
17440
+ ],
17441
+ "values": [
17442
+ {
17443
+ "value": "auto",
17444
+ "description": ""
17445
+ },
17446
+ {
17447
+ "value": "never",
17448
+ "description": ""
17449
+ },
17450
+ {
17451
+ "value": "always",
17452
+ "description": ""
17453
+ },
17454
+ {
17455
+ "value": "exceptZero",
17456
+ "description": ""
17457
+ }
17458
+ ]
17459
+ },
17460
+ "description": "Sign display: 'auto' | 'never' | 'always' | 'exceptZero'.",
17461
+ "attribute": "sign-display"
17462
+ },
17463
+ {
17464
+ "kind": "field",
17465
+ "name": "useGrouping",
17466
+ "type": {
17467
+ "text": "string | \"default\"",
17468
+ "_sourceAliases": [],
17469
+ "values": [
17470
+ {
17471
+ "value": "string",
17472
+ "description": ""
17473
+ }
17474
+ ]
17475
+ },
17476
+ "description": "Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'.",
17477
+ "attribute": "use-grouping"
17478
+ },
17479
+ {
17480
+ "kind": "field",
17481
+ "name": "minimumFractionDigits",
17482
+ "type": {
17483
+ "text": "number | \"default\"",
17484
+ "_sourceAliases": [],
17485
+ "values": [
17486
+ {
17487
+ "value": "number",
17488
+ "description": ""
17489
+ }
17490
+ ]
17491
+ },
17492
+ "description": "Pad fraction output to at least this many digits (0-20).",
17493
+ "attribute": "minimum-fraction-digits"
17494
+ },
17495
+ {
17496
+ "kind": "field",
17497
+ "name": "maximumFractionDigits",
17498
+ "type": {
17499
+ "text": "number | \"default\"",
17500
+ "_sourceAliases": [],
17501
+ "values": [
17502
+ {
17503
+ "value": "number",
17504
+ "description": ""
17505
+ }
17506
+ ]
17507
+ },
17508
+ "description": "Round fraction output to at most this many digits (0-20).",
17509
+ "attribute": "maximum-fraction-digits"
17510
+ },
17511
+ {
17512
+ "kind": "field",
17513
+ "name": "minimumIntegerDigits",
17514
+ "type": {
17515
+ "text": "number | \"default\"",
17516
+ "_sourceAliases": [],
17517
+ "values": [
17518
+ {
17519
+ "value": "number",
17520
+ "description": ""
17521
+ }
17522
+ ]
17523
+ },
17524
+ "description": "Pad integer output to at least this many digits (1-21).",
17525
+ "attribute": "minimum-integer-digits"
17526
+ },
17527
+ {
17528
+ "name": "nve-layout",
17529
+ "deprecated": true,
17530
+ "description": "not supported on custom element tags",
17531
+ "type": {
17532
+ "text": "string",
17533
+ "values": [
17534
+ {
17535
+ "value": "string",
17536
+ "description": ""
17537
+ },
17538
+ {
17539
+ "value": "string",
17540
+ "description": ""
17541
+ }
17542
+ ],
17543
+ "_sourceAliases": []
17544
+ },
17545
+ "attribute": "nve-layout",
17546
+ "kind": "field"
17547
+ },
17548
+ {
17549
+ "name": "nve-text",
17550
+ "deprecated": true,
17551
+ "description": "not supported on custom element tags",
17552
+ "type": {
17553
+ "text": "string",
17554
+ "values": [
17555
+ {
17556
+ "value": "string",
17557
+ "description": ""
17558
+ },
17559
+ {
17560
+ "value": "string",
17561
+ "description": ""
17562
+ }
17563
+ ],
17564
+ "_sourceAliases": []
17565
+ },
17566
+ "attribute": "nve-text",
17567
+ "kind": "field"
17568
+ }
17569
+ ],
17570
+ "attributes": [
17571
+ {
17572
+ "name": "number",
17573
+ "type": {
17574
+ "text": "string | \"default\"",
17575
+ "_sourceAliases": [],
17576
+ "values": [
17577
+ {
17578
+ "value": "string",
17579
+ "description": ""
17580
+ }
17581
+ ]
17582
+ },
17583
+ "description": "Optional numeric string for values supplied by JavaScript or bound data.\nBy default, the component formats the element's text content, which also serves as the SSR fallback.\nWhen both are present, this property takes precedence.",
17584
+ "fieldName": "number"
17585
+ },
17586
+ {
17587
+ "name": "locale",
17588
+ "type": {
17589
+ "text": "string | \"default\"",
17590
+ "_sourceAliases": [],
17591
+ "values": [
17592
+ {
17593
+ "value": "string",
17594
+ "description": ""
17595
+ }
17596
+ ]
17597
+ },
17598
+ "description": "Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default.",
17599
+ "fieldName": "locale"
17600
+ },
17601
+ {
17602
+ "name": "format-style",
17603
+ "type": {
17604
+ "text": "'decimal' | 'currency' | 'percent' | 'unit'",
17605
+ "_sourceAliases": [
17606
+ "FormatNumberStyle"
17607
+ ],
17608
+ "values": [
17609
+ {
17610
+ "value": "decimal",
17611
+ "description": ""
17612
+ },
17613
+ {
17614
+ "value": "currency",
17615
+ "description": ""
17616
+ },
17617
+ {
17618
+ "value": "percent",
17619
+ "description": ""
17620
+ },
17621
+ {
17622
+ "value": "unit",
17623
+ "description": ""
17624
+ }
17625
+ ]
17626
+ },
17627
+ "default": "'decimal'",
17628
+ "description": "Formatting style: 'decimal' | 'currency' | 'percent' | 'unit'.",
17629
+ "fieldName": "formatStyle"
17630
+ },
17631
+ {
17632
+ "name": "currency",
17633
+ "type": {
17634
+ "text": "string | \"default\"",
17635
+ "_sourceAliases": [],
17636
+ "values": [
17637
+ {
17638
+ "value": "string",
17639
+ "description": ""
17640
+ }
17641
+ ]
17642
+ },
17643
+ "description": "ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency.",
17644
+ "fieldName": "currency"
17645
+ },
17646
+ {
17647
+ "name": "currency-sign",
17648
+ "type": {
17649
+ "text": "'standard' | 'accounting' | \"default\"",
17650
+ "_sourceAliases": [
17651
+ "CurrencySignOption"
17652
+ ],
17653
+ "values": [
17654
+ {
17655
+ "value": "standard",
17656
+ "description": ""
17657
+ },
17658
+ {
17659
+ "value": "accounting",
17660
+ "description": ""
17661
+ }
17662
+ ]
17663
+ },
17664
+ "description": "Currency sign style: 'standard' | 'accounting'.",
17665
+ "fieldName": "currencySign"
17666
+ },
17667
+ {
17668
+ "name": "currency-display",
17669
+ "type": {
17670
+ "text": "'symbol' | 'code' | 'name' | 'narrowSymbol' | \"default\"",
17671
+ "_sourceAliases": [
17672
+ "CurrencyDisplayOption"
17673
+ ],
17674
+ "values": [
17675
+ {
17676
+ "value": "symbol",
17677
+ "description": ""
17678
+ },
17679
+ {
17680
+ "value": "code",
17681
+ "description": ""
17682
+ },
17683
+ {
17684
+ "value": "name",
17685
+ "description": ""
17686
+ },
17687
+ {
17688
+ "value": "narrowSymbol",
17689
+ "description": ""
17690
+ }
17691
+ ]
17692
+ },
17693
+ "description": "Currency display style: 'symbol' | 'code' | 'name' | 'narrowSymbol'.",
17694
+ "fieldName": "currencyDisplay"
17695
+ },
17696
+ {
17697
+ "name": "unit",
17698
+ "type": {
17699
+ "text": "string | \"default\"",
17700
+ "_sourceAliases": [],
17701
+ "values": [
17702
+ {
17703
+ "value": "string",
17704
+ "description": ""
17705
+ }
17706
+ ]
17707
+ },
17708
+ "description": "Unit identifier (such as kilometer or byte). Required when formatStyle is unit.",
17709
+ "fieldName": "unit"
17710
+ },
17711
+ {
17712
+ "name": "unit-display",
17713
+ "type": {
17714
+ "text": "'short' | 'long' | 'narrow' | \"default\"",
17715
+ "_sourceAliases": [
17716
+ "UnitDisplayOption"
17717
+ ],
17718
+ "values": [
17719
+ {
17720
+ "value": "short",
17721
+ "description": ""
17722
+ },
17723
+ {
17724
+ "value": "long",
17725
+ "description": ""
17726
+ },
17727
+ {
17728
+ "value": "narrow",
17729
+ "description": ""
17730
+ }
17731
+ ]
17732
+ },
17733
+ "description": "Unit display style: 'short' | 'long' | 'narrow'.",
17734
+ "fieldName": "unitDisplay"
17735
+ },
17736
+ {
17737
+ "name": "notation",
17738
+ "type": {
17739
+ "text": "'standard' | 'scientific' | 'engineering' | 'compact' | \"default\"",
17740
+ "_sourceAliases": [
17741
+ "NotationOption"
17742
+ ],
17743
+ "values": [
17744
+ {
17745
+ "value": "standard",
17746
+ "description": ""
17747
+ },
17748
+ {
17749
+ "value": "scientific",
17750
+ "description": ""
17751
+ },
17752
+ {
17753
+ "value": "engineering",
17754
+ "description": ""
17755
+ },
17756
+ {
17757
+ "value": "compact",
17758
+ "description": ""
17759
+ }
17760
+ ]
17761
+ },
17762
+ "description": "Number notation: 'standard' | 'scientific' | 'engineering' | 'compact'.",
17763
+ "fieldName": "notation"
17764
+ },
17765
+ {
17766
+ "name": "compact-display",
17767
+ "type": {
17768
+ "text": "'short' | 'long' | \"default\"",
17769
+ "_sourceAliases": [
17770
+ "CompactDisplayOption"
17771
+ ],
17772
+ "values": [
17773
+ {
17774
+ "value": "short",
17775
+ "description": ""
17776
+ },
17777
+ {
17778
+ "value": "long",
17779
+ "description": ""
17780
+ }
17781
+ ]
17782
+ },
17783
+ "description": "Compact notation display: 'short' | 'long'. Only applies when notation is compact.",
17784
+ "fieldName": "compactDisplay"
17785
+ },
17786
+ {
17787
+ "name": "sign-display",
17788
+ "type": {
17789
+ "text": "'auto' | 'never' | 'always' | 'exceptZero' | \"default\"",
17790
+ "_sourceAliases": [
17791
+ "SignDisplayOption"
17792
+ ],
17793
+ "values": [
17794
+ {
17795
+ "value": "auto",
17796
+ "description": ""
17797
+ },
17798
+ {
17799
+ "value": "never",
17800
+ "description": ""
17801
+ },
17802
+ {
17803
+ "value": "always",
17804
+ "description": ""
17805
+ },
17806
+ {
17807
+ "value": "exceptZero",
17808
+ "description": ""
17809
+ }
17810
+ ]
17811
+ },
17812
+ "description": "Sign display: 'auto' | 'never' | 'always' | 'exceptZero'.",
17813
+ "fieldName": "signDisplay"
17814
+ },
17815
+ {
17816
+ "name": "use-grouping",
17817
+ "type": {
17818
+ "text": "string | \"default\"",
17819
+ "_sourceAliases": [],
17820
+ "values": [
17821
+ {
17822
+ "value": "string",
17823
+ "description": ""
17824
+ }
17825
+ ]
17826
+ },
17827
+ "description": "Grouping separators: 'auto' | 'always' | 'min2' | 'true' | 'false'.",
17828
+ "fieldName": "useGrouping"
17829
+ },
17830
+ {
17831
+ "name": "minimum-fraction-digits",
17832
+ "type": {
17833
+ "text": "number | \"default\"",
17834
+ "_sourceAliases": [],
17835
+ "values": [
17836
+ {
17837
+ "value": "number",
17838
+ "description": ""
17839
+ }
17840
+ ]
17841
+ },
17842
+ "description": "Pad fraction output to at least this many digits (0-20).",
17843
+ "fieldName": "minimumFractionDigits"
17844
+ },
17845
+ {
17846
+ "name": "maximum-fraction-digits",
17847
+ "type": {
17848
+ "text": "number | \"default\"",
17849
+ "_sourceAliases": [],
17850
+ "values": [
17851
+ {
17852
+ "value": "number",
17853
+ "description": ""
17854
+ }
17855
+ ]
17856
+ },
17857
+ "description": "Round fraction output to at most this many digits (0-20).",
17858
+ "fieldName": "maximumFractionDigits"
17859
+ },
17860
+ {
17861
+ "name": "minimum-integer-digits",
17862
+ "type": {
17863
+ "text": "number | \"default\"",
17864
+ "_sourceAliases": [],
17865
+ "values": [
17866
+ {
17867
+ "value": "number",
17868
+ "description": ""
17869
+ }
17870
+ ]
17871
+ },
17872
+ "description": "Pad integer output to at least this many digits (1-21).",
17873
+ "fieldName": "minimumIntegerDigits"
17874
+ },
17875
+ {
17876
+ "name": "nve-layout",
17877
+ "deprecated": true,
17878
+ "description": "not supported on custom element tags",
17879
+ "type": {
17880
+ "text": "string",
17881
+ "values": [
17882
+ {
17883
+ "value": "string",
17884
+ "description": ""
17885
+ },
17886
+ {
17887
+ "value": "string",
17888
+ "description": ""
17889
+ }
17890
+ ],
17891
+ "_sourceAliases": []
17892
+ }
17893
+ },
17894
+ {
17895
+ "name": "nve-text",
17896
+ "deprecated": true,
17897
+ "description": "not supported on custom element tags",
17898
+ "type": {
17899
+ "text": "string",
17900
+ "values": [
17901
+ {
17902
+ "value": "string",
17903
+ "description": ""
17904
+ },
17905
+ {
17906
+ "value": "string",
17907
+ "description": ""
17908
+ }
17909
+ ],
17910
+ "_sourceAliases": []
17911
+ }
17912
+ }
17913
+ ],
17914
+ "superclass": {
17915
+ "name": "LitElement",
17916
+ "package": "lit"
17917
+ },
17918
+ "tagName": "nve-format-number",
17919
+ "customElement": true,
17920
+ "metadata": {
17921
+ "unitTests": true,
17922
+ "apiReview": true,
17923
+ "performance": true,
17924
+ "stable": true,
17925
+ "vqa": true,
17926
+ "responsive": true,
17927
+ "themes": true,
17928
+ "aria": "#",
17929
+ "entrypoint": "@nvidia-elements/core/format-number",
17930
+ "example": "<nve-format-number>1234567.89</nve-format-number>",
17931
+ "package": true,
17932
+ "since": "0.0.0",
17933
+ "status": "beta",
17934
+ "behavior": "content",
17935
+ "markdown": "## nve-format-number\n\nA localized number formatter for currencies, percentages, units, and compact notation, backed by Intl.NumberFormat.\nProvide a `currency` attribute when `formatStyle` is `currency`, and a `unit` attribute when `formatStyle` is `unit`.\n\n### Example\n\n```html\n<nve-format-number>1234567.89</nve-format-number>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/format-number/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | Numeric string to format (such as 1234567 or 1234.56). Serves as fallback before hydration. |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| number | `string \\| \"default\"` | Optional numeric string for values supplied by JavaScript or bound data. By default, the component formats the element's text content, which also serves as the SSR fallback. When both are present, this property takes precedence. |\n| locale | `string \\| \"default\"` | Language tag (such as en-US, de-DE). Defaults to document.documentElement.lang or browser default. |\n| formatStyle (format-style) | `'decimal' \\| 'currency' \\| 'percent' \\| 'unit'` | Formatting style: 'decimal' \\| 'currency' \\| 'percent' \\| 'unit'. |\n| currency | `string \\| \"default\"` | ISO 4217 currency code (such as USD or EUR). Required when formatStyle is currency. |\n| currencySign (currency-sign) | `'standard' \\| 'accounting' \\| \"default\"` | Currency sign style: 'standard' \\| 'accounting'. |\n| currencyDisplay (currency-display) | `'symbol' \\| 'code' \\| 'name' \\| 'narrowSymbol' \\| \"default\"` | Currency display style: 'symbol' \\| 'code' \\| 'name' \\| 'narrowSymbol'. |\n| unit | `string \\| \"default\"` | Unit identifier (such as kilometer or byte). Required when formatStyle is unit. |\n| unitDisplay (unit-display) | `'short' \\| 'long' \\| 'narrow' \\| \"default\"` | Unit display style: 'short' \\| 'long' \\| 'narrow'. |\n| notation | `'standard' \\| 'scientific' \\| 'engineering' \\| 'compact' \\| \"default\"` | Number notation: 'standard' \\| 'scientific' \\| 'engineering' \\| 'compact'. |\n| compactDisplay (compact-display) | `'short' \\| 'long' \\| \"default\"` | Compact notation display: 'short' \\| 'long'. Only applies when notation is compact. |\n| signDisplay (sign-display) | `'auto' \\| 'never' \\| 'always' \\| 'exceptZero' \\| \"default\"` | Sign display: 'auto' \\| 'never' \\| 'always' \\| 'exceptZero'. |\n| useGrouping (use-grouping) | `string \\| \"default\"` | Grouping separators: 'auto' \\| 'always' \\| 'min2' \\| 'true' \\| 'false'. |\n| minimumFractionDigits (minimum-fraction-digits) | `number \\| \"default\"` | Pad fraction output to at least this many digits (0-20). |\n| maximumFractionDigits (maximum-fraction-digits) | `number \\| \"default\"` | Round fraction output to at most this many digits (0-20). |\n| minimumIntegerDigits (minimum-integer-digits) | `number \\| \"default\"` | Pad integer output to at least this many digits (1-21). |"
17936
+ }
17937
+ }
17938
+ ],
17939
+ "exports": [
17940
+ {
17941
+ "kind": "js",
17942
+ "name": "FormatNumber",
17943
+ "declaration": {
17944
+ "name": "FormatNumber",
17945
+ "module": "/src/format-number/format-number.js"
17946
+ }
17947
+ }
17948
+ ]
17949
+ },
17950
+ {
17951
+ "kind": "javascript-module",
17952
+ "path": "/src/format-number/index.js",
17953
+ "declarations": [],
17954
+ "exports": [
17955
+ {
17956
+ "kind": "js",
17957
+ "name": "*",
17958
+ "declaration": {
17959
+ "name": "*",
17960
+ "module": "home/runner/work/elements/elements/projects/core/src/format-number/format-number.js"
17961
+ }
17962
+ }
17963
+ ]
17964
+ },
17179
17965
  {
17180
17966
  "kind": "javascript-module",
17181
17967
  "path": "/src/format-relative-time/define.js",
@@ -34399,12 +35185,12 @@
34399
35185
  "themes": true,
34400
35186
  "aria": "https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img",
34401
35187
  "entrypoint": "@nvidia-elements/core/logo",
34402
- "example": "<nve-logo aria-label=\"NVIDIA\"></nve-logo>",
35188
+ "example": "<nve-logo aria-label=\"NVIDIA\">NV</nve-logo>",
34403
35189
  "package": true,
34404
35190
  "since": "0.10.0",
34405
35191
  "status": "stable",
34406
35192
  "behavior": "content",
34407
- "markdown": "## nve-logo\n\nA visual indicator for a brand or application.\n\n### Example\n\n```html\n<nve-logo aria-label=\"NVIDIA\"></nve-logo>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/logo/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for content |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| color | `'red-cardinal' \\| 'gray-slate' \\| 'gray-denim' \\| 'blue-indigo' \\| 'blue-cobalt' \\| 'blue-sky' \\| 'teal-cyan' \\| 'green-mint' \\| 'teal-seafoam' \\| 'green-grass' \\| 'yellow-amber' \\| 'orange-pumpkin' \\| 'red-tomato' \\| 'pink-magenta' \\| 'purple-plum' \\| 'purple-violet' \\| 'purple-lavender' \\| 'pink-rose' \\| 'green-jade' \\| 'lime-pear' \\| 'yellow-nova' \\| 'brand-green'` | Defines a base color from the theme color palette |\n| size | `'sm' \\| 'md' \\| 'lg' \\| \"default\"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --background | `string` | [MDN](https://mdn.dev/CSS/background) |\n| --gap | `string` | [MDN](https://mdn.dev/CSS/gap) |\n| --color | `string` | [MDN](https://mdn.dev/CSS/color) |\n| --height | `string` | [MDN](https://mdn.dev/CSS/height) |\n| --width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) |\n| --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) |\n| --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) |"
35193
+ "markdown": "## nve-logo\n\nA visual indicator for a brand or application.\n\n### Example\n\n```html\n<nve-logo aria-label=\"NVIDIA\">NV</nve-logo>\n```\n\n### Import\n\n```javascript\nimport '@nvidia-elements/core/logo/define.js';\n```\n\n### Slots\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| (default) | `string` | default slot for content |\n\n### Properties / Attributes\n\n| property (attribute) | value | description |\n| -------------------- | ----- | ----------- |\n| color | `'red-cardinal' \\| 'gray-slate' \\| 'gray-denim' \\| 'blue-indigo' \\| 'blue-cobalt' \\| 'blue-sky' \\| 'teal-cyan' \\| 'green-mint' \\| 'teal-seafoam' \\| 'green-grass' \\| 'yellow-amber' \\| 'orange-pumpkin' \\| 'red-tomato' \\| 'pink-magenta' \\| 'purple-plum' \\| 'purple-violet' \\| 'purple-lavender' \\| 'pink-rose' \\| 'green-jade' \\| 'lime-pear' \\| 'yellow-nova' \\| 'brand-green'` | Defines a base color from the theme color palette |\n| size | `'sm' \\| 'md' \\| 'lg' \\| \"default\"` | Controls the visual scale of an element to match its importance and available space. - `sm` Compact size for dense layouts or secondary elements with less visual prominence. - `md` Standard size that works well in most contexts and provides balanced visibility. - `lg` Larger size for emphasizing important elements or improving touch targets in spacious layouts. |\n\n### CSS Properties\n\n| name | value | description |\n| ---- | ----- | ----------- |\n| --background | `string` | [MDN](https://mdn.dev/CSS/background) |\n| --gap | `string` | [MDN](https://mdn.dev/CSS/gap) |\n| --color | `string` | [MDN](https://mdn.dev/CSS/color) |\n| --height | `string` | [MDN](https://mdn.dev/CSS/height) |\n| --width | `string` | [MDN](https://mdn.dev/CSS/width) |\n| --font-size | `string` | [MDN](https://mdn.dev/CSS/font-size) |\n| --border-radius | `string` | [MDN](https://mdn.dev/CSS/border-radius) |\n| --font-weight | `string` | [MDN](https://mdn.dev/CSS/font-weight) |"
34408
35194
  }
34409
35195
  }
34410
35196
  ],