@mt-gloss/ui 0.1.27 → 0.1.29

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/internals.js CHANGED
@@ -1,7 +1,7 @@
1
- import { b as B } from "./UIContext-C3E-k7HI.js";
2
- import { F as A, I, G as H, H as M, af as $, ah as R, c as E, h as F, t as O, D as U, w as z, x as W, v as L, y as j, A as G, z as V, k as X, ai as Z, a7 as q, aa as J, a9 as K, a8 as Q, ab as Y, Q as aa, W as sa, X as ea, V as oa, a0 as ta, a1 as la, e as ra, a4 as ia, a6 as da, a5 as na, g as ca, i as Ba, aj as ga, a3 as ba, J as ma, M as ua, K as pa, L as ya, a2 as ha, B as _a, ag as fa, l as va, ac as Ca, O as ka, P as Da, n as Ta, p as wa, r as xa, q as Sa, o as Na, s as Pa, d as Aa, ad as Ia, j as Ha, Y as Ma, $ as $a, _ as Ra, ae as Ea, m as Fa, N as Oa, f as Ua, C as za, E as Wa, R as La, S as ja, T as Ga, a as Va, U as Xa, Z as Za, u as qa } from "./UIContext-C3E-k7HI.js";
1
+ import { d as B } from "./UIContext-CDdyubSF.js";
2
+ import { G as A, J as I, H, I as M, af as $, ah as R, a as E, i as F, v as O, F as U, x as z, y as W, w as L, z as j, D as G, A as V, l as X, ai as Z, a8 as q, ab as J, aa as K, a9 as Q, ac as Y, V as aa, X as sa, Y as ea, W as oa, a1 as ta, a2 as la, f as ra, a5 as ia, a7 as da, a6 as na, h as ca, j as Ba, aj as ga, a4 as ba, K as ma, N as ua, L as pa, M as ya, a3 as ha, B as _a, ag as fa, m as va, ad as Ca, P as ka, Q as Da, o as Ta, q as wa, s as xa, r as Sa, p as Na, t as Pa, e as Aa, b as Ia, k as Ha, _ as Ma, a0 as $a, $ as Ra, ae as Ea, n as Fa, O as Oa, g as Ua, C as za, E as Wa, R as La, S as ja, T as Ga, c as Va, U as Xa, Z as Za, u as qa } from "./UIContext-CDdyubSF.js";
3
3
  import { jsx as d, jsxs as g, Fragment as b } from "react/jsx-runtime";
4
- import { c as Ka, e as Qa, d as Ya, B as as, b as ss, a as es } from "./BaseAsyncButton-usdApZUY.js";
4
+ import { c as Ka, e as Qa, d as Ya, B as as, b as ss, a as es } from "./BaseAsyncButton-DAeHnhMt.js";
5
5
  const T = {
6
6
  DurationFast: "var(--gloss-motion-duration-fast)",
7
7
  DurationNormal: "var(--gloss-motion-duration-normal)",
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ export type ExceptionCondition = 'lt' | 'gt' | 'eq' | 'gte' | 'lte';
3
+ export interface ExceptionRule {
4
+ sourceMetricId: string;
5
+ condition: ExceptionCondition;
6
+ threshold: number;
7
+ }
8
+ export interface ExceptionRow {
9
+ id: string;
10
+ name: string;
11
+ sourceValue: number;
12
+ severity: 'info' | 'warn' | 'critical';
13
+ value: React.ReactNode;
14
+ }
15
+ export interface ExceptionListCardProps {
16
+ label: string;
17
+ rows: ExceptionRow[];
18
+ rule: ExceptionRule;
19
+ rowCount?: 3 | 5;
20
+ emptyStateLabel?: string;
21
+ ruleSubtitle?: string;
22
+ isStale?: boolean;
23
+ }
24
+ /**
25
+ * ExceptionListCard — layout-stable sibling of LeaderboardCard.
26
+ * Empty branch renders Zone A + centered emptyStateLabel + Zone C — card stays at full size (never auto-hides).
27
+ */
28
+ export declare function ExceptionListCard({ label, rows, rule, rowCount, emptyStateLabel, ruleSubtitle, isStale, }: ExceptionListCardProps): import("react/jsx-runtime").JSX.Element;
29
+ export declare namespace ExceptionListCard {
30
+ var displayName: string;
31
+ }
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const ExceptionListTilePreview: React.FC;
@@ -0,0 +1,3 @@
1
+ export { ExceptionListCard } from './ExceptionListCard';
2
+ export type { ExceptionListCardProps, ExceptionRule, ExceptionRow, ExceptionCondition, } from './ExceptionListCard';
3
+ export { ExceptionListTilePreview } from './ExceptionListTilePreview';
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+ export interface LeaderboardRow {
3
+ id: string;
4
+ name: string;
5
+ value: React.ReactNode;
6
+ magnitude: number;
7
+ isBottom?: boolean;
8
+ rankDelta: number | 'new';
9
+ direction?: 'up' | 'down' | 'flat';
10
+ }
11
+ export interface LeaderboardCardProps {
12
+ label: string;
13
+ rows: LeaderboardRow[];
14
+ rowCount?: 3 | 5;
15
+ rankDeltaPeriod?: 'WoW' | 'MoM' | 'QoQ';
16
+ isStale?: boolean;
17
+ }
18
+ /**
19
+ * LeaderboardCard — Zone A label + Zone B entity rows + Zone C rank-change period.
20
+ * Returns a fragment; consumer wraps with CardShell per MetricCard.tsx L436-468 pattern.
21
+ * rankDeltaPeriod resolution order (consumer): instance ?? definition ?? 'WoW'.
22
+ */
23
+ export declare function LeaderboardCard({ label, rows, rowCount, rankDeltaPeriod, isStale, }: LeaderboardCardProps): import("react/jsx-runtime").JSX.Element;
24
+ export declare namespace LeaderboardCard {
25
+ var displayName: string;
26
+ }
@@ -0,0 +1,2 @@
1
+ import * as React from 'react';
2
+ export declare const LeaderboardTilePreview: React.FC;
@@ -0,0 +1,3 @@
1
+ export { LeaderboardCard } from './LeaderboardCard';
2
+ export type { LeaderboardCardProps, LeaderboardRow } from './LeaderboardCard';
3
+ export { LeaderboardTilePreview } from './LeaderboardTilePreview';
@@ -19,6 +19,7 @@ export interface PaceCardProps {
19
19
  paceGapUnit?: 'pct' | 'usd';
20
20
  onTargetChange: (value: number) => void;
21
21
  onTargetSkip?: () => void;
22
+ onRemove?: () => void;
22
23
  isStale?: boolean;
23
24
  }
24
25
  export declare const PaceCard: React.FC<PaceCardProps>;
@@ -31,4 +31,7 @@ export type { GapReadoutProps, GapSeverity } from './PaceCard/GapReadout';
31
31
  export * from './LensChipGroup';
32
32
  export * from './StarterRail';
33
33
  export * from './MoreInLensRail';
34
+ export * from './rows';
35
+ export * from './LeaderboardCard';
36
+ export * from './ExceptionListCard';
34
37
  export * from './gridMotionPrimitives';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mt-gloss/ui",
3
- "version": "0.1.27",
3
+ "version": "0.1.29",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "restricted"