@wow-two-beta/fe 0.0.22 → 0.0.24

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.
Files changed (69) hide show
  1. package/dist/auth/AuthBridge.d.ts +15 -0
  2. package/dist/auth/index.d.ts +1 -1
  3. package/dist/auth/index.js +47 -8
  4. package/dist/auth/index.js.map +1 -1
  5. package/dist/auth/providers/AuthProvider.vue.d.ts +1 -1
  6. package/dist/chunks/{SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js → AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js} +641 -226
  7. package/dist/chunks/AppSwitcherMenu.vue_vue_type_script_setup_true_lang-DVqdOOst.js.map +1 -0
  8. package/dist/chunks/Breakpoints-CltjxN0E.js +32 -0
  9. package/dist/chunks/Breakpoints-CltjxN0E.js.map +1 -0
  10. package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js → DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js} +4 -12
  11. package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map +1 -0
  12. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js} +2 -2
  13. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map} +1 -1
  14. package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-BolubhiV.js → KanbanCard.vue_vue_type_script_setup_true_lang-B_NmyVkE.js} +2 -2
  15. package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-BolubhiV.js.map → KanbanCard.vue_vue_type_script_setup_true_lang-B_NmyVkE.js.map} +1 -1
  16. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js → LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js} +71 -477
  17. package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-Dm79L1eK.js.map +1 -0
  18. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +44 -0
  19. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +1 -0
  20. package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js} +2 -2
  21. package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-CKhBN2SC.js.map → MasonryLayout.vue_vue_type_script_setup_true_lang-TuNWahLw.js.map} +1 -1
  22. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-C7X9NYpR.js → MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js} +12 -5
  23. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-DdT24dkW.js.map +1 -0
  24. package/dist/chunks/OverlayChrome-BqRpuYX5.js +13 -0
  25. package/dist/chunks/OverlayChrome-BqRpuYX5.js.map +1 -0
  26. package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js +429 -0
  27. package/dist/chunks/OverlayCloseButton.vue_vue_type_script_setup_true_lang-D01KYAAn.js.map +1 -0
  28. package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js → PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js} +2 -43
  29. package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-BIHYpwzT.js.map +1 -0
  30. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js} +2 -1
  31. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js.map → ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js.map} +1 -1
  32. package/dist/chunks/{Tooltip.vue_vue_type_script_setup_true_lang-AzuqiFWY.js → Tooltip.vue_vue_type_script_setup_true_lang-vsFDijcV.js} +3 -2
  33. package/dist/chunks/{Tooltip.vue_vue_type_script_setup_true_lang-AzuqiFWY.js.map → Tooltip.vue_vue_type_script_setup_true_lang-vsFDijcV.js.map} +1 -1
  34. package/dist/feedback/FeedbackQueryErrors.d.ts +4 -3
  35. package/dist/feedback/FeedbackSessionExpiry.d.ts +5 -0
  36. package/dist/feedback/index.d.ts +1 -0
  37. package/dist/feedback/index.js +13 -1
  38. package/dist/feedback/index.js.map +1 -1
  39. package/dist/foundation/device/index.js +3 -27
  40. package/dist/foundation/device/index.js.map +1 -1
  41. package/dist/foundation/http/CreateApiClient.d.ts +1 -0
  42. package/dist/foundation/http/index.js +5 -1
  43. package/dist/foundation/http/index.js.map +1 -1
  44. package/dist/index.js +221 -217
  45. package/dist/index.js.map +1 -1
  46. package/dist/presentation/display/index.js +1 -1
  47. package/dist/presentation/feedback/index.js +2 -2
  48. package/dist/presentation/feedback/toastHost/index.js +1 -1
  49. package/dist/presentation/forms/index.js +2 -2
  50. package/dist/presentation/forms/passwordInput/PasswordInput.vue.d.ts +4 -0
  51. package/dist/presentation/layout/index.js +1 -1
  52. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenu.vue.d.ts +81 -0
  53. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuExtensions.d.ts +8 -0
  54. package/dist/presentation/nav/appSwitcherMenu/AppSwitcherMenuPanel.vue.d.ts +25 -0
  55. package/dist/presentation/nav/appSwitcherMenu/index.d.ts +1 -0
  56. package/dist/presentation/nav/index.d.ts +1 -0
  57. package/dist/presentation/nav/index.js +72 -70
  58. package/dist/presentation/overlays/index.js +55 -54
  59. package/dist/presentation/overlays/index.js.map +1 -1
  60. package/dist/router/adapters/vueRouter/Guards.d.ts +6 -1
  61. package/dist/router/adapters/vueRouter/index.d.ts +1 -1
  62. package/dist/router/index.js +8 -0
  63. package/dist/router/index.js.map +1 -1
  64. package/package.json +1 -1
  65. package/dist/chunks/DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js.map +0 -1
  66. package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-HSUZqn0g.js.map +0 -1
  67. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-C7X9NYpR.js.map +0 -1
  68. package/dist/chunks/PopoverContent.vue_vue_type_script_setup_true_lang-hfb8AAVv.js.map +0 -1
  69. package/dist/chunks/SidebarMenuSection.vue_vue_type_script_setup_true_lang-CIEgYHl_.js.map +0 -1
