@tristan2828/ui-foundation 4.71.0 → 4.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/conventions/docs/add-an-entity.md +45 -15
- package/conventions/docs/cell-patterns.md +210 -37
- package/conventions/docs/design-language.md +64 -24
- package/dist/components/app/edit-in-place-controls.d.ts +34 -0
- package/dist/components/app/edit-in-place-controls.js +92 -0
- package/dist/components/app/edit-in-place-presets.d.ts +187 -0
- package/dist/components/app/edit-in-place-presets.js +409 -0
- package/dist/components/app/edit-in-place-store.d.ts +9 -0
- package/dist/components/app/edit-in-place-store.js +14 -7
- package/dist/components/app/edit-in-place.d.ts +101 -4
- package/dist/components/app/editable-list.js +158 -23
- package/dist/components/app/editable-value.d.ts +2 -2
- package/dist/components/app/editable-value.js +7 -3
- package/dist/components/app/entity-view.d.ts +6 -2
- package/dist/components/app/entity-view.js +11 -2
- package/dist/components/app/markdown.d.ts +13 -1
- package/dist/components/app/markdown.js +43 -8
- package/dist/components/app/milkdown-editor.d.ts +1 -1
- package/dist/components/app/milkdown-editor.js +184 -19
- package/dist/components/app/page-link.d.ts +13 -0
- package/dist/components/app/page-link.js +44 -0
- package/dist/components/app/page-restore.d.ts +3 -0
- package/dist/components/app/page-restore.js +14 -0
- package/dist/components/app/page-trail.d.ts +17 -0
- package/dist/components/app/page-trail.js +71 -0
- package/dist/components/app/rich-text-editor.d.ts +22 -0
- package/dist/components/app/rich-text-editor.js +8 -0
- package/dist/components/app/rich-text-floating-toolbar.d.ts +3 -1
- package/dist/components/app/rich-text-floating-toolbar.js +2 -2
- package/dist/components/app/rich-text-page-links.d.ts +44 -0
- package/dist/components/app/rich-text-page-links.js +201 -0
- package/dist/components/app/rich-text-slash-menu.d.ts +3 -4
- package/dist/components/app/rich-text-slash.d.ts +12 -3
- package/dist/components/app/rich-text-slash.js +16 -5
- package/dist/components/app/rich-text-toolbar.d.ts +3 -1
- package/dist/components/app/rich-text-toolbar.js +10 -7
- package/dist/components/app/row-edit-cells.d.ts +9 -0
- package/dist/components/app/row-edit-cells.js +12 -16
- package/dist/components/ui/breadcrumb.d.ts +10 -0
- package/dist/components/ui/breadcrumb.js +37 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +4 -1
- package/dist/lib/link-href.d.ts +28 -0
- package/dist/lib/link-href.js +40 -0
- package/dist/lib/page-link.d.ts +40 -0
- package/dist/lib/page-link.js +32 -0
- package/dist/lib/page-trail.d.ts +7 -0
- package/dist/lib/page-trail.js +24 -0
- package/package.json +1 -1
- package/styles/index.css +63 -0
package/dist/index.d.ts
CHANGED
|
@@ -19,12 +19,16 @@ export { usePrinting } from './components/app/print-context.js';
|
|
|
19
19
|
export { RecordDialogRoute, RecordLink, type RecordDialogRouteProps, type RecordLinkProps, } from './components/app/record-dialog.js';
|
|
20
20
|
export { recordDialogState, useOpenRecord, useRecordDialog, type RecordDialogBackground, type RecordDialogContextValue, type RecordDialogState, } from './components/app/record-dialog-context.js';
|
|
21
21
|
export { editInPlace, type EditControlProps, type EditInPlace, type EditInPlaceList, type EditInPlaceListOptions, type EditInPlaceOptions, type EditKind, type EditListAddProps, type EditListItemProps, } from './components/app/edit-in-place.js';
|
|
22
|
+
export { inPlace, type InPlaceDateConfig, type InPlaceFieldsOptions, type InPlaceLinkConfig, type InPlaceLinkValue, type InPlaceMoneyConfig, type InPlaceNumberConfig, type InPlaceOption, type InPlacePart, type InPlaceRecord, type InPlaceReferenceConfig, type InPlaceSaved, type InPlaceSelectConfig, type InPlaceTextConfig, } from './components/app/edit-in-place-presets.js';
|
|
23
|
+
export { linkHost, linkHref, linkRule } from './lib/link-href.js';
|
|
22
24
|
export { DataEnvironmentBanner } from './components/app/data-environment-banner.js';
|
|
23
25
|
export { EditableValue, type EditableValueProps } from './components/app/editable-value.js';
|
|
24
26
|
export { ErrorState } from './components/app/error-state.js';
|
|
25
27
|
export { InlineCreate, type InlineCreateProps } from './components/app/inline-create.js';
|
|
26
28
|
export { FoundationProviders } from './components/app/foundation-providers.js';
|
|
27
29
|
export { Markdown, type MarkdownProps } from './components/app/markdown.js';
|
|
30
|
+
export { PageTrail, type PageCrumb, type PageTrailProps } from './components/app/page-trail.js';
|
|
31
|
+
export type { CreatePage, PageLinkInfo, PageLinkResolver } from './lib/page-link.js';
|
|
28
32
|
export { countTasks, toggleTaskAt, type TaskCount } from './lib/markdown-tasks.js';
|
|
29
33
|
export { NotesOutline, type NotesOutlineProps } from './components/app/notes-outline.js';
|
|
30
34
|
export type { HeadingFrom, HeadingLevel, TableLook } from './components/app/prose-look.js';
|
|
@@ -53,7 +57,7 @@ export { EmojiField, type EmojiFieldProps } from './components/app/emoji-field.j
|
|
|
53
57
|
export { ImageField, type ImageFieldProps } from './components/app/image-field.js';
|
|
54
58
|
export { DEFAULT_IMAGE_TYPES, type ImageUpload, type ImageUploadResult } from './lib/image-file.js';
|
|
55
59
|
export { formatPlainDate, type PlainDate } from './lib/plain-date.js';
|
|
56
|
-
export { ChoiceCell, LinkCell, NameCell, type ChoiceCellProps, type LinkCellProps, type NameCellProps, } from './components/app/row-edit-cells.js';
|
|
60
|
+
export { ChoiceCell, LinkCell, LinkOut, NameCell, type ChoiceCellProps, type LinkCellProps, type NameCellProps, } from './components/app/row-edit-cells.js';
|
|
57
61
|
export { ModuleCard, ModuleStrip, type CategorySlot, type ModuleCardLink, type ModuleCardPlace, type ModuleCardProps, type ModuleStripMobile, type ModuleStripProps, } from './components/app/module-card.js';
|
|
58
62
|
export { WidgetCard, WidgetCardGroup, WidgetList, WidgetListItem, type WidgetCardGroupProps, type WidgetCardLink, type WidgetCardProps, type WidgetListItemProps, } from './components/app/widget-card.js';
|
|
59
63
|
export { WidgetLayoutSheet, type WidgetLayoutSheetProps } from './components/app/widget-layout-sheet.js';
|
package/dist/index.js
CHANGED
|
@@ -23,12 +23,15 @@ export { usePrinting } from './components/app/print-context.js';
|
|
|
23
23
|
export { RecordDialogRoute, RecordLink, } from './components/app/record-dialog.js';
|
|
24
24
|
export { recordDialogState, useOpenRecord, useRecordDialog, } from './components/app/record-dialog-context.js';
|
|
25
25
|
export { editInPlace, } from './components/app/edit-in-place.js';
|
|
26
|
+
export { inPlace, } from './components/app/edit-in-place-presets.js';
|
|
27
|
+
export { linkHost, linkHref, linkRule } from './lib/link-href.js';
|
|
26
28
|
export { DataEnvironmentBanner } from './components/app/data-environment-banner.js';
|
|
27
29
|
export { EditableValue } from './components/app/editable-value.js';
|
|
28
30
|
export { ErrorState } from './components/app/error-state.js';
|
|
29
31
|
export { InlineCreate } from './components/app/inline-create.js';
|
|
30
32
|
export { FoundationProviders } from './components/app/foundation-providers.js';
|
|
31
33
|
export { Markdown } from './components/app/markdown.js';
|
|
34
|
+
export { PageTrail } from './components/app/page-trail.js';
|
|
32
35
|
export { countTasks, toggleTaskAt } from './lib/markdown-tasks.js';
|
|
33
36
|
export { NotesOutline } from './components/app/notes-outline.js';
|
|
34
37
|
export { MockModeBanner } from './components/app/mock-mode-banner.js';
|
|
@@ -56,7 +59,7 @@ export { EmojiField } from './components/app/emoji-field.js';
|
|
|
56
59
|
export { ImageField } from './components/app/image-field.js';
|
|
57
60
|
export { DEFAULT_IMAGE_TYPES } from './lib/image-file.js';
|
|
58
61
|
export { formatPlainDate } from './lib/plain-date.js';
|
|
59
|
-
export { ChoiceCell, LinkCell, NameCell, } from './components/app/row-edit-cells.js';
|
|
62
|
+
export { ChoiceCell, LinkCell, LinkOut, NameCell, } from './components/app/row-edit-cells.js';
|
|
60
63
|
export { ModuleCard, ModuleStrip, } from './components/app/module-card.js';
|
|
61
64
|
export { WidgetCard, WidgetCardGroup, WidgetList, WidgetListItem, } from './components/app/widget-card.js';
|
|
62
65
|
export { WidgetLayoutSheet } from './components/app/widget-layout-sheet.js';
|
package/dist/lib/link-href.d.ts
CHANGED
|
@@ -2,3 +2,31 @@
|
|
|
2
2
|
export declare function linkHref(typed: string): string | null;
|
|
3
3
|
/** Why `linkHref` refused what was typed, for the message shown with it. */
|
|
4
4
|
export declare function linkRefusal(typed: string): 'whitespace' | 'scheme';
|
|
5
|
+
type LinkRuleResult = {
|
|
6
|
+
success: true;
|
|
7
|
+
data: string | null;
|
|
8
|
+
} | {
|
|
9
|
+
success: false;
|
|
10
|
+
error: {
|
|
11
|
+
issues: {
|
|
12
|
+
message: string;
|
|
13
|
+
}[];
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The rule for a link field, shaped as a schema (`safeParse`): what was
|
|
18
|
+
* typed becomes the address to save (`linkHref`: `example.com` gains
|
|
19
|
+
* https://), or `null` for a blank box; another scheme (`javascript:`) or
|
|
20
|
+
* a space inside the address is refused with the words to show. LinkCell
|
|
21
|
+
* and the `inPlace.link` preset check with it.
|
|
22
|
+
*/
|
|
23
|
+
export declare const linkRule: {
|
|
24
|
+
safeParse(value: unknown): LinkRuleResult;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A link's text when it has no label of its own: the host of a web
|
|
28
|
+
* address (`docs.example.com`), the address of an email link, the path
|
|
29
|
+
* of a link on this site. `href` is one `linkHref` returned.
|
|
30
|
+
*/
|
|
31
|
+
export declare function linkHost(href: string): string;
|
|
32
|
+
export {};
|
package/dist/lib/link-href.js
CHANGED
|
@@ -32,3 +32,43 @@ export function linkHref(typed) {
|
|
|
32
32
|
export function linkRefusal(typed) {
|
|
33
33
|
return /\s/.test(typed.trim()) ? 'whitespace' : 'scheme';
|
|
34
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* The rule for a link field, shaped as a schema (`safeParse`): what was
|
|
37
|
+
* typed becomes the address to save (`linkHref`: `example.com` gains
|
|
38
|
+
* https://), or `null` for a blank box; another scheme (`javascript:`) or
|
|
39
|
+
* a space inside the address is refused with the words to show. LinkCell
|
|
40
|
+
* and the `inPlace.link` preset check with it.
|
|
41
|
+
*/
|
|
42
|
+
export const linkRule = {
|
|
43
|
+
safeParse(value) {
|
|
44
|
+
const typed = String(value ?? '');
|
|
45
|
+
const href = linkHref(typed);
|
|
46
|
+
if (href === '')
|
|
47
|
+
return { success: true, data: null };
|
|
48
|
+
if (href === null) {
|
|
49
|
+
const message = linkRefusal(typed) === 'whitespace' ? 'An address has no spaces' : 'Use a web or email address';
|
|
50
|
+
return { success: false, error: { issues: [{ message }] } };
|
|
51
|
+
}
|
|
52
|
+
return { success: true, data: href };
|
|
53
|
+
},
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* A link's text when it has no label of its own: the host of a web
|
|
57
|
+
* address (`docs.example.com`), the address of an email link, the path
|
|
58
|
+
* of a link on this site. `href` is one `linkHref` returned.
|
|
59
|
+
*/
|
|
60
|
+
export function linkHost(href) {
|
|
61
|
+
if (/^mailto:/i.test(href))
|
|
62
|
+
return href.slice('mailto:'.length);
|
|
63
|
+
if (/^tel:/i.test(href))
|
|
64
|
+
return href.slice('tel:'.length);
|
|
65
|
+
if (/^https?:\/\//i.test(href)) {
|
|
66
|
+
try {
|
|
67
|
+
return new URL(href).host;
|
|
68
|
+
}
|
|
69
|
+
catch {
|
|
70
|
+
return href.replace(/^https?:\/\//i, '');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return href;
|
|
74
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/** What the app knows about a page a link points to. */
|
|
2
|
+
export type PageLinkInfo = {
|
|
3
|
+
/**
|
|
4
|
+
* The page's title now, shown in place of the link's own words where
|
|
5
|
+
* the text is read (`<Markdown>`), so a renamed page reads as renamed.
|
|
6
|
+
* The editor shows the words as written, since they're what's saved.
|
|
7
|
+
*/
|
|
8
|
+
title?: string;
|
|
9
|
+
/** The page is gone (deleted, in the app's bin): drawn as "Page removed". */
|
|
10
|
+
removed?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Brings a removed page back: a Restore button beside "Page removed".
|
|
13
|
+
* Return the request's promise: while it's pending the button waits,
|
|
14
|
+
* and a rejection is shown as a toast in the gateway's words.
|
|
15
|
+
*/
|
|
16
|
+
onRestore?: () => void | Promise<unknown>;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Says whether a link's address is one of the app's pages, and what it
|
|
20
|
+
* knows about it; `null` (or `undefined`) for any other link, which stays
|
|
21
|
+
* an ordinary link.
|
|
22
|
+
*/
|
|
23
|
+
export type PageLinkResolver = (href: string) => PageLinkInfo | null | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Makes a page with this title, wherever the app keeps them (under the
|
|
26
|
+
* record or page whose note this is), and resolves to its address, which
|
|
27
|
+
* goes into the note as `[title](href)`. A rejection leaves the note as it
|
|
28
|
+
* was and shows why.
|
|
29
|
+
*/
|
|
30
|
+
export type CreatePage = (title: string) => Promise<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The page icon's shape (lucide's `file-text`, 24×24, stroked): drawn as
|
|
33
|
+
* the React icon in <Markdown> and as plain SVG in the editor's widget,
|
|
34
|
+
* so the two match.
|
|
35
|
+
*/
|
|
36
|
+
export declare const PAGE_ICON_PATHS: readonly ["M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z", "M14 2v5a1 1 0 0 0 1 1h5", "M10 9H8", "M16 13H8", "M16 17H8"];
|
|
37
|
+
/** A page's name for buttons and screen readers: its title, else the link's words, else "Untitled". */
|
|
38
|
+
export declare function pageName(info: PageLinkInfo, words: string): string;
|
|
39
|
+
/** What the page-link look depends on, to tell when it must be drawn again. */
|
|
40
|
+
export declare function pageLinkSignature(info: PageLinkInfo | null | undefined): string;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Page links: a link in a note that the app says is one of its own pages
|
|
2
|
+
// (a child page of a record, or of another page, to any depth). The
|
|
3
|
+
// package never knows where pages live or how they nest: the app answers
|
|
4
|
+
// `pageLink(href)` for each link's address, and only it can make one
|
|
5
|
+
// (`onCreatePage`). The Markdown is never changed by any of this: a page
|
|
6
|
+
// link is an ordinary Markdown link, `[Getting Started](/notes/12/pages/3)`.
|
|
7
|
+
//
|
|
8
|
+
// Drawn by <Markdown> (markdown.tsx) and the rich-text editor
|
|
9
|
+
// (rich-text-page-links.ts), in the same look (styles/index.css "Page
|
|
10
|
+
// links in written text").
|
|
11
|
+
/**
|
|
12
|
+
* The page icon's shape (lucide's `file-text`, 24×24, stroked): drawn as
|
|
13
|
+
* the React icon in <Markdown> and as plain SVG in the editor's widget,
|
|
14
|
+
* so the two match.
|
|
15
|
+
*/
|
|
16
|
+
export const PAGE_ICON_PATHS = [
|
|
17
|
+
'M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z',
|
|
18
|
+
'M14 2v5a1 1 0 0 0 1 1h5',
|
|
19
|
+
'M10 9H8',
|
|
20
|
+
'M16 13H8',
|
|
21
|
+
'M16 17H8',
|
|
22
|
+
];
|
|
23
|
+
/** A page's name for buttons and screen readers: its title, else the link's words, else "Untitled". */
|
|
24
|
+
export function pageName(info, words) {
|
|
25
|
+
return info.title?.trim() || words.trim() || 'Untitled';
|
|
26
|
+
}
|
|
27
|
+
/** What the page-link look depends on, to tell when it must be drawn again. */
|
|
28
|
+
export function pageLinkSignature(info) {
|
|
29
|
+
if (!info)
|
|
30
|
+
return '-';
|
|
31
|
+
return JSON.stringify([info.title ?? null, Boolean(info.removed), Boolean(info.onRestore)]);
|
|
32
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* How many crumbs after the first to fold into the "…" menu so the trail
|
|
3
|
+
* fits `available`: 0 when it all fits, at most all but the first and the
|
|
4
|
+
* last. `widths` are each crumb's, `separator` the gap a separator takes
|
|
5
|
+
* (with its spacing), `ellipsis` the menu button's.
|
|
6
|
+
*/
|
|
7
|
+
export declare function crumbsToFold(widths: readonly number[], separator: number, ellipsis: number, available: number): number;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// PageTrail's fitting (src/components/app/page-trail.tsx): how many
|
|
2
|
+
// crumbs fold into its "…" menu so the trail fits on one line.
|
|
3
|
+
/**
|
|
4
|
+
* How many crumbs after the first to fold into the "…" menu so the trail
|
|
5
|
+
* fits `available`: 0 when it all fits, at most all but the first and the
|
|
6
|
+
* last. `widths` are each crumb's, `separator` the gap a separator takes
|
|
7
|
+
* (with its spacing), `ellipsis` the menu button's.
|
|
8
|
+
*/
|
|
9
|
+
export function crumbsToFold(widths, separator, ellipsis, available) {
|
|
10
|
+
const count = widths.length;
|
|
11
|
+
if (count <= 2)
|
|
12
|
+
return 0;
|
|
13
|
+
const sum = (from) => widths.slice(from).reduce((total, width) => total + width, 0);
|
|
14
|
+
if (sum(0) + separator * (count - 1) <= available)
|
|
15
|
+
return 0;
|
|
16
|
+
for (let folded = 1; folded < count - 1; folded++) {
|
|
17
|
+
// The first, the menu, then every crumb after the folded ones.
|
|
18
|
+
const shown = count - 1 - folded;
|
|
19
|
+
const width = widths[0] + ellipsis + sum(folded + 1) + separator * (shown + 1);
|
|
20
|
+
if (width <= available)
|
|
21
|
+
return folded;
|
|
22
|
+
}
|
|
23
|
+
return count - 2;
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tristan2828/ui-foundation",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.73.0",
|
|
4
4
|
"description": "Shared UI foundation for contract-first, database-backed React apps: shadcn primitives, DataTable/EntityForm composites, auth, the gateway error seam, design tokens, lint rules and the AI playbook.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
package/styles/index.css
CHANGED
|
@@ -395,3 +395,66 @@
|
|
|
395
395
|
padding-bottom: 0;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
+
|
|
399
|
+
/* Page links in written text (<Markdown> and the rich-text editor): a
|
|
400
|
+
link the app marks as one of its pages (`pageLink`,
|
|
401
|
+
src/lib/page-link.ts). The page icon, then the title in the text's own
|
|
402
|
+
colour, medium weight, still underlined (so it's told from the words
|
|
403
|
+
around it without colour: axe's link-in-text-block). A paragraph that
|
|
404
|
+
holds only one is a page line, a row that tints on hover. A removed
|
|
405
|
+
page is muted and struck through, "Page removed" beside it. <Markdown>
|
|
406
|
+
draws `.page-link` itself; in the editor the link is Milkdown's <a>,
|
|
407
|
+
its words wrapped in a `.page-link-text` decoration. Unlayered, so the
|
|
408
|
+
editor's utility classes on every <a> don't outrank it. */
|
|
409
|
+
.page-link,
|
|
410
|
+
.ProseMirror a:has(> .page-link-text) {
|
|
411
|
+
color: var(--foreground);
|
|
412
|
+
font-weight: 500;
|
|
413
|
+
text-decoration-line: underline;
|
|
414
|
+
text-decoration-color: var(--muted-foreground);
|
|
415
|
+
text-underline-offset: 4px;
|
|
416
|
+
}
|
|
417
|
+
.page-link:hover,
|
|
418
|
+
.ProseMirror a:has(> .page-link-text):hover {
|
|
419
|
+
text-decoration-color: currentColor;
|
|
420
|
+
}
|
|
421
|
+
.page-link-icon {
|
|
422
|
+
display: inline-block;
|
|
423
|
+
width: 1rem;
|
|
424
|
+
height: 1rem;
|
|
425
|
+
margin-right: 0.25rem;
|
|
426
|
+
vertical-align: -0.1875rem;
|
|
427
|
+
color: var(--muted-foreground);
|
|
428
|
+
}
|
|
429
|
+
.page-line {
|
|
430
|
+
margin-inline: -0.375rem;
|
|
431
|
+
padding: 0.125rem 0.375rem;
|
|
432
|
+
border-radius: calc(var(--radius) - 2px);
|
|
433
|
+
}
|
|
434
|
+
.page-line:hover {
|
|
435
|
+
background-color: var(--muted);
|
|
436
|
+
}
|
|
437
|
+
.page-link-removed,
|
|
438
|
+
.ProseMirror a:has(> .page-link-text[data-removed]) {
|
|
439
|
+
color: var(--muted-foreground);
|
|
440
|
+
text-decoration-line: none;
|
|
441
|
+
}
|
|
442
|
+
.page-link-removed .page-link-title,
|
|
443
|
+
.page-link-text[data-removed] {
|
|
444
|
+
text-decoration-line: line-through;
|
|
445
|
+
}
|
|
446
|
+
.page-removed-note {
|
|
447
|
+
margin-inline: 0.5rem;
|
|
448
|
+
color: var(--muted-foreground);
|
|
449
|
+
font-size: 0.75rem;
|
|
450
|
+
}
|
|
451
|
+
.page-removed {
|
|
452
|
+
display: inline-flex;
|
|
453
|
+
align-items: center;
|
|
454
|
+
gap: 0.5rem;
|
|
455
|
+
margin-inline-start: 0.5rem;
|
|
456
|
+
vertical-align: middle;
|
|
457
|
+
}
|
|
458
|
+
.page-removed .page-removed-note {
|
|
459
|
+
margin-inline: 0;
|
|
460
|
+
}
|