@meetreeve/ui 0.19.0 → 0.21.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/README.md CHANGED
@@ -100,6 +100,8 @@ import { ResponsiveHeader } from "@meetreeve/ui";
100
100
  />;
101
101
  ```
102
102
 
103
+ Pass `wordmark` (and optionally `wordmarkDark`) on `brand` when the brand has a real wordmark image: the header shows it in place of the glyph and text name at md and up, and below md its `favicon` bare, or the glyph when there is none (DEV-16425).
104
+
103
105
  Search is the primary slot — always inline, floored at a minimum width from `@meetreeve/ui/tokens`. Under width pressure everything ELSE collapses first: the wordmark drops to glyph-only, secondary controls fold into a hamburger disclosure below `md`.
104
106
 
105
107
  ### CSS container-query collapse (DEV-4260)
@@ -255,6 +257,40 @@ import { StageRail, StageCardShell, StageConnector, StageRailMini } from "@meetr
255
257
  back into `zoom`. It can only zoom out; to fit a rail that already fits, jump
256
258
  to 1, re-measure, and correct down.
257
259
 
260
+ ## LockedValue / LockedBlock / UnlockCta (DEV-17025)
261
+
262
+ The "numbers blurred behind a lock, unlock with a free account" paywall
263
+ pattern, for any tenant that shows data it gates.
264
+
265
+ ```tsx
266
+ import { LockedBlock, LockedValue, UnlockCta } from "@meetreeve/ui";
267
+
268
+ <LockedBlock label="Mortgages" cta={<UnlockCta href="/auth/login?screen_hint=signup" />}>
269
+ <div className="flex justify-between py-2">
270
+ <span>Balance</span>
271
+ <LockedValue mask="$#,###,###" seed={`${bbl}:mortgage:0`} label="Mortgage balance" hideIcon />
272
+ </div>
273
+ </LockedBlock>
274
+ ```
275
+
276
+ **Never blur a real value.** `LockedValue` takes a `mask` (`#` = a digit, every
277
+ other character kept) and a `seed`, and it renders `placeholder(mask, seed)`: a
278
+ deterministic fake of the same shape, identical on the server and the client.
279
+ CSS blur over a real number still ships the number in the HTML and the RSC
280
+ payload, so gated data must not reach these components. Build `LockedBlock`'s
281
+ children from labels and `LockedValue`s only.
282
+
283
+ - The blur and `user-select: none` are inline styles, so they hold without
284
+ this package in your Tailwind `@source`. The scrim, CTA and layout classes
285
+ still need the `@source` line (see ResponsiveHeader).
286
+ - Screen readers hear "{label} — locked". The fake digits are `aria-hidden`,
287
+ and the blurred layer is `inert`.
288
+ - `UnlockCta` defaults to "Unlock with a free account" / "No credit card
289
+ required". `compact` renders a one-line chip, for later sections that point
290
+ back to the main CTA. Pass `onClick` for your funnel event and
291
+ `linkComponent` for router links. Both are functions, so from a Server
292
+ Component render `UnlockCta` from a client file.
293
+
258
294
  ## Tokens
259
295
 