@@ -0,0 +1,32 @@
1
+ const TailwindBreakpoints = {
2
+ /** ≥ 640px. */
3
+ sm: 640,
4
+ /** ≥ 768px. */
5
+ md: 768,
6
+ /** ≥ 1024px. */
7
+ lg: 1024,
8
+ /** ≥ 1280px. */
9
+ xl: 1280,
10
+ /** ≥ 1536px. */
11
+ "2xl": 1536
12
+ };
13
+ function toBreakpointQueries(scale) {
14
+ return Object.entries(scale).filter(([, minWidth]) => Number.isFinite(minWidth) && minWidth >= 0).sort(([, left], [, right]) => right - left).map(([key, minWidth]) => ({
15
+ // `Object.entries` widens the key to `string`; by construction it is a key of `scale`.
16
+ key,
17
+ minWidth,
18
+ query: `(min-width: ${minWidth}px)`
19
+ }));
20
+ }
21
+ function resolveBreakpoint(queries, matches) {
22
+ for (const [index, entry] of queries.entries()) {
23
+ if (matches[index] === true) return entry.key;
24
+ }
25
+ return null;
26
+ }
27
+ export {
28
+ TailwindBreakpoints as T,
29
+ resolveBreakpoint as r,
30
+ toBreakpointQueries as t
31
+ };
32
+ //# sourceMappingURL=Breakpoints-CltjxN0E.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Breakpoints-CltjxN0E.js","sources":["../../src/foundation/device/Breakpoints.ts"],"sourcesContent":["// The breakpoint model — pure, DOM-free, and deliberately WITHOUT a built-in scale.\n//\n// WHY NO DEFAULT SCALE: this library is Tailwind-v4 token-driven, so the app owns its breakpoints in its `@theme`\n// block. A scale hardcoded here would be a second source of truth that silently disagrees with the CSS the same\n// app ships — a layout that switches at 768px in JS and 720px in CSS is a bug no test in this repo could see.\n// `TailwindBreakpoints` is offered as a constant the caller may opt into, never a fallback a composable reaches for.\n//\n// Queries are plain `(min-width: …)` sorted WIDEST FIRST, so \"the first query that matches\" is the active\n// breakpoint. Mutually-exclusive bands (`min` and `max` together) are the alternative and were rejected: bands\n// need a sentinel max for the widest entry and a sub-pixel gap between neighbours (`max-width: 767.98px`), and\n// both are places for an off-by-one to hide. Independent min-width queries have neither, and match how the\n// mobile-first CSS beside them already cascades.\n\n/** A breakpoint scale — each key (`sm`, `md`, …) mapped to its minimum viewport width in CSS pixels. */\nexport type BreakpointScale = Readonly<Record<string, number>>;\n\n/**\n * Tailwind v4's default breakpoint scale, in CSS pixels. Opt-in: pass it to `useBreakpoint` explicitly. An app\n * that customised its `@theme` breakpoints must pass its own map instead, or JS and CSS will disagree.\n */\nexport const TailwindBreakpoints = {\n /** ≥ 640px. */\n sm: 640,\n /** ≥ 768px. */\n md: 768,\n /** ≥ 1024px. */\n lg: 1024,\n /** ≥ 1280px. */\n xl: 1280,\n /** ≥ 1536px. */\n '2xl': 1536,\n} as const;\n\n/** One breakpoint compiled to the media query that detects it. */\nexport interface BreakpointQuery<TKey extends string = string> {\n /** The scale key this query stands for. */\n readonly key: TKey;\n /** The minimum viewport width, in CSS pixels. */\n readonly minWidth: number;\n /** The `(min-width: …px)` string to hand to `matchMedia`. */\n readonly query: string;\n}\n\n/**\n * Compiles a scale into widest-first `(min-width: …)` queries.\n *\n * Entries whose width is not a finite number `>= 0` are dropped: a malformed scale must not emit\n * `(min-width: NaNpx)`, which `matchMedia` accepts and then never matches, quietly skewing the resolved\n * breakpoint instead of failing.\n *\n * @param scale The caller's breakpoint map.\n * @returns The scale's valid entries as queries, widest first.\n */\nexport function toBreakpointQueries<TScale extends BreakpointScale>(\n scale: TScale,\n): ReadonlyArray<BreakpointQuery<Extract<keyof TScale, string>>> {\n return Object.entries(scale)\n .filter(([, minWidth]) => Number.isFinite(minWidth) && minWidth >= 0)\n .sort(([, left], [, right]) => right - left)\n .map(([key, minWidth]) => ({\n // `Object.entries` widens the key to `string`; by construction it is a key of `scale`.\n key: key as Extract<keyof TScale, string>,\n minWidth,\n query: `(min-width: ${minWidth}px)`,\n }));\n}\n\n/**\n * Picks the active breakpoint from a widest-first query list and the match results for it.\n *\n * @param queries Compiled queries, widest first, as returned by {@link toBreakpointQueries}.\n * @param matches Match results positionally aligned with `queries`. A shorter array reads as \"did not match\" for\n * the missing tail.\n * @returns The key of the widest matching breakpoint, or `null` when the viewport is narrower than every entry —\n * the implicit mobile-first base band, which by definition has no key of its own.\n */\nexport function resolveBreakpoint<TKey extends string>(\n queries: ReadonlyArray<BreakpointQuery<TKey>>,\n matches: ReadonlyArray<boolean>,\n): TKey | null {\n for (const [index, entry] of queries.entries()) {\n if (matches[index] === true) return entry.key;\n }\n return null;\n}\n"],"names":[],"mappings":"AAoBO,MAAM,sBAAsB;AAAA;AAAA,EAEjC,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,IAAI;AAAA;AAAA,EAEJ,OAAO;AACT;AAsBO,SAAS,oBACd,OAC+D;AAC/D,SAAO,OAAO,QAAQ,KAAK,EACxB,OAAO,CAAC,GAAG,QAAQ,MAAM,OAAO,SAAS,QAAQ,KAAK,YAAY,CAAC,EACnE,KAAK,CAAC,CAAA,EAAG,IAAI,GAAG,CAAA,EAAG,KAAK,MAAM,QAAQ,IAAI,EAC1C,IAAI,CAAC,CAAC,KAAK,QAAQ,OAAO;AAAA;AAAA,IAEzB;AAAA,IACA;AAAA,IACA,OAAO,eAAe,QAAQ;AAAA,EAAA,EAC9B;AACN;AAWO,SAAS,kBACd,SACA,SACa;AACb,aAAW,CAAC,OAAO,KAAK,KAAK,QAAQ,WAAW;AAC9C,QAAI,QAAQ,KAAK,MAAM,aAAa,MAAM;AAAA,EAC5C;AACA,SAAO;AACT;"}
@@ -1,7 +1,8 @@
1
- import { inject, defineComponent, shallowRef, provide, computed, renderSlot, useAttrs, openBlock, createBlock, unref, withCtx, createVNode, normalizeClass, createCommentVNode, createElementVNode, withModifiers, mergeProps } from "vue";
1
+ import { defineComponent, shallowRef, provide, computed, renderSlot, inject, useAttrs, openBlock, createBlock, unref, withCtx, createVNode, normalizeClass, createCommentVNode, createElementVNode, withModifiers, mergeProps } from "vue";
2
2
  import { c as cn } from "./Cn-C7De6POU.js";
