@salesmind-ai/design-system 0.6.0 → 0.7.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-HDVAMYSG.js → chunk-27Y5ESMM.js} +7 -2
  20. package/dist/chunk-27Y5ESMM.js.map +1 -0
  21. package/dist/{chunk-YTYDQBVY.cjs → chunk-2VVRZBUR.cjs} +4 -4
  22. package/dist/{chunk-GQELL2MF.cjs → chunk-3NS6X2R4.cjs} +20 -203
  23. package/dist/chunk-3NS6X2R4.cjs.map +1 -0
  24. package/dist/{chunk-XEX2AEZK.cjs → chunk-65DTHLVX.cjs} +66 -186
  25. package/dist/chunk-65DTHLVX.cjs.map +1 -0
  26. package/dist/{chunk-QALDZ7WQ.js → chunk-6BUS7RMS.js} +21 -198
  27. package/dist/chunk-6BUS7RMS.js.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-FXYOSA4E.cjs +118 -0
  41. package/dist/chunk-FXYOSA4E.cjs.map +1 -0
  42. package/dist/{chunk-ECXBTUH6.cjs → chunk-GPHQGLR5.cjs} +27 -204
  43. package/dist/chunk-GPHQGLR5.cjs.map +1 -0
  44. package/dist/{chunk-Y26OHHMX.js → chunk-HHQ6J7B6.js} +513 -888
  45. package/dist/chunk-HHQ6J7B6.js.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-KXVFFEGD.js +60 -0
  52. package/dist/chunk-KXVFFEGD.js.map +1 -0
  53. package/dist/chunk-LQB7QLD3.js +288 -0
  54. package/dist/chunk-LQB7QLD3.js.map +1 -0
  55. package/dist/chunk-LUD52ZJF.cjs +726 -0
  56. package/dist/chunk-LUD52ZJF.cjs.map +1 -0
  57. package/dist/{chunk-7UZ5DETZ.js → chunk-MBAG654R.js} +4 -216
  58. package/dist/chunk-MBAG654R.js.map +1 -0
  59. package/dist/chunk-OMP6FAZ6.cjs +183 -0
  60. package/dist/chunk-OMP6FAZ6.cjs.map +1 -0
  61. package/dist/{chunk-WYH4TKS5.js → chunk-PBYRTNQ5.js} +6 -8
  62. package/dist/chunk-PBYRTNQ5.js.map +1 -0
  63. package/dist/chunk-PYREXCZK.js +679 -0
  64. package/dist/chunk-PYREXCZK.js.map +1 -0
  65. package/dist/{chunk-6D22TFLA.cjs → chunk-R3ZECV5P.cjs} +9 -4
  66. package/dist/chunk-R3ZECV5P.cjs.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-WB6XDNU7.js +115 -0
  78. package/dist/chunk-WB6XDNU7.js.map +1 -0
  79. package/dist/{chunk-LTPTW2US.cjs → chunk-WE4QIIVN.cjs} +592 -974
  80. package/dist/chunk-WE4QIIVN.cjs.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-BJ8rBqrO.d.cts +1100 -0
  92. package/dist/index-BxMqCbqE.d.ts +1100 -0
  93. package/dist/index.cjs +507 -1001
  94. package/dist/index.cjs.map +1 -1
  95. package/dist/index.css +6057 -16713
  96. package/dist/index.css.map +1 -1
  97. package/dist/index.d.cts +306 -21
  98. package/dist/index.d.ts +306 -21
  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 +657 -2990
  144. package/dist/theme/index.cjs +12 -16
  145. package/dist/theme/index.css +1 -245
  146. package/dist/theme/index.css.map +1 -1
  147. package/dist/theme/index.d.cts +4 -1
  148. package/dist/theme/index.d.ts +4 -1
  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,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 };
@@ -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 };