@kerfjs/ui 5.0.0-beta.122 → 5.0.0-beta.124
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -5
- package/ai/application-ui-diagnostic-ids-v1.json +25 -1
- package/ai/application-ui-profile-sync.cjs +16 -8
- package/ai/application-ui-profile.d.ts +2 -0
- package/ai/application-ui-profile.defaults.json +6 -2
- package/ai/application-ui-profile.mjs +16 -8
- package/ai/application-ui-profile.schema.json +133 -38
- package/ai/component-catalog.json +1501 -218
- package/ai/component-catalog.schema.json +19 -0
- package/ai/component-composition-rules.json +18 -2
- package/ai/component-composition.d.ts +13 -0
- package/ai/component-composition.json +684 -27
- package/ai/component-composition.schema.json +58 -0
- package/ai/component-props-overlay.json +952 -0
- package/ai/component-props-overlay.schema.json +68 -0
- package/ai/component-props.json +29624 -0
- package/ai/component-props.schema.json +401 -0
- package/ai/components/README.md +12 -5
- package/ai/components/application-tabs.md +2 -2
- package/ai/components/backdrop-image.md +2 -1
- package/ai/components/button.md +12 -6
- package/ai/components/checkbox-group.md +2 -0
- package/ai/components/checkbox.md +2 -0
- package/ai/components/chip.md +2 -0
- package/ai/components/choice-chips.md +5 -1
- package/ai/components/color-field.md +2 -0
- package/ai/components/color-picker.md +2 -0
- package/ai/components/color-swatches.md +2 -0
- package/ai/components/column-explorer.md +89 -0
- package/ai/components/column-track.md +3 -2
- package/ai/components/combobox.md +2 -0
- package/ai/components/content-item.md +7 -2
- package/ai/components/disclosure.md +2 -0
- package/ai/components/file-picker.md +5 -2
- package/ai/components/form.md +86 -0
- package/ai/components/foundation.md +1 -1
- package/ai/components/list-action-row.md +2 -0
- package/ai/components/list-detail-dialog.md +2 -0
- package/ai/components/list-header.md +2 -0
- package/ai/components/list-item.md +4 -0
- package/ai/components/list.md +6 -2
- package/ai/components/message-composer.md +3 -1
- package/ai/components/nav-stack.md +2 -0
- package/ai/components/paged-view.md +89 -0
- package/ai/components/pane.md +4 -1
- package/ai/components/popup-menu.md +5 -2
- package/ai/components/radio-group.md +2 -0
- package/ai/components/recipe-composer-form.md +2 -2
- package/ai/components/scroll-effect.md +84 -0
- package/ai/components/search-field.md +2 -0
- package/ai/components/segmented-control.md +2 -0
- package/ai/components/select.md +4 -0
- package/ai/components/sized-region.md +86 -0
- package/ai/components/slider.md +2 -0
- package/ai/components/split-button.md +3 -1
- package/ai/components/split-view.md +1 -1
- package/ai/components/state-banner.md +2 -0
- package/ai/components/summary-row.md +14 -8
- package/ai/components/surface-scaffold.md +5 -3
- package/ai/components/switch.md +2 -0
- package/ai/components/tab-bar.md +5 -2
- package/ai/components/tab-navigator.md +2 -0
- package/ai/components/tab-panel.md +84 -0
- package/ai/components/tabs.md +9 -6
- package/ai/components/tag-field.md +2 -0
- package/ai/components/text-field.md +2 -0
- package/ai/components/text.md +3 -0
- package/ai/components/toolbar-control-group.md +10 -3
- package/ai/components/toolbar-text.md +2 -0
- package/ai/components/toolbar.md +4 -3
- package/ai/components/tree-list.md +95 -0
- package/ai/components/wa-accordion-item.md +2 -0
- package/ai/components/wa-breadcrumb-item.md +2 -0
- package/ai/components/wa-button.md +2 -0
- package/ai/components/wa-carousel.md +2 -0
- package/ai/components/wa-checkbox.md +2 -0
- package/ai/components/wa-color-picker.md +2 -0
- package/ai/components/wa-comparison.md +2 -0
- package/ai/components/wa-copy-button.md +2 -0
- package/ai/components/wa-details.md +2 -0
- package/ai/components/wa-dialog.md +2 -0
- package/ai/components/wa-drawer.md +2 -0
- package/ai/components/wa-dropdown-item.md +2 -0
- package/ai/components/wa-input.md +2 -0
- package/ai/components/wa-known-date.md +2 -0
- package/ai/components/wa-number-input.md +2 -0
- package/ai/components/wa-otp-input.md +2 -0
- package/ai/components/wa-pagination.md +2 -0
- package/ai/components/wa-radio.md +2 -0
- package/ai/components/wa-rating.md +2 -0
- package/ai/components/wa-select.md +2 -0
- package/ai/components/wa-slider.md +2 -0
- package/ai/components/wa-switch.md +2 -0
- package/ai/components/wa-tab-panel.md +5 -5
- package/ai/components/wa-tab.md +2 -0
- package/ai/components/wa-tag-input.md +2 -0
- package/ai/components/wa-textarea.md +2 -0
- package/ai/components/wa-time-input.md +2 -0
- package/ai/components/wa-tree-item.md +12 -5
- package/ai/components/wa-tree.md +10 -5
- package/ai/components/wa-zoomable-frame.md +2 -0
- package/ai/components/workbench-dialog.md +2 -0
- package/ai/public-api-signatures-v1.md +1251 -132
- package/ai/skill.md +107 -40
- package/ai/view-document.schema.json +360 -0
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/analyzer/index.mjs +89 -1
- package/dist/anchor-name-BZ1rpxaw.d.ts +4 -0
- package/dist/backdrop-image.d.ts +6 -2
- package/dist/backdrop-image.js +2 -1
- package/dist/badge.js +1 -1
- package/dist/browser/backdrop-image.js +1 -0
- package/dist/browser/catalog.js +1 -1
- package/dist/browser/collapsible-panel.js +1 -0
- package/dist/browser/column-explorer.js +9 -0
- package/dist/browser/content-item.js +1 -0
- package/dist/browser/editor.js +45 -0
- package/dist/browser/form.js +3 -0
- package/dist/browser/list-detail-dialog.js +1 -0
- package/dist/browser/nav-stack.js +1 -0
- package/dist/browser/paged-view.js +3 -0
- package/dist/browser/scroll-effect.js +3 -0
- package/dist/browser/sized-region.js +3 -0
- package/dist/browser/split-view.js +1 -0
- package/dist/browser/tab-panel.js +3 -0
- package/dist/browser/toolbar-control-group.js +1 -0
- package/dist/browser/tree-list.js +7 -0
- package/dist/browser/workbench-dialog.js +1 -0
- package/dist/browser/workbench.js +1 -0
- package/dist/button.d.ts +54 -13
- package/dist/button.js +2 -1
- package/dist/catalog-resources.d.ts +3 -2
- package/dist/catalog.d.ts +3 -2
- package/dist/catalog.js +21 -17
- package/dist/catalog.js.map +1 -1
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip.js +1 -1
- package/dist/choice-chips.d.ts +21 -2
- package/dist/choice-chips.js +2 -1
- package/dist/{chunk-3WWX2O4G.js → chunk-2E7S5C4D.js} +5 -46
- package/dist/chunk-2E7S5C4D.js.map +1 -0
- package/dist/{chunk-QYMJHS4K.js → chunk-34FWYJX6.js} +9 -3
- package/dist/chunk-34FWYJX6.js.map +1 -0
- package/dist/{chunk-OUCHU7JB.js → chunk-3JOEJT2Z.js} +7 -7
- package/dist/{chunk-OUCHU7JB.js.map → chunk-3JOEJT2Z.js.map} +1 -1
- package/dist/chunk-3S3WXAZ5.js +207 -0
- package/dist/chunk-3S3WXAZ5.js.map +1 -0
- package/dist/{chunk-AN5IWMTM.js → chunk-3TBMGGTA.js} +6 -3
- package/dist/chunk-3TBMGGTA.js.map +1 -0
- package/dist/{chunk-3Z7N2NAZ.js → chunk-3XSY5LAB.js} +4 -4
- package/dist/{chunk-3Z7N2NAZ.js.map → chunk-3XSY5LAB.js.map} +1 -1
- package/dist/chunk-44AOBT2F.js +16 -0
- package/dist/chunk-44AOBT2F.js.map +1 -0
- package/dist/{chunk-7AK5I7U7.js → chunk-4IXG6XCT.js} +18 -3
- package/dist/chunk-4IXG6XCT.js.map +1 -0
- package/dist/chunk-4K7XXSOX.js +21 -0
- package/dist/chunk-4K7XXSOX.js.map +1 -0
- package/dist/{chunk-LZUUUHNH.js → chunk-4Z4QSTRF.js} +20 -3
- package/dist/chunk-4Z4QSTRF.js.map +1 -0
- package/dist/{chunk-QH5KOFNS.js → chunk-5KWXM5O7.js} +15 -3
- package/dist/chunk-5KWXM5O7.js.map +1 -0
- package/dist/{chunk-EYDXFOSH.js → chunk-5SFHBYEY.js} +2 -2
- package/dist/chunk-5SFHBYEY.js.map +1 -0
- package/dist/{chunk-HU5IHXCI.js → chunk-6BXPN5SC.js} +3 -3
- package/dist/{chunk-HU5IHXCI.js.map → chunk-6BXPN5SC.js.map} +1 -1
- package/dist/{chunk-6VVIW7VB.js → chunk-73LC3JAL.js} +13 -4
- package/dist/chunk-73LC3JAL.js.map +1 -0
- package/dist/{chunk-IO27YTL3.js → chunk-76VCWWUA.js} +2 -2
- package/dist/{chunk-IO27YTL3.js.map → chunk-76VCWWUA.js.map} +1 -1
- package/dist/{chunk-ETFP7HAR.js → chunk-7AUZG5EW.js} +13 -4
- package/dist/chunk-7AUZG5EW.js.map +1 -0
- package/dist/{chunk-3V4OCDTL.js → chunk-7DIWVGGA.js} +2 -14
- package/dist/chunk-7DIWVGGA.js.map +1 -0
- package/dist/chunk-7KN5OQVN.js +157 -0
- package/dist/chunk-7KN5OQVN.js.map +1 -0
- package/dist/chunk-7QQ3HE47.js +17 -0
- package/dist/chunk-7QQ3HE47.js.map +1 -0
- package/dist/{chunk-HJWFHJ3Z.js → chunk-ADMWT7FX.js} +28 -82
- package/dist/chunk-ADMWT7FX.js.map +1 -0
- package/dist/{chunk-LMHN2TJL.js → chunk-BCHK33XL.js} +2 -2
- package/dist/{chunk-LMHN2TJL.js.map → chunk-BCHK33XL.js.map} +1 -1
- package/dist/chunk-BCO673YW.js +123 -0
- package/dist/chunk-BCO673YW.js.map +1 -0
- package/dist/{chunk-OQP3PFKQ.js → chunk-BZXA5SSA.js} +90 -33
- package/dist/chunk-BZXA5SSA.js.map +1 -0
- package/dist/{chunk-LTBVP6VN.js → chunk-C4FBYP2D.js} +2 -2
- package/dist/{chunk-LTBVP6VN.js.map → chunk-C4FBYP2D.js.map} +1 -1
- package/dist/{chunk-AMIHGFLP.js → chunk-CCPWJDRW.js} +4 -2
- package/dist/chunk-CCPWJDRW.js.map +1 -0
- package/dist/{chunk-S4Y3YTAI.js → chunk-CJAKN2KZ.js} +2 -2
- package/dist/{chunk-S4Y3YTAI.js.map → chunk-CJAKN2KZ.js.map} +1 -1
- package/dist/chunk-CKPI4WIN.js +58 -0
- package/dist/chunk-CKPI4WIN.js.map +1 -0
- package/dist/{chunk-HJXVVFBT.js → chunk-CMG4OZPV.js} +13 -2
- package/dist/chunk-CMG4OZPV.js.map +1 -0
- package/dist/{chunk-KH4KEMSP.js → chunk-COQI4OMZ.js} +1 -1
- package/dist/chunk-COQI4OMZ.js.map +1 -0
- package/dist/{chunk-G3J7JDP6.js → chunk-CPTQABDQ.js} +10 -3
- package/dist/chunk-CPTQABDQ.js.map +1 -0
- package/dist/{chunk-TI2GV36S.js → chunk-CRHKWHTA.js} +4 -4
- package/dist/{chunk-TI2GV36S.js.map → chunk-CRHKWHTA.js.map} +1 -1
- package/dist/{chunk-3KFMLOTH.js → chunk-DBP3N6E5.js} +8 -5
- package/dist/chunk-DBP3N6E5.js.map +1 -0
- package/dist/chunk-DJ65XFVN.js +231 -0
- package/dist/chunk-DJ65XFVN.js.map +1 -0
- package/dist/chunk-DKPYHVIV.js +13 -0
- package/dist/chunk-DKPYHVIV.js.map +1 -0
- package/dist/{chunk-ITUQC4FW.js → chunk-DV6GE57V.js} +31 -3
- package/dist/chunk-DV6GE57V.js.map +1 -0
- package/dist/{chunk-S3ECMF23.js → chunk-E7Q6UNCB.js} +11 -3
- package/dist/chunk-E7Q6UNCB.js.map +1 -0
- package/dist/{chunk-C26Q6P4Q.js → chunk-E7ZRBMVQ.js} +3 -3
- package/dist/{chunk-C26Q6P4Q.js.map → chunk-E7ZRBMVQ.js.map} +1 -1
- package/dist/chunk-ECVTRAXN.js +37 -0
- package/dist/chunk-ECVTRAXN.js.map +1 -0
- package/dist/{chunk-EIET4QLK.js → chunk-EHR7R7YP.js} +14 -3
- package/dist/chunk-EHR7R7YP.js.map +1 -0
- package/dist/{chunk-5J6Z4BWY.js → chunk-EXGDKG7B.js} +127 -5
- package/dist/chunk-EXGDKG7B.js.map +1 -0
- package/dist/{chunk-7K6U6FCN.js → chunk-F34LHBQI.js} +47 -12
- package/dist/chunk-F34LHBQI.js.map +1 -0
- package/dist/{chunk-IIQ2XIMU.js → chunk-F3PZGFEA.js} +32 -11
- package/dist/chunk-F3PZGFEA.js.map +1 -0
- package/dist/{chunk-3OP66VXU.js → chunk-FJMABKKV.js} +5 -3
- package/dist/chunk-FJMABKKV.js.map +1 -0
- package/dist/{chunk-B53PS2LE.js → chunk-FNJA4S6J.js} +7 -3
- package/dist/chunk-FNJA4S6J.js.map +1 -0
- package/dist/{chunk-YMUIQRWK.js → chunk-FQETQ7CM.js} +6 -2
- package/dist/chunk-FQETQ7CM.js.map +1 -0
- package/dist/{chunk-KCS6NJ3O.js → chunk-FR5G77K5.js} +2 -2
- package/dist/{chunk-KCS6NJ3O.js.map → chunk-FR5G77K5.js.map} +1 -1
- package/dist/chunk-GVII4JSD.js +153 -0
- package/dist/chunk-GVII4JSD.js.map +1 -0
- package/dist/chunk-HPOXLOVC.js +184 -0
- package/dist/chunk-HPOXLOVC.js.map +1 -0
- package/dist/{chunk-EKHDLBRP.js → chunk-JAC6AVZN.js} +21 -3
- package/dist/chunk-JAC6AVZN.js.map +1 -0
- package/dist/{chunk-CTQUDCY5.js → chunk-JG4ONAOI.js} +4 -2
- package/dist/{chunk-CTQUDCY5.js.map → chunk-JG4ONAOI.js.map} +1 -1
- package/dist/{chunk-K67XBCHG.js → chunk-JHUEYWWI.js} +6 -4
- package/dist/chunk-JHUEYWWI.js.map +1 -0
- package/dist/{chunk-GS2QD3N7.js → chunk-JZZVWTUB.js} +2 -2
- package/dist/{chunk-GS2QD3N7.js.map → chunk-JZZVWTUB.js.map} +1 -1
- package/dist/{chunk-XRZSK2WC.js → chunk-KACJOE2N.js} +16 -5
- package/dist/chunk-KACJOE2N.js.map +1 -0
- package/dist/chunk-KELWWCMX.js +426 -0
- package/dist/chunk-KELWWCMX.js.map +1 -0
- package/dist/{chunk-KDQZ3E5C.js → chunk-KLR3DCHH.js} +58 -4
- package/dist/chunk-KLR3DCHH.js.map +1 -0
- package/dist/{chunk-S3DCRI2M.js → chunk-LD6A6PYB.js} +43 -5
- package/dist/chunk-LD6A6PYB.js.map +1 -0
- package/dist/{chunk-BKUMG2KB.js → chunk-LET362AM.js} +13 -3
- package/dist/chunk-LET362AM.js.map +1 -0
- package/dist/{chunk-C2ZO3OZZ.js → chunk-LOW7J7SE.js} +4 -4
- package/dist/chunk-LOW7J7SE.js.map +1 -0
- package/dist/{chunk-ITENVZ6Q.js → chunk-M72QLDUO.js} +13 -4
- package/dist/chunk-M72QLDUO.js.map +1 -0
- package/dist/{chunk-OHPYT2BH.js → chunk-MLDO7WLA.js} +2 -2
- package/dist/{chunk-OHPYT2BH.js.map → chunk-MLDO7WLA.js.map} +1 -1
- package/dist/{chunk-D5RGM3XA.js → chunk-NA4LKVPX.js} +12 -2
- package/dist/chunk-NA4LKVPX.js.map +1 -0
- package/dist/chunk-NR3ZO4LK.js +67 -0
- package/dist/chunk-NR3ZO4LK.js.map +1 -0
- package/dist/{chunk-YPAQFBMN.js → chunk-NYNNNEAU.js} +44 -10
- package/dist/chunk-NYNNNEAU.js.map +1 -0
- package/dist/chunk-OKZTLRGG.js +34 -0
- package/dist/chunk-OKZTLRGG.js.map +1 -0
- package/dist/{chunk-ZX2QQJXD.js → chunk-PVKAIVKE.js} +95 -61
- package/dist/chunk-PVKAIVKE.js.map +1 -0
- package/dist/{chunk-Y6KT7ZTR.js → chunk-Q2CLQ3IJ.js} +21 -3
- package/dist/chunk-Q2CLQ3IJ.js.map +1 -0
- package/dist/{chunk-2J7XKAZX.js → chunk-Q2SLOMN6.js} +7 -6
- package/dist/chunk-Q2SLOMN6.js.map +1 -0
- package/dist/{chunk-S2XULQEK.js → chunk-Q5BPZPCO.js} +2 -2
- package/dist/{chunk-S2XULQEK.js.map → chunk-Q5BPZPCO.js.map} +1 -1
- package/dist/{chunk-BSNKDW4X.js → chunk-Q7RILH2D.js} +14 -9
- package/dist/chunk-Q7RILH2D.js.map +1 -0
- package/dist/chunk-QR7MGGOM.js +49 -0
- package/dist/chunk-QR7MGGOM.js.map +1 -0
- package/dist/{chunk-PS24PVR6.js → chunk-QXXLDY6I.js} +50 -10
- package/dist/chunk-QXXLDY6I.js.map +1 -0
- package/dist/chunk-QY77Q7RY.js +129 -0
- package/dist/chunk-QY77Q7RY.js.map +1 -0
- package/dist/{chunk-4OV272LF.js → chunk-R6FIXYAE.js} +4 -4
- package/dist/{chunk-4OV272LF.js.map → chunk-R6FIXYAE.js.map} +1 -1
- package/dist/{chunk-N2K3QGSX.js → chunk-RGB4DPMN.js} +16 -3
- package/dist/chunk-RGB4DPMN.js.map +1 -0
- package/dist/{chunk-TKNVL53O.js → chunk-RPJOLDSR.js} +11 -3
- package/dist/chunk-RPJOLDSR.js.map +1 -0
- package/dist/chunk-SBCXWGNP.js +256 -0
- package/dist/chunk-SBCXWGNP.js.map +1 -0
- package/dist/{chunk-WPNIKZMJ.js → chunk-SJBMKA4X.js} +2 -2
- package/dist/{chunk-WPNIKZMJ.js.map → chunk-SJBMKA4X.js.map} +1 -1
- package/dist/{chunk-RMWNO6BA.js → chunk-SNUDT6AX.js} +2 -2
- package/dist/{chunk-RMWNO6BA.js.map → chunk-SNUDT6AX.js.map} +1 -1
- package/dist/{chunk-NR6O74ST.js → chunk-SPI6VMIY.js} +14 -10
- package/dist/chunk-SPI6VMIY.js.map +1 -0
- package/dist/{chunk-ZN7KUMPY.js → chunk-SWXWLSUD.js} +17 -3
- package/dist/chunk-SWXWLSUD.js.map +1 -0
- package/dist/chunk-TBVSPSGX.js +14 -0
- package/dist/chunk-TBVSPSGX.js.map +1 -0
- package/dist/{chunk-UMNHJSIO.js → chunk-TPLVC5BE.js} +2 -2
- package/dist/{chunk-UMNHJSIO.js.map → chunk-TPLVC5BE.js.map} +1 -1
- package/dist/chunk-TRJS7M2H.js +39 -0
- package/dist/chunk-TRJS7M2H.js.map +1 -0
- package/dist/chunk-TXBNPEIJ.js +31 -0
- package/dist/chunk-TXBNPEIJ.js.map +1 -0
- package/dist/{chunk-VEME3D7K.js → chunk-UD5KHQOH.js} +27 -3
- package/dist/chunk-UD5KHQOH.js.map +1 -0
- package/dist/{chunk-5CLMV5YU.js → chunk-UPHPFKAD.js} +54 -18
- package/dist/chunk-UPHPFKAD.js.map +1 -0
- package/dist/{chunk-WVS6CUCT.js → chunk-V3IXAI4L.js} +6 -2
- package/dist/chunk-V3IXAI4L.js.map +1 -0
- package/dist/{chunk-CVD5IZGB.js → chunk-VBXKYT4O.js} +7 -2
- package/dist/chunk-VBXKYT4O.js.map +1 -0
- package/dist/{chunk-OZ6X76G5.js → chunk-VNT4MXR5.js} +4 -3
- package/dist/chunk-VNT4MXR5.js.map +1 -0
- package/dist/{chunk-K57NINLH.js → chunk-VPDSPD76.js} +54 -1
- package/dist/chunk-VPDSPD76.js.map +1 -0
- package/dist/chunk-VX3YF2UD.js +77 -0
- package/dist/chunk-VX3YF2UD.js.map +1 -0
- package/dist/chunk-WCMGPAY2.js +103 -0
- package/dist/chunk-WCMGPAY2.js.map +1 -0
- package/dist/{chunk-DZJ4GBSP.js → chunk-WSPXSWFG.js} +21 -4
- package/dist/chunk-WSPXSWFG.js.map +1 -0
- package/dist/{chunk-NB6POCFH.js → chunk-WVQDIOD7.js} +56 -11
- package/dist/chunk-WVQDIOD7.js.map +1 -0
- package/dist/{chunk-F653O57X.js → chunk-Y4VR6VNM.js} +6 -3
- package/dist/chunk-Y4VR6VNM.js.map +1 -0
- package/dist/{chunk-CEJ5FK6G.js → chunk-YHRJNKD5.js} +2 -2
- package/dist/{chunk-CEJ5FK6G.js.map → chunk-YHRJNKD5.js.map} +1 -1
- package/dist/{chunk-XWNXGFX3.js → chunk-Z3T24FX3.js} +2 -2
- package/dist/{chunk-XWNXGFX3.js.map → chunk-Z3T24FX3.js.map} +1 -1
- package/dist/collapsible-panel.d.ts +10 -3
- package/dist/collapsible-panel.js +45 -5
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/color-field.js +2 -2
- package/dist/color-picker.js +1 -1
- package/dist/color-swatches.js +1 -1
- package/dist/column-explorer.d.ts +67 -0
- package/dist/column-explorer.js +140 -0
- package/dist/column-explorer.js.map +1 -0
- package/dist/column-track.d.ts +12 -3
- package/dist/column-track.js +1 -1
- package/dist/combobox.d.ts +5 -1
- package/dist/combobox.js +2 -1
- package/dist/content-item.d.ts +14 -4
- package/dist/content-item.js +2 -1
- package/dist/content-swap.d.ts +5 -1
- package/dist/content-swap.js +2 -1
- package/dist/corner-status.d.ts +5 -1
- package/dist/corner-status.js +2 -1
- package/dist/device-class.js +1 -101
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +5 -1
- package/dist/disclosure-arrow.js +2 -1
- package/dist/disclosure.js +2 -2
- package/dist/edge-activity-indicator.d.ts +5 -1
- package/dist/edge-activity-indicator.js +2 -1
- package/dist/editor.d.ts +344 -0
- package/dist/editor.js +10076 -0
- package/dist/editor.js.map +1 -0
- package/dist/empty-state.d.ts +5 -1
- package/dist/empty-state.js +2 -1
- package/dist/{extension-attributes-mu8MFUl0.d.ts → extension-attributes-IJ4decoa.d.ts} +7 -1
- package/dist/file-picker.d.ts +25 -4
- package/dist/file-picker.js +2 -1
- package/dist/floating-toolbar.d.ts +5 -1
- package/dist/floating-toolbar.js +2 -1
- package/dist/form.d.ts +45 -0
- package/dist/form.js +4 -0
- package/dist/form.js.map +1 -0
- package/dist/framed-list.js +1 -1
- package/dist/grid.js +1 -1
- package/dist/index.d.ts +14 -7
- package/dist/index.js +82 -70
- package/dist/list-action-row.d.ts +1 -1
- package/dist/list-action-row.js +2 -1
- package/dist/list-detail-dialog.d.ts +10 -3
- package/dist/list-detail-dialog.js +15 -11
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +11 -3
- package/dist/list-header.js +1 -1
- package/dist/list-inset-control.d.ts +5 -1
- package/dist/list-inset-control.js +2 -1
- package/dist/list-inset-text.js +1 -1
- package/dist/list-item.js +3 -1
- package/dist/list.d.ts +130 -11
- package/dist/list.js +1 -1
- package/dist/loading-spinner.d.ts +5 -1
- package/dist/loading-spinner.js +2 -1
- package/dist/lucide-icon.d.ts +5 -1
- package/dist/lucide-icon.js +2 -1
- package/dist/message-composer.js +1 -1
- package/dist/{nav-stack-CrZF95VO.d.ts → nav-stack-DwxpXxqJ.d.ts} +13 -2
- package/dist/nav-stack.d.ts +3 -2
- package/dist/nav-stack.js +4 -1
- package/dist/paged-view.d.ts +47 -0
- package/dist/paged-view.js +86 -0
- package/dist/paged-view.js.map +1 -0
- package/dist/pane.d.ts +42 -5
- package/dist/pane.js +2 -1
- package/dist/popup-menu-register.js +1 -1
- package/dist/popup-menu.d.ts +42 -2
- package/dist/popup-menu.js +2 -1
- package/dist/progress-bar.js +1 -1
- package/dist/progress-ring.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/resizable-region.d.ts +5 -1
- package/dist/resizable-region.js +2 -1
- package/dist/row.d.ts +7 -2
- package/dist/row.js +1 -1
- package/dist/scroll-effect.d.ts +86 -0
- package/dist/scroll-effect.js +5 -0
- package/dist/scroll-effect.js.map +1 -0
- package/dist/{search-field-CrGTN5sa.d.ts → search-field-5lNIszda.d.ts} +5 -1
- package/dist/search-field-model.d.ts +2 -1
- package/dist/search-field.d.ts +2 -1
- package/dist/search-field.js +2 -1
- package/dist/segmented-control.d.ts +5 -1
- package/dist/segmented-control.js +2 -1
- package/dist/select-register.js +9 -2
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +22 -1
- package/dist/select.js +1 -1
- package/dist/sized-region.d.ts +44 -0
- package/dist/sized-region.js +4 -0
- package/dist/sized-region.js.map +1 -0
- package/dist/skeleton.d.ts +5 -1
- package/dist/skeleton.js +2 -1
- package/dist/slider.js +1 -1
- package/dist/spacer.d.ts +5 -1
- package/dist/spacer.js +2 -1
- package/dist/split-button.js +1 -1
- package/dist/split-view.d.ts +7 -3
- package/dist/split-view.js +4 -1
- package/dist/state-banner.d.ts +7 -0
- package/dist/state-banner.js +1 -1
- package/dist/styles/backdrop-image.css +136 -70
- package/dist/styles/badge.css +31 -0
- package/dist/styles/button.css +103 -0
- package/dist/styles/choice-chips.css +45 -0
- package/dist/styles/column-explorer.css +6 -0
- package/dist/styles/components/actions/button/button.css +103 -0
- package/dist/styles/components/actions/popup-menu/popup-menu.css +154 -1
- package/dist/styles/components/actions/toolbar/toolbar.css +19 -11
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +38 -200
- package/dist/styles/components/collections/column-explorer/column-explorer.css +6 -0
- package/dist/styles/components/collections/list/list.css +6 -0
- package/dist/styles/components/collections/list-header/list-header.css +11 -25
- package/dist/styles/components/collections/list-item/list-item.css +68 -2
- package/dist/styles/components/collections/summary-row/summary-row.css +39 -6
- package/dist/styles/components/collections/tree-list/tree-list.css +7 -0
- package/dist/styles/components/data-display/value-table/value-table.css +1 -1
- package/dist/styles/components/feedback/badge/badge.css +31 -0
- package/dist/styles/components/feedback/state-banner/state-banner.css +12 -7
- package/dist/styles/components/forms/choice-chips/choice-chips.css +45 -0
- package/dist/styles/components/forms/file-picker/file-picker.css +13 -2
- package/dist/styles/components/forms/form/form.css +6 -0
- package/dist/styles/components/forms/select/select.css +85 -2
- package/dist/styles/components/forms/text-field/text-field.css +44 -0
- package/dist/styles/components/layout/pane/pane.css +16 -0
- package/dist/styles/components/layout/resizable-region/resizable-region.css +0 -10
- package/dist/styles/components/layout/sized-region/sized-region.css +22 -0
- package/dist/styles/components/layout/workbench/workbench.css +0 -21
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +2 -0
- package/dist/styles/components/navigation/paged-view/paged-view.css +160 -0
- package/dist/styles/components/navigation/tab-bar/tab-bar.css +24 -17
- package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +111 -60
- package/dist/styles/components/navigation/tab-panel/tab-panel.css +7 -0
- package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +14 -70
- package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +121 -0
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +77 -29
- package/dist/styles/components/typography/text/text.css +4 -4
- package/dist/styles/content-item.css +551 -3
- package/dist/styles/document.css +1 -6
- package/dist/styles/editor/editor.css +530 -0
- package/dist/styles/editor.css +4 -0
- package/dist/styles/file-picker.css +13 -2
- package/dist/styles/form.css +6 -0
- package/dist/styles/foundation.css +55 -1
- package/dist/styles/list-header.css +11 -25
- package/dist/styles/list-item.css +68 -2
- package/dist/styles/list.css +6 -0
- package/dist/styles/nav-stack.css +2 -0
- package/dist/styles/overlay-sheet.css +7 -7
- package/dist/styles/paged-view.css +160 -0
- package/dist/styles/pane.css +16 -0
- package/dist/styles/popup-menu.css +154 -1
- package/dist/styles/resizable-region.css +0 -10
- package/dist/styles/scroll-effect.css +121 -0
- package/dist/styles/select.css +85 -2
- package/dist/styles/sized-region.css +22 -0
- package/dist/styles/state-banner.css +12 -7
- package/dist/styles/styles.css +11 -0
- package/dist/styles/summary-row.css +39 -6
- package/dist/styles/surface-scaffold.css +77 -29
- package/dist/styles/tab-bar-item.css +111 -60
- package/dist/styles/tab-bar.css +24 -17
- package/dist/styles/tab-panel.css +7 -0
- package/dist/styles/text-field.css +44 -0
- package/dist/styles/text.css +4 -4
- package/dist/styles/toolbar-control-group.css +38 -200
- package/dist/styles/toolbar.css +19 -11
- package/dist/styles/tree-list.css +7 -0
- package/dist/styles/value-table.css +1 -1
- package/dist/styles/webawesome.css +350 -6
- package/dist/styles/workbench.css +0 -21
- package/dist/summary-row.d.ts +9 -1
- package/dist/summary-row.js +1 -1
- package/dist/sunken-panel.d.ts +5 -1
- package/dist/sunken-panel.js +2 -1
- package/dist/surface-scaffold-register.js +1 -1
- package/dist/surface-scaffold.d.ts +37 -6
- package/dist/surface-scaffold.js +3 -2
- package/dist/switch.js +1 -1
- package/dist/tab-bar-item.d.ts +9 -5
- package/dist/tab-bar-item.js +1 -1
- package/dist/tab-bar.d.ts +16 -3
- package/dist/tab-bar.js +2 -1
- package/dist/tab-navigator.d.ts +25 -3
- package/dist/tab-navigator.js +42 -19
- package/dist/tab-navigator.js.map +1 -1
- package/dist/tab-panel.d.ts +35 -0
- package/dist/tab-panel.js +4 -0
- package/dist/tab-panel.js.map +1 -0
- package/dist/tag-field.d.ts +5 -1
- package/dist/tag-field.js +2 -1
- package/dist/text-field.d.ts +22 -4
- package/dist/text-field.js +1 -1
- package/dist/text.d.ts +37 -5
- package/dist/text.js +2 -1
- package/dist/toolbar-control-group.d.ts +83 -3
- package/dist/toolbar-control-group.js +4 -1
- package/dist/toolbar-text.d.ts +9 -1
- package/dist/toolbar-text.js +2 -1
- package/dist/toolbar.d.ts +6 -1
- package/dist/toolbar.js +2 -1
- package/dist/tree-list.d.ts +42 -0
- package/dist/tree-list.js +12 -0
- package/dist/tree-list.js.map +1 -0
- package/dist/tree-rows-eHnnGLGM.d.ts +65 -0
- package/dist/value-preview.d.ts +5 -1
- package/dist/value-preview.js +2 -1
- package/dist/value-table.d.ts +9 -2
- package/dist/value-table.js +2 -1
- package/dist/wire-catalog.d.ts +3 -2
- package/dist/wire-catalog.js +4 -3
- package/dist/wire-catalog.js.map +1 -1
- package/dist/wire-choice-chips.d.ts +3 -1
- package/dist/wire-choice-chips.js +1 -1
- package/dist/wire-color-fields.js +2 -73
- package/dist/wire-color-fields.js.map +1 -1
- package/dist/wire-color-pickers.js +1 -1
- package/dist/wire-column-explorer.d.ts +13 -0
- package/dist/wire-column-explorer.js +94 -0
- package/dist/wire-column-explorer.js.map +1 -0
- package/dist/wire-content-items.d.ts +10 -1
- package/dist/wire-content-items.js +1 -293
- package/dist/wire-content-items.js.map +1 -1
- package/dist/wire-forms.d.ts +14 -0
- package/dist/wire-forms.js +3 -0
- package/dist/wire-forms.js.map +1 -0
- package/dist/wire-nav-stack.js +1 -423
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-paged-views.d.ts +27 -0
- package/dist/wire-paged-views.js +186 -0
- package/dist/wire-paged-views.js.map +1 -0
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.js +1 -1
- package/dist/wire-search-fields.d.ts +2 -1
- package/dist/wire-search-fields.js +2 -1
- package/dist/wire-sidebar.js +1 -229
- package/dist/wire-sidebar.js.map +1 -1
- package/dist/wire-sliders.js +1 -29
- package/dist/wire-sliders.js.map +1 -1
- package/dist/wire-summary-rows.d.ts +18 -0
- package/dist/wire-summary-rows.js +4 -0
- package/dist/wire-summary-rows.js.map +1 -0
- package/dist/wire-tab-bars.d.ts +1 -0
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.js +1 -151
- package/dist/wire-tab-navigator.js.map +1 -1
- package/dist/wire-tag-fields.js +3 -252
- package/dist/wire-tag-fields.js.map +1 -1
- package/dist/wire-tree-list.d.ts +53 -0
- package/dist/wire-tree-list.js +3 -0
- package/dist/wire-tree-list.js.map +1 -0
- package/dist/wire-workbench.js +2 -1
- package/dist/workbench-dialog.d.ts +10 -3
- package/dist/workbench-dialog.js +13 -9
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +7 -3
- package/dist/workbench.js +4 -1
- package/docs/accessibility.md +52 -9
- package/docs/app-layouts.md +70 -1
- package/docs/backdrop-image.md +10 -0
- package/docs/button.md +30 -2
- package/docs/column-explorer.md +75 -0
- package/docs/component-contract.md +44 -15
- package/docs/component-selection.md +161 -126
- package/docs/data-tables-and-lists.md +1 -1
- package/docs/design/sketch/Kerf-UI.sketch +0 -0
- package/docs/design/sketch/README.md +73 -0
- package/docs/design/sketch/advanced/README.md +75 -0
- package/docs/design/sketch/button/README.md +270 -0
- package/docs/design/sketch/content/README.md +70 -0
- package/docs/design/sketch/coverage.md +159 -0
- package/docs/design/sketch/forms/README.md +97 -0
- package/docs/design/sketch/lists/README.md +65 -0
- package/docs/design/sketch/toolbar/README.md +73 -0
- package/docs/design/sketch/unified/README.md +69 -0
- package/docs/design/sketch/unified/pages/advanced.png +0 -0
- package/docs/design/sketch/unified/pages/button.png +0 -0
- package/docs/design/sketch/unified/pages/content.png +0 -0
- package/docs/design/sketch/unified/pages/forms.png +0 -0
- package/docs/design/sketch/unified/pages/lists.png +0 -0
- package/docs/design/sketch/unified/pages/toolbar.png +0 -0
- package/docs/design/sketch-runner.md +87 -0
- package/docs/design/templates/button/emphasis-dark.svg +1 -1
- package/docs/design/templates/button/emphasis.svg +1 -1
- package/docs/design/templates/button-dark.svg +1 -1
- package/docs/design/templates/button.svg +1 -1
- package/docs/design/templates/list-header/action-dark.svg +1 -1
- package/docs/design/templates/list-header/action.svg +1 -1
- package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -1
- package/docs/design/templates/list-header/toggle-collapsed.svg +1 -1
- package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -1
- package/docs/design/templates/list-header/toggle-expanded.svg +1 -1
- package/docs/design/templates/list-header-dark.svg +1 -1
- package/docs/design/templates/list-header.svg +1 -1
- package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -1
- package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -1
- package/docs/design/templates/tab-bar-dark.svg +1 -1
- package/docs/design/templates/tab-bar.svg +1 -1
- package/docs/design/templates/tree-list/files-dark.svg +1 -0
- package/docs/design/templates/tree-list/files.svg +1 -0
- package/docs/design/templates/tree-list/outline-dark.svg +1 -0
- package/docs/design/templates/tree-list/outline.svg +1 -0
- package/docs/design/templates/tree-list-dark.svg +1 -0
- package/docs/design/templates/tree-list.svg +1 -0
- package/docs/design/templates.md +10 -1
- package/docs/document-baseline.md +6 -3
- package/docs/editor-host.md +299 -0
- package/docs/forms-and-validation.md +39 -0
- package/docs/interaction-conventions.md +2 -1
- package/docs/layout.md +94 -10
- package/docs/list-detail-dialog.md +5 -0
- package/docs/manual-test-plan.md +32 -0
- package/docs/nav-stack.md +2 -1
- package/docs/paged-view.md +89 -0
- package/docs/scroll-effect.md +127 -0
- package/docs/split-view.md +4 -1
- package/docs/surface-scaffold.md +32 -2
- package/docs/tab-navigator.md +5 -4
- package/docs/tree-list.md +134 -0
- package/docs/ui-analyzer.md +43 -25
- package/docs/ui-doctor.md +4 -1
- package/docs/ui-evaluator.md +2 -0
- package/docs/ux-demo.md +1 -1
- package/docs/webawesome-migration.md +32 -31
- package/docs/webawesome-theme.md +27 -17
- package/docs/workbench-dialog.md +4 -0
- package/evaluator/index.mjs +14 -2
- package/llms.txt +162 -21
- package/package.json +104 -6
- package/props/cli.d.mts +1 -0
- package/props/cli.mjs +116 -0
- package/props/component-props.d.mts +177 -0
- package/props/component-props.mjs +1208 -0
- package/scripts/lib/json-schema-subset.mjs +137 -0
- package/ux-demo/recipes/app-shell.tsx +20 -22
- package/ux-demo/recipes/collapsible-sidebar.tsx +2 -2
- package/ux-demo/recipes/compact-toolbar.tsx +26 -29
- package/ux-demo/recipes/composer-form.tsx +6 -5
- package/ux-demo/recipes/list-workspace-states.tsx +39 -39
- package/ux-demo/recipes/loading-inspector.tsx +8 -6
- package/ux-demo/recipes/media-detail.tsx +29 -15
- package/ux-demo/recipes/navigation-sidebar.tsx +18 -19
- package/ux-demo/recipes/navigation-stack.tsx +2 -2
- package/ux-demo/recipes/workspace-header.tsx +16 -16
- package/view/cli.d.mts +18 -0
- package/view/cli.mjs +262 -0
- package/view/contract.mjs +342 -0
- package/view/generate.mjs +639 -0
- package/view/index.d.mts +411 -0
- package/view/index.mjs +40 -0
- package/view/interpret.mjs +271 -0
- package/view/validate-move.mjs +317 -0
- package/view/validate.mjs +1864 -0
- package/vite-editor.d.mts +130 -0
- package/vite-editor.mjs +314 -0
- package/dist/chunk-2J7XKAZX.js.map +0 -1
- package/dist/chunk-3KFMLOTH.js.map +0 -1
- package/dist/chunk-3OP66VXU.js.map +0 -1
- package/dist/chunk-3V4OCDTL.js.map +0 -1
- package/dist/chunk-3WWX2O4G.js.map +0 -1
- package/dist/chunk-5CLMV5YU.js.map +0 -1
- package/dist/chunk-5J6Z4BWY.js.map +0 -1
- package/dist/chunk-6VVIW7VB.js.map +0 -1
- package/dist/chunk-7AK5I7U7.js.map +0 -1
- package/dist/chunk-7K6U6FCN.js.map +0 -1
- package/dist/chunk-AMIHGFLP.js.map +0 -1
- package/dist/chunk-AN5IWMTM.js.map +0 -1
- package/dist/chunk-B53PS2LE.js.map +0 -1
- package/dist/chunk-BKUMG2KB.js.map +0 -1
- package/dist/chunk-BSNKDW4X.js.map +0 -1
- package/dist/chunk-C2ZO3OZZ.js.map +0 -1
- package/dist/chunk-CVD5IZGB.js.map +0 -1
- package/dist/chunk-D5RGM3XA.js.map +0 -1
- package/dist/chunk-DZJ4GBSP.js.map +0 -1
- package/dist/chunk-EIET4QLK.js.map +0 -1
- package/dist/chunk-EKHDLBRP.js.map +0 -1
- package/dist/chunk-ETFP7HAR.js.map +0 -1
- package/dist/chunk-EYDXFOSH.js.map +0 -1
- package/dist/chunk-F653O57X.js.map +0 -1
- package/dist/chunk-G3J7JDP6.js.map +0 -1
- package/dist/chunk-HJWFHJ3Z.js.map +0 -1
- package/dist/chunk-HJXVVFBT.js.map +0 -1
- package/dist/chunk-IIQ2XIMU.js.map +0 -1
- package/dist/chunk-ITENVZ6Q.js.map +0 -1
- package/dist/chunk-ITUQC4FW.js.map +0 -1
- package/dist/chunk-K57NINLH.js.map +0 -1
- package/dist/chunk-K67XBCHG.js.map +0 -1
- package/dist/chunk-KDQZ3E5C.js.map +0 -1
- package/dist/chunk-KH4KEMSP.js.map +0 -1
- package/dist/chunk-LZUUUHNH.js.map +0 -1
- package/dist/chunk-N2K3QGSX.js.map +0 -1
- package/dist/chunk-NB6POCFH.js.map +0 -1
- package/dist/chunk-NR6O74ST.js.map +0 -1
- package/dist/chunk-OQP3PFKQ.js.map +0 -1
- package/dist/chunk-OZ6X76G5.js.map +0 -1
- package/dist/chunk-PS24PVR6.js.map +0 -1
- package/dist/chunk-QH5KOFNS.js.map +0 -1
- package/dist/chunk-QYMJHS4K.js.map +0 -1
- package/dist/chunk-S3DCRI2M.js.map +0 -1
- package/dist/chunk-S3ECMF23.js.map +0 -1
- package/dist/chunk-TKNVL53O.js.map +0 -1
- package/dist/chunk-VEME3D7K.js.map +0 -1
- package/dist/chunk-WVS6CUCT.js.map +0 -1
- package/dist/chunk-XRZSK2WC.js.map +0 -1
- package/dist/chunk-Y6KT7ZTR.js.map +0 -1
- package/dist/chunk-YMUIQRWK.js.map +0 -1
- package/dist/chunk-YPAQFBMN.js.map +0 -1
- package/dist/chunk-ZN7KUMPY.js.map +0 -1
- package/dist/chunk-ZX2QQJXD.js.map +0 -1
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# TreeList
|
|
2
|
+
|
|
3
|
+
`@kerfjs/ui/tree-list` shows a hierarchy (a file tree, a document outline,
|
|
4
|
+
nested categories) as ListItem rows indented by depth, with a disclosure arrow
|
|
5
|
+
on each row that has children. It is an ARIA `tree` of flat `treeitem` rows.
|
|
6
|
+
The application owns the nodes, which are expanded, and which is selected.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { TreeList, type TreeListNode } from "@kerfjs/ui/tree-list";
|
|
10
|
+
import { wireTreeList } from "@kerfjs/ui/wire-tree-list";
|
|
11
|
+
import { delegateActions } from "kerfjs/actions";
|
|
12
|
+
|
|
13
|
+
const expanded = signal<ReadonlySet<string>>(new Set(["src"]));
|
|
14
|
+
const selected = signal<string | undefined>(undefined);
|
|
15
|
+
|
|
16
|
+
<TreeList
|
|
17
|
+
id="files"
|
|
18
|
+
label="Files"
|
|
19
|
+
nodes={nodes}
|
|
20
|
+
expanded={expanded.value}
|
|
21
|
+
selected={selected.value}
|
|
22
|
+
action="pick-file"
|
|
23
|
+
toggleAction="toggle-folder"
|
|
24
|
+
/>;
|
|
25
|
+
|
|
26
|
+
delegateActions(root, "click", {
|
|
27
|
+
"pick-file": (_event, row) => (selected.value = row.dataset.itemId),
|
|
28
|
+
"toggle-folder": (_event, arrow) => {
|
|
29
|
+
const next = new Set(expanded.value);
|
|
30
|
+
const id = arrow.dataset.itemId!;
|
|
31
|
+
if (!next.delete(id)) next.add(id);
|
|
32
|
+
expanded.value = next;
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
const stop = wireTreeList(root);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Nodes
|
|
39
|
+
|
|
40
|
+
A `TreeListNode` has an `id` (the row's `data-item-id` and its key across
|
|
41
|
+
re-renders), a `label`, and optionally a `description`, an `icon` (an unsized
|
|
42
|
+
`LucideIcon`), `trailing` content (a count `Badge`), `disabled`, and
|
|
43
|
+
`children`. A node with a `children` array expands, even an empty one; mark a
|
|
44
|
+
node `hasChildren` to make it expandable before its children are loaded, and
|
|
45
|
+
load them when `toggleAction` expands it.
|
|
46
|
+
|
|
47
|
+
## Props
|
|
48
|
+
|
|
49
|
+
- `id` and `label` (required): the tree's identity and accessible name.
|
|
50
|
+
- `nodes` and `expanded` (required): the hierarchy and the ids of open nodes.
|
|
51
|
+
- `selected`: the chosen node's id. It is the tree's Tab stop; when it sits
|
|
52
|
+
inside a collapsed node, its nearest visible ancestor is.
|
|
53
|
+
- `action` and `toggleAction` (required): delegated actions for choosing a
|
|
54
|
+
row and for its disclosure arrow. Both carry `data-item-id`.
|
|
55
|
+
- `density`: `standard` (44px rows) or `compact` (36px).
|
|
56
|
+
|
|
57
|
+
A disabled row is `aria-disabled`: the keyboard still reaches it, and it sends
|
|
58
|
+
neither action.
|
|
59
|
+
|
|
60
|
+
## Keyboard
|
|
61
|
+
|
|
62
|
+
`wireTreeList(root)` wires every TreeList under `root` and returns a disposer:
|
|
63
|
+
|
|
64
|
+
- Down and Up move between visible rows; Home and End jump to the first and
|
|
65
|
+
last.
|
|
66
|
+
- Right opens a closed row, or moves into an open one's first child; Left
|
|
67
|
+
closes an open row, or moves to its parent. Opening and closing click the
|
|
68
|
+
row's disclosure arrow, so `toggleAction` stays the one place that changes
|
|
69
|
+
`expanded`.
|
|
70
|
+
- Enter and Space choose the row.
|
|
71
|
+
- Typing finds the next row whose label starts with the typed letters.
|
|
72
|
+
|
|
73
|
+
## Drag and drop
|
|
74
|
+
|
|
75
|
+
Mark nodes `draggable` and pass `onMove` to rearrange the tree by dragging:
|
|
76
|
+
|
|
77
|
+
```tsx
|
|
78
|
+
const stop = wireTreeList(root, {
|
|
79
|
+
canDrop: ({ sourceId, target }) => isLegal(sourceId, target),
|
|
80
|
+
onMove: ({ sourceId, target }) => {
|
|
81
|
+
// target.position is 'before', 'after', or 'inside' target.id.
|
|
82
|
+
moveInMyTree(sourceId, target);
|
|
83
|
+
render();
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
A dragged row lands before or after another row of its tree (the top and
|
|
89
|
+
bottom quarters of the row), or inside it (the middle half); when inside is
|
|
90
|
+
not legal, the halves mean before and after. Only drops `canDrop` accepts
|
|
91
|
+
show an indicator: a line at the target's label edge for before and after, a
|
|
92
|
+
ring around the row for inside. A disabled row never drags. The tree stays
|
|
93
|
+
application state: `onMove` reports the move and the application re-renders.
|
|
94
|
+
Dragging is a pointer gesture, so give people a keyboard way to move items
|
|
95
|
+
too (a "Move to" choice, or moving the selected node up and down).
|
|
96
|
+
|
|
97
|
+
### Drops from outside the tree
|
|
98
|
+
|
|
99
|
+
A drag your application runs itself, starting outside the tree (a palette of
|
|
100
|
+
new items, say), can land on its rows the same way. `treeListExternalDrop`
|
|
101
|
+
finds the legal move under the pointer and paints the tree's own indicator;
|
|
102
|
+
you apply the move when the pointer is released:
|
|
103
|
+
|
|
104
|
+
```ts
|
|
105
|
+
import { treeListExternalDrop } from '@kerfjs/ui/wire-tree-list';
|
|
106
|
+
|
|
107
|
+
const outline = treeListExternalDrop(root, {
|
|
108
|
+
canDrop: ({ sourceId, target }) => canAdd(sourceId, target),
|
|
109
|
+
});
|
|
110
|
+
// On each pointermove of your drag:
|
|
111
|
+
const move = outline.over(
|
|
112
|
+
document.elementFromPoint(event.clientX, event.clientY),
|
|
113
|
+
event.clientY,
|
|
114
|
+
newItemId,
|
|
115
|
+
);
|
|
116
|
+
// On pointerup: if (move) addItem(move); then outline.clear().
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
The positions and indicator match a dragged row's: before, after, or inside,
|
|
120
|
+
painted only for a drop `canDrop` accepts, and `over` clears the previous
|
|
121
|
+
row's indicator.
|
|
122
|
+
|
|
123
|
+
## The model
|
|
124
|
+
|
|
125
|
+
`treeListRows(nodes, expanded)` returns the visible rows with each one's
|
|
126
|
+
`level`, `position`, `setSize`, `parentId`, `expandable`, and `expanded`, and
|
|
127
|
+
`treeListPath(nodes, id)` the ids from the top down to a node. Use them to
|
|
128
|
+
work with the same hierarchy outside the tree.
|
|
129
|
+
|
|
130
|
+
## Geometry
|
|
131
|
+
|
|
132
|
+
Rows are ListItems and own their margin, border, padding, hover, and selected
|
|
133
|
+
tint. Each level indents 16px, and every row reserves a 16px disclosure
|
|
134
|
+
column, so labels at one level share an edge whether or not they expand.
|
package/docs/ui-analyzer.md
CHANGED
|
@@ -55,31 +55,33 @@ policy, or analysis inputs to the containing application.
|
|
|
55
55
|
|
|
56
56
|
## Diagnostics and exit behavior
|
|
57
57
|
|
|
58
|
-
| Rule | Kind | Meaning
|
|
59
|
-
| ---------- | ------ |
|
|
60
|
-
| `KUI-L001` | error | A stylesheet reaches into a private or unknown `.kui-*` selector.
|
|
61
|
-
| `KUI-L002` | error | A stylesheet references an unknown or private `--kui-*` token.
|
|
62
|
-
| `KUI-L003` | error | One element combines public classes that claim the same geometry.
|
|
63
|
-
| `KUI-L004` | review | Nested literal classes both add a content inset.
|
|
64
|
-
| `KUI-L005` | — | Retired; folded into `KUI-L019` (see below).
|
|
65
|
-
| `KUI-L006` | review | Literal spacing falls outside Kerf's approved scale.
|
|
66
|
-
| `KUI-L007` | error | A declared scroll owner is nested inside another scroll owner.
|
|
67
|
-
| `KUI-L008` | review | A dynamic class expression cannot be classified soundly.
|
|
68
|
-
| `KUI-L009` | error | A stylesheet cannot be parsed.
|
|
69
|
-
| `KUI-L010` | error | A selector reaches a private Kerf descendant from a public root.
|
|
70
|
-
| `KUI-L011` | error | A `::part()` target is not cataloged as a public extension point.
|
|
71
|
-
| `KUI-L012` | error | CSS assigns a Kerf token without a public configuration contract.
|
|
72
|
-
| `KUI-L013` | error | A CSS-adjacent prop uses an unknown shorthand or raw literal.
|
|
73
|
-
| `KUI-L014` | error | A typed helper produces the wrong property grammar.
|
|
74
|
-
| `KUI-L015` | error | An expression-only helper is passed without a composer.
|
|
75
|
-
| `KUI-L016` | error | A removed declaration-list escape hatch is used.
|
|
76
|
-
| `KUI-L017` | review | A valid but exceptional off-scale shorthand needs justification.
|
|
77
|
-
| `KUI-L018` | review | A loud fill override lacks a governing `on-loud`, or the literal pair is below 4.5:1.
|
|
78
|
-
| `KUI-L019` | error | A rule's subject is another package's component (class, `data-component`, or tag).
|
|
79
|
-
| `KUI-L020` | error | CSS reads or writes another component's private `--_*` variable.
|
|
80
|
-
| `KUI-L021` | error | CSS overrides a component token that a typed prop sets.
|
|
81
|
-
| `KUI-L022` | error | A class placed on a component's root is styled by the application (a hook class).
|
|
82
|
-
| `KUI-L023` | error | A source module renders another component's public class as its own markup.
|
|
58
|
+
| Rule | Kind | Meaning |
|
|
59
|
+
| ---------- | ------ | ---------------------------------------------------------------------------------------- |
|
|
60
|
+
| `KUI-L001` | error | A stylesheet reaches into a private or unknown `.kui-*` selector. |
|
|
61
|
+
| `KUI-L002` | error | A stylesheet references an unknown or private `--kui-*` token. |
|
|
62
|
+
| `KUI-L003` | error | One element combines public classes that claim the same geometry. |
|
|
63
|
+
| `KUI-L004` | review | Nested literal classes both add a content inset. |
|
|
64
|
+
| `KUI-L005` | — | Retired; folded into `KUI-L019` (see below). |
|
|
65
|
+
| `KUI-L006` | review | Literal spacing falls outside Kerf's approved scale. |
|
|
66
|
+
| `KUI-L007` | error | A declared scroll owner is nested inside another scroll owner. |
|
|
67
|
+
| `KUI-L008` | review | A dynamic class expression cannot be classified soundly. |
|
|
68
|
+
| `KUI-L009` | error | A stylesheet cannot be parsed. |
|
|
69
|
+
| `KUI-L010` | error | A selector reaches a private Kerf descendant from a public root. |
|
|
70
|
+
| `KUI-L011` | error | A `::part()` target is not cataloged as a public extension point. |
|
|
71
|
+
| `KUI-L012` | error | CSS assigns a Kerf token without a public configuration contract. |
|
|
72
|
+
| `KUI-L013` | error | A CSS-adjacent prop uses an unknown shorthand or raw literal. |
|
|
73
|
+
| `KUI-L014` | error | A typed helper produces the wrong property grammar. |
|
|
74
|
+
| `KUI-L015` | error | An expression-only helper is passed without a composer. |
|
|
75
|
+
| `KUI-L016` | error | A removed declaration-list escape hatch is used. |
|
|
76
|
+
| `KUI-L017` | review | A valid but exceptional off-scale shorthand needs justification. |
|
|
77
|
+
| `KUI-L018` | review | A loud fill override lacks a governing `on-loud`, or the literal pair is below 4.5:1. |
|
|
78
|
+
| `KUI-L019` | error | A rule's subject is another package's component (class, `data-component`, or tag). |
|
|
79
|
+
| `KUI-L020` | error | CSS reads or writes another component's private `--_*` variable. |
|
|
80
|
+
| `KUI-L021` | error | CSS overrides a component token that a typed prop sets. |
|
|
81
|
+
| `KUI-L022` | error | A class placed on a component's root is styled by the application (a hook class). |
|
|
82
|
+
| `KUI-L023` | error | A source module renders another component's public class as its own markup. |
|
|
83
|
+
| `KUI-L024` | review | A selector names a Web Awesome appearance scope (`.wa-light`, `.wa-dark`, `.wa-invert`). |
|
|
84
|
+
| `KUI-L025` | review | CSS writes a `--wa-*` token nothing reads, in a package without Web Awesome. |
|
|
83
85
|
|
|
84
86
|
For `KUI-L004` and `KUI-L007`, scroll and inset declarations belong to the
|
|
85
87
|
subject of each CSS selector. An ancestor class used only to qualify a
|
|
@@ -296,6 +298,22 @@ such exceptions at your convenience.
|
|
|
296
298
|
presentation choice for shared control chrome. The id stays in the registry so
|
|
297
299
|
existing profile exceptions still load, but new profiles should not use it.
|
|
298
300
|
|
|
301
|
+
## Web Awesome names in application CSS (`KUI-L024`, `KUI-L025`)
|
|
302
|
+
|
|
303
|
+
`KUI-L024` reports a selector that names `.wa-light`, `.wa-dark`, `.wa-invert`,
|
|
304
|
+
or `.wa-theme-default`. Those classes take effect only through the Web Awesome
|
|
305
|
+
theme; Kerf's own scopes work everywhere: the `scheme` prop on `ContentItem`,
|
|
306
|
+
`Pane`, `NavStack`, or `TabNavigator`, or the `.kui-light` / `.kui-dark` /
|
|
307
|
+
`.kui-invert` classes. It is the stylesheet half of the `eslint-plugin-kerfjs`
|
|
308
|
+
`KUI-L302` finding for JSX class names.
|
|
309
|
+
|
|
310
|
+
`KUI-L025` reports a `--wa-*` custom-property write when the stylesheet's
|
|
311
|
+
package does not depend on `@awesome.me/webawesome`, because nothing reads it.
|
|
312
|
+
Writes to the `--wa-*` values Kerf's `foundation.css` reads (such as
|
|
313
|
+
`--wa-font-size-m`, which feeds `--kui-font-m`) are legitimate theming and are
|
|
314
|
+
not reported. A stylesheet whose package manifest cannot be read is treated as
|
|
315
|
+
having Web Awesome.
|
|
316
|
+
|
|
299
317
|
## Loud fill / on-loud pairing (`KUI-L018`)
|
|
300
318
|
|
|
301
319
|
The shipped Web Awesome theme pairs every `--wa-color-{tone}-fill-loud` with a
|
package/docs/ui-doctor.md
CHANGED
|
@@ -35,7 +35,10 @@ padding) into a parent configured to expect inset-free content, such as a
|
|
|
35
35
|
block `Text` inside `Disclosure appearance="embedded"`, which double-insets the
|
|
36
36
|
owner chrome; the message names the child's inset-free form (`Text flush`) or
|
|
37
37
|
inline content. Values the rule cannot read statically, such as a spread or an
|
|
38
|
-
expression, are not reported.
|
|
38
|
+
expression, are not reported. `KUI-L205` reports a control, link, or component
|
|
39
|
+
that renders one (a `Button`, a `Select`, a `Chip` with `action`) written
|
|
40
|
+
inside a component whose root is a control or link (an actionable `ListItem`, a
|
|
41
|
+
`Button`), whose nested markup the browser would split.
|
|
39
42
|
|
|
40
43
|
Property-specific CSS values are evaluated from each first- or third-party
|
|
41
44
|
catalog entry's `cssValueProps`. `KUI-L013`–`KUI-L016` are blocking grammar
|
package/docs/ui-evaluator.md
CHANGED
|
@@ -118,6 +118,8 @@ SHA-256 digest. Retention is deterministic:
|
|
|
118
118
|
`--timeout` bounds navigation and browser operations, while `--settle` provides
|
|
119
119
|
one small explicit post-navigation delay for applications with asynchronous
|
|
120
120
|
startup. A timeout becomes `KUI-B001` evidence rather than an unstructured crash.
|
|
121
|
+
A screenshot that cannot be captured is its own `KUI-B001` diagnostic; the
|
|
122
|
+
context's other checks and evidence are still reported.
|
|
121
123
|
The Node API accepts an `AbortSignal`; cancellation closes the active browser,
|
|
122
124
|
removes screenshots from the interrupted run, does not write a partial report,
|
|
123
125
|
and rejects with `AbortError`.
|
package/docs/ux-demo.md
CHANGED
|
@@ -34,7 +34,7 @@ deterministic state, and semantic layout owners from the [recipe guide](./recipe
|
|
|
34
34
|
- The `ListActionRow` route's Run Tests row composes a trailing `PopupMenu` (`trailingMenu`) with Edit and Delete commands, revealed on interaction, that also opens at the pointer when the row's primary button is right-clicked.
|
|
35
35
|
- The `ListActionRow` route demonstrates sibling primary/trailing native controls, independent disabled states, controlled selection, first-line leading-icon alignment for wrapped labels, and an application-owned native popover relationship without nesting controls. The `ListItem` route demonstrates the same multiline leading-icon anchor alongside its single-control navigation contract.
|
|
36
36
|
- The `PopupMenu` route's context example opens one app-owned menu either at the row's right-click point or below its adjacent, keyboard-operable Demand Actions button. The Nested Decisions example shows the automatic phone-width submenu placement above or below its parent list, with ArrowLeft return, Escape dismissal, and child selection.
|
|
37
|
-
- The `TabBarItem` and `TabBar` routes are focused component specimens: TabBarItem shows its selected, compact, segmented, icon-only, truncation, placeholder, pending, metadata, and close-icon axes inside the required tablist context; TabBar shows its rail, segmented, inspector, allocation, placement, and accessory-zone axes, including an adjacent action plus a separately pinned end action whose tabs overflow at narrow widths, without application readouts.
|
|
37
|
+
- The `TabBarItem` and `TabBar` routes are focused component specimens: TabBarItem shows its selected, compact, segmented, icon-only, truncation, placeholder, pending, metadata, and close-icon axes inside the required tablist context; TabBar shows its rail, segmented, inspector, allocation, placement, and accessory-zone axes, including an adjacent action plus a separately pinned end action whose tabs overflow at narrow widths, without application readouts. Fixed leading controls compose through the existing leading zone outside the scrolling tablist; `snapTabs` stays an opt-in for applications that want whole-tab settling. The separate `Application tabs` composition route demonstrates controlled selection, matching panel content, overflow, adding (a new tab opens `pending` with a spinner and stays selectable while its panel shows a `Skeleton` heading until a simulated load completes), closing, keyboard/pointer reordering, and application-owned ordering. The `ResizableRegion` route likewise replaces only the decorative handle glyph while retaining separator semantics and shared wiring.
|
|
38
38
|
- Every first-party visual component and every free Web Awesome 3.14 component has its own stable `?component=<id>` URL and focused demo. Composite header, menu, and feedback scenarios remain addressable alongside their subcomponents; the root opens the first Kerf component. The former aggregate Web Awesome theme specimen is intentionally omitted because its component families are covered by those focused routes.
|
|
39
39
|
- `ai/component-catalog.json` is the canonical catalog metadata. A deterministic checked-in projection supplies the demo's unique id, category, kind (`component`, `composition`, or `recipe`), source (`kerf` or `webawesome`), name, description, recommendation, direct `uses` dependencies, existing documentation path, and demo-source path; first-party, recipe, and Web Awesome renderer maps are exhaustively typed against its generated id unions. Functional groups follow their authored importance order; components precede compositions inside each group, equal-importance entries use alphabetical order, and the Recipes group comes last. Composition names stay concise and project a visible `Composition` sidebar tag. Non-supported Web Awesome recommendations project to a visible `Discouraged` tag, with Popup as the deliberate conditional exception. Demo paths resolve to the matching `ui/ux-demo/demos/<id>.tsx` or `ui/ux-demo/recipes/*.tsx` file, or to `ui/ux-demo/webawesome-demos.tsx` for Web Awesome entries. `ui/ux-demo/main.tsx` owns only the catalog shell, shared state, routing, and interaction wiring. First-party component entries additionally derive `ui/src/<public-subpath>.tsx` from their canonical `delivery.browserImport` or opt-in `delivery.moduleImport`.
|
|
40
40
|
- Every detail footer groups compact `Demo Source` and `Guidance` actions; first-party component details also expose `Component Source`. Web Awesome details say `Integration Guidance` to distinguish the local integration contract from the upstream component implementation. Each button retains its repository-relative path in the DOM for verification and uses a deploy-safe absolute GitHub blob URL with a contextual new-tab name; the demo does not depend on a local source server or add a package runtime export. At phone widths, the resource group and related-component selector stack as full-width rows, with any resource overflow contained locally so labels cannot overlap the selector or widen the document.
|
|
@@ -19,38 +19,39 @@ selector changes.
|
|
|
19
19
|
|
|
20
20
|
For a positive action such as Price Check, migrate `<wa-button variant="success">` to `<Button tone="success">`. The semantic success palette also applies to `secondary` and `plain` emphasis; use the component prop rather than an application color override.
|
|
21
21
|
|
|
22
|
-
| Web Awesome markup | Kerf replacement | Notes
|
|
23
|
-
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
-
| `<wa-button variant="brand">Save</wa-button>` | `<Button tone="brand" action="save">Save</Button>` (`@kerfjs/ui/button`) | `tone` replaces `variant`; `emphasis` replaces `appearance`. Use `
|
|
25
|
-
| `<wa-input label="Name" hint="…" with-clear>` | `<TextField label="Name" hint="…" clearable />` (`@kerfjs/ui/text-field`) | Call `wireTextFields(root)` from `@kerfjs/ui/wire-text-fields` once for the clear button and a live `showCount`. Pass `error` for an invalid field.
|
|
26
|
-
| `<wa-textarea rows="4" resize="auto">` | `<TextField multiline rows={4} maxRows={10} />` | `maxRows` grows the field with its content up to that height.
|
|
27
|
-
| `<wa-checkbox>Email me</wa-checkbox>` | `<Checkbox label="Email me" action="toggle-email" />` (`@kerfjs/ui/checkbox`) | For a mixed parent, pass `indeterminate` and call `wireCheckboxes(root)` from `@kerfjs/ui/wire-checkboxes` once.
|
|
28
|
-
| `<wa-checkbox-group label="Notifications">` | `<CheckboxGroup label="Notifications" name="channels" value={channels.value} choices={[…]} />` (`@kerfjs/ui/checkbox-group`), or `ChoiceChips` with `multiple="toggle"` |
|
|
29
|
-
| `<wa-radio-group label="Density"><wa-radio value="compact">…` | `<RadioGroup label="Density" name="density" value={density.value} choices={[{ value: 'compact', label: 'Compact' }]} />` | `@kerfjs/ui/radio-group`. Use `orientation="horizontal"` for a row. Use `SegmentedControl` for a view switch and `ChoiceChips` for wrapping pills.
|
|
30
|
-
| `<wa-switch>Live updates</wa-switch>` | `<Switch label="Live updates" checked={live.value} action="toggle-live" />` (`@kerfjs/ui/switch`) | Only for a setting that applies immediately; use `Checkbox` for a submitted option.
|
|
31
|
-
| `<wa-select>` with `<wa-option>` children | `<Select label="Status" name="status" value={status.value} choices={[…]} />` (`@kerfjs/ui/select`) | Import `@kerfjs/ui/select/register` once. It emits standard `input` and `change` events.
|
|
32
|
-
| `<wa-dropdown>` with `<wa-dropdown-item>` commands | `<PopupMenu label="More Actions" icon={…} items={[{ label: 'Archive', action: 'archive' }]} />` (`@kerfjs/ui/popup-menu`) | Import `@kerfjs/ui/popup-menu/register` once. A dropdown that picks a value becomes a `Select`.
|
|
33
|
-
| `<wa-dialog label="Edit">` and toggling `open` | `<DialogSurface id="edit" label="Edit" footer={…}>…</DialogSurface>` with `openDialog(dialog)` / `closeDialog(dialog)` | From `@kerfjs/ui/surface-scaffold`. The surface is a native `<dialog>`; listen for its native `close` event instead of `wa-after-hide`. Never toggle the `open` attribute.
|
|
34
|
-
| `<wa-drawer>` | `<DialogSurface presentation="side-sheet" …>` (or `"bottom-sheet"`), or `CollapsiblePanel` for a collapsible rail |
|
|
35
|
-
| `<wa-tab-group>`, `<wa-tab>`, `<wa-tab-panel>` | `TabBar` with `wireTabBars` (`@kerfjs/ui/tab-bar`), or `SegmentedControl` for compact local views | The application owns its panels.
|
|
36
|
-
| `<wa-tag with-remove>` | `<Chip removeAction="remove-tag">Design</Chip>` (`@kerfjs/ui/chip`) |
|
|
37
|
-
| `<wa-badge>`, `<wa-spinner>`, `<wa-skeleton>` | `Badge`, `LoadingSpinner`, `Skeleton` |
|
|
38
|
-
| `<wa-icon name="…">` | `<LucideIcon icon={Star} name="star" />` (`@kerfjs/ui/lucide-icon`) |
|
|
39
|
-
| `<wa-split-panel>` | `ResizableRegion` with `wireResizableRegions` |
|
|
40
|
-
| `<wa-card>` | `<ContentItem appearance="surface" frame="framed">` (`@kerfjs/ui/content-item`), or `SunkenPanel` for a lowered region |
|
|
41
|
-
| `<wa-page>` | `Workbench`, `SplitView`, `NavStack`, or `TabNavigator` |
|
|
42
|
-
| `<wa-details>`, `<wa-accordion>`, `<wa-accordion-item>` | `<Disclosure title="…">` (`@kerfjs/ui/disclosure`) | Give Disclosures the same `name` for an accordion. The open state is native: set `element.open = false` to close one from code.
|
|
43
|
-
| `<wa-slider>` | `<Slider id="…" label="…" value={…} />` (`@kerfjs/ui/slider`) | Add `showValue`/`unit` for a readout and `ticks` for stops; call `wireSliders(root)` once.
|
|
44
|
-
| `<wa-tag-input>` | `<TagField id="…" label="…" tags={…} name="…" />` (`@kerfjs/ui/tag-field`) | Call `wireTagFields(root, { onChange })` once and re-render with the reported tags.
|
|
22
|
+
| Web Awesome markup | Kerf replacement | Notes |
|
|
23
|
+
| ------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
24
|
+
| `<wa-button variant="brand">Save</wa-button>` | `<Button tone="brand" action="save">Save</Button>` (`@kerfjs/ui/button`) | `tone` replaces `variant`; `emphasis` replaces `appearance`. Use `link` for a link button (`emphasis="link"` for a text link), `icon` with `ariaLabel` and no label for an icon-only one, and `pressed` for a toggle. |
|
|
25
|
+
| `<wa-input label="Name" hint="…" with-clear>` | `<TextField label="Name" hint="…" clearable />` (`@kerfjs/ui/text-field`) | Call `wireTextFields(root)` from `@kerfjs/ui/wire-text-fields` once for the clear button and a live `showCount`. Pass `error` for an invalid field. |
|
|
26
|
+
| `<wa-textarea rows="4" resize="auto">` | `<TextField multiline rows={4} maxRows={10} />` | `maxRows` grows the field with its content up to that height. |
|
|
27
|
+
| `<wa-checkbox>Email me</wa-checkbox>` | `<Checkbox label="Email me" action="toggle-email" />` (`@kerfjs/ui/checkbox`) | For a mixed parent, pass `indeterminate` and call `wireCheckboxes(root)` from `@kerfjs/ui/wire-checkboxes` once. |
|
|
28
|
+
| `<wa-checkbox-group label="Notifications">` | `<CheckboxGroup label="Notifications" name="channels" value={channels.value} choices={[…]} />` (`@kerfjs/ui/checkbox-group`), or `ChoiceChips` with `multiple="toggle"` | |
|
|
29
|
+
| `<wa-radio-group label="Density"><wa-radio value="compact">…` | `<RadioGroup label="Density" name="density" value={density.value} choices={[{ value: 'compact', label: 'Compact' }]} />` | `@kerfjs/ui/radio-group`. Use `orientation="horizontal"` for a row. Use `SegmentedControl` for a view switch and `ChoiceChips` for wrapping pills. |
|
|
30
|
+
| `<wa-switch>Live updates</wa-switch>` | `<Switch label="Live updates" checked={live.value} action="toggle-live" />` (`@kerfjs/ui/switch`) | Only for a setting that applies immediately; use `Checkbox` for a submitted option. |
|
|
31
|
+
| `<wa-select>` with `<wa-option>` children | `<Select label="Status" name="status" value={status.value} choices={[…]} />` (`@kerfjs/ui/select`) | Import `@kerfjs/ui/select/register` once. It emits standard `input` and `change` events. |
|
|
32
|
+
| `<wa-dropdown>` with `<wa-dropdown-item>` commands | `<PopupMenu label="More Actions" icon={…} items={[{ label: 'Archive', action: 'archive' }]} />` (`@kerfjs/ui/popup-menu`) | Import `@kerfjs/ui/popup-menu/register` once. A dropdown that picks a value becomes a `Select`. |
|
|
33
|
+
| `<wa-dialog label="Edit">` and toggling `open` | `<DialogSurface id="edit" label="Edit" footer={…}>…</DialogSurface>` with `openDialog(dialog)` / `closeDialog(dialog)` | From `@kerfjs/ui/surface-scaffold`. The surface is a native `<dialog>`; listen for its native `close` event instead of `wa-after-hide`. Never toggle the `open` attribute. |
|
|
34
|
+
| `<wa-drawer>` | `<DialogSurface presentation="side-sheet" …>` (or `"bottom-sheet"`), or `CollapsiblePanel` for a collapsible rail | |
|
|
35
|
+
| `<wa-tab-group>`, `<wa-tab>`, `<wa-tab-panel>` | `TabBar` with `wireTabBars` (`@kerfjs/ui/tab-bar`), or `SegmentedControl` for compact local views | The application owns its panels. |
|
|
36
|
+
| `<wa-tag with-remove>` | `<Chip removeAction="remove-tag">Design</Chip>` (`@kerfjs/ui/chip`) | |
|
|
37
|
+
| `<wa-badge>`, `<wa-spinner>`, `<wa-skeleton>` | `Badge`, `LoadingSpinner`, `Skeleton` | |
|
|
38
|
+
| `<wa-icon name="…">` | `<LucideIcon icon={Star} name="star" />` (`@kerfjs/ui/lucide-icon`) | |
|
|
39
|
+
| `<wa-split-panel>` | `ResizableRegion` with `wireResizableRegions` | |
|
|
40
|
+
| `<wa-card>` | `<ContentItem appearance="surface" frame="framed">` (`@kerfjs/ui/content-item`), or `SunkenPanel` for a lowered region | |
|
|
41
|
+
| `<wa-page>` | `Workbench`, `SplitView`, `NavStack`, or `TabNavigator` | |
|
|
42
|
+
| `<wa-details>`, `<wa-accordion>`, `<wa-accordion-item>` | `<Disclosure title="…">` (`@kerfjs/ui/disclosure`) | Give Disclosures the same `name` for an accordion. The open state is native: set `element.open = false` to close one from code. |
|
|
43
|
+
| `<wa-slider>` | `<Slider id="…" label="…" value={…} />` (`@kerfjs/ui/slider`) | Add `showValue`/`unit` for a readout and `ticks` for stops; call `wireSliders(root)` once. |
|
|
44
|
+
| `<wa-tag-input>` | `<TagField id="…" label="…" tags={…} name="…" />` (`@kerfjs/ui/tag-field`) | Call `wireTagFields(root, { onChange })` once and re-render with the reported tags. |
|
|
45
|
+
| `<wa-tree>`, `<wa-tree-item>` | `<TreeList id="…" label="…" nodes={…} expanded={…} action="…" toggleAction="…" />` (`@kerfjs/ui/tree-list`) | Handle `action` and `toggleAction` with `delegateActions`, re-render with the new selection and expansion, and call `wireTreeList(root)` once for the keyboard. |
|
|
45
46
|
| `<wa-color-picker>` | `<ColorField id="…" label="…" value={…} />` (`@kerfjs/ui/color-field`) |
|
|
46
|
-
| `<wa-include src="…">` | `resource()` from `kerfjs/async`, rendering the result as Kerf content | Never inject fetched markup; it bypasses kerf's `SafeHtml` escaping.
|
|
47
|
-
| `<wa-scroller>` | A `Pane` (scroll edges via `wireScrollDividers`) or `ColumnTrack` for a horizontal track |
|
|
48
|
-
| `<wa-button-group>` | `ToolbarControlGroup` or `SplitButton` for actions, `SegmentedControl` for a choice |
|
|
49
|
-
| `<wa-progress-bar value="40">`, `<wa-progress-ring>` | `<ProgressBar label="…" value={0.4} />` (`@kerfjs/ui/progress-bar`) or `<ProgressRing label="…" value={0.4} />` (`@kerfjs/ui/progress-ring`) | Omit `value` for indeterminate progress; `valueText` replaces the spoken percentage.
|
|
50
|
-
| `<wa-popover>`, `<wa-popup>` | `openAnchoredSurface(anchor, render, { label })` (`@kerfjs/ui/anchored-surface`); `positionAnchored()` or `autoReposition()` from `kerfjs/overlay` to place another element | `openAnchoredSurfaceAt` anchors to the pointer.
|
|
51
|
-
| `<wa-tooltip>` | `tooltip()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-tooltip.css` imported | Icon-only toolbar and popup controls already get Kerf help tags. Pass `exitClass: 'kui-tooltip-exit'` with `exitDuration: 100`.
|
|
52
|
-
| `<wa-callout>` | `<StateBanner tone="warning" …>` (`@kerfjs/ui/state-banner`) |
|
|
53
|
-
| `<wa-toast>`, `<wa-toast-item>` | `toast()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-toast.css` imported | Pass `variant` for a tone, a `StateBanner` as the content for a title and detail, and `exitClass: 'kui-toast-exit'` with `exitDuration: 200`. A persistent status stays a `StateBanner` in place.
|
|
47
|
+
| `<wa-include src="…">` | `resource()` from `kerfjs/async`, rendering the result as Kerf content | Never inject fetched markup; it bypasses kerf's `SafeHtml` escaping. |
|
|
48
|
+
| `<wa-scroller>` | A `Pane` (scroll edges via `wireScrollDividers`) or `ColumnTrack` for a horizontal track | |
|
|
49
|
+
| `<wa-button-group>` | `ToolbarControlGroup` or `SplitButton` for actions, `SegmentedControl` for a choice | |
|
|
50
|
+
| `<wa-progress-bar value="40">`, `<wa-progress-ring>` | `<ProgressBar label="…" value={0.4} />` (`@kerfjs/ui/progress-bar`) or `<ProgressRing label="…" value={0.4} />` (`@kerfjs/ui/progress-ring`) | Omit `value` for indeterminate progress; `valueText` replaces the spoken percentage. |
|
|
51
|
+
| `<wa-popover>`, `<wa-popup>` | `openAnchoredSurface(anchor, render, { label })` (`@kerfjs/ui/anchored-surface`); `positionAnchored()` or `autoReposition()` from `kerfjs/overlay` to place another element | `openAnchoredSurfaceAt` anchors to the pointer. |
|
|
52
|
+
| `<wa-tooltip>` | `tooltip()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-tooltip.css` imported | Icon-only toolbar and popup controls already get Kerf help tags. Pass `exitClass: 'kui-tooltip-exit'` with `exitDuration: 100`. |
|
|
53
|
+
| `<wa-callout>` | `<StateBanner tone="warning" …>` (`@kerfjs/ui/state-banner`) | |
|
|
54
|
+
| `<wa-toast>`, `<wa-toast-item>` | `toast()` from `kerfjs/overlay` with `@kerfjs/ui/overlay-toast.css` imported | Pass `variant` for a tone, a `StateBanner` as the content for a title and detail, and `exitClass: 'kui-toast-exit'` with `exitDuration: 200`. A persistent status stays a `StateBanner` in place. |
|
|
54
55
|
|
|
55
56
|
Event and selector changes to look for:
|
|
56
57
|
|
package/docs/webawesome-theme.md
CHANGED
|
@@ -11,8 +11,12 @@ Awesome theme variable (`--kui-font-m: var(--wa-font-size-m, 16px)`), so an
|
|
|
11
11
|
app's Web Awesome theme also restyles Kerf, but every such read falls back to
|
|
12
12
|
the value this theme gives it. A Kerf-only application therefore renders
|
|
13
13
|
exactly like the catalog. Kerf component stylesheets read only `--kui-*`
|
|
14
|
-
tokens
|
|
15
|
-
|
|
14
|
+
tokens and name no Web Awesome element except inside a `:not()` exclusion.
|
|
15
|
+
The rules that place a raw `wa-button` or `wa-dropdown` inside a Kerf
|
|
16
|
+
container (a ToolbarControlGroup's metrics and states, a Toolbar's trailing
|
|
17
|
+
band, a popup surface's menu inset, and the clipping release a Workbench
|
|
18
|
+
panel or ResizableRegion gives an open raw dropdown) ship only in this
|
|
19
|
+
bridge, so a Kerf-only bundle carries none of them. The consumer-bundle tests and the
|
|
16
20
|
`webawesome-optional` browser spec enforce all of this.
|
|
17
21
|
|
|
18
22
|
**Supported versions.** `@kerfjs/ui` supports every Web Awesome 3.x release
|
|
@@ -200,6 +204,10 @@ tiers:
|
|
|
200
204
|
the 8px surface inset, while its footer uses the 16px container inset so
|
|
201
205
|
content stays compact and the action group has a clearer boundary. These two
|
|
202
206
|
parts do not inherit the dialog's shared `--spacing` value.
|
|
207
|
+
- The surface and container tiers follow Kerf's own `--kui-surface-inset`
|
|
208
|
+
(8px) and `--kui-container-inset` (16px) foundation tokens, which Kerf's
|
|
209
|
+
dialogs, popups, and sheets read. Set a `--kui-wa-*` tier to change only the
|
|
210
|
+
Web Awesome elements; set the `--kui-*` token to change Kerf's surfaces too.
|
|
203
211
|
|
|
204
212
|
## Contextual transparency
|
|
205
213
|
|
|
@@ -334,18 +342,17 @@ component's behavior inspectable without opening every state at once.
|
|
|
334
342
|
|
|
335
343
|
## Badge and tag guidance
|
|
336
344
|
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
the underlying selection.
|
|
345
|
+
New UI uses Kerf's `Badge` for compact status, count, or activity labels and
|
|
346
|
+
`Chip` for categories, filters, and removable selections
|
|
347
|
+
([component selection](./component-selection.md)). An existing Web Awesome
|
|
348
|
+
application may keep its `wa-badge` and `wa-tag`; this theme styles them to
|
|
349
|
+
match:
|
|
350
|
+
|
|
351
|
+
- `wa-badge pill appearance="filled"` takes Hot Sheet 2's quiet,
|
|
352
|
+
contrast-safe pill-shaped ticket status treatment.
|
|
353
|
+
- The default, non-pill `wa-tag` keeps its medium-radius rounded rectangle, so
|
|
354
|
+
tags stay distinct from status badges. Handle the bubbling `wa-remove` event
|
|
355
|
+
in the feature that owns the underlying selection.
|
|
349
356
|
- Keep domain components when they add domain behavior. Hot Sheet 2's
|
|
350
357
|
`StatusBadge` owns the ticket-status-to-label/icon mapping, while its
|
|
351
358
|
`TagChip` is already a small domain adapter around `wa-tag`. Those are useful
|
|
@@ -393,12 +400,12 @@ application off them.
|
|
|
393
400
|
Dialog, Drawer, Card, Page, Callout, Popover, Popup, Tab, Tab Group, Tab
|
|
394
401
|
Panel, Badge, Spinner, Skeleton, Toast, Toast Item, Tooltip, Details, Accordion,
|
|
395
402
|
Accordion Item, Progress Bar, Progress Ring, Slider, Tag Input, Color Picker,
|
|
396
|
-
Split Panel, Icon, Scroller, Include, and
|
|
403
|
+
Split Panel, Icon, Scroller, Include, Zoomable Frame, Tree, and Tree Item.
|
|
397
404
|
Never render them in application markup. Popover and Popup give way to
|
|
398
405
|
`AnchoredSurface` and `kerfjs/overlay`'s `positionAnchored()`; Tooltip,
|
|
399
406
|
Toast, and Toast Item give way to `kerfjs/overlay`'s `tooltip()` and
|
|
400
407
|
`toast()` with their Kerf stylesheets.
|
|
401
|
-
- Use Web Awesome
|
|
408
|
+
- Use Web Awesome Animated Image and Comparison only for a
|
|
402
409
|
specific product requirement that needs their specialized behavior.
|
|
403
410
|
- Use the remaining supported elements (Carousel, Rating, and
|
|
404
411
|
the rest of the coverage list) when their native semantic contract matches
|
|
@@ -446,7 +453,10 @@ a literal pair that measures below 4.5:1, as review finding
|
|
|
446
453
|
measure a `var()` or `color-mix()` value, so choosing a readable one is still
|
|
447
454
|
yours.
|
|
448
455
|
|
|
449
|
-
Use `.
|
|
456
|
+
Use Kerf's `.kui-light`, `.kui-dark`, and `.kui-invert` (or a component's
|
|
457
|
+
`scheme` prop) for explicit appearance scopes. The bridge re-derives Web
|
|
458
|
+
Awesome elements inside them, and it still honors Web Awesome's own `.wa-light`,
|
|
459
|
+
`.wa-dark`, and `.wa-invert` for existing Web Awesome applications.
|
|
450
460
|
Component-specific custom properties and documented `::part()` selectors from
|
|
451
461
|
Web Awesome remain available when a semantic theme token is not sufficiently
|
|
452
462
|
specific. Prefer those public hooks over shadow-tree implementation details.
|
package/docs/workbench-dialog.md
CHANGED
|
@@ -80,6 +80,10 @@ Escape closes the dialog.
|
|
|
80
80
|
- `main` (required), `mainFooter`, `mainBottomToolbar`.
|
|
81
81
|
- `leftRail`, `rightRail`, `bottomDrawer`: `WorkbenchPanel`s.
|
|
82
82
|
- `compact`, `closeLabel` (default `Close`), `lightDismiss`.
|
|
83
|
+
- `embedded`: render in flow and always shown, keeping `height`, for a
|
|
84
|
+
catalog, a design canvas, or a document. `openDialog()` and `closeDialog()`
|
|
85
|
+
leave it alone. The Kerf UI editor shows a WorkbenchDialog this way on its
|
|
86
|
+
edit canvas.
|
|
83
87
|
- Roomy sizing: `size` (default `large`), `preferredWidth`, `height` (default
|
|
84
88
|
560px), `maxHeight`, `viewportGutter`, and `mainMinSize`.
|
|
85
89
|
- `rootAttributes`, `className`, `slot`.
|
package/evaluator/index.mjs
CHANGED
|
@@ -1114,8 +1114,20 @@ export async function evaluateUi({
|
|
|
1114
1114
|
outputDirectory,
|
|
1115
1115
|
`${browserName}-${matrixContext.id}.png`,
|
|
1116
1116
|
);
|
|
1117
|
-
|
|
1118
|
-
|
|
1117
|
+
// A failed capture keeps the inspection results and names itself,
|
|
1118
|
+
// rather than reading as an unreachable app.
|
|
1119
|
+
try {
|
|
1120
|
+
await page.screenshot({ path: screenshotPath, fullPage: true });
|
|
1121
|
+
screenshotPaths.push(screenshotPath);
|
|
1122
|
+
} catch (error) {
|
|
1123
|
+
if (signal?.aborted) throw error;
|
|
1124
|
+
const item = reportDiagnostic('KUI-B001', contextId, {
|
|
1125
|
+
message: `Could not capture the ${contextId} screenshot: ${error.message}`,
|
|
1126
|
+
repair:
|
|
1127
|
+
'Raise the timeout for a long or heavy page, or retry on a less loaded machine; the other checks for this context still ran.',
|
|
1128
|
+
});
|
|
1129
|
+
if (includeDiagnostic(item)) contextDiagnostics.push(item);
|
|
1130
|
+
}
|
|
1119
1131
|
} catch (error) {
|
|
1120
1132
|
if (signal?.aborted) throw cancellationError();
|
|
1121
1133
|
const item = reportDiagnostic('KUI-B001', contextId, {
|