anentrypoint-design 0.0.357 → 0.0.358

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anentrypoint-design",
3
- "version": "0.0.357",
3
+ "version": "0.0.358",
4
4
  "description": "247420 design system SDK — webjsx + modified ripple-ui, single-file ESM bundle for reproducible use of the AnEntrypoint design.",
5
5
  "type": "module",
6
6
  "main": "./dist/247420.js",
@@ -70,6 +70,20 @@ export function BarRow({ label, value, pct = 0, tone } = {}) {
70
70
  h('span', { class: 'ds-bar-row-value', 'aria-hidden': 'true' }, value));
71
71
  }
72
72
 
73
+ // ---------------------------------------------------------------------------
74
+ // RateCell — a tone-colored numeric cell for dense admin/observability tables
75
+ // (percentile latency columns, success-rate columns). Ported from docstudio's
76
+ // admin-observability-views.js endpointsView() success-rate coloring, which
77
+ // had no kit equivalent: a plain Table cell has no notion of a value implying
78
+ // good/warn/bad. Host computes the tone (this component has no opinion on
79
+ // thresholds, matching Table's onSort host-owns-logic convention) and passes
80
+ // it plus the display text; renders inline so it drops into any Table row.
81
+ // ---------------------------------------------------------------------------
82
+ export function RateCell({ value, tone = 'neutral' } = {}) {
83
+ const cls = 'ds-rate-cell ds-rate-cell-' + tone;
84
+ return h('span', { class: cls }, value == null ? '–' : String(value));
85
+ }
86
+
73
87
  // ---------------------------------------------------------------------------
74
88
  // StatTile / StatsGrid — compact KPI tiles, denser than the existing .kpi.
75
89
  // cls on StatTile selects an accent variant: '' | 'rate-big' | 'err-rate'.
package/src/components.js CHANGED
@@ -35,6 +35,11 @@ export { ContextPane } from './components/context-pane.js';
35
35
 
36
36
  export { SpreadsheetPreview } from './components/spreadsheet-preview.js';
37
37
 
38
+ export {
39
+ DEFAULT_PHASES, PhaseWalk, TreeNode, BarRow, RateCell,
40
+ StatTile, StatsGrid, SubGrid, SessionRow, DevRow, LiveLogEntry, LiveLog
41
+ } from './components/data-density.js';
42
+
38
43
  export {
39
44
  fileGlyph, fmtFileSize,
40
45
  FileIcon, FileRow, FileGrid, FileSkeleton, sortFiles, FileToolbar, RootsPicker,
@@ -77,6 +77,16 @@
77
77
  .ds-stat-val.err-rate { font-size: clamp(24px, 7cqi, 32px); color: var(--warn); }
78
78
  .ds-stat-lbl { font-size: var(--fs-micro); color: var(--fg-3); margin-top: 2px; }
79
79
 
80
+ /* RateCell — tone-colored numeric table cell (success-rate / percentile-latency
81
+ columns), ported from docstudio's endpointsView() success-rate coloring.
82
+ Neutral at rest; color carries meaning only, matching Table's sortable-header
83
+ restraint pattern. */
84
+ .ds-rate-cell { font-variant-numeric: tabular-nums; font-weight: 600; }
85
+ .ds-rate-cell-neutral { color: var(--fg-2); font-weight: 400; }
86
+ .ds-rate-cell-good { color: var(--success); }
87
+ .ds-rate-cell-warn { color: var(--warn); }
88
+ .ds-rate-cell-bad { color: var(--danger); }
89
+
80
90
  /* Inline row — flex row with centered items and a small gap, for demo/kit
81
91
  markup that needs to lay siblings out horizontally without an inline style. */
82
92
  .ds-inline-row { display: flex; align-items: center; gap: var(--space-2, 8px); }