@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
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { SafeHtml } from 'kerfjs';
|
|
2
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3
|
+
import { CssLength } from './css-values.js';
|
|
4
|
+
import { T as TreeListNode } from './tree-rows-eHnnGLGM.js';
|
|
5
|
+
import './semantic-content-BbzjvSu9.js';
|
|
6
|
+
|
|
7
|
+
/** One column: the children of the node chosen in the column before it. */
|
|
8
|
+
interface ExplorerColumn {
|
|
9
|
+
/** 0 for the top level. */
|
|
10
|
+
readonly level: number;
|
|
11
|
+
/** The node whose children this column lists, or undefined at the top. */
|
|
12
|
+
readonly parent?: TreeListNode;
|
|
13
|
+
readonly nodes: readonly TreeListNode[];
|
|
14
|
+
/** The id chosen in this column, when the path reaches it. */
|
|
15
|
+
readonly chosen?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The columns for `path` (ids from the top level down): the top level, then
|
|
19
|
+
* the children of each chosen node that can expand. A path id that is not a
|
|
20
|
+
* child of the column before it ends the walk there.
|
|
21
|
+
*/
|
|
22
|
+
declare function explorerColumns(nodes: readonly TreeListNode[], path: readonly string[]): ExplorerColumn[];
|
|
23
|
+
/** The node at the end of `path`, when the whole path resolves. */
|
|
24
|
+
declare function explorerChosen(nodes: readonly TreeListNode[], path: readonly string[]): TreeListNode | undefined;
|
|
25
|
+
|
|
26
|
+
interface ColumnExplorerProps {
|
|
27
|
+
/** Identifies the explorer for `wireColumnExplorer` and in tests. */
|
|
28
|
+
id: string;
|
|
29
|
+
/** The explorer's accessible name, such as "Files". */
|
|
30
|
+
label: string;
|
|
31
|
+
/** The hierarchy, as TreeList's nodes. The application owns it. */
|
|
32
|
+
nodes: readonly TreeListNode[];
|
|
33
|
+
/**
|
|
34
|
+
* The chosen ids from the top level down, one per column. The application
|
|
35
|
+
* owns it: set it to `treeListPath(nodes, id)` when `action` reports a row.
|
|
36
|
+
*/
|
|
37
|
+
path: readonly string[];
|
|
38
|
+
/** Delegated action for choosing a row; the row's `data-item-id` names it. */
|
|
39
|
+
action: string;
|
|
40
|
+
/**
|
|
41
|
+
* Content for a last column when the chosen node is a leaf, such as a
|
|
42
|
+
* file's details.
|
|
43
|
+
*/
|
|
44
|
+
preview?: SafeHtml;
|
|
45
|
+
/** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */
|
|
46
|
+
layout?: 'scroll' | 'paged';
|
|
47
|
+
/** Each column's minimum width (ColumnTrack's default 250px). */
|
|
48
|
+
minColumnWidth?: CssLength;
|
|
49
|
+
/** How much of the next column a paged layout shows. */
|
|
50
|
+
peek?: CssLength;
|
|
51
|
+
/** Row density: `standard` (default) or `compact`. */
|
|
52
|
+
density?: 'standard' | 'compact';
|
|
53
|
+
className?: string;
|
|
54
|
+
/** Safe `data-*` metadata for the explorer element. */
|
|
55
|
+
rootAttributes?: RootDataAttributes;
|
|
56
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
57
|
+
slot?: string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* A macOS-style column explorer for a hierarchy: one column per level in a
|
|
61
|
+
* ColumnTrack, where choosing a row with children opens the next column of
|
|
62
|
+
* its children. The application owns the nodes and the chosen path and
|
|
63
|
+
* handles `action`; wire the keyboard with `wireColumnExplorer`.
|
|
64
|
+
*/
|
|
65
|
+
declare function ColumnExplorer({ id, label, nodes, path, action, preview, layout, minColumnWidth, peek, density, className, rootAttributes, slot, }: ColumnExplorerProps): SafeHtml;
|
|
66
|
+
|
|
67
|
+
export { ColumnExplorer, type ColumnExplorerProps, type ExplorerColumn, explorerChosen, explorerColumns };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { isExpandable } from './chunk-NR3ZO4LK.js';
|
|
2
|
+
import { ColumnTrack } from './chunk-34FWYJX6.js';
|
|
3
|
+
import { ListItem } from './chunk-2E7S5C4D.js';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
import { List } from './chunk-WVQDIOD7.js';
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
import { LucideIcon } from './chunk-CMG4OZPV.js';
|
|
14
|
+
|
|
15
|
+
import { filterDataAttributes } from './chunk-COQI4OMZ.js';
|
|
16
|
+
import { ChevronRight } from 'lucide';
|
|
17
|
+
import { jsx, jsxs, Fragment } from 'kerfjs/jsx-runtime';
|
|
18
|
+
|
|
19
|
+
// src/components/collections/column-explorer/model/columns.ts
|
|
20
|
+
function explorerColumns(nodes, path) {
|
|
21
|
+
const columns = [];
|
|
22
|
+
let siblings = nodes;
|
|
23
|
+
let parent;
|
|
24
|
+
for (let level = 0; ; level += 1) {
|
|
25
|
+
const chosen = siblings.find((node) => node.id === path[level]);
|
|
26
|
+
columns.push({
|
|
27
|
+
level,
|
|
28
|
+
...parent ? { parent } : {},
|
|
29
|
+
nodes: siblings,
|
|
30
|
+
...chosen ? { chosen: chosen.id } : {}
|
|
31
|
+
});
|
|
32
|
+
if (!chosen || !isExpandable(chosen)) return columns;
|
|
33
|
+
parent = chosen;
|
|
34
|
+
siblings = chosen.children ?? [];
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
function explorerChosen(nodes, path) {
|
|
38
|
+
let siblings = nodes;
|
|
39
|
+
let node;
|
|
40
|
+
for (const id of path) {
|
|
41
|
+
node = siblings.find((candidate) => candidate.id === id);
|
|
42
|
+
if (!node) return void 0;
|
|
43
|
+
siblings = node.children ?? [];
|
|
44
|
+
}
|
|
45
|
+
return node;
|
|
46
|
+
}
|
|
47
|
+
var COLUMN_EXPLORER_PROTECTED = /* @__PURE__ */ new Set([
|
|
48
|
+
"data-component",
|
|
49
|
+
"data-column-explorer-id"
|
|
50
|
+
]);
|
|
51
|
+
var chevron = LucideIcon({ icon: ChevronRight, name: "chevron-right" });
|
|
52
|
+
function ColumnExplorer({
|
|
53
|
+
id,
|
|
54
|
+
label,
|
|
55
|
+
nodes,
|
|
56
|
+
path,
|
|
57
|
+
action,
|
|
58
|
+
preview,
|
|
59
|
+
layout,
|
|
60
|
+
minColumnWidth,
|
|
61
|
+
peek,
|
|
62
|
+
density = "standard",
|
|
63
|
+
className = "",
|
|
64
|
+
rootAttributes = {},
|
|
65
|
+
slot
|
|
66
|
+
}) {
|
|
67
|
+
const columns = explorerColumns(nodes, path);
|
|
68
|
+
const chosen = explorerChosen(nodes, path);
|
|
69
|
+
const showPreview = preview !== void 0 && chosen !== void 0 && !isExpandable(chosen);
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
71
|
+
"div",
|
|
72
|
+
{
|
|
73
|
+
...filterDataAttributes(rootAttributes, COLUMN_EXPLORER_PROTECTED),
|
|
74
|
+
id,
|
|
75
|
+
role: "region",
|
|
76
|
+
class: `kui-column-explorer ${className}`.trim(),
|
|
77
|
+
"aria-label": label,
|
|
78
|
+
"data-component": "column-explorer",
|
|
79
|
+
"data-column-explorer-id": id,
|
|
80
|
+
slot,
|
|
81
|
+
children: /* @__PURE__ */ jsxs(ColumnTrack, { layout, minColumnWidth, peek, children: [
|
|
82
|
+
columns.map((column) => {
|
|
83
|
+
const stop = column.chosen ?? column.nodes[0]?.id;
|
|
84
|
+
return /* @__PURE__ */ jsx(
|
|
85
|
+
List,
|
|
86
|
+
{
|
|
87
|
+
scrollable: true,
|
|
88
|
+
fill: true,
|
|
89
|
+
rootAttributes: {
|
|
90
|
+
role: "group",
|
|
91
|
+
"aria-label": column.parent ? String(column.parent.label) : label,
|
|
92
|
+
"data-column-explorer-level": String(column.level)
|
|
93
|
+
},
|
|
94
|
+
children: column.nodes.map((node) => /* @__PURE__ */ jsx(
|
|
95
|
+
ListItem,
|
|
96
|
+
{
|
|
97
|
+
action,
|
|
98
|
+
itemId: node.id,
|
|
99
|
+
label: node.label,
|
|
100
|
+
description: node.description,
|
|
101
|
+
icon: node.icon,
|
|
102
|
+
trailing: isExpandable(node) ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
103
|
+
node.trailing,
|
|
104
|
+
chevron
|
|
105
|
+
] }) : node.trailing,
|
|
106
|
+
selected: node.id === column.chosen,
|
|
107
|
+
disabled: node.disabled,
|
|
108
|
+
density,
|
|
109
|
+
tabIndex: node.id === stop ? 0 : -1,
|
|
110
|
+
rootAttributes: {
|
|
111
|
+
"data-key": node.id,
|
|
112
|
+
"data-column-explorer-level": String(column.level),
|
|
113
|
+
"data-expandable": isExpandable(node) ? "true" : void 0
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
))
|
|
117
|
+
}
|
|
118
|
+
);
|
|
119
|
+
}),
|
|
120
|
+
showPreview ? /* @__PURE__ */ jsx(
|
|
121
|
+
List,
|
|
122
|
+
{
|
|
123
|
+
scrollable: true,
|
|
124
|
+
fill: true,
|
|
125
|
+
rootAttributes: {
|
|
126
|
+
role: "group",
|
|
127
|
+
"aria-label": `${String(chosen.label)} preview`,
|
|
128
|
+
"data-column-explorer-preview": "true"
|
|
129
|
+
},
|
|
130
|
+
children: preview
|
|
131
|
+
}
|
|
132
|
+
) : null
|
|
133
|
+
] })
|
|
134
|
+
}
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export { ColumnExplorer, explorerChosen, explorerColumns };
|
|
139
|
+
|
|
140
|
+
//# sourceMappingURL=column-explorer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/collections/column-explorer/model/columns.ts","../src/components/collections/column-explorer/column-explorer.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAuBO,SAAS,eAAA,CACd,OACA,IAAA,EACkB;AAClB,EAAA,MAAM,UAA4B,EAAC;AACnC,EAAA,IAAI,QAAA,GAAoC,KAAA;AACxC,EAAA,IAAI,MAAA;AACJ,EAAA,KAAA,IAAS,KAAA,GAAQ,CAAA,IAAK,KAAA,IAAS,CAAA,EAAG;AAChC,IAAA,MAAM,MAAA,GAAS,SAAS,IAAA,CAAK,CAAC,SAAS,IAAA,CAAK,EAAA,KAAO,IAAA,CAAK,KAAK,CAAC,CAAA;AAC9D,IAAA,OAAA,CAAQ,IAAA,CAAK;AAAA,MACX,KAAA;AAAA,MACA,GAAI,MAAA,GAAS,EAAE,MAAA,KAAW,EAAC;AAAA,MAC3B,KAAA,EAAO,QAAA;AAAA,MACP,GAAI,MAAA,GAAS,EAAE,QAAQ,MAAA,CAAO,EAAA,KAAO;AAAC,KACvC,CAAA;AACD,IAAA,IAAI,CAAC,MAAA,IAAU,CAAC,YAAA,CAAa,MAAM,GAAG,OAAO,OAAA;AAC7C,IAAA,MAAA,GAAS,MAAA;AACT,IAAA,QAAA,GAAW,MAAA,CAAO,YAAY,EAAC;AAAA,EACjC;AACF;AAGO,SAAS,cAAA,CACd,OACA,IAAA,EAC0B;AAC1B,EAAA,IAAI,QAAA,GAAoC,KAAA;AACxC,EAAA,IAAI,IAAA;AACJ,EAAA,KAAA,MAAW,MAAM,IAAA,EAAM;AACrB,IAAA,IAAA,GAAO,SAAS,IAAA,CAAK,CAAC,SAAA,KAAc,SAAA,CAAU,OAAO,EAAE,CAAA;AACvD,IAAA,IAAI,CAAC,MAAM,OAAO,MAAA;AAClB,IAAA,QAAA,GAAW,IAAA,CAAK,YAAY,EAAC;AAAA,EAC/B;AACA,EAAA,OAAO,IAAA;AACT;ACjCA,IAAM,yBAAA,uBAAgC,GAAA,CAAI;AAAA,EACxC,gBAAA;AAAA,EACA;AACF,CAAC,CAAA;AAoCD,IAAM,UAAU,UAAA,CAAW,EAAE,MAAM,YAAA,EAAc,IAAA,EAAM,iBAAiB,CAAA;AAQjE,SAAS,cAAA,CAAe;AAAA,EAC7B,EAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,MAAA;AAAA,EACA,OAAA;AAAA,EACA,MAAA;AAAA,EACA,cAAA;AAAA,EACA,IAAA;AAAA,EACA,OAAA,GAAU,UAAA;AAAA,EACV,SAAA,GAAY,EAAA;AAAA,EACZ,iBAAiB,EAAC;AAAA,EAClB;AACF,CAAA,EAAwB;AACtB,EAAA,MAAM,OAAA,GAAU,eAAA,CAAgB,KAAA,EAAO,IAAI,CAAA;AAC3C,EAAA,MAAM,MAAA,GAAS,cAAA,CAAe,KAAA,EAAO,IAAI,CAAA;AACzC,EAAA,MAAM,cACJ,OAAA,KAAY,MAAA,IAAa,WAAW,MAAA,IAAa,CAAC,aAAa,MAAM,CAAA;AACvE,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACE,GAAG,oBAAA,CAAqB,cAAA,EAAgB,yBAAyB,CAAA;AAAA,MAClE,EAAA;AAAA,MACA,IAAA,EAAK,QAAA;AAAA,MACL,KAAA,EAAO,CAAA,oBAAA,EAAuB,SAAS,CAAA,CAAA,CAAG,IAAA,EAAK;AAAA,MAC/C,YAAA,EAAY,KAAA;AAAA,MACZ,gBAAA,EAAe,iBAAA;AAAA,MACf,yBAAA,EAAyB,EAAA;AAAA,MACzB,IAAA;AAAA,MAEA,QAAA,kBAAA,IAAA,CAAC,WAAA,EAAA,EAAY,MAAA,EAAgB,cAAA,EAAgC,IAAA,EAC1D,QAAA,EAAA;AAAA,QAAA,OAAA,CAAQ,GAAA,CAAI,CAAC,MAAA,KAAW;AAEvB,UAAA,MAAM,OAAO,MAAA,CAAO,MAAA,IAAU,MAAA,CAAO,KAAA,CAAM,CAAC,CAAA,EAAG,EAAA;AAC/C,UAAA,uBACE,GAAA;AAAA,YAAC,IAAA;AAAA,YAAA;AAAA,cACC,UAAA,EAAU,IAAA;AAAA,cACV,IAAA,EAAI,IAAA;AAAA,cACJ,cAAA,EAAgB;AAAA,gBACd,IAAA,EAAM,OAAA;AAAA,gBACN,cAAc,MAAA,CAAO,MAAA,GACjB,OAAO,MAAA,CAAO,MAAA,CAAO,KAAK,CAAA,GAC1B,KAAA;AAAA,gBACJ,4BAAA,EAA8B,MAAA,CAAO,MAAA,CAAO,KAAK;AAAA,eACnD;AAAA,cAEC,QAAA,EAAA,MAAA,CAAO,KAAA,CAAM,GAAA,CAAI,CAAC,IAAA,qBACjB,GAAA;AAAA,gBAAC,QAAA;AAAA,gBAAA;AAAA,kBACC,MAAA;AAAA,kBACA,QAAQ,IAAA,CAAK,EAAA;AAAA,kBACb,OAAO,IAAA,CAAK,KAAA;AAAA,kBACZ,aAAa,IAAA,CAAK,WAAA;AAAA,kBAClB,MAAM,IAAA,CAAK,IAAA;AAAA,kBACX,QAAA,EACE,YAAA,CAAa,IAAI,CAAA,mBACf,IAAA,CAAA,QAAA,EAAA,EACG,QAAA,EAAA;AAAA,oBAAA,IAAA,CAAK,QAAA;AAAA,oBACL;AAAA,mBAAA,EACH,IAEA,IAAA,CAAK,QAAA;AAAA,kBAGT,QAAA,EAAU,IAAA,CAAK,EAAA,KAAO,MAAA,CAAO,MAAA;AAAA,kBAC7B,UAAU,IAAA,CAAK,QAAA;AAAA,kBACf,OAAA;AAAA,kBACA,QAAA,EAAU,IAAA,CAAK,EAAA,KAAO,IAAA,GAAO,CAAA,GAAI,EAAA;AAAA,kBACjC,cAAA,EAAgB;AAAA,oBACd,YAAY,IAAA,CAAK,EAAA;AAAA,oBACjB,4BAAA,EAA8B,MAAA,CAAO,MAAA,CAAO,KAAK,CAAA;AAAA,oBACjD,iBAAA,EAAmB,YAAA,CAAa,IAAI,CAAA,GAAI,MAAA,GAAS;AAAA;AACnD;AAAA,eAEH;AAAA;AAAA,WACH;AAAA,QAEJ,CAAC,CAAA;AAAA,QACA,WAAA,mBACC,GAAA;AAAA,UAAC,IAAA;AAAA,UAAA;AAAA,YACC,UAAA,EAAU,IAAA;AAAA,YACV,IAAA,EAAI,IAAA;AAAA,YACJ,cAAA,EAAgB;AAAA,cACd,IAAA,EAAM,OAAA;AAAA,cACN,YAAA,EAAc,CAAA,EAAG,MAAA,CAAO,MAAA,CAAO,KAAK,CAAC,CAAA,QAAA,CAAA;AAAA,cACrC,8BAAA,EAAgC;AAAA,aAClC;AAAA,YAEC,QAAA,EAAA;AAAA;AAAA,SACH,GACE;AAAA,OAAA,EACN;AAAA;AAAA,GACF;AAEJ","file":"column-explorer.js","sourcesContent":["// KF-JY68DQ: the columns a column explorer shows for a chosen path through a\n// hierarchy. It walks the same TreeListNode model as TreeList, DOM-free.\nimport {\n isExpandable,\n type TreeListNode,\n} from '../../tree-list/model/tree-rows.js';\n\n/** One column: the children of the node chosen in the column before it. */\nexport interface ExplorerColumn {\n /** 0 for the top level. */\n readonly level: number;\n /** The node whose children this column lists, or undefined at the top. */\n readonly parent?: TreeListNode;\n readonly nodes: readonly TreeListNode[];\n /** The id chosen in this column, when the path reaches it. */\n readonly chosen?: string;\n}\n\n/**\n * The columns for `path` (ids from the top level down): the top level, then\n * the children of each chosen node that can expand. A path id that is not a\n * child of the column before it ends the walk there.\n */\nexport function explorerColumns(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): ExplorerColumn[] {\n const columns: ExplorerColumn[] = [];\n let siblings: readonly TreeListNode[] = nodes;\n let parent: TreeListNode | undefined;\n for (let level = 0; ; level += 1) {\n const chosen = siblings.find((node) => node.id === path[level]);\n columns.push({\n level,\n ...(parent ? { parent } : {}),\n nodes: siblings,\n ...(chosen ? { chosen: chosen.id } : {}),\n });\n if (!chosen || !isExpandable(chosen)) return columns;\n parent = chosen;\n siblings = chosen.children ?? [];\n }\n}\n\n/** The node at the end of `path`, when the whole path resolves. */\nexport function explorerChosen(\n nodes: readonly TreeListNode[],\n path: readonly string[],\n): TreeListNode | undefined {\n let siblings: readonly TreeListNode[] = nodes;\n let node: TreeListNode | undefined;\n for (const id of path) {\n node = siblings.find((candidate) => candidate.id === id);\n if (!node) return undefined;\n siblings = node.children ?? [];\n }\n return node;\n}\n","import type { SafeHtml } from 'kerfjs';\nimport { ChevronRight } from 'lucide';\n\nimport {\n filterDataAttributes,\n type RootDataAttributes,\n} from '../../../shared/dom/extension-attributes.js';\nimport type { CssLength } from '../../../shared/styles/css-values.js';\nimport { ColumnTrack } from '../../layout/column-track/column-track.js';\nimport { LucideIcon } from '../../media/lucide-icon/lucide-icon.js';\nimport { List } from '../list/list.js';\nimport { ListItem } from '../list-item/list-item.js';\nimport {\n isExpandable,\n type TreeListNode,\n} from '../tree-list/model/tree-rows.js';\nimport { explorerChosen, explorerColumns } from './model/columns.js';\n\nexport {\n explorerChosen,\n type ExplorerColumn,\n explorerColumns,\n} from './model/columns.js';\n\nconst COLUMN_EXPLORER_PROTECTED = new Set([\n 'data-component',\n 'data-column-explorer-id',\n]);\n\nexport interface ColumnExplorerProps {\n /** Identifies the explorer for `wireColumnExplorer` and in tests. */\n id: string;\n /** The explorer's accessible name, such as \"Files\". */\n label: string;\n /** The hierarchy, as TreeList's nodes. The application owns it. */\n nodes: readonly TreeListNode[];\n /**\n * The chosen ids from the top level down, one per column. The application\n * owns it: set it to `treeListPath(nodes, id)` when `action` reports a row.\n */\n path: readonly string[];\n /** Delegated action for choosing a row; the row's `data-item-id` names it. */\n action: string;\n /**\n * Content for a last column when the chosen node is a leaf, such as a\n * file's details.\n */\n preview?: SafeHtml;\n /** ColumnTrack's layout: `scroll` (default) or `paged` for a phone. */\n layout?: 'scroll' | 'paged';\n /** Each column's minimum width (ColumnTrack's default 250px). */\n minColumnWidth?: CssLength;\n /** How much of the next column a paged layout shows. */\n peek?: CssLength;\n /** Row density: `standard` (default) or `compact`. */\n density?: 'standard' | 'compact';\n className?: string;\n /** Safe `data-*` metadata for the explorer element. */\n rootAttributes?: RootDataAttributes;\n /** Native named-slot assignment when composed inside a web component. */\n slot?: string;\n}\n\nconst chevron = LucideIcon({ icon: ChevronRight, name: 'chevron-right' });\n\n/**\n * A macOS-style column explorer for a hierarchy: one column per level in a\n * ColumnTrack, where choosing a row with children opens the next column of\n * its children. The application owns the nodes and the chosen path and\n * handles `action`; wire the keyboard with `wireColumnExplorer`.\n */\nexport function ColumnExplorer({\n id,\n label,\n nodes,\n path,\n action,\n preview,\n layout,\n minColumnWidth,\n peek,\n density = 'standard',\n className = '',\n rootAttributes = {},\n slot,\n}: ColumnExplorerProps) {\n const columns = explorerColumns(nodes, path);\n const chosen = explorerChosen(nodes, path);\n const showPreview =\n preview !== undefined && chosen !== undefined && !isExpandable(chosen);\n return (\n <div\n {...filterDataAttributes(rootAttributes, COLUMN_EXPLORER_PROTECTED)}\n id={id}\n role=\"region\"\n class={`kui-column-explorer ${className}`.trim()}\n aria-label={label}\n data-component=\"column-explorer\"\n data-column-explorer-id={id}\n slot={slot}\n >\n <ColumnTrack layout={layout} minColumnWidth={minColumnWidth} peek={peek}>\n {columns.map((column) => {\n // One Tab stop per column: its chosen row, else its first.\n const stop = column.chosen ?? column.nodes[0]?.id;\n return (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': column.parent\n ? String(column.parent.label)\n : label,\n 'data-column-explorer-level': String(column.level),\n }}\n >\n {column.nodes.map((node) => (\n <ListItem\n action={action}\n itemId={node.id}\n label={node.label}\n description={node.description}\n icon={node.icon}\n trailing={\n isExpandable(node) ? (\n <>\n {node.trailing}\n {chevron}\n </>\n ) : (\n node.trailing\n )\n }\n selected={node.id === column.chosen}\n disabled={node.disabled}\n density={density}\n tabIndex={node.id === stop ? 0 : -1}\n rootAttributes={{\n 'data-key': node.id,\n 'data-column-explorer-level': String(column.level),\n 'data-expandable': isExpandable(node) ? 'true' : undefined,\n }}\n />\n ))}\n </List>\n );\n })}\n {showPreview ? (\n <List\n scrollable\n fill\n rootAttributes={{\n role: 'group',\n 'aria-label': `${String(chosen.label)} preview`,\n 'data-column-explorer-preview': 'true',\n }}\n >\n {preview}\n </List>\n ) : null}\n </ColumnTrack>\n </div>\n );\n}\n"]}
|
package/dist/column-track.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as kerfjs from 'kerfjs';
|
|
2
2
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3
|
-
import { S as StructuralRootAttributes } from './extension-attributes-
|
|
3
|
+
import { S as StructuralRootAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4
4
|
import { CssLength } from './css-values.js';
|
|
5
5
|
|
|
6
6
|
/** `scroll` keeps equal min-width columns; `paged` shows one near-full-width column per page. */
|
|
@@ -23,9 +23,18 @@ interface ColumnTrackProps {
|
|
|
23
23
|
minColumnWidth?: CssLength;
|
|
24
24
|
/** How much of the next column a `paged` track shows; default 24px. */
|
|
25
25
|
peek?: CssLength;
|
|
26
|
+
/**
|
|
27
|
+
* Name the track (a board) for assistive technology: the scroller becomes
|
|
28
|
+
* a `role="region"` landmark with this `aria-label`. Name each column with
|
|
29
|
+
* `List landmark="region"` and its own `ariaLabel`.
|
|
30
|
+
*/
|
|
31
|
+
ariaLabel?: string;
|
|
26
32
|
id?: string;
|
|
27
33
|
className?: string;
|
|
28
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Safe `data-*`, `aria-*`, and structural `role` metadata on the scroller;
|
|
36
|
+
* with `ariaLabel` the track owns its role and name.
|
|
37
|
+
*/
|
|
29
38
|
rootAttributes?: ColumnTrackRootAttributes;
|
|
30
39
|
/** Native named-slot assignment when composed inside a web component. */
|
|
31
40
|
slot?: string;
|
|
@@ -36,6 +45,6 @@ interface ColumnTrackProps {
|
|
|
36
45
|
* insets and vertical scrolling. Kerf owns the overflow, the paged snapping,
|
|
37
46
|
* and reduced motion.
|
|
38
47
|
*/
|
|
39
|
-
declare function ColumnTrack({ children, layout, minColumnWidth, peek, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
|
|
48
|
+
declare function ColumnTrack({ children, layout, minColumnWidth, peek, ariaLabel, id, className, rootAttributes, slot, }: ColumnTrackProps): kerfjs.SafeHtml;
|
|
40
49
|
|
|
41
50
|
export { ColumnTrack, type ColumnTrackLayout, type ColumnTrackProps };
|
package/dist/column-track.js
CHANGED
package/dist/combobox.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as kerfjs from 'kerfjs';
|
|
2
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2
3
|
|
|
3
4
|
/** A suggestion: a plain string, or a value with a distinct visible label. */
|
|
4
5
|
type ComboboxSuggestion = string | {
|
|
@@ -27,6 +28,9 @@ interface ComboboxProps {
|
|
|
27
28
|
createLabel?: string | false;
|
|
28
29
|
disabled?: boolean;
|
|
29
30
|
className?: string;
|
|
31
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
32
|
+
* editor node marker; the component's own markers stay protected. */
|
|
33
|
+
rootAttributes?: RootDataAttributes;
|
|
30
34
|
}
|
|
31
35
|
/**
|
|
32
36
|
* A free-text field with a filtered suggestion list that can also create a new
|
|
@@ -35,6 +39,6 @@ interface ComboboxProps {
|
|
|
35
39
|
* and reports commits (Enter, comma, or a click). Use `Select` when only
|
|
36
40
|
* existing values are allowed and nothing is typed.
|
|
37
41
|
*/
|
|
38
|
-
declare function Combobox({ id, label, suggestions, value, placeholder, hint, name, createLabel, disabled, className, }: ComboboxProps): kerfjs.SafeHtml;
|
|
42
|
+
declare function Combobox({ id, label, suggestions, value, placeholder, hint, name, createLabel, disabled, className, rootAttributes, }: ComboboxProps): kerfjs.SafeHtml;
|
|
39
43
|
|
|
40
44
|
export { Combobox, type ComboboxProps, type ComboboxSuggestion };
|
package/dist/combobox.js
CHANGED
package/dist/content-item.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ import * as kerfjs from 'kerfjs';
|
|
|
2
2
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3
3
|
import { CssColor } from './css-values.js';
|
|
4
4
|
import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
|
|
5
|
-
import { S as SurfaceTint } from './surface-tint-DQgYCaP9.js';
|
|
5
|
+
import { S as SurfaceTint, a as SurfaceTintScheme } from './surface-tint-DQgYCaP9.js';
|
|
6
6
|
import { BackdropImagePosition, BackdropImageParallax, BackdropImageBlur, BackdropImageScrim } from './backdrop-image.js';
|
|
7
|
-
import './extension-attributes-
|
|
7
|
+
import './extension-attributes-IJ4decoa.js';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Base surface treatment, semantic status colors, or `brand-loud`: the solid
|
|
@@ -38,7 +38,10 @@ interface ContentItemMedia {
|
|
|
38
38
|
blurredSrc?: string;
|
|
39
39
|
/** Shared BackdropImage blur behavior; use instead of `blurredSrc`. */
|
|
40
40
|
blur?: BackdropImageBlur;
|
|
41
|
-
/**
|
|
41
|
+
/**
|
|
42
|
+
* Skip offscreen media painting in long feeds while retaining card geometry.
|
|
43
|
+
* A large scroll jump paints newly visible heroes blank for a frame.
|
|
44
|
+
*/
|
|
42
45
|
deferOffscreen?: boolean;
|
|
43
46
|
/** Color the image dissolves into and the card body continues on. */
|
|
44
47
|
fadeTo?: CssColor;
|
|
@@ -91,6 +94,13 @@ interface ContentItemBaseProps {
|
|
|
91
94
|
media?: ContentItemMedia;
|
|
92
95
|
/** App-sampled image color, scoped to this card once its image loads. */
|
|
93
96
|
tint?: SurfaceTint;
|
|
97
|
+
/**
|
|
98
|
+
* Scope this surface and its subtree to the light or dark palette, whatever
|
|
99
|
+
* the page's scheme (a light card on a dark page). A `tint` already sets
|
|
100
|
+
* its scheme; pass `scheme` alone for the plain palette, or with a tint
|
|
101
|
+
* only when they agree.
|
|
102
|
+
*/
|
|
103
|
+
scheme?: SurfaceTintScheme;
|
|
94
104
|
/** Item content; a plain string is allowed for bare copy. */
|
|
95
105
|
children?: KerfUiContent | string;
|
|
96
106
|
/**
|
|
@@ -167,6 +177,6 @@ type ContentItemProps = ContentItemBaseProps & ({
|
|
|
167
177
|
* border (transparent unless `framed`), 8px padding, and a rounded or pill
|
|
168
178
|
* radius. It owns that whole geometry, so wrappers must not add more.
|
|
169
179
|
*/
|
|
170
|
-
declare function ContentItem({ appearance, media, tint, children, frame, flush, shape, bubble, title, ariaLabel, focusTarget, outlined, tabIndex, gridRow, interactive, action, itemId, selectionMode, selected, disabled, className, rootAttributes, slot, }: ContentItemProps): kerfjs.SafeHtml;
|
|
180
|
+
declare function ContentItem({ appearance, media, tint, scheme, children, frame, flush, shape, bubble, title, ariaLabel, focusTarget, outlined, tabIndex, gridRow, interactive, action, itemId, selectionMode, selected, disabled, className, rootAttributes, slot, }: ContentItemProps): kerfjs.SafeHtml;
|
|
171
181
|
|
|
172
182
|
export { ContentItem, type ContentItemAppearance, type ContentItemBubble, type ContentItemFrame, type ContentItemMedia, type ContentItemProps, type ContentItemSelectionMode, type ContentItemShape, SemanticTone };
|
package/dist/content-item.js
CHANGED
package/dist/content-swap.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as kerfjs from 'kerfjs';
|
|
2
2
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3
4
|
|
|
4
5
|
type ContentSwapSide = 'a' | 'b';
|
|
5
6
|
type ContentSwapTransition = 'none' | 'crossfade' | 'push';
|
|
@@ -21,6 +22,9 @@ interface ContentSwapProps {
|
|
|
21
22
|
className?: string;
|
|
22
23
|
/** Native named-slot assignment, such as a dialog's `label` or `footer`. */
|
|
23
24
|
slot?: string;
|
|
25
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
26
|
+
* editor node marker; the component's own markers stay protected. */
|
|
27
|
+
rootAttributes?: RootDataAttributes;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* Two content sides sharing one cell (a dialog body that steps to a second
|
|
@@ -29,6 +33,6 @@ interface ContentSwapProps {
|
|
|
29
33
|
* `inert`/`aria-hidden`. Use `NavStack` for full views with their own
|
|
30
34
|
* toolbars.
|
|
31
35
|
*/
|
|
32
|
-
declare function ContentSwap({ active, a, b, transition, direction, label, fill, className, slot, }: ContentSwapProps): kerfjs.SafeHtml;
|
|
36
|
+
declare function ContentSwap({ active, a, b, transition, direction, label, fill, className, slot, rootAttributes, }: ContentSwapProps): kerfjs.SafeHtml;
|
|
33
37
|
|
|
34
38
|
export { ContentSwap, type ContentSwapDirection, type ContentSwapProps, type ContentSwapSide, type ContentSwapTransition };
|
package/dist/content-swap.js
CHANGED
package/dist/corner-status.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as kerfjs from 'kerfjs';
|
|
2
2
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3
4
|
|
|
4
5
|
/** The viewport corner a CornerStatus occupies, in logical (RTL-aware) terms. */
|
|
5
6
|
type CornerStatusPlacement = 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
|
@@ -22,6 +23,9 @@ interface CornerStatusProps {
|
|
|
22
23
|
className?: string;
|
|
23
24
|
/** Native named-slot assignment when composed inside a web component. */
|
|
24
25
|
slot?: string;
|
|
26
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
27
|
+
* editor node marker; the component's own markers stay protected. */
|
|
28
|
+
rootAttributes?: RootDataAttributes;
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* A non-dismissible status surface pinned to a viewport corner — "Loading…",
|
|
@@ -31,6 +35,6 @@ interface CornerStatusProps {
|
|
|
31
35
|
* its own; the composed `StateBanner` is the polite live region. Use a toast
|
|
32
36
|
* for transient, dismissible confirmation instead.
|
|
33
37
|
*/
|
|
34
|
-
declare function CornerStatus({ id, children, placement, presentation, className, slot, }: CornerStatusProps): kerfjs.SafeHtml;
|
|
38
|
+
declare function CornerStatus({ id, children, placement, presentation, className, slot, rootAttributes, }: CornerStatusProps): kerfjs.SafeHtml;
|
|
35
39
|
|
|
36
40
|
export { CornerStatus, type CornerStatusPlacement, type CornerStatusPresentation, type CornerStatusProps };
|
package/dist/corner-status.js
CHANGED
package/dist/device-class.js
CHANGED
|
@@ -1,103 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
// src/shared/environment/device-class.ts
|
|
4
|
-
var DEFAULT_BREAKPOINTS = {
|
|
5
|
-
mobile: 360,
|
|
6
|
-
tablet: 720,
|
|
7
|
-
desktop: 1024,
|
|
8
|
-
"xl-desktop": 1440
|
|
9
|
-
};
|
|
10
|
-
var SIZE_ORDER = [
|
|
11
|
-
"xs-mobile",
|
|
12
|
-
"mobile",
|
|
13
|
-
"tablet",
|
|
14
|
-
"desktop",
|
|
15
|
-
"xl-desktop"
|
|
16
|
-
];
|
|
17
|
-
var SSR_VIEWPORT = {
|
|
18
|
-
width: 1024,
|
|
19
|
-
height: 768,
|
|
20
|
-
segments: 1,
|
|
21
|
-
verticalSegments: 1
|
|
22
|
-
};
|
|
23
|
-
function classifyViewport(width, orientation, segments = 1, verticalSegments = 1, breakpoints = DEFAULT_BREAKPOINTS) {
|
|
24
|
-
const size = width >= breakpoints["xl-desktop"] ? "xl-desktop" : width >= breakpoints.desktop ? "desktop" : width >= breakpoints.tablet ? "tablet" : width >= breakpoints.mobile ? "mobile" : "xs-mobile";
|
|
25
|
-
const rank = SIZE_ORDER.indexOf(size);
|
|
26
|
-
return {
|
|
27
|
-
size,
|
|
28
|
-
orientation,
|
|
29
|
-
segments,
|
|
30
|
-
verticalSegments,
|
|
31
|
-
handset: rank <= 1,
|
|
32
|
-
compact: rank <= 1 || size === "tablet" && orientation === "portrait",
|
|
33
|
-
atLeast: (target) => rank >= SIZE_ORDER.indexOf(target)
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function countSegments(axis, view) {
|
|
37
|
-
const mq = view.matchMedia;
|
|
38
|
-
if (typeof mq !== "function") return 1;
|
|
39
|
-
for (let n = 4; n >= 2; n--) {
|
|
40
|
-
if (mq.call(view, `(${axis}-viewport-segments: ${n})`).matches) return n;
|
|
41
|
-
}
|
|
42
|
-
return 1;
|
|
43
|
-
}
|
|
44
|
-
function readViewport(view) {
|
|
45
|
-
return {
|
|
46
|
-
width: view.innerWidth,
|
|
47
|
-
height: view.innerHeight,
|
|
48
|
-
segments: countSegments("horizontal", view),
|
|
49
|
-
verticalSegments: countSegments("vertical", view)
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
function browserWindow() {
|
|
53
|
-
return typeof window === "undefined" ? void 0 : window;
|
|
54
|
-
}
|
|
55
|
-
var sharedSource;
|
|
56
|
-
function viewportSource(view) {
|
|
57
|
-
if (sharedSource) return sharedSource;
|
|
58
|
-
const source = signal(readViewport(view));
|
|
59
|
-
sharedSource = source;
|
|
60
|
-
const update = () => {
|
|
61
|
-
source.value = readViewport(view);
|
|
62
|
-
};
|
|
63
|
-
view.addEventListener("resize", update);
|
|
64
|
-
view.addEventListener("orientationchange", update);
|
|
65
|
-
return source;
|
|
66
|
-
}
|
|
67
|
-
function orientationOf(view) {
|
|
68
|
-
return view.height > view.width ? "portrait" : "landscape";
|
|
69
|
-
}
|
|
70
|
-
function deviceClass(options = {}) {
|
|
71
|
-
const breakpoints = {
|
|
72
|
-
...DEFAULT_BREAKPOINTS,
|
|
73
|
-
...options.breakpoints
|
|
74
|
-
};
|
|
75
|
-
const view = browserWindow();
|
|
76
|
-
if (!view) {
|
|
77
|
-
const snapshot = { ...SSR_VIEWPORT, ...options.ssr };
|
|
78
|
-
return computed(
|
|
79
|
-
() => classifyViewport(
|
|
80
|
-
snapshot.width,
|
|
81
|
-
orientationOf(snapshot),
|
|
82
|
-
snapshot.segments,
|
|
83
|
-
snapshot.verticalSegments,
|
|
84
|
-
breakpoints
|
|
85
|
-
)
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
const source = viewportSource(view);
|
|
89
|
-
return computed(() => {
|
|
90
|
-
const v = source.value;
|
|
91
|
-
return classifyViewport(
|
|
92
|
-
v.width,
|
|
93
|
-
orientationOf(v),
|
|
94
|
-
v.segments,
|
|
95
|
-
v.verticalSegments,
|
|
96
|
-
breakpoints
|
|
97
|
-
);
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
export { DEFAULT_BREAKPOINTS, classifyViewport, deviceClass };
|
|
1
|
+
export { DEFAULT_BREAKPOINTS, classifyViewport, deviceClass } from './chunk-WCMGPAY2.js';
|
|
102
2
|
|
|
103
3
|
//# sourceMappingURL=device-class.js.map
|
package/dist/device-class.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"device-class.js"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SafeHtml } from 'kerfjs';
|
|
2
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2
3
|
import { CssLength } from './css-values.js';
|
|
3
4
|
|
|
4
5
|
type DisclosureDirection = 'up' | 'down' | 'left' | 'right';
|
|
@@ -13,7 +14,10 @@ interface DisclosureArrowProps {
|
|
|
13
14
|
className?: string;
|
|
14
15
|
/** Native named-slot assignment when composed inside a web component. */
|
|
15
16
|
slot?: string;
|
|
17
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
18
|
+
* editor node marker; the component's own markers stay protected. */
|
|
19
|
+
rootAttributes?: RootDataAttributes;
|
|
16
20
|
}
|
|
17
|
-
declare function DisclosureArrow({ open, openDirection, closedDirection, icon, size, className, slot, }: DisclosureArrowProps): SafeHtml;
|
|
21
|
+
declare function DisclosureArrow({ open, openDirection, closedDirection, icon, size, className, slot, rootAttributes, }: DisclosureArrowProps): SafeHtml;
|
|
18
22
|
|
|
19
23
|
export { DisclosureArrow, type DisclosureArrowProps, type DisclosureDirection };
|
package/dist/disclosure-arrow.js
CHANGED
package/dist/disclosure.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DisclosureArrow } from './chunk-
|
|
1
|
+
import { DisclosureArrow } from './chunk-RPJOLDSR.js';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { filterDataAttributes } from './chunk-
|
|
4
|
+
import { filterDataAttributes } from './chunk-COQI4OMZ.js';
|
|
5
5
|
import { jsxs, jsx } from 'kerfjs/jsx-runtime';
|
|
6
6
|
|
|
7
7
|
var DISCLOSURE_PROTECTED = /* @__PURE__ */ new Set([
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as kerfjs from 'kerfjs';
|
|
2
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2
3
|
import { S as SemanticTone } from './semantic-tone-CdW013KF.js';
|
|
3
4
|
|
|
4
5
|
interface EdgeActivityIndicatorProps {
|
|
@@ -14,6 +15,9 @@ interface EdgeActivityIndicatorProps {
|
|
|
14
15
|
/** Clear the device's top safe area (default) or sit at the very edge. */
|
|
15
16
|
inset?: 'safe-area' | 'none';
|
|
16
17
|
className?: string;
|
|
18
|
+
/** Application `data-*` metadata on the root, such as a row key or an
|
|
19
|
+
* editor node marker; the component's own markers stay protected. */
|
|
20
|
+
rootAttributes?: RootDataAttributes;
|
|
17
21
|
}
|
|
18
22
|
/**
|
|
19
23
|
* A layout-free activity strip pinned to the top edge of the viewport: a row
|
|
@@ -23,6 +27,6 @@ interface EdgeActivityIndicatorProps {
|
|
|
23
27
|
* Kerf owns the motion: it scales in from the edge and, under reduced motion,
|
|
24
28
|
* only fades.
|
|
25
29
|
*/
|
|
26
|
-
declare function EdgeActivityIndicator({ busy, message, tone, inset, className, }: EdgeActivityIndicatorProps): kerfjs.SafeHtml;
|
|
30
|
+
declare function EdgeActivityIndicator({ busy, message, tone, inset, className, rootAttributes, }: EdgeActivityIndicatorProps): kerfjs.SafeHtml;
|
|
27
31
|
|
|
28
32
|
export { EdgeActivityIndicator, type EdgeActivityIndicatorProps };
|