@helixui/tokens 3.3.1 → 3.5.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/__generated__/contrast-report.d.ts +48 -0
- package/dist/__generated__/contrast-report.d.ts.map +1 -0
- package/dist/__generated__/contrast-report.js +2009 -0
- package/dist/__generated__/contrast-report.js.map +1 -0
- package/dist/aaa-thresholds.d.ts +55 -0
- package/dist/aaa-thresholds.d.ts.map +1 -0
- package/dist/aaa-thresholds.js +28 -0
- package/dist/aaa-thresholds.js.map +1 -0
- package/dist/css.d.ts +1 -1
- package/dist/css.d.ts.map +1 -1
- package/dist/css.js +3 -3
- package/dist/css.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lit.d.ts +1 -1
- package/dist/lit.d.ts.map +1 -1
- package/dist/lit.js +3 -3
- package/dist/lit.js.map +1 -1
- package/dist/tokens.css +3 -2
- package/package.json +9 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* AUTOGENERATED — DO NOT EDIT BY HAND.
|
|
3
|
+
*
|
|
4
|
+
* Regenerate via `pnpm --filter=@helixui/tokens run contrast:report`.
|
|
5
|
+
*
|
|
6
|
+
* Canonical source of WCAG contrast pair telemetry for `@helixui/tokens`.
|
|
7
|
+
* Imported through the package `./contrast-data` export. The contents are
|
|
8
|
+
* deterministic for a given (tokens.json, contrast-helpers.ts) tuple — the
|
|
9
|
+
* generator emits this file and the gitignored `.cache/contrast-report.json`
|
|
10
|
+
* artefact in lockstep, so the JSON cache stays available for ad-hoc
|
|
11
|
+
* inspection without becoming a build-time dependency.
|
|
12
|
+
*
|
|
13
|
+
* The `generatedAt` wall-clock field is intentionally absent from this
|
|
14
|
+
* module; consult `tokenVersion` (or the gitignored JSON cache) for
|
|
15
|
+
* regeneration freshness signals.
|
|
16
|
+
*/
|
|
17
|
+
export type ContrastClassification = 'aaa' | 'aa' | 'subAA';
|
|
18
|
+
export type ContrastPairRole = 'body-text' | 'large-text' | 'ui-element';
|
|
19
|
+
export type ContrastModeKey = 'light' | 'dark' | 'high-contrast';
|
|
20
|
+
export interface ContrastPair {
|
|
21
|
+
readonly text: string;
|
|
22
|
+
readonly surface: string;
|
|
23
|
+
readonly label: string;
|
|
24
|
+
readonly textHex: string;
|
|
25
|
+
readonly surfaceHex: string;
|
|
26
|
+
readonly ratio: number;
|
|
27
|
+
readonly threshold: number;
|
|
28
|
+
readonly aaaThreshold: number;
|
|
29
|
+
readonly role: ContrastPairRole;
|
|
30
|
+
readonly classification: ContrastClassification;
|
|
31
|
+
}
|
|
32
|
+
export interface ContrastModeSummary {
|
|
33
|
+
readonly aaa: number;
|
|
34
|
+
readonly aa: number;
|
|
35
|
+
readonly subAA: number;
|
|
36
|
+
readonly total: number;
|
|
37
|
+
}
|
|
38
|
+
export interface ContrastModeReport {
|
|
39
|
+
readonly summary: ContrastModeSummary;
|
|
40
|
+
readonly pairs: readonly ContrastPair[];
|
|
41
|
+
}
|
|
42
|
+
export interface ContrastReport {
|
|
43
|
+
readonly tokenVersion: string;
|
|
44
|
+
readonly modes: Readonly<Record<ContrastModeKey, ContrastModeReport>>;
|
|
45
|
+
}
|
|
46
|
+
export declare const contrastReport: ContrastReport;
|
|
47
|
+
export default contrastReport;
|
|
48
|
+
//# sourceMappingURL=contrast-report.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contrast-report.d.ts","sourceRoot":"","sources":["../../src/__generated__/contrast-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,YAAY,GAAG,YAAY,CAAC;AAEzE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,MAAM,GAA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