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