@nldd/design-system 0.21.1 → 0.23.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 (757) hide show
  1. package/README.md +5 -3
  2. package/custom-elements.json +900 -414
  3. package/dist/assets/styles/shadow-resets.d.ts +19 -0
  4. package/dist/assets/styles/shadow-resets.d.ts.map +1 -1
  5. package/dist/assets/styles/shadow-resets.js +35 -0
  6. package/dist/assets/styles/shadow-resets.js.map +1 -1
  7. package/dist/cdn/autoloader.js +136 -136
  8. package/dist/cdn/chunks/{activity-indicator-JglZJ8dh.js → activity-indicator-D86Mv6SL.js} +25 -24
  9. package/dist/cdn/chunks/{avatar-ASqePVhU.js → avatar-BISv6tzp.js} +58 -56
  10. package/dist/cdn/chunks/{avatar-group-GinEMPm9.js → avatar-group-D7IN6DxU.js} +43 -42
  11. package/dist/cdn/chunks/{badge-Cc2Nufoc.js → badge-R3PZUsqZ.js} +36 -33
  12. package/dist/cdn/chunks/{banner-BLVKM07M.js → banner-DRANlf5k.js} +43 -37
  13. package/dist/cdn/chunks/{bar-split-view-Clbg-p9H.js → bar-split-view-B-Y2nqgS.js} +33 -30
  14. package/dist/cdn/chunks/blockquote-pUgJLPY1.js +241 -0
  15. package/dist/cdn/chunks/{box-WkhyjQVy.js → box-BbXHpBQy.js} +14 -12
  16. package/dist/cdn/chunks/{breadcrumbs-D9YxZzRj.js → breadcrumbs-BdF4m3DB.js} +41 -36
  17. package/dist/cdn/chunks/{button-DO90Lo6q.js → button-CsqNHH3w.js} +141 -127
  18. package/dist/cdn/chunks/{button-bar-Bxgdbyh3.js → button-bar-CnYIw4fN.js} +25 -21
  19. package/dist/cdn/chunks/{button-group-BYGPPLmZ.js → button-group-xaHghyon.js} +10 -10
  20. package/dist/cdn/chunks/{card-BP0jfOkS.js → card-Bbf0aCIh.js} +35 -33
  21. package/dist/cdn/chunks/{cell-BRD2ilQh.js → cell-Dggt5oYG.js} +24 -23
  22. package/dist/cdn/chunks/{checkbox-Cazx8CQn.js → checkbox-DmFAS8ec.js} +49 -43
  23. package/dist/cdn/chunks/{checkbox-field-DDZ-B6vH.js → checkbox-field-fOWPH8Q7.js} +37 -32
  24. package/dist/cdn/chunks/{class-map-CXSdNjt8.js → class-map-BWGTUNv4.js} +1 -1
  25. package/dist/cdn/chunks/{code-editor-D6Q55oaY.js → code-editor-CANFZX66.js} +56 -57
  26. package/dist/cdn/chunks/{code-viewer-DspLH2T1.js → code-viewer-C_vUEx7J.js} +160 -123
  27. package/dist/cdn/chunks/{codemirror-input-Db65x22n.js → codemirror-input-wexTiqWw.js} +5 -5
  28. package/dist/cdn/chunks/{collection-NVtkvDls.js → collection-_emTry5U.js} +36 -36
  29. package/dist/cdn/chunks/{combo-box-OywRKaWj.js → combo-box-CGwj1u4a.js} +77 -68
  30. package/dist/cdn/chunks/{container-rrbwk0z4.js → container-D5Dz-j6a.js} +62 -54
  31. package/dist/cdn/chunks/{custom-element-q6NzoL5b.js → custom-element-DbwbPetH.js} +1 -1
  32. package/dist/cdn/chunks/{date-field-vmZLo80s.js → date-field-ChmyLtTj.js} +93 -83
  33. package/dist/cdn/chunks/{date-picker-CXDzSBoL.js → date-picker-CUQKdjS4.js} +86 -78
  34. package/dist/cdn/chunks/{decorate-TduJMFD_.js → decorate-_JGq4E_7.js} +2 -2
  35. package/dist/cdn/chunks/{described-by-mixin-daRE7orX.js → described-by-mixin-DbnuGktP.js} +2 -2
  36. package/dist/cdn/chunks/{description-cell-CQwOj_rN.js → description-cell-BgcO7ObI.js} +27 -25
  37. package/dist/cdn/chunks/{dev-checks-zW_W-hnh.js → dev-checks-KAnKlxY0.js} +188 -80
  38. package/dist/cdn/chunks/{dist-C_dGY6zR.js → dist-BF9euKgj.js} +43 -43
  39. package/dist/cdn/chunks/{dist-BEfLdOvy.js → dist-BHMubC6P.js} +190 -196
  40. package/dist/cdn/chunks/{dist-ChmCRv39.js → dist-BJrN5nEM.js} +50 -50
  41. package/dist/cdn/chunks/{dist-D2qap2OY.js → dist-Bz3Isx60.js} +13 -13
  42. package/dist/cdn/chunks/{dist-DrTzvgE7.js → dist-CBnQQ6kV.js} +178 -188
  43. package/dist/cdn/chunks/{dist-EM4MWLQq.js → dist-CJLBwJx0.js} +120 -125
  44. package/dist/cdn/chunks/{dist-DPUBF0MZ.js → dist-CKZ98PMy.js} +362 -371
  45. package/dist/cdn/chunks/{dist-EgIBI-FG.js → dist-CLKJ5z0x.js} +26 -26
  46. package/dist/cdn/chunks/{dist-A7_1pHX0.js → dist-D7Wubc1l.js} +25 -25
  47. package/dist/cdn/chunks/{dist-Rm6FvrSR.js → dist-DADIyiX-.js} +55 -55
  48. package/dist/cdn/chunks/{dist-CP3G1pSK.js → dist-HgRt6IKh.js} +1 -1
  49. package/dist/cdn/chunks/{divider-CCNbnplA.js → divider-pO5O6wL4.js} +6 -6
  50. package/dist/cdn/chunks/{document-tab-bar-A2DFWrP9.js → document-tab-bar-C_-iuaUc.js} +74 -60
  51. package/dist/cdn/chunks/{dropdown-DZTZtkm5.js → dropdown-DYO6049g.js} +36 -31
  52. package/dist/cdn/chunks/{file-field-DQ52qq5L.js → file-field-C-Fk92rD.js} +134 -116
  53. package/dist/cdn/chunks/{form-hXLgy_tY.js → form-ChXBrKw6.js} +23 -9
  54. package/dist/cdn/chunks/{form-actions-C_7hINq-.js → form-actions-DrOX7nX8.js} +7 -7
  55. package/dist/cdn/chunks/{form-associated-mixin--GIbl98p.js → form-associated-mixin-BtStDDYA.js} +14 -3
  56. package/dist/cdn/chunks/{form-field--4nWJ_DK.js → form-field-CR2Py09O.js} +46 -39
  57. package/dist/cdn/chunks/{form-section-By-D4un0.js → form-section-s1mkLzaC.js} +1 -1
  58. package/dist/cdn/chunks/{full-bleed-section-Dg4sIJG1.js → full-bleed-section-vOVI_f86.js} +10 -10
  59. package/dist/cdn/chunks/{hero-CQQMNCT_.js → hero-Cb3qIvvh.js} +125 -116
  60. package/dist/cdn/chunks/{icon-BORlalt0.js → icon-DBhTZrnl.js} +89 -72
  61. package/dist/cdn/chunks/{icon-button-rKiIHs7A.js → icon-button-bDuQ_6W_.js} +109 -99
  62. package/dist/cdn/chunks/{icon-cell-rk4NQid2.js → icon-cell-DlSZNTF3.js} +32 -30
  63. package/dist/cdn/chunks/{identity-BLXecYsZ.js → identity-CJTVNI9J.js} +28 -26
  64. package/dist/cdn/chunks/{if-defined-CaKKERku.js → if-defined-28B8DYUB.js} +1 -1
  65. package/dist/cdn/chunks/{image-DZMW6JgL.js → image-DlTxyeL3.js} +100 -85
  66. package/dist/cdn/chunks/{inline-dialog-WlqtPBPJ.js → inline-dialog-BJlOrD6M.js} +32 -28
  67. package/dist/cdn/chunks/{just-in-time-education-DRcb5g7x.js → just-in-time-education-DWBDshKs.js} +47 -48
  68. package/dist/cdn/chunks/{kanban-Ca_mfqsA.js → kanban-DIXY8FcZ.js} +24 -24
  69. package/dist/cdn/chunks/{kanban-column-fgIMc7pw.js → kanban-column-DmnxctX6.js} +15 -13
  70. package/dist/cdn/chunks/{keyboard-shortcut-EknnW7Ub.js → keyboard-shortcut-kYOKwBqs.js} +25 -23
  71. package/dist/cdn/chunks/{languages-yKikVFv_.js → languages-DGtcUhLc.js} +12 -12
  72. package/dist/cdn/chunks/{link-FBSAJ3UC.js → link-DhnhhTOg.js} +42 -39
  73. package/dist/cdn/chunks/{link-group-90qVfKa0.js → link-group-Bx2nkQcS.js} +11 -11
  74. package/dist/cdn/chunks/{list-CaWl3q0Z.js → list-CXCG_IEc.js} +81 -44
  75. package/dist/cdn/chunks/{list-item-Cagnf6eG.js → list-item-CSNBaRlK.js} +185 -124
  76. package/dist/cdn/chunks/{list-item-segment-BRzBF1y_.js → list-item-segment-D6WvAh3A.js} +55 -53
  77. package/dist/cdn/chunks/{menu-BtxzRedh.js → menu-CKxKVA36.js} +58 -57
  78. package/dist/cdn/chunks/{menu-bar-item-C7LQ0NI_.js → menu-bar-item-C950rfSt.js} +35 -34
  79. package/dist/cdn/chunks/{menu-bar-BU3Hjk1b.js → menu-bar-xahTEYTX.js} +21 -21
  80. package/dist/cdn/chunks/{menu-divider-CLLRgMll.js → menu-divider-XlYJ4zQz.js} +6 -6
  81. package/dist/cdn/chunks/{menu-group-BL24ChpR.js → menu-group-E6hIEtLj.js} +8 -8
  82. package/dist/cdn/chunks/{menu-item-CooKfrFa.js → menu-item-2y0VC5Gb.js} +38 -36
  83. package/dist/cdn/chunks/menu-item.i18n-CKUJBOeE.js +7 -0
  84. package/dist/cdn/chunks/{menu.template-C6rbfI-u.js → menu.template-ZBhUFgBJ.js} +55 -34
  85. package/dist/cdn/chunks/{modal-dialog-BrUMP4Jm.js → modal-dialog-DdFpcRLJ.js} +37 -36
  86. package/dist/cdn/chunks/{multi-line-text-field-D7hXhyOn.js → multi-line-text-field-okvEa54Q.js} +51 -47
  87. package/dist/cdn/chunks/{navigation-split-view-B2ZQhxEb.js → navigation-split-view-dNRQDSpy.js} +72 -91
  88. package/dist/cdn/chunks/nl.generated-Bo4bmwYF.js +114 -0
  89. package/dist/cdn/chunks/{notification-DSGP14d1.js → notification-2tnwXEY1.js} +28 -25
  90. package/dist/cdn/chunks/{number-field-B8op14Y_.js → number-field-CH7EvpSq.js} +45 -39
  91. package/dist/cdn/chunks/{one-half-one-half-section-ZYmHYf4Q.js → one-half-one-half-section-UZDP-KO-.js} +11 -11
  92. package/dist/cdn/chunks/{one-third-two-thirds-section-Ds10K6AS.js → one-third-two-thirds-section-8KtESdXO.js} +11 -11
  93. package/dist/cdn/chunks/{one-time-code-field-Cgy_tTS4.js → one-time-code-field-Bvm3ND6e.js} +58 -54
  94. package/dist/cdn/chunks/{page-CBf_Decp.js → page-PK1FWuKJ.js} +44 -41
  95. package/dist/cdn/chunks/{page-footer-CSv1dU7M.js → page-footer-BamWKHwH.js} +68 -80
  96. package/dist/cdn/chunks/{page-section-mixin-Dp6X8GKd.js → page-section-mixin-3q59_Jo_.js} +39 -35
  97. package/dist/cdn/chunks/{pagination-CMUcFB53.js → pagination-47zAyQhM.js} +52 -45
  98. package/dist/cdn/chunks/{password-field-C76Vm3rm.js → password-field-FaU02DSW.js} +58 -54
  99. package/dist/cdn/chunks/{popover-CGbeEv_-.js → popover-642mOFR5.js} +97 -61
  100. package/dist/cdn/chunks/{progress-bar-BLiHaRUS.js → progress-bar-BivaNkIY.js} +57 -55
  101. package/dist/cdn/chunks/{progress-circle-CjkovRbL.js → progress-circle-ewL0JIcz.js} +57 -55
  102. package/dist/cdn/chunks/{radio-button-GHyO-GQB.js → radio-button-DvrYYSnm.js} +42 -42
  103. package/dist/cdn/chunks/{radio-button-field-C-Z6Lnd4.js → radio-button-field-BVi0YrTF.js} +29 -27
  104. package/dist/cdn/chunks/{radio-button-group-ChTqBCnQ.js → radio-button-group-DZ9OWUNe.js} +18 -18
  105. package/dist/cdn/chunks/{render-marked-DX_5ISZE.js → render-marked-CO31_4GS.js} +1 -1
  106. package/dist/cdn/chunks/{drag-handle-cell-CbzDYebG.js → reorder-handle-cell-Doetg58W.js} +39 -37
  107. package/dist/cdn/chunks/reorder-handle-cell.i18n-DlH2aVwd.js +3 -0
  108. package/dist/cdn/chunks/reorder-handle-mixin-DCjwUXr0.js +16 -0
  109. package/dist/cdn/chunks/{repeat-Ch_5OsXE.js → repeat-Wb4hkVZc.js} +1 -1
  110. package/dist/cdn/chunks/rich-text-Do08iiIz.js +58 -0
  111. package/dist/cdn/chunks/rolldown-runtime-CGnMp29N.js +10 -0
  112. package/dist/cdn/chunks/{row-header-mixin-CgqvREoV.js → row-header-mixin-CKR5rHBA.js} +2 -2
  113. package/dist/cdn/chunks/{search-field-BGNfERhn.js → search-field-CCeeGiJM.js} +75 -67
  114. package/dist/cdn/chunks/{segmented-control-BYAG4VRp.js → segmented-control-CWIPxEBq.js} +92 -82
  115. package/dist/cdn/chunks/shadow-resets-NKr5gQCc.js +28 -0
  116. package/dist/cdn/chunks/{sheet-CqN7ViYV.js → sheet-WOjBtZvN.js} +41 -39
  117. package/dist/cdn/chunks/{shell-C9rds_D9.js → shell-Brn0Dr8F.js} +26 -23
  118. package/dist/cdn/chunks/{side-by-side-split-view-C5oX4c6Z.js → side-by-side-split-view-DGIMsyma.js} +33 -30
  119. package/dist/cdn/chunks/{sidebar-section-CFPBdETU.js → sidebar-section-BXHeI8GN.js} +37 -32
  120. package/dist/cdn/chunks/{simple-section-qrCqXeBa.js → simple-section-C8lJZLAO.js} +12 -12
  121. package/dist/cdn/chunks/{skip-link-DWh4W6-J.js → skip-link-QdRgHljr.js} +20 -19
  122. package/dist/cdn/chunks/{slider--hODfOwh.js → slider-BhjBeWqc.js} +90 -84
  123. package/dist/cdn/chunks/{spacer-CFzq_JCh.js → spacer-BgkOjuUj.js} +11 -11
  124. package/dist/cdn/chunks/{spacer-cell-DuVOgIj8.js → spacer-cell-DBI0PVd7.js} +13 -12
  125. package/dist/cdn/chunks/{split-button-DH19p8So.js → split-button-DfD9vxPe.js} +45 -41
  126. package/dist/cdn/chunks/{split-view-divider-jzcPmnMh.js → split-view-divider-B4NFlri5.js} +10 -10
  127. package/dist/cdn/chunks/{split-view-pane-BLsZz263.js → split-view-pane-CwFf13hX.js} +27 -24
  128. package/dist/cdn/chunks/{stacked-split-view-CcOR8LrJ.js → stacked-split-view-BmbzTinq.js} +32 -29
  129. package/dist/cdn/chunks/{static-html-Cf4ccUIg.js → static-html-CZrcQRgC.js} +1 -1
  130. package/dist/cdn/chunks/{status-bar-CINbOihq.js → status-bar-CTOf_bDL.js} +25 -24
  131. package/dist/cdn/chunks/{step-bar-6FvZL1Ti.js → step-bar-B5vzvhz-.js} +64 -57
  132. package/dist/cdn/chunks/{step-cell-CejRisgS.js → step-cell-CUA-HUZv.js} +44 -40
  133. package/dist/cdn/chunks/{stepper-CY2rJWOJ.js → stepper-LxPTQ6HJ.js} +30 -30
  134. package/dist/cdn/chunks/{style-map-DsIw6lkq.js → style-map-DiIQAb_L.js} +1 -1
  135. package/dist/cdn/chunks/{swatch-picker-BY3DBIl6.js → swatch-picker-Cxv9HK3A.js} +48 -47
  136. package/dist/cdn/chunks/{switch-DDSsZFwK.js → switch-CbNSJQPp.js} +34 -32
  137. package/dist/cdn/chunks/{switch-field-CMoM9I38.js → switch-field-B8vOvcKc.js} +51 -30
  138. package/dist/cdn/chunks/{tab-bar-CA8K1XjU.js → tab-bar-D4ot_wZ4.js} +76 -70
  139. package/dist/cdn/chunks/{table-DwXjCSD5.js → table-uh4YPqda.js} +31 -31
  140. package/dist/cdn/chunks/{tag-DM3APy3B.js → tag-D2dCXT7A.js} +26 -25
  141. package/dist/cdn/chunks/{text-B1CatNR1.js → text-BX4Xm40t.js} +62 -77
  142. package/dist/cdn/chunks/{text-cell-BkEsGI3g.js → text-cell-DNCpmw9h.js} +57 -53
  143. package/dist/cdn/chunks/{text-editor-BvTiMeNV.js → text-editor-C6UKAmPL.js} +97 -71
  144. package/dist/cdn/chunks/{text-field-CUyh1-V8.js → text-field-Dmkd4mHV.js} +65 -56
  145. package/dist/cdn/chunks/{time-field--5K0YTcr.js → time-field-BfgNZbEb.js} +64 -60
  146. package/dist/cdn/chunks/{time-picker-W0xYXLy8.js → time-picker-C1SBkU-e.js} +91 -79
  147. package/dist/cdn/chunks/{title-BuT7tWqN.js → title-DFrd-Fsh.js} +119 -102
  148. package/dist/cdn/chunks/{title-cell-8d8psUBX.js → title-cell-CC1dQyth.js} +75 -74
  149. package/dist/cdn/chunks/{toggle-button-DNXWXZpE.js → toggle-button-bAX6uzgz.js} +80 -74
  150. package/dist/cdn/chunks/{toggle-button-group-ByowJYgs.js → toggle-button-group-B7CHBww5.js} +20 -20
  151. package/dist/cdn/chunks/{token-CnkEB3hB.js → token-CicHNqIk.js} +34 -32
  152. package/dist/cdn/chunks/{token-field-BpyxOGmU.js → token-field-BFynQ-T-.js} +78 -70
  153. package/dist/cdn/chunks/{toolbar-C24LqAzK.js → toolbar-hAmL7o23.js} +26 -26
  154. package/dist/cdn/chunks/{toolbar-item-DpPfPxCi.js → toolbar-item-CjgkcYJ2.js} +13 -13
  155. package/dist/cdn/chunks/{toolbar-title-KBMpfL9d.js → toolbar-title-B1acxCGx.js} +31 -31
  156. package/dist/cdn/chunks/{toolbar.styles-BQkG4gVc.js → toolbar.styles-xiyZx5D0.js} +7 -3
  157. package/dist/cdn/chunks/{tooltip-BsAHJjci.js → tooltip-Mj47t8v7.js} +72 -62
  158. package/dist/cdn/chunks/{top-navigation-bar-C_kLPVKD.js → top-navigation-bar-vP5QGBXd.js} +88 -86
  159. package/dist/cdn/chunks/{top-title-bar-iNFB2zQL.js → top-title-bar-Yt6cmRLj.js} +52 -44
  160. package/dist/cdn/chunks/translations-BMMzf2sX.js +14 -0
  161. package/dist/cdn/chunks/{two-thirds-one-third-section-D-UANbHC.js → two-thirds-one-third-section-BHN98jET.js} +11 -11
  162. package/dist/cdn/chunks/{validation-list-C5BhHZIG.js → validation-list-CUPzu9_z.js} +20 -19
  163. package/dist/cdn/chunks/{visibility-mixin-COAZ9pON.js → visibility-mixin-DPuxf-sj.js} +2 -2
  164. package/dist/cdn/chunks/{visually-hidden-BPgATaH0.js → visually-hidden-CvjJIBhz.js} +6 -6
  165. package/dist/cdn/chunks/{window-CxV6ELE9.js → window-BqGlzGaS.js} +41 -40
  166. package/dist/cdn/chunks/with-translations-CRvWJWep.js +16 -0
  167. package/dist/components/actions/button/button.d.ts +2 -2
  168. package/dist/components/actions/button/button.js +1 -1
  169. package/dist/components/actions/button/button.styles.d.ts.map +1 -1
  170. package/dist/components/actions/button/button.styles.js +39 -26
  171. package/dist/components/actions/button/button.styles.js.map +1 -1
  172. package/dist/components/actions/button/button.template.js +1 -1
  173. package/dist/components/actions/button-bar/button-bar.d.ts +1 -1
  174. package/dist/components/actions/button-bar/button-bar.js +1 -1
  175. package/dist/components/actions/button-bar/button-bar.styles.d.ts.map +1 -1
  176. package/dist/components/actions/button-bar/button-bar.styles.js +12 -8
  177. package/dist/components/actions/button-bar/button-bar.styles.js.map +1 -1
  178. package/dist/components/actions/icon-button/icon-button.d.ts +2 -2
  179. package/dist/components/actions/icon-button/icon-button.js +1 -1
  180. package/dist/components/actions/icon-button/icon-button.styles.d.ts.map +1 -1
  181. package/dist/components/actions/icon-button/icon-button.styles.js +29 -20
  182. package/dist/components/actions/icon-button/icon-button.styles.js.map +1 -1
  183. package/dist/components/actions/menu/menu-item.d.ts +15 -1
  184. package/dist/components/actions/menu/menu-item.d.ts.map +1 -1
  185. package/dist/components/actions/menu/menu-item.i18n.d.ts +7 -0
  186. package/dist/components/actions/menu/menu-item.i18n.d.ts.map +1 -0
  187. package/dist/components/actions/menu/menu-item.i18n.js +6 -0
  188. package/dist/components/actions/menu/menu-item.i18n.js.map +1 -0
  189. package/dist/components/actions/menu/menu-item.js +14 -1
  190. package/dist/components/actions/menu/menu-item.js.map +1 -1
  191. package/dist/components/actions/menu/menu.styles.d.ts.map +1 -1
  192. package/dist/components/actions/menu/menu.styles.js +18 -1
  193. package/dist/components/actions/menu/menu.styles.js.map +1 -1
  194. package/dist/components/actions/menu/menu.template.d.ts.map +1 -1
  195. package/dist/components/actions/menu/menu.template.js +8 -2
  196. package/dist/components/actions/menu/menu.template.js.map +1 -1
  197. package/dist/components/actions/split-button/split-button.d.ts +2 -2
  198. package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
  199. package/dist/components/actions/split-button/split-button.js +1 -1
  200. package/dist/components/actions/split-button/split-button.styles.d.ts.map +1 -1
  201. package/dist/components/actions/split-button/split-button.styles.js +12 -8
  202. package/dist/components/actions/split-button/split-button.styles.js.map +1 -1
  203. package/dist/components/actions/toolbar/toolbar.story-sync.js +1 -1
  204. package/dist/components/actions/toolbar/toolbar.story-sync.js.map +1 -1
  205. package/dist/components/actions/toolbar/toolbar.styles.d.ts.map +1 -1
  206. package/dist/components/actions/toolbar/toolbar.styles.js +4 -0
  207. package/dist/components/actions/toolbar/toolbar.styles.js.map +1 -1
  208. package/dist/components/content/avatar/avatar.d.ts +7 -5
  209. package/dist/components/content/avatar/avatar.d.ts.map +1 -1
  210. package/dist/components/content/avatar/avatar.js +7 -5
  211. package/dist/components/content/avatar/avatar.js.map +1 -1
  212. package/dist/components/content/avatar/avatar.styles.d.ts.map +1 -1
  213. package/dist/components/content/avatar/avatar.styles.js +13 -12
  214. package/dist/components/content/avatar/avatar.styles.js.map +1 -1
  215. package/dist/components/content/avatar-group/avatar-group.d.ts +1 -1
  216. package/dist/components/content/avatar-group/avatar-group.js +1 -1
  217. package/dist/components/content/avatar-group/avatar-group.styles.d.ts.map +1 -1
  218. package/dist/components/content/avatar-group/avatar-group.styles.js +2 -1
  219. package/dist/components/content/avatar-group/avatar-group.styles.js.map +1 -1
  220. package/dist/components/content/blockquote/blockquote.d.ts +9 -1
  221. package/dist/components/content/blockquote/blockquote.d.ts.map +1 -1
  222. package/dist/components/content/blockquote/blockquote.js +23 -7
  223. package/dist/components/content/blockquote/blockquote.js.map +1 -1
  224. package/dist/components/content/blockquote/blockquote.styles.d.ts.map +1 -1
  225. package/dist/components/content/blockquote/blockquote.styles.js +52 -10
  226. package/dist/components/content/blockquote/blockquote.styles.js.map +1 -1
  227. package/dist/components/content/code-viewer/code-viewer.d.ts +5 -0
  228. package/dist/components/content/code-viewer/code-viewer.d.ts.map +1 -1
  229. package/dist/components/content/code-viewer/code-viewer.js +20 -1
  230. package/dist/components/content/code-viewer/code-viewer.js.map +1 -1
  231. package/dist/components/content/code-viewer/code-viewer.styles.d.ts.map +1 -1
  232. package/dist/components/content/code-viewer/code-viewer.styles.js +37 -8
  233. package/dist/components/content/code-viewer/code-viewer.styles.js.map +1 -1
  234. package/dist/components/content/code-viewer/code-viewer.template.js +1 -1
  235. package/dist/components/content/code-viewer/code-viewer.template.js.map +1 -1
  236. package/dist/components/content/icon/icon.d.ts +17 -15
  237. package/dist/components/content/icon/icon.d.ts.map +1 -1
  238. package/dist/components/content/icon/icon.js +19 -17
  239. package/dist/components/content/icon/icon.js.map +1 -1
  240. package/dist/components/content/icon/icon.styles.d.ts.map +1 -1
  241. package/dist/components/content/icon/icon.styles.js +47 -24
  242. package/dist/components/content/icon/icon.styles.js.map +1 -1
  243. package/dist/components/content/identity/identity.styles.d.ts.map +1 -1
  244. package/dist/components/content/identity/identity.styles.js +2 -0
  245. package/dist/components/content/identity/identity.styles.js.map +1 -1
  246. package/dist/components/content/image/image.d.ts +6 -2
  247. package/dist/components/content/image/image.d.ts.map +1 -1
  248. package/dist/components/content/image/image.js +28 -15
  249. package/dist/components/content/image/image.js.map +1 -1
  250. package/dist/components/content/image/image.styles.d.ts.map +1 -1
  251. package/dist/components/content/image/image.styles.js +34 -25
  252. package/dist/components/content/image/image.styles.js.map +1 -1
  253. package/dist/components/content/image/image.template.d.ts.map +1 -1
  254. package/dist/components/content/image/image.template.js +6 -8
  255. package/dist/components/content/image/image.template.js.map +1 -1
  256. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +5 -5
  257. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +4 -4
  258. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
  259. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +5 -3
  260. package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
  261. package/dist/components/content/rich-text/rich-text.d.ts +9 -7
  262. package/dist/components/content/rich-text/rich-text.d.ts.map +1 -1
  263. package/dist/components/content/rich-text/rich-text.js +40 -12
  264. package/dist/components/content/rich-text/rich-text.js.map +1 -1
  265. package/dist/components/content/tag/tag.styles.d.ts.map +1 -1
  266. package/dist/components/content/tag/tag.styles.js +1 -0
  267. package/dist/components/content/tag/tag.styles.js.map +1 -1
  268. package/dist/components/content/text/text.d.ts +2 -2
  269. package/dist/components/content/text/text.d.ts.map +1 -1
  270. package/dist/components/content/text/text.js +1 -1
  271. package/dist/components/content/text/text.styles.d.ts.map +1 -1
  272. package/dist/components/content/text/text.styles.js +17 -32
  273. package/dist/components/content/text/text.styles.js.map +1 -1
  274. package/dist/components/content/title/title.d.ts +26 -17
  275. package/dist/components/content/title/title.d.ts.map +1 -1
  276. package/dist/components/content/title/title.js +38 -20
  277. package/dist/components/content/title/title.js.map +1 -1
  278. package/dist/components/content/title/title.styles.d.ts.map +1 -1
  279. package/dist/components/content/title/title.styles.js +84 -69
  280. package/dist/components/content/title/title.styles.js.map +1 -1
  281. package/dist/components/content/token/token.styles.d.ts.map +1 -1
  282. package/dist/components/content/token/token.styles.js +4 -2
  283. package/dist/components/content/token/token.styles.js.map +1 -1
  284. package/dist/components/content/tooltip/tooltip.d.ts +1 -1
  285. package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
  286. package/dist/components/content/tooltip/tooltip.js +5 -3
  287. package/dist/components/content/tooltip/tooltip.js.map +1 -1
  288. package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
  289. package/dist/components/content/tooltip/tooltip.styles.js +18 -5
  290. package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
  291. package/dist/components/content/tooltip/tooltip.template.js +1 -1
  292. package/dist/components/forms/form/form.d.ts +11 -0
  293. package/dist/components/forms/form/form.d.ts.map +1 -1
  294. package/dist/components/forms/form/form.js +56 -4
  295. package/dist/components/forms/form/form.js.map +1 -1
  296. package/dist/components/forms/form-field/form-field.styles.d.ts.map +1 -1
  297. package/dist/components/forms/form-field/form-field.styles.js +10 -3
  298. package/dist/components/forms/form-field/form-field.styles.js.map +1 -1
  299. package/dist/components/forms/validation-list/validation-list.styles.d.ts.map +1 -1
  300. package/dist/components/forms/validation-list/validation-list.styles.js +1 -0
  301. package/dist/components/forms/validation-list/validation-list.styles.js.map +1 -1
  302. package/dist/components/index.d.ts +1 -1
  303. package/dist/components/index.d.ts.map +1 -1
  304. package/dist/components/index.js +1 -1
  305. package/dist/components/index.js.map +1 -1
  306. package/dist/components/inputs/checkbox/checkbox.d.ts +3 -3
  307. package/dist/components/inputs/checkbox/checkbox.js +2 -2
  308. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  309. package/dist/components/inputs/checkbox/checkbox.styles.js +23 -18
  310. package/dist/components/inputs/checkbox/checkbox.styles.js.map +1 -1
  311. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts +7 -4
  312. package/dist/components/inputs/checkbox-field/checkbox-field.d.ts.map +1 -1
  313. package/dist/components/inputs/checkbox-field/checkbox-field.js +8 -3
  314. package/dist/components/inputs/checkbox-field/checkbox-field.js.map +1 -1
  315. package/dist/components/inputs/checkbox-field/checkbox-field.styles.d.ts.map +1 -1
  316. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js +4 -2
  317. package/dist/components/inputs/checkbox-field/checkbox-field.styles.js.map +1 -1
  318. package/dist/components/inputs/code-editor/code-editor.d.ts +9 -11
  319. package/dist/components/inputs/code-editor/code-editor.d.ts.map +1 -1
  320. package/dist/components/inputs/code-editor/code-editor.js +3 -3
  321. package/dist/components/inputs/code-editor/code-editor.js.map +1 -1
  322. package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
  323. package/dist/components/inputs/code-editor/code-editor.styles.js +24 -25
  324. package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
  325. package/dist/components/inputs/combo-box/combo-box.styles.d.ts.map +1 -1
  326. package/dist/components/inputs/combo-box/combo-box.styles.js +9 -0
  327. package/dist/components/inputs/combo-box/combo-box.styles.js.map +1 -1
  328. package/dist/components/inputs/date-field/date-field.styles.d.ts.map +1 -1
  329. package/dist/components/inputs/date-field/date-field.styles.js +10 -0
  330. package/dist/components/inputs/date-field/date-field.styles.js.map +1 -1
  331. package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
  332. package/dist/components/inputs/date-picker/date-picker.styles.js +8 -0
  333. package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
  334. package/dist/components/inputs/dropdown/dropdown.styles.d.ts.map +1 -1
  335. package/dist/components/inputs/dropdown/dropdown.styles.js +5 -0
  336. package/dist/components/inputs/dropdown/dropdown.styles.js.map +1 -1
  337. package/dist/components/inputs/file-field/file-field.styles.d.ts.map +1 -1
  338. package/dist/components/inputs/file-field/file-field.styles.js +18 -0
  339. package/dist/components/inputs/file-field/file-field.styles.js.map +1 -1
  340. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.d.ts.map +1 -1
  341. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js +4 -0
  342. package/dist/components/inputs/multi-line-text-field/multi-line-text-field.styles.js.map +1 -1
  343. package/dist/components/inputs/number-field/number-field.styles.d.ts.map +1 -1
  344. package/dist/components/inputs/number-field/number-field.styles.js +6 -0
  345. package/dist/components/inputs/number-field/number-field.styles.js.map +1 -1
  346. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts +3 -3
  347. package/dist/components/inputs/one-time-code-field/one-time-code-field.d.ts.map +1 -1
  348. package/dist/components/inputs/one-time-code-field/one-time-code-field.js +4 -4
  349. package/dist/components/inputs/one-time-code-field/one-time-code-field.js.map +1 -1
  350. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.d.ts.map +1 -1
  351. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js +4 -0
  352. package/dist/components/inputs/one-time-code-field/one-time-code-field.styles.js.map +1 -1
  353. package/dist/components/inputs/password-field/password-field.styles.d.ts.map +1 -1
  354. package/dist/components/inputs/password-field/password-field.styles.js +4 -0
  355. package/dist/components/inputs/password-field/password-field.styles.js.map +1 -1
  356. package/dist/components/inputs/radio-button/radio-button.d.ts +3 -3
  357. package/dist/components/inputs/radio-button/radio-button.js +2 -2
  358. package/dist/components/inputs/radio-button/radio-button.styles.js +13 -13
  359. package/dist/components/inputs/radio-button-field/radio-button-field.d.ts +3 -3
  360. package/dist/components/inputs/radio-button-field/radio-button-field.js +2 -2
  361. package/dist/components/inputs/radio-button-field/radio-button-field.styles.d.ts.map +1 -1
  362. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js +4 -2
  363. package/dist/components/inputs/radio-button-field/radio-button-field.styles.js.map +1 -1
  364. package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
  365. package/dist/components/inputs/search-field/search-field.styles.js +8 -0
  366. package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
  367. package/dist/components/inputs/segmented-control/segmented-control.styles.d.ts.map +1 -1
  368. package/dist/components/inputs/segmented-control/segmented-control.styles.js +10 -0
  369. package/dist/components/inputs/segmented-control/segmented-control.styles.js.map +1 -1
  370. package/dist/components/inputs/slider/slider.styles.d.ts.map +1 -1
  371. package/dist/components/inputs/slider/slider.styles.js +7 -1
  372. package/dist/components/inputs/slider/slider.styles.js.map +1 -1
  373. package/dist/components/inputs/swatch-picker/swatch-picker.d.ts +1 -1
  374. package/dist/components/inputs/swatch-picker/swatch-picker.js +1 -1
  375. package/dist/components/inputs/swatch-picker/swatch-picker.styles.d.ts.map +1 -1
  376. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js +1 -0
  377. package/dist/components/inputs/swatch-picker/swatch-picker.styles.js.map +1 -1
  378. package/dist/components/inputs/switch/switch.d.ts +3 -3
  379. package/dist/components/inputs/switch/switch.js +2 -2
  380. package/dist/components/inputs/switch/switch.styles.d.ts.map +1 -1
  381. package/dist/components/inputs/switch/switch.styles.js +7 -6
  382. package/dist/components/inputs/switch/switch.styles.js.map +1 -1
  383. package/dist/components/inputs/switch-field/switch-field.d.ts +15 -4
  384. package/dist/components/inputs/switch-field/switch-field.d.ts.map +1 -1
  385. package/dist/components/inputs/switch-field/switch-field.js +26 -4
  386. package/dist/components/inputs/switch-field/switch-field.js.map +1 -1
  387. package/dist/components/inputs/switch-field/switch-field.styles.d.ts.map +1 -1
  388. package/dist/components/inputs/switch-field/switch-field.styles.js +4 -2
  389. package/dist/components/inputs/switch-field/switch-field.styles.js.map +1 -1
  390. package/dist/components/inputs/text-editor/text-editor.d.ts +2 -3
  391. package/dist/components/inputs/text-editor/text-editor.d.ts.map +1 -1
  392. package/dist/components/inputs/text-editor/text-editor.js +24 -17
  393. package/dist/components/inputs/text-editor/text-editor.js.map +1 -1
  394. package/dist/components/inputs/text-editor/text-editor.markdown.d.ts.map +1 -1
  395. package/dist/components/inputs/text-editor/text-editor.markdown.js +3 -1
  396. package/dist/components/inputs/text-editor/text-editor.markdown.js.map +1 -1
  397. package/dist/components/inputs/text-editor/text-editor.mentions.d.ts +1 -1
  398. package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
  399. package/dist/components/inputs/text-editor/text-editor.styles.js +45 -19
  400. package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
  401. package/dist/components/inputs/text-field/text-field.styles.d.ts.map +1 -1
  402. package/dist/components/inputs/text-field/text-field.styles.js +9 -0
  403. package/dist/components/inputs/text-field/text-field.styles.js.map +1 -1
  404. package/dist/components/inputs/time-field/time-field.styles.d.ts.map +1 -1
  405. package/dist/components/inputs/time-field/time-field.styles.js +4 -0
  406. package/dist/components/inputs/time-field/time-field.styles.js.map +1 -1
  407. package/dist/components/inputs/time-picker/time-picker.d.ts +28 -19
  408. package/dist/components/inputs/time-picker/time-picker.d.ts.map +1 -1
  409. package/dist/components/inputs/time-picker/time-picker.js +78 -51
  410. package/dist/components/inputs/time-picker/time-picker.js.map +1 -1
  411. package/dist/components/inputs/time-picker/time-picker.styles.d.ts.map +1 -1
  412. package/dist/components/inputs/time-picker/time-picker.styles.js +7 -1
  413. package/dist/components/inputs/time-picker/time-picker.styles.js.map +1 -1
  414. package/dist/components/inputs/time-picker/time-picker.template.d.ts.map +1 -1
  415. package/dist/components/inputs/time-picker/time-picker.template.js +1 -0
  416. package/dist/components/inputs/time-picker/time-picker.template.js.map +1 -1
  417. package/dist/components/inputs/toggle-button/toggle-button.styles.d.ts.map +1 -1
  418. package/dist/components/inputs/toggle-button/toggle-button.styles.js +6 -0
  419. package/dist/components/inputs/toggle-button/toggle-button.styles.js.map +1 -1
  420. package/dist/components/inputs/token-field/token-field.styles.d.ts.map +1 -1
  421. package/dist/components/inputs/token-field/token-field.styles.js +9 -1
  422. package/dist/components/inputs/token-field/token-field.styles.js.map +1 -1
  423. package/dist/components/layout/box/box.styles.d.ts.map +1 -1
  424. package/dist/components/layout/box/box.styles.js +3 -1
  425. package/dist/components/layout/box/box.styles.js.map +1 -1
  426. package/dist/components/layout/card/card.styles.d.ts.map +1 -1
  427. package/dist/components/layout/card/card.styles.js +5 -3
  428. package/dist/components/layout/card/card.styles.js.map +1 -1
  429. package/dist/components/layout/container/container.d.ts +7 -0
  430. package/dist/components/layout/container/container.d.ts.map +1 -1
  431. package/dist/components/layout/container/container.js +30 -0
  432. package/dist/components/layout/container/container.js.map +1 -1
  433. package/dist/components/layout/kanban/kanban-column.d.ts +1 -1
  434. package/dist/components/layout/kanban/kanban-column.js +1 -1
  435. package/dist/components/layout/kanban/kanban.d.ts +7 -7
  436. package/dist/components/layout/kanban/kanban.js +9 -9
  437. package/dist/components/layout/kanban/kanban.js.map +1 -1
  438. package/dist/components/layout/kanban/kanban.styles.d.ts.map +1 -1
  439. package/dist/components/layout/kanban/kanban.styles.js +2 -0
  440. package/dist/components/layout/kanban/kanban.styles.js.map +1 -1
  441. package/dist/components/layout/page/page.styles.d.ts.map +1 -1
  442. package/dist/components/layout/page/page.styles.js +8 -5
  443. package/dist/components/layout/page/page.styles.js.map +1 -1
  444. package/dist/components/layout/page-footer/page-footer.d.ts +4 -0
  445. package/dist/components/layout/page-footer/page-footer.d.ts.map +1 -1
  446. package/dist/components/layout/page-footer/page-footer.js +7 -12
  447. package/dist/components/layout/page-footer/page-footer.js.map +1 -1
  448. package/dist/components/layout/page-footer/page-footer.styles.d.ts.map +1 -1
  449. package/dist/components/layout/page-footer/page-footer.styles.js +9 -21
  450. package/dist/components/layout/page-footer/page-footer.styles.js.map +1 -1
  451. package/dist/components/layout/page-footer/page-footer.template.d.ts.map +1 -1
  452. package/dist/components/layout/page-footer/page-footer.template.js +1 -4
  453. package/dist/components/layout/page-footer/page-footer.template.js.map +1 -1
  454. package/dist/components/layout/page-sections/hero/hero.d.ts +3 -4
  455. package/dist/components/layout/page-sections/hero/hero.d.ts.map +1 -1
  456. package/dist/components/layout/page-sections/hero/hero.js +3 -4
  457. package/dist/components/layout/page-sections/hero/hero.js.map +1 -1
  458. package/dist/components/layout/page-sections/hero/hero.styles.d.ts.map +1 -1
  459. package/dist/components/layout/page-sections/hero/hero.styles.js +14 -5
  460. package/dist/components/layout/page-sections/hero/hero.styles.js.map +1 -1
  461. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts +2 -2
  462. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.d.ts.map +1 -1
  463. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js +21 -2
  464. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.js.map +1 -1
  465. package/dist/components/layout/page-sections/sidebar-section/sidebar-section.styles.js +1 -1
  466. package/dist/components/layout/popover/popover.d.ts +24 -2
  467. package/dist/components/layout/popover/popover.d.ts.map +1 -1
  468. package/dist/components/layout/popover/popover.js +106 -11
  469. package/dist/components/layout/popover/popover.js.map +1 -1
  470. package/dist/components/layout/popover/popover.styles.d.ts.map +1 -1
  471. package/dist/components/layout/popover/popover.styles.js +9 -1
  472. package/dist/components/layout/popover/popover.styles.js.map +1 -1
  473. package/dist/components/layout/sheet/sheet.styles.d.ts.map +1 -1
  474. package/dist/components/layout/sheet/sheet.styles.js +3 -1
  475. package/dist/components/layout/sheet/sheet.styles.js.map +1 -1
  476. package/dist/components/layout/shell/shell.d.ts +1 -1
  477. package/dist/components/layout/shell/shell.js +1 -1
  478. package/dist/components/layout/shell/shell.styles.d.ts.map +1 -1
  479. package/dist/components/layout/shell/shell.styles.js +6 -3
  480. package/dist/components/layout/shell/shell.styles.js.map +1 -1
  481. package/dist/components/layout/split-views/bar-split-view/bar-split-view.d.ts +1 -1
  482. package/dist/components/layout/split-views/bar-split-view/bar-split-view.js +1 -1
  483. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.d.ts.map +1 -1
  484. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js +8 -5
  485. package/dist/components/layout/split-views/bar-split-view/bar-split-view.styles.js.map +1 -1
  486. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts +0 -28
  487. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.d.ts.map +1 -1
  488. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js +10 -57
  489. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.js.map +1 -1
  490. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.d.ts.map +1 -1
  491. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js +8 -5
  492. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.styles.js.map +1 -1
  493. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.d.ts.map +1 -1
  494. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js +2 -4
  495. package/dist/components/layout/split-views/navigation-split-view/navigation-split-view.template.js.map +1 -1
  496. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.d.ts.map +1 -1
  497. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js +8 -5
  498. package/dist/components/layout/split-views/side-by-side-split-view/side-by-side-split-view.styles.js.map +1 -1
  499. package/dist/components/layout/split-views/split-view-pane/split-view-pane.d.ts +2 -2
  500. package/dist/components/layout/split-views/split-view-pane/split-view-pane.js +2 -2
  501. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.d.ts.map +1 -1
  502. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js +8 -5
  503. package/dist/components/layout/split-views/split-view-pane/split-view-pane.styles.js.map +1 -1
  504. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.d.ts.map +1 -1
  505. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js +8 -5
  506. package/dist/components/layout/split-views/stacked-split-view/stacked-split-view.styles.js.map +1 -1
  507. package/dist/components/layout/window/window.styles.d.ts.map +1 -1
  508. package/dist/components/layout/window/window.styles.js +3 -2
  509. package/dist/components/layout/window/window.styles.js.map +1 -1
  510. package/dist/components/lists-and-tables/cells/cell/cell.d.ts +2 -0
  511. package/dist/components/lists-and-tables/cells/cell/cell.d.ts.map +1 -1
  512. package/dist/components/lists-and-tables/cells/cell/cell.js +2 -1
  513. package/dist/components/lists-and-tables/cells/cell/cell.js.map +1 -1
  514. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts +2 -0
  515. package/dist/components/lists-and-tables/cells/description-cell/description-cell.d.ts.map +1 -1
  516. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js +2 -1
  517. package/dist/components/lists-and-tables/cells/description-cell/description-cell.js.map +1 -1
  518. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.d.ts.map +1 -1
  519. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js +3 -2
  520. package/dist/components/lists-and-tables/cells/description-cell/description-cell.styles.js.map +1 -1
  521. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts +2 -0
  522. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.d.ts.map +1 -1
  523. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js +2 -1
  524. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.js.map +1 -1
  525. package/dist/components/lists-and-tables/cells/icon-cell/icon-cell.styles.js +6 -6
  526. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts +46 -0
  527. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.d.ts.map +1 -0
  528. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts +5 -0
  529. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.d.ts.map +1 -0
  530. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js +4 -0
  531. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.i18n.js.map +1 -0
  532. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.js → reorder-handle-cell/reorder-handle-cell.js} +24 -24
  533. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.js.map +1 -0
  534. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts +2 -0
  535. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.d.ts.map +1 -0
  536. package/dist/components/lists-and-tables/cells/{drag-handle-cell/drag-handle-cell.styles.js → reorder-handle-cell/reorder-handle-cell.styles.js} +15 -14
  537. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.styles.js.map +1 -0
  538. 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
  539. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.d.ts.map +1 -0
  540. 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
  541. package/dist/components/lists-and-tables/cells/reorder-handle-cell/reorder-handle-cell.template.js.map +1 -0
  542. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts +2 -0
  543. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.d.ts.map +1 -1
  544. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js +2 -1
  545. package/dist/components/lists-and-tables/cells/spacer-cell/spacer-cell.js.map +1 -1
  546. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts +2 -0
  547. package/dist/components/lists-and-tables/cells/step-cell/step-cell.d.ts.map +1 -1
  548. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js +2 -1
  549. package/dist/components/lists-and-tables/cells/step-cell/step-cell.js.map +1 -1
  550. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
  551. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +4 -1
  552. package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
  553. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts +7 -3
  554. package/dist/components/lists-and-tables/cells/text-cell/text-cell.d.ts.map +1 -1
  555. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js +7 -4
  556. package/dist/components/lists-and-tables/cells/text-cell/text-cell.js.map +1 -1
  557. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.d.ts.map +1 -1
  558. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js +14 -11
  559. package/dist/components/lists-and-tables/cells/text-cell/text-cell.styles.js.map +1 -1
  560. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts +7 -5
  561. package/dist/components/lists-and-tables/cells/title-cell/title-cell.d.ts.map +1 -1
  562. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js +4 -3
  563. package/dist/components/lists-and-tables/cells/title-cell/title-cell.js.map +1 -1
  564. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.d.ts.map +1 -1
  565. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js +19 -16
  566. package/dist/components/lists-and-tables/cells/title-cell/title-cell.styles.js.map +1 -1
  567. package/dist/components/lists-and-tables/list/list.d.ts +3 -2
  568. package/dist/components/lists-and-tables/list/list.d.ts.map +1 -1
  569. package/dist/components/lists-and-tables/list/list.js +15 -21
  570. package/dist/components/lists-and-tables/list/list.js.map +1 -1
  571. package/dist/components/lists-and-tables/list/list.styles.d.ts.map +1 -1
  572. package/dist/components/lists-and-tables/list/list.styles.js +40 -5
  573. package/dist/components/lists-and-tables/list/list.styles.js.map +1 -1
  574. package/dist/components/lists-and-tables/list-item/list-item.d.ts +31 -15
  575. package/dist/components/lists-and-tables/list-item/list-item.d.ts.map +1 -1
  576. package/dist/components/lists-and-tables/list-item/list-item.js +107 -154
  577. package/dist/components/lists-and-tables/list-item/list-item.js.map +1 -1
  578. package/dist/components/lists-and-tables/list-item/list-item.styles.d.ts.map +1 -1
  579. package/dist/components/lists-and-tables/list-item/list-item.styles.js +30 -23
  580. package/dist/components/lists-and-tables/list-item/list-item.styles.js.map +1 -1
  581. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.d.ts.map +1 -1
  582. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js +11 -9
  583. package/dist/components/lists-and-tables/list-item-segment/list-item-segment.styles.js.map +1 -1
  584. package/dist/components/lists-and-tables/table/table.d.ts +4 -4
  585. package/dist/components/lists-and-tables/table/table.js +5 -5
  586. package/dist/components/lists-and-tables/table/table.js.map +1 -1
  587. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.d.ts.map +1 -1
  588. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js +8 -3
  589. package/dist/components/navigation/breadcrumbs/breadcrumbs.styles.js.map +1 -1
  590. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts +6 -6
  591. package/dist/components/navigation/document-tab-bar/document-tab-bar.d.ts.map +1 -1
  592. package/dist/components/navigation/document-tab-bar/document-tab-bar.js +16 -24
  593. package/dist/components/navigation/document-tab-bar/document-tab-bar.js.map +1 -1
  594. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
  595. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +18 -4
  596. package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
  597. package/dist/components/navigation/link/link.styles.d.ts.map +1 -1
  598. package/dist/components/navigation/link/link.styles.js +6 -3
  599. package/dist/components/navigation/link/link.styles.js.map +1 -1
  600. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.d.ts.map +1 -1
  601. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +1 -0
  602. package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js.map +1 -1
  603. package/dist/components/navigation/pagination/pagination.styles.d.ts.map +1 -1
  604. package/dist/components/navigation/pagination/pagination.styles.js +7 -0
  605. package/dist/components/navigation/pagination/pagination.styles.js.map +1 -1
  606. package/dist/components/navigation/skip-link/skip-link.styles.d.ts.map +1 -1
  607. package/dist/components/navigation/skip-link/skip-link.styles.js +1 -0
  608. package/dist/components/navigation/skip-link/skip-link.styles.js.map +1 -1
  609. package/dist/components/navigation/tab-bar/tab-bar.d.ts +2 -2
  610. package/dist/components/navigation/tab-bar/tab-bar.d.ts.map +1 -1
  611. package/dist/components/navigation/tab-bar/tab-bar.js +4 -4
  612. package/dist/components/navigation/tab-bar/tab-bar.js.map +1 -1
  613. package/dist/components/navigation/tab-bar/tab-bar.styles.d.ts.map +1 -1
  614. package/dist/components/navigation/tab-bar/tab-bar.styles.js +6 -0
  615. package/dist/components/navigation/tab-bar/tab-bar.styles.js.map +1 -1
  616. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js +1 -1
  617. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.menu-sheet.js.map +1 -1
  618. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.d.ts.map +1 -1
  619. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js +2 -0
  620. package/dist/components/navigation/top-navigation-bar/top-navigation-bar.styles.js.map +1 -1
  621. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts +1 -0
  622. package/dist/components/navigation/top-title-bar/top-title-bar.d.ts.map +1 -1
  623. package/dist/components/navigation/top-title-bar/top-title-bar.js +12 -0
  624. package/dist/components/navigation/top-title-bar/top-title-bar.js.map +1 -1
  625. package/dist/components/navigation/top-title-bar/top-title-bar.styles.d.ts.map +1 -1
  626. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js +2 -0
  627. package/dist/components/navigation/top-title-bar/top-title-bar.styles.js.map +1 -1
  628. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +4 -6
  629. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
  630. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +4 -6
  631. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
  632. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
  633. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +3 -2
  634. package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
  635. package/dist/components/status-and-feedback/badge/badge.d.ts +3 -3
  636. package/dist/components/status-and-feedback/badge/badge.js +3 -3
  637. package/dist/components/status-and-feedback/badge/badge.styles.d.ts.map +1 -1
  638. package/dist/components/status-and-feedback/badge/badge.styles.js +7 -4
  639. package/dist/components/status-and-feedback/badge/badge.styles.js.map +1 -1
  640. package/dist/components/status-and-feedback/banner/banner.d.ts +1 -1
  641. package/dist/components/status-and-feedback/banner/banner.js +1 -1
  642. package/dist/components/status-and-feedback/banner/banner.styles.d.ts.map +1 -1
  643. package/dist/components/status-and-feedback/banner/banner.styles.js +8 -2
  644. package/dist/components/status-and-feedback/banner/banner.styles.js.map +1 -1
  645. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.d.ts +1 -1
  646. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.js +1 -1
  647. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.d.ts.map +1 -1
  648. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +3 -0
  649. package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js.map +1 -1
  650. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts +2 -2
  651. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.d.ts.map +1 -1
  652. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js +5 -7
  653. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.js.map +1 -1
  654. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.d.ts.map +1 -1
  655. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js +3 -0
  656. package/dist/components/status-and-feedback/just-in-time-education/just-in-time-education.styles.js.map +1 -1
  657. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.d.ts +1 -1
  658. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.js +1 -1
  659. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.d.ts.map +1 -1
  660. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js +3 -2
  661. package/dist/components/status-and-feedback/modal-dialog/modal-dialog.styles.js.map +1 -1
  662. package/dist/components/status-and-feedback/notification/notification.styles.d.ts.map +1 -1
  663. package/dist/components/status-and-feedback/notification/notification.styles.js +3 -0
  664. package/dist/components/status-and-feedback/notification/notification.styles.js.map +1 -1
  665. package/dist/components/status-and-feedback/progress-bar/progress-bar.js +1 -1
  666. package/dist/components/status-and-feedback/progress-bar/progress-bar.js.map +1 -1
  667. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.d.ts.map +1 -1
  668. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +3 -1
  669. package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js.map +1 -1
  670. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.d.ts.map +1 -1
  671. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +2 -0
  672. package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js.map +1 -1
  673. package/dist/components/status-and-feedback/status-bar/status-bar.styles.d.ts.map +1 -1
  674. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js +1 -0
  675. package/dist/components/status-and-feedback/status-bar/status-bar.styles.js.map +1 -1
  676. package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
  677. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +8 -1
  678. package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
  679. package/dist/css/form-section.css +2 -0
  680. package/dist/css/global-open-font.css +1 -0
  681. package/dist/css/global.css +1 -0
  682. package/dist/css/rich-text.css +14 -38
  683. package/dist/css/title.css +80 -0
  684. package/dist/css/variables.css +43 -27
  685. package/dist/nldd.min.js +1803 -1280
  686. package/dist/translations/en-US.d.ts.map +1 -1
  687. package/dist/translations/en-US.js +4 -1
  688. package/dist/translations/en-US.js.map +1 -1
  689. package/dist/translations/fy.d.ts.map +1 -1
  690. package/dist/translations/fy.js +4 -1
  691. package/dist/translations/fy.js.map +1 -1
  692. package/dist/translations/nl.generated.d.ts +4 -1
  693. package/dist/translations/nl.generated.d.ts.map +1 -1
  694. package/dist/translations/nl.generated.js +4 -2
  695. package/dist/translations/nl.generated.js.map +1 -1
  696. package/dist/translations/pap-AW.d.ts.map +1 -1
  697. package/dist/translations/pap-AW.js +4 -1
  698. package/dist/translations/pap-AW.js.map +1 -1
  699. package/dist/translations/pap-CW.d.ts.map +1 -1
  700. package/dist/translations/pap-CW.js +4 -1
  701. package/dist/translations/pap-CW.js.map +1 -1
  702. package/dist/types/react.d.ts +88 -76
  703. package/dist/types/vue.d.ts +123 -104
  704. package/dist/utilities/autoloader.generated.js +1 -1
  705. package/dist/utilities/autoloader.generated.js.map +1 -1
  706. package/dist/utilities/dev-checks.d.ts +5 -0
  707. package/dist/utilities/dev-checks.d.ts.map +1 -1
  708. package/dist/utilities/dev-checks.js +14 -0
  709. package/dist/utilities/dev-checks.js.map +1 -1
  710. package/dist/utilities/dev-rules.generated.d.ts.map +1 -1
  711. package/dist/utilities/dev-rules.generated.js +162 -62
  712. package/dist/utilities/dev-rules.generated.js.map +1 -1
  713. package/dist/utilities/form-associated-mixin.d.ts +10 -0
  714. package/dist/utilities/form-associated-mixin.d.ts.map +1 -1
  715. package/dist/utilities/form-associated-mixin.js +17 -0
  716. package/dist/utilities/form-associated-mixin.js.map +1 -1
  717. package/dist/utilities/page-section-mixin.d.ts +2 -2
  718. package/dist/utilities/page-section-mixin.d.ts.map +1 -1
  719. package/dist/utilities/page-section-mixin.js +10 -6
  720. package/dist/utilities/page-section-mixin.js.map +1 -1
  721. package/dist/utilities/reorder-handle-mixin.d.ts +21 -0
  722. package/dist/utilities/reorder-handle-mixin.d.ts.map +1 -0
  723. package/dist/utilities/reorder-handle-mixin.js +34 -0
  724. package/dist/utilities/reorder-handle-mixin.js.map +1 -0
  725. package/dist/utilities/translations.d.ts.map +1 -1
  726. package/dist/utilities/translations.js +9 -0
  727. package/dist/utilities/translations.js.map +1 -1
  728. package/lint/css.js +224 -0
  729. package/lint/data.generated.json +1 -1
  730. package/lint/engine.js +5 -2
  731. package/lint/fix.js +11 -0
  732. package/lint/frontends.js +67 -42
  733. package/lint/linter.js +193 -8
  734. package/lint/main.js +20 -7
  735. package/lint/project.js +2 -2
  736. package/lint/rule-data.js +20 -0
  737. package/lint/rule.schema.json +1 -0
  738. package/package.json +6 -6
  739. package/dist/cdn/chunks/blockquote-BoOqbGdm.js +0 -189
  740. package/dist/cdn/chunks/drag-handle-cell.i18n-CKUrbm2q.js +0 -3
  741. package/dist/cdn/chunks/nl.generated-D6T41jG3.js +0 -112
  742. package/dist/cdn/chunks/rich-text-CQ2uwMSp.js +0 -47
  743. package/dist/cdn/chunks/shadow-resets-6SToDsPu.js +0 -12
  744. package/dist/cdn/chunks/translations-wxBSz213.js +0 -8
  745. package/dist/cdn/chunks/with-translations-XX14GKFh.js +0 -16
  746. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts +0 -44
  747. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.d.ts.map +0 -1
  748. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts +0 -5
  749. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.d.ts.map +0 -1
  750. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js +0 -4
  751. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.i18n.js.map +0 -1
  752. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.js.map +0 -1
  753. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts +0 -2
  754. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.d.ts.map +0 -1
  755. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.styles.js.map +0 -1
  756. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.d.ts.map +0 -1
  757. package/dist/components/lists-and-tables/cells/drag-handle-cell/drag-handle-cell.template.js.map +0 -1
