@burdenoff/fe-libs 2026.1113.7 → 2026.1113.8
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/ui/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { useRememberedOpen } from './use-remembered-open';
|
|
|
5
5
|
export { ShowTechnicalDetails, type ShowTechnicalDetailsProps } from './show-technical-details';
|
|
6
6
|
export { PageTabs, matchActiveTab, splitTabs, type PageTabItem, type PageTabsProps, } from './page-tabs';
|
|
7
7
|
export { AccessGate, type AccessGateProps } from './access-gate';
|
|
8
|
+
export { useHeadingDocumentTitle, type HeadingDocumentTitleOptions, } from './use-heading-document-title';
|
|
8
9
|
export { BottomSheet, BottomSheetClose, BottomSheetContent, BottomSheetDescription, BottomSheetFooter, BottomSheetHeader, BottomSheetTitle, BottomSheetTrigger, type BottomSheetContentProps, type BottomSheetProps, } from './bottom-sheet';
|
|
9
10
|
export { ResponsiveDialog, ResponsiveDialogClose, ResponsiveDialogContent, ResponsiveDialogDescription, ResponsiveDialogFooter, ResponsiveDialogHeader, ResponsiveDialogTitle, ResponsiveDialogTrigger, type ResponsiveDialogContentProps, } from './responsive-dialog';
|
|
10
11
|
export { ResponsiveTable, type ResponsiveTableColumn, type ResponsiveTableColumnPriority, type ResponsiveTableProps, } from './responsive-table';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface HeadingDocumentTitleOptions {
|
|
2
|
+
/** Off by default for callers: the title is left alone unless this is true (opt-in per app). */
|
|
3
|
+
enabled: boolean;
|
|
4
|
+
/** Appended after the heading, e.g. the product name: "Invoices · FluidGrids". */
|
|
5
|
+
suffix?: string;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Gives each page its own browser tab title, taken from the page's main heading
|
|
9
|
+
* (BOFF-11862, BOFF-11863). Many pages share one tab title today, so a person
|
|
10
|
+
* with several tabs open cannot tell them apart, and history and bookmarks all
|
|
11
|
+
* read the same.
|
|
12
|
+
*
|
|
13
|
+
* One call in a module's root covers every page in it: the title follows the
|
|
14
|
+
* heading as pages render, load and change, so no page needs its own code. When
|
|
15
|
+
* a page has no heading yet, the title stays as it was. The original title is
|
|
16
|
+
* put back when the module unmounts, and nothing runs unless `enabled` is true,
|
|
17
|
+
* so apps that do not opt in are untouched.
|
|
18
|
+
*/
|
|
19
|
+
export declare function useHeadingDocumentTitle({ enabled, suffix }: HeadingDocumentTitleOptions): void;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
// src/ui/use-heading-document-title.ts
|
|
3
|
+
function t() {
|
|
4
|
+
return ((document.querySelector("main h1") ?? document.querySelector("h1"))?.textContent ?? "").replace(/\s+/g, " ").trim();
|
|
5
|
+
}
|
|
6
|
+
function n({ enabled: n, suffix: r }) {
|
|
7
|
+
e(() => {
|
|
8
|
+
if (!n || typeof document > "u") return;
|
|
9
|
+
let e = document.title, i = 0, a = () => {
|
|
10
|
+
i = 0;
|
|
11
|
+
let e = t();
|
|
12
|
+
if (!e) return;
|
|
13
|
+
let n = r ? `${e} · ${r}` : e;
|
|
14
|
+
document.title !== n && (document.title = n);
|
|
15
|
+
}, o = () => {
|
|
16
|
+
i ||= requestAnimationFrame(a);
|
|
17
|
+
};
|
|
18
|
+
a();
|
|
19
|
+
let s = new MutationObserver(o);
|
|
20
|
+
return s.observe(document.body, {
|
|
21
|
+
childList: !0,
|
|
22
|
+
subtree: !0,
|
|
23
|
+
characterData: !0
|
|
24
|
+
}), () => {
|
|
25
|
+
s.disconnect(), i && cancelAnimationFrame(i), document.title = e;
|
|
26
|
+
};
|
|
27
|
+
}, [n, r]);
|
|
28
|
+
}
|
|
29
|
+
export { n as useHeadingDocumentTitle };
|
package/dist/ui.js
CHANGED
|
@@ -5,51 +5,52 @@ import { useRememberedOpen as s } from "./ui/use-remembered-open.js";
|
|
|
5
5
|
import { ShowTechnicalDetails as c } from "./ui/show-technical-details.js";
|
|
6
6
|
import { PageTabs as l, matchActiveTab as u, splitTabs as d } from "./ui/page-tabs.js";
|
|
7
7
|
import { AccessGate as f } from "./ui/access-gate.js";
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
|
|
8
|
+
import { useHeadingDocumentTitle as p } from "./ui/use-heading-document-title.js";
|
|
9
|
+
import { BottomSheet as m, BottomSheetClose as h, BottomSheetContent as g, BottomSheetDescription as _, BottomSheetFooter as v, BottomSheetHeader as y, BottomSheetTitle as b, BottomSheetTrigger as x } from "./ui/bottom-sheet.js";
|
|
10
|
+
import { ResponsiveDialog as S, ResponsiveDialogClose as C, ResponsiveDialogContent as w, ResponsiveDialogDescription as T, ResponsiveDialogFooter as E, ResponsiveDialogHeader as D, ResponsiveDialogTitle as O, ResponsiveDialogTrigger as k } from "./ui/responsive-dialog.js";
|
|
11
|
+
import { ResponsiveTable as A } from "./ui/responsive-table.js";
|
|
12
|
+
import { Pagination as j } from "./ui/pagination.js";
|
|
13
|
+
import { Stepper as M } from "./ui/stepper.js";
|
|
14
|
+
import { ResponsiveStack as N } from "./ui/responsive-stack.js";
|
|
15
|
+
import { EmptyState as P } from "./ui/empty-state.js";
|
|
16
|
+
import { AlertDialog as F, AlertDialogAction as I, AlertDialogCancel as L, AlertDialogContent as R, AlertDialogDescription as z, AlertDialogFooter as B, AlertDialogHeader as V, AlertDialogOverlay as H, AlertDialogPortal as U, AlertDialogTitle as W, AlertDialogTrigger as G } from "./ui/alert-dialog.js";
|
|
17
|
+
import { Badge as K, badgeVariants as q } from "./ui/badge.js";
|
|
18
|
+
import { Button as J, buttonVariants as Y } from "./ui/button.js";
|
|
19
|
+
import { Card as X, CardContent as Z, CardDescription as Q, CardFooter as $, CardHeader as ee, CardTitle as te } from "./ui/card.js";
|
|
20
|
+
import { Checkbox as ne } from "./ui/checkbox.js";
|
|
21
|
+
import { Command as re, CommandDialog as ie, CommandEmpty as ae, CommandGroup as oe, CommandInput as se, CommandItem as ce, CommandList as le, CommandSeparator as ue, CommandShortcut as de } from "./ui/command.js";
|
|
22
|
+
import { Dialog as fe, DialogClose as pe, DialogContent as me, DialogDescription as he, DialogFooter as ge, DialogHeader as _e, DialogOverlay as ve, DialogPortal as ye, DialogTitle as be, DialogTrigger as xe } from "./ui/dialog.js";
|
|
23
|
+
import { DropdownMenu as Se, DropdownMenuCheckboxItem as Ce, DropdownMenuContent as we, DropdownMenuGroup as Te, DropdownMenuItem as Ee, DropdownMenuLabel as De, DropdownMenuPortal as Oe, DropdownMenuRadioGroup as ke, DropdownMenuRadioItem as Ae, DropdownMenuSeparator as je, DropdownMenuShortcut as Me, DropdownMenuSub as Ne, DropdownMenuSubContent as Pe, DropdownMenuSubTrigger as Fe, DropdownMenuTrigger as Ie } from "./ui/dropdown-menu.js";
|
|
24
|
+
import { Input as Le } from "./ui/input.js";
|
|
25
|
+
import { Label as Re } from "./ui/label.js";
|
|
26
|
+
import { Popover as ze, PopoverAnchor as Be, PopoverContent as Ve, PopoverTrigger as He } from "./ui/popover.js";
|
|
27
|
+
import { ScrollArea as Ue, ScrollBar as We } from "./ui/scroll-area.js";
|
|
28
|
+
import { NativeSelect as Ge, Select as Ke, SelectContent as qe, SelectGroup as Je, SelectItem as Ye, SelectLabel as Xe, SelectScrollDownButton as Ze, SelectScrollUpButton as Qe, SelectSeparator as $e, SelectTrigger as et, SelectValue as tt } from "./ui/select.js";
|
|
29
|
+
import { Separator as nt } from "./ui/separator.js";
|
|
30
|
+
import { Sheet as rt, SheetClose as it, SheetContent as at, SheetDescription as ot, SheetFooter as st, SheetHeader as ct, SheetTitle as lt, SheetTrigger as ut } from "./ui/sheet.js";
|
|
31
|
+
import { Skeleton as dt } from "./ui/skeleton.js";
|
|
32
|
+
import { Toaster as ft } from "./ui/sonner.js";
|
|
33
|
+
import { Spinner as pt } from "./ui/spinner.js";
|
|
34
|
+
import { Switch as mt } from "./ui/switch.js";
|
|
35
|
+
import { Table as ht, TableBody as gt, TableCaption as _t, TableCell as vt, TableFooter as yt, TableHead as bt, TableHeader as xt, TableRow as St } from "./ui/table.js";
|
|
36
|
+
import { Tabs as Ct, TabsContent as wt, TabsList as Tt, TabsTrigger as Et } from "./ui/tabs.js";
|
|
37
|
+
import { Textarea as Dt } from "./ui/textarea.js";
|
|
38
|
+
import { Tooltip as Ot, TooltipContent as kt, TooltipProvider as At, TooltipTrigger as jt } from "./ui/tooltip.js";
|
|
39
|
+
import { PageContainer as Mt } from "./ui/page-container.js";
|
|
40
|
+
import { GlassCard as Nt, glassCardVariants as Pt } from "./ui/glass-card.js";
|
|
41
|
+
import { EmphasisPanel as Ft } from "./ui/emphasis-panel.js";
|
|
42
|
+
import { ShowMore as It } from "./ui/show-more.js";
|
|
43
|
+
import { CTAOverflowMenu as Lt } from "./ui/cta-overflow-menu.js";
|
|
44
|
+
import { BrandedSplash as Rt } from "./ui/branded-splash.js";
|
|
45
|
+
import { ModernLanding as zt } from "./ui/modern-landing.js";
|
|
46
|
+
import { AuroraBackground as Bt } from "./ui/aurora-background.js";
|
|
47
|
+
import { IllustratedEmptyState as Vt, Illustration as Ht } from "./ui/illustration.js";
|
|
48
|
+
import { GradientText as Ut } from "./ui/gradient-text.js";
|
|
49
|
+
import { NextSteps as Wt, PagePurpose as Gt } from "./ui/guidance.js";
|
|
50
|
+
import { NativeWelcome as Kt } from "./ui/native-welcome.js";
|
|
51
|
+
import { ActionSheet as qt } from "./ui/action-sheet.js";
|
|
52
|
+
import { OfflineBanner as Jt } from "./ui/offline-banner.js";
|
|
53
|
+
import { PullToRefresh as Yt } from "./ui/pull-to-refresh.js";
|
|
54
|
+
import { PWAUpdateToast as Xt } from "./ui/pwa-update-toast.js";
|
|
55
|
+
import { ModalShell as Zt } from "./ui/modal-shell.js";
|
|
56
|
+
export { f as AccessGate, e as Accordion, t as AccordionContent, n as AccordionItem, r as AccordionTrigger, qt as ActionSheet, F as AlertDialog, I as AlertDialogAction, L as AlertDialogCancel, R as AlertDialogContent, z as AlertDialogDescription, B as AlertDialogFooter, V as AlertDialogHeader, H as AlertDialogOverlay, U as AlertDialogPortal, W as AlertDialogTitle, G as AlertDialogTrigger, Bt as AuroraBackground, K as Badge, m as BottomSheet, h as BottomSheetClose, g as BottomSheetContent, _ as BottomSheetDescription, v as BottomSheetFooter, y as BottomSheetHeader, b as BottomSheetTitle, x as BottomSheetTrigger, Rt as BrandedSplash, J as Button, Lt as CTAOverflowMenu, X as Card, Z as CardContent, Q as CardDescription, $ as CardFooter, ee as CardHeader, te as CardTitle, ne as Checkbox, re as Command, ie as CommandDialog, ae as CommandEmpty, oe as CommandGroup, se as CommandInput, ce as CommandItem, le as CommandList, ue as CommandSeparator, de as CommandShortcut, fe as Dialog, pe as DialogClose, me as DialogContent, he as DialogDescription, ge as DialogFooter, _e as DialogHeader, ve as DialogOverlay, ye as DialogPortal, be as DialogTitle, xe as DialogTrigger, Se as DropdownMenu, Ce as DropdownMenuCheckboxItem, we as DropdownMenuContent, Te as DropdownMenuGroup, Ee as DropdownMenuItem, De as DropdownMenuLabel, Oe as DropdownMenuPortal, ke as DropdownMenuRadioGroup, Ae as DropdownMenuRadioItem, je as DropdownMenuSeparator, Me as DropdownMenuShortcut, Ne as DropdownMenuSub, Pe as DropdownMenuSubContent, Fe as DropdownMenuSubTrigger, Ie as DropdownMenuTrigger, Ft as EmphasisPanel, P as EmptyState, i as EntityIdModal, Nt as GlassCard, Ut as GradientText, Vt as IllustratedEmptyState, Ht as Illustration, Le as Input, Re as Label, Zt as ModalShell, zt as ModernLanding, Ge as NativeSelect, Kt as NativeWelcome, Wt as NextSteps, Jt as OfflineBanner, o as OptionalFields, Xt as PWAUpdateToast, Mt as PageContainer, Gt as PagePurpose, l as PageTabs, j as Pagination, ze as Popover, Be as PopoverAnchor, Ve as PopoverContent, He as PopoverTrigger, Yt as PullToRefresh, S as ResponsiveDialog, C as ResponsiveDialogClose, w as ResponsiveDialogContent, T as ResponsiveDialogDescription, E as ResponsiveDialogFooter, D as ResponsiveDialogHeader, O as ResponsiveDialogTitle, k as ResponsiveDialogTrigger, N as ResponsiveStack, A as ResponsiveTable, Ue as ScrollArea, We as ScrollBar, Ke as Select, qe as SelectContent, Je as SelectGroup, Ye as SelectItem, Xe as SelectLabel, Ze as SelectScrollDownButton, Qe as SelectScrollUpButton, $e as SelectSeparator, et as SelectTrigger, tt as SelectValue, nt as Separator, rt as Sheet, it as SheetClose, at as SheetContent, ot as SheetDescription, st as SheetFooter, ct as SheetHeader, lt as SheetTitle, ut as SheetTrigger, It as ShowMore, c as ShowTechnicalDetails, dt as Skeleton, pt as Spinner, M as Stepper, mt as Switch, ht as Table, gt as TableBody, _t as TableCaption, vt as TableCell, yt as TableFooter, bt as TableHead, xt as TableHeader, St as TableRow, Ct as Tabs, wt as TabsContent, Tt as TabsList, Et as TabsTrigger, Dt as Textarea, ft as Toaster, Ot as Tooltip, kt as TooltipContent, At as TooltipProvider, jt as TooltipTrigger, q as badgeVariants, Y as buttonVariants, Pt as glassCardVariants, u as matchActiveTab, d as splitTabs, a as useEntityIdModal, p as useHeadingDocumentTitle, s as useRememberedOpen };
|