@kerfjs/ui 5.0.0-beta.123 → 5.0.0-beta.125
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 +29 -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 +1549 -173
- 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 +754 -25
- 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 +29826 -0
- package/ai/component-props.schema.json +401 -0
- package/ai/components/README.md +12 -4
- 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/gauge.md +83 -0
- 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 +3 -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 +6 -2
- 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 +1348 -127
- package/ai/skill.md +109 -39
- 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/gauge.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/segmented-control.js +1 -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-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-YWLDLNAV.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-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-IIQ2XIMU.js → chunk-6OT7FOSA.js} +32 -11
- package/dist/chunk-6OT7FOSA.js.map +1 -0
- 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-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-WPP5Q4A5.js → chunk-ADMWT7FX.js} +19 -1
- 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-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-YPAQFBMN.js → chunk-KQZIC5CA.js} +44 -10
- package/dist/chunk-KQZIC5CA.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-OUCHU7JB.js → chunk-NHQOX7T4.js} +7 -7
- package/dist/{chunk-OUCHU7JB.js.map → chunk-NHQOX7T4.js.map} +1 -1
- package/dist/chunk-NR3ZO4LK.js +67 -0
- package/dist/chunk-NR3ZO4LK.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-ROEBKSIY.js → chunk-Q7RILH2D.js} +14 -6
- 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-ETFP7HAR.js → chunk-SVUJIVMR.js} +13 -4
- package/dist/chunk-SVUJIVMR.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-LZUUUHNH.js → chunk-TTFW6E6C.js} +56 -6
- package/dist/chunk-TTFW6E6C.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/gauge.d.ts +73 -0
- package/dist/gauge.js +157 -0
- package/dist/gauge.js.map +1 -0
- 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 +26 -1
- package/dist/segmented-control.js +4 -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 +70 -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-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 +70 -0
- package/dist/styles/components/feedback/gauge/gauge.css +132 -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/segmented-control/segmented-control.css +16 -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 +9 -0
- package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +110 -2
- 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/gauge.css +132 -0
- 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/segmented-control.css +16 -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 +12 -0
- package/dist/styles/summary-row.css +39 -6
- package/dist/styles/surface-scaffold.css +77 -29
- package/dist/styles/tab-bar-item.css +110 -2
- package/dist/styles/tab-bar.css +9 -0
- 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 +8 -1
- package/dist/tab-bar-item.js +1 -1
- package/dist/tab-bar.d.ts +15 -2
- 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 +38 -8
- package/docs/component-selection.md +151 -107
- package/docs/data-tables-and-lists.md +1 -1
- package/docs/design/sketch/Kerf-UI.sketch +0 -0
- package/docs/design/sketch/README.md +1 -1
- package/docs/design/sketch/content/README.md +8 -8
- package/docs/design/sketch/coverage.md +124 -120
- package/docs/design/sketch/lists/README.md +6 -6
- package/docs/design/sketch/unified/README.md +1 -1
- package/docs/design/sketch/unified/pages/content.png +0 -0
- package/docs/design/sketch/unified/pages/lists.png +0 -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/full-width-dark.svg +1 -1
- package/docs/design/templates/button/full-width.svg +1 -1
- package/docs/design/templates/button/icons-dark.svg +1 -1
- package/docs/design/templates/button/icons.svg +1 -1
- package/docs/design/templates/button/pill-dark.svg +1 -1
- package/docs/design/templates/button/pill.svg +1 -1
- package/docs/design/templates/button/toggles-dark.svg +1 -1
- package/docs/design/templates/button/toggles.svg +1 -1
- package/docs/design/templates/button-dark.svg +1 -1
- package/docs/design/templates/button.svg +1 -1
- package/docs/design/templates/checkbox/compact-dark.svg +1 -1
- package/docs/design/templates/checkbox/compact.svg +1 -1
- package/docs/design/templates/checkbox/mixed-dark.svg +1 -1
- package/docs/design/templates/checkbox/mixed.svg +1 -1
- package/docs/design/templates/checkbox/states-dark.svg +1 -1
- package/docs/design/templates/checkbox/states.svg +1 -1
- package/docs/design/templates/checkbox-dark.svg +1 -1
- package/docs/design/templates/checkbox-group/vertical-dark.svg +1 -1
- package/docs/design/templates/checkbox-group/vertical.svg +1 -1
- package/docs/design/templates/checkbox-group-dark.svg +1 -1
- package/docs/design/templates/checkbox-group.svg +1 -1
- package/docs/design/templates/checkbox.svg +1 -1
- package/docs/design/templates/chip/tags-dark.svg +1 -1
- package/docs/design/templates/chip/tags.svg +1 -1
- package/docs/design/templates/chip-dark.svg +1 -1
- package/docs/design/templates/chip.svg +1 -1
- package/docs/design/templates/choice-chips/compact-icons-dark.svg +1 -1
- package/docs/design/templates/choice-chips/compact-icons.svg +1 -1
- package/docs/design/templates/choice-chips-dark.svg +1 -1
- package/docs/design/templates/choice-chips.svg +1 -1
- package/docs/design/templates/color-field/compact-dark.svg +1 -1
- package/docs/design/templates/color-field/compact.svg +1 -1
- package/docs/design/templates/color-field/error-dark.svg +1 -1
- package/docs/design/templates/color-field/error.svg +1 -1
- package/docs/design/templates/color-field/hint-dark.svg +1 -1
- package/docs/design/templates/color-field/hint.svg +1 -1
- package/docs/design/templates/color-field-dark.svg +1 -1
- package/docs/design/templates/color-field.svg +1 -1
- package/docs/design/templates/color-picker/gray-dark.svg +1 -1
- package/docs/design/templates/color-picker/gray.svg +1 -1
- package/docs/design/templates/color-picker/hsb-dark.svg +1 -1
- package/docs/design/templates/color-picker/hsb.svg +1 -1
- package/docs/design/templates/color-picker/rgb-dark.svg +1 -1
- package/docs/design/templates/color-picker/rgb.svg +1 -1
- package/docs/design/templates/color-picker-dark.svg +1 -1
- package/docs/design/templates/color-picker.svg +1 -1
- package/docs/design/templates/disclosure/embedded-dark.svg +1 -1
- package/docs/design/templates/disclosure/embedded.svg +1 -1
- package/docs/design/templates/disclosure/framed-sunken-dark.svg +1 -1
- package/docs/design/templates/disclosure/framed-sunken.svg +1 -1
- package/docs/design/templates/disclosure/plain-dark.svg +1 -1
- package/docs/design/templates/disclosure/plain.svg +1 -1
- package/docs/design/templates/disclosure-dark.svg +1 -1
- package/docs/design/templates/disclosure.svg +1 -1
- package/docs/design/templates/empty-state/filtered-dark.svg +1 -1
- package/docs/design/templates/empty-state/filtered.svg +1 -1
- package/docs/design/templates/empty-state/with-action-dark.svg +1 -1
- package/docs/design/templates/empty-state/with-action.svg +1 -1
- package/docs/design/templates/empty-state-dark.svg +1 -1
- package/docs/design/templates/empty-state.svg +1 -1
- package/docs/design/templates/gauge/bare-dark.svg +1 -0
- package/docs/design/templates/gauge/bare.svg +1 -0
- package/docs/design/templates/gauge/full-dark.svg +1 -0
- package/docs/design/templates/gauge/full.svg +1 -0
- package/docs/design/templates/gauge-dark.svg +1 -0
- package/docs/design/templates/gauge.svg +1 -0
- package/docs/design/templates/list/compact-dark.svg +1 -1
- package/docs/design/templates/list/compact.svg +1 -1
- package/docs/design/templates/list/stack-dark.svg +1 -1
- package/docs/design/templates/list/stack.svg +1 -1
- package/docs/design/templates/list-action-row/default-dark.svg +1 -1
- package/docs/design/templates/list-action-row/default.svg +1 -1
- package/docs/design/templates/list-action-row/icon-tile-dark.svg +1 -1
- package/docs/design/templates/list-action-row/icon-tile.svg +1 -1
- package/docs/design/templates/list-action-row/selected-dark.svg +1 -1
- package/docs/design/templates/list-action-row/selected.svg +1 -1
- package/docs/design/templates/list-action-row/trailing-menu-dark.svg +1 -1
- package/docs/design/templates/list-action-row/trailing-menu.svg +1 -1
- package/docs/design/templates/list-action-row-dark.svg +1 -1
- package/docs/design/templates/list-action-row.svg +1 -1
- package/docs/design/templates/list-dark.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/inline-action-dark.svg +1 -1
- package/docs/design/templates/list-header/inline-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/list-item/default-dark.svg +1 -1
- package/docs/design/templates/list-item/default.svg +1 -1
- package/docs/design/templates/list-item/icon-tile-dark.svg +1 -1
- package/docs/design/templates/list-item/icon-tile.svg +1 -1
- package/docs/design/templates/list-item/multiline-dark.svg +1 -1
- package/docs/design/templates/list-item/multiline.svg +1 -1
- package/docs/design/templates/list-item/selected-dark.svg +1 -1
- package/docs/design/templates/list-item/selected.svg +1 -1
- package/docs/design/templates/list-item/trailing-dark.svg +1 -1
- package/docs/design/templates/list-item/trailing.svg +1 -1
- package/docs/design/templates/list-item-dark.svg +1 -1
- package/docs/design/templates/list-item.svg +1 -1
- package/docs/design/templates/list.svg +1 -1
- package/docs/design/templates/progress-ring/sizes-dark.svg +1 -1
- package/docs/design/templates/progress-ring/sizes.svg +1 -1
- package/docs/design/templates/progress-ring/tones-dark.svg +1 -1
- package/docs/design/templates/progress-ring/tones.svg +1 -1
- package/docs/design/templates/progress-ring-dark.svg +1 -1
- package/docs/design/templates/progress-ring.svg +1 -1
- package/docs/design/templates/search-field/empty-dark.svg +1 -1
- package/docs/design/templates/search-field/empty.svg +1 -1
- package/docs/design/templates/search-field/tokens-dark.svg +1 -1
- package/docs/design/templates/search-field/tokens.svg +1 -1
- package/docs/design/templates/search-field-dark.svg +1 -1
- package/docs/design/templates/search-field.svg +1 -1
- package/docs/design/templates/segmented-control/equal-dark.svg +1 -1
- package/docs/design/templates/segmented-control/equal.svg +1 -1
- package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -1
- package/docs/design/templates/segmented-control/pill-small.svg +1 -1
- package/docs/design/templates/segmented-control-dark.svg +1 -1
- package/docs/design/templates/segmented-control.svg +1 -1
- package/docs/design/templates/select/compact-dark.svg +1 -1
- package/docs/design/templates/select/compact.svg +1 -1
- package/docs/design/templates/select/form-dark.svg +1 -1
- package/docs/design/templates/select/form.svg +1 -1
- package/docs/design/templates/select/icons-dark.svg +1 -1
- package/docs/design/templates/select/icons.svg +1 -1
- package/docs/design/templates/select-dark.svg +1 -1
- package/docs/design/templates/select.svg +1 -1
- package/docs/design/templates/split-button/full-width-dark.svg +1 -1
- package/docs/design/templates/split-button/full-width.svg +1 -1
- package/docs/design/templates/split-button/pill-dark.svg +1 -1
- package/docs/design/templates/split-button/pill.svg +1 -1
- package/docs/design/templates/split-button/states-dark.svg +1 -1
- package/docs/design/templates/split-button/states.svg +1 -1
- package/docs/design/templates/split-button/tones-dark.svg +1 -1
- package/docs/design/templates/split-button/tones.svg +1 -1
- package/docs/design/templates/split-button-dark.svg +1 -1
- package/docs/design/templates/split-button.svg +1 -1
- package/docs/design/templates/state-banner/danger-dark.svg +1 -1
- package/docs/design/templates/state-banner/danger.svg +1 -1
- package/docs/design/templates/state-banner/info-badge-dark.svg +1 -1
- package/docs/design/templates/state-banner/info-badge.svg +1 -1
- package/docs/design/templates/state-banner/info-dark.svg +1 -1
- package/docs/design/templates/state-banner/info.svg +1 -1
- package/docs/design/templates/state-banner/strip-dark.svg +1 -1
- package/docs/design/templates/state-banner/strip.svg +1 -1
- package/docs/design/templates/state-banner/success-dark.svg +1 -1
- package/docs/design/templates/state-banner/success.svg +1 -1
- package/docs/design/templates/state-banner/warning-dark.svg +1 -1
- package/docs/design/templates/state-banner/warning.svg +1 -1
- package/docs/design/templates/state-banner-dark.svg +1 -1
- package/docs/design/templates/state-banner.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/tag-field/error-dark.svg +1 -1
- package/docs/design/templates/tag-field/error.svg +1 -1
- package/docs/design/templates/tag-field/tags-dark.svg +1 -1
- package/docs/design/templates/tag-field/tags.svg +1 -1
- package/docs/design/templates/tag-field-dark.svg +1 -1
- package/docs/design/templates/tag-field.svg +1 -1
- package/docs/design/templates/text-field/labeled-dark.svg +1 -1
- package/docs/design/templates/text-field/labeled.svg +1 -1
- package/docs/design/templates/text-field/search-dark.svg +1 -1
- package/docs/design/templates/text-field/search.svg +1 -1
- package/docs/design/templates/text-field-dark.svg +1 -1
- package/docs/design/templates/text-field.svg +1 -1
- package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -1
- package/docs/design/templates/toolbar/title-and-actions.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-320.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-600.svg +1 -1
- package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -1
- package/docs/design/templates/toolbar-control-group/glass-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/glass.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -1
- package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -1
- package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/with-text.svg +1 -1
- package/docs/design/templates/toolbar-control-group-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group.svg +1 -1
- package/docs/design/templates/toolbar-dark.svg +1 -1
- package/docs/design/templates/toolbar.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/value-table/details-dark.svg +1 -1
- package/docs/design/templates/value-table/details.svg +1 -1
- package/docs/design/templates/value-table-dark.svg +1 -1
- package/docs/design/templates/value-table.svg +1 -1
- package/docs/design/templates.md +2 -2
- package/docs/document-baseline.md +6 -3
- package/docs/editor-host.md +299 -0
- package/docs/forms-and-validation.md +39 -0
- package/docs/gauge.md +55 -0
- package/docs/interaction-conventions.md +1 -0
- package/docs/layout.md +87 -4
- 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/progress.md +3 -2
- 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/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 +168 -18
- package/package.json +97 -4
- 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-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-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-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-ROEBKSIY.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-WPP5Q4A5.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-YWLDLNAV.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.125` and `kerfjs@5.0.0-beta.125`. 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
|
```
|
|
@@ -1454,6 +1743,7 @@ interface TabBarItemProps {
|
|
|
1454
1743
|
attention?: boolean;
|
|
1455
1744
|
/** Highlight this tab as the target of a drag over its content. */
|
|
1456
1745
|
dropTarget?: boolean;
|
|
1746
|
+
/** Show the tab's close button (default `true`); `false` makes a fixed tab. */
|
|
1457
1747
|
closable?: boolean;
|
|
1458
1748
|
draggable?: boolean;
|
|
1459
1749
|
leading?: KerfUiContent;
|
|
@@ -1464,7 +1754,13 @@ interface TabBarItemProps {
|
|
|
1464
1754
|
size?: TabBarItemSize;
|
|
1465
1755
|
/** Maximum visible label width in CSS pixels before ellipsis. */
|
|
1466
1756
|
labelMaxWidth?: number;
|
|
1467
|
-
/**
|
|
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
|
+
*/
|
|
1468
1764
|
nameOverflow?: TabBarItemNameOverflow;
|
|
1469
1765
|
/** Decorative dormant content for the close button. Must not contain interactive descendants. */
|
|
1470
1766
|
closeIcon?: SafeHtml;
|
|
@@ -1498,10 +1794,13 @@ export { TabBarItem, type TabBarItemNameOverflow, type TabBarItemPresentation, t
|
|
|
1498
1794
|
```ts
|
|
1499
1795
|
import * as kerfjs from 'kerfjs';
|
|
1500
1796
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1797
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
1501
1798
|
|
|
1502
1799
|
type TabActivation = 'automatic' | 'manual';
|
|
1503
1800
|
type TabBarAllocation = 'intrinsic' | 'fill';
|
|
1504
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';
|
|
1505
1804
|
type TabBarTrailingPlacement = 'separate' | 'adjacent';
|
|
1506
1805
|
/** Tablist width where segmented TabBarItems switch to icon-only. */
|
|
1507
1806
|
type TabBarIconOnlyAt = 'wide' | 'narrow' | 'compact';
|
|
@@ -1530,6 +1829,13 @@ interface TabBarProps {
|
|
|
1530
1829
|
allocation?: TabBarAllocation;
|
|
1531
1830
|
/** Named strip chrome for application rails, segmented tabs, or inspectors. */
|
|
1532
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;
|
|
1533
1839
|
/** Switch segmented TabBarItems to icon-only at tablist widths of 832, 704, or 448px. Each tab needs a leading icon. */
|
|
1534
1840
|
iconOnlyAt?: TabBarIconOnlyAt;
|
|
1535
1841
|
/** Keep a trailing action beside the final tab or at the far edge of the bar. */
|
|
@@ -1538,11 +1844,14 @@ interface TabBarProps {
|
|
|
1538
1844
|
snapTabs?: boolean;
|
|
1539
1845
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1540
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;
|
|
1541
1850
|
}
|
|
1542
1851
|
/** Render a controlled tab strip. The application owns selection, order, and persistence. */
|
|
1543
|
-
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;
|
|
1544
1853
|
|
|
1545
|
-
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 };
|
|
1546
1855
|
```
|
|
1547
1856
|
|
|
1548
1857
|
## `@kerfjs/ui/wire-tab-bars`
|
|
@@ -1551,6 +1860,7 @@ export { type TabActivation, TabBar, type TabBarAllocation, type TabBarIconOnlyA
|
|
|
1551
1860
|
import { TabActivation } from './tab-bar.js';
|
|
1552
1861
|
import 'kerfjs';
|
|
1553
1862
|
import './semantic-content-BbzjvSu9.js';
|
|
1863
|
+
import './extension-attributes-IJ4decoa.js';
|
|
1554
1864
|
|
|
1555
1865
|
type TabReorderSource = 'pointer' | 'keyboard';
|
|
1556
1866
|
type TabDropPosition = 'before' | 'after';
|
|
@@ -1768,18 +2078,42 @@ declare function wireListFocusScroll(root: Root): () => void;
|
|
|
1768
2078
|
export { wireListFocusScroll };
|
|
1769
2079
|
```
|
|
1770
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
|
+
|
|
1771
2104
|
## `@kerfjs/ui/nav-stack`
|
|
1772
2105
|
|
|
1773
2106
|
```ts
|
|
1774
|
-
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';
|
|
1775
2108
|
import 'kerfjs';
|
|
1776
2109
|
import './semantic-content-BbzjvSu9.js';
|
|
2110
|
+
import './extension-attributes-IJ4decoa.js';
|
|
1777
2111
|
import './pane.js';
|
|
1778
2112
|
import './scroll-clearance-BikHljTc.js';
|
|
2113
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
1779
2114
|
import './css-values.js';
|
|
1780
2115
|
import './surface-tint-DQgYCaP9.js';
|
|
1781
2116
|
import './list.js';
|
|
1782
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
1783
2117
|
import './flex-alignment-4ms8ZbV8.js';
|
|
1784
2118
|
import './sides-BPSWde0A.js';
|
|
1785
2119
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -1817,14 +2151,15 @@ export { type WireNavStackOptions, wireNavStack };
|
|
|
1817
2151
|
```ts
|
|
1818
2152
|
import * as kerfjs from 'kerfjs';
|
|
1819
2153
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1820
|
-
import {
|
|
2154
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2155
|
+
import { N as NavStackProps, a as NavStackView } from './nav-stack-DwxpXxqJ.js';
|
|
1821
2156
|
import { ResizableRegionProps } from './resizable-region.js';
|
|
1822
2157
|
import './pane.js';
|
|
1823
2158
|
import './scroll-clearance-BikHljTc.js';
|
|
2159
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
1824
2160
|
import './css-values.js';
|
|
1825
2161
|
import './surface-tint-DQgYCaP9.js';
|
|
1826
2162
|
import './list.js';
|
|
1827
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
1828
2163
|
import './flex-alignment-4ms8ZbV8.js';
|
|
1829
2164
|
import './sides-BPSWde0A.js';
|
|
1830
2165
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -1907,6 +2242,9 @@ interface SplitViewProps {
|
|
|
1907
2242
|
className?: string;
|
|
1908
2243
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1909
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;
|
|
1910
2248
|
}
|
|
1911
2249
|
/**
|
|
1912
2250
|
* A list-detail split. On roomy classes it shows both panes side
|
|
@@ -1915,7 +2253,7 @@ interface SplitViewProps {
|
|
|
1915
2253
|
* resizable wiring with `wireResizableRegions` and the compact back with
|
|
1916
2254
|
* `wireNavStack`.
|
|
1917
2255
|
*/
|
|
1918
|
-
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;
|
|
1919
2257
|
|
|
1920
2258
|
export { SplitView, type SplitViewCompactStack, type SplitViewCompactViewToolbars, type SplitViewListWidth, type SplitViewProps, type SplitViewResizable };
|
|
1921
2259
|
```
|
|
@@ -1926,9 +2264,9 @@ export { SplitView, type SplitViewCompactStack, type SplitViewCompactViewToolbar
|
|
|
1926
2264
|
import * as kerfjs from 'kerfjs';
|
|
1927
2265
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1928
2266
|
import { S as ScrollClearance } from './scroll-clearance-BikHljTc.js';
|
|
2267
|
+
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
1929
2268
|
import { CssColor } from './css-values.js';
|
|
1930
|
-
import { S as SurfaceTint } from './surface-tint-DQgYCaP9.js';
|
|
1931
|
-
export { a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
2269
|
+
import { S as SurfaceTint, a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
1932
2270
|
|
|
1933
2271
|
/**
|
|
1934
2272
|
* What clear (fully transparent) chrome fades in as content scrolls beneath
|
|
@@ -1950,6 +2288,7 @@ type PaneElement = 'article' | 'aside' | 'div' | 'main' | 'section';
|
|
|
1950
2288
|
type PaneContentElement = 'div' | 'main' | 'nav' | 'section';
|
|
1951
2289
|
type PaneRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
|
|
1952
2290
|
'data-component'?: never;
|
|
2291
|
+
'data-fill'?: never;
|
|
1953
2292
|
'data-separator-block-start'?: never;
|
|
1954
2293
|
'data-separator-block-end'?: never;
|
|
1955
2294
|
'data-separator-inline-start'?: never;
|
|
@@ -2011,6 +2350,8 @@ type PaneChromeDividers = 'scroll' | 'always' | 'none';
|
|
|
2011
2350
|
type PaneHeaderPresentation = 'docked' | 'overlay' | 'clear';
|
|
2012
2351
|
/** Background treatment of the Pane's scrolling work surface. */
|
|
2013
2352
|
type PaneAppearance = 'default' | 'sunken';
|
|
2353
|
+
/** Whether a Pane's scrolling content keeps the browser's scroll anchoring. */
|
|
2354
|
+
type PaneScrollAnchoring = 'auto' | 'none';
|
|
2014
2355
|
interface PaneProps {
|
|
2015
2356
|
/** Optional fixed chrome above the scrolling content, arranged vertically. */
|
|
2016
2357
|
header?: KerfUiContent;
|
|
@@ -2018,6 +2359,15 @@ interface PaneProps {
|
|
|
2018
2359
|
children?: KerfUiContent;
|
|
2019
2360
|
/** Optional fixed chrome below the scrolling content. */
|
|
2020
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;
|
|
2021
2371
|
/**
|
|
2022
2372
|
* Whether the header and footer stay pinned around the scrolling content.
|
|
2023
2373
|
* `fixed` (default) always pins them. `auto` pins them while the pane is
|
|
@@ -2101,6 +2451,13 @@ interface PaneProps {
|
|
|
2101
2451
|
* declared scheme.
|
|
2102
2452
|
*/
|
|
2103
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;
|
|
2104
2461
|
/**
|
|
2105
2462
|
* Clear chrome that lies over the scrolling content's block-start and/or
|
|
2106
2463
|
* block-end edge, such as a `DialogSurface` floating footer over a filling
|
|
@@ -2115,6 +2472,24 @@ interface PaneProps {
|
|
|
2115
2472
|
deepInset?: boolean;
|
|
2116
2473
|
/** Opt into keyboard (`0`) or programmatic (`-1`) focus on the Pane root. */
|
|
2117
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;
|
|
2118
2493
|
/** Keep the standard focus outline visible, such as for a drop target. */
|
|
2119
2494
|
outlined?: boolean;
|
|
2120
2495
|
/** Root semantics. Defaults to `div`. */
|
|
@@ -2151,16 +2526,16 @@ interface PaneProps {
|
|
|
2151
2526
|
* or a CollapsiblePanel) forwards, so the app configures that pane instead of
|
|
2152
2527
|
* styling it. An omitted or `undefined` field keeps the composite's default.
|
|
2153
2528
|
*/
|
|
2154
|
-
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'>;
|
|
2155
2530
|
/**
|
|
2156
2531
|
* An unpadded application column with optional fixed header/footer slots and one
|
|
2157
2532
|
* scrolling vertical content owner. Separator lines are independently opt-in on
|
|
2158
2533
|
* each logical edge, so the same component works as a sidebar, main area,
|
|
2159
2534
|
* inspector, or dialog column.
|
|
2160
2535
|
*/
|
|
2161
|
-
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;
|
|
2162
2537
|
|
|
2163
|
-
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 };
|
|
2164
2539
|
```
|
|
2165
2540
|
|
|
2166
2541
|
## `@kerfjs/ui/workbench`
|
|
@@ -2168,7 +2543,8 @@ export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlac
|
|
|
2168
2543
|
```ts
|
|
2169
2544
|
import { SafeHtml } from 'kerfjs';
|
|
2170
2545
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
2171
|
-
import {
|
|
2546
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2547
|
+
import { b as NavPane, N as NavStackProps } from './nav-stack-DwxpXxqJ.js';
|
|
2172
2548
|
import { ListConfig } from './list.js';
|
|
2173
2549
|
import { PaneConfig } from './pane.js';
|
|
2174
2550
|
import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
|
|
@@ -2177,10 +2553,10 @@ import { ToolbarConfig } from './toolbar.js';
|
|
|
2177
2553
|
import './css-values.js';
|
|
2178
2554
|
import './surface-tint-DQgYCaP9.js';
|
|
2179
2555
|
import './toolbar-text.js';
|
|
2180
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
2181
2556
|
import './flex-alignment-4ms8ZbV8.js';
|
|
2182
2557
|
import './scroll-clearance-BikHljTc.js';
|
|
2183
2558
|
import './sides-BPSWde0A.js';
|
|
2559
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2184
2560
|
import './lucide-icon.js';
|
|
2185
2561
|
import 'lucide';
|
|
2186
2562
|
|
|
@@ -2431,6 +2807,9 @@ interface WorkbenchProps {
|
|
|
2431
2807
|
className?: string;
|
|
2432
2808
|
/** Native named-slot assignment when composed inside a web component. */
|
|
2433
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;
|
|
2434
2813
|
}
|
|
2435
2814
|
/**
|
|
2436
2815
|
* The Xcode-like multi-panel workspace: a collapsible left rail, right rail, and
|
|
@@ -2445,7 +2824,7 @@ interface WorkbenchProps {
|
|
|
2445
2824
|
* lives outside it and stays reachable). A panel may opt in to drag and keyboard resizing with
|
|
2446
2825
|
* `resizable`, which `wireWorkbench` drives. See `docs/23-app-layouts.md` §3.3.
|
|
2447
2826
|
*/
|
|
2448
|
-
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;
|
|
2449
2828
|
|
|
2450
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 };
|
|
2451
2830
|
```
|
|
@@ -2576,6 +2955,7 @@ export { type WireWorkbenchOptions, type WireWorkbenchPanel, type WorkbenchPanel
|
|
|
2576
2955
|
```ts
|
|
2577
2956
|
import { SafeHtml } from 'kerfjs';
|
|
2578
2957
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
2958
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2579
2959
|
import { P as PanelSide, a as PanelToolbar, b as PanelChromePlacement, c as PanelBottomToolbar, d as PanelToggle } from './panel-toolbar-vg6Ir5Dy.js';
|
|
2580
2960
|
export { e as collapsiblePanelToggleIcon } from './panel-toolbar-vg6Ir5Dy.js';
|
|
2581
2961
|
import { ToolbarConfig } from './toolbar.js';
|
|
@@ -2586,9 +2966,9 @@ import './lucide-icon.js';
|
|
|
2586
2966
|
import 'lucide';
|
|
2587
2967
|
import './css-values.js';
|
|
2588
2968
|
import './sides-BPSWde0A.js';
|
|
2589
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
2590
2969
|
import './flex-alignment-4ms8ZbV8.js';
|
|
2591
2970
|
import './scroll-clearance-BikHljTc.js';
|
|
2971
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2592
2972
|
import './surface-tint-DQgYCaP9.js';
|
|
2593
2973
|
|
|
2594
2974
|
/** Which edge a {@link CollapsiblePanel} docks to. */
|
|
@@ -2618,6 +2998,9 @@ interface CollapsiblePanelToggleProps {
|
|
|
2618
2998
|
className?: string;
|
|
2619
2999
|
/** Native named-slot assignment when composed inside a web component. */
|
|
2620
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;
|
|
2621
3004
|
}
|
|
2622
3005
|
/**
|
|
2623
3006
|
* A standard collapse/expand toggle button for a {@link CollapsiblePanel}: the
|
|
@@ -2626,7 +3009,7 @@ interface CollapsiblePanelToggleProps {
|
|
|
2626
3009
|
* put it in the panel's own header (to collapse) and somewhere always-visible
|
|
2627
3010
|
* (to expand while collapsed).
|
|
2628
3011
|
*/
|
|
2629
|
-
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;
|
|
2630
3013
|
interface CollapsiblePanelProps {
|
|
2631
3014
|
/** A stable id for the panel — `wireSidebar` targets it and toggles reference it. */
|
|
2632
3015
|
id: string;
|
|
@@ -2676,6 +3059,9 @@ interface CollapsiblePanelProps {
|
|
|
2676
3059
|
restoreControl?: SafeHtml;
|
|
2677
3060
|
restorePosition?: ResizableRegionRestorePosition;
|
|
2678
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;
|
|
2679
3065
|
}
|
|
2680
3066
|
/**
|
|
2681
3067
|
* A standalone collapsible side rail or bottom drawer, outside the full
|
|
@@ -2693,7 +3079,7 @@ interface CollapsiblePanelProps {
|
|
|
2693
3079
|
* and persistence semantics, and with `CollapsiblePanelToggle` for the standard
|
|
2694
3080
|
* affordance. See `ui/docs/collapsible-panel.md` and `docs/23-app-layouts.md`.
|
|
2695
3081
|
*/
|
|
2696
|
-
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;
|
|
2697
3083
|
interface CollapsiblePanelRelocatedProps {
|
|
2698
3084
|
/** The panel's `id`. */
|
|
2699
3085
|
panelId: string;
|
|
@@ -2795,10 +3181,12 @@ export { type SidebarStorage, type WireSidebarOptions, type WireSidebarPanel, wi
|
|
|
2795
3181
|
```ts
|
|
2796
3182
|
import { SafeHtml } from 'kerfjs';
|
|
2797
3183
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3184
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2798
3185
|
import { PaneAppearance, ScrollEdge } from './pane.js';
|
|
2799
3186
|
import { CssColor } from './css-values.js';
|
|
2800
|
-
import { S as SurfaceTint } from './surface-tint-DQgYCaP9.js';
|
|
3187
|
+
import { S as SurfaceTint, a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
2801
3188
|
import './scroll-clearance-BikHljTc.js';
|
|
3189
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2802
3190
|
|
|
2803
3191
|
interface TabNavigatorTabBase<Id extends string> {
|
|
2804
3192
|
id: Id;
|
|
@@ -2820,6 +3208,13 @@ interface TabNavigatorTabBase<Id extends string> {
|
|
|
2820
3208
|
* in the declared scheme, with lightness clamped to keep text at WCAG AA.
|
|
2821
3209
|
*/
|
|
2822
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;
|
|
2823
3218
|
/** Add 8px to every side of a plain scene's scrolling content. */
|
|
2824
3219
|
deepInset?: boolean;
|
|
2825
3220
|
/** Opt into keyboard (`0`) or programmatic (`-1`) focus on this scene. */
|
|
@@ -2832,12 +3227,15 @@ interface TabNavigatorTabCountBadge {
|
|
|
2832
3227
|
/**
|
|
2833
3228
|
* Optional count or short status shown as a solid danger `Badge` at the
|
|
2834
3229
|
* top-trailing corner of the tab icon (the iOS tab-bar badge). Omitted, `''`,
|
|
2835
|
-
* 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`;
|
|
2836
3232
|
* its meaning reaches assistive technology through `badgeLabel`.
|
|
2837
3233
|
*
|
|
2838
3234
|
* Pass `true` instead for the text-free dot (new content without a count).
|
|
2839
3235
|
*/
|
|
2840
3236
|
badge?: string | number;
|
|
3237
|
+
/** The largest count shown before `badgeMax+` (default 99). */
|
|
3238
|
+
badgeMax?: number;
|
|
2841
3239
|
/**
|
|
2842
3240
|
* Localized phrase folded into the tab's accessible name as
|
|
2843
3241
|
* `"<label>, <badgeLabel>"` (for example `"3 unread"` → `"Inbox, 3 unread"`).
|
|
@@ -2933,9 +3331,19 @@ interface TabNavigatorProps<Id extends string = string> {
|
|
|
2933
3331
|
* in the declared scheme, with lightness clamped to keep text at WCAG AA.
|
|
2934
3332
|
*/
|
|
2935
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;
|
|
2936
3341
|
className?: string;
|
|
2937
3342
|
/** Native named-slot assignment when composed inside a web component. */
|
|
2938
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;
|
|
2939
3347
|
}
|
|
2940
3348
|
/**
|
|
2941
3349
|
* A mobile-first, iOS-like bottom tab navigator: a bottom tab bar that switches
|
|
@@ -2945,7 +3353,7 @@ interface TabNavigatorProps<Id extends string = string> {
|
|
|
2945
3353
|
* On larger classes, promote the tabs to a `Workbench` rail or sidebar instead of
|
|
2946
3354
|
* a bottom bar. See `docs/23-app-layouts.md` §3.4.
|
|
2947
3355
|
*/
|
|
2948
|
-
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;
|
|
2949
3357
|
|
|
2950
3358
|
export { TabNavigator, type TabNavigatorBarPresentation, type TabNavigatorProps, type TabNavigatorTab };
|
|
2951
3359
|
```
|
|
@@ -2973,6 +3381,7 @@ export { type WireTabNavigatorOptions, wireTabNavigator };
|
|
|
2973
3381
|
```ts
|
|
2974
3382
|
import { SafeHtml } from 'kerfjs';
|
|
2975
3383
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3384
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2976
3385
|
import { CssLength } from './css-values.js';
|
|
2977
3386
|
|
|
2978
3387
|
type ResizableRegionAxis = 'horizontal' | 'vertical';
|
|
@@ -3017,10 +3426,13 @@ interface ResizableRegionProps {
|
|
|
3017
3426
|
/** Decorative dormant content for the separator handle. Must not contain interactive descendants. */
|
|
3018
3427
|
handleIcon?: SafeHtml;
|
|
3019
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;
|
|
3020
3432
|
}
|
|
3021
3433
|
declare const clampRegionSize: (size: number, min: number, max: number) => number;
|
|
3022
3434
|
declare const resizeRegionFromPointer: (startSize: number, delta: number, edge: ResizableRegionEdge) => number;
|
|
3023
|
-
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;
|
|
3024
3436
|
|
|
3025
3437
|
export { ResizableRegion, type ResizableRegionAxis, type ResizableRegionCollapseMotion, type ResizableRegionContentOverflow, type ResizableRegionEdge, type ResizableRegionPresentation, type ResizableRegionProps, type ResizableRegionResponsiveFillAt, type ResizableRegionRestorePosition, type ResizableRegionSeparator, clampRegionSize, resizeRegionFromPointer };
|
|
3026
3438
|
```
|
|
@@ -3122,15 +3534,16 @@ import { b as CatalogProps } from './types-DmHWkSd6.js';
|
|
|
3122
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';
|
|
3123
3535
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3124
3536
|
import './toolbar.js';
|
|
3537
|
+
import './extension-attributes-IJ4decoa.js';
|
|
3125
3538
|
import './sides-BPSWde0A.js';
|
|
3126
3539
|
import './pane.js';
|
|
3127
3540
|
import './scroll-clearance-BikHljTc.js';
|
|
3541
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
3128
3542
|
import './css-values.js';
|
|
3129
3543
|
import './surface-tint-DQgYCaP9.js';
|
|
3130
3544
|
import './workbench.js';
|
|
3131
|
-
import './nav-stack-
|
|
3545
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
3132
3546
|
import './list.js';
|
|
3133
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
3134
3547
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3135
3548
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
3136
3549
|
import './lucide-icon.js';
|
|
@@ -3278,15 +3691,16 @@ import { C as CatalogResource } from './types-DmHWkSd6.js';
|
|
|
3278
3691
|
import './toolbar.js';
|
|
3279
3692
|
import 'kerfjs';
|
|
3280
3693
|
import './semantic-content-BbzjvSu9.js';
|
|
3694
|
+
import './extension-attributes-IJ4decoa.js';
|
|
3281
3695
|
import './sides-BPSWde0A.js';
|
|
3282
3696
|
import './pane.js';
|
|
3283
3697
|
import './scroll-clearance-BikHljTc.js';
|
|
3698
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
3284
3699
|
import './css-values.js';
|
|
3285
3700
|
import './surface-tint-DQgYCaP9.js';
|
|
3286
3701
|
import './workbench.js';
|
|
3287
|
-
import './nav-stack-
|
|
3702
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
3288
3703
|
import './list.js';
|
|
3289
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
3290
3704
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3291
3705
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
3292
3706
|
import './lucide-icon.js';
|
|
@@ -3334,15 +3748,16 @@ import { Signal } from 'kerfjs';
|
|
|
3334
3748
|
import { a as CatalogBackgroundStyle } from './types-DmHWkSd6.js';
|
|
3335
3749
|
import './toolbar.js';
|
|
3336
3750
|
import './semantic-content-BbzjvSu9.js';
|
|
3751
|
+
import './extension-attributes-IJ4decoa.js';
|
|
3337
3752
|
import './sides-BPSWde0A.js';
|
|
3338
3753
|
import './pane.js';
|
|
3339
3754
|
import './scroll-clearance-BikHljTc.js';
|
|
3755
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
3340
3756
|
import './css-values.js';
|
|
3341
3757
|
import './surface-tint-DQgYCaP9.js';
|
|
3342
3758
|
import './workbench.js';
|
|
3343
|
-
import './nav-stack-
|
|
3759
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
3344
3760
|
import './list.js';
|
|
3345
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
3346
3761
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3347
3762
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
3348
3763
|
import './lucide-icon.js';
|
|
@@ -3476,6 +3891,11 @@ export { type CatalogRevealOptions, type WireCatalogOptions, revealCatalogEntry,
|
|
|
3476
3891
|
```ts
|
|
3477
3892
|
import * as kerfjs from 'kerfjs';
|
|
3478
3893
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3894
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3895
|
+
import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
|
|
3896
|
+
|
|
3897
|
+
/** A badge's value: a count, short text, or `true` for a text-free dot. */
|
|
3898
|
+
type BadgeValue = number | string | true;
|
|
3479
3899
|
|
|
3480
3900
|
type SegmentedControlAppearance = 'filled' | 'outlined' | 'toolbar';
|
|
3481
3901
|
type SegmentedControlShape = 'rounded' | 'pill';
|
|
@@ -3487,6 +3907,23 @@ interface SegmentedControlChoice<Value extends string = string> {
|
|
|
3487
3907
|
content?: KerfUiContent;
|
|
3488
3908
|
title?: string;
|
|
3489
3909
|
disabled?: boolean;
|
|
3910
|
+
/**
|
|
3911
|
+
* A count, short text, or `true` for a text-free dot over the choice's
|
|
3912
|
+
* top-trailing corner, such as how many workers are live. A count of 0 (or
|
|
3913
|
+
* less) and empty text show no badge, and a `placeholder` control shows
|
|
3914
|
+
* none. The badge is decorative (`aria-hidden`): put its meaning in `label`
|
|
3915
|
+
* and `title` yourself, for example "Workers View, 2 live". Since `label`
|
|
3916
|
+
* is also the visible text when `content` is omitted, give a badged choice
|
|
3917
|
+
* its own `content`, such as an icon.
|
|
3918
|
+
*/
|
|
3919
|
+
badge?: BadgeValue;
|
|
3920
|
+
/** The badge's tone (default `danger`). */
|
|
3921
|
+
badgeTone?: SemanticTone;
|
|
3922
|
+
/**
|
|
3923
|
+
* The largest count shown in full; a larger count shows as `{badgeMax}+`
|
|
3924
|
+
* (default 99, so 100 shows "99+"). Text badges are shown as given.
|
|
3925
|
+
*/
|
|
3926
|
+
badgeMax?: number;
|
|
3490
3927
|
}
|
|
3491
3928
|
interface SegmentedControlProps<Value extends string = string> {
|
|
3492
3929
|
id: string;
|
|
@@ -3505,8 +3942,11 @@ interface SegmentedControlProps<Value extends string = string> {
|
|
|
3505
3942
|
disabled?: boolean;
|
|
3506
3943
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3507
3944
|
slot?: string;
|
|
3945
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
3946
|
+
* editor node marker; the component's own markers stay protected. */
|
|
3947
|
+
rootAttributes?: RootDataAttributes;
|
|
3508
3948
|
}
|
|
3509
|
-
declare function SegmentedControl<Value extends string>({ id, label, value, choices, action, appearance, shape, size, layout, className, placeholder, disabled, slot, }: SegmentedControlProps<Value>): kerfjs.SafeHtml;
|
|
3949
|
+
declare function SegmentedControl<Value extends string>({ id, label, value, choices, action, appearance, shape, size, layout, className, placeholder, disabled, slot, rootAttributes, }: SegmentedControlProps<Value>): kerfjs.SafeHtml;
|
|
3510
3950
|
|
|
3511
3951
|
export { SegmentedControl, type SegmentedControlAppearance, type SegmentedControlChoice, type SegmentedControlLayout, type SegmentedControlProps, type SegmentedControlShape, type SegmentedControlSize };
|
|
3512
3952
|
```
|
|
@@ -3515,6 +3955,7 @@ export { SegmentedControl, type SegmentedControlAppearance, type SegmentedContro
|
|
|
3515
3955
|
|
|
3516
3956
|
```ts
|
|
3517
3957
|
import { SafeHtml } from 'kerfjs';
|
|
3958
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3518
3959
|
import { CssColor, CssLength } from './css-values.js';
|
|
3519
3960
|
|
|
3520
3961
|
type ChoiceChipsSize = 'default' | 'compact';
|
|
@@ -3524,6 +3965,12 @@ type ChoiceChipsSize = 'default' | 'compact';
|
|
|
3524
3965
|
* its hover title.
|
|
3525
3966
|
*/
|
|
3526
3967
|
type ChoiceChipsPresentation = 'chips' | 'icons';
|
|
3968
|
+
/**
|
|
3969
|
+
* `wrap` (default) wraps chips onto more rows; `scroll` keeps them on one row
|
|
3970
|
+
* that scrolls horizontally inside the group, for a section or filter strip
|
|
3971
|
+
* that must never push the content below it down.
|
|
3972
|
+
*/
|
|
3973
|
+
type ChoiceChipsOverflow = 'wrap' | 'scroll';
|
|
3527
3974
|
/**
|
|
3528
3975
|
* A leading color dot: a {@link CssColor} from `uiColor()`, `colorVar()`, or
|
|
3529
3976
|
* `fillColor()`, or `'transparent'` for the no-color swatch (an outlined
|
|
@@ -3559,8 +4006,16 @@ interface ChoiceChipsCommonProps<Value extends string> {
|
|
|
3559
4006
|
presentation?: ChoiceChipsPresentation;
|
|
3560
4007
|
/**
|
|
3561
4008
|
* Cap the group's height; past it the group scrolls (a long icon grid).
|
|
4009
|
+
* Not with `overflow: 'scroll'`.
|
|
3562
4010
|
*/
|
|
3563
4011
|
maxHeight?: CssLength;
|
|
4012
|
+
/**
|
|
4013
|
+
* `scroll` keeps the chips on one row that scrolls sideways inside the
|
|
4014
|
+
* group, with no visible scrollbar. `wireChoiceChips` keeps the checked
|
|
4015
|
+
* chip in view, and `wireScrollDividers` fades each edge with chips
|
|
4016
|
+
* scrolled past it.
|
|
4017
|
+
*/
|
|
4018
|
+
overflow?: ChoiceChipsOverflow;
|
|
3564
4019
|
/** Disable the whole group. */
|
|
3565
4020
|
disabled?: boolean;
|
|
3566
4021
|
/** Associate the inputs with a form outside their ancestor chain. */
|
|
@@ -3569,6 +4024,9 @@ interface ChoiceChipsCommonProps<Value extends string> {
|
|
|
3569
4024
|
className?: string;
|
|
3570
4025
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3571
4026
|
slot?: string;
|
|
4027
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4028
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4029
|
+
rootAttributes?: RootDataAttributes;
|
|
3572
4030
|
}
|
|
3573
4031
|
/** One exclusive value (the default), backed by native radios. */
|
|
3574
4032
|
interface ChoiceChipsSingleProps<Value extends string = string> {
|
|
@@ -3620,7 +4078,8 @@ type ChoiceChipsProps<Value extends string = string> = ChoiceChipsCommonProps<Va
|
|
|
3620
4078
|
/** Which selection model a ChoiceChips group renders. */
|
|
3621
4079
|
type ChoiceChipsSelectionMode = 'single' | 'toggle' | 'multiple';
|
|
3622
4080
|
/**
|
|
3623
|
-
* A wrapping
|
|
4081
|
+
* A wrapping (or, with `overflow: 'scroll'`, one scrolling row of) set of
|
|
4082
|
+
* pill chips. By default it is an exclusive radio group:
|
|
3624
4083
|
* one Tab stop, arrow-key selection, and a real form value. With
|
|
3625
4084
|
* `multiple: 'toggle'` it is a checkbox group: each pill toggles on its own.
|
|
3626
4085
|
* With `multiple: true` it is a multi-select listbox with modifier-key
|
|
@@ -3629,7 +4088,7 @@ type ChoiceChipsSelectionMode = 'single' | 'toggle' | 'multiple';
|
|
|
3629
4088
|
*/
|
|
3630
4089
|
declare function ChoiceChips<Value extends string>(props: ChoiceChipsProps<Value>): SafeHtml;
|
|
3631
4090
|
|
|
3632
|
-
export { ChoiceChips, type ChoiceChipsChoice, type ChoiceChipsMultipleProps, type ChoiceChipsNaming, type ChoiceChipsPresentation, type ChoiceChipsProps, type ChoiceChipsSelectionMode, type ChoiceChipsSingleProps, type ChoiceChipsSize, type ChoiceChipsSwatch, type ChoiceChipsToggleProps };
|
|
4091
|
+
export { ChoiceChips, type ChoiceChipsChoice, type ChoiceChipsMultipleProps, type ChoiceChipsNaming, type ChoiceChipsOverflow, type ChoiceChipsPresentation, type ChoiceChipsProps, type ChoiceChipsSelectionMode, type ChoiceChipsSingleProps, type ChoiceChipsSize, type ChoiceChipsSwatch, type ChoiceChipsToggleProps };
|
|
3633
4092
|
```
|
|
3634
4093
|
|
|
3635
4094
|
## `@kerfjs/ui/message-composer`
|
|
@@ -3735,6 +4194,7 @@ export { wireMessageComposers };
|
|
|
3735
4194
|
import { SafeHtml } from 'kerfjs';
|
|
3736
4195
|
import { KerfCustomElement } from 'kerfjs/jsx-runtime';
|
|
3737
4196
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4197
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3738
4198
|
import { CssForegroundColor, CssLength } from './css-values.js';
|
|
3739
4199
|
import { LucideNode } from './lucide-icon.js';
|
|
3740
4200
|
import 'lucide';
|
|
@@ -3800,6 +4260,13 @@ interface SelectBaseProps<Value extends string = string> {
|
|
|
3800
4260
|
placeholderText?: string;
|
|
3801
4261
|
/** Supporting text shown below the control and announced as its description. */
|
|
3802
4262
|
hint?: string;
|
|
4263
|
+
/**
|
|
4264
|
+
* Quiet text at the bottom of the open popup, below the choices, announced
|
|
4265
|
+
* as the listbox's description: what the choices leave out, for instance.
|
|
4266
|
+
* Unlike `hint`, it needs no room below the trigger, so a toolbar Select
|
|
4267
|
+
* can carry one.
|
|
4268
|
+
*/
|
|
4269
|
+
popupNote?: string;
|
|
3803
4270
|
disabled?: boolean;
|
|
3804
4271
|
/** Match menu width to the trigger; default menus grow to content within viewport gutters. */
|
|
3805
4272
|
fitMenu?: boolean;
|
|
@@ -3817,7 +4284,7 @@ interface SelectBaseProps<Value extends string = string> {
|
|
|
3817
4284
|
maxTriggerWidth?: CssLength;
|
|
3818
4285
|
/** The narrowest the closed trigger gets. */
|
|
3819
4286
|
minTriggerWidth?: CssLength;
|
|
3820
|
-
/** Show the disclosure caret (default);
|
|
4287
|
+
/** Show the disclosure caret (default `true`); set it `false` for a compact icon-only trigger. */
|
|
3821
4288
|
caret?: boolean;
|
|
3822
4289
|
/** Let an enclosing ToolbarControlGroup paint the composed focus ring. */
|
|
3823
4290
|
focusRingOwner?: SelectFocusRingOwner;
|
|
@@ -3825,8 +4292,21 @@ interface SelectBaseProps<Value extends string = string> {
|
|
|
3825
4292
|
focusRingInset?: boolean;
|
|
3826
4293
|
/** Maximum closed-control label width in CSS pixels before ellipsis. */
|
|
3827
4294
|
labelMaxWidth?: number;
|
|
4295
|
+
/**
|
|
4296
|
+
* Show the listbox open right below the trigger (over any `hint`), in the
|
|
4297
|
+
* document instead of the top layer, as a static preview (the Kerf UI
|
|
4298
|
+
* editor's edit canvas, a specification sheet). An embedded Select is
|
|
4299
|
+
* inert: the register leaves it alone, so its trigger opens nothing, its
|
|
4300
|
+
* choices choose nothing, and its choices take no focus, so a click on one
|
|
4301
|
+
* leaves no current-row fill.
|
|
4302
|
+
* Defaults to false.
|
|
4303
|
+
*/
|
|
4304
|
+
embedded?: boolean;
|
|
3828
4305
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3829
4306
|
slot?: string;
|
|
4307
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4308
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4309
|
+
rootAttributes?: RootDataAttributes;
|
|
3830
4310
|
}
|
|
3831
4311
|
/** One chosen value (the default). */
|
|
3832
4312
|
interface SelectSingleValueProps<Value extends string = string> {
|
|
@@ -3913,6 +4393,13 @@ interface StateBannerProps {
|
|
|
3913
4393
|
/** Optional compact status or count shown beside the title. */
|
|
3914
4394
|
badge?: string;
|
|
3915
4395
|
icon?: SafeHtml;
|
|
4396
|
+
/**
|
|
4397
|
+
* The banner's action: one or more controls, laid out as a wrapping,
|
|
4398
|
+
* end-aligned horizontal list. Use Kerf UI `Button`s (`size="compact"`,
|
|
4399
|
+
* `shape="pill"`); a neutral Button takes the banner's tone, while a brand,
|
|
4400
|
+
* success, or danger Button keeps its own. Other controls, such as a
|
|
4401
|
+
* `LoadingSpinner`, sit beside them.
|
|
4402
|
+
*/
|
|
3916
4403
|
action?: KerfUiContent;
|
|
3917
4404
|
tone?: SemanticTone;
|
|
3918
4405
|
urgency?: StateBannerUrgency;
|
|
@@ -3956,6 +4443,7 @@ export { SemanticTone, StateBanner, type StateBannerActionPlacement, type StateB
|
|
|
3956
4443
|
```ts
|
|
3957
4444
|
import { SafeHtml } from 'kerfjs';
|
|
3958
4445
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4446
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3959
4447
|
|
|
3960
4448
|
interface EmptyStateProps {
|
|
3961
4449
|
title: string;
|
|
@@ -3966,8 +4454,11 @@ interface EmptyStateProps {
|
|
|
3966
4454
|
className?: string;
|
|
3967
4455
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3968
4456
|
slot?: string;
|
|
4457
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4458
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4459
|
+
rootAttributes?: RootDataAttributes;
|
|
3969
4460
|
}
|
|
3970
|
-
declare function EmptyState({ title, detail, icon, action, busy, className, slot, }: EmptyStateProps): SafeHtml;
|
|
4461
|
+
declare function EmptyState({ title, detail, icon, action, busy, className, slot, rootAttributes, }: EmptyStateProps): SafeHtml;
|
|
3971
4462
|
|
|
3972
4463
|
export { EmptyState, type EmptyStateProps };
|
|
3973
4464
|
```
|
|
@@ -3976,6 +4467,7 @@ export { EmptyState, type EmptyStateProps };
|
|
|
3976
4467
|
|
|
3977
4468
|
```ts
|
|
3978
4469
|
import * as kerfjs from 'kerfjs';
|
|
4470
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3979
4471
|
import { CssForegroundColor } from './css-values.js';
|
|
3980
4472
|
import { LucideIconSize } from './lucide-icon.js';
|
|
3981
4473
|
import 'lucide';
|
|
@@ -3990,9 +4482,12 @@ interface LoadingSpinnerProps {
|
|
|
3990
4482
|
size?: LoadingSpinnerSize;
|
|
3991
4483
|
/** Native named-slot assignment when composed inside a web component. */
|
|
3992
4484
|
slot?: string;
|
|
4485
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4486
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4487
|
+
rootAttributes?: RootDataAttributes;
|
|
3993
4488
|
}
|
|
3994
4489
|
/** Stable viewBox-centered progress ring based on svg-spinners' MIT-licensed 180-ring. */
|
|
3995
|
-
declare function LoadingSpinner({ className, color, label, size, slot, }: LoadingSpinnerProps): kerfjs.SafeHtml;
|
|
4490
|
+
declare function LoadingSpinner({ className, color, label, size, slot, rootAttributes, }: LoadingSpinnerProps): kerfjs.SafeHtml;
|
|
3996
4491
|
|
|
3997
4492
|
export { LoadingSpinner, type LoadingSpinnerProps, type LoadingSpinnerSize };
|
|
3998
4493
|
```
|
|
@@ -4001,6 +4496,7 @@ export { LoadingSpinner, type LoadingSpinnerProps, type LoadingSpinnerSize };
|
|
|
4001
4496
|
|
|
4002
4497
|
```ts
|
|
4003
4498
|
import * as kerfjs from 'kerfjs';
|
|
4499
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4004
4500
|
import { CssSize, CssLength } from './css-values.js';
|
|
4005
4501
|
|
|
4006
4502
|
interface SkeletonProps {
|
|
@@ -4021,6 +4517,9 @@ interface SkeletonProps {
|
|
|
4021
4517
|
className?: string;
|
|
4022
4518
|
/** Native named-slot assignment when composed inside a web component. */
|
|
4023
4519
|
slot?: string;
|
|
4520
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4521
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4522
|
+
rootAttributes?: RootDataAttributes;
|
|
4024
4523
|
}
|
|
4025
4524
|
/**
|
|
4026
4525
|
* A subtle, deliberately **unanimated** loading placeholder block. Use it for a
|
|
@@ -4028,7 +4527,7 @@ interface SkeletonProps {
|
|
|
4028
4527
|
* `placeholder` prop. Decorative by default (`aria-hidden`); pass `label` to
|
|
4029
4528
|
* announce it. Sizes to its slot unless `width`/`height` are given.
|
|
4030
4529
|
*/
|
|
4031
|
-
declare function Skeleton({ width, height, radius, lines, block, label, className, slot, }: SkeletonProps): kerfjs.SafeHtml;
|
|
4530
|
+
declare function Skeleton({ width, height, radius, lines, block, label, className, slot, rootAttributes, }: SkeletonProps): kerfjs.SafeHtml;
|
|
4032
4531
|
|
|
4033
4532
|
export { Skeleton, type SkeletonProps };
|
|
4034
4533
|
```
|
|
@@ -4038,6 +4537,7 @@ export { Skeleton, type SkeletonProps };
|
|
|
4038
4537
|
```ts
|
|
4039
4538
|
import * as kerfjs from 'kerfjs';
|
|
4040
4539
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4540
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4041
4541
|
import { CssFlexKeyword, CssFlex } from './css-values.js';
|
|
4042
4542
|
|
|
4043
4543
|
/**
|
|
@@ -4065,13 +4565,16 @@ interface SunkenPanelProps {
|
|
|
4065
4565
|
className?: string;
|
|
4066
4566
|
/** Native named-slot assignment when composed inside a web component. */
|
|
4067
4567
|
slot?: string;
|
|
4568
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
4569
|
+
* editor node marker; the component's own markers stay protected. */
|
|
4570
|
+
rootAttributes?: RootDataAttributes;
|
|
4068
4571
|
}
|
|
4069
4572
|
/**
|
|
4070
4573
|
* A lowered application surface with one compact inset and a vertical content
|
|
4071
4574
|
* stack. The panel owns its background and padding; children own their own
|
|
4072
4575
|
* borders and internal geometry.
|
|
4073
4576
|
*/
|
|
4074
|
-
declare function SunkenPanel({ children, ariaLabel, shape, flex, fill, tabIndex, outlined, className, slot, }: SunkenPanelProps): kerfjs.SafeHtml;
|
|
4577
|
+
declare function SunkenPanel({ children, ariaLabel, shape, flex, fill, tabIndex, outlined, className, slot, rootAttributes, }: SunkenPanelProps): kerfjs.SafeHtml;
|
|
4075
4578
|
|
|
4076
4579
|
export { SunkenPanel, type SunkenPanelProps, type SunkenPanelShape, ensureSunkenTexture };
|
|
4077
4580
|
```
|
|
@@ -4079,17 +4582,19 @@ export { SunkenPanel, type SunkenPanelProps, type SunkenPanelShape, ensureSunken
|
|
|
4079
4582
|
## `@kerfjs/ui/search-field`
|
|
4080
4583
|
|
|
4081
4584
|
```ts
|
|
4082
|
-
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-
|
|
4585
|
+
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';
|
|
4083
4586
|
import 'kerfjs';
|
|
4084
4587
|
import './semantic-content-BbzjvSu9.js';
|
|
4588
|
+
import './extension-attributes-IJ4decoa.js';
|
|
4085
4589
|
```
|
|
4086
4590
|
|
|
4087
4591
|
## `@kerfjs/ui/wire-search-fields`
|
|
4088
4592
|
|
|
4089
4593
|
```ts
|
|
4090
4594
|
import { Signal } from 'kerfjs';
|
|
4091
|
-
import { b as SearchFieldModel } from './search-field-
|
|
4595
|
+
import { b as SearchFieldModel } from './search-field-5lNIszda.js';
|
|
4092
4596
|
import './semantic-content-BbzjvSu9.js';
|
|
4597
|
+
import './extension-attributes-IJ4decoa.js';
|
|
4093
4598
|
|
|
4094
4599
|
interface SearchFieldSubmit {
|
|
4095
4600
|
id: string;
|
|
@@ -4504,6 +5009,7 @@ export { Chip, type ChipProps, type ChipRootAttributes, type ChipTone };
|
|
|
4504
5009
|
```ts
|
|
4505
5010
|
import { SafeHtml } from 'kerfjs';
|
|
4506
5011
|
import { IconNode } from 'lucide';
|
|
5012
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4507
5013
|
import { CssForegroundColor } from './css-values.js';
|
|
4508
5014
|
|
|
4509
5015
|
type LucideNode = IconNode;
|
|
@@ -4531,9 +5037,12 @@ interface LucideIconProps {
|
|
|
4531
5037
|
size?: LucideIconSize;
|
|
4532
5038
|
/** Native named-slot assignment when composed inside a web component. */
|
|
4533
5039
|
slot?: string;
|
|
5040
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
5041
|
+
* editor node marker; the component's own markers stay protected. */
|
|
5042
|
+
rootAttributes?: RootDataAttributes;
|
|
4534
5043
|
}
|
|
4535
5044
|
/** Render a Lucide-compatible icon node without copying icon SVG strings. */
|
|
4536
|
-
declare function LucideIcon({ icon, name, appearance, className, color, inline, label, title, size, slot, }: LucideIconProps): SafeHtml;
|
|
5045
|
+
declare function LucideIcon({ icon, name, appearance, className, color, inline, label, title, size, slot, rootAttributes, }: LucideIconProps): SafeHtml;
|
|
4537
5046
|
|
|
4538
5047
|
export { LucideIcon, type LucideIconProps, type LucideIconSize, type LucideNode };
|
|
4539
5048
|
```
|
|
@@ -4543,7 +5052,7 @@ export { LucideIcon, type LucideIconProps, type LucideIconSize, type LucideNode
|
|
|
4543
5052
|
```ts
|
|
4544
5053
|
import * as kerfjs from 'kerfjs';
|
|
4545
5054
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
4546
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
5055
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4547
5056
|
import { CssLength, CssColor } from './css-values.js';
|
|
4548
5057
|
|
|
4549
5058
|
/** How a single image fills the backdrop (`object-fit`). */
|
|
@@ -4628,7 +5137,11 @@ interface BackdropImageCommonProps {
|
|
|
4628
5137
|
* statically blurred copy. Static (unblurred) wherever parallax is.
|
|
4629
5138
|
*/
|
|
4630
5139
|
blur?: BackdropImageBlur;
|
|
4631
|
-
/**
|
|
5140
|
+
/**
|
|
5141
|
+
* Skip painting the image hero while it is off screen in a long feed.
|
|
5142
|
+
* Fewer compositor layers, but a large scroll jump (scrollbar drag,
|
|
5143
|
+
* End/Home) paints newly visible heroes blank for a frame.
|
|
5144
|
+
*/
|
|
4632
5145
|
deferOffscreen?: boolean;
|
|
4633
5146
|
/**
|
|
4634
5147
|
* Run the image up beneath the scroller's block-start inset: an overlay or
|
|
@@ -4686,6 +5199,97 @@ declare function BackdropImage(props: BackdropImageProps): kerfjs.SafeHtml;
|
|
|
4686
5199
|
export { BackdropImage, type BackdropImageBlur, type BackdropImageFit, type BackdropImageParallax, type BackdropImagePosition, type BackdropImageProps, type BackdropImageRepeat, type BackdropImageScrim, type BackdropImageSingleProps, type BackdropImageTiledProps };
|
|
4687
5200
|
```
|
|
4688
5201
|
|
|
5202
|
+
## `@kerfjs/ui/scroll-effect`
|
|
5203
|
+
|
|
5204
|
+
```ts
|
|
5205
|
+
import * as kerfjs from 'kerfjs';
|
|
5206
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5207
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5208
|
+
|
|
5209
|
+
/**
|
|
5210
|
+
* The part of the wrapper's view timeline an effect runs over, as the CSS
|
|
5211
|
+
* named timeline ranges: `entry` while it scrolls into view, `exit` while it
|
|
5212
|
+
* scrolls out, `cover` from first to last visible pixel, and `contain` while
|
|
5213
|
+
* it is fully in view (or fully covers the view).
|
|
5214
|
+
*/
|
|
5215
|
+
type ScrollEffectRange = 'entry' | 'exit' | 'cover' | 'contain';
|
|
5216
|
+
/** Where an effect runs, shared by every preset. */
|
|
5217
|
+
interface ScrollEffectRangeOptions {
|
|
5218
|
+
/** The timeline range. Each preset has its own default. */
|
|
5219
|
+
range?: ScrollEffectRange;
|
|
5220
|
+
/** Where the effect starts within `range`, from 0 to 100 percent. Default 0. */
|
|
5221
|
+
rangeStart?: number;
|
|
5222
|
+
/** Where the effect ends within `range`, from 0 to 100 percent. Default 100. */
|
|
5223
|
+
rangeEnd?: number;
|
|
5224
|
+
}
|
|
5225
|
+
/**
|
|
5226
|
+
* The content lags the scroll by `lag` (0 to 1; `subtle` is 0.35), the way
|
|
5227
|
+
* BackdropImage's parallax does. Over `exit` (the default) it moves by the lag
|
|
5228
|
+
* times its own height, which is exactly the lag factor of the scroll there;
|
|
5229
|
+
* over `entry` it settles into place, and over `cover` or `contain` it passes
|
|
5230
|
+
* its resting place halfway. The wrapper clips the moving content.
|
|
5231
|
+
*/
|
|
5232
|
+
interface ScrollEffectParallax extends ScrollEffectRangeOptions {
|
|
5233
|
+
kind: 'parallax';
|
|
5234
|
+
lag?: number | 'subtle';
|
|
5235
|
+
}
|
|
5236
|
+
/** The content fades in from transparent. Default range `entry`. */
|
|
5237
|
+
interface ScrollEffectReveal extends ScrollEffectRangeOptions {
|
|
5238
|
+
kind: 'reveal';
|
|
5239
|
+
}
|
|
5240
|
+
/** The content fades out to transparent. Default range `exit`. */
|
|
5241
|
+
interface ScrollEffectFade extends ScrollEffectRangeOptions {
|
|
5242
|
+
kind: 'fade';
|
|
5243
|
+
}
|
|
5244
|
+
/**
|
|
5245
|
+
* The content scales from `from` to `to` (each above 0, at most 2; defaults
|
|
5246
|
+
* 0.96 and 1) around its center. Default range `entry`. The wrapper clips a
|
|
5247
|
+
* scale above 1.
|
|
5248
|
+
*/
|
|
5249
|
+
interface ScrollEffectScale extends ScrollEffectRangeOptions {
|
|
5250
|
+
kind: 'scale';
|
|
5251
|
+
from?: number;
|
|
5252
|
+
to?: number;
|
|
5253
|
+
}
|
|
5254
|
+
/**
|
|
5255
|
+
* A black layer over the content ramps to opacity `to` (0 to 1; default
|
|
5256
|
+
* 0.5). Default range `exit`.
|
|
5257
|
+
*/
|
|
5258
|
+
interface ScrollEffectDim extends ScrollEffectRangeOptions {
|
|
5259
|
+
kind: 'dim';
|
|
5260
|
+
to?: number;
|
|
5261
|
+
}
|
|
5262
|
+
/** One scroll-linked effect preset. */
|
|
5263
|
+
type ScrollEffectSpec = ScrollEffectParallax | ScrollEffectReveal | ScrollEffectFade | ScrollEffectScale | ScrollEffectDim;
|
|
5264
|
+
type ScrollEffectKind = ScrollEffectSpec['kind'];
|
|
5265
|
+
interface ScrollEffectProps {
|
|
5266
|
+
/**
|
|
5267
|
+
* The effects. They compose: transforms stack in array order (the first is
|
|
5268
|
+
* outermost) and opacities multiply, so `reveal` on `entry` with `fade` on
|
|
5269
|
+
* `exit` fades content in and out. Repeating a kind stacks it the same way
|
|
5270
|
+
* (each `dim` adds its own overlay).
|
|
5271
|
+
*/
|
|
5272
|
+
effects: readonly ScrollEffectSpec[];
|
|
5273
|
+
/** The content the effects apply to. */
|
|
5274
|
+
children?: KerfUiContent;
|
|
5275
|
+
/** Application `data-*` metadata on the root, such as an editor node
|
|
5276
|
+
* marker; the component's own markers stay protected. */
|
|
5277
|
+
rootAttributes?: RootDataAttributes;
|
|
5278
|
+
}
|
|
5279
|
+
/**
|
|
5280
|
+
* Applies scroll-linked effects to any content without a scroll listener:
|
|
5281
|
+
* each effect animates only `transform` or `opacity` on the wrapper's own
|
|
5282
|
+
* CSS view timeline, which the compositor runs. Kerf owns the static
|
|
5283
|
+
* fallbacks: the content rests in place, fully visible and undimmed, without
|
|
5284
|
+
* scroll-driven animation support, under reduced motion, under
|
|
5285
|
+
* `data-kui-effects="static"`, on slow-update displays, and under reduced
|
|
5286
|
+
* transparency, increased contrast, or forced colors.
|
|
5287
|
+
*/
|
|
5288
|
+
declare function ScrollEffect({ effects, children, rootAttributes, }: ScrollEffectProps): kerfjs.SafeHtml;
|
|
5289
|
+
|
|
5290
|
+
export { ScrollEffect, type ScrollEffectDim, type ScrollEffectFade, type ScrollEffectKind, type ScrollEffectParallax, type ScrollEffectProps, type ScrollEffectRange, type ScrollEffectRangeOptions, type ScrollEffectReveal, type ScrollEffectScale, type ScrollEffectSpec };
|
|
5291
|
+
```
|
|
5292
|
+
|
|
4689
5293
|
## `@kerfjs/ui/wire-toolbar-visibility`
|
|
4690
5294
|
|
|
4691
5295
|
```ts
|
|
@@ -4709,6 +5313,8 @@ export { wireToolbarVisibility };
|
|
|
4709
5313
|
```ts
|
|
4710
5314
|
import * as kerfjs from 'kerfjs';
|
|
4711
5315
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5316
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5317
|
+
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
4712
5318
|
import { CssLength } from './css-values.js';
|
|
4713
5319
|
|
|
4714
5320
|
/** What asked an open DialogSurface to close. */
|
|
@@ -4722,13 +5328,14 @@ interface DialogRequestCloseDetail {
|
|
|
4722
5328
|
* page inert, focus on its `autofocus` element or else the panel. It plays
|
|
4723
5329
|
* its enter motion and, with the controller installed here, keeps its
|
|
4724
5330
|
* measured chrome, sheet height, and keyboard clearance across application
|
|
4725
|
-
* re-renders. Opening an open dialog does nothing
|
|
5331
|
+
* re-renders. Opening an open dialog does nothing, and so does opening an
|
|
5332
|
+
* `embedded` one, which is always shown in flow.
|
|
4726
5333
|
*/
|
|
4727
5334
|
declare function openDialog(dialog: HTMLDialogElement): void;
|
|
4728
5335
|
/**
|
|
4729
5336
|
* Close an open DialogSurface after its exit motion. The application's own
|
|
4730
5337
|
* close is never refused: no `kui-request-close` is dispatched. The native
|
|
4731
|
-
* `close` event fires once it has closed.
|
|
5338
|
+
* `close` event fires once it has closed. An `embedded` one never closes.
|
|
4732
5339
|
*/
|
|
4733
5340
|
declare function closeDialog(dialog: HTMLDialogElement): void;
|
|
4734
5341
|
/**
|
|
@@ -4748,7 +5355,14 @@ type DialogSurfaceSize = 'small' | 'medium' | 'large';
|
|
|
4748
5355
|
* attached to the bottom edge (square bottom corners, safe-area and
|
|
4749
5356
|
* virtual-keyboard clearance, optionally user-resizable).
|
|
4750
5357
|
*/
|
|
4751
|
-
type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen' | 'bottom-sheet'
|
|
5358
|
+
type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen' | 'bottom-sheet'
|
|
5359
|
+
/**
|
|
5360
|
+
* In flow, always shown: the same panel without the top layer or a
|
|
5361
|
+
* backdrop, never wider than its container. For a catalog, a design
|
|
5362
|
+
* canvas, or a document; `openDialog` / `closeDialog` leave it alone and
|
|
5363
|
+
* `data-dialog-close` does not hide it.
|
|
5364
|
+
*/
|
|
5365
|
+
| 'embedded';
|
|
4752
5366
|
/**
|
|
4753
5367
|
* How a bottom sheet appears or leaves: `slide` (default) moves the panel in
|
|
4754
5368
|
* from, or out to, the bottom edge; `standard` keeps the dialog's
|
|
@@ -4950,6 +5564,8 @@ interface DialogSurfaceOptions {
|
|
|
4950
5564
|
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;
|
|
4951
5565
|
/** Where a PopoverDialogSurface appears: the top layer, or in flow. */
|
|
4952
5566
|
type PopoverDialogSurfacePresentation = 'overlay' | 'embedded';
|
|
5567
|
+
/** How an overlay PopoverDialogSurface closes: light dismiss, or its own controls. */
|
|
5568
|
+
type PopoverDialogSurfaceDismiss = 'light' | 'manual';
|
|
4953
5569
|
/** Application `data-*` metadata on the surface root. */
|
|
4954
5570
|
type PopoverDialogSurfaceDataAttributes = Readonly<Record<`data-${string}`, string>>;
|
|
4955
5571
|
type PopoverDialogSurfaceName = {
|
|
@@ -4975,6 +5591,22 @@ type PopoverDialogSurfaceProps = PopoverDialogSurfaceName & {
|
|
|
4975
5591
|
* `embedded` renders the same surface in flow for a catalog or inline use.
|
|
4976
5592
|
*/
|
|
4977
5593
|
presentation?: PopoverDialogSurfacePresentation;
|
|
5594
|
+
/**
|
|
5595
|
+
* How an overlay closes. `light` (default) is `popover="auto"`: Escape or a
|
|
5596
|
+
* press outside closes it. `manual` is `popover="manual"`: only its own
|
|
5597
|
+
* controls (`popovertargetaction="hide"`) or `hidePopover()` close it, for a
|
|
5598
|
+
* request the person must answer. Ignored when `embedded`.
|
|
5599
|
+
*/
|
|
5600
|
+
dismiss?: PopoverDialogSurfaceDismiss;
|
|
5601
|
+
/**
|
|
5602
|
+
* KF-T1V86Q: a CSS anchor name (a dashed ident such as `--app-main`) the
|
|
5603
|
+
* open overlay docks to: centered on the bottom edge of the element whose
|
|
5604
|
+
* `anchor-name` it is, inset by `viewportGutter`. The application names
|
|
5605
|
+
* that element (its shell's main column). Engines without CSS anchor
|
|
5606
|
+
* positioning keep the centered top-layer placement. Ignored when
|
|
5607
|
+
* `embedded`.
|
|
5608
|
+
*/
|
|
5609
|
+
anchorName?: AnchorName;
|
|
4978
5610
|
/** Preferred width preset: 400px, 560px (default), or 800px. */
|
|
4979
5611
|
size?: DialogSurfaceSize;
|
|
4980
5612
|
/** Preferred width; takes precedence over `size`, within the viewport cap. */
|
|
@@ -5002,7 +5634,7 @@ type PopoverDialogSurfaceProps = PopoverDialogSurfaceName & {
|
|
|
5002
5634
|
* dismisses and leaves the page interactive. Use `DialogSurface` when the
|
|
5003
5635
|
* task must block the page.
|
|
5004
5636
|
*/
|
|
5005
|
-
declare function PopoverDialogSurface({ id, children, label, labelledBy, describedBy, presentation, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, rootAttributes, className, slot, }: PopoverDialogSurfaceProps): kerfjs.SafeHtml;
|
|
5637
|
+
declare function PopoverDialogSurface({ id, children, label, labelledBy, describedBy, presentation, dismiss, anchorName, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, rootAttributes, className, slot, }: PopoverDialogSurfaceProps): kerfjs.SafeHtml;
|
|
5006
5638
|
type PopupSurfaceInset = 'standard' | 'compact' | 'list-zero';
|
|
5007
5639
|
interface PopupSurfaceProps {
|
|
5008
5640
|
children: KerfUiContent;
|
|
@@ -5010,11 +5642,14 @@ interface PopupSurfaceProps {
|
|
|
5010
5642
|
className?: string;
|
|
5011
5643
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5012
5644
|
slot?: string;
|
|
5645
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
5646
|
+
* editor node marker; the component's own markers stay protected. */
|
|
5647
|
+
rootAttributes?: RootDataAttributes;
|
|
5013
5648
|
}
|
|
5014
5649
|
/** Configure recurring Web Awesome dropdown-menu geometry without consumer ::part() CSS. */
|
|
5015
|
-
declare function PopupSurface({ children, inset, className, slot, }: PopupSurfaceProps): kerfjs.SafeHtml;
|
|
5650
|
+
declare function PopupSurface({ children, inset, className, slot, rootAttributes, }: PopupSurfaceProps): kerfjs.SafeHtml;
|
|
5016
5651
|
|
|
5017
|
-
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 };
|
|
5652
|
+
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 };
|
|
5018
5653
|
```
|
|
5019
5654
|
|
|
5020
5655
|
## `@kerfjs/ui/list-detail-dialog`
|
|
@@ -5026,12 +5661,13 @@ import { CssLength } from './css-values.js';
|
|
|
5026
5661
|
import { SplitViewListWidth } from './split-view.js';
|
|
5027
5662
|
import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-scaffold.js';
|
|
5028
5663
|
export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-scaffold.js';
|
|
5029
|
-
import './
|
|
5664
|
+
import './extension-attributes-IJ4decoa.js';
|
|
5665
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
5030
5666
|
import './pane.js';
|
|
5031
5667
|
import './scroll-clearance-BikHljTc.js';
|
|
5668
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
5032
5669
|
import './surface-tint-DQgYCaP9.js';
|
|
5033
5670
|
import './list.js';
|
|
5034
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
5035
5671
|
import './flex-alignment-4ms8ZbV8.js';
|
|
5036
5672
|
import './sides-BPSWde0A.js';
|
|
5037
5673
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -5107,6 +5743,12 @@ interface ListDetailDialogProps {
|
|
|
5107
5743
|
* `NavStack`; every view keeps the close control.
|
|
5108
5744
|
*/
|
|
5109
5745
|
compact?: boolean;
|
|
5746
|
+
/**
|
|
5747
|
+
* Render in flow and always shown (DialogSurface `presentation="embedded"`)
|
|
5748
|
+
* instead of as a modal, for a catalog, a design canvas, or a document. It
|
|
5749
|
+
* keeps its `height`; `openDialog` and `closeDialog` leave it alone.
|
|
5750
|
+
*/
|
|
5751
|
+
embedded?: boolean;
|
|
5110
5752
|
/** On compact devices, whether the detail is pushed over the list. */
|
|
5111
5753
|
detailActive?: boolean;
|
|
5112
5754
|
/** The compact back control's accessible name (default `Back`). */
|
|
@@ -5141,7 +5783,7 @@ interface ListDetailDialogProps {
|
|
|
5141
5783
|
* stack's back control dispatches `nav-back`). Built from `DialogSurface`,
|
|
5142
5784
|
* `SplitView`, and `Pane`.
|
|
5143
5785
|
*/
|
|
5144
|
-
declare function ListDetailDialog({ id, label, describedBy, list, detail, compact, detailActive, backLabel, closeLabel, lightDismiss, size, preferredWidth, height, maxHeight, viewportGutter, rootAttributes, className, slot, }: ListDetailDialogProps): kerfjs.SafeHtml;
|
|
5786
|
+
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;
|
|
5145
5787
|
|
|
5146
5788
|
export { ListDetailDialog, type ListDetailDialogDetail, type ListDetailDialogList, type ListDetailDialogProps, type ListDetailDialogRootAttributes };
|
|
5147
5789
|
```
|
|
@@ -5155,12 +5797,13 @@ import { CssLength } from './css-values.js';
|
|
|
5155
5797
|
import { WorkbenchMainBottomToolbar, WorkbenchPanel } from './workbench.js';
|
|
5156
5798
|
import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-scaffold.js';
|
|
5157
5799
|
export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-scaffold.js';
|
|
5158
|
-
import './
|
|
5800
|
+
import './extension-attributes-IJ4decoa.js';
|
|
5801
|
+
import './nav-stack-DwxpXxqJ.js';
|
|
5159
5802
|
import './pane.js';
|
|
5160
5803
|
import './scroll-clearance-BikHljTc.js';
|
|
5804
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
5161
5805
|
import './surface-tint-DQgYCaP9.js';
|
|
5162
5806
|
import './list.js';
|
|
5163
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
5164
5807
|
import './flex-alignment-4ms8ZbV8.js';
|
|
5165
5808
|
import './sides-BPSWde0A.js';
|
|
5166
5809
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -5221,6 +5864,12 @@ interface WorkbenchDialogProps {
|
|
|
5221
5864
|
* `deviceClass().value.compact`.
|
|
5222
5865
|
*/
|
|
5223
5866
|
compact?: boolean;
|
|
5867
|
+
/**
|
|
5868
|
+
* Render in flow and always shown (DialogSurface `presentation="embedded"`)
|
|
5869
|
+
* instead of as a modal, for a catalog, a design canvas, or a document. It
|
|
5870
|
+
* keeps its `height`; `openDialog` and `closeDialog` leave it alone.
|
|
5871
|
+
*/
|
|
5872
|
+
embedded?: boolean;
|
|
5224
5873
|
/** The close control's accessible name (default `Close`). */
|
|
5225
5874
|
closeLabel?: string;
|
|
5226
5875
|
/** Close on a press on the backdrop; otherwise the panel pulses. */
|
|
@@ -5253,7 +5902,7 @@ interface WorkbenchDialogProps {
|
|
|
5253
5902
|
* Escape or a press outside it before the dialog sees the Escape. Built from
|
|
5254
5903
|
* `DialogSurface` and `Workbench`.
|
|
5255
5904
|
*/
|
|
5256
|
-
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;
|
|
5905
|
+
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;
|
|
5257
5906
|
|
|
5258
5907
|
export { WorkbenchDialog, type WorkbenchDialogProps, type WorkbenchDialogRootAttributes };
|
|
5259
5908
|
```
|
|
@@ -5264,19 +5913,27 @@ export { WorkbenchDialog, type WorkbenchDialogProps, type WorkbenchDialogRootAtt
|
|
|
5264
5913
|
import * as kerfjs from 'kerfjs';
|
|
5265
5914
|
import { KerfBaseAttrs } from 'kerfjs/jsx-runtime';
|
|
5266
5915
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5916
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5267
5917
|
import { S as Sides } from './sides-BPSWde0A.js';
|
|
5268
5918
|
import { CssForegroundColor } from './css-values.js';
|
|
5269
5919
|
|
|
5270
|
-
type FieldLabelProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> & {
|
|
5920
|
+
type FieldLabelProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className' | 'id'> & {
|
|
5271
5921
|
children: string;
|
|
5922
|
+
/**
|
|
5923
|
+
* The label's id: what a group's `labelledBy` (a ChoiceChips or a preview
|
|
5924
|
+
* group's `aria-labelledby`) names, so the label is that group's name.
|
|
5925
|
+
*/
|
|
5926
|
+
id?: string;
|
|
5272
5927
|
class?: string;
|
|
5273
5928
|
className?: string;
|
|
5274
5929
|
};
|
|
5275
5930
|
/** Visible field heading for a read-only preview; use its id with aria-labelledby on the preview group. */
|
|
5276
|
-
declare function FieldLabel({ children, class: classValue, className, ...attributes }: FieldLabelProps): kerfjs.SafeHtml;
|
|
5931
|
+
declare function FieldLabel({ children, id, class: classValue, className, ...attributes }: FieldLabelProps): kerfjs.SafeHtml;
|
|
5277
5932
|
|
|
5278
5933
|
type TextVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span';
|
|
5279
5934
|
type TextTone = 'default' | 'quiet' | 'danger';
|
|
5935
|
+
/** `strong` marks the text as important with a `<strong>` element. */
|
|
5936
|
+
type TextWeight = 'regular' | 'strong';
|
|
5280
5937
|
/**
|
|
5281
5938
|
* `compact` (xs), `default` (the element's own size), `medium` (the 16px
|
|
5282
5939
|
* body size, for a heading such as an in-list group title), `large`, or
|
|
@@ -5301,11 +5958,28 @@ type TextTruncate = 'end' | 'middle' | 'start';
|
|
|
5301
5958
|
*/
|
|
5302
5959
|
type TextTruncateKeep = number | 'segment';
|
|
5303
5960
|
type TextContent = KerfUiContent | string | number | readonly TextContent[];
|
|
5304
|
-
type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> & {
|
|
5961
|
+
type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className' | 'id' | 'lang'> & {
|
|
5962
|
+
/**
|
|
5963
|
+
* The element's id, for a link or `aria-*` reference to target (a
|
|
5964
|
+
* `ListItemLink href="#…"` destination, for example).
|
|
5965
|
+
*/
|
|
5966
|
+
id?: string;
|
|
5967
|
+
/** The text's language (`lang`), when it differs from the page's (KF-AC7AFR). */
|
|
5968
|
+
lang?: string;
|
|
5969
|
+
/**
|
|
5970
|
+
* An accessible name for the element (`aria-label`), such as a named
|
|
5971
|
+
* example paragraph (KF-AC7AFR). Visible text names most Text already.
|
|
5972
|
+
*/
|
|
5973
|
+
ariaLabel?: string;
|
|
5305
5974
|
/** Native heading, paragraph, or inline span element to render. Defaults to `p`. */
|
|
5306
5975
|
variant?: TextVariant;
|
|
5307
5976
|
/** Semantic foreground treatment. Defaults to the inherited foreground. */
|
|
5308
5977
|
tone?: TextTone;
|
|
5978
|
+
/**
|
|
5979
|
+
* `strong` wraps the text in `<strong>`, for a title or key phrase that
|
|
5980
|
+
* matters more than its neighbors. Defaults to `regular`.
|
|
5981
|
+
*/
|
|
5982
|
+
weight?: TextWeight;
|
|
5309
5983
|
/** Foreground color; overrides tone when supplied, or inherits when omitted. */
|
|
5310
5984
|
color?: CssForegroundColor;
|
|
5311
5985
|
/** Text sizing independent of the native semantic element. */
|
|
@@ -5322,6 +5996,13 @@ type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className'> &
|
|
|
5322
5996
|
lineHeight?: TextLineHeight;
|
|
5323
5997
|
/** Inline alignment of the lines (default `start`), for centered status copy. */
|
|
5324
5998
|
align?: TextAlign;
|
|
5999
|
+
/**
|
|
6000
|
+
* Announce changes to this text as a live region (`aria-live`), for a
|
|
6001
|
+
* status or result readout that updates without moving focus.
|
|
6002
|
+
*/
|
|
6003
|
+
live?: 'polite' | 'assertive';
|
|
6004
|
+
/** Application `data-*` metadata (test hooks, row keys); Text's own stay protected. */
|
|
6005
|
+
rootAttributes?: RootDataAttributes;
|
|
5325
6006
|
children: TextContent;
|
|
5326
6007
|
class?: string;
|
|
5327
6008
|
className?: string;
|
|
@@ -5361,9 +6042,9 @@ type TextProps = TextCommonProps & ({
|
|
|
5361
6042
|
* content-item padding; `span` adds no box geometry.
|
|
5362
6043
|
* All ordinary native heading/paragraph attributes pass through to the element.
|
|
5363
6044
|
*/
|
|
5364
|
-
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;
|
|
6045
|
+
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;
|
|
5365
6046
|
|
|
5366
|
-
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 };
|
|
6047
|
+
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 };
|
|
5367
6048
|
```
|
|
5368
6049
|
|
|
5369
6050
|
## `@kerfjs/ui/editor-frame`
|
|
@@ -5416,6 +6097,7 @@ export { EditorFrame, type EditorFrameAppearance, type EditorFrameInset, type Ed
|
|
|
5416
6097
|
|
|
5417
6098
|
```ts
|
|
5418
6099
|
import * as kerfjs from 'kerfjs';
|
|
6100
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5419
6101
|
import { CssLength } from './css-values.js';
|
|
5420
6102
|
|
|
5421
6103
|
interface ValuePreviewProps {
|
|
@@ -5431,9 +6113,12 @@ interface ValuePreviewProps {
|
|
|
5431
6113
|
className?: string;
|
|
5432
6114
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5433
6115
|
slot?: string;
|
|
6116
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6117
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6118
|
+
rootAttributes?: RootDataAttributes;
|
|
5434
6119
|
}
|
|
5435
6120
|
/** Read-only, bounded multiline text for a containing surface such as SunkenPanel. */
|
|
5436
|
-
declare function ValuePreview({ label, value, minHeight, maxHeight, id, className, slot, }: ValuePreviewProps): kerfjs.SafeHtml;
|
|
6121
|
+
declare function ValuePreview({ label, value, minHeight, maxHeight, id, className, slot, rootAttributes, }: ValuePreviewProps): kerfjs.SafeHtml;
|
|
5437
6122
|
|
|
5438
6123
|
export { ValuePreview, type ValuePreviewProps };
|
|
5439
6124
|
```
|
|
@@ -5490,6 +6175,125 @@ declare function FramedListRow({ children, highlighted, id, className, rootAttri
|
|
|
5490
6175
|
export { FramedList, type FramedListProps, FramedListRow, type FramedListRowProps, type FramedListSurface };
|
|
5491
6176
|
```
|
|
5492
6177
|
|
|
6178
|
+
## `@kerfjs/ui/tree-list`
|
|
6179
|
+
|
|
6180
|
+
```ts
|
|
6181
|
+
import * as kerfjs from 'kerfjs';
|
|
6182
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6183
|
+
import { T as TreeListNode } from './tree-rows-eHnnGLGM.js';
|
|
6184
|
+
export { a as TreeListRow, i as isExpandable, m as moveTreeListNode, t as treeListPath, b as treeListRows } from './tree-rows-eHnnGLGM.js';
|
|
6185
|
+
import './semantic-content-BbzjvSu9.js';
|
|
6186
|
+
|
|
6187
|
+
interface TreeListProps {
|
|
6188
|
+
/** Identifies the tree for `wireTreeList` and in tests. */
|
|
6189
|
+
id: string;
|
|
6190
|
+
/** The tree's accessible name, such as "Document outline". */
|
|
6191
|
+
label: string;
|
|
6192
|
+
/** The hierarchy. The application owns it. */
|
|
6193
|
+
nodes: readonly TreeListNode[];
|
|
6194
|
+
/** Ids of the expanded nodes. The application owns this state. */
|
|
6195
|
+
expanded: ReadonlySet<string> | readonly string[];
|
|
6196
|
+
/** The selected node's id. */
|
|
6197
|
+
selected?: string;
|
|
6198
|
+
/** Delegated action for choosing a row; the row's `data-item-id` names it. */
|
|
6199
|
+
action: string;
|
|
6200
|
+
/**
|
|
6201
|
+
* Delegated action for expanding or collapsing a row, from its disclosure
|
|
6202
|
+
* arrow or the keyboard (Right and Left). Flip the id in `expanded`.
|
|
6203
|
+
*/
|
|
6204
|
+
toggleAction: string;
|
|
6205
|
+
/** Row density: `standard` (44px rows, default) or `compact` (36px). */
|
|
6206
|
+
density?: 'standard' | 'compact';
|
|
6207
|
+
className?: string;
|
|
6208
|
+
/** Safe `data-*` metadata for the tree element. */
|
|
6209
|
+
rootAttributes?: RootDataAttributes;
|
|
6210
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6211
|
+
slot?: string;
|
|
6212
|
+
}
|
|
6213
|
+
/**
|
|
6214
|
+
* A hierarchical list: ListItem rows indented by depth, with a disclosure
|
|
6215
|
+
* arrow on each row that has children. The tree is an ARIA `tree` of flat
|
|
6216
|
+
* `treeitem` rows; the application owns the nodes, which are expanded, and
|
|
6217
|
+
* which is selected, and handles `action` and `toggleAction`. Wire keyboard
|
|
6218
|
+
* navigation with `wireTreeList`.
|
|
6219
|
+
*/
|
|
6220
|
+
declare function TreeList({ id, label, nodes, expanded, selected, action, toggleAction, density, className, rootAttributes, slot, }: TreeListProps): kerfjs.SafeHtml;
|
|
6221
|
+
|
|
6222
|
+
export { TreeList, TreeListNode, type TreeListProps };
|
|
6223
|
+
```
|
|
6224
|
+
|
|
6225
|
+
## `@kerfjs/ui/column-explorer`
|
|
6226
|
+
|
|
6227
|
+
```ts
|
|
6228
|
+
import { SafeHtml } from 'kerfjs';
|
|
6229
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6230
|
+
import { CssLength } from './css-values.js';
|
|
6231
|
+
import { T as TreeListNode } from './tree-rows-eHnnGLGM.js';
|
|
6232
|
+
import './semantic-content-BbzjvSu9.js';
|
|
6233
|
+
|
|
6234
|
+
/** One column: the children of the node chosen in the column before it. */
|
|
6235
|
+
interface ExplorerColumn {
|
|
6236
|
+
/** 0 for the top level. */
|
|
6237
|
+
readonly level: number;
|
|
6238
|
+
/** The node whose children this column lists, or undefined at the top. */
|
|
6239
|
+
readonly parent?: TreeListNode;
|
|
6240
|
+
readonly nodes: readonly TreeListNode[];
|
|
6241
|
+
/** The id chosen in this column, when the path reaches it. */
|
|
6242
|
+
readonly chosen?: string;
|
|
6243
|
+
}
|
|
6244
|
+
/**
|
|
6245
|
+
* The columns for `path` (ids from the top level down): the top level, then
|
|
6246
|
+
* the children of each chosen node that can expand. A path id that is not a
|
|
6247
|
+
* child of the column before it ends the walk there.
|
|
6248
|
+
*/
|
|
6249
|
+
declare function explorerColumns(nodes: readonly TreeListNode[], path: readonly string[]): ExplorerColumn[];
|
|
6250
|
+
/** The node at the end of `path`, when the whole path resolves. */
|
|
6251
|
+
declare function explorerChosen(nodes: readonly TreeListNode[], path: readonly string[]): TreeListNode | undefined;
|
|
6252
|
+
|
|
6253
|
+
interface ColumnExplorerProps {
|
|
6254
|
+
/** Identifies the explorer for `wireColumnExplorer` and in tests. */
|
|
6255
|
+
id: string;
|
|
6256
|
+
/** The explorer's accessible name, such as "Files". */
|
|
6257
|
+
label: string;
|
|
6258
|
+
/** The hierarchy, as TreeList's nodes. The application owns it. */
|
|
6259
|
+
nodes: readonly TreeListNode[];
|
|
6260
|
+
/**
|
|
6261
|
+
* The chosen ids from the top level down, one per column. The application
|
|
6262
|
+
* owns it: set it to `treeListPath(nodes, id)` when `action` reports a row.
|
|
6263
|
+
*/
|
|
6264
|
+
path: readonly string[];
|
|
6265
|
+
/** Delegated action for choosing a row; the row's `data-item-id` names it. */
|
|
6266
|
+
action: string;
|
|
6267
|
+
/**
|
|
6268
|
+
* Content for a last column when the chosen node is a leaf, such as a
|
|
6269
|
+
* file's details.
|
|
6270
|
+
*/
|
|
6271
|
+
preview?: SafeHtml;
|
|
6272
|
+
/** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */
|
|
6273
|
+
layout?: 'scroll' | 'paged';
|
|
6274
|
+
/** Each column's minimum width (ColumnTrack's default 250px). */
|
|
6275
|
+
minColumnWidth?: CssLength;
|
|
6276
|
+
/** How much of the next column a paged layout shows. */
|
|
6277
|
+
peek?: CssLength;
|
|
6278
|
+
/** Row density: `standard` (default) or `compact`. */
|
|
6279
|
+
density?: 'standard' | 'compact';
|
|
6280
|
+
className?: string;
|
|
6281
|
+
/** Safe `data-*` metadata for the explorer element. */
|
|
6282
|
+
rootAttributes?: RootDataAttributes;
|
|
6283
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6284
|
+
slot?: string;
|
|
6285
|
+
}
|
|
6286
|
+
/**
|
|
6287
|
+
* A macOS-style column explorer for a hierarchy: one column per level in a
|
|
6288
|
+
* ColumnTrack, where choosing a row with children opens the next column of
|
|
6289
|
+
* its children. The application owns the nodes and the chosen path and
|
|
6290
|
+
* handles `action`; wire the keyboard with `wireColumnExplorer`.
|
|
6291
|
+
*/
|
|
6292
|
+
declare function ColumnExplorer({ id, label, nodes, path, action, preview, layout, minColumnWidth, peek, density, className, rootAttributes, slot, }: ColumnExplorerProps): SafeHtml;
|
|
6293
|
+
|
|
6294
|
+
export { ColumnExplorer, type ColumnExplorerProps, type ExplorerColumn, explorerChosen, explorerColumns };
|
|
6295
|
+
```
|
|
6296
|
+
|
|
5493
6297
|
## `@kerfjs/ui/summary-row`
|
|
5494
6298
|
|
|
5495
6299
|
```ts
|
|
@@ -5540,6 +6344,13 @@ interface SummaryRowBaseProps {
|
|
|
5540
6344
|
type SummaryRowProps = SummaryRowBaseProps & ({
|
|
5541
6345
|
/** Selectable option, the default; place it in a labeled listbox. */
|
|
5542
6346
|
semanticRole?: 'option';
|
|
6347
|
+
/**
|
|
6348
|
+
* The delegated action this option fires when chosen (rendered as
|
|
6349
|
+
* `data-action`, as on ContentItem and ListItem), so a view
|
|
6350
|
+
* document can name it. It takes precedence over a `data-action`
|
|
6351
|
+
* in `rootAttributes`.
|
|
6352
|
+
*/
|
|
6353
|
+
action?: string;
|
|
5543
6354
|
/** Native HTML drag source on this option root, in row or card form. */
|
|
5544
6355
|
draggable?: boolean;
|
|
5545
6356
|
/** Accessible name when the visible content is not a good one. */
|
|
@@ -5548,6 +6359,7 @@ type SummaryRowProps = SummaryRowBaseProps & ({
|
|
|
5548
6359
|
/** Static labeled group; nested actions own focus and activation. */
|
|
5549
6360
|
semanticRole: 'group';
|
|
5550
6361
|
draggable?: never;
|
|
6362
|
+
action?: never;
|
|
5551
6363
|
ariaLabel: string;
|
|
5552
6364
|
});
|
|
5553
6365
|
/**
|
|
@@ -5555,7 +6367,7 @@ type SummaryRowProps = SummaryRowBaseProps & ({
|
|
|
5555
6367
|
* rail. The default is a focusable `role="option"` for a labeled listbox;
|
|
5556
6368
|
* `semanticRole="group"` gives a static labeled row for nested actions.
|
|
5557
6369
|
*/
|
|
5558
|
-
declare function SummaryRow({ title, leading, trailingMeta, metadata, presentation, titleLines, rail, selected, dimmed, listEdge, deferRendering, semanticRole, draggable, ariaLabel, id, className, rootAttributes, }: SummaryRowProps): SafeHtml;
|
|
6370
|
+
declare function SummaryRow({ title, leading, trailingMeta, metadata, presentation, titleLines, rail, selected, dimmed, listEdge, deferRendering, semanticRole, draggable, action, ariaLabel, id, className, rootAttributes, }: SummaryRowProps): SafeHtml;
|
|
5559
6371
|
|
|
5560
6372
|
export { SummaryRow, type SummaryRowListEdge, type SummaryRowPresentation, type SummaryRowProps };
|
|
5561
6373
|
```
|
|
@@ -5565,7 +6377,7 @@ export { SummaryRow, type SummaryRowListEdge, type SummaryRowPresentation, type
|
|
|
5565
6377
|
```ts
|
|
5566
6378
|
import * as kerfjs from 'kerfjs';
|
|
5567
6379
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5568
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
6380
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5569
6381
|
import { H as HorizontalAlignment, V as VerticalAlignment } from './flex-alignment-4ms8ZbV8.js';
|
|
5570
6382
|
import { S as Sides } from './sides-BPSWde0A.js';
|
|
5571
6383
|
import { UiGap, CssFlexKeyword, CssFlex } from './css-values.js';
|
|
@@ -5604,6 +6416,11 @@ interface RowProps {
|
|
|
5604
6416
|
/** Physical sides that receive the standard 8px control inset. Text insets win on overlap. */
|
|
5605
6417
|
controlInsets?: Sides;
|
|
5606
6418
|
className?: string;
|
|
6419
|
+
/**
|
|
6420
|
+
* Name the row as a group (`role="group"` with this `aria-label`), for a
|
|
6421
|
+
* set of related controls such as filter suggestions.
|
|
6422
|
+
*/
|
|
6423
|
+
ariaLabel?: string;
|
|
5607
6424
|
/**
|
|
5608
6425
|
* Safe `data-*`, `aria-*`, and structural `role` metadata (a named
|
|
5609
6426
|
* `region`, a `group`); Row-owned structural attributes remain protected.
|
|
@@ -5613,7 +6430,7 @@ interface RowProps {
|
|
|
5613
6430
|
slot?: string;
|
|
5614
6431
|
}
|
|
5615
6432
|
/** A horizontal flex row with explicit physical-axis alignment and spacing. */
|
|
5616
|
-
declare function Row({ children, hAlign, vAlign, gap, flex, fill, wrap, textInsets, controlInsets, className, rootAttributes, slot, }: RowProps): kerfjs.SafeHtml;
|
|
6433
|
+
declare function Row({ children, hAlign, vAlign, gap, flex, fill, wrap, textInsets, controlInsets, className, ariaLabel, rootAttributes, slot, }: RowProps): kerfjs.SafeHtml;
|
|
5617
6434
|
|
|
5618
6435
|
export { CssFlex, CssFlexKeyword, HorizontalAlignment, Row, type RowProps, Sides, UiGap, VerticalAlignment };
|
|
5619
6436
|
```
|
|
@@ -5686,7 +6503,7 @@ export { CssFlex, CssFlexKeyword, CssLength, Grid, type GridProps, Sides, UiGap
|
|
|
5686
6503
|
```ts
|
|
5687
6504
|
import * as kerfjs from 'kerfjs';
|
|
5688
6505
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5689
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
6506
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5690
6507
|
import { CssLength } from './css-values.js';
|
|
5691
6508
|
|
|
5692
6509
|
/** `scroll` keeps equal min-width columns; `paged` shows one near-full-width column per page. */
|
|
@@ -5709,9 +6526,18 @@ interface ColumnTrackProps {
|
|
|
5709
6526
|
minColumnWidth?: CssLength;
|
|
5710
6527
|
/** How much of the next column a `paged` track shows; default 24px. */
|
|
5711
6528
|
peek?: CssLength;
|
|
6529
|
+
/**
|
|
6530
|
+
* Name the track (a board) for assistive technology: the scroller becomes
|
|
6531
|
+
* a `role="region"` landmark with this `aria-label`. Name each column with
|
|
6532
|
+
* `List landmark="region"` and its own `ariaLabel`.
|
|
6533
|
+
*/
|
|
6534
|
+
ariaLabel?: string;
|
|
5712
6535
|
id?: string;
|
|
5713
6536
|
className?: string;
|
|
5714
|
-
/**
|
|
6537
|
+
/**
|
|
6538
|
+
* Safe `data-*`, `aria-*`, and structural `role` metadata on the scroller;
|
|
6539
|
+
* with `ariaLabel` the track owns its role and name.
|
|
6540
|
+
*/
|
|
5715
6541
|
rootAttributes?: ColumnTrackRootAttributes;
|
|
5716
6542
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5717
6543
|
slot?: string;
|
|
@@ -5722,7 +6548,7 @@ interface ColumnTrackProps {
|
|
|
5722
6548
|
* insets and vertical scrolling. Kerf owns the overflow, the paged snapping,
|
|
5723
6549
|
* and reduced motion.
|
|
5724
6550
|
*/
|
|
5725
|
-
declare function ColumnTrack({ children, layout, minColumnWidth, peek, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
|
|
6551
|
+
declare function ColumnTrack({ children, layout, minColumnWidth, peek, ariaLabel, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
|
|
5726
6552
|
|
|
5727
6553
|
export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps };
|
|
5728
6554
|
```
|
|
@@ -5732,6 +6558,7 @@ export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps };
|
|
|
5732
6558
|
```ts
|
|
5733
6559
|
import * as kerfjs from 'kerfjs';
|
|
5734
6560
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6561
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5735
6562
|
|
|
5736
6563
|
type ContentSwapSide = 'a' | 'b';
|
|
5737
6564
|
type ContentSwapTransition = 'none' | 'crossfade' | 'push';
|
|
@@ -5753,6 +6580,9 @@ interface ContentSwapProps {
|
|
|
5753
6580
|
className?: string;
|
|
5754
6581
|
/** Native named-slot assignment, such as a dialog's `label` or `footer`. */
|
|
5755
6582
|
slot?: string;
|
|
6583
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6584
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6585
|
+
rootAttributes?: RootDataAttributes;
|
|
5756
6586
|
}
|
|
5757
6587
|
/**
|
|
5758
6588
|
* Two content sides sharing one cell (a dialog body that steps to a second
|
|
@@ -5761,15 +6591,65 @@ interface ContentSwapProps {
|
|
|
5761
6591
|
* `inert`/`aria-hidden`. Use `NavStack` for full views with their own
|
|
5762
6592
|
* toolbars.
|
|
5763
6593
|
*/
|
|
5764
|
-
declare function ContentSwap({ active, a, b, transition, direction, label, fill, className, slot, }: ContentSwapProps): kerfjs.SafeHtml;
|
|
6594
|
+
declare function ContentSwap({ active, a, b, transition, direction, label, fill, className, slot, rootAttributes, }: ContentSwapProps): kerfjs.SafeHtml;
|
|
5765
6595
|
|
|
5766
6596
|
export { ContentSwap, type ContentSwapDirection, type ContentSwapProps, type ContentSwapSide, type ContentSwapTransition };
|
|
5767
6597
|
```
|
|
5768
6598
|
|
|
6599
|
+
## `@kerfjs/ui/sized-region`
|
|
6600
|
+
|
|
6601
|
+
```ts
|
|
6602
|
+
import * as kerfjs from 'kerfjs';
|
|
6603
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6604
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6605
|
+
import { CssLength } from './css-values.js';
|
|
6606
|
+
|
|
6607
|
+
interface SizedRegionProps {
|
|
6608
|
+
/**
|
|
6609
|
+
* The region's height: a typed `CssLength`, or `'fill'` to take the height
|
|
6610
|
+
* its parent gives it (the rest of a flex column such as a Pane's content,
|
|
6611
|
+
* or all of a parent with a definite height). Defaults to `'fill'`. Inside
|
|
6612
|
+
* a parent that sizes to its content, `'fill'` has nothing to take, so
|
|
6613
|
+
* give the region a `minHeight` or a length.
|
|
6614
|
+
*/
|
|
6615
|
+
height?: CssLength | 'fill';
|
|
6616
|
+
/**
|
|
6617
|
+
* The least height, a typed `CssLength`. Unlike `min-height` on an
|
|
6618
|
+
* ordinary box, it gives the content a usable height on its own, even in
|
|
6619
|
+
* a parent that sizes to its content.
|
|
6620
|
+
*/
|
|
6621
|
+
minHeight?: CssLength;
|
|
6622
|
+
/** The greatest height, a typed `CssLength`. */
|
|
6623
|
+
maxHeight?: CssLength;
|
|
6624
|
+
/**
|
|
6625
|
+
* One piece of content that fills the region: a whole-screen layout
|
|
6626
|
+
* (TabNavigator, NavStack, SplitView, Workbench) or another component
|
|
6627
|
+
* that fills its parent's height.
|
|
6628
|
+
*/
|
|
6629
|
+
children?: KerfUiContent;
|
|
6630
|
+
id?: string;
|
|
6631
|
+
className?: string;
|
|
6632
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6633
|
+
slot?: string;
|
|
6634
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6635
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6636
|
+
rootAttributes?: RootDataAttributes;
|
|
6637
|
+
}
|
|
6638
|
+
/**
|
|
6639
|
+
* Gives content that cannot size itself a definite height: a whole-screen
|
|
6640
|
+
* layout placed below an app's root, which otherwise collapses to its bar.
|
|
6641
|
+
* Not for sizing ordinary components; those size to their content.
|
|
6642
|
+
*/
|
|
6643
|
+
declare function SizedRegion({ height, minHeight, maxHeight, children, id, className, slot, rootAttributes, }: SizedRegionProps): kerfjs.SafeHtml;
|
|
6644
|
+
|
|
6645
|
+
export { CssLength, SizedRegion, type SizedRegionProps };
|
|
6646
|
+
```
|
|
6647
|
+
|
|
5769
6648
|
## `@kerfjs/ui/spacer`
|
|
5770
6649
|
|
|
5771
6650
|
```ts
|
|
5772
6651
|
import * as kerfjs from 'kerfjs';
|
|
6652
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5773
6653
|
import { UiSpaceName, CssLength } from './css-values.js';
|
|
5774
6654
|
|
|
5775
6655
|
interface SpacerProps {
|
|
@@ -5782,9 +6662,12 @@ interface SpacerProps {
|
|
|
5782
6662
|
className?: string;
|
|
5783
6663
|
/** Native named-slot assignment when composed inside a web component. */
|
|
5784
6664
|
slot?: string;
|
|
6665
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6666
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6667
|
+
rootAttributes?: RootDataAttributes;
|
|
5785
6668
|
}
|
|
5786
6669
|
/** A decorative fixed-size or flexible gap for Row, List, and other flex layouts. */
|
|
5787
|
-
declare function Spacer({ flex, width, height, className, slot, }: SpacerProps): kerfjs.SafeHtml;
|
|
6670
|
+
declare function Spacer({ flex, width, height, className, slot, rootAttributes, }: SpacerProps): kerfjs.SafeHtml;
|
|
5788
6671
|
|
|
5789
6672
|
export { CssLength, Spacer, type SpacerProps, UiSpaceName };
|
|
5790
6673
|
```
|
|
@@ -5919,6 +6802,167 @@ declare function Disclosure({ title, detail, children, open, name, appearance, t
|
|
|
5919
6802
|
export { Disclosure, type DisclosureAppearance, type DisclosureProps, type DisclosureRootAttributes };
|
|
5920
6803
|
```
|
|
5921
6804
|
|
|
6805
|
+
## `@kerfjs/ui/tab-panel`
|
|
6806
|
+
|
|
6807
|
+
```ts
|
|
6808
|
+
import * as kerfjs from 'kerfjs';
|
|
6809
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6810
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6811
|
+
|
|
6812
|
+
interface TabPanelProps {
|
|
6813
|
+
/** The panel's DOM id: the controlling `TabBarItem`'s `panelId`
|
|
6814
|
+
* (its `aria-controls`). */
|
|
6815
|
+
id: string;
|
|
6816
|
+
/** The DOM id of the tab that names this panel: the controlling
|
|
6817
|
+
* `TabBarItem`'s `tabId`, written as `aria-labelledby`. */
|
|
6818
|
+
tabId: string;
|
|
6819
|
+
/** Hide the panel while its tab is not selected. The application keeps
|
|
6820
|
+
* exactly one panel of a tab set visible, the selected tab's. */
|
|
6821
|
+
hidden?: boolean;
|
|
6822
|
+
/** The panel's content is still loading (`aria-busy`), as for a
|
|
6823
|
+
* `pending` `TabBarItem` whose panel shows placeholders. */
|
|
6824
|
+
busy?: boolean;
|
|
6825
|
+
/** The panel's content. */
|
|
6826
|
+
children?: KerfUiContent;
|
|
6827
|
+
className?: string;
|
|
6828
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6829
|
+
slot?: string;
|
|
6830
|
+
/** Application `data-*` metadata on the root, such as a test hook or an
|
|
6831
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6832
|
+
rootAttributes?: RootDataAttributes;
|
|
6833
|
+
}
|
|
6834
|
+
/**
|
|
6835
|
+
* The application-owned panel a `TabBarItem` controls: a `tabpanel` region
|
|
6836
|
+
* named by its tab. It adds no inset, chrome, or layout of its own; the
|
|
6837
|
+
* content inside it owns those. Selection stays application state: render
|
|
6838
|
+
* every panel of a tab set and set `hidden` on all but the selected tab's.
|
|
6839
|
+
*/
|
|
6840
|
+
declare function TabPanel({ id, tabId, hidden, busy, children, className, slot, rootAttributes, }: TabPanelProps): kerfjs.SafeHtml;
|
|
6841
|
+
|
|
6842
|
+
export { TabPanel, type TabPanelProps };
|
|
6843
|
+
```
|
|
6844
|
+
|
|
6845
|
+
## `@kerfjs/ui/paged-view`
|
|
6846
|
+
|
|
6847
|
+
```ts
|
|
6848
|
+
import * as kerfjs from 'kerfjs';
|
|
6849
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6850
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6851
|
+
|
|
6852
|
+
/** One page of a {@link PagedView}: its id, its name, and its content. */
|
|
6853
|
+
interface PagedViewPage<Id extends string = string> {
|
|
6854
|
+
/** Stable page id: the controlled `page` value and the persisted choice. */
|
|
6855
|
+
id: Id;
|
|
6856
|
+
/** Short page name, spoken in the dot's name (see `pageLabel`) and shown as the dot's tooltip. */
|
|
6857
|
+
label: string;
|
|
6858
|
+
/** The page's content; it owns its own inset (a `ContentItem`, `List`, `ListInsetText`). */
|
|
6859
|
+
content: KerfUiContent;
|
|
6860
|
+
}
|
|
6861
|
+
interface PagedViewProps<Id extends string = string> {
|
|
6862
|
+
/** DOM id of the root; page and dot ids derive from it. */
|
|
6863
|
+
id: string;
|
|
6864
|
+
/** Accessible name of the page-dot tablist (for example "Sidebar pages"). */
|
|
6865
|
+
label: string;
|
|
6866
|
+
/** The pages, in order. With one page no dots render. */
|
|
6867
|
+
pages: readonly PagedViewPage<Id>[];
|
|
6868
|
+
/** The controlled current page id (the app owns it and may persist it). */
|
|
6869
|
+
page: NoInfer<Id>;
|
|
6870
|
+
/**
|
|
6871
|
+
* Accessible name of each page dot, for localization: `{index}` is the
|
|
6872
|
+
* 1-based page number, `{count}` the page count, and `{label}` the page's
|
|
6873
|
+
* label. Defaults to `Page {index} of {count}: {label}`.
|
|
6874
|
+
*/
|
|
6875
|
+
pageLabel?: string;
|
|
6876
|
+
className?: string;
|
|
6877
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6878
|
+
slot?: string;
|
|
6879
|
+
/** Application `data-*` metadata on the root, such as a test hook or an
|
|
6880
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6881
|
+
rootAttributes?: RootDataAttributes;
|
|
6882
|
+
}
|
|
6883
|
+
/**
|
|
6884
|
+
* A region that pages horizontally between full-size panes, with compact
|
|
6885
|
+
* page dots floating in a pill at the bottom. Each pane fills the region and
|
|
6886
|
+
* scrolls vertically on its own, beneath the dots; swiping, trackpad
|
|
6887
|
+
* scrolling, the dots, and Left and Right on the dots change the page once
|
|
6888
|
+
* `wirePagedViews` is wired. The component owns the
|
|
6889
|
+
* geometry: put it directly in a Pane, sidebar, or SizedRegion, with no
|
|
6890
|
+
* wrapper padding.
|
|
6891
|
+
*/
|
|
6892
|
+
declare function PagedView<Id extends string>({ id, label, pages, page, pageLabel, className, slot, rootAttributes, }: PagedViewProps<Id>): kerfjs.SafeHtml;
|
|
6893
|
+
|
|
6894
|
+
export { PagedView, type PagedViewPage, type PagedViewProps };
|
|
6895
|
+
```
|
|
6896
|
+
|
|
6897
|
+
## `@kerfjs/ui/form`
|
|
6898
|
+
|
|
6899
|
+
```ts
|
|
6900
|
+
import * as kerfjs from 'kerfjs';
|
|
6901
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6902
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6903
|
+
|
|
6904
|
+
interface FormProps {
|
|
6905
|
+
/** The form's id: a `Button` outside it names it with `form`, and the
|
|
6906
|
+
* application reads its fields with `new FormData(form)`. */
|
|
6907
|
+
id?: string;
|
|
6908
|
+
/** Native form `name`, for `document.forms` lookups. */
|
|
6909
|
+
name?: string;
|
|
6910
|
+
/**
|
|
6911
|
+
* Delegated `data-action` the application handles on `submit`, with
|
|
6912
|
+
* `delegateActions(root, 'submit', table)`. It is not the native `action`
|
|
6913
|
+
* URL: a Kerf UI Form never navigates (see `wireForms`).
|
|
6914
|
+
*/
|
|
6915
|
+
action?: string;
|
|
6916
|
+
/** Id of a visible heading that names the form. A named form is a `form`
|
|
6917
|
+
* landmark; leave both names off for a form that needs no landmark. */
|
|
6918
|
+
labelledBy?: string;
|
|
6919
|
+
/** Accessible name when no visible heading names the form. */
|
|
6920
|
+
ariaLabel?: string;
|
|
6921
|
+
/** Id of the element whose text describes the form, such as a heading's
|
|
6922
|
+
* supporting line; rendered as `aria-describedby`. */
|
|
6923
|
+
describedBy?: string;
|
|
6924
|
+
/** Skip native constraint validation on submit, for a form whose
|
|
6925
|
+
* application validates its fields and shows their errors itself. */
|
|
6926
|
+
noValidate?: boolean;
|
|
6927
|
+
/** The fields, field groups, and actions the form holds. */
|
|
6928
|
+
children?: KerfUiContent;
|
|
6929
|
+
className?: string;
|
|
6930
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
6931
|
+
slot?: string;
|
|
6932
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
6933
|
+
* editor node marker; the component's own markers stay protected. */
|
|
6934
|
+
rootAttributes?: RootDataAttributes;
|
|
6935
|
+
}
|
|
6936
|
+
/**
|
|
6937
|
+
* A native form that groups fields so their values submit and read together.
|
|
6938
|
+
* It adds no inset, chrome, or layout of its own: its children lay out as
|
|
6939
|
+
* the parent's own. Submitting runs the application's `action` handler and,
|
|
6940
|
+
* with `wireForms`, never navigates the page.
|
|
6941
|
+
*/
|
|
6942
|
+
declare function Form({ id, name, action, labelledBy, ariaLabel, describedBy, noValidate, children, className, slot, rootAttributes, }: FormProps): kerfjs.SafeHtml;
|
|
6943
|
+
|
|
6944
|
+
export { Form, type FormProps };
|
|
6945
|
+
```
|
|
6946
|
+
|
|
6947
|
+
## `@kerfjs/ui/wire-forms`
|
|
6948
|
+
|
|
6949
|
+
```ts
|
|
6950
|
+
type Root = HTMLElement | Document;
|
|
6951
|
+
/**
|
|
6952
|
+
* Keep every Kerf UI `Form` below root from navigating the page when it is
|
|
6953
|
+
* submitted, whether by a submit `Button` or by Enter in a field (implicit
|
|
6954
|
+
* submission). The `submit` event still reaches the application, which
|
|
6955
|
+
* handles it with `delegateActions(root, 'submit', table)` keyed on the
|
|
6956
|
+
* Form's `action`; native constraint validation still runs first unless the
|
|
6957
|
+
* Form sets `noValidate`. It listens in the capture phase, so a handler that
|
|
6958
|
+
* stops propagation cannot let a submission through. A native `<form>` that
|
|
6959
|
+
* is not a Kerf UI Form is left alone. Dispose with the owning application.
|
|
6960
|
+
*/
|
|
6961
|
+
declare function wireForms(root: Root): () => void;
|
|
6962
|
+
|
|
6963
|
+
export { wireForms };
|
|
6964
|
+
```
|
|
6965
|
+
|
|
5922
6966
|
## `@kerfjs/ui/wire-choice-chips`
|
|
5923
6967
|
|
|
5924
6968
|
```ts
|
|
@@ -5934,7 +6978,9 @@ declare function readChoiceChips(group: Element): string[];
|
|
|
5934
6978
|
* it), and Cmd/Ctrl+A selects every chip. Disabled chips keep their state.
|
|
5935
6979
|
* Each change updates `aria-selected` and the hidden form inputs, then fires
|
|
5936
6980
|
* a bubbling `change` on the group, whose `data-action` is the group's
|
|
5937
|
-
* `action`; read the new set with `readChoiceChips`.
|
|
6981
|
+
* `action`; read the new set with `readChoiceChips`. In a one-row scrolling
|
|
6982
|
+
* group (`overflow: 'scroll'`) of any selection mode, it also keeps the
|
|
6983
|
+
* checked chip in view, scrolling only the group. Returns a disposer.
|
|
5938
6984
|
*/
|
|
5939
6985
|
declare function wireChoiceChips(root: HTMLElement | Document): () => void;
|
|
5940
6986
|
|
|
@@ -6179,9 +7225,10 @@ export { ColorField, type ColorFieldProps, type ColorFieldRootAttributes, type C
|
|
|
6179
7225
|
## `@kerfjs/ui/search-field-model`
|
|
6180
7226
|
|
|
6181
7227
|
```ts
|
|
6182
|
-
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-
|
|
7228
|
+
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';
|
|
6183
7229
|
import 'kerfjs';
|
|
6184
7230
|
import './semantic-content-BbzjvSu9.js';
|
|
7231
|
+
import './extension-attributes-IJ4decoa.js';
|
|
6185
7232
|
```
|
|
6186
7233
|
|
|
6187
7234
|
## `@kerfjs/ui/tag-field`
|
|
@@ -6189,6 +7236,7 @@ import './semantic-content-BbzjvSu9.js';
|
|
|
6189
7236
|
```ts
|
|
6190
7237
|
import * as kerfjs from 'kerfjs';
|
|
6191
7238
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
7239
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6192
7240
|
|
|
6193
7241
|
/** The delegated actions a TagField's controls carry; `wireTagFields` handles them. */
|
|
6194
7242
|
declare const tagFieldActions: {
|
|
@@ -6226,6 +7274,9 @@ interface TagFieldProps {
|
|
|
6226
7274
|
className?: string;
|
|
6227
7275
|
/** Native named-slot assignment when composed inside a web component. */
|
|
6228
7276
|
slot?: string;
|
|
7277
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
7278
|
+
* editor node marker; the component's own markers stay protected. */
|
|
7279
|
+
rootAttributes?: RootDataAttributes;
|
|
6229
7280
|
}
|
|
6230
7281
|
/**
|
|
6231
7282
|
* A form field that collects short values as removable tags: SearchField's
|
|
@@ -6236,7 +7287,7 @@ interface TagFieldProps {
|
|
|
6236
7287
|
* the tag list: wire `wireTagFields` from `@kerfjs/ui/wire-tag-fields` and
|
|
6237
7288
|
* re-render with the list its `onChange` reports.
|
|
6238
7289
|
*/
|
|
6239
|
-
declare function TagField({ id, label, tags, name, form, placeholder, morePlaceholder, hint, error, max, required, disabled, icon, clearLabel, className, slot, }: TagFieldProps): kerfjs.SafeHtml;
|
|
7290
|
+
declare function TagField({ id, label, tags, name, form, placeholder, morePlaceholder, hint, error, max, required, disabled, icon, clearLabel, className, slot, rootAttributes, }: TagFieldProps): kerfjs.SafeHtml;
|
|
6240
7291
|
|
|
6241
7292
|
export { TagField, type TagFieldProps, tagFieldActions };
|
|
6242
7293
|
```
|
|
@@ -6245,6 +7296,7 @@ export { TagField, type TagFieldProps, tagFieldActions };
|
|
|
6245
7296
|
|
|
6246
7297
|
```ts
|
|
6247
7298
|
import * as kerfjs from 'kerfjs';
|
|
7299
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6248
7300
|
|
|
6249
7301
|
/** A suggestion: a plain string, or a value with a distinct visible label. */
|
|
6250
7302
|
type ComboboxSuggestion = string | {
|
|
@@ -6273,6 +7325,9 @@ interface ComboboxProps {
|
|
|
6273
7325
|
createLabel?: string | false;
|
|
6274
7326
|
disabled?: boolean;
|
|
6275
7327
|
className?: string;
|
|
7328
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
7329
|
+
* editor node marker; the component's own markers stay protected. */
|
|
7330
|
+
rootAttributes?: RootDataAttributes;
|
|
6276
7331
|
}
|
|
6277
7332
|
/**
|
|
6278
7333
|
* A free-text field with a filtered suggestion list that can also create a new
|
|
@@ -6281,7 +7336,7 @@ interface ComboboxProps {
|
|
|
6281
7336
|
* and reports commits (Enter, comma, or a click). Use `Select` when only
|
|
6282
7337
|
* existing values are allowed and nothing is typed.
|
|
6283
7338
|
*/
|
|
6284
|
-
declare function Combobox({ id, label, suggestions, value, placeholder, hint, name, createLabel, disabled, className, }: ComboboxProps): kerfjs.SafeHtml;
|
|
7339
|
+
declare function Combobox({ id, label, suggestions, value, placeholder, hint, name, createLabel, disabled, className, rootAttributes, }: ComboboxProps): kerfjs.SafeHtml;
|
|
6285
7340
|
|
|
6286
7341
|
export { Combobox, type ComboboxProps, type ComboboxSuggestion };
|
|
6287
7342
|
```
|
|
@@ -6312,6 +7367,22 @@ type TextFieldName = {
|
|
|
6312
7367
|
ariaLabel: string;
|
|
6313
7368
|
};
|
|
6314
7369
|
type TextFieldProps = TextFieldName & TextFieldOptions;
|
|
7370
|
+
/**
|
|
7371
|
+
* An icon toggle button inside the end of the field (KF-3Y2GS2): a
|
|
7372
|
+
* password's Show, or an editor's Not set. A multi-line field pins it to its
|
|
7373
|
+
* top end (KF-8FCJ02). The application flips
|
|
7374
|
+
* `pressed` in its `action` handler.
|
|
7375
|
+
*/
|
|
7376
|
+
interface TextFieldToggle {
|
|
7377
|
+
/** The button's accessible name. */
|
|
7378
|
+
label: string;
|
|
7379
|
+
/** Its icon, such as a `LucideIcon`. */
|
|
7380
|
+
icon: KerfUiContent;
|
|
7381
|
+
/** Whether the toggle is on (`aria-pressed`). */
|
|
7382
|
+
pressed: boolean;
|
|
7383
|
+
/** Delegated `data-action` the application handles. */
|
|
7384
|
+
action: string;
|
|
7385
|
+
}
|
|
6315
7386
|
interface TextFieldOptions {
|
|
6316
7387
|
/** The controlled value. */
|
|
6317
7388
|
value?: string;
|
|
@@ -6334,6 +7405,8 @@ interface TextFieldOptions {
|
|
|
6334
7405
|
clearable?: boolean;
|
|
6335
7406
|
/** The clear button's accessible name (default `Clear`). */
|
|
6336
7407
|
clearLabel?: string;
|
|
7408
|
+
/** An icon toggle button inside the end of the field (top end when multi-line). */
|
|
7409
|
+
toggle?: TextFieldToggle;
|
|
6337
7410
|
/** The most characters the field accepts (native `maxlength`). */
|
|
6338
7411
|
maxLength?: number;
|
|
6339
7412
|
/**
|
|
@@ -6381,15 +7454,15 @@ interface TextFieldOptions {
|
|
|
6381
7454
|
slot?: string;
|
|
6382
7455
|
}
|
|
6383
7456
|
/**
|
|
6384
|
-
* A text input with its label above, an optional leading icon
|
|
6385
|
-
* button, and supporting or error text below, at the 44px control height or
|
|
7457
|
+
* A text input with its label above, an optional leading icon, clear
|
|
7458
|
+
* button, and end toggle, and supporting or error text below, at the 44px control height or
|
|
6386
7459
|
* compact. `multiline` makes it a textarea that can grow with its content.
|
|
6387
7460
|
* The whole field is one `<label>`, so clicking anywhere on it focuses the
|
|
6388
7461
|
* input; the input is named by `label` (or `ariaLabel`) directly.
|
|
6389
7462
|
*/
|
|
6390
|
-
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;
|
|
7463
|
+
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;
|
|
6391
7464
|
|
|
6392
|
-
export { TextField, type TextFieldInputMode, type TextFieldName, type TextFieldOptions, type TextFieldProps, type TextFieldRootAttributes, type TextFieldSize, type TextFieldType };
|
|
7465
|
+
export { TextField, type TextFieldInputMode, type TextFieldName, type TextFieldOptions, type TextFieldProps, type TextFieldRootAttributes, type TextFieldSize, type TextFieldToggle, type TextFieldType };
|
|
6393
7466
|
```
|
|
6394
7467
|
|
|
6395
7468
|
## `@kerfjs/ui/checkbox`
|
|
@@ -6793,9 +7866,21 @@ import './semantic-tone-CdW013KF.js';
|
|
|
6793
7866
|
type ButtonTone = 'neutral' | 'brand' | 'success' | 'danger';
|
|
6794
7867
|
/**
|
|
6795
7868
|
* How loudly it asks: `primary` (default) fills the button, `secondary`
|
|
6796
|
-
* outlines it,
|
|
7869
|
+
* outlines it, `plain` shows only its text until hovered, and `link` draws it
|
|
7870
|
+
* as an inline text link (the tone's link color, underlined, no box). Any
|
|
7871
|
+
* Button takes any emphasis, whether it renders a `<button>` or a link.
|
|
6797
7872
|
*/
|
|
6798
|
-
type ButtonEmphasis = 'primary' | 'secondary' | 'plain';
|
|
7873
|
+
type ButtonEmphasis = 'primary' | 'secondary' | 'plain' | 'link';
|
|
7874
|
+
/** Where a link Button opens. */
|
|
7875
|
+
type ButtonLinkTarget = '_self' | '_blank' | '_parent' | '_top';
|
|
7876
|
+
/**
|
|
7877
|
+
* A link Button's destination: a URL (a `URL` or a string), or a URL with
|
|
7878
|
+
* the `target` it opens in. A `URL` is written as its `.href`.
|
|
7879
|
+
*/
|
|
7880
|
+
type ButtonLink = URL | string | {
|
|
7881
|
+
readonly href: URL | string;
|
|
7882
|
+
readonly target?: ButtonLinkTarget;
|
|
7883
|
+
};
|
|
6799
7884
|
/** `default` is the 44px control height; `compact` is 33px with smaller text. */
|
|
6800
7885
|
type ButtonSize = 'default' | 'compact';
|
|
6801
7886
|
/** Corner shape: the shared `rounded` control radius (default) or a full `pill`. */
|
|
@@ -6839,9 +7924,17 @@ interface ButtonOptions {
|
|
|
6839
7924
|
/**
|
|
6840
7925
|
* Make it a toggle: `aria-pressed` reports the state, and a pressed look is
|
|
6841
7926
|
* drawn on top of the tone and emphasis. The application owns the state and
|
|
6842
|
-
* flips it in its `action` handler. A link (`href`) cannot be a
|
|
7927
|
+
* flips it in its `action` handler. A link (`link` or `href`) cannot be a
|
|
7928
|
+
* toggle, and neither can a Button with the `link` emphasis.
|
|
6843
7929
|
*/
|
|
6844
7930
|
pressed?: boolean;
|
|
7931
|
+
/**
|
|
7932
|
+
* Make it a disclosure control: `aria-expanded` reports whether the
|
|
7933
|
+
* content it shows or hides is open (KF-DE348P). The application owns the
|
|
7934
|
+
* state and flips it in its `action` handler; pair it with a
|
|
7935
|
+
* `DisclosureArrow` icon. A link (`link` or `href`) cannot take it.
|
|
7936
|
+
*/
|
|
7937
|
+
expanded?: boolean;
|
|
6845
7938
|
/** Mark the current step in a sequence with `aria-current="step"`. */
|
|
6846
7939
|
currentStep?: boolean;
|
|
6847
7940
|
/**
|
|
@@ -6857,12 +7950,27 @@ interface ButtonOptions {
|
|
|
6857
7950
|
value?: string;
|
|
6858
7951
|
/** The id of the form it belongs to, when it sits outside that form. */
|
|
6859
7952
|
form?: string;
|
|
6860
|
-
/**
|
|
7953
|
+
/**
|
|
7954
|
+
* Render a link instead of a `<button>`: a URL, or `{ href, target }`. The
|
|
7955
|
+
* Button keeps its emphasis (set `emphasis="link"` for a text link). The
|
|
7956
|
+
* preferred spelling of `href` + `target`; give one or the other, not both.
|
|
7957
|
+
*/
|
|
7958
|
+
link?: ButtonLink;
|
|
7959
|
+
/** Render a link instead of a `<button>`; `link` is the preferred form. */
|
|
6861
7960
|
href?: string;
|
|
6862
|
-
/** Where
|
|
6863
|
-
target?:
|
|
7961
|
+
/** Where an `href` link opens; with `link`, pass `{ href, target }`. */
|
|
7962
|
+
target?: ButtonLinkTarget;
|
|
6864
7963
|
/** Delegated `data-action` the application handles. */
|
|
6865
7964
|
action?: string;
|
|
7965
|
+
/**
|
|
7966
|
+
* The id of a native `popover` element this button opens or closes (the
|
|
7967
|
+
* Popover API's invoker; KF-PAMQNM). A link Button cannot take it.
|
|
7968
|
+
*/
|
|
7969
|
+
popoverTarget?: string;
|
|
7970
|
+
/** What the button does to its `popoverTarget`; the browser default is `toggle`. */
|
|
7971
|
+
popoverTargetAction?: 'toggle' | 'show' | 'hide';
|
|
7972
|
+
/** The kind of popup the button opens, reported as `aria-haspopup`. */
|
|
7973
|
+
ariaHasPopup?: 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog';
|
|
6866
7974
|
/**
|
|
6867
7975
|
* Keep the button's focus ring inside its box when an ancestor clips
|
|
6868
7976
|
* overflow. The inset ring is two-tone, a surface-colored line inside the
|
|
@@ -6871,11 +7979,17 @@ interface ButtonOptions {
|
|
|
6871
7979
|
focusRingInset?: boolean;
|
|
6872
7980
|
/**
|
|
6873
7981
|
* A count, short text, or `true` for a text-free dot over the button's
|
|
6874
|
-
* top-trailing corner, such as how many items a filter hides.
|
|
6875
|
-
*
|
|
7982
|
+
* top-trailing corner, such as how many items a filter hides. A count of 0
|
|
7983
|
+
* or less, or empty text, shows no badge; a count past `badgeMax` shows
|
|
7984
|
+
* `99+`. It stays out of the accessible name unless `badgeLabel` names it.
|
|
6876
7985
|
*/
|
|
6877
7986
|
badge?: number | string | true;
|
|
6878
|
-
/**
|
|
7987
|
+
/** The largest count shown before `badgeMax+` (default 99). */
|
|
7988
|
+
badgeMax?: number;
|
|
7989
|
+
/**
|
|
7990
|
+
* Words for the badge ("3 hidden"), added to the button's name while the
|
|
7991
|
+
* badge shows.
|
|
7992
|
+
*/
|
|
6879
7993
|
badgeLabel?: string;
|
|
6880
7994
|
/** The badge's tone (default `danger`). */
|
|
6881
7995
|
badgeTone?: BadgeTone;
|
|
@@ -6894,8 +8008,8 @@ interface ButtonOptions {
|
|
|
6894
8008
|
slot?: string;
|
|
6895
8009
|
}
|
|
6896
8010
|
/**
|
|
6897
|
-
* A standalone action button: a native `<button>` (or a link with `
|
|
6898
|
-
* in one of four tones and
|
|
8011
|
+
* A standalone action button: a native `<button>` (or a link with `link`)
|
|
8012
|
+
* in one of four tones and four emphases, including an inline text link, at the 44px control height or
|
|
6899
8013
|
* compact, with a label or as an icon-only square, rounded or pill-shaped,
|
|
6900
8014
|
* sized to its label or filling its parent's width, and optionally a
|
|
6901
8015
|
* `pressed` toggle or `currentStep` marker. Inside a
|
|
@@ -6903,9 +8017,9 @@ interface ButtonOptions {
|
|
|
6903
8017
|
* Button for a dialog footer, a form, or a standalone action beside other
|
|
6904
8018
|
* content.
|
|
6905
8019
|
*/
|
|
6906
|
-
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;
|
|
8020
|
+
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;
|
|
6907
8021
|
|
|
6908
|
-
export { Button, type ButtonContent, type ButtonEmphasis, type ButtonLabel, type ButtonOptions, type ButtonProps, type ButtonRootAttributes, type ButtonShape, type ButtonSize, type ButtonTone, type ButtonType };
|
|
8022
|
+
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 };
|
|
6909
8023
|
```
|
|
6910
8024
|
|
|
6911
8025
|
## `@kerfjs/ui/split-button`
|
|
@@ -6986,6 +8100,12 @@ export { SplitButton, type SplitButtonProps, type SplitButtonShape, type SplitBu
|
|
|
6986
8100
|
|
|
6987
8101
|
```ts
|
|
6988
8102
|
import { SafeHtml } from 'kerfjs';
|
|
8103
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
8104
|
+
import { ButtonTone, ButtonEmphasis, ButtonSize } from './button.js';
|
|
8105
|
+
import './semantic-content-BbzjvSu9.js';
|
|
8106
|
+
import './badge.js';
|
|
8107
|
+
import './css-values.js';
|
|
8108
|
+
import './semantic-tone-CdW013KF.js';
|
|
6989
8109
|
|
|
6990
8110
|
interface FileInputProps {
|
|
6991
8111
|
/** Accepted types, as the native `accept` attribute (`.png,image/*`). */
|
|
@@ -6998,6 +8118,9 @@ interface FileInputProps {
|
|
|
6998
8118
|
pickerId?: string;
|
|
6999
8119
|
disabled?: boolean;
|
|
7000
8120
|
className?: string;
|
|
8121
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
8122
|
+
* editor node marker; the component's own markers stay protected. */
|
|
8123
|
+
rootAttributes?: RootDataAttributes;
|
|
7001
8124
|
}
|
|
7002
8125
|
interface FilePickerTriggerProps extends FileInputProps {
|
|
7003
8126
|
/** Visible trigger text, such as "Add". */
|
|
@@ -7006,6 +8129,17 @@ interface FilePickerTriggerProps extends FileInputProps {
|
|
|
7006
8129
|
accessibleLabel?: string;
|
|
7007
8130
|
/** Optional decorative leading icon, normally an unsized LucideIcon. */
|
|
7008
8131
|
icon?: SafeHtml;
|
|
8132
|
+
/**
|
|
8133
|
+
* Draw the trigger as a `Button` of this tone, so it matches the Buttons
|
|
8134
|
+
* beside it. Setting `tone`, `emphasis`, or `size` switches from the
|
|
8135
|
+
* compact link-toned trigger to the Button look (defaults `neutral`,
|
|
8136
|
+
* `primary`, `default`, as on Button); it stays a native file label.
|
|
8137
|
+
*/
|
|
8138
|
+
tone?: ButtonTone;
|
|
8139
|
+
/** The Button look's emphasis: `primary`, `secondary`, `plain`, or `link`. */
|
|
8140
|
+
emphasis?: ButtonEmphasis;
|
|
8141
|
+
/** The Button look's size: `default` (44px) or `compact`. */
|
|
8142
|
+
size?: ButtonSize;
|
|
7009
8143
|
}
|
|
7010
8144
|
interface FileDropZoneProps extends FileInputProps {
|
|
7011
8145
|
/** Primary copy, such as "Drop attachments here or browse". */
|
|
@@ -7025,10 +8159,11 @@ interface FileDropZoneProps extends FileInputProps {
|
|
|
7025
8159
|
dropScope?: string;
|
|
7026
8160
|
}
|
|
7027
8161
|
/**
|
|
7028
|
-
* A
|
|
7029
|
-
*
|
|
7030
|
-
*
|
|
7031
|
-
* `
|
|
8162
|
+
* A trigger that opens the native file chooser: a label around a visually
|
|
8163
|
+
* hidden `<input type="file">`, so a click or keyboard activation reaches the
|
|
8164
|
+
* input without script. It is a compact, link-toned trigger, or with `tone`,
|
|
8165
|
+
* `emphasis`, or `size` it looks like a `Button` of those settings. Report
|
|
8166
|
+
* choices with `wireFilePickers`.
|
|
7032
8167
|
*/
|
|
7033
8168
|
declare function FilePickerTrigger(props: FilePickerTriggerProps): SafeHtml;
|
|
7034
8169
|
/**
|
|
@@ -7046,6 +8181,7 @@ export { FileDropZone, type FileDropZoneProps, FilePickerTrigger, type FilePicke
|
|
|
7046
8181
|
```ts
|
|
7047
8182
|
import * as kerfjs from 'kerfjs';
|
|
7048
8183
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
8184
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
7049
8185
|
|
|
7050
8186
|
/** The viewport corner a CornerStatus occupies, in logical (RTL-aware) terms. */
|
|
7051
8187
|
type CornerStatusPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
@@ -7068,6 +8204,9 @@ interface CornerStatusProps {
|
|
|
7068
8204
|
className?: string;
|
|
7069
8205
|
/** Native named-slot assignment when composed inside a web component. */
|
|
7070
8206
|
slot?: string;
|
|
8207
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
8208
|
+
* editor node marker; the component's own markers stay protected. */
|
|
8209
|
+
rootAttributes?: RootDataAttributes;
|
|
7071
8210
|
}
|
|
7072
8211
|
/**
|
|
7073
8212
|
* A non-dismissible status surface pinned to a viewport corner — "Loading…",
|
|
@@ -7077,7 +8216,7 @@ interface CornerStatusProps {
|
|
|
7077
8216
|
* its own; the composed `StateBanner` is the polite live region. Use a toast
|
|
7078
8217
|
* for transient, dismissible confirmation instead.
|
|
7079
8218
|
*/
|
|
7080
|
-
declare function CornerStatus({ id, children, placement, presentation, className, slot, }: CornerStatusProps): kerfjs.SafeHtml;
|
|
8219
|
+
declare function CornerStatus({ id, children, placement, presentation, className, slot, rootAttributes, }: CornerStatusProps): kerfjs.SafeHtml;
|
|
7081
8220
|
|
|
7082
8221
|
export { CornerStatus, type CornerStatusPlacement, type CornerStatusPresentation, type CornerStatusProps };
|
|
7083
8222
|
```
|
|
@@ -7086,6 +8225,7 @@ export { CornerStatus, type CornerStatusPlacement, type CornerStatusPresentation
|
|
|
7086
8225
|
|
|
7087
8226
|
```ts
|
|
7088
8227
|
import * as kerfjs from 'kerfjs';
|
|
8228
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
7089
8229
|
import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
|
|
7090
8230
|
|
|
7091
8231
|
interface EdgeActivityIndicatorProps {
|
|
@@ -7101,6 +8241,9 @@ interface EdgeActivityIndicatorProps {
|
|
|
7101
8241
|
/** Clear the device's top safe area (default) or sit at the very edge. */
|
|
7102
8242
|
inset?: 'safe-area' | 'none';
|
|
7103
8243
|
className?: string;
|
|
8244
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
8245
|
+
* editor node marker; the component's own markers stay protected. */
|
|
8246
|
+
rootAttributes?: RootDataAttributes;
|
|
7104
8247
|
}
|
|
7105
8248
|
/**
|
|
7106
8249
|
* A layout-free activity strip pinned to the top edge of the viewport: a row
|
|
@@ -7110,7 +8253,7 @@ interface EdgeActivityIndicatorProps {
|
|
|
7110
8253
|
* Kerf owns the motion: it scales in from the edge and, under reduced motion,
|
|
7111
8254
|
* only fades.
|
|
7112
8255
|
*/
|
|
7113
|
-
declare function EdgeActivityIndicator({ busy, message, tone, inset, className, }: EdgeActivityIndicatorProps): kerfjs.SafeHtml;
|
|
8256
|
+
declare function EdgeActivityIndicator({ busy, message, tone, inset, className, rootAttributes, }: EdgeActivityIndicatorProps): kerfjs.SafeHtml;
|
|
7114
8257
|
|
|
7115
8258
|
export { EdgeActivityIndicator, type EdgeActivityIndicatorProps };
|
|
7116
8259
|
```
|
|
@@ -7220,3 +8363,81 @@ declare function ProgressRing({ value, max, label, valueText, tone, size, id, ro
|
|
|
7220
8363
|
|
|
7221
8364
|
export { ProgressRing, type ProgressRingProps, type ProgressRingRootAttributes, type ProgressRingSize, ProgressTone };
|
|
7222
8365
|
```
|
|
8366
|
+
|
|
8367
|
+
## `@kerfjs/ui/gauge`
|
|
8368
|
+
|
|
8369
|
+
```ts
|
|
8370
|
+
import * as kerfjs from 'kerfjs';
|
|
8371
|
+
import { CssLength, CssColor } from './css-values.js';
|
|
8372
|
+
import { ProgressTone } from './progress-bar.js';
|
|
8373
|
+
|
|
8374
|
+
/**
|
|
8375
|
+
* `full` draws ticks with the value and unit inside the dial, for a stats
|
|
8376
|
+
* tile or a standby display; `bare` draws only the arc, fill, and needle, for
|
|
8377
|
+
* chip height, and carries the value in its accessible name and hover title.
|
|
8378
|
+
*/
|
|
8379
|
+
type GaugeVariant = 'full' | 'bare';
|
|
8380
|
+
/**
|
|
8381
|
+
* A consumer palette, such as dark red on black for a night display. Each
|
|
8382
|
+
* color is a typed `CssColor` from `uiColor()`, `colorVar()`, or
|
|
8383
|
+
* `fillColor()`; an omitted one keeps the tone's color.
|
|
8384
|
+
*/
|
|
8385
|
+
interface GaugeColors {
|
|
8386
|
+
/** The unfilled arc. */
|
|
8387
|
+
track?: CssColor;
|
|
8388
|
+
/** The filled arc from zero to the value. */
|
|
8389
|
+
fill?: CssColor;
|
|
8390
|
+
/** The needle and its hub. */
|
|
8391
|
+
needle?: CssColor;
|
|
8392
|
+
/** The value, unit, and ticks of a `full` gauge. */
|
|
8393
|
+
text?: CssColor;
|
|
8394
|
+
}
|
|
8395
|
+
/**
|
|
8396
|
+
* Application `data-*` identity on the Gauge root, such as `data-key`; its
|
|
8397
|
+
* own configuration attributes stay protected.
|
|
8398
|
+
*/
|
|
8399
|
+
type GaugeRootAttributes = Readonly<Record<`data-${string}`, string | undefined>>;
|
|
8400
|
+
interface GaugeProps {
|
|
8401
|
+
/**
|
|
8402
|
+
* The reading, zero or more. A value above `max` pins the needle and fill
|
|
8403
|
+
* at the end of the scale while the text still shows the real value.
|
|
8404
|
+
*/
|
|
8405
|
+
value: number;
|
|
8406
|
+
/** The end of the scale, such as the highest expected rate. */
|
|
8407
|
+
max: number;
|
|
8408
|
+
/** The gauge's accessible name, such as "Tokens per minute". */
|
|
8409
|
+
label: string;
|
|
8410
|
+
/**
|
|
8411
|
+
* The value as shown in a `full` dial and spoken, such as "1.2k"; defaults
|
|
8412
|
+
* to the value rounded to one decimal place.
|
|
8413
|
+
*/
|
|
8414
|
+
valueText?: string;
|
|
8415
|
+
/** The unit under the value in a `full` dial, such as "tok/min". */
|
|
8416
|
+
unit?: string;
|
|
8417
|
+
variant?: GaugeVariant;
|
|
8418
|
+
tone?: ProgressTone;
|
|
8419
|
+
/**
|
|
8420
|
+
* The gauge's width as a typed `CssLength`; its height follows the dial.
|
|
8421
|
+
* Defaults to 88px for `full` and 40px for `bare`.
|
|
8422
|
+
*/
|
|
8423
|
+
size?: CssLength;
|
|
8424
|
+
colors?: GaugeColors;
|
|
8425
|
+
id?: string;
|
|
8426
|
+
rootAttributes?: GaugeRootAttributes;
|
|
8427
|
+
className?: string;
|
|
8428
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
8429
|
+
slot?: string;
|
|
8430
|
+
}
|
|
8431
|
+
/**
|
|
8432
|
+
* A speedometer-style dial for a reading on a scale that is not progress,
|
|
8433
|
+
* such as a live rate: a track arc, a fill from zero to the value, and a
|
|
8434
|
+
* needle, scaled to `max`. `full` adds ticks and the value and unit inside
|
|
8435
|
+
* the dial; `bare` is the arc, fill, and needle alone, for chip height. It is
|
|
8436
|
+
* a `role="meter"` named by `label`, with the value and unit as
|
|
8437
|
+
* `aria-valuetext`. The needle and fill transition only when the value
|
|
8438
|
+
* changes, and hold still under reduced motion.
|
|
8439
|
+
*/
|
|
8440
|
+
declare function Gauge({ value, max, label, valueText, unit, variant, tone, size, colors, id, rootAttributes, className, slot, }: GaugeProps): kerfjs.SafeHtml;
|
|
8441
|
+
|
|
8442
|
+
export { Gauge, type GaugeColors, type GaugeProps, type GaugeRootAttributes, type GaugeVariant, ProgressTone };
|
|
8443
|
+
```
|