@stll/ui 0.73.0 → 0.75.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/components/input.native.js +2 -7
- package/dist/components/list.d.ts +8 -1
- package/dist/components/list.js +9 -2
- package/dist/components/separator.native.js +2 -1
- package/dist/components/sheet.native.js +4 -3
- package/dist/components/table-chart.js +28 -18
- package/dist/components/tooltip.d.ts +6 -1
- package/dist/components/tooltip.js +2 -1
- package/dist/components/workspace-shell.d.ts +7 -1
- package/dist/components/workspace-shell.js +21 -3
- package/dist/icons.d.ts +2 -2
- package/dist/icons.js +2 -2
- package/dist/inspector/pane-width.d.ts +1 -1
- package/dist/inspector/pane-width.js +2 -2
- package/dist/inspector/use-pane-width.d.ts +7 -9
- package/dist/inspector/use-pane-width.js +42 -27
- package/package.json +11 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cn } from "../lib/utils.js";
|
|
1
2
|
import { textFontFamily } from "./text.native.js";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
import { TextInput } from "react-native";
|
|
@@ -25,13 +26,7 @@ const NativeField = ({ box, className, disabled = false, editable = true, onChan
|
|
|
25
26
|
placeholderTextColorClassName: "accent-muted-foreground",
|
|
26
27
|
selectionColorClassName: "accent-ring",
|
|
27
28
|
...props,
|
|
28
|
-
className: [
|
|
29
|
-
"text-foreground",
|
|
30
|
-
box,
|
|
31
|
-
TEXT_SIZE[size],
|
|
32
|
-
disabled ? "opacity-64" : "",
|
|
33
|
-
className ?? ""
|
|
34
|
-
].filter((name) => name !== "").join(" "),
|
|
29
|
+
className: cn("text-foreground", box, TEXT_SIZE[size], disabled && "opacity-64", className),
|
|
35
30
|
editable: editable && !disabled,
|
|
36
31
|
onChangeText: (text) => {
|
|
37
32
|
onChangeText?.(text);
|
|
@@ -26,7 +26,14 @@ declare const ListGroupCount: ({ className, count, ...props }: Omit<React.Compon
|
|
|
26
26
|
declare const ListGroupDescription: ({ className, ...props }: React.ComponentProps<"p">) => React.JSX.Element;
|
|
27
27
|
/** Quiet trailing affordance on the header row (a link or ghost button). */
|
|
28
28
|
declare const ListGroupAction: ({ className, ...props }: React.ComponentProps<"div">) => React.JSX.Element;
|
|
29
|
-
/**
|
|
29
|
+
/**
|
|
30
|
+
* The surface. Depth comes from a ring plus a soft shadow, not a frame.
|
|
31
|
+
*
|
|
32
|
+
* A row wrapped in `EntityActions` sits inside its `display: contents`
|
|
33
|
+
* listener, which draws no border, and its menu anchor follows it as a
|
|
34
|
+
* sibling, so `divide-y` cannot reach it: such a row draws its own hairline
|
|
35
|
+
* on top, from the second wrapped row on.
|
|
36
|
+
*/
|
|
30
37
|
declare const List: ({ className, ...props }: React.ComponentProps<"ul">) => React.JSX.Element;
|
|
31
38
|
/**
|
|
32
39
|
* One row. Pass `render` (a link or button element) to make the whole row the
|
package/dist/components/list.js
CHANGED
|
@@ -59,9 +59,16 @@ const ListGroupAction = ({ className, ...props }) => /* @__PURE__ */ jsx("div",
|
|
|
59
59
|
"data-slot": "list-group-action",
|
|
60
60
|
...props
|
|
61
61
|
});
|
|
62
|
-
/**
|
|
62
|
+
/**
|
|
63
|
+
* The surface. Depth comes from a ring plus a soft shadow, not a frame.
|
|
64
|
+
*
|
|
65
|
+
* A row wrapped in `EntityActions` sits inside its `display: contents`
|
|
66
|
+
* listener, which draws no border, and its menu anchor follows it as a
|
|
67
|
+
* sibling, so `divide-y` cannot reach it: such a row draws its own hairline
|
|
68
|
+
* on top, from the second wrapped row on.
|
|
69
|
+
*/
|
|
63
70
|
const List = ({ className, ...props }) => /* @__PURE__ */ jsx("ul", {
|
|
64
|
-
className: cn("bg-background ring-border divide-border flex flex-col divide-y overflow-hidden rounded-xl shadow-xs/5 ring-1", className),
|
|
71
|
+
className: cn("bg-background ring-border divide-border flex flex-col divide-y overflow-hidden rounded-xl shadow-xs/5 ring-1", "[&>[data-slot=entity-actions]~[data-slot=entity-actions]>*]:border-border [&>[data-slot=entity-actions]~[data-slot=entity-actions]>*]:border-t", className),
|
|
65
72
|
"data-slot": "list",
|
|
66
73
|
...props
|
|
67
74
|
});
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cn } from "../lib/utils.js";
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import { View } from "react-native";
|
|
3
4
|
// src/components/separator.native.tsx
|
|
@@ -9,7 +10,7 @@ import { View } from "react-native";
|
|
|
9
10
|
const Separator = ({ className, orientation = "horizontal", ...props }) => /* @__PURE__ */ jsx(View, {
|
|
10
11
|
...props,
|
|
11
12
|
accessibilityElementsHidden: true,
|
|
12
|
-
className:
|
|
13
|
+
className: cn("bg-border", orientation === "vertical" ? "w-px self-stretch" : "h-px w-full", className),
|
|
13
14
|
importantForAccessibility: "no-hide-descendants"
|
|
14
15
|
});
|
|
15
16
|
export { Separator };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { cn } from "../lib/utils.js";
|
|
1
2
|
import { Button } from "./button.native.js";
|
|
2
3
|
import { Text as Text$1 } from "./text.native.js";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -29,12 +30,12 @@ const Sheet = ({ children, onOpenChange, open = false }) => {
|
|
|
29
30
|
/** The sheet's surface: the background, inset, and room for the keyboard. */
|
|
30
31
|
const SheetPopup = ({ className, ...props }) => /* @__PURE__ */ jsx(KeyboardAvoidingView, {
|
|
31
32
|
behavior: Platform.OS === "ios" ? "padding" : void 0,
|
|
32
|
-
className:
|
|
33
|
+
className: cn("bg-background flex-1 gap-4 px-5 pt-5", className),
|
|
33
34
|
...props
|
|
34
35
|
});
|
|
35
36
|
/** The title row: the title leading, a close or done action trailing. */
|
|
36
37
|
const SheetHeader = ({ className, ...props }) => /* @__PURE__ */ jsx(View, {
|
|
37
|
-
className:
|
|
38
|
+
className: cn("flex-row items-center justify-between gap-4", className),
|
|
38
39
|
...props
|
|
39
40
|
});
|
|
40
41
|
const SheetTitle = (props) => /* @__PURE__ */ jsx(Text$1, {
|
|
@@ -48,7 +49,7 @@ const SheetDescription = (props) => /* @__PURE__ */ jsx(Text$1, {
|
|
|
48
49
|
});
|
|
49
50
|
/** The sheet's body, scrolling when it outgrows the sheet. */
|
|
50
51
|
const SheetPanel = ({ contentContainerClassName, ...props }) => /* @__PURE__ */ jsx(ScrollView, {
|
|
51
|
-
contentContainerClassName:
|
|
52
|
+
contentContainerClassName: cn("gap-4", contentContainerClassName),
|
|
52
53
|
keyboardShouldPersistTaps: "handled",
|
|
53
54
|
...props
|
|
54
55
|
});
|
|
@@ -58,8 +58,11 @@ const CartesianPlot = ({ kind, points, formatNumber, xMode = "numeric" }) => {
|
|
|
58
58
|
const keyedPoints = identifyPoints(points);
|
|
59
59
|
const groups = Map.groupBy(keyedPoints, ({ point }) => point.series ?? "");
|
|
60
60
|
const seriesNames = [...groups.keys()];
|
|
61
|
-
const
|
|
62
|
-
const
|
|
61
|
+
const barGroups = [...Map.groupBy(keyedPoints, ({ point }) => point.x)];
|
|
62
|
+
const barSlot = PLOT.width / barGroups.length;
|
|
63
|
+
const barsPerGroup = Math.max(...barGroups.map(([, group]) => group.length));
|
|
64
|
+
const barWidth = barSlot * .7 / barsPerGroup;
|
|
65
|
+
const barLabelStep = Math.max(1, Math.ceil(barGroups.length / 8));
|
|
63
66
|
const categories = [...new Map(points.map((point) => [point.x, point])).values()];
|
|
64
67
|
const categoryStep = Math.max(1, Math.ceil(categories.length / 8));
|
|
65
68
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
@@ -96,22 +99,29 @@ const CartesianPlot = ({ kind, points, formatNumber, xMode = "numeric" }) => {
|
|
|
96
99
|
y1: y(0),
|
|
97
100
|
y2: y(0),
|
|
98
101
|
stroke: "var(--muted-foreground)"
|
|
99
|
-
}),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
102
|
+
}), barGroups.map(([position, group], groupIndex) => {
|
|
103
|
+
const first = group[0]?.point;
|
|
104
|
+
return /* @__PURE__ */ jsxs("g", {
|
|
105
|
+
"data-slot": "chart-bar-group",
|
|
106
|
+
children: [group.map(({ point, key }, barIndex) => /* @__PURE__ */ jsx("rect", {
|
|
107
|
+
"data-slot": "chart-bar",
|
|
108
|
+
x: PLOT.x + groupIndex * barSlot + barSlot * .15 + barIndex * barWidth,
|
|
109
|
+
y: Math.min(y(point.y), y(0)),
|
|
110
|
+
width: barWidth,
|
|
111
|
+
height: Math.abs(y(point.y) - y(0)),
|
|
112
|
+
fill: color(seriesNames.indexOf(point.series ?? "")),
|
|
113
|
+
children: /* @__PURE__ */ jsx("title", { children: `${point.label}: ${formatNumber(point.y)}${point.series ? ` (${point.series})` : ""}` })
|
|
114
|
+
}, key)), first !== void 0 && groupIndex % barLabelStep === 0 && /* @__PURE__ */ jsx("text", {
|
|
115
|
+
"data-slot": "chart-x-tick",
|
|
116
|
+
x: PLOT.x + (groupIndex + .5) * barSlot,
|
|
117
|
+
y: PLOT.y + PLOT.height + 20,
|
|
118
|
+
textAnchor: "middle",
|
|
119
|
+
fill: "var(--muted-foreground)",
|
|
120
|
+
style: { unicodeBidi: "plaintext" },
|
|
121
|
+
children: first.label.length > 16 ? `${first.label.slice(0, 15)}…` : first.label
|
|
122
|
+
})]
|
|
123
|
+
}, position);
|
|
124
|
+
})] }) : /* @__PURE__ */ jsxs(Fragment, { children: [xMode === "category" ? categories.filter((_, index) => index % categoryStep === 0).map((point) => /* @__PURE__ */ jsx("text", {
|
|
115
125
|
"data-slot": "chart-x-tick",
|
|
116
126
|
x: x(point.x),
|
|
117
127
|
y: PLOT.y + PLOT.height + 20,
|
|
@@ -27,12 +27,17 @@ declare const TooltipTrigger: (props: Tooltip$1.Trigger.Props) => import("react"
|
|
|
27
27
|
declare const TooltipFactTrigger: ({ children }: {
|
|
28
28
|
children: ReactNode;
|
|
29
29
|
}) => import("react").JSX.Element;
|
|
30
|
-
declare const TooltipPopup: ({ className, align, sideOffset, side, children, shortcut, ...props }: Tooltip$1.Popup.Props & {
|
|
30
|
+
declare const TooltipPopup: ({ anchor, className, align, sideOffset, side, children, shortcut, ...props }: Tooltip$1.Popup.Props & {
|
|
31
31
|
/**
|
|
32
32
|
* The keys that do the same as the trigger, shown after the label and
|
|
33
33
|
* spelled for the reader's platform (`["mod", "K"]`).
|
|
34
34
|
*/
|
|
35
35
|
shortcut?: KbdKeys | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* The element the popup sits beside, when that is a part of the trigger
|
|
38
|
+
* rather than all of it (a wide row whose tooltip explains one detail).
|
|
39
|
+
*/
|
|
40
|
+
anchor?: Tooltip$1.Positioner.Props["anchor"] | undefined;
|
|
36
41
|
align?: Tooltip$1.Positioner.Props["align"];
|
|
37
42
|
side?: Tooltip$1.Positioner.Props["side"];
|
|
38
43
|
sideOffset?: Tooltip$1.Positioner.Props["sideOffset"];
|
|
@@ -41,7 +41,8 @@ const TooltipFactTrigger = ({ children }) => /* @__PURE__ */ jsx(Tooltip$1.Trigg
|
|
|
41
41
|
type: "button",
|
|
42
42
|
children
|
|
43
43
|
});
|
|
44
|
-
const TooltipPopup = ({ className, align = "center", sideOffset = 4, side = "top", children, shortcut, ...props }) => /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, {
|
|
44
|
+
const TooltipPopup = ({ anchor, className, align = "center", sideOffset = 4, side = "top", children, shortcut, ...props }) => /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, {
|
|
45
|
+
...anchor === void 0 ? {} : { anchor },
|
|
45
46
|
align,
|
|
46
47
|
className: cn(CONTENT_SIZED_POSITIONER_CLASS_NAME, "transition-[top,left,right,bottom,transform] data-instant:transition-none", OVERLAY_LAYER_CLASS_NAMES.popup),
|
|
47
48
|
collisionPadding: 8,
|
|
@@ -36,6 +36,12 @@ type WorkspaceShellProps = {
|
|
|
36
36
|
* content column extends to the frame's inline-end edge.
|
|
37
37
|
*/
|
|
38
38
|
endDock?: ReactElement | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Name of the "skip to content" link, the frame's first tab stop. It moves
|
|
41
|
+
* keyboard focus past the navigation into the main region. Omit it and the
|
|
42
|
+
* frame renders no skip link.
|
|
43
|
+
*/
|
|
44
|
+
skipToContentLabel?: string | undefined;
|
|
39
45
|
/** Active route content. */
|
|
40
46
|
children: ReactNode;
|
|
41
47
|
};
|
|
@@ -47,7 +53,7 @@ type WorkspaceShellProps = {
|
|
|
47
53
|
* The end dock is optional: a host with nothing to put on the inline-end edge
|
|
48
54
|
* omits it rather than reserving width for an empty rail.
|
|
49
55
|
*/
|
|
50
|
-
export declare const WorkspaceShell: ({ children, endDock, navigation, topBar }: WorkspaceShellProps) => import("react").JSX.Element;
|
|
56
|
+
export declare const WorkspaceShell: ({ children, endDock, navigation, skipToContentLabel, topBar }: WorkspaceShellProps) => import("react").JSX.Element;
|
|
51
57
|
type WorkspaceEndRailChatAction = {
|
|
52
58
|
label: string;
|
|
53
59
|
onActivate: () => void;
|
|
@@ -7,7 +7,7 @@ import { SAFE_AREA_BOTTOM_EDGE_CLASS_NAME, SAFE_AREA_TOP_EDGE_CLASS_NAME } from
|
|
|
7
7
|
import { cn } from "../lib/utils.js";
|
|
8
8
|
import { Sheet, SheetContent as SheetPopup, SheetTitle, SheetTrigger } from "./sheet.js";
|
|
9
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
-
import { useEffect } from "react";
|
|
10
|
+
import { useEffect, useId, useRef } from "react";
|
|
11
11
|
// src/components/workspace-shell.tsx
|
|
12
12
|
/**
|
|
13
13
|
* Stella's complete authenticated workspace frame. It owns the dynamic
|
|
@@ -17,8 +17,10 @@ import { useEffect } from "react";
|
|
|
17
17
|
* The end dock is optional: a host with nothing to put on the inline-end edge
|
|
18
18
|
* omits it rather than reserving width for an empty rail.
|
|
19
19
|
*/
|
|
20
|
-
const WorkspaceShell = ({ children, endDock, navigation, topBar }) => {
|
|
20
|
+
const WorkspaceShell = ({ children, endDock, navigation, skipToContentLabel, topBar }) => {
|
|
21
21
|
const isCompact = useIsMobile();
|
|
22
|
+
const mainId = useId();
|
|
23
|
+
const mainRef = useRef(null);
|
|
22
24
|
const compactNavigation = navigation.mode === "shell-managed" ? navigation.compact : null;
|
|
23
25
|
const compactNavigationOpen = compactNavigation?.open ?? false;
|
|
24
26
|
const onCompactNavigationOpenChange = compactNavigation?.onOpenChange;
|
|
@@ -40,10 +42,26 @@ const WorkspaceShell = ({ children, endDock, navigation, topBar }) => {
|
|
|
40
42
|
className: cn("flex h-dvh min-h-0 w-full overflow-hidden", SAFE_AREA_TOP_EDGE_CLASS_NAME, SAFE_AREA_BOTTOM_EDGE_CLASS_NAME),
|
|
41
43
|
"data-slot": "workspace-shell",
|
|
42
44
|
children: [
|
|
45
|
+
skipToContentLabel === void 0 ? null : /* @__PURE__ */ jsx("div", {
|
|
46
|
+
className: "fixed start-2 top-2 z-50",
|
|
47
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
48
|
+
className: "bg-background text-foreground ring-ring sr-only focus:not-sr-only focus:block focus:rounded-md focus:px-3 focus:py-2 focus:text-sm focus:font-medium focus:shadow-md focus:ring-2",
|
|
49
|
+
"data-slot": "workspace-shell-skip-link",
|
|
50
|
+
href: `#${mainId}`,
|
|
51
|
+
onClick: (event) => {
|
|
52
|
+
event.preventDefault();
|
|
53
|
+
mainRef.current?.focus();
|
|
54
|
+
},
|
|
55
|
+
children: skipToContentLabel
|
|
56
|
+
})
|
|
57
|
+
}),
|
|
43
58
|
navigation.mode === "responsive" ? navigation.content : navigation.desktop,
|
|
44
59
|
/* @__PURE__ */ jsxs("main", {
|
|
45
|
-
className: cn("bg-background relative flex w-full min-w-0 flex-1 flex-col overflow-hidden", "max-md:ps-(--safe-area-inline-start) max-md:pe-(--safe-area-inline-end)", endDock === void 0 && "md:pe-(--safe-area-inline-end)", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2"),
|
|
60
|
+
className: cn("bg-background relative flex w-full min-w-0 flex-1 flex-col overflow-hidden outline-none", "max-md:ps-(--safe-area-inline-start) max-md:pe-(--safe-area-inline-end)", endDock === void 0 && "md:pe-(--safe-area-inline-end)", "md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2"),
|
|
46
61
|
"data-slot": "workspace-shell-main",
|
|
62
|
+
id: mainId,
|
|
63
|
+
ref: mainRef,
|
|
64
|
+
tabIndex: -1,
|
|
47
65
|
children: [/* @__PURE__ */ jsx("div", {
|
|
48
66
|
className: cn("bg-background sticky top-0 shrink-0", SHELL_CHROME_LAYER_CLASS_NAME),
|
|
49
67
|
"data-slot": "workspace-shell-top-bar",
|
package/dist/icons.d.ts
CHANGED
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
* Only ESM named re-exports live here, and the package marks nothing but its
|
|
26
26
|
* CSS as having side effects, so a bundler keeps just the glyphs a page uses.
|
|
27
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, LucideIcon as LucideIcon$1, 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";
|
|
28
|
+
import { AccessibilityIcon, 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, LucideIcon as LucideIcon$1, 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
29
|
export declare const MoveToSideIcon: LucideIcon$1;
|
|
30
|
-
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 };
|
|
30
|
+
export { AccessibilityIcon, 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,4 +1,4 @@
|
|
|
1
|
-
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, 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, createLucideIcon } from "lucide-react";
|
|
1
|
+
import { AccessibilityIcon, 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, 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, createLucideIcon } from "lucide-react";
|
|
2
2
|
// src/icons.ts
|
|
3
3
|
/**
|
|
4
4
|
* Every icon Stella draws, from one module (`@stll/ui/icons`).
|
|
@@ -52,4 +52,4 @@ const MoveToSideIcon = /* @__PURE__ */ createLucideIcon("move-to-side", [
|
|
|
52
52
|
key: "move-to-side-chevron"
|
|
53
53
|
}]
|
|
54
54
|
]);
|
|
55
|
-
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, MailIcon, Maximize2Icon, MegaphoneIcon, MessageCircleQuestionIcon, MessageSquareIcon, MessageSquareTextIcon, MessageSquareWarningIcon, MessagesSquareIcon, Minimize2Icon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoveToSideIcon, 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 };
|
|
55
|
+
export { AccessibilityIcon, 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, MailIcon, Maximize2Icon, MegaphoneIcon, MessageCircleQuestionIcon, MessageSquareIcon, MessageSquareTextIcon, MessageSquareWarningIcon, MessagesSquareIcon, Minimize2Icon, MinusIcon, MonitorIcon, MoonIcon, MoreHorizontalIcon, MoveToSideIcon, 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 };
|
|
@@ -67,7 +67,7 @@ export declare const resolveInspectorPaneMaxWidth: ({ sidebarWidth, viewportWidt
|
|
|
67
67
|
* A width inside the pane's own bounds, independent of any viewport.
|
|
68
68
|
*
|
|
69
69
|
* Every width the pane keeps goes through this, because the kept width is
|
|
70
|
-
* also the persisted one and the persistence
|
|
70
|
+
* also the persisted one and the host persistence boundary rejects —
|
|
71
71
|
* and so resets — anything outside these bounds. A raw cursor position is
|
|
72
72
|
* routinely outside them, so a drag past the edge has to be remembered as
|
|
73
73
|
* the bound it stopped at rather than as the pixel the pointer reached.
|
|
@@ -58,12 +58,12 @@ const resolveInspectorPaneMaxWidth = ({ sidebarWidth, viewportWidth }) => {
|
|
|
58
58
|
* A width inside the pane's own bounds, independent of any viewport.
|
|
59
59
|
*
|
|
60
60
|
* Every width the pane keeps goes through this, because the kept width is
|
|
61
|
-
* also the persisted one and the persistence
|
|
61
|
+
* also the persisted one and the host persistence boundary rejects —
|
|
62
62
|
* and so resets — anything outside these bounds. A raw cursor position is
|
|
63
63
|
* routinely outside them, so a drag past the edge has to be remembered as
|
|
64
64
|
* the bound it stopped at rather than as the pixel the pointer reached.
|
|
65
65
|
*/
|
|
66
|
-
const clampInspectorPaneWidth = (width) => Math.min(Math.max(width, 320), INSPECTOR_PANE_MAX_WIDTH);
|
|
66
|
+
const clampInspectorPaneWidth = (width) => Number.isFinite(width) ? Math.min(Math.max(width, 320), INSPECTOR_PANE_MAX_WIDTH) : 512;
|
|
67
67
|
/** Width the pane renders at, given the width the user asked for. */
|
|
68
68
|
const resolveInspectorPaneWidth = ({ desiredWidth, sidebarWidth, viewportWidth }) => Math.min(clampInspectorPaneWidth(desiredWidth), resolveInspectorPaneMaxWidth({
|
|
69
69
|
sidebarWidth,
|
|
@@ -8,8 +8,8 @@ import { KeyboardEvent, PointerEvent } from "react";
|
|
|
8
8
|
*
|
|
9
9
|
* A pointer can be dragged well past either bound — off the window edge, or
|
|
10
10
|
* across the whole viewport — so the raw distance is clamped here, before
|
|
11
|
-
* anything keeps it.
|
|
12
|
-
*
|
|
11
|
+
* anything keeps it. The host persists the bounded distance rather than a
|
|
12
|
+
* raw drag coordinate.
|
|
13
13
|
*/
|
|
14
14
|
export declare const resolveDragWidth: ({ clientX, isRtl, viewportWidth }: {
|
|
15
15
|
clientX: number;
|
|
@@ -33,15 +33,13 @@ export declare const resolveKeyboardWidth: ({ currentWidth, isRtl, key }: {
|
|
|
33
33
|
isRtl: boolean;
|
|
34
34
|
key: string;
|
|
35
35
|
}) => number | null;
|
|
36
|
-
export type InspectorPaneWidthPersistence = {
|
|
37
|
-
read: () => number;
|
|
38
|
-
write: (width: number) => void;
|
|
39
|
-
};
|
|
40
36
|
type UseInspectorPaneWidthOptions = {
|
|
41
37
|
/** Inline size the sidebar takes out of the same layout row. */
|
|
42
38
|
sidebarWidth: number;
|
|
43
|
-
/**
|
|
44
|
-
|
|
39
|
+
/** Desired width supplied by the host; updates apply between pointer drags. */
|
|
40
|
+
initialWidth?: number;
|
|
41
|
+
/** Persist the desired width on completed user resizes. */
|
|
42
|
+
onWidthChange?: (width: number) => void;
|
|
45
43
|
/** Viewport width in CSS pixels; 0 before the viewport is known. */
|
|
46
44
|
viewportWidth: number;
|
|
47
45
|
};
|
|
@@ -81,5 +79,5 @@ type UseInspectorPaneWidthResult = {
|
|
|
81
79
|
* the content column. The *desired* width keeps the user's choice, so the
|
|
82
80
|
* pane returns to it once the room comes back.
|
|
83
81
|
*/
|
|
84
|
-
export declare const useInspectorPaneWidth: ({ sidebarWidth,
|
|
82
|
+
export declare const useInspectorPaneWidth: ({ sidebarWidth, viewportWidth, initialWidth, onWidthChange }: UseInspectorPaneWidthOptions) => UseInspectorPaneWidthResult;
|
|
85
83
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { INSPECTOR_PANE_MAX_WIDTH, clampInspectorPaneWidth, resolveInspectorPaneMaxWidth, resolveInspectorPaneWidth } from "./pane-width.js";
|
|
2
|
-
import {
|
|
2
|
+
import { useRef, useState } from "react";
|
|
3
3
|
// src/inspector/use-pane-width.ts
|
|
4
4
|
/**
|
|
5
5
|
* Width the drag produces for a pane docked to the inline-end edge.
|
|
@@ -10,8 +10,8 @@ import { useEffect, useRef, useState } from "react";
|
|
|
10
10
|
*
|
|
11
11
|
* A pointer can be dragged well past either bound — off the window edge, or
|
|
12
12
|
* across the whole viewport — so the raw distance is clamped here, before
|
|
13
|
-
* anything keeps it.
|
|
14
|
-
*
|
|
13
|
+
* anything keeps it. The host persists the bounded distance rather than a
|
|
14
|
+
* raw drag coordinate.
|
|
15
15
|
*/
|
|
16
16
|
const resolveDragWidth = ({ clientX, isRtl, viewportWidth }) => clampInspectorPaneWidth(isRtl ? clientX : viewportWidth - clientX);
|
|
17
17
|
/** Pixels one arrow press moves the edge; Page/Home/End move further. */
|
|
@@ -49,36 +49,46 @@ const resolveKeyboardWidth = ({ currentWidth, isRtl, key }) => {
|
|
|
49
49
|
* the content column. The *desired* width keeps the user's choice, so the
|
|
50
50
|
* pane returns to it once the room comes back.
|
|
51
51
|
*/
|
|
52
|
-
const useInspectorPaneWidth = ({ sidebarWidth,
|
|
53
|
-
const
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
52
|
+
const useInspectorPaneWidth = ({ sidebarWidth, viewportWidth, initialWidth, onWidthChange }) => {
|
|
53
|
+
const normalizedInitialWidth = initialWidth === void 0 ? void 0 : clampInspectorPaneWidth(initialWidth);
|
|
54
|
+
const [localChoice, setLocalChoice] = useState(null);
|
|
55
|
+
const [dragStatus, setDragStatus] = useState("idle");
|
|
56
|
+
const desiredWidth = localChoice !== null && (localChoice.hostWidth === normalizedInitialWidth || dragStatus === "dragging") ? localChoice.width : normalizedInitialWidth ?? 512;
|
|
57
|
+
const setDesiredWidth = (width) => {
|
|
58
|
+
setLocalChoice({
|
|
59
|
+
hostWidth: normalizedInitialWidth,
|
|
60
|
+
width
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
const setDraggedWidth = (width) => {
|
|
64
|
+
setLocalChoice((previous) => ({
|
|
65
|
+
hostWidth: previous === null ? normalizedInitialWidth : previous.hostWidth,
|
|
66
|
+
width
|
|
67
|
+
}));
|
|
68
|
+
};
|
|
69
|
+
const drag = useRef({ status: "idle" });
|
|
70
70
|
const handlePointerDown = (event) => {
|
|
71
71
|
event.preventDefault();
|
|
72
|
-
|
|
72
|
+
drag.current = {
|
|
73
|
+
status: "dragging",
|
|
74
|
+
width: desiredWidth
|
|
75
|
+
};
|
|
76
|
+
setDesiredWidth(desiredWidth);
|
|
77
|
+
setDragStatus("dragging");
|
|
73
78
|
event.currentTarget.setPointerCapture(event.pointerId);
|
|
74
79
|
};
|
|
75
80
|
const handlePointerMove = (event) => {
|
|
76
|
-
if (
|
|
77
|
-
|
|
81
|
+
if (drag.current.status === "idle") return;
|
|
82
|
+
const width = resolveDragWidth({
|
|
78
83
|
clientX: event.clientX,
|
|
79
84
|
isRtl: document.documentElement.dir === "rtl",
|
|
80
85
|
viewportWidth: window.innerWidth
|
|
81
|
-
})
|
|
86
|
+
});
|
|
87
|
+
drag.current = {
|
|
88
|
+
status: "dragging",
|
|
89
|
+
width
|
|
90
|
+
};
|
|
91
|
+
setDraggedWidth(width);
|
|
82
92
|
};
|
|
83
93
|
/**
|
|
84
94
|
* Ends the drag however the pointer stream ended. `pointerup` is only one of
|
|
@@ -87,7 +97,9 @@ const useInspectorPaneWidth = ({ sidebarWidth, persistence, viewportWidth }) =>
|
|
|
87
97
|
* would resize the pane on the next pointer movement with no button held.
|
|
88
98
|
*/
|
|
89
99
|
const endDrag = (event) => {
|
|
90
|
-
|
|
100
|
+
if (drag.current.status === "dragging") onWidthChange?.(drag.current.width);
|
|
101
|
+
drag.current = { status: "idle" };
|
|
102
|
+
setDragStatus("idle");
|
|
91
103
|
if (event.currentTarget.hasPointerCapture(event.pointerId)) event.currentTarget.releasePointerCapture(event.pointerId);
|
|
92
104
|
};
|
|
93
105
|
const maxWidth = resolveInspectorPaneMaxWidth({
|
|
@@ -102,10 +114,13 @@ const useInspectorPaneWidth = ({ sidebarWidth, persistence, viewportWidth }) =>
|
|
|
102
114
|
});
|
|
103
115
|
if (next === null) return;
|
|
104
116
|
event.preventDefault();
|
|
105
|
-
|
|
117
|
+
const width = Math.min(clampInspectorPaneWidth(next), maxWidth);
|
|
118
|
+
setDesiredWidth(width);
|
|
119
|
+
onWidthChange?.(width);
|
|
106
120
|
};
|
|
107
121
|
const resetWidth = () => {
|
|
108
122
|
setDesiredWidth(512);
|
|
123
|
+
onWidthChange?.(512);
|
|
109
124
|
};
|
|
110
125
|
const width = resolveInspectorPaneWidth({
|
|
111
126
|
desiredWidth,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stll/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.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",
|
|
@@ -622,6 +622,10 @@
|
|
|
622
622
|
"types": "./dist/inspector/index.d.ts",
|
|
623
623
|
"import": "./dist/inspector/index.js"
|
|
624
624
|
},
|
|
625
|
+
"./pane-width": {
|
|
626
|
+
"types": "./dist/inspector/pane-width.d.ts",
|
|
627
|
+
"import": "./dist/inspector/pane-width.js"
|
|
628
|
+
},
|
|
625
629
|
"./layout-tokens": {
|
|
626
630
|
"types": "./dist/inspector/layout-tokens.d.ts",
|
|
627
631
|
"import": "./dist/inspector/layout-tokens.js"
|
|
@@ -840,6 +844,10 @@
|
|
|
840
844
|
"import": "./dist/components/skeleton.js"
|
|
841
845
|
},
|
|
842
846
|
"./components/stella-mark": {
|
|
847
|
+
"react-native": {
|
|
848
|
+
"types": "./dist/components/stella-mark.native.d.ts",
|
|
849
|
+
"import": "./dist/components/stella-mark.native.js"
|
|
850
|
+
},
|
|
843
851
|
"types": "./dist/components/stella-mark.d.ts",
|
|
844
852
|
"import": "./dist/components/stella-mark.js"
|
|
845
853
|
},
|
|
@@ -938,7 +946,7 @@
|
|
|
938
946
|
"class-variance-authority": "^0.7.1",
|
|
939
947
|
"clsx": "^2.1.1",
|
|
940
948
|
"input-otp": "^1.5.0",
|
|
941
|
-
"lucide-react": "1.
|
|
949
|
+
"lucide-react": "1.71.0",
|
|
942
950
|
"tailwind-merge": "^3.7.0",
|
|
943
951
|
"temporal-polyfill": "1.0.8"
|
|
944
952
|
},
|
|
@@ -966,7 +974,7 @@
|
|
|
966
974
|
"tailwindcss": "4.3.5",
|
|
967
975
|
"tsdown": "0.23.7",
|
|
968
976
|
"tsrs": "0.23.0-ts7.1.0-beta",
|
|
969
|
-
"vite": "8.3.
|
|
977
|
+
"vite": "8.3.7"
|
|
970
978
|
},
|
|
971
979
|
"peerDependencies": {
|
|
972
980
|
"@atlaskit/pragmatic-drag-and-drop": "^4.0.0",
|