@cognitap/radiant 0.0.3 → 0.0.5
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/CHANGELOG.md +69 -0
- package/README.md +28 -15
- package/dist/library/Card.d.ts.map +1 -1
- package/dist/library/Card.js +8 -6
- package/dist/library/Card.js.map +1 -1
- package/dist/library/Checkbox.js +2 -2
- package/dist/library/Checkbox.js.map +1 -1
- package/dist/library/Collapsible.d.ts.map +1 -1
- package/dist/library/Collapsible.js +5 -4
- package/dist/library/Collapsible.js.map +1 -1
- package/dist/library/Dialog.d.ts.map +1 -1
- package/dist/library/Dialog.js +8 -6
- package/dist/library/Dialog.js.map +1 -1
- package/dist/library/Field.js +4 -4
- package/dist/library/Field.js.map +1 -1
- package/dist/library/Input.d.ts.map +1 -1
- package/dist/library/Input.js +4 -3
- package/dist/library/Input.js.map +1 -1
- package/dist/library/Link.d.ts.map +1 -1
- package/dist/library/Link.js +0 -1
- package/dist/library/Link.js.map +1 -1
- package/dist/library/RadioGroup.js +2 -2
- package/dist/library/RadioGroup.js.map +1 -1
- package/dist/library/ThemeScope.js +1 -1
- package/dist/library/ThemeScope.js.map +1 -1
- package/dist/library/actionStyles.js +2 -2
- package/dist/library/actionStyles.js.map +1 -1
- package/dist/library/cn.d.ts +2 -1
- package/dist/library/cn.d.ts.map +1 -1
- package/dist/library/cn.js +22 -1
- package/dist/library/cn.js.map +1 -1
- package/dist/library/color/colorFamilies.d.ts +3 -0
- package/dist/library/color/colorFamilies.d.ts.map +1 -0
- package/dist/library/color/colorFamilies.js +20 -0
- package/dist/library/color/colorFamilies.js.map +1 -0
- package/dist/library/color/generateColorWall.d.ts +54 -0
- package/dist/library/color/generateColorWall.d.ts.map +1 -0
- package/dist/library/color/generateColorWall.js +231 -0
- package/dist/library/color/generateColorWall.js.map +1 -0
- package/dist/library/color/index.d.ts +5 -0
- package/dist/library/color/index.d.ts.map +1 -0
- package/dist/library/color/index.js +3 -0
- package/dist/library/color/index.js.map +1 -0
- package/dist/library/color/oklch.d.ts +17 -0
- package/dist/library/color/oklch.d.ts.map +1 -0
- package/dist/library/color/oklch.js +79 -0
- package/dist/library/color/oklch.js.map +1 -0
- package/dist/library/color/recommendColorPalette.d.ts +65 -0
- package/dist/library/color/recommendColorPalette.d.ts.map +1 -0
- package/dist/library/color/recommendColorPalette.js +263 -0
- package/dist/library/color/recommendColorPalette.js.map +1 -0
- package/dist/library/index.d.ts +10 -2
- package/dist/library/index.d.ts.map +1 -1
- package/dist/library/index.js +5 -1
- package/dist/library/index.js.map +1 -1
- package/dist/library/styles.css +1 -1
- package/dist/library/themes/defineTheme.d.ts.map +1 -1
- package/dist/library/themes/defineTheme.js +5 -1
- package/dist/library/themes/defineTheme.js.map +1 -1
- package/dist/library/themes/index.d.ts +4 -0
- package/dist/library/themes/index.d.ts.map +1 -1
- package/dist/library/themes/index.js +2 -0
- package/dist/library/themes/index.js.map +1 -1
- package/dist/library/themes/themeDocument.d.ts +16 -0
- package/dist/library/themes/themeDocument.d.ts.map +1 -0
- package/dist/library/themes/themeDocument.js +332 -0
- package/dist/library/themes/themeDocument.js.map +1 -0
- package/dist/library/themes/themeDocumentTypes.d.ts +80 -0
- package/dist/library/themes/themeDocumentTypes.d.ts.map +1 -0
- package/dist/library/themes/themeDocumentTypes.js +2 -0
- package/dist/library/themes/themeDocumentTypes.js.map +1 -0
- package/dist/library/themes/tokens.d.ts +7 -0
- package/dist/library/themes/tokens.d.ts.map +1 -1
- package/dist/library/themes/tokens.js +99 -0
- package/dist/library/themes/tokens.js.map +1 -1
- package/dist/library/themes/updateThemeAppearance.d.ts +29 -0
- package/dist/library/themes/updateThemeAppearance.d.ts.map +1 -0
- package/dist/library/themes/updateThemeAppearance.js +138 -0
- package/dist/library/themes/updateThemeAppearance.js.map +1 -0
- package/dist/library/typography/index.d.ts +72 -0
- package/dist/library/typography/index.d.ts.map +1 -0
- package/dist/library/typography/index.js +160 -0
- package/dist/library/typography/index.js.map +1 -0
- package/dist/library/typography/types.d.ts +78 -0
- package/dist/library/typography/types.d.ts.map +1 -0
- package/dist/library/typography/types.js +2 -0
- package/dist/library/typography/types.js.map +1 -0
- package/docs/system.md +20 -0
- package/docs/theming.md +616 -0
- package/package.json +17 -5
- package/src/Card.tsx +8 -6
- package/src/Checkbox.tsx +2 -2
- package/src/Collapsible.tsx +5 -4
- package/src/Dialog.tsx +8 -6
- package/src/Field.tsx +4 -4
- package/src/Input.tsx +4 -3
- package/src/Link.tsx +0 -1
- package/src/RadioGroup.tsx +2 -2
- package/src/ThemeScope.tsx +1 -1
- package/src/actionStyles.ts +2 -2
- package/src/cn.ts +25 -1
- package/src/color/colorFamilies.ts +19 -0
- package/src/color/generateColorWall.ts +358 -0
- package/src/color/index.ts +11 -0
- package/src/color/oklch.ts +95 -0
- package/src/color/recommendColorPalette.ts +375 -0
- package/src/index.ts +40 -0
- package/src/styles.css +1 -0
- package/src/themes/baseline.css +131 -0
- package/src/themes/defineTheme.ts +5 -1
- package/src/themes/index.ts +25 -0
- package/src/themes/themeDocument.ts +370 -0
- package/src/themes/themeDocumentTypes.ts +88 -0
- package/src/themes/tokens.ts +137 -0
- package/src/themes/updateThemeAppearance.ts +172 -0
- package/src/typography/index.ts +199 -0
- package/src/typography/types.ts +92 -0
- package/src/typography.css +336 -0
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { freezeTree } from '../themes/tokens.js';
|
|
2
|
+
import { parseThemeDocument } from '../themes/themeDocument.js';
|
|
3
|
+
import { colorFamilies } from './colorFamilies.js';
|
|
4
|
+
import { hueDifference, measureHex } from './oklch.js';
|
|
5
|
+
const workingRoles = ['primary', 'support', 'neutral', 'success', 'warning', 'danger'];
|
|
6
|
+
const colorRoles = [
|
|
7
|
+
'surface',
|
|
8
|
+
'foreground',
|
|
9
|
+
'mutedForeground',
|
|
10
|
+
'border',
|
|
11
|
+
'placeholder',
|
|
12
|
+
'disabledBackground',
|
|
13
|
+
'disabledBorder',
|
|
14
|
+
'invalid',
|
|
15
|
+
'focus',
|
|
16
|
+
'accent',
|
|
17
|
+
'accentForeground',
|
|
18
|
+
'neutral',
|
|
19
|
+
'neutralForeground',
|
|
20
|
+
'warning',
|
|
21
|
+
'warningForeground',
|
|
22
|
+
'danger',
|
|
23
|
+
'dangerForeground'
|
|
24
|
+
];
|
|
25
|
+
const modes = ['light', 'dark'];
|
|
26
|
+
const hex = /^#[0-9a-f]{6}$/i;
|
|
27
|
+
function object(value, path) {
|
|
28
|
+
if (!value || typeof value !== 'object' || Array.isArray(value))
|
|
29
|
+
throw new TypeError(`${path} must be an object.`);
|
|
30
|
+
}
|
|
31
|
+
function keys(value, allowed, path) {
|
|
32
|
+
for (const key of Object.keys(value))
|
|
33
|
+
if (!allowed.includes(key))
|
|
34
|
+
throw new TypeError(`Unknown ${path}.${key}.`);
|
|
35
|
+
}
|
|
36
|
+
function opaque(value, path) {
|
|
37
|
+
if (typeof value !== 'string' || !hex.test(value))
|
|
38
|
+
throw new TypeError(`${path} must be an opaque six-digit sRGB hex color.`);
|
|
39
|
+
}
|
|
40
|
+
function luminance(value) {
|
|
41
|
+
const [r, g, b] = [1, 3, 5]
|
|
42
|
+
.map(i => parseInt(value.slice(i, i + 2), 16) / 255)
|
|
43
|
+
.map(n => (n <= 0.04045 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4));
|
|
44
|
+
return 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
45
|
+
}
|
|
46
|
+
function contrast(a, b) {
|
|
47
|
+
const x = luminance(a), y = luminance(b);
|
|
48
|
+
return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05);
|
|
49
|
+
}
|
|
50
|
+
const swatches = (palette) => palette.swatches.map(s => s.value);
|
|
51
|
+
function choose(values, backgrounds, minimum, target) {
|
|
52
|
+
const score = (value) => Math.min(...backgrounds.map(bg => contrast(value, bg)));
|
|
53
|
+
const valid = values.filter(value => score(value) >= minimum);
|
|
54
|
+
return valid.length
|
|
55
|
+
? valid.reduce((a, b) => Math.abs(measureHex(a).L - target) <= Math.abs(measureHex(b).L - target) ? a : b)
|
|
56
|
+
: values.reduce((a, b) => (score(a) >= score(b) ? a : b));
|
|
57
|
+
}
|
|
58
|
+
function pair(values, inks, backgrounds, target, boundary, fixedBackground, fixedForeground, source) {
|
|
59
|
+
const candidates = fixedBackground === undefined ? values : [fixedBackground];
|
|
60
|
+
const foregrounds = fixedForeground === undefined ? inks : [fixedForeground];
|
|
61
|
+
const ink = (background) => foregrounds.reduce((a, b) => (contrast(a, background) >= contrast(b, background) ? a : b));
|
|
62
|
+
const acceptable = candidates.filter(bg => contrast(ink(bg), bg) >= 4.5 &&
|
|
63
|
+
(!boundary || backgrounds.every(surface => contrast(bg, surface) >= 3)));
|
|
64
|
+
const pool = acceptable.length ? acceptable : candidates;
|
|
65
|
+
// Perceptual distance includes both lightness and the chromatic axes. A caller's
|
|
66
|
+
// explicit working-family choice still bounds the candidate pool.
|
|
67
|
+
const distance = (value) => {
|
|
68
|
+
const color = measureHex(value);
|
|
69
|
+
if (!source)
|
|
70
|
+
return Math.abs(color.L - target);
|
|
71
|
+
const radians = Math.PI / 180;
|
|
72
|
+
return Math.hypot(color.L - source.L, color.C * Math.cos(color.h * radians) - source.C * Math.cos(source.h * radians), color.C * Math.sin(color.h * radians) - source.C * Math.sin(source.h * radians));
|
|
73
|
+
};
|
|
74
|
+
const background = pool.reduce((a, b) => (distance(a) <= distance(b) ? a : b));
|
|
75
|
+
return { background, foreground: ink(background) };
|
|
76
|
+
}
|
|
77
|
+
/** Recommend a six-family working set and audit actual opaque semantic pairs. */
|
|
78
|
+
export function recommendColorPalette(wall, options = {}) {
|
|
79
|
+
object(wall, 'colorWall');
|
|
80
|
+
object(wall.color, 'colorWall.color');
|
|
81
|
+
object(wall.input, 'colorWall.input');
|
|
82
|
+
if (wall.input.version !== 1)
|
|
83
|
+
throw new TypeError('colorWall.input.version must be 1.');
|
|
84
|
+
if (wall.color.brand?.gamut !== 'srgb')
|
|
85
|
+
throw new TypeError('colorWall.color.brand.gamut must be srgb for semantic mapping version 1.');
|
|
86
|
+
const parsed = parseThemeDocument({
|
|
87
|
+
kind: 'radiant-theme-sections',
|
|
88
|
+
version: 1,
|
|
89
|
+
sections: { color: wall.color }
|
|
90
|
+
});
|
|
91
|
+
const color = parsed.sections.color;
|
|
92
|
+
if (!color.brand || !color.palettes?.length)
|
|
93
|
+
throw new TypeError('colorWall.color requires an original brand and populated palettes.');
|
|
94
|
+
opaque(color.brand.value, 'colorWall.color.brand.value');
|
|
95
|
+
for (const palette of color.palettes) {
|
|
96
|
+
const stops = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950];
|
|
97
|
+
if (palette.swatches.length !== stops.length ||
|
|
98
|
+
palette.swatches.some((s, i) => s.stop !== stops[i]))
|
|
99
|
+
throw new TypeError(`colorWall.${palette.id} must contain the eleven ordered generator stops (50–950).`);
|
|
100
|
+
for (const swatch of palette.swatches)
|
|
101
|
+
opaque(swatch.value, `colorWall.${palette.id}.${swatch.stop}`);
|
|
102
|
+
}
|
|
103
|
+
object(options, 'colorPalette');
|
|
104
|
+
keys(options, ['version', 'working', 'modes'], 'colorPalette');
|
|
105
|
+
if (options.version !== undefined && options.version !== 1)
|
|
106
|
+
throw new TypeError('Unsupported colorPalette.version; expected 1.');
|
|
107
|
+
if (options.working !== undefined) {
|
|
108
|
+
object(options.working, 'colorPalette.working');
|
|
109
|
+
keys(options.working, workingRoles, 'colorPalette.working');
|
|
110
|
+
for (const [role, id] of Object.entries(options.working))
|
|
111
|
+
if (id !== undefined && typeof id !== 'string')
|
|
112
|
+
throw new TypeError(`colorPalette.working.${role} must be a palette ID.`);
|
|
113
|
+
}
|
|
114
|
+
if (options.modes !== undefined) {
|
|
115
|
+
object(options.modes, 'colorPalette.modes');
|
|
116
|
+
keys(options.modes, modes, 'colorPalette.modes');
|
|
117
|
+
}
|
|
118
|
+
for (const mode of modes)
|
|
119
|
+
if (options.modes?.[mode] !== undefined) {
|
|
120
|
+
object(options.modes[mode], `colorPalette.modes.${mode}`);
|
|
121
|
+
keys(options.modes[mode], [...colorRoles, 'canvas'], `colorPalette.modes.${mode}`);
|
|
122
|
+
for (const [key, value] of Object.entries(options.modes[mode]))
|
|
123
|
+
if (value !== undefined)
|
|
124
|
+
opaque(value, `colorPalette.modes.${mode}.${key}`);
|
|
125
|
+
}
|
|
126
|
+
function palette(id) {
|
|
127
|
+
const found = color.palettes.find(p => p.id === id);
|
|
128
|
+
if (!found)
|
|
129
|
+
throw new TypeError(`Unknown working palette ID: ${String(id)}. Choose one of: ${color.palettes.map(p => p.id).join(', ')}.`);
|
|
130
|
+
return found;
|
|
131
|
+
}
|
|
132
|
+
const primary = palette(options.working?.primary ?? 'brand');
|
|
133
|
+
if (!Number.isFinite(wall.input.neutralHue) || !Number.isFinite(wall.input.hueAlignment))
|
|
134
|
+
throw new TypeError('colorWall.input must contain finite neutralHue and hueAlignment controls.');
|
|
135
|
+
const source = measureHex(color.brand.value);
|
|
136
|
+
const sourceHue = source.C < 0.02 ? wall.input.neutralHue : source.h;
|
|
137
|
+
const nearest = colorFamilies.reduce((a, b) => Math.abs(hueDifference(sourceHue, a[1])) < Math.abs(hueDifference(sourceHue, b[1])) ? a : b);
|
|
138
|
+
const rotation = hueDifference(sourceHue, nearest[1]) * wall.input.hueAlignment;
|
|
139
|
+
function hueOf(p) {
|
|
140
|
+
const sample = measureHex(p.swatches[Math.floor(p.swatches.length / 2)].value);
|
|
141
|
+
const nominal = colorFamilies.find(([name]) => name.toLowerCase() === p.id);
|
|
142
|
+
return sample.C >= 0.02 ? sample.h : nominal ? nominal[1] + rotation : sourceHue;
|
|
143
|
+
}
|
|
144
|
+
const hue = hueOf(primary);
|
|
145
|
+
const supporting = color.palettes.filter(p => p.id !== 'brand' && p.id !== 'neutral' && p.id !== primary.id);
|
|
146
|
+
if (!supporting.length)
|
|
147
|
+
throw new TypeError('colorWall requires supporting hue families.');
|
|
148
|
+
const support = supporting.reduce((a, b) => {
|
|
149
|
+
return Math.abs(hueDifference(hueOf(a), hue + 150)) <=
|
|
150
|
+
Math.abs(hueDifference(hueOf(b), hue + 150))
|
|
151
|
+
? a
|
|
152
|
+
: b;
|
|
153
|
+
});
|
|
154
|
+
const selected = {
|
|
155
|
+
primary: primary.id,
|
|
156
|
+
support: support.id,
|
|
157
|
+
neutral: 'neutral',
|
|
158
|
+
success: 'emerald',
|
|
159
|
+
warning: 'amber',
|
|
160
|
+
danger: 'red',
|
|
161
|
+
...Object.fromEntries(Object.entries(options.working ?? {}).filter(([, value]) => value !== undefined))
|
|
162
|
+
};
|
|
163
|
+
for (const id of Object.values(selected))
|
|
164
|
+
palette(id);
|
|
165
|
+
const working = {};
|
|
166
|
+
for (const role of workingRoles)
|
|
167
|
+
working[role] = {
|
|
168
|
+
paletteId: selected[role],
|
|
169
|
+
light: { background: '', foreground: '' },
|
|
170
|
+
dark: { background: '', foreground: '' }
|
|
171
|
+
};
|
|
172
|
+
const mapped = {};
|
|
173
|
+
const canvases = {};
|
|
174
|
+
const checks = [];
|
|
175
|
+
for (const mode of modes) {
|
|
176
|
+
const light = mode === 'light', override = options.modes?.[mode] ?? {};
|
|
177
|
+
const neutrals = swatches(palette(selected.neutral));
|
|
178
|
+
const canvas = override.canvas ?? neutrals[light ? 0 : neutrals.length - 1];
|
|
179
|
+
const surface = override.surface ?? neutrals[light ? 1 : neutrals.length - 2];
|
|
180
|
+
const backgrounds = [canvas, surface];
|
|
181
|
+
const inks = [...neutrals, '#000000', '#FFFFFF'];
|
|
182
|
+
const foreground = override.foreground ?? choose(inks, backgrounds, 7, light ? 0.21 : 0.985);
|
|
183
|
+
const muted = override.mutedForeground ?? choose(inks, backgrounds, 4.5, light ? 0.48 : 0.75);
|
|
184
|
+
const fills = {
|
|
185
|
+
primary: [override.accent, override.accentForeground],
|
|
186
|
+
neutral: [override.neutral, override.neutralForeground],
|
|
187
|
+
warning: [override.warning, override.warningForeground],
|
|
188
|
+
danger: [override.danger, override.dangerForeground],
|
|
189
|
+
support: [undefined, undefined],
|
|
190
|
+
success: [undefined, undefined]
|
|
191
|
+
};
|
|
192
|
+
for (const role of workingRoles) {
|
|
193
|
+
working[role][mode] = pair(swatches(palette(selected[role])), inks, backgrounds, role === 'neutral' ? (light ? 0.93 : 0.43) : light ? 0.62 : 0.75, role === 'primary', ...fills[role], role === 'primary' ? source : undefined);
|
|
194
|
+
}
|
|
195
|
+
const colors = {
|
|
196
|
+
surface,
|
|
197
|
+
foreground,
|
|
198
|
+
mutedForeground: muted,
|
|
199
|
+
placeholder: override.placeholder ?? muted,
|
|
200
|
+
border: override.border ?? choose(neutrals, backgrounds, 3, light ? 0.65 : 0.6),
|
|
201
|
+
focus: override.focus ?? choose(swatches(primary), backgrounds, 3, light ? 0.55 : 0.75),
|
|
202
|
+
invalid: override.invalid ??
|
|
203
|
+
choose(swatches(palette(selected.danger)), backgrounds, 4.5, light ? 0.5 : 0.75),
|
|
204
|
+
disabledBackground: override.disabledBackground ?? neutrals[light ? 2 : neutrals.length - 3],
|
|
205
|
+
disabledBorder: override.disabledBorder ?? neutrals[light ? 3 : neutrals.length - 4],
|
|
206
|
+
accent: working.primary[mode].background,
|
|
207
|
+
accentForeground: working.primary[mode].foreground,
|
|
208
|
+
neutral: working.neutral[mode].background,
|
|
209
|
+
neutralForeground: working.neutral[mode].foreground,
|
|
210
|
+
warning: working.warning[mode].background,
|
|
211
|
+
warningForeground: working.warning[mode].foreground,
|
|
212
|
+
danger: working.danger[mode].background,
|
|
213
|
+
dangerForeground: working.danger[mode].foreground
|
|
214
|
+
};
|
|
215
|
+
mapped[mode] = colors;
|
|
216
|
+
canvases[mode] = { canvas };
|
|
217
|
+
const values = {
|
|
218
|
+
...colors,
|
|
219
|
+
canvas,
|
|
220
|
+
support: working.support[mode].background,
|
|
221
|
+
supportForeground: working.support[mode].foreground,
|
|
222
|
+
success: working.success[mode].background,
|
|
223
|
+
successForeground: working.success[mode].foreground
|
|
224
|
+
};
|
|
225
|
+
function check(fg, bg, minimum) {
|
|
226
|
+
const ratio = contrast(values[fg], values[bg]), pass = minimum === null ? null : ratio >= minimum;
|
|
227
|
+
checks.push({
|
|
228
|
+
mode,
|
|
229
|
+
foregroundRole: fg,
|
|
230
|
+
backgroundRole: bg,
|
|
231
|
+
foreground: values[fg],
|
|
232
|
+
background: values[bg],
|
|
233
|
+
ratio,
|
|
234
|
+
minimum,
|
|
235
|
+
pass,
|
|
236
|
+
message: minimum === null
|
|
237
|
+
? 'Inactive controls are exempt from minimum contrast; this token-pair ratio excludes component opacity/effects.'
|
|
238
|
+
: pass
|
|
239
|
+
? ''
|
|
240
|
+
: `${fg} is ${ratio.toFixed(3)}:1 against ${bg}; requires ${minimum}:1 without rounding. Select another ${fg} shade or adjust ${bg}, then recheck the complete mode. The original brand and wall remain unchanged.`
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
for (const background of ['canvas', 'surface']) {
|
|
244
|
+
for (const foreground of ['foreground', 'mutedForeground', 'placeholder', 'invalid'])
|
|
245
|
+
check(foreground, background, 4.5);
|
|
246
|
+
for (const foreground of ['border', 'focus', 'accent'])
|
|
247
|
+
check(foreground, background, 3);
|
|
248
|
+
}
|
|
249
|
+
for (const tone of ['accent', 'neutral', 'warning', 'danger', 'support', 'success'])
|
|
250
|
+
check(tone + 'Foreground', tone, 4.5);
|
|
251
|
+
check('mutedForeground', 'disabledBackground', null);
|
|
252
|
+
check('disabledBorder', 'surface', null);
|
|
253
|
+
}
|
|
254
|
+
return freezeTree({
|
|
255
|
+
version: 1,
|
|
256
|
+
working,
|
|
257
|
+
color: { ...color, modes: mapped },
|
|
258
|
+
surface: { modes: canvases },
|
|
259
|
+
checks,
|
|
260
|
+
pass: checks.every(c => c.pass !== false)
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
//# sourceMappingURL=recommendColorPalette.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recommendColorPalette.js","sourceRoot":"","sources":["../../../src/color/recommendCol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SAAS,EAAE,SAAS,CAAC;YACjF,KAAK,CAAC,IAAI,GAAG,YAAY,EAAE,IAAI,EAAE,GAAG,CAAC,CAAA;QACvC,KAAK,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,IAAI,CAAC,CAAA;QACpD,KAAK,CAAC,gBAAgB,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IAC1C,CAAC;IACD,OAAO,UAAU,CAAC;QAChB,OAAO,EAAE,CAAU;QACnB,OAAO;QACP,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE;QAClC,OAAO,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE;QAC5B,MAAM;QACN,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC;KAC1C,CAAC,CAAA;AACJ,CAAC","sourcesContent":["import type { SharedTokens } from '../themes/tokens.js'\nimport { freezeTree } from '../themes/tokens.js'\nimport { parseThemeDocument } from '../themes/themeDocument.js'\nimport type { ThemeColorSection, ThemePalette } from '../themes/themeDocumentTypes.js'\nimport type { ColorWall } from './generateColorWall.js'\nimport { colorFamilies } from './colorFamilies.js'\nimport { hueDifference, measureHex } from './oklch.js'\n\nexport type WorkingPaletteRole =\n | 'primary'\n | 'support'\n | 'neutral'\n | 'success'\n | 'warning'\n | 'danger'\ntype Mode = 'light' | 'dark'\ntype Colors = Readonly<SharedTokens['color']>\nexport type PaletteModeColors = Colors & { readonly canvas: string }\nexport interface ColorPaletteOptions {\n readonly version?: 1\n /** Existing wall palette IDs; originals and swatches are never rewritten. */\n readonly working?: Readonly<Partial<Record<WorkingPaletteRole, string>>>\n /** Explicit opaque sRGB overrides are retained, even when contrast fails. */\n readonly modes?: {\n readonly light?: Partial<PaletteModeColors>\n readonly dark?: Partial<PaletteModeColors>\n }\n}\nexport interface PaletteColorPair {\n readonly background: string\n readonly foreground: string\n}\nexport interface PaletteContrastCheck {\n readonly mode: Mode\n readonly foregroundRole: string\n readonly backgroundRole: string\n readonly foreground: string\n readonly background: string\n readonly ratio: number\n /** null marks an inactive-control exception, not a passing contrast requirement. */\n readonly minimum: 3 | 4.5 | null\n readonly pass: boolean | null\n readonly message: string\n}\nexport interface ColorPalette {\n readonly version: 1\n readonly working: Readonly<\n Record<\n WorkingPaletteRole,\n {\n readonly paletteId: string\n readonly light: PaletteColorPair\n readonly dark: PaletteColorPair\n }\n >\n >\n readonly color: ThemeColorSection & {\n readonly modes: { readonly light: Colors; readonly dark: Colors }\n }\n readonly surface: {\n readonly modes: {\n readonly light: { readonly canvas: string }\n readonly dark: { readonly canvas: string }\n }\n }\n readonly checks: readonly PaletteContrastCheck[]\n readonly pass: boolean\n}\nconst workingRoles = ['primary', 'support', 'neutral', 'success', 'warning', 'danger'] as const\nconst colorRoles = [\n 'surface',\n 'foreground',\n 'mutedForeground',\n 'border',\n 'placeholder',\n 'disabledBackground',\n 'disabledBorder',\n 'invalid',\n 'focus',\n 'accent',\n 'accentForeground',\n 'neutral',\n 'neutralForeground',\n 'warning',\n 'warningForeground',\n 'danger',\n 'dangerForeground'\n] as const\nconst modes = ['light', 'dark'] as const\nconst hex = /^#[0-9a-f]{6}$/i\nfunction object(value: unknown, path: string): asserts value is object {\n if (!value || typeof value !== 'object' || Array.isArray(value))\n throw new TypeError(`${path} must be an object.`)\n}\nfunction keys(value: object, allowed: readonly string[], path: string) {\n for (const key of Object.keys(value))\n if (!allowed.includes(key)) throw new TypeError(`Unknown ${path}.${key}.`)\n}\nfunction opaque(value: unknown, path: string): asserts value is string {\n if (typeof value !== 'string' || !hex.test(value))\n throw new TypeError(`${path} must be an opaque six-digit sRGB hex color.`)\n}\nfunction luminance(value: string) {\n const [r, g, b] = [1, 3, 5]\n .map(i => parseInt(value.slice(i, i + 2), 16) / 255)\n .map(n => (n <= 0.04045 ? n / 12.92 : ((n + 0.055) / 1.055) ** 2.4))\n return 0.2126 * r + 0.7152 * g + 0.0722 * b\n}\nfunction contrast(a: string, b: string) {\n const x = luminance(a),\n y = luminance(b)\n return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05)\n}\nconst swatches = (palette: ThemePalette) => palette.swatches.map(s => s.value)\nfunction choose(\n values: readonly string[],\n backgrounds: readonly string[],\n minimum: number,\n target: number\n): string {\n const score = (value: string) => Math.min(...backgrounds.map(bg => contrast(value, bg)))\n const valid = values.filter(value => score(value) >= minimum)\n return valid.length\n ? valid.reduce((a, b) =>\n Math.abs(measureHex(a).L - target) <= Math.abs(measureHex(b).L - target) ? a : b\n )\n : values.reduce((a, b) => (score(a) >= score(b) ? a : b))\n}\nfunction pair(\n values: readonly string[],\n inks: readonly string[],\n backgrounds: readonly string[],\n target: number,\n boundary: boolean,\n fixedBackground?: string,\n fixedForeground?: string,\n source?: ReturnType<typeof measureHex>\n): PaletteColorPair {\n const candidates = fixedBackground === undefined ? values : [fixedBackground]\n const foregrounds = fixedForeground === undefined ? inks : [fixedForeground]\n const ink = (background: string) =>\n foregrounds.reduce((a, b) => (contrast(a, background) >= contrast(b, background) ? a : b))\n const acceptable = candidates.filter(\n bg =>\n contrast(ink(bg), bg) >= 4.5 &&\n (!boundary || backgrounds.every(surface => contrast(bg, surface) >= 3))\n )\n const pool = acceptable.length ? acceptable : candidates\n // Perceptual distance includes both lightness and the chromatic axes. A caller's\n // explicit working-family choice still bounds the candidate pool.\n const distance = (value: string) => {\n const color = measureHex(value)\n if (!source) return Math.abs(color.L - target)\n const radians = Math.PI / 180\n return Math.hypot(\n color.L - source.L,\n color.C * Math.cos(color.h * radians) - source.C * Math.cos(source.h * radians),\n color.C * Math.sin(color.h * radians) - source.C * Math.sin(source.h * radians)\n )\n }\n const background = pool.reduce((a, b) => (distance(a) <= distance(b) ? a : b))\n return { background, foreground: ink(background) }\n}\n\n/** Recommend a six-family working set and audit actual opaque semantic pairs. */\nexport function recommendColorPalette(\n wall: ColorWall,\n options: ColorPaletteOptions = {}\n): ColorPalette {\n object(wall, 'colorWall')\n object(wall.color, 'colorWall.color')\n object(wall.input, 'colorWall.input')\n if (wall.input.version !== 1) throw new TypeError('colorWall.input.version must be 1.')\n if (wall.color.brand?.gamut !== 'srgb')\n throw new TypeError('colorWall.color.brand.gamut must be srgb for semantic mapping version 1.')\n const parsed = parseThemeDocument({\n kind: 'radiant-theme-sections',\n version: 1,\n sections: { color: wall.color }\n })\n const color = parsed.sections.color!\n if (!color.brand || !color.palettes?.length)\n throw new TypeError('colorWall.color requires an original brand and populated palettes.')\n opaque(color.brand.value, 'colorWall.color.brand.value')\n for (const palette of color.palettes) {\n const stops = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950]\n if (\n palette.swatches.length !== stops.length ||\n palette.swatches.some((s, i) => s.stop !== stops[i])\n )\n throw new TypeError(\n `colorWall.${palette.id} must contain the eleven ordered generator stops (50–950).`\n )\n for (const swatch of palette.swatches)\n opaque(swatch.value, `colorWall.${palette.id}.${swatch.stop}`)\n }\n object(options, 'colorPalette')\n keys(options, ['version', 'working', 'modes'], 'colorPalette')\n if (options.version !== undefined && options.version !== 1)\n throw new TypeError('Unsupported colorPalette.version; expected 1.')\n if (options.working !== undefined) {\n object(options.working, 'colorPalette.working')\n keys(options.working, workingRoles, 'colorPalette.working')\n for (const [role, id] of Object.entries(options.working))\n if (id !== undefined && typeof id !== 'string')\n throw new TypeError(`colorPalette.working.${role} must be a palette ID.`)\n }\n if (options.modes !== undefined) {\n object(options.modes, 'colorPalette.modes')\n keys(options.modes, modes, 'colorPalette.modes')\n }\n for (const mode of modes)\n if (options.modes?.[mode] !== undefined) {\n object(options.modes[mode], `colorPalette.modes.${mode}`)\n keys(options.modes[mode], [...colorRoles, 'canvas'], `colorPalette.modes.${mode}`)\n for (const [key, value] of Object.entries(options.modes[mode]))\n if (value !== undefined) opaque(value, `colorPalette.modes.${mode}.${key}`)\n }\n function palette(id: string): ThemePalette {\n const found = color.palettes!.find(p => p.id === id)\n if (!found)\n throw new TypeError(\n `Unknown working palette ID: ${String(id)}. Choose one of: ${color.palettes!.map(p => p.id).join(', ')}.`\n )\n return found\n }\n const primary = palette(options.working?.primary ?? 'brand')\n if (!Number.isFinite(wall.input.neutralHue) || !Number.isFinite(wall.input.hueAlignment))\n throw new TypeError('colorWall.input must contain finite neutralHue and hueAlignment controls.')\n const source = measureHex(color.brand.value)\n const sourceHue = source.C < 0.02 ? wall.input.neutralHue : source.h\n const nearest = colorFamilies.reduce((a, b) =>\n Math.abs(hueDifference(sourceHue, a[1])) < Math.abs(hueDifference(sourceHue, b[1])) ? a : b\n )\n const rotation = hueDifference(sourceHue, nearest[1]) * wall.input.hueAlignment\n function hueOf(p: ThemePalette) {\n const sample = measureHex(p.swatches[Math.floor(p.swatches.length / 2)].value)\n const nominal = colorFamilies.find(([name]) => name.toLowerCase() === p.id)\n return sample.C >= 0.02 ? sample.h : nominal ? nominal[1] + rotation : sourceHue\n }\n const hue = hueOf(primary)\n const supporting = color.palettes.filter(\n p => p.id !== 'brand' && p.id !== 'neutral' && p.id !== primary.id\n )\n if (!supporting.length) throw new TypeError('colorWall requires supporting hue families.')\n const support = supporting.reduce((a, b) => {\n return Math.abs(hueDifference(hueOf(a), hue + 150)) <=\n Math.abs(hueDifference(hueOf(b), hue + 150))\n ? a\n : b\n })\n const selected = {\n primary: primary.id,\n support: support.id,\n neutral: 'neutral',\n success: 'emerald',\n warning: 'amber',\n danger: 'red',\n ...Object.fromEntries(\n Object.entries(options.working ?? {}).filter(([, value]) => value !== undefined)\n )\n }\n for (const id of Object.values(selected)) palette(id)\n const working = {} as Record<\n WorkingPaletteRole,\n { paletteId: string; light: PaletteColorPair; dark: PaletteColorPair }\n >\n for (const role of workingRoles)\n working[role] = {\n paletteId: selected[role],\n light: { background: '', foreground: '' },\n dark: { background: '', foreground: '' }\n }\n const mapped = {} as Record<Mode, SharedTokens['color']>\n const canvases = {} as Record<Mode, { canvas: string }>\n const checks: PaletteContrastCheck[] = []\n for (const mode of modes) {\n const light = mode === 'light',\n override = options.modes?.[mode] ?? {}\n const neutrals = swatches(palette(selected.neutral))\n const canvas = override.canvas ?? neutrals[light ? 0 : neutrals.length - 1]\n const surface = override.surface ?? neutrals[light ? 1 : neutrals.length - 2]\n const backgrounds = [canvas, surface]\n const inks = [...neutrals, '#000000', '#FFFFFF']\n const foreground = override.foreground ?? choose(inks, backgrounds, 7, light ? 0.21 : 0.985)\n const muted = override.mutedForeground ?? choose(inks, backgrounds, 4.5, light ? 0.48 : 0.75)\n const fills: Record<WorkingPaletteRole, [string | undefined, string | undefined]> = {\n primary: [override.accent, override.accentForeground],\n neutral: [override.neutral, override.neutralForeground],\n warning: [override.warning, override.warningForeground],\n danger: [override.danger, override.dangerForeground],\n support: [undefined, undefined],\n success: [undefined, undefined]\n }\n for (const role of workingRoles) {\n working[role][mode] = pair(\n swatches(palette(selected[role])),\n inks,\n backgrounds,\n role === 'neutral' ? (light ? 0.93 : 0.43) : light ? 0.62 : 0.75,\n role === 'primary',\n ...fills[role],\n role === 'primary' ? source : undefined\n )\n }\n const colors: SharedTokens['color'] = {\n surface,\n foreground,\n mutedForeground: muted,\n placeholder: override.placeholder ?? muted,\n border: override.border ?? choose(neutrals, backgrounds, 3, light ? 0.65 : 0.6),\n focus: override.focus ?? choose(swatches(primary), backgrounds, 3, light ? 0.55 : 0.75),\n invalid:\n override.invalid ??\n choose(swatches(palette(selected.danger)), backgrounds, 4.5, light ? 0.5 : 0.75),\n disabledBackground: override.disabledBackground ?? neutrals[light ? 2 : neutrals.length - 3],\n disabledBorder: override.disabledBorder ?? neutrals[light ? 3 : neutrals.length - 4],\n accent: working.primary[mode].background,\n accentForeground: working.primary[mode].foreground,\n neutral: working.neutral[mode].background,\n neutralForeground: working.neutral[mode].foreground,\n warning: working.warning[mode].background,\n warningForeground: working.warning[mode].foreground,\n danger: working.danger[mode].background,\n dangerForeground: working.danger[mode].foreground\n }\n mapped[mode] = colors\n canvases[mode] = { canvas }\n const values: Record<string, string> = {\n ...colors,\n canvas,\n support: working.support[mode].background,\n supportForeground: working.support[mode].foreground,\n success: working.success[mode].background,\n successForeground: working.success[mode].foreground\n }\n function check(fg: string, bg: string, minimum: 3 | 4.5 | null) {\n const ratio = contrast(values[fg], values[bg]),\n pass = minimum === null ? null : ratio >= minimum\n checks.push({\n mode,\n foregroundRole: fg,\n backgroundRole: bg,\n foreground: values[fg],\n background: values[bg],\n ratio,\n minimum,\n pass,\n message:\n minimum === null\n ? 'Inactive controls are exempt from minimum contrast; this token-pair ratio excludes component opacity/effects.'\n : pass\n ? ''\n : `${fg} is ${ratio.toFixed(3)}:1 against ${bg}; requires ${minimum}:1 without rounding. Select another ${fg} shade or adjust ${bg}, then recheck the complete mode. The original brand and wall remain unchanged.`\n })\n }\n for (const background of ['canvas', 'surface']) {\n for (const foreground of ['foreground', 'mutedForeground', 'placeholder', 'invalid'])\n check(foreground, background, 4.5)\n for (const foreground of ['border', 'focus', 'accent']) check(foreground, background, 3)\n }\n for (const tone of ['accent', 'neutral', 'warning', 'danger', 'support', 'success'])\n check(tone + 'Foreground', tone, 4.5)\n check('mutedForeground', 'disabledBackground', null)\n check('disabledBorder', 'surface', null)\n }\n return freezeTree({\n version: 1 as const,\n working,\n color: { ...color, modes: mapped },\n surface: { modes: canvases },\n checks,\n pass: checks.every(c => c.pass !== false)\n })\n}\n"]}
|
package/dist/library/index.d.ts
CHANGED
|
@@ -17,10 +17,18 @@ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, useAccord
|
|
|
17
17
|
export type { AccordionContentProps, AccordionHeadingLevel, AccordionItemProps, AccordionProps, AccordionState, AccordionTriggerProps, AccordionValue } from './Accordion.js';
|
|
18
18
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './Card.js';
|
|
19
19
|
export type { CardContentProps, CardDescriptionProps, CardFooterProps, CardHeaderProps, CardHeadingLevel, CardProps, CardTitleProps } from './Card.js';
|
|
20
|
-
export { defineTheme, themes, radiant, defaultTheme, soft, expressive, glass, sharp, jelly, ticket } from './themes/index.js';
|
|
21
|
-
export type { SharedTokens, Theme, ThemeComponentOverrides, ThemeDefinition, ThemeLayer, ThemeMode, ThemeStyle, ThemeTokens } from './themes/index.js';
|
|
20
|
+
export { defineTheme, updateThemeAppearance, themes, radiant, defaultTheme, soft, expressive, glass, sharp, jelly, ticket } from './themes/index.js';
|
|
21
|
+
export type { SharedTokens, ThemeAppearanceSettings, ThemeGeometrySettings, Theme, ThemeComponentOverrides, ThemeDefinition, ThemeLayer, ThemeMode, ThemeStyle, ThemeTokens } from './themes/index.js';
|
|
22
22
|
export { ThemeScope } from './ThemeScope.js';
|
|
23
23
|
export type { ThemeScopeProps } from './ThemeScope.js';
|
|
24
24
|
export type { ButtonProps, ButtonRenderProps, ButtonVariant } from './Button.js';
|
|
25
|
+
export { generateTypography, typographyPresets, typographyRoles } from './typography/index.js';
|
|
26
|
+
export type * from './typography/types.js';
|
|
25
27
|
export type { ControlSize, Tone } from './presentation.js';
|
|
28
|
+
export { defineThemeDocument, parseThemeDocument, compileThemeDocument, updateThemeDocument, exportThemeSections, themeDocumentFromDefinition } from './themes/index.js';
|
|
29
|
+
export type { ThemeDocument, ThemeSectionExport, ThemeSections, ThemeSectionName, ThemeSection, ThemeColorSection, ThemeColorStop, ThemeBrandSource, ThemePalette, ThemeTypographySection, ThemeFontAxis, ThemeFontMetadata } from './themes/index.js';
|
|
30
|
+
export { generateColorWall, colorCalibrationPresets } from './color/index.js';
|
|
31
|
+
export type { ColorWall, ColorWallInput, ColorCalibrationPreset } from './color/index.js';
|
|
32
|
+
export { recommendColorPalette } from './color/index.js';
|
|
33
|
+
export type { ColorPalette, ColorPaletteOptions, PaletteModeColors, PaletteColorPair, PaletteContrastCheck, WorkingPaletteRole } from './color/index.js';
|
|
26
34
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM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kBAAkB,CAAA"}
|
package/dist/library/index.js
CHANGED
|
@@ -8,6 +8,10 @@ export { Dialog, DialogClose, DialogContent, DialogDescription, DialogTitle, Dia
|
|
|
8
8
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger, useCollapsible } from './Collapsible.js';
|
|
9
9
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, useAccordion } from './Accordion.js';
|
|
10
10
|
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './Card.js';
|
|
11
|
-
export { defineTheme, themes, radiant, defaultTheme, soft, expressive, glass, sharp, jelly, ticket } from './themes/index.js';
|
|
11
|
+
export { defineTheme, updateThemeAppearance, themes, radiant, defaultTheme, soft, expressive, glass, sharp, jelly, ticket } from './themes/index.js';
|
|
12
12
|
export { ThemeScope } from './ThemeScope.js';
|
|
13
|
+
export { generateTypography, typographyPresets, typographyRoles } from './typography/index.js';
|
|
14
|
+
export { defineThemeDocument, parseThemeDocument, compileThemeDocument, updateThemeDocument, exportThemeSections, themeDocumentFromDefinition } from './themes/index.js';
|
|
15
|
+
export { generateColorWall, colorCalibrationPresets } from './color/index.js';
|
|
16
|
+
export { recommendColorPalette } from './color/index.js';
|
|
13
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAEhC,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAE5C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEnD,OAAO,EACL,MAAM,EACN,WAAW,EACX,aAAa,EACb,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,EAAE,WAAW,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,WAAW,CAAA;AAUjG,OAAO,EACL,WAAW,EACX,qBAAqB,EACrB,MAAM,EACN,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,UAAU,EACV,KAAK,EACL,KAAK,EACL,KAAK,EACL,MAAM,EACP,MAAM,mBAAmB,CAAA;AAa1B,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG5C,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAI9F,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,2BAA2B,EAC5B,MAAM,mBAAmB,CAAA;AAgB1B,OAAO,EAAE,iBAAiB,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAE7E,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA","sourcesContent":["export { Button } from './Button.js'\nexport { Link } from './Link.js'\nexport type { LinkProps, LinkRenderProps, LinkVariant } from './Link.js'\nexport { Field, useField } from './Field.js'\nexport type { FieldControlProps, FieldLayout, FieldProps, FieldState } from './Field.js'\nexport { Input } from './Input.js'\nexport type { InputProps } from './Input.js'\nexport { Checkbox } from './Checkbox.js'\nexport type { CheckboxProps } from './Checkbox.js'\nexport { Radio, RadioGroup } from './RadioGroup.js'\nexport type { RadioGroupProps, RadioProps } from './RadioGroup.js'\nexport {\n Dialog,\n DialogClose,\n DialogContent,\n DialogDescription,\n DialogTitle,\n DialogTrigger,\n useDialog\n} from './Dialog.js'\nexport type {\n DialogCloseProps,\n DialogContentProps,\n DialogDescriptionProps,\n DialogProps,\n DialogRenderProps,\n DialogState,\n DialogTitleProps,\n DialogTriggerProps\n} from './Dialog.js'\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n useCollapsible\n} from './Collapsible.js'\nexport type {\n CollapsibleContentProps,\n CollapsibleProps,\n CollapsibleState,\n CollapsibleTriggerProps\n} from './Collapsible.js'\nexport {\n Accordion,\n AccordionContent,\n AccordionItem,\n AccordionTrigger,\n useAccordion\n} from './Accordion.js'\nexport type {\n AccordionContentProps,\n AccordionHeadingLevel,\n AccordionItemProps,\n AccordionProps,\n AccordionState,\n AccordionTriggerProps,\n AccordionValue\n} from './Accordion.js'\nexport { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './Card.js'\nexport type {\n CardContentProps,\n CardDescriptionProps,\n CardFooterProps,\n CardHeaderProps,\n CardHeadingLevel,\n CardProps,\n CardTitleProps\n} from './Card.js'\nexport {\n defineTheme,\n updateThemeAppearance,\n themes,\n radiant,\n defaultTheme,\n soft,\n expressive,\n glass,\n sharp,\n jelly,\n ticket\n} from './themes/index.js'\nexport type {\n SharedTokens,\n ThemeAppearanceSettings,\n ThemeGeometrySettings,\n Theme,\n ThemeComponentOverrides,\n ThemeDefinition,\n ThemeLayer,\n ThemeMode,\n ThemeStyle,\n ThemeTokens\n} from './themes/index.js'\nexport { ThemeScope } from './ThemeScope.js'\nexport type { ThemeScopeProps } from './ThemeScope.js'\nexport type { ButtonProps, ButtonRenderProps, ButtonVariant } from './Button.js'\nexport { generateTypography, typographyPresets, typographyRoles } from './typography/index.js'\nexport type * from './typography/types.js'\nexport type { ControlSize, Tone } from './presentation.js'\n\nexport {\n defineThemeDocument,\n parseThemeDocument,\n compileThemeDocument,\n updateThemeDocument,\n exportThemeSections,\n themeDocumentFromDefinition\n} from './themes/index.js'\nexport type {\n ThemeDocument,\n ThemeSectionExport,\n ThemeSections,\n ThemeSectionName,\n ThemeSection,\n ThemeColorSection,\n ThemeColorStop,\n ThemeBrandSource,\n ThemePalette,\n ThemeTypographySection,\n ThemeFontAxis,\n ThemeFontMetadata\n} from './themes/index.js'\n\nexport { generateColorWall, colorCalibrationPresets } from './color/index.js'\nexport type { ColorWall, ColorWallInput, ColorCalibrationPreset } from './color/index.js'\nexport { recommendColorPalette } from './color/index.js'\nexport type {\n ColorPalette,\n ColorPaletteOptions,\n PaletteModeColors,\n PaletteColorPair,\n PaletteContrastCheck,\n WorkingPaletteRole\n} from './color/index.js'\n"]}
|