strata-react 1.0.7 → 1.0.9
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/README.md +2 -0
- package/dist/components/sortable-list.d.ts +39 -0
- package/dist/components/timeline.d.ts +98 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +787 -3
- package/dist/index.js.map +1 -1
- package/dist/lib/timeline.d.ts +14 -0
- package/package.json +3 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** The smallest step whose ticks are at least `minGapPx` apart at this zoom, so labels thin out instead of colliding. */
|
|
2
|
+
export declare function tickStep(pxPerUnit: number, minGapPx?: number): number;
|
|
3
|
+
/** Tick times from `from` to `to` inclusive, on multiples of `step`. */
|
|
4
|
+
export declare function ticksBetween(from: number, to: number, step: number): number[];
|
|
5
|
+
/** A tick's label: m:ss, h:mm:ss, with tenths or hundredths when the step is under a second. */
|
|
6
|
+
export declare function tickLabel(time: number, step: number): string;
|
|
7
|
+
export declare function clamp(value: number, min: number, max: number): number;
|
|
8
|
+
/** The point to snap `time` to: the nearest of `points` within `thresholdPx` at this zoom, or `null`. */
|
|
9
|
+
export declare function snapTo(time: number, points: readonly number[], pxPerUnit: number, thresholdPx?: number): {
|
|
10
|
+
time: number;
|
|
11
|
+
point: number;
|
|
12
|
+
} | null;
|
|
13
|
+
/** Round away float noise from adding steps (0.1 + 0.2). */
|
|
14
|
+
export declare const tidy: (n: number) => number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "strata-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "React + Tailwind v4 components that ship structure, behaviour, states and a token contract, and no look: each product brings a theme generated from its own subject.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -103,7 +103,9 @@
|
|
|
103
103
|
"lucide-react": "^1.72.0",
|
|
104
104
|
"pixelmatch": "^8.0.0",
|
|
105
105
|
"pngjs": "^7.0.0",
|
|
106
|
+
"react-aria": "^3.53.1",
|
|
106
107
|
"react-aria-components": "^1.22.1",
|
|
108
|
+
"react-stately": "^3.51.0",
|
|
107
109
|
"tailwind-merge": "^3.3.0",
|
|
108
110
|
"tailwindcss-react-aria-components": "^2.2.0"
|
|
109
111
|
},
|