@kerfjs/ui 5.0.0-beta.122 → 5.0.0-beta.124
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/README.md +28 -5
- package/ai/application-ui-diagnostic-ids-v1.json +25 -1
- package/ai/application-ui-profile-sync.cjs +16 -8
- package/ai/application-ui-profile.d.ts +2 -0
- package/ai/application-ui-profile.defaults.json +6 -2
- package/ai/application-ui-profile.mjs +16 -8
- package/ai/application-ui-profile.schema.json +133 -38
- package/ai/component-catalog.json +1501 -218
- package/ai/component-catalog.schema.json +19 -0
- package/ai/component-composition-rules.json +18 -2
- package/ai/component-composition.d.ts +13 -0
- package/ai/component-composition.json +684 -27
- package/ai/component-composition.schema.json +58 -0
- package/ai/component-props-overlay.json +952 -0
- package/ai/component-props-overlay.schema.json +68 -0
- package/ai/component-props.json +29624 -0
- package/ai/component-props.schema.json +401 -0
- package/ai/components/README.md +12 -5
- package/ai/components/application-tabs.md +2 -2
- package/ai/components/backdrop-image.md +2 -1
- package/ai/components/button.md +12 -6
- package/ai/components/checkbox-group.md +2 -0
- package/ai/components/checkbox.md +2 -0
- package/ai/components/chip.md +2 -0
- package/ai/components/choice-chips.md +5 -1
- package/ai/components/color-field.md +2 -0
- package/ai/components/color-picker.md +2 -0
- package/ai/components/color-swatches.md +2 -0
- package/ai/components/column-explorer.md +89 -0
- package/ai/components/column-track.md +3 -2
- package/ai/components/combobox.md +2 -0
- package/ai/components/content-item.md +7 -2
- package/ai/components/disclosure.md +2 -0
- package/ai/components/file-picker.md +5 -2
- package/ai/components/form.md +86 -0
- package/ai/components/foundation.md +1 -1
- package/ai/components/list-action-row.md +2 -0
- package/ai/components/list-detail-dialog.md +2 -0
- package/ai/components/list-header.md +2 -0
- package/ai/components/list-item.md +4 -0
- package/ai/components/list.md +6 -2
- package/ai/components/message-composer.md +3 -1
- package/ai/components/nav-stack.md +2 -0
- package/ai/components/paged-view.md +89 -0
- package/ai/components/pane.md +4 -1
- package/ai/components/popup-menu.md +5 -2
- package/ai/components/radio-group.md +2 -0
- package/ai/components/recipe-composer-form.md +2 -2
- package/ai/components/scroll-effect.md +84 -0
- package/ai/components/search-field.md +2 -0
- package/ai/components/segmented-control.md +2 -0
- package/ai/components/select.md +4 -0
- package/ai/components/sized-region.md +86 -0
- package/ai/components/slider.md +2 -0
- package/ai/components/split-button.md +3 -1
- package/ai/components/split-view.md +1 -1
- package/ai/components/state-banner.md +2 -0
- package/ai/components/summary-row.md +14 -8
- package/ai/components/surface-scaffold.md +5 -3
- package/ai/components/switch.md +2 -0
- package/ai/components/tab-bar.md +5 -2
- package/ai/components/tab-navigator.md +2 -0
- package/ai/components/tab-panel.md +84 -0
- package/ai/components/tabs.md +9 -6
- package/ai/components/tag-field.md +2 -0
- package/ai/components/text-field.md +2 -0
- package/ai/components/text.md +3 -0
- package/ai/components/toolbar-control-group.md +10 -3
- package/ai/components/toolbar-text.md +2 -0
- package/ai/components/toolbar.md +4 -3
- package/ai/components/tree-list.md +95 -0
- package/ai/components/wa-accordion-item.md +2 -0
- package/ai/components/wa-breadcrumb-item.md +2 -0
- package/ai/components/wa-button.md +2 -0
- package/ai/components/wa-carousel.md +2 -0
- package/ai/components/wa-checkbox.md +2 -0
- package/ai/components/wa-color-picker.md +2 -0
- package/ai/components/wa-comparison.md +2 -0
- package/ai/components/wa-copy-button.md +2 -0
- package/ai/components/wa-details.md +2 -0
- package/ai/components/wa-dialog.md +2 -0
- package/ai/components/wa-drawer.md +2 -0
- package/ai/components/wa-dropdown-item.md +2 -0
- package/ai/components/wa-input.md +2 -0
- package/ai/components/wa-known-date.md +2 -0
- package/ai/components/wa-number-input.md +2 -0
- package/ai/components/wa-otp-input.md +2 -0
- package/ai/components/wa-pagination.md +2 -0
- package/ai/components/wa-radio.md +2 -0
- package/ai/components/wa-rating.md +2 -0
- package/ai/components/wa-select.md +2 -0
- package/ai/components/wa-slider.md +2 -0
- package/ai/components/wa-switch.md +2 -0
- package/ai/components/wa-tab-panel.md +5 -5
- package/ai/components/wa-tab.md +2 -0
- package/ai/components/wa-tag-input.md +2 -0
- package/ai/components/wa-textarea.md +2 -0
- package/ai/components/wa-time-input.md +2 -0
- package/ai/components/wa-tree-item.md +12 -5
- package/ai/components/wa-tree.md +10 -5
- package/ai/components/wa-zoomable-frame.md +2 -0
- package/ai/components/workbench-dialog.md +2 -0
- package/ai/public-api-signatures-v1.md +1251 -132
- package/ai/skill.md +107 -40
- package/ai/view-document.schema.json +360 -0
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/analyzer/index.mjs +89 -1
- package/dist/anchor-name-BZ1rpxaw.d.ts +4 -0
- package/dist/backdrop-image.d.ts +6 -2
- package/dist/backdrop-image.js +2 -1
- package/dist/badge.js +1 -1
- package/dist/browser/backdrop-image.js +1 -0
- package/dist/browser/catalog.js +1 -1
- package/dist/browser/collapsible-panel.js +1 -0
- package/dist/browser/column-explorer.js +9 -0
- package/dist/browser/content-item.js +1 -0
- package/dist/browser/editor.js +45 -0
- package/dist/browser/form.js +3 -0
- package/dist/browser/list-detail-dialog.js +1 -0
- package/dist/browser/nav-stack.js +1 -0
- package/dist/browser/paged-view.js +3 -0
- package/dist/browser/scroll-effect.js +3 -0
- package/dist/browser/sized-region.js +3 -0
- package/dist/browser/split-view.js +1 -0
- package/dist/browser/tab-panel.js +3 -0
- package/dist/browser/toolbar-control-group.js +1 -0
- package/dist/browser/tree-list.js +7 -0
- package/dist/browser/workbench-dialog.js +1 -0
- package/dist/browser/workbench.js +1 -0
- package/dist/button.d.ts +54 -13
- package/dist/button.js +2 -1
- package/dist/catalog-resources.d.ts +3 -2
- package/dist/catalog.d.ts +3 -2
- package/dist/catalog.js +21 -17
- package/dist/catalog.js.map +1 -1
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip.js +1 -1
- package/dist/choice-chips.d.ts +21 -2
- package/dist/choice-chips.js +2 -1
- package/dist/{chunk-3WWX2O4G.js → chunk-2E7S5C4D.js} +5 -46
- package/dist/chunk-2E7S5C4D.js.map +1 -0
- package/dist/{chunk-QYMJHS4K.js → chunk-34FWYJX6.js} +9 -3
- package/dist/chunk-34FWYJX6.js.map +1 -0
- package/dist/{chunk-OUCHU7JB.js → chunk-3JOEJT2Z.js} +7 -7
- package/dist/{chunk-OUCHU7JB.js.map → chunk-3JOEJT2Z.js.map} +1 -1
- package/dist/chunk-3S3WXAZ5.js +207 -0
- package/dist/chunk-3S3WXAZ5.js.map +1 -0
- package/dist/{chunk-AN5IWMTM.js → chunk-3TBMGGTA.js} +6 -3
- package/dist/chunk-3TBMGGTA.js.map +1 -0
- package/dist/{chunk-3Z7N2NAZ.js → chunk-3XSY5LAB.js} +4 -4
- package/dist/{chunk-3Z7N2NAZ.js.map → chunk-3XSY5LAB.js.map} +1 -1
- package/dist/chunk-44AOBT2F.js +16 -0
- package/dist/chunk-44AOBT2F.js.map +1 -0
- package/dist/{chunk-7AK5I7U7.js → chunk-4IXG6XCT.js} +18 -3
- package/dist/chunk-4IXG6XCT.js.map +1 -0
- package/dist/chunk-4K7XXSOX.js +21 -0
- package/dist/chunk-4K7XXSOX.js.map +1 -0
- package/dist/{chunk-LZUUUHNH.js → chunk-4Z4QSTRF.js} +20 -3
- package/dist/chunk-4Z4QSTRF.js.map +1 -0
- package/dist/{chunk-QH5KOFNS.js → chunk-5KWXM5O7.js} +15 -3
- package/dist/chunk-5KWXM5O7.js.map +1 -0
- package/dist/{chunk-EYDXFOSH.js → chunk-5SFHBYEY.js} +2 -2
- package/dist/chunk-5SFHBYEY.js.map +1 -0
- package/dist/{chunk-HU5IHXCI.js → chunk-6BXPN5SC.js} +3 -3
- package/dist/{chunk-HU5IHXCI.js.map → chunk-6BXPN5SC.js.map} +1 -1
- package/dist/{chunk-6VVIW7VB.js → chunk-73LC3JAL.js} +13 -4
- package/dist/chunk-73LC3JAL.js.map +1 -0
- package/dist/{chunk-IO27YTL3.js → chunk-76VCWWUA.js} +2 -2
- package/dist/{chunk-IO27YTL3.js.map → chunk-76VCWWUA.js.map} +1 -1
- package/dist/{chunk-ETFP7HAR.js → chunk-7AUZG5EW.js} +13 -4
- package/dist/chunk-7AUZG5EW.js.map +1 -0
- package/dist/{chunk-3V4OCDTL.js → chunk-7DIWVGGA.js} +2 -14
- package/dist/chunk-7DIWVGGA.js.map +1 -0
- package/dist/chunk-7KN5OQVN.js +157 -0
- package/dist/chunk-7KN5OQVN.js.map +1 -0
- package/dist/chunk-7QQ3HE47.js +17 -0
- package/dist/chunk-7QQ3HE47.js.map +1 -0
- package/dist/{chunk-HJWFHJ3Z.js → chunk-ADMWT7FX.js} +28 -82
- package/dist/chunk-ADMWT7FX.js.map +1 -0
- package/dist/{chunk-LMHN2TJL.js → chunk-BCHK33XL.js} +2 -2
- package/dist/{chunk-LMHN2TJL.js.map → chunk-BCHK33XL.js.map} +1 -1
- package/dist/chunk-BCO673YW.js +123 -0
- package/dist/chunk-BCO673YW.js.map +1 -0
- package/dist/{chunk-OQP3PFKQ.js → chunk-BZXA5SSA.js} +90 -33
- package/dist/chunk-BZXA5SSA.js.map +1 -0
- package/dist/{chunk-LTBVP6VN.js → chunk-C4FBYP2D.js} +2 -2
- package/dist/{chunk-LTBVP6VN.js.map → chunk-C4FBYP2D.js.map} +1 -1
- package/dist/{chunk-AMIHGFLP.js → chunk-CCPWJDRW.js} +4 -2
- package/dist/chunk-CCPWJDRW.js.map +1 -0
- package/dist/{chunk-S4Y3YTAI.js → chunk-CJAKN2KZ.js} +2 -2
- package/dist/{chunk-S4Y3YTAI.js.map → chunk-CJAKN2KZ.js.map} +1 -1
- package/dist/chunk-CKPI4WIN.js +58 -0
- package/dist/chunk-CKPI4WIN.js.map +1 -0
- package/dist/{chunk-HJXVVFBT.js → chunk-CMG4OZPV.js} +13 -2
- package/dist/chunk-CMG4OZPV.js.map +1 -0
- package/dist/{chunk-KH4KEMSP.js → chunk-COQI4OMZ.js} +1 -1
- package/dist/chunk-COQI4OMZ.js.map +1 -0
- package/dist/{chunk-G3J7JDP6.js → chunk-CPTQABDQ.js} +10 -3
- package/dist/chunk-CPTQABDQ.js.map +1 -0
- package/dist/{chunk-TI2GV36S.js → chunk-CRHKWHTA.js} +4 -4
- package/dist/{chunk-TI2GV36S.js.map → chunk-CRHKWHTA.js.map} +1 -1
- package/dist/{chunk-3KFMLOTH.js → chunk-DBP3N6E5.js} +8 -5
- package/dist/chunk-DBP3N6E5.js.map +1 -0
- package/dist/chunk-DJ65XFVN.js +231 -0
- package/dist/chunk-DJ65XFVN.js.map +1 -0
- package/dist/chunk-DKPYHVIV.js +13 -0
- package/dist/chunk-DKPYHVIV.js.map +1 -0
- package/dist/{chunk-ITUQC4FW.js → chunk-DV6GE57V.js} +31 -3
- package/dist/chunk-DV6GE57V.js.map +1 -0
- package/dist/{chunk-S3ECMF23.js → chunk-E7Q6UNCB.js} +11 -3
- package/dist/chunk-E7Q6UNCB.js.map +1 -0
- package/dist/{chunk-C26Q6P4Q.js → chunk-E7ZRBMVQ.js} +3 -3
- package/dist/{chunk-C26Q6P4Q.js.map → chunk-E7ZRBMVQ.js.map} +1 -1
- package/dist/chunk-ECVTRAXN.js +37 -0
- package/dist/chunk-ECVTRAXN.js.map +1 -0
- package/dist/{chunk-EIET4QLK.js → chunk-EHR7R7YP.js} +14 -3
- package/dist/chunk-EHR7R7YP.js.map +1 -0
- package/dist/{chunk-5J6Z4BWY.js → chunk-EXGDKG7B.js} +127 -5
- package/dist/chunk-EXGDKG7B.js.map +1 -0
- package/dist/{chunk-7K6U6FCN.js → chunk-F34LHBQI.js} +47 -12
- package/dist/chunk-F34LHBQI.js.map +1 -0
- package/dist/{chunk-IIQ2XIMU.js → chunk-F3PZGFEA.js} +32 -11
- package/dist/chunk-F3PZGFEA.js.map +1 -0
- package/dist/{chunk-3OP66VXU.js → chunk-FJMABKKV.js} +5 -3
- package/dist/chunk-FJMABKKV.js.map +1 -0
- package/dist/{chunk-B53PS2LE.js → chunk-FNJA4S6J.js} +7 -3
- package/dist/chunk-FNJA4S6J.js.map +1 -0
- package/dist/{chunk-YMUIQRWK.js → chunk-FQETQ7CM.js} +6 -2
- package/dist/chunk-FQETQ7CM.js.map +1 -0
- package/dist/{chunk-KCS6NJ3O.js → chunk-FR5G77K5.js} +2 -2
- package/dist/{chunk-KCS6NJ3O.js.map → chunk-FR5G77K5.js.map} +1 -1
- package/dist/chunk-GVII4JSD.js +153 -0
- package/dist/chunk-GVII4JSD.js.map +1 -0
- package/dist/chunk-HPOXLOVC.js +184 -0
- package/dist/chunk-HPOXLOVC.js.map +1 -0
- package/dist/{chunk-EKHDLBRP.js → chunk-JAC6AVZN.js} +21 -3
- package/dist/chunk-JAC6AVZN.js.map +1 -0
- package/dist/{chunk-CTQUDCY5.js → chunk-JG4ONAOI.js} +4 -2
- package/dist/{chunk-CTQUDCY5.js.map → chunk-JG4ONAOI.js.map} +1 -1
- package/dist/{chunk-K67XBCHG.js → chunk-JHUEYWWI.js} +6 -4
- package/dist/chunk-JHUEYWWI.js.map +1 -0
- package/dist/{chunk-GS2QD3N7.js → chunk-JZZVWTUB.js} +2 -2
- package/dist/{chunk-GS2QD3N7.js.map → chunk-JZZVWTUB.js.map} +1 -1
- package/dist/{chunk-XRZSK2WC.js → chunk-KACJOE2N.js} +16 -5
- package/dist/chunk-KACJOE2N.js.map +1 -0
- package/dist/chunk-KELWWCMX.js +426 -0
- package/dist/chunk-KELWWCMX.js.map +1 -0
- package/dist/{chunk-KDQZ3E5C.js → chunk-KLR3DCHH.js} +58 -4
- package/dist/chunk-KLR3DCHH.js.map +1 -0
- package/dist/{chunk-S3DCRI2M.js → chunk-LD6A6PYB.js} +43 -5
- package/dist/chunk-LD6A6PYB.js.map +1 -0
- package/dist/{chunk-BKUMG2KB.js → chunk-LET362AM.js} +13 -3
- package/dist/chunk-LET362AM.js.map +1 -0
- package/dist/{chunk-C2ZO3OZZ.js → chunk-LOW7J7SE.js} +4 -4
- package/dist/chunk-LOW7J7SE.js.map +1 -0
- package/dist/{chunk-ITENVZ6Q.js → chunk-M72QLDUO.js} +13 -4
- package/dist/chunk-M72QLDUO.js.map +1 -0
- package/dist/{chunk-OHPYT2BH.js → chunk-MLDO7WLA.js} +2 -2
- package/dist/{chunk-OHPYT2BH.js.map → chunk-MLDO7WLA.js.map} +1 -1
- package/dist/{chunk-D5RGM3XA.js → chunk-NA4LKVPX.js} +12 -2
- package/dist/chunk-NA4LKVPX.js.map +1 -0
- package/dist/chunk-NR3ZO4LK.js +67 -0
- package/dist/chunk-NR3ZO4LK.js.map +1 -0
- package/dist/{chunk-YPAQFBMN.js → chunk-NYNNNEAU.js} +44 -10
- package/dist/chunk-NYNNNEAU.js.map +1 -0
- package/dist/chunk-OKZTLRGG.js +34 -0
- package/dist/chunk-OKZTLRGG.js.map +1 -0
- package/dist/{chunk-ZX2QQJXD.js → chunk-PVKAIVKE.js} +95 -61
- package/dist/chunk-PVKAIVKE.js.map +1 -0
- package/dist/{chunk-Y6KT7ZTR.js → chunk-Q2CLQ3IJ.js} +21 -3
- package/dist/chunk-Q2CLQ3IJ.js.map +1 -0
- package/dist/{chunk-2J7XKAZX.js → chunk-Q2SLOMN6.js} +7 -6
- package/dist/chunk-Q2SLOMN6.js.map +1 -0
- package/dist/{chunk-S2XULQEK.js → chunk-Q5BPZPCO.js} +2 -2
- package/dist/{chunk-S2XULQEK.js.map → chunk-Q5BPZPCO.js.map} +1 -1
- package/dist/{chunk-BSNKDW4X.js → chunk-Q7RILH2D.js} +14 -9
- package/dist/chunk-Q7RILH2D.js.map +1 -0
- package/dist/chunk-QR7MGGOM.js +49 -0
- package/dist/chunk-QR7MGGOM.js.map +1 -0
- package/dist/{chunk-PS24PVR6.js → chunk-QXXLDY6I.js} +50 -10
- package/dist/chunk-QXXLDY6I.js.map +1 -0
- package/dist/chunk-QY77Q7RY.js +129 -0
- package/dist/chunk-QY77Q7RY.js.map +1 -0
- package/dist/{chunk-4OV272LF.js → chunk-R6FIXYAE.js} +4 -4
- package/dist/{chunk-4OV272LF.js.map → chunk-R6FIXYAE.js.map} +1 -1
- package/dist/{chunk-N2K3QGSX.js → chunk-RGB4DPMN.js} +16 -3
- package/dist/chunk-RGB4DPMN.js.map +1 -0
- package/dist/{chunk-TKNVL53O.js → chunk-RPJOLDSR.js} +11 -3
- package/dist/chunk-RPJOLDSR.js.map +1 -0
- package/dist/chunk-SBCXWGNP.js +256 -0
- package/dist/chunk-SBCXWGNP.js.map +1 -0
- package/dist/{chunk-WPNIKZMJ.js → chunk-SJBMKA4X.js} +2 -2
- package/dist/{chunk-WPNIKZMJ.js.map → chunk-SJBMKA4X.js.map} +1 -1
- package/dist/{chunk-RMWNO6BA.js → chunk-SNUDT6AX.js} +2 -2
- package/dist/{chunk-RMWNO6BA.js.map → chunk-SNUDT6AX.js.map} +1 -1
- package/dist/{chunk-NR6O74ST.js → chunk-SPI6VMIY.js} +14 -10
- package/dist/chunk-SPI6VMIY.js.map +1 -0
- package/dist/{chunk-ZN7KUMPY.js → chunk-SWXWLSUD.js} +17 -3
- package/dist/chunk-SWXWLSUD.js.map +1 -0
- package/dist/chunk-TBVSPSGX.js +14 -0
- package/dist/chunk-TBVSPSGX.js.map +1 -0
- package/dist/{chunk-UMNHJSIO.js → chunk-TPLVC5BE.js} +2 -2
- package/dist/{chunk-UMNHJSIO.js.map → chunk-TPLVC5BE.js.map} +1 -1
- package/dist/chunk-TRJS7M2H.js +39 -0
- package/dist/chunk-TRJS7M2H.js.map +1 -0
- package/dist/chunk-TXBNPEIJ.js +31 -0
- package/dist/chunk-TXBNPEIJ.js.map +1 -0
- package/dist/{chunk-VEME3D7K.js → chunk-UD5KHQOH.js} +27 -3
- package/dist/chunk-UD5KHQOH.js.map +1 -0
- package/dist/{chunk-5CLMV5YU.js → chunk-UPHPFKAD.js} +54 -18
- package/dist/chunk-UPHPFKAD.js.map +1 -0
- package/dist/{chunk-WVS6CUCT.js → chunk-V3IXAI4L.js} +6 -2
- package/dist/chunk-V3IXAI4L.js.map +1 -0
- package/dist/{chunk-CVD5IZGB.js → chunk-VBXKYT4O.js} +7 -2
- package/dist/chunk-VBXKYT4O.js.map +1 -0
- package/dist/{chunk-OZ6X76G5.js → chunk-VNT4MXR5.js} +4 -3
- package/dist/chunk-VNT4MXR5.js.map +1 -0
- package/dist/{chunk-K57NINLH.js → chunk-VPDSPD76.js} +54 -1
- package/dist/chunk-VPDSPD76.js.map +1 -0
- package/dist/chunk-VX3YF2UD.js +77 -0
- package/dist/chunk-VX3YF2UD.js.map +1 -0
- package/dist/chunk-WCMGPAY2.js +103 -0
- package/dist/chunk-WCMGPAY2.js.map +1 -0
- package/dist/{chunk-DZJ4GBSP.js → chunk-WSPXSWFG.js} +21 -4
- package/dist/chunk-WSPXSWFG.js.map +1 -0
- package/dist/{chunk-NB6POCFH.js → chunk-WVQDIOD7.js} +56 -11
- package/dist/chunk-WVQDIOD7.js.map +1 -0
- package/dist/{chunk-F653O57X.js → chunk-Y4VR6VNM.js} +6 -3
- package/dist/chunk-Y4VR6VNM.js.map +1 -0
- package/dist/{chunk-CEJ5FK6G.js → chunk-YHRJNKD5.js} +2 -2
- package/dist/{chunk-CEJ5FK6G.js.map → chunk-YHRJNKD5.js.map} +1 -1
- package/dist/{chunk-XWNXGFX3.js → chunk-Z3T24FX3.js} +2 -2
- package/dist/{chunk-XWNXGFX3.js.map → chunk-Z3T24FX3.js.map} +1 -1
- package/dist/collapsible-panel.d.ts +10 -3
- package/dist/collapsible-panel.js +45 -5
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/color-field.js +2 -2
- package/dist/color-picker.js +1 -1
- package/dist/color-swatches.js +1 -1
- package/dist/column-explorer.d.ts +67 -0
- package/dist/column-explorer.js +140 -0
- package/dist/column-explorer.js.map +1 -0
- package/dist/column-track.d.ts +12 -3
- package/dist/column-track.js +1 -1
- package/dist/combobox.d.ts +5 -1
- package/dist/combobox.js +2 -1
- package/dist/content-item.d.ts +14 -4
- package/dist/content-item.js +2 -1
- package/dist/content-swap.d.ts +5 -1
- package/dist/content-swap.js +2 -1
- package/dist/corner-status.d.ts +5 -1
- package/dist/corner-status.js +2 -1
- package/dist/device-class.js +1 -101
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +5 -1
- package/dist/disclosure-arrow.js +2 -1
- package/dist/disclosure.js +2 -2
- package/dist/edge-activity-indicator.d.ts +5 -1
- package/dist/edge-activity-indicator.js +2 -1
- package/dist/editor.d.ts +344 -0
- package/dist/editor.js +10076 -0
- package/dist/editor.js.map +1 -0
- package/dist/empty-state.d.ts +5 -1
- package/dist/empty-state.js +2 -1
- package/dist/{extension-attributes-mu8MFUl0.d.ts → extension-attributes-IJ4decoa.d.ts} +7 -1
- package/dist/file-picker.d.ts +25 -4
- package/dist/file-picker.js +2 -1
- package/dist/floating-toolbar.d.ts +5 -1
- package/dist/floating-toolbar.js +2 -1
- package/dist/form.d.ts +45 -0
- package/dist/form.js +4 -0
- package/dist/form.js.map +1 -0
- package/dist/framed-list.js +1 -1
- package/dist/grid.js +1 -1
- package/dist/index.d.ts +14 -7
- package/dist/index.js +82 -70
- package/dist/list-action-row.d.ts +1 -1
- package/dist/list-action-row.js +2 -1
- package/dist/list-detail-dialog.d.ts +10 -3
- package/dist/list-detail-dialog.js +15 -11
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +11 -3
- package/dist/list-header.js +1 -1
- package/dist/list-inset-control.d.ts +5 -1
- package/dist/list-inset-control.js +2 -1
- package/dist/list-inset-text.js +1 -1
- package/dist/list-item.js +3 -1
- package/dist/list.d.ts +130 -11
- package/dist/list.js +1 -1
- package/dist/loading-spinner.d.ts +5 -1
- package/dist/loading-spinner.js +2 -1
- package/dist/lucide-icon.d.ts +5 -1
- package/dist/lucide-icon.js +2 -1
- package/dist/message-composer.js +1 -1
- package/dist/{nav-stack-CrZF95VO.d.ts → nav-stack-DwxpXxqJ.d.ts} +13 -2
- package/dist/nav-stack.d.ts +3 -2
- package/dist/nav-stack.js +4 -1
- package/dist/paged-view.d.ts +47 -0
- package/dist/paged-view.js +86 -0
- package/dist/paged-view.js.map +1 -0
- package/dist/pane.d.ts +42 -5
- package/dist/pane.js +2 -1
- package/dist/popup-menu-register.js +1 -1
- package/dist/popup-menu.d.ts +42 -2
- package/dist/popup-menu.js +2 -1
- package/dist/progress-bar.js +1 -1
- package/dist/progress-ring.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/resizable-region.d.ts +5 -1
- package/dist/resizable-region.js +2 -1
- package/dist/row.d.ts +7 -2
- package/dist/row.js +1 -1
- package/dist/scroll-effect.d.ts +86 -0
- package/dist/scroll-effect.js +5 -0
- package/dist/scroll-effect.js.map +1 -0
- package/dist/{search-field-CrGTN5sa.d.ts → search-field-5lNIszda.d.ts} +5 -1
- package/dist/search-field-model.d.ts +2 -1
- package/dist/search-field.d.ts +2 -1
- package/dist/search-field.js +2 -1
- package/dist/segmented-control.d.ts +5 -1
- package/dist/segmented-control.js +2 -1
- package/dist/select-register.js +9 -2
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +22 -1
- package/dist/select.js +1 -1
- package/dist/sized-region.d.ts +44 -0
- package/dist/sized-region.js +4 -0
- package/dist/sized-region.js.map +1 -0
- package/dist/skeleton.d.ts +5 -1
- package/dist/skeleton.js +2 -1
- package/dist/slider.js +1 -1
- package/dist/spacer.d.ts +5 -1
- package/dist/spacer.js +2 -1
- package/dist/split-button.js +1 -1
- package/dist/split-view.d.ts +7 -3
- package/dist/split-view.js +4 -1
- package/dist/state-banner.d.ts +7 -0
- package/dist/state-banner.js +1 -1
- package/dist/styles/backdrop-image.css +136 -70
- package/dist/styles/badge.css +31 -0
- package/dist/styles/button.css +103 -0
- package/dist/styles/choice-chips.css +45 -0
- package/dist/styles/column-explorer.css +6 -0
- package/dist/styles/components/actions/button/button.css +103 -0
- package/dist/styles/components/actions/popup-menu/popup-menu.css +154 -1
- package/dist/styles/components/actions/toolbar/toolbar.css +19 -11
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +38 -200
- package/dist/styles/components/collections/column-explorer/column-explorer.css +6 -0
- package/dist/styles/components/collections/list/list.css +6 -0
- package/dist/styles/components/collections/list-header/list-header.css +11 -25
- package/dist/styles/components/collections/list-item/list-item.css +68 -2
- package/dist/styles/components/collections/summary-row/summary-row.css +39 -6
- package/dist/styles/components/collections/tree-list/tree-list.css +7 -0
- package/dist/styles/components/data-display/value-table/value-table.css +1 -1
- package/dist/styles/components/feedback/badge/badge.css +31 -0
- package/dist/styles/components/feedback/state-banner/state-banner.css +12 -7
- package/dist/styles/components/forms/choice-chips/choice-chips.css +45 -0
- package/dist/styles/components/forms/file-picker/file-picker.css +13 -2
- package/dist/styles/components/forms/form/form.css +6 -0
- package/dist/styles/components/forms/select/select.css +85 -2
- package/dist/styles/components/forms/text-field/text-field.css +44 -0
- package/dist/styles/components/layout/pane/pane.css +16 -0
- package/dist/styles/components/layout/resizable-region/resizable-region.css +0 -10
- package/dist/styles/components/layout/sized-region/sized-region.css +22 -0
- package/dist/styles/components/layout/workbench/workbench.css +0 -21
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +2 -0
- package/dist/styles/components/navigation/paged-view/paged-view.css +160 -0
- package/dist/styles/components/navigation/tab-bar/tab-bar.css +24 -17
- package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +111 -60
- package/dist/styles/components/navigation/tab-panel/tab-panel.css +7 -0
- package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +14 -70
- package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +121 -0
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +77 -29
- package/dist/styles/components/typography/text/text.css +4 -4
- package/dist/styles/content-item.css +551 -3
- package/dist/styles/document.css +1 -6
- package/dist/styles/editor/editor.css +530 -0
- package/dist/styles/editor.css +4 -0
- package/dist/styles/file-picker.css +13 -2
- package/dist/styles/form.css +6 -0
- package/dist/styles/foundation.css +55 -1
- package/dist/styles/list-header.css +11 -25
- package/dist/styles/list-item.css +68 -2
- package/dist/styles/list.css +6 -0
- package/dist/styles/nav-stack.css +2 -0
- package/dist/styles/overlay-sheet.css +7 -7
- package/dist/styles/paged-view.css +160 -0
- package/dist/styles/pane.css +16 -0
- package/dist/styles/popup-menu.css +154 -1
- package/dist/styles/resizable-region.css +0 -10
- package/dist/styles/scroll-effect.css +121 -0
- package/dist/styles/select.css +85 -2
- package/dist/styles/sized-region.css +22 -0
- package/dist/styles/state-banner.css +12 -7
- package/dist/styles/styles.css +11 -0
- package/dist/styles/summary-row.css +39 -6
- package/dist/styles/surface-scaffold.css +77 -29
- package/dist/styles/tab-bar-item.css +111 -60
- package/dist/styles/tab-bar.css +24 -17
- package/dist/styles/tab-panel.css +7 -0
- package/dist/styles/text-field.css +44 -0
- package/dist/styles/text.css +4 -4
- package/dist/styles/toolbar-control-group.css +38 -200
- package/dist/styles/toolbar.css +19 -11
- package/dist/styles/tree-list.css +7 -0
- package/dist/styles/value-table.css +1 -1
- package/dist/styles/webawesome.css +350 -6
- package/dist/styles/workbench.css +0 -21
- package/dist/summary-row.d.ts +9 -1
- package/dist/summary-row.js +1 -1
- package/dist/sunken-panel.d.ts +5 -1
- package/dist/sunken-panel.js +2 -1
- package/dist/surface-scaffold-register.js +1 -1
- package/dist/surface-scaffold.d.ts +37 -6
- package/dist/surface-scaffold.js +3 -2
- package/dist/switch.js +1 -1
- package/dist/tab-bar-item.d.ts +9 -5
- package/dist/tab-bar-item.js +1 -1
- package/dist/tab-bar.d.ts +16 -3
- package/dist/tab-bar.js +2 -1
- package/dist/tab-navigator.d.ts +25 -3
- package/dist/tab-navigator.js +42 -19
- package/dist/tab-navigator.js.map +1 -1
- package/dist/tab-panel.d.ts +35 -0
- package/dist/tab-panel.js +4 -0
- package/dist/tab-panel.js.map +1 -0
- package/dist/tag-field.d.ts +5 -1
- package/dist/tag-field.js +2 -1
- package/dist/text-field.d.ts +22 -4
- package/dist/text-field.js +1 -1
- package/dist/text.d.ts +37 -5
- package/dist/text.js +2 -1
- package/dist/toolbar-control-group.d.ts +83 -3
- package/dist/toolbar-control-group.js +4 -1
- package/dist/toolbar-text.d.ts +9 -1
- package/dist/toolbar-text.js +2 -1
- package/dist/toolbar.d.ts +6 -1
- package/dist/toolbar.js +2 -1
- package/dist/tree-list.d.ts +42 -0
- package/dist/tree-list.js +12 -0
- package/dist/tree-list.js.map +1 -0
- package/dist/tree-rows-eHnnGLGM.d.ts +65 -0
- package/dist/value-preview.d.ts +5 -1
- package/dist/value-preview.js +2 -1
- package/dist/value-table.d.ts +9 -2
- package/dist/value-table.js +2 -1
- package/dist/wire-catalog.d.ts +3 -2
- package/dist/wire-catalog.js +4 -3
- package/dist/wire-catalog.js.map +1 -1
- package/dist/wire-choice-chips.d.ts +3 -1
- package/dist/wire-choice-chips.js +1 -1
- package/dist/wire-color-fields.js +2 -73
- package/dist/wire-color-fields.js.map +1 -1
- package/dist/wire-color-pickers.js +1 -1
- package/dist/wire-column-explorer.d.ts +13 -0
- package/dist/wire-column-explorer.js +94 -0
- package/dist/wire-column-explorer.js.map +1 -0
- package/dist/wire-content-items.d.ts +10 -1
- package/dist/wire-content-items.js +1 -293
- package/dist/wire-content-items.js.map +1 -1
- package/dist/wire-forms.d.ts +14 -0
- package/dist/wire-forms.js +3 -0
- package/dist/wire-forms.js.map +1 -0
- package/dist/wire-nav-stack.js +1 -423
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-paged-views.d.ts +27 -0
- package/dist/wire-paged-views.js +186 -0
- package/dist/wire-paged-views.js.map +1 -0
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.js +1 -1
- package/dist/wire-search-fields.d.ts +2 -1
- package/dist/wire-search-fields.js +2 -1
- package/dist/wire-sidebar.js +1 -229
- package/dist/wire-sidebar.js.map +1 -1
- package/dist/wire-sliders.js +1 -29
- package/dist/wire-sliders.js.map +1 -1
- package/dist/wire-summary-rows.d.ts +18 -0
- package/dist/wire-summary-rows.js +4 -0
- package/dist/wire-summary-rows.js.map +1 -0
- package/dist/wire-tab-bars.d.ts +1 -0
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.js +1 -151
- package/dist/wire-tab-navigator.js.map +1 -1
- package/dist/wire-tag-fields.js +3 -252
- package/dist/wire-tag-fields.js.map +1 -1
- package/dist/wire-tree-list.d.ts +53 -0
- package/dist/wire-tree-list.js +3 -0
- package/dist/wire-tree-list.js.map +1 -0
- package/dist/wire-workbench.js +2 -1
- package/dist/workbench-dialog.d.ts +10 -3
- package/dist/workbench-dialog.js +13 -9
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +7 -3
- package/dist/workbench.js +4 -1
- package/docs/accessibility.md +52 -9
- package/docs/app-layouts.md +70 -1
- package/docs/backdrop-image.md +10 -0
- package/docs/button.md +30 -2
- package/docs/column-explorer.md +75 -0
- package/docs/component-contract.md +44 -15
- package/docs/component-selection.md +161 -126
- package/docs/data-tables-and-lists.md +1 -1
- package/docs/design/sketch/Kerf-UI.sketch +0 -0
- package/docs/design/sketch/README.md +73 -0
- package/docs/design/sketch/advanced/README.md +75 -0
- package/docs/design/sketch/button/README.md +270 -0
- package/docs/design/sketch/content/README.md +70 -0
- package/docs/design/sketch/coverage.md +159 -0
- package/docs/design/sketch/forms/README.md +97 -0
- package/docs/design/sketch/lists/README.md +65 -0
- package/docs/design/sketch/toolbar/README.md +73 -0
- package/docs/design/sketch/unified/README.md +69 -0
- package/docs/design/sketch/unified/pages/advanced.png +0 -0
- package/docs/design/sketch/unified/pages/button.png +0 -0
- package/docs/design/sketch/unified/pages/content.png +0 -0
- package/docs/design/sketch/unified/pages/forms.png +0 -0
- package/docs/design/sketch/unified/pages/lists.png +0 -0
- package/docs/design/sketch/unified/pages/toolbar.png +0 -0
- package/docs/design/sketch-runner.md +87 -0
- package/docs/design/templates/button/emphasis-dark.svg +1 -1
- package/docs/design/templates/button/emphasis.svg +1 -1
- package/docs/design/templates/button-dark.svg +1 -1
- package/docs/design/templates/button.svg +1 -1
- package/docs/design/templates/list-header/action-dark.svg +1 -1
- package/docs/design/templates/list-header/action.svg +1 -1
- package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -1
- package/docs/design/templates/list-header/toggle-collapsed.svg +1 -1
- package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -1
- package/docs/design/templates/list-header/toggle-expanded.svg +1 -1
- package/docs/design/templates/list-header-dark.svg +1 -1
- package/docs/design/templates/list-header.svg +1 -1
- package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -1
- package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -1
- package/docs/design/templates/tab-bar-dark.svg +1 -1
- package/docs/design/templates/tab-bar.svg +1 -1
- package/docs/design/templates/tree-list/files-dark.svg +1 -0
- package/docs/design/templates/tree-list/files.svg +1 -0
- package/docs/design/templates/tree-list/outline-dark.svg +1 -0
- package/docs/design/templates/tree-list/outline.svg +1 -0
- package/docs/design/templates/tree-list-dark.svg +1 -0
- package/docs/design/templates/tree-list.svg +1 -0
- package/docs/design/templates.md +10 -1
- package/docs/document-baseline.md +6 -3
- package/docs/editor-host.md +299 -0
- package/docs/forms-and-validation.md +39 -0
- package/docs/interaction-conventions.md +2 -1
- package/docs/layout.md +94 -10
- package/docs/list-detail-dialog.md +5 -0
- package/docs/manual-test-plan.md +32 -0
- package/docs/nav-stack.md +2 -1
- package/docs/paged-view.md +89 -0
- package/docs/scroll-effect.md +127 -0
- package/docs/split-view.md +4 -1
- package/docs/surface-scaffold.md +32 -2
- package/docs/tab-navigator.md +5 -4
- package/docs/tree-list.md +134 -0
- package/docs/ui-analyzer.md +43 -25
- package/docs/ui-doctor.md +4 -1
- package/docs/ui-evaluator.md +2 -0
- package/docs/ux-demo.md +1 -1
- package/docs/webawesome-migration.md +32 -31
- package/docs/webawesome-theme.md +27 -17
- package/docs/workbench-dialog.md +4 -0
- package/evaluator/index.mjs +14 -2
- package/llms.txt +162 -21
- package/package.json +104 -6
- package/props/cli.d.mts +1 -0
- package/props/cli.mjs +116 -0
- package/props/component-props.d.mts +177 -0
- package/props/component-props.mjs +1208 -0
- package/scripts/lib/json-schema-subset.mjs +137 -0
- package/ux-demo/recipes/app-shell.tsx +20 -22
- package/ux-demo/recipes/collapsible-sidebar.tsx +2 -2
- package/ux-demo/recipes/compact-toolbar.tsx +26 -29
- package/ux-demo/recipes/composer-form.tsx +6 -5
- package/ux-demo/recipes/list-workspace-states.tsx +39 -39
- package/ux-demo/recipes/loading-inspector.tsx +8 -6
- package/ux-demo/recipes/media-detail.tsx +29 -15
- package/ux-demo/recipes/navigation-sidebar.tsx +18 -19
- package/ux-demo/recipes/navigation-stack.tsx +2 -2
- package/ux-demo/recipes/workspace-header.tsx +16 -16
- package/view/cli.d.mts +18 -0
- package/view/cli.mjs +262 -0
- package/view/contract.mjs +342 -0
- package/view/generate.mjs +639 -0
- package/view/index.d.mts +411 -0
- package/view/index.mjs +40 -0
- package/view/interpret.mjs +271 -0
- package/view/validate-move.mjs +317 -0
- package/view/validate.mjs +1864 -0
- package/vite-editor.d.mts +130 -0
- package/vite-editor.mjs +314 -0
- package/dist/chunk-2J7XKAZX.js.map +0 -1
- package/dist/chunk-3KFMLOTH.js.map +0 -1
- package/dist/chunk-3OP66VXU.js.map +0 -1
- package/dist/chunk-3V4OCDTL.js.map +0 -1
- package/dist/chunk-3WWX2O4G.js.map +0 -1
- package/dist/chunk-5CLMV5YU.js.map +0 -1
- package/dist/chunk-5J6Z4BWY.js.map +0 -1
- package/dist/chunk-6VVIW7VB.js.map +0 -1
- package/dist/chunk-7AK5I7U7.js.map +0 -1
- package/dist/chunk-7K6U6FCN.js.map +0 -1
- package/dist/chunk-AMIHGFLP.js.map +0 -1
- package/dist/chunk-AN5IWMTM.js.map +0 -1
- package/dist/chunk-B53PS2LE.js.map +0 -1
- package/dist/chunk-BKUMG2KB.js.map +0 -1
- package/dist/chunk-BSNKDW4X.js.map +0 -1
- package/dist/chunk-C2ZO3OZZ.js.map +0 -1
- package/dist/chunk-CVD5IZGB.js.map +0 -1
- package/dist/chunk-D5RGM3XA.js.map +0 -1
- package/dist/chunk-DZJ4GBSP.js.map +0 -1
- package/dist/chunk-EIET4QLK.js.map +0 -1
- package/dist/chunk-EKHDLBRP.js.map +0 -1
- package/dist/chunk-ETFP7HAR.js.map +0 -1
- package/dist/chunk-EYDXFOSH.js.map +0 -1
- package/dist/chunk-F653O57X.js.map +0 -1
- package/dist/chunk-G3J7JDP6.js.map +0 -1
- package/dist/chunk-HJWFHJ3Z.js.map +0 -1
- package/dist/chunk-HJXVVFBT.js.map +0 -1
- package/dist/chunk-IIQ2XIMU.js.map +0 -1
- package/dist/chunk-ITENVZ6Q.js.map +0 -1
- package/dist/chunk-ITUQC4FW.js.map +0 -1
- package/dist/chunk-K57NINLH.js.map +0 -1
- package/dist/chunk-K67XBCHG.js.map +0 -1
- package/dist/chunk-KDQZ3E5C.js.map +0 -1
- package/dist/chunk-KH4KEMSP.js.map +0 -1
- package/dist/chunk-LZUUUHNH.js.map +0 -1
- package/dist/chunk-N2K3QGSX.js.map +0 -1
- package/dist/chunk-NB6POCFH.js.map +0 -1
- package/dist/chunk-NR6O74ST.js.map +0 -1
- package/dist/chunk-OQP3PFKQ.js.map +0 -1
- package/dist/chunk-OZ6X76G5.js.map +0 -1
- package/dist/chunk-PS24PVR6.js.map +0 -1
- package/dist/chunk-QH5KOFNS.js.map +0 -1
- package/dist/chunk-QYMJHS4K.js.map +0 -1
- package/dist/chunk-S3DCRI2M.js.map +0 -1
- package/dist/chunk-S3ECMF23.js.map +0 -1
- package/dist/chunk-TKNVL53O.js.map +0 -1
- package/dist/chunk-VEME3D7K.js.map +0 -1
- package/dist/chunk-WVS6CUCT.js.map +0 -1
- package/dist/chunk-XRZSK2WC.js.map +0 -1
- package/dist/chunk-Y6KT7ZTR.js.map +0 -1
- package/dist/chunk-YMUIQRWK.js.map +0 -1
- package/dist/chunk-YPAQFBMN.js.map +0 -1
- package/dist/chunk-ZN7KUMPY.js.map +0 -1
- package/dist/chunk-ZX2QQJXD.js.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Public API signatures for the UI authoring corpus
|
|
2
2
|
|
|
3
|
-
Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.
|
|
3
|
+
Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.124` and `kerfjs@5.0.0-beta.124`. This bounded reference covers only APIs used by the seven-task corpus. It is interface evidence, not an implementation or runtime guarantee.
|
|
4
4
|
|
|
5
5
|
## `@kerfjs/ui/css-values`
|
|
6
6
|
|
|
@@ -138,6 +138,7 @@ export { type CssColor, type CssFlex, type CssFlexBasis, type CssFlexKeyword, ty
|
|
|
138
138
|
|
|
139
139
|
```ts
|
|
140
140
|
import { SafeHtml } from 'kerfjs';
|
|
141
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
141
142
|
import { CssLength } from './css-values.js';
|
|
142
143
|
|
|
143
144
|
type DisclosureDirection = 'up' | 'down' | 'left' | 'right';
|
|
@@ -152,8 +153,11 @@ interface DisclosureArrowProps {
|
|
|
152
153
|
className?: string;
|
|
153
154
|
/** Native named-slot assignment when composed inside a web component. */
|
|
154
155
|
slot?: string;
|
|
156
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
157
|
+
* editor node marker; the component's own markers stay protected. */
|
|
158
|
+
rootAttributes?: RootDataAttributes;
|
|
155
159
|
}
|
|
156
|
-
declare function DisclosureArrow({ open, openDirection, closedDirection, icon, size, className, slot, }: DisclosureArrowProps): SafeHtml;
|
|
160
|
+
declare function DisclosureArrow({ open, openDirection, closedDirection, icon, size, className, slot, rootAttributes, }: DisclosureArrowProps): SafeHtml;
|
|
157
161
|
|
|
158
162
|
export { DisclosureArrow, type DisclosureArrowProps, type DisclosureDirection };
|
|
159
163
|
```
|
|
@@ -163,9 +167,11 @@ export { DisclosureArrow, type DisclosureArrowProps, type DisclosureDirection };
|
|
|
163
167
|
```ts
|
|
164
168
|
import * as kerfjs from 'kerfjs';
|
|
165
169
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
170
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
166
171
|
import { S as Sides } from './sides-BPSWde0A.js';
|
|
167
172
|
import { PaneSeparatorSide } from './pane.js';
|
|
168
173
|
import './scroll-clearance-BikHljTc.js';
|
|
174
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
169
175
|
import './css-values.js';
|
|
170
176
|
import './surface-tint-DQgYCaP9.js';
|
|
171
177
|
|
|
@@ -235,6 +241,9 @@ interface ToolbarProps {
|
|
|
235
241
|
className?: string;
|
|
236
242
|
/** Native named-slot assignment when composed inside a web component. */
|
|
237
243
|
slot?: string;
|
|
244
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
245
|
+
* editor node marker; the component's own markers stay protected. */
|
|
246
|
+
rootAttributes?: RootDataAttributes;
|
|
238
247
|
}
|
|
239
248
|
/**
|
|
240
249
|
* A toolbar's configuration, apart from its content: the props a composite
|
|
@@ -242,7 +251,7 @@ interface ToolbarProps {
|
|
|
242
251
|
* toolbar) forwards, so the app configures that toolbar instead of styling it.
|
|
243
252
|
*/
|
|
244
253
|
type ToolbarConfig = Pick<ToolbarProps, 'density' | 'dividerSides' | 'centerAlign' | 'responsive' | 'responsiveAt' | 'safeAreaEdges'>;
|
|
245
|
-
declare function Toolbar({ id, leading, center, trailing, label, position, density, dividerSides, centerAlign, responsive, responsiveAt, safeAreaEdges, className, slot, }: ToolbarProps): kerfjs.SafeHtml;
|
|
254
|
+
declare function Toolbar({ id, leading, center, trailing, label, position, density, dividerSides, centerAlign, responsive, responsiveAt, safeAreaEdges, className, slot, rootAttributes, }: ToolbarProps): kerfjs.SafeHtml;
|
|
246
255
|
|
|
247
256
|
export { Sides, Toolbar, type ToolbarConfig, type ToolbarDensity, type ToolbarPosition, type ToolbarProps };
|
|
248
257
|
```
|
|
@@ -251,6 +260,7 @@ export { Sides, Toolbar, type ToolbarConfig, type ToolbarDensity, type ToolbarPo
|
|
|
251
260
|
|
|
252
261
|
```ts
|
|
253
262
|
import * as kerfjs from 'kerfjs';
|
|
263
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
254
264
|
import { CssLength } from './css-values.js';
|
|
255
265
|
|
|
256
266
|
type ToolbarTextSize = 'xlarge' | 'xlarge-fixed' | 'large' | 'default' | 'small' | 'xsmall';
|
|
@@ -288,6 +298,13 @@ interface ToolbarTextBaseProps {
|
|
|
288
298
|
fill?: boolean;
|
|
289
299
|
/** Native named-slot assignment when composed inside a web component. */
|
|
290
300
|
slot?: string;
|
|
301
|
+
/**
|
|
302
|
+
* Cap wrapped text to this many lines, truncating past it. Only takes effect with
|
|
303
|
+
* `wrap`; ignored on a single line. `null`/omitted wraps without a line cap. Default null.
|
|
304
|
+
*/
|
|
305
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
306
|
+
* editor node marker; the component's own markers stay protected. */
|
|
307
|
+
rootAttributes?: RootDataAttributes;
|
|
291
308
|
}
|
|
292
309
|
type ToolbarTextWrappingProps = {
|
|
293
310
|
/** Wrap onto multiple lines; combine with `maxLines` to cap them. */
|
|
@@ -324,7 +341,7 @@ type ToolbarTextProps = ToolbarTextBaseProps & (({
|
|
|
324
341
|
description?: never;
|
|
325
342
|
descriptionId?: never;
|
|
326
343
|
});
|
|
327
|
-
declare function ToolbarText({ text, size, tone, hideBelow, showBelow, className, id, headingLevel, placeholder, wrap, ellipsis, maxLines, fill, slot, action, description, descriptionId, }: ToolbarTextProps): kerfjs.SafeHtml;
|
|
344
|
+
declare function ToolbarText({ text, size, tone, hideBelow, showBelow, className, id, headingLevel, placeholder, wrap, ellipsis, maxLines, fill, slot, action, description, descriptionId, rootAttributes, }: ToolbarTextProps): kerfjs.SafeHtml;
|
|
328
345
|
|
|
329
346
|
export { type HeadingLevel, ToolbarText, type ToolbarTextProps, type ToolbarTextSize, type ToolbarTextTone };
|
|
330
347
|
```
|
|
@@ -334,7 +351,11 @@ export { type HeadingLevel, ToolbarText, type ToolbarTextProps, type ToolbarText
|
|
|
334
351
|
```ts
|
|
335
352
|
import * as kerfjs from 'kerfjs';
|
|
336
353
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
354
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
337
355
|
import { CssLength } from './css-values.js';
|
|
356
|
+
import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
|
|
357
|
+
import { ButtonLabel } from './button.js';
|
|
358
|
+
import './badge.js';
|
|
338
359
|
|
|
339
360
|
type ToolbarControlGroupAppearance = 'contained' | 'borderless';
|
|
340
361
|
type ToolbarControlGroupTone = 'default' | 'dark';
|
|
@@ -369,9 +390,82 @@ interface ToolbarActionLinkProps {
|
|
|
369
390
|
className?: string;
|
|
370
391
|
/** Native named-slot assignment when composed inside a web component. */
|
|
371
392
|
slot?: string;
|
|
393
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
394
|
+
* editor node marker; the component's own markers stay protected. */
|
|
395
|
+
rootAttributes?: RootDataAttributes;
|
|
372
396
|
}
|
|
373
397
|
/** A semantic anchor with ToolbarControlGroup-owned action geometry. */
|
|
374
|
-
declare function ToolbarActionLink({ href, label, icon, detail, ariaLabel, external, className, slot, }: ToolbarActionLinkProps): kerfjs.SafeHtml;
|
|
398
|
+
declare function ToolbarActionLink({ href, label, icon, detail, ariaLabel, external, className, slot, rootAttributes, }: ToolbarActionLinkProps): kerfjs.SafeHtml;
|
|
399
|
+
/**
|
|
400
|
+
* A ToolbarButton's content: a labeled button (its text names it), or an
|
|
401
|
+
* icon-only control named by `ariaLabel`. In an avatar group
|
|
402
|
+
* (`content="avatar"`) the button shows the group's `avatarImage`, so it
|
|
403
|
+
* takes only `ariaLabel` (KF-CFWFAE).
|
|
404
|
+
*/
|
|
405
|
+
type ToolbarButtonContent = {
|
|
406
|
+
/** The visible label, after the icon. */
|
|
407
|
+
children: ButtonLabel;
|
|
408
|
+
/** A leading icon, such as a `LucideIcon`; it is decorative. */
|
|
409
|
+
icon?: KerfUiContent;
|
|
410
|
+
/** Override the accessible name when the label is not enough. */
|
|
411
|
+
ariaLabel?: string;
|
|
412
|
+
} | {
|
|
413
|
+
children?: undefined;
|
|
414
|
+
/**
|
|
415
|
+
* The icon of an icon-only control; omitted in an avatar group, whose
|
|
416
|
+
* avatar image the button shows.
|
|
417
|
+
*/
|
|
418
|
+
icon?: KerfUiContent;
|
|
419
|
+
/** The accessible name of an icon-only or avatar control. */
|
|
420
|
+
ariaLabel: string;
|
|
421
|
+
};
|
|
422
|
+
type ToolbarButtonProps = ToolbarButtonContent & {
|
|
423
|
+
/** The `data-action` name a delegated handler dispatches on. */
|
|
424
|
+
action?: string;
|
|
425
|
+
/** A toggle's state, reported as `aria-pressed`; unset for a plain action. */
|
|
426
|
+
pressed?: boolean;
|
|
427
|
+
/**
|
|
428
|
+
* The id of a native `popover` element this button opens or closes (the
|
|
429
|
+
* Popover API's invoker; KF-PAMQNM).
|
|
430
|
+
*/
|
|
431
|
+
popoverTarget?: string;
|
|
432
|
+
/** What the button does to its `popoverTarget`; the browser default is `toggle`. */
|
|
433
|
+
popoverTargetAction?: 'toggle' | 'show' | 'hide';
|
|
434
|
+
/** The kind of popup the button opens, reported as `aria-haspopup`. */
|
|
435
|
+
ariaHasPopup?: 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
436
|
+
disabled?: boolean;
|
|
437
|
+
/** Native hover text that says more than the accessible name. */
|
|
438
|
+
title?: string;
|
|
439
|
+
/** `none` keeps this pressed control looking like its neighbors. */
|
|
440
|
+
selectedChrome?: 'none';
|
|
441
|
+
/**
|
|
442
|
+
* A count, short text, or `true` for a text-free dot over the button's
|
|
443
|
+
* top-trailing corner, such as how many workers are live. A count of 0 (or
|
|
444
|
+
* less) and empty text show no badge. The badge is decorative
|
|
445
|
+
* (`aria-hidden`): put its meaning in `ariaLabel` (or the visible label)
|
|
446
|
+
* and `title` yourself, for example "Workers, 2 live".
|
|
447
|
+
*/
|
|
448
|
+
badge?: number | string | true;
|
|
449
|
+
/** The badge's tone (default `danger`). */
|
|
450
|
+
badgeTone?: SemanticTone;
|
|
451
|
+
/**
|
|
452
|
+
* The largest count shown in full; a larger count shows as `{badgeMax}+`
|
|
453
|
+
* (default 99, so 100 shows "99+"). Text badges are shown as given.
|
|
454
|
+
*/
|
|
455
|
+
badgeMax?: number;
|
|
456
|
+
className?: string;
|
|
457
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
458
|
+
slot?: string;
|
|
459
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
460
|
+
* editor node marker; the component's own markers stay protected. */
|
|
461
|
+
rootAttributes?: RootDataAttributes;
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* A native button in a ToolbarControlGroup: the group owns its geometry,
|
|
465
|
+
* focus ring, pressed chrome, and busy state, exactly as for a hand-written
|
|
466
|
+
* `<button type="button">`.
|
|
467
|
+
*/
|
|
468
|
+
declare function ToolbarButton({ children, icon, ariaLabel, action, pressed, popoverTarget, popoverTargetAction, ariaHasPopup, disabled, title, selectedChrome, badge, badgeTone, badgeMax, className, slot, rootAttributes, }: ToolbarButtonProps): kerfjs.SafeHtml;
|
|
375
469
|
interface ToolbarControlGroupProps {
|
|
376
470
|
children: KerfUiContent;
|
|
377
471
|
label?: string;
|
|
@@ -449,10 +543,13 @@ interface ToolbarControlGroupProps {
|
|
|
449
543
|
avatarImage?: string;
|
|
450
544
|
/** Native named-slot assignment when composed inside a web component. */
|
|
451
545
|
slot?: string;
|
|
546
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
547
|
+
* editor node marker; the component's own markers stay protected. */
|
|
548
|
+
rootAttributes?: RootDataAttributes;
|
|
452
549
|
}
|
|
453
|
-
declare function ToolbarControlGroup({ children, label, className, expanded, single, appearance, tone, material, tileTone, buttonAppearance, shape, size, density, content, focusRing, selectedChrome, selectedTone, nestedDropdown, menuInset, overflow, expandedOverflow, visibility, hideBelow, showBelow, sizing, placement, growBasis, relocateOnCollapse, scrim, busy, busyLabel, avatarImage, slot, }: ToolbarControlGroupProps): kerfjs.SafeHtml;
|
|
550
|
+
declare function ToolbarControlGroup({ children, label, className, expanded, single, appearance, tone, material, tileTone, buttonAppearance, shape, size, density, content, focusRing, selectedChrome, selectedTone, nestedDropdown, menuInset, overflow, expandedOverflow, visibility, hideBelow, showBelow, sizing, placement, growBasis, relocateOnCollapse, scrim, busy, busyLabel, avatarImage, slot, rootAttributes, }: ToolbarControlGroupProps): kerfjs.SafeHtml;
|
|
454
551
|
|
|
455
|
-
export { ToolbarActionLink, type ToolbarActionLinkProps, ToolbarControlGroup, type ToolbarControlGroupAppearance, type ToolbarControlGroupButtonAppearance, type ToolbarControlGroupContent, type ToolbarControlGroupDensity, type ToolbarControlGroupExpandedOverflow, type ToolbarControlGroupFocusRing, type ToolbarControlGroupMaterial, type ToolbarControlGroupMenuInset, type ToolbarControlGroupOverflow, type ToolbarControlGroupPlacement, type ToolbarControlGroupProps, type ToolbarControlGroupSelectedChrome, type ToolbarControlGroupSelectedTone, type ToolbarControlGroupShape, type ToolbarControlGroupSize, type ToolbarControlGroupSizing, type ToolbarControlGroupTileTone, type ToolbarControlGroupTone, type ToolbarControlGroupVisibility };
|
|
552
|
+
export { ToolbarActionLink, type ToolbarActionLinkProps, ToolbarButton, type ToolbarButtonContent, type ToolbarButtonProps, ToolbarControlGroup, type ToolbarControlGroupAppearance, type ToolbarControlGroupButtonAppearance, type ToolbarControlGroupContent, type ToolbarControlGroupDensity, type ToolbarControlGroupExpandedOverflow, type ToolbarControlGroupFocusRing, type ToolbarControlGroupMaterial, type ToolbarControlGroupMenuInset, type ToolbarControlGroupOverflow, type ToolbarControlGroupPlacement, type ToolbarControlGroupProps, type ToolbarControlGroupSelectedChrome, type ToolbarControlGroupSelectedTone, type ToolbarControlGroupShape, type ToolbarControlGroupSize, type ToolbarControlGroupSizing, type ToolbarControlGroupTileTone, type ToolbarControlGroupTone, type ToolbarControlGroupVisibility };
|
|
456
553
|
```
|
|
457
554
|
|
|
458
555
|
## `@kerfjs/ui/floating-toolbar`
|
|
@@ -460,6 +557,7 @@ export { ToolbarActionLink, type ToolbarActionLinkProps, ToolbarControlGroup, ty
|
|
|
460
557
|
```ts
|
|
461
558
|
import * as kerfjs from 'kerfjs';
|
|
462
559
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
560
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
463
561
|
import { CssLength } from './css-values.js';
|
|
464
562
|
|
|
465
563
|
/** Where a {@link FloatingToolbar} floats within its positioned container. */
|
|
@@ -488,6 +586,9 @@ interface FloatingToolbarProps {
|
|
|
488
586
|
className?: string;
|
|
489
587
|
/** Native named-slot assignment when composed inside a web component. */
|
|
490
588
|
slot?: string;
|
|
589
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
590
|
+
* editor node marker; the component's own markers stay protected. */
|
|
591
|
+
rootAttributes?: RootDataAttributes;
|
|
491
592
|
}
|
|
492
593
|
/**
|
|
493
594
|
* A toolbar that floats above the main content of its nearest positioned
|
|
@@ -506,7 +607,7 @@ interface FloatingToolbarProps {
|
|
|
506
607
|
* `placement="inline"` for normal flow when an owner already positions the
|
|
507
608
|
* control; floating placement can add safe-area insets to its per-edge tokens.
|
|
508
609
|
*/
|
|
509
|
-
declare function FloatingToolbar({ children, label, position, placement, inset, safeAreaInsets, className, slot, }: FloatingToolbarProps): kerfjs.SafeHtml;
|
|
610
|
+
declare function FloatingToolbar({ children, label, position, placement, inset, safeAreaInsets, className, slot, rootAttributes, }: FloatingToolbarProps): kerfjs.SafeHtml;
|
|
510
611
|
|
|
511
612
|
export { FloatingToolbar, type FloatingToolbarPosition, type FloatingToolbarProps };
|
|
512
613
|
```
|
|
@@ -587,6 +688,10 @@ type PopupMenuTriggerName = {
|
|
|
587
688
|
triggerContent: KerfUiContent;
|
|
588
689
|
icon?: never;
|
|
589
690
|
};
|
|
691
|
+
/** How loudly a PopupMenu's button trigger asks: borderless or outlined. */
|
|
692
|
+
type PopupMenuEmphasis = 'plain' | 'secondary';
|
|
693
|
+
/** A PopupMenu button trigger's height: the standard control or compact. */
|
|
694
|
+
type PopupMenuSize = 'standard' | 'compact';
|
|
590
695
|
/** A context PopupMenu's viewport anchor point. */
|
|
591
696
|
interface PopupMenuAnchor {
|
|
592
697
|
x: number;
|
|
@@ -623,6 +728,42 @@ type PopupMenuProps = PopupMenuTrigger & {
|
|
|
623
728
|
/** Show the disclosure caret after the trigger content. Defaults to true. */
|
|
624
729
|
caret?: boolean;
|
|
625
730
|
disabled?: boolean;
|
|
731
|
+
/**
|
|
732
|
+
* The button trigger's emphasis outside a toolbar: `plain` (default), a
|
|
733
|
+
* quiet borderless trigger, or `secondary`, outlined to sit beside
|
|
734
|
+
* secondary `Button`s, as an Add menu does in a form's row of actions. A
|
|
735
|
+
* `ToolbarControlGroup` styles its own triggers, so it ignores this.
|
|
736
|
+
*/
|
|
737
|
+
emphasis?: PopupMenuEmphasis;
|
|
738
|
+
/**
|
|
739
|
+
* The button trigger's size: `standard` (default), the 44px control
|
|
740
|
+
* height, or `compact`, the height and type of a compact `Button`.
|
|
741
|
+
*/
|
|
742
|
+
size?: PopupMenuSize;
|
|
743
|
+
/**
|
|
744
|
+
* Quiet text at the bottom of the open menu, below its items, announced as
|
|
745
|
+
* the menu's description. Submenus don't show it.
|
|
746
|
+
*/
|
|
747
|
+
popupNote?: string;
|
|
748
|
+
/**
|
|
749
|
+
* Show the menu open at its trigger (at its `placement`), in the document
|
|
750
|
+
* instead of the top layer, as a static preview (the Kerf UI editor's edit canvas, a
|
|
751
|
+
* specification sheet). An embedded menu is inert: the register leaves it
|
|
752
|
+
* alone, so its trigger opens nothing and its items choose nothing, and
|
|
753
|
+
* items render as static rows without their `data-action` that take no
|
|
754
|
+
* focus, so a click on one leaves no current-row fill. Defaults to false.
|
|
755
|
+
*/
|
|
756
|
+
embedded?: boolean;
|
|
757
|
+
/**
|
|
758
|
+
* With `embedded`, the submenu to show open too, as a path of `items`
|
|
759
|
+
* indices, one per level: `[2]` opens the third entry's submenu, `[2, 0]`
|
|
760
|
+
* also the first entry's submenu inside it. Each shows beside its item
|
|
761
|
+
* (below its parent menu at phone widths), in the document and inert, as
|
|
762
|
+
* the Kerf UI editor's edit canvas shows the submenu an author edits. An
|
|
763
|
+
* index that names no submenu stops the path there. Ignored without
|
|
764
|
+
* `embedded`.
|
|
765
|
+
*/
|
|
766
|
+
embeddedSubmenu?: readonly number[];
|
|
626
767
|
/** Application `data-*` metadata on the menu root. */
|
|
627
768
|
rootAttributes?: PopupMenuDataAttributes;
|
|
628
769
|
/** Native named-slot assignment when composed inside a web component. */
|
|
@@ -664,9 +805,9 @@ declare function closePopupMenu(menu: PopupMenuElement): void;
|
|
|
664
805
|
* submenus appear above or below their parent menu so their rows do not cover
|
|
665
806
|
* the parent list.
|
|
666
807
|
*/
|
|
667
|
-
declare function PopupMenu({ text, label, icon, triggerContent, items, placement, caret, disabled, rootAttributes, slot, context, anchor, }: PopupMenuProps): SafeHtml;
|
|
808
|
+
declare function PopupMenu({ text, label, icon, triggerContent, items, placement, caret, disabled, emphasis, size, rootAttributes, slot, context, anchor, popupNote, embedded, embeddedSubmenu, }: PopupMenuProps): SafeHtml;
|
|
668
809
|
|
|
669
|
-
export { PopupMenu, type PopupMenuAnchor, type PopupMenuDivider, type PopupMenuElement, type PopupMenuEntry, type PopupMenuHeading, type PopupMenuItem, type PopupMenuPlacement, type PopupMenuProps, closePopupMenu, openPopupMenu, openPopupMenuAt };
|
|
810
|
+
export { PopupMenu, type PopupMenuAnchor, type PopupMenuDivider, type PopupMenuElement, type PopupMenuEmphasis, type PopupMenuEntry, type PopupMenuHeading, type PopupMenuItem, type PopupMenuPlacement, type PopupMenuProps, type PopupMenuSize, closePopupMenu, openPopupMenu, openPopupMenuAt };
|
|
670
811
|
```
|
|
671
812
|
|
|
672
813
|
## `@kerfjs/ui/list-header`
|
|
@@ -674,6 +815,7 @@ export { PopupMenu, type PopupMenuAnchor, type PopupMenuDivider, type PopupMenuE
|
|
|
674
815
|
```ts
|
|
675
816
|
import { SafeHtml } from 'kerfjs';
|
|
676
817
|
import { HeadingLevel } from './toolbar-text.js';
|
|
818
|
+
import './extension-attributes-IJ4decoa.js';
|
|
677
819
|
import './css-values.js';
|
|
678
820
|
|
|
679
821
|
type ListHeaderRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
|
|
@@ -719,6 +861,11 @@ interface ListHeaderBaseProps {
|
|
|
719
861
|
placeholder?: boolean;
|
|
720
862
|
rootAttributes?: ListHeaderRootAttributes;
|
|
721
863
|
triggerAttributes?: ListHeaderTriggerAttributes;
|
|
864
|
+
/**
|
|
865
|
+
* The id of the region the header's toggle or action shows or hides,
|
|
866
|
+
* reported as `aria-controls` on its trigger.
|
|
867
|
+
*/
|
|
868
|
+
controls?: string;
|
|
722
869
|
/** Native named-slot assignment when composed inside a web component. */
|
|
723
870
|
slot?: string;
|
|
724
871
|
}
|
|
@@ -770,11 +917,13 @@ type ListHeaderIndicatorProps = {
|
|
|
770
917
|
} | {
|
|
771
918
|
count?: never;
|
|
772
919
|
countLabel?: never;
|
|
773
|
-
|
|
774
|
-
|
|
920
|
+
/** Non-count indicator text or content; ListHeader wraps it in its own compact Badge. */
|
|
921
|
+
badge?: string | SafeHtml | undefined;
|
|
922
|
+
/** Status text or content, wrapped in its own compact Badge after `badge`. */
|
|
923
|
+
status?: string | SafeHtml | undefined;
|
|
775
924
|
};
|
|
776
925
|
type ListHeaderProps = ListHeaderBaseProps & ListHeaderIndicatorProps & ListHeaderModeProps;
|
|
777
|
-
declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, placeholder, rootAttributes, triggerAttributes, slot, }: ListHeaderProps): SafeHtml;
|
|
926
|
+
declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, placeholder, rootAttributes, triggerAttributes, controls, slot, }: ListHeaderProps): SafeHtml;
|
|
778
927
|
|
|
779
928
|
export { ListHeader, type ListHeaderProps };
|
|
780
929
|
```
|
|
@@ -784,7 +933,7 @@ export { ListHeader, type ListHeaderProps };
|
|
|
784
933
|
```ts
|
|
785
934
|
import * as kerfjs from 'kerfjs';
|
|
786
935
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
787
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
936
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
788
937
|
import { H as HorizontalAlignment, L as ListVerticalAlignment } from './flex-alignment-4ms8ZbV8.js';
|
|
789
938
|
export { V as VerticalAlignment } from './flex-alignment-4ms8ZbV8.js';
|
|
790
939
|
import { S as ScrollClearance } from './scroll-clearance-BikHljTc.js';
|
|
@@ -827,12 +976,23 @@ type ListInset = 'document';
|
|
|
827
976
|
* `contentWidth`.
|
|
828
977
|
*/
|
|
829
978
|
type ListContentWidth = 'compact' | 'medium' | 'wide';
|
|
830
|
-
|
|
979
|
+
/**
|
|
980
|
+
* How a List's rows are selected: `single` makes it a labeled
|
|
981
|
+
* `role="listbox"` of options (`SummaryRow`, `ContentItem
|
|
982
|
+
* selectionMode="single"`); `multiple` makes it a labeled multi-select grid
|
|
983
|
+
* of `ContentItem selectionMode="multiple"` rows.
|
|
984
|
+
*/
|
|
985
|
+
type ListSelectionMode = 'single' | 'multiple';
|
|
986
|
+
/**
|
|
987
|
+
* A landmark a List names itself as: `region` renders `role="region"`, for a
|
|
988
|
+
* stack people navigate to by name (a reader, a result picker, a board
|
|
989
|
+
* column); `group` renders `role="group"`, for content that belongs together
|
|
990
|
+
* under one name (a read-only field preview named by its `FieldLabel`). Either
|
|
991
|
+
* takes a name: `ariaLabel`, or `labelledBy`, the id of a visible label.
|
|
992
|
+
*/
|
|
993
|
+
type ListLandmark = 'region' | 'group';
|
|
994
|
+
interface ListBaseProps {
|
|
831
995
|
children?: KerfUiContent;
|
|
832
|
-
/** Make this list a labeled multi-select grid for `ContentItem selectionMode="multiple"` rows. */
|
|
833
|
-
selectionMode?: 'multiple';
|
|
834
|
-
/** Accessible name for the multi-select grid. */
|
|
835
|
-
ariaLabel?: string;
|
|
836
996
|
/** Standard gap (`true`), one spacing value, or separate column and row values. Defaults to no gap. */
|
|
837
997
|
gap?: boolean | UiGap;
|
|
838
998
|
/** Allow this list to grow/shrink, use a keyword, or supply a typed CSS flex shorthand. */
|
|
@@ -912,14 +1072,122 @@ interface ListProps {
|
|
|
912
1072
|
*/
|
|
913
1073
|
id?: string;
|
|
914
1074
|
/**
|
|
915
|
-
*
|
|
916
|
-
* `
|
|
917
|
-
|
|
1075
|
+
* Hide the list (`hidden`), as the region a `ListHeader` toggle with
|
|
1076
|
+
* `controls` collapses.
|
|
1077
|
+
*/
|
|
1078
|
+
hidden?: boolean;
|
|
1079
|
+
/**
|
|
1080
|
+
* Safe `data-*`, `aria-*`, and structural `role` metadata (`aria-busy`, a
|
|
1081
|
+
* drop target's role); List-owned structural attributes remain protected,
|
|
1082
|
+
* and a selectable or landmark List owns its role and name. Name a region
|
|
1083
|
+
* or group with `landmark` and `ariaLabel` or `labelledBy`, which a view
|
|
1084
|
+
* document can carry.
|
|
918
1085
|
*/
|
|
919
1086
|
rootAttributes?: ListRootAttributes;
|
|
920
1087
|
/** Native named-slot assignment when composed inside a web component. */
|
|
921
1088
|
slot?: string;
|
|
922
1089
|
}
|
|
1090
|
+
type ListProps = ListBaseProps & ({
|
|
1091
|
+
/**
|
|
1092
|
+
* Make this list a labeled single-select `role="listbox"` of options
|
|
1093
|
+
* (`single`) or a labeled multi-select grid of `ContentItem
|
|
1094
|
+
* selectionMode="multiple"` rows (`multiple`). Omitted, the List is
|
|
1095
|
+
* layout only.
|
|
1096
|
+
*/
|
|
1097
|
+
selectionMode?: never;
|
|
1098
|
+
/**
|
|
1099
|
+
* Name this list as a landmark: `region` or `group` renders that role,
|
|
1100
|
+
* named by `ariaLabel` or `labelledBy`. Not combined with
|
|
1101
|
+
* `selectionMode`.
|
|
1102
|
+
*/
|
|
1103
|
+
landmark?: never;
|
|
1104
|
+
/**
|
|
1105
|
+
* Accessible name for the listbox, grid, or landmark; required with
|
|
1106
|
+
* `selectionMode`, or with `landmark` unless `labelledBy` names it.
|
|
1107
|
+
*/
|
|
1108
|
+
ariaLabel?: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* The id of the visible element that names a landmark List (a
|
|
1111
|
+
* `FieldLabel id`), rendered as `aria-labelledby`, in place of
|
|
1112
|
+
* `ariaLabel`.
|
|
1113
|
+
*/
|
|
1114
|
+
labelledBy?: never;
|
|
1115
|
+
} | {
|
|
1116
|
+
/**
|
|
1117
|
+
* Make this list a labeled single-select `role="listbox"` of options
|
|
1118
|
+
* (`single`) or a labeled multi-select grid of `ContentItem
|
|
1119
|
+
* selectionMode="multiple"` rows (`multiple`). Omitted, the List is
|
|
1120
|
+
* layout only.
|
|
1121
|
+
*/
|
|
1122
|
+
selectionMode: ListSelectionMode;
|
|
1123
|
+
/**
|
|
1124
|
+
* Name this list as a landmark: `region` or `group` renders that role,
|
|
1125
|
+
* named by `ariaLabel` or `labelledBy`. Not combined with
|
|
1126
|
+
* `selectionMode`.
|
|
1127
|
+
*/
|
|
1128
|
+
landmark?: never;
|
|
1129
|
+
/**
|
|
1130
|
+
* Accessible name for the listbox, grid, or landmark; required with
|
|
1131
|
+
* `selectionMode`, or with `landmark` unless `labelledBy` names it.
|
|
1132
|
+
*/
|
|
1133
|
+
ariaLabel: string;
|
|
1134
|
+
/**
|
|
1135
|
+
* The id of the visible element that names a landmark List (a
|
|
1136
|
+
* `FieldLabel id`), rendered as `aria-labelledby`, in place of
|
|
1137
|
+
* `ariaLabel`.
|
|
1138
|
+
*/
|
|
1139
|
+
labelledBy?: never;
|
|
1140
|
+
} | {
|
|
1141
|
+
/**
|
|
1142
|
+
* Make this list a labeled single-select `role="listbox"` of options
|
|
1143
|
+
* (`single`) or a labeled multi-select grid of `ContentItem
|
|
1144
|
+
* selectionMode="multiple"` rows (`multiple`). Omitted, the List is
|
|
1145
|
+
* layout only.
|
|
1146
|
+
*/
|
|
1147
|
+
selectionMode?: never;
|
|
1148
|
+
/**
|
|
1149
|
+
* Name this list as a landmark: `region` or `group` renders that role,
|
|
1150
|
+
* named by `ariaLabel` or `labelledBy`. Not combined with
|
|
1151
|
+
* `selectionMode`.
|
|
1152
|
+
*/
|
|
1153
|
+
landmark: ListLandmark;
|
|
1154
|
+
/**
|
|
1155
|
+
* Accessible name for the listbox, grid, or landmark; required with
|
|
1156
|
+
* `selectionMode`, or with `landmark` unless `labelledBy` names it.
|
|
1157
|
+
*/
|
|
1158
|
+
ariaLabel: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* The id of the visible element that names a landmark List (a
|
|
1161
|
+
* `FieldLabel id`), rendered as `aria-labelledby`, in place of
|
|
1162
|
+
* `ariaLabel`.
|
|
1163
|
+
*/
|
|
1164
|
+
labelledBy?: never;
|
|
1165
|
+
} | {
|
|
1166
|
+
/**
|
|
1167
|
+
* Make this list a labeled single-select `role="listbox"` of options
|
|
1168
|
+
* (`single`) or a labeled multi-select grid of `ContentItem
|
|
1169
|
+
* selectionMode="multiple"` rows (`multiple`). Omitted, the List is
|
|
1170
|
+
* layout only.
|
|
1171
|
+
*/
|
|
1172
|
+
selectionMode?: never;
|
|
1173
|
+
/**
|
|
1174
|
+
* Name this list as a landmark: `region` or `group` renders that role,
|
|
1175
|
+
* named by `ariaLabel` or `labelledBy`. Not combined with
|
|
1176
|
+
* `selectionMode`.
|
|
1177
|
+
*/
|
|
1178
|
+
landmark: ListLandmark;
|
|
1179
|
+
/**
|
|
1180
|
+
* Accessible name for the listbox, grid, or landmark; required with
|
|
1181
|
+
* `selectionMode`, or with `landmark` unless `labelledBy` names it.
|
|
1182
|
+
*/
|
|
1183
|
+
ariaLabel?: never;
|
|
1184
|
+
/**
|
|
1185
|
+
* The id of the visible element that names a landmark List (a
|
|
1186
|
+
* `FieldLabel id`), rendered as `aria-labelledby`, in place of
|
|
1187
|
+
* `ariaLabel`.
|
|
1188
|
+
*/
|
|
1189
|
+
labelledBy: string;
|
|
1190
|
+
});
|
|
923
1191
|
/**
|
|
924
1192
|
* A list's configuration, apart from its content and styling hooks: the props a
|
|
925
1193
|
* composite that renders a `List` for the app (the Workbench's `mainHeader` /
|
|
@@ -928,9 +1196,9 @@ interface ListProps {
|
|
|
928
1196
|
*/
|
|
929
1197
|
type ListConfig = Pick<ListProps, 'gap' | 'hAlign' | 'vAlign' | 'dividerSides' | 'textInsets' | 'controlInsets'>;
|
|
930
1198
|
/** A stretch-aligned vertical stack with optional gap, flex, fill, scroll, and dividers. */
|
|
931
|
-
declare function List({ children, selectionMode, ariaLabel, gap, flex, fill, hAlign, vAlign, scrollable, scrollClearance, frame, maxHeight, minHeight, surface, inset, contentWidth, contentAlign, dividerSides, textInsets, controlInsets, className, id, rootAttributes, slot, }: ListProps): kerfjs.SafeHtml;
|
|
1199
|
+
declare function List({ children, selectionMode, landmark, ariaLabel, labelledBy, gap, flex, fill, hAlign, vAlign, scrollable, scrollClearance, frame, maxHeight, minHeight, surface, inset, contentWidth, contentAlign, dividerSides, textInsets, controlInsets, className, id, hidden, rootAttributes, slot, }: ListProps): kerfjs.SafeHtml;
|
|
932
1200
|
|
|
933
|
-
export { CssFlex, CssFlexKeyword, CssLength, HorizontalAlignment, List, type ListConfig, type ListContentWidth, type ListInset, type ListProps, type ListSurface, ListVerticalAlignment, ScrollClearance, Sides, UiGap };
|
|
1201
|
+
export { CssFlex, CssFlexKeyword, CssLength, HorizontalAlignment, List, type ListConfig, type ListContentWidth, type ListInset, type ListLandmark, type ListProps, type ListSelectionMode, type ListSurface, ListVerticalAlignment, ScrollClearance, Sides, UiGap };
|
|
934
1202
|
```
|
|
935
1203
|
|
|
936
1204
|
## `@kerfjs/ui/list-action-row`
|
|
@@ -975,7 +1243,7 @@ type ListActionRowTrailingAttributes = Readonly<Record<`data-${string}`, string
|
|
|
975
1243
|
interface ListActionRowTrailingMenu {
|
|
976
1244
|
/** Accessible name of the icon-only menu trigger, such as `Actions for report.json`. */
|
|
977
1245
|
label: string;
|
|
978
|
-
/** Decorative trigger icon, typically a `
|
|
1246
|
+
/** Decorative trigger icon, typically a `Ellipsis` `LucideIcon`. */
|
|
979
1247
|
icon: SafeHtml;
|
|
980
1248
|
/** The menu's commands, headings, and dividers; items dispatch their own `data-action`s. */
|
|
981
1249
|
items: readonly PopupMenuEntry[];
|
|
@@ -1134,6 +1402,7 @@ export { ListIconTile, ListItem, ListItemLink, type ListItemLinkProps, type List
|
|
|
1134
1402
|
```ts
|
|
1135
1403
|
import * as kerfjs from 'kerfjs';
|
|
1136
1404
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1405
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
1137
1406
|
import { S as Sides } from './sides-BPSWde0A.js';
|
|
1138
1407
|
|
|
1139
1408
|
interface ListInsetControlProps {
|
|
@@ -1144,6 +1413,9 @@ interface ListInsetControlProps {
|
|
|
1144
1413
|
className?: string;
|
|
1145
1414
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1146
1415
|
slot?: string;
|
|
1416
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
1417
|
+
* editor node marker; the component's own markers stay protected. */
|
|
1418
|
+
rootAttributes?: RootDataAttributes;
|
|
1147
1419
|
}
|
|
1148
1420
|
/**
|
|
1149
1421
|
* Insets a control into a pane/list content region: an 8px inline margin (so its
|
|
@@ -1151,7 +1423,7 @@ interface ListInsetControlProps {
|
|
|
1151
1423
|
* Use it for controls that carry their own border and padding but no outer margin
|
|
1152
1424
|
* — the wrapper adds only the alignment margin and layout, not a second inset.
|
|
1153
1425
|
*/
|
|
1154
|
-
declare function ListInsetControl({ children, sides, className, slot, }: ListInsetControlProps): kerfjs.SafeHtml;
|
|
1426
|
+
declare function ListInsetControl({ children, sides, className, slot, rootAttributes, }: ListInsetControlProps): kerfjs.SafeHtml;
|
|
1155
1427
|
|
|
1156
1428
|
export { ListInsetControl, type ListInsetControlProps, Sides };
|
|
1157
1429
|
```
|
|
@@ -1198,9 +1470,9 @@ import * as kerfjs from 'kerfjs';
|
|
|
1198
1470
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1199
1471
|
import { CssColor } from './css-values.js';
|
|
1200
1472
|
import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
|
|
1201
|
-
import { S as SurfaceTint } from './surface-tint-DQgYCaP9.js';
|
|
1473
|
+
import { S as SurfaceTint, a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
1202
1474
|
import { BackdropImagePosition, BackdropImageParallax, BackdropImageBlur, BackdropImageScrim } from './backdrop-image.js';
|
|
1203
|
-
import './extension-attributes-
|
|
1475
|
+
import './extension-attributes-IJ4decoa.js';
|
|
1204
1476
|
|
|
1205
1477
|
/**
|
|
1206
1478
|
* Base surface treatment, semantic status colors, or `brand-loud`: the solid
|
|
@@ -1234,7 +1506,10 @@ interface ContentItemMedia {
|
|
|
1234
1506
|
blurredSrc?: string;
|
|
1235
1507
|
/** Shared BackdropImage blur behavior; use instead of `blurredSrc`. */
|
|
1236
1508
|
blur?: BackdropImageBlur;
|
|
1237
|
-
/**
|
|
1509
|
+
/**
|
|
1510
|
+
* Skip offscreen media painting in long feeds while retaining card geometry.
|
|
1511
|
+
* A large scroll jump paints newly visible heroes blank for a frame.
|
|
1512
|
+
*/
|
|
1238
1513
|
deferOffscreen?: boolean;
|
|
1239
1514
|
/** Color the image dissolves into and the card body continues on. */
|
|
1240
1515
|
fadeTo?: CssColor;
|
|
@@ -1287,6 +1562,13 @@ interface ContentItemBaseProps {
|
|
|
1287
1562
|
media?: ContentItemMedia;
|
|
1288
1563
|
/** App-sampled image color, scoped to this card once its image loads. */
|
|
1289
1564
|
tint?: SurfaceTint;
|
|
1565
|
+
/**
|
|
1566
|
+
* Scope this surface and its subtree to the light or dark palette, whatever
|
|
1567
|
+
* the page's scheme (a light card on a dark page). A `tint` already sets
|
|
1568
|
+
* its scheme; pass `scheme` alone for the plain palette, or with a tint
|
|
1569
|
+
* only when they agree.
|
|
1570
|
+
*/
|
|
1571
|
+
scheme?: SurfaceTintScheme;
|
|
1290
1572
|
/** Item content; a plain string is allowed for bare copy. */
|
|
1291
1573
|
children?: KerfUiContent | string;
|
|
1292
1574
|
/**
|
|
@@ -1363,7 +1645,7 @@ type ContentItemProps = ContentItemBaseProps & ({
|
|
|
1363
1645
|
* border (transparent unless `framed`), 8px padding, and a rounded or pill
|
|
1364
1646
|
* radius. It owns that whole geometry, so wrappers must not add more.
|
|
1365
1647
|
*/
|
|
1366
|
-
declare function ContentItem({ appearance, media, tint, children, frame, flush, shape, bubble, title, ariaLabel, focusTarget, outlined, tabIndex, gridRow, interactive, action, itemId, selectionMode, selected, disabled, className, rootAttributes, slot, }: ContentItemProps): kerfjs.SafeHtml;
|
|
1648
|
+
declare function ContentItem({ appearance, media, tint, scheme, children, frame, flush, shape, bubble, title, ariaLabel, focusTarget, outlined, tabIndex, gridRow, interactive, action, itemId, selectionMode, selected, disabled, className, rootAttributes, slot, }: ContentItemProps): kerfjs.SafeHtml;
|
|
1367
1649
|
|
|
1368
1650
|
export { ContentItem, type ContentItemAppearance, type ContentItemBubble, type ContentItemFrame, type ContentItemMedia, type ContentItemProps, type ContentItemSelectionMode, type ContentItemShape, SemanticTone };
|
|
1369
1651
|
```
|
|
@@ -1374,6 +1656,7 @@ export { ContentItem, type ContentItemAppearance, type ContentItemBubble, type C
|
|
|
1374
1656
|
import * as kerfjs from 'kerfjs';
|
|
1375
1657
|
import { SafeHtml } from 'kerfjs';
|
|
1376
1658
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1659
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
1377
1660
|
import { CssLength } from './css-values.js';
|
|
1378
1661
|
|
|
1379
1662
|
interface ValueTableRowProps {
|
|
@@ -1385,8 +1668,11 @@ interface ValueTableRowProps {
|
|
|
1385
1668
|
placeholder?: boolean;
|
|
1386
1669
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1387
1670
|
slot?: string;
|
|
1671
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
1672
|
+
* editor node marker; the component's own markers stay protected. */
|
|
1673
|
+
rootAttributes?: RootDataAttributes;
|
|
1388
1674
|
}
|
|
1389
|
-
declare function ValueTableRow({ label, value, icon, className, placeholder, slot, }: ValueTableRowProps): SafeHtml;
|
|
1675
|
+
declare function ValueTableRow({ label, value, icon, className, placeholder, slot, rootAttributes, }: ValueTableRowProps): SafeHtml;
|
|
1390
1676
|
|
|
1391
1677
|
/** `columns` keeps label and value side by side; `stacked` puts each value under its label. */
|
|
1392
1678
|
type ValueTablePresentation = 'columns' | 'stacked';
|
|
@@ -1413,8 +1699,11 @@ interface ValueTableProps {
|
|
|
1413
1699
|
children: KerfUiContent;
|
|
1414
1700
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1415
1701
|
slot?: string;
|
|
1702
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
1703
|
+
* editor node marker; the component's own markers stay protected. */
|
|
1704
|
+
rootAttributes?: RootDataAttributes;
|
|
1416
1705
|
}
|
|
1417
|
-
declare function ValueTable({ label, density, labelWidth, presentation, stackBelow, className, children, slot, }: ValueTableProps): kerfjs.SafeHtml;
|
|
1706
|
+
declare function ValueTable({ label, density, labelWidth, presentation, stackBelow, className, children, slot, rootAttributes, }: ValueTableProps): kerfjs.SafeHtml;
|
|
1418
1707
|
|
|
1419
1708
|
export { ValueTable, type ValueTablePresentation, type ValueTableProps, ValueTableRow, type ValueTableRowProps, type ValueTableStackBelow };
|
|
1420
1709
|
```
|
|
@@ -1435,7 +1724,6 @@ type TabBarItemRootAttributes = Readonly<Record<`data-${string}`, string | undef
|
|
|
1435
1724
|
'data-attention'?: never;
|
|
1436
1725
|
'data-drop-target'?: never;
|
|
1437
1726
|
'data-name-overflow'?: never;
|
|
1438
|
-
'data-pinned'?: never;
|
|
1439
1727
|
'data-disabled'?: never;
|
|
1440
1728
|
}>;
|
|
1441
1729
|
type TabBarItemPresentation = 'pill' | 'segmented' | 'icon-only';
|
|
@@ -1455,8 +1743,7 @@ interface TabBarItemProps {
|
|
|
1455
1743
|
attention?: boolean;
|
|
1456
1744
|
/** Highlight this tab as the target of a drag over its content. */
|
|
1457
1745
|
dropTarget?: boolean;
|
|
1458
|
-
/**
|
|
1459
|
-
pinned?: boolean;
|
|
1746
|
+
/** Show the tab's close button (default `true`); `false` makes a fixed tab. */
|
|
1460
1747
|
closable?: boolean;
|
|
1461
1748
|
draggable?: boolean;
|
|
1462
1749
|
leading?: KerfUiContent;
|
|
@@ -1467,7 +1754,13 @@ interface TabBarItemProps {
|
|
|
1467
1754
|
size?: TabBarItemSize;
|
|
1468
1755
|
/** Maximum visible label width in CSS pixels before ellipsis. */
|
|
1469
1756
|
labelMaxWidth?: number;
|
|
1470
|
-
/**
|
|
1757
|
+
/**
|
|
1758
|
+
* `'ellipsis'` (default): in a narrowing intrinsic TabBar the tab gives up
|
|
1759
|
+
* width by ellipsizing its name down to a few characters before the strip
|
|
1760
|
+
* scrolls, and `wireTabBars` gives a truncated tab its full name as a
|
|
1761
|
+
* `title`. `'visible'` keeps the full name visible (and the tab at its full
|
|
1762
|
+
* width) for an inline loading treatment.
|
|
1763
|
+
*/
|
|
1471
1764
|
nameOverflow?: TabBarItemNameOverflow;
|
|
1472
1765
|
/** Decorative dormant content for the close button. Must not contain interactive descendants. */
|
|
1473
1766
|
closeIcon?: SafeHtml;
|
|
@@ -1491,7 +1784,7 @@ interface TabBarItemProps {
|
|
|
1491
1784
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1492
1785
|
slot?: string;
|
|
1493
1786
|
}
|
|
1494
|
-
declare function TabBarItem({ id, name, selected, disabled, tabId, panelId, attention, dropTarget,
|
|
1787
|
+
declare function TabBarItem({ id, name, selected, disabled, tabId, panelId, attention, dropTarget, closable, draggable, leading, trailing, presentation, size, labelMaxWidth, nameOverflow, closeIcon, selectAction, closeAction, className, placeholder, pending, rootAttributes, slot, }: TabBarItemProps): SafeHtml;
|
|
1495
1788
|
|
|
1496
1789
|
export { TabBarItem, type TabBarItemNameOverflow, type TabBarItemPresentation, type TabBarItemProps, type TabBarItemSize };
|
|
1497
1790
|
```
|
|
@@ -1501,10 +1794,13 @@ export { TabBarItem, type TabBarItemNameOverflow, type TabBarItemPresentation, t
|
|
|
1501
1794
|
```ts
|
|
1502
1795
|
import * as kerfjs from 'kerfjs';
|
|
1503
1796
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1797
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
1504
1798
|
|
|
1505
1799
|
type TabActivation = 'automatic' | 'manual';
|
|
1506
1800
|
type TabBarAllocation = 'intrinsic' | 'fill';
|
|
1507
1801
|
type TabBarPresentation = 'rail' | 'segmented' | 'inspector';
|
|
1802
|
+
/** A segmented strip's outline: a pill track, or the shared control radius. */
|
|
1803
|
+
type TabBarShape = 'pill' | 'rounded';
|
|
1508
1804
|
type TabBarTrailingPlacement = 'separate' | 'adjacent';
|
|
1509
1805
|
/** Tablist width where segmented TabBarItems switch to icon-only. */
|
|
1510
1806
|
type TabBarIconOnlyAt = 'wide' | 'narrow' | 'compact';
|
|
@@ -1533,19 +1829,29 @@ interface TabBarProps {
|
|
|
1533
1829
|
allocation?: TabBarAllocation;
|
|
1534
1830
|
/** Named strip chrome for application rails, segmented tabs, or inspectors. */
|
|
1535
1831
|
presentation?: TabBarPresentation;
|
|
1832
|
+
/**
|
|
1833
|
+
* A segmented strip's shape: `pill` (default), a pill track whose outer
|
|
1834
|
+
* tabs follow its ends, or `rounded`, a track at the shared control radius
|
|
1835
|
+
* (a field's or Button's) whose every tab is concentric with it, as in a
|
|
1836
|
+
* narrow sidebar. Other presentations ignore it.
|
|
1837
|
+
*/
|
|
1838
|
+
shape?: TabBarShape;
|
|
1536
1839
|
/** Switch segmented TabBarItems to icon-only at tablist widths of 832, 704, or 448px. Each tab needs a leading icon. */
|
|
1537
1840
|
iconOnlyAt?: TabBarIconOnlyAt;
|
|
1538
1841
|
/** Keep a trailing action beside the final tab or at the far edge of the bar. */
|
|
1539
1842
|
trailingPlacement?: TabBarTrailingPlacement;
|
|
1540
|
-
/** Settle scrolling peers at whole-tab starts;
|
|
1843
|
+
/** Settle scrolling peers at whole-tab starts; the first visible tab aligns with the strip edge. */
|
|
1541
1844
|
snapTabs?: boolean;
|
|
1542
1845
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1543
1846
|
slot?: string;
|
|
1847
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
1848
|
+
* editor node marker; the component's own markers stay protected. */
|
|
1849
|
+
rootAttributes?: RootDataAttributes;
|
|
1544
1850
|
}
|
|
1545
1851
|
/** Render a controlled tab strip. The application owns selection, order, and persistence. */
|
|
1546
|
-
declare function TabBar({ id, label, children, leading, trailing, end, className, activation, allocation, presentation, iconOnlyAt, trailingPlacement, snapTabs, slot, }: TabBarProps): kerfjs.SafeHtml;
|
|
1852
|
+
declare function TabBar({ id, label, children, leading, trailing, end, className, activation, allocation, presentation, shape, iconOnlyAt, trailingPlacement, snapTabs, slot, rootAttributes, }: TabBarProps): kerfjs.SafeHtml;
|
|
1547
1853
|
|
|
1548
|
-
export { type TabActivation, TabBar, type TabBarAllocation, type TabBarIconOnlyAt, type TabBarPresentation, type TabBarProps, type TabBarTrailingPlacement };
|
|
1854
|
+
export { type TabActivation, TabBar, type TabBarAllocation, type TabBarIconOnlyAt, type TabBarPresentation, type TabBarProps, type TabBarShape, type TabBarTrailingPlacement };
|
|
1549
1855
|
```
|
|
1550
1856
|
|
|
1551
1857
|
## `@kerfjs/ui/wire-tab-bars`
|
|
@@ -1554,6 +1860,7 @@ export { type TabActivation, TabBar, type TabBarAllocation, type TabBarIconOnlyA
|
|
|
1554
1860
|
import { TabActivation } from './tab-bar.js';
|
|
1555
1861
|
import 'kerfjs';
|
|
1556
1862
|
import './semantic-content-BbzjvSu9.js';
|
|
1863
|
+
import './extension-attributes-IJ4decoa.js';
|
|
1557
1864
|
|
|
1558
1865
|
type TabReorderSource = 'pointer' | 'keyboard';
|
|
1559
1866
|
type TabDropPosition = 'before' | 'after';
|
|
@@ -1771,18 +2078,42 @@ declare function wireListFocusScroll(root: Root): () => void;
|
|
|
1771
2078
|
export { wireListFocusScroll };
|
|
1772
2079
|
```
|
|
1773
2080
|
|
|
2081
|
+
## `@kerfjs/ui/wire-summary-rows`
|
|
2082
|
+
|
|
2083
|
+
```ts
|
|
2084
|
+
/**
|
|
2085
|
+
* Give `SummaryRow` options in a `List selectionMode="single"` listbox the
|
|
2086
|
+
* listbox keyboard with one delegated listener set: the listbox is one Tab
|
|
2087
|
+
* stop (roving `tabindex` on the last focused option, else the selected one,
|
|
2088
|
+
* else the first), Up/Down/Home/End move focus between options, and
|
|
2089
|
+
* Enter/Space select the focused option by dispatching its click (Space on
|
|
2090
|
+
* release), so the app's ordinary delegated `data-action` click handler
|
|
2091
|
+
* changes the selection. The click mirrors the key's Shift, Ctrl, and Meta
|
|
2092
|
+
* state; Alt-modified keys and Ctrl/Meta-modified movement keys are left to
|
|
2093
|
+
* the platform. Kerf skips any key event that is already `defaultPrevented`,
|
|
2094
|
+
* so an app overrides a key by handling it first (on the option, in the
|
|
2095
|
+
* capture phase, or from a listener added to the same root before wiring) and
|
|
2096
|
+
* calling `preventDefault()`. A `semanticRole="group"` row is not managed.
|
|
2097
|
+
* Returns a disposer.
|
|
2098
|
+
*/
|
|
2099
|
+
declare function wireSummaryRows(root: HTMLElement): () => void;
|
|
2100
|
+
|
|
2101
|
+
export { wireSummaryRows };
|
|
2102
|
+
```
|
|
2103
|
+
|
|
1774
2104
|
## `@kerfjs/ui/nav-stack`
|
|
1775
2105
|
|
|
1776
2106
|
```ts
|
|
1777
|
-
export { c as NavStack, d as NavStackBottomToolbarPresentation, e as NavStackChromePresentation, N as NavStackProps, f as NavStackToolbarConfig, a as NavStackView, g as NavStackViewBottomToolbar, h as NavStackViewToolbar } from './nav-stack-
|
|
2107
|
+
export { c as NavStack, d as NavStackBottomToolbarPresentation, e as NavStackChromePresentation, N as NavStackProps, f as NavStackToolbarConfig, a as NavStackView, g as NavStackViewBottomToolbar, h as NavStackViewToolbar } from './nav-stack-DwxpXxqJ.js';
|
|
1778
2108
|
import 'kerfjs';
|
|
1779
2109
|
import './semantic-content-BbzjvSu9.js';
|
|
2110
|
+
import './extension-attributes-IJ4decoa.js';
|
|
1780
2111
|
import './pane.js';
|
|
1781
2112
|
import './scroll-clearance-BikHljTc.js';
|
|
2113
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
1782
2114
|
import './css-values.js';
|
|
1783
2115
|
import './surface-tint-DQgYCaP9.js';
|
|
1784
2116
|
import './list.js';
|
|
1785
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
1786
2117
|
import './flex-alignment-4ms8ZbV8.js';
|
|
1787
2118
|
import './sides-BPSWde0A.js';
|
|
1788
2119
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -1820,14 +2151,15 @@ export { type WireNavStackOptions, wireNavStack };
|
|
|
1820
2151
|
```ts
|
|
1821
2152
|
import * as kerfjs from 'kerfjs';
|
|
1822
2153
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1823
|
-
import {
|
|
2154
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2155
|
+
import { N as NavStackProps, a as NavStackView } from './nav-stack-DwxpXxqJ.js';
|
|
1824
2156
|
import { ResizableRegionProps } from './resizable-region.js';
|
|
1825
2157
|
import './pane.js';
|
|
1826
2158
|
import './scroll-clearance-BikHljTc.js';
|
|
2159
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
1827
2160
|
import './css-values.js';
|
|
1828
2161
|
import './surface-tint-DQgYCaP9.js';
|
|
1829
2162
|
import './list.js';
|
|
1830
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
1831
2163
|
import './flex-alignment-4ms8ZbV8.js';
|
|
1832
2164
|
import './sides-BPSWde0A.js';
|
|
1833
2165
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -1910,6 +2242,9 @@ interface SplitViewProps {
|
|
|
1910
2242
|
className?: string;
|
|
1911
2243
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1912
2244
|
slot?: string;
|
|
2245
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
2246
|
+
* editor node marker; the component's own markers stay protected. */
|
|
2247
|
+
rootAttributes?: RootDataAttributes;
|
|
1913
2248
|
}
|
|
1914
2249
|
/**
|
|
1915
2250
|
* A list-detail split. On roomy classes it shows both panes side
|
|
@@ -1918,7 +2253,7 @@ interface SplitViewProps {
|
|
|
1918
2253
|
* resizable wiring with `wireResizableRegions` and the compact back with
|
|
1919
2254
|
* `wireNavStack`.
|
|
1920
2255
|
*/
|
|
1921
|
-
declare function SplitView({ id, label, list, detail, compact, detailActive, listTitle, detailTitle, backLabel, compactStack, resizable, listWidth, className, slot, }: SplitViewProps): kerfjs.SafeHtml;
|
|
2256
|
+
declare function SplitView({ id, label, list, detail, compact, detailActive, listTitle, detailTitle, backLabel, compactStack, resizable, listWidth, className, slot, rootAttributes, }: SplitViewProps): kerfjs.SafeHtml;
|
|
1922
2257
|
|
|
1923
2258
|
export { SplitView, type SplitViewCompactStack, type SplitViewCompactViewToolbars, type SplitViewListWidth, type SplitViewProps, type SplitViewResizable };
|
|
1924
2259
|
```
|
|
@@ -1929,9 +2264,9 @@ export { SplitView, type SplitViewCompactStack, type SplitViewCompactViewToolbar
|
|
|
1929
2264
|
import * as kerfjs from 'kerfjs';
|
|
1930
2265
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1931
2266
|
import { S as ScrollClearance } from './scroll-clearance-BikHljTc.js';
|
|
2267
|
+
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
1932
2268
|
import { CssColor } from './css-values.js';
|
|
1933
|
-
import { S as SurfaceTint } from './surface-tint-DQgYCaP9.js';
|
|
1934
|
-
export { a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
2269
|
+
import { S as SurfaceTint, a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
1935
2270
|
|
|
1936
2271
|
/**
|
|
1937
2272
|
* What clear (fully transparent) chrome fades in as content scrolls beneath
|
|
@@ -1953,6 +2288,7 @@ type PaneElement = 'article' | 'aside' | 'div' | 'main' | 'section';
|
|
|
1953
2288
|
type PaneContentElement = 'div' | 'main' | 'nav' | 'section';
|
|
1954
2289
|
type PaneRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
|
|
1955
2290
|
'data-component'?: never;
|
|
2291
|
+
'data-fill'?: never;
|
|
1956
2292
|
'data-separator-block-start'?: never;
|
|
1957
2293
|
'data-separator-block-end'?: never;
|
|
1958
2294
|
'data-separator-inline-start'?: never;
|
|
@@ -2014,6 +2350,8 @@ type PaneChromeDividers = 'scroll' | 'always' | 'none';
|
|
|
2014
2350
|
type PaneHeaderPresentation = 'docked' | 'overlay' | 'clear';
|
|
2015
2351
|
/** Background treatment of the Pane's scrolling work surface. */
|
|
2016
2352
|
type PaneAppearance = 'default' | 'sunken';
|
|
2353
|
+
/** Whether a Pane's scrolling content keeps the browser's scroll anchoring. */
|
|
2354
|
+
type PaneScrollAnchoring = 'auto' | 'none';
|
|
2017
2355
|
interface PaneProps {
|
|
2018
2356
|
/** Optional fixed chrome above the scrolling content, arranged vertically. */
|
|
2019
2357
|
header?: KerfUiContent;
|
|
@@ -2021,6 +2359,15 @@ interface PaneProps {
|
|
|
2021
2359
|
children?: KerfUiContent;
|
|
2022
2360
|
/** Optional fixed chrome below the scrolling content. */
|
|
2023
2361
|
footer?: KerfUiContent;
|
|
2362
|
+
/**
|
|
2363
|
+
* Fill the height of a parent with a definite height, such as an app root
|
|
2364
|
+
* (`.kui-app-root`), a `SizedRegion`, or a grid cell, or take the rest of a
|
|
2365
|
+
* flex column. The header and footer stay pinned and the content scrolls
|
|
2366
|
+
* between them, as in a NavStack view or Workbench region (which fill their
|
|
2367
|
+
* Pane without this prop). Defaults to false: the pane takes its content's
|
|
2368
|
+
* height.
|
|
2369
|
+
*/
|
|
2370
|
+
fill?: boolean;
|
|
2024
2371
|
/**
|
|
2025
2372
|
* Whether the header and footer stay pinned around the scrolling content.
|
|
2026
2373
|
* `fixed` (default) always pins them. `auto` pins them while the pane is
|
|
@@ -2104,6 +2451,13 @@ interface PaneProps {
|
|
|
2104
2451
|
* declared scheme.
|
|
2105
2452
|
*/
|
|
2106
2453
|
tint?: SurfaceTint;
|
|
2454
|
+
/**
|
|
2455
|
+
* Scope this surface and its subtree to the light or dark palette, whatever
|
|
2456
|
+
* the page's scheme (a light card on a dark page). A `tint` already sets
|
|
2457
|
+
* its scheme; pass `scheme` alone for the plain palette, or with a tint
|
|
2458
|
+
* only when they agree.
|
|
2459
|
+
*/
|
|
2460
|
+
scheme?: SurfaceTintScheme;
|
|
2107
2461
|
/**
|
|
2108
2462
|
* Clear chrome that lies over the scrolling content's block-start and/or
|
|
2109
2463
|
* block-end edge, such as a `DialogSurface` floating footer over a filling
|
|
@@ -2118,6 +2472,24 @@ interface PaneProps {
|
|
|
2118
2472
|
deepInset?: boolean;
|
|
2119
2473
|
/** Opt into keyboard (`0`) or programmatic (`-1`) focus on the Pane root. */
|
|
2120
2474
|
tabIndex?: 0 | -1;
|
|
2475
|
+
/**
|
|
2476
|
+
* Names the Pane root as a CSS anchor (`anchor-name`): a dashed ident such
|
|
2477
|
+
* as `--app-main`. A surface that docks to a named anchor, such as a
|
|
2478
|
+
* `PopoverDialogSurface` with the same `anchorName`, then docks to this
|
|
2479
|
+
* pane, so the app names its main column without CSS. A Workbench work
|
|
2480
|
+
* area, panel, or NavStack view takes it through its `PaneConfig`.
|
|
2481
|
+
*/
|
|
2482
|
+
anchorName?: AnchorName;
|
|
2483
|
+
/**
|
|
2484
|
+
* The scrolling content's CSS scroll anchoring (`overflow-anchor`). `auto`
|
|
2485
|
+
* (the default) keeps the browser's anchoring, which holds visible content
|
|
2486
|
+
* still when something above it grows or shrinks. `none` opts the pane
|
|
2487
|
+
* out: use it for a pane whose own edits insert or remove rows above the
|
|
2488
|
+
* reader, where Safari can apply a late anchoring jump on an unrelated
|
|
2489
|
+
* reflow, such as an inspector. A Workbench panel, work area, or NavStack
|
|
2490
|
+
* view takes it through its `PaneConfig`.
|
|
2491
|
+
*/
|
|
2492
|
+
scrollAnchoring?: PaneScrollAnchoring;
|
|
2121
2493
|
/** Keep the standard focus outline visible, such as for a drop target. */
|
|
2122
2494
|
outlined?: boolean;
|
|
2123
2495
|
/** Root semantics. Defaults to `div`. */
|
|
@@ -2154,16 +2526,16 @@ interface PaneProps {
|
|
|
2154
2526
|
* or a CollapsiblePanel) forwards, so the app configures that pane instead of
|
|
2155
2527
|
* styling it. An omitted or `undefined` field keeps the composite's default.
|
|
2156
2528
|
*/
|
|
2157
|
-
type PaneConfig = Pick<PaneProps, 'contentElement' | 'contentLabel' | 'separators' | 'safeAreaEdges' | 'chromeDividers' | 'compactChrome' | 'compactChromeOpen' | 'headerPresentation' | 'scrollEdge' | 'scrollEdgeDistance' | 'appearance' | 'background' | 'tint' | 'deepInset' | 'scrollClearance' | 'tabIndex' | 'outlined'>;
|
|
2529
|
+
type PaneConfig = Pick<PaneProps, 'contentElement' | 'contentLabel' | 'separators' | 'safeAreaEdges' | 'chromeDividers' | 'compactChrome' | 'compactChromeOpen' | 'headerPresentation' | 'scrollEdge' | 'scrollEdgeDistance' | 'appearance' | 'background' | 'tint' | 'deepInset' | 'scrollClearance' | 'tabIndex' | 'outlined' | 'anchorName' | 'scrollAnchoring'>;
|
|
2158
2530
|
/**
|
|
2159
2531
|
* An unpadded application column with optional fixed header/footer slots and one
|
|
2160
2532
|
* scrolling vertical content owner. Separator lines are independently opt-in on
|
|
2161
2533
|
* each logical edge, so the same component works as a sidebar, main area,
|
|
2162
2534
|
* inspector, or dialog column.
|
|
2163
2535
|
*/
|
|
2164
|
-
declare function Pane({ header, children, footer, chromePlacement, chromeDividers, compactChrome, compactChromeOpen, headerPresentation, scrollEdge, scrollEdgeDistance, appearance, background, tint, deepInset, scrollClearance, tabIndex, outlined, element, contentElement, separators, safeAreaEdges, id, label, contentLabel, className, headerClassName, contentClassName, footerClassName, rootAttributes, slot, }: PaneProps): kerfjs.SafeHtml;
|
|
2536
|
+
declare function Pane({ header, children, footer, fill, chromePlacement, chromeDividers, compactChrome, compactChromeOpen, headerPresentation, scrollEdge, scrollEdgeDistance, appearance, background, tint, scheme, deepInset, scrollClearance, tabIndex, anchorName, scrollAnchoring, outlined, element, contentElement, separators, safeAreaEdges, id, label, contentLabel, className, headerClassName, contentClassName, footerClassName, rootAttributes, slot, }: PaneProps): kerfjs.SafeHtml;
|
|
2165
2537
|
|
|
2166
|
-
export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlacement, type PaneCompactChrome, type PaneCompactChromePolicy, type PaneConfig, type PaneContentElement, type PaneElement, type PaneHeaderPresentation, type PaneProps, type PaneSeparatorSide, ScrollClearance, type ScrollEdge, SurfaceTint };
|
|
2538
|
+
export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlacement, type PaneCompactChrome, type PaneCompactChromePolicy, type PaneConfig, type PaneContentElement, type PaneElement, type PaneHeaderPresentation, type PaneProps, type PaneScrollAnchoring, type PaneSeparatorSide, ScrollClearance, type ScrollEdge, SurfaceTint, SurfaceTintScheme };
|
|
2167
2539
|
```
|
|
2168
2540
|
|
|
2169
2541
|
## `@kerfjs/ui/workbench`
|
|
@@ -2171,7 +2543,8 @@ export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlac
|
|
|
2171
2543
|
```ts
|
|
2172
2544
|
import { SafeHtml } from 'kerfjs';
|
|
2173
2545
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
2174
|
-
import {
|
|
2546
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2547
|
+
import { b as NavPane, N as NavStackProps } from './nav-stack-DwxpXxqJ.js';
|
|
2175
2548
|
import { ListConfig } from './list.js';
|
|
2176
2549
|
import { PaneConfig } from './pane.js';
|
|
2177
2550
|
import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
|
|
@@ -2180,10 +2553,10 @@ import { ToolbarConfig } from './toolbar.js';
|
|
|
2180
2553
|
import './css-values.js';
|
|
2181
2554
|
import './surface-tint-DQgYCaP9.js';
|
|
2182
2555
|
import './toolbar-text.js';
|
|
2183
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
2184
2556
|
import './flex-alignment-4ms8ZbV8.js';
|
|
2185
2557
|
import './scroll-clearance-BikHljTc.js';
|
|
2186
2558
|
import './sides-BPSWde0A.js';
|
|
2559
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2187
2560
|
import './lucide-icon.js';
|
|
2188
2561
|
import 'lucide';
|
|
2189
2562
|
|
|
@@ -2434,6 +2807,9 @@ interface WorkbenchProps {
|
|
|
2434
2807
|
className?: string;
|
|
2435
2808
|
/** Native named-slot assignment when composed inside a web component. */
|
|
2436
2809
|
slot?: string;
|
|
2810
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
2811
|
+
* editor node marker; the component's own markers stay protected. */
|
|
2812
|
+
rootAttributes?: RootDataAttributes;
|
|
2437
2813
|
}
|
|
2438
2814
|
/**
|
|
2439
2815
|
* The Xcode-like multi-panel workspace: a collapsible left rail, right rail, and
|
|
@@ -2448,7 +2824,7 @@ interface WorkbenchProps {
|
|
|
2448
2824
|
* lives outside it and stays reachable). A panel may opt in to drag and keyboard resizing with
|
|
2449
2825
|
* `resizable`, which `wireWorkbench` drives. See `docs/23-app-layouts.md` §3.3.
|
|
2450
2826
|
*/
|
|
2451
|
-
declare function Workbench({ id, label, main, leftRail, rightRail, bottomDrawer, mainToolbar, mainHeader, mainFooter, mainBottomToolbar, mainHeaderPlacement, mainFooterPlacement, mainPane, mainLabel, mainTabIndex, mainOutlined, mainHeaderList, mainFooterList, mainMinSize, mainMinHeight, overlayBackdrop, className, slot, }: WorkbenchProps): SafeHtml;
|
|
2827
|
+
declare function Workbench({ id, label, main, leftRail, rightRail, bottomDrawer, mainToolbar, mainHeader, mainFooter, mainBottomToolbar, mainHeaderPlacement, mainFooterPlacement, mainPane, mainLabel, mainTabIndex, mainOutlined, mainHeaderList, mainFooterList, mainMinSize, mainMinHeight, overlayBackdrop, className, slot, rootAttributes, }: WorkbenchProps): SafeHtml;
|
|
2452
2828
|
|
|
2453
2829
|
export { Workbench, type WorkbenchChromePlacement, type WorkbenchCompactOverlay, type WorkbenchMainBottomToolbar, type WorkbenchMainToolbar, type WorkbenchNavigationPanel, type WorkbenchPanel, type WorkbenchPanelBottomToolbar, type WorkbenchPanelResizable, type WorkbenchPanelToggle, type WorkbenchPanelToolbar, type WorkbenchProps, type WorkbenchResponsiveOverlayAt, type WorkbenchStaticPanel };
|
|
2454
2830
|
```
|
|
@@ -2579,6 +2955,7 @@ export { type WireWorkbenchOptions, type WireWorkbenchPanel, type WorkbenchPanel
|
|
|
2579
2955
|
```ts
|
|
2580
2956
|
import { SafeHtml } from 'kerfjs';
|
|
2581
2957
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
2958
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2582
2959
|
import { P as PanelSide, a as PanelToolbar, b as PanelChromePlacement, c as PanelBottomToolbar, d as PanelToggle } from './panel-toolbar-vg6Ir5Dy.js';
|
|
2583
2960
|
export { e as collapsiblePanelToggleIcon } from './panel-toolbar-vg6Ir5Dy.js';
|
|
2584
2961
|
import { ToolbarConfig } from './toolbar.js';
|
|
@@ -2589,9 +2966,9 @@ import './lucide-icon.js';
|
|
|
2589
2966
|
import 'lucide';
|
|
2590
2967
|
import './css-values.js';
|
|
2591
2968
|
import './sides-BPSWde0A.js';
|
|
2592
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
2593
2969
|
import './flex-alignment-4ms8ZbV8.js';
|
|
2594
2970
|
import './scroll-clearance-BikHljTc.js';
|
|
2971
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2595
2972
|
import './surface-tint-DQgYCaP9.js';
|
|
2596
2973
|
|
|
2597
2974
|
/** Which edge a {@link CollapsiblePanel} docks to. */
|
|
@@ -2621,6 +2998,9 @@ interface CollapsiblePanelToggleProps {
|
|
|
2621
2998
|
className?: string;
|
|
2622
2999
|
/** Native named-slot assignment when composed inside a web component. */
|
|
2623
3000
|
slot?: string;
|
|
3001
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
3002
|
+
* editor node marker; the component's own markers stay protected. */
|
|
3003
|
+
rootAttributes?: RootDataAttributes;
|
|
2624
3004
|
}
|
|
2625
3005
|
/**
|
|
2626
3006
|
* A standard collapse/expand toggle button for a {@link CollapsiblePanel}: the
|
|
@@ -2629,7 +3009,7 @@ interface CollapsiblePanelToggleProps {
|
|
|
2629
3009
|
* put it in the panel's own header (to collapse) and somewhere always-visible
|
|
2630
3010
|
* (to expand while collapsed).
|
|
2631
3011
|
*/
|
|
2632
|
-
declare function CollapsiblePanelToggle({ side, collapsed, action, panelId, label, className, slot, }: CollapsiblePanelToggleProps): SafeHtml;
|
|
3012
|
+
declare function CollapsiblePanelToggle({ side, collapsed, action, panelId, label, className, slot, rootAttributes, }: CollapsiblePanelToggleProps): SafeHtml;
|
|
2633
3013
|
interface CollapsiblePanelProps {
|
|
2634
3014
|
/** A stable id for the panel — `wireSidebar` targets it and toggles reference it. */
|
|
2635
3015
|
id: string;
|
|
@@ -2679,6 +3059,9 @@ interface CollapsiblePanelProps {
|
|
|
2679
3059
|
restoreControl?: SafeHtml;
|
|
2680
3060
|
restorePosition?: ResizableRegionRestorePosition;
|
|
2681
3061
|
className?: string;
|
|
3062
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
3063
|
+
* editor node marker; the component's own markers stay protected. */
|
|
3064
|
+
rootAttributes?: RootDataAttributes;
|
|
2682
3065
|
}
|
|
2683
3066
|
/**
|
|
2684
3067
|
* A standalone collapsible side rail or bottom drawer, outside the full
|
|
@@ -2696,7 +3079,7 @@ interface CollapsiblePanelProps {
|
|
|
2696
3079
|
* and persistence semantics, and with `CollapsiblePanelToggle` for the standard
|
|
2697
3080
|
* affordance. See `ui/docs/collapsible-panel.md` and `docs/23-app-layouts.md`.
|
|
2698
3081
|
*/
|
|
2699
|
-
declare function CollapsiblePanel({ id, side, collapsed, size, label, tabIndex, outlined, children, toolbar, header, headerList, headerPlacement, footer, footerList, bottomToolbar, footerPlacement, pane, separator, collapseMotion, contentOverflow, presentation, restoreControl, restorePosition, className, }: CollapsiblePanelProps): SafeHtml;
|
|
3082
|
+
declare function CollapsiblePanel({ id, side, collapsed, size, label, tabIndex, outlined, children, toolbar, header, headerList, headerPlacement, footer, footerList, bottomToolbar, footerPlacement, pane, separator, collapseMotion, contentOverflow, presentation, restoreControl, restorePosition, className, rootAttributes, }: CollapsiblePanelProps): SafeHtml;
|
|
2700
3083
|
interface CollapsiblePanelRelocatedProps {
|
|
2701
3084
|
/** The panel's `id`. */
|
|
2702
3085
|
panelId: string;
|
|
@@ -2798,10 +3181,12 @@ export { type SidebarStorage, type WireSidebarOptions, type WireSidebarPanel, wi
|
|
|
2798
3181
|
```ts
|
|
2799
3182
|
import { SafeHtml } from 'kerfjs';
|
|
2800
3183
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3184
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2801
3185
|
import { PaneAppearance, ScrollEdge } from './pane.js';
|
|
2802
3186
|
import { CssColor } from './css-values.js';
|
|
2803
|
-
import { S as SurfaceTint } from './surface-tint-DQgYCaP9.js';
|
|
3187
|
+
import { S as SurfaceTint, a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
2804
3188
|
import './scroll-clearance-BikHljTc.js';
|
|
3189
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2805
3190
|
|
|
2806
3191
|
interface TabNavigatorTabBase<Id extends string> {
|
|
2807
3192
|
id: Id;
|
|
@@ -2823,6 +3208,13 @@ interface TabNavigatorTabBase<Id extends string> {
|
|
|
2823
3208
|
* in the declared scheme, with lightness clamped to keep text at WCAG AA.
|
|
2824
3209
|
*/
|
|
2825
3210
|
tint?: SurfaceTint;
|
|
3211
|
+
/**
|
|
3212
|
+
* Scope this surface and its subtree to the light or dark palette, whatever
|
|
3213
|
+
* the page's scheme (a light card on a dark page). A `tint` already sets
|
|
3214
|
+
* its scheme; pass `scheme` alone for the plain palette, or with a tint
|
|
3215
|
+
* only when they agree.
|
|
3216
|
+
*/
|
|
3217
|
+
scheme?: SurfaceTintScheme;
|
|
2826
3218
|
/** Add 8px to every side of a plain scene's scrolling content. */
|
|
2827
3219
|
deepInset?: boolean;
|
|
2828
3220
|
/** Opt into keyboard (`0`) or programmatic (`-1`) focus on this scene. */
|
|
@@ -2835,12 +3227,15 @@ interface TabNavigatorTabCountBadge {
|
|
|
2835
3227
|
/**
|
|
2836
3228
|
* Optional count or short status shown as a solid danger `Badge` at the
|
|
2837
3229
|
* top-trailing corner of the tab icon (the iOS tab-bar badge). Omitted, `''`,
|
|
2838
|
-
* or non-finite numbers render no badge
|
|
3230
|
+
* a count of 0 or less, or non-finite numbers render no badge, and a count
|
|
3231
|
+
* past `badgeMax` shows `99+`, as on Button. The visual badge is `aria-hidden`;
|
|
2839
3232
|
* its meaning reaches assistive technology through `badgeLabel`.
|
|
2840
3233
|
*
|
|
2841
3234
|
* Pass `true` instead for the text-free dot (new content without a count).
|
|
2842
3235
|
*/
|
|
2843
3236
|
badge?: string | number;
|
|
3237
|
+
/** The largest count shown before `badgeMax+` (default 99). */
|
|
3238
|
+
badgeMax?: number;
|
|
2844
3239
|
/**
|
|
2845
3240
|
* Localized phrase folded into the tab's accessible name as
|
|
2846
3241
|
* `"<label>, <badgeLabel>"` (for example `"3 unread"` → `"Inbox, 3 unread"`).
|
|
@@ -2936,9 +3331,19 @@ interface TabNavigatorProps<Id extends string = string> {
|
|
|
2936
3331
|
* in the declared scheme, with lightness clamped to keep text at WCAG AA.
|
|
2937
3332
|
*/
|
|
2938
3333
|
tint?: SurfaceTint;
|
|
3334
|
+
/**
|
|
3335
|
+
* Scope this surface and its subtree to the light or dark palette, whatever
|
|
3336
|
+
* the page's scheme (a light card on a dark page). A `tint` already sets
|
|
3337
|
+
* its scheme; pass `scheme` alone for the plain palette, or with a tint
|
|
3338
|
+
* only when they agree.
|
|
3339
|
+
*/
|
|
3340
|
+
scheme?: SurfaceTintScheme;
|
|
2939
3341
|
className?: string;
|
|
2940
3342
|
/** Native named-slot assignment when composed inside a web component. */
|
|
2941
3343
|
slot?: string;
|
|
3344
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
3345
|
+
* editor node marker; the component's own markers stay protected. */
|
|
3346
|
+
rootAttributes?: RootDataAttributes;
|
|
2942
3347
|
}
|
|
2943
3348
|
/**
|
|
2944
3349
|
* A mobile-first, iOS-like bottom tab navigator: a bottom tab bar that switches
|
|
@@ -2948,7 +3353,7 @@ interface TabNavigatorProps<Id extends string = string> {
|
|
|
2948
3353
|
* On larger classes, promote the tabs to a `Workbench` rail or sidebar instead of
|
|
2949
3354
|
* a bottom bar. See `docs/23-app-layouts.md` §3.4.
|
|
2950
3355
|
*/
|
|
2951
|
-
declare function TabNavigator<Id extends string>({ id, label, tabs, active, separator, chromeDividers, barPresentation, scrollEdge, scrollEdgeDistance, background, tint, className, slot, }: TabNavigatorProps<Id>): SafeHtml;
|
|
3356
|
+
declare function TabNavigator<Id extends string>({ id, label, tabs, active, separator, chromeDividers, barPresentation, scrollEdge, scrollEdgeDistance, background, tint, scheme, className, slot, rootAttributes, }: TabNavigatorProps<Id>): SafeHtml;
|
|
2952
3357
|
|
|
2953
3358
|
export { TabNavigator, type TabNavigatorBarPresentation, type TabNavigatorProps, type TabNavigatorTab };
|
|
2954
3359
|
```
|
|
@@ -2976,6 +3381,7 @@ export { type WireTabNavigatorOptions, wireTabNavigator };
|
|
|
2976
3381
|
```ts
|
|
2977
3382
|
import { SafeHtml } from 'kerfjs';
|
|
2978
3383
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3384
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2979
3385
|
import { CssLength } from './css-values.js';
|
|
2980
3386
|
|
|
2981
3387
|
type ResizableRegionAxis = 'horizontal' | 'vertical';
|
|
@@ -3020,10 +3426,13 @@ interface ResizableRegionProps {
|
|
|
3020
3426
|
/** Decorative dormant content for the separator handle. Must not contain interactive descendants. */
|
|
3021
3427
|
handleIcon?: SafeHtml;
|
|
3022
3428
|
children: KerfUiContent;
|
|
3429
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
3430
|
+
* editor node marker; the component's own markers stay protected. */
|
|
3431
|
+
rootAttributes?: RootDataAttributes;
|
|
3023
3432
|
}
|
|
3024
3433
|
declare const clampRegionSize: (size: number, min: number, max: number) => number;
|
|
3025
3434
|
declare const resizeRegionFromPointer: (startSize: number, delta: number, edge: ResizableRegionEdge) => number;
|
|
3026
|
-
declare function ResizableRegion({ id, label, size, min, max, axis, edge, collapsed, transitioning, separator, collapseMotion, contentOverflow, presentation, restoreControl, restorePosition, restorePlacement, restoreInset, responsiveFillAt, handleIcon, children, }: ResizableRegionProps): SafeHtml;
|
|
3435
|
+
declare function ResizableRegion({ id, label, size, min, max, axis, edge, collapsed, transitioning, separator, collapseMotion, contentOverflow, presentation, restoreControl, restorePosition, restorePlacement, restoreInset, responsiveFillAt, handleIcon, children, rootAttributes, }: ResizableRegionProps): SafeHtml;
|
|
3027
3436
|
|
|
3028
3437
|
export { ResizableRegion, type ResizableRegionAxis, type ResizableRegionCollapseMotion, type ResizableRegionContentOverflow, type ResizableRegionEdge, type ResizableRegionPresentation, type ResizableRegionProps, type ResizableRegionResponsiveFillAt, type ResizableRegionRestorePosition, type ResizableRegionSeparator, clampRegionSize, resizeRegionFromPointer };
|
|
3029
3438
|
```
|
|
@@ -3125,15 +3534,16 @@ import { b as CatalogProps } from './types-DmHWkSd6.js';
|
|
|
3125
3534
|
export { a as CatalogBackgroundStyle, c as CatalogBrand, d as CatalogEntry, e as CatalogRelated, C as CatalogResource, f as CatalogSecondaryGroup, g as CatalogSection, h as CatalogSettingsConfig, i as CatalogStageRootAttributes, j as CatalogTagFilter, k as CatalogUxReview } from './types-DmHWkSd6.js';
|
|
3126
3535
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3127
3536
|
import './toolbar.js';
|
|
3537
|
+
import './extension-attributes-IJ4decoa.js';
|
|
3128
3538
|
import './sides-BPSWde0A.js';
|
|
3129
3539
|
import './pane.js';
|
|
3130
3540
|
import './scroll-clearance-BikHljTc.js';
|
|
3541
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
3131
3542
|
import './css-values.js';
|
|
3132
3543
|
import './surface-tint-DQgYCaP9.js';
|
|
3133
3544
|
import './workbench.js';
|
|
3134
|
-
import './nav-stack-
|
|
3545
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
3135
3546
|
import './list.js';
|
|
3136
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
3137
3547
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3138
3548
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
3139
3549
|
import './lucide-icon.js';
|
|
@@ -3281,15 +3691,16 @@ import { C as CatalogResource } from './types-DmHWkSd6.js';
|
|
|
3281
3691
|
import './toolbar.js';
|
|
3282
3692
|
import 'kerfjs';
|
|
3283
3693
|
import './semantic-content-BbzjvSu9.js';
|
|
3694
|
+
import './extension-attributes-IJ4decoa.js';
|
|
3284
3695
|
import './sides-BPSWde0A.js';
|
|
3285
3696
|
import './pane.js';
|
|
3286
3697
|
import './scroll-clearance-BikHljTc.js';
|
|
3698
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
3287
3699
|
import './css-values.js';
|
|
3288
3700
|
import './surface-tint-DQgYCaP9.js';
|
|
3289
3701
|
import './workbench.js';
|
|
3290
|
-
import './nav-stack-
|
|
3702
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
3291
3703
|
import './list.js';
|
|
3292
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
3293
3704
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3294
3705
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
3295
3706
|
import './lucide-icon.js';
|
|
@@ -3337,15 +3748,16 @@ import { Signal } from 'kerfjs';
|
|
|
3337
3748
|
import { a as CatalogBackgroundStyle } from './types-DmHWkSd6.js';
|
|
3338
3749
|
import './toolbar.js';
|
|
3339
3750
|
import './semantic-content-BbzjvSu9.js';
|
|
3751
|
+
import './extension-attributes-IJ4decoa.js';
|
|
3340
3752
|
import './sides-BPSWde0A.js';
|
|
3341
3753
|
import './pane.js';
|
|
3342
3754
|
import './scroll-clearance-BikHljTc.js';
|
|
3755
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
3343
3756
|
import './css-values.js';
|
|
3344
3757
|
import './surface-tint-DQgYCaP9.js';
|
|
3345
3758
|
import './workbench.js';
|
|
3346
|
-
import './nav-stack-
|
|
3759
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
3347
3760
|
import './list.js';
|
|
3348
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
3349
3761
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3350
3762
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
3351
3763
|
import './lucide-icon.js';
|
|
@@ -3479,6 +3891,7 @@ export { type CatalogRevealOptions, type WireCatalogOptions, revealCatalogEntry,
|
|
|
3479
3891
|
```ts
|
|
3480
3892
|
import * as kerfjs from 'kerfjs';
|
|
3481
3893
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3894
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3482
3895
|
|
|
3483
3896
|
type SegmentedControlAppearance = 'filled' | 'outlined' | 'toolbar';
|
|
3484
3897
|
type SegmentedControlShape = 'rounded' | 'pill';
|
|
@@ -3508,8 +3921,11 @@ interface SegmentedControlProps<Value extends string = string> {
|
|
|
3508
3921
|
disabled?: boolean;
|
|
3509
3922
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3510
3923
|
slot?: string;
|
|
3924
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
3925
|
+
* editor node marker; the component's own markers stay protected. */
|
|
3926
|
+
rootAttributes?: RootDataAttributes;
|
|
3511
3927
|
}
|
|
3512
|
-
declare function SegmentedControl<Value extends string>({ id, label, value, choices, action, appearance, shape, size, layout, className, placeholder, disabled, slot, }: SegmentedControlProps<Value>): kerfjs.SafeHtml;
|
|
3928
|
+
declare function SegmentedControl<Value extends string>({ id, label, value, choices, action, appearance, shape, size, layout, className, placeholder, disabled, slot, rootAttributes, }: SegmentedControlProps<Value>): kerfjs.SafeHtml;
|
|
3513
3929
|
|
|
3514
3930
|
export { SegmentedControl, type SegmentedControlAppearance, type SegmentedControlChoice, type SegmentedControlLayout, type SegmentedControlProps, type SegmentedControlShape, type SegmentedControlSize };
|
|
3515
3931
|
```
|
|
@@ -3518,6 +3934,7 @@ export { SegmentedControl, type SegmentedControlAppearance, type SegmentedContro
|
|
|
3518
3934
|
|
|
3519
3935
|
```ts
|
|
3520
3936
|
import { SafeHtml } from 'kerfjs';
|
|
3937
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3521
3938
|
import { CssColor, CssLength } from './css-values.js';
|
|
3522
3939
|
|
|
3523
3940
|
type ChoiceChipsSize = 'default' | 'compact';
|
|
@@ -3527,6 +3944,12 @@ type ChoiceChipsSize = 'default' | 'compact';
|
|
|
3527
3944
|
* its hover title.
|
|
3528
3945
|
*/
|
|
3529
3946
|
type ChoiceChipsPresentation = 'chips' | 'icons';
|
|
3947
|
+
/**
|
|
3948
|
+
* `wrap` (default) wraps chips onto more rows; `scroll` keeps them on one row
|
|
3949
|
+
* that scrolls horizontally inside the group, for a section or filter strip
|
|
3950
|
+
* that must never push the content below it down.
|
|
3951
|
+
*/
|
|
3952
|
+
type ChoiceChipsOverflow = 'wrap' | 'scroll';
|
|
3530
3953
|
/**
|
|
3531
3954
|
* A leading color dot: a {@link CssColor} from `uiColor()`, `colorVar()`, or
|
|
3532
3955
|
* `fillColor()`, or `'transparent'` for the no-color swatch (an outlined
|
|
@@ -3562,8 +3985,16 @@ interface ChoiceChipsCommonProps<Value extends string> {
|
|
|
3562
3985
|
presentation?: ChoiceChipsPresentation;
|
|
3563
3986
|
/**
|
|
3564
3987
|
* Cap the group's height; past it the group scrolls (a long icon grid).
|
|
3988
|
+
* Not with `overflow: 'scroll'`.
|
|
3565
3989
|
*/
|
|
3566
3990
|
maxHeight?: CssLength;
|
|
3991
|
+
/**
|
|
3992
|
+
* `scroll` keeps the chips on one row that scrolls sideways inside the
|
|
3993
|
+
* group, with no visible scrollbar. `wireChoiceChips` keeps the checked
|
|
3994
|
+
* chip in view, and `wireScrollDividers` fades each edge with chips
|
|
3995
|
+
* scrolled past it.
|
|
3996
|
+
*/
|
|
3997
|
+
overflow?: ChoiceChipsOverflow;
|
|
3567
3998
|
/** Disable the whole group. */
|
|
3568
3999
|
disabled?: boolean;
|
|
3569
4000
|
/** Associate the inputs with a form outside their ancestor chain. */
|
|
@@ -3572,6 +4003,9 @@ interface ChoiceChipsCommonProps<Value extends string> {
|
|
|
3572
4003
|
className?: string;
|
|
3573
4004
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3574
4005
|
slot?: string;
|
|
4006
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4007
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4008
|
+
rootAttributes?: RootDataAttributes;
|
|
3575
4009
|
}
|
|
3576
4010
|
/** One exclusive value (the default), backed by native radios. */
|
|
3577
4011
|
interface ChoiceChipsSingleProps<Value extends string = string> {
|
|
@@ -3623,7 +4057,8 @@ type ChoiceChipsProps<Value extends string = string> = ChoiceChipsCommonProps<Va
|
|
|
3623
4057
|
/** Which selection model a ChoiceChips group renders. */
|
|
3624
4058
|
type ChoiceChipsSelectionMode = 'single' | 'toggle' | 'multiple';
|
|
3625
4059
|
/**
|
|
3626
|
-
* A wrapping
|
|
4060
|
+
* A wrapping (or, with `overflow: 'scroll'`, one scrolling row of) set of
|
|
4061
|
+
* pill chips. By default it is an exclusive radio group:
|
|
3627
4062
|
* one Tab stop, arrow-key selection, and a real form value. With
|
|
3628
4063
|
* `multiple: 'toggle'` it is a checkbox group: each pill toggles on its own.
|
|
3629
4064
|
* With `multiple: true` it is a multi-select listbox with modifier-key
|
|
@@ -3632,7 +4067,7 @@ type ChoiceChipsSelectionMode = 'single' | 'toggle' | 'multiple';
|
|
|
3632
4067
|
*/
|
|
3633
4068
|
declare function ChoiceChips<Value extends string>(props: ChoiceChipsProps<Value>): SafeHtml;
|
|
3634
4069
|
|
|
3635
|
-
export { ChoiceChips, type ChoiceChipsChoice, type ChoiceChipsMultipleProps, type ChoiceChipsNaming, type ChoiceChipsPresentation, type ChoiceChipsProps, type ChoiceChipsSelectionMode, type ChoiceChipsSingleProps, type ChoiceChipsSize, type ChoiceChipsSwatch, type ChoiceChipsToggleProps };
|
|
4070
|
+
export { ChoiceChips, type ChoiceChipsChoice, type ChoiceChipsMultipleProps, type ChoiceChipsNaming, type ChoiceChipsOverflow, type ChoiceChipsPresentation, type ChoiceChipsProps, type ChoiceChipsSelectionMode, type ChoiceChipsSingleProps, type ChoiceChipsSize, type ChoiceChipsSwatch, type ChoiceChipsToggleProps };
|
|
3636
4071
|
```
|
|
3637
4072
|
|
|
3638
4073
|
## `@kerfjs/ui/message-composer`
|
|
@@ -3738,6 +4173,7 @@ export { wireMessageComposers };
|
|
|
3738
4173
|
import { SafeHtml } from 'kerfjs';
|
|
3739
4174
|
import { KerfCustomElement } from 'kerfjs/jsx-runtime';
|
|
3740
4175
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4176
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3741
4177
|
import { CssForegroundColor, CssLength } from './css-values.js';
|
|
3742
4178
|
import { LucideNode } from './lucide-icon.js';
|
|
3743
4179
|
import 'lucide';
|
|
@@ -3803,6 +4239,13 @@ interface SelectBaseProps<Value extends string = string> {
|
|
|
3803
4239
|
placeholderText?: string;
|
|
3804
4240
|
/** Supporting text shown below the control and announced as its description. */
|
|
3805
4241
|
hint?: string;
|
|
4242
|
+
/**
|
|
4243
|
+
* Quiet text at the bottom of the open popup, below the choices, announced
|
|
4244
|
+
* as the listbox's description: what the choices leave out, for instance.
|
|
4245
|
+
* Unlike `hint`, it needs no room below the trigger, so a toolbar Select
|
|
4246
|
+
* can carry one.
|
|
4247
|
+
*/
|
|
4248
|
+
popupNote?: string;
|
|
3806
4249
|
disabled?: boolean;
|
|
3807
4250
|
/** Match menu width to the trigger; default menus grow to content within viewport gutters. */
|
|
3808
4251
|
fitMenu?: boolean;
|
|
@@ -3820,7 +4263,7 @@ interface SelectBaseProps<Value extends string = string> {
|
|
|
3820
4263
|
maxTriggerWidth?: CssLength;
|
|
3821
4264
|
/** The narrowest the closed trigger gets. */
|
|
3822
4265
|
minTriggerWidth?: CssLength;
|
|
3823
|
-
/** Show the disclosure caret (default);
|
|
4266
|
+
/** Show the disclosure caret (default `true`); set it `false` for a compact icon-only trigger. */
|
|
3824
4267
|
caret?: boolean;
|
|
3825
4268
|
/** Let an enclosing ToolbarControlGroup paint the composed focus ring. */
|
|
3826
4269
|
focusRingOwner?: SelectFocusRingOwner;
|
|
@@ -3828,8 +4271,21 @@ interface SelectBaseProps<Value extends string = string> {
|
|
|
3828
4271
|
focusRingInset?: boolean;
|
|
3829
4272
|
/** Maximum closed-control label width in CSS pixels before ellipsis. */
|
|
3830
4273
|
labelMaxWidth?: number;
|
|
4274
|
+
/**
|
|
4275
|
+
* Show the listbox open right below the trigger (over any `hint`), in the
|
|
4276
|
+
* document instead of the top layer, as a static preview (the Kerf UI
|
|
4277
|
+
* editor's edit canvas, a specification sheet). An embedded Select is
|
|
4278
|
+
* inert: the register leaves it alone, so its trigger opens nothing, its
|
|
4279
|
+
* choices choose nothing, and its choices take no focus, so a click on one
|
|
4280
|
+
* leaves no current-row fill.
|
|
4281
|
+
* Defaults to false.
|
|
4282
|
+
*/
|
|
4283
|
+
embedded?: boolean;
|
|
3831
4284
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3832
4285
|
slot?: string;
|
|
4286
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4287
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4288
|
+
rootAttributes?: RootDataAttributes;
|
|
3833
4289
|
}
|
|
3834
4290
|
/** One chosen value (the default). */
|
|
3835
4291
|
interface SelectSingleValueProps<Value extends string = string> {
|
|
@@ -3916,6 +4372,13 @@ interface StateBannerProps {
|
|
|
3916
4372
|
/** Optional compact status or count shown beside the title. */
|
|
3917
4373
|
badge?: string;
|
|
3918
4374
|
icon?: SafeHtml;
|
|
4375
|
+
/**
|
|
4376
|
+
* The banner's action: one or more controls, laid out as a wrapping,
|
|
4377
|
+
* end-aligned horizontal list. Use Kerf UI `Button`s (`size="compact"`,
|
|
4378
|
+
* `shape="pill"`); a neutral Button takes the banner's tone, while a brand,
|
|
4379
|
+
* success, or danger Button keeps its own. Other controls, such as a
|
|
4380
|
+
* `LoadingSpinner`, sit beside them.
|
|
4381
|
+
*/
|
|
3919
4382
|
action?: KerfUiContent;
|
|
3920
4383
|
tone?: SemanticTone;
|
|
3921
4384
|
urgency?: StateBannerUrgency;
|
|
@@ -3959,6 +4422,7 @@ export { SemanticTone, StateBanner, type StateBannerActionPlacement, type StateB
|
|
|
3959
4422
|
```ts
|
|
3960
4423
|
import { SafeHtml } from 'kerfjs';
|
|
3961
4424
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4425
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3962
4426
|
|
|
3963
4427
|
interface EmptyStateProps {
|
|
3964
4428
|
title: string;
|
|
@@ -3969,8 +4433,11 @@ interface EmptyStateProps {
|
|
|
3969
4433
|
className?: string;
|
|
3970
4434
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3971
4435
|
slot?: string;
|
|
4436
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4437
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4438
|
+
rootAttributes?: RootDataAttributes;
|
|
3972
4439
|
}
|
|
3973
|
-
declare function EmptyState({ title, detail, icon, action, busy, className, slot, }: EmptyStateProps): SafeHtml;
|
|
4440
|
+
declare function EmptyState({ title, detail, icon, action, busy, className, slot, rootAttributes, }: EmptyStateProps): SafeHtml;
|
|
3974
4441
|
|
|
3975
4442
|
export { EmptyState, type EmptyStateProps };
|
|
3976
4443
|
```
|
|
@@ -3979,6 +4446,7 @@ export { EmptyState, type EmptyStateProps };
|
|
|
3979
4446
|
|
|
3980
4447
|
```ts
|
|
3981
4448
|
import * as kerfjs from 'kerfjs';
|
|
4449
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3982
4450
|
import { CssForegroundColor } from './css-values.js';
|
|
3983
4451
|
import { LucideIconSize } from './lucide-icon.js';
|
|
3984
4452
|
import 'lucide';
|
|
@@ -3993,9 +4461,12 @@ interface LoadingSpinnerProps {
|
|
|
3993
4461
|
size?: LoadingSpinnerSize;
|
|
3994
4462
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3995
4463
|
slot?: string;
|
|
4464
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4465
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4466
|
+
rootAttributes?: RootDataAttributes;
|
|
3996
4467
|
}
|
|
3997
4468
|
/** Stable viewBox-centered progress ring based on svg-spinners' MIT-licensed 180-ring. */
|
|
3998
|
-
declare function LoadingSpinner({ className, color, label, size, slot, }: LoadingSpinnerProps): kerfjs.SafeHtml;
|
|
4469
|
+
declare function LoadingSpinner({ className, color, label, size, slot, rootAttributes, }: LoadingSpinnerProps): kerfjs.SafeHtml;
|
|
3999
4470
|
|
|
4000
4471
|
export { LoadingSpinner, type LoadingSpinnerProps, type LoadingSpinnerSize };
|
|
4001
4472
|
```
|
|
@@ -4004,6 +4475,7 @@ export { LoadingSpinner, type LoadingSpinnerProps, type LoadingSpinnerSize };
|
|
|
4004
4475
|
|
|
4005
4476
|
```ts
|
|
4006
4477
|
import * as kerfjs from 'kerfjs';
|
|
4478
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4007
4479
|
import { CssSize, CssLength } from './css-values.js';
|
|
4008
4480
|
|
|
4009
4481
|
interface SkeletonProps {
|
|
@@ -4024,6 +4496,9 @@ interface SkeletonProps {
|
|
|
4024
4496
|
className?: string;
|
|
4025
4497
|
/** Native named-slot assignment when composed inside a web component. */
|
|
4026
4498
|
slot?: string;
|
|
4499
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4500
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4501
|
+
rootAttributes?: RootDataAttributes;
|
|
4027
4502
|
}
|
|
4028
4503
|
/**
|
|
4029
4504
|
* A subtle, deliberately **unanimated** loading placeholder block. Use it for a
|
|
@@ -4031,7 +4506,7 @@ interface SkeletonProps {
|
|
|
4031
4506
|
* `placeholder` prop. Decorative by default (`aria-hidden`); pass `label` to
|
|
4032
4507
|
* announce it. Sizes to its slot unless `width`/`height` are given.
|
|
4033
4508
|
*/
|
|
4034
|
-
declare function Skeleton({ width, height, radius, lines, block, label, className, slot, }: SkeletonProps): kerfjs.SafeHtml;
|
|
4509
|
+
declare function Skeleton({ width, height, radius, lines, block, label, className, slot, rootAttributes, }: SkeletonProps): kerfjs.SafeHtml;
|
|
4035
4510
|
|
|
4036
4511
|
export { Skeleton, type SkeletonProps };
|
|
4037
4512
|
```
|
|
@@ -4041,6 +4516,7 @@ export { Skeleton, type SkeletonProps };
|
|
|
4041
4516
|
```ts
|
|
4042
4517
|
import * as kerfjs from 'kerfjs';
|
|
4043
4518
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4519
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4044
4520
|
import { CssFlexKeyword, CssFlex } from './css-values.js';
|
|
4045
4521
|
|
|
4046
4522
|
/**
|
|
@@ -4068,13 +4544,16 @@ interface SunkenPanelProps {
|
|
|
4068
4544
|
className?: string;
|
|
4069
4545
|
/** Native named-slot assignment when composed inside a web component. */
|
|
4070
4546
|
slot?: string;
|
|
4547
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4548
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4549
|
+
rootAttributes?: RootDataAttributes;
|
|
4071
4550
|
}
|
|
4072
4551
|
/**
|
|
4073
4552
|
* A lowered application surface with one compact inset and a vertical content
|
|
4074
4553
|
* stack. The panel owns its background and padding; children own their own
|
|
4075
4554
|
* borders and internal geometry.
|
|
4076
4555
|
*/
|
|
4077
|
-
declare function SunkenPanel({ children, ariaLabel, shape, flex, fill, tabIndex, outlined, className, slot, }: SunkenPanelProps): kerfjs.SafeHtml;
|
|
4556
|
+
declare function SunkenPanel({ children, ariaLabel, shape, flex, fill, tabIndex, outlined, className, slot, rootAttributes, }: SunkenPanelProps): kerfjs.SafeHtml;
|
|
4078
4557
|
|
|
4079
4558
|
export { SunkenPanel, type SunkenPanelProps, type SunkenPanelShape, ensureSunkenTexture };
|
|
4080
4559
|
```
|
|
@@ -4082,17 +4561,19 @@ export { SunkenPanel, type SunkenPanelProps, type SunkenPanelShape, ensureSunken
|
|
|
4082
4561
|
## `@kerfjs/ui/search-field`
|
|
4083
4562
|
|
|
4084
4563
|
```ts
|
|
4085
|
-
export { S as SearchField, a as SearchFieldEditorAttributes, d as SearchFieldProps, j as SearchFieldToken, k as SearchFieldTrailingAction, l as SearchFieldTrailingActionAttributes, m as SearchFieldValue, p as placeSearchFieldCaret, r as readSearchField } from './search-field-
|
|
4564
|
+
export { S as SearchField, a as SearchFieldEditorAttributes, d as SearchFieldProps, j as SearchFieldToken, k as SearchFieldTrailingAction, l as SearchFieldTrailingActionAttributes, m as SearchFieldValue, p as placeSearchFieldCaret, r as readSearchField } from './search-field-5lNIszda.js';
|
|
4086
4565
|
import 'kerfjs';
|
|
4087
4566
|
import './semantic-content-BbzjvSu9.js';
|
|
4567
|
+
import './extension-attributes-IJ4decoa.js';
|
|
4088
4568
|
```
|
|
4089
4569
|
|
|
4090
4570
|
## `@kerfjs/ui/wire-search-fields`
|
|
4091
4571
|
|
|
4092
4572
|
```ts
|
|
4093
4573
|
import { Signal } from 'kerfjs';
|
|
4094
|
-
import { b as SearchFieldModel } from './search-field-
|
|
4574
|
+
import { b as SearchFieldModel } from './search-field-5lNIszda.js';
|
|
4095
4575
|
import './semantic-content-BbzjvSu9.js';
|
|
4576
|
+
import './extension-attributes-IJ4decoa.js';
|
|
4096
4577
|
|
|
4097
4578
|
interface SearchFieldSubmit {
|
|
4098
4579
|
id: string;
|
|
@@ -4507,6 +4988,7 @@ export { Chip, type ChipProps, type ChipRootAttributes, type ChipTone };
|
|
|
4507
4988
|
```ts
|
|
4508
4989
|
import { SafeHtml } from 'kerfjs';
|
|
4509
4990
|
import { IconNode } from 'lucide';
|
|
4991
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4510
4992
|
import { CssForegroundColor } from './css-values.js';
|
|
4511
4993
|
|
|
4512
4994
|
type LucideNode = IconNode;
|
|
@@ -4534,9 +5016,12 @@ interface LucideIconProps {
|
|
|
4534
5016
|
size?: LucideIconSize;
|
|
4535
5017
|
/** Native named-slot assignment when composed inside a web component. */
|
|
4536
5018
|
slot?: string;
|
|
5019
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
5020
|
+
* editor node marker; the component's own markers stay protected. */
|
|
5021
|
+
rootAttributes?: RootDataAttributes;
|
|
4537
5022
|
}
|
|
4538
5023
|
/** Render a Lucide-compatible icon node without copying icon SVG strings. */
|
|
4539
|
-
declare function LucideIcon({ icon, name, appearance, className, color, inline, label, title, size, slot, }: LucideIconProps): SafeHtml;
|
|
5024
|
+
declare function LucideIcon({ icon, name, appearance, className, color, inline, label, title, size, slot, rootAttributes, }: LucideIconProps): SafeHtml;
|
|
4540
5025
|
|
|
4541
5026
|
export { LucideIcon, type LucideIconProps, type LucideIconSize, type LucideNode };
|
|
4542
5027
|
```
|
|
@@ -4546,7 +5031,7 @@ export { LucideIcon, type LucideIconProps, type LucideIconSize, type LucideNode
|
|
|
4546
5031
|
```ts
|
|
4547
5032
|
import * as kerfjs from 'kerfjs';
|
|
4548
5033
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4549
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
5034
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4550
5035
|
import { CssLength, CssColor } from './css-values.js';
|
|
4551
5036
|
|
|
4552
5037
|
/** How a single image fills the backdrop (`object-fit`). */
|
|
@@ -4631,7 +5116,11 @@ interface BackdropImageCommonProps {
|
|
|
4631
5116
|
* statically blurred copy. Static (unblurred) wherever parallax is.
|
|
4632
5117
|
*/
|
|
4633
5118
|
blur?: BackdropImageBlur;
|
|
4634
|
-
/**
|
|
5119
|
+
/**
|
|
5120
|
+
* Skip painting the image hero while it is off screen in a long feed.
|
|
5121
|
+
* Fewer compositor layers, but a large scroll jump (scrollbar drag,
|
|
5122
|
+
* End/Home) paints newly visible heroes blank for a frame.
|
|
5123
|
+
*/
|
|
4635
5124
|
deferOffscreen?: boolean;
|
|
4636
5125
|
/**
|
|
4637
5126
|
* Run the image up beneath the scroller's block-start inset: an overlay or
|
|
@@ -4689,6 +5178,97 @@ declare function BackdropImage(props: BackdropImageProps): kerfjs.SafeHtml;
|
|
|
4689
5178
|
export { BackdropImage, type BackdropImageBlur, type BackdropImageFit, type BackdropImageParallax, type BackdropImagePosition, type BackdropImageProps, type BackdropImageRepeat, type BackdropImageScrim, type BackdropImageSingleProps, type BackdropImageTiledProps };
|
|
4690
5179
|
```
|
|
4691
5180
|
|
|
5181
|
+
## `@kerfjs/ui/scroll-effect`
|
|
5182
|
+
|
|
5183
|
+
```ts
|
|
5184
|
+
import * as kerfjs from 'kerfjs';
|
|
5185
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5186
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5187
|
+
|
|
5188
|
+
/**
|
|
5189
|
+
* The part of the wrapper's view timeline an effect runs over, as the CSS
|
|
5190
|
+
* named timeline ranges: `entry` while it scrolls into view, `exit` while it
|
|
5191
|
+
* scrolls out, `cover` from first to last visible pixel, and `contain` while
|
|
5192
|
+
* it is fully in view (or fully covers the view).
|
|
5193
|
+
*/
|
|
5194
|
+
type ScrollEffectRange = 'entry' | 'exit' | 'cover' | 'contain';
|
|
5195
|
+
/** Where an effect runs, shared by every preset. */
|
|
5196
|
+
interface ScrollEffectRangeOptions {
|
|
5197
|
+
/** The timeline range. Each preset has its own default. */
|
|
5198
|
+
range?: ScrollEffectRange;
|
|
5199
|
+
/** Where the effect starts within `range`, from 0 to 100 percent. Default 0. */
|
|
5200
|
+
rangeStart?: number;
|
|
5201
|
+
/** Where the effect ends within `range`, from 0 to 100 percent. Default 100. */
|
|
5202
|
+
rangeEnd?: number;
|
|
5203
|
+
}
|
|
5204
|
+
/**
|
|
5205
|
+
* The content lags the scroll by `lag` (0 to 1; `subtle` is 0.35), the way
|
|
5206
|
+
* BackdropImage's parallax does. Over `exit` (the default) it moves by the lag
|
|
5207
|
+
* times its own height, which is exactly the lag factor of the scroll there;
|
|
5208
|
+
* over `entry` it settles into place, and over `cover` or `contain` it passes
|
|
5209
|
+
* its resting place halfway. The wrapper clips the moving content.
|
|
5210
|
+
*/
|
|
5211
|
+
interface ScrollEffectParallax extends ScrollEffectRangeOptions {
|
|
5212
|
+
kind: 'parallax';
|
|
5213
|
+
lag?: number | 'subtle';
|
|
5214
|
+
}
|
|
5215
|
+
/** The content fades in from transparent. Default range `entry`. */
|
|
5216
|
+
interface ScrollEffectReveal extends ScrollEffectRangeOptions {
|
|
5217
|
+
kind: 'reveal';
|
|
5218
|
+
}
|
|
5219
|
+
/** The content fades out to transparent. Default range `exit`. */
|
|
5220
|
+
interface ScrollEffectFade extends ScrollEffectRangeOptions {
|
|
5221
|
+
kind: 'fade';
|
|
5222
|
+
}
|
|
5223
|
+
/**
|
|
5224
|
+
* The content scales from `from` to `to` (each above 0, at most 2; defaults
|
|
5225
|
+
* 0.96 and 1) around its center. Default range `entry`. The wrapper clips a
|
|
5226
|
+
* scale above 1.
|
|
5227
|
+
*/
|
|
5228
|
+
interface ScrollEffectScale extends ScrollEffectRangeOptions {
|
|
5229
|
+
kind: 'scale';
|
|
5230
|
+
from?: number;
|
|
5231
|
+
to?: number;
|
|
5232
|
+
}
|
|
5233
|
+
/**
|
|
5234
|
+
* A black layer over the content ramps to opacity `to` (0 to 1; default
|
|
5235
|
+
* 0.5). Default range `exit`.
|
|
5236
|
+
*/
|
|
5237
|
+
interface ScrollEffectDim extends ScrollEffectRangeOptions {
|
|
5238
|
+
kind: 'dim';
|
|
5239
|
+
to?: number;
|
|
5240
|
+
}
|
|
5241
|
+
/** One scroll-linked effect preset. */
|
|
5242
|
+
type ScrollEffectSpec = ScrollEffectParallax | ScrollEffectReveal | ScrollEffectFade | ScrollEffectScale | ScrollEffectDim;
|
|
5243
|
+
type ScrollEffectKind = ScrollEffectSpec['kind'];
|
|
5244
|
+
interface ScrollEffectProps {
|
|
5245
|
+
/**
|
|
5246
|
+
* The effects. They compose: transforms stack in array order (the first is
|
|
5247
|
+
* outermost) and opacities multiply, so `reveal` on `entry` with `fade` on
|
|
5248
|
+
* `exit` fades content in and out. Repeating a kind stacks it the same way
|
|
5249
|
+
* (each `dim` adds its own overlay).
|
|
5250
|
+
*/
|
|
5251
|
+
effects: readonly ScrollEffectSpec[];
|
|
5252
|
+
/** The content the effects apply to. */
|
|
5253
|
+
children?: KerfUiContent;
|
|
5254
|
+
/** Application `data-*` metadata on the root, such as an editor node
|
|
5255
|
+
* marker; the component's own markers stay protected. */
|
|
5256
|
+
rootAttributes?: RootDataAttributes;
|
|
5257
|
+
}
|
|
5258
|
+
/**
|
|
5259
|
+
* Applies scroll-linked effects to any content without a scroll listener:
|
|
5260
|
+
* each effect animates only `transform` or `opacity` on the wrapper's own
|
|
5261
|
+
* CSS view timeline, which the compositor runs. Kerf owns the static
|
|
5262
|
+
* fallbacks: the content rests in place, fully visible and undimmed, without
|
|
5263
|
+
* scroll-driven animation support, under reduced motion, under
|
|
5264
|
+
* `data-kui-effects="static"`, on slow-update displays, and under reduced
|
|
5265
|
+
* transparency, increased contrast, or forced colors.
|
|
5266
|
+
*/
|
|
5267
|
+
declare function ScrollEffect({ effects, children, rootAttributes, }: ScrollEffectProps): kerfjs.SafeHtml;
|
|
5268
|
+
|
|
5269
|
+
export { ScrollEffect, type ScrollEffectDim, type ScrollEffectFade, type ScrollEffectKind, type ScrollEffectParallax, type ScrollEffectProps, type ScrollEffectRange, type ScrollEffectRangeOptions, type ScrollEffectReveal, type ScrollEffectScale, type ScrollEffectSpec };
|
|
5270
|
+
```
|
|
5271
|
+
|
|
4692
5272
|
## `@kerfjs/ui/wire-toolbar-visibility`
|
|
4693
5273
|
|
|
4694
5274
|
```ts
|
|
@@ -4712,6 +5292,8 @@ export { wireToolbarVisibility };
|
|
|
4712
5292
|
```ts
|
|
4713
5293
|
import * as kerfjs from 'kerfjs';
|
|
4714
5294
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5295
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5296
|
+
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
4715
5297
|
import { CssLength } from './css-values.js';
|
|
4716
5298
|
|
|
4717
5299
|
/** What asked an open DialogSurface to close. */
|
|
@@ -4725,13 +5307,14 @@ interface DialogRequestCloseDetail {
|
|
|
4725
5307
|
* page inert, focus on its `autofocus` element or else the panel. It plays
|
|
4726
5308
|
* its enter motion and, with the controller installed here, keeps its
|
|
4727
5309
|
* measured chrome, sheet height, and keyboard clearance across application
|
|
4728
|
-
* re-renders. Opening an open dialog does nothing
|
|
5310
|
+
* re-renders. Opening an open dialog does nothing, and so does opening an
|
|
5311
|
+
* `embedded` one, which is always shown in flow.
|
|
4729
5312
|
*/
|
|
4730
5313
|
declare function openDialog(dialog: HTMLDialogElement): void;
|
|
4731
5314
|
/**
|
|
4732
5315
|
* Close an open DialogSurface after its exit motion. The application's own
|
|
4733
5316
|
* close is never refused: no `kui-request-close` is dispatched. The native
|
|
4734
|
-
* `close` event fires once it has closed.
|
|
5317
|
+
* `close` event fires once it has closed. An `embedded` one never closes.
|
|
4735
5318
|
*/
|
|
4736
5319
|
declare function closeDialog(dialog: HTMLDialogElement): void;
|
|
4737
5320
|
/**
|
|
@@ -4751,7 +5334,14 @@ type DialogSurfaceSize = 'small' | 'medium' | 'large';
|
|
|
4751
5334
|
* attached to the bottom edge (square bottom corners, safe-area and
|
|
4752
5335
|
* virtual-keyboard clearance, optionally user-resizable).
|
|
4753
5336
|
*/
|
|
4754
|
-
type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen' | 'bottom-sheet'
|
|
5337
|
+
type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen' | 'bottom-sheet'
|
|
5338
|
+
/**
|
|
5339
|
+
* In flow, always shown: the same panel without the top layer or a
|
|
5340
|
+
* backdrop, never wider than its container. For a catalog, a design
|
|
5341
|
+
* canvas, or a document; `openDialog` / `closeDialog` leave it alone and
|
|
5342
|
+
* `data-dialog-close` does not hide it.
|
|
5343
|
+
*/
|
|
5344
|
+
| 'embedded';
|
|
4755
5345
|
/**
|
|
4756
5346
|
* How a bottom sheet appears or leaves: `slide` (default) moves the panel in
|
|
4757
5347
|
* from, or out to, the bottom edge; `standard` keeps the dialog's
|
|
@@ -4953,6 +5543,8 @@ interface DialogSurfaceOptions {
|
|
|
4953
5543
|
declare function DialogSurface({ id, label, labelledBy, describedBy, alert, heading, headerActions, footer, withoutHeader, lightDismiss, closeLabel, closeEmphasis, children, stack, size, presentation, preferredWidth, bodyInset, footerInset, viewportGutter, maxHeight, height, minHeight, resizable, enterMotion, exitMotion, bodyLayout, headerPresentation, footerPresentation, footerOffset, rootAttributes, className, slot, }: DialogSurfaceProps): kerfjs.SafeHtml;
|
|
4954
5544
|
/** Where a PopoverDialogSurface appears: the top layer, or in flow. */
|
|
4955
5545
|
type PopoverDialogSurfacePresentation = 'overlay' | 'embedded';
|
|
5546
|
+
/** How an overlay PopoverDialogSurface closes: light dismiss, or its own controls. */
|
|
5547
|
+
type PopoverDialogSurfaceDismiss = 'light' | 'manual';
|
|
4956
5548
|
/** Application `data-*` metadata on the surface root. */
|
|
4957
5549
|
type PopoverDialogSurfaceDataAttributes = Readonly<Record<`data-${string}`, string>>;
|
|
4958
5550
|
type PopoverDialogSurfaceName = {
|
|
@@ -4978,6 +5570,22 @@ type PopoverDialogSurfaceProps = PopoverDialogSurfaceName & {
|
|
|
4978
5570
|
* `embedded` renders the same surface in flow for a catalog or inline use.
|
|
4979
5571
|
*/
|
|
4980
5572
|
presentation?: PopoverDialogSurfacePresentation;
|
|
5573
|
+
/**
|
|
5574
|
+
* How an overlay closes. `light` (default) is `popover="auto"`: Escape or a
|
|
5575
|
+
* press outside closes it. `manual` is `popover="manual"`: only its own
|
|
5576
|
+
* controls (`popovertargetaction="hide"`) or `hidePopover()` close it, for a
|
|
5577
|
+
* request the person must answer. Ignored when `embedded`.
|
|
5578
|
+
*/
|
|
5579
|
+
dismiss?: PopoverDialogSurfaceDismiss;
|
|
5580
|
+
/**
|
|
5581
|
+
* KF-T1V86Q: a CSS anchor name (a dashed ident such as `--app-main`) the
|
|
5582
|
+
* open overlay docks to: centered on the bottom edge of the element whose
|
|
5583
|
+
* `anchor-name` it is, inset by `viewportGutter`. The application names
|
|
5584
|
+
* that element (its shell's main column). Engines without CSS anchor
|
|
5585
|
+
* positioning keep the centered top-layer placement. Ignored when
|
|
5586
|
+
* `embedded`.
|
|
5587
|
+
*/
|
|
5588
|
+
anchorName?: AnchorName;
|
|
4981
5589
|
/** Preferred width preset: 400px, 560px (default), or 800px. */
|
|
4982
5590
|
size?: DialogSurfaceSize;
|
|
4983
5591
|
/** Preferred width; takes precedence over `size`, within the viewport cap. */
|
|
@@ -5005,7 +5613,7 @@ type PopoverDialogSurfaceProps = PopoverDialogSurfaceName & {
|
|
|
5005
5613
|
* dismisses and leaves the page interactive. Use `DialogSurface` when the
|
|
5006
5614
|
* task must block the page.
|
|
5007
5615
|
*/
|
|
5008
|
-
declare function PopoverDialogSurface({ id, children, label, labelledBy, describedBy, presentation, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, rootAttributes, className, slot, }: PopoverDialogSurfaceProps): kerfjs.SafeHtml;
|
|
5616
|
+
declare function PopoverDialogSurface({ id, children, label, labelledBy, describedBy, presentation, dismiss, anchorName, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, rootAttributes, className, slot, }: PopoverDialogSurfaceProps): kerfjs.SafeHtml;
|
|
5009
5617
|
type PopupSurfaceInset = 'standard' | 'compact' | 'list-zero';
|
|
5010
5618
|
interface PopupSurfaceProps {
|
|
5011
5619
|
children: KerfUiContent;
|
|
@@ -5013,11 +5621,14 @@ interface PopupSurfaceProps {
|
|
|
5013
5621
|
className?: string;
|
|
5014
5622
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5015
5623
|
slot?: string;
|
|
5624
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
5625
|
+
* editor node marker; the component's own markers stay protected. */
|
|
5626
|
+
rootAttributes?: RootDataAttributes;
|
|
5016
5627
|
}
|
|
5017
5628
|
/** Configure recurring Web Awesome dropdown-menu geometry without consumer ::part() CSS. */
|
|
5018
|
-
declare function PopupSurface({ children, inset, className, slot, }: PopupSurfaceProps): kerfjs.SafeHtml;
|
|
5629
|
+
declare function PopupSurface({ children, inset, className, slot, rootAttributes, }: PopupSurfaceProps): kerfjs.SafeHtml;
|
|
5019
5630
|
|
|
5020
|
-
export { type DialogCloseSource, type DialogRequestCloseDetail, DialogSurface, type DialogSurfaceBodyLayout, type DialogSurfaceCloseEmphasis, type DialogSurfaceFooterPresentation, type DialogSurfaceHeaderPresentation, type DialogSurfaceHeight, type DialogSurfaceMaxHeight, type DialogSurfaceName, type DialogSurfaceOptions, type DialogSurfacePresentation, type DialogSurfaceProps, type DialogSurfaceRootAttributes, type DialogSurfaceSheetMotion, type DialogSurfaceSize, type DialogSurfaceStack, PopoverDialogSurface, type PopoverDialogSurfaceDataAttributes, type PopoverDialogSurfacePresentation, type PopoverDialogSurfaceProps, PopupSurface, type PopupSurfaceInset, type PopupSurfaceProps, type SurfaceInset, closeDialog, openDialog, syncDialogStack, wireDialogStack };
|
|
5631
|
+
export { type DialogCloseSource, type DialogRequestCloseDetail, DialogSurface, type DialogSurfaceBodyLayout, type DialogSurfaceCloseEmphasis, type DialogSurfaceFooterPresentation, type DialogSurfaceHeaderPresentation, type DialogSurfaceHeight, type DialogSurfaceMaxHeight, type DialogSurfaceName, type DialogSurfaceOptions, type DialogSurfacePresentation, type DialogSurfaceProps, type DialogSurfaceRootAttributes, type DialogSurfaceSheetMotion, type DialogSurfaceSize, type DialogSurfaceStack, PopoverDialogSurface, type PopoverDialogSurfaceDataAttributes, type PopoverDialogSurfaceDismiss, type PopoverDialogSurfacePresentation, type PopoverDialogSurfaceProps, PopupSurface, type PopupSurfaceInset, type PopupSurfaceProps, type SurfaceInset, closeDialog, openDialog, syncDialogStack, wireDialogStack };
|
|
5021
5632
|
```
|
|
5022
5633
|
|
|
5023
5634
|
## `@kerfjs/ui/list-detail-dialog`
|
|
@@ -5029,12 +5640,13 @@ import { CssLength } from './css-values.js';
|
|
|
5029
5640
|
import { SplitViewListWidth } from './split-view.js';
|
|
5030
5641
|
import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-scaffold.js';
|
|
5031
5642
|
export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-scaffold.js';
|
|
5032
|
-
import './
|
|
5643
|
+
import './extension-attributes-IJ4decoa.js';
|
|
5644
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
5033
5645
|
import './pane.js';
|
|
5034
5646
|
import './scroll-clearance-BikHljTc.js';
|
|
5647
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
5035
5648
|
import './surface-tint-DQgYCaP9.js';
|
|
5036
5649
|
import './list.js';
|
|
5037
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
5038
5650
|
import './flex-alignment-4ms8ZbV8.js';
|
|
5039
5651
|
import './sides-BPSWde0A.js';
|
|
5040
5652
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -5110,6 +5722,12 @@ interface ListDetailDialogProps {
|
|
|
5110
5722
|
* `NavStack`; every view keeps the close control.
|
|
5111
5723
|
*/
|
|
5112
5724
|
compact?: boolean;
|
|
5725
|
+
/**
|
|
5726
|
+
* Render in flow and always shown (DialogSurface `presentation="embedded"`)
|
|
5727
|
+
* instead of as a modal, for a catalog, a design canvas, or a document. It
|
|
5728
|
+
* keeps its `height`; `openDialog` and `closeDialog` leave it alone.
|
|
5729
|
+
*/
|
|
5730
|
+
embedded?: boolean;
|
|
5113
5731
|
/** On compact devices, whether the detail is pushed over the list. */
|
|
5114
5732
|
detailActive?: boolean;
|
|
5115
5733
|
/** The compact back control's accessible name (default `Back`). */
|
|
@@ -5144,7 +5762,7 @@ interface ListDetailDialogProps {
|
|
|
5144
5762
|
* stack's back control dispatches `nav-back`). Built from `DialogSurface`,
|
|
5145
5763
|
* `SplitView`, and `Pane`.
|
|
5146
5764
|
*/
|
|
5147
|
-
declare function ListDetailDialog({ id, label, describedBy, list, detail, compact, detailActive, backLabel, closeLabel, lightDismiss, size, preferredWidth, height, maxHeight, viewportGutter, rootAttributes, className, slot, }: ListDetailDialogProps): kerfjs.SafeHtml;
|
|
5765
|
+
declare function ListDetailDialog({ id, label, describedBy, list, detail, compact, embedded, detailActive, backLabel, closeLabel, lightDismiss, size, preferredWidth, height, maxHeight, viewportGutter, rootAttributes, className, slot, }: ListDetailDialogProps): kerfjs.SafeHtml;
|
|
5148
5766
|
|
|
5149
5767
|
export { ListDetailDialog, type ListDetailDialogDetail, type ListDetailDialogList, type ListDetailDialogProps, type ListDetailDialogRootAttributes };
|
|
5150
5768
|
```
|
|
@@ -5158,12 +5776,13 @@ import { CssLength } from './css-values.js';
|
|
|
5158
5776
|
import { WorkbenchMainBottomToolbar, WorkbenchPanel } from './workbench.js';
|
|
5159
5777
|
import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-scaffold.js';
|
|
5160
5778
|
export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-scaffold.js';
|
|
5161
|
-
import './
|
|
5779
|
+
import './extension-attributes-IJ4decoa.js';
|
|
5780
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
5162
5781
|
import './pane.js';
|
|
5163
5782
|
import './scroll-clearance-BikHljTc.js';
|
|
5783
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
5164
5784
|
import './surface-tint-DQgYCaP9.js';
|
|
5165
5785
|
import './list.js';
|
|
5166
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
5167
5786
|
import './flex-alignment-4ms8ZbV8.js';
|
|
5168
5787
|
import './sides-BPSWde0A.js';
|
|
5169
5788
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -5224,6 +5843,12 @@ interface WorkbenchDialogProps {
|
|
|
5224
5843
|
* `deviceClass().value.compact`.
|
|
5225
5844
|
*/
|
|
5226
5845
|
compact?: boolean;
|
|
5846
|
+
/**
|
|
5847
|
+
* Render in flow and always shown (DialogSurface `presentation="embedded"`)
|
|
5848
|
+
* instead of as a modal, for a catalog, a design canvas, or a document. It
|
|
5849
|
+
* keeps its `height`; `openDialog` and `closeDialog` leave it alone.
|
|
5850
|
+
*/
|
|
5851
|
+
embedded?: boolean;
|
|
5227
5852
|
/** The close control's accessible name (default `Close`). */
|
|
5228
5853
|
closeLabel?: string;
|
|
5229
5854
|
/** Close on a press on the backdrop; otherwise the panel pulses. */
|
|
@@ -5256,7 +5881,7 @@ interface WorkbenchDialogProps {
|
|
|
5256
5881
|
* Escape or a press outside it before the dialog sees the Escape. Built from
|
|
5257
5882
|
* `DialogSurface` and `Workbench`.
|
|
5258
5883
|
*/
|
|
5259
|
-
declare function WorkbenchDialog({ id, label, title, description, describedBy, leading, actions, main, mainFooter, mainBottomToolbar, leftRail, rightRail, bottomDrawer, compact, closeLabel, lightDismiss, size, preferredWidth, height, maxHeight, viewportGutter, mainMinSize, rootAttributes, className, slot, }: WorkbenchDialogProps): kerfjs.SafeHtml;
|
|
5884
|
+
declare function WorkbenchDialog({ id, label, title, description, describedBy, leading, actions, main, mainFooter, mainBottomToolbar, leftRail, rightRail, bottomDrawer, compact, embedded, closeLabel, lightDismiss, size, preferredWidth, height, maxHeight, viewportGutter, mainMinSize, rootAttributes, className, slot, }: WorkbenchDialogProps): kerfjs.SafeHtml;
|
|
5260
5885
|
|
|
5261
5886
|
export { WorkbenchDialog, type WorkbenchDialogProps, type WorkbenchDialogRootAttributes };
|
|
5262
5887
|
```
|
|
@@ -5267,19 +5892,27 @@ export { WorkbenchDialog, type WorkbenchDialogProps, type WorkbenchDialogRootAtt
|
|
|
5267
5892
|
import * as kerfjs from 'kerfjs';
|
|
5268
5893
|
import { KerfBaseAttrs } from 'kerfjs/jsx-runtime';
|
|
5269
5894
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5895
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5270
5896
|
import { S as Sides } from './sides-BPSWde0A.js';
|
|
5271
5897
|
import { CssForegroundColor } from './css-values.js';
|
|
5272
5898
|
|
|
5273
|
-
type FieldLabelProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> & {
|
|
5899
|
+
type FieldLabelProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className' | 'id'> & {
|
|
5274
5900
|
children: string;
|
|
5901
|
+
/**
|
|
5902
|
+
* The label's id: what a group's `labelledBy` (a ChoiceChips or a preview
|
|
5903
|
+
* group's `aria-labelledby`) names, so the label is that group's name.
|
|
5904
|
+
*/
|
|
5905
|
+
id?: string;
|
|
5275
5906
|
class?: string;
|
|
5276
5907
|
className?: string;
|
|
5277
5908
|
};
|
|
5278
5909
|
/** Visible field heading for a read-only preview; use its id with aria-labelledby on the preview group. */
|
|
5279
|
-
declare function FieldLabel({ children, class: classValue, className, ...attributes }: FieldLabelProps): kerfjs.SafeHtml;
|
|
5910
|
+
declare function FieldLabel({ children, id, class: classValue, className, ...attributes }: FieldLabelProps): kerfjs.SafeHtml;
|
|
5280
5911
|
|
|
5281
5912
|
type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
5282
5913
|
type TextTone = 'default' | 'quiet' | 'danger';
|
|
5914
|
+
/** `strong` marks the text as important with a `<strong>` element. */
|
|
5915
|
+
type TextWeight = 'regular' | 'strong';
|
|
5283
5916
|
/**
|
|
5284
5917
|
* `compact` (xs), `default` (the element's own size), `medium` (the 16px
|
|
5285
5918
|
* body size, for a heading such as an in-list group title), `large`, or
|
|
@@ -5304,11 +5937,28 @@ type TextTruncate = 'end' | 'middle' | 'start';
|
|
|
5304
5937
|
*/
|
|
5305
5938
|
type TextTruncateKeep = number | 'segment';
|
|
5306
5939
|
type TextContent = KerfUiContent | string | number | readonly TextContent[];
|
|
5307
|
-
type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> & {
|
|
5940
|
+
type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className' | 'id' | 'lang'> & {
|
|
5941
|
+
/**
|
|
5942
|
+
* The element's id, for a link or `aria-*` reference to target (a
|
|
5943
|
+
* `ListItemLink href="#…"` destination, for example).
|
|
5944
|
+
*/
|
|
5945
|
+
id?: string;
|
|
5946
|
+
/** The text's language (`lang`), when it differs from the page's (KF-AC7AFR). */
|
|
5947
|
+
lang?: string;
|
|
5948
|
+
/**
|
|
5949
|
+
* An accessible name for the element (`aria-label`), such as a named
|
|
5950
|
+
* example paragraph (KF-AC7AFR). Visible text names most Text already.
|
|
5951
|
+
*/
|
|
5952
|
+
ariaLabel?: string;
|
|
5308
5953
|
/** Native heading, paragraph, or inline span element to render. Defaults to `p`. */
|
|
5309
5954
|
variant?: TextVariant;
|
|
5310
5955
|
/** Semantic foreground treatment. Defaults to the inherited foreground. */
|
|
5311
5956
|
tone?: TextTone;
|
|
5957
|
+
/**
|
|
5958
|
+
* `strong` wraps the text in `<strong>`, for a title or key phrase that
|
|
5959
|
+
* matters more than its neighbors. Defaults to `regular`.
|
|
5960
|
+
*/
|
|
5961
|
+
weight?: TextWeight;
|
|
5312
5962
|
/** Foreground color; overrides tone when supplied, or inherits when omitted. */
|
|
5313
5963
|
color?: CssForegroundColor;
|
|
5314
5964
|
/** Text sizing independent of the native semantic element. */
|
|
@@ -5325,6 +5975,13 @@ type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> &
|
|
|
5325
5975
|
lineHeight?: TextLineHeight;
|
|
5326
5976
|
/** Inline alignment of the lines (default `start`), for centered status copy. */
|
|
5327
5977
|
align?: TextAlign;
|
|
5978
|
+
/**
|
|
5979
|
+
* Announce changes to this text as a live region (`aria-live`), for a
|
|
5980
|
+
* status or result readout that updates without moving focus.
|
|
5981
|
+
*/
|
|
5982
|
+
live?: 'polite' | 'assertive';
|
|
5983
|
+
/** Application `data-*` metadata (test hooks, row keys); Text's own stay protected. */
|
|
5984
|
+
rootAttributes?: RootDataAttributes;
|
|
5328
5985
|
children: TextContent;
|
|
5329
5986
|
class?: string;
|
|
5330
5987
|
className?: string;
|
|
@@ -5364,9 +6021,9 @@ type TextProps = TextCommonProps & ({
|
|
|
5364
6021
|
* content-item padding; `span` adds no box geometry.
|
|
5365
6022
|
* All ordinary native heading/paragraph attributes pass through to the element.
|
|
5366
6023
|
*/
|
|
5367
|
-
declare function Text({ variant: Variant, tone, color, size, font, border, flush, controlMargins, lineHeight, align, wrap, maxLines, truncate, truncateKeep, children, class: classValue, className, style, ...attributes }: TextProps): kerfjs.SafeHtml;
|
|
6024
|
+
declare function Text({ variant: Variant, tone, weight, color, size, font, border, flush, controlMargins, lineHeight, align, live, ariaLabel, rootAttributes, wrap, maxLines, truncate, truncateKeep, children, class: classValue, className, style, ...attributes }: TextProps): kerfjs.SafeHtml;
|
|
5368
6025
|
|
|
5369
|
-
export { FieldLabel, type FieldLabelProps, Sides, Text, type TextAlign, type TextBorder, type TextContent, type TextFont, type TextLineHeight, type TextProps, type TextSize, type TextTone, type TextTruncate, type TextTruncateKeep, type TextVariant, type TextWrap };
|
|
6026
|
+
export { FieldLabel, type FieldLabelProps, Sides, Text, type TextAlign, type TextBorder, type TextContent, type TextFont, type TextLineHeight, type TextProps, type TextSize, type TextTone, type TextTruncate, type TextTruncateKeep, type TextVariant, type TextWeight, type TextWrap };
|
|
5370
6027
|
```
|
|
5371
6028
|
|
|
5372
6029
|
## `@kerfjs/ui/editor-frame`
|
|
@@ -5419,6 +6076,7 @@ export { EditorFrame, type EditorFrameAppearance, type EditorFrameInset, type Ed
|
|
|
5419
6076
|
|
|
5420
6077
|
```ts
|
|
5421
6078
|
import * as kerfjs from 'kerfjs';
|
|
6079
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5422
6080
|
import { CssLength } from './css-values.js';
|
|
5423
6081
|
|
|
5424
6082
|
interface ValuePreviewProps {
|
|
@@ -5434,9 +6092,12 @@ interface ValuePreviewProps {
|
|
|
5434
6092
|
className?: string;
|
|
5435
6093
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5436
6094
|
slot?: string;
|
|
6095
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6096
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6097
|
+
rootAttributes?: RootDataAttributes;
|
|
5437
6098
|
}
|
|
5438
6099
|
/** Read-only, bounded multiline text for a containing surface such as SunkenPanel. */
|
|
5439
|
-
declare function ValuePreview({ label, value, minHeight, maxHeight, id, className, slot, }: ValuePreviewProps): kerfjs.SafeHtml;
|
|
6100
|
+
declare function ValuePreview({ label, value, minHeight, maxHeight, id, className, slot, rootAttributes, }: ValuePreviewProps): kerfjs.SafeHtml;
|
|
5440
6101
|
|
|
5441
6102
|
export { ValuePreview, type ValuePreviewProps };
|
|
5442
6103
|
```
|
|
@@ -5493,6 +6154,125 @@ declare function FramedListRow({ children, highlighted, id, className, rootAttri
|
|
|
5493
6154
|
export { FramedList, type FramedListProps, FramedListRow, type FramedListRowProps, type FramedListSurface };
|
|
5494
6155
|
```
|
|
5495
6156
|
|
|
6157
|
+
## `@kerfjs/ui/tree-list`
|
|
6158
|
+
|
|
6159
|
+
```ts
|
|
6160
|
+
import * as kerfjs from 'kerfjs';
|
|
6161
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6162
|
+
import { T as TreeListNode } from './tree-rows-eHnnGLGM.js';
|
|
6163
|
+
export { a as TreeListRow, i as isExpandable, m as moveTreeListNode, t as treeListPath, b as treeListRows } from './tree-rows-eHnnGLGM.js';
|
|
6164
|
+
import './semantic-content-BbzjvSu9.js';
|
|
6165
|
+
|
|
6166
|
+
interface TreeListProps {
|
|
6167
|
+
/** Identifies the tree for `wireTreeList` and in tests. */
|
|
6168
|
+
id: string;
|
|
6169
|
+
/** The tree's accessible name, such as "Document outline". */
|
|
6170
|
+
label: string;
|
|
6171
|
+
/** The hierarchy. The application owns it. */
|
|
6172
|
+
nodes: readonly TreeListNode[];
|
|
6173
|
+
/** Ids of the expanded nodes. The application owns this state. */
|
|
6174
|
+
expanded: ReadonlySet<string> | readonly string[];
|
|
6175
|
+
/** The selected node's id. */
|
|
6176
|
+
selected?: string;
|
|
6177
|
+
/** Delegated action for choosing a row; the row's `data-item-id` names it. */
|
|
6178
|
+
action: string;
|
|
6179
|
+
/**
|
|
6180
|
+
* Delegated action for expanding or collapsing a row, from its disclosure
|
|
6181
|
+
* arrow or the keyboard (Right and Left). Flip the id in `expanded`.
|
|
6182
|
+
*/
|
|
6183
|
+
toggleAction: string;
|
|
6184
|
+
/** Row density: `standard` (44px rows, default) or `compact` (36px). */
|
|
6185
|
+
density?: 'standard' | 'compact';
|
|
6186
|
+
className?: string;
|
|
6187
|
+
/** Safe `data-*` metadata for the tree element. */
|
|
6188
|
+
rootAttributes?: RootDataAttributes;
|
|
6189
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6190
|
+
slot?: string;
|
|
6191
|
+
}
|
|
6192
|
+
/**
|
|
6193
|
+
* A hierarchical list: ListItem rows indented by depth, with a disclosure
|
|
6194
|
+
* arrow on each row that has children. The tree is an ARIA `tree` of flat
|
|
6195
|
+
* `treeitem` rows; the application owns the nodes, which are expanded, and
|
|
6196
|
+
* which is selected, and handles `action` and `toggleAction`. Wire keyboard
|
|
6197
|
+
* navigation with `wireTreeList`.
|
|
6198
|
+
*/
|
|
6199
|
+
declare function TreeList({ id, label, nodes, expanded, selected, action, toggleAction, density, className, rootAttributes, slot, }: TreeListProps): kerfjs.SafeHtml;
|
|
6200
|
+
|
|
6201
|
+
export { TreeList, TreeListNode, type TreeListProps };
|
|
6202
|
+
```
|
|
6203
|
+
|
|
6204
|
+
## `@kerfjs/ui/column-explorer`
|
|
6205
|
+
|
|
6206
|
+
```ts
|
|
6207
|
+
import { SafeHtml } from 'kerfjs';
|
|
6208
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6209
|
+
import { CssLength } from './css-values.js';
|
|
6210
|
+
import { T as TreeListNode } from './tree-rows-eHnnGLGM.js';
|
|
6211
|
+
import './semantic-content-BbzjvSu9.js';
|
|
6212
|
+
|
|
6213
|
+
/** One column: the children of the node chosen in the column before it. */
|
|
6214
|
+
interface ExplorerColumn {
|
|
6215
|
+
/** 0 for the top level. */
|
|
6216
|
+
readonly level: number;
|
|
6217
|
+
/** The node whose children this column lists, or undefined at the top. */
|
|
6218
|
+
readonly parent?: TreeListNode;
|
|
6219
|
+
readonly nodes: readonly TreeListNode[];
|
|
6220
|
+
/** The id chosen in this column, when the path reaches it. */
|
|
6221
|
+
readonly chosen?: string;
|
|
6222
|
+
}
|
|
6223
|
+
/**
|
|
6224
|
+
* The columns for `path` (ids from the top level down): the top level, then
|
|
6225
|
+
* the children of each chosen node that can expand. A path id that is not a
|
|
6226
|
+
* child of the column before it ends the walk there.
|
|
6227
|
+
*/
|
|
6228
|
+
declare function explorerColumns(nodes: readonly TreeListNode[], path: readonly string[]): ExplorerColumn[];
|
|
6229
|
+
/** The node at the end of `path`, when the whole path resolves. */
|
|
6230
|
+
declare function explorerChosen(nodes: readonly TreeListNode[], path: readonly string[]): TreeListNode | undefined;
|
|
6231
|
+
|
|
6232
|
+
interface ColumnExplorerProps {
|
|
6233
|
+
/** Identifies the explorer for `wireColumnExplorer` and in tests. */
|
|
6234
|
+
id: string;
|
|
6235
|
+
/** The explorer's accessible name, such as "Files". */
|
|
6236
|
+
label: string;
|
|
6237
|
+
/** The hierarchy, as TreeList's nodes. The application owns it. */
|
|
6238
|
+
nodes: readonly TreeListNode[];
|
|
6239
|
+
/**
|
|
6240
|
+
* The chosen ids from the top level down, one per column. The application
|
|
6241
|
+
* owns it: set it to `treeListPath(nodes, id)` when `action` reports a row.
|
|
6242
|
+
*/
|
|
6243
|
+
path: readonly string[];
|
|
6244
|
+
/** Delegated action for choosing a row; the row's `data-item-id` names it. */
|
|
6245
|
+
action: string;
|
|
6246
|
+
/**
|
|
6247
|
+
* Content for a last column when the chosen node is a leaf, such as a
|
|
6248
|
+
* file's details.
|
|
6249
|
+
*/
|
|
6250
|
+
preview?: SafeHtml;
|
|
6251
|
+
/** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */
|
|
6252
|
+
layout?: 'scroll' | 'paged';
|
|
6253
|
+
/** Each column's minimum width (ColumnTrack's default 250px). */
|
|
6254
|
+
minColumnWidth?: CssLength;
|
|
6255
|
+
/** How much of the next column a paged layout shows. */
|
|
6256
|
+
peek?: CssLength;
|
|
6257
|
+
/** Row density: `standard` (default) or `compact`. */
|
|
6258
|
+
density?: 'standard' | 'compact';
|
|
6259
|
+
className?: string;
|
|
6260
|
+
/** Safe `data-*` metadata for the explorer element. */
|
|
6261
|
+
rootAttributes?: RootDataAttributes;
|
|
6262
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6263
|
+
slot?: string;
|
|
6264
|
+
}
|
|
6265
|
+
/**
|
|
6266
|
+
* A macOS-style column explorer for a hierarchy: one column per level in a
|
|
6267
|
+
* ColumnTrack, where choosing a row with children opens the next column of
|
|
6268
|
+
* its children. The application owns the nodes and the chosen path and
|
|
6269
|
+
* handles `action`; wire the keyboard with `wireColumnExplorer`.
|
|
6270
|
+
*/
|
|
6271
|
+
declare function ColumnExplorer({ id, label, nodes, path, action, preview, layout, minColumnWidth, peek, density, className, rootAttributes, slot, }: ColumnExplorerProps): SafeHtml;
|
|
6272
|
+
|
|
6273
|
+
export { ColumnExplorer, type ColumnExplorerProps, type ExplorerColumn, explorerChosen, explorerColumns };
|
|
6274
|
+
```
|
|
6275
|
+
|
|
5496
6276
|
## `@kerfjs/ui/summary-row`
|
|
5497
6277
|
|
|
5498
6278
|
```ts
|
|
@@ -5543,6 +6323,13 @@ interface SummaryRowBaseProps {
|
|
|
5543
6323
|
type SummaryRowProps = SummaryRowBaseProps & ({
|
|
5544
6324
|
/** Selectable option, the default; place it in a labeled listbox. */
|
|
5545
6325
|
semanticRole?: 'option';
|
|
6326
|
+
/**
|
|
6327
|
+
* The delegated action this option fires when chosen (rendered as
|
|
6328
|
+
* `data-action`, as on ContentItem and ListItem), so a view
|
|
6329
|
+
* document can name it. It takes precedence over a `data-action`
|
|
6330
|
+
* in `rootAttributes`.
|
|
6331
|
+
*/
|
|
6332
|
+
action?: string;
|
|
5546
6333
|
/** Native HTML drag source on this option root, in row or card form. */
|
|
5547
6334
|
draggable?: boolean;
|
|
5548
6335
|
/** Accessible name when the visible content is not a good one. */
|
|
@@ -5551,6 +6338,7 @@ type SummaryRowProps = SummaryRowBaseProps & ({
|
|
|
5551
6338
|
/** Static labeled group; nested actions own focus and activation. */
|
|
5552
6339
|
semanticRole: 'group';
|
|
5553
6340
|
draggable?: never;
|
|
6341
|
+
action?: never;
|
|
5554
6342
|
ariaLabel: string;
|
|
5555
6343
|
});
|
|
5556
6344
|
/**
|
|
@@ -5558,7 +6346,7 @@ type SummaryRowProps = SummaryRowBaseProps & ({
|
|
|
5558
6346
|
* rail. The default is a focusable `role="option"` for a labeled listbox;
|
|
5559
6347
|
* `semanticRole="group"` gives a static labeled row for nested actions.
|
|
5560
6348
|
*/
|
|
5561
|
-
declare function SummaryRow({ title, leading, trailingMeta, metadata, presentation, titleLines, rail, selected, dimmed, listEdge, deferRendering, semanticRole, draggable, ariaLabel, id, className, rootAttributes, }: SummaryRowProps): SafeHtml;
|
|
6349
|
+
declare function SummaryRow({ title, leading, trailingMeta, metadata, presentation, titleLines, rail, selected, dimmed, listEdge, deferRendering, semanticRole, draggable, action, ariaLabel, id, className, rootAttributes, }: SummaryRowProps): SafeHtml;
|
|
5562
6350
|
|
|
5563
6351
|
export { SummaryRow, type SummaryRowListEdge, type SummaryRowPresentation, type SummaryRowProps };
|
|
5564
6352
|
```
|
|
@@ -5568,7 +6356,7 @@ export { SummaryRow, type SummaryRowListEdge, type SummaryRowPresentation, type
|
|
|
5568
6356
|
```ts
|
|
5569
6357
|
import * as kerfjs from 'kerfjs';
|
|
5570
6358
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5571
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
6359
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5572
6360
|
import { H as HorizontalAlignment, V as VerticalAlignment } from './flex-alignment-4ms8ZbV8.js';
|
|
5573
6361
|
import { S as Sides } from './sides-BPSWde0A.js';
|
|
5574
6362
|
import { UiGap, CssFlexKeyword, CssFlex } from './css-values.js';
|
|
@@ -5607,6 +6395,11 @@ interface RowProps {
|
|
|
5607
6395
|
/** Physical sides that receive the standard 8px control inset. Text insets win on overlap. */
|
|
5608
6396
|
controlInsets?: Sides;
|
|
5609
6397
|
className?: string;
|
|
6398
|
+
/**
|
|
6399
|
+
* Name the row as a group (`role="group"` with this `aria-label`), for a
|
|
6400
|
+
* set of related controls such as filter suggestions.
|
|
6401
|
+
*/
|
|
6402
|
+
ariaLabel?: string;
|
|
5610
6403
|
/**
|
|
5611
6404
|
* Safe `data-*`, `aria-*`, and structural `role` metadata (a named
|
|
5612
6405
|
* `region`, a `group`); Row-owned structural attributes remain protected.
|
|
@@ -5616,7 +6409,7 @@ interface RowProps {
|
|
|
5616
6409
|
slot?: string;
|
|
5617
6410
|
}
|
|
5618
6411
|
/** A horizontal flex row with explicit physical-axis alignment and spacing. */
|
|
5619
|
-
declare function Row({ children, hAlign, vAlign, gap, flex, fill, wrap, textInsets, controlInsets, className, rootAttributes, slot, }: RowProps): kerfjs.SafeHtml;
|
|
6412
|
+
declare function Row({ children, hAlign, vAlign, gap, flex, fill, wrap, textInsets, controlInsets, className, ariaLabel, rootAttributes, slot, }: RowProps): kerfjs.SafeHtml;
|
|
5620
6413
|
|
|
5621
6414
|
export { CssFlex, CssFlexKeyword, HorizontalAlignment, Row, type RowProps, Sides, UiGap, VerticalAlignment };
|
|
5622
6415
|
```
|
|
@@ -5689,7 +6482,7 @@ export { CssFlex, CssFlexKeyword, CssLength, Grid, type GridProps, Sides, UiGap
|
|
|
5689
6482
|
```ts
|
|
5690
6483
|
import * as kerfjs from 'kerfjs';
|
|
5691
6484
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5692
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
6485
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5693
6486
|
import { CssLength } from './css-values.js';
|
|
5694
6487
|
|
|
5695
6488
|
/** `scroll` keeps equal min-width columns; `paged` shows one near-full-width column per page. */
|
|
@@ -5712,9 +6505,18 @@ interface ColumnTrackProps {
|
|
|
5712
6505
|
minColumnWidth?: CssLength;
|
|
5713
6506
|
/** How much of the next column a `paged` track shows; default 24px. */
|
|
5714
6507
|
peek?: CssLength;
|
|
6508
|
+
/**
|
|
6509
|
+
* Name the track (a board) for assistive technology: the scroller becomes
|
|
6510
|
+
* a `role="region"` landmark with this `aria-label`. Name each column with
|
|
6511
|
+
* `List landmark="region"` and its own `ariaLabel`.
|
|
6512
|
+
*/
|
|
6513
|
+
ariaLabel?: string;
|
|
5715
6514
|
id?: string;
|
|
5716
6515
|
className?: string;
|
|
5717
|
-
/**
|
|
6516
|
+
/**
|
|
6517
|
+
* Safe `data-*`, `aria-*`, and structural `role` metadata on the scroller;
|
|
6518
|
+
* with `ariaLabel` the track owns its role and name.
|
|
6519
|
+
*/
|
|
5718
6520
|
rootAttributes?: ColumnTrackRootAttributes;
|
|
5719
6521
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5720
6522
|
slot?: string;
|
|
@@ -5725,7 +6527,7 @@ interface ColumnTrackProps {
|
|
|
5725
6527
|
* insets and vertical scrolling. Kerf owns the overflow, the paged snapping,
|
|
5726
6528
|
* and reduced motion.
|
|
5727
6529
|
*/
|
|
5728
|
-
declare function ColumnTrack({ children, layout, minColumnWidth, peek, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
|
|
6530
|
+
declare function ColumnTrack({ children, layout, minColumnWidth, peek, ariaLabel, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
|
|
5729
6531
|
|
|
5730
6532
|
export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps };
|
|
5731
6533
|
```
|
|
@@ -5735,6 +6537,7 @@ export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps };
|
|
|
5735
6537
|
```ts
|
|
5736
6538
|
import * as kerfjs from 'kerfjs';
|
|
5737
6539
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6540
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5738
6541
|
|
|
5739
6542
|
type ContentSwapSide = 'a' | 'b';
|
|
5740
6543
|
type ContentSwapTransition = 'none' | 'crossfade' | 'push';
|
|
@@ -5756,6 +6559,9 @@ interface ContentSwapProps {
|
|
|
5756
6559
|
className?: string;
|
|
5757
6560
|
/** Native named-slot assignment, such as a dialog's `label` or `footer`. */
|
|
5758
6561
|
slot?: string;
|
|
6562
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6563
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6564
|
+
rootAttributes?: RootDataAttributes;
|
|
5759
6565
|
}
|
|
5760
6566
|
/**
|
|
5761
6567
|
* Two content sides sharing one cell (a dialog body that steps to a second
|
|
@@ -5764,15 +6570,65 @@ interface ContentSwapProps {
|
|
|
5764
6570
|
* `inert`/`aria-hidden`. Use `NavStack` for full views with their own
|
|
5765
6571
|
* toolbars.
|
|
5766
6572
|
*/
|
|
5767
|
-
declare function ContentSwap({ active, a, b, transition, direction, label, fill, className, slot, }: ContentSwapProps): kerfjs.SafeHtml;
|
|
6573
|
+
declare function ContentSwap({ active, a, b, transition, direction, label, fill, className, slot, rootAttributes, }: ContentSwapProps): kerfjs.SafeHtml;
|
|
5768
6574
|
|
|
5769
6575
|
export { ContentSwap, type ContentSwapDirection, type ContentSwapProps, type ContentSwapSide, type ContentSwapTransition };
|
|
5770
6576
|
```
|
|
5771
6577
|
|
|
6578
|
+
## `@kerfjs/ui/sized-region`
|
|
6579
|
+
|
|
6580
|
+
```ts
|
|
6581
|
+
import * as kerfjs from 'kerfjs';
|
|
6582
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6583
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6584
|
+
import { CssLength } from './css-values.js';
|
|
6585
|
+
|
|
6586
|
+
interface SizedRegionProps {
|
|
6587
|
+
/**
|
|
6588
|
+
* The region's height: a typed `CssLength`, or `'fill'` to take the height
|
|
6589
|
+
* its parent gives it (the rest of a flex column such as a Pane's content,
|
|
6590
|
+
* or all of a parent with a definite height). Defaults to `'fill'`. Inside
|
|
6591
|
+
* a parent that sizes to its content, `'fill'` has nothing to take, so
|
|
6592
|
+
* give the region a `minHeight` or a length.
|
|
6593
|
+
*/
|
|
6594
|
+
height?: CssLength | 'fill';
|
|
6595
|
+
/**
|
|
6596
|
+
* The least height, a typed `CssLength`. Unlike `min-height` on an
|
|
6597
|
+
* ordinary box, it gives the content a usable height on its own, even in
|
|
6598
|
+
* a parent that sizes to its content.
|
|
6599
|
+
*/
|
|
6600
|
+
minHeight?: CssLength;
|
|
6601
|
+
/** The greatest height, a typed `CssLength`. */
|
|
6602
|
+
maxHeight?: CssLength;
|
|
6603
|
+
/**
|
|
6604
|
+
* One piece of content that fills the region: a whole-screen layout
|
|
6605
|
+
* (TabNavigator, NavStack, SplitView, Workbench) or another component
|
|
6606
|
+
* that fills its parent's height.
|
|
6607
|
+
*/
|
|
6608
|
+
children?: KerfUiContent;
|
|
6609
|
+
id?: string;
|
|
6610
|
+
className?: string;
|
|
6611
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6612
|
+
slot?: string;
|
|
6613
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6614
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6615
|
+
rootAttributes?: RootDataAttributes;
|
|
6616
|
+
}
|
|
6617
|
+
/**
|
|
6618
|
+
* Gives content that cannot size itself a definite height: a whole-screen
|
|
6619
|
+
* layout placed below an app's root, which otherwise collapses to its bar.
|
|
6620
|
+
* Not for sizing ordinary components; those size to their content.
|
|
6621
|
+
*/
|
|
6622
|
+
declare function SizedRegion({ height, minHeight, maxHeight, children, id, className, slot, rootAttributes, }: SizedRegionProps): kerfjs.SafeHtml;
|
|
6623
|
+
|
|
6624
|
+
export { CssLength, SizedRegion, type SizedRegionProps };
|
|
6625
|
+
```
|
|
6626
|
+
|
|
5772
6627
|
## `@kerfjs/ui/spacer`
|
|
5773
6628
|
|
|
5774
6629
|
```ts
|
|
5775
6630
|
import * as kerfjs from 'kerfjs';
|
|
6631
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5776
6632
|
import { UiSpaceName, CssLength } from './css-values.js';
|
|
5777
6633
|
|
|
5778
6634
|
interface SpacerProps {
|
|
@@ -5785,9 +6641,12 @@ interface SpacerProps {
|
|
|
5785
6641
|
className?: string;
|
|
5786
6642
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5787
6643
|
slot?: string;
|
|
6644
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6645
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6646
|
+
rootAttributes?: RootDataAttributes;
|
|
5788
6647
|
}
|
|
5789
6648
|
/** A decorative fixed-size or flexible gap for Row, List, and other flex layouts. */
|
|
5790
|
-
declare function Spacer({ flex, width, height, className, slot, }: SpacerProps): kerfjs.SafeHtml;
|
|
6649
|
+
declare function Spacer({ flex, width, height, className, slot, rootAttributes, }: SpacerProps): kerfjs.SafeHtml;
|
|
5791
6650
|
|
|
5792
6651
|
export { CssLength, Spacer, type SpacerProps, UiSpaceName };
|
|
5793
6652
|
```
|
|
@@ -5922,6 +6781,167 @@ declare function Disclosure({ title, detail, children, open, name, appearance, t
|
|
|
5922
6781
|
export { Disclosure, type DisclosureAppearance, type DisclosureProps, type DisclosureRootAttributes };
|
|
5923
6782
|
```
|
|
5924
6783
|
|
|
6784
|
+
## `@kerfjs/ui/tab-panel`
|
|
6785
|
+
|
|
6786
|
+
```ts
|
|
6787
|
+
import * as kerfjs from 'kerfjs';
|
|
6788
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6789
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6790
|
+
|
|
6791
|
+
interface TabPanelProps {
|
|
6792
|
+
/** The panel's DOM id: the controlling `TabBarItem`'s `panelId`
|
|
6793
|
+
* (its `aria-controls`). */
|
|
6794
|
+
id: string;
|
|
6795
|
+
/** The DOM id of the tab that names this panel: the controlling
|
|
6796
|
+
* `TabBarItem`'s `tabId`, written as `aria-labelledby`. */
|
|
6797
|
+
tabId: string;
|
|
6798
|
+
/** Hide the panel while its tab is not selected. The application keeps
|
|
6799
|
+
* exactly one panel of a tab set visible, the selected tab's. */
|
|
6800
|
+
hidden?: boolean;
|
|
6801
|
+
/** The panel's content is still loading (`aria-busy`), as for a
|
|
6802
|
+
* `pending` `TabBarItem` whose panel shows placeholders. */
|
|
6803
|
+
busy?: boolean;
|
|
6804
|
+
/** The panel's content. */
|
|
6805
|
+
children?: KerfUiContent;
|
|
6806
|
+
className?: string;
|
|
6807
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6808
|
+
slot?: string;
|
|
6809
|
+
/** Application `data-*` metadata on the root, such as a test hook or an
|
|
6810
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6811
|
+
rootAttributes?: RootDataAttributes;
|
|
6812
|
+
}
|
|
6813
|
+
/**
|
|
6814
|
+
* The application-owned panel a `TabBarItem` controls: a `tabpanel` region
|
|
6815
|
+
* named by its tab. It adds no inset, chrome, or layout of its own; the
|
|
6816
|
+
* content inside it owns those. Selection stays application state: render
|
|
6817
|
+
* every panel of a tab set and set `hidden` on all but the selected tab's.
|
|
6818
|
+
*/
|
|
6819
|
+
declare function TabPanel({ id, tabId, hidden, busy, children, className, slot, rootAttributes, }: TabPanelProps): kerfjs.SafeHtml;
|
|
6820
|
+
|
|
6821
|
+
export { TabPanel, type TabPanelProps };
|
|
6822
|
+
```
|
|
6823
|
+
|
|
6824
|
+
## `@kerfjs/ui/paged-view`
|
|
6825
|
+
|
|
6826
|
+
```ts
|
|
6827
|
+
import * as kerfjs from 'kerfjs';
|
|
6828
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6829
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6830
|
+
|
|
6831
|
+
/** One page of a {@link PagedView}: its id, its name, and its content. */
|
|
6832
|
+
interface PagedViewPage<Id extends string = string> {
|
|
6833
|
+
/** Stable page id: the controlled `page` value and the persisted choice. */
|
|
6834
|
+
id: Id;
|
|
6835
|
+
/** Short page name, spoken in the dot's name (see `pageLabel`) and shown as the dot's tooltip. */
|
|
6836
|
+
label: string;
|
|
6837
|
+
/** The page's content; it owns its own inset (a `ContentItem`, `List`, `ListInsetText`). */
|
|
6838
|
+
content: KerfUiContent;
|
|
6839
|
+
}
|
|
6840
|
+
interface PagedViewProps<Id extends string = string> {
|
|
6841
|
+
/** DOM id of the root; page and dot ids derive from it. */
|
|
6842
|
+
id: string;
|
|
6843
|
+
/** Accessible name of the page-dot tablist (for example "Sidebar pages"). */
|
|
6844
|
+
label: string;
|
|
6845
|
+
/** The pages, in order. With one page no dots render. */
|
|
6846
|
+
pages: readonly PagedViewPage<Id>[];
|
|
6847
|
+
/** The controlled current page id (the app owns it and may persist it). */
|
|
6848
|
+
page: NoInfer<Id>;
|
|
6849
|
+
/**
|
|
6850
|
+
* Accessible name of each page dot, for localization: `{index}` is the
|
|
6851
|
+
* 1-based page number, `{count}` the page count, and `{label}` the page's
|
|
6852
|
+
* label. Defaults to `Page {index} of {count}: {label}`.
|
|
6853
|
+
*/
|
|
6854
|
+
pageLabel?: string;
|
|
6855
|
+
className?: string;
|
|
6856
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6857
|
+
slot?: string;
|
|
6858
|
+
/** Application `data-*` metadata on the root, such as a test hook or an
|
|
6859
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6860
|
+
rootAttributes?: RootDataAttributes;
|
|
6861
|
+
}
|
|
6862
|
+
/**
|
|
6863
|
+
* A region that pages horizontally between full-size panes, with compact
|
|
6864
|
+
* page dots floating in a pill at the bottom. Each pane fills the region and
|
|
6865
|
+
* scrolls vertically on its own, beneath the dots; swiping, trackpad
|
|
6866
|
+
* scrolling, the dots, and Left and Right on the dots change the page once
|
|
6867
|
+
* `wirePagedViews` is wired. The component owns the
|
|
6868
|
+
* geometry: put it directly in a Pane, sidebar, or SizedRegion, with no
|
|
6869
|
+
* wrapper padding.
|
|
6870
|
+
*/
|
|
6871
|
+
declare function PagedView<Id extends string>({ id, label, pages, page, pageLabel, className, slot, rootAttributes, }: PagedViewProps<Id>): kerfjs.SafeHtml;
|
|
6872
|
+
|
|
6873
|
+
export { PagedView, type PagedViewPage, type PagedViewProps };
|
|
6874
|
+
```
|
|
6875
|
+
|
|
6876
|
+
## `@kerfjs/ui/form`
|
|
6877
|
+
|
|
6878
|
+
```ts
|
|
6879
|
+
import * as kerfjs from 'kerfjs';
|
|
6880
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6881
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6882
|
+
|
|
6883
|
+
interface FormProps {
|
|
6884
|
+
/** The form's id: a `Button` outside it names it with `form`, and the
|
|
6885
|
+
* application reads its fields with `new FormData(form)`. */
|
|
6886
|
+
id?: string;
|
|
6887
|
+
/** Native form `name`, for `document.forms` lookups. */
|
|
6888
|
+
name?: string;
|
|
6889
|
+
/**
|
|
6890
|
+
* Delegated `data-action` the application handles on `submit`, with
|
|
6891
|
+
* `delegateActions(root, 'submit', table)`. It is not the native `action`
|
|
6892
|
+
* URL: a Kerf UI Form never navigates (see `wireForms`).
|
|
6893
|
+
*/
|
|
6894
|
+
action?: string;
|
|
6895
|
+
/** Id of a visible heading that names the form. A named form is a `form`
|
|
6896
|
+
* landmark; leave both names off for a form that needs no landmark. */
|
|
6897
|
+
labelledBy?: string;
|
|
6898
|
+
/** Accessible name when no visible heading names the form. */
|
|
6899
|
+
ariaLabel?: string;
|
|
6900
|
+
/** Id of the element whose text describes the form, such as a heading's
|
|
6901
|
+
* supporting line; rendered as `aria-describedby`. */
|
|
6902
|
+
describedBy?: string;
|
|
6903
|
+
/** Skip native constraint validation on submit, for a form whose
|
|
6904
|
+
* application validates its fields and shows their errors itself. */
|
|
6905
|
+
noValidate?: boolean;
|
|
6906
|
+
/** The fields, field groups, and actions the form holds. */
|
|
6907
|
+
children?: KerfUiContent;
|
|
6908
|
+
className?: string;
|
|
6909
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6910
|
+
slot?: string;
|
|
6911
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6912
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6913
|
+
rootAttributes?: RootDataAttributes;
|
|
6914
|
+
}
|
|
6915
|
+
/**
|
|
6916
|
+
* A native form that groups fields so their values submit and read together.
|
|
6917
|
+
* It adds no inset, chrome, or layout of its own: its children lay out as
|
|
6918
|
+
* the parent's own. Submitting runs the application's `action` handler and,
|
|
6919
|
+
* with `wireForms`, never navigates the page.
|
|
6920
|
+
*/
|
|
6921
|
+
declare function Form({ id, name, action, labelledBy, ariaLabel, describedBy, noValidate, children, className, slot, rootAttributes, }: FormProps): kerfjs.SafeHtml;
|
|
6922
|
+
|
|
6923
|
+
export { Form, type FormProps };
|
|
6924
|
+
```
|
|
6925
|
+
|
|
6926
|
+
## `@kerfjs/ui/wire-forms`
|
|
6927
|
+
|
|
6928
|
+
```ts
|
|
6929
|
+
type Root = HTMLElement | Document;
|
|
6930
|
+
/**
|
|
6931
|
+
* Keep every Kerf UI `Form` below root from navigating the page when it is
|
|
6932
|
+
* submitted, whether by a submit `Button` or by Enter in a field (implicit
|
|
6933
|
+
* submission). The `submit` event still reaches the application, which
|
|
6934
|
+
* handles it with `delegateActions(root, 'submit', table)` keyed on the
|
|
6935
|
+
* Form's `action`; native constraint validation still runs first unless the
|
|
6936
|
+
* Form sets `noValidate`. It listens in the capture phase, so a handler that
|
|
6937
|
+
* stops propagation cannot let a submission through. A native `<form>` that
|
|
6938
|
+
* is not a Kerf UI Form is left alone. Dispose with the owning application.
|
|
6939
|
+
*/
|
|
6940
|
+
declare function wireForms(root: Root): () => void;
|
|
6941
|
+
|
|
6942
|
+
export { wireForms };
|
|
6943
|
+
```
|
|
6944
|
+
|
|
5925
6945
|
## `@kerfjs/ui/wire-choice-chips`
|
|
5926
6946
|
|
|
5927
6947
|
```ts
|
|
@@ -5937,7 +6957,9 @@ declare function readChoiceChips(group: Element): string[];
|
|
|
5937
6957
|
* it), and Cmd/Ctrl+A selects every chip. Disabled chips keep their state.
|
|
5938
6958
|
* Each change updates `aria-selected` and the hidden form inputs, then fires
|
|
5939
6959
|
* a bubbling `change` on the group, whose `data-action` is the group's
|
|
5940
|
-
* `action`; read the new set with `readChoiceChips`.
|
|
6960
|
+
* `action`; read the new set with `readChoiceChips`. In a one-row scrolling
|
|
6961
|
+
* group (`overflow: 'scroll'`) of any selection mode, it also keeps the
|
|
6962
|
+
* checked chip in view, scrolling only the group. Returns a disposer.
|
|
5941
6963
|
*/
|
|
5942
6964
|
declare function wireChoiceChips(root: HTMLElement | Document): () => void;
|
|
5943
6965
|
|
|
@@ -6182,9 +7204,10 @@ export { ColorField, type ColorFieldProps, type ColorFieldRootAttributes, type C
|
|
|
6182
7204
|
## `@kerfjs/ui/search-field-model`
|
|
6183
7205
|
|
|
6184
7206
|
```ts
|
|
6185
|
-
export { b as SearchFieldModel, c as SearchFieldModelOptions, e as SearchFieldResolvedToken, f as SearchFieldRule, g as SearchFieldState, h as SearchFieldStructure, i as SearchFieldSuggestion, n as createSearchFieldModel } from './search-field-
|
|
7207
|
+
export { b as SearchFieldModel, c as SearchFieldModelOptions, e as SearchFieldResolvedToken, f as SearchFieldRule, g as SearchFieldState, h as SearchFieldStructure, i as SearchFieldSuggestion, n as createSearchFieldModel } from './search-field-5lNIszda.js';
|
|
6186
7208
|
import 'kerfjs';
|
|
6187
7209
|
import './semantic-content-BbzjvSu9.js';
|
|
7210
|
+
import './extension-attributes-IJ4decoa.js';
|
|
6188
7211
|
```
|
|
6189
7212
|
|
|
6190
7213
|
## `@kerfjs/ui/tag-field`
|
|
@@ -6192,6 +7215,7 @@ import './semantic-content-BbzjvSu9.js';
|
|
|
6192
7215
|
```ts
|
|
6193
7216
|
import * as kerfjs from 'kerfjs';
|
|
6194
7217
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
7218
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6195
7219
|
|
|
6196
7220
|
/** The delegated actions a TagField's controls carry; `wireTagFields` handles them. */
|
|
6197
7221
|
declare const tagFieldActions: {
|
|
@@ -6229,6 +7253,9 @@ interface TagFieldProps {
|
|
|
6229
7253
|
className?: string;
|
|
6230
7254
|
/** Native named-slot assignment when composed inside a web component. */
|
|
6231
7255
|
slot?: string;
|
|
7256
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
7257
|
+
* editor node marker; the component's own markers stay protected. */
|
|
7258
|
+
rootAttributes?: RootDataAttributes;
|
|
6232
7259
|
}
|
|
6233
7260
|
/**
|
|
6234
7261
|
* A form field that collects short values as removable tags: SearchField's
|
|
@@ -6239,7 +7266,7 @@ interface TagFieldProps {
|
|
|
6239
7266
|
* the tag list: wire `wireTagFields` from `@kerfjs/ui/wire-tag-fields` and
|
|
6240
7267
|
* re-render with the list its `onChange` reports.
|
|
6241
7268
|
*/
|
|
6242
|
-
declare function TagField({ id, label, tags, name, form, placeholder, morePlaceholder, hint, error, max, required, disabled, icon, clearLabel, className, slot, }: TagFieldProps): kerfjs.SafeHtml;
|
|
7269
|
+
declare function TagField({ id, label, tags, name, form, placeholder, morePlaceholder, hint, error, max, required, disabled, icon, clearLabel, className, slot, rootAttributes, }: TagFieldProps): kerfjs.SafeHtml;
|
|
6243
7270
|
|
|
6244
7271
|
export { TagField, type TagFieldProps, tagFieldActions };
|
|
6245
7272
|
```
|
|
@@ -6248,6 +7275,7 @@ export { TagField, type TagFieldProps, tagFieldActions };
|
|
|
6248
7275
|
|
|
6249
7276
|
```ts
|
|
6250
7277
|
import * as kerfjs from 'kerfjs';
|
|
7278
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6251
7279
|
|
|
6252
7280
|
/** A suggestion: a plain string, or a value with a distinct visible label. */
|
|
6253
7281
|
type ComboboxSuggestion = string | {
|
|
@@ -6276,6 +7304,9 @@ interface ComboboxProps {
|
|
|
6276
7304
|
createLabel?: string | false;
|
|
6277
7305
|
disabled?: boolean;
|
|
6278
7306
|
className?: string;
|
|
7307
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
7308
|
+
* editor node marker; the component's own markers stay protected. */
|
|
7309
|
+
rootAttributes?: RootDataAttributes;
|
|
6279
7310
|
}
|
|
6280
7311
|
/**
|
|
6281
7312
|
* A free-text field with a filtered suggestion list that can also create a new
|
|
@@ -6284,7 +7315,7 @@ interface ComboboxProps {
|
|
|
6284
7315
|
* and reports commits (Enter, comma, or a click). Use `Select` when only
|
|
6285
7316
|
* existing values are allowed and nothing is typed.
|
|
6286
7317
|
*/
|
|
6287
|
-
declare function Combobox({ id, label, suggestions, value, placeholder, hint, name, createLabel, disabled, className, }: ComboboxProps): kerfjs.SafeHtml;
|
|
7318
|
+
declare function Combobox({ id, label, suggestions, value, placeholder, hint, name, createLabel, disabled, className, rootAttributes, }: ComboboxProps): kerfjs.SafeHtml;
|
|
6288
7319
|
|
|
6289
7320
|
export { Combobox, type ComboboxProps, type ComboboxSuggestion };
|
|
6290
7321
|
```
|
|
@@ -6315,6 +7346,22 @@ type TextFieldName = {
|
|
|
6315
7346
|
ariaLabel: string;
|
|
6316
7347
|
};
|
|
6317
7348
|
type TextFieldProps = TextFieldName & TextFieldOptions;
|
|
7349
|
+
/**
|
|
7350
|
+
* An icon toggle button inside the end of the field (KF-3Y2GS2): a
|
|
7351
|
+
* password's Show, or an editor's Not set. A multi-line field pins it to its
|
|
7352
|
+
* top end (KF-8FCJ02). The application flips
|
|
7353
|
+
* `pressed` in its `action` handler.
|
|
7354
|
+
*/
|
|
7355
|
+
interface TextFieldToggle {
|
|
7356
|
+
/** The button's accessible name. */
|
|
7357
|
+
label: string;
|
|
7358
|
+
/** Its icon, such as a `LucideIcon`. */
|
|
7359
|
+
icon: KerfUiContent;
|
|
7360
|
+
/** Whether the toggle is on (`aria-pressed`). */
|
|
7361
|
+
pressed: boolean;
|
|
7362
|
+
/** Delegated `data-action` the application handles. */
|
|
7363
|
+
action: string;
|
|
7364
|
+
}
|
|
6318
7365
|
interface TextFieldOptions {
|
|
6319
7366
|
/** The controlled value. */
|
|
6320
7367
|
value?: string;
|
|
@@ -6337,6 +7384,8 @@ interface TextFieldOptions {
|
|
|
6337
7384
|
clearable?: boolean;
|
|
6338
7385
|
/** The clear button's accessible name (default `Clear`). */
|
|
6339
7386
|
clearLabel?: string;
|
|
7387
|
+
/** An icon toggle button inside the end of the field (top end when multi-line). */
|
|
7388
|
+
toggle?: TextFieldToggle;
|
|
6340
7389
|
/** The most characters the field accepts (native `maxlength`). */
|
|
6341
7390
|
maxLength?: number;
|
|
6342
7391
|
/**
|
|
@@ -6384,15 +7433,15 @@ interface TextFieldOptions {
|
|
|
6384
7433
|
slot?: string;
|
|
6385
7434
|
}
|
|
6386
7435
|
/**
|
|
6387
|
-
* A text input with its label above, an optional leading icon
|
|
6388
|
-
* button, and supporting or error text below, at the 44px control height or
|
|
7436
|
+
* A text input with its label above, an optional leading icon, clear
|
|
7437
|
+
* button, and end toggle, and supporting or error text below, at the 44px control height or
|
|
6389
7438
|
* compact. `multiline` makes it a textarea that can grow with its content.
|
|
6390
7439
|
* The whole field is one `<label>`, so clicking anywhere on it focuses the
|
|
6391
7440
|
* input; the input is named by `label` (or `ariaLabel`) directly.
|
|
6392
7441
|
*/
|
|
6393
|
-
declare function TextField({ label, ariaLabel, value, name, placeholder, hint, error, size, icon, clearable, clearLabel, maxLength, showCount, type, min, max, step, multiline, rows, maxRows, disabled, readOnly, required, autofocus, autocomplete, autocapitalize, autocorrect, inputMode, spellcheck, id, className, rootAttributes, slot, }: TextFieldProps): kerfjs.SafeHtml;
|
|
7442
|
+
declare function TextField({ label, ariaLabel, value, name, placeholder, hint, error, size, icon, clearable, clearLabel, toggle, maxLength, showCount, type, min, max, step, multiline, rows, maxRows, disabled, readOnly, required, autofocus, autocomplete, autocapitalize, autocorrect, inputMode, spellcheck, id, className, rootAttributes, slot, }: TextFieldProps): kerfjs.SafeHtml;
|
|
6394
7443
|
|
|
6395
|
-
export { TextField, type TextFieldInputMode, type TextFieldName, type TextFieldOptions, type TextFieldProps, type TextFieldRootAttributes, type TextFieldSize, type TextFieldType };
|
|
7444
|
+
export { TextField, type TextFieldInputMode, type TextFieldName, type TextFieldOptions, type TextFieldProps, type TextFieldRootAttributes, type TextFieldSize, type TextFieldToggle, type TextFieldType };
|
|
6396
7445
|
```
|
|
6397
7446
|
|
|
6398
7447
|
## `@kerfjs/ui/checkbox`
|
|
@@ -6796,9 +7845,21 @@ import './semantic-tone-CdW013KF.js';
|
|
|
6796
7845
|
type ButtonTone = 'neutral' | 'brand' | 'success' | 'danger';
|
|
6797
7846
|
/**
|
|
6798
7847
|
* How loudly it asks: `primary` (default) fills the button, `secondary`
|
|
6799
|
-
* outlines it,
|
|
7848
|
+
* outlines it, `plain` shows only its text until hovered, and `link` draws it
|
|
7849
|
+
* as an inline text link (the tone's link color, underlined, no box). Any
|
|
7850
|
+
* Button takes any emphasis, whether it renders a `<button>` or a link.
|
|
7851
|
+
*/
|
|
7852
|
+
type ButtonEmphasis = 'primary' | 'secondary' | 'plain' | 'link';
|
|
7853
|
+
/** Where a link Button opens. */
|
|
7854
|
+
type ButtonLinkTarget = '_self' | '_blank' | '_parent' | '_top';
|
|
7855
|
+
/**
|
|
7856
|
+
* A link Button's destination: a URL (a `URL` or a string), or a URL with
|
|
7857
|
+
* the `target` it opens in. A `URL` is written as its `.href`.
|
|
6800
7858
|
*/
|
|
6801
|
-
type
|
|
7859
|
+
type ButtonLink = URL | string | {
|
|
7860
|
+
readonly href: URL | string;
|
|
7861
|
+
readonly target?: ButtonLinkTarget;
|
|
7862
|
+
};
|
|
6802
7863
|
/** `default` is the 44px control height; `compact` is 33px with smaller text. */
|
|
6803
7864
|
type ButtonSize = 'default' | 'compact';
|
|
6804
7865
|
/** Corner shape: the shared `rounded` control radius (default) or a full `pill`. */
|
|
@@ -6842,9 +7903,17 @@ interface ButtonOptions {
|
|
|
6842
7903
|
/**
|
|
6843
7904
|
* Make it a toggle: `aria-pressed` reports the state, and a pressed look is
|
|
6844
7905
|
* drawn on top of the tone and emphasis. The application owns the state and
|
|
6845
|
-
* flips it in its `action` handler. A link (`href`) cannot be a
|
|
7906
|
+
* flips it in its `action` handler. A link (`link` or `href`) cannot be a
|
|
7907
|
+
* toggle, and neither can a Button with the `link` emphasis.
|
|
6846
7908
|
*/
|
|
6847
7909
|
pressed?: boolean;
|
|
7910
|
+
/**
|
|
7911
|
+
* Make it a disclosure control: `aria-expanded` reports whether the
|
|
7912
|
+
* content it shows or hides is open (KF-DE348P). The application owns the
|
|
7913
|
+
* state and flips it in its `action` handler; pair it with a
|
|
7914
|
+
* `DisclosureArrow` icon. A link (`link` or `href`) cannot take it.
|
|
7915
|
+
*/
|
|
7916
|
+
expanded?: boolean;
|
|
6848
7917
|
/** Mark the current step in a sequence with `aria-current="step"`. */
|
|
6849
7918
|
currentStep?: boolean;
|
|
6850
7919
|
/**
|
|
@@ -6860,12 +7929,27 @@ interface ButtonOptions {
|
|
|
6860
7929
|
value?: string;
|
|
6861
7930
|
/** The id of the form it belongs to, when it sits outside that form. */
|
|
6862
7931
|
form?: string;
|
|
6863
|
-
/**
|
|
7932
|
+
/**
|
|
7933
|
+
* Render a link instead of a `<button>`: a URL, or `{ href, target }`. The
|
|
7934
|
+
* Button keeps its emphasis (set `emphasis="link"` for a text link). The
|
|
7935
|
+
* preferred spelling of `href` + `target`; give one or the other, not both.
|
|
7936
|
+
*/
|
|
7937
|
+
link?: ButtonLink;
|
|
7938
|
+
/** Render a link instead of a `<button>`; `link` is the preferred form. */
|
|
6864
7939
|
href?: string;
|
|
6865
|
-
/** Where
|
|
6866
|
-
target?:
|
|
7940
|
+
/** Where an `href` link opens; with `link`, pass `{ href, target }`. */
|
|
7941
|
+
target?: ButtonLinkTarget;
|
|
6867
7942
|
/** Delegated `data-action` the application handles. */
|
|
6868
7943
|
action?: string;
|
|
7944
|
+
/**
|
|
7945
|
+
* The id of a native `popover` element this button opens or closes (the
|
|
7946
|
+
* Popover API's invoker; KF-PAMQNM). A link Button cannot take it.
|
|
7947
|
+
*/
|
|
7948
|
+
popoverTarget?: string;
|
|
7949
|
+
/** What the button does to its `popoverTarget`; the browser default is `toggle`. */
|
|
7950
|
+
popoverTargetAction?: 'toggle' | 'show' | 'hide';
|
|
7951
|
+
/** The kind of popup the button opens, reported as `aria-haspopup`. */
|
|
7952
|
+
ariaHasPopup?: 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
6869
7953
|
/**
|
|
6870
7954
|
* Keep the button's focus ring inside its box when an ancestor clips
|
|
6871
7955
|
* overflow. The inset ring is two-tone, a surface-colored line inside the
|
|
@@ -6874,11 +7958,17 @@ interface ButtonOptions {
|
|
|
6874
7958
|
focusRingInset?: boolean;
|
|
6875
7959
|
/**
|
|
6876
7960
|
* A count, short text, or `true` for a text-free dot over the button's
|
|
6877
|
-
* top-trailing corner, such as how many items a filter hides.
|
|
6878
|
-
*
|
|
7961
|
+
* top-trailing corner, such as how many items a filter hides. A count of 0
|
|
7962
|
+
* or less, or empty text, shows no badge; a count past `badgeMax` shows
|
|
7963
|
+
* `99+`. It stays out of the accessible name unless `badgeLabel` names it.
|
|
6879
7964
|
*/
|
|
6880
7965
|
badge?: number | string | true;
|
|
6881
|
-
/**
|
|
7966
|
+
/** The largest count shown before `badgeMax+` (default 99). */
|
|
7967
|
+
badgeMax?: number;
|
|
7968
|
+
/**
|
|
7969
|
+
* Words for the badge ("3 hidden"), added to the button's name while the
|
|
7970
|
+
* badge shows.
|
|
7971
|
+
*/
|
|
6882
7972
|
badgeLabel?: string;
|
|
6883
7973
|
/** The badge's tone (default `danger`). */
|
|
6884
7974
|
badgeTone?: BadgeTone;
|
|
@@ -6897,8 +7987,8 @@ interface ButtonOptions {
|
|
|
6897
7987
|
slot?: string;
|
|
6898
7988
|
}
|
|
6899
7989
|
/**
|
|
6900
|
-
* A standalone action button: a native `<button>` (or a link with `
|
|
6901
|
-
* in one of four tones and
|
|
7990
|
+
* A standalone action button: a native `<button>` (or a link with `link`)
|
|
7991
|
+
* in one of four tones and four emphases, including an inline text link, at the 44px control height or
|
|
6902
7992
|
* compact, with a label or as an icon-only square, rounded or pill-shaped,
|
|
6903
7993
|
* sized to its label or filling its parent's width, and optionally a
|
|
6904
7994
|
* `pressed` toggle or `currentStep` marker. Inside a
|
|
@@ -6906,9 +7996,9 @@ interface ButtonOptions {
|
|
|
6906
7996
|
* Button for a dialog footer, a form, or a standalone action beside other
|
|
6907
7997
|
* content.
|
|
6908
7998
|
*/
|
|
6909
|
-
declare function Button({ children, tone, emphasis, size, shape, fill, pressed, currentStep, icon, loading, disabled, type, name, value, form, href, target, action, focusRingInset, badge, badgeLabel, badgeTone, ariaLabel, title, id, className, rootAttributes, slot, }: ButtonProps): kerfjs.SafeHtml;
|
|
7999
|
+
declare function Button({ children, tone, emphasis, size, shape, fill, pressed, expanded, currentStep, icon, loading, disabled, type, name, value, form, link, href: hrefProp, target: targetProp, action, popoverTarget, popoverTargetAction, ariaHasPopup, focusRingInset, badge, badgeMax, badgeLabel, badgeTone, ariaLabel, title, id, className, rootAttributes, slot, }: ButtonProps): kerfjs.SafeHtml;
|
|
6910
8000
|
|
|
6911
|
-
export { Button, type ButtonContent, type ButtonEmphasis, type ButtonLabel, type ButtonOptions, type ButtonProps, type ButtonRootAttributes, type ButtonShape, type ButtonSize, type ButtonTone, type ButtonType };
|
|
8001
|
+
export { Button, type ButtonContent, type ButtonEmphasis, type ButtonLabel, type ButtonLink, type ButtonLinkTarget, type ButtonOptions, type ButtonProps, type ButtonRootAttributes, type ButtonShape, type ButtonSize, type ButtonTone, type ButtonType };
|
|
6912
8002
|
```
|
|
6913
8003
|
|
|
6914
8004
|
## `@kerfjs/ui/split-button`
|
|
@@ -6989,6 +8079,12 @@ export { SplitButton, type SplitButtonProps, type SplitButtonShape, type SplitBu
|
|
|
6989
8079
|
|
|
6990
8080
|
```ts
|
|
6991
8081
|
import { SafeHtml } from 'kerfjs';
|
|
8082
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
8083
|
+
import { ButtonTone, ButtonEmphasis, ButtonSize } from './button.js';
|
|
8084
|
+
import './semantic-content-BbzjvSu9.js';
|
|
8085
|
+
import './badge.js';
|
|
8086
|
+
import './css-values.js';
|
|
8087
|
+
import './semantic-tone-CdW013KF.js';
|
|
6992
8088
|
|
|
6993
8089
|
interface FileInputProps {
|
|
6994
8090
|
/** Accepted types, as the native `accept` attribute (`.png,image/*`). */
|
|
@@ -7001,6 +8097,9 @@ interface FileInputProps {
|
|
|
7001
8097
|
pickerId?: string;
|
|
7002
8098
|
disabled?: boolean;
|
|
7003
8099
|
className?: string;
|
|
8100
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
8101
|
+
* editor node marker; the component's own markers stay protected. */
|
|
8102
|
+
rootAttributes?: RootDataAttributes;
|
|
7004
8103
|
}
|
|
7005
8104
|
interface FilePickerTriggerProps extends FileInputProps {
|
|
7006
8105
|
/** Visible trigger text, such as "Add". */
|
|
@@ -7009,6 +8108,17 @@ interface FilePickerTriggerProps extends FileInputProps {
|
|
|
7009
8108
|
accessibleLabel?: string;
|
|
7010
8109
|
/** Optional decorative leading icon, normally an unsized LucideIcon. */
|
|
7011
8110
|
icon?: SafeHtml;
|
|
8111
|
+
/**
|
|
8112
|
+
* Draw the trigger as a `Button` of this tone, so it matches the Buttons
|
|
8113
|
+
* beside it. Setting `tone`, `emphasis`, or `size` switches from the
|
|
8114
|
+
* compact link-toned trigger to the Button look (defaults `neutral`,
|
|
8115
|
+
* `primary`, `default`, as on Button); it stays a native file label.
|
|
8116
|
+
*/
|
|
8117
|
+
tone?: ButtonTone;
|
|
8118
|
+
/** The Button look's emphasis: `primary`, `secondary`, `plain`, or `link`. */
|
|
8119
|
+
emphasis?: ButtonEmphasis;
|
|
8120
|
+
/** The Button look's size: `default` (44px) or `compact`. */
|
|
8121
|
+
size?: ButtonSize;
|
|
7012
8122
|
}
|
|
7013
8123
|
interface FileDropZoneProps extends FileInputProps {
|
|
7014
8124
|
/** Primary copy, such as "Drop attachments here or browse". */
|
|
@@ -7028,10 +8138,11 @@ interface FileDropZoneProps extends FileInputProps {
|
|
|
7028
8138
|
dropScope?: string;
|
|
7029
8139
|
}
|
|
7030
8140
|
/**
|
|
7031
|
-
* A
|
|
7032
|
-
*
|
|
7033
|
-
*
|
|
7034
|
-
* `
|
|
8141
|
+
* A trigger that opens the native file chooser: a label around a visually
|
|
8142
|
+
* hidden `<input type="file">`, so a click or keyboard activation reaches the
|
|
8143
|
+
* input without script. It is a compact, link-toned trigger, or with `tone`,
|
|
8144
|
+
* `emphasis`, or `size` it looks like a `Button` of those settings. Report
|
|
8145
|
+
* choices with `wireFilePickers`.
|
|
7035
8146
|
*/
|
|
7036
8147
|
declare function FilePickerTrigger(props: FilePickerTriggerProps): SafeHtml;
|
|
7037
8148
|
/**
|
|
@@ -7049,6 +8160,7 @@ export { FileDropZone, type FileDropZoneProps, FilePickerTrigger, type FilePicke
|
|
|
7049
8160
|
```ts
|
|
7050
8161
|
import * as kerfjs from 'kerfjs';
|
|
7051
8162
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
8163
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
7052
8164
|
|
|
7053
8165
|
/** The viewport corner a CornerStatus occupies, in logical (RTL-aware) terms. */
|
|
7054
8166
|
type CornerStatusPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
@@ -7071,6 +8183,9 @@ interface CornerStatusProps {
|
|
|
7071
8183
|
className?: string;
|
|
7072
8184
|
/** Native named-slot assignment when composed inside a web component. */
|
|
7073
8185
|
slot?: string;
|
|
8186
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
8187
|
+
* editor node marker; the component's own markers stay protected. */
|
|
8188
|
+
rootAttributes?: RootDataAttributes;
|
|
7074
8189
|
}
|
|
7075
8190
|
/**
|
|
7076
8191
|
* A non-dismissible status surface pinned to a viewport corner — "Loading…",
|
|
@@ -7080,7 +8195,7 @@ interface CornerStatusProps {
|
|
|
7080
8195
|
* its own; the composed `StateBanner` is the polite live region. Use a toast
|
|
7081
8196
|
* for transient, dismissible confirmation instead.
|
|
7082
8197
|
*/
|
|
7083
|
-
declare function CornerStatus({ id, children, placement, presentation, className, slot, }: CornerStatusProps): kerfjs.SafeHtml;
|
|
8198
|
+
declare function CornerStatus({ id, children, placement, presentation, className, slot, rootAttributes, }: CornerStatusProps): kerfjs.SafeHtml;
|
|
7084
8199
|
|
|
7085
8200
|
export { CornerStatus, type CornerStatusPlacement, type CornerStatusPresentation, type CornerStatusProps };
|
|
7086
8201
|
```
|
|
@@ -7089,6 +8204,7 @@ export { CornerStatus, type CornerStatusPlacement, type CornerStatusPresentation
|
|
|
7089
8204
|
|
|
7090
8205
|
```ts
|
|
7091
8206
|
import * as kerfjs from 'kerfjs';
|
|
8207
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
7092
8208
|
import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
|
|
7093
8209
|
|
|
7094
8210
|
interface EdgeActivityIndicatorProps {
|
|
@@ -7104,6 +8220,9 @@ interface EdgeActivityIndicatorProps {
|
|
|
7104
8220
|
/** Clear the device's top safe area (default) or sit at the very edge. */
|
|
7105
8221
|
inset?: 'safe-area' | 'none';
|
|
7106
8222
|
className?: string;
|
|
8223
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
8224
|
+
* editor node marker; the component's own markers stay protected. */
|
|
8225
|
+
rootAttributes?: RootDataAttributes;
|
|
7107
8226
|
}
|
|
7108
8227
|
/**
|
|
7109
8228
|
* A layout-free activity strip pinned to the top edge of the viewport: a row
|
|
@@ -7113,7 +8232,7 @@ interface EdgeActivityIndicatorProps {
|
|
|
7113
8232
|
* Kerf owns the motion: it scales in from the edge and, under reduced motion,
|
|
7114
8233
|
* only fades.
|
|
7115
8234
|
*/
|
|
7116
|
-
declare function EdgeActivityIndicator({ busy, message, tone, inset, className, }: EdgeActivityIndicatorProps): kerfjs.SafeHtml;
|
|
8235
|
+
declare function EdgeActivityIndicator({ busy, message, tone, inset, className, rootAttributes, }: EdgeActivityIndicatorProps): kerfjs.SafeHtml;
|
|
7117
8236
|
|
|
7118
8237
|
export { EdgeActivityIndicator, type EdgeActivityIndicatorProps };
|
|
7119
8238
|
```
|