@sincpro/web-ui 0.2.0 → 1.0.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.
Files changed (128) hide show
  1. package/README.md +3 -3
  2. package/dist/components/activity/ActivityBadge.d.ts +16 -0
  3. package/dist/components/activity/ActivityBadge.js +29 -0
  4. package/dist/components/activity/index.d.ts +1 -0
  5. package/dist/components/activity/index.js +1 -0
  6. package/dist/components/calendar/RecordCalendar.d.ts +48 -0
  7. package/dist/components/calendar/RecordCalendar.js +101 -0
  8. package/dist/components/calendar/index.d.ts +1 -0
  9. package/dist/components/calendar/index.js +1 -0
  10. package/dist/components/form/Sheet.js +5 -1
  11. package/dist/components/gantt/RecordGantt.d.ts +44 -0
  12. package/dist/components/gantt/RecordGantt.js +110 -0
  13. package/dist/components/gantt/index.d.ts +1 -0
  14. package/dist/components/gantt/index.js +1 -0
  15. package/dist/components/index.d.ts +3 -0
  16. package/dist/components/index.js +3 -0
  17. package/dist/components/lines/LineItems.d.ts +5 -2
  18. package/dist/components/lines/LineItems.js +3 -3
  19. package/dist/components/listing/BoardColumns.d.ts +39 -0
  20. package/dist/components/listing/BoardColumns.js +138 -0
  21. package/dist/components/listing/ListingBar.d.ts +5 -0
  22. package/dist/components/listing/ListingBar.js +5 -2
  23. package/dist/components/listing/PivotExplorer.d.ts +34 -0
  24. package/dist/components/listing/PivotExplorer.js +86 -0
  25. package/dist/components/listing/RecordCard.d.ts +6 -8
  26. package/dist/components/listing/RecordCard.js +13 -7
  27. package/dist/components/listing/Row.d.ts +21 -2
  28. package/dist/components/listing/Row.js +29 -13
  29. package/dist/components/listing/index.d.ts +2 -0
  30. package/dist/components/listing/index.js +2 -0
  31. package/dist/components/listing/set.d.ts +1 -1
  32. package/dist/components/navigation/index.d.ts +0 -2
  33. package/dist/components/navigation/index.js +2 -3
  34. package/dist/components/record/RecordAudit.d.ts +17 -0
  35. package/dist/components/record/RecordAudit.js +27 -0
  36. package/dist/components/record/RecordHeader.d.ts +7 -1
  37. package/dist/components/record/RecordHeader.js +30 -18
  38. package/dist/components/record/RecordRibbon.d.ts +13 -0
  39. package/dist/components/record/RecordRibbon.js +22 -0
  40. package/dist/components/record/index.d.ts +2 -0
  41. package/dist/components/record/index.js +2 -0
  42. package/dist/components/search/CriteriaChips.d.ts +6 -1
  43. package/dist/components/search/CriteriaChips.js +71 -20
  44. package/dist/components/search/SearchBar.d.ts +4 -1
  45. package/dist/components/search/SearchBar.js +15 -7
  46. package/dist/components/timeline/RecordTimeline.d.ts +60 -0
  47. package/dist/components/timeline/RecordTimeline.js +214 -0
  48. package/dist/components/timeline/TimelineToolbar.d.ts +30 -0
  49. package/dist/components/timeline/TimelineToolbar.js +31 -0
  50. package/dist/components/timeline/index.d.ts +3 -0
  51. package/dist/components/timeline/index.js +3 -0
  52. package/dist/components/timeline/time.d.ts +43 -0
  53. package/dist/components/timeline/time.js +135 -0
  54. package/dist/foundations/copy.d.ts +106 -14
  55. package/dist/foundations/copy.es.js +83 -9
  56. package/dist/foundations/copy.js +83 -9
  57. package/dist/foundations/index.d.ts +1 -1
  58. package/dist/foundations/match.d.ts +23 -0
  59. package/dist/foundations/match.js +63 -0
  60. package/dist/foundations/slots.d.ts +1 -1
  61. package/dist/foundations/slots.js +8 -3
  62. package/dist/foundations/types.d.ts +7 -0
  63. package/dist/foundations/types.js +0 -36
  64. package/dist/primitives/block/index.d.ts +1 -1
  65. package/dist/primitives/block/index.js +1 -1
  66. package/dist/primitives/cell/CellStack.d.ts +7 -1
  67. package/dist/primitives/cell/CellStack.js +5 -2
  68. package/dist/primitives/choice/ComboBox.js +8 -4
  69. package/dist/primitives/choice/KanbanState.d.ts +14 -0
  70. package/dist/primitives/choice/KanbanState.js +37 -0
  71. package/dist/primitives/choice/Priority.d.ts +20 -0
  72. package/dist/primitives/choice/Priority.js +41 -0
  73. package/dist/primitives/choice/Slider.d.ts +6 -1
  74. package/dist/primitives/choice/Slider.js +2 -2
  75. package/dist/primitives/choice/index.d.ts +2 -0
  76. package/dist/primitives/choice/index.js +2 -0
  77. package/dist/primitives/dialog/Dialog.d.ts +9 -3
  78. package/dist/primitives/dialog/Dialog.js +41 -5
  79. package/dist/primitives/dialog/index.d.ts +0 -1
  80. package/dist/primitives/dialog/index.js +0 -2
  81. package/dist/primitives/notice/index.d.ts +1 -1
  82. package/dist/primitives/notice/index.js +1 -1
  83. package/dist/primitives/overlay/Preview.js +13 -4
  84. package/dist/primitives/picker/MatchedText.d.ts +10 -0
  85. package/dist/primitives/picker/MatchedText.js +12 -0
  86. package/dist/primitives/picker/Picker.d.ts +29 -7
  87. package/dist/primitives/picker/Picker.js +88 -23
  88. package/dist/primitives/table/EditableTable.d.ts +6 -1
  89. package/dist/primitives/table/EditableTable.js +70 -9
  90. package/dist/primitives/table/ReportTable.js +2 -1
  91. package/dist/primitives/table/RowActions.js +7 -2
  92. package/dist/primitives/table/Table.d.ts +5 -0
  93. package/dist/primitives/table/Table.js +17 -8
  94. package/dist/primitives/tag/Tags.d.ts +2 -0
  95. package/dist/primitives/tag/Tags.js +2 -1
  96. package/dist/primitives/tag/TagsField.d.ts +10 -0
  97. package/dist/primitives/tag/TagsField.js +34 -9
  98. package/dist/primitives/tag/choices.d.ts +2 -0
  99. package/dist/primitives/value/Avatar.d.ts +16 -0
  100. package/dist/primitives/value/Avatar.js +91 -0
  101. package/dist/primitives/value/Person.d.ts +6 -51
  102. package/dist/primitives/value/Person.js +9 -148
  103. package/dist/primitives/value/Relation.d.ts +21 -9
  104. package/dist/primitives/value/Relation.js +35 -24
  105. package/dist/primitives/value/contact.d.ts +30 -0
  106. package/dist/primitives/value/contact.js +51 -0
  107. package/dist/primitives/value/index.d.ts +1 -1
  108. package/dist/primitives/value/index.js +1 -1
  109. package/dist/tokens.css +136 -1
  110. package/dist/views/list/List.d.ts +25 -2
  111. package/dist/views/list/List.js +48 -8
  112. package/dist/views/list/ListView.d.ts +1 -1
  113. package/dist/views/list/ListView.js +39 -8
  114. package/dist/views/list/columns.js +8 -1
  115. package/dist/views/list/presentations.d.ts +5 -2
  116. package/dist/views/list/presentations.js +32 -2
  117. package/dist/views/list/types.d.ts +44 -0
  118. package/dist/views/list/useNarrowList.d.ts +10 -0
  119. package/dist/views/list/useNarrowList.js +20 -6
  120. package/dist/views/record/Record.d.ts +14 -0
  121. package/dist/views/record/Record.js +22 -7
  122. package/package.json +11 -4
  123. package/dist/components/navigation/CommandPalette.d.ts +0 -40
  124. package/dist/components/navigation/CommandPalette.js +0 -114
  125. package/dist/components/navigation/commands.d.ts +0 -30
  126. package/dist/components/navigation/commands.js +0 -30
  127. package/dist/primitives/dialog/Drill.d.ts +0 -90
  128. package/dist/primitives/dialog/Drill.js +0 -172
