@multiplatform.one/table 7.85.1 → 7.87.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/cjs/components/DataTable/DataTableMobileCards.cjs +46 -2
- package/dist/cjs/components/DataTable/DataTableMobileCards.native.js +52 -2
- package/dist/cjs/components/DataTable/DataTableMobileCards.native.js.map +1 -1
- package/dist/cjs/components/DataTable/rowSlotParts.cjs +47 -0
- package/dist/cjs/components/DataTable/rowSlotParts.native.js +48 -0
- package/dist/cjs/components/DataTable/rowSlotParts.native.js.map +1 -1
- package/dist/cjs/components/DataTable/rowSlots.native.js.map +1 -1
- package/dist/esm/components/DataTable/DataTableMobileCards.mjs +48 -4
- package/dist/esm/components/DataTable/DataTableMobileCards.mjs.map +1 -1
- package/dist/esm/components/DataTable/DataTableMobileCards.native.js +54 -4
- package/dist/esm/components/DataTable/DataTableMobileCards.native.js.map +1 -1
- package/dist/esm/components/DataTable/rowSlotParts.mjs +49 -3
- package/dist/esm/components/DataTable/rowSlotParts.mjs.map +1 -1
- package/dist/esm/components/DataTable/rowSlotParts.native.js +50 -3
- package/dist/esm/components/DataTable/rowSlotParts.native.js.map +1 -1
- package/dist/esm/components/DataTable/rowSlots.mjs.map +1 -1
- package/dist/esm/components/DataTable/rowSlots.native.js.map +1 -1
- package/dist/jsx/components/DataTable/DataTableMobileCards.mjs +48 -4
- package/dist/jsx/components/DataTable/DataTableMobileCards.mjs.map +1 -1
- package/dist/jsx/components/DataTable/DataTableMobileCards.native.js +52 -2
- package/dist/jsx/components/DataTable/DataTableMobileCards.native.js.map +1 -1
- package/dist/jsx/components/DataTable/rowSlotParts.mjs +49 -3
- package/dist/jsx/components/DataTable/rowSlotParts.mjs.map +1 -1
- package/dist/jsx/components/DataTable/rowSlotParts.native.js +48 -0
- package/dist/jsx/components/DataTable/rowSlotParts.native.js.map +1 -1
- package/dist/jsx/components/DataTable/rowSlots.mjs.map +1 -1
- package/dist/jsx/components/DataTable/rowSlots.native.js.map +1 -1
- package/package.json +12 -12
- package/src/components/DataTable/DataTableMobileCards.tsx +56 -5
- package/src/components/DataTable/dataTableMobileCards.spec.tsx +60 -0
- package/src/components/DataTable/rowSlotParts.tsx +57 -0
- package/src/components/DataTable/rowSlots.ts +2 -1
- package/types/components/DataTable/DataTableMobileCards.d.ts +4 -2
- package/types/components/DataTable/DataTableMobileCards.d.ts.map +1 -1
- package/types/components/DataTable/rowSlotParts.d.ts +11 -0
- package/types/components/DataTable/rowSlotParts.d.ts.map +1 -1
- package/types/components/DataTable/rowSlots.d.ts +2 -1
- package/types/components/DataTable/rowSlots.d.ts.map +1 -1
- package/types/components/KnobDialog.d.ts +8 -9
- package/types/components/KnobDialog.d.ts.map +1 -1
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
* right (LC-155), the key (#n) and the row's actions; line 2 is the one
|
|
13
13
|
* descriptor with the facts, glyph and value, in its trailing slot. No
|
|
14
14
|
* number gets a row of its own, no value is strung to another with a
|
|
15
|
-
* separator
|
|
16
|
-
*
|
|
15
|
+
* separator. A value with no slot (LC-261 overflow) is one tap away: a
|
|
16
|
+
* disclosure chevron on line 1 opens it under the lines as label and value
|
|
17
|
+
* rows, parted by hairlines on the record's own fill, never a card inside
|
|
18
|
+
* the card (LC-169). No rule divides the two lines. Column visibility and order from table state apply
|
|
17
19
|
* unchanged — cells come from `row.getVisibleCells()`. Values render
|
|
18
20
|
* through the same cell renderers as the grid, inside `TableCellContext`
|
|
19
21
|
* so fields stay chromeless (useIsInTableCell).
|
|
@@ -45,7 +47,7 @@ import {
|
|
|
45
47
|
useResolvedKnobs,
|
|
46
48
|
} from "@multiplatform.one/theme";
|
|
47
49
|
import type React from "react";
|
|
48
|
-
import { useCallback } from "react";
|
|
50
|
+
import { useCallback, useState } from "react";
|
|
49
51
|
import { View, VisuallyHidden, XStack, YStack } from "tamagui";
|
|
50
52
|
import { useTranslation } from "react-i18next";
|
|
51
53
|
import {
|
|
@@ -57,7 +59,7 @@ import type { DataTableColumn, DataTableField } from "../../types";
|
|
|
57
59
|
import { withInterp } from "../../utils/withInterp";
|
|
58
60
|
import { rowIntentProps } from "./dataTableChrome";
|
|
59
61
|
import { hasValue, resolveRowSlots } from "./rowSlots";
|
|
60
|
-
import { RowFact, RowStatus } from "./rowSlotParts";
|
|
62
|
+
import { CardDisclosure, RowFact, RowStatus } from "./rowSlotParts";
|
|
61
63
|
|
|
62
64
|
/**
|
|
63
65
|
* Resolve the human label for a column: `meta.label` → string header →
|
|
@@ -254,6 +256,14 @@ export function DataTableMobileCards<TData extends Record<string, any>>({
|
|
|
254
256
|
const { knobProps } = useResolvedKnobs({ component: "DataTable" });
|
|
255
257
|
const onPageLine = usePageGutter() !== null;
|
|
256
258
|
const { caption: captionRole } = knobProps.textRole;
|
|
259
|
+
const [openRows, setOpenRows] = useState<ReadonlySet<string>>(() => new Set());
|
|
260
|
+
const toggleOverflow = useCallback((rowId: string) => {
|
|
261
|
+
setOpenRows((current) => {
|
|
262
|
+
const next = new Set(current);
|
|
263
|
+
if (!next.delete(rowId)) next.add(rowId);
|
|
264
|
+
return next;
|
|
265
|
+
});
|
|
266
|
+
}, []);
|
|
257
267
|
|
|
258
268
|
const renderCell = useCallback(
|
|
259
269
|
(cell: any, index: number, rowData: TData, context: TableCellContextValue = plainCell) => (
|
|
@@ -284,6 +294,8 @@ export function DataTableMobileCards<TData extends Record<string, any>>({
|
|
|
284
294
|
const subtitle = hasValue(slots.subtitle) ? slots.subtitle : undefined;
|
|
285
295
|
const facts = slots.facts.filter(hasValue);
|
|
286
296
|
const stamp = hasValue(slots.stamp) ? slots.stamp : undefined;
|
|
297
|
+
const overflow = slots.overflow.filter(hasValue);
|
|
298
|
+
const overflowOpen = overflow.length > 0 && openRows.has(row.id);
|
|
287
299
|
const restFill = knobProps.cardSurface.backgroundColor;
|
|
288
300
|
const pressProps = getRowPressProps?.(row, index, "card") ?? {};
|
|
289
301
|
const corners = stackRadiusProps(
|
|
@@ -413,12 +425,27 @@ export function DataTableMobileCards<TData extends Record<string, any>>({
|
|
|
413
425
|
})}
|
|
414
426
|
/>
|
|
415
427
|
)}
|
|
428
|
+
{overflow.length > 0 && (
|
|
429
|
+
<CardDisclosure
|
|
430
|
+
open={overflowOpen}
|
|
431
|
+
onToggle={() => toggleOverflow(row.id)}
|
|
432
|
+
label={
|
|
433
|
+
overflowOpen
|
|
434
|
+
? withInterp(t("Hide {{count}} more values", { count: overflow.length }), {
|
|
435
|
+
count: overflow.length,
|
|
436
|
+
})
|
|
437
|
+
: withInterp(t("Show {{count}} more values", { count: overflow.length }), {
|
|
438
|
+
count: overflow.length,
|
|
439
|
+
})
|
|
440
|
+
}
|
|
441
|
+
/>
|
|
442
|
+
)}
|
|
416
443
|
</XStack>
|
|
417
444
|
|
|
418
445
|
{/* Line 2 (LC-261): the descriptor, then the facts as glyph
|
|
419
446
|
and value in the trailing slot. Separate elements, never
|
|
420
447
|
one string joined by dots, and never a row of numbers of
|
|
421
|
-
their own; a value with no slot
|
|
448
|
+
their own; a value with no slot opens under the lines. */}
|
|
422
449
|
{subtitle || facts.length > 0 ? (
|
|
423
450
|
<XStack
|
|
424
451
|
alignItems="center"
|
|
@@ -450,6 +477,28 @@ export function DataTableMobileCards<TData extends Record<string, any>>({
|
|
|
450
477
|
</XStack>
|
|
451
478
|
) : null}
|
|
452
479
|
|
|
480
|
+
{overflowOpen
|
|
481
|
+
? overflow.map((cell: any) => (
|
|
482
|
+
<XStack
|
|
483
|
+
key={cell.id}
|
|
484
|
+
alignItems="center"
|
|
485
|
+
gap="$3"
|
|
486
|
+
minWidth={0}
|
|
487
|
+
paddingVertical="$2"
|
|
488
|
+
{...hairline.top}
|
|
489
|
+
borderColor="$borderColor"
|
|
490
|
+
{...({ "data-card-slot": "overflow" } as any)}
|
|
491
|
+
>
|
|
492
|
+
<Text {...captionRole} flex={1} minWidth={0} numberOfLines={1}>
|
|
493
|
+
{getColumnLabel(cell)}
|
|
494
|
+
</Text>
|
|
495
|
+
<View flexShrink={1} minWidth={0} alignItems="flex-end">
|
|
496
|
+
{renderCell(cell, index, rowData, metaCell)}
|
|
497
|
+
</View>
|
|
498
|
+
</XStack>
|
|
499
|
+
))
|
|
500
|
+
: null}
|
|
501
|
+
|
|
453
502
|
{/* Controls keep a row of their own — they are tap targets. */}
|
|
454
503
|
{controls.map((cell: any) => (
|
|
455
504
|
<View
|
|
@@ -483,6 +532,8 @@ export function DataTableMobileCards<TData extends Record<string, any>>({
|
|
|
483
532
|
t,
|
|
484
533
|
selectRowLabel,
|
|
485
534
|
getRowPressProps,
|
|
535
|
+
openRows,
|
|
536
|
+
toggleOverflow,
|
|
486
537
|
],
|
|
487
538
|
);
|
|
488
539
|
|
|
@@ -358,3 +358,63 @@ describe("DataTableMobileCards", () => {
|
|
|
358
358
|
});
|
|
359
359
|
});
|
|
360
360
|
});
|
|
361
|
+
|
|
362
|
+
type Month = { month: string; cash: number; nw: number; worst: string; delta: number };
|
|
363
|
+
|
|
364
|
+
const months: Month[] = [
|
|
365
|
+
{ month: "January", cash: 120, nw: 777, worst: "Rent", delta: 88 },
|
|
366
|
+
{ month: "February", cash: 130, nw: 666, worst: "Food", delta: 55 },
|
|
367
|
+
];
|
|
368
|
+
|
|
369
|
+
const monthColumns: DataTableColumn<Month>[] = [
|
|
370
|
+
{ accessorKey: "month", header: "Month" },
|
|
371
|
+
{ accessorKey: "cash", header: "Cash" },
|
|
372
|
+
{ accessorKey: "nw", header: "Net worth" },
|
|
373
|
+
{ accessorKey: "worst", header: "Worst" },
|
|
374
|
+
{ accessorKey: "delta", header: "Delta", align: "right" },
|
|
375
|
+
];
|
|
376
|
+
|
|
377
|
+
describe("DataTableMobileCards overflow (FZ-9222)", () => {
|
|
378
|
+
function renderMonths(props: Record<string, any> = {}) {
|
|
379
|
+
return renderWithProviders(
|
|
380
|
+
<DataTable
|
|
381
|
+
data={months}
|
|
382
|
+
columns={monthColumns}
|
|
383
|
+
layout="cards"
|
|
384
|
+
onStateChange={vi.fn()}
|
|
385
|
+
{...props}
|
|
386
|
+
/>,
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
it("reaches every value with no slot through the card's disclosure", () => {
|
|
391
|
+
const { container } = renderMonths();
|
|
392
|
+
const first = cards(container)[0] as HTMLElement;
|
|
393
|
+
expect(within(first).queryByText("777")).toBeNull();
|
|
394
|
+
const toggle = within(first).getByRole("button", { name: /show 2 more values/i });
|
|
395
|
+
expect(toggle.getAttribute("aria-expanded")).toBe("false");
|
|
396
|
+
fireEvent.click(toggle);
|
|
397
|
+
expect(toggle.getAttribute("aria-expanded")).toBe("true");
|
|
398
|
+
const rows = Array.from(first.querySelectorAll('[data-card-slot="overflow"]'));
|
|
399
|
+
expect(rows.map((row) => row.textContent)).toEqual(["Net worth777", "Delta88"]);
|
|
400
|
+
expect(cards(container)[1]?.querySelector('[data-card-slot="overflow"]')).toBeNull();
|
|
401
|
+
fireEvent.click(toggle);
|
|
402
|
+
expect(first.querySelector('[data-card-slot="overflow"]')).toBeNull();
|
|
403
|
+
});
|
|
404
|
+
|
|
405
|
+
it("gives a card with no overflow no disclosure", () => {
|
|
406
|
+
const { container } = renderCards();
|
|
407
|
+
for (const card of cards(container)) {
|
|
408
|
+
expect(within(card).queryByRole("button", { name: /more values/i })).toBeNull();
|
|
409
|
+
}
|
|
410
|
+
});
|
|
411
|
+
|
|
412
|
+
it("opens the disclosure without pressing the row", () => {
|
|
413
|
+
const onRowPress = vi.fn();
|
|
414
|
+
const { container } = renderMonths({ onRowPress });
|
|
415
|
+
const first = cards(container)[0] as HTMLElement;
|
|
416
|
+
fireEvent.click(within(first).getByRole("button", { name: /show 2 more values/i }));
|
|
417
|
+
expect(onRowPress).not.toHaveBeenCalled();
|
|
418
|
+
expect(first.querySelectorAll('[data-card-slot="overflow"]').length).toBe(2);
|
|
419
|
+
});
|
|
420
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CalendarBlankIcon,
|
|
3
|
+
CaretDownIcon,
|
|
4
|
+
CaretUpIcon,
|
|
3
5
|
CheckCircleIcon,
|
|
4
6
|
CircleIcon,
|
|
5
7
|
CurrencyCircleDollarIcon,
|
|
@@ -9,6 +11,7 @@ import {
|
|
|
9
11
|
import { StatusDot, type StatusTone } from "@multiplatform.one/components";
|
|
10
12
|
import {
|
|
11
13
|
IconSlot,
|
|
14
|
+
MIN_PRESS_TARGET,
|
|
12
15
|
recipeKeyBelow,
|
|
13
16
|
sizeRecipeForToken,
|
|
14
17
|
useAccentOnSurface,
|
|
@@ -182,3 +185,57 @@ export function RowSelectMark({
|
|
|
182
185
|
</View>
|
|
183
186
|
);
|
|
184
187
|
}
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* A card's disclosure for its overflow values (LC-261 amendment, FZ-9222):
|
|
191
|
+
* a chevron at the fact glyph's size in the meta ink, as iOS draws a row's
|
|
192
|
+
* disclosure, not a bar glyph. The press target is 44pt on every side,
|
|
193
|
+
* pulled in by negative margins so line 1 keeps its height.
|
|
194
|
+
*/
|
|
195
|
+
export function CardDisclosure({
|
|
196
|
+
open,
|
|
197
|
+
label,
|
|
198
|
+
onToggle,
|
|
199
|
+
}: {
|
|
200
|
+
open: boolean;
|
|
201
|
+
label: string;
|
|
202
|
+
onToggle: () => void;
|
|
203
|
+
}) {
|
|
204
|
+
const { knobProps } = useResolvedKnobs({ component: "DataTable" });
|
|
205
|
+
const iconSize = sizeRecipeForToken(
|
|
206
|
+
recipeKeyBelow(knobProps.sizeToken as SizeRecipeToken),
|
|
207
|
+
).iconSize;
|
|
208
|
+
const outset = -Math.max(0, Math.ceil((MIN_PRESS_TARGET - iconSize) / 2));
|
|
209
|
+
return (
|
|
210
|
+
<View
|
|
211
|
+
role="button"
|
|
212
|
+
tabIndex={0}
|
|
213
|
+
aria-expanded={open}
|
|
214
|
+
aria-label={label}
|
|
215
|
+
accessibilityRole="button"
|
|
216
|
+
accessibilityLabel={label}
|
|
217
|
+
accessibilityState={{ expanded: open }}
|
|
218
|
+
onPress={onToggle}
|
|
219
|
+
onKeyDown={(event: any) => {
|
|
220
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
221
|
+
event.preventDefault();
|
|
222
|
+
onToggle();
|
|
223
|
+
}
|
|
224
|
+
}}
|
|
225
|
+
cursor="pointer"
|
|
226
|
+
flexShrink={0}
|
|
227
|
+
width={MIN_PRESS_TARGET}
|
|
228
|
+
height={MIN_PRESS_TARGET}
|
|
229
|
+
margin={outset}
|
|
230
|
+
alignItems="center"
|
|
231
|
+
justifyContent="center"
|
|
232
|
+
{...({ "data-card-slot": "disclosure" } as object)}
|
|
233
|
+
>
|
|
234
|
+
<IconSlot
|
|
235
|
+
icon={open ? CaretUpIcon : CaretDownIcon}
|
|
236
|
+
size={iconSize}
|
|
237
|
+
color={knobProps.textRole.meta.color as string}
|
|
238
|
+
/>
|
|
239
|
+
</View>
|
|
240
|
+
);
|
|
241
|
+
}
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
* Two facts at most, and one beside a subtitle: at phone width a second
|
|
35
35
|
* fact squeezes an email or a name down to its first letters. A value with no
|
|
36
36
|
* slot left (a second text column, a fact past the cap) is not squeezed in:
|
|
37
|
-
* it
|
|
37
|
+
* it goes to `overflow`, which a card opens under its two lines from a
|
|
38
|
+
* disclosure chevron (LC-261 amendment, FZ-9222). It never just drops.
|
|
38
39
|
*/
|
|
39
40
|
|
|
40
41
|
import type { DataTableColumn, DataTableField } from "../../types";
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
* right (LC-155), the key (#n) and the row's actions; line 2 is the one
|
|
13
13
|
* descriptor with the facts, glyph and value, in its trailing slot. No
|
|
14
14
|
* number gets a row of its own, no value is strung to another with a
|
|
15
|
-
* separator
|
|
16
|
-
*
|
|
15
|
+
* separator. A value with no slot (LC-261 overflow) is one tap away: a
|
|
16
|
+
* disclosure chevron on line 1 opens it under the lines as label and value
|
|
17
|
+
* rows, parted by hairlines on the record's own fill, never a card inside
|
|
18
|
+
* the card (LC-169). No rule divides the two lines. Column visibility and order from table state apply
|
|
17
19
|
* unchanged — cells come from `row.getVisibleCells()`. Values render
|
|
18
20
|
* through the same cell renderers as the grid, inside `TableCellContext`
|
|
19
21
|
* so fields stay chromeless (useIsInTableCell).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableMobileCards.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableMobileCards.tsx"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"DataTableMobileCards.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/DataTableMobileCards.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAYH,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAe/B;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAKhD;AAsBD,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAgB1D;AA4BD,MAAM,WAAW,cAAc,CAAC,KAAK;IACnC,+EAA+E;IAC/E,KAAK,EAAE,KAAK,GAAG,SAAS,CAAC;IACzB,8EAA8E;IAC9E,IAAI,EAAE,KAAK,EAAE,CAAC;IACd,2EAA2E;IAC3E,OAAO,EAAE,KAAK,EAAE,CAAC;CAClB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,cAAc,CAAC,KAAK,CAAC,CAgB1E;AAOD,MAAM,WAAW,yBAAyB,CAAC,KAAK;IAC9C,SAAS,EAAE,GAAG,EAAE,CAAC;IACjB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,cAAc,EAAE,OAAO,C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,15 @@ export declare function RowSelectMark({ checked, disabled, label, onToggle, }: {
|
|
|
27
27
|
label: string;
|
|
28
28
|
onToggle: (checked: boolean) => void;
|
|
29
29
|
}): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
/**
|
|
31
|
+
* A card's disclosure for its overflow values (LC-261 amendment, FZ-9222):
|
|
32
|
+
* a chevron at the fact glyph's size in the meta ink, as iOS draws a row's
|
|
33
|
+
* disclosure, not a bar glyph. The press target is 44pt on every side,
|
|
34
|
+
* pulled in by negative margins so line 1 keeps its height.
|
|
35
|
+
*/
|
|
36
|
+
export declare function CardDisclosure({ open, label, onToggle, }: {
|
|
37
|
+
open: boolean;
|
|
38
|
+
label: string;
|
|
39
|
+
onToggle: () => void;
|
|
40
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
30
41
|
//# sourceMappingURL=rowSlotParts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rowSlotParts.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/rowSlotParts.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rowSlotParts.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/rowSlotParts.tsx"],"names":[],"mappings":"AAUA,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAW3E,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AA0CtD,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,CAQvD;AAMD,uEAAuE;AACvE,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,GAAG,CAAA;CAAE,kDAUhD;AAeD;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,KAAK,EACL,IAAI,EAAE,QAAQ,EACd,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAC1B,QAAQ,EAAE,SAAS,CAAC;CACrB,2CAsBA;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC5B,OAAO,EACP,QAAgB,EAChB,KAAK,EACL,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CACtC,2CA6BA;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,KAAK,EACL,QAAQ,GACT,EAAE;IACD,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,2CAsCA"}
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
* Two facts at most, and one beside a subtitle: at phone width a second
|
|
35
35
|
* fact squeezes an email or a name down to its first letters. A value with no
|
|
36
36
|
* slot left (a second text column, a fact past the cap) is not squeezed in:
|
|
37
|
-
* it
|
|
37
|
+
* it goes to `overflow`, which a card opens under its two lines from a
|
|
38
|
+
* disclosure chevron (LC-261 amendment, FZ-9222). It never just drops.
|
|
38
39
|
*/
|
|
39
40
|
export declare const MAX_ROW_FACTS = 2;
|
|
40
41
|
export declare const MAX_FACTS_BESIDE_SUBTITLE = 1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rowSlots.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/rowSlots.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"rowSlots.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/rowSlots.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAIH,eAAO,MAAM,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|
|
|
38
38
|
unstyled?: boolean | undefined;
|
|
39
39
|
size?: import("tamagui").FontSizeTokens | undefined;
|
|
40
40
|
}, import("@tamagui/web").StaticConfigPublic>;
|
|
41
|
-
export declare const KnobDialogClose:
|
|
42
|
-
displayWhenAdapted
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}, import("@tamagui/web").StackStyleBase, {}, import("@tamagui/web").StaticConfigPublic>;
|
|
41
|
+
export declare const KnobDialogClose: {
|
|
42
|
+
(props: Omit<import("@tamagui/web").GetFinalProps<import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {}>, "scope" | "displayWhenAdapted"> & {
|
|
43
|
+
displayWhenAdapted?: boolean;
|
|
44
|
+
} & {
|
|
45
|
+
scope?: import("tamagui").DialogScopes;
|
|
46
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
47
|
+
displayName: string;
|
|
48
|
+
};
|
|
50
49
|
//# sourceMappingURL=KnobDialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KnobDialog.d.ts","sourceRoot":"","sources":["../../src/components/KnobDialog.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACtC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,KAAY,EAAE,QAAQ,EAAE,EAAE,eAAe,2CAMzF;AAED,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED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