@salesmind-ai/design-system 0.6.0 → 1.0.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.
Files changed (257) hide show
  1. package/README.md +2 -0
  2. package/dist/Anton-Regular-MLEXVTB2.woff2 +0 -0
  3. package/dist/admin/index.cjs +5 -61
  4. package/dist/admin/index.css +0 -3918
  5. package/dist/admin/index.css.map +1 -1
  6. package/dist/admin/index.d.cts +1 -422
  7. package/dist/admin/index.d.ts +1 -422
  8. package/dist/admin/index.js +1 -5
  9. package/dist/blog/index.cjs +13 -34
  10. package/dist/blog/index.css +0 -579
  11. package/dist/blog/index.css.map +1 -1
  12. package/dist/blog/index.d.cts +1 -54
  13. package/dist/blog/index.d.ts +1 -54
  14. package/dist/blog/index.js +5 -6
  15. package/dist/charts/index.cjs +0 -46
  16. package/dist/charts/index.d.cts +1 -452
  17. package/dist/charts/index.d.ts +1 -452
  18. package/dist/charts/index.js +1 -3
  19. package/dist/{chunk-YTYDQBVY.cjs → chunk-2VVRZBUR.cjs} +4 -4
  20. package/dist/{chunk-GQELL2MF.cjs → chunk-3NS6X2R4.cjs} +20 -203
  21. package/dist/chunk-3NS6X2R4.cjs.map +1 -0
  22. package/dist/{chunk-XEX2AEZK.cjs → chunk-65DTHLVX.cjs} +66 -186
  23. package/dist/chunk-65DTHLVX.cjs.map +1 -0
  24. package/dist/{chunk-QALDZ7WQ.js → chunk-6BUS7RMS.js} +21 -198
  25. package/dist/chunk-6BUS7RMS.js.map +1 -0
  26. package/dist/{chunk-LTPTW2US.cjs → chunk-6BXKRDK5.cjs} +587 -977
  27. package/dist/chunk-6BXKRDK5.cjs.map +1 -0
  28. package/dist/{chunk-BJZ2DKS5.cjs → chunk-6QIQCUYC.cjs} +11 -10
  29. package/dist/chunk-6QIQCUYC.cjs.map +1 -0
  30. package/dist/{chunk-H2Y6BSTL.cjs → chunk-7EUR3AKV.cjs} +1 -1
  31. package/dist/chunk-7EUR3AKV.cjs.map +1 -0
  32. package/dist/{chunk-VFJZQQZU.js → chunk-AMNY5TS3.js} +11 -10
  33. package/dist/chunk-AMNY5TS3.js.map +1 -0
  34. package/dist/{chunk-YJ6C3EKW.js → chunk-CLXLQCNQ.js} +52 -168
  35. package/dist/chunk-CLXLQCNQ.js.map +1 -0
  36. package/dist/{chunk-H2KQ3WSH.cjs → chunk-CVLD5RQK.cjs} +12 -14
  37. package/dist/chunk-CVLD5RQK.cjs.map +1 -0
  38. package/dist/chunk-EPD4ZEPY.cjs +344 -0
  39. package/dist/chunk-EPD4ZEPY.cjs.map +1 -0
  40. package/dist/{chunk-6D22TFLA.cjs → chunk-FVSL5YMB.cjs} +16 -32
  41. package/dist/chunk-FVSL5YMB.cjs.map +1 -0
  42. package/dist/chunk-FXYOSA4E.cjs +118 -0
  43. package/dist/chunk-FXYOSA4E.cjs.map +1 -0
  44. package/dist/{chunk-ECXBTUH6.cjs → chunk-GPHQGLR5.cjs} +27 -204
  45. package/dist/chunk-GPHQGLR5.cjs.map +1 -0
  46. package/dist/chunk-JPUJWI7F.cjs +73 -0
  47. package/dist/chunk-JPUJWI7F.cjs.map +1 -0
  48. package/dist/{chunk-6UNG76Y2.js → chunk-K526GN7P.js} +2 -2
  49. package/dist/{chunk-SICKWUWB.js → chunk-KJHPOB3J.js} +1 -1
  50. package/dist/chunk-KJHPOB3J.js.map +1 -0
  51. package/dist/{chunk-Y26OHHMX.js → chunk-KSEETC4E.js} +508 -891
  52. package/dist/chunk-KSEETC4E.js.map +1 -0
  53. package/dist/chunk-KXVFFEGD.js +60 -0
  54. package/dist/chunk-KXVFFEGD.js.map +1 -0
  55. package/dist/chunk-LQB7QLD3.js +288 -0
  56. package/dist/chunk-LQB7QLD3.js.map +1 -0
  57. package/dist/chunk-LUD52ZJF.cjs +726 -0
  58. package/dist/chunk-LUD52ZJF.cjs.map +1 -0
  59. package/dist/{chunk-7UZ5DETZ.js → chunk-MBAG654R.js} +4 -216
  60. package/dist/chunk-MBAG654R.js.map +1 -0
  61. package/dist/chunk-OMP6FAZ6.cjs +183 -0
  62. package/dist/chunk-OMP6FAZ6.cjs.map +1 -0
  63. package/dist/{chunk-WYH4TKS5.js → chunk-PBYRTNQ5.js} +6 -8
  64. package/dist/chunk-PBYRTNQ5.js.map +1 -0
  65. package/dist/chunk-PYREXCZK.js +679 -0
  66. package/dist/chunk-PYREXCZK.js.map +1 -0
  67. package/dist/{chunk-P5BOFE5A.js → chunk-RSLA2FJN.js} +28 -183
  68. package/dist/chunk-RSLA2FJN.js.map +1 -0
  69. package/dist/chunk-S46SKHMD.js +173 -0
  70. package/dist/chunk-S46SKHMD.js.map +1 -0
  71. package/dist/chunk-SFXTB7JL.js +190 -0
  72. package/dist/chunk-SFXTB7JL.js.map +1 -0
  73. package/dist/chunk-SGYXYMKZ.cjs +214 -0
  74. package/dist/chunk-SGYXYMKZ.cjs.map +1 -0
  75. package/dist/chunk-UGKYP6F3.cjs +296 -0
  76. package/dist/chunk-UGKYP6F3.cjs.map +1 -0
  77. package/dist/{chunk-HDVAMYSG.js → chunk-VFO2MUPI.js} +14 -29
  78. package/dist/chunk-VFO2MUPI.js.map +1 -0
  79. package/dist/chunk-WB6XDNU7.js +115 -0
  80. package/dist/chunk-WB6XDNU7.js.map +1 -0
  81. package/dist/core/index.cjs +144 -626
  82. package/dist/core/index.css +178 -3567
  83. package/dist/core/index.css.map +1 -1
  84. package/dist/core/index.d.cts +940 -902
  85. package/dist/core/index.d.ts +940 -902
  86. package/dist/core/index.js +6 -12
  87. package/dist/i18n/index.cjs +54 -49
  88. package/dist/i18n/index.d.cts +46 -11
  89. package/dist/i18n/index.d.ts +46 -11
  90. package/dist/i18n/index.js +2 -1
  91. package/dist/index-C8A3X92-.d.cts +1100 -0
  92. package/dist/index-wZPBPkOV.d.ts +1100 -0
  93. package/dist/index.cjs +506 -1004
  94. package/dist/index.cjs.map +1 -1
  95. package/dist/index.css +6026 -16790
  96. package/dist/index.css.map +1 -1
  97. package/dist/index.d.cts +307 -22
  98. package/dist/index.d.ts +307 -22
  99. package/dist/index.js +274 -39
  100. package/dist/index.js.map +1 -1
  101. package/dist/marketing/index.cjs +33 -76
  102. package/dist/marketing/index.css +1896 -3234
  103. package/dist/marketing/index.css.map +1 -1
  104. package/dist/marketing/index.d.cts +3 -1351
  105. package/dist/marketing/index.d.ts +3 -1351
  106. package/dist/marketing/index.js +5 -8
  107. package/dist/motion/index.cjs +3 -20
  108. package/dist/motion/index.css +0 -580
  109. package/dist/motion/index.css.map +1 -1
  110. package/dist/motion/index.d.cts +1 -37
  111. package/dist/motion/index.d.ts +1 -37
  112. package/dist/motion/index.js +1 -2
  113. package/dist/nav/index.cjs +10 -35
  114. package/dist/nav/index.css +28 -580
  115. package/dist/nav/index.css.map +1 -1
  116. package/dist/nav/index.d.cts +2 -60
  117. package/dist/nav/index.d.ts +2 -60
  118. package/dist/nav/index.js +1 -2
  119. package/dist/report/index.cjs +1166 -175
  120. package/dist/report/index.cjs.map +1 -1
  121. package/dist/report/index.d.cts +208 -5
  122. package/dist/report/index.d.ts +208 -5
  123. package/dist/report/index.js +1141 -3
  124. package/dist/report/index.js.map +1 -1
  125. package/dist/sections/index.cjs +8 -10
  126. package/dist/sections/index.cjs.map +1 -1
  127. package/dist/sections/index.css +0 -206
  128. package/dist/sections/index.css.map +1 -1
  129. package/dist/sections/index.js +2 -4
  130. package/dist/sections/index.js.map +1 -1
  131. package/dist/social-media/index.cjs +4 -0
  132. package/dist/social-media/index.cjs.map +1 -0
  133. package/dist/social-media/index.d.cts +2 -0
  134. package/dist/social-media/index.d.ts +2 -0
  135. package/dist/social-media/index.js +3 -0
  136. package/dist/social-media/index.js.map +1 -0
  137. package/dist/social-proof/index.cjs +4 -36
  138. package/dist/social-proof/index.css +3 -1106
  139. package/dist/social-proof/index.css.map +1 -1
  140. package/dist/social-proof/index.d.cts +26 -171
  141. package/dist/social-proof/index.d.ts +26 -171
  142. package/dist/social-proof/index.js +1 -5
  143. package/dist/styles/styles.css +602 -3044
  144. package/dist/theme/index.cjs +11 -19
  145. package/dist/theme/index.css +0 -352
  146. package/dist/theme/index.css.map +1 -1
  147. package/dist/theme/index.d.cts +1 -25
  148. package/dist/theme/index.d.ts +1 -25
  149. package/dist/theme/index.js +2 -2
  150. package/dist/web/client/index.cjs +10 -10
  151. package/dist/web/client/index.css +118 -0
  152. package/dist/web/client/index.css.map +1 -1
  153. package/dist/web/client/index.js +2 -2
  154. package/dist/web/index.cjs +10 -10
  155. package/dist/web/index.css +118 -0
  156. package/dist/web/index.css.map +1 -1
  157. package/dist/web/index.js +2 -2
  158. package/package.json +10 -4
  159. package/dist/AppearancePanel-UT57J69V.d.cts +0 -51
  160. package/dist/AppearancePanel-UT57J69V.d.ts +0 -51
  161. package/dist/ExportMenu-A2TLFiVv.d.cts +0 -311
  162. package/dist/ExportMenu-C8qck5AT.d.ts +0 -311
  163. package/dist/Select-BdZmK0Lt.d.cts +0 -66
  164. package/dist/Select-BdZmK0Lt.d.ts +0 -66
  165. package/dist/chart-types-BGVVO-zl.d.cts +0 -208
  166. package/dist/chart-types-BGVVO-zl.d.ts +0 -208
  167. package/dist/charts/index.css +0 -1167
  168. package/dist/charts/index.css.map +0 -1
  169. package/dist/chunk-3BAQDW3V.cjs +0 -1207
  170. package/dist/chunk-3BAQDW3V.cjs.map +0 -1
  171. package/dist/chunk-3NKRFUAR.js +0 -37
  172. package/dist/chunk-3NKRFUAR.js.map +0 -1
  173. package/dist/chunk-3TGSIILM.cjs +0 -201
  174. package/dist/chunk-3TGSIILM.cjs.map +0 -1
  175. package/dist/chunk-4GM5BGBN.cjs +0 -801
  176. package/dist/chunk-4GM5BGBN.cjs.map +0 -1
  177. package/dist/chunk-5LA3T22E.cjs +0 -562
  178. package/dist/chunk-5LA3T22E.cjs.map +0 -1
  179. package/dist/chunk-5SN66B2X.js +0 -2542
  180. package/dist/chunk-5SN66B2X.js.map +0 -1
  181. package/dist/chunk-6D22TFLA.cjs.map +0 -1
  182. package/dist/chunk-6H4DSTXR.js +0 -786
  183. package/dist/chunk-6H4DSTXR.js.map +0 -1
  184. package/dist/chunk-6HKQ5ILL.cjs +0 -1624
  185. package/dist/chunk-6HKQ5ILL.cjs.map +0 -1
  186. package/dist/chunk-7PX2AZ6Y.js +0 -39
  187. package/dist/chunk-7PX2AZ6Y.js.map +0 -1
  188. package/dist/chunk-7UZ5DETZ.js.map +0 -1
  189. package/dist/chunk-B6AVAX4F.js +0 -1415
  190. package/dist/chunk-B6AVAX4F.js.map +0 -1
  191. package/dist/chunk-BJZ2DKS5.cjs.map +0 -1
  192. package/dist/chunk-BUTQSDQH.js +0 -200
  193. package/dist/chunk-BUTQSDQH.js.map +0 -1
  194. package/dist/chunk-C2BCDNAV.js +0 -24
  195. package/dist/chunk-C2BCDNAV.js.map +0 -1
  196. package/dist/chunk-CJ2MKVAF.cjs +0 -46
  197. package/dist/chunk-CJ2MKVAF.cjs.map +0 -1
  198. package/dist/chunk-E7D6EKJ4.cjs +0 -44
  199. package/dist/chunk-E7D6EKJ4.cjs.map +0 -1
  200. package/dist/chunk-ECXBTUH6.cjs.map +0 -1
  201. package/dist/chunk-FAFAP4L5.js +0 -183
  202. package/dist/chunk-FAFAP4L5.js.map +0 -1
  203. package/dist/chunk-G2XGBO5V.cjs +0 -2565
  204. package/dist/chunk-G2XGBO5V.cjs.map +0 -1
  205. package/dist/chunk-GQELL2MF.cjs.map +0 -1
  206. package/dist/chunk-H2KQ3WSH.cjs.map +0 -1
  207. package/dist/chunk-H2Y6BSTL.cjs.map +0 -1
  208. package/dist/chunk-HCZW5AJN.cjs +0 -234
  209. package/dist/chunk-HCZW5AJN.cjs.map +0 -1
  210. package/dist/chunk-HDVAMYSG.js.map +0 -1
  211. package/dist/chunk-HN4PHABT.js +0 -126
  212. package/dist/chunk-HN4PHABT.js.map +0 -1
  213. package/dist/chunk-LTPTW2US.cjs.map +0 -1
  214. package/dist/chunk-MDB2WCRQ.cjs +0 -137
  215. package/dist/chunk-MDB2WCRQ.cjs.map +0 -1
  216. package/dist/chunk-MQRB634A.cjs +0 -34
  217. package/dist/chunk-MQRB634A.cjs.map +0 -1
  218. package/dist/chunk-NN3TUHIH.js +0 -28
  219. package/dist/chunk-NN3TUHIH.js.map +0 -1
  220. package/dist/chunk-OWS2KAXZ.js +0 -701
  221. package/dist/chunk-OWS2KAXZ.js.map +0 -1
  222. package/dist/chunk-P5BOFE5A.js.map +0 -1
  223. package/dist/chunk-PUPSK3DI.cjs +0 -216
  224. package/dist/chunk-PUPSK3DI.cjs.map +0 -1
  225. package/dist/chunk-Q2MFGYTE.cjs +0 -1449
  226. package/dist/chunk-Q2MFGYTE.cjs.map +0 -1
  227. package/dist/chunk-Q75DBVDY.cjs +0 -68
  228. package/dist/chunk-Q75DBVDY.cjs.map +0 -1
  229. package/dist/chunk-QALDZ7WQ.js.map +0 -1
  230. package/dist/chunk-QWE2RNCS.js +0 -1195
  231. package/dist/chunk-QWE2RNCS.js.map +0 -1
  232. package/dist/chunk-RQUFZAZ7.js +0 -1608
  233. package/dist/chunk-RQUFZAZ7.js.map +0 -1
  234. package/dist/chunk-SICKWUWB.js.map +0 -1
  235. package/dist/chunk-TCFC7XTB.js +0 -212
  236. package/dist/chunk-TCFC7XTB.js.map +0 -1
  237. package/dist/chunk-UTVXGAQP.cjs +0 -2437
  238. package/dist/chunk-UTVXGAQP.cjs.map +0 -1
  239. package/dist/chunk-UVEMY3FQ.cjs +0 -717
  240. package/dist/chunk-UVEMY3FQ.cjs.map +0 -1
  241. package/dist/chunk-VFJZQQZU.js.map +0 -1
  242. package/dist/chunk-WH7PYHZY.cjs +0 -35
  243. package/dist/chunk-WH7PYHZY.cjs.map +0 -1
  244. package/dist/chunk-WYH4TKS5.js.map +0 -1
  245. package/dist/chunk-XEX2AEZK.cjs.map +0 -1
  246. package/dist/chunk-XPTVHPCN.js +0 -2320
  247. package/dist/chunk-XPTVHPCN.js.map +0 -1
  248. package/dist/chunk-XWPDRMZG.js +0 -62
  249. package/dist/chunk-XWPDRMZG.js.map +0 -1
  250. package/dist/chunk-Y26OHHMX.js.map +0 -1
  251. package/dist/chunk-YJ6C3EKW.js.map +0 -1
  252. package/dist/motion-C651Ry6d.d.cts +0 -832
  253. package/dist/motion-C651Ry6d.d.ts +0 -832
  254. package/dist/report/index.css +0 -1239
  255. package/dist/report/index.css.map +0 -1
  256. /package/dist/{chunk-6UNG76Y2.js.map → chunk-2VVRZBUR.cjs.map} +0 -0
  257. /package/dist/{chunk-YTYDQBVY.cjs.map → chunk-K526GN7P.js.map} +0 -0
