@kerfjs/ui 5.0.0-beta.8 → 5.0.0-beta.80
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 +546 -139
- package/ai/application-ui-diagnostic-ids-v1.json +113 -0
- package/ai/application-ui-profile-sync.cjs +548 -0
- package/ai/application-ui-profile.d.mts +1 -0
- package/ai/application-ui-profile.d.ts +106 -0
- package/ai/application-ui-profile.defaults.json +96 -0
- package/ai/application-ui-profile.mjs +653 -0
- package/ai/application-ui-profile.schema.json +140 -0
- package/ai/catalog-authoring.json +36 -0
- package/ai/catalog-authoring.schema.json +109 -0
- package/ai/compile-time-contracts-v1.json +149 -0
- package/ai/compile-time-contracts-v1.schema.json +52 -0
- package/ai/component-catalog-extension.schema.json +104 -0
- package/ai/component-catalog.json +4280 -457
- package/ai/component-catalog.schema.json +94 -1
- package/ai/component-class-owners.cjs +83 -0
- package/ai/component-composition-extension.d.ts +7 -0
- package/ai/component-composition-extension.schema.json +7 -0
- package/ai/component-composition-rules.json +516 -0
- package/ai/component-composition.d.ts +129 -0
- package/ai/component-composition.json +7397 -0
- package/ai/component-composition.schema.json +408 -0
- package/ai/components/README.md +171 -0
- package/ai/components/application-tabs.md +65 -0
- package/ai/components/badge.md +72 -0
- package/ai/components/chip.md +72 -0
- package/ai/components/collapsible-panel.md +102 -0
- package/ai/components/content-item.md +96 -0
- package/ai/components/disclosure-arrow.md +77 -0
- package/ai/components/document-baseline.md +75 -0
- package/ai/components/empty-state.md +80 -0
- package/ai/components/feedback.md +71 -0
- package/ai/components/floating-toolbar.md +82 -0
- package/ai/components/foundation.md +65 -0
- package/ai/components/grid.md +100 -0
- package/ai/components/headers.md +63 -0
- package/ai/components/layout.md +75 -0
- package/ai/components/list-action-row.md +91 -0
- package/ai/components/list-header.md +91 -0
- package/ai/components/list-inset-control.md +74 -0
- package/ai/components/list-inset-text.md +72 -0
- package/ai/components/list-item.md +94 -0
- package/ai/components/list.md +106 -0
- package/ai/components/loading-spinner.md +73 -0
- package/ai/components/lucide-icon.md +97 -0
- package/ai/components/nav-stack.md +105 -0
- package/ai/components/pane.md +104 -0
- package/ai/components/popup-menu.md +171 -0
- package/ai/components/recipe-app-shell.md +57 -0
- package/ai/components/recipe-collapsible-sidebar.md +57 -0
- package/ai/components/recipe-compact-toolbar.md +57 -0
- package/ai/components/recipe-composer-form.md +57 -0
- package/ai/components/recipe-list-detail-dialog.md +57 -0
- package/ai/components/recipe-list-workspace-states.md +57 -0
- package/ai/components/recipe-loading-inspector.md +57 -0
- package/ai/components/recipe-navigation-sidebar.md +57 -0
- package/ai/components/recipe-navigation-stack.md +57 -0
- package/ai/components/recipe-workspace-header.md +57 -0
- package/ai/components/resize.md +106 -0
- package/ai/components/row.md +96 -0
- package/ai/components/segmented-control.md +82 -0
- package/ai/components/select.md +115 -0
- package/ai/components/skeleton.md +84 -0
- package/ai/components/spacer.md +86 -0
- package/ai/components/split-view.md +103 -0
- package/ai/components/state-banner.md +94 -0
- package/ai/components/sunken-panel.md +79 -0
- package/ai/components/surface-scaffold.md +87 -0
- package/ai/components/tab-bar.md +113 -0
- package/ai/components/tab-navigator.md +95 -0
- package/ai/components/tabs.md +95 -0
- package/ai/components/text.md +87 -0
- package/ai/components/token-search-field.md +107 -0
- package/ai/components/toolbar-control-group.md +121 -0
- package/ai/components/toolbar-text.md +98 -0
- package/ai/components/toolbar.md +101 -0
- package/ai/components/value-table.md +73 -0
- package/ai/components/wa-accordion-item.md +55 -0
- package/ai/components/wa-accordion.md +65 -0
- package/ai/components/wa-animated-image.md +55 -0
- package/ai/components/wa-animation.md +55 -0
- package/ai/components/wa-avatar.md +55 -0
- package/ai/components/wa-badge.md +55 -0
- package/ai/components/wa-breadcrumb-item.md +53 -0
- package/ai/components/wa-breadcrumb.md +55 -0
- package/ai/components/wa-button-group.md +59 -0
- package/ai/components/wa-button.md +55 -0
- package/ai/components/wa-callout.md +58 -0
- package/ai/components/wa-card.md +59 -0
- package/ai/components/wa-carousel-item.md +53 -0
- package/ai/components/wa-carousel.md +55 -0
- package/ai/components/wa-checkbox-group.md +55 -0
- package/ai/components/wa-checkbox.md +55 -0
- package/ai/components/wa-color-picker.md +55 -0
- package/ai/components/wa-comparison.md +55 -0
- package/ai/components/wa-copy-button.md +55 -0
- package/ai/components/wa-details.md +61 -0
- package/ai/components/wa-dialog.md +59 -0
- package/ai/components/wa-divider.md +53 -0
- package/ai/components/wa-drawer.md +55 -0
- package/ai/components/wa-dropdown-item.md +60 -0
- package/ai/components/wa-dropdown.md +60 -0
- package/ai/components/wa-format-bytes.md +53 -0
- package/ai/components/wa-format-date.md +53 -0
- package/ai/components/wa-format-number.md +53 -0
- package/ai/components/wa-icon.md +58 -0
- package/ai/components/wa-include.md +53 -0
- package/ai/components/wa-input.md +59 -0
- package/ai/components/wa-intersection-observer.md +53 -0
- package/ai/components/wa-known-date.md +53 -0
- package/ai/components/wa-markdown.md +53 -0
- package/ai/components/wa-mutation-observer.md +53 -0
- package/ai/components/wa-number-input.md +55 -0
- package/ai/components/wa-option.md +59 -0
- package/ai/components/wa-otp-input.md +53 -0
- package/ai/components/wa-page.md +53 -0
- package/ai/components/wa-pagination.md +55 -0
- package/ai/components/wa-popover.md +55 -0
- package/ai/components/wa-popup.md +53 -0
- package/ai/components/wa-progress-bar.md +53 -0
- package/ai/components/wa-progress-ring.md +53 -0
- package/ai/components/wa-qr-code.md +53 -0
- package/ai/components/wa-radio-group.md +59 -0
- package/ai/components/wa-radio.md +55 -0
- package/ai/components/wa-random-content.md +53 -0
- package/ai/components/wa-rating.md +55 -0
- package/ai/components/wa-relative-time.md +53 -0
- package/ai/components/wa-resize-observer.md +53 -0
- package/ai/components/wa-scroller.md +53 -0
- package/ai/components/wa-select.md +63 -0
- package/ai/components/wa-skeleton.md +53 -0
- package/ai/components/wa-slider.md +55 -0
- package/ai/components/wa-spinner.md +58 -0
- package/ai/components/wa-split-panel.md +58 -0
- package/ai/components/wa-switch.md +53 -0
- package/ai/components/wa-tab-group.md +69 -0
- package/ai/components/wa-tab-panel.md +60 -0
- package/ai/components/wa-tab.md +59 -0
- package/ai/components/wa-tag.md +59 -0
- package/ai/components/wa-textarea.md +53 -0
- package/ai/components/wa-time-input.md +55 -0
- package/ai/components/wa-toast-item.md +60 -0
- package/ai/components/wa-toast.md +60 -0
- package/ai/components/wa-tooltip.md +55 -0
- package/ai/components/wa-tree-item.md +55 -0
- package/ai/components/wa-tree.md +55 -0
- package/ai/components/wa-zoomable-frame.md +55 -0
- package/ai/components/workbench.md +119 -0
- package/ai/public-api-signatures-v1.md +2821 -250
- package/ai/skill.md +354 -66
- package/ai/webawesome-jsx-signatures-v1.md +9 -2
- package/analyzer/cli.mjs +49 -0
- package/analyzer/component-ownership.d.mts +72 -0
- package/analyzer/component-ownership.mjs +429 -0
- package/analyzer/index.d.mts +53 -0
- package/analyzer/index.mjs +2346 -0
- package/analyzer/loud-pairs.d.mts +49 -0
- package/analyzer/loud-pairs.mjs +357 -0
- package/analyzer/report.schema.json +66 -0
- package/analyzer/selectors.d.mts +21 -0
- package/analyzer/selectors.mjs +212 -0
- package/catalog-projection-cli.mjs +96 -0
- package/catalog-projection.d.mts +55 -0
- package/catalog-projection.mjs +62 -0
- package/dist/app-tab.d.ts +39 -4
- package/dist/app-tab.js +2 -1
- package/dist/badge.d.ts +54 -0
- package/dist/badge.js +3 -0
- package/dist/badge.js.map +1 -0
- package/dist/browser/badge.js +3 -0
- package/dist/browser/catalog.js +26 -0
- package/dist/browser/chip.js +3 -0
- package/dist/browser/collapsible-panel.js +9 -0
- package/dist/browser/content-item.js +3 -0
- package/dist/browser/floating-toolbar.js +3 -0
- package/dist/browser/grid.js +3 -0
- package/dist/browser/list-action-row.js +5 -0
- package/dist/browser/{menu-header.js → list-header.js} +5 -3
- package/dist/browser/list-inset-control.js +3 -0
- package/dist/browser/list-inset-text.js +3 -0
- package/dist/browser/list-item.js +5 -0
- package/dist/browser/list.js +3 -0
- package/dist/browser/nav-stack.js +11 -0
- package/dist/browser/pane.js +3 -0
- package/dist/browser/popup-menu.js +3 -0
- package/dist/browser/row.js +3 -0
- package/dist/browser/segmented-control.js +0 -1
- package/dist/browser/select.js +2 -1
- package/dist/browser/spacer.js +3 -0
- package/dist/browser/split-view.js +13 -0
- package/dist/browser/state-banner.js +1 -0
- package/dist/browser/sunken-panel.js +3 -0
- package/dist/browser/surface-scaffold.js +3 -0
- package/dist/browser/tab-navigator.js +4 -0
- package/dist/browser/text.js +3 -0
- package/dist/browser/toolbar-control-group.js +1 -0
- package/dist/browser/workbench.js +14 -0
- package/dist/catalog-resources.d.ts +48 -0
- package/dist/catalog-resources.js +22 -0
- package/dist/catalog-resources.js.map +1 -0
- package/dist/catalog.d.ts +92 -0
- package/dist/catalog.js +541 -0
- package/dist/catalog.js.map +1 -0
- package/dist/chip.d.ts +36 -0
- package/dist/chip.js +3 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunk-2GOCOLQL.js +270 -0
- package/dist/chunk-2GOCOLQL.js.map +1 -0
- package/dist/chunk-3CXRQAYT.js +288 -0
- package/dist/chunk-3CXRQAYT.js.map +1 -0
- package/dist/chunk-3RE2JMZU.js +48 -0
- package/dist/chunk-3RE2JMZU.js.map +1 -0
- package/dist/chunk-3SXWV2IR.js +295 -0
- package/dist/chunk-3SXWV2IR.js.map +1 -0
- package/dist/chunk-3XPGJUUQ.js +37 -0
- package/dist/chunk-3XPGJUUQ.js.map +1 -0
- package/dist/chunk-4Y4L5YEI.js +66 -0
- package/dist/chunk-4Y4L5YEI.js.map +1 -0
- package/dist/chunk-5BZBIRQG.js +452 -0
- package/dist/chunk-5BZBIRQG.js.map +1 -0
- package/dist/chunk-5D3WDMIK.js +71 -0
- package/dist/chunk-5D3WDMIK.js.map +1 -0
- package/dist/chunk-62VMNBV2.js +779 -0
- package/dist/chunk-62VMNBV2.js.map +1 -0
- package/dist/chunk-75I3SNUJ.js +44 -0
- package/dist/chunk-75I3SNUJ.js.map +1 -0
- package/dist/chunk-7QQ3HE47.js +17 -0
- package/dist/chunk-7QQ3HE47.js.map +1 -0
- package/dist/chunk-7TE6XDFI.js +91 -0
- package/dist/chunk-7TE6XDFI.js.map +1 -0
- package/dist/chunk-A7DYEERU.js +59 -0
- package/dist/chunk-A7DYEERU.js.map +1 -0
- package/dist/chunk-AN5IWMTM.js +24 -0
- package/dist/chunk-AN5IWMTM.js.map +1 -0
- package/dist/chunk-ARZ4RSQO.js +48 -0
- package/dist/chunk-ARZ4RSQO.js.map +1 -0
- package/dist/chunk-BJLXE56E.js +135 -0
- package/dist/chunk-BJLXE56E.js.map +1 -0
- package/dist/chunk-BYHGRKC3.js +44 -0
- package/dist/chunk-BYHGRKC3.js.map +1 -0
- package/dist/chunk-CEJ5FK6G.js +288 -0
- package/dist/chunk-CEJ5FK6G.js.map +1 -0
- package/dist/chunk-CVKIADIS.js +172 -0
- package/dist/chunk-CVKIADIS.js.map +1 -0
- package/dist/chunk-DQDTZE4W.js +70 -0
- package/dist/chunk-DQDTZE4W.js.map +1 -0
- package/dist/chunk-EFDCALR3.js +66 -0
- package/dist/chunk-EFDCALR3.js.map +1 -0
- package/dist/chunk-FL6J644M.js +116 -0
- package/dist/chunk-FL6J644M.js.map +1 -0
- package/dist/chunk-GS2QD3N7.js +14 -0
- package/dist/chunk-GS2QD3N7.js.map +1 -0
- package/dist/chunk-H45DAZBL.js +491 -0
- package/dist/chunk-H45DAZBL.js.map +1 -0
- package/dist/chunk-H7ZJEI3H.js +52 -0
- package/dist/chunk-H7ZJEI3H.js.map +1 -0
- package/dist/chunk-HFLGWMG3.js +138 -0
- package/dist/chunk-HFLGWMG3.js.map +1 -0
- package/dist/chunk-HFQDSSED.js +188 -0
- package/dist/chunk-HFQDSSED.js.map +1 -0
- package/dist/{chunk-56RJXPHG.js → chunk-I4SDIMFA.js} +7 -4
- package/dist/chunk-I4SDIMFA.js.map +1 -0
- package/dist/chunk-IM3GKYOG.js +202 -0
- package/dist/chunk-IM3GKYOG.js.map +1 -0
- package/dist/chunk-J3AWE5I4.js +50 -0
- package/dist/chunk-J3AWE5I4.js.map +1 -0
- package/dist/chunk-JOR5LGYE.js +55 -0
- package/dist/chunk-JOR5LGYE.js.map +1 -0
- package/dist/chunk-JZM3G6RT.js +149 -0
- package/dist/chunk-JZM3G6RT.js.map +1 -0
- package/dist/{chunk-7BR3DO2A.js → chunk-LAZLBC2Q.js} +14 -5
- package/dist/chunk-LAZLBC2Q.js.map +1 -0
- package/dist/chunk-LQKY5S4F.js +506 -0
- package/dist/chunk-LQKY5S4F.js.map +1 -0
- package/dist/chunk-LRAIS3YB.js +158 -0
- package/dist/chunk-LRAIS3YB.js.map +1 -0
- package/dist/chunk-MXNIVEVL.js +48 -0
- package/dist/chunk-MXNIVEVL.js.map +1 -0
- package/dist/chunk-NJZMR7HM.js +135 -0
- package/dist/chunk-NJZMR7HM.js.map +1 -0
- package/dist/chunk-NMWDHZVM.js +35 -0
- package/dist/chunk-NMWDHZVM.js.map +1 -0
- package/dist/{chunk-YGN7OMLT.js → chunk-NS2TBYM4.js} +8 -5
- package/dist/chunk-NS2TBYM4.js.map +1 -0
- package/dist/chunk-NVKRZ5DI.js +222 -0
- package/dist/chunk-NVKRZ5DI.js.map +1 -0
- package/dist/chunk-NVRJ7C3W.js +83 -0
- package/dist/chunk-NVRJ7C3W.js.map +1 -0
- package/dist/chunk-O27D24CA.js +250 -0
- package/dist/chunk-O27D24CA.js.map +1 -0
- package/dist/chunk-PQQQXJGV.js +58 -0
- package/dist/chunk-PQQQXJGV.js.map +1 -0
- package/dist/chunk-RRCD3A6G.js +139 -0
- package/dist/chunk-RRCD3A6G.js.map +1 -0
- package/dist/chunk-S3ECMF23.js +33 -0
- package/dist/chunk-S3ECMF23.js.map +1 -0
- package/dist/chunk-S4ZGTDSG.js +18 -0
- package/dist/chunk-S4ZGTDSG.js.map +1 -0
- package/dist/chunk-VHXHLZ6R.js +69 -0
- package/dist/chunk-VHXHLZ6R.js.map +1 -0
- package/dist/chunk-VIGVNDXZ.js +165 -0
- package/dist/chunk-VIGVNDXZ.js.map +1 -0
- package/dist/chunk-VR7MWD2X.js +91 -0
- package/dist/chunk-VR7MWD2X.js.map +1 -0
- package/dist/chunk-Y6KT7ZTR.js +109 -0
- package/dist/chunk-Y6KT7ZTR.js.map +1 -0
- package/dist/chunk-YLJ6X3AC.js +34 -0
- package/dist/chunk-YLJ6X3AC.js.map +1 -0
- package/dist/collapsible-panel.d.ts +137 -0
- package/dist/collapsible-panel.js +135 -0
- package/dist/collapsible-panel.js.map +1 -0
- package/dist/content-item.d.ts +99 -0
- package/dist/content-item.js +4 -0
- package/dist/content-item.js.map +1 -0
- package/dist/css-values.d.ts +112 -0
- package/dist/css-values.js +3 -0
- package/dist/css-values.js.map +1 -0
- package/dist/device-class.js +34 -6
- package/dist/device-class.js.map +1 -1
- package/dist/disclosure-arrow.d.ts +6 -1
- package/dist/disclosure-arrow.js +2 -1
- package/dist/empty-state.d.ts +5 -2
- package/dist/empty-state.js +2 -1
- package/dist/flex-alignment-4ms8ZbV8.d.ts +5 -0
- package/dist/floating-toolbar.d.ts +51 -0
- package/dist/floating-toolbar.js +3 -0
- package/dist/floating-toolbar.js.map +1 -0
- package/dist/grid.d.ts +57 -0
- package/dist/grid.js +5 -0
- package/dist/grid.js.map +1 -0
- package/dist/help-tags-register.d.ts +13 -0
- package/dist/help-tags-register.js +9 -0
- package/dist/help-tags-register.js.map +1 -0
- package/dist/index.d.ts +40 -18
- package/dist/index.js +44 -23
- package/dist/{menu-action-row.d.ts → list-action-row.d.ts} +21 -9
- package/dist/list-action-row.js +8 -0
- package/dist/list-action-row.js.map +1 -0
- package/dist/list-header.d.ts +98 -0
- package/dist/list-header.js +10 -0
- package/dist/list-header.js.map +1 -0
- package/dist/list-inset-control.d.ts +22 -0
- package/dist/list-inset-control.js +3 -0
- package/dist/list-inset-control.js.map +1 -0
- package/dist/list-inset-text.d.ts +30 -0
- package/dist/list-inset-text.js +4 -0
- package/dist/list-inset-text.js.map +1 -0
- package/dist/list-item.d.ts +62 -0
- package/dist/list-item.js +8 -0
- package/dist/list-item.js.map +1 -0
- package/dist/list.d.ts +63 -0
- package/dist/list.js +6 -0
- package/dist/list.js.map +1 -0
- package/dist/loading-spinner.d.ts +12 -2
- package/dist/loading-spinner.js +2 -1
- package/dist/lucide-icon.d.ts +14 -2
- package/dist/lucide-icon.js +2 -1
- package/dist/nav-stack-B1Qc2e5q.d.ts +101 -0
- package/dist/nav-stack.d.ts +13 -38
- package/dist/nav-stack.js +10 -1
- package/dist/pane.d.ts +116 -0
- package/dist/pane.js +4 -0
- package/dist/pane.js.map +1 -0
- package/dist/panel-toolbar-CL9tYOkh.d.ts +72 -0
- package/dist/popup-menu-register.d.ts +9 -0
- package/dist/popup-menu-register.js +244 -0
- package/dist/popup-menu-register.js.map +1 -0
- package/dist/popup-menu.d.ts +100 -0
- package/dist/popup-menu.js +3 -0
- package/dist/popup-menu.js.map +1 -0
- package/dist/resizable-region.d.ts +32 -3
- package/dist/resizable-region.js +1 -1
- package/dist/row.d.ts +48 -0
- package/dist/row.js +6 -0
- package/dist/row.js.map +1 -0
- package/dist/segmented-control.d.ts +12 -9
- package/dist/segmented-control.js +1 -2
- package/dist/select-register.d.ts +5 -1
- package/dist/select-register.js +247 -3
- package/dist/select-register.js.map +1 -1
- package/dist/select.d.ts +103 -8
- package/dist/select.js +3 -1
- package/dist/semantic-content-BbzjvSu9.d.ts +14 -0
- package/dist/semantic-tone-CdW013KF.d.ts +4 -0
- package/dist/sides-BPSWde0A.d.ts +4 -0
- package/dist/skeleton.d.ts +14 -7
- package/dist/skeleton.js +2 -1
- package/dist/spacer.d.ts +18 -0
- package/dist/spacer.js +4 -0
- package/dist/spacer.js.map +1 -0
- package/dist/split-view.d.ts +44 -7
- package/dist/split-view.js +124 -10
- package/dist/split-view.js.map +1 -1
- package/dist/state-banner.d.ts +21 -7
- package/dist/state-banner.js +3 -1
- package/dist/styles/app-tab.css +224 -0
- package/dist/styles/badge.css +118 -0
- package/dist/styles/catalog/components/catalog-example-stack.css +9 -0
- package/dist/styles/catalog/components/catalog-example.css +168 -0
- package/dist/styles/catalog/components/catalog-stage.css +55 -0
- package/dist/styles/catalog/components/catalog.css +50 -0
- package/dist/styles/catalog.css +5 -0
- package/dist/styles/chip.css +138 -0
- package/dist/styles/collapsible-panel.css +580 -0
- package/dist/styles/components/actions/floating-toolbar/floating-toolbar.css +119 -0
- package/dist/styles/components/actions/popup-menu/popup-menu.css +285 -0
- package/dist/styles/components/actions/toolbar/toolbar.css +417 -0
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +891 -0
- package/dist/styles/components/actions/toolbar-text/toolbar-text.css +171 -0
- package/dist/styles/components/collections/list/list.css +133 -0
- package/dist/styles/components/collections/list-action-row/list-action-row.css +258 -0
- package/dist/styles/components/collections/list-header/list-header.css +229 -0
- package/dist/styles/components/collections/list-inset-control/list-inset-control.css +30 -0
- package/dist/styles/components/collections/list-inset-text/list-inset-text.css +29 -0
- package/dist/styles/components/collections/list-item/list-item.css +255 -0
- package/dist/styles/components/data-display/value-table/value-table.css +105 -0
- package/dist/styles/components/feedback/badge/badge.css +118 -0
- package/dist/styles/components/feedback/chip/chip.css +138 -0
- package/dist/styles/components/feedback/empty-state/empty-state.css +47 -0
- package/dist/styles/components/feedback/loading-spinner/loading-spinner.css +25 -0
- package/dist/styles/components/feedback/skeleton/skeleton.css +92 -0
- package/dist/styles/components/feedback/state-banner/state-banner.css +248 -0
- package/dist/styles/components/forms/segmented-control/segmented-control.css +196 -0
- package/dist/styles/components/forms/select/select.css +454 -0
- package/dist/styles/components/forms/token-search-field/token-search-field.css +392 -0
- package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +580 -0
- package/dist/styles/components/layout/grid/grid.css +85 -0
- package/dist/styles/components/layout/pane/pane.css +294 -0
- package/dist/styles/components/layout/resizable-region/resizable-region.css +545 -0
- package/dist/styles/components/layout/row/row.css +111 -0
- package/dist/styles/components/layout/spacer/spacer.css +11 -0
- package/dist/styles/components/layout/split-view/split-view.css +146 -0
- package/dist/styles/components/layout/workbench/workbench.css +1075 -0
- package/dist/styles/components/media/lucide-icon/lucide-icon.css +15 -0
- package/dist/styles/components/navigation/app-tab/app-tab.css +376 -0
- package/dist/styles/components/navigation/disclosure-arrow/disclosure-arrow.css +23 -0
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +242 -0
- package/dist/styles/components/navigation/tab-bar/tab-bar.css +183 -0
- package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +237 -0
- package/dist/styles/components/surfaces/content-item/content-item.css +120 -0
- package/dist/styles/components/surfaces/sunken-panel/sunken-panel.css +34 -0
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +111 -0
- package/dist/styles/components/typography/text/text.css +158 -0
- package/dist/styles/content-item.css +120 -0
- package/dist/styles/document.css +33 -0
- package/dist/styles/floating-toolbar.css +119 -0
- package/dist/styles/foundation.css +187 -45
- package/dist/styles/grid.css +85 -0
- package/dist/styles/layout.css +3 -41
- package/dist/styles/list-action-row.css +258 -0
- package/dist/styles/list-header.css +229 -0
- package/dist/styles/list-inset-control.css +30 -0
- package/dist/styles/list-inset-text.css +29 -0
- package/dist/styles/list-item.css +255 -0
- package/dist/styles/list.css +133 -0
- package/dist/styles/loading-spinner.css +4 -0
- package/dist/styles/lucide-icon.css +9 -0
- package/dist/styles/nav-stack.css +180 -50
- package/dist/styles/pane.css +294 -0
- package/dist/styles/popup-menu.css +285 -0
- package/dist/styles/resizable-region.css +438 -4
- package/dist/styles/row.css +111 -0
- package/dist/styles/segmented-control.css +36 -9
- package/dist/styles/select.css +337 -21
- package/dist/styles/skeleton.css +64 -3
- package/dist/styles/spacer.css +11 -0
- package/dist/styles/split-view.css +114 -3
- package/dist/styles/state-banner.css +94 -19
- package/dist/styles/styles.css +13 -4
- package/dist/styles/sunken-panel.css +34 -0
- package/dist/styles/surface-scaffold.css +111 -0
- package/dist/styles/tab-bar.css +147 -9
- package/dist/styles/tab-navigator.css +237 -0
- package/dist/styles/text.css +158 -0
- package/dist/styles/token-search-field.css +167 -56
- package/dist/styles/toolbar-control-group.css +710 -30
- package/dist/styles/toolbar-text.css +139 -8
- package/dist/styles/toolbar.css +367 -11
- package/dist/styles/value-table.css +34 -4
- package/dist/styles/webawesome.css +388 -16
- package/dist/styles/workbench.css +988 -7
- package/dist/sunken-panel.d.ts +31 -0
- package/dist/sunken-panel.js +3 -0
- package/dist/sunken-panel.js.map +1 -0
- package/dist/surface-scaffold-register.d.ts +4 -0
- package/dist/surface-scaffold-register.js +59 -0
- package/dist/surface-scaffold-register.js.map +1 -0
- package/dist/surface-scaffold.d.ts +38 -0
- package/dist/surface-scaffold.js +3 -0
- package/dist/surface-scaffold.js.map +1 -0
- package/dist/tab-bar.d.ts +39 -6
- package/dist/tab-bar.js +1 -1
- package/dist/tab-navigator.d.ts +86 -0
- package/dist/tab-navigator.js +95 -0
- package/dist/tab-navigator.js.map +1 -0
- package/dist/text.d.ts +63 -0
- package/dist/text.js +3 -0
- package/dist/text.js.map +1 -0
- package/dist/token-search-field.d.ts +3 -43
- package/dist/token-search-field.js +2 -1
- package/dist/token-search-model-DTcTXWMS.d.ts +154 -0
- package/dist/token-search-model.d.ts +3 -0
- package/dist/token-search-model.js +3 -0
- package/dist/token-search-model.js.map +1 -0
- package/dist/toolbar-control-group.d.ts +89 -7
- package/dist/toolbar-control-group.js +3 -1
- package/dist/toolbar-text.d.ts +45 -9
- package/dist/toolbar-text.js +2 -1
- package/dist/toolbar.d.ts +59 -7
- package/dist/toolbar.js +1 -1
- package/dist/types-C9BubXfz.d.ts +117 -0
- package/dist/value-table.d.ts +11 -3
- package/dist/value-table.js +2 -1
- package/dist/webawesome.d.ts +8 -1
- package/dist/wire-catalog.d.ts +82 -0
- package/dist/wire-catalog.js +407 -0
- package/dist/wire-catalog.js.map +1 -0
- package/dist/wire-content-items.d.ts +11 -0
- package/dist/wire-content-items.js +114 -0
- package/dist/wire-content-items.js.map +1 -0
- package/dist/wire-nav-stack.d.ts +4 -1
- package/dist/wire-nav-stack.js +191 -15
- package/dist/wire-nav-stack.js.map +1 -1
- package/dist/wire-resizable-regions.d.ts +2 -1
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.d.ts +72 -0
- package/dist/wire-scroll-dividers.js +3 -0
- package/dist/wire-scroll-dividers.js.map +1 -0
- package/dist/wire-sidebar.d.ts +63 -0
- package/dist/wire-sidebar.js +231 -0
- package/dist/wire-sidebar.js.map +1 -0
- package/dist/wire-tab-bars.d.ts +19 -2
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.d.ts +11 -0
- package/dist/wire-tab-navigator.js +21 -0
- package/dist/wire-tab-navigator.js.map +1 -0
- package/dist/wire-token-search-fields.d.ts +65 -3
- package/dist/wire-token-search-fields.js +2 -1
- package/dist/wire-toolbar-visibility.d.ts +13 -0
- package/dist/wire-toolbar-visibility.js +3 -0
- package/dist/wire-toolbar-visibility.js.map +1 -0
- package/dist/wire-workbench.d.ts +116 -0
- package/dist/wire-workbench.js +6 -0
- package/dist/wire-workbench.js.map +1 -0
- package/dist/workbench.d.ts +246 -9
- package/dist/workbench.js +17 -15
- package/dist/workbench.js.map +1 -1
- package/docs/accessibility.md +497 -26
- package/docs/app-layouts.md +141 -10
- package/docs/apple-hig.md +1 -0
- package/docs/catalog.md +493 -0
- package/docs/collapsible-panel.md +382 -0
- package/docs/component-contract.md +736 -61
- package/docs/component-integration.md +75 -0
- package/docs/component-selection.md +617 -97
- package/docs/design/templates/empty-state/filtered-dark.svg +1 -0
- package/docs/design/templates/empty-state/filtered.svg +1 -0
- package/docs/design/templates/empty-state/with-action-dark.svg +1 -0
- package/docs/design/templates/empty-state/with-action.svg +1 -0
- package/docs/design/templates/empty-state-dark.svg +1 -0
- package/docs/design/templates/empty-state.svg +1 -0
- package/docs/design/templates/list/compact-dark.svg +1 -0
- package/docs/design/templates/list/compact.svg +1 -0
- package/docs/design/templates/list/stack-dark.svg +1 -0
- package/docs/design/templates/list/stack.svg +1 -0
- package/docs/design/templates/list-action-row/default-dark.svg +1 -0
- package/docs/design/templates/list-action-row/default.svg +1 -0
- package/docs/design/templates/list-action-row/selected-dark.svg +1 -0
- package/docs/design/templates/list-action-row/selected.svg +1 -0
- package/docs/design/templates/list-action-row-dark.svg +1 -0
- package/docs/design/templates/list-action-row.svg +1 -0
- package/docs/design/templates/list-dark.svg +1 -0
- package/docs/design/templates/list-header/action-dark.svg +1 -0
- package/docs/design/templates/list-header/action.svg +1 -0
- package/docs/design/templates/list-header/count-dark.svg +1 -0
- package/docs/design/templates/list-header/count.svg +1 -0
- package/docs/design/templates/list-header/inline-action-dark.svg +1 -0
- package/docs/design/templates/list-header/inline-action.svg +1 -0
- package/docs/design/templates/list-header/size-l-dark.svg +1 -0
- package/docs/design/templates/list-header/size-l.svg +1 -0
- package/docs/design/templates/list-header/size-m-dark.svg +1 -0
- package/docs/design/templates/list-header/size-m.svg +1 -0
- package/docs/design/templates/list-header/size-xl-dark.svg +1 -0
- package/docs/design/templates/list-header/size-xl.svg +1 -0
- package/docs/design/templates/list-header/size-xs-dark.svg +1 -0
- package/docs/design/templates/list-header/size-xs.svg +1 -0
- package/docs/design/templates/list-header/toggle-collapsed-dark.svg +1 -0
- package/docs/design/templates/list-header/toggle-collapsed.svg +1 -0
- package/docs/design/templates/list-header/toggle-expanded-dark.svg +1 -0
- package/docs/design/templates/list-header/toggle-expanded.svg +1 -0
- package/docs/design/templates/list-header-dark.svg +1 -0
- package/docs/design/templates/list-header.svg +1 -0
- package/docs/design/templates/list-item/default-dark.svg +1 -0
- package/docs/design/templates/list-item/default.svg +1 -0
- package/docs/design/templates/list-item/multiline-dark.svg +1 -0
- package/docs/design/templates/list-item/multiline.svg +1 -0
- package/docs/design/templates/list-item/selected-dark.svg +1 -0
- package/docs/design/templates/list-item/selected.svg +1 -0
- package/docs/design/templates/list-item/trailing-dark.svg +1 -0
- package/docs/design/templates/list-item/trailing.svg +1 -0
- package/docs/design/templates/list-item-dark.svg +1 -0
- package/docs/design/templates/list-item.svg +1 -0
- package/docs/design/templates/list.svg +1 -0
- package/docs/design/templates/segmented-control/equal-dark.svg +1 -0
- package/docs/design/templates/segmented-control/equal.svg +1 -0
- package/docs/design/templates/segmented-control/pill-small-dark.svg +1 -0
- package/docs/design/templates/segmented-control/pill-small.svg +1 -0
- package/docs/design/templates/segmented-control-dark.svg +1 -0
- package/docs/design/templates/segmented-control.svg +1 -0
- package/docs/design/templates/skeleton/avatar-dark.svg +1 -0
- package/docs/design/templates/skeleton/avatar.svg +1 -0
- package/docs/design/templates/skeleton/block-dark.svg +1 -0
- package/docs/design/templates/skeleton/block.svg +1 -0
- package/docs/design/templates/skeleton/lines-dark.svg +1 -0
- package/docs/design/templates/skeleton/lines.svg +1 -0
- package/docs/design/templates/skeleton-dark.svg +1 -0
- package/docs/design/templates/skeleton.svg +1 -0
- package/docs/design/templates/state-banner/danger-dark.svg +1 -0
- package/docs/design/templates/state-banner/danger.svg +1 -0
- package/docs/design/templates/state-banner/info-badge-dark.svg +1 -0
- package/docs/design/templates/state-banner/info-badge.svg +1 -0
- package/docs/design/templates/state-banner/info-dark.svg +1 -0
- package/docs/design/templates/state-banner/info.svg +1 -0
- package/docs/design/templates/state-banner/success-dark.svg +1 -0
- package/docs/design/templates/state-banner/success.svg +1 -0
- package/docs/design/templates/state-banner/warning-dark.svg +1 -0
- package/docs/design/templates/state-banner/warning.svg +1 -0
- package/docs/design/templates/state-banner-dark.svg +1 -0
- package/docs/design/templates/state-banner.svg +1 -0
- package/docs/design/templates/tab-bar/workspace-tabs-dark.svg +1 -0
- package/docs/design/templates/tab-bar/workspace-tabs.svg +1 -0
- package/docs/design/templates/tab-bar-dark.svg +1 -0
- package/docs/design/templates/tab-bar.svg +1 -0
- package/docs/design/templates/token-search-field/empty-dark.svg +1 -0
- package/docs/design/templates/token-search-field/empty.svg +1 -0
- package/docs/design/templates/token-search-field/tokens-dark.svg +1 -0
- package/docs/design/templates/token-search-field/tokens.svg +1 -0
- package/docs/design/templates/token-search-field-dark.svg +1 -0
- package/docs/design/templates/token-search-field.svg +1 -0
- package/docs/design/templates/toolbar/title-and-actions-dark.svg +1 -0
- package/docs/design/templates/toolbar/title-and-actions.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-320-dark.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-320.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-600-dark.svg +1 -0
- package/docs/design/templates/toolbar/width-visibility-600.svg +1 -0
- package/docs/design/templates/toolbar-control-group/borderless-single-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/borderless-single.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-buttons-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-buttons.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-brand-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-brand.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-danger-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-danger.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-neutral.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-success-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-success.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-warning-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/icon-tile-warning.svg +1 -0
- package/docs/design/templates/toolbar-control-group/push-buttons-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/push-buttons.svg +1 -0
- package/docs/design/templates/toolbar-control-group/with-text-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group/with-text.svg +1 -0
- package/docs/design/templates/toolbar-control-group-dark.svg +1 -0
- package/docs/design/templates/toolbar-control-group.svg +1 -0
- package/docs/design/templates/toolbar-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/dark-tone-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/dark-tone.svg +1 -0
- package/docs/design/templates/toolbar-text/default-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/default.svg +1 -0
- package/docs/design/templates/toolbar-text/large-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/large.svg +1 -0
- package/docs/design/templates/toolbar-text/small-dark.svg +1 -0
- package/docs/design/templates/toolbar-text/small.svg +1 -0
- package/docs/design/templates/toolbar-text-dark.svg +1 -0
- package/docs/design/templates/toolbar-text.svg +1 -0
- package/docs/design/templates/toolbar.svg +1 -0
- package/docs/design/templates/value-table/details-dark.svg +1 -0
- package/docs/design/templates/value-table/details.svg +1 -0
- package/docs/design/templates/value-table-dark.svg +1 -0
- package/docs/design/templates/value-table.svg +1 -0
- package/docs/design/templates.md +140 -0
- package/docs/design-philosophy.md +48 -20
- package/docs/device-class.md +10 -9
- package/docs/document-baseline.md +42 -0
- package/docs/examples/application-ui-profile.json +60 -0
- package/docs/examples/command-palette-adapter.tsx +69 -17
- package/docs/examples/component-catalog-extension.json +52 -0
- package/docs/examples/component-composition-extension.json +80 -0
- package/docs/layout.md +601 -59
- package/docs/nav-stack.md +154 -14
- package/docs/recipes.md +142 -55
- package/docs/split-view.md +77 -6
- package/docs/sunken-panel.md +93 -0
- package/docs/surface-scaffold.md +74 -0
- package/docs/tab-navigator.md +210 -0
- package/docs/type-contracts.md +135 -0
- package/docs/ui-analyzer.md +404 -0
- package/docs/ui-doctor.md +202 -0
- package/docs/ui-evaluator.md +139 -0
- package/docs/ux-demo.md +46 -16
- package/docs/webawesome-theme.md +188 -16
- package/docs/workbench.md +621 -12
- package/doctor/cli.mjs +120 -0
- package/doctor/component-style-checks.mjs +457 -0
- package/doctor/config.schema.json +94 -0
- package/doctor/eslint-diagnostics.d.mts +24 -0
- package/doctor/eslint-diagnostics.mjs +24 -0
- package/doctor/index.d.mts +122 -0
- package/doctor/index.mjs +1403 -0
- package/doctor/report.schema.json +118 -0
- package/evaluator/cli.mjs +89 -0
- package/evaluator/index.d.mts +90 -0
- package/evaluator/index.mjs +1203 -0
- package/evaluator/report.schema.json +152 -0
- package/llms.txt +510 -49
- package/package.json +266 -44
- package/scripts/component-catalog-extension-validation.mjs +28 -0
- package/traversal-exclusions.mjs +27 -0
- package/ux-demo/recipes/app-shell.tsx +205 -17
- package/ux-demo/recipes/collapsible-sidebar.tsx +260 -0
- package/ux-demo/recipes/compact-toolbar.tsx +135 -14
- package/ux-demo/recipes/composer-form.tsx +133 -21
- package/ux-demo/recipes/list-detail-dialog.tsx +286 -0
- package/ux-demo/recipes/list-workspace-states.tsx +183 -11
- package/ux-demo/recipes/loaders.ts +15 -5
- package/ux-demo/recipes/loading-inspector.tsx +204 -0
- package/ux-demo/recipes/mount-recipe.ts +28 -10
- package/ux-demo/recipes/navigation-sidebar.tsx +139 -13
- package/ux-demo/recipes/navigation-stack.tsx +81 -26
- package/ux-demo/recipes/types.ts +23 -2
- package/ux-demo/recipes/workspace-header.tsx +86 -5
- package/dist/browser/menu-action-row.js +0 -4
- package/dist/browser/menu-item.js +0 -4
- package/dist/browser/panel-header.js +0 -7
- package/dist/chunk-2RJBFNB6.js +0 -172
- package/dist/chunk-2RJBFNB6.js.map +0 -1
- package/dist/chunk-2Z5TWHKQ.js +0 -34
- package/dist/chunk-2Z5TWHKQ.js.map +0 -1
- package/dist/chunk-3YD6ZNRA.js +0 -34
- package/dist/chunk-3YD6ZNRA.js.map +0 -1
- package/dist/chunk-55DATV3A.js +0 -10
- package/dist/chunk-55DATV3A.js.map +0 -1
- package/dist/chunk-56RJXPHG.js.map +0 -1
- package/dist/chunk-7BR3DO2A.js.map +0 -1
- package/dist/chunk-7LDCTU7D.js +0 -134
- package/dist/chunk-7LDCTU7D.js.map +0 -1
- package/dist/chunk-AQNKJRFH.js +0 -79
- package/dist/chunk-AQNKJRFH.js.map +0 -1
- package/dist/chunk-B24C4A6T.js +0 -22
- package/dist/chunk-B24C4A6T.js.map +0 -1
- package/dist/chunk-BLK3UEEI.js +0 -23
- package/dist/chunk-BLK3UEEI.js.map +0 -1
- package/dist/chunk-BNQ2YDV4.js +0 -20
- package/dist/chunk-BNQ2YDV4.js.map +0 -1
- package/dist/chunk-DAFFDO33.js +0 -14
- package/dist/chunk-DAFFDO33.js.map +0 -1
- package/dist/chunk-H6URQGJI.js +0 -42
- package/dist/chunk-H6URQGJI.js.map +0 -1
- package/dist/chunk-I7INRJO4.js +0 -17
- package/dist/chunk-I7INRJO4.js.map +0 -1
- package/dist/chunk-LC3YSAZC.js +0 -39
- package/dist/chunk-LC3YSAZC.js.map +0 -1
- package/dist/chunk-M5JRI6MN.js +0 -27
- package/dist/chunk-M5JRI6MN.js.map +0 -1
- package/dist/chunk-MBR3TYNL.js +0 -14
- package/dist/chunk-MBR3TYNL.js.map +0 -1
- package/dist/chunk-MFKMHK5W.js +0 -10
- package/dist/chunk-MFKMHK5W.js.map +0 -1
- package/dist/chunk-MQIZAD4A.js +0 -227
- package/dist/chunk-MQIZAD4A.js.map +0 -1
- package/dist/chunk-PONXLV5U.js +0 -19
- package/dist/chunk-PONXLV5U.js.map +0 -1
- package/dist/chunk-RUNWEPR4.js +0 -10
- package/dist/chunk-RUNWEPR4.js.map +0 -1
- package/dist/chunk-W2FK7ZNY.js +0 -26
- package/dist/chunk-W2FK7ZNY.js.map +0 -1
- package/dist/chunk-WVPYVDXY.js +0 -15
- package/dist/chunk-WVPYVDXY.js.map +0 -1
- package/dist/chunk-YGN7OMLT.js.map +0 -1
- package/dist/chunk-YKUUZPED.js +0 -24
- package/dist/chunk-YKUUZPED.js.map +0 -1
- package/dist/menu-action-row.js +0 -5
- package/dist/menu-action-row.js.map +0 -1
- package/dist/menu-header.d.ts +0 -43
- package/dist/menu-header.js +0 -7
- package/dist/menu-header.js.map +0 -1
- package/dist/menu-item.d.ts +0 -33
- package/dist/menu-item.js +0 -5
- package/dist/menu-item.js.map +0 -1
- package/dist/panel-header.d.ts +0 -36
- package/dist/panel-header.js +0 -7
- package/dist/panel-header.js.map +0 -1
- package/dist/styles/menu-action-row.css +0 -160
- package/dist/styles/menu-header.css +0 -160
- package/dist/styles/menu-item.css +0 -123
- package/dist/styles/panel-header.css +0 -64
- package/dist/styles/tab-scaffold.css +0 -84
- package/dist/tab-scaffold.d.ts +0 -30
- package/dist/tab-scaffold.js +0 -16
- package/dist/tab-scaffold.js.map +0 -1
- package/dist/wire-tab-scaffold.d.ts +0 -11
- package/dist/wire-tab-scaffold.js +0 -16
- package/dist/wire-tab-scaffold.js.map +0 -1
- package/docs/tab-scaffold.md +0 -41
- package/ux-demo/recipes/master-detail-dialog.tsx +0 -45
- package/ux-demo/recipes/recipes.css +0 -355
|
@@ -1,43 +1,164 @@
|
|
|
1
1
|
import '@kerfjs/ui/layout.css';
|
|
2
2
|
import '@kerfjs/ui/select/register';
|
|
3
|
-
import './recipes.css';
|
|
4
3
|
|
|
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';
|
|
5
8
|
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
6
9
|
import { SegmentedControl } from '@kerfjs/ui/segmented-control';
|
|
7
10
|
import { Select } from '@kerfjs/ui/select';
|
|
11
|
+
import { Text } from '@kerfjs/ui/text';
|
|
8
12
|
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
9
13
|
import { ToolbarControlGroup } from '@kerfjs/ui/toolbar-control-group';
|
|
10
14
|
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
11
15
|
import { signal } from 'kerfjs';
|
|
12
16
|
import { Filter, MoreHorizontal, RefreshCw } from 'lucide';
|
|
13
17
|
|
|
14
|
-
import type { RecipeFactory } from './types.js';
|
|
18
|
+
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
19
|
+
|
|
20
|
+
const guide = [
|
|
21
|
+
['ToolbarControlGroup', 'Related commands or pressed tools.'],
|
|
22
|
+
['SegmentedControl', 'A few visible exclusive choices.'],
|
|
23
|
+
['Select', 'A longer controlled value list.'],
|
|
24
|
+
['Ordinary button', 'One independent command.'],
|
|
25
|
+
] as const;
|
|
26
|
+
|
|
27
|
+
export const presentation: RecipePresentation = {
|
|
28
|
+
viewport: {
|
|
29
|
+
width: 'full',
|
|
30
|
+
frame: 'solid',
|
|
31
|
+
surface: 'default',
|
|
32
|
+
overflow: 'hidden',
|
|
33
|
+
shadow: true,
|
|
34
|
+
},
|
|
35
|
+
note: 'The recipe owns control semantics and wrapping. The app owns values, actions, persistence, and responsive priority.',
|
|
36
|
+
};
|
|
15
37
|
|
|
16
38
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
17
39
|
const view = signal('list');
|
|
18
40
|
const sort = signal('updated');
|
|
19
41
|
const filtered = signal(false);
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
42
|
+
const device = deviceClass();
|
|
43
|
+
const render = () => (
|
|
44
|
+
<section data-recipe="recipe-compact-toolbar" aria-label="Task workspace">
|
|
45
|
+
<List gap="l" controlInsets="b">
|
|
46
|
+
<Toolbar
|
|
47
|
+
label="Task workspace controls"
|
|
48
|
+
responsive="stack"
|
|
49
|
+
responsiveAt="compact"
|
|
50
|
+
leading={<ToolbarText text="Tasks" size="small" />}
|
|
51
|
+
center={
|
|
52
|
+
<ToolbarControlGroup>
|
|
53
|
+
<SegmentedControl<string>
|
|
54
|
+
id="recipe-view"
|
|
55
|
+
label="View"
|
|
56
|
+
value={view.value}
|
|
57
|
+
action="recipe-action"
|
|
58
|
+
appearance="toolbar"
|
|
59
|
+
shape="pill"
|
|
60
|
+
size="small"
|
|
61
|
+
choices={[
|
|
62
|
+
{ value: 'list', label: 'List' },
|
|
63
|
+
{ value: 'board', label: 'Board' },
|
|
64
|
+
{ value: 'timeline', label: 'Timeline' },
|
|
65
|
+
]}
|
|
66
|
+
/>
|
|
67
|
+
</ToolbarControlGroup>
|
|
68
|
+
}
|
|
69
|
+
trailing={
|
|
70
|
+
<>
|
|
71
|
+
<ToolbarControlGroup single focusRing="outline">
|
|
72
|
+
<Select<string>
|
|
73
|
+
name="recipe-sort"
|
|
74
|
+
value={sort.value}
|
|
75
|
+
ariaLabel="Sort tasks"
|
|
76
|
+
fitMenu
|
|
77
|
+
presentation="toolbar-borderless"
|
|
78
|
+
size="compact"
|
|
79
|
+
focusRingOwner="group"
|
|
80
|
+
choices={[
|
|
81
|
+
{ value: 'updated', label: 'Recently updated' },
|
|
82
|
+
{ value: 'priority', label: 'Priority' },
|
|
83
|
+
{ value: 'owner', label: 'Owner' },
|
|
84
|
+
{ value: 'created', label: 'Created date' },
|
|
85
|
+
]}
|
|
86
|
+
/>
|
|
87
|
+
</ToolbarControlGroup>
|
|
88
|
+
<ToolbarControlGroup label="Task actions" buttonAppearance="push">
|
|
89
|
+
<button
|
|
90
|
+
type="button"
|
|
91
|
+
aria-label="Toggle filters"
|
|
92
|
+
aria-pressed={String(filtered.value)}
|
|
93
|
+
data-action="recipe-action"
|
|
94
|
+
data-recipe-command="filter"
|
|
95
|
+
>
|
|
96
|
+
<LucideIcon icon={Filter} name="filter" />
|
|
97
|
+
</button>
|
|
98
|
+
<button
|
|
99
|
+
type="button"
|
|
100
|
+
aria-label="Refresh tasks"
|
|
101
|
+
data-action="recipe-action"
|
|
102
|
+
data-recipe-command="refresh"
|
|
103
|
+
>
|
|
104
|
+
<LucideIcon icon={RefreshCw} name="refresh-cw" />
|
|
105
|
+
</button>
|
|
106
|
+
</ToolbarControlGroup>
|
|
107
|
+
<ToolbarControlGroup label="More task actions" single>
|
|
108
|
+
<button
|
|
109
|
+
type="button"
|
|
110
|
+
aria-label="More task actions"
|
|
111
|
+
data-action="recipe-action"
|
|
112
|
+
data-recipe-command="more"
|
|
113
|
+
>
|
|
114
|
+
<LucideIcon icon={MoreHorizontal} name="more-horizontal" />
|
|
115
|
+
</button>
|
|
116
|
+
</ToolbarControlGroup>
|
|
117
|
+
</>
|
|
118
|
+
}
|
|
119
|
+
/>
|
|
120
|
+
<Grid
|
|
121
|
+
columns={
|
|
122
|
+
device.value.compact ? 1 : device.value.atLeast('desktop') ? 4 : 2
|
|
123
|
+
}
|
|
124
|
+
gap="none"
|
|
125
|
+
>
|
|
126
|
+
{guide.map(([name, use]) => (
|
|
127
|
+
<ListInsetText>
|
|
128
|
+
<List gap="2xs">
|
|
129
|
+
<Text variant="span">
|
|
130
|
+
<strong>{name}</strong>
|
|
131
|
+
</Text>
|
|
132
|
+
<Text variant="span" tone="quiet" size="compact">
|
|
133
|
+
{use}
|
|
134
|
+
</Text>
|
|
135
|
+
</List>
|
|
136
|
+
</ListInsetText>
|
|
137
|
+
))}
|
|
138
|
+
</Grid>
|
|
139
|
+
</List>
|
|
140
|
+
</section>
|
|
141
|
+
);
|
|
30
142
|
return {
|
|
31
143
|
render,
|
|
32
144
|
action(command, element) {
|
|
33
145
|
const value = element.dataset.segmentValue;
|
|
34
146
|
if (value) view.value = value;
|
|
35
147
|
if (command === 'filter') filtered.value = !filtered.value;
|
|
36
|
-
announce(
|
|
148
|
+
announce(
|
|
149
|
+
value
|
|
150
|
+
? `View: ${value}`
|
|
151
|
+
: command === 'filter'
|
|
152
|
+
? `Filters ${filtered.value ? 'on' : 'off'}`
|
|
153
|
+
: `${command} requested`,
|
|
154
|
+
);
|
|
37
155
|
},
|
|
38
156
|
change(element) {
|
|
39
157
|
const value = (element as HTMLElement & { value?: string }).value;
|
|
40
|
-
if (element.getAttribute('name') === 'recipe-sort' && value) {
|
|
158
|
+
if (element.getAttribute('name') === 'recipe-sort' && value) {
|
|
159
|
+
sort.value = value;
|
|
160
|
+
announce(`Sort: ${value}`);
|
|
161
|
+
}
|
|
41
162
|
},
|
|
42
163
|
};
|
|
43
164
|
};
|
|
@@ -4,19 +4,40 @@ import '@kerfjs/ui/webawesome.css';
|
|
|
4
4
|
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
5
5
|
import '@awesome.me/webawesome/dist/components/input/input.js';
|
|
6
6
|
import '@awesome.me/webawesome/dist/components/textarea/textarea.js';
|
|
7
|
-
import './recipes.css';
|
|
8
7
|
|
|
9
|
-
import {
|
|
8
|
+
import { Spacer } from '@kerfjs/ui';
|
|
9
|
+
import { List } from '@kerfjs/ui/list';
|
|
10
|
+
import { ListInsetText } from '@kerfjs/ui/list-inset-text';
|
|
11
|
+
import { Row } from '@kerfjs/ui/row';
|
|
10
12
|
import { Select } from '@kerfjs/ui/select';
|
|
11
13
|
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
14
|
+
import { Text } from '@kerfjs/ui/text';
|
|
15
|
+
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
16
|
+
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
12
17
|
import { signal } from 'kerfjs';
|
|
13
18
|
|
|
14
|
-
import type { RecipeFactory } from './types.js';
|
|
19
|
+
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
20
|
+
|
|
21
|
+
export const presentation: RecipePresentation = {
|
|
22
|
+
viewport: {
|
|
23
|
+
width: 'medium',
|
|
24
|
+
frame: 'solid',
|
|
25
|
+
surface: 'default',
|
|
26
|
+
overflow: 'hidden',
|
|
27
|
+
shadow: true,
|
|
28
|
+
},
|
|
29
|
+
note: 'The recipe owns field, message, and action rhythm. The app owns validation rules, draft persistence, permissions, and transport.',
|
|
30
|
+
};
|
|
15
31
|
|
|
16
32
|
type ValueField = HTMLElement & { value: string };
|
|
17
33
|
|
|
18
|
-
const syncControlledFieldValues = (
|
|
19
|
-
|
|
34
|
+
const syncControlledFieldValues = (
|
|
35
|
+
action: HTMLElement,
|
|
36
|
+
values: Record<string, string>,
|
|
37
|
+
) => {
|
|
38
|
+
const form = action.closest<HTMLElement>(
|
|
39
|
+
'[data-recipe="recipe-composer-form"]',
|
|
40
|
+
);
|
|
20
41
|
if (!form) return;
|
|
21
42
|
for (const [name, value] of Object.entries(values)) {
|
|
22
43
|
const field = form.querySelector<ValueField>(`[name="${name}"]`);
|
|
@@ -26,20 +47,101 @@ const syncControlledFieldValues = (action: HTMLElement, values: Record<string, s
|
|
|
26
47
|
|
|
27
48
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
28
49
|
const title = signal('');
|
|
29
|
-
const body = signal(
|
|
50
|
+
const body = signal(
|
|
51
|
+
'The tablet layout now keeps navigation, content, and inspector focus order aligned.',
|
|
52
|
+
);
|
|
30
53
|
const audience = signal('team');
|
|
31
54
|
const status = signal<'idle' | 'error' | 'saved'>('idle');
|
|
32
|
-
const render = () =>
|
|
33
|
-
<
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
<
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
55
|
+
const render = () => (
|
|
56
|
+
<form
|
|
57
|
+
data-recipe="recipe-composer-form"
|
|
58
|
+
aria-labelledby="recipe-composer-title"
|
|
59
|
+
aria-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
|
+
<wa-input
|
|
98
|
+
name="recipe-title"
|
|
99
|
+
label="Update title"
|
|
100
|
+
hint="Summarize the outcome in one line."
|
|
101
|
+
required
|
|
102
|
+
value={title.value}
|
|
103
|
+
/>
|
|
104
|
+
<wa-textarea
|
|
105
|
+
name="recipe-body"
|
|
106
|
+
label="Details"
|
|
107
|
+
hint="Include decisions, owners, and the next checkpoint."
|
|
108
|
+
rows="5"
|
|
109
|
+
maxlength="400"
|
|
110
|
+
with-count
|
|
111
|
+
value={body.value}
|
|
112
|
+
/>
|
|
113
|
+
<Select<string>
|
|
114
|
+
name="recipe-audience"
|
|
115
|
+
value={audience.value}
|
|
116
|
+
label="Audience"
|
|
117
|
+
choices={[
|
|
118
|
+
{ value: 'team', label: 'Workspace team' },
|
|
119
|
+
{ value: 'reviewers', label: 'Reviewers' },
|
|
120
|
+
{ value: 'organization', label: 'Entire organization' },
|
|
121
|
+
]}
|
|
122
|
+
/>
|
|
123
|
+
</List>
|
|
124
|
+
<Row gap="xs" wrap controlInsets="rl">
|
|
125
|
+
<Spacer flex />
|
|
126
|
+
<wa-button
|
|
127
|
+
appearance="outlined"
|
|
128
|
+
data-action="recipe-action"
|
|
129
|
+
data-recipe-command="reset"
|
|
130
|
+
>
|
|
131
|
+
Reset
|
|
132
|
+
</wa-button>
|
|
133
|
+
<wa-button
|
|
134
|
+
variant="brand"
|
|
135
|
+
appearance="accent"
|
|
136
|
+
data-action="recipe-action"
|
|
137
|
+
data-recipe-command="submit"
|
|
138
|
+
>
|
|
139
|
+
Publish update
|
|
140
|
+
</wa-button>
|
|
141
|
+
</Row>
|
|
142
|
+
</List>
|
|
143
|
+
</form>
|
|
144
|
+
);
|
|
43
145
|
return {
|
|
44
146
|
render,
|
|
45
147
|
action(command, element) {
|
|
@@ -47,17 +149,27 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
47
149
|
title.value = '';
|
|
48
150
|
body.value = '';
|
|
49
151
|
status.value = 'idle';
|
|
50
|
-
syncControlledFieldValues(element, {
|
|
152
|
+
syncControlledFieldValues(element, {
|
|
153
|
+
'recipe-title': title.value,
|
|
154
|
+
'recipe-body': body.value,
|
|
155
|
+
});
|
|
51
156
|
announce('Draft reset');
|
|
52
157
|
return;
|
|
53
158
|
}
|
|
54
|
-
if (command === 'submit') {
|
|
159
|
+
if (command === 'submit') {
|
|
160
|
+
status.value = title.value.trim() ? 'saved' : 'error';
|
|
161
|
+
announce(
|
|
162
|
+
status.value === 'saved' ? 'Update published' : 'Title required',
|
|
163
|
+
);
|
|
164
|
+
}
|
|
55
165
|
},
|
|
56
166
|
change(element) {
|
|
57
|
-
const value =
|
|
167
|
+
const value =
|
|
168
|
+
(element as HTMLElement & { value?: string | null }).value ?? '';
|
|
58
169
|
if (element.getAttribute('name') === 'recipe-title') title.value = value;
|
|
59
170
|
if (element.getAttribute('name') === 'recipe-body') body.value = value;
|
|
60
|
-
if (element.getAttribute('name') === 'recipe-audience')
|
|
171
|
+
if (element.getAttribute('name') === 'recipe-audience')
|
|
172
|
+
audience.value = value;
|
|
61
173
|
},
|
|
62
174
|
};
|
|
63
175
|
};
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import '@kerfjs/ui/surface-scaffold/register';
|
|
2
|
+
import '@kerfjs/ui/layout.css';
|
|
3
|
+
import '@kerfjs/ui/nav-stack.css';
|
|
4
|
+
import '@kerfjs/ui/split-view.css';
|
|
5
|
+
import '@kerfjs/ui/webawesome.css';
|
|
6
|
+
import '@awesome.me/webawesome/dist/components/button/button.js';
|
|
7
|
+
import '@awesome.me/webawesome/dist/components/dialog/dialog.js';
|
|
8
|
+
|
|
9
|
+
import { remify } from '@kerfjs/ui/css-values';
|
|
10
|
+
import { deviceClass } from '@kerfjs/ui/device-class';
|
|
11
|
+
import { List } from '@kerfjs/ui/list';
|
|
12
|
+
import { ListItem } from '@kerfjs/ui/list-item';
|
|
13
|
+
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
14
|
+
import { Pane } from '@kerfjs/ui/pane';
|
|
15
|
+
import { Row } from '@kerfjs/ui/row';
|
|
16
|
+
import { Spacer } from '@kerfjs/ui/spacer';
|
|
17
|
+
import { SplitView } from '@kerfjs/ui/split-view';
|
|
18
|
+
import { DialogSurface } from '@kerfjs/ui/surface-scaffold';
|
|
19
|
+
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
20
|
+
import { ToolbarControlGroup } from '@kerfjs/ui/toolbar-control-group';
|
|
21
|
+
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
22
|
+
import { ValueTable, ValueTableRow } from '@kerfjs/ui/value-table';
|
|
23
|
+
import { signal } from 'kerfjs';
|
|
24
|
+
import { ChevronRight, FileText, X } from 'lucide';
|
|
25
|
+
|
|
26
|
+
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
27
|
+
|
|
28
|
+
const records = {
|
|
29
|
+
alpha: {
|
|
30
|
+
name: 'Northstar migration',
|
|
31
|
+
owner: 'Mara Chen',
|
|
32
|
+
state: 'In review',
|
|
33
|
+
updated: 'Today, 09:42',
|
|
34
|
+
},
|
|
35
|
+
beta: {
|
|
36
|
+
name: 'Tablet navigation',
|
|
37
|
+
owner: 'Sam Rivera',
|
|
38
|
+
state: 'Ready',
|
|
39
|
+
updated: 'Yesterday, 16:20',
|
|
40
|
+
},
|
|
41
|
+
gamma: {
|
|
42
|
+
name: 'Contrast audit',
|
|
43
|
+
owner: 'Inez Okafor',
|
|
44
|
+
state: 'Blocked',
|
|
45
|
+
updated: 'Monday, 11:05',
|
|
46
|
+
},
|
|
47
|
+
} as const;
|
|
48
|
+
|
|
49
|
+
type RecordId = keyof typeof records;
|
|
50
|
+
|
|
51
|
+
interface RecipeDialogElement extends HTMLElement {
|
|
52
|
+
open: boolean;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export const presentation: RecipePresentation = {
|
|
56
|
+
viewport: { layout: 'grid', width: 'full' },
|
|
57
|
+
note: 'On roomy devices the dialog body is a workbench: a full-height list sidebar with its own toolbar beside a full-height detail column that carries the primary title, close control, and record actions. Compact devices get a full-screen sheet that drills from the list into the detail. Web Awesome owns modal focus and Escape; DialogSurface owns dialog geometry; SplitView owns the panes and the compact drill-down. The app owns open state, selection, and record actions.',
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export const createRecipe: RecipeFactory = (announce) => {
|
|
61
|
+
const selected = signal<RecordId>('alpha');
|
|
62
|
+
// Compact devices drill from the list into the detail; this flag is the
|
|
63
|
+
// pushed detail view. Roomy devices show both panes side by side.
|
|
64
|
+
const detailOpen = signal(false);
|
|
65
|
+
const open = { value: false };
|
|
66
|
+
const device = deviceClass();
|
|
67
|
+
|
|
68
|
+
const projectRows = (compact: boolean) => (
|
|
69
|
+
<section aria-label="Projects">
|
|
70
|
+
{Object.entries(records).map(([id, record]) => (
|
|
71
|
+
<ListItem
|
|
72
|
+
action="recipe-action"
|
|
73
|
+
itemId={id}
|
|
74
|
+
label={record.name}
|
|
75
|
+
description={`${record.owner} · ${record.state}`}
|
|
76
|
+
icon={<LucideIcon icon={FileText} name="file-text" />}
|
|
77
|
+
trailing={
|
|
78
|
+
compact ? (
|
|
79
|
+
<LucideIcon icon={ChevronRight} name="chevron-right" />
|
|
80
|
+
) : undefined
|
|
81
|
+
}
|
|
82
|
+
selected={!compact && selected.value === id}
|
|
83
|
+
multiline
|
|
84
|
+
/>
|
|
85
|
+
))}
|
|
86
|
+
</section>
|
|
87
|
+
);
|
|
88
|
+
|
|
89
|
+
const recordActions = () => (
|
|
90
|
+
<Row gap="xs" wrap controlInsets="trbl">
|
|
91
|
+
<Spacer flex />
|
|
92
|
+
<wa-button
|
|
93
|
+
appearance="outlined"
|
|
94
|
+
data-action="recipe-action"
|
|
95
|
+
data-recipe-command="archive"
|
|
96
|
+
>
|
|
97
|
+
Archive
|
|
98
|
+
</wa-button>
|
|
99
|
+
<wa-button
|
|
100
|
+
variant="brand"
|
|
101
|
+
appearance="accent"
|
|
102
|
+
data-action="recipe-action"
|
|
103
|
+
data-recipe-command="open-record"
|
|
104
|
+
>
|
|
105
|
+
Open project
|
|
106
|
+
</wa-button>
|
|
107
|
+
</Row>
|
|
108
|
+
);
|
|
109
|
+
|
|
110
|
+
// Roomy: a workbench. The list is a full-height sidebar with its own top
|
|
111
|
+
// toolbar; the detail column carries the dialog's primary title, the close
|
|
112
|
+
// control, and the record actions, and runs the full dialog height too.
|
|
113
|
+
const sidebar = () => (
|
|
114
|
+
<Pane
|
|
115
|
+
label="Recent projects"
|
|
116
|
+
header={
|
|
117
|
+
<Toolbar
|
|
118
|
+
label="Recent projects"
|
|
119
|
+
leading={<ToolbarText text="Recent projects" />}
|
|
120
|
+
/>
|
|
121
|
+
}
|
|
122
|
+
>
|
|
123
|
+
<List controlInsets="tb">{projectRows(false)}</List>
|
|
124
|
+
</Pane>
|
|
125
|
+
);
|
|
126
|
+
|
|
127
|
+
const detailColumn = () => {
|
|
128
|
+
const record = records[selected.value];
|
|
129
|
+
return (
|
|
130
|
+
<Pane
|
|
131
|
+
label={record.name}
|
|
132
|
+
header={
|
|
133
|
+
<Toolbar
|
|
134
|
+
label="Project details"
|
|
135
|
+
leading={
|
|
136
|
+
<ToolbarText
|
|
137
|
+
text={record.name}
|
|
138
|
+
size="xlarge"
|
|
139
|
+
id="recipe-project-title"
|
|
140
|
+
headingLevel={2}
|
|
141
|
+
/>
|
|
142
|
+
}
|
|
143
|
+
trailing={
|
|
144
|
+
<ToolbarControlGroup appearance="borderless" single>
|
|
145
|
+
<button type="button" aria-label="Close" data-dialog="close">
|
|
146
|
+
<LucideIcon icon={X} name="x" />
|
|
147
|
+
</button>
|
|
148
|
+
</ToolbarControlGroup>
|
|
149
|
+
}
|
|
150
|
+
/>
|
|
151
|
+
}
|
|
152
|
+
footer={recordActions()}
|
|
153
|
+
>
|
|
154
|
+
<List controlInsets="tb">
|
|
155
|
+
<ValueTable label="Project details">
|
|
156
|
+
<ValueTableRow label="Owner" value={record.owner} />
|
|
157
|
+
<ValueTableRow label="Status" value={record.state} />
|
|
158
|
+
<ValueTableRow label="Updated" value={record.updated} />
|
|
159
|
+
</ValueTable>
|
|
160
|
+
</List>
|
|
161
|
+
</Pane>
|
|
162
|
+
);
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
const compactDetail = () => {
|
|
166
|
+
const record = records[selected.value];
|
|
167
|
+
return (
|
|
168
|
+
<List>
|
|
169
|
+
<ValueTable label="Project details">
|
|
170
|
+
<ValueTableRow label="Owner" value={record.owner} />
|
|
171
|
+
<ValueTableRow label="Status" value={record.state} />
|
|
172
|
+
<ValueTableRow label="Updated" value={record.updated} />
|
|
173
|
+
</ValueTable>
|
|
174
|
+
</List>
|
|
175
|
+
);
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
const render = () => {
|
|
179
|
+
const compact = device.value.compact;
|
|
180
|
+
return (
|
|
181
|
+
<section
|
|
182
|
+
data-recipe="recipe-list-detail-dialog"
|
|
183
|
+
aria-label="Project details dialog"
|
|
184
|
+
>
|
|
185
|
+
<Row hAlign="center">
|
|
186
|
+
<DialogSurface
|
|
187
|
+
size="large"
|
|
188
|
+
presentation={compact ? 'fullscreen' : 'modal'}
|
|
189
|
+
viewportGutter={remify(16)}
|
|
190
|
+
maxHeight="viewport"
|
|
191
|
+
bodyInset="none"
|
|
192
|
+
footerInset="comfortable"
|
|
193
|
+
>
|
|
194
|
+
<wa-button
|
|
195
|
+
variant="brand"
|
|
196
|
+
appearance="accent"
|
|
197
|
+
data-action="recipe-action"
|
|
198
|
+
data-recipe-command="open"
|
|
199
|
+
>
|
|
200
|
+
Open project details
|
|
201
|
+
</wa-button>
|
|
202
|
+
{compact ? (
|
|
203
|
+
<wa-dialog label="Project details" open={open.value} with-footer>
|
|
204
|
+
<SplitView
|
|
205
|
+
id="recipe-projects"
|
|
206
|
+
label="Projects"
|
|
207
|
+
compact
|
|
208
|
+
detailActive={detailOpen.value}
|
|
209
|
+
listTitle="Recent projects"
|
|
210
|
+
detailTitle={records[selected.value].name}
|
|
211
|
+
backLabel="Back to projects"
|
|
212
|
+
list={<List>{projectRows(true)}</List>}
|
|
213
|
+
detail={compactDetail()}
|
|
214
|
+
/>
|
|
215
|
+
<wa-button
|
|
216
|
+
slot="footer"
|
|
217
|
+
appearance="outlined"
|
|
218
|
+
data-action="recipe-action"
|
|
219
|
+
data-recipe-command="archive"
|
|
220
|
+
>
|
|
221
|
+
Archive
|
|
222
|
+
</wa-button>
|
|
223
|
+
<wa-button
|
|
224
|
+
slot="footer"
|
|
225
|
+
variant="brand"
|
|
226
|
+
appearance="accent"
|
|
227
|
+
data-action="recipe-action"
|
|
228
|
+
data-recipe-command="open-record"
|
|
229
|
+
>
|
|
230
|
+
Open project
|
|
231
|
+
</wa-button>
|
|
232
|
+
</wa-dialog>
|
|
233
|
+
) : (
|
|
234
|
+
<wa-dialog
|
|
235
|
+
label="Project details"
|
|
236
|
+
open={open.value}
|
|
237
|
+
without-header
|
|
238
|
+
>
|
|
239
|
+
<SplitView
|
|
240
|
+
id="recipe-projects"
|
|
241
|
+
label="Projects"
|
|
242
|
+
compact={false}
|
|
243
|
+
listTitle="Recent projects"
|
|
244
|
+
detailTitle={records[selected.value].name}
|
|
245
|
+
list={sidebar()}
|
|
246
|
+
detail={detailColumn()}
|
|
247
|
+
/>
|
|
248
|
+
</wa-dialog>
|
|
249
|
+
)}
|
|
250
|
+
</DialogSurface>
|
|
251
|
+
</Row>
|
|
252
|
+
</section>
|
|
253
|
+
);
|
|
254
|
+
};
|
|
255
|
+
return {
|
|
256
|
+
render,
|
|
257
|
+
action(command, element) {
|
|
258
|
+
if (command === 'nav-back') {
|
|
259
|
+
detailOpen.value = false;
|
|
260
|
+
announce('Back to projects');
|
|
261
|
+
return;
|
|
262
|
+
}
|
|
263
|
+
const id = element.dataset.itemId;
|
|
264
|
+
if (id && id in records) {
|
|
265
|
+
selected.value = id as RecordId;
|
|
266
|
+
detailOpen.value = true;
|
|
267
|
+
announce(`Selected ${records[selected.value].name}`);
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
const dialog = element
|
|
271
|
+
.closest('[data-recipe]')
|
|
272
|
+
?.querySelector<RecipeDialogElement>('wa-dialog');
|
|
273
|
+
if (command === 'open' && dialog) {
|
|
274
|
+
element.focus();
|
|
275
|
+
open.value = true;
|
|
276
|
+
dialog.open = true;
|
|
277
|
+
return;
|
|
278
|
+
}
|
|
279
|
+
announce(`${command} requested`);
|
|
280
|
+
},
|
|
281
|
+
afterHide() {
|
|
282
|
+
open.value = false;
|
|
283
|
+
detailOpen.value = false;
|
|
284
|
+
},
|
|
285
|
+
};
|
|
286
|
+
};
|