@loadmap/react 0.16.0 → 0.17.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/README.md CHANGED
@@ -62,7 +62,7 @@ const view = defineView(shop, {
62
62
  })
63
63
 
64
64
  export function App() {
65
- return <Loadmap model={shop} view={view} />
65
+ return <Loadmap model={shop} view={view} theme="inherit" />
66
66
  }
67
67
  ```
68
68
 
@@ -212,7 +212,7 @@ function stepDetail(a, b, components) {
212
212
  }).filter(Boolean).join(" · ");
213
213
  }
214
214
  // src/Diagram.tsx
215
- const Detail = lazy(() => import("./later-ChRpEoLJ.js").then((m) => ({ default: m.Detail })));
215
+ const Detail = lazy(() => import("./later-Dk7QnTxR.js").then((m) => ({ default: m.Detail })));
216
216
  const STATE_STROKE = {
217
217
  off: "var(--lm-line)",
218
218
  ok: "var(--lm-ok)",
@@ -3343,8 +3343,8 @@ function canvasMeasure(fontFamily) {
3343
3343
  };
3344
3344
  }
3345
3345
  // src/Loadmap.tsx
3346
- const Dock = lazy(() => import("./later-ChRpEoLJ.js").then((m) => ({ default: m.Dock })));
3347
- const VerdictLine = lazy(() => import("./later-ChRpEoLJ.js").then((m) => ({ default: m.VerdictLine })));
3346
+ const Dock = lazy(() => import("./later-Dk7QnTxR.js").then((m) => ({ default: m.Dock })));
3347
+ const VerdictLine = lazy(() => import("./later-Dk7QnTxR.js").then((m) => ({ default: m.VerdictLine })));
3348
3348
  /** What the page's own switch says, on `<html>`: `data-theme`, or a `dark` or `light` class; null when it says nothing. */
3349
3349
  function pageTheme() {
3350
3350
  if (typeof document === "undefined") return null;
@@ -3589,4 +3589,4 @@ function handleOf(lm) {
3589
3589
  } : null
3590
3590
  };
3591
3591
  }
3592
- export { plusMinus as C, rankLabels as D, boxComponent as E, Verdict as S, Diagram as T, whenRange as _, usePageTheme as a, Limits as b, injectStyles as c, HeadroomChart as d, Scenarios as f, useSize as g, useHeadroom as h, handleOf as i, Story as l, useComparison as m, Loadmap as n, useLoadmap as o, scenarioColor as p, LoadmapRoot as r, LOADMAP_CSS as s, LOADMAP_PANELS as t, Compare as u, Assumptions as v, workerElk as w, Meters as x, Controls as y };
3592
+ export { Verdict as C, boxComponent as D, Diagram as E, rankLabels as O, Meters as S, workerElk as T, whenRange as _, usePageTheme as a, Limits as b, injectStyles as c, HeadroomChart as d, Scenarios as f, useSize as g, useHeadroom as h, handleOf as i, Story as l, useComparison as m, Loadmap as n, useLoadmap as o, scenarioColor as p, LoadmapRoot as r, LOADMAP_CSS as s, LOADMAP_PANELS as t, Compare as u, Assumptions as v, plusMinus as w, LoadRange as x, Controls as y };
package/dist/index.d.ts CHANGED
@@ -43,6 +43,10 @@ export declare function Limits({ lm, title }: {
43
43
  export declare function Meters({ lm }: {
44
44
  lm: LoadmapController;
45
45
  }): import("react").JSX.Element;
46
+ /** The load slider with its label and value. */
47
+ export declare function LoadRange({ lm }: {
48
+ lm: LoadmapController;
49
+ }): import("react").JSX.Element;
46
50
  /** The load slider, the presets and every parameter, greyed out where it does not apply. */
47
51
  export declare function Controls({ lm }: {
48
52
  lm: LoadmapController;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { S as Verdict, T as Diagram, a as usePageTheme, b as Limits, c as injectStyles, d as HeadroomChart, f as Scenarios, i as handleOf, l as Story, m as useComparison, n as Loadmap, o as useLoadmap, p as scenarioColor, r as LoadmapRoot, s as LOADMAP_CSS, t as LOADMAP_PANELS, u as Compare, v as Assumptions, w as workerElk, x as Meters, y as Controls } from "./Loadmap-GwoYUby3.js";
1
+ import { C as Verdict, E as Diagram, S as Meters, T as workerElk, a as usePageTheme, b as Limits, c as injectStyles, d as HeadroomChart, f as Scenarios, i as handleOf, l as Story, m as useComparison, n as Loadmap, o as useLoadmap, p as scenarioColor, r as LoadmapRoot, s as LOADMAP_CSS, t as LOADMAP_PANELS, u as Compare, v as Assumptions, x as LoadRange, y as Controls } from "./Loadmap-CuGJSFnl.js";
2
2
  import { fitLinear } from "@loadmap/core/calibrate";
3
3
  import { compact, fmt, multiple, pct, secs } from "@loadmap/core/format";
4
4
  import { cluster, defineView, directionOf, edge, node, pool } from "@loadmap/layout";
5
5
  export * from "@loadmap/core";
6
- export { Assumptions, Compare, Controls, Diagram, HeadroomChart, LOADMAP_CSS, LOADMAP_PANELS, Limits, Loadmap, LoadmapRoot, Meters, Scenarios, Story, Verdict, cluster, compact, defineView, directionOf, edge, fitLinear, fmt, handleOf, injectStyles, multiple, node, pct, pool, scenarioColor, secs, useComparison, useLoadmap, usePageTheme, workerElk };
6
+ export { Assumptions, Compare, Controls, Diagram, HeadroomChart, LOADMAP_CSS, LOADMAP_PANELS, Limits, LoadRange, Loadmap, LoadmapRoot, Meters, Scenarios, Story, Verdict, cluster, compact, defineView, directionOf, edge, fitLinear, fmt, handleOf, injectStyles, multiple, node, pct, pool, scenarioColor, secs, useComparison, useLoadmap, usePageTheme, workerElk };
@@ -1,4 +1,4 @@
1
- import { C as plusMinus, D as rankLabels, E as boxComponent, _ as whenRange, g as useSize, h as useHeadroom, m as useComparison, p as scenarioColor, u as Compare, x as Meters, y as Controls } from "./Loadmap-GwoYUby3.js";
1
+ import { D as boxComponent, O as rankLabels, S as Meters, _ as whenRange, g as useSize, h as useHeadroom, m as useComparison, p as scenarioColor, u as Compare, w as plusMinus, y as Controls } from "./Loadmap-CuGJSFnl.js";
2
2
  import { reach } from "@loadmap/core";
3
3
  import { compact, fmt, multiple, multiples, pct } from "@loadmap/core/format";
4
4
  import { useEffect, useLayoutEffect, useRef, useState } from "react";
package/dist/source.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as usePageTheme, c as injectStyles, n as Loadmap } from "./Loadmap-GwoYUby3.js";
1
+ import { a as usePageTheme, c as injectStyles, n as Loadmap } from "./Loadmap-CuGJSFnl.js";
2
2
  import { useEffect, useMemo, useRef } from "react";
3
3
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
4
  import { compile, formatDiagnostic } from "@loadmap/dsl";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadmap/react",
3
- "version": "0.16.0",
3
+ "version": "0.17.1",
4
4
  "description": "Interactive capacity models for React: an architecture diagram with moving dots, the limits ranked, the verdict, scenarios and headroom.",
5
5
  "keywords": [
6
6
  "loadmap",
@@ -35,10 +35,10 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@loadmap/core": "0.16.0",
39
- "@loadmap/dsl": "0.16.0",
40
- "@loadmap/sim": "0.16.0",
41
- "@loadmap/layout": "0.16.0",
38
+ "@loadmap/core": "0.17.1",
39
+ "@loadmap/dsl": "0.17.1",
40
+ "@loadmap/sim": "0.17.1",
41
+ "@loadmap/layout": "0.17.1",
42
42
  "elkjs": "^0.12.1"
43
43
  },
44
44
  "peerDependencies": {