@@ -1,311 +0,0 @@
1
- import React__default from 'react';
2
- import { c as ReportMode, I as InsightType, A as AnalyticalState, D as DataStateDetails, s as TrendDirection } from './chart-types-BGVVO-zl.js';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
-
5
- interface ReportShellProps {
6
- /** Report title */
7
- title?: string;
8
- /** Report subtitle or date range */
9
- subtitle?: string;
10
- /** Report mode (executive = minimal detail, analyst = full detail) */
11
- mode?: ReportMode;
12
- /** Brand variant for theming */
13
- brand?: string;
14
- /** Callback when mode changes */
15
- onModeChange?: (mode: ReportMode) => void;
16
- /** Report content */
17
- children: React__default.ReactNode;
18
- /** Header actions (export, share, etc.) */
19
- actions?: React__default.ReactNode;
20
- /** Additional CSS class */
21
- className?: string;
22
- }
23
- /**
24
- * ReportShell is the root container for all reports.
25
- * It provides mode context and establishes the report structure.
26
- */
27
- declare const ReportShell: React__default.ForwardRefExoticComponent<ReportShellProps & React__default.RefAttributes<HTMLDivElement>>;
28
-
29
- interface ExecutiveThesisProps {
30
- /** The main thesis statement - the single most important finding */
31
- thesis: string;
32
- /** Supporting context for the thesis */
33
- context?: string;
34
- /** Key metric supporting the thesis */
35
- metric?: {
36
- label: string;
37
- value: string | number;
38
- trend?: 'up' | 'down' | 'neutral';
39
- };
40
- /** AI-generated indicator */
41
- aiGenerated?: boolean;
42
- /** Additional CSS class */
43
- className?: string;
44
- }
45
- /**
46
- * ExecutiveThesis displays the single most important finding of a report.
47
- * There should be exactly ONE of these per report, at the top.
48
- *
49
- * Composition Rule: R1 - ExecutiveThesis MUST appear exactly once, at the top.
50
- */
51
- declare const ExecutiveThesis: React__default.ForwardRefExoticComponent<ExecutiveThesisProps & React__default.RefAttributes<HTMLElement>>;
52
-
53
- interface InsightBlockProps {
54
- /** The type of insight - constrains allowed child charts */
55
- type: InsightType;
56
- /** The insight headline */
57
- headline: string;
58
- /** Supporting description */
59
- description?: string;
60
- /** Confidence score (0-100) */
61
- confidence?: number;
62
- /** Methodology notes (shown in analyst mode) */
63
- methodology?: string;
64
- /** Evidence charts (max 3 per composition rules) */
65
- children: React__default.ReactNode;
66
- /** Additional CSS class */
67
- className?: string;
68
- }
69
- /**
70
- * InsightBlock groups an insight with its supporting evidence.
71
- *
72
- * Composition Rules:
73
- * - R2: InsightBlock MUST precede any chart it references
74
- * - R3: Charts CANNOT appear without a parent InsightBlock
75
- * - R6: Max 3 charts per InsightBlock
76
- */
77
- declare const InsightBlock: React__default.ForwardRefExoticComponent<InsightBlockProps & React__default.RefAttributes<HTMLElement>>;
78
-
79
- interface EvidenceGroupProps {
80
- /** Group title */
81
- title?: string;
82
- /** Layout direction */
83
- layout?: 'row' | 'column' | 'grid';
84
- /** Number of columns for grid layout */
85
- columns?: 1 | 2 | 3;
86
- /** Evidence charts (max 3 per composition rules) */
87
- children: React__default.ReactNode;
88
- /** Additional CSS class */
89
- className?: string;
90
- }
91
- /**
92
- * EvidenceGroup contains related charts under an InsightBlock.
93
- *
94
- * Composition Rule: R6 - Max 3 charts per InsightBlock (enforced via EvidenceGroup)
95
- */
96
- declare const EvidenceGroup: React__default.ForwardRefExoticComponent<EvidenceGroupProps & React__default.RefAttributes<HTMLDivElement>>;
97
-
98
- interface ConfidenceIndicatorProps {
99
- /** Confidence score (0-100) */
100
- score: number;
101
- /** Show the numeric score */
102
- showScore?: boolean;
103
- /** Show the label */
104
- showLabel?: boolean;
105
- /** Size variant */
106
- size?: 'sm' | 'md' | 'lg';
107
- /** Additional CSS class */
108
- className?: string;
109
- }
110
- /**
111
- * ConfidenceIndicator displays the reliability score of an insight or data point.
112
- * This is a guardrail component that helps users understand data quality.
113
- */
114
- declare const ConfidenceIndicator: React__default.ForwardRefExoticComponent<ConfidenceIndicatorProps & React__default.RefAttributes<HTMLDivElement>>;
115
-
116
- interface DataCoverageBadgeProps {
117
- /** Current sample size */
118
- sampleSize: number;
119
- /** Required minimum sample size */
120
- requiredSize?: number;
121
- /** Date range covered */
122
- dateRange?: {
123
- start: string;
124
- end: string;
125
- };
126
- /** Show date range */
127
- showDateRange?: boolean;
128
- /** Size variant */
129
- size?: 'sm' | 'md';
130
- /** Additional CSS class */
131
- className?: string;
132
- }
133
- /**
134
- * DataCoverageBadge shows the sample size and optionally the date range of the data.
135
- * This is a guardrail component that helps users understand data coverage.
136
- */
137
- declare const DataCoverageBadge: React__default.ForwardRefExoticComponent<DataCoverageBadgeProps & React__default.RefAttributes<HTMLDivElement>>;
138
-
139
- interface DataStateIndicatorProps {
140
- /** Current analytical state */
141
- state: AnalyticalState;
142
- /** Additional details about the state */
143
- details?: DataStateDetails;
144
- /** Show full details or compact */
145
- variant?: 'compact' | 'full';
146
- /** Action button handler */
147
- onAction?: () => void;
148
- /** Additional CSS class */
149
- className?: string;
150
- }
151
- /**
152
- * DataStateIndicator shows the analytical state of data (valid, insufficient, etc.).
153
- * This is a guardrail component that prevents misleading outputs.
154
- */
155
- declare const DataStateIndicator: React__default.ForwardRefExoticComponent<DataStateIndicatorProps & React__default.RefAttributes<HTMLDivElement>>;
156
-
157
- /** Translatable labels for the MethodologyNote component. */
158
- interface MethodologyNoteLabels {
159
- /** Title text and aria-label. @default "Methodology" */
160
- title?: string;
161
- /** Label for the sample size row. @default "Sample Size" */
162
- sampleSize?: string;
163
- /** Label for the data sources row. @default "Data Sources" */
164
- dataSources?: string;
165
- /** Label for the calculation row. @default "Calculation" */
166
- calculation?: string;
167
- }
168
- interface MethodologyNoteProps {
169
- /** Methodology description */
170
- children: React__default.ReactNode;
171
- /** Sample size (triggers automatic display if < 100) */
172
- sampleSize?: number;
173
- /** Data sources used */
174
- sources?: string[];
175
- /** Calculation method */
176
- calculation?: string;
177
- /** Always show regardless of mode */
178
- forceShow?: boolean;
179
- /** Additional CSS class */
180
- className?: string;
181
- /** Override default English labels for i18n. */
182
- labels?: MethodologyNoteLabels;
183
- }
184
- /**
185
- * MethodologyNote documents how data was collected and calculated.
186
- *
187
- * Composition Rule: R4 - MethodologyNote MUST appear if sample size < 100
188
- */
189
- declare const MethodologyNote: React__default.ForwardRefExoticComponent<MethodologyNoteProps & React__default.RefAttributes<HTMLElement>>;
190
-
191
- interface CaveatBlockProps {
192
- /** Caveat title/summary */
193
- title?: string;
194
- /** Caveat details */
195
- children: React__default.ReactNode;
196
- /** Severity level */
197
- severity?: 'info' | 'warning' | 'critical';
198
- /** Confidence score that triggered this caveat */
199
- confidence?: number;
200
- /** Always show regardless of mode */
201
- forceShow?: boolean;
202
- /** Additional CSS class */
203
- className?: string;
204
- }
205
- /**
206
- * CaveatBlock displays limitations and warnings about the data or analysis.
207
- *
208
- * Composition Rule: Required if confidence < 70%
209
- */
210
- declare const CaveatBlock: React__default.ForwardRefExoticComponent<CaveatBlockProps & React__default.RefAttributes<HTMLElement>>;
211
-
212
- interface KeyMetricProps {
213
- /** Metric title/label */
214
- title: string;
215
- /** Primary value */
216
- value: string | number;
217
- /** Value prefix (e.g., '$', '#') */
218
- prefix?: string;
219
- /** Value suffix (e.g., '%', 'users') */
220
- suffix?: string;
221
- /** Trend indicator */
222
- trend?: {
223
- value: number;
224
- direction: TrendDirection;
225
- label?: string;
226
- };
227
- /** Secondary metric */
228
- secondary?: {
229
- label: string;
230
- value: string | number;
231
- };
232
- /** Sample size for data state */
233
- sampleSize?: number;
234
- /** Confidence score */
235
- confidence?: number;
236
- /** Click handler for drill-down */
237
- onClick?: () => void;
238
- /** Loading state */
239
- loading?: boolean;
240
- /** Size variant */
241
- size?: 'sm' | 'md' | 'lg';
242
- /** Additional CSS class */
243
- className?: string;
244
- }
245
- /**
246
- * KeyMetric displays a single KPI with trend indicator and optional drill-down.
247
- * This is an analytical component with built-in data state awareness.
248
- */
249
- declare const KeyMetric: React__default.ForwardRefExoticComponent<KeyMetricProps & React__default.RefAttributes<HTMLDivElement>>;
250
-
251
- interface TrendIndicatorProps {
252
- /** Percentage change */
253
- value: number;
254
- /** Override direction (auto-detected from value) */
255
- direction?: TrendDirection;
256
- /** Positive is good (green) or bad (red) */
257
- positiveIsGood?: boolean;
258
- /** Show arrow icon */
259
- showIcon?: boolean;
260
- /** Show the percentage sign */
261
- showPercent?: boolean;
262
- /** Size */
263
- size?: 'sm' | 'md' | 'lg';
264
- /** Additional CSS class */
265
- className?: string;
266
- }
267
- /**
268
- * TrendIndicator shows directional change with color coding.
269
- * Requires at least 2 data points to be meaningful.
270
- */
271
- declare const TrendIndicator: React__default.ForwardRefExoticComponent<TrendIndicatorProps & React__default.RefAttributes<HTMLSpanElement>>;
272
-
273
- type ExportFormat = 'pdf' | 'csv' | 'xlsx' | 'pptx' | 'png' | 'json';
274
- interface ExportOption {
275
- /** Export format */
276
- format: ExportFormat;
277
- /** Display label */
278
- label: string;
279
- /** Optional description */
280
- description?: string;
281
- /** Whether this option is disabled */
282
- disabled?: boolean;
283
- }
284
- interface ExportMenuProps {
285
- /** Available export options */
286
- options?: ExportOption[];
287
- /** Callback when an export option is selected */
288
- onExport: (format: ExportFormat) => void;
289
- /** Whether export is currently in progress */
290
- isExporting?: boolean;
291
- /** Button label */
292
- label?: string;
293
- /** Button size */
294
- size?: 'sm' | 'md' | 'lg';
295
- /** Button variant */
296
- variant?: 'primary' | 'secondary' | 'outline';
297
- /** Additional CSS class */
298
- className?: string;
299
- /** Disabled state */
300
- disabled?: boolean;
301
- }
302
- /**
303
- * ExportMenu provides a dropdown for exporting reports in various formats.
304
- * This is an interface-only component - actual export logic is implemented at the app layer.
305
- */
306
- declare function ExportMenu({ options, onExport, isExporting, label, size, variant, className, disabled, }: ExportMenuProps): react_jsx_runtime.JSX.Element;
307
- declare namespace ExportMenu {
308
- var displayName: string;
309
- }
310
-
311
- export { CaveatBlock as C, DataCoverageBadge as D, EvidenceGroup as E, InsightBlock as I, KeyMetric as K, MethodologyNote as M, ReportShell as R, TrendIndicator as T, type CaveatBlockProps as a, ConfidenceIndicator as b, type ConfidenceIndicatorProps as c, type DataCoverageBadgeProps as d, DataStateIndicator as e, type DataStateIndicatorProps as f, type EvidenceGroupProps as g, ExecutiveThesis as h, type ExecutiveThesisProps as i, type ExportFormat as j, ExportMenu as k, type ExportMenuProps as l, type ExportOption as m, type InsightBlockProps as n, type KeyMetricProps as o, type MethodologyNoteLabels as p, type MethodologyNoteProps as q, type ReportShellProps as r, type TrendIndicatorProps as s };
@@ -1,66 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React__default from 'react';
3
-
4
- interface SelectProps {
5
- /** Current selected value */
6
- value?: string;
7
- /** Default value for uncontrolled mode */
8
- defaultValue?: string;
9
- /** Callback when value changes */
10
- onValueChange?: (value: string | null) => void;
11
- /** Whether the select is disabled */
12
- disabled?: boolean;
13
- /** Whether the select is required */
14
- required?: boolean;
15
- /** Name for form submission */
16
- name?: string;
17
- /**
18
- * Item label map for Value display resolution.
19
- * When provided, Select.Value renders the label instead of the raw value.
20
- * Accepts a record (e.g. `{ en: "English", fr: "French" }`) or an array
21
- * of `{ value, label }` objects.
22
- */
23
- items?: Record<string, React__default.ReactNode> | ReadonlyArray<{
24
- label: React__default.ReactNode;
25
- value: string;
26
- }>;
27
- /** Children (SelectTrigger, SelectContent, etc.) */
28
- children: React__default.ReactNode;
29
- }
30
- declare function Select({ value, defaultValue, onValueChange, disabled, required, name, items, children, }: SelectProps): react_jsx_runtime.JSX.Element;
31
- declare namespace Select {
32
- var displayName: string;
33
- }
34
- interface SelectTriggerProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
35
- /** Placeholder text when no value selected */
36
- placeholder?: string;
37
- /** Size variant */
38
- size?: 'sm' | 'md' | 'lg';
39
- }
40
- declare const SelectTrigger: React__default.ForwardRefExoticComponent<SelectTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
41
- interface SelectContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
42
- /** Positioning side */
43
- side?: 'top' | 'bottom';
44
- /** Side offset in pixels */
45
- sideOffset?: number;
46
- /** Alignment */
47
- align?: 'start' | 'center' | 'end';
48
- }
49
- declare const SelectContent: React__default.ForwardRefExoticComponent<SelectContentProps & React__default.RefAttributes<HTMLDivElement>>;
50
- interface SelectItemProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
51
- /** Value for this option */
52
- value: string;
53
- /** Display text */
54
- children: React__default.ReactNode;
55
- /** Whether the item is disabled */
56
- disabled?: boolean;
57
- }
58
- declare const SelectItem: React__default.ForwardRefExoticComponent<SelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
59
- interface SelectGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
60
- /** Group label */
61
- label?: string;
62
- }
63
- declare const SelectGroup: React__default.ForwardRefExoticComponent<SelectGroupProps & React__default.RefAttributes<HTMLDivElement>>;
64
- declare const SelectSeparator: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
65
-
66
- export { Select as S, SelectContent as a, type SelectContentProps as b, SelectGroup as c, type SelectGroupProps as d, SelectItem as e, type SelectItemProps as f, type SelectProps as g, SelectSeparator as h, SelectTrigger as i, type SelectTriggerProps as j };
@@ -1,66 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import React__default from 'react';
3
-
4
- interface SelectProps {
5
- /** Current selected value */
6
- value?: string;
7
- /** Default value for uncontrolled mode */
8
- defaultValue?: string;
9
- /** Callback when value changes */
10
- onValueChange?: (value: string | null) => void;
11
- /** Whether the select is disabled */
12
- disabled?: boolean;
13
- /** Whether the select is required */
14
- required?: boolean;
15
- /** Name for form submission */
16
- name?: string;
17
- /**
18
- * Item label map for Value display resolution.
19
- * When provided, Select.Value renders the label instead of the raw value.
20
- * Accepts a record (e.g. `{ en: "English", fr: "French" }`) or an array
21
- * of `{ value, label }` objects.
22
- */
23
- items?: Record<string, React__default.ReactNode> | ReadonlyArray<{
24
- label: React__default.ReactNode;
25
- value: string;
26
- }>;
27
- /** Children (SelectTrigger, SelectContent, etc.) */
28
- children: React__default.ReactNode;
29
- }
30
- declare function Select({ value, defaultValue, onValueChange, disabled, required, name, items, children, }: SelectProps): react_jsx_runtime.JSX.Element;
31
- declare namespace Select {
32
- var displayName: string;
33
- }
34
- interface SelectTriggerProps extends React__default.ButtonHTMLAttributes<HTMLButtonElement> {
35
- /** Placeholder text when no value selected */
36
- placeholder?: string;
37
- /** Size variant */
38
- size?: 'sm' | 'md' | 'lg';
39
- }
40
- declare const SelectTrigger: React__default.ForwardRefExoticComponent<SelectTriggerProps & React__default.RefAttributes<HTMLButtonElement>>;
41
- interface SelectContentProps extends React__default.HTMLAttributes<HTMLDivElement> {
42
- /** Positioning side */
43
- side?: 'top' | 'bottom';
44
- /** Side offset in pixels */
45
- sideOffset?: number;
46
- /** Alignment */
47
- align?: 'start' | 'center' | 'end';
48
- }
49
- declare const SelectContent: React__default.ForwardRefExoticComponent<SelectContentProps & React__default.RefAttributes<HTMLDivElement>>;
50
- interface SelectItemProps extends Omit<React__default.HTMLAttributes<HTMLDivElement>, 'children'> {
51
- /** Value for this option */
52
- value: string;
53
- /** Display text */
54
- children: React__default.ReactNode;
55
- /** Whether the item is disabled */
56
- disabled?: boolean;
57
- }
58
- declare const SelectItem: React__default.ForwardRefExoticComponent<SelectItemProps & React__default.RefAttributes<HTMLDivElement>>;
59
- interface SelectGroupProps extends React__default.HTMLAttributes<HTMLDivElement> {
60
- /** Group label */
61
- label?: string;
62
- }
63
- declare const SelectGroup: React__default.ForwardRefExoticComponent<SelectGroupProps & React__default.RefAttributes<HTMLDivElement>>;
64
- declare const SelectSeparator: React__default.ForwardRefExoticComponent<React__default.HTMLAttributes<HTMLDivElement> & React__default.RefAttributes<HTMLDivElement>>;
65
-
66
- export { Select as S, SelectContent as a, type SelectContentProps as b, SelectGroup as c, type SelectGroupProps as d, SelectItem as e, type SelectItemProps as f, type SelectProps as g, SelectSeparator as h, SelectTrigger as i, type SelectTriggerProps as j };
@@ -1,208 +0,0 @@
1
- /**
2
- * Insight types define the semantic category of an insight.
3
- * Each type constrains which charts can be used as evidence.
4
- */
5
- type InsightType = 'performance-delta' | 'behavioral-correlation' | 'funnel-leakage' | 'audience-mismatch' | 'message-fatigue' | 'psychological-resonance' | 'timing-pattern' | 'segment-outperformance' | 'anomaly-detection' | 'competitive-benchmark';
6
- /**
7
- * Analytical states represent the data quality status of a component.
8
- */
9
- type AnalyticalState = 'VALID' | 'INSUFFICIENT_SAMPLE' | 'LOW_CONFIDENCE' | 'PARTIAL_TIME_WINDOW' | 'DATA_SKEW_DETECTED' | 'CONFLICTING_SIGNALS' | 'INFERRED_NOT_OBSERVED' | 'STALE_DATA' | 'FIELD_MISSING' | 'CALCULATION_ERROR';
10
- /**
11
- * Report mode determines the level of detail shown.
12
- */
13
- type ReportMode = 'executive' | 'analyst';
14
- /**
15
- * Configuration for report mode features.
16
- */
17
- interface ReportModeConfig {
18
- mode: ReportMode;
19
- features: {
20
- showMethodology: boolean;
21
- showConfidenceScores: boolean;
22
- showRawData: boolean;
23
- showStatisticalTests: boolean;
24
- chartDetailLevel: 'summary' | 'detailed';
25
- maxInsightsShown: number;
26
- allowDrilldown: boolean;
27
- };
28
- }
29
- /**
30
- * Confidence level thresholds and labels.
31
- */
32
- type ConfidenceLevel = 'high' | 'moderate' | 'low' | 'insufficient';
33
- interface ConfidenceThreshold {
34
- level: ConfidenceLevel;
35
- min: number;
36
- max: number;
37
- label: string;
38
- color: string;
39
- }
40
- /**
41
- * Data contract for analytical components.
42
- */
43
- interface DataContract {
44
- requiredFields: string[];
45
- optionalFields: string[];
46
- minimums: {
47
- sampleSize: number;
48
- completeness: number;
49
- timeSpan?: number;
50
- };
51
- fallbackBehavior: FallbackBehavior;
52
- }
53
- type FallbackBehavior = {
54
- type: 'hide';
55
- } | {
56
- type: 'disable';
57
- message: string;
58
- } | {
59
- type: 'warn';
60
- severity: 'low' | 'medium' | 'high';
61
- } | {
62
- type: 'substitute';
63
- component: string;
64
- };
65
- /**
66
- * Insight type contract defining allowed charts and requirements.
67
- */
68
- interface InsightTypeContract {
69
- type: InsightType;
70
- allowedCharts: string[];
71
- requiredFields: string[];
72
- minSampleSize: number;
73
- headlinePattern: string;
74
- recommendationFormats: string[];
75
- }
76
- /**
77
- * Trend direction for metrics.
78
- */
79
- type TrendDirection = 'up' | 'down' | 'neutral';
80
- /**
81
- * State details for DataStateIndicator.
82
- */
83
- interface DataStateDetails {
84
- sampleSize?: number;
85
- requiredSize?: number;
86
- confidence?: number;
87
- missingFields?: string[];
88
- staleDays?: number;
89
- message?: string;
90
- }
91
- /**
92
- * Chart types supported by the report engine.
93
- */
94
- type ChartType = 'LineChart' | 'BarChart' | 'PieChart' | 'AreaChart' | 'FunnelChart' | 'HeatmapChart' | 'MBTIRadar' | 'MBTITypeGrid' | 'KeyMetric';
95
- /**
96
- * MBTI personality types.
97
- */
98
- type MBTIType = 'INTJ' | 'INTP' | 'ENTJ' | 'ENTP' | 'INFJ' | 'INFP' | 'ENFJ' | 'ENFP' | 'ISTJ' | 'ISFJ' | 'ESTJ' | 'ESFJ' | 'ISTP' | 'ISFP' | 'ESTP' | 'ESFP';
99
-
100
- /**
101
- * Chart intent defines the semantic purpose of visualization.
102
- * This is the primary classifier that governs switching rules.
103
- */
104
- type ChartIntent = 'trend' | 'comparison' | 'composition' | 'distribution' | 'relationship' | 'geo';
105
- /**
106
- * All supported chart types organized by intent.
107
- */
108
- type TrendChartType = 'line' | 'smooth_line' | 'area' | 'stacked_area' | 'area_100pct';
109
- type ComparisonChartType = 'bar' | 'column' | 'stacked_bar' | 'stacked_column' | 'column_100pct' | 'combo';
110
- type CompositionChartType = 'pie' | 'donut' | 'treemap';
111
- type DistributionChartType = 'histogram' | 'radar';
112
- type RelationshipChartType = 'scatter' | 'bubble' | 'heatmap';
113
- type GeoChartType = 'geo' | 'choropleth';
114
- /**
115
- * Union of all chart types
116
- */
117
- type ChartTypeId = TrendChartType | ComparisonChartType | CompositionChartType | DistributionChartType | RelationshipChartType | GeoChartType | 'funnel' | 'waterfall' | 'timeline';
118
- /**
119
- * Chart phase classification
120
- */
121
- type ChartPhase = 'mvp' | 'phase2' | 'phase3';
122
- interface ChartTypeMetadata {
123
- id: ChartTypeId;
124
- name: string;
125
- description: string;
126
- intent: ChartIntent;
127
- phase: ChartPhase;
128
- contract: ChartDataContract;
129
- switchableTo: ChartTypeId[];
130
- supportsStacking: boolean;
131
- supportsMultipleSeries: boolean;
132
- requiresTimeAxis: boolean;
133
- maxCategories?: number;
134
- maxSlices?: number;
135
- }
136
- interface ChartDataContract {
137
- requiredDimensions: number;
138
- requiredMeasures: number;
139
- minDataPoints: number;
140
- idealDataPoints: number;
141
- maxDataPoints?: number;
142
- allowNegativeValues: boolean;
143
- requireNonZeroTotal: boolean;
144
- warningThresholds: {
145
- tooManyCategories?: number;
146
- imbalancedRatio?: number;
147
- sparseData?: number;
148
- };
149
- fallback: ChartFallbackBehavior;
150
- }
151
- type ChartFallbackBehavior = {
152
- type: 'hide';
153
- } | {
154
- type: 'show_kpi';
155
- message: string;
156
- } | {
157
- type: 'aggregate';
158
- strategy: 'other_bucket' | 'top_n';
159
- } | {
160
- type: 'warn';
161
- message: string;
162
- };
163
- declare const CHART_REGISTRY: Record<ChartTypeId, ChartTypeMetadata>;
164
- /**
165
- * Maps intent to allowed chart types for switching.
166
- * Users can ONLY switch within the same intent family.
167
- */
168
- declare const INTENT_CHART_FAMILIES: Record<ChartIntent, ChartTypeId[]>;
169
- /**
170
- * Get allowed chart types for switching from a given type.
171
- */
172
- declare function getAllowedSwitchTargets(currentType: ChartTypeId): ChartTypeId[];
173
- /**
174
- * Check if switching from one chart type to another is allowed.
175
- */
176
- declare function canSwitchChart(from: ChartTypeId, to: ChartTypeId): boolean;
177
- interface ChartValidationResult {
178
- isValid: boolean;
179
- warnings: string[];
180
- errors: string[];
181
- suggestedType?: ChartTypeId;
182
- fallbackAction?: ChartFallbackBehavior;
183
- }
184
- /**
185
- * Validate data against a chart's contract.
186
- */
187
- declare function validateChartData(chartType: ChartTypeId, data: unknown[], dimensions: string[], measures: string[]): ChartValidationResult;
188
- /**
189
- * Get MVP charts for a given intent.
190
- */
191
- declare function getMVPChartsForIntent(intent: ChartIntent): ChartTypeMetadata[];
192
- /**
193
- * Get the default chart type for an intent.
194
- */
195
- declare function getDefaultChartForIntent(intent: ChartIntent): ChartTypeId;
196
- /**
197
- * Suggest the best chart type for given data characteristics.
198
- */
199
- declare function suggestChartType(params: {
200
- hasTimeAxis: boolean;
201
- dimensionCount: number;
202
- measureCount: number;
203
- dataPointCount: number;
204
- hasNegativeValues: boolean;
205
- isSequential: boolean;
206
- }): ChartTypeId;
207
-
208
- export { type AnalyticalState as A, type ConfidenceThreshold as C, type DataStateDetails as D, type FallbackBehavior as F, type GeoChartType as G, type InsightType as I, type MBTIType as M, type ReportModeConfig as R, type TrendChartType as T, type InsightTypeContract as a, type ConfidenceLevel as b, type ReportMode as c, CHART_REGISTRY as d, type ChartDataContract as e, type ChartFallbackBehavior as f, type ChartIntent as g, type ChartPhase as h, type ChartType as i, type ChartTypeId as j, type ChartTypeMetadata as k, type ChartValidationResult as l, type ComparisonChartType as m, type CompositionChartType as n, type DataContract as o, type DistributionChartType as p, INTENT_CHART_FAMILIES as q, type RelationshipChartType as r, type TrendDirection as s, canSwitchChart as t, getAllowedSwitchTargets as u, getDefaultChartForIntent as v, getMVPChartsForIntent as w, suggestChartType as x, validateChartData as y };