260
296
  ```ts
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ElementType, RefObject } from 'react';
2
+ import { ReactNode, ElementType, RefObject, CSSProperties, MouseEventHandler } from 'react';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -22,6 +22,16 @@ interface Brand {
22
22
  favicon?: string | null;
23
23
  /** Wider brand logo URL (second cascade step, rendered `object-contain`). */
24
24
  logo?: string | null;
25
+ /**
26
+ * Full wordmark image URL (DEV-16425). When set, `ResponsiveHeader` shows it
27
+ * in place of the glyph + text lockup at md and up; below md it shows
28
+ * `favicon` bare (no contrast tile), or the glyph when there is no favicon.
29
+ * Supply a tightly cropped image — it renders at the text wordmark's 20px
30
+ * line height.
31
+ */
32
+ wordmark?: string | null;
33
+ /** Wordmark for dark backgrounds, shown under the `dark` variant. Falls back to `wordmark`. */
34
+ wordmarkDark?: string | null;
25
35
  /** Override the deterministic monogram letter colour. */
26
36
  color?: string | null;
27
37
  /**
@@ -999,4 +1009,75 @@ interface ConnectorPickerProps {
999
1009
  }
1000
1010
  declare function ConnectorPicker({ client, purpose, lens, layout, onConnected, }: ConnectorPickerProps): react.JSX.Element | null;
1001
1011
 
1002
- export { type AppRungItem, AppSidebar, type AppSidebarBrand, type AppSidebarModuleDef, type AppSidebarProps, type AppSidebarTopItem, type Brand, BrandGlyph, type BrandGlyphProps, type ConnectableAccess, type ConnectableCapability, type ConnectableEntry, type ConnectableTransport, type ConnectionKind, type ConnectorConnectionHealth, type ConnectorCredentialField, type ConnectorCredentialTestResult, type ConnectorGrant, type ConnectorGrantInput, type ConnectorGranteeType, type ConnectorGuideStep, ConnectorPicker, type ConnectorPickerClient, type ConnectorPickerLens, type ConnectorPickerProps, type ConnectorRoleOption, type ConnectorSetupGuide, type ContextOrgGroup, ContextSwitcher, type ContextSwitcherItem, type ContextSwitcherProps, DEFAULT_LEGAL_LINKS, type FallbackModuleDef, Flyout, type FlyoutChild, type FlyoutProps, GLYPH_CANVAS_FILL, type GroupRungItem, HOVER_CLOSE_DELAY_MS, HOVER_SWITCH_DELAY_MS, type HeaderNavItem, InfoTip, type InfoTipProps, LOCKUP_GAP, LOCKUP_ROW, MARK_CAP_RATIO, MARK_WEIGHT, type OrgConnectPolicy, REEVE_ACCENT, ResponsiveHeader, type ResponsiveHeaderProps, type RungItem, type SidebarLadder, type SidebarLadderParsed, type SidebarRung, SiteFooter, type SiteFooterLink, type SiteFooterProps, type UseLadderRungOptions, WORDMARK_WEIGHT, accessLabel, deriveFallbackLadder, faviconUrl, groupByOrg, reconcileLadder, resolveLadder, useLadderRung, useResponsivePlaceholder, zSidebarLadder };
1012
+ interface LockedValueProps {
1013
+ /** The value's shape: `#` is a digit, everything else is kept (`"$#,###,###"`, `"##%"`). */
1014
+ mask: string;
1015
+ /** Picks the fake digits. Stable per seed, e.g. `${recordId}:${field}`. */
1016
+ seed: string;
1017
+ /** What the value is, for screen readers: announced as "{label} — locked". */
1018
+ label: string;
1019
+ /** Hide the lock glyph (e.g. inside a LockedBlock that already shows one). */
1020
+ hideIcon?: boolean;
1021
+ className?: string;
1022
+ }
1023
+ declare const LOCKED_BLUR_STYLE: CSSProperties;
1024
+ /**
1025
+ * One paywalled number, blurred, with a small lock (DEV-17025).
1026
+ *
1027
+ * It takes a mask and never a value: what gets blurred is a seeded fake of the
1028
+ * same shape. CSS blur over a real value still ships that value in the HTML,
1029
+ * where view-source, a scraper or the RSC payload reads it, so a gated number
1030
+ * must never reach this component at all.
1031
+ */
1032
+ declare function LockedValue({ mask, seed, label, hideIcon, className }: LockedValueProps): react.JSX.Element;
1033
+
1034
+ interface LockedBlockProps {
1035
+ /**
1036
+ * The locked layout: skeleton rows built from LockedValue and plain labels.
1037
+ * Layout only. Never pass real gated content here: it would ship in the HTML.
1038
+ */
1039
+ children: ReactNode;
1040
+ /** What's locked, for screen readers: announced as "{label} — locked". */
1041
+ label: string;
1042
+ /** Usually an UnlockCta. Centered over the blur; omitted, the block is just blurred. */
1043
+ cta?: ReactNode;
1044
+ className?: string;
1045
+ }
1046
+ /**
1047
+ * A blurred section with an unlock ask over it (DEV-17025). The children render
1048
+ * blurred, inert and hidden from assistive tech under a scrim that fades to the
1049
+ * page background, and `cta` sits centered on top. On phones the CTA pins to the
1050
+ * bottom of the block, where a thumb reaches it.
1051
+ */
1052
+ declare function LockedBlock({ children, label, cta, className }: LockedBlockProps): react.JSX.Element;
1053
+
1054
+ interface UnlockCtaProps {
1055
+ href: string;
1056
+ /** Defaults to "Unlock with a free account". */
1057
+ title?: string;
1058
+ /** Defaults to "No credit card required". Hidden when `compact`. */
1059
+ sub?: string;
1060
+ /** A one-line chip (e.g. for later locked sections that point back to the main CTA). */
1061
+ compact?: boolean;
1062
+ /** Fires on click before navigation, for the consumer's funnel event. */
1063
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
1064
+ /** Link renderer. Defaults to a bare `"a"`; pass `next/link` for client navigation. */
1065
+ linkComponent?: ElementType;
1066
+ className?: string;
1067
+ }
1068
+ /**
1069
+ * The unlock ask that sits over locked content (DEV-17025). It styles from the
1070
+ * host's theme tokens (`primary`, `card`, `border`), so every tenant gets its
1071
+ * own brand in light and dark.
1072
+ */
1073
+ declare function UnlockCta({ href, title, sub, compact, onClick, linkComponent, className, }: UnlockCtaProps): react.JSX.Element;
1074
+
1075
+ /**
1076
+ * A fake value shaped like the real one (DEV-17025): every `#` in `mask`
1077
+ * becomes a seeded digit and every other character is kept, so
1078
+ * `placeholder("$#,###,###", seed)` reads like a dollar amount of the right
1079
+ * width. A `#` right after a non-`#` never draws 0, so no group reads "$0,…".
1080
+ */
1081
+ declare function placeholder(mask: string, seed: string): string;
1082
+
1083
+ export { type AppRungItem, AppSidebar, type AppSidebarBrand, type AppSidebarModuleDef, type AppSidebarProps, type AppSidebarTopItem, type Brand, BrandGlyph, type BrandGlyphProps, type ConnectableAccess, type ConnectableCapability, type ConnectableEntry, type ConnectableTransport, type ConnectionKind, type ConnectorConnectionHealth, type ConnectorCredentialField, type ConnectorCredentialTestResult, type ConnectorGrant, type ConnectorGrantInput, type ConnectorGranteeType, type ConnectorGuideStep, ConnectorPicker, type ConnectorPickerClient, type ConnectorPickerLens, type ConnectorPickerProps, type ConnectorRoleOption, type ConnectorSetupGuide, type ContextOrgGroup, ContextSwitcher, type ContextSwitcherItem, type ContextSwitcherProps, DEFAULT_LEGAL_LINKS, type FallbackModuleDef, Flyout, type FlyoutChild, type FlyoutProps, GLYPH_CANVAS_FILL, type GroupRungItem, HOVER_CLOSE_DELAY_MS, HOVER_SWITCH_DELAY_MS, type HeaderNavItem, InfoTip, type InfoTipProps, LOCKED_BLUR_STYLE, LOCKUP_GAP, LOCKUP_ROW, LockedBlock, type LockedBlockProps, LockedValue, type LockedValueProps, MARK_CAP_RATIO, MARK_WEIGHT, type OrgConnectPolicy, REEVE_ACCENT, ResponsiveHeader, type ResponsiveHeaderProps, type RungItem, type SidebarLadder, type SidebarLadderParsed, type SidebarRung, SiteFooter, type SiteFooterLink, type SiteFooterProps, UnlockCta, type UnlockCtaProps, type UseLadderRungOptions, WORDMARK_WEIGHT, accessLabel, deriveFallbackLadder, faviconUrl, groupByOrg, placeholder, reconcileLadder, resolveLadder, useLadderRung, useResponsivePlaceholder, zSidebarLadder };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as react from 'react';
2
- import { ReactNode, ElementType, RefObject } from 'react';
2
+ import { ReactNode, ElementType, RefObject, CSSProperties, MouseEventHandler } from 'react';
3
3
  import { z } from 'zod';
4
4
 
5
5
  /**
@@ -22,6 +22,16 @@ interface Brand {
22
22
  favicon?: string | null;
23
23
  /** Wider brand logo URL (second cascade step, rendered `object-contain`). */
24
24
  logo?: string | null;
