@divami-artefacts/ai-design-system 1.0.1

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 (93) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +315 -0
  3. package/dist/canvas/CanvasTooltip.d.ts +13 -0
  4. package/dist/canvas/CausalFlowCanvas.d.ts +16 -0
  5. package/dist/canvas/canvasUtils.d.ts +38 -0
  6. package/dist/canvas/easing.d.ts +23 -0
  7. package/dist/canvas/useCanvasInteraction.d.ts +45 -0
  8. package/dist/canvas/useCanvasLoop.d.ts +19 -0
  9. package/dist/components/areaChart/AreaChart.d.ts +2 -0
  10. package/dist/components/barChart/BarChart.d.ts +2 -0
  11. package/dist/components/chartFrame/ChartFrame.d.ts +2 -0
  12. package/dist/components/commitmentRace/CommitmentRace.d.ts +2 -0
  13. package/dist/components/commitmentRace/index.d.ts +2 -0
  14. package/dist/components/commitmentRace/styles.d.ts +1 -0
  15. package/dist/components/commitmentRace/types.d.ts +5 -0
  16. package/dist/components/common/SeriesChart.d.ts +2 -0
  17. package/dist/components/compensationGauge/CompensationGauge.d.ts +2 -0
  18. package/dist/components/compensationGauge/index.d.ts +2 -0
  19. package/dist/components/compensationGauge/styles.d.ts +1 -0
  20. package/dist/components/compensationGauge/types.d.ts +6 -0
  21. package/dist/components/constants.d.ts +6 -0
  22. package/dist/components/contractBars/ContractBars.d.ts +2 -0
  23. package/dist/components/contractBars/index.d.ts +2 -0
  24. package/dist/components/contractBars/styles.d.ts +1 -0
  25. package/dist/components/contractBars/types.d.ts +5 -0
  26. package/dist/components/contractValueOrb/ContractValueOrb.d.ts +2 -0
  27. package/dist/components/contractValueOrb/index.d.ts +2 -0
  28. package/dist/components/contractValueOrb/styles.d.ts +1 -0
  29. package/dist/components/contractValueOrb/types.d.ts +5 -0
  30. package/dist/components/contractorRank/ContractorRank.d.ts +2 -0
  31. package/dist/components/contractorRank/index.d.ts +2 -0
  32. package/dist/components/contractorRank/styles.d.ts +1 -0
  33. package/dist/components/contractorRank/types.d.ts +5 -0
  34. package/dist/components/donutChart/DonutChart.d.ts +2 -0
  35. package/dist/components/ewCategory/EWCategory.d.ts +2 -0
  36. package/dist/components/ewCategory/index.d.ts +2 -0
  37. package/dist/components/ewCategory/styles.d.ts +1 -0
  38. package/dist/components/ewCategory/types.d.ts +5 -0
  39. package/dist/components/hooks/useWorkspace.d.ts +6 -0
  40. package/dist/components/keyHighlights/KeyHighlights.d.ts +4 -0
  41. package/dist/components/lineChart/LineChart.d.ts +2 -0
  42. package/dist/components/miniBars/MiniBars.d.ts +2 -0
  43. package/dist/components/nceTree/NCETree.d.ts +2 -0
  44. package/dist/components/nceTree/index.d.ts +2 -0
  45. package/dist/components/nceTree/styles.d.ts +1 -0
  46. package/dist/components/nceTree/types.d.ts +6 -0
  47. package/dist/components/pieChart/PieChart.d.ts +2 -0
  48. package/dist/components/quotationBalance/QuotationBalance.d.ts +2 -0
  49. package/dist/components/quotationBalance/index.d.ts +2 -0
  50. package/dist/components/quotationBalance/styles.d.ts +1 -0
  51. package/dist/components/quotationBalance/types.d.ts +6 -0
  52. package/dist/components/quotationTrend/QuotationTrend.d.ts +2 -0
  53. package/dist/components/quotationTrend/index.d.ts +2 -0
  54. package/dist/components/quotationTrend/styles.d.ts +1 -0
  55. package/dist/components/quotationTrend/types.d.ts +5 -0
  56. package/dist/components/sankey/ProcessSankey.d.ts +2 -0
  57. package/dist/components/sankey/RankingSankey.d.ts +2 -0
  58. package/dist/components/sankey/SankeySvg.d.ts +2 -0
  59. package/dist/components/sankey/index.d.ts +3 -0
  60. package/dist/components/severityBands/SeverityBands.d.ts +2 -0
  61. package/dist/components/severityBands/index.d.ts +2 -0
  62. package/dist/components/severityBands/styles.d.ts +1 -0
  63. package/dist/components/severityBands/types.d.ts +5 -0
  64. package/dist/components/statusArc/StatusArc.d.ts +2 -0
  65. package/dist/components/statusArc/index.d.ts +2 -0
  66. package/dist/components/statusArc/styles.d.ts +1 -0
  67. package/dist/components/statusArc/types.d.ts +9 -0
  68. package/dist/components/trendChart/TrendChart.d.ts +2 -0
  69. package/dist/components/variationSplit/VariationSplit.d.ts +2 -0
  70. package/dist/components/variationSplit/index.d.ts +2 -0
  71. package/dist/components/variationSplit/styles.d.ts +1 -0
  72. package/dist/components/variationSplit/types.d.ts +5 -0
  73. package/dist/components/visualizationRenderer/VisualizationRenderer.d.ts +2 -0
  74. package/dist/components/weeklyFlow/WeeklyFlow.d.ts +2 -0
  75. package/dist/components/weeklyFlow/index.d.ts +2 -0
  76. package/dist/components/weeklyFlow/styles.d.ts +1 -0
  77. package/dist/components/weeklyFlow/types.d.ts +5 -0
  78. package/dist/components/workspaceShell/WorkspaceShell.d.ts +1 -0
  79. package/dist/hooks/useWorkspace.d.ts +6 -0
  80. package/dist/index.cjs +1 -0
  81. package/dist/index.d.ts +14 -0
  82. package/dist/index.js +3019 -0
  83. package/dist/mocks/workspace.mock.d.ts +378 -0
  84. package/dist/pages/chartGallery/ChartGalleryPage.d.ts +1 -0
  85. package/dist/pages/projectDashboard/ProjectDashboardPage.d.ts +1 -0
  86. package/dist/pages/projectDashboard/index.d.ts +2 -0
  87. package/dist/pages/projectDashboard/styles.d.ts +4 -0
  88. package/dist/pages/projectDashboard/types.d.ts +3 -0
  89. package/dist/pages/workspace/WorkspacePage.d.ts +1 -0
  90. package/dist/types/index.d.ts +344 -0
  91. package/dist/utils/mounts.d.ts +4 -0
  92. package/dist/utils/workspace.utils.d.ts +17 -0
  93. package/package.json +53 -0
@@ -0,0 +1,378 @@
1
+ import { NarrativeStep } from '../types';
2
+ export declare const CHAT_PLACEHOLDER = "ask a follow-up...";
3
+ export declare const FULL_VIZ_OPTIONS: {
4
+ key: string;
5
+ label: string;
6
+ enabled: boolean;
7
+ }[];
8
+ export declare const TABLE_PLUS_VIZ_OPTIONS: {
9
+ key: string;
10
+ label: string;
11
+ enabled: boolean;
12
+ }[];
13
+ export declare const RANGE_OPTIONS: string[];
14
+ export declare const landingCards: {
15
+ key: string;
16
+ title: string;
17
+ description: string;
18
+ }[];
19
+ export declare const quickStartChips: string[];
20
+ export declare const chipPresets: string[][];
21
+ export declare const chatInterfaceQuestions: string[];
22
+ export declare const vendorRows: {
23
+ id: string;
24
+ vendor: string;
25
+ company: string;
26
+ pricing: number;
27
+ quality: number;
28
+ timeline: number;
29
+ risk: string;
30
+ rank: string;
31
+ }[];
32
+ export declare const drilldowns: {
33
+ 'vendor-a': {
34
+ title: string;
35
+ meta: string;
36
+ selected: string[][];
37
+ cards: ({
38
+ title: string;
39
+ type: string;
40
+ note: string;
41
+ rows?: undefined;
42
+ flags?: undefined;
43
+ compare?: undefined;
44
+ } | {
45
+ title: string;
46
+ type: string;
47
+ rows: (string | number)[][];
48
+ note: string;
49
+ flags?: undefined;
50
+ compare?: undefined;
51
+ } | {
52
+ title: string;
53
+ type: string;
54
+ flags: string[][];
55
+ note: string;
56
+ rows?: undefined;
57
+ compare?: undefined;
58
+ } | {
59
+ title: string;
60
+ type: string;
61
+ compare: string[][];
62
+ note?: undefined;
63
+ rows?: undefined;
64
+ flags?: undefined;
65
+ })[];
66
+ };
67
+ 'supplier-x': {
68
+ title: string;
69
+ meta: string;
70
+ selected: string[][];
71
+ cards: ({
72
+ title: string;
73
+ type: string;
74
+ points: string[][];
75
+ note: string;
76
+ rows?: undefined;
77
+ compare?: undefined;
78
+ stats?: undefined;
79
+ } | {
80
+ title: string;
81
+ type: string;
82
+ rows: (string | number)[][];
83
+ note: string;
84
+ points?: undefined;
85
+ compare?: undefined;
86
+ stats?: undefined;
87
+ } | {
88
+ title: string;
89
+ type: string;
90
+ compare: string[][];
91
+ note: string;
92
+ points?: undefined;
93
+ rows?: undefined;
94
+ stats?: undefined;
95
+ } | {
96
+ title: string;
97
+ type: string;
98
+ stats: string[][];
99
+ points?: undefined;
100
+ note?: undefined;
101
+ rows?: undefined;
102
+ compare?: undefined;
103
+ })[];
104
+ };
105
+ 'bf3-superheat': {
106
+ title: string;
107
+ meta: string;
108
+ selected: string[][];
109
+ cards: ({
110
+ title: string;
111
+ type: string;
112
+ points: string[][];
113
+ note: string;
114
+ rows?: undefined;
115
+ } | {
116
+ title: string;
117
+ type: string;
118
+ rows: (string | number)[][];
119
+ note: string;
120
+ points?: undefined;
121
+ })[];
122
+ };
123
+ 'ccm3-solidification': {
124
+ title: string;
125
+ meta: string;
126
+ selected: string[][];
127
+ cards: ({
128
+ title: string;
129
+ type: string;
130
+ points: string[][];
131
+ note: string;
132
+ compare?: undefined;
133
+ stats?: undefined;
134
+ } | {
135
+ title: string;
136
+ type: string;
137
+ compare: string[][];
138
+ note: string;
139
+ points?: undefined;
140
+ stats?: undefined;
141
+ } | {
142
+ title: string;
143
+ type: string;
144
+ stats: string[][];
145
+ points?: undefined;
146
+ note?: undefined;
147
+ compare?: undefined;
148
+ } | {
149
+ title: string;
150
+ type: string;
151
+ stats: string[][];
152
+ note: string;
153
+ points?: undefined;
154
+ compare?: undefined;
155
+ })[];
156
+ };
157
+ 'grade-risk': {
158
+ title: string;
159
+ meta: string;
160
+ selected: string[][];
161
+ cards: ({
162
+ title: string;
163
+ type: string;
164
+ points: string[][];
165
+ note: string;
166
+ stats?: undefined;
167
+ } | {
168
+ title: string;
169
+ type: string;
170
+ stats: string[][];
171
+ note: string;
172
+ points?: undefined;
173
+ } | {
174
+ title: string;
175
+ type: string;
176
+ stats: string[][];
177
+ points?: undefined;
178
+ note?: undefined;
179
+ })[];
180
+ };
181
+ };
182
+ export declare const genericDrilldown: (vendorId: string) => {
183
+ title: string;
184
+ meta: string;
185
+ selected: string[][];
186
+ cards: ({
187
+ title: string;
188
+ type: string;
189
+ note: string;
190
+ rows?: undefined;
191
+ flags?: undefined;
192
+ } | {
193
+ title: string;
194
+ type: string;
195
+ rows: (string | number)[][];
196
+ note: string;
197
+ flags?: undefined;
198
+ } | {
199
+ title: string;
200
+ type: string;
201
+ flags: string[][];
202
+ note: string;
203
+ rows?: undefined;
204
+ })[];
205
+ };
206
+ export declare const followupMap: Record<string, string[]>;
207
+ export declare const storyHeader: {
208
+ title: string;
209
+ subtitle: string;
210
+ context: string;
211
+ };
212
+ export declare const storyActs: {
213
+ id: string;
214
+ label: string;
215
+ name: string;
216
+ kicker: string;
217
+ blurb: string;
218
+ }[];
219
+ export declare const storyCategories: {
220
+ key: string;
221
+ label: string;
222
+ value: number;
223
+ valueLabel: string;
224
+ share: number;
225
+ tone: string;
226
+ factors: {
227
+ label: string;
228
+ value: number;
229
+ valueLabel: string;
230
+ cause: string;
231
+ trend: string;
232
+ }[];
233
+ insight: string;
234
+ }[];
235
+ export declare const storyCategoryPositions: {
236
+ procurement: {
237
+ size: number;
238
+ left: string;
239
+ top: string;
240
+ };
241
+ operations: {
242
+ size: number;
243
+ left: string;
244
+ top: string;
245
+ };
246
+ logistics: {
247
+ size: number;
248
+ left: string;
249
+ top: string;
250
+ };
251
+ quality: {
252
+ size: number;
253
+ left: string;
254
+ top: string;
255
+ };
256
+ supplier: {
257
+ size: number;
258
+ left: string;
259
+ top: string;
260
+ };
261
+ planning: {
262
+ size: number;
263
+ left: string;
264
+ top: string;
265
+ };
266
+ contract: {
267
+ size: number;
268
+ left: string;
269
+ top: string;
270
+ };
271
+ };
272
+ export declare const historicalRiskRows: {
273
+ title: string;
274
+ riskMonth: string;
275
+ costMonth: string;
276
+ gap: string;
277
+ costImpact: string;
278
+ risk: string;
279
+ action: string;
280
+ outcome: string;
281
+ status: string;
282
+ }[];
283
+ export declare const forwardRiskRows: {
284
+ title: string;
285
+ riskMonth: string;
286
+ exposure: string;
287
+ window: string;
288
+ detail: string;
289
+ }[];
290
+ export declare const scoreMatrix: {
291
+ key: string;
292
+ label: string;
293
+ magnitude: number;
294
+ fixability: number;
295
+ risk: number;
296
+ total: number;
297
+ priority: string;
298
+ }[];
299
+ export declare const recommendationCards: {
300
+ order: string;
301
+ category: string;
302
+ priority: string;
303
+ action: string;
304
+ detail: string;
305
+ timeframe: string;
306
+ }[];
307
+ export declare const contractData: {
308
+ contractors: {
309
+ id: string;
310
+ name: string;
311
+ shortName: string;
312
+ base: number;
313
+ variations: number;
314
+ totalCommitment: number;
315
+ commitmentPct: number;
316
+ }[];
317
+ totals: {
318
+ base: number;
319
+ variations: number;
320
+ totalCommitment: number;
321
+ };
322
+ };
323
+ export declare const ewStatusData: {
324
+ status: string;
325
+ count: number;
326
+ }[];
327
+ export declare const ewCategoryData: {
328
+ category: string;
329
+ fullName: string;
330
+ count: number;
331
+ }[];
332
+ export declare const ewSeverityData: {
333
+ severity: string;
334
+ count: number;
335
+ }[];
336
+ export declare const ewOpenByContractor: {
337
+ id: string;
338
+ name: string;
339
+ shortName: string;
340
+ openCount: number;
341
+ }[];
342
+ export declare const nceByContractor: {
343
+ id: string;
344
+ name: string;
345
+ shortName: string;
346
+ count: number;
347
+ }[];
348
+ export declare const nceCompensationData: {
349
+ total: number;
350
+ confirmed: number;
351
+ pctConfirmed: number;
352
+ };
353
+ export declare const variationByContractor: {
354
+ id: string;
355
+ name: string;
356
+ shortName: string;
357
+ implemented: number;
358
+ unimplemented: number;
359
+ }[];
360
+ export declare const quotationSummary: {
361
+ accepted: {
362
+ value: number;
363
+ count: number;
364
+ label: string;
365
+ };
366
+ submitted: {
367
+ value: number;
368
+ count: number;
369
+ label: string;
370
+ };
371
+ };
372
+ export declare const quotationTrend: {
373
+ week: string;
374
+ count: number;
375
+ value: number;
376
+ }[];
377
+ export declare const NARRATIVE_CHAIN: NarrativeStep[];
378
+ export declare const narrativeStepByQuestion: Map<string, NarrativeStep>;
@@ -0,0 +1 @@
1
+ export declare function ChartGalleryPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export declare function ProjectDashboardPage(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { ProjectDashboardPage } from './ProjectDashboardPage';
2
+ export type { ProjectDashboardPageProps } from './types';
@@ -0,0 +1,4 @@
1
+ import { default as React } from 'react';
2
+ type Styles = Record<string, React.CSSProperties>;
3
+ export declare const pageStyles: Styles;
4
+ export {};
@@ -0,0 +1,3 @@
1
+ export interface ProjectDashboardPageProps {
2
+ 'data-testid'?: string;
3
+ }
@@ -0,0 +1 @@
1
+ export declare function WorkspacePage(): import("react/jsx-runtime").JSX.Element;