@indxsearch/systm 2.22.0 → 2.24.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/components/Chat/ChatPanel.d.ts +10 -6
  3. package/dist/components/Chat/Reasoning.d.ts +15 -0
  4. package/dist/components/Chat/ToolStep.d.ts +35 -0
  5. package/dist/components/Chat/index.d.ts +2 -0
  6. package/dist/components/Combobox/Combobox.d.ts +23 -0
  7. package/dist/components/Combobox/index.d.ts +1 -0
  8. package/dist/components/CommandPalette/CommandPalette.d.ts +30 -0
  9. package/dist/components/CommandPalette/index.d.ts +1 -0
  10. package/dist/components/EmptyState/EmptyState.d.ts +22 -0
  11. package/dist/components/EmptyState/index.d.ts +1 -0
  12. package/dist/components/Icicle/Icicle.d.ts +22 -0
  13. package/dist/components/Icicle/index.d.ts +1 -0
  14. package/dist/components/Kbd/Kbd.d.ts +8 -0
  15. package/dist/components/Kbd/index.d.ts +1 -0
  16. package/dist/components/Popover/Popover.d.ts +4 -0
  17. package/dist/components/Popover/index.d.ts +1 -2
  18. package/dist/components/PortalContainer/PortalContainer.d.ts +9 -0
  19. package/dist/components/Resizable/Resizable.d.ts +24 -0
  20. package/dist/components/Resizable/index.d.ts +1 -0
  21. package/dist/components/ScoreMeter/ScoreMeter.d.ts +23 -0
  22. package/dist/components/ScoreMeter/index.d.ts +1 -0
  23. package/dist/components/Sheet/Sheet.d.ts +21 -0
  24. package/dist/components/Sheet/index.d.ts +1 -0
  25. package/dist/components/ShimmerText/ShimmerText.d.ts +11 -0
  26. package/dist/components/ShimmerText/index.d.ts +1 -0
  27. package/dist/components/Sidebar/Sidebar.d.ts +63 -0
  28. package/dist/components/Sidebar/index.d.ts +1 -0
  29. package/dist/components/TagsInput/TagsInput.d.ts +14 -0
  30. package/dist/components/TagsInput/index.d.ts +1 -0
  31. package/dist/components/Toast/Toast.d.ts +20 -0
  32. package/dist/components/Toast/index.d.ts +1 -0
  33. package/dist/components/TreeCanvas/TreeCanvas.d.ts +15 -2
  34. package/dist/components/TreeCanvas/viewport.d.ts +11 -0
  35. package/dist/components/Waffle/Waffle.d.ts +2 -0
  36. package/dist/index.cjs.js +1 -1
  37. package/dist/index.d.ts +16 -3
  38. package/dist/index.es.js +3429 -1948
  39. package/dist/systm.css +1 -1
  40. package/dist/systm.shadow.css +2 -0
  41. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,36 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.24.0
