@visulima/tui-kit 1.0.0 → 1.0.2
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 +18 -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 +6 -6
- 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/tag-input.d.ts
CHANGED
|
@@ -3,69 +3,57 @@ import { ReactElement } from 'react';
|
|
|
3
3
|
import { LiteralUnion } from 'type-fest';
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Accent color for the chips and focused border.
|
|
7
|
+
* @default "blue"
|
|
8
|
+
*/
|
|
9
9
|
readonly accentColor?: LiteralUnion<AnsiColors, string>;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Auto-focus on mount.
|
|
12
|
+
*/
|
|
13
13
|
readonly autoFocus?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
* Reject duplicate tags (case-sensitive).
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
18
|
readonly dedupe?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
* Tags present when uncontrolled.
|
|
21
|
+
*/
|
|
22
22
|
readonly defaultValue?: ReadonlyArray<string>;
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* Disable input and dim the display.
|
|
25
|
+
*/
|
|
26
26
|
readonly isDisabled?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Maximum number of tags. Further input is ignored once reached.
|
|
29
|
+
*/
|
|
30
30
|
readonly max?: number;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Fires whenever the set of tags changes.
|
|
33
|
+
*/
|
|
34
34
|
readonly onChange?: (tags: ReadonlyArray<string>) => void;
|
|
35
35
|
/**
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
* Fires on Enter with an empty draft (i.e. "done adding tags").
|
|
37
|
+
*/
|
|
38
38
|
readonly onSubmit?: (tags: ReadonlyArray<string>) => void;
|
|
39
39
|
/**
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
* Placeholder shown when there are no tags and no draft.
|
|
41
|
+
* @default "Add tags…"
|
|
42
|
+
*/
|
|
43
43
|
readonly placeholder?: string;
|
|
44
44
|
/**
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
* Besides Enter, which typed characters commit the current draft (default comma and space).
|
|
46
|
+
*/
|
|
47
47
|
readonly separators?: ReadonlyArray<string>;
|
|
48
48
|
/**
|
|
49
|
-
|
|
50
|
-
|
|
49
|
+
* Controlled tags. When provided, `defaultValue` is ignored.
|
|
50
|
+
*/
|
|
51
51
|
readonly value?: ReadonlyArray<string>;
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
|
-
* A chip-style multi-value input. Type a tag and press Enter (or a separator)
|
|
55
|
-
* to commit it; Backspace on an empty draft removes the last tag. Renders each
|
|
56
|
-
* committed value as a colored chip followed by the live draft.
|
|
57
|
-
*/
|
|
58
|
-
declare function TagInput({
|
|
59
|
-
accentColor,
|
|
60
|
-
autoFocus,
|
|
61
|
-
dedupe,
|
|
62
|
-
defaultValue,
|
|
63
|
-
isDisabled,
|
|
64
|
-
max,
|
|
65
|
-
onChange,
|
|
66
|
-
onSubmit,
|
|
67
|
-
placeholder,
|
|
68
|
-
separators,
|
|
69
|
-
value: controlledValue
|
|
70
|
-
}: Props): ReactElement;
|
|
54
|
+
* A chip-style multi-value input. Type a tag and press Enter (or a separator)
|
|
55
|
+
* to commit it; Backspace on an empty draft removes the last tag. Renders each
|
|
56
|
+
* committed value as a colored chip followed by the live draft.
|
|
57
|
+
*/
|
|
58
|
+
declare function TagInput({ accentColor, autoFocus, dedupe, defaultValue, isDisabled, max, onChange, onSubmit, placeholder, separators, value: controlledValue }: Props): ReactElement;
|
|
71
59
|
export { Props, TagInput, type Props as TagInputProps, TagInput as default };
|
package/dist/tag.d.ts
CHANGED
|
@@ -4,32 +4,27 @@ import { LiteralUnion } from 'type-fest';
|
|
|
4
4
|
type TagVariant = "outline" | "solid" | "subtle";
|
|
5
5
|
type Props = {
|
|
6
6
|
/**
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
* Tag content.
|
|
8
|
+
*/
|
|
9
9
|
readonly children: ReactNode;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* Base color.
|
|
12
|
+
* @default "blue"
|
|
13
|
+
*/
|
|
14
14
|
readonly color?: LiteralUnion<AnsiColors, string>;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* Optional symbol rendered before the label (e.g. `●`, `✔`, `★`).
|
|
17
|
+
*/
|
|
18
18
|
readonly icon?: ReactNode;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* Visual style.
|
|
21
|
+
* @default "subtle"
|
|
22
|
+
*/
|
|
23
23
|
readonly variant?: TagVariant;
|
|
24
24
|
};
|
|
25
25
|
/**
|
|
26
|
-
* Render a short pill-shaped label.
|
|
27
|
-
* @returns A `ReactElement` rendering the tag in the requested variant.
|
|
28
|
-
*/
|
|
29
|
-
declare function Tag({
|
|
30
|
-
children,
|
|
31
|
-
color,
|
|
32
|
-
icon,
|
|
33
|
-
variant
|
|
34
|
-
}: Props): ReactElement;
|
|
26
|
+
* Render a short pill-shaped label.
|
|
27
|
+
* @returns A `ReactElement` rendering the tag in the requested variant.
|
|
28
|
+
*/
|
|
29
|
+
declare function Tag({ children, color, icon, variant }: Props): ReactElement;
|
|
35
30
|
export { Props, Tag, type Props as TagProps, TagVariant, Tag as default };
|
package/dist/text-input.d.ts
CHANGED
|
@@ -3,46 +3,38 @@ type Props = {
|
|
|
3
3
|
/** @default "" */
|
|
4
4
|
readonly defaultValue?: string;
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* When true, all input is ignored and text is dimmed.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
9
|
readonly isDisabled?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* When true, renders asterisks instead of the actual characters.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
14
|
readonly mask?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* Fires on every keystroke with the updated text.
|
|
17
|
+
*/
|
|
18
18
|
readonly onChange?: (value: string) => void;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
* Fires when the user presses Enter.
|
|
21
|
+
*/
|
|
22
22
|
readonly onSubmit?: (value: string) => void;
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* Greyed-out text shown when the input is empty.
|
|
25
|
+
*/
|
|
26
26
|
readonly placeholder?: string;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
* Autocomplete candidates. The first case-sensitive prefix match is shown
|
|
29
|
+
* dimmed after the current input. Press right-arrow or Enter to accept.
|
|
30
|
+
*/
|
|
31
31
|
readonly suggestions?: ReadonlyArray<string>;
|
|
32
32
|
};
|
|
33
33
|
/**
|
|
34
|
-
* A single-line text input with cursor navigation, optional placeholder,
|
|
35
|
-
* autocomplete suggestions, and password masking.
|
|
36
|
-
*
|
|
37
|
-
* Supports arrow keys, Home/End, Ctrl+A/E, Ctrl+U/K/W, Backspace, Delete.
|
|
38
|
-
*/
|
|
39
|
-
declare function TextInput({
|
|
40
|
-
defaultValue,
|
|
41
|
-
isDisabled,
|
|
42
|
-
mask,
|
|
43
|
-
onChange,
|
|
44
|
-
onSubmit,
|
|
45
|
-
placeholder,
|
|
46
|
-
suggestions
|
|
47
|
-
}: Props): ReactElement;
|
|
34
|
+
* A single-line text input with cursor navigation, optional placeholder,
|
|
35
|
+
* autocomplete suggestions, and password masking.
|
|
36
|
+
*
|
|
37
|
+
* Supports arrow keys, Home/End, Ctrl+A/E, Ctrl+U/K/W, Backspace, Delete.
|
|
38
|
+
*/
|
|
39
|
+
declare function TextInput({ defaultValue, isDisabled, mask, onChange, onSubmit, placeholder, suggestions }: Props): ReactElement;
|
|
48
40
|
export { Props, TextInput, type Props as TextInputProps, TextInput as default };
|
package/dist/textarea.d.ts
CHANGED
|
@@ -3,66 +3,55 @@ type Props = {
|
|
|
3
3
|
/** @default "" */
|
|
4
4
|
readonly defaultValue?: string;
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* When true, all input is ignored and text is dimmed.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
9
|
readonly isDisabled?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* When true, the component responds to keyboard input.
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
14
|
readonly isFocused?: boolean;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
* Maximum visible rows before viewport scrolling kicks in.
|
|
17
|
+
* When set, the textarea will grow from `rows` to `maxRows` before scrolling.
|
|
18
|
+
*/
|
|
19
19
|
readonly maxRows?: number;
|
|
20
20
|
/**
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
* Fires on every edit with the updated text.
|
|
22
|
+
*/
|
|
23
23
|
readonly onChange?: (value: string) => void;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
* Fires when the user presses Meta+Enter or Ctrl+Enter.
|
|
26
|
+
*/
|
|
27
27
|
readonly onSubmit?: (value: string) => void;
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
* Greyed-out text shown when the textarea is empty.
|
|
30
|
+
*/
|
|
31
31
|
readonly placeholder?: string;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
* Number of visible rows (viewport height).
|
|
34
|
+
* @default 5
|
|
35
|
+
*/
|
|
36
36
|
readonly rows?: number;
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
* Show line numbers in the left gutter.
|
|
39
|
+
* @default false
|
|
40
|
+
*/
|
|
41
41
|
readonly showLineNumbers?: boolean;
|
|
42
42
|
/**
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
* Number of spaces inserted for a Tab key press.
|
|
44
|
+
* @default 2
|
|
45
|
+
*/
|
|
46
46
|
readonly tabSize?: number;
|
|
47
47
|
};
|
|
48
48
|
/**
|
|
49
|
-
* A multi-line text input with cursor navigation, selection, clipboard, undo/redo,
|
|
50
|
-
* paste support, and viewport scrolling.
|
|
51
|
-
*
|
|
52
|
-
* ```tsx
|
|
53
|
-
* <Textarea defaultValue="Hello\nWorld" rows={10} onChange={setValue} onSubmit={handleSubmit} />
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
declare function Textarea({
|
|
57
|
-
defaultValue,
|
|
58
|
-
isDisabled,
|
|
59
|
-
isFocused,
|
|
60
|
-
maxRows,
|
|
61
|
-
onChange,
|
|
62
|
-
onSubmit,
|
|
63
|
-
placeholder,
|
|
64
|
-
rows,
|
|
65
|
-
showLineNumbers,
|
|
66
|
-
tabSize
|
|
67
|
-
}: Props): ReactElement;
|
|
49
|
+
* A multi-line text input with cursor navigation, selection, clipboard, undo/redo,
|
|
50
|
+
* paste support, and viewport scrolling.
|
|
51
|
+
*
|
|
52
|
+
* ```tsx
|
|
53
|
+
* <Textarea defaultValue="Hello\nWorld" rows={10} onChange={setValue} onSubmit={handleSubmit} />
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
declare function Textarea({ defaultValue, isDisabled, isFocused, maxRows, onChange, onSubmit, placeholder, rows, showLineNumbers, tabSize }: Props): ReactElement;
|
|
68
57
|
export { Props, Textarea, type Props as TextareaProps, Textarea as default };
|
package/dist/thinking-block.d.ts
CHANGED
|
@@ -3,55 +3,46 @@ import { ReactElement } from 'react';
|
|
|
3
3
|
import { LiteralUnion } from 'type-fest';
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Accent color for the header and border.
|
|
7
|
+
* @default "magenta"
|
|
8
|
+
*/
|
|
9
9
|
readonly accentColor?: LiteralUnion<AnsiColors, string>;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Auto-focus so Space/Enter can toggle the block.
|
|
12
|
+
*/
|
|
13
13
|
readonly autoFocus?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* The reasoning text.
|
|
16
|
+
*/
|
|
17
17
|
readonly children: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
* Start expanded when uncontrolled.
|
|
20
|
+
* @default true
|
|
21
|
+
*/
|
|
22
22
|
readonly defaultExpanded?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
* Controlled expanded state. When set, `defaultExpanded` is ignored.
|
|
25
|
+
*/
|
|
26
26
|
readonly expanded?: boolean;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
* Header label.
|
|
29
|
+
* @default "Thinking"
|
|
30
|
+
*/
|
|
31
31
|
readonly label?: string;
|
|
32
32
|
/**
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
* Fires when the expanded state toggles.
|
|
34
|
+
*/
|
|
35
35
|
readonly onToggle?: (expanded: boolean) => void;
|
|
36
36
|
/**
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
* Show a pulsing indicator to signal in-progress reasoning.
|
|
38
|
+
* @default false
|
|
39
|
+
*/
|
|
40
40
|
readonly streaming?: boolean;
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
|
-
* A collapsible block for an assistant's reasoning. The dimmed body is hidden
|
|
44
|
-
* when collapsed; Space or Enter toggles it while focused. Set `streaming` to
|
|
45
|
-
* mark reasoning still in progress.
|
|
46
|
-
*/
|
|
47
|
-
declare function ThinkingBlock({
|
|
48
|
-
accentColor,
|
|
49
|
-
autoFocus,
|
|
50
|
-
children,
|
|
51
|
-
defaultExpanded,
|
|
52
|
-
expanded: controlledExpanded,
|
|
53
|
-
label,
|
|
54
|
-
onToggle,
|
|
55
|
-
streaming
|
|
56
|
-
}: Props): ReactElement;
|
|
43
|
+
* A collapsible block for an assistant's reasoning. The dimmed body is hidden
|
|
44
|
+
* when collapsed; Space or Enter toggles it while focused. Set `streaming` to
|
|
45
|
+
* mark reasoning still in progress.
|
|
46
|
+
*/
|
|
47
|
+
declare function ThinkingBlock({ accentColor, autoFocus, children, defaultExpanded, expanded: controlledExpanded, label, onToggle, streaming }: Props): ReactElement;
|
|
57
48
|
export { Props, ThinkingBlock, type Props as ThinkingBlockProps, ThinkingBlock as default };
|
package/dist/time-picker.d.ts
CHANGED
|
@@ -8,60 +8,50 @@ type TimeValue = {
|
|
|
8
8
|
};
|
|
9
9
|
type Props = {
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
* Accent color for the focused segment.
|
|
12
|
+
* @default "blue"
|
|
13
|
+
*/
|
|
14
14
|
readonly accentColor?: LiteralUnion<AnsiColors, string>;
|
|
15
15
|
/**
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
* Auto-focus on mount.
|
|
17
|
+
*/
|
|
18
18
|
readonly autoFocus?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
* Initial value when uncontrolled.
|
|
21
|
+
* @default { hours: 0, minutes: 0 }
|
|
22
|
+
*/
|
|
23
23
|
readonly defaultValue?: TimeValue;
|
|
24
24
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
* Use a 12-hour clock with an AM/PM segment instead of 24-hour.
|
|
26
|
+
* @default false
|
|
27
|
+
*/
|
|
28
28
|
readonly hour12?: boolean;
|
|
29
29
|
/**
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
* Disable input and dim the display.
|
|
31
|
+
*/
|
|
32
32
|
readonly isDisabled?: boolean;
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Fires whenever any segment changes.
|
|
35
|
+
*/
|
|
36
36
|
readonly onChange?: (value: TimeValue) => void;
|
|
37
37
|
/**
|
|
38
|
-
|
|
39
|
-
|
|
38
|
+
* Fires on Enter.
|
|
39
|
+
*/
|
|
40
40
|
readonly onSubmit?: (value: TimeValue) => void;
|
|
41
41
|
/**
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
* Show a seconds segment.
|
|
43
|
+
* @default false
|
|
44
|
+
*/
|
|
45
45
|
readonly showSeconds?: boolean;
|
|
46
46
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
* Controlled value. When provided, `defaultValue` is ignored.
|
|
48
|
+
*/
|
|
49
49
|
readonly value?: TimeValue;
|
|
50
50
|
};
|
|
51
51
|
/**
|
|
52
|
-
* A keyboard-driven time input with independent hour/minute (and optional
|
|
53
|
-
* second) segments. ←/→ move between segments, ↑/↓ adjust the focused segment
|
|
54
|
-
* (wrapping), digits type directly, and Enter submits.
|
|
55
|
-
*/
|
|
56
|
-
declare function TimePicker({
|
|
57
|
-
accentColor,
|
|
58
|
-
autoFocus,
|
|
59
|
-
defaultValue,
|
|
60
|
-
hour12,
|
|
61
|
-
isDisabled,
|
|
62
|
-
onChange,
|
|
63
|
-
onSubmit,
|
|
64
|
-
showSeconds,
|
|
65
|
-
value: controlledValue
|
|
66
|
-
}: Props): ReactElement;
|
|
52
|
+
* A keyboard-driven time input with independent hour/minute (and optional
|
|
53
|
+
* second) segments. ←/→ move between segments, ↑/↓ adjust the focused segment
|
|
54
|
+
* (wrapping), digits type directly, and Enter submits.
|
|
55
|
+
*/
|
|
56
|
+
declare function TimePicker({ accentColor, autoFocus, defaultValue, hour12, isDisabled, onChange, onSubmit, showSeconds, value: controlledValue }: Props): ReactElement;
|
|
67
57
|
export { Props, TimePicker, type Props as TimePickerProps, TimeValue, TimePicker as default };
|
package/dist/timer.d.ts
CHANGED
|
@@ -3,57 +3,48 @@ import { Ref, ReactElement } from 'react';
|
|
|
3
3
|
type TimerRef = Omit<UseTimerResult, "isFinished" | "isRunning" | "remaining">;
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
* Whether to start the timer immediately.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
9
|
readonly autoStart?: boolean;
|
|
10
10
|
/**
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
* Make the rendered text bold.
|
|
12
|
+
*/
|
|
13
13
|
readonly bold?: boolean;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* Text color for the rendered time.
|
|
16
|
+
*/
|
|
17
17
|
readonly color?: string;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Total countdown duration in milliseconds.
|
|
20
|
+
*/
|
|
21
21
|
readonly duration: number;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
* Custom formatter for the remaining time.
|
|
24
|
+
* Receives remaining milliseconds, returns a display string.
|
|
25
|
+
* @default formatDuration (MM:SS or HH:MM:SS)
|
|
26
|
+
*/
|
|
27
27
|
readonly format?: (remaining: number) => string;
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
* Tick interval in milliseconds.
|
|
30
|
+
* @default 1000
|
|
31
|
+
*/
|
|
32
32
|
readonly interval?: number;
|
|
33
33
|
/**
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
* Called once when the timer reaches zero.
|
|
35
|
+
*/
|
|
36
36
|
readonly onTimeout?: () => void;
|
|
37
37
|
readonly ref?: Ref<TimerRef>;
|
|
38
38
|
};
|
|
39
39
|
/**
|
|
40
|
-
* A countdown timer component.
|
|
41
|
-
*
|
|
42
|
-
* Exposes `start`, `stop`, `toggle`, and `reset` methods via ref.
|
|
43
|
-
*
|
|
44
|
-
* ```tsx
|
|
45
|
-
* const ref = useRef<TimerRef>(null);
|
|
46
|
-
* <Timer ref={ref} duration={60_000} autoStart />
|
|
47
|
-
* ```
|
|
48
|
-
*/
|
|
49
|
-
declare const Timer: ({
|
|
50
|
-
autoStart,
|
|
51
|
-
bold,
|
|
52
|
-
color,
|
|
53
|
-
duration,
|
|
54
|
-
format,
|
|
55
|
-
interval,
|
|
56
|
-
onTimeout,
|
|
57
|
-
ref
|
|
58
|
-
}: Props) => ReactElement;
|
|
40
|
+
* A countdown timer component.
|
|
41
|
+
*
|
|
42
|
+
* Exposes `start`, `stop`, `toggle`, and `reset` methods via ref.
|
|
43
|
+
*
|
|
44
|
+
* ```tsx
|
|
45
|
+
* const ref = useRef<TimerRef>(null);
|
|
46
|
+
* <Timer ref={ref} duration={60_000} autoStart />
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
declare const Timer: ({ autoStart, bold, color, duration, format, interval, onTimeout, ref }: Props) => ReactElement;
|
|
59
50
|
export { Props, Timer, type Props as TimerProps, TimerRef, Timer as default };
|
package/dist/toast.d.ts
CHANGED
|
@@ -3,47 +3,39 @@ import { V as Variant } from "./packem_shared/variant-config.d-D5NnrrQK.js";
|
|
|
3
3
|
type ToastVariant = Variant;
|
|
4
4
|
type Props = {
|
|
5
5
|
/**
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
* Toast body.
|
|
7
|
+
*/
|
|
8
8
|
readonly children: ReactNode;
|
|
9
9
|
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
* Milliseconds to display before auto-dismissing. Use `0` to disable.
|
|
11
|
+
* @default 4000
|
|
12
|
+
*/
|
|
13
13
|
readonly duration?: number;
|
|
14
14
|
/**
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
* Called after the toast dismisses itself.
|
|
16
|
+
*/
|
|
17
17
|
readonly onDismiss?: () => void;
|
|
18
18
|
/**
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
* Optional title rendered before the body.
|
|
20
|
+
*/
|
|
21
21
|
readonly title?: string;
|
|
22
22
|
/**
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
* Visual variant determining the icon and border color.
|
|
24
|
+
* @default "info"
|
|
25
|
+
*/
|
|
26
26
|
readonly variant?: ToastVariant;
|
|
27
27
|
/**
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
* Manually control visibility. When provided, `duration` is ignored.
|
|
29
|
+
*/
|
|
30
30
|
readonly visible?: boolean;
|
|
31
31
|
/**
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
* Optional width override.
|
|
33
|
+
*/
|
|
34
34
|
readonly width?: number;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
* Ephemeral notification. Disappears automatically after `duration` ms.
|
|
38
|
-
* @returns A bordered `ReactElement` while visible; `null` once dismissed.
|
|
39
|
-
*/
|
|
40
|
-
declare function Toast({
|
|
41
|
-
children,
|
|
42
|
-
duration,
|
|
43
|
-
onDismiss,
|
|
44
|
-
title,
|
|
45
|
-
variant,
|
|
46
|
-
visible,
|
|
47
|
-
width
|
|
48
|
-
}: Props): ReactElement | null;
|
|
37
|
+
* Ephemeral notification. Disappears automatically after `duration` ms.
|
|
38
|
+
* @returns A bordered `ReactElement` while visible; `null` once dismissed.
|
|
39
|
+
*/
|
|
40
|
+
declare function Toast({ children, duration, onDismiss, title, variant, visible, width }: Props): ReactElement | null;
|
|
49
41
|
export { Props, Toast, type Props as ToastProps, ToastVariant, Toast as default };
|