@nldd/design-system 0.20.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (330) hide show
  1. package/custom-elements.json +204 -8
  2. package/dist/cdn/autoloader.js +181 -0
  3. package/dist/cdn/chunks/activity-indicator-JglZJ8dh.js +356 -0
  4. package/dist/cdn/chunks/activity-indicator.i18n-D7mCy6d2.js +3 -0
  5. package/dist/cdn/chunks/avatar-ASqePVhU.js +308 -0
  6. package/dist/cdn/chunks/avatar-group-rknt4FBO.js +338 -0
  7. package/dist/cdn/chunks/avatar-group.i18n-BYw_9wt_.js +7 -0
  8. package/dist/cdn/chunks/avatar.i18n-CMwQjBkS.js +7 -0
  9. package/dist/cdn/chunks/badge-Cc2Nufoc.js +323 -0
  10. package/dist/cdn/chunks/badge.i18n-DqW7hLQj.js +3 -0
  11. package/dist/cdn/chunks/banner-BLVKM07M.js +325 -0
  12. package/dist/cdn/chunks/banner.i18n-BOCM9rGN.js +3 -0
  13. package/dist/cdn/chunks/bar-split-view-Clbg-p9H.js +259 -0
  14. package/dist/cdn/chunks/base-CfuoYRhN.js +3 -0
  15. package/dist/cdn/chunks/blockquote-BoOqbGdm.js +189 -0
  16. package/dist/cdn/chunks/box-WkhyjQVy.js +88 -0
  17. package/dist/cdn/chunks/breadcrumbs-D9YxZzRj.js +162 -0
  18. package/dist/cdn/chunks/breadcrumbs.i18n-zmO8jaTO.js +3 -0
  19. package/dist/cdn/chunks/breakpoints-Cwor8TRP.js +15 -0
  20. package/dist/cdn/chunks/button-DO90Lo6q.js +863 -0
  21. package/dist/cdn/chunks/button-bar-Bxgdbyh3.js +225 -0
  22. package/dist/cdn/chunks/button-group-BYGPPLmZ.js +205 -0
  23. package/dist/{components/button.i18n-DiDGynnq.js → cdn/chunks/button.i18n-BGFt7Z9u.js} +2 -2
  24. package/dist/cdn/chunks/card-BP0jfOkS.js +262 -0
  25. package/dist/cdn/chunks/card.i18n-CpafLm3i.js +8 -0
  26. package/dist/cdn/chunks/carried-context-DlMSujiJ.js +37 -0
  27. package/dist/cdn/chunks/cell-BRD2ilQh.js +144 -0
  28. package/dist/cdn/chunks/checkbox-Cazx8CQn.js +296 -0
  29. package/dist/cdn/chunks/checkbox-field-DDZ-B6vH.js +157 -0
  30. package/dist/cdn/chunks/class-map-CXSdNjt8.js +26 -0
  31. package/dist/cdn/chunks/code-editor-D6Q55oaY.js +286 -0
  32. package/dist/cdn/chunks/code-viewer-DspLH2T1.js +766 -0
  33. package/dist/cdn/chunks/code-viewer.i18n-BHfSDRbK.js +13 -0
  34. package/dist/cdn/chunks/codemirror-input-Db65x22n.js +1232 -0
  35. package/dist/cdn/chunks/collection-NVtkvDls.js +396 -0
  36. package/dist/cdn/chunks/collection.i18n-DqWPGnZO.js +8 -0
  37. package/dist/cdn/chunks/combo-box-DyBQSaQl.js +512 -0
  38. package/dist/cdn/chunks/combo-box.i18n-BorzYnJ2.js +6 -0
  39. package/dist/cdn/chunks/container-rrbwk0z4.js +602 -0
  40. package/dist/cdn/chunks/custom-element-BW8Ua4c7.js +7 -0
  41. package/dist/cdn/chunks/custom-element-q6NzoL5b.js +301 -0
  42. package/dist/cdn/chunks/custom-font-size-D7KNr84p.js +57 -0
  43. package/dist/cdn/chunks/date-field-Clti_wKN.js +654 -0
  44. package/dist/cdn/chunks/date-field.i18n-BTzc0E9a.js +15 -0
  45. package/dist/cdn/chunks/date-picker-2TCQLd5D.js +993 -0
  46. package/dist/cdn/chunks/date-picker.i18n-Dsc_M5QK.js +82 -0
  47. package/dist/cdn/chunks/decorate-TduJMFD_.js +280 -0
  48. package/dist/cdn/chunks/defer-focus-F73ud2D9.js +9 -0
  49. package/dist/cdn/chunks/described-by-mixin-daRE7orX.js +32 -0
  50. package/dist/cdn/chunks/description-cell-CQwOj_rN.js +166 -0
  51. package/dist/cdn/chunks/dev-checks-zW_W-hnh.js +2695 -0
  52. package/dist/cdn/chunks/directive-CwRgozUW.js +27 -0
  53. package/dist/cdn/chunks/dismiss-from-title-bar-C6mP7sWP.js +5 -0
  54. package/dist/cdn/chunks/dist-3C80SZN9.js +849 -0
  55. package/dist/cdn/chunks/dist-A7_1pHX0.js +379 -0
  56. package/dist/cdn/chunks/dist-BEfLdOvy.js +1346 -0
  57. package/dist/cdn/chunks/dist-BTUxFM2V.js +268 -0
  58. package/dist/cdn/chunks/dist-CP3G1pSK.js +1037 -0
  59. package/dist/cdn/chunks/dist-C_dGY6zR.js +468 -0
  60. package/dist/{components/dist-B9YBOGFW.js → cdn/chunks/dist-ChmCRv39.js} +109 -153
  61. package/dist/{components/dist-CJm4tkNC.js → cdn/chunks/dist-D2qap2OY.js} +23 -31
  62. package/dist/cdn/chunks/dist-DPUBF0MZ.js +1593 -0
  63. package/dist/{components/dist-4g23YHP0.js → cdn/chunks/dist-DrTzvgE7.js} +291 -404
  64. package/dist/cdn/chunks/dist-EM4MWLQq.js +385 -0
  65. package/dist/cdn/chunks/dist-EgIBI-FG.js +293 -0
  66. package/dist/{components/dist-Bf823YyL.js → cdn/chunks/dist-Rm6FvrSR.js} +272 -551
  67. package/dist/cdn/chunks/divider-CCNbnplA.js +53 -0
  68. package/dist/cdn/chunks/document-tab-bar-CUc4WWY3.js +973 -0
  69. package/dist/cdn/chunks/document-tab-bar.i18n-DKrA9TnB.js +9 -0
  70. package/dist/cdn/chunks/drag-handle-cell-CbzDYebG.js +206 -0
  71. package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +3 -0
  72. package/dist/cdn/chunks/dropdown-DZTZtkm5.js +350 -0
  73. package/dist/cdn/chunks/element-state-B-44fVqq.js +20 -0
  74. package/dist/cdn/chunks/file-field-Bff6_1pp.js +1484 -0
  75. package/dist/cdn/chunks/file-field.i18n-pDM7Utud.js +40 -0
  76. package/dist/cdn/chunks/floating-ui.dom-B8J1rV2c.js +753 -0
  77. package/dist/cdn/chunks/focus-target-DSLGcCWq.js +24 -0
  78. package/dist/cdn/chunks/form-actions-C_7hINq-.js +90 -0
  79. package/dist/cdn/chunks/form-associated-mixin--GIbl98p.js +62 -0
  80. package/dist/cdn/chunks/form-field--4nWJ_DK.js +364 -0
  81. package/dist/cdn/chunks/form-hXLgy_tY.js +84 -0
  82. package/dist/cdn/chunks/form-section-By-D4un0.js +64 -0
  83. package/dist/cdn/chunks/full-bleed-section-Dg4sIJG1.js +161 -0
  84. package/dist/cdn/chunks/gherkin-eseYvsxh.js +29 -0
  85. package/dist/cdn/chunks/hero-CQQMNCT_.js +761 -0
  86. package/dist/{components/icon-_Eox7ZfO.js → cdn/chunks/icon-BORlalt0.js} +298 -308
  87. package/dist/cdn/chunks/icon-button-rKiIHs7A.js +632 -0
  88. package/dist/{components/icon-button.i18n-1_N-wN6x.js → cdn/chunks/icon-button.i18n-DpZOfIS4.js} +2 -4
  89. package/dist/cdn/chunks/icon-cell-rk4NQid2.js +156 -0
  90. package/dist/cdn/chunks/identity-Cg1l0HhB.js +187 -0
  91. package/dist/cdn/chunks/if-defined-CaKKERku.js +4 -0
  92. package/dist/cdn/chunks/image-DZMW6JgL.js +659 -0
  93. package/dist/cdn/chunks/image.i18n-ONcm1h7o.js +3 -0
  94. package/dist/cdn/chunks/implicit-submission-Csbcor_E.js +27 -0
  95. package/dist/cdn/chunks/inline-dialog-WlqtPBPJ.js +259 -0
  96. package/dist/cdn/chunks/input-modality-XE0B7yCn.js +42 -0
  97. package/dist/cdn/chunks/just-in-time-education-DRcb5g7x.js +611 -0
  98. package/dist/cdn/chunks/just-in-time-education.i18n-CW_dsaxf.js +6 -0
  99. package/dist/cdn/chunks/kanban-Ca_mfqsA.js +400 -0
  100. package/dist/cdn/chunks/kanban-column-fgIMc7pw.js +375 -0
  101. package/dist/cdn/chunks/kanban.i18n-CWqc3e0B.js +11 -0
  102. package/dist/cdn/chunks/keyboard-shortcut-EknnW7Ub.js +267 -0
  103. package/dist/cdn/chunks/languages-yKikVFv_.js +8893 -0
  104. package/dist/cdn/chunks/link-FBSAJ3UC.js +229 -0
  105. package/dist/cdn/chunks/link-group-90qVfKa0.js +111 -0
  106. package/dist/cdn/chunks/link-hint-KFhgr5Ng.js +24 -0
  107. package/dist/cdn/chunks/link-rel-DvrTEfVT.js +8 -0
  108. package/dist/cdn/chunks/link.i18n-DJPobGmu.js +8 -0
  109. package/dist/cdn/chunks/list-CaWl3q0Z.js +880 -0
  110. package/dist/cdn/chunks/list-item-Cagnf6eG.js +802 -0
  111. package/dist/cdn/chunks/list-item-segment-BRzBF1y_.js +315 -0
  112. package/dist/cdn/chunks/list-item-segment.i18n-DHnrQL4V.js +8 -0
  113. package/dist/{components/list-item.i18n-89uqlBMK.js → cdn/chunks/list-item.i18n-Br6J5Ev9.js} +2 -2
  114. package/dist/cdn/chunks/list-items-Du0RCWsY.js +6 -0
  115. package/dist/{components/list.i18n-CKqbhFQ_.js → cdn/chunks/list.i18n-C40ltgdI.js} +2 -2
  116. package/dist/cdn/chunks/loading-tags-DtUr-DR7.js +3 -0
  117. package/dist/cdn/chunks/menu-BOu_pD1Q.js +719 -0
  118. package/dist/cdn/chunks/menu-bar-0NFXvq-v.js +253 -0
  119. package/dist/cdn/chunks/menu-bar-item-DGSC_ETi.js +365 -0
  120. package/dist/cdn/chunks/menu-bar.i18n-BoMu4Eoz.js +3 -0
  121. package/dist/cdn/chunks/menu-divider-CLLRgMll.js +15 -0
  122. package/dist/cdn/chunks/menu-group-BL24ChpR.js +23 -0
  123. package/dist/cdn/chunks/menu-item-CooKfrFa.js +140 -0
  124. package/dist/cdn/chunks/menu.i18n-C6uYJsG3.js +10 -0
  125. package/dist/cdn/chunks/menu.template-C6rbfI-u.js +642 -0
  126. package/dist/cdn/chunks/modal-dialog-BrUMP4Jm.js +240 -0
  127. package/dist/cdn/chunks/multi-line-text-field-D7hXhyOn.js +318 -0
  128. package/dist/cdn/chunks/navigation-split-view-B2ZQhxEb.js +621 -0
  129. package/dist/cdn/chunks/nl.generated-D6T41jG3.js +112 -0
  130. package/dist/cdn/chunks/notification-DSGP14d1.js +492 -0
  131. package/dist/cdn/chunks/notification.i18n-BKUSLN5c.js +6 -0
  132. package/dist/cdn/chunks/number-field-B8op14Y_.js +301 -0
  133. package/dist/cdn/chunks/number-field.i18n-BS0bINWY.js +7 -0
  134. package/dist/cdn/chunks/one-half-one-half-section-ZYmHYf4Q.js +213 -0
  135. package/dist/cdn/chunks/one-third-two-thirds-section-Ds10K6AS.js +213 -0
  136. package/dist/cdn/chunks/one-time-code-field-Cgy_tTS4.js +693 -0
  137. package/dist/cdn/chunks/open-when-rendered-CW_2_WUZ.js +20 -0
  138. package/dist/cdn/chunks/owned-attribute-x9OCTy_4.js +6 -0
  139. package/dist/cdn/chunks/owner-form-Cq8tT7ac.js +7 -0
  140. package/dist/cdn/chunks/page-CBf_Decp.js +431 -0
  141. package/dist/cdn/chunks/page-footer-CSv1dU7M.js +396 -0
  142. package/dist/cdn/chunks/page-footer.i18n-pbdr4lN3.js +3 -0
  143. package/dist/cdn/chunks/page-section-mixin-Dp6X8GKd.js +132 -0
  144. package/dist/cdn/chunks/pagination-CMUcFB53.js +485 -0
  145. package/dist/cdn/chunks/pagination.i18n-QQMx14CQ.js +9 -0
  146. package/dist/cdn/chunks/password-field-C76Vm3rm.js +368 -0
  147. package/dist/cdn/chunks/password-field.i18n-CzdBn-1b.js +8 -0
  148. package/dist/cdn/chunks/popover-C-CVVtfl.js +334 -0
  149. package/dist/cdn/chunks/popover-target-B25dxnmt.js +10 -0
  150. package/dist/cdn/chunks/popover.i18n-DmFBHUvB.js +3 -0
  151. package/dist/cdn/chunks/popup-anchor-controller-VZw0bXf2.js +30 -0
  152. package/dist/cdn/chunks/progress-bar-BLiHaRUS.js +674 -0
  153. package/dist/cdn/chunks/progress-bar.i18n-Cr5miGTx.js +8 -0
  154. package/dist/cdn/chunks/progress-circle-CjkovRbL.js +667 -0
  155. package/dist/cdn/chunks/progress-circle.i18n-CRrXuY4V.js +8 -0
  156. package/dist/cdn/chunks/query-ChDzi9FQ.js +28 -0
  157. package/dist/cdn/chunks/radio-button-GHyO-GQB.js +338 -0
  158. package/dist/cdn/chunks/radio-button-field-C-Z6Lnd4.js +192 -0
  159. package/dist/cdn/chunks/radio-button-group-ChTqBCnQ.js +118 -0
  160. package/dist/cdn/chunks/radio-position-CXWYAjaz.js +10 -0
  161. package/dist/cdn/chunks/reflect-non-default-Bu3rpCvg.js +9 -0
  162. package/dist/cdn/chunks/render-marked-DX_5ISZE.js +37 -0
  163. package/dist/cdn/chunks/repeat-Ch_5OsXE.js +76 -0
  164. package/dist/cdn/chunks/return-focus-Xmagtk6r.js +52 -0
  165. package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +47 -0
  166. package/dist/cdn/chunks/rich-text.i18n-BlJ68YuU.js +3 -0
  167. package/dist/cdn/chunks/row-header-mixin-CgqvREoV.js +16 -0
  168. package/dist/cdn/chunks/sanitize-url-CBuGmY0W.js +7 -0
  169. package/dist/cdn/chunks/scroll-mode-controller-COUD1-3P.js +42 -0
  170. package/dist/cdn/chunks/search-field-BGNfERhn.js +396 -0
  171. package/dist/cdn/chunks/search-field.i18n-B_Oc7hc-.js +6 -0
  172. package/dist/cdn/chunks/segmented-control-BYAG4VRp.js +671 -0
  173. package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +12 -0
  174. package/dist/cdn/chunks/sheet-BdVCqm2H.js +340 -0
  175. package/dist/cdn/chunks/shell-C9rds_D9.js +146 -0
  176. package/dist/cdn/chunks/shell-DmJOYhyF.js +108 -0
  177. package/dist/cdn/chunks/side-by-side-split-view-C5oX4c6Z.js +166 -0
  178. package/dist/cdn/chunks/sidebar-section-DP4jnS7g.js +353 -0
  179. package/dist/cdn/chunks/sidebar-section.i18n-BuGfRMpD.js +6 -0
  180. package/dist/cdn/chunks/simple-section-qrCqXeBa.js +192 -0
  181. package/dist/cdn/chunks/skip-link-DWh4W6-J.js +161 -0
  182. package/dist/cdn/chunks/skip-link.i18n--PbEdAmJ.js +3 -0
  183. package/dist/cdn/chunks/slider--hODfOwh.js +772 -0
  184. package/dist/cdn/chunks/slider.i18n-DVw0c8AG.js +6 -0
  185. package/dist/cdn/chunks/slot-content-BLuPqVXw.js +13 -0
  186. package/dist/cdn/chunks/spacer-CFzq_JCh.js +237 -0
  187. package/dist/cdn/chunks/spacer-cell-DuVOgIj8.js +68 -0
  188. package/dist/cdn/chunks/spacing-scale-SufIjHeN.js +28 -0
  189. package/dist/cdn/chunks/split-button-BeXnOUTt.js +268 -0
  190. package/dist/cdn/chunks/split-button.i18n-DtClSMga.js +3 -0
  191. package/dist/cdn/chunks/split-view-divider-jzcPmnMh.js +100 -0
  192. package/dist/cdn/chunks/split-view-pane-BLsZz263.js +128 -0
  193. package/dist/cdn/chunks/stacked-split-view-CcOR8LrJ.js +157 -0
  194. package/dist/cdn/chunks/static-html-Cf4ccUIg.js +26 -0
  195. package/dist/cdn/chunks/status-bar-CINbOihq.js +284 -0
  196. package/dist/cdn/chunks/status-bar-change-CR9l0Gyk.js +3 -0
  197. package/dist/cdn/chunks/step-bar-6FvZL1Ti.js +474 -0
  198. package/dist/cdn/chunks/step-bar.i18n-DocExlD7.js +9 -0
  199. package/dist/cdn/chunks/step-cell-CejRisgS.js +287 -0
  200. package/dist/cdn/chunks/stepper-CY2rJWOJ.js +223 -0
  201. package/dist/cdn/chunks/stepper.i18n-COOAkaBl.js +7 -0
  202. package/dist/cdn/chunks/style-map-DsIw6lkq.js +29 -0
  203. package/dist/cdn/chunks/style-mod-DGMhzWuk.js +1583 -0
  204. package/dist/cdn/chunks/swatch-picker-BY3DBIl6.js +430 -0
  205. package/dist/cdn/chunks/swatch-picker.i18n-_G0nmnGe.js +22 -0
  206. package/dist/cdn/chunks/switch-DDSsZFwK.js +275 -0
  207. package/dist/cdn/chunks/switch-field-CMoM9I38.js +137 -0
  208. package/dist/cdn/chunks/tab-bar-DmslEoPD.js +697 -0
  209. package/dist/cdn/chunks/tab-bar.i18n-Crsc7ShA.js +3 -0
  210. package/dist/cdn/chunks/table-DwXjCSD5.js +308 -0
  211. package/dist/cdn/chunks/table.i18n-Bmb_uw_w.js +3 -0
  212. package/dist/cdn/chunks/tag-DM3APy3B.js +306 -0
  213. package/dist/cdn/chunks/text-B1CatNR1.js +421 -0
  214. package/dist/cdn/chunks/text-cell-BkEsGI3g.js +299 -0
  215. package/dist/cdn/chunks/text-editor-BvTiMeNV.js +3743 -0
  216. package/dist/cdn/chunks/text-editor.i18n-sJKiRQ4i.js +17 -0
  217. package/dist/cdn/chunks/text-field-CUyh1-V8.js +398 -0
  218. package/dist/cdn/chunks/time-field-Cj5WojfO.js +597 -0
  219. package/dist/cdn/chunks/time-field.i18n-CLH5vmS7.js +11 -0
  220. package/dist/cdn/chunks/time-picker-W0xYXLy8.js +508 -0
  221. package/dist/cdn/chunks/time-picker.i18n-BilOCXlS.js +7 -0
  222. package/dist/cdn/chunks/title-BuT7tWqN.js +437 -0
  223. package/dist/cdn/chunks/title-bar-label-controller-DSxdKZOg.js +24 -0
  224. package/dist/cdn/chunks/title-cell-8d8psUBX.js +327 -0
  225. package/dist/cdn/chunks/toggle-button-DNXWXZpE.js +528 -0
  226. package/dist/cdn/chunks/toggle-button-group-ByowJYgs.js +156 -0
  227. package/dist/cdn/chunks/token-CnkEB3hB.js +266 -0
  228. package/dist/cdn/chunks/token-field-hvDB3l6O.js +664 -0
  229. package/dist/cdn/chunks/token-field.i18n-BclzoR8F.js +9 -0
  230. package/dist/cdn/chunks/token.i18n-RGD5zAtl.js +7 -0
  231. package/dist/cdn/chunks/toml-w97zZfFO.js +27 -0
  232. package/dist/cdn/chunks/toolbar-iNd1VmuG.js +408 -0
  233. package/dist/cdn/chunks/toolbar-item-DpPfPxCi.js +50 -0
  234. package/dist/cdn/chunks/toolbar-title-KBMpfL9d.js +84 -0
  235. package/dist/cdn/chunks/toolbar.i18n-QwS37CBC.js +8 -0
  236. package/dist/cdn/chunks/toolbar.styles-BQkG4gVc.js +383 -0
  237. package/dist/cdn/chunks/tooltip-BsAHJjci.js +325 -0
  238. package/dist/cdn/chunks/top-navigation-bar-D1hjWIF3.js +925 -0
  239. package/dist/cdn/chunks/top-navigation-bar.i18n-C-lcH1nB.js +10 -0
  240. package/dist/cdn/chunks/top-title-bar-iNFB2zQL.js +344 -0
  241. package/dist/cdn/chunks/translations-wxBSz213.js +8 -0
  242. package/dist/cdn/chunks/two-thirds-one-third-section-D-UANbHC.js +213 -0
  243. package/dist/cdn/chunks/validation-list-C5BhHZIG.js +202 -0
  244. package/dist/cdn/chunks/validation-list.i18n-CM6In8zD.js +12 -0
  245. package/dist/cdn/chunks/visibility-mixin-COAZ9pON.js +74 -0
  246. package/dist/cdn/chunks/visually-hidden-BPgATaH0.js +43 -0
  247. package/dist/cdn/chunks/window-t5iFkMLY.js +227 -0
  248. package/dist/cdn/chunks/window.i18n-CsEnUPAk.js +3 -0
  249. package/dist/cdn/chunks/with-translations-XX14GKFh.js +16 -0
  250. package/dist/components/actions/menu/menu-item.d.ts +6 -2
  251. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  252. package/dist/components/actions/menu/menu-item.js +12 -1
  253. package/dist/components/actions/menu/menu-item.js.map +1 -1
  254. package/dist/components/actions/menu/menu.js +1 -1
  255. package/dist/components/actions/menu/menu.js.map +1 -1
  256. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  257. package/dist/components/actions/menu/menu.template.js +2 -1
  258. package/dist/components/actions/menu/menu.template.js.map +1 -1
  259. package/dist/components/inputs/dropdown/dropdown.d.ts +22 -2
  260. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  261. package/dist/components/inputs/dropdown/dropdown.js +67 -11
  262. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  263. package/dist/components/layout/container/container.d.ts +15 -2
  264. package/dist/components/layout/container/container.d.ts.map +1 -1
  265. package/dist/components/layout/container/container.js +38 -3
  266. package/dist/components/layout/container/container.js.map +1 -1
  267. package/dist/components/layout/container/container.styles.js +1 -1
  268. package/dist/components/layout/container/container.template.js +1 -1
  269. package/dist/components/layout/container/container.template.js.map +1 -1
  270. package/dist/components/lists-and-tables/list-item/list-item.d.ts +7 -0
  271. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  272. package/dist/components/lists-and-tables/list-item/list-item.js +13 -3
  273. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  274. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts +11 -1
  275. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.d.ts.map +1 -1
  276. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js +19 -3
  277. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.js.map +1 -1
  278. package/dist/nldd.min.js +298 -298
  279. package/dist/types/react.d.ts +3323 -0
  280. package/dist/types/vue.d.ts +11 -3
  281. package/dist/utilities/autoloader.d.ts +33 -0
  282. package/dist/utilities/autoloader.d.ts.map +1 -0
  283. package/dist/utilities/autoloader.generated.d.ts +3 -0
  284. package/dist/utilities/autoloader.generated.d.ts.map +1 -0
  285. package/dist/utilities/autoloader.generated.js +141 -0
  286. package/dist/utilities/autoloader.generated.js.map +1 -0
  287. package/dist/utilities/autoloader.js +94 -0
  288. package/dist/utilities/autoloader.js.map +1 -0
  289. package/dist/utilities/dev-checks.d.ts +9 -0
  290. package/dist/utilities/dev-checks.d.ts.map +1 -1
  291. package/dist/utilities/dev-checks.js +45 -3
  292. package/dist/utilities/dev-checks.js.map +1 -1
  293. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  294. package/dist/utilities/dev-rules.generated.js +12 -2
  295. package/dist/utilities/dev-rules.generated.js.map +1 -1
  296. package/dist/utilities/loading-tags.d.ts +7 -0
  297. package/dist/utilities/loading-tags.d.ts.map +1 -0
  298. package/dist/utilities/loading-tags.js +7 -0
  299. package/dist/utilities/loading-tags.js.map +1 -0
  300. package/dist/utilities/owner-form.d.ts +3 -3
  301. package/dist/utilities/owner-form.d.ts.map +1 -1
  302. package/dist/utilities/owner-form.js +6 -3
  303. package/dist/utilities/owner-form.js.map +1 -1
  304. package/lint/data.generated.json +1 -1
  305. package/package.json +50 -11
  306. package/dist/components/breakpoints-DtL62nLI.js +0 -45
  307. package/dist/components/components.js +0 -68243
  308. package/dist/components/decorate-DD7uUxHb.js +0 -51
  309. package/dist/components/defer-focus-dzorHsCQ.js +0 -176
  310. package/dist/components/dev-checks-CLB9G43h.js +0 -2711
  311. package/dist/components/dist-245LaK9m.js +0 -1479
  312. package/dist/components/dist-BFZM0YsR.js +0 -15772
  313. package/dist/components/dist-BNkeFjc3.js +0 -1180
  314. package/dist/components/dist-CSC1dG3L.js +0 -365
  315. package/dist/components/dist-CeMOOqgP.js +0 -1509
  316. package/dist/components/dist-DFjwTlJV.js +0 -624
  317. package/dist/components/dist-DHhnz3Gv.js +0 -381
  318. package/dist/components/dist-PeUX4vPq.js +0 -2857
  319. package/dist/components/dist-m70B83qb.js +0 -463
  320. package/dist/components/element-state-BnarBv0M.js +0 -42
  321. package/dist/components/gherkin-DzYbEwDO.js +0 -107
  322. package/dist/components/icon-button-8gvQCwCW.js +0 -2305
  323. package/dist/components/input-modality-D_CY185R.js +0 -48
  324. package/dist/components/just-in-time-education.i18n-BqU1ImP4.js +0 -423
  325. package/dist/components/nl.generated-DzZkOgnP.js +0 -64
  326. package/dist/components/rolldown-runtime-D8jQpDG7.js +0 -12
  327. package/dist/components/shadow-resets-BwOyyZFH.js +0 -60
  328. package/dist/components/shell-Dh5IwHd-.js +0 -222
  329. package/dist/components/toml-D0Pix_8Q.js +0 -58
  330. package/dist/components/visibility-mixin-Dzn48SL8.js +0 -153
@@ -0,0 +1,761 @@
1
+ import { a as e, i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
2
+ import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
3
+ import { t as c } from "./custom-element-BW8Ua4c7.js";
4
+ import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
5
+ import { r as u } from "./element-state-B-44fVqq.js";
6
+ import { n as d, t as f } from "./shadow-resets-6SToDsPu.js";
7
+ import { n as p } from "./breakpoints-Cwor8TRP.js";
8
+ import { n as m, t as h } from "./page-section-mixin-Dp6X8GKd.js";
9
+ // src/components/layout/page-sections/hero/hero.styles.ts
10
+ var g = e(p.smMax), _ = e(p.mdMin), v = e(p.mdMax), y = e(p.lgMin), b = t`
11
+ :host {
12
+ box-sizing: border-box;
13
+ }
14
+
15
+
16
+ /* # Host */
17
+
18
+ :host {
19
+ container-type: inline-size;
20
+ /* Block-padding overrides from PageSectionMixin; 'initial' makes the
21
+ var() in .hero fall back to the responsive default until the mixin
22
+ sets a value inline on the host. */
23
+ --_hero-padding-top: initial;
24
+ --_hero-padding-bottom: initial;
25
+ --_hero-sm-padding-top: initial;
26
+ --_hero-sm-padding-bottom: initial;
27
+ --_hero-md-padding-top: initial;
28
+ --_hero-md-padding-bottom: initial;
29
+ --_hero-lg-padding-top: initial;
30
+ --_hero-lg-padding-bottom: initial;
31
+ --_hero-max-width: var(--semantics-page-sections-body-max-width);
32
+ --_hero-media-aspect-ratio: 21 / 9;
33
+ --_hero-media-height: auto;
34
+ --_hero-main-min-width: var(--primitives-area-480);
35
+ --_hero-main-max-width: var(--primitives-area-640);
36
+ --_hero-main-width: auto;
37
+ --_hero-main-background-color: var(--semantics-surfaces-accent-filled-background-color);
38
+ --_hero-main-content-color: var(--semantics-content-on-accent-filled-color);
39
+ --_hero-main-padding: var(--primitives-space-16);
40
+ --_hero-main-inset: var(--primitives-space-0);
41
+ --_hero-sm-main-inset: var(--semantics-page-sections-sm-gap);
42
+ --_hero-sm-main-overlap: var(--primitives-space-48);
43
+ --_hero-overlap-size: initial;
44
+ --_hero-default-overlap-size: var(--primitives-space-0);
45
+ --_hero-default-media-height: auto;
46
+
47
+ ${f}
48
+ display: flex;
49
+ width: 100%;
50
+ flex-direction: column;
51
+ align-items: center;
52
+ }
53
+
54
+ :host([hidden]) {
55
+ display: none;
56
+ }
57
+
58
+ :host([data-growing]),
59
+ :host([grow]) {
60
+ flex-grow: 1;
61
+ }
62
+
63
+ :host([width="full"]) {
64
+ --_hero-max-width: none;
65
+ }
66
+
67
+ :host([main-background="base"]) {
68
+ --_hero-main-background-color: var(--semantics-surfaces-base-background-color);
69
+ --_hero-main-content-color: var(--semantics-content-color);
70
+ }
71
+
72
+
73
+ /* # Block */
74
+
75
+ .hero {
76
+ box-sizing: border-box;
77
+ display: flex;
78
+ width: 100%;
79
+ flex-direction: column;
80
+ flex-grow: 1;
81
+ align-items: center;
82
+
83
+ /* The responsive overrides live here, not on :host — a container query
84
+ inside :host would match an ancestor container, while these must query
85
+ the host's own inline size. */
86
+
87
+ @container (max-width: ${g}) {
88
+ padding-inline: var(--semantics-page-sections-sm-margin-inline);
89
+ padding-top: var(--_hero-sm-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-sm-margin-block) / 2)));
90
+ padding-bottom: var(--_hero-sm-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-sm-margin-block)));
91
+ }
92
+
93
+ @container (min-width: ${_}) and (max-width: ${v}) {
94
+ --_hero-main-padding: var(--primitives-space-24);
95
+ --_hero-main-inset: var(--semantics-page-sections-md-gap);
96
+ --_hero-default-overlap-size: var(--primitives-area-160);
97
+ --_hero-default-media-height: var(--primitives-area-320);
98
+ padding-inline: var(--semantics-page-sections-md-margin-inline);
99
+ padding-top: var(--_hero-md-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-md-margin-block) / 2)));
100
+ padding-bottom: var(--_hero-md-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-md-margin-block)));
101
+ }
102
+
103
+ @container (min-width: ${y}) {
104
+ --_hero-main-padding: var(--primitives-space-32);
105
+ --_hero-main-inset: var(--semantics-page-sections-lg-gap);
106
+ --_hero-default-overlap-size: var(--primitives-area-160);
107
+ --_hero-default-media-height: var(--primitives-area-400);
108
+ padding-inline: var(--semantics-page-sections-lg-margin-inline);
109
+ padding-top: var(--_hero-lg-padding-top, var(--_hero-padding-top, calc(var(--semantics-page-sections-lg-margin-block) / 2)));
110
+ padding-bottom: var(--_hero-lg-padding-bottom, var(--_hero-padding-bottom, var(--semantics-page-sections-lg-margin-block)));
111
+ }
112
+ }
113
+
114
+
115
+ /* # Body
116
+ No overflow clipping here: it would zero the grid's automatic content
117
+ minimum and stop the hero from growing with the panel. The background
118
+ is painted in the panel color so subpixel seams between the media and
119
+ the panel (fractional aspect-ratio heights) never show as a light
120
+ hairline. */
121
+
122
+ .hero__body {
123
+ display: grid;
124
+ position: relative;
125
+ width: 100%;
126
+ max-width: var(--_hero-max-width);
127
+ flex-grow: 1;
128
+ grid-template-columns: 100%;
129
+ }
130
+
131
+ :host(:not([data-has-media])) .hero__body {
132
+ background-color: var(--_hero-main-background-color);
133
+ }
134
+
135
+ /* Without media a base-colored panel would be invisible on the base surface;
136
+ give it a full border so the rectangle reads. */
137
+ :host(:not([data-has-media])[main-background="base"]) .hero__body {
138
+ border: var(--primitives-border-width-regular) solid var(--semantics-content-color);
139
+ }
140
+
141
+ /* A ghost cell sets the body's minimum height from the aspect ratio
142
+ without forcing it: the panel shares the same grid cell, so a taller
143
+ panel grows the row past this floor. Putting the ratio on a ghost
144
+ (instead of aspect-ratio on the body) keeps growth content-driven
145
+ rather than rigidly tied to the width. align-self: start stops the
146
+ stretch fit from cancelling the ratio. */
147
+ :host([data-has-media]) .hero__body::before {
148
+ @container (min-width: ${_}) {
149
+ content: '';
150
+ height: var(--_hero-media-height);
151
+ aspect-ratio: var(--_hero-media-aspect-ratio);
152
+ grid-area: 1 / 1;
153
+ align-self: start;
154
+ }
155
+ }
156
+
157
+ @media (forced-colors: active) {
158
+ .hero__body {
159
+ border: var(--primitives-border-width-thin) solid CanvasText;
160
+ }
161
+ }
162
+
163
+
164
+ /* # Media */
165
+
166
+ .hero__media {
167
+ position: absolute;
168
+ inset: 0;
169
+ overflow: hidden;
170
+ }
171
+
172
+ .hero__media[hidden] {
173
+ display: none;
174
+ }
175
+
176
+ .hero__media ::slotted(img) {
177
+ ${d}
178
+ display: block !important;
179
+ width: 100% !important;
180
+ height: 100% !important;
181
+ object-fit: cover !important;
182
+ }
183
+
184
+ /* Two heights: the host fills the media area, and the variable makes the
185
+ image inside the host fill the host. Without either one it collapses. */
186
+ .hero__media ::slotted(nldd-image) {
187
+ --context-image-height: 100%;
188
+
189
+ display: block !important;
190
+ width: 100% !important;
191
+ height: 100% !important;
192
+ }
193
+
194
+ .hero__media img {
195
+ display: block;
196
+ width: 100%;
197
+ height: 100%;
198
+ object-fit: cover;
199
+ }
200
+
201
+
202
+ /* # Main */
203
+
204
+ .hero__main {
205
+ /* Cascade the panel color so descendants that key off the parent
206
+ background (inherit-filled buttons, badge rings) read this
207
+ surface. */
208
+ --context-parent-background-color: var(--_hero-main-background-color);
209
+
210
+ box-sizing: border-box;
211
+ display: flex;
212
+ position: relative;
213
+ grid-area: 1 / 1;
214
+ align-self: end;
215
+ justify-self: start;
216
+ background-color: var(--_hero-main-background-color);
217
+ width: fit-content;
218
+ min-width: min(var(--_hero-main-min-width), 100% - 2 * var(--_hero-main-inset));
219
+ max-width: min(var(--_hero-main-max-width), 100% - 2 * var(--_hero-main-inset));
220
+ padding: var(--_hero-main-padding);
221
+ flex-direction: column;
222
+ color: var(--_hero-main-content-color);
223
+ }
224
+
225
+ :host(:not([data-has-media])) .hero__main {
226
+ width: 100%;
227
+ min-width: 0;
228
+ max-width: none;
229
+ }
230
+
231
+ :host([data-has-media]) .hero__main {
232
+ margin: var(--_hero-main-inset);
233
+ }
234
+
235
+ :host([data-has-media][data-main-width-length]) .hero__main {
236
+ @container (min-width: ${_}) {
237
+ width: var(--_hero-main-width);
238
+ min-width: 0;
239
+ max-width: calc(100% - 2 * var(--_hero-main-inset));
240
+ }
241
+ }
242
+
243
+ :host([data-has-media][main-width="full"]) .hero__main {
244
+ width: auto;
245
+ max-width: none;
246
+ justify-self: stretch;
247
+ }
248
+
249
+ :host([main-position="top-left"]) .hero__main {
250
+ align-self: start;
251
+ }
252
+
253
+ :host([main-position="top-right"]) .hero__main {
254
+ align-self: start;
255
+ justify-self: end;
256
+ }
257
+
258
+ :host([main-position="bottom-right"]) .hero__main {
259
+ justify-self: end;
260
+ }
261
+
262
+ :host([main-position="bottom-center"]) .hero__main {
263
+ justify-self: center;
264
+ }
265
+
266
+ :host([main-position="top-center"]) .hero__main {
267
+ align-self: start;
268
+ justify-self: center;
269
+ }
270
+
271
+ :host([main-position="left"]) .hero__main {
272
+ align-self: stretch;
273
+ }
274
+
275
+ :host([main-position="right"]) .hero__main {
276
+ align-self: stretch;
277
+ justify-self: end;
278
+ }
279
+
280
+ @media (forced-colors: active) {
281
+ .hero__main {
282
+ border: var(--primitives-border-width-thin) solid CanvasText;
283
+ }
284
+ }
285
+
286
+
287
+ /* # Overlap (md+) — the media keeps a fixed height; the panel sits in the
288
+ row below it, pulled up over it by the overlap size. */
289
+
290
+ @container (min-width: ${_}) {
291
+ :host([data-has-media]:not([layout="contained"])) .hero__body::before {
292
+ content: none;
293
+ }
294
+
295
+ :host([data-has-media]:not([layout="contained"])) .hero__media {
296
+ position: relative;
297
+ width: 100%;
298
+ height: var(--_hero-media-height);
299
+ aspect-ratio: var(--_hero-media-aspect-ratio);
300
+ grid-area: 1 / 1;
301
+ align-self: start;
302
+ }
303
+
304
+ :host([data-has-media]:not([layout="contained"]):not([media-height], [media-aspect-ratio])) .hero__media {
305
+ height: var(--_hero-default-media-height);
306
+ }
307
+
308
+ :host([data-has-media]:not([layout="contained"])) .hero__main {
309
+ margin-top: calc(-1 * var(--_hero-overlap-size, var(--_hero-default-overlap-size)));
310
+ margin-bottom: 0;
311
+ grid-area: 2 / 1;
312
+ align-self: start;
313
+ }
314
+ }
315
+
316
+
317
+ /* # Mobile — the media on top, the panel below it, indented and overlapping
318
+ it a little. */
319
+
320
+ @container (max-width: ${g}) {
321
+ .hero__body {
322
+ display: flex;
323
+ flex-direction: column;
324
+ }
325
+
326
+ .hero__media {
327
+ position: static;
328
+ width: 100%;
329
+ height: var(--_hero-media-height);
330
+ overflow: hidden;
331
+ aspect-ratio: var(--_hero-media-aspect-ratio);
332
+ }
333
+
334
+ .hero__main {
335
+ width: 100%;
336
+ min-width: 0;
337
+ max-width: none;
338
+ }
339
+
340
+ :host([data-has-media]) .hero__main {
341
+ margin: calc(-1 * var(--_hero-sm-main-overlap)) var(--_hero-sm-main-inset) 0;
342
+ width: auto;
343
+ align-self: stretch;
344
+ }
345
+ }
346
+ `;
347
+ // src/components/layout/page-sections/hero/hero.template.ts
348
+ function x(e) {
349
+ let t = e.mediaSrc && !e._slotHasMedia ? a`<img
350
+ src=${e.mediaSrc}
351
+ srcset=${e.mediaSrcset || o}
352
+ sizes=${e.mediaSizes || o}
353
+ alt=${e.mediaAlt}
354
+ loading="eager"
355
+ decoding="async"
356
+ >` : o;
357
+ return a`
358
+ <section class="hero">
359
+ <div class="hero__body">
360
+ <div class="hero__media"
361
+ ?hidden=${!e._hasMedia}
362
+ >
363
+ <slot
364
+ name="media"
365
+ @slotchange=${e._onMediaSlotChange}
366
+ ></slot>
367
+ ${t}
368
+ </div>
369
+ <div class="hero__main">
370
+ <slot></slot>
371
+ </div>
372
+ </div>
373
+ </section>
374
+ `;
375
+ }
376
+ // src/components/layout/page-sections/hero/hero-corner.styles.ts
377
+ var S = e(p.smMax), C = e(p.mdMin), w = e(p.mdMax), T = e(p.lgMin), E = t`
378
+
379
+
380
+ /* # Corner */
381
+
382
+ :host([data-media-corner]) {
383
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-sm-width) * 1.5);
384
+ --_hero-media-corner-limit: initial;
385
+ --_hero-main-corner-limit: initial;
386
+ }
387
+
388
+ /* On .hero, not :host: a var() resolves where it is declared, so on :host
389
+ this would halve the sm radius at every breakpoint. */
390
+ :host([data-media-corner]) .hero {
391
+ --_hero-media-corner-radius: min(var(--_hero-corner-radius), var(--_hero-media-corner-limit, var(--_hero-corner-radius)));
392
+ --_hero-main-corner-radius: calc(var(--_hero-media-corner-radius) / 2);
393
+
394
+ @container (min-width: ${C}) and (max-width: ${w}) {
395
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-md-width) * 2);
396
+ }
397
+
398
+ @container (min-width: ${T}) {
399
+ --_hero-corner-radius: calc(var(--semantics-brand-ribbon-lg-width) * 2);
400
+ }
401
+ }
402
+
403
+ :host([data-media-corner]:not([data-has-media])) .hero {
404
+ --_hero-main-corner-radius: min(var(--_hero-corner-radius) / 2, var(--_hero-main-corner-limit, var(--_hero-corner-radius)));
405
+ }
406
+
407
+ /* ## Contained */
408
+
409
+ :host([data-media-corner][data-has-media]) .hero {
410
+ @container (min-width: ${C}) {
411
+ --_hero-main-inset: var(--primitives-space-0);
412
+ }
413
+ }
414
+
415
+ :host([data-has-media]:is([data-main-corner="top-left"], [data-main-corner="top-right"])) .hero__main {
416
+ @container (min-width: ${C}) {
417
+ margin-top: var(--_hero-corner-radius);
418
+ }
419
+ }
420
+
421
+ :host([data-has-media]:is([data-main-corner="bottom-left"], [data-main-corner="bottom-right"])) .hero__main {
422
+ @container (min-width: ${C}) {
423
+ margin-bottom: var(--_hero-corner-radius);
424
+ }
425
+ }
426
+
427
+ /* On mobile the panel stands under the image instead of over its edge, as
428
+ wide as the image, so the rounded corner reads as the corner of one shape. */
429
+ :host([data-media-corner][data-has-media]) .hero__main {
430
+ @container (max-width: ${S}) {
431
+ margin: 0;
432
+ }
433
+ }
434
+
435
+ /* A panel along the same edge as the rounded corner of the image stops
436
+ before the curve, with the panel's own padding as the gap. */
437
+ :host([data-has-media][main-position^="top"][data-media-corner^="top"]) .hero__main,
438
+ :host([data-has-media]:is([main-position^="bottom"], :not([main-position]))[data-media-corner^="bottom"]) .hero__main {
439
+ @container (min-width: ${C}) {
440
+ max-width: min(var(--_hero-main-max-width), 100% - var(--_hero-media-corner-radius) - var(--_hero-main-padding));
441
+ }
442
+ }
443
+
444
+ :host([data-has-media][data-main-width-length][main-position^="top"][data-media-corner^="top"]) .hero__main,
445
+ :host([data-has-media][data-main-width-length]:is([main-position^="bottom"], :not([main-position]))[data-media-corner^="bottom"]) .hero__main {
446
+ @container (min-width: ${C}) {
447
+ max-width: calc(100% - var(--_hero-media-corner-radius) - var(--_hero-main-padding));
448
+ }
449
+ }
450
+
451
+ /* ## Media */
452
+
453
+ :host([data-has-media][data-media-corner="top-left"]) .hero__media {
454
+ border-top-left-radius: var(--_hero-media-corner-radius);
455
+ }
456
+
457
+ :host([data-has-media][data-media-corner="top-right"]) .hero__media {
458
+ border-top-right-radius: var(--_hero-media-corner-radius);
459
+ }
460
+
461
+ :host([data-has-media][data-media-corner="bottom-left"]) .hero__media {
462
+ @container (min-width: ${C}) {
463
+ border-bottom-left-radius: var(--_hero-media-corner-radius);
464
+ }
465
+
466
+ @container (max-width: ${S}) {
467
+ border-top-left-radius: var(--_hero-media-corner-radius);
468
+ }
469
+ }
470
+
471
+ :host([data-has-media][data-media-corner="bottom-right"]) .hero__media {
472
+ @container (min-width: ${C}) {
473
+ border-bottom-right-radius: var(--_hero-media-corner-radius);
474
+ }
475
+
476
+ @container (max-width: ${S}) {
477
+ border-top-right-radius: var(--_hero-media-corner-radius);
478
+ }
479
+ }
480
+
481
+ /* ## Main */
482
+
483
+ :host([data-main-corner="top-left"]) .hero__main {
484
+ @container (min-width: ${C}) {
485
+ border-top-left-radius: var(--_hero-main-corner-radius);
486
+ }
487
+ }
488
+
489
+ :host([data-main-corner="top-right"]) .hero__main {
490
+ @container (min-width: ${C}) {
491
+ border-top-right-radius: var(--_hero-main-corner-radius);
492
+ }
493
+ }
494
+
495
+ :host([data-main-corner="bottom-left"]) .hero__main {
496
+ @container (min-width: ${C}) {
497
+ border-bottom-left-radius: var(--_hero-main-corner-radius);
498
+ }
499
+ }
500
+
501
+ :host([data-main-corner="bottom-right"]) .hero__main {
502
+ @container (min-width: ${C}) {
503
+ border-bottom-right-radius: var(--_hero-main-corner-radius);
504
+ }
505
+ }
506
+
507
+ /* Along the two sides of its rounded corner the panel takes more padding, so
508
+ the content keeps the usual padding to the curve as well:
509
+ r - (r - p) / sqrt(2), rounded up to a step of the scale. */
510
+ :host([data-main-corner]) .hero {
511
+ @container (min-width: ${C}) and (max-width: ${w}) {
512
+ --_hero-main-corner-padding: var(--primitives-space-32);
513
+ }
514
+
515
+ @container (min-width: ${T}) {
516
+ --_hero-main-corner-padding: var(--primitives-space-40);
517
+ }
518
+ }
519
+
520
+ :host(:is([data-main-corner="top-left"], [data-main-corner="top-right"])) .hero__main {
521
+ @container (min-width: ${C}) {
522
+ padding-top: var(--_hero-main-corner-padding);
523
+ }
524
+ }
525
+
526
+ :host(:is([data-main-corner="bottom-left"], [data-main-corner="bottom-right"])) .hero__main {
527
+ @container (min-width: ${C}) {
528
+ padding-bottom: var(--_hero-main-corner-padding);
529
+ }
530
+ }
531
+
532
+ :host(:is([data-main-corner="top-left"], [data-main-corner="bottom-left"])) .hero__main {
533
+ @container (min-width: ${C}) {
534
+ padding-left: var(--_hero-main-corner-padding);
535
+ }
536
+ }
537
+
538
+ :host(:is([data-main-corner="top-right"], [data-main-corner="bottom-right"])) .hero__main {
539
+ @container (min-width: ${C}) {
540
+ padding-right: var(--_hero-main-corner-padding);
541
+ }
542
+ }
543
+
544
+ /* ## Without media */
545
+
546
+ :host(:not([data-has-media])[data-media-corner="top-left"]) :is(.hero__body, .hero__main) {
547
+ border-top-left-radius: var(--_hero-main-corner-radius);
548
+ }
549
+
550
+ :host(:not([data-has-media])[data-media-corner="top-right"]) :is(.hero__body, .hero__main) {
551
+ border-top-right-radius: var(--_hero-main-corner-radius);
552
+ }
553
+
554
+ :host(:not([data-has-media])[data-media-corner="bottom-left"]) :is(.hero__body, .hero__main) {
555
+ border-bottom-left-radius: var(--_hero-main-corner-radius);
556
+ }
557
+
558
+ :host(:not([data-has-media])[data-media-corner="bottom-right"]) :is(.hero__body, .hero__main) {
559
+ border-bottom-right-radius: var(--_hero-main-corner-radius);
560
+ }
561
+
562
+ :host(:not([data-has-media]):is([data-media-corner="top-left"], [data-media-corner="bottom-left"])) .hero__main {
563
+ padding-left: calc(var(--_hero-main-padding) + var(--_hero-main-corner-radius) / 2);
564
+ }
565
+
566
+ :host(:not([data-has-media]):is([data-media-corner="top-right"], [data-media-corner="bottom-right"])) .hero__main {
567
+ padding-right: calc(var(--_hero-main-padding) + var(--_hero-main-corner-radius) / 2);
568
+ }
569
+ `, D = [
570
+ "top-left",
571
+ "top-right",
572
+ "bottom-left",
573
+ "bottom-right"
574
+ ], O = {
575
+ "bottom-left": "top-right",
576
+ "bottom-right": "bottom-left",
577
+ "top-left": "top-right",
578
+ "top-right": "top-left",
579
+ left: "top-right",
580
+ right: "top-left"
581
+ };
582
+ function k(e) {
583
+ return e.endsWith("right") ? "top-left" : "top-right";
584
+ }
585
+ var A = {
586
+ "bottom-left": "top-right",
587
+ "bottom-right": "top-left",
588
+ "top-left": "bottom-right",
589
+ "top-right": "bottom-left",
590
+ left: null,
591
+ right: null
592
+ };
593
+ function j(e, t) {
594
+ if (t === "left") return ["top-left", "bottom-left"];
595
+ if (t === "right") return ["top-right", "bottom-right"];
596
+ if (e.mainWidth !== "full") return [t];
597
+ let n = t.startsWith("top") ? "top" : "bottom";
598
+ return [`${n}-left`, `${n}-right`];
599
+ }
600
+ function M(e) {
601
+ e.removeAttribute("data-media-corner"), e.removeAttribute("data-main-corner"), u(e, "corner-covered", !1), u(e, "corner-unknown", !1);
602
+ }
603
+ function N(e) {
604
+ if (e.corner === null || e.corner === void 0) {
605
+ M(e), u(e, "corner-unsupported", !1);
606
+ return;
607
+ }
608
+ let t = e.mainPosition === "top-center" || e.mainPosition === "bottom-center", n = Object.prototype.hasOwnProperty.call(A, e.mainPosition) ? e.mainPosition : "bottom-left", r = e._hasMedia && (e.layout !== "contained" || t);
609
+ if (u(e, "corner-unsupported", r), r) {
610
+ M(e);
611
+ return;
612
+ }
613
+ let i = e.corner.trim(), a = D.includes(i) ? i : null, o = e._hasMedia ? j(e, n) : [], s = a ?? (e._hasMedia ? O[n] : k(e.mainPosition));
614
+ if (!a && o.includes(s)) {
615
+ let e = s.endsWith("left") ? "left" : "right";
616
+ s = `${s.startsWith("top") ? "bottom" : "top"}-${e}`;
617
+ }
618
+ let c = e._hasMedia && e.mainWidth !== "full" ? A[n] : null;
619
+ e.setAttribute("data-media-corner", s), c ? e.setAttribute("data-main-corner", c) : e.removeAttribute("data-main-corner"), u(e, "corner-covered", a !== null && o.includes(a)), u(e, "corner-unknown", a === null && i !== "" && i !== "auto");
620
+ }
621
+ var P = ["--_hero-media-corner-limit", "--_hero-main-corner-limit"];
622
+ function F(e, t) {
623
+ for (let n of t) {
624
+ let t = n.borderBoxSize?.[0], r = t?.inlineSize ?? n.contentRect.width, i = t?.blockSize ?? n.contentRect.height;
625
+ if (!r || !i) continue;
626
+ let a = n.target.classList.contains("hero__media") ? P[0] : P[1];
627
+ e.style.setProperty(a, `${Math.min(r, i) / 3}px`);
628
+ }
629
+ }
630
+ function I(e) {
631
+ for (let t of P) e.style.removeProperty(t);
632
+ }
633
+ // src/components/layout/page-sections/hero/hero.ts
634
+ var L, R = /* @__PURE__ */ new Set([
635
+ "inherit",
636
+ "initial",
637
+ "unset",
638
+ "revert",
639
+ "revert-layer"
640
+ ]);
641
+ function z(e, t) {
642
+ return !R.has(t.trim().toLowerCase()) && CSS.supports(e, t);
643
+ }
644
+ var B = (L = class extends h(i) {
645
+ constructor(...e) {
646
+ super(...e), this.width = "", this.corner = null, this.layout = "overlap", this.mainBackground = "accent", this.mainWidth = "auto", this.mainPosition = "bottom-left", this.mediaAspectRatio = "", this.overlapSize = "", this.mediaHeight = "", this.mediaSrc = "", this.mediaSrcset = "", this.mediaSizes = "", this.mediaAlt = "", this._slotHasMedia = !1, this._cornerObserver = null, this._overlapObserver = null;
647
+ }
648
+ get _hasMedia() {
649
+ return this.mediaSrc !== "" || this._slotHasMedia;
650
+ }
651
+ willUpdate(e) {
652
+ super.willUpdate(e), this.toggleAttribute("data-has-media", this._hasMedia), N(this);
653
+ }
654
+ connectedCallback() {
655
+ super.connectedCallback(), import.meta.env?.DEV && this.hasUpdated && this._watchOverlap(), this.hasUpdated && this._watchCorner();
656
+ }
657
+ disconnectedCallback() {
658
+ super.disconnectedCallback(), this._overlapObserver?.disconnect(), this._overlapObserver = null, this._cornerObserver?.disconnect(), this._cornerObserver = null;
659
+ }
660
+ updated(e) {
661
+ if (super.updated(e), e.has("width")) {
662
+ let e = this.width;
663
+ e && e !== "full" && z("max-width", e) ? this.style.setProperty("--_hero-max-width", e) : this.style.removeProperty("--_hero-max-width");
664
+ }
665
+ if (import.meta.env?.DEV && e.has("layout") && this._watchOverlap(), e.has("corner") && this._watchCorner(), e.has("mainWidth")) {
666
+ let e = (this.mainWidth ?? "").trim(), t = e !== "" && e !== "auto" && e !== "full", n = t && z("width", e);
667
+ n ? this.style.setProperty("--_hero-main-width", e) : this.style.removeProperty("--_hero-main-width"), this.toggleAttribute("data-main-width-length", n), u(this, "invalid-main-width", t && !n);
668
+ }
669
+ if (e.has("overlapSize")) {
670
+ let e = (this.overlapSize ?? "").trim();
671
+ e && z("margin-top", e) ? this.style.setProperty("--_hero-overlap-size", e) : this.style.removeProperty("--_hero-overlap-size");
672
+ }
673
+ if (e.has("mediaHeight")) {
674
+ let e = (this.mediaHeight ?? "").trim();
675
+ e && z("height", e) ? this.style.setProperty("--_hero-media-height", e) : this.style.removeProperty("--_hero-media-height");
676
+ }
677
+ if (e.has("height") && this.height && this.style.removeProperty("min-height"), e.has("mediaAspectRatio")) {
678
+ let e = (this.mediaAspectRatio ?? "").replace(":", "/").trim();
679
+ e && z("aspect-ratio", e) ? this.style.setProperty("--_hero-media-aspect-ratio", e) : this.style.removeProperty("--_hero-media-aspect-ratio");
680
+ }
681
+ }
682
+ _watchCorner() {
683
+ if (this.corner === null || this.corner === void 0 || typeof ResizeObserver > "u") {
684
+ this._cornerObserver?.disconnect(), this._cornerObserver = null, I(this);
685
+ return;
686
+ }
687
+ if (this._cornerObserver) return;
688
+ let e = this.shadowRoot?.querySelector(".hero__media"), t = this.shadowRoot?.querySelector(".hero__main");
689
+ e && t && (this._cornerObserver = new ResizeObserver((e) => F(this, e)), this._cornerObserver.observe(e), this._cornerObserver.observe(t));
690
+ }
691
+ _watchOverlap() {
692
+ if (this.layout === "contained" || typeof ResizeObserver > "u") {
693
+ this._overlapObserver?.disconnect(), this._overlapObserver = null, u(this, "short-overlap-panel", !1);
694
+ return;
695
+ }
696
+ if (this._overlapObserver) return;
697
+ let e = this.shadowRoot?.querySelector(".hero__media"), t = this.shadowRoot?.querySelector(".hero__main");
698
+ e && t && (this._overlapObserver = new ResizeObserver(() => this._checkOverlap(e, t)), this._overlapObserver.observe(e), this._overlapObserver.observe(t));
699
+ }
700
+ _checkOverlap(e, t) {
701
+ this._hasMedia && getComputedStyle(e).position !== "static" && u(this, "short-overlap-panel", t.getBoundingClientRect().bottom <= e.getBoundingClientRect().bottom);
702
+ }
703
+ _onMediaSlotChange(e) {
704
+ let t = e.target;
705
+ this._slotHasMedia = t.assignedElements().length > 0;
706
+ }
707
+ render() {
708
+ return x(this);
709
+ }
710
+ }, L.styles = [
711
+ m,
712
+ b,
713
+ E
714
+ ], L);
715
+ s([n({
716
+ reflect: !0,
717
+ converter: l("")
718
+ })], B.prototype, "width", void 0), s([n({
719
+ type: String,
720
+ reflect: !0
721
+ })], B.prototype, "corner", void 0), s([n({
722
+ reflect: !0,
723
+ converter: l("overlap")
724
+ })], B.prototype, "layout", void 0), s([n({
725
+ reflect: !0,
726
+ attribute: "main-background",
727
+ converter: l("accent")
728
+ })], B.prototype, "mainBackground", void 0), s([n({
729
+ reflect: !0,
730
+ attribute: "main-width",
731
+ converter: l("auto")
732
+ })], B.prototype, "mainWidth", void 0), s([n({
733
+ reflect: !0,
734
+ attribute: "main-position",
735
+ converter: l("bottom-left")
736
+ })], B.prototype, "mainPosition", void 0), s([n({
737
+ reflect: !0,
738
+ attribute: "media-aspect-ratio",
739
+ converter: l("")
740
+ })], B.prototype, "mediaAspectRatio", void 0), s([n({
741
+ reflect: !0,
742
+ attribute: "overlap-size",
743
+ converter: l("")
744
+ })], B.prototype, "overlapSize", void 0), s([n({
745
+ reflect: !0,
746
+ attribute: "media-height",
747
+ converter: l("")
748
+ })], B.prototype, "mediaHeight", void 0), s([n({
749
+ type: String,
750
+ attribute: "media-src"
751
+ })], B.prototype, "mediaSrc", void 0), s([n({
752
+ type: String,
753
+ attribute: "media-srcset"
754
+ })], B.prototype, "mediaSrcset", void 0), s([n({
755
+ type: String,
756
+ attribute: "media-sizes"
757
+ })], B.prototype, "mediaSizes", void 0), s([n({
758
+ type: String,
759
+ attribute: "media-alt"
760
+ })], B.prototype, "mediaAlt", void 0), s([r()], B.prototype, "_slotHasMedia", void 0), B = s([c("nldd-hero")], B);
761
+ export { B as NLDDHero };