@mcpview/components 0.16.0 → 0.17.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/esm/src/theme.js CHANGED
@@ -1896,6 +1896,286 @@ button.mcp-view-tree-list-label:focus-visible {
1896
1896
  .mcp-view-interval-plot-lower { text-align: left; }
1897
1897
  .mcp-view-interval-plot-upper { text-align: right; }
1898
1898
 
1899
+ .mcp-view-stacked-bar {
1900
+ display: grid;
1901
+ gap: 0.5rem;
1902
+ margin: 0;
1903
+ padding: 0.625rem 0.75rem;
1904
+ border: 1px solid var(--mcp-view-border);
1905
+ border-radius: var(--mcp-view-radius);
1906
+ background: var(--mcp-view-panel);
1907
+ min-width: 0;
1908
+ }
1909
+ .mcp-view-stacked-bar-rows {
1910
+ display: grid;
1911
+ gap: 0.5rem;
1912
+ }
1913
+ .mcp-view-stacked-bar-row {
1914
+ display: grid;
1915
+ grid-template-columns: minmax(3.5rem, auto) minmax(0, 1fr);
1916
+ align-items: center;
1917
+ gap: 0.5rem;
1918
+ }
1919
+ .mcp-view-stacked-bar-row-label {
1920
+ color: var(--mcp-view-quiet);
1921
+ font-size: var(--mcp-view-size-micro);
1922
+ font-weight: 500;
1923
+ letter-spacing: var(--mcp-view-tracking-chip);
1924
+ text-transform: uppercase;
1925
+ }
1926
+ .mcp-view-stacked-bar-track {
1927
+ display: flex;
1928
+ width: 100%;
1929
+ height: 1.5rem;
1930
+ overflow: hidden;
1931
+ border: 1px solid var(--mcp-view-border);
1932
+ border-radius: var(--mcp-view-radius-sm);
1933
+ background: var(--mcp-view-track);
1934
+ }
1935
+ .mcp-view-stacked-bar-segment {
1936
+ display: inline-flex;
1937
+ align-items: center;
1938
+ justify-content: center;
1939
+ min-width: 2px;
1940
+ height: 100%;
1941
+ padding: 0;
1942
+ border: 0;
1943
+ border-inline-end: 1px solid var(--mcp-view-panel);
1944
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-accent));
1945
+ color: var(--mcp-view-stacked-bar-ink, var(--mcp-view-panel));
1946
+ font-size: var(--mcp-view-size-micro);
1947
+ font-weight: 600;
1948
+ overflow: hidden;
1949
+ transition: opacity 120ms ease;
1950
+ }
1951
+ button.mcp-view-stacked-bar-segment { cursor: pointer; }
1952
+ .mcp-view-stacked-bar-segment:last-child { border-inline-end: 0; }
1953
+ .mcp-view-stacked-bar-segment[data-tone="neutral"] {
1954
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-muted));
1955
+ }
1956
+ .mcp-view-stacked-bar-segment[data-tone="info"],
1957
+ .mcp-view-stacked-bar-segment[data-tone="accent"] {
1958
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-accent));
1959
+ }
1960
+ .mcp-view-stacked-bar-segment[data-tone="brand"] {
1961
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-brand));
1962
+ }
1963
+ .mcp-view-stacked-bar-segment[data-tone="success"] {
1964
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-success));
1965
+ }
1966
+ .mcp-view-stacked-bar-segment[data-tone="warning"] {
1967
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-warning));
1968
+ }
1969
+ .mcp-view-stacked-bar-segment[data-tone="danger"] {
1970
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-danger));
1971
+ }
1972
+ .mcp-view-stacked-bar-segment[data-dimmed="true"] { opacity: 0.28; }
1973
+ .mcp-view-stacked-bar-segment:focus-visible {
1974
+ outline: 2px solid var(--mcp-view-text);
1975
+ outline-offset: -2px;
1976
+ }
1977
+ .mcp-view-stacked-bar-segment-label {
1978
+ white-space: nowrap;
1979
+ padding-inline: 2px;
1980
+ }
1981
+ .mcp-view-stacked-bar-legend {
1982
+ display: flex;
1983
+ flex-wrap: wrap;
1984
+ gap: 0.25rem 0.625rem;
1985
+ padding-top: 0.125rem;
1986
+ }
1987
+ .mcp-view-stacked-bar-legend-item {
1988
+ display: inline-flex;
1989
+ align-items: center;
1990
+ gap: 0.3rem;
1991
+ padding: 0.125rem 0.3rem;
1992
+ border: 1px solid transparent;
1993
+ border-radius: var(--mcp-view-radius-sm);
1994
+ background: transparent;
1995
+ color: var(--mcp-view-text-secondary);
1996
+ font: inherit;
1997
+ font-size: var(--mcp-view-size-chip);
1998
+ }
1999
+ button.mcp-view-stacked-bar-legend-item { cursor: pointer; }
2000
+ button.mcp-view-stacked-bar-legend-item:hover { background: var(--mcp-view-subtle); }
2001
+ .mcp-view-stacked-bar-legend-item[data-focused="true"] {
2002
+ border-color: var(--mcp-view-accent);
2003
+ background: color-mix(in srgb, var(--mcp-view-accent) 10%, transparent);
2004
+ color: var(--mcp-view-text);
2005
+ font-weight: 600;
2006
+ }
2007
+ .mcp-view-stacked-bar-legend-item[data-dimmed="true"] { opacity: 0.5; }
2008
+ .mcp-view-stacked-bar-legend-item:focus-visible {
2009
+ outline: 2px solid var(--mcp-view-accent);
2010
+ outline-offset: 1px;
2011
+ }
2012
+ .mcp-view-stacked-bar-swatch {
2013
+ display: inline-block;
2014
+ flex: 0 0 auto;
2015
+ width: 0.5rem;
2016
+ height: 0.5rem;
2017
+ border-radius: 2px;
2018
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-accent));
2019
+ }
2020
+ .mcp-view-stacked-bar-swatch[data-tone="neutral"] {
2021
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-muted));
2022
+ }
2023
+ .mcp-view-stacked-bar-swatch[data-tone="info"],
2024
+ .mcp-view-stacked-bar-swatch[data-tone="accent"] {
2025
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-accent));
2026
+ }
2027
+ .mcp-view-stacked-bar-swatch[data-tone="brand"] {
2028
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-brand));
2029
+ }
2030
+ .mcp-view-stacked-bar-swatch[data-tone="success"] {
2031
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-success));
2032
+ }
2033
+ .mcp-view-stacked-bar-swatch[data-tone="warning"] {
2034
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-warning));
2035
+ }
2036
+ .mcp-view-stacked-bar-swatch[data-tone="danger"] {
2037
+ background: var(--mcp-view-stacked-segment-bg, var(--mcp-view-danger));
2038
+ }
2039
+
2040
+ .mcp-view-scrubber {
2041
+ display: grid;
2042
+ gap: 0.375rem;
2043
+ padding: 0.625rem 0.75rem;
2044
+ border: 1px solid var(--mcp-view-border);
2045
+ border-radius: var(--mcp-view-radius);
2046
+ background: var(--mcp-view-subtle);
2047
+ min-width: 0;
2048
+ }
2049
+ .mcp-view-scrubber-header {
2050
+ display: flex;
2051
+ flex-wrap: wrap;
2052
+ align-items: center;
2053
+ justify-content: space-between;
2054
+ gap: 0.5rem;
2055
+ }
2056
+ .mcp-view-scrubber-heading {
2057
+ color: var(--mcp-view-text);
2058
+ font-size: var(--mcp-view-size-data);
2059
+ font-weight: 600;
2060
+ }
2061
+ .mcp-view-scrubber-actions .mcp-view-button {
2062
+ min-height: 1.5rem;
2063
+ padding: 0.125rem 0.5rem;
2064
+ font-size: var(--mcp-view-size-micro);
2065
+ }
2066
+ .mcp-view-scrubber-track-wrap {
2067
+ position: relative;
2068
+ display: grid;
2069
+ align-items: center;
2070
+ }
2071
+ .mcp-view-scrubber-input {
2072
+ --mcp-view-scrubber-track-size: 6px;
2073
+ --mcp-view-scrubber-thumb-size: 16px;
2074
+ --mcp-view-scrubber-track-radius: 999px;
2075
+ --mcp-view-scrubber-thumb-radius: 50%;
2076
+ --mcp-view-scrubber-track-color: var(--mcp-view-border-strong);
2077
+ --mcp-view-scrubber-fill-color: var(--mcp-view-accent);
2078
+ --mcp-view-scrubber-thumb-color: var(--mcp-view-panel);
2079
+ --mcp-view-scrubber-progress: 0%;
2080
+
2081
+ appearance: none;
2082
+ inline-size: 100%;
2083
+ block-size: 1.5rem;
2084
+ margin: 0;
2085
+ padding: 0;
2086
+ border: 0;
2087
+ background: transparent;
2088
+ cursor: pointer;
2089
+ }
2090
+ .mcp-view-scrubber-input:disabled { cursor: default; opacity: 0.55; }
2091
+ .mcp-view-scrubber-input::-webkit-slider-runnable-track {
2092
+ block-size: var(--mcp-view-scrubber-track-size);
2093
+ border: 0;
2094
+ border-radius: var(--mcp-view-scrubber-track-radius);
2095
+ background: linear-gradient(
2096
+ to right,
2097
+ var(--mcp-view-scrubber-fill-color) var(--mcp-view-scrubber-progress),
2098
+ var(--mcp-view-scrubber-track-color) var(--mcp-view-scrubber-progress)
2099
+ );
2100
+ }
2101
+ .mcp-view-scrubber-input::-webkit-slider-thumb {
2102
+ -webkit-appearance: none;
2103
+ appearance: none;
2104
+ inline-size: var(--mcp-view-scrubber-thumb-size);
2105
+ block-size: var(--mcp-view-scrubber-thumb-size);
2106
+ margin-block-start: calc(
2107
+ (var(--mcp-view-scrubber-track-size) - var(--mcp-view-scrubber-thumb-size)) / 2
2108
+ );
2109
+ border: 2px solid var(--mcp-view-scrubber-fill-color);
2110
+ border-radius: var(--mcp-view-scrubber-thumb-radius);
2111
+ background: var(--mcp-view-scrubber-thumb-color);
2112
+ }
2113
+ .mcp-view-scrubber-input::-moz-range-track {
2114
+ block-size: var(--mcp-view-scrubber-track-size);
2115
+ border: 0;
2116
+ border-radius: var(--mcp-view-scrubber-track-radius);
2117
+ background: var(--mcp-view-scrubber-track-color);
2118
+ }
2119
+ .mcp-view-scrubber-input::-moz-range-progress {
2120
+ block-size: var(--mcp-view-scrubber-track-size);
2121
+ border-radius: var(--mcp-view-scrubber-track-radius);
2122
+ background: var(--mcp-view-scrubber-fill-color);
2123
+ }
2124
+ .mcp-view-scrubber-input::-moz-range-thumb {
2125
+ inline-size: var(--mcp-view-scrubber-thumb-size);
2126
+ block-size: var(--mcp-view-scrubber-thumb-size);
2127
+ border: 2px solid var(--mcp-view-scrubber-fill-color);
2128
+ border-radius: var(--mcp-view-scrubber-thumb-radius);
2129
+ background: var(--mcp-view-scrubber-thumb-color);
2130
+ }
2131
+ .mcp-view-scrubber-input:focus-visible {
2132
+ outline: 2px solid var(--mcp-view-scrubber-fill-color);
2133
+ outline-offset: 2px;
2134
+ border-radius: var(--mcp-view-radius-sm);
2135
+ }
2136
+ .mcp-view-scrubber-markers {
2137
+ position: relative;
2138
+ height: 0.375rem;
2139
+ margin-inline: 7px;
2140
+ pointer-events: none;
2141
+ }
2142
+ .mcp-view-scrubber-marker {
2143
+ position: absolute;
2144
+ top: 0;
2145
+ width: 3px;
2146
+ height: 5px;
2147
+ border-radius: 1px;
2148
+ background: var(--mcp-view-scrubber-marker-bg, var(--mcp-view-accent));
2149
+ transform: translateX(-50%);
2150
+ }
2151
+ .mcp-view-scrubber-marker[data-emphasized="true"] { height: 6px; }
2152
+ .mcp-view-scrubber-marker[data-tone="neutral"] {
2153
+ background: var(--mcp-view-scrubber-marker-bg, var(--mcp-view-muted));
2154
+ }
2155
+ .mcp-view-scrubber-marker[data-tone="info"],
2156
+ .mcp-view-scrubber-marker[data-tone="accent"] {
2157
+ background: var(--mcp-view-scrubber-marker-bg, var(--mcp-view-accent));
2158
+ }
2159
+ .mcp-view-scrubber-marker[data-tone="brand"] {
2160
+ background: var(--mcp-view-scrubber-marker-bg, var(--mcp-view-brand));
2161
+ }
2162
+ .mcp-view-scrubber-marker[data-tone="success"] {
2163
+ background: var(--mcp-view-scrubber-marker-bg, var(--mcp-view-success));
2164
+ }
2165
+ .mcp-view-scrubber-marker[data-tone="warning"] {
2166
+ background: var(--mcp-view-scrubber-marker-bg, var(--mcp-view-warning));
2167
+ }
2168
+ .mcp-view-scrubber-marker[data-tone="danger"] {
2169
+ background: var(--mcp-view-scrubber-marker-bg, var(--mcp-view-danger));
2170
+ }
2171
+ .mcp-view-scrubber-bounds {
2172
+ display: flex;
2173
+ justify-content: space-between;
2174
+ gap: 0.5rem;
2175
+ color: var(--mcp-view-quiet);
2176
+ font-size: var(--mcp-view-size-micro);
2177
+ }
2178
+
1899
2179
  .mcp-view-skeleton {
1900
2180
  display: grid;
1901
2181
  gap: 0.42rem;
@@ -1967,7 +2247,11 @@ button.mcp-view-tree-list-label:focus-visible {
1967
2247
  .mcp-view-series-chart-readout-value dd,
1968
2248
  .mcp-view-artifact-row-uri,
1969
2249
  .mcp-view-artifact-row-fingerprint,
1970
- .mcp-view-artifact-row-fingerprint code {
2250
+ .mcp-view-artifact-row-fingerprint code,
2251
+ .mcp-view-stacked-bar-row-label,
2252
+ .mcp-view-stacked-bar-segment,
2253
+ .mcp-view-scrubber-heading,
2254
+ .mcp-view-scrubber-bounds {
1971
2255
  font-family: var(--mcp-view-font-mono);
1972
2256
  }
1973
2257
 
@@ -1981,7 +2265,10 @@ button.mcp-view-tree-list-label:focus-visible {
1981
2265
  .mcp-view-series-chart-axis,
1982
2266
  .mcp-view-series-chart-readout-position,
1983
2267
  .mcp-view-interval-plot-bounds,
1984
- .mcp-view-interval-plot-zero-label {
2268
+ .mcp-view-interval-plot-zero-label,
2269
+ .mcp-view-stacked-bar-segment,
2270
+ .mcp-view-scrubber-heading,
2271
+ .mcp-view-scrubber-bounds {
1985
2272
  font-variant-numeric: tabular-nums;
1986
2273
  }
1987
2274
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcpview/components",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Optional light-first component runtime for small composable MCP App viewers",
5
5
  "keywords": [
6
6
  "mcp",
@@ -15,6 +15,10 @@ export { ArtifactRow, DrillHint, LimitGauge, PATH_BAR_DEFAULT_MAX_VISIBLE, PathB
15
15
  export type { ArtifactFingerprint, ArtifactRowProps, ArtifactVerification, DrillHintDirection, DrillHintProps, LimitGaugeLimit, LimitGaugeProps, PathBarItem, PathBarProps, Slot3DProps, StaleBannerAction, StaleBannerProps, TreeListNode, TreeListProps, TypeBadgeProps, ViewKind, } from "./src/preact/structural.js";
16
16
  export { IntervalPlot, SeriesChart, Sparkline } from "./src/preact/plots.js";
17
17
  export type { IntervalPlotInterval, IntervalPlotProps, SeriesChartCursor, SeriesChartProps, SeriesChartReadout, SeriesChartSeries, SeriesChartSummaryItem, SeriesChartTone, SeriesPoint, SparklineProps, } from "./src/preact/plots.js";
18
+ export { StackedDistributionBar } from "./src/preact/stacked-distribution-bar.js";
19
+ export type { StackedDistributionBarProps, StackedDistributionLegendItem, StackedDistributionRow, StackedDistributionSegment, } from "./src/preact/stacked-distribution-bar.js";
20
+ export { RangeScrubber } from "./src/preact/range-scrubber.js";
21
+ export type { RangeScrubberAction, RangeScrubberMarker, RangeScrubberProps, } from "./src/preact/range-scrubber.js";
18
22
  export { CollectionCard, ElementBody, ElementIdent, ElementLimit, ElementProvenance, ElementReading, ElementSection, ElementVerdict, SemanticElement, SemanticList, } from "./src/preact/semantic-element.js";
19
23
  export type { CollectionCardProps, ElementBodyProps, ElementIdentProps, ElementLimitProps, ElementProvenanceProps, ElementReadingProps, ElementSectionProps, ElementVerdictProps, SemanticElementDensity, SemanticElementProps, SemanticListProps, } from "./src/preact/semantic-element.js";
20
24
  export { Disclosure, FocusedView } from "./src/preact/focused-view.js";
@@ -1 +1 @@
1
- {"version":3,"file":"preact-components.d.ts","sourceRoot":"","sources":["../src/preact-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,SAAS,EACT,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,GAAG,EACH,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,GACR,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,UAAU,E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MAAM,8BAA8B,CAAC;AAEtF,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,YAAY,EACV,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"preact-components.d.ts","sourceRoot":"","sources":["../src/preact-components.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,qBAAqB,CAAC;AAG7B,OAAO,EACL,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,SAAS,EACT,UAAU,EACV,UAAU,EACV,YAAY,EACZ,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,GAAG,EACH,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,SAAS,EACT,OAAO,GACR,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,eAAe,EACf,UAAU,EACV,WAAW,EACX,SAAS,EACT,cAAc,EACd,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,eAAe,EACf,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,QAAQ,EACR,aAAa,EACb,UAAU,EACV,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,GACb,MAAM,4BAA4B,CAAC;AAEpC,OAAO,EACL,WAAW,EACX,SAAS,EACT,UAAU,EACV,4BAA4B,EAC5B,OAAO,EACP,MAAM,EACN,WAAW,EACX,QAAQ,EACR,SAAS,GACV,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,EACf,WAAW,EACX,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SnippetLibrary = exports.FocusedView = exports.Disclosure = exports.SemanticList = exports.SemanticElement = exports.ElementVerdict = exports.ElementSection = exports.ElementReading = exports.ElementProvenance = exports.ElementLimit = exports.ElementIdent = exports.ElementBody = exports.CollectionCard = exports.Sparkline = exports.SeriesChart = exports.IntervalPlot = exports.TypeBadge = exports.TreeList = exports.StaleBanner = exports.Slot3D = exports.PathBar = exports.PATH_BAR_DEFAULT_MAX_VISIBLE = exports.LimitGauge = exports.DrillHint = exports.ArtifactRow = exports.Toolbar = exports.TextInput = exports.StateMessage = exports.Stack = exports.Skeleton = exports.Row = exports.renderStatusMessage = exports.NoticeGroup = exports.MetricGrid = exports.Metric = exports.Message = exports.KeyValueList = exports.InlineCode = exports.EmptyState = exports.DataTable = exports.CrossSelection = exports.CodeBlock = exports.Card = exports.Button = exports.BadgeGroup = exports.Badge = void 0;
3
+ exports.SnippetLibrary = exports.FocusedView = exports.Disclosure = exports.SemanticList = exports.SemanticElement = exports.ElementVerdict = exports.ElementSection = exports.ElementReading = exports.ElementProvenance = exports.ElementLimit = exports.ElementIdent = exports.ElementBody = exports.CollectionCard = exports.RangeScrubber = exports.StackedDistributionBar = exports.Sparkline = exports.SeriesChart = exports.IntervalPlot = exports.TypeBadge = exports.TreeList = exports.StaleBanner = exports.Slot3D = exports.PathBar = exports.PATH_BAR_DEFAULT_MAX_VISIBLE = exports.LimitGauge = exports.DrillHint = exports.ArtifactRow = exports.Toolbar = exports.TextInput = exports.StateMessage = exports.Stack = exports.Skeleton = exports.Row = exports.renderStatusMessage = exports.NoticeGroup = exports.MetricGrid = exports.Metric = exports.Message = exports.KeyValueList = exports.InlineCode = exports.EmptyState = exports.DataTable = exports.CrossSelection = exports.CodeBlock = exports.Card = exports.Button = exports.BadgeGroup = exports.Badge = void 0;
4
4
  /**
5
5
  * Pure Preact presentation primitives for native applications and MCP Apps.
6
6
  *
@@ -48,6 +48,10 @@ var plots_js_1 = require("./src/preact/plots.js");
48
48
  Object.defineProperty(exports, "IntervalPlot", { enumerable: true, get: function () { return plots_js_1.IntervalPlot; } });
49
49
  Object.defineProperty(exports, "SeriesChart", { enumerable: true, get: function () { return plots_js_1.SeriesChart; } });
50
50
  Object.defineProperty(exports, "Sparkline", { enumerable: true, get: function () { return plots_js_1.Sparkline; } });
51
+ var stacked_distribution_bar_js_1 = require("./src/preact/stacked-distribution-bar.js");
52
+ Object.defineProperty(exports, "StackedDistributionBar", { enumerable: true, get: function () { return stacked_distribution_bar_js_1.StackedDistributionBar; } });
53
+ var range_scrubber_js_1 = require("./src/preact/range-scrubber.js");
54
+ Object.defineProperty(exports, "RangeScrubber", { enumerable: true, get: function () { return range_scrubber_js_1.RangeScrubber; } });
51
55
  var semantic_element_js_1 = require("./src/preact/semantic-element.js");
52
56
  Object.defineProperty(exports, "CollectionCard", { enumerable: true, get: function () { return semantic_element_js_1.CollectionCard; } });
53
57
  Object.defineProperty(exports, "ElementBody", { enumerable: true, get: function () { return semantic_element_js_1.ElementBody; } });
@@ -1,6 +1,6 @@
1
1
  /** Preact integration for `@mcpview/components` surfaces. */
2
2
  export { definePreactComponent, preactSurfaceRenderer, startPreactSurfaceApp, SurfaceAppError, } from "./surface.js";
3
- export { ArtifactRow, Badge, BadgeGroup, Button, Card, CodeBlock, CollectionCard, CrossSelection, DataTable, Disclosure, DrillHint, ElementBody, ElementIdent, ElementLimit, ElementProvenance, ElementReading, ElementSection, ElementVerdict, EmptyState, FocusedView, InlineCode, IntervalPlot, KeyValueList, LimitGauge, Message, Metric, MetricGrid, NoticeGroup, PATH_BAR_DEFAULT_MAX_VISIBLE, PathBar, renderStatusMessage, Row, SemanticElement, SemanticList, SeriesChart, Skeleton, Slot3D, SnippetLibrary, Sparkline, Stack, StaleBanner, StateMessage, TextInput, Toolbar, TreeList, TypeBadge, } from "../../preact-components.js";
3
+ export { ArtifactRow, Badge, BadgeGroup, Button, Card, CodeBlock, CollectionCard, CrossSelection, DataTable, Disclosure, DrillHint, ElementBody, ElementIdent, ElementLimit, ElementProvenance, ElementReading, ElementSection, ElementVerdict, EmptyState, FocusedView, InlineCode, IntervalPlot, KeyValueList, LimitGauge, Message, Metric, MetricGrid, NoticeGroup, PATH_BAR_DEFAULT_MAX_VISIBLE, PathBar, RangeScrubber, renderStatusMessage, Row, SemanticElement, SemanticList, SeriesChart, Skeleton, Slot3D, SnippetLibrary, Sparkline, Stack, StackedDistributionBar, StaleBanner, StateMessage, TextInput, Toolbar, TreeList, TypeBadge, } from "../../preact-components.js";
4
4
  export type { PreactComponentRenderer, PreactSurfaceAppOptions, PreactSurfaceAppState, PreactSurfaceComponentProps, PreactSurfaceContext, SurfaceAppErrorCode, SurfaceAppHandle, SurfaceAppRuntime, SurfaceDisplayState, SurfaceHostAccess, SurfaceLabel, SurfaceMessageKind, SurfaceProjection, SurfaceStatus, SurfaceStatusTone, SurfaceToolResult, SurfaceViewerSession, } from "./surface.js";
5
- export type { ArtifactFingerprint, ArtifactRowProps, ArtifactVerification, BadgeGroupProps, BadgeProps, ButtonProps, CardProps, CodeBlockProps, CollectionCardProps, CrossSelectionProps, DataTableColumn, DataTableDisclosure, DataTableProps, DisclosureProps, DrillHintDirection, DrillHintProps, ElementBodyProps, ElementIdentProps, ElementLimitProps, ElementProvenanceProps, ElementReadingProps, ElementSectionProps, ElementVerdictProps, EmptyStateProps, FocusedViewProps, InlineCodeProps, IntervalPlotInterval, IntervalPlotProps, KeyValueItem, KeyValueLayout, KeyValueListProps, LimitGaugeLimit, LimitGaugeProps, MessageProps, MetricGridProps, MetricItem, MetricProps, NoticeGroupProps, PathBarItem, PathBarProps, PresentationTone, RowProps, SemanticElementDensity, SemanticElementProps, SemanticListProps, SeriesChartCursor, SeriesChartProps, SeriesChartReadout, SeriesChartSeries, SeriesChartSummaryItem, SeriesChartTone, SeriesPoint, SkeletonProps, Slot3DProps, SnippetLibraryEntry, SnippetLibraryLabels, SnippetLibraryProps, SnippetLibrarySource, SparklineProps, StackProps, StaleBannerAction, StaleBannerProps, StateMessageProps, StatusMessageMount, TextInputProps, ToolbarProps, TreeListNode, TreeListProps, TypeBadgeProps, ViewKind, } from "../../preact-components.js";
5
+ export type { ArtifactFingerprint, ArtifactRowProps, ArtifactVerification, BadgeGroupProps, BadgeProps, ButtonProps, CardProps, CodeBlockProps, CollectionCardProps, CrossSelectionProps, DataTableColumn, DataTableDisclosure, DataTableProps, DisclosureProps, DrillHintDirection, DrillHintProps, ElementBodyProps, ElementIdentProps, ElementLimitProps, ElementProvenanceProps, ElementReadingProps, ElementSectionProps, ElementVerdictProps, EmptyStateProps, FocusedViewProps, InlineCodeProps, IntervalPlotInterval, IntervalPlotProps, KeyValueItem, KeyValueLayout, KeyValueListProps, LimitGaugeLimit, LimitGaugeProps, MessageProps, MetricGridProps, MetricItem, MetricProps, NoticeGroupProps, PathBarItem, PathBarProps, PresentationTone, RangeScrubberAction, RangeScrubberMarker, RangeScrubberProps, RowProps, SemanticElementDensity, SemanticElementProps, SemanticListProps, SeriesChartCursor, SeriesChartProps, SeriesChartReadout, SeriesChartSeries, SeriesChartSummaryItem, SeriesChartTone, SeriesPoint, SkeletonProps, Slot3DProps, SnippetLibraryEntry, SnippetLibraryLabels, SnippetLibraryProps, SnippetLibrarySource, SparklineProps, StackedDistributionBarProps, StackedDistributionLegendItem, StackedDistributionRow, StackedDistributionSegment, StackProps, StaleBannerAction, StaleBannerProps, StateMessageProps, StatusMessageMount, TextInputProps, ToolbarProps, TreeListNode, TreeListProps, TypeBadgeProps, ViewKind, } from "../../preact-components.js";
6
6
  //# sourceMappingURL=mod.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/preact/mod.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,E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,EACjB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,eAAe,EACf,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,QAAQ,EACR,sBAAsB,EACtB,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,WAAW,EACX,aAAa,EACb,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,4BAA4B,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/src/preact/mod.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAE7D,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,GAChB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,WAAW,EACX,KAAK,EACL,UAAU,EACV,MAAM,EACN,IAAI,EACJ,SAAS,EACT,cAAc,EACd,cAAc,EACd,SAAS,EACT,UAAU,EACV,SAAS,EACT,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,cAAc,EACd,UAAU,EACV,WAAW,EACX,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,OAAO,EACP,MAAM,EACN,UAAU,EACV,WAAW,EACX,4BAA4B,EAC5B,OAAO,EACP,aAAa,EACb,mBAAmB,EACnB,GAAG,EACH,eAAe,EACf,YAAY,EACZ,WAAW,EACX,QAAQ,EACR,MAAM,EACN,cAAc,EACd,SAAS,EACT,KAAK,EACL,sBAAsB,EACtB,WAAW,EACX,YAAY,EACZ,SAAS,E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,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,aAAa,EACb,cAAc,EACd,QAAQ,GACT,MAAM,4BAA4B,CAAC"}
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  /** Preact integration for `@mcpview/components` surfaces. */
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TypeBadge = exports.TreeList = exports.Toolbar = exports.TextInput = exports.StateMessage = exports.StaleBanner = exports.Stack = exports.Sparkline = exports.SnippetLibrary = exports.Slot3D = exports.Skeleton = exports.SeriesChart = exports.SemanticList = exports.SemanticElement = exports.Row = exports.renderStatusMessage = exports.PathBar = exports.PATH_BAR_DEFAULT_MAX_VISIBLE = exports.NoticeGroup = exports.MetricGrid = exports.Metric = exports.Message = exports.LimitGauge = exports.KeyValueList = exports.IntervalPlot = exports.InlineCode = exports.FocusedView = exports.EmptyState = exports.ElementVerdict = exports.ElementSection = exports.ElementReading = exports.ElementProvenance = exports.ElementLimit = exports.ElementIdent = exports.ElementBody = exports.DrillHint = exports.Disclosure = exports.DataTable = exports.CrossSelection = exports.CollectionCard = exports.CodeBlock = exports.Card = exports.Button = exports.BadgeGroup = exports.Badge = exports.ArtifactRow = exports.SurfaceAppError = exports.startPreactSurfaceApp = exports.preactSurfaceRenderer = exports.definePreactComponent = void 0;
4
+ exports.Toolbar = exports.TextInput = exports.StateMessage = exports.StaleBanner = exports.StackedDistributionBar = exports.Stack = exports.Sparkline = exports.SnippetLibrary = exports.Slot3D = exports.Skeleton = exports.SeriesChart = exports.SemanticList = exports.SemanticElement = exports.Row = exports.renderStatusMessage = exports.RangeScrubber = exports.PathBar = exports.PATH_BAR_DEFAULT_MAX_VISIBLE = exports.NoticeGroup = exports.MetricGrid = exports.Metric = exports.Message = exports.LimitGauge = exports.KeyValueList = exports.IntervalPlot = exports.InlineCode = exports.FocusedView = exports.EmptyState = exports.ElementVerdict = exports.ElementSection = exports.ElementReading = exports.ElementProvenance = exports.ElementLimit = exports.ElementIdent = exports.ElementBody = exports.DrillHint = exports.Disclosure = exports.DataTable = exports.CrossSelection = exports.CollectionCard = exports.CodeBlock = exports.Card = exports.Button = exports.BadgeGroup = exports.Badge = exports.ArtifactRow = exports.SurfaceAppError = exports.startPreactSurfaceApp = exports.preactSurfaceRenderer = exports.definePreactComponent = void 0;
5
+ exports.TypeBadge = exports.TreeList = void 0;
5
6
  var surface_js_1 = require("./surface.js");
6
7
  Object.defineProperty(exports, "definePreactComponent", { enumerable: true, get: function () { return surface_js_1.definePreactComponent; } });
7
8
  Object.defineProperty(exports, "preactSurfaceRenderer", { enumerable: true, get: function () { return surface_js_1.preactSurfaceRenderer; } });
@@ -38,6 +39,7 @@ Object.defineProperty(exports, "MetricGrid", { enumerable: true, get: function (
38
39
  Object.defineProperty(exports, "NoticeGroup", { enumerable: true, get: function () { return preact_components_js_1.NoticeGroup; } });
39
40
  Object.defineProperty(exports, "PATH_BAR_DEFAULT_MAX_VISIBLE", { enumerable: true, get: function () { return preact_components_js_1.PATH_BAR_DEFAULT_MAX_VISIBLE; } });
40
41
  Object.defineProperty(exports, "PathBar", { enumerable: true, get: function () { return preact_components_js_1.PathBar; } });
42
+ Object.defineProperty(exports, "RangeScrubber", { enumerable: true, get: function () { return preact_components_js_1.RangeScrubber; } });
41
43
  Object.defineProperty(exports, "renderStatusMessage", { enumerable: true, get: function () { return preact_components_js_1.renderStatusMessage; } });
42
44
  Object.defineProperty(exports, "Row", { enumerable: true, get: function () { return preact_components_js_1.Row; } });
43
45
  Object.defineProperty(exports, "SemanticElement", { enumerable: true, get: function () { return preact_components_js_1.SemanticElement; } });
@@ -48,6 +50,7 @@ Object.defineProperty(exports, "Slot3D", { enumerable: true, get: function () {
48
50
  Object.defineProperty(exports, "SnippetLibrary", { enumerable: true, get: function () { return preact_components_js_1.SnippetLibrary; } });
49
51
  Object.defineProperty(exports, "Sparkline", { enumerable: true, get: function () { return preact_components_js_1.Sparkline; } });
50
52
  Object.defineProperty(exports, "Stack", { enumerable: true, get: function () { return preact_components_js_1.Stack; } });
53
+ Object.defineProperty(exports, "StackedDistributionBar", { enumerable: true, get: function () { return preact_components_js_1.StackedDistributionBar; } });
51
54
  Object.defineProperty(exports, "StaleBanner", { enumerable: true, get: function () { return preact_components_js_1.StaleBanner; } });
52
55
  Object.defineProperty(exports, "StateMessage", { enumerable: true, get: function () { return preact_components_js_1.StateMessage; } });
53
56
  Object.defineProperty(exports, "TextInput", { enumerable: true, get: function () { return preact_components_js_1.TextInput; } });
@@ -0,0 +1,71 @@
1
+ /** @jsxImportSource preact */
2
+ /**
3
+ * Indexed / continuous range scrubber built on native `<input type="range">`
4
+ * with optional discrete event markers, Prev/Next step buttons, and quick-jump
5
+ * action buttons.
6
+ *
7
+ * Pure controlled Preact primitive: the caller owns `value`, formatted labels,
8
+ * and marker positions (`positionPct`).
9
+ *
10
+ * @module
11
+ */
12
+ import type { JSX } from "preact";
13
+ import type { SeriesChartTone } from "./plots.js";
14
+ export interface RangeScrubberMarker {
15
+ readonly id?: string;
16
+ /** Caller-supplied horizontal offset percentage in `[0, 100]`. */
17
+ readonly positionPct: number;
18
+ /** Semantic or categorical theme tone (default `"accent"`). */
19
+ readonly tone?: SeriesChartTone;
20
+ /** Optional explicit CSS color or custom property (overrides `tone`). */
21
+ readonly color?: string;
22
+ /** Emphasize marker height for primary milestones (default `false`). */
23
+ readonly emphasized?: boolean;
24
+ }
25
+ export interface RangeScrubberAction {
26
+ readonly id: string;
27
+ readonly label: string;
28
+ /** Value emitted via `onChange` when activated. */
29
+ readonly value: number;
30
+ readonly title?: string;
31
+ readonly pressed?: boolean;
32
+ readonly disabled?: boolean;
33
+ }
34
+ export interface RangeScrubberProps {
35
+ /** Visible heading bound to the `<input type="range">` via `<label for=...>`. */
36
+ readonly label: string;
37
+ /** Accessible name of the range input (defaults to `label`). */
38
+ readonly ariaLabel?: string;
39
+ /** Caller-formatted `aria-valuetext` including units. */
40
+ readonly valueText: string;
41
+ readonly value: number;
42
+ readonly min: number;
43
+ readonly max: number;
44
+ readonly step?: number;
45
+ /** Optional lower-bound label below the track. */
46
+ readonly minLabel?: string;
47
+ /** Optional center annotation below the track (e.g. sample count). */
48
+ readonly centerLabel?: string;
49
+ /** Optional upper-bound label below the track. */
50
+ readonly maxLabel?: string;
51
+ /** Optional discrete event markers aligned below the range track. */
52
+ readonly markers?: readonly RangeScrubberMarker[];
53
+ /** Optional quick-jump buttons shown in the header toolbar (hidden when `compact` is true). */
54
+ readonly actions?: readonly RangeScrubberAction[];
55
+ /** Render Prev / Next stepping buttons in the header toolbar (default `true`). */
56
+ readonly showStepButtons?: boolean;
57
+ readonly prevLabel?: string;
58
+ readonly nextLabel?: string;
59
+ readonly prevTitle?: string;
60
+ readonly nextTitle?: string;
61
+ /** Accessible label for the step/jump toolbar (default `"Range controls"`). */
62
+ readonly toolbarLabel?: string;
63
+ /** Compact narrow-tier mode: hides quick-jump `actions` while keeping Prev/Next and track. */
64
+ readonly compact?: boolean;
65
+ readonly disabled?: boolean;
66
+ readonly onChange: (nextValue: number) => void;
67
+ readonly className?: string;
68
+ }
69
+ /** Accessible range scrubber with Prev/Next stepping, quick-jump buttons, and event markers. */
70
+ export declare function RangeScrubber({ label, ariaLabel, valueText, value, min, max, step, minLabel, centerLabel, maxLabel, markers, actions, showStepButtons, prevLabel, nextLabel, prevTitle, nextTitle, toolbarLabel, compact, disabled, onChange, className, }: RangeScrubberProps): JSX.Element;
71
+ //# sourceMappingURL=range-scrubber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"range-scrubber.d.ts","sourceRoot":"","sources":["../../../src/src/preact/range-scrubber.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAGlC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC,QAAQ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,CAAC,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAClD,+FAA+F;IAC/F,QAAQ,CAAC,OAAO,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAClD,kFAAkF;IAClF,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IACnC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,+EAA+E;IAC/E,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,8FAA8F;IAC9F,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAC5B,QAAQ,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/C,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,gGAAgG;AAChG,wBAAgB,aAAa,CAAC,EAC5B,KAAK,EACL,SAAS,EACT,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,EACH,IAAQ,EACR,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,OAAY,EACZ,OAAY,EACZ,eAAsB,EACtB,SAAkB,EAClB,SAAkB,EAClB,SAAsB,EACtB,SAAkB,EAClB,YAA+B,EAC/B,OAAe,EACf,QAAgB,EAChB,QAAQ,EACR,SAAS,GACV,EAAE,kBAAkB,GAAG,GAAG,CAAC,OAAO,CA6HlC"}
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RangeScrubber = RangeScrubber;
4
+ const jsx_runtime_1 = require("preact/jsx-runtime");
5
+ const hooks_1 = require("preact/hooks");
6
+ const components_js_1 = require("./components.js");
7
+ /** Accessible range scrubber with Prev/Next stepping, quick-jump buttons, and event markers. */
8
+ function RangeScrubber({ label, ariaLabel, valueText, value, min, max, step = 1, minLabel, centerLabel, maxLabel, markers = [], actions = [], showStepButtons = true, prevLabel = "Prev", nextLabel = "Next", prevTitle = "Previous", nextTitle = "Next", toolbarLabel = "Range controls", compact = false, disabled = false, onChange, className, }) {
9
+ if (!Number.isFinite(min) || !Number.isFinite(max) || !Number.isFinite(value)) {
10
+ throw new TypeError("RangeScrubber min, max, and value must be finite numbers");
11
+ }
12
+ if (max < min) {
13
+ throw new RangeError("RangeScrubber max must be greater than or equal to min");
14
+ }
15
+ if (!Number.isFinite(step) || step <= 0) {
16
+ throw new RangeError("RangeScrubber step must be a positive finite number");
17
+ }
18
+ for (const marker of markers) {
19
+ if (!Number.isFinite(marker.positionPct)) {
20
+ throw new TypeError("RangeScrubber marker positionPct must be finite");
21
+ }
22
+ if (marker.positionPct < 0 || marker.positionPct > 100) {
23
+ throw new RangeError("RangeScrubber marker positionPct must be within [0, 100]");
24
+ }
25
+ }
26
+ const inputId = (0, hooks_1.useId)();
27
+ const clamped = Math.max(min, Math.min(max, value));
28
+ const span = max - min;
29
+ const progressPct = span > 0 ? Math.round(((clamped - min) / span) * 1000) / 10 : 100;
30
+ const isDisabled = disabled || span === 0;
31
+ const visibleActions = compact ? [] : actions;
32
+ const hasToolbar = showStepButtons || visibleActions.length > 0;
33
+ const hasBounds = minLabel !== undefined || centerLabel !== undefined || maxLabel !== undefined;
34
+ const stepBy = (delta) => {
35
+ const next = Math.max(min, Math.min(max, clamped + delta));
36
+ onChange(Number.isInteger(step) ? Math.round(next) : next);
37
+ };
38
+ return ((0, jsx_runtime_1.jsxs)("div", { class: classes("mcp-view-scrubber", className), "data-compact": String(compact), children: [(0, jsx_runtime_1.jsxs)("div", { class: "mcp-view-scrubber-header", children: [(0, jsx_runtime_1.jsx)("label", { class: "mcp-view-scrubber-heading", for: inputId, children: label }), hasToolbar && ((0, jsx_runtime_1.jsxs)(components_js_1.Toolbar, { label: toolbarLabel, className: "mcp-view-scrubber-actions", children: [showStepButtons && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(components_js_1.Button, { disabled: isDisabled || clamped <= min, title: prevTitle, onClick: () => stepBy(-step), children: prevLabel }), (0, jsx_runtime_1.jsx)(components_js_1.Button, { disabled: isDisabled || clamped >= max, title: nextTitle, onClick: () => stepBy(step), children: nextLabel })] })), visibleActions.map((action) => ((0, jsx_runtime_1.jsx)(components_js_1.Button, { pressed: action.pressed, disabled: disabled || action.disabled, title: action.title, onClick: () => onChange(action.value), children: action.label }, action.id)))] }))] }), (0, jsx_runtime_1.jsxs)("div", { class: "mcp-view-scrubber-track-wrap", children: [(0, jsx_runtime_1.jsx)("input", { id: inputId, type: "range", class: "mcp-view-scrubber-input", min: min, max: max, step: step, value: clamped, disabled: isDisabled, "aria-label": ariaLabel ?? label, "aria-valuetext": valueText, style: { "--mcp-view-scrubber-progress": `${progressPct}%` }, onInput: (event) => {
39
+ const next = Number.parseFloat(event.currentTarget.value);
40
+ if (Number.isFinite(next))
41
+ onChange(next);
42
+ } }), markers.length > 0 && ((0, jsx_runtime_1.jsx)("div", { class: "mcp-view-scrubber-markers", "aria-hidden": "true", children: markers.map((marker, idx) => {
43
+ const style = {
44
+ left: `${marker.positionPct}%`,
45
+ };
46
+ if (marker.color) {
47
+ style["--mcp-view-scrubber-marker-bg"] = marker.color;
48
+ }
49
+ return ((0, jsx_runtime_1.jsx)("span", { class: "mcp-view-scrubber-marker", "data-tone": marker.tone ?? "accent", "data-emphasized": marker.emphasized ? "true" : undefined, style: style }, marker.id ?? `m-${idx}`));
50
+ }) }))] }), hasBounds && ((0, jsx_runtime_1.jsxs)("div", { class: "mcp-view-scrubber-bounds", "aria-hidden": "true", children: [(0, jsx_runtime_1.jsx)("span", { children: minLabel ?? "" }), centerLabel !== undefined && (0, jsx_runtime_1.jsx)("span", { children: centerLabel }), (0, jsx_runtime_1.jsx)("span", { children: maxLabel ?? "" })] }))] }));
51
+ }
52
+ function classes(...names) {
53
+ return names.filter(Boolean).join(" ");
54
+ }
@@ -0,0 +1,63 @@
1
+ /** @jsxImportSource preact */
2
+ /**
3
+ * Multi-row 100% stacked horizontal distribution bar with optional interactive
4
+ * category selection and shared legend.
5
+ *
6
+ * Pure presentation: every percentage share, label, and inline caption is
7
+ * caller-supplied. Focus state is controlled by the caller (`focusedId`).
8
+ *
9
+ * @module
10
+ */
11
+ import type { JSX } from "preact";
12
+ import type { SeriesChartTone } from "./plots.js";
13
+ export interface StackedDistributionSegment {
14
+ /** Stable identifier shared across rows and legend (matched by `focusedId` / `onSelect`). */
15
+ readonly id: string;
16
+ /** Human-readable category label. */
17
+ readonly label: string;
18
+ /** Caller-supplied percentage share in `[0, 100]`. */
19
+ readonly sharePct: number;
20
+ /** Caller-formatted percentage string (e.g. `"34.2%"`), used in accessible labels and tooltips. */
21
+ readonly shareLabel: string;
22
+ /** Optional caller-formatted quantity string (e.g. `"14m 20s"`, `"1,240 mm"`). */
23
+ readonly valueLabel?: string;
24
+ /** Optional caller-formatted short caption rendered inside the segment when wide enough. */
25
+ readonly inlineLabel?: string;
26
+ /** Semantic or categorical theme tone. */
27
+ readonly tone?: SeriesChartTone;
28
+ /** Optional explicit CSS color or custom property (overrides `tone`). */
29
+ readonly color?: string;
30
+ /** Optional explicit tooltip text; defaults to `label: shareLabel` (+ `valueLabel`). */
31
+ readonly title?: string;
32
+ }
33
+ export interface StackedDistributionRow {
34
+ readonly id: string;
35
+ readonly label: string;
36
+ readonly segments: readonly StackedDistributionSegment[];
37
+ }
38
+ export interface StackedDistributionLegendItem {
39
+ readonly id: string;
40
+ readonly label: string;
41
+ readonly tone?: SeriesChartTone;
42
+ readonly color?: string;
43
+ }
44
+ export interface StackedDistributionBarProps {
45
+ /** Accessible name of the distribution figure. */
46
+ readonly label: string;
47
+ /** One or more rows of proportional segments. */
48
+ readonly rows: readonly StackedDistributionRow[];
49
+ /** Explicit legend entries; when omitted, deduplicated automatically from `rows`. */
50
+ readonly legend?: readonly StackedDistributionLegendItem[];
51
+ /** Whether to render the shared legend below the rows (default `true`). */
52
+ readonly showLegend?: boolean;
53
+ /** Accessible name for the legend group (default `"Distribution legend"`). */
54
+ readonly legendLabel?: string;
55
+ /** Controlled active category identifier (`null` / `undefined` = none focused). */
56
+ readonly focusedId?: string | null;
57
+ /** Selection handler; when omitted, segments and legend render as static read-only marks. */
58
+ readonly onSelect?: (id: string) => void;
59
+ readonly className?: string;
60
+ }
61
+ /** Stacked 100% horizontal distribution bars comparing proportional shares across rows. */
62
+ export declare function StackedDistributionBar({ label, rows, legend, showLegend, legendLabel, focusedId, onSelect, className, }: StackedDistributionBarProps): JSX.Element;
63
+ //# sourceMappingURL=stacked-distribution-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stacked-distribution-bar.d.ts","sourceRoot":"","sources":["../../../src/src/preact/stacked-distribution-bar.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,QAAQ,CAAC;AAClC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAElD,MAAM,WAAW,0BAA0B;IACzC,6FAA6F;IAC7F,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,sDAAsD;IACtD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,mGAAmG;IACnG,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,kFAAkF;IAClF,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,4FAA4F;IAC5F,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,CA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