25
+ /**
26
+ * Full wordmark image URL (DEV-16425). When set, `ResponsiveHeader` shows it
27
+ * in place of the glyph + text lockup at md and up; below md it shows
28
+ * `favicon` bare (no contrast tile), or the glyph when there is no favicon.
29
+ * Supply a tightly cropped image — it renders at the text wordmark's 20px
30
+ * line height.
31
+ */
32
+ wordmark?: string | null;
33
+ /** Wordmark for dark backgrounds, shown under the `dark` variant. Falls back to `wordmark`. */
34
+ wordmarkDark?: string | null;
25
35
  /** Override the deterministic monogram letter colour. */
26
36
  color?: string | null;
27
37
  /**
@@ -999,4 +1009,75 @@ interface ConnectorPickerProps {
999
1009
  }
1000
1010
  declare function ConnectorPicker({ client, purpose, lens, layout, onConnected, }: ConnectorPickerProps): react.JSX.Element | null;
1001
1011
 
1002
- export { type AppRungItem, AppSidebar, type AppSidebarBrand, type AppSidebarModuleDef, type AppSidebarProps, type AppSidebarTopItem, type Brand, BrandGlyph, type BrandGlyphProps, type ConnectableAccess, type ConnectableCapability, type ConnectableEntry, type ConnectableTransport, type ConnectionKind, type ConnectorConnectionHealth, type ConnectorCredentialField, type ConnectorCredentialTestResult, type ConnectorGrant, type ConnectorGrantInput, type ConnectorGranteeType, type ConnectorGuideStep, ConnectorPicker, type ConnectorPickerClient, type ConnectorPickerLens, type ConnectorPickerProps, type ConnectorRoleOption, type ConnectorSetupGuide, type ContextOrgGroup, ContextSwitcher, type ContextSwitcherItem, type ContextSwitcherProps, DEFAULT_LEGAL_LINKS, type FallbackModuleDef, Flyout, type FlyoutChild, type FlyoutProps, GLYPH_CANVAS_FILL, type GroupRungItem, HOVER_CLOSE_DELAY_MS, HOVER_SWITCH_DELAY_MS, type HeaderNavItem, InfoTip, type InfoTipProps, LOCKUP_GAP, LOCKUP_ROW, MARK_CAP_RATIO, MARK_WEIGHT, type OrgConnectPolicy, REEVE_ACCENT, ResponsiveHeader, type ResponsiveHeaderProps, type RungItem, type SidebarLadder, type SidebarLadderParsed, type SidebarRung, SiteFooter, type SiteFooterLink, type SiteFooterProps, type UseLadderRungOptions, WORDMARK_WEIGHT, accessLabel, deriveFallbackLadder, faviconUrl, groupByOrg, reconcileLadder, resolveLadder, useLadderRung, useResponsivePlaceholder, zSidebarLadder };
1012
+ interface LockedValueProps {
1013
+ /** The value's shape: `#` is a digit, everything else is kept (`"$#,###,###"`, `"##%"`). */
1014
+ mask: string;
1015
+ /** Picks the fake digits. Stable per seed, e.g. `${recordId}:${field}`. */
1016
+ seed: string;
1017
+ /** What the value is, for screen readers: announced as "{label} — locked". */
1018
+ label: string;
1019
+ /** Hide the lock glyph (e.g. inside a LockedBlock that already shows one). */
1020
+ hideIcon?: boolean;
1021
+ className?: string;
1022
+ }
1023
+ declare const LOCKED_BLUR_STYLE: CSSProperties;
1024
+ /**
1025
+ * One paywalled number, blurred, with a small lock (DEV-17025).
1026
+ *
1027
+ * It takes a mask and never a value: what gets blurred is a seeded fake of the
1028
+ * same shape. CSS blur over a real value still ships that value in the HTML,
1029
+ * where view-source, a scraper or the RSC payload reads it, so a gated number
1030
+ * must never reach this component at all.
1031
+ */
1032
+ declare function LockedValue({ mask, seed, label, hideIcon, className }: LockedValueProps): react.JSX.Element;
1033
+
1034
+ interface LockedBlockProps {
1035
+ /**
1036
+ * The locked layout: skeleton rows built from LockedValue and plain labels.
1037
+ * Layout only. Never pass real gated content here: it would ship in the HTML.
1038
+ */
1039
+ children: ReactNode;
1040
+ /** What's locked, for screen readers: announced as "{label} — locked". */
1041
+ label: string;
1042
+ /** Usually an UnlockCta. Centered over the blur; omitted, the block is just blurred. */
1043
+ cta?: ReactNode;
1044
+ className?: string;
1045
+ }
1046
+ /**
1047
+ * A blurred section with an unlock ask over it (DEV-17025). The children render
1048
+ * blurred, inert and hidden from assistive tech under a scrim that fades to the
1049
+ * page background, and `cta` sits centered on top. On phones the CTA pins to the
1050
+ * bottom of the block, where a thumb reaches it.
1051
+ */
1052
+ declare function LockedBlock({ children, label, cta, className }: LockedBlockProps): react.JSX.Element;
1053
+
1054
+ interface UnlockCtaProps {
1055
+ href: string;
1056
+ /** Defaults to "Unlock with a free account". */
1057
+ title?: string;
1058
+ /** Defaults to "No credit card required". Hidden when `compact`. */
1059
+ sub?: string;
1060
+ /** A one-line chip (e.g. for later locked sections that point back to the main CTA). */
1061
+ compact?: boolean;
1062
+ /** Fires on click before navigation, for the consumer's funnel event. */
1063
+ onClick?: MouseEventHandler<HTMLAnchorElement>;
1064
+ /** Link renderer. Defaults to a bare `"a"`; pass `next/link` for client navigation. */
1065
+ linkComponent?: ElementType;
1066
+ className?: string;
1067
+ }
1068
+ /**
1069
+ * The unlock ask that sits over locked content (DEV-17025). It styles from the
1070
+ * host's theme tokens (`primary`, `card`, `border`), so every tenant gets its
1071
+ * own brand in light and dark.
1072
+ */
1073
+ declare function UnlockCta({ href, title, sub, compact, onClick, linkComponent, className, }: UnlockCtaProps): react.JSX.Element;
1074
+
1075
+ /**
1076
+ * A fake value shaped like the real one (DEV-17025): every `#` in `mask`
1077
+ * becomes a seeded digit and every other character is kept, so
1078
+ * `placeholder("$#,###,###", seed)` reads like a dollar amount of the right
1079
+ * width. A `#` right after a non-`#` never draws 0, so no group reads "$0,…".
1080
+ */
1081
+ declare function placeholder(mask: string, seed: string): string;
1082
+
1083
+ export { type AppRungItem, AppSidebar, type AppSidebarBrand, type AppSidebarModuleDef, type AppSidebarProps, type AppSidebarTopItem, type Brand, BrandGlyph, type BrandGlyphProps, type ConnectableAccess, type ConnectableCapability, type ConnectableEntry, type ConnectableTransport, type ConnectionKind, type ConnectorConnectionHealth, type ConnectorCredentialField, type ConnectorCredentialTestResult, type ConnectorGrant, type ConnectorGrantInput, type ConnectorGranteeType, type ConnectorGuideStep, ConnectorPicker, type ConnectorPickerClient, type ConnectorPickerLens, type ConnectorPickerProps, type ConnectorRoleOption, type ConnectorSetupGuide, type ContextOrgGroup, ContextSwitcher, type ContextSwitcherItem, type ContextSwitcherProps, DEFAULT_LEGAL_LINKS, type FallbackModuleDef, Flyout, type FlyoutChild, type FlyoutProps, GLYPH_CANVAS_FILL, type GroupRungItem, HOVER_CLOSE_DELAY_MS, HOVER_SWITCH_DELAY_MS, type HeaderNavItem, InfoTip, type InfoTipProps, LOCKED_BLUR_STYLE, LOCKUP_GAP, LOCKUP_ROW, LockedBlock, type LockedBlockProps, LockedValue, type LockedValueProps, MARK_CAP_RATIO, MARK_WEIGHT, type OrgConnectPolicy, REEVE_ACCENT, ResponsiveHeader, type ResponsiveHeaderProps, type RungItem, type SidebarLadder, type SidebarLadderParsed, type SidebarRung, SiteFooter, type SiteFooterLink, type SiteFooterProps, UnlockCta, type UnlockCtaProps, type UseLadderRungOptions, WORDMARK_WEIGHT, accessLabel, deriveFallbackLadder, faviconUrl, groupByOrg, placeholder, reconcileLadder, resolveLadder, useLadderRung, useResponsivePlaceholder, zSidebarLadder };
package/dist/index.js CHANGED
@@ -41,18 +41,23 @@ __export(src_exports, {
41
41
  HOVER_CLOSE_DELAY_MS: () => HOVER_CLOSE_DELAY_MS,
42
42
  HOVER_SWITCH_DELAY_MS: () => HOVER_SWITCH_DELAY_MS,
43
43
  InfoTip: () => InfoTip,
44
+ LOCKED_BLUR_STYLE: () => LOCKED_BLUR_STYLE,
44
45
  LOCKUP_GAP: () => LOCKUP_GAP,
45
46
  LOCKUP_ROW: () => LOCKUP_ROW,
47
+ LockedBlock: () => LockedBlock,
48
+ LockedValue: () => LockedValue,
46
49
  MARK_CAP_RATIO: () => MARK_CAP_RATIO,
47
50
  MARK_WEIGHT: () => MARK_WEIGHT,
48
51
  REEVE_ACCENT: () => REEVE_ACCENT,
49
52
  ResponsiveHeader: () => ResponsiveHeader,
50
53
  SiteFooter: () => SiteFooter,
54
+ UnlockCta: () => UnlockCta,
51
55
  WORDMARK_WEIGHT: () => WORDMARK_WEIGHT,
52
56
  accessLabel: () => accessLabel,
53
57
  deriveFallbackLadder: () => deriveFallbackLadder,
54
58
  faviconUrl: () => faviconUrl,
55
59
  groupByOrg: () => groupByOrg,
60
+ placeholder: () => placeholder,
56
61
  reconcileLadder: () => reconcileLadder,
57
62
  resolveLadder: () => resolveLadder,
58
63
  useLadderRung: () => useLadderRung,
@@ -345,7 +350,80 @@ function ResponsiveHeader({
345
350
  };
346
351
  }, [open]);
347
352
  const hasSecondary = Boolean(nav && nav.length > 0 || auth || themeToggle);
348
- const brandLockup = /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { "data-testid": "header-lockup", className: cn(LOCKUP_ROW, LOCKUP_GAP), children: [
353
+ const [failed, setFailed] = (0, import_react3.useState)(() => /* @__PURE__ */ new Set());
354
+ const onImageError = (src) => () => setFailed((prev) => new Set(prev).add(src));
355
+ const { wordmark, wordmarkDark, favicon } = brand;
356
+ const lightOk = !!wordmark && !failed.has(wordmark);
357
+ const darkOk = !!wordmarkDark && !failed.has(wordmarkDark);
358
+ const glyphBrand = favicon && failed.has(favicon) ? { ...brand, favicon: null } : brand;
359
+ const brandLockup = wordmark ? /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { "data-testid": "header-lockup", className: "flex items-center", children: [
360
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)("span", { className: "flex @min-[768px]:hidden", children: favicon && !failed.has(favicon) ? (
361
+ // eslint-disable-next-line @next/next/no-img-element
362
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
363
+ "img",
364
+ {
365
+ src: favicon,
366
+ alt: brand.name,
367
+ width: 28,
368
+ height: 28,
369
+ "data-testid": "header-mark-image",
370
+ onError: onImageError(favicon),
371
+ className: "h-7 w-7 object-contain"
372
+ }
373
+ )
374
+ ) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BrandGlyph, { brand: glyphBrand, size: "lg" }) }),
375
+ lightOk ? (
376
+ // eslint-disable-next-line @next/next/no-img-element
377
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
378
+ "img",
379
+ {
380
+ src: wordmark,
381
+ alt: brand.name,
382
+ "data-testid": "header-wordmark-image",
383
+ onError: onImageError(wordmark),
384
+ className: cn(
385
+ "hidden h-5 w-auto object-contain @min-[768px]:block",
386
+ darkOk && "@min-[768px]:dark:hidden"
387
+ ),
388
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth }
389
+ }
390
+ )
391
+ ) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(
392
+ "span",
393
+ {
394
+ "data-testid": "header-wordmark-fallback",
395
+ className: cn(
396
+ "hidden @min-[768px]:flex items-baseline",
397
+ LOCKUP_GAP,
398
+ darkOk && "@min-[768px]:dark:hidden"
399
+ ),
400
+ children: [
401
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BrandGlyph, { brand: glyphBrand, size: "lg" }),
402
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
403
+ "span",
404
+ {
405
+ "data-testid": "header-wordmark",
406
+ className: cn("truncate text-foreground", WORDMARK_TEXT_LG, WORDMARK_WEIGHT_CLASS),
407
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth },
408
+ children: brand.name
409
+ }
410
+ )
411
+ ]
412
+ }
413
+ ),
414
+ darkOk && // eslint-disable-next-line @next/next/no-img-element
415
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
416
+ "img",
417
+ {
418
+ src: wordmarkDark,
419
+ alt: brand.name,
420
+ "data-testid": "header-wordmark-image-dark",
421
+ onError: onImageError(wordmarkDark),
422
+ className: "hidden h-5 w-auto object-contain @min-[768px]:dark:block",
423
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth }
424
+ }
425
+ )
426
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)("span", { "data-testid": "header-lockup", className: cn(LOCKUP_ROW, LOCKUP_GAP), children: [
349
427
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(BrandGlyph, { brand, size: "lg" }),
350
428
  /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
351
429
  "span",
@@ -1535,7 +1613,7 @@ function ContextSwitcher({
1535
1613
  activeRefId,
1536
1614
  onSelect,
1537
1615
  footer,
1538
- placeholder = "Select",
1616
+ placeholder: placeholder2 = "Select",
1539
1617
  collapsed = false,
1540
1618
  side = "bottom",
1541
1619
  align = "start",
@@ -1549,8 +1627,8 @@ function ContextSwitcher({
1549
1627
  "button",
1550
1628
  {
1551
1629
  type: "button",
1552
- title: active?.name || placeholder,
1553
- "aria-label": active?.name || placeholder,
1630
+ title: active?.name || placeholder2,
1631
+ "aria-label": active?.name || placeholder2,
1554
1632
  className: "flex h-10 w-10 items-center justify-center rounded-lg text-sidebar-foreground/70 transition-colors hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
1555
1633
  children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
1556
1634
  }
@@ -1561,7 +1639,7 @@ function ContextSwitcher({
1561
1639
  className: "group flex items-center gap-2 rounded-md border border-sidebar-border bg-sidebar-accent/60 px-2.5 py-1.5 text-sm font-medium transition-colors hover:bg-sidebar",
1562
1640
  children: [
1563
1641
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
1564
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
1642
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder2 }),
1565
1643
  /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_lucide_react3.ChevronDown, { className: "h-3.5 w-3.5 text-sidebar-foreground/70 transition-transform group-data-[state=open]:rotate-180" })
1566
1644
  ]
1567
1645
  }
@@ -2744,6 +2822,131 @@ function ManageSharing({
2744
2822
  }
2745
2823
  );
2746
2824
  }
2825
+
2826
+ // src/locked/locked-value.tsx
2827
+ var import_lucide_react4 = require("lucide-react");
2828
+
2829
+ // src/locked/placeholder.ts
2830
+ function hash(seed) {
2831
+ let h = 2166136261;
2832
+ for (let i = 0; i < seed.length; i++) {
2833
+ h ^= seed.charCodeAt(i);
2834
+ h = Math.imul(h, 16777619);
2835
+ }
2836
+ return h >>> 0;
2837
+ }
2838
+ function mulberry32(a) {
2839
+ return () => {
2840
+ a = a + 1831565813 | 0;
2841
+ let t = Math.imul(a ^ a >>> 15, 1 | a);
2842
+ t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
2843
+ return ((t ^ t >>> 14) >>> 0) / 4294967296;
2844
+ };
2845
+ }
2846
+ function placeholder(mask, seed) {
2847
+ const next = mulberry32(hash(seed));
2848
+ let out = "";
2849
+ for (let i = 0; i < mask.length; i++) {
2850
+ const ch = mask[i];
2851
+ if (ch !== "#") {
2852
+ out += ch;
2853
+ continue;
2854
+ }
2855
+ const leads = i === 0 || mask[i - 1] !== "#";
2856
+ out += leads ? String(1 + Math.floor(next() * 9)) : String(Math.floor(next() * 10));
2857
+ }
2858
+ return out;
2859
+ }
2860
+
2861
+ // src/locked/locked-value.tsx
2862
+ var import_jsx_runtime10 = require("react/jsx-runtime");
2863
+ var LOCKED_BLUR_STYLE = {
2864
+ filter: "blur(6px)",
2865
+ userSelect: "none",
2866
+ WebkitUserSelect: "none"
2867
+ };
2868
+ function LockedValue({ mask, seed, label, hideIcon = false, className }) {
2869
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { role: "img", "aria-label": `${label} \u2014 locked`, className: cn("inline-flex items-center gap-1 whitespace-nowrap", className), children: [
2870
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { "aria-hidden": "true", style: LOCKED_BLUR_STYLE, children: placeholder(mask, seed) }),
2871
+ hideIcon ? null : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_lucide_react4.Lock, { "aria-hidden": "true", className: "shrink-0 text-muted-foreground", style: { width: "0.85em", height: "0.85em" }, strokeWidth: 2 })
2872
+ ] });
2873
+ }
2874
+
2875
+ // src/locked/locked-block.tsx
2876
+ var import_react10 = require("react");
2877
+ var import_jsx_runtime11 = (
2878
+ // With a CTA, the block is at least as tall as the card, so a one-row
2879
+ // section can't clip it.
2880
+ require("react/jsx-runtime")
2881
+ );
2882
+ var INERT = Number.parseInt(import_react10.version, 10) >= 19 ? { inert: true } : { inert: "" };
2883
+ function LockedBlock({ children, label, cta, className }) {
2884
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
2885
+ "div",
2886
+ {
2887
+ role: "group",
2888
+ "aria-label": `${label} \u2014 locked`,
2889
+ className: cn("relative isolate overflow-hidden rounded-xl", cta != null && "min-h-24", className),
2890
+ children: [
2891
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { "aria-hidden": "true", ...INERT, style: { ...LOCKED_BLUR_STYLE, pointerEvents: "none" }, children }),
2892
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 bg-gradient-to-b from-background/0 via-background/60 to-background" }),
2893
+ cta ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)("div", { className: "absolute inset-x-0 bottom-0 flex justify-center p-3 sm:inset-0 sm:items-center sm:p-6", children: cta }) : null
2894
+ ]
2895
+ }
2896
+ );
2897
+ }
2898
+
2899
+ // src/locked/unlock-cta.tsx
2900
+ var import_lucide_react5 = require("lucide-react");
2901
+ var import_jsx_runtime12 = require("react/jsx-runtime");
2902
+ function UnlockCta({
2903
+ href,
2904
+ title = "Unlock with a free account",
2905
+ sub = "No credit card required",
2906
+ compact = false,
2907
+ onClick,
2908
+ linkComponent,
2909
+ className
2910
+ }) {
2911
+ const LinkEl = linkComponent ?? "a";
2912
+ if (compact) {
2913
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2914
+ LinkEl,
2915
+ {
2916
+ href,
2917
+ onClick,
2918
+ style: TOUCH_TARGET_STYLE,
2919
+ className: cn(
2920
+ "inline-flex items-center gap-1.5 rounded-full border border-border bg-card px-3 text-xs font-medium text-card-foreground shadow-sm transition-colors hover:bg-accent",
2921
+ className
2922
+ ),
2923
+ children: [
2924
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.Lock, { "aria-hidden": "true", className: "size-3.5 text-primary", strokeWidth: 2 }),
2925
+ title
2926
+ ]
2927
+ }
2928
+ );
2929
+ }
2930
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
2931
+ LinkEl,
2932
+ {
2933
+ href,
2934
+ onClick,
2935
+ className: cn(
2936
+ "group flex w-full max-w-sm items-center gap-3 rounded-xl border border-border bg-card px-4 py-3 text-card-foreground shadow-lg transition-colors hover:border-primary/60",
2937
+ className
2938
+ ),
2939
+ children: [
2940
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.Lock, { "aria-hidden": "true", className: "size-4", strokeWidth: 2 }) }),
2941
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { className: "flex min-w-0 flex-1 flex-col", children: [
2942
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-sm font-semibold", children: title }),
2943
+ sub ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "text-xs text-muted-foreground", children: sub }) : null
2944
+ ] }),
2945
+ /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_lucide_react5.ArrowRight, { "aria-hidden": "true", className: "size-4 shrink-0 transition-transform group-hover:translate-x-0.5", strokeWidth: 1.75 })
2946
+ ]
2947
+ }
2948
+ );
2949
+ }
2747
2950
  // Annotate the CommonJS export names for ESM import in node:
