@visulima/tui-kit 1.0.0 → 1.0.1
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 +7 -0
- package/dist/accordion.d.ts +25 -32
- package/dist/alert.d.ts +9 -13
- package/dist/animate-presence.d.ts +9 -11
- package/dist/approval-prompt.d.ts +28 -38
- package/dist/area-chart.d.ts +29 -39
- package/dist/badge.d.ts +8 -11
- package/dist/bar-chart.d.ts +29 -38
- package/dist/big-text.d.ts +42 -52
- package/dist/blink-dot.d.ts +16 -21
- package/dist/breadcrumb.d.ts +11 -15
- package/dist/button.d.ts +18 -25
- package/dist/calendar.d.ts +31 -43
- package/dist/card.d.ts +22 -32
- package/dist/checkbox-group.d.ts +21 -30
- package/dist/checkbox.d.ts +19 -27
- package/dist/code.d.ts +24 -31
- package/dist/collapsible.d.ts +21 -30
- package/dist/color-picker.d.ts +29 -41
- package/dist/command-block.d.ts +19 -27
- package/dist/command-palette.d.ts +36 -45
- package/dist/confirm-dialog.d.ts +35 -47
- package/dist/confirm-input.d.ts +17 -23
- package/dist/console-overlay.d.ts +28 -35
- package/dist/content-switcher.d.ts +22 -30
- package/dist/controlled-scroll-view.d.ts +1 -1
- package/dist/data-grid.d.ts +18 -24
- package/dist/date-picker.d.ts +27 -38
- package/dist/definition-list.d.ts +16 -22
- package/dist/dialog.d.ts +58 -74
- package/dist/diff-view.d.ts +41 -54
- package/dist/digits.d.ts +13 -17
- package/dist/directory-tree.d.ts +20 -27
- package/dist/divider.d.ts +20 -28
- package/dist/drawer.d.ts +24 -32
- package/dist/file-change.d.ts +18 -24
- package/dist/file-picker-entry.d.ts +1 -1
- package/dist/form.d.ts +34 -41
- package/dist/gauge.d.ts +40 -51
- package/dist/gradient.d.ts +21 -25
- package/dist/grid.d.ts +19 -25
- package/dist/heading.d.ts +12 -17
- package/dist/heatmap.d.ts +27 -37
- package/dist/help.d.ts +27 -34
- package/dist/histogram.d.ts +27 -37
- package/dist/image.d.ts +11 -14
- package/dist/index.d.ts +6 -6
- package/dist/json.d.ts +23 -30
- package/dist/kbd.d.ts +14 -18
- package/dist/line-chart.d.ts +40 -49
- package/dist/link.d.ts +24 -28
- package/dist/loading-indicator.d.ts +11 -15
- package/dist/log.d.ts +14 -19
- package/dist/markdown.d.ts +22 -27
- package/dist/masked-input.d.ts +23 -31
- package/dist/menu.d.ts +32 -40
- package/dist/message-bubble.d.ts +16 -23
- package/dist/model-badge.d.ts +16 -22
- package/dist/model-selector.d.ts +19 -26
- package/dist/multi-progress.d.ts +22 -29
- package/dist/multi-select.d.ts +25 -35
- package/dist/notification-badge.d.ts +21 -28
- package/dist/number-input.d.ts +38 -52
- package/dist/operation-tree.d.ts +22 -25
- package/dist/option-list.d.ts +17 -23
- package/dist/ordered-list.d.ts +9 -11
- package/dist/packem_shared/{controlled-scroll-view.d-vF4wevEJ.d.ts → controlled-scroll-view.d-D3kZZzjI.d.ts} +8 -19
- package/dist/packem_shared/file-picker.d-CH7pccC7.d.ts +92 -0
- package/dist/packem_shared/{scroll-bar-box.d-DSBbBsRc.d.ts → scroll-bar-box.d-CpTYEcTZ.d.ts} +1 -18
- package/dist/packem_shared/{scroll-list.d-BP0UZSY4.d.ts → scroll-list.d-CPCF0RwC.d.ts} +1 -1
- package/dist/packem_shared/scroll-view.d-GZcgAHl4.d.ts +98 -0
- package/dist/packem_shared/{use-tree-view.d-dXTKoDPM.d.ts → use-tree-view.d-DeMQ6G2r.d.ts} +115 -151
- package/dist/paginator.d.ts +28 -38
- package/dist/paragraph.d.ts +15 -21
- package/dist/path-input.d.ts +29 -40
- package/dist/pie-chart.d.ts +21 -27
- package/dist/placeholder.d.ts +26 -34
- package/dist/popover.d.ts +20 -27
- package/dist/progress-bar.d.ts +25 -33
- package/dist/progress-circle.d.ts +27 -36
- package/dist/qr-code.d.ts +21 -27
- package/dist/radio-group.d.ts +30 -41
- package/dist/scatter-plot.d.ts +5 -16
- package/dist/scroll-bar-box.d.ts +1 -1
- package/dist/scroll-list.d.ts +2 -2
- package/dist/scroll-view.d.ts +1 -1
- package/dist/search-input.d.ts +23 -32
- package/dist/select-input-indicator.d.ts +15 -19
- package/dist/select-input-item.d.ts +18 -24
- package/dist/select-input.d.ts +49 -62
- package/dist/shimmer-text.d.ts +24 -30
- package/dist/sidebar.d.ts +21 -28
- package/dist/slider.d.ts +50 -66
- package/dist/sparkline.d.ts +19 -25
- package/dist/spinner.d.ts +7 -9
- package/dist/status-line.d.ts +14 -20
- package/dist/status-message.d.ts +7 -10
- package/dist/stepper.d.ts +18 -24
- package/dist/stopwatch.d.ts +24 -31
- package/dist/streaming-text.d.ts +20 -27
- package/dist/switch.d.ts +23 -32
- package/dist/tab.d.ts +8 -10
- package/dist/table.d.ts +40 -41
- package/dist/tabs.d.ts +50 -61
- package/dist/tag-input.d.ts +30 -42
- package/dist/tag.d.ts +14 -19
- package/dist/text-input.d.ts +21 -29
- package/dist/textarea.d.ts +32 -43
- package/dist/thinking-block.d.ts +25 -34
- package/dist/time-picker.d.ts +27 -37
- package/dist/timer.d.ts +28 -37
- package/dist/toast.d.ts +20 -28
- package/dist/token-usage.d.ts +23 -30
- package/dist/tool-call.d.ts +14 -19
- package/dist/tooltip.d.ts +19 -25
- package/dist/transition.d.ts +40 -48
- package/dist/tree-select.d.ts +25 -35
- package/dist/tree-view-entry.d.ts +1 -1
- package/dist/unordered-list.d.ts +12 -15
- package/dist/use-linked-scroll.d.ts +27 -27
- package/package.json +2 -2
- package/dist/packem_shared/file-picker.d-Cie6aAMD.d.ts +0 -104
- package/dist/packem_shared/scroll-view.d-BqKpI-F-.d.ts +0 -119
package/dist/pie-chart.d.ts
CHANGED
|
@@ -3,48 +3,42 @@ import { ReactElement } from 'react';
|
|
|
3
3
|
import { LiteralUnion } from 'type-fest';
|
|
4
4
|
type PieSlice = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* Per-slice color override. Falls back to the chart palette.
|
|
7
|
+
*/
|
|
8
8
|
readonly color?: LiteralUnion<AnsiColors, string>;
|
|
9
9
|
readonly label?: string;
|
|
10
10
|
readonly value: number;
|
|
11
11
|
};
|
|
12
12
|
type Props = {
|
|
13
13
|
/**
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
* Slices to render. Non-positive values are ignored.
|
|
15
|
+
*/
|
|
16
16
|
readonly data: ReadonlyArray<PieSlice>;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
* Format a slice's legend value. Defaults to `value (percent%)`.
|
|
19
|
+
*/
|
|
20
20
|
readonly formatLegend?: (slice: PieSlice, percent: number) => string;
|
|
21
21
|
/**
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
* Fallback palette cycled through when a slice has no color.
|
|
23
|
+
* @default ["cyan", "magenta", "yellow", "green", "blue", "red"]
|
|
24
|
+
*/
|
|
25
25
|
readonly palette?: ReadonlyArray<LiteralUnion<AnsiColors, string>>;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
* Render a legend with per-slice values and percentages.
|
|
28
|
+
* @default true
|
|
29
|
+
*/
|
|
30
30
|
readonly showLegend?: boolean;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
* Diameter of the disc in character rows. Width is derived to keep the
|
|
33
|
+
* circle roughly round given the 2x4 braille cell aspect.
|
|
34
|
+
* @default 8
|
|
35
|
+
*/
|
|
36
36
|
readonly size?: number;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
* A filled pie chart rendered at 2x4 braille sub-cell resolution. Each pixel of
|
|
40
|
-
* the disc is assigned to the slice whose angular wedge contains it, so slices
|
|
41
|
-
* keep clean colors. An optional legend lists values and percentages.
|
|
42
|
-
*/
|
|
43
|
-
declare function PieChart({
|
|
44
|
-
data,
|
|
45
|
-
formatLegend,
|
|
46
|
-
palette,
|
|
47
|
-
showLegend,
|
|
48
|
-
size
|
|
49
|
-
}: Props): ReactElement;
|
|
39
|
+
* A filled pie chart rendered at 2x4 braille sub-cell resolution. Each pixel of
|
|
40
|
+
* the disc is assigned to the slice whose angular wedge contains it, so slices
|
|
41
|
+
* keep clean colors. An optional legend lists values and percentages.
|
|
42
|
+
*/
|
|
43
|
+
declare function PieChart({ data, formatLegend, palette, showLegend, size }: Props): ReactElement;
|
|
50
44
|
export { PieChart, type Props as PieChartProps, PieSlice, Props, PieChart as default };
|
package/dist/placeholder.d.ts
CHANGED
|
@@ -3,53 +3,45 @@ import { ReactElement } from 'react';
|
|
|
3
3
|
import { LiteralUnion } from 'type-fest';
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Whether to pulse the skeleton blocks (shimmer).
|
|
7
|
+
* @default true
|
|
8
|
+
*/
|
|
9
9
|
readonly animated?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* Glyph repeated to fill each placeholder block.
|
|
12
|
+
* @default "█" (full block)
|
|
13
|
+
*/
|
|
14
14
|
readonly character?: string;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
* Block color.
|
|
17
|
+
* @default "gray"
|
|
18
|
+
*/
|
|
19
19
|
readonly color?: LiteralUnion<AnsiColors, string>;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
* Milliseconds between pulses.
|
|
22
|
+
* @default 500
|
|
23
|
+
*/
|
|
24
24
|
readonly interval?: number;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
* Number of skeleton rows to render.
|
|
27
|
+
* @default 3
|
|
28
|
+
*/
|
|
29
29
|
readonly rows?: number;
|
|
30
30
|
/**
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
* Total width reference. When omitted, the block flexes to fill its
|
|
32
|
+
* parent.
|
|
33
|
+
*/
|
|
34
34
|
readonly width?: number;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
* Relative widths of each row (0–1). The list is sampled cyclically.
|
|
37
|
+
* @default [1, 0.85, 0.6]
|
|
38
|
+
*/
|
|
39
39
|
readonly widths?: ReadonlyArray<number>;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
|
-
* Skeleton loading indicator. Renders a stack of solid blocks whose widths
|
|
43
|
-
* vary to mimic text placeholders. Pair with `async` data fetching.
|
|
44
|
-
* @returns A `ReactElement` rendering the skeleton rows.
|
|
45
|
-
*/
|
|
46
|
-
declare function Placeholder({
|
|
47
|
-
animated,
|
|
48
|
-
character,
|
|
49
|
-
color,
|
|
50
|
-
interval,
|
|
51
|
-
rows,
|
|
52
|
-
width,
|
|
53
|
-
widths
|
|
54
|
-
}: Props): ReactElement;
|
|
42
|
+
* Skeleton loading indicator. Renders a stack of solid blocks whose widths
|
|
43
|
+
* vary to mimic text placeholders. Pair with `async` data fetching.
|
|
44
|
+
* @returns A `ReactElement` rendering the skeleton rows.
|
|
45
|
+
*/
|
|
46
|
+
declare function Placeholder({ animated, character, color, interval, rows, width, widths }: Props): ReactElement;
|
|
55
47
|
export { Placeholder, type Props as PlaceholderProps, Props, Placeholder as default };
|
package/dist/popover.d.ts
CHANGED
|
@@ -3,44 +3,37 @@ import { ReactNode, ReactElement } from 'react';
|
|
|
3
3
|
import { LiteralUnion } from 'type-fest';
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Accent color for the content border.
|
|
7
|
+
* @default "blue"
|
|
8
|
+
*/
|
|
9
9
|
readonly accentColor?: LiteralUnion<AnsiColors, string>;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* The trigger element the popover is anchored to.
|
|
12
|
+
*/
|
|
13
13
|
readonly anchor: ReactNode;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* The floating content, shown in a bordered box while open.
|
|
16
|
+
*/
|
|
17
17
|
readonly children: ReactNode;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Whether the popover content is shown.
|
|
20
|
+
*/
|
|
21
21
|
readonly isOpen: boolean;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
* Fires when Escape is pressed while open.
|
|
24
|
+
*/
|
|
25
25
|
readonly onClose?: () => void;
|
|
26
26
|
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
* Whether the content sits above or below the anchor.
|
|
28
|
+
* @default "bottom"
|
|
29
|
+
*/
|
|
30
30
|
readonly placement?: "bottom" | "top";
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
|
-
* Floating content anchored to a trigger element. The anchor always renders;
|
|
34
|
-
* the bordered content appears above or below it while `isOpen`, and Escape
|
|
35
|
-
* fires `onClose`. Terminals have no true overlay layer, so the content takes
|
|
36
|
-
* layout space rather than floating over other content.
|
|
37
|
-
*/
|
|
38
|
-
declare function Popover({
|
|
39
|
-
accentColor,
|
|
40
|
-
anchor,
|
|
41
|
-
children,
|
|
42
|
-
isOpen,
|
|
43
|
-
onClose,
|
|
44
|
-
placement
|
|
45
|
-
}: Props): ReactElement;
|
|
33
|
+
* Floating content anchored to a trigger element. The anchor always renders;
|
|
34
|
+
* the bordered content appears above or below it while `isOpen`, and Escape
|
|
35
|
+
* fires `onClose`. Terminals have no true overlay layer, so the content takes
|
|
36
|
+
* layout space rather than floating over other content.
|
|
37
|
+
*/
|
|
38
|
+
declare function Popover({ accentColor, anchor, children, isOpen, onClose, placement }: Props): ReactElement;
|
|
46
39
|
export { Popover, type Props as PopoverProps, Props, Popover as default };
|
package/dist/progress-bar.d.ts
CHANGED
|
@@ -4,48 +4,40 @@ type Props = {
|
|
|
4
4
|
/** Fill glyph repeated across the completed portion of the progress bar. Defaults to "█". */
|
|
5
5
|
readonly character?: string;
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
* Override the terminal width used for calculation.
|
|
8
|
+
* When 0, uses the actual terminal width.
|
|
9
|
+
* @default 0
|
|
10
|
+
*/
|
|
11
11
|
readonly columns?: number;
|
|
12
12
|
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
* Number of columns reserved on the left side (e.g. for labels).
|
|
14
|
+
* @default 0
|
|
15
|
+
*/
|
|
16
16
|
readonly left?: number;
|
|
17
17
|
/**
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
* Completion percentage between 0 and 1.
|
|
19
|
+
* @default 1
|
|
20
|
+
*/
|
|
21
21
|
readonly percent?: number;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
* Number of columns reserved on the right side (e.g. for percentage text).
|
|
24
|
+
* @default 0
|
|
25
|
+
*/
|
|
26
26
|
readonly right?: number;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
* Whether to pad the remaining space with whitespace.
|
|
29
|
+
* Useful when rendering the bar over a background color.
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
32
|
readonly rightPad?: boolean;
|
|
33
33
|
} & Omit<Props$1, "children">;
|
|
34
34
|
/**
|
|
35
|
-
* A terminal progress bar that fills proportionally to a percentage value.
|
|
36
|
-
*
|
|
37
|
-
* ```tsx
|
|
38
|
-
* <ProgressBar percent={0.5} />
|
|
39
|
-
* <ProgressBar percent={0.75} color="green" left={10} right={5} />
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare function ProgressBar({
|
|
43
|
-
character,
|
|
44
|
-
columns: columnsProp,
|
|
45
|
-
left,
|
|
46
|
-
percent,
|
|
47
|
-
right,
|
|
48
|
-
rightPad,
|
|
49
|
-
...textProps
|
|
50
|
-
}: Props): ReactElement;
|
|
35
|
+
* A terminal progress bar that fills proportionally to a percentage value.
|
|
36
|
+
*
|
|
37
|
+
* ```tsx
|
|
38
|
+
* <ProgressBar percent={0.5} />
|
|
39
|
+
* <ProgressBar percent={0.75} color="green" left={10} right={5} />
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
declare function ProgressBar({ character, columns: columnsProp, left, percent, right, rightPad, ...textProps }: Props): ReactElement;
|
|
51
43
|
export { ProgressBar, type Props as ProgressBarProps, Props, ProgressBar as default };
|
|
@@ -3,57 +3,48 @@ import { ReactElement } from 'react';
|
|
|
3
3
|
import { LiteralUnion } from 'type-fest';
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Color of the filled portion of the ring.
|
|
7
|
+
* @default "cyan"
|
|
8
|
+
*/
|
|
9
9
|
readonly color?: LiteralUnion<AnsiColors, string>;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Format the centered readout. Defaults to a rounded percentage.
|
|
12
|
+
*/
|
|
13
13
|
readonly formatValue?: (ratio: number) => string;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
* Upper bound of the range.
|
|
16
|
+
* @default 100
|
|
17
|
+
*/
|
|
18
18
|
readonly max?: number;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* Lower bound of the range.
|
|
21
|
+
* @default 0
|
|
22
|
+
*/
|
|
23
23
|
readonly min?: number;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
* Show the readout in the middle of the ring.
|
|
26
|
+
* @default true
|
|
27
|
+
*/
|
|
28
28
|
readonly showValue?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
* Diameter of the ring in character rows.
|
|
31
|
+
* @default 8
|
|
32
|
+
*/
|
|
33
33
|
readonly size?: number;
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
* Color of the unfilled track behind the ring.
|
|
36
|
+
* @default "gray"
|
|
37
|
+
*/
|
|
38
38
|
readonly trackColor?: LiteralUnion<AnsiColors, string>;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* Current value, clamped into `[min, max]`.
|
|
41
|
+
*/
|
|
42
42
|
readonly value: number;
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* A circular progress ring rendered at 2x4 braille sub-cell resolution. The
|
|
46
|
-
* filled arc grows clockwise from the top in proportion to `value`, with an
|
|
47
|
-
* optional centered readout.
|
|
48
|
-
*/
|
|
49
|
-
declare function ProgressCircle({
|
|
50
|
-
color,
|
|
51
|
-
formatValue,
|
|
52
|
-
max,
|
|
53
|
-
min,
|
|
54
|
-
showValue,
|
|
55
|
-
size,
|
|
56
|
-
trackColor,
|
|
57
|
-
value
|
|
58
|
-
}: Props): ReactElement;
|
|
45
|
+
* A circular progress ring rendered at 2x4 braille sub-cell resolution. The
|
|
46
|
+
* filled arc grows clockwise from the top in proportion to `value`, with an
|
|
47
|
+
* optional centered readout.
|
|
48
|
+
*/
|
|
49
|
+
declare function ProgressCircle({ color, formatValue, max, min, showValue, size, trackColor, value }: Props): ReactElement;
|
|
59
50
|
export { ProgressCircle, type Props as ProgressCircleProps, Props, ProgressCircle as default };
|
package/dist/qr-code.d.ts
CHANGED
|
@@ -4,42 +4,36 @@ import { LiteralUnion } from 'type-fest';
|
|
|
4
4
|
type Color = LiteralUnion<AnsiColors, string>;
|
|
5
5
|
type Props = {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
* Color of the "dark" modules.
|
|
8
|
+
* @default "black"
|
|
9
|
+
*/
|
|
10
10
|
readonly darkColor?: Color;
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* Color of the "light" modules and quiet zone.
|
|
13
|
+
* @default "white"
|
|
14
|
+
*/
|
|
15
15
|
readonly lightColor?: Color;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
* A pre-encoded square grid of modules (`true` = dark). Provide this to
|
|
18
|
+
* render without the optional `qrcode` peer; it takes precedence over
|
|
19
|
+
* `value`.
|
|
20
|
+
*/
|
|
21
21
|
readonly matrix?: ReadonlyArray<ReadonlyArray<boolean>>;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
* Width of the light border around the code, in modules.
|
|
24
|
+
* @default 2
|
|
25
|
+
*/
|
|
26
26
|
readonly quietZone?: number;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
* A string to encode. Requires the optional `qrcode` peer dependency; when
|
|
29
|
+
* absent, provide `matrix` instead.
|
|
30
|
+
*/
|
|
31
31
|
readonly value?: string;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* Render a QR code from a module matrix using the upper-half-block technique,
|
|
35
|
-
* so two module rows share one character row. Pass `matrix` for a self-contained
|
|
36
|
-
* render, or `value` to encode a string via the optional `qrcode` peer.
|
|
37
|
-
*/
|
|
38
|
-
declare function QrCode({
|
|
39
|
-
darkColor,
|
|
40
|
-
lightColor,
|
|
41
|
-
matrix,
|
|
42
|
-
quietZone,
|
|
43
|
-
value
|
|
44
|
-
}: Props): ReactElement;
|
|
34
|
+
* Render a QR code from a module matrix using the upper-half-block technique,
|
|
35
|
+
* so two module rows share one character row. Pass `matrix` for a self-contained
|
|
36
|
+
* render, or `value` to encode a string via the optional `qrcode` peer.
|
|
37
|
+
*/
|
|
38
|
+
declare function QrCode({ darkColor, lightColor, matrix, quietZone, value }: Props): ReactElement;
|
|
45
39
|
export { Props, QrCode, type Props as QrCodeProps, QrCode as default };
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -9,66 +9,55 @@ type RadioOption = {
|
|
|
9
9
|
};
|
|
10
10
|
type Props = {
|
|
11
11
|
/**
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
* Accent color for the focused and selected indicator.
|
|
13
|
+
* @default "blue"
|
|
14
|
+
*/
|
|
15
15
|
readonly accentColor?: LiteralUnion<AnsiColors, string>;
|
|
16
16
|
/**
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
* Auto-focus when mounted.
|
|
18
|
+
*/
|
|
19
19
|
readonly autoFocus?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
21
|
+
* When true, moving focus with arrow keys immediately updates the selected
|
|
22
|
+
* value (and fires `onChange`). When false, focus moves independently and
|
|
23
|
+
* selection commits only on Space or Enter.
|
|
24
|
+
* @default true
|
|
25
|
+
*/
|
|
26
26
|
readonly commitOnNavigate?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Initial selected value when uncontrolled.
|
|
29
|
+
*/
|
|
30
30
|
readonly defaultValue?: string;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Disable input and dim labels.
|
|
33
|
+
*/
|
|
34
34
|
readonly isDisabled?: boolean;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* Called when selection changes.
|
|
37
|
+
*/
|
|
38
38
|
readonly onChange?: (value: string) => void;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
* Called when the user submits by pressing Enter.
|
|
41
|
+
*/
|
|
42
42
|
readonly onSubmit?: (value: string) => void;
|
|
43
43
|
/**
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
* Available options.
|
|
45
|
+
*/
|
|
46
46
|
readonly options: ReadonlyArray<RadioOption>;
|
|
47
47
|
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
* Orientation of options.
|
|
49
|
+
* @default "vertical"
|
|
50
|
+
*/
|
|
51
51
|
readonly orientation?: "horizontal" | "vertical";
|
|
52
52
|
/**
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
* Controlled selected value.
|
|
54
|
+
*/
|
|
55
55
|
readonly value?: string;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
|
-
* Single-choice radio group with keyboard navigation. By default, navigation
|
|
59
|
-
* commits selection; set `commitOnNavigate={false}` to require an explicit
|
|
60
|
-
* Space/Enter commit.
|
|
61
|
-
*/
|
|
62
|
-
declare function RadioGroup({
|
|
63
|
-
accentColor,
|
|
64
|
-
autoFocus,
|
|
65
|
-
commitOnNavigate,
|
|
66
|
-
defaultValue,
|
|
67
|
-
isDisabled,
|
|
68
|
-
onChange,
|
|
69
|
-
onSubmit,
|
|
70
|
-
options,
|
|
71
|
-
orientation,
|
|
72
|
-
value
|
|
73
|
-
}: Props): ReactElement;
|
|
58
|
+
* Single-choice radio group with keyboard navigation. By default, navigation
|
|
59
|
+
* commits selection; set `commitOnNavigate={false}` to require an explicit
|
|
60
|
+
* Space/Enter commit.
|
|
61
|
+
*/
|
|
62
|
+
declare function RadioGroup({ accentColor, autoFocus, commitOnNavigate, defaultValue, isDisabled, onChange, onSubmit, options, orientation, value }: Props): ReactElement;
|
|
74
63
|
export { Props, RadioGroup, type Props as RadioGroupProps, RadioOption, RadioGroup as default };
|
package/dist/scatter-plot.d.ts
CHANGED
|
@@ -16,20 +16,9 @@ type Props = {
|
|
|
16
16
|
readonly width?: number;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* Scatter plot rendered on a braille pixel grid. Each sample lights one
|
|
20
|
-
* sub-cell pixel; overlapping points merge into denser braille glyphs.
|
|
21
|
-
* @returns A `ReactElement` containing the plot and an optional legend.
|
|
22
|
-
*/
|
|
23
|
-
declare function ScatterPlot({
|
|
24
|
-
axisColor,
|
|
25
|
-
height,
|
|
26
|
-
maxX,
|
|
27
|
-
maxY,
|
|
28
|
-
minX,
|
|
29
|
-
minY,
|
|
30
|
-
palette,
|
|
31
|
-
series,
|
|
32
|
-
showLegend,
|
|
33
|
-
width
|
|
34
|
-
}: Props): ReactElement;
|
|
19
|
+
* Scatter plot rendered on a braille pixel grid. Each sample lights one
|
|
20
|
+
* sub-cell pixel; overlapping points merge into denser braille glyphs.
|
|
21
|
+
* @returns A `ReactElement` containing the plot and an optional legend.
|
|
22
|
+
*/
|
|
23
|
+
declare function ScatterPlot({ axisColor, height, maxX, maxY, minX, minY, palette, series, showLegend, width }: Props): ReactElement;
|
|
35
24
|
export { Props, ScatterPlot, type Props as ScatterPlotProps, ScatterPlot as default };
|
package/dist/scroll-bar-box.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { S as ScrollBarBox, type a as ScrollBarBoxProps } from "./packem_shared/scroll-bar-box.d-
|
|
1
|
+
export { S as ScrollBarBox, type a as ScrollBarBoxProps } from "./packem_shared/scroll-bar-box.d-CpTYEcTZ.js";
|
|
2
2
|
import '@visulima/tui/components/box';
|
|
3
3
|
import 'react';
|
package/dist/scroll-list.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { type S as ScrollAlignment, a as ScrollList, type b as ScrollListProps, type c as ScrollListRef } from "./packem_shared/scroll-list.d-
|
|
1
|
+
export { type S as ScrollAlignment, a as ScrollList, type b as ScrollListProps, type c as ScrollListRef } from "./packem_shared/scroll-list.d-CPCF0RwC.js";
|
|
2
2
|
import 'react';
|
|
3
|
-
import "./packem_shared/scroll-view.d-
|
|
3
|
+
import "./packem_shared/scroll-view.d-GZcgAHl4.js";
|
|
4
4
|
import '@visulima/tui/components/box';
|
package/dist/scroll-view.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { S as ScrollView, type a as ScrollViewProps, type b as ScrollViewRef } from "./packem_shared/scroll-view.d-
|
|
1
|
+
export { S as ScrollView, type a as ScrollViewProps, type b as ScrollViewRef } from "./packem_shared/scroll-view.d-GZcgAHl4.js";
|
|
2
2
|
import '@visulima/tui/components/box';
|
|
3
3
|
import 'react';
|
package/dist/search-input.d.ts
CHANGED
|
@@ -3,53 +3,44 @@ import { ReactNode, ReactElement } from 'react';
|
|
|
3
3
|
import { LiteralUnion } from 'type-fest';
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Color of the accent elements (border, icon).
|
|
7
|
+
* @default "blue"
|
|
8
|
+
*/
|
|
9
9
|
readonly accentColor?: LiteralUnion<AnsiColors, string>;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Initial value.
|
|
12
|
+
*/
|
|
13
13
|
readonly defaultValue?: string;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
* Node rendered before the input as a search affordance.
|
|
16
|
+
* @default "⌕" (telephone recorder)
|
|
17
|
+
*/
|
|
18
18
|
readonly icon?: ReactNode;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
* Disable the input.
|
|
21
|
+
*/
|
|
22
22
|
readonly isDisabled?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* Fired whenever the value changes.
|
|
25
|
+
*/
|
|
26
26
|
readonly onChange?: (value: string) => void;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Fired when the user presses Enter.
|
|
29
|
+
*/
|
|
30
30
|
readonly onSubmit?: (value: string) => void;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
* Placeholder text shown when the input is empty.
|
|
33
|
+
* @default "Search..."
|
|
34
|
+
*/
|
|
35
35
|
readonly placeholder?: string;
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
* Autocomplete suggestions.
|
|
38
|
+
*/
|
|
39
39
|
readonly suggestions?: ReadonlyArray<string>;
|
|
40
40
|
};
|
|
41
41
|
/**
|
|
42
|
-
* Search-styled text input with an icon and bordered container.
|
|
43
|
-
* @returns A `ReactElement` wrapping `TextInput` with an icon column.
|
|
44
|
-
*/
|
|
45
|
-
declare function SearchInput({
|
|
46
|
-
accentColor,
|
|
47
|
-
defaultValue,
|
|
48
|
-
icon,
|
|
49
|
-
isDisabled,
|
|
50
|
-
onChange,
|
|
51
|
-
onSubmit,
|
|
52
|
-
placeholder,
|
|
53
|
-
suggestions
|
|
54
|
-
}: Props): ReactElement;
|
|
42
|
+
* Search-styled text input with an icon and bordered container.
|
|
43
|
+
* @returns A `ReactElement` wrapping `TextInput` with an icon column.
|
|
44
|
+
*/
|
|
45
|
+
declare function SearchInput({ accentColor, defaultValue, icon, isDisabled, onChange, onSubmit, placeholder, suggestions }: Props): ReactElement;
|
|
55
46
|
export { Props, SearchInput, type Props as SearchInputProps, SearchInput as default };
|