@kerfjs/ui 5.0.0-beta.131 → 5.0.0-beta.132
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 +0 -13
- package/ai/application-ui-profile-sync.cjs +5 -14
- package/ai/application-ui-profile.d.ts +0 -2
- package/ai/application-ui-profile.defaults.json +0 -4
- package/ai/application-ui-profile.mjs +5 -14
- package/ai/application-ui-profile.schema.json +0 -4
- package/ai/component-catalog.json +9 -7
- package/ai/component-composition-rules.json +2 -10
- package/ai/component-composition.d.ts +0 -17
- package/ai/component-composition.json +3 -11
- package/ai/component-composition.schema.json +0 -59
- package/ai/components/disclosure.md +2 -0
- package/ai/components/form.md +1 -2
- package/ai/components/tab-panel.md +0 -1
- package/ai/components/toolbar-control-group.md +2 -2
- package/ai/public-api-signatures-v1.md +170 -197
- package/ai/skill.md +3 -20
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/dist/backdrop-image.d.ts +1 -1
- package/dist/backdrop-image.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/button.js +1 -1
- package/dist/catalog-resources.d.ts +2 -2
- package/dist/catalog.d.ts +2 -2
- package/dist/catalog.js +16 -16
- 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 +3 -3
- package/dist/choice-chips.js +1 -1
- package/dist/{chunk-Q5BPZPCO.js → chunk-22T7FFCL.js} +2 -2
- package/dist/{chunk-Q5BPZPCO.js.map → chunk-22T7FFCL.js.map} +1 -1
- package/dist/{chunk-BCHK33XL.js → chunk-27NEAPV7.js} +2 -2
- package/dist/{chunk-BCHK33XL.js.map → chunk-27NEAPV7.js.map} +1 -1
- package/dist/{chunk-76BLSFEA.js → chunk-2OYMXGW2.js} +6 -5
- package/dist/chunk-2OYMXGW2.js.map +1 -0
- package/dist/{chunk-EHR7R7YP.js → chunk-3DPHCZQB.js} +2 -2
- package/dist/{chunk-EHR7R7YP.js.map → chunk-3DPHCZQB.js.map} +1 -1
- package/dist/{chunk-RPJOLDSR.js → chunk-3UIZ36BP.js} +3 -3
- package/dist/{chunk-RPJOLDSR.js.map → chunk-3UIZ36BP.js.map} +1 -1
- package/dist/{chunk-QZA75NOK.js → chunk-42NLFCIN.js} +6 -6
- package/dist/{chunk-QZA75NOK.js.map → chunk-42NLFCIN.js.map} +1 -1
- package/dist/{chunk-UPHPFKAD.js → chunk-4GGIML4E.js} +2 -2
- package/dist/{chunk-UPHPFKAD.js.map → chunk-4GGIML4E.js.map} +1 -1
- package/dist/{chunk-LET362AM.js → chunk-4YXKDS6I.js} +2 -2
- package/dist/{chunk-LET362AM.js.map → chunk-4YXKDS6I.js.map} +1 -1
- package/dist/{chunk-5KWXM5O7.js → chunk-5C34PAUY.js} +2 -2
- package/dist/{chunk-5KWXM5O7.js.map → chunk-5C34PAUY.js.map} +1 -1
- package/dist/{chunk-S7QB5KMM.js → chunk-5L3MLWD5.js} +19 -55
- package/dist/chunk-5L3MLWD5.js.map +1 -0
- package/dist/{chunk-6PHG2DMG.js → chunk-6OH734CG.js} +2 -2
- package/dist/{chunk-6PHG2DMG.js.map → chunk-6OH734CG.js.map} +1 -1
- package/dist/{chunk-E7ZRBMVQ.js → chunk-7XIY7G4K.js} +3 -3
- package/dist/{chunk-E7ZRBMVQ.js.map → chunk-7XIY7G4K.js.map} +1 -1
- package/dist/{chunk-OKZTLRGG.js → chunk-B5Q3KE4Z.js} +2 -2
- package/dist/{chunk-OKZTLRGG.js.map → chunk-B5Q3KE4Z.js.map} +1 -1
- package/dist/{chunk-SGYBIKQA.js → chunk-BADEZQ3V.js} +4 -4
- package/dist/chunk-BADEZQ3V.js.map +1 -0
- package/dist/{chunk-CJAKN2KZ.js → chunk-BLBMUD2W.js} +2 -2
- package/dist/{chunk-CJAKN2KZ.js.map → chunk-BLBMUD2W.js.map} +1 -1
- package/dist/{chunk-TRJS7M2H.js → chunk-BNRH7XG5.js} +2 -2
- package/dist/{chunk-TRJS7M2H.js.map → chunk-BNRH7XG5.js.map} +1 -1
- package/dist/{chunk-NA4LKVPX.js → chunk-BNXJQB2Y.js} +2 -2
- package/dist/{chunk-NA4LKVPX.js.map → chunk-BNXJQB2Y.js.map} +1 -1
- package/dist/{chunk-CCPWJDRW.js → chunk-BQHGXQVA.js} +2 -2
- package/dist/{chunk-CCPWJDRW.js.map → chunk-BQHGXQVA.js.map} +1 -1
- package/dist/{chunk-COQI4OMZ.js → chunk-BRDTP3RT.js} +1 -1
- package/dist/chunk-BRDTP3RT.js.map +1 -0
- package/dist/{chunk-RGB4DPMN.js → chunk-DGYGRMES.js} +3 -3
- package/dist/chunk-DGYGRMES.js.map +1 -0
- package/dist/{chunk-V3IXAI4L.js → chunk-DNNHT7RB.js} +2 -2
- package/dist/{chunk-V3IXAI4L.js.map → chunk-DNNHT7RB.js.map} +1 -1
- package/dist/{chunk-UU37OR3D.js → chunk-DT7KOBQJ.js} +1 -1
- package/dist/chunk-DT7KOBQJ.js.map +1 -0
- package/dist/{chunk-CUUW57WB.js → chunk-DUKE3PLH.js} +2 -2
- package/dist/chunk-DUKE3PLH.js.map +1 -0
- package/dist/{chunk-IPYQYLSX.js → chunk-EWCTBJ5O.js} +6 -6
- package/dist/{chunk-IPYQYLSX.js.map → chunk-EWCTBJ5O.js.map} +1 -1
- package/dist/{chunk-4OH6JSGU.js → chunk-F25UMYDX.js} +2 -2
- package/dist/{chunk-4OH6JSGU.js.map → chunk-F25UMYDX.js.map} +1 -1
- package/dist/{chunk-C4FBYP2D.js → chunk-FJAAOIMP.js} +2 -2
- package/dist/{chunk-C4FBYP2D.js.map → chunk-FJAAOIMP.js.map} +1 -1
- package/dist/{chunk-RHMY45DK.js → chunk-H2XGWH4V.js} +5 -5
- package/dist/{chunk-RHMY45DK.js.map → chunk-H2XGWH4V.js.map} +1 -1
- package/dist/{chunk-76VCWWUA.js → chunk-HSMSTCNZ.js} +2 -2
- package/dist/{chunk-76VCWWUA.js.map → chunk-HSMSTCNZ.js.map} +1 -1
- package/dist/{chunk-ECVTRAXN.js → chunk-IQOO3ZQK.js} +2 -2
- package/dist/{chunk-ECVTRAXN.js.map → chunk-IQOO3ZQK.js.map} +1 -1
- package/dist/{chunk-DBP3N6E5.js → chunk-JBL6SCNN.js} +3 -3
- package/dist/{chunk-DBP3N6E5.js.map → chunk-JBL6SCNN.js.map} +1 -1
- package/dist/{chunk-7KN5OQVN.js → chunk-JNQBPRAA.js} +2 -2
- package/dist/{chunk-7KN5OQVN.js.map → chunk-JNQBPRAA.js.map} +1 -1
- package/dist/{chunk-CPTQABDQ.js → chunk-JNSPYECP.js} +2 -2
- package/dist/{chunk-CPTQABDQ.js.map → chunk-JNSPYECP.js.map} +1 -1
- package/dist/{chunk-E7Q6UNCB.js → chunk-KBDYXGYT.js} +2 -2
- package/dist/{chunk-E7Q6UNCB.js.map → chunk-KBDYXGYT.js.map} +1 -1
- package/dist/{chunk-WVQDIOD7.js → chunk-KKMZP3YL.js} +2 -2
- package/dist/{chunk-WVQDIOD7.js.map → chunk-KKMZP3YL.js.map} +1 -1
- package/dist/{chunk-WSPXSWFG.js → chunk-KZEHTRPC.js} +3 -3
- package/dist/chunk-KZEHTRPC.js.map +1 -0
- package/dist/{chunk-KACJOE2N.js → chunk-LH5V6XGH.js} +2 -2
- package/dist/{chunk-KACJOE2N.js.map → chunk-LH5V6XGH.js.map} +1 -1
- package/dist/{chunk-VBXKYT4O.js → chunk-LH7YRRY7.js} +2 -2
- package/dist/{chunk-VBXKYT4O.js.map → chunk-LH7YRRY7.js.map} +1 -1
- package/dist/{chunk-QXXLDY6I.js → chunk-LI7AQ5NQ.js} +4 -4
- package/dist/{chunk-QXXLDY6I.js.map → chunk-LI7AQ5NQ.js.map} +1 -1
- package/dist/{chunk-CAB5IWV7.js → chunk-LSFPZR52.js} +4 -4
- package/dist/{chunk-CAB5IWV7.js.map → chunk-LSFPZR52.js.map} +1 -1
- package/dist/{chunk-CRHKWHTA.js → chunk-LUWZ7UZQ.js} +4 -4
- package/dist/{chunk-CRHKWHTA.js.map → chunk-LUWZ7UZQ.js.map} +1 -1
- package/dist/{chunk-CMG4OZPV.js → chunk-LWWIBUDK.js} +2 -2
- package/dist/{chunk-CMG4OZPV.js.map → chunk-LWWIBUDK.js.map} +1 -1
- package/dist/{chunk-LOW7J7SE.js → chunk-MHF2NK7F.js} +4 -4
- package/dist/{chunk-LOW7J7SE.js.map → chunk-MHF2NK7F.js.map} +1 -1
- package/dist/{chunk-JHUEYWWI.js → chunk-MPM6YBOM.js} +2 -2
- package/dist/{chunk-JHUEYWWI.js.map → chunk-MPM6YBOM.js.map} +1 -1
- package/dist/{chunk-3UEMBHBK.js → chunk-MPT6Y7Z2.js} +2 -2
- package/dist/{chunk-3UEMBHBK.js.map → chunk-MPT6Y7Z2.js.map} +1 -1
- package/dist/{chunk-OZKBIPXU.js → chunk-NO2XO7S6.js} +3 -3
- package/dist/{chunk-OZKBIPXU.js.map → chunk-NO2XO7S6.js.map} +1 -1
- package/dist/{chunk-FQETQ7CM.js → chunk-NSNQWDJ4.js} +2 -2
- package/dist/{chunk-FQETQ7CM.js.map → chunk-NSNQWDJ4.js.map} +1 -1
- package/dist/{chunk-UOBC36FL.js → chunk-OW2ODKHN.js} +2 -2
- package/dist/{chunk-UOBC36FL.js.map → chunk-OW2ODKHN.js.map} +1 -1
- package/dist/{chunk-PVKAIVKE.js → chunk-P427MACE.js} +63 -74
- package/dist/chunk-P427MACE.js.map +1 -0
- package/dist/{chunk-FR5G77K5.js → chunk-PJKH2GZ3.js} +2 -2
- package/dist/{chunk-FR5G77K5.js.map → chunk-PJKH2GZ3.js.map} +1 -1
- package/dist/{chunk-FNJA4S6J.js → chunk-QNA27ABY.js} +3 -3
- package/dist/{chunk-FNJA4S6J.js.map → chunk-QNA27ABY.js.map} +1 -1
- package/dist/{chunk-6BXPN5SC.js → chunk-RO3TSZ5W.js} +3 -3
- package/dist/{chunk-6BXPN5SC.js.map → chunk-RO3TSZ5W.js.map} +1 -1
- package/dist/{chunk-4IXG6XCT.js → chunk-RUCUU7Z7.js} +2 -2
- package/dist/{chunk-4IXG6XCT.js.map → chunk-RUCUU7Z7.js.map} +1 -1
- package/dist/{chunk-2FA3SX57.js → chunk-RYBJ7OZB.js} +4 -4
- package/dist/{chunk-2FA3SX57.js.map → chunk-RYBJ7OZB.js.map} +1 -1
- package/dist/{chunk-QSJAIXLM.js → chunk-SDQZYSCA.js} +3 -3
- package/dist/{chunk-QSJAIXLM.js.map → chunk-SDQZYSCA.js.map} +1 -1
- package/dist/{chunk-3XSY5LAB.js → chunk-SXZTDJMG.js} +4 -4
- package/dist/{chunk-3XSY5LAB.js.map → chunk-SXZTDJMG.js.map} +1 -1
- package/dist/{chunk-LJV2FNOC.js → chunk-T7M5FKCE.js} +3 -3
- package/dist/{chunk-LJV2FNOC.js.map → chunk-T7M5FKCE.js.map} +1 -1
- package/dist/{chunk-KS7EXW4P.js → chunk-TIRBSPP2.js} +2 -2
- package/dist/{chunk-KS7EXW4P.js.map → chunk-TIRBSPP2.js.map} +1 -1
- package/dist/{chunk-XO5IOPM5.js → chunk-TNJGPG6R.js} +8 -8
- package/dist/{chunk-XO5IOPM5.js.map → chunk-TNJGPG6R.js.map} +1 -1
- package/dist/{chunk-2GEGIPDR.js → chunk-U5SQOZNK.js} +4 -4
- package/dist/{chunk-2GEGIPDR.js.map → chunk-U5SQOZNK.js.map} +1 -1
- package/dist/{chunk-Y4VR6VNM.js → chunk-UPOS666Q.js} +2 -2
- package/dist/{chunk-Y4VR6VNM.js.map → chunk-UPOS666Q.js.map} +1 -1
- package/dist/{chunk-YE6KCAIN.js → chunk-USSGJ3MD.js} +2 -2
- package/dist/{chunk-YE6KCAIN.js.map → chunk-USSGJ3MD.js.map} +1 -1
- package/dist/{chunk-4UWLHKNU.js → chunk-UWLJ7UEK.js} +3 -3
- package/dist/{chunk-4UWLHKNU.js.map → chunk-UWLJ7UEK.js.map} +1 -1
- package/dist/{chunk-SNUDT6AX.js → chunk-VHAYQGWR.js} +2 -2
- package/dist/{chunk-SNUDT6AX.js.map → chunk-VHAYQGWR.js.map} +1 -1
- package/dist/{chunk-DV6GE57V.js → chunk-VWGRAE2Q.js} +2 -2
- package/dist/chunk-VWGRAE2Q.js.map +1 -0
- package/dist/{chunk-4L5ZIKDZ.js → chunk-W7J3MQNV.js} +2 -2
- package/dist/{chunk-4L5ZIKDZ.js.map → chunk-W7J3MQNV.js.map} +1 -1
- package/dist/{chunk-MVWR5WRX.js → chunk-WWDDKUDW.js} +3 -3
- package/dist/{chunk-MVWR5WRX.js.map → chunk-WWDDKUDW.js.map} +1 -1
- package/dist/{chunk-WEQNPYVA.js → chunk-XXKRHKFH.js} +2 -2
- package/dist/{chunk-WEQNPYVA.js.map → chunk-XXKRHKFH.js.map} +1 -1
- package/dist/{chunk-OQFWF7Q7.js → chunk-XZ253TGP.js} +3 -3
- package/dist/{chunk-OQFWF7Q7.js.map → chunk-XZ253TGP.js.map} +1 -1
- package/dist/{chunk-3TBMGGTA.js → chunk-Y672Z7QY.js} +2 -2
- package/dist/{chunk-3TBMGGTA.js.map → chunk-Y672Z7QY.js.map} +1 -1
- package/dist/{chunk-MMOQR426.js → chunk-YS3H6DEQ.js} +2 -2
- package/dist/{chunk-MMOQR426.js.map → chunk-YS3H6DEQ.js.map} +1 -1
- package/dist/{chunk-QR7MGGOM.js → chunk-YVGHWCMY.js} +3 -3
- package/dist/{chunk-QR7MGGOM.js.map → chunk-YVGHWCMY.js.map} +1 -1
- package/dist/{chunk-4CYCJ3NY.js → chunk-Z4PGAYO7.js} +10 -10
- package/dist/{chunk-4CYCJ3NY.js.map → chunk-Z4PGAYO7.js.map} +1 -1
- package/dist/{chunk-JAC6AVZN.js → chunk-ZIZXXYXM.js} +3 -3
- package/dist/{chunk-JAC6AVZN.js.map → chunk-ZIZXXYXM.js.map} +1 -1
- package/dist/collapsible-panel.d.ts +5 -5
- package/dist/collapsible-panel.js +4 -4
- 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 +2 -2
- package/dist/column-explorer.js +166 -21
- package/dist/column-explorer.js.map +1 -1
- package/dist/column-track.d.ts +1 -1
- package/dist/column-track.js +1 -1
- package/dist/combobox.d.ts +3 -3
- package/dist/combobox.js +1 -1
- package/dist/content-item.d.ts +1 -1
- package/dist/content-item.js +1 -1
- package/dist/content-swap.d.ts +3 -3
- package/dist/content-swap.js +1 -1
- package/dist/corner-status.d.ts +3 -3
- package/dist/corner-status.js +1 -1
- package/dist/device-class.js +101 -1
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +3 -3
- package/dist/disclosure-arrow.js +1 -1
- package/dist/disclosure.d.ts +14 -2
- package/dist/disclosure.js +13 -4
- package/dist/disclosure.js.map +1 -1
- package/dist/edge-activity-indicator.d.ts +3 -3
- package/dist/edge-activity-indicator.js +1 -1
- package/dist/empty-state.d.ts +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/{extension-attributes-IJ4decoa.d.ts → extension-attributes-CnqvBmj3.d.ts} +1 -1
- package/dist/file-picker.d.ts +3 -3
- package/dist/file-picker.js +1 -1
- package/dist/floating-toolbar.d.ts +3 -3
- package/dist/floating-toolbar.js +1 -1
- package/dist/form.d.ts +3 -3
- package/dist/form.js +1 -1
- package/dist/framed-list.js +1 -1
- package/dist/gauge.js +1 -1
- package/dist/grid.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +68 -68
- package/dist/list-action-row.js +1 -1
- package/dist/list-detail-dialog.d.ts +3 -3
- package/dist/list-detail-dialog.js +7 -7
- package/dist/list-detail-dialog.js.map +1 -1
- package/dist/list-header.d.ts +1 -1
- package/dist/list-header.js +1 -1
- package/dist/list-inset-control.d.ts +3 -3
- package/dist/list-inset-control.js +1 -1
- package/dist/list-inset-text.js +1 -1
- package/dist/list-item.js +1 -1
- package/dist/list.d.ts +1 -1
- package/dist/list.js +1 -1
- package/dist/loading-spinner.d.ts +3 -3
- package/dist/loading-spinner.js +1 -1
- package/dist/lucide-icon.d.ts +3 -3
- package/dist/lucide-icon.js +1 -1
- package/dist/message-composer.js +1 -1
- package/dist/{nav-stack-DKrvqFjA.d.ts → nav-stack-IKSMxo2A.d.ts} +3 -3
- package/dist/nav-stack.d.ts +2 -2
- package/dist/nav-stack.js +1 -1
- package/dist/paged-view.d.ts +3 -3
- package/dist/paged-view.js +1 -1
- package/dist/paged-view.js.map +1 -1
- package/dist/pane.js +1 -1
- package/dist/popup-menu-register.js +1 -1
- package/dist/popup-menu.d.ts +1 -20
- package/dist/popup-menu.js +1 -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 +3 -3
- package/dist/resizable-region.js +1 -1
- package/dist/row.d.ts +1 -1
- package/dist/row.js +1 -1
- package/dist/scroll-effect.d.ts +1 -1
- package/dist/scroll-effect.js +1 -1
- package/dist/{search-field-7wLt3Bd5.d.ts → search-field-BA48RaJY.d.ts} +3 -3
- package/dist/search-field-model.d.ts +2 -2
- package/dist/search-field.d.ts +2 -2
- package/dist/search-field.js +1 -1
- package/dist/segmented-control.d.ts +3 -3
- package/dist/segmented-control.js +1 -1
- package/dist/select-register.js +2 -2
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +3 -13
- package/dist/select.js +1 -1
- package/dist/sized-region.d.ts +3 -3
- package/dist/sized-region.js +1 -1
- package/dist/skeleton.d.ts +3 -3
- package/dist/skeleton.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/spacer.d.ts +3 -3
- package/dist/spacer.js +1 -1
- package/dist/split-button.js +1 -1
- package/dist/split-view.d.ts +4 -4
- package/dist/split-view.js +1 -1
- package/dist/state-banner.js +1 -1
- package/dist/styles/components/actions/popup-menu/popup-menu.css +0 -124
- package/dist/styles/components/actions/toolbar/toolbar.css +0 -7
- package/dist/styles/components/forms/select/select.css +0 -60
- package/dist/styles/components/forms/text-field/text-field.css +1 -1
- package/dist/styles/components/surfaces/disclosure/disclosure.css +24 -4
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +1 -1
- package/dist/styles/disclosure.css +24 -4
- package/dist/styles/popup-menu.css +0 -124
- package/dist/styles/select.css +0 -60
- package/dist/styles/surface-scaffold.css +1 -1
- package/dist/styles/text-field.css +1 -1
- package/dist/styles/toolbar.css +0 -7
- package/dist/styles/webawesome.css +7 -0
- package/dist/summary-row.js +1 -1
- package/dist/sunken-panel.d.ts +3 -3
- package/dist/sunken-panel.js +1 -1
- package/dist/surface-scaffold.d.ts +9 -5
- package/dist/surface-scaffold.js +1 -1
- package/dist/switch.js +1 -1
- package/dist/tab-bar-item.js +1 -1
- package/dist/tab-bar.d.ts +3 -3
- package/dist/tab-bar.js +1 -1
- package/dist/tab-navigator.d.ts +3 -3
- package/dist/tab-navigator.js +2 -2
- package/dist/tab-navigator.js.map +1 -1
- package/dist/tab-panel.d.ts +3 -3
- package/dist/tab-panel.js +1 -1
- package/dist/tag-field.d.ts +3 -3
- package/dist/tag-field.js +1 -1
- package/dist/text-field.d.ts +2 -2
- package/dist/text-field.js +1 -1
- package/dist/text.d.ts +1 -1
- package/dist/text.js +1 -1
- package/dist/toolbar-control-group.d.ts +7 -7
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar-text.d.ts +3 -3
- package/dist/toolbar-text.js +1 -1
- package/dist/toolbar.d.ts +3 -3
- package/dist/toolbar.js +1 -1
- package/dist/tree-list.d.ts +3 -3
- package/dist/tree-list.js +151 -3
- package/dist/tree-list.js.map +1 -1
- package/dist/{tree-rows-Bms5QJvG.d.ts → tree-rows-BXChApji.d.ts} +1 -1
- package/dist/value-preview.d.ts +3 -3
- package/dist/value-preview.js +1 -1
- package/dist/value-table.d.ts +5 -5
- package/dist/value-table.js +1 -1
- package/dist/wire-catalog.d.ts +2 -2
- package/dist/wire-catalog.js +2 -2
- package/dist/wire-color-fields.js +73 -2
- package/dist/wire-color-fields.js.map +1 -1
- package/dist/wire-color-pickers.js +1 -1
- package/dist/wire-column-explorer.js +92 -1
- package/dist/wire-column-explorer.js.map +1 -1
- package/dist/wire-content-items.js +204 -1
- package/dist/wire-content-items.js.map +1 -1
- package/dist/wire-nav-stack.js +423 -1
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-resizable-regions.js +1 -1
- package/dist/wire-search-fields.d.ts +2 -2
- package/dist/wire-search-fields.js +1 -1
- package/dist/wire-sidebar.js +228 -1
- package/dist/wire-sidebar.js.map +1 -1
- package/dist/wire-sliders.js +29 -1
- package/dist/wire-sliders.js.map +1 -1
- package/dist/wire-tab-bars.d.ts +1 -1
- package/dist/wire-tab-navigator.js +150 -1
- package/dist/wire-tab-navigator.js.map +1 -1
- package/dist/wire-tag-fields.js +252 -2
- package/dist/wire-tag-fields.js.map +1 -1
- package/dist/wire-tree-list.js +186 -1
- package/dist/wire-tree-list.js.map +1 -1
- package/dist/wire-workbench.js +1 -1
- package/dist/workbench-dialog.d.ts +3 -3
- package/dist/workbench-dialog.js +5 -5
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +4 -4
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +1 -1
- package/docs/component-contract.md +4 -3
- package/docs/component-selection.md +1 -1
- package/docs/disclosure.md +22 -0
- package/docs/list-detail-dialog.md +2 -3
- package/docs/scroll-effect.md +2 -2
- package/docs/surface-scaffold.md +5 -6
- package/docs/workbench-dialog.md +2 -3
- package/llms.txt +3 -44
- package/package.json +3 -33
- package/ux-demo/recipes/app-shell.tsx +141 -48
- package/ux-demo/recipes/collapsible-sidebar.tsx +169 -43
- package/ux-demo/recipes/compact-toolbar.tsx +114 -22
- package/ux-demo/recipes/composer-form.tsx +104 -14
- package/ux-demo/recipes/list-detail-dialog.tsx +84 -38
- package/ux-demo/recipes/list-workspace-states.tsx +152 -29
- package/ux-demo/recipes/loading-inspector.tsx +174 -30
- package/ux-demo/recipes/media-detail.tsx +146 -29
- package/ux-demo/recipes/navigation-sidebar.tsx +113 -24
- package/ux-demo/recipes/navigation-stack.tsx +43 -7
- package/ux-demo/recipes/workspace-header.tsx +66 -2
- package/ai/component-props-overlay.json +0 -8910
- package/ai/component-props-overlay.schema.json +0 -82
- package/ai/component-props.json +0 -34289
- package/ai/component-props.schema.json +0 -408
- package/ai/view-document.schema.json +0 -467
- package/dist/browser/editor.js +0 -50
- package/dist/chunk-3K5V3ZSD.js +0 -77
- package/dist/chunk-3K5V3ZSD.js.map +0 -1
- package/dist/chunk-63TJH2RF.js +0 -231
- package/dist/chunk-63TJH2RF.js.map +0 -1
- package/dist/chunk-6V6UHPJD.js +0 -153
- package/dist/chunk-6V6UHPJD.js.map +0 -1
- package/dist/chunk-76BLSFEA.js.map +0 -1
- package/dist/chunk-COQI4OMZ.js.map +0 -1
- package/dist/chunk-CUUW57WB.js.map +0 -1
- package/dist/chunk-D2KHQNJ6.js +0 -155
- package/dist/chunk-D2KHQNJ6.js.map +0 -1
- package/dist/chunk-DV6GE57V.js.map +0 -1
- package/dist/chunk-FCO7BT4P.js +0 -256
- package/dist/chunk-FCO7BT4P.js.map +0 -1
- package/dist/chunk-GHV36C6I.js +0 -94
- package/dist/chunk-GHV36C6I.js.map +0 -1
- package/dist/chunk-HPOXLOVC.js +0 -184
- package/dist/chunk-HPOXLOVC.js.map +0 -1
- package/dist/chunk-I2K4OQKB.js +0 -426
- package/dist/chunk-I2K4OQKB.js.map +0 -1
- package/dist/chunk-PVKAIVKE.js.map +0 -1
- package/dist/chunk-RGB4DPMN.js.map +0 -1
- package/dist/chunk-S7QB5KMM.js.map +0 -1
- package/dist/chunk-SGYBIKQA.js.map +0 -1
- package/dist/chunk-TXBNPEIJ.js +0 -31
- package/dist/chunk-TXBNPEIJ.js.map +0 -1
- package/dist/chunk-UU37OR3D.js.map +0 -1
- package/dist/chunk-WCMGPAY2.js +0 -103
- package/dist/chunk-WCMGPAY2.js.map +0 -1
- package/dist/chunk-WSPXSWFG.js.map +0 -1
- package/dist/chunk-X43QQWVC.js +0 -208
- package/dist/chunk-X43QQWVC.js.map +0 -1
- package/dist/chunk-YA6OAJY6.js +0 -155
- package/dist/chunk-YA6OAJY6.js.map +0 -1
- package/dist/editor.d.ts +0 -447
- package/dist/editor.js +0 -15608
- package/dist/editor.js.map +0 -1
- package/dist/styles/editor/editor.css +0 -585
- package/dist/styles/editor.css +0 -4
- package/dist/view-runtime.d.ts +0 -9
- package/dist/view-runtime.js +0 -8
- package/dist/view-runtime.js.map +0 -1
- package/docs/editor-host.md +0 -397
- package/docs/view.md +0 -314
- package/props/cli.d.mts +0 -1
- package/props/cli.mjs +0 -142
- package/props/component-props.d.mts +0 -180
- package/props/component-props.mjs +0 -1208
- package/view/catalog.mjs +0 -229
- package/view/child-kind.mjs +0 -22
- package/view/cli.d.mts +0 -18
- package/view/cli.mjs +0 -316
- package/view/contract.mjs +0 -418
- package/view/css-grammar.mjs +0 -93
- package/view/generate.d.mts +0 -16
- package/view/generate.mjs +0 -739
- package/view/index.d.mts +0 -491
- package/view/index.mjs +0 -36
- package/view/interpret.mjs +0 -339
- package/view/project-types-worker.mjs +0 -55
- package/view/project-types.d.mts +0 -43
- package/view/project-types.mjs +0 -618
- package/view/type-expression.d.mts +0 -15
- package/view/type-expression.mjs +0 -162
- package/view/types.mjs +0 -165
- package/view/validate-move.mjs +0 -353
- package/view/validate.mjs +0 -1649
- package/vite-editor.d.mts +0 -173
- package/vite-editor.mjs +0 -548
|
@@ -2,18 +2,29 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/collapsible-panel.css';
|
|
3
3
|
import '@kerfjs/ui/floating-toolbar.css';
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
CollapsiblePanel,
|
|
7
|
+
CollapsiblePanelRelocated,
|
|
8
|
+
type CollapsiblePanelToolbar,
|
|
9
|
+
} from '@kerfjs/ui/collapsible-panel';
|
|
10
|
+
import { ContentItem } from '@kerfjs/ui/content-item';
|
|
6
11
|
import { deviceClass } from '@kerfjs/ui/device-class';
|
|
12
|
+
import { FloatingToolbar } from '@kerfjs/ui/floating-toolbar';
|
|
13
|
+
import { Grid } from '@kerfjs/ui/grid';
|
|
14
|
+
import { List } from '@kerfjs/ui/list';
|
|
15
|
+
import { ListHeader } from '@kerfjs/ui/list-header';
|
|
16
|
+
import { ListItem } from '@kerfjs/ui/list-item';
|
|
17
|
+
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
18
|
+
import { Pane } from '@kerfjs/ui/pane';
|
|
19
|
+
import { Row } from '@kerfjs/ui/row';
|
|
20
|
+
import { Text } from '@kerfjs/ui/text';
|
|
21
|
+
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
22
|
+
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
23
|
+
import { ValueTable, ValueTableRow } from '@kerfjs/ui/value-table';
|
|
7
24
|
import { type SidebarStorage, wireSidebar } from '@kerfjs/ui/wire-sidebar';
|
|
8
25
|
import { signal } from 'kerfjs';
|
|
26
|
+
import { Bell, Folder, Inbox, Users } from 'lucide';
|
|
9
27
|
|
|
10
|
-
import { renderRecipeCollapsibleSidebar } from '../views/recipe-collapsible-sidebar.view.js';
|
|
11
|
-
import { renderRecipeSidebarDrawerTitle } from '../views/recipe-sidebar-drawer-title.view.js';
|
|
12
|
-
import { renderRecipeSidebarNavHeader } from '../views/recipe-sidebar-nav-header.view.js';
|
|
13
|
-
import { renderRecipeSidebarNavInbox } from '../views/recipe-sidebar-nav-inbox.view.js';
|
|
14
|
-
import { renderRecipeSidebarNavProjects } from '../views/recipe-sidebar-nav-projects.view.js';
|
|
15
|
-
import { renderRecipeSidebarNavShared } from '../views/recipe-sidebar-nav-shared.view.js';
|
|
16
|
-
import { renderRecipeSidebarRailTitle } from '../views/recipe-sidebar-rail-title.view.js';
|
|
17
28
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
18
29
|
|
|
19
30
|
const RAIL_ACTION = 'recipe-sidebar-rail';
|
|
@@ -31,7 +42,10 @@ export const presentation: RecipePresentation = {
|
|
|
31
42
|
note: "The app owns each panel's collapsed signal, sizes, and content; wireSidebar owns the toggle, focus move/restore, the compact overlay, and persistence.",
|
|
32
43
|
};
|
|
33
44
|
|
|
34
|
-
/**
|
|
45
|
+
/**
|
|
46
|
+
* A memory-backed store so the recipe demonstrates the persistence hook without
|
|
47
|
+
* writing to the shared `localStorage` the catalog page runs in.
|
|
48
|
+
*/
|
|
35
49
|
function memoryStorage(): SidebarStorage {
|
|
36
50
|
const map = new Map<string, string>();
|
|
37
51
|
return {
|
|
@@ -50,54 +64,166 @@ const labels: Record<string, string> = {
|
|
|
50
64
|
|
|
51
65
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
52
66
|
const selected = signal('inbox');
|
|
67
|
+
// A shared window-backed device class: when the viewport is compact the wire
|
|
68
|
+
// switches the rail/drawer to a dismissable overlay presentation.
|
|
53
69
|
const device = deviceClass();
|
|
70
|
+
// A compact overlay only opens on a user action, so the first render already
|
|
71
|
+
// matches: collapsed on a compact device, open inline otherwise. The wire's
|
|
72
|
+
// `inlineCollapsed` keeps the open inline default for a later wide crossing.
|
|
54
73
|
const railCollapsed = signal(device.value.compact);
|
|
55
74
|
const drawerCollapsed = signal(true);
|
|
56
75
|
const storage = memoryStorage();
|
|
57
76
|
|
|
77
|
+
// Each panel composes its own toolbar with the standard toggle last. While a
|
|
78
|
+
// panel is collapsed, CollapsiblePanelRelocated carries that toggle: the
|
|
79
|
+
// rail's leads the main toolbar, the drawer's floats in its container's
|
|
80
|
+
// bottom-end corner. wireSidebar hands focus between the two positions.
|
|
58
81
|
const railToolbar: CollapsiblePanelToolbar = {
|
|
59
82
|
label: 'Workspace Navigation',
|
|
60
|
-
title:
|
|
83
|
+
title: <ToolbarText text="Atlas" />,
|
|
61
84
|
toggle: { action: RAIL_ACTION, name: 'Navigation' },
|
|
62
85
|
};
|
|
63
86
|
const drawerToolbar: CollapsiblePanelToolbar = {
|
|
64
87
|
label: 'Activity',
|
|
65
|
-
title:
|
|
88
|
+
title: <ToolbarText text="Activity" size="small" />,
|
|
66
89
|
toggle: { action: DRAWER_ACTION, name: 'Activity' },
|
|
67
90
|
};
|
|
68
91
|
|
|
69
|
-
const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
const rail = () => (
|
|
93
|
+
<CollapsiblePanel
|
|
94
|
+
id="sidebar-rail"
|
|
95
|
+
side="left"
|
|
96
|
+
size={232}
|
|
97
|
+
collapsed={railCollapsed.value}
|
|
98
|
+
label="Workspace Navigation"
|
|
99
|
+
toolbar={railToolbar}
|
|
100
|
+
>
|
|
101
|
+
<nav aria-label="Workspace">
|
|
102
|
+
<section>
|
|
103
|
+
<ListHeader label="Workspace" />
|
|
104
|
+
<ListItem
|
|
105
|
+
action="recipe-action"
|
|
106
|
+
itemId="inbox"
|
|
107
|
+
label="Inbox"
|
|
108
|
+
icon={<LucideIcon icon={Inbox} name="inbox" />}
|
|
109
|
+
trailing={<span>12</span>}
|
|
110
|
+
selected={selected.value === 'inbox'}
|
|
111
|
+
/>
|
|
112
|
+
<ListItem
|
|
113
|
+
action="recipe-action"
|
|
114
|
+
itemId="projects"
|
|
115
|
+
label="Projects"
|
|
116
|
+
icon={<LucideIcon icon={Folder} name="folder" />}
|
|
117
|
+
selected={selected.value === 'projects'}
|
|
118
|
+
/>
|
|
119
|
+
<ListItem
|
|
120
|
+
action="recipe-action"
|
|
121
|
+
itemId="shared"
|
|
122
|
+
label="Shared with Me"
|
|
123
|
+
icon={<LucideIcon icon={Users} name="users" />}
|
|
124
|
+
selected={selected.value === 'shared'}
|
|
125
|
+
/>
|
|
126
|
+
</section>
|
|
127
|
+
</nav>
|
|
128
|
+
</CollapsiblePanel>
|
|
129
|
+
);
|
|
130
|
+
|
|
131
|
+
const main = () => (
|
|
132
|
+
<Pane
|
|
133
|
+
element="main"
|
|
134
|
+
header={
|
|
135
|
+
<Toolbar
|
|
136
|
+
label="Current Navigation View"
|
|
137
|
+
leading={
|
|
138
|
+
<>
|
|
139
|
+
<CollapsiblePanelRelocated
|
|
140
|
+
panelId="sidebar-rail"
|
|
141
|
+
side="left"
|
|
142
|
+
collapsed={railCollapsed.value}
|
|
143
|
+
toolbar={railToolbar}
|
|
144
|
+
/>
|
|
145
|
+
<ToolbarText
|
|
146
|
+
text={labels[selected.value] ?? 'Inbox'}
|
|
147
|
+
size="xlarge"
|
|
148
|
+
id="recipe-collapsible-main-title"
|
|
149
|
+
/>
|
|
150
|
+
</>
|
|
151
|
+
}
|
|
152
|
+
/>
|
|
153
|
+
}
|
|
154
|
+
>
|
|
155
|
+
<ContentItem>
|
|
156
|
+
<List gap="2xs">
|
|
157
|
+
<Text variant="span" weight="strong">
|
|
158
|
+
Compact Width
|
|
159
|
+
</Text>
|
|
160
|
+
<Text variant="span" tone="quiet" size="compact">
|
|
161
|
+
Narrow the window to a compact width: the rail and drawer start
|
|
162
|
+
closed and open as a dismissable overlay, with a backdrop, Escape,
|
|
163
|
+
and a trapped Tab ring, all managed by the wire.
|
|
164
|
+
</Text>
|
|
165
|
+
</List>
|
|
166
|
+
</ContentItem>
|
|
167
|
+
</Pane>
|
|
168
|
+
);
|
|
169
|
+
|
|
170
|
+
const drawer = () => (
|
|
171
|
+
<CollapsiblePanel
|
|
172
|
+
id="sidebar-console"
|
|
173
|
+
side="bottom"
|
|
174
|
+
size={168}
|
|
175
|
+
collapsed={drawerCollapsed.value}
|
|
176
|
+
label="Activity"
|
|
177
|
+
toolbar={drawerToolbar}
|
|
178
|
+
restoreControl={
|
|
179
|
+
<FloatingToolbar label="Activity Drawer">
|
|
180
|
+
<CollapsiblePanelRelocated
|
|
181
|
+
panelId="sidebar-console"
|
|
182
|
+
side="bottom"
|
|
183
|
+
collapsed={drawerCollapsed.value}
|
|
184
|
+
toolbar={drawerToolbar}
|
|
185
|
+
/>
|
|
186
|
+
</FloatingToolbar>
|
|
187
|
+
}
|
|
188
|
+
>
|
|
189
|
+
<ValueTable label="Recent Activity">
|
|
190
|
+
<ValueTableRow
|
|
191
|
+
label="Deploy finished"
|
|
192
|
+
value="2m ago"
|
|
193
|
+
icon={<LucideIcon icon={Bell} name="bell" />}
|
|
194
|
+
/>
|
|
195
|
+
<ValueTableRow
|
|
196
|
+
label="Review requested"
|
|
197
|
+
value="9m ago"
|
|
198
|
+
icon={<LucideIcon icon={Bell} name="bell" />}
|
|
199
|
+
/>
|
|
200
|
+
</ValueTable>
|
|
201
|
+
</CollapsiblePanel>
|
|
202
|
+
);
|
|
203
|
+
|
|
204
|
+
// The root Row fills the frame's definite height with the rail beside a
|
|
205
|
+
// column whose main pane grows above the bottom drawer. Each CollapsiblePanel
|
|
206
|
+
// docks to a real frame edge, so it paints through that edge's safe area and
|
|
207
|
+
// hands the edge back to its siblings when it collapses.
|
|
208
|
+
const render = () => (
|
|
209
|
+
<Row
|
|
210
|
+
gap="none"
|
|
211
|
+
fill
|
|
212
|
+
rootAttributes={{
|
|
213
|
+
'data-recipe': 'recipe-collapsible-sidebar',
|
|
214
|
+
'data-rail-collapsed': String(railCollapsed.value),
|
|
215
|
+
'data-drawer-collapsed': String(drawerCollapsed.value),
|
|
216
|
+
}}
|
|
217
|
+
>
|
|
218
|
+
{rail()}
|
|
219
|
+
<List flex>
|
|
220
|
+
<Grid columns={1} gap="none" flex>
|
|
221
|
+
{main()}
|
|
222
|
+
</Grid>
|
|
223
|
+
{drawer()}
|
|
224
|
+
</List>
|
|
225
|
+
</Row>
|
|
226
|
+
);
|
|
101
227
|
|
|
102
228
|
return {
|
|
103
229
|
render,
|
|
@@ -2,11 +2,31 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/select/register';
|
|
3
3
|
|
|
4
4
|
import { deviceClass } from '@kerfjs/ui/device-class';
|
|
5
|
+
import { Grid } from '@kerfjs/ui/grid';
|
|
6
|
+
import { List } from '@kerfjs/ui/list';
|
|
7
|
+
import { ListInsetText } from '@kerfjs/ui/list-inset-text';
|
|
8
|
+
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
9
|
+
import { SegmentedControl } from '@kerfjs/ui/segmented-control';
|
|
10
|
+
import { Select } from '@kerfjs/ui/select';
|
|
11
|
+
import { Text } from '@kerfjs/ui/text';
|
|
12
|
+
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
13
|
+
import {
|
|
14
|
+
ToolbarButton,
|
|
15
|
+
ToolbarControlGroup,
|
|
16
|
+
} from '@kerfjs/ui/toolbar-control-group';
|
|
17
|
+
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
5
18
|
import { signal } from 'kerfjs';
|
|
19
|
+
import { Ellipsis, Funnel, RefreshCw } from 'lucide';
|
|
6
20
|
|
|
7
|
-
import { renderRecipeCompactToolbar } from '../views/recipe-compact-toolbar.view.js';
|
|
8
21
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
9
22
|
|
|
23
|
+
const guide = [
|
|
24
|
+
['ToolbarControlGroup', 'Related commands or pressed tools.'],
|
|
25
|
+
['SegmentedControl', 'A few visible exclusive choices.'],
|
|
26
|
+
['Select', 'A longer controlled value list.'],
|
|
27
|
+
['Ordinary button', 'One independent command.'],
|
|
28
|
+
] as const;
|
|
29
|
+
|
|
10
30
|
export const presentation: RecipePresentation = {
|
|
11
31
|
viewport: {
|
|
12
32
|
width: 'full',
|
|
@@ -19,30 +39,108 @@ export const presentation: RecipePresentation = {
|
|
|
19
39
|
};
|
|
20
40
|
|
|
21
41
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
22
|
-
const view = signal
|
|
23
|
-
const sort = signal
|
|
42
|
+
const view = signal('list');
|
|
43
|
+
const sort = signal('updated');
|
|
24
44
|
const filtered = signal(false);
|
|
25
45
|
const device = deviceClass();
|
|
26
46
|
const render = () => (
|
|
27
47
|
<section data-recipe="recipe-compact-toolbar" aria-label="Task Workspace">
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
<List gap="l" controlInsets="b">
|
|
49
|
+
<Toolbar
|
|
50
|
+
label="Task Workspace Controls"
|
|
51
|
+
responsive="stack"
|
|
52
|
+
responsiveAt="compact"
|
|
53
|
+
leading={<ToolbarText text="Tasks" size="small" />}
|
|
54
|
+
center={
|
|
55
|
+
<ToolbarControlGroup>
|
|
56
|
+
<SegmentedControl<string>
|
|
57
|
+
id="recipe-view"
|
|
58
|
+
label="View"
|
|
59
|
+
value={view.value}
|
|
60
|
+
action="recipe-action"
|
|
61
|
+
appearance="toolbar"
|
|
62
|
+
shape="pill"
|
|
63
|
+
size="compact"
|
|
64
|
+
choices={[
|
|
65
|
+
{ value: 'list', label: 'List' },
|
|
66
|
+
{ value: 'board', label: 'Board' },
|
|
67
|
+
{ value: 'timeline', label: 'Timeline' },
|
|
68
|
+
]}
|
|
69
|
+
/>
|
|
70
|
+
</ToolbarControlGroup>
|
|
71
|
+
}
|
|
72
|
+
trailing={
|
|
73
|
+
<>
|
|
74
|
+
<ToolbarControlGroup single focusRing="outline">
|
|
75
|
+
<Select<string>
|
|
76
|
+
name="recipe-sort"
|
|
77
|
+
value={sort.value}
|
|
78
|
+
ariaLabel="Sort Tasks"
|
|
79
|
+
fitMenu
|
|
80
|
+
presentation="toolbar-borderless"
|
|
81
|
+
size="compact"
|
|
82
|
+
focusRingOwner="group"
|
|
83
|
+
choices={[
|
|
84
|
+
{ value: 'updated', label: 'Recently Updated' },
|
|
85
|
+
{ value: 'priority', label: 'Priority' },
|
|
86
|
+
{ value: 'owner', label: 'Owner' },
|
|
87
|
+
{ value: 'created', label: 'Created Date' },
|
|
88
|
+
]}
|
|
89
|
+
/>
|
|
90
|
+
</ToolbarControlGroup>
|
|
91
|
+
<ToolbarControlGroup label="Task Actions" buttonAppearance="push">
|
|
92
|
+
<ToolbarButton
|
|
93
|
+
ariaLabel="Toggle Filters"
|
|
94
|
+
pressed={filtered.value}
|
|
95
|
+
action="recipe-action"
|
|
96
|
+
rootAttributes={{ 'data-recipe-command': 'filter' }}
|
|
97
|
+
icon={<LucideIcon icon={Funnel} name="funnel" />}
|
|
98
|
+
/>
|
|
99
|
+
<ToolbarButton
|
|
100
|
+
ariaLabel="Refresh Tasks"
|
|
101
|
+
action="recipe-action"
|
|
102
|
+
rootAttributes={{ 'data-recipe-command': 'refresh' }}
|
|
103
|
+
icon={<LucideIcon icon={RefreshCw} name="refresh-cw" />}
|
|
104
|
+
/>
|
|
105
|
+
</ToolbarControlGroup>
|
|
106
|
+
<ToolbarControlGroup label="More Task Actions" single>
|
|
107
|
+
<ToolbarButton
|
|
108
|
+
ariaLabel="More Task Actions"
|
|
109
|
+
action="recipe-action"
|
|
110
|
+
rootAttributes={{ 'data-recipe-command': 'more' }}
|
|
111
|
+
icon={<LucideIcon icon={Ellipsis} name="ellipsis" />}
|
|
112
|
+
/>
|
|
113
|
+
</ToolbarControlGroup>
|
|
114
|
+
</>
|
|
115
|
+
}
|
|
116
|
+
/>
|
|
117
|
+
<Grid
|
|
118
|
+
columns={
|
|
119
|
+
device.value.compact ? 1 : device.value.atLeast('desktop') ? 4 : 2
|
|
120
|
+
}
|
|
121
|
+
gap="none"
|
|
122
|
+
>
|
|
123
|
+
{guide.map(([name, use]) => (
|
|
124
|
+
<ListInsetText>
|
|
125
|
+
<List gap="2xs">
|
|
126
|
+
<Text variant="span" weight="strong">
|
|
127
|
+
{name}
|
|
128
|
+
</Text>
|
|
129
|
+
<Text variant="span" tone="quiet" size="compact">
|
|
130
|
+
{use}
|
|
131
|
+
</Text>
|
|
132
|
+
</List>
|
|
133
|
+
</ListInsetText>
|
|
134
|
+
))}
|
|
135
|
+
</Grid>
|
|
136
|
+
</List>
|
|
38
137
|
</section>
|
|
39
138
|
);
|
|
40
139
|
return {
|
|
41
140
|
render,
|
|
42
141
|
action(command, element) {
|
|
43
142
|
const value = element.dataset.segmentValue;
|
|
44
|
-
if (value
|
|
45
|
-
view.value = value;
|
|
143
|
+
if (value) view.value = value;
|
|
46
144
|
if (command === 'filter') filtered.value = !filtered.value;
|
|
47
145
|
announce(
|
|
48
146
|
value
|
|
@@ -54,13 +152,7 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
54
152
|
},
|
|
55
153
|
change(element) {
|
|
56
154
|
const value = (element as HTMLElement & { value?: string }).value;
|
|
57
|
-
if (
|
|
58
|
-
element.getAttribute('name') === 'recipe-sort' &&
|
|
59
|
-
(value === 'updated' ||
|
|
60
|
-
value === 'priority' ||
|
|
61
|
-
value === 'owner' ||
|
|
62
|
-
value === 'created')
|
|
63
|
-
) {
|
|
155
|
+
if (element.getAttribute('name') === 'recipe-sort' && value) {
|
|
64
156
|
sort.value = value;
|
|
65
157
|
announce(`Sort: ${value}`);
|
|
66
158
|
}
|
|
@@ -2,9 +2,20 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/select/register';
|
|
3
3
|
import '@kerfjs/ui/webawesome.css';
|
|
4
4
|
|
|
5
|
+
import { Spacer } from '@kerfjs/ui';
|
|
6
|
+
import { Button } from '@kerfjs/ui/button';
|
|
7
|
+
import { Form } from '@kerfjs/ui/form';
|
|
8
|
+
import { List } from '@kerfjs/ui/list';
|
|
9
|
+
import { ListInsetText } from '@kerfjs/ui/list-inset-text';
|
|
10
|
+
import { Row } from '@kerfjs/ui/row';
|
|
11
|
+
import { Select } from '@kerfjs/ui/select';
|
|
12
|
+
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
13
|
+
import { Text } from '@kerfjs/ui/text';
|
|
14
|
+
import { TextField } from '@kerfjs/ui/text-field';
|
|
15
|
+
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
16
|
+
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
5
17
|
import { signal } from 'kerfjs';
|
|
6
18
|
|
|
7
|
-
import { renderRecipeComposerForm } from '../views/recipe-composer-form.view.js';
|
|
8
19
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
9
20
|
|
|
10
21
|
export const presentation: RecipePresentation = {
|
|
@@ -39,16 +50,98 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
39
50
|
const body = signal(
|
|
40
51
|
'The tablet layout now keeps navigation, content, and inspector focus order aligned.',
|
|
41
52
|
);
|
|
42
|
-
const audience = signal
|
|
53
|
+
const audience = signal('team');
|
|
43
54
|
const status = signal<'idle' | 'error' | 'saved'>('idle');
|
|
44
|
-
const render = () =>
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
55
|
+
const render = () => (
|
|
56
|
+
<Form
|
|
57
|
+
rootAttributes={{ 'data-recipe': 'recipe-composer-form' }}
|
|
58
|
+
labelledBy="recipe-composer-title"
|
|
59
|
+
describedBy="recipe-composer-summary"
|
|
60
|
+
noValidate
|
|
61
|
+
>
|
|
62
|
+
<List gap="l" controlInsets="tb">
|
|
63
|
+
{/* The title and its supporting line are one heading unit. */}
|
|
64
|
+
<List>
|
|
65
|
+
<Toolbar
|
|
66
|
+
label="Publish Workspace Update"
|
|
67
|
+
leading={
|
|
68
|
+
<ToolbarText
|
|
69
|
+
text="Publish Workspace Update"
|
|
70
|
+
size="xlarge"
|
|
71
|
+
id="recipe-composer-title"
|
|
72
|
+
/>
|
|
73
|
+
}
|
|
74
|
+
/>
|
|
75
|
+
<ListInsetText sides="rl">
|
|
76
|
+
<Text variant="span" tone="quiet" id="recipe-composer-summary">
|
|
77
|
+
Share a concise, actionable update with collaborators.
|
|
78
|
+
</Text>
|
|
79
|
+
</ListInsetText>
|
|
80
|
+
</List>
|
|
81
|
+
{status.value === 'error' && (
|
|
82
|
+
<StateBanner
|
|
83
|
+
title="Add a Title Before Publishing"
|
|
84
|
+
detail="The update body and audience are preserved."
|
|
85
|
+
tone="danger"
|
|
86
|
+
urgency="alert"
|
|
87
|
+
/>
|
|
88
|
+
)}
|
|
89
|
+
{status.value === 'saved' && (
|
|
90
|
+
<StateBanner
|
|
91
|
+
title="Update Published"
|
|
92
|
+
detail="The team audience can now read it."
|
|
93
|
+
tone="success"
|
|
94
|
+
/>
|
|
95
|
+
)}
|
|
96
|
+
<List gap="xs" controlInsets="rl">
|
|
97
|
+
<TextField
|
|
98
|
+
name="recipe-title"
|
|
99
|
+
label="Update Title"
|
|
100
|
+
hint="Summarize the outcome in one line."
|
|
101
|
+
required
|
|
102
|
+
value={title.value}
|
|
103
|
+
/>
|
|
104
|
+
<TextField
|
|
105
|
+
multiline
|
|
106
|
+
name="recipe-body"
|
|
107
|
+
label="Details"
|
|
108
|
+
hint="Include decisions, owners, and the next checkpoint."
|
|
109
|
+
rows={5}
|
|
110
|
+
maxLength={400}
|
|
111
|
+
showCount
|
|
112
|
+
value={body.value}
|
|
113
|
+
/>
|
|
114
|
+
<Select<string>
|
|
115
|
+
name="recipe-audience"
|
|
116
|
+
value={audience.value}
|
|
117
|
+
label="Audience"
|
|
118
|
+
choices={[
|
|
119
|
+
{ value: 'team', label: 'Workspace Team' },
|
|
120
|
+
{ value: 'reviewers', label: 'Reviewers' },
|
|
121
|
+
{ value: 'organization', label: 'Entire Organization' },
|
|
122
|
+
]}
|
|
123
|
+
/>
|
|
124
|
+
</List>
|
|
125
|
+
<Row gap="xs" wrap controlInsets="rl">
|
|
126
|
+
<Spacer flex />
|
|
127
|
+
<Button
|
|
128
|
+
emphasis="secondary"
|
|
129
|
+
action="recipe-action"
|
|
130
|
+
rootAttributes={{ 'data-recipe-command': 'reset' }}
|
|
131
|
+
>
|
|
132
|
+
Reset
|
|
133
|
+
</Button>
|
|
134
|
+
<Button
|
|
135
|
+
tone="brand"
|
|
136
|
+
action="recipe-action"
|
|
137
|
+
rootAttributes={{ 'data-recipe-command': 'submit' }}
|
|
138
|
+
>
|
|
139
|
+
Publish Update
|
|
140
|
+
</Button>
|
|
141
|
+
</Row>
|
|
142
|
+
</List>
|
|
143
|
+
</Form>
|
|
144
|
+
);
|
|
52
145
|
return {
|
|
53
146
|
render,
|
|
54
147
|
action(command, element) {
|
|
@@ -75,10 +168,7 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
75
168
|
(element as HTMLElement & { value?: string | null }).value ?? '';
|
|
76
169
|
if (element.getAttribute('name') === 'recipe-title') title.value = value;
|
|
77
170
|
if (element.getAttribute('name') === 'recipe-body') body.value = value;
|
|
78
|
-
if (
|
|
79
|
-
element.getAttribute('name') === 'recipe-audience' &&
|
|
80
|
-
(value === 'team' || value === 'reviewers' || value === 'organization')
|
|
81
|
-
)
|
|
171
|
+
if (element.getAttribute('name') === 'recipe-audience')
|
|
82
172
|
audience.value = value;
|
|
83
173
|
},
|
|
84
174
|
};
|