@vokril/ui-solid 0.32.0 → 0.33.1
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/CHANGELOG.md +17 -0
- package/README.md +71 -0
- package/dist/StatusBarNotificationBell-BXPtDRks.cjs +50 -0
- package/dist/{StatusBarNotificationBell-CgsYrrpj.js → StatusBarNotificationBell-BjD8U_1v.js} +1557 -1544
- package/dist/_internal/contract/browser/workspace.d.cts +15 -0
- package/dist/_internal/contract/browser/workspace.d.ts +15 -0
- package/dist/_internal/contract/menuDensity.d.cts +10 -0
- package/dist/_internal/contract/menuDensity.d.ts +10 -0
- package/dist/_internal/platform/settings/settingsTypes.d.cts +2 -2
- package/dist/_internal/platform/settings/settingsTypes.d.ts +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/notifications/index.cjs +1 -1
- package/dist/notifications/index.js +1 -1
- package/dist/notifications/notificationOverlaySnapshot.d.cts +35 -6
- package/dist/notifications/notificationOverlaySnapshot.d.ts +35 -6
- package/dist/overlay/Modal.d.cts +7 -6
- package/dist/overlay/Modal.d.ts +7 -6
- package/dist/overlay/modalViewport.d.cts +2 -1
- package/dist/overlay/modalViewport.d.ts +2 -1
- package/dist/rowSource-D8gyHbEE.cjs +1 -0
- package/dist/{rowSource-BRGZHclZ.js → rowSource-_4IuosKj.js} +5 -0
- package/dist/server/{StatusBarNotificationBell-Cxs_bVKX.cjs → StatusBarNotificationBell-CLNEipLk.cjs} +19 -19
- package/dist/server/{StatusBarNotificationBell-CJJFE4rf.js → StatusBarNotificationBell-ek4X322Y.js} +1519 -1506
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.js +2 -2
- package/dist/server/notifications/index.cjs +1 -1
- package/dist/server/notifications/index.js +1 -1
- package/dist/server/{rowSource-CoeHYNsV.js → rowSource-BSa7rgYJ.js} +188 -183
- package/dist/server/rowSource-Yw-xtlih.cjs +1 -0
- package/dist/server/settings/index.cjs +1 -1
- package/dist/server/settings/index.js +14 -12
- package/dist/server/tokens/menu-density/index.cjs +1 -0
- package/dist/server/tokens/menu-density/index.js +4 -0
- package/dist/server/tree/index.cjs +1 -1
- package/dist/server/tree/index.js +1 -1
- package/dist/settings/index.cjs +1 -1
- package/dist/settings/index.js +14 -12
- package/dist/solid/_internal/contract/menuDensity.js +1 -0
- package/dist/solid/_internal/platform/settings/settingsTypes.js +1 -0
- package/dist/solid/notifications/NotificationHost.jsx +3 -16
- package/dist/solid/notifications/notificationOverlaySnapshot.js +26 -0
- package/dist/solid/tokens/menu-density/index.js +1 -0
- package/dist/solid/tree/TreeRow.jsx +3 -1
- package/dist/style.css +1 -1
- package/dist/tokens/menu-density/index.cjs +1 -0
- package/dist/tokens/menu-density/index.d.cts +12 -0
- package/dist/tokens/menu-density/index.d.ts +12 -0
- package/dist/tokens/menu-density/index.js +4 -0
- package/dist/tree/TreeRow.d.cts +5 -4
- package/dist/tree/TreeRow.d.ts +5 -4
- package/dist/tree/descriptor.d.cts +13 -3
- package/dist/tree/descriptor.d.ts +13 -3
- package/dist/tree/index.cjs +1 -1
- package/dist/tree/index.js +1 -1
- package/dist/ui.css +1 -1
- package/package.json +25 -1
- package/dist/StatusBarNotificationBell-CNs_obmZ.cjs +0 -50
- package/dist/rowSource-C3zlzAtR.cjs +0 -1
- package/dist/server/rowSource-C1F4l0xZ.cjs +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=["compact","normal","sparse"];exports.MENU_DENSITIES=e;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@vokril/ui-solid/tokens/menu-density` — THE MENU DENSITIES ALONE: `MENU_DENSITIES`, the values a root's
|
|
3
|
+
* `data-menu-density` takes and the token sheet styles (`tokens.css`, `:root[data-menu-density=…]`), and `MenuDensity`,
|
|
4
|
+
* for code that checks a density outside a window — an application's main process validating the native notification
|
|
5
|
+
* overlay's snapshot (`menuDensity`) at its process boundary, a worker, a script.
|
|
6
|
+
*
|
|
7
|
+
* Its own entry, so that its module graph holds no package and touches no DOM: `@vokril/ui-solid/settings`, which
|
|
8
|
+
* exports the same list, carries the settings registry, which needs solid-js under every export condition. Nothing else
|
|
9
|
+
* may be exported from here; `tests/menu-density-subpath.test.mjs` walks every condition's graph. The list keeps its
|
|
10
|
+
* one home in the contract (`../../_internal/contract/menuDensity`), and both entries export that one array.
|
|
11
|
+
*/
|
|
12
|
+
export { MENU_DENSITIES, type MenuDensity } from '../../_internal/contract/menuDensity.cjs';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@vokril/ui-solid/tokens/menu-density` — THE MENU DENSITIES ALONE: `MENU_DENSITIES`, the values a root's
|
|
3
|
+
* `data-menu-density` takes and the token sheet styles (`tokens.css`, `:root[data-menu-density=…]`), and `MenuDensity`,
|
|
4
|
+
* for code that checks a density outside a window — an application's main process validating the native notification
|
|
5
|
+
* overlay's snapshot (`menuDensity`) at its process boundary, a worker, a script.
|
|
6
|
+
*
|
|
7
|
+
* Its own entry, so that its module graph holds no package and touches no DOM: `@vokril/ui-solid/settings`, which
|
|
8
|
+
* exports the same list, carries the settings registry, which needs solid-js under every export condition. Nothing else
|
|
9
|
+
* may be exported from here; `tests/menu-density-subpath.test.mjs` walks every condition's graph. The list keeps its
|
|
10
|
+
* one home in the contract (`../../_internal/contract/menuDensity`), and both entries export that one array.
|
|
11
|
+
*/
|
|
12
|
+
export { MENU_DENSITIES, type MenuDensity } from '../../_internal/contract/menuDensity.js';
|
package/dist/tree/TreeRow.d.cts
CHANGED
|
@@ -51,10 +51,11 @@ interface TreeRowProps<TNode> {
|
|
|
51
51
|
*
|
|
52
52
|
* 1. pull DOM focus — the real row does that, and two rows racing for it
|
|
53
53
|
* make `document.activeElement` jump;
|
|
54
|
-
* 2. restate `id
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* `role="list"`/`"listitem"` on the
|
|
54
|
+
* 2. restate `id`, set-position or the row's name (`dom.ariaLabel`) — the
|
|
55
|
+
* real row already says "3 of 15", and a copy claiming "2 of 2" is simply
|
|
56
|
+
* a lie to a screen reader. The widget announces its own identity instead
|
|
57
|
+
* (a list of parents), which is what `role="list"`/`"listitem"` on the
|
|
58
|
+
* wrapper is for;
|
|
58
59
|
* 3. answer `[data-tree-row-key]` — every existing query for a row would
|
|
59
60
|
* otherwise match twice, and the clone would sometimes win.
|
|
60
61
|
*/
|
package/dist/tree/TreeRow.d.ts
CHANGED
|
@@ -51,10 +51,11 @@ interface TreeRowProps<TNode> {
|
|
|
51
51
|
*
|
|
52
52
|
* 1. pull DOM focus — the real row does that, and two rows racing for it
|
|
53
53
|
* make `document.activeElement` jump;
|
|
54
|
-
* 2. restate `id
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* `role="list"`/`"listitem"` on the
|
|
54
|
+
* 2. restate `id`, set-position or the row's name (`dom.ariaLabel`) — the
|
|
55
|
+
* real row already says "3 of 15", and a copy claiming "2 of 2" is simply
|
|
56
|
+
* a lie to a screen reader. The widget announces its own identity instead
|
|
57
|
+
* (a list of parents), which is what `role="list"`/`"listitem"` on the
|
|
58
|
+
* wrapper is for;
|
|
58
59
|
* 3. answer `[data-tree-row-key]` — every existing query for a row would
|
|
59
60
|
* otherwise match twice, and the clone would sometimes win.
|
|
60
61
|
*/
|
|
@@ -39,13 +39,23 @@ export type TreeActivateIntent = 'single-click' | 'double-click' | 'keyboard';
|
|
|
39
39
|
export type TreeIndentGuide = 'none' | 'lines' | 'active';
|
|
40
40
|
/**
|
|
41
41
|
* The DOM hooks a row may need from its surface: drag-and-drop, a native
|
|
42
|
-
* tooltip, an extra class. Narrow on purpose — a descriptor
|
|
43
|
-
* override the engine's own click / keyboard / menu wiring,
|
|
44
|
-
* exactly how four surfaces drifted apart in the first place.
|
|
42
|
+
* tooltip, an accessible name, an extra class. Narrow on purpose — a descriptor
|
|
43
|
+
* cannot reach in and override the engine's own click / keyboard / menu wiring,
|
|
44
|
+
* because that is exactly how four surfaces drifted apart in the first place.
|
|
45
45
|
*/
|
|
46
46
|
export interface TreeRowDomProps {
|
|
47
47
|
class?: string;
|
|
48
48
|
title?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The row's accessible name, written as its `aria-label`. A row is named by
|
|
51
|
+
* its content; one that shows no text — a placeholder that loads the next
|
|
52
|
+
* page as it scrolls into view — is named here. Must be `t()`-d. Left out or
|
|
53
|
+
* empty, the row has none, as the reference's list writes the label its
|
|
54
|
+
* accessibility provider gives a row only when there is one
|
|
55
|
+
* (`base/browser/ui/list/listWidget.ts:890`, `:1313-1335`). A sticky clone
|
|
56
|
+
* of the row does not restate it.
|
|
57
|
+
*/
|
|
58
|
+
ariaLabel?: string;
|
|
49
59
|
draggable?: boolean;
|
|
50
60
|
onDragStart?: (event: DragEvent) => void;
|
|
51
61
|
onDragOver?: (event: DragEvent) => void;
|
|
@@ -39,13 +39,23 @@ export type TreeActivateIntent = 'single-click' | 'double-click' | 'keyboard';
|
|
|
39
39
|
export type TreeIndentGuide = 'none' | 'lines' | 'active';
|
|
40
40
|
/**
|
|
41
41
|
* The DOM hooks a row may need from its surface: drag-and-drop, a native
|
|
42
|
-
* tooltip, an extra class. Narrow on purpose — a descriptor
|
|
43
|
-
* override the engine's own click / keyboard / menu wiring,
|
|
44
|
-
* exactly how four surfaces drifted apart in the first place.
|
|
42
|
+
* tooltip, an accessible name, an extra class. Narrow on purpose — a descriptor
|
|
43
|
+
* cannot reach in and override the engine's own click / keyboard / menu wiring,
|
|
44
|
+
* because that is exactly how four surfaces drifted apart in the first place.
|
|
45
45
|
*/
|
|
46
46
|
export interface TreeRowDomProps {
|
|
47
47
|
class?: string;
|
|
48
48
|
title?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The row's accessible name, written as its `aria-label`. A row is named by
|
|
51
|
+
* its content; one that shows no text — a placeholder that loads the next
|
|
52
|
+
* page as it scrolls into view — is named here. Must be `t()`-d. Left out or
|
|
53
|
+
* empty, the row has none, as the reference's list writes the label its
|
|
54
|
+
* accessibility provider gives a row only when there is one
|
|
55
|
+
* (`base/browser/ui/list/listWidget.ts:890`, `:1313-1335`). A sticky clone
|
|
56
|
+
* of the row does not restate it.
|
|
57
|
+
*/
|
|
58
|
+
ariaLabel?: string;
|
|
49
59
|
draggable?: boolean;
|
|
50
60
|
onDragStart?: (event: DragEvent) => void;
|
|
51
61
|
onDragOver?: (event: DragEvent) => void;
|
package/dist/tree/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../rowSource-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../rowSource-D8gyHbEE.cjs");exports.DEFAULT_TREE_CAPABILITIES=e.DEFAULT_TREE_CAPABILITIES;exports.TREE_INDENT_STEP_REM=e.TREE_INDENT_STEP_REM;exports.TreeHighlight=e.TreeHighlight;exports.TreeRow=e.TreeRow;exports.TreeSurface=e.TreeSurface;exports.assertRowIndex=e.assertRowIndex;exports.buildTreeContainerAria=e.buildTreeContainerAria;exports.buildTreeRowAria=e.buildTreeRowAria;exports.buildTreeRowStructureAria=e.buildTreeRowStructureAria;exports.createTreeController=e.createTreeController;exports.createTreeSurface=e.createTreeSurface;exports.selectAllInScope=e.selectAllInScope;exports.treeRowDomId=e.treeRowDomId;exports.treeRowsFrom=e.treeRowsFrom;
|
package/dist/tree/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as a, T as s, a as T, b as o, c as t, d as i, e as l, f as E, g as R, h as c, i as u, s as A, t as I, j as d } from "../rowSource-
|
|
1
|
+
import { D as a, T as s, a as T, b as o, c as t, d as i, e as l, f as E, g as R, h as c, i as u, s as A, t as I, j as d } from "../rowSource-_4IuosKj.js";
|
|
2
2
|
export {
|
|
3
3
|
a as DEFAULT_TREE_CAPABILITIES,
|
|
4
4
|
s as TREE_INDENT_STEP_REM,
|