@@ -14,6 +14,12 @@
14
14
  * Any other wrapper becomes a single grid item, and the paragraphs inside it
15
15
  * lose their spacing.
16
16
  *
17
+ * The content is HTML made of block elements, so whoever produces it, a
18
+ * server, a CMS or a markdown renderer, wraps text in a `p`. Bare text or an
19
+ * inline element such as `strong` or `a` as a direct child lands in a column
20
+ * of 0px, one word per line. Plain text, where a component has no attribute
21
+ * for it, goes in nldd-text.
22
+ *
17
23
  * ## Headings
18
24
  * The headings keep one size on every width, the one they have on a phone. A
19
25
  * heading in running text sits in a column as wide as a line of reading, on
@@ -48,12 +54,6 @@
48
54
  *
49
55
  * @element nldd-rich-text
50
56
  *
51
- * @attr {string} color - 'content' (the default) takes the system's own content
52
- * colors, each element its own. 'inherit' lets all text follow the color of
53
- * the surface instead (for colored areas such as the filled categories).
54
- * Links stay underlined as an affordance; secondary text (figcaption) gets
55
- * the same color at a lowered opacity. Known v1 gaps: inline code, mark,
56
- * tables and hr keep their own surfaces.
57
57
  * @attr {string} spacing - Spacing between elements: 'flat' | 'tight' | 'snug' (default) | 'loose'
