@kerfjs/ui 5.0.0-beta.125 → 5.0.0-beta.127
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 +5 -0
- package/ai/application-ui-diagnostic-ids-v1.json +1 -0
- package/ai/component-catalog.json +77 -6
- package/ai/component-catalog.schema.json +14 -1
- package/ai/component-composition.json +27 -6
- package/ai/component-props.json +265 -40
- package/ai/components/combobox.md +1 -1
- package/ai/components/surface-scaffold.md +19 -5
- package/ai/components/tab-bar.md +2 -0
- package/ai/components/toolbar.md +1 -0
- package/ai/public-api-signatures-v1.md +251 -298
- package/ai/skill.md +10 -4
- package/ai/view-document.schema.json +55 -2
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/analyzer/cli.mjs +60 -24
- package/analyzer/index.mjs +331 -58
- package/catalog-projection-cli.mjs +86 -50
- package/dist/anchored-surface.js +2 -1
- package/dist/browser/editor.js +12 -7
- package/dist/catalog-resources.d.ts +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/catalog.js +6 -6
- package/dist/{chunk-VX3YF2UD.js → chunk-3K5V3ZSD.js} +3 -3
- package/dist/{chunk-VX3YF2UD.js.map → chunk-3K5V3ZSD.js.map} +1 -1
- package/dist/{chunk-NHQOX7T4.js → chunk-3ZKUXWAV.js} +4 -4
- package/dist/chunk-3ZKUXWAV.js.map +1 -0
- package/dist/{chunk-ADMWT7FX.js → chunk-3ZWYGGEC.js} +136 -8
- package/dist/chunk-3ZWYGGEC.js.map +1 -0
- package/dist/{chunk-KLR3DCHH.js → chunk-4L5ZIKDZ.js} +1 -1
- package/dist/chunk-4L5ZIKDZ.js.map +1 -0
- package/dist/{chunk-2E7S5C4D.js → chunk-4UWLHKNU.js} +5 -5
- package/dist/chunk-4UWLHKNU.js.map +1 -0
- package/dist/{chunk-EXGDKG7B.js → chunk-5A2DN3LR.js} +5 -5
- package/dist/chunk-5A2DN3LR.js.map +1 -0
- package/dist/{chunk-DJ65XFVN.js → chunk-63TJH2RF.js} +4 -4
- package/dist/chunk-63TJH2RF.js.map +1 -0
- package/dist/{chunk-Q2CLQ3IJ.js → chunk-6PHG2DMG.js} +1 -1
- package/dist/chunk-6PHG2DMG.js.map +1 -0
- package/dist/{chunk-SPI6VMIY.js → chunk-6T7AX365.js} +4 -4
- package/dist/chunk-6T7AX365.js.map +1 -0
- package/dist/{chunk-GVII4JSD.js → chunk-6V6UHPJD.js} +4 -4
- package/dist/chunk-6V6UHPJD.js.map +1 -0
- package/dist/{chunk-NR3ZO4LK.js → chunk-7U65KLDL.js} +1 -1
- package/dist/chunk-7U65KLDL.js.map +1 -0
- package/dist/chunk-BMOZSNDU.js +133 -0
- package/dist/chunk-BMOZSNDU.js.map +1 -0
- package/dist/{chunk-2LM3PYHA.js → chunk-C2TY5DJC.js} +11 -8
- package/dist/chunk-C2TY5DJC.js.map +1 -0
- package/dist/{chunk-3WYREXW4.js → chunk-COMEWURO.js} +8 -6
- package/dist/chunk-COMEWURO.js.map +1 -0
- package/dist/{chunk-VPDSPD76.js → chunk-DB64I3DB.js} +4 -3
- package/dist/chunk-DB64I3DB.js.map +1 -0
- package/dist/{chunk-SBCXWGNP.js → chunk-DBCDYBZP.js} +2 -2
- package/dist/{chunk-SBCXWGNP.js.map → chunk-DBCDYBZP.js.map} +1 -1
- package/dist/{chunk-CNM6ZWP2.js → chunk-DJWBXEF4.js} +4 -2
- package/dist/chunk-DJWBXEF4.js.map +1 -0
- package/dist/{chunk-SVUJIVMR.js → chunk-E2MTHHLS.js} +3 -3
- package/dist/{chunk-SVUJIVMR.js.map → chunk-E2MTHHLS.js.map} +1 -1
- package/dist/{chunk-JG4ONAOI.js → chunk-EI55KWHP.js} +2 -2
- package/dist/chunk-EI55KWHP.js.map +1 -0
- package/dist/{chunk-MVKHSAKE.js → chunk-GE2BQXB3.js} +41 -4
- package/dist/chunk-GE2BQXB3.js.map +1 -0
- package/dist/chunk-GHV36C6I.js +94 -0
- package/dist/chunk-GHV36C6I.js.map +1 -0
- package/dist/{chunk-BCO673YW.js → chunk-GQUDCWOD.js} +10 -4
- package/dist/chunk-GQUDCWOD.js.map +1 -0
- package/dist/chunk-HD7ZLISK.js +808 -0
- package/dist/chunk-HD7ZLISK.js.map +1 -0
- package/dist/{chunk-KELWWCMX.js → chunk-I2K4OQKB.js} +4 -4
- package/dist/chunk-I2K4OQKB.js.map +1 -0
- package/dist/chunk-IFDTSVE6.js +9 -0
- package/dist/chunk-IFDTSVE6.js.map +1 -0
- package/dist/{chunk-TPLVC5BE.js → chunk-IR32NI2O.js} +336 -247
- package/dist/chunk-IR32NI2O.js.map +1 -0
- package/dist/{chunk-ZKKO4MHC.js → chunk-JYKP7TBZ.js} +4 -2
- package/dist/chunk-JYKP7TBZ.js.map +1 -0
- package/dist/{chunk-6OT7FOSA.js → chunk-K3C35KGR.js} +4 -4
- package/dist/chunk-K3C35KGR.js.map +1 -0
- package/dist/{chunk-4RECPEHI.js → chunk-KBS3GP6S.js} +4 -3
- package/dist/chunk-KBS3GP6S.js.map +1 -0
- package/dist/{chunk-YHRJNKD5.js → chunk-KS7EXW4P.js} +6 -4
- package/dist/chunk-KS7EXW4P.js.map +1 -0
- package/dist/{chunk-V6N3YLTM.js → chunk-LTOTL5AS.js} +3 -3
- package/dist/chunk-LTOTL5AS.js.map +1 -0
- package/dist/chunk-M64TAGZY.js +590 -0
- package/dist/chunk-M64TAGZY.js.map +1 -0
- package/dist/{chunk-JZZVWTUB.js → chunk-MMOQR426.js} +2 -2
- package/dist/chunk-MMOQR426.js.map +1 -0
- package/dist/{chunk-SJBMKA4X.js → chunk-OHT2AXER.js} +11 -10
- package/dist/chunk-OHT2AXER.js.map +1 -0
- package/dist/{chunk-TTFW6E6C.js → chunk-OZKBIPXU.js} +2 -2
- package/dist/chunk-OZKBIPXU.js.map +1 -0
- package/dist/{chunk-Q2SLOMN6.js → chunk-RHMY45DK.js} +4 -4
- package/dist/chunk-RHMY45DK.js.map +1 -0
- package/dist/{chunk-BZXA5SSA.js → chunk-S7QB5KMM.js} +2 -2
- package/dist/{chunk-BZXA5SSA.js.map → chunk-S7QB5KMM.js.map} +1 -1
- package/dist/{chunk-HDXUHLTQ.js → chunk-SHECA2N4.js} +8 -2
- package/dist/chunk-SHECA2N4.js.map +1 -0
- package/dist/{chunk-R6FIXYAE.js → chunk-SJEPM5ZU.js} +2 -2
- package/dist/{chunk-R6FIXYAE.js.map → chunk-SJEPM5ZU.js.map} +1 -1
- package/dist/{chunk-FJMABKKV.js → chunk-UQ4FRQ6M.js} +35 -17
- package/dist/chunk-UQ4FRQ6M.js.map +1 -0
- package/dist/{chunk-S4ZGTDSG.js → chunk-UU37OR3D.js} +2 -2
- package/dist/chunk-UU37OR3D.js.map +1 -0
- package/dist/{chunk-SWXWLSUD.js → chunk-WEQNPYVA.js} +1 -1
- package/dist/{chunk-SWXWLSUD.js.map → chunk-WEQNPYVA.js.map} +1 -1
- package/dist/{chunk-5SFHBYEY.js → chunk-WUVHP3UC.js} +97 -24
- package/dist/chunk-WUVHP3UC.js.map +1 -0
- package/dist/{chunk-3S3WXAZ5.js → chunk-X43QQWVC.js} +3 -2
- package/dist/chunk-X43QQWVC.js.map +1 -0
- package/dist/{chunk-Z3T24FX3.js → chunk-YE6KCAIN.js} +3 -2
- package/dist/chunk-YE6KCAIN.js.map +1 -0
- package/dist/{chunk-KQZIC5CA.js → chunk-ZC4KSRAF.js} +7 -7
- package/dist/chunk-ZC4KSRAF.js.map +1 -0
- package/dist/collapsible-panel.d.ts +2 -2
- package/dist/collapsible-panel.js +2 -2
- package/dist/collapsible-panel.js.map +1 -1
- package/dist/column-explorer.d.ts +3 -3
- package/dist/column-explorer.js +16 -138
- package/dist/column-explorer.js.map +1 -1
- package/dist/dialog-surface-controller-BeKZ3e8Z.d.ts +251 -0
- package/dist/editor-frame.d.ts +1 -1
- package/dist/editor-frame.js +1 -1
- package/dist/editor.d.ts +38 -20
- package/dist/editor.js +11651 -7052
- package/dist/editor.js.map +1 -1
- package/dist/file-picker.js +1 -1
- package/dist/help-tags-register.js +2 -1
- package/dist/help-tags-register.js.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +24 -23
- package/dist/list-action-row.d.ts +1 -1
- package/dist/list-action-row.js +1 -1
- package/dist/list-detail-dialog.d.ts +7 -7
- package/dist/list-detail-dialog.js +6 -5
- 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-item.d.ts +1 -1
- package/dist/list-item.js +1 -1
- package/dist/message-composer.js +1 -1
- package/dist/nav-stack.d.ts +6 -6
- package/dist/nav-stack.js +1 -1
- package/dist/popup-menu-register.js +1 -7
- package/dist/popup-menu-register.js.map +1 -1
- package/dist/popup-menu.d.ts +2 -2
- package/dist/popup-menu.js +1 -1
- package/dist/resizable-region.js +1 -1
- package/dist/segmented-control.d.ts +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/select-register.js +17 -23
- package/dist/select-register.js.map +1 -1
- package/dist/split-view.d.ts +6 -6
- package/dist/split-view.js +1 -1
- package/dist/styles/collapsible-panel.css +34 -25
- package/dist/styles/components/actions/popup-menu/popup-menu.css +4 -4
- package/dist/styles/components/actions/toolbar/toolbar.css +34 -1
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +1 -1
- package/dist/styles/components/forms/segmented-control/segmented-control.css +1 -1
- package/dist/styles/components/layout/collapsible-panel/collapsible-panel.css +34 -25
- package/dist/styles/components/layout/split-view/split-view.css +19 -33
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +15 -19
- package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +30 -29
- package/dist/styles/components/surfaces/editor-frame/editor-frame.css +10 -3
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +291 -4
- package/dist/styles/editor/editor.css +78 -0
- package/dist/styles/editor-frame.css +10 -3
- package/dist/styles/nav-stack.css +15 -19
- package/dist/styles/popup-menu.css +4 -4
- package/dist/styles/segmented-control.css +1 -1
- package/dist/styles/split-view.css +19 -33
- package/dist/styles/surface-scaffold.css +291 -4
- package/dist/styles/tab-navigator.css +30 -29
- package/dist/styles/toolbar-control-group.css +1 -1
- package/dist/styles/toolbar.css +34 -1
- package/dist/styles/webawesome.css +4 -5
- package/dist/surface-scaffold-register.js +2 -1
- package/dist/surface-scaffold-register.js.map +1 -1
- package/dist/surface-scaffold.d.ts +155 -246
- package/dist/surface-scaffold.js +3 -2
- package/dist/toolbar-control-group.d.ts +2 -2
- package/dist/toolbar-control-group.js +1 -1
- package/dist/toolbar.d.ts +6 -1
- package/dist/toolbar.js +1 -1
- package/dist/tree-list.d.ts +4 -4
- package/dist/tree-list.js +2 -2
- package/dist/{tree-rows-eHnnGLGM.d.ts → tree-rows-Bms5QJvG.d.ts} +3 -0
- package/dist/wire-catalog.d.ts +1 -1
- package/dist/wire-catalog.js +3 -2
- package/dist/wire-catalog.js.map +1 -1
- package/dist/wire-checkboxes.js +2 -1
- package/dist/wire-choice-chips.js +2 -1
- package/dist/wire-color-fields.js +2 -1
- package/dist/wire-color-pickers.js +2 -1
- package/dist/wire-column-explorer.js +1 -92
- package/dist/wire-column-explorer.js.map +1 -1
- package/dist/wire-comboboxes.d.ts +2 -0
- package/dist/wire-comboboxes.js +2 -1
- package/dist/wire-content-items.js +2 -1
- package/dist/wire-corner-status.js +2 -1
- package/dist/wire-nav-stack.js +2 -1
- package/dist/wire-overlay-sheets.js +2 -1
- package/dist/wire-paged-views.js +2 -2
- package/dist/wire-paged-views.js.map +1 -1
- package/dist/wire-resizable-regions.js +2 -1
- package/dist/wire-scroll-dividers.js +1 -1
- package/dist/wire-search-fields.js +2 -1
- package/dist/wire-sidebar.js +2 -1
- package/dist/wire-tab-bars.d.ts +41 -2
- package/dist/wire-tab-bars.js +1 -1
- package/dist/wire-tab-navigator.js +2 -1
- package/dist/wire-tag-fields.js +2 -1
- package/dist/wire-workbench.js +2 -1
- package/dist/workbench-dialog.d.ts +7 -7
- package/dist/workbench-dialog.js +5 -4
- package/dist/workbench-dialog.js.map +1 -1
- package/dist/workbench.d.ts +1 -1
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +3 -6
- package/docs/component-contract.md +47 -7
- package/docs/component-selection.md +90 -80
- package/docs/design/templates.md +5 -4
- package/docs/editor-frame.md +1 -1
- package/docs/editor-host.md +15 -2
- package/docs/overlay-tooltip.md +1 -1
- package/docs/recipes.md +1 -1
- package/docs/surface-scaffold.md +63 -2
- package/docs/ui-analyzer.md +42 -0
- package/docs/ui-doctor.md +45 -1
- package/docs/ui-evaluator.md +35 -0
- package/docs/ux-demo.md +1 -1
- package/docs/view.md +314 -0
- package/docs/webawesome-theme.md +16 -0
- package/doctor/cli.mjs +36 -31
- package/doctor/index.mjs +349 -162
- package/evaluator/cli.mjs +36 -30
- package/llms.txt +17 -4
- package/package.json +6 -2
- package/props/cli.mjs +47 -21
- package/scripts/lib/cli-args.mjs +98 -0
- package/ux-demo/recipes/app-shell.tsx +48 -141
- package/ux-demo/recipes/collapsible-sidebar.tsx +43 -169
- package/ux-demo/recipes/compact-toolbar.tsx +22 -114
- package/ux-demo/recipes/composer-form.tsx +14 -104
- package/ux-demo/recipes/list-detail-dialog.tsx +38 -84
- package/ux-demo/recipes/list-workspace-states.tsx +29 -152
- package/ux-demo/recipes/loading-inspector.tsx +30 -174
- package/ux-demo/recipes/media-detail.tsx +29 -146
- package/ux-demo/recipes/navigation-sidebar.tsx +24 -113
- package/ux-demo/recipes/navigation-stack.tsx +7 -43
- package/ux-demo/recipes/workspace-header.tsx +2 -66
- package/view/catalog.mjs +229 -0
- package/view/child-kind.mjs +22 -0
- package/view/cli.mjs +142 -119
- package/view/contract.mjs +84 -11
- package/view/css-grammar.mjs +93 -0
- package/view/generate.d.mts +16 -0
- package/view/generate.mjs +155 -56
- package/view/index.d.mts +80 -14
- package/view/index.mjs +5 -9
- package/view/interpret.mjs +104 -36
- package/view/types.mjs +161 -0
- package/view/validate-move.mjs +66 -30
- package/view/validate.mjs +420 -654
- package/vite-editor.d.mts +16 -1
- package/vite-editor.mjs +74 -4
- package/dist/chunk-2E7S5C4D.js.map +0 -1
- package/dist/chunk-2LM3PYHA.js.map +0 -1
- package/dist/chunk-3S3WXAZ5.js.map +0 -1
- package/dist/chunk-3WYREXW4.js.map +0 -1
- package/dist/chunk-4RECPEHI.js.map +0 -1
- package/dist/chunk-5SFHBYEY.js.map +0 -1
- package/dist/chunk-6OT7FOSA.js.map +0 -1
- package/dist/chunk-ADMWT7FX.js.map +0 -1
- package/dist/chunk-BCO673YW.js.map +0 -1
- package/dist/chunk-CNM6ZWP2.js.map +0 -1
- package/dist/chunk-DJ65XFVN.js.map +0 -1
- package/dist/chunk-EXGDKG7B.js.map +0 -1
- package/dist/chunk-FJMABKKV.js.map +0 -1
- package/dist/chunk-GVII4JSD.js.map +0 -1
- package/dist/chunk-HDXUHLTQ.js.map +0 -1
- package/dist/chunk-JG4ONAOI.js.map +0 -1
- package/dist/chunk-JZZVWTUB.js.map +0 -1
- package/dist/chunk-KELWWCMX.js.map +0 -1
- package/dist/chunk-KLR3DCHH.js.map +0 -1
- package/dist/chunk-KQZIC5CA.js.map +0 -1
- package/dist/chunk-LD6A6PYB.js +0 -268
- package/dist/chunk-LD6A6PYB.js.map +0 -1
- package/dist/chunk-MVKHSAKE.js.map +0 -1
- package/dist/chunk-NHQOX7T4.js.map +0 -1
- package/dist/chunk-NR3ZO4LK.js.map +0 -1
- package/dist/chunk-Q2CLQ3IJ.js.map +0 -1
- package/dist/chunk-Q2SLOMN6.js.map +0 -1
- package/dist/chunk-S4ZGTDSG.js.map +0 -1
- package/dist/chunk-SJBMKA4X.js.map +0 -1
- package/dist/chunk-SPI6VMIY.js.map +0 -1
- package/dist/chunk-TPLVC5BE.js.map +0 -1
- package/dist/chunk-TTFW6E6C.js.map +0 -1
- package/dist/chunk-V6N3YLTM.js.map +0 -1
- package/dist/chunk-VNT4MXR5.js +0 -548
- package/dist/chunk-VNT4MXR5.js.map +0 -1
- package/dist/chunk-VPDSPD76.js.map +0 -1
- package/dist/chunk-YHRJNKD5.js.map +0 -1
- package/dist/chunk-Z3T24FX3.js.map +0 -1
- package/dist/chunk-ZKKO4MHC.js.map +0 -1
- package/dist/{nav-stack-DwxpXxqJ.d.ts → nav-stack-vQ3ieerq.d.ts} +3 -3
|
@@ -6,24 +6,16 @@ import '@kerfjs/ui/toolbar.css';
|
|
|
6
6
|
import '@kerfjs/ui/toolbar-text.css';
|
|
7
7
|
import '@kerfjs/ui/toolbar-control-group.css';
|
|
8
8
|
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { List } from '@kerfjs/ui/list';
|
|
12
|
-
import { ListHeader } from '@kerfjs/ui/list-header';
|
|
13
|
-
import { ListItem } from '@kerfjs/ui/list-item';
|
|
14
|
-
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
15
|
-
import { NavStack, type NavStackView } from '@kerfjs/ui/nav-stack';
|
|
16
|
-
import { Text } from '@kerfjs/ui/text';
|
|
17
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
18
|
-
import {
|
|
19
|
-
ToolbarButton,
|
|
20
|
-
ToolbarControlGroup,
|
|
21
|
-
} from '@kerfjs/ui/toolbar-control-group';
|
|
22
|
-
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
9
|
+
import { fillColor } from '@kerfjs/ui/css-values';
|
|
10
|
+
import { type NavStackView } from '@kerfjs/ui/nav-stack';
|
|
23
11
|
import { wireScrollDividers } from '@kerfjs/ui/wire-scroll-dividers';
|
|
24
12
|
import { signal } from 'kerfjs';
|
|
25
|
-
import { ChevronRight, Disc3, Ellipsis, Play, Share, Shuffle } from 'lucide';
|
|
26
13
|
|
|
14
|
+
import { renderRecipeMediaActions } from '../views/recipe-media-actions.view.js';
|
|
15
|
+
import { renderRecipeMediaAlbum } from '../views/recipe-media-album.view.js';
|
|
16
|
+
import { renderRecipeMediaLibrary } from '../views/recipe-media-library.view.js';
|
|
17
|
+
import { renderRecipeMediaPlayback } from '../views/recipe-media-playback.view.js';
|
|
18
|
+
import { renderRecipeMediaShell } from '../views/recipe-media-shell.view.js';
|
|
27
19
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
28
20
|
|
|
29
21
|
export const presentation: RecipePresentation = {
|
|
@@ -91,139 +83,35 @@ const artwork = () =>
|
|
|
91
83
|
new Blob([ARTWORK], { type: 'image/svg+xml' }),
|
|
92
84
|
));
|
|
93
85
|
|
|
94
|
-
/** A playback command: icon-only with `label` as its name, or labeled. */
|
|
95
|
-
const command = (
|
|
96
|
-
name: string,
|
|
97
|
-
label: string,
|
|
98
|
-
icon: SafeIcon,
|
|
99
|
-
visibleLabel = false,
|
|
100
|
-
) =>
|
|
101
|
-
visibleLabel ? (
|
|
102
|
-
<ToolbarButton
|
|
103
|
-
action="recipe-action"
|
|
104
|
-
rootAttributes={{ 'data-recipe-command': name }}
|
|
105
|
-
icon={icon}
|
|
106
|
-
>
|
|
107
|
-
{label}
|
|
108
|
-
</ToolbarButton>
|
|
109
|
-
) : (
|
|
110
|
-
<ToolbarButton
|
|
111
|
-
ariaLabel={label}
|
|
112
|
-
action="recipe-action"
|
|
113
|
-
rootAttributes={{ 'data-recipe-command': name }}
|
|
114
|
-
icon={icon}
|
|
115
|
-
/>
|
|
116
|
-
);
|
|
117
|
-
|
|
118
|
-
type SafeIcon = ReturnType<typeof LucideIcon>;
|
|
119
|
-
|
|
120
86
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
121
87
|
const libraryView = (): NavStackView => ({
|
|
122
88
|
key: 'library',
|
|
123
89
|
toolbar: { title: 'Library' },
|
|
124
|
-
content: (
|
|
125
|
-
<List>
|
|
126
|
-
<section>
|
|
127
|
-
<ListHeader label="Albums" />
|
|
128
|
-
{ALBUMS.map((album) => (
|
|
129
|
-
<ListItem
|
|
130
|
-
action="recipe-action"
|
|
131
|
-
itemId={album.id}
|
|
132
|
-
label={album.title}
|
|
133
|
-
description={album.artist}
|
|
134
|
-
icon={<LucideIcon icon={Disc3} name="disc-3" />}
|
|
135
|
-
trailing={<LucideIcon icon={ChevronRight} name="chevron-right" />}
|
|
136
|
-
/>
|
|
137
|
-
))}
|
|
138
|
-
</section>
|
|
139
|
-
</List>
|
|
140
|
-
),
|
|
90
|
+
content: renderRecipeMediaLibrary({ albums: ALBUMS }),
|
|
141
91
|
});
|
|
142
92
|
|
|
143
93
|
const albumView = (album: Album): NavStackView => ({
|
|
144
94
|
key: album.id,
|
|
145
95
|
toolbar: {
|
|
146
96
|
title: '',
|
|
147
|
-
trailing: (
|
|
148
|
-
<ToolbarControlGroup
|
|
149
|
-
label="Album Actions"
|
|
150
|
-
content="icon"
|
|
151
|
-
material="glass"
|
|
152
|
-
>
|
|
153
|
-
{command('share', 'Share', <LucideIcon icon={Share} name="share" />)}
|
|
154
|
-
{command(
|
|
155
|
-
'more',
|
|
156
|
-
'More',
|
|
157
|
-
<LucideIcon icon={Ellipsis} name="ellipsis" />,
|
|
158
|
-
)}
|
|
159
|
-
</ToolbarControlGroup>
|
|
160
|
-
),
|
|
97
|
+
trailing: renderRecipeMediaActions({}),
|
|
161
98
|
},
|
|
162
99
|
pane: { safeAreaEdges: [] },
|
|
163
|
-
content: (
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
description={album.artist}
|
|
179
|
-
size="xlarge"
|
|
180
|
-
headingLevel={2}
|
|
181
|
-
/>
|
|
182
|
-
}
|
|
183
|
-
trailing={
|
|
184
|
-
<ToolbarControlGroup
|
|
185
|
-
label="Playback"
|
|
186
|
-
content="mixed"
|
|
187
|
-
material="glass"
|
|
188
|
-
>
|
|
189
|
-
{command(
|
|
190
|
-
'play',
|
|
191
|
-
'Play',
|
|
192
|
-
<LucideIcon icon={Play} name="play" />,
|
|
193
|
-
true,
|
|
194
|
-
)}
|
|
195
|
-
{command(
|
|
196
|
-
'shuffle',
|
|
197
|
-
'Shuffle',
|
|
198
|
-
<LucideIcon icon={Shuffle} name="shuffle" />,
|
|
199
|
-
)}
|
|
200
|
-
</ToolbarControlGroup>
|
|
201
|
-
}
|
|
202
|
-
/>
|
|
203
|
-
}
|
|
204
|
-
>
|
|
205
|
-
<List>
|
|
206
|
-
<section>
|
|
207
|
-
<ListHeader
|
|
208
|
-
label="Songs"
|
|
209
|
-
count={album.tracks.length}
|
|
210
|
-
countLabel={`${String(album.tracks.length)} songs`}
|
|
211
|
-
/>
|
|
212
|
-
{album.tracks.map(([title, length], index) => (
|
|
213
|
-
<ListItem
|
|
214
|
-
action="recipe-action"
|
|
215
|
-
itemId={`${album.id}-track-${String(index + 1)}`}
|
|
216
|
-
label={title}
|
|
217
|
-
trailing={
|
|
218
|
-
<Text variant="span" tone="quiet">
|
|
219
|
-
{length}
|
|
220
|
-
</Text>
|
|
221
|
-
}
|
|
222
|
-
/>
|
|
223
|
-
))}
|
|
224
|
-
</section>
|
|
225
|
-
</List>
|
|
226
|
-
</BackdropImage>
|
|
100
|
+
content: renderRecipeMediaAlbum(
|
|
101
|
+
{
|
|
102
|
+
title: album.title,
|
|
103
|
+
artist: album.artist,
|
|
104
|
+
artworkUrl: artwork(),
|
|
105
|
+
artworkAlt: `${album.title} artwork: ridges at dusk under a low sun`,
|
|
106
|
+
trackCount: album.tracks.length,
|
|
107
|
+
trackCountLabel: `${String(album.tracks.length)} songs`,
|
|
108
|
+
tracks: album.tracks.map(([title, length], index) => ({
|
|
109
|
+
id: `${album.id}-track-${String(index + 1)}`,
|
|
110
|
+
title,
|
|
111
|
+
length,
|
|
112
|
+
})),
|
|
113
|
+
},
|
|
114
|
+
{ playback: () => renderRecipeMediaPlayback({}) },
|
|
227
115
|
),
|
|
228
116
|
});
|
|
229
117
|
|
|
@@ -235,18 +123,13 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
235
123
|
const album = current();
|
|
236
124
|
return (
|
|
237
125
|
<section data-recipe="recipe-media-detail" aria-label="Music">
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
views={views.value}
|
|
242
|
-
chromePresentation="clear"
|
|
243
|
-
scrollEdge="material"
|
|
244
|
-
tint={
|
|
126
|
+
{renderRecipeMediaShell({
|
|
127
|
+
views: views.value,
|
|
128
|
+
tint:
|
|
245
129
|
album === undefined
|
|
246
130
|
? undefined
|
|
247
|
-
: { color: fillColor(album.tint), scheme: 'dark' }
|
|
248
|
-
|
|
249
|
-
/>
|
|
131
|
+
: { color: fillColor(album.tint), scheme: 'dark' },
|
|
132
|
+
})}
|
|
250
133
|
</section>
|
|
251
134
|
);
|
|
252
135
|
};
|
|
@@ -1,20 +1,10 @@
|
|
|
1
1
|
import '@kerfjs/ui/layout.css';
|
|
2
2
|
|
|
3
|
-
import { ContentItem } from '@kerfjs/ui/content-item';
|
|
4
|
-
import { List } from '@kerfjs/ui/list';
|
|
5
|
-
import { ListHeader } from '@kerfjs/ui/list-header';
|
|
6
|
-
import { ListItem } from '@kerfjs/ui/list-item';
|
|
7
|
-
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
8
|
-
import { Pane } from '@kerfjs/ui/pane';
|
|
9
|
-
import { Text } from '@kerfjs/ui/text';
|
|
10
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
11
|
-
import {
|
|
12
|
-
ToolbarButton,
|
|
13
|
-
ToolbarControlGroup,
|
|
14
|
-
} from '@kerfjs/ui/toolbar-control-group';
|
|
15
3
|
import { signal } from 'kerfjs';
|
|
16
|
-
import { Folder, Inbox, Plus, Settings, Users } from 'lucide';
|
|
17
4
|
|
|
5
|
+
import { renderRecipeNavigationProjects } from '../views/recipe-navigation-projects.view.js';
|
|
6
|
+
import { renderRecipeNavigationSidebar } from '../views/recipe-navigation-sidebar.view.js';
|
|
7
|
+
import { renderRecipeNavigationWorkspace } from '../views/recipe-navigation-workspace.view.js';
|
|
18
8
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
19
9
|
|
|
20
10
|
export const presentation: RecipePresentation = {
|
|
@@ -33,108 +23,29 @@ export const presentation: RecipePresentation = {
|
|
|
33
23
|
export const createRecipe: RecipeFactory = (announce) => {
|
|
34
24
|
const selected = signal('inbox');
|
|
35
25
|
const expanded = signal(true);
|
|
36
|
-
const render = () =>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
footer={
|
|
42
|
-
<Toolbar
|
|
43
|
-
label="Sidebar Actions"
|
|
44
|
-
dividerSides="t"
|
|
45
|
-
leading={
|
|
46
|
-
<ToolbarControlGroup appearance="borderless" single>
|
|
47
|
-
<ToolbarButton
|
|
48
|
-
ariaLabel="Add Project"
|
|
49
|
-
action="recipe-action"
|
|
50
|
-
rootAttributes={{ 'data-recipe-command': 'add' }}
|
|
51
|
-
icon={<LucideIcon icon={Plus} name="plus" />}
|
|
52
|
-
/>
|
|
53
|
-
</ToolbarControlGroup>
|
|
54
|
-
}
|
|
55
|
-
trailing={
|
|
56
|
-
<ToolbarControlGroup appearance="borderless" single>
|
|
57
|
-
<ToolbarButton
|
|
58
|
-
ariaLabel="Workspace Settings"
|
|
59
|
-
action="recipe-action"
|
|
60
|
-
rootAttributes={{ 'data-recipe-command': 'settings' }}
|
|
61
|
-
icon={<LucideIcon icon={Settings} name="settings" />}
|
|
62
|
-
/>
|
|
63
|
-
</ToolbarControlGroup>
|
|
64
|
-
}
|
|
65
|
-
/>
|
|
66
|
-
}
|
|
67
|
-
>
|
|
68
|
-
<section>
|
|
69
|
-
<ListHeader
|
|
70
|
-
label="Workspace"
|
|
71
|
-
count={3}
|
|
72
|
-
countLabel="3 workspaces"
|
|
73
|
-
action="recipe-action"
|
|
74
|
-
actionLabel="Add workspace item"
|
|
75
|
-
actionIcon={<LucideIcon icon={Plus} name="plus" />}
|
|
76
|
-
/>
|
|
77
|
-
<ListItem
|
|
78
|
-
action="recipe-action"
|
|
79
|
-
itemId="inbox"
|
|
80
|
-
label="Inbox"
|
|
81
|
-
icon={<LucideIcon icon={Inbox} name="inbox" />}
|
|
82
|
-
trailing={<span>12</span>}
|
|
83
|
-
selected={selected.value === 'inbox'}
|
|
84
|
-
/>
|
|
85
|
-
<ListItem
|
|
86
|
-
action="recipe-action"
|
|
87
|
-
itemId="shared"
|
|
88
|
-
label="Shared with Me"
|
|
89
|
-
icon={<LucideIcon icon={Users} name="users" />}
|
|
90
|
-
selected={selected.value === 'shared'}
|
|
91
|
-
/>
|
|
92
|
-
<ListItem
|
|
93
|
-
action="recipe-action"
|
|
94
|
-
itemId="drafts"
|
|
95
|
-
label="Drafts Without an Icon"
|
|
96
|
-
selected={selected.value === 'drafts'}
|
|
97
|
-
/>
|
|
98
|
-
</section>
|
|
99
|
-
<section>
|
|
100
|
-
<ListHeader
|
|
101
|
-
label="Projects"
|
|
102
|
-
toggle
|
|
103
|
-
action="recipe-action"
|
|
104
|
-
expanded={expanded.value}
|
|
105
|
-
/>
|
|
106
|
-
{expanded.value && (
|
|
26
|
+
const render = () =>
|
|
27
|
+
renderRecipeNavigationSidebar(
|
|
28
|
+
{},
|
|
29
|
+
{
|
|
30
|
+
content: () => (
|
|
107
31
|
<>
|
|
108
|
-
<
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
title="Available to administrators"
|
|
122
|
-
/>
|
|
123
|
-
<ContentItem>
|
|
124
|
-
<List gap="2xs">
|
|
125
|
-
<Text variant="span" weight="strong">
|
|
126
|
-
Quarterly Goal
|
|
127
|
-
</Text>
|
|
128
|
-
<Text variant="span" tone="quiet" size="compact">
|
|
129
|
-
Ship accessible navigation patterns to every workspace.
|
|
130
|
-
</Text>
|
|
131
|
-
</List>
|
|
132
|
-
</ContentItem>
|
|
32
|
+
<section>
|
|
33
|
+
{renderRecipeNavigationWorkspace({
|
|
34
|
+
inboxSelected: selected.value === 'inbox',
|
|
35
|
+
sharedSelected: selected.value === 'shared',
|
|
36
|
+
draftsSelected: selected.value === 'drafts',
|
|
37
|
+
})}
|
|
38
|
+
</section>
|
|
39
|
+
<section>
|
|
40
|
+
{renderRecipeNavigationProjects({
|
|
41
|
+
expanded: expanded.value,
|
|
42
|
+
designSelected: selected.value === 'design',
|
|
43
|
+
})}
|
|
44
|
+
</section>
|
|
133
45
|
</>
|
|
134
|
-
)
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
);
|
|
46
|
+
),
|
|
47
|
+
},
|
|
48
|
+
);
|
|
138
49
|
return {
|
|
139
50
|
render,
|
|
140
51
|
action(command, element) {
|
|
@@ -2,17 +2,12 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/nav-stack.css';
|
|
3
3
|
import '@kerfjs/ui/toolbar-text.css';
|
|
4
4
|
|
|
5
|
-
import {
|
|
6
|
-
import { List } from '@kerfjs/ui/list';
|
|
7
|
-
import { ListHeader } from '@kerfjs/ui/list-header';
|
|
8
|
-
import { ListItem } from '@kerfjs/ui/list-item';
|
|
9
|
-
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
10
|
-
import { NavStack, type NavStackView } from '@kerfjs/ui/nav-stack';
|
|
11
|
-
import { Row } from '@kerfjs/ui/row';
|
|
12
|
-
import { Text } from '@kerfjs/ui/text';
|
|
5
|
+
import { type NavStackView } from '@kerfjs/ui/nav-stack';
|
|
13
6
|
import { signal } from 'kerfjs';
|
|
14
|
-
import { ChevronRight, FileText, Folder } from 'lucide';
|
|
15
7
|
|
|
8
|
+
import { renderRecipeNavigationDetail } from '../views/recipe-navigation-detail.view.js';
|
|
9
|
+
import { renderRecipeNavigationLibrary } from '../views/recipe-navigation-library.view.js';
|
|
10
|
+
import { renderRecipeNavigationShell } from '../views/recipe-navigation-shell.view.js';
|
|
16
11
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
17
12
|
|
|
18
13
|
export const presentation: RecipePresentation = {
|
|
@@ -59,44 +54,13 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
59
54
|
const listView = (): NavStackView => ({
|
|
60
55
|
key: 'library',
|
|
61
56
|
toolbar: { title: 'Library' },
|
|
62
|
-
content: (
|
|
63
|
-
<List>
|
|
64
|
-
<section>
|
|
65
|
-
<ListHeader label="Components" />
|
|
66
|
-
{ITEMS.map((item) => (
|
|
67
|
-
<ListItem
|
|
68
|
-
action="recipe-action"
|
|
69
|
-
itemId={item.id}
|
|
70
|
-
label={item.label}
|
|
71
|
-
icon={<LucideIcon icon={Folder} name="folder" />}
|
|
72
|
-
trailing={<LucideIcon icon={ChevronRight} name="chevron-right" />}
|
|
73
|
-
/>
|
|
74
|
-
))}
|
|
75
|
-
</section>
|
|
76
|
-
</List>
|
|
77
|
-
),
|
|
57
|
+
content: renderRecipeNavigationLibrary({ items: ITEMS }),
|
|
78
58
|
});
|
|
79
59
|
|
|
80
60
|
const detailView = (item: LibraryItem): NavStackView => ({
|
|
81
61
|
key: item.id,
|
|
82
62
|
toolbar: { title: item.label },
|
|
83
|
-
content: (
|
|
84
|
-
<List controlInsets="t">
|
|
85
|
-
<ContentItem>
|
|
86
|
-
<Row gap="xs">
|
|
87
|
-
<LucideIcon icon={FileText} name="file-text" />
|
|
88
|
-
<List gap="2xs">
|
|
89
|
-
<Text variant="span" weight="strong">
|
|
90
|
-
{item.label}
|
|
91
|
-
</Text>
|
|
92
|
-
<Text variant="span" tone="quiet" size="compact">
|
|
93
|
-
{item.detail}
|
|
94
|
-
</Text>
|
|
95
|
-
</List>
|
|
96
|
-
</Row>
|
|
97
|
-
</ContentItem>
|
|
98
|
-
</List>
|
|
99
|
-
),
|
|
63
|
+
content: renderRecipeNavigationDetail(item),
|
|
100
64
|
});
|
|
101
65
|
|
|
102
66
|
const views = signal<NavStackView[]>([listView()]);
|
|
@@ -106,7 +70,7 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
106
70
|
data-recipe="recipe-navigation-stack"
|
|
107
71
|
aria-label="Component Library"
|
|
108
72
|
>
|
|
109
|
-
|
|
73
|
+
{renderRecipeNavigationShell({ views: views.value })}
|
|
110
74
|
</section>
|
|
111
75
|
);
|
|
112
76
|
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
import '@kerfjs/ui/layout.css';
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import { ListInsetText } from '@kerfjs/ui/list-inset-text';
|
|
5
|
-
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
6
|
-
import { Text } from '@kerfjs/ui/text';
|
|
7
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
8
|
-
import {
|
|
9
|
-
ToolbarButton,
|
|
10
|
-
ToolbarControlGroup,
|
|
11
|
-
} from '@kerfjs/ui/toolbar-control-group';
|
|
12
|
-
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
13
|
-
|
|
3
|
+
import { renderRecipeWorkspaceHeader } from '../views/recipe-workspace-header.view.js';
|
|
14
4
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
15
5
|
|
|
16
6
|
export const presentation: RecipePresentation = {
|
|
@@ -30,61 +20,7 @@ export const createRecipe: RecipeFactory = (announce) => ({
|
|
|
30
20
|
data-recipe="recipe-workspace-header"
|
|
31
21
|
aria-labelledby="recipe-workspace-title"
|
|
32
22
|
>
|
|
33
|
-
|
|
34
|
-
<List>
|
|
35
|
-
<ListInsetText sides="rl">
|
|
36
|
-
<Text variant="span" tone="quiet" size="compact">
|
|
37
|
-
Northstar workspace · Product planning
|
|
38
|
-
</Text>
|
|
39
|
-
</ListInsetText>
|
|
40
|
-
<Toolbar
|
|
41
|
-
label="Workspace Heading"
|
|
42
|
-
responsive="stack"
|
|
43
|
-
responsiveAt="compact"
|
|
44
|
-
leading={
|
|
45
|
-
<ToolbarText
|
|
46
|
-
text="Accessibility Readiness and Responsive Navigation Rollout"
|
|
47
|
-
size="xlarge"
|
|
48
|
-
id="recipe-workspace-title"
|
|
49
|
-
headingLevel={1}
|
|
50
|
-
wrap
|
|
51
|
-
maxLines={2}
|
|
52
|
-
/>
|
|
53
|
-
}
|
|
54
|
-
trailing={
|
|
55
|
-
<ToolbarControlGroup
|
|
56
|
-
appearance="borderless"
|
|
57
|
-
buttonAppearance="push"
|
|
58
|
-
content="text"
|
|
59
|
-
>
|
|
60
|
-
<ToolbarButton
|
|
61
|
-
action="recipe-action"
|
|
62
|
-
rootAttributes={{ 'data-recipe-command': 'share' }}
|
|
63
|
-
>
|
|
64
|
-
Share
|
|
65
|
-
</ToolbarButton>
|
|
66
|
-
<ToolbarButton
|
|
67
|
-
action="recipe-action"
|
|
68
|
-
rootAttributes={{ 'data-recipe-command': 'more' }}
|
|
69
|
-
>
|
|
70
|
-
More Actions
|
|
71
|
-
</ToolbarButton>
|
|
72
|
-
<ToolbarButton
|
|
73
|
-
action="recipe-action"
|
|
74
|
-
rootAttributes={{ 'data-recipe-command': 'publish' }}
|
|
75
|
-
>
|
|
76
|
-
Publish Update
|
|
77
|
-
</ToolbarButton>
|
|
78
|
-
</ToolbarControlGroup>
|
|
79
|
-
}
|
|
80
|
-
/>
|
|
81
|
-
</List>
|
|
82
|
-
<StateBanner
|
|
83
|
-
title="Ready for Review"
|
|
84
|
-
detail="All required checks passed 18 minutes ago."
|
|
85
|
-
tone="success"
|
|
86
|
-
/>
|
|
87
|
-
</List>
|
|
23
|
+
{renderRecipeWorkspaceHeader()}
|
|
88
24
|
</section>
|
|
89
25
|
),
|
|
90
26
|
action(command) {
|