2748
2951
  0 && (module.exports = {
2749
2952
  AppSidebar,
@@ -2756,18 +2959,23 @@ function ManageSharing({
2756
2959
  HOVER_CLOSE_DELAY_MS,
2757
2960
  HOVER_SWITCH_DELAY_MS,
2758
2961
  InfoTip,
2962
+ LOCKED_BLUR_STYLE,
2759
2963
  LOCKUP_GAP,
2760
2964
  LOCKUP_ROW,
2965
+ LockedBlock,
2966
+ LockedValue,
2761
2967
  MARK_CAP_RATIO,
2762
2968
  MARK_WEIGHT,
2763
2969
  REEVE_ACCENT,
2764
2970
  ResponsiveHeader,
2765
2971
  SiteFooter,
2972
+ UnlockCta,
2766
2973
  WORDMARK_WEIGHT,
2767
2974
  accessLabel,
2768
2975
  deriveFallbackLadder,
2769
2976
  faviconUrl,
2770
2977
  groupByOrg,
2978
+ placeholder,
2771
2979
  reconcileLadder,
2772
2980
  resolveLadder,
2773
2981
  useLadderRung,
package/dist/index.mjs CHANGED
@@ -284,7 +284,80 @@ function ResponsiveHeader({
284
284
  };
285
285
  }, [open]);
286
286
  const hasSecondary = Boolean(nav && nav.length > 0 || auth || themeToggle);
287
- const brandLockup = /* @__PURE__ */ jsxs2("span", { "data-testid": "header-lockup", className: cn(LOCKUP_ROW, LOCKUP_GAP), children: [
287
+ const [failed, setFailed] = useState3(() => /* @__PURE__ */ new Set());
288
+ const onImageError = (src) => () => setFailed((prev) => new Set(prev).add(src));
289
+ const { wordmark, wordmarkDark, favicon } = brand;
290
+ const lightOk = !!wordmark && !failed.has(wordmark);
291
+ const darkOk = !!wordmarkDark && !failed.has(wordmarkDark);
292
+ const glyphBrand = favicon && failed.has(favicon) ? { ...brand, favicon: null } : brand;
293
+ const brandLockup = wordmark ? /* @__PURE__ */ jsxs2("span", { "data-testid": "header-lockup", className: "flex items-center", children: [
294
+ /* @__PURE__ */ jsx2("span", { className: "flex @min-[768px]:hidden", children: favicon && !failed.has(favicon) ? (
295
+ // eslint-disable-next-line @next/next/no-img-element
296
+ /* @__PURE__ */ jsx2(
297
+ "img",
298
+ {
299
+ src: favicon,
300
+ alt: brand.name,
301
+ width: 28,
302
+ height: 28,
303
+ "data-testid": "header-mark-image",
304
+ onError: onImageError(favicon),
305
+ className: "h-7 w-7 object-contain"
306
+ }
307
+ )
308
+ ) : /* @__PURE__ */ jsx2(BrandGlyph, { brand: glyphBrand, size: "lg" }) }),
309
+ lightOk ? (
310
+ // eslint-disable-next-line @next/next/no-img-element
311
+ /* @__PURE__ */ jsx2(
312
+ "img",
313
+ {
314
+ src: wordmark,
315
+ alt: brand.name,
316
+ "data-testid": "header-wordmark-image",
317
+ onError: onImageError(wordmark),
318
+ className: cn(
319
+ "hidden h-5 w-auto object-contain @min-[768px]:block",
320
+ darkOk && "@min-[768px]:dark:hidden"
321
+ ),
322
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth }
323
+ }
324
+ )
325
+ ) : /* @__PURE__ */ jsxs2(
326
+ "span",
327
+ {
328
+ "data-testid": "header-wordmark-fallback",
329
+ className: cn(
330
+ "hidden @min-[768px]:flex items-baseline",
331
+ LOCKUP_GAP,
332
+ darkOk && "@min-[768px]:dark:hidden"
333
+ ),
334
+ children: [
335
+ /* @__PURE__ */ jsx2(BrandGlyph, { brand: glyphBrand, size: "lg" }),
336
+ /* @__PURE__ */ jsx2(
337
+ "span",
338
+ {
339
+ "data-testid": "header-wordmark",
340
+ className: cn("truncate text-foreground", WORDMARK_TEXT_LG, WORDMARK_WEIGHT_CLASS),
341
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth },
342
+ children: brand.name
343
+ }
344
+ )
345
+ ]
346
+ }
347
+ ),
348
+ darkOk && // eslint-disable-next-line @next/next/no-img-element
349
+ /* @__PURE__ */ jsx2(
350
+ "img",
351
+ {
352
+ src: wordmarkDark,
353
+ alt: brand.name,
354
+ "data-testid": "header-wordmark-image-dark",
355
+ onError: onImageError(wordmarkDark),
356
+ className: "hidden h-5 w-auto object-contain @min-[768px]:dark:block",
357
+ style: { maxWidth: MIN_SIZES.wordmarkMaxWidth }
358
+ }
359
+ )
360
+ ] }) : /* @__PURE__ */ jsxs2("span", { "data-testid": "header-lockup", className: cn(LOCKUP_ROW, LOCKUP_GAP), children: [
288
361
  /* @__PURE__ */ jsx2(BrandGlyph, { brand, size: "lg" }),
289
362
  /* @__PURE__ */ jsx2(
290
363
  "span",
@@ -1474,7 +1547,7 @@ function ContextSwitcher({
1474
1547
  activeRefId,
1475
1548
  onSelect,
1476
1549
  footer,
1477
- placeholder = "Select",
1550
+ placeholder: placeholder2 = "Select",
1478
1551
  collapsed = false,
1479
1552
  side = "bottom",
1480
1553
  align = "start",
@@ -1488,8 +1561,8 @@ function ContextSwitcher({
1488
1561
  "button",
1489
1562
  {
1490
1563
  type: "button",
1491
- title: active?.name || placeholder,
1492
- "aria-label": active?.name || placeholder,
1564
+ title: active?.name || placeholder2,
1565
+ "aria-label": active?.name || placeholder2,
1493
1566
  className: "flex h-10 w-10 items-center justify-center rounded-lg text-sidebar-foreground/70 transition-colors hover:bg-sidebar-foreground/5 hover:text-sidebar-foreground",
1494
1567
  children: /* @__PURE__ */ jsx8(BrandGlyph, { brand: toBrand(active ?? { name: "" }), size: "lg" })
1495
1568
  }
@@ -1500,7 +1573,7 @@ function ContextSwitcher({
1500
1573
  className: "group flex items-center gap-2 rounded-md border border-sidebar-border bg-sidebar-accent/60 px-2.5 py-1.5 text-sm font-medium transition-colors hover:bg-sidebar",
1501
1574
  children: [
1502
1575
  /* @__PURE__ */ jsx8(BrandGlyph, { brand: toBrand(active ?? { name: "" }) }),
1503
- /* @__PURE__ */ jsx8("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder }),
1576
+ /* @__PURE__ */ jsx8("span", { className: "max-w-[140px] truncate text-sidebar-accent-foreground", children: active?.name || placeholder2 }),
1504
1577
  /* @__PURE__ */ jsx8(ChevronDown, { className: "h-3.5 w-3.5 text-sidebar-foreground/70 transition-transform group-data-[state=open]:rotate-180" })
1505
1578
  ]
1506
1579
  }
@@ -2683,6 +2756,131 @@ function ManageSharing({
2683
2756
  }
2684
2757
  );
2685
2758
  }
2759
+
2760
+ // src/locked/locked-value.tsx
2761
+ import { Lock } from "lucide-react";
2762
+
2763
+ // src/locked/placeholder.ts
2764
+ function hash(seed) {
2765
+ let h = 2166136261;
2766
+ for (let i = 0; i < seed.length; i++) {
2767
+ h ^= seed.charCodeAt(i);
2768
+ h = Math.imul(h, 16777619);
2769
+ }
2770
+ return h >>> 0;
2771
+ }
2772
+ function mulberry32(a) {
2773
+ return () => {
2774
+ a = a + 1831565813 | 0;
2775
+ let t = Math.imul(a ^ a >>> 15, 1 | a);
2776
+ t = t + Math.imul(t ^ t >>> 7, 61 | t) ^ t;
2777
+ return ((t ^ t >>> 14) >>> 0) / 4294967296;
2778
+ };
2779
+ }
2780
+ function placeholder(mask, seed) {
2781
+ const next = mulberry32(hash(seed));
2782
+ let out = "";
2783
+ for (let i = 0; i < mask.length; i++) {
2784
+ const ch = mask[i];
2785
+ if (ch !== "#") {
2786
+ out += ch;
2787
+ continue;
2788
+ }
2789
+ const leads = i === 0 || mask[i - 1] !== "#";
2790
+ out += leads ? String(1 + Math.floor(next() * 9)) : String(Math.floor(next() * 10));
2791
+ }
2792
+ return out;
2793
+ }
2794
+
2795
+ // src/locked/locked-value.tsx
2796
+ import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
2797
+ var LOCKED_BLUR_STYLE = {
2798
+ filter: "blur(6px)",
2799
+ userSelect: "none",
2800
+ WebkitUserSelect: "none"
2801
+ };
2802
+ function LockedValue({ mask, seed, label, hideIcon = false, className }) {
2803
+ return /* @__PURE__ */ jsxs9("span", { role: "img", "aria-label": `${label} \u2014 locked`, className: cn("inline-flex items-center gap-1 whitespace-nowrap", className), children: [
2804
+ /* @__PURE__ */ jsx10("span", { "aria-hidden": "true", style: LOCKED_BLUR_STYLE, children: placeholder(mask, seed) }),
2805
+ hideIcon ? null : /* @__PURE__ */ jsx10(Lock, { "aria-hidden": "true", className: "shrink-0 text-muted-foreground", style: { width: "0.85em", height: "0.85em" }, strokeWidth: 2 })
2806
+ ] });
2807
+ }
2808
+
2809
+ // src/locked/locked-block.tsx
2810
+ import { version } from "react";
2811
+ import { jsx as jsx11, jsxs as jsxs10 } from "react/jsx-runtime";
2812
+ var INERT = Number.parseInt(version, 10) >= 19 ? { inert: true } : { inert: "" };
2813
+ function LockedBlock({ children, label, cta, className }) {
2814
+ return (
2815
+ // With a CTA, the block is at least as tall as the card, so a one-row
2816
+ // section can't clip it.
2817
+ /* @__PURE__ */ jsxs10(
2818
+ "div",
2819
+ {
2820
+ role: "group",
2821
+ "aria-label": `${label} \u2014 locked`,
2822
+ className: cn("relative isolate overflow-hidden rounded-xl", cta != null && "min-h-24", className),
2823
+ children: [
2824
+ /* @__PURE__ */ jsx11("div", { "aria-hidden": "true", ...INERT, style: { ...LOCKED_BLUR_STYLE, pointerEvents: "none" }, children }),
2825
+ /* @__PURE__ */ jsx11("div", { "aria-hidden": "true", className: "pointer-events-none absolute inset-0 bg-gradient-to-b from-background/0 via-background/60 to-background" }),
2826
+ cta ? /* @__PURE__ */ jsx11("div", { className: "absolute inset-x-0 bottom-0 flex justify-center p-3 sm:inset-0 sm:items-center sm:p-6", children: cta }) : null
2827
+ ]
2828
+ }
2829
+ )
2830
+ );
2831
+ }
2832
+
2833
+ // src/locked/unlock-cta.tsx
2834
+ import { ArrowRight, Lock as Lock2 } from "lucide-react";
2835
+ import { jsx as jsx12, jsxs as jsxs11 } from "react/jsx-runtime";
2836
+ function UnlockCta({
2837
+ href,
2838
+ title = "Unlock with a free account",
2839
+ sub = "No credit card required",
2840
+ compact = false,
2841
+ onClick,
2842
+ linkComponent,
2843
+ className
2844
+ }) {
2845
+ const LinkEl = linkComponent ?? "a";
2846
+ if (compact) {
2847
+ return /* @__PURE__ */ jsxs11(
2848
+ LinkEl,
2849
+ {
2850
+ href,
2851
+ onClick,
2852
+ style: TOUCH_TARGET_STYLE,
2853
+ className: cn(
2854
+ "inline-flex items-center gap-1.5 rounded-full border border-border bg-card px-3 text-xs font-medium text-card-foreground shadow-sm transition-colors hover:bg-accent",
2855
+ className
2856
+ ),
2857
+ children: [
2858
+ /* @__PURE__ */ jsx12(Lock2, { "aria-hidden": "true", className: "size-3.5 text-primary", strokeWidth: 2 }),
2859
+ title
2860
+ ]
2861
+ }
2862
+ );
2863
+ }
2864
+ return /* @__PURE__ */ jsxs11(
2865
+ LinkEl,
2866
+ {
2867
+ href,
2868
+ onClick,
2869
+ className: cn(
2870
+ "group flex w-full max-w-sm items-center gap-3 rounded-xl border border-border bg-card px-4 py-3 text-card-foreground shadow-lg transition-colors hover:border-primary/60",
2871
+ className
2872
+ ),
2873
+ children: [
2874
+ /* @__PURE__ */ jsx12("span", { className: "flex size-9 shrink-0 items-center justify-center rounded-full bg-primary text-primary-foreground", children: /* @__PURE__ */ jsx12(Lock2, { "aria-hidden": "true", className: "size-4", strokeWidth: 2 }) }),
2875
+ /* @__PURE__ */ jsxs11("span", { className: "flex min-w-0 flex-1 flex-col", children: [
2876
+ /* @__PURE__ */ jsx12("span", { className: "text-sm font-semibold", children: title }),
2877
+ sub ? /* @__PURE__ */ jsx12("span", { className: "text-xs text-muted-foreground", children: sub }) : null
2878
+ ] }),
2879
+ /* @__PURE__ */ jsx12(ArrowRight, { "aria-hidden": "true", className: "size-4 shrink-0 transition-transform group-hover:translate-x-0.5", strokeWidth: 1.75 })
2880
+ ]
2881
+ }
2882
+ );
2883
+ }
2686
2884
  export {
2687
2885
  AppSidebar,
2688
2886
  BrandGlyph,
@@ -2694,18 +2892,23 @@ export {
2694
2892
  HOVER_CLOSE_DELAY_MS,
2695
2893
  HOVER_SWITCH_DELAY_MS,
2696
2894
  InfoTip,
2895
+ LOCKED_BLUR_STYLE,
2697
2896
  LOCKUP_GAP,
2698
2897
  LOCKUP_ROW,
2898
+ LockedBlock,
2899
+ LockedValue,
2699
2900
  MARK_CAP_RATIO,
2700
2901
  MARK_WEIGHT,
2701
2902
  REEVE_ACCENT,
2702
2903
  ResponsiveHeader,
2703
2904
  SiteFooter,
2905
+ UnlockCta,
2704
2906
  WORDMARK_WEIGHT,
2705
2907
  accessLabel,
2706
2908
  deriveFallbackLadder,
2707
2909
  faviconUrl,
2708
2910
  groupByOrg,
2911
+ placeholder,
2709
2912
  reconcileLadder,
2710
2913
  resolveLadder,
2711
2914
  useLadderRung,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@meetreeve/ui",
3
- "version": "0.19.0",
4
- "description": "Shared brand-adaptive UI primitives for MindFortress frontends — min-size tokens, a favicon→logo→monogram BrandGlyph, a responsive header that keeps the search bar usable on mobile, AppSidebar's viewport-driven auto-collapse ladder, and the StageRail flow-of-cards primitives, and the tenant SiteFooter.",
3
+ "version": "0.21.0",
4
+ "description": "Shared brand-adaptive UI primitives for MindFortress frontends — min-size tokens, a favicon→logo→monogram BrandGlyph, a responsive header that keeps the search bar usable on mobile, AppSidebar's viewport-driven auto-collapse ladder, and the StageRail flow-of-cards primitives, the tenant SiteFooter, and the LockedValue/LockedBlock/UnlockCta paywall primitives.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",