@@ -6,10 +6,13 @@ import { Button, ButtonLink, IconButton } from "../button/Button.js";
6
6
  import { CellStack, Thumb } from "../cell/CellStack.js";
7
7
  import { FieldIdsContext } from "../field/context.js";
8
8
  import { useFormMode } from "../field/mode.js";
9
+ import { Menu } from "../menu/Menu.js";
9
10
  import { PopoverTrigger } from "../overlay/PopoverTrigger.js";
10
11
  import { Preview } from "../overlay/Preview.js";
11
12
  import { Tag } from "../tag/Tag.js";
12
- import { ArrowRight, Info } from "lucide-react";
13
+ import { Avatar } from "./Avatar.js";
14
+ import { ContactRows } from "./contact.js";
15
+ import { ArrowRight, Ellipsis, Info } from "lucide-react";
13
16
  import { useContext } from "react";
14
17
  import { Link } from "react-aria-components";
15
18
  /**
@@ -18,22 +21,27 @@ import { Link } from "react-aria-components";
18
21
  * Context: it answers the question a person has about the customer of an invoice without
19
22
  * leaving the invoice — «does it owe us?», «what is its NIT?» — and, when the answer is
20
23
  * «I need more», one press takes them to the record. It is what floats from a
21
- * `RelationValue`, and it is exported on its own for a side panel.
24
+ * `RelationValue` and what opens from a `UserChip` (a person is a related record too: round
25
+ * face, role, the ways to reach them), and it is exported on its own for a side panel.
22
26
  */
