@wow-two-beta/fe 0.0.30 → 0.0.32
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 +12 -0
- package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js → AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js} +97 -28
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js.map +1 -0
- package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js} +2 -2
- package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js.map} +1 -1
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js} +2 -2
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map} +1 -1
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js} +2 -2
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js.map} +1 -1
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js} +2 -2
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js.map} +1 -1
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js} +4 -4
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map} +1 -1
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js} +2 -2
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map} +1 -1
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js → KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js} +6 -6
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js} +6 -6
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map} +1 -1
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js → MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js} +46 -102
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -0
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js} +6 -6
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js.map → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map} +1 -1
- package/dist/chunks/Navbar.variants-7DXJlilx.js +88 -0
- package/dist/chunks/Navbar.variants-7DXJlilx.js.map +1 -0
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js} +2 -2
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js.map} +1 -1
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js} +2 -2
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js.map} +1 -1
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js} +2 -2
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js.map} +1 -1
- package/dist/chunks/{SurfaceStyles-BYvRlsWe.js → SurfaceStyles-DUVz963_.js} +25 -6
- package/dist/chunks/SurfaceStyles-DUVz963_.js.map +1 -0
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js} +3 -3
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js.map} +1 -1
- package/dist/chunks/{Tones-Bcz8dIo3.js → Tones-BU9yaXKf.js} +5 -3
- package/dist/chunks/{Tones-Bcz8dIo3.js.map → Tones-BU9yaXKf.js.map} +1 -1
- package/dist/chunks/{index-CGIXFfl9.js → index-Bk5JPh5t.js} +3 -3
- package/dist/chunks/{index-CGIXFfl9.js.map → index-Bk5JPh5t.js.map} +1 -1
- package/dist/chunks/{index-DA17sNzP.js → index-ou-qGNDu.js} +55 -3
- package/dist/chunks/index-ou-qGNDu.js.map +1 -0
- package/dist/foundation/styles/SurfaceStyles.d.ts +25 -8
- package/dist/foundation/styles/index.js +3 -3
- package/dist/foundation/themes/Theme.d.ts +38 -0
- package/dist/foundation/themes/index.d.ts +1 -1
- package/dist/foundation/themes/index.js +1 -1
- package/dist/index.css +112 -0
- package/dist/index.js +54 -53
- package/dist/index.js.map +1 -1
- package/dist/presentation/actions/index.js +2 -2
- package/dist/presentation/display/card/Card.vue.d.ts +4 -1
- package/dist/presentation/display/index.js +3 -3
- package/dist/presentation/feedback/index.js +3 -3
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +13 -10
- package/dist/presentation/layout/index.js +34 -33
- package/dist/presentation/layout/index.js.map +1 -1
- package/dist/presentation/layout/navbar/Navbar.variants.d.ts +17 -2
- package/dist/presentation/layout/surfaceLayout/SurfaceLayout.vue.d.ts +4 -1
- package/dist/presentation/nav/bottomNavMenu/BottomNavMenu.vue.d.ts +8 -0
- package/dist/presentation/nav/index.js +1 -1
- package/dist/presentation/nav/menu/MenuContext.d.ts +1 -1
- package/dist/presentation/nav/menu/MenuItem.vue.d.ts +19 -1
- package/dist/presentation/overlays/index.js +4 -4
- package/dist/themes.css +20 -0
- package/package.json +1 -1
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +0 -1
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +0 -1
- package/dist/chunks/SurfaceStyles-BYvRlsWe.js.map +0 -1
- package/dist/chunks/index-DA17sNzP.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js","sources":["../../src/presentation/layout/boxLayout/BoxLayout.vue","../../src/presentation/layout/hStackLayout/HStackLayout.vue","../../src/presentation/layout/vStackLayout/VStackLayout.vue","../../src/presentation/layout/grid/Grid.variants.ts","../../src/presentation/layout/grid/Grid.vue","../../src/presentation/layout/containerLayout/ContainerLayout.variants.ts","../../src/presentation/layout/containerLayout/ContainerLayout.vue","../../src/presentation/layout/flexLayout/FlexLayout.vue","../../src/presentation/layout/aspectRatioLayout/AspectRatioLayout.vue","../../src/presentation/layout/spacerLayout/SpacerLayout.vue","../../src/presentation/layout/centerLayout/CenterLayout.vue","../../src/presentation/layout/dividerLayout/DividerLayout.variants.ts","../../src/presentation/layout/dividerLayout/DividerLayout.vue","../../src/presentation/layout/scrollArea/ScrollArea.vue","../../src/presentation/layout/canvasArea/CanvasMath.ts","../../src/presentation/layout/canvasArea/CanvasArea.vue","../../src/presentation/layout/clusterLayout/ClusterLayout.vue","../../src/presentation/layout/frameLayout/FrameLayout.vue","../../src/presentation/layout/twoColumnLayout/TwoColumnLayout.vue","../../src/presentation/layout/listDetailLayout/ListDetailLayout.vue","../../src/presentation/layout/resizablePanelsLayout/ResizablePanelsLayout.vue","../../src/presentation/layout/resizablePanelsLayout/ResizablePanel.vue","../../src/presentation/layout/resizablePanelsLayout/ResizableSeparator.vue","../../src/presentation/layout/pullToRefreshLayout/PullToRefreshLayout.vue","../../src/presentation/layout/appShell/AppShell.vue","../../src/presentation/layout/appShell/AppShellHeader.vue","../../src/presentation/layout/appShell/AppShellSidebar.vue","../../src/presentation/layout/appShell/AppShellMain.vue","../../src/presentation/layout/appShell/AppShellContent.vue","../../src/presentation/layout/appShell/AppShellAside.vue","../../src/presentation/layout/appShell/AppShellFooter.vue","../../src/presentation/layout/pageHeader/PageHeaderActions.vue","../../src/presentation/layout/anchorLayout/AnchorLayout.variants.ts","../../src/presentation/layout/anchorLayout/AnchorLayout.vue","../../src/presentation/layout/surfaceLayout/SurfaceLayout.vue","../../src/presentation/layout/section/Section.variants.ts","../../src/presentation/layout/section/Section.vue","../../src/presentation/layout/navbar/Navbar.vue","../../src/presentation/layout/inputAddonLayout/InputAddonLayout.vue","../../src/presentation/layout/inputGroup/InputGroup.vue","../../src/presentation/layout/separatorLayout/SeparatorLayout.vue","../../src/presentation/layout/tiltLayout/TiltLayout.vue","../../src/presentation/layout/swipeActionsLayout/SwipeActionsLayout.vue","../../src/presentation/layout/stickyLayout/StickyLayout.vue","../../src/presentation/layout/virtualScrollArea/VirtualScrollArea.vue","../../src/presentation/layout/masonryLayout/MasonryLayout.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { ElementType } from '../../../foundation/dom';\n\nexport interface BoxLayoutProps {\n /** The HTML element to render. Default `div`. */\n readonly as?: ElementType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders the lowest-level layout primitive — any element (default `div`)\n * with className passthrough. Use as a styling shell when no other layout\n * atom fits.\n *\n * `inheritAttrs: false` so a caller's `class` goes through `cn` (tailwind-merge\n * resolves the conflict) instead of Vue's blind class concatenation — the same\n * last-wins precedence React's `cn(…, className)` gives.\n */\ndefineOptions({ name: 'BoxLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<BoxLayoutProps>(), { as: 'div' });\n\ndefineSlots<{\n /** The content the box wraps. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() => cn(attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"props.as\" ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></component>\n</template>\n","<script lang=\"ts\">\nimport type { StackLayoutProps } from '../stackLayout/StackLayout.vue';\n\nexport type HStackLayoutProps = Omit<StackLayoutProps, 'direction'>;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useTemplateRef } from 'vue';\nimport StackLayout from '../stackLayout/StackLayout.vue';\n\n/** Renders a `StackLayout` locked to `direction=\"row\"` — children laid out left to right. */\ndefineOptions({ name: 'HStackLayout', inheritAttrs: false });\n\ndefineSlots<{\n /** The children laid out left to right. */\n default?(): unknown;\n}>();\n\n/**\n * No `defineProps` — every `StackLayoutProps` key falls through `$attrs` onto the\n * inner `StackLayout`, which already declares them. `v-bind=\"$attrs\"` sits after\n * `direction` for the same reason React spread `{...props}` after it: the\n * spread wins, and `HStackLayoutProps` types `direction` away.\n */\nconst inner = useTemplateRef<InstanceType<typeof StackLayout>>('inner');\n\n/** The inner `StackLayout`'s root element — the React original's forwarded ref. */\nconst el = computed(() => inner.value?.el ?? null);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <StackLayout ref=\"inner\" direction=\"row\" v-bind=\"$attrs\"><slot /></StackLayout>\n</template>\n","<script lang=\"ts\">\nimport type { StackLayoutProps } from '../stackLayout/StackLayout.vue';\n\nexport type VStackLayoutProps = Omit<StackLayoutProps, 'direction'>;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useTemplateRef } from 'vue';\nimport StackLayout from '../stackLayout/StackLayout.vue';\n\n/** Renders a `StackLayout` locked to `direction=\"column\"` (its default). Provided for symmetry with `HStackLayout`. */\ndefineOptions({ name: 'VStackLayout', inheritAttrs: false });\n\ndefineSlots<{\n /** The children laid out top to bottom. */\n default?(): unknown;\n}>();\n\n/** See `HStackLayout` — every `StackLayoutProps` key falls through `$attrs` onto the inner `StackLayout`. */\nconst inner = useTemplateRef<InstanceType<typeof StackLayout>>('inner');\n\n/** The inner `StackLayout`'s root element — the React original's forwarded ref. */\nconst el = computed(() => inner.value?.el ?? null);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <StackLayout ref=\"inner\" direction=\"column\" v-bind=\"$attrs\"><slot /></StackLayout>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\nexport const gridVariants = tv({\n base: 'grid',\n variants: {\n columns: {\n '1': 'grid-cols-1',\n '2': 'grid-cols-2',\n '3': 'grid-cols-3',\n '4': 'grid-cols-4',\n '5': 'grid-cols-5',\n '6': 'grid-cols-6',\n '8': 'grid-cols-8',\n '12': 'grid-cols-12',\n },\n gap: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n },\n defaultVariants: {\n columns: '2',\n gap: '4',\n },\n});\n\nexport type GridVariants = VariantProps<typeof gridVariants>;\n\n/** Represents the scalar column count accepted by `Grid` (also the per-breakpoint value). */\nexport type GridColumns = NonNullable<GridVariants['columns']>;\n\n/** Represents the scalar gap step accepted by `Grid` (also the per-breakpoint value). */\nexport type GridGap = NonNullable<GridVariants['gap']>;\n\n/** Defines the responsive breakpoints `Grid` understands (`base` = unprefixed). */\nexport const GridBreakpoint = {\n /** Refers to the unprefixed (mobile-first) breakpoint. */\n Base: 'base',\n /** Refers to the `sm:` breakpoint. */\n Sm: 'sm',\n /** Refers to the `md:` breakpoint. */\n Md: 'md',\n /** Refers to the `lg:` breakpoint. */\n Lg: 'lg',\n /** Refers to the `xl:` breakpoint. */\n Xl: 'xl',\n} as const;\n\nexport type GridBreakpoint = (typeof GridBreakpoint)[keyof typeof GridBreakpoint];\n\n/**\n * Represents a responsive value for `columns` / `gap` — a per-breakpoint map.\n * `base` is the unprefixed value; the rest map to Tailwind's `sm:`–`xl:` prefixes.\n */\nexport type GridResponsive<T extends string> = Partial<Record<GridBreakpoint, T>>;\n\n/* Tailwind can't see interpolated class names, so every responsive permutation\n is spelled out as a complete literal here (base + sm/md/lg/xl prefixes). */\nconst ColumnClasses: Record<GridBreakpoint, Record<GridColumns, string>> = {\n base: {\n '1': 'grid-cols-1',\n '2': 'grid-cols-2',\n '3': 'grid-cols-3',\n '4': 'grid-cols-4',\n '5': 'grid-cols-5',\n '6': 'grid-cols-6',\n '8': 'grid-cols-8',\n '12': 'grid-cols-12',\n },\n sm: {\n '1': 'sm:grid-cols-1',\n '2': 'sm:grid-cols-2',\n '3': 'sm:grid-cols-3',\n '4': 'sm:grid-cols-4',\n '5': 'sm:grid-cols-5',\n '6': 'sm:grid-cols-6',\n '8': 'sm:grid-cols-8',\n '12': 'sm:grid-cols-12',\n },\n md: {\n '1': 'md:grid-cols-1',\n '2': 'md:grid-cols-2',\n '3': 'md:grid-cols-3',\n '4': 'md:grid-cols-4',\n '5': 'md:grid-cols-5',\n '6': 'md:grid-cols-6',\n '8': 'md:grid-cols-8',\n '12': 'md:grid-cols-12',\n },\n lg: {\n '1': 'lg:grid-cols-1',\n '2': 'lg:grid-cols-2',\n '3': 'lg:grid-cols-3',\n '4': 'lg:grid-cols-4',\n '5': 'lg:grid-cols-5',\n '6': 'lg:grid-cols-6',\n '8': 'lg:grid-cols-8',\n '12': 'lg:grid-cols-12',\n },\n xl: {\n '1': 'xl:grid-cols-1',\n '2': 'xl:grid-cols-2',\n '3': 'xl:grid-cols-3',\n '4': 'xl:grid-cols-4',\n '5': 'xl:grid-cols-5',\n '6': 'xl:grid-cols-6',\n '8': 'xl:grid-cols-8',\n '12': 'xl:grid-cols-12',\n },\n};\n\nconst GapClasses: Record<GridBreakpoint, Record<GridGap, string>> = {\n base: {\n '0': 'gap-0',\n '1': 'gap-1',\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '5': 'gap-5',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n '12': 'gap-12',\n },\n sm: {\n '0': 'sm:gap-0',\n '1': 'sm:gap-1',\n '2': 'sm:gap-2',\n '3': 'sm:gap-3',\n '4': 'sm:gap-4',\n '5': 'sm:gap-5',\n '6': 'sm:gap-6',\n '8': 'sm:gap-8',\n '10': 'sm:gap-10',\n '12': 'sm:gap-12',\n },\n md: {\n '0': 'md:gap-0',\n '1': 'md:gap-1',\n '2': 'md:gap-2',\n '3': 'md:gap-3',\n '4': 'md:gap-4',\n '5': 'md:gap-5',\n '6': 'md:gap-6',\n '8': 'md:gap-8',\n '10': 'md:gap-10',\n '12': 'md:gap-12',\n },\n lg: {\n '0': 'lg:gap-0',\n '1': 'lg:gap-1',\n '2': 'lg:gap-2',\n '3': 'lg:gap-3',\n '4': 'lg:gap-4',\n '5': 'lg:gap-5',\n '6': 'lg:gap-6',\n '8': 'lg:gap-8',\n '10': 'lg:gap-10',\n '12': 'lg:gap-12',\n },\n xl: {\n '0': 'xl:gap-0',\n '1': 'xl:gap-1',\n '2': 'xl:gap-2',\n '3': 'xl:gap-3',\n '4': 'xl:gap-4',\n '5': 'xl:gap-5',\n '6': 'xl:gap-6',\n '8': 'xl:gap-8',\n '10': 'xl:gap-10',\n '12': 'xl:gap-12',\n },\n};\n\nconst BreakpointOrder: ReadonlyArray<GridBreakpoint> = ['base', 'sm', 'md', 'lg', 'xl'];\n\n/** Resolves a scalar-or-responsive `columns` value to its complete Tailwind class string. */\nexport function resolveGridColumns(value: GridColumns | GridResponsive<GridColumns> | undefined): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value === 'string') return ColumnClasses.base[value];\n return BreakpointOrder.map((bp) => {\n const v = value[bp];\n return v === undefined ? undefined : ColumnClasses[bp][v];\n })\n .filter((c): c is string => Boolean(c))\n .join(' ');\n}\n\n/** Resolves a scalar-or-responsive `gap` value to its complete Tailwind class string. */\nexport function resolveGridGap(value: GridGap | GridResponsive<GridGap> | undefined): string | undefined {\n if (value === undefined) return undefined;\n if (typeof value === 'string') return GapClasses.base[value];\n return BreakpointOrder.map((bp) => {\n const v = value[bp];\n return v === undefined ? undefined : GapClasses[bp][v];\n })\n .filter((c): c is string => Boolean(c))\n .join(' ');\n}\n","<script lang=\"ts\">\nimport type { ElementType } from '../../../foundation/dom';\nimport type { GridColumns, GridGap, GridResponsive } from './Grid.variants';\n\nexport interface GridProps {\n readonly as?: ElementType;\n /**\n * The equal-column track count. Scalar (`'3'`) emits `grid-cols-3`; a responsive\n * map (`{ base: '1', md: '2', lg: '3' }`) emits per-breakpoint prefixed\n * classes. Default `'2'`.\n */\n readonly columns?: GridColumns | GridResponsive<GridColumns>;\n\n /**\n * The gap between tracks. Scalar (`'4'`) emits `gap-4`; a responsive map\n * (`{ base: '2', lg: '6' }`) emits per-breakpoint prefixed classes. Default `'4'`.\n */\n readonly gap?: GridGap | GridResponsive<GridGap>;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { resolveGridColumns, resolveGridGap } from './Grid.variants';\n\n/**\n * Renders a CSS grid container with column and gap variants. Both `columns` and `gap`\n * accept a scalar value or a responsive `{ base, sm, md, lg, xl }` map. For\n * non-uniform tracks pass an explicit `:style=\"{ gridTemplateColumns }\"` — the\n * variant covers the equal-column case.\n */\ndefineOptions({ name: 'Grid', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<GridProps>(), {\n as: 'div',\n columns: '2',\n gap: '4',\n});\n\ndefineSlots<{\n /** The grid items. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn('grid', resolveGridColumns(props.columns), resolveGridGap(props.gap), attrs.class as string | undefined),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"props.as\" ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></component>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the max-width preset of a `ContainerLayout`. */\nexport const ContainerLayoutSize = {\n /** Refers to the small screen max-width. */\n Sm: 'sm',\n /** Refers to the medium screen max-width. */\n Md: 'md',\n /** Refers to the large screen max-width. */\n Lg: 'lg',\n /** Refers to the extra-large screen max-width. */\n Xl: 'xl',\n /** Refers to the 2x extra-large screen max-width. */\n Xxl: '2xl',\n /** Refers to an unconstrained (full) max-width. */\n Full: 'full',\n} as const;\n\nexport type ContainerLayoutSize = (typeof ContainerLayoutSize)[keyof typeof ContainerLayoutSize];\n\nexport const containerVariants = tv({\n base: 'mx-auto w-full px-4',\n variants: {\n size: {\n sm: 'max-w-screen-sm',\n md: 'max-w-screen-md',\n lg: 'max-w-screen-lg',\n xl: 'max-w-screen-xl',\n '2xl': 'max-w-screen-2xl',\n full: 'max-w-full',\n },\n },\n defaultVariants: {\n size: 'lg',\n },\n});\n\nexport type ContainerLayoutVariants = VariantProps<typeof containerVariants>;\n\n/* Compile-time lock: enum values ≡ tv variant keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertContainerSize: AssertExact<\n ContainerLayoutSize,\n NonNullable<VariantProps<typeof containerVariants>['size']>\n> = true;\nvoid _assertContainerSize;\n","<script lang=\"ts\">\nimport type { ElementType } from '../../../foundation/dom';\nimport type { ContainerLayoutSize } from './ContainerLayout.variants';\n\nexport interface ContainerLayoutProps {\n readonly as?: ElementType;\n /** The max-width preset. Default `lg`. */\n readonly size?: ContainerLayoutSize;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { containerVariants } from './ContainerLayout.variants';\n\n/**\n * Renders a centered max-width wrapper with horizontal padding. Use at page-level to\n * constrain content width.\n */\ndefineOptions({ name: 'ContainerLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ContainerLayoutProps>(), { as: 'div' });\n\ndefineSlots<{\n /** The page content held to the max width. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() => cn(containerVariants({ size: props.size }), attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"props.as\" ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></component>\n</template>\n","<script lang=\"ts\">\nimport type { ElementType } from '../../../foundation/dom';\n\nexport interface FlexLayoutProps {\n readonly as?: ElementType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a bare flex container — no opinions on direction, gap, or alignment.\n * Use for one-off flex layouts that don't fit `StackLayout`'s variant matrix.\n */\ndefineOptions({ name: 'FlexLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<FlexLayoutProps>(), { as: 'div' });\n\ndefineSlots<{\n /** The flex items. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() => cn('flex', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"props.as\" ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></component>\n</template>\n","<script lang=\"ts\">\nexport interface AspectRatioLayoutProps {\n /** The aspect ratio (width/height). Default 1 (square). */\n readonly ratio?: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, normalizeStyle, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a box locked to an aspect ratio (width / height). Children are\n * absolutely positioned and stretched to fill — typically pass a single\n * `<img>`, `<video>`, or `<iframe>` with `class=\"absolute inset-0 w-full h-full\"`.\n */\ndefineOptions({ name: 'AspectRatioLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<AspectRatioLayoutProps>(), { ratio: 1 });\n\ndefineSlots<{\n /** The content stretched to fill the locked ratio. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() => cn('relative w-full', attrs.class as string | undefined));\n\n/** `normalizeStyle` merges left → right, so a caller's `style` lands last and wins. */\nconst styles = computed(() => normalizeStyle([{ aspectRatio: `${props.ratio}` }, attrs.style]));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\" :style=\"styles\"><slot /></div>\n</template>\n","<script lang=\"ts\">\n/* `Orientation` is imported here (not in `<script setup>`) so the one binding\n serves as both the type below and the runtime value used in `withDefaults`. */\nimport { Orientation } from '../../../foundation/styles';\n\nexport interface SpacerLayoutProps {\n /** The explicit size (CSS length). When inside a flex/grid parent,\n * the default `flex: 1` already pushes siblings apart. */\n readonly size?: number | string;\n\n /** The axis the fixed `size` applies to. Default `horizontal`. */\n readonly axis?: Orientation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, normalizeStyle, useAttrs, useTemplateRef, type CSSProperties } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a flexible empty box. In a flex parent it expands (`flex: 1`) and pushes\n * siblings to opposite ends. Pass `size` for a fixed gap.\n */\n/* `<spacer-layout>` is an obsolete HTML element. This is a library component — imported,\n never globally registered — so the name cannot shadow the tag, and renaming it\n would break parity with the React package. */\ndefineOptions({ name: 'SpacerLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SpacerLayoutProps>(), { axis: Orientation.Horizontal });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst fixed = computed<CSSProperties | undefined>(() => {\n if (props.size === undefined) return undefined;\n const length = typeof props.size === 'number' ? `${props.size}px` : props.size;\n return props.axis === Orientation.Horizontal ? { width: length, flexShrink: 0 } : { height: length, flexShrink: 0 };\n});\n\nconst classes = computed(() => cn(props.size === undefined && 'flex-1', attrs.class as string | undefined));\n\n/** `normalizeStyle` merges left → right, so a caller's `style` lands last and wins. */\nconst styles = computed(() => normalizeStyle([fixed.value, attrs.style]));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" aria-hidden=\"true\" v-bind=\"rest\" :class=\"classes\" :style=\"styles\" />\n</template>\n","<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\n\nexport type CenterLayoutProps = HTMLAttributes;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/** Renders a flex shorthand that centers its children on both axes. */\n/* `<center>` is a deprecated HTML element. This is a library component — imported,\n never globally registered — so the name cannot shadow the tag, and renaming it\n would break parity with the React package. */\ndefineOptions({ name: 'CenterLayout', inheritAttrs: false });\n\ndefineSlots<{\n /** The content centered on both axes. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() => cn('flex items-center justify-center', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></div>\n</template>\n","import { tv, type VariantProps, Orientation } from '../../../foundation/styles';\n\n/**\n * Provides the rule geometry for `DividerLayout`. A horizontal divider is a full-width\n * top border; a vertical divider is a full-height left border that stretches to\n * its flex/grid parent. The line color is the semantic `border` token.\n */\nexport const dividerVariants = tv({\n base: 'border-border',\n variants: {\n orientation: {\n horizontal: 'w-full border-t',\n vertical: 'self-stretch border-l',\n },\n },\n defaultVariants: {\n orientation: 'horizontal',\n },\n});\n\nexport type DividerLayoutVariants = VariantProps<typeof dividerVariants>;\n\n/* Compile-time lock: shared `Orientation` values ≡ tv `orientation` keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertDividerOrientation: AssertExact<\n Orientation,\n NonNullable<VariantProps<typeof dividerVariants>['orientation']>\n> = true;\nvoid _assertDividerOrientation;\n\n/** Represents the axis of a `DividerLayout` — the shared {@link Orientation} vocabulary. */\nexport type DividerLayoutOrientation = Orientation;\n","<script lang=\"ts\">\nimport type { Orientation } from '../../../foundation/styles';\n\n/** A plain rule — `orientation` is required (no silent default; a rule's axis should always be stated). */\nexport interface PlainDividerProps {\n /**\n * The axis of the rule — the line's OWN direction: `vertical` draws a `│` between side-by-side content;\n * `horizontal` draws a `─` between stacked content.\n */\n readonly orientation: Orientation;\n\n readonly label?: never;\n}\n\n/** A labelled rule — the classic \"or\" separator; always horizontal, so `orientation` does not apply. */\nexport interface LabelledDividerProps {\n /**\n * The centered content overlaid on the (always-horizontal) rule, e.g. `<DividerLayout label=\"or\" />`.\n * React typed this `ReactNode`; a Vue prop renders text, so richer content goes through the\n * same-named `label` slot — which overrides this value but does NOT select the labelled branch.\n */\n readonly label: string | number;\n\n readonly orientation?: never;\n}\n\n/**\n * A thin rule that separates content, using the semantic `border` token. Either a plain rule — pass the\n * required `orientation` (`<DividerLayout :orientation=\"Orientation.Vertical\" />`) — or a labelled horizontal rule —\n * pass `label` (`<DividerLayout label=\"or\" />`), which sits on the surface background.\n */\nexport type DividerLayoutProps = PlainDividerProps | LabelledDividerProps;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { dividerVariants } from './DividerLayout.variants';\n\n/** Renders a thin rule between content — plain on a stated axis, or horizontal with a centred label. */\ndefineOptions({ name: 'DividerLayout', inheritAttrs: false });\n\n/** Rich-content override for the `label` prop. Never a discriminator — `label != null` alone picks the branch. */\ndefineSlots<{ label?(): unknown }>();\n\nconst props = defineProps<DividerLayoutProps>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst isLabelled = computed(() => props.label != null);\n\nconst labelledClasses = computed(() => cn('flex w-full items-center gap-3', attrs.class as string | undefined));\n\nconst plainClasses = computed(() =>\n cn(dividerVariants({ orientation: props.orientation }), attrs.class as string | undefined),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div v-if=\"isLabelled\" ref=\"el\" role=\"separator\" aria-orientation=\"horizontal\" v-bind=\"rest\" :class=\"labelledClasses\">\n <span class=\"h-px flex-1 bg-border\" />\n <span class=\"text-sm text-muted-foreground\"\n ><slot name=\"label\">{{ props.label }}</slot></span\n >\n <span class=\"h-px flex-1 bg-border\" />\n </div>\n\n <div v-else ref=\"el\" role=\"separator\" :aria-orientation=\"props.orientation\" v-bind=\"rest\" :class=\"plainClasses\" />\n</template>\n","<script lang=\"ts\">\n/**\n * Defines the scroll axis of a `ScrollArea`. Diverges from the shared\n * `Orientation` (adds `Both`), so it stays a local enum.\n */\nexport const ScrollAxis = {\n /** Refers to vertical scrolling only. */\n Vertical: 'vertical',\n /** Refers to horizontal scrolling only. */\n Horizontal: 'horizontal',\n /** Refers to scrolling on both axes. */\n Both: 'both',\n} as const;\n\nexport type ScrollAxis = (typeof ScrollAxis)[keyof typeof ScrollAxis];\n\nexport interface ScrollAreaProps {\n /** The scroll axis. Default `vertical`. */\n readonly axis?: ScrollAxis;\n\n /**\n * Fades the scrollbar thumb while the area is idle and brings it back on hover and while it scrolls. The track\n * keeps its space, so the layout never shifts.\n * @default false\n */\n readonly hasAutoHideScrollbar?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { useScrollActivity } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a native scrollable container with stable visuals. For custom-styled\n * scrollbars (track + thumb separately animated) use the L5 ScrollArea\n * organism. This atom exists for the common case.\n */\ndefineOptions({ name: 'ScrollArea', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ScrollAreaProps>(), {\n axis: ScrollAxis.Vertical,\n hasAutoHideScrollbar: false,\n});\n\ndefineSlots<{\n /** The scrollable content. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\nuseScrollActivity(el, () => props.hasAutoHideScrollbar);\n\nconst classes = computed(() =>\n cn(\n 'relative',\n props.axis === ScrollAxis.Vertical && 'overflow-y-auto overflow-x-hidden',\n props.axis === ScrollAxis.Horizontal && 'overflow-x-auto overflow-y-hidden',\n props.axis === ScrollAxis.Both && 'overflow-auto',\n props.hasAutoHideScrollbar && 'scrollbar-auto-hide',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></div>\n</template>\n","import type { CanvasViewport } from './CanvasArea.vue';\n\n/** A measured box, in CSS pixels. */\nexport interface CanvasSize {\n readonly width: number;\n readonly height: number;\n}\n\n/** A point in the area's own pixels, measured from its top-left corner. */\nexport interface CanvasPoint {\n readonly x: number;\n readonly y: number;\n}\n\n/** Wheel pixels that change the zoom by a factor of `e`: small enough for trackpad pinches, one notch ≈ 20%. */\nconst WheelZoomRate = 0.002;\n\n/** The largest wheel delta one event may apply, so a line- or page-mode notch never jumps. */\nconst WheelDeltaLimit = 100;\n\n/** Keeps a zoom level inside its bounds. */\nexport function clampZoom(zoom: number, min: number, max: number): number {\n return Math.min(max, Math.max(min, zoom));\n}\n\n/** Zooms to `zoom` while the area point `anchor` keeps showing the same content point. */\nexport function zoomAt(viewport: CanvasViewport, zoom: number, anchor: CanvasPoint): CanvasViewport {\n const ratio = zoom / viewport.zoom;\n return {\n zoom,\n x: anchor.x - (anchor.x - viewport.x) * ratio,\n y: anchor.y - (anchor.y - viewport.y) * ratio,\n };\n}\n\n/** Keeps content inside the area: an axis longer than the area scrolls between its edges, a shorter one centers. */\nexport function clampToContent(viewport: CanvasViewport, area: CanvasSize, content: CanvasSize): CanvasViewport {\n return {\n zoom: viewport.zoom,\n x: clampAxis(viewport.x, area.width, content.width * viewport.zoom),\n y: clampAxis(viewport.y, area.height, content.height * viewport.zoom),\n };\n}\n\n/** The centered viewport that shows all content inside `padding`, zoomed no further than `maxZoom`. */\nexport function fitViewport(\n area: CanvasSize,\n content: CanvasSize,\n padding: number,\n minZoom: number,\n maxZoom: number,\n): CanvasViewport {\n if (area.width <= 0 || area.height <= 0 || content.width <= 0 || content.height <= 0) return { x: 0, y: 0, zoom: 1 };\n const zoom = clampZoom(\n Math.min((area.width - padding * 2) / content.width, (area.height - padding * 2) / content.height),\n minZoom,\n maxZoom,\n );\n return {\n zoom,\n x: (area.width - content.width * zoom) / 2,\n y: (area.height - content.height * zoom) / 2,\n };\n}\n\n/** A wheel event's movement in pixels, whatever unit the device reported; Shift turns a vertical wheel sideways. */\nexport function wheelPixels(event: WheelEvent, pageHeight: number): CanvasPoint {\n const unit = event.deltaMode === 1 ? 16 : event.deltaMode === 2 ? pageHeight : 1;\n const x = event.deltaX * unit;\n const y = event.deltaY * unit;\n return event.shiftKey && x === 0 ? { x: y, y: 0 } : { x, y };\n}\n\n/** The zoom factor one wheel movement asks for: up zooms in, down zooms out. */\nexport function wheelZoomFactor(deltaY: number): number {\n return Math.exp(-Math.max(-WheelDeltaLimit, Math.min(WheelDeltaLimit, deltaY)) * WheelZoomRate);\n}\n\n/** Whether two viewports render identically. */\nexport function sameViewport(a: CanvasViewport, b: CanvasViewport): boolean {\n return a.x === b.x && a.y === b.y && a.zoom === b.zoom;\n}\n\n/** One axis of `clampToContent`. @internal */\nfunction clampAxis(offset: number, area: number, extent: number): number {\n if (extent <= area) return (area - extent) / 2;\n return Math.min(0, Math.max(area - extent, offset));\n}\n","<script lang=\"ts\">\n/** Where the plane sits: content point `p` renders at `p * zoom + (x, y)`, in the area's own pixels. */\nexport interface CanvasViewport {\n /** The offset of the content's left edge from the area's left edge. */\n readonly x: number;\n /** The offset of the content's top edge from the area's top edge. */\n readonly y: number;\n /** The scale factor; `1` is actual size. */\n readonly zoom: number;\n}\n\n/** How far the plane may move. */\nexport const CanvasBounds = {\n /** Scroll-like: content never leaves the area, and an axis shorter than the area centers. */\n Content: 'content',\n /** An open plane that pans anywhere, as a node editor does. */\n None: 'none',\n} as const;\n\nexport type CanvasBounds = (typeof CanvasBounds)[keyof typeof CanvasBounds];\n\n/** What an unmodified wheel does. A pinch, or a wheel with Ctrl or ⌘ held, always zooms. */\nexport const CanvasWheel = {\n /** Moves the plane as a scroll region would; the page scrolls on once the content's edge is reached. */\n Pan: 'pan',\n /** Zooms about the pointer, for a full-screen editor with nothing to scroll around it. */\n Zoom: 'zoom',\n} as const;\n\nexport type CanvasWheel = (typeof CanvasWheel)[keyof typeof CanvasWheel];\n\n/** The state and actions the `controls` slot receives. */\nexport interface CanvasControls {\n /** The rendered zoom factor. */\n readonly zoom: number;\n /** The rendered zoom as a whole percentage. */\n readonly percent: number;\n /** Whether a zoom-in step has room below `maxZoom`. */\n readonly canZoomIn: boolean;\n /** Whether a zoom-out step has room above `minZoom`. */\n readonly canZoomOut: boolean;\n /** Zooms in one step about the area's center. */\n readonly zoomIn: () => void;\n /** Zooms out one step about the area's center. */\n readonly zoomOut: () => void;\n /** Returns to 100%, keeping the area's center in place. */\n readonly reset: () => void;\n /** Shows all content, centered, never above 100%. */\n readonly fit: () => void;\n}\n\nexport interface CanvasAreaProps {\n /** The controlled viewport. Pair it with `update:viewport`; omit it and the area keeps its own. */\n readonly viewport?: CanvasViewport;\n /** Where an uncontrolled area opens: a zoom factor, or `'fit'` to show all content once measured. Default `1`. */\n readonly initialZoom?: number | 'fit';\n /** The lower zoom bound. Default `0.25`. */\n readonly minZoom?: number;\n /** The upper zoom bound. Default `4`. */\n readonly maxZoom?: number;\n /** The factor one button or key step multiplies the zoom by. Default `1.25`. */\n readonly zoomStep?: number;\n /** How far the plane may move. Default `content`. */\n readonly bounds?: CanvasBounds;\n /** What an unmodified wheel does. Default `pan`. */\n readonly wheel?: CanvasWheel;\n /** The gap `fit` keeps around the content, in pixels. Default `16`. */\n readonly fitPadding?: number;\n /** Whether the built-in zoom controls render in the bottom-end corner. Default `true`. */\n readonly hasControls?: boolean;\n /** Localized labels for the built-in controls and the area's role description. */\n readonly labels?: Partial<Record<'canvas' | 'controls' | 'zoomIn' | 'zoomOut' | 'reset' | 'fit', string>>;\n}\n\n/** One pointer's drag of the plane; it moves nothing until the pointer passes the drag threshold. */\ninterface PanGesture {\n readonly kind: 'pan';\n readonly pointerId: number;\n readonly startX: number;\n readonly startY: number;\n readonly origin: CanvasViewport;\n readonly isDragging: boolean;\n}\n\n/** Two pointers scaling about their midpoint, anchored where the pinch began so it stays reversible. */\ninterface PinchGesture {\n readonly kind: 'pinch';\n readonly ids: readonly [number, number];\n readonly startDistance: number;\n readonly startCenter: { readonly x: number; readonly y: number };\n readonly origin: CanvasViewport;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, shallowRef, useAttrs, useTemplateRef } from 'vue';\nimport { Maximize, Minus, Plus } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport {\n clampToContent,\n clampZoom,\n fitViewport,\n sameViewport,\n wheelPixels,\n wheelZoomFactor,\n zoomAt,\n type CanvasPoint,\n type CanvasSize,\n} from './CanvasMath';\n\n/**\n * Renders caller content on a plane that pans and zooms inside a fixed box. Drag, wheel, pinch, keys and the\n * built-in controls all move one viewport; a click inside still reaches the content unless the pointer dragged.\n */\ndefineOptions({ name: 'CanvasArea', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<CanvasAreaProps>(), {\n initialZoom: 1,\n minZoom: 0.25,\n maxZoom: 4,\n zoomStep: 1.25,\n bounds: CanvasBounds.Content,\n wheel: CanvasWheel.Pan,\n fitPadding: 16,\n hasControls: true,\n});\n\nconst emit = defineEmits<{\n /** Requests the next viewport after a drag, wheel, pinch, key or control. */\n 'update:viewport': [viewport: CanvasViewport];\n}>();\n\ndefineSlots<{\n /** The content placed on the plane, laid out at actual size. */\n default?(): unknown;\n /** Replaces the built-in zoom buttons inside the corner group. */\n controls?(props: CanvasControls): unknown;\n}>();\n\n/** Pixels a pointer travels before a press becomes a drag: a mouse is precise, a finger is not. */\nconst DragThreshold = { mouse: 3, other: 8 } as const;\n\n/** Pixels one arrow key moves the plane; Shift multiplies it. */\nconst PanStep = 40;\n\nconst labels = computed(() => ({\n canvas: 'canvas',\n controls: 'Zoom',\n zoomIn: 'Zoom in',\n zoomOut: 'Zoom out',\n reset: 'reset zoom',\n fit: 'Fit to view',\n ...props.labels,\n}));\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\nconst content = useTemplateRef<HTMLDivElement>('content');\n\n/** Fixed at setup, as `useControlled` fixes it: a controlled area never keeps a copy of the parent's viewport. */\nconst isControlled = props.viewport !== undefined;\nconst internal = shallowRef<CanvasViewport>({\n x: 0,\n y: 0,\n zoom: typeof props.initialZoom === 'number' ? clampZoom(props.initialZoom, props.minZoom, props.maxZoom) : 1,\n});\nconst area = shallowRef<CanvasSize>({ width: 0, height: 0 });\nconst plane = shallowRef<CanvasSize>({ width: 0, height: 0 });\nconst isPanning = shallowRef(false);\n\n/** The viewport as rendered: zoom inside its bounds, and the content inside the area when bounded. */\nconst view = computed<CanvasViewport>(() => settle(isControlled ? (props.viewport ?? internal.value) : internal.value));\nconst canZoomIn = computed(() => view.value.zoom < props.maxZoom - 1e-6);\nconst canZoomOut = computed(() => view.value.zoom > props.minZoom + 1e-6);\nconst percent = computed(() => Math.round(view.value.zoom * 100));\n\n/** Clamps a requested viewport the same way the render does. @internal */\nfunction settle(next: CanvasViewport): CanvasViewport {\n const zoomed = { ...next, zoom: clampZoom(next.zoom, props.minZoom, props.maxZoom) };\n return props.bounds === CanvasBounds.Content ? clampToContent(zoomed, area.value, plane.value) : zoomed;\n}\n\n/** Applies a movement: stores it when uncontrolled and reports it either way. Returns whether the view moved. */\nfunction commit(next: CanvasViewport): boolean {\n const settled = settle(next);\n if (sameViewport(settled, view.value)) return false;\n if (!isControlled) internal.value = settled;\n emit('update:viewport', settled);\n return true;\n}\n\n/** The area's center, in its own pixels. @internal */\nfunction center(): CanvasPoint {\n return { x: area.value.width / 2, y: area.value.height / 2 };\n}\n\n/** Converts a viewport-relative pointer position into the area's own pixels. @internal */\nfunction local(point: CanvasPoint): CanvasPoint {\n const rect = el.value?.getBoundingClientRect();\n return rect ? { x: point.x - rect.left, y: point.y - rect.top } : point;\n}\n\n/** Scales the zoom by `factor` about `anchor`. Returns whether the view moved. @internal */\nfunction zoomBy(factor: number, anchor: CanvasPoint = center()): boolean {\n const current = view.value;\n return commit(zoomAt(current, clampZoom(current.zoom * factor, props.minZoom, props.maxZoom), anchor));\n}\n\n/** Zooms in one step about the area's center. */\nfunction zoomIn(): void {\n zoomBy(props.zoomStep);\n}\n\n/** Zooms out one step about the area's center. */\nfunction zoomOut(): void {\n zoomBy(1 / props.zoomStep);\n}\n\n/** Zooms to `zoom`, keeping `anchor` (default: the area's center) over the same content point. */\nfunction zoomTo(zoom: number, anchor: CanvasPoint = center()): void {\n commit(zoomAt(view.value, clampZoom(zoom, props.minZoom, props.maxZoom), anchor));\n}\n\n/** Returns to 100%, keeping the area's center in place. */\nfunction reset(): void {\n zoomTo(1);\n}\n\n/** Shows all content, centered, never above 100%. */\nfunction fit(): void {\n commit(fitViewport(area.value, plane.value, props.fitPadding, props.minZoom, Math.min(1, props.maxZoom)));\n}\n\n/** Moves the plane by a pixel offset. Returns whether it moved. */\nfunction panBy(dx: number, dy: number): boolean {\n const current = view.value;\n return commit({ ...current, x: current.x + dx, y: current.y + dy });\n}\n\nconst controls = computed<CanvasControls>(() => ({\n zoom: view.value.zoom,\n percent: percent.value,\n canZoomIn: canZoomIn.value,\n canZoomOut: canZoomOut.value,\n zoomIn,\n zoomOut,\n reset,\n fit,\n}));\n\n/** Whether an event started inside a field that owns its own keys and pointer. @internal */\nfunction isEditable(target: EventTarget | null): boolean {\n return (\n target instanceof HTMLElement && (target.isContentEditable || /^(?:INPUT|TEXTAREA|SELECT)$/.test(target.tagName))\n );\n}\n\nlet observer: ResizeObserver | null = null;\nlet isPlaced = false;\n\n/** Reads the area and the content's untransformed size; places an uncontrolled `'fit'` area once both exist. */\nfunction measure(): void {\n const root = el.value;\n const inner = content.value;\n if (!root || !inner) return;\n const nextArea = { width: root.clientWidth, height: root.clientHeight };\n const nextPlane = { width: inner.offsetWidth, height: inner.offsetHeight };\n if (nextArea.width !== area.value.width || nextArea.height !== area.value.height) area.value = nextArea;\n if (nextPlane.width !== plane.value.width || nextPlane.height !== plane.value.height) plane.value = nextPlane;\n if (isPlaced || nextArea.width <= 0 || nextPlane.width <= 0) return;\n isPlaced = true;\n // The opening placement seeds uncontrolled state; it is not the reader's intent, so it emits nothing.\n if (!isControlled && props.initialZoom === 'fit')\n internal.value = fitViewport(nextArea, nextPlane, props.fitPadding, props.minZoom, Math.min(1, props.maxZoom));\n}\n\n// Wheel handling must be a non-passive native listener — a template `@wheel` binding is attached passively, so\n// `preventDefault` inside it could not stop the page from scrolling or zooming.\nfunction onWheel(event: WheelEvent): void {\n const root = el.value;\n if (!root) return;\n const delta = wheelPixels(event, root.clientHeight);\n if (event.ctrlKey || event.metaKey || props.wheel === CanvasWheel.Zoom) {\n // Always claimed, or the browser zooms the whole page on a trackpad pinch.\n event.preventDefault();\n zoomBy(wheelZoomFactor(delta.y), local({ x: event.clientX, y: event.clientY }));\n return;\n }\n // Claimed only when the plane moved, so the page scrolls on past the content's edge.\n if (panBy(-delta.x, -delta.y)) event.preventDefault();\n}\n\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented || event.altKey || event.ctrlKey || event.metaKey || isEditable(event.target)) return;\n const step = event.shiftKey ? PanStep * 4 : PanStep;\n switch (event.key) {\n case '+':\n case '=':\n zoomIn();\n break;\n case '-':\n case '_':\n zoomOut();\n break;\n case '0':\n reset();\n break;\n case 'ArrowLeft':\n if (!panBy(step, 0)) return;\n break;\n case 'ArrowRight':\n if (!panBy(-step, 0)) return;\n break;\n case 'ArrowUp':\n if (!panBy(0, step)) return;\n break;\n case 'ArrowDown':\n if (!panBy(0, -step)) return;\n break;\n default:\n return;\n }\n event.preventDefault();\n}\n\n/** Live position of every pointer down on the area, in viewport coordinates, keyed by `pointerId`. */\nconst pointers = new Map<number, CanvasPoint>();\nlet gesture: PanGesture | PinchGesture | null = null;\n\n/** Set once a press becomes a drag, so the click that ends it does not activate the content under it. */\nlet suppressClick = false;\n\nfunction capture(pointerId: number): void {\n try {\n el.value?.setPointerCapture(pointerId);\n } catch {\n // The pointer already went away; the area still hears its remaining events.\n }\n}\n\nfunction release(pointerId: number): void {\n try {\n if (el.value?.hasPointerCapture(pointerId)) el.value.releasePointerCapture(pointerId);\n } catch {\n // Capture was never held, or the pointer id is stale.\n }\n}\n\nfunction midpoint(a: CanvasPoint, b: CanvasPoint): CanvasPoint {\n return { x: (a.x + b.x) / 2, y: (a.y + b.y) / 2 };\n}\n\nfunction beginPinch(): void {\n const [first, second] = [...pointers.entries()];\n if (!first || !second) return;\n gesture = {\n kind: 'pinch',\n ids: [first[0], second[0]],\n startDistance: Math.max(1, Math.hypot(first[1].x - second[1].x, first[1].y - second[1].y)),\n startCenter: local(midpoint(first[1], second[1])),\n origin: view.value,\n };\n capture(first[0]);\n capture(second[0]);\n suppressClick = true;\n isPanning.value = true;\n}\n\nfunction onPointerDown(event: PointerEvent): void {\n if (event.button !== 0 || isEditable(event.target)) return;\n pointers.set(event.pointerId, { x: event.clientX, y: event.clientY });\n if (pointers.size === 1) {\n suppressClick = false;\n gesture = {\n kind: 'pan',\n pointerId: event.pointerId,\n startX: event.clientX,\n startY: event.clientY,\n origin: view.value,\n isDragging: false,\n };\n } else if (pointers.size === 2) beginPinch();\n}\n\nfunction onPointerMove(event: PointerEvent): void {\n if (!pointers.has(event.pointerId)) return;\n pointers.set(event.pointerId, { x: event.clientX, y: event.clientY });\n const current = gesture;\n if (!current) return;\n if (current.kind === 'pan') {\n if (event.pointerId !== current.pointerId) return;\n const dx = event.clientX - current.startX;\n const dy = event.clientY - current.startY;\n if (!current.isDragging) {\n if (Math.hypot(dx, dy) < (event.pointerType === 'mouse' ? DragThreshold.mouse : DragThreshold.other)) return;\n gesture = { ...current, isDragging: true };\n capture(event.pointerId);\n suppressClick = true;\n isPanning.value = true;\n }\n commit({ ...current.origin, x: current.origin.x + dx, y: current.origin.y + dy });\n return;\n }\n const a = pointers.get(current.ids[0]);\n const b = pointers.get(current.ids[1]);\n if (!a || !b) return;\n // Measured from the pinch's own start, never frame to frame, so fingers returning home restore the view.\n const zoom = clampZoom(\n current.origin.zoom * (Math.hypot(a.x - b.x, a.y - b.y) / current.startDistance),\n props.minZoom,\n props.maxZoom,\n );\n const scaled = zoomAt(current.origin, zoom, current.startCenter);\n const moved = local(midpoint(a, b));\n commit({ zoom, x: scaled.x + moved.x - current.startCenter.x, y: scaled.y + moved.y - current.startCenter.y });\n}\n\nfunction onPointerEnd(event: PointerEvent): void {\n if (!pointers.delete(event.pointerId)) return;\n release(event.pointerId);\n const remaining = [...pointers.entries()][0];\n if (gesture?.kind === 'pinch' && pointers.size === 1 && remaining) {\n // The finger left behind carries on as a drag from where the pinch ended.\n gesture = {\n kind: 'pan',\n pointerId: remaining[0],\n startX: remaining[1].x,\n startY: remaining[1].y,\n origin: view.value,\n isDragging: true,\n };\n return;\n }\n if (pointers.size > 0) return;\n gesture = null;\n isPanning.value = false;\n // The click a drag produces arrives in this same task; a drag with no click must not swallow a later one.\n if (suppressClick) setTimeout(() => (suppressClick = false), 0);\n}\n\nfunction onClickCapture(event: MouseEvent): void {\n if (!suppressClick) return;\n suppressClick = false;\n event.preventDefault();\n event.stopPropagation();\n}\n\nonMounted(() => {\n el.value?.addEventListener('wheel', onWheel, { passive: false });\n measure();\n if (typeof ResizeObserver === 'undefined') return;\n observer = new ResizeObserver(measure);\n if (el.value) observer.observe(el.value);\n if (content.value) observer.observe(content.value);\n});\n\nonBeforeUnmount(() => {\n el.value?.removeEventListener('wheel', onWheel);\n observer?.disconnect();\n observer = null;\n for (const pointerId of pointers.keys()) release(pointerId);\n pointers.clear();\n gesture = null;\n});\n\nconst classes = computed(() =>\n cn(\n 'relative h-96 w-full touch-none select-none overflow-hidden rounded-md border border-border bg-muted/30',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring',\n isPanning.value ? 'cursor-grabbing' : 'cursor-grab',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** Vue does not append `px` to a numeric `:style` value — every length is spelled out. */\nconst planeStyle = computed(() => ({\n transform: `translate(${view.value.x}px, ${view.value.y}px) scale(${view.value.zoom})`,\n}));\n\nconst ControlClass =\n 'inline-flex h-7 min-w-7 items-center justify-center rounded-md px-1.5 text-xs text-muted-foreground ' +\n 'hover:bg-muted hover:text-foreground disabled:pointer-events-none disabled:opacity-40 ' +\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring';\nconst ResetClass = cn(ControlClass, 'min-w-12 tabular-nums');\n\ndefineExpose({ el, zoomIn, zoomOut, zoomTo, reset, fit, panBy });\n</script>\n\n<template>\n <div\n ref=\"el\"\n tabindex=\"0\"\n role=\"group\"\n :aria-roledescription=\"labels.canvas\"\n v-bind=\"rest\"\n :class=\"classes\"\n @pointerdown=\"onPointerDown\"\n @pointermove=\"onPointerMove\"\n @pointerup=\"onPointerEnd\"\n @pointercancel=\"onPointerEnd\"\n @click.capture=\"onClickCapture\"\n @dragstart.prevent\n @keydown=\"onKeydown\"\n >\n <div ref=\"content\" data-canvas-plane class=\"absolute left-0 top-0 w-max origin-top-left\" :style=\"planeStyle\">\n <slot />\n </div>\n <div\n v-if=\"hasControls\"\n role=\"group\"\n :aria-label=\"labels.controls\"\n class=\"absolute bottom-3 end-3 flex cursor-auto items-center gap-0.5 rounded-lg border border-border bg-card p-0.5 shadow-sm\"\n @pointerdown.stop\n >\n <slot name=\"controls\" v-bind=\"controls\">\n <button\n type=\"button\"\n :class=\"ControlClass\"\n :aria-label=\"labels.zoomOut\"\n :disabled=\"!canZoomOut\"\n @click=\"zoomOut\"\n >\n <Icon :icon=\"Minus\" :size=\"14\" />\n </button>\n <button type=\"button\" :class=\"ResetClass\" :aria-label=\"`${percent}%, ${labels.reset}`\" @click=\"reset\">\n {{ percent }}%\n </button>\n <button type=\"button\" :class=\"ControlClass\" :aria-label=\"labels.zoomIn\" :disabled=\"!canZoomIn\" @click=\"zoomIn\">\n <Icon :icon=\"Plus\" :size=\"14\" />\n </button>\n <button type=\"button\" :class=\"ControlClass\" :aria-label=\"labels.fit\" @click=\"fit\">\n <Icon :icon=\"Maximize\" :size=\"13\" />\n </button>\n </slot>\n </div>\n </div>\n</template>\n","<script lang=\"ts\">\n/* `Align` is imported here (not in `<script setup>`) so the one binding serves\n as both the type below and the runtime value used in `withDefaults`. */\nimport { Align } from '../../../foundation/styles';\n\nexport interface ClusterLayoutProps {\n /** The gap between children. Default `4`. */\n readonly gap?: '2' | '3' | '4' | '6' | '8';\n\n /** The cross-axis justification. Default `center`. */\n readonly justify?: Align;\n}\n\nconst GapClass: Record<NonNullable<ClusterLayoutProps['gap']>, string> = {\n '2': 'gap-2',\n '3': 'gap-3',\n '4': 'gap-4',\n '6': 'gap-6',\n '8': 'gap-8',\n};\nconst JustifyClass: Record<NonNullable<ClusterLayoutProps['justify']>, string> = {\n start: 'justify-start',\n center: 'justify-center',\n end: 'justify-end',\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a centered wrapping row — for auth-page action clusters, hero CTAs, footer\n * link groups. `InlineLayout` left-aligns; `ClusterLayout` centers by default.\n */\ndefineOptions({ name: 'ClusterLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ClusterLayoutProps>(), { gap: '4', justify: Align.Center });\n\ndefineSlots<{\n /** The items laid out in the centered wrapping row. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'flex flex-wrap items-center',\n GapClass[props.gap],\n JustifyClass[props.justify],\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></div>\n</template>\n","<script lang=\"ts\">\n/* `Radius` is imported here (not in `<script setup>`) so the one binding serves\n as both the type below and the runtime value used in `withDefaults`. */\nimport { Radius } from '../../../foundation/styles';\n\n/** Defines the surface background of a `FrameLayout`. */\nexport const FrameLayoutSurface = {\n /** Refers to a raised card surface. */\n Card: 'card',\n /** Refers to a recessed muted surface. */\n Muted: 'muted',\n /** Refers to no surface fill (transparent). */\n Transparent: 'transparent',\n} as const;\n\nexport type FrameLayoutSurface = (typeof FrameLayoutSurface)[keyof typeof FrameLayoutSurface];\n\nexport interface FrameLayoutProps {\n /** The padding. Default `4`. */\n readonly padding?: '0' | '2' | '3' | '4' | '6' | '8';\n\n /** The border radius. Default `md`. */\n readonly radius?: Radius;\n\n /** The surface background — `card` (raised) or `muted` (recessed). Default `card`. */\n readonly surface?: FrameLayoutSurface;\n\n /** The border visibility. Default `true`. */\n readonly isBordered?: boolean;\n}\n\nconst PaddingClass: Record<NonNullable<FrameLayoutProps['padding']>, string> = {\n '0': '',\n '2': 'p-2',\n '3': 'p-3',\n '4': 'p-4',\n '6': 'p-6',\n '8': 'p-8',\n};\nconst RadiusClass: Record<Radius, string> = {\n none: '',\n sm: 'rounded-sm',\n md: 'rounded-md',\n lg: 'rounded-lg',\n xl: 'rounded-xl',\n '2xl': 'rounded-2xl',\n full: 'rounded-full',\n};\nconst SurfaceClass: Record<FrameLayoutSurface, string> = {\n card: 'bg-card text-card-foreground',\n muted: 'bg-muted text-foreground',\n transparent: '',\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a bordered shell with padding and radius — `Card` without slot semantics.\n * Use when you want the visual but not the structured Header/Body/Footer.\n */\n/* `<frame-layout>` is a deprecated HTML element. This is a library component — imported,\n never globally registered — so the name cannot shadow the tag, and renaming it\n would break parity with the React package. */\ndefineOptions({ name: 'FrameLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<FrameLayoutProps>(), {\n padding: '4',\n radius: Radius.Md,\n surface: FrameLayoutSurface.Card,\n isBordered: true,\n});\n\ndefineSlots<{\n /** The content inside the bordered shell. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() =>\n cn(\n SurfaceClass[props.surface],\n PaddingClass[props.padding],\n RadiusClass[props.radius],\n props.isBordered && 'border border-border',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\"><slot /></div>\n</template>\n","<script lang=\"ts\">\n/* `Side` is imported here (not in `<script setup>`) so the one binding serves\n as both the type below and the runtime value used in `withDefaults`. */\nimport { Side } from '../../../foundation/styles';\n\nexport interface TwoColumnLayoutProps {\n /** The aside width — Tailwind class string (e.g. `w-64`). Default `w-64`. */\n readonly asideWidth?: string;\n\n /** The side the aside sits on — `left` or `right`. Default `left`. */\n readonly asideSide?: Side;\n\n /** The gap between aside and main. Default `6`. */\n readonly gap?: '0' | '4' | '6' | '8' | '10';\n}\n\nconst GapClass: Record<NonNullable<TwoColumnLayoutProps['gap']>, string> = {\n '0': 'gap-0',\n '4': 'gap-4',\n '6': 'gap-6',\n '8': 'gap-8',\n '10': 'gap-10',\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a two-pane layout — fixed-width aside + flexible main. Sidebar+content,\n * filter+results, table-of-contents+article patterns.\n */\ndefineOptions({ name: 'TwoColumnLayout', inheritAttrs: false });\n\n/**\n * React's `aside` / `children` ReactNode props become slots: structural content\n * regions have no prop equivalent in Vue, and a slot is what a template can\n * fill. `aside` was required in React and stays required here.\n */\ndefineSlots<{\n /** The sidebar / aside content. */\n aside(): unknown;\n /** The main content. */\n default(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<TwoColumnLayoutProps>(), {\n asideWidth: 'w-64',\n asideSide: Side.Left,\n gap: '6',\n});\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'flex w-full',\n props.asideSide === Side.Right && 'flex-row-reverse',\n GapClass[props.gap],\n attrs.class as string | undefined,\n ),\n);\n\nconst asideClasses = computed(() => cn('shrink-0', props.asideWidth));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <aside :class=\"asideClasses\"><slot name=\"aside\" /></aside>\n <main class=\"min-w-0 flex-1\"><slot /></main>\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { Breakpoint } from '../appShell/AppShell.vue';\n\nexport interface ListDetailLayoutProps {\n /** Whether a detail is open. Below `breakpoint` it replaces the list; drive it from the route so back works. */\n readonly isDetailOpen?: boolean;\n\n /** The panes sit side by side from this breakpoint; below it one shows at a time. Default `lg`. */\n readonly breakpoint?: Breakpoint;\n\n /** The list column's width from `breakpoint` up, any CSS length. Default `20rem`. */\n readonly listWidth?: string;\n\n /** The back control's label. Default the locale's `Back`. */\n readonly backLabel?: string;\n\n /** The back row's class — pad it to match padded detail content. Merged over the default `mb-2`. */\n readonly backClass?: HTMLAttributes['class'];\n}\n\n/* Static per-breakpoint classes, so Tailwind finds every one in the source. */\nconst SideBySideClass: Record<Breakpoint, string> = {\n sm: 'sm:grid-cols-[var(--ui-list-detail-list-width)_minmax(0,1fr)]',\n md: 'md:grid-cols-[var(--ui-list-detail-list-width)_minmax(0,1fr)]',\n lg: 'lg:grid-cols-[var(--ui-list-detail-list-width)_minmax(0,1fr)]',\n xl: 'xl:grid-cols-[var(--ui-list-detail-list-width)_minmax(0,1fr)]',\n '2xl': '2xl:grid-cols-[var(--ui-list-detail-list-width)_minmax(0,1fr)]',\n};\n\nconst NarrowHiddenClass: Record<Breakpoint, string> = {\n sm: 'max-sm:hidden',\n md: 'max-md:hidden',\n lg: 'max-lg:hidden',\n xl: 'max-xl:hidden',\n '2xl': 'max-2xl:hidden',\n};\n\nconst WideHiddenClass: Record<Breakpoint, string> = {\n sm: 'sm:hidden',\n md: 'md:hidden',\n lg: 'lg:hidden',\n xl: 'xl:hidden',\n '2xl': '2xl:hidden',\n};\n\n/** The list item a return focuses when the activating control is gone: the one marked selected or current. */\nconst SelectedItemSelector =\n '[aria-current]:not([aria-current=\"false\"]), [aria-selected=\"true\"], [aria-pressed=\"true\"], [data-selected]';\n\n/** The controls a click in the list may have activated. */\nconst ActivatorSelector = 'a[href], button, input, select, textarea, summary, [tabindex]';\n\n/** How long an activation in the list names the activator of a detail that opens after it (a route push between). */\nconst ActivatorWindowMs = 1000;\n\n/** The detail's focus target on open: an explicit marker first, then its first heading. */\nconst HeadingSelectors = ['[data-list-detail-heading]', 'h1, h2, h3, h4, h5, h6'] as const;\n\ninterface ScrollMark {\n readonly element: Element;\n readonly top: number;\n readonly left: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, nextTick, normalizeStyle, useAttrs, useTemplateRef, watch } from 'vue';\nimport { ChevronLeft } from 'lucide-vue-next';\nimport { useLocale } from '../../../foundation/i18n';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a master-detail page: list and detail side by side from `breakpoint`, one at a time below it. The\n * consumer owns `isDetailOpen`; the layout moves focus and keeps the list's scroll across the swap.\n */\ndefineOptions({ name: 'ListDetailLayout', inheritAttrs: false });\n\ndefineSlots<{\n /** The list pane — items the reader picks a detail from. */\n list(): unknown;\n /** The detail pane's content. Its first heading takes focus when it replaces the list. */\n detail(): unknown;\n /** Replaces the back control shown above the detail below `breakpoint`; call `back` to return to the list. */\n back?(props: { back: () => void; label: string }): unknown;\n}>();\n\nconst props = withDefaults(defineProps<ListDetailLayoutProps>(), {\n isDetailOpen: false,\n breakpoint: 'lg',\n listWidth: '20rem',\n backLabel: undefined,\n backClass: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the reader asks to return to the list; set `isDetailOpen` to `false` (or step the route back). */\n back: [];\n}>();\n\nconst attrs = useAttrs();\nconst locale = useLocale();\nconst el = useTemplateRef<HTMLDivElement>('el');\nconst listPane = useTemplateRef<HTMLDivElement>('listPane');\nconst detailPane = useTemplateRef<HTMLDivElement>('detailPane');\n\nconst label = computed(() => props.backLabel ?? locale.t('ListDetailLayout.back', undefined, 'Back'));\n\nconst classes = computed(() =>\n cn('grid grid-cols-1', SideBySideClass[props.breakpoint], attrs.class as string | undefined),\n);\n\nconst rootStyle = computed(() => normalizeStyle([{ '--ui-list-detail-list-width': props.listWidth }, attrs.style]));\n\nconst listClasses = computed(() =>\n cn('min-w-0 outline-none', props.isDetailOpen && NarrowHiddenClass[props.breakpoint]),\n);\n\nconst detailClasses = computed(() =>\n cn('min-w-0 outline-none', !props.isDetailOpen && NarrowHiddenClass[props.breakpoint]),\n);\n\n/* The caller's class lands before the breakpoint's hiding class, so it can pad the row but never show it side by side. */\nconst backRowClasses = computed(() => cn('mb-2', props.backClass, WideHiddenClass[props.breakpoint]));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\nfunction back(): void {\n emit('back');\n}\n\n/* What the reader activated in the list, and the list's scroll offsets, captured as the detail replaces it. */\nlet activator: Element | null = null;\nlet scrollMarks: ScrollMark[] = [];\n\n/*\n * The last activation in the list: a click or tap, or Enter / Space. It outranks focus: WebKit never focuses a clicked\n * button and an iOS tap leaves focus where it was — often on the item the previous return focused.\n */\nlet lastActivation: { readonly target: Element; readonly at: number } | null = null;\n\nfunction remember(target: EventTarget | null): void {\n const control = (target as Element | null)?.closest?.(ActivatorSelector);\n lastActivation = control ? { target: control, at: performance.now() } : null;\n}\n\nfunction rememberClick(event: Event): void {\n remember(event.target);\n}\n\nfunction rememberKey(event: KeyboardEvent): void {\n if (event.key === 'Enter' || event.key === ' ') remember(event.target);\n}\n\nfunction activatorIn(list: Element): Element | null {\n const activation = lastActivation;\n lastActivation = null;\n if (activation && performance.now() - activation.at <= ActivatorWindowMs) return activation.target;\n const focused = document.activeElement;\n if (focused && focused !== list && list.contains(focused)) return focused;\n return null;\n}\n\nfunction isHidden(element: Element | null): boolean {\n return element !== null && getComputedStyle(element).display === 'none';\n}\n\n/** The nearest ancestor that scrolls vertically, or the document's scroller. */\nfunction scrollParent(element: Element): Element {\n for (let node = element.parentElement; node; node = node.parentElement) {\n const overflow = getComputedStyle(node).overflowY;\n if (/(auto|scroll|overlay)/.test(overflow) && node.scrollHeight > node.clientHeight) return node;\n }\n return document.scrollingElement ?? document.documentElement;\n}\n\nfunction captureScroll(root: Element, list: Element): ScrollMark[] {\n const marks: ScrollMark[] = [];\n const outer = scrollParent(root);\n marks.push({ element: outer, top: outer.scrollTop, left: outer.scrollLeft });\n for (const element of [list, ...list.querySelectorAll('*')]) {\n if (element.scrollTop > 0 || element.scrollLeft > 0)\n marks.push({ element, top: element.scrollTop, left: element.scrollLeft });\n }\n return marks;\n}\n\nfunction restoreScroll(marks: ReadonlyArray<ScrollMark>): void {\n for (const mark of marks) {\n if (!mark.element.isConnected) continue;\n mark.element.scrollTop = mark.top;\n mark.element.scrollLeft = mark.left;\n }\n}\n\nfunction focusWithoutScroll(element: HTMLElement): void {\n if (!element.hasAttribute('tabindex') && element.tabIndex < 0) element.setAttribute('tabindex', '-1');\n element.focus({ preventScroll: true });\n}\n\n/** Brings the layout's top edge into view when the swap left it above the scroller's visible area. */\nfunction revealTop(root: HTMLElement): void {\n const outer = scrollParent(root);\n const visibleTop = outer === document.scrollingElement ? 0 : outer.getBoundingClientRect().top;\n if (root.getBoundingClientRect().top < visibleTop) root.scrollIntoView({ block: 'start' });\n}\n\nfunction focusDetail(pane: HTMLElement): void {\n const heading = HeadingSelectors.map((selector) => pane.querySelector<HTMLElement>(selector)).find(Boolean);\n focusWithoutScroll(heading ?? pane);\n}\n\nfunction focusList(pane: HTMLElement): void {\n const remembered = activator?.isConnected && pane.contains(activator) ? (activator as HTMLElement) : null;\n const selected = pane.querySelector<HTMLElement>(SelectedItemSelector);\n focusWithoutScroll(remembered ?? selected ?? pane);\n}\n\n/*\n * Runs before the DOM updates, while the outgoing pane is still laid out: that is the only moment its scroll\n * offsets and focus can be read. The swap only happens below `breakpoint` — the incoming pane is hidden — so\n * side by side nothing moves.\n */\nwatch(\n () => props.isDetailOpen,\n async (isOpen) => {\n const root = el.value;\n const list = listPane.value;\n const detail = detailPane.value;\n if (!root || !list || !detail) return;\n if (isOpen) {\n if (!isHidden(detail)) return;\n activator = activatorIn(list);\n scrollMarks = captureScroll(root, list);\n await nextTick();\n if (!isHidden(list)) return;\n activator ??= list.querySelector(SelectedItemSelector);\n revealTop(root);\n focusDetail(detail);\n } else {\n if (!isHidden(list)) return;\n await nextTick();\n if (isHidden(list)) return;\n restoreScroll(scrollMarks);\n focusList(list);\n scrollMarks = [];\n activator = null;\n }\n },\n);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :style=\"rootStyle\" :class=\"classes\" :data-view=\"props.isDetailOpen ? 'detail' : 'list'\">\n <div\n ref=\"listPane\"\n data-list-detail-pane=\"list\"\n tabindex=\"-1\"\n :class=\"listClasses\"\n @click.capture=\"rememberClick\"\n @keydown.capture=\"rememberKey\"\n >\n <slot name=\"list\" />\n </div>\n <div ref=\"detailPane\" data-list-detail-pane=\"detail\" tabindex=\"-1\" :class=\"detailClasses\">\n <div :class=\"backRowClasses\">\n <slot name=\"back\" :back=\"back\" :label=\"label\">\n <button\n type=\"button\"\n data-list-detail-back\n class=\"-ms-2 inline-flex min-h-11 items-center gap-1 rounded-md px-2 text-sm font-medium text-muted-foreground transition-colors hover:bg-muted hover:text-foreground focus-visible:outline-2 focus-visible:outline-ring\"\n @click=\"back\"\n >\n <ChevronLeft class=\"size-4 rtl:-scale-x-100\" aria-hidden=\"true\" />\n {{ label }}\n </button>\n </slot>\n </div>\n <slot name=\"detail\" />\n </div>\n </div>\n</template>\n","<script lang=\"ts\">\nimport { inject, type InjectionKey } from 'vue';\n/* `Orientation` is imported as a value so the one binding serves as both the\n type below and the runtime default in `withDefaults`. */\nimport { Orientation } from '../../../foundation/styles';\n\n/** The size constraints a `ResizablePanel` contributes to its group. */\nexport interface PanelInfo {\n defaultSize: number;\n minSize: number;\n maxSize: number;\n}\n\n/**\n * The group context. Every member is a live getter or a method — read them,\n * never destructure, or the reactivity is lost at the point of the snapshot.\n */\nexport interface ResizableContextValue {\n readonly orientation: Orientation;\n readonly sizes: ReadonlyArray<number>;\n readonly panels: ReadonlyArray<PanelInfo>;\n\n /**\n * Registration replaces React's `Children.map` index threading: a Vue parent\n * cannot rewrite its slot's children, so each child claims its own slot with an\n * identity token. Order is *registration* order — the same model the house\n * `createCollection` primitive uses — which equals document order for mount,\n * append, and remove.\n */\n registerPanel: (token: symbol, info: PanelInfo) => void;\n updatePanel: (token: symbol, info: PanelInfo) => void;\n unregisterPanel: (token: symbol) => void;\n panelIndex: (token: symbol) => number;\n\n registerSeparator: (token: symbol) => void;\n unregisterSeparator: (token: symbol) => void;\n separatorIndex: (token: symbol) => number;\n\n beginDrag: (separatorIndex: number, event: MouseEvent) => boolean;\n nudge: (separatorIndex: number, deltaPct: number) => void;\n resetPair: (separatorIndex: number) => void;\n}\n\nexport const resizableContextKey: InjectionKey<ResizableContextValue> = Symbol('wow-two.resizablePanels');\n\nexport function useResizableContext(): ResizableContextValue {\n const context = inject(resizableContextKey, null);\n if (!context) throw new Error('ResizablePanelsLayout.* must be used inside <ResizablePanelsLayout>');\n return context;\n}\n\nexport interface ResizablePanelsLayoutProps {\n /** The split axis — `horizontal` (side-by-side panels) or `vertical` (stacked). Default `horizontal`. */\n readonly orientation?: Orientation;\n readonly defaultSizes?: ReadonlyArray<number>;\n readonly sizes?: ReadonlyArray<number>;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, onScopeDispose, provide, ref, useAttrs, useTemplateRef, watch } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\n\n/**\n * Renders two-or-more resizable panes split by draggable separators. Compose\n * `<ResizablePanel>` and `<ResizableSeparator>` as children — each claims its\n * index from this root through the injected context.\n */\ndefineOptions({ name: 'ResizablePanelsLayout', inheritAttrs: false });\n\n/** The panels and separators — React's required `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<ResizablePanelsLayoutProps>(), {\n orientation: Orientation.Horizontal,\n defaultSizes: undefined,\n sizes: undefined,\n});\n\nconst emit = defineEmits<{ 'update:sizes': [sizes: ReadonlyArray<number>] }>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\ninterface PanelEntry {\n token: symbol;\n info: PanelInfo;\n}\n\nconst panelEntries = ref<Array<PanelEntry>>([]);\nconst separatorTokens = ref<Array<symbol>>([]);\nconst panelCount = computed(() => panelEntries.value.length);\n\nconst controlled = useControlled<ReadonlyArray<number>>({\n controlled: () => props.sizes,\n default: props.defaultSizes ?? [],\n onChange: (next) => emit('update:sizes', next),\n});\n\n/** Registration derives a layout without emitting user intent into a controlled model. */\nconst sizes = computed<ReadonlyArray<number>>(() => {\n const count = panelCount.value;\n if (controlled.value.value.length === count) return controlled.value.value;\n if (props.defaultSizes?.length === count) return props.defaultSizes;\n return Array<number>(count).fill(100 / Math.max(count, 1));\n});\n\nfunction resizePair(separatorIndex: number, desiredA: number, current = sizes.value): void {\n const a = separatorIndex;\n const b = a + 1;\n const aInfo = panelEntries.value[a]?.info;\n const bInfo = panelEntries.value[b]?.info;\n if (!aInfo || !bInfo) return;\n const total = current[a]! + current[b]!;\n const lower = Math.max(aInfo.minSize, total - bInfo.maxSize);\n const upper = Math.min(aInfo.maxSize, total - bInfo.minSize);\n if (![total, desiredA, lower, upper].every(Number.isFinite) || lower > upper) return;\n const next = current.slice();\n next[a] = Math.max(lower, Math.min(upper, desiredA));\n next[b] = total - next[a]!;\n if (next[a] !== sizes.value[a] || next[b] !== sizes.value[b]) controlled.setValue(next);\n}\n\nfunction applyDelta(separatorIndex: number, deltaPct: number): void {\n resizePair(separatorIndex, sizes.value[separatorIndex]! + deltaPct);\n}\n\nlet dragCleanup: (() => void) | null = null;\nonScopeDispose(() => dragCleanup?.());\nwatch(\n () => props.orientation,\n () => dragCleanup?.(),\n);\n\nfunction beginDrag(separatorIndex: number, event: MouseEvent): boolean {\n dragCleanup?.();\n const container = el.value;\n if (!container || !panelEntries.value[separatorIndex + 1]) return false;\n const orientation = props.orientation;\n const rect = container.getBoundingClientRect();\n const total = orientation === Orientation.Horizontal ? rect.width : rect.height;\n if (!Number.isFinite(total) || total <= 0) return false;\n const startSizes = sizes.value.slice();\n const cursor = orientation === Orientation.Horizontal ? 'col-resize' : 'row-resize';\n const style = document.body.style;\n const previous = ['cursor', 'user-select'].map((name) => ({\n name,\n value: style.getPropertyValue(name),\n priority: style.getPropertyPriority(name),\n }));\n const onMove = (e: MouseEvent): void => {\n const delta = orientation === Orientation.Horizontal ? e.clientX - event.clientX : e.clientY - event.clientY;\n resizePair(separatorIndex, startSizes[separatorIndex]! + (delta / total) * 100, startSizes);\n };\n const onUp = (): void => {\n window.removeEventListener('mousemove', onMove);\n window.removeEventListener('mouseup', onUp);\n for (const { name, value, priority } of previous) {\n const ownedValue = name === 'cursor' ? cursor : 'none';\n if (style.getPropertyValue(name) === ownedValue) style.setProperty(name, value, priority);\n }\n dragCleanup = null;\n };\n style.cursor = cursor;\n style.userSelect = 'none';\n window.addEventListener('mousemove', onMove);\n window.addEventListener('mouseup', onUp);\n dragCleanup = onUp;\n return true;\n}\n\nfunction resetPair(separatorIndex: number): void {\n const aInfo = panelEntries.value[separatorIndex]?.info;\n const bInfo = panelEntries.value[separatorIndex + 1]?.info;\n if (!aInfo || !bInfo) return;\n const total = sizes.value[separatorIndex]! + sizes.value[separatorIndex + 1]!;\n const defaults = aInfo.defaultSize + bInfo.defaultSize;\n resizePair(separatorIndex, defaults > 0 ? (total * aInfo.defaultSize) / defaults : total / 2);\n}\n\nprovide(resizableContextKey, {\n get orientation() {\n return props.orientation;\n },\n get sizes() {\n return sizes.value;\n },\n get panels() {\n return panelEntries.value.map((entry) => entry.info);\n },\n registerPanel: (token, info) => {\n panelEntries.value = [...panelEntries.value, { token, info }];\n },\n updatePanel: (token, info) => {\n panelEntries.value = panelEntries.value.map((entry) => (entry.token === token ? { token, info } : entry));\n },\n unregisterPanel: (token) => {\n panelEntries.value = panelEntries.value.filter((entry) => entry.token !== token);\n },\n panelIndex: (token) => panelEntries.value.findIndex((entry) => entry.token === token),\n registerSeparator: (token) => {\n separatorTokens.value = [...separatorTokens.value, token];\n },\n unregisterSeparator: (token) => {\n separatorTokens.value = separatorTokens.value.filter((existing) => existing !== token);\n },\n separatorIndex: (token) => separatorTokens.value.indexOf(token),\n beginDrag,\n nudge: applyDelta,\n resetPair,\n});\n\nconst classes = computed(() =>\n cn(\n 'flex h-full w-full',\n props.orientation === Orientation.Horizontal ? 'flex-row' : 'flex-col',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" :data-orientation=\"orientation\" v-bind=\"rest\" :class=\"classes\">\n <slot />\n </div>\n</template>\n","<script lang=\"ts\">\nexport interface ResizablePanelProps {\n readonly defaultSize?: number;\n readonly minSize?: number;\n readonly maxSize?: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, onUnmounted, useAttrs, useTemplateRef, watch, type CSSProperties } from 'vue';\nimport { cn, Orientation } from '../../../foundation/styles';\nimport { useResizableContext } from './ResizablePanelsLayout.vue';\n\n/**\n * Renders one pane of a `<ResizablePanelsLayout>` group.\n *\n * React's `ResizablePanel` was an inert marker the parent swapped for an inner\n * impl through `Children.map`. Vue cannot rewrite slot children, so this is the\n * real component and it claims its index by registering with the group.\n */\ndefineOptions({ name: 'ResizablePanel', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ResizablePanelProps>(), {\n defaultSize: 100,\n minSize: 0,\n maxSize: 100,\n});\n\ndefineSlots<{\n /** The pane content. */\n default?(): unknown;\n}>();\n\nconst context = useResizableContext();\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst token = Symbol('wow-two.resizablePanel');\ncontext.registerPanel(token, {\n defaultSize: props.defaultSize,\n minSize: props.minSize,\n maxSize: props.maxSize,\n});\n\nwatch(\n () => [props.defaultSize, props.minSize, props.maxSize] as const,\n ([defaultSize, minSize, maxSize]) => {\n context.updatePanel(token, { defaultSize, minSize, maxSize });\n },\n);\n\nonUnmounted(() => context.unregisterPanel(token));\n\nconst index = computed(() => context.panelIndex(token));\nconst size = computed(() => context.sizes[index.value] ?? props.defaultSize);\n\nconst styles = computed<CSSProperties>(() =>\n context.orientation === Orientation.Horizontal\n ? { width: `${size.value}%`, height: '100%' }\n : { height: `${size.value}%`, width: '100%' },\n);\n\nconst classes = computed(() => cn('overflow-auto', attrs.class as string | undefined));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" :data-panel-index=\"index\" v-bind=\"rest\" :class=\"classes\" :style=\"styles\">\n <slot />\n </div>\n</template>\n","<script lang=\"ts\">\nexport interface ResizableSeparatorProps {\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, onScopeDispose, onUnmounted, ref, useAttrs, useTemplateRef } from 'vue';\nimport { cn, Orientation } from '../../../foundation/styles';\nimport { composeEventHandlers } from '../../../foundation/dom';\nimport { useResizableContext } from './ResizablePanelsLayout.vue';\n\n/** Renders the draggable rule between two `<ResizablePanel>`s — arrow keys nudge, double-click resets. */\ndefineOptions({ name: 'ResizableSeparator', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ResizableSeparatorProps>(), { isDisabled: false });\n\nconst context = useResizableContext();\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst token = Symbol('wow-two.resizableSeparator');\ncontext.registerSeparator(token);\nonUnmounted(() => context.unregisterSeparator(token));\n\nconst index = computed(() => context.separatorIndex(token));\nconst dragging = ref(false);\n\nlet releaseDrag: (() => void) | undefined;\nonScopeDispose(() => releaseDrag?.());\n\nfunction handleMouseDown(e: MouseEvent): void {\n if (props.isDisabled || e.defaultPrevented || e.button !== 0) return;\n releaseDrag?.();\n if (!context.beginDrag(index.value, e)) return;\n e.preventDefault();\n dragging.value = true;\n const onUp = (): void => {\n dragging.value = false;\n window.removeEventListener('mouseup', onUp);\n releaseDrag = undefined;\n };\n releaseDrag = onUp;\n window.addEventListener('mouseup', onUp);\n}\n\nfunction handleKeydown(e: KeyboardEvent): void {\n if (props.isDisabled) return;\n const step = e.shiftKey ? 10 : 1;\n if (context.orientation === Orientation.Horizontal) {\n if (e.key === 'ArrowLeft') {\n e.preventDefault();\n context.nudge(index.value, -step);\n } else if (e.key === 'ArrowRight') {\n e.preventDefault();\n context.nudge(index.value, step);\n }\n } else {\n if (e.key === 'ArrowUp') {\n e.preventDefault();\n context.nudge(index.value, -step);\n } else if (e.key === 'ArrowDown') {\n e.preventDefault();\n context.nudge(index.value, step);\n }\n }\n}\n\nfunction handleDblclick(): void {\n if (props.isDisabled) return;\n context.resetPair(index.value);\n}\n\n/** A fallthrough listener may already be a chain; flatten it to one callable. */\nfunction asHandler<E extends Event>(value: unknown): ((event: E) => void) | undefined {\n if (typeof value === 'function') return value as (event: E) => void;\n if (Array.isArray(value)) {\n return (event) => {\n for (const fn of value) if (typeof fn === 'function') fn(event);\n };\n }\n return undefined;\n}\n\n/*\n * React ran the consumer's handler first, then skipped its own when the consumer\n * called `preventDefault()`. Vue's own attr merge would run both unconditionally,\n * so the two are composed by hand through the house helper instead.\n */\nconst onMousedown = computed(() => composeEventHandlers<MouseEvent>(asHandler(attrs.onMousedown), handleMouseDown));\nconst onKeydown = computed(() => composeEventHandlers<KeyboardEvent>(asHandler(attrs.onKeydown), handleKeydown));\nconst onDblclick = computed(() => composeEventHandlers<MouseEvent>(asHandler(attrs.onDblclick), handleDblclick));\n\n// Announce the panel BEFORE the separator — ArrowRight/ArrowDown grow it, so size moves with the key.\nconst ariaValueNow = computed(() => Math.round(context.sizes[index.value] ?? 50));\nconst panelBefore = computed(() => context.panels[index.value]);\n\nconst classes = computed(() =>\n cn(\n 'flex shrink-0 items-center justify-center bg-border transition-colors',\n context.orientation === Orientation.Horizontal\n ? 'w-1 cursor-col-resize hover:bg-border-strong data-[dragging]:bg-primary'\n : 'h-1 cursor-row-resize hover:bg-border-strong data-[dragging]:bg-primary',\n 'focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n props.isDisabled && 'cursor-default opacity-50 hover:bg-border',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class` and the two composed listeners, all re-applied above. */\nconst rest = computed(() => {\n const { class: _class, onKeydown: _keydown, onDblclick: _dblclick, onMousedown: _mousedown, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div\n ref=\"el\"\n role=\"separator\"\n :aria-orientation=\"context.orientation === Orientation.Horizontal ? 'vertical' : 'horizontal'\"\n :aria-valuenow=\"ariaValueNow\"\n :aria-valuemin=\"panelBefore?.minSize ?? 0\"\n :aria-valuemax=\"panelBefore?.maxSize ?? 100\"\n :aria-disabled=\"isDisabled || undefined\"\n :tabindex=\"isDisabled ? -1 : 0\"\n :data-dragging=\"dragging || undefined\"\n v-bind=\"rest\"\n :class=\"classes\"\n @mousedown=\"onMousedown\"\n @keydown=\"onKeydown\"\n @dblclick=\"onDblclick\"\n />\n</template>\n","<script lang=\"ts\">\nexport interface PullToRefreshLayoutProps {\n readonly onRefresh: () => Promise<void> | void;\n readonly threshold?: number;\n readonly maxPull?: number;\n readonly isDisabled?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, onBeforeUnmount, onMounted, ref, useAttrs, useTemplateRef, watch } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { Announce, Politeness } from '../../../foundation/primitives';\nimport Spinner from '../../feedback/spinner/Spinner.vue';\n\n/**\n * Renders a pull-to-refresh wrapper. Listens to pointer drag at scrollTop=0; once\n * past `threshold`, fires `onRefresh`. Visual indicator: spinner that scales in as\n * the user pulls.\n */\ndefineOptions({ name: 'PullToRefreshLayout', inheritAttrs: false });\n\n/** The scrollable content. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<PullToRefreshLayoutProps>(), {\n threshold: 60,\n maxPull: 120,\n isDisabled: false,\n});\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst startY = ref<number | null>(null);\nconst pull = ref(0);\nconst refreshing = ref(false);\n\nconst reached = computed(() => pull.value >= props.threshold);\n\nfunction onPointerDown(e: PointerEvent): void {\n if (props.isDisabled || refreshing.value) return;\n const node = el.value;\n if (!node || node.scrollTop > 0) return;\n startY.value = e.clientY;\n}\n\nfunction onPointerMove(e: PointerEvent): void {\n if (startY.value == null) return;\n // Pointer was released outside the container — abandon the gesture.\n if (e.buttons === 0) {\n startY.value = null;\n pull.value = 0;\n return;\n }\n const dy = e.clientY - startY.value;\n if (dy < 0) {\n pull.value = 0;\n return;\n }\n // Resistance: sub-linear growth past threshold.\n const eased = dy < props.threshold ? dy : props.threshold + (dy - props.threshold) * 0.4;\n pull.value = Math.min(props.maxPull, eased);\n}\n\nasync function onPointerUp(): Promise<void> {\n if (startY.value == null) return;\n const didReach = pull.value >= props.threshold;\n startY.value = null;\n if (didReach) {\n refreshing.value = true;\n pull.value = props.threshold;\n try {\n await props.onRefresh();\n } finally {\n refreshing.value = false;\n pull.value = 0;\n }\n } else {\n pull.value = 0;\n }\n}\n\n// Touch: native vertical pan fires pointercancel and kills the gesture.\n// preventDefault touchmove only mid-pull (scrollTop 0, moving down); normal scroll stays native.\nfunction onTouchMove(e: TouchEvent): void {\n const node = el.value;\n if (!node || startY.value == null || !e.cancelable) return;\n if (node.scrollTop > 0) return;\n const touch = e.touches[0];\n if (!touch) return;\n if (touch.clientY - startY.value > 0) e.preventDefault();\n}\n\nonMounted(() => {\n el.value?.addEventListener('touchmove', onTouchMove, { passive: false });\n});\n\nonBeforeUnmount(() => {\n el.value?.removeEventListener('touchmove', onTouchMove);\n});\n\n// Releasing the pointer outside the container must still finish the gesture.\nwatch(pull, (value, _previous, onCleanup) => {\n if (value === 0) return;\n const finish = (): void => {\n void onPointerUp();\n };\n window.addEventListener('pointerup', finish);\n window.addEventListener('pointercancel', finish);\n onCleanup(() => {\n window.removeEventListener('pointerup', finish);\n window.removeEventListener('pointercancel', finish);\n });\n});\n\nconst classes = computed(() => cn('relative h-full overflow-y-auto', attrs.class as string | undefined));\n\n/**\n * Vue does not append `px` to a numeric `:style` value, so every length below is spelled out.\n */\nconst indicatorStyle = computed(() => ({\n height: `${pull.value}px`,\n transition: startY.value == null ? 'height 200ms ease-out' : 'none',\n}));\n\nconst contentStyle = computed(() => ({\n transform: `translateY(${pull.value}px)`,\n transition: startY.value == null ? 'transform 200ms ease-out' : 'none',\n}));\n\nconst spinnerScaleStyle = computed(() => ({\n transform: `scale(${Math.min(1, pull.value / props.threshold)})`,\n}));\n\nconst spinnerWrapClasses = computed(() =>\n cn('transition-opacity', refreshing.value || reached.value ? 'opacity-100' : 'opacity-60'),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div\n ref=\"el\"\n v-bind=\"rest\"\n :class=\"classes\"\n @pointerdown=\"onPointerDown\"\n @pointermove=\"onPointerMove\"\n @pointerup=\"onPointerUp\"\n @pointercancel=\"onPointerUp\"\n >\n <div\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute inset-x-0 top-0 z-raised flex items-center justify-center\"\n :style=\"indicatorStyle\"\n >\n <div v-if=\"pull > 8\" :class=\"spinnerWrapClasses\" :style=\"spinnerScaleStyle\">\n <Spinner size=\"md\" :tone=\"reached ? 'brand' : 'default'\" />\n </div>\n </div>\n\n <div :style=\"contentStyle\"><slot /></div>\n\n <Announce :politeness=\"Politeness.Polite\">{{ refreshing ? 'Refreshing' : '' }}</Announce>\n </div>\n</template>\n","<script lang=\"ts\">\nimport { inject, type ComputedRef, type InjectionKey, type Ref } from 'vue';\n\n/** Defines the responsive breakpoint at which `AppShell` collapses its sidebar / aside. */\nexport const Breakpoint = {\n /** Refers to the `sm` (640px) breakpoint. */\n Sm: 'sm',\n /** Refers to the `md` (768px) breakpoint. */\n Md: 'md',\n /** Refers to the `lg` (1024px) breakpoint. */\n Lg: 'lg',\n /** Refers to the `xl` (1280px) breakpoint. */\n Xl: 'xl',\n /** Refers to the `2xl` (1536px) breakpoint. */\n Xxl: '2xl',\n} as const;\n\nexport type Breakpoint = (typeof Breakpoint)[keyof typeof Breakpoint];\n\n/** Defines what scrolls inside an `AppShell`. */\nexport const AppShellScroll = {\n /** The main region scrolls; the header, sidebar and footer span the full window and hold still. */\n Region: 'region',\n /** The whole document scrolls, as a page does; the header sticks to the top. */\n Document: 'document',\n} as const;\n\nexport type AppShellScroll = (typeof AppShellScroll)[keyof typeof AppShellScroll];\n\n/** Defines where an `AppShell` places its navigation. */\nexport const AppShellNavigation = {\n /** A sidebar rail beside the main region. */\n Vertical: 'vertical',\n /** A top bar only; the main region takes the full width. */\n Horizontal: 'horizontal',\n} as const;\n\nexport type AppShellNavigation = (typeof AppShellNavigation)[keyof typeof AppShellNavigation];\n\nconst BreakpointPx: Record<Breakpoint, number> = {\n sm: 640,\n md: 768,\n lg: 1024,\n xl: 1280,\n '2xl': 1536,\n};\n\n/**\n * The value shared with `AppShellSidebar` / `AppShellAside`.\n *\n * React's context held plain values re-created on every render behind a\n * `useMemo`; here every field stays a ref or a computed, so a child reads the\n * live value and the root never re-renders to publish one.\n */\nexport interface AppShellContextValue {\n sidebarWidth: ComputedRef<string>;\n asideWidth: ComputedRef<string>;\n sidebarBreakpoint: ComputedRef<Breakpoint>;\n /** The resolved mobile-sidebar open state. Writable — an assignment routes through `setSidebarOpen`. */\n isSidebarOpen: Ref<boolean>;\n setSidebarOpen: (open: boolean) => void;\n /** True below `sidebarBreakpoint` — the sidebar renders as a `Drawer`. */\n isSidebarCollapsed: ComputedRef<boolean>;\n /** True below `asideBreakpoint` — the aside renders nothing. */\n isAsideHidden: ComputedRef<boolean>;\n /** What scrolls — the regions size and pin themselves by it. */\n scroll: ComputedRef<AppShellScroll>;\n}\n\nexport const appShellContextKey: InjectionKey<AppShellContextValue> = Symbol('wow-two.appShell');\n\nexport function useAppShellContext(): AppShellContextValue {\n const context = inject(appShellContextKey, null);\n if (!context) throw new Error('AppShell.* must be used inside <AppShell>');\n return context;\n}\n\n/** Reads the enclosing `AppShell`'s state — widths, breakpoint, and the mobile-sidebar toggle. */\nexport function useAppShell(): AppShellContextValue {\n return useAppShellContext();\n}\n\n/** Controlled axes use their canonical Vue model names; each update event requests caller state. */\nexport interface AppShellProps {\n /** The sidebar column width, any CSS length. Default `240px`. */\n readonly sidebarWidth?: string;\n\n /** The aside rail width, any CSS length. Default `280px`. */\n readonly asideWidth?: string;\n\n /** The sidebar collapses below this breakpoint. Default `lg`. */\n readonly sidebarBreakpoint?: Breakpoint;\n\n /** The aside hides below this breakpoint. Default `xl`. */\n readonly asideBreakpoint?: Breakpoint;\n\n /** The mobile-sidebar open state, controlled. The `v-model:sidebarOpen` binding target. */\n readonly sidebarOpen?: boolean;\n\n /** The initial mobile-sidebar state when uncontrolled. Default `false`. */\n readonly defaultSidebarOpen?: boolean;\n\n /**\n * What scrolls. Default `region`: the main region scrolls, so the header spans the full window even where the\n * platform draws a classic scrollbar. `document` scrolls the page, for long public pages with a closing footer.\n */\n readonly scroll?: AppShellScroll;\n\n /**\n * Where the navigation sits. Omit it and the shell reads its children: an `AppShellSidebar` makes it\n * `vertical`, none makes it `horizontal`, so a top-bar app never reserves an empty sidebar column.\n */\n readonly navigation?: AppShellNavigation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, Fragment, normalizeStyle, provide, useAttrs, useSlots, useTemplateRef, type VNode } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useControlled } from '../../../foundation/state';\nimport { useMediaQuery } from '../../../foundation/device';\n\nconst locale = useLocale();\n\n/**\n * Renders the top-level page frame. Children: `AppShellHeader` / `AppShellSidebar` /\n * `AppShellMain` / `AppShellAside` / `AppShellFooter`. CSS-grid layout; the\n * sidebar collapses to a `Drawer` below `sidebarBreakpoint`.\n */\ndefineOptions({ name: 'AppShell', inheritAttrs: false });\n\n/** The shell's regions — React's required `children`. */\ndefineSlots<{ default(): unknown }>();\n\n/**\n * `sidebarOpen: undefined` / `sidebarOpen: undefined` are load-bearing: Vue\n * coerces an absent `Boolean` prop to `false` unless the declaration *owns* a\n * `default` key, which would strand the uncontrolled path behind a\n * permanently-closed controlled one.\n */\nconst props = withDefaults(defineProps<AppShellProps>(), {\n sidebarWidth: '240px',\n asideWidth: '280px',\n sidebarBreakpoint: 'lg',\n asideBreakpoint: 'xl',\n sidebarOpen: undefined,\n defaultSidebarOpen: false,\n scroll: AppShellScroll.Region,\n navigation: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the mobile sidebar opens or closes — the `v-model:sidebarOpen` half. */\n 'update:sidebarOpen': [open: boolean];\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.sidebarOpen,\n default: () => props.defaultSidebarOpen,\n onChange: (value) => {\n emit('update:sidebarOpen', value);\n },\n});\n\nconst isSidebarWide = useMediaQuery(() => `(min-width: ${BreakpointPx[props.sidebarBreakpoint]}px)`);\nconst isAsideWide = useMediaQuery(() => `(min-width: ${BreakpointPx[props.asideBreakpoint]}px)`);\n\nconst isSidebarCollapsed = computed(() => !isSidebarWide.value);\nconst isAsideHidden = computed(() => !isAsideWide.value);\n\nprovide(appShellContextKey, {\n sidebarWidth: computed(() => props.sidebarWidth),\n asideWidth: computed(() => props.asideWidth),\n sidebarBreakpoint: computed(() => props.sidebarBreakpoint),\n isSidebarOpen: controlled.value,\n setSidebarOpen: controlled.setValue,\n isSidebarCollapsed,\n isAsideHidden,\n scroll: computed(() => props.scroll),\n});\n\nconst slots = useSlots();\n\n/** Whether the rendered children include an `AppShellSidebar`, looking through fragments and `v-for` lists. */\nfunction hasSidebar(nodes: ReadonlyArray<unknown>): boolean {\n return nodes.some((node) => {\n const vnode = node as VNode;\n if ((vnode?.type as { name?: string } | undefined)?.name === 'AppShellSidebar') return true;\n return vnode?.type === Fragment && Array.isArray(vnode.children) && hasSidebar(vnode.children);\n });\n}\n\n/* Read while rendering (the grid style is a render dependency), so the slot call is tracked and warning-free,\n and the server renders the same grid the client hydrates. */\nconst navigation = computed<AppShellNavigation>(\n () =>\n props.navigation ??\n (hasSidebar(slots.default?.() ?? []) ? AppShellNavigation.Vertical : AppShellNavigation.Horizontal),\n);\n\n/**\n * Collapsed drops the sidebar track entirely; header and footer always span the full width. The content column is\n * `minmax(0, 1fr)`: a bare `1fr` keeps an `auto` minimum, so a wide header nav or table would widen the whole shell.\n */\nconst gridTemplate = computed(() =>\n isSidebarCollapsed.value || navigation.value === AppShellNavigation.Horizontal\n ? `'header' auto 'main' 1fr 'footer' auto / minmax(0, 1fr)`\n : `'header header' auto 'sidebar main' 1fr 'sidebar footer' auto / ${props.sidebarWidth} minmax(0, 1fr)`,\n);\n\n/* A region shell owns the viewport: its rows fill the window exactly and only the main region scrolls. */\nconst classes = computed(() =>\n cn(\n 'grid bg-background text-foreground',\n props.scroll === AppShellScroll.Region ? 'h-dvh overflow-hidden' : 'min-h-svh',\n attrs.class as string | undefined,\n ),\n);\n\n/** `gridTemplate` is normalized first so a caller's `style` still wins per-property. */\nconst rootStyle = computed(() => normalizeStyle([{ gridTemplate: gridTemplate.value }, attrs.style]));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :style=\"rootStyle\" :class=\"classes\">\n <a\n href=\"#app-shell-main\"\n class=\"sr-only focus:not-sr-only focus:fixed focus:left-2 focus:top-2 focus:z-modal focus:rounded-md focus:bg-card focus:px-3 focus:py-2 focus:shadow\"\n >\n {{ locale.t('AppShell.skipToContent', undefined, 'Skip to content') }}\n </a>\n <slot />\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { NavbarVariant } from '../navbar/Navbar.variants';\n\n/** Defines the height of an `AppShellHeader`. */\nexport const AppShellHeaderHeight = {\n /** Refers to a compact 3rem bar. */\n Sm: 'sm',\n /** Refers to the default 3.5rem bar. */\n Md: 'md',\n /** Refers to a tall 4rem bar. */\n Lg: 'lg',\n /** Refers to a bar that grows with wrapping content from the default height. */\n Auto: 'auto',\n} as const;\n\nexport type AppShellHeaderHeight = (typeof AppShellHeaderHeight)[keyof typeof AppShellHeaderHeight];\n\nconst HeightClass: Record<AppShellHeaderHeight, string> = {\n sm: 'h-12',\n md: 'h-14',\n lg: 'h-16',\n auto: 'min-h-14 flex-wrap py-2',\n};\n\n/** Represents the prop surface of `AppShellHeader`. */\nexport interface AppShellHeaderProps {\n /** The bar height. Default `md`; `auto` lets wrapped content grow the bar. */\n readonly height?: AppShellHeaderHeight;\n\n /**\n * The surface: `solid` (the theme's card fill, default), `glass` (that fill translucent and blurred, opaque where\n * blur or transparency is unavailable or reduced) or `transparent`.\n */\n readonly variant?: NavbarVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { NavbarSurfaceClass } from '../navbar/Navbar.variants';\nimport { bannerHostKey } from '../navbar/NavbarContext';\n\n/**\n * Renders the shell's sticky top bar into the `header` grid area. It is the page's banner, so a `Navbar` inside renders\n * a plain row rather than a second banner.\n */\ndefineOptions({ name: 'AppShellHeader', inheritAttrs: false });\n\n/** The header content — React's `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst props = withDefaults(defineProps<AppShellHeaderProps>(), { height: 'md', variant: 'solid' });\n\nprovide(bannerHostKey, true);\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'sticky top-0 z-sticky flex items-center gap-3 border-b border-border px-4 [grid-area:header]',\n HeightClass[props.height],\n NavbarSurfaceClass[props.variant],\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <header ref=\"el\" role=\"banner\" v-bind=\"rest\" :class=\"classes\"><slot /></header>\n</template>\n","<script lang=\"ts\">\nimport type { NavbarVariant } from '../navbar/Navbar.variants';\nimport type { Breakpoint } from './AppShell.vue';\n\n/** Represents the prop surface of `AppShellSidebar`; other attributes reach the `aside`. */\nexport interface AppShellSidebarProps {\n /**\n * The surface: `solid` (the theme's card fill, default), `glass` (the theme's sidebar glass, opaque where blur or\n * transparency is unavailable or reduced; the drawer below the breakpoint takes the menu glass) or `transparent`.\n */\n readonly variant?: NavbarVariant;\n}\n\n// Complete class strings per breakpoint — Tailwind can't see interpolated names.\nconst SidebarStaticClasses: Record<Breakpoint, string> = {\n sm: 'hidden sm:flex',\n md: 'hidden md:flex',\n lg: 'hidden lg:flex',\n xl: 'hidden xl:flex',\n '2xl': 'hidden 2xl:flex',\n};\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn, SurfaceVariant } from '../../../foundation/styles';\nimport { NavbarVariant as NavbarVariantToken, SidebarSurfaceClass } from '../navbar/Navbar.variants';\nimport Drawer from '../../overlays/drawer/Drawer.vue';\nimport DrawerContent from '../../overlays/drawer/DrawerContent.vue';\nimport { AppShellScroll, useAppShellContext } from './AppShell.vue';\n\n/**\n * Renders the side navigation rail — the `sidebar` grid area above\n * `sidebarBreakpoint`, a left-edge `Drawer` below it. The collapsed branch takes\n * only `class` (onto the `nav`), exactly as React's did; the rest of the attrs\n * belong to the `aside` that branch does not render.\n */\ndefineOptions({ name: 'AppShellSidebar', inheritAttrs: false });\n\n/** The navigation content — React's `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst props = withDefaults(defineProps<AppShellSidebarProps>(), { variant: 'solid' });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\nconst context = useAppShellContext();\n\n/* Refs lifted to setup consts so the template auto-unwraps them (a plain injected object does not). */\nconst isCollapsed = context.isSidebarCollapsed;\nconst isSidebarOpen = context.isSidebarOpen;\n\nconst asideClasses = computed(() =>\n cn(\n 'overflow-y-auto border-r border-border [grid-area:sidebar]',\n SidebarSurfaceClass[props.variant],\n context.scroll.value === AppShellScroll.Region ? 'min-h-0' : 'sticky top-14 h-[calc(100svh-3.5rem)]',\n SidebarStaticClasses[context.sidebarBreakpoint.value],\n attrs.class as string | undefined,\n ),\n);\n\nconst navClasses = computed(() => cn('flex h-full flex-col', attrs.class as string | undefined));\n\n/* A glass sidebar's drawer floats over the page like a menu, so it takes the menu strength. */\nconst drawerVariant = computed(() =>\n props.variant === NavbarVariantToken.Glass ? SurfaceVariant.GlassMenu : undefined,\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** `null` in the collapsed branch — there is no `aside` then, as there was none in React. */\ndefineExpose({ el });\n</script>\n\n<template>\n <Drawer v-if=\"isCollapsed\" :open=\"isSidebarOpen\" side=\"left\" @update:open=\"context.setSidebarOpen\">\n <DrawerContent class=\"w-72 max-w-[80%]\" :variant=\"drawerVariant\">\n <nav :class=\"navClasses\"><slot /></nav>\n </DrawerContent>\n </Drawer>\n\n <aside v-else ref=\"el\" v-bind=\"rest\" :class=\"asideClasses\">\n <nav class=\"flex h-full w-full flex-col p-3\"><slot /></nav>\n </aside>\n</template>\n","<script lang=\"ts\">\n/**\n * The prop surface of `AppShellMain`.\n *\n * React declared `HTMLAttributes<HTMLElement>`; attributes reach the root\n * through `useAttrs` here and `children` is the default slot.\n */\nexport interface AppShellMainProps {\n /**\n * Fades the scrollbar thumb while the region is idle and brings it back on hover and while it scrolls. The\n * track keeps its space, so the layout never shifts. Only a region shell's main scrolls, so it has no effect\n * in a `document` shell.\n * @default false\n */\n readonly hasAutoHideScrollbar?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, inject, useAttrs, useTemplateRef } from 'vue';\nimport { ScrollRegionAttribute, useScrollActivity } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { appShellContextKey, AppShellScroll } from './AppShell.vue';\n\n/**\n * Renders the primary column into the `main` grid area — also the skip-link's target.\n *\n * `id` and `tabindex` are bound before `v-bind=\"rest\"` so a caller-supplied\n * value still wins, matching React's attribute-then-spread order.\n */\ndefineOptions({ name: 'AppShellMain', inheritAttrs: false });\n\n/** The page content — React's `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst props = withDefaults(defineProps<AppShellMainProps>(), { hasAutoHideScrollbar: false });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\n/* Optional: a main region rendered outside a shell keeps the document's scrolling. */\nconst context = inject(appShellContextKey, null);\n\nconst isRegion = computed(() => context?.scroll.value === AppShellScroll.Region);\n\nconst isAutoHiding = computed(() => isRegion.value && props.hasAutoHideScrollbar);\nuseScrollActivity(el, isAutoHiding);\n\n/* The app router saves, restores and resets a marked region's scroll as it does the window's. */\nconst regionAttrs = computed(() => (isRegion.value ? { [ScrollRegionAttribute]: '' } : {}));\n\n/* In a region shell this is the one scroll container; its gutter is reserved so opening a panel never shifts\n the layout sideways. */\nconst classes = computed(() =>\n cn(\n 'flex flex-col [grid-area:main] focus:outline-hidden',\n isRegion.value && 'min-h-0 overflow-y-auto [scrollbar-gutter:stable]',\n isAutoHiding.value && 'scrollbar-auto-hide',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <main ref=\"el\" id=\"app-shell-main\" tabindex=\"-1\" v-bind=\"{ ...regionAttrs, ...rest }\" :class=\"classes\">\n <slot />\n </main>\n</template>\n","<script lang=\"ts\">\nimport type { SizeValue } from '../../../foundation/styles';\nimport type { ContainerLayoutSize } from '../containerLayout/ContainerLayout.variants';\n\n/** Defines the padding step around `AppShellContent`. */\nexport const AppShellContentGutter = {\n /** Refers to no padding — the content runs to the region's edges. */\n None: 'none',\n /** Refers to a 1rem gutter. */\n Sm: 'sm',\n /** Refers to the default 1.5rem gutter. */\n Md: 'md',\n /** Refers to a gutter that widens with the viewport, from 1rem to 2rem. */\n Lg: 'lg',\n} as const;\n\nexport type AppShellContentGutter = (typeof AppShellContentGutter)[keyof typeof AppShellContentGutter];\n\nconst GutterClass: Record<AppShellContentGutter, string> = {\n none: 'p-0',\n sm: 'p-4',\n md: 'p-6',\n lg: 'px-4 py-6 sm:px-6 lg:px-8 lg:py-8',\n};\n\nconst MaxWidthClass: Record<ContainerLayoutSize, string> = {\n sm: 'max-w-screen-sm',\n md: 'max-w-screen-md',\n lg: 'max-w-screen-lg',\n xl: 'max-w-screen-xl',\n '2xl': 'max-w-screen-2xl',\n full: 'max-w-full',\n};\n\n/** Represents the prop surface of `AppShellContent`. */\nexport interface AppShellContentProps {\n /** The padding around the content. Default `md`. */\n readonly gutter?: AppShellContentGutter;\n\n /**\n * Caps the content's width and centers it: a `ContainerLayoutSize` step or any CSS length (number = px).\n * Default none — the content spans the region.\n */\n readonly maxWidth?: ContainerLayoutSize | SizeValue;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn, CssExtensions } from '../../../foundation/styles';\n\n/** Renders the scrolling region inside `AppShellMain` — header, sidebar and footer stay put. */\ndefineOptions({ name: 'AppShellContent', inheritAttrs: false });\n\n/** The scrolling content — React's `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst props = withDefaults(defineProps<AppShellContentProps>(), { gutter: 'md', maxWidth: undefined });\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\n/* The main region (or the document) owns scrolling, so content never nests a second scroll container. */\nconst classes = computed(() => cn('flex-1', GutterClass[props.gutter], attrs.class as string | undefined));\n\nconst stepClass = computed(() =>\n typeof props.maxWidth === 'string' && props.maxWidth in MaxWidthClass\n ? MaxWidthClass[props.maxWidth as ContainerLayoutSize]\n : undefined,\n);\n\nconst containerClass = computed(() => cn('mx-auto w-full', stepClass.value));\n\nconst containerStyle = computed(() =>\n props.maxWidth === undefined || stepClass.value ? undefined : { maxWidth: CssExtensions.toCss(props.maxWidth) },\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div v-if=\"props.maxWidth !== undefined\" :class=\"containerClass\" :style=\"containerStyle\" data-content-container>\n <slot />\n </div>\n <slot v-else />\n </div>\n</template>\n","<script lang=\"ts\">\n/**\n * The prop surface of `AppShellAside`.\n *\n * React declared `HTMLAttributes<HTMLElement>`; attributes reach the root\n * through `useAttrs` here and `children` is the default slot, which leaves no\n * declared prop.\n */\nexport type AppShellAsideProps = Record<string, never>;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, normalizeStyle, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { AppShellScroll, useAppShellContext } from './AppShell.vue';\n\n/** Renders the right-hand rail inside `AppShellMain`, and nothing at all below `asideBreakpoint`. */\ndefineOptions({ name: 'AppShellAside', inheritAttrs: false });\n\n/** The rail content — React's `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\nconst context = useAppShellContext();\n\n/* Ref lifted to a setup const so the template auto-unwraps it (a plain injected object does not). */\nconst isHidden = context.isAsideHidden;\n\nconst classes = computed(() =>\n cn(\n 'sticky shrink-0 overflow-y-auto border-l border-border bg-card p-4',\n /* In a region shell the main region scrolls under no header, so the rail pins to its top edge. */\n context.scroll.value === AppShellScroll.Region ? 'top-0 max-h-full' : 'top-14 h-[calc(100svh-3.5rem)]',\n attrs.class as string | undefined,\n ),\n);\n\n/** The width is normalized first so a caller's `style` still wins per-property. */\nconst asideStyle = computed(() => normalizeStyle([{ width: context.asideWidth.value }, attrs.style]));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <aside v-if=\"!isHidden\" ref=\"el\" v-bind=\"rest\" :style=\"asideStyle\" :class=\"classes\">\n <slot />\n </aside>\n</template>\n","<script lang=\"ts\">\n/**\n * The prop surface of `AppShellFooter`.\n *\n * React declared `HTMLAttributes<HTMLElement>`; attributes reach the root\n * through `useAttrs` here and `children` is the default slot, which leaves no\n * declared prop.\n */\nexport type AppShellFooterProps = Record<string, never>;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/** Renders the shell's bottom bar into the `footer` grid area. */\ndefineOptions({ name: 'AppShellFooter', inheritAttrs: false });\n\n/** The footer content — React's `children`. */\ndefineSlots<{ default?(): unknown }>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'border-t border-border bg-card px-4 py-3 text-sm text-muted-foreground [grid-area:footer]',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <footer ref=\"el\" role=\"contentinfo\" v-bind=\"rest\" :class=\"classes\"><slot /></footer>\n</template>\n","<script lang=\"ts\">\n/** Represents the prop surface of `PageHeaderActions` — content only. */\nexport type PageHeaderActionsProps = Record<string, never>;\n</script>\n\n<script setup lang=\"ts\">\nimport { usePageHeaderOutlet } from './PageHeaderOutlet';\n\n/**\n * Places a page's primary actions in the app's `PageHeader`, wherever the page renders. Without a mounted header\n * the actions render in place.\n */\ndefineOptions({ name: 'PageHeaderActions' });\n\n/** The actions — usually buttons. */\ndefineSlots<{ default(): unknown }>();\n\nconst outlet = usePageHeaderOutlet();\n</script>\n\n<template>\n <Teleport :to=\"outlet ?? 'body'\" :disabled=\"!outlet\"><slot /></Teleport>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the internal visibility-gating mode of an `AnchorLayout`. */\nexport const AnchorLayoutVisibilityMode = {\n /** Refers to an always-visible overlay. */\n Always: 'always',\n /** Refers to reveal-on-hover (or focus-within) gating. */\n Hover: 'hover',\n /** Refers to reveal-on-focus-within gating. */\n FocusWithin: 'focus-within',\n /** Refers to mount/unmount gating driven by presence data-state. */\n Presence: 'presence',\n} as const;\n\nexport type AnchorLayoutVisibilityMode = (typeof AnchorLayoutVisibilityMode)[keyof typeof AnchorLayoutVisibilityMode];\n\n/** Defines the show/hide animation effect of an `AnchorLayout`. */\nexport const AnchorLayoutTransition = {\n /** Refers to no transition. */\n None: 'none',\n /** Refers to an opacity fade. */\n Fade: 'fade',\n /** Refers to a fade combined with a scale. */\n FadeScale: 'fade-scale',\n /** Refers to a fade combined with an upward slide. */\n FadeSlideUp: 'fade-slide-up',\n /** Refers to a fade combined with a downward slide. */\n FadeSlideDown: 'fade-slide-down',\n /** Refers to a fade combined with a leftward slide. */\n FadeSlideLeft: 'fade-slide-left',\n /** Refers to a fade combined with a rightward slide. */\n FadeSlideRight: 'fade-slide-right',\n} as const;\n\nexport type AnchorLayoutTransition = (typeof AnchorLayoutTransition)[keyof typeof AnchorLayoutTransition];\n\n/* AnchorLayout positioning + visibility + transition surface — see AnchorLayout.standard.md + AnchorLayout.spec.md. */\nexport const overlayVariants = tv({\n base: 'absolute',\n variants: {\n position: {\n 'top-right': 'top-[var(--ui-overlay-inset,0.5rem)] right-[var(--ui-overlay-inset,0.5rem)]',\n 'top-left': 'top-[var(--ui-overlay-inset,0.5rem)] left-[var(--ui-overlay-inset,0.5rem)]',\n 'bottom-right': 'bottom-[var(--ui-overlay-inset,0.5rem)] right-[var(--ui-overlay-inset,0.5rem)]',\n 'bottom-left': 'bottom-[var(--ui-overlay-inset,0.5rem)] left-[var(--ui-overlay-inset,0.5rem)]',\n top: 'top-[var(--ui-overlay-inset,0.5rem)] left-1/2 -translate-x-1/2',\n bottom: 'bottom-[var(--ui-overlay-inset,0.5rem)] left-1/2 -translate-x-1/2',\n left: 'left-[var(--ui-overlay-inset,0.5rem)] top-1/2 -translate-y-1/2',\n right: 'right-[var(--ui-overlay-inset,0.5rem)] top-1/2 -translate-y-1/2',\n center: 'top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2',\n custom: '', // consumer passed inset object — positioning via inline style\n },\n visibilityMode: {\n always: '',\n hover:\n 'opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 group-hover:[transition-duration:var(--ui-overlay-enter,200ms)] group-focus-within:[transition-duration:var(--ui-overlay-enter,200ms)]',\n 'focus-within':\n 'opacity-0 group-focus-within:opacity-100 group-focus-within:[transition-duration:var(--ui-overlay-enter,200ms)]',\n presence: 'data-[state=closed]:opacity-0 data-[state=open]:[transition-duration:var(--ui-overlay-enter,200ms)]',\n },\n transition: {\n none: '',\n fade: 'transition-opacity duration-[var(--ui-overlay-exit,200ms)] ease-out',\n 'fade-scale': 'transition-[opacity,transform] duration-[var(--ui-overlay-exit,200ms)] ease-out',\n 'fade-slide-up': 'transition-[opacity,transform] duration-[var(--ui-overlay-exit,200ms)] ease-out',\n 'fade-slide-down': 'transition-[opacity,transform] duration-[var(--ui-overlay-exit,200ms)] ease-out',\n 'fade-slide-left': 'transition-[opacity,transform] duration-[var(--ui-overlay-exit,200ms)] ease-out',\n 'fade-slide-right': 'transition-[opacity,transform] duration-[var(--ui-overlay-exit,200ms)] ease-out',\n },\n },\n compoundVariants: [\n // === HOVER mode + transform-bearing transitions ===\n {\n visibilityMode: 'hover',\n transition: 'fade-scale',\n class:\n 'scale-95 group-hover:scale-100 group-focus-within:scale-100 ' +\n 'motion-reduce:scale-100 motion-reduce:group-hover:scale-100 motion-reduce:group-focus-within:scale-100',\n },\n {\n visibilityMode: 'hover',\n transition: 'fade-slide-up',\n class:\n 'translate-y-1 group-hover:translate-y-0 group-focus-within:translate-y-0 ' +\n 'motion-reduce:translate-y-0 motion-reduce:group-hover:translate-y-0 motion-reduce:group-focus-within:translate-y-0',\n },\n {\n visibilityMode: 'hover',\n transition: 'fade-slide-down',\n class:\n '-translate-y-1 group-hover:translate-y-0 group-focus-within:translate-y-0 ' +\n 'motion-reduce:translate-y-0 motion-reduce:group-hover:translate-y-0 motion-reduce:group-focus-within:translate-y-0',\n },\n {\n visibilityMode: 'hover',\n transition: 'fade-slide-left',\n class:\n 'translate-x-1 group-hover:translate-x-0 group-focus-within:translate-x-0 ' +\n 'motion-reduce:translate-x-0 motion-reduce:group-hover:translate-x-0 motion-reduce:group-focus-within:translate-x-0',\n },\n {\n visibilityMode: 'hover',\n transition: 'fade-slide-right',\n class:\n '-translate-x-1 group-hover:translate-x-0 group-focus-within:translate-x-0 ' +\n 'motion-reduce:translate-x-0 motion-reduce:group-hover:translate-x-0 motion-reduce:group-focus-within:translate-x-0',\n },\n\n // === FOCUS-WITHIN mode + transform-bearing transitions ===\n {\n visibilityMode: 'focus-within',\n transition: 'fade-scale',\n class: 'scale-95 group-focus-within:scale-100 motion-reduce:scale-100 motion-reduce:group-focus-within:scale-100',\n },\n {\n visibilityMode: 'focus-within',\n transition: 'fade-slide-up',\n class:\n 'translate-y-1 group-focus-within:translate-y-0 motion-reduce:translate-y-0 motion-reduce:group-focus-within:translate-y-0',\n },\n {\n visibilityMode: 'focus-within',\n transition: 'fade-slide-down',\n class:\n '-translate-y-1 group-focus-within:translate-y-0 motion-reduce:translate-y-0 motion-reduce:group-focus-within:translate-y-0',\n },\n {\n visibilityMode: 'focus-within',\n transition: 'fade-slide-left',\n class:\n 'translate-x-1 group-focus-within:translate-x-0 motion-reduce:translate-x-0 motion-reduce:group-focus-within:translate-x-0',\n },\n {\n visibilityMode: 'focus-within',\n transition: 'fade-slide-right',\n class:\n '-translate-x-1 group-focus-within:translate-x-0 motion-reduce:translate-x-0 motion-reduce:group-focus-within:translate-x-0',\n },\n\n // === PRESENCE mode (data-state-driven) + transform-bearing transitions ===\n {\n visibilityMode: 'presence',\n transition: 'fade-scale',\n class: 'data-[state=closed]:scale-95 motion-reduce:data-[state=closed]:scale-100',\n },\n {\n visibilityMode: 'presence',\n transition: 'fade-slide-up',\n class: 'data-[state=closed]:translate-y-1 motion-reduce:data-[state=closed]:translate-y-0',\n },\n {\n visibilityMode: 'presence',\n transition: 'fade-slide-down',\n class: 'data-[state=closed]:-translate-y-1 motion-reduce:data-[state=closed]:translate-y-0',\n },\n {\n visibilityMode: 'presence',\n transition: 'fade-slide-left',\n class: 'data-[state=closed]:translate-x-1 motion-reduce:data-[state=closed]:translate-x-0',\n },\n {\n visibilityMode: 'presence',\n transition: 'fade-slide-right',\n class: 'data-[state=closed]:-translate-x-1 motion-reduce:data-[state=closed]:translate-x-0',\n },\n ],\n defaultVariants: {\n position: 'top-right',\n visibilityMode: 'always',\n transition: 'none',\n },\n});\n\nexport type AnchorLayoutVariants = VariantProps<typeof overlayVariants>;\n\n/* Compile-time lock: enum values ≡ tv variant keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertOverlayVisibilityMode: AssertExact<\n AnchorLayoutVisibilityMode,\n NonNullable<VariantProps<typeof overlayVariants>['visibilityMode']>\n> = true;\nconst _assertOverlayTransition: AssertExact<\n AnchorLayoutTransition,\n NonNullable<VariantProps<typeof overlayVariants>['transition']>\n> = true;\nvoid _assertOverlayVisibilityMode;\nvoid _assertOverlayTransition;\n","<script lang=\"ts\">\nimport type { AbsolutePosition, SizeValue } from '../../../foundation/styles';\nimport type { PresenceAnimationDurationProp } from '../../../foundation/animation';\nimport { AnchorLayoutTransition } from './AnchorLayout.variants';\n\n/* Re-exported for ergonomic consumer imports — same shape as the shared types. */\nexport type OverlayPosition = AbsolutePosition;\n\n/** Defines the visibility trigger of an `AnchorLayout` while mounted. */\nexport const AnchorLayoutAppearOn = {\n /** Refers to an always-visible overlay. */\n Always: 'always',\n /** Refers to reveal-on-hover (and focus-within). */\n Hover: 'hover',\n /** Refers to reveal-on-focus-within. */\n FocusWithin: 'focus-within',\n} as const;\n\nexport type AnchorLayoutAppearOn = (typeof AnchorLayoutAppearOn)[keyof typeof AnchorLayoutAppearOn];\n\nexport { AnchorLayoutTransition };\nexport type AnchorLayoutDuration = PresenceAnimationDurationProp;\n\n/**\n * The prop surface of `AnchorLayout`.\n *\n * `class` / `style` are attrs, not props, and so are absent here. `AnchorLayout`\n * consumes only those two attrs — no other attribute is forwarded, by design\n * (`AnchorLayout.standard.md` rule 10: it never sets `role` / `aria-*`; the child\n * carries its own semantics).\n */\nexport interface AnchorLayoutProps {\n /** The anchor location — preset corner/edge/center, or raw inset object. Default 'top-right'. */\n readonly position?: OverlayPosition;\n\n /** The spacing from edge for preset positions. Default '0.5rem'. Ignored for custom inset object. */\n readonly inset?: SizeValue;\n\n /** The z-index. Default 10. */\n readonly zIndex?: number | string;\n\n /** The visibility trigger while mounted. Default 'always'. Hover/focus-within modes need parent `class=\"group\"`. */\n readonly appearOn?: AnchorLayoutAppearOn;\n\n /** The presence — controls mount/unmount with an exit transition, deferring unmount until transitionend. */\n readonly isOpen?: boolean;\n\n /** The animation effect for show/hide. Defaults to 'fade' if any visibility gating is active, else 'none'. */\n readonly transition?: AnchorLayoutTransition;\n\n /** The duration in ms. Number = symmetric; object = asymmetric enter/exit. Default 200. */\n readonly transitionDuration?: AnchorLayoutDuration;\n\n /** The CSS timing function. Default 'ease-out'. */\n readonly transitionEasing?: string;\n\n /** The single-child merge via `Primitive` (no extra wrapper div). Default true. */\n readonly asChild?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, normalizeStyle, useAttrs } from 'vue';\nimport {\n cn,\n CssExtensions,\n type AbsoluteInsetOverrides,\n type AbsolutePositionPreset,\n} from '../../../foundation/styles';\nimport { TransitionExtensions } from '../../../foundation/animation';\nimport { Presence, Primitive } from '../../../foundation/primitives';\nimport { overlayVariants, AnchorLayoutVisibilityMode } from './AnchorLayout.variants';\n\n/**\n * Renders a positioned overlay anchored to its nearest positioned ancestor — for image-corner\n * controls, badges, hover-revealed actions, and conditionally mounted floating elements.\n */\ndefineOptions({ name: 'AnchorLayout', inheritAttrs: false });\n\n/** The content — a single element when `asChild` (default), or arbitrary content otherwise. */\ndefineSlots<{ default(): unknown }>();\n\n/**\n * `isOpen: undefined` is load-bearing, not noise: Vue casts an absent `Boolean`\n * prop to `false` unless the declaration *owns* a `default` key, which would make\n * `isOpen !== undefined` always true and force every overlay into presence mode.\n * Declaring the default as `undefined` keeps the three states — absent / `true` / `false`.\n */\nconst props = withDefaults(defineProps<AnchorLayoutProps>(), {\n position: 'top-right',\n zIndex: 10,\n appearOn: AnchorLayoutAppearOn.Always,\n asChild: true,\n isOpen: undefined,\n transition: undefined,\n transitionDuration: undefined,\n transitionEasing: undefined,\n inset: undefined,\n});\n\nconst attrs = useAttrs();\n\nconst isPresenceMode = computed(() => props.isOpen !== undefined);\nconst isCustomPosition = computed(() => typeof props.position === 'object' && props.position !== null);\n\nconst effectiveTransition = computed<AnchorLayoutTransition>(\n () =>\n props.transition ??\n (isPresenceMode.value || props.appearOn !== AnchorLayoutAppearOn.Always\n ? AnchorLayoutTransition.Fade\n : AnchorLayoutTransition.None),\n);\n\nconst visibilityMode = computed<AnchorLayoutVisibilityMode>(() =>\n isPresenceMode.value\n ? AnchorLayoutVisibilityMode.Presence\n : props.appearOn === AnchorLayoutAppearOn.Hover\n ? AnchorLayoutVisibilityMode.Hover\n : props.appearOn === AnchorLayoutAppearOn.FocusWithin\n ? AnchorLayoutVisibilityMode.FocusWithin\n : AnchorLayoutVisibilityMode.Always,\n);\n\nconst classes = computed(() =>\n cn(\n overlayVariants({\n position: isCustomPosition.value ? 'custom' : (props.position as AbsolutePositionPreset),\n visibilityMode: visibilityMode.value,\n transition: effectiveTransition.value,\n }),\n attrs.class as string | undefined,\n ),\n);\n\n/**\n * A caller's `style` is normalized FIRST so the computed declarations below win.\n */\nconst inlineStyle = computed(() => {\n const { enter, exit } = TransitionExtensions.resolveDuration(props.transitionDuration);\n\n const own: Record<string, string | number> = {\n zIndex: props.zIndex,\n // CSS vars consumed by tailwind variants — exit is the baseline\n // transition-duration; enter overrides it on hover / focus-within / isOpen.\n '--ui-overlay-enter': `${enter}ms`,\n '--ui-overlay-exit': `${exit}ms`,\n };\n\n if (props.inset !== undefined) {\n own['--ui-overlay-inset'] = CssExtensions.toCss(props.inset);\n }\n\n if (props.transitionEasing) {\n own.transitionTimingFunction = props.transitionEasing;\n }\n\n if (isCustomPosition.value) {\n const p = props.position as AbsoluteInsetOverrides;\n if (p.top !== undefined) own.top = CssExtensions.toCss(p.top);\n if (p.right !== undefined) own.right = CssExtensions.toCss(p.right);\n if (p.bottom !== undefined) own.bottom = CssExtensions.toCss(p.bottom);\n if (p.left !== undefined) own.left = CssExtensions.toCss(p.left);\n }\n\n return normalizeStyle([attrs.style, own]);\n});\n</script>\n\n<template>\n <!-- Presence clones the single child vnode to drive `data-state` + deferred unmount. -->\n <Presence v-if=\"isPresenceMode\" :is-present=\"props.isOpen === true\">\n <Primitive as=\"div\" :as-child=\"props.asChild\" :class=\"classes\" :style=\"inlineStyle\">\n <slot />\n </Primitive>\n </Presence>\n\n <Primitive v-else as=\"div\" :as-child=\"props.asChild\" :class=\"classes\" :style=\"inlineStyle\">\n <slot />\n </Primitive>\n</template>\n","<script lang=\"ts\">\nimport type { ElementType } from '../../../foundation/dom';\nimport type {\n SurfaceElevation,\n SurfacePadding,\n SurfaceRadius,\n SurfaceTone,\n SurfaceVariant,\n} from '../../../foundation/styles';\n\n/**\n * Represents the prop surface of the `SurfaceLayout` atom.\n *\n * React declared these by `extends SurfaceLayoutVariants`; spelled out here because\n * `defineProps<T>()` needs a type the SFC compiler can resolve to a runtime\n * declaration, and `VariantProps<typeof surfaceVariants>` is opaque to it.\n */\nexport interface SurfaceLayoutProps {\n /** The HTML element to render; defaults to `div`. */\n readonly as?: ElementType;\n /** The merge of styles onto the immediate child instead of rendering a wrapper. */\n readonly asChild?: boolean;\n /**\n * The visual recipe — solid · soft · surface · outline · glass · glass-outline · glass-side · glass-menu ·\n * elevated · flat · subtle.\n */\n readonly variant?: SurfaceVariant;\n /** The color tone the recipe is tinted with. */\n readonly tone?: SurfaceTone;\n /** The corner rounding. */\n readonly radius?: SurfaceRadius;\n /** The inner spacing step. */\n readonly padding?: SurfacePadding;\n /** The shadow depth. */\n readonly elevation?: SurfaceElevation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { resolveElement } from '../../../foundation/dom';\nimport { computed, useAttrs, useTemplateRef, type ComponentPublicInstance } from 'vue';\nimport { Primitive } from '../../../foundation/primitives';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\n\n/**\n * Renders a styled visual surface composed from the `surfaceVariants` matrix.\n *\n * React branched between `Slot` (when `asChild`) and the `as` element. `Primitive`\n * carries both, so one element covers the pair: `asChild` collapses into the single\n * slot child, otherwise `as` renders.\n */\ndefineOptions({ name: 'SurfaceLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SurfaceLayoutProps>(), { as: 'div', asChild: false });\n\ndefineSlots<{\n /** The content rendered on the surface. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst inner = useTemplateRef<ComponentPublicInstance>('inner');\n\nconst classes = computed(() =>\n cn(\n surfaceVariants({\n variant: props.variant,\n tone: props.tone,\n radius: props.radius,\n padding: props.padding,\n elevation: props.elevation,\n }),\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** `Primitive` renders the real element, so its `$el` is this component's root. */\nconst el = computed(() => resolveElement(inner.value));\n\ndefineExpose({ el });\n</script>\n\n<template>\n <Primitive ref=\"inner\" :as=\"props.as\" :as-child=\"props.asChild\" v-bind=\"rest\" :class=\"classes\">\n <slot />\n </Primitive>\n</template>\n","import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the vertical-padding scale of the `Section` band. */\nexport const SectionPaddingY = {\n /** Refers to no vertical padding. */\n None: 'none',\n /** Refers to a small vertical rhythm. */\n Sm: 'sm',\n /** Refers to a medium vertical rhythm. */\n Md: 'md',\n /** Refers to a large vertical rhythm. */\n Lg: 'lg',\n /** Refers to an extra-large vertical rhythm. */\n Xl: 'xl',\n} as const;\n\nexport type SectionPaddingY = (typeof SectionPaddingY)[keyof typeof SectionPaddingY];\n\n/** Provides the vertical-rhythm (top/bottom padding) scale for the `Section` band. */\nexport const sectionVariants = tv({\n base: 'w-full',\n variants: {\n /* Vertical padding — the band's top/bottom breathing room. */\n py: {\n none: 'py-0',\n sm: 'py-6',\n md: 'py-10',\n lg: 'py-16',\n xl: 'py-24',\n },\n },\n defaultVariants: {\n py: 'md',\n },\n});\n\nexport type SectionVariants = VariantProps<typeof sectionVariants>;\n\n/* Compile-time lock: enum values ≡ tv `py` keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertSectionPaddingY: AssertExact<\n SectionPaddingY,\n NonNullable<VariantProps<typeof sectionVariants>['py']>\n> = true;\nvoid _assertSectionPaddingY;\n","<script lang=\"ts\">\nimport type { SurfaceTone } from '../../../foundation/styles';\nimport type { ContainerLayoutProps } from '../containerLayout';\nimport type { SectionPaddingY } from './Section.variants';\n\nexport interface SectionProps {\n /**\n * The tinted background tone for the band. Applies the shadow-less `subtle`\n * surface treatment (low-alpha tinted fill + `border-border`). Omit for a\n * transparent band (no fill, no border).\n */\n readonly tone?: SurfaceTone;\n\n /** The max-width of the inner centered `ContainerLayout`. Passthrough to `ContainerLayout.size`. Default `lg`. */\n readonly containerSize?: ContainerLayoutProps['size'];\n\n /** The vertical padding (the band's top/bottom rhythm). Default `md`. */\n readonly py?: SectionPaddingY;\n\n /** The full-bleed mode — renders a `<section>` with no inner `ContainerLayout` (edge-to-edge content). */\n readonly isFullBleed?: boolean;\n /** @deprecated Use `isFullBleed`; this alias is removed next release. */\n readonly bleed?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport ContainerLayout from '../containerLayout/ContainerLayout.vue';\nimport { sectionVariants } from './Section.variants';\n\n/**\n * Renders a full-bleed `<section>` band with an inner centered `ContainerLayout`. The repetitive\n * marketing \"section band\" pattern: optional tinted (shadow-less) background,\n * passthrough container width, and vertical padding. Pass `isFullBleed` to drop the\n * inner ContainerLayout for edge-to-edge content.\n */\n/* `<section>` is a live HTML element, but SFC templates are case-sensitive\n (`<Section>` ≠ `<section>`) and this is a library component — imported, never\n globally registered. Renaming it would break parity with the React package. */\ndefineOptions({ name: 'Section', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SectionProps>(), { isFullBleed: undefined, bleed: undefined });\n\ndefineSlots<{\n /** The band content — wrapped in a `ContainerLayout` unless `isFullBleed` is set. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n sectionVariants({ py: props.py }),\n props.tone && surfaceVariants({ variant: 'subtle', tone: props.tone, radius: 'none' }),\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <section ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <slot v-if=\"props.isFullBleed ?? props.bleed ?? false\" />\n <ContainerLayout v-else :size=\"props.containerSize\"><slot /></ContainerLayout>\n </section>\n</template>\n","<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { SurfaceTone } from '../../../foundation/styles';\nimport type { ContainerLayoutProps } from '../containerLayout';\nimport type { NavbarElement, NavbarHeight, NavbarOrientation, NavbarVariant } from './Navbar.variants';\n\nexport interface NavbarProps {\n /**\n * The element: `header` (a banner landmark) or `div` (none). Default: `div` inside an `AppShellHeader`, which is\n * already the banner, and `header` elsewhere.\n */\n readonly as?: NavbarElement;\n /** Native attributes forwarded to the inner `ContainerLayout`; its `class` is merged last. */\n readonly containerAttrs?: HTMLAttributes;\n /** Convenience class for the inner `ContainerLayout`, merged after `containerAttrs.class`. */\n readonly containerClass?: HTMLAttributes['class'];\n /** The max-width of the inner centered `ContainerLayout`. Passthrough to `ContainerLayout.size`. Default `lg`. */\n readonly containerSize?: ContainerLayoutProps['size'];\n /** The band height. Default `md`. */\n readonly height?: NavbarHeight;\n /** The sticky pinning of the bar to the top of the scroll container. Default `false` (non-sticky). */\n readonly isSticky?: boolean;\n /** @deprecated Use `isSticky`; this alias is removed next release. */\n readonly sticky?: boolean;\n /**\n * The tinted background tone for the band — applies the shadow-less `subtle`\n * surface treatment. Omit for a transparent bar (relies on `hasBorder` / page bg).\n */\n readonly tone?: SurfaceTone;\n /** The bottom border under the bar. Default `true`. */\n readonly hasBorder?: boolean;\n /** @deprecated Use `hasBorder`; this alias is removed next release. */\n readonly bordered?: boolean;\n /** Which way the bar runs: a full-width top bar or a full-height side rail. Default `horizontal`. */\n readonly orientation?: NavbarOrientation;\n /** The surface: `solid`, `glass` or `transparent`. A `tone` overrides it. Default `solid`. */\n readonly variant?: NavbarVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, inject, provide, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport ContainerLayout from '../containerLayout/ContainerLayout.vue';\nimport {\n NavbarElement as Element,\n NavbarOrientation as Orientation,\n NavbarSurfaceClass,\n navbarVariants,\n} from './Navbar.variants';\nimport { bannerHostKey, navbarContextKey } from './NavbarContext';\n\n/**\n * Renders a lightweight header band (`<header>`) with `start` / `center` / `end` slots\n * laid out in a row inside a centered `ContainerLayout`. The everyday \"navbar +\n * centered content\" need that `AppShell` (a 5-slot dashboard grid w/ sidebar)\n * overshoots. Non-sticky by default; pass `isSticky` to pin it.\n *\n * Inside an `AppShellHeader` it renders a plain row filling the bar: the host is the banner and owns the band's\n * height, border and surface, so the bar adds none of its own unless the props ask for them.\n */\ndefineOptions({ name: 'Navbar', inheritAttrs: false });\n\n/** React's `start` / `center` / `end` / `children` ReactNode props are content regions — slots in Vue. */\ndefineSlots<{\n /** The leading slot — laid out at the start of the row (brand / logo / nav links). */\n start?(): unknown;\n /** The centre slot — laid out in the middle of the row (search / primary nav). */\n center?(): unknown;\n /** The trailing slot — laid out at the end of the row (actions / avatar / CTA). */\n end?(): unknown;\n /**\n * The raw row content — replaces the `start` / `center` / `end` slot layout when\n * provided. Use for fully custom bars.\n */\n default?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<NavbarProps>(), {\n as: undefined,\n isSticky: undefined,\n sticky: undefined,\n hasBorder: undefined,\n bordered: undefined,\n orientation: Orientation.Horizontal,\n variant: undefined,\n});\n\nconst isVertical = computed(() => props.orientation === Orientation.Vertical);\n\n/** True inside a host that already is the banner — `AppShellHeader`. */\nconst isHosted = inject(bannerHostKey, false);\n\nconst tag = computed<Element>(() => props.as ?? (isHosted ? Element.Div : Element.Header));\n\nprovide(navbarContextKey, { orientation: computed(() => props.orientation) });\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst el = useTemplateRef<HTMLElement>('el');\n\nconst classes = computed(() =>\n cn(\n navbarVariants({\n orientation: props.orientation,\n sticky: props.isSticky ?? props.sticky ?? false,\n height: props.height,\n }),\n /* A hosted bar fills the host's row at the host's height. */\n isHosted && 'min-w-0 flex-1 self-stretch',\n isHosted && props.height === undefined && 'h-auto',\n (props.hasBorder ?? props.bordered ?? !isHosted) &&\n (isVertical.value ? 'border-e border-border' : 'border-b border-border'),\n props.tone\n ? surfaceVariants({ variant: 'subtle', tone: props.tone, radius: 'none' })\n : NavbarSurfaceClass[props.variant ?? (isHosted ? 'transparent' : 'solid')],\n attrs.class as string | undefined,\n ),\n);\n\n/** Push `end` to the trailing edge when there's no centre slot to absorb the slack. */\nconst endClasses = computed(() => cn('flex min-w-0 items-center gap-3', !slots.center && 'ml-auto'));\n\n/** Inner-container classes with consumer spacing taking precedence. */\nconst containerClasses = computed(() =>\n cn('flex h-full items-center gap-3', props.containerAttrs?.class as string | undefined, props.containerClass),\n);\n\n/** Rail classes: a column from the brand at the top to the account at the foot, consumer spacing last. */\nconst railClasses = computed(() =>\n cn(\n 'flex h-full min-h-0 flex-col items-stretch gap-3 p-3',\n props.containerAttrs?.class as string | undefined,\n props.containerClass,\n ),\n);\n\n/** Inner-container attributes except `class`, which is merged through `cn`. */\nconst containerRest = computed(() => {\n const { class: _class, ...others } = props.containerAttrs ?? {};\n return others;\n});\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component :is=\"tag\" v-if=\"isVertical\" ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <div v-bind=\"containerRest\" :class=\"railClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-h-0 flex-1 flex-col gap-1 overflow-y-auto\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" class=\"mt-auto flex min-w-0 shrink-0 items-center gap-3\">\n <slot name=\"end\" />\n </div>\n </template>\n </div>\n </component>\n <component :is=\"tag\" v-else ref=\"el\" v-bind=\"rest\" :class=\"classes\">\n <ContainerLayout v-bind=\"containerRest\" :size=\"props.containerSize\" :class=\"containerClasses\">\n <slot v-if=\"$slots.default\" />\n <template v-else>\n <div v-if=\"$slots.start\" class=\"flex min-w-0 items-center gap-3\">\n <slot name=\"start\" />\n </div>\n <div v-if=\"$slots.center\" class=\"flex min-w-0 flex-1 items-center justify-center gap-3\">\n <slot name=\"center\" />\n </div>\n <div v-if=\"$slots.end\" :class=\"endClasses\">\n <slot name=\"end\" />\n </div>\n </template>\n </ContainerLayout>\n </component>\n</template>\n","<script lang=\"ts\">\nexport interface InputAddonLayoutProps {\n /** The text rendered to the left of the input (e.g. \"https://\"). Fill the `leading` slot for richer content. */\n readonly leading?: string | number;\n\n /** The text rendered to the right of the input (e.g. \".com\"). Fill the `trailing` slot for richer content. */\n readonly trailing?: string | number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders leading and trailing addons welded to an input's border — protocol prefixes, units, suffixes.\n *\n * Each of React's two `ReactNode` props keeps its scalar form and gains a\n * same-named slot for richer content; the prop stays the discriminator.\n */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'InputAddonLayout', inheritAttrs: false });\n\nconst props = defineProps<InputAddonLayoutProps>();\n\n/** The input element (TextInput, EmailInput, …) — React's `children`. */\ndefineSlots<{\n default(): unknown;\n leading?(): unknown;\n trailing?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\n\nconst hasLeading = computed(() => Boolean(props.leading) || Boolean(slots.leading));\nconst hasTrailing = computed(() => Boolean(props.trailing) || Boolean(slots.trailing));\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex w-full items-stretch rounded-md [&>*]:rounded-none',\n '[&>*:first-child]:rounded-l-md [&>*:last-child]:rounded-r-md',\n '[&>*:not(:first-child)]:-ml-px',\n /* The group is the control, so the focus ring belongs to the group. Past the React\n original, where the ring landed on the input segment alone and the addons read as\n separate boxes hanging off a highlighted middle. The segment's own ring is\n suppressed; it is raised instead so its border paints over its neighbours'. */\n '[&:has(>*:focus-visible)]:ring-2 [&:has(>*:focus-visible)]:ring-ring',\n '[&>*:focus-visible]:z-10 [&>*:focus-visible]:relative [&>*:focus-visible]:ring-0',\n attrs.class as ClassValue,\n ),\n);\n\nconst AddonClass = 'inline-flex shrink-0 items-center border border-input bg-muted px-3 text-sm text-muted-foreground';\n\nconst root = useTemplateRef<HTMLDivElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <div ref=\"root\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <span v-if=\"hasLeading\" :class=\"AddonClass\">\n <slot name=\"leading\">{{ leading }}</slot>\n </span>\n <slot />\n <span v-if=\"hasTrailing\" :class=\"AddonClass\">\n <slot name=\"trailing\">{{ trailing }}</slot>\n </span>\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { Orientation } from '../../../foundation/styles';\n\nexport interface InputGroupProps {\n /** The layout axis. Default `horizontal`. */\n readonly orientation?: Orientation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Orientation as OrientationValue } from '../../../foundation/styles';\n\n/** Renders a row or column of inputs as one connected control, collapsing the radii where they meet. */\n/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\ndefineOptions({ name: 'InputGroup', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<InputGroupProps>(), {\n orientation: OrientationValue.Horizontal,\n});\n\n/** The joined controls — React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst attrs = useAttrs();\n\nconst isHorizontal = computed(() => props.orientation === OrientationValue.Horizontal);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class']);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex w-full rounded-md',\n isHorizontal.value ? 'flex-row' : 'flex-col',\n /* Same contract as `InputAddonLayout`: the joined row is one control, so the ring goes round\n the whole group and the focused segment only rises above its neighbours' borders. */\n '[&:has(>*:focus-visible)]:ring-2 [&:has(>*:focus-visible)]:ring-ring',\n '[&>*:focus-visible]:z-10 [&>*:focus-visible]:relative [&>*:focus-visible]:ring-0',\n isHorizontal.value\n ? '[&>*]:rounded-none [&>*:first-child]:rounded-l-md [&>*:last-child]:rounded-r-md [&>*:not(:first-child)]:-ml-px'\n : '[&>*]:rounded-none [&>*:first-child]:rounded-t-md [&>*:last-child]:rounded-b-md [&>*:not(:first-child)]:-mt-px',\n attrs.class as ClassValue,\n ),\n);\n\nconst root = useTemplateRef<HTMLDivElement>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: root });\n</script>\n\n<template>\n <div ref=\"root\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </div>\n</template>\n","<script lang=\"ts\">\n/* `Orientation` is imported here (not in `<script setup>`) so the one binding\n serves as both the type below and the runtime value used in `withDefaults`. */\nimport { Orientation } from '../../../foundation/styles';\n\nexport interface SeparatorLayoutProps {\n readonly orientation?: Orientation;\n /** The decorative mode — `role=\"none\"`, unannounced. Default `true`; set `false` when meaningful in context. */\n readonly isDecorative?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a hairline divider, horizontal by default or vertical for column splits.\n *\n * A vertical separator needs an explicit height from its flex / grid parent.\n */\ndefineOptions({ name: 'SeparatorLayout', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SeparatorLayoutProps>(), {\n orientation: Orientation.Horizontal,\n isDecorative: true,\n});\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() =>\n cn(\n 'bg-border',\n props.orientation === Orientation.Horizontal ? 'h-px w-full' : 'w-px self-stretch',\n attrs.class as string | undefined,\n ),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div\n ref=\"el\"\n :role=\"props.isDecorative ? 'none' : 'separator'\"\n :aria-orientation=\"props.isDecorative ? undefined : props.orientation\"\n v-bind=\"rest\"\n :class=\"classes\"\n />\n</template>\n","<script lang=\"ts\">\nimport type { ElementTag } from '../../../foundation/dom';\n\nexport interface TiltLayoutProps {\n /** The maximum rotation in degrees at the edges. Default `12`. */\n readonly maxAngle?: number;\n\n /** The px perspective depth. Default `800`. */\n readonly perspective?: number;\n\n /** The cursor-following highlight. */\n readonly hasGlare?: boolean;\n\n /** The scale applied while tilted. Default `1`. */\n readonly scale?: number;\n\n /** The rendered tag. Default `div`. */\n readonly as?: ElementTag;\n}\n\ninterface TiltLayoutState {\n rotateX: number;\n rotateY: number;\n glareX: number;\n glareY: number;\n active: boolean;\n}\n\nconst RestingTilt: TiltLayoutState = { rotateX: 0, rotateY: 0, glareX: 50, glareY: 50, active: false };\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, normalizeStyle, ref, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { useReducedMotion } from '../../../foundation/device';\n\n/**\n * Renders children on a 3D tilt that follows the cursor through `rotateX` / `rotateY`.\n *\n * Disabled under `prefers-reduced-motion`. `hasGlare` paints a cursor-following highlight.\n */\ndefineOptions({ name: 'TiltLayout', inheritAttrs: false });\n\n/** The tilted content. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<TiltLayoutProps>(), {\n maxAngle: 12,\n perspective: 800,\n hasGlare: undefined,\n scale: 1,\n as: 'div',\n});\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLElement>('el');\nconst reducedMotion = useReducedMotion();\n\nconst tilt = ref<TiltLayoutState>({ ...RestingTilt });\n\n/*\n * A caller's `onPointerMove` / `onPointerLeave` stay in the fallthrough bag:\n * Vue's `mergeProps` chains them with the handlers bound below, caller first\n * (`v-bind=\"rest\"` precedes `@pointermove` in the template).\n */\nfunction handleMove(e: PointerEvent): void {\n if (reducedMotion.value) return;\n const node = el.value;\n if (!node) return;\n const rect = node.getBoundingClientRect();\n const x = (e.clientX - rect.left) / rect.width;\n const y = (e.clientY - rect.top) / rect.height;\n tilt.value = {\n rotateX: (0.5 - y) * 2 * props.maxAngle,\n rotateY: (x - 0.5) * 2 * props.maxAngle,\n glareX: x * 100,\n glareY: y * 100,\n active: true,\n };\n}\n\nfunction handleLeave(): void {\n tilt.value = { ...RestingTilt };\n}\n\nconst classes = computed(() => cn('relative', attrs.class as string | undefined));\n\n/**\n * Vue does not append `px` to a numeric `:style` value, so `perspective` is\n * spelled out. `normalizeStyle` merges left → right, so a caller's `style`\n * lands last and wins.\n */\nconst styles = computed(() =>\n normalizeStyle([\n {\n perspective: `${props.perspective}px`,\n transform:\n tilt.value.active && !reducedMotion.value\n ? `rotateX(${tilt.value.rotateX}deg) rotateY(${tilt.value.rotateY}deg) scale(${props.scale})`\n : 'rotateX(0) rotateY(0) scale(1)',\n transition: tilt.value.active ? 'transform 80ms ease-out' : 'transform 220ms ease-out',\n transformStyle: 'preserve-3d',\n },\n attrs.style,\n ]),\n);\n\nconst showGlare = computed(() => Boolean(props.hasGlare) && !reducedMotion.value && tilt.value.active);\n\nconst glareStyle = computed(() => ({\n background: `radial-gradient(circle at ${tilt.value.glareX}% ${tilt.value.glareY}%, rgba(255,255,255,0.35) 0%, transparent 50%)`,\n}));\n\n/** Everything but `class` / `style`, both re-applied above. */\nconst rest = computed(() => {\n const { class: _class, style: _style, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <component\n :is=\"props.as\"\n ref=\"el\"\n v-bind=\"rest\"\n :class=\"classes\"\n :style=\"styles\"\n @pointermove=\"handleMove\"\n @pointerleave=\"handleLeave\"\n >\n <slot />\n <span\n v-if=\"showGlare\"\n aria-hidden=\"true\"\n class=\"pointer-events-none absolute inset-0 rounded-[inherit] mix-blend-overlay\"\n :style=\"glareStyle\"\n />\n </component>\n</template>\n","<script lang=\"ts\">\nexport interface SwipeActionsLayoutProps {\n /** The drag distance (px) the user must exceed before the row snaps open. */\n readonly threshold?: number;\n\n /** The width per action button (px) — used to compute snap distance. */\n readonly actionWidth?: number;\n\n /** The gesture-off flag. */\n readonly isDisabled?: boolean;\n}\n\ntype Side = 'left' | 'right' | null;\n\n/** px of pointer travel beyond which the gesture counts as a drag, not a tap. */\nconst ClickSuppressSlop = 6;\n</script>\n\n<script setup lang=\"ts\">\nimport {\n Comment,\n Fragment,\n Text as TextVNode,\n computed,\n ref,\n useAttrs,\n useSlots,\n useTemplateRef,\n type VNode,\n} from 'vue';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a row that drags left or right to reveal its action slots.\n *\n * Pointer-event based, so touch and mouse both work. Tapping the row body while open closes it.\n */\ndefineOptions({ name: 'SwipeActionsLayout', inheritAttrs: false });\n\ndefineSlots<{\n /** The row body. */\n default(): unknown;\n /** The actions revealed by dragging right. One element per action slot. */\n left?(): unknown;\n /** The actions revealed by dragging left. One element per action slot. */\n right?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<SwipeActionsLayoutProps>(), {\n threshold: 60,\n actionWidth: 72,\n});\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\n/**\n * Number of action slots in a side. The slot's vnodes are counted, flattening\n * fragments so a `v-for` sizes one slot per iteration — the snap width is\n * `slots × actionWidth`.\n */\nfunction countNodes(nodes: ReadonlyArray<VNode> | undefined): number {\n if (!nodes) return 0;\n let count = 0;\n for (const node of nodes) {\n if (node.type === Fragment) {\n count += countNodes(Array.isArray(node.children) ? (node.children as Array<VNode>) : undefined);\n continue;\n }\n // A falsy `v-if` renders a comment placeholder, and condensed whitespace a\n // blank text node — neither is an action.\n if (node.type === Comment) continue;\n if (node.type === TextVNode && typeof node.children === 'string' && !node.children.trim()) {\n continue;\n }\n count += 1;\n }\n return count;\n}\n\n/* Both are first read from the template, i.e. during render — which is what\n keeps the slot call tracked and warning-free. */\nconst leftMax = computed(() => countNodes(slots.left?.()) * props.actionWidth);\nconst rightMax = computed(() => countNodes(slots.right?.()) * props.actionWidth);\n\n/** Reactive: the content transition keys off it. */\nconst startX = ref<number | null>(null);\nconst offset = ref(0);\nconst openSide = ref<Side>(null);\n\n/* Mutable non-render values. */\nlet startOffset = 0;\nlet suppressClick = false;\n\nfunction onPointerDown(e: PointerEvent): void {\n if (props.isDisabled) return;\n startX.value = e.clientX;\n startOffset = offset.value;\n suppressClick = false;\n (e.currentTarget as HTMLDivElement).setPointerCapture(e.pointerId);\n}\n\nfunction onPointerMove(e: PointerEvent): void {\n if (props.isDisabled || startX.value == null) return;\n if (Math.abs(e.clientX - startX.value) > ClickSuppressSlop) {\n suppressClick = true;\n }\n const dx = e.clientX - startX.value + startOffset;\n offset.value = Math.max(-rightMax.value, Math.min(leftMax.value, dx));\n}\n\nfunction onPointerUp(e: PointerEvent): void {\n if (startX.value == null) return;\n startX.value = null;\n (e.currentTarget as HTMLDivElement).releasePointerCapture?.(e.pointerId);\n // Snap.\n if (offset.value > props.threshold && leftMax.value > 0) {\n offset.value = leftMax.value;\n openSide.value = 'left';\n } else if (offset.value < -props.threshold && rightMax.value > 0) {\n offset.value = -rightMax.value;\n openSide.value = 'right';\n } else {\n offset.value = 0;\n openSide.value = null;\n }\n}\n\nfunction close(): void {\n offset.value = 0;\n openSide.value = null;\n}\n\n/*\n * The keyboard path to the actions. They stay in the tab order — hiding them from assistive tech while they remain\n * focusable would strand focus on invisible buttons — and focusing one slides its side open, so the focused button\n * is always on screen. Leaving the row, or Escape, closes it again.\n */\nfunction reveal(side: 'left' | 'right'): void {\n if (props.isDisabled) return;\n offset.value = side === 'left' ? leftMax.value : -rightMax.value;\n openSide.value = side;\n}\n\nfunction onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (openSide.value && !(next && el.value?.contains(next))) close();\n}\n\nfunction onKeydown(event: KeyboardEvent): void {\n if (event.key === 'Escape' && openSide.value) {\n event.stopPropagation();\n close();\n }\n}\n\nfunction onClick(): void {\n // Mouse drags always emit a click after pointerup — swallow it so a\n // drag-to-open doesn't instantly close. Plain taps still close.\n if (suppressClick) {\n suppressClick = false;\n return;\n }\n if (openSide.value) close();\n}\n\nconst classes = computed(() =>\n cn('relative overflow-hidden bg-card text-card-foreground', attrs.class as string | undefined),\n);\n\n/** Vue does not append `px` to a numeric `:style` value, so every length is spelled out. */\nconst leftStyle = computed(() => ({ width: `${leftMax.value}px` }));\nconst rightStyle = computed(() => ({ width: `${rightMax.value}px` }));\n\nconst contentStyle = computed(() => ({\n transform: `translateX(${offset.value}px)`,\n transition: startX.value == null ? 'transform 200ms ease-out' : 'none',\n touchAction: 'pan-y',\n}));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <!--\n Content comes first in the DOM so Tab reaches the row before its actions; `z-10` keeps it painted over the\n absolutely positioned action panels behind it.\n -->\n <div ref=\"el\" v-bind=\"rest\" :class=\"classes\" @focusout=\"onFocusOut\" @keydown=\"onKeydown\">\n <div\n class=\"relative z-10 bg-card\"\n :style=\"contentStyle\"\n @pointerdown=\"onPointerDown\"\n @pointermove=\"onPointerMove\"\n @pointerup=\"onPointerUp\"\n @pointercancel=\"onPointerUp\"\n @click=\"onClick\"\n >\n <slot />\n </div>\n <div v-if=\"$slots.left\" class=\"absolute inset-y-0 left-0 flex\" :style=\"leftStyle\" @focusin=\"reveal('left')\">\n <slot name=\"left\" />\n </div>\n <div v-if=\"$slots.right\" class=\"absolute inset-y-0 right-0 flex\" :style=\"rightStyle\" @focusin=\"reveal('right')\">\n <slot name=\"right\" />\n </div>\n </div>\n</template>\n","<script lang=\"ts\">\n/** Defines the edge a sticky region pins to. */\nexport const StickyLayoutSide = {\n /** Refers to pinning at the top of the scroll area — headers, toolbars. */\n Top: 'top',\n /** Refers to pinning at the bottom — action bars, totals. */\n Bottom: 'bottom',\n} as const;\n\nexport type StickyLayoutSide = (typeof StickyLayoutSide)[keyof typeof StickyLayoutSide];\n\n/** Defines props for the sticky region. */\nexport interface StickyLayoutProps {\n /** The edge the region pins to. Default `top`. */\n readonly side?: StickyLayoutSide;\n\n /** The gap between the pinned region and the edge, in px. Default 0. */\n readonly offset?: number;\n\n /** The scroll container the region sticks within, for stuck detection. Default the viewport. */\n readonly root?: HTMLElement | null;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, shallowRef, useAttrs, useTemplateRef, watch } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { useIntersectionObserver } from '../../../foundation/observers';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders a region that pins to the top or bottom edge of its scroll area while its section scrolls, and\n * reports whether it is currently pinned so it can change appearance — a shadow, a denser bar.\n */\ndefineOptions({ name: 'StickyLayout', inheritAttrs: false });\n\ndefineSlots<{\n /** The pinned content; receives whether it is pinned right now. */\n default(props: { isStuck: boolean }): unknown;\n}>();\n\nconst props = withDefaults(defineProps<StickyLayoutProps>(), {\n side: StickyLayoutSide.Top,\n offset: 0,\n root: null,\n});\n\nconst emit = defineEmits<{\n /** Fires when the region pins or unpins. */\n 'stuck-change': [isStuck: boolean];\n}>();\n\nconst attrs = useAttrs();\nconst region = useTemplateRef<HTMLDivElement>('region');\nconst sentinel = useTemplateRef<HTMLDivElement>('sentinel');\n\n/** Whether the region is pinned; false until the client first observes it. */\nconst isStuck = shallowRef(false);\n\n/** The pin offset, never negative. */\nconst offsetPx = computed(() => (Number.isFinite(props.offset) ? Math.max(0, props.offset) : 0));\n\n/** The inline position that pins the region. */\nconst positionStyle = computed(() => ({ [props.side]: `${offsetPx.value}px` }));\n\n/** The observation box — the root shrunk by the offset on the pinned edge, so the sentinel leaves it on pin. */\nconst observerOptions = computed(() => ({\n root: props.root ?? null,\n rootMargin:\n props.side === StickyLayoutSide.Top\n ? `-${offsetPx.value + 1}px 0px 0px 0px`\n : `0px 0px -${offsetPx.value + 1}px 0px`,\n threshold: [0, 1],\n}));\n\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\nconst regionClass = computed(() => cn('sticky z-sticky', attrs.class as ClassValue));\n\n/** Emits `stuck-change` when the pinned state flips. */\nwatch(isStuck, (next) => emit('stuck-change', next));\n\nuseIntersectionObserver(() => [sentinel.value], handleIntersection, observerOptions);\n\n/** Pins when the sentinel beside the region has passed the pinned edge, not when it is still ahead of it. */\nfunction handleIntersection(entry: IntersectionObserverEntry): void {\n const bounds = entry.rootBounds;\n if (entry.isIntersecting || !bounds) {\n isStuck.value = false;\n return;\n }\n isStuck.value =\n props.side === StickyLayoutSide.Top\n ? entry.boundingClientRect.bottom <= bounds.top\n : entry.boundingClientRect.top >= bounds.bottom;\n}\n\ndefineExpose({ el: region });\n</script>\n\n<template>\n <!-- The sentinel sits in flow beside the region and takes no space; it leaves the observation box when the\n region's natural position scrolls past the pinned edge. -->\n <div\n v-if=\"side === StickyLayoutSide.Top\"\n ref=\"sentinel\"\n aria-hidden=\"true\"\n class=\"pointer-events-none invisible -mb-px h-px w-full\"\n />\n <div\n ref=\"region\"\n v-bind=\"rest\"\n :class=\"regionClass\"\n :style=\"positionStyle\"\n :data-side=\"side\"\n :data-stuck=\"isStuck ? '' : undefined\"\n >\n <slot :is-stuck=\"isStuck\" />\n </div>\n <div\n v-if=\"side === StickyLayoutSide.Bottom\"\n ref=\"sentinel\"\n aria-hidden=\"true\"\n class=\"pointer-events-none invisible -mt-px h-px w-full\"\n />\n</template>\n","<script lang=\"ts\">\n/** Defines props for the windowed scroll area. */\nexport interface VirtualScrollAreaProps<T> {\n /** The full item list; only the rows near the viewport render. */\n readonly items: ReadonlyArray<T>;\n\n /** Each item's size along the scroll axis in px — exact, or the estimate when `hasVariableSize`. */\n readonly itemSize: number | ((index: number) => number);\n\n /** Whether rendered items are measured, so rows of unknown size settle to their real size. Default `false`. */\n readonly hasVariableSize?: boolean;\n\n /** Extra items rendered beyond each edge of the viewport. Default 3. */\n readonly overscan?: number;\n\n /** Whether the area scrolls horizontally instead of vertically. Default `false`. */\n readonly isHorizontal?: boolean;\n\n /** Stable identity per item, so measurements survive reorders. Default the index. */\n readonly getKey?: (item: T, index: number) => string | number;\n\n /** How many items before the end the rendered window must reach to report `end-reached`. Default 5. */\n readonly endThreshold?: number;\n\n /**\n * Fades the scrollbar thumb while the area is idle and brings it back on hover and while it scrolls. The track\n * keeps its space, so the layout never shifts.\n * @default false\n */\n readonly hasAutoHideScrollbar?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\" generic=\"T\">\nimport { computed, onBeforeUnmount, onMounted, useAttrs, useTemplateRef, watch, type CSSProperties } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { useScrollActivity } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { useVirtualList, type VirtualItem } from '../../../foundation/virtualization';\n\n/**\n * Renders a scroll area that keeps only the rows near its viewport in the DOM, so a list of any length scrolls\n * at the cost of one screen. Size the area through `class` or `style`; it scrolls its own content.\n */\ndefineOptions({ name: 'VirtualScrollArea', inheritAttrs: false });\n\ndefineSlots<{\n /** One rendered item. */\n default(props: { item: T; index: number }): unknown;\n\n /** The content shown when `items` is empty. */\n empty?(): unknown;\n}>();\n\nconst props = withDefaults(defineProps<VirtualScrollAreaProps<T>>(), {\n hasVariableSize: false,\n overscan: undefined,\n isHorizontal: false,\n getKey: undefined,\n endThreshold: 5,\n hasAutoHideScrollbar: false,\n});\n\nconst emit = defineEmits<{\n /** Fires once per list length when the rendered window reaches within `endThreshold` items of the end. */\n 'end-reached': [];\n}>();\n\nconst attrs = useAttrs();\nconst viewport = useTemplateRef<HTMLDivElement>('viewport');\nuseScrollActivity(viewport, () => props.hasAutoHideScrollbar);\n\nconst list = useVirtualList({\n count: () => props.items.length,\n estimateSize: (index) => (typeof props.itemSize === 'function' ? props.itemSize(index) : props.itemSize),\n target: viewport,\n overscan: () => props.overscan,\n horizontal: () => props.isHorizontal,\n getItemKey: (index) => (props.getKey ? props.getKey(props.items[index] as T, index) : index),\n});\n\n/** @internal The list length that already reported `end-reached`, so each length reports once. */\nlet reportedLength: number | null = null;\n\n/** @internal The one observer measuring every rendered row, created on mount when sizes vary. */\nlet observer: ResizeObserver | null = null;\n\n/** @internal The rows the observer currently watches, by element. */\nconst observedRows = new Map<Element, number>();\n\nconst virtualItems = list.virtualItems;\n\n/** The spacer that gives the scrollbar the full list's size. */\nconst spacerStyle = computed<CSSProperties>(() =>\n props.isHorizontal\n ? { width: `${list.totalSize.value}px`, height: '100%' }\n : { height: `${list.totalSize.value}px`, width: '100%' },\n);\n\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\nconst viewportClass = computed(() =>\n cn('relative overflow-auto', props.hasAutoHideScrollbar && 'scrollbar-auto-hide', attrs.class as ClassValue),\n);\n\n/** Reports `end-reached` once per length when the rendered window nears the end. */\nwatch(\n () => [list.range.value.endIndex, props.items.length] as const,\n ([endIndex, length]) => {\n if (length === 0 || endIndex < 0) return;\n const threshold = Math.max(0, Math.round(Number.isFinite(props.endThreshold) ? props.endThreshold : 0));\n if (endIndex < length - 1 - threshold || reportedLength === length) return;\n reportedLength = length;\n emit('end-reached');\n },\n { flush: 'post' },\n);\n\nonMounted(() => {\n if (typeof ResizeObserver === 'undefined') return;\n observer = new ResizeObserver((entries) => {\n for (const entry of entries) {\n const index = observedRows.get(entry.target);\n if (index === undefined) continue;\n const box = entry.borderBoxSize?.[0];\n const size = props.isHorizontal\n ? (box?.inlineSize ?? entry.contentRect.width)\n : (box?.blockSize ?? entry.contentRect.height);\n if (size > 0) list.measureItem(index, size);\n }\n });\n for (const row of observedRows.keys()) observer.observe(row);\n});\n\nonBeforeUnmount(() => {\n observer?.disconnect();\n observer = null;\n observedRows.clear();\n});\n\n/** The position of one rendered row along the scroll axis. */\nfunction rowStyle(item: VirtualItem): CSSProperties {\n const offset = props.isHorizontal ? `translateX(${item.start}px)` : `translateY(${item.start}px)`;\n const size = props.hasVariableSize ? undefined : `${item.size}px`;\n return props.isHorizontal\n ? { position: 'absolute', top: 0, left: 0, height: '100%', width: size, transform: offset }\n : { position: 'absolute', top: 0, left: 0, width: '100%', height: size, transform: offset };\n}\n\n/** Tracks a rendered row for measurement while sizes vary; releases it when it unmounts. */\nfunction bindRow(node: unknown, index: number): void {\n if (!props.hasVariableSize) return;\n const row = node as Element | null;\n if (!row) return;\n const previous = observedRows.get(row);\n observedRows.set(row, index);\n if (previous === undefined) observer?.observe(row);\n}\n\n/** Stops measuring rows that left the window. */\nwatch(\n virtualItems,\n () => {\n for (const row of [...observedRows.keys()]) {\n if (row.isConnected) continue;\n observer?.unobserve(row);\n observedRows.delete(row);\n }\n },\n { flush: 'post' },\n);\n\ndefineExpose({ el: viewport, scrollToIndex: list.scrollToIndex });\n</script>\n\n<template>\n <div ref=\"viewport\" v-bind=\"rest\" :class=\"viewportClass\" :data-orientation=\"isHorizontal ? 'horizontal' : 'vertical'\">\n <slot v-if=\"items.length === 0\" name=\"empty\" />\n <div v-else class=\"relative\" :style=\"spacerStyle\">\n <div\n v-for=\"virtual in virtualItems\"\n :key=\"virtual.key\"\n :ref=\"(node) => bindRow(node, virtual.index)\"\n :data-index=\"virtual.index\"\n :style=\"rowStyle(virtual)\"\n >\n <slot :item=\"items[virtual.index] as T\" :index=\"virtual.index\" />\n </div>\n </div>\n </div>\n</template>\n","<script lang=\"ts\">\n/** Defines props for the column-balanced masonry arrangement. */\nexport interface MasonryLayoutProps {\n /** The column count, or the most columns when `minColumnWidth` is set. Default 3; rounded, at least 1. */\n readonly columns?: number;\n\n /** The narrowest a column may get, as a CSS length — narrower containers drop columns. */\n readonly minColumnWidth?: string;\n\n /** The gap between columns and between stacked items, as a CSS length. Default `1rem`. */\n readonly gap?: string;\n}\n\n/** @internal The column count used when `columns` is not a finite number. */\nconst DefaultColumns = 3;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\n\n/**\n * Renders children as masonry — items of uneven height flow down balanced columns with no row gaps, the way\n * a photo wall or a card board reads. Items keep source order down each column, then across.\n */\ndefineOptions({ name: 'MasonryLayout', inheritAttrs: false });\n\n/** The items; each child is kept whole within one column. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<MasonryLayoutProps>(), {\n columns: DefaultColumns,\n minColumnWidth: undefined,\n gap: '1rem',\n});\n\nconst attrs = useAttrs();\n\nconst columnCount = computed(() =>\n Math.max(1, Math.round(Number.isFinite(props.columns) ? props.columns : DefaultColumns)),\n);\n\n/** The multi-column layout, and the gap every child repeats below itself. */\nconst layoutStyle = computed(() => ({\n columns: props.minColumnWidth ? `${props.minColumnWidth} ${columnCount.value}` : String(columnCount.value),\n columnGap: props.gap,\n '--masonry-gap': props.gap,\n}));\n\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\nconst classes = computed(() => cn('*:mb-(--masonry-gap) *:break-inside-avoid *:last:mb-0', attrs.class as ClassValue));\n</script>\n\n<template>\n <div v-bind=\"rest\" :class=\"classes\" :style=\"layoutStyle\" :data-columns=\"columnCount\">\n <slot />\n </div>\n</template>\n"],"names":["_openBlock","_createBlock","_resolveDynamicComponent","_mergeProps","_renderSlot","StackLayout","$attrs","_createElementBlock","_createElementVNode","_hoisted_1","_createTextVNode","_toDisplayString","_hoisted_2","_normalizeProps","_guardReactiveProps","_createVNode","_unref","Icon","_hoisted_4","GapClass","Spinner","Announce","NavbarVariantToken","Drawer","DrawerContent","_Teleport","ContainerLayout","Orientation","Element","$slots","_Fragment","OrientationValue","TextVNode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