@stll/ui 0.71.0 → 0.73.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/button.d.ts +4 -2
- package/dist/components/button.js +8 -1
- package/dist/components/button.native-classes.js +15 -0
- package/dist/components/button.shared.d.ts +5 -1
- package/dist/components/button.shared.js +6 -0
- package/dist/components/checkbox.d.ts +15 -1
- package/dist/components/checkbox.js +74 -30
- package/dist/components/collapsible.d.ts +2 -2
- package/dist/components/collapsible.js +3 -3
- 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/composer.js +1 -1
- 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/highlighted-textarea.d.ts +13 -0
- package/dist/components/highlighted-textarea.js +47 -0
- 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 +22 -21
- package/dist/components/menu.js +4 -1
- package/dist/components/outcome-screen-view.d.ts +88 -0
- package/dist/components/outcome-screen-view.js +170 -0
- package/dist/components/outcome-screen.d.ts +16 -0
- package/dist/components/outcome-screen.js +47 -0
- package/dist/components/outline-rail.d.ts +12 -0
- package/dist/components/pagination.d.ts +9 -9
- package/dist/components/popover.d.ts +10 -9
- package/dist/components/popover.js +4 -1
- 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-layout.d.ts +14 -0
- package/dist/components/table-layout.js +15 -0
- package/dist/components/table.d.ts +18 -17
- package/dist/components/table.js +2 -1
- package/dist/components/textarea.d.ts +5 -3
- package/dist/components/textarea.js +27 -15
- 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 +29 -1
- package/dist/icons.js +55 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +3 -1
- 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/dist/styles/collapsible.css +26 -0
- package/dist/styles/theme.css +35 -0
- package/package.json +17 -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);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/* Base UI owns initial-open suppression, beforematch, and interruption.
|
|
2
|
+
* Layout changes directly; only the revealed content fades. Open content
|
|
3
|
+
* and hanging controls remain free to overflow throughout the reveal. */
|
|
4
|
+
[data-slot="collapsible-panel"] {
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
[data-slot="collapsible-panel"][data-open] {
|
|
9
|
+
overflow: visible;
|
|
10
|
+
animation: stella-collapsible-open 200ms ease-in-out;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@keyframes stella-collapsible-open {
|
|
14
|
+
from {
|
|
15
|
+
opacity: 0;
|
|
16
|
+
}
|
|
17
|
+
to {
|
|
18
|
+
opacity: 1;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@media (prefers-reduced-motion: reduce) {
|
|
23
|
+
[data-slot="collapsible-panel"][data-open] {
|
|
24
|
+
animation: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
package/dist/styles/theme.css
CHANGED
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* is already in scope (the palettes derive from `--color-*-500`).
|
|
16
16
|
*/
|
|
17
17
|
@import "./inline-rename.css";
|
|
18
|
+
@import "./collapsible.css";
|
|
18
19
|
@import "../components/animated-preview.css";
|
|
19
20
|
|
|
20
21
|
@custom-variant dark (&:is(.dark *));
|
|
@@ -33,6 +34,10 @@
|
|
|
33
34
|
--shadow-floating-ring:
|
|
34
35
|
0 0 0 1px rgb(0 0 0 / 0.02), 0 1px 2px rgb(0 0 0 / 0.03),
|
|
35
36
|
0 8px 20px rgb(0 0 0 / 0.05);
|
|
37
|
+
/* A small tile that stands on the page by itself (OutcomeScreen): a hairline
|
|
38
|
+
ring, a contact shadow and a soft drop, each light enough to read as
|
|
39
|
+
one crisp edge; the dark scheme swaps in a faint top highlight. */
|
|
40
|
+
--shadow-outcome-tile: var(--outcome-tile-shadow);
|
|
36
41
|
--color-background: var(--background);
|
|
37
42
|
--color-foreground: var(--foreground);
|
|
38
43
|
--color-sidebar-ring: var(--sidebar-ring);
|
|
@@ -154,6 +159,30 @@
|
|
|
154
159
|
--animate-toast-countdown: toast-countdown 1s linear forwards;
|
|
155
160
|
/* A list item settling into place; callers stagger it by index. */
|
|
156
161
|
--animate-rise: rise 240ms ease-out both;
|
|
162
|
+
/* OutcomeScreen: the line between the two tiles draws once, then the
|
|
163
|
+
status badge settles onto it. Transform and opacity only. */
|
|
164
|
+
--animate-outcome-connector: outcome-connector 200ms ease-out both;
|
|
165
|
+
--animate-outcome-badge: outcome-badge 200ms ease-out 120ms both;
|
|
166
|
+
@keyframes outcome-connector {
|
|
167
|
+
from {
|
|
168
|
+
opacity: 0;
|
|
169
|
+
transform: scaleX(0.6);
|
|
170
|
+
}
|
|
171
|
+
to {
|
|
172
|
+
opacity: 1;
|
|
173
|
+
transform: scaleX(1);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
@keyframes outcome-badge {
|
|
177
|
+
from {
|
|
178
|
+
opacity: 0;
|
|
179
|
+
transform: scale(0.95);
|
|
180
|
+
}
|
|
181
|
+
to {
|
|
182
|
+
opacity: 1;
|
|
183
|
+
transform: scale(1);
|
|
184
|
+
}
|
|
185
|
+
}
|
|
157
186
|
/* StatusMark: the running arc turns (paused, never reset, when it stops);
|
|
158
187
|
under reduced motion a running ring breathes instead. Its state
|
|
159
188
|
changes are transitions, owned by the component. */
|
|
@@ -1426,11 +1455,17 @@
|
|
|
1426
1455
|
--auth-gradient-end: #cbe1fc;
|
|
1427
1456
|
--error-gradient-end: #fbe9e4;
|
|
1428
1457
|
--shadow-tint: rgb(23 28 38);
|
|
1458
|
+
--outcome-tile-shadow:
|
|
1459
|
+
0 0 0 1px rgb(0 0 0 / 0.06), 0 1px 2px rgb(0 0 0 / 0.06),
|
|
1460
|
+
0 4px 12px -2px rgb(0 0 0 / 0.08);
|
|
1429
1461
|
}
|
|
1430
1462
|
|
|
1431
1463
|
.dark {
|
|
1432
1464
|
--auth-gradient-end: #1a3a5c;
|
|
1433
1465
|
--error-gradient-end: #261815;
|
|
1466
|
+
--outcome-tile-shadow:
|
|
1467
|
+
inset 0 1px 0 rgb(255 255 255 / 0.06), 0 0 0 1px rgb(255 255 255 / 0.08),
|
|
1468
|
+
0 1px 2px rgb(0 0 0 / 0.4), 0 4px 12px -2px rgb(0 0 0 / 0.5);
|
|
1434
1469
|
}
|
|
1435
1470
|
|
|
1436
1471
|
/* A category's tile takes its hue from the category (`--cat-hue`, set inline);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.73.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",
|
|
@@ -234,6 +234,10 @@
|
|
|
234
234
|
"types": "./dist/lib/file-size.d.ts",
|
|
235
235
|
"import": "./dist/lib/file-size.js"
|
|
236
236
|
},
|
|
237
|
+
"./highlighted-textarea": {
|
|
238
|
+
"types": "./dist/components/highlighted-textarea.d.ts",
|
|
239
|
+
"import": "./dist/components/highlighted-textarea.js"
|
|
240
|
+
},
|
|
237
241
|
"./hex-color-picker": {
|
|
238
242
|
"types": "./dist/components/hex-color-picker.d.ts",
|
|
239
243
|
"import": "./dist/components/hex-color-picker.js"
|
|
@@ -494,6 +498,10 @@
|
|
|
494
498
|
"types": "./dist/components/middle-truncate.d.ts",
|
|
495
499
|
"import": "./dist/components/middle-truncate.js"
|
|
496
500
|
},
|
|
501
|
+
"./outcome-screen": {
|
|
502
|
+
"types": "./dist/components/outcome-screen.d.ts",
|
|
503
|
+
"import": "./dist/components/outcome-screen.js"
|
|
504
|
+
},
|
|
497
505
|
"./skeleton": {
|
|
498
506
|
"types": "./dist/components/skeleton.d.ts",
|
|
499
507
|
"import": "./dist/components/skeleton.js"
|
|
@@ -930,9 +938,9 @@
|
|
|
930
938
|
"class-variance-authority": "^0.7.1",
|
|
931
939
|
"clsx": "^2.1.1",
|
|
932
940
|
"input-otp": "^1.5.0",
|
|
933
|
-
"lucide-react": "1.
|
|
941
|
+
"lucide-react": "1.70.0",
|
|
934
942
|
"tailwind-merge": "^3.7.0",
|
|
935
|
-
"temporal-polyfill": "1.0.
|
|
943
|
+
"temporal-polyfill": "1.0.8"
|
|
936
944
|
},
|
|
937
945
|
"devDependencies": {
|
|
938
946
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|
|
@@ -941,12 +949,12 @@
|
|
|
941
949
|
"@dnd-kit/core": "^6.3.1",
|
|
942
950
|
"@dnd-kit/sortable": "^10.0.0",
|
|
943
951
|
"@happy-dom/global-registrator": "21.0.4",
|
|
944
|
-
"@playwright/test": "^1.
|
|
952
|
+
"@playwright/test": "^1.65.0",
|
|
945
953
|
"@stll/playwright-tools": "0.0.0",
|
|
946
954
|
"@stll/property-testing": "0.0.0",
|
|
947
955
|
"@stll/typescript-config": "0.0.0",
|
|
948
|
-
"@tailwindcss/vite": "4.3.
|
|
949
|
-
"@tanstack/react-virtual": "^3.14.
|
|
956
|
+
"@tailwindcss/vite": "4.3.5",
|
|
957
|
+
"@tanstack/react-virtual": "^3.14.26",
|
|
950
958
|
"@testing-library/dom": "10.4.2",
|
|
951
959
|
"@testing-library/react": "16.3.3",
|
|
952
960
|
"@types/react": "^19.3.0",
|
|
@@ -955,9 +963,9 @@
|
|
|
955
963
|
"fast-check": "^4.10.2",
|
|
956
964
|
"react": "^19.3.1",
|
|
957
965
|
"react-dom": "^19.3.1",
|
|
958
|
-
"tailwindcss": "4.3.
|
|
959
|
-
"tsdown": "0.23.
|
|
960
|
-
"tsrs": "0.
|
|
966
|
+
"tailwindcss": "4.3.5",
|
|
967
|
+
"tsdown": "0.23.7",
|
|
968
|
+
"tsrs": "0.23.0-ts7.1.0-beta",
|
|
961
969
|
"vite": "8.3.5"
|
|
962
970
|
},
|
|
963
971
|
"peerDependencies": {
|