23
- export function RelationCard({ name, secondary, media, summary = {}, onOpen, href, }) {
27
+ export function RelationCard({ name, secondary, media, summary = {}, contact, onOpen, href, }) {
24
28
  const copy = useUiCopy();
25
29
  const title = summary.title ?? name;
26
30
  return (
27
31
  /* React events bubble through the popover's portal to the React parents of the link —
28
32
  a table row that opens on click among them. A click inside the card stays here. */
29
- _jsxs("div", { className: "flex w-72 max-w-full flex-col gap-3", onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "flex min-w-0 items-start gap-3", children: [media === undefined ? null : (_jsx(Thumb, { size: "lg", ...(media.src === undefined ? {} : { src: media.src }), ...(media.alt === undefined ? {} : { alt: media.alt }), ...(media.icon === undefined ? {} : { icon: media.icon }) })), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [_jsx("span", { className: "text-lead leading-tight font-semibold text-ink", children: title }), secondary === undefined ? null : (_jsx("span", { className: "truncate text-micro tabular-nums text-muted", children: secondary })), summary.tag === undefined ? null : (_jsx("span", { className: "flex", children: _jsx(Tag, { tone: summary.tag.tone ?? "neutral", children: summary.tag.label }) }))] })] }), summary.facts === undefined || summary.facts.length === 0 ? null : (_jsx("dl", { className: "grid grid-cols-2 gap-x-4 gap-y-2 border-t border-line pt-3", children: summary.facts.map((fact) => (_jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsx("dt", { className: "truncate text-micro text-muted", children: fact.label }), _jsx("dd", { className: "truncate text-meta tabular-nums text-ink", children: fact.value })] }, fact.label))) })), href !== undefined ? (_jsx("div", { className: "flex justify-end border-t border-line pt-2", children: _jsx(ButtonLink, { href: href, role: "ghost", size: "sm", icon: ArrowRight, ...(onOpen === undefined ? {} : { onClick: onOpen }), children: copy.relation.open }) })) : onOpen !== undefined ? (_jsx("div", { className: "flex justify-end border-t border-line pt-2", children: _jsx(Button, { role: "ghost", size: "sm", icon: ArrowRight, onClick: onOpen, children: copy.relation.open }) })) : null] }));
33
+ _jsxs("div", { className: "flex w-72 max-w-full flex-col gap-3", onClick: (e) => e.stopPropagation(), children: [_jsxs("div", { className: "flex min-w-0 items-start gap-3", children: [media === undefined ? null : media.person === true ? (
34
+ /* The name is written beside it: the photo's `alt` would say it twice. */
35
+ _jsx("span", { "aria-hidden": true, className: "flex shrink-0", children: _jsx(Avatar, { name: name, size: "xl", ...(media.src === undefined ? {} : { src: media.src }) }) })) : (_jsx(Thumb, { size: "lg", ...(media.src === undefined ? {} : { src: media.src }), ...(media.alt === undefined ? {} : { alt: media.alt }), ...(media.icon === undefined ? {} : { icon: media.icon }) })), _jsxs("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [_jsx("span", { className: "text-lead leading-tight font-semibold text-ink", children: title }), secondary === undefined ? null : (_jsx("span", { className: "truncate text-micro tabular-nums text-muted", children: secondary })), summary.tag === undefined ? null : (_jsx("span", { className: "flex", children: _jsx(Tag, { tone: summary.tag.tone ?? "neutral", children: summary.tag.label }) }))] })] }), summary.facts === undefined || summary.facts.length === 0 ? null : (_jsx("dl", { className: "grid grid-cols-2 gap-x-4 gap-y-2 border-t border-line pt-3", children: summary.facts.map((fact) => (_jsxs("div", { className: "flex min-w-0 flex-col", children: [_jsx("dt", { className: "truncate text-micro text-muted", children: fact.label }), _jsx("dd", { className: "truncate text-meta tabular-nums text-ink", children: fact.value })] }, fact.label))) })), contact === undefined ? null : _jsx(ContactRows, { contact: contact }), href !== undefined ? (_jsx("div", { className: "flex justify-end border-t border-line pt-2", children: _jsx(ButtonLink, { href: href, role: "ghost", size: "sm", icon: ArrowRight, ...(onOpen === undefined ? {} : { onClick: onOpen }), children: copy.relation.open }) })) : onOpen !== undefined ? (_jsx("div", { className: "flex justify-end border-t border-line pt-2", children: _jsx(Button, { role: "ghost", size: "sm", icon: ArrowRight, onClick: onOpen, children: copy.relation.open }) })) : null] }));
30
36
  }
31
37
  /**
32
38
  * A many2one as a value: the related record's name as a link, with its secondary line and
33
39
  * picture, and its summary one press away. Works in a table cell, a list row, a `Record.Facts`
34
40
  * value and a form field (read mode; pass the `Picker` as `editor` for edit mode).
35
41
  */
36
- export function RelationValue({ name, secondary, media, onOpen, href, summary, preview, editor, mode, }) {
42
+ export function RelationValue({ name, secondary, media, onOpen: onOpenOwn, onOpenIn, openTargets = ["modal", "peek", "side", "page"], href, summary, preview, editor, mode, }) {
43
+ const first = openTargets[0];
44
+ const onOpen = onOpenIn !== undefined && first !== undefined ? () => onOpenIn(first) : onOpenOwn;
37
45
  const copy = useUiCopy();
38
46
  const formMode = useFormMode(mode);
39
47
  /* Inside a `Field` the value takes the control's height, so a form that goes from
@@ -49,26 +57,29 @@ export function RelationValue({ name, secondary, media, onOpen, href, summary, p
49
57
  const summaryLabel = fillCopy(copy.relationCard.summary, { name });
50
58
  const card = (open) => (_jsx(RelationCard, { name: name, ...(summary === undefined ? {} : { summary }), ...(secondary === undefined ? {} : { secondary }), ...(media === undefined ? {} : { media }), ...(href === undefined ? {} : { href }), ...(open === undefined ? {} : { onOpen: open }) }));
51
59
  /* What floats from the name: the card, or the consumer's own content. */
52
- const previewed = preview === undefined || preview === null || preview === false
60
+ const previewed = preview === false || preview === null
53
61
  ? undefined
54
- : preview === true
55
- ? card(onOpen)
56
- : preview;
62
+ : preview === undefined
63
+ ? summary === undefined
64
+ ? undefined
65
+ : card(onOpen)
66
+ : preview === true
67
+ ? card(onOpen)
68
+ : preview;
57
69
  const link = goes ? (_jsx(Link, { ...(href === undefined ? {} : { href }), ...(onOpen === undefined ? {} : { onPress: onOpen }), className: ({ isFocusVisible }) => cn("cursor-pointer rounded-mark text-primary no-underline underline-offset-2 hover:underline", focusRing({ isFocusVisible })), children: name })) : undefined;
58
70
  const primary = link === undefined ? (name) : previewed === undefined ? (link) : (_jsx(Preview, { trigger: link, label: summaryLabel, children: previewed }));
59
- /* The `i`: the summary when there is no preview on the name; the preview's content when
60
- there is no link for it to ride on. */
61
- const info = previewed !== undefined
62
- ? goes
63
- ? undefined
64
- : () => previewed
65
- : summary === undefined
66
- ? undefined
67
- : (close) => card(onOpen === undefined
68
- ? undefined
69
- : () => {
70
- close();
71
- onOpen();
72
- });
73
- return frame(_jsxs("span", { className: "inline-flex max-w-full min-w-0 items-center gap-1", children: [_jsx(CellStack, { primary: primary, ...(secondary === undefined ? {} : { secondary }), ...(media === undefined ? {} : { media }) }), info === undefined ? null : (_jsx(PopoverTrigger, { label: summaryLabel, trigger: _jsx(IconButton, { icon: Info, label: summaryLabel, size: "sm" }), children: info }))] }));
71
+ /* The `i` only when the name is not a link: there is nothing for the card to ride on. */
72
+ const info = previewed === undefined || goes ? undefined : () => previewed;
73
+ return frame(_jsxs("span", { className: "inline-flex max-w-full min-w-0 items-center gap-1", children: [_jsx(CellStack, { primary: primary, ...(secondary === undefined ? {} : { secondary }), ...(media === undefined
74
+ ? {}
75
+ : media.person === true
76
+ ? { avatar: { name, ...(media.src === undefined ? {} : { src: media.src }) } }
77
+ : { media }) }), onOpenIn === undefined || openTargets.length < 2 ? null : (_jsx(Menu, { label: copy.picker.openMore, icon: Ellipsis, iconOnly: true, chevron: false, variant: "text", groups: [
78
+ {
79
+ options: openTargets.slice(1).map((to) => ({
80
+ id: to,
81
+ label: copy.picker.openIn[to],
82
+ })),
83
+ },
84
+ ], onSelect: (to) => onOpenIn(to) })), info === undefined ? null : (_jsx(PopoverTrigger, { label: summaryLabel, trigger: _jsx(IconButton, { icon: Info, label: summaryLabel, size: "sm" }), children: info }))] }));
74
85
  }
@@ -0,0 +1,30 @@
1
+ import { useUiCopy } from "../../foundations/copy.js";
2
+ import type { LucideIcon } from "lucide-react";
3
+ /** The ways to reach a person. Each one that is present becomes a row of the contact card. */
4
+ export type PersonContact = {
5
+ email?: string;
6
+ /** As people write it — «+591 7 123-4567». The `tel:` link keeps only the digits and `+`. */
7
+ phone?: string;
8
+ /** The WhatsApp number with its country code, written any way; `wa.me` gets the digits. */
9
+ whatsapp?: string;
10
+ };
11
+ /** The three contact links, built from what people type. `wa.me` takes digits only — a `+`,
12
+ * a space or a dash breaks it — and `tel:` takes digits and the leading `+`. */
13
+ export declare function contactRows(contact: PersonContact, copy: ReturnType<typeof useUiCopy>["person"]): {
14
+ key: string;
15
+ icon: LucideIcon;
16
+ label: string;
17
+ value: string;
18
+ href: string;
19
+ }[];
20
+ /**
21
+ * The ways to reach someone, one ROW each — write, call, WhatsApp — on the card of any record
22
+ * that is a person or a company. Each way is a row and not a bare icon: the address and the
23
+ * number are drawn, because often what the person wants is to read the number aloud, not to
24
+ * dial it from the browser. Every row is a real link (`mailto:`, `tel:`, `wa.me`), so
25
+ * middle-click, «copy address» and the phone's own dialer work. Internal: `RelationCard` draws
26
+ * it from its `contact`.
27
+ */
28
+ export declare function ContactRows({ contact }: {
29
+ contact: PersonContact;
30
+ }): import("react").JSX.Element | null;
@@ -0,0 +1,51 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useUiCopy } from "../../foundations/copy.js";
4
+ import { Mail, MessageCircle, Phone } from "lucide-react";
5
+ /** The three contact links, built from what people type. `wa.me` takes digits only — a `+`,
6
+ * a space or a dash breaks it — and `tel:` takes digits and the leading `+`. */
7
+ export function contactRows(contact, copy) {
8
+ const rows = [];
9
+ if (contact.email !== undefined && contact.email !== "") {
10
+ rows.push({
11
+ key: "email",
12
+ icon: Mail,
13
+ label: copy.email,
14
+ value: contact.email,
15
+ href: `mailto:${contact.email}`,
16
+ });
17
+ }
18
+ if (contact.phone !== undefined && contact.phone !== "") {
19
+ rows.push({
20
+ key: "call",
21
+ icon: Phone,
22
+ label: copy.call,
23
+ value: contact.phone,
24
+ href: `tel:${contact.phone.replace(/[^\d+]/g, "")}`,
25
+ });
26
+ }
27
+ if (contact.whatsapp !== undefined && contact.whatsapp !== "") {
28
+ rows.push({
29
+ key: "whatsapp",
30
+ icon: MessageCircle,
31
+ label: copy.whatsapp,
32
+ value: contact.whatsapp,
33
+ href: `https://wa.me/${contact.whatsapp.replace(/\D/g, "")}`,
34
+ });
35
+ }
36
+ return rows;
37
+ }
38
+ /**
39
+ * The ways to reach someone, one ROW each — write, call, WhatsApp — on the card of any record
40
+ * that is a person or a company. Each way is a row and not a bare icon: the address and the
41
+ * number are drawn, because often what the person wants is to read the number aloud, not to
42
+ * dial it from the browser. Every row is a real link (`mailto:`, `tel:`, `wa.me`), so
43
+ * middle-click, «copy address» and the phone's own dialer work. Internal: `RelationCard` draws
44
+ * it from its `contact`.
45
+ */
46
+ export function ContactRows({ contact }) {
47
+ const rows = contactRows(contact, useUiCopy().person);
48
+ if (rows.length === 0)
49
+ return null;
50
+ return (_jsx("ul", { className: "-mx-1 flex flex-col border-t border-line pt-2", children: rows.map(({ key, icon: Icon, label, value, href }) => (_jsx("li", { children: _jsxs("a", { href: href, "data-contact": key, ...(key === "whatsapp" ? { target: "_blank", rel: "noreferrer" } : {}), className: "flex min-w-0 items-center gap-2.5 rounded-control px-1 py-1.5 no-underline outline-primary outline-offset-2 hover:bg-ink/6 focus-visible:outline-2 forced-colors:outline-[Highlight]", children: [_jsx(Icon, { "aria-hidden": true, className: "size-(--size-icon-md) shrink-0 text-primary", strokeWidth: 2 }), _jsxs("span", { className: "flex min-w-0 flex-col", children: [_jsx("span", { className: "text-meta font-medium text-ink", children: label }), _jsx("span", { className: "truncate text-micro tabular-nums text-muted", children: value })] })] }) }, key))) }));
51
+ }
@@ -2,7 +2,7 @@ export { Copyable, type CopyableProps, CopyButton, } from "./Copyable.js";
2
2
  export { DateValue, formatDateTime, formatRelative, } from "./Fecha.js";
3
3
  export { Meter, type MeterLevel, meterLevel, type MeterProps, type MeterThresholds, } from "./Meter.js";
4
4
  export { Metric, type MetricProps, Metrics } from "./Metric.js";
5
- export { Avatar, type AvatarSize, ContactCard, type ContactCardProps, type PersonContact, UserChip, type UserChipProps, UserStack, } from "./Person.js";
5
+ export { Avatar, type AvatarSize, type PersonContact, UserChip, type UserChipProps, UserStack, } from "./Person.js";
6
6
  export { ProgressBar, type ProgressBarProps, } from "./ProgressBar.js";
7
7
  export { RelationCard, type RelationCardProps, type RelationSummary, RelationValue, type RelationValueProps, } from "./Relation.js";
8
8
  export { Totals, type TotalsCredit, type TotalsDeduction, type TotalsFact, type TotalsProps, type TotalsRow, } from "./Totals.js";
@@ -3,7 +3,7 @@ export { Copyable, CopyButton, } from "./Copyable.js";
3
3
  export { DateValue, formatDateTime, formatRelative, } from "./Fecha.js";
4
4
  export { Meter, meterLevel, } from "./Meter.js";
5
5
  export { Metric, Metrics } from "./Metric.js";
6
- export { Avatar, ContactCard, UserChip, UserStack, } from "./Person.js";
6
+ export { Avatar, UserChip, UserStack, } from "./Person.js";
7
7
  export { ProgressBar, } from "./ProgressBar.js";
8
8
  export { RelationCard, RelationValue, } from "./Relation.js";
9
9
  export { Totals, } from "./Totals.js";
package/dist/tokens.css CHANGED
@@ -11,6 +11,13 @@
11
11
  @import "@fontsource/ibm-plex-mono/latin-ext-400.css";
12
12
  @import "@fontsource/ibm-plex-mono/latin-500.css";
13
13
  @import "@fontsource/ibm-plex-mono/latin-ext-500.css";
14
+ /* The record calendar (`RecordCalendar`, FullCalendar v7): its structure and the `forma`
15
+ theme. The palette that theme reads is defined below, from web-ui's tokens. */
16
+ @import "@fullcalendar/react/skeleton.css";
17
+ @import "@fullcalendar/react/themes/forma/theme.css";
18
+ /* The record Gantt (`RecordGantt`, SVAR): its styles, Willow theme included. Its variables
19
+ are pointed at web-ui's tokens below. */
20
+ @import "@svar-ui/react-gantt/all.css";
14
21
 
15
22
  @import "tailwindcss";
16
23
 
@@ -491,6 +498,20 @@
491
498
  earlier. */
492
499
  --container-name: 12rem;
493
500
 
501
+ /* The widest a chip of the search bar gets before it truncates. A filter written by hand
502
+ («cliente contiene Importadora y Exportadora…») would otherwise take a whole line of the
503
+ bar and push the rest down; the full text stays in the chip's title. */
504
+ /* One stage of a board by stages: a card with its name, a tag and a figure, without
505
+ wrapping the name into three lines. Five stages fit a desk; more scroll sideways. */
506
+ --container-lane: 18rem;
507
+ /* The names column of a timeline (an employee with an avatar, a room, a machine): wide enough
508
+ for «Ammy Shalem Aranibar Zambrana» before it truncates. */
509
+ --container-timeline-label: 15rem;
510
+ --container-facet: 16rem;
511
+ /* The grouping chain is several levels in one chip, so it asks for more before it
512
+ truncates — at its end, as one sentence, never level by level. */
513
+ --container-chain: 28rem;
514
+
494
515
  /* The minimum width of a metric. It belongs to the system and not to the
495
516
  component: three metrics of different widths read as three different
496
517
  things, and what they have to let you compare is precisely the number. */
@@ -511,7 +532,7 @@
511
532
 
512
533
  `--container-beside` is how wide the record's PAGE has to be for the column to stand
513
534
  beside the sheet: the column and a sheet that keeps 54rem — two groups of fields side by
514
- side still fit their labels. Narrower (a laptop with a sidebar, a phone, a `Drill`), the
535
+ side still fit their labels. Narrower (a laptop with a sidebar, a phone, a modal), the
515
536
  panel goes BELOW the sheet as a card. Written as a number and not a `calc()` because a container query cannot
516
537
  read a variable.
517
538
 
@@ -766,6 +787,113 @@
766
787
  0 2px 6px -2px rgba(26, 23, 20, 0.18), 0 18px 40px -20px rgba(26, 23, 20, 0.42);
767
788
  }
768
789
 
790
+ /* ====================================================================
791
+ * THE WORKSPACE (@sincpro/web-composer) dressed in these tokens.
792
+ *
793
+ * Context: the composer depends on no design system and paints its frames, tabs, windows
794
+ * and modals with `--sc-*` variables. Pointing them at web-ui's tokens here means a composer
795
+ * on a web-ui page takes its theme — light, dark, and any brand — with nothing to wire: no
796
+ * import, no dependency, only names. They are aliases, so they follow the dark theme on
797
+ * their own and carry no contrast of their own to measure.
798
+ * ==================================================================== */
799
+ :root {
800
+ --sc-ground: var(--color-ground);
801
+ --sc-surface: var(--color-surface);
802
+ --sc-line: var(--color-line);
803
+ --sc-line-strong: var(--color-line-strong);
804
+ --sc-ink: var(--color-ink);
805
+ --sc-muted: var(--color-muted);
806
+ /* The workspace's accent marks where you are (the active tab, a focused frame): the navy
807
+ of a link, not the gold of the one primary action. */
808
+ --sc-accent: var(--color-primary);
809
+ --sc-danger: var(--color-danger);
810
+ --sc-on-danger: var(--color-surface);
811
+ --sc-scrim: var(--color-scrim);
812
+ --sc-modal-scrim: color-mix(in srgb, var(--color-scrim) 40%, transparent);
813
+ --sc-shadow: var(--shadow-window);
814
+ --sc-radius: var(--radius-panel);
815
+ --sc-radius-control: var(--radius-control);
816
+ --sc-text: var(--text-meta);
817
+ --sc-text-small: var(--text-micro);
818
+ --sc-icon: var(--size-icon-md);
819
+ }
820
+
821
+ /* ====================================================================
822
+ * THE RECORD CALENDAR (FullCalendar v7, `forma` theme) in these tokens.
823
+ *
824
+ * Context: the theme reads a palette of `--fc-forma-*` variables. Pointed at web-ui's tokens it
825
+ * takes the theme — light, dark, a brand — with no dark block of its own: the tokens already
826
+ * flip. Aliases, so no contrast of their own to measure; the translucent washes are mixed from
827
+ * the ink so they read on either theme.
828
+ * ==================================================================== */
829
+ :root {
830
+ --fc-forma-primary: var(--color-primary);
831
+ --fc-forma-primary-over: var(--color-primary-hover);
832
+ --fc-forma-primary-down: var(--color-primary-hover);
833
+ --fc-forma-primary-foreground: var(--color-surface);
834
+ --fc-forma-event: var(--color-primary);
835
+ --fc-forma-event-contrast: var(--color-surface);
836
+ --fc-forma-background-event: var(--color-primary);
837
+ --fc-forma-highlight: color-mix(in srgb, var(--color-primary) 18%, transparent);
838
+ --fc-forma-background: var(--color-surface);
839
+ --fc-forma-faint: color-mix(in srgb, var(--color-ink) 3%, transparent);
840
+ --fc-forma-muted: color-mix(in srgb, var(--color-ink) 7%, transparent);
841
+ --fc-forma-strong: color-mix(in srgb, var(--color-ink) 12%, transparent);
842
+ --fc-forma-stronger: color-mix(in srgb, var(--color-ink) 16%, transparent);
843
+ --fc-forma-strongest: color-mix(in srgb, var(--color-ink) 20%, transparent);
844
+ --fc-forma-foreground: var(--color-ink);
845
+ --fc-forma-faint-foreground: var(--color-muted);
846
+ --fc-forma-muted-foreground: var(--color-muted);
847
+ --fc-forma-border: var(--color-line);
848
+ --fc-forma-muted-border: var(--color-line);
849
+ --fc-forma-strong-border: var(--color-line-strong);
850
+ }
851
+
852
+ /* ====================================================================
853
+ * THE RECORD GANTT (SVAR, Willow theme) in these tokens.
854
+ *
855
+ * Context: Willow declares its `--wx-*` on `.wx-willow-theme`; redeclared on the same class
856
+ * here, later, they win. Bars are the navy of the system, a summary the ink, a milestone the
857
+ * info tone; the type is the system's. Aliases: they flip with the theme.
858
+ * ==================================================================== */
859
+ .wx-willow-theme {
860
+ --wx-color-primary: var(--color-primary);
861
+ --wx-color-primary-selected: color-mix(in srgb, var(--color-primary) 14%, transparent);
862
+ --wx-color-primary-font: var(--color-surface);
863
+ --wx-color-secondary-hover: color-mix(in srgb, var(--color-primary) 10%, transparent);
864
+ --wx-color-success: var(--color-good);
865
+ --wx-color-warning: var(--color-warn);
866
+ --wx-color-info: var(--color-info);
867
+ --wx-color-danger: var(--color-danger);
868
+ --wx-color-font: var(--color-ink);
869
+ --wx-color-font-alt: var(--color-muted);
870
+ --wx-background: var(--color-surface);
871
+ --wx-background-alt: var(--color-ground);
872
+ --wx-background-hover: color-mix(in srgb, var(--color-ink) 5%, transparent);
873
+ --wx-font-family: inherit;
874
+ --wx-font-size: var(--text-meta);
875
+ --wx-font-size-sm: var(--text-micro);
876
+ --wx-icon-color: var(--color-muted);
877
+ --wx-border-color: var(--color-line);
878
+ --wx-border-radius: var(--radius-control);
879
+ --wx-radius-major: var(--radius-box);
880
+ --wx-gantt-border-color: var(--color-line);
881
+ --wx-gantt-task-color: var(--color-primary);
882
+ --wx-gantt-task-fill-color: var(--color-primary-hover);
883
+ --wx-gantt-task-border-color: var(--color-primary-hover);
884
+ --wx-gantt-task-font-color: var(--color-surface);
885
+ --wx-gantt-summary-color: var(--color-line-strong);
886
+ --wx-gantt-summary-fill-color: color-mix(in srgb, var(--color-ink) 45%, transparent);
887
+ --wx-gantt-summary-border-color: var(--color-line-strong);
888
+ --wx-gantt-summary-font-color: var(--color-ink);
889
+ --wx-gantt-milestone-color: var(--color-info);
890
+ --wx-gantt-select-color: color-mix(in srgb, var(--color-primary) 10%, transparent);
891
+ --wx-gantt-link-color: var(--color-muted);
892
+ --wx-gantt-link-color-hovered: var(--color-ink);
893
+ --wx-gantt-holiday-background: var(--color-ground);
894
+ --wx-gantt-holiday-color: var(--color-muted);
895
+ }
896
+
769
897
  @layer base {
770
898
  /* No forced height anywhere: the document is exactly as tall as its content.
771
899
  * The color still has to reach the bottom of the viewport on a short page —
@@ -1060,3 +1188,10 @@
1060
1188
  --size-control-lg: 48px;
1061
1189
  }
1062
1190
  }
1191
+
1192
+ /* A label written down a narrow strip: the name of a folded board column, read bottom-up
1193
+ like a book's spine. Tailwind has no writing-mode utility. */
1194
+ @utility text-vertical {
1195
+ writing-mode: vertical-rl;
1196
+ transform: rotate(180deg);
1197
+ }
@@ -1,10 +1,11 @@
1
+ import type { BoardStages } from "../../components/listing/BoardColumns.js";
1
2
  import type { ListIdentity } from "../../components/listing/ListingBar.js";
2
3
  import type { SortField } from "../../components/listing/SortMenu.js";
3
4
  import type { Surface } from "../../foundations/types.js";
4
5
  import type { DataColumn, DataTableCreate } from "../../primitives/table/DataTable.js";
5
6
  import type { RowAction } from "../../primitives/table/RowActions.js";
6
7
  import type { SortState } from "../../primitives/table/Table.js";
7
- import { type ListCrumb, type ListEmpty, type ListGroup, type ListPivot, type ListPresent, type ListReport, type ListSheet, type RowOf } from "./types.js";
8
+ import { type ListCalendar, type ListCrumb, type ListEmpty, type ListGantt, type ListGroup, type ListPivot, type ListPresent, type ListReport, type ListSheet, type ListTimeline, type RowOf } from "./types.js";
8
9
  import type { ReactNode } from "react";
9
10
  type BarProps = {
10
11
  children?: ReactNode;
@@ -50,6 +51,8 @@ type TableProps<T extends object> = {
50
51
  * se puede ver como tablero. */
51
52
  type BoardProps<T> = {
52
53
  card?: (item: T) => ReactNode;
54
+ /** One column per stage, with drag (and Alt + ← / →) to move a card between them. */
55
+ stages?: BoardStages<T>;
53
56
  };
54
57
  /** La planilla. Sin columnas propias, sale de las que declaró `List.Table` — la
55
58
  * de datos CRUDOS sí las trae, porque ahí salen del archivo y el código no sabe
@@ -75,6 +78,11 @@ export type ListProps<T extends object> = {
75
78
  count: number;
76
79
  clear: () => void;
77
80
  actions?: ReactNode;
81
+ /** Every record that matches, not just the page — see `ListViewProps`. */
82
+ matching?: {
83
+ total: number;
84
+ onSelect: () => void;
85
+ };
78
86
  };
79
87
  /** El orden, que también es del conjunto. */
80
88
  sort?: SortState | null;
@@ -88,6 +96,18 @@ export type ListProps<T extends object> = {
88
96
  onOpen?: (item: T) => void;
89
97
  onPeek?: (item: T) => void;
90
98
  isPeeked?: (item: T) => boolean;
99
+ /** What a press on the row's body does when both ways in exist. `peek` (the default) looks
100
+ * without leaving the list; `open` goes to the record — a workspace whose rule is «a row
101
+ * opens the page» (the composer's) says `open`, and 👁 stays for the look. */
102
+ rowClick?: "peek" | "open";
103
+ /** The list CHOOSES instead of opening — a «Buscar más…», a chooser a workspace asked for:
104
+ * a press on a row (its body, its name, a card) calls this, and the row offers no 👁 / ↗.
105
+ * For several at once, give `selection` too and toggle it here. */
106
+ onChoose?: (item: T) => void;
107
+ /** Nothing in it can be acted on: no opening, peeking, selecting, creating nor row
108
+ * actions — a list to read, like the lines of a record in view mode. One switch, so whoever
109
+ * passes the handlers generically does not have to strip them one by one. */
110
+ readOnly?: boolean;
91
111
  /** Los tres estados, en un solo lugar. */
92
112
  state?: {
93
113
  loading?: boolean;
@@ -99,7 +119,7 @@ export type ListProps<T extends object> = {
99
119
  empty?: ListEmpty;
100
120
  children?: ReactNode;
101
121
  };
102
- export declare function List<T extends object>({ items, keyOf, embedded, surface, group, selection, sort, onSortChange, sortable, present, onPresentChange, onOpen, onPeek, isPeeked, state, filtered, empty, children, }: ListProps<T>): import("react").JSX.Element;
122
+ export declare function List<T extends object>({ items, keyOf, embedded, surface, group, selection: selectWith, sort, onSortChange, sortable, present, onPresentChange, onOpen: openWith, onPeek: peekWith, isPeeked, readOnly, rowClick, onChoose, state, filtered, empty, children, }: ListProps<T>): import("react").JSX.Element;
103
123
  export declare namespace List {
104
124
  var Bar: ((props: BarProps) => ReactNode) & import("../../foundations/slots.js").Slotted<"bar">;
105
125
  var Crumbs: ((props: CrumbsProps) => ReactNode) & import("../../foundations/slots.js").Slotted<"crumbs">;
@@ -115,5 +135,8 @@ export declare namespace List {
115
135
  var Sheet: <T>(props: SheetProps<T>) => ReactNode;
116
136
  var Report: ((props: ListReport) => ReactNode) & import("../../foundations/slots.js").Slotted<"report">;
117
137
  var Pivot: <T>(props: ListPivot<T>) => ReactNode;
138
+ var Calendar: <T>(props: ListCalendar<T>) => ReactNode;
139
+ var Gantt: <T>(props: ListGantt<T>) => ReactNode;
140
+ var Timeline: <T>(props: ListTimeline<T>) => ReactNode;
118
141
  }
119
142
  export {};
@@ -40,10 +40,32 @@ const PRESENT_OF = {
40
40
  sheet: "sheet",
41
41
  report: "report",
42
42
  pivot: "pivot",
43
+ calendar: "calendar",
44
+ gantt: "gantt",
45
+ timeline: "timeline",
43
46
  };
44
- const FACES = ["rows", "table", "board", "sheet", "report", "pivot"];
45
- export function List({ items, keyOf, embedded, surface, group, selection, sort, onSortChange, sortable, present, onPresentChange, onOpen, onPeek, isPeeked, state, filtered, empty, children, }) {
47
+ const FACES = [
48
+ "rows",
49
+ "table",
50
+ "board",
51
+ "sheet",
52
+ "report",
53
+ "pivot",
54
+ "calendar",
55
+ "gantt",
56
+ "timeline",
57
+ ];
58
+ /** Records grouped in rows across time, N per row — a planning (`RecordTimeline`). */
59
+ const TimelineSlot = slot("timeline", (_props) => null);
60
+ /** When each record happens, on a month, a week, a day or an agenda (`RecordCalendar`). */
61
+ const CalendarSlot = slot("calendar", (_props) => null);
62
+ /** Each record as a span on a timeline, with its dependencies (`RecordGantt`). */
63
+ const GanttSlot = slot("gantt", (_props) => null);
64
+ export function List({ items, keyOf, embedded, surface, group, selection: selectWith, sort, onSortChange, sortable, present, onPresentChange, onOpen: openWith, onPeek: peekWith, isPeeked, readOnly = false, rowClick, onChoose, state, filtered, empty, children, }) {
46
65
  const top = flatten(children);
66
+ const onOpen = readOnly ? undefined : openWith;
67
+ const onPeek = readOnly ? undefined : peekWith;
68
+ const selection = readOnly ? undefined : selectWith;
47
69
  const bar = flatten(propsOf(pick(top, "bar"))?.children);
48
70
  const crumbs = propsOf(pick(bar, "crumbs"))?.crumbs;
49
71
  const identity = propsOf(pick(bar, "identity"));
@@ -58,6 +80,9 @@ export function List({ items, keyOf, embedded, surface, group, selection, sort,
58
80
  const sheet = propsOf(pick(top, "sheet"));
59
81
  const report = propsOf(pick(top, "report"));
60
82
  const pivot = propsOf(pick(top, "pivot"));
83
+ const calendar = propsOf(pick(top, "calendar"));
84
+ const gantt = propsOf(pick(top, "gantt"));
85
+ const timeline = propsOf(pick(top, "timeline"));
61
86
  /* Las caras que hay son las que están escritas, EN ESE ORDEN. El conmutador
62
87
  no puede ofrecer una que no se pueda dibujar, porque la que se dibuja y la
63
88
  que se ofrece son el mismo nodo. */
@@ -68,22 +93,34 @@ export function List({ items, keyOf, embedded, surface, group, selection, sort,
68
93
  /* La escotilla: lo que el arquetipo no previó se dibuja igual, debajo. Que
69
94
  aparezca algo acá es la señal de que al arquetipo le falta una pieza. */
70
95
  const rest = loose(top, ["bar", "metrics", ...FACES]);
71
- return (_jsx(ListView, { items: items, keyOf: keyOf, row: rows?.row ?? (() => ({ name: "" })), ...(rows?.header === undefined ? {} : { rowHeader: rows.header }), ...(identity === undefined ? {} : { identity }), ...(crumbs === undefined ? {} : { crumbs }), ...(embedded === undefined ? {} : { embedded }), ...(surface === undefined ? {} : { surface }), ...(search === undefined ? {} : { search }), ...(actions === undefined ? {} : { actions }), ...(pagination === undefined ? {} : { pagination }), ...(views === undefined ? {} : { views }), ...(metrics === undefined ? {} : { metrics }), ...(table === undefined
96
+ return (_jsx(ListView, { items: items, keyOf: keyOf, row: rows === undefined
97
+ ? () => ({ name: "" })
98
+ : readOnly
99
+ ? (item) => {
100
+ const { actions: _actions, ...rest } = rows.row(item);
101
+ return rest;
102
+ }
103
+ : rows.row, ...(rows?.header === undefined ? {} : { rowHeader: rows.header }), ...(identity === undefined ? {} : { identity }), ...(crumbs === undefined ? {} : { crumbs }), ...(embedded === undefined ? {} : { embedded }), ...(surface === undefined ? {} : { surface }), ...(search === undefined ? {} : { search }), ...(actions === undefined ? {} : { actions }), ...(pagination === undefined ? {} : { pagination }), ...(views === undefined ? {} : { views }), ...(metrics === undefined ? {} : { metrics }), ...(table === undefined
72
104
  ? {}
73
105
  : {
74
- columns: table.columns,
106
+ /* Read-only: a cell that opens an editor is an action too. */
107
+ columns: readOnly
108
+ ? table.columns.map(({ edit: _edit, ...c }) => c)
109
+ : table.columns,
75
110
  ...(table.totals === undefined ? {} : { totals: table.totals }),
76
- ...(table.rowActions === undefined ? {} : { rowActions: table.rowActions }),
77
- ...(table.create === undefined ? {} : { create: table.create }),
111
+ ...(table.rowActions === undefined || readOnly
112
+ ? {}
113
+ : { rowActions: table.rowActions }),
114
+ ...(table.create === undefined || readOnly ? {} : { create: table.create }),
78
115
  ...(table.visibleColumnIds === undefined
79
116
  ? {}
80
117
  : { visibleColumnIds: table.visibleColumnIds }),
81
118
  ...(table.onVisibleColumnIdsChange === undefined
82
119
  ? {}
83
120
  : { onVisibleColumnIdsChange: table.onVisibleColumnIdsChange }),
84
- }), ...(board?.card === undefined ? {} : { card: board.card }), ...(sheet?.columns === undefined || sheet.cell === undefined
121
+ }), ...(board?.card === undefined ? {} : { card: board.card }), ...(board?.stages === undefined ? {} : { boardStages: board.stages }), ...(sheet?.columns === undefined || sheet.cell === undefined
85
122
  ? {}
86
- : { sheet: sheet }), ...(report === undefined ? {} : { report }), ...(pivot === undefined ? {} : { pivot }), ...(presents.length === 0 ? {} : { presents }), ...(present === undefined ? {} : { present }), ...(onPresentChange === undefined ? {} : { onPresentChange }), ...(group === undefined ? {} : { group }), ...(selection === undefined ? {} : { selection }), ...(sort === undefined ? {} : { sort }), ...(onSortChange === undefined ? {} : { onSortChange }), ...(sortable === undefined ? {} : { sortable }), ...(onOpen === undefined ? {} : { onOpen }), ...(onPeek === undefined ? {} : { onPeek }), ...(isPeeked === undefined ? {} : { isPeeked }), ...(state === undefined ? {} : { state }), ...(filtered === undefined ? {} : { filtered }), ...(empty === undefined ? {} : { empty }), children: rest.length === 0 ? undefined : rest }));
123
+ : { sheet: sheet }), ...(report === undefined ? {} : { report }), ...(pivot === undefined ? {} : { pivot }), ...(calendar === undefined ? {} : { calendar }), ...(gantt === undefined ? {} : { gantt }), ...(timeline === undefined ? {} : { timeline }), ...(presents.length === 0 ? {} : { presents }), ...(present === undefined ? {} : { present }), ...(onPresentChange === undefined ? {} : { onPresentChange }), ...(group === undefined ? {} : { group }), ...(selection === undefined ? {} : { selection }), ...(sort === undefined ? {} : { sort }), ...(onSortChange === undefined ? {} : { onSortChange }), ...(sortable === undefined ? {} : { sortable }), ...(onOpen === undefined ? {} : { onOpen }), ...(onPeek === undefined ? {} : { onPeek }), ...(isPeeked === undefined ? {} : { isPeeked }), ...(rowClick === undefined ? {} : { rowClick }), ...(onChoose === undefined || readOnly ? {} : { onChoose }), ...(state === undefined ? {} : { state }), ...(filtered === undefined ? {} : { filtered }), ...(empty === undefined ? {} : { empty }), children: rest.length === 0 ? undefined : rest }));
87
124
  }
88
125
  List.Bar = Bar;
89
126
  List.Crumbs = Crumbs;
@@ -99,3 +136,6 @@ List.Board = Board;
99
136
  List.Sheet = SheetSlot;
100
137
  List.Report = Report;
101
138
  List.Pivot = Pivot;
139
+ List.Calendar = CalendarSlot;
140
+ List.Gantt = GanttSlot;
141
+ List.Timeline = TimelineSlot;
@@ -1,5 +1,5 @@
1
1
  import type { ListViewProps } from "./types.js";
2
- export declare function ListView<T extends object>({ items, keyOf, identity, crumbs, embedded, surface: requestedSurface, metrics, search, pagination, views, actions, row, rowHeader, columns, visibleColumnIds, onVisibleColumnIdsChange, card, sheet, report, pivot, present: requested, presents, onPresentChange, sort, onSortChange, sortable, totals, rowActions, create, group, selection, onOpen, onPeek, state, filtered, empty, children, }: ListViewProps<T>): import("react").JSX.Element;
2
+ export declare function ListView<T extends object>({ items, keyOf, identity, crumbs, embedded, surface: requestedSurface, metrics, search, pagination, views, actions, row, rowHeader, columns, visibleColumnIds, onVisibleColumnIdsChange, card, boardStages, calendar, gantt, timeline, sheet, report, pivot, present: requested, presents, onPresentChange, sort, onSortChange, sortable, totals, rowActions, create, group, selection, onOpen, onPeek, rowClick, onChoose, state, filtered, empty, children, }: ListViewProps<T>): import("react").JSX.Element;
3
3
  /** What a list offers when it fails and can be retried. */
4
4
  export declare function RetryAction({ onRetry }: {
5
5
  onRetry: () => void;