3
3
  import { s as surfaceVariants } from "./SurfaceStyles-B8KNkFsm.js";
4
4
  import { _ as _sfc_main$4 } from "./BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
5
+ import { o as overlayChromeContextKey } from "./OverlayChrome-BqRpuYX5.js";
5
6
  import { u as useControlled } from "./UseControlled-BQneb7BW.js";
6
7
  import { u as useId } from "./UseId-CtgAhGrn.js";
7
8
  import { _ as _sfc_main$2 } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
@@ -9,13 +10,6 @@ import { _ as _sfc_main$3 } from "./ScrollLockProvider.vue_vue_type_script_setup
9
10
  import { P as Presence } from "./Presence-DDk0ZtAr.js";
10
11
  import { _ as _sfc_main$5 } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
11
12
  import { _ as _sfc_main$6 } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
12
- const overlayChromeContextKey = Symbol("wow-two.overlayChrome");
13
- function useOverlayChromeContext() {
14
- const context = inject(overlayChromeContextKey, null);
15
- if (!context)
16
- throw new Error("AnchorLayout chrome subcomponents must be used inside an OverlayChromeProvider (Modal / Drawer)");
17
- return context;
18
- }
19
13
  const drawerContextKey = Symbol("wow-two.drawer");
20
14
  function useDrawerContext() {
21
15
  const context = inject(drawerContextKey, null);
@@ -215,8 +209,6 @@ export {
215
209
  DrawerSize as D,
216
210
  _sfc_main$1 as _,
217
211
  _sfc_main as a,
218
- useDrawerContext as b,
219
- overlayChromeContextKey as o,
220
- useOverlayChromeContext as u
212
+ useDrawerContext as u
221
213
  };
222
- //# sourceMappingURL=DrawerContent.vue_vue_type_script_setup_true_lang-C17R6SMV.js.map
214
+ //# sourceMappingURL=DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DrawerContent.vue_vue_type_script_setup_true_lang-CZQnfNGk.js","sources":["../../src/presentation/overlays/drawer/Drawer.vue","../../src/presentation/overlays/drawer/DrawerContent.vue"],"sourcesContent":["<script lang=\"ts\">\nimport { inject, type ComputedRef, type InjectionKey, type Ref, type ShallowRef } from 'vue';\nimport type { Side } from '../../../foundation/styles';\n\n/**\n * The value shared with `DrawerTrigger` / `DrawerContent`.\n *\n * React's context held plain values re-created on every render; here the\n * reactive fields stay refs so a child reads the live value without the root\n * re-rendering it.\n */\nexport interface DrawerContextValue {\n /** The resolved open state. Writable — an assignment routes through `setOpen`. */\n open: Ref<boolean>;\n setOpen: (open: boolean) => void;\n /** The trigger element — the focus-return target when the drawer closes. */\n triggerEl: ShallowRef<HTMLElement | null>;\n titleId: string;\n descriptionId: string;\n side: ComputedRef<Side>;\n dismissOnOutsideClick: ComputedRef<boolean>;\n dismissOnEscape: ComputedRef<boolean>;\n}\n\nexport const drawerContextKey: InjectionKey<DrawerContextValue> = Symbol('wow-two.drawer');\n\nexport function useDrawerContext(): DrawerContextValue {\n const context = inject(drawerContextKey, null);\n if (!context) throw new Error('Drawer.* must be used inside <Drawer>');\n return context;\n}\n\n/** Controlled axes use their canonical Vue model names; each update event requests caller state. */\nexport interface DrawerProps {\n /** The open state, controlled. The `v-model:open` binding target. */\n readonly open?: boolean;\n\n /** The initial open state when uncontrolled. Default `false`. */\n readonly defaultOpen?: boolean;\n\n /** The edge the panel slides in from. Default `right`. */\n readonly side?: Side;\n\n /** The outside-click dismissal toggle. Default `true`. */\n readonly canDismissOnOutsideClick?: boolean;\n /** @deprecated Use `canDismissOnOutsideClick`; this alias is removed next release. */\n readonly dismissOnOutsideClick?: boolean;\n\n /** The Escape dismissal toggle. Default `true`. */\n readonly canDismissOnEscape?: boolean;\n /** @deprecated Use `canDismissOnEscape`; this alias is removed next release. */\n readonly dismissOnEscape?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, shallowRef } from 'vue';\nimport { useControlled } from '../../../foundation/state';\nimport { useId } from '../../../foundation/identifiers';\n\n/**\n * Renders only its slot, owning the open state and a11y ids of the Drawer tree below it.\n * React returned a bare context Provider, which has no element of its own.\n */\ndefineOptions({ name: 'Drawer', inheritAttrs: false });\n\n/** The Drawer tree — `DrawerTrigger` and `DrawerContent`. React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\n/**\n * `open: undefined` / `open: undefined` are load-bearing: Vue coerces an\n * absent `Boolean` prop to `false` unless the declaration *owns* a `default`\n * key, which would strand the uncontrolled path behind a permanently-closed\n * controlled one.\n */\nconst props = withDefaults(defineProps<DrawerProps>(), {\n open: undefined,\n defaultOpen: false,\n side: 'right',\n canDismissOnOutsideClick: undefined,\n dismissOnOutsideClick: undefined,\n canDismissOnEscape: undefined,\n dismissOnEscape: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the drawer opens or closes — the `v-model:open` half. */\n 'update:open': [open: boolean];\n}>();\n\nconst controlled = useControlled<boolean>({\n controlled: () => props.open,\n default: () => props.defaultOpen,\n onChange: (value) => {\n emit('update:open', value);\n },\n});\n\nconst triggerEl = shallowRef<HTMLElement | null>(null);\nconst titleId = useId('drawer-title');\nconst descriptionId = useId('drawer-description');\n\nprovide(drawerContextKey, {\n open: controlled.value,\n setOpen: controlled.setValue,\n triggerEl,\n titleId,\n descriptionId,\n side: computed(() => props.side),\n dismissOnOutsideClick: computed(() => props.canDismissOnOutsideClick ?? props.dismissOnOutsideClick ?? true),\n dismissOnEscape: computed(() => props.canDismissOnEscape ?? props.dismissOnEscape ?? true),\n});\n</script>\n\n<template>\n <slot />\n</template>\n","<script lang=\"ts\">\nimport type {\n Side,\n SurfaceElevation,\n SurfacePadding,\n SurfaceRadius,\n SurfaceTone,\n SurfaceVariant,\n} from '../../../foundation/styles';\n\n/** Defines the max-size token for a `DrawerContent` panel. */\nexport const DrawerSize = {\n /** Refers to the small panel size. */\n Sm: 'sm',\n /** Refers to the medium panel size. */\n Md: 'md',\n /** Refers to the large panel size. */\n Lg: 'lg',\n /** Refers to the extra-large panel size. */\n Xl: 'xl',\n /** Refers to a panel that fills its cross-axis. */\n Full: 'full',\n} as const;\n\nexport type DrawerSize = (typeof DrawerSize)[keyof typeof DrawerSize];\n\n// Full-edge slide: the panel rests at translate-0 when open and is pushed\n// fully off its own edge when closed. `transition-transform` (gated on\n// `motion-safe:`) animates both enter and exit via Presence's data-state flip.\nconst SideBase: Record<Side, string> = {\n right:\n 'inset-y-0 right-0 h-full w-full border-l ' +\n 'motion-safe:transition-transform motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) ' +\n 'data-[state=closed]:translate-x-full',\n left:\n 'inset-y-0 left-0 h-full w-full border-r ' +\n 'motion-safe:transition-transform motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) ' +\n 'data-[state=closed]:-translate-x-full',\n top:\n 'inset-x-0 top-0 w-full border-b ' +\n 'motion-safe:transition-transform motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) ' +\n 'data-[state=closed]:-translate-y-full',\n bottom:\n 'inset-x-0 bottom-0 w-full border-t ' +\n 'motion-safe:transition-transform motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) ' +\n 'data-[state=closed]:translate-y-full',\n};\n\nconst HorizontalSize: Record<DrawerSize, string> = {\n sm: 'sm:max-w-sm',\n md: 'sm:max-w-md',\n lg: 'sm:max-w-lg',\n xl: 'sm:max-w-2xl',\n full: '',\n};\n\nconst VerticalSize: Record<DrawerSize, string> = {\n sm: 'max-h-[40vh]',\n md: 'max-h-[60vh]',\n lg: 'max-h-[75vh]',\n xl: 'max-h-[85vh]',\n full: 'max-h-screen',\n};\n\n/**\n * Represents the prop surface of `DrawerContent`.\n *\n * React declared the surface axes by `extends SurfaceLayoutVariants`; they are\n * spelled out here because the SFC compiler's type resolver cannot follow a\n * `VariantProps<typeof …>` base and fails the build on it. The aliases below\n * are the canonical ones from `foundation/styles`, already locked against the\n * `surfaceVariants` config there, so the two cannot drift.\n */\nexport interface DrawerContentProps {\n /** Shows the default backdrop behind the panel. Default `true`. */\n readonly showBackdrop?: boolean;\n /** @deprecated Use `showBackdrop` (inverted); this alias is removed next release. */\n readonly hideBackdrop?: boolean;\n\n /** The backdrop-blur toggle. */\n readonly isBlurred?: boolean;\n\n /** The per-side max-size token. Default `md`. */\n readonly size?: DrawerSize;\n\n /** The visual recipe. Default `elevated`. */\n readonly variant?: SurfaceVariant;\n\n /** The color tone the recipe is tinted with. */\n readonly tone?: SurfaceTone;\n\n /** The corner rounding. Default `none`. */\n readonly radius?: SurfaceRadius;\n\n /** The inner spacing step. Default `xl`. */\n readonly padding?: SurfacePadding;\n\n /** The shadow depth. Default `3`. */\n readonly elevation?: SurfaceElevation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs } from 'vue';\nimport { cn, surfaceVariants } from '../../../foundation/styles';\nimport { DismissableLayer, FocusScope, Portal, Presence, ScrollLockProvider } from '../../../foundation/primitives';\nimport BackdropOverlay from '../backdropOverlay/BackdropOverlay.vue';\nimport { overlayChromeContextKey } from '../OverlayChrome';\nimport { useDrawerContext } from './Drawer.vue';\n\n/** Renders the portalled edge panel — scrim, focus trap, scroll lock, and the sliding a11y surface. */\ndefineOptions({ name: 'DrawerContent', inheritAttrs: false });\n\n/** The panel content — chrome subcomponents and the drawer body. React's `children`. */\ndefineSlots<{ default(): unknown }>();\n\nconst props = withDefaults(defineProps<DrawerContentProps>(), {\n size: 'md',\n showBackdrop: undefined,\n hideBackdrop: undefined,\n});\n\n/** `showBackdrop` first, then the inverted deprecated `hideBackdrop`. */\nconst hasBackdrop = computed(() => props.showBackdrop ?? !(props.hideBackdrop ?? false));\n\nconst attrs = useAttrs();\nconst context = useDrawerContext();\n\n/* Refs lifted to setup consts so the template auto-unwraps them (a plain injected object does not). */\nconst isOpen = context.open;\nconst side = context.side;\nconst dismissOnEscape = context.dismissOnEscape;\n\nfunction close(): void {\n context.setOpen(false);\n}\n\nprovide(overlayChromeContextKey, {\n titleId: context.titleId,\n descriptionId: context.descriptionId,\n close,\n});\n\nconst isHorizontal = computed(() => side.value === 'right' || side.value === 'left');\nconst sizeClass = computed(() => (isHorizontal.value ? HorizontalSize[props.size] : VerticalSize[props.size]));\n\nconst classes = computed(() =>\n cn(\n 'fixed z-modal flex flex-col gap-4 outline-hidden',\n surfaceVariants({\n variant: props.variant ?? 'elevated',\n tone: props.tone,\n radius: props.radius ?? 'none',\n padding: props.padding ?? 'xl',\n elevation: props.elevation ?? 3,\n }),\n SideBase[side.value],\n sizeClass.value,\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/** The scrim's fade runs in lock-step with the slide — same token duration on both. */\nconst backdropClasses =\n 'motion-safe:transition-opacity motion-safe:duration-(--duration-base) motion-safe:ease-(--ease-out) data-[state=closed]:opacity-0';\n\n/**\n * The outside layer spans the window above the scrim and holds the panel. The panel's modal FocusScope marks every\n * body branch outside it inert, the scrim beside it included, so a click on the scrim reached nothing; an ancestor of\n * the panel stays live, so clicks outside the panel land on this layer. Closed, it lets every pointer through.\n */\nconst outsideClasses = computed(() => cn('fixed inset-0 z-modal', !isOpen.value && 'pointer-events-none'));\n\n/** A click on the outside layer itself (`.self`), not on the panel inside it. */\nfunction handleOutsideClick(): void {\n if (context.dismissOnOutsideClick.value) context.setOpen(false);\n}\n\nfunction handleEscape(): void {\n context.setOpen(false);\n}\n</script>\n\n<template>\n <!--\n React nested `Portal` + `ScrollLockProvider` *inside* the Presence-cloned\n surface and forwarded the injected `ref` past them onto the panel with\n `forwardRef`. Vue resolves a cloned `ref` through `$el`, and a Teleport /\n renderless root has no element, so the portal and the lock are hoisted above\n `Presence` and the lock now follows open state rather than mount — the shape\n React's own `ModalContent` already used. Presence's cloned child is the panel\n itself, which is what has to carry `data-state` and the slide it times against.\n -->\n <Portal>\n <ScrollLockProvider :is-enabled=\"isOpen\">\n <!-- The scrim runs on `BackdropOverlay`'s own `Presence` (its `isOpen` prop); React\n mirrored the panel's `data-state` onto it by hand for the same effect. It is inert while the panel is up;\n the outside layer takes the clicks. -->\n <BackdropOverlay\n v-if=\"hasBackdrop\"\n is-inline\n :is-open=\"isOpen\"\n :is-blurred=\"props.isBlurred\"\n :class=\"backdropClasses\"\n />\n <div :class=\"outsideClasses\" data-drawer-outside @click.self=\"handleOutsideClick\">\n <Presence :is-present=\"isOpen\">\n <!--\n `FocusScope as-child` merges into `DismissableLayer`, whose own root div\n *is* the dialog panel — React kept the layer div and the panel div\n separate and forwarded `data-state` down to the inner one. Collapsing\n them keeps every attribute of React's panel (`role`, `aria-modal`,\n `aria-labelledby`, `aria-describedby`, `data-state`, `data-side`, the\n surface classes) on one node, which is also the node `Presence` clones\n and whose `transition-transform` end defers the unmount.\n -->\n <FocusScope as-child is-trapped can-loop is-modal>\n <DismissableLayer\n :is-escape-disabled=\"!dismissOnEscape\"\n is-outside-click-disabled\n :on-escape=\"handleEscape\"\n role=\"dialog\"\n aria-modal=\"true\"\n :aria-labelledby=\"context.titleId\"\n :aria-describedby=\"context.descriptionId\"\n :data-side=\"side\"\n v-bind=\"rest\"\n :class=\"classes\"\n >\n <slot />\n </DismissableLayer>\n </FocusScope>\n </Presence>\n </div>\n </ScrollLockProvider>\n </Portal>\n</template>\n"],"names":["_renderSlot","_createBlock","_unref","Portal","_createVNode","ScrollLockProvider","BackdropOverlay","_createElementVNode","FocusScope","_mergeProps"],"mappings":";;;;;;;;;;;;AAwBO,MAAM,mBAAqD,OAAO,gBAAgB;A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rn.js";
19
19
  import { S as SkeletonStateLine } from "./SkeletonStateLine-anGWn2Vm.js";
20
20
  import { f as feedbackBus, a as NoticeCategory } from "./FeedbackBus-Xc9EjV9K.js";
21
- import { t as toastHost, a as _sfc_main$w } from "./ToastHost.vue_vue_type_script_setup_true_lang-Xr-kmwgK.js";
21
+ import { t as toastHost, a as _sfc_main$w } from "./ToastHost.vue_vue_type_script_setup_true_lang-p0bfXJ9l.js";
22
22
  import { _ as _sfc_main$x } from "./BackdropOverlay.vue_vue_type_script_setup_true_lang-BsjQoWDM.js";
23
23
  import { P as Presence } from "./Presence-DDk0ZtAr.js";
24
24
  import { _ as _sfc_main$y } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
@@ -2226,4 +2226,4 @@ export {
2226
2226
  _sfc_main$a as y,
2227
2227
  _sfc_main$5 as z
2228
2228
  };
2229
- //# sourceMappingURL=ErrorBoundary.vue_vue_type_script_setup_true_lang-DBPGTzwk.js.map
2229
+ //# sourceMappingURL=ErrorBoundary.vue_vue_type_script_setup_true_lang-LRQbVAiW.js.map