@divami-artefacts/ai-design-system 1.0.7 → 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.
Files changed (84) hide show
  1. package/dist/components/areaLineChart/AreaLineChart.d.ts +2 -0
  2. package/dist/components/areaLineChart/index.d.ts +2 -0
  3. package/dist/components/{quotationTrend → areaLineChart}/types.d.ts +2 -2
  4. package/dist/components/balanceScaleChart/BalanceScaleChart.d.ts +2 -0
  5. package/dist/components/balanceScaleChart/index.d.ts +2 -0
  6. package/dist/components/balanceScaleChart/types.d.ts +6 -0
  7. package/dist/components/common/ChartEmptyState.d.ts +8 -0
  8. package/dist/components/dotMatrixChart/DotMatrixChart.d.ts +2 -0
  9. package/dist/components/dotMatrixChart/index.d.ts +2 -0
  10. package/dist/components/{ewCategory → dotMatrixChart}/types.d.ts +2 -2
  11. package/dist/components/hubAndSpokeRadialChart/HubAndSpokeRadialChart.d.ts +2 -0
  12. package/dist/components/hubAndSpokeRadialChart/index.d.ts +2 -0
  13. package/dist/components/{statusArc → hubAndSpokeRadialChart}/types.d.ts +1 -1
  14. package/dist/components/multiMetricConstellationChart/MultiMetricConstellationChart.d.ts +2 -0
  15. package/dist/components/multiMetricConstellationChart/index.d.ts +2 -0
  16. package/dist/components/multiMetricConstellationChart/types.d.ts +5 -0
  17. package/dist/components/progressRaceChart/ProgressRaceChart.d.ts +2 -0
  18. package/dist/components/progressRaceChart/index.d.ts +2 -0
  19. package/dist/components/{contractBars → progressRaceChart}/types.d.ts +2 -2
  20. package/dist/components/proportionalBandChart/ProportionalBandChart.d.ts +2 -0
  21. package/dist/components/proportionalBandChart/index.d.ts +2 -0
  22. package/dist/components/{severityBands → proportionalBandChart}/types.d.ts +1 -1
  23. package/dist/components/radialFanTreeChart/RadialFanTreeChart.d.ts +2 -0
  24. package/dist/components/radialFanTreeChart/index.d.ts +2 -0
  25. package/dist/components/{nceTree → radialFanTreeChart}/types.d.ts +2 -2
  26. package/dist/components/rankedCardLeaderboard/RankedCardLeaderboard.d.ts +2 -0
  27. package/dist/components/rankedCardLeaderboard/index.d.ts +2 -0
  28. package/dist/components/{contractorRank → rankedCardLeaderboard}/types.d.ts +2 -2
  29. package/dist/components/segmentedSplitBarChart/SegmentedSplitBarChart.d.ts +2 -0
  30. package/dist/components/segmentedSplitBarChart/index.d.ts +2 -0
  31. package/dist/components/{variationSplit → segmentedSplitBarChart}/types.d.ts +2 -2
  32. package/dist/components/semiCircularGaugeChart/SemiCircularGaugeChart.d.ts +2 -0
  33. package/dist/components/semiCircularGaugeChart/index.d.ts +2 -0
  34. package/dist/components/{compensationGauge → semiCircularGaugeChart}/types.d.ts +2 -2
  35. package/dist/components/stackedHorizontalBarChart/StackedHorizontalBarChart.d.ts +2 -0
  36. package/dist/components/stackedHorizontalBarChart/index.d.ts +2 -0
  37. package/dist/components/{contractValueOrb → stackedHorizontalBarChart}/types.d.ts +1 -1
  38. package/dist/components/trend/Trend.d.ts +1 -1
  39. package/dist/components/trend/types.d.ts +1 -1
  40. package/dist/components/weeklyFlow/WeeklyFlow.d.ts +1 -1
  41. package/dist/components/weeklyFlow/types.d.ts +1 -1
  42. package/dist/index.cjs +1 -1
  43. package/dist/index.js +614 -520
  44. package/dist/mocks/workspace.mock.d.ts +3 -3
  45. package/dist/types/index.d.ts +28 -28
  46. package/package.json +8 -4
  47. package/dist/components/commitmentRace/CommitmentRace.d.ts +0 -2
  48. package/dist/components/commitmentRace/index.d.ts +0 -2
  49. package/dist/components/commitmentRace/types.d.ts +0 -5
  50. package/dist/components/compensationGauge/CompensationGauge.d.ts +0 -2
  51. package/dist/components/compensationGauge/index.d.ts +0 -2
  52. package/dist/components/contractBars/ContractBars.d.ts +0 -2
  53. package/dist/components/contractBars/index.d.ts +0 -2
  54. package/dist/components/contractValueOrb/ContractValueOrb.d.ts +0 -2
  55. package/dist/components/contractValueOrb/index.d.ts +0 -2
  56. package/dist/components/contractorRank/ContractorRank.d.ts +0 -2
  57. package/dist/components/contractorRank/index.d.ts +0 -2
  58. package/dist/components/ewCategory/EWCategory.d.ts +0 -2
  59. package/dist/components/ewCategory/index.d.ts +0 -2
  60. package/dist/components/nceTree/NCETree.d.ts +0 -2
  61. package/dist/components/nceTree/index.d.ts +0 -2
  62. package/dist/components/quotationBalance/QuotationBalance.d.ts +0 -2
  63. package/dist/components/quotationBalance/index.d.ts +0 -2
  64. package/dist/components/quotationBalance/types.d.ts +0 -6
  65. package/dist/components/quotationTrend/QuotationTrend.d.ts +0 -2
  66. package/dist/components/quotationTrend/index.d.ts +0 -2
  67. package/dist/components/severityBands/SeverityBands.d.ts +0 -2
  68. package/dist/components/severityBands/index.d.ts +0 -2
  69. package/dist/components/statusArc/StatusArc.d.ts +0 -2
  70. package/dist/components/statusArc/index.d.ts +0 -2
  71. package/dist/components/variationSplit/VariationSplit.d.ts +0 -2
  72. package/dist/components/variationSplit/index.d.ts +0 -2
  73. /package/dist/components/{commitmentRace → areaLineChart}/styles.d.ts +0 -0
  74. /package/dist/components/{compensationGauge → balanceScaleChart}/styles.d.ts +0 -0
  75. /package/dist/components/{contractBars → dotMatrixChart}/styles.d.ts +0 -0
  76. /package/dist/components/{contractorRank → hubAndSpokeRadialChart}/styles.d.ts +0 -0
  77. /package/dist/components/{ewCategory → multiMetricConstellationChart}/styles.d.ts +0 -0
  78. /package/dist/components/{nceTree → progressRaceChart}/styles.d.ts +0 -0
  79. /package/dist/components/{quotationBalance → proportionalBandChart}/styles.d.ts +0 -0
  80. /package/dist/components/{quotationTrend → radialFanTreeChart}/styles.d.ts +0 -0
  81. /package/dist/components/{severityBands → rankedCardLeaderboard}/styles.d.ts +0 -0
  82. /package/dist/components/{statusArc → segmentedSplitBarChart}/styles.d.ts +0 -0
  83. /package/dist/components/{variationSplit → semiCircularGaugeChart}/styles.d.ts +0 -0
  84. /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
- contractors: {
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
- accepted: {
361
+ left: {
362
362
  value: number;
363
363
  count: number;
364
364
  label: string;
365
365
  };
366
- submitted: {
366
+ right: {
367
367
  value: number;
368
368
  count: number;
369
369
  label: string;
@@ -112,55 +112,55 @@ export type BaseVisualizationConfig = {
112
112
  type: 'mini-bars';
113
113
  rows: MiniBarRow[];
114
114
  } | {
115
- type: 'contract-value-orb';
115
+ type: 'stacked-horizontal-bar-chart';
116
116
  data: ContractData;
117
117
  } | {
118
- type: 'contract-bars';
119
- contractors: ContractorRow[];
118
+ type: 'multi-metric-constellation-chart';
119
+ items: ContractorRow[];
120
120
  } | {
121
- type: 'commitment-race';
122
- contractors: ContractorRow[];
121
+ type: 'progress-race-chart';
122
+ items: ContractorRow[];
123
123
  } | {
124
- type: 'status-arc';
124
+ type: 'hub-and-spoke-radial-chart';
125
125
  segments: EWStatusRow[];
126
126
  title?: string;
127
127
  } | {
128
- type: 'ew-category';
129
- categories: EWCategoryRow[];
128
+ type: 'dot-matrix-chart';
129
+ items: EWCategoryRow[];
130
130
  title?: string;
131
131
  } | {
132
- type: 'contractor-rank';
133
- contractors: EWOpenContractorRow[];
132
+ type: 'ranked-card-leaderboard';
133
+ items: EWOpenContractorRow[];
134
134
  title?: string;
135
135
  } | {
136
- type: 'severity-bands';
136
+ type: 'proportional-band-chart';
137
137
  severities: EWSeverityRow[];
138
138
  title?: string;
139
139
  } | {
140
- type: 'nce-tree';
140
+ type: 'radial-fan-tree-chart';
141
141
  total: number;
142
- byContractor: NCEContractorRow[];
142
+ items: NCEContractorRow[];
143
143
  } | {
144
- type: 'compensation-gauge';
145
- pct: number;
144
+ type: 'semi-circular-gauge-chart';
145
+ value: number;
146
146
  confirmed: number;
147
147
  total: number;
148
148
  } | {
149
- type: 'variation-split';
150
- contractors: VariationRow[];
149
+ type: 'segmented-split-bar-chart';
150
+ items: VariationRow[];
151
151
  } | {
152
- type: 'quotation-balance';
153
- accepted: QuotationSide;
154
- submitted: QuotationSide;
152
+ type: 'balance-scale-chart';
153
+ left: QuotationSide;
154
+ right: QuotationSide;
155
155
  } | {
156
- type: 'quotation-trend';
157
- trend: QuotationTrendPoint[];
156
+ type: 'area-line-chart';
157
+ points: QuotationTrendPoint[];
158
158
  } | {
159
159
  type: 'trend-view';
160
- trend: QuotationTrendPoint[];
160
+ points: QuotationTrendPoint[];
161
161
  } | {
162
162
  type: 'weekly-flow';
163
- contractors: ContractorRow[];
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
- contractors: ContractorRow[];
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
- accepted: QuotationSide;
230
- submitted: QuotationSide;
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.7",
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
-
@@ -1,2 +0,0 @@
1
- import { CommitmentRaceProps } from './types';
2
- export declare function CommitmentRace({ contractors, 'data-testid': testId }: CommitmentRaceProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { CommitmentRace } from './CommitmentRace';
2
- export type { CommitmentRaceProps } from './types';
@@ -1,5 +0,0 @@
1
- import { ContractorRow } from '../../types';
2
- export interface CommitmentRaceProps {
3
- contractors: ContractorRow[];
4
- 'data-testid'?: string;
5
- }
@@ -1,2 +0,0 @@
1
- import { CompensationGaugeProps } from './types';
2
- export declare function CompensationGauge({ pct, confirmed, total, 'data-testid': testId }: CompensationGaugeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { CompensationGauge } from './CompensationGauge';
2
- export type { CompensationGaugeProps } from './types';
@@ -1,2 +0,0 @@
1
- import { ContractBarsProps } from './types';
2
- export declare function ContractBars({ contractors, 'data-testid': testId }: ContractBarsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { ContractBars } from './ContractBars';
2
- export type { ContractBarsProps } from './types';
@@ -1,2 +0,0 @@
1
- import { ContractValueOrbProps } from './types';
2
- export declare function ContractValueOrb({ data, 'data-testid': testId }: ContractValueOrbProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { ContractValueOrb } from './ContractValueOrb';
2
- export type { ContractValueOrbProps } from './types';
@@ -1,2 +0,0 @@
1
- import { ContractorRankProps } from './types';
2
- export declare function ContractorRank({ contractors, 'data-testid': testId }: ContractorRankProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { ContractorRank } from './ContractorRank';
2
- export type { ContractorRankProps } from './types';
@@ -1,2 +0,0 @@
1
- import { EWCategoryProps } from './types';
2
- export declare function EWCategory({ categories, 'data-testid': testId }: EWCategoryProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { EWCategory } from './EWCategory';
2
- export type { EWCategoryProps } from './types';
@@ -1,2 +0,0 @@
1
- import { NCETreeProps } from './types';
2
- export declare function NCETree({ total, byContractor, 'data-testid': testId }: NCETreeProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { NCETree } from './NCETree';
2
- export type { NCETreeProps } from './types';
@@ -1,2 +0,0 @@
1
- import { QuotationBalanceProps } from './types';
2
- export declare function QuotationBalance({ accepted, submitted, 'data-testid': testId }: QuotationBalanceProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { QuotationBalance } from './QuotationBalance';
2
- export type { QuotationBalanceProps } from './types';
@@ -1,6 +0,0 @@
1
- import { QuotationSide } from '../../types';
2
- export interface QuotationBalanceProps {
3
- accepted: QuotationSide;
4
- submitted: QuotationSide;
5
- 'data-testid'?: string;
6
- }
@@ -1,2 +0,0 @@
1
- import { QuotationTrendProps } from './types';
2
- export declare function QuotationTrend({ trend, 'data-testid': testId }: QuotationTrendProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { QuotationTrend } from './QuotationTrend';
2
- export type { QuotationTrendProps } from './types';
@@ -1,2 +0,0 @@
1
- import { SeverityBandsProps } from './types';
2
- export declare function SeverityBands({ severities, 'data-testid': testId }: SeverityBandsProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { SeverityBands } from './SeverityBands';
2
- export type { SeverityBandsProps } from './types';
@@ -1,2 +0,0 @@
1
- import { StatusArcProps } from './types';
2
- export declare function StatusArc({ segments, title, 'data-testid': testId }: StatusArcProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { StatusArc } from './StatusArc';
2
- export type { StatusArcProps, StatusSegment } from './types';
@@ -1,2 +0,0 @@
1
- import { VariationSplitProps } from './types';
2
- export declare function VariationSplit({ contractors, 'data-testid': testId }: VariationSplitProps): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- export { VariationSplit } from './VariationSplit';
2
- export type { VariationSplitProps } from './types';