@nvidia-elements/core 0.2.2 → 0.2.3

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 (141) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/accordion/accordion2.js +39 -39
  3. package/dist/alert/alert-group2.js +14 -14
  4. package/dist/alert/alert2.js +20 -20
  5. package/dist/avatar/avatar-group2.js +1 -1
  6. package/dist/avatar/avatar2.js +6 -6
  7. package/dist/badge/badge2.js +21 -21
  8. package/dist/breadcrumb/breadcrumb2.js +12 -12
  9. package/dist/bundles/index.d.ts +418 -1802
  10. package/dist/bundles/index.js +6 -6
  11. package/dist/button/button.d.ts +5 -2
  12. package/dist/button/button2.js +13 -13
  13. package/dist/button/button2.js.map +1 -1
  14. package/dist/button-group/button-group2.js +15 -15
  15. package/dist/card/card2.js +17 -17
  16. package/dist/chat-message/chat-message2.js +7 -7
  17. package/dist/checkbox/checkbox-group2.js +7 -7
  18. package/dist/checkbox/checkbox2.js +7 -7
  19. package/dist/color/color2.js +7 -7
  20. package/dist/combobox/combobox2.js +10 -10
  21. package/dist/copy-button/copy-button2.js +10 -10
  22. package/dist/custom-elements-jsx.d.ts +346 -613
  23. package/dist/custom-elements-vue.d.ts +346 -613
  24. package/dist/custom-elements.json +4870 -14220
  25. package/dist/data.html.json +252 -168
  26. package/dist/data.snippets.json +42 -42
  27. package/dist/date/date2.js +7 -7
  28. package/dist/datetime/datetime2.js +7 -7
  29. package/dist/dialog/dialog-footer2.js +6 -6
  30. package/dist/dialog/dialog-header2.js +6 -6
  31. package/dist/dialog/dialog2.js +19 -19
  32. package/dist/divider/divider2.js +5 -5
  33. package/dist/dot/dot2.js +8 -8
  34. package/dist/drawer/drawer-content2.js +6 -6
  35. package/dist/drawer/drawer-footer2.js +6 -6
  36. package/dist/drawer/drawer-header2.js +6 -6
  37. package/dist/drawer/drawer2.js +19 -19
  38. package/dist/dropdown/dropdown-footer2.js +6 -6
  39. package/dist/dropdown/dropdown-header2.js +6 -6
  40. package/dist/dropdown/dropdown2.js +16 -16
  41. package/dist/dropdown-group/dropdown-group.js +16 -16
  42. package/dist/dropzone/dropzone.d.ts +1 -404
  43. package/dist/dropzone/dropzone2.js +14 -14
  44. package/dist/dropzone/dropzone2.js.map +1 -1
  45. package/dist/file/file2.js +1 -1
  46. package/dist/format-datetime/format-datetime2.js +10 -10
  47. package/dist/format-number/format-number2.js +16 -16
  48. package/dist/format-relative-time/format-relative-time2.js +7 -7
  49. package/dist/forms/control/control2.js +19 -19
  50. package/dist/forms/control-group/control-group2.js +6 -6
  51. package/dist/forms/control-message/control-message2.js +9 -9
  52. package/dist/grid/cell/cell2.js +1 -1
  53. package/dist/grid/column/column2.js +10 -10
  54. package/dist/grid/footer/footer2.js +6 -6
  55. package/dist/grid/grid2.js +12 -12
  56. package/dist/grid/header/header2.js +9 -9
  57. package/dist/grid/placeholder/placeholder2.js +1 -1
  58. package/dist/grid/row/row2.js +9 -9
  59. package/dist/icon/icon2.js +15 -15
  60. package/dist/icon-button/icon-button2.js +9 -9
  61. package/dist/index.js +4 -4
  62. package/dist/input/input-group2.js +1 -1
  63. package/dist/input/input2.js +6 -6
  64. package/dist/internal/controllers/keynav-grid.controller.js +39 -39
  65. package/dist/internal/controllers/type-button.controller.examples.js.map +1 -1
  66. package/dist/internal/controllers/type-button.controller.examples.json +1 -1
  67. package/dist/internal/controllers/type-command.controller.d.ts +10 -1
  68. package/dist/internal/controllers/type-command.controller.js +23 -14
  69. package/dist/internal/controllers/type-command.controller.js.map +1 -1
  70. package/dist/internal/controllers/type-native-popover.utils.js +7 -7
  71. package/dist/internal/index.d.ts +0 -1
  72. package/dist/internal/index.js +40 -41
  73. package/dist/internal/services/global.service.js +1 -1
  74. package/dist/logo/logo2.js +6 -6
  75. package/dist/menu/menu-item.d.ts +4 -2
  76. package/dist/menu/menu-item2.js +12 -12
  77. package/dist/menu/menu-item2.js.map +1 -1
  78. package/dist/menu/menu2.js +10 -10
  79. package/dist/month/month2.js +7 -7
  80. package/dist/notification/notification-group2.js +11 -11
  81. package/dist/notification/notification2.js +22 -22
  82. package/dist/page/page-panel/page-panel-content2.js +1 -1
  83. package/dist/page/page-panel/page-panel-footer2.js +6 -6
  84. package/dist/page/page-panel/page-panel-header2.js +6 -6
  85. package/dist/page/page-panel/page-panel2.js +14 -14
  86. package/dist/page/page2.js +9 -9
  87. package/dist/page-header/page-header2.js +1 -1
  88. package/dist/page-loader/page-loader2.js +10 -10
  89. package/dist/pagination/pagination.d.ts +1 -404
  90. package/dist/pagination/pagination2.js +17 -17
  91. package/dist/pagination/pagination2.js.map +1 -1
  92. package/dist/panel/panel2.js +21 -21
  93. package/dist/password/password2.js +7 -7
  94. package/dist/preferences-input/preferences-input.d.ts +1 -404
  95. package/dist/preferences-input/preferences-input2.js +9 -9
  96. package/dist/preferences-input/preferences-input2.js.map +1 -1
  97. package/dist/progress-bar/progress-bar2.js +8 -8
  98. package/dist/progress-ring/progress-ring2.js +15 -15
  99. package/dist/progressive-filter-chip/progressive-filter-chip2.js +15 -15
  100. package/dist/pulse/pulse2.js +6 -6
  101. package/dist/radio/radio-group2.js +7 -7
  102. package/dist/radio/radio2.js +7 -7
  103. package/dist/range/range2.js +5 -5
  104. package/dist/resize-handle/resize-handle.d.ts +1 -404
  105. package/dist/resize-handle/resize-handle2.js +16 -16
  106. package/dist/resize-handle/resize-handle2.js.map +1 -1
  107. package/dist/search/search2.js +8 -8
  108. package/dist/select/select2.js +18 -18
  109. package/dist/skeleton/skeleton2.js +7 -7
  110. package/dist/sort-button/sort-button.d.ts +4 -2
  111. package/dist/sort-button/sort-button2.js +19 -19
  112. package/dist/sort-button/sort-button2.js.map +1 -1
  113. package/dist/sparkline/sparkline2.js +14 -14
  114. package/dist/star-rating/star-rating2.js +6 -6
  115. package/dist/steps/steps.d.ts +4 -2
  116. package/dist/steps/steps2.js +36 -36
  117. package/dist/steps/steps2.js.map +1 -1
  118. package/dist/switch/switch-group2.js +6 -6
  119. package/dist/switch/switch2.js +7 -7
  120. package/dist/tabs/tabs-group2.js +21 -21
  121. package/dist/tabs/tabs.d.ts +4 -2
  122. package/dist/tabs/tabs2.js +30 -30
  123. package/dist/tabs/tabs2.js.map +1 -1
  124. package/dist/tag/tag.d.ts +5 -2
  125. package/dist/tag/tag2.js +20 -20
  126. package/dist/tag/tag2.js.map +1 -1
  127. package/dist/textarea/textarea2.js +1 -1
  128. package/dist/time/time2.js +7 -7
  129. package/dist/toast/toast2.js +21 -21
  130. package/dist/toggletip/toggletip-footer2.js +6 -6
  131. package/dist/toggletip/toggletip-header2.js +6 -6
  132. package/dist/toggletip/toggletip2.js +17 -17
  133. package/dist/toolbar/toolbar2.js +11 -11
  134. package/dist/tooltip/tooltip2.js +16 -16
  135. package/dist/tree/tree-node2.js +30 -30
  136. package/dist/tree/tree2.js +14 -14
  137. package/dist/week/week2.js +7 -7
  138. package/package.json +3 -3
  139. package/dist/internal/base/button.d.ts +0 -114
  140. package/dist/internal/base/button.js +0 -117
  141. package/dist/internal/base/button.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { attachInternals as e } from "../internal/utils/a11y.js";
2
- import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
3
- import { useStyles as n } from "../internal/styles/index.js";
2
+ import { useStyles as t } from "../internal/styles/index.js";
3
+ import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
4
  import r from "./skeleton.js";
5
5
  import { LitElement as i, html as a } from "lit";
6
6
  import { property as o } from "lit/decorators/property.js";
@@ -10,12 +10,12 @@ var s = class extends i {
10
10
  super(...e), this.hidden = !1;
11
11
  }
12
12
  static {
13
- this.styles = n([r]);
13
+ this.styles = t([r]);
14
14
  }
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-skeleton",
18
- version: "0.2.2"
18
+ version: "0.2.3"
19
19
  };
20
20
  }
21
21
  render() {
@@ -31,13 +31,13 @@ var s = class extends i {
31
31
  e.target.assignedNodes().some((e) => e.nodeType === Node.ELEMENT_NODE || e.nodeType === Node.TEXT_NODE && e.textContent?.trim() !== "") ? this._internals.states.add("slotted") : this._internals.states.delete("slotted");
32
32
  }
33
33
  };
34
- t([o({
34
+ n([o({
35
35
  type: String,
36
36
  reflect: !0
37
- })], s.prototype, "effect", void 0), t([o({
37
+ })], s.prototype, "effect", void 0), n([o({
38
38
  type: String,
39
39
  reflect: !0
40
- })], s.prototype, "shape", void 0), t([o({
40
+ })], s.prototype, "shape", void 0), n([o({
41
41
  type: Boolean,
42
42
  reflect: !0
43
43
  })], s.prototype, "hidden", void 0);
@@ -1,5 +1,6 @@
1
+ import { LitElement } from 'lit';
1
2
  import { Icon } from '../icon';
2
- import { BaseButton } from '../internal';
3
+ declare const SortButton_base: import('@nvidia-elements/forms/mixins').ButtonFormControlMixinReturn<typeof LitElement>;
3
4
  /**
4
5
  * @element nve-sort-button
5
6
  * @description A sort button is a control that enables users to sort a list of items in ascending or descending order.
@@ -13,7 +14,7 @@ import { BaseButton } from '../internal';
13
14
  * @csspart icon - The icon element
14
15
  * @aria https://www.w3.org/WAI/ARIA/apg/patterns/spinbutton/
15
16
  */
16
- export declare class SortButton extends BaseButton {
17
+ export declare class SortButton extends SortButton_base {
17
18
  #private;
18
19
  static styles: import('lit').CSSResult[];
19
20
  static readonly metadata: {
@@ -38,3 +39,4 @@ export declare class SortButton extends BaseButton {
38
39
  connectedCallback(): void;
39
40
  disconnectedCallback(): void;
40
41
  }
42
+ export {};
@@ -1,40 +1,40 @@
1
- import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
2
- import { BaseButton as t } from "../internal/base/button.js";
3
- import { I18nController as n } from "../internal/controllers/i18n.controller.js";
4
- import { scopedRegistry as r } from "../internal/decorators/scoped-registry.js";
5
- import { useStyles as i } from "../internal/styles/index.js";
6
- import { Icon as a } from "../icon/icon2.js";
7
- import o from "./sort-button.js";
8
- import { html as s } from "lit";
1
+ import { I18nController as e } from "../internal/controllers/i18n.controller.js";
2
+ import { scopedRegistry as t } from "../internal/decorators/scoped-registry.js";
3
+ import { useStyles as n } from "../internal/styles/index.js";
4
+ import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
5
+ import { Icon as i } from "../icon/icon2.js";
6
+ import a from "./sort-button.js";
7
+ import { LitElement as o, html as s } from "lit";
9
8
  import { property as c } from "lit/decorators/property.js";
9
+ import { ButtonFormControlMixin as l } from "@nvidia-elements/forms/mixins";
10
10
  //#region src/sort-button/sort-button.ts
11
- var l = {
11
+ var u = {
12
12
  none: "ascending",
13
13
  ascending: "descending",
14
14
  descending: "none"
15
- }, u = class extends t {
15
+ }, d = class extends l(o) {
16
16
  static {
17
- this.styles = i([o]);
17
+ this.styles = n([a]);
18
18
  }
19
19
  static {
20
20
  this.metadata = {
21
21
  tag: "nve-sort-button",
22
- version: "0.2.2"
22
+ version: "0.2.3"
23
23
  };
24
24
  }
25
25
  static {
26
- this.elementDefinitions = { [a.metadata.tag]: a };
26
+ this.elementDefinitions = { [i.metadata.tag]: i };
27
27
  }
28
28
  #e;
29
29
  render() {
30
30
  return s`<div internal-host focus-within><nve-icon part="icon" .name="${this.sort === "descending" ? "sort-descending" : "sort-ascending"}" aria-hidden="true"></nve-icon></div>`;
31
31
  }
32
32
  constructor() {
33
- super(), this.sort = "none", this.#e = new n(this), this.i18n = this.#e.i18n, this.#t = () => {
34
- this._internals.ariaLabel = `${this.#e.i18n.sort} ${l[this.sort]}`, this.dispatchEvent(new CustomEvent("sort", {
33
+ super(), this.sort = "none", this.#e = new e(this), this.i18n = this.#e.i18n, this.#t = () => {
34
+ this._internals.ariaLabel = `${this.#e.i18n.sort} ${u[this.sort]}`, this.dispatchEvent(new CustomEvent("sort", {
35
35
  detail: {
36
36
  value: this.sort,
37
- next: l[this.sort]
37
+ next: u[this.sort]
38
38
  },
39
39
  bubbles: !0,
40
40
  composed: !0
@@ -49,11 +49,11 @@ var l = {
49
49
  }
50
50
  #t;
51
51
  };
52
- e([c({
52
+ r([c({
53
53
  type: String,
54
54
  reflect: !0
55
- })], u.prototype, "sort", void 0), e([c({ type: Object })], u.prototype, "i18n", void 0), u = e([r()], u);
55
+ })], d.prototype, "sort", void 0), r([c({ type: Object })], d.prototype, "i18n", void 0), d = r([t()], d);
56
56
  //#endregion
57
- export { u as SortButton };
57
+ export { d as SortButton };
58
58
 
59
59
  //# sourceMappingURL=sort-button2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sort-button2.js","names":["#i18nController","#onClick"],"sources":["../../src/sort-button/sort-button.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { Icon } from '@nvidia-elements/core/icon';\nimport { useStyles, BaseButton, I18nController, scopedRegistry } from '@nvidia-elements/core/internal';\nimport styles from './sort-button.css?inline';\n\nconst nextSort = {\n none: 'ascending',\n ascending: 'descending',\n descending: 'none'\n};\n\n/**\n * @element nve-sort-button\n * @description A sort button is a control that enables users to sort a list of items in ascending or descending order.\n * @since 0.11.0\n * @entrypoint \\@nvidia-elements/core/sort-button\n * @event sort - Dispatched on sort button click, returns the current sort value and the next sort value.\n * @cssprop --width\n * @cssprop --height\n * @cssprop --border-radius\n * @cssprop --color\n * @csspart icon - The icon element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/spinbutton/\n */\n@scopedRegistry()\nexport class SortButton extends BaseButton {\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-sort-button',\n version: '0.0.0'\n };\n\n static elementDefinitions = {\n [Icon.metadata.tag]: Icon\n };\n\n /**\n * The current sort value, can be ascending, descending, or none.\n */\n @property({ type: String, reflect: true }) sort: 'ascending' | 'descending' | 'none' = 'none';\n\n #i18nController: I18nController<this> = new I18nController<this>(this);\n\n /**\n * Updates internal string values for internationalization.\n */\n @property({ type: Object }) i18n = this.#i18nController.i18n;\n\n render() {\n return html`\n <div internal-host focus-within>\n <nve-icon part=\"icon\" .name=${this.sort === 'descending' ? 'sort-descending' : 'sort-ascending'} aria-hidden=\"true\"></nve-icon>\n </div>\n `;\n }\n\n constructor() {\n super();\n this.type = 'button';\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = 'spinbutton';\n this.addEventListener('click', this.#onClick);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.#onClick);\n }\n\n #onClick = () => {\n this._internals.ariaLabel = `${this.#i18nController.i18n.sort} ${nextSort[this.sort]}`;\n this.dispatchEvent(\n new CustomEvent('sort', {\n detail: { value: this.sort, next: nextSort[this.sort] },\n bubbles: true,\n composed: true\n })\n );\n };\n}\n"],"mappings":";;;;;;;;;;AASA,IAAM,IAAW;CACf,MAAM;CACN,WAAW;CACX,YAAY;AACd,GAgBO,IAAA,cAAyB,EAAW;;gBACzB,EAAU,CAAC,CAAM,CAAC;;;kBAEP;GACzB,KAAK;GACL,SAAS;EACX;;;4BAE4B,GACzB,EAAK,SAAS,MAAM,EACvB;;CAOA;CAOA,SAAS;EACP,OAAO,CAAI,gEAEuB,KAAK,SAAS,eAAe,oBAAoB,iBAAiB;CAGtG;CAEA,cAAc;EAEZ,AADA,MAAM,eAlB+E,kBAE/C,IAAI,EAAqB,IAAI,eAKlC,KAAKA,GAAgB,sBA0BvC;GAEf,AADA,KAAK,WAAW,YAAY,GAAG,KAAKA,GAAgB,KAAK,KAAK,GAAG,EAAS,KAAK,SAC/E,KAAK,cACH,IAAI,YAAY,QAAQ;IACtB,QAAQ;KAAE,OAAO,KAAK;KAAM,MAAM,EAAS,KAAK;IAAM;IACtD,SAAS;IACT,UAAU;GACZ,CAAC,CACH;EACF,GAvBE,KAAK,OAAO;CACd;CAEA,oBAAoB;EAGlB,AAFA,MAAM,kBAAkB,GACxB,KAAK,WAAW,OAAO,cACvB,KAAK,iBAAiB,SAAS,KAAKC,EAAQ;CAC9C;CAEA,uBAAuB;EAErB,AADA,MAAM,qBAAqB,GAC3B,KAAK,oBAAoB,SAAS,KAAKA,EAAQ;CACjD;CAEA;AAUF;GA3CG,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MAOxC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAvB3B,EAAe,CAAA,GAAA,CAAA"}
1
+ {"version":3,"file":"sort-button2.js","names":["#i18nController","#onClick"],"sources":["../../src/sort-button/sort-button.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { ButtonFormControlMixin } from '@nvidia-elements/forms/mixins';\nimport { Icon } from '@nvidia-elements/core/icon';\nimport { useStyles, I18nController, scopedRegistry } from '@nvidia-elements/core/internal';\nimport styles from './sort-button.css?inline';\n\nconst nextSort = {\n none: 'ascending',\n ascending: 'descending',\n descending: 'none'\n};\n\n/**\n * @element nve-sort-button\n * @description A sort button is a control that enables users to sort a list of items in ascending or descending order.\n * @since 0.11.0\n * @entrypoint \\@nvidia-elements/core/sort-button\n * @event sort - Dispatched on sort button click, returns the current sort value and the next sort value.\n * @cssprop --width\n * @cssprop --height\n * @cssprop --border-radius\n * @cssprop --color\n * @csspart icon - The icon element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/spinbutton/\n */\n@scopedRegistry()\nexport class SortButton extends ButtonFormControlMixin(LitElement) {\n static styles = useStyles([styles]);\n\n static readonly metadata = {\n tag: 'nve-sort-button',\n version: '0.0.0'\n };\n\n static elementDefinitions = {\n [Icon.metadata.tag]: Icon\n };\n\n /**\n * The current sort value, can be ascending, descending, or none.\n */\n @property({ type: String, reflect: true }) sort: 'ascending' | 'descending' | 'none' = 'none';\n\n #i18nController: I18nController<this> = new I18nController<this>(this);\n\n /**\n * Updates internal string values for internationalization.\n */\n @property({ type: Object }) i18n = this.#i18nController.i18n;\n\n render() {\n return html`\n <div internal-host focus-within>\n <nve-icon part=\"icon\" .name=${this.sort === 'descending' ? 'sort-descending' : 'sort-ascending'} aria-hidden=\"true\"></nve-icon>\n </div>\n `;\n }\n\n constructor() {\n super();\n this.type = 'button';\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = 'spinbutton';\n this.addEventListener('click', this.#onClick);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.#onClick);\n }\n\n #onClick = () => {\n this._internals.ariaLabel = `${this.#i18nController.i18n.sort} ${nextSort[this.sort]}`;\n this.dispatchEvent(\n new CustomEvent('sort', {\n detail: { value: this.sort, next: nextSort[this.sort] },\n bubbles: true,\n composed: true\n })\n );\n };\n}\n"],"mappings":";;;;;;;;;;AAUA,IAAM,IAAW;CACf,MAAM;CACN,WAAW;CACX,YAAY;AACd,GAgBO,IAAA,cAAyB,EAAuB,CAAU,EAAE;;gBACjD,EAAU,CAAC,CAAM,CAAC;;;kBAEP;GACzB,KAAK;GACL,SAAS;EACX;;;4BAE4B,GACzB,EAAK,SAAS,MAAM,EACvB;;CAOA;CAOA,SAAS;EACP,OAAO,CAAI,gEAEuB,KAAK,SAAS,eAAe,oBAAoB,iBAAiB;CAGtG;CAEA,cAAc;EAEZ,AADA,MAAM,eAlB+E,kBAE/C,IAAI,EAAqB,IAAI,eAKlC,KAAKA,GAAgB,sBA0BvC;GAEf,AADA,KAAK,WAAW,YAAY,GAAG,KAAKA,GAAgB,KAAK,KAAK,GAAG,EAAS,KAAK,SAC/E,KAAK,cACH,IAAI,YAAY,QAAQ;IACtB,QAAQ;KAAE,OAAO,KAAK;KAAM,MAAM,EAAS,KAAK;IAAM;IACtD,SAAS;IACT,UAAU;GACZ,CAAC,CACH;EACF,GAvBE,KAAK,OAAO;CACd;CAEA,oBAAoB;EAGlB,AAFA,MAAM,kBAAkB,GACxB,KAAK,WAAW,OAAO,cACvB,KAAK,iBAAiB,SAAS,KAAKC,EAAQ;CAC9C;CAEA,uBAAuB;EAErB,AADA,MAAM,qBAAqB,GAC3B,KAAK,oBAAoB,SAAS,KAAKA,EAAQ;CACjD;CAEA;AAUF;GA3CG,EAAS;CAAE,MAAM;CAAQ,SAAS;AAAK,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,MAOxC,EAAS,EAAE,MAAM,OAAO,CAAC,CAAA,GAAA,EAAA,WAAA,QAAA,KAAA,CAAA,UAvB3B,EAAe,CAAA,GAAA,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { attachInternals as e } from "../internal/utils/a11y.js";
2
- import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
3
- import { statusStateStyles as n, supportStateStyles as r, useStyles as i } from "../internal/styles/index.js";
2
+ import { statusStateStyles as t, supportStateStyles as n, useStyles as r } from "../internal/styles/index.js";
3
+ import { __decorate as i } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
4
  import { calculateDomain as a, calculateSymbolIndices as o, calculateViewBox as s, toAreaPath as c, toColumnRects as l, toInterpolation as u, toLinePath as d, toPlotPoints as f, toValidData as p, toWinLossRects as m, valueToY as h } from "./sparkline.utils.js";
5
5
  import g from "./sparkline.js";
6
6
  import { LitElement as _, html as v, nothing as y, svg as b } from "lit";
@@ -12,16 +12,16 @@ var C = class extends _ {
12
12
  super(...e), this.data = [], this.mark = "line", this.interpolation = "linear", this.denoteFirst = !1, this.denoteLast = !1, this.denoteMin = !1, this.denoteMax = !1, this.intervalLength = .6, this.validData = [];
13
13
  }
14
14
  static {
15
- this.styles = i([
15
+ this.styles = r([
16
16
  g,
17
- n,
18
- r
17
+ t,
18
+ n
19
19
  ]);
20
20
  }
21
21
  static {
22
22
  this.metadata = {
23
23
  tag: "nve-sparkline",
24
- version: "0.2.2"
24
+ version: "0.2.3"
25
25
  };
26
26
  }
27
27
  render() {
@@ -94,32 +94,32 @@ var C = class extends _ {
94
94
  return b`<svg viewBox="0 0 ${t} ${n}" preserveAspectRatio="xMidYMid meet" aria-hidden="true">${this.#r(e, t)} ${r.map((e) => b`<rect class="${e.className}" x="${e.x.toFixed(2)}" y="${e.y.toFixed(2)}" width="${e.width.toFixed(2)}" height="${e.height.toFixed(2)}"></rect>`)}</svg>`;
95
95
  }
96
96
  };
97
- t([x({ type: Array })], C.prototype, "data", void 0), t([x({ type: String })], C.prototype, "mark", void 0), t([x({ type: String })], C.prototype, "interpolation", void 0), t([x({
97
+ i([x({ type: Array })], C.prototype, "data", void 0), i([x({ type: String })], C.prototype, "mark", void 0), i([x({ type: String })], C.prototype, "interpolation", void 0), i([x({
98
98
  type: String,
99
99
  reflect: !0
100
- })], C.prototype, "status", void 0), t([x({
100
+ })], C.prototype, "status", void 0), i([x({
101
101
  type: String,
102
102
  reflect: !0
103
- })], C.prototype, "size", void 0), t([x({
103
+ })], C.prototype, "size", void 0), i([x({
104
104
  type: Boolean,
105
105
  attribute: "denote-first",
106
106
  reflect: !0
107
- })], C.prototype, "denoteFirst", void 0), t([x({
107
+ })], C.prototype, "denoteFirst", void 0), i([x({
108
108
  type: Boolean,
109
109
  attribute: "denote-last",
110
110
  reflect: !0
111
- })], C.prototype, "denoteLast", void 0), t([x({
111
+ })], C.prototype, "denoteLast", void 0), i([x({
112
112
  type: Boolean,
113
113
  attribute: "denote-min",
114
114
  reflect: !0
115
- })], C.prototype, "denoteMin", void 0), t([x({
115
+ })], C.prototype, "denoteMin", void 0), i([x({
116
116
  type: Boolean,
117
117
  attribute: "denote-max",
118
118
  reflect: !0
119
- })], C.prototype, "denoteMax", void 0), t([x({
119
+ })], C.prototype, "denoteMax", void 0), i([x({
120
120
  type: Number,
121
121
  attribute: "interval-length"
122
- })], C.prototype, "intervalLength", void 0), t([x({ type: Number })], C.prototype, "min", void 0), t([x({ type: Number })], C.prototype, "max", void 0), t([S()], C.prototype, "validData", void 0);
122
+ })], C.prototype, "intervalLength", void 0), i([x({ type: Number })], C.prototype, "min", void 0), i([x({ type: Number })], C.prototype, "max", void 0), i([S()], C.prototype, "validData", void 0);
123
123
  //#endregion
124
124
  export { C as Sparkline };
125
125
 
@@ -1,7 +1,7 @@
1
1
  import { getElementUpdate as e } from "../internal/utils/dom.js";
2
- import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
3
- import { scopedRegistry as n } from "../internal/decorators/scoped-registry.js";
4
- import { useStyles as r } from "../internal/styles/index.js";
2
+ import { scopedRegistry as t } from "../internal/decorators/scoped-registry.js";
3
+ import { useStyles as n } from "../internal/styles/index.js";
4
+ import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
5
5
  import { Icon as i } from "../icon/icon2.js";
6
6
  import { Control as a } from "../forms/control/control2.js";
7
7
  import o from "./star-rating.js";
@@ -13,12 +13,12 @@ var l = class extends a {
13
13
  super(...e), this.min = 0, this.max = 5, this.value = 0, this.active = 0, this.precision = .5;
14
14
  }
15
15
  static {
16
- this.styles = r([...a.styles, o]);
16
+ this.styles = n([...a.styles, o]);
17
17
  }
18
18
  static {
19
19
  this.metadata = {
20
20
  tag: "nve-star-rating",
21
- version: "0.2.2"
21
+ version: "0.2.3"
22
22
  };
23
23
  }
24
24
  static {
@@ -50,7 +50,7 @@ var l = class extends a {
50
50
  this.input.valueAsNumber = e === this.value ? 0 : e, this.input.dispatchEvent(new Event("input", { bubbles: !0 })), this.input.dispatchEvent(new Event("change", { bubbles: !0 }));
51
51
  }
52
52
  };
53
- t([c()], l.prototype, "min", void 0), t([c()], l.prototype, "max", void 0), t([c()], l.prototype, "value", void 0), t([c()], l.prototype, "active", void 0), t([c()], l.prototype, "precision", void 0), l = t([n()], l);
53
+ r([c()], l.prototype, "min", void 0), r([c()], l.prototype, "max", void 0), r([c()], l.prototype, "value", void 0), r([c()], l.prototype, "active", void 0), r([c()], l.prototype, "precision", void 0), l = r([t()], l);
54
54
  //#endregion
55
55
  export { l as StarRating };
56
56
 
@@ -1,7 +1,8 @@
1
1
  import { PropertyValues, LitElement } from 'lit';
2
- import { KeynavListConfig, Container, BaseButton } from '../internal';
2
+ import { KeynavListConfig, Container } from '../internal';
3
3
  import { IconButton } from '../icon-button';
4
4
  import { ProgressRing } from '../progress-ring';
5
+ declare const StepsItem_base: import('@nvidia-elements/forms/mixins').ButtonFormControlMixinReturn<typeof LitElement>;
5
6
  /**
6
7
  * @element nve-steps-item
7
8
  * @description Represents an individual step within a multi-step workflow, displaying its status and enabling navigation within the parent steps component.
@@ -20,7 +21,7 @@ import { ProgressRing } from '../progress-ring';
20
21
  * @csspart progress-ring - The progress ring element
21
22
  * @aria https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
22
23
  */
23
- export declare class StepsItem extends BaseButton {
24
+ export declare class StepsItem extends StepsItem_base {
24
25
  /**
25
26
  * Determines which item the user selects, defaults to false.
26
27
  */
@@ -88,3 +89,4 @@ export declare class Steps extends LitElement {
88
89
  disconnectedCallback(): void;
89
90
  updated(props: PropertyValues<this>): void;
90
91
  }
92
+ export {};
@@ -1,40 +1,40 @@
1
- import { attachInternals as e } from "../internal/utils/a11y.js";
2
- import { stateSelected as t } from "../internal/controllers/state-selected.controller.js";
3
- import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
- import { BaseButton as r } from "../internal/base/button.js";
5
- import { audit as i } from "../internal/controllers/audit.controller.js";
6
- import { keyNavigationList as a } from "../internal/controllers/keynav-list.controller.js";
7
- import { scopedRegistry as o } from "../internal/decorators/scoped-registry.js";
8
- import { useStyles as s } from "../internal/styles/index.js";
9
- import { IconButton as c } from "../icon-button/icon-button2.js";
10
- import l from "./steps-item.js";
11
- import u from "./steps.js";
12
- import { ProgressRing as d } from "../progress-ring/progress-ring2.js";
13
- import { LitElement as f, html as p } from "lit";
14
- import { property as m } from "lit/decorators/property.js";
15
- import { state as h } from "lit/decorators/state.js";
1
+ import { audit as e } from "../internal/controllers/audit.controller.js";
2
+ import { keyNavigationList as t } from "../internal/controllers/keynav-list.controller.js";
3
+ import { attachInternals as n } from "../internal/utils/a11y.js";
4
+ import { stateSelected as r } from "../internal/controllers/state-selected.controller.js";
5
+ import { scopedRegistry as i } from "../internal/decorators/scoped-registry.js";
6
+ import { useStyles as a } from "../internal/styles/index.js";
7
+ import { __decorate as o } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
8
+ import { IconButton as s } from "../icon-button/icon-button2.js";
9
+ import c from "./steps-item.js";
10
+ import l from "./steps.js";
11
+ import { ProgressRing as u } from "../progress-ring/progress-ring2.js";
12
+ import { LitElement as d, html as f } from "lit";
13
+ import { property as p } from "lit/decorators/property.js";
14
+ import { state as m } from "lit/decorators/state.js";
15
+ import { ButtonFormControlMixin as h } from "@nvidia-elements/forms/mixins";
16
16
  import { queryAssignedElements as g } from "lit/decorators/query-assigned-elements.js";
17
17
  import { when as _ } from "lit/directives/when.js";
18
18
  //#region src/steps/steps.ts
19
- var v = class extends r {
19
+ var v = class extends h(d) {
20
20
  static {
21
- this.styles = s([l]);
21
+ this.styles = a([c]);
22
22
  }
23
23
  static {
24
24
  this.metadata = {
25
25
  tag: "nve-steps-item",
26
- version: "0.2.2",
26
+ version: "0.2.3",
27
27
  parents: ["nve-steps"]
28
28
  };
29
29
  }
30
30
  static {
31
31
  this.elementDefinitions = {
32
- [c.metadata.tag]: c,
33
- [d.metadata.tag]: d
32
+ [s.metadata.tag]: s,
33
+ [u.metadata.tag]: u
34
34
  };
35
35
  }
36
36
  render() {
37
- return p`<div internal-host focus-within><slot name="status-icon">${this.status ? "" : p`<nve-icon-button part="icon-button" readonly="readonly" id="number-icon" .disabled="${this.disabled}">${this.index}</nve-icon-button>`} ${this.status === "success" ? p`<nve-icon-button part="icon-button" readonly="readonly" size="sm" interaction="emphasis" icon-name="check"></nve-icon-button>` : ""} ${this.status === "danger" ? p`<nve-icon-button part="icon-button" readonly="readonly" size="sm" interaction="destructive" icon-name="exclamation-circle"></nve-icon-button>` : ""} ${this.status === "pending" ? p`<nve-progress-ring part="progress-ring" status="accent" size="sm"></nve-progress-ring>` : ""}</slot>${_(this.container !== "condensed", () => p`<slot></slot>`)}</div>`;
37
+ return f`<div internal-host focus-within><slot name="status-icon">${this.status ? "" : f`<nve-icon-button part="icon-button" readonly="readonly" id="number-icon" .disabled="${this.disabled}">${this.index}</nve-icon-button>`} ${this.status === "success" ? f`<nve-icon-button part="icon-button" readonly="readonly" size="sm" interaction="emphasis" icon-name="check"></nve-icon-button>` : ""} ${this.status === "danger" ? f`<nve-icon-button part="icon-button" readonly="readonly" size="sm" interaction="destructive" icon-name="exclamation-circle"></nve-icon-button>` : ""} ${this.status === "pending" ? f`<nve-progress-ring part="progress-ring" status="accent" size="sm"></nve-progress-ring>` : ""}</slot>${_(this.container !== "condensed", () => f`<slot></slot>`)}</div>`;
38
38
  }
39
39
  constructor() {
40
40
  super(), this.selected = !1, this.index = 0, this.type = "button";
@@ -43,33 +43,33 @@ var v = class extends r {
43
43
  super.connectedCallback(), this._internals.role = "tab";
44
44
  }
45
45
  };
46
- n([m({
46
+ o([p({
47
47
  type: Boolean,
48
48
  reflect: !0
49
- })], v.prototype, "selected", void 0), n([m({
49
+ })], v.prototype, "selected", void 0), o([p({
50
50
  type: String,
51
51
  reflect: !0
52
- })], v.prototype, "status", void 0), n([m({
52
+ })], v.prototype, "status", void 0), o([p({
53
53
  type: String,
54
54
  reflect: !0
55
- })], v.prototype, "container", void 0), n([h()], v.prototype, "index", void 0), v = n([
55
+ })], v.prototype, "container", void 0), o([m()], v.prototype, "index", void 0), v = o([
56
+ e(),
56
57
  i(),
57
- o(),
58
- t()
58
+ r()
59
59
  ], v);
60
- var y = class extends f {
60
+ var y = class extends d {
61
61
  constructor(...e) {
62
62
  super(...e), this.vertical = !1, this.behaviorSelect = !1, this.#t = (e) => {
63
63
  this.#e(e.target);
64
64
  };
65
65
  }
66
66
  static {
67
- this.styles = s([u]);
67
+ this.styles = a([l]);
68
68
  }
69
69
  static {
70
70
  this.metadata = {
71
71
  tag: "nve-steps",
72
- version: "0.2.2",
72
+ version: "0.2.3",
73
73
  children: ["nve-steps-item"]
74
74
  };
75
75
  }
@@ -83,10 +83,10 @@ var y = class extends f {
83
83
  !this.behaviorSelect || !e.matches("nve-steps-item") || e.disabled || (this.steps.forEach((e) => e.selected = !1), e.selected = !0);
84
84
  }
85
85
  render() {
86
- return p`<div internal-host><slot @slotchange="${this.#n}"></slot></div>`;
86
+ return f`<div internal-host><slot @slotchange="${this.#n}"></slot></div>`;
87
87
  }
88
88
  connectedCallback() {
89
- super.connectedCallback(), e(this), this._internals.role = "tablist", this.addEventListener("click", this.#t);
89
+ super.connectedCallback(), n(this), this._internals.role = "tablist", this.addEventListener("click", this.#t);
90
90
  }
91
91
  disconnectedCallback() {
92
92
  super.disconnectedCallback(), this.removeEventListener("click", this.#t);
@@ -101,16 +101,16 @@ var y = class extends f {
101
101
  });
102
102
  }
103
103
  };
104
- n([m({
104
+ o([p({
105
105
  type: Boolean,
106
106
  reflect: !0
107
- })], y.prototype, "vertical", void 0), n([m({
107
+ })], y.prototype, "vertical", void 0), o([p({
108
108
  type: String,
109
109
  reflect: !0
110
- })], y.prototype, "container", void 0), n([m({
110
+ })], y.prototype, "container", void 0), o([p({
111
111
  type: Boolean,
112
112
  attribute: "behavior-select"
113
- })], y.prototype, "behaviorSelect", void 0), n([g({ selector: "nve-steps-item" })], y.prototype, "steps", void 0), y = n([i(), a()], y);
113
+ })], y.prototype, "behaviorSelect", void 0), o([g({ selector: "nve-steps-item" })], y.prototype, "steps", void 0), y = o([e(), t()], y);
114
114
  //#endregion
115
115
  export { y as Steps, v as StepsItem };
116
116
 
@@ -1 +1 @@
1
- {"version":3,"file":"steps2.js","names":["#selectTab","#syncChildSteps","#onClick"],"sources":["../../src/steps/steps.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { PropertyValues } from 'lit';\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { state } from 'lit/decorators/state.js';\nimport { when } from 'lit/directives/when.js';\nimport { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';\nimport type { KeynavListConfig, Container } from '@nvidia-elements/core/internal';\nimport {\n BaseButton,\n stateSelected,\n useStyles,\n keyNavigationList,\n attachInternals,\n audit,\n scopedRegistry\n} from '@nvidia-elements/core/internal';\nimport stepsItemStyleSheet from './steps-item.css?inline';\nimport stepsStyleSheet from './steps.css?inline';\nimport { IconButton } from '@nvidia-elements/core/icon-button';\nimport { ProgressRing } from '@nvidia-elements/core/progress-ring';\n\n/**\n * @element nve-steps-item\n * @description Represents an individual step within a multi-step workflow, displaying its status and enabling navigation within the parent steps component.\n * @since 0.30.0\n * @entrypoint \\@nvidia-elements/core/steps\n * @slot - default slot for step text\n * @slot status-icon - custom slotted step icon\n * @cssprop --font-size\n * @cssprop --border-top\n * @cssprop --width\n * @cssprop --font-weight\n * @cssprop --border-radius\n * @cssprop --color\n * @cssprop --text-transform\n * @csspart icon-button - The icon button element\n * @csspart progress-ring - The progress ring element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/tabs/\n */\n@audit()\n@scopedRegistry()\n@stateSelected<StepsItem>()\nexport class StepsItem extends BaseButton {\n /**\n * Determines which item the user selects, defaults to false.\n */\n @property({ type: Boolean, reflect: true }) selected = false;\n\n /**\n * Four visual treatments represent the `status` of tasks. When `status` has a value of `warning`, `success`, or `danger`, the component embeds appropriate icons.\n */\n @property({ type: String, reflect: true }) status?: 'accent' | 'danger' | 'success' | 'pending';\n\n /**\n * Determines whether the steps should display in condensed format with no text labels.\n */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'condensed'>;\n\n /** @private */\n @state() index: number = 0;\n\n static styles = useStyles([stepsItemStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-steps-item',\n version: '0.0.0',\n parents: ['nve-steps']\n };\n\n static elementDefinitions = {\n [IconButton.metadata.tag]: IconButton,\n [ProgressRing.metadata.tag]: ProgressRing\n };\n\n render() {\n return html`\n <div internal-host focus-within>\n <slot name=\"status-icon\">\n ${!this.status ? html`<nve-icon-button part=\"icon-button\" readonly id=\"number-icon\" .disabled=${this.disabled}>${this.index}</nve-icon-button>` : ''}\n ${this.status === 'success' ? html`<nve-icon-button part=\"icon-button\" readonly size=\"sm\" interaction=\"emphasis\" icon-name=\"check\"></nve-icon-button>` : ''}\n ${this.status === 'danger' ? html`<nve-icon-button part=\"icon-button\" readonly size=\"sm\" interaction=\"destructive\" icon-name=\"exclamation-circle\"></nve-icon-button>` : ''}\n ${this.status === 'pending' ? html`<nve-progress-ring part=\"progress-ring\" status=\"accent\" size=\"sm\"></nve-progress-ring>` : ''}\n </slot>\n ${when(this.container !== 'condensed', () => html`<slot></slot>`)}\n </div>\n `;\n }\n\n constructor() {\n super();\n this.type = 'button';\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = 'tab';\n }\n}\n\n/**\n * @element nve-steps\n * @description Steps enables a multi-step workflow allowing a user to complete a goal in a specific sequence.\n * @since 0.30.0\n * @entrypoint \\@nvidia-elements/core/steps\n * @slot - default slot for steps-item\n * @cssprop --gap\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/tabs/\n */\n@audit()\n@keyNavigationList<Steps>()\nexport class Steps extends LitElement {\n /**\n * Determines whether the steps should display in a vertical layout vs. defaulting to horizontal.\n */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n /**\n * Determines whether the steps should display in condensed format with no text labels.\n */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'condensed'>;\n\n /**\n * Determines whether the steps should handle selection behavior vs. defaults to off.\n */\n @property({ type: Boolean, attribute: 'behavior-select' }) behaviorSelect = false;\n\n static styles = useStyles([stepsStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-steps',\n version: '0.0.0',\n children: ['nve-steps-item']\n };\n\n /** @private */\n get keynavListConfig(): KeynavListConfig {\n return {\n items: this.steps,\n layout: this.vertical ? 'vertical' : 'horizontal'\n };\n }\n\n @queryAssignedElements({ selector: 'nve-steps-item' }) private steps!: StepsItem[];\n\n /** @private */\n declare _internals: ElementInternals;\n\n #selectTab(stepsItem: HTMLElement & { matches: Element['matches']; disabled?: boolean; selected?: boolean }) {\n if (!this.behaviorSelect || !stepsItem.matches('nve-steps-item') || stepsItem.disabled) {\n return;\n }\n\n this.steps.forEach(i => (i.selected = false));\n stepsItem.selected = true;\n }\n\n render() {\n return html`\n <div internal-host>\n <slot @slotchange=${this.#syncChildSteps}></slot>\n </div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'tablist';\n this.addEventListener('click', this.#onClick);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.#onClick);\n }\n\n #onClick = (e: Event) => {\n this.#selectTab(e.target as HTMLElement & { matches: Element['matches']; disabled?: boolean; selected?: boolean });\n };\n\n updated(props: PropertyValues<this>) {\n super.updated(props);\n if (props.has('container') || props.has('vertical')) {\n this.#syncChildSteps();\n }\n }\n\n #syncChildSteps() {\n this._internals.ariaOrientation = this.vertical ? 'vertical' : 'horizontal';\n this.steps.forEach((item, i) => {\n item.index = i + 1;\n item.container = this.container;\n });\n }\n}\n"],"mappings":"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"}
1
+ {"version":3,"file":"steps2.js","names":["#selectTab","#syncChildSteps","#onClick"],"sources":["../../src/steps/steps.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { PropertyValues } from 'lit';\nimport { html, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { state } from 'lit/decorators/state.js';\nimport { when } from 'lit/directives/when.js';\nimport { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';\nimport { ButtonFormControlMixin } from '@nvidia-elements/forms/mixins';\nimport type { KeynavListConfig, Container } from '@nvidia-elements/core/internal';\nimport {\n stateSelected,\n useStyles,\n keyNavigationList,\n attachInternals,\n audit,\n scopedRegistry\n} from '@nvidia-elements/core/internal';\nimport stepsItemStyleSheet from './steps-item.css?inline';\nimport stepsStyleSheet from './steps.css?inline';\nimport { IconButton } from '@nvidia-elements/core/icon-button';\nimport { ProgressRing } from '@nvidia-elements/core/progress-ring';\n\n/**\n * @element nve-steps-item\n * @description Represents an individual step within a multi-step workflow, displaying its status and enabling navigation within the parent steps component.\n * @since 0.30.0\n * @entrypoint \\@nvidia-elements/core/steps\n * @slot - default slot for step text\n * @slot status-icon - custom slotted step icon\n * @cssprop --font-size\n * @cssprop --border-top\n * @cssprop --width\n * @cssprop --font-weight\n * @cssprop --border-radius\n * @cssprop --color\n * @cssprop --text-transform\n * @csspart icon-button - The icon button element\n * @csspart progress-ring - The progress ring element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/tabs/\n */\n@audit()\n@scopedRegistry()\n@stateSelected<StepsItem>()\nexport class StepsItem extends ButtonFormControlMixin(LitElement) {\n /**\n * Determines which item the user selects, defaults to false.\n */\n @property({ type: Boolean, reflect: true }) selected = false;\n\n /**\n * Four visual treatments represent the `status` of tasks. When `status` has a value of `warning`, `success`, or `danger`, the component embeds appropriate icons.\n */\n @property({ type: String, reflect: true }) status?: 'accent' | 'danger' | 'success' | 'pending';\n\n /**\n * Determines whether the steps should display in condensed format with no text labels.\n */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'condensed'>;\n\n /** @private */\n @state() index: number = 0;\n\n static styles = useStyles([stepsItemStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-steps-item',\n version: '0.0.0',\n parents: ['nve-steps']\n };\n\n static elementDefinitions = {\n [IconButton.metadata.tag]: IconButton,\n [ProgressRing.metadata.tag]: ProgressRing\n };\n\n render() {\n return html`\n <div internal-host focus-within>\n <slot name=\"status-icon\">\n ${!this.status ? html`<nve-icon-button part=\"icon-button\" readonly id=\"number-icon\" .disabled=${this.disabled}>${this.index}</nve-icon-button>` : ''}\n ${this.status === 'success' ? html`<nve-icon-button part=\"icon-button\" readonly size=\"sm\" interaction=\"emphasis\" icon-name=\"check\"></nve-icon-button>` : ''}\n ${this.status === 'danger' ? html`<nve-icon-button part=\"icon-button\" readonly size=\"sm\" interaction=\"destructive\" icon-name=\"exclamation-circle\"></nve-icon-button>` : ''}\n ${this.status === 'pending' ? html`<nve-progress-ring part=\"progress-ring\" status=\"accent\" size=\"sm\"></nve-progress-ring>` : ''}\n </slot>\n ${when(this.container !== 'condensed', () => html`<slot></slot>`)}\n </div>\n `;\n }\n\n constructor() {\n super();\n this.type = 'button';\n }\n\n connectedCallback() {\n super.connectedCallback();\n this._internals.role = 'tab';\n }\n}\n\n/**\n * @element nve-steps\n * @description Steps enables a multi-step workflow allowing a user to complete a goal in a specific sequence.\n * @since 0.30.0\n * @entrypoint \\@nvidia-elements/core/steps\n * @slot - default slot for steps-item\n * @cssprop --gap\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/tabs/\n */\n@audit()\n@keyNavigationList<Steps>()\nexport class Steps extends LitElement {\n /**\n * Determines whether the steps should display in a vertical layout vs. defaulting to horizontal.\n */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n /**\n * Determines whether the steps should display in condensed format with no text labels.\n */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'condensed'>;\n\n /**\n * Determines whether the steps should handle selection behavior vs. defaults to off.\n */\n @property({ type: Boolean, attribute: 'behavior-select' }) behaviorSelect = false;\n\n static styles = useStyles([stepsStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-steps',\n version: '0.0.0',\n children: ['nve-steps-item']\n };\n\n /** @private */\n get keynavListConfig(): KeynavListConfig {\n return {\n items: this.steps,\n layout: this.vertical ? 'vertical' : 'horizontal'\n };\n }\n\n @queryAssignedElements({ selector: 'nve-steps-item' }) private steps!: StepsItem[];\n\n /** @private */\n declare _internals: ElementInternals;\n\n #selectTab(stepsItem: HTMLElement & { matches: Element['matches']; disabled?: boolean; selected?: boolean }) {\n if (!this.behaviorSelect || !stepsItem.matches('nve-steps-item') || stepsItem.disabled) {\n return;\n }\n\n this.steps.forEach(i => (i.selected = false));\n stepsItem.selected = true;\n }\n\n render() {\n return html`\n <div internal-host>\n <slot @slotchange=${this.#syncChildSteps}></slot>\n </div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'tablist';\n this.addEventListener('click', this.#onClick);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.#onClick);\n }\n\n #onClick = (e: Event) => {\n this.#selectTab(e.target as HTMLElement & { matches: Element['matches']; disabled?: boolean; selected?: boolean });\n };\n\n updated(props: PropertyValues<this>) {\n super.updated(props);\n if (props.has('container') || props.has('vertical')) {\n this.#syncChildSteps();\n }\n }\n\n #syncChildSteps() {\n this._internals.ariaOrientation = this.vertical ? 'vertical' : 'horizontal';\n this.steps.forEach((item, i) => {\n item.index = i + 1;\n item.container = this.container;\n });\n }\n}\n"],"mappings":"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"}
@@ -1,17 +1,17 @@
1
- import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
2
- import { audit as t } from "../internal/controllers/audit.controller.js";
3
- import { useStyles as n } from "../internal/styles/index.js";
1
+ import { audit as e } from "../internal/controllers/audit.controller.js";
2
+ import { useStyles as t } from "../internal/styles/index.js";
3
+ import { __decorate as n } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
4
4
  import { ControlGroup as r } from "../forms/control-group/control-group2.js";
5
5
  import i from "./switch-group.js";
6
6
  //#region src/switch/switch-group.ts
7
7
  var a = class extends r {
8
8
  static {
9
- this.styles = n([...r.styles, i]);
9
+ this.styles = t([...r.styles, i]);
10
10
  }
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-switch-group",
14
- version: "0.2.2",
14
+ version: "0.2.3",
15
15
  children: [
16
16
  "label",
17
17
  "nve-control-message",
@@ -20,7 +20,7 @@ var a = class extends r {
20
20
  };
21
21
  }
22
22
  };
23
- a = e([t()], a);
23
+ a = n([e()], a);
24
24
  //#endregion
25
25
  export { a as SwitchGroup };
26
26
 
@@ -1,7 +1,7 @@
1
- import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
2
- import { audit as t } from "../internal/controllers/audit.controller.js";
3
- import { hostAttr as n } from "../internal/decorators/host-attr.js";
4
- import { useStyles as r } from "../internal/styles/index.js";
1
+ import { audit as e } from "../internal/controllers/audit.controller.js";
2
+ import { hostAttr as t } from "../internal/decorators/host-attr.js";
3
+ import { useStyles as n } from "../internal/styles/index.js";
4
+ import { __decorate as r } from "../_virtual/_@oxc-project_runtime@0.130.0/helpers/decorate.js";
5
5
  import { Control as i } from "../forms/control/control2.js";
6
6
  import a from "./switch.js";
7
7
  //#region src/switch/switch.ts
@@ -10,12 +10,12 @@ var o = class extends i {
10
10
  super(...e), this.nveControl = "inline";
11
11
  }
12
12
  static {
13
- this.styles = r([...i.styles, a]);
13
+ this.styles = n([...i.styles, a]);
14
14
  }
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-switch",
18
- version: "0.2.2",
18
+ version: "0.2.3",
19
19
  children: [
20
20
  "label",
21
21
  "input",
@@ -24,7 +24,7 @@ var o = class extends i {
24
24
  };
25
25
  }
26
26
  };
27
- e([n({ attribute: "nve-control" })], o.prototype, "nveControl", void 0), o = e([t()], o);
27
+ r([t({ attribute: "nve-control" })], o.prototype, "nveControl", void 0), o = r([e()], o);
28
28
  //#endregion
29
29
  export { o as Switch };
30
30