@kerfjs/ui 5.0.0-beta.123 → 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 +1499 -213
- 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 -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 +29624 -0
- package/ai/component-props.schema.json +401 -0
- package/ai/components/README.md +11 -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/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 +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 +1249 -127
- package/ai/skill.md +106 -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/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-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-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-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-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-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-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-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 +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/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 +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 +150 -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/coverage.md +120 -118
- package/docs/design/sketch/lists/README.md +6 -6
- package/docs/design/sketch/unified/README.md +1 -1
- 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-dark.svg +1 -1
- package/docs/design/templates/button.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 +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/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/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 +159 -18
- package/package.json +90 -3
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/surfaces/workbench-dialog/workbench-dialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGA,SAAS,WAAA,CACP,OACA,OAAA,EAC4B;AAC5B,EAAA,OAAO,SAAS,OAAA,GAAU,EAAE,GAAG,KAAA,EAAO,YAAA,EAAc,WAAU,GAAI,KAAA;AACpE;AAaO,SAAS,eAAA,CAAgB;AAAA,EAC9B,EAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,iBAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA,GAAU,KAAA;AAAA,EACV,UAAA,GAAa,OAAA;AAAA,EACb,YAAA,GAAe,KAAA;AAAA,EACf,IAAA,GAAO,OAAA;AAAA,EACP,cAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ;AACF,CAAA,EAAyB;AACvB,EAAA,uBACE,GAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,EAAA;AAAA,MACA,KAAA;AAAA,MACA,aACE,WAAA,KACC,WAAA,KAAgB,MAAA,GAAY,MAAA,GAAY,GAAG,EAAE,CAAA,YAAA,CAAA,CAAA;AAAA,MAEhD,aAAA,EAAa,IAAA;AAAA,MACb,YAAA;AAAA,MACA,UAAA;AAAA,MACA,IAAA;AAAA,MACA,YAAA,EAAc,UAAU,YAAA,GAAe,OAAA;AAAA,MACvC,cAAA;AAAA,MACA,MAAA,EACE,UACI,MAAA,GACA,SAAA,KAAc,SACX,MAAA,IAAU,MAAA,CAAO,GAAG,CAAA,GACrB,MAAA;AAAA,MAER,SAAA,EAAW,UAAU,MAAA,GAAY,SAAA;AAAA,MACjC,cAAA,EAAgB,UAAU,MAAA,GAAY,cAAA;AAAA,MACtC,SAAA,EAAU,MAAA;AAAA,MACV,UAAA,EAAW,MAAA;AAAA,MACX,cAAA,EAAgB;AAAA,QACd,GAAG,cAAA;AAAA,QACH,oBAAA,EAAsB;AAAA,OACxB;AAAA,MACA,SAAA;AAAA,MACA,IAAA;AAAA,MAEA,QAAA,kBAAA,GAAA;AAAA,QAAC,SAAA;AAAA,QAAA;AAAA,UACC,EAAA,EAAI,GAAG,EAAE,CAAA,UAAA,CAAA;AAAA,UACT,KAAA;AAAA,UACA,WAAA,EAAa;AAAA,YACX,KAAA,EAAO,KAAA;AAAA,YACP,KAAA,kBACE,GAAA;AAAA,cAAC,WAAA;AAAA,cAAA;AAAA,gBACC,IAAA,EAAM,KAAA;AAAA,gBACN,WAAA;AAAA,gBACA,aAAA,EACE,WAAA,KAAgB,MAAA,GAAY,MAAA,GAAY,GAAG,EAAE,CAAA,YAAA,CAAA;AAAA,gBAE/C,IAAA,EAAK,QAAA;AAAA,gBACL,EAAA,EAAI,GAAG,EAAE,CAAA,MAAA,CAAA;AAAA,gBACT,YAAA,EAAc;AAAA;AAAA,aAChB;AAAA,YAEF,OAAA;AAAA,YACA,QAAA,EAAU,OAAA;AAAA;AAAA,YAEV,qBACE,GAAA,CAAC,mBAAA,EAAA,EAAoB,UAAA,EAAW,YAAA,EAAa,QAAM,IAAA,EACjD,QAAA,kBAAA,GAAA;AAAA,cAAC,QAAA;AAAA,cAAA;AAAA,gBACC,IAAA,EAAK,QAAA;AAAA,gBACL,YAAA,EAAY,UAAA;AAAA,gBACZ,mBAAA,EAAkB,EAAA;AAAA,gBAElB,QAAA,kBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,IAAA,EAAM,CAAA,EAAG,MAAK,GAAA,EAAI;AAAA;AAAA,aAChC,EACF;AAAA,WAEJ;AAAA,UACA,IAAA;AAAA,UACA,UAAA;AAAA,UACA,iBAAA;AAAA,UACA,QAAA,EAAU,WAAA,CAAY,QAAA,EAAU,OAAO,CAAA;AAAA,UACvC,SAAA,EAAW,WAAA,CAAY,SAAA,EAAW,OAAO,CAAA;AAAA,UACzC,YAAA;AAAA,UACA;AAAA;AAAA;AACF;AAAA,GACF;AAEJ","file":"workbench-dialog.js","sourcesContent":["import { X } from 'lucide';\n\nimport type { KerfUiContent } from '../../../shared/content/semantic-content.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { remify } from '../../../shared/styles/css-values.js';\nimport { ToolbarControlGroup } from '../../actions/toolbar-control-group/toolbar-control-group.js';\nimport { ToolbarText } from '../../actions/toolbar-text/toolbar-text.js';\nimport {\n Workbench,\n type WorkbenchMainBottomToolbar,\n type WorkbenchPanel,\n} from '../../layout/workbench/workbench.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport {\n DialogSurface,\n type DialogSurfaceHeight,\n type DialogSurfaceMaxHeight,\n type DialogSurfaceRootAttributes,\n type DialogSurfaceSize,\n} from '../surface-scaffold/surface-scaffold.js';\n\n// Open and close it like any DialogSurface, from the same import.\nexport {\n closeDialog,\n type DialogCloseSource,\n type DialogRequestCloseDetail,\n openDialog,\n} from '../surface-scaffold/surface-scaffold.js';\n\n/**\n * Application `data-*` identity on the dialog root, such as `data-key`; the\n * dialog's own configuration attributes stay protected.\n */\nexport type WorkbenchDialogRootAttributes = DialogSurfaceRootAttributes;\n\nexport interface WorkbenchDialogProps {\n /**\n * The dialog's id, for `openDialog(document.getElementById(id))`. The\n * Workbench inside is `<id>-workbench`, so its rails are\n * `<id>-workbench-left-rail` and `<id>-workbench-right-rail`.\n */\n id: string;\n /** The dialog's accessible name. */\n label: string;\n /** The dialog's primary title: an xl heading in the work area's toolbar. */\n title: string;\n /**\n * A short supporting line under the title. It is the dialog's accessible\n * description (`aria-describedby` to its `<id>-description`) unless\n * `describedBy` names other content.\n */\n description?: string;\n /**\n * Id of the element whose text is the dialog's accessible description, in\n * place of `description`, such as app-owned summary copy in `main`.\n */\n describedBy?: string;\n /** Groups after the title in the work area's toolbar. */\n leading?: KerfUiContent;\n /** Header controls before the close control, such as a `ToolbarControlGroup`. */\n actions?: KerfUiContent;\n /** The work area. */\n main: KerfUiContent;\n /** Fixed content over the work area's bottom toolbar, such as a status line. */\n mainFooter?: KerfUiContent;\n /** The work area's bottom toolbar, usually the dialog's buttons. */\n mainBottomToolbar?: WorkbenchMainBottomToolbar;\n /**\n * Side rails with their own toolbars. On compact devices each presents as\n * an overlay over the work area; the app starts it collapsed and its\n * `toolbar.toggle` shows it.\n */\n leftRail?: WorkbenchPanel;\n rightRail?: WorkbenchPanel;\n /** A bottom drawer under the work area. */\n bottomDrawer?: WorkbenchPanel;\n /**\n * Fill the screen with the rails as overlays: derive from\n * `deviceClass().value.compact`.\n */\n compact?: boolean;\n /** The close control's accessible name (default `Close`). */\n closeLabel?: string;\n /** Close on a press on the backdrop; otherwise the panel pulses. */\n lightDismiss?: boolean;\n /** Roomy preferred width preset (default `large`). */\n size?: DialogSurfaceSize;\n /** Roomy preferred width; takes precedence over `size`. */\n preferredWidth?: CssLength;\n /** Roomy definite height (default 560px), bounded by the viewport. */\n height?: DialogSurfaceHeight;\n /** Roomy height cap in place of a definite height. */\n maxHeight?: DialogSurfaceMaxHeight;\n /** Roomy edge clearance from the viewport. */\n viewportGutter?: CssLength;\n /** Minimum work-area width beside inline rails, in px (Workbench default 320). */\n mainMinSize?: number;\n rootAttributes?: WorkbenchDialogRootAttributes;\n className?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\n/** A rail presents as an overlay in a compact dialog, as the app left it otherwise. */\nfunction compactRail(\n panel: WorkbenchPanel | undefined,\n compact: boolean,\n): WorkbenchPanel | undefined {\n return panel && compact ? { ...panel, presentation: 'overlay' } : panel;\n}\n\n/**\n * A workbench dialog: a modal whose body is a `Workbench`. The work area's\n * toolbar carries the dialog's primary title, its actions, and the close\n * control; side rails keep their own toolbars and run the dialog's full\n * height. On compact devices it fills the screen and its rails become\n * overlays over the work area, shown by their toolbar toggles, so the work\n * area keeps its width. Open it with `openDialog()`; the app owns each\n * rail's `collapsed` state, and `wireWorkbench` closes an overlay rail on\n * Escape or a press outside it before the dialog sees the Escape. Built from\n * `DialogSurface` and `Workbench`.\n */\nexport function WorkbenchDialog({\n id,\n label,\n title,\n description,\n describedBy,\n leading,\n actions,\n main,\n mainFooter,\n mainBottomToolbar,\n leftRail,\n rightRail,\n bottomDrawer,\n compact = false,\n closeLabel = 'Close',\n lightDismiss = false,\n size = 'large',\n preferredWidth,\n height,\n maxHeight,\n viewportGutter,\n mainMinSize,\n rootAttributes,\n className = '',\n slot,\n}: WorkbenchDialogProps) {\n return (\n <DialogSurface\n id={id}\n label={label}\n describedBy={\n describedBy ??\n (description === undefined ? undefined : `${id}-description`)\n }\n withoutHeader\n lightDismiss={lightDismiss}\n closeLabel={closeLabel}\n size={size}\n presentation={compact ? 'fullscreen' : 'modal'}\n preferredWidth={preferredWidth}\n height={\n compact\n ? undefined\n : maxHeight === undefined\n ? (height ?? remify(560))\n : height\n }\n maxHeight={compact ? undefined : maxHeight}\n viewportGutter={compact ? undefined : viewportGutter}\n bodyInset=\"none\"\n bodyLayout=\"fill\"\n rootAttributes={{\n ...rootAttributes,\n 'data-dialog-layout': 'workbench',\n }}\n className={className}\n slot={slot}\n >\n <Workbench\n id={`${id}-workbench`}\n label={label}\n mainToolbar={{\n label: title,\n title: (\n <ToolbarText\n text={title}\n description={description}\n descriptionId={\n description === undefined ? undefined : `${id}-description`\n }\n size=\"xlarge\"\n id={`${id}-title`}\n headingLevel={2}\n />\n ),\n leading,\n trailing: actions,\n // After any hidden right rail's toggle, so Close stays outermost.\n end: (\n <ToolbarControlGroup appearance=\"borderless\" single>\n <button\n type=\"button\"\n aria-label={closeLabel}\n data-dialog-close=\"\"\n >\n <LucideIcon icon={X} name=\"x\" />\n </button>\n </ToolbarControlGroup>\n ),\n }}\n main={main}\n mainFooter={mainFooter}\n mainBottomToolbar={mainBottomToolbar}\n leftRail={compactRail(leftRail, compact)}\n rightRail={compactRail(rightRail, compact)}\n bottomDrawer={bottomDrawer}\n mainMinSize={mainMinSize}\n />\n </DialogSurface>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/components/surfaces/workbench-dialog/workbench-dialog.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GA,SAAS,WAAA,CACP,OACA,OAAA,EAC4B;AAC5B,EAAA,OAAO,SAAS,OAAA,GAAU,EAAE,GAAG,KAAA,EAAO,YAAA,EAAc,WAAU,GAAI,KAAA;AACpE;AAaO,SAAS,eAAA,CAAgB;AAAA,EAC9B,EAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,WAAA;AAAA,EACA,WAAA;AAAA,EACA,OAAA;AAAA,EACA,OAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA,iBAAA;AAAA,EACA,QAAA;AAAA,EACA,SAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA,GAAU,KAAA;AAAA,EACV,QAAA,GAAW,KAAA;AAAA,EACX,UAAA,GAAa,OAAA;AAAA,EACb,YAAA,GAAe,KAAA;AAAA,EACf,IAAA,GAAO,OAAA;AAAA,EACP,cAAA;AAAA,EACA,MAAA;AAAA,EACA,SAAA;AAAA,EACA,cAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,SAAA,GAAY,EAAA;AAAA,EACZ;AACF,CAAA,EAAyB;AACvB,EAAA,uBACE,GAAA;AAAA,IAAC,aAAA;AAAA,IAAA;AAAA,MACC,EAAA;AAAA,MACA,KAAA;AAAA,MACA,aACE,WAAA,KACC,WAAA,KAAgB,MAAA,GAAY,MAAA,GAAY,GAAG,EAAE,CAAA,YAAA,CAAA,CAAA;AAAA,MAEhD,aAAA,EAAa,IAAA;AAAA,MACb,YAAA;AAAA,MACA,UAAA;AAAA,MACA,IAAA;AAAA,MACA,YAAA,EAAc,QAAA,GAAW,UAAA,GAAa,OAAA,GAAU,YAAA,GAAe,OAAA;AAAA,MAC/D,cAAA;AAAA,MACA,MAAA,EACE,OAAA,IAAW,CAAC,QAAA,GACR,MAAA,GACA,cAAc,MAAA,GACX,MAAA,IAAU,MAAA,CAAO,GAAG,CAAA,GACrB,MAAA;AAAA,MAER,SAAA,EAAW,OAAA,IAAW,CAAC,QAAA,GAAW,MAAA,GAAY,SAAA;AAAA,MAC9C,cAAA,EAAgB,UAAU,MAAA,GAAY,cAAA;AAAA,MACtC,SAAA,EAAU,MAAA;AAAA,MACV,UAAA,EAAW,MAAA;AAAA,MACX,cAAA,EAAgB;AAAA,QACd,GAAG,cAAA;AAAA,QACH,oBAAA,EAAsB;AAAA,OACxB;AAAA,MACA,SAAA;AAAA,MACA,IAAA;AAAA,MAEA,QAAA,kBAAA,GAAA;AAAA,QAAC,SAAA;AAAA,QAAA;AAAA,UACC,EAAA,EAAI,GAAG,EAAE,CAAA,UAAA,CAAA;AAAA,UACT,KAAA;AAAA,UACA,WAAA,EAAa;AAAA,YACX,KAAA,EAAO,KAAA;AAAA,YACP,KAAA,kBACE,GAAA;AAAA,cAAC,WAAA;AAAA,cAAA;AAAA,gBACC,IAAA,EAAM,KAAA;AAAA,gBACN,WAAA;AAAA,gBACA,aAAA,EACE,WAAA,KAAgB,MAAA,GAAY,MAAA,GAAY,GAAG,EAAE,CAAA,YAAA,CAAA;AAAA,gBAE/C,IAAA,EAAK,QAAA;AAAA,gBACL,EAAA,EAAI,GAAG,EAAE,CAAA,MAAA,CAAA;AAAA,gBACT,YAAA,EAAc;AAAA;AAAA,aAChB;AAAA,YAEF,OAAA;AAAA,YACA,QAAA,EAAU,OAAA;AAAA;AAAA,YAEV,qBACE,GAAA,CAAC,mBAAA,EAAA,EAAoB,UAAA,EAAW,YAAA,EAAa,QAAM,IAAA,EACjD,QAAA,kBAAA,GAAA;AAAA,cAAC,QAAA;AAAA,cAAA;AAAA,gBACC,IAAA,EAAK,QAAA;AAAA,gBACL,YAAA,EAAY,UAAA;AAAA,gBACZ,mBAAA,EAAkB,EAAA;AAAA,gBAElB,QAAA,kBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,IAAA,EAAM,CAAA,EAAG,MAAK,GAAA,EAAI;AAAA;AAAA,aAChC,EACF;AAAA,WAEJ;AAAA,UACA,IAAA;AAAA,UACA,UAAA;AAAA,UACA,iBAAA;AAAA,UACA,QAAA,EAAU,WAAA,CAAY,QAAA,EAAU,OAAO,CAAA;AAAA,UACvC,SAAA,EAAW,WAAA,CAAY,SAAA,EAAW,OAAO,CAAA;AAAA,UACzC,YAAA;AAAA,UACA;AAAA;AAAA;AACF;AAAA,GACF;AAEJ","file":"workbench-dialog.js","sourcesContent":["import { X } from 'lucide';\n\nimport type { KerfUiContent } from '../../../shared/content/semantic-content.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { remify } from '../../../shared/styles/css-values.js';\nimport { ToolbarControlGroup } from '../../actions/toolbar-control-group/toolbar-control-group.js';\nimport { ToolbarText } from '../../actions/toolbar-text/toolbar-text.js';\nimport {\n Workbench,\n type WorkbenchMainBottomToolbar,\n type WorkbenchPanel,\n} from '../../layout/workbench/workbench.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport {\n DialogSurface,\n type DialogSurfaceHeight,\n type DialogSurfaceMaxHeight,\n type DialogSurfaceRootAttributes,\n type DialogSurfaceSize,\n} from '../surface-scaffold/surface-scaffold.js';\n\n// Open and close it like any DialogSurface, from the same import.\nexport {\n closeDialog,\n type DialogCloseSource,\n type DialogRequestCloseDetail,\n openDialog,\n} from '../surface-scaffold/surface-scaffold.js';\n\n/**\n * Application `data-*` identity on the dialog root, such as `data-key`; the\n * dialog's own configuration attributes stay protected.\n */\nexport type WorkbenchDialogRootAttributes = DialogSurfaceRootAttributes;\n\nexport interface WorkbenchDialogProps {\n /**\n * The dialog's id, for `openDialog(document.getElementById(id))`. The\n * Workbench inside is `<id>-workbench`, so its rails are\n * `<id>-workbench-left-rail` and `<id>-workbench-right-rail`.\n */\n id: string;\n /** The dialog's accessible name. */\n label: string;\n /** The dialog's primary title: an xl heading in the work area's toolbar. */\n title: string;\n /**\n * A short supporting line under the title. It is the dialog's accessible\n * description (`aria-describedby` to its `<id>-description`) unless\n * `describedBy` names other content.\n */\n description?: string;\n /**\n * Id of the element whose text is the dialog's accessible description, in\n * place of `description`, such as app-owned summary copy in `main`.\n */\n describedBy?: string;\n /** Groups after the title in the work area's toolbar. */\n leading?: KerfUiContent;\n /** Header controls before the close control, such as a `ToolbarControlGroup`. */\n actions?: KerfUiContent;\n /** The work area. */\n main: KerfUiContent;\n /** Fixed content over the work area's bottom toolbar, such as a status line. */\n mainFooter?: KerfUiContent;\n /** The work area's bottom toolbar, usually the dialog's buttons. */\n mainBottomToolbar?: WorkbenchMainBottomToolbar;\n /**\n * Side rails with their own toolbars. On compact devices each presents as\n * an overlay over the work area; the app starts it collapsed and its\n * `toolbar.toggle` shows it.\n */\n leftRail?: WorkbenchPanel;\n rightRail?: WorkbenchPanel;\n /** A bottom drawer under the work area. */\n bottomDrawer?: WorkbenchPanel;\n /**\n * Fill the screen with the rails as overlays: derive from\n * `deviceClass().value.compact`.\n */\n compact?: boolean;\n /**\n * Render in flow and always shown (DialogSurface `presentation=\"embedded\"`)\n * instead of as a modal, for a catalog, a design canvas, or a document. It\n * keeps its `height`; `openDialog` and `closeDialog` leave it alone.\n */\n embedded?: boolean;\n /** The close control's accessible name (default `Close`). */\n closeLabel?: string;\n /** Close on a press on the backdrop; otherwise the panel pulses. */\n lightDismiss?: boolean;\n /** Roomy preferred width preset (default `large`). */\n size?: DialogSurfaceSize;\n /** Roomy preferred width; takes precedence over `size`. */\n preferredWidth?: CssLength;\n /** Roomy definite height (default 560px), bounded by the viewport. */\n height?: DialogSurfaceHeight;\n /** Roomy height cap in place of a definite height. */\n maxHeight?: DialogSurfaceMaxHeight;\n /** Roomy edge clearance from the viewport. */\n viewportGutter?: CssLength;\n /** Minimum work-area width beside inline rails, in px (Workbench default 320). */\n mainMinSize?: number;\n rootAttributes?: WorkbenchDialogRootAttributes;\n className?: string;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\n/** A rail presents as an overlay in a compact dialog, as the app left it otherwise. */\nfunction compactRail(\n panel: WorkbenchPanel | undefined,\n compact: boolean,\n): WorkbenchPanel | undefined {\n return panel && compact ? { ...panel, presentation: 'overlay' } : panel;\n}\n\n/**\n * A workbench dialog: a modal whose body is a `Workbench`. The work area's\n * toolbar carries the dialog's primary title, its actions, and the close\n * control; side rails keep their own toolbars and run the dialog's full\n * height. On compact devices it fills the screen and its rails become\n * overlays over the work area, shown by their toolbar toggles, so the work\n * area keeps its width. Open it with `openDialog()`; the app owns each\n * rail's `collapsed` state, and `wireWorkbench` closes an overlay rail on\n * Escape or a press outside it before the dialog sees the Escape. Built from\n * `DialogSurface` and `Workbench`.\n */\nexport function WorkbenchDialog({\n id,\n label,\n title,\n description,\n describedBy,\n leading,\n actions,\n main,\n mainFooter,\n mainBottomToolbar,\n leftRail,\n rightRail,\n bottomDrawer,\n compact = false,\n embedded = false,\n closeLabel = 'Close',\n lightDismiss = false,\n size = 'large',\n preferredWidth,\n height,\n maxHeight,\n viewportGutter,\n mainMinSize,\n rootAttributes,\n className = '',\n slot,\n}: WorkbenchDialogProps) {\n return (\n <DialogSurface\n id={id}\n label={label}\n describedBy={\n describedBy ??\n (description === undefined ? undefined : `${id}-description`)\n }\n withoutHeader\n lightDismiss={lightDismiss}\n closeLabel={closeLabel}\n size={size}\n presentation={embedded ? 'embedded' : compact ? 'fullscreen' : 'modal'}\n preferredWidth={preferredWidth}\n height={\n compact && !embedded\n ? undefined\n : maxHeight === undefined\n ? (height ?? remify(560))\n : height\n }\n maxHeight={compact && !embedded ? undefined : maxHeight}\n viewportGutter={compact ? undefined : viewportGutter}\n bodyInset=\"none\"\n bodyLayout=\"fill\"\n rootAttributes={{\n ...rootAttributes,\n 'data-dialog-layout': 'workbench',\n }}\n className={className}\n slot={slot}\n >\n <Workbench\n id={`${id}-workbench`}\n label={label}\n mainToolbar={{\n label: title,\n title: (\n <ToolbarText\n text={title}\n description={description}\n descriptionId={\n description === undefined ? undefined : `${id}-description`\n }\n size=\"xlarge\"\n id={`${id}-title`}\n headingLevel={2}\n />\n ),\n leading,\n trailing: actions,\n // After any hidden right rail's toggle, so Close stays outermost.\n end: (\n <ToolbarControlGroup appearance=\"borderless\" single>\n <button\n type=\"button\"\n aria-label={closeLabel}\n data-dialog-close=\"\"\n >\n <LucideIcon icon={X} name=\"x\" />\n </button>\n </ToolbarControlGroup>\n ),\n }}\n main={main}\n mainFooter={mainFooter}\n mainBottomToolbar={mainBottomToolbar}\n leftRail={compactRail(leftRail, compact)}\n rightRail={compactRail(rightRail, compact)}\n bottomDrawer={bottomDrawer}\n mainMinSize={mainMinSize}\n />\n </DialogSurface>\n );\n}\n"]}
|
package/dist/workbench.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SafeHtml } from 'kerfjs';
|
|
2
2
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3
|
-
import {
|
|
3
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4
|
+
import { b as NavPane, N as NavStackProps } from './nav-stack-DwxpXxqJ.js';
|
|
4
5
|
import { ListConfig } from './list.js';
|
|
5
6
|
import { PaneConfig } from './pane.js';
|
|
6
7
|
import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
|
|
@@ -9,10 +10,10 @@ import { ToolbarConfig } from './toolbar.js';
|
|
|
9
10
|
import './css-values.js';
|
|
10
11
|
import './surface-tint-DQgYCaP9.js';
|
|
11
12
|
import './toolbar-text.js';
|
|
12
|
-
import './extension-attributes-mu8MFUl0.js';
|
|
13
13
|
import './flex-alignment-4ms8ZbV8.js';
|
|
14
14
|
import './scroll-clearance-BikHljTc.js';
|
|
15
15
|
import './sides-BPSWde0A.js';
|
|
16
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
16
17
|
import './lucide-icon.js';
|
|
17
18
|
import 'lucide';
|
|
18
19
|
|
|
@@ -263,6 +264,9 @@ interface WorkbenchProps {
|
|
|
263
264
|
className?: string;
|
|
264
265
|
/** Native named-slot assignment when composed inside a web component. */
|
|
265
266
|
slot?: string;
|
|
267
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
268
|
+
* editor node marker; the component's own markers stay protected. */
|
|
269
|
+
rootAttributes?: RootDataAttributes;
|
|
266
270
|
}
|
|
267
271
|
/**
|
|
268
272
|
* The Xcode-like multi-panel workspace: a collapsible left rail, right rail, and
|
|
@@ -277,6 +281,6 @@ interface WorkbenchProps {
|
|
|
277
281
|
* lives outside it and stays reachable). A panel may opt in to drag and keyboard resizing with
|
|
278
282
|
* `resizable`, which `wireWorkbench` drives. See `docs/23-app-layouts.md` §3.3.
|
|
279
283
|
*/
|
|
280
|
-
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;
|
|
284
|
+
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;
|
|
281
285
|
|
|
282
286
|
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 };
|
package/dist/workbench.js
CHANGED
package/docs/accessibility.md
CHANGED
|
@@ -8,23 +8,30 @@ These are normative contracts for package components and consuming applications.
|
|
|
8
8
|
- Decorative `LucideIcon` output is `aria-hidden`; pass `label` only when the SVG itself conveys meaning. `size="xs|s|m|l|xl"` selects the 12/16/20/24/32px root-scaled icon steps, and a positive numeric `size` converts pixels to rem; omitting `size` keeps 1em. Size changes the visual only, never the owning control's hit target or accessible name.
|
|
9
9
|
- `ListItem` uses native button Enter/Space behavior. `selected` maps to `aria-current="page"`; `pressed` maps to `aria-pressed`. Selected rows keep the normal foreground over their brand-tinted fill so text retains WCAG AA contrast in light and dark themes. Its leading icon visual is 18px while the row retains its 44px minimum target; multiline icons align to the first text line. Its `trailing` content is dormant and must not contain controls. Its `rootAttributes` slot accepts only application `data-*` metadata and deliberately cannot emit `role="menuitem"` in isolation—a true ARIA menu must own arrow, Home/End, Escape, and focus behavior as one widget.
|
|
10
10
|
- `ListItemLink` shares that row content and geometry but uses native anchor Enter behavior and requires `href`. It has no `action` or `pressed` state. `external` opens a new tab with `rel="noopener noreferrer"`; the default accessible name announces the new tab for a string label, so an explicit `accessibleLabel` should do the same. Disabled and loading links omit `href`, expose `aria-disabled`, and leave the tab order. Its trailing content remains dormant.
|
|
11
|
-
- `ListHeader` owns action naming, disabled state, and disclosure `aria-expanded`. Toggle mode supplies one decorative 18px `DisclosureArrow` when `actionIcon` is omitted; it mirrors `expanded` while the native button's accessible name stays stable. The application must update that controlled state and reveal or hide real content. A valid `count` is visually rendered in an `aria-hidden` neutral pill while the required localized `countLabel` becomes part of the owning heading or disclosure button's accessible name; zero remains a real count. Optional `badge` and `status` content can appear together and should each carry meaningful text. Its narrow `triggerAttributes` slot may describe a native popover
|
|
11
|
+
- `ListHeader` owns action naming, disabled state, and disclosure `aria-expanded`. Toggle mode supplies one decorative 18px `DisclosureArrow` when `actionIcon` is omitted; it mirrors `expanded` while the native button's accessible name stays stable. The application must update that controlled state and reveal or hide real content. A valid `count` is visually rendered in an `aria-hidden` neutral pill while the required localized `countLabel` becomes part of the owning heading or disclosure button's accessible name; zero remains a real count. Optional `badge` and `status` content can appear together and should each carry meaningful text. Name the region a toggle shows or hides with `controls` (its id, reported as `aria-controls`) and hide that region with `List hidden` when it is a List. Its narrow `triggerAttributes` slot may describe a native popover relationship with `popoverTarget`, `popoverTargetAction`, `aria-controls`, and `aria-haspopup`; the application owns the target surface and its focus/dismissal behavior.
|
|
12
12
|
- Dispose `wireTabBars` and `wireSearchFields` with their owning view. Disposal cancels queued controlled-render focus restoration, so a torn-down view cannot reclaim focus from its successor.
|
|
13
13
|
- `wireNavStack` moves focus into every newly active top view and remembers the last focused descendant of each mounted view for pop restoration. Mark a preferred initial heading or control with `data-nav-focus` (and `tabindex="-1"` when it is not normally tabbable); otherwise the helper uses the first enabled focusable descendant, then a programmatically focusable view-container fallback.
|
|
14
14
|
- In any `.kui-pane`, menu rows, `ListHeader` actions, and toolbar groups keep a minimum 44px target in both dimensions. A `ListHeader` fills the available inline width and keeps that action at the logical end, including in RTL. Its action visual defaults to 18px through `--kui-list-header-action-icon-size` inside a fitted 36px hover square; a transparent hit layer extends the pointer target to at least 44 × 44 around that square without moving layout or enlarging the painted surface. Compact headers are 36px tall like the rest of the compact List family, so their action target is 44px wide and clamped to the 36px header height instead of reaching into a neighboring row. Do not reduce the target to the visible icon, and do not force the button itself to 44px.
|
|
15
15
|
- `LoadingSpinner` is either labeled (`role="img"`) or hidden. Its rotation stops for reduced motion.
|
|
16
16
|
- A busy `ToolbarControlGroup` makes its controls inert and exposes `aria-busy`; its `busyLabel` is announced by an adjacent status node outside the inert group. Clear `busy` when the operation finishes so the controls rejoin the focus order.
|
|
17
17
|
- A bottom `Toolbar` uses `position="footer"` for footer semantics; top toolbars keep the default `header`. Workbench's main bottom toolbar sets this automatically.
|
|
18
|
-
- Interactive `ContentItem` cards are keyboard reachable. Set `selectionMode="toggle"` for a pressed button, `selectionMode="single"` for an option inside a listbox, or `selectionMode="multiple"` for a selectable row with a gridcell that can contain native controls. Place multiple-mode rows inside a labeled `List` or `Grid` with `selectionMode="multiple"`; the app owns the selection set and range gestures. Wire `wireContentItems` once so Enter and Space on the card activate its delegated action without activating it from a nested control. The activation click mirrors the key's Shift, Ctrl, and Cmd state, so Shift+Enter or Shift+Space can extend a range and Cmd/Ctrl+Enter or Cmd/Ctrl+Space can toggle one item through the same click handler a pointer uses. Disabled cards expose `aria-disabled` and leave the Tab order.
|
|
18
|
+
- Interactive `ContentItem` cards are keyboard reachable. Set `selectionMode="toggle"` for a pressed button, `selectionMode="single"` for an option inside a `List selectionMode="single"` listbox, or `selectionMode="multiple"` for a selectable row with a gridcell that can contain native controls. Place multiple-mode rows inside a labeled `List` or `Grid` with `selectionMode="multiple"`; the app owns the selection set and range gestures. Wire `wireContentItems` once so Enter and Space on the card activate its delegated action without activating it from a nested control. The activation click mirrors the key's Shift, Ctrl, and Cmd state, so Shift+Enter or Shift+Space can extend a range and Cmd/Ctrl+Enter or Cmd/Ctrl+Space can toggle one item through the same click handler a pointer uses. Disabled cards expose `aria-disabled` and leave the Tab order.
|
|
19
19
|
- An unlabeled `Skeleton` (including the value slots a component's `placeholder` prop renders) is decorative loading chrome: it is `aria-hidden`, conveys no information a user needs to act on, and is deliberately exempt from the WCAG 3:1 non-text-contrast target. Inside a solid `Badge` it stays subtle (about 2.1–4.4:1 in light, 2.4–2.8:1 in dark, depending on tone); `tests/browser/tone-contrast.spec.ts` holds those values as a regression floor rather than an accessibility threshold. Announce loading through a labeled `Skeleton`, `LoadingSpinner`, or `aria-busy` on the owning region, never through the skeleton's visibility.
|
|
20
20
|
- `StateBanner` defaults to polite `role="status"`; use `urgency="alert"` only for an attention-requiring failure. Its optional `badge` is persistent inline status/count content beside the title and is announced as part of the banner; keep it terse and do not rely on color alone for its meaning.
|
|
21
21
|
- A removable `Chip` has a native button with a specific `removeLabel`, such as "Remove Urgent tag". The button is absent for a plain chip and disabled for a disabled chip. Its leading `icon` is decorative; the visible label names the tag. `truncate` retains the full plain-text label as a native tooltip. Tag text remains visible because tone does not convey meaning alone. A link `Chip` (`href`) is a native anchor named by its visible label, with no remove button; `external` adds `target="_blank"`, `rel="noopener noreferrer"`, and an "(opens in new tab)" name suffix for a text label, and a disabled link chip drops `href`, sets `aria-disabled`, and leaves the tab order. `tone="inherit"` paints no fill, so its label keeps the surrounding text's contrast (a brand-loud bubble's white text included), and its focus ring is drawn in the surrounding foreground so it stays visible on a brand-colored surface. An action `Chip` (`action`) is one native `<button type="button">` with no nested control: its visible label names it unless `actionLabel` supplies a fuller name, which should contain that label ("Insert filter is:mine"). Enter and Space activate it, keyboard focus draws the focus ring (in the surrounding foreground for `tone="inherit"`), and a disabled action chip is a disabled button that leaves the tab order.
|
|
22
22
|
- `EmptyState` reports busy state through `aria-busy` and never relies on an illustration as its label.
|
|
23
23
|
- `Select` follows the Web Awesome host's standard `input`/`change` events. Application tests verify the live `value`, focus, and events—not attributes alone. Its decorative option icons and value-dependent selected content remain present after controlled rerenders, so the visible choice does not silently lose its non-text cue.
|
|
24
24
|
- `DisclosureArrow` is an 18px root-scaled decorative visual by default, not an interaction target. Its owning native control supplies a stable accessible name, pointer and keyboard interaction, and `aria-expanded`; multiple arrows keep independently controlled state. Consumers may resize it with the typed `size` prop without changing that ownership. Configured directions animate over the shortest path; a 180-degree closed-to-open tie uses counterclockwise rotation.
|
|
25
|
-
- `List` is layout-only by default and adds no `list` role. With `selectionMode="multiple"` and a required `ariaLabel`, it becomes a multi-select grid for `ContentItem` rows. With `wireContentItems` the grid is one Tab stop (roving `tabindex` on the last focused row, else the first selected, else the first enabled), kept across re-renders. Content that sits between rows but is not selectable (an activity group, a "messages skipped" divider) is a `ContentItem gridRow`: a `role="row"` with a `gridcell`, no `aria-selected`, and no Tab stop of its own; arrow keys skip it and its controls stay reachable by Tab. Give a scrollable List a bounded block size, avoid nested scroll owners, and keep focused children visible while scrolling.
|
|
25
|
+
- `List` is layout-only by default and adds no `list` role. With `selectionMode="single"` and a required `ariaLabel`, it becomes a single-select `role="listbox"` for `SummaryRow` or `ContentItem selectionMode="single"` options; the options own `aria-selected`, and the app owns the selection. With `wireSummaryRows` (SummaryRow options) or `wireContentItems` (ContentItem options) the listbox is one Tab stop (roving `tabindex` on the last focused option, else the selected one, else the first), Up/Down/Home/End move focus without selecting, and Enter/Space select the focused option through its click (Space on release). With `selectionMode="multiple"` and a required `ariaLabel`, it becomes a multi-select grid for `ContentItem` rows. With `landmark="region"` it becomes a named `role="region"` (a reader, a result picker, a board column), and with `landmark="group"` a named `role="group"` (a read-only field preview under its `FieldLabel`). A landmark List takes its name from `ariaLabel` or from `labelledBy`, the id of the visible label that names it (`aria-labelledby`), never both, and takes no `selectionMode`. A `ColumnTrack` with `ariaLabel` is likewise a named `role="region"`. With `wireContentItems` the grid is one Tab stop (roving `tabindex` on the last focused row, else the first selected, else the first enabled), kept across re-renders. Content that sits between rows but is not selectable (an activity group, a "messages skipped" divider) is a `ContentItem gridRow`: a `role="row"` with a `gridcell`, no `aria-selected`, and no Tab stop of its own; arrow keys skip it and its controls stay reachable by Tab. Give a scrollable List a bounded block size, avoid nested scroll owners, and keep focused children visible while scrolling.
|
|
26
26
|
- `Grid` is layout-only by default. With `selectionMode="multiple"` and a required `ariaLabel`, it becomes a multi-select grid for `ContentItem` tiles; each tile remains a row with a gridcell, including when the CSS grid wraps.
|
|
27
27
|
|
|
28
|
+
Apps can always intercept the listbox and grid keyboard: Kerf skips a key
|
|
29
|
+
event that is already `defaultPrevented`. Handle the key first (on the option
|
|
30
|
+
or row, in the capture phase, or from a listener added to the wired root before
|
|
31
|
+
`wireSummaryRows` / `wireContentItems`) and call `preventDefault()`; Kerf then
|
|
32
|
+
neither moves focus nor activates, and a prevented Space press does not select
|
|
33
|
+
on release. Unprevented keys keep Kerf's behavior.
|
|
34
|
+
|
|
28
35
|
In a multi-select ContentItem grid, `wireContentItems` moves focus between
|
|
29
36
|
enabled rows on Up/Down and to the first/last enabled row on Home/End. Native
|
|
30
37
|
controls inside a row retain those keys. In a `Grid`, Left/Right moves between
|
|
@@ -65,6 +72,12 @@ popup open, select only enabled choices or clear the selection, and emit the
|
|
|
65
72
|
ordinary `input` and `change` events only when the value changes. Their labels
|
|
66
73
|
come from the application so they can be localized.
|
|
67
74
|
|
|
75
|
+
A `popupNote` (on `Select` and on `PopupMenu`'s top-level menu) is quiet text
|
|
76
|
+
at the bottom of the open popup. It is the listbox's or menu's
|
|
77
|
+
`aria-description`, so a screen reader announces it with the list, and the
|
|
78
|
+
visible line is `aria-hidden`: it is never an option or menu item and takes no
|
|
79
|
+
focus.
|
|
80
|
+
|
|
68
81
|
A toolbar filter menu (a "Filter by label" funnel) is a multiple Select with
|
|
69
82
|
`selectedPresentation="icon-only"` and a fixed `triggerIcon`; the types accept
|
|
70
83
|
`triggerIcon` only there, and require it there, because no single chosen
|
|
@@ -443,9 +456,15 @@ Set `disabled` for a known tab that must keep its visible name while unavailable
|
|
|
443
456
|
It leaves controlled `selected` state intact but disables selection, closing,
|
|
444
457
|
dragging, and roving keyboard focus; it does not imply loading or `aria-busy`.
|
|
445
458
|
For an application-owned panel, pass the tab button's DOM ID as `tabId` and the
|
|
446
|
-
panel's DOM ID as `panelId`. The tab then renders `aria-controls=panelId
|
|
447
|
-
`
|
|
448
|
-
|
|
459
|
+
panel's DOM ID as `panelId`. The tab then renders `aria-controls=panelId`. Render
|
|
460
|
+
the panel with `TabPanel` (`@kerfjs/ui/tab-panel`) with the same two IDs: its `id`
|
|
461
|
+
is the tab's `panelId` and its `tabId` is the tab's `tabId`, which it writes as
|
|
462
|
+
`aria-labelledby` on its `role="tabpanel"` region. Selection stays application
|
|
463
|
+
state: render every panel of the set and set `hidden` on all but the selected
|
|
464
|
+
tab's, and set `busy` (`aria-busy`) while a pending tab's panel shows
|
|
465
|
+
placeholders. TabPanel adds no inset or chrome; its content owns those. These
|
|
466
|
+
DOM IDs are distinct from `id`, which remains the application's tab identity
|
|
467
|
+
for actions.
|
|
449
468
|
`TabBarItem.rootAttributes` accepts application `data-*` metadata only; runtime
|
|
450
469
|
filtering rejects roles plus case variants of component- or wiring-owned
|
|
451
470
|
action, identity, selection, drag, drop, and component attributes. An optional
|
|
@@ -539,10 +558,28 @@ and Shift+Space extends to it; Cmd/Ctrl+A selects every enabled chip. A
|
|
|
539
558
|
click selects one chip, Cmd/Ctrl-click toggles one, and Shift-click extends.
|
|
540
559
|
Hidden inputs submit each selected value under `name`. The focus ring follows
|
|
541
560
|
`:focus-visible` on the option. Every chip color is a theme token resolved through
|
|
542
|
-
`light-dark()`, so inside a dark appearance scope (
|
|
543
|
-
or any `color-scheme: dark` ancestor) the pills, labels, checked tint, and
|
|
561
|
+
`light-dark()`, so inside a dark appearance scope (`scheme="dark"`, `.kui-dark`,
|
|
562
|
+
`.kui-invert`, or any `color-scheme: dark` ancestor) the pills, labels, checked tint, and
|
|
544
563
|
focus ring read on inverse chrome without overrides.
|
|
545
564
|
|
|
565
|
+
With `overflow="scroll"`, any of these groups keeps its chips on one row that
|
|
566
|
+
scrolls horizontally inside the group, with no visible scrollbar. Its role,
|
|
567
|
+
naming, Tab stops, and keys do not change. Moving focus with the keyboard
|
|
568
|
+
scrolls the focused chip into view, and `wireChoiceChips` keeps the checked
|
|
569
|
+
chip in view after a render or change, scrolling only the group. The group
|
|
570
|
+
pads its clip so a chip's focus ring is never cut off. With
|
|
571
|
+
`wireScrollDividers`, an edge with chips scrolled past it fades, so hidden
|
|
572
|
+
chips are signaled visually; the chips stay in the accessibility tree and in
|
|
573
|
+
keyboard order either way.
|
|
574
|
+
|
|
575
|
+
## Text live readouts
|
|
576
|
+
|
|
577
|
+
A Text that reports a result as the user works, such as a filter count or a
|
|
578
|
+
search readout beside the field, sets `live="polite"` (or `"assertive"` for an
|
|
579
|
+
urgent change) so screen readers announce the update without moving focus.
|
|
580
|
+
Its test hooks and row keys go in `rootAttributes` (`data-*` only); Text's own
|
|
581
|
+
markers stay protected.
|
|
582
|
+
|
|
546
583
|
## TextField
|
|
547
584
|
|
|
548
585
|
`TextField` renders a native `<input>` (or, with `multiline`, a `<textarea>`)
|
|
@@ -579,7 +616,13 @@ applies. Numeric `min`, `max`, and `step` props do not pass to date inputs.
|
|
|
579
616
|
after the input. It is hidden while the field is empty, is a normal Tab stop,
|
|
580
617
|
and with `wireTextFields(root)` empties the field, dispatches bubbling `input`
|
|
581
618
|
and `change` events as typing would, and returns focus to the field. A
|
|
582
|
-
disabled or read-only field's clear button is disabled. `
|
|
619
|
+
disabled or read-only field's clear button is disabled. `toggle` adds an
|
|
620
|
+
icon toggle `<button>` after the input (after the clear button), named by its
|
|
621
|
+
`label`, reporting `aria-pressed`, and running its delegated `action`; the
|
|
622
|
+
application flips `pressed` (a password's Show, an editor's Not set). It is a
|
|
623
|
+
normal Tab stop and is disabled with a disabled or read-only field. A
|
|
624
|
+
multi-line field keeps it after its textarea, pinned to the top end.
|
|
625
|
+
`showCount` (with
|
|
583
626
|
`maxLength`) shows a live `count / maxLength` beside the hint that
|
|
584
627
|
`wireTextFields` keeps current. Compact text grows to 16px on coarse-pointer
|
|
585
628
|
touch screens so focusing a field never zooms the page in iOS.
|
package/docs/app-layouts.md
CHANGED
|
@@ -6,7 +6,9 @@ This guide maps a **data + interaction + device** situation to the layout to
|
|
|
6
6
|
reach for, and states the device-class threshold at which the presentation
|
|
7
7
|
changes. The layouts:
|
|
8
8
|
|
|
9
|
-
- [`NavStack`](nav-stack.md) — push/pop navigation (a single pane
|
|
9
|
+
- [`NavStack`](nav-stack.md) — push/pop navigation (a single pane that may
|
|
10
|
+
navigate is a one-entry stack; a single pane that never does can be a
|
|
11
|
+
[filled `Pane`](#one-pane-on-the-whole-screen)).
|
|
10
12
|
- [`SplitView`](split-view.md) — list-detail (two panes, collapsing to a stack).
|
|
11
13
|
- [`Workbench`](workbench.md) — the Xcode-like collapsible rails + drawer.
|
|
12
14
|
- [`TabNavigator`](tab-navigator.md) — the iOS bottom tab bar (each tab a stack).
|
|
@@ -26,6 +28,70 @@ and applying `.kui-app-root` to the direct mount container; see the
|
|
|
26
28
|
height with `100dvh`; a full-viewport app instead adds `data-viewport="locked"`
|
|
27
29
|
to its `.kui-app-root`, which locks the document (not the shell) to `100dvh`.
|
|
28
30
|
|
|
31
|
+
### Sizing a nested layout
|
|
32
|
+
|
|
33
|
+
A whole-screen layout fills its parent's height and has none of its own: its
|
|
34
|
+
scenes are positioned over the space they are given, so they add no height.
|
|
35
|
+
As the app's root, or filling a Pane the app sizes, it fills that height. Below
|
|
36
|
+
the root, wrap it in a [`SizedRegion`](../ai/components/sized-region.md):
|
|
37
|
+
|
|
38
|
+
- **`height="fill"`** (the default) takes the rest of a flex column, such as a
|
|
39
|
+
Pane's content after the items above it, or all of a parent with a definite
|
|
40
|
+
height.
|
|
41
|
+
- **`minHeight`** gives the layout a usable height even in content that sizes
|
|
42
|
+
to itself. An ordinary `min-height` in app CSS does not: a percentage height
|
|
43
|
+
never resolves against it, so the layout still collapses to its bar.
|
|
44
|
+
- **`maxHeight`** stops a fill from growing past a readable size, and a typed
|
|
45
|
+
`height` sets it outright.
|
|
46
|
+
|
|
47
|
+
```tsx
|
|
48
|
+
<Pane label="Project">
|
|
49
|
+
<ContentItem>…</ContentItem>
|
|
50
|
+
<SizedRegion minHeight={rem(20)}>
|
|
51
|
+
<NavStack id="activity" label="Activity" views={views} />
|
|
52
|
+
</SizedRegion>
|
|
53
|
+
</Pane>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Don't place a whole-screen layout inside a component that sizes to its content
|
|
57
|
+
(a `List`, a `ContentItem`): it collapses there, and that placement is not a
|
|
58
|
+
supported composition.
|
|
59
|
+
|
|
60
|
+
### One pane on the whole screen
|
|
61
|
+
|
|
62
|
+
Two compositions fill the screen with a single pane. Pick by whether the screen
|
|
63
|
+
navigates:
|
|
64
|
+
|
|
65
|
+
- **A filled `Pane`** (`<Pane fill>`) as the direct child of `.kui-app-root`:
|
|
66
|
+
for a screen that is one pane and stays one pane, such as a notes screen or a
|
|
67
|
+
single settings form with no subpages. Its header and footer stay pinned and
|
|
68
|
+
its content scrolls between them, exactly as in a layout's view, with no stack
|
|
69
|
+
and no wiring. It has no back button, no view transitions, and no compact
|
|
70
|
+
chrome: `compactChrome` applies only where a container presents compactly.
|
|
71
|
+
- **A one-entry [`NavStack`](nav-stack.md)**: for a screen that pushes views
|
|
72
|
+
(a settings subpage on tap) or will, or that needs the stack's chrome: a
|
|
73
|
+
title bar with a back control, a bottom toolbar, overlay or clear chrome,
|
|
74
|
+
`compactChrome`, and `wireNavStack`. Starting with one entry costs nothing
|
|
75
|
+
when the second view arrives.
|
|
76
|
+
|
|
77
|
+
Without `fill`, a Pane takes its content's height, so a root Pane ends after
|
|
78
|
+
its content. `fill` also takes the rest of a flex column or all of a
|
|
79
|
+
`SizedRegion` or grid cell. A Pane that is the only child of a `NavStack`
|
|
80
|
+
view, `TabNavigator` scene, or `Workbench` region already fills it; it needs
|
|
81
|
+
no `fill`.
|
|
82
|
+
|
|
83
|
+
```tsx
|
|
84
|
+
<div class="kui-app-root">
|
|
85
|
+
<Pane
|
|
86
|
+
fill
|
|
87
|
+
label="Notes"
|
|
88
|
+
header={<Toolbar label="Notes" leading={<ToolbarText text="Notes" size="xlarge" />} />}
|
|
89
|
+
>
|
|
90
|
+
<ContentItem>…</ContentItem>
|
|
91
|
+
</Pane>
|
|
92
|
+
</div>
|
|
93
|
+
```
|
|
94
|
+
|
|
29
95
|
## Safe areas
|
|
30
96
|
|
|
31
97
|
On a device with unsafe areas (a notch, rounded corners, a home indicator) and a
|
|
@@ -200,6 +266,9 @@ because the dismissal is decided at the click.
|
|
|
200
266
|
|
|
201
267
|
- **Settings screen (simple):** one `NavStack` entry per screen; push a subpage
|
|
202
268
|
on tap. No `SplitView`/`Workbench` — it is a single flow.
|
|
269
|
+
- **One-screen tool (no navigation):** a notes pad or a single form with no
|
|
270
|
+
subpages is a filled `Pane` (`fill`) in `.kui-app-root`. Switch it to a
|
|
271
|
+
one-entry `NavStack` the day it needs a second view.
|
|
203
272
|
- **Mail (drill-down + two-pane):** `SplitView` with `list={<ThreadList/>}` and
|
|
204
273
|
`detail={<Message/>}`, `compact={device.value.compact}`,
|
|
205
274
|
`detailActive={selected != null}`. On desktop both panes show with a resizable
|
package/docs/backdrop-image.md
CHANGED
|
@@ -55,6 +55,11 @@ import { remify, uiColor } from '@kerfjs/ui/css-values';
|
|
|
55
55
|
surface color.
|
|
56
56
|
- `blur` (`{ radius?, blurredSrc?, dim? }`) blurs the image progressively as it
|
|
57
57
|
scrolls away (see [Progressive blur](#progressive-blur)).
|
|
58
|
+
- `deferOffscreen` skips painting the image block while it is off screen
|
|
59
|
+
(`content-visibility: auto`), for long feeds of media cards. It keeps the
|
|
60
|
+
block's reserved size. It is opt-in because a large scroll jump (scrollbar
|
|
61
|
+
drag, End or Home) paints newly visible images blank for a frame; see
|
|
62
|
+
[layout](layout.md).
|
|
58
63
|
- `scrim`: `bottom` darkens toward the block end where an overlay title sits,
|
|
59
64
|
`full` dims the image evenly. A scrim is dark in both color schemes, so the
|
|
60
65
|
overlay takes the dark scheme over it: default-tone titles and controls read
|
|
@@ -92,6 +97,11 @@ factor times that distance, so the image moves slower than the content. There
|
|
|
92
97
|
is no scroll listener and no `background-attachment: fixed`, and the compositor
|
|
93
98
|
runs the animation.
|
|
94
99
|
|
|
100
|
+
The timeline, the keyframes, and the fallbacks below come from the shared
|
|
101
|
+
scroll-effect layer that [`ScrollEffect`](scroll-effect.md) also runs on, so
|
|
102
|
+
`@kerfjs/ui/backdrop-image.css` imports `@kerfjs/ui/scroll-effect.css`. Use
|
|
103
|
+
`ScrollEffect` to give other content parallax, reveal, fade, scale, or dim.
|
|
104
|
+
|
|
95
105
|
## Progressive blur
|
|
96
106
|
|
|
97
107
|
`blur` stacks a blurred copy of the image over the sharp one and fades the
|
package/docs/button.md
CHANGED
|
@@ -1,6 +1,34 @@
|
|
|
1
1
|
# Button
|
|
2
2
|
|
|
3
|
-
`Button` renders a native `<button>`, or a link when given `
|
|
3
|
+
`Button` renders a native `<button>`, or a link when given `link`. Use it for a standalone action outside a `ToolbarControlGroup`.
|
|
4
|
+
|
|
5
|
+
## Links
|
|
6
|
+
|
|
7
|
+
`link` makes a Button an `<a>`: pass a URL string, a `URL` (written as its `.href`), or `{ href, target }` when it opens elsewhere. A link keeps whatever emphasis the Button has, so a link can still look like a filled or outlined button.
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
<Button link="/docs">Docs</Button>
|
|
11
|
+
<Button emphasis="secondary" link={{ href: 'https://example.com', target: '_blank' }}>
|
|
12
|
+
Example
|
|
13
|
+
</Button>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
`link` is the preferred form of the older `href` and `target` props, which keep working. Give one form or the other: a Button with `link` and `href` or `target` throws. A link that opens in a new tab (`target: '_blank'`) also gets `rel="noopener noreferrer"`, as a `Chip`'s `external` does, so the opened page can't reach this one through `window.opener` or see it as its referrer. A disabled link drops its destination and reports `aria-disabled="true"`. A link cannot be a toggle (`pressed`), a disclosure control (`expanded`), or a popover invoker (`popoverTarget`). kerf's URL screening applies to the destination as to any `href`, so a `javascript:` URL is dropped.
|
|
17
|
+
|
|
18
|
+
## Link emphasis
|
|
19
|
+
|
|
20
|
+
`emphasis="link"` draws any Button as an inline text link: underlined text in its tone's link color (a neutral Button takes the document link color, `--kui-color-text-link`), at the surrounding text's size, weight, and line height, with no fill, border, padding, or control height. It works on a `<button>` with an `action` and on a link alike, so choose it for how the control should look, not for what it does.
|
|
21
|
+
|
|
22
|
+
```tsx
|
|
23
|
+
<Text>
|
|
24
|
+
Published 2 hours ago · <Button emphasis="link" link="#source">Source</Button>
|
|
25
|
+
</Text>
|
|
26
|
+
<Button emphasis="link" expanded={open} action="toggle-details">
|
|
27
|
+
Show Details
|
|
28
|
+
</Button>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
It keeps the native role and the standard focus ring (drawn around the text), and underlines the label so it never relies on color alone; under the pointer the underline thickens. `size="compact"` sets the small text size. A link-emphasis Button cannot take `pressed`. Because it drops the 44px target, use it inline in content; a navigation row is a `ListItemLink`, and a link in a toolbar is a `ToolbarActionLink`.
|
|
4
32
|
|
|
5
33
|
## Current step
|
|
6
34
|
|
|
@@ -9,7 +37,7 @@ Use `currentStep` when a Button marks the current position in a setup or progres
|
|
|
9
37
|
```tsx
|
|
10
38
|
<Button action="open-configure" currentStep>Configure</Button>
|
|
11
39
|
<Button action="open-review">Review</Button>
|
|
12
|
-
<Button
|
|
40
|
+
<Button link="/setup/finish" currentStep>Finish guide</Button>
|
|
13
41
|
```
|
|
14
42
|
|
|
15
43
|
The application owns the step label and which step is current. `currentStep` adds a semantic marker; it does not change the Button's styling or make a link into a toggle. Use `pressed` for an on/off toggle.
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# ColumnExplorer
|
|
2
|
+
|
|
3
|
+
`@kerfjs/ui/column-explorer` browses a hierarchy the way the macOS Finder's
|
|
4
|
+
column view does: one column per level in a `ColumnTrack`, where choosing a
|
|
5
|
+
row with children opens the next column of its children. It reads the same
|
|
6
|
+
`TreeListNode` model as [`TreeList`](./tree-list.md), and the application owns
|
|
7
|
+
the nodes and the chosen path.
|
|
8
|
+
|
|
9
|
+
```tsx
|
|
10
|
+
import { ColumnExplorer } from "@kerfjs/ui/column-explorer";
|
|
11
|
+
import { treeListPath } from "@kerfjs/ui/tree-list";
|
|
12
|
+
import { wireColumnExplorer } from "@kerfjs/ui/wire-column-explorer";
|
|
13
|
+
import { delegateActions } from "kerfjs/actions";
|
|
14
|
+
|
|
15
|
+
const path = signal<readonly string[]>([]);
|
|
16
|
+
|
|
17
|
+
<ColumnExplorer
|
|
18
|
+
id="files"
|
|
19
|
+
label="Files"
|
|
20
|
+
nodes={nodes}
|
|
21
|
+
path={path.value}
|
|
22
|
+
action="choose-file"
|
|
23
|
+
/>;
|
|
24
|
+
|
|
25
|
+
delegateActions(root, "click", {
|
|
26
|
+
"choose-file": (_event, row) =>
|
|
27
|
+
(path.value = treeListPath(nodes, row.dataset.itemId!)),
|
|
28
|
+
});
|
|
29
|
+
const stop = wireColumnExplorer(root);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Props
|
|
33
|
+
|
|
34
|
+
- `id` and `label` (required): the explorer's identity and accessible name.
|
|
35
|
+
- `nodes` (required): the hierarchy as `TreeListNode`s (`id`, `label`, and
|
|
36
|
+
optionally `description`, `icon`, `trailing`, `disabled`, `children`, and
|
|
37
|
+
`hasChildren` for children loaded on demand).
|
|
38
|
+
- `path` (required): the chosen ids from the top level down. Column one lists
|
|
39
|
+
the top level, and each chosen node with children opens the next column.
|
|
40
|
+
- `action` (required): the delegated action for choosing a row; its
|
|
41
|
+
`data-item-id` names the node.
|
|
42
|
+
- `preview`: content for a last column when the chosen node is a leaf, such
|
|
43
|
+
as a file's details.
|
|
44
|
+
- `layout` (`scroll`, the default, or `paged` for a phone), `minColumnWidth`,
|
|
45
|
+
and `peek`: passed to the `ColumnTrack`.
|
|
46
|
+
- `density`: `standard` or `compact` rows.
|
|
47
|
+
|
|
48
|
+
## Keyboard
|
|
49
|
+
|
|
50
|
+
`wireColumnExplorer(root)` wires every explorer under `root` and returns a
|
|
51
|
+
disposer:
|
|
52
|
+
|
|
53
|
+
- Up and Down move within a column; Home and End jump to its ends.
|
|
54
|
+
- Right opens the focused row's column (choosing it) and moves into it; Left
|
|
55
|
+
returns to the chosen row of the column before.
|
|
56
|
+
- Enter and Space choose the row.
|
|
57
|
+
- Typing finds the next row in the column whose label starts with the typed
|
|
58
|
+
letters.
|
|
59
|
+
|
|
60
|
+
Each column keeps one Tab stop (its chosen row, else its first), and choosing
|
|
61
|
+
a row brings the column it opens into view.
|
|
62
|
+
|
|
63
|
+
## The model
|
|
64
|
+
|
|
65
|
+
`explorerColumns(nodes, path)` returns the columns a path shows (each with its
|
|
66
|
+
`level`, `parent`, `nodes`, and `chosen` id), and `explorerChosen(nodes, path)`
|
|
67
|
+
the node a path ends at. Use `treeListPath(nodes, id)` from
|
|
68
|
+
`@kerfjs/ui/tree-list` to turn a chosen id into a path.
|
|
69
|
+
|
|
70
|
+
## Geometry
|
|
71
|
+
|
|
72
|
+
The `ColumnTrack` owns the sideways scroll, the column width, and the paged
|
|
73
|
+
layout; each column is a scrollable `List` of `ListItem` rows, which own their
|
|
74
|
+
insets, hover, and selected tint. The explorer fills its parent's height, so
|
|
75
|
+
give it a container with a height.
|
|
@@ -73,6 +73,14 @@ direct JSX children must bring no content-item inset (`Disclosure` with
|
|
|
73
73
|
unless one of its own `insetFreeWhen` conditions holds (`Text` with `flush` or
|
|
74
74
|
`variant="span"`). `ui-composition` reports a child that statically brings the
|
|
75
75
|
inset as `KUI-L204` and names the child's inset-free form when it has one.
|
|
76
|
+
An entry that renders interactive content declares `content.interactive`, a
|
|
77
|
+
list of `{ kind, whenProps? }` rules in the selection catalog that
|
|
78
|
+
`catalog:sync` copies into composition: `root` when its own root is a native
|
|
79
|
+
control or link, `contains` when it renders one inside, and `whenProps` when
|
|
80
|
+
only some props make it so. `content.exports` gives additional JSX exports
|
|
81
|
+
their own rules; they do not inherit the entry's. `validateView` reports a
|
|
82
|
+
`root` or `contains` element anywhere in a `root` element's zones as
|
|
83
|
+
`KUI-V014`.
|
|
76
84
|
Generated `boundaries.rootClass` prefers the public `kui-<entry-id>` class when
|
|
77
85
|
present, so a sibling export's class cannot become the entry's root class.
|
|
78
86
|
|
|
@@ -251,7 +259,7 @@ The package defaults avoid every `Discouraged` Web Awesome entry — each
|
|
|
251
259
|
Kerf component that wraps or replaces it (`command-menu` → `PopupMenu`,
|
|
252
260
|
`value-selection` → `Select`, `application-tabs` → `TabBar`, `icon` →
|
|
253
261
|
`LucideIcon`, `resizable-pane` → `ResizableRegion`, `exclusive-choice` →
|
|
254
|
-
`SegmentedControl`, `hierarchy-navigation` → `
|
|
262
|
+
`SegmentedControl`, `hierarchy-navigation` → `TreeList`, `embedded-media` →
|
|
255
263
|
`ContentItem`, `anchored-surface` → `AnchoredSurface`, `content-container` →
|
|
256
264
|
`ContentItem`, `inline-status` → `StateBanner`, `application-shell` → the
|
|
257
265
|
app-shell recipe, `modal-dialog` → `DialogSurface`). `eslint-plugin-kerfjs` `ui-preferences` (`KUI-L301`, also run by
|
|
@@ -389,9 +397,12 @@ icon-only `Select` reads the control slot a `ToolbarControlGroup` provides
|
|
|
389
397
|
(`--_kui-toolbar-control-group-slot-*`). A parent may still style its own
|
|
390
398
|
elements keyed on a child's state, naming the child by class inside `:has()`
|
|
391
399
|
(`:has(> .kui-select[open])`, or `TabBar` insetting a segmented strip that
|
|
392
|
-
holds compact tabs), and it keeps styling raw native
|
|
393
|
-
|
|
394
|
-
|
|
400
|
+
holds compact tabs), and it keeps styling raw native children no kerf
|
|
401
|
+
component owns. No kerf component renders a Web Awesome element, so a
|
|
402
|
+
component stylesheet names one only inside a `:not()` exclusion; rules for raw
|
|
403
|
+
Web Awesome children in a kerf container (`.kui-toolbar-control-group >
|
|
404
|
+
wa-button`) live in the optional `webawesome.css` bridge, the one stylesheet
|
|
405
|
+
that may name kerf classes beside a Web Awesome element. `npm run check:css-ownership` enforces
|
|
395
406
|
this in every component stylesheet (a same-basename `.css` and `.tsx` pair
|
|
396
407
|
under `src/components/<family>/<component>/`), deriving the component names,
|
|
397
408
|
the Web Awesome tags each component renders, and its composed children from the
|
|
@@ -403,9 +414,7 @@ colocated component source:
|
|
|
403
414
|
- **Owned Web Awesome tags.** Kerf components are named by class, never by a
|
|
404
415
|
`wa-*` tag they render. A tag another component renders — as the
|
|
405
416
|
subject, or as an ancestor whose internals the rule reaches — must be scoped
|
|
406
|
-
to that component by its class or excluded with `:not()`.
|
|
407
|
-
that cannot be the owner's internal
|
|
408
|
-
(`.kui-toolbar-control-group > wa-button`) needs no exclusion.
|
|
417
|
+
to that component by its class or excluded with `:not()`.
|
|
409
418
|
- **Variables.** A stylesheet writes only its own `--_kui-<self>-*` private
|
|
410
419
|
variables, and never overrides a public `--kui-<other>-*` token that another
|
|
411
420
|
component reads. Shared foundation tokens (`--kui-layout-*`,
|
|
@@ -613,7 +622,8 @@ An image-led feed card uses `ContentItem.media` and an optional app-supplied
|
|
|
613
622
|
ratio and running a per-image view timeline in the shared scrollport. Optional
|
|
614
623
|
`overlay`, `scrim`, `fadeTo`, and `blur` use the same behavior as a page hero;
|
|
615
624
|
`media.deferOffscreen` opts dense feeds into offscreen hero paint deferral
|
|
616
|
-
without changing card geometry or the shared scroll owner
|
|
625
|
+
without changing card geometry or the shared scroll owner (a large scroll jump
|
|
626
|
+
then paints the newly visible heroes blank for a frame);
|
|
617
627
|
`edgeToEdge` extends media to the card's top and inline inner edges;
|
|
618
628
|
`wireContentItems` handles load/error and restores the normal surface when the
|
|
619
629
|
lead image fails. The once-wired helper also restores the native image state
|
|
@@ -777,6 +787,26 @@ action on click or keyboard activation. The application owns the editing control
|
|
|
777
787
|
and the swap between display and edit states. An actionable title is a button,
|
|
778
788
|
so place any required heading landmark on another element in the view.
|
|
779
789
|
|
|
790
|
+
`ScrollEffect` wraps content in a scroll-timeline subject and nests one layer
|
|
791
|
+
per `parallax`, `reveal`, `fade`, or `scale` effect (in array order), plus an
|
|
792
|
+
`aria-hidden` dim overlay. Each layer animates only `transform` or `opacity`
|
|
793
|
+
over a range of the wrapper's own view timeline, and the wrapper clips a
|
|
794
|
+
parallax or a scale above 1. The shared scroll-effect layer behind it (also
|
|
795
|
+
under `BackdropImage`) owns the static fallbacks; its markers are package
|
|
796
|
+
internals. See [ScrollEffect](scroll-effect.md).
|
|
797
|
+
|
|
798
|
+
`Form` renders a native `form` that generates no box (`display: contents`),
|
|
799
|
+
so its children lay out as the parent's own. Its `action` is a delegated
|
|
800
|
+
`data-action` handled on `submit`; `wireForms` cancels the native submission's
|
|
801
|
+
navigation for every Form below its root. See
|
|
802
|
+
[Forms and validation](forms-and-validation.md#form).
|
|
803
|
+
|
|
804
|
+
`SizedRegion` gives content that cannot size itself, a whole-screen layout
|
|
805
|
+
below the app root, a definite height: `height="fill"` by default, or a typed
|
|
806
|
+
`height` and `minHeight`/`maxHeight`. It is a one-cell grid so its child's
|
|
807
|
+
`height: 100%` resolves even when only `minHeight` is set. It is not for sizing
|
|
808
|
+
ordinary components. See [App layouts](app-layouts.md#sizing-a-nested-layout).
|
|
809
|
+
|
|
780
810
|
`ValuePreview` displays a literal read-only string in a bounded, keyboard-scrollable
|
|
781
811
|
`output` with an accessible label. It preserves line breaks and wraps long
|
|
782
812
|
tokens without painting a second surface; compose it inside `SunkenPanel` for
|