@indxsearch/systm 2.21.1 → 2.23.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/CHANGELOG.md +52 -0
- package/dist/components/BarMeter/BarMeter.d.ts +51 -0
- package/dist/components/BarSlider/BarSlider.d.ts +25 -0
- package/dist/components/Chart/Chart.d.ts +47 -1
- package/dist/components/Chat/ChatPanel.d.ts +10 -6
- package/dist/components/Chat/Reasoning.d.ts +15 -0
- package/dist/components/Chat/ToolStep.d.ts +35 -0
- package/dist/components/Chat/index.d.ts +2 -0
- package/dist/components/Combobox/Combobox.d.ts +23 -0
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/CommandPalette/CommandPalette.d.ts +30 -0
- package/dist/components/CommandPalette/index.d.ts +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +22 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/GroupedBars/GroupedBars.d.ts +28 -0
- package/dist/components/Heatmap/Heatmap.d.ts +35 -0
- package/dist/components/Kbd/Kbd.d.ts +8 -0
- package/dist/components/Kbd/index.d.ts +1 -0
- package/dist/components/Popover/Popover.d.ts +4 -0
- package/dist/components/Popover/index.d.ts +1 -2
- package/dist/components/PortalContainer/PortalContainer.d.ts +9 -0
- package/dist/components/RadarChart/RadarChart.d.ts +35 -0
- package/dist/components/RadialChart/RadialChart.d.ts +47 -0
- package/dist/components/Resizable/Resizable.d.ts +24 -0
- package/dist/components/Resizable/index.d.ts +1 -0
- package/dist/components/ScrubSlider/ScrubSlider.d.ts +23 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +27 -0
- package/dist/components/Sheet/Sheet.d.ts +21 -0
- package/dist/components/Sheet/index.d.ts +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +63 -0
- package/dist/components/Sidebar/index.d.ts +1 -0
- package/dist/components/Stat/Stat.d.ts +13 -3
- package/dist/components/TagsInput/TagsInput.d.ts +14 -0
- package/dist/components/TagsInput/index.d.ts +1 -0
- package/dist/components/Toast/Toast.d.ts +20 -0
- package/dist/components/Toast/index.d.ts +1 -0
- package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -1
- package/dist/components/TreeCanvas/TreeCanvas.d.ts +50 -0
- package/dist/components/TreeCanvas/viewport.d.ts +11 -0
- package/dist/components/Waffle/Waffle.d.ts +27 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +23 -3
- package/dist/index.es.js +4438 -1272
- package/dist/systm.css +1 -1
- package/dist/systm.shadow.css +2 -0
- package/package.json +3 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,57 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.23.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- 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.
|
|
9
|
+
- 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.
|
|
10
|
+
- Button: `aria-disabled="true"` reads as off, as `disabled` does, so an item that is there but not yet usable looks it.
|
|
11
|
+
- 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.
|
|
12
|
+
- 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.
|
|
13
|
+
- 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.
|
|
14
|
+
- 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.
|
|
15
|
+
- 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.
|
|
16
|
+
- 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.
|
|
17
|
+
- 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.
|
|
18
|
+
- 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`.
|
|
19
|
+
- 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.
|
|
20
|
+
- 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.
|
|
21
|
+
- 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.
|
|
22
|
+
- 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.
|
|
23
|
+
- 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.
|
|
24
|
+
|
|
25
|
+
## 2.22.0
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- a848bf1: `BarMeter` `shape="ring"`: the same bars around a circle, from the top clockwise, with the value in the middle and the label beneath. `size` sets the diameter, 72px by default; 48 is the smallest that holds a short value and fits a Stat as its value, and from 96 the ceiling joins the value on a second line. `label` is now optional in both shapes.
|
|
30
|
+
- 1bcaa7f: `BarMeter` `segments`: the row as shares of a whole instead of a level, each segment its share of the bars in a tone of its own, its name and share above it and a hairline between. Holders by kind, documents by type. A segment under 8 % of the row gets no head, the last one apart, and `labels="legend"` lists all segments under the bars instead. `value` and `max` are optional, since the segments are the whole.
|
|
31
|
+
- 79f891e: `BarMeter` `zones`: levels from which the filled bars change colour, cool blue when idle, teal when fine, a warning from 70 % and the signal red from 85 %, in both shapes. One bar in each zone's colour marks where it starts, so the thresholds are seen before they are reached; `color` overrides them.
|
|
32
|
+
- 029a381: `BarMeter`: a level against its ceiling as a row of bars, the filled ones in the ink and the rest dim, with a label above and the value and ceiling below. For CPU pressure, memory in use, a quota: where ProgressBar is a percentage on its way to done, this goes up and down. `color` paints the filled bars, for a level past a threshold.
|
|
33
|
+
- a8c906a: `BarSlider`: a slider that is its own row. The fill runs from the left edge to the value and spans the full height, the label sits inside at the left, the value at the right, and the handle is a thin line at the fill's edge. Sized like a Button (`default` 40px, `micro` 30px), so a stack of settings lines up with fields. `stepMarks` draws a dot per step on the track, `format` shapes the value shown.
|
|
34
|
+
- c946a3c: `Chart`: `yAxis` ("left" or "right") puts round ticks on the value axis, each with a faint gridline, and widens the range to them; `yFormat` sets their text, compact by default (1.2k, 3M). `references` are levels to read the data against, a threshold, an average, a quota: each a dashed line with its label in a tag at the right, in the ink or in a colour such as the signal red for a limit. A reference outside the data pulls the range out to include it.
|
|
35
|
+
- 1e09a2a: `Chart`: `fill` per series. `solid` is the series colour, flat on a bar and faint under a line, so a single series reads as an area; `hatch`, `dots` and `checker` are drawn in the colour on the 2px pixel grid, so two or three series tell apart in one tone. A bar is solid unless told otherwise; a line stays a wire unless given an area. The legend shows a patterned series' pattern.
|
|
36
|
+
- f684405: `Chart`: `low` and `high` on a line series, one value per point, draw a band behind the line, faint in the series colour or in its pattern when `fill` is one; the tooltip adds the range under the value, named by `rangeLabel`. Latency as the median with its p5 to p95 spread, a forecast with its margin.
|
|
37
|
+
- 6e9b5f5: `Chart`: `stacked` puts a bar chart's series on top of each other in one bar per label, in series order from the baseline, so the bar's height is the total; the range follows the totals and the tooltip lists each part and the total.
|
|
38
|
+
- 7a0fa0c: `Chart`: `step` on a line series holds the value flat until the next point and then jumps, for a record count or a quota that changes on a date. `signal` on a reference makes it a limit: whatever lies above it is drawn in the signal red, bars and points alike.
|
|
39
|
+
- 24d1515: `GroupedBars`: thin bars in labelled groups across the width, a group a day and a bar an hour, or a group a week and a bar a day. A hairline marks where each group starts with its name and a figure above; a band under each group takes its colour when it is highlighted, so one group stands out; the sample labels sit under the bands, as many as fit; hover reads a bar.
|
|
40
|
+
- 2eb549c: `Heatmap`: a grid of pixel cells toned by value, columns of `rows` cells filled top to bottom then the next column, zero the empty tone and the rest four steps up to the ink, with column labels beneath and row labels at the left, and on hover the cell outlined with its `format` text in a tooltip beside it. `calendarCells(from, to, valueOf)` lays days out as weeks across and weekdays down, Monday first, with month labels. For days a dataset woke, searches by hour and weekday, any count per cell of a regular grid.
|
|
41
|
+
- 9f9190f: `RadarChart`: a shape across a few dimensions, an axis a dimension with its name at the end and faint rings for the scale, a series as a polygon through its values with the Chart's square markers and a solid or patterned fill, several series with a legend, a max and a format per axis for dimensions in their own units, and hover on the nearest axis listing every series' value. For comparing profiles: a dataset this month against last.
|
|
42
|
+
- e542d87: `RadialChart`: bars around a clock face from the top clockwise, around a hollow centre that can hold a Stat. One series, a bar a sample with its length the value, a thin guide a sample to the rim and a dashed line at the start; several `series` sharing each sample's slot, each in its colour, with a legend; or `groups`, the rose, a wedge per group with its radius the value over a dim wedge, the name and value upright in it. `inverse` hangs the bars from the rim, growing inward over the ticks, a dial with its reading in the centre. Hover reads a bar by its angle, with `format` for the tooltip. The hours of a day, searches and asks by hour, a handful of kinds compared.
|
|
43
|
+
- 9e71991: `ScrubSlider`: a slider with no end. A ruler of ticks scrolls under a fixed handle, one step per tick as far as the drag goes, with a number field at the right that shows the value and takes one typed. `min` and `max` are optional bounds; arrow keys step, Shift steps ten.
|
|
44
|
+
- 0e126c1: `SegmentedControl`: one choice from a few, side by side with the chosen cell filled like a primary Button and the rest on the faint surface tone and touching, the button Tabs look with no gap and without the navigation, for the period of a chart, the interval of a graph, the type of a view. A cell is a word, an icon, or both; `size` micro (24px) or default (30px); `stretch` shares the width; a cell may carry a badge as a Tab does; arrow keys move between cells.
|
|
45
|
+
- 3dcb304: `Stat` `figure`: a graphic under the label, the value and foot beside it, for a BarMeter ring that carries the number. `value` is optional when a figure does.
|
|
46
|
+
- 13eb480: `Stat`: a `labelIcon`, a pixl icon before the label in the label's tone, for a row of tiles read at a glance.
|
|
47
|
+
- ce4a08f: `ToggleSwitch` takes `marks`: a 0 on the track when off and a | when on, the marks of a power switch, drawn in whole pixels.
|
|
48
|
+
- 373382a: `TreeCanvas`: a hierarchy as a horizontal tree of pills, a node its name and a count, children fanned out to the right on soft connectors, the chosen node and the path to it lit, the rest collapsed until opened. For a catalogue's categories. Arrow keys move between nodes, right opens and left closes; a node with many children shows the first fifty and a step to the rest; a list view gives the same tree as nested rows for a phone.
|
|
49
|
+
- c659761: `Waffle`: shares of a whole as a grid of pixel squares, each segment its share of the cells filled column by column from the left, the first in the ink and the rest down the tone ladder, with a legend beneath. `columns`, `rows` and `cell` set the shape (20 by 5 at 4px by default, so a cell is a percent); the ladder has four steps, so a fifth segment, or one that means something, takes a `color`. Where a pie would be, this is the pixel version.
|
|
50
|
+
|
|
51
|
+
### Patch Changes
|
|
52
|
+
|
|
53
|
+
- b6456d0: `Stat`: three rows, the label at the top, the value in the middle and the foot at the bottom. The middle takes the height the other two leave and centres what it holds, so in a `StatGroup` the labels line up at the top, the feet at the bottom, and a ring, a number and a chip sit on one middle line. A foot without a figure now spans the tile's width.
|
|
54
|
+
|
|
3
55
|
## 2.21.1
|
|
4
56
|
|
|
5
57
|
### Patch Changes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export type BarMeterShape = 'bar' | 'ring';
|
|
3
|
+
/** A level from which the meter changes colour: warning from 70 %, the signal red from 85 %. */
|
|
4
|
+
export interface BarMeterZone {
|
|
5
|
+
/** Where the zone starts, as a share of max, 0 to 1. */
|
|
6
|
+
from: number;
|
|
7
|
+
color: string;
|
|
8
|
+
}
|
|
9
|
+
export interface BarMeterSegment {
|
|
10
|
+
label: ReactNode;
|
|
11
|
+
value: number;
|
|
12
|
+
/** The segment's colour; without it, the tone ladder from the ink down, four steps. */
|
|
13
|
+
color?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface BarMeterProps {
|
|
16
|
+
/** What is measured: "CPU pressure", "Memory". A ring inside a Stat leaves it to the Stat. */
|
|
17
|
+
label?: ReactNode;
|
|
18
|
+
/** The level; with segments, left out: the segments are the whole. */
|
|
19
|
+
value?: number;
|
|
20
|
+
max?: number;
|
|
21
|
+
/**
|
|
22
|
+
* The row as shares of a whole: each segment its share of the bars in its own tone, with its
|
|
23
|
+
* name and share above it and a hairline between. Holders by kind, documents by type. The
|
|
24
|
+
* row shape only; value, max and the foot are not used.
|
|
25
|
+
*/
|
|
26
|
+
segments?: BarMeterSegment[];
|
|
27
|
+
/**
|
|
28
|
+
* Where the segments' names and shares go: 'heads' above each segment (a segment under 8 %
|
|
29
|
+
* of the row gets none, the last one apart), or 'legend', a list under the bars, for many or
|
|
30
|
+
* narrow segments.
|
|
31
|
+
*/
|
|
32
|
+
labels?: 'heads' | 'legend';
|
|
33
|
+
/** The value as shown at the left; defaults to the number itself. */
|
|
34
|
+
format?: (value: number) => ReactNode;
|
|
35
|
+
/** The ceiling as shown at the right; defaults to "of" and the formatted max. */
|
|
36
|
+
maxLabel?: ReactNode;
|
|
37
|
+
/** The filled bars' colour, for a level that has become a problem: the signal red past a threshold. Overrides the zones. */
|
|
38
|
+
color?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Levels from which the filled bars change colour: cool blue when idle, teal when fine, a
|
|
41
|
+
* warning from 70 %, the signal red from 85 %. One bar in each zone's colour marks where it
|
|
42
|
+
* starts, so the thresholds can be seen before they are reached.
|
|
43
|
+
*/
|
|
44
|
+
zones?: BarMeterZone[];
|
|
45
|
+
/** A row of bars (default) or a ring of them. */
|
|
46
|
+
shape?: BarMeterShape;
|
|
47
|
+
/** The ring's diameter in pixels; 72 by default, 48 the smallest that holds a value. From 96 the ceiling joins the value in the middle. The row ignores it. */
|
|
48
|
+
size?: number;
|
|
49
|
+
className?: string;
|
|
50
|
+
}
|
|
51
|
+
export declare function BarMeter({ label, value, max, segments, labels, format, maxLabel, color, zones, shape, size, className, }: BarMeterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type BarSliderSize = 'micro' | 'default';
|
|
3
|
+
export interface BarSliderProps {
|
|
4
|
+
min: number;
|
|
5
|
+
max: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
value: number;
|
|
8
|
+
onChange: (value: number) => void;
|
|
9
|
+
onFinalChange?: (value: number) => void;
|
|
10
|
+
/** Shown inside the bar, at the left. */
|
|
11
|
+
label?: string;
|
|
12
|
+
/** The value as shown at the right; defaults to the number itself. */
|
|
13
|
+
format?: (value: number) => React.ReactNode;
|
|
14
|
+
/** Hide the value at the right. */
|
|
15
|
+
showValue?: boolean;
|
|
16
|
+
/** A dot at every step, on the part of the track the fill has not reached. */
|
|
17
|
+
stepMarks?: boolean;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** 'default' is 40px like a default Button, 'micro' is 30px. */
|
|
20
|
+
size?: BarSliderSize;
|
|
21
|
+
className?: string;
|
|
22
|
+
'aria-label'?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const BarSlider: React.FC<BarSliderProps>;
|
|
@@ -1,8 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How a series is filled: a bar, or the area under a line. 'solid' is the series colour, flat
|
|
3
|
+
* on a bar and faint under a line; the patterns are drawn in the series colour on the 2px pixel
|
|
4
|
+
* grid, so two series tell apart in one tone. 'none' leaves a line as a line.
|
|
5
|
+
*/
|
|
6
|
+
export type ChartFill = 'none' | 'solid' | 'hatch' | 'dots' | 'checker';
|
|
1
7
|
export interface ChartSeries {
|
|
2
8
|
label: string;
|
|
3
9
|
data: number[];
|
|
4
10
|
color?: string;
|
|
5
11
|
hoverColor?: string;
|
|
12
|
+
/** Bars are 'solid' unless told otherwise; a line is 'none', a wire, unless given an area. */
|
|
13
|
+
fill?: ChartFill;
|
|
14
|
+
/**
|
|
15
|
+
* Lines only: a range around the line, one value per point, drawn as a band behind it. The
|
|
16
|
+
* band is faint in the series colour, or its pattern when `fill` is one; the area under the
|
|
17
|
+
* line is then not drawn. Latency as p50 with p5 to p95, a forecast with its spread.
|
|
18
|
+
*/
|
|
19
|
+
low?: number[];
|
|
20
|
+
high?: number[];
|
|
21
|
+
/** What the range is, for the tooltip: "p5 to p95". "Range" when left out. */
|
|
22
|
+
rangeLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Lines only: the value holds flat until the next point and then jumps, for what does not
|
|
25
|
+
* move between samples: a record count, a state, a quota that changes on a date.
|
|
26
|
+
*/
|
|
27
|
+
step?: boolean;
|
|
28
|
+
}
|
|
29
|
+
/** A level to read the data against: a threshold, an average, a quota, the value now. */
|
|
30
|
+
export interface ChartReference {
|
|
31
|
+
value: number;
|
|
32
|
+
/** Shown in a tag at the right end of the line; the formatted value when left out. */
|
|
33
|
+
label?: string;
|
|
34
|
+
/** The line's and the tag's colour: the signal red for a limit. The ink by default. */
|
|
35
|
+
color?: string;
|
|
36
|
+
/** A limit: whatever lies above the line is drawn in the signal red, bars and points alike. */
|
|
37
|
+
signal?: boolean;
|
|
6
38
|
}
|
|
7
39
|
/** A point where something happened (a change, a release), and what it was. */
|
|
8
40
|
export interface ChartMarker {
|
|
@@ -21,5 +53,19 @@ export interface ChartProps {
|
|
|
21
53
|
* listed in its tooltip. Several may share a point.
|
|
22
54
|
*/
|
|
23
55
|
markers?: ChartMarker[];
|
|
56
|
+
/**
|
|
57
|
+
* A value axis at the left or right: round ticks with a faint gridline each, the range widened
|
|
58
|
+
* to the ticks. Without it the chart keeps its midline and reads by the tooltip.
|
|
59
|
+
*/
|
|
60
|
+
yAxis?: 'none' | 'left' | 'right';
|
|
61
|
+
/** The tick labels, and a reference's label when it has none; compact by default: 1.2k, 3M. */
|
|
62
|
+
yFormat?: (value: number) => string;
|
|
63
|
+
/** Levels to read the data against, each a dashed line with its label in a tag at the right. */
|
|
64
|
+
references?: ChartReference[];
|
|
65
|
+
/**
|
|
66
|
+
* Bars only: the series on top of each other in one bar per label, in series order from the
|
|
67
|
+
* baseline, so the bar's height is the total. The tooltip lists each part and the total.
|
|
68
|
+
*/
|
|
69
|
+
stacked?: boolean;
|
|
24
70
|
}
|
|
25
|
-
export declare function Chart({ series, labels, type, height, showLegend, className, markers, }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
71
|
+
export declare function Chart({ series, labels, type, height, showLegend, className, markers, yAxis, yFormat, references, stacked, }: ChartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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
|
-
/**
|
|
17
|
-
export
|
|
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
|
-
|
|
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,28 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface BarGroup {
|
|
3
|
+
label: string;
|
|
4
|
+
/** A figure beside the name: the group's total, its share. */
|
|
5
|
+
sublabel?: ReactNode;
|
|
6
|
+
values: number[];
|
|
7
|
+
/** The bars' and the band's colour when highlighted; the teal is the usual choice. */
|
|
8
|
+
color?: string;
|
|
9
|
+
/** This group stands out: its bars and band in its colour, the rest in the ink. */
|
|
10
|
+
highlight?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface GroupedBarsProps {
|
|
13
|
+
groups: BarGroup[];
|
|
14
|
+
/** What each sample in a group is, for the tooltip and the labels under the band: the hours. */
|
|
15
|
+
labels?: string[];
|
|
16
|
+
/** The bars' height in pixels; 120 by default. */
|
|
17
|
+
height?: number;
|
|
18
|
+
/** The value that reaches the top; the largest by default. */
|
|
19
|
+
max?: number;
|
|
20
|
+
/** The gap between groups in pixels; 2 by default, so the groups read as one run parted by hairlines. */
|
|
21
|
+
gap?: number;
|
|
22
|
+
/** The tooltip's text for a value. The number by default. */
|
|
23
|
+
format?: (value: number, group: number, index: number) => string;
|
|
24
|
+
/** A name for assistive technology: "Searches by hour, this week". */
|
|
25
|
+
'aria-label'?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function GroupedBars({ groups, labels, height, max, gap, format, 'aria-label': ariaLabel, className }: GroupedBarsProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface HeatmapLabel {
|
|
3
|
+
/** The column (or row) the label sits at, from 0. */
|
|
4
|
+
at: number;
|
|
5
|
+
label: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export interface HeatmapProps {
|
|
8
|
+
/** One value per cell, column by column, top to bottom. null is a gap: no cell drawn. */
|
|
9
|
+
values: (number | null)[];
|
|
10
|
+
/** Cells down; 7 by default, a week. */
|
|
11
|
+
rows?: number;
|
|
12
|
+
/** The value that is the ink; the largest value by default. */
|
|
13
|
+
max?: number;
|
|
14
|
+
/** Labels beneath the grid, at the columns they name: months, hours. */
|
|
15
|
+
columnLabels?: HeatmapLabel[];
|
|
16
|
+
/** Labels left of the grid, at the rows they name: weekdays. */
|
|
17
|
+
rowLabels?: HeatmapLabel[];
|
|
18
|
+
/** A cell's side in pixels; 6 by default, with a 2px gap. */
|
|
19
|
+
cell?: number;
|
|
20
|
+
/** What a cell says on hover, in a tooltip beside it: the value and what it is. Nothing by default. */
|
|
21
|
+
format?: (value: number, index: number) => string;
|
|
22
|
+
/** A name for assistive technology: "Days woken, last six months". */
|
|
23
|
+
'aria-label'?: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
export declare function levelOf(value: number, max: number): number;
|
|
27
|
+
export declare function Heatmap({ values, rows, max, columnLabels, rowLabels, cell, format, 'aria-label': ariaLabel, className, }: HeatmapProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export interface CalendarCells {
|
|
29
|
+
values: (number | null)[];
|
|
30
|
+
columnLabels: HeatmapLabel[];
|
|
31
|
+
rowLabels: HeatmapLabel[];
|
|
32
|
+
/** The day each cell is, by index; null where the cell is a gap. */
|
|
33
|
+
dates: (Date | null)[];
|
|
34
|
+
}
|
|
35
|
+
export declare function calendarCells(from: Date, to: Date, valueOf: (day: Date) => number): CalendarCells;
|
|
@@ -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,35 @@
|
|
|
1
|
+
export type RadarFill = 'none' | 'solid' | 'hatch' | 'dots' | 'checker';
|
|
2
|
+
export interface RadarAxis {
|
|
3
|
+
label: string;
|
|
4
|
+
/** This axis's own ceiling, for a dimension in its own unit; the chart's max otherwise. */
|
|
5
|
+
max?: number;
|
|
6
|
+
/** This axis's value as shown in the tooltip; the chart's format otherwise. */
|
|
7
|
+
format?: (value: number) => string;
|
|
8
|
+
}
|
|
9
|
+
export interface RadarSeries {
|
|
10
|
+
label: string;
|
|
11
|
+
/** One value an axis, in the axes' order. */
|
|
12
|
+
values: number[];
|
|
13
|
+
/** The line's and markers' colour; the first series is the ink, the rest need one. */
|
|
14
|
+
color?: string;
|
|
15
|
+
/** The shape's fill; 'solid' by default, faint in the colour. */
|
|
16
|
+
fill?: RadarFill;
|
|
17
|
+
}
|
|
18
|
+
export interface RadarChartProps {
|
|
19
|
+
axes: RadarAxis[];
|
|
20
|
+
series: RadarSeries[];
|
|
21
|
+
/** The diameter of the rim in pixels, the names outside it; 240 by default. */
|
|
22
|
+
size?: number;
|
|
23
|
+
/** The value that reaches the rim on every axis without a max of its own; the largest by default. */
|
|
24
|
+
max?: number;
|
|
25
|
+
/** The scale rings inside the rim; 3 by default. */
|
|
26
|
+
rings?: number;
|
|
27
|
+
/** A value as shown in the tooltip; the number by default. */
|
|
28
|
+
format?: (value: number) => string;
|
|
29
|
+
/** The legend under the chart with several series; on by default. */
|
|
30
|
+
showLegend?: boolean;
|
|
31
|
+
/** A name for assistive technology: "Dataset profile, this month and last". */
|
|
32
|
+
'aria-label'?: string;
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function RadarChart({ axes, series, size, max, rings, format, showLegend, 'aria-label': ariaLabel, className, }: RadarChartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface RadialSeries {
|
|
3
|
+
label: string;
|
|
4
|
+
values: number[];
|
|
5
|
+
/** The bars' colour; the first series is the ink, the rest need one. */
|
|
6
|
+
color?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RadialGroup {
|
|
9
|
+
label: string;
|
|
10
|
+
value: number;
|
|
11
|
+
/** The sector's colour; the ink by default. */
|
|
12
|
+
color?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface RadialChartProps {
|
|
15
|
+
/** One series: a value a sample, from the top clockwise. */
|
|
16
|
+
values?: number[];
|
|
17
|
+
/** Several series over the same samples, each in its colour; the first is the ink. */
|
|
18
|
+
series?: RadialSeries[];
|
|
19
|
+
/** What each sample is, for the tooltip: a date, an hour. The index when left out. */
|
|
20
|
+
labels?: string[];
|
|
21
|
+
/** The rose: a wedge a group, its radius the group's value, the name and value in it. */
|
|
22
|
+
groups?: RadialGroup[];
|
|
23
|
+
/** The gap between the rose's wedges, in pixels, the same at the hollow and the rim; 4 by default. */
|
|
24
|
+
gap?: number;
|
|
25
|
+
/** The rose's corner radius in pixels; 8 by default, less on a small face. */
|
|
26
|
+
rounding?: number;
|
|
27
|
+
/** The diameter in pixels; 240 by default. */
|
|
28
|
+
size?: number;
|
|
29
|
+
/** The hollow centre's share of the radius; 0.4 by default. */
|
|
30
|
+
hollow?: number;
|
|
31
|
+
/** Bars hung from the rim, growing inward over the ticks, as a dial; the value sits in the centre. */
|
|
32
|
+
inverse?: boolean;
|
|
33
|
+
/** The value that reaches the rim; the largest by default. */
|
|
34
|
+
max?: number;
|
|
35
|
+
/** The bars' colour for one series; the ink by default. The hovered bar is always the ink. */
|
|
36
|
+
color?: string;
|
|
37
|
+
/** The tooltip's text for a value: the value and what it is. Nothing by default. */
|
|
38
|
+
format?: (value: number, index: number) => string;
|
|
39
|
+
/** What sits in the hollow centre: a total, a Stat. */
|
|
40
|
+
centre?: ReactNode;
|
|
41
|
+
/** The legend under several series; on by default. */
|
|
42
|
+
showLegend?: boolean;
|
|
43
|
+
/** A name for assistive technology: "Searches per day, last year". */
|
|
44
|
+
'aria-label'?: string;
|
|
45
|
+
className?: string;
|
|
46
|
+
}
|
|
47
|
+
export declare function RadialChart({ values, series, labels, groups, gap, rounding, size, hollow, inverse, max, color, format, centre, showLegend, 'aria-label': ariaLabel, className, }: RadialChartProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -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';
|