@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,256 +1,23 @@
|
|
|
1
|
+
import { n as DialogSurfaceSize, f as DialogSurfaceHeight, g as DialogSurfaceMaxHeight, c as DialogSurfaceBodyLayout } from './dialog-surface-controller-BeKZ3e8Z.js';
|
|
2
|
+
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';
|
|
1
3
|
import * as kerfjs from 'kerfjs';
|
|
2
4
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3
|
-
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
4
|
-
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
5
5
|
import { CssLength } from './css-values.js';
|
|
6
|
+
import { A as AnchorName } from './anchor-name-BZ1rpxaw.js';
|
|
7
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
6
8
|
|
|
7
|
-
/** What asked an open DialogSurface to close. */
|
|
8
|
-
type DialogCloseSource = 'close-button' | 'escape' | 'backdrop';
|
|
9
|
-
/** The detail of a DialogSurface's cancelable `kui-request-close` event. */
|
|
10
|
-
interface DialogRequestCloseDetail {
|
|
11
|
-
readonly source: DialogCloseSource;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Open a DialogSurface as a modal dialog: in the top layer, the rest of the
|
|
15
|
-
* page inert, focus on its `autofocus` element or else the panel. It plays
|
|
16
|
-
* its enter motion and, with the controller installed here, keeps its
|
|
17
|
-
* measured chrome, sheet height, and keyboard clearance across application
|
|
18
|
-
* re-renders. Opening an open dialog does nothing, and so does opening an
|
|
19
|
-
* `embedded` one, which is always shown in flow.
|
|
20
|
-
*/
|
|
21
|
-
declare function openDialog(dialog: HTMLDialogElement): void;
|
|
22
|
-
/**
|
|
23
|
-
* Close an open DialogSurface after its exit motion. The application's own
|
|
24
|
-
* close is never refused: no `kui-request-close` is dispatched. The native
|
|
25
|
-
* `close` event fires once it has closed. An `embedded` one never closes.
|
|
26
|
-
*/
|
|
27
|
-
declare function closeDialog(dialog: HTMLDialogElement): void;
|
|
28
9
|
/**
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* `kui-request-close` to update that state before calling this again.
|
|
10
|
+
* Where a popover surface appears: `overlay` in the top layer, or `embedded`
|
|
11
|
+
* in document flow (a static preview). Shared by PopoverDialogSurface and
|
|
12
|
+
* PinnablePopoverSurface.
|
|
33
13
|
*/
|
|
34
|
-
|
|
35
|
-
/** Follow a controlled stack's render updates until the returned stop runs. */
|
|
36
|
-
declare function wireDialogStack(root: ParentNode): () => void;
|
|
14
|
+
type SurfacePresentation = 'overlay' | 'embedded';
|
|
37
15
|
|
|
38
|
-
type DialogSurfaceSize = 'small' | 'medium' | 'large';
|
|
39
|
-
/**
|
|
40
|
-
* How the dialog is presented: `modal` (default) centered on the screen,
|
|
41
|
-
* `side-sheet` against the inline end, `fullscreen`, or `bottom-sheet`
|
|
42
|
-
* attached to the bottom edge (square bottom corners, safe-area and
|
|
43
|
-
* virtual-keyboard clearance, optionally user-resizable).
|
|
44
|
-
*/
|
|
45
|
-
type DialogSurfacePresentation = 'modal' | 'side-sheet' | 'fullscreen' | 'bottom-sheet'
|
|
46
|
-
/**
|
|
47
|
-
* In flow, always shown: the same panel without the top layer or a
|
|
48
|
-
* backdrop, never wider than its container. For a catalog, a design
|
|
49
|
-
* canvas, or a document; `openDialog` / `closeDialog` leave it alone and
|
|
50
|
-
* `data-dialog-close` does not hide it.
|
|
51
|
-
*/
|
|
52
|
-
| 'embedded';
|
|
53
|
-
/**
|
|
54
|
-
* How a bottom sheet appears or leaves: `slide` (default) moves the panel in
|
|
55
|
-
* from, or out to, the bottom edge; `standard` keeps the dialog's
|
|
56
|
-
* scale-and-fade. Both honor `prefers-reduced-motion`.
|
|
57
|
-
*/
|
|
58
|
-
type DialogSurfaceSheetMotion = 'slide' | 'standard';
|
|
59
|
-
type SurfaceInset = 'none' | 'compact' | 'comfortable';
|
|
60
|
-
type DialogSurfaceMaxHeight = CssLength | 'viewport';
|
|
61
|
-
/** A definite modal height: a length or the full viewport, minus both gutters. */
|
|
62
|
-
type DialogSurfaceHeight = CssLength | 'viewport';
|
|
63
|
-
/**
|
|
64
|
-
* How the dialog body lays out its children: `flow` (default) scrolls ordinary
|
|
65
|
-
* content in the body; `fill` gives one child the body's whole height and
|
|
66
|
-
* lets it own scrolling (a SplitView, a Pane, an editor); `fill-last` stacks
|
|
67
|
-
* the leading children at their natural height and gives the last child the
|
|
68
|
-
* remaining height to own its scrolling (a heading and notices above a
|
|
69
|
-
* scrolling transcript).
|
|
70
|
-
*/
|
|
71
|
-
type DialogSurfaceBodyLayout = 'flow' | 'fill' | 'fill-last';
|
|
72
16
|
/**
|
|
73
|
-
* Where
|
|
74
|
-
*
|
|
75
|
-
* block-end edges on a transparent background (a chat composer).
|
|
17
|
+
* Where a PopoverDialogSurface appears: the top layer, or in flow. An alias
|
|
18
|
+
* of the shared {@link SurfacePresentation}.
|
|
76
19
|
*/
|
|
77
|
-
type
|
|
78
|
-
/**
|
|
79
|
-
* Where the dialog header sits: `docked` (default) above the body, or
|
|
80
|
-
* `floating` over the body's block-start edge on the translucent chrome
|
|
81
|
-
* material, so content scrolls visibly beneath the title bar.
|
|
82
|
-
*/
|
|
83
|
-
type DialogSurfaceHeaderPresentation = 'docked' | 'floating';
|
|
84
|
-
/** The built-in close control's visual weight; `normal` keeps the default. */
|
|
85
|
-
type DialogSurfaceCloseEmphasis = 'normal' | 'quiet';
|
|
86
|
-
/**
|
|
87
|
-
* Application `data-*` identity on the DialogSurface root, such as
|
|
88
|
-
* `data-key`; the surface's own configuration attributes stay protected.
|
|
89
|
-
*/
|
|
90
|
-
type DialogSurfaceRootAttributes = Readonly<Record<`data-${string}`, string | undefined>>;
|
|
91
|
-
/**
|
|
92
|
-
* The dialog's accessible name: its `label` text (also the default title), or
|
|
93
|
-
* the id of an element that names it, such as a `heading` ToolbarText.
|
|
94
|
-
*/
|
|
95
|
-
type DialogSurfaceName = {
|
|
96
|
-
label: string;
|
|
97
|
-
labelledBy?: never;
|
|
98
|
-
} | {
|
|
99
|
-
label?: never;
|
|
100
|
-
labelledBy: string;
|
|
101
|
-
};
|
|
102
|
-
type DialogSurfaceProps = DialogSurfaceName & DialogSurfaceOptions;
|
|
103
|
-
/** Controlled state of one native modal layer inside a `wireDialogStack` root. */
|
|
104
|
-
interface DialogSurfaceStack {
|
|
105
|
-
/** Whether this layer belongs in the native top layer. */
|
|
106
|
-
open: boolean;
|
|
107
|
-
/** The one frontmost open layer; it owns modal focus and accessibility. */
|
|
108
|
-
active: boolean;
|
|
109
|
-
/** One-based order from the back to the front. */
|
|
110
|
-
position: number;
|
|
111
|
-
/** Number of layers in the stack, including closed layers still rendered. */
|
|
112
|
-
count: number;
|
|
113
|
-
/** Optional vertical offset for an inactive layer; omitted on phones. */
|
|
114
|
-
offset?: CssLength;
|
|
115
|
-
}
|
|
116
|
-
interface DialogSurfaceOptions {
|
|
117
|
-
/** The dialog's id, for `openDialog(document.getElementById(id))`. */
|
|
118
|
-
id?: string;
|
|
119
|
-
/**
|
|
120
|
-
* Id of the element whose text is the dialog's accessible description,
|
|
121
|
-
* such as the `heading` ToolbarText's `descriptionId` or app-owned summary
|
|
122
|
-
* copy in the body; rendered as `aria-describedby` on the `<dialog>`.
|
|
123
|
-
*/
|
|
124
|
-
describedBy?: string;
|
|
125
|
-
/**
|
|
126
|
-
* An alert dialog: a confirmation that interrupts the person to report
|
|
127
|
-
* something urgent or ask before a destructive action ("Delete this
|
|
128
|
-
* topic?"). Renders `role="alertdialog"` on the `<dialog>`; set
|
|
129
|
-
* `describedBy` to the element holding the message, and leave
|
|
130
|
-
* `lightDismiss` off so the person answers it.
|
|
131
|
-
*/
|
|
132
|
-
alert?: boolean;
|
|
133
|
-
/** The body content. */
|
|
134
|
-
children: KerfUiContent;
|
|
135
|
-
/** Controlled modal stack state; call `wireDialogStack` on the containing root. */
|
|
136
|
-
stack?: DialogSurfaceStack;
|
|
137
|
-
/**
|
|
138
|
-
* Header title content in place of the `label` text, such as an xl
|
|
139
|
-
* `ToolbarText` with a description. The dialog keeps its `label` (or
|
|
140
|
-
* `labelledBy`) name.
|
|
141
|
-
*/
|
|
142
|
-
heading?: KerfUiContent;
|
|
143
|
-
/** Controls before the close button in the header. */
|
|
144
|
-
headerActions?: KerfUiContent;
|
|
145
|
-
/** The footer, below the body (or floating over it); usually its buttons. */
|
|
146
|
-
footer?: KerfUiContent;
|
|
147
|
-
/**
|
|
148
|
-
* Render no header: no title and no close button. The content then owns its
|
|
149
|
-
* heading and a way to close (an element with `data-dialog-close`).
|
|
150
|
-
*/
|
|
151
|
-
withoutHeader?: boolean;
|
|
152
|
-
/** Close on a press on the backdrop; otherwise the panel pulses. */
|
|
153
|
-
lightDismiss?: boolean;
|
|
154
|
-
/** The close button's accessible name (default `Close`). */
|
|
155
|
-
closeLabel?: string;
|
|
156
|
-
/** Soften the built-in close control without changing its 40px target. */
|
|
157
|
-
closeEmphasis?: DialogSurfaceCloseEmphasis;
|
|
158
|
-
size?: DialogSurfaceSize;
|
|
159
|
-
presentation?: DialogSurfacePresentation;
|
|
160
|
-
/** Modal preferred width. Takes precedence over size, within the viewport cap. */
|
|
161
|
-
preferredWidth?: CssLength;
|
|
162
|
-
bodyInset?: SurfaceInset;
|
|
163
|
-
footerInset?: SurfaceInset;
|
|
164
|
-
/** Modal edge clearance. Omit to retain Web Awesome's default viewport cap. */
|
|
165
|
-
viewportGutter?: CssLength;
|
|
166
|
-
/**
|
|
167
|
-
* Modal height cap, bounded by the dynamic viewport minus both gutters. On a
|
|
168
|
-
* bottom sheet, the cap (and the resize ceiling), bounded by the dynamic
|
|
169
|
-
* viewport minus the top safe area and one gutter.
|
|
170
|
-
*/
|
|
171
|
-
maxHeight?: DialogSurfaceMaxHeight;
|
|
172
|
-
/**
|
|
173
|
-
* Modal definite height, bounded the same way, so a filling child has a
|
|
174
|
-
* height to fill. Takes precedence over `maxHeight`. On a bottom sheet, the
|
|
175
|
-
* height it opens at (the visible height above the safe area or keyboard).
|
|
176
|
-
*/
|
|
177
|
-
height?: DialogSurfaceHeight;
|
|
178
|
-
/**
|
|
179
|
-
* A resizable bottom sheet's resize floor (default 160px), the visible
|
|
180
|
-
* height above the safe area or keyboard.
|
|
181
|
-
*/
|
|
182
|
-
minHeight?: CssLength;
|
|
183
|
-
/**
|
|
184
|
-
* Let the person resize a bottom sheet by its top grabber (drag, or the
|
|
185
|
-
* arrow, Page Up/Down, Home and End keys) between `minHeight` and the
|
|
186
|
-
* sheet's cap. Needs the `/register` entry; each opening starts at `height`
|
|
187
|
-
* (or the content height). Ignored by other presentations.
|
|
188
|
-
*/
|
|
189
|
-
resizable?: boolean;
|
|
190
|
-
/** How a bottom sheet appears (default `slide` up from the bottom edge). */
|
|
191
|
-
enterMotion?: DialogSurfaceSheetMotion;
|
|
192
|
-
/** How a bottom sheet is dismissed (default `slide` down off the bottom edge). */
|
|
193
|
-
exitMotion?: DialogSurfaceSheetMotion;
|
|
194
|
-
/**
|
|
195
|
-
* Body layout (default `flow`); `fill` lets one child own the body and
|
|
196
|
-
* `fill-last` stacks fixed rows above one filling last child.
|
|
197
|
-
*/
|
|
198
|
-
bodyLayout?: DialogSurfaceBodyLayout;
|
|
199
|
-
/**
|
|
200
|
-
* Header placement (default `docked`); `floating` lays the dialog's header
|
|
201
|
-
* (its title and close control) over the body's block-start edge on the
|
|
202
|
-
* translucent chrome material (`--kui-chrome-material-raised`, opaque under
|
|
203
|
-
* `prefers-reduced-transparency`, increased contrast, forced colors, or
|
|
204
|
-
* without `backdrop-filter`). The `/register` entry measures the header;
|
|
205
|
-
* the body reserves that height before its own inset, so its first content
|
|
206
|
-
* rests below the title bar. A `fill`/`fill-last` child that is the body's
|
|
207
|
-
* only child and opts into block-start `scrollClearance` (a `List` or
|
|
208
|
-
* `Pane`) takes the clearance inside its own scroll area instead, published
|
|
209
|
-
* as `--kui-scroll-clearance-block-start`, so its content scrolls visibly
|
|
210
|
-
* beneath the header. Unmeasured (without the register), the header stays
|
|
211
|
-
* docked. Keep header text in the normal text color: quiet text can fall
|
|
212
|
-
* below AA over the content passing beneath it.
|
|
213
|
-
*/
|
|
214
|
-
headerPresentation?: DialogSurfaceHeaderPresentation;
|
|
215
|
-
/**
|
|
216
|
-
* Footer placement (default `docked`); `floating` lays the footer over the
|
|
217
|
-
* body's block end. The body reserves the footer's measured height so its
|
|
218
|
-
* last content is never hidden beneath it. A `fill`/`fill-last` child that
|
|
219
|
-
* opts into block-end `scrollClearance` (a `List` or `Pane`) takes that
|
|
220
|
-
* clearance inside its own scroll area instead, published as
|
|
221
|
-
* `--kui-scroll-clearance-block-end`, so its content scrolls visibly beneath
|
|
222
|
-
* the transparent footer.
|
|
223
|
-
*/
|
|
224
|
-
footerPresentation?: DialogSurfaceFooterPresentation;
|
|
225
|
-
/**
|
|
226
|
-
* A floating footer's clearance from the panel's inline and block-end edges
|
|
227
|
-
* (default the 16px container inset). Choose a phone value such as
|
|
228
|
-
* `remify(8)` from `deviceClass()`; the scaffold adds no breakpoint.
|
|
229
|
-
*/
|
|
230
|
-
footerOffset?: CssLength;
|
|
231
|
-
/**
|
|
232
|
-
* Safe `data-*` identity on the root. Give sibling dialogs distinct
|
|
233
|
-
* `data-key`s so a re-render morphs each surface into itself instead of
|
|
234
|
-
* reusing one dialog's element for another (structurally identical roots
|
|
235
|
-
* are otherwise matched by position).
|
|
236
|
-
*/
|
|
237
|
-
rootAttributes?: DialogSurfaceRootAttributes;
|
|
238
|
-
className?: string;
|
|
239
|
-
/** Native named-slot assignment when composed inside a web component. */
|
|
240
|
-
slot?: string;
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
* A modal dialog: a native `<dialog>` with Kerf's header, body, and footer
|
|
244
|
-
* chrome, sized and presented by its props. Render it closed, then open it
|
|
245
|
-
* with `openDialog()` and close it with `closeDialog()`, the close button, an
|
|
246
|
-
* element with `data-dialog-close`, Escape, or (with `lightDismiss`) a press
|
|
247
|
-
* on the backdrop. Import `@kerfjs/ui/surface-scaffold/register` for the
|
|
248
|
-
* floating header and footer measurement, the bottom sheet's keyboard
|
|
249
|
-
* clearance and grabber, and re-render resilience while open.
|
|
250
|
-
*/
|
|
251
|
-
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;
|
|
252
|
-
/** Where a PopoverDialogSurface appears: the top layer, or in flow. */
|
|
253
|
-
type PopoverDialogSurfacePresentation = 'overlay' | 'embedded';
|
|
20
|
+
type PopoverDialogSurfacePresentation = SurfacePresentation;
|
|
254
21
|
/** How an overlay PopoverDialogSurface closes: light dismiss, or its own controls. */
|
|
255
22
|
type PopoverDialogSurfaceDismiss = 'light' | 'manual';
|
|
256
23
|
/** Application `data-*` metadata on the surface root. */
|
|
@@ -322,7 +89,86 @@ type PopoverDialogSurfaceProps = PopoverDialogSurfaceName & {
|
|
|
322
89
|
* task must block the page.
|
|
323
90
|
*/
|
|
324
91
|
declare function PopoverDialogSurface({ id, children, label, labelledBy, describedBy, presentation, dismiss, anchorName, size, preferredWidth, height, maxHeight, viewportGutter, bodyLayout, rootAttributes, className, slot, }: PopoverDialogSurfaceProps): kerfjs.SafeHtml;
|
|
325
|
-
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Where a PinnablePopoverSurface appears: the top layer, or in flow. An alias
|
|
95
|
+
* of the shared {@link SurfacePresentation}.
|
|
96
|
+
*/
|
|
97
|
+
type PinnablePopoverSurfacePresentation = SurfacePresentation;
|
|
98
|
+
interface PinnablePopoverSurfaceProps {
|
|
99
|
+
/**
|
|
100
|
+
* The root id: what an opening control's `popoverTarget` names. The title
|
|
101
|
+
* and the move description derive their ids from it.
|
|
102
|
+
*/
|
|
103
|
+
id: string;
|
|
104
|
+
/** The title text: the surface's accessible name and its move handle's. */
|
|
105
|
+
label: string;
|
|
106
|
+
/**
|
|
107
|
+
* Id of the element whose text describes the surface, rendered as
|
|
108
|
+
* `aria-describedby` on the `role="dialog"` root.
|
|
109
|
+
*/
|
|
110
|
+
describedBy?: string;
|
|
111
|
+
/** The body content, below the header. */
|
|
112
|
+
children: KerfUiContent;
|
|
113
|
+
/** Controls before the Pin and Close buttons in the header. */
|
|
114
|
+
headerActions?: KerfUiContent;
|
|
115
|
+
/**
|
|
116
|
+
* `overlay` (default) is a native `popover="manual"` in the top layer that
|
|
117
|
+
* `wirePinnablePopover` places, dismisses, and moves; `embedded` renders
|
|
118
|
+
* the same surface in flow for a catalog or a design canvas.
|
|
119
|
+
*/
|
|
120
|
+
presentation?: PinnablePopoverSurfacePresentation;
|
|
121
|
+
/**
|
|
122
|
+
* Render it pinned: an `embedded` preview of the pinned state. An
|
|
123
|
+
* overlay's pinned state belongs to `wirePinnablePopover`; pass `pinned`
|
|
124
|
+
* there to restore it.
|
|
125
|
+
*/
|
|
126
|
+
pinned?: boolean;
|
|
127
|
+
/** Preferred width preset: 400px, 560px (default), or 800px. */
|
|
128
|
+
size?: DialogSurfaceSize;
|
|
129
|
+
/** Preferred width; takes precedence over `size`, within the viewport cap. */
|
|
130
|
+
preferredWidth?: CssLength;
|
|
131
|
+
/** Definite height, bounded by the dynamic viewport minus both gutters. */
|
|
132
|
+
height?: DialogSurfaceHeight;
|
|
133
|
+
/** Height cap, bounded the same way, for a surface that sizes to content. */
|
|
134
|
+
maxHeight?: DialogSurfaceMaxHeight;
|
|
135
|
+
/**
|
|
136
|
+
* Edge clearance on each side of the viewport (default 16px): the surface
|
|
137
|
+
* is placed, dragged, and moved inside it.
|
|
138
|
+
*/
|
|
139
|
+
viewportGutter?: CssLength;
|
|
140
|
+
/**
|
|
141
|
+
* Body layout (default `flow`); `fill` lets one child own the body and
|
|
142
|
+
* `fill-last` stacks fixed rows above one filling last child.
|
|
143
|
+
*/
|
|
144
|
+
bodyLayout?: DialogSurfaceBodyLayout;
|
|
145
|
+
/** Add a bottom-edge handle that pins and resizes an overlay by drag or arrow key. */
|
|
146
|
+
resizeFromBottom?: boolean;
|
|
147
|
+
/** The Pin toggle's accessible name (default `Pin`). */
|
|
148
|
+
pinLabel?: string;
|
|
149
|
+
/** The close button's accessible name (default `Close`). */
|
|
150
|
+
closeLabel?: string;
|
|
151
|
+
/** The move handle's accessible description of the pointer and keyboard move. */
|
|
152
|
+
moveDescription?: string;
|
|
153
|
+
rootAttributes?: PopoverDialogSurfaceDataAttributes;
|
|
154
|
+
className?: string;
|
|
155
|
+
/** Native named-slot assignment when composed inside a web component. */
|
|
156
|
+
slot?: string;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* A non-modal surface a person can pin and move. Transient by default: it
|
|
160
|
+
* opens below the control that opened it and closes on Escape or a press
|
|
161
|
+
* outside. Pinned (by its header Pin toggle or `pinPopover()`), it stays
|
|
162
|
+
* open while the page is used, drags by its title, moves with the arrow
|
|
163
|
+
* keys, resizes, and stays inside the viewport gutter. Open it with a
|
|
164
|
+
* `popoverTarget` control or `showPopover()`, and call `wirePinnablePopover()`
|
|
165
|
+
* once for its placement, dismissal, and movement; the application stores
|
|
166
|
+
* what `onChange` reports. Use `PopoverDialogSurface` for a dialog that only
|
|
167
|
+
* ever light-dismisses.
|
|
168
|
+
*/
|
|
169
|
+
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;
|
|
170
|
+
|
|
171
|
+
type PopupSurfaceInset = 'none' | 'compact' | 'default' | /** @deprecated Use default. */ 'standard' | /** @deprecated Use none. */ 'list-zero';
|
|
326
172
|
interface PopupSurfaceProps {
|
|
327
173
|
children: KerfUiContent;
|
|
328
174
|
inset?: PopupSurfaceInset;
|
|
@@ -336,4 +182,67 @@ interface PopupSurfaceProps {
|
|
|
336
182
|
/** Configure recurring Web Awesome dropdown-menu geometry without consumer ::part() CSS. */
|
|
337
183
|
declare function PopupSurface({ children, inset, className, slot, rootAttributes, }: PopupSurfaceProps): kerfjs.SafeHtml;
|
|
338
184
|
|
|
339
|
-
|
|
185
|
+
/**
|
|
186
|
+
* Where a pinned PinnablePopoverSurface sits: its top-left corner in viewport
|
|
187
|
+
* px, and the size the person resized it to (omitted until they do).
|
|
188
|
+
*/
|
|
189
|
+
interface PinnablePopoverPlacement {
|
|
190
|
+
readonly x: number;
|
|
191
|
+
readonly y: number;
|
|
192
|
+
readonly width?: number;
|
|
193
|
+
readonly height?: number;
|
|
194
|
+
}
|
|
195
|
+
/** What changed a PinnablePopoverSurface's pinned state or placement. */
|
|
196
|
+
type PinnablePopoverChangeReason = 'pin' | 'unpin' | 'move' | 'resize';
|
|
197
|
+
/** What `wirePinnablePopover`'s `onChange` reports. */
|
|
198
|
+
interface PinnablePopoverChange {
|
|
199
|
+
readonly pinned: boolean;
|
|
200
|
+
/** The pinned placement; `null` while transient. */
|
|
201
|
+
readonly placement: PinnablePopoverPlacement | null;
|
|
202
|
+
readonly reason: PinnablePopoverChangeReason;
|
|
203
|
+
}
|
|
204
|
+
interface PinnablePopoverOptions {
|
|
205
|
+
/**
|
|
206
|
+
* The element a transient surface opens below (or above, without room
|
|
207
|
+
* below). Default: the first control whose `popovertarget` names the
|
|
208
|
+
* surface. Without one, a transient surface opens centered.
|
|
209
|
+
*/
|
|
210
|
+
anchor?: Element | (() => Element | null);
|
|
211
|
+
/** Start pinned, as the application last stored it. */
|
|
212
|
+
pinned?: boolean;
|
|
213
|
+
/** The pinned placement to restore, as `onChange` last reported it. */
|
|
214
|
+
placement?: PinnablePopoverPlacement;
|
|
215
|
+
/** An arrow key's move, in px (default 8). */
|
|
216
|
+
step?: number;
|
|
217
|
+
/** A Shift+arrow move, in px (default 40). */
|
|
218
|
+
largeStep?: number;
|
|
219
|
+
/**
|
|
220
|
+
* Called when the person (or `pinPopover`) pins, unpins, moves, or resizes
|
|
221
|
+
* the surface. A clamp after a window resize is not reported: the surface
|
|
222
|
+
* returns to the reported placement when the window has room again.
|
|
223
|
+
*/
|
|
224
|
+
onChange?: (change: PinnablePopoverChange) => void;
|
|
225
|
+
}
|
|
226
|
+
/** Whether `surface` is pinned (its rendered state when it is not wired). */
|
|
227
|
+
declare function isPopoverPinned(surface: HTMLElement): boolean;
|
|
228
|
+
/**
|
|
229
|
+
* Pin (or, with `false`, unpin) a wired PinnablePopoverSurface, as its
|
|
230
|
+
* header Pin toggle does. Pinned, it no longer closes on a press outside
|
|
231
|
+
* and keeps where it is; unpinned, it returns below its anchor. Reported
|
|
232
|
+
* through `onChange`. Does nothing to a surface that is not wired.
|
|
233
|
+
*/
|
|
234
|
+
declare function pinPopover(surface: HTMLElement, pinned?: boolean): void;
|
|
235
|
+
/**
|
|
236
|
+
* Give an overlay PinnablePopoverSurface its behavior: placement below its
|
|
237
|
+
* anchor while transient, a press outside or Escape closing it; the Pin
|
|
238
|
+
* toggle; a drag by the header and the arrow keys on the focused title
|
|
239
|
+
* (Shift for `largeStep`) moving it, which pins it; a pinned surface's
|
|
240
|
+
* resize; and a clamp inside the viewport gutter, kept after a window
|
|
241
|
+
* resize. Pinned, it closes only by Escape (with focus inside it), its Close
|
|
242
|
+
* button, or `hidePopover()`. The state survives application re-renders and
|
|
243
|
+
* closing; `onChange` reports it for the application to store. An
|
|
244
|
+
* `embedded` surface is left alone. Returns a disposer.
|
|
245
|
+
*/
|
|
246
|
+
declare function wirePinnablePopover(surface: HTMLElement, options?: PinnablePopoverOptions): () => void;
|
|
247
|
+
|
|
248
|
+
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 };
|
package/dist/surface-scaffold.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { DialogSurface, PopoverDialogSurface, PopupSurface } from './chunk-
|
|
2
|
-
export { closeDialog, openDialog, syncDialogStack, wireDialogStack } from './chunk-
|
|
1
|
+
export { DialogSurface, PinnablePopoverSurface, PopoverDialogSurface, PopupSurface, isPopoverPinned, pinPopover, wirePinnablePopover } from './chunk-HD7ZLISK.js';
|
|
2
|
+
export { closeDialog, openDialog, syncDialogStack, wireDialogStack } from './chunk-UQ4FRQ6M.js';
|
|
3
|
+
|
|
3
4
|
|
|
4
5
|
|
|
5
6
|
|
|
@@ -15,14 +15,14 @@ type ToolbarControlGroupTileTone = 'neutral' | 'brand' | 'success' | 'warning' |
|
|
|
15
15
|
type ToolbarControlGroupButtonAppearance = 'plain' | 'push';
|
|
16
16
|
type ToolbarControlGroupShape = 'pill' | 'rounded';
|
|
17
17
|
type ToolbarControlGroupSize = 'default' | 'compact';
|
|
18
|
-
type ToolbarControlGroupDensity = 'comfortable' | 'tight';
|
|
18
|
+
type ToolbarControlGroupDensity = 'default' | 'compact' | /** @deprecated Use default. */ 'comfortable' | /** @deprecated Use compact. */ 'tight';
|
|
19
19
|
type ToolbarControlGroupContent = 'icon' | 'text' | 'mixed' | 'avatar' | 'search';
|
|
20
20
|
type ToolbarControlGroupFocusRing = 'control' | 'outline' | 'halo';
|
|
21
21
|
type ToolbarControlGroupSelectedChrome = 'raised' | 'filled' | 'outline' | 'none';
|
|
22
22
|
type ToolbarControlGroupSelectedTone = 'brand' | 'neutral' | 'pop';
|
|
23
23
|
type ToolbarControlGroupOverflow = 'visible' | 'scroll' | 'wrap';
|
|
24
24
|
type ToolbarControlGroupExpandedOverflow = 'clip' | 'visible';
|
|
25
|
-
type ToolbarControlGroupMenuInset = '
|
|
25
|
+
type ToolbarControlGroupMenuInset = 'none' | 'compact' | 'default' | /** @deprecated Use default. */ 'standard' | /** @deprecated Use none. */ 'list-zero';
|
|
26
26
|
type ToolbarControlGroupVisibility = 'always' | 'compact-only' | 'hide-collapsed-tiny' | 'yield-to-expanded-sibling' | 'yield-to-priority-row';
|
|
27
27
|
type ToolbarControlGroupSizing = 'content' | 'grow' | 'fill';
|
|
28
28
|
type ToolbarControlGroupPlacement = 'start' | 'end';
|
package/dist/toolbar.d.ts
CHANGED
|
@@ -54,11 +54,16 @@ interface ToolbarProps {
|
|
|
54
54
|
* groups onto further rows.
|
|
55
55
|
* - `wrap` keeps one row while every zone fits at its natural width, and
|
|
56
56
|
* otherwise moves the trailing zone below a whole leading identity.
|
|
57
|
+
* - `wrap-groups` is for a leading zone of control groups rather than a
|
|
58
|
+
* title: each leading group shares a row with the trailing zone while it
|
|
59
|
+
* fits and otherwise moves, whole, to the next row; the trailing zone
|
|
60
|
+
* stays at the inline end. The leading zone draws no box of its own, so
|
|
61
|
+
* its padding and minimum-width tokens do not apply.
|
|
57
62
|
* - `center-priority` gives an expanded center control the full row.
|
|
58
63
|
* - `trailing-priority` moves an expanded trailing control to a full row
|
|
59
64
|
* below the leading identity at `responsiveAt`.
|
|
60
65
|
*/
|
|
61
|
-
responsive?: 'none' | 'stack' | 'wrap' | 'center-priority' | 'trailing-priority';
|
|
66
|
+
responsive?: 'none' | 'stack' | 'wrap' | 'wrap-groups' | 'center-priority' | 'trailing-priority';
|
|
62
67
|
/** Container width at which `stack` or `trailing-priority` activates. */
|
|
63
68
|
responsiveAt?: 'compact' | 'narrow';
|
|
64
69
|
/**
|
package/dist/toolbar.js
CHANGED
package/dist/tree-list.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as kerfjs from 'kerfjs';
|
|
2
2
|
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3
|
-
import { T as TreeListNode } from './tree-rows-
|
|
4
|
-
export { a as TreeListRow, i as isExpandable, m as moveTreeListNode, t as treeListPath, b as treeListRows } from './tree-rows-
|
|
3
|
+
import { T as TreeListNode } from './tree-rows-Bms5QJvG.js';
|
|
4
|
+
export { a as TreeListRow, i as isExpandable, m as moveTreeListNode, t as treeListPath, b as treeListRows } from './tree-rows-Bms5QJvG.js';
|
|
5
5
|
import './semantic-content-BbzjvSu9.js';
|
|
6
6
|
|
|
7
7
|
interface TreeListProps {
|
|
@@ -22,8 +22,8 @@ interface TreeListProps {
|
|
|
22
22
|
* arrow or the keyboard (Right and Left). Flip the id in `expanded`.
|
|
23
23
|
*/
|
|
24
24
|
toggleAction: string;
|
|
25
|
-
/** Row density: `
|
|
26
|
-
density?: '
|
|
25
|
+
/** Row density: `default` (44px rows) or `compact` (36px). */
|
|
26
|
+
density?: 'default' | 'compact' | /** @deprecated Use default. */ 'standard';
|
|
27
27
|
className?: string;
|
|
28
28
|
/** Safe `data-*` metadata for the tree element. */
|
|
29
29
|
rootAttributes?: RootDataAttributes;
|
package/dist/tree-list.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { TreeList } from './chunk-
|
|
2
|
-
export { isExpandable, moveTreeListNode, treeListPath, treeListRows } from './chunk-
|
|
1
|
+
export { TreeList } from './chunk-GQUDCWOD.js';
|
|
2
|
+
export { isExpandable, moveTreeListNode, treeListPath, treeListRows } from './chunk-7U65KLDL.js';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SafeHtml } from 'kerfjs';
|
|
2
2
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3
|
+
import { R as RootDataAttributes } from './extension-attributes-IJ4decoa.js';
|
|
3
4
|
|
|
4
5
|
/** One node of a hierarchy the application owns. */
|
|
5
6
|
interface TreeListNode {
|
|
@@ -14,6 +15,8 @@ interface TreeListNode {
|
|
|
14
15
|
readonly disabled?: boolean;
|
|
15
16
|
/** Drags with `wireTreeList`'s `onMove` (KF-WXP6AB). */
|
|
16
17
|
readonly draggable?: boolean;
|
|
18
|
+
/** Safe data attributes carried by this row in either tree presentation. */
|
|
19
|
+
readonly rootAttributes?: RootDataAttributes;
|
|
17
20
|
/** Child nodes. An empty array is an expandable node with no children yet. */
|
|
18
21
|
readonly children?: readonly TreeListNode[];
|
|
19
22
|
/**
|
package/dist/wire-catalog.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import './anchor-name-BZ1rpxaw.js';
|
|
|
10
10
|
import './css-values.js';
|
|
11
11
|
import './surface-tint-DQgYCaP9.js';
|
|
12
12
|
import './workbench.js';
|
|
13
|
-
import './nav-stack-
|
|
13
|
+
import './nav-stack-vQ3ieerq.js';
|
|
14
14
|
import './list.js';
|
|
15
15
|
import './flex-alignment-4ms8ZbV8.js';
|
|
16
16
|
import './panel-toolbar-vg6Ir5Dy.js';
|
package/dist/wire-catalog.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { wireWorkbench } from './chunk-
|
|
1
|
+
import { wireWorkbench } from './chunk-OHT2AXER.js';
|
|
2
|
+
|
|
3
|
+
import { wireScrollDividers } from './chunk-M64TAGZY.js';
|
|
2
4
|
|
|
3
|
-
import { wireScrollDividers } from './chunk-VNT4MXR5.js';
|
|
4
5
|
import { loadUxReviewProject } from './chunk-6C6DLP3W.js';
|
|
5
6
|
|
|
6
7
|
import { readSearchField } from './chunk-UD5KHQOH.js';
|