@umodeapporg/ui 0.9.0 → 0.9.1

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.
@@ -46,14 +46,18 @@ interface IPageTitleProps {
46
46
  */
47
47
  titleMediaSize?: 'sm' | 'md' | 'lg';
48
48
  /**
49
- * The header shrinks once the page under it has been scrolled: the breadcrumb, the eyebrow, the
50
- * headline and the `subtitleSlot` collapse away, the media drops one size and the title takes its
51
- * compact type, while the back button and the `slot` stay exactly where they were. The header also
52
- * pins itself to the top of its scroll container, which is what makes shrinking it worth anything:
53
- * a header that scrolls away does not need to be smaller.
49
+ * The header pins itself to the top of its scroll container and, once pinned, shrinks: the
50
+ * breadcrumb, the eyebrow, the headline and the `subtitleSlot` go, the media drops one size (the
51
+ * record's picture stays, at the icon chip's size) and the title takes its compact type. The back
52
+ * button and the `slot` never move.
54
53
  *
55
- * On by default. Turn it off for a header that must keep its full identity on screen, and for one
56
- * that is not at the top of a scrolling page (inside a card, a dialog or a print sheet).
54
+ * EXPANDED, IT RENDERS EXACTLY WHAT IT RENDERED BEFORE THIS EXISTED: no wrapper node, no extra
55
+ * element, no background. That is deliberate. The first version added a sentinel node as a sibling
56
+ * of the header, and since almost every page wraps it in a `flex flex-col gap-y-*`, that node
57
+ * became a flex item and every page grew a stray gap.
58
+ *
59
+ * On by default. Turn it off for a header that must keep its full identity on screen, or one that
60
+ * is not at the top of a scrolling page (inside a card, a dialog or a print sheet).
57
61
  */
58
62
  collapseOnScroll?: boolean;
59
63
  /**
@@ -4,7 +4,6 @@ import classNames from "classnames";
4
4
  import { useTranslation } from "react-i18next";
5
5
  import { twMerge } from "tailwind-merge";
6
6
  import ControlledButton from "../Form/ControlledButton.js";
7
- import ControlledCollapse from "../UI/ControlledCollapse.js";
8
7
  import ControlledTooltip from "../UI/ControlledTooltip.js";
9
8
  import { capitalizeAllLetters } from "../../helpers/stringHelpers.js";
10
9
  import { MaterialSymbol } from "../UI/MaterialSymbol/index.js";
@@ -21,6 +20,7 @@ const MEDIA_ICON_SIZE = { sm: 18, md: 22, lg: 34 };
21
20
  const COLLAPSED_MEDIA_SIZE = { sm: "sm", md: "sm", lg: "md" };
22
21
  const COLLAPSE_AT_SCROLL = 48;
23
22
  const EXPAND_AT_SCROLL = 16;
23
+ const PINNED_TOLERANCE_PX = 1;
24
24
  const findScrollParent = (node) => {
25
25
  let current = node?.parentElement ?? null;
26
26
  while (current) {
@@ -92,7 +92,7 @@ const PageTitle = ({
92
92
  const resolvedTitleIcon = titleIcon ?? (autoIcon ? menuTrail[menuTrail.length - 1]?.icon : void 0);
93
93
  const [failedTitleImageSrc, setFailedTitleImageSrc] = useState(null);
94
94
  const rendersTitleImage = Boolean(titleImage?.src) && titleImage?.src !== failedTitleImageSrc;
95
- const sentinelRef = useRef(null);
95
+ const rootRef = useRef(null);
96
96
  const [isCollapsed, setIsCollapsed] = useState(false);
97
97
  const collapses = collapseOnScroll && !canFloat;
98
98
  useEffect(() => {
@@ -100,24 +100,32 @@ const PageTitle = ({
100
100
  setIsCollapsed(false);
101
101
  return;
102
102
  }
103
- const siblingContainer = collapseScrollRef?.current;
104
- if (siblingContainer) {
105
- const handleScroll = () => {
106
- const offset = siblingContainer.scrollTop;
103
+ const root = rootRef.current;
104
+ if (!root) return;
105
+ const container = collapseScrollRef?.current ?? findScrollParent(root);
106
+ if (!container) return;
107
+ const scrollsUnderTheHeader = container.contains(root);
108
+ let frame = 0;
109
+ const evaluate = () => {
110
+ frame = 0;
111
+ if (!scrollsUnderTheHeader) {
112
+ const offset = container.scrollTop;
107
113
  setIsCollapsed((previous) => previous ? offset > EXPAND_AT_SCROLL : offset >= COLLAPSE_AT_SCROLL);
108
- };
109
- handleScroll();
110
- siblingContainer.addEventListener("scroll", handleScroll, { passive: true });
111
- return () => siblingContainer.removeEventListener("scroll", handleScroll);
112
- }
113
- const sentinel = sentinelRef.current;
114
- if (!sentinel || typeof IntersectionObserver === "undefined") return;
115
- const observer = new IntersectionObserver(([entry]) => setIsCollapsed(!entry.isIntersecting), {
116
- root: findScrollParent(sentinel),
117
- threshold: 0
118
- });
119
- observer.observe(sentinel);
120
- return () => observer.disconnect();
114
+ return;
115
+ }
116
+ const stickyTop = Number.parseFloat(getComputedStyle(root).top);
117
+ const pinnedLine = container.getBoundingClientRect().top + (Number.isNaN(stickyTop) ? 0 : stickyTop);
118
+ setIsCollapsed(root.getBoundingClientRect().top <= pinnedLine + PINNED_TOLERANCE_PX);
119
+ };
120
+ const handleScroll = () => {
121
+ if (!frame) frame = requestAnimationFrame(evaluate);
122
+ };
123
+ evaluate();
124
+ container.addEventListener("scroll", handleScroll, { passive: true });
125
+ return () => {
126
+ container.removeEventListener("scroll", handleScroll);
127
+ if (frame) cancelAnimationFrame(frame);
128
+ };
121
129
  }, [collapses, collapseScrollRef]);
122
130
  const isCompactLayout = compact || isCollapsed;
123
131
  const resolvedMediaSize = titleMediaSize ?? (compact ? "sm" : "md");
@@ -126,125 +134,116 @@ const PageTitle = ({
126
134
  const mediaIconSize = MEDIA_ICON_SIZE[mediaSize];
127
135
  const mediaTransitionClassName = "transition-[width,height] duration-base ease-enter";
128
136
  const collapseValue = useMemo(() => ({ isCollapsed }), [isCollapsed]);
129
- return /* @__PURE__ */ jsxs(PageTitleCollapseProvider, { value: collapseValue, children: [
130
- collapses && /* @__PURE__ */ jsx("div", { ref: sentinelRef, "aria-hidden": true, className: "-mt-px h-px shrink-0" }),
131
- /* @__PURE__ */ jsxs(
132
- "div",
133
- {
134
- className: classNames(
135
- "flex flex-col",
136
- {
137
- "zIndexMax fixed top-16 mr-7": canFloat,
138
- // Pins under the app header, which publishes its own height; hosts without the shell
139
- // stick at the top of their scroll container.
140
- "sticky top-[var(--page-header-sticky-top,0px)] z-30": collapses,
141
- "shadow-elevation1 glass-subtle": collapses && isCollapsed
142
- },
143
- className
144
- ),
145
- style: {
146
- width: canFloat ? isFirefox() ? "-moz-available" : "-webkit-fill-available" : "100%"
137
+ return /* @__PURE__ */ jsx(PageTitleCollapseProvider, { value: collapseValue, children: /* @__PURE__ */ jsxs(
138
+ "div",
139
+ {
140
+ ref: rootRef,
141
+ className: classNames(
142
+ "flex flex-col",
143
+ {
144
+ "zIndexMax fixed top-16 mr-7": canFloat,
145
+ // Pins under the app header, which publishes its own height; hosts without the shell stick
146
+ // at the top of their own scroll container. `sticky` is inert until it pins, so this costs
147
+ // nothing on a page that does not scroll.
148
+ "sticky top-[var(--page-header-sticky-top,0px)] z-30": collapses,
149
+ // The page's own background, and nothing else. Pinned, the header has to be opaque or the
150
+ // content slides visibly through the title; but it is not a PANEL, so no glass, no border
151
+ // and no shadow, which read as a second surface appearing out of nowhere mid-scroll.
152
+ "bg-canvas": collapses && isCollapsed
147
153
  },
148
- children: [
149
- resolvedBreadcrumb && /* @__PURE__ */ jsx(ControlledCollapse, { open: !isCollapsed, className: "shrink-0", children: /* @__PURE__ */ jsx("div", { className: "mb-2", children: resolvedBreadcrumb }) }),
150
- /* @__PURE__ */ jsxs(
151
- "div",
152
- {
153
- className: classNames("flex w-full flex-wrap justify-between gap-x-4 gap-y-2", {
154
- "items-start": slotAlign === "start",
155
- "items-center": slotAlign !== "start",
156
- "bg-surface py-5": canFloat
157
- }),
158
- children: [
159
- /* @__PURE__ */ jsxs("div", { className: classNames("flex min-w-0 flex-1 basis-60 items-center", isCompactLayout ? "gap-2" : "gap-3"), children: [
160
- leadingSlot,
161
- canBack && /* @__PURE__ */ jsx(ControlledTooltip, { content: t("actions.back"), children: /* @__PURE__ */ jsx(
162
- ControlledButton,
163
- {
164
- defaultHtmlButton: true,
165
- onClick: handleBack,
166
- disabled: disableBack,
167
- className: classNames(
168
- "flex shrink-0 items-center justify-center rounded-full text-foreground-subtle transition-interactive duration-base ease-enter hover:bg-muted-hover hover:text-foreground-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-border active:scale-90 disabled:pointer-events-none disabled:text-foreground-faint",
169
- isCompactLayout ? "size-8" : "size-9"
170
- ),
171
- children: /* @__PURE__ */ jsx(MaterialSymbol, { icon: "arrow_back", size: isCompactLayout ? 18 : 20 })
172
- }
173
- ) }),
174
- rendersTitleImage && titleImage ? /* @__PURE__ */ jsx(
175
- "img",
176
- {
177
- src: titleImage.src,
178
- alt: titleImage.alt,
179
- onError: () => setFailedTitleImageSrc(titleImage.src),
180
- className: twMerge(
181
- "shrink-0 border border-border object-cover",
182
- mediaTransitionClassName,
183
- mediaBoxClassName,
184
- titleImage.className
185
- )
186
- }
187
- ) : resolvedTitleIcon && /* @__PURE__ */ jsx(
188
- "span",
189
- {
190
- className: twMerge(
191
- "flex shrink-0 items-center justify-center",
192
- mediaTransitionClassName,
193
- mediaBoxClassName,
194
- titleIconClassName ?? "bg-brand-soft text-brand-emphasis"
195
- ),
196
- children: /* @__PURE__ */ jsx(MaterialSymbol, { icon: resolvedTitleIcon, size: mediaIconSize, fill: true, className: "text-inherit" })
197
- }
198
- ),
199
- /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
200
- eyebrow && /* @__PURE__ */ jsx(ControlledCollapse, { open: !isCollapsed, children: /* @__PURE__ */ jsx("span", { className: "mb-0.5 block text-xs font-semibold uppercase tracking-widest text-foreground-faint", children: eyebrow }) }),
201
- /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
202
- titleContent ?? /* @__PURE__ */ jsx(
203
- "span",
204
- {
205
- className: classNames(
206
- "min-w-0 truncate",
207
- isCompactLayout ? "text-sm font-semibold text-foreground" : "text-lg font-bold tracking-tight text-foreground laptop:text-xl",
208
- titleClassName
209
- ),
210
- children: capitalizeTitle ? capitalizeAllLetters(title) : title
211
- }
212
- ),
213
- titleSlot
214
- ] }),
215
- headline && /* @__PURE__ */ jsx(ControlledCollapse, { open: !isCollapsed, children: /* @__PURE__ */ jsx("span", { className: "mt-0.5 block text-xs text-foreground-subtle", children: headline }) }),
216
- subtitleSlot && /* @__PURE__ */ jsx(ControlledCollapse, { open: !isCollapsed, children: /* @__PURE__ */ jsx("div", { className: "mt-1 flex min-w-0 flex-col gap-1", children: subtitleSlot }) })
217
- ] })
218
- ] }),
219
- slot && /* @__PURE__ */ jsx(
220
- "div",
154
+ className
155
+ ),
156
+ style: {
157
+ width: canFloat ? isFirefox() ? "-moz-available" : "-webkit-fill-available" : "100%"
158
+ },
159
+ children: [
160
+ resolvedBreadcrumb && !isCollapsed && /* @__PURE__ */ jsx("div", { className: "mb-2 shrink-0", children: resolvedBreadcrumb }),
161
+ /* @__PURE__ */ jsxs(
162
+ "div",
163
+ {
164
+ className: classNames("flex w-full flex-wrap justify-between gap-x-4 gap-y-2", {
165
+ "items-start": slotAlign === "start",
166
+ "items-center": slotAlign !== "start",
167
+ "bg-surface py-5": canFloat
168
+ }),
169
+ children: [
170
+ /* @__PURE__ */ jsxs("div", { className: classNames("flex min-w-0 flex-1 basis-60 items-center", isCompactLayout ? "gap-2" : "gap-3"), children: [
171
+ leadingSlot,
172
+ canBack && /* @__PURE__ */ jsx(ControlledTooltip, { content: t("actions.back"), children: /* @__PURE__ */ jsx(
173
+ ControlledButton,
221
174
  {
175
+ defaultHtmlButton: true,
176
+ onClick: handleBack,
177
+ disabled: disableBack,
222
178
  className: classNames(
223
- "ml-auto flex shrink-0 flex-wrap justify-end gap-2",
224
- slotAlign === "start" ? "items-start" : "items-center"
179
+ "flex shrink-0 items-center justify-center rounded-full text-foreground-subtle transition-interactive duration-base ease-enter hover:bg-muted-hover hover:text-foreground-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-border active:scale-90 disabled:pointer-events-none disabled:text-foreground-faint",
180
+ isCompactLayout ? "size-8" : "size-9"
225
181
  ),
226
- children: slot
182
+ children: /* @__PURE__ */ jsx(MaterialSymbol, { icon: "arrow_back", size: isCompactLayout ? 18 : 20 })
183
+ }
184
+ ) }),
185
+ rendersTitleImage && titleImage ? /* @__PURE__ */ jsx(
186
+ "img",
187
+ {
188
+ src: titleImage.src,
189
+ alt: titleImage.alt,
190
+ onError: () => setFailedTitleImageSrc(titleImage.src),
191
+ className: twMerge(
192
+ "shrink-0 border border-border object-cover",
193
+ mediaTransitionClassName,
194
+ mediaBoxClassName,
195
+ titleImage.className
196
+ )
227
197
  }
228
- )
229
- ]
230
- }
231
- ),
232
- showDivider && !canFloat && (title.length > 0 || Boolean(titleContent)) && // Pinned, the shadow already separates the header from what slides under it, and a rule on
233
- // top of it reads as a seam.
234
- /* @__PURE__ */ jsx(
235
- "hr",
236
- {
237
- className: classNames(
238
- "border-border-subtle transition-opacity duration-base",
239
- isCompactLayout ? "mb-2 mt-2" : "mb-2 mt-3",
240
- isCollapsed && "opacity-0"
198
+ ) : resolvedTitleIcon && /* @__PURE__ */ jsx(
199
+ "span",
200
+ {
201
+ className: twMerge(
202
+ "flex shrink-0 items-center justify-center",
203
+ mediaTransitionClassName,
204
+ mediaBoxClassName,
205
+ titleIconClassName ?? "bg-brand-soft text-brand-emphasis"
206
+ ),
207
+ children: /* @__PURE__ */ jsx(MaterialSymbol, { icon: resolvedTitleIcon, size: mediaIconSize, fill: true, className: "text-inherit" })
208
+ }
209
+ ),
210
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 flex-1 flex-col", children: [
211
+ eyebrow && !isCollapsed && /* @__PURE__ */ jsx("span", { className: "mb-0.5 text-xs font-semibold uppercase tracking-widest text-foreground-faint", children: eyebrow }),
212
+ /* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center gap-2", children: [
213
+ titleContent ?? /* @__PURE__ */ jsx(
214
+ "span",
215
+ {
216
+ className: classNames(
217
+ "min-w-0 truncate",
218
+ isCompactLayout ? "text-sm font-semibold text-foreground" : "text-lg font-bold tracking-tight text-foreground laptop:text-xl",
219
+ titleClassName
220
+ ),
221
+ children: capitalizeTitle ? capitalizeAllLetters(title) : title
222
+ }
223
+ ),
224
+ titleSlot
225
+ ] }),
226
+ headline && !isCollapsed && /* @__PURE__ */ jsx("span", { className: "mt-0.5 text-xs text-foreground-subtle", children: headline }),
227
+ subtitleSlot && !isCollapsed && /* @__PURE__ */ jsx("div", { className: "mt-1 flex min-w-0 flex-col gap-1", children: subtitleSlot })
228
+ ] })
229
+ ] }),
230
+ slot && /* @__PURE__ */ jsx(
231
+ "div",
232
+ {
233
+ className: classNames(
234
+ "ml-auto flex shrink-0 flex-wrap justify-end gap-2",
235
+ slotAlign === "start" ? "items-start" : "items-center"
236
+ ),
237
+ children: slot
238
+ }
241
239
  )
242
- }
243
- )
244
- ]
245
- }
246
- )
247
- ] });
240
+ ]
241
+ }
242
+ ),
243
+ showDivider && !canFloat && (title.length > 0 || Boolean(titleContent)) && /* @__PURE__ */ jsx("hr", { className: classNames("border-border-subtle", isCompactLayout ? "mb-2 mt-2" : "mb-2 mt-3") })
244
+ ]
245
+ }
246
+ ) });
248
247
  };
