@kerfjs/ui 5.0.0-beta.135 → 5.0.0-beta.137
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 +19 -0
- package/ai/component-catalog.json +17 -5
- package/ai/component-composition-rules.json +7 -0
- package/ai/component-composition.json +18 -0
- package/ai/components/empty-state.md +1 -0
- package/ai/components/popup-menu.md +1 -1
- package/ai/components/text.md +7 -4
- package/ai/public-api-signatures-v1.md +99 -21
- package/ai/skill.md +10 -0
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/dist/catalog-library.d.ts +2 -2
- package/dist/catalog-resources.d.ts +1 -1
- package/dist/catalog.d.ts +3 -3
- package/dist/catalog.js +4 -4
- package/dist/{chunk-OW2ODKHN.js → chunk-44C2K6V6.js} +33 -9
- package/dist/chunk-44C2K6V6.js.map +1 -0
- package/dist/{chunk-IXT2ARIM.js → chunk-6FQFZVRV.js} +2 -2
- package/dist/{chunk-IXT2ARIM.js.map → chunk-6FQFZVRV.js.map} +1 -1
- package/dist/{chunk-LH5V6XGH.js → chunk-7G6BSG4B.js} +1 -1
- package/dist/{chunk-LH5V6XGH.js.map → chunk-7G6BSG4B.js.map} +1 -1
- package/dist/{chunk-XNSYDA6G.js → chunk-B4UWDIUL.js} +5 -5
- package/dist/{chunk-XNSYDA6G.js.map → chunk-B4UWDIUL.js.map} +1 -1
- package/dist/{chunk-42NLFCIN.js → chunk-D4KXWVNG.js} +33 -4
- package/dist/chunk-D4KXWVNG.js.map +1 -0
- package/dist/{chunk-LK3QJHVX.js → chunk-GP3G3ZY3.js} +1 -1
- package/dist/chunk-GP3G3ZY3.js.map +1 -0
- package/dist/{chunk-QNB5DKKP.js → chunk-LMBSIRGQ.js} +2 -2
- package/dist/{chunk-QNB5DKKP.js.map → chunk-LMBSIRGQ.js.map} +1 -1
- package/dist/{chunk-YRQ4KKLG.js → chunk-NPPL3NXM.js} +16 -2
- package/dist/chunk-NPPL3NXM.js.map +1 -0
- package/dist/{chunk-MPT6Y7Z2.js → chunk-QOZABB23.js} +29 -1
- package/dist/chunk-QOZABB23.js.map +1 -0
- package/dist/{chunk-EI55KWHP.js → chunk-QWB4FEWD.js} +2 -1
- package/dist/chunk-QWB4FEWD.js.map +1 -0
- package/dist/{chunk-ZDI5I2HT.js → chunk-RMGHAIV5.js} +3 -3
- package/dist/{chunk-ZDI5I2HT.js.map → chunk-RMGHAIV5.js.map} +1 -1
- package/dist/{chunk-QNA27ABY.js → chunk-TNHJMOWJ.js} +4 -2
- package/dist/chunk-TNHJMOWJ.js.map +1 -0
- package/dist/{chunk-LSFPZR52.js → chunk-WBNUX4LA.js} +2 -2
- package/dist/{chunk-LSFPZR52.js.map → chunk-WBNUX4LA.js.map} +1 -1
- package/dist/{chunk-XZ253TGP.js → chunk-XZWEKC5F.js} +27 -5
- package/dist/chunk-XZWEKC5F.js.map +1 -0
- package/dist/{chunk-QWAAR5JX.js → chunk-ZS4WBHQG.js} +3 -3
- package/dist/{chunk-QWAAR5JX.js.map → chunk-ZS4WBHQG.js.map} +1 -1
- package/dist/collapsible-panel.js +2 -2
- package/dist/column-explorer.js +1 -1
- package/dist/{compose-B_GFfFhm.d.ts → compose-Qkitwg3x.d.ts} +1 -1
- package/dist/empty-state.d.ts +3 -1
- package/dist/empty-state.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -9
- package/dist/list-action-row.js +1 -1
- package/dist/list-detail-dialog.js +2 -2
- package/dist/list-header.d.ts +41 -1
- package/dist/list-header.js +1 -1
- package/dist/message-composer.js +1 -1
- package/dist/nav-stack.js +1 -1
- package/dist/pane.d.ts +2 -2
- package/dist/pane.js +1 -1
- package/dist/popup-menu.d.ts +12 -1
- package/dist/popup-menu.js +1 -1
- package/dist/split-middle-BNI0Rni-.d.ts +9 -0
- package/dist/split-view.js +1 -1
- package/dist/styles/backdrop-image.css +26 -0
- package/dist/styles/color-picker.css +4 -0
- package/dist/styles/components/actions/toolbar-control-group/toolbar-control-group.css +15 -0
- package/dist/styles/components/collections/list-header/list-header.css +60 -4
- package/dist/styles/components/feedback/empty-state/empty-state.css +7 -0
- package/dist/styles/components/forms/color-picker/color-picker.css +4 -0
- package/dist/styles/components/layout/pane/pane.css +6 -0
- package/dist/styles/components/navigation/nav-stack/nav-stack.css +12 -0
- package/dist/styles/components/navigation/paged-view/paged-view.css +4 -0
- package/dist/styles/components/navigation/tab-bar-item/tab-bar-item.css +31 -1
- package/dist/styles/components/navigation/tab-navigator/tab-navigator.css +6 -0
- package/dist/styles/components/surfaces/backdrop-image/backdrop-image.css +22 -0
- package/dist/styles/components/surfaces/scroll-effect/scroll-effect.css +4 -0
- package/dist/styles/components/typography/text/text.css +64 -2
- package/dist/styles/content-item.css +26 -0
- package/dist/styles/empty-state.css +7 -0
- package/dist/styles/foundation.css +28 -4
- package/dist/styles/list-header.css +60 -4
- package/dist/styles/nav-stack.css +12 -0
- package/dist/styles/paged-view.css +4 -0
- package/dist/styles/pane.css +6 -0
- package/dist/styles/scroll-effect.css +4 -0
- package/dist/styles/tab-bar-item.css +31 -1
- package/dist/styles/tab-navigator.css +6 -0
- package/dist/styles/text.css +64 -2
- package/dist/styles/toolbar-control-group.css +15 -0
- package/dist/styles/webawesome.css +19 -0
- package/dist/tab-bar-item.d.ts +9 -4
- package/dist/tab-bar-item.js +1 -1
- package/dist/text.d.ts +24 -4
- package/dist/text.js +1 -1
- package/dist/{types-CuKf5G87.d.ts → types-PGGOsJug.d.ts} +2 -1
- package/dist/wire-catalog.d.ts +1 -1
- package/dist/wire-search-fields.js +1 -1
- package/dist/wire-tag-fields.js +1 -1
- package/dist/workbench-dialog.js +1 -1
- package/dist/workbench.js +1 -1
- package/docs/accessibility.md +1 -1
- package/docs/component-selection.md +15 -1
- package/docs/design/sketch/Kerf-UI.sketch +0 -0
- package/docs/design/sketch/README.md +13 -8
- package/docs/design/sketch/unified/README.md +23 -10
- package/docs/design/sketch/unified/pages/advanced.png +0 -0
- package/docs/design/sketch/unified/pages/content.png +0 -0
- package/docs/design/sketch/unified/pages/toolbar.png +0 -0
- package/docs/design/sketch/unified/variant-link-investigation.md +45 -0
- package/docs/design/templates.md +1 -1
- package/docs/layout.md +7 -0
- package/docs/workbench.md +6 -1
- package/doctor/eslint-diagnostics.d.mts +4 -0
- package/doctor/eslint-diagnostics.mjs +13 -0
- package/doctor/index.mjs +2 -1
- package/package.json +1 -1
- package/dist/chunk-42NLFCIN.js.map +0 -1
- package/dist/chunk-EI55KWHP.js.map +0 -1
- package/dist/chunk-LK3QJHVX.js.map +0 -1
- package/dist/chunk-MPT6Y7Z2.js.map +0 -1
- package/dist/chunk-OW2ODKHN.js.map +0 -1
- package/dist/chunk-QNA27ABY.js.map +0 -1
- package/dist/chunk-XZ253TGP.js.map +0 -1
- package/dist/chunk-YRQ4KKLG.js.map +0 -1
- package/dist/split-middle-De745N2j.d.ts +0 -7
package/README.md
CHANGED
|
@@ -43,6 +43,12 @@ while the `ui` job checks the package. A failing browser job uploads its report
|
|
|
43
43
|
and per-test evidence for 14 days as
|
|
44
44
|
`ui-browser-failure-<browser>-<run>-<attempt>`.
|
|
45
45
|
|
|
46
|
+
For a catalog's **Increased contrast** display preview, set
|
|
47
|
+
`data-kui-contrast="more"` on the document root and remove it when the preview
|
|
48
|
+
is off. Kerf's foundation tokens, Web Awesome bridge, and component contrast
|
|
49
|
+
rules then match `prefers-contrast: more` without changing the OS preference.
|
|
50
|
+
The OS preference still applies after the preview attribute is removed.
|
|
51
|
+
|
|
46
52
|
When authoring a component gallery, follow the single
|
|
47
53
|
[Catalog demo authoring contract](./docs/catalog.md#catalog-demo-authoring-contract)
|
|
48
54
|
for focused-versus-composition modes, helper nesting, specimen selection,
|
|
@@ -903,6 +909,19 @@ import "@kerfjs/ui/popup-menu/register";
|
|
|
903
909
|
`select/register` defines the form-associated `kui-select` root and wires every `Select` in the document; `popup-menu/register` wires every `PopupMenu` (opening, keyboard navigation, submenus, the `kui-menu-select` event, and focus return). That boundary keeps custom-element and document-listener side effects out of bundles that use unrelated components. Automated consumer-bundle tests enforce it, and also prove that no public entry except `@kerfjs/ui/webawesome.css` pulls in Web Awesome. Either registration also installs help tags: an icon-only Select, PopupMenu, or `aria-label`-named `<button>` in a `ToolbarControlGroup` shows its name in an `aria-hidden` tooltip on hover and keyboard focus. A toolbar with icon-only buttons but neither control imports `@kerfjs/ui/help-tags/register`, which registers only the tooltip.
|
|
904
910
|
|
|
905
911
|
`PopupMenu` items may include `submenu` children, `checked` choices, a leading `icon`, trailing `details`, `disabledReason`, and a `danger` tone. The app owns choice state and dispatches each item's `action`. For a right-click menu, set `context: true`, a `label`, and `anchor={pointSignal.value}`; the app's `contextmenu` handler stores `{ x: event.clientX, y: event.clientY }` in that signal and calls `openPopupMenu(menu)`. The menu renders its own zero-footprint anchor host and keeps the point across re-renders, so it needs no wrapper or CSS (`openPopupMenuAt(menu, x, y, { placement? })` still opens a menu rendered without `anchor`); `closePopupMenu(menu)` closes it programmatically. See [component selection](docs/component-selection.md#popup-menu-migration) for examples.
|
|
912
|
+
For a rendered PopupMenu root, `isPopupMenuOpen(root)` reads its current open
|
|
913
|
+
state. To observe dismissal, listen for native `toggle` in capture mode and
|
|
914
|
+
pass the event to `closedPopupMenuRoot(event)`. It returns the root only after
|
|
915
|
+
its own panel closes, never when a nested submenu closes. By then Kerf has
|
|
916
|
+
reset open state and, when appropriate, returned focus to the opener:
|
|
917
|
+
|
|
918
|
+
```ts
|
|
919
|
+
app.addEventListener('toggle', (event) => {
|
|
920
|
+
const root = closedPopupMenuRoot(event);
|
|
921
|
+
if (root) onMenuDismissed(root);
|
|
922
|
+
}, true);
|
|
923
|
+
```
|
|
924
|
+
|
|
906
925
|
Use `label` for a visible label or `ariaLabel` for a visually hidden name. A
|
|
907
926
|
nonempty visible label takes precedence when both are supplied. Kerf names the
|
|
908
927
|
native trigger without adding visible label spacing; this also works with
|
|
@@ -3158,16 +3158,18 @@
|
|
|
3158
3158
|
"category": "Structure",
|
|
3159
3159
|
"kind": "component",
|
|
3160
3160
|
"source": "kerf",
|
|
3161
|
-
"description": "Semantic native text
|
|
3161
|
+
"description": "Semantic native text, a native Mark for find-in-content matches, and a FieldLabel heading for read-only field previews that matches themed Web Awesome form labels.",
|
|
3162
3162
|
"uses": [],
|
|
3163
3163
|
"purpose": "Render paragraph semantics by default, h1 through h6 when selected, or geometry-free inline secondary text as a span while independently configuring quiet or danger tone, compact through extra-large size, or monospace font.",
|
|
3164
3164
|
"publicExports": [
|
|
3165
3165
|
"Text",
|
|
3166
|
-
"FieldLabel"
|
|
3166
|
+
"FieldLabel",
|
|
3167
|
+
"Mark"
|
|
3167
3168
|
],
|
|
3168
3169
|
"useWhen": [
|
|
3169
3170
|
"Render ordinary application headings or paragraphs with native document semantics, or inline secondary text inside rows, labels, and table cells.",
|
|
3170
3171
|
"Render FieldLabel over a read-only or click-to-edit preview that replaces a Web Awesome form control.",
|
|
3172
|
+
"Wrap find-in-content matches in Mark; set current on the active result. It inherits surrounding typography, including monospaced code.",
|
|
3171
3173
|
"Set weight=\"strong\" for a title or key phrase that matters more than its neighbors, such as a card or row title; it renders a <strong> element, so never hand-write <strong> inside Text."
|
|
3172
3174
|
],
|
|
3173
3175
|
"avoidWhen": [
|
|
@@ -3191,7 +3193,8 @@
|
|
|
3191
3193
|
"font",
|
|
3192
3194
|
"copy",
|
|
3193
3195
|
"document heading hierarchy",
|
|
3194
|
-
"FieldLabel copy, preview/edit state, and aria-labelledby association"
|
|
3196
|
+
"FieldLabel copy, preview/edit state, and aria-labelledby association",
|
|
3197
|
+
"match ranges, active match, and find navigation"
|
|
3195
3198
|
],
|
|
3196
3199
|
"variants": [
|
|
3197
3200
|
"p, h1 through h6, or inline span semantic variant",
|
|
@@ -3202,13 +3205,15 @@
|
|
|
3202
3205
|
"align start (default), center, or end for centered status copy or trailing values",
|
|
3203
3206
|
"controlMargins selects exterior 8px gutters with canonical physical Sides",
|
|
3204
3207
|
"wrap normal, anywhere, nowrap, or truncate; truncate places its ellipsis at the end, the start (keeping the tail), or the middle (keeping the last path segment or a character suffix)",
|
|
3205
|
-
"size=\"medium\" for a 16px heading, such as an in-list group title that wraps a long name"
|
|
3208
|
+
"size=\"medium\" for a 16px heading, such as an in-list group title that wraps a long name",
|
|
3209
|
+
"Mark quiet match and current match"
|
|
3206
3210
|
],
|
|
3207
3211
|
"accessibility": [
|
|
3208
3212
|
"Text renders a native paragraph by default; choose an h1 through h6 variant by document outline rather than appearance, or span for inline secondary text.",
|
|
3209
3213
|
"Ordinary global, data, and ARIA attributes pass through to the native element.",
|
|
3210
3214
|
"Choose tone, size, and font independently of the heading level so appearance does not distort the document outline.",
|
|
3211
3215
|
"FieldLabel is plain text, not a native label; give it an id and associate the preview group with aria-labelledby.",
|
|
3216
|
+
"Mark uses the native mark element and aria-current on the active result; search status and navigation announcements remain the application's responsibility.",
|
|
3212
3217
|
"Start and middle truncation clip visually only: the whole value stays in the DOM in reading order, and Text shows it as the element's title unless the app supplies one."
|
|
3213
3218
|
],
|
|
3214
3219
|
"content": {
|
|
@@ -3246,6 +3251,11 @@
|
|
|
3246
3251
|
"publicTokens": [
|
|
3247
3252
|
"--kui-color-danger-on-quiet",
|
|
3248
3253
|
"--kui-color-text-quiet",
|
|
3254
|
+
"--kui-color-warning-border-loud",
|
|
3255
|
+
"--kui-color-warning-fill-loud",
|
|
3256
|
+
"--kui-color-warning-fill-quiet",
|
|
3257
|
+
"--kui-color-warning-on-fill",
|
|
3258
|
+
"--kui-color-warning-on-loud",
|
|
3249
3259
|
"--kui-font-2xl",
|
|
3250
3260
|
"--kui-font-l",
|
|
3251
3261
|
"--kui-font-mono",
|
|
@@ -8743,7 +8753,9 @@
|
|
|
8743
8753
|
"PopupMenu",
|
|
8744
8754
|
"openPopupMenu",
|
|
8745
8755
|
"openPopupMenuAt",
|
|
8746
|
-
"closePopupMenu"
|
|
8756
|
+
"closePopupMenu",
|
|
8757
|
+
"isPopupMenuOpen",
|
|
8758
|
+
"closedPopupMenuRoot"
|
|
8747
8759
|
],
|
|
8748
8760
|
"useWhen": [
|
|
8749
8761
|
"Offer a short list of commands behind one trigger, such as a toolbar sort or More menu.",
|
|
@@ -383,6 +383,13 @@
|
|
|
383
383
|
"accepts": ["control"],
|
|
384
384
|
"cardinality": { "min": 0, "max": 1 },
|
|
385
385
|
"exclusiveWith": []
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
"id": "secondary-content",
|
|
389
|
+
"jsx": { "prop": "secondaryContent" },
|
|
390
|
+
"accepts": ["disclosure", "diagnostic-content"],
|
|
391
|
+
"cardinality": { "min": 0, "max": 1 },
|
|
392
|
+
"exclusiveWith": []
|
|
386
393
|
}
|
|
387
394
|
]
|
|
388
395
|
},
|
|
@@ -2740,6 +2740,11 @@
|
|
|
2740
2740
|
"id": "FieldLabel copy, preview/edit state, and aria-labelledby association",
|
|
2741
2741
|
"owner": "application",
|
|
2742
2742
|
"required": false
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
"id": "match ranges, active match, and find navigation",
|
|
2746
|
+
"owner": "application",
|
|
2747
|
+
"required": false
|
|
2743
2748
|
}
|
|
2744
2749
|
],
|
|
2745
2750
|
"wiring": {
|
|
@@ -2767,6 +2772,7 @@
|
|
|
2767
2772
|
"Ordinary global, data, and ARIA attributes pass through to the native element.",
|
|
2768
2773
|
"Choose tone, size, and font independently of the heading level so appearance does not distort the document outline.",
|
|
2769
2774
|
"FieldLabel is plain text, not a native label; give it an id and associate the preview group with aria-labelledby.",
|
|
2775
|
+
"Mark uses the native mark element and aria-current on the active result; search status and navigation announcements remain the application's responsibility.",
|
|
2770
2776
|
"Start and middle truncation clip visually only: the whole value stays in the DOM in reading order, and Text shows it as the element's title unless the app supplies one."
|
|
2771
2777
|
]
|
|
2772
2778
|
},
|
|
@@ -2780,6 +2786,11 @@
|
|
|
2780
2786
|
"publicTokens": [
|
|
2781
2787
|
"--kui-color-danger-on-quiet",
|
|
2782
2788
|
"--kui-color-text-quiet",
|
|
2789
|
+
"--kui-color-warning-border-loud",
|
|
2790
|
+
"--kui-color-warning-fill-loud",
|
|
2791
|
+
"--kui-color-warning-fill-quiet",
|
|
2792
|
+
"--kui-color-warning-on-fill",
|
|
2793
|
+
"--kui-color-warning-on-loud",
|
|
2783
2794
|
"--kui-font-2xl",
|
|
2784
2795
|
"--kui-font-l",
|
|
2785
2796
|
"--kui-font-mono",
|
|
@@ -7571,6 +7582,13 @@
|
|
|
7571
7582
|
"accepts": ["control"],
|
|
7572
7583
|
"cardinality": { "min": 0, "max": 1 },
|
|
7573
7584
|
"exclusiveWith": []
|
|
7585
|
+
},
|
|
7586
|
+
{
|
|
7587
|
+
"id": "secondary-content",
|
|
7588
|
+
"jsx": { "prop": "secondaryContent" },
|
|
7589
|
+
"accepts": ["disclosure", "diagnostic-content"],
|
|
7590
|
+
"cardinality": { "min": 0, "max": 1 },
|
|
7591
|
+
"exclusiveWith": []
|
|
7574
7592
|
}
|
|
7575
7593
|
],
|
|
7576
7594
|
"children": { "mode": "any", "concepts": [], "requiredConcepts": [] },
|
|
@@ -46,6 +46,7 @@ Zones (a zone is bound to JSX only through its listed prop; never assume the zon
|
|
|
46
46
|
|
|
47
47
|
- `icon` — JSX prop `icon`; accepts `dormant-decoration`; 0–1.
|
|
48
48
|
- `action` — JSX prop `action`; accepts `control`; 0–1.
|
|
49
|
+
- `secondary-content` — JSX prop `secondaryContent`; accepts [Disclosure](./disclosure.md), `diagnostic-content`; 0–1.
|
|
49
50
|
|
|
50
51
|
## State and wiring
|
|
51
52
|
|
|
@@ -25,7 +25,7 @@ A typed action menu with nested choices, selected state, and optional pointer-an
|
|
|
25
25
|
|
|
26
26
|
## Imports
|
|
27
27
|
|
|
28
|
-
- JavaScript: `@kerfjs/ui/popup-menu` — exports `PopupMenu`, `openPopupMenu`, `openPopupMenuAt`, `closePopupMenu`.
|
|
28
|
+
- JavaScript: `@kerfjs/ui/popup-menu` — exports `PopupMenu`, `openPopupMenu`, `openPopupMenuAt`, `closePopupMenu`, `isPopupMenuOpen`, `closedPopupMenuRoot`.
|
|
29
29
|
- CSS: the browser build of `@kerfjs/ui/popup-menu` pulls its CSS automatically; import `@kerfjs/ui/popup-menu.css` manually only without the `browser` export condition.
|
|
30
30
|
- Theme CSS: import `@kerfjs/ui/webawesome.css` once.
|
|
31
31
|
- Registration: import `@kerfjs/ui/popup-menu/register` once (a side effect).
|
package/ai/components/text.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
`@kerfjs/ui:text` · Kerf UI · component · Structure
|
|
6
6
|
|
|
7
|
-
Semantic native text
|
|
7
|
+
Semantic native text, a native Mark for find-in-content matches, and a FieldLabel heading for read-only field previews that matches themed Web Awesome form labels.
|
|
8
8
|
|
|
9
9
|
## When to use
|
|
10
10
|
|
|
@@ -12,6 +12,7 @@ Render paragraph semantics by default, h1 through h6 when selected, or geometry-
|
|
|
12
12
|
|
|
13
13
|
- Render ordinary application headings or paragraphs with native document semantics, or inline secondary text inside rows, labels, and table cells.
|
|
14
14
|
- Render FieldLabel over a read-only or click-to-edit preview that replaces a Web Awesome form control.
|
|
15
|
+
- Wrap find-in-content matches in Mark; set current on the active result. It inherits surrounding typography, including monospaced code.
|
|
15
16
|
- Set weight="strong" for a title or key phrase that matters more than its neighbors, such as a card or row title; it renders a \<strong> element, so never hand-write \<strong> inside Text.
|
|
16
17
|
|
|
17
18
|
**Not when:**
|
|
@@ -26,7 +27,7 @@ Render paragraph semantics by default, h1 through h6 when selected, or geometry-
|
|
|
26
27
|
|
|
27
28
|
## Imports
|
|
28
29
|
|
|
29
|
-
- JavaScript: `@kerfjs/ui/text` — exports `Text`, `FieldLabel`.
|
|
30
|
+
- JavaScript: `@kerfjs/ui/text` — exports `Text`, `FieldLabel`, `Mark`.
|
|
30
31
|
- CSS: the browser build of `@kerfjs/ui/text` pulls its CSS automatically; import `@kerfjs/ui/text.css` manually only without the `browser` export condition.
|
|
31
32
|
- Declared side effects: browser-condition-css.
|
|
32
33
|
|
|
@@ -45,6 +46,7 @@ Exact prop names and types: [`@kerfjs/ui/text`](../public-api-signatures-v1.md#k
|
|
|
45
46
|
- controlMargins selects exterior 8px gutters with canonical physical Sides
|
|
46
47
|
- wrap normal, anywhere, nowrap, or truncate; truncate places its ellipsis at the end, the start (keeping the tail), or the middle (keeping the last path segment or a character suffix)
|
|
47
48
|
- size="medium" for a 16px heading, such as an in-list group title that wraps a long name
|
|
49
|
+
- Mark quiet match and current match
|
|
48
50
|
|
|
49
51
|
## Composition
|
|
50
52
|
|
|
@@ -54,7 +56,7 @@ Exact prop names and types: [`@kerfjs/ui/text`](../public-api-signatures-v1.md#k
|
|
|
54
56
|
|
|
55
57
|
## State and wiring
|
|
56
58
|
|
|
57
|
-
**The app owns:** semantic variant; tone; size; font; copy; document heading hierarchy; FieldLabel copy, preview/edit state, and aria-labelledby association.
|
|
59
|
+
**The app owns:** semantic variant; tone; size; font; copy; document heading hierarchy; FieldLabel copy, preview/edit state, and aria-labelledby association; match ranges, active match, and find navigation.
|
|
58
60
|
|
|
59
61
|
No wiring helper.
|
|
60
62
|
|
|
@@ -73,6 +75,7 @@ Inset-free (no margin, border, or padding) when `flush` or `variant="span"`: the
|
|
|
73
75
|
- Ordinary global, data, and ARIA attributes pass through to the native element.
|
|
74
76
|
- Choose tone, size, and font independently of the heading level so appearance does not distort the document outline.
|
|
75
77
|
- FieldLabel is plain text, not a native label; give it an id and associate the preview group with aria-labelledby.
|
|
78
|
+
- Mark uses the native mark element and aria-current on the active result; search status and navigation announcements remain the application's responsibility.
|
|
76
79
|
- Start and middle truncation clip visually only: the whole value stays in the DOM in reading order, and Text shows it as the element's title unless the app supplies one.
|
|
77
80
|
|
|
78
81
|
`FieldLabel` renders a native control or link as its root, so it cannot sit in another such component's zones, and its own zones cannot hold a control, a link, or a component that renders one. (`KUI-V014`)
|
|
@@ -85,7 +88,7 @@ Public class hooks (select for layout placement only, never to change the compon
|
|
|
85
88
|
|
|
86
89
|
Never put `kui-text`, `kui-text__field-label` on an element you write; render `Text` instead (`KUI-L103`).
|
|
87
90
|
|
|
88
|
-
Public tokens it reads: `--kui-color-danger-on-quiet`, `--kui-color-text-quiet`, `--kui-font-2xl`, `--kui-font-l`, `--kui-font-mono`, `--kui-font-xs`, `--kui-layout-item-padding`. Set a token only where its public contract allows; prefer a prop.
|
|
91
|
+
Public tokens it reads: `--kui-color-danger-on-quiet`, `--kui-color-text-quiet`, `--kui-color-warning-border-loud`, `--kui-color-warning-fill-loud`, `--kui-color-warning-fill-quiet`, `--kui-color-warning-on-fill`, `--kui-color-warning-on-loud`, `--kui-font-2xl`, `--kui-font-l`, `--kui-font-mono`, `--kui-font-xs`, `--kui-layout-item-padding`. Set a token only where its public contract allows; prefer a prop.
|
|
89
92
|
|
|
90
93
|
Everything else is internal: `kerf-ui-analyze` reports private or unknown `.kui-*` selectors (`KUI-L001`, `KUI-L010`), unknown or private tokens (`KUI-L002`, `KUI-L012`), and any application rule that restyles the component, forced dimensions included (`KUI-L019`).
|
|
91
94
|
|
|
@@ -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.137` and `kerfjs@5.0.0-beta.137`. 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
|
|
|
@@ -791,6 +791,17 @@ declare function openPopupMenuAt(menu: PopupMenuElement, x: number, y: number, o
|
|
|
791
791
|
declare function openPopupMenu(menu: PopupMenuElement): void;
|
|
792
792
|
/** Close an open PopupMenu, and any submenu it shows. */
|
|
793
793
|
declare function closePopupMenu(menu: PopupMenuElement): void;
|
|
794
|
+
/** Whether a rendered PopupMenu root is open, for trigger or context menus. */
|
|
795
|
+
declare function isPopupMenuOpen(menu: PopupMenuElement): boolean;
|
|
796
|
+
/**
|
|
797
|
+
* Return the PopupMenu root whose own panel just closed, or undefined for an
|
|
798
|
+
* opening, submenu closure, or unrelated event. Native `toggle` does not
|
|
799
|
+
* bubble: observe it with a capture listener on an ancestor (such as the app
|
|
800
|
+
* root), then pass each event here. The controller resets open state during
|
|
801
|
+
* `beforetoggle`; a focus return, when appropriate, precedes the closed
|
|
802
|
+
* `toggle` notification.
|
|
803
|
+
*/
|
|
804
|
+
declare function closedPopupMenuRoot(event: Event): PopupMenuElement | undefined;
|
|
794
805
|
/**
|
|
795
806
|
* An action menu: a trigger button that opens a list of commands in the top
|
|
796
807
|
* layer. A `single` `ToolbarControlGroup` (with `nestedDropdown`) or a
|
|
@@ -804,7 +815,7 @@ declare function closePopupMenu(menu: PopupMenuElement): void;
|
|
|
804
815
|
*/
|
|
805
816
|
declare function PopupMenu({ text, label, icon, triggerContent, items, placement, caret, disabled, emphasis, size, rootAttributes, slot, context, anchor, popupNote, }: PopupMenuProps): SafeHtml;
|
|
806
817
|
|
|
807
|
-
export { PopupMenu, type PopupMenuAnchor, type PopupMenuDivider, type PopupMenuElement, type PopupMenuEmphasis, type PopupMenuEntry, type PopupMenuHeading, type PopupMenuItem, type PopupMenuPlacement, type PopupMenuProps, type PopupMenuSize, closePopupMenu, openPopupMenu, openPopupMenuAt };
|
|
818
|
+
export { PopupMenu, type PopupMenuAnchor, type PopupMenuDivider, type PopupMenuElement, type PopupMenuEmphasis, type PopupMenuEntry, type PopupMenuHeading, type PopupMenuItem, type PopupMenuPlacement, type PopupMenuProps, type PopupMenuSize, closePopupMenu, closedPopupMenuRoot, isPopupMenuOpen, openPopupMenu, openPopupMenuAt };
|
|
808
819
|
```
|
|
809
820
|
|
|
810
821
|
## `@kerfjs/ui/list-header`
|
|
@@ -908,6 +919,21 @@ type ListHeaderNoOverflow = {
|
|
|
908
919
|
overflowDisabled?: never;
|
|
909
920
|
overflowTriggerAttributes?: never;
|
|
910
921
|
};
|
|
922
|
+
type ListHeaderTrailingAction = {
|
|
923
|
+
action: string;
|
|
924
|
+
actionLabel: string;
|
|
925
|
+
actionIcon: SafeHtml;
|
|
926
|
+
actionDisabled?: boolean;
|
|
927
|
+
disabledReason?: string;
|
|
928
|
+
triggerAttributes?: ListHeaderTriggerAttributes;
|
|
929
|
+
} | {
|
|
930
|
+
action?: never;
|
|
931
|
+
actionLabel?: never;
|
|
932
|
+
actionIcon?: never;
|
|
933
|
+
actionDisabled?: never;
|
|
934
|
+
disabledReason?: never;
|
|
935
|
+
triggerAttributes?: never;
|
|
936
|
+
};
|
|
911
937
|
type ListHeaderModeProps = ({
|
|
912
938
|
/** Render the title as a controlled disclosure trigger. */
|
|
913
939
|
toggle: true;
|
|
@@ -919,7 +945,22 @@ type ListHeaderModeProps = ({
|
|
|
919
945
|
actionLabel?: never;
|
|
920
946
|
actionDisabled?: boolean;
|
|
921
947
|
disabledReason?: string;
|
|
948
|
+
titleAction?: never;
|
|
949
|
+
titleActionLabel?: never;
|
|
950
|
+
titleActionDisabled?: never;
|
|
951
|
+
titleDisabledReason?: never;
|
|
952
|
+
titleTriggerAttributes?: never;
|
|
922
953
|
} & ListHeaderOverflowProps) | ({
|
|
954
|
+
/** Render the title as a named action inside a native heading. */
|
|
955
|
+
titleAction: string;
|
|
956
|
+
titleActionLabel: string;
|
|
957
|
+
titleActionDisabled?: boolean;
|
|
958
|
+
titleDisabledReason?: string;
|
|
959
|
+
titleTriggerAttributes?: ListHeaderTriggerAttributes;
|
|
960
|
+
toggle?: false;
|
|
961
|
+
headingLevel?: HeadingLevel;
|
|
962
|
+
expanded?: never;
|
|
963
|
+
} & ListHeaderTrailingAction & ListHeaderNoOverflow) | ({
|
|
923
964
|
/** Render a separately named trailing action. */
|
|
924
965
|
toggle?: false;
|
|
925
966
|
/**
|
|
@@ -933,6 +974,11 @@ type ListHeaderModeProps = ({
|
|
|
933
974
|
expanded?: never;
|
|
934
975
|
actionDisabled?: boolean;
|
|
935
976
|
disabledReason?: string;
|
|
977
|
+
titleAction?: never;
|
|
978
|
+
titleActionLabel?: never;
|
|
979
|
+
titleActionDisabled?: never;
|
|
980
|
+
titleDisabledReason?: never;
|
|
981
|
+
titleTriggerAttributes?: never;
|
|
936
982
|
} & ListHeaderNoOverflow) | ({
|
|
937
983
|
/** Render a passive section heading. */
|
|
938
984
|
toggle?: false;
|
|
@@ -947,6 +993,11 @@ type ListHeaderModeProps = ({
|
|
|
947
993
|
expanded?: never;
|
|
948
994
|
actionDisabled?: never;
|
|
949
995
|
disabledReason?: never;
|
|
996
|
+
titleAction?: never;
|
|
997
|
+
titleActionLabel?: never;
|
|
998
|
+
titleActionDisabled?: never;
|
|
999
|
+
titleDisabledReason?: never;
|
|
1000
|
+
titleTriggerAttributes?: never;
|
|
950
1001
|
} & ListHeaderNoOverflow);
|
|
951
1002
|
type ListHeaderIndicatorProps = {
|
|
952
1003
|
count: number;
|
|
@@ -962,7 +1013,7 @@ type ListHeaderIndicatorProps = {
|
|
|
962
1013
|
status?: string | SafeHtml | undefined;
|
|
963
1014
|
};
|
|
964
1015
|
type ListHeaderProps = ListHeaderBaseProps & ListHeaderIndicatorProps & ListHeaderModeProps;
|
|
965
|
-
declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, leadingEdge, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, expanded, toggle, overflowAction, overflowLabel, overflowIcon, overflowDisabled, overflowTriggerAttributes, placeholder, rootAttributes, triggerAttributes, controls, slot, }: ListHeaderProps): SafeHtml;
|
|
1016
|
+
declare function ListHeader({ label, size, headingLevel, count, countLabel, badge, status, density, divider, inline, width, wrap, leadingEdge, indicatorTone, action, actionLabel, actionIcon, actionDisabled, disabledReason, titleAction, titleActionLabel, titleActionDisabled, titleDisabledReason, titleTriggerAttributes, expanded, toggle, overflowAction, overflowLabel, overflowIcon, overflowDisabled, overflowTriggerAttributes, placeholder, rootAttributes, triggerAttributes, controls, slot, }: ListHeaderProps): SafeHtml;
|
|
966
1017
|
|
|
967
1018
|
export { ListHeader, type ListHeaderProps };
|
|
968
1019
|
```
|
|
@@ -1752,7 +1803,7 @@ export { ValueTable, type ValueTablePresentation, type ValueTableProps, ValueTab
|
|
|
1752
1803
|
```ts
|
|
1753
1804
|
import { SafeHtml } from 'kerfjs';
|
|
1754
1805
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
1755
|
-
import { M as MiddleTruncateKeep } from './split-middle-
|
|
1806
|
+
import { M as MiddleTruncateKeep, a as MiddleTruncatePriority } from './split-middle-BNI0Rni-.js';
|
|
1756
1807
|
|
|
1757
1808
|
type TabBarItemRootAttributes = Readonly<Record<`data-${string}`, string | undefined> & {
|
|
1758
1809
|
'data-component'?: never;
|
|
@@ -1765,6 +1816,7 @@ type TabBarItemRootAttributes = Readonly<Record<`data-${string}`, string | undef
|
|
|
1765
1816
|
'data-drop-target'?: never;
|
|
1766
1817
|
'data-name-overflow'?: never;
|
|
1767
1818
|
'data-name-truncate'?: never;
|
|
1819
|
+
'data-name-truncate-priority'?: never;
|
|
1768
1820
|
'data-disabled'?: never;
|
|
1769
1821
|
}>;
|
|
1770
1822
|
type TabBarItemPresentation = 'pill' | 'segmented' | 'icon-only';
|
|
@@ -1777,11 +1829,13 @@ type TabBarItemNameOverflow = 'ellipsis' | 'visible';
|
|
|
1777
1829
|
*/
|
|
1778
1830
|
type TabBarItemNameTruncate = 'end' | 'middle' | 'start';
|
|
1779
1831
|
/**
|
|
1780
|
-
* The suffix `nameTruncate="middle"`
|
|
1832
|
+
* The suffix `nameTruncate="middle"` selects: a number of trailing
|
|
1781
1833
|
* characters, or `segment` (default) for the last path segment, or the last
|
|
1782
1834
|
* 10 characters when the name has no separator.
|
|
1783
1835
|
*/
|
|
1784
1836
|
type TabBarItemNameTruncateKeep = MiddleTruncateKeep;
|
|
1837
|
+
/** Which part wins in a narrow middle-truncated tab; defaults to `head`. */
|
|
1838
|
+
type TabBarItemNameTruncatePriority = MiddleTruncatePriority;
|
|
1785
1839
|
interface TabBarItemProps {
|
|
1786
1840
|
id: string;
|
|
1787
1841
|
name: string;
|
|
@@ -1825,6 +1879,8 @@ interface TabBarItemProps {
|
|
|
1825
1879
|
nameTruncate?: TabBarItemNameTruncate;
|
|
1826
1880
|
/** The suffix `nameTruncate="middle"` keeps (default `segment`). */
|
|
1827
1881
|
nameTruncateKeep?: TabBarItemNameTruncateKeep;
|
|
1882
|
+
/** `head` (default) keeps a head sliver; `suffix` keeps the full suffix. */
|
|
1883
|
+
nameTruncatePriority?: TabBarItemNameTruncatePriority;
|
|
1828
1884
|
/** Decorative dormant content for the close button. Must not contain interactive descendants. */
|
|
1829
1885
|
closeIcon?: SafeHtml;
|
|
1830
1886
|
selectAction?: string;
|
|
@@ -1847,9 +1903,9 @@ interface TabBarItemProps {
|
|
|
1847
1903
|
/** Native named-slot assignment when composed inside a web component. */
|
|
1848
1904
|
slot?: string;
|
|
1849
1905
|
}
|
|
1850
|
-
declare function TabBarItem({ id, name, selected, disabled, tabId, panelId, attention, dropTarget, closable, draggable, leading, trailing, presentation, size, labelMaxWidth, nameOverflow, nameTruncate, nameTruncateKeep, closeIcon, selectAction, closeAction, className, placeholder, pending, rootAttributes, slot, }: TabBarItemProps): SafeHtml;
|
|
1906
|
+
declare function TabBarItem({ id, name, selected, disabled, tabId, panelId, attention, dropTarget, closable, draggable, leading, trailing, presentation, size, labelMaxWidth, nameOverflow, nameTruncate, nameTruncateKeep, nameTruncatePriority, closeIcon, selectAction, closeAction, className, placeholder, pending, rootAttributes, slot, }: TabBarItemProps): SafeHtml;
|
|
1851
1907
|
|
|
1852
|
-
export { TabBarItem, type TabBarItemNameOverflow, type TabBarItemNameTruncate, type TabBarItemNameTruncateKeep, type TabBarItemPresentation, type TabBarItemProps, type TabBarItemSize };
|
|
1908
|
+
export { TabBarItem, type TabBarItemNameOverflow, type TabBarItemNameTruncate, type TabBarItemNameTruncateKeep, type TabBarItemNameTruncatePriority, type TabBarItemPresentation, type TabBarItemProps, type TabBarItemSize };
|
|
1853
1909
|
```
|
|
1854
1910
|
|
|
1855
1911
|
## `@kerfjs/ui/tab-bar`
|
|
@@ -2633,12 +2689,12 @@ interface PaneProps {
|
|
|
2633
2689
|
slot?: string;
|
|
2634
2690
|
}
|
|
2635
2691
|
/**
|
|
2636
|
-
* A pane's configuration, apart from its content and styling hooks: the props a
|
|
2692
|
+
* A pane's configuration, apart from its content and root styling hooks: the props a
|
|
2637
2693
|
* composite that renders a `Pane` for the app (a Workbench panel or work area,
|
|
2638
2694
|
* or a CollapsiblePanel) forwards, so the app configures that pane instead of
|
|
2639
2695
|
* styling it. An omitted or `undefined` field keeps the composite's default.
|
|
2640
2696
|
*/
|
|
2641
|
-
type PaneConfig = Pick<PaneProps, 'contentElement' | 'contentLabel' | 'separators' | 'safeAreaEdges' | 'chromeDividers' | 'compactChrome' | 'compactChromeOpen' | 'headerPresentation' | 'scrollEdge' | 'scrollEdgeDistance' | 'appearance' | 'background' | 'tint' | 'deepInset' | 'scrollClearance' | 'tabIndex' | 'outlined' | 'anchorName' | 'scrollAnchoring'>;
|
|
2697
|
+
type PaneConfig = Pick<PaneProps, 'contentElement' | 'contentLabel' | 'contentClassName' | 'separators' | 'safeAreaEdges' | 'chromeDividers' | 'compactChrome' | 'compactChromeOpen' | 'headerPresentation' | 'scrollEdge' | 'scrollEdgeDistance' | 'appearance' | 'background' | 'tint' | 'deepInset' | 'scrollClearance' | 'tabIndex' | 'outlined' | 'anchorName' | 'scrollAnchoring'>;
|
|
2642
2698
|
/**
|
|
2643
2699
|
* An unpadded application column with optional fixed header/footer slots and one
|
|
2644
2700
|
* scrolling vertical content owner. Separator lines are independently opt-in on
|
|
@@ -3666,10 +3722,10 @@ export { DEFAULT_BREAKPOINTS, type DeviceBreakpoints, type DeviceClass, type Dev
|
|
|
3666
3722
|
```ts
|
|
3667
3723
|
import * as kerfjs from 'kerfjs';
|
|
3668
3724
|
import { SafeHtml } from 'kerfjs';
|
|
3669
|
-
import { d as CatalogProps } from './types-
|
|
3670
|
-
export { c as CatalogBackgroundStyle, e as CatalogBrand, a as CatalogEntry, f as CatalogRelated, C as CatalogResource, b as CatalogSecondaryGroup, g as CatalogSection, h as CatalogSettingsConfig, i as CatalogStageRootAttributes, j as CatalogTagFilter, k as CatalogUxReview } from './types-
|
|
3725
|
+
import { d as CatalogProps } from './types-PGGOsJug.js';
|
|
3726
|
+
export { c as CatalogBackgroundStyle, e as CatalogBrand, a as CatalogEntry, f as CatalogRelated, C as CatalogResource, b as CatalogSecondaryGroup, g as CatalogSection, h as CatalogSettingsConfig, i as CatalogStageRootAttributes, j as CatalogTagFilter, k as CatalogUxReview } from './types-PGGOsJug.js';
|
|
3671
3727
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
3672
|
-
export { C as CatalogPackage, a as CatalogPackageEntry, b as CatalogPreview, c as CatalogReference, d as ComposedCatalog, e as catalogEntryId, f as composeCatalog } from './compose-
|
|
3728
|
+
export { C as CatalogPackage, a as CatalogPackageEntry, b as CatalogPreview, c as CatalogReference, d as ComposedCatalog, e as catalogEntryId, f as composeCatalog } from './compose-Qkitwg3x.js';
|
|
3673
3729
|
import './toolbar.js';
|
|
3674
3730
|
import './extension-attributes-CnqvBmj3.js';
|
|
3675
3731
|
import './sides-BPSWde0A.js';
|
|
@@ -3824,10 +3880,10 @@ export { Catalog, CatalogExample, type CatalogExampleAlign, type CatalogExampleP
|
|
|
3824
3880
|
## `@kerfjs/ui/catalog-library`
|
|
3825
3881
|
|
|
3826
3882
|
```ts
|
|
3827
|
-
import { C as CatalogPackage } from './compose-
|
|
3883
|
+
import { C as CatalogPackage } from './compose-Qkitwg3x.js';
|
|
3828
3884
|
import './semantic-content-BbzjvSu9.js';
|
|
3829
3885
|
import 'kerfjs';
|
|
3830
|
-
import './types-
|
|
3886
|
+
import './types-PGGOsJug.js';
|
|
3831
3887
|
import './toolbar.js';
|
|
3832
3888
|
import './extension-attributes-CnqvBmj3.js';
|
|
3833
3889
|
import './sides-BPSWde0A.js';
|
|
@@ -3855,7 +3911,7 @@ export { kerfCatalogPackage };
|
|
|
3855
3911
|
## `@kerfjs/ui/catalog-resources`
|
|
3856
3912
|
|
|
3857
3913
|
```ts
|
|
3858
|
-
import { C as CatalogResource } from './types-
|
|
3914
|
+
import { C as CatalogResource } from './types-PGGOsJug.js';
|
|
3859
3915
|
import './toolbar.js';
|
|
3860
3916
|
import 'kerfjs';
|
|
3861
3917
|
import './semantic-content-BbzjvSu9.js';
|
|
@@ -3913,7 +3969,7 @@ export { type CatalogGuidanceKind, type CatalogResourceKind, type CatalogResourc
|
|
|
3913
3969
|
|
|
3914
3970
|
```ts
|
|
3915
3971
|
import { Signal } from 'kerfjs';
|
|
3916
|
-
import { c as CatalogBackgroundStyle } from './types-
|
|
3972
|
+
import { c as CatalogBackgroundStyle } from './types-PGGOsJug.js';
|
|
3917
3973
|
import './toolbar.js';
|
|
3918
3974
|
import './semantic-content-BbzjvSu9.js';
|
|
3919
3975
|
import './extension-attributes-CnqvBmj3.js';
|
|
@@ -4608,6 +4664,8 @@ interface EmptyStateProps {
|
|
|
4608
4664
|
detail?: string;
|
|
4609
4665
|
icon?: SafeHtml;
|
|
4610
4666
|
action?: KerfUiContent;
|
|
4667
|
+
/** Start-aligned secondary content, such as diagnostic Disclosure details. */
|
|
4668
|
+
secondaryContent?: KerfUiContent;
|
|
4611
4669
|
busy?: boolean;
|
|
4612
4670
|
className?: string;
|
|
4613
4671
|
/** Native named-slot assignment when composed inside a web component. */
|
|
@@ -4616,7 +4674,7 @@ interface EmptyStateProps {
|
|
|
4616
4674
|
* test hook; the component's own markers stay protected. */
|
|
4617
4675
|
rootAttributes?: RootDataAttributes;
|
|
4618
4676
|
}
|
|
4619
|
-
declare function EmptyState({ title, detail, icon, action, busy, className, slot, rootAttributes, }: EmptyStateProps): SafeHtml;
|
|
4677
|
+
declare function EmptyState({ title, detail, icon, action, secondaryContent, busy, className, slot, rootAttributes, }: EmptyStateProps): SafeHtml;
|
|
4620
4678
|
|
|
4621
4679
|
export { EmptyState, type EmptyStateProps };
|
|
4622
4680
|
```
|
|
@@ -6017,12 +6075,13 @@ export { WorkbenchDialog, type WorkbenchDialogProps, type WorkbenchDialogRootAtt
|
|
|
6017
6075
|
|
|
6018
6076
|
```ts
|
|
6019
6077
|
import * as kerfjs from 'kerfjs';
|
|
6078
|
+
import { SafeHtml } from 'kerfjs';
|
|
6020
6079
|
import { KerfBaseAttrs } from 'kerfjs/jsx-runtime';
|
|
6021
6080
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6022
6081
|
import { R as RootDataAttributes } from './extension-attributes-CnqvBmj3.js';
|
|
6023
6082
|
import { S as Sides } from './sides-BPSWde0A.js';
|
|
6024
6083
|
import { CssForegroundColor } from './css-values.js';
|
|
6025
|
-
import { M as MiddleTruncateKeep } from './split-middle-
|
|
6084
|
+
import { M as MiddleTruncateKeep, a as MiddleTruncatePriority } from './split-middle-BNI0Rni-.js';
|
|
6026
6085
|
|
|
6027
6086
|
type FieldLabelProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className' | 'id'> & {
|
|
6028
6087
|
children: string;
|
|
@@ -6060,10 +6119,12 @@ type TextAlign = 'start' | 'center' | 'end';
|
|
|
6060
6119
|
*/
|
|
6061
6120
|
type TextTruncate = 'end' | 'middle' | 'start';
|
|
6062
6121
|
/**
|
|
6063
|
-
* The suffix `truncate="middle"`
|
|
6122
|
+
* The suffix `truncate="middle"` selects: a number of trailing
|
|
6064
6123
|
* characters, or `segment` for the last path segment with its separator.
|
|
6065
6124
|
*/
|
|
6066
6125
|
type TextTruncateKeep = MiddleTruncateKeep;
|
|
6126
|
+
/** Which part wins in a narrow middle-truncated box; defaults to `head`. */
|
|
6127
|
+
type TextTruncatePriority = MiddleTruncatePriority;
|
|
6067
6128
|
type TextContent = KerfUiContent | string | number | readonly TextContent[];
|
|
6068
6129
|
type TextCommonProps = Omit<KerfBaseAttrs, 'children' | 'class' | 'className' | 'id' | 'lang'> & {
|
|
6069
6130
|
/**
|
|
@@ -6121,12 +6182,14 @@ type TextProps = TextCommonProps & ({
|
|
|
6121
6182
|
maxLines?: number;
|
|
6122
6183
|
truncate?: never;
|
|
6123
6184
|
truncateKeep?: never;
|
|
6185
|
+
truncatePriority?: never;
|
|
6124
6186
|
} | {
|
|
6125
6187
|
/** Keep one line without an ellipsis. */
|
|
6126
6188
|
wrap: 'nowrap';
|
|
6127
6189
|
maxLines?: never;
|
|
6128
6190
|
truncate?: never;
|
|
6129
6191
|
truncateKeep?: never;
|
|
6192
|
+
truncatePriority?: never;
|
|
6130
6193
|
} | {
|
|
6131
6194
|
/** Keep one line with an ellipsis. */
|
|
6132
6195
|
wrap: 'truncate';
|
|
@@ -6143,15 +6206,30 @@ type TextProps = TextCommonProps & ({
|
|
|
6143
6206
|
* `\\` separator).
|
|
6144
6207
|
*/
|
|
6145
6208
|
truncateKeep?: TextTruncateKeep;
|
|
6209
|
+
/**
|
|
6210
|
+
* Narrow-box policy for `truncate="middle"`: `head` (default)
|
|
6211
|
+
* reserves a head sliver and ellipsizes the suffix; `suffix` keeps
|
|
6212
|
+
* the suffix whole while the head shrinks to an ellipsis or nothing.
|
|
6213
|
+
*/
|
|
6214
|
+
truncatePriority?: TextTruncatePriority;
|
|
6146
6215
|
});
|
|
6147
6216
|
/**
|
|
6148
6217
|
* Semantic heading, paragraph, or inline text. Block variants use the standard
|
|
6149
6218
|
* content-item padding; `span` adds no box geometry.
|
|
6150
6219
|
* All ordinary native heading/paragraph attributes pass through to the element.
|
|
6151
6220
|
*/
|
|
6152
|
-
declare function Text({ variant: Variant, tone, weight, color, size, font, border, flush, controlMargins, lineHeight, align, live, ariaLabel, rootAttributes, wrap, maxLines, truncate, truncateKeep, children, class: classValue, className, style, ...attributes }: TextProps):
|
|
6221
|
+
declare function Text({ variant: Variant, tone, weight, color, size, font, border, flush, controlMargins, lineHeight, align, live, ariaLabel, rootAttributes, wrap, maxLines, truncate, truncateKeep, truncatePriority, children, class: classValue, className, style, ...attributes }: TextProps): SafeHtml;
|
|
6222
|
+
|
|
6223
|
+
interface MarkProps {
|
|
6224
|
+
/** Matched content; inherits the surrounding font, including code typography. */
|
|
6225
|
+
children: SafeHtml | string | number;
|
|
6226
|
+
/** Emphasize the active result among otherwise quiet matches. */
|
|
6227
|
+
current?: boolean;
|
|
6228
|
+
}
|
|
6229
|
+
/** A native text highlight for find-in-content results. */
|
|
6230
|
+
declare function Mark({ children, current }: MarkProps): SafeHtml;
|
|
6153
6231
|
|
|
6154
|
-
export { FieldLabel, type FieldLabelProps, Sides, Text, type TextAlign, type TextBorder, type TextContent, type TextFont, type TextLineHeight, type TextProps, type TextSize, type TextTone, type TextTruncate, type TextTruncateKeep, type TextVariant, type TextWeight, type TextWrap };
|
|
6232
|
+
export { FieldLabel, type FieldLabelProps, Mark, type MarkProps, Sides, Text, type TextAlign, type TextBorder, type TextContent, type TextFont, type TextLineHeight, type TextProps, type TextSize, type TextTone, type TextTruncate, type TextTruncateKeep, type TextTruncatePriority, type TextVariant, type TextWeight, type TextWrap };
|
|
6155
6233
|
```
|
|
6156
6234
|
|
|
6157
6235
|
## `@kerfjs/ui/editor-frame`
|
package/ai/skill.md
CHANGED
|
@@ -115,6 +115,9 @@ Put its controls in `ToolbarControlGroup material="glass"` groups, and add
|
|
|
115
115
|
60px) to fade a backing in gradually as content scrolls beneath the bar (it
|
|
116
116
|
stays clear otherwise); give the opening `BackdropImage` `underChrome` so its artwork runs beneath the clear header. A clear bar draws no divider and turns opaque under reduced
|
|
117
117
|
transparency, increased contrast, and forced colors on its own.
|
|
118
|
+
For a catalog preview, set `data-kui-contrast="more"` on the document root
|
|
119
|
+
while its increased-contrast toggle is on, and remove the attribute when off;
|
|
120
|
+
the OS `prefers-contrast: more` behavior remains active independently.
|
|
118
121
|
|
|
119
122
|
### Core dialogs as bottom sheets
|
|
120
123
|
|
|
@@ -649,6 +652,13 @@ For `Select`, mark an unavailable choice with `disabled` and optionally `disable
|
|
|
649
652
|
|
|
650
653
|
For nested action menus, use `PopupMenuItem.submenu` with item, heading, and divider entries; headings and dividers do not enter keyboard navigation. Items support `checked`, `icon`, `details`, `disabledReason`, and `tone`. The app owns choice state. For a right-click menu, use `PopupMenu` with `context: true` and `anchor` (a signal holding the pointer's `{ x, y }` client coordinates); the `contextmenu` handler sets that signal and calls `openPopupMenu(menu)`. Its `placement` applies at that point (`top-start` opens above it), with the same viewport flip. The menu owns its zero-footprint anchor host and keeps the point across re-renders, so never wrap it in a fixed/1px/z-index anchor element or re-apply the point after a render; `openPopupMenuAt(menu, x, y)` is only for a menu rendered without `anchor`. Call `closePopupMenu` for programmatic dismissal. `openPopupMenuAt` also opens a button-triggered `PopupMenu` (one without `context`) at the pointer for one opening (`bottom-start`, or pass `{ placement: 'top-start' }` as a fourth argument to open above the point; the flip still applies); it returns to its trigger once closed, so a row's visible overflow menu doubles as its context menu. For a row's trailing "…" overflow menu, pass `ListActionRow` a `trailingMenu: { label, icon, items, placement?, disabled? }` instead of the `trailingAction*` props; never compose a `PopupMenu` next to or inside a `ListItem`.
|
|
651
654
|
|
|
655
|
+
Use `isPopupMenuOpen(root)` to read a rendered root's open state. To observe
|
|
656
|
+
root dismissal, capture native `toggle` on an ancestor and pass the event to
|
|
657
|
+
`closedPopupMenuRoot(event)`; it returns the root only when the root panel
|
|
658
|
+
closes, not when a submenu closes. The controller has reset open state and
|
|
659
|
+
handled focus return before that closed toggle notification. Do not inspect
|
|
660
|
+
PopupMenu's private trigger or panel class names in app code.
|
|
661
|
+
|
|
652
662
|
## Select lifecycle ownership
|
|
653
663
|
|
|
654
664
|
Import `@kerfjs/ui/select/register` once. It defines the form-associated
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Web Awesome JSX signatures for the UI authoring corpus
|
|
2
2
|
|
|
3
|
-
Generated from the emitted `@kerfjs/ui@5.0.0-beta.
|
|
3
|
+
Generated from the emitted `@kerfjs/ui@5.0.0-beta.137` declaration boundary. Import `@kerfjs/ui/webawesome` for type effects when authoring direct `wa-*` JSX. The module emits no runtime behavior and does not register custom elements.
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
import { KerfCustomElement } from 'kerfjs/jsx-runtime';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { C as CatalogPackage } from './compose-
|
|
1
|
+
import { C as CatalogPackage } from './compose-Qkitwg3x.js';
|
|
2
2
|
import './semantic-content-BbzjvSu9.js';
|
|
3
3
|
import 'kerfjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-PGGOsJug.js';
|
|
5
5
|
import './toolbar.js';
|
|
6
6
|
import './extension-attributes-CnqvBmj3.js';
|
|
7
7
|
import './sides-BPSWde0A.js';
|
package/dist/catalog.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as kerfjs from 'kerfjs';
|
|
2
2
|
import { SafeHtml } from 'kerfjs';
|
|
3
|
-
import { d as CatalogProps } from './types-
|
|
4
|
-
export { c as CatalogBackgroundStyle, e as CatalogBrand, a as CatalogEntry, f as CatalogRelated, C as CatalogResource, b as CatalogSecondaryGroup, g as CatalogSection, h as CatalogSettingsConfig, i as CatalogStageRootAttributes, j as CatalogTagFilter, k as CatalogUxReview } from './types-
|
|
3
|
+
import { d as CatalogProps } from './types-PGGOsJug.js';
|
|
4
|
+
export { c as CatalogBackgroundStyle, e as CatalogBrand, a as CatalogEntry, f as CatalogRelated, C as CatalogResource, b as CatalogSecondaryGroup, g as CatalogSection, h as CatalogSettingsConfig, i as CatalogStageRootAttributes, j as CatalogTagFilter, k as CatalogUxReview } from './types-PGGOsJug.js';
|
|
5
5
|
import { K as KerfUiContent } from './semantic-content-BbzjvSu9.js';
|
|
6
|
-
export { C as CatalogPackage, a as CatalogPackageEntry, b as CatalogPreview, c as CatalogReference, d as ComposedCatalog, e as catalogEntryId, f as composeCatalog } from './compose-
|
|
6
|
+
export { C as CatalogPackage, a as CatalogPackageEntry, b as CatalogPreview, c as CatalogReference, d as ComposedCatalog, e as catalogEntryId, f as composeCatalog } from './compose-Qkitwg3x.js';
|
|
7
7
|
import './toolbar.js';
|
|
8
8
|
import './extension-attributes-CnqvBmj3.js';
|
|
9
9
|
import './sides-BPSWde0A.js';
|