@adecore/ui 0.54.2 → 0.54.4

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/dist/Tooltip.js CHANGED
@@ -3,7 +3,7 @@ import { Tooltip as BaseTooltip } from '@base-ui/react/tooltip';
3
3
  import 'react';
4
4
  import { Kbd } from "./Kbd.js";
5
5
  import { registerShortcutHint } from './shortcut-hints.js';
6
- /* One provider per app. Tooltips share a delay, so moving along a row of buttons feels instant. `UIProvider` mounts it. */
6
+ /* One provider per app. Tooltips share a delay, so the next one along a row of buttons opens at once. `UIProvider` mounts it. */
7
7
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
8
8
  export function TooltipProvider(t0) {
9
9
  const $ = _c(2);
@@ -41,7 +41,7 @@ function virtualRowsOf(values, labelled) {
41
41
  count
42
42
  };
43
43
  }
44
- /* The root retains every value for keyboard navigation; only the visible rows need DOM elements. */
44
+ /* The root keeps every value for the keyboard; only the visible rows need DOM elements. */
45
45
  export function CommandPaletteVirtualList({
46
46
  children,
47
47
  groupLabel,
@@ -6,7 +6,7 @@ import { TREE_ROW_HEIGHT } from '../tree/style.js';
6
6
  import { isEmptyLine } from './empty-lines.js';
7
7
  import { compareRows } from './helpers.js';
8
8
  import { FILE_TREE_CSS } from './style.js';
9
- // Model options are initial; paths and status can subsequently change through the model's mutation methods.
9
+ // The model reads its options once; paths and status change later through its own methods.
10
10
  export function useFileTree(options) {
11
11
  const $ = _c(8);
12
12
  const latest = useRef(options.onSelectionChange);
@@ -10,13 +10,13 @@ export interface SplitViewInfo {
10
10
  }
11
11
  export interface SplitViewBounds extends SplitViewInfo {
12
12
  viewId: string;
13
- /** Viewport coordinates, suitable for a native surface kept outside the layout's DOM. */
13
+ /** In viewport coordinates, for a native view kept outside the layout's DOM. */
14
14
  rect: SplitRect;
15
15
  borderRadius: string;
16
16
  }
17
17
  export interface SplitDropTarget {
18
18
  paneId: string;
19
- /** A body drop names its zone; an omitted side denotes the tab strip. */
19
+ /** A drop on the body names its zone; without a side it lands in the tab strip. */
20
20
  side?: 'left' | 'right' | 'top' | 'bottom' | 'center';
21
21
  /** A gap in the original tab order, before the source is lifted out. */
22
22
  index?: number;
@@ -39,5 +39,5 @@ export interface DocumentTabProps extends Omit<useRender.ComponentProps<'span'>,
39
39
  onDragStart?: TabStripProps['onDragStart'];
40
40
  onDragEnd?: TabStripProps['onDragEnd'];
41
41
  }
42
- /** A tab with application-owned metadata and menus, rendered inside TabStrip's renderTab slot. */
42
+ /** A tab whose metadata and menus belong to the app, drawn in the `renderTab` slot of `TabStrip`. */
43
43
  export declare function DocumentTab({ item, onClose, closeShortcut, onDoubleClick, onDragStart, onDragEnd, className, render, ref, ...props }: DocumentTabProps): import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
@@ -500,7 +500,7 @@ function _temp(tab_1) {
500
500
  return tab_1.getBoundingClientRect();
501
501
  }
502
502
  const TabContext = createContext(null);
503
- /** A tab with application-owned metadata and menus, rendered inside TabStrip's renderTab slot. */
503
+ /** A tab whose metadata and menus belong to the app, drawn in the `renderTab` slot of `TabStrip`. */
504
504
  export function DocumentTab(t0) {
505
505
  const $ = _c(107);
506
506
  let className;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adecore/ui",
3
- "version": "0.54.2",
3
+ "version": "0.54.4",
4
4
  "description": "React components, a theme, formatters and a settings dialog for desktop-grade apps on React 19, Base UI and Tailwind 4.",
5
5
  "license": "FSL-1.1-MIT",
6
6
  "author": "Bas Milius",
@@ -19,7 +19,7 @@ export interface ProjectSwitcherItem {
19
19
 
20
20
  disabled?: boolean;
21
21
 
22
- /* A stale or disconnected project can still be selected to try opening it. */
22
+ /* A person can still pick a stale or disconnected project, to try to open it. */
23
23
  muted?: boolean;
24
24
 
25
25
  /* For the submenu beside this project's row. */
package/src/Tooltip.tsx CHANGED
@@ -6,7 +6,7 @@ import type { Shortcut } from './shortcut.ts';
6
6
 
7
7
  export type TooltipSide = 'top' | 'bottom' | 'left' | 'right';
8
8
 
9
- /* One provider per app. Tooltips share a delay, so moving along a row of buttons feels instant. `UIProvider` mounts it. */
9
+ /* One provider per app. Tooltips share a delay, so the next one along a row of buttons opens at once. `UIProvider` mounts it. */
10
10
  export function TooltipProvider({ children }: { children: ReactNode }) {
11
11
  return (
12
12
  <BaseTooltip.Provider delay={150} closeDelay={0}>
@@ -56,7 +56,7 @@ function virtualRowsOf<ItemValue, Group extends { items: readonly ItemValue[] }>
56
56
  return { groups, rows, itemRows, count };
57
57
  }
58
58
 
59
- /* The root retains every value for keyboard navigation; only the visible rows need DOM elements. */
59
+ /* The root keeps every value for the keyboard; only the visible rows need DOM elements. */
60
60
  export function CommandPaletteVirtualList<ItemValue, Group extends { items: readonly ItemValue[] } = { items: readonly ItemValue[] }>({
61
61
  children,
62
62
  groupLabel,
@@ -10,7 +10,7 @@ import { FILE_TREE_CSS } from './style.ts';
10
10
  type WithoutSizing<Options> = Options extends unknown ? Omit<Options, 'itemHeight' | 'density'> : never;
11
11
  export type FileTreeOptions = WithoutSizing<PierreOptions>;
12
12
 
13
- // Model options are initial; paths and status can subsequently change through the model's mutation methods.
13
+ // The model reads its options once; paths and status change later through its own methods.
14
14
  export function useFileTree(options: FileTreeOptions) {
15
15
  const latest = useRef(options.onSelectionChange);
16
16
 
@@ -42,7 +42,7 @@ export interface SplitViewInfo {
42
42
  export interface SplitViewBounds extends SplitViewInfo {
43
43
  viewId: string;
44
44
 
45
- /** Viewport coordinates, suitable for a native surface kept outside the layout's DOM. */
45
+ /** In viewport coordinates, for a native view kept outside the layout's DOM. */
46
46
  rect: SplitRect;
47
47
 
48
48
  borderRadius: string;
@@ -51,7 +51,7 @@ export interface SplitViewBounds extends SplitViewInfo {
51
51
  export interface SplitDropTarget {
52
52
  paneId: string;
53
53
 
54
- /** A body drop names its zone; an omitted side denotes the tab strip. */
54
+ /** A drop on the body names its zone; without a side it lands in the tab strip. */
55
55
  side?: 'left' | 'right' | 'top' | 'bottom' | 'center';
56
56
 
57
57
  /** A gap in the original tab order, before the source is lifted out. */
@@ -288,7 +288,7 @@ export interface DocumentTabProps extends Omit<useRender.ComponentProps<'span'>,
288
288
  onDragEnd?: TabStripProps['onDragEnd'];
289
289
  }
290
290
 
291
- /** A tab with application-owned metadata and menus, rendered inside TabStrip's renderTab slot. */
291
+ /** A tab whose metadata and menus belong to the app, drawn in the `renderTab` slot of `TabStrip`. */
292
292
  export function DocumentTab({ item, onClose, closeShortcut, onDoubleClick, onDragStart, onDragEnd, className, render, ref, ...props }: DocumentTabProps) {
293
293
  const context = useContext(TabContext);
294
294