@contractspec/lib.design-system 3.0.0 → 3.2.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/dist/browser/index.js +1409 -1065
- package/dist/components/atoms/RankBadge.d.ts +11 -0
- package/dist/components/atoms/ScoreBar.d.ts +13 -0
- package/dist/components/molecules/DimensionScoresCard.d.ts +13 -0
- package/dist/components/organisms/ModelComparisonView.d.ts +17 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +1409 -1065
- package/package.json +14 -14
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const badgeVariants: (props?: ({
|
|
3
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export type RankBadgeProps = VariantProps<typeof badgeVariants> & {
|
|
6
|
+
rank: number;
|
|
7
|
+
previousRank?: number | null;
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare function RankBadge({ rank, previousRank, size, className, }: RankBadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
+
declare const sizeVariants: (props?: ({
|
|
3
|
+
size?: "sm" | "lg" | "md" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
|
+
export type ScoreBarProps = VariantProps<typeof sizeVariants> & {
|
|
6
|
+
score: number;
|
|
7
|
+
label?: string;
|
|
8
|
+
maxScore?: number;
|
|
9
|
+
showValue?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function ScoreBar({ score, label, maxScore, showValue, size, className, }: ScoreBarProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ScoreBarProps } from '../atoms/ScoreBar';
|
|
2
|
+
export interface DimensionScore {
|
|
3
|
+
score: number;
|
|
4
|
+
confidence: number;
|
|
5
|
+
sources: string[];
|
|
6
|
+
}
|
|
7
|
+
export interface DimensionScoresCardProps {
|
|
8
|
+
dimensionScores: Partial<Record<string, DimensionScore>>;
|
|
9
|
+
title?: string;
|
|
10
|
+
size?: ScoreBarProps['size'];
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function DimensionScoresCard({ dimensionScores, title, size, className, }: DimensionScoresCardProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type DimensionScore } from '../molecules/DimensionScoresCard';
|
|
2
|
+
export interface ComparisonModel {
|
|
3
|
+
modelId: string;
|
|
4
|
+
providerKey: string;
|
|
5
|
+
displayName?: string;
|
|
6
|
+
compositeScore: number;
|
|
7
|
+
rank: number;
|
|
8
|
+
previousRank?: number | null;
|
|
9
|
+
dimensionScores: Partial<Record<string, DimensionScore>>;
|
|
10
|
+
updatedAt?: string | Date;
|
|
11
|
+
}
|
|
12
|
+
export interface ModelComparisonViewProps {
|
|
13
|
+
models: ComparisonModel[];
|
|
14
|
+
title?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare function ModelComparisonView({ models, title, className, }: ModelComparisonViewProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -10,6 +10,8 @@ export { EmptyState } from './components/atoms/EmptyState';
|
|
|
10
10
|
export { Stepper } from './components/atoms/Stepper';
|
|
11
11
|
export { EditButton, DeleteButton, ViewButton, ToggleButton, ToggleLeftButton, ToggleRightButton, } from './components/atoms/ActionButtons';
|
|
12
12
|
export { DateChip, TimeChip, PlaceChip, DurationChip, } from './components/atoms/DataChips';
|
|
13
|
+
export { ScoreBar, type ScoreBarProps } from './components/atoms/ScoreBar';
|
|
14
|
+
export { RankBadge, type RankBadgeProps } from './components/atoms/RankBadge';
|
|
13
15
|
export { NavMain } from './components/molecules/NavMain';
|
|
14
16
|
export { NavUser } from './components/molecules/NavUser';
|
|
15
17
|
export { ApprovalQueue } from './components/agent/ApprovalQueue';
|
|
@@ -44,6 +46,7 @@ export { CommandSearchTrigger } from './components/molecules/CommandSearchTrigge
|
|
|
44
46
|
export { StatusChip } from './components/molecules/StatusChip';
|
|
45
47
|
export { EntityCard, type EntityCardProps, type EntityCardIconTone, } from './components/molecules/EntityCard';
|
|
46
48
|
export { StatCard, StatCardGroup } from './components/molecules/StatCard';
|
|
49
|
+
export { DimensionScoresCard, type DimensionScoresCardProps, type DimensionScore as DimensionScoreDisplay, } from './components/molecules/DimensionScoresCard';
|
|
47
50
|
export { OverviewCard } from './components/molecules/OverviewCard';
|
|
48
51
|
export { HoverPreview } from './components/molecules/HoverPreview';
|
|
49
52
|
export { HoverPreviewSimple } from './components/molecules/hover-previews/Simple';
|
|
@@ -68,6 +71,7 @@ export { ListPageTemplate } from './components/templates/lists/ListPageTemplate'
|
|
|
68
71
|
export { AiLinkButton } from './components/molecules/AiLinkButton';
|
|
69
72
|
export { EmptyDataList } from './components/organisms/EmptyDataList';
|
|
70
73
|
export { EmptySearchResult } from './components/organisms/EmptySearchResult';
|
|
74
|
+
export { ModelComparisonView, type ModelComparisonViewProps, type ComparisonModel, } from './components/organisms/ModelComparisonView';
|
|
71
75
|
export { LoaderCircular } from './components/atoms/LoaderCircular';
|
|
72
76
|
export { LoaderBlock } from './components/molecules/LoaderBlock';
|
|
73
77
|
export { SkeletonBlock } from './components/molecules/SkeletonBlock';
|