@multiplatform.one/components 7.47.2 → 7.47.4
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/Avatar/index.cjs +4 -0
- package/dist/cjs/Avatar/index.native.js +4 -0
- package/dist/cjs/Avatar/index.native.js.map +1 -1
- package/dist/cjs/Badge/index.cjs +6 -1
- package/dist/cjs/Badge/index.native.js +8 -1
- package/dist/cjs/Badge/index.native.js.map +1 -1
- package/dist/esm/Avatar/index.mjs +6 -2
- package/dist/esm/Avatar/index.mjs.map +1 -1
- package/dist/esm/Avatar/index.native.js +6 -2
- package/dist/esm/Avatar/index.native.js.map +1 -1
- package/dist/esm/Badge/index.mjs +6 -1
- package/dist/esm/Badge/index.mjs.map +1 -1
- package/dist/esm/Badge/index.native.js +8 -1
- package/dist/esm/Badge/index.native.js.map +1 -1
- package/dist/jsx/Avatar/index.mjs +6 -2
- package/dist/jsx/Avatar/index.mjs.map +1 -1
- package/dist/jsx/Avatar/index.native.js +4 -0
- package/dist/jsx/Avatar/index.native.js.map +1 -1
- package/dist/jsx/Badge/index.mjs +6 -1
- package/dist/jsx/Badge/index.mjs.map +1 -1
- package/dist/jsx/Badge/index.native.js +8 -1
- package/dist/jsx/Badge/index.native.js.map +1 -1
- package/package.json +9 -9
- package/src/Avatar/Avatar.dynamicType.native.spec.tsx +77 -0
- package/src/Avatar/index.tsx +11 -2
- package/src/Badge/Badge.dynamicType.native.spec.tsx +78 -0
- package/src/Badge/Badge.spec.tsx +4 -2
- package/src/Badge/index.tsx +9 -2
- package/src/Heading.dynamicType.native.spec.tsx +105 -0
- package/src/Heading.stories.tsx +11 -0
- package/src/pressRelease.native-press.spec.tsx +189 -0
- package/types/Avatar/index.d.ts.map +1 -1
- package/types/Badge/index.d.ts.map +1 -1
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LC-158 DYNAMIC-TYPE-FIT, headings on native. Each heading is recorded as
|
|
3
|
+
* tamagui's H1..H6 receive it and painted at fontScale 3 the way React Native
|
|
4
|
+
* paints a text node (`effectiveFontScale`). The word width is an estimate
|
|
5
|
+
* (0.65 em per bold Inter letter, wider than "Manage" measures); the
|
|
6
|
+
* simulator shots on FZ-7838 are the device evidence.
|
|
7
|
+
*/
|
|
8
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
9
|
+
import { Preset, dynamicTypeFit, effectiveFontScale } from "@multiplatform.one/theme";
|
|
10
|
+
import { cleanup } from "@testing-library/react";
|
|
11
|
+
import type { ReactElement } from "react";
|
|
12
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
13
|
+
import { getFontSize, type FontSizeTokens } from "tamagui";
|
|
14
|
+
import { H1, H2, H3, H4, H5, H6 } from "./Heading";
|
|
15
|
+
|
|
16
|
+
vi.mock("@multiplatform.one/platform", async (importOriginal) => ({
|
|
17
|
+
...(await importOriginal<typeof import("@multiplatform.one/platform")>()),
|
|
18
|
+
isWeb: false,
|
|
19
|
+
isNative: true,
|
|
20
|
+
}));
|
|
21
|
+
|
|
22
|
+
const recorded = vi.hoisted(() => [] as Record<string, unknown>[]);
|
|
23
|
+
|
|
24
|
+
vi.mock("tamagui", async (importOriginal) => {
|
|
25
|
+
const actual = await importOriginal<typeof import("tamagui")>();
|
|
26
|
+
const { createElement, forwardRef } = await import("react");
|
|
27
|
+
const record = (Raw: unknown, defaultSize: string) =>
|
|
28
|
+
forwardRef<unknown, Record<string, unknown>>((props, ref) => {
|
|
29
|
+
recorded.push({ defaultSize, ...props });
|
|
30
|
+
return createElement(Raw as never, { ...props, ref });
|
|
31
|
+
});
|
|
32
|
+
return {
|
|
33
|
+
...actual,
|
|
34
|
+
H1: record(actual.H1, "$10"),
|
|
35
|
+
H2: record(actual.H2, "$9"),
|
|
36
|
+
H3: record(actual.H3, "$8"),
|
|
37
|
+
H4: record(actual.H4, "$7"),
|
|
38
|
+
H5: record(actual.H5, "$6"),
|
|
39
|
+
H6: record(actual.H6, "$5"),
|
|
40
|
+
};
|
|
41
|
+
});
|
|
42
|
+
|
|
43
|
+
afterEach(() => {
|
|
44
|
+
cleanup();
|
|
45
|
+
recorded.length = 0;
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
const FONT_SCALE = 3;
|
|
49
|
+
/** A 390 pt phone less the 16 pt page gutter each side. */
|
|
50
|
+
const LINE_PT = 390 - 2 * 16;
|
|
51
|
+
const BOLD_EM_PER_LETTER = 0.65;
|
|
52
|
+
|
|
53
|
+
function paint(node: ReactElement) {
|
|
54
|
+
renderWithProviders(node);
|
|
55
|
+
const props = recorded.at(-1)!;
|
|
56
|
+
const size = (props.fontSize ?? props.size ?? props.defaultSize) as FontSizeTokens | number;
|
|
57
|
+
const fontPx = typeof size === "number" ? size : getFontSize(size, { font: "$heading" as never });
|
|
58
|
+
const cap = props.maxFontSizeMultiplier as number | undefined;
|
|
59
|
+
cleanup();
|
|
60
|
+
return { props, fontPx, cap, paintedPx: fontPx * effectiveFontScale(FONT_SCALE, cap) };
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
describe("headings under Dynamic Type (LC-158)", () => {
|
|
64
|
+
it("at fontScale 3 an H1 of one 6-letter word fits one line of a 390 pt phone", () => {
|
|
65
|
+
const { paintedPx } = paint(<H1>Manage</H1>);
|
|
66
|
+
expect("Manage".length * BOLD_EM_PER_LETTER * paintedPx).toBeLessThanOrEqual(LINE_PT);
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
it.each(["moderate", "display"] as const)(
|
|
70
|
+
"a %s page title grows on the large-title curve: capped at titleMaxScale",
|
|
71
|
+
(pageTitleScale) => {
|
|
72
|
+
const { cap } = paint(
|
|
73
|
+
<Preset overrides={{ pageTitleScale }}>
|
|
74
|
+
<H1>Manage</H1>
|
|
75
|
+
</Preset>,
|
|
76
|
+
);
|
|
77
|
+
expect(cap).toBe(dynamicTypeFit.titleMaxScale);
|
|
78
|
+
},
|
|
79
|
+
);
|
|
80
|
+
|
|
81
|
+
it("smaller headings grow until they meet the capped title, never past it", () => {
|
|
82
|
+
const title = paint(<H1>Title</H1>).paintedPx;
|
|
83
|
+
const ladder = [H2, H3, H4, H5, H6].map((H) => paint(<H>Title</H>));
|
|
84
|
+
for (const step of ladder) {
|
|
85
|
+
expect(step.cap).toBeGreaterThanOrEqual(1);
|
|
86
|
+
expect(step.paintedPx).toBeLessThanOrEqual(title + 0.5);
|
|
87
|
+
}
|
|
88
|
+
const painted = [title, ...ladder.map((s) => s.paintedPx)];
|
|
89
|
+
for (let i = 1; i < painted.length; i++) {
|
|
90
|
+
expect(painted[i]).toBeLessThanOrEqual(painted[i - 1]! + 0.5);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
it("wraps with iOS's standard line breaking and no line clamp", () => {
|
|
95
|
+
for (const H of [H1, H2, H3]) {
|
|
96
|
+
const { props } = paint(<H>Workspace Settings</H>);
|
|
97
|
+
expect(props.lineBreakStrategyIOS).toBe("standard");
|
|
98
|
+
expect(props.numberOfLines).toBeUndefined();
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it("a use site's own cap wins", () => {
|
|
103
|
+
expect(paint(<H1 maxFontSizeMultiplier={1}>Manage</H1>).cap).toBe(1);
|
|
104
|
+
});
|
|
105
|
+
});
|
package/src/Heading.stories.tsx
CHANGED
|
@@ -42,6 +42,17 @@ export const TitleLadder: Story = {
|
|
|
42
42
|
),
|
|
43
43
|
};
|
|
44
44
|
|
|
45
|
+
export const OneWordTitle: Story = {
|
|
46
|
+
name: "One-word page title (LC-158)",
|
|
47
|
+
render: () => (
|
|
48
|
+
<YStack gap="$3">
|
|
49
|
+
<H1>Manage</H1>
|
|
50
|
+
<H2>Settings</H2>
|
|
51
|
+
<H3>Updates</H3>
|
|
52
|
+
</YStack>
|
|
53
|
+
),
|
|
54
|
+
};
|
|
55
|
+
|
|
45
56
|
export const PageTitleScaleFlip: Story = {
|
|
46
57
|
name: "pageTitleScale flip (moderate vs display)",
|
|
47
58
|
render: () => (
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FZ-7858 / FZ-7859, under tamagui's NATIVE build (vitest.native.config.mjs)
|
|
3
|
+
* with the React Native animation driver every MPO app runs on a phone.
|
|
4
|
+
*
|
|
5
|
+
* A press ends the platform way on every MPO pressable: a finger that slides
|
|
6
|
+
* past the press rect (the element's box plus hitSlop plus the retention
|
|
7
|
+
* offset) clears the pressed look and a lift there does not press; sliding
|
|
8
|
+
* back in presses again; a scroll or any other responder terminate clears it.
|
|
9
|
+
* Both halves live in tamagui (patches/@tamagui__web@2.7.6.patch and
|
|
10
|
+
* patches/@tamagui__animations-react-native@2.7.6.patch); this spec pins them
|
|
11
|
+
* on the MPO components, so a tamagui upgrade that drops either fails here.
|
|
12
|
+
*/
|
|
13
|
+
import { cleanup, fireEvent, screen } from "@testing-library/react";
|
|
14
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
15
|
+
import { nativeAnimationConfig } from "@multiplatform.one/theme";
|
|
16
|
+
import { createAnimations } from "@tamagui/animations-react-native";
|
|
17
|
+
import { configWithoutAnimations } from "@tamagui/config";
|
|
18
|
+
import type { ReactElement, ReactNode } from "react";
|
|
19
|
+
import { TamaguiProvider, Text, createTamagui, isWeb } from "tamagui";
|
|
20
|
+
import { afterAll, afterEach, beforeAll, describe, expect, it, vi } from "vitest";
|
|
21
|
+
import { Accordion } from "./Accordion";
|
|
22
|
+
import { Button } from "./Button";
|
|
23
|
+
import { Chip } from "./Chip";
|
|
24
|
+
import { ListItem } from "./tamagui";
|
|
25
|
+
|
|
26
|
+
const nativeConfig = createTamagui({
|
|
27
|
+
...configWithoutAnimations,
|
|
28
|
+
animations: createAnimations(nativeAnimationConfig),
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
function Native({ children }: { children: ReactNode }) {
|
|
32
|
+
return (
|
|
33
|
+
<TamaguiProvider config={nativeConfig} defaultTheme="light" disableInjectCSS>
|
|
34
|
+
{children}
|
|
35
|
+
</TamaguiProvider>
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const mount = (ui: ReactElement) => renderWithProviders(<Native>{ui}</Native>, { tamagui: false });
|
|
40
|
+
|
|
41
|
+
// Every pressable measures 200x40 at the page origin; the retention region is
|
|
42
|
+
// that box plus 20 on the sides and top and 30 below (React Native's default).
|
|
43
|
+
const box = { x: 0, y: 0, left: 0, top: 0, width: 200, height: 40, right: 200, bottom: 40 };
|
|
44
|
+
const inside = { x: 100, y: 20 };
|
|
45
|
+
const beside = { x: 300, y: 20 };
|
|
46
|
+
|
|
47
|
+
const realRect = HTMLElement.prototype.getBoundingClientRect;
|
|
48
|
+
beforeAll(() => {
|
|
49
|
+
HTMLElement.prototype.getBoundingClientRect = () => ({ ...box, toJSON: () => box }) as DOMRect;
|
|
50
|
+
});
|
|
51
|
+
afterAll(() => {
|
|
52
|
+
HTMLElement.prototype.getBoundingClientRect = realRect;
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const settle = () => new Promise((done) => setTimeout(done, 450));
|
|
56
|
+
type Point = { x: number; y: number };
|
|
57
|
+
|
|
58
|
+
// The responder reads the touch's page position; happy-dom's MouseEvent drops
|
|
59
|
+
// pageX/pageY from its init, so they are set on the event itself.
|
|
60
|
+
function pointer(el: Element, type: string, point: Point, buttons: number) {
|
|
61
|
+
const event = new MouseEvent(type, {
|
|
62
|
+
bubbles: true,
|
|
63
|
+
cancelable: true,
|
|
64
|
+
button: 0,
|
|
65
|
+
buttons,
|
|
66
|
+
clientX: point.x,
|
|
67
|
+
clientY: point.y,
|
|
68
|
+
});
|
|
69
|
+
Object.defineProperty(event, "pageX", { value: point.x });
|
|
70
|
+
Object.defineProperty(event, "pageY", { value: point.y });
|
|
71
|
+
fireEvent(el, event);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
afterEach(() => {
|
|
75
|
+
// a failed step can leave the finger down; lift it so the next case starts clean
|
|
76
|
+
pointer(document.body, "mouseup", beside, 0);
|
|
77
|
+
cleanup();
|
|
78
|
+
});
|
|
79
|
+
const press = (el: Element) => pointer(el, "mousedown", inside, 1);
|
|
80
|
+
const slide = (el: Element, point: Point) => pointer(el, "mousemove", point, 1);
|
|
81
|
+
const lift = (el: Element, point: Point) => pointer(el, "mouseup", point, 0);
|
|
82
|
+
const terminate = (el: Element) => fireEvent.dragStart(el);
|
|
83
|
+
|
|
84
|
+
// The fills of the label and its nearest ancestors: whichever of them carries
|
|
85
|
+
// the pressStyle, a pressed element reads differently from its rest.
|
|
86
|
+
function look(label: Element) {
|
|
87
|
+
const fills: string[] = [];
|
|
88
|
+
let node = label as HTMLElement | null;
|
|
89
|
+
for (let depth = 0; depth < 5 && node; depth++) {
|
|
90
|
+
fills.push(node.style?.backgroundColor ?? "");
|
|
91
|
+
node = node.parentElement;
|
|
92
|
+
}
|
|
93
|
+
return fills.join("|");
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
interface Case {
|
|
97
|
+
name: string;
|
|
98
|
+
render: (onPress: () => void) => ReactElement;
|
|
99
|
+
label: string;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const accordion = (variant: "card" | "plain", open: boolean) => (onPress: () => void) => (
|
|
103
|
+
<Accordion variant={variant} type="multiple" defaultValue={open ? ["a"] : []}>
|
|
104
|
+
<Accordion.Item value="a">
|
|
105
|
+
<Accordion.Trigger onPress={onPress}>Section A</Accordion.Trigger>
|
|
106
|
+
<Accordion.Content>
|
|
107
|
+
<Text>Content A</Text>
|
|
108
|
+
</Accordion.Content>
|
|
109
|
+
</Accordion.Item>
|
|
110
|
+
</Accordion>
|
|
111
|
+
);
|
|
112
|
+
|
|
113
|
+
const pressables: Case[] = [
|
|
114
|
+
{
|
|
115
|
+
name: "an Accordion card trigger (closed)",
|
|
116
|
+
render: accordion("card", false),
|
|
117
|
+
label: "Section A",
|
|
118
|
+
},
|
|
119
|
+
{ name: "an Accordion card trigger (open)", render: accordion("card", true), label: "Section A" },
|
|
120
|
+
{ name: "an Accordion plain trigger", render: accordion("plain", false), label: "Section A" },
|
|
121
|
+
{
|
|
122
|
+
name: "a ListItem row",
|
|
123
|
+
render: (onPress) => <ListItem onPress={onPress} title="Row A" />,
|
|
124
|
+
label: "Row A",
|
|
125
|
+
},
|
|
126
|
+
{ name: "a Button", render: (onPress) => <Button onPress={onPress}>Hold</Button>, label: "Hold" },
|
|
127
|
+
{ name: "a Chip", render: (onPress) => <Chip onPress={onPress}>Tag</Chip>, label: "Tag" },
|
|
128
|
+
];
|
|
129
|
+
|
|
130
|
+
describe("the native harness", () => {
|
|
131
|
+
it("runs tamagui's native build", () => {
|
|
132
|
+
expect(isWeb).toBe(false);
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
describe.each(pressables)("$name on native", ({ render, label: text }) => {
|
|
137
|
+
async function pressed() {
|
|
138
|
+
const onPress = vi.fn();
|
|
139
|
+
mount(render(onPress));
|
|
140
|
+
const label = screen.getByText(text);
|
|
141
|
+
await settle();
|
|
142
|
+
const rest = look(label);
|
|
143
|
+
press(label);
|
|
144
|
+
await settle();
|
|
145
|
+
const down = look(label);
|
|
146
|
+
expect(down).not.toBe(rest);
|
|
147
|
+
return { label, onPress, rest, down };
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
it("clears the pressed look when the finger slides off, and a lift there does not press", async () => {
|
|
151
|
+
const { label, onPress, rest } = await pressed();
|
|
152
|
+
slide(label, beside);
|
|
153
|
+
await settle();
|
|
154
|
+
expect(look(label)).toBe(rest);
|
|
155
|
+
lift(label, beside);
|
|
156
|
+
await settle();
|
|
157
|
+
expect(onPress).not.toHaveBeenCalled();
|
|
158
|
+
expect(look(label)).toBe(rest);
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
it("presses again when the finger slides back in, and a lift there presses", async () => {
|
|
162
|
+
const { label, onPress, rest, down } = await pressed();
|
|
163
|
+
slide(label, beside);
|
|
164
|
+
await settle();
|
|
165
|
+
expect(look(label)).toBe(rest);
|
|
166
|
+
slide(label, inside);
|
|
167
|
+
await settle();
|
|
168
|
+
expect(look(label)).toBe(down);
|
|
169
|
+
lift(label, inside);
|
|
170
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
it("keeps the press while the finger stays inside the retention offset", async () => {
|
|
174
|
+
const { label, onPress, down } = await pressed();
|
|
175
|
+
slide(label, { x: 215, y: 20 });
|
|
176
|
+
await settle();
|
|
177
|
+
expect(look(label)).toBe(down);
|
|
178
|
+
lift(label, { x: 215, y: 20 });
|
|
179
|
+
expect(onPress).toHaveBeenCalledTimes(1);
|
|
180
|
+
});
|
|
181
|
+
|
|
182
|
+
it("returns to rest when a scroll or another responder terminates the press", async () => {
|
|
183
|
+
const { label, onPress, rest } = await pressed();
|
|
184
|
+
terminate(label);
|
|
185
|
+
await settle();
|
|
186
|
+
expect(look(label)).toBe(rest);
|
|
187
|
+
expect(onPress).not.toHaveBeenCalled();
|
|
188
|
+
});
|
|
189
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Avatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Avatar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAuD,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAkB5F,OAAO,KAAK,EAAkB,QAAQ,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EACL,MAAM,IAAI,aAAa,EAQxB,MAAM,SAAS,CAAC;AAKjB,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC7F,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAIlD,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