@nldd/design-system 0.21.0 → 0.22.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 (452) hide show
  1. package/custom-elements.json +864 -232
  2. package/dist/cdn/autoloader.js +136 -136
  3. package/dist/cdn/chunks/{activity-indicator-JglZJ8dh.js → activity-indicator-BTnpfsIt.js} +22 -22
  4. package/dist/cdn/chunks/{avatar-ASqePVhU.js → avatar--5c37XVW.js} +44 -43
  5. package/dist/cdn/chunks/{avatar-group-rknt4FBO.js → avatar-group-BNfmY5CU.js} +41 -41
  6. package/dist/cdn/chunks/{badge-Cc2Nufoc.js → badge-YAvIVoRy.js} +28 -28
  7. package/dist/cdn/chunks/{banner-BLVKM07M.js → banner-BpCK57yd.js} +41 -37
  8. package/dist/cdn/chunks/{bar-split-view-Clbg-p9H.js → bar-split-view-BgYo4YJw.js} +27 -27
  9. package/dist/cdn/chunks/blockquote-BOu-31f3.js +240 -0
  10. package/dist/cdn/chunks/{box-WkhyjQVy.js → box-YipFNjJh.js} +7 -7
  11. package/dist/cdn/chunks/{breadcrumbs-D9YxZzRj.js → breadcrumbs-DSVAVozW.js} +33 -33
  12. package/dist/cdn/chunks/{button-DO90Lo6q.js → button-XtEOeBEq.js} +101 -100
  13. package/dist/cdn/chunks/{button-bar-Bxgdbyh3.js → button-bar-D1i71rRQ.js} +13 -13
  14. package/dist/cdn/chunks/{button-group-BYGPPLmZ.js → button-group-un5QDbqK.js} +10 -10
  15. package/dist/cdn/chunks/{card-BP0jfOkS.js → card-D5yTAdts.js} +22 -22
  16. package/dist/cdn/chunks/{cell-BRD2ilQh.js → cell-BbtB9C2Z.js} +24 -23
  17. package/dist/cdn/chunks/{checkbox-field-DDZ-B6vH.js → checkbox-field-Cmc6Aagc.js} +33 -30
  18. package/dist/cdn/chunks/{checkbox-Cazx8CQn.js → checkbox-oYX8b8iy.js} +28 -27
  19. package/dist/cdn/chunks/{class-map-CXSdNjt8.js → class-map-DKd4N9Wz.js} +1 -1
  20. package/dist/cdn/chunks/{code-editor-D6Q55oaY.js → code-editor-BZwpTu4O.js} +55 -57
  21. package/dist/cdn/chunks/{code-viewer-DspLH2T1.js → code-viewer-C4XDF03i.js} +75 -75
  22. package/dist/cdn/chunks/{codemirror-input-Db65x22n.js → codemirror-input-Sen5OmAF.js} +5 -5
  23. package/dist/cdn/chunks/{collection-NVtkvDls.js → collection-BnZstW7U.js} +36 -36
  24. package/dist/cdn/chunks/{combo-box-DyBQSaQl.js → combo-box-BpaGeypm.js} +68 -68
  25. package/dist/cdn/chunks/{container-rrbwk0z4.js → container-DuV5d7Eb.js} +51 -51
  26. package/dist/cdn/chunks/{custom-element-q6NzoL5b.js → custom-element-DsfOrnOD.js} +1 -1
  27. package/dist/cdn/chunks/{date-field-Clti_wKN.js → date-field-FactdbhC.js} +125 -117
  28. package/dist/cdn/chunks/{date-picker-2TCQLd5D.js → date-picker-BtlBTKvh.js} +78 -78
  29. package/dist/cdn/chunks/{decorate-TduJMFD_.js → decorate-CJCfz_g6.js} +2 -2
  30. package/dist/cdn/chunks/{described-by-mixin-daRE7orX.js → described-by-mixin-CPultP0p.js} +2 -2
  31. package/dist/cdn/chunks/{description-cell-CQwOj_rN.js → description-cell-DFc0_dWI.js} +24 -23
  32. package/dist/cdn/chunks/{dev-checks-zW_W-hnh.js → dev-checks-DGwOQoR3.js} +76 -26
  33. package/dist/cdn/chunks/{dist-EgIBI-FG.js → dist-6xUfJUfa.js} +26 -26
  34. package/dist/cdn/chunks/{dist-A7_1pHX0.js → dist-AQ1Gehx3.js} +25 -25
  35. package/dist/cdn/chunks/{dist-DPUBF0MZ.js → dist-BUqkX3a-.js} +362 -371
  36. package/dist/cdn/chunks/{dist-Rm6FvrSR.js → dist-BWSiWu4t.js} +55 -55
  37. package/dist/cdn/chunks/{dist-CP3G1pSK.js → dist-Bmb_H8Sp.js} +1 -1
  38. package/dist/cdn/chunks/{dist-DrTzvgE7.js → dist-BuquxOFD.js} +178 -188
  39. package/dist/cdn/chunks/{dist-EM4MWLQq.js → dist-CM5DHMaz.js} +120 -125
  40. package/dist/cdn/chunks/{dist-C_dGY6zR.js → dist-ClsiJytN.js} +43 -43
  41. package/dist/cdn/chunks/{dist-D2qap2OY.js → dist-CtdONv3x.js} +13 -13
  42. package/dist/cdn/chunks/{dist-ChmCRv39.js → dist-CxdoWiwX.js} +50 -50
  43. package/dist/cdn/chunks/{dist-BEfLdOvy.js → dist-D-9cbJjq.js} +190 -196
  44. package/dist/cdn/chunks/{divider-CCNbnplA.js → divider-CZ8Hn1om.js} +6 -6
  45. package/dist/cdn/chunks/{document-tab-bar-CUc4WWY3.js → document-tab-bar-BBnyyiEA.js} +56 -56
  46. package/dist/cdn/chunks/{dropdown-DZTZtkm5.js → dropdown-Bbbgy8mT.js} +31 -31
  47. package/dist/cdn/chunks/{file-field-Bff6_1pp.js → file-field-CddG_e0F.js} +116 -116
  48. package/dist/cdn/chunks/{form-hXLgy_tY.js → form-DIIMIq0q.js} +23 -9
  49. package/dist/cdn/chunks/{form-actions-C_7hINq-.js → form-actions-BICy0Sgp.js} +7 -7
  50. package/dist/cdn/chunks/{form-associated-mixin--GIbl98p.js → form-associated-mixin-BtStDDYA.js} +14 -3
  51. package/dist/cdn/chunks/{form-field--4nWJ_DK.js → form-field-Bnei2EQO.js} +36 -36
  52. package/dist/cdn/chunks/{form-section-By-D4un0.js → form-section-Cv0tr0pm.js} +1 -1
  53. package/dist/cdn/chunks/{full-bleed-section-Dg4sIJG1.js → full-bleed-section-LOfo_1Aj.js} +10 -10
  54. package/dist/cdn/chunks/{hero-CQQMNCT_.js → hero-BABWpYs5.js} +48 -48
  55. package/dist/cdn/chunks/{icon-BORlalt0.js → icon-D5dJm51v.js} +41 -47
  56. package/dist/cdn/chunks/{icon-button-rKiIHs7A.js → icon-button-DtxIRaQy.js} +80 -79
  57. package/dist/cdn/chunks/{icon-cell-rk4NQid2.js → icon-cell-Be5awZV7.js} +26 -24
  58. package/dist/cdn/chunks/{identity-Cg1l0HhB.js → identity-B4KtbT8h.js} +26 -26
  59. package/dist/cdn/chunks/{if-defined-CaKKERku.js → if-defined-BirFs11D.js} +1 -1
  60. package/dist/cdn/chunks/{image-DZMW6JgL.js → image-BpVEir6U.js} +66 -61
  61. package/dist/cdn/chunks/{inline-dialog-WlqtPBPJ.js → inline-dialog-B627fZmT.js} +29 -28
  62. package/dist/cdn/chunks/{just-in-time-education-DRcb5g7x.js → just-in-time-education-Nw5ido3N.js} +44 -48
  63. package/dist/cdn/chunks/{kanban-Ca_mfqsA.js → kanban-9HGexCJx.js} +24 -24
  64. package/dist/cdn/chunks/{kanban-column-fgIMc7pw.js → kanban-column-v5rfv8fN.js} +13 -13
  65. package/dist/cdn/chunks/{keyboard-shortcut-EknnW7Ub.js → keyboard-shortcut-CVNilmgr.js} +20 -20
  66. package/dist/cdn/chunks/{languages-yKikVFv_.js → languages-Ce4h7R1-.js} +12 -12
  67. package/dist/cdn/chunks/{link-FBSAJ3UC.js → link-BQQwp17j.js} +36 -36
  68. package/dist/cdn/chunks/{link-group-90qVfKa0.js → link-group-CQhEcQIV.js} +11 -11
  69. package/dist/cdn/chunks/{list-CaWl3q0Z.js → list-DDxjOe38.js} +41 -39
  70. package/dist/cdn/chunks/{list-item-Cagnf6eG.js → list-item-Da6-fFDs.js} +131 -77
  71. package/dist/cdn/chunks/{list-item-segment-BRzBF1y_.js → list-item-segment-CnGHU6G-.js} +44 -44
  72. package/dist/cdn/chunks/{menu-bar-0NFXvq-v.js → menu-bar-MPNB2ovW.js} +21 -21
  73. package/dist/cdn/chunks/{menu-bar-item-DGSC_ETi.js → menu-bar-item-BuZ-VvnR.js} +34 -34
  74. package/dist/cdn/chunks/{menu-divider-CLLRgMll.js → menu-divider-CcOTQxx5.js} +6 -6
  75. package/dist/cdn/chunks/{menu-group-BL24ChpR.js → menu-group-DGgbYejF.js} +8 -8
  76. package/dist/cdn/chunks/{menu-item-CooKfrFa.js → menu-item-DgM4RmyD.js} +28 -28
  77. package/dist/cdn/chunks/{menu-BOu_pD1Q.js → menu-uOExHS1i.js} +58 -57
  78. package/dist/cdn/chunks/{menu.template-C6rbfI-u.js → menu.template-DkbfQRQ6.js} +3 -3
  79. package/dist/cdn/chunks/{modal-dialog-BrUMP4Jm.js → modal-dialog-BRYfJ7Vf.js} +26 -26
  80. package/dist/cdn/chunks/{multi-line-text-field-D7hXhyOn.js → multi-line-text-field-CWOPY6sF.js} +47 -47
  81. package/dist/cdn/chunks/{navigation-split-view-B2ZQhxEb.js → navigation-split-view-BRiplUXM.js} +37 -37
  82. package/dist/cdn/chunks/nl.generated-fkFCex7n.js +112 -0
  83. package/dist/cdn/chunks/{notification-DSGP14d1.js → notification-DhnzrUQp.js} +25 -25
  84. package/dist/cdn/chunks/{number-field-B8op14Y_.js → number-field-DgRrXCiv.js} +39 -39
  85. package/dist/cdn/chunks/{one-half-one-half-section-ZYmHYf4Q.js → one-half-one-half-section-D7tzDw-p.js} +11 -11
  86. package/dist/cdn/chunks/{one-third-two-thirds-section-Ds10K6AS.js → one-third-two-thirds-section-E8xOdcsf.js} +11 -11
  87. package/dist/cdn/chunks/{one-time-code-field-Cgy_tTS4.js → one-time-code-field-BoJdVvNN.js} +54 -54
  88. package/dist/cdn/chunks/{page-CBf_Decp.js → page-DDm193hL.js} +27 -27
  89. package/dist/cdn/chunks/{page-footer-CSv1dU7M.js → page-footer-32oZSwvG.js} +46 -61
  90. package/dist/cdn/chunks/{page-section-mixin-Dp6X8GKd.js → page-section-mixin-CmsW9L1S.js} +2 -2
  91. package/dist/cdn/chunks/{pagination-CMUcFB53.js → pagination-Co1BlFTP.js} +45 -45
  92. package/dist/cdn/chunks/{password-field-C76Vm3rm.js → password-field-BxKQRE4K.js} +54 -54
  93. package/dist/cdn/chunks/{popover-C-CVVtfl.js → popover-DpCE_XjR.js} +92 -58
  94. package/dist/cdn/chunks/{progress-bar-BLiHaRUS.js → progress-bar-5WAVf0HV.js} +53 -53
  95. package/dist/cdn/chunks/{progress-circle-CjkovRbL.js → progress-circle-D7Mn6WZv.js} +55 -55
  96. package/dist/cdn/chunks/{radio-button-field-C-Z6Lnd4.js → radio-button-field-Dxnahic-.js} +25 -25
  97. package/dist/cdn/chunks/{radio-button-group-ChTqBCnQ.js → radio-button-group-D_4lI2U-.js} +18 -18
  98. package/dist/cdn/chunks/{radio-button-GHyO-GQB.js → radio-button-pd8lwtEO.js} +29 -29
  99. package/dist/cdn/chunks/{render-marked-DX_5ISZE.js → render-marked-CAskRZMx.js} +1 -1
  100. package/dist/cdn/chunks/{drag-handle-cell-CbzDYebG.js → reorder-handle-cell-BL8ECfi5.js} +38 -37
  101. package/dist/cdn/chunks/reorder-handle-cell.i18n-DlH2aVwd.js +3 -0
  102. package/dist/cdn/chunks/reorder-handle-mixin-BDRPLv58.js +16 -0
  103. package/dist/cdn/chunks/{repeat-Ch_5OsXE.js → repeat-D5W3dDCY.js} +1 -1
  104. package/dist/cdn/chunks/{return-focus-Xmagtk6r.js → return-focus-BzZWhXhc.js} +21 -16
  105. package/dist/cdn/chunks/rich-text-diNxNddp.js +61 -0
  106. package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
  107. package/dist/cdn/chunks/{row-header-mixin-CgqvREoV.js → row-header-mixin-Dj6t4nYI.js} +2 -2
  108. package/dist/cdn/chunks/{search-field-BGNfERhn.js → search-field-CLuQnvBU.js} +67 -67
  109. package/dist/cdn/chunks/{segmented-control-BYAG4VRp.js → segmented-control-B0z5J7r9.js} +86 -82
  110. package/dist/cdn/chunks/{shadow-resets-6SToDsPu.js → shadow-resets-BeVmf7ky.js} +2 -2
  111. package/dist/cdn/chunks/{sheet-BdVCqm2H.js → sheet-CKfFzUCu.js} +22 -22
  112. package/dist/cdn/chunks/{shell-C9rds_D9.js → shell-CglPjEWB.js} +7 -7
  113. package/dist/cdn/chunks/{side-by-side-split-view-C5oX4c6Z.js → side-by-side-split-view-DU4ODEBX.js} +21 -21
  114. package/dist/cdn/chunks/{sidebar-section-DP4jnS7g.js → sidebar-section-DzJw-MHs.js} +29 -29
  115. package/dist/cdn/chunks/{simple-section-qrCqXeBa.js → simple-section-BfhBYqMa.js} +12 -12
  116. package/dist/cdn/chunks/{skip-link-DWh4W6-J.js → skip-link-DwVvD9XL.js} +19 -19
  117. package/dist/cdn/chunks/{slider--hODfOwh.js → slider-BBxKxr-H.js} +86 -82
  118. package/dist/cdn/chunks/{spacer-CFzq_JCh.js → spacer-CqK1xVh2.js} +11 -11
  119. package/dist/cdn/chunks/{spacer-cell-DuVOgIj8.js → spacer-cell-DS7Tphdm.js} +13 -12
  120. package/dist/cdn/chunks/{split-button-BeXnOUTt.js → split-button-Brh7EmIA.js} +32 -32
  121. package/dist/cdn/chunks/{split-view-divider-jzcPmnMh.js → split-view-divider-Bh3XLobi.js} +10 -10
  122. package/dist/cdn/chunks/{split-view-pane-BLsZz263.js → split-view-pane-BPKlAR4d.js} +13 -13
  123. package/dist/cdn/chunks/{stacked-split-view-CcOR8LrJ.js → stacked-split-view-SrIHWkKW.js} +20 -20
  124. package/dist/cdn/chunks/{static-html-Cf4ccUIg.js → static-html-OvWm15yg.js} +1 -1
  125. package/dist/cdn/chunks/{status-bar-CINbOihq.js → status-bar-IqyLnoMx.js} +24 -24
  126. package/dist/cdn/chunks/{step-bar-6FvZL1Ti.js → step-bar-DltkU-AG.js} +56 -56
  127. package/dist/cdn/chunks/{step-cell-CejRisgS.js → step-cell-BHW3t6nn.js} +40 -39
  128. package/dist/cdn/chunks/{stepper-CY2rJWOJ.js → stepper-DMlk7A-Y.js} +30 -30
  129. package/dist/cdn/chunks/{style-map-DsIw6lkq.js → style-map-CNYX1L3t.js} +1 -1
  130. package/dist/cdn/chunks/{swatch-picker-BY3DBIl6.js → swatch-picker-BAKkJFgt.js} +47 -47
  131. package/dist/cdn/chunks/{switch-DDSsZFwK.js → switch-B3d_1Leh.js} +27 -26
  132. package/dist/cdn/chunks/{switch-field-CMoM9I38.js → switch-field-BXJj1PHC.js} +47 -28
  133. package/dist/cdn/chunks/{tab-bar-DmslEoPD.js → tab-bar-C7T0XL0u.js} +70 -70
  134. package/dist/cdn/chunks/{table-DwXjCSD5.js → table-CVyPmXfX.js} +31 -31
  135. package/dist/cdn/chunks/{tag-DM3APy3B.js → tag-KdbJbRcK.js} +25 -25
  136. package/dist/cdn/chunks/{text-cell-BkEsGI3g.js → text-cell-CUH5Tf5F.js} +43 -42
  137. package/dist/cdn/chunks/{text-editor-BvTiMeNV.js → text-editor-Bsfygq28.js} +71 -71
  138. package/dist/cdn/chunks/{text-field-CUyh1-V8.js → text-field-BQxQe0ch.js} +56 -56
  139. package/dist/cdn/chunks/{text-B1CatNR1.js → text-lQLJJw1m.js} +45 -45
  140. package/dist/cdn/chunks/{time-field-Cj5WojfO.js → time-field-kdMQ7qaa.js} +123 -113
  141. package/dist/cdn/chunks/{time-picker-W0xYXLy8.js → time-picker-T1bZ4zxP.js} +86 -79
  142. package/dist/cdn/chunks/{title-cell-8d8psUBX.js → title-cell-CyJr9OiV.js} +61 -63
  143. package/dist/cdn/chunks/{title-BuT7tWqN.js → title-yXmufzsm.js} +110 -74
  144. package/dist/cdn/chunks/{toggle-button-DNXWXZpE.js → toggle-button-DiZaFEAk.js} +74 -74
  145. package/dist/cdn/chunks/{toggle-button-group-ByowJYgs.js → toggle-button-group-DRai7q0C.js} +20 -20
  146. package/dist/cdn/chunks/{token-CnkEB3hB.js → token-C6EudIjw.js} +30 -30
  147. package/dist/cdn/chunks/{token-field-hvDB3l6O.js → token-field-OCw3wLIW.js} +69 -69
  148. package/dist/cdn/chunks/{toolbar-iNd1VmuG.js → toolbar-K5UY_y15.js} +26 -26
  149. package/dist/cdn/chunks/{toolbar-item-DpPfPxCi.js → toolbar-item-CI3OVQuq.js} +13 -13
  150. package/dist/cdn/chunks/{toolbar-title-KBMpfL9d.js → toolbar-title-xvfrEhvQ.js} +31 -31
  151. package/dist/cdn/chunks/{toolbar.styles-BQkG4gVc.js → toolbar.styles-BBj5j7Iq.js} +3 -3
  152. package/dist/cdn/chunks/{tooltip-BsAHJjci.js → tooltip-B6XDYQNn.js} +42 -45
  153. package/dist/cdn/chunks/{top-navigation-bar-D1hjWIF3.js → top-navigation-bar-D7JkgCQi.js} +86 -86
  154. package/dist/cdn/chunks/{top-title-bar-iNFB2zQL.js → top-title-bar-BMSTl1Z7.js} +50 -44
  155. package/dist/cdn/chunks/{two-thirds-one-third-section-D-UANbHC.js → two-thirds-one-third-section-Cc1Mh9TT.js} +11 -11
  156. package/dist/cdn/chunks/{validation-list-C5BhHZIG.js → validation-list-xF6yTpz8.js} +19 -19
  157. package/dist/cdn/chunks/{visibility-mixin-COAZ9pON.js → visibility-mixin-LkgEnUqn.js} +2 -2
  158. package/dist/cdn/chunks/{visually-hidden-BPgATaH0.js → visually-hidden-CMo9yGtA.js} +6 -6
  159. package/dist/cdn/chunks/{window-t5iFkMLY.js → window-CclQ8SHn.js} +37 -37
  160. package/dist/cdn/chunks/with-translations-DdCPcavT.js +16 -0
  161. package/dist/components/actions/toolbar/toolbar.story-sync.js +1 -1
  162. package/dist/components/actions/toolbar/toolbar.story-sync.js.map +1 -1
  163. package/dist/components/content/blockquote/blockquote.d.ts +10 -1
  164. package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
  165. package/dist/components/content/blockquote/blockquote.js +24 -7
  166. package/dist/components/content/blockquote/blockquote.js.map +1 -1
  167. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  168. package/dist/components/content/blockquote/blockquote.styles.js +51 -10
  169. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  170. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  171. package/dist/components/content/code-viewer/code-viewer.js +4 -0
  172. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  173. package/dist/components/content/code-viewer/code-viewer.template.js +1 -1
  174. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  175. package/dist/components/content/identity/identity.d.ts +1 -0
  176. package/dist/components/content/identity/identity.d.ts.map +1 -1
  177. package/dist/components/content/identity/identity.js +1 -0
  178. package/dist/components/content/identity/identity.js.map +1 -1
  179. package/dist/components/content/image/image.d.ts +7 -2
  180. package/dist/components/content/image/image.d.ts.map +1 -1
  181. package/dist/components/content/image/image.js +29 -15
  182. package/dist/components/content/image/image.js.map +1 -1
  183. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  184. package/dist/components/content/image/image.styles.js +1 -2
  185. package/dist/components/content/image/image.styles.js.map +1 -1
  186. package/dist/components/content/rich-text/rich-text.d.ts +10 -0
  187. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  188. package/dist/components/content/rich-text/rich-text.js +41 -2
  189. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  190. package/dist/components/content/text/text.d.ts +1 -0
  191. package/dist/components/content/text/text.d.ts.map +1 -1
  192. package/dist/components/content/text/text.js +1 -0
  193. package/dist/components/content/text/text.js.map +1 -1
  194. package/dist/components/content/title/title.d.ts +26 -10
  195. package/dist/components/content/title/title.d.ts.map +1 -1
  196. package/dist/components/content/title/title.js +38 -11
  197. package/dist/components/content/title/title.js.map +1 -1
  198. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  199. package/dist/components/content/title/title.styles.js +74 -43
  200. package/dist/components/content/title/title.styles.js.map +1 -1
  201. package/dist/components/content/tooltip/tooltip.d.ts +1 -1
  202. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  203. package/dist/components/content/tooltip/tooltip.js +5 -3
  204. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  205. package/dist/components/forms/form/form.d.ts +11 -0
  206. package/dist/components/forms/form/form.d.ts.map +1 -1
  207. package/dist/components/forms/form/form.js +57 -4
  208. package/dist/components/forms/form/form.js.map +1 -1
  209. package/dist/components/forms/form-field/form-field.d.ts +1 -0
  210. package/dist/components/forms/form-field/form-field.d.ts.map +1 -1
  211. package/dist/components/forms/form-field/form-field.js +1 -0
  212. package/dist/components/forms/form-field/form-field.js.map +1 -1
  213. package/dist/components/index.d.ts +1 -1
  214. package/dist/components/index.d.ts.map +1 -1
  215. package/dist/components/index.js +1 -1
  216. package/dist/components/index.js.map +1 -1
  217. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +4 -1
  218. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  219. package/dist/components/inputs/checkbox-field/checkbox-field.js +6 -1
  220. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  221. package/dist/components/inputs/code-editor/code-editor.d.ts +9 -11
  222. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  223. package/dist/components/inputs/code-editor/code-editor.js +3 -3
  224. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  225. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  226. package/dist/components/inputs/code-editor/code-editor.styles.js +23 -25
  227. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  228. package/dist/components/inputs/date-field/date-field.d.ts +9 -4
  229. package/dist/components/inputs/date-field/date-field.d.ts.map +1 -1
  230. package/dist/components/inputs/date-field/date-field.js +20 -7
  231. package/dist/components/inputs/date-field/date-field.js.map +1 -1
  232. package/dist/components/inputs/date-field/date-field.template.d.ts.map +1 -1
  233. package/dist/components/inputs/date-field/date-field.template.js +1 -0
  234. package/dist/components/inputs/date-field/date-field.template.js.map +1 -1
  235. package/dist/components/inputs/dropdown/dropdown.d.ts +1 -0
  236. package/dist/components/inputs/dropdown/dropdown.d.ts.map +1 -1
  237. package/dist/components/inputs/dropdown/dropdown.js +1 -0
  238. package/dist/components/inputs/dropdown/dropdown.js.map +1 -1
  239. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -3
  240. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  241. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +4 -4
  242. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  243. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  244. package/dist/components/inputs/segmented-control/segmented-control.styles.js +4 -0
  245. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  246. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
  247. package/dist/components/inputs/slider/slider.styles.js +4 -0
  248. package/dist/components/inputs/slider/slider.styles.js.map +1 -1
  249. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +1 -1
  250. package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
  251. package/dist/components/inputs/switch-field/switch-field.d.ts +12 -1
  252. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  253. package/dist/components/inputs/switch-field/switch-field.js +24 -2
  254. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  255. package/dist/components/inputs/text-editor/text-editor.d.ts +2 -3
  256. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  257. package/dist/components/inputs/text-editor/text-editor.js +18 -17
  258. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  259. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +1 -1
  260. package/dist/components/inputs/text-editor/text-editor.styles.js +19 -19
  261. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  262. package/dist/components/inputs/time-field/time-field.d.ts +4 -0
  263. package/dist/components/inputs/time-field/time-field.d.ts.map +1 -1
  264. package/dist/components/inputs/time-field/time-field.js +17 -2
  265. package/dist/components/inputs/time-field/time-field.js.map +1 -1
  266. package/dist/components/inputs/time-field/time-field.template.d.ts.map +1 -1
  267. package/dist/components/inputs/time-field/time-field.template.js +1 -0
  268. package/dist/components/inputs/time-field/time-field.template.js.map +1 -1
  269. package/dist/components/inputs/time-picker/time-picker.d.ts +28 -19
  270. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  271. package/dist/components/inputs/time-picker/time-picker.js +78 -51
  272. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  273. package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
  274. package/dist/components/inputs/time-picker/time-picker.styles.js +2 -1
  275. package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
  276. package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
  277. package/dist/components/inputs/time-picker/time-picker.template.js +1 -0
  278. package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
  279. package/dist/components/layout/kanban/kanban-column.d.ts +1 -1
  280. package/dist/components/layout/kanban/kanban-column.js +1 -1
  281. package/dist/components/layout/kanban/kanban.d.ts +7 -7
  282. package/dist/components/layout/kanban/kanban.js +9 -9
  283. package/dist/components/layout/kanban/kanban.js.map +1 -1
  284. package/dist/components/layout/page-footer/page-footer.d.ts +4 -0
  285. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  286. package/dist/components/layout/page-footer/page-footer.js +7 -12
  287. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  288. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  289. package/dist/components/layout/page-footer/page-footer.styles.js +4 -19
  290. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  291. package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
  292. package/dist/components/layout/page-footer/page-footer.template.js +1 -4
  293. package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
  294. package/dist/components/layout/page-sections/hero/hero.d.ts +1 -0
  295. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  296. package/dist/components/layout/page-sections/hero/hero.js +1 -0
  297. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  298. package/dist/components/layout/popover/popover.d.ts +24 -2
  299. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  300. package/dist/components/layout/popover/popover.js +110 -13
  301. package/dist/components/layout/popover/popover.js.map +1 -1
  302. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  303. package/dist/components/layout/popover/popover.styles.js +6 -0
  304. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  305. package/dist/components/lists-and-tables/cells/cell/cell.d.ts +2 -0
  306. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  307. package/dist/components/lists-and-tables/cells/cell/cell.js +2 -1
  308. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  309. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +2 -0
  310. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  311. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +2 -1
  312. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  313. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +2 -0
  314. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  315. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +2 -1
  316. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  317. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +46 -0
  318. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -0
  319. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts +5 -0
  320. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts.map +1 -0
  321. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js +4 -0
  322. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js.map +1 -0
  323. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.js → reorder-handle-cell/reorder-handle-cell.js} +24 -24
  324. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -0
  325. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts +2 -0
  326. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts.map +1 -0
  327. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.styles.js → reorder-handle-cell/reorder-handle-cell.styles.js} +14 -14
  328. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js.map +1 -0
  329. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.template.d.ts → reorder-handle-cell/reorder-handle-cell.template.d.ts} +1 -1
  330. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.d.ts.map +1 -0
  331. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.template.js → reorder-handle-cell/reorder-handle-cell.template.js} +4 -4
  332. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.js.map +1 -0
  333. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts +2 -0
  334. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
  335. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
  336. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
  337. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +2 -0
  338. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  339. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +2 -1
  340. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  341. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +2 -0
  342. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  343. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +2 -1
  344. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  345. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +7 -5
  346. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  347. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +4 -3
  348. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  349. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +5 -5
  350. package/dist/components/lists-and-tables/list/list.d.ts +3 -2
  351. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  352. package/dist/components/lists-and-tables/list/list.js +15 -21
  353. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  354. package/dist/components/lists-and-tables/list-item/list-item.d.ts +30 -14
  355. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  356. package/dist/components/lists-and-tables/list-item/list-item.js +107 -154
  357. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  358. package/dist/components/lists-and-tables/list-item/list-item.styles.js +3 -3
  359. package/dist/components/lists-and-tables/table/table.d.ts +4 -4
  360. package/dist/components/lists-and-tables/table/table.js +5 -5
  361. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  362. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +6 -6
  363. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  364. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +16 -24
  365. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  366. package/dist/components/navigation/tab-bar/tab-bar.d.ts +2 -2
  367. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  368. package/dist/components/navigation/tab-bar/tab-bar.js +4 -4
  369. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  370. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +1 -1
  371. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
  372. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
  373. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  374. package/dist/components/navigation/top-title-bar/top-title-bar.js +12 -0
  375. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  376. package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
  377. package/dist/components/status-and-feedback/banner/banner.js +1 -1
  378. package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
  379. package/dist/components/status-and-feedback/banner/banner.styles.js +6 -2
  380. package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
  381. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +1 -1
  382. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +1 -1
  383. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +2 -2
  384. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
  385. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +5 -7
  386. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  387. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -1
  388. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
  389. package/dist/css/global-open-font.css +1 -0
  390. package/dist/css/global.css +1 -0
  391. package/dist/css/title.css +88 -0
  392. package/dist/css/variables.css +2 -3
  393. package/dist/nldd.min.js +942 -866
  394. package/dist/translations/en-US.js +1 -1
  395. package/dist/translations/en-US.js.map +1 -1
  396. package/dist/translations/fy.js +1 -1
  397. package/dist/translations/fy.js.map +1 -1
  398. package/dist/translations/nl.generated.d.ts +1 -1
  399. package/dist/translations/nl.generated.js +2 -2
  400. package/dist/translations/nl.generated.js.map +1 -1
  401. package/dist/translations/pap-AW.js +1 -1
  402. package/dist/translations/pap-AW.js.map +1 -1
  403. package/dist/translations/pap-CW.js +1 -1
  404. package/dist/translations/pap-CW.js.map +1 -1
  405. package/dist/types/react.d.ts +45 -37
  406. package/dist/types/vue.d.ts +74 -59
  407. package/dist/utilities/autoloader.generated.js +1 -1
  408. package/dist/utilities/autoloader.generated.js.map +1 -1
  409. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  410. package/dist/utilities/dev-rules.generated.js +75 -25
  411. package/dist/utilities/dev-rules.generated.js.map +1 -1
  412. package/dist/utilities/form-associated-mixin.d.ts +10 -0
  413. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  414. package/dist/utilities/form-associated-mixin.js +17 -0
  415. package/dist/utilities/form-associated-mixin.js.map +1 -1
  416. package/dist/utilities/reorder-handle-mixin.d.ts +21 -0
  417. package/dist/utilities/reorder-handle-mixin.d.ts.map +1 -0
  418. package/dist/utilities/reorder-handle-mixin.js +34 -0
  419. package/dist/utilities/reorder-handle-mixin.js.map +1 -0
  420. package/dist/utilities/return-focus.d.ts +14 -0
  421. package/dist/utilities/return-focus.d.ts.map +1 -1
  422. package/dist/utilities/return-focus.js +26 -8
  423. package/dist/utilities/return-focus.js.map +1 -1
  424. package/lint/data.generated.json +1 -1
  425. package/lint/engine.js +53 -1
  426. package/lint/fix.js +11 -0
  427. package/lint/format.js +6 -5
  428. package/lint/frontends.js +224 -16
  429. package/lint/linter.js +10 -4
  430. package/lint/main.js +36 -9
  431. package/lint/project.js +73 -4
  432. package/lint/rule-data.js +17 -2
  433. package/lint/rule.schema.json +1 -0
  434. package/lint/tree.js +3 -0
  435. package/package.json +6 -6
  436. package/dist/cdn/chunks/blockquote-BoOqbGdm.js +0 -189
  437. package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +0 -3
  438. package/dist/cdn/chunks/nl.generated-D6T41jG3.js +0 -112
  439. package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +0 -47
  440. package/dist/cdn/chunks/with-translations-XX14GKFh.js +0 -16
  441. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts +0 -44
  442. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +0 -1
  443. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts +0 -5
  444. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts.map +0 -1
  445. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js +0 -4
  446. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +0 -1
  447. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +0 -1
  448. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts +0 -2
  449. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +0 -1
  450. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +0 -1
  451. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +0 -1
  452. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +0 -1
