@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,383 @@
1
+ import { i as e } from "./custom-element-q6NzoL5b.js";
2
+ import "./decorate-TduJMFD_.js";
3
+ import { t } from "./shadow-resets-6SToDsPu.js";
4
+ // src/components/actions/toolbar/toolbar.styles.ts
5
+ var n = e`
6
+ :host {
7
+ box-sizing: border-box;
8
+ }
9
+
10
+
11
+ /* # Host */
12
+
13
+ :host {
14
+ --_toolbar-gap: var(--primitives-space-8);
15
+ /* --_toolbar-width..--_toolbar-overflow-button-width: measured + set by toolbar.ts; 0px is a valid pre-measurement placeholder */
16
+ --_toolbar-width: 0px;
17
+ --_toolbar-start-width: 0px;
18
+ --_toolbar-center-width: 0px;
19
+ --_toolbar-end-width: 0px;
20
+ --_toolbar-overflow-button-width: 0px;
21
+ /* The gap between a side area and its spacer only exists when that area is
22
+ non-empty; toolbar.ts drops these to 0px when start/end is empty so the
23
+ spacer basis doesn't over-subtract and pull the center off-center. */
24
+ --_toolbar-left-spacer-gap: var(--_toolbar-gap);
25
+ --_toolbar-right-spacer-gap: var(--_toolbar-gap);
26
+ --_toolbar-label-margin-top: var(--primitives-space-4);
27
+
28
+ ${t}
29
+ box-sizing: border-box;
30
+ display: block;
31
+ }
32
+
33
+ :host([size="sm"]) {
34
+ --_toolbar-gap: var(--primitives-space-6);
35
+ }
36
+
37
+ :host([size="lg"]) {
38
+ --_toolbar-gap: var(--primitives-space-8);
39
+ }
40
+
41
+ :host([hidden]) {
42
+ display: none;
43
+ }
44
+
45
+
46
+ /* # Block */
47
+
48
+ .toolbar {
49
+ display: flex;
50
+ width: 100%;
51
+ flex-direction: row;
52
+ gap: var(--_toolbar-gap);
53
+ align-items: center;
54
+ }
55
+
56
+
57
+ /* # Items */
58
+
59
+ .toolbar__items {
60
+ display: flex;
61
+ min-width: 0;
62
+ flex-direction: row;
63
+ flex-grow: 1;
64
+ flex-shrink: 1;
65
+ flex-basis: 0;
66
+ gap: var(--_toolbar-gap);
67
+ align-items: flex-start;
68
+ }
69
+
70
+
71
+ /* # Spacers */
72
+
73
+ .toolbar__flexible-spacer {
74
+ margin-left: calc(-1 * var(--_toolbar-gap));
75
+ flex-grow: 1;
76
+ flex-shrink: 1;
77
+ }
78
+
79
+ .toolbar__center-fill {
80
+ display: flex;
81
+ min-width: 0;
82
+ flex-direction: row;
83
+ flex-grow: 1;
84
+ flex-shrink: 1;
85
+ align-items: flex-start;
86
+ justify-content: center;
87
+ }
88
+
89
+ .toolbar__left-spacer {
90
+ margin-right: calc(-1 * var(--_toolbar-gap));
91
+ min-width: 0;
92
+ flex-grow: 0;
93
+ flex-shrink: 1;
94
+ flex-basis: calc(
95
+ var(--_toolbar-width) / 2
96
+ - var(--_toolbar-start-width)
97
+ - var(--_toolbar-center-width) / 2
98
+ - var(--_toolbar-left-spacer-gap)
99
+ );
100
+ }
101
+
102
+ .toolbar__right-spacer {
103
+ margin-left: calc(-1 * var(--_toolbar-gap));
104
+ min-width: 0;
105
+ flex-grow: 0;
106
+ flex-shrink: 1;
107
+ flex-basis: calc(
108
+ var(--_toolbar-width) / 2
109
+ - var(--_toolbar-end-width)
110
+ - var(--_toolbar-center-width) / 2
111
+ - var(--_toolbar-right-spacer-gap)
112
+ - var(--_toolbar-overflow-button-width)
113
+ );
114
+ }
115
+
116
+
117
+ /* # Overflow button */
118
+
119
+ .toolbar__overflow-button {
120
+ display: inline-flex;
121
+ flex-direction: column;
122
+ flex-grow: 0;
123
+ flex-shrink: 0;
124
+ align-items: center;
125
+ }
126
+
127
+ .toolbar__overflow-button.is-hidden {
128
+ display: none;
129
+ }
130
+
131
+ .toolbar__overflow-button-label {
132
+ display: none;
133
+ margin-top: var(--_toolbar-label-margin-top);
134
+ color: var(--semantics-content-color);
135
+ font: var(--primitives-font-body-xs-regular-flat);
136
+ white-space: nowrap;
137
+ }
138
+
139
+ :host([show-item-labels]) .toolbar__overflow-button-label {
140
+ display: block;
141
+ }
142
+ `, r = e`
143
+
144
+
145
+ /* # Host */
146
+
147
+ :host {
148
+ --_toolbar-item-max-width: none;
149
+ --_toolbar-item-min-width: 0px;
150
+ --_toolbar-item-width: auto;
151
+ --_toolbar-item-preferred-width: auto;
152
+ --_toolbar-item-shrunk-min-width: 0px;
153
+ --_toolbar-item-label-margin-top: var(--primitives-space-4);
154
+
155
+ display: inline-flex;
156
+ max-width: var(--_toolbar-item-max-width);
157
+ flex-direction: column;
158
+ flex-grow: 0;
159
+ flex-shrink: 0;
160
+ align-items: center;
161
+ }
162
+
163
+ :host([fluid]) {
164
+ min-width: var(--_toolbar-item-min-width);
165
+ flex-shrink: 1;
166
+ flex-basis: var(--_toolbar-item-width);
167
+ }
168
+
169
+ :host([solo-fluid]) {
170
+ min-width: 0;
171
+ flex-grow: 1;
172
+ flex-shrink: 1;
173
+ flex-basis: 0;
174
+ }
175
+
176
+ :host([shrinkable]) {
177
+ flex-basis: var(--_toolbar-item-preferred-width);
178
+ }
179
+
180
+ :host([shrunk]) {
181
+ min-width: var(--_toolbar-item-shrunk-min-width);
182
+ max-width: var(--_toolbar-item-preferred-width);
183
+ flex-grow: 1;
184
+ flex-shrink: 1;
185
+ }
186
+
187
+ :host([hidden]) {
188
+ display: none;
189
+ }
190
+
191
+
192
+ /* # Block */
193
+
194
+ .toolbar__item-content {
195
+ display: inline-flex;
196
+ width: 100%;
197
+ align-items: center;
198
+ justify-content: center;
199
+ }
200
+
201
+ :host([fluid]) .toolbar__item-content ::slotted(*),
202
+ :host([solo-fluid]) .toolbar__item-content ::slotted(*),
203
+ :host([shrinkable]) .toolbar__item-content ::slotted(*) {
204
+ width: 100%;
205
+ }
206
+
207
+
208
+ /* # Elements */
209
+
210
+ .toolbar__item-label {
211
+ display: none;
212
+ margin-top: var(--_toolbar-item-label-margin-top);
213
+ color: var(--semantics-content-color);
214
+ font: var(--primitives-font-body-xs-regular-flat);
215
+ white-space: nowrap;
216
+ }
217
+
218
+ :host([show-item-labels]) .toolbar__item-label {
219
+ display: block;
220
+ }
221
+
222
+
223
+ /* # Slots */
224
+
225
+ slot[name="overflow"] {
226
+ display: none;
227
+ }
228
+ `, i = e`
229
+
230
+
231
+ /* # Host */
232
+
233
+ :host {
234
+ --_toolbar-title-group-min-width: min-content;
235
+ --_toolbar-title-width: auto;
236
+ --_toolbar-title-max-width: var(--primitives-area-240);
237
+ --_toolbar-title-group-height: var(--semantics-controls-md-min-size);
238
+ --_toolbar-title-content-gap: var(--primitives-space-6);
239
+ --_toolbar-title-font: var(--primitives-font-body-lg-semi-bold-flat);
240
+ --_toolbar-title-supporting-text-font: var(--primitives-font-body-xs-regular-flat);
241
+
242
+ ${t}
243
+ display: inline-flex;
244
+ min-width: var(--_toolbar-title-group-min-width);
245
+ height: var(--_toolbar-title-group-height);
246
+ flex-direction: row;
247
+ flex-shrink: 1;
248
+ flex-basis: var(--_toolbar-title-width);
249
+ gap: var(--_toolbar-title-content-gap);
250
+ align-items: center;
251
+ }
252
+
253
+ :host([size="sm"]) {
254
+ --_toolbar-title-group-height: var(--semantics-controls-sm-min-size);
255
+ --_toolbar-title-font: var(--primitives-font-body-sm-semi-bold-flat);
256
+ --_toolbar-title-supporting-text-font: var(--primitives-font-body-xxs-regular-flat);
257
+ }
258
+
259
+ :host([size="lg"]) {
260
+ --_toolbar-title-group-height: var(--semantics-controls-lg-min-size);
261
+ }
262
+
263
+ :host([solo-fluid]) {
264
+ min-width: 0;
265
+ flex-grow: 1;
266
+ flex-shrink: 1;
267
+ flex-basis: 0;
268
+ }
269
+
270
+ /* Sole toolbar element: let the text fill the row instead of capping at
271
+ --_toolbar-title-max-width, matching the pre-fit-content stretch behavior. */
272
+ :host([solo-fluid]) .toolbar__title-group {
273
+ max-width: none;
274
+ }
275
+
276
+ :host([align="center"]) .toolbar__title-group {
277
+ align-items: center;
278
+ }
279
+
280
+ /* A solo-fluid title fills the whole row (flex-grow above), so text-align on
281
+ the shrink-wrapped title-group can't center it. Center the group (with its
282
+ trailing action, as one unit) along the row's main axis instead. Scoped to
283
+ solo-fluid so a title balanced by real start/end items keeps using the
284
+ toolbar spacers. */
285
+ :host([solo-fluid][align="center"]),
286
+ :host([solo-fluid][slot="center"]) {
287
+ justify-content: center;
288
+ }
289
+
290
+ :host([hidden]) {
291
+ display: none;
292
+ }
293
+
294
+
295
+ /* # Elements */
296
+
297
+ /* The title + supporting text column: the fit-content-capped, clipping part. The
298
+ action slot sits outside this cap so the control is never truncated. */
299
+ .toolbar__title-group {
300
+ display: flex;
301
+ min-width: 0;
302
+ max-width: var(--_toolbar-title-max-width);
303
+ flex-direction: column;
304
+ justify-content: center;
305
+ align-items: flex-start;
306
+ overflow: hidden;
307
+ }
308
+
309
+ .toolbar__title-link {
310
+ display: inline-flex;
311
+ border-radius: var(--semantics-controls-sm-corner-radius);
312
+ color: inherit;
313
+ min-width: 0;
314
+ gap: var(--_toolbar-title-content-gap);
315
+ align-items: center;
316
+ text-decoration: none;
317
+ }
318
+
319
+ .toolbar__link-hint {
320
+ position: absolute;
321
+ margin: -1px;
322
+ border: 0;
323
+ width: 1px;
324
+ height: 1px;
325
+ overflow: hidden;
326
+ padding: 0;
327
+ white-space: nowrap;
328
+ clip-path: inset(50%);
329
+ }
330
+
331
+ .toolbar__title-link:focus-visible {
332
+ outline: var(--semantics-focus-ring-outline);
333
+ outline-offset: var(--semantics-focus-ring-outline-offset);
334
+ box-shadow: var(--semantics-focus-ring-box-shadow);
335
+ }
336
+
337
+
338
+ /* The space around these is a gap on the host: a margin here loses to the
339
+ consumer's own margin reset, which lives in the tree the element is in.
340
+ And no width, because ::slotted does beat the element's own :host. */
341
+ ::slotted([slot="media"]),
342
+ ::slotted([slot="action"]) {
343
+ flex-shrink: 0;
344
+ }
345
+
346
+ ::slotted([slot="media"]) {
347
+ max-height: 100%;
348
+ }
349
+
350
+ /* text-align lives on the text elements, not :host: the inheritedTextReset on
351
+ :host locks text-align to start, so a host-level override would need
352
+ !important. The title and supporting text are shadow elements outside that reset. */
353
+ .toolbar__title {
354
+ margin: 0;
355
+ max-width: 100%;
356
+ overflow: hidden;
357
+ color: var(--semantics-content-color);
358
+ font: var(--_toolbar-title-font);
359
+ text-overflow: ellipsis;
360
+ white-space: nowrap;
361
+ text-align: left;
362
+ }
363
+
364
+ :host([align="center"]) .toolbar__title {
365
+ text-align: center;
366
+ }
367
+
368
+ .toolbar__supporting-text {
369
+ margin: 0;
370
+ max-width: 100%;
371
+ overflow: hidden;
372
+ color: var(--semantics-content-secondary-color);
373
+ font: var(--_toolbar-title-supporting-text-font);
374
+ text-overflow: ellipsis;
375
+ white-space: nowrap;
376
+ text-align: left;
377
+ }
378
+
379
+ :host([align="center"]) .toolbar__supporting-text {
380
+ text-align: center;
381
+ }
382
+ `;
383
+ export { n, i as r, r as t };
@@ -0,0 +1,325 @@
1
+ import { r as e } from "./icon-BORlalt0.js";
2
+ import { i as t, n, t as r } from "./custom-element-q6NzoL5b.js";
3
+ import { n as i, o as a, r as o, t as s } from "./decorate-TduJMFD_.js";
4
+ import { t as c } from "./custom-element-BW8Ua4c7.js";
5
+ import { t as l } from "./reflect-non-default-Bu3rpCvg.js";
6
+ import { t as u } from "./shadow-resets-6SToDsPu.js";
7
+ import { i as d, n as f, r as p } from "./keyboard-shortcut-EknnW7Ub.js";
8
+ import { a as m, i as h, n as g, r as _ } from "./floating-ui.dom-B8J1rV2c.js";
9
+ import { r as v } from "./input-modality-XE0B7yCn.js";
10
+ import { t as y } from "./carried-context-DlMSujiJ.js";
11
+ // src/components/content/tooltip/tooltip.styles.ts
12
+ var b = t`
13
+ :host {
14
+ box-sizing: border-box;
15
+ }
16
+
17
+
18
+ /* # Host */
19
+
20
+ :host {
21
+ --_tooltip-hide-duration: var(--primitives-transition-duration-fast);
22
+ --_tooltip-show-duration: var(--primitives-transition-duration-fast);
23
+ --_tooltip-max-width: var(--primitives-area-280);
24
+ --_tooltip-z-index: 10000;
25
+ --_tooltip-show-delay: 700ms;
26
+ --_tooltip-box-shadow: var(--semantics-tooltips-box-shadow);
27
+ --_tooltip-background-color: var(--semantics-tooltips-background-color);
28
+ --_tooltip-content-color: var(--semantics-tooltips-content-color);
29
+ --_tooltip-shortcut-gap: var(--primitives-space-8);
30
+ --_tooltip-hide-delay: 50; /* unitless ms, read by JavaScript */
31
+ --_tooltip-offset: 4; /* px, unitless — read by JS */
32
+ --_tooltip-shift-padding: 8; /* px, unitless — read by JS */
33
+
34
+ ${u}
35
+ display: contents;
36
+ }
37
+
38
+ :host([timing="instant"]) {
39
+ --_tooltip-hide-duration: 0s;
40
+ --_tooltip-show-duration: 0s;
41
+ }
42
+
43
+ :host([hidden]) {
44
+ display: none;
45
+ }
46
+
47
+
48
+ /* # Block */
49
+
50
+ /* A parent whose triggers sit close together sets
51
+ --context-tooltip-pointer-events to none, so a click on the tooltip
52
+ reaches the control underneath. Unset, the tooltip inherits as before. */
53
+ .tooltip {
54
+ pointer-events: var(--context-tooltip-pointer-events);
55
+ position: fixed;
56
+ opacity: 0;
57
+ margin: 0;
58
+ border: none;
59
+ background: none;
60
+ padding: 0;
61
+ transition:
62
+ opacity var(--_tooltip-hide-duration) ease,
63
+ display var(--_tooltip-hide-duration) allow-discrete,
64
+ overlay var(--_tooltip-hide-duration) allow-discrete;
65
+ }
66
+
67
+ .tooltip:popover-open {
68
+ opacity: 1;
69
+ transition:
70
+ opacity var(--_tooltip-show-duration) ease,
71
+ display var(--_tooltip-show-duration) allow-discrete,
72
+ overlay var(--_tooltip-show-duration) allow-discrete;
73
+ }
74
+
75
+ /* Stay invisible (no fade) until Floating UI has placed it, so the fade-in plays at
76
+ the final position rather than flashing at the popover's default spot. The
77
+ positioned attribute is set once _updatePosition writes the coordinates. */
78
+ .tooltip:popover-open:not([positioned]) {
79
+ /* visibility (like nldd-menu/nldd-popover) keeps the not-yet-placed tooltip out
80
+ of hit-testing at its stale default spot; opacity still drives the fade. */
81
+ visibility: hidden;
82
+ opacity: 0;
83
+ transition: none;
84
+ }
85
+
86
+ @starting-style {
87
+ .tooltip:popover-open {
88
+ opacity: 0;
89
+ }
90
+ }
91
+
92
+ @media (prefers-reduced-motion: reduce) {
93
+ .tooltip,
94
+ .tooltip.is-visible,
95
+ .tooltip.is-focus-visible {
96
+ transition: none;
97
+ }
98
+ }
99
+
100
+
101
+ /* ## Tooltip body */
102
+
103
+ .tooltip__body {
104
+ display: flex;
105
+ border-radius: var(--semantics-tooltips-corner-radius);
106
+ box-shadow: var(--_tooltip-box-shadow);
107
+ background-color: var(--_tooltip-background-color);
108
+ width: max-content;
109
+ max-width: var(--_tooltip-max-width);
110
+ padding-block: var(--semantics-tooltips-padding-block);
111
+ padding-inline: var(--semantics-tooltips-padding-inline);
112
+ flex-wrap: wrap;
113
+ column-gap: var(--_tooltip-shortcut-gap);
114
+ align-items: baseline;
115
+ color: var(--_tooltip-content-color);
116
+ font: var(--semantics-tooltips-font);
117
+ overflow-wrap: break-word;
118
+ }
119
+
120
+ .tooltip__text {
121
+ min-width: 0;
122
+ text-wrap: pretty;
123
+ }
124
+
125
+ .tooltip__shortcut {
126
+ white-space: nowrap;
127
+ }
128
+
129
+ @media (forced-colors: active) {
130
+ .tooltip__body {
131
+ border: 1px solid CanvasText;
132
+ }
133
+ }
134
+ `;
135
+ // src/components/content/tooltip/tooltip.template.ts
136
+ function x(e) {
137
+ return a`
138
+ <slot
139
+ @mouseenter=${e._handleTriggerEnter}
140
+ @mouseleave=${e._handleTriggerLeave}
141
+ @focusin=${e._handleFocusIn}
142
+ @focusout=${e._handleFocusOut}
143
+ @click=${e._handleTriggerActivate}
144
+ ></slot>
145
+ <div class="tooltip"
146
+ popover="manual"
147
+ aria-hidden="true"
148
+ @mouseenter=${e._handleTooltipEnter}
149
+ @mouseleave=${e._handleTooltipLeave}
150
+ >
151
+ <div class="tooltip__body">
152
+ ${e.text ? a`<span class="tooltip__text">${e.text}</span>` : o}
153
+ ${p(e) ? a`
154
+ <span class="tooltip__shortcut">
155
+ <nldd-keyboard-shortcut
156
+ size="inherit"
157
+ appearance="simple"
158
+ color="inherit"
159
+ keys=${e.shortcut || o}
160
+ mac-keys=${e.shortcutMac || o}
161
+ windows-keys=${e.shortcutWindows || o}
162
+ linux-keys=${e.shortcutLinux || o}
163
+ ></nldd-keyboard-shortcut>
164
+ </span>
165
+ ` : o}
166
+ </div>
167
+ </div>
168
+ `;
169
+ }
170
+ // src/components/content/tooltip/tooltip.ts
171
+ var S = /* @__PURE__ */ e({ NLDDTooltip: () => O }), C, w = 0, T = matchMedia("(pointer: coarse)"), E = 700, D = 50, O = (C = class extends i {
172
+ constructor(...e) {
173
+ super(...e), this.text = "", this.shortcut = "", this.shortcutMac = "", this.shortcutWindows = "", this.shortcutLinux = "", this.open = !1, this.placement = "bottom", this.timing = "delay", this._visible = !1, this._tooltipId = `nldd-tooltip-${++w}`, this._hideTimeout = null, this._showTimeout = null, this._descriptionEl = null, this._currentTrigger = null, this._boundSlotChange = () => this._syncAriaDescribedBy(), this._shortcutAvailability = new f(this, () => this._syncAriaDescribedBy()), this._positionVersion = 0, this._shownByHover = !1, this._handleScroll = () => {
174
+ this.open || !this._shownByHover ? this._updatePosition() : (this._hideTimeout && (clearTimeout(this._hideTimeout), this._hideTimeout = null), this._visible = !1);
175
+ }, this._handleKeyDown = (e) => {
176
+ if (e.key === "Escape" && this._visible) {
177
+ if (this.open) {
178
+ if (!e.composedPath().includes(this)) return;
179
+ this.dispatchEvent(new CustomEvent("nldd-tooltip-dismiss", {
180
+ bubbles: !0,
181
+ composed: !0
182
+ })), e.preventDefault(), e.stopPropagation();
183
+ } else this._visible = !1, e.preventDefault(), e.stopPropagation();
184
+ }
185
+ };
186
+ }
187
+ get _effectivePlacement() {
188
+ return this.placement;
189
+ }
190
+ connectedCallback() {
191
+ super.connectedCallback(), this._visible && (document.addEventListener("keydown", this._handleKeyDown, !0), document.addEventListener("scroll", this._handleScroll, {
192
+ capture: !0,
193
+ passive: !0
194
+ })), this.hasUpdated && this.shadowRoot?.querySelector("slot")?.addEventListener("slotchange", this._boundSlotChange);
195
+ }
196
+ firstUpdated() {
197
+ this.shadowRoot?.querySelector("slot")?.addEventListener("slotchange", this._boundSlotChange);
198
+ }
199
+ updated(e) {
200
+ if (e.has("open") && (this.open ? (this._hideTimeout && (clearTimeout(this._hideTimeout), this._hideTimeout = null), this._showTimeout && (clearTimeout(this._showTimeout), this._showTimeout = null), this._shownByHover = !1, this._visible = !0) : this._visible && (this._visible = !1)), e.has("_visible")) {
201
+ this._visible ? (document.addEventListener("keydown", this._handleKeyDown, !0), document.addEventListener("scroll", this._handleScroll, {
202
+ capture: !0,
203
+ passive: !0
204
+ })) : (document.removeEventListener("keydown", this._handleKeyDown, !0), document.removeEventListener("scroll", this._handleScroll, { capture: !0 }));
205
+ let e = this._getTooltipElement();
206
+ e && (this._visible ? (e.matches(":popover-open") || (e.removeAttribute("positioned"), e.showPopover()), this._updatePosition()) : e.matches(":popover-open") && e.hidePopover());
207
+ }
208
+ (e.has("text") || e.has("timing") || e.has("shortcut") || e.has("shortcutMac") || e.has("shortcutWindows") || e.has("shortcutLinux")) && this._syncAriaDescribedBy(), e.has("text") && this._visible && this._updatePosition(), e.has("timing") && this.timing === "never" && (this._showTimeout && (clearTimeout(this._showTimeout), this._showTimeout = null), this._visible && (this._visible = !1));
209
+ }
210
+ _syncAriaDescribedBy() {
211
+ let e = this._getTriggerElement();
212
+ if (this._currentTrigger && this._currentTrigger !== e && this._currentTrigger.removeAttribute("aria-describedby"), this._currentTrigger = e, !e || e.getRootNode() !== document) return;
213
+ let t = [this.text, d(this)].filter(Boolean).join(" ");
214
+ t && this.timing !== "never" ? (this._descriptionEl || (this._descriptionEl = document.createElement("span"), this._descriptionEl.id = this._tooltipId, Object.assign(this._descriptionEl.style, {
215
+ position: "absolute",
216
+ top: "0",
217
+ left: "0",
218
+ width: "1px",
219
+ height: "1px",
220
+ overflow: "hidden",
221
+ clipPath: "inset(50%)",
222
+ whiteSpace: "nowrap"
223
+ }), document.body.appendChild(this._descriptionEl)), y(this._descriptionEl, this, { scheme: !1 }), this._descriptionEl.textContent !== t && (this._descriptionEl.textContent = t), e.getAttribute("aria-describedby") !== this._tooltipId && e.setAttribute("aria-describedby", this._tooltipId)) : (e.removeAttribute("aria-describedby"), this._descriptionEl?.remove(), this._descriptionEl = null);
224
+ }
225
+ _getTriggerElement() {
226
+ return (this.shadowRoot?.querySelector("slot"))?.assignedElements({ flatten: !0 })?.[0] ?? null;
227
+ }
228
+ _getTooltipElement() {
229
+ return this.shadowRoot?.querySelector(".tooltip") ?? null;
230
+ }
231
+ get _hasContent() {
232
+ return !!(this.text || d(this));
233
+ }
234
+ _handleTriggerEnter() {
235
+ if (this.timing === "never" || (this._syncAriaDescribedBy(), !this._hasContent) || T.matches) return;
236
+ if (this._hideTimeout && (clearTimeout(this._hideTimeout), this._hideTimeout = null), this._showTimeout && clearTimeout(this._showTimeout), this.timing === "instant") {
237
+ this._showTimeout = null, this._shownByHover = !this._visible || this._shownByHover, this._visible = !0;
238
+ return;
239
+ }
240
+ let e = parseInt(getComputedStyle(this).getPropertyValue("--_tooltip-show-delay"), 10), t = Number.isFinite(e) ? e : E;
241
+ this._showTimeout = setTimeout(() => {
242
+ this._showTimeout = null, this._shownByHover = !this._visible || this._shownByHover, this._visible = !0;
243
+ }, t);
244
+ }
245
+ _handleFocusIn() {
246
+ this.timing !== "never" && (this._syncAriaDescribedBy(), this._hasContent && (v() || (this._hideTimeout && (clearTimeout(this._hideTimeout), this._hideTimeout = null), this._showTimeout && (clearTimeout(this._showTimeout), this._showTimeout = null), this._shownByHover = !1, this._visible = !0)));
247
+ }
248
+ _handleTriggerLeave() {
249
+ if (this._showTimeout && (clearTimeout(this._showTimeout), this._showTimeout = null), this.open) return;
250
+ this._hideTimeout && clearTimeout(this._hideTimeout);
251
+ let e = parseInt(getComputedStyle(this).getPropertyValue("--_tooltip-hide-delay"), 10), t = Number.isFinite(e) ? e : D;
252
+ this._hideTimeout = setTimeout(() => {
253
+ this._visible = !1, this._hideTimeout = null;
254
+ }, t);
255
+ }
256
+ _handleFocusOut(e) {
257
+ let t = (this.shadowRoot?.querySelector("slot"))?.assignedElements({ flatten: !0 }) ?? [], n = e.relatedTarget;
258
+ n && t.some((e) => e.contains(n) || e.shadowRoot?.contains(n)) || this._handleTriggerLeave();
259
+ }
260
+ _handleTriggerActivate() {
261
+ this.open || (this._showTimeout && (clearTimeout(this._showTimeout), this._showTimeout = null), this._hideTimeout && (clearTimeout(this._hideTimeout), this._hideTimeout = null), this._visible = !1);
262
+ }
263
+ _handleTooltipEnter() {
264
+ this._hideTimeout && (clearTimeout(this._hideTimeout), this._hideTimeout = null);
265
+ }
266
+ _handleTooltipLeave() {
267
+ this._handleTriggerLeave();
268
+ }
269
+ async _updatePosition() {
270
+ let e = ++this._positionVersion, t = this._getTriggerElement(), n = this._getTooltipElement();
271
+ if (!t || !n) {
272
+ n?.setAttribute("positioned", "");
273
+ return;
274
+ }
275
+ if (document.fonts?.status !== "loaded" && (await document.fonts?.ready, e !== this._positionVersion)) return;
276
+ let r = getComputedStyle(this), i = parseInt(r.getPropertyValue("--_tooltip-offset"), 10), a = parseFloat(r.getPropertyValue("--context-tooltip-fingertip-size")), o = T.matches && Number.isFinite(a) ? ({ placement: e, rects: t }) => {
277
+ let n = /^(top|bottom)/.test(e) ? t.reference.height : t.reference.width;
278
+ return Math.max(i, (a - n) / 2);
279
+ } : i, { x: s, y: c } = await g(t, n, {
280
+ placement: this._effectivePlacement,
281
+ strategy: "fixed",
282
+ middleware: [
283
+ h(o),
284
+ _(),
285
+ m({ padding: parseInt(r.getPropertyValue("--_tooltip-shift-padding"), 10) })
286
+ ]
287
+ });
288
+ e === this._positionVersion && (n.style.left = `${s}px`, n.style.top = `${c}px`, n.setAttribute("positioned", ""));
289
+ }
290
+ disconnectedCallback() {
291
+ super.disconnectedCallback(), document.removeEventListener("keydown", this._handleKeyDown, !0), document.removeEventListener("scroll", this._handleScroll, { capture: !0 }), this.shadowRoot?.querySelector("slot")?.removeEventListener("slotchange", this._boundSlotChange), this._hideTimeout && (clearTimeout(this._hideTimeout), this._hideTimeout = null), this._showTimeout && (clearTimeout(this._showTimeout), this._showTimeout = null), this._currentTrigger?.removeAttribute("aria-describedby"), this._currentTrigger = null, this._descriptionEl?.remove(), this._descriptionEl = null;
292
+ }
293
+ render() {
294
+ return x(this);
295
+ }
296
+ }, C.styles = b, C);
297
+ s([n({
298
+ reflect: !0,
299
+ converter: l("")
300
+ })], O.prototype, "text", void 0), s([n({
301
+ reflect: !0,
302
+ converter: l("")
303
+ })], O.prototype, "shortcut", void 0), s([n({
304
+ reflect: !0,
305
+ attribute: "shortcut-mac",
306
+ converter: l("")
307
+ })], O.prototype, "shortcutMac", void 0), s([n({
308
+ reflect: !0,
309
+ attribute: "shortcut-windows",
310
+ converter: l("")
311
+ })], O.prototype, "shortcutWindows", void 0), s([n({
312
+ reflect: !0,
313
+ attribute: "shortcut-linux",
314
+ converter: l("")
315
+ })], O.prototype, "shortcutLinux", void 0), s([n({
316
+ type: Boolean,
317
+ reflect: !0
318
+ })], O.prototype, "open", void 0), s([n({
319
+ reflect: !0,
320
+ converter: l("bottom")
321
+ })], O.prototype, "placement", void 0), s([n({
322
+ reflect: !0,
323
+ converter: l("delay")
324
+ })], O.prototype, "timing", void 0), s([r()], O.prototype, "_visible", void 0), O = s([c("nldd-tooltip")], O);
325
+ export { S as t };