@remit/ui 0.0.234 → 0.0.236
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/components/ErrorBanner.js +3 -3
- package/dist/components/ErrorState.js +3 -3
- package/dist/components/KeyboardShortcutsModal.js +1 -1
- package/dist/components/account-menu.js +1 -1
- package/dist/components/account-service-status.js +2 -2
- package/dist/components/address-display.js +1 -1
- package/dist/components/address-tag.js +1 -1
- package/dist/components/agenda-flow.d.ts +21 -0
- package/dist/components/agenda-flow.js +1 -1
- package/dist/components/agenda-panels.js +1 -1
- package/dist/components/app-switcher.js +1 -1
- package/dist/components/attachment-list.js +3 -3
- package/dist/components/attendee-row.js +1 -1
- package/dist/components/auto-moved-badge.js +1 -1
- package/dist/components/banner.js +1 -1
- package/dist/components/brief-empty.js +2 -2
- package/dist/components/brief-section.js +1 -1
- package/dist/components/button.d.ts +0 -1
- package/dist/components/calendar-clash-strip.js +1 -1
- package/dist/components/calendar-event-chip-content.js +1 -1
- package/dist/components/calendar-event-popup.js +2 -2
- package/dist/components/calendar-event-sidebar.js +1 -1
- package/dist/components/calendar-failure-note.js +1 -1
- package/dist/components/calendar-guests.js +2 -2
- package/dist/components/calendar-invite-card.js +2 -2
- package/dist/components/calendar-list.js +2 -2
- package/dist/components/calendar-parse-badge.js +2 -2
- package/dist/components/calendar-quick-create.js +1 -1
- package/dist/components/calendar-screen-toolbar.js +1 -1
- package/dist/components/calendar-side-pane.js +1 -1
- package/dist/components/calendar-suggestion-list.js +1 -1
- package/dist/components/calendar-task-popup.js +3 -3
- package/dist/components/calendar-time-grid.js +1 -1
- package/dist/components/checkbox.js +1 -1
- package/dist/components/compose-action-bar.js +3 -3
- package/dist/components/compose-attachments.js +3 -3
- package/dist/components/compose-fab.js +1 -1
- package/dist/components/compose-header.js +1 -1
- package/dist/components/compose-language-setting.js +1 -1
- package/dist/components/compose-smtp-missing-banner.js +2 -2
- package/dist/components/danger-zone-section.js +2 -2
- package/dist/components/event-editor-pane.js +1 -1
- package/dist/components/event-editor.js +1 -1
- package/dist/components/event-suggestion-card.js +2 -2
- package/dist/components/filter-clause-chip.js +1 -1
- package/dist/components/filter-preview-count.js +4 -4
- package/dist/components/flow-screen.js +1 -1
- package/dist/components/folder-manage-actions.js +2 -2
- package/dist/components/folder-mutation-dialog.js +2 -2
- package/dist/components/folder-rename-dialog.js +1 -1
- package/dist/components/folder-role.js +2 -2
- package/dist/components/folder-row.js +2 -2
- package/dist/components/folder-tree-picker.js +1 -1
- package/dist/components/input.d.ts +0 -1
- package/dist/components/intelligence-calendar.js +1 -1
- package/dist/components/intelligence-panel.js +2 -2
- package/dist/components/intelligence-toggle.js +1 -1
- package/dist/components/list-result-header.js +1 -1
- package/dist/components/mail-action-toolbar.js +2 -2
- package/dist/components/mail-header.js +1 -1
- package/dist/components/mcp-connected-apps-page.js +1 -1
- package/dist/components/mcp-permission-list.js +1 -1
- package/dist/components/message-list-pane.js +1 -1
- package/dist/components/message-list-state.js +3 -3
- package/dist/components/message-report-dialog.js +1 -1
- package/dist/components/message-row.js +1 -1
- package/dist/components/message-settlement.js +1 -1
- package/dist/components/mini-month.js +1 -1
- package/dist/components/mobile-message-action-bar.js +2 -2
- package/dist/components/mobile-reading-pane.js +1 -1
- package/dist/components/mobile-search-view.js +1 -1
- package/dist/components/nav-sidebar.js +5 -5
- package/dist/components/nav-toggle-button.js +1 -1
- package/dist/components/new-folder-action.js +1 -1
- package/dist/components/outbox-row.js +2 -2
- package/dist/components/outbox-status-badge.d.ts +1 -1
- package/dist/components/outbox-status-badge.js +6 -6
- package/dist/components/password-input.js +1 -1
- package/dist/components/popover-menu.js +1 -1
- package/dist/components/quarantine-entry-row.js +1 -1
- package/dist/components/quarantine-section.js +2 -2
- package/dist/components/quoted-text.js +1 -1
- package/dist/components/reading-pane-empty.js +1 -1
- package/dist/components/reading-pane.js +1 -1
- package/dist/components/refresh-button.js +2 -2
- package/dist/components/rescue-banner.js +1 -1
- package/dist/components/rescue-candidate-row.js +1 -1
- package/dist/components/rescue-from-spam-flow.js +3 -3
- package/dist/components/rescue-sender-group.js +1 -1
- package/dist/components/rich-text-correction-menu.js +1 -1
- package/dist/components/rich-text-spellcheck-notice.js +3 -3
- package/dist/components/rich-text-toolbar.js +1 -1
- package/dist/components/role-appointment-list.js +1 -1
- package/dist/components/role-appointment-prompt.js +3 -3
- package/dist/components/row-actions.js +2 -2
- package/dist/components/search-chip-input.js +1 -1
- package/dist/components/search-conversion-notice.js +1 -1
- package/dist/components/search-results.js +2 -2
- package/dist/components/search-token-chip.js +1 -1
- package/dist/components/select.d.ts +0 -1
- package/dist/components/select.js +1 -1
- package/dist/components/selection-top-bar.js +2 -2
- package/dist/components/selection-wizard.js +5 -5
- package/dist/components/self-update-confirm-dialog.js +1 -1
- package/dist/components/self-update-progress-overlay.js +3 -3
- package/dist/components/self-update-section.js +5 -5
- package/dist/components/sender-trust-indicator.js +1 -1
- package/dist/components/settings-screen.js +2 -2
- package/dist/components/shell-top-bar.d.ts +24 -0
- package/dist/components/shell-top-bar.js +1 -25
- package/dist/components/slide-panel.js +1 -1
- package/dist/components/swipeable-row.js +3 -3
- package/dist/components/sync-warning-row.js +1 -1
- package/dist/components/sync-warning-section.js +2 -2
- package/dist/components/touch-list.js +1 -1
- package/dist/components/wizard.js +1 -1
- package/dist/icons.d.ts +109 -0
- package/dist/icons.js +109 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/merge-props.d.ts +8 -0
- package/dist/lib/merge-props.js +29 -0
- package/dist/lib/use-long-press.js +1 -1
- package/package.json +6 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { CircleAlert, CircleCheckBig, RefreshCw } from "../icons.js";
|
|
3
3
|
import { cn } from "../lib/cn.js";
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
/**
|
|
@@ -19,7 +19,7 @@ export function RefreshButton({ state, onRefresh, label, errorMessage, hasUpdate
|
|
|
19
19
|
const busy = state === "refreshing";
|
|
20
20
|
const failed = state === "error";
|
|
21
21
|
const succeeded = state === "success";
|
|
22
|
-
const icon = failed ? (_jsx(
|
|
22
|
+
const icon = failed ? (_jsx(CircleAlert, { className: "size-4 text-danger" })) : succeeded ? (_jsx(CircleCheckBig, { className: "size-4 text-positive" })) : (_jsx(RefreshCw, { className: cn("size-4", busy && "animate-spin") }));
|
|
23
23
|
const accessibleLabel = failed
|
|
24
24
|
? `${label} — failed: ${errorMessage ?? "try again"}`
|
|
25
25
|
: busy
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ShieldCheck } from "
|
|
2
|
+
import { ShieldCheck } from "../icons.js";
|
|
3
3
|
import { Banner } from "./banner.js";
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
const plural = (n) => (n === 1 ? "message" : "messages");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { CheckCircle2, HelpCircle, ShieldCheck } from "lucide-react";
|
|
3
2
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
3
|
+
import { CircleCheck, CircleQuestionMark, ShieldCheck } from "../icons.js";
|
|
4
4
|
import { Banner } from "./banner.js";
|
|
5
5
|
import { BottomSheet } from "./bottom-sheet.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
@@ -20,14 +20,14 @@ function ReviewStep({ candidates, selected, onToggle, onToggleGroup, onSelectAll
|
|
|
20
20
|
const [showWhy, setShowWhy] = useState(false);
|
|
21
21
|
const count = selected.size;
|
|
22
22
|
const groups = useMemo(() => groupRescueCandidatesBySender(candidates), [candidates]);
|
|
23
|
-
return (_jsxs("div", { className: "flex min-h-0 flex-col", children: [_jsxs("div", { className: "px-row-inset pb-2 pt-1", children: [_jsxs("div", { className: "flex items-start justify-between gap-2", children: [_jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold text-fg", children: [_jsx(ShieldCheck, { className: "size-4 text-positive", "aria-hidden": true }), "Rescue from Spam"] }), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(
|
|
23
|
+
return (_jsxs("div", { className: "flex min-h-0 flex-col", children: [_jsxs("div", { className: "px-row-inset pb-2 pt-1", children: [_jsxs("div", { className: "flex items-start justify-between gap-2", children: [_jsxs("h2", { className: "flex items-center gap-2 text-sm font-semibold text-fg", children: [_jsx(ShieldCheck, { className: "size-4 text-positive", "aria-hidden": true }), "Rescue from Spam"] }), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(CircleQuestionMark, { className: "size-3.5" }), onClick: () => setShowWhy((v) => !v), className: "-mr-1.5 -mt-0.5", children: "Why these?" })] }), _jsx("p", { className: "mt-1 text-2xs text-fg-subtle", children: "These look safe \u2014 from senders we can verify. Uncheck any sender that belongs in Spam, or open a sender to pick individual messages." }), showWhy && (_jsx("div", { className: "mt-2", children: _jsx(ExplainWhy, {}) }))] }), _jsxs("div", { className: "flex items-center justify-between px-row-inset pb-1.5", children: [_jsx("span", { className: "text-2xs font-medium text-fg-muted", children: `${count} of ${candidates.length} selected · ${groups.length} ${groups.length === 1 ? "sender" : "senders"}` }), _jsxs("span", { className: "flex gap-1", children: [_jsx(Button, { variant: "ghost", size: "sm", onClick: onSelectAll, children: "Select all" }), _jsx(Button, { variant: "ghost", size: "sm", onClick: onSelectNone, children: "Select none" })] })] }), _jsx("div", { className: "min-h-0 flex-1 divide-y divide-line overflow-y-auto border-y border-line", children: groups.map((group) => (_jsx(RescueSenderGroupRow, { group: group, selected: selected, onToggleGroup: onToggleGroup, onToggleMessage: onToggle }, group.key))) }), _jsxs("div", { className: "space-y-2 border-t border-line bg-surface px-row-inset py-3", children: [_jsx(Button, { variant: "primary", onClick: onContinue, className: "h-11 w-full font-semibold", children: `Continue with ${count} ${plural(count)}` }), _jsx(Button, { variant: "ghost", onClick: onCancel, className: "h-11 w-full", children: "Cancel" })] })] }));
|
|
24
24
|
}
|
|
25
25
|
function DestinationStep({ count, folders, delimiter, destination, onPick, onMove, onBack, }) {
|
|
26
26
|
const [picking, setPicking] = useState(false);
|
|
27
27
|
return (_jsxs("div", { className: "flex min-h-0 flex-col", children: [_jsxs("div", { className: "px-row-inset pb-2 pt-1", children: [_jsx("h2", { className: "text-sm font-semibold text-fg", children: "Where should they go?" }), _jsx("p", { className: "mt-1 text-2xs text-fg-subtle", children: "Pick a folder, then we move them out of Spam." })] }), _jsx("div", { className: "flex min-h-0 flex-1 flex-col overflow-y-auto px-row-inset py-2", children: picking ? (_jsx("div", { className: "flex min-h-0 flex-1 overflow-hidden rounded-xl border border-line bg-surface", children: _jsx(FolderTreePicker, { folders: folders, selectedId: destination, delimiter: delimiter, onSelect: onPick, onCancel: () => setPicking(false) }) })) : (_jsxs("div", { className: "rounded-xl border border-line bg-surface-sunken p-3", children: [_jsx("p", { className: "text-2xs text-fg-subtle", children: "Destination" }), _jsx("p", { className: "mt-0.5 text-sm font-medium text-fg", children: folderLabel(folders, destination) }), _jsx(Button, { variant: "ghost", size: "sm", onClick: () => setPicking(true), className: "mt-2 px-0", children: "Move to a different folder" })] })) }), _jsxs("div", { className: "space-y-2 border-t border-line bg-surface px-row-inset py-3", children: [_jsx("p", { className: "text-2xs text-fg-subtle", children: rescueMoveConsequence(count, folderLabel(folders, destination)) }), _jsx(Button, { variant: "primary", onClick: onMove, className: "h-11 w-full font-semibold", children: `Move ${count} out of Spam` }), _jsx(Button, { variant: "ghost", onClick: onBack, className: "h-11 w-full", children: "Back" })] })] }));
|
|
28
28
|
}
|
|
29
29
|
function DoneStep({ count, destinationLabel, onClose, }) {
|
|
30
|
-
return (_jsxs("div", { className: "flex min-h-0 flex-col", children: [_jsxs("div", { className: "flex flex-1 flex-col items-center justify-center gap-3 px-row-inset py-10 text-center", children: [_jsx(
|
|
30
|
+
return (_jsxs("div", { className: "flex min-h-0 flex-col", children: [_jsxs("div", { className: "flex flex-1 flex-col items-center justify-center gap-3 px-row-inset py-10 text-center", children: [_jsx(CircleCheck, { className: "size-10 text-positive", "aria-hidden": true }), _jsx("p", { className: "text-base font-semibold text-fg", children: `Moved ${count} ${plural(count)} out of Spam.` }), _jsx("p", { className: "text-2xs text-fg-subtle", children: `You'll find them in ${destinationLabel}.` })] }), _jsx("div", { className: "border-t border-line bg-surface px-row-inset py-3", children: _jsx(Button, { variant: "primary", onClick: onClose, className: "h-11 w-full font-semibold", children: "Done" }) })] }));
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Review-and-rescue flow for messages that landed in Spam but come from senders
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronDown, ChevronRight, ShieldCheck } from "lucide-react";
|
|
3
2
|
import { useState } from "react";
|
|
3
|
+
import { ChevronDown, ChevronRight, ShieldCheck } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { Avatar } from "./avatar.js";
|
|
6
6
|
import { Badge } from "./badge.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { BookPlus, EyeOff } from "lucide-react";
|
|
3
2
|
import { useEffect, useRef } from "react";
|
|
3
|
+
import { BookPlus, EyeOff } from "../icons.js";
|
|
4
4
|
import { DESKTOP_MEDIA_QUERY } from "../lib/layout-breakpoints.js";
|
|
5
5
|
import { useOverlayScope } from "../lib/overlay-scope.js";
|
|
6
6
|
import { useRovingFocus } from "../lib/roving-focus.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AlertCircle, Loader2 } from "lucide-react";
|
|
3
2
|
import { useEffect, useState } from "react";
|
|
3
|
+
import { CircleAlert, LoaderCircle } from "../icons.js";
|
|
4
4
|
import { formatByteSize } from "../lib/attachment-file.js";
|
|
5
5
|
import { languageLabel } from "../lib/compose-language.js";
|
|
6
6
|
/**
|
|
@@ -47,9 +47,9 @@ export function RichTextSpellcheckNotice({ status, standDown, onCancel, onRetry,
|
|
|
47
47
|
return (_jsxs(Row, { tone: "quiet", children: [_jsxs("p", { className: "min-w-0 flex-1 text-fg-muted", children: [languageLabel(status.language), " spelling is left to the browser."] }), _jsx("button", { type: "button", onClick: onRetry, "data-testid": "spellcheck-retry", className: "shrink-0 font-medium text-accent hover:underline", children: "Download again" })] }));
|
|
48
48
|
}
|
|
49
49
|
if (status.state === "failed") {
|
|
50
|
-
return (_jsxs(Row, { tone: "danger", children: [_jsx(
|
|
50
|
+
return (_jsxs(Row, { tone: "danger", children: [_jsx(CircleAlert, { className: "mt-0.5 size-3.5 shrink-0 text-danger", "aria-hidden": true }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("p", { className: "font-medium text-danger", children: ["The ", languageLabel(status.language), " dictionary did not load."] }), _jsxs("p", { className: "mt-0.5 text-fg-muted", "data-testid": "spellcheck-detail", children: [status.detail, ". The browser is still checking your spelling."] })] }), _jsxs("div", { className: "flex shrink-0 items-center gap-3", children: [_jsx("button", { type: "button", onClick: onRetry, "data-testid": "spellcheck-retry", className: "font-medium text-accent hover:underline", children: "Try again" }), _jsx("a", { href: spellcheckReportUrl(status.language, status.detail), target: "_blank", rel: "noreferrer", "data-testid": "spellcheck-report", className: "font-medium text-accent hover:underline", children: "Report this" })] })] }));
|
|
51
51
|
}
|
|
52
52
|
if (!opening || !waited)
|
|
53
53
|
return null;
|
|
54
|
-
return (_jsxs(Row, { tone: "quiet", children: [_jsx(
|
|
54
|
+
return (_jsxs(Row, { tone: "quiet", children: [_jsx(LoaderCircle, { className: "mt-0.5 size-3.5 shrink-0 animate-spin text-fg-subtle", "aria-hidden": true }), _jsxs("p", { className: "min-w-0 flex-1 text-fg-muted", children: ["Downloading the ", languageLabel(status.language), " dictionary", status.bytesTotal > 0 ? ` (${formatByteSize(status.bytesTotal)})` : "", "… ", _jsxs("span", { "data-testid": "spellcheck-progress", children: [formatByteSize(status.bytesLoaded), " so far"] })] }), _jsx("button", { type: "button", onClick: onCancel, "data-testid": "spellcheck-cancel", className: "shrink-0 font-medium text-accent hover:underline", children: "Cancel" })] }));
|
|
55
55
|
}
|
|
@@ -5,8 +5,8 @@ import { $createQuoteNode, $isQuoteNode } from "@lexical/rich-text";
|
|
|
5
5
|
import { $setBlocksType } from "@lexical/selection";
|
|
6
6
|
import { $findMatchingParent, mergeRegister } from "@lexical/utils";
|
|
7
7
|
import { $createParagraphNode, $getSelection, $isRangeSelection, CAN_REDO_COMMAND, CAN_UNDO_COMMAND, COMMAND_PRIORITY_LOW, FORMAT_TEXT_COMMAND, REDO_COMMAND, SELECTION_CHANGE_COMMAND, UNDO_COMMAND, } from "lexical";
|
|
8
|
-
import { Bold, Italic, Link, Quote, Redo2, Undo2 } from "lucide-react";
|
|
9
8
|
import { useCallback, useEffect, useRef, useState } from "react";
|
|
9
|
+
import { Bold, Italic, Link, Quote, Redo2, Undo2 } from "../icons.js";
|
|
10
10
|
const ToolbarButton = ({ isActive, onClick, children, title, }) => (_jsx("button", { type: "button", onMouseDown: (e) => {
|
|
11
11
|
e.preventDefault();
|
|
12
12
|
onClick();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { Check, Folder } from "lucide-react";
|
|
3
2
|
import { useEffect, useId, useRef, useState } from "react";
|
|
3
|
+
import { Check, Folder } from "../icons.js";
|
|
4
4
|
import { folderLeaf } from "../lib/folder-tree.js";
|
|
5
5
|
import { Banner } from "./banner.js";
|
|
6
6
|
import { Button } from "./button.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { AlertTriangle, Loader2 } from "lucide-react";
|
|
3
2
|
import { useEffect, useRef } from "react";
|
|
3
|
+
import { LoaderCircle, TriangleAlert } from "../icons.js";
|
|
4
4
|
import { Banner } from "./banner.js";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { Dialog } from "./dialog.js";
|
|
@@ -129,9 +129,9 @@ export const RoleAppointmentPrompt = ({ open, reason, action, folders, delimiter
|
|
|
129
129
|
return null;
|
|
130
130
|
if (pending) {
|
|
131
131
|
const words = pendingCopy(phase, action, selected?.label ?? "", inPlace);
|
|
132
|
-
return (_jsx(Dialog, { open: open, onClose: () => { }, title: copy.title, children: _jsxs("div", { ref: pendingRef, "data-escape-owner": true, tabIndex: -1, className: "flex flex-col items-center gap-3 px-5 py-10 text-center outline-none", children: [_jsx(
|
|
132
|
+
return (_jsx(Dialog, { open: open, onClose: () => { }, title: copy.title, children: _jsxs("div", { ref: pendingRef, "data-escape-owner": true, tabIndex: -1, className: "flex flex-col items-center gap-3 px-5 py-10 text-center outline-none", children: [_jsx(LoaderCircle, { className: "size-8 animate-spin text-accent-2" }), _jsx("p", { className: "text-sm font-medium text-fg", children: words.headline }), _jsx("p", { className: "text-xs text-fg-muted", role: "status", "aria-live": "polite", children: words.status })] }) }));
|
|
133
133
|
}
|
|
134
|
-
return (_jsxs(Dialog, { open: open, onClose: onCancel, title: copy.title, children: [_jsxs("header", { className: "flex items-center gap-2 border-b border-line px-5 py-3", children: [_jsx(
|
|
134
|
+
return (_jsxs(Dialog, { open: open, onClose: onCancel, title: copy.title, children: [_jsxs("header", { className: "flex items-center gap-2 border-b border-line px-5 py-3", children: [_jsx(TriangleAlert, { className: `size-4 shrink-0 ${expunges ? "text-danger" : "text-warning"}` }), _jsx("span", { className: "flex-1 text-sm font-semibold text-fg", children: copy.title })] }), _jsxs("div", { className: "flex max-h-[70vh] flex-col", children: [_jsxs("div", { className: "space-y-1 px-5 py-4", children: [_jsx("p", { className: "text-sm text-fg-muted", children: copy.description }), accountEmail && (_jsx("p", { className: "text-xs text-fg-subtle", children: accountEmail }))] }), phase.kind === "appoint-failed" && (_jsx("div", { className: "px-5 pb-3", children: _jsx(Banner, { tone: "danger", variant: "soft", children: failureCopy(phase.cause, action, selected?.label ?? "That folder") }) })), _jsx("p", { className: "px-5 pb-2 text-sm text-fg-muted", children: copy.pickerPrompt }), _jsx("div", { className: "flex h-[26rem] min-h-0 flex-1 overflow-hidden", children: _jsx(FolderTreePicker, { folders: folders, selectedId: selectedId, delimiter: delimiter, onSelect: onSelect, onCreateFolder: reason === "none" ? onCreateFolder : undefined, onCancel: onCancel, labels: {
|
|
135
135
|
treeAriaLabel: "Folders on this account",
|
|
136
136
|
optionLabel: (folder) => `Set ${folder.label}${folder.messageCount === undefined
|
|
137
137
|
? ""
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Loader2 } from "lucide-react";
|
|
3
2
|
import { useState } from "react";
|
|
3
|
+
import { LoaderCircle } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
|
-
const spinner = () => _jsx(
|
|
6
|
+
const spinner = () => (_jsx(LoaderCircle, { className: "size-3.5 animate-spin" }));
|
|
7
7
|
const actionLabel = (label, iconOnly) => iconOnly ? _jsx("span", { className: "sr-only", children: label }) : label;
|
|
8
8
|
/**
|
|
9
9
|
* One shared per-row action cluster. Secondary actions plus an optional
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Search, X } from "lucide-react";
|
|
3
2
|
import { useCallback, useEffect, useId, useRef, useState } from "react";
|
|
3
|
+
import { Search, X } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { resolveAgainstOverlays } from "../lib/overlay-scope.js";
|
|
6
6
|
import { focusAfterRemoval, resolveChipInputKey, resolveChipKey, } from "./search-chip-keys.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { FolderInput, Info } from "
|
|
2
|
+
import { FolderInput, Info } from "../icons.js";
|
|
3
3
|
import { droppedFacetsCopy, hasConversionNotice, scopedOutCopy, } from "./search-conversion.js";
|
|
4
4
|
function NoticeRow({ icon, children, }) {
|
|
5
5
|
return (_jsxs("li", { className: "flex items-start gap-2", children: [_jsx("span", { className: "mt-0.5 shrink-0 text-fg-subtle", "aria-hidden": "true", children: icon }), _jsx("span", { children: children })] }));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronDown, Clock, Filter } from "lucide-react";
|
|
3
2
|
import { useId, useState } from "react";
|
|
3
|
+
import { ChevronDown, Clock, Funnel } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { BlockedReason } from "./blocked-reason.js";
|
|
6
6
|
import { SearchResultRow } from "./search-result-row.js";
|
|
@@ -58,7 +58,7 @@ export function MakeFilterAction({ onClick, blockedReason, }) {
|
|
|
58
58
|
onClick();
|
|
59
59
|
}, "aria-describedby": blockedReason ? reasonId : undefined, className: cn("flex w-full items-center gap-1.5 rounded-md px-2 py-1.5 text-left text-xs font-medium transition-colors", blockedReason
|
|
60
60
|
? "text-fg-subtle opacity-55"
|
|
61
|
-
: "text-accent hover:bg-surface-sunken"), children: [_jsx(
|
|
61
|
+
: "text-accent hover:bg-surface-sunken"), children: [_jsx(Funnel, { className: "size-3.5 shrink-0", "aria-hidden": "true" }), _jsx("span", { children: "Make this a filter" })] }), blockedReason && (_jsx(BlockedReason, { id: reasonId, reason: blockedReason, nudged: nudged, className: "px-2 pt-1 text-2xs text-warning" }))] }));
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
64
64
|
* One result section: a sticky header that collapses the section to just its
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { X } from "lucide-react";
|
|
3
2
|
import { forwardRef } from "react";
|
|
3
|
+
import { X } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
const toneClass = {
|
|
6
6
|
filter: "border-line bg-surface-sunken text-fg-muted",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ReactNode, Ref, SelectHTMLAttributes } from "react";
|
|
2
2
|
export interface SelectProps extends SelectHTMLAttributes<HTMLSelectElement> {
|
|
3
|
-
/** Optional leading icon (lucide-react element). */
|
|
4
3
|
icon?: ReactNode;
|
|
5
4
|
/** So a surface blocked on this choice can put the cursor on it. */
|
|
6
5
|
ref?: Ref<HTMLSelectElement>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { ArrowLeft, FolderInput,
|
|
2
|
+
import { ArrowLeft, FolderInput, LoaderCircle, MailOpen, ShieldAlert, Sparkles, Trash, } from "../icons.js";
|
|
3
3
|
import { Banner } from "./banner.js";
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
import { Checkbox } from "./checkbox.js";
|
|
@@ -44,5 +44,5 @@ export function SelectionTopBar({ title, count, onCancel, onDelete, onMove, onOr
|
|
|
44
44
|
onSelect: onMarkRead,
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
return (_jsxs("header", { "data-selection-bar": "", className: "flex shrink-0 flex-col border-b border-line bg-surface-sunken", children: [_jsxs("div", { "data-selection-bar-row": "actions", className: "flex h-pane-header items-center gap-1 px-row-inset", children: [selecting ? (_jsx(Button, { variant: "ghost", size: "touch", icon: _jsx(ArrowLeft, { className: "size-5" }), onClick: onCancel, "aria-label": "Cancel selection", className: "-ml-2 shrink-0" })) : (navSlot), selectAll && (_jsx(SelectAllToggle, { selectAll: selectAll, selecting: selecting, className: "hidden shrink-0 pr-2 md:flex" })), selecting ? (_jsx("span", { "data-selection-count": "", className: "min-w-0 flex-1 truncate px-1 text-sm font-medium text-fg", role: "status", "aria-live": "polite", children: statusLabel ?? defaultLabel })) : searchField ? (_jsx("div", { className: "flex min-w-0 flex-1 items-center gap-1", children: searchField })) : (_jsxs(_Fragment, { children: [_jsx("h1", { className: "min-w-0 flex-1 truncate px-1 text-sm font-semibold text-fg", children: title }), titleMeta, searchSlot] })), selecting && !isCounting && (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", size: "touch", icon: isBusy ? (_jsx(
|
|
47
|
+
return (_jsxs("header", { "data-selection-bar": "", className: "flex shrink-0 flex-col border-b border-line bg-surface-sunken", children: [_jsxs("div", { "data-selection-bar-row": "actions", className: "flex h-pane-header items-center gap-1 px-row-inset", children: [selecting ? (_jsx(Button, { variant: "ghost", size: "touch", icon: _jsx(ArrowLeft, { className: "size-5" }), onClick: onCancel, "aria-label": "Cancel selection", className: "-ml-2 shrink-0" })) : (navSlot), selectAll && (_jsx(SelectAllToggle, { selectAll: selectAll, selecting: selecting, className: "hidden shrink-0 pr-2 md:flex" })), selecting ? (_jsx("span", { "data-selection-count": "", className: "min-w-0 flex-1 truncate px-1 text-sm font-medium text-fg", role: "status", "aria-live": "polite", children: statusLabel ?? defaultLabel })) : searchField ? (_jsx("div", { className: "flex min-w-0 flex-1 items-center gap-1", children: searchField })) : (_jsxs(_Fragment, { children: [_jsx("h1", { className: "min-w-0 flex-1 truncate px-1 text-sm font-semibold text-fg", children: title }), titleMeta, searchSlot] })), selecting && !isCounting && (_jsxs(_Fragment, { children: [_jsx(Button, { variant: "ghost", size: "touch", icon: isBusy ? (_jsx(LoaderCircle, { className: "size-5 animate-spin" })) : (_jsx(Trash, { className: "size-5 text-danger" })), onClick: isBusy ? undefined : onDelete, "aria-label": "Move selected messages to Trash", "aria-busy": isBusy || undefined, className: "shrink-0" }), !isBusy && onMove && (_jsx(Button, { variant: "ghost", size: "touch", icon: _jsx(FolderInput, { className: "size-5" }), onClick: onMove, "aria-label": "Move selected messages", className: "shrink-0" })), !isBusy && onOrganize && (_jsx(Button, { variant: "ghost", size: "touch", icon: _jsx(Sparkles, { className: "size-5" }), onClick: onOrganize, "aria-label": "Organize selected messages", className: "shrink-0" }))] })), selecting && (_jsx(PopoverMenu, { triggerLabel: "More actions", items: overflowItems, className: "shrink-0", children: !isBusy && !isCounting && overflowSlot }))] }), !selecting && idleSlot, selecting && selectAll && (_jsx("div", { "data-selection-bar-row": "select-all", className: "px-row-inset pb-2 md:hidden", children: _jsx(SelectAllToggle, { selectAll: selectAll, selecting: selecting, className: "w-full" }) })), progress && (_jsx("div", { className: "px-row-inset pb-2", children: _jsx(ProgressBar, { value: progress.value, max: progress.max, tone: progress.tone }) })), notice && (_jsx(Banner, { "data-selection-notice": "", tone: notice.tone, variant: "soft", role: "status", "aria-live": "polite", className: "mx-row-inset mb-2", children: _jsxs("div", { className: "flex items-center justify-between gap-2", children: [notice.text && _jsx("span", { children: notice.text }), notice.action && (_jsx(Button, { variant: "ghost", size: "md", onClick: notice.action.onClick, className: "-my-1 min-h-11 shrink-0", children: notice.action.label }))] }) }))] }));
|
|
48
48
|
}
|
|
@@ -9,8 +9,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
9
9
|
* Everything here is props-in. The step is held by id, the answers and the
|
|
10
10
|
* callbacks belong to whoever drives it, and nothing touches history.
|
|
11
11
|
*/
|
|
12
|
-
import { AlertTriangle, ArrowLeft, ArrowRight, Check, Loader2, X, } from "lucide-react";
|
|
13
12
|
import { Fragment, useEffect, useId, useRef } from "react";
|
|
13
|
+
import { ArrowLeft, ArrowRight, Check, LoaderCircle, TriangleAlert, X, } from "../icons.js";
|
|
14
14
|
import { cn } from "../lib/cn.js";
|
|
15
15
|
import { backExits, crossAccountMatchReason, ESCALATED_MATCH_HINT, ESCALATED_REVIEW_WARNING, ESCALATED_SCOPE_FALLBACK, escalatedMatchLabel, matchDoorHint, matchDoorLabel, matchDoorsFor, matchPhrase, matchSummary, runCopy, SAMPLE_EMPTY_COPY, stepIndex, stepLabel, unreadableDraftClauses, verbCopy, } from "../lib/wizard-steps.js";
|
|
16
16
|
import { Badge } from "./badge.js";
|
|
@@ -158,7 +158,7 @@ export function ReviewStepBody({ verb, mode, selectedCount, clauses, matchOperat
|
|
|
158
158
|
};
|
|
159
159
|
const widened = mode !== "selected";
|
|
160
160
|
const persists = scope === "standing" || scope === "until";
|
|
161
|
-
return (_jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "rounded-lg border border-line bg-surface p-3", children: [_jsxs("p", { className: "text-sm text-fg", children: [_jsx("span", { className: "font-semibold", children: label }), " ", matchPhrase(description), folder ? ` to ${folder}` : "", persists && (_jsxs(_Fragment, { children: [" ", "and ", _jsx("span", { className: "font-medium", children: "save a rule" }), " that keeps doing it"] })), scope === "until" && until && ` until ${until}`, "."] }), widened && (_jsxs("p", { className: "mt-2 flex items-start gap-1.5 text-xs text-warning", children: [_jsx(
|
|
161
|
+
return (_jsxs("div", { className: "space-y-4", children: [_jsxs("div", { className: "rounded-lg border border-line bg-surface p-3", children: [_jsxs("p", { className: "text-sm text-fg", children: [_jsx("span", { className: "font-semibold", children: label }), " ", matchPhrase(description), folder ? ` to ${folder}` : "", persists && (_jsxs(_Fragment, { children: [" ", "and ", _jsx("span", { className: "font-medium", children: "save a rule" }), " that keeps doing it"] })), scope === "until" && until && ` until ${until}`, "."] }), widened && (_jsxs("p", { className: "mt-2 flex items-start gap-1.5 text-xs text-warning", children: [_jsx(TriangleAlert, { className: "mt-px size-3.5 shrink-0" }), mode === "escalated"
|
|
162
162
|
? ESCALATED_REVIEW_WARNING
|
|
163
163
|
: "This covers messages not shown in the list."] }))] }), _jsxs("dl", { className: "divide-y divide-line overflow-hidden rounded-lg border border-line bg-surface text-xs", children: [_jsxs("div", { className: "flex justify-between gap-3 px-3 py-2", children: [_jsx("dt", { className: "text-fg-muted", children: "Action" }), _jsx("dd", { className: "font-medium", children: label })] }), _jsxs("div", { className: "flex justify-between gap-3 px-3 py-2", children: [_jsx("dt", { className: "shrink-0 text-fg-muted", children: "Apply to" }), _jsx("dd", { className: "truncate font-medium", children: matchSummary(description) })] }), folder && (_jsxs("div", { className: "flex justify-between gap-3 px-3 py-2", children: [_jsx("dt", { className: "text-fg-muted", children: "Destination" }), _jsx("dd", { className: "font-medium", children: folder })] })), scope && (_jsxs("div", { className: "flex justify-between gap-3 px-3 py-2", children: [_jsx("dt", { className: "text-fg-muted", children: "Scope" }), _jsxs("dd", { className: "font-medium", children: [scopeLabel(scope), scope === "until" && until ? ` · ${until}` : ""] })] })), ruleName !== undefined && (_jsxs("div", { className: "flex justify-between gap-3 px-3 py-2", children: [_jsx("dt", { className: "text-fg-muted", children: "Rule name" }), _jsx("dd", { className: "truncate font-medium", children: ruleName })] }))] }), _jsx(SelectionSample, { ...sample })] }));
|
|
164
164
|
}
|
|
@@ -173,12 +173,12 @@ const runOutcomeOf = (props) => ({
|
|
|
173
173
|
});
|
|
174
174
|
const runIcon = (tone) => {
|
|
175
175
|
if (tone === "progress") {
|
|
176
|
-
return _jsx(
|
|
176
|
+
return _jsx(LoaderCircle, { className: "size-10 animate-spin text-accent" });
|
|
177
177
|
}
|
|
178
178
|
if (tone === "warning")
|
|
179
|
-
return _jsx(
|
|
179
|
+
return _jsx(TriangleAlert, { className: "size-10 text-warning" });
|
|
180
180
|
if (tone === "danger")
|
|
181
|
-
return _jsx(
|
|
181
|
+
return _jsx(TriangleAlert, { className: "size-10 text-danger" });
|
|
182
182
|
return (_jsx("span", { className: "flex size-12 items-center justify-center rounded-full bg-accent-soft text-accent", children: _jsx(Check, { className: "size-6" }) }));
|
|
183
183
|
};
|
|
184
184
|
export function RunStepBody(props) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Download, ExternalLink } from "
|
|
2
|
+
import { Download, ExternalLink } from "../icons.js";
|
|
3
3
|
import { Button, ButtonLink } from "./button.js";
|
|
4
4
|
import { Dialog } from "./dialog.js";
|
|
5
5
|
import { formatReleaseDate } from "./self-update.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { AlertOctagon, Check, Loader2 } from "lucide-react";
|
|
3
2
|
import { useRef } from "react";
|
|
3
|
+
import { Check, LoaderCircle, OctagonAlert } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { useOverlayScope } from "../lib/overlay-scope.js";
|
|
6
6
|
import { useModalFocus } from "../lib/use-modal-focus.js";
|
|
@@ -28,7 +28,7 @@ export function SelfUpdateProgressOverlay({ target, phase, elapsedSeconds, }) {
|
|
|
28
28
|
const active = index === activeIndex;
|
|
29
29
|
return (_jsxs("li", { className: cn("flex items-center gap-3 rounded-sm border px-row-inset py-2 text-sm", active
|
|
30
30
|
? "border-line-strong bg-surface text-fg"
|
|
31
|
-
: "border-line bg-surface-sunken text-fg-subtle"), children: [done ? (_jsx(Check, { className: "size-4 shrink-0 text-positive", "aria-hidden": true })) : active ? (_jsx(
|
|
31
|
+
: "border-line bg-surface-sunken text-fg-subtle"), children: [done ? (_jsx(Check, { className: "size-4 shrink-0 text-positive", "aria-hidden": true })) : active ? (_jsx(LoaderCircle, { className: "size-4 shrink-0 animate-spin text-accent-2", "aria-hidden": true })) : (_jsx("span", { className: "size-4 shrink-0 rounded-full border border-line-strong" })), updatePhaseLabel(step)] }, step));
|
|
32
32
|
}) }), _jsxs("p", { "aria-live": "polite", className: "max-w-md text-xs text-fg-subtle", children: [_jsx("span", { className: "sr-only", children: `${updatePhaseLabel(phase)}. ` }), updateWaitNote(elapsedSeconds)] })] }));
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
@@ -40,5 +40,5 @@ export function SelfUpdateUnreachableScreen({ attemptedVersion, previousVersion,
|
|
|
40
40
|
const ref = useRef(null);
|
|
41
41
|
useModalFocus(ref, true);
|
|
42
42
|
const minutes = Math.max(1, Math.round(elapsedSeconds / 60));
|
|
43
|
-
return (_jsxs("div", { ref: ref, role: "alertdialog", "aria-modal": "true", "aria-labelledby": "self-update-unreachable-title", tabIndex: -1, className: overlayShell, children: [_jsx(
|
|
43
|
+
return (_jsxs("div", { ref: ref, role: "alertdialog", "aria-modal": "true", "aria-labelledby": "self-update-unreachable-title", tabIndex: -1, className: overlayShell, children: [_jsx(OctagonAlert, { className: "size-12 shrink-0 text-danger", "aria-hidden": true }), _jsxs("div", { className: "max-w-lg space-y-3", children: [_jsx("h1", { id: "self-update-unreachable-title", className: "text-lg font-semibold text-fg", children: "Remit has not answered since the restart" }), _jsxs("p", { className: "text-sm text-fg-muted", children: ["Installing ", attemptedVersion, " started ", minutes, " minute", minutes === 1 ? "" : "s", " ago and the server has been silent since. Your mail is safe at your provider \u2014 it was never part of the update."] }), _jsxs("p", { className: "text-sm text-fg-muted", children: ["Remit rolls back to ", previousVersion, " on its own when the new version fails to start, but this page cannot confirm that from here. Check the server directly:"] }), _jsx("code", { className: "block rounded-xs bg-surface-sunken px-3 py-2 text-left text-xs text-fg-muted", children: logsCommand })] }), _jsx("div", { className: "flex flex-wrap items-center justify-center gap-2", children: _jsx(Button, { size: "sm", onClick: onRetryConnection, children: "Try connecting again" }) })] }));
|
|
44
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { CheckCircle2, Clock, CloudOff, Download, ExternalLink, Loader2, RotateCcw, TriangleAlert, } from "lucide-react";
|
|
3
2
|
import { useState } from "react";
|
|
3
|
+
import { CircleCheck, Clock, CloudOff, Download, ExternalLink, LoaderCircle, RotateCcw, TriangleAlert, } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { Badge } from "./badge.js";
|
|
6
6
|
import { Banner } from "./banner.js";
|
|
@@ -51,9 +51,9 @@ export function SelfUpdateSection({ state, onCheck, onInstall, onDismissResult,
|
|
|
51
51
|
const body = (() => {
|
|
52
52
|
switch (state.status) {
|
|
53
53
|
case "upToDate":
|
|
54
|
-
return (_jsx(SectionRow, { children: _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(
|
|
54
|
+
return (_jsx(SectionRow, { children: _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(CircleCheck, { className: "size-4 shrink-0 text-positive", "aria-hidden": true }), _jsxs("p", { className: "text-sm text-fg", children: ["Remit ", state.version, " is the latest version.", _jsxs("span", { className: "text-fg-subtle", children: [" ", "Checked ", formatRelativeCheck(state.checkedAt, now), "."] })] })] }), _jsx(Button, { variant: "secondary", size: "sm", className: "shrink-0", onClick: handleCheck, children: "Check again" })] }) }));
|
|
55
55
|
case "checking":
|
|
56
|
-
return (_jsx(SectionRow, { children: _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(
|
|
56
|
+
return (_jsx(SectionRow, { children: _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(LoaderCircle, { className: "size-4 shrink-0 animate-spin text-fg-subtle", "aria-hidden": true }), _jsxs("p", { className: "text-sm text-fg-muted", children: ["Looking for a newer version. You are on ", state.version, "."] })] }), _jsx(Button, { variant: "secondary", size: "sm", className: "shrink-0", onClick: handleCheck, children: "Check again" })] }) }));
|
|
57
57
|
case "neverChecked":
|
|
58
58
|
return (_jsx(SectionRow, { children: _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 items-start gap-2", children: [_jsx(Clock, { className: "mt-0.5 size-4 shrink-0 text-fg-subtle", "aria-hidden": true }), _jsxs("p", { className: "text-sm text-fg-muted", children: ["No update check has run yet. Remit checks for updates on its own in the background.", state.lastCheckedAt !== undefined && (_jsxs("span", { className: "text-fg-subtle", children: [" ", "Last checked", " ", formatRelativeCheck(state.lastCheckedAt, now), "."] }))] })] }), _jsx(Button, { variant: "secondary", size: "sm", className: "shrink-0", onClick: handleCheck, children: "Check now" })] }) }));
|
|
59
59
|
case "checkFailed":
|
|
@@ -61,9 +61,9 @@ export function SelfUpdateSection({ state, onCheck, onInstall, onDismissResult,
|
|
|
61
61
|
case "available":
|
|
62
62
|
return (_jsx(SectionRow, { children: _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs("span", { className: "text-sm font-semibold text-fg", children: ["Remit ", state.release.version] }), _jsx(Badge, { tone: "accent", children: "update available" }), _jsxs("span", { className: "text-2xs text-fg-subtle", children: ["released ", formatReleaseDate(state.release.releasedAt), " \u00B7 you are on ", state.version] })] }), _jsx("p", { className: "text-sm text-fg-muted", children: state.release.summary }), _jsx("p", { className: "text-xs text-fg-subtle", children: "Installing restarts Remit, so mail stops loading for about a minute. If the new version does not come back up, the one you are running now is restored on its own." }), _jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs(Button, { size: "sm", icon: _jsx(Download, { className: "size-3.5" }), onClick: handleInstall, children: ["Install ", state.release.version] }), _jsx(ButtonLink, { variant: "secondary", size: "sm", external: true, href: state.release.releaseNotesUrl, icon: _jsx(ExternalLink, { className: "size-3.5" }), children: "Release notes" })] })] }) }));
|
|
63
63
|
case "applying":
|
|
64
|
-
return (_jsx(SectionRow, { children: _jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(
|
|
64
|
+
return (_jsx(SectionRow, { children: _jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(LoaderCircle, { className: "size-4 shrink-0 animate-spin text-accent-2", "aria-hidden": true }), _jsxs("p", { className: "text-sm text-fg-muted", children: ["Installing Remit ", state.target, ". The restart screen has the details."] })] }) }));
|
|
65
65
|
case "succeeded":
|
|
66
|
-
return (_jsxs(_Fragment, { children: [_jsx(Banner, { tone: "success", onDismiss: onDismissResult, children: _jsxs("div", { className: "space-y-1", children: [_jsxs("p", { className: "font-semibold", children: ["Updated to Remit ", state.version, "."] }), _jsxs("p", { children: ["You were on ", state.previousVersion, ".", " ", _jsx("a", { href: state.releaseNotesUrl, target: "_blank", rel: "noopener noreferrer", className: "underline", children: "See what changed" }), "."] })] }) }), _jsx(SectionRow, { children: _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(
|
|
66
|
+
return (_jsxs(_Fragment, { children: [_jsx(Banner, { tone: "success", onDismiss: onDismissResult, children: _jsxs("div", { className: "space-y-1", children: [_jsxs("p", { className: "font-semibold", children: ["Updated to Remit ", state.version, "."] }), _jsxs("p", { children: ["You were on ", state.previousVersion, ".", " ", _jsx("a", { href: state.releaseNotesUrl, target: "_blank", rel: "noopener noreferrer", className: "underline", children: "See what changed" }), "."] })] }) }), _jsx(SectionRow, { children: _jsxs("div", { className: "flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between", children: [_jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [_jsx(CircleCheck, { className: "size-4 shrink-0 text-positive", "aria-hidden": true }), _jsxs("p", { className: "text-sm text-fg", children: ["Remit ", state.version, " is running."] })] }), _jsx(Button, { variant: "secondary", size: "sm", className: "shrink-0", onClick: handleCheckAfterResult, children: "Check for updates" })] }) })] }));
|
|
67
67
|
case "rolledBack":
|
|
68
68
|
return (_jsx(SectionRow, { tone: "danger", children: _jsxs("div", { className: "space-y-3", children: [_jsxs("div", { className: "flex items-start gap-2", children: [_jsx(TriangleAlert, { className: "mt-0.5 size-4 shrink-0 text-danger", "aria-hidden": true }), _jsxs("div", { className: "min-w-0 space-y-1", children: [_jsxs("p", { className: "text-sm font-semibold text-fg", children: ["Remit ", state.attemptedVersion, " did not start. Remit reports that it put ", state.version, " back."] }), _jsxs("p", { className: "text-sm text-fg-muted", children: ["You are running ", state.version, " again. A failed update can still have changed things on the way \u2014 the log below is the only account of what it got as far as doing."] })] })] }), _jsxs("div", { className: "space-y-1", children: [_jsx("p", { className: "text-xs text-fg-subtle", children: "What Remit reported as the failure" }), _jsx("code", { className: "block rounded-xs bg-danger-soft px-2 py-1 text-2xs text-danger", children: state.reason })] }), _jsxs("div", { className: "space-y-1", children: [_jsx("p", { className: "text-xs text-fg-subtle", children: "Read the full log before trying again:" }), _jsx("code", { className: "block rounded-xs bg-surface-sunken px-2 py-1 text-2xs text-fg-muted", children: state.logsCommand })] }), _jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [_jsxs(Button, { variant: "secondary", size: "sm", icon: _jsx(RotateCcw, { className: "size-3.5" }), onClick: handleInstall, children: ["Try ", state.attemptedVersion, " again"] }), _jsxs(Button, { variant: "ghost", size: "sm", onClick: onDismissResult, children: ["Stay on ", state.version] })] })] }) }));
|
|
69
69
|
case "unreachable":
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { ChevronLeft, CircleHelp, Menu, X } from "lucide-react";
|
|
3
2
|
import { useState } from "react";
|
|
3
|
+
import { ChevronLeft, CircleQuestionMark, Menu, X } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { Avatar } from "./avatar.js";
|
|
6
6
|
import { Badge } from "./badge.js";
|
|
@@ -18,7 +18,7 @@ export function SettingsShell({ items, activeId, title, description, children, h
|
|
|
18
18
|
return (_jsxs("div", { className: "safe-area-frame flex h-dvh w-full overflow-hidden bg-canvas font-sans text-fg", children: [_jsxs("aside", { className: "hidden w-60 shrink-0 flex-col border-r border-line bg-surface-sunken lg:flex", children: [_jsx("div", { className: "flex h-pane-header shrink-0 items-center border-b border-line px-2", children: _jsxs("button", { type: "button", onClick: onBackToMail, className: "flex w-full items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg", children: [_jsx(ChevronLeft, { className: "size-4 text-fg-subtle" }), "Back to mail"] }) }), nav] }), navOpen && (_jsxs("div", { className: "fixed inset-0 z-50 flex lg:hidden", children: [_jsx("button", { type: "button", "aria-label": "Close menu", className: "absolute inset-0 bg-canvas/60", onClick: () => setNavOpen(false) }), _jsxs("aside", { className: "safe-area-frame relative flex w-72 max-w-[85%] flex-col border-r border-line bg-surface-sunken", children: [_jsxs("div", { className: "flex h-pane-header shrink-0 items-center justify-between border-b border-line px-2", children: [_jsxs("button", { type: "button", onClick: () => {
|
|
19
19
|
onBackToMail?.();
|
|
20
20
|
setNavOpen(false);
|
|
21
|
-
}, className: "flex items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg", children: [_jsx(ChevronLeft, { className: "size-4 text-fg-subtle" }), "Back to mail"] }), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(X, { className: "size-4" }), onClick: () => setNavOpen(false), "aria-label": "Close menu" })] }), nav] })] })), _jsxs("main", { className: "flex min-w-0 flex-1 flex-col", children: [_jsxs("header", { className: "flex h-pane-header shrink-0 items-center gap-3 border-b border-line px-3 lg:px-5", children: [onBackToMail && (_jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(ChevronLeft, { className: "size-4" }), className: "-ml-1 lg:hidden", onClick: onBackToMail, "aria-label": "Back to mail" })), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(Menu, { className: "size-4" }), className: "lg:hidden", onClick: () => setNavOpen(true), "aria-label": "Open settings menu" }), _jsx("h1", { className: "text-md font-semibold text-fg", children: title }), description && (_jsx("p", { className: "hidden min-w-0 truncate text-xs text-fg-subtle lg:block", children: description })), help && (_jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(
|
|
21
|
+
}, className: "flex items-center gap-2 rounded-md px-2 py-1 text-left text-sm text-fg-muted hover:bg-surface hover:text-fg", children: [_jsx(ChevronLeft, { className: "size-4 text-fg-subtle" }), "Back to mail"] }), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(X, { className: "size-4" }), onClick: () => setNavOpen(false), "aria-label": "Close menu" })] }), nav] })] })), _jsxs("main", { className: "flex min-w-0 flex-1 flex-col", children: [_jsxs("header", { className: "flex h-pane-header shrink-0 items-center gap-3 border-b border-line px-3 lg:px-5", children: [onBackToMail && (_jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(ChevronLeft, { className: "size-4" }), className: "-ml-1 lg:hidden", onClick: onBackToMail, "aria-label": "Back to mail" })), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(Menu, { className: "size-4" }), className: "lg:hidden", onClick: () => setNavOpen(true), "aria-label": "Open settings menu" }), _jsx("h1", { className: "text-md font-semibold text-fg", children: title }), description && (_jsx("p", { className: "hidden min-w-0 truncate text-xs text-fg-subtle lg:block", children: description })), help && (_jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(CircleQuestionMark, { className: "size-4" }), className: "ml-auto lg:hidden", onClick: () => setMobileHelpOpen((v) => !v), "aria-label": "Tips", "aria-expanded": mobileHelpOpen })), help && !showHelp && (_jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(CircleQuestionMark, { className: "size-4" }), className: "hidden ml-auto lg:inline-flex", onClick: onToggleHelp, "aria-label": "Show tips" }))] }), help && mobileHelpOpen && (_jsx("div", { className: "border-b border-line bg-surface-sunken px-row-inset py-3 text-xs leading-relaxed text-fg-muted lg:hidden", children: help })), flush ? (_jsx("div", { className: "flex min-h-0 flex-1 flex-col", children: children })) : (_jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: _jsx("div", { className: "max-w-2xl px-3 py-5 lg:px-5", children: _jsx("div", { className: "space-y-5", children: children }) }) }))] }), showHelp && (_jsxs("aside", { className: "hidden w-64 shrink-0 flex-col border-l border-line bg-surface-sunken lg:flex", children: [_jsxs("header", { className: "flex h-pane-header shrink-0 items-center justify-between border-b border-line px-row-inset", children: [_jsx("span", { className: "text-2xs font-semibold uppercase tracking-wider text-fg-subtle", children: "Tips & tricks" }), _jsx(Button, { variant: "ghost", size: "sm", icon: _jsx(X, { className: "size-3.5" }), onClick: onToggleHelp, "aria-label": "Collapse tips" })] }), _jsx("div", { className: "flex-1 overflow-y-auto px-row-inset py-3 text-xs leading-relaxed text-fg-muted", children: help })] }))] }));
|
|
22
22
|
}
|
|
23
23
|
export function SenderFlagRow({ name, email, meta, caption, danger, trailing, }) {
|
|
24
24
|
return (_jsxs("div", { className: "flex items-center gap-3 px-row-inset py-2 hover:bg-surface-sunken", children: [_jsx("span", { className: cn(danger && "rounded-full ring-2 ring-danger/40"), children: _jsx(Avatar, { name: name, email: email, size: "sm" }) }), _jsxs("div", { className: "min-w-0 flex-1", children: [_jsxs("div", { className: "flex flex-col gap-0 sm:flex-row sm:items-baseline sm:gap-2", children: [_jsx("span", { className: "truncate text-sm font-medium text-fg", children: name }), _jsx("span", { className: "truncate text-2xs text-fg-subtle", children: email })] }), _jsxs("div", { className: "text-xs text-fg-subtle", children: [meta, caption && _jsxs("span", { className: "text-fg-muted", children: [" \u00B7 ", caption] })] })] }), trailing && _jsx("div", { className: "shrink-0", children: trailing })] }));
|
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ShellTopBar — the app's one search surface and its global actions, composed.
|
|
3
|
+
*
|
|
4
|
+
* `AppTopBar` is geometry; this is what fills it. It spans the whole layout —
|
|
5
|
+
* the nav column, the list, the reading pane and the intelligence rail — and
|
|
6
|
+
* carries the actions that belong to the app rather than to whatever is
|
|
7
|
+
* currently listed or open: the nav toggle, compose, bug report, settings,
|
|
8
|
+
* account. Reply, delete, move and the rest stay on the reading pane's own
|
|
9
|
+
* toolbar, under this bar.
|
|
10
|
+
*
|
|
11
|
+
* It is the app's search, not the list's: the list header drops its own field
|
|
12
|
+
* wherever this bar is mounted, so exactly one search input exists on the page
|
|
13
|
+
* and the "/" shortcut has one target.
|
|
14
|
+
*
|
|
15
|
+
* The field carries one chip: the scope of the view the user navigated into
|
|
16
|
+
* (`in:spam` in Spam, nothing on the brief). Removing it goes to the brief and
|
|
17
|
+
* searches everything. Typed `in:`/`from:` terms are not chipped here — they
|
|
18
|
+
* are already visible as the text the user typed, and chipping them would show
|
|
19
|
+
* the same term twice in one field; they render as chips over the result
|
|
20
|
+
* sections instead, where the text is not repeated.
|
|
21
|
+
*
|
|
22
|
+
* Which actions, in what order, with what wording lives here and only here, so
|
|
23
|
+
* the bar the prototype shows is the bar the app shows.
|
|
24
|
+
*/
|
|
1
25
|
import type { ReactNode } from "react";
|
|
2
26
|
import type { SearchChip } from "./search-chip-input.js";
|
|
3
27
|
/**
|
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
|
|
3
|
-
* ShellTopBar — the app's one search surface and its global actions, composed.
|
|
4
|
-
*
|
|
5
|
-
* `AppTopBar` is geometry; this is what fills it. It spans the whole layout —
|
|
6
|
-
* the nav column, the list, the reading pane and the intelligence rail — and
|
|
7
|
-
* carries the actions that belong to the app rather than to whatever is
|
|
8
|
-
* currently listed or open: the nav toggle, compose, bug report, settings,
|
|
9
|
-
* account. Reply, delete, move and the rest stay on the reading pane's own
|
|
10
|
-
* toolbar, under this bar.
|
|
11
|
-
*
|
|
12
|
-
* It is the app's search, not the list's: the list header drops its own field
|
|
13
|
-
* wherever this bar is mounted, so exactly one search input exists on the page
|
|
14
|
-
* and the "/" shortcut has one target.
|
|
15
|
-
*
|
|
16
|
-
* The field carries one chip: the scope of the view the user navigated into
|
|
17
|
-
* (`in:spam` in Spam, nothing on the brief). Removing it goes to the brief and
|
|
18
|
-
* searches everything. Typed `in:`/`from:` terms are not chipped here — they
|
|
19
|
-
* are already visible as the text the user typed, and chipping them would show
|
|
20
|
-
* the same term twice in one field; they render as chips over the result
|
|
21
|
-
* sections instead, where the text is not repeated.
|
|
22
|
-
*
|
|
23
|
-
* Which actions, in what order, with what wording lives here and only here, so
|
|
24
|
-
* the bar the prototype shows is the bar the app shows.
|
|
25
|
-
*/
|
|
26
|
-
import { Bug, Settings, SquarePen } from "lucide-react";
|
|
2
|
+
import { Bug, Settings, SquarePen } from "../icons.js";
|
|
27
3
|
import { AppTopBar } from "./app-top-bar.js";
|
|
28
4
|
import { AttentionDot } from "./attention-dot.js";
|
|
29
5
|
import { Button } from "./button.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { X } from "lucide-react";
|
|
3
2
|
import { useRef } from "react";
|
|
3
|
+
import { X } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { useOverlayScope } from "../lib/overlay-scope.js";
|
|
6
6
|
import { useModalFocus } from "../lib/use-modal-focus.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useDrag } from "@use-gesture/react";
|
|
3
|
-
import { Check, Mail, MailOpen, Trash2 } from "lucide-react";
|
|
4
3
|
import { useRef, useState } from "react";
|
|
5
|
-
import {
|
|
4
|
+
import { Check, Mail, MailOpen, Trash } from "../icons.js";
|
|
6
5
|
import { cn } from "../lib/cn.js";
|
|
6
|
+
import { mergeProps } from "../lib/merge-props.js";
|
|
7
7
|
import { SWIPE_AXIS_THRESHOLD, SWIPE_DRAG_CONFIG, } from "../lib/swipe-config.js";
|
|
8
8
|
import { holdConfig, isHold, LONG_PRESS_DELAY_MS, swallowReleaseClick, touchMenuSuppressionProps, } from "../lib/use-long-press.js";
|
|
9
9
|
import { Avatar } from "./avatar.js";
|
|
@@ -118,5 +118,5 @@ export function SwipeableRow({ thread, selectionMode, checked, active, peek, onP
|
|
|
118
118
|
e.stopPropagation();
|
|
119
119
|
onLongPress();
|
|
120
120
|
}, className: "-m-2 inline-flex size-11 shrink-0 items-center justify-center rounded-full", children: _jsx(Avatar, { name: thread.fromName, email: thread.fromEmail, size: "sm" }) }), _jsx(ComfortableRowTextContent, { thread: thread })] }));
|
|
121
|
-
return (_jsxs("div", { className: "relative overflow-hidden", children: [revealed === "leading" && (_jsx("button", { type: "button", onClick: () => onAct("leading"), "aria-label": thread.isRead ? "Mark as unread" : "Mark as read", className: "absolute inset-y-0 left-0 flex items-center justify-start bg-accent-2 px-6 text-accent-fg", children: thread.isRead ? (_jsx(Mail, { className: "size-6" })) : (_jsx(MailOpen, { className: "size-6" })) })), revealed === "trailing" && (_jsx("button", { type: "button", onClick: () => onAct("trailing"), "aria-label": "Delete message", className: "absolute inset-y-0 right-0 flex items-center justify-end bg-danger px-6 text-canvas", children: _jsx(
|
|
121
|
+
return (_jsxs("div", { className: "relative overflow-hidden", children: [revealed === "leading" && (_jsx("button", { type: "button", onClick: () => onAct("leading"), "aria-label": thread.isRead ? "Mark as unread" : "Mark as read", className: "absolute inset-y-0 left-0 flex items-center justify-start bg-accent-2 px-6 text-accent-fg", children: thread.isRead ? (_jsx(Mail, { className: "size-6" })) : (_jsx(MailOpen, { className: "size-6" })) })), revealed === "trailing" && (_jsx("button", { type: "button", onClick: () => onAct("trailing"), "aria-label": "Delete message", className: "absolute inset-y-0 right-0 flex items-center justify-end bg-danger px-6 text-canvas", children: _jsx(Trash, { className: "size-6" }) })), _jsx("button", { type: "button", role: selectionMode ? "checkbox" : undefined, "aria-checked": selectionMode ? checked : undefined, "data-message-row": true, "data-message-id": thread.id, ...gestureProps, className: interactiveClassName, style: interactiveStyle, children: body })] }));
|
|
122
122
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Bug } from "
|
|
2
|
+
import { Bug } from "../icons.js";
|
|
3
3
|
import { Badge } from "./badge.js";
|
|
4
4
|
import { Button } from "./button.js";
|
|
5
5
|
import { syncWarningSummary, } from "./sync-warning-report.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { CircleCheck } from "../icons.js";
|
|
3
3
|
import { SyncWarningRow } from "./sync-warning-row.js";
|
|
4
4
|
export function SyncWarningSection({ entries, total, onReport, }) {
|
|
5
|
-
return (_jsxs("section", { className: "space-y-3", children: [_jsxs("header", { className: "space-y-1", children: [_jsx("h2", { className: "text-sm font-semibold text-fg", children: "Messages that failed to sync" }), _jsx("p", { className: "text-xs text-fg-muted", children: "A message shows here after three failed rounds and leaves on its own once it syncs. The rest of the folder keeps syncing." })] }), entries.length === 0 && (_jsxs("div", { className: "flex items-center gap-2 rounded-sm border border-line bg-surface px-row-inset py-3", children: [_jsx(
|
|
5
|
+
return (_jsxs("section", { className: "space-y-3", children: [_jsxs("header", { className: "space-y-1", children: [_jsx("h2", { className: "text-sm font-semibold text-fg", children: "Messages that failed to sync" }), _jsx("p", { className: "text-xs text-fg-muted", children: "A message shows here after three failed rounds and leaves on its own once it syncs. The rest of the folder keeps syncing." })] }), entries.length === 0 && (_jsxs("div", { className: "flex items-center gap-2 rounded-sm border border-line bg-surface px-row-inset py-3", children: [_jsx(CircleCheck, { className: "size-4 shrink-0 text-positive", "aria-hidden": true }), _jsx("p", { className: "text-sm text-fg-muted", children: "Every message is syncing. Nothing has failed." })] })), total > entries.length && (_jsx("p", { className: "text-xs text-fg-muted", children: `Showing the ${entries.length} newest of ${total} messages that failed to sync.` })), entries.length > 0 && (_jsx("ul", { className: "rounded-sm border border-line bg-surface", children: entries.map((entry) => (_jsx(SyncWarningRow, { entry: entry, onReport: onReport }, entry.syncWarningId))) }))] }));
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { RefreshCw } from "lucide-react";
|
|
3
2
|
import { useState } from "react";
|
|
3
|
+
import { RefreshCw } from "../icons.js";
|
|
4
4
|
import { SwipeableRow } from "./swipeable-row.js";
|
|
5
5
|
export function TouchListBody({ sections, selectedThreadId, selectionMode, checkedIds, initialPeek, onToggleCheck, onEnterSelection, onOpenThread, onRefresh, refreshing, busy = false, }) {
|
|
6
6
|
// What a swipe has left a row at — the state it landed on, not a flip of
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Check } from "lucide-react";
|
|
3
2
|
import { useId, useState } from "react";
|
|
3
|
+
import { Check } from "../icons.js";
|
|
4
4
|
import { cn } from "../lib/cn.js";
|
|
5
5
|
import { Badge } from "./badge.js";
|
|
6
6
|
import { Card } from "./card.js";
|