249
248
  export {
250
249
  PageTitle as default
@@ -1 +1 @@
1
- {"version":3,"file":"PageTitle.js","sources":["../../../src/components/Navigation/PageTitle.tsx"],"sourcesContent":["import { ReactNode, RefObject, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { useTranslation } from 'react-i18next';\nimport { twMerge } from 'tailwind-merge';\n\nimport ControlledButton from '@/components/Form/ControlledButton';\nimport ControlledCollapse from '@/components/UI/ControlledCollapse';\nimport ControlledTooltip from '@/components/UI/ControlledTooltip';\nimport { capitalizeAllLetters } from '@/helpers/stringHelpers';\n\nimport { MaterialSymbol, SymbolCodepoints } from '../UI/MaterialSymbol';\n\nimport ControlledBreadcrumb from './ControlledBreadcrumb';\nimport { PageTitleCollapseProvider } from './PageTitleCollapseContext';\nimport { usePageTitleNavigation } from './PageTitleNavigationContext';\nimport { useUiNavigation } from './UiNavigationContext';\n\nexport interface IPageTitleImage {\n src: string;\n /** The image REPLACES the icon chip, so it carries the accessible name of what it depicts. */\n alt: string;\n /** Escape hatch for shape and size, e.g. `rounded-full` for an avatar. Merged last, so it wins. */\n className?: string;\n}\n\nconst MEDIA_BOX_CLASSNAME: Record<'sm' | 'md' | 'lg', string> = {\n sm: 'size-8 rounded-lg',\n md: 'size-10 rounded-xl',\n lg: 'size-20 rounded-xl',\n};\n\nconst MEDIA_ICON_SIZE: Record<'sm' | 'md' | 'lg', number> = { sm: 18, md: 22, lg: 34 };\n\n/** One step down, so a record cover stays recognisable in the collapsed header instead of vanishing. */\nconst COLLAPSED_MEDIA_SIZE: Record<'sm' | 'md' | 'lg', 'sm' | 'md' | 'lg'> = { sm: 'sm', md: 'sm', lg: 'md' };\n\n/**\n * Thresholds for the sibling-container case, in px. They differ on purpose: collapsing and expanding\n * at the same position makes the header flicker for a whole gesture when a scroll lands on it.\n */\nconst COLLAPSE_AT_SCROLL = 48;\nconst EXPAND_AT_SCROLL = 16;\n\nconst findScrollParent = (node: HTMLElement | null): HTMLElement | null => {\n let current = node?.parentElement ?? null;\n while (current) {\n const { overflowY } = getComputedStyle(current);\n if (overflowY === 'auto' || overflowY === 'scroll') return current;\n current = current.parentElement;\n }\n return null;\n};\n\ninterface IPageTitleProps {\n title?: string;\n /** Substitui o span do título por conteúdo rico (ex.: nome editável inline da ficha técnica). */\n titleContent?: ReactNode;\n /** Rótulo pequeno em caixa alta acima do título (ex.: \"FICHA TÉCNICA\"). */\n eyebrow?: string;\n /** Conteúdo abaixo da linha do título, dentro da coluna de texto (tags, steppers). */\n subtitleSlot?: ReactNode;\n slot?: ReactNode;\n /**\n * Where the `slot` sits against the text column. `center` (default) is right for a one-line title with\n * a couple of buttons; `start` pins it to the TOP of the header, which is what a tall identification\n * block needs so its actions line up with the eyebrow instead of floating at the middle.\n */\n slotAlign?: 'center' | 'start';\n /** Conteúdo renderizado à ESQUERDA, imediatamente ao lado do título (o `slot` fica à direita). */\n titleSlot?: ReactNode;\n /** Conteúdo renderizado ANTES do ícone/título (ex.: botão voltar customizado, alvo de drop). */\n leadingSlot?: ReactNode;\n /** Trilha custom acima do título (use `ControlledBreadcrumb`). Sem ela, a trilha é derivada do menu. */\n breadcrumb?: ReactNode;\n /** Deriva a trilha automaticamente da árvore de navegação quando `breadcrumb` não é passado. */\n autoBreadcrumb?: boolean;\n /** Ícone em chip à esquerda do título. Sem ele, herda o ícone do item de menu da rota atual. */\n titleIcon?: SymbolCodepoints;\n titleIconClassName?: string;\n /**\n * An image in the icon chip's place, at the same size and radius (e.g. the product cover on a\n * datasheet header). A src that fails to load falls back to the icon instead of leaving a broken\n * image in the header.\n */\n titleImage?: IPageTitleImage;\n /**\n * Size of the leading media (icon chip or `titleImage`). `md` is the 2.5rem chip every page uses;\n * `lg` is the 5rem cover of a RECORD header, where the image identifies the record itself (a product\n * datasheet). `compact` already implies `sm`, so pass this only to go bigger.\n */\n titleMediaSize?: 'sm' | 'md' | 'lg';\n /**\n * The header shrinks once the page under it has been scrolled: the breadcrumb, the eyebrow, the\n * headline and the `subtitleSlot` collapse away, the media drops one size and the title takes its\n * compact type, while the back button and the `slot` stay exactly where they were. The header also\n * pins itself to the top of its scroll container, which is what makes shrinking it worth anything:\n * a header that scrolls away does not need to be smaller.\n *\n * On by default. Turn it off for a header that must keep its full identity on screen, and for one\n * that is not at the top of a scrolling page (inside a card, a dialog or a print sheet).\n */\n collapseOnScroll?: boolean;\n /**\n * The element whose scrolling drives the collapse. Only needed when the page's content scrolls in a\n * container that is NOT an ancestor of the header, which is what a split layout does (a fixed header\n * over an independently scrolling body). Left out, the header finds its own scrollable ancestor.\n */\n collapseScrollRef?: RefObject<HTMLElement | null>;\n /** Deriva o ícone automaticamente do menu quando `titleIcon` não é passado. */\n autoIcon?: boolean;\n /** Variante compacta: título menor, para headers de navegação interna (ex.: pastas). */\n compact?: boolean;\n /** Desligue para títulos digitados pelo usuário (nomes de pastas etc.), que não podem ter a caixa alterada. */\n capitalizeTitle?: boolean;\n /** Desligue quando o header é seguido imediatamente por tabs ou outra divisão própria. */\n showDivider?: boolean;\n canBack?: boolean;\n canBackTo?: string;\n canFloat?: boolean;\n headline?: string;\n className?: string;\n titleClassName?: string;\n onBackClick?: () => void;\n disableBack?: boolean;\n}\n\nconst PageTitle: React.FC<IPageTitleProps> = ({\n canBack = false,\n canFloat = false,\n canBackTo,\n title = '',\n titleContent,\n eyebrow,\n subtitleSlot,\n headline,\n slot,\n slotAlign = 'center',\n titleSlot,\n leadingSlot,\n breadcrumb,\n autoBreadcrumb = true,\n titleIcon,\n titleIconClassName,\n titleImage,\n titleMediaSize,\n collapseOnScroll = true,\n collapseScrollRef,\n autoIcon = true,\n compact = false,\n capitalizeTitle = true,\n showDivider = true,\n className,\n titleClassName,\n onBackClick,\n disableBack = false,\n}) => {\n const { t } = useTranslation('ui');\n const { navigate, goBack, location } = useUiNavigation();\n\n const isFirefox = () => typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().includes('firefox');\n\n const handleBack = () => {\n if (disableBack) return;\n\n if (onBackClick) {\n onBackClick();\n } else if (canBackTo) {\n navigate(canBackTo);\n } else {\n goBack();\n }\n };\n\n const { resolveTrail } = usePageTitleNavigation();\n\n const menuTrail = useMemo(() => {\n const needsTrail = (autoBreadcrumb && !breadcrumb && !canFloat) || (autoIcon && !titleIcon && !titleImage);\n return needsTrail ? resolveTrail(location.pathname) : [];\n }, [autoBreadcrumb, breadcrumb, canFloat, autoIcon, titleIcon, titleImage, location.pathname, resolveTrail]);\n\n const resolvedBreadcrumb =\n breadcrumb ??\n (autoBreadcrumb && !canFloat && menuTrail.length >= 2 ? (\n <ControlledBreadcrumb\n ariaLabel={t('pageTitle.breadcrumbLabel')}\n items={menuTrail.map((item, index) => ({\n key: item.key,\n label: item.label,\n to: index < menuTrail.length - 1 ? item.to : undefined,\n }))}\n />\n ) : undefined);\n\n const resolvedTitleIcon = titleIcon ?? (autoIcon ? menuTrail[menuTrail.length - 1]?.icon : undefined);\n\n // Holds the src that failed rather than a boolean, so pointing at another image retries on its own.\n const [failedTitleImageSrc, setFailedTitleImageSrc] = useState<string | null>(null);\n const rendersTitleImage = Boolean(titleImage?.src) && titleImage?.src !== failedTitleImageSrc;\n\n const sentinelRef = useRef<HTMLDivElement>(null);\n const [isCollapsed, setIsCollapsed] = useState(false);\n // A floating header is already pinned by its own mechanism, and collapsing it would fight it.\n const collapses = collapseOnScroll && !canFloat;\n\n useEffect(() => {\n if (!collapses) {\n setIsCollapsed(false);\n return;\n }\n\n // Sibling container: the header does not move with the content, so its own position says\n // nothing and the scroll offset is the only signal.\n const siblingContainer = collapseScrollRef?.current;\n if (siblingContainer) {\n const handleScroll = () => {\n const offset = siblingContainer.scrollTop;\n setIsCollapsed((previous) => (previous ? offset > EXPAND_AT_SCROLL : offset >= COLLAPSE_AT_SCROLL));\n };\n handleScroll();\n siblingContainer.addEventListener('scroll', handleScroll, { passive: true });\n return () => siblingContainer.removeEventListener('scroll', handleScroll);\n }\n\n // Ancestor container: the sentinel sits ABOVE the sticky header, in the normal flow, so it\n // leaves the scrollport exactly when the header pins itself. Watching the header instead would\n // never fire, since a pinned element stays in view by definition.\n const sentinel = sentinelRef.current;\n if (!sentinel || typeof IntersectionObserver === 'undefined') return;\n\n const observer = new IntersectionObserver(([entry]) => setIsCollapsed(!entry.isIntersecting), {\n root: findScrollParent(sentinel),\n threshold: 0,\n });\n observer.observe(sentinel);\n return () => observer.disconnect();\n }, [collapses, collapseScrollRef]);\n\n const isCompactLayout = compact || isCollapsed;\n const resolvedMediaSize = titleMediaSize ?? (compact ? 'sm' : 'md');\n const mediaSize = isCollapsed ? COLLAPSED_MEDIA_SIZE[resolvedMediaSize] : resolvedMediaSize;\n const mediaBoxClassName = MEDIA_BOX_CLASSNAME[mediaSize];\n const mediaIconSize = MEDIA_ICON_SIZE[mediaSize];\n const mediaTransitionClassName = 'transition-[width,height] duration-base ease-enter';\n const collapseValue = useMemo(() => ({ isCollapsed }), [isCollapsed]);\n\n return (\n <PageTitleCollapseProvider value={collapseValue}>\n {/* Sits in the normal flow, right above the pinned header, so it is the thing that scrolls\n out of view when the header pins itself. Zero height: it must not add rhythm. */}\n {collapses && <div ref={sentinelRef} aria-hidden className=\"-mt-px h-px shrink-0\" />}\n\n <div\n className={classNames(\n 'flex flex-col',\n {\n 'zIndexMax fixed top-16 mr-7': canFloat,\n // Pins under the app header, which publishes its own height; hosts without the shell\n // stick at the top of their scroll container.\n 'sticky top-[var(--page-header-sticky-top,0px)] z-30': collapses,\n 'shadow-elevation1 glass-subtle': collapses && isCollapsed,\n },\n className,\n )}\n style={{\n width: canFloat ? (isFirefox() ? '-moz-available' : '-webkit-fill-available') : '100%',\n }}\n >\n {resolvedBreadcrumb && (\n <ControlledCollapse open={!isCollapsed} className=\"shrink-0\">\n <div className=\"mb-2\">{resolvedBreadcrumb}</div>\n </ControlledCollapse>\n )}\n\n <div\n className={classNames('flex w-full flex-wrap justify-between gap-x-4 gap-y-2', {\n 'items-start': slotAlign === 'start',\n 'items-center': slotAlign !== 'start',\n 'bg-surface py-5': canFloat,\n })}\n >\n <div className={classNames('flex min-w-0 flex-1 basis-60 items-center', isCompactLayout ? 'gap-2' : 'gap-3')}>\n {leadingSlot}\n\n {canBack && (\n <ControlledTooltip content={t('actions.back')}>\n <ControlledButton\n defaultHtmlButton\n onClick={handleBack}\n disabled={disableBack}\n className={classNames(\n 'flex shrink-0 items-center justify-center rounded-full text-foreground-subtle transition-interactive duration-base ease-enter hover:bg-muted-hover hover:text-foreground-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-border active:scale-90 disabled:pointer-events-none disabled:text-foreground-faint',\n isCompactLayout ? 'size-8' : 'size-9',\n )}\n >\n <MaterialSymbol icon=\"arrow_back\" size={isCompactLayout ? 18 : 20} />\n </ControlledButton>\n </ControlledTooltip>\n )}\n\n {rendersTitleImage && titleImage ? (\n <img\n src={titleImage.src}\n alt={titleImage.alt}\n onError={() => setFailedTitleImageSrc(titleImage.src)}\n className={twMerge(\n 'shrink-0 border border-border object-cover',\n mediaTransitionClassName,\n mediaBoxClassName,\n titleImage.className,\n )}\n />\n ) : (\n resolvedTitleIcon && (\n <span\n className={twMerge(\n 'flex shrink-0 items-center justify-center',\n mediaTransitionClassName,\n mediaBoxClassName,\n titleIconClassName ?? 'bg-brand-soft text-brand-emphasis',\n )}\n >\n <MaterialSymbol icon={resolvedTitleIcon} size={mediaIconSize} fill className=\"text-inherit\" />\n </span>\n )\n )}\n\n <div className=\"flex min-w-0 flex-1 flex-col\">\n {eyebrow && (\n <ControlledCollapse open={!isCollapsed}>\n <span className=\"mb-0.5 block text-xs font-semibold uppercase tracking-widest text-foreground-faint\">\n {eyebrow}\n </span>\n </ControlledCollapse>\n )}\n\n <div className=\"flex min-w-0 items-center gap-2\">\n {titleContent ?? (\n <span\n className={classNames(\n 'min-w-0 truncate',\n isCompactLayout\n ? 'text-sm font-semibold text-foreground'\n : 'text-lg font-bold tracking-tight text-foreground laptop:text-xl',\n titleClassName,\n )}\n >\n {capitalizeTitle ? capitalizeAllLetters(title) : title}\n </span>\n )}\n\n {titleSlot}\n </div>\n\n {headline && (\n <ControlledCollapse open={!isCollapsed}>\n <span className=\"mt-0.5 block text-xs text-foreground-subtle\">{headline}</span>\n </ControlledCollapse>\n )}\n\n {subtitleSlot && (\n <ControlledCollapse open={!isCollapsed}>\n <div className=\"mt-1 flex min-w-0 flex-col gap-1\">{subtitleSlot}</div>\n </ControlledCollapse>\n )}\n </div>\n </div>\n\n {slot && (\n <div\n className={classNames(\n 'ml-auto flex shrink-0 flex-wrap justify-end gap-2',\n slotAlign === 'start' ? 'items-start' : 'items-center',\n )}\n >\n {slot}\n </div>\n )}\n </div>\n {showDivider && !canFloat && (title.length > 0 || Boolean(titleContent)) && (\n // Pinned, the shadow already separates the header from what slides under it, and a rule on\n // top of it reads as a seam.\n <hr\n className={classNames(\n 'border-border-subtle transition-opacity duration-base',\n isCompactLayout ? 'mb-2 mt-2' : 'mb-2 mt-3',\n isCollapsed && 'opacity-0',\n )}\n />\n )}\n </div>\n </PageTitleCollapseProvider>\n );\n};\n\nexport default PageTitle;\n"],"names":[],"mappings":";;;;;;;;;;;;;;AAyBA,MAAM,sBAA0D;AAAA,EAC9D,IAAI;AAAA,EACJ,IAAI;AAAA,E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AA,sBAAA,gBACC;AAAA,wBAAC;AAAA,wBAAA;AAAA,0BACC,WAAW;AAAA,4BACT;AAAA,4BACA,kBACI,0CACA;AAAA,4BACJ;AAAA,0BAAA;AAAA,0BAGD,UAAA,kBAAkB,qBAAqB,KAAK,IAAI;AAAA,wBAAA;AAAA,sBAAA;AAAA,sBAIpD;AAAA,oBAAA,GACH;AAAA,oBAEC,YACC,oBAAC,oBAAA,EAAmB,MAAM,CAAC,aACzB,UAAA,oBAAC,QAAA,EAAK,WAAU,+CAA+C,UAAA,SAAA,CAAS,GAC1E;AAAA,oBAGD,gBACC,oBAAC,oBAAA,EAAmB,MAAM,CAAC,aACzB,UAAA,oBAAC,OAAA,EAAI,WAAU,oCAAoC,UAAA,aAAA,CAAa,EAAA,CAClE;AAAA,kBAAA,EAAA,CAEJ;AAAA,gBAAA,GACF;AAAA,gBAEC,QACC;AAAA,kBAAC;AAAA,kBAAA;AAAA,oBACC,WAAW;AAAA,sBACT;AAAA,sBACA,cAAc,UAAU,gBAAgB;AAAA,oBAAA;AAAA,oBAGzC,UAAA;AAAA,kBAAA;AAAA,gBAAA;AAAA,cACH;AAAA,YAAA;AAAA,UAAA;AAAA,UAGH,eAAe,CAAC,aAAa,MAAM,SAAS,KAAK,QAAQ,YAAY;AAAA;AAAA,UAGpE;AAAA,YAAC;AAAA,YAAA;AAAA,cACC,WAAW;AAAA,gBACT;AAAA,gBACA,kBAAkB,cAAc;AAAA,gBAChC,eAAe;AAAA,cAAA;AAAA,YACjB;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAEJ,GACF;AAEJ;"}
1
+ {"version":3,"file":"PageTitle.js","sources":["../../../src/components/Navigation/PageTitle.tsx"],"sourcesContent":["import { ReactNode, RefObject, useEffect, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\nimport { useTranslation } from 'react-i18next';\nimport { twMerge } from 'tailwind-merge';\n\nimport ControlledButton from '@/components/Form/ControlledButton';\nimport ControlledTooltip from '@/components/UI/ControlledTooltip';\nimport { capitalizeAllLetters } from '@/helpers/stringHelpers';\n\nimport { MaterialSymbol, SymbolCodepoints } from '../UI/MaterialSymbol';\n\nimport ControlledBreadcrumb from './ControlledBreadcrumb';\nimport { PageTitleCollapseProvider } from './PageTitleCollapseContext';\nimport { usePageTitleNavigation } from './PageTitleNavigationContext';\nimport { useUiNavigation } from './UiNavigationContext';\n\nexport interface IPageTitleImage {\n src: string;\n /** The image REPLACES the icon chip, so it carries the accessible name of what it depicts. */\n alt: string;\n /** Escape hatch for shape and size, e.g. `rounded-full` for an avatar. Merged last, so it wins. */\n className?: string;\n}\n\nconst MEDIA_BOX_CLASSNAME: Record<'sm' | 'md' | 'lg', string> = {\n sm: 'size-8 rounded-lg',\n md: 'size-10 rounded-xl',\n lg: 'size-20 rounded-xl',\n};\n\nconst MEDIA_ICON_SIZE: Record<'sm' | 'md' | 'lg', number> = { sm: 18, md: 22, lg: 34 };\n\n/** One step down, so a record cover stays recognisable in the collapsed header instead of vanishing. */\nconst COLLAPSED_MEDIA_SIZE: Record<'sm' | 'md' | 'lg', 'sm' | 'md' | 'lg'> = { sm: 'sm', md: 'sm', lg: 'md' };\n\n/**\n * Thresholds for the sibling-container case, in px. They differ on purpose: collapsing and expanding\n * at the same position makes the header flicker for a whole gesture when a scroll lands on it.\n */\nconst COLLAPSE_AT_SCROLL = 48;\nconst EXPAND_AT_SCROLL = 16;\n\n/** Tolerance for the pinned test: sub-pixel layout would otherwise flip the state on its own. */\nconst PINNED_TOLERANCE_PX = 1;\n\nconst findScrollParent = (node: HTMLElement | null): HTMLElement | null => {\n let current = node?.parentElement ?? null;\n while (current) {\n const { overflowY } = getComputedStyle(current);\n if (overflowY === 'auto' || overflowY === 'scroll') return current;\n current = current.parentElement;\n }\n return null;\n};\n\ninterface IPageTitleProps {\n title?: string;\n /** Substitui o span do título por conteúdo rico (ex.: nome editável inline da ficha técnica). */\n titleContent?: ReactNode;\n /** Rótulo pequeno em caixa alta acima do título (ex.: \"FICHA TÉCNICA\"). */\n eyebrow?: string;\n /** Conteúdo abaixo da linha do título, dentro da coluna de texto (tags, steppers). */\n subtitleSlot?: ReactNode;\n slot?: ReactNode;\n /**\n * Where the `slot` sits against the text column. `center` (default) is right for a one-line title with\n * a couple of buttons; `start` pins it to the TOP of the header, which is what a tall identification\n * block needs so its actions line up with the eyebrow instead of floating at the middle.\n */\n slotAlign?: 'center' | 'start';\n /** Conteúdo renderizado à ESQUERDA, imediatamente ao lado do título (o `slot` fica à direita). */\n titleSlot?: ReactNode;\n /** Conteúdo renderizado ANTES do ícone/título (ex.: botão voltar customizado, alvo de drop). */\n leadingSlot?: ReactNode;\n /** Trilha custom acima do título (use `ControlledBreadcrumb`). Sem ela, a trilha é derivada do menu. */\n breadcrumb?: ReactNode;\n /** Deriva a trilha automaticamente da árvore de navegação quando `breadcrumb` não é passado. */\n autoBreadcrumb?: boolean;\n /** Ícone em chip à esquerda do título. Sem ele, herda o ícone do item de menu da rota atual. */\n titleIcon?: SymbolCodepoints;\n titleIconClassName?: string;\n /**\n * An image in the icon chip's place, at the same size and radius (e.g. the product cover on a\n * datasheet header). A src that fails to load falls back to the icon instead of leaving a broken\n * image in the header.\n */\n titleImage?: IPageTitleImage;\n /**\n * Size of the leading media (icon chip or `titleImage`). `md` is the 2.5rem chip every page uses;\n * `lg` is the 5rem cover of a RECORD header, where the image identifies the record itself (a product\n * datasheet). `compact` already implies `sm`, so pass this only to go bigger.\n */\n titleMediaSize?: 'sm' | 'md' | 'lg';\n /**\n * The header pins itself to the top of its scroll container and, once pinned, shrinks: the\n * breadcrumb, the eyebrow, the headline and the `subtitleSlot` go, the media drops one size (the\n * record's picture stays, at the icon chip's size) and the title takes its compact type. The back\n * button and the `slot` never move.\n *\n * EXPANDED, IT RENDERS EXACTLY WHAT IT RENDERED BEFORE THIS EXISTED: no wrapper node, no extra\n * element, no background. That is deliberate. The first version added a sentinel node as a sibling\n * of the header, and since almost every page wraps it in a `flex flex-col gap-y-*`, that node\n * became a flex item and every page grew a stray gap.\n *\n * On by default. Turn it off for a header that must keep its full identity on screen, or one that\n * is not at the top of a scrolling page (inside a card, a dialog or a print sheet).\n */\n collapseOnScroll?: boolean;\n /**\n * The element whose scrolling drives the collapse. Only needed when the page's content scrolls in a\n * container that is NOT an ancestor of the header, which is what a split layout does (a fixed header\n * over an independently scrolling body). Left out, the header finds its own scrollable ancestor.\n */\n collapseScrollRef?: RefObject<HTMLElement | null>;\n /** Deriva o ícone automaticamente do menu quando `titleIcon` não é passado. */\n autoIcon?: boolean;\n /** Variante compacta: título menor, para headers de navegação interna (ex.: pastas). */\n compact?: boolean;\n /** Desligue para títulos digitados pelo usuário (nomes de pastas etc.), que não podem ter a caixa alterada. */\n capitalizeTitle?: boolean;\n /** Desligue quando o header é seguido imediatamente por tabs ou outra divisão própria. */\n showDivider?: boolean;\n canBack?: boolean;\n canBackTo?: string;\n canFloat?: boolean;\n headline?: string;\n className?: string;\n titleClassName?: string;\n onBackClick?: () => void;\n disableBack?: boolean;\n}\n\nconst PageTitle: React.FC<IPageTitleProps> = ({\n canBack = false,\n canFloat = false,\n canBackTo,\n title = '',\n titleContent,\n eyebrow,\n subtitleSlot,\n headline,\n slot,\n slotAlign = 'center',\n titleSlot,\n leadingSlot,\n breadcrumb,\n autoBreadcrumb = true,\n titleIcon,\n titleIconClassName,\n titleImage,\n titleMediaSize,\n collapseOnScroll = true,\n collapseScrollRef,\n autoIcon = true,\n compact = false,\n capitalizeTitle = true,\n showDivider = true,\n className,\n titleClassName,\n onBackClick,\n disableBack = false,\n}) => {\n const { t } = useTranslation('ui');\n const { navigate, goBack, location } = useUiNavigation();\n\n const isFirefox = () => typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().includes('firefox');\n\n const handleBack = () => {\n if (disableBack) return;\n\n if (onBackClick) {\n onBackClick();\n } else if (canBackTo) {\n navigate(canBackTo);\n } else {\n goBack();\n }\n };\n\n const { resolveTrail } = usePageTitleNavigation();\n\n const menuTrail = useMemo(() => {\n const needsTrail = (autoBreadcrumb && !breadcrumb && !canFloat) || (autoIcon && !titleIcon && !titleImage);\n return needsTrail ? resolveTrail(location.pathname) : [];\n }, [autoBreadcrumb, breadcrumb, canFloat, autoIcon, titleIcon, titleImage, location.pathname, resolveTrail]);\n\n const resolvedBreadcrumb =\n breadcrumb ??\n (autoBreadcrumb && !canFloat && menuTrail.length >= 2 ? (\n <ControlledBreadcrumb\n ariaLabel={t('pageTitle.breadcrumbLabel')}\n items={menuTrail.map((item, index) => ({\n key: item.key,\n label: item.label,\n to: index < menuTrail.length - 1 ? item.to : undefined,\n }))}\n />\n ) : undefined);\n\n const resolvedTitleIcon = titleIcon ?? (autoIcon ? menuTrail[menuTrail.length - 1]?.icon : undefined);\n\n // Holds the src that failed rather than a boolean, so pointing at another image retries on its own.\n const [failedTitleImageSrc, setFailedTitleImageSrc] = useState<string | null>(null);\n const rendersTitleImage = Boolean(titleImage?.src) && titleImage?.src !== failedTitleImageSrc;\n\n const rootRef = useRef<HTMLDivElement>(null);\n const [isCollapsed, setIsCollapsed] = useState(false);\n // A floating header is already pinned by its own mechanism, and collapsing it would fight it.\n const collapses = collapseOnScroll && !canFloat;\n\n useEffect(() => {\n if (!collapses) {\n setIsCollapsed(false);\n return;\n }\n\n const root = rootRef.current;\n if (!root) return;\n\n const container = collapseScrollRef?.current ?? findScrollParent(root);\n if (!container) return;\n\n // Two shapes, one listener. When the container is an ANCESTOR the header travels with the page,\n // so being pinned is a question about its position; when it is a SIBLING (a split layout, where\n // the header never moves) its position says nothing and the scroll offset is all there is.\n const scrollsUnderTheHeader = container.contains(root);\n let frame = 0;\n\n const evaluate = () => {\n frame = 0;\n\n if (!scrollsUnderTheHeader) {\n const offset = container.scrollTop;\n setIsCollapsed((previous) => (previous ? offset > EXPAND_AT_SCROLL : offset >= COLLAPSE_AT_SCROLL));\n return;\n }\n\n // `top` comes from the sticky class, so the pinned line is read from the DOM instead of being\n // duplicated here: the shell decides it, and a host without the shell pins at 0.\n const stickyTop = Number.parseFloat(getComputedStyle(root).top);\n const pinnedLine = container.getBoundingClientRect().top + (Number.isNaN(stickyTop) ? 0 : stickyTop);\n setIsCollapsed(root.getBoundingClientRect().top <= pinnedLine + PINNED_TOLERANCE_PX);\n };\n\n const handleScroll = () => {\n if (!frame) frame = requestAnimationFrame(evaluate);\n };\n\n evaluate();\n container.addEventListener('scroll', handleScroll, { passive: true });\n return () => {\n container.removeEventListener('scroll', handleScroll);\n if (frame) cancelAnimationFrame(frame);\n };\n }, [collapses, collapseScrollRef]);\n\n const isCompactLayout = compact || isCollapsed;\n const resolvedMediaSize = titleMediaSize ?? (compact ? 'sm' : 'md');\n const mediaSize = isCollapsed ? COLLAPSED_MEDIA_SIZE[resolvedMediaSize] : resolvedMediaSize;\n const mediaBoxClassName = MEDIA_BOX_CLASSNAME[mediaSize];\n const mediaIconSize = MEDIA_ICON_SIZE[mediaSize];\n const mediaTransitionClassName = 'transition-[width,height] duration-base ease-enter';\n const collapseValue = useMemo(() => ({ isCollapsed }), [isCollapsed]);\n\n return (\n <PageTitleCollapseProvider value={collapseValue}>\n <div\n ref={rootRef}\n className={classNames(\n 'flex flex-col',\n {\n 'zIndexMax fixed top-16 mr-7': canFloat,\n // Pins under the app header, which publishes its own height; hosts without the shell stick\n // at the top of their own scroll container. `sticky` is inert until it pins, so this costs\n // nothing on a page that does not scroll.\n 'sticky top-[var(--page-header-sticky-top,0px)] z-30': collapses,\n // The page's own background, and nothing else. Pinned, the header has to be opaque or the\n // content slides visibly through the title; but it is not a PANEL, so no glass, no border\n // and no shadow, which read as a second surface appearing out of nowhere mid-scroll.\n 'bg-canvas': collapses && isCollapsed,\n },\n className,\n )}\n style={{\n width: canFloat ? (isFirefox() ? '-moz-available' : '-webkit-fill-available') : '100%',\n }}\n >\n {resolvedBreadcrumb && !isCollapsed && <div className=\"mb-2 shrink-0\">{resolvedBreadcrumb}</div>}\n\n <div\n className={classNames('flex w-full flex-wrap justify-between gap-x-4 gap-y-2', {\n 'items-start': slotAlign === 'start',\n 'items-center': slotAlign !== 'start',\n 'bg-surface py-5': canFloat,\n })}\n >\n <div className={classNames('flex min-w-0 flex-1 basis-60 items-center', isCompactLayout ? 'gap-2' : 'gap-3')}>\n {leadingSlot}\n\n {canBack && (\n <ControlledTooltip content={t('actions.back')}>\n <ControlledButton\n defaultHtmlButton\n onClick={handleBack}\n disabled={disableBack}\n className={classNames(\n 'flex shrink-0 items-center justify-center rounded-full text-foreground-subtle transition-interactive duration-base ease-enter hover:bg-muted-hover hover:text-foreground-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-brand-border active:scale-90 disabled:pointer-events-none disabled:text-foreground-faint',\n isCompactLayout ? 'size-8' : 'size-9',\n )}\n >\n <MaterialSymbol icon=\"arrow_back\" size={isCompactLayout ? 18 : 20} />\n </ControlledButton>\n </ControlledTooltip>\n )}\n\n {rendersTitleImage && titleImage ? (\n <img\n src={titleImage.src}\n alt={titleImage.alt}\n onError={() => setFailedTitleImageSrc(titleImage.src)}\n className={twMerge(\n 'shrink-0 border border-border object-cover',\n mediaTransitionClassName,\n mediaBoxClassName,\n titleImage.className,\n )}\n />\n ) : (\n resolvedTitleIcon && (\n <span\n className={twMerge(\n 'flex shrink-0 items-center justify-center',\n mediaTransitionClassName,\n mediaBoxClassName,\n titleIconClassName ?? 'bg-brand-soft text-brand-emphasis',\n )}\n >\n <MaterialSymbol icon={resolvedTitleIcon} size={mediaIconSize} fill className=\"text-inherit\" />\n </span>\n )\n )}\n\n <div className=\"flex min-w-0 flex-1 flex-col\">\n {eyebrow && !isCollapsed && (\n <span className=\"mb-0.5 text-xs font-semibold uppercase tracking-widest text-foreground-faint\">\n {eyebrow}\n </span>\n )}\n\n <div className=\"flex min-w-0 items-center gap-2\">\n {titleContent ?? (\n <span\n className={classNames(\n 'min-w-0 truncate',\n isCompactLayout\n ? 'text-sm font-semibold text-foreground'\n : 'text-lg font-bold tracking-tight text-foreground laptop:text-xl',\n titleClassName,\n )}\n >\n {capitalizeTitle ? capitalizeAllLetters(title) : title}\n </span>\n )}\n\n {titleSlot}\n </div>\n\n {headline && !isCollapsed && <span className=\"mt-0.5 text-xs text-foreground-subtle\">{headline}</span>}\n\n {subtitleSlot && !isCollapsed && <div className=\"mt-1 flex min-w-0 flex-col gap-1\">{subtitleSlot}</div>}\n </div>\n </div>\n\n {slot && (\n <div\n className={classNames(\n 'ml-auto flex shrink-0 flex-wrap justify-end gap-2',\n slotAlign === 'start' ? 'items-start' : 'items-center',\n )}\n >\n {slot}\n </div>\n )}\n </div>\n {showDivider && !canFloat && (title.length > 0 || Boolean(titleContent)) && (\n <hr className={classNames('border-border-subtle', isCompactLayout ? 'mb-2 mt-2' : 'mb-2 mt-3')} />\n )}\n </div>\n </PageTitleCollapseProvider>\n );\n};\n\nexport default PageTitle;\n"],"names":[],"mappings":";;;;;;;;;;;;;AAwBA,MAAM,sBAA0D;AAAA,EAC9D,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,IAAI;AACN;AAEA,MAAM,kBAAsD,EAAE,IAAI,IAAI,IAAI,IAAI,IAAI,GAAA;AAGlF,MAAM,uBAAuE,EAAE,IAAI,MAAM,IAAI,MAAM,IAAI,KAAA;AAMvG,MAAM,qBAAqB;AAC3B,MAAM,mBAAmB;AAGzB,MAAM,sBAAsB;AAE5B,MAAM,mBAAmB,CAAC,SAAiD;AACzE,MAAI,UAAU,MAAM,iBAAiB;AACrC,SAAO,SAAS;AACd,UAAM,EAAE,UAAA,IAAc,iBAAiB,OAAO;AAC9C,QAAI,cAAc,UAAU,cAAc,SAAU,QAAO;AAC3D,cAAU,QAAQ;AAAA,EACpB;AACA,SAAO;AACT;AA+EA,MAAM,YAAuC,CAAC;AAAA,EAC5C,UAAU;AAAA,EACV,WAAW;AAAA,EACX;AAAA,EACA,QAAQ;AAAA,EACR;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AAAA,E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