4
+
5
+ ### Minor Changes
6
+
7
+ - TreeCanvas: a full-screen control beside zoom and fit. It fills the screen with the nearest element marked `data-tree-fullscreen`, so a panel beside the board goes along, or with the board; Esc leaves, and the view is fitted again. `fullscreen={false}` leaves it out.
8
+ - Icicle: a tree as nested blocks read top to bottom, each as wide as its share of the root and toned by how much of it goes on to its children; the space under a block is what stopped there. For browsing paths, and any tree whose values add up.
9
+ - ScoreMeter: a score from 0 to 1 as a row of small cells lit up to it, with a thin tick at each threshold and its name on hover; the cells strengthen as the score passes the ticks, the full ink past every one. Compact, for a line of text.
10
+ - ShimmerText: text a highlight sweeps across, for a line that says something is about to happen, such as "Thinking" or "For a quick answer, type a bit more". `active={false}` holds it still, and it is still for anyone who has asked for reduced motion.
11
+
12
+ ## 2.23.0
13
+
14
+ ### Minor Changes
15
+
16
+ - Chart: the hover box sits beside the hovered bar or point, to its right where it fits and else to its left, at the pointer's height, rather than above or below it over what it describes.
17
+ - RadarChart: its box is only a line's height taller than the shape above and below, where it kept the side labels' room on every side.
18
+ - Sidebar items take `badgeTitle` and a `trailing` icon with its `trailingTitle` (the lab mark of an experimental section), and the viewer's rail is kept in a cookie of the storage key's name too, so a server-rendered page can draw it from the first frame.
19
+ - Button: `aria-disabled="true"` reads as off, as `disabled` does, so an item that is there but not yet usable looks it.
20
+ - ab22891: Sheet, a panel the height of the window over the page from its right or left edge, with a header, a body that scrolls and an optional footer; the focus stays inside and goes back to what opened it. Resizable, two panes with a handle the reader drags or moves with the arrow keys, its size kept with `storageKey`. Reasoning, the chat's "Thinking…" row that folds to "Thought for 4s" once the answer begins.
21
+ - ee2c6be: Chat: `ToolStep` and `ToolSteps` show what an assistant did on its way to an answer, one line per step with what came of it (`meta`). A running step has the same spinner as `StreamStatus`, a finished one the tool's icon, a failed one the error mark. With `detail` the row opens to show what went in and what came back. `ChatPanel` now shows a Latest button over the thread while it is scrolled up from the newest turn; `jumpToLatest={false}` leaves it out.
22
+ - 975a6fc: Combobox: a Select you can type into, for a list too long to scroll. Closed it is a Select; open, a search box sits over the options. Typing narrows them, labels that start with what was typed first; the arrows move the highlight, Enter chooses and Escape closes, and the field gets its focus back. Pass `search` for a search of your own.
23
+ - 3aef120: CommandPalette: a jump menu over the page, opened with Cmd or Ctrl and K (`shortcut`). Typing narrows it, the arrows move the highlight, Enter chooses and Escape closes. It shows the `items` it is given for the `query`, listed under their `group`; the host does the searching.
24
+ - 42a4481: EmptyState: what a list or a page shows while it has nothing yet. A large icon in a quiet tone, a title, a line saying what would be here and how it gets here, and optional `actions`. `size="compact"` sits inside a tab or a section.
25
+ - 0aa041a: Kbd is a component of its own: a filled key cap with no outline, the page's font small and medium, after shadcn's. CommandPalette and the chat hints draw their keys with it; it is still exported where it was.
26
+ - 0245481: Popover: `role="menu"` makes it a menu, its ghost Buttons full width with the arrows moving between them, and `PopoverDivider` separates groups. The panel takes the raised surface tone (`--lv2`, `--lv1` in dark mode) instead of `--lv3`, keeps 8px from the window's edge, and sets `aria-haspopup` on the trigger.
27
+ - 4aa88f7: systm can render inside a shadow root. `PortalContainerProvider` names where the floating parts (Modal, Select, Tooltip, Popover, DatePicker, the Breadcrumbs' switchers) render, so they stay inside the root instead of going to `document.body`; without it nothing changes. `@indxsearch/systm/styles.shadow.css` is the stylesheet for a shadow root, its tokens and page rules on `:host`.
28
+ - b2a34bd: Sidebar: the side column of an app, groups of Buttons with the open one primary. Cmd or Ctrl and B, or the button at its foot, folds it to a rail of icons, where each item names itself in a Tooltip and a badge is a dot; `storageKey` keeps the viewer's choice. A group with `collapsible` opens and closes under its title. At 768px and narrower it is a drawer over the page, opened by the host (`open`, `onOpenChange`) and closed by Escape, a press beside it or a choice.
29
+ - 08dcd53: TagsInput: a list of short values edited as chips in one field. A separator (`;` and `,` by default, set with `separators`) or Enter makes a chip, a paste makes one per part, Backspace takes the last chip back to be mended, and a value already there is not added twice.
30
+ - 8aab4c1: Toast: `toast()` and `toast.error()` show a brief notice at the window's lower right, and `<Toaster />` shows them. A notice stays four seconds and a failure eight, the pointer on one holds it, and it may carry one action ("Undo"). No motion: it is simply there, and then not.
31
+ - 3635b41: TreeCanvas is a board: drag it or scroll with two fingers to pan, pinch or Ctrl/Cmd and the wheel to zoom at the pointer, with zoom in, zoom out, fit and the zoom shown in its corner, and the arrows, + - and 0 from the keyboard. It opens fitted to the tree. Handles mark where the edges leave and arrive, and a dashed edge leads to a node kept only as the way down to a match. `pattern` lays a systm pattern behind it, such as `'grid-12'`, which follows the pan and the zoom. `pan={false}` makes it a still picture. `zoom` is now the zoom it opens at; left out, it fits.
32
+ - 9b63f48: `Waffle`: hovering a cell names its segment in a tooltip beside it, with its share, and a cell or a legend entry under the pointer dims the other segments, so which is which can be browsed from either side. A segment also takes an `icon`, a small graphic before its label in the legend and the tooltip, about the text's height: a pixl icon at 14, or a flag.
33
+
3
34
  ## 2.22.0
4
35
 
5
36
  ### Minor Changes
@@ -1,4 +1,5 @@
1
1
  import { default as React } from 'react';
2
+ import { Kbd } from '../Kbd/Kbd';
2
3
  export interface ChatPanelProps {
3
4
  /** Rendered above the thread — typically a mode `Tabs`. */
4
5
  header?: React.ReactNode;
@@ -12,13 +13,16 @@ export interface ChatPanelProps {
12
13
  /** Ref to the scrolling thread, so a caller can keep the newest message in view. */
13
14
  threadRef?: React.Ref<HTMLDivElement>;
14
15
  'aria-label'?: string;
16
+ /** The Latest button over the thread while it is scrolled up; `false` leaves it out. */
17
+ jumpToLatest?: boolean;
18
+ jumpLabel?: string;
15
19
  }
16
- /** Keyboard hint pill for the hints row. */
17
- export declare function Kbd({ children }: {
18
- children: React.ReactNode;
19
- }): import("react/jsx-runtime").JSX.Element;
20
+ /** The key cap, now systm Kbd of its own; still exported from here as before. */
21
+ export { Kbd };
20
22
  /** Default hints: Enter sends, Shift+Enter breaks a line, Escape closes. */
21
23
  export declare const defaultChatHints: import("react/jsx-runtime").JSX.Element;
22
24
  /** The frame of a conversation: optional header, a scrolling thread, the composer and a hints row.
23
- * Sized by its container — give it a height (or let a modal/dialog do so) and the thread scrolls. */
24
- export declare function ChatPanel({ header, children, composer, hints, className, threadRef, 'aria-label': ariaLabel }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
25
+ * Sized by its container — give it a height (or let a modal/dialog do so) and the thread scrolls.
26
+ * Scrolled up from the newest turn, a Latest button over the bottom of the thread takes the reader
27
+ * back, at once (systm moves only while waiting); the thread growing below them shows it too. */
28
+ export declare function ChatPanel({ header, children, composer, hints, className, threadRef, 'aria-label': ariaLabel, jumpToLatest, jumpLabel }: ChatPanelProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { default as React } from 'react';
2
+ export interface ReasoningProps {
3
+ /** The thinking, as text or markup. */
4
+ children?: React.ReactNode;
5
+ /** Still thinking: the row says so, with the spinner, and the thinking shows. */
6
+ streaming?: boolean;
7
+ /** How long it thought, for "Thought for 4s"; left out, "Thought". */
8
+ seconds?: number;
9
+ className?: string;
10
+ }
11
+ /** What an assistant thought before it answered, kept out of the answer's way. While it thinks the
12
+ * row says "Thinking…" with the spinner StreamStatus has and the thinking shows under it; once the
13
+ * answer begins it folds to "Thought for 4s" and opens again on a press. A reader's own choice
14
+ * outlasts the streaming. The Blazor Reasoning is its port. */
15
+ export declare function Reasoning({ children, streaming, seconds, className }: ReasoningProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { default as React } from 'react';
2
+ interface IconProps {
3
+ size?: string | number;
4
+ color?: string;
5
+ }
6
+ export interface ToolStepProps {
7
+ /** What was done, as a short past-tense line (or present, while running). */
8
+ children: React.ReactNode;
9
+ state?: 'running' | 'done' | 'error';
10
+ /** What came of it, after the line: "12 records", "timed out". */
11
+ meta?: React.ReactNode;
12
+ /** The tool's pixl icon, shown when done; a check without one. */
13
+ icon?: React.ReactElement<IconProps>;
14
+ /** What went in and what came back, shown when the row is opened. */
15
+ detail?: React.ReactNode;
16
+ defaultOpen?: boolean;
17
+ className?: string;
18
+ }
19
+ /** One thing an assistant did on its way to an answer, with what came of it. Running it has the
20
+ * spinner StreamStatus has; done, the tool's icon; failed, the error mark in the signal colour.
21
+ * With `detail` the row opens. Stack them in `ToolSteps`. */
22
+ export declare function ToolStep({ children, state, meta, icon, detail, defaultOpen, className }: ToolStepProps): import("react/jsx-runtime").JSX.Element;
23
+ export interface ToolStepsProps {
24
+ children: React.ReactNode;
25
+ /** Folds the steps into one row that says this, "3 steps"; left out, they show. */
26
+ summary?: React.ReactNode;
27
+ /** With a summary, open from the start. */
28
+ defaultOpen?: boolean;
29
+ 'aria-label'?: string;
30
+ className?: string;
31
+ }
32
+ /** The steps an assistant took, ToolStep under ToolStep, close together inside a message. With a
33
+ * `summary` they fold into one quiet row that opens to show them, for a finished answer. */
34
+ export declare function ToolSteps({ children, summary, defaultOpen, 'aria-label': ariaLabel, className }: ToolStepsProps): import("react/jsx-runtime").JSX.Element;
35
+ export {};
@@ -5,3 +5,5 @@ export { CitationRef, CitationList, type CitationRefProps, type CitationItem, ty
5
5
  export { StreamStatus, type StreamStatusProps } from './StreamStatus';
6
6
  export { Suggestions, type SuggestionsProps } from './Suggestions';
7
7
  export { AnswerActions, type AnswerActionsProps } from './AnswerActions';
8
+ export { ToolStep, ToolSteps, type ToolStepProps, type ToolStepsProps } from './ToolStep';
9
+ export { Reasoning, type ReasoningProps } from './Reasoning';
@@ -0,0 +1,23 @@
1
+ import { SelectOption } from '../Select/Select';
2
+ export interface ComboboxProps {
3
+ value: string;
4
+ onValueChange: (value: string) => void;
5
+ options: SelectOption[];
6
+ /** The host's own search over the options; left out, a label that starts with what was typed
7
+ * comes first, then one that holds it. */
8
+ search?: (query: string) => SelectOption[];
9
+ label?: string;
10
+ placeholder?: string;
11
+ searchPlaceholder?: string;
12
+ noMatchText?: string;
13
+ size?: 'micro' | 'default' | 'large';
14
+ disabled?: boolean;
15
+ 'aria-label'?: string;
16
+ id?: string;
17
+ className?: string;
18
+ }
19
+ /** A Select you can type into, for a list too long to scroll. Closed it is a Select; open, a
20
+ * Popover holds a search box over the options: typing narrows them, the arrows move the
21
+ * highlight, Enter chooses and Escape closes, the field getting its focus back. The Blazor
22
+ * Combobox in Indx.Systm.Blazor is its port. */
23
+ export declare function Combobox({ value, onValueChange, options, search, label, placeholder, searchPlaceholder, noMatchText, size, disabled, 'aria-label': ariaLabel, id, className, }: ComboboxProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Combobox, type ComboboxProps } from './Combobox';
@@ -0,0 +1,30 @@
1
+ import { default as React } from 'react';
2
+ export interface CommandPaletteItem {
3
+ /** What it goes to: the host's own key. */
4
+ id: string;
5
+ label: string;
6
+ /** Consecutive items of one group are listed under its name. */
7
+ group?: string;
8
+ /** A 14px pixl icon. */
9
+ icon?: React.ReactNode;
10
+ /** A note at the end: the team, "opens in a new tab". */
11
+ hint?: string;
12
+ }
13
+ export interface CommandPaletteProps {
14
+ /** The items for the current query, in order. */
15
+ items: CommandPaletteItem[];
16
+ query: string;
17
+ onQueryChange: (query: string) => void;
18
+ open: boolean;
19
+ onOpenChange: (open: boolean) => void;
20
+ /** An item was chosen; the palette closes itself. */
21
+ onChoose: (item: CommandPaletteItem) => void;
22
+ /** The key that opens it with Cmd or Ctrl; 'k' by default, null for none. */
23
+ shortcut?: string | null;
24
+ placeholder?: string;
25
+ /** Shown when there is nothing to list and nothing typed. */
26
+ emptyText?: string;
27
+ noMatchText?: string;
28
+ 'aria-label'?: string;
29
+ }
30
+ export declare function CommandPalette({ items, query, onQueryChange, open, onOpenChange, onChoose, shortcut, placeholder, emptyText, noMatchText, 'aria-label': ariaLabel, }: CommandPaletteProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1 @@
1
+ export { CommandPalette, type CommandPaletteProps, type CommandPaletteItem } from './CommandPalette';
@@ -0,0 +1,22 @@
1
+ import { default as React } from 'react';
2
+ interface IconProps {
3
+ size?: string | number;
4
+ color?: string;
5
+ }
6
+ export interface EmptyStateProps {
7
+ /** A pixl icon, drawn 70px ('default') or 35px ('compact') in lv4. */
8
+ icon?: React.ReactElement<IconProps>;
9
+ title: string;
10
+ /** The line under the title: what would be here, and how it gets here. */
11
+ children?: React.ReactNode;
12
+ /** Buttons that start it, primary first. Leave it out where the toolbar above already has the
13
+ * page's New button. */
14
+ actions?: React.ReactNode;
15
+ size?: 'default' | 'compact';
16
+ className?: string;
17
+ }
18
+ /** What a list or a page shows while it has nothing yet: a large icon in a quiet tone, a title, a
19
+ * line saying what would be here and how it gets here, and the action that starts it. 'default'
20
+ * opens a page; 'compact' sits inside a tab or a section. The Blazor EmptyState is its port. */
21
+ export declare function EmptyState({ icon, title, children, actions, size, className }: EmptyStateProps): import("react/jsx-runtime").JSX.Element;
22
+ export {};
@@ -0,0 +1 @@
1
+ export { EmptyState, type EmptyStateProps } from './EmptyState';
@@ -0,0 +1,22 @@
1
+ export interface IcicleNode {
2
+ label: string;
3
+ /** Itself and everything under it. */
4
+ value: number;
5
+ children?: IcicleNode[];
6
+ }
7
+ export interface IcicleProps {
8
+ root: IcicleNode;
9
+ /** The height of a row in pixels; 30 by default. */
10
+ rowHeight?: number;
11
+ /** The rows drawn, the root's included; deeper nodes are left out. 6 by default. */
12
+ maxDepth?: number;
13
+ /** A block's text on hover; its label and value by default. */
14
+ title?: (node: IcicleNode) => string;
15
+ 'aria-label'?: string;
16
+ className?: string;
17
+ }
18
+ /** A tree as nested blocks, read top to bottom: the root across the top, each node's children in
19
+ * the row under it, a block as wide as its share of the root. A block is toned by how much of it
20
+ * goes on to its children, and the space a parent leaves under it is the part that stopped there.
21
+ * Made for browsing paths, and for any tree whose values add up. The Blazor Icicle is its port. */
22
+ export declare function Icicle({ root, rowHeight, maxDepth, title, className, ...rest }: IcicleProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Icicle, type IcicleProps, type IcicleNode } from './Icicle';
@@ -0,0 +1,8 @@
1
+ import { default as React } from 'react';
2
+ export interface KbdProps extends React.HTMLAttributes<HTMLElement> {
3
+ children: React.ReactNode;
4
+ }
5
+ /** A key, as the keyboard has it: "esc", "⌘K", "⇧↵". After shadcn's Kbd: a filled cap with no
6
+ * outline, the page's font small and medium, the muted surface and text; an icon inside is drawn
7
+ * at 12px. The Blazor Kbd is its port. */
8
+ export declare function Kbd({ children, className, ...rest }: KbdProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Kbd, type KbdProps } from './Kbd';
@@ -7,8 +7,12 @@ export interface PopoverProps {
7
7
  align?: 'start' | 'center' | 'end';
8
8
  side?: 'top' | 'right' | 'bottom' | 'left';
9
9
  sideOffset?: number;
10
+ /** 'dialog' (the default) for a panel of content, 'menu' for a list of actions. */
11
+ role?: 'dialog' | 'menu';
10
12
  className?: string;
11
13
  'aria-label'?: string;
12
14
  'aria-describedby'?: string;
13
15
  }
14
16
  export declare const Popover: React.FC<PopoverProps>;
17
+ /** A hairline between groups in a Popover menu: account, then docs, then log out. */
18
+ export declare const PopoverDivider: React.FC;
@@ -1,2 +1 @@
1
- export { Popover } from './Popover';
2
- export type { PopoverProps } from './Popover';
1
+ export { Popover, PopoverDivider, type PopoverProps } from './Popover';
@@ -0,0 +1,9 @@
1
+ import { default as React } from 'react';
2
+ export interface PortalContainerProviderProps {
3
+ /** The element or shadow root floating parts render into. */
4
+ container: Element | DocumentFragment | null;
5
+ children?: React.ReactNode;
6
+ }
7
+ export declare const PortalContainerProvider: React.FC<PortalContainerProviderProps>;
8
+ /** The container the nearest provider names, or undefined for Radix's default (`document.body`). */
9
+ export declare function usePortalContainer(): Element | DocumentFragment | undefined;
@@ -0,0 +1,24 @@
1
+ import { default as React } from 'react';
2
+ export interface ResizableProps {
3
+ first: React.ReactNode;
4
+ second: React.ReactNode;
5
+ /** 'horizontal' (side by side) or 'vertical' (one over the other). */
6
+ direction?: 'horizontal' | 'vertical';
7
+ /** The first pane's share at the start, in percent. */
8
+ defaultSize?: number;
9
+ minSize?: number;
10
+ maxSize?: number;
11
+ /** Where the viewer's size is kept (localStorage). */
12
+ storageKey?: string;
13
+ /** Told once a drag or a key has settled. */
14
+ onSizeChange?: (size: number) => void;
15
+ /** A grip on the line, for a handle that should be found at a glance. */
16
+ withHandle?: boolean;
17
+ 'aria-label'?: string;
18
+ className?: string;
19
+ }
20
+ /** Two panes with a handle between them that the reader drags: a list beside its detail, a canvas
21
+ * beside its records. The first pane's share is a percentage between minSize and maxSize; the
22
+ * arrow keys on the focused handle move it a step, Home and End to the limits, and storageKey keeps
23
+ * the viewer's size. The Blazor Resizable is its port. */
24
+ export declare function Resizable({ first, second, direction, defaultSize, minSize, maxSize, storageKey, onSizeChange, withHandle, 'aria-label': ariaLabel, className, }: ResizableProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Resizable, type ResizableProps } from './Resizable';
@@ -0,0 +1,23 @@
1
+ export interface ScoreMark {
2
+ /** Where on the scale, 0 to 1. */
3
+ at: number;
4
+ /** Its name, shown on hover with its value. */
5
+ label: string;
6
+ }
7
+ export interface ScoreMeterProps {
8
+ /** The score, 0 to 1. */
9
+ value: number;
10
+ marks?: ScoreMark[];
11
+ /** How many cells; 20 by default, a cell for each 0.05. */
12
+ cells?: number;
13
+ /** A cell's width in pixels; 4 by default. */
14
+ cell?: number;
15
+ 'aria-label'?: string;
16
+ className?: string;
17
+ }
18
+ /** A score from 0 to 1 as a row of small cells, the waffle's pixels in one line, lit up to the
19
+ * score, with a thin tick at each threshold that matters to it (its name on hover): a judge's
20
+ * score against the lines that decide what it does. The lit cells strengthen as the score passes
21
+ * the ticks: dim below them all, a step up past some, the full ink past every one. Compact, for a
22
+ * line of text. The Blazor ScoreMeter is its port. */
23
+ export declare function ScoreMeter({ value, marks, cells, cell, className, ...rest }: ScoreMeterProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { ScoreMeter, type ScoreMeterProps, type ScoreMark } from './ScoreMeter';
@@ -0,0 +1,21 @@
1
+ import { default as React } from 'react';
2
+ export interface SheetProps {
3
+ open?: boolean;
4
+ onOpenChange?: (open: boolean) => void;
5
+ /** What opens it, when the Sheet holds its own state. */
6
+ trigger?: React.ReactNode;
7
+ title?: string;
8
+ description?: string;
9
+ children?: React.ReactNode;
10
+ /** Buttons at the foot, primary first. */
11
+ footer?: React.ReactNode;
12
+ side?: 'right' | 'left';
13
+ /** 'default' (480px) or 'wide' (720px); the whole width on a phone. */
14
+ size?: 'default' | 'wide';
15
+ className?: string;
16
+ }
17
+ /** A panel the height of the window, over the page from its right edge (or left): a record opened
18
+ * from a list, a finding with its evidence, settings too long for a Modal. Radix's dialog keeps the
19
+ * focus inside, closes it on Escape and a press on the scrim, and gives the focus back. Header,
20
+ * a body that scrolls, an optional footer. No motion. The Blazor Sheet is its port. */
21
+ export declare function Sheet({ open, onOpenChange, trigger, title, description, children, footer, side, size, className }: SheetProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { Sheet, type SheetProps } from './Sheet';
@@ -0,0 +1,11 @@
1
+ import { default as React } from 'react';
2
+ export interface ShimmerTextProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ children: React.ReactNode;
4
+ /** The highlight sweeps while true; false is the same text, still. Default true. */
5
+ active?: boolean;
6
+ }
7
+ /** Text a highlight sweeps across, left to right, as Notion's quick answer has it: for a line that
8
+ * says something is about to happen ("Thinking", "For a quick answer, type a bit more"). The one
9
+ * motion in systm that runs before anything is computing (27 Oct 2026): it invites. Still under
10
+ * prefers-reduced-motion. The Blazor ShimmerText is its port. */
11
+ export declare function ShimmerText({ children, active, className, ...rest }: ShimmerTextProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { ShimmerText, type ShimmerTextProps } from './ShimmerText';
@@ -0,0 +1,63 @@
1
+ import { default as React } from 'react';
2
+ interface IconProps {
3
+ size?: string | number;
4
+ color?: string;
5
+ }
6
+ export interface SidebarItem {
7
+ /** What `active` and `onSelect` speak of. */
8
+ key: string;
9
+ label: string;
10
+ /** A pixl icon element. */
11
+ icon?: React.ReactElement<IconProps>;
12
+ /** Where it goes; without it the item calls `onSelect` only. */
13
+ href?: string;
14
+ /** At the item's end ("3"); a dot in the rail. */
15
+ badge?: string;
16
+ /** The badge wants attention: the signal colour, a plain count otherwise. */
17
+ signal?: boolean;
18
+ /** The badge's own hover text. */
19
+ badgeTitle?: string;
20
+ /** An icon at the item's end, such as the lab mark of an experimental section. */
21
+ trailing?: React.ReactElement<IconProps>;
22
+ trailingTitle?: string;
23
+ title?: string;
24
+ /** There but not yet usable; its `title` says why. */
25
+ disabled?: boolean;
26
+ }
27
+ export interface SidebarGroup {
28
+ title?: string;
29
+ items: SidebarItem[];
30
+ /** The title opens and closes the items. */
31
+ collapsible?: boolean;
32
+ }
33
+ export interface SidebarProps {
34
+ groups: SidebarGroup[];
35
+ /** The key of the open item, drawn primary. */
36
+ active?: string;
37
+ onSelect?: (item: SidebarItem) => void;
38
+ /** Above the groups; hidden in the rail. */
39
+ header?: React.ReactNode;
40
+ /** Under the groups, above the fold button; hidden in the rail. */
41
+ footer?: React.ReactNode;
42
+ /** The rail of icons, controlled with `onCollapsedChange`; leave both out and it keeps its own. */
43
+ collapsed?: boolean;
44
+ onCollapsedChange?: (collapsed: boolean) => void;
45
+ defaultCollapsed?: boolean;
46
+ /** Whether it can fold to the rail at all. */
47
+ collapsible?: boolean;
48
+ /** The key that folds it with Cmd or Ctrl; `null` for none. */
49
+ shortcut?: string | null;
50
+ /** Where the viewer's own choice is kept (localStorage). */
51
+ storageKey?: string;
52
+ /** The drawer, at 768px and narrower: the host's trigger opens it. */
53
+ open?: boolean;
54
+ onOpenChange?: (open: boolean) => void;
55
+ 'aria-label'?: string;
56
+ className?: string;
57
+ }
58
+ /** The side column of an app: groups of systm Buttons, the open one primary. It folds to a rail of
59
+ * icons (Cmd or Ctrl and B, or the button at its foot), remembered with `storageKey`; in the rail
60
+ * each item names itself in a Tooltip and a badge is a dot. At 768px and narrower it is a drawer
61
+ * over the page, opened by the host and closed by Escape, a press beside it or a choice. No motion. */
62
+ export declare function Sidebar({ groups, active, onSelect, header, footer, collapsed, onCollapsedChange, defaultCollapsed, collapsible, shortcut, storageKey, open, onOpenChange, 'aria-label': ariaLabel, className, }: SidebarProps): import("react/jsx-runtime").JSX.Element;
63
+ export {};
@@ -0,0 +1 @@
1
+ export { Sidebar, type SidebarProps, type SidebarItem, type SidebarGroup } from './Sidebar';
@@ -0,0 +1,14 @@
1
+ export interface TagsInputProps {
2
+ value: string[];
3
+ onChange: (value: string[]) => void;
4
+ label?: string;
5
+ placeholder?: string;
6
+ /** A line under the field: what divides the values, what a value may hold. */
7
+ hint?: string;
8
+ /** The characters that end a value as it is typed or pasted, besides Enter; ";" and "," by default. */
9
+ separators?: string;
10
+ disabled?: boolean;
11
+ 'aria-label'?: string;
12
+ className?: string;
13
+ }
14
+ export declare function TagsInput({ value, onChange, label, placeholder, hint, separators, disabled, 'aria-label': ariaLabel, className, }: TagsInputProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { TagsInput, type TagsInputProps } from './TagsInput';
@@ -0,0 +1,20 @@
1
+ import { default as React } from 'react';
2
+ export interface ToastOptions {
3
+ /** A 14px pixl icon. */
4
+ icon?: React.ReactNode;
5
+ /** How long it stays, in milliseconds. */
6
+ duration?: number;
7
+ /** One action, "Undo"; pressing it closes the notice. */
8
+ action?: {
9
+ label: string;
10
+ onClick: () => void;
11
+ };
12
+ }
13
+ /** Shows a notice and returns its id. */
14
+ export declare function toast(message: string, options?: ToastOptions): number;
15
+ export declare namespace toast {
16
+ var error: (message: string, options?: Omit<ToastOptions, "icon">) => number;
17
+ var dismiss: (id: number) => void;
18
+ }
19
+ /** Where the notices show; place one in the app. */
20
+ export declare function Toaster(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export { toast, Toaster, type ToastOptions } from './Toast';
@@ -29,13 +29,26 @@ export interface TreeCanvasProps {
29
29
  /** A filter: only nodes it accepts stay, with the path down to each; an ancestor kept only as
30
30
  * the way down is drawn muted, and a branch holding a match is opened. "Only boosted." */
31
31
  visible?: (node: TreeNode) => boolean;
32
- /** The canvas drawn at this scale, 1 by default: 0.5 shows twice the tree in the same room. */
32
+ /** The zoom the tree opens at, from the left; left out, it opens fitted in view when that leaves
33
+ * it readable, and at 100% from the left when not. */
33
34
  zoom?: number;
34
35
  /** When set or changed, the tree is opened to this many levels and closed below: 1 shows the
35
36
  * roots, 2 their children. Left out, the opening is the component's own. */
36
37
  openDepth?: number;
38
+ /** The board: drag to pan, two-finger scroll to pan, pinch or Ctrl/Cmd and the wheel to zoom, the
39
+ * arrows, + - and 0 on it, and the zoom controls in its corner; on by default. Off, the tree is a
40
+ * still picture at `zoom` or fitted, for an example inside a page that scrolls. */
41
+ pan?: boolean;
42
+ /** A control to fill the screen with the board: the nearest element the page marks
43
+ * `data-tree-fullscreen` (so a panel beside the board goes along), else the board; Esc leaves.
44
+ * On by default where the board pans. */
45
+ fullscreen?: boolean;
46
+ /** A systm pattern behind the tree, faint, moving with it. None by default. */
47
+ pattern?: TreeCanvasPattern;
37
48
  /** A name for assistive technology: "Categories of shop". */
38
49
  'aria-label'?: string;
39
50
  className?: string;
40
51
  }
41
- export declare function TreeCanvas({ roots, selected, onSelect, defaultExpanded, view, maxChildren, format, visible, zoom, openDepth, 'aria-label': ariaLabel, className, }: TreeCanvasProps): import("react/jsx-runtime").JSX.Element;
52
+ /** The patterns `pattern` takes: the systm set in globals/patterns.css. */
53
+ export type TreeCanvasPattern = 'grid-12' | 'grid-24' | 'grid-6' | 'checkerboard' | 'checkerboard-spaced-4' | 'checkerboard-spaced-6' | 'checkerboard-spaced-8' | 'checkerboard-spaced-10';
54
+ export declare function TreeCanvas({ roots, selected, onSelect, defaultExpanded, view, maxChildren, format, visible, zoom, openDepth, pan: pannable, fullscreen, pattern, 'aria-label': ariaLabel, className, }: TreeCanvasProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ export type ViewportAction = 'in' | 'out' | 'fit' | 'reset' | 'fullscreen';
2
+ export interface Viewport {
3
+ setPan(pan: boolean): void;
4
+ /** The first view of a tree: fitted when that leaves it readable; else at the given zoom (1 when
5
+ * none), from the left, with the first root a third of the way down. */
6
+ initial(zoom?: number): void;
7
+ command(action: ViewportAction): void;
8
+ bringIntoView(el: HTMLElement): void;
9
+ destroy(): void;
10
+ }
11
+ export declare function createViewport(canvas: HTMLElement, view: HTMLElement, grid: HTMLElement | null, pan: boolean): Viewport;
@@ -4,6 +4,8 @@ export interface WaffleSegment {
4
4
  value: number;
5
5
  /** The segment's colour; without it, the tone ladder from the ink down, four steps, so a fifth segment needs one. */
6
6
  color?: string;
7
+ /** A small graphic before the label in the legend, about the text's height: a pixl icon, a flag. */
8
+ icon?: ReactNode;
7
9
  }
8
10
  export interface WaffleProps {
9
11
  segments: WaffleSegment[];