@stll/ui 0.71.0 → 0.72.0
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/calendar/primitives.d.ts +7 -7
- package/dist/components/alert-dialog.d.ts +15 -15
- package/dist/components/animated-preview.d.ts +9 -9
- package/dist/components/animated-preview.js +3 -3
- package/dist/components/application-rail.d.ts +8 -8
- package/dist/components/bidi-text.d.ts +7 -7
- package/dist/components/brand-icons.d.ts +5 -5
- package/dist/components/breadcrumb.d.ts +8 -8
- package/dist/components/color-picker.d.ts +4 -4
- package/dist/components/combobox.d.ts +23 -23
- package/dist/components/combobox.js +6 -6
- package/dist/components/command.d.ts +19 -19
- package/dist/components/destructive-action-confirmation.d.ts +5 -5
- package/dist/components/destructive-action-confirmation.js +2 -2
- package/dist/components/destructive-confirm-dialog.d.ts +7 -7
- package/dist/components/details-grid.d.ts +6 -6
- package/dist/components/dialog.d.ts +19 -19
- package/dist/components/frame.d.ts +7 -7
- package/dist/components/hex-color-picker.d.ts +16 -2
- package/dist/components/input-group.d.ts +6 -6
- package/dist/components/input-otp.d.ts +7 -7
- package/dist/components/input-otp.js +2 -2
- package/dist/components/input.d.ts +5 -5
- package/dist/components/kbd.d.ts +3 -3
- package/dist/components/list.d.ts +20 -20
- package/dist/components/menu.d.ts +20 -20
- package/dist/components/outline-rail.d.ts +12 -0
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/popover.d.ts +8 -8
- package/dist/components/preview-pane.d.ts +6 -6
- package/dist/components/prose.d.ts +2 -2
- package/dist/components/scroll-to-top.d.ts +5 -0
- package/dist/components/search-field.d.ts +3 -3
- package/dist/components/select.d.ts +9 -9
- package/dist/components/select.js +11 -11
- package/dist/components/sheet.d.ts +16 -16
- package/dist/components/steps.d.ts +6 -6
- package/dist/components/switch.d.ts +5 -5
- package/dist/components/switch.native.d.ts +3 -3
- package/dist/components/table.d.ts +16 -16
- package/dist/components/textarea.d.ts +3 -3
- package/dist/components/time-field.d.ts +3 -3
- package/dist/components/toast.d.ts +20 -20
- package/dist/components/toast.js +3 -3
- package/dist/components/toggle-group.d.ts +4 -4
- package/dist/components/toggle.d.ts +3 -3
- package/dist/components/tooltip-trigger-helper.d.ts +4 -4
- package/dist/components/truncated-text.d.ts +4 -4
- package/dist/components/truncated-text.js +3 -3
- package/dist/data-table/index.d.ts +7 -0
- package/dist/hooks/use-contained-handler.d.ts +2 -2
- package/dist/hooks/use-mobile.js +2 -2
- package/dist/hooks/use-viewport-width.js +2 -2
- package/dist/icons.d.ts +27 -0
- package/dist/index.d.ts +7 -0
- package/dist/inspector/chrome.d.ts +22 -22
- package/dist/inspector/index.d.ts +9 -0
- package/dist/kanban/grouping.d.ts +10 -0
- package/dist/kanban/index.d.ts +9 -0
- package/dist/kanban/sortable-interactions.d.ts +8 -8
- package/dist/kanban/sortable-interactions.js +11 -11
- package/dist/lib/button-disposition.d.ts +2 -2
- package/dist/lib/tooltip-content.d.ts +2 -2
- package/dist/lib/utils.d.ts +2 -2
- package/package.json +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Inspector chrome: the shell, the icon rail, the header strip, and the
|
|
4
4
|
* fixed-height key/value rows.
|
|
@@ -19,45 +19,45 @@ import * as React$1 from "react";
|
|
|
19
19
|
* force a direction. `chrome.test.tsx` pins which slots belong to each group.
|
|
20
20
|
*/
|
|
21
21
|
/** Outermost inspector surface. Fills the dock; owns no scrolling. */
|
|
22
|
-
export declare const Inspector: ({ className, ...props }: React
|
|
22
|
+
export declare const Inspector: ({ className, ...props }: React.ComponentProps<"aside">) => React.JSX.Element;
|
|
23
23
|
/**
|
|
24
24
|
* Vertical 48px icon rail. Hidden below the desktop breakpoint, where the
|
|
25
25
|
* pane becomes a full-screen sheet and the rail's affordances move into
|
|
26
26
|
* the header.
|
|
27
27
|
*/
|
|
28
|
-
export declare const InspectorRail: ({ className, ...props }: React
|
|
28
|
+
export declare const InspectorRail: ({ className, ...props }: React.ComponentProps<"nav">) => React.JSX.Element;
|
|
29
29
|
/** A rail cell: same height as every header strip and property row. */
|
|
30
|
-
export declare const InspectorRailCell: ({ className, ...props }: React
|
|
30
|
+
export declare const InspectorRailCell: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
31
31
|
/** Scroll owner for rail tabs and other middle actions. */
|
|
32
|
-
export declare const InspectorRailContent: ({ className, ...props }: React
|
|
32
|
+
export declare const InspectorRailContent: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
33
33
|
/** Permanent inline-end action row, normally the new-chat affordance. */
|
|
34
|
-
export declare const InspectorRailFooter: ({ className, ...props }: React
|
|
35
|
-
export declare const InspectorRailIconButton: ({ className, ...props }: React
|
|
34
|
+
export declare const InspectorRailFooter: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
35
|
+
export declare const InspectorRailIconButton: ({ className, ...props }: React.ComponentProps<"button">) => React.JSX.Element;
|
|
36
36
|
/**
|
|
37
37
|
* A rail tab: one full-width row, bordered like every other rail cell, so
|
|
38
38
|
* the stack reads as boxes in every dock. The active tab carries a 2px spine
|
|
39
39
|
* on the rail's inline-start edge — the same affordance the workspace rail
|
|
40
40
|
* uses to say "this pane is showing that tab".
|
|
41
41
|
*/
|
|
42
|
-
export declare const InspectorRailTab: ({ active, className, ...props }: React
|
|
42
|
+
export declare const InspectorRailTab: ({ active, className, ...props }: React.ComponentProps<"button"> & {
|
|
43
43
|
active?: boolean;
|
|
44
|
-
}) => React
|
|
44
|
+
}) => React.JSX.Element;
|
|
45
45
|
/** Header strip. One row tall, bordered below, never scrolls. */
|
|
46
|
-
export declare const InspectorHeader: ({ className, ...props }: React
|
|
47
|
-
export declare const InspectorHeaderText: ({ className, ...props }: React
|
|
48
|
-
export declare const InspectorTitle: ({ children, className, ...props }: React
|
|
49
|
-
export declare const InspectorDescription: ({ children, className, ...props }: React
|
|
50
|
-
export declare const InspectorActions: ({ className, ...props }: React
|
|
46
|
+
export declare const InspectorHeader: ({ className, ...props }: React.ComponentProps<"header">) => React.JSX.Element;
|
|
47
|
+
export declare const InspectorHeaderText: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
48
|
+
export declare const InspectorTitle: ({ children, className, ...props }: React.ComponentProps<"h2">) => React.JSX.Element;
|
|
49
|
+
export declare const InspectorDescription: ({ children, className, ...props }: React.ComponentProps<"p">) => React.JSX.Element;
|
|
50
|
+
export declare const InspectorActions: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
51
51
|
/**
|
|
52
52
|
* Scroll owner for the active tab. Exactly one of these is mounted at a
|
|
53
53
|
* time: two nested scrollers inside a 512px pane is how a side panel stops
|
|
54
54
|
* being navigable.
|
|
55
55
|
*/
|
|
56
|
-
export declare const InspectorContent: ({ className, ...props }: React
|
|
57
|
-
export declare const InspectorSection: ({ className, ...props }: React
|
|
56
|
+
export declare const InspectorContent: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
57
|
+
export declare const InspectorSection: ({ className, ...props }: React.ComponentProps<"section">) => React.JSX.Element;
|
|
58
58
|
/** Section header. Same row height as the properties beneath it. */
|
|
59
|
-
export declare const InspectorSectionTitle: ({ children, className, ...props }: React
|
|
60
|
-
export declare const InspectorPropertyList: ({ className, ...props }: React
|
|
59
|
+
export declare const InspectorSectionTitle: ({ children, className, ...props }: React.ComponentProps<"h3">) => React.JSX.Element;
|
|
60
|
+
export declare const InspectorPropertyList: ({ className, ...props }: React.ComponentProps<"dl">) => React.JSX.Element;
|
|
61
61
|
/**
|
|
62
62
|
* A key/value row.
|
|
63
63
|
*
|
|
@@ -67,8 +67,8 @@ export declare const InspectorPropertyList: ({ className, ...props }: React$1.Co
|
|
|
67
67
|
* the layout. Long values truncate; the full text belongs in a tooltip or
|
|
68
68
|
* an expanded view, not in a taller row.
|
|
69
69
|
*/
|
|
70
|
-
export declare const InspectorProperty: ({ className, ...props }: React
|
|
71
|
-
export declare const InspectorPropertyLabel: ({ children, className, ...props }: React
|
|
72
|
-
export declare const InspectorPropertyValue: ({ children, className, ...props }: React
|
|
70
|
+
export declare const InspectorProperty: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
71
|
+
export declare const InspectorPropertyLabel: ({ children, className, ...props }: React.ComponentProps<"dt">) => React.JSX.Element;
|
|
72
|
+
export declare const InspectorPropertyValue: ({ children, className, ...props }: React.ComponentProps<"dd">) => React.JSX.Element;
|
|
73
73
|
/** Row-height empty state, so an empty list keeps the list's rhythm. */
|
|
74
|
-
export declare const InspectorEmptyRow: ({ className, ...props }: React
|
|
74
|
+
export declare const InspectorEmptyRow: ({ className, ...props }: React.ComponentProps<"p">) => React.JSX.Element;
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The dockable inspector pane: chrome, dock, and the width policy that keeps
|
|
3
|
+
* the content column beside it usable.
|
|
4
|
+
*
|
|
5
|
+
* One module rather than one subpath per file, because the parts only make
|
|
6
|
+
* sense together: the dock's width comes from the hook, the hook's clamp comes
|
|
7
|
+
* from the width policy, and the chrome's row rhythm comes from the same
|
|
8
|
+
* layout tokens the dock reserves space with.
|
|
9
|
+
*/
|
|
1
10
|
import { INSPECTOR_CONTENT_MIN_WIDTH, INSPECTOR_EDITOR_MIN_WIDTH, INSPECTOR_PANE_DEFAULT_WIDTH, INSPECTOR_PANE_MAX_WIDTH, INSPECTOR_PANE_MIN_WIDTH, INSPECTOR_RAIL_WIDTH, resolveInspectorDockWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth, shouldForceSidebarCollapsed } from "./pane-width.js";
|
|
2
11
|
import { INSPECTOR_PANE_KEYBOARD_PAGE_STEP, INSPECTOR_PANE_KEYBOARD_STEP, resolveDragWidth, resolveKeyboardWidth, useInspectorPaneWidth } from "./use-pane-width.js";
|
|
3
12
|
import { Inspector, InspectorActions, InspectorContent, InspectorDescription, InspectorEmptyRow, InspectorHeader, InspectorHeaderText, InspectorProperty, InspectorPropertyLabel, InspectorPropertyList, InspectorPropertyValue, InspectorRail, InspectorRailCell, InspectorRailContent, InspectorRailFooter, InspectorRailIconButton, InspectorRailTab, InspectorSection, InspectorSectionTitle, InspectorTitle } from "./chrome.js";
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Kanban grouping: which columns a board has, and which rows may appear on it.
|
|
3
|
+
*
|
|
4
|
+
* The module never inspects a row. A caller describes its board with a
|
|
5
|
+
* `KanbanSchema`: the properties a board may group by, plus the built-in group
|
|
6
|
+
* resolvers for columns that do not come from a property (a status enum, a kind
|
|
7
|
+
* enum). The column list, the uncategorized bucket, and the row scope all
|
|
8
|
+
* derive from that description, so grouping has no opinion about what is being
|
|
9
|
+
* grouped.
|
|
10
|
+
*/
|
|
1
11
|
import { OptionColor } from "../lib/option-color.js";
|
|
2
12
|
/**
|
|
3
13
|
* The band a column belongs to: a named run of adjacent columns the board
|
package/dist/kanban/index.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The kanban board: how a board's columns are resolved, what a card renders,
|
|
3
|
+
* and the chrome both sit in.
|
|
4
|
+
*
|
|
5
|
+
* One module rather than one subpath per file, because the parts describe a
|
|
6
|
+
* single contract: the schema decides the columns, the column header shows what
|
|
7
|
+
* a column reduces to, and the card shell holds whatever the schema said a card
|
|
8
|
+
* renders.
|
|
9
|
+
*/
|
|
1
10
|
import { BuildKanbanBoardMatrixParams, CreateKanbanDropIntentParams, KANBAN_BOARD_AXES, KanbanBoardAxis, KanbanBoardCell, KanbanBoardColumn, KanbanBoardCoordinate, KanbanBoardDestination, KanbanBoardLane, KanbanBoardMatrix, KanbanDropAxisChange, KanbanDropIntent, OrderKanbanCellsByColumnsParams, ResolveKanbanGroupValueParams, buildKanbanBoardMatrix, createKanbanDropIntent, getKanbanBoardColumnIdentity, getKanbanBoardLaneIdentity, orderKanbanCellsByColumns } from "./matrix.js";
|
|
2
11
|
import { KANBAN_BAND_CAPTION_ROW_HEIGHT, KANBAN_BAND_CAPTION_ROW_HEIGHT_PX, KANBAN_CHROME_ROW_HEIGHT, KANBAN_CHROME_ROW_HEIGHT_PX } from "./layout-tokens.js";
|
|
3
12
|
import { KANBAN_BAND_PEEK_DELAY_MS, KANBAN_BAND_PEEK_LINGER_MS } from "./band-peek.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { AutoScrollActivator, AutoScrollOptions, CollisionDetection, DndContextProps, DragCancelEvent, DragEndEvent, DragOverEvent, DragOverlayProps, DragStartEvent, KeyboardCoordinateGetter, UniqueIdentifier } from "@dnd-kit/core";
|
|
3
3
|
import { Button } from "../components/button.js";
|
|
4
4
|
import { KANBAN_BOARD_COLLISION_DETECTION, KanbanCellVirtualNavigation, KanbanSortableCellPosition, KanbanVirtualScrollRequest, kanbanKeyboardCoordinates } from "./sortable-interactions.logic.js";
|
|
@@ -28,7 +28,7 @@ export type KanbanDragEndEvent = DragEndEvent;
|
|
|
28
28
|
export type KanbanDragOverEvent = DragOverEvent;
|
|
29
29
|
export type KanbanDragStartEvent = DragStartEvent;
|
|
30
30
|
export type KanbanSortableBoardProps = {
|
|
31
|
-
children: React
|
|
31
|
+
children: React.ReactNode;
|
|
32
32
|
onDragEnd: (event: KanbanDragEndEvent) => void;
|
|
33
33
|
/** Minimum pointer movement before a mouse drag activates. */
|
|
34
34
|
mouseActivationDistance?: number | undefined;
|
|
@@ -57,7 +57,7 @@ export type KanbanSortableBoardProps = {
|
|
|
57
57
|
/** Called once mounted child drop targets can safely receive input. */
|
|
58
58
|
onInteractionReady?: (() => void) | undefined;
|
|
59
59
|
/** Rendered in document.body while an item is active. */
|
|
60
|
-
overlay?: ((activeId: UniqueIdentifier | null) => React
|
|
60
|
+
overlay?: ((activeId: UniqueIdentifier | null) => React.ReactNode) | undefined;
|
|
61
61
|
overlayProps?: Omit<DragOverlayProps, "children"> | undefined;
|
|
62
62
|
};
|
|
63
63
|
export type UseKanbanDropTargetOptions = {
|
|
@@ -85,7 +85,7 @@ export declare const useKanbanDropTarget: ({ disabled, id, itemIds, navigation,
|
|
|
85
85
|
* the sensor activation rules, keyboard navigation, auto-scroll configuration,
|
|
86
86
|
* and overlay lifecycle shared by sortable board UIs.
|
|
87
87
|
*/
|
|
88
|
-
export declare const KanbanSortableBoard: ({ children, onDragEnd, mouseActivationDistance, collisionDetection, keyboardCoordinates, autoScroll, sensors, accessibility, onDragStart, onDragOver, onDragCancel, onInteractionReady, overlay, overlayProps }: KanbanSortableBoardProps) => React
|
|
88
|
+
export declare const KanbanSortableBoard: ({ children, onDragEnd, mouseActivationDistance, collisionDetection, keyboardCoordinates, autoScroll, sensors, accessibility, onDragStart, onDragOver, onDragCancel, onInteractionReady, overlay, overlayProps }: KanbanSortableBoardProps) => React.JSX.Element;
|
|
89
89
|
export declare const useKanbanSortableSensors: (keyboardCoordinates?: KeyboardCoordinateGetter, mouseActivationDistance?: number) => import("@dnd-kit/core").SensorDescriptor<import("@dnd-kit/core").SensorOptions>[];
|
|
90
90
|
export type KanbanSortableBindings = Pick<ReturnType<typeof useSortable>, "attributes" | "listeners" | "setActivatorNodeRef">;
|
|
91
91
|
export type KanbanSortableActivationMode = {
|
|
@@ -128,16 +128,16 @@ export declare const useKanbanSortable: ({ activation, id, disabled }: UseKanban
|
|
|
128
128
|
export type KanbanDragHandleProps = {
|
|
129
129
|
bindings: KanbanSortableBindings;
|
|
130
130
|
label: string;
|
|
131
|
-
} & Omit<React
|
|
131
|
+
} & Omit<React.ComponentProps<typeof Button>, "aria-label" | "children" | "ref" | "tooltip" | "type">;
|
|
132
132
|
/**
|
|
133
133
|
* A 44px keyboard-accessible drag activator. The handle is the only board
|
|
134
134
|
* surface that disables touch panning, leaving cards and scroll regions free
|
|
135
135
|
* for ordinary scrolling.
|
|
136
136
|
*/
|
|
137
|
-
export declare const KanbanDragHandle: ({ bindings, label, className, ...props }: KanbanDragHandleProps) => React
|
|
137
|
+
export declare const KanbanDragHandle: ({ bindings, label, className, ...props }: KanbanDragHandleProps) => React.JSX.Element;
|
|
138
138
|
export type KanbanCardDragSurfaceProps = {
|
|
139
139
|
bindings: KanbanSortableBindings;
|
|
140
|
-
} & Omit<React
|
|
140
|
+
} & Omit<React.ComponentProps<"div">, "ref">;
|
|
141
141
|
/** A whole-card drag activator that preserves descendant controls and scrolling. */
|
|
142
|
-
export declare const KanbanCardDragSurface: ({ bindings, className, ...props }: KanbanCardDragSurfaceProps) => React
|
|
142
|
+
export declare const KanbanCardDragSurface: ({ bindings, className, ...props }: KanbanCardDragSurfaceProps) => React.JSX.Element;
|
|
143
143
|
export { KANBAN_BOARD_COLLISION_DETECTION, type KanbanCellVirtualNavigation, type KanbanSortableCellPosition, type KanbanVirtualScrollRequest, kanbanKeyboardCoordinates };
|
|
@@ -6,7 +6,7 @@ import { cn } from "../lib/utils.js";
|
|
|
6
6
|
import { KANBAN_BOARD_COLLISION_DETECTION, KANBAN_DROP_TARGET_TYPES, clearKanbanKeyboardTarget, getKanbanKeyboardTargetState, isKanbanDropSettled, kanbanKeyboardCoordinates } from "./sortable-interactions.logic.js";
|
|
7
7
|
import { isActiveTouchChange } from "./touch-identity.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import * as React
|
|
9
|
+
import * as React from "react";
|
|
10
10
|
import { createPortal } from "react-dom";
|
|
11
11
|
import { AutoScrollActivator, DndContext, DragOverlay, KeyboardSensor, MouseSensor, TouchSensor, useDroppable, useSensor, useSensors } from "@dnd-kit/core";
|
|
12
12
|
import { useSortable } from "@dnd-kit/sortable";
|
|
@@ -306,7 +306,7 @@ const getTouchDocument = (event) => {
|
|
|
306
306
|
if (event.target instanceof Node && event.target.ownerDocument) return event.target.ownerDocument;
|
|
307
307
|
return document;
|
|
308
308
|
};
|
|
309
|
-
const KanbanInteractionReadinessContext = React
|
|
309
|
+
const KanbanInteractionReadinessContext = React.createContext(true);
|
|
310
310
|
/**
|
|
311
311
|
* Register a board-level drop target such as an empty cell or terminal lane.
|
|
312
312
|
*
|
|
@@ -315,7 +315,7 @@ const KanbanInteractionReadinessContext = React$1.createContext(true);
|
|
|
315
315
|
* context.
|
|
316
316
|
*/
|
|
317
317
|
const useKanbanDropTarget = ({ disabled, id, itemIds, navigation, position }) => {
|
|
318
|
-
const interactionReady = React
|
|
318
|
+
const interactionReady = React.useContext(KanbanInteractionReadinessContext);
|
|
319
319
|
const dropTarget = useDroppable({
|
|
320
320
|
data: {
|
|
321
321
|
itemIds,
|
|
@@ -339,11 +339,11 @@ const useKanbanDropTarget = ({ disabled, id, itemIds, navigation, position }) =>
|
|
|
339
339
|
* and overlay lifecycle shared by sortable board UIs.
|
|
340
340
|
*/
|
|
341
341
|
const KanbanSortableBoard = ({ children, onDragEnd, mouseActivationDistance, collisionDetection, keyboardCoordinates, autoScroll, sensors, accessibility, onDragStart, onDragOver, onDragCancel, onInteractionReady, overlay, overlayProps }) => {
|
|
342
|
-
const [activeId, setActiveId] = React
|
|
343
|
-
const [interactionReady, setInteractionReady] = React
|
|
344
|
-
const interactionReadyNotified = React
|
|
342
|
+
const [activeId, setActiveId] = React.useState(null);
|
|
343
|
+
const [interactionReady, setInteractionReady] = React.useState(false);
|
|
344
|
+
const interactionReadyNotified = React.useRef(false);
|
|
345
345
|
const defaultSensors = useKanbanSortableSensors(keyboardCoordinates, mouseActivationDistance);
|
|
346
|
-
React
|
|
346
|
+
React.useEffect(() => {
|
|
347
347
|
const frame = requestAnimationFrame(() => {
|
|
348
348
|
setInteractionReady(true);
|
|
349
349
|
});
|
|
@@ -351,7 +351,7 @@ const KanbanSortableBoard = ({ children, onDragEnd, mouseActivationDistance, col
|
|
|
351
351
|
cancelAnimationFrame(frame);
|
|
352
352
|
};
|
|
353
353
|
}, []);
|
|
354
|
-
React
|
|
354
|
+
React.useEffect(() => {
|
|
355
355
|
if (!interactionReady || interactionReadyNotified.current) return;
|
|
356
356
|
interactionReadyNotified.current = true;
|
|
357
357
|
onInteractionReady?.();
|
|
@@ -393,8 +393,8 @@ const useKanbanSortableSensors = (keyboardCoordinates = kanbanKeyboardCoordinate
|
|
|
393
393
|
* item's content a touch-none activation surface.
|
|
394
394
|
*/
|
|
395
395
|
const useKanbanSortable = ({ activation, id, disabled }) => {
|
|
396
|
-
const interactionReady = React
|
|
397
|
-
const data = React
|
|
396
|
+
const interactionReady = React.useContext(KanbanInteractionReadinessContext);
|
|
397
|
+
const data = React.useMemo(() => ({
|
|
398
398
|
navigation: { current: { type: "idle" } },
|
|
399
399
|
type: KANBAN_DROP_TARGET_TYPES.ITEM
|
|
400
400
|
}), []);
|
|
@@ -488,7 +488,7 @@ const getKanbanCardDragSurfaceListeners = (listeners) => {
|
|
|
488
488
|
/** A whole-card drag activator that preserves descendant controls and scrolling. */
|
|
489
489
|
const KanbanCardDragSurface = ({ bindings, className, ...props }) => {
|
|
490
490
|
const { listeners, setActivatorNodeRef: setCardActivatorNodeRef } = bindings;
|
|
491
|
-
const setActivatorNodeRef = React
|
|
491
|
+
const setActivatorNodeRef = React.useCallback((element) => {
|
|
492
492
|
setCardActivatorNodeRef(element);
|
|
493
493
|
}, [setCardActivatorNodeRef]);
|
|
494
494
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* How a button expresses "unavailable".
|
|
4
4
|
*
|
|
@@ -27,7 +27,7 @@ type ButtonDispositionInput = {
|
|
|
27
27
|
disabled: boolean | undefined;
|
|
28
28
|
loading: boolean | undefined;
|
|
29
29
|
/** Resolved tooltip content, i.e. what `renderTooltipTrigger` would mount. */
|
|
30
|
-
tooltip: React
|
|
30
|
+
tooltip: React.ReactNode;
|
|
31
31
|
};
|
|
32
32
|
export declare const resolveButtonDisposition: ({ disabled, loading, tooltip }: ButtonDispositionInput) => ButtonDisposition;
|
|
33
33
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
/**
|
|
3
3
|
* Whether a tooltip value would actually render a popup.
|
|
4
4
|
*
|
|
@@ -7,4 +7,4 @@ import * as React$1 from "react";
|
|
|
7
7
|
* a disabled button has to stay hoverable so that popup can open. Two copies of
|
|
8
8
|
* this predicate would drift into a button that suppresses its own tooltip.
|
|
9
9
|
*/
|
|
10
|
-
export declare const hasTooltipContent: (content: React
|
|
10
|
+
export declare const hasTooltipContent: (content: React.ReactNode) => boolean;
|
package/dist/lib/utils.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { ClassValue } from "clsx";
|
|
3
3
|
export declare function cn(...inputs: ClassValue[]): string;
|
|
4
4
|
/**
|
|
@@ -14,4 +14,4 @@ export declare function cn(...inputs: ClassValue[]): string;
|
|
|
14
14
|
* their callback happened to return as a cleanup, and warn
|
|
15
15
|
* when it is neither a function nor `undefined`.
|
|
16
16
|
*/
|
|
17
|
-
export declare const composeRefs: <T>(...refs: (React
|
|
17
|
+
export declare const composeRefs: <T>(...refs: (React.Ref<T> | undefined)[]) => ((node: T | null) => (() => void) | undefined);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.72.0",
|
|
4
4
|
"description": "Stella's design system: bidi-aware React primitives built on Base UI, the dockable inspector pane, and the Tailwind v4 theme they are styled with.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"base-ui",
|
|
@@ -930,9 +930,9 @@
|
|
|
930
930
|
"class-variance-authority": "^0.7.1",
|
|
931
931
|
"clsx": "^2.1.1",
|
|
932
932
|
"input-otp": "^1.5.0",
|
|
933
|
-
"lucide-react": "1.
|
|
933
|
+
"lucide-react": "1.70.0",
|
|
934
934
|
"tailwind-merge": "^3.7.0",
|
|
935
|
-
"temporal-polyfill": "1.0.
|
|
935
|
+
"temporal-polyfill": "1.0.8"
|
|
936
936
|
},
|
|
937
937
|
"devDependencies": {
|
|
938
938
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|
|
@@ -941,12 +941,12 @@
|
|
|
941
941
|
"@dnd-kit/core": "^6.3.1",
|
|
942
942
|
"@dnd-kit/sortable": "^10.0.0",
|
|
943
943
|
"@happy-dom/global-registrator": "21.0.4",
|
|
944
|
-
"@playwright/test": "^1.
|
|
944
|
+
"@playwright/test": "^1.65.0",
|
|
945
945
|
"@stll/playwright-tools": "0.0.0",
|
|
946
946
|
"@stll/property-testing": "0.0.0",
|
|
947
947
|
"@stll/typescript-config": "0.0.0",
|
|
948
|
-
"@tailwindcss/vite": "4.3.
|
|
949
|
-
"@tanstack/react-virtual": "^3.14.
|
|
948
|
+
"@tailwindcss/vite": "4.3.5",
|
|
949
|
+
"@tanstack/react-virtual": "^3.14.26",
|
|
950
950
|
"@testing-library/dom": "10.4.2",
|
|
951
951
|
"@testing-library/react": "16.3.3",
|
|
952
952
|
"@types/react": "^19.3.0",
|
|
@@ -955,9 +955,9 @@
|
|
|
955
955
|
"fast-check": "^4.10.2",
|
|
956
956
|
"react": "^19.3.1",
|
|
957
957
|
"react-dom": "^19.3.1",
|
|
958
|
-
"tailwindcss": "4.3.
|
|
959
|
-
"tsdown": "0.23.
|
|
960
|
-
"tsrs": "0.
|
|
958
|
+
"tailwindcss": "4.3.5",
|
|
959
|
+
"tsdown": "0.23.7",
|
|
960
|
+
"tsrs": "0.23.0-ts7.1.0-beta",
|
|
961
961
|
"vite": "8.3.5"
|
|
962
962
|
},
|
|
963
963
|
"peerDependencies": {
|