@multiplatform.one/components 10.1.2 → 10.1.3
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/cjs/layouts/timeline.cjs +0 -1
- package/dist/cjs/layouts/timeline.native.cjs +0 -1
- package/dist/cjs/layouts/timeline.native.js +0 -1
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/views/Calendar.cjs +54 -76
- package/dist/cjs/views/Calendar.native.cjs +54 -76
- package/dist/cjs/views/Calendar.native.js +54 -76
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Gantt.cjs +185 -69
- package/dist/cjs/views/Gantt.native.cjs +190 -72
- package/dist/cjs/views/Gantt.native.js +190 -72
- package/dist/cjs/views/Gantt.native.js.map +1 -1
- package/dist/cjs/views/GanttDateGrip.cjs +20 -14
- package/dist/cjs/views/GanttDateGrip.native.cjs +24 -14
- package/dist/cjs/views/GanttDateGrip.native.js +24 -14
- package/dist/cjs/views/GanttDateGrip.native.js.map +1 -1
- package/dist/cjs/views/GanttGripDot.cjs +43 -0
- package/dist/cjs/views/GanttGripDot.native.cjs +46 -0
- package/dist/cjs/views/GanttGripDot.native.js +48 -0
- package/dist/cjs/views/GanttGripDot.native.js.map +1 -0
- package/dist/cjs/views/eventTint.cjs +242 -0
- package/dist/cjs/views/eventTint.native.cjs +346 -0
- package/dist/cjs/views/eventTint.native.js +348 -0
- package/dist/cjs/views/eventTint.native.js.map +1 -0
- package/dist/esm/layouts/timeline.mjs +0 -1
- package/dist/esm/layouts/timeline.mjs.map +1 -1
- package/dist/esm/layouts/timeline.native.js +0 -1
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/views/Calendar.mjs +53 -75
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +53 -75
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Gantt.mjs +186 -70
- package/dist/esm/views/Gantt.mjs.map +1 -1
- package/dist/esm/views/Gantt.native.js +191 -73
- package/dist/esm/views/Gantt.native.js.map +1 -1
- package/dist/esm/views/GanttDateGrip.mjs +21 -15
- package/dist/esm/views/GanttDateGrip.mjs.map +1 -1
- package/dist/esm/views/GanttDateGrip.native.js +25 -15
- package/dist/esm/views/GanttDateGrip.native.js.map +1 -1
- package/dist/esm/views/GanttGripDot.mjs +24 -0
- package/dist/esm/views/GanttGripDot.mjs.map +1 -0
- package/dist/esm/views/GanttGripDot.native.js +25 -0
- package/dist/esm/views/GanttGripDot.native.js.map +1 -0
- package/dist/esm/views/eventTint.mjs +196 -0
- package/dist/esm/views/eventTint.mjs.map +1 -0
- package/dist/esm/views/eventTint.native.js +298 -0
- package/dist/esm/views/eventTint.native.js.map +1 -0
- package/dist/jsx/layouts/timeline.mjs +0 -1
- package/dist/jsx/layouts/timeline.mjs.map +1 -1
- package/dist/jsx/layouts/timeline.native.cjs +0 -1
- package/dist/jsx/layouts/timeline.native.js +0 -1
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/views/Calendar.mjs +53 -75
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.cjs +54 -76
- package/dist/jsx/views/Calendar.native.js +54 -76
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Gantt.mjs +186 -70
- package/dist/jsx/views/Gantt.mjs.map +1 -1
- package/dist/jsx/views/Gantt.native.cjs +190 -72
- package/dist/jsx/views/Gantt.native.js +190 -72
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/GanttDateGrip.mjs +21 -15
- package/dist/jsx/views/GanttDateGrip.mjs.map +1 -1
- package/dist/jsx/views/GanttDateGrip.native.cjs +24 -14
- package/dist/jsx/views/GanttDateGrip.native.js +24 -14
- package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
- package/dist/jsx/views/GanttGripDot.mjs +24 -0
- package/dist/jsx/views/GanttGripDot.mjs.map +1 -0
- package/dist/jsx/views/GanttGripDot.native.cjs +46 -0
- package/dist/jsx/views/GanttGripDot.native.js +48 -0
- package/dist/jsx/views/GanttGripDot.native.js.map +1 -0
- package/dist/jsx/views/eventTint.mjs +196 -0
- package/dist/jsx/views/eventTint.mjs.map +1 -0
- package/dist/jsx/views/eventTint.native.cjs +346 -0
- package/dist/jsx/views/eventTint.native.js +348 -0
- package/dist/jsx/views/eventTint.native.js.map +1 -0
- package/package.json +7 -7
- package/src/hoverTouchPath.coarse.spec.tsx +28 -4
- package/src/layouts/timeline.replyInset.spec.tsx +72 -22
- package/src/layouts/timeline.tsx +0 -1
- package/src/views/Calendar.eventFill.spec.tsx +44 -9
- package/src/views/Calendar.tsx +23 -31
- package/src/views/Gantt.barInk.spec.tsx +257 -0
- package/src/views/Gantt.grips.spec.tsx +226 -0
- package/src/views/Gantt.tint.palette.spec.ts +288 -0
- package/src/views/Gantt.tsx +224 -65
- package/src/views/GanttDateGrip.native.spec.tsx +8 -0
- package/src/views/GanttDateGrip.tsx +28 -17
- package/src/views/GanttGripDot.tsx +36 -0
- package/src/views/dataIdentity.spec.tsx +29 -13
- package/src/views/eventTint.ts +305 -0
- package/types/layouts/timeline.d.ts.map +1 -1
- package/types/views/Calendar.d.ts.map +1 -1
- package/types/views/Gantt.d.ts.map +1 -1
- package/types/views/GanttDateGrip.d.ts +7 -0
- package/types/views/GanttDateGrip.d.ts.map +1 -1
- package/types/views/GanttGripDot.d.ts +9 -0
- package/types/views/GanttGripDot.d.ts.map +1 -0
- package/types/views/eventTint.d.ts +72 -0
- package/types/views/eventTint.d.ts.map +1 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createDefaultThemeConfig } from "@multiplatform.one/theme";
|
|
1
|
+
import { createDefaultThemeConfig, normalizeToHex } from "@multiplatform.one/theme";
|
|
2
2
|
import {
|
|
3
3
|
atomicStyle,
|
|
4
4
|
cssVariableName,
|
|
@@ -8,12 +8,13 @@ import {
|
|
|
8
8
|
import { useChartPalette, useReadableTextOn } from "@multiplatform.one/theme";
|
|
9
9
|
import { cleanup, fireEvent, screen } from "@testing-library/react";
|
|
10
10
|
import { afterEach, describe, expect, it } from "vitest";
|
|
11
|
-
import { Theme } from "tamagui";
|
|
11
|
+
import { Theme, useTheme } from "tamagui";
|
|
12
12
|
import { Calendar } from "./Calendar";
|
|
13
13
|
import { KPICard } from "./Dashboard";
|
|
14
14
|
import { GanttView } from "./Gantt";
|
|
15
15
|
import { MatrixView } from "./Matrix";
|
|
16
16
|
import { componentColors } from "../componentColors";
|
|
17
|
+
import { eventPaint, eventSolid, useEventDark, type EventThemeValues } from "./eventTint";
|
|
17
18
|
|
|
18
19
|
// LC-05: the selection fills are `$selectFill` / `$selectPress`, keys only
|
|
19
20
|
// MPO's themes define (FZ-8400), so these render under MPO's own config.
|
|
@@ -21,9 +22,18 @@ createDefaultThemeConfig({});
|
|
|
21
22
|
|
|
22
23
|
afterEach(cleanup);
|
|
23
24
|
|
|
24
|
-
|
|
25
|
+
interface Identity {
|
|
26
|
+
current?: string;
|
|
27
|
+
ink?: string;
|
|
28
|
+
theme?: EventThemeValues;
|
|
29
|
+
dark?: boolean;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function IdentityProbe({ into }: { into: Identity }) {
|
|
25
33
|
into.current = useChartPalette().single;
|
|
26
34
|
into.ink = useReadableTextOn(into.current);
|
|
35
|
+
into.theme = useTheme() as unknown as EventThemeValues;
|
|
36
|
+
into.dark = useEventDark();
|
|
27
37
|
return null;
|
|
28
38
|
}
|
|
29
39
|
|
|
@@ -39,7 +49,7 @@ describe("Data identity fills", () => {
|
|
|
39
49
|
it.each(["month", "week"] as const)(
|
|
40
50
|
"Calendar %s events follow the tinted identity",
|
|
41
51
|
(viewType) => {
|
|
42
|
-
const identity:
|
|
52
|
+
const identity: Identity = {};
|
|
43
53
|
const { container } = renderWithProviders(
|
|
44
54
|
<Theme name={"red" as any}>
|
|
45
55
|
<IdentityProbe into={identity} />
|
|
@@ -52,15 +62,19 @@ describe("Data identity fills", () => {
|
|
|
52
62
|
);
|
|
53
63
|
const event = container.querySelector('[aria-label^="Identity event,"]') as HTMLElement;
|
|
54
64
|
expect(event).toBeTruthy();
|
|
55
|
-
const tint = event.querySelector("[data-calendar-event-tint]") as HTMLElement;
|
|
56
65
|
const bar = event.querySelector("[data-calendar-event-bar]") as HTMLElement;
|
|
57
|
-
|
|
66
|
+
const tint = eventPaint(identity.theme!, identity.current!, "rest", {
|
|
67
|
+
dark: identity.dark!,
|
|
68
|
+
});
|
|
69
|
+
expect(event.getAttribute("data-calendar-event-tint")).toBe("rest");
|
|
70
|
+
expect(tint).not.toBeNull();
|
|
71
|
+
expect(normalizeToHex(getComputedStyle(event).backgroundColor)).toBe(normalizeToHex(tint!));
|
|
58
72
|
expect(getComputedStyle(bar).backgroundColor).toBe(cssColor(identity.current!));
|
|
59
73
|
},
|
|
60
74
|
);
|
|
61
75
|
|
|
62
76
|
it("Gantt bars follow the tinted identity", () => {
|
|
63
|
-
const identity:
|
|
77
|
+
const identity: Identity = {};
|
|
64
78
|
const { container } = renderWithProviders(
|
|
65
79
|
<Theme name={"red" as any}>
|
|
66
80
|
<IdentityProbe into={identity} />
|
|
@@ -70,11 +84,13 @@ describe("Data identity fills", () => {
|
|
|
70
84
|
</Theme>,
|
|
71
85
|
);
|
|
72
86
|
const bar = container.querySelector("[data-gantt-bar]") as HTMLElement;
|
|
73
|
-
const fills = Array.from(
|
|
74
|
-
|
|
75
|
-
(part) => getComputedStyle(part).backgroundColor,
|
|
87
|
+
const fills = Array.from(bar.querySelectorAll("div"), (part) =>
|
|
88
|
+
normalizeToHex(getComputedStyle(part).backgroundColor),
|
|
76
89
|
);
|
|
77
|
-
|
|
90
|
+
const solid = eventSolid(identity.theme!, identity.current!, "rest");
|
|
91
|
+
expect(identity.dark).toBe(false);
|
|
92
|
+
expect(solid).not.toBeNull();
|
|
93
|
+
expect(fills).toContain(normalizeToHex(solid!.paint));
|
|
78
94
|
});
|
|
79
95
|
|
|
80
96
|
it("Gantt selected row uses selection ink and the pressed tier", () => {
|
|
@@ -97,7 +113,7 @@ describe("Data identity fills", () => {
|
|
|
97
113
|
});
|
|
98
114
|
|
|
99
115
|
it("Matrix cells and ramp legend follow the tinted identity", () => {
|
|
100
|
-
const identity:
|
|
116
|
+
const identity: Identity = {};
|
|
101
117
|
const { container } = renderWithProviders(
|
|
102
118
|
<Theme name={"red" as any}>
|
|
103
119
|
<IdentityProbe into={identity} />
|
|
@@ -115,7 +131,7 @@ describe("Data identity fills", () => {
|
|
|
115
131
|
});
|
|
116
132
|
|
|
117
133
|
it("Dashboard icon tiles follow the tinted identity", () => {
|
|
118
|
-
const identity:
|
|
134
|
+
const identity: Identity = {};
|
|
119
135
|
renderWithProviders(
|
|
120
136
|
<Theme name={"red" as any}>
|
|
121
137
|
<IdentityProbe into={identity} />
|
|
@@ -0,0 +1,305 @@
|
|
|
1
|
+
import * as Colors from "@tamagui/colors";
|
|
2
|
+
import {
|
|
3
|
+
aaTextContrastRatio,
|
|
4
|
+
apcaContrast,
|
|
5
|
+
contrastRatio,
|
|
6
|
+
fillLabelLc,
|
|
7
|
+
holdInkFloor,
|
|
8
|
+
isDarkThemeName,
|
|
9
|
+
normalizeToHex,
|
|
10
|
+
relativeLuminance,
|
|
11
|
+
resolveLegibleInkOn,
|
|
12
|
+
} from "@multiplatform.one/theme";
|
|
13
|
+
import { useThemeName } from "tamagui";
|
|
14
|
+
|
|
15
|
+
export const EVENT_BAR_PX = 3;
|
|
16
|
+
export const EVENT_GRIP_DOT_PX = 10;
|
|
17
|
+
|
|
18
|
+
export type EventState = "rest" | "selected" | "ghost";
|
|
19
|
+
|
|
20
|
+
export interface EventTint {
|
|
21
|
+
rest: number;
|
|
22
|
+
selected: number;
|
|
23
|
+
ghost: number;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Light blends the event colour over the canvas; dark falls back to these only for a colour with no ramp. */
|
|
27
|
+
export const eventTints: Record<"light" | "dark", EventTint> = {
|
|
28
|
+
light: { rest: 0.22, selected: 0.38, ghost: 0.13 },
|
|
29
|
+
dark: { rest: 0.4, selected: 0.5, ghost: 0.24 },
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Dark paints from the hue's own ramp so a yellow stays gold, not olive over
|
|
34
|
+
* a blue canvas. Rest at step 6 is the first step that clears 1.5:1 on the
|
|
35
|
+
* canvas and the weekend band in every hue; selected is step 7. A proposed
|
|
36
|
+
* bar is the rest step at 60% over the canvas, so it stays the same hue,
|
|
37
|
+
* fainter, and still clears 1.2:1 on the canvas.
|
|
38
|
+
*/
|
|
39
|
+
export const eventRampSteps: Record<Exclude<EventState, "ghost">, number> = {
|
|
40
|
+
rest: 6,
|
|
41
|
+
selected: 7,
|
|
42
|
+
};
|
|
43
|
+
export const EVENT_GHOST_DARK = 0.6;
|
|
44
|
+
/** Step 11 is the lowest that clears 3:1 on every dark bar; light selected fills ease off until it does. */
|
|
45
|
+
export const EVENT_STRIP_STEP = 11;
|
|
46
|
+
export const EVENT_STRIP_FLOOR = 3;
|
|
47
|
+
|
|
48
|
+
const contrast = (a: string, b: string) =>
|
|
49
|
+
contrastRatio(relativeLuminance(a), relativeLuminance(b));
|
|
50
|
+
|
|
51
|
+
export function eventTintFor(themeName: string | undefined | null): EventTint {
|
|
52
|
+
return eventTints[isDarkThemeName(themeName) ? "dark" : "light"];
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function useEventTint(): EventTint {
|
|
56
|
+
return eventTintFor(useThemeName() as string | undefined);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function useEventDark(): boolean {
|
|
60
|
+
return isDarkThemeName(useThemeName() as string | undefined);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type EventThemeValues = Record<string, { val?: unknown } | undefined>;
|
|
64
|
+
|
|
65
|
+
export function themeValue(theme: EventThemeValues, color: string): string | undefined {
|
|
66
|
+
const token = color.startsWith("$");
|
|
67
|
+
const val = theme[token ? color.slice(1) : color]?.val;
|
|
68
|
+
if (typeof val === "string") return val;
|
|
69
|
+
return token ? undefined : color;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** `fill` at `alpha` over the opaque `surface`, as hex; null when either fails to parse. */
|
|
73
|
+
export function blendOver(fill: string, surface: string, alpha: number): string | null {
|
|
74
|
+
const top = normalizeToHex(fill);
|
|
75
|
+
const bottom = normalizeToHex(surface);
|
|
76
|
+
if (!top || !bottom) return null;
|
|
77
|
+
return `#${[1, 3, 5]
|
|
78
|
+
.map((offset) => {
|
|
79
|
+
const a = Number.parseInt(top.slice(offset, offset + 2), 16);
|
|
80
|
+
const b = Number.parseInt(bottom.slice(offset, offset + 2), 16);
|
|
81
|
+
return Math.round(b + (a - b) * alpha)
|
|
82
|
+
.toString(16)
|
|
83
|
+
.padStart(2, "0");
|
|
84
|
+
})
|
|
85
|
+
.join("")}`;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const rampFamilies = new Map<string, string>();
|
|
89
|
+
for (const [name, scale] of Object.entries(Colors as Record<string, Record<string, string>>)) {
|
|
90
|
+
if (/A$|P3/.test(name)) continue;
|
|
91
|
+
const family = name.replace(/Dark$/, "");
|
|
92
|
+
for (const value of Object.values(scale)) {
|
|
93
|
+
const hex = normalizeToHex(String(value));
|
|
94
|
+
if (hex && !rampFamilies.has(hex)) rampFamilies.set(hex, family);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export function eventRamp(
|
|
99
|
+
theme: EventThemeValues,
|
|
100
|
+
fill: string,
|
|
101
|
+
dark: boolean,
|
|
102
|
+
): ((step: number) => string | undefined) | null {
|
|
103
|
+
if (/^\$?color-\d+$/.test(fill)) return (step) => themeValue(theme, `color-${step}`);
|
|
104
|
+
const value = themeValue(theme, fill);
|
|
105
|
+
const hex = value ? normalizeToHex(value) : null;
|
|
106
|
+
const family = hex ? rampFamilies.get(hex) : undefined;
|
|
107
|
+
const scale = family
|
|
108
|
+
? (Colors as Record<string, Record<string, string>>)[dark ? `${family}Dark` : family]
|
|
109
|
+
: undefined;
|
|
110
|
+
return scale ? (step) => scale[`${family}${step}`] : null;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function eventPaint(
|
|
114
|
+
theme: EventThemeValues,
|
|
115
|
+
fill: string,
|
|
116
|
+
state: EventState,
|
|
117
|
+
{ dark, surface = "background" }: { dark: boolean; surface?: string },
|
|
118
|
+
): string | null {
|
|
119
|
+
const ground = themeValue(theme, surface);
|
|
120
|
+
if (dark) {
|
|
121
|
+
const step = eventRamp(theme, fill, true)?.(eventRampSteps[state === "ghost" ? "rest" : state]);
|
|
122
|
+
const hex = step ? normalizeToHex(step) : null;
|
|
123
|
+
if (hex && state !== "ghost") return hex;
|
|
124
|
+
const ghost = hex && ground ? blendOver(hex, ground, EVENT_GHOST_DARK) : null;
|
|
125
|
+
if (ghost) return ghost;
|
|
126
|
+
}
|
|
127
|
+
const value = themeValue(theme, fill);
|
|
128
|
+
if (!value || !ground) return null;
|
|
129
|
+
if (dark || state === "ghost")
|
|
130
|
+
return blendOver(value, ground, eventTints[dark ? "dark" : "light"][state]);
|
|
131
|
+
const strip = eventRamp(theme, fill, false)?.(EVENT_STRIP_STEP);
|
|
132
|
+
const stripHex = strip ? normalizeToHex(strip) : null;
|
|
133
|
+
const clears = (paint: string | null): paint is string =>
|
|
134
|
+
paint !== null && (!stripHex || contrast(stripHex, paint) >= EVENT_STRIP_FLOOR);
|
|
135
|
+
const { rest, selected } = eventTints.light;
|
|
136
|
+
const restPaint = blendOver(value, ground, rest);
|
|
137
|
+
if (clears(restPaint)) {
|
|
138
|
+
if (state === "rest") return restPaint;
|
|
139
|
+
for (let percent = Math.round(selected * 100); percent > Math.round(rest * 100); percent--) {
|
|
140
|
+
const paint = blendOver(value, ground, percent / 100);
|
|
141
|
+
if (clears(paint)) return paint;
|
|
142
|
+
}
|
|
143
|
+
return restPaint;
|
|
144
|
+
}
|
|
145
|
+
const lightened = lightenedRest(value, ground, clears);
|
|
146
|
+
return lightened ? lightened[state] : restPaint;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/** A light rest paint never stands closer to the canvas than a proposed bar must (1.2:1). */
|
|
150
|
+
export const EVENT_REST_STANDOFF = 1.2;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* A fill too dark for its strip to clear 3:1 at the rest tint lightens one
|
|
154
|
+
* percent at a time. Selected takes the deepest tint that still clears and
|
|
155
|
+
* rest the step under it, so selection still deepens. Null once rest would
|
|
156
|
+
* stand closer to the canvas than `EVENT_REST_STANDOFF`.
|
|
157
|
+
*/
|
|
158
|
+
function lightenedRest(
|
|
159
|
+
value: string,
|
|
160
|
+
ground: string,
|
|
161
|
+
clears: (paint: string | null) => paint is string,
|
|
162
|
+
): { rest: string; selected: string } | null {
|
|
163
|
+
const canvas = normalizeToHex(ground);
|
|
164
|
+
if (!canvas) return null;
|
|
165
|
+
for (let percent = Math.round(eventTints.light.rest * 100) - 1; percent > 1; percent--) {
|
|
166
|
+
const selected = blendOver(value, ground, percent / 100);
|
|
167
|
+
if (!clears(selected)) continue;
|
|
168
|
+
const rest = blendOver(value, ground, (percent - 1) / 100);
|
|
169
|
+
if (!rest || contrast(rest, canvas) < EVENT_REST_STANDOFF) return null;
|
|
170
|
+
return { rest, selected };
|
|
171
|
+
}
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const labelHolds = (label: string, fill: string) =>
|
|
176
|
+
contrast(label, fill) >= aaTextContrastRatio &&
|
|
177
|
+
Math.abs(apcaContrast(label, fill)) >= fillLabelLc;
|
|
178
|
+
|
|
179
|
+
export interface EventSolid {
|
|
180
|
+
paint: string;
|
|
181
|
+
ink: string;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export const EVENT_SOLID_SELECTED = 0.1;
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* A light Gantt bar is a solid in its own colour, as LC-172 holds an accent
|
|
188
|
+
* solid. The label is whichever of `color-1` and the hue's step 12 reads
|
|
189
|
+
* harder on that colour (APCA), so blue, green and red carry near-white and
|
|
190
|
+
* yellow keeps its dark ink. Where that label misses WCAG 4.5:1 or APCA Lc 60
|
|
191
|
+
* the fill mixes toward the opposite anchor in 5% steps until it holds.
|
|
192
|
+
* Selected mixes a further 10% toward `color-12`, or toward `color-1` where
|
|
193
|
+
* darker would lose the label.
|
|
194
|
+
*/
|
|
195
|
+
export function eventSolid(
|
|
196
|
+
theme: EventThemeValues,
|
|
197
|
+
fill: string,
|
|
198
|
+
state: Exclude<EventState, "ghost">,
|
|
199
|
+
): EventSolid | null {
|
|
200
|
+
const [paper, anchor] = ["color-1", "color-12"].map((token) => {
|
|
201
|
+
const value = themeValue(theme, token);
|
|
202
|
+
return value ? normalizeToHex(value) : null;
|
|
203
|
+
});
|
|
204
|
+
const value = themeValue(theme, fill);
|
|
205
|
+
const solid = value ? normalizeToHex(value) : null;
|
|
206
|
+
if (!paper || !anchor || !solid) return null;
|
|
207
|
+
const hueInk = eventRamp(theme, fill, false)?.(12);
|
|
208
|
+
const dark = (hueInk && normalizeToHex(hueInk)) || anchor;
|
|
209
|
+
const ink =
|
|
210
|
+
Math.abs(apcaContrast(paper, solid)) >= Math.abs(apcaContrast(dark, solid)) ? paper : dark;
|
|
211
|
+
const far = ink === paper ? anchor : paper;
|
|
212
|
+
const rest = Array.from({ length: 13 }, (_, step) => blendOver(far, solid, step / 20)).find(
|
|
213
|
+
(paint): paint is string => paint !== null && labelHolds(ink, paint),
|
|
214
|
+
);
|
|
215
|
+
if (!rest) return { paint: solid, ink: normalizeToHex(holdInkFloor(solid, ink)) ?? ink };
|
|
216
|
+
if (state === "rest") return { paint: rest, ink };
|
|
217
|
+
const selected = [anchor, paper]
|
|
218
|
+
.map((toward) => blendOver(toward, rest, EVENT_SOLID_SELECTED))
|
|
219
|
+
.find((paint): paint is string => paint !== null && labelHolds(ink, paint));
|
|
220
|
+
return { paint: selected ?? rest, ink };
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/** One strip colour per bar, held across rest and selected. */
|
|
224
|
+
export function eventStripPaint(
|
|
225
|
+
theme: EventThemeValues,
|
|
226
|
+
fill: string,
|
|
227
|
+
{ dark, surface }: { dark: boolean; surface?: string },
|
|
228
|
+
): string | null {
|
|
229
|
+
const step = eventRamp(theme, fill, dark)?.(EVENT_STRIP_STEP);
|
|
230
|
+
const hex = step ? normalizeToHex(step) : null;
|
|
231
|
+
if (hex) return hex;
|
|
232
|
+
const value = themeValue(theme, fill);
|
|
233
|
+
const solid = value ? normalizeToHex(value) : null;
|
|
234
|
+
if (!solid) return null;
|
|
235
|
+
const ink = themeValue(theme, "color-12");
|
|
236
|
+
const paints = (["rest", "selected"] as const)
|
|
237
|
+
.map((state) => eventPaint(theme, fill, state, { dark, surface }))
|
|
238
|
+
.filter((paint): paint is string => paint !== null);
|
|
239
|
+
const candidates = [
|
|
240
|
+
solid,
|
|
241
|
+
...(ink ? [0.35, 0.6].map((mix) => blendOver(solid, ink, mix)) : []),
|
|
242
|
+
].filter((candidate): candidate is string => candidate !== null);
|
|
243
|
+
return (
|
|
244
|
+
candidates.find((candidate) =>
|
|
245
|
+
paints.every((paint) => contrast(candidate, paint) >= EVENT_STRIP_FLOOR),
|
|
246
|
+
) ??
|
|
247
|
+
candidates.at(-1) ??
|
|
248
|
+
null
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* Ink for text on event paint (Calendar events, Gantt bars): `preferred`
|
|
254
|
+
* while it clears AA on every ground the text crosses, otherwise the readable
|
|
255
|
+
* anchor held to the floor. The token comes back untouched when it passes.
|
|
256
|
+
*/
|
|
257
|
+
export function eventInk(
|
|
258
|
+
theme: EventThemeValues,
|
|
259
|
+
grounds: readonly (string | null | undefined)[],
|
|
260
|
+
preferred = "color-12",
|
|
261
|
+
): string {
|
|
262
|
+
const preferredValue = themeValue(theme, preferred);
|
|
263
|
+
if (!preferredValue) return preferred;
|
|
264
|
+
const paper = themeValue(theme, "color-1");
|
|
265
|
+
const ink = themeValue(theme, "color-12");
|
|
266
|
+
let replacement: string | undefined;
|
|
267
|
+
for (const ground of grounds) {
|
|
268
|
+
if (!ground) continue;
|
|
269
|
+
const resolved = resolveLegibleInkOn({ fill: ground, preferred: preferredValue, paper, ink });
|
|
270
|
+
if (resolved && resolved !== preferredValue) replacement = resolved;
|
|
271
|
+
}
|
|
272
|
+
return replacement ?? preferred;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* Ink is the hue's own step 12 in both schemes. Secondary text (times, a
|
|
277
|
+
* proposed bar's label) takes the tone nearest step 11 on the 11-to-12 line
|
|
278
|
+
* that still clears AA on every ground, so it stays dimmer than the title even
|
|
279
|
+
* where step 11 itself fails.
|
|
280
|
+
*/
|
|
281
|
+
export function eventLabelInk(
|
|
282
|
+
theme: EventThemeValues,
|
|
283
|
+
fill: string,
|
|
284
|
+
grounds: readonly (string | null | undefined)[],
|
|
285
|
+
dark: boolean,
|
|
286
|
+
tone: "primary" | "secondary" = "primary",
|
|
287
|
+
): string {
|
|
288
|
+
const ramp = eventRamp(theme, fill, dark);
|
|
289
|
+
const [dim, full] = [11, 12].map((step) => {
|
|
290
|
+
const value = ramp?.(step);
|
|
291
|
+
return value ? normalizeToHex(value) : null;
|
|
292
|
+
});
|
|
293
|
+
const grounded = grounds
|
|
294
|
+
.map((ground) => (ground ? normalizeToHex(ground) : null))
|
|
295
|
+
.filter((hex): hex is string => hex !== null);
|
|
296
|
+
const reads = (ink: string) =>
|
|
297
|
+
grounded.every((ground) => contrast(ink, ground) >= aaTextContrastRatio);
|
|
298
|
+
if (full && tone === "secondary" && dim)
|
|
299
|
+
for (let percent = 0; percent < 100; percent++) {
|
|
300
|
+
const ink = blendOver(full, dim, percent / 100);
|
|
301
|
+
if (ink && reads(ink)) return ink;
|
|
302
|
+
}
|
|
303
|
+
if (full && reads(full)) return full;
|
|
304
|
+
return eventInk(theme, grounds, full ?? (tone === "secondary" ? "color-11" : "color-12"));
|
|
305
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline.d.ts","sourceRoot":"","sources":["../../src/layouts/timeline.tsx"],"names":[],"mappings":"AAiCA,OAAO,KAAyC,MAAM,OAAO,CAAC;AAE9D,OAAO,EAWL,KAAK,UAAU,EACf,KAAK,WAAW,EAIjB,MAAM,SAAS,CAAC;AAiBjB;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;CACd;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,YAAY,GAAG,YAAY,GAAG,MAAM,CAAC;AAE7F;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,wBAAwB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,kDAAkD;IAClD,IAAI,EAAE,iBAAiB,CAAC;IACxB,sDAAsD;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;yFACqF;IACrF,MAAM,EAAE,MAAM,CAAC;IACf,2EAA2E;IAC3E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,4CAA4C;IAC5C,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;CAC3B;AAED,iEAAiE;AACjE,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,aAAa,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,WAAW,EAAE,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I,CAAC,aAAa,EAAE,QAAQ,GAAG,YAAY,CAAC,GAAG,MAAM,CAE/F;AAYD,OAAO,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AAEnE;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,cAAc,EAAE,CA6CxE;AA6HD;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,EACvB,OAAO,EACP,KAAK,EACL,YAAgB,EAChB,QAAgB,EAChB,SAAiB,EACjB,KAAY,EACZ,OAAO,EACP,gBAAuB,EACvB,cAAc,EACd,eAAe,EACf,OAAO,EACP,YAAY,EACZ,YAAY,EACZ,mBAAwB,EACxB,eAAe,EACf,WAAW,EACX,WAAW,EACX,eAAe,EACf,IAAI,EACJ,MAAW,EACX,WAAW,EAAE,eAAe,EAC5B,gBAAgB,EAAE,oBAAoB,EACtC,GAAG,UAAU,EACd,EAAE,aAAa,qBAsmBf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/views/Calendar.tsx"],"names":[],"mappings":"AA+CA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAGxF,OAAO,
|
|
1
|
+
{"version":3,"file":"Calendar.d.ts","sourceRoot":"","sources":["../../src/views/Calendar.tsx"],"names":[],"mappings":"AA+CA,OAAO,KAAmE,MAAM,OAAO,CAAC;AAGxF,OAAO,EASL,KAAK,WAAW,EACjB,MAAM,SAAS,CAAC;AAajB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,CAAC;AAExD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,KAAK,EAAE,IAAI,CAAC;IACZ,6BAA6B;IAC7B,GAAG,CAAC,EAAE,IAAI,CAA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EACrB,gBAAuB,EACvB,cAAkB,EAClB,WAAgB,EAChB,GAAG,UAAU,EACd,EAAE,aAAa,qBAs8Df"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gantt.d.ts","sourceRoot":"","sources":["../../src/views/Gantt.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Gantt.d.ts","sourceRoot":"","sources":["../../src/views/Gantt.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,EAOZ,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAGf,OAAO,EAA2D,KAAK,WAAW,EAAE,MAAM,SAAS,CAAC;AAkBpG,OAAO,EAAmC,KAAK,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,EAwBL,KAAK,aAAa,EAIlB,KAAK,SAAS,EACf,MAAM,aAAa,CAAC;AAQrB;;;;;;GAMG;AACH,MAAM,WAAW,aAAa;IAC5B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,KAAK,CAAC,EAAE,IAAI,CAAC;IACb,6GAA6G;IAC7G,GAAG,CAAC,EAAE,IAAI,CAAC;IACX;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wEAAwE;IACxE,MAAM,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;IACpD;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6DAA6D;IAC7D,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,MAAM,WAAW,SAAU,SAAQ,aAAa;IAC9C,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,0BAA0B;IAC1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+14,13 @@ interface GanttDateGripProps {
|
|
|
14
14
|
firstDayOfWeek: 0 | 1;
|
|
15
15
|
label: string;
|
|
16
16
|
valueText: string;
|
|
17
|
+
barWidth: number;
|
|
18
|
+
barTop: number;
|
|
19
|
+
barBottom: number;
|
|
20
|
+
color: string;
|
|
21
|
+
shown: boolean;
|
|
22
|
+
gripOf: string;
|
|
23
|
+
onHoverChange: (hovered: boolean) => void;
|
|
17
24
|
onPreview: (span: GanttOpenSpan | null) => void;
|
|
18
25
|
onCommit: (span: GanttOpenSpan) => void;
|
|
19
26
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GanttDateGrip.d.ts","sourceRoot":"","sources":["../../src/views/GanttDateGrip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GanttDateGrip.d.ts","sourceRoot":"","sources":["../../src/views/GanttDateGrip.tsx"],"names":[],"mappings":"AAQA,OAAO,EAGL,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AAGrB,OAAO,EAIL,KAAK,aAAa,EAClB,KAAK,gBAAgB,EACtB,MAAM,kBAAkB,CAAC;AAE1B,UAAU,kBAAkB;IAC1B,IAAI,EAAE,aAAa,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,eAAe,CAAC;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,OAAO,CAAC;IACb,QAAQ,EAAE,aAAa,CAAC;IACxB,cAAc,EAAE,CAAC,GAAG,CAAC,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C,SAAS,EAAE,CAAC,IAAI,EAAE,aAAa,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,QAAQ,EAAE,CAAC,IAAI,EAAE,aAAa,KAAK,IAAI,CAAC;CACzC;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAkOtD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function GanttGripDot({ left, top, color, shown, edge, ...ring }: {
|
|
2
|
+
left: number;
|
|
3
|
+
top: number;
|
|
4
|
+
color: string;
|
|
5
|
+
shown: boolean;
|
|
6
|
+
edge: string;
|
|
7
|
+
[ring: string]: unknown;
|
|
8
|
+
}): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=GanttGripDot.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GanttGripDot.d.ts","sourceRoot":"","sources":["../../src/views/GanttGripDot.tsx"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,EAC3B,IAAI,EACJ,GAAG,EACH,KAAK,EACL,KAAK,EACL,IAAI,EACJ,GAAG,IAAI,EACR,EAAE;IACD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACzB,+BAkBA"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export declare const EVENT_BAR_PX = 3;
|
|
2
|
+
export declare const EVENT_GRIP_DOT_PX = 10;
|
|
3
|
+
export type EventState = "rest" | "selected" | "ghost";
|
|
4
|
+
export interface EventTint {
|
|
5
|
+
rest: number;
|
|
6
|
+
selected: number;
|
|
7
|
+
ghost: number;
|
|
8
|
+
}
|
|
9
|
+
/** Light blends the event colour over the canvas; dark falls back to these only for a colour with no ramp. */
|
|
10
|
+
export declare const eventTints: Record<"light" | "dark", EventTint>;
|
|
11
|
+
/**
|
|
12
|
+
* Dark paints from the hue's own ramp so a yellow stays gold, not olive over
|
|
13
|
+
* a blue canvas. Rest at step 6 is the first step that clears 1.5:1 on the
|
|
14
|
+
* canvas and the weekend band in every hue; selected is step 7. A proposed
|
|
15
|
+
* bar is the rest step at 60% over the canvas, so it stays the same hue,
|
|
16
|
+
* fainter, and still clears 1.2:1 on the canvas.
|
|
17
|
+
*/
|
|
18
|
+
export declare const eventRampSteps: Record<Exclude<EventState, "ghost">, number>;
|
|
19
|
+
export declare const EVENT_GHOST_DARK = 0.6;
|
|
20
|
+
/** Step 11 is the lowest that clears 3:1 on every dark bar; light selected fills ease off until it does. */
|
|
21
|
+
export declare const EVENT_STRIP_STEP = 11;
|
|
22
|
+
export declare const EVENT_STRIP_FLOOR = 3;
|
|
23
|
+
export declare function eventTintFor(themeName: string | undefined | null): EventTint;
|
|
24
|
+
export declare function useEventTint(): EventTint;
|
|
25
|
+
export declare function useEventDark(): boolean;
|
|
26
|
+
export type EventThemeValues = Record<string, {
|
|
27
|
+
val?: unknown;
|
|
28
|
+
} | undefined>;
|
|
29
|
+
export declare function themeValue(theme: EventThemeValues, color: string): string | undefined;
|
|
30
|
+
/** `fill` at `alpha` over the opaque `surface`, as hex; null when either fails to parse. */
|
|
31
|
+
export declare function blendOver(fill: string, surface: string, alpha: number): string | null;
|
|
32
|
+
export declare function eventRamp(theme: EventThemeValues, fill: string, dark: boolean): ((step: number) => string | undefined) | null;
|
|
33
|
+
export declare function eventPaint(theme: EventThemeValues, fill: string, state: EventState, { dark, surface }: {
|
|
34
|
+
dark: boolean;
|
|
35
|
+
surface?: string;
|
|
36
|
+
}): string | null;
|
|
37
|
+
/** A light rest paint never stands closer to the canvas than a proposed bar must (1.2:1). */
|
|
38
|
+
export declare const EVENT_REST_STANDOFF = 1.2;
|
|
39
|
+
export interface EventSolid {
|
|
40
|
+
paint: string;
|
|
41
|
+
ink: string;
|
|
42
|
+
}
|
|
43
|
+
export declare const EVENT_SOLID_SELECTED = 0.1;
|
|
44
|
+
/**
|
|
45
|
+
* A light Gantt bar is a solid in its own colour, as LC-172 holds an accent
|
|
46
|
+
* solid. The label is whichever of `color-1` and the hue's step 12 reads
|
|
47
|
+
* harder on that colour (APCA), so blue, green and red carry near-white and
|
|
48
|
+
* yellow keeps its dark ink. Where that label misses WCAG 4.5:1 or APCA Lc 60
|
|
49
|
+
* the fill mixes toward the opposite anchor in 5% steps until it holds.
|
|
50
|
+
* Selected mixes a further 10% toward `color-12`, or toward `color-1` where
|
|
51
|
+
* darker would lose the label.
|
|
52
|
+
*/
|
|
53
|
+
export declare function eventSolid(theme: EventThemeValues, fill: string, state: Exclude<EventState, "ghost">): EventSolid | null;
|
|
54
|
+
/** One strip colour per bar, held across rest and selected. */
|
|
55
|
+
export declare function eventStripPaint(theme: EventThemeValues, fill: string, { dark, surface }: {
|
|
56
|
+
dark: boolean;
|
|
57
|
+
surface?: string;
|
|
58
|
+
}): string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Ink for text on event paint (Calendar events, Gantt bars): `preferred`
|
|
61
|
+
* while it clears AA on every ground the text crosses, otherwise the readable
|
|
62
|
+
* anchor held to the floor. The token comes back untouched when it passes.
|
|
63
|
+
*/
|
|
64
|
+
export declare function eventInk(theme: EventThemeValues, grounds: readonly (string | null | undefined)[], preferred?: string): string;
|
|
65
|
+
/**
|
|
66
|
+
* Ink is the hue's own step 12 in both schemes. Secondary text (times, a
|
|
67
|
+
* proposed bar's label) takes the tone nearest step 11 on the 11-to-12 line
|
|
68
|
+
* that still clears AA on every ground, so it stays dimmer than the title even
|
|
69
|
+
* where step 11 itself fails.
|
|
70
|
+
*/
|
|
71
|
+
export declare function eventLabelInk(theme: EventThemeValues, fill: string, grounds: readonly (string | null | undefined)[], dark: boolean, tone?: "primary" | "secondary"): string;
|
|
72
|
+
//# sourceMappingURL=eventTint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eventTint.d.ts","sourceRoot":"","sources":["../../src/views/eventTint.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;AAEvD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8GAA8G;AAC9G,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,OAAO,GAAG,MAAM,EAAE,SAAS,CAG1D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,OAAO,CAAC,UAAU,EAAE,OAAO,CAAC,EAAE,MAAM,CAGvE,CAAC;AACF,eAAO,MAAM,gBAAgB,MAAM,CAAC;AACpC,4GAA4G;AAC5G,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,iBAAiB,IAAI,CAAC;AAKnC,wBAAgB,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,SAAS,CAE5E;AAED,wBAAgB,YAAY,IAAI,SAAS,CAExC;AAED,wBAAgB,YAAY,IAAI,OAAO,CAEtC;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,GAAG,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,SAAS,CAAC,CAAC;AAE7E,wBAAgB,UAAU,CAAC,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKrF;AA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