@divami-artefacts/ai-design-system 1.0.8 → 1.0.9
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/components/areaLineChart/AreaLineChart.d.ts +2 -0
- package/dist/components/areaLineChart/index.d.ts +2 -0
- package/dist/components/{quotationTrend → areaLineChart}/types.d.ts +2 -2
- package/dist/components/balanceScaleChart/BalanceScaleChart.d.ts +2 -0
- package/dist/components/balanceScaleChart/index.d.ts +2 -0
- package/dist/components/balanceScaleChart/types.d.ts +6 -0
- package/dist/components/common/ChartEmptyState.d.ts +8 -0
- package/dist/components/dotMatrixChart/DotMatrixChart.d.ts +2 -0
- package/dist/components/dotMatrixChart/index.d.ts +2 -0
- package/dist/components/{ewCategory → dotMatrixChart}/types.d.ts +2 -2
- package/dist/components/hubAndSpokeRadialChart/HubAndSpokeRadialChart.d.ts +2 -0
- package/dist/components/hubAndSpokeRadialChart/index.d.ts +2 -0
- package/dist/components/{statusArc → hubAndSpokeRadialChart}/types.d.ts +1 -1
- package/dist/components/multiMetricConstellationChart/MultiMetricConstellationChart.d.ts +2 -0
- package/dist/components/multiMetricConstellationChart/index.d.ts +2 -0
- package/dist/components/multiMetricConstellationChart/types.d.ts +5 -0
- package/dist/components/progressRaceChart/ProgressRaceChart.d.ts +2 -0
- package/dist/components/progressRaceChart/index.d.ts +2 -0
- package/dist/components/{contractBars → progressRaceChart}/types.d.ts +2 -2
- package/dist/components/proportionalBandChart/ProportionalBandChart.d.ts +2 -0
- package/dist/components/proportionalBandChart/index.d.ts +2 -0
- package/dist/components/{severityBands → proportionalBandChart}/types.d.ts +1 -1
- package/dist/components/radialFanTreeChart/RadialFanTreeChart.d.ts +2 -0
- package/dist/components/radialFanTreeChart/index.d.ts +2 -0
- package/dist/components/{nceTree → radialFanTreeChart}/types.d.ts +2 -2
- package/dist/components/rankedCardLeaderboard/RankedCardLeaderboard.d.ts +2 -0
- package/dist/components/rankedCardLeaderboard/index.d.ts +2 -0
- package/dist/components/{contractorRank → rankedCardLeaderboard}/types.d.ts +2 -2
- package/dist/components/segmentedSplitBarChart/SegmentedSplitBarChart.d.ts +2 -0
- package/dist/components/segmentedSplitBarChart/index.d.ts +2 -0
- package/dist/components/{variationSplit → segmentedSplitBarChart}/types.d.ts +2 -2
- package/dist/components/semiCircularGaugeChart/SemiCircularGaugeChart.d.ts +2 -0
- package/dist/components/semiCircularGaugeChart/index.d.ts +2 -0
- package/dist/components/{compensationGauge → semiCircularGaugeChart}/types.d.ts +2 -2
- package/dist/components/stackedHorizontalBarChart/StackedHorizontalBarChart.d.ts +2 -0
- package/dist/components/stackedHorizontalBarChart/index.d.ts +2 -0
- package/dist/components/{contractValueOrb → stackedHorizontalBarChart}/types.d.ts +1 -1
- package/dist/components/trend/Trend.d.ts +1 -1
- package/dist/components/trend/types.d.ts +1 -1
- package/dist/components/weeklyFlow/WeeklyFlow.d.ts +1 -1
- package/dist/components/weeklyFlow/types.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +613 -520
- package/dist/mocks/workspace.mock.d.ts +3 -3
- package/dist/types/index.d.ts +28 -28
- package/package.json +8 -4
- package/dist/components/commitmentRace/CommitmentRace.d.ts +0 -2
- package/dist/components/commitmentRace/index.d.ts +0 -2
- package/dist/components/commitmentRace/types.d.ts +0 -5
- package/dist/components/compensationGauge/CompensationGauge.d.ts +0 -2
- package/dist/components/compensationGauge/index.d.ts +0 -2
- package/dist/components/contractBars/ContractBars.d.ts +0 -2
- package/dist/components/contractBars/index.d.ts +0 -2
- package/dist/components/contractValueOrb/ContractValueOrb.d.ts +0 -2
- package/dist/components/contractValueOrb/index.d.ts +0 -2
- package/dist/components/contractorRank/ContractorRank.d.ts +0 -2
- package/dist/components/contractorRank/index.d.ts +0 -2
- package/dist/components/ewCategory/EWCategory.d.ts +0 -2
- package/dist/components/ewCategory/index.d.ts +0 -2
- package/dist/components/nceTree/NCETree.d.ts +0 -2
- package/dist/components/nceTree/index.d.ts +0 -2
- package/dist/components/quotationBalance/QuotationBalance.d.ts +0 -2
- package/dist/components/quotationBalance/index.d.ts +0 -2
- package/dist/components/quotationBalance/types.d.ts +0 -6
- package/dist/components/quotationTrend/QuotationTrend.d.ts +0 -2
- package/dist/components/quotationTrend/index.d.ts +0 -2
- package/dist/components/severityBands/SeverityBands.d.ts +0 -2
- package/dist/components/severityBands/index.d.ts +0 -2
- package/dist/components/statusArc/StatusArc.d.ts +0 -2
- package/dist/components/statusArc/index.d.ts +0 -2
- package/dist/components/variationSplit/VariationSplit.d.ts +0 -2
- package/dist/components/variationSplit/index.d.ts +0 -2
- /package/dist/components/{commitmentRace → areaLineChart}/styles.d.ts +0 -0
- /package/dist/components/{compensationGauge → balanceScaleChart}/styles.d.ts +0 -0
- /package/dist/components/{contractBars → dotMatrixChart}/styles.d.ts +0 -0
- /package/dist/components/{contractorRank → hubAndSpokeRadialChart}/styles.d.ts +0 -0
- /package/dist/components/{ewCategory → multiMetricConstellationChart}/styles.d.ts +0 -0
- /package/dist/components/{nceTree → progressRaceChart}/styles.d.ts +0 -0
- /package/dist/components/{quotationBalance → proportionalBandChart}/styles.d.ts +0 -0
- /package/dist/components/{quotationTrend → radialFanTreeChart}/styles.d.ts +0 -0
- /package/dist/components/{severityBands → rankedCardLeaderboard}/styles.d.ts +0 -0
- /package/dist/components/{statusArc → segmentedSplitBarChart}/styles.d.ts +0 -0
- /package/dist/components/{variationSplit → semiCircularGaugeChart}/styles.d.ts +0 -0
- /package/dist/components/{contractValueOrb → stackedHorizontalBarChart}/styles.d.ts +0 -0
|
@@ -305,7 +305,7 @@ export declare const recommendationCards: {
|
|
|
305
305
|
timeframe: string;
|
|
306
306
|
}[];
|
|
307
307
|
export declare const contractData: {
|
|
308
|
-
|
|
308
|
+
items: {
|
|
309
309
|
id: string;
|
|
310
310
|
name: string;
|
|
311
311
|
abbreviation: string;
|
|
@@ -358,12 +358,12 @@ export declare const variationByContractor: {
|
|
|
358
358
|
unimplemented: number;
|
|
359
359
|
}[];
|
|
360
360
|
export declare const quotationSummary: {
|
|
361
|
-
|
|
361
|
+
left: {
|
|
362
362
|
value: number;
|
|
363
363
|
count: number;
|
|
364
364
|
label: string;
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
right: {
|
|
367
367
|
value: number;
|
|
368
368
|
count: number;
|
|
369
369
|
label: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -112,55 +112,55 @@ export type BaseVisualizationConfig = {
|
|
|
112
112
|
type: 'mini-bars';
|
|
113
113
|
rows: MiniBarRow[];
|
|
114
114
|
} | {
|
|
115
|
-
type: '
|
|
115
|
+
type: 'stacked-horizontal-bar-chart';
|
|
116
116
|
data: ContractData;
|
|
117
117
|
} | {
|
|
118
|
-
type: '
|
|
119
|
-
|
|
118
|
+
type: 'multi-metric-constellation-chart';
|
|
119
|
+
items: ContractorRow[];
|
|
120
120
|
} | {
|
|
121
|
-
type: '
|
|
122
|
-
|
|
121
|
+
type: 'progress-race-chart';
|
|
122
|
+
items: ContractorRow[];
|
|
123
123
|
} | {
|
|
124
|
-
type: '
|
|
124
|
+
type: 'hub-and-spoke-radial-chart';
|
|
125
125
|
segments: EWStatusRow[];
|
|
126
126
|
title?: string;
|
|
127
127
|
} | {
|
|
128
|
-
type: '
|
|
129
|
-
|
|
128
|
+
type: 'dot-matrix-chart';
|
|
129
|
+
items: EWCategoryRow[];
|
|
130
130
|
title?: string;
|
|
131
131
|
} | {
|
|
132
|
-
type: '
|
|
133
|
-
|
|
132
|
+
type: 'ranked-card-leaderboard';
|
|
133
|
+
items: EWOpenContractorRow[];
|
|
134
134
|
title?: string;
|
|
135
135
|
} | {
|
|
136
|
-
type: '
|
|
136
|
+
type: 'proportional-band-chart';
|
|
137
137
|
severities: EWSeverityRow[];
|
|
138
138
|
title?: string;
|
|
139
139
|
} | {
|
|
140
|
-
type: '
|
|
140
|
+
type: 'radial-fan-tree-chart';
|
|
141
141
|
total: number;
|
|
142
|
-
|
|
142
|
+
items: NCEContractorRow[];
|
|
143
143
|
} | {
|
|
144
|
-
type: '
|
|
145
|
-
|
|
144
|
+
type: 'semi-circular-gauge-chart';
|
|
145
|
+
value: number;
|
|
146
146
|
confirmed: number;
|
|
147
147
|
total: number;
|
|
148
148
|
} | {
|
|
149
|
-
type: '
|
|
150
|
-
|
|
149
|
+
type: 'segmented-split-bar-chart';
|
|
150
|
+
items: VariationRow[];
|
|
151
151
|
} | {
|
|
152
|
-
type: '
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
type: 'balance-scale-chart';
|
|
153
|
+
left: QuotationSide;
|
|
154
|
+
right: QuotationSide;
|
|
155
155
|
} | {
|
|
156
|
-
type: '
|
|
157
|
-
|
|
156
|
+
type: 'area-line-chart';
|
|
157
|
+
points: QuotationTrendPoint[];
|
|
158
158
|
} | {
|
|
159
159
|
type: 'trend-view';
|
|
160
|
-
|
|
160
|
+
points: QuotationTrendPoint[];
|
|
161
161
|
} | {
|
|
162
162
|
type: 'weekly-flow';
|
|
163
|
-
|
|
163
|
+
items: ContractorRow[];
|
|
164
164
|
};
|
|
165
165
|
export type VisualizationRendererProps = {
|
|
166
166
|
config: BaseVisualizationConfig;
|
|
@@ -176,12 +176,12 @@ export type ContractorRow = {
|
|
|
176
176
|
percentage?: number;
|
|
177
177
|
};
|
|
178
178
|
export type ContractData = {
|
|
179
|
-
|
|
179
|
+
items: (ContractorRow | number | null)[];
|
|
180
180
|
totals?: {
|
|
181
181
|
base?: number;
|
|
182
182
|
variation?: number;
|
|
183
183
|
total?: number;
|
|
184
|
-
};
|
|
184
|
+
} | null;
|
|
185
185
|
};
|
|
186
186
|
export type EWStatusRow = {
|
|
187
187
|
status: string;
|
|
@@ -226,8 +226,8 @@ export type QuotationSide = {
|
|
|
226
226
|
label: string;
|
|
227
227
|
};
|
|
228
228
|
export type QuotationSummary = {
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
left: QuotationSide;
|
|
230
|
+
right: QuotationSide;
|
|
231
231
|
};
|
|
232
232
|
export type QuotationTrendPoint = {
|
|
233
233
|
week: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@divami-artefacts/ai-design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -33,9 +33,10 @@
|
|
|
33
33
|
"react-dom": ">=18.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"react": "^19.2.4",
|
|
37
|
-
"react-dom": "^19.2.4",
|
|
38
36
|
"@eslint/js": "^9.39.4",
|
|
37
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
38
|
+
"@testing-library/react": "^16.3.2",
|
|
39
|
+
"@types/jest": "^30.0.0",
|
|
39
40
|
"@types/node": "^24.12.0",
|
|
40
41
|
"@types/react": "^19.2.14",
|
|
41
42
|
"@types/react-dom": "^19.2.3",
|
|
@@ -44,10 +45,13 @@
|
|
|
44
45
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
45
46
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
46
47
|
"globals": "^17.4.0",
|
|
48
|
+
"jest": "^30.3.0",
|
|
49
|
+
"react": "^19.2.4",
|
|
50
|
+
"react-dom": "^19.2.4",
|
|
51
|
+
"ts-jest": "^29.4.9",
|
|
47
52
|
"typescript": "~5.9.3",
|
|
48
53
|
"typescript-eslint": "^8.57.0",
|
|
49
54
|
"vite": "^8.0.1",
|
|
50
55
|
"vite-plugin-dts": "^4.5.4"
|
|
51
56
|
}
|
|
52
57
|
}
|
|
53
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|