@salesmind-ai/design-system 0.2.1 → 0.3.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.
- package/dist/AppearancePanel-UT57J69V.d.cts +51 -0
- package/dist/AppearancePanel-UT57J69V.d.ts +51 -0
- package/dist/AppearanceProvider-C36a8-eb.d.cts +45 -0
- package/dist/AppearanceProvider-C36a8-eb.d.ts +45 -0
- package/dist/Breadcrumb-RX-B_gDV.d.cts +44 -0
- package/dist/Breadcrumb-RX-B_gDV.d.ts +44 -0
- package/dist/ExportMenu-A2TLFiVv.d.cts +311 -0
- package/dist/ExportMenu-C8qck5AT.d.ts +311 -0
- package/dist/SectionShell-BfBw5q0Y.d.cts +18 -0
- package/dist/SectionShell-BfBw5q0Y.d.ts +18 -0
- package/dist/Select-BdZmK0Lt.d.cts +66 -0
- package/dist/Select-BdZmK0Lt.d.ts +66 -0
- package/dist/admin/index.cjs +2941 -0
- package/dist/admin/index.cjs.map +1 -0
- package/dist/admin/index.css +4145 -0
- package/dist/admin/index.css.map +1 -0
- package/dist/admin/index.d.cts +491 -0
- package/dist/admin/index.d.ts +491 -0
- package/dist/admin/index.js +2918 -0
- package/dist/admin/index.js.map +1 -0
- package/dist/{audit-CiyPkxk1.d.cts → audit-BS2fn7M4.d.ts} +2 -51
- package/dist/{audit-CiyPkxk1.d.ts → audit-DwCmg32J.d.cts} +2 -51
- package/dist/blog/index.cjs +1074 -0
- package/dist/blog/index.cjs.map +1 -0
- package/dist/blog/index.css +1422 -0
- package/dist/blog/index.css.map +1 -0
- package/dist/blog/index.d.cts +233 -0
- package/dist/blog/index.d.ts +233 -0
- package/dist/blog/index.js +1056 -0
- package/dist/blog/index.js.map +1 -0
- package/dist/chart-types-BGVVO-zl.d.cts +208 -0
- package/dist/chart-types-BGVVO-zl.d.ts +208 -0
- package/dist/charts/index.cjs +2698 -0
- package/dist/charts/index.cjs.map +1 -0
- package/dist/charts/index.css +1167 -0
- package/dist/charts/index.css.map +1 -0
- package/dist/charts/index.d.cts +453 -0
- package/dist/charts/index.d.ts +453 -0
- package/dist/charts/index.js +2682 -0
- package/dist/charts/index.js.map +1 -0
- package/dist/core/index.cjs +526 -395
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.css +294 -0
- package/dist/core/index.css.map +1 -1
- package/dist/core/index.d.cts +7 -982
- package/dist/core/index.d.ts +7 -982
- package/dist/core/index.js +476 -351
- package/dist/core/index.js.map +1 -1
- package/dist/i18n/index.cjs +585 -0
- package/dist/i18n/index.cjs.map +1 -0
- package/dist/i18n/index.d.cts +855 -0
- package/dist/i18n/index.d.ts +855 -0
- package/dist/i18n/index.js +547 -0
- package/dist/i18n/index.js.map +1 -0
- package/dist/index.d.cts +22 -1290
- package/dist/index.d.ts +22 -1290
- package/dist/marketing/index.cjs +2144 -3023
- package/dist/marketing/index.cjs.map +1 -1
- package/dist/marketing/index.css +3729 -4824
- package/dist/marketing/index.css.map +1 -1
- package/dist/marketing/index.d.cts +1351 -4
- package/dist/marketing/index.d.ts +1351 -4
- package/dist/marketing/index.js +2190 -3054
- package/dist/marketing/index.js.map +1 -1
- package/dist/motion/index.cjs +1230 -0
- package/dist/motion/index.cjs.map +1 -0
- package/dist/motion/index.css +699 -0
- package/dist/motion/index.css.map +1 -0
- package/dist/motion/index.d.cts +68 -0
- package/dist/motion/index.d.ts +68 -0
- package/dist/motion/index.js +1218 -0
- package/dist/motion/index.js.map +1 -0
- package/dist/nav/index.cjs +1533 -0
- package/dist/nav/index.cjs.map +1 -0
- package/dist/nav/index.css +1984 -0
- package/dist/nav/index.css.map +1 -0
- package/dist/nav/index.d.cts +279 -0
- package/dist/nav/index.d.ts +279 -0
- package/dist/nav/index.js +1501 -0
- package/dist/nav/index.js.map +1 -0
- package/dist/report/index.cjs +26 -1649
- package/dist/report/index.cjs.map +1 -1
- package/dist/report/index.css +0 -963
- package/dist/report/index.css.map +1 -1
- package/dist/report/index.d.cts +4 -2
- package/dist/report/index.d.ts +4 -2
- package/dist/report/index.js +27 -1640
- package/dist/report/index.js.map +1 -1
- package/dist/sections/index.cjs +385 -0
- package/dist/sections/index.cjs.map +1 -0
- package/dist/sections/index.css +818 -0
- package/dist/sections/index.css.map +1 -0
- package/dist/sections/index.d.cts +69 -0
- package/dist/sections/index.d.ts +69 -0
- package/dist/sections/index.js +374 -0
- package/dist/sections/index.js.map +1 -0
- package/dist/social-proof/index.cjs +1254 -0
- package/dist/social-proof/index.cjs.map +1 -0
- package/dist/social-proof/index.css +1416 -0
- package/dist/social-proof/index.css.map +1 -0
- package/dist/social-proof/index.d.cts +258 -0
- package/dist/social-proof/index.d.ts +258 -0
- package/dist/social-proof/index.js +1237 -0
- package/dist/social-proof/index.js.map +1 -0
- package/dist/theme/index.cjs +573 -0
- package/dist/theme/index.cjs.map +1 -0
- package/dist/theme/index.css +464 -0
- package/dist/theme/index.css.map +1 -0
- package/dist/theme/index.d.cts +48 -0
- package/dist/theme/index.d.ts +48 -0
- package/dist/theme/index.js +558 -0
- package/dist/theme/index.js.map +1 -0
- package/dist/types-DAlgDGzw.d.cts +52 -0
- package/dist/types-DAlgDGzw.d.ts +52 -0
- package/dist/web/index.d.cts +3 -2
- package/dist/web/index.d.ts +3 -2
- package/package.json +68 -9
- package/dist/ExportMenu-hEe5MhLq.d.cts +0 -1027
- package/dist/ExportMenu-hEe5MhLq.d.ts +0 -1027
- package/dist/index-B64suAAc.d.cts +0 -1498
- package/dist/index-B64suAAc.d.ts +0 -1498
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { g as ChartIntent, j as ChartTypeId, M as MBTIType } from '../chart-types-BGVVO-zl.js';
|
|
4
|
+
|
|
5
|
+
interface ChartContainerProps<T = Record<string, unknown>> {
|
|
6
|
+
/** Chart title */
|
|
7
|
+
title?: string;
|
|
8
|
+
/** Chart subtitle/description */
|
|
9
|
+
subtitle?: string;
|
|
10
|
+
/** Chart height */
|
|
11
|
+
height?: number;
|
|
12
|
+
/** Chart data for validation */
|
|
13
|
+
data?: T[];
|
|
14
|
+
/** Required fields for data validation */
|
|
15
|
+
requiredFields?: string[];
|
|
16
|
+
/** Minimum sample size */
|
|
17
|
+
minSampleSize?: number;
|
|
18
|
+
/** Show data coverage badge */
|
|
19
|
+
showCoverage?: boolean;
|
|
20
|
+
/** Date range for coverage badge */
|
|
21
|
+
dateRange?: {
|
|
22
|
+
start: string;
|
|
23
|
+
end: string;
|
|
24
|
+
};
|
|
25
|
+
/** Loading state */
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
/** Empty state message */
|
|
28
|
+
emptyMessage?: string;
|
|
29
|
+
/** Chart children (Recharts components) */
|
|
30
|
+
children: React__default.ReactNode;
|
|
31
|
+
/** Additional CSS class */
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* ChartContainer wraps charts with responsive sizing, theming, and data state handling.
|
|
36
|
+
* It enforces data contracts and shows appropriate states when data is invalid.
|
|
37
|
+
*/
|
|
38
|
+
declare function ChartContainer<T extends Record<string, unknown>>({ title, subtitle, height, data, requiredFields, minSampleSize, showCoverage, dateRange, loading, emptyMessage, children, className, ...props }: ChartContainerProps<T>): react_jsx_runtime.JSX.Element;
|
|
39
|
+
declare namespace ChartContainer {
|
|
40
|
+
var displayName: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface LineConfig {
|
|
44
|
+
/** Data key for the line */
|
|
45
|
+
key: string;
|
|
46
|
+
/** Display name */
|
|
47
|
+
name?: string;
|
|
48
|
+
/** Line color (CSS variable or hex) */
|
|
49
|
+
color?: string;
|
|
50
|
+
/** Dashed line */
|
|
51
|
+
dashed?: boolean;
|
|
52
|
+
/** Show dots on data points */
|
|
53
|
+
dot?: boolean;
|
|
54
|
+
}
|
|
55
|
+
interface LineChartProps<T = Record<string, unknown>> {
|
|
56
|
+
/** Chart data */
|
|
57
|
+
data: T[];
|
|
58
|
+
/** X-axis data key */
|
|
59
|
+
xKey: string;
|
|
60
|
+
/** Line configurations */
|
|
61
|
+
lines: LineConfig[];
|
|
62
|
+
/** Chart title */
|
|
63
|
+
title?: string;
|
|
64
|
+
/** Chart subtitle */
|
|
65
|
+
subtitle?: string;
|
|
66
|
+
/** Chart height */
|
|
67
|
+
height?: number;
|
|
68
|
+
/** Show grid lines */
|
|
69
|
+
grid?: boolean;
|
|
70
|
+
/** Show legend */
|
|
71
|
+
legend?: boolean;
|
|
72
|
+
/** Curve type */
|
|
73
|
+
curve?: 'linear' | 'monotone' | 'step';
|
|
74
|
+
/** Custom tooltip formatter */
|
|
75
|
+
tooltipFormatter?: (value: number, name: string) => string;
|
|
76
|
+
/** Minimum sample size */
|
|
77
|
+
minSampleSize?: number;
|
|
78
|
+
/** Date range */
|
|
79
|
+
dateRange?: {
|
|
80
|
+
start: string;
|
|
81
|
+
end: string;
|
|
82
|
+
};
|
|
83
|
+
/** Additional CSS class */
|
|
84
|
+
className?: string;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* LineChart displays time-series or trend data.
|
|
88
|
+
* Requires minimum 7 data points for meaningful visualization.
|
|
89
|
+
*/
|
|
90
|
+
declare function LineChart<T extends Record<string, unknown>>({ data, xKey, lines, title, subtitle, height, grid, legend: showLegend, curve, minSampleSize, dateRange, className, }: LineChartProps<T>): react_jsx_runtime.JSX.Element;
|
|
91
|
+
declare namespace LineChart {
|
|
92
|
+
var displayName: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface BarConfig {
|
|
96
|
+
/** Data key for the bar */
|
|
97
|
+
key: string;
|
|
98
|
+
/** Display name */
|
|
99
|
+
name?: string;
|
|
100
|
+
/** Bar color (CSS variable or hex) */
|
|
101
|
+
color?: string;
|
|
102
|
+
/** Stack ID for stacked bars */
|
|
103
|
+
stackId?: string;
|
|
104
|
+
}
|
|
105
|
+
interface BarChartProps<T = Record<string, unknown>> {
|
|
106
|
+
/** Chart data */
|
|
107
|
+
data: T[];
|
|
108
|
+
/** X-axis data key (category key) */
|
|
109
|
+
xKey: string;
|
|
110
|
+
/** Bar configurations */
|
|
111
|
+
bars: BarConfig[];
|
|
112
|
+
/** Chart title */
|
|
113
|
+
title?: string;
|
|
114
|
+
/** Chart subtitle */
|
|
115
|
+
subtitle?: string;
|
|
116
|
+
/** Chart height */
|
|
117
|
+
height?: number;
|
|
118
|
+
/** Layout direction */
|
|
119
|
+
layout?: 'horizontal' | 'vertical';
|
|
120
|
+
/** Show grid lines */
|
|
121
|
+
grid?: boolean;
|
|
122
|
+
/** Show legend */
|
|
123
|
+
legend?: boolean;
|
|
124
|
+
/** Bar corner radius */
|
|
125
|
+
radius?: number;
|
|
126
|
+
/** Show value labels on bars */
|
|
127
|
+
showLabels?: boolean;
|
|
128
|
+
/** Custom tooltip formatter */
|
|
129
|
+
tooltipFormatter?: (value: number, name: string) => string;
|
|
130
|
+
/** Minimum sample size */
|
|
131
|
+
minSampleSize?: number;
|
|
132
|
+
/** Use category colors (different color per bar in single series) */
|
|
133
|
+
categoryColors?: string[];
|
|
134
|
+
/** Additional CSS class */
|
|
135
|
+
className?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* BarChart displays comparisons and distributions.
|
|
139
|
+
* Requires minimum 5 categories for meaningful visualization.
|
|
140
|
+
*/
|
|
141
|
+
declare function BarChart<T extends Record<string, unknown>>({ data, xKey, bars, title, subtitle, height, layout, grid, legend: showLegend, radius, showLabels, minSampleSize, categoryColors, className, }: BarChartProps<T>): react_jsx_runtime.JSX.Element;
|
|
142
|
+
declare namespace BarChart {
|
|
143
|
+
var displayName: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
interface PieChartDataItem {
|
|
147
|
+
name: string;
|
|
148
|
+
value: number;
|
|
149
|
+
color?: string;
|
|
150
|
+
}
|
|
151
|
+
interface PieChartProps {
|
|
152
|
+
/** Chart data */
|
|
153
|
+
data: PieChartDataItem[];
|
|
154
|
+
/** Chart title */
|
|
155
|
+
title?: string;
|
|
156
|
+
/** Chart subtitle */
|
|
157
|
+
subtitle?: string;
|
|
158
|
+
/** Chart height */
|
|
159
|
+
height?: number;
|
|
160
|
+
/** Inner radius for donut effect (0 = pie, >0 = donut) */
|
|
161
|
+
innerRadius?: number;
|
|
162
|
+
/** Outer radius */
|
|
163
|
+
outerRadius?: number;
|
|
164
|
+
/** Show labels */
|
|
165
|
+
showLabels?: boolean;
|
|
166
|
+
/** Label type */
|
|
167
|
+
labelType?: 'percent' | 'value' | 'name';
|
|
168
|
+
/** Show legend */
|
|
169
|
+
legend?: boolean;
|
|
170
|
+
/** Custom tooltip formatter */
|
|
171
|
+
tooltipFormatter?: (value: number, name: string) => string;
|
|
172
|
+
/** Minimum sample size (total of all values) */
|
|
173
|
+
minSampleSize?: number;
|
|
174
|
+
/** Additional CSS class */
|
|
175
|
+
className?: string;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* PieChart displays proportions and compositions.
|
|
179
|
+
* Requires minimum 3 segments and n > 30 for meaningful visualization.
|
|
180
|
+
*/
|
|
181
|
+
declare function PieChart({ data, title, subtitle, height, innerRadius, outerRadius, showLabels, labelType, legend: showLegend, minSampleSize, className, }: PieChartProps): react_jsx_runtime.JSX.Element;
|
|
182
|
+
declare namespace PieChart {
|
|
183
|
+
var displayName: string;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface FunnelStage {
|
|
187
|
+
/** Stage name */
|
|
188
|
+
name: string;
|
|
189
|
+
/** Value/count at this stage */
|
|
190
|
+
value: number;
|
|
191
|
+
/** Optional color override */
|
|
192
|
+
color?: string;
|
|
193
|
+
}
|
|
194
|
+
interface FunnelChartProps {
|
|
195
|
+
/** Funnel stages (min 3 required) */
|
|
196
|
+
stages: FunnelStage[];
|
|
197
|
+
/** Chart title */
|
|
198
|
+
title?: string;
|
|
199
|
+
/** Chart subtitle */
|
|
200
|
+
subtitle?: string;
|
|
201
|
+
/** Show conversion rates between stages */
|
|
202
|
+
showConversionRates?: boolean;
|
|
203
|
+
/** Show drop-off percentages */
|
|
204
|
+
showDropOff?: boolean;
|
|
205
|
+
/** Show value labels */
|
|
206
|
+
showValues?: boolean;
|
|
207
|
+
/** Height in pixels */
|
|
208
|
+
height?: number;
|
|
209
|
+
/** Additional CSS class */
|
|
210
|
+
className?: string;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* FunnelChart visualizes conversion funnels and drop-off rates.
|
|
214
|
+
* Requires minimum 3 stages for meaningful visualization.
|
|
215
|
+
*/
|
|
216
|
+
declare function FunnelChart({ stages, title, subtitle, showConversionRates, showDropOff, showValues, height, className, }: FunnelChartProps): react_jsx_runtime.JSX.Element;
|
|
217
|
+
declare namespace FunnelChart {
|
|
218
|
+
var displayName: string;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
interface HeatmapCell {
|
|
222
|
+
/** X-axis value (column) */
|
|
223
|
+
x: string;
|
|
224
|
+
/** Y-axis value (row) */
|
|
225
|
+
y: string;
|
|
226
|
+
/** Cell value */
|
|
227
|
+
value: number;
|
|
228
|
+
}
|
|
229
|
+
interface HeatmapChartProps {
|
|
230
|
+
/** Heatmap data */
|
|
231
|
+
data: HeatmapCell[];
|
|
232
|
+
/** Chart title */
|
|
233
|
+
title?: string;
|
|
234
|
+
/** Chart subtitle */
|
|
235
|
+
subtitle?: string;
|
|
236
|
+
/** X-axis label */
|
|
237
|
+
xLabel?: string;
|
|
238
|
+
/** Y-axis label */
|
|
239
|
+
yLabel?: string;
|
|
240
|
+
/** Color scale (low to high) */
|
|
241
|
+
colorScale?: [string, string];
|
|
242
|
+
/** Show cell values */
|
|
243
|
+
showValues?: boolean;
|
|
244
|
+
/** Value formatter */
|
|
245
|
+
valueFormatter?: (value: number) => string;
|
|
246
|
+
/** Minimum cells required */
|
|
247
|
+
minCells?: number;
|
|
248
|
+
/** Additional CSS class */
|
|
249
|
+
className?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* HeatmapChart visualizes density and correlation data.
|
|
253
|
+
* Requires minimum 25 cells for meaningful visualization.
|
|
254
|
+
*/
|
|
255
|
+
declare function HeatmapChart({ data, title, subtitle, xLabel, yLabel, colorScale, showValues, valueFormatter, minCells, className, }: HeatmapChartProps): react_jsx_runtime.JSX.Element;
|
|
256
|
+
declare namespace HeatmapChart {
|
|
257
|
+
var displayName: string;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
interface ChartDimension {
|
|
261
|
+
/** Field key in data */
|
|
262
|
+
key: string;
|
|
263
|
+
/** Display label */
|
|
264
|
+
label?: string;
|
|
265
|
+
/** Is this a time dimension */
|
|
266
|
+
isTime?: boolean;
|
|
267
|
+
}
|
|
268
|
+
interface ChartMeasure {
|
|
269
|
+
/** Field key in data */
|
|
270
|
+
key: string;
|
|
271
|
+
/** Display label */
|
|
272
|
+
label?: string;
|
|
273
|
+
/** Color (CSS variable or hex) */
|
|
274
|
+
color?: string;
|
|
275
|
+
/** Stack group ID */
|
|
276
|
+
stackId?: string;
|
|
277
|
+
}
|
|
278
|
+
interface ChartProps<T = Record<string, unknown>> {
|
|
279
|
+
/** Semantic intent of the visualization */
|
|
280
|
+
intent: ChartIntent;
|
|
281
|
+
/** Chart data */
|
|
282
|
+
data: T[];
|
|
283
|
+
/** Dimension fields (categories, time axis) */
|
|
284
|
+
dimensions: ChartDimension[];
|
|
285
|
+
/** Measure fields (values to visualize) */
|
|
286
|
+
measures: ChartMeasure[];
|
|
287
|
+
/** Default chart type */
|
|
288
|
+
defaultType?: ChartTypeId;
|
|
289
|
+
/** Allowed chart types for switching (defaults to all MVP types in family) */
|
|
290
|
+
allowedTypes?: ChartTypeId[];
|
|
291
|
+
/** Controlled chart type */
|
|
292
|
+
chartType?: ChartTypeId;
|
|
293
|
+
/** Callback when chart type changes */
|
|
294
|
+
onChartTypeChange?: (type: ChartTypeId) => void;
|
|
295
|
+
/** Allow user to switch chart types */
|
|
296
|
+
allowSwitching?: boolean;
|
|
297
|
+
/** Chart title */
|
|
298
|
+
title?: string;
|
|
299
|
+
/** Chart subtitle */
|
|
300
|
+
subtitle?: string;
|
|
301
|
+
/** Chart height */
|
|
302
|
+
height?: number;
|
|
303
|
+
/** Show legend */
|
|
304
|
+
legend?: boolean;
|
|
305
|
+
/** Show grid */
|
|
306
|
+
grid?: boolean;
|
|
307
|
+
/** Additional CSS class */
|
|
308
|
+
className?: string;
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Chart is the unified abstraction layer for all visualizations.
|
|
312
|
+
*
|
|
313
|
+
* It provides:
|
|
314
|
+
* - Intent-based chart selection
|
|
315
|
+
* - Data contract validation
|
|
316
|
+
* - Governed chart switching within semantic families
|
|
317
|
+
* - Consistent theming and accessibility
|
|
318
|
+
*
|
|
319
|
+
* @example
|
|
320
|
+
* ```tsx
|
|
321
|
+
* <Chart
|
|
322
|
+
* intent="trend"
|
|
323
|
+
* data={timeSeriesData}
|
|
324
|
+
* dimensions={[{ key: 'date', isTime: true }]}
|
|
325
|
+
* measures={[{ key: 'revenue', label: 'Revenue' }]}
|
|
326
|
+
* defaultType="line"
|
|
327
|
+
* allowSwitching
|
|
328
|
+
* />
|
|
329
|
+
* ```
|
|
330
|
+
*/
|
|
331
|
+
declare function Chart<T extends Record<string, unknown>>({ intent, data, dimensions, measures, defaultType, allowedTypes, chartType: controlledType, onChartTypeChange, allowSwitching, title, subtitle, height, legend: showLegend, grid, className, }: ChartProps<T>): react_jsx_runtime.JSX.Element;
|
|
332
|
+
declare namespace Chart {
|
|
333
|
+
var displayName: string;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
interface ChartSwitchControlProps {
|
|
337
|
+
/** Currently selected chart type */
|
|
338
|
+
currentType: ChartTypeId;
|
|
339
|
+
/** Allowed chart types for switching */
|
|
340
|
+
allowedTypes: ChartTypeId[];
|
|
341
|
+
/** Callback when type changes */
|
|
342
|
+
onTypeChange: (type: ChartTypeId) => void;
|
|
343
|
+
/** Size variant */
|
|
344
|
+
size?: 'sm' | 'md';
|
|
345
|
+
/** Additional CSS class */
|
|
346
|
+
className?: string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* ChartSwitchControl allows users to switch between allowed chart types
|
|
350
|
+
* within the same semantic family.
|
|
351
|
+
*/
|
|
352
|
+
declare function ChartSwitchControl({ currentType, allowedTypes, onTypeChange, size, className, }: ChartSwitchControlProps): react_jsx_runtime.JSX.Element | null;
|
|
353
|
+
declare namespace ChartSwitchControl {
|
|
354
|
+
var displayName: string;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* MBTI dimension scores representing preference strengths.
|
|
359
|
+
* Values should be 0-100 where 50 is neutral.
|
|
360
|
+
*/
|
|
361
|
+
interface MBTIDimensions {
|
|
362
|
+
/** Extraversion (0) vs Introversion (100) */
|
|
363
|
+
EI: number;
|
|
364
|
+
/** Sensing (0) vs Intuition (100) */
|
|
365
|
+
SN: number;
|
|
366
|
+
/** Thinking (0) vs Feeling (100) */
|
|
367
|
+
TF: number;
|
|
368
|
+
/** Judging (0) vs Perceiving (100) */
|
|
369
|
+
JP: number;
|
|
370
|
+
}
|
|
371
|
+
interface MBTIRadarProps {
|
|
372
|
+
/** MBTI dimension scores */
|
|
373
|
+
dimensions: MBTIDimensions;
|
|
374
|
+
/** Sample size for confidence calculation */
|
|
375
|
+
sampleSize: number;
|
|
376
|
+
/** Optional comparison dimensions (e.g., benchmark) */
|
|
377
|
+
comparison?: MBTIDimensions;
|
|
378
|
+
/** Chart title */
|
|
379
|
+
title?: string;
|
|
380
|
+
/** Chart subtitle */
|
|
381
|
+
subtitle?: string;
|
|
382
|
+
/** Chart size */
|
|
383
|
+
size?: number;
|
|
384
|
+
/** Show dimension labels */
|
|
385
|
+
showLabels?: boolean;
|
|
386
|
+
/** Show values on hover */
|
|
387
|
+
showValues?: boolean;
|
|
388
|
+
/** Minimum sample size (default: 20) */
|
|
389
|
+
minSampleSize?: number;
|
|
390
|
+
/** Confidence score (0-100) */
|
|
391
|
+
confidence?: number;
|
|
392
|
+
/** Additional CSS class */
|
|
393
|
+
className?: string;
|
|
394
|
+
}
|
|
395
|
+
/**
|
|
396
|
+
* MBTIRadar visualizes personality dimension scores as a radar chart.
|
|
397
|
+
* Requires minimum 20 samples for meaningful visualization.
|
|
398
|
+
*
|
|
399
|
+
* Each dimension is scored 0-100:
|
|
400
|
+
* - EI: 0 = Extraversion, 100 = Introversion
|
|
401
|
+
* - SN: 0 = Sensing, 100 = Intuition
|
|
402
|
+
* - TF: 0 = Thinking, 100 = Feeling
|
|
403
|
+
* - JP: 0 = Judging, 100 = Perceiving
|
|
404
|
+
*/
|
|
405
|
+
declare function MBTIRadar({ dimensions, sampleSize, comparison, title, subtitle, size, showLabels, showValues, minSampleSize, confidence, className, }: MBTIRadarProps): react_jsx_runtime.JSX.Element;
|
|
406
|
+
declare namespace MBTIRadar {
|
|
407
|
+
var displayName: string;
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
interface MBTITypeCount {
|
|
411
|
+
/** MBTI type */
|
|
412
|
+
type: MBTIType;
|
|
413
|
+
/** Count of individuals with this type */
|
|
414
|
+
count: number;
|
|
415
|
+
/** Optional response rate for this type */
|
|
416
|
+
responseRate?: number;
|
|
417
|
+
}
|
|
418
|
+
interface MBTITypeGridProps {
|
|
419
|
+
/** Distribution of MBTI types */
|
|
420
|
+
data: MBTITypeCount[];
|
|
421
|
+
/** Total sample size (sum of all counts) */
|
|
422
|
+
sampleSize?: number;
|
|
423
|
+
/** Chart title */
|
|
424
|
+
title?: string;
|
|
425
|
+
/** Chart subtitle */
|
|
426
|
+
subtitle?: string;
|
|
427
|
+
/** Show percentage labels */
|
|
428
|
+
showPercentages?: boolean;
|
|
429
|
+
/** Show count labels */
|
|
430
|
+
showCounts?: boolean;
|
|
431
|
+
/** Highlight types above this threshold (percentage) */
|
|
432
|
+
highlightThreshold?: number;
|
|
433
|
+
/** Minimum sample size (default: 50) */
|
|
434
|
+
minSampleSize?: number;
|
|
435
|
+
/** Confidence score (0-100) */
|
|
436
|
+
confidence?: number;
|
|
437
|
+
/** Click handler for type selection */
|
|
438
|
+
onTypeClick?: (type: MBTIType) => void;
|
|
439
|
+
/** Currently selected type */
|
|
440
|
+
selectedType?: MBTIType;
|
|
441
|
+
/** Additional CSS class */
|
|
442
|
+
className?: string;
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* MBTITypeGrid displays the distribution of all 16 MBTI types in a 4x4 grid.
|
|
446
|
+
* Requires minimum 50 samples for meaningful visualization.
|
|
447
|
+
*/
|
|
448
|
+
declare function MBTITypeGrid({ data, sampleSize: propSampleSize, title, subtitle, showPercentages, showCounts, highlightThreshold, minSampleSize, confidence, onTypeClick, selectedType, className, }: MBTITypeGridProps): react_jsx_runtime.JSX.Element;
|
|
449
|
+
declare namespace MBTITypeGrid {
|
|
450
|
+
var displayName: string;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export { BarChart, type BarChartProps, type BarConfig, Chart, ChartContainer, type ChartContainerProps, type ChartDimension, type ChartMeasure, type ChartProps, ChartSwitchControl, type ChartSwitchControlProps, FunnelChart, type FunnelChartProps, type FunnelStage, type HeatmapCell, HeatmapChart, type HeatmapChartProps, LineChart, type LineChartProps, type LineConfig, type MBTIDimensions, MBTIRadar, type MBTIRadarProps, type MBTITypeCount, MBTITypeGrid, type MBTITypeGridProps, PieChart, type PieChartDataItem, type PieChartProps };
|