58
58
  * @attr {boolean} centered - Centers the main column inside the container; without it, content is left-aligned
59
59
  * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
@@ -73,7 +73,6 @@ import { LitElement } from 'lit';
73
73
  import type { NLDDRichTextTranslations } from './rich-text.i18n.js';
74
74
  type Spacing = 'flat' | 'tight' | 'snug' | 'loose';
75
75
  export declare class NLDDRichText extends LitElement {
76
- color: 'content' | 'inherit';
77
76
  spacing: Spacing;
78
77
  centered: boolean;
79
78
  translations: Partial<NLDDRichTextTranslations>;
@@ -86,6 +85,9 @@ export declare class NLDDRichText extends LitElement {
86
85
  disconnectedCallback(): void;
87
86
  /** The labels this component set itself follow a language switch. */
88
87
  updated(): void;
88
+ /** Dev only, for nldd lint: bare text or an inline element as a direct
89
+ * child, also inside the wrapper div that passes its children through. */
90
+ private _syncInlineContent;
89
91
  private _syncTables;
90
92
  }
91
93
  declare global {
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/rich-text/rich-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAGpE,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAInD,qBACa,YAAa,SAAQ,UAAU;IAE3C,KAAK,EAAE,SAAS,GAAG,SAAS,CAAa;IAGzC,OAAO,EAAE,OAAO,CAAU;IAG1B,QAAQ,UAAS;IAGjB,YAAY,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAM;IAGrD,OAAO,UAAS;IAET,EAAE,CAAC,GAAG,EAAE,MAAM,wBAAwB,GAAG,MAAM;IAItD,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEhC,gBAAgB;IAIhB,iBAAiB,IAAI,IAAI;IAezB,oBAAoB,IAAI,IAAI;IAQrC,qEAAqE;IAC5D,OAAO,IAAI,IAAI;IAMxB,OAAO,CAAC,WAAW;CA+BnB;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
1
+ {"version":3,"file":"rich-text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/rich-text/rich-text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAIpE,KAAK,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAoBnD,qBACa,YAAa,SAAQ,UAAU;IAG3C,OAAO,EAAE,OAAO,CAAU;IAG1B,QAAQ,UAAS;IAGjB,YAAY,EAAE,OAAO,CAAC,wBAAwB,CAAC,CAAM;IAGrD,OAAO,UAAS;IAET,EAAE,CAAC,GAAG,EAAE,MAAM,wBAAwB,GAAG,MAAM;IAItD,OAAO,CAAC,iBAAiB,CAAC,CAAmB;IAC7C,OAAO,CAAC,eAAe,CAAC,CAAiB;IAEhC,gBAAgB;IAIhB,iBAAiB,IAAI,IAAI;IAqBzB,oBAAoB,IAAI,IAAI;IAQrC,qEAAqE;IAC5D,OAAO,IAAI,IAAI;IAMxB;+EAC2E;IAC3E,OAAO,CAAC,kBAAkB;IAM1B,OAAO,CAAC,WAAW;CA+BnB;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,gBAAgB,EAAE,YAAY,CAAC;KAC/B;CACD"}
@@ -20,6 +20,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
20
20
  * Any other wrapper becomes a single grid item, and the paragraphs inside it
21
21
  * lose their spacing.
22
22
  *
23
+ * The content is HTML made of block elements, so whoever produces it, a
24
+ * server, a CMS or a markdown renderer, wraps text in a `p`. Bare text or an
25
+ * inline element such as `strong` or `a` as a direct child lands in a column
26
+ * of 0px, one word per line. Plain text, where a component has no attribute
27
+ * for it, goes in nldd-text.
28
+ *
23
29
  * ## Headings
24
30
  * The headings keep one size on every width, the one they have on a phone. A
25
31
  * heading in running text sits in a column as wide as a line of reading, on
@@ -54,12 +60,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
54
60
  *
55
61
  * @element nldd-rich-text
56
62
  *
57
- * @attr {string} color - 'content' (the default) takes the system's own content
58
- * colors, each element its own. 'inherit' lets all text follow the color of
59
- * the surface instead (for colored areas such as the filled categories).
60
- * Links stay underlined as an affordance; secondary text (figcaption) gets
61
- * the same color at a lowered opacity. Known v1 gaps: inline code, mark,
62
- * tables and hr keep their own surfaces.
63
63
  * @attr {string} spacing - Spacing between elements: 'flat' | 'tight' | 'snug' (default) | 'loose'
64
64
  * @attr {boolean} centered - Centers the main column inside the container; without it, content is left-aligned
65
65
  * @attr {object} translations - Override translation keys; unset keys fall back to Dutch
@@ -81,11 +81,27 @@ import { customElement } from '../../../utilities/custom-element.js';
81
81
  import { reflectNonDefault } from '../../../utilities/reflect-non-default.js';
82
82
  import { nlddRichTextTranslations } from './rich-text.i18n.js';
83
83
  import { translate } from '../../../utilities/translations.js';
84
+ import { setState } from '../../../utilities/element-state.js';
84
85
  const MANAGED_LABEL_ATTR = 'data-nldd-managed-label';
86
+ /** Phrasing elements: as a direct child each becomes a grid item of its own. */
87
+ const INLINE = new Set([
88
+ 'A', 'ABBR', 'B', 'BDI', 'BDO', 'BR', 'CITE', 'CODE', 'DATA', 'DEL', 'DFN', 'EM',
89
+ 'I', 'INS', 'KBD', 'LABEL', 'MARK', 'Q', 'RUBY', 'S', 'SAMP', 'SMALL', 'SPAN',
90
+ 'STRONG', 'SUB', 'SUP', 'TIME', 'U', 'VAR', 'WBR', 'NLDD-ICON',
91
+ ]);
92
+ /** A non-blank text node or an inline element among these nodes. */
93
+ function hasInlineContent(nodes) {
94
+ for (const node of nodes) {
95
+ if (node.nodeType === Node.TEXT_NODE && node.textContent.trim())
96
+ return true;
97
+ if (node.nodeType === Node.ELEMENT_NODE && INLINE.has(node.tagName))
98
+ return true;
99
+ }
100
+ return false;
101
+ }
85
102
  let NLDDRichText = class NLDDRichText extends LitElement {
86
103
  constructor() {
87
104
  super(...arguments);
88
- this.color = 'content';
89
105
  this.spacing = 'snug';
90
106
  this.centered = false;
91
107
  this.translations = {};
@@ -107,9 +123,16 @@ let NLDDRichText = class NLDDRichText extends LitElement {
107
123
  * tables). Both trigger a re-evaluation of every table's overflow. */
108
124
  this._resizeObserver = new ResizeObserver(() => this._syncTables());
109
125
  this._resizeObserver.observe(this);
110
- this._mutationObserver = new MutationObserver(() => this._syncTables());
111
- this._mutationObserver.observe(this, { childList: true, subtree: true });
126
+ this._mutationObserver = new MutationObserver((records) => {
127
+ if (records.some(r => r.type === 'childList'))
128
+ this._syncTables();
129
+ this._syncInlineContent();
130
+ });
131
+ // Text edits matter only to the dev check on bare text; in production they
132
+ // would wake the observer on every keystroke in an editable child for nothing.
133
+ this._mutationObserver.observe(this, { childList: true, subtree: true, characterData: !!import.meta.env?.DEV });
112
134
  this._syncTables();
135
+ this._syncInlineContent();
113
136
  }
114
137
  disconnectedCallback() {
115
138
  super.disconnectedCallback();
@@ -124,6 +147,14 @@ let NLDDRichText = class NLDDRichText extends LitElement {
124
147
  table.setAttribute('aria-label', this._t('components.rich-text.table-scroll-label'));
125
148
  }
126
149
  }
150
+ /** Dev only, for nldd lint: bare text or an inline element as a direct
151
+ * child, also inside the wrapper div that passes its children through. */
152
+ _syncInlineContent() {
153
+ if (!import.meta.env?.DEV)
154
+ return;
155
+ const wrapper = this.querySelector(':scope > div:only-child:not([class], [style], [role], [data-rich-text-width])');
156
+ setState(this, 'inline-content', hasInlineContent(this.childNodes) || (!!wrapper && hasInlineContent(wrapper.childNodes)));
157
+ }
127
158
  _syncTables() {
128
159
  for (const table of this.querySelectorAll('table')) {
129
160
  if (table.scrollWidth > table.clientWidth) {
@@ -155,9 +186,6 @@ let NLDDRichText = class NLDDRichText extends LitElement {
155
186
  }
156
187
  }
157
188
  };
158
- __decorate([
159
- property({ reflect: true, converter: reflectNonDefault('content') })
160
- ], NLDDRichText.prototype, "color", void 0);
161
189
  __decorate([
162
190
  property({ reflect: true, converter: reflectNonDefault('snug') })
163
191
  ], NLDDRichText.prototype, "spacing", void 0);
@@ -1 +1 @@
1
- {"version":3,"file":"rich-text.js","sourceRoot":"","sources":["../../../../src/components/content/rich-text/rich-text.ts"],"names":[],"mappings":";;;;;;AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2CAA2C,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAI/D,MAAM,kBAAkB,GAAG,yBAAyB,CAAC;AAG9C,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,UAAU;IAArC;;QAEN,UAAK,GAA0B,SAAS,CAAC;QAGzC,YAAO,GAAY,MAAM,CAAC;QAG1B,aAAQ,GAAG,KAAK,CAAC;QAGjB,iBAAY,GAAsC,EAAE,CAAC;QAGrD,YAAO,GAAG,KAAK,CAAC;IA0EjB,CAAC;IAxEO,EAAE,CAAC,GAAmC;QAC5C,OAAO,SAAS,CAAC,IAAI,CAAC,YAAY,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAC;IACpE,CAAC;IAKQ,gBAAgB;QACxB,OAAO,IAAI,CAAC;IACb,CAAC;IAEQ,iBAAiB;QACzB,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B;;;;;8EAKsE;QACtE,IAAI,CAAC,eAAe,GAAG,IAAI,cAAc,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QACpE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC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C,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;6CAC3B;AAZJ,YAAY;IADxB,aAAa,CAAC,gBAAgB,CAAC;GACnB,YAAY,CAoGxB"}
@@ -1 +1 @@
1
- {"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,yBA+NrB,CAAC"}
1
+ {"version":3,"file":"tag.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,yBAgOrB,CAAC"}
@@ -190,6 +190,7 @@ export const tagStyles = css `
190
190
  padding: 0 var(--_tag-inline-padding);
191
191
  gap: var(--_tag-gap);
192
192
  align-items: center;
193
+ --context-content-color: var(--_tag-content-color);
193
194
  color: var(--_tag-content-color);
194
195
  font: var(--_tag-font);
195
196
  white-space: nowrap;
@@ -1 +1 @@
1
- {"version":3,"file":"tag.styles.js","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;IAqBxB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MrB,CAAC"}
1
+ {"version":3,"file":"tag.styles.js","sourceRoot":"","sources":["../../../../src/components/content/tag/tag.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAE7E,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;IAqBxB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2MrB,CAAC"}
@@ -38,7 +38,7 @@
38
38
  * @attr {string} lg-custom-size - The same, at lg
39
39
  * @attr {string} weight - Font weight: 'regular' | 'medium' | 'bold' (default: 'regular'). With 'bold' a slotted `<strong>` no longer stands out: there is nothing bolder in the scale.
40
40
  * @attr {string} line-height - Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug')
41
- * @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit'. 'content' and 'secondary' follow the surrounding content channel; 'inherit' takes the color it inherits, for text on a painted surface.
41
+ * @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too.
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.
@@ -48,7 +48,7 @@ import { LitElement, type PropertyValues } from 'lit';
48
48
  type Size = 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'display-6' | 'display-5' | 'display-4' | 'display-3' | 'display-2' | 'display-1';
49
49
  type Weight = 'regular' | 'medium' | 'bold';
50
50
  type LineHeight = 'flat' | 'tight' | 'snug' | 'loose';
51
- type Color = 'content' | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit';
51
+ type Color = 'content' | 'secondary' | 'accent' | 'success' | 'warning' | 'critical';
52
52
  type HorizontalAlignment = 'left' | 'center' | 'right';
53
53
  export declare class NLDDText extends LitElement {
54
54
  static styles: import("lit").CSSResult;
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAEH,OAAO,EAAE,UAAU,EAAE,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,UAA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pC,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"}
@@ -38,7 +38,7 @@
38
38
  * @attr {string} lg-custom-size - The same, at lg
39
39
  * @attr {string} weight - Font weight: 'regular' | 'medium' | 'bold' (default: 'regular'). With 'bold' a slotted `<strong>` no longer stands out: there is nothing bolder in the scale.
40
40
  * @attr {string} line-height - Line height: 'flat' | 'tight' | 'snug' | 'loose' (default: 'snug')
41
- * @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical' | 'inherit'. 'content' and 'secondary' follow the surrounding content channel; 'inherit' takes the color it inherits, for text on a painted surface.
41
+ * @attr {string} color - Text color: 'content' (the default) | 'secondary' | 'accent' | 'success' | 'warning' | 'critical'. Each follows the surface the text sits on, through the `--context-content-*` it passes on; an area of your own that sets `color` sets `--context-content-color` too.
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.
@@ -1 +1 @@
1
- {"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAoDrD,eAAO,MAAM,UAAU,WA0TtB,CAAC"}
1
+ {"version":3,"file":"text.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,SAAS,EAAE,MAAM,KAAK,CAAC;AAoDrD,eAAO,MAAM,UAAU,WA2StB,CAAC"}
@@ -64,14 +64,13 @@ export const textStyles = css `
64
64
  --_text-sm-custom-font: var(--primitives-font-weight-display-bold) max(var(--_text-sm-custom-size), var(--primitives-font-size-700)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
65
65
  --_text-md-custom-font: var(--primitives-font-weight-display-bold) max(var(--_text-md-custom-size), var(--primitives-font-size-800)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
66
66
  --_text-lg-custom-font: var(--primitives-font-weight-display-bold) max(var(--_text-lg-custom-size), var(--primitives-font-size-1000)) / var(--primitives-line-height-flat) var(--primitives-font-family-display);
67
- --_text-color: var(--context-content-color, var(--semantics-content-color));
67
+ --_text-color: var(--context-content-color);
68
68
  --_text-align: left;
69
- --_text-link-color: var(--semantics-links-color);
70
- --_text-link-is-hovered-color: var(--semantics-links-is-hovered-color);
71
- --_text-link-is-active-color: var(--semantics-links-is-active-color);
69
+ --_text-link-color: var(--context-link-color);
70
+ --_text-link-is-hovered-color: var(--context-link-is-hovered-color);
71
+ --_text-link-is-active-color: var(--context-link-is-active-color);
72
72
  --_text-link-underline-offset: var(--primitives-space-2);
73
73
  --_text-link-corner-radius: var(--primitives-corner-radius-xxs);
74
- --_text-link-is-hovered-inherit-thickness: var(--primitives-border-width-regular);
75
74
  --_text-mention-color: var(--semantics-mentions-content-color);
76
75
  --_text-mention-icon-size: 0.95em;
77
76
  --_text-mention-inline-padding: 0.3em;
@@ -186,6 +185,7 @@ export const textStyles = css `
186
185
 
187
186
  ::slotted(a) {
188
187
  border-radius: var(--_text-link-corner-radius);
188
+ --context-content-color: var(--_text-link-color);
189
189
  color: var(--_text-link-color);
190
190
  text-decoration: underline;
191
191
  text-underline-offset: var(--_text-link-underline-offset);
@@ -193,10 +193,12 @@ export const textStyles = css `
193
193
  }
194
194
 
195
195
  ::slotted(a:hover) {
196
+ --context-content-color: var(--_text-link-is-hovered-color);
196
197
  color: var(--_text-link-is-hovered-color);
197
198
  }
198
199
 
199
200
  ::slotted(a:active) {
201
+ --context-content-color: var(--_text-link-is-active-color);
200
202
  color: var(--_text-link-is-active-color);
201
203
  }
202
204
 
@@ -210,21 +212,8 @@ export const textStyles = css `
210
212
  outline: none;
211
213
  }
212
214
 
213
- :host([color="inherit"]) ::slotted(a) {
214
- color: currentColor;
215
- text-decoration-color: currentColor;
216
- }
217
-
218
- :host([color="inherit"]) ::slotted(a:hover) {
219
- color: currentColor;
220
- text-decoration-thickness: var(--_text-link-is-hovered-inherit-thickness);
221
- }
222
-
223
- :host([color="inherit"]) ::slotted(a:active) {
224
- color: currentColor;
225
- }
226
-
227
215
  ::slotted([data-mention]) {
216
+ --context-content-color: var(--_text-mention-color);
228
217
  color: var(--_text-mention-color);
229
218
  font-weight: var(--primitives-font-weight-body-bold);
230
219
  white-space: nowrap;
@@ -252,6 +241,7 @@ export const textStyles = css `
252
241
  border-radius: var(--_text-mention-corner-radius);
253
242
  box-shadow: inset 0 0 0 var(--_text-mention-border-width) var(--_text-mention-border-color);
254
243
  background-color: var(--_text-mention-background-color);
244
+ --context-content-color: var(--_text-mention-color);
255
245
  color: var(--_text-mention-color);
256
246
  text-decoration: none;
257
247
  cursor: default;
@@ -261,15 +251,13 @@ export const textStyles = css `
261
251
 
262
252
  ::slotted(a[data-mention]:hover) {
263
253
  background-color: var(--_text-mention-is-hovered-background-color);
254
+ --context-content-color: var(--_text-mention-color);
264
255
  color: var(--_text-mention-color);
265
256
  }
266
257
 
267
258
  ::slotted(a[data-mention]:active) {
268
259
  background-color: var(--_text-mention-is-active-background-color);
269
- color: var(--_text-mention-color);
270
- }
271
-
272
- :host([color="inherit"]) ::slotted(a[data-mention]) {
260
+ --context-content-color: var(--_text-mention-color);
273
261
  color: var(--_text-mention-color);
274
262
  }
275
263
 
@@ -304,6 +292,7 @@ export const textStyles = css `
304
292
  border-radius: var(--_text-mark-corner-radius);
305
293
  background-color: var(--_text-mark-background-color);
306
294
  padding: var(--_text-mark-padding);
295
+ --context-content-color: var(--_text-mark-color);
307
296
  color: var(--_text-mark-color);
308
297
  }
309
298
 
@@ -326,27 +315,23 @@ export const textStyles = css `
326
315
  /* # Color */
327
316
 
328
317
  :host([color="secondary"]) {
329
- --_text-color: var(--context-content-secondary-color, var(--semantics-content-secondary-color));
318
+ --_text-color: var(--context-content-secondary-color);
330
319
  }
331
320
 
332
321
  :host([color="accent"]) {
333
- --_text-color: var(--semantics-content-accent-color);
322
+ --_text-color: var(--context-content-accent-color);
334
323
  }
335
324
 
336
325
  :host([color="success"]) {
337
- --_text-color: var(--semantics-content-success-color);
326
+ --_text-color: var(--context-content-success-color);
338
327
  }
339
328
 
340
329
  :host([color="warning"]) {
341
- --_text-color: var(--semantics-content-warning-color);
330
+ --_text-color: var(--context-content-warning-color);
342
331
  }
343
332
 
344
333
  :host([color="critical"]) {
345
- --_text-color: var(--semantics-content-critical-color);
346
- }
347
-
348
- :host([color="inherit"]) {
349
- --_text-color: inherit;
334
+ --_text-color: var(--context-content-critical-color);
350
335
  }
351
336
 
352
337
 
@@ -1 +1 @@
1
- {"version":3,"file":"text.styles.js","sourceRoot":"","sources":["../../../../src/components/content/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,SAAS,E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;;;;;;;;;;;;;;;GAgF1B,SAAS,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,wBAAwB,CAAC,KAAK,EAAE,iCAAiC,CAAC,MAAM,EAAE,iCAAiC,CAAC,MAAM,EAAE,iCAAiC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;;;;GAIvO,MAAM,CAAC,8BAA8B,EAAE,GAAG,CAAA,eAAe,KAAK,GAAG,EAAE,GAAG,CAAA,eAAe,KAAK,GAAG,EAAE,6BAA6B,CAAC;GAC7H,MAAM,CAAC,8BAA8B,EAAE,GAAG,CAAA,eAAe,KAAK,qBAAqB,KAAK,GAAG,EAAE,GAAG,CAAA,eAAe,KAAK,qBAAqB,KAAK,GAAG,EAAE,6BAA6B,CAAC;GACjL,MAAM,CAAC,8BAA8B,EAAE,GAAG,CAAA,eAAe,KAAK,GAAG,EAAE,GAAG,CAAA,eAAe,KAAK,GAAG,EAAE,6BAA6B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqN/H,CAAC"}
@@ -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,36 +33,30 @@
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
- * @attr {string} color - 'content' (the default) takes the system's own content
28
- * colors. 'inherit' lets the title follow the text color of the surface
29
- * instead (for colored areas such as the filled categories); overline and
30
- * supporting-text get the same color at a lowered opacity.
31
40
  * @attr {string} text - Title text. Content in the default slot takes its place.
32
41
  * @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
33
42
  * @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.
43
+ * @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
44
  *
36
45
  * @slot overline - Overline that is more than text. Takes the place of the overline attribute.
37
46
  * @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
38
- * @accepts h1, h2, h3, h4, h5, h6, a
47
+ * @accepts h1, h2, h3, h4, h5, h6, a, strong, b, em, i, code, mark, q
39
48
  * @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
40
- * @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.
49
+ * @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.
41
50
  */
42
51
  import { LitElement, type PropertyValues } from 'lit';
43
- type Size = 1 | 2 | 3 | 4 | 5 | 6;
44
- type TitleColor = 'content' | 'inherit';
52
+ export type TitleSize = 'display-1' | 'display-2' | 'display-3' | 'display-4' | 'display-5' | 'display-6';
45
53
  type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
46
54
  export declare class NLDDTitle extends LitElement {
47
55
  static styles: import("lit").CSSResult;
48
- size: Size;
56
+ size?: TitleSize;
49
57
  smCustomSize: string;
50
58
  mdCustomSize: string;
51
59
  lgCustomSize: string;
52
- color: TitleColor;
53
60
  text: string;
54
61
  supportingText: string;
55
62
  overline: string;
@@ -60,6 +67,8 @@ export declare class NLDDTitle extends LitElement {
60
67
  _hasDefaultSlotted: boolean;
61
68
  /** @internal */
62
69
  _hasSupportingTextSlotted: boolean;
70
+ /** @internal The level of a heading in the default slot. */
71
+ _slottedLevel: HeadingLevel | null;
63
72
  /** @internal */
64
73
  _onSlotChange: (e: Event) => void;
65
74
  /** 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;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,GAAG,SAAS,GAAG,SAAS,CAAC;AACxC,KAAK,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AAE1C,qBACa,SAAU,SAAQ,UAAU;IACxC,OAAgB,MAAM,0BAAe;IAGrC,IAAI,EAAE,IAAI,CAAK;IAGf,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,YAAY,SAAM;IAGlB,KAAK,EAAE,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B,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,24 +39,20 @@ 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
- * @attr {string} color - 'content' (the default) takes the system's own content
34
- * colors. 'inherit' lets the title follow the text color of the surface
35
- * instead (for colored areas such as the filled categories); overline and
36
- * supporting-text get the same color at a lowered opacity.
37
46
  * @attr {string} text - Title text. Content in the default slot takes its place.
38
47
  * @attr {string} supporting-text - Text below the title. Content in the supporting-text slot takes its place.
39
48
  * @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.
49
+ * @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
50
  *
42
51
  * @slot overline - Overline that is more than text. Takes the place of the overline attribute.
43
52
  * @slot - Title that is more than text, such as a link. Takes the place of text, and brings its own h1–h6 for semantics.
44
- * @accepts h1, h2, h3, h4, h5, h6, a
53
+ * @accepts h1, h2, h3, h4, h5, h6, a, strong, b, em, i, code, mark, q
45
54
  * @slot supporting-text - Supporting text that is more than text. Takes the place of the supporting-text attribute.
46
- * @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.
55
+ * @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.
47
56
  */
48
57
  import { LitElement } from 'lit';
49
58
  import { property, state } from 'lit/decorators.js';
@@ -55,11 +64,9 @@ import { applyCustomFontSizes, checkCustomFontSizeFloor, DISPLAY_1_FONT_SIZE } f
55
64
  let NLDDTitle = class NLDDTitle extends LitElement {
56
65
  constructor() {
57
66
  super(...arguments);
58
- this.size = 3;
59
67
  this.smCustomSize = '';
60
68
  this.mdCustomSize = '';
61
69
  this.lgCustomSize = '';
62
- this.color = 'content';
63
70
  this.text = '';
64
71
  this.supportingText = '';
65
72
  this.overline = '';
@@ -70,6 +77,8 @@ let NLDDTitle = class NLDDTitle extends LitElement {
70
77
  this._hasDefaultSlotted = false;
71
78
  /** @internal */
72
79
  this._hasSupportingTextSlotted = false;
80
+ /** @internal The level of a heading in the default slot. */
81
+ this._slottedLevel = null;
73
82
  /** @internal */
74
83
  this._onSlotChange = (e) => {
75
84
  const slot = e.target;
@@ -80,14 +89,23 @@ let NLDDTitle = class NLDDTitle extends LitElement {
80
89
  this._hasOverlineSlotted = hasContent;
81
90
  else if (slot.name === 'supporting-text')
82
91
  this._hasSupportingTextSlotted = hasContent;
83
- else
92
+ else {
84
93
  this._hasDefaultSlotted = hasContent;
94
+ const heading = slot.assignedElements().find((el) => /^H[1-6]$/.test(el.tagName));
95
+ this._slottedLevel = heading ? Number(heading.tagName[1]) : null;
96
+ }
85
97
  };
86
98
  /** The valid custom size per breakpoint, worked out before the first paint. */
87
99
  this._customSizes = {};
88
100
  }
89
101
  willUpdate(changed) {
90
102
  super.willUpdate(changed);
103
+ // The level the styles size by: the attribute, or the slotted heading.
104
+ const level = this.headingLevel ?? this._slottedLevel;
105
+ if (level && level >= 1 && level <= 6)
106
+ this.setAttribute('data-level', String(level));
107
+ else
108
+ this.removeAttribute('data-level');
91
109
  if (!changed.has('smCustomSize') && !changed.has('mdCustomSize') && !changed.has('lgCustomSize'))
92
110
  return;
93
111
  this._customSizes = applyCustomFontSizes(this, 'title', { sm: this.smCustomSize, md: this.mdCustomSize, lg: this.lgCustomSize });
@@ -106,7 +124,7 @@ let NLDDTitle = class NLDDTitle extends LitElement {
106
124
  };
107
125
  NLDDTitle.styles = titleStyles;
108
126
  __decorate([
109
- property({ reflect: true, converter: reflectNonDefault(3) })
127
+ property({ reflect: true })
110
128
  ], NLDDTitle.prototype, "size", void 0);
111
129
  __decorate([
112
130
  property({ reflect: true, attribute: 'sm-custom-size', converter: reflectNonDefault('') })
@@ -117,9 +135,6 @@ __decorate([
117
135
  __decorate([
118
136
  property({ reflect: true, attribute: 'lg-custom-size', converter: reflectNonDefault('') })
119
137
  ], NLDDTitle.prototype, "lgCustomSize", void 0);
120
- __decorate([
121
- property({ reflect: true, converter: reflectNonDefault('content') })
122
- ], NLDDTitle.prototype, "color", void 0);
123
138
  __decorate([
124
139
  property({ reflect: true, converter: reflectNonDefault('') })
125
140
  ], NLDDTitle.prototype, "text", void 0);
@@ -141,6 +156,9 @@ __decorate([
141
156
  __decorate([
142
157
  state()
143
158
  ], NLDDTitle.prototype, "_hasSupportingTextSlotted", void 0);
159
+ __decorate([
160
+ state()
161
+ ], NLDDTitle.prototype, "_slottedLevel", void 0);
144
162
  NLDDTitle = __decorate([
145
163
  customElement('nldd-title')
146
164
  ], NLDDTitle);