@kerfjs/ui 5.0.0-beta.123 → 5.0.0-beta.125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -5
- package/ai/application-ui-diagnostic-ids-v1.json +25 -1
- package/ai/application-ui-profile-sync.cjs +16 -8
- package/ai/application-ui-profile.d.ts +2 -0
- package/ai/application-ui-profile.defaults.json +6 -2
- package/ai/application-ui-profile.mjs +16 -8
- package/ai/application-ui-profile.schema.json +133 -38
- package/ai/component-catalog.json +1549 -173
- package/ai/component-catalog.schema.json +19 -0
- package/ai/component-composition-rules.json +18 -2
- package/ai/component-composition.d.ts +13 -0
- package/ai/component-composition.json +754 -25
- package/ai/component-composition.schema.json +58 -0
- package/ai/component-props-overlay.json +952 -0
- package/ai/component-props-overlay.schema.json +68 -0
- package/ai/component-props.json +29826 -0
- package/ai/component-props.schema.json +401 -0
- package/ai/components/README.md +12 -4
- package/ai/components/application-tabs.md +2 -2
- package/ai/components/backdrop-image.md +2 -1
- package/ai/components/button.md +12 -6
- package/ai/components/checkbox-group.md +2 -0
- package/ai/components/checkbox.md +2 -0
- package/ai/components/chip.md +2 -0
- package/ai/components/choice-chips.md +5 -1
- package/ai/components/color-field.md +2 -0
- package/ai/components/color-picker.md +2 -0
- package/ai/components/color-swatches.md +2 -0
- package/ai/components/column-explorer.md +89 -0
- package/ai/components/column-track.md +3 -2
- package/ai/components/combobox.md +2 -0
- package/ai/components/content-item.md +7 -2
- package/ai/components/disclosure.md +2 -0
- package/ai/components/file-picker.md +5 -2
- package/ai/components/form.md +86 -0
- package/ai/components/foundation.md +1 -1
- package/ai/components/gauge.md +83 -0
- package/ai/components/list-action-row.md +2 -0
- package/ai/components/list-detail-dialog.md +2 -0
- package/ai/components/list-header.md +2 -0
- package/ai/components/list-item.md +4 -0
- package/ai/components/list.md +6 -2
- package/ai/components/message-composer.md +3 -1
- package/ai/components/nav-stack.md +2 -0
- package/ai/components/paged-view.md +89 -0
- package/ai/components/pane.md +4 -1
- package/ai/components/popup-menu.md +5 -2
- package/ai/components/radio-group.md +2 -0
- package/ai/components/recipe-composer-form.md +2 -2
- package/ai/components/scroll-effect.md +84 -0
- package/ai/components/search-field.md +2 -0
- package/ai/components/segmented-control.md +3 -0
- package/ai/components/select.md +4 -0
- package/ai/components/sized-region.md +86 -0
- package/ai/components/slider.md +2 -0
- package/ai/components/split-button.md +3 -1
- package/ai/components/split-view.md +1 -1
- package/ai/components/state-banner.md +2 -0
- package/ai/components/summary-row.md +14 -8
- package/ai/components/surface-scaffold.md +5 -3
- package/ai/components/switch.md +2 -0
- package/ai/components/tab-bar.md +5 -2
- package/ai/components/tab-navigator.md +2 -0
- package/ai/components/tab-panel.md +84 -0
- package/ai/components/tabs.md +6 -2
- package/ai/components/tag-field.md +2 -0
- package/ai/components/text-field.md +2 -0
- package/ai/components/text.md +3 -0
- package/ai/components/toolbar-control-group.md +10 -3
- package/ai/components/toolbar-text.md +2 -0
- package/ai/components/toolbar.md +4 -3
- package/ai/components/tree-list.md +95 -0
- package/ai/components/wa-accordion-item.md +2 -0
- package/ai/components/wa-breadcrumb-item.md +2 -0
- package/ai/components/wa-button.md +2 -0
- package/ai/components/wa-carousel.md +2 -0
- package/ai/components/wa-checkbox.md +2 -0
- package/ai/components/wa-color-picker.md +2 -0
- package/ai/components/wa-comparison.md +2 -0
- package/ai/components/wa-copy-button.md +2 -0
- package/ai/components/wa-details.md +2 -0
- package/ai/components/wa-dialog.md +2 -0
- package/ai/components/wa-drawer.md +2 -0
- package/ai/components/wa-dropdown-item.md +2 -0
- package/ai/components/wa-input.md +2 -0
- package/ai/components/wa-known-date.md +2 -0
- package/ai/components/wa-number-input.md +2 -0
- package/ai/components/wa-otp-input.md +2 -0
- package/ai/components/wa-pagination.md +2 -0
- package/ai/components/wa-radio.md +2 -0
- package/ai/components/wa-rating.md +2 -0
- package/ai/components/wa-select.md +2 -0
- package/ai/components/wa-slider.md +2 -0
- package/ai/components/wa-switch.md +2 -0
- package/ai/components/wa-tab-panel.md +5 -5
- package/ai/components/wa-tab.md +2 -0
- package/ai/components/wa-tag-input.md +2 -0
- package/ai/components/wa-textarea.md +2 -0
- package/ai/components/wa-time-input.md +2 -0
- package/ai/components/wa-tree-item.md +12 -5
- package/ai/components/wa-tree.md +10 -5
- package/ai/components/wa-zoomable-frame.md +2 -0
- package/ai/components/workbench-dialog.md +2 -0
- package/ai/public-api-signatures-v1.md +1348 -127
- package/ai/skill.md +109 -39
- package/ai/view-document.schema.json +360 -0
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/analyzer/index.mjs +89 -1
- package/dist/anchor-name-BZ1rpxaw.d.ts +4 -0
- package/dist/backdrop-image.d.ts +6 -2
- package/dist/backdrop-image.js +2 -1
- package/dist/badge.js +1 -1
- package/dist/browser/backdrop-image.js +1 -0
- package/dist/browser/catalog.js +1 -1
- package/dist/browser/collapsible-panel.js +1 -0
- package/dist/browser/column-explorer.js +9 -0
- package/dist/browser/content-item.js +1 -0
- package/dist/browser/editor.js +45 -0
- package/dist/browser/form.js +3 -0
- package/dist/browser/gauge.js +3 -0
- package/dist/browser/list-detail-dialog.js +1 -0
- package/dist/browser/nav-stack.js +1 -0
- package/dist/browser/paged-view.js +3 -0
- package/dist/browser/scroll-effect.js +3 -0
- package/dist/browser/segmented-control.js +1 -0
- package/dist/browser/sized-region.js +3 -0
- package/dist/browser/split-view.js +1 -0
- package/dist/browser/tab-panel.js +3 -0
- package/dist/browser/toolbar-control-group.js +1 -0
- package/dist/browser/tree-list.js +7 -0
- package/dist/browser/workbench-dialog.js +1 -0
- package/dist/browser/workbench.js +1 -0
- package/dist/button.d.ts +54 -13
- package/dist/button.js +2 -1
- package/dist/catalog-resources.d.ts +3 -2
- package/dist/catalog.d.ts +3 -2
- package/dist/catalog.js +21 -17
- package/dist/catalog.js.map +1 -1
- package/dist/checkbox-group.js +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/chip.js +1 -1
- package/dist/choice-chips.d.ts +21 -2
- package/dist/choice-chips.js +2 -1
- package/dist/{chunk-3WWX2O4G.js → chunk-2E7S5C4D.js} +5 -46
- package/dist/chunk-2E7S5C4D.js.map +1 -0
- package/dist/{chunk-QYMJHS4K.js → chunk-34FWYJX6.js} +9 -3
- package/dist/chunk-34FWYJX6.js.map +1 -0
- package/dist/chunk-3S3WXAZ5.js +207 -0
- package/dist/chunk-3S3WXAZ5.js.map +1 -0
- package/dist/{chunk-AN5IWMTM.js → chunk-3TBMGGTA.js} +6 -3
- package/dist/chunk-3TBMGGTA.js.map +1 -0
- package/dist/{chunk-3Z7N2NAZ.js → chunk-3XSY5LAB.js} +4 -4
- package/dist/{chunk-3Z7N2NAZ.js.map → chunk-3XSY5LAB.js.map} +1 -1
- package/dist/chunk-44AOBT2F.js +16 -0
- package/dist/chunk-44AOBT2F.js.map +1 -0
- package/dist/{chunk-YWLDLNAV.js → chunk-4IXG6XCT.js} +18 -3
- package/dist/chunk-4IXG6XCT.js.map +1 -0
- package/dist/chunk-4K7XXSOX.js +21 -0
- package/dist/chunk-4K7XXSOX.js.map +1 -0
- package/dist/{chunk-QH5KOFNS.js → chunk-5KWXM5O7.js} +15 -3
- package/dist/chunk-5KWXM5O7.js.map +1 -0
- package/dist/{chunk-EYDXFOSH.js → chunk-5SFHBYEY.js} +2 -2
- package/dist/chunk-5SFHBYEY.js.map +1 -0
- package/dist/{chunk-HU5IHXCI.js → chunk-6BXPN5SC.js} +3 -3
- package/dist/{chunk-HU5IHXCI.js.map → chunk-6BXPN5SC.js.map} +1 -1
- package/dist/{chunk-IIQ2XIMU.js → chunk-6OT7FOSA.js} +32 -11
- package/dist/chunk-6OT7FOSA.js.map +1 -0
- package/dist/{chunk-6VVIW7VB.js → chunk-73LC3JAL.js} +13 -4
- package/dist/chunk-73LC3JAL.js.map +1 -0
- package/dist/{chunk-IO27YTL3.js → chunk-76VCWWUA.js} +2 -2
- package/dist/{chunk-IO27YTL3.js.map → chunk-76VCWWUA.js.map} +1 -1
- package/dist/{chunk-3V4OCDTL.js → chunk-7DIWVGGA.js} +2 -14
- package/dist/chunk-7DIWVGGA.js.map +1 -0
- package/dist/chunk-7KN5OQVN.js +157 -0
- package/dist/chunk-7KN5OQVN.js.map +1 -0
- package/dist/chunk-7QQ3HE47.js +17 -0
- package/dist/chunk-7QQ3HE47.js.map +1 -0
- package/dist/{chunk-WPP5Q4A5.js → chunk-ADMWT7FX.js} +19 -1
- package/dist/chunk-ADMWT7FX.js.map +1 -0
- package/dist/{chunk-LMHN2TJL.js → chunk-BCHK33XL.js} +2 -2
- package/dist/{chunk-LMHN2TJL.js.map → chunk-BCHK33XL.js.map} +1 -1
- package/dist/chunk-BCO673YW.js +123 -0
- package/dist/chunk-BCO673YW.js.map +1 -0
- package/dist/{chunk-OQP3PFKQ.js → chunk-BZXA5SSA.js} +90 -33
- package/dist/chunk-BZXA5SSA.js.map +1 -0
- package/dist/{chunk-LTBVP6VN.js → chunk-C4FBYP2D.js} +2 -2
- package/dist/{chunk-LTBVP6VN.js.map → chunk-C4FBYP2D.js.map} +1 -1
- package/dist/{chunk-AMIHGFLP.js → chunk-CCPWJDRW.js} +4 -2
- package/dist/chunk-CCPWJDRW.js.map +1 -0
- package/dist/{chunk-S4Y3YTAI.js → chunk-CJAKN2KZ.js} +2 -2
- package/dist/{chunk-S4Y3YTAI.js.map → chunk-CJAKN2KZ.js.map} +1 -1
- package/dist/chunk-CKPI4WIN.js +58 -0
- package/dist/chunk-CKPI4WIN.js.map +1 -0
- package/dist/{chunk-HJXVVFBT.js → chunk-CMG4OZPV.js} +13 -2
- package/dist/chunk-CMG4OZPV.js.map +1 -0
- package/dist/{chunk-KH4KEMSP.js → chunk-COQI4OMZ.js} +1 -1
- package/dist/chunk-COQI4OMZ.js.map +1 -0
- package/dist/{chunk-G3J7JDP6.js → chunk-CPTQABDQ.js} +10 -3
- package/dist/chunk-CPTQABDQ.js.map +1 -0
- package/dist/{chunk-TI2GV36S.js → chunk-CRHKWHTA.js} +4 -4
- package/dist/{chunk-TI2GV36S.js.map → chunk-CRHKWHTA.js.map} +1 -1
- package/dist/{chunk-3KFMLOTH.js → chunk-DBP3N6E5.js} +8 -5
- package/dist/chunk-DBP3N6E5.js.map +1 -0
- package/dist/chunk-DJ65XFVN.js +231 -0
- package/dist/chunk-DJ65XFVN.js.map +1 -0
- package/dist/chunk-DKPYHVIV.js +13 -0
- package/dist/chunk-DKPYHVIV.js.map +1 -0
- package/dist/{chunk-ITUQC4FW.js → chunk-DV6GE57V.js} +31 -3
- package/dist/chunk-DV6GE57V.js.map +1 -0
- package/dist/{chunk-S3ECMF23.js → chunk-E7Q6UNCB.js} +11 -3
- package/dist/chunk-E7Q6UNCB.js.map +1 -0
- package/dist/{chunk-C26Q6P4Q.js → chunk-E7ZRBMVQ.js} +3 -3
- package/dist/{chunk-C26Q6P4Q.js.map → chunk-E7ZRBMVQ.js.map} +1 -1
- package/dist/chunk-ECVTRAXN.js +37 -0
- package/dist/chunk-ECVTRAXN.js.map +1 -0
- package/dist/{chunk-EIET4QLK.js → chunk-EHR7R7YP.js} +14 -3
- package/dist/chunk-EHR7R7YP.js.map +1 -0
- package/dist/{chunk-5J6Z4BWY.js → chunk-EXGDKG7B.js} +127 -5
- package/dist/chunk-EXGDKG7B.js.map +1 -0
- package/dist/{chunk-7K6U6FCN.js → chunk-F34LHBQI.js} +47 -12
- package/dist/chunk-F34LHBQI.js.map +1 -0
- package/dist/{chunk-3OP66VXU.js → chunk-FJMABKKV.js} +5 -3
- package/dist/chunk-FJMABKKV.js.map +1 -0
- package/dist/{chunk-B53PS2LE.js → chunk-FNJA4S6J.js} +7 -3
- package/dist/chunk-FNJA4S6J.js.map +1 -0
- package/dist/{chunk-YMUIQRWK.js → chunk-FQETQ7CM.js} +6 -2
- package/dist/chunk-FQETQ7CM.js.map +1 -0
- package/dist/{chunk-KCS6NJ3O.js → chunk-FR5G77K5.js} +2 -2
- package/dist/{chunk-KCS6NJ3O.js.map → chunk-FR5G77K5.js.map} +1 -1
- package/dist/chunk-GVII4JSD.js +153 -0
- package/dist/chunk-GVII4JSD.js.map +1 -0
- package/dist/chunk-HPOXLOVC.js +184 -0
- package/dist/chunk-HPOXLOVC.js.map +1 -0
- package/dist/{chunk-EKHDLBRP.js → chunk-JAC6AVZN.js} +21 -3
- package/dist/chunk-JAC6AVZN.js.map +1 -0
- package/dist/{chunk-CTQUDCY5.js → chunk-JG4ONAOI.js} +4 -2
- package/dist/{chunk-CTQUDCY5.js.map → chunk-JG4ONAOI.js.map} +1 -1
- package/dist/{chunk-K67XBCHG.js → chunk-JHUEYWWI.js} +6 -4
- package/dist/chunk-JHUEYWWI.js.map +1 -0
- package/dist/{chunk-GS2QD3N7.js → chunk-JZZVWTUB.js} +2 -2
- package/dist/{chunk-GS2QD3N7.js.map → chunk-JZZVWTUB.js.map} +1 -1
- package/dist/{chunk-XRZSK2WC.js → chunk-KACJOE2N.js} +16 -5
- package/dist/chunk-KACJOE2N.js.map +1 -0
- package/dist/chunk-KELWWCMX.js +426 -0
- package/dist/chunk-KELWWCMX.js.map +1 -0
- package/dist/{chunk-KDQZ3E5C.js → chunk-KLR3DCHH.js} +58 -4
- package/dist/chunk-KLR3DCHH.js.map +1 -0
- package/dist/{chunk-YPAQFBMN.js → chunk-KQZIC5CA.js} +44 -10
- package/dist/chunk-KQZIC5CA.js.map +1 -0
- package/dist/{chunk-S3DCRI2M.js → chunk-LD6A6PYB.js} +43 -5
- package/dist/chunk-LD6A6PYB.js.map +1 -0
- package/dist/{chunk-BKUMG2KB.js → chunk-LET362AM.js} +13 -3
- package/dist/chunk-LET362AM.js.map +1 -0
- package/dist/{chunk-C2ZO3OZZ.js → chunk-LOW7J7SE.js} +4 -4
- package/dist/chunk-LOW7J7SE.js.map +1 -0
- package/dist/{chunk-ITENVZ6Q.js → chunk-M72QLDUO.js} +13 -4
- package/dist/chunk-M72QLDUO.js.map +1 -0
- package/dist/{chunk-OHPYT2BH.js → chunk-MLDO7WLA.js} +2 -2
- package/dist/{chunk-OHPYT2BH.js.map → chunk-MLDO7WLA.js.map} +1 -1
- package/dist/{chunk-D5RGM3XA.js → chunk-NA4LKVPX.js} +12 -2
- package/dist/chunk-NA4LKVPX.js.map +1 -0
- package/dist/{chunk-OUCHU7JB.js → chunk-NHQOX7T4.js} +7 -7
- package/dist/{chunk-OUCHU7JB.js.map → chunk-NHQOX7T4.js.map} +1 -1
- package/dist/chunk-NR3ZO4LK.js +67 -0
- package/dist/chunk-NR3ZO4LK.js.map +1 -0
- package/dist/chunk-OKZTLRGG.js +34 -0
- package/dist/chunk-OKZTLRGG.js.map +1 -0
- package/dist/{chunk-ZX2QQJXD.js → chunk-PVKAIVKE.js} +95 -61
- package/dist/chunk-PVKAIVKE.js.map +1 -0
- package/dist/{chunk-Y6KT7ZTR.js → chunk-Q2CLQ3IJ.js} +21 -3
- package/dist/chunk-Q2CLQ3IJ.js.map +1 -0
- package/dist/{chunk-2J7XKAZX.js → chunk-Q2SLOMN6.js} +7 -6
- package/dist/chunk-Q2SLOMN6.js.map +1 -0
- package/dist/{chunk-S2XULQEK.js → chunk-Q5BPZPCO.js} +2 -2
- package/dist/{chunk-S2XULQEK.js.map → chunk-Q5BPZPCO.js.map} +1 -1
- package/dist/{chunk-ROEBKSIY.js → chunk-Q7RILH2D.js} +14 -6
- package/dist/chunk-Q7RILH2D.js.map +1 -0
- package/dist/chunk-QR7MGGOM.js +49 -0
- package/dist/chunk-QR7MGGOM.js.map +1 -0
- package/dist/{chunk-PS24PVR6.js → chunk-QXXLDY6I.js} +50 -10
- package/dist/chunk-QXXLDY6I.js.map +1 -0
- package/dist/chunk-QY77Q7RY.js +129 -0
- package/dist/chunk-QY77Q7RY.js.map +1 -0
- package/dist/{chunk-4OV272LF.js → chunk-R6FIXYAE.js} +4 -4
- package/dist/{chunk-4OV272LF.js.map → chunk-R6FIXYAE.js.map} +1 -1
- package/dist/{chunk-N2K3QGSX.js → chunk-RGB4DPMN.js} +16 -3
- package/dist/chunk-RGB4DPMN.js.map +1 -0
- package/dist/{chunk-TKNVL53O.js → chunk-RPJOLDSR.js} +11 -3
- package/dist/chunk-RPJOLDSR.js.map +1 -0
- package/dist/chunk-SBCXWGNP.js +256 -0
- package/dist/chunk-SBCXWGNP.js.map +1 -0
- package/dist/{chunk-WPNIKZMJ.js → chunk-SJBMKA4X.js} +2 -2
- package/dist/{chunk-WPNIKZMJ.js.map → chunk-SJBMKA4X.js.map} +1 -1
- package/dist/{chunk-RMWNO6BA.js → chunk-SNUDT6AX.js} +2 -2
- package/dist/{chunk-RMWNO6BA.js.map → chunk-SNUDT6AX.js.map} +1 -1
- package/dist/{chunk-NR6O74ST.js → chunk-SPI6VMIY.js} +14 -10
- package/dist/chunk-SPI6VMIY.js.map +1 -0
- package/dist/{chunk-ETFP7HAR.js → chunk-SVUJIVMR.js} +13 -4
- package/dist/chunk-SVUJIVMR.js.map +1 -0
- package/dist/{chunk-ZN7KUMPY.js → chunk-SWXWLSUD.js} +17 -3
- package/dist/chunk-SWXWLSUD.js.map +1 -0
- package/dist/chunk-TBVSPSGX.js +14 -0
- package/dist/chunk-TBVSPSGX.js.map +1 -0
- package/dist/{chunk-UMNHJSIO.js → chunk-TPLVC5BE.js} +2 -2
- package/dist/{chunk-UMNHJSIO.js.map → chunk-TPLVC5BE.js.map} +1 -1
- package/dist/chunk-TRJS7M2H.js +39 -0
- package/dist/chunk-TRJS7M2H.js.map +1 -0
- package/dist/{chunk-LZUUUHNH.js → chunk-TTFW6E6C.js} +56 -6
- package/dist/chunk-TTFW6E6C.js.map +1 -0
- package/dist/chunk-TXBNPEIJ.js +31 -0
- package/dist/chunk-TXBNPEIJ.js.map +1 -0
- package/dist/{chunk-VEME3D7K.js → chunk-UD5KHQOH.js} +27 -3
- package/dist/chunk-UD5KHQOH.js.map +1 -0
- package/dist/{chunk-5CLMV5YU.js → chunk-UPHPFKAD.js} +54 -18
- package/dist/chunk-UPHPFKAD.js.map +1 -0
- package/dist/{chunk-WVS6CUCT.js → chunk-V3IXAI4L.js} +6 -2
- package/dist/chunk-V3IXAI4L.js.map +1 -0
- package/dist/{chunk-CVD5IZGB.js → chunk-VBXKYT4O.js} +7 -2
- package/dist/chunk-VBXKYT4O.js.map +1 -0
- package/dist/{chunk-OZ6X76G5.js → chunk-VNT4MXR5.js} +4 -3
- package/dist/chunk-VNT4MXR5.js.map +1 -0
- package/dist/{chunk-K57NINLH.js → chunk-VPDSPD76.js} +54 -1
- package/dist/chunk-VPDSPD76.js.map +1 -0
- package/dist/chunk-VX3YF2UD.js +77 -0
- package/dist/chunk-VX3YF2UD.js.map +1 -0
- package/dist/chunk-WCMGPAY2.js +103 -0
- package/dist/chunk-WCMGPAY2.js.map +1 -0
- package/dist/{chunk-DZJ4GBSP.js → chunk-WSPXSWFG.js} +21 -4
- package/dist/chunk-WSPXSWFG.js.map +1 -0
- package/dist/{chunk-NB6POCFH.js → chunk-WVQDIOD7.js} +56 -11
- package/dist/chunk-WVQDIOD7.js.map +1 -0
- package/dist/{chunk-F653O57X.js → chunk-Y4VR6VNM.js} +6 -3
- package/dist/chunk-Y4VR6VNM.js.map +1 -0
- package/dist/{chunk-CEJ5FK6G.js → chunk-YHRJNKD5.js} +2 -2
- package/dist/{chunk-CEJ5FK6G.js.map → chunk-YHRJNKD5.js.map} +1 -1
- package/dist/{chunk-XWNXGFX3.js → chunk-Z3T24FX3.js} +2 -2
- package/dist/{chunk-XWNXGFX3.js.map → chunk-Z3T24FX3.js.map} +1 -1
- package/dist/collapsible-panel.d.ts +10 -3
- package/dist/collapsible-panel.js +45 -5
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/color-field.js +2 -2
- package/dist/color-picker.js +1 -1
- package/dist/color-swatches.js +1 -1
- package/dist/column-explorer.d.ts +67 -0
- package/dist/column-explorer.js +140 -0
- package/dist/column-explorer.js.map +1 -0
- package/dist/column-track.d.ts +12 -3
- package/dist/column-track.js +1 -1
- package/dist/combobox.d.ts +5 -1
- package/dist/combobox.js +2 -1
- package/dist/content-item.d.ts +14 -4
- package/dist/content-item.js +2 -1
- package/dist/content-swap.d.ts +5 -1
- package/dist/content-swap.js +2 -1
- package/dist/corner-status.d.ts +5 -1
- package/dist/corner-status.js +2 -1
- package/dist/device-class.js +1 -101
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +5 -1
- package/dist/disclosure-arrow.js +2 -1
- package/dist/disclosure.js +2 -2
- package/dist/edge-activity-indicator.d.ts +5 -1
- package/dist/edge-activity-indicator.js +2 -1
- package/dist/editor.d.ts +344 -0
- package/dist/editor.js +10076 -0
- package/dist/editor.js.map +1 -0
- package/dist/empty-state.d.ts +5 -1
- package/dist/empty-state.js +2 -1
- package/dist/{extension-attributes-mu8MFUl0.d.ts → extension-attributes-IJ4decoa.d.ts} +7 -1
- package/dist/file-picker.d.ts +25 -4
- package/dist/file-picker.js +2 -1
- package/dist/floating-toolbar.d.ts +5 -1
- package/dist/floating-toolbar.js +2 -1
- package/dist/form.d.ts +45 -0
- package/dist/form.js +4 -0
- package/dist/form.js.map +1 -0
- package/dist/framed-list.js +1 -1
- package/dist/gauge.d.ts +73 -0
- package/dist/gauge.js +157 -0
- package/dist/gauge.js.map +1 -0
- package/dist/grid.js +1 -1
- package/dist/index.d.ts +14 -7
- package/dist/index.js +82 -70
- package/dist/list-action-row.d.ts +1 -1
- package/dist/list-action-row.js +2 -1
- package/dist/list-detail-dialog.d.ts +10 -3
- package/dist/list-detail-dialog.js +15 -11
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +11 -3
- package/dist/list-header.js +1 -1
- package/dist/list-inset-control.d.ts +5 -1
- package/dist/list-inset-control.js +2 -1
- package/dist/list-inset-text.js +1 -1
- package/dist/list-item.js +3 -1
- package/dist/list.d.ts +130 -11
- package/dist/list.js +1 -1
- package/dist/loading-spinner.d.ts +5 -1
- package/dist/loading-spinner.js +2 -1
- package/dist/lucide-icon.d.ts +5 -1
- package/dist/lucide-icon.js +2 -1
- package/dist/message-composer.js +1 -1
- package/dist/{nav-stack-CrZF95VO.d.ts → nav-stack-DwxpXxqJ.d.ts} +13 -2
- package/dist/nav-stack.d.ts +3 -2
- package/dist/nav-stack.js +4 -1
- package/dist/paged-view.d.ts +47 -0
- package/dist/paged-view.js +86 -0
- package/dist/paged-view.js.map +1 -0
- package/dist/pane.d.ts +42 -5
- package/dist/pane.js +2 -1
- package/dist/popup-menu-register.js +1 -1
- package/dist/popup-menu.d.ts +42 -2
- package/dist/popup-menu.js +2 -1
- package/dist/progress-bar.js +1 -1
- package/dist/progress-ring.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/resizable-region.d.ts +5 -1
- package/dist/resizable-region.js +2 -1
- package/dist/row.d.ts +7 -2
- package/dist/row.js +1 -1
- package/dist/scroll-effect.d.ts +86 -0
- package/dist/scroll-effect.js +5 -0
- package/dist/scroll-effect.js.map +1 -0
- package/dist/{search-field-CrGTN5sa.d.ts → search-field-5lNIszda.d.ts} +5 -1
- package/dist/search-field-model.d.ts +2 -1
- package/dist/search-field.d.ts +2 -1
- package/dist/search-field.js +2 -1
- package/dist/segmented-control.d.ts +26 -1
- package/dist/segmented-control.js +4 -1
- package/dist/select-register.js +9 -2
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +22 -1
- package/dist/select.js +1 -1
- package/dist/sized-region.d.ts +44 -0
- package/dist/sized-region.js +4 -0
- package/dist/sized-region.js.map +1 -0
- package/dist/skeleton.d.ts +5 -1
- package/dist/skeleton.js +2 -1
- package/dist/slider.js +1 -1
- package/dist/spacer.d.ts +5 -1
- package/dist/spacer.js +2 -1
- package/dist/split-button.js +1 -1
- package/dist/split-view.d.ts +7 -3
- package/dist/split-view.js +4 -1
- package/dist/state-banner.d.ts +7 -0
- package/dist/state-banner.js +1 -1
- package/dist/styles/backdrop-image.css +136 -70
- package/dist/styles/badge.css +70 -0
- package/dist/styles/button.css +103 -0
- package/dist/styles/choice-chips.css +45 -0
- package/dist/styles/column-explorer.css +6 -0
- package/dist/styles/components/actions/button/button.css +103 -0
- package/dist/styles/components/actions/popup-menu/popup-menu.css +154 -1
- package/dist/styles/components/actions/toolbar/toolbar.css +19 -11
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +38 -200
- package/dist/styles/components/collections/column-explorer/column-explorer.css +6 -0
- package/dist/styles/components/collections/list/list.css +6 -0
- package/dist/styles/components/collections/list-item/list-item.css +68 -2
- package/dist/styles/components/collections/summary-row/summary-row.css +39 -6
- package/dist/styles/components/collections/tree-list/tree-list.css +7 -0
- package/dist/styles/components/data-display/value-table/value-table.css +1 -1
- package/dist/styles/components/feedback/badge/badge.css +70 -0
- package/dist/styles/components/feedback/gauge/gauge.css +132 -0
- package/dist/styles/components/feedback/state-banner/state-banner.css +12 -7
- package/dist/styles/components/forms/choice-chips/choice-chips.css +45 -0
- package/dist/styles/components/forms/file-picker/file-picker.css +13 -2
- package/dist/styles/components/forms/form/form.css +6 -0
- package/dist/styles/components/forms/segmented-control/segmented-control.css +16 -0
- package/dist/styles/components/forms/select/select.css +85 -2
- package/dist/styles/components/forms/text-field/text-field.css +44 -0
- package/dist/styles/components/layout/pane/pane.css +16 -0
- package/dist/styles/components/layout/resizable-region/resizable-region.css +0 -10
- package/dist/styles/components/layout/sized-region/sized-region.css +22 -0
- package/dist/styles/components/layout/workbench/workbench.css +0 -21
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +2 -0
- package/dist/styles/components/navigation/paged-view/paged-view.css +160 -0
- package/dist/styles/components/navigation/tab-bar/tab-bar.css +9 -0
- package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +110 -2
- package/dist/styles/components/navigation/tab-panel/tab-panel.css +7 -0
- package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +14 -70
- package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +121 -0
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +77 -29
- package/dist/styles/components/typography/text/text.css +4 -4
- package/dist/styles/content-item.css +551 -3
- package/dist/styles/document.css +1 -6
- package/dist/styles/editor/editor.css +530 -0
- package/dist/styles/editor.css +4 -0
- package/dist/styles/file-picker.css +13 -2
- package/dist/styles/form.css +6 -0
- package/dist/styles/foundation.css +55 -1
- package/dist/styles/gauge.css +132 -0
- package/dist/styles/list-item.css +68 -2
- package/dist/styles/list.css +6 -0
- package/dist/styles/nav-stack.css +2 -0
- package/dist/styles/overlay-sheet.css +7 -7
- package/dist/styles/paged-view.css +160 -0
- package/dist/styles/pane.css +16 -0
- package/dist/styles/popup-menu.css +154 -1
- package/dist/styles/resizable-region.css +0 -10
- package/dist/styles/scroll-effect.css +121 -0
- package/dist/styles/segmented-control.css +16 -0
- package/dist/styles/select.css +85 -2
- package/dist/styles/sized-region.css +22 -0
- package/dist/styles/state-banner.css +12 -7
- package/dist/styles/styles.css +12 -0
- package/dist/styles/summary-row.css +39 -6
- package/dist/styles/surface-scaffold.css +77 -29
- package/dist/styles/tab-bar-item.css +110 -2
- package/dist/styles/tab-bar.css +9 -0
- package/dist/styles/tab-panel.css +7 -0
- package/dist/styles/text-field.css +44 -0
- package/dist/styles/text.css +4 -4
- package/dist/styles/toolbar-control-group.css +38 -200
- package/dist/styles/toolbar.css +19 -11
- package/dist/styles/tree-list.css +7 -0
- package/dist/styles/value-table.css +1 -1
- package/dist/styles/webawesome.css +350 -6
- package/dist/styles/workbench.css +0 -21
- package/dist/summary-row.d.ts +9 -1
- package/dist/summary-row.js +1 -1
- package/dist/sunken-panel.d.ts +5 -1
- package/dist/sunken-panel.js +2 -1
- package/dist/surface-scaffold-register.js +1 -1
- package/dist/surface-scaffold.d.ts +37 -6
- package/dist/surface-scaffold.js +3 -2
- package/dist/switch.js +1 -1
- package/dist/tab-bar-item.d.ts +8 -1
- package/dist/tab-bar-item.js +1 -1
- package/dist/tab-bar.d.ts +15 -2
- package/dist/tab-bar.js +2 -1
- package/dist/tab-navigator.d.ts +25 -3
- package/dist/tab-navigator.js +42 -19
- package/dist/tab-navigator.js.map +1 -1
- package/dist/tab-panel.d.ts +35 -0
- package/dist/tab-panel.js +4 -0
- package/dist/tab-panel.js.map +1 -0
- package/dist/tag-field.d.ts +5 -1
- package/dist/tag-field.js +2 -1
- package/dist/text-field.d.ts +22 -4
- package/dist/text-field.js +1 -1
- package/dist/text.d.ts +37 -5
- package/dist/text.js +2 -1
- package/dist/toolbar-control-group.d.ts +83 -3
- package/dist/toolbar-control-group.js +4 -1
- package/dist/toolbar-text.d.ts +9 -1
- package/dist/toolbar-text.js +2 -1
- package/dist/toolbar.d.ts +6 -1
- package/dist/toolbar.js +2 -1
- package/dist/tree-list.d.ts +42 -0
- package/dist/tree-list.js +12 -0
- package/dist/tree-list.js.map +1 -0
- package/dist/tree-rows-eHnnGLGM.d.ts +65 -0
- package/dist/value-preview.d.ts +5 -1
- package/dist/value-preview.js +2 -1
- package/dist/value-table.d.ts +9 -2
- package/dist/value-table.js +2 -1
- package/dist/wire-catalog.d.ts +3 -2
- package/dist/wire-catalog.js +4 -3
- package/dist/wire-catalog.js.map +1 -1
- package/dist/wire-choice-chips.d.ts +3 -1
- package/dist/wire-choice-chips.js +1 -1
- package/dist/wire-color-fields.js +2 -73
- package/dist/wire-color-fields.js.map +1 -1
- package/dist/wire-color-pickers.js +1 -1
- package/dist/wire-column-explorer.d.ts +13 -0
- package/dist/wire-column-explorer.js +94 -0
- package/dist/wire-column-explorer.js.map +1 -0
- package/dist/wire-content-items.d.ts +10 -1
- package/dist/wire-content-items.js +1 -293
- package/dist/wire-content-items.js.map +1 -1
- package/dist/wire-forms.d.ts +14 -0
- package/dist/wire-forms.js +3 -0
- package/dist/wire-forms.js.map +1 -0
- package/dist/wire-nav-stack.js +1 -423
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-paged-views.d.ts +27 -0
- package/dist/wire-paged-views.js +186 -0
- package/dist/wire-paged-views.js.map +1 -0
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.js +1 -1
- package/dist/wire-search-fields.d.ts +2 -1
- package/dist/wire-search-fields.js +2 -1
- package/dist/wire-sidebar.js +1 -229
- package/dist/wire-sidebar.js.map +1 -1
- package/dist/wire-sliders.js +1 -29
- package/dist/wire-sliders.js.map +1 -1
- package/dist/wire-summary-rows.d.ts +18 -0
- package/dist/wire-summary-rows.js +4 -0
- package/dist/wire-summary-rows.js.map +1 -0
- package/dist/wire-tab-bars.d.ts +1 -0
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.js +1 -151
- package/dist/wire-tab-navigator.js.map +1 -1
- package/dist/wire-tag-fields.js +3 -252
- package/dist/wire-tag-fields.js.map +1 -1
- package/dist/wire-tree-list.d.ts +53 -0
- package/dist/wire-tree-list.js +3 -0
- package/dist/wire-tree-list.js.map +1 -0
- package/dist/wire-workbench.js +2 -1
- package/dist/workbench-dialog.d.ts +10 -3
- package/dist/workbench-dialog.js +13 -9
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +7 -3
- package/dist/workbench.js +4 -1
- package/docs/accessibility.md +52 -9
- package/docs/app-layouts.md +70 -1
- package/docs/backdrop-image.md +10 -0
- package/docs/button.md +30 -2
- package/docs/column-explorer.md +75 -0
- package/docs/component-contract.md +38 -8
- package/docs/component-selection.md +151 -107
- package/docs/data-tables-and-lists.md +1 -1
- package/docs/design/sketch/Kerf-UI.sketch +0 -0
- package/docs/design/sketch/README.md +1 -1
- package/docs/design/sketch/content/README.md +8 -8
- package/docs/design/sketch/coverage.md +124 -120
- package/docs/design/sketch/lists/README.md +6 -6
- package/docs/design/sketch/unified/README.md +1 -1
- package/docs/design/sketch/unified/pages/content.png +0 -0
- package/docs/design/sketch/unified/pages/lists.png +0 -0
- package/docs/design/templates/button/emphasis-dark.svg +1 -1
- package/docs/design/templates/button/emphasis.svg +1 -1
- package/docs/design/templates/button/full-width-dark.svg +1 -1
- package/docs/design/templates/button/full-width.svg +1 -1
- package/docs/design/templates/button/icons-dark.svg +1 -1
- package/docs/design/templates/button/icons.svg +1 -1
- package/docs/design/templates/button/pill-dark.svg +1 -1
- package/docs/design/templates/button/pill.svg +1 -1
- package/docs/design/templates/button/toggles-dark.svg +1 -1
- package/docs/design/templates/button/toggles.svg +1 -1
- package/docs/design/templates/button-dark.svg +1 -1
- package/docs/design/templates/button.svg +1 -1
- package/docs/design/templates/checkbox/compact-dark.svg +1 -1
- package/docs/design/templates/checkbox/compact.svg +1 -1
- package/docs/design/templates/checkbox/mixed-dark.svg +1 -1
- package/docs/design/templates/checkbox/mixed.svg +1 -1
- package/docs/design/templates/checkbox/states-dark.svg +1 -1
- package/docs/design/templates/checkbox/states.svg +1 -1
- package/docs/design/templates/checkbox-dark.svg +1 -1
- package/docs/design/templates/checkbox-group/vertical-dark.svg +1 -1
- package/docs/design/templates/checkbox-group/vertical.svg +1 -1
- package/docs/design/templates/checkbox-group-dark.svg +1 -1
- package/docs/design/templates/checkbox-group.svg +1 -1
- package/docs/design/templates/checkbox.svg +1 -1
- package/docs/design/templates/chip/tags-dark.svg +1 -1
- package/docs/design/templates/chip/tags.svg +1 -1
- package/docs/design/templates/chip-dark.svg +1 -1
- package/docs/design/templates/chip.svg +1 -1
- package/docs/design/templates/choice-chips/compact-icons-dark.svg +1 -1
- package/docs/design/templates/choice-chips/compact-icons.svg +1 -1
- package/docs/design/templates/choice-chips-dark.svg +1 -1
- package/docs/design/templates/choice-chips.svg +1 -1
- package/docs/design/templates/color-field/compact-dark.svg +1 -1
- package/docs/design/templates/color-field/compact.svg +1 -1
- package/docs/design/templates/color-field/error-dark.svg +1 -1
- package/docs/design/templates/color-field/error.svg +1 -1
- package/docs/design/templates/color-field/hint-dark.svg +1 -1
- package/docs/design/templates/color-field/hint.svg +1 -1
- package/docs/design/templates/color-field-dark.svg +1 -1
- package/docs/design/templates/color-field.svg +1 -1
- package/docs/design/templates/color-picker/gray-dark.svg +1 -1
- package/docs/design/templates/color-picker/gray.svg +1 -1
- package/docs/design/templates/color-picker/hsb-dark.svg +1 -1
- package/docs/design/templates/color-picker/hsb.svg +1 -1
- package/docs/design/templates/color-picker/rgb-dark.svg +1 -1
- package/docs/design/templates/color-picker/rgb.svg +1 -1
- package/docs/design/templates/color-picker-dark.svg +1 -1
- package/docs/design/templates/color-picker.svg +1 -1
- package/docs/design/templates/disclosure/embedded-dark.svg +1 -1
- package/docs/design/templates/disclosure/embedded.svg +1 -1
- package/docs/design/templates/disclosure/framed-sunken-dark.svg +1 -1
- package/docs/design/templates/disclosure/framed-sunken.svg +1 -1
- package/docs/design/templates/disclosure/plain-dark.svg +1 -1
- package/docs/design/templates/disclosure/plain.svg +1 -1
- package/docs/design/templates/disclosure-dark.svg +1 -1
- package/docs/design/templates/disclosure.svg +1 -1
- package/docs/design/templates/empty-state/filtered-dark.svg +1 -1
- package/docs/design/templates/empty-state/filtered.svg +1 -1
- package/docs/design/templates/empty-state/with-action-dark.svg +1 -1
- package/docs/design/templates/empty-state/with-action.svg +1 -1
- package/docs/design/templates/empty-state-dark.svg +1 -1
- package/docs/design/templates/empty-state.svg +1 -1
- package/docs/design/templates/gauge/bare-dark.svg +1 -0
- package/docs/design/templates/gauge/bare.svg +1 -0
- package/docs/design/templates/gauge/full-dark.svg +1 -0
- package/docs/design/templates/gauge/full.svg +1 -0
- package/docs/design/templates/gauge-dark.svg +1 -0
- package/docs/design/templates/gauge.svg +1 -0
- package/docs/design/templates/list/compact-dark.svg +1 -1
- package/docs/design/templates/list/compact.svg +1 -1
- package/docs/design/templates/list/stack-dark.svg +1 -1
- package/docs/design/templates/list/stack.svg +1 -1
- package/docs/design/templates/list-action-row/default-dark.svg +1 -1
- package/docs/design/templates/list-action-row/default.svg +1 -1
- package/docs/design/templates/list-action-row/icon-tile-dark.svg +1 -1
- package/docs/design/templates/list-action-row/icon-tile.svg +1 -1
- package/docs/design/templates/list-action-row/selected-dark.svg +1 -1
- package/docs/design/templates/list-action-row/selected.svg +1 -1
- package/docs/design/templates/list-action-row/trailing-menu-dark.svg +1 -1
- package/docs/design/templates/list-action-row/trailing-menu.svg +1 -1
- package/docs/design/templates/list-action-row-dark.svg +1 -1
- package/docs/design/templates/list-action-row.svg +1 -1
- package/docs/design/templates/list-dark.svg +1 -1
- package/docs/design/templates/list-header/action-dark.svg +1 -1
- package/docs/design/templates/list-header/action.svg +1 -1
- package/docs/design/templates/list-header/inline-action-dark.svg +1 -1
- package/docs/design/templates/list-header/inline-action.svg +1 -1
- package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -1
- package/docs/design/templates/list-header/toggle-collapsed.svg +1 -1
- package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -1
- package/docs/design/templates/list-header/toggle-expanded.svg +1 -1
- package/docs/design/templates/list-header-dark.svg +1 -1
- package/docs/design/templates/list-header.svg +1 -1
- package/docs/design/templates/list-item/default-dark.svg +1 -1
- package/docs/design/templates/list-item/default.svg +1 -1
- package/docs/design/templates/list-item/icon-tile-dark.svg +1 -1
- package/docs/design/templates/list-item/icon-tile.svg +1 -1
- package/docs/design/templates/list-item/multiline-dark.svg +1 -1
- package/docs/design/templates/list-item/multiline.svg +1 -1
- package/docs/design/templates/list-item/selected-dark.svg +1 -1
- package/docs/design/templates/list-item/selected.svg +1 -1
- package/docs/design/templates/list-item/trailing-dark.svg +1 -1
- package/docs/design/templates/list-item/trailing.svg +1 -1
- package/docs/design/templates/list-item-dark.svg +1 -1
- package/docs/design/templates/list-item.svg +1 -1
- package/docs/design/templates/list.svg +1 -1
- package/docs/design/templates/progress-ring/sizes-dark.svg +1 -1
- package/docs/design/templates/progress-ring/sizes.svg +1 -1
- package/docs/design/templates/progress-ring/tones-dark.svg +1 -1
- package/docs/design/templates/progress-ring/tones.svg +1 -1
- package/docs/design/templates/progress-ring-dark.svg +1 -1
- package/docs/design/templates/progress-ring.svg +1 -1
- package/docs/design/templates/search-field/empty-dark.svg +1 -1
- package/docs/design/templates/search-field/empty.svg +1 -1
- package/docs/design/templates/search-field/tokens-dark.svg +1 -1
- package/docs/design/templates/search-field/tokens.svg +1 -1
- package/docs/design/templates/search-field-dark.svg +1 -1
- package/docs/design/templates/search-field.svg +1 -1
- package/docs/design/templates/segmented-control/equal-dark.svg +1 -1
- package/docs/design/templates/segmented-control/equal.svg +1 -1
- package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -1
- package/docs/design/templates/segmented-control/pill-small.svg +1 -1
- package/docs/design/templates/segmented-control-dark.svg +1 -1
- package/docs/design/templates/segmented-control.svg +1 -1
- package/docs/design/templates/select/compact-dark.svg +1 -1
- package/docs/design/templates/select/compact.svg +1 -1
- package/docs/design/templates/select/form-dark.svg +1 -1
- package/docs/design/templates/select/form.svg +1 -1
- package/docs/design/templates/select/icons-dark.svg +1 -1
- package/docs/design/templates/select/icons.svg +1 -1
- package/docs/design/templates/select-dark.svg +1 -1
- package/docs/design/templates/select.svg +1 -1
- package/docs/design/templates/split-button/full-width-dark.svg +1 -1
- package/docs/design/templates/split-button/full-width.svg +1 -1
- package/docs/design/templates/split-button/pill-dark.svg +1 -1
- package/docs/design/templates/split-button/pill.svg +1 -1
- package/docs/design/templates/split-button/states-dark.svg +1 -1
- package/docs/design/templates/split-button/states.svg +1 -1
- package/docs/design/templates/split-button/tones-dark.svg +1 -1
- package/docs/design/templates/split-button/tones.svg +1 -1
- package/docs/design/templates/split-button-dark.svg +1 -1
- package/docs/design/templates/split-button.svg +1 -1
- package/docs/design/templates/state-banner/danger-dark.svg +1 -1
- package/docs/design/templates/state-banner/danger.svg +1 -1
- package/docs/design/templates/state-banner/info-badge-dark.svg +1 -1
- package/docs/design/templates/state-banner/info-badge.svg +1 -1
- package/docs/design/templates/state-banner/info-dark.svg +1 -1
- package/docs/design/templates/state-banner/info.svg +1 -1
- package/docs/design/templates/state-banner/strip-dark.svg +1 -1
- package/docs/design/templates/state-banner/strip.svg +1 -1
- package/docs/design/templates/state-banner/success-dark.svg +1 -1
- package/docs/design/templates/state-banner/success.svg +1 -1
- package/docs/design/templates/state-banner/warning-dark.svg +1 -1
- package/docs/design/templates/state-banner/warning.svg +1 -1
- package/docs/design/templates/state-banner-dark.svg +1 -1
- package/docs/design/templates/state-banner.svg +1 -1
- package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -1
- package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -1
- package/docs/design/templates/tab-bar-dark.svg +1 -1
- package/docs/design/templates/tab-bar.svg +1 -1
- package/docs/design/templates/tag-field/error-dark.svg +1 -1
- package/docs/design/templates/tag-field/error.svg +1 -1
- package/docs/design/templates/tag-field/tags-dark.svg +1 -1
- package/docs/design/templates/tag-field/tags.svg +1 -1
- package/docs/design/templates/tag-field-dark.svg +1 -1
- package/docs/design/templates/tag-field.svg +1 -1
- package/docs/design/templates/text-field/labeled-dark.svg +1 -1
- package/docs/design/templates/text-field/labeled.svg +1 -1
- package/docs/design/templates/text-field/search-dark.svg +1 -1
- package/docs/design/templates/text-field/search.svg +1 -1
- package/docs/design/templates/text-field-dark.svg +1 -1
- package/docs/design/templates/text-field.svg +1 -1
- package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -1
- package/docs/design/templates/toolbar/title-and-actions.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-320.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -1
- package/docs/design/templates/toolbar/width-visibility-600.svg +1 -1
- package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -1
- package/docs/design/templates/toolbar-control-group/glass-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/glass.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -1
- package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -1
- package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group/with-text.svg +1 -1
- package/docs/design/templates/toolbar-control-group-dark.svg +1 -1
- package/docs/design/templates/toolbar-control-group.svg +1 -1
- package/docs/design/templates/toolbar-dark.svg +1 -1
- package/docs/design/templates/toolbar.svg +1 -1
- package/docs/design/templates/tree-list/files-dark.svg +1 -0
- package/docs/design/templates/tree-list/files.svg +1 -0
- package/docs/design/templates/tree-list/outline-dark.svg +1 -0
- package/docs/design/templates/tree-list/outline.svg +1 -0
- package/docs/design/templates/tree-list-dark.svg +1 -0
- package/docs/design/templates/tree-list.svg +1 -0
- package/docs/design/templates/value-table/details-dark.svg +1 -1
- package/docs/design/templates/value-table/details.svg +1 -1
- package/docs/design/templates/value-table-dark.svg +1 -1
- package/docs/design/templates/value-table.svg +1 -1
- package/docs/design/templates.md +2 -2
- package/docs/document-baseline.md +6 -3
- package/docs/editor-host.md +299 -0
- package/docs/forms-and-validation.md +39 -0
- package/docs/gauge.md +55 -0
- package/docs/interaction-conventions.md +1 -0
- package/docs/layout.md +87 -4
- package/docs/list-detail-dialog.md +5 -0
- package/docs/manual-test-plan.md +32 -0
- package/docs/nav-stack.md +2 -1
- package/docs/paged-view.md +89 -0
- package/docs/progress.md +3 -2
- package/docs/scroll-effect.md +127 -0
- package/docs/split-view.md +4 -1
- package/docs/surface-scaffold.md +32 -2
- package/docs/tab-navigator.md +5 -4
- package/docs/tree-list.md +134 -0
- package/docs/ui-analyzer.md +43 -25
- package/docs/ui-doctor.md +4 -1
- package/docs/ui-evaluator.md +2 -0
- package/docs/webawesome-migration.md +32 -31
- package/docs/webawesome-theme.md +27 -17
- package/docs/workbench-dialog.md +4 -0
- package/evaluator/index.mjs +14 -2
- package/llms.txt +168 -18
- package/package.json +97 -4
- package/props/cli.d.mts +1 -0
- package/props/cli.mjs +116 -0
- package/props/component-props.d.mts +177 -0
- package/props/component-props.mjs +1208 -0
- package/scripts/lib/json-schema-subset.mjs +137 -0
- package/ux-demo/recipes/app-shell.tsx +20 -22
- package/ux-demo/recipes/collapsible-sidebar.tsx +2 -2
- package/ux-demo/recipes/compact-toolbar.tsx +26 -29
- package/ux-demo/recipes/composer-form.tsx +6 -5
- package/ux-demo/recipes/list-workspace-states.tsx +39 -39
- package/ux-demo/recipes/loading-inspector.tsx +8 -6
- package/ux-demo/recipes/media-detail.tsx +29 -15
- package/ux-demo/recipes/navigation-sidebar.tsx +18 -19
- package/ux-demo/recipes/navigation-stack.tsx +2 -2
- package/ux-demo/recipes/workspace-header.tsx +16 -16
- package/view/cli.d.mts +18 -0
- package/view/cli.mjs +262 -0
- package/view/contract.mjs +342 -0
- package/view/generate.mjs +639 -0
- package/view/index.d.mts +411 -0
- package/view/index.mjs +40 -0
- package/view/interpret.mjs +271 -0
- package/view/validate-move.mjs +317 -0
- package/view/validate.mjs +1864 -0
- package/vite-editor.d.mts +130 -0
- package/vite-editor.mjs +314 -0
- package/dist/chunk-2J7XKAZX.js.map +0 -1
- package/dist/chunk-3KFMLOTH.js.map +0 -1
- package/dist/chunk-3OP66VXU.js.map +0 -1
- package/dist/chunk-3V4OCDTL.js.map +0 -1
- package/dist/chunk-3WWX2O4G.js.map +0 -1
- package/dist/chunk-5CLMV5YU.js.map +0 -1
- package/dist/chunk-5J6Z4BWY.js.map +0 -1
- package/dist/chunk-6VVIW7VB.js.map +0 -1
- package/dist/chunk-7K6U6FCN.js.map +0 -1
- package/dist/chunk-AMIHGFLP.js.map +0 -1
- package/dist/chunk-AN5IWMTM.js.map +0 -1
- package/dist/chunk-B53PS2LE.js.map +0 -1
- package/dist/chunk-BKUMG2KB.js.map +0 -1
- package/dist/chunk-C2ZO3OZZ.js.map +0 -1
- package/dist/chunk-CVD5IZGB.js.map +0 -1
- package/dist/chunk-D5RGM3XA.js.map +0 -1
- package/dist/chunk-DZJ4GBSP.js.map +0 -1
- package/dist/chunk-EIET4QLK.js.map +0 -1
- package/dist/chunk-EKHDLBRP.js.map +0 -1
- package/dist/chunk-ETFP7HAR.js.map +0 -1
- package/dist/chunk-EYDXFOSH.js.map +0 -1
- package/dist/chunk-F653O57X.js.map +0 -1
- package/dist/chunk-G3J7JDP6.js.map +0 -1
- package/dist/chunk-HJXVVFBT.js.map +0 -1
- package/dist/chunk-IIQ2XIMU.js.map +0 -1
- package/dist/chunk-ITENVZ6Q.js.map +0 -1
- package/dist/chunk-ITUQC4FW.js.map +0 -1
- package/dist/chunk-K57NINLH.js.map +0 -1
- package/dist/chunk-K67XBCHG.js.map +0 -1
- package/dist/chunk-KDQZ3E5C.js.map +0 -1
- package/dist/chunk-KH4KEMSP.js.map +0 -1
- package/dist/chunk-LZUUUHNH.js.map +0 -1
- package/dist/chunk-N2K3QGSX.js.map +0 -1
- package/dist/chunk-NB6POCFH.js.map +0 -1
- package/dist/chunk-NR6O74ST.js.map +0 -1
- package/dist/chunk-OQP3PFKQ.js.map +0 -1
- package/dist/chunk-OZ6X76G5.js.map +0 -1
- package/dist/chunk-PS24PVR6.js.map +0 -1
- package/dist/chunk-QH5KOFNS.js.map +0 -1
- package/dist/chunk-QYMJHS4K.js.map +0 -1
- package/dist/chunk-ROEBKSIY.js.map +0 -1
- package/dist/chunk-S3DCRI2M.js.map +0 -1
- package/dist/chunk-S3ECMF23.js.map +0 -1
- package/dist/chunk-TKNVL53O.js.map +0 -1
- package/dist/chunk-VEME3D7K.js.map +0 -1
- package/dist/chunk-WPP5Q4A5.js.map +0 -1
- package/dist/chunk-WVS6CUCT.js.map +0 -1
- package/dist/chunk-XRZSK2WC.js.map +0 -1
- package/dist/chunk-Y6KT7ZTR.js.map +0 -1
- package/dist/chunk-YMUIQRWK.js.map +0 -1
- package/dist/chunk-YPAQFBMN.js.map +0 -1
- package/dist/chunk-YWLDLNAV.js.map +0 -1
- package/dist/chunk-ZN7KUMPY.js.map +0 -1
- package/dist/chunk-ZX2QQJXD.js.map +0 -1
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
# Editor host
|
|
2
|
+
|
|
3
|
+
The Kerf UI editor edits view documents (`*.kui.json`; see
|
|
4
|
+
[`docs/26-ui-editor.md`](../../docs/26-ui-editor.md)). It ships in two forms:
|
|
5
|
+
|
|
6
|
+
- **`@kerfjs/ui/vite-editor`**: a Vite plugin that runs the editor inside your
|
|
7
|
+
application's own dev server, so your components preview with their real
|
|
8
|
+
functions, CSS, and aliases.
|
|
9
|
+
- **`@kerfjs/ui/editor`**: the editor module itself, for a host that builds
|
|
10
|
+
its own page.
|
|
11
|
+
|
|
12
|
+
## Run it in your app
|
|
13
|
+
|
|
14
|
+
```ts
|
|
15
|
+
// vite.config.ts
|
|
16
|
+
import { kerfUiEditor } from "@kerfjs/ui/vite-editor";
|
|
17
|
+
import { defineConfig } from "vite";
|
|
18
|
+
|
|
19
|
+
export default defineConfig({
|
|
20
|
+
plugins: [kerfUiEditor()],
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Start the dev server and open `/__kerf-ui-editor/`. The plugin runs only on
|
|
25
|
+
the dev server; a production build never includes it.
|
|
26
|
+
|
|
27
|
+
The editor saves every change through the dev server. Until you choose a path
|
|
28
|
+
with **Save As…**, a document autosaves as a draft in `.kerf-ui-editor/drafts/`
|
|
29
|
+
at your project root; that folder holds its own `.gitignore`, so drafts never
|
|
30
|
+
reach git. After Save As, changes save to the `.kui.json` path you chose, and
|
|
31
|
+
the editor reopens it on your next visit. The plugin's file endpoint
|
|
32
|
+
(`/__kerf-ui-editor/api/file`) reads and writes only `.kui.json` files inside
|
|
33
|
+
the project, outside `node_modules` and `.git`, and only for requests the
|
|
34
|
+
editor itself makes. A host that mounts the editor itself passes
|
|
35
|
+
`createEditor({ catalog, storage: devServerStorage() })` and adds
|
|
36
|
+
`editorFileMiddleware(root)` to its server.
|
|
37
|
+
|
|
38
|
+
The editor offers Kerf UI's components and every component your
|
|
39
|
+
`.kerf-ui-profile.json` declares a catalog for. Generate your package's
|
|
40
|
+
`component-props.json` with `kerf-ui-props --write` and name it beside your
|
|
41
|
+
composition catalog:
|
|
42
|
+
|
|
43
|
+
```json
|
|
44
|
+
{
|
|
45
|
+
"schemaVersion": 1,
|
|
46
|
+
"scope": "workspace",
|
|
47
|
+
"catalogs": [
|
|
48
|
+
{
|
|
49
|
+
"package": "orders-app",
|
|
50
|
+
"composition": {
|
|
51
|
+
"path": "./component-composition.json",
|
|
52
|
+
"schemaVersion": 1
|
|
53
|
+
},
|
|
54
|
+
"props": { "path": "./component-props.json", "schemaVersion": 1 }
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Each component previews with the function its catalog entry names (`import`
|
|
61
|
+
and `export`), including components that live in your app's source. Your
|
|
62
|
+
components appear under **Application** in the palette, and adding one lists
|
|
63
|
+
your package in the document's `catalogs`. A component whose function cannot
|
|
64
|
+
be found previews as a labeled placeholder rather than failing the canvas.
|
|
65
|
+
|
|
66
|
+
Options:
|
|
67
|
+
|
|
68
|
+
- `route`: where the editor is served (default `/__kerf-ui-editor/`).
|
|
69
|
+
- `registry`: a module, resolved against Vite's `root`, whose default export
|
|
70
|
+
maps catalog keys to component functions, to add or replace the ones the
|
|
71
|
+
catalogs provide. Default: `src/kerf-ui-registry.ts` when it exists.
|
|
72
|
+
- `fieldEditors`: a module, resolved the same way, whose default export maps
|
|
73
|
+
type names to field editors (below). Default:
|
|
74
|
+
`src/kerf-ui-field-editors.ts` when it exists.
|
|
75
|
+
- `devicePresets`: a module, resolved the same way, whose default export is
|
|
76
|
+
play mode's device presets (see Play mode). Only loaded when named.
|
|
77
|
+
- `playHandlers`: a module, resolved the same way, whose default export maps
|
|
78
|
+
action names to play mode's mock handlers (see Play mode). Only loaded
|
|
79
|
+
when named.
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
// src/kerf-ui-registry.ts
|
|
83
|
+
import { OrderCard } from "./order-card.js";
|
|
84
|
+
|
|
85
|
+
export default {
|
|
86
|
+
// Preview the card with sample data the document does not carry.
|
|
87
|
+
"orders-app:order-card": (props: Parameters<typeof OrderCard>[0]) =>
|
|
88
|
+
OrderCard({ total: 4200, ...props }),
|
|
89
|
+
};
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
## Field editors for your types
|
|
93
|
+
|
|
94
|
+
The Inspector edits an object prop in a form built from its type, a list of
|
|
95
|
+
objects item by item, strings as tags, and icon data in a picker. To edit one
|
|
96
|
+
of your types your own way, register a field editor for its name, a props
|
|
97
|
+
catalog definition such as `ShippingWindow`. It replaces the type-driven form
|
|
98
|
+
wherever a prop or field has that type, and Edit as JSON, Reset, and Fill
|
|
99
|
+
with example stay around it.
|
|
100
|
+
|
|
101
|
+
```tsx
|
|
102
|
+
// src/kerf-ui-field-editors.tsx (name it with the plugin's `fieldEditors`
|
|
103
|
+
// option; the default path is src/kerf-ui-field-editors.ts)
|
|
104
|
+
import { Button } from "@kerfjs/ui/button";
|
|
105
|
+
import type { FieldEditors } from "@kerfjs/ui/editor";
|
|
106
|
+
import { List } from "@kerfjs/ui/list";
|
|
107
|
+
|
|
108
|
+
const fieldEditors: FieldEditors = {
|
|
109
|
+
ShippingWindow: {
|
|
110
|
+
render: (context) => (
|
|
111
|
+
<List>
|
|
112
|
+
<List controlInsets="trbl" gap>
|
|
113
|
+
<Button
|
|
114
|
+
action={context.setAction}
|
|
115
|
+
rootAttributes={context.set({ from: "Mon", to: "Fri" })}
|
|
116
|
+
>
|
|
117
|
+
This week
|
|
118
|
+
</Button>
|
|
119
|
+
</List>
|
|
120
|
+
{context.form()}
|
|
121
|
+
</List>
|
|
122
|
+
),
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export default fieldEditors;
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
`render(context)` receives:
|
|
130
|
+
|
|
131
|
+
- `value`, `type`, and `definitions`: the value being edited and its type.
|
|
132
|
+
- `commit(next)`: writes the next value as one undoable edit (`undefined`
|
|
133
|
+
unsets it).
|
|
134
|
+
- `setAction` and `set(next)`: a button with that `action` and those
|
|
135
|
+
`rootAttributes` sets the value to `next`.
|
|
136
|
+
- `control(path, kind)`: attributes for your own control (a `TextField`'s
|
|
137
|
+
`rootAttributes`, or a native input) that commits the field at `path` on
|
|
138
|
+
`change`, read as `text`, `number`, `switch`, `select`, or `list` (JSON).
|
|
139
|
+
- `form(path?)`: the type-driven form for the value, or for the object at
|
|
140
|
+
`path` inside it.
|
|
141
|
+
|
|
142
|
+
A field editor may also name its `container` (`'subview'`, pushed in the
|
|
143
|
+
Inspector, or `'dialog'`; the default rule pushes at most 10 fields) and a
|
|
144
|
+
`wire(root, context)` that wires its own events once, reads the open value's
|
|
145
|
+
context with `context()`, and returns a disposer.
|
|
146
|
+
|
|
147
|
+
## Build your own host
|
|
148
|
+
|
|
149
|
+
```ts
|
|
150
|
+
import "@kerfjs/ui/document.css";
|
|
151
|
+
import "@kerfjs/ui/styles.css";
|
|
152
|
+
import "@kerfjs/ui/layout.css";
|
|
153
|
+
import "@kerfjs/ui/workbench.css";
|
|
154
|
+
import "@kerfjs/ui/editor.css";
|
|
155
|
+
import "@kerfjs/ui/popup-menu/register";
|
|
156
|
+
import "@kerfjs/ui/select/register";
|
|
157
|
+
|
|
158
|
+
import selection from "@kerfjs/ui/ai/component-catalog.json";
|
|
159
|
+
import composition from "@kerfjs/ui/ai/component-composition.json";
|
|
160
|
+
import props from "@kerfjs/ui/ai/component-props.json";
|
|
161
|
+
import * as button from "@kerfjs/ui/button";
|
|
162
|
+
import {
|
|
163
|
+
componentMap,
|
|
164
|
+
createEditor,
|
|
165
|
+
createEditorCatalog,
|
|
166
|
+
} from "@kerfjs/ui/editor";
|
|
167
|
+
import { mount } from "kerfjs";
|
|
168
|
+
|
|
169
|
+
const catalog = createEditorCatalog({
|
|
170
|
+
props: [props],
|
|
171
|
+
composition: [composition],
|
|
172
|
+
selection: [selection],
|
|
173
|
+
// Catalog key → component function, from the modules the catalog names.
|
|
174
|
+
components: componentMap([props], { "@kerfjs/ui/button": button }),
|
|
175
|
+
});
|
|
176
|
+
const root = document.getElementById("editor")!;
|
|
177
|
+
const editor = createEditor({ catalog });
|
|
178
|
+
mount(root, editor.render);
|
|
179
|
+
editor.wire(root);
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
- `createEditor({ catalog, document?, save?, storage?, fieldEditors?, devicePresets?, playHandlers? })`:
|
|
183
|
+
`document` is the document to start with (default an empty document
|
|
184
|
+
with no root, whose canvas asks for the first component),
|
|
185
|
+
`save(fileName, text)` replaces the default download for Save and Export,
|
|
186
|
+
`fieldEditors` registers field editors by type name (above), and
|
|
187
|
+
`devicePresets` adds play mode's devices and `playHandlers` its mock
|
|
188
|
+
action handlers (below).
|
|
189
|
+
- `createEditorCatalog({ props, composition, selection?, components, placeholders? })`
|
|
190
|
+
combines catalogs. Without a selection catalog a component is named by its
|
|
191
|
+
export. `placeholders` maps `<component key>.<prop>` to a factory for the
|
|
192
|
+
canvas's stand-in for an app-supplied prop (a function or a model) that a
|
|
193
|
+
document takes through a prop-typed param, such as
|
|
194
|
+
`"orders-app:order-list.renderRow": () => (order) => OrderRow({ order })`.
|
|
195
|
+
They add to and replace Kerf UI's own.
|
|
196
|
+
- `componentMap(props, modules)` maps each catalog key to
|
|
197
|
+
`modules[import][export]`.
|
|
198
|
+
|
|
199
|
+
The host loads the global stylesheets and registers `popup-menu/register` and
|
|
200
|
+
`select/register`, as any Kerf UI app does. Give the mount element
|
|
201
|
+
`class="kui-app-root"` so the editor fills the window.
|
|
202
|
+
|
|
203
|
+
## Play mode
|
|
204
|
+
|
|
205
|
+
**Play** in the Canvas toolbar runs the document as its users would, in a
|
|
206
|
+
frame at a phone-sized viewport, scaled down to fit when the window is
|
|
207
|
+
smaller. **Done**, or Escape while focus is outside
|
|
208
|
+
the frame, returns to editing with the selection as it was. The frame loads
|
|
209
|
+
your editor page again with a `?kerf-ui-play` query, and `createEditor`
|
|
210
|
+
returns the player on that page instead of the editor, so a host needs no
|
|
211
|
+
extra route or code. The player gets the document from its editor by
|
|
212
|
+
same-origin `postMessage`. Your host's page must keep `createEditor`,
|
|
213
|
+
`mount`, and `wire` unconditional, and serve the same page for that query.
|
|
214
|
+
Inside the frame, the components run with their real wiring. Each NavStack
|
|
215
|
+
starts at its first view, as an app launches; your mock handlers push the
|
|
216
|
+
rest (below). Tabs switch and close, a NavStack's back pops, regions and
|
|
217
|
+
Workbench panels resize, a SplitView collapses on a phone-sized device
|
|
218
|
+
and pushes its detail from a row, value controls (switches, selects,
|
|
219
|
+
sliders, segmented controls, chips, and the rest) keep what you set, a
|
|
220
|
+
repeated tab selects for its own row (and a control inside a repeated
|
|
221
|
+
row keeps its own row's value), and Workbench rails and sidebars collapse, all on a
|
|
222
|
+
play-time copy of the document. Nothing you do in play mode changes the
|
|
223
|
+
document.
|
|
224
|
+
|
|
225
|
+
The play bar picks the device: phones, tablets, laptops and desktops, and
|
|
226
|
+
Flexible (a width and height you type or drag). Phones and tablets rotate
|
|
227
|
+
and have an **Installed app** toggle. Off, the view runs as a browser tab:
|
|
228
|
+
the device's safe areas are outside the page, as with the default
|
|
229
|
+
`viewport-fit`. On, the view fills the device and gets its safe areas
|
|
230
|
+
through Kerf UI's `--kui-safe-area-*` tokens, so components that claim safe
|
|
231
|
+
areas lay out as on the device. **Scale** is Fit (the default, never larger
|
|
232
|
+
than 100%) or a fixed percentage, which may overflow and scroll the stage.
|
|
233
|
+
The view sits in a generic mock of the device. The **Device frame** toggle hides it without changing the layout. The frame's viewport is always the device's, so media queries and
|
|
234
|
+
`deviceClass()` inside it answer for that device. Touch input, pixel
|
|
235
|
+
density, and the on-screen keyboard aren't emulated, as the device menu notes.
|
|
236
|
+
The editor remembers the choice per browser.
|
|
237
|
+
|
|
238
|
+
Add your own devices with `createEditor({ devicePresets })`, or the Vite
|
|
239
|
+
plugin's `devicePresets` module. An array adds presets, replacing a shipped
|
|
240
|
+
one with the same `id`; a function receives the shipped list
|
|
241
|
+
(`SHIPPED_DEVICE_PRESETS`) and returns the whole list.
|
|
242
|
+
|
|
243
|
+
```ts
|
|
244
|
+
// src/kerf-ui-devices.ts (name it with the plugin's `devicePresets` option)
|
|
245
|
+
import type { DevicePreset } from "@kerfjs/ui/editor";
|
|
246
|
+
|
|
247
|
+
const devices: DevicePreset[] = [
|
|
248
|
+
{
|
|
249
|
+
id: "kiosk",
|
|
250
|
+
label: "Store kiosk",
|
|
251
|
+
kind: "tablet",
|
|
252
|
+
width: 1080,
|
|
253
|
+
height: 1920,
|
|
254
|
+
safeArea: {
|
|
255
|
+
portrait: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
256
|
+
landscape: { top: 0, right: 0, bottom: 0, left: 0 },
|
|
257
|
+
},
|
|
258
|
+
frame: "tablet",
|
|
259
|
+
},
|
|
260
|
+
];
|
|
261
|
+
export default devices;
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
A preset's sizes are CSS pixels in portrait. `safeArea` is the insets an
|
|
265
|
+
installed app gets per orientation; `browserChrome`, when given, is what a
|
|
266
|
+
browser tab's chrome takes instead (it defaults to the safe areas).
|
|
267
|
+
|
|
268
|
+
The view's actions (the names its `$action`s give) call your mock handlers
|
|
269
|
+
when you register them, so a flow such as "row opens its detail" can be
|
|
270
|
+
walked end to end. Pass `createEditor({ playHandlers })`, or name a module
|
|
271
|
+
with the Vite plugin's `playHandlers` option. The handlers run inside the
|
|
272
|
+
play frame.
|
|
273
|
+
|
|
274
|
+
```ts
|
|
275
|
+
// src/kerf-ui-play-handlers.ts (name it with the plugin's `playHandlers` option)
|
|
276
|
+
import type { PlayHandlers } from "@kerfjs/ui/editor";
|
|
277
|
+
|
|
278
|
+
const playHandlers: PlayHandlers = {
|
|
279
|
+
"open-order": ({ view }) => {
|
|
280
|
+
view.setParams({ selectedId: view.key ?? "" });
|
|
281
|
+
view.navStack("orders")?.push("order");
|
|
282
|
+
},
|
|
283
|
+
};
|
|
284
|
+
export default playHandlers;
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
A handler receives `{ action, nodeId, event, params, view }`:
|
|
288
|
+
|
|
289
|
+
- `params` holds the view's current param values.
|
|
290
|
+
- `view.key` is the row's `data-key`.
|
|
291
|
+
- `view.setParams(values)` re-renders the view with new values.
|
|
292
|
+
- `view.navStack(name)` finds a NavStack by its author name, `id`, or node
|
|
293
|
+
id. Its `push(viewKey)` shows one of the document's views for that stack,
|
|
294
|
+
and `pop()` goes back one.
|
|
295
|
+
|
|
296
|
+
A handler may also open an overlay. A handler that throws (or rejects) is
|
|
297
|
+
logged, and the view keeps running. An action with no handler is only
|
|
298
|
+
logged. The play bar's **Action log** counts the actions you haven't seen
|
|
299
|
+
and lists them, newest first, with whether a handler ran.
|
|
@@ -9,3 +9,42 @@ The application owns validation, draft state, permissions, and submission. Valid
|
|
|
9
9
|
Keep an unavailable choice or action visible and disabled when that helps explain the current state; hide it only when the person has no access to the feature. Put Cancel before the trailing primary or destructive submit action, with space separating them. Use a native form submit button so Enter and browser form behavior work; preserve the draft on transport failure and prevent duplicate submissions while one is in flight. Test live values, `aria-invalid`, focus, and emitted events, not attributes alone.
|
|
10
10
|
|
|
11
11
|
See [accessibility contracts](./accessibility.md#textfield) for field behavior, [interaction conventions](./interaction-conventions.md) for dialog and action order, and [application testing](./testing-applications.md) for form assertions.
|
|
12
|
+
|
|
13
|
+
## Form
|
|
14
|
+
|
|
15
|
+
Group fields that are saved or sent together in a `Form` from `@kerfjs/ui/form`, not a raw `<form>`. It renders a native `form` with no inset, chrome, or layout of its own (`display: contents`), so its children lay out as the parent's own; put a `List`, `Row`, or `Grid` inside it for rhythm. A parent rule that selects its direct children does not reach through it.
|
|
16
|
+
|
|
17
|
+
Submission follows one contract:
|
|
18
|
+
|
|
19
|
+
- Call `wireForms(root)` from `@kerfjs/ui/wire-forms` once. It cancels the native submission's page navigation for every `Form` below `root`, whether a submit `Button` or Enter in a field submitted it. It listens in the capture phase, so no handler can let a submission through, and it leaves a native `<form>` that is not a `Form` alone.
|
|
20
|
+
- Give the `Form` an `action`. Like a `Button`'s, it is a delegated `data-action`, not the native URL: handle it with `delegateActions(root, 'submit', { [action]: (event, form) => … })` and read the fields with `new FormData(form)`.
|
|
21
|
+
- Native constraint validation runs before `submit` fires. Set `noValidate` when the application validates the fields and shows their errors itself.
|
|
22
|
+
- A form a visible heading names, such as a page's `ToolbarText` title, takes `labelledBy` (that heading's id) and optionally `describedBy` (its supporting line's id); a named form is a `form` landmark. Use `ariaLabel` only when no visible heading names it, and leave all three off for a form inside an already-named surface such as a dialog.
|
|
23
|
+
- `eslint-plugin-kerfjs` reports a raw `<form>` (`KUI-L303`) and a `Form` rendered with no `wireForms` reachable (`KUI-L401`).
|
|
24
|
+
- A submit `Button` outside the form, such as in a `DialogSurface` footer, takes `type="submit"` and `form={id}`. A click action that reads `new FormData(document.getElementById(id))` also works.
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { Button } from "@kerfjs/ui/button";
|
|
28
|
+
import { Form } from "@kerfjs/ui/form";
|
|
29
|
+
import { List } from "@kerfjs/ui/list";
|
|
30
|
+
import { TextField } from "@kerfjs/ui/text-field";
|
|
31
|
+
import { wireForms } from "@kerfjs/ui/wire-forms";
|
|
32
|
+
import { delegateActions } from "kerfjs/actions";
|
|
33
|
+
|
|
34
|
+
<Form id="project-form" action="save-project">
|
|
35
|
+
<List gap="xs" controlInsets="rl">
|
|
36
|
+
<TextField name="project" label="Project Name" required />
|
|
37
|
+
<Button type="submit" tone="brand">
|
|
38
|
+
Save
|
|
39
|
+
</Button>
|
|
40
|
+
</List>
|
|
41
|
+
</Form>;
|
|
42
|
+
|
|
43
|
+
wireForms(root);
|
|
44
|
+
delegateActions(root, "submit", {
|
|
45
|
+
"save-project": (_event, form) => {
|
|
46
|
+
const data = new FormData(form as HTMLFormElement);
|
|
47
|
+
saveProject(String(data.get("project")));
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
```
|
package/docs/gauge.md
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Gauge
|
|
2
|
+
|
|
3
|
+
`Gauge` (`@kerfjs/ui/gauge`) is a speedometer-style dial for a reading on a
|
|
4
|
+
scale that is not progress toward done: a live rate, a level, a load. It draws
|
|
5
|
+
a 240-degree track arc with the gap at the bottom, a fill from zero to the
|
|
6
|
+
value, and a needle, scaled to a caller-supplied `max`.
|
|
7
|
+
|
|
8
|
+
```tsx
|
|
9
|
+
import { Gauge } from "@kerfjs/ui/gauge";
|
|
10
|
+
|
|
11
|
+
<Gauge label="Tokens per Minute" value={420} max={1000} unit="tok/min" />;
|
|
12
|
+
<Gauge label="Agent Tokens per Minute" value={420} max={1000} unit="tok/min" variant="bare" />;
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
- **Scale.** `value` is zero or more and `max` is a positive number; anything
|
|
18
|
+
else throws a `RangeError`. The dial runs from zero to `max`.
|
|
19
|
+
- **Pinning.** A value above `max` pins the needle and fill at the end of the
|
|
20
|
+
scale and sets `data-pinned`, while the readout still shows the real value
|
|
21
|
+
(1170 on a 1000 scale reads "1170").
|
|
22
|
+
- **Readout.** `valueText` is the value as shown and spoken, such as "1.2k";
|
|
23
|
+
it defaults to the value rounded to one decimal place. `unit` sits under
|
|
24
|
+
the value.
|
|
25
|
+
- **Variants.**
|
|
26
|
+
- `full` (the default) draws eleven ticks (longer at zero, half, and full
|
|
27
|
+
scale) and the value and unit inside the dial.
|
|
28
|
+
- `bare` draws only the arc, fill, needle, and hub, cropped below the arc,
|
|
29
|
+
for chip height. Its value lives in the accessible name and a hover
|
|
30
|
+
`title` of the label and value.
|
|
31
|
+
- **Size.** `size` is the width as a typed `CssLength` (default 88px for
|
|
32
|
+
`full`, the size of a stats tile; 40px for `bare`). The height follows the
|
|
33
|
+
dial, and the whole drawing, readout included, scales with the width, so
|
|
34
|
+
one gauge serves a tile and a large standby display.
|
|
35
|
+
- **Color.** `tone` colors the fill from the semantic ramps: `brand` (the
|
|
36
|
+
default), `success`, `warning`, or `danger`. `colors` takes a consumer
|
|
37
|
+
palette, such as dark red on black for a night display, as typed
|
|
38
|
+
`CssColor` values for the `track`, `fill`, `needle`, and `text` (the value,
|
|
39
|
+
unit, and ticks); an omitted color keeps the default. A consumer palette
|
|
40
|
+
never needs CSS that targets the gauge's classes.
|
|
41
|
+
- **Motion.** The needle and fill transition (300ms) when the value changes
|
|
42
|
+
and nowhere else: a first render draws them in place. They hold still
|
|
43
|
+
under `prefers-reduced-motion` or the static-effects switch.
|
|
44
|
+
- **Accessibility.** The root is `role="meter"` named by `label`, with
|
|
45
|
+
`aria-valuemin` 0, `aria-valuemax` `max`, `aria-valuenow` clamped to `max`,
|
|
46
|
+
and `aria-valuetext` of the value text and unit. The SVG is decorative.
|
|
47
|
+
Forced colors draw a `GrayText` track, a `Highlight` fill, and a
|
|
48
|
+
`CanvasText` needle, ticks, and readout.
|
|
49
|
+
- **Geometry.** No margin, border, or padding; the box is the dial.
|
|
50
|
+
|
|
51
|
+
## Choosing
|
|
52
|
+
|
|
53
|
+
- Progress toward done: `ProgressBar` or `ProgressRing`, not a gauge.
|
|
54
|
+
- A live rate or level read at a glance on a tile, chip, or display: `Gauge`.
|
|
55
|
+
- A precise number that matters more than the glance: show it in `Text`.
|
|
@@ -42,6 +42,7 @@ Use the spacing scale by relationship: 8px within a group, 16px between like gro
|
|
|
42
42
|
## Responsive, platform, and roles
|
|
43
43
|
|
|
44
44
|
- Declare a desktop minimum and a collapse order for each composed screen. Measure the actual content region, not only the viewport. Protect readable text, recognizable icons, and usable targets. Relocate or hide secondary labels before shrinking icons or controls below their usable size.
|
|
45
|
+
- A section or filter strip that must stay one row scrolls horizontally inside its own group; it never wraps the content below it down (`ChoiceChips` `overflow="scroll"`, or a `TabBar` when the choice switches tabpanels).
|
|
45
46
|
- Use one scroll owner per region and check narrow, intermediate, wide, zoomed, keyboard, and reduced-motion states. Avoid clipped menus and dialogs; anchored surfaces retain their trigger relationship and stay inside the viewport.
|
|
46
47
|
- Keep the same mental model across platforms while using native platform language and behavior. Use one icon set through a shared renderer; decorative icons are hidden from assistive technology and icon-only controls have accessible names. Do not use emoji as UI icons.
|
|
47
48
|
- A restricted role sees the same interface with unavailable features explained or disabled according to capability. Do not invent a separate stripped-down product that changes navigation or identity. Important state must be expressed in text or structure, not color alone.
|
package/docs/layout.md
CHANGED
|
@@ -36,6 +36,29 @@ size) tall, and below that lets the whole pane scroll as one column, header,
|
|
|
36
36
|
content, and footer together, so the content keeps its natural height. The
|
|
37
37
|
default `fixed` always pins them.
|
|
38
38
|
|
|
39
|
+
### Filling the parent's height
|
|
40
|
+
|
|
41
|
+
A Pane takes its content's height by default, so its footer sits right after
|
|
42
|
+
short content. Set `fill` to make it take the full height of a parent with a
|
|
43
|
+
definite height (an app's `.kui-app-root`, a `SizedRegion`, a grid cell) or the
|
|
44
|
+
rest of a flex column. The header and footer then stay pinned at the parent's
|
|
45
|
+
edges and the content scrolls between them. Under a parent with no definite
|
|
46
|
+
height, `fill` falls back to the content height.
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
<div class="kui-app-root">
|
|
50
|
+
<Pane fill header={<NotesToolbar />} footer={<NotesStatus />}>
|
|
51
|
+
<ContentItem>Groceries for the weekend</ContentItem>
|
|
52
|
+
</Pane>
|
|
53
|
+
</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
A Pane that is the only child of a `NavStack` view, `TabNavigator` scene, or
|
|
57
|
+
`Workbench` region already fills it, so it needs no `fill`. For a whole screen
|
|
58
|
+
that is one pane, use a filled Pane when it never navigates and a one-entry
|
|
59
|
+
`NavStack` when it pushes views or needs the stack's chrome; see
|
|
60
|
+
[Choosing an app layout](app-layouts.md#one-pane-on-the-whole-screen).
|
|
61
|
+
|
|
39
62
|
### Deep content inset
|
|
40
63
|
|
|
41
64
|
Set `deepInset` on a `Pane` to add 8px of padding on every side of its scrolling
|
|
@@ -72,6 +95,37 @@ Give a focusable Pane a useful `label` when it represents a distinct region.
|
|
|
72
95
|
The ring paints above edge-to-edge child surfaces without intercepting their
|
|
73
96
|
buttons, selects, or nested scrolling.
|
|
74
97
|
|
|
98
|
+
### Named anchor
|
|
99
|
+
|
|
100
|
+
Set `anchorName` (a CSS dashed ident such as `--app-main`) to name the Pane as
|
|
101
|
+
a CSS anchor, so a surface that docks to a named anchor, such as a
|
|
102
|
+
`PopoverDialogSurface` with the same `anchorName`, docks to this pane. Name
|
|
103
|
+
the app's main column this way instead of writing `anchor-name` CSS.
|
|
104
|
+
`PaneConfig` forwards it, so a Workbench `mainPane`, a panel `pane`, or a
|
|
105
|
+
NavStack view takes it too. A name that is not a dashed ident throws.
|
|
106
|
+
|
|
107
|
+
```tsx
|
|
108
|
+
<Workbench mainPane={{ anchorName: '--app-main' }} main={conversation} />
|
|
109
|
+
<PopoverDialogSurface id="file-request" label="Allow File Access" dismiss="manual" anchorName="--app-main">
|
|
110
|
+
{request}
|
|
111
|
+
</PopoverDialogSurface>
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### Scroll anchoring
|
|
115
|
+
|
|
116
|
+
A Pane's scrolling content keeps the browser's scroll anchoring by default:
|
|
117
|
+
when something above the visible content grows or shrinks, the browser holds
|
|
118
|
+
what the reader sees still. Set `scrollAnchoring="none"` on a pane whose own
|
|
119
|
+
edits insert or remove rows above the reader, such as an inspector. Safari can
|
|
120
|
+
apply a stale anchoring adjustment on a later, unrelated reflow and jump that
|
|
121
|
+
pane's content under the pointer. `PaneConfig` forwards it, so a Workbench
|
|
122
|
+
panel `pane`, `mainPane`, or NavStack view takes it too. Leave other panes at
|
|
123
|
+
the default.
|
|
124
|
+
|
|
125
|
+
```tsx
|
|
126
|
+
<NavStack views={[{ key: 'inspector', pane: { scrollAnchoring: 'none' }, content }]} />
|
|
127
|
+
```
|
|
128
|
+
|
|
75
129
|
### Lowered work surfaces
|
|
76
130
|
|
|
77
131
|
Set `appearance="sunken"` when the work area itself should use the lowered
|
|
@@ -164,13 +218,22 @@ seed sweep across hue and lightness holds every text token at 4.5:1 or better
|
|
|
164
218
|
over the surface, raised surface, and quiet fills, with and without the Web
|
|
165
219
|
Awesome theme (`tests/browser/tone-contrast.spec.ts`).
|
|
166
220
|
|
|
167
|
-
The scope also takes the declared `color-scheme` and
|
|
168
|
-
`
|
|
169
|
-
their own fills
|
|
221
|
+
The scope also takes the declared `color-scheme` and Kerf's
|
|
222
|
+
`data-kui-scheme` / `kui-light` / `kui-dark` scheme scope, so Web Awesome
|
|
223
|
+
components inside it re-derive their own fills when the Web Awesome bridge is
|
|
224
|
+
loaded. Without relative color syntax, and under
|
|
170
225
|
`prefers-contrast: more`, the scope keeps the plain palette in its declared
|
|
171
226
|
scheme. `tint` and `background` combine: `background` paints the pane, and
|
|
172
227
|
`tint` still re-derives the tokens for its content.
|
|
173
228
|
|
|
229
|
+
For the plain palette in a fixed scheme, without a tint color (a dark
|
|
230
|
+
player bar on a light page, a light card on a dark one), set `scheme="dark"`
|
|
231
|
+
or `scheme="light"` on the same components instead. It renders the same
|
|
232
|
+
`data-kui-scheme` scope; a `tint` already implies its scheme, so pass both
|
|
233
|
+
only when they agree. Outside a component, put `kui-light`, `kui-dark`, or
|
|
234
|
+
`kui-invert` (the opposite of the surrounding scheme) on any element. These
|
|
235
|
+
are Kerf's own scopes and need no Web Awesome CSS.
|
|
236
|
+
|
|
174
237
|
Add `accent` (usually the artwork's most vivid color) to re-derive the brand
|
|
175
238
|
ramp too: `tint={{ color, scheme, accent }}`. Loud fills (primary buttons, the
|
|
176
239
|
current popup row, checked controls) and their text, brand text and links,
|
|
@@ -463,6 +526,14 @@ timeline in the containing Pane's shared vertical scroller. Set
|
|
|
463
526
|
image hero while preserving the card and its reserved media height. Enable it
|
|
464
527
|
only when many media cards share a scrollport; it has no effect in browsers
|
|
465
528
|
without `content-visibility`. The card body and controls remain in the layout.
|
|
529
|
+
The gain is fewer compositor layers (453 to 42 in a measured 200-card feed),
|
|
530
|
+
not faster frames, and it costs main-thread layout while scrolling. Its known
|
|
531
|
+
trade-off: a scroll jump larger than the browser's content-visibility margin
|
|
532
|
+
(a scrollbar drag, End or Home, a programmatic scroll restore) paints the newly
|
|
533
|
+
visible heroes blank for a frame, and an End-key smooth scroll can show them
|
|
534
|
+
blank for most of its frames, before they paint. Flings within the margin, feed
|
|
535
|
+
height, scroll anchoring, fragment links, find in page, and print are
|
|
536
|
+
unaffected. That is why it stays opt-in.
|
|
466
537
|
`wireContentItems`
|
|
467
538
|
also listens for image load/error from one containing root: a broken lead image
|
|
468
539
|
hides its media block and removes its tint, leaving an ordinary ContentItem;
|
|
@@ -493,7 +564,9 @@ For a selectable card, set `interactive`, a delegated `action`, and an optional
|
|
|
493
564
|
activates focused cards with Enter or Space and forwards the resulting click to
|
|
494
565
|
the app's ordinary `data-action` handler. `selectionMode="toggle"` maps
|
|
495
566
|
`selected` to a button's `aria-pressed`; `selectionMode="single"` maps it to an
|
|
496
|
-
option's `aria-selected` and belongs in
|
|
567
|
+
option's `aria-selected` and belongs in a labeled `List selectionMode="single"`
|
|
568
|
+
listbox, which `wireContentItems` makes one roving Tab stop with Up/Down/Home/End
|
|
569
|
+
movement between its enabled options.
|
|
497
570
|
For a card with nested controls and multi-selection, place
|
|
498
571
|
`selectionMode="multiple"` cards inside a `List selectionMode="multiple"` with
|
|
499
572
|
`ariaLabel`. The List is a labeled `grid` with `aria-multiselectable`, each card
|
|
@@ -833,6 +906,11 @@ nearly the visible width, lets the next one `peek` in (24px), snaps to column
|
|
|
833
906
|
starts, hides the scrollbar, and scrolls smoothly unless reduced motion is
|
|
834
907
|
preferred. Choose the layout per device class in the app.
|
|
835
908
|
|
|
909
|
+
Name a board with `ariaLabel`: the track becomes a `role="region"` with that
|
|
910
|
+
name. Name each column the same way: a column `List` takes
|
|
911
|
+
`landmark="region"` and its own `ariaLabel`. Both are props, so a view
|
|
912
|
+
document carries them; `rootAttributes` holds only `data-*` there.
|
|
913
|
+
|
|
836
914
|
## Row and List alignment
|
|
837
915
|
|
|
838
916
|
Use `Row` for a horizontal flex layout and `List` for a vertical one. `Row`
|
|
@@ -865,6 +943,11 @@ for the CSS initial value, pass `true` for `1 1 auto`, select the finite
|
|
|
865
943
|
shorthand. A `CssLength` is not a flex shorthand, and arbitrary strings are
|
|
866
944
|
rejected by the type contract.
|
|
867
945
|
|
|
946
|
+
A Row of related controls that is not a toolbar, such as the filter
|
|
947
|
+
suggestions beside a search field, can name itself as a group with
|
|
948
|
+
`ariaLabel`: it renders `role="group"` with that `aria-label`, so assistive
|
|
949
|
+
technology announces the set by name.
|
|
950
|
+
|
|
868
951
|
### Filling a fixed-height parent
|
|
869
952
|
|
|
870
953
|
`flex` sizes a Row, List, or Grid inside a flex layout. When one of them is the
|
|
@@ -96,5 +96,10 @@ it with `closeDialog(element)`, the close control, Escape, an element with
|
|
|
96
96
|
functions are re-exported from this subpath. Give sibling dialogs distinct
|
|
97
97
|
`rootAttributes['data-key']` values so a re-render morphs each into itself.
|
|
98
98
|
|
|
99
|
+
Pass `embedded` to render it in flow and always shown instead, keeping its
|
|
100
|
+
`height`, for a catalog, a design canvas, or a document; `openDialog()` and
|
|
101
|
+
`closeDialog()` leave it alone. The Kerf UI editor shows a ListDetailDialog this
|
|
102
|
+
way on its edit canvas.
|
|
103
|
+
|
|
99
104
|
See the [list-detail dialog recipe](recipes.md#list-detail-dialog) for a
|
|
100
105
|
complete, production-backed example.
|
package/docs/manual-test-plan.md
CHANGED
|
@@ -24,6 +24,38 @@ Playwright cannot raise a virtual keyboard; the overlap formula is unit-tested
|
|
|
24
24
|
(`tests/unit/dialog-surface-controller.test.tsx`) and a simulated keyboard is covered
|
|
25
25
|
in `tests/browser/dialog-bottom-sheet.spec.ts`.
|
|
26
26
|
|
|
27
|
+
## ScrollEffect and BackdropImage: OS transparency and slow displays
|
|
28
|
+
|
|
29
|
+
Route: `?component=scroll-effect` and `?component=backdrop-image`. Playwright
|
|
30
|
+
cannot emulate `prefers-reduced-transparency` or `update: slow`, so their
|
|
31
|
+
static fallbacks are pinned only by stylesheet unit tests
|
|
32
|
+
(`tests/unit/scroll-effect.test.tsx`). On macOS, turn on Reduce Transparency
|
|
33
|
+
(Accessibility, Display) and scroll each example in Safari and Chrome: every
|
|
34
|
+
card stays in place, fully opaque, and undimmed, and the BackdropImage image
|
|
35
|
+
stays static and sharp. On an e-ink reader or print preview, the same
|
|
36
|
+
examples render at rest.
|
|
37
|
+
|
|
38
|
+
## PagedView: touch swipes on a phone
|
|
39
|
+
|
|
40
|
+
Route: `?component=paged-view`, examples "Three Pages" and "Narrow Sidebar".
|
|
41
|
+
Run on an iPhone (Safari) and an Android phone (Chrome). Playwright can drive
|
|
42
|
+
a real touch swipe only in Chromium, over the DevTools protocol
|
|
43
|
+
(`tests/browser/paged-view.spec.ts`); the momentum and snapping of a real
|
|
44
|
+
finger on iOS and Android are checked here.
|
|
45
|
+
|
|
46
|
+
1. On Today, flick left a short distance (well under half the page). The view
|
|
47
|
+
snaps to Token Rate, and its dot becomes the wide current pill.
|
|
48
|
+
2. Flick left hard and fast from Today, as if to throw past several pages. It
|
|
49
|
+
stops on Token Rate, not Triage (`scroll-snap-stop: always`); a second
|
|
50
|
+
flick reaches Triage.
|
|
51
|
+
3. Drag left less than a quarter of the page slowly and let go. The view
|
|
52
|
+
springs back to the page it started on, and the dot does not change.
|
|
53
|
+
4. After each swipe, the dot changes once, with no flicker back to the old
|
|
54
|
+
page (the demo applies one `onPageChange` per swipe).
|
|
55
|
+
5. On Triage, scroll the list vertically with a finger. It scrolls under the
|
|
56
|
+
dots without paging sideways, and a diagonal swipe pages only when it is
|
|
57
|
+
mostly horizontal.
|
|
58
|
+
|
|
27
59
|
## Automated coverage summary
|
|
28
60
|
|
|
29
61
|
The feed-card route `?component=content-item`, example "Image-Tinted Feed
|
package/docs/nav-stack.md
CHANGED
|
@@ -348,7 +348,8 @@ unsafe area but can always be scrolled clear. A view whose only child is a
|
|
|
348
348
|
|
|
349
349
|
`wireNavStack(root, { onBack, duration? })` observes the rendered stack and
|
|
350
350
|
animates each change: a pushed view slides in from the trailing edge; a popped
|
|
351
|
-
view slides back off it over the revealed view
|
|
351
|
+
view slides back off it over the revealed view, inert, so a click or key
|
|
352
|
+
press during the slide reaches the revealed view; and snapshots of the previous
|
|
352
353
|
top and bottom chrome cross-fade into the active view's chrome. The preserved
|
|
353
354
|
underlying view remains visible during a push, while remaining inaccessible.
|
|
354
355
|
Starting transforms and opacity apply instantly before the transition begins.
|