@stll/ui 0.69.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/button.d.ts +13 -1
- package/dist/components/button.js +14 -5
- 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/date-picker-popover.js +8 -2
- 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/document-identity-badge.js +6 -0
- package/dist/components/frame.d.ts +7 -7
- package/dist/components/hex-color-picker.d.ts +16 -2
- package/dist/components/horizontal-scroller.d.ts +6 -0
- package/dist/components/horizontal-scroller.js +59 -33
- package/dist/components/identity-text.js +1 -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 +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/split-button.d.ts +6 -1
- package/dist/components/split-button.js +8 -3
- 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/components/view-toolbar.d.ts +11 -3
- package/dist/components/view-toolbar.js +16 -5
- 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 -2
- package/dist/icons.js +1 -1
- 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/file-size.d.ts +16 -0
- package/dist/lib/file-size.js +30 -0
- package/dist/lib/tooltip-content.d.ts +2 -2
- package/dist/lib/utils.d.ts +2 -2
- package/dist/review/review-out-of-date-notice.d.ts +7 -1
- package/dist/review/review-out-of-date-notice.js +4 -1
- package/dist/styles/inline-rename.css +9 -0
- package/package.json +13 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { Toast, ToastManagerAddOptions, ToastObject } from "@base-ui/react/toast";
|
|
3
3
|
type ToastData = {
|
|
4
4
|
tooltipStyle?: boolean;
|
|
@@ -11,17 +11,17 @@ type ToastData = {
|
|
|
11
11
|
};
|
|
12
12
|
declare const TOAST_RIGHT_OFFSET_VAR = "--stella-toast-right-offset";
|
|
13
13
|
declare const TOAST_ICONS: {
|
|
14
|
-
readonly error: React
|
|
15
|
-
readonly info: React
|
|
14
|
+
readonly error: React.JSX.Element;
|
|
15
|
+
readonly info: React.JSX.Element;
|
|
16
16
|
readonly loading: null;
|
|
17
17
|
readonly neutral: null;
|
|
18
|
-
readonly success: React
|
|
19
|
-
readonly warning: React
|
|
18
|
+
readonly success: React.JSX.Element;
|
|
19
|
+
readonly warning: React.JSX.Element;
|
|
20
20
|
};
|
|
21
21
|
type ToastType = keyof typeof TOAST_ICONS;
|
|
22
22
|
type ToastAction = {
|
|
23
|
-
label: React
|
|
24
|
-
onClick?: React
|
|
23
|
+
label: React.ReactNode;
|
|
24
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
25
25
|
};
|
|
26
26
|
type ToastActionProps = ToastManagerAddOptions<ToastData>["actionProps"];
|
|
27
27
|
type ToastOptions = Omit<ToastManagerAddOptions<ToastData>, "actionProps" | "title" | "type"> & {
|
|
@@ -29,7 +29,7 @@ type ToastOptions = Omit<ToastManagerAddOptions<ToastData>, "actionProps" | "tit
|
|
|
29
29
|
actionProps?: ToastActionProps;
|
|
30
30
|
};
|
|
31
31
|
type ToastUpdateFields = Partial<Omit<ToastOptions, "timeout">> & {
|
|
32
|
-
title?: React
|
|
32
|
+
title?: React.ReactNode | undefined;
|
|
33
33
|
};
|
|
34
34
|
type ToastUpdateOptions = (ToastUpdateFields & {
|
|
35
35
|
type: ToastType;
|
|
@@ -38,35 +38,35 @@ type ToastUpdateOptions = (ToastUpdateFields & {
|
|
|
38
38
|
type?: undefined;
|
|
39
39
|
timeout?: number | undefined;
|
|
40
40
|
});
|
|
41
|
-
type ToastPromiseMessage = React
|
|
41
|
+
type ToastPromiseMessage = React.ReactNode | ToastUpdateOptions;
|
|
42
42
|
type ToastPromiseOptions<Value> = {
|
|
43
43
|
error: ToastPromiseMessage | ((error: unknown) => ToastPromiseMessage);
|
|
44
44
|
loading: ToastPromiseMessage;
|
|
45
45
|
success: ToastPromiseMessage | ((value: Value) => ToastPromiseMessage);
|
|
46
46
|
};
|
|
47
47
|
type ToastApi = {
|
|
48
|
-
(title: React
|
|
48
|
+
(title: React.ReactNode, options?: ToastOptions): string;
|
|
49
49
|
add: (options: ToastAddOptions) => string;
|
|
50
50
|
close: (id?: string) => void;
|
|
51
51
|
dismiss: (id?: string) => void;
|
|
52
|
-
error: (title: React
|
|
53
|
-
info: (title: React
|
|
54
|
-
loading: (title: React
|
|
52
|
+
error: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
53
|
+
info: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
54
|
+
loading: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
55
55
|
promise: <Value>(promiseValue: Promise<Value>, options: ToastPromiseOptions<Value>) => Promise<Value>;
|
|
56
|
-
success: (title: React
|
|
56
|
+
success: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
57
57
|
update: (id: string, options: ToastUpdateOptions) => void;
|
|
58
|
-
warning: (title: React
|
|
58
|
+
warning: (title: React.ReactNode, options?: ToastOptions) => string;
|
|
59
59
|
};
|
|
60
60
|
type ToastAddOptions = ToastUpdateOptions & {
|
|
61
|
-
title: React
|
|
61
|
+
title: React.ReactNode;
|
|
62
62
|
};
|
|
63
63
|
type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
64
64
|
type ToastProviderProps = {
|
|
65
65
|
position?: ToastPosition;
|
|
66
66
|
} & Toast.Provider.Props;
|
|
67
67
|
declare const stellaToast: ToastApi;
|
|
68
|
-
declare const ToastProvider: ({ children, position, ...props }: ToastProviderProps) => React
|
|
69
|
-
declare const AnchoredToastProvider: ({ children, ...props }: Toast.Provider.Props) => React
|
|
68
|
+
declare const ToastProvider: ({ children, position, ...props }: ToastProviderProps) => React.JSX.Element;
|
|
69
|
+
declare const AnchoredToastProvider: ({ children, ...props }: Toast.Provider.Props) => React.JSX.Element;
|
|
70
70
|
/**
|
|
71
71
|
* The same message raised again refreshes the toast already on screen (and
|
|
72
72
|
* restarts its timer) instead of stacking a copy. Only plain-text messages
|
|
@@ -76,8 +76,8 @@ declare const AnchoredToastProvider: ({ children, ...props }: Toast.Provider.Pro
|
|
|
76
76
|
declare function toastDedupeId({ action, actionProps, description, title, type }: {
|
|
77
77
|
action?: ToastAction | undefined;
|
|
78
78
|
actionProps?: ToastActionProps | undefined;
|
|
79
|
-
description?: React
|
|
80
|
-
title: React
|
|
79
|
+
description?: React.ReactNode | undefined;
|
|
80
|
+
title: React.ReactNode;
|
|
81
81
|
type?: ToastType | undefined;
|
|
82
82
|
}): string | undefined;
|
|
83
83
|
/**
|
package/dist/components/toast.js
CHANGED
|
@@ -6,7 +6,7 @@ import { buttonVariants } from "./button.js";
|
|
|
6
6
|
import { Loader } from "./loader.js";
|
|
7
7
|
import { ScrollArea } from "./scroll-area.js";
|
|
8
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import * as React
|
|
9
|
+
import * as React from "react";
|
|
10
10
|
import { Toast } from "@base-ui/react/toast";
|
|
11
11
|
// src/components/toast.tsx
|
|
12
12
|
const toastManager = Toast.createToastManager();
|
|
@@ -64,7 +64,7 @@ const ToastProvider = ({ children, position = "bottom-right", ...props }) => /*
|
|
|
64
64
|
const Toasts = ({ position }) => {
|
|
65
65
|
const { toasts } = Toast.useToastManager();
|
|
66
66
|
const isTop = position.startsWith("top");
|
|
67
|
-
const windowFocused = React
|
|
67
|
+
const windowFocused = React.useSyncExternalStore(subscribeWindowFocus, readWindowFocus, readServerWindowFocus);
|
|
68
68
|
return /* @__PURE__ */ jsx(Toast.Portal, {
|
|
69
69
|
"data-slot": "toast-portal",
|
|
70
70
|
children: /* @__PURE__ */ jsx(Toast.Viewport, {
|
|
@@ -349,7 +349,7 @@ function getPromiseToastUpdateOptions(option, value, type) {
|
|
|
349
349
|
}
|
|
350
350
|
function isToastUpdateOptions(value) {
|
|
351
351
|
if (typeof value !== "object" || value === null) return false;
|
|
352
|
-
if (Array.isArray(value) || React
|
|
352
|
+
if (Array.isArray(value) || React.isValidElement(value)) return false;
|
|
353
353
|
return !(Symbol.iterator in value);
|
|
354
354
|
}
|
|
355
355
|
const ToastIcon = ({ type }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./button.js";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { ButtonSize } from "./button.shared.js";
|
|
4
4
|
import { ToggleGroup as ToggleGroup$1 } from "@base-ui/react/toggle-group";
|
|
5
5
|
import { ToggleProps } from "./toggle.js";
|
|
@@ -15,16 +15,16 @@ import { ToggleProps } from "./toggle.js";
|
|
|
15
15
|
* Base UI lets the pressed item be clicked off, leaving no value. A control
|
|
16
16
|
* that must always hold one ignores an empty change in `onValueChange`.
|
|
17
17
|
*/
|
|
18
|
-
declare const ToggleGroup: <Value extends string>({ className, size, ...props }: ToggleGroupProps<Value>) => React
|
|
18
|
+
declare const ToggleGroup: <Value extends string>({ className, size, ...props }: ToggleGroupProps<Value>) => React.JSX.Element;
|
|
19
19
|
/**
|
|
20
20
|
* One choice in a `ToggleGroup`. It takes the group's size unless it names
|
|
21
21
|
* its own (an icon item names an `icon-*` size and an `aria-label`, which
|
|
22
22
|
* doubles as its tooltip).
|
|
23
23
|
*/
|
|
24
|
-
declare const ToggleGroupItem: <Value extends string>({ className, size, variant, ...props }: ToggleProps<Value>) => React
|
|
24
|
+
declare const ToggleGroupItem: <Value extends string>({ className, size, variant, ...props }: ToggleProps<Value>) => React.JSX.Element;
|
|
25
25
|
type ToggleGroupProps<Value extends string> = ToggleGroup$1.Props<Value> & {
|
|
26
26
|
/** The size every item takes unless it names its own. */
|
|
27
27
|
size?: ButtonSize | undefined;
|
|
28
|
-
children?: React
|
|
28
|
+
children?: React.ReactNode;
|
|
29
29
|
};
|
|
30
30
|
export { ToggleGroup, ToggleGroupItem, type ToggleGroupProps };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./button.js";
|
|
2
|
-
import * as React
|
|
2
|
+
import * as React from "react";
|
|
3
3
|
import { ButtonSize } from "./button.shared.js";
|
|
4
4
|
import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
5
5
|
/**
|
|
@@ -12,13 +12,13 @@ import { Toggle as Toggle$1 } from "@base-ui/react/toggle";
|
|
|
12
12
|
* Several toggles that choose one value (view modes, filter tabs) are a
|
|
13
13
|
* `ToggleGroup`, not a row of these.
|
|
14
14
|
*/
|
|
15
|
-
declare const Toggle: <Value extends string>({ size, tooltip, variant, ...props }: ToggleProps<Value>) => React
|
|
15
|
+
declare const Toggle: <Value extends string>({ size, tooltip, variant, ...props }: ToggleProps<Value>) => React.JSX.Element;
|
|
16
16
|
/** The quiet button looks a pressed state reads well on. */
|
|
17
17
|
type ToggleVariant = "ghost" | "muted" | "outline";
|
|
18
18
|
type ToggleProps<Value extends string> = Toggle$1.Props<Value> & {
|
|
19
19
|
size?: ButtonSize | undefined;
|
|
20
20
|
/** The hint, and the accessible name source for an icon size. */
|
|
21
|
-
tooltip?: React
|
|
21
|
+
tooltip?: React.ReactNode;
|
|
22
22
|
variant?: ToggleVariant | undefined;
|
|
23
23
|
};
|
|
24
24
|
export { Toggle, type ToggleProps, type ToggleVariant };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
type TooltipTriggerOptions = {
|
|
3
|
-
trigger: React
|
|
4
|
-
tooltip: React
|
|
3
|
+
trigger: React.ReactElement;
|
|
4
|
+
tooltip: React.ReactNode;
|
|
5
5
|
};
|
|
6
6
|
/**
|
|
7
7
|
* Overlay triggers pass only an explicit `tooltip`. They cannot tell whether
|
|
8
8
|
* their content is a label or a glyph; a trigger rendered as `Button` hands its
|
|
9
9
|
* `aria-label` to that Button, whose size decides (see `BUTTON_SIZE_CONTENT`).
|
|
10
10
|
*/
|
|
11
|
-
declare const renderTooltipTrigger: ({ trigger, tooltip }: TooltipTriggerOptions) => React
|
|
11
|
+
declare const renderTooltipTrigger: ({ trigger, tooltip }: TooltipTriggerOptions) => React.JSX.Element;
|
|
12
12
|
export { renderTooltipTrigger };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { TooltipContent as TooltipPopup } from "./tooltip.js";
|
|
3
3
|
import { useRender } from "@base-ui/react/use-render";
|
|
4
4
|
/**
|
|
@@ -14,7 +14,7 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
14
14
|
* The tap popover stays out of the way when the text sits inside a link,
|
|
15
15
|
* button or other control: the tap belongs to that control.
|
|
16
16
|
*/
|
|
17
|
-
declare const TruncatedText: ({ children, className, hint, lines, render, side, tooltip, ...props }: TruncatedTextProps) => React
|
|
17
|
+
declare const TruncatedText: ({ children, className, hint, lines, render, side, tooltip, ...props }: TruncatedTextProps) => React.JSX.Element;
|
|
18
18
|
/**
|
|
19
19
|
* How many lines the text may take before it is cut; `"none"` lets it take
|
|
20
20
|
* as many as it needs, for text that is cut only in some states (collapsed,
|
|
@@ -30,12 +30,12 @@ type TruncatedTextProps = useRender.ComponentProps<"span"> & {
|
|
|
30
30
|
*/
|
|
31
31
|
hint?: boolean;
|
|
32
32
|
lines?: TruncatedTextLines;
|
|
33
|
-
side?: React
|
|
33
|
+
side?: React.ComponentProps<typeof TooltipPopup>["side"];
|
|
34
34
|
/**
|
|
35
35
|
* What the tooltip shows; the text itself by default. Pass it when the
|
|
36
36
|
* children are not plain text (a highlighted search match, a link).
|
|
37
37
|
*/
|
|
38
|
-
tooltip?: React
|
|
38
|
+
tooltip?: React.ReactNode;
|
|
39
39
|
};
|
|
40
40
|
/** Whether the element's text is cut by its box, in either direction. */
|
|
41
41
|
declare function isTextOverflowing(element: Pick<HTMLElement, "clientHeight" | "clientWidth" | "scrollHeight" | "scrollWidth"> | null): boolean;
|
|
@@ -4,7 +4,7 @@ import { cn } from "../lib/utils.js";
|
|
|
4
4
|
import { Popover, PopoverContent as PopoverPopup } from "./popover.js";
|
|
5
5
|
import { Tooltip, TooltipContent as TooltipPopup, TooltipTrigger } from "./tooltip.js";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
|
-
import * as React
|
|
7
|
+
import * as React from "react";
|
|
8
8
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
9
9
|
import { useRender } from "@base-ui/react/use-render";
|
|
10
10
|
// src/components/truncated-text.tsx
|
|
@@ -22,8 +22,8 @@ import { useRender } from "@base-ui/react/use-render";
|
|
|
22
22
|
* button or other control: the tap belongs to that control.
|
|
23
23
|
*/
|
|
24
24
|
const TruncatedText = ({ children, className, hint = true, lines = 1, render, side = "top", tooltip, ...props }) => {
|
|
25
|
-
const ref = React
|
|
26
|
-
const [surface, setSurface] = React
|
|
25
|
+
const ref = React.useRef(null);
|
|
26
|
+
const [surface, setSurface] = React.useState(null);
|
|
27
27
|
const content = tooltip ?? children;
|
|
28
28
|
const handleTooltipOpenChange = (open) => {
|
|
29
29
|
if (!open) {
|
|
@@ -1,9 +1,17 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import { ComponentProps } from "react";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* The one row that holds a view switcher and its toolbar. It never wraps: at
|
|
5
|
+
* any width the tabs and the controls share a single line, the tabs taking the
|
|
6
|
+
* free space and scrolling, the toolbar keeping its place at the end.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ViewChromeBar: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
|
|
9
|
+
/**
|
|
10
|
+
* Shared view controls, placed at the end of a `ViewChromeBar`. They stay on
|
|
11
|
+
* one line and scroll horizontally once they outgrow half the row on a phone,
|
|
12
|
+
* or two thirds of it from `md` up, so the tabs beside them always keep room
|
|
13
|
+
* for a whole tab and scroll, and a control past the edge is scrolled to rather
|
|
14
|
+
* than clipped.
|
|
7
15
|
*/
|
|
8
16
|
export declare const ViewToolbarChrome: ({ className, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
|
|
9
17
|
type ViewFilterButtonProps = Omit<ComponentProps<typeof Button>, "children" | "size" | "variant" | "aria-label" | "title"> & {
|
|
@@ -4,12 +4,23 @@ import { Button } from "./button.js";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
// src/components/view-toolbar.tsx
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* The one row that holds a view switcher and its toolbar. It never wraps: at
|
|
8
|
+
* any width the tabs and the controls share a single line, the tabs taking the
|
|
9
|
+
* free space and scrolling, the toolbar keeping its place at the end.
|
|
10
|
+
*/
|
|
11
|
+
const ViewChromeBar = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
12
|
+
className: cn("flex min-w-0 flex-nowrap items-center border-b", className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
/**
|
|
16
|
+
* Shared view controls, placed at the end of a `ViewChromeBar`. They stay on
|
|
17
|
+
* one line and scroll horizontally once they outgrow half the row on a phone,
|
|
18
|
+
* or two thirds of it from `md` up, so the tabs beside them always keep room
|
|
19
|
+
* for a whole tab and scroll, and a control past the edge is scrolled to rather
|
|
20
|
+
* than clipped.
|
|
10
21
|
*/
|
|
11
22
|
const ViewToolbarChrome = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
12
|
-
className: cn("flex max-w-
|
|
23
|
+
className: cn("ms-auto flex max-w-1/2 min-w-0 shrink-0 [scrollbar-width:none] flex-nowrap items-center gap-1 overflow-x-auto px-2 py-1 [-ms-overflow-style:none] md:max-w-2/3 [&::-webkit-scrollbar]:hidden", className),
|
|
13
24
|
...props
|
|
14
25
|
});
|
|
15
26
|
const ViewFilterButton = ({ label, ...props }) => /* @__PURE__ */ jsx(Button, {
|
|
@@ -26,4 +37,4 @@ const ViewFilterChip = ({ className, ...props }) => /* @__PURE__ */ jsx(Button,
|
|
|
26
37
|
size: "xs",
|
|
27
38
|
variant: "secondary"
|
|
28
39
|
});
|
|
29
|
-
export { ViewFilterButton, ViewFilterChip, ViewToolbarChrome };
|
|
40
|
+
export { ViewChromeBar, ViewFilterButton, ViewFilterChip, ViewToolbarChrome };
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The data table's schema: the columns a view has and what each of them can do.
|
|
3
|
+
*
|
|
4
|
+
* One module rather than one subpath per file, because the parts answer one
|
|
5
|
+
* question together: the capability queries and the visibility rule only mean
|
|
6
|
+
* anything against the descriptor list they read.
|
|
7
|
+
*/
|
|
1
8
|
import { DataTable, DataTableAriaSort, DataTableColumn, DataTableProps, DataTableRowAction } from "./table.js";
|
|
2
9
|
import { TableColumnCapabilities, TableColumnDescriptor, TableSchema, duplicateColumnIds, findTableColumn, hideableColumnIds, sortableColumnIds, tableColumnIds, tableColumnSizing, visibleColumnIds } from "./schema.js";
|
|
3
10
|
export { DataTable, type DataTableAriaSort, type DataTableColumn, type DataTableProps, type DataTableRowAction, type TableColumnCapabilities, type TableColumnDescriptor, type TableSchema, duplicateColumnIds, findTableColumn, hideableColumnIds, sortableColumnIds, tableColumnIds, tableColumnSizing, visibleColumnIds };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
type ContainmentRoot = {
|
|
3
3
|
contains: (target: Node) => boolean;
|
|
4
4
|
};
|
|
@@ -41,7 +41,7 @@ type ContainmentRoot = {
|
|
|
41
41
|
*/
|
|
42
42
|
export declare const containedHandler: <E extends {
|
|
43
43
|
target: unknown;
|
|
44
|
-
}>(ref: React
|
|
44
|
+
}>(ref: React.RefObject<ContainmentRoot | null> | null | undefined, handler: ((event: E) => void) | undefined) => (event: E) => void;
|
|
45
45
|
/**
|
|
46
46
|
* Contain a synchronous JSX handler to its own DOM subtree without a ref.
|
|
47
47
|
* Prefer this form when the element does not otherwise need a ref.
|
package/dist/hooks/use-mobile.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
// src/hooks/use-mobile.ts
|
|
3
3
|
/** The `md:` variant's own condition, as a media query. */
|
|
4
4
|
const MD_MEDIA_QUERY = `(min-width: 48rem)`;
|
|
@@ -11,6 +11,6 @@ const getSnapshot = () => !window.matchMedia(MD_MEDIA_QUERY).matches;
|
|
|
11
11
|
const getServerSnapshot = () => false;
|
|
12
12
|
/** True below `md`, where the layout collapses to a single column. */
|
|
13
13
|
function useIsMobile() {
|
|
14
|
-
return React
|
|
14
|
+
return React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
15
15
|
}
|
|
16
16
|
export { useIsMobile };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
// src/hooks/use-viewport-width.ts
|
|
3
3
|
const subscribe = (onChange) => {
|
|
4
4
|
window.addEventListener("resize", onChange);
|
|
@@ -8,6 +8,6 @@ const getSnapshot = () => window.innerWidth;
|
|
|
8
8
|
const getServerSnapshot = () => 0;
|
|
9
9
|
/** Viewport width in CSS pixels, tracked across resizes. */
|
|
10
10
|
function useViewportWidth() {
|
|
11
|
-
return React
|
|
11
|
+
return React.useSyncExternalStore(subscribe, getSnapshot, getServerSnapshot);
|
|
12
12
|
}
|
|
13
13
|
export { useViewportWidth };
|
package/dist/icons.d.ts
CHANGED
|
@@ -1,2 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Every icon Stella draws, from one module (`@stll/ui/icons`).
|
|
3
|
+
*
|
|
4
|
+
* This is the only file allowed to import from `lucide-react`
|
|
5
|
+
* (`no-direct-lucide-import` enforces it), so what a glyph means is decided
|
|
6
|
+
* here once instead of at each call site.
|
|
7
|
+
*
|
|
8
|
+
* Adding an icon:
|
|
9
|
+
* 1. Reuse first. If an entry below already names what you are drawing, use it.
|
|
10
|
+
* 2. When the icon stands for a product concept (a skill, an AI action, a
|
|
11
|
+
* section of the app), add a semantic entry: a name for the concept, the
|
|
12
|
+
* lucide glyph behind it, and a one-line comment saying why that glyph. Two
|
|
13
|
+
* semantic entries may share a glyph only with a `sharedOnPurpose:` line
|
|
14
|
+
* naming the other entry and the reason (`icons.test.ts` checks this). A
|
|
15
|
+
* glyph that only one component may draw (because the component carries
|
|
16
|
+
* behaviour, such as `CopyButton` confirming in place) adds an
|
|
17
|
+
* `ownedBy: <Component> (<repo path>)` line; `no-unowned-icon` then
|
|
18
|
+
* rejects every import of the entry outside that file. A glyph with a
|
|
19
|
+
* semantic entry is never re-exported under its plain lucide name, so a
|
|
20
|
+
* call site has to pick the meaning it draws.
|
|
21
|
+
* 3. Otherwise the icon is a plain re-export under its lucide name. Import it
|
|
22
|
+
* from here and run `bun scripts/codemod-icons.ts`, which rewrites any
|
|
23
|
+
* direct `lucide-react` import and regenerates the list at the bottom.
|
|
24
|
+
*
|
|
25
|
+
* Only ESM named re-exports live here, and the package marks nothing but its
|
|
26
|
+
* CSS as having side effects, so a bundler keeps just the glyphs a page uses.
|
|
27
|
+
*/
|
|
28
|
+
import { ActivityIcon, AlarmClockIcon, AlertCircleIcon, AlertTriangleIcon, AlignJustifyIcon, AlignLeftIcon, AppWindowMacIcon as BrowserControlIcon, ArchiveIcon, ArchiveRestoreIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, AtSignIcon, BanIcon, BanknoteIcon, BellIcon, BlocksIcon, BoldIcon, BookOpenCheckIcon, BookOpenIcon as CaseLawIcon, BookOpenIcon as SkillIcon, BookTextIcon, BookmarkIcon, BookmarkPlusIcon, BracesIcon, BrainIcon, Building2Icon, BuildingIcon, CableIcon, CalendarClockIcon, CalendarIcon, CheckCheckIcon, CheckCircle2Icon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleDashedIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CircleOffIcon, CircleUserRoundIcon, ClipboardCheckIcon, ClipboardCopyIcon, ClipboardIcon, ClipboardListIcon, Clock3Icon, ClockIcon, CloudIcon, CogIcon, Columns2Icon, Columns3Icon, CommandIcon, CompassIcon, CopyIcon as CopyFromMenuIcon, CopyIcon as CopyToClipboardIcon, CopyIcon as DuplicateIcon, CopyPlusIcon, CornerDownLeftIcon, CpuIcon, CropIcon, DatabaseIcon, DollarSignIcon, DownloadIcon, EditIcon, EllipsisIcon, EllipsisVerticalIcon, EqualIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileBadgeIcon, FileCheckIcon, FileCodeIcon, FileDiffIcon, FileDigitIcon, FileDownIcon, FileIcon, FileImageIcon, FileOutputIcon, FilePlus2Icon, FilePlusIcon, FileQuestionIcon, FileSearchIcon, FileSpreadsheetIcon, FileStackIcon as EditPagesIcon, FileTextIcon, FileUpIcon, FilterIcon, FilterXIcon, FlagIcon, FlaskConicalIcon, FoldHorizontalIcon, FolderIcon, FolderInputIcon, FolderOpenIcon, FolderPlusIcon, FolderSyncIcon, FolderTreeIcon, FunctionSquareIcon, GanttChartIcon, GaugeIcon, GitBranchIcon, GitCommitHorizontalIcon, GitPullRequestIcon, GlobeIcon, GraduationCapIcon, GripVerticalIcon, HashIcon, Heading1Icon, Heading2Icon, Heading3Icon, HelpCircleIcon, HighlighterIcon, HistoryIcon, ImageIcon, ImageOffIcon, InboxIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyRoundIcon, KeyboardIcon, LandmarkIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutTemplateIcon, LibraryBigIcon, LibraryIcon, Link2Icon, LinkIcon, ListChecksIcon, ListFilterIcon, ListIcon, ListMinusIcon, ListOrderedIcon, ListTodoIcon, ListTreeIcon, ListXIcon, LoaderCircleIcon, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, LucideIcon, MailIcon, Maximize2Icon, MegaphoneIcon, MessageCircleQuestionIcon, MessageSquareIcon, MessageSquarePlusIcon as NewChatIcon, MessageSquareQuoteIcon as AddCommentIcon, MessageSquareTextIcon, MessageSquareWarningIcon, MessagesSquareIcon, MicIcon as DictateIcon, Minimize2Icon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, PackageIcon, PaletteIcon, PanelLeftIcon, PanelRightIcon, PaperclipIcon, PauseIcon, PenIcon, PenLineIcon, PencilIcon, PencilLineIcon, PhoneIcon, PinIcon, PinOffIcon, PlayIcon, PlugIcon, PlusIcon, PowerIcon, PrinterIcon, QuoteIcon, Redo2Icon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, RotateCcwIcon, RotateCwIcon, RouteIcon, Rows2Icon, Rows3Icon, SaveIcon, ScanSearchIcon, ScanTextIcon, ScissorsIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, ShapesIcon, ShieldAlertIcon, ShieldCheckIcon, ShieldIcon, SigmaIcon, SignatureIcon, SlashIcon, SlidersHorizontalIcon, SparklesIcon, SplitIcon, SquareCheckIcon, SquareIcon, SquareMinusIcon, SquarePenIcon, StarIcon, StarOffIcon, StickyNoteIcon, StrikethroughIcon, SunIcon, TableIcon, TagIcon, TagsIcon, TerminalIcon, TextIcon, TextQuoteIcon, ToggleLeftIcon, Trash2Icon, TrashIcon, TriangleAlertIcon, UnderlineIcon, Undo2Icon, UndoIcon, UnfoldHorizontalIcon, UngroupIcon, UploadIcon, UserCheckIcon, UserIcon, UserPlusIcon, UserRoundIcon, UsersIcon, VideoIcon, WandSparklesIcon as AiActionIcon, WavesIcon, WindIcon, WorkflowIcon, WrapTextIcon, WrenchIcon, XCircleIcon, XIcon, XSquareIcon, ZapIcon } from "lucide-react";
|
|
29
|
+
export { ActivityIcon, AddCommentIcon, AiActionIcon, AlarmClockIcon, AlertCircleIcon, AlertTriangleIcon, AlignJustifyIcon, AlignLeftIcon, ArchiveIcon, ArchiveRestoreIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, AtSignIcon, BanIcon, BanknoteIcon, BellIcon, BlocksIcon, BoldIcon, BookOpenCheckIcon, BookTextIcon, BookmarkIcon, BookmarkPlusIcon, BracesIcon, BrainIcon, BrowserControlIcon, Building2Icon, BuildingIcon, CableIcon, CalendarClockIcon, CalendarIcon, CaseLawIcon, CheckCheckIcon, CheckCircle2Icon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleDashedIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CircleOffIcon, CircleUserRoundIcon, ClipboardCheckIcon, ClipboardCopyIcon, ClipboardIcon, ClipboardListIcon, Clock3Icon, ClockIcon, CloudIcon, CogIcon, Columns2Icon, Columns3Icon, CommandIcon, CompassIcon, CopyFromMenuIcon, CopyPlusIcon, CopyToClipboardIcon, CornerDownLeftIcon, CpuIcon, CropIcon, DatabaseIcon, DictateIcon, DollarSignIcon, DownloadIcon, DuplicateIcon, EditIcon, EditPagesIcon, EllipsisIcon, EllipsisVerticalIcon, EqualIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileBadgeIcon, FileCheckIcon, FileCodeIcon, FileDiffIcon, FileDigitIcon, FileDownIcon, FileIcon, FileImageIcon, FileOutputIcon, FilePlus2Icon, FilePlusIcon, FileQuestionIcon, FileSearchIcon, FileSpreadsheetIcon, FileTextIcon, FileUpIcon, FilterIcon, FilterXIcon, FlagIcon, FlaskConicalIcon, FoldHorizontalIcon, FolderIcon, FolderInputIcon, FolderOpenIcon, FolderPlusIcon, FolderSyncIcon, FolderTreeIcon, FunctionSquareIcon, GanttChartIcon, GaugeIcon, GitBranchIcon, GitCommitHorizontalIcon, GitPullRequestIcon, GlobeIcon, GraduationCapIcon, GripVerticalIcon, HashIcon, Heading1Icon, Heading2Icon, Heading3Icon, HelpCircleIcon, HighlighterIcon, HistoryIcon, ImageIcon, ImageOffIcon, InboxIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyRoundIcon, KeyboardIcon, LandmarkIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutTemplateIcon, LibraryBigIcon, LibraryIcon, Link2Icon, LinkIcon, ListChecksIcon, ListFilterIcon, ListIcon, ListMinusIcon, ListOrderedIcon, ListTodoIcon, ListTreeIcon, ListXIcon, LoaderCircleIcon, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, type LucideIcon, MailIcon, Maximize2Icon, MegaphoneIcon, MessageCircleQuestionIcon, MessageSquareIcon, MessageSquareTextIcon, MessageSquareWarningIcon, MessagesSquareIcon, Minimize2Icon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, NewChatIcon, PackageIcon, PaletteIcon, PanelLeftIcon, PanelRightIcon, PaperclipIcon, PauseIcon, PenIcon, PenLineIcon, PencilIcon, PencilLineIcon, PhoneIcon, PinIcon, PinOffIcon, PlayIcon, PlugIcon, PlusIcon, PowerIcon, PrinterIcon, QuoteIcon, Redo2Icon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, RotateCcwIcon, RotateCwIcon, RouteIcon, Rows2Icon, Rows3Icon, SaveIcon, ScanSearchIcon, ScanTextIcon, ScissorsIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, ShapesIcon, ShieldAlertIcon, ShieldCheckIcon, ShieldIcon, SigmaIcon, SignatureIcon, SkillIcon, SlashIcon, SlidersHorizontalIcon, SparklesIcon, SplitIcon, SquareCheckIcon, SquareIcon, SquareMinusIcon, SquarePenIcon, StarIcon, StarOffIcon, StickyNoteIcon, StrikethroughIcon, SunIcon, TableIcon, TagIcon, TagsIcon, TerminalIcon, TextIcon, TextQuoteIcon, ToggleLeftIcon, Trash2Icon, TrashIcon, TriangleAlertIcon, UnderlineIcon, Undo2Icon, UndoIcon, UnfoldHorizontalIcon, UngroupIcon, UploadIcon, UserCheckIcon, UserIcon, UserPlusIcon, UserRoundIcon, UsersIcon, VideoIcon, WavesIcon, WindIcon, WorkflowIcon, WrapTextIcon, WrenchIcon, XCircleIcon, XIcon, XSquareIcon, ZapIcon };
|
package/dist/icons.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ActivityIcon, MessageSquareQuoteIcon as AddCommentIcon, WandSparklesIcon as AiActionIcon, AlarmClockIcon, AlertCircleIcon, AlertTriangleIcon, AlignJustifyIcon, AlignLeftIcon, ArchiveIcon, ArchiveRestoreIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, AtSignIcon, BanIcon, BanknoteIcon, BellIcon, BlocksIcon, BoldIcon, BookOpenCheckIcon, BookTextIcon, BookmarkIcon, BookmarkPlusIcon, BracesIcon, BrainIcon, AppWindowMacIcon as BrowserControlIcon, Building2Icon, BuildingIcon, CableIcon, CalendarClockIcon, CalendarIcon, BookOpenIcon as CaseLawIcon, CheckCheckIcon, CheckCircle2Icon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleDashedIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CircleOffIcon, CircleUserRoundIcon, ClipboardCheckIcon, ClipboardCopyIcon, ClipboardIcon, ClipboardListIcon, Clock3Icon, ClockIcon, CogIcon, Columns2Icon, Columns3Icon,
|
|
1
|
+
export { ActivityIcon, MessageSquareQuoteIcon as AddCommentIcon, WandSparklesIcon as AiActionIcon, AlarmClockIcon, AlertCircleIcon, AlertTriangleIcon, AlignJustifyIcon, AlignLeftIcon, ArchiveIcon, ArchiveRestoreIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpDownIcon, ArrowUpIcon, AtSignIcon, BanIcon, BanknoteIcon, BellIcon, BlocksIcon, BoldIcon, BookOpenCheckIcon, BookTextIcon, BookmarkIcon, BookmarkPlusIcon, BracesIcon, BrainIcon, AppWindowMacIcon as BrowserControlIcon, Building2Icon, BuildingIcon, CableIcon, CalendarClockIcon, CalendarIcon, BookOpenIcon as CaseLawIcon, CheckCheckIcon, CheckCircle2Icon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleDashedIcon, CircleDotIcon, CircleHelpIcon, CircleIcon, CircleOffIcon, CircleUserRoundIcon, ClipboardCheckIcon, ClipboardCopyIcon, ClipboardIcon, ClipboardListIcon, Clock3Icon, ClockIcon, CloudIcon, CogIcon, Columns2Icon, Columns3Icon, CommandIcon, CompassIcon, CopyIcon as CopyFromMenuIcon, CopyPlusIcon, CopyIcon as CopyToClipboardIcon, CornerDownLeftIcon, CpuIcon, CropIcon, DatabaseIcon, MicIcon as DictateIcon, DollarSignIcon, DownloadIcon, CopyIcon as DuplicateIcon, EditIcon, FileStackIcon as EditPagesIcon, EllipsisIcon, EllipsisVerticalIcon, EqualIcon, ExternalLinkIcon, EyeIcon, EyeOffIcon, FileBadgeIcon, FileCheckIcon, FileCodeIcon, FileDiffIcon, FileDigitIcon, FileDownIcon, FileIcon, FileImageIcon, FileOutputIcon, FilePlus2Icon, FilePlusIcon, FileQuestionIcon, FileSearchIcon, FileSpreadsheetIcon, FileTextIcon, FileUpIcon, FilterIcon, FilterXIcon, FlagIcon, FlaskConicalIcon, FoldHorizontalIcon, FolderIcon, FolderInputIcon, FolderOpenIcon, FolderPlusIcon, FolderSyncIcon, FolderTreeIcon, FunctionSquareIcon, GanttChartIcon, GaugeIcon, GitBranchIcon, GitCommitHorizontalIcon, GitPullRequestIcon, GlobeIcon, GraduationCapIcon, GripVerticalIcon, HashIcon, Heading1Icon, Heading2Icon, Heading3Icon, HelpCircleIcon, HighlighterIcon, HistoryIcon, ImageIcon, ImageOffIcon, InboxIcon, InfoIcon, ItalicIcon, KanbanIcon, KeyRoundIcon, KeyboardIcon, LandmarkIcon, LanguagesIcon, LaptopIcon, LayersIcon, LayoutDashboardIcon, LayoutGridIcon, LayoutTemplateIcon, LibraryBigIcon, LibraryIcon, Link2Icon, LinkIcon, ListChecksIcon, ListFilterIcon, ListIcon, ListMinusIcon, ListOrderedIcon, ListTodoIcon, ListTreeIcon, ListXIcon, LoaderCircleIcon, LockIcon, LockKeyholeIcon, LockOpenIcon, LogOutIcon, MailIcon, Maximize2Icon, MegaphoneIcon, MessageCircleQuestionIcon, MessageSquareIcon, MessageSquareTextIcon, MessageSquareWarningIcon, MessagesSquareIcon, Minimize2Icon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MessageSquarePlusIcon as NewChatIcon, PackageIcon, PaletteIcon, PanelLeftIcon, PanelRightIcon, PaperclipIcon, PauseIcon, PenIcon, PenLineIcon, PencilIcon, PencilLineIcon, PhoneIcon, PinIcon, PinOffIcon, PlayIcon, PlugIcon, PlusIcon, PowerIcon, PrinterIcon, QuoteIcon, Redo2Icon, RefreshCcwIcon, RefreshCwIcon, RepeatIcon, RotateCcwIcon, RotateCwIcon, RouteIcon, Rows2Icon, Rows3Icon, SaveIcon, ScanSearchIcon, ScanTextIcon, ScissorsIcon, ScrollTextIcon, SearchIcon, SearchXIcon, SendIcon, ServerIcon, Settings2Icon, ShapesIcon, ShieldAlertIcon, ShieldCheckIcon, ShieldIcon, SigmaIcon, SignatureIcon, BookOpenIcon as SkillIcon, SlashIcon, SlidersHorizontalIcon, SparklesIcon, SplitIcon, SquareCheckIcon, SquareIcon, SquareMinusIcon, SquarePenIcon, StarIcon, StarOffIcon, StickyNoteIcon, StrikethroughIcon, SunIcon, TableIcon, TagIcon, TagsIcon, TerminalIcon, TextIcon, TextQuoteIcon, ToggleLeftIcon, Trash2Icon, TrashIcon, TriangleAlertIcon, UnderlineIcon, Undo2Icon, UndoIcon, UnfoldHorizontalIcon, UngroupIcon, UploadIcon, UserCheckIcon, UserIcon, UserPlusIcon, UserRoundIcon, UsersIcon, VideoIcon, WavesIcon, WindIcon, WorkflowIcon, WrapTextIcon, WrenchIcon, XCircleIcon, XIcon, XSquareIcon, ZapIcon } from "lucide-react";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Every module the package exports, re-exported under one specifier.
|
|
3
|
+
*
|
|
4
|
+
* A convenience only: the subpaths in package.json are the real surface, and
|
|
5
|
+
* each one is its own module in the build output. This file adds no side
|
|
6
|
+
* effects, so a bundler drops whatever a consumer does not reference.
|
|
7
|
+
*/
|
|
1
8
|
import "./data-table/index.js";
|
|
2
9
|
import "./inspector/index.js";
|
|
3
10
|
import "./kanban/index.js";
|
|
@@ -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";
|