@indxsearch/systm 2.23.0 → 2.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/dist/components/Icicle/Icicle.d.ts +22 -0
- package/dist/components/Icicle/index.d.ts +1 -0
- package/dist/components/ScoreMeter/ScoreMeter.d.ts +23 -0
- package/dist/components/ScoreMeter/index.d.ts +1 -0
- package/dist/components/ShimmerText/ShimmerText.d.ts +11 -0
- package/dist/components/ShimmerText/index.d.ts +1 -0
- package/dist/components/TreeCanvas/TreeCanvas.d.ts +5 -1
- package/dist/components/TreeCanvas/viewport.d.ts +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +936 -808
- package/dist/systm.css +1 -1
- package/dist/systm.shadow.css +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.24.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- TreeCanvas: a full-screen control beside zoom and fit. It fills the screen with the nearest element marked `data-tree-fullscreen`, so a panel beside the board goes along, or with the board; Esc leaves, and the view is fitted again. `fullscreen={false}` leaves it out.
|
|
8
|
+
- Icicle: a tree as nested blocks read top to bottom, each as wide as its share of the root and toned by how much of it goes on to its children; the space under a block is what stopped there. For browsing paths, and any tree whose values add up.
|
|
9
|
+
- ScoreMeter: a score from 0 to 1 as a row of small cells lit up to it, with a thin tick at each threshold and its name on hover; the cells strengthen as the score passes the ticks, the full ink past every one. Compact, for a line of text.
|
|
10
|
+
- ShimmerText: text a highlight sweeps across, for a line that says something is about to happen, such as "Thinking" or "For a quick answer, type a bit more". `active={false}` holds it still, and it is still for anyone who has asked for reduced motion.
|
|
11
|
+
|
|
3
12
|
## 2.23.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface IcicleNode {
|
|
2
|
+
label: string;
|
|
3
|
+
/** Itself and everything under it. */
|
|
4
|
+
value: number;
|
|
5
|
+
children?: IcicleNode[];
|
|
6
|
+
}
|
|
7
|
+
export interface IcicleProps {
|
|
8
|
+
root: IcicleNode;
|
|
9
|
+
/** The height of a row in pixels; 30 by default. */
|
|
10
|
+
rowHeight?: number;
|
|
11
|
+
/** The rows drawn, the root's included; deeper nodes are left out. 6 by default. */
|
|
12
|
+
maxDepth?: number;
|
|
13
|
+
/** A block's text on hover; its label and value by default. */
|
|
14
|
+
title?: (node: IcicleNode) => string;
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/** A tree as nested blocks, read top to bottom: the root across the top, each node's children in
|
|
19
|
+
* the row under it, a block as wide as its share of the root. A block is toned by how much of it
|
|
20
|
+
* goes on to its children, and the space a parent leaves under it is the part that stopped there.
|
|
21
|
+
* Made for browsing paths, and for any tree whose values add up. The Blazor Icicle is its port. */
|
|
22
|
+
export declare function Icicle({ root, rowHeight, maxDepth, title, className, ...rest }: IcicleProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icicle, type IcicleProps, type IcicleNode } from './Icicle';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface ScoreMark {
|
|
2
|
+
/** Where on the scale, 0 to 1. */
|
|
3
|
+
at: number;
|
|
4
|
+
/** Its name, shown on hover with its value. */
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export interface ScoreMeterProps {
|
|
8
|
+
/** The score, 0 to 1. */
|
|
9
|
+
value: number;
|
|
10
|
+
marks?: ScoreMark[];
|
|
11
|
+
/** How many cells; 20 by default, a cell for each 0.05. */
|
|
12
|
+
cells?: number;
|
|
13
|
+
/** A cell's width in pixels; 4 by default. */
|
|
14
|
+
cell?: number;
|
|
15
|
+
'aria-label'?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/** A score from 0 to 1 as a row of small cells, the waffle's pixels in one line, lit up to the
|
|
19
|
+
* score, with a thin tick at each threshold that matters to it (its name on hover): a judge's
|
|
20
|
+
* score against the lines that decide what it does. The lit cells strengthen as the score passes
|
|
21
|
+
* the ticks: dim below them all, a step up past some, the full ink past every one. Compact, for a
|
|
22
|
+
* line of text. The Blazor ScoreMeter is its port. */
|
|
23
|
+
export declare function ScoreMeter({ value, marks, cells, cell, className, ...rest }: ScoreMeterProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ScoreMeter, type ScoreMeterProps, type ScoreMark } from './ScoreMeter';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface ShimmerTextProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
/** The highlight sweeps while true; false is the same text, still. Default true. */
|
|
5
|
+
active?: boolean;
|
|
6
|
+
}
|
|
7
|
+
/** Text a highlight sweeps across, left to right, as Notion's quick answer has it: for a line that
|
|
8
|
+
* says something is about to happen ("Thinking", "For a quick answer, type a bit more"). The one
|
|
9
|
+
* motion in systm that runs before anything is computing (27 Oct 2026): it invites. Still under
|
|
10
|
+
* prefers-reduced-motion. The Blazor ShimmerText is its port. */
|
|
11
|
+
export declare function ShimmerText({ children, active, className, ...rest }: ShimmerTextProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { ShimmerText, type ShimmerTextProps } from './ShimmerText';
|
|
@@ -39,6 +39,10 @@ export interface TreeCanvasProps {
|
|
|
39
39
|
* arrows, + - and 0 on it, and the zoom controls in its corner; on by default. Off, the tree is a
|
|
40
40
|
* still picture at `zoom` or fitted, for an example inside a page that scrolls. */
|
|
41
41
|
pan?: boolean;
|
|
42
|
+
/** A control to fill the screen with the board: the nearest element the page marks
|
|
43
|
+
* `data-tree-fullscreen` (so a panel beside the board goes along), else the board; Esc leaves.
|
|
44
|
+
* On by default where the board pans. */
|
|
45
|
+
fullscreen?: boolean;
|
|
42
46
|
/** A systm pattern behind the tree, faint, moving with it. None by default. */
|
|
43
47
|
pattern?: TreeCanvasPattern;
|
|
44
48
|
/** A name for assistive technology: "Categories of shop". */
|
|
@@ -47,4 +51,4 @@ export interface TreeCanvasProps {
|
|
|
47
51
|
}
|
|
48
52
|
/** The patterns `pattern` takes: the systm set in globals/patterns.css. */
|
|
49
53
|
export type TreeCanvasPattern = 'grid-12' | 'grid-24' | 'grid-6' | 'checkerboard' | 'checkerboard-spaced-4' | 'checkerboard-spaced-6' | 'checkerboard-spaced-8' | 'checkerboard-spaced-10';
|
|
50
|
-
export declare function TreeCanvas({ roots, selected, onSelect, defaultExpanded, view, maxChildren, format, visible, zoom, openDepth, pan: pannable, pattern, 'aria-label': ariaLabel, className, }: TreeCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare function TreeCanvas({ roots, selected, onSelect, defaultExpanded, view, maxChildren, format, visible, zoom, openDepth, pan: pannable, fullscreen, pattern, 'aria-label': ariaLabel, className, }: TreeCanvasProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ViewportAction = 'in' | 'out' | 'fit' | 'reset';
|
|
1
|
+
export type ViewportAction = 'in' | 'out' | 'fit' | 'reset' | 'fullscreen';
|
|
2
2
|
export interface Viewport {
|
|
3
3
|
setPan(pan: boolean): void;
|
|
4
4
|
/** The first view of a tree: fitted when that leaves it readable; else at the given zoom (1 when
|