@nvidia-elements/core 0.0.6 → 0.0.7

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 (144) hide show
  1. package/CHANGELOG.md +16 -16
  2. package/NOTICE.md +222 -47
  3. package/dist/accordion/accordion.d.ts +1 -0
  4. package/dist/accordion/accordion2.js +14 -10
  5. package/dist/accordion/accordion2.js.map +1 -1
  6. package/dist/alert/alert-group2.js +1 -1
  7. package/dist/alert/alert2.js +1 -1
  8. package/dist/avatar/avatar-group2.js +1 -1
  9. package/dist/avatar/avatar2.js +1 -1
  10. package/dist/badge/badge2.js +1 -1
  11. package/dist/breadcrumb/breadcrumb2.js +1 -1
  12. package/dist/bundles/index.d.ts +18 -7
  13. package/dist/bundles/index.js +4 -4
  14. package/dist/button/button2.js +1 -1
  15. package/dist/button-group/button-group.d.ts +1 -0
  16. package/dist/button-group/button-group2.js +10 -6
  17. package/dist/button-group/button-group2.js.map +1 -1
  18. package/dist/card/card2.js +4 -4
  19. package/dist/chat-message/chat-message2.js +1 -1
  20. package/dist/checkbox/checkbox-group2.js +1 -1
  21. package/dist/checkbox/checkbox2.js +1 -1
  22. package/dist/color/color2.js +1 -1
  23. package/dist/combobox/combobox2.js +1 -1
  24. package/dist/copy-button/copy-button.d.ts +2 -1
  25. package/dist/copy-button/copy-button2.js +15 -9
  26. package/dist/copy-button/copy-button2.js.map +1 -1
  27. package/dist/custom-elements-jsx.d.ts +1 -2
  28. package/dist/custom-elements-vue.d.ts +1 -2
  29. package/dist/custom-elements.json +5 -12
  30. package/dist/data.html.json +3 -3
  31. package/dist/data.snippets.json +42 -42
  32. package/dist/date/date2.js +1 -1
  33. package/dist/datetime/datetime2.js +1 -1
  34. package/dist/dialog/dialog-footer2.js +1 -1
  35. package/dist/dialog/dialog-header2.js +1 -1
  36. package/dist/dialog/dialog2.js +1 -1
  37. package/dist/divider/divider2.js +1 -1
  38. package/dist/dot/dot2.js +1 -1
  39. package/dist/drawer/drawer-content2.js +1 -1
  40. package/dist/drawer/drawer-footer2.js +1 -1
  41. package/dist/drawer/drawer-header2.js +1 -1
  42. package/dist/drawer/drawer.d.ts +1 -0
  43. package/dist/drawer/drawer2.js +8 -4
  44. package/dist/drawer/drawer2.js.map +1 -1
  45. package/dist/dropdown/dropdown-footer2.js +1 -1
  46. package/dist/dropdown/dropdown-header2.js +1 -1
  47. package/dist/dropdown/dropdown2.js +1 -1
  48. package/dist/dropdown-group/dropdown-group.js +2 -2
  49. package/dist/dropdown-group/dropdown-group.js.map +1 -1
  50. package/dist/dropzone/dropzone.d.ts +2 -1
  51. package/dist/dropzone/dropzone2.js +1 -1
  52. package/dist/file/file2.js +1 -1
  53. package/dist/format-datetime/format-datetime2.js +1 -1
  54. package/dist/format-relative-time/format-relative-time2.js +1 -1
  55. package/dist/forms/control/control.d.ts +1 -1
  56. package/dist/forms/control/control2.js +22 -17
  57. package/dist/forms/control/control2.js.map +1 -1
  58. package/dist/forms/control-group/control-group2.js +1 -1
  59. package/dist/forms/control-message/control-message2.js +1 -1
  60. package/dist/grid/cell/cell2.js +1 -1
  61. package/dist/grid/column/column.d.ts +1 -0
  62. package/dist/grid/column/column2.js +18 -12
  63. package/dist/grid/column/column2.js.map +1 -1
  64. package/dist/grid/footer/footer2.js +1 -1
  65. package/dist/grid/grid2.js +1 -1
  66. package/dist/grid/header/header.d.ts +1 -0
  67. package/dist/grid/header/header2.js +13 -8
  68. package/dist/grid/header/header2.js.map +1 -1
  69. package/dist/grid/placeholder/placeholder2.js +1 -1
  70. package/dist/grid/row/row2.js +1 -1
  71. package/dist/icon/icon2.js +2 -2
  72. package/dist/icon/icons.d.ts +2 -0
  73. package/dist/icon/icons.js.map +1 -1
  74. package/dist/icon-button/icon-button2.js +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/input/input-group2.js +1 -1
  77. package/dist/input/input2.js +1 -1
  78. package/dist/internal/services/global.service.js +1 -1
  79. package/dist/logo/logo2.js +1 -1
  80. package/dist/menu/menu-item2.js +1 -1
  81. package/dist/menu/menu2.js +1 -1
  82. package/dist/month/month2.js +1 -1
  83. package/dist/notification/notification-group2.js +1 -1
  84. package/dist/notification/notification2.js +1 -1
  85. package/dist/page/page-panel/page-panel-content2.js +1 -1
  86. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  87. package/dist/page/page-panel/page-panel-header2.js +1 -1
  88. package/dist/page/page-panel/page-panel2.js +1 -1
  89. package/dist/page/page2.js +1 -1
  90. package/dist/page-header/page-header.examples.js.map +1 -1
  91. package/dist/page-header/page-header.examples.json +8 -8
  92. package/dist/page-header/page-header.js +1 -1
  93. package/dist/page-header/page-header.js.map +1 -1
  94. package/dist/page-header/page-header2.js +1 -1
  95. package/dist/page-loader/page-loader2.js +1 -1
  96. package/dist/pagination/pagination.d.ts +2 -1
  97. package/dist/pagination/pagination2.js +1 -1
  98. package/dist/panel/panel2.js +4 -4
  99. package/dist/password/password2.js +1 -1
  100. package/dist/preferences-input/preferences-input.d.ts +2 -1
  101. package/dist/preferences-input/preferences-input2.js +1 -1
  102. package/dist/progress-bar/progress-bar2.js +1 -1
  103. package/dist/progress-ring/progress-ring2.js +1 -1
  104. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  105. package/dist/pulse/pulse2.js +1 -1
  106. package/dist/radio/radio-group2.js +1 -1
  107. package/dist/radio/radio2.js +1 -1
  108. package/dist/range/range2.js +1 -1
  109. package/dist/resize-handle/resize-handle.d.ts +2 -1
  110. package/dist/resize-handle/resize-handle2.js +1 -1
  111. package/dist/search/search2.js +1 -1
  112. package/dist/select/select2.js +1 -1
  113. package/dist/skeleton/skeleton2.js +1 -1
  114. package/dist/sort-button/sort-button.d.ts +1 -0
  115. package/dist/sort-button/sort-button2.js +15 -11
  116. package/dist/sort-button/sort-button2.js.map +1 -1
  117. package/dist/sparkline/sparkline2.js +1 -1
  118. package/dist/star-rating/star-rating2.js +1 -1
  119. package/dist/steps/steps-item.js +1 -1
  120. package/dist/steps/steps-item.js.map +1 -1
  121. package/dist/steps/steps.d.ts +1 -2
  122. package/dist/steps/steps2.js +17 -14
  123. package/dist/steps/steps2.js.map +1 -1
  124. package/dist/switch/switch-group2.js +1 -1
  125. package/dist/switch/switch2.js +1 -1
  126. package/dist/tabs/tabs-group2.js +1 -1
  127. package/dist/tabs/tabs.d.ts +1 -0
  128. package/dist/tabs/tabs2.js +9 -3
  129. package/dist/tabs/tabs2.js.map +1 -1
  130. package/dist/tag/tag2.js +1 -1
  131. package/dist/textarea/textarea2.js +1 -1
  132. package/dist/time/time2.js +1 -1
  133. package/dist/toast/toast2.js +1 -1
  134. package/dist/toggletip/toggletip-footer2.js +1 -1
  135. package/dist/toggletip/toggletip-header2.js +1 -1
  136. package/dist/toggletip/toggletip2.js +1 -1
  137. package/dist/toolbar/toolbar2.js +1 -1
  138. package/dist/tooltip/tooltip2.js +1 -1
  139. package/dist/tree/tree-node.d.ts +1 -0
  140. package/dist/tree/tree-node2.js +8 -7
  141. package/dist/tree/tree-node2.js.map +1 -1
  142. package/dist/tree/tree2.js +1 -1
  143. package/dist/week/week2.js +1 -1
  144. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,20 +1,20 @@
1
- ## <small>0.0.6 (2026-04-17)</small>
1
+ ## <small>0.0.7 (2026-04-23)</small>
2
2
 
3
- * chore(ci): add spdx license headers ([f667045](https://github.com/NVIDIA/elements/commit/f667045))
4
- * chore(ci): regenerate lockfile after migration ([0855e62](https://github.com/NVIDIA/elements/commit/0855e62))
5
- * chore(release): @nvidia-elements/forms-v0.0.6 [skip ci] ([4279509](https://github.com/NVIDIA/elements/commit/4279509))
6
- * chore(release): @nvidia-elements/styles-v0.0.6 [skip ci] ([769db1c](https://github.com/NVIDIA/elements/commit/769db1c))
7
- * chore(release): @nvidia-elements/themes-v0.0.7 [skip ci] ([64a2903](https://github.com/NVIDIA/elements/commit/64a2903))
8
- * fix(cli): reset versions ([16d312e](https://github.com/NVIDIA/elements/commit/16d312e))
9
- * fix(code): reset versions ([750d376](https://github.com/NVIDIA/elements/commit/750d376))
10
- * fix(core): reset versions ([9be7b2a](https://github.com/NVIDIA/elements/commit/9be7b2a))
11
- * fix(create): reset versions ([40e3ae0](https://github.com/NVIDIA/elements/commit/40e3ae0))
12
- * fix(forms): reset versions ([1c0e393](https://github.com/NVIDIA/elements/commit/1c0e393))
13
- * fix(lint): reset versions ([8decd21](https://github.com/NVIDIA/elements/commit/8decd21))
14
- * fix(markdown): reset versions ([1e3a759](https://github.com/NVIDIA/elements/commit/1e3a759))
15
- * fix(monaco): reset versions ([93010c9](https://github.com/NVIDIA/elements/commit/93010c9))
16
- * fix(styles): reset versions ([daafb69](https://github.com/NVIDIA/elements/commit/daafb69))
17
- * fix(themes): reset versions ([5100294](https://github.com/NVIDIA/elements/commit/5100294))
3
+ * chore(ci): add spdx license headers ([4a4feb6](https://github.com/NVIDIA/elements/commit/4a4feb6))
4
+ * chore(ci): regenerate lockfile after migration ([7e02645](https://github.com/NVIDIA/elements/commit/7e02645))
5
+ * chore(release): @nvidia-elements/forms-v0.0.7 [skip ci] ([628ea32](https://github.com/NVIDIA/elements/commit/628ea32))
6
+ * chore(release): @nvidia-elements/styles-v0.0.7 [skip ci] ([41a7c1c](https://github.com/NVIDIA/elements/commit/41a7c1c))
7
+ * chore(release): @nvidia-elements/themes-v0.0.8 [skip ci] ([d22055b](https://github.com/NVIDIA/elements/commit/d22055b))
8
+ * fix(cli): reset versions ([870a494](https://github.com/NVIDIA/elements/commit/870a494))
9
+ * fix(code): reset versions ([bf70623](https://github.com/NVIDIA/elements/commit/bf70623))
10
+ * fix(core): reset versions ([0359c2b](https://github.com/NVIDIA/elements/commit/0359c2b))
11
+ * fix(create): reset versions ([2f7f85b](https://github.com/NVIDIA/elements/commit/2f7f85b))
12
+ * fix(forms): reset versions ([0df9d83](https://github.com/NVIDIA/elements/commit/0df9d83))
13
+ * fix(lint): reset versions ([197ac67](https://github.com/NVIDIA/elements/commit/197ac67))
14
+ * fix(markdown): reset versions ([1d37244](https://github.com/NVIDIA/elements/commit/1d37244))
15
+ * fix(monaco): reset versions ([5e2539c](https://github.com/NVIDIA/elements/commit/5e2539c))
16
+ * fix(styles): reset versions ([6ba793f](https://github.com/NVIDIA/elements/commit/6ba793f))
17
+ * fix(themes): reset versions ([343a25a](https://github.com/NVIDIA/elements/commit/343a25a))
18
18
 
19
19
  ## 0.0.0
20
20
 
package/NOTICE.md CHANGED
@@ -33,34 +33,216 @@ The following bundled components are provided under the Apache-2.0 license:
33
33
 
34
34
  Material Symbols - Copyright Google LLC
35
35
 
36
- See https://opensource.org/licenses/Apache-2.0 for the full license text.
36
+ Apache License
37
+ Version 2.0, January 2004
38
+ http://www.apache.org/licenses/
39
+
40
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
41
+
42
+ 1. Definitions.
43
+
44
+ "License" shall mean the terms and conditions for use, reproduction,
45
+ and distribution as defined by Sections 1 through 9 of this document.
46
+
47
+ "Licensor" shall mean the copyright owner or entity authorized by
48
+ the copyright owner that is granting the License.
49
+
50
+ "Legal Entity" shall mean the union of the acting entity and all
51
+ other entities that control, are controlled by, or are under common
52
+ control with that entity. For the purposes of this definition,
53
+ "control" means (i) the power, direct or indirect, to cause the
54
+ direction or management of such entity, whether by contract or
55
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
56
+ outstanding shares, or (iii) beneficial ownership of such entity.
57
+
58
+ "You" (or "Your") shall mean an individual or Legal Entity
59
+ exercising permissions granted by this License.
60
+
61
+ "Source" form shall mean the preferred form for making modifications,
62
+ including but not limited to software source code, documentation
63
+ source, and configuration files.
64
+
65
+ "Object" form shall mean any form resulting from mechanical
66
+ transformation or translation of a Source form, including but
67
+ not limited to compiled object code, generated documentation,
68
+ and conversions to other media types.
69
+
70
+ "Work" shall mean the work of authorship, whether in Source or
71
+ Object form, made available under the License, as indicated by a
72
+ copyright notice that is included in or attached to the work
73
+ (an example is provided in the Appendix below).
74
+
75
+ "Derivative Works" shall mean any work, whether in Source or Object
76
+ form, that is based on (or derived from) the Work and for which the
77
+ editorial revisions, annotations, elaborations, or other modifications
78
+ represent, as a whole, an original work of authorship. For the purposes
79
+ of this License, Derivative Works shall not include works that remain
80
+ separable from, or merely link (or bind by name) to the interfaces of,
81
+ the Work and Derivative Works thereof.
82
+
83
+ "Contribution" shall mean any work of authorship, including
84
+ the original version of the Work and any modifications or additions
85
+ to that Work or Derivative Works thereof, that is intentionally
86
+ submitted to Licensor for inclusion in the Work by the copyright owner
87
+ or by an individual or Legal Entity authorized to submit on behalf of
88
+ the copyright owner. For the purposes of this definition, "submitted"
89
+ means any form of electronic, verbal, or written communication sent
90
+ to the Licensor or its representatives, including but not limited to
91
+ communication on electronic mailing lists, source code control systems,
92
+ and issue tracking systems that are managed by, or on behalf of, the
93
+ Licensor for the purpose of discussing and improving the Work, but
94
+ excluding communication that is conspicuously marked or otherwise
95
+ designated in writing by the copyright owner as "Not a Contribution."
96
+
97
+ "Contributor" shall mean Licensor and any individual or Legal Entity
98
+ on behalf of whom a Contribution has been received by Licensor and
99
+ subsequently incorporated within the Work.
100
+
101
+ 2. Grant of Copyright License. Subject to the terms and conditions of
102
+ this License, each Contributor hereby grants to You a perpetual,
103
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
104
+ copyright license to reproduce, prepare Derivative Works of,
105
+ publicly display, publicly perform, sublicense, and distribute the
106
+ Work and such Derivative Works in Source or Object form.
107
+
108
+ 3. Grant of Patent License. Subject to the terms and conditions of
109
+ this License, each Contributor hereby grants to You a perpetual,
110
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
111
+ (except as stated in this section) patent license to make, have made,
112
+ use, offer to sell, sell, import, and otherwise transfer the Work,
113
+ where such license applies only to those patent claims licensable
114
+ by such Contributor that are necessarily infringed by their
115
+ Contribution(s) alone or by combination of their Contribution(s)
116
+ with the Work to which such Contribution(s) was submitted. If You
117
+ institute patent litigation against any entity (including a
118
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
119
+ or a Contribution incorporated within the Work constitutes direct
120
+ or contributory patent infringement, then any patent licenses
121
+ granted to You under this License for that Work shall terminate
122
+ as of the date such litigation is filed.
123
+
124
+ 4. Redistribution. You may reproduce and distribute copies of the
125
+ Work or Derivative Works thereof in any medium, with or without
126
+ modifications, and in Source or Object form, provided that You
127
+ meet the following conditions:
128
+
129
+ (a) You must give any other recipients of the Work or
130
+ Derivative Works a copy of this License; and
131
+
132
+ (b) You must cause any modified files to carry prominent notices
133
+ stating that You changed the files; and
134
+
135
+ (c) You must retain, in the Source form of any Derivative Works
136
+ that You distribute, all copyright, patent, trademark, and
137
+ attribution notices from the Source form of the Work,
138
+ excluding those notices that do not pertain to any part of
139
+ the Derivative Works; and
140
+
141
+ (d) If the Work includes a "NOTICE" text file as part of its
142
+ distribution, then any Derivative Works that You distribute must
143
+ include a readable copy of the attribution notices contained
144
+ within such NOTICE file, excluding those notices that do not
145
+ pertain to any part of the Derivative Works, in at least one
146
+ of the following places: within a NOTICE text file distributed
147
+ as part of the Derivative Works; within the Source form or
148
+ documentation, if provided along with the Derivative Works; or,
149
+ within a display generated by the Derivative Works, if and
150
+ wherever such third-party notices normally appear. The contents
151
+ of the NOTICE file are for informational purposes only and
152
+ do not modify the License. You may add Your own attribution
153
+ notices within Derivative Works that You distribute, alongside
154
+ or as an addendum to the NOTICE text from the Work, provided
155
+ that such additional attribution notices cannot be construed
156
+ as modifying the License.
157
+
158
+ You may add Your own copyright statement to Your modifications and
159
+ may provide additional or different license terms and conditions
160
+ for use, reproduction, or distribution of Your modifications, or
161
+ for any such Derivative Works as a whole, provided Your use,
162
+ reproduction, and distribution of the Work otherwise complies with
163
+ the conditions stated in this License.
164
+
165
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
166
+ any Contribution intentionally submitted for inclusion in the Work
167
+ by You to the Licensor shall be under the terms and conditions of
168
+ this License, without any additional terms or conditions.
169
+ Notwithstanding the above, nothing herein shall supersede or modify
170
+ the terms of any separate license agreement you may have executed
171
+ with Licensor regarding such Contributions.
172
+
173
+ 6. Trademarks. This License does not grant permission to use the trade
174
+ names, trademarks, service marks, or product names of the Licensor,
175
+ except as required for reasonable and customary use in describing the
176
+ origin of the Work and reproducing the content of the NOTICE file.
177
+
178
+ 7. Disclaimer of Warranty. Unless required by applicable law or
179
+ agreed to in writing, Licensor provides the Work (and each
180
+ Contributor provides its Contributions) on an "AS IS" BASIS,
181
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
182
+ implied, including, without limitation, any warranties or conditions
183
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
184
+ PARTICULAR PURPOSE. You are solely responsible for determining the
185
+ appropriateness of using or redistributing the Work and assume any
186
+ risks associated with Your exercise of permissions under this License.
187
+
188
+ 8. Limitation of Liability. In no event and under no legal theory,
189
+ whether in tort (including negligence), contract, or otherwise,
190
+ unless required by applicable law (such as deliberate and grossly
191
+ negligent acts) or agreed to in writing, shall any Contributor be
192
+ liable to You for damages, including any direct, indirect, special,
193
+ incidental, or consequential damages of any character arising as a
194
+ result of this License or out of the use or inability to use the
195
+ Work (including but not limited to damages for loss of goodwill,
196
+ work stoppage, computer failure or malfunction, or any and all
197
+ other commercial damages or losses), even if such Contributor
198
+ has been advised of the possibility of such damages.
199
+
200
+ 9. Accepting Warranty or Additional Liability. While redistributing
201
+ the Work or Derivative Works thereof, You may choose to offer,
202
+ and charge a fee for, acceptance of support, warranty, indemnity,
203
+ or other liability obligations and/or rights consistent with this
204
+ License. However, in accepting such obligations, You may act only
205
+ on Your own behalf and on Your sole responsibility, not on behalf
206
+ of any other Contributor, and only if You agree to indemnify,
207
+ defend, and hold each Contributor harmless for any liability
208
+ incurred by, or claims asserted against, such Contributor by reason
209
+ of your accepting any such warranty or additional liability.
210
+
211
+ END OF TERMS AND CONDITIONS
37
212
 
38
213
  ==============================================================================
39
- MIT
214
+ BSD-3-Clause
40
215
  ==============================================================================
41
216
 
42
- The following bundled components are provided under the MIT license:
217
+ The following bundled components are provided under the BSD-3-Clause license:
43
218
 
44
- Fluent UI System Icons - Copyright Microsoft Corporation
45
- Heroicons - Copyright Tailwind Labs, Inc.
219
+ lit v3.3.2 - Copyright Google LLC
220
+ lit-html v3.3.2 - Copyright Google LLC
46
221
 
47
- Permission is hereby granted, free of charge, to any person obtaining a copy
48
- of this software and associated documentation files (the "Software"), to deal
49
- in the Software without restriction, including without limitation the rights
50
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
51
- copies of the Software, and to permit persons to whom the Software is
52
- furnished to do so, subject to the following conditions:
222
+ Redistribution and use in source and binary forms, with or without
223
+ modification, are permitted provided that the following conditions are met:
53
224
 
54
- The above copyright notice and this permission notice shall be included in all
55
- copies or substantial portions of the Software.
225
+ 1. Redistributions of source code must retain the above copyright notice, this
226
+ list of conditions and the following disclaimer.
56
227
 
57
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
58
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
59
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
60
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
61
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
62
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
63
- SOFTWARE.
228
+ 2. Redistributions in binary form must reproduce the above copyright notice,
229
+ this list of conditions and the following disclaimer in the documentation
230
+ and/or other materials provided with the distribution.
231
+
232
+ 3. Neither the name of the copyright holder nor the names of its
233
+ contributors may be used to endorse or promote products derived from
234
+ this software without specific prior written permission.
235
+
236
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
237
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
238
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
239
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
240
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
241
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
242
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
243
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
244
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
245
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
64
246
 
65
247
  ==============================================================================
66
248
  ISC
@@ -83,37 +265,30 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
83
265
  PERFORMANCE OF THIS SOFTWARE.
84
266
 
85
267
  ==============================================================================
86
- BSD-3-Clause
268
+ MIT
87
269
  ==============================================================================
88
270
 
89
- The following bundled components are provided under the BSD-3-Clause license:
90
-
91
- lit v3.3.2 - Copyright Google LLC
92
- lit-html v3.3.2 - Copyright Google LLC
93
-
94
- Redistribution and use in source and binary forms, with or without
95
- modification, are permitted provided that the following conditions are met:
271
+ The following bundled components are provided under the MIT license:
96
272
 
97
- 1. Redistributions of source code must retain the above copyright notice, this
98
- list of conditions and the following disclaimer.
273
+ Fluent UI System Icons - Copyright Microsoft Corporation
274
+ Heroicons - Copyright Tailwind Labs, Inc.
99
275
 
100
- 2. Redistributions in binary form must reproduce the above copyright notice,
101
- this list of conditions and the following disclaimer in the documentation
102
- and/or other materials provided with the distribution.
276
+ Permission is hereby granted, free of charge, to any person obtaining a copy
277
+ of this software and associated documentation files (the "Software"), to deal
278
+ in the Software without restriction, including without limitation the rights
279
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
280
+ copies of the Software, and to permit persons to whom the Software is
281
+ furnished to do so, subject to the following conditions:
103
282
 
104
- 3. Neither the name of the copyright holder nor the names of its
105
- contributors may be used to endorse or promote products derived from
106
- this software without specific prior written permission.
283
+ The above copyright notice and this permission notice shall be included in all
284
+ copies or substantial portions of the Software.
107
285
 
108
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
109
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
110
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
111
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
112
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
113
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
114
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
115
- CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
116
- OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
117
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
286
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
287
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
288
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
289
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
290
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
291
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
292
+ SOFTWARE.
118
293
 
119
- For license details, see: MIT: https://opensource.org/licenses/MIT, ISC: https://opensource.org/licenses/ISC, BSD-3-Clause: https://opensource.org/licenses/BSD-3-Clause, Apache-2.0: https://opensource.org/licenses/Apache-2.0
294
+ For license details, see: Apache-2.0: https://opensource.org/licenses/Apache-2.0, BSD-3-Clause: https://opensource.org/licenses/BSD-3-Clause, ISC: https://opensource.org/licenses/ISC, MIT: https://opensource.org/licenses/MIT
@@ -135,5 +135,6 @@ export declare class AccordionGroup extends LitElement {
135
135
  private accordions;
136
136
  render(): import('lit-html').TemplateResult<1>;
137
137
  connectedCallback(): void;
138
+ disconnectedCallback(): void;
138
139
  updated(props: PropertyValues<this>): void;
139
140
  }
@@ -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.6"
31
+ version: "0.0.7"
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.6"
49
+ version: "0.0.7"
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.6",
65
+ version: "0.0.7",
66
66
  children: [
67
67
  b.metadata.tag,
68
68
  x.metadata.tag,
@@ -121,22 +121,26 @@ var C = class extends g {
121
121
  static {
122
122
  this.metadata = {
123
123
  tag: "nve-accordion-group",
124
- version: "0.0.6",
124
+ version: "0.0.7",
125
125
  children: [S.metadata.tag]
126
126
  };
127
127
  }
128
128
  render() {
129
- return _`<div internal-host><slot @slotchange="${() => this.#e()}"></slot></div>`;
129
+ return _`<div internal-host><slot @slotchange="${() => this.#t()}"></slot></div>`;
130
130
  }
131
131
  connectedCallback() {
132
- super.connectedCallback(), n(this), this._internals.role = "group", this.addEventListener("open", (e) => {
133
- this.behaviorExpandSingle && this.accordions.find((t) => t === e.target) && this.accordions.filter((t) => t !== e.target).forEach((e) => e.expanded = !1);
134
- });
132
+ super.connectedCallback(), n(this), this._internals.role = "group", this.addEventListener("open", this.#e);
135
133
  }
134
+ disconnectedCallback() {
135
+ super.disconnectedCallback(), this.removeEventListener("open", this.#e);
136
+ }
137
+ #e = (e) => {
138
+ this.behaviorExpandSingle && this.accordions.find((t) => t === e.target) && this.accordions.filter((t) => t !== e.target).forEach((e) => e.expanded = !1);
139
+ };
136
140
  updated(e) {
137
- super.updated(e), this.#e();
141
+ super.updated(e), this.#t();
138
142
  }
139
- #e() {
143
+ #t() {
140
144
  this.accordions.forEach((e) => e.container = this.container), this.accordions.forEach((e) => e.behaviorExpand = this.behaviorExpand || this.behaviorExpandSingle);
141
145
  }
142
146
  };
@@ -1 +1 @@
1
- {"version":3,"file":"accordion2.js","names":["#i18nController","#hasAction","#header","#typeExpandableController","#toggle","#updateChildAttributes"],"sources":["../../src/accordion/accordion.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 { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';\nimport type { ContainerElement, Container } from '@nvidia-elements/core/internal';\nimport {\n stateExpanded,\n I18nController,\n TypeExpandableController,\n useStyles,\n attachInternals,\n generateId,\n isFocusable,\n hostAttr,\n audit,\n scopedRegistry\n} from '@nvidia-elements/core/internal';\nimport { IconButton } from '@nvidia-elements/core/icon-button';\nimport accordionStyleSheet from './accordion.css?inline';\nimport accordionHeaderStyleSheet from './accordion-header.css?inline';\nimport accordionContentStyleSheet from './accordion-content.css?inline';\nimport accordionGroupStyleSheet from './accordion-group.css?inline';\n\n/**\n * @element nve-accordion-header\n * @description Provides the clickable heading region of an accordion that toggles the visibility of associated content.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @slot - default content slot\n * @slot prefix - slot for prefix content\n * @slot suffix - slot for suffix content\n * @slot title - (deprecated)\n * @slot subtitle - (deprecated)\n * @slot actions - (deprecated)\n * @cssprop --cursor\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\nexport class AccordionHeader extends LitElement {\n static styles = useStyles([accordionHeaderStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-accordion-header',\n version: '0.0.0'\n };\n\n /** @private */\n declare _internals: ElementInternals;\n\n render() {\n return html`\n <div internal-host>\n <slot name=\"prefix\"></slot>\n <div id=\"titles\">\n <slot name=\"title\"></slot>\n <slot name=\"subtitle\"></slot>\n </div>\n <slot></slot>\n <div id=\"actions\">\n <slot name=\"actions\"></slot>\n </div>\n <slot name=\"suffix\"></slot>\n </div>\n `;\n }\n\n @hostAttr() slot = 'header';\n\n connectedCallback() {\n super.connectedCallback(); // Do not override connectedCallback w/out supering\n attachInternals(this);\n this._internals.role = 'heading';\n this._internals.ariaLevel = '2';\n }\n}\n\n/**\n * @element nve-accordion-content\n * @description Contains the collapsible body content that reveals or hides when the parent accordion expands or collapses.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @slot - This is a default/unnamed slot for accordion content\n * @cssprop --padding\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\nexport class AccordionContent extends LitElement {\n static styles = useStyles([accordionContentStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-accordion-content',\n version: '0.0.0'\n };\n\n render() {\n return html`\n <slot></slot>\n `;\n }\n}\n\n/**\n * @element nve-accordion\n * @description An accordion is a vertical stack of interactive headings used to toggle the display of further information.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @command --open - use to open the accordion\n * @command --close - use to close the accordion\n * @command --toggle - use to toggle the accordion\n * @slot - This is a default/unnamed slot for accordion content\n * @slot icon-button - icon elements to display for expand/collapse\n * @slot header - header element (Use `accordion-header` or custom content)\n * @slot content - content element (Use `accordion-content` or custom content)\n * @cssprop --background\n * @cssprop --color\n * @cssprop --border-radius\n * @cssprop --header-padding\n * @cssprop --cursor\n * @cssprop --transition\n * @csspart icon-button - The toggle icon button element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\n@audit()\n@scopedRegistry()\n@stateExpanded<Accordion>()\nexport class Accordion extends LitElement implements ContainerElement {\n static styles = useStyles([accordionStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-accordion',\n version: '0.0.0',\n children: [AccordionHeader.metadata.tag, AccordionContent.metadata.tag, IconButton.metadata.tag]\n };\n\n static elementDefinitions = {\n [IconButton.metadata.tag]: IconButton\n };\n\n /** @private */\n declare _internals: ElementInternals;\n\n #i18nController: I18nController<this> = new I18nController<this>(this);\n #typeExpandableController = new TypeExpandableController(this);\n\n /**\n * Enables updating internal string values for internationalization.\n */\n @property({ type: Object }) i18n = this.#i18nController.i18n;\n\n /**\n * Determines the container styles of component. Flat suits nesting accordions within other containers. Inset suits more complex accordions where content needs distinct separation.\n */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'flat' | 'inset'>;\n\n /**\n * Determines whether the accordion expands to display its contents.\n */\n @property({ type: Boolean, reflect: true }) expanded = false;\n\n /**\n * Determines whether the accordion is expandable\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless)\n */\n @property({ type: Boolean, attribute: 'behavior-expand' }) behaviorExpand = false;\n\n get #hasAction(): boolean {\n return !!(this?.querySelectorAll ? Array.from(this?.querySelectorAll<HTMLSlotElement>('[slot=\"actions\"]')) : [])\n .length;\n }\n\n get #header() {\n return this.shadowRoot?.querySelector<HTMLSlotElement>('slot[name=header]')?.assignedElements()[0];\n }\n\n #toggle(element: HTMLElement) {\n if (!this.disabled && (!isFocusable(element) || element.id === 'internal-trigger')) {\n this.#typeExpandableController.toggle();\n }\n }\n\n render() {\n return html`\n <div internal-host class=${this.#hasAction ? 'has-action' : ''}>\n <div id=\"header\"\n @click=${(e: Event) => this.#toggle(e.target as HTMLElement)}\n .ariaLabel=${this.expanded ? this.i18n.close : this.i18n.expand}\n .ariaControls=${'content'}\n >\n <slot name=\"header\"></slot>\n\n <slot name=\"icon-button\">\n <nve-icon-button part=\"icon-button\"\n exportparts=\"icon:icon-button-icon\"\n id=\"internal-trigger\"\n container=\"inline\"\n icon-name=\"caret\"\n direction=${this.expanded ? (this.#hasAction ? 'down' : 'up') : this.#hasAction ? 'right' : 'down'}\n ?disabled=${this.disabled}\n ?pressed=${this.expanded}\n .expanded=${this.expanded}\n .ariaLabel=${this.expanded ? this.i18n.close : this.i18n.expand}\n ></nve-icon-button>\n </slot>\n </div>\n\n <div id=\"content\" .ariaHidden=${!this.expanded}>\n <slot></slot>\n </div>\n </div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'region';\n }\n\n async firstUpdated(props: PropertyValues<this>) {\n super.firstUpdated(props);\n\n if (this.#header) {\n this.#header.id ||= generateId();\n this.setAttribute('aria-labelledby', this.#header.id);\n }\n }\n}\n\n/**\n * @element nve-accordion-group\n * @description Organizes many accordions into a cohesive group, enabling coordinated expand/collapse behavior such as single-item expansion.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @cssprop --padding\n * @slot - This is a default slot for accordions within the group\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\n@audit()\nexport class AccordionGroup extends LitElement {\n declare _internals: ElementInternals;\n static styles = useStyles([accordionGroupStyleSheet]);\n\n /**\n * Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless)\n */\n @property({ type: Boolean, attribute: 'behavior-expand' }) behaviorExpand = false;\n\n /**\n * Determines whether the accordion should opt-in to stateful expansion of a single accordion at a time\n */\n @property({ type: Boolean, attribute: 'behavior-expand-single' }) behaviorExpandSingle = false;\n\n /** flat (Borderless, container-less accordions), full (default), or inset (Rounded corner, contained accordion) */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'flat' | 'inset'>;\n\n static readonly metadata = {\n tag: 'nve-accordion-group',\n version: '0.0.0',\n children: [Accordion.metadata.tag]\n };\n\n @queryAssignedElements() private accordions!: Accordion[];\n\n render() {\n return html`\n <div internal-host>\n <slot @slotchange=${() => this.#updateChildAttributes()}></slot>\n </div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'group';\n\n this.addEventListener('open', e => {\n if (this.behaviorExpandSingle && this.accordions.find(accordion => accordion === e.target)) {\n this.accordions.filter(accordion => accordion !== e.target).forEach(accordion => (accordion.expanded = false));\n }\n });\n }\n\n updated(props: PropertyValues<this>) {\n super.updated(props);\n this.#updateChildAttributes();\n }\n\n #updateChildAttributes() {\n this.accordions.forEach(accordion => (accordion.container = this.container));\n this.accordions.forEach(accordion => (accordion.behaviorExpand = this.behaviorExpand || this.behaviorExpandSingle));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwCA,IAAa,IAAb,cAAqC,EAAW;;2BA4B3B;;;gBA3BH,EAAU,CAAC,EAA0B,CAAC;;;kBAE3B;GACzB,KAAK;GACL,SAAS;GACV;;CAKD,SAAS;AACP,SAAO,CAAI;;CAkBb,oBAAoB;AAIlB,EAHA,MAAM,mBAAmB,EACzB,EAAgB,KAAK,EACrB,KAAK,WAAW,OAAO,WACvB,KAAK,WAAW,YAAY;;;GAN7B,GAAU,CAAA,EAAA,EAAA,WAAA,QAAA,KAAA,EAAA;AAmBb,IAAa,IAAb,cAAsC,EAAW;;gBAC/B,EAAU,CAAC,EAA2B,CAAC;;;kBAE5B;GACzB,KAAK;GACL,SAAS;GACV;;CAED,SAAS;AACP,SAAO,CAAI;;GA8BR,IAAA,cAAwB,EAAuC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A7CpH,EAAS;CAAE,MAAM;CAAS,WAAW;CAAmB,CAAC,CAAA,EAAA,EAAA,WAAA,kBAAA,KAAA,EAAA,KAKzD,EAAS;CAAE,MAAM;CAAS,WAAW;CAA0B,CAAC,CAAA,EAAA,EAAA,WAAA,wBAAA,KAAA,EAAA,KAGhE,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,aAAA,KAAA,EAAA,KAQzC,GAAuB,CAAA,EAAA,EAAA,WAAA,cAAA,KAAA,EAAA,SAxBzB,GAAO,CAAA,EAAA,EAAA"}
1
+ {"version":3,"file":"accordion2.js","names":["#i18nController","#hasAction","#header","#typeExpandableController","#toggle","#updateChildAttributes","#onOpen"],"sources":["../../src/accordion/accordion.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 { queryAssignedElements } from 'lit/decorators/query-assigned-elements.js';\nimport type { ContainerElement, Container } from '@nvidia-elements/core/internal';\nimport {\n stateExpanded,\n I18nController,\n TypeExpandableController,\n useStyles,\n attachInternals,\n generateId,\n isFocusable,\n hostAttr,\n audit,\n scopedRegistry\n} from '@nvidia-elements/core/internal';\nimport { IconButton } from '@nvidia-elements/core/icon-button';\nimport accordionStyleSheet from './accordion.css?inline';\nimport accordionHeaderStyleSheet from './accordion-header.css?inline';\nimport accordionContentStyleSheet from './accordion-content.css?inline';\nimport accordionGroupStyleSheet from './accordion-group.css?inline';\n\n/**\n * @element nve-accordion-header\n * @description Provides the clickable heading region of an accordion that toggles the visibility of associated content.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @slot - default content slot\n * @slot prefix - slot for prefix content\n * @slot suffix - slot for suffix content\n * @slot title - (deprecated)\n * @slot subtitle - (deprecated)\n * @slot actions - (deprecated)\n * @cssprop --cursor\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\nexport class AccordionHeader extends LitElement {\n static styles = useStyles([accordionHeaderStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-accordion-header',\n version: '0.0.0'\n };\n\n /** @private */\n declare _internals: ElementInternals;\n\n render() {\n return html`\n <div internal-host>\n <slot name=\"prefix\"></slot>\n <div id=\"titles\">\n <slot name=\"title\"></slot>\n <slot name=\"subtitle\"></slot>\n </div>\n <slot></slot>\n <div id=\"actions\">\n <slot name=\"actions\"></slot>\n </div>\n <slot name=\"suffix\"></slot>\n </div>\n `;\n }\n\n @hostAttr() slot = 'header';\n\n connectedCallback() {\n super.connectedCallback(); // Do not override connectedCallback w/out supering\n attachInternals(this);\n this._internals.role = 'heading';\n this._internals.ariaLevel = '2';\n }\n}\n\n/**\n * @element nve-accordion-content\n * @description Contains the collapsible body content that reveals or hides when the parent accordion expands or collapses.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @slot - This is a default/unnamed slot for accordion content\n * @cssprop --padding\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\nexport class AccordionContent extends LitElement {\n static styles = useStyles([accordionContentStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-accordion-content',\n version: '0.0.0'\n };\n\n render() {\n return html`\n <slot></slot>\n `;\n }\n}\n\n/**\n * @element nve-accordion\n * @description An accordion is a vertical stack of interactive headings used to toggle the display of further information.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @command --open - use to open the accordion\n * @command --close - use to close the accordion\n * @command --toggle - use to toggle the accordion\n * @slot - This is a default/unnamed slot for accordion content\n * @slot icon-button - icon elements to display for expand/collapse\n * @slot header - header element (Use `accordion-header` or custom content)\n * @slot content - content element (Use `accordion-content` or custom content)\n * @cssprop --background\n * @cssprop --color\n * @cssprop --border-radius\n * @cssprop --header-padding\n * @cssprop --cursor\n * @cssprop --transition\n * @csspart icon-button - The toggle icon button element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\n@audit()\n@scopedRegistry()\n@stateExpanded<Accordion>()\nexport class Accordion extends LitElement implements ContainerElement {\n static styles = useStyles([accordionStyleSheet]);\n\n static readonly metadata = {\n tag: 'nve-accordion',\n version: '0.0.0',\n children: [AccordionHeader.metadata.tag, AccordionContent.metadata.tag, IconButton.metadata.tag]\n };\n\n static elementDefinitions = {\n [IconButton.metadata.tag]: IconButton\n };\n\n /** @private */\n declare _internals: ElementInternals;\n\n #i18nController: I18nController<this> = new I18nController<this>(this);\n #typeExpandableController = new TypeExpandableController(this);\n\n /**\n * Enables updating internal string values for internationalization.\n */\n @property({ type: Object }) i18n = this.#i18nController.i18n;\n\n /**\n * Determines the container styles of component. Flat suits nesting accordions within other containers. Inset suits more complex accordions where content needs distinct separation.\n */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'flat' | 'inset'>;\n\n /**\n * Determines whether the accordion expands to display its contents.\n */\n @property({ type: Boolean, reflect: true }) expanded = false;\n\n /**\n * Determines whether the accordion is expandable\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless)\n */\n @property({ type: Boolean, attribute: 'behavior-expand' }) behaviorExpand = false;\n\n get #hasAction(): boolean {\n return !!(this?.querySelectorAll ? Array.from(this?.querySelectorAll<HTMLSlotElement>('[slot=\"actions\"]')) : [])\n .length;\n }\n\n get #header() {\n return this.shadowRoot?.querySelector<HTMLSlotElement>('slot[name=header]')?.assignedElements()[0];\n }\n\n #toggle(element: HTMLElement) {\n if (!this.disabled && (!isFocusable(element) || element.id === 'internal-trigger')) {\n this.#typeExpandableController.toggle();\n }\n }\n\n render() {\n return html`\n <div internal-host class=${this.#hasAction ? 'has-action' : ''}>\n <div id=\"header\"\n @click=${(e: Event) => this.#toggle(e.target as HTMLElement)}\n .ariaLabel=${this.expanded ? this.i18n.close : this.i18n.expand}\n .ariaControls=${'content'}\n >\n <slot name=\"header\"></slot>\n\n <slot name=\"icon-button\">\n <nve-icon-button part=\"icon-button\"\n exportparts=\"icon:icon-button-icon\"\n id=\"internal-trigger\"\n container=\"inline\"\n icon-name=\"caret\"\n direction=${this.expanded ? (this.#hasAction ? 'down' : 'up') : this.#hasAction ? 'right' : 'down'}\n ?disabled=${this.disabled}\n ?pressed=${this.expanded}\n .expanded=${this.expanded}\n .ariaLabel=${this.expanded ? this.i18n.close : this.i18n.expand}\n ></nve-icon-button>\n </slot>\n </div>\n\n <div id=\"content\" .ariaHidden=${!this.expanded}>\n <slot></slot>\n </div>\n </div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'region';\n }\n\n async firstUpdated(props: PropertyValues<this>) {\n super.firstUpdated(props);\n\n if (this.#header) {\n this.#header.id ||= generateId();\n this.setAttribute('aria-labelledby', this.#header.id);\n }\n }\n}\n\n/**\n * @element nve-accordion-group\n * @description Organizes many accordions into a cohesive group, enabling coordinated expand/collapse behavior such as single-item expansion.\n * @since 0.12.0\n * @entrypoint \\@nvidia-elements/core/accordion\n * @cssprop --padding\n * @slot - This is a default slot for accordions within the group\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/\n */\n@audit()\nexport class AccordionGroup extends LitElement {\n declare _internals: ElementInternals;\n static styles = useStyles([accordionGroupStyleSheet]);\n\n /**\n * Determines whether the accordion should opt-in to stateful expansion behavior (defaults to stateless)\n */\n @property({ type: Boolean, attribute: 'behavior-expand' }) behaviorExpand = false;\n\n /**\n * Determines whether the accordion should opt-in to stateful expansion of a single accordion at a time\n */\n @property({ type: Boolean, attribute: 'behavior-expand-single' }) behaviorExpandSingle = false;\n\n /** flat (Borderless, container-less accordions), full (default), or inset (Rounded corner, contained accordion) */\n @property({ type: String, reflect: true }) container?: Extract<Container, 'flat' | 'inset'>;\n\n static readonly metadata = {\n tag: 'nve-accordion-group',\n version: '0.0.0',\n children: [Accordion.metadata.tag]\n };\n\n @queryAssignedElements() private accordions!: Accordion[];\n\n render() {\n return html`\n <div internal-host>\n <slot @slotchange=${() => this.#updateChildAttributes()}></slot>\n </div>\n `;\n }\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n this._internals.role = 'group';\n this.addEventListener('open', this.#onOpen);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('open', this.#onOpen);\n }\n\n #onOpen = (e: Event) => {\n if (this.behaviorExpandSingle && this.accordions.find(accordion => accordion === e.target)) {\n this.accordions.filter(accordion => accordion !== e.target).forEach(accordion => (accordion.expanded = false));\n }\n };\n\n updated(props: PropertyValues<this>) {\n super.updated(props);\n this.#updateChildAttributes();\n }\n\n #updateChildAttributes() {\n this.accordions.forEach(accordion => (accordion.container = this.container));\n this.accordions.forEach(accordion => (accordion.behaviorExpand = this.behaviorExpand || this.behaviorExpandSingle));\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAwCA,IAAa,IAAb,cAAqC,EAAW;;2BA4B3B;;;gBA3BH,EAAU,CAAC,EAA0B,CAAC;;;kBAE3B;GACzB,KAAK;GACL,SAAS;GACV;;CAKD,SAAS;AACP,SAAO,CAAI;;CAkBb,oBAAoB;AAIlB,EAHA,MAAM,mBAAmB,EACzB,EAAgB,KAAK,EACrB,KAAK,WAAW,OAAO,WACvB,KAAK,WAAW,YAAY;;;GAN7B,GAAU,CAAA,EAAA,EAAA,WAAA,QAAA,KAAA,EAAA;AAmBb,IAAa,IAAb,cAAsC,EAAW;;gBAC/B,EAAU,CAAC,EAA2B,CAAC;;;kBAE5B;GACzB,KAAK;GACL,SAAS;GACV;;CAED,SAAS;AACP,SAAO,CAAI;;GA8BR,IAAA,cAAwB,EAAuC;;2BAsBjC,MAAA,EAAqB,sBAUD,oBAKA,0BAKqB;;;gBAzC5D,EAAU,CAAC,EAAoB,CAAC;;;kBAErB;GACzB,KAAK;GACL,SAAS;GACT,UAAU;IAAC,EAAgB,SAAS;IAA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CAAA,EAAA,EAAA,WAAA,kBAAA,KAAA,EAAA,KAKzD,EAAS;CAAE,MAAM;CAAS,WAAW;CAA0B,CAAC,CAAA,EAAA,EAAA,WAAA,wBAAA,KAAA,EAAA,KAGhE,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,aAAA,KAAA,EAAA,KAQzC,GAAuB,CAAA,EAAA,EAAA,WAAA,cAAA,KAAA,EAAA,SAxBzB,GAAO,CAAA,EAAA,EAAA"}
@@ -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.6",
22
+ version: "0.0.7",
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.6"
31
+ version: "0.0.7"
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.6"
13
+ version: "0.0.7"
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.6"
14
+ version: "0.0.7"
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.6"
28
+ version: "0.0.7"
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.6"
27
+ version: "0.0.7"
28
28
  };
29
29
  }
30
30
  static {