@salesmind-ai/design-system 0.5.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.
- package/README.md +2 -0
- package/dist/Anton-Regular-MLEXVTB2.woff2 +0 -0
- package/dist/admin/index.cjs +5 -61
- package/dist/admin/index.css +0 -3918
- package/dist/admin/index.css.map +1 -1
- package/dist/admin/index.d.cts +1 -422
- package/dist/admin/index.d.ts +1 -422
- package/dist/admin/index.js +1 -5
- package/dist/blog/index.cjs +13 -34
- package/dist/blog/index.css +0 -579
- package/dist/blog/index.css.map +1 -1
- package/dist/blog/index.d.cts +1 -54
- package/dist/blog/index.d.ts +1 -54
- package/dist/blog/index.js +5 -6
- package/dist/charts/index.cjs +0 -46
- package/dist/charts/index.d.cts +1 -452
- package/dist/charts/index.d.ts +1 -452
- package/dist/charts/index.js +1 -3
- package/dist/{chunk-HDVAMYSG.js → chunk-27Y5ESMM.js} +7 -2
- package/dist/chunk-27Y5ESMM.js.map +1 -0
- package/dist/{chunk-YTYDQBVY.cjs → chunk-2VVRZBUR.cjs} +4 -4
- package/dist/{chunk-GQELL2MF.cjs → chunk-3NS6X2R4.cjs} +20 -203
- package/dist/chunk-3NS6X2R4.cjs.map +1 -0
- package/dist/{chunk-XEX2AEZK.cjs → chunk-65DTHLVX.cjs} +66 -186
- package/dist/chunk-65DTHLVX.cjs.map +1 -0
- package/dist/{chunk-QALDZ7WQ.js → chunk-6BUS7RMS.js} +21 -198
- package/dist/chunk-6BUS7RMS.js.map +1 -0
- package/dist/{chunk-BJZ2DKS5.cjs → chunk-6QIQCUYC.cjs} +11 -10
- package/dist/chunk-6QIQCUYC.cjs.map +1 -0
- package/dist/{chunk-H2Y6BSTL.cjs → chunk-7EUR3AKV.cjs} +1 -1
- package/dist/chunk-7EUR3AKV.cjs.map +1 -0
- package/dist/{chunk-VFJZQQZU.js → chunk-AMNY5TS3.js} +11 -10
- package/dist/chunk-AMNY5TS3.js.map +1 -0
- package/dist/{chunk-YJ6C3EKW.js → chunk-CLXLQCNQ.js} +52 -168
- package/dist/chunk-CLXLQCNQ.js.map +1 -0
- package/dist/{chunk-H2KQ3WSH.cjs → chunk-CVLD5RQK.cjs} +12 -14
- package/dist/chunk-CVLD5RQK.cjs.map +1 -0
- package/dist/chunk-EPD4ZEPY.cjs +344 -0
- package/dist/chunk-EPD4ZEPY.cjs.map +1 -0
- package/dist/chunk-FXYOSA4E.cjs +118 -0
- package/dist/chunk-FXYOSA4E.cjs.map +1 -0
- package/dist/{chunk-ECXBTUH6.cjs → chunk-GPHQGLR5.cjs} +27 -204
- package/dist/chunk-GPHQGLR5.cjs.map +1 -0
- package/dist/{chunk-Y26OHHMX.js → chunk-HHQ6J7B6.js} +513 -888
- package/dist/chunk-HHQ6J7B6.js.map +1 -0
- package/dist/chunk-JPUJWI7F.cjs +73 -0
- package/dist/chunk-JPUJWI7F.cjs.map +1 -0
- package/dist/{chunk-6UNG76Y2.js → chunk-K526GN7P.js} +2 -2
- package/dist/{chunk-SICKWUWB.js → chunk-KJHPOB3J.js} +1 -1
- package/dist/chunk-KJHPOB3J.js.map +1 -0
- package/dist/chunk-KXVFFEGD.js +60 -0
- package/dist/chunk-KXVFFEGD.js.map +1 -0
- package/dist/chunk-LQB7QLD3.js +288 -0
- package/dist/chunk-LQB7QLD3.js.map +1 -0
- package/dist/chunk-LUD52ZJF.cjs +726 -0
- package/dist/chunk-LUD52ZJF.cjs.map +1 -0
- package/dist/{chunk-7UZ5DETZ.js → chunk-MBAG654R.js} +4 -216
- package/dist/chunk-MBAG654R.js.map +1 -0
- package/dist/chunk-OMP6FAZ6.cjs +183 -0
- package/dist/chunk-OMP6FAZ6.cjs.map +1 -0
- package/dist/{chunk-WYH4TKS5.js → chunk-PBYRTNQ5.js} +6 -8
- package/dist/chunk-PBYRTNQ5.js.map +1 -0
- package/dist/chunk-PYREXCZK.js +679 -0
- package/dist/chunk-PYREXCZK.js.map +1 -0
- package/dist/{chunk-6D22TFLA.cjs → chunk-R3ZECV5P.cjs} +9 -4
- package/dist/chunk-R3ZECV5P.cjs.map +1 -0
- package/dist/{chunk-P5BOFE5A.js → chunk-RSLA2FJN.js} +28 -183
- package/dist/chunk-RSLA2FJN.js.map +1 -0
- package/dist/chunk-S46SKHMD.js +173 -0
- package/dist/chunk-S46SKHMD.js.map +1 -0
- package/dist/chunk-SFXTB7JL.js +190 -0
- package/dist/chunk-SFXTB7JL.js.map +1 -0
- package/dist/chunk-SGYXYMKZ.cjs +214 -0
- package/dist/chunk-SGYXYMKZ.cjs.map +1 -0
- package/dist/chunk-UGKYP6F3.cjs +296 -0
- package/dist/chunk-UGKYP6F3.cjs.map +1 -0
- package/dist/chunk-WB6XDNU7.js +115 -0
- package/dist/chunk-WB6XDNU7.js.map +1 -0
- package/dist/{chunk-LTPTW2US.cjs → chunk-WE4QIIVN.cjs} +592 -974
- package/dist/chunk-WE4QIIVN.cjs.map +1 -0
- package/dist/core/index.cjs +144 -626
- package/dist/core/index.css +178 -3567
- package/dist/core/index.css.map +1 -1
- package/dist/core/index.d.cts +940 -902
- package/dist/core/index.d.ts +940 -902
- package/dist/core/index.js +6 -12
- package/dist/i18n/index.cjs +54 -49
- package/dist/i18n/index.d.cts +46 -11
- package/dist/i18n/index.d.ts +46 -11
- package/dist/i18n/index.js +2 -1
- package/dist/index-BJ8rBqrO.d.cts +1100 -0
- package/dist/index-BxMqCbqE.d.ts +1100 -0
- package/dist/index.cjs +507 -1001
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +6057 -16713
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +306 -21
- package/dist/index.d.ts +306 -21
- package/dist/index.js +274 -39
- package/dist/index.js.map +1 -1
- package/dist/marketing/index.cjs +33 -76
- package/dist/marketing/index.css +1896 -3234
- package/dist/marketing/index.css.map +1 -1
- package/dist/marketing/index.d.cts +3 -1351
- package/dist/marketing/index.d.ts +3 -1351
- package/dist/marketing/index.js +5 -8
- package/dist/motion/index.cjs +3 -20
- package/dist/motion/index.css +0 -580
- package/dist/motion/index.css.map +1 -1
- package/dist/motion/index.d.cts +1 -37
- package/dist/motion/index.d.ts +1 -37
- package/dist/motion/index.js +1 -2
- package/dist/nav/index.cjs +10 -35
- package/dist/nav/index.css +28 -580
- package/dist/nav/index.css.map +1 -1
- package/dist/nav/index.d.cts +2 -60
- package/dist/nav/index.d.ts +2 -60
- package/dist/nav/index.js +1 -2
- package/dist/report/index.cjs +1166 -175
- package/dist/report/index.cjs.map +1 -1
- package/dist/report/index.d.cts +208 -5
- package/dist/report/index.d.ts +208 -5
- package/dist/report/index.js +1141 -3
- package/dist/report/index.js.map +1 -1
- package/dist/sections/index.cjs +8 -10
- package/dist/sections/index.cjs.map +1 -1
- package/dist/sections/index.css +0 -206
- package/dist/sections/index.css.map +1 -1
- package/dist/sections/index.js +2 -4
- package/dist/sections/index.js.map +1 -1
- package/dist/social-media/index.cjs +4 -0
- package/dist/social-media/index.cjs.map +1 -0
- package/dist/social-media/index.d.cts +2 -0
- package/dist/social-media/index.d.ts +2 -0
- package/dist/social-media/index.js +3 -0
- package/dist/social-media/index.js.map +1 -0
- package/dist/social-proof/index.cjs +4 -36
- package/dist/social-proof/index.css +3 -1106
- package/dist/social-proof/index.css.map +1 -1
- package/dist/social-proof/index.d.cts +26 -171
- package/dist/social-proof/index.d.ts +26 -171
- package/dist/social-proof/index.js +1 -5
- package/dist/styles/styles.css +657 -2990
- package/dist/theme/index.cjs +12 -16
- package/dist/theme/index.css +1 -245
- package/dist/theme/index.css.map +1 -1
- package/dist/theme/index.d.cts +4 -1
- package/dist/theme/index.d.ts +4 -1
- package/dist/theme/index.js +2 -2
- package/dist/web/client/index.cjs +10 -10
- package/dist/web/client/index.css +118 -0
- package/dist/web/client/index.css.map +1 -1
- package/dist/web/client/index.js +2 -2
- package/dist/web/index.cjs +10 -10
- package/dist/web/index.css +118 -0
- package/dist/web/index.css.map +1 -1
- package/dist/web/index.js +2 -2
- package/package.json +10 -4
- package/dist/AppearancePanel-UT57J69V.d.cts +0 -51
- package/dist/AppearancePanel-UT57J69V.d.ts +0 -51
- package/dist/ExportMenu-A2TLFiVv.d.cts +0 -311
- package/dist/ExportMenu-C8qck5AT.d.ts +0 -311
- package/dist/Select-BdZmK0Lt.d.cts +0 -66
- package/dist/Select-BdZmK0Lt.d.ts +0 -66
- package/dist/chart-types-BGVVO-zl.d.cts +0 -208
- package/dist/chart-types-BGVVO-zl.d.ts +0 -208
- package/dist/charts/index.css +0 -1167
- package/dist/charts/index.css.map +0 -1
- package/dist/chunk-3BAQDW3V.cjs +0 -1207
- package/dist/chunk-3BAQDW3V.cjs.map +0 -1
- package/dist/chunk-3NKRFUAR.js +0 -37
- package/dist/chunk-3NKRFUAR.js.map +0 -1
- package/dist/chunk-3TGSIILM.cjs +0 -201
- package/dist/chunk-3TGSIILM.cjs.map +0 -1
- package/dist/chunk-4GM5BGBN.cjs +0 -801
- package/dist/chunk-4GM5BGBN.cjs.map +0 -1
- package/dist/chunk-5LA3T22E.cjs +0 -562
- package/dist/chunk-5LA3T22E.cjs.map +0 -1
- package/dist/chunk-5SN66B2X.js +0 -2542
- package/dist/chunk-5SN66B2X.js.map +0 -1
- package/dist/chunk-6D22TFLA.cjs.map +0 -1
- package/dist/chunk-6H4DSTXR.js +0 -786
- package/dist/chunk-6H4DSTXR.js.map +0 -1
- package/dist/chunk-6HKQ5ILL.cjs +0 -1624
- package/dist/chunk-6HKQ5ILL.cjs.map +0 -1
- package/dist/chunk-7PX2AZ6Y.js +0 -39
- package/dist/chunk-7PX2AZ6Y.js.map +0 -1
- package/dist/chunk-7UZ5DETZ.js.map +0 -1
- package/dist/chunk-B6AVAX4F.js +0 -1415
- package/dist/chunk-B6AVAX4F.js.map +0 -1
- package/dist/chunk-BJZ2DKS5.cjs.map +0 -1
- package/dist/chunk-BUTQSDQH.js +0 -200
- package/dist/chunk-BUTQSDQH.js.map +0 -1
- package/dist/chunk-C2BCDNAV.js +0 -24
- package/dist/chunk-C2BCDNAV.js.map +0 -1
- package/dist/chunk-CJ2MKVAF.cjs +0 -46
- package/dist/chunk-CJ2MKVAF.cjs.map +0 -1
- package/dist/chunk-E7D6EKJ4.cjs +0 -44
- package/dist/chunk-E7D6EKJ4.cjs.map +0 -1
- package/dist/chunk-ECXBTUH6.cjs.map +0 -1
- package/dist/chunk-FAFAP4L5.js +0 -183
- package/dist/chunk-FAFAP4L5.js.map +0 -1
- package/dist/chunk-G2XGBO5V.cjs +0 -2565
- package/dist/chunk-G2XGBO5V.cjs.map +0 -1
- package/dist/chunk-GQELL2MF.cjs.map +0 -1
- package/dist/chunk-H2KQ3WSH.cjs.map +0 -1
- package/dist/chunk-H2Y6BSTL.cjs.map +0 -1
- package/dist/chunk-HCZW5AJN.cjs +0 -234
- package/dist/chunk-HCZW5AJN.cjs.map +0 -1
- package/dist/chunk-HDVAMYSG.js.map +0 -1
- package/dist/chunk-HN4PHABT.js +0 -126
- package/dist/chunk-HN4PHABT.js.map +0 -1
- package/dist/chunk-LTPTW2US.cjs.map +0 -1
- package/dist/chunk-MDB2WCRQ.cjs +0 -137
- package/dist/chunk-MDB2WCRQ.cjs.map +0 -1
- package/dist/chunk-MQRB634A.cjs +0 -34
- package/dist/chunk-MQRB634A.cjs.map +0 -1
- package/dist/chunk-NN3TUHIH.js +0 -28
- package/dist/chunk-NN3TUHIH.js.map +0 -1
- package/dist/chunk-OWS2KAXZ.js +0 -701
- package/dist/chunk-OWS2KAXZ.js.map +0 -1
- package/dist/chunk-P5BOFE5A.js.map +0 -1
- package/dist/chunk-PUPSK3DI.cjs +0 -216
- package/dist/chunk-PUPSK3DI.cjs.map +0 -1
- package/dist/chunk-Q2MFGYTE.cjs +0 -1449
- package/dist/chunk-Q2MFGYTE.cjs.map +0 -1
- package/dist/chunk-Q75DBVDY.cjs +0 -68
- package/dist/chunk-Q75DBVDY.cjs.map +0 -1
- package/dist/chunk-QALDZ7WQ.js.map +0 -1
- package/dist/chunk-QWE2RNCS.js +0 -1195
- package/dist/chunk-QWE2RNCS.js.map +0 -1
- package/dist/chunk-RQUFZAZ7.js +0 -1608
- package/dist/chunk-RQUFZAZ7.js.map +0 -1
- package/dist/chunk-SICKWUWB.js.map +0 -1
- package/dist/chunk-TCFC7XTB.js +0 -212
- package/dist/chunk-TCFC7XTB.js.map +0 -1
- package/dist/chunk-UTVXGAQP.cjs +0 -2437
- package/dist/chunk-UTVXGAQP.cjs.map +0 -1
- package/dist/chunk-UVEMY3FQ.cjs +0 -717
- package/dist/chunk-UVEMY3FQ.cjs.map +0 -1
- package/dist/chunk-VFJZQQZU.js.map +0 -1
- package/dist/chunk-WH7PYHZY.cjs +0 -35
- package/dist/chunk-WH7PYHZY.cjs.map +0 -1
- package/dist/chunk-WYH4TKS5.js.map +0 -1
- package/dist/chunk-XEX2AEZK.cjs.map +0 -1
- package/dist/chunk-XPTVHPCN.js +0 -2320
- package/dist/chunk-XPTVHPCN.js.map +0 -1
- package/dist/chunk-XWPDRMZG.js +0 -62
- package/dist/chunk-XWPDRMZG.js.map +0 -1
- package/dist/chunk-Y26OHHMX.js.map +0 -1
- package/dist/chunk-YJ6C3EKW.js.map +0 -1
- package/dist/motion-C651Ry6d.d.cts +0 -832
- package/dist/motion-C651Ry6d.d.ts +0 -832
- package/dist/report/index.css +0 -1239
- package/dist/report/index.css.map +0 -1
- /package/dist/{chunk-6UNG76Y2.js.map → chunk-2VVRZBUR.cjs.map} +0 -0
- /package/dist/{chunk-YTYDQBVY.cjs.map → chunk-K526GN7P.js.map} +0 -0
package/dist/charts/index.d.ts
CHANGED
|
@@ -1,453 +1,2 @@
|
|
|
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
1
|
|
|
5
|
-
|
|
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 };
|
|
2
|
+
export { }
|
package/dist/charts/index.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import '../chunk-B6AVAX4F.js';
|
|
3
|
-
import '../chunk-C2BCDNAV.js';
|
|
1
|
+
|
|
4
2
|
//# sourceMappingURL=out.js.map
|
|
5
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useAppearance } from './chunk-
|
|
1
|
+
import { useAppearance } from './chunk-MBAG654R.js';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import clsx2 from 'clsx';
|
|
4
4
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
@@ -6,6 +6,11 @@ import { Sun, Moon } from 'lucide-react';
|
|
|
6
6
|
|
|
7
7
|
var VoidBackground = React.forwardRef(
|
|
8
8
|
({ showGrid = true, showGrain = true, className, children }, ref) => {
|
|
9
|
+
if (process.env.NODE_ENV !== "production") {
|
|
10
|
+
console.warn(
|
|
11
|
+
"VoidBackground is deprecated since v2; use AuroraVoid from @salesmind-ai/design-system. Will be removed in v3."
|
|
12
|
+
);
|
|
13
|
+
}
|
|
9
14
|
return /* @__PURE__ */ jsxs("div", { ref, className: clsx2("void", className), children: [
|
|
10
15
|
/* @__PURE__ */ jsx("div", { className: "void__base", "aria-hidden": "true" }),
|
|
11
16
|
/* @__PURE__ */ jsxs("div", { className: "void__orbs", "aria-hidden": "true", children: [
|
|
@@ -154,4 +159,4 @@ ColorPicker.displayName = "ColorPicker";
|
|
|
154
159
|
|
|
155
160
|
export { ColorPicker, ThemeSelector, VoidBackground };
|
|
156
161
|
//# sourceMappingURL=out.js.map
|
|
157
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-27Y5ESMM.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/VoidBackground/VoidBackground.tsx","../src/components/ThemeSelector/ThemeSelector.tsx","../src/components/ColorPicker/ColorPicker.tsx"],"names":["clsx","jsx","jsxs","React"],"mappings":"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","sourcesContent":["import React from 'react';\nimport clsx from 'clsx';\nimport './VoidBackground.css';\n\nexport interface VoidBackgroundProps {\n /** Show the engineered grid overlay */\n showGrid?: boolean;\n /** Show the film grain texture */\n showGrain?: boolean;\n /** Custom class name */\n className?: string;\n /** Child content rendered above the void */\n children?: React.ReactNode;\n}\n\n/**\n * VoidBackground — The Void Signature Design System Level 0 Environment\n *\n * @deprecated since v2; use AuroraVoid from @salesmind-ai/design-system. Will be removed in v3.\n *\n * A four-layer atmospheric background system:\n * 1. Base Color — Deep purple-black (#08040a)\n * 2. Light Orbs — Radial gradients with mix-blend-mode: screen\n * 3. Engineered Grid — 80×80px with radial fade mask\n * 4. Film Grain — Static SVG noise for texture\n *\n * The Void is not decoration — it is the lighting engine for the UI.\n *\n * @see AuroraVoid\n */\nexport const VoidBackground = React.forwardRef<HTMLDivElement, VoidBackgroundProps>(\n ({ showGrid = true, showGrain = true, className, children }, ref) => {\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line no-console\n console.warn(\n 'VoidBackground is deprecated since v2; use AuroraVoid from @salesmind-ai/design-system. Will be removed in v3.',\n );\n }\n return (\n <div ref={ref} className={clsx('void', className)}>\n {/* Layer 1: Base Color */}\n <div className=\"void__base\" aria-hidden=\"true\" />\n\n {/* Layer 2: Light Orbs (Infusion Engine) */}\n <div className=\"void__orbs\" aria-hidden=\"true\">\n <div className=\"void__orb void__orb--warm\" />\n <div className=\"void__orb void__orb--purple\" />\n </div>\n\n {/* Layer 3: Engineered Grid */}\n {showGrid && <div className=\"void__grid\" aria-hidden=\"true\" />}\n\n {/* Layer 4: Film Grain */}\n {showGrain && <div className=\"void__grain\" aria-hidden=\"true\" />}\n\n {/* Content Layer */}\n {children && <div className=\"void__content\">{children}</div>}\n </div>\n );\n },\n);\n\nVoidBackground.displayName = 'VoidBackground';\n","import React from 'react';\nimport { Sun, Moon } from 'lucide-react';\nimport clsx from 'clsx';\nimport { useAppearance, Theme } from '../../theme/AppearanceProvider';\nimport './ThemeSelector.css';\n\nexport interface ThemeSelectorProps {\n className?: string;\n style?: React.CSSProperties;\n}\n\nexport const ThemeSelector: React.FC<ThemeSelectorProps> = ({ className, style }) => {\n const { theme, setTheme } = useAppearance();\n\n const handleThemeChange = (newTheme: Theme) => {\n setTheme(newTheme);\n };\n\n return (\n <div className={clsx('ds-theme-selector', className)} style={style} role=\"group\" aria-label=\"Theme Selector\">\n <button\n type=\"button\"\n className={clsx('ds-theme-selector__btn', { 'ds-theme-selector__btn--active': theme === 'light' })}\n onClick={() => handleThemeChange('light')}\n aria-pressed={theme === 'light'}\n >\n <Sun className=\"ds-theme-selector__icon\" />\n <span className=\"ds-theme-selector__label\">Light</span>\n </button>\n\n <button\n type=\"button\"\n className={clsx('ds-theme-selector__btn', { 'ds-theme-selector__btn--active': theme === 'light-contrast' })}\n onClick={() => handleThemeChange('light-contrast')}\n aria-pressed={theme === 'light-contrast'}\n >\n <Sun className=\"ds-theme-selector__icon\" />\n <span className=\"ds-theme-selector__label\">Light HC</span>\n </button>\n\n <button\n type=\"button\"\n className={clsx('ds-theme-selector__btn', { 'ds-theme-selector__btn--active': theme === 'dark' })}\n onClick={() => handleThemeChange('dark')}\n aria-pressed={theme === 'dark'}\n >\n <Moon className=\"ds-theme-selector__icon\" />\n <span className=\"ds-theme-selector__label\">Dark</span>\n </button>\n\n <button\n type=\"button\"\n className={clsx('ds-theme-selector__btn', { 'ds-theme-selector__btn--active': theme === 'dark-contrast' })}\n onClick={() => handleThemeChange('dark-contrast')}\n aria-pressed={theme === 'dark-contrast'}\n >\n <Moon className=\"ds-theme-selector__icon\" />\n <span className=\"ds-theme-selector__label\">Dark HC</span>\n </button>\n </div>\n );\n};\n\nThemeSelector.displayName = 'ThemeSelector';\n","import React from 'react';\nimport clsx from 'clsx';\nimport { useAppearance, Brand } from '../../theme/AppearanceProvider';\nimport './ColorPicker.css';\n\n/** Pre-configured brand presets shown as swatches. */\nconst BRAND_PRESETS: { value: Brand; label: string; color: string }[] = [\n { value: 'default', label: 'Warm Intelligence', color: '#f97316' },\n { value: 'salesmind', label: 'SalesMind', color: '#ff005a' },\n];\n\nexport interface ColorPickerProps {\n /** Additional CSS class name. */\n className?: string;\n /** Inline styles. */\n style?: React.CSSProperties;\n /**\n * Hide the custom color swatch and native color input.\n * When `true`, only the curated brand presets are shown.\n * Use this on production surfaces (e.g., marketing website footer)\n * where arbitrary custom colors would undermine brand consistency.\n * @default false\n */\n hideCustom?: boolean;\n}\n\n/**\n * Compact brand/accent color picker.\n * Renders preset brand swatches and an optional custom color input.\n * Consumes the `useAppearance()` context for state.\n */\nexport const ColorPicker = React.forwardRef<HTMLDivElement, ColorPickerProps>(\n ({ className, style, hideCustom = false }, ref) => {\n const { brand, setBrand, customColor, setCustomColor } = useAppearance();\n\n return (\n <div\n ref={ref}\n className={clsx('ds-color-picker', className)}\n style={style}\n role=\"group\"\n aria-label=\"Brand Color\"\n >\n {BRAND_PRESETS.map(({ value, label, color }) => (\n <button\n key={value}\n type=\"button\"\n className={clsx('ds-color-picker__swatch', {\n 'ds-color-picker__swatch--active': brand === value,\n })}\n onClick={() => setBrand(value)}\n aria-label={`Switch to ${label} color scheme`}\n aria-pressed={brand === value}\n title={label}\n >\n <span\n className=\"ds-color-picker__dot\"\n style={{ '--swatch-color': color } as React.CSSProperties}\n />\n </button>\n ))}\n\n {/* Custom color — clicking the dot opens the native color picker */}\n {!hideCustom && (\n <label\n className={clsx('ds-color-picker__swatch', 'ds-color-picker__swatch--custom', {\n 'ds-color-picker__swatch--active': brand === 'custom',\n })}\n title={`Custom: ${customColor}`}\n >\n <span\n className=\"ds-color-picker__dot\"\n style={{ '--swatch-color': customColor } as React.CSSProperties}\n />\n <input\n type=\"color\"\n value={customColor}\n onChange={(e) => setCustomColor(e.target.value)}\n className=\"ds-color-picker__native-input\"\n aria-label=\"Pick a custom accent color\"\n />\n </label>\n )}\n </div>\n );\n },\n);\n\nColorPicker.displayName = 'ColorPicker';\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk7EUR3AKV_cjs = require('./chunk-7EUR3AKV.cjs');
|
|
4
4
|
var chunkVC5LMUVQ_cjs = require('./chunk-VC5LMUVQ.cjs');
|
|
5
5
|
var chunkLJADZITX_cjs = require('./chunk-LJADZITX.cjs');
|
|
6
6
|
var react = require('react');
|
|
@@ -105,8 +105,8 @@ function CookieConsent({
|
|
|
105
105
|
] })
|
|
106
106
|
] }),
|
|
107
107
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "ds-cookie-consent__actions", children: [
|
|
108
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
109
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
108
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk7EUR3AKV_cjs.Button, { variant: "outline", size: "sm", onClick: handleDecline, children: labels?.declineLabel ?? "Decline" }),
|
|
109
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk7EUR3AKV_cjs.Button, { variant: "primary", size: "sm", onClick: handleAccept, children: labels?.acceptLabel ?? "Accept" })
|
|
110
110
|
] }),
|
|
111
111
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
112
112
|
"button",
|
|
@@ -159,4 +159,4 @@ exports.loadClarity = loadClarity;
|
|
|
159
159
|
exports.loadGoogleAnalytics = loadGoogleAnalytics;
|
|
160
160
|
exports.useCookieConsent = useCookieConsent;
|
|
161
161
|
//# sourceMappingURL=out.js.map
|
|
162
|
-
//# sourceMappingURL=chunk-
|
|
162
|
+
//# sourceMappingURL=chunk-2VVRZBUR.cjs.map
|