@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Public API signatures for the UI authoring corpus
|
|
2
2
|
|
|
3
|
-
Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.
|
|
3
|
+
Generated from emitted declarations for `@kerfjs/ui@5.0.0-beta.127` and `kerfjs@5.0.0-beta.127`. This bounded reference covers only APIs used by the seven-task corpus. It is interface evidence, not an implementation or runtime guarantee.
|
|
4
4
|
|
|
5
5
|
## `@kerfjs/ui/css-values`
|
|
6
6
|
|
|
@@ -221,11 +221,16 @@ interface ToolbarProps {
|
|
|
221
221
|
* groups onto further rows.
|
|
222
222
|
* - `wrap` keeps one row while every zone fits at its natural width, and
|
|
223
223
|
* otherwise moves the trailing zone below a whole leading identity.
|
|
224
|
+
* - `wrap-groups` is for a leading zone of control groups rather than a
|
|
225
|
+
* title: each leading group shares a row with the trailing zone while it
|
|
226
|
+
* fits and otherwise moves, whole, to the next row; the trailing zone
|
|
227
|
+
* stays at the inline end. The leading zone draws no box of its own, so
|
|
228
|
+
* its padding and minimum-width tokens do not apply.
|
|
224
229
|
* - `center-priority` gives an expanded center control the full row.
|
|
225
230
|
* - `trailing-priority` moves an expanded trailing control to a full row
|
|
226
231
|
* below the leading identity at `responsiveAt`.
|
|
227
232
|
*/
|
|
228
|
-
responsive?: 'none' | 'stack' | 'wrap' | 'center-priority' | 'trailing-priority';
|
|
233
|
+
responsive?: 'none' | 'stack' | 'wrap' | 'wrap-groups' | 'center-priority' | 'trailing-priority';
|
|
229
234
|
/** Container width at which `stack` or `trailing-priority` activates. */
|
|
230
235
|
responsiveAt?: 'compact' | 'narrow';
|
|
231
236
|
/**
|
|
@@ -366,14 +371,14 @@ type ToolbarControlGroupTileTone = 'neutral' | 'brand' | 'success' | 'warning' |
|
|
|
366
371
|
type ToolbarControlGroupButtonAppearance = 'plain' | 'push';
|
|
367
372
|
type ToolbarControlGroupShape = 'pill' | 'rounded';
|
|
368
373
|
type ToolbarControlGroupSize = 'default' | 'compact';
|
|
369
|
-
type ToolbarControlGroupDensity = 'comfortable' | 'tight';
|
|
374
|
+
type ToolbarControlGroupDensity = 'default' | 'compact' | /** @deprecated Use default. */ 'comfortable' | /** @deprecated Use compact. */ 'tight';
|
|
370
375
|
type ToolbarControlGroupContent = 'icon' | 'text' | 'mixed' | 'avatar' | 'search';
|
|
371
376
|
type ToolbarControlGroupFocusRing = 'control' | 'outline' | 'halo';
|
|
372
377
|
type ToolbarControlGroupSelectedChrome = 'raised' | 'filled' | 'outline' | 'none';
|
|
373
378
|
type ToolbarControlGroupSelectedTone = 'brand' | 'neutral' | 'pop';
|
|
374
379
|
type ToolbarControlGroupOverflow = 'visible' | 'scroll' | 'wrap';
|
|
375
380
|
type ToolbarControlGroupExpandedOverflow = 'clip' | 'visible';
|
|
376
|
-
type ToolbarControlGroupMenuInset = '
|
|
381
|
+
type ToolbarControlGroupMenuInset = 'none' | 'compact' | 'default' | /** @deprecated Use default. */ 'standard' | /** @deprecated Use none. */ 'list-zero';
|
|
377
382
|
type ToolbarControlGroupVisibility = 'always' | 'compact-only' | 'hide-collapsed-tiny' | 'yield-to-expanded-sibling' | 'yield-to-priority-row';
|
|
378
383
|
type ToolbarControlGroupSizing = 'content' | 'grow' | 'fill';
|
|
379
384
|
type ToolbarControlGroupPlacement = 'start' | 'end';
|
|
@@ -690,8 +695,8 @@ type PopupMenuTriggerName = {
|
|
|
690
695
|
};
|
|
691
696
|
/** How loudly a PopupMenu's button trigger asks: borderless or outlined. */
|
|
692
697
|
type PopupMenuEmphasis = 'plain' | 'secondary';
|
|
693
|
-
/** A PopupMenu button trigger's height: the
|
|
694
|
-
type PopupMenuSize = '
|
|
698
|
+
/** A PopupMenu button trigger's height: the default control or compact. */
|
|
699
|
+
type PopupMenuSize = 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
|
|
695
700
|
/** A context PopupMenu's viewport anchor point. */
|
|
696
701
|
interface PopupMenuAnchor {
|
|
697
702
|
x: number;
|
|
@@ -844,7 +849,7 @@ interface ListHeaderBaseProps {
|
|
|
844
849
|
label: string;
|
|
845
850
|
/** Visual label size, independent of the native heading level. Default `sm`. */
|
|
846
851
|
size?: 'xs' | 'sm' | 'm' | 'l' | 'xl';
|
|
847
|
-
density?: '
|
|
852
|
+
density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
|
|
848
853
|
divider?: 'none' | 'before' | 'after' | 'both';
|
|
849
854
|
/** Shrink-wrap the header without its default outer margin, border, or padding. */
|
|
850
855
|
inline?: boolean;
|
|
@@ -1278,7 +1283,7 @@ interface ListActionRowCommonProps {
|
|
|
1278
1283
|
status?: string | SafeHtml;
|
|
1279
1284
|
busy?: boolean;
|
|
1280
1285
|
/** Row height: `standard` is 44px; `compact` is 36px (42px with `iconTile`), the height of a compact `ListItem`. */
|
|
1281
|
-
density?: '
|
|
1286
|
+
density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
|
|
1282
1287
|
divider?: 'none' | 'before' | 'after' | 'both';
|
|
1283
1288
|
/** Decorative dormant content for the primary button. Must not contain interactive descendants. */
|
|
1284
1289
|
icon?: SafeHtml;
|
|
@@ -1355,7 +1360,7 @@ interface ListItemProps {
|
|
|
1355
1360
|
status?: string | SafeHtml;
|
|
1356
1361
|
/** Show a progress indicator and expose the row as busy without replacing its content; a placeholder keeps the indicator. */
|
|
1357
1362
|
busy?: boolean;
|
|
1358
|
-
density?: '
|
|
1363
|
+
density?: 'default' | 'compact' | 'spacious' | /** @deprecated Use default. */ 'standard';
|
|
1359
1364
|
divider?: 'none' | 'before' | 'after' | 'both';
|
|
1360
1365
|
selected?: boolean;
|
|
1361
1366
|
action: string;
|
|
@@ -1862,6 +1867,36 @@ import 'kerfjs';
|
|
|
1862
1867
|
import './semantic-content-BbzjvSu9.js';
|
|
1863
1868
|
import './extension-attributes-IJ4decoa.js';
|
|
1864
1869
|
|
|
1870
|
+
/**
|
|
1871
|
+
* How a TabBar's tabs fit their strip, and how wide its fixed action zones
|
|
1872
|
+
* are, as `wireTabBars` reports it through `onFitChange`. Widths are CSS
|
|
1873
|
+
* pixels rounded to whole pixels.
|
|
1874
|
+
*/
|
|
1875
|
+
interface TabBarFit {
|
|
1876
|
+
/** The bar's `TabBar` `id` (`data-tab-bar-id`). */
|
|
1877
|
+
barId: string;
|
|
1878
|
+
/**
|
|
1879
|
+
* The tabs need more room than the strip has, so the strip scrolls and some
|
|
1880
|
+
* tab is at least partly out of view.
|
|
1881
|
+
*/
|
|
1882
|
+
overflowing: boolean;
|
|
1883
|
+
/** Inline room the strip gives its tabs (its content box). */
|
|
1884
|
+
stripWidth: number;
|
|
1885
|
+
/** Inline extent the tabs occupy, from the first tab's start edge to the last tab's end edge. */
|
|
1886
|
+
tabsWidth: number;
|
|
1887
|
+
/**
|
|
1888
|
+
* `stripWidth - tabsWidth`: room the tabs leave unused, negative by the
|
|
1889
|
+
* amount they overflow. Intrinsic tabs ellipsize their names before the
|
|
1890
|
+
* strip scrolls, so `free` reaches 0 before `overflowing` turns true; under
|
|
1891
|
+
* `allocation="fill"` the tabs absorb the strip and `free` stays near 0.
|
|
1892
|
+
*/
|
|
1893
|
+
free: number;
|
|
1894
|
+
/** Width of the `trailing` zone, 0 without one. */
|
|
1895
|
+
trailingWidth: number;
|
|
1896
|
+
/** Width of the `end` zone, 0 without one. */
|
|
1897
|
+
endWidth: number;
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1865
1900
|
type TabReorderSource = 'pointer' | 'keyboard';
|
|
1866
1901
|
type TabDropPosition = 'before' | 'after';
|
|
1867
1902
|
interface TabReorder {
|
|
@@ -1886,12 +1921,21 @@ interface WireTabBarsOptions {
|
|
|
1886
1921
|
* `activation` prop) overrides this option for that strip.
|
|
1887
1922
|
*/
|
|
1888
1923
|
activation?: TabActivation;
|
|
1924
|
+
/**
|
|
1925
|
+
* Report how each bar's tabs fit their strip and how wide its `trailing` and
|
|
1926
|
+
* `end` zones are: once per bar after wiring (and for each bar rendered
|
|
1927
|
+
* later), then on the next frame after any rounded value changes (a resize, an added or removed tab, a swapped
|
|
1928
|
+
* action). Use it to adapt app-owned zone content, such as swapping a wide
|
|
1929
|
+
* `end` action for a compact one while the tabs overflow, instead of
|
|
1930
|
+
* measuring the bar's parts yourself.
|
|
1931
|
+
*/
|
|
1932
|
+
onFitChange?: (fit: TabBarFit) => void;
|
|
1889
1933
|
}
|
|
1890
1934
|
declare function reorderTabs<T>(items: readonly T[], getId: (item: T) => string, sourceId: string, targetId: string, position: TabDropPosition): T[];
|
|
1891
1935
|
/** Wire reordering and keyboard navigation while leaving controlled state in the application. */
|
|
1892
|
-
declare function wireTabBars(root: HTMLElement | Document, { onReorder, activation }: WireTabBarsOptions): () => void;
|
|
1936
|
+
declare function wireTabBars(root: HTMLElement | Document, { onReorder, activation, onFitChange }: WireTabBarsOptions): () => void;
|
|
1893
1937
|
|
|
1894
|
-
export { TabActivation, type TabDropPosition, type TabReorder, type TabReorderSource, type WireTabBarsOptions, reorderTabs, wireTabBars };
|
|
1938
|
+
export { TabActivation, type TabBarFit, type TabDropPosition, type TabReorder, type TabReorderSource, type WireTabBarsOptions, reorderTabs, wireTabBars };
|
|
1895
1939
|
```
|
|
1896
1940
|
|
|
1897
1941
|
## `@kerfjs/ui/wire-scroll-dividers`
|
|
@@ -2104,18 +2148,18 @@ export { wireSummaryRows };
|
|
|
2104
2148
|
## `@kerfjs/ui/nav-stack`
|
|
2105
2149
|
|
|
2106
2150
|
```ts
|
|
2107
|
-
export { c as NavStack, d as NavStackBottomToolbarPresentation, e as NavStackChromePresentation, N as NavStackProps, f as NavStackToolbarConfig, a as NavStackView, g as NavStackViewBottomToolbar, h as NavStackViewToolbar } from './nav-stack-
|
|
2151
|
+
export { c as NavStack, d as NavStackBottomToolbarPresentation, e as NavStackChromePresentation, N as NavStackProps, f as NavStackToolbarConfig, a as NavStackView, g as NavStackViewBottomToolbar, h as NavStackViewToolbar } from './nav-stack-vQ3ieerq.js';
|
|
2108
2152
|
import 'kerfjs';
|
|
2153
|
+
import './list.js';
|
|
2109
2154
|
import './semantic-content-BbzjvSu9.js';
|
|
2110
2155
|
import './extension-attributes-IJ4decoa.js';
|
|
2111
|
-
import './
|
|
2156
|
+
import './flex-alignment-4ms8ZbV8.js';
|
|
2112
2157
|
import './scroll-clearance-BikHljTc.js';
|
|
2113
|
-
import './
|
|
2158
|
+
import './sides-BPSWde0A.js';
|
|
2114
2159
|
import './css-values.js';
|
|
2160
|
+
import './pane.js';
|
|
2161
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2115
2162
|
import './surface-tint-DQgYCaP9.js';
|
|
2116
|
-
import './list.js';
|
|
2117
|
-
import './flex-alignment-4ms8ZbV8.js';
|
|
2118
|
-
import './sides-BPSWde0A.js';
|
|
2119
2163
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
2120
2164
|
import './toolbar.js';
|
|
2121
2165
|
import './lucide-icon.js';
|
|
@@ -2152,16 +2196,16 @@ export { type WireNavStackOptions, wireNavStack };
|
|
|
2152
2196
|
import * as kerfjs from 'kerfjs';
|
|
2153
2197
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
2154
2198
|
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2155
|
-
import { N as NavStackProps, a as NavStackView } from './nav-stack-
|
|
2199
|
+
import { N as NavStackProps, a as NavStackView } from './nav-stack-vQ3ieerq.js';
|
|
2156
2200
|
import { ResizableRegionProps } from './resizable-region.js';
|
|
2157
|
-
import './pane.js';
|
|
2158
|
-
import './scroll-clearance-BikHljTc.js';
|
|
2159
|
-
import './anchor-name-BZ1rpxaw.js';
|
|
2160
|
-
import './css-values.js';
|
|
2161
|
-
import './surface-tint-DQgYCaP9.js';
|
|
2162
2201
|
import './list.js';
|
|
2163
2202
|
import './flex-alignment-4ms8ZbV8.js';
|
|
2203
|
+
import './scroll-clearance-BikHljTc.js';
|
|
2164
2204
|
import './sides-BPSWde0A.js';
|
|
2205
|
+
import './css-values.js';
|
|
2206
|
+
import './pane.js';
|
|
2207
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
2208
|
+
import './surface-tint-DQgYCaP9.js';
|
|
2165
2209
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
2166
2210
|
import './toolbar.js';
|
|
2167
2211
|
import './lucide-icon.js';
|
|
@@ -2542,9 +2586,9 @@ export { Pane, type PaneAppearance, type PaneChromeDividers, type PaneChromePlac
|
|
|
2542
2586
|
|
|
2543
2587
|
```ts
|
|
2544
2588
|
import { SafeHtml } from 'kerfjs';
|
|
2589
|
+
import { b as NavPane, N as NavStackProps } from './nav-stack-vQ3ieerq.js';
|
|
2545
2590
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
2546
2591
|
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2547
|
-
import { b as NavPane, N as NavStackProps } from './nav-stack-DwxpXxqJ.js';
|
|
2548
2592
|
import { ListConfig } from './list.js';
|
|
2549
2593
|
import { PaneConfig } from './pane.js';
|
|
2550
2594
|
import { ResizableRegionSeparator, ResizableRegionCollapseMotion, ResizableRegionContentOverflow, ResizableRegionPresentation, ResizableRegionRestorePosition } from './resizable-region.js';
|
|
@@ -2954,10 +2998,10 @@ export { type WireWorkbenchOptions, type WireWorkbenchPanel, type WorkbenchPanel
|
|
|
2954
2998
|
|
|
2955
2999
|
```ts
|
|
2956
3000
|
import { SafeHtml } from 'kerfjs';
|
|
2957
|
-
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
2958
|
-
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2959
3001
|
import { P as PanelSide, a as PanelToolbar, b as PanelChromePlacement, c as PanelBottomToolbar, d as PanelToggle } from './panel-toolbar-vg6Ir5Dy.js';
|
|
2960
3002
|
export { e as collapsiblePanelToggleIcon } from './panel-toolbar-vg6Ir5Dy.js';
|
|
3003
|
+
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3004
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
2961
3005
|
import { ToolbarConfig } from './toolbar.js';
|
|
2962
3006
|
import { ListConfig } from './list.js';
|
|
2963
3007
|
import { PaneConfig } from './pane.js';
|
|
@@ -3542,7 +3586,7 @@ import './anchor-name-BZ1rpxaw.js';
|
|
|
3542
3586
|
import './css-values.js';
|
|
3543
3587
|
import './surface-tint-DQgYCaP9.js';
|
|
3544
3588
|
import './workbench.js';
|
|
3545
|
-
import './nav-stack-
|
|
3589
|
+
import './nav-stack-vQ3ieerq.js';
|
|
3546
3590
|
import './list.js';
|
|
3547
3591
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3548
3592
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -3699,7 +3743,7 @@ import './anchor-name-BZ1rpxaw.js';
|
|
|
3699
3743
|
import './css-values.js';
|
|
3700
3744
|
import './surface-tint-DQgYCaP9.js';
|
|
3701
3745
|
import './workbench.js';
|
|
3702
|
-
import './nav-stack-
|
|
3746
|
+
import './nav-stack-vQ3ieerq.js';
|
|
3703
3747
|
import './list.js';
|
|
3704
3748
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3705
3749
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -3756,7 +3800,7 @@ import './anchor-name-BZ1rpxaw.js';
|
|
|
3756
3800
|
import './css-values.js';
|
|
3757
3801
|
import './surface-tint-DQgYCaP9.js';
|
|
3758
3802
|
import './workbench.js';
|
|
3759
|
-
import './nav-stack-
|
|
3803
|
+
import './nav-stack-vQ3ieerq.js';
|
|
3760
3804
|
import './list.js';
|
|
3761
3805
|
import './flex-alignment-4ms8ZbV8.js';
|
|
3762
3806
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
@@ -3899,7 +3943,7 @@ type BadgeValue = number | string | true;
|
|
|
3899
3943
|
|
|
3900
3944
|
type SegmentedControlAppearance = 'filled' | 'outlined' | 'toolbar';
|
|
3901
3945
|
type SegmentedControlShape = 'rounded' | 'pill';
|
|
3902
|
-
type SegmentedControlSize = '
|
|
3946
|
+
type SegmentedControlSize = 'default' | 'compact' | /** @deprecated Use compact. */ 'small';
|
|
3903
3947
|
type SegmentedControlLayout = 'content' | 'equal';
|
|
3904
3948
|
interface SegmentedControlChoice<Value extends string = string> {
|
|
3905
3949
|
value: Value;
|
|
@@ -5311,259 +5355,26 @@ export { wireToolbarVisibility };
|
|
|
5311
5355
|
## `@kerfjs/ui/surface-scaffold`
|
|
5312
5356
|
|
|
5313
5357
|
```ts
|
|
5358
|
+
import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, c as DialogSurfaceBodyLayout } from './dialog-surface-controller-BeKZ3e8Z.js';
|
|
5359
|
+
export { D as DialogCloseSource, a as DialogRequestCloseDetail, b as DialogSurface, q as DialogSurfaceCloseEmphasis, d as DialogSurfaceFooterPresentation, e as DialogSurfaceHeaderPresentation, h as DialogSurfaceName, i as DialogSurfaceOptions, j as DialogSurfacePresentation, k as DialogSurfaceProps, l as DialogSurfaceRootAttributes, m as DialogSurfaceSheetMotion, r as DialogSurfaceStack, S as SurfaceInset, o as closeDialog, p as openDialog, s as syncDialogStack, w as wireDialogStack } from './dialog-surface-controller-BeKZ3e8Z.js';
|
|
5314
5360
|
import * as kerfjs from 'kerfjs';
|
|
5315
5361
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5316
|
-
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5317
|
-
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
5318
5362
|
import { CssLength } from './css-values.js';
|
|
5363
|
+
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
5364
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
5319
5365
|
|
|
5320
|
-
/** What asked an open DialogSurface to close. */
|
|
5321
|
-
type DialogCloseSource = 'close-button' | 'escape' | 'backdrop';
|
|
5322
|
-
/** The detail of a DialogSurface's cancelable `kui-request-close` event. */
|
|
5323
|
-
interface DialogRequestCloseDetail {
|
|
5324
|
-
readonly source: DialogCloseSource;
|
|
5325
|
-
}
|
|
5326
5366
|
/**
|
|
5327
|
-
*
|
|
5328
|
-
*
|
|
5329
|
-
*
|
|
5330
|
-
* measured chrome, sheet height, and keyboard clearance across application
|
|
5331
|
-
* re-renders. Opening an open dialog does nothing, and so does opening an
|
|
5332
|
-
* `embedded` one, which is always shown in flow.
|
|
5367
|
+
* Where a popover surface appears: `overlay` in the top layer, or `embedded`
|
|
5368
|
+
* in document flow (a static preview). Shared by PopoverDialogSurface and
|
|
5369
|
+
* PinnablePopoverSurface.
|
|
5333
5370
|
*/
|
|
5334
|
-
|
|
5335
|
-
/**
|
|
5336
|
-
* Close an open DialogSurface after its exit motion. The application's own
|
|
5337
|
-
* close is never refused: no `kui-request-close` is dispatched. The native
|
|
5338
|
-
* `close` event fires once it has closed. An `embedded` one never closes.
|
|
5339
|
-
*/
|
|
5340
|
-
declare function closeDialog(dialog: HTMLDialogElement): void;
|
|
5341
|
-
/**
|
|
5342
|
-
* Reconcile one controlled stack after rendering its DialogSurface layers.
|
|
5343
|
-
* Opening back-to-front establishes native top-layer order; unchanged layers
|
|
5344
|
-
* keep their DOM nodes and focus. The application owns `stack.open` and handles
|
|
5345
|
-
* `kui-request-close` to update that state before calling this again.
|
|
5346
|
-
*/
|
|
5347
|
-
declare function syncDialogStack(root: ParentNode): void;
|
|
5348
|
-
/** Follow a controlled stack's render updates until the returned stop runs. */
|
|
5349
|
-
declare function wireDialogStack(root: ParentNode): () => void;
|
|
5371
|
+
type SurfacePresentation = 'overlay' | 'embedded';
|
|
5350
5372
|
|
|
5351
|
-
type DialogSurfaceSize = 'small' | 'medium' | 'large';
|
|
5352
|
-
/**
|
|
5353
|
-
* How the dialog is presented: `modal` (default) centered on the screen,
|
|
5354
|
-
* `side-sheet` against the inline end, `fullscreen`, or `bottom-sheet`
|
|
5355
|
-
* attached to the bottom edge (square bottom corners, safe-area and
|
|
5356
|
-
* virtual-keyboard clearance, optionally user-resizable).
|
|
5357
|
-
*/
|
|
5358
|
-
type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen' | 'bottom-sheet'
|
|
5359
5373
|
/**
|
|
5360
|
-
*
|
|
5361
|
-
*
|
|
5362
|
-
* canvas, or a document; `openDialog` / `closeDialog` leave it alone and
|
|
5363
|
-
* `data-dialog-close` does not hide it.
|
|
5374
|
+
* Where a PopoverDialogSurface appears: the top layer, or in flow. An alias
|
|
5375
|
+
* of the shared {@link SurfacePresentation}.
|
|
5364
5376
|
*/
|
|
5365
|
-
|
|
5366
|
-
/**
|
|
5367
|
-
* How a bottom sheet appears or leaves: `slide` (default) moves the panel in
|
|
5368
|
-
* from, or out to, the bottom edge; `standard` keeps the dialog's
|
|
5369
|
-
* scale-and-fade. Both honor `prefers-reduced-motion`.
|
|
5370
|
-
*/
|
|
5371
|
-
type DialogSurfaceSheetMotion = 'slide' | 'standard';
|
|
5372
|
-
type SurfaceInset = 'none' | 'compact' | 'comfortable';
|
|
5373
|
-
type DialogSurfaceMaxHeight = CssLength | 'viewport';
|
|
5374
|
-
/** A definite modal height: a length or the full viewport, minus both gutters. */
|
|
5375
|
-
type DialogSurfaceHeight = CssLength | 'viewport';
|
|
5376
|
-
/**
|
|
5377
|
-
* How the dialog body lays out its children: `flow` (default) scrolls ordinary
|
|
5378
|
-
* content in the body; `fill` gives one child the body's whole height and
|
|
5379
|
-
* lets it own scrolling (a SplitView, a Pane, an editor); `fill-last` stacks
|
|
5380
|
-
* the leading children at their natural height and gives the last child the
|
|
5381
|
-
* remaining height to own its scrolling (a heading and notices above a
|
|
5382
|
-
* scrolling transcript).
|
|
5383
|
-
*/
|
|
5384
|
-
type DialogSurfaceBodyLayout = 'flow' | 'fill' | 'fill-last';
|
|
5385
|
-
/**
|
|
5386
|
-
* Where the dialog footer sits: `docked` (default) below the body, or
|
|
5387
|
-
* `floating` over the body's block end, inset from the panel's inline and
|
|
5388
|
-
* block-end edges on a transparent background (a chat composer).
|
|
5389
|
-
*/
|
|
5390
|
-
type DialogSurfaceFooterPresentation = 'docked' | 'floating';
|
|
5391
|
-
/**
|
|
5392
|
-
* Where the dialog header sits: `docked` (default) above the body, or
|
|
5393
|
-
* `floating` over the body's block-start edge on the translucent chrome
|
|
5394
|
-
* material, so content scrolls visibly beneath the title bar.
|
|
5395
|
-
*/
|
|
5396
|
-
type DialogSurfaceHeaderPresentation = 'docked' | 'floating';
|
|
5397
|
-
/** The built-in close control's visual weight; `normal` keeps the default. */
|
|
5398
|
-
type DialogSurfaceCloseEmphasis = 'normal' | 'quiet';
|
|
5399
|
-
/**
|
|
5400
|
-
* Application `data-*` identity on the DialogSurface root, such as
|
|
5401
|
-
* `data-key`; the surface's own configuration attributes stay protected.
|
|
5402
|
-
*/
|
|
5403
|
-
type DialogSurfaceRootAttributes = Readonly<Record<`data-${string}`, string | undefined>>;
|
|
5404
|
-
/**
|
|
5405
|
-
* The dialog's accessible name: its `label` text (also the default title), or
|
|
5406
|
-
* the id of an element that names it, such as a `heading` ToolbarText.
|
|
5407
|
-
*/
|
|
5408
|
-
type DialogSurfaceName = {
|
|
5409
|
-
label: string;
|
|
5410
|
-
labelledBy?: never;
|
|
5411
|
-
} | {
|
|
5412
|
-
label?: never;
|
|
5413
|
-
labelledBy: string;
|
|
5414
|
-
};
|
|
5415
|
-
type DialogSurfaceProps = DialogSurfaceName & DialogSurfaceOptions;
|
|
5416
|
-
/** Controlled state of one native modal layer inside a `wireDialogStack` root. */
|
|
5417
|
-
interface DialogSurfaceStack {
|
|
5418
|
-
/** Whether this layer belongs in the native top layer. */
|
|
5419
|
-
open: boolean;
|
|
5420
|
-
/** The one frontmost open layer; it owns modal focus and accessibility. */
|
|
5421
|
-
active: boolean;
|
|
5422
|
-
/** One-based order from the back to the front. */
|
|
5423
|
-
position: number;
|
|
5424
|
-
/** Number of layers in the stack, including closed layers still rendered. */
|
|
5425
|
-
count: number;
|
|
5426
|
-
/** Optional vertical offset for an inactive layer; omitted on phones. */
|
|
5427
|
-
offset?: CssLength;
|
|
5428
|
-
}
|
|
5429
|
-
interface DialogSurfaceOptions {
|
|
5430
|
-
/** The dialog's id, for `openDialog(document.getElementById(id))`. */
|
|
5431
|
-
id?: string;
|
|
5432
|
-
/**
|
|
5433
|
-
* Id of the element whose text is the dialog's accessible description,
|
|
5434
|
-
* such as the `heading` ToolbarText's `descriptionId` or app-owned summary
|
|
5435
|
-
* copy in the body; rendered as `aria-describedby` on the `<dialog>`.
|
|
5436
|
-
*/
|
|
5437
|
-
describedBy?: string;
|
|
5438
|
-
/**
|
|
5439
|
-
* An alert dialog: a confirmation that interrupts the person to report
|
|
5440
|
-
* something urgent or ask before a destructive action ("Delete this
|
|
5441
|
-
* topic?"). Renders `role="alertdialog"` on the `<dialog>`; set
|
|
5442
|
-
* `describedBy` to the element holding the message, and leave
|
|
5443
|
-
* `lightDismiss` off so the person answers it.
|
|
5444
|
-
*/
|
|
5445
|
-
alert?: boolean;
|
|
5446
|
-
/** The body content. */
|
|
5447
|
-
children: KerfUiContent;
|
|
5448
|
-
/** Controlled modal stack state; call `wireDialogStack` on the containing root. */
|
|
5449
|
-
stack?: DialogSurfaceStack;
|
|
5450
|
-
/**
|
|
5451
|
-
* Header title content in place of the `label` text, such as an xl
|
|
5452
|
-
* `ToolbarText` with a description. The dialog keeps its `label` (or
|
|
5453
|
-
* `labelledBy`) name.
|
|
5454
|
-
*/
|
|
5455
|
-
heading?: KerfUiContent;
|
|
5456
|
-
/** Controls before the close button in the header. */
|
|
5457
|
-
headerActions?: KerfUiContent;
|
|
5458
|
-
/** The footer, below the body (or floating over it); usually its buttons. */
|
|
5459
|
-
footer?: KerfUiContent;
|
|
5460
|
-
/**
|
|
5461
|
-
* Render no header: no title and no close button. The content then owns its
|
|
5462
|
-
* heading and a way to close (an element with `data-dialog-close`).
|
|
5463
|
-
*/
|
|
5464
|
-
withoutHeader?: boolean;
|
|
5465
|
-
/** Close on a press on the backdrop; otherwise the panel pulses. */
|
|
5466
|
-
lightDismiss?: boolean;
|
|
5467
|
-
/** The close button's accessible name (default `Close`). */
|
|
5468
|
-
closeLabel?: string;
|
|
5469
|
-
/** Soften the built-in close control without changing its 40px target. */
|
|
5470
|
-
closeEmphasis?: DialogSurfaceCloseEmphasis;
|
|
5471
|
-
size?: DialogSurfaceSize;
|
|
5472
|
-
presentation?: DialogSurfacePresentation;
|
|
5473
|
-
/** Modal preferred width. Takes precedence over size, within the viewport cap. */
|
|
5474
|
-
preferredWidth?: CssLength;
|
|
5475
|
-
bodyInset?: SurfaceInset;
|
|
5476
|
-
footerInset?: SurfaceInset;
|
|
5477
|
-
/** Modal edge clearance. Omit to retain Web Awesome's default viewport cap. */
|
|
5478
|
-
viewportGutter?: CssLength;
|
|
5479
|
-
/**
|
|
5480
|
-
* Modal height cap, bounded by the dynamic viewport minus both gutters. On a
|
|
5481
|
-
* bottom sheet, the cap (and the resize ceiling), bounded by the dynamic
|
|
5482
|
-
* viewport minus the top safe area and one gutter.
|
|
5483
|
-
*/
|
|
5484
|
-
maxHeight?: DialogSurfaceMaxHeight;
|
|
5485
|
-
/**
|
|
5486
|
-
* Modal definite height, bounded the same way, so a filling child has a
|
|
5487
|
-
* height to fill. Takes precedence over `maxHeight`. On a bottom sheet, the
|
|
5488
|
-
* height it opens at (the visible height above the safe area or keyboard).
|
|
5489
|
-
*/
|
|
5490
|
-
height?: DialogSurfaceHeight;
|
|
5491
|
-
/**
|
|
5492
|
-
* A resizable bottom sheet's resize floor (default 160px), the visible
|
|
5493
|
-
* height above the safe area or keyboard.
|
|
5494
|
-
*/
|
|
5495
|
-
minHeight?: CssLength;
|
|
5496
|
-
/**
|
|
5497
|
-
* Let the person resize a bottom sheet by its top grabber (drag, or the
|
|
5498
|
-
* arrow, Page Up/Down, Home and End keys) between `minHeight` and the
|
|
5499
|
-
* sheet's cap. Needs the `/register` entry; each opening starts at `height`
|
|
5500
|
-
* (or the content height). Ignored by other presentations.
|
|
5501
|
-
*/
|
|
5502
|
-
resizable?: boolean;
|
|
5503
|
-
/** How a bottom sheet appears (default `slide` up from the bottom edge). */
|
|
5504
|
-
enterMotion?: DialogSurfaceSheetMotion;
|
|
5505
|
-
/** How a bottom sheet is dismissed (default `slide` down off the bottom edge). */
|
|
5506
|
-
exitMotion?: DialogSurfaceSheetMotion;
|
|
5507
|
-
/**
|
|
5508
|
-
* Body layout (default `flow`); `fill` lets one child own the body and
|
|
5509
|
-
* `fill-last` stacks fixed rows above one filling last child.
|
|
5510
|
-
*/
|
|
5511
|
-
bodyLayout?: DialogSurfaceBodyLayout;
|
|
5512
|
-
/**
|
|
5513
|
-
* Header placement (default `docked`); `floating` lays the dialog's header
|
|
5514
|
-
* (its title and close control) over the body's block-start edge on the
|
|
5515
|
-
* translucent chrome material (`--kui-chrome-material-raised`, opaque under
|
|
5516
|
-
* `prefers-reduced-transparency`, increased contrast, forced colors, or
|
|
5517
|
-
* without `backdrop-filter`). The `/register` entry measures the header;
|
|
5518
|
-
* the body reserves that height before its own inset, so its first content
|
|
5519
|
-
* rests below the title bar. A `fill`/`fill-last` child that is the body's
|
|
5520
|
-
* only child and opts into block-start `scrollClearance` (a `List` or
|
|
5521
|
-
* `Pane`) takes the clearance inside its own scroll area instead, published
|
|
5522
|
-
* as `--kui-scroll-clearance-block-start`, so its content scrolls visibly
|
|
5523
|
-
* beneath the header. Unmeasured (without the register), the header stays
|
|
5524
|
-
* docked. Keep header text in the normal text color: quiet text can fall
|
|
5525
|
-
* below AA over the content passing beneath it.
|
|
5526
|
-
*/
|
|
5527
|
-
headerPresentation?: DialogSurfaceHeaderPresentation;
|
|
5528
|
-
/**
|
|
5529
|
-
* Footer placement (default `docked`); `floating` lays the footer over the
|
|
5530
|
-
* body's block end. The body reserves the footer's measured height so its
|
|
5531
|
-
* last content is never hidden beneath it. A `fill`/`fill-last` child that
|
|
5532
|
-
* opts into block-end `scrollClearance` (a `List` or `Pane`) takes that
|
|
5533
|
-
* clearance inside its own scroll area instead, published as
|
|
5534
|
-
* `--kui-scroll-clearance-block-end`, so its content scrolls visibly beneath
|
|
5535
|
-
* the transparent footer.
|
|
5536
|
-
*/
|
|
5537
|
-
footerPresentation?: DialogSurfaceFooterPresentation;
|
|
5538
|
-
/**
|
|
5539
|
-
* A floating footer's clearance from the panel's inline and block-end edges
|
|
5540
|
-
* (default the 16px container inset). Choose a phone value such as
|
|
5541
|
-
* `remify(8)` from `deviceClass()`; the scaffold adds no breakpoint.
|
|
5542
|
-
*/
|
|
5543
|
-
footerOffset?: CssLength;
|
|
5544
|
-
/**
|
|
5545
|
-
* Safe `data-*` identity on the root. Give sibling dialogs distinct
|
|
5546
|
-
* `data-key`s so a re-render morphs each surface into itself instead of
|
|
5547
|
-
* reusing one dialog's element for another (structurally identical roots
|
|
5548
|
-
* are otherwise matched by position).
|
|
5549
|
-
*/
|
|
5550
|
-
rootAttributes?: DialogSurfaceRootAttributes;
|
|
5551
|
-
className?: string;
|
|
5552
|
-
/** Native named-slot assignment when composed inside a web component. */
|
|
5553
|
-
slot?: string;
|
|
5554
|
-
}
|
|
5555
|
-
/**
|
|
5556
|
-
* A modal dialog: a native `<dialog>` with Kerf's header, body, and footer
|
|
5557
|
-
* chrome, sized and presented by its props. Render it closed, then open it
|
|
5558
|
-
* with `openDialog()` and close it with `closeDialog()`, the close button, an
|
|
5559
|
-
* element with `data-dialog-close`, Escape, or (with `lightDismiss`) a press
|
|
5560
|
-
* on the backdrop. Import `@kerfjs/ui/surface-scaffold/register` for the
|
|
5561
|
-
* floating header and footer measurement, the bottom sheet's keyboard
|
|
5562
|
-
* clearance and grabber, and re-render resilience while open.
|
|
5563
|
-
*/
|
|
5564
|
-
declare function DialogSurface({ id, label, labelledBy, describedBy, alert, heading, headerActions, footer, withoutHeader, lightDismiss, closeLabel, closeEmphasis, children, stack, size, presentation, preferredWidth, bodyInset, footerInset, viewportGutter, maxHeight, height, minHeight, resizable, enterMotion, exitMotion, bodyLayout, headerPresentation, footerPresentation, footerOffset, rootAttributes, className, slot, }: DialogSurfaceProps): kerfjs.SafeHtml;
|
|
5565
|
-
/** Where a PopoverDialogSurface appears: the top layer, or in flow. */
|
|
5566
|
-
type PopoverDialogSurfacePresentation = 'overlay' | 'embedded';
|
|
5377
|
+
type PopoverDialogSurfacePresentation = SurfacePresentation;
|
|
5567
5378
|
/** How an overlay PopoverDialogSurface closes: light dismiss, or its own controls. */
|
|
5568
5379
|
type PopoverDialogSurfaceDismiss = 'light' | 'manual';
|
|
5569
5380
|
/** Application `data-*` metadata on the surface root. */
|
|
@@ -5635,7 +5446,86 @@ type PopoverDialogSurfaceProps = PopoverDialogSurfaceName & {
|
|
|
5635
5446
|
* task must block the page.
|
|
5636
5447
|
*/
|
|
5637
5448
|
declare function PopoverDialogSurface({ id, children, label, labelledBy, describedBy, presentation, dismiss, anchorName, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, rootAttributes, className, slot, }: PopoverDialogSurfaceProps): kerfjs.SafeHtml;
|
|
5638
|
-
|
|
5449
|
+
|
|
5450
|
+
/**
|
|
5451
|
+
* Where a PinnablePopoverSurface appears: the top layer, or in flow. An alias
|
|
5452
|
+
* of the shared {@link SurfacePresentation}.
|
|
5453
|
+
*/
|
|
5454
|
+
type PinnablePopoverSurfacePresentation = SurfacePresentation;
|
|
5455
|
+
interface PinnablePopoverSurfaceProps {
|
|
5456
|
+
/**
|
|
5457
|
+
* The root id: what an opening control's `popoverTarget` names. The title
|
|
5458
|
+
* and the move description derive their ids from it.
|
|
5459
|
+
*/
|
|
5460
|
+
id: string;
|
|
5461
|
+
/** The title text: the surface's accessible name and its move handle's. */
|
|
5462
|
+
label: string;
|
|
5463
|
+
/**
|
|
5464
|
+
* Id of the element whose text describes the surface, rendered as
|
|
5465
|
+
* `aria-describedby` on the `role="dialog"` root.
|
|
5466
|
+
*/
|
|
5467
|
+
describedBy?: string;
|
|
5468
|
+
/** The body content, below the header. */
|
|
5469
|
+
children: KerfUiContent;
|
|
5470
|
+
/** Controls before the Pin and Close buttons in the header. */
|
|
5471
|
+
headerActions?: KerfUiContent;
|
|
5472
|
+
/**
|
|
5473
|
+
* `overlay` (default) is a native `popover="manual"` in the top layer that
|
|
5474
|
+
* `wirePinnablePopover` places, dismisses, and moves; `embedded` renders
|
|
5475
|
+
* the same surface in flow for a catalog or a design canvas.
|
|
5476
|
+
*/
|
|
5477
|
+
presentation?: PinnablePopoverSurfacePresentation;
|
|
5478
|
+
/**
|
|
5479
|
+
* Render it pinned: an `embedded` preview of the pinned state. An
|
|
5480
|
+
* overlay's pinned state belongs to `wirePinnablePopover`; pass `pinned`
|
|
5481
|
+
* there to restore it.
|
|
5482
|
+
*/
|
|
5483
|
+
pinned?: boolean;
|
|
5484
|
+
/** Preferred width preset: 400px, 560px (default), or 800px. */
|
|
5485
|
+
size?: DialogSurfaceSize;
|
|
5486
|
+
/** Preferred width; takes precedence over `size`, within the viewport cap. */
|
|
5487
|
+
preferredWidth?: CssLength;
|
|
5488
|
+
/** Definite height, bounded by the dynamic viewport minus both gutters. */
|
|
5489
|
+
height?: DialogSurfaceHeight;
|
|
5490
|
+
/** Height cap, bounded the same way, for a surface that sizes to content. */
|
|
5491
|
+
maxHeight?: DialogSurfaceMaxHeight;
|
|
5492
|
+
/**
|
|
5493
|
+
* Edge clearance on each side of the viewport (default 16px): the surface
|
|
5494
|
+
* is placed, dragged, and moved inside it.
|
|
5495
|
+
*/
|
|
5496
|
+
viewportGutter?: CssLength;
|
|
5497
|
+
/**
|
|
5498
|
+
* Body layout (default `flow`); `fill` lets one child own the body and
|
|
5499
|
+
* `fill-last` stacks fixed rows above one filling last child.
|
|
5500
|
+
*/
|
|
5501
|
+
bodyLayout?: DialogSurfaceBodyLayout;
|
|
5502
|
+
/** Add a bottom-edge handle that pins and resizes an overlay by drag or arrow key. */
|
|
5503
|
+
resizeFromBottom?: boolean;
|
|
5504
|
+
/** The Pin toggle's accessible name (default `Pin`). */
|
|
5505
|
+
pinLabel?: string;
|
|
5506
|
+
/** The close button's accessible name (default `Close`). */
|
|
5507
|
+
closeLabel?: string;
|
|
5508
|
+
/** The move handle's accessible description of the pointer and keyboard move. */
|
|
5509
|
+
moveDescription?: string;
|
|
5510
|
+
rootAttributes?: PopoverDialogSurfaceDataAttributes;
|
|
5511
|
+
className?: string;
|
|
5512
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
5513
|
+
slot?: string;
|
|
5514
|
+
}
|
|
5515
|
+
/**
|
|
5516
|
+
* A non-modal surface a person can pin and move. Transient by default: it
|
|
5517
|
+
* opens below the control that opened it and closes on Escape or a press
|
|
5518
|
+
* outside. Pinned (by its header Pin toggle or `pinPopover()`), it stays
|
|
5519
|
+
* open while the page is used, drags by its title, moves with the arrow
|
|
5520
|
+
* keys, resizes, and stays inside the viewport gutter. Open it with a
|
|
5521
|
+
* `popoverTarget` control or `showPopover()`, and call `wirePinnablePopover()`
|
|
5522
|
+
* once for its placement, dismissal, and movement; the application stores
|
|
5523
|
+
* what `onChange` reports. Use `PopoverDialogSurface` for a dialog that only
|
|
5524
|
+
* ever light-dismisses.
|
|
5525
|
+
*/
|
|
5526
|
+
declare function PinnablePopoverSurface({ id, label, describedBy, children, headerActions, presentation, pinned, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, resizeFromBottom, pinLabel, closeLabel, moveDescription, rootAttributes, className, slot, }: PinnablePopoverSurfaceProps): kerfjs.SafeHtml;
|
|
5527
|
+
|
|
5528
|
+
type PopupSurfaceInset = 'none' | 'compact' | 'default' | /** @deprecated Use default. */ 'standard' | /** @deprecated Use none. */ 'list-zero';
|
|
5639
5529
|
interface PopupSurfaceProps {
|
|
5640
5530
|
children: KerfUiContent;
|
|
5641
5531
|
inset?: PopupSurfaceInset;
|
|
@@ -5649,7 +5539,70 @@ interface PopupSurfaceProps {
|
|
|
5649
5539
|
/** Configure recurring Web Awesome dropdown-menu geometry without consumer ::part() CSS. */
|
|
5650
5540
|
declare function PopupSurface({ children, inset, className, slot, rootAttributes, }: PopupSurfaceProps): kerfjs.SafeHtml;
|
|
5651
5541
|
|
|
5652
|
-
|
|
5542
|
+
/**
|
|
5543
|
+
* Where a pinned PinnablePopoverSurface sits: its top-left corner in viewport
|
|
5544
|
+
* px, and the size the person resized it to (omitted until they do).
|
|
5545
|
+
*/
|
|
5546
|
+
interface PinnablePopoverPlacement {
|
|
5547
|
+
readonly x: number;
|
|
5548
|
+
readonly y: number;
|
|
5549
|
+
readonly width?: number;
|
|
5550
|
+
readonly height?: number;
|
|
5551
|
+
}
|
|
5552
|
+
/** What changed a PinnablePopoverSurface's pinned state or placement. */
|
|
5553
|
+
type PinnablePopoverChangeReason = 'pin' | 'unpin' | 'move' | 'resize';
|
|
5554
|
+
/** What `wirePinnablePopover`'s `onChange` reports. */
|
|
5555
|
+
interface PinnablePopoverChange {
|
|
5556
|
+
readonly pinned: boolean;
|
|
5557
|
+
/** The pinned placement; `null` while transient. */
|
|
5558
|
+
readonly placement: PinnablePopoverPlacement | null;
|
|
5559
|
+
readonly reason: PinnablePopoverChangeReason;
|
|
5560
|
+
}
|
|
5561
|
+
interface PinnablePopoverOptions {
|
|
5562
|
+
/**
|
|
5563
|
+
* The element a transient surface opens below (or above, without room
|
|
5564
|
+
* below). Default: the first control whose `popovertarget` names the
|
|
5565
|
+
* surface. Without one, a transient surface opens centered.
|
|
5566
|
+
*/
|
|
5567
|
+
anchor?: Element | (() => Element | null);
|
|
5568
|
+
/** Start pinned, as the application last stored it. */
|
|
5569
|
+
pinned?: boolean;
|
|
5570
|
+
/** The pinned placement to restore, as `onChange` last reported it. */
|
|
5571
|
+
placement?: PinnablePopoverPlacement;
|
|
5572
|
+
/** An arrow key's move, in px (default 8). */
|
|
5573
|
+
step?: number;
|
|
5574
|
+
/** A Shift+arrow move, in px (default 40). */
|
|
5575
|
+
largeStep?: number;
|
|
5576
|
+
/**
|
|
5577
|
+
* Called when the person (or `pinPopover`) pins, unpins, moves, or resizes
|
|
5578
|
+
* the surface. A clamp after a window resize is not reported: the surface
|
|
5579
|
+
* returns to the reported placement when the window has room again.
|
|
5580
|
+
*/
|
|
5581
|
+
onChange?: (change: PinnablePopoverChange) => void;
|
|
5582
|
+
}
|
|
5583
|
+
/** Whether `surface` is pinned (its rendered state when it is not wired). */
|
|
5584
|
+
declare function isPopoverPinned(surface: HTMLElement): boolean;
|
|
5585
|
+
/**
|
|
5586
|
+
* Pin (or, with `false`, unpin) a wired PinnablePopoverSurface, as its
|
|
5587
|
+
* header Pin toggle does. Pinned, it no longer closes on a press outside
|
|
5588
|
+
* and keeps where it is; unpinned, it returns below its anchor. Reported
|
|
5589
|
+
* through `onChange`. Does nothing to a surface that is not wired.
|
|
5590
|
+
*/
|
|
5591
|
+
declare function pinPopover(surface: HTMLElement, pinned?: boolean): void;
|
|
5592
|
+
/**
|
|
5593
|
+
* Give an overlay PinnablePopoverSurface its behavior: placement below its
|
|
5594
|
+
* anchor while transient, a press outside or Escape closing it; the Pin
|
|
5595
|
+
* toggle; a drag by the header and the arrow keys on the focused title
|
|
5596
|
+
* (Shift for `largeStep`) moving it, which pins it; a pinned surface's
|
|
5597
|
+
* resize; and a clamp inside the viewport gutter, kept after a window
|
|
5598
|
+
* resize. Pinned, it closes only by Escape (with focus inside it), its Close
|
|
5599
|
+
* button, or `hidePopover()`. The state survives application re-renders and
|
|
5600
|
+
* closing; `onChange` reports it for the application to store. An
|
|
5601
|
+
* `embedded` surface is left alone. Returns a disposer.
|
|
5602
|
+
*/
|
|
5603
|
+
declare function wirePinnablePopover(surface: HTMLElement, options?: PinnablePopoverOptions): () => void;
|
|
5604
|
+
|
|
5605
|
+
export { DialogSurfaceBodyLayout, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceSize, type PinnablePopoverChange, type PinnablePopoverChangeReason, type PinnablePopoverOptions, type PinnablePopoverPlacement, PinnablePopoverSurface, type PinnablePopoverSurfacePresentation, type PinnablePopoverSurfaceProps, PopoverDialogSurface, type PopoverDialogSurfaceDataAttributes, type PopoverDialogSurfaceDismiss, type PopoverDialogSurfacePresentation, type PopoverDialogSurfaceProps, PopupSurface, type PopupSurfaceInset, type PopupSurfaceProps, type SurfacePresentation, isPopoverPinned, pinPopover, wirePinnablePopover };
|
|
5653
5606
|
```
|
|
5654
5607
|
|
|
5655
5608
|
## `@kerfjs/ui/list-detail-dialog`
|
|
@@ -5659,17 +5612,17 @@ import * as kerfjs from 'kerfjs';
|
|
|
5659
5612
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5660
5613
|
import { CssLength } from './css-values.js';
|
|
5661
5614
|
import { SplitViewListWidth } from './split-view.js';
|
|
5662
|
-
import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-
|
|
5663
|
-
export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-
|
|
5615
|
+
import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, l as DialogSurfaceRootAttributes } from './dialog-surface-controller-BeKZ3e8Z.js';
|
|
5616
|
+
export { D as DialogCloseSource, a as DialogRequestCloseDetail, o as closeDialog, p as openDialog } from './dialog-surface-controller-BeKZ3e8Z.js';
|
|
5664
5617
|
import './extension-attributes-IJ4decoa.js';
|
|
5665
|
-
import './nav-stack-
|
|
5666
|
-
import './pane.js';
|
|
5667
|
-
import './scroll-clearance-BikHljTc.js';
|
|
5668
|
-
import './anchor-name-BZ1rpxaw.js';
|
|
5669
|
-
import './surface-tint-DQgYCaP9.js';
|
|
5618
|
+
import './nav-stack-vQ3ieerq.js';
|
|
5670
5619
|
import './list.js';
|
|
5671
5620
|
import './flex-alignment-4ms8ZbV8.js';
|
|
5621
|
+
import './scroll-clearance-BikHljTc.js';
|
|
5672
5622
|
import './sides-BPSWde0A.js';
|
|
5623
|
+
import './pane.js';
|
|
5624
|
+
import './anchor-name-BZ1rpxaw.js';
|
|
5625
|
+
import './surface-tint-DQgYCaP9.js';
|
|
5673
5626
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
5674
5627
|
import './toolbar.js';
|
|
5675
5628
|
import './lucide-icon.js';
|
|
@@ -5795,17 +5748,17 @@ import * as kerfjs from 'kerfjs';
|
|
|
5795
5748
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
5796
5749
|
import { CssLength } from './css-values.js';
|
|
5797
5750
|
import { WorkbenchMainBottomToolbar, WorkbenchPanel } from './workbench.js';
|
|
5798
|
-
import { DialogSurfaceSize, DialogSurfaceHeight, DialogSurfaceMaxHeight, DialogSurfaceRootAttributes } from './surface-
|
|
5799
|
-
export { DialogCloseSource, DialogRequestCloseDetail, closeDialog, openDialog } from './surface-
|
|
5751
|
+
import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, l as DialogSurfaceRootAttributes } from './dialog-surface-controller-BeKZ3e8Z.js';
|
|
5752
|
+
export { D as DialogCloseSource, a as DialogRequestCloseDetail, o as closeDialog, p as openDialog } from './dialog-surface-controller-BeKZ3e8Z.js';
|
|
5753
|
+
import './nav-stack-vQ3ieerq.js';
|
|
5754
|
+
import './list.js';
|
|
5800
5755
|
import './extension-attributes-IJ4decoa.js';
|
|
5801
|
-
import './
|
|
5802
|
-
import './pane.js';
|
|
5756
|
+
import './flex-alignment-4ms8ZbV8.js';
|
|
5803
5757
|
import './scroll-clearance-BikHljTc.js';
|
|
5758
|
+
import './sides-BPSWde0A.js';
|
|
5759
|
+
import './pane.js';
|
|
5804
5760
|
import './anchor-name-BZ1rpxaw.js';
|
|
5805
5761
|
import './surface-tint-DQgYCaP9.js';
|
|
5806
|
-
import './list.js';
|
|
5807
|
-
import './flex-alignment-4ms8ZbV8.js';
|
|
5808
|
-
import './sides-BPSWde0A.js';
|
|
5809
5762
|
import './panel-toolbar-vg6Ir5Dy.js';
|
|
5810
5763
|
import './toolbar.js';
|
|
5811
5764
|
import './lucide-icon.js';
|
|
@@ -6056,7 +6009,7 @@ import { CssLength } from './css-values.js';
|
|
|
6056
6009
|
|
|
6057
6010
|
type EditorFrameMode = 'source' | 'preview';
|
|
6058
6011
|
type EditorFrameAppearance = 'framed' | 'embedded';
|
|
6059
|
-
type EditorFrameInset = 'padded' | 'flush';
|
|
6012
|
+
type EditorFrameInset = 'none' | 'comfortable' | /** @deprecated Use comfortable. */ 'padded' | /** @deprecated Use none. */ 'flush';
|
|
6060
6013
|
interface EditorFrameProps {
|
|
6061
6014
|
/** A Toolbar or other fixed controls above the writing surface. */
|
|
6062
6015
|
toolbar?: KerfUiContent;
|
|
@@ -6180,8 +6133,8 @@ export { FramedList, type FramedListProps, FramedListRow, type FramedListRowProp
|
|
|
6180
6133
|
```ts
|
|
6181
6134
|
import * as kerfjs from 'kerfjs';
|
|
6182
6135
|
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6183
|
-
import { T as TreeListNode } from './tree-rows-
|
|
6184
|
-
export { a as TreeListRow, i as isExpandable, m as moveTreeListNode, t as treeListPath, b as treeListRows } from './tree-rows-
|
|
6136
|
+
import { T as TreeListNode } from './tree-rows-Bms5QJvG.js';
|
|
6137
|
+
export { a as TreeListRow, i as isExpandable, m as moveTreeListNode, t as treeListPath, b as treeListRows } from './tree-rows-Bms5QJvG.js';
|
|
6185
6138
|
import './semantic-content-BbzjvSu9.js';
|
|
6186
6139
|
|
|
6187
6140
|
interface TreeListProps {
|
|
@@ -6202,8 +6155,8 @@ interface TreeListProps {
|
|
|
6202
6155
|
* arrow or the keyboard (Right and Left). Flip the id in `expanded`.
|
|
6203
6156
|
*/
|
|
6204
6157
|
toggleAction: string;
|
|
6205
|
-
/** Row density: `
|
|
6206
|
-
density?: '
|
|
6158
|
+
/** Row density: `default` (44px rows) or `compact` (36px). */
|
|
6159
|
+
density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
|
|
6207
6160
|
className?: string;
|
|
6208
6161
|
/** Safe `data-*` metadata for the tree element. */
|
|
6209
6162
|
rootAttributes?: RootDataAttributes;
|
|
@@ -6228,7 +6181,7 @@ export { TreeList, TreeListNode, type TreeListProps };
|
|
|
6228
6181
|
import { SafeHtml } from 'kerfjs';
|
|
6229
6182
|
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6230
6183
|
import { CssLength } from './css-values.js';
|
|
6231
|
-
import { T as TreeListNode } from './tree-rows-
|
|
6184
|
+
import { T as TreeListNode } from './tree-rows-Bms5QJvG.js';
|
|
6232
6185
|
import './semantic-content-BbzjvSu9.js';
|
|
6233
6186
|
|
|
6234
6187
|
/** One column: the children of the node chosen in the column before it. */
|
|
@@ -6275,8 +6228,8 @@ interface ColumnExplorerProps {
|
|
|
6275
6228
|
minColumnWidth?: CssLength;
|
|
6276
6229
|
/** How much of the next column a paged layout shows. */
|
|
6277
6230
|
peek?: CssLength;
|
|
6278
|
-
/** Row density: `
|
|
6279
|
-
density?: '
|
|
6231
|
+
/** Row density: `default` or `compact`. */
|
|
6232
|
+
density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
|
|
6280
6233
|
className?: string;
|
|
6281
6234
|
/** Safe `data-*` metadata for the explorer element. */
|
|
6282
6235
|
rootAttributes?: RootDataAttributes;
|