@@ -42,6 +42,7 @@
42
42
  * @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
43
43
  *
44
44
  * @slot - The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone.
45
+ * @accepts strong, b, em, i, a, code, mark, q, span
45
46
  */
46
47
  import { LitElement, type PropertyValues } from 'lit';
47
48
  type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'display-6' | 'display-5' | 'display-4' | 'display-3' | 'display-2' | 'display-1';
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AAEH,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AE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQtD,KAAK,IAAI,GAAG,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;AAClI,KAAK,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC5C,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AACtD,KAAK,KAAK,GAAG,SAAS,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;AACjG,KAAK,mBAAmB,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEvD,qBACa,QAAS,SAAQ,UAAU;IACvC,OAAgB,MAAM,0BAAc;IAGpC,IAAI,EAAE,IAAI,CAAQ;IAGlB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,MAAM,EAAE,MAAM,CAAa;IAO3B,UAAU,EAAE,UAAU,CAAU;IAGhC,KAAK,EAAE,KAAK,CAAa;IAOzB,mBAAmB,EAAE,mBAAmB,CAAU;IAElD,+EAA+E;IAC/E,OAAO,CAAC,YAAY,CAA2C;IAEtD,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAMzC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAQtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,WAAW,EAAE,QAAQ,CAAC;KACtB;CACD"}
@@ -42,6 +42,7 @@
42
42
  * @attr {string} horizontal-alignment - Alignment of the text within the block: 'left' | 'center' | 'right' (default: 'left'). Aligns the words; `horizontal-alignment` on nldd-container moves the box.
43
43
  *
44
44
  * @slot - The text. Inline elements look as they do in nldd-rich-text: `<strong>` and `<b>` take the bold weight from the scale, `<em>` and `<i>` are italic, `<a>` is an underlined link, `<code>` sits on a tinted surface in the monospace font, `<mark>` is highlighted, `<q>` is quoted in italics, and an element with `data-mention` is a mention (`<a href="…" data-mention>` as the tinted token, `<span data-mention>` without the tint; write the name without the `@`). This holds for elements directly in the text; one inside another (a link inside `<strong>`) keeps only the outer one's styling. Components such as `nldd-tag` are left alone.
45
+ * @accepts strong, b, em, i, a, code, mark, q, span
45
46
  */
46
47
  var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
47
48
  var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
@@ -1 +1 @@
1
- {"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../src/components/content/text/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;;;;;;;AAEH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,mBAAmB,EAAmB,MAAM,wCAAwC,CAAC;AAC9I,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AASvC,IAAM,QAAQ,GAAd,MAAM,QAAS,SAAQ,UAAU;IAAjC;;QAIN,SAAI,GAAS,IAAI,CAAC;QAGlB,iBAAY,GAAG,EAAE,CAAC;QAGlB,iBAAY,GAAG,EAAE,CAAC;QAGlB,iBAAY,GAAG,EAAE,CAAC;QAGlB,WAAM,GAAW,SAAS,CAAC;QAO3B,eAAU,GAAe,MAAM,CAAC;QAGhC,UAAK,GAAU,SAAS,CAAC;QAOz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AAE,sBAAsB;QACjC,SAAS,EAAE,iBAAiB,CAAsB,MAAM,CAAC;KACzD,CAAC;qDACgD;AAjCtC,QAAQ;IADpB,aAAa,CAAC,WAAW,CAAC;GACd,QAAQ,CAuDpB"}
@@ -5,10 +5,23 @@
5
5
  * and a slot at the end of the title line on the right.
6
6
  *
7
7
  * The title comes from `text`, with `heading-level` for its place in the
8
- * heading structure. `size` is how it looks, `heading-level` what it is, and
9
- * the two are set apart. `overline` and `supporting-text` go above and below
10
- * it. Each of the three has a slot in the same place for content that is more
11
- * than text, and a filled slot takes the place of the attribute.
8
+ * heading structure. The level also sets the size: an h2 looks like
9
+ * `display-2`. Set `size` where the look should differ from the level, such as
10
+ * a section heading that is smaller than its place. A heading of your own in
11
+ * the default slot sets the level the same way, so `<h2>` there looks like
12
+ * `display-2` without a `heading-level`. A title without a level is no heading
13
+ * and shows as body text, whatever its `size`: give it a level, or for large
14
+ * letters that are not a heading use nldd-text with a display size.
15
+ * `overline` and `supporting-text` go above and below it. Each of the three
16
+ * has a slot in the same place for content that is more than text, and a
17
+ * filled slot takes the place of the attribute. Both grow and shrink with the
18
+ * size of the title, and keep to the width of a line of reading (40em), with
19
+ * balanced lines. The supporting text is a line or two, not a paragraph.
20
+ *
21
+ * Inline elements in a slotted heading (a link, strong, em, code, mark, q) look
22
+ * as they do in nldd-text. A shadow root cannot reach inside a slotted element,
23
+ * so that styling comes from a global stylesheet: `dist/css/title.css`, or
24
+ * `global.css`, which includes it.
12
25
  *
13
26
  * A word too long for the line is hyphenated by syllable, with the `lang` of
14
27
  * the page: only a word of at least 12 letters, with at least 5 on each side, so
@@ -20,8 +33,8 @@
20
33
  *
21
34
  * @element nldd-title
22
35
  *
23
- * @attr {number} size - Visual size of the title: 1–6 (default: 3)
24
- * @attr {string} sm-custom-size - A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than size 1. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than size 1 at the same breakpoint: a smaller value shows as size 1, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of size 1. An invalid value falls back to `size`
36
+ * @attr {string} size - Visual size of the title, when it should differ from its level: 'display-1' to 'display-6', from large to small (default: the display size of the level). Has no effect without a level
37
+ * @attr {string} sm-custom-size - A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than `display-1`. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than `display-1` at the same breakpoint: a smaller value shows as `display-1`, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of `display-1`. An invalid value falls back to `size`
25
38
  * @attr {string} md-custom-size - The same, at md
26
39
  * @attr {string} lg-custom-size - The same, at lg
27
40
  * @attr {string} color - 'content' (the default) takes the system's own content
@@ -31,20 +44,21 @@
31
44
  * @attr {string} text - Title text. Content in the default slot takes its place.
32
45
  * @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
33
46
  * @attr {string} overline - Text above the title. Content in the overline slot takes its place.
34
- * @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6. Absent renders a p, which is no heading: for large letters that are not a heading, use nldd-text with a display size.
47
+ * @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6, and sets the default size. Absent renders a p in body text, unless the default slot brings its own heading.
35
48
  *
36
49
  * @slot overline - Overline that is more than text. Takes the place of the overline attribute.
37
50
  * @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
51
+ * @accepts h1, h2, h3, h4, h5, h6, a, strong, b, em, i, code, mark, q
38
52
  * @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
39
- * @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
53
+ * @slot end - One thing at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there. More than one action goes in an nldd-toolbar below the title, not in this slot: the line has no room for a row of buttons on a narrow screen, and a toolbar moves what does not fit to its overflow menu.
40
54
  */
41
55
  import { LitElement, type PropertyValues } from 'lit';
42
- type Size = 1 | 2 | 3 | 4 | 5 | 6;
56
+ export type TitleSize = 'display-1' | 'display-2' | 'display-3' | 'display-4' | 'display-5' | 'display-6';
43
57
  type TitleColor = 'content' | 'inherit';
44
58
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
45
59
  export declare class NLDDTitle extends LitElement {
46
60
  static styles: import("lit").CSSResult;
47
- size: Size;
61
+ size?: TitleSize;
48
62
  smCustomSize: string;
49
63
  mdCustomSize: string;
50
64
  lgCustomSize: string;
@@ -59,6 +73,8 @@ export declare class NLDDTitle extends LitElement {
59
73
  _hasDefaultSlotted: boolean;
60
74
  /** @internal */
61
75
  _hasSupportingTextSlotted: boolean;
76
+ /** @internal The level of a heading in the default slot. */
77
+ _slottedLevel: HeadingLevel | null;
62
78
  /** @internal */
63
79
  _onSlotChange: (e: Event) => void;
64
80
  /** The valid custom size per breakpoint, worked out before the first paint. */
@@ -1 +1 @@
1
- {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,UAAU,EAAE,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAQtD,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAClC,KAAK,UAAU,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AG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAGrC,IAAI,CAAC,EAAE,SAAS,CAAC;IAGjB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,KAAK,EAAE,UAAU,CAAa;IAG9B,IAAI,SAAM;IAGV,cAAc,SAAM;IAGpB,QAAQ,SAAM;IAGd,YAAY,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEzC,gBAAgB;IACP,mBAAmB,UAAS;IACrC,gBAAgB;IACP,kBAAkB,UAAS;IACpC,gBAAgB;IACP,yBAAyB,UAAS;IAC3C,4DAA4D;IACnD,aAAa,EAAE,YAAY,GAAG,IAAI,CAAQ;IAEnD,gBAAgB;IAChB,aAAa,GAAI,GAAG,KAAK,KAAG,IAAI,CAa9B;IAEF,+EAA+E;IAC/E,OAAO,CAAC,YAAY,CAA2C;IAEtD,UAAU,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAUzC,OAAO,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI;IAQtC,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,YAAY,EAAE,SAAS,CAAC;KACxB;CACD"}
@@ -11,10 +11,23 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
11
11
  * and a slot at the end of the title line on the right.
12
12
  *
13
13
  * The title comes from `text`, with `heading-level` for its place in the
14
- * heading structure. `size` is how it looks, `heading-level` what it is, and
15
- * the two are set apart. `overline` and `supporting-text` go above and below
16
- * it. Each of the three has a slot in the same place for content that is more
17
- * than text, and a filled slot takes the place of the attribute.
14
+ * heading structure. The level also sets the size: an h2 looks like
15
+ * `display-2`. Set `size` where the look should differ from the level, such as
16
+ * a section heading that is smaller than its place. A heading of your own in
17
+ * the default slot sets the level the same way, so `<h2>` there looks like
18
+ * `display-2` without a `heading-level`. A title without a level is no heading
19
+ * and shows as body text, whatever its `size`: give it a level, or for large
20
+ * letters that are not a heading use nldd-text with a display size.
21
+ * `overline` and `supporting-text` go above and below it. Each of the three
22
+ * has a slot in the same place for content that is more than text, and a
23
+ * filled slot takes the place of the attribute. Both grow and shrink with the
24
+ * size of the title, and keep to the width of a line of reading (40em), with
25
+ * balanced lines. The supporting text is a line or two, not a paragraph.
26
+ *
27
+ * Inline elements in a slotted heading (a link, strong, em, code, mark, q) look
28
+ * as they do in nldd-text. A shadow root cannot reach inside a slotted element,
29
+ * so that styling comes from a global stylesheet: `dist/css/title.css`, or
30
+ * `global.css`, which includes it.
18
31
  *
19
32
  * A word too long for the line is hyphenated by syllable, with the `lang` of
20
33
  * the page: only a word of at least 12 letters, with at least 5 on each side, so
@@ -26,8 +39,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
26
39
  *
27
40
  * @element nldd-title
28
41
  *
29
- * @attr {number} size - Visual size of the title: 1–6 (default: 3)
30
- * @attr {string} sm-custom-size - A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than size 1. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than size 1 at the same breakpoint: a smaller value shows as size 1, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of size 1. An invalid value falls back to `size`
42
+ * @attr {string} size - Visual size of the title, when it should differ from its level: 'display-1' to 'display-6', from large to small (default: the display size of the level). Has no effect without a level
43
+ * @attr {string} sm-custom-size - A size of your own at sm, any CSS length (e.g. '56px', '3.5rem', 'clamp(3rem, 8vw, 7rem)'), for a statement larger than `display-1`. A var() works when the variable holds a length; one that is not defined leaves the title without its size, the floor included. For headings use `size`; if a design does not fit the scale, raise it as an issue. Set per breakpoint on purpose: a breakpoint without one keeps the size from `size`, so a title made large for a wide screen never breaks a narrow one. Never smaller than `display-1` at the same breakpoint: a smaller value shows as `display-1`, and a fixed length that is smaller says so in development (a relative value, such as vw, em or a percentage, is not checked there; the floor still holds). Takes the weight, typeface and line height of `display-1`. An invalid value falls back to `size`
31
44
  * @attr {string} md-custom-size - The same, at md
32
45
  * @attr {string} lg-custom-size - The same, at lg
33
46
  * @attr {string} color - 'content' (the default) takes the system's own content
@@ -37,12 +50,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
37
50
  * @attr {string} text - Title text. Content in the default slot takes its place.
38
51
  * @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
39
52
  * @attr {string} overline - Text above the title. Content in the overline slot takes its place.
40
- * @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6. Absent renders a p, which is no heading: for large letters that are not a heading, use nldd-text with a display size.
53
+ * @attr {1|2|3|4|5|6} heading-level - Renders text as h1–h6, and sets the default size. Absent renders a p in body text, unless the default slot brings its own heading.
41
54
  *
42
55
  * @slot overline - Overline that is more than text. Takes the place of the overline attribute.
43
56
  * @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
57
+ * @accepts h1, h2, h3, h4, h5, h6, a, strong, b, em, i, code, mark, q
44
58
  * @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
45
- * @slot end - Whatever belongs at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there.
59
+ * @slot end - One thing at the end of the title line: a button, a menu, a status badge, a version. Named for the position, not for a kind of content, because anything can sit there. More than one action goes in an nldd-toolbar below the title, not in this slot: the line has no room for a row of buttons on a narrow screen, and a toolbar moves what does not fit to its overflow menu.
46
60
  */
47
61
  import { LitElement } from 'lit';
48
62
  import { property, state } from 'lit/decorators.js';
@@ -54,7 +68,6 @@ import { applyCustomFontSizes, checkCustomFontSizeFloor, DISPLAY_1_FONT_SIZE } f
54
68
  let NLDDTitle = class NLDDTitle extends LitElement {
55
69
  constructor() {
56
70
  super(...arguments);
57
- this.size = 3;
58
71
  this.smCustomSize = '';
59
72
  this.mdCustomSize = '';
60
73
  this.lgCustomSize = '';
@@ -69,6 +82,8 @@ let NLDDTitle = class NLDDTitle extends LitElement {
69
82
  this._hasDefaultSlotted = false;
70
83
  /** @internal */
71
84
  this._hasSupportingTextSlotted = false;
85
+ /** @internal The level of a heading in the default slot. */
86
+ this._slottedLevel = null;
72
87
  /** @internal */
73
88
  this._onSlotChange = (e) => {
74
89
  const slot = e.target;
@@ -79,14 +94,23 @@ let NLDDTitle = class NLDDTitle extends LitElement {
79
94
  this._hasOverlineSlotted = hasContent;
80
95
  else if (slot.name === 'supporting-text')
81
96
  this._hasSupportingTextSlotted = hasContent;
82
- else
97
+ else {
83
98
  this._hasDefaultSlotted = hasContent;
99
+ const heading = slot.assignedElements().find((el) => /^H[1-6]$/.test(el.tagName));
100
+ this._slottedLevel = heading ? Number(heading.tagName[1]) : null;
101
+ }
84
102
  };
85
103
  /** The valid custom size per breakpoint, worked out before the first paint. */
86
104
  this._customSizes = {};
87
105
  }
88
106
  willUpdate(changed) {
89
107
  super.willUpdate(changed);
108
+ // The level the styles size by: the attribute, or the slotted heading.
109
+ const level = this.headingLevel ?? this._slottedLevel;
110
+ if (level && level >= 1 && level <= 6)
111
+ this.setAttribute('data-level', String(level));
112
+ else
113
+ this.removeAttribute('data-level');
90
114
  if (!changed.has('smCustomSize') && !changed.has('mdCustomSize') && !changed.has('lgCustomSize'))
91
115
  return;
92
116
  this._customSizes = applyCustomFontSizes(this, 'title', { sm: this.smCustomSize, md: this.mdCustomSize, lg: this.lgCustomSize });
@@ -105,7 +129,7 @@ let NLDDTitle = class NLDDTitle extends LitElement {
105
129
  };
106
130
  NLDDTitle.styles = titleStyles;
107
131
  __decorate([
108
- property({ reflect: true, converter: reflectNonDefault(3) })
132
+ property({ reflect: true })
109
133
  ], NLDDTitle.prototype, "size", void 0);
110
134
  __decorate([
111
135
  property({ reflect: true, attribute: 'sm-custom-size', converter: reflectNonDefault('') })
@@ -140,6 +164,9 @@ __decorate([
140
164
  __decorate([
141
165
  state()
142
166
  ], NLDDTitle.prototype, "_hasSupportingTextSlotted", void 0);
167
+ __decorate([
168
+ state()
169
+ ], NLDDTitle.prototype, "_slottedLevel", void 0);
143
170
  NLDDTitle = __decorate([
144
171
  customElement('nldd-title')
145
172
  ], NLDDTitle);
@@ -1 +1 @@
1
- {"version":3,"file":"title.js","sourceRoot":"","sources":["../../../../src/components/content/title/title.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,OAAO,EAAE,UAAU,EAAuB,MAAM,KAAK,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,mBAAmB,EAAmB,MAAM,wCAAwC,CAAC;AAOvI,IAAM,SAAS,GAAf,MAAM,SAAU,SAAQ,UAAU;IAAlC;;QAIN,SAAI,GAAS,CAAC,CAAC;QAGf,iBAAY,GAAG,EAAE,CAAC;QAGlB,iBAAY,GAAG,EAAE,CAAC;QAGlB,iBAAY,GAAG,EAAE,CAAC;QAGlB,UAAK,GAAe,SAAS,CAAC;QAG9B,SAAI,GAAG,EAAE,CAAC;QAGV,mBAAc,GAAG,EAAE,CAAC;QAGpB,aAAQ,GAAG,EAAE,CAAC;QAGd,iBAAY,GAAwB,IAAI,CAAC;QAEzC,gBAAgB;QACP,wBAAmB,GAAG,KAAK,CAAC;QACrC,gBAAgB;Q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AAK,EAAE;sDAA6B;AAE5B;IAAR,KAAK,EAAE;qDAA4B;AAE3B;IAAR,KAAK,EAAE;4DAAmC;AAElC;IAAR,KAAK,EAAE;gDAA2C;AArCvC,SAAS;IADrB,aAAa,CAAC,YAAY,CAAC;GACf,SAAS,CA+ErB"}
@@ -1 +1 @@
1
- {"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBAgVvB,CAAC"}
1
+ {"version":3,"file":"title.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/title/title.styles.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,WAAW,yBA+WvB,CAAC"}
@@ -24,87 +24,112 @@ export const titleStyles = css `
24
24
  --_title-md-custom-font: var(--primitives-font-weight-display-bold) max(var(--_title-md-custom-size), var(--primitives-font-size-800)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
25
25
  --_title-lg-custom-font: var(--primitives-font-weight-display-bold) max(var(--_title-lg-custom-size), var(--primitives-font-size-1000)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
26
26
 
27
+ --_title-font: var(--primitives-font-body-md-regular-snug);
28
+ --_title-overline-font: var(--primitives-font-body-sm-regular-tight);
29
+ --_title-supporting-text-font: var(--primitives-font-body-md-regular-tight);
30
+ --_title-secondary-text-max-width: var(--semantics-text-max-width);
31
+
32
+ ${inheritedTextReset}
33
+ display: flex;
34
+ }
35
+
36
+ /* # Size */
37
+
38
+ :host([data-level][size="display-1"]),
39
+ :host(:not([size^="display-"])[data-level="1"]) {
40
+ --_title-overline-font: var(--primitives-font-body-md-regular-tight);
41
+ --_title-supporting-text-font: var(--primitives-font-body-md-regular-tight);
42
+
27
43
  @media (max-width: ${smMax}) {
28
- --_title-font: var(--primitives-font-display-3-sm);
44
+ --_title-font: var(--primitives-font-display-1-sm);
29
45
  }
30
46
 
31
47
  @media (min-width: ${mdMin}) and (max-width: ${mdMax}) {
32
- --_title-font: var(--primitives-font-display-3-md);
48
+ --_title-font: var(--primitives-font-display-1-md);
33
49
  }
34
50
 
35
51
  @media (min-width: ${lgMin}) {
36
- --_title-font: var(--primitives-font-display-3-lg);
52
+ --_title-font: var(--primitives-font-display-1-lg);
37
53
  }
38
54
 
39
55
  @container layout-container (max-width: ${smMax}) {
40
- --_title-font: var(--primitives-font-display-3-sm);
56
+ --_title-font: var(--primitives-font-display-1-sm);
41
57
  }
42
58
 
43
59
  @container layout-container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
44
- --_title-font: var(--primitives-font-display-3-md);
60
+ --_title-font: var(--primitives-font-display-1-md);
45
61
  }
46
62
 
47
63
  @container layout-container (min-width: ${lgMin}) {
48
- --_title-font: var(--primitives-font-display-3-lg);
64
+ --_title-font: var(--primitives-font-display-1-lg);
49
65
  }
50
-
51
- ${inheritedTextReset}
52
- display: flex;
53
66
  }
54
67
 
55
- :host([size="1"]) {
68
+ :host([data-level][size="display-2"]),
69
+ :host(:not([size^="display-"])[data-level="2"]) {
70
+ --_title-overline-font: var(--primitives-font-body-md-regular-tight);
71
+ --_title-supporting-text-font: var(--primitives-font-body-md-regular-tight);
72
+
56
73
  @media (max-width: ${smMax}) {
57
- --_title-font: var(--primitives-font-display-1-sm);
74
+ --_title-font: var(--primitives-font-display-2-sm);
58
75
  }
59
76
 
60
77
  @media (min-width: ${mdMin}) and (max-width: ${mdMax}) {
61
- --_title-font: var(--primitives-font-display-1-md);
78
+ --_title-font: var(--primitives-font-display-2-md);
62
79
  }
63
80
 
64
81
  @media (min-width: ${lgMin}) {
65
- --_title-font: var(--primitives-font-display-1-lg);
82
+ --_title-font: var(--primitives-font-display-2-lg);
66
83
  }
67
84
 
68
85
  @container layout-container (max-width: ${smMax}) {
69
- --_title-font: var(--primitives-font-display-1-sm);
86
+ --_title-font: var(--primitives-font-display-2-sm);
70
87
  }
71
88
 
72
89
  @container layout-container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
73
- --_title-font: var(--primitives-font-display-1-md);
90
+ --_title-font: var(--primitives-font-display-2-md);
74
91
  }
75
92
 
76
93
  @container layout-container (min-width: ${lgMin}) {
77
- --_title-font: var(--primitives-font-display-1-lg);
94
+ --_title-font: var(--primitives-font-display-2-lg);
78
95
  }
79
96
  }
80
97
 
81
- :host([size="2"]) {
98
+ :host([data-level][size="display-3"]),
99
+ :host(:not([size^="display-"])[data-level="3"]) {
100
+ --_title-overline-font: var(--primitives-font-body-md-regular-tight);
101
+ --_title-supporting-text-font: var(--primitives-font-body-md-regular-tight);
102
+
82
103
  @media (max-width: ${smMax}) {
83
- --_title-font: var(--primitives-font-display-2-sm);
104
+ --_title-font: var(--primitives-font-display-3-sm);
84
105
  }
85
106
 
86
107
  @media (min-width: ${mdMin}) and (max-width: ${mdMax}) {
87
- --_title-font: var(--primitives-font-display-2-md);
108
+ --_title-font: var(--primitives-font-display-3-md);
88
109
  }
89
110
 
90
111
  @media (min-width: ${lgMin}) {
91
- --_title-font: var(--primitives-font-display-2-lg);
112
+ --_title-font: var(--primitives-font-display-3-lg);
92
113
  }
93
114
 
94
115
  @container layout-container (max-width: ${smMax}) {
95
- --_title-font: var(--primitives-font-display-2-sm);
116
+ --_title-font: var(--primitives-font-display-3-sm);
96
117
  }
97
118
 
98
119
  @container layout-container (min-width: ${mdMin}) and (max-width: ${mdMax}) {
99
- --_title-font: var(--primitives-font-display-2-md);
120
+ --_title-font: var(--primitives-font-display-3-md);
100
121
  }
101
122
 
102
123
  @container layout-container (min-width: ${lgMin}) {
103
- --_title-font: var(--primitives-font-display-2-lg);
124
+ --_title-font: var(--primitives-font-display-3-lg);
104
125
  }
105
126
  }
106
127
 
107
- :host([size="4"]) {
128
+ :host([data-level][size="display-4"]),
129
+ :host(:not([size^="display-"])[data-level="4"]) {
130
+ --_title-overline-font: var(--primitives-font-body-sm-regular-tight);
131
+ --_title-supporting-text-font: var(--primitives-font-body-md-regular-tight);
132
+
108
133
  @media (max-width: ${smMax}) {
109
134
  --_title-font: var(--primitives-font-display-4-sm);
110
135
  }
@@ -130,7 +155,11 @@ export const titleStyles = css `
130
155
  }
131
156
  }
132
157
 
133
- :host([size="5"]) {
158
+ :host([data-level][size="display-5"]),
159
+ :host(:not([size^="display-"])[data-level="5"]) {
160
+ --_title-overline-font: var(--primitives-font-body-sm-regular-tight);
161
+ --_title-supporting-text-font: var(--primitives-font-body-sm-regular-tight);
162
+
134
163
  @media (max-width: ${smMax}) {
135
164
  --_title-font: var(--primitives-font-display-5-sm);
136
165
  }
@@ -156,7 +185,11 @@ export const titleStyles = css `
156
185
  }
157
186
  }
158
187
 
159
- :host([size="6"]) {
188
+ :host([data-level][size="display-6"]),
189
+ :host(:not([size^="display-"])[data-level="6"]) {
190
+ --_title-overline-font: var(--primitives-font-body-xs-regular-tight);
191
+ --_title-supporting-text-font: var(--primitives-font-body-sm-regular-tight);
192
+
160
193
  @media (max-width: ${smMax}) {
161
194
  --_title-font: var(--primitives-font-display-6-sm);
162
195
  }
@@ -184,7 +217,7 @@ export const titleStyles = css `
184
217
 
185
218
  /* ## Custom size */
186
219
 
187
- :host([data-sm-custom-size]) {
220
+ :host([data-level][data-sm-custom-size]) {
188
221
  @media (max-width: ${smMax}) {
189
222
  --_title-font: var(--_title-sm-custom-font);
190
223
  }
@@ -194,7 +227,7 @@ export const titleStyles = css `
194
227
  }
195
228
  }
196
229
 
197
- :host([data-md-custom-size]) {
230
+ :host([data-level][data-md-custom-size]) {
198
231
  @media (min-width: ${mdMin}) and (max-width: ${mdMax}) {
199
232
  --_title-font: var(--_title-md-custom-font);
200
233
  }
@@ -204,7 +237,7 @@ export const titleStyles = css `
204
237
  }
205
238
  }
206
239
 
207
- :host([data-lg-custom-size]) {
240
+ :host([data-level][data-lg-custom-size]) {
208
241
  @media (min-width: ${lgMin}) {
209
242
  --_title-font: var(--_title-lg-custom-font);
210
243
  }
@@ -243,18 +276,22 @@ export const titleStyles = css `
243
276
 
244
277
  .title__overline {
245
278
  margin: 0;
279
+ max-width: var(--_title-secondary-text-max-width);
246
280
  color: var(--semantics-content-secondary-color);
247
- font: var(--primitives-font-body-sm-regular-tight);
281
+ font: var(--_title-overline-font);
248
282
  overflow-wrap: anywhere;
283
+ text-wrap: balance;
249
284
  }
250
285
 
251
286
  ::slotted([slot="overline"]) {
252
287
  ${slottedReset}
253
288
  ${inheritedTextReset}
254
289
  margin: 0 !important;
290
+ max-width: var(--_title-secondary-text-max-width) !important;
255
291
  color: var(--semantics-content-secondary-color) !important;
256
- font: var(--primitives-font-body-sm-regular-tight) !important;
292
+ font: var(--_title-overline-font) !important;
257
293
  overflow-wrap: anywhere !important;
294
+ text-wrap: balance !important;
258
295
  }
259
296
 
260
297
  /* The measure is in ch, so one value covers every size: ch scales with the
@@ -291,28 +328,22 @@ export const titleStyles = css `
291
328
 
292
329
  .title__supporting-text {
293
330
  margin: 0;
331
+ max-width: var(--_title-secondary-text-max-width);
294
332
  color: var(--semantics-content-secondary-color);
295
- font: var(--primitives-font-body-md-regular-tight);
333
+ font: var(--_title-supporting-text-font);
296
334
  overflow-wrap: anywhere;
335
+ text-wrap: balance;
297
336
  }
298
337
 
299
338
  ::slotted([slot="supporting-text"]) {
300
339
  ${slottedReset}
301
340
  ${inheritedTextReset}
302
341
  margin: 0 !important;
342
+ max-width: var(--_title-secondary-text-max-width) !important;
303
343
  color: var(--semantics-content-secondary-color) !important;
304
- font: var(--primitives-font-body-md-regular-tight) !important;
344
+ font: var(--_title-supporting-text-font) !important;
305
345
  overflow-wrap: anywhere !important;
306
- }
307
-
308
- :host([size="5"]) .title__supporting-text,
309
- :host([size="6"]) .title__supporting-text {
310
- font: var(--primitives-font-body-sm-regular-tight);
311
- }
312
-
313
- :host([size="5"]) ::slotted([slot="supporting-text"]),
314
- :host([size="6"]) ::slotted([slot="supporting-text"]) {
315
- font: var(--primitives-font-body-sm-regular-tight) !important;
346
+ text-wrap: balance !important;
316
347
  }
317
348
 
318
349
  :host([color="inherit"]) .title__text {
@@ -1 +1 @@
1
- {"version":3,"file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C"}
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * @slot - The element the tooltip is shown for
25
25
  *
26
- * @fires nldd-tooltip-dismiss - When a user presses Escape while `open=true`.
26
+ * @fires dismiss - When a user presses Escape while `open=true`. Does not bubble, so a banner or notification around the tooltip does not take it for its own.
27
27
  * The consumer owns the open lifecycle from there (we cannot clear `open`
28
28
  * on our own), so this event is the consumer's chance to set `open` back to
29
29
  * `false`. WCAG 1.4.13: a persistent hover or focus overlay has to be
@@ -1 +1 @@
1
- {"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tooltip/tooltip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AAS1C,OAAO,2CAA2C,CAAC;AAGnD,KAAK,SAAS,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AACrD,KAAK,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;AAa5C,qBACa,WAAY,SAAQ,UAAU;IAC1C,OAAgB,MAAM,0BAAiB;IAGvC,IAAI,SAAM;IAGV,QAAQ,SAAM;IAGd,WAAW,SAAM;IAGjB,eAAe,SAAM;IAGrB,aAAa,SAAM;IAEnB,4EAA4E;IAE5E,IAAI,UAAS;IAGb,SAAS,EAAE,SAAS,CAAY;IAGhC,MAAM,EAAE,MAAM,CAAW;IAEzB,OAAO,KAAK,mBAAmB,GAE9B;IAGD,QAAQ,UAAS;IAEjB,OAAO,CAAC,UAAU,CAAsC;IACxD,OAAO,CAAC,YAAY,CAA8C;IAClE,OAAO,CAAC,YAAY,CAA8C;IAClE,OAAO,CAAC,cAAc,CAAgC;IACtD,OAAO,CAAC,eAAe,CAAwB;IAC/C,OAAO,CAAC,gBAAgB,CA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AAI;IAoB5B,MAAM;CAGf;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,cAAc,EAAE,WAAW,CAAC;KAC5B;CACD"}
@@ -23,7 +23,7 @@
23
23
  *
24
24
  * @slot - The element the tooltip is shown for
25
25
  *
26
- * @fires nldd-tooltip-dismiss - When a user presses Escape while `open=true`.
26
+ * @fires dismiss - When a user presses Escape while `open=true`. Does not bubble, so a banner or notification around the tooltip does not take it for its own.
27
27
  * The consumer owns the open lifecycle from there (we cannot clear `open`
28
28
  * on our own), so this event is the consumer's chance to set `open` back to
29
29
  * `false`. WCAG 1.4.13: a persistent hover or focus overlay has to be
@@ -129,10 +129,12 @@ let NLDDTooltip = class NLDDTooltip extends LitElement {
129
129
  // keyboard-triggered overlay content must be dismissible without
130
130
  // moving focus. The consumer controls the open lifecycle (e.g.
131
131
  // action-feedback timers) so we can't unilaterally set open=false
132
- // here — but we DO emit nldd-tooltip-dismiss so the consumer can
132
+ // here — but we DO emit dismiss so the consumer can
133
133
  // honor the request. preventDefault keeps the keystroke from
134
134
  // bubbling to something else (modal close, etc.) when handled.
135
- this.dispatchEvent(new CustomEvent('nldd-tooltip-dismiss', { bubbles: true, composed: true }));
135
+ // Does not bubble: nldd-banner and nldd-notification fire a `dismiss`
136
+ // of their own, and a tooltip inside one would close it.
137
+ this.dispatchEvent(new CustomEvent('dismiss'));
136
138
  e.preventDefault();
137
139
  e.stopPropagation();
138
140
  return;