@wow-two-beta/fe 0.0.29 → 0.0.31

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 (83) hide show
  1. package/README.md +11 -0
  2. package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js → AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js} +91 -26
  3. package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js.map +1 -0
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. 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
  10. 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
  11. 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
  12. 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
  13. 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
  14. 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
  15. 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
  16. 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
  17. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +1 -0
  18. 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
  19. 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
  20. package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js → MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js} +28 -9
  21. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js.map +1 -0
  22. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js} +578 -322
  23. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +1 -0
  24. 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
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. package/dist/chunks/{SurfaceStyles-BYvRlsWe.js → SurfaceStyles-DUVz963_.js} +25 -6
  31. package/dist/chunks/SurfaceStyles-DUVz963_.js.map +1 -0
  32. 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
  33. 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
  34. package/dist/chunks/{Tones-Bcz8dIo3.js → Tones-BU9yaXKf.js} +5 -3
  35. package/dist/chunks/{Tones-Bcz8dIo3.js.map → Tones-BU9yaXKf.js.map} +1 -1
  36. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js +29 -0
  37. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js.map +1 -0
  38. package/dist/chunks/{index-CGIXFfl9.js → index-Bk5JPh5t.js} +3 -3
  39. package/dist/chunks/{index-CGIXFfl9.js.map → index-Bk5JPh5t.js.map} +1 -1
  40. package/dist/chunks/{index-DA17sNzP.js → index-CRV9gpyX.js} +52 -3
  41. package/dist/chunks/index-CRV9gpyX.js.map +1 -0
  42. package/dist/chunks/{index-Dp6L9sX7.js → index-Clq52PIa.js} +5 -28
  43. package/dist/chunks/index-Clq52PIa.js.map +1 -0
  44. package/dist/foundation/primitives/index.js +5 -4
  45. package/dist/foundation/primitives/index.js.map +1 -1
  46. package/dist/foundation/styles/SurfaceStyles.d.ts +25 -8
  47. package/dist/foundation/styles/index.js +3 -3
  48. package/dist/foundation/themes/Theme.d.ts +33 -0
  49. package/dist/foundation/themes/index.d.ts +1 -1
  50. package/dist/foundation/themes/index.js +1 -1
  51. package/dist/index.css +106 -0
  52. package/dist/index.js +18 -18
  53. package/dist/presentation/actions/index.js +2 -2
  54. package/dist/presentation/display/card/Card.vue.d.ts +4 -1
  55. package/dist/presentation/display/index.js +3 -3
  56. package/dist/presentation/feedback/index.js +3 -3
  57. package/dist/presentation/feedback/toastHost/index.js +1 -1
  58. package/dist/presentation/forms/InputStyles.d.ts +7 -0
  59. package/dist/presentation/forms/ReadOnlyHint.vue.d.ts +6 -0
  60. package/dist/presentation/forms/UseReadOnlyHint.d.ts +17 -0
  61. package/dist/presentation/forms/colorSwatchPicker/ColorSwatchItem.vue.d.ts +2 -0
  62. package/dist/presentation/forms/emojiPicker/EmojiPickerPopover.vue.d.ts +6 -0
  63. package/dist/presentation/forms/fontPicker/FontPicker.vue.d.ts +3 -0
  64. package/dist/presentation/forms/iconPicker/IconPicker.vue.d.ts +6 -0
  65. package/dist/presentation/forms/index.js +2 -2
  66. package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +2 -0
  67. package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +13 -10
  68. package/dist/presentation/layout/index.js +1 -1
  69. package/dist/presentation/layout/navbar/Navbar.variants.d.ts +11 -2
  70. package/dist/presentation/layout/surfaceLayout/SurfaceLayout.vue.d.ts +4 -1
  71. package/dist/presentation/nav/index.js +1 -1
  72. package/dist/presentation/nav/menu/MenuContext.d.ts +1 -1
  73. package/dist/presentation/nav/menu/MenuItem.vue.d.ts +19 -1
  74. package/dist/presentation/overlays/index.js +4 -4
  75. package/dist/themes.css +18 -0
  76. package/package.json +1 -1
  77. package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +0 -1
  78. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +0 -1
  79. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +0 -1
  80. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js.map +0 -1
  81. package/dist/chunks/SurfaceStyles-BYvRlsWe.js.map +0 -1
  82. package/dist/chunks/index-DA17sNzP.js.map +0 -1
  83. package/dist/chunks/index-Dp6L9sX7.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, useAttrs, useTemplateRef, ref, watch, computed, openBlock, createElementBlock, mergeProps, unref, renderSlot, createTextVNode, toDisplayString } from "vue";
2
2
  import { U as UrlExtensions } from "./UrlExtensions-DqgLm0KY.js";
3
3
  import { c as cn } from "./Cn-C7De6POU.js";
4
- import { C as CssExtensions } from "./Tones-Bcz8dIo3.js";
4
+ import { C as CssExtensions } from "./Tones-BU9yaXKf.js";
5
5
  import { u as useSkeletonState } from "./SkeletonStateContext-tVYMa6xt.js";
6
6
  import { tv } from "tailwind-variants";
7
7
  const AvatarShape = {
@@ -264,4 +264,4 @@ export {
264
264
  AvatarTone as c,
265
265
  avatarVariants as d
266
266
  };
267
- //# sourceMappingURL=Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map
267
+ //# sourceMappingURL=Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js","sources":["../../src/presentation/display/avatar/Avatar.variants.ts","../../src/presentation/display/avatar/Avatar.vue"],"sourcesContent":["import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the Avatar silhouette. */\nexport const AvatarShape = {\n /** Refers to a circular avatar. */\n Circle: 'circle',\n /** Refers to a rounded-square avatar. */\n Square: 'square',\n} as const;\n\nexport type AvatarShape = (typeof AvatarShape)[keyof typeof AvatarShape];\n\n/** Defines the Avatar tone palette (`none` cedes color to autoColor). */\nexport const AvatarTone = {\n /** Refers to no tone — autoColor takes over the cascade. */\n None: 'none',\n /** Refers to the neutral / default palette. */\n Neutral: 'neutral',\n /** Refers to the primary brand palette. */\n Primary: 'primary',\n /** Refers to the destructive / error palette. */\n Danger: 'danger',\n /** Refers to the positive / confirmation palette. */\n Success: 'success',\n /** Refers to the caution palette. */\n Warning: 'warning',\n} as const;\n\nexport type AvatarTone = (typeof AvatarTone)[keyof typeof AvatarTone];\n\n/** Defines the Avatar background fill style. */\nexport const AvatarBackground = {\n /** Refers to a flat, solid fill. */\n Solid: 'solid',\n /** Refers to a tone-gradient fill. */\n Gradient: 'gradient',\n} as const;\n\nexport type AvatarBackground = (typeof AvatarBackground)[keyof typeof AvatarBackground];\n\n/** Defines the Avatar focus/emphasis ring tone. */\nexport const AvatarRing = {\n /** Refers to no ring. */\n None: 'none',\n /** Refers to a neutral border ring. */\n Neutral: 'neutral',\n /** Refers to a primary-toned ring. */\n Primary: 'primary',\n /** Refers to a destructive-toned ring. */\n Danger: 'danger',\n /** Refers to a success-toned ring. */\n Success: 'success',\n /** Refers to a caution-toned ring. */\n Warning: 'warning',\n} as const;\n\nexport type AvatarRing = (typeof AvatarRing)[keyof typeof AvatarRing];\n\nexport const avatarVariants = tv({\n base: 'inline-flex shrink-0 select-none items-center justify-center overflow-hidden font-medium',\n variants: {\n size: {\n xs: 'h-6 w-6 text-xs',\n sm: 'h-8 w-8 text-sm',\n md: 'h-10 w-10 text-base',\n lg: 'h-12 w-12 text-lg',\n xl: 'h-16 w-16 text-xl',\n '2xl': 'h-20 w-20 text-2xl',\n },\n shape: {\n circle: 'rounded-full',\n square: 'rounded-md',\n },\n tone: {\n // 'none' is used when autoColor takes over — prevents theme tokens from competing in the cascade.\n none: '',\n neutral: 'bg-muted text-muted-foreground',\n primary: 'bg-primary-soft text-primary-soft-foreground',\n danger: 'bg-destructive-soft text-destructive-soft-foreground',\n success: 'bg-success-soft text-success-soft-foreground',\n warning: 'bg-warning-soft text-warning-soft-foreground',\n },\n bgStyle: {\n solid: '',\n // Gradient class composed in compoundVariants × tone.\n gradient: '',\n },\n ring: {\n none: '',\n neutral: 'ring-2 ring-offset-2 ring-border ring-offset-background',\n primary: 'ring-2 ring-offset-2 ring-primary ring-offset-background',\n danger: 'ring-2 ring-offset-2 ring-destructive ring-offset-background',\n success: 'ring-2 ring-offset-2 ring-success ring-offset-background',\n warning: 'ring-2 ring-offset-2 ring-warning ring-offset-background',\n },\n isLoading: {\n /* The tile keeps its size and shape; forced colours keep it visible as a `GrayText` outline. */\n true:\n 'bg-muted! bg-none! text-transparent [&_*]:invisible motion-safe:animate-pulse ' +\n 'forced-colors:[forced-color-adjust:none] forced-colors:bg-[color:Canvas]! forced-colors:outline-1 ' +\n 'forced-colors:outline-solid forced-colors:-outline-offset-1 forced-colors:outline-[color:GrayText]',\n false: '',\n },\n },\n compoundVariants: [\n // gradient × tone\n { bgStyle: 'gradient', tone: 'neutral', class: 'bg-gradient-to-br from-muted to-muted/40' },\n {\n bgStyle: 'gradient',\n tone: 'primary',\n class: 'bg-gradient-to-br from-primary-soft to-primary text-primary-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'danger',\n class: 'bg-gradient-to-br from-destructive-soft to-destructive text-destructive-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'success',\n class: 'bg-gradient-to-br from-success-soft to-success text-success-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'warning',\n class: 'bg-gradient-to-br from-warning-soft to-warning text-warning-foreground',\n },\n ],\n defaultVariants: {\n size: 'md',\n shape: 'circle',\n tone: 'neutral',\n bgStyle: 'solid',\n ring: 'none',\n isLoading: false,\n },\n});\n\nexport type AvatarVariants = VariantProps<typeof avatarVariants>;\n\n/* Compile-time lock: enum values ≡ tv shape/tone/bgStyle/ring value-sets (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertAvatarShape: AssertExact<AvatarShape, NonNullable<VariantProps<typeof avatarVariants>['shape']>> = true;\nconst _assertAvatarTone: AssertExact<AvatarTone, NonNullable<VariantProps<typeof avatarVariants>['tone']>> = true;\nconst _assertAvatarBackground: AssertExact<\n AvatarBackground,\n NonNullable<VariantProps<typeof avatarVariants>['bgStyle']>\n> = true;\nconst _assertAvatarRing: AssertExact<AvatarRing, NonNullable<VariantProps<typeof avatarVariants>['ring']>> = true;\nvoid _assertAvatarShape;\nvoid _assertAvatarTone;\nvoid _assertAvatarBackground;\nvoid _assertAvatarRing;\n","<script lang=\"ts\">\nimport type { CSSProperties } from 'vue';\nimport type { SizePreset, SizeUnion } from '../../../foundation/styles';\n/* The four value-sets are imported as values (not `import type`) so the one binding serves\n as both the prop type below and the runtime enum used in the auto-color guard. */\nimport { AvatarBackground, AvatarRing, AvatarShape, AvatarTone, type AvatarVariants } from './Avatar.variants';\n\n/* Avatar supports the full canonical preset vocabulary. */\ntype AvatarSizePreset = SizePreset;\n\n/**\n * The size union — preset (`xs|sm|md|lg|xl|2xl`) · raw number/string (square inline dims) ·\n * object (explicit dims). Named here so `AvatarGroup` can reuse it.\n */\nexport type AvatarSize = SizeUnion<AvatarSizePreset>;\n\nconst AvatarSizePresets: ReadonlySet<string> = new Set<AvatarSizePreset>(['xs', 'sm', 'md', 'lg', 'xl', '2xl']);\n\n/* autoColor palette — 17 hues, dark-mode aware. No opacity keeps contrast deterministic. */\nconst AutoColorPalette = [\n 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100',\n 'bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-100',\n 'bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100',\n 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100',\n 'bg-lime-100 text-lime-800 dark:bg-lime-900 dark:text-lime-100',\n 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100',\n 'bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-100',\n 'bg-teal-100 text-teal-800 dark:bg-teal-900 dark:text-teal-100',\n 'bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-100',\n 'bg-sky-100 text-sky-800 dark:bg-sky-900 dark:text-sky-100',\n 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-100',\n 'bg-indigo-100 text-indigo-800 dark:bg-indigo-900 dark:text-indigo-100',\n 'bg-violet-100 text-violet-800 dark:bg-violet-900 dark:text-violet-100',\n 'bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-100',\n 'bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900 dark:text-fuchsia-100',\n 'bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-100',\n 'bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-100',\n];\n\nfunction hashName(name: string): number {\n let h = 0;\n for (let i = 0; i < name.length; i++) {\n h = (h * 31 + name.charCodeAt(i)) | 0;\n }\n return Math.abs(h);\n}\n\nfunction pickAutoColor(name: string): string {\n return AutoColorPalette[hashName(name) % AutoColorPalette.length]!;\n}\n\n/** The first character of a word by code point — `[0]` would split an astral character into a lone surrogate. */\nfunction firstCharacter(word: string | undefined): string {\n return word ? (Array.from(word)[0] ?? '') : '';\n}\n\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) return '';\n const first = firstCharacter(parts[0]);\n const last = parts.length > 1 ? firstCharacter(parts[parts.length - 1]) : '';\n return (first + last).toUpperCase();\n}\n\nexport interface AvatarProps {\n /** The silhouette. */\n readonly shape?: AvatarShape;\n\n /** The tone palette (`none` cedes color to autoColor). */\n readonly tone?: AvatarTone;\n\n /** The background fill style. */\n readonly bgStyle?: AvatarBackground;\n\n /** The focus/emphasis ring tone. */\n readonly ring?: AvatarRing;\n\n /** The skeleton state — pulses the tile and hides its content. Defaults to the nearest `DataRegion` first load. */\n readonly isLoading?: boolean;\n\n /** The image source; falls back to `name` initials or `fallback` on error. */\n readonly src?: string;\n\n /** The person/entity name — used to derive initials when no image. */\n readonly name?: string;\n\n /** The custom fallback (overrides initials). Rich content goes through the `fallback` slot. */\n readonly fallback?: string | number;\n\n /** The alt text for the underlying `<img>` (defaults to `name`). */\n readonly alt?: string;\n\n /**\n * The auto-color flag — derives a deterministic tint from the `name` hash.\n * A non-neutral `tone` or a non-solid `bgStyle` overrides it.\n */\n readonly canAutoColor?: boolean;\n\n /** The size — preset → variant class · number/string → square inline · object → explicit dims. */\n readonly size?: AvatarSize;\n}\n\n/* Compile-time lock: the hand-written `isLoading` prop ≡ the tv variant key (drift = type error).\n `shape` / `tone` / `bgStyle` / `ring` need no lock here — they use the named enums the\n variants file already locks against `avatarVariants`. */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertAvatarLoading: AssertExact<\n NonNullable<AvatarProps['isLoading']>,\n NonNullable<AvatarVariants['isLoading']>\n> = true;\nvoid _assertAvatarLoading;\n</script>\n\n<script setup lang=\"ts\">\nimport { UrlExtensions } from '../../../foundation/dom';\nimport { computed, ref, useAttrs, useTemplateRef, watch } from 'vue';\nimport { cn, CssExtensions } from '../../../foundation/styles';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { avatarVariants } from './Avatar.variants';\n\n/**\n * Renders a user image avatar that falls back to initials, with tone, ring, and loading skeleton.\n *\n * Auto-color is a deterministic hash of the name. Compose with `BadgeOverlay` for status dots / counts / icons.\n */\ndefineOptions({ name: 'Avatar', inheritAttrs: false });\n\ndefineSlots<{\n /** The custom fallback content — wins over the `fallback` prop and the derived initials. */\n fallback?(): unknown;\n}>();\n\n/**\n * `isLoading` / `canAutoColor` default to `undefined`, not `false`: Vue casts an absent\n * `Boolean` prop to `false`, and `avatarVariants` expects the tri-state React handed it.\n */\nconst props = withDefaults(defineProps<AvatarProps>(), {\n name: '',\n isLoading: undefined,\n canAutoColor: undefined,\n});\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLSpanElement>('el');\n\nconst errored = ref(false);\n\n/* A new src deserves a fresh load attempt — reset the error latch. */\nwatch(\n () => props.src,\n () => {\n errored.value = false;\n },\n);\n\n/* An absent `isLoading` follows the nearest `DataRegion` first load; an explicit one wins either way. */\nconst skeleton = useSkeletonState(() => props.isLoading);\nconst loading = computed(() => skeleton.isSkeleton.value);\n\nconst showImage = computed(() => !!props.src && !errored.value && !loading.value);\n\n/* Parse union-typed `size` — preset routes to variant class, raw/object routes to inline dims. */\nconst parsedSize = computed(() => CssExtensions.parseSizeUnion<AvatarSizePreset>(props.size, AvatarSizePresets));\n\nconst boxStyle = computed<CSSProperties | undefined>(() =>\n parsedSize.value.box ? CssExtensions.resolveBoxSize(parsedSize.value.box) : undefined,\n);\n\n/* Auto-color fires only when: name set, no explicit non-neutral tone, bgStyle not gradient. Explicit dials win. */\nconst autoColorClass = computed(() =>\n props.canAutoColor &&\n props.name &&\n props.bgStyle !== AvatarBackground.Gradient &&\n (props.tone === undefined || props.tone === AvatarTone.Neutral)\n ? pickAutoColor(props.name)\n : undefined,\n);\n\n/* When auto-color is active, suppress the tone variant so its theme-token classes don't compete in the cascade. */\nconst effectiveTone = computed(() => (autoColorClass.value ? AvatarTone.None : props.tone));\n\nconst initials = computed(() => getInitials(props.name));\n\n/*\n * Without an image the initials are not a name — \"AK\" reads as two letters. The fallback therefore speaks as one\n * image named like the `<img>` would be: `alt`, else `name`. An empty `alt` marks the avatar decorative.\n */\nconst fallbackName = computed(() => (props.alt === '' ? undefined : (props.alt ?? (props.name || undefined))));\nconst isDecorative = computed(() => props.alt === '');\n\nconst classes = computed(() =>\n cn(\n avatarVariants({\n size: parsedSize.value.preset,\n shape: props.shape,\n tone: effectiveTone.value,\n bgStyle: props.bgStyle,\n ring: props.ring,\n isLoading: loading.value,\n }),\n autoColorClass.value,\n attrs.class as string | undefined,\n ),\n);\n\n/** The consumer's inline style lands last, so it wins over the parsed box dims. */\nconst styles = computed(() => [boxStyle.value, attrs.style as CSSProperties | undefined]);\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 <!-- Own attrs first, `v-bind=\"rest\"` after — a consumer-supplied `data-loading` / `aria-busy`\n still wins, as it did through React's trailing `{...props}` spread. -->\n <span\n ref=\"el\"\n :data-loading=\"loading ? 'true' : undefined\"\n :aria-busy=\"loading ? true : undefined\"\n :role=\"!showImage && fallbackName ? 'img' : undefined\"\n :aria-label=\"!showImage ? fallbackName : undefined\"\n :aria-hidden=\"isDecorative ? 'true' : undefined\"\n v-bind=\"rest\"\n :class=\"classes\"\n :style=\"styles\"\n >\n <img\n v-if=\"showImage\"\n :src=\"UrlExtensions.safeResource(props.src)\"\n :alt=\"props.alt ?? props.name\"\n class=\"h-full w-full object-cover\"\n @error=\"errored = true\"\n />\n <span v-else :aria-hidden=\"fallbackName ? 'true' : undefined\" class=\"contents\">\n <slot name=\"fallback\">{{ props.fallback ?? initials }}</slot>\n </span>\n </span>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_renderSlot"],"mappings":";;;;;;AAGO,MAAM,cAAc;AAAA;AAAA,EAEzB,QAAQ;AAAA;AAAA,EAER,QAAQ;AACV;AAKO,MAAM,aAAa;AAAA;AAAA,EAExB,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EA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AQ;AAAA,QAAA,CACpB;AAAA,QACD,eAAe;AAAA,QACf,MAAM;AAAA,MAAA;AAAA,IACR;AAIF,UAAM,SAAS,SAAS,MAAM,CAAC,SAAS,OAAO,MAAM,KAAkC,CAAC;AAGxF,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,OAAO,QAAQ,GAAG,WAAW;AACpD,aAAO;AAAA,IACT,CAAC;AAED,aAAa,EAAE,IAAI;;AAMjB,aAAAA,UAAA,GAAAC,mBAqBO,QArBPC,WAqBO;AAAA,iBApBD;AAAA,QAAJ,KAAI;AAAA,QACH,gBAAc,QAAA,QAAO,SAAY;AAAA,QACjC,aAAW,QAAA,QAAO,OAAU;AAAA,QAC5B,MAAI,CAAG,UAAA,SAAa,aAAA,gBAAuB;AAAA,QAC3C,cAAU,CAAG,UAAA,QAAY,aAAA,QAAe;AAAA,QACxC,eAAa,aAAA,QAAY,SAAY;AAAA,MAAA,GAC9B,KAAA,OAAI;AAAA,QACX,OAAO,QAAA;AAAA,QACP,OAAO,OAAA;AAAA,MAAA;QAGA,UAAA,sBADRD,mBAME,OAAA;AAAA;UAJC,KAAKE,MAAA,aAAA,EAAc,aAAa,MAAM,GAAG;AAAA,UACzC,KAAK,MAAM,OAAO,MAAM;AAAA,UACzB,OAAM;AAAA,UACL,+CAAO,QAAA,QAAO;AAAA,QAAA,0CAEjBF,mBAEO,QAAA;AAAA;UAFO,eAAa,aAAA,QAAY,SAAY;AAAA,UAAW,OAAM;AAAA,QAAA;UAClEG,WAA6D,6BAA7D,MAA6D;AAAA,4CAApC,MAAM,YAAY,SAAA,KAAQ,GAAA,CAAA;AAAA,UAAA;;;;;;"}
1
+ {"version":3,"file":"Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js","sources":["../../src/presentation/display/avatar/Avatar.variants.ts","../../src/presentation/display/avatar/Avatar.vue"],"sourcesContent":["import { tv, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the Avatar silhouette. */\nexport const AvatarShape = {\n /** Refers to a circular avatar. */\n Circle: 'circle',\n /** Refers to a rounded-square avatar. */\n Square: 'square',\n} as const;\n\nexport type AvatarShape = (typeof AvatarShape)[keyof typeof AvatarShape];\n\n/** Defines the Avatar tone palette (`none` cedes color to autoColor). */\nexport const AvatarTone = {\n /** Refers to no tone — autoColor takes over the cascade. */\n None: 'none',\n /** Refers to the neutral / default palette. */\n Neutral: 'neutral',\n /** Refers to the primary brand palette. */\n Primary: 'primary',\n /** Refers to the destructive / error palette. */\n Danger: 'danger',\n /** Refers to the positive / confirmation palette. */\n Success: 'success',\n /** Refers to the caution palette. */\n Warning: 'warning',\n} as const;\n\nexport type AvatarTone = (typeof AvatarTone)[keyof typeof AvatarTone];\n\n/** Defines the Avatar background fill style. */\nexport const AvatarBackground = {\n /** Refers to a flat, solid fill. */\n Solid: 'solid',\n /** Refers to a tone-gradient fill. */\n Gradient: 'gradient',\n} as const;\n\nexport type AvatarBackground = (typeof AvatarBackground)[keyof typeof AvatarBackground];\n\n/** Defines the Avatar focus/emphasis ring tone. */\nexport const AvatarRing = {\n /** Refers to no ring. */\n None: 'none',\n /** Refers to a neutral border ring. */\n Neutral: 'neutral',\n /** Refers to a primary-toned ring. */\n Primary: 'primary',\n /** Refers to a destructive-toned ring. */\n Danger: 'danger',\n /** Refers to a success-toned ring. */\n Success: 'success',\n /** Refers to a caution-toned ring. */\n Warning: 'warning',\n} as const;\n\nexport type AvatarRing = (typeof AvatarRing)[keyof typeof AvatarRing];\n\nexport const avatarVariants = tv({\n base: 'inline-flex shrink-0 select-none items-center justify-center overflow-hidden font-medium',\n variants: {\n size: {\n xs: 'h-6 w-6 text-xs',\n sm: 'h-8 w-8 text-sm',\n md: 'h-10 w-10 text-base',\n lg: 'h-12 w-12 text-lg',\n xl: 'h-16 w-16 text-xl',\n '2xl': 'h-20 w-20 text-2xl',\n },\n shape: {\n circle: 'rounded-full',\n square: 'rounded-md',\n },\n tone: {\n // 'none' is used when autoColor takes over — prevents theme tokens from competing in the cascade.\n none: '',\n neutral: 'bg-muted text-muted-foreground',\n primary: 'bg-primary-soft text-primary-soft-foreground',\n danger: 'bg-destructive-soft text-destructive-soft-foreground',\n success: 'bg-success-soft text-success-soft-foreground',\n warning: 'bg-warning-soft text-warning-soft-foreground',\n },\n bgStyle: {\n solid: '',\n // Gradient class composed in compoundVariants × tone.\n gradient: '',\n },\n ring: {\n none: '',\n neutral: 'ring-2 ring-offset-2 ring-border ring-offset-background',\n primary: 'ring-2 ring-offset-2 ring-primary ring-offset-background',\n danger: 'ring-2 ring-offset-2 ring-destructive ring-offset-background',\n success: 'ring-2 ring-offset-2 ring-success ring-offset-background',\n warning: 'ring-2 ring-offset-2 ring-warning ring-offset-background',\n },\n isLoading: {\n /* The tile keeps its size and shape; forced colours keep it visible as a `GrayText` outline. */\n true:\n 'bg-muted! bg-none! text-transparent [&_*]:invisible motion-safe:animate-pulse ' +\n 'forced-colors:[forced-color-adjust:none] forced-colors:bg-[color:Canvas]! forced-colors:outline-1 ' +\n 'forced-colors:outline-solid forced-colors:-outline-offset-1 forced-colors:outline-[color:GrayText]',\n false: '',\n },\n },\n compoundVariants: [\n // gradient × tone\n { bgStyle: 'gradient', tone: 'neutral', class: 'bg-gradient-to-br from-muted to-muted/40' },\n {\n bgStyle: 'gradient',\n tone: 'primary',\n class: 'bg-gradient-to-br from-primary-soft to-primary text-primary-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'danger',\n class: 'bg-gradient-to-br from-destructive-soft to-destructive text-destructive-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'success',\n class: 'bg-gradient-to-br from-success-soft to-success text-success-foreground',\n },\n {\n bgStyle: 'gradient',\n tone: 'warning',\n class: 'bg-gradient-to-br from-warning-soft to-warning text-warning-foreground',\n },\n ],\n defaultVariants: {\n size: 'md',\n shape: 'circle',\n tone: 'neutral',\n bgStyle: 'solid',\n ring: 'none',\n isLoading: false,\n },\n});\n\nexport type AvatarVariants = VariantProps<typeof avatarVariants>;\n\n/* Compile-time lock: enum values ≡ tv shape/tone/bgStyle/ring value-sets (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertAvatarShape: AssertExact<AvatarShape, NonNullable<VariantProps<typeof avatarVariants>['shape']>> = true;\nconst _assertAvatarTone: AssertExact<AvatarTone, NonNullable<VariantProps<typeof avatarVariants>['tone']>> = true;\nconst _assertAvatarBackground: AssertExact<\n AvatarBackground,\n NonNullable<VariantProps<typeof avatarVariants>['bgStyle']>\n> = true;\nconst _assertAvatarRing: AssertExact<AvatarRing, NonNullable<VariantProps<typeof avatarVariants>['ring']>> = true;\nvoid _assertAvatarShape;\nvoid _assertAvatarTone;\nvoid _assertAvatarBackground;\nvoid _assertAvatarRing;\n","<script lang=\"ts\">\nimport type { CSSProperties } from 'vue';\nimport type { SizePreset, SizeUnion } from '../../../foundation/styles';\n/* The four value-sets are imported as values (not `import type`) so the one binding serves\n as both the prop type below and the runtime enum used in the auto-color guard. */\nimport { AvatarBackground, AvatarRing, AvatarShape, AvatarTone, type AvatarVariants } from './Avatar.variants';\n\n/* Avatar supports the full canonical preset vocabulary. */\ntype AvatarSizePreset = SizePreset;\n\n/**\n * The size union — preset (`xs|sm|md|lg|xl|2xl`) · raw number/string (square inline dims) ·\n * object (explicit dims). Named here so `AvatarGroup` can reuse it.\n */\nexport type AvatarSize = SizeUnion<AvatarSizePreset>;\n\nconst AvatarSizePresets: ReadonlySet<string> = new Set<AvatarSizePreset>(['xs', 'sm', 'md', 'lg', 'xl', '2xl']);\n\n/* autoColor palette — 17 hues, dark-mode aware. No opacity keeps contrast deterministic. */\nconst AutoColorPalette = [\n 'bg-red-100 text-red-800 dark:bg-red-900 dark:text-red-100',\n 'bg-orange-100 text-orange-800 dark:bg-orange-900 dark:text-orange-100',\n 'bg-amber-100 text-amber-800 dark:bg-amber-900 dark:text-amber-100',\n 'bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-100',\n 'bg-lime-100 text-lime-800 dark:bg-lime-900 dark:text-lime-100',\n 'bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-100',\n 'bg-emerald-100 text-emerald-800 dark:bg-emerald-900 dark:text-emerald-100',\n 'bg-teal-100 text-teal-800 dark:bg-teal-900 dark:text-teal-100',\n 'bg-cyan-100 text-cyan-800 dark:bg-cyan-900 dark:text-cyan-100',\n 'bg-sky-100 text-sky-800 dark:bg-sky-900 dark:text-sky-100',\n 'bg-blue-100 text-blue-800 dark:bg-blue-900 dark:text-blue-100',\n 'bg-indigo-100 text-indigo-800 dark:bg-indigo-900 dark:text-indigo-100',\n 'bg-violet-100 text-violet-800 dark:bg-violet-900 dark:text-violet-100',\n 'bg-purple-100 text-purple-800 dark:bg-purple-900 dark:text-purple-100',\n 'bg-fuchsia-100 text-fuchsia-800 dark:bg-fuchsia-900 dark:text-fuchsia-100',\n 'bg-pink-100 text-pink-800 dark:bg-pink-900 dark:text-pink-100',\n 'bg-rose-100 text-rose-800 dark:bg-rose-900 dark:text-rose-100',\n];\n\nfunction hashName(name: string): number {\n let h = 0;\n for (let i = 0; i < name.length; i++) {\n h = (h * 31 + name.charCodeAt(i)) | 0;\n }\n return Math.abs(h);\n}\n\nfunction pickAutoColor(name: string): string {\n return AutoColorPalette[hashName(name) % AutoColorPalette.length]!;\n}\n\n/** The first character of a word by code point — `[0]` would split an astral character into a lone surrogate. */\nfunction firstCharacter(word: string | undefined): string {\n return word ? (Array.from(word)[0] ?? '') : '';\n}\n\nfunction getInitials(name: string): string {\n const parts = name.trim().split(/\\s+/).filter(Boolean);\n if (parts.length === 0) return '';\n const first = firstCharacter(parts[0]);\n const last = parts.length > 1 ? firstCharacter(parts[parts.length - 1]) : '';\n return (first + last).toUpperCase();\n}\n\nexport interface AvatarProps {\n /** The silhouette. */\n readonly shape?: AvatarShape;\n\n /** The tone palette (`none` cedes color to autoColor). */\n readonly tone?: AvatarTone;\n\n /** The background fill style. */\n readonly bgStyle?: AvatarBackground;\n\n /** The focus/emphasis ring tone. */\n readonly ring?: AvatarRing;\n\n /** The skeleton state — pulses the tile and hides its content. Defaults to the nearest `DataRegion` first load. */\n readonly isLoading?: boolean;\n\n /** The image source; falls back to `name` initials or `fallback` on error. */\n readonly src?: string;\n\n /** The person/entity name — used to derive initials when no image. */\n readonly name?: string;\n\n /** The custom fallback (overrides initials). Rich content goes through the `fallback` slot. */\n readonly fallback?: string | number;\n\n /** The alt text for the underlying `<img>` (defaults to `name`). */\n readonly alt?: string;\n\n /**\n * The auto-color flag — derives a deterministic tint from the `name` hash.\n * A non-neutral `tone` or a non-solid `bgStyle` overrides it.\n */\n readonly canAutoColor?: boolean;\n\n /** The size — preset → variant class · number/string → square inline · object → explicit dims. */\n readonly size?: AvatarSize;\n}\n\n/* Compile-time lock: the hand-written `isLoading` prop ≡ the tv variant key (drift = type error).\n `shape` / `tone` / `bgStyle` / `ring` need no lock here — they use the named enums the\n variants file already locks against `avatarVariants`. */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertAvatarLoading: AssertExact<\n NonNullable<AvatarProps['isLoading']>,\n NonNullable<AvatarVariants['isLoading']>\n> = true;\nvoid _assertAvatarLoading;\n</script>\n\n<script setup lang=\"ts\">\nimport { UrlExtensions } from '../../../foundation/dom';\nimport { computed, ref, useAttrs, useTemplateRef, watch } from 'vue';\nimport { cn, CssExtensions } from '../../../foundation/styles';\nimport { useSkeletonState } from '../../feedback/skeletonState/SkeletonStateContext';\nimport { avatarVariants } from './Avatar.variants';\n\n/**\n * Renders a user image avatar that falls back to initials, with tone, ring, and loading skeleton.\n *\n * Auto-color is a deterministic hash of the name. Compose with `BadgeOverlay` for status dots / counts / icons.\n */\ndefineOptions({ name: 'Avatar', inheritAttrs: false });\n\ndefineSlots<{\n /** The custom fallback content — wins over the `fallback` prop and the derived initials. */\n fallback?(): unknown;\n}>();\n\n/**\n * `isLoading` / `canAutoColor` default to `undefined`, not `false`: Vue casts an absent\n * `Boolean` prop to `false`, and `avatarVariants` expects the tri-state React handed it.\n */\nconst props = withDefaults(defineProps<AvatarProps>(), {\n name: '',\n isLoading: undefined,\n canAutoColor: undefined,\n});\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLSpanElement>('el');\n\nconst errored = ref(false);\n\n/* A new src deserves a fresh load attempt — reset the error latch. */\nwatch(\n () => props.src,\n () => {\n errored.value = false;\n },\n);\n\n/* An absent `isLoading` follows the nearest `DataRegion` first load; an explicit one wins either way. */\nconst skeleton = useSkeletonState(() => props.isLoading);\nconst loading = computed(() => skeleton.isSkeleton.value);\n\nconst showImage = computed(() => !!props.src && !errored.value && !loading.value);\n\n/* Parse union-typed `size` — preset routes to variant class, raw/object routes to inline dims. */\nconst parsedSize = computed(() => CssExtensions.parseSizeUnion<AvatarSizePreset>(props.size, AvatarSizePresets));\n\nconst boxStyle = computed<CSSProperties | undefined>(() =>\n parsedSize.value.box ? CssExtensions.resolveBoxSize(parsedSize.value.box) : undefined,\n);\n\n/* Auto-color fires only when: name set, no explicit non-neutral tone, bgStyle not gradient. Explicit dials win. */\nconst autoColorClass = computed(() =>\n props.canAutoColor &&\n props.name &&\n props.bgStyle !== AvatarBackground.Gradient &&\n (props.tone === undefined || props.tone === AvatarTone.Neutral)\n ? pickAutoColor(props.name)\n : undefined,\n);\n\n/* When auto-color is active, suppress the tone variant so its theme-token classes don't compete in the cascade. */\nconst effectiveTone = computed(() => (autoColorClass.value ? AvatarTone.None : props.tone));\n\nconst initials = computed(() => getInitials(props.name));\n\n/*\n * Without an image the initials are not a name — \"AK\" reads as two letters. The fallback therefore speaks as one\n * image named like the `<img>` would be: `alt`, else `name`. An empty `alt` marks the avatar decorative.\n */\nconst fallbackName = computed(() => (props.alt === '' ? undefined : (props.alt ?? (props.name || undefined))));\nconst isDecorative = computed(() => props.alt === '');\n\nconst classes = computed(() =>\n cn(\n avatarVariants({\n size: parsedSize.value.preset,\n shape: props.shape,\n tone: effectiveTone.value,\n bgStyle: props.bgStyle,\n ring: props.ring,\n isLoading: loading.value,\n }),\n autoColorClass.value,\n attrs.class as string | undefined,\n ),\n);\n\n/** The consumer's inline style lands last, so it wins over the parsed box dims. */\nconst styles = computed(() => [boxStyle.value, attrs.style as CSSProperties | undefined]);\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 <!-- Own attrs first, `v-bind=\"rest\"` after — a consumer-supplied `data-loading` / `aria-busy`\n still wins, as it did through React's trailing `{...props}` spread. -->\n <span\n ref=\"el\"\n :data-loading=\"loading ? 'true' : undefined\"\n :aria-busy=\"loading ? true : undefined\"\n :role=\"!showImage && fallbackName ? 'img' : undefined\"\n :aria-label=\"!showImage ? fallbackName : undefined\"\n :aria-hidden=\"isDecorative ? 'true' : undefined\"\n v-bind=\"rest\"\n :class=\"classes\"\n :style=\"styles\"\n >\n <img\n v-if=\"showImage\"\n :src=\"UrlExtensions.safeResource(props.src)\"\n :alt=\"props.alt ?? props.name\"\n class=\"h-full w-full object-cover\"\n @error=\"errored = true\"\n />\n <span v-else :aria-hidden=\"fallbackName ? 'true' : undefined\" class=\"contents\">\n <slot name=\"fallback\">{{ props.fallback ?? initials }}</slot>\n </span>\n </span>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_renderSlot"],"mappings":";;;;;;AAGO,MAAM,cAAc;AAAA;AAAA,EAEzB,QAAQ;AAAA;AAAA,EAER,QAAQ;AACV;AAKO,MAAM,aAAa;AAAA;AAAA,EAExB,MAAM;AAAA;AAAA,EAEN,SAAS;AAAA;AAAA,EAET,SAAS;AAAA;AAAA,EAET,QAAQ;AAAA;AAAA,EAER,SAAS;AAAA;AAAA,EAET,SAAS;AACX;AAKO,MAAM,mBAAmB;AAAA;AAAA,EAE9B,OAAO;AAAA;AAAA,EAEP,UAAU;AACZ;AAKO,MAAM,aAAa;AAAA;AAAA,EAExB,MAAM;AA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C1B,YAAM,EAAE,OAAO,QAAQ,OAAO,QAAQ,GAAG,WAAW;AACpD,aAAO;AAAA,IACT,CAAC;AAED,aAAa,EAAE,IAAI;;AAMjB,aAAAA,UAAA,GAAAC,mBAqBO,QArBPC,WAqBO;AAAA,iBApBD;AAAA,QAAJ,KAAI;AAAA,QACH,gBAAc,QAAA,QAAO,SAAY;AAAA,QACjC,aAAW,QAAA,QAAO,OAAU;AAAA,QAC5B,MAAI,CAAG,UAAA,SAAa,aAAA,gBAAuB;AAAA,QAC3C,cAAU,CAAG,UAAA,QAAY,aAAA,QAAe;AAAA,QACxC,eAAa,aAAA,QAAY,SAAY;AAAA,MAAA,GAC9B,KAAA,OAAI;AAAA,QACX,OAAO,QAAA;AAAA,QACP,OAAO,OAAA;AAAA,MAAA;QAGA,UAAA,sBADRD,mBAME,OAAA;AAAA;UAJC,KAAKE,MAAA,aAAA,EAAc,aAAa,MAAM,GAAG;AAAA,UACzC,KAAK,MAAM,OAAO,MAAM;AAAA,UACzB,OAAM;AAAA,UACL,+CAAO,QAAA,QAAO;AAAA,QAAA,0CAEjBF,mBAEO,QAAA;AAAA;UAFO,eAAa,aAAA,QAAY,SAAY;AAAA,UAAW,OAAM;AAAA,QAAA;UAClEG,WAA6D,6BAA7D,MAA6D;AAAA,4CAApC,MAAM,YAAY,SAAA,KAAQ,GAAA,CAAA;AAAA,UAAA;;;;;;"}
@@ -6,7 +6,7 @@ import { u as useClipboard } from "./UseClipboard-D5jEv39w.js";
6
6
  import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
7
7
  import { D as DomEvent, A as AttributeValue, u as useOutsideClick } from "./UseOutsideClick-8TTSb9x6.js";
8
8
  import { O as OptionalExtensions } from "./OptionalExtensions-NiO6gV0W.js";
9
- import { a as ButtonVariant, _ as _sfc_main$e } from "./Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js";
9
+ import { a as ButtonVariant, _ as _sfc_main$e } from "./Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js";
10
10
  import { _ as _sfc_main$f } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
11
11
  import { u as useGoogleIdentity, G as GoogleIdentityStatus } from "./GoogleIdentity-WSQsNIRW.js";
12
12
  import { d as dataAttr } from "./DataAttr-7BR67dTj.js";
@@ -958,4 +958,4 @@ export {
958
958
  useToolbarContext as p,
959
959
  useSpeedDialContext as u
960
960
  };
961
- //# sourceMappingURL=BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map
961
+ //# sourceMappingURL=BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js","sources":["../../src/presentation/actions/buttonGroup/ButtonGroup.vue","../../src/presentation/actions/fabButton/FabButton.variants.ts","../../src/presentation/actions/fabButton/FabButton.vue","../../src/presentation/actions/copyButton/CopyButton.vue","../../src/presentation/actions/googleSignInButton/GoogleSignInButton.vue","../../src/presentation/actions/disclosureButton/DisclosureButton.vue","../../src/presentation/actions/toolbar/ToolbarContext.ts","../../src/presentation/actions/toolbar/Toolbar.vue","../../src/presentation/actions/toolbar/ToolbarButton.vue","../../src/presentation/actions/toolbar/ToolbarLink.vue","../../src/presentation/actions/toolbar/ToolbarSeparator.vue","../../src/presentation/actions/toolbar/index.ts","../../src/presentation/actions/speedDialGroup/SpeedDialGroupContext.ts","../../src/presentation/actions/speedDialGroup/SpeedDialGroupList.vue","../../src/presentation/actions/speedDialGroup/SpeedDialGroupTrigger.vue","../../src/presentation/actions/speedDialGroup/SpeedDialGroup.vue","../../src/presentation/actions/speedDialGroup/SpeedDialGroupAction.vue","../../src/presentation/actions/speedDialGroup/index.ts","../../src/presentation/actions/backToTopButton/BackToTopButton.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\n\n/* Native div attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface ButtonGroupProps extends /* @vue-ignore */ HTMLAttributes {\n /** The visual orientation. Default `horizontal`. */\n readonly orientation?: Orientation;\n\n /** The attached state — groups children with collapsed inner radii (connected look). Default `true`. */\n readonly isAttached?: boolean;\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/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\n/** Renders a row or column of related buttons, collapsing their inner radii into one connected control. */\ndefineOptions({ name: 'ButtonGroup', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ButtonGroupProps>(), {\n orientation: OrientationValue.Horizontal,\n isAttached: true,\n});\n\ndefineSlots<{\n /** The buttons the group lays out and joins into one connected control. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\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 isHorizontal = computed(() => props.orientation === OrientationValue.Horizontal);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex',\n isHorizontal.value ? 'flex-row' : 'flex-col',\n props.isAttached\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 : 'gap-2',\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 <!-- Visually groups action-children — collapses inner radii when `isAttached`. -->\n <div ref=\"root\" role=\"group\" :data-orientation=\"orientation\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </div>\n</template>\n","import { tv, OverlayPosition, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the FabButton's visual surface style. */\nexport const FabButtonVariant = {\n /** Refers to the primary brand-filled surface. */\n Primary: 'primary',\n /** Refers to the neutral card surface with a hairline border. */\n Secondary: 'secondary',\n /** Refers to the destructive / error-filled surface. */\n Destructive: 'destructive',\n} as const;\n\nexport type FabButtonVariant = (typeof FabButtonVariant)[keyof typeof FabButtonVariant];\n\n/** Defines the FabButton's diameter. */\nexport const FabButtonSize = {\n /** Refers to the small (2.5rem) diameter. */\n Sm: 'sm',\n /** Refers to the medium (3.5rem) default diameter. */\n Md: 'md',\n /** Refers to the large (4rem) diameter. */\n Lg: 'lg',\n} as const;\n\nexport type FabButtonSize = (typeof FabButtonSize)[keyof typeof FabButtonSize];\n\nexport const fabVariants = tv({\n base: 'fixed inline-flex items-center justify-center rounded-full shadow-lg transition-all hover:shadow-xl focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n secondary: 'bg-card text-card-foreground border border-border hover:bg-muted',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n },\n size: {\n sm: 'h-10 w-10',\n md: 'h-14 w-14',\n lg: 'h-16 w-16',\n },\n position: {\n 'bottom-right': 'bottom-6 right-6',\n 'bottom-left': 'bottom-6 left-6',\n 'bottom-center': 'bottom-6 left-1/2 -translate-x-1/2',\n 'top-right': 'top-6 right-6',\n 'top-left': 'top-6 left-6',\n 'top-center': 'top-6 left-1/2 -translate-x-1/2',\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'md',\n position: 'bottom-right',\n },\n});\n\nexport type FabButtonVariants = VariantProps<typeof fabVariants>;\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertFabVariant: AssertExact<FabButtonVariant, NonNullable<FabButtonVariants['variant']>> = true;\nconst _assertFabSize: AssertExact<FabButtonSize, NonNullable<FabButtonVariants['size']>> = true;\nconst _assertFabPosition: AssertExact<OverlayPosition, NonNullable<FabButtonVariants['position']>> = true;\nvoid _assertFabVariant;\nvoid _assertFabSize;\nvoid _assertFabPosition;\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes } from 'vue';\nimport { AriaAttribute } from '../../../foundation/dom';\nimport { type OverlayPosition } from '../../../foundation/styles';\nimport type { FabButtonVariants, FabButtonVariant, FabButtonSize } from './FabButton.variants';\n\n/** @internal An attribute name this component derives or requires. */\ntype RequiredAttribute = typeof AriaAttribute.Label;\n\n/* The required accessible label rides on the ignored heritage rather than the body — FabButton content\n is typically icon-only, so the name is mandatory, but it must reach the DOM as an attribute. */\ntype FabButtonAttributes = ButtonHTMLAttributes & Record<RequiredAttribute, string>;\n\n/* Both heritage types are `@vue-ignore`d — native button attributes belong in attribute\n fallthrough, and `FabButtonVariants` resolves through `typeof fabVariants`, which the SFC prop\n compiler cannot walk. */\ntype FabButtonBase = FabButtonAttributes & Omit<FabButtonVariants, 'variant' | 'size' | 'position'>;\n\nexport interface FabButtonProps extends /* @vue-ignore */ FabButtonBase {\n /** The visual surface style. */\n readonly variant?: FabButtonVariant;\n /** The button diameter. */\n readonly size?: FabButtonSize;\n /** The anchor position on the viewport. */\n readonly position?: OverlayPosition;\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { fabVariants } from './FabButton.variants';\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. */\n/** Renders a floating action button — a circular, shadowed control pinned to a corner of the viewport. */\ndefineOptions({ name: 'FabButton', inheritAttrs: false });\n\n/* `aria-label` is deliberately NOT a declared prop: Vue camelizes prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It stays a fallthrough attr;\n the interface keeps the requirement through the `@vue-ignore`d heritage. */\n/* `children` has no prop counterpart — it is the default slot. */\nconst props = withDefaults(defineProps<FabButtonProps>(), { type: ButtonType.Button });\n\ndefineSlots<{\n /** The button's content — typically a single icon. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\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(fabVariants({ variant: props.variant, size: props.size, position: props.position }), attrs.class as ClassValue),\n);\n\nconst root = useTemplateRef<HTMLButtonElement>('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 <!-- Floating Action Button — fixed-position circular button with shadow. -->\n <button ref=\"root\" :type=\"type\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </button>\n</template>\n","<script lang=\"ts\">\nimport { AriaAttribute, DomEvent, type HandlerProp } from '../../../foundation/dom';\nimport type { ButtonProps } from '../button';\n\n/** @internal The attributes this component renders itself rather than forwarding. */\nconst OwnedAttributes = [AriaAttribute.Label] as const;\n\n/** @internal An attribute name from {@link OwnedAttributes}. */\ntype OwnedAttribute = (typeof OwnedAttributes)[number];\n\n/** @internal The `ButtonProps` handler this component replaces with its own emit. */\ntype ReplacedButtonProp = keyof Pick<ButtonProps, HandlerProp<typeof DomEvent.Error>>;\n\n/** Defines the forwarded `ButtonProps`, with the owned attributes re-added as required. */\ntype CopyButtonAttributes = Omit<ButtonProps, ReplacedButtonProp | OwnedAttribute> & Record<OwnedAttribute, string>;\n\n/** Defines props for the clipboard-copy button. */\nexport interface CopyButtonProps extends /* @vue-ignore */ CopyButtonAttributes {\n /** The text to copy when the button is activated. */\n readonly text: string;\n\n /** The reset window for the `copied` state in ms. Default 2000. Set 0 to hold `copied` until the next mount. */\n readonly resetAfter?: number;\n\n /** The accessible name to announce while `copied` is true. Falls back to `aria-label` when omitted. */\n readonly copiedAriaLabel?: string;\n\n /** The accessible name to announce while the last copy has failed. Falls back to `aria-label` when omitted. */\n readonly failedAriaLabel?: string;\n\n /** The visual surface style. Default `ghost`. */\n readonly variant?: ButtonVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, watch } from 'vue';\nimport { Check, Copy, X } from 'lucide-vue-next';\n\nimport { Icon } from '../../../foundation/icons';\nimport { useClipboard } from '../../../foundation/clipboard';\nimport { AttributeValue } from '../../../foundation/dom';\nimport { OptionalExtensions } from '../../../foundation/optionals';\nimport Button from '../button/Button.vue';\nimport { ButtonVariant } from '../button';\n\n/** Renders a clipboard-copy button — for code blocks, ID / URL fields, and inline copy affordances. */\ndefineOptions({ name: 'CopyButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<CopyButtonProps>(), {\n resetAfter: 2000,\n variant: ButtonVariant.Ghost,\n});\n\nconst emit = defineEmits<{\n /** Fires when the copy fails — the Clipboard API and the legacy fallback both refused — once per failure. */\n error: [error: Error];\n}>();\n\nconst slots = defineSlots<{\n /** The content — receives `{ copied, error }` for a state-driven swap. Icon-only Copy/Check/X when omitted. */\n default?: (props: { copied: boolean; error: Error | null }) => unknown;\n}>();\n\n/** @internal {@link OwnedAttributes} as a lookup, for filtering the fallthrough set. */\nconst OwnedAttributeLookup: ReadonlySet<string> = new Set(OwnedAttributes);\n\nconst attrs = useAttrs();\n\nconst { copied, error, copy } = useClipboard({ resetAfter: () => props.resetAfter });\n\n/** The fallthrough attributes minus the ones this component renders itself. */\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributeLookup.has(key))),\n);\n\n/** The accessible name for the current state — `copiedAriaLabel` while copied, `failedAriaLabel` after a failure. */\nconst effectiveAriaLabel = computed(() => {\n const label = attrs[AriaAttribute.Label] as string | undefined;\n if (copied.value) return props.copiedAriaLabel ?? label;\n return error.value ? (props.failedAriaLabel ?? label) : label;\n});\n\n/** The state icon shown when the consumer supplies no content: Check once copied, X once the copy failed. */\nconst fallbackIcon = computed(() => (copied.value ? Check : error.value ? X : Copy));\n\n/** Emits `error` on each transition into a failed copy. */\nwatch(error, (next) => {\n if (next) emit(DomEvent.Error, next);\n});\n\n/** Copies the current text from the clicked button, discarding the settled promise. */\nfunction handleClick(event: MouseEvent): void {\n void copy(props.text, event.target instanceof Element ? event.target : null);\n}\n</script>\n\n<template>\n <Button\n :variant=\"variant\"\n :aria-label=\"effectiveAriaLabel\"\n :data-copied=\"OptionalExtensions.from(copied, AttributeValue.True)\"\n :data-error=\"OptionalExtensions.from(error !== null, AttributeValue.True)\"\n :class=\"error ? 'text-destructive-soft-foreground' : undefined\"\n v-bind=\"passthroughAttrs\"\n @click=\"handleClick\"\n >\n <slot v-if=\"slots.default\" :copied=\"copied\" :error=\"error\" />\n <Icon v-else :icon=\"fallbackIcon\" :size=\"16\" />\n </Button>\n</template>\n","<script lang=\"ts\">\nimport type { GoogleButtonOptions } from '../../../foundation/oauth';\n\n/** Defines the props for {@link GoogleSignInButton}. */\nexport interface GoogleSignInButtonProps {\n /** The button surface. Default `outline`. */\n readonly theme?: GoogleButtonOptions['theme'];\n\n /** The button height band. Default `large`. */\n readonly size?: GoogleButtonOptions['size'];\n\n /** The label wording. Default `signin_with`. */\n readonly text?: GoogleButtonOptions['text'];\n\n /** The button outline. Default `rectangular`. */\n readonly shape?: GoogleButtonOptions['shape'];\n\n /** The rendered width in px. GIS caps this at 400; omit to size to the host element. */\n readonly width?: number;\n\n /** The logo placement. Default `left`. */\n readonly logoAlignment?: GoogleButtonOptions['logo_alignment'];\n\n /** The BCP-47 locale for the button copy. Defaults to the browser's. */\n readonly locale?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from 'vue';\n\nimport { GoogleIdentityStatus, useGoogleIdentity } from '../../../foundation/oauth';\n\n/**\n * Renders the Google sign-in button — the Google-owned control for the GIS ID-token flow.\n *\n * The button itself is drawn by Google into the host element, not by this package: the ID-token flow\n * requires Google's own branding, so `theme` / `size` / `shape` are forwarded to GIS rather than\n * mapped onto house variants. Everything below the pixels is ours — script loading, `initialize`, and\n * the credential handoff live in the ancestor's `provideGoogleIdentity` owner.\n *\n * The owner receives a signed JWT ID token, not a session. Post it to the\n * product's identity endpoint for server-side verification, and let the response drive `AuthProvider`.\n */\ndefineOptions({ name: 'GoogleSignInButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<GoogleSignInButtonProps>(), {\n theme: 'outline',\n size: 'large',\n text: 'signin_with',\n shape: 'rectangular',\n logoAlignment: 'left',\n});\n\nconst host = ref<HTMLElement | null>(null);\nconst identity = useGoogleIdentity();\nconst isConfigured = computed(() => identity.status.value !== GoogleIdentityStatus.Unresolved);\n\n/* GIS reads these once per `renderButton` call, so a prop change has to re-render the button rather\n than mutate it. Collected into one computed so the watcher below fires on any of them. */\nconst buttonOptions = computed<GoogleButtonOptions>(() => ({\n theme: props.theme,\n size: props.size,\n text: props.text,\n shape: props.shape,\n width: props.width,\n logo_alignment: props.logoAlignment,\n locale: props.locale,\n}));\n\nconst isReady = computed(() => identity.status.value === GoogleIdentityStatus.Ready);\n\n/* `immediate` covers the case where the script resolved before this watcher was registered; the\n `nextTick` covers the opposite one, where `isReady` flips in the same tick the host is created and\n the ref is not populated yet. */\nwatch(\n [isReady, buttonOptions, host],\n async () => {\n if (!isReady.value) {\n host.value?.replaceChildren();\n return;\n }\n await nextTick();\n if (!isReady.value) return;\n\n const target = host.value;\n if (!target) return;\n\n // GIS appends; without the clear, a re-render stacks a second button under the first.\n target.replaceChildren();\n identity.renderButton(target, buttonOptions.value);\n },\n { immediate: true },\n);\n</script>\n\n<template>\n <div v-if=\"isConfigured\" ref=\"host\" v-bind=\"$attrs\" />\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes } from 'vue';\nimport type { Side } from '../../../foundation/styles';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface DisclosureButtonProps extends /* @vue-ignore */ Omit<ButtonHTMLAttributes, 'children' | 'onChange'> {\n /** The controlled open state. */\n readonly open?: boolean;\n /** The uncontrolled initial state. */\n readonly defaultOpen?: boolean;\n /** The side the chevron sits on (`left` · `right`). Default `right`. */\n readonly chevronSide?: Side;\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { ChevronDown } from 'lucide-vue-next';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType, dataAttr } from '../../../foundation/dom';\nimport { cn, Side as SideValue } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport { useControlled } from '../../../foundation/state';\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. */\n/** Renders a full-width labelled button with a rotating chevron that expands or collapses a section. */\ndefineOptions({ name: 'DisclosureButton', inheritAttrs: false });\n\n/* `children` became the default slot (the visible, left-aligned label); `onOpenChange` the\n `update:open` emit. */\nconst props = withDefaults(defineProps<DisclosureButtonProps>(), {\n chevronSide: SideValue.Right,\n type: ButtonType.Button,\n defaultOpen: false,\n open: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the reader expands or collapses the section, carrying the new open state. */\n 'update:open': [open: boolean];\n}>();\n\ndefineSlots<{\n /** The button's own label, left-aligned beside the chevron. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst { value: open, setValue: setOpen } = useControlled<boolean>({\n controlled: () => props.open,\n default: props.defaultOpen,\n onChange: (next) => emit('update:open', next),\n});\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 chevronClass = computed(() => cn('transition-transform', open.value && 'rotate-180'));\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (!e.defaultPrevented)`. */\nfunction handleClick(event: MouseEvent): void {\n if (event.defaultPrevented) return;\n setOpen(!open.value);\n}\n\nconst root = useTemplateRef<HTMLButtonElement>('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 <!-- Button with a rotating chevron — sets `aria-expanded` + `data-state=\"open|closed\"`. -->\n <button\n ref=\"root\"\n :type=\"type\"\n :aria-expanded=\"open\"\n :data-state=\"open ? 'open' : 'closed'\"\n :data-disabled=\"dataAttr(attrs.disabled as boolean | undefined)\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @click=\"handleClick\"\n >\n <Icon v-if=\"chevronSide === SideValue.Left\" :icon=\"ChevronDown\" :size=\"16\" :class=\"chevronClass\" />\n <span class=\"flex-1 text-left\"><slot /></span>\n <Icon v-if=\"chevronSide === SideValue.Right\" :icon=\"ChevronDown\" :size=\"16\" :class=\"chevronClass\" />\n </button>\n</template>\n","import { inject, type InjectionKey } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\n\nexport interface ToolbarContextValue {\n /** The toolbar's layout axis. Live getter — read it, don't destructure it. */\n readonly orientation: Orientation;\n}\n\nexport const ToolbarKey: InjectionKey<ToolbarContextValue> = Symbol('wow-two.toolbar');\n\n/** Reads the surrounding `Toolbar`. Throws outside one — the parts are not standalone. */\nexport function useToolbarContext(): ToolbarContextValue {\n const context = inject(ToolbarKey, null);\n if (!context) throw new Error('Toolbar.* must be used inside <Toolbar>');\n return context;\n}\n","<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\n\n/* Native div attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface ToolbarProps extends /* @vue-ignore */ HTMLAttributes {\n /** The layout axis — drives both the arrow-key navigation and the flex direction. Default `horizontal`. */\n readonly orientation?: Orientation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs, useTemplateRef, type ComponentPublicInstance } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Orientation as OrientationValue } from '../../../foundation/styles';\nimport { RovingFocusGroup } from '../../../foundation/primitives';\nimport { ToolbarKey } from './ToolbarContext';\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. */\n/** Renders a bordered strip of actions that arrow keys walk through as a single tab stop. */\ndefineOptions({ name: 'Toolbar', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ToolbarProps>(), {\n orientation: OrientationValue.Horizontal,\n});\n\ndefineSlots<{\n /** The toolbar items — buttons, links, and separators sharing one roving tab stop. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* Live getter, not a snapshot — `ToolbarSeparator` re-reads it to flip its own axis. */\nprovide(ToolbarKey, {\n get orientation() {\n return props.orientation;\n },\n});\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 items-center gap-1 rounded-md border border-border bg-background p-1',\n props.orientation === OrientationValue.Vertical && 'flex-col items-stretch',\n attrs.class as ClassValue,\n ),\n);\n\nconst root = useTemplateRef<ComponentPublicInstance>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\nconst el = computed<HTMLElement | null>(() => {\n const node = root.value?.$el;\n return node instanceof HTMLElement ? node : null;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <RovingFocusGroup\n ref=\"root\"\n :orientation=\"orientation\"\n can-loop\n role=\"toolbar\"\n :aria-orientation=\"orientation\"\n :data-orientation=\"orientation\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <slot />\n </RovingFocusGroup>\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes } from 'vue';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface ToolbarButtonProps extends /* @vue-ignore */ Omit<ButtonHTMLAttributes, 'children'> {\n /** The as-child flag — renders as the single child via `Primitive`, dropping item chrome. */\n readonly asChild?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType, HtmlElement } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { Primitive, useRovingFocusItem } from '../../../foundation/primitives';\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. */\n/** Renders one action button inside a toolbar, taking its turn in the group's roving tab stop. */\ndefineOptions({ name: 'ToolbarButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ToolbarButtonProps>(), { asChild: false });\n\ndefineSlots<{\n /** The button's label, or — under `asChild` — the single element that becomes the item. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* Reactive object — `tabindex` tracks the group's tab stop, so read through it rather than\n destructuring. The function `ref` registers this item's node with the group. */\nconst roving = useRovingFocusItem();\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 props.asChild\n ? cn(attrs.class as ClassValue)\n : cn(\n 'inline-flex h-8 items-center justify-center rounded-sm px-2 text-sm transition-colors hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own keydown (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's explicit `if (e.defaultPrevented) return`. */\nfunction handleKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented) return;\n roving.onKeydown(event);\n}\n</script>\n\n<template>\n <Primitive\n :ref=\"roving.ref\"\n :as=\"HtmlElement.Button\"\n :as-child=\"asChild\"\n :type=\"asChild ? undefined : ButtonType.Button\"\n :tabindex=\"roving.tabindex\"\n :data-roving-focus-item=\"roving['data-roving-focus-item']\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @focus=\"roving.onFocus()\"\n @keydown=\"handleKeydown\"\n >\n <slot />\n </Primitive>\n</template>\n","<script lang=\"ts\">\nimport type { AnchorHTMLAttributes } from 'vue';\n\n/* Native anchor attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport type ToolbarLinkProps = /* @vue-ignore */ Omit<AnchorHTMLAttributes, 'children'>;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { useRovingFocusItem } from '../../../foundation/primitives';\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. */\n/** Renders one anchor inside a toolbar, taking its turn in the group's roving tab stop. */\ndefineOptions({ name: 'ToolbarLink', inheritAttrs: false });\n\ndefineSlots<{\n /** The anchor's own label. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* Reactive object — `tabindex` tracks the group's tab stop, so read through it rather than\n destructuring. The function `ref` registers this item's node with the group. */\nconst roving = useRovingFocusItem();\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 h-8 items-center justify-center rounded-sm px-2 text-sm text-foreground underline-offset-2 transition-colors hover:bg-muted hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own keydown (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's explicit `if (e.defaultPrevented) return`. */\nfunction handleKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented) return;\n roving.onKeydown(event);\n}\n</script>\n\n<template>\n <a\n :ref=\"roving.ref\"\n :tabindex=\"roving.tabindex\"\n :data-roving-focus-item=\"roving['data-roving-focus-item']\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @focus=\"roving.onFocus()\"\n @keydown=\"handleKeydown\"\n >\n <slot />\n </a>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Orientation } from '../../../foundation/styles';\nimport { useToolbarContext } from './ToolbarContext';\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. */\n/** Renders a hairline rule between two toolbar groups, turned across the toolbar's own axis. */\ndefineOptions({ name: 'ToolbarSeparator', inheritAttrs: false });\n\nconst attrs = useAttrs();\nconst context = useToolbarContext();\n\nconst isVertical = computed(() => context.orientation === Orientation.Vertical);\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('shrink-0 bg-border', isVertical.value ? 'mx-1 h-px' : 'my-1 w-px self-stretch', attrs.class as ClassValue),\n);\n</script>\n\n<template>\n <div\n role=\"separator\"\n :aria-orientation=\"isVertical ? 'horizontal' : 'vertical'\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n />\n</template>\n","import ToolbarRoot from './Toolbar.vue';\nimport ToolbarButton from './ToolbarButton.vue';\nimport ToolbarLink from './ToolbarLink.vue';\nimport ToolbarSeparator from './ToolbarSeparator.vue';\n\n/**\n * The toolbar root, carrying its parts as properties so `<Toolbar.Button>` /\n * `<Toolbar.Separator>` resolve in a template — the counterpart of the React\n * original's `Object.assign`. Each part is also exported on its own name.\n */\nconst Toolbar: typeof ToolbarRoot & {\n Button: typeof ToolbarButton;\n LinkItem: typeof ToolbarLink;\n SeparatorLayout: typeof ToolbarSeparator;\n} = Object.assign(ToolbarRoot, {\n Button: ToolbarButton,\n LinkItem: ToolbarLink,\n SeparatorLayout: ToolbarSeparator,\n});\n\nexport { Toolbar, ToolbarButton, ToolbarLink, ToolbarSeparator };\nexport type { ToolbarProps } from './Toolbar.vue';\nexport type { ToolbarButtonProps } from './ToolbarButton.vue';\nexport type { ToolbarLinkProps } from './ToolbarLink.vue';\nexport { ToolbarKey, useToolbarContext, type ToolbarContextValue } from './ToolbarContext';\n","import { inject, type InjectionKey, type ShallowRef } from 'vue';\nimport type { OverlayPosition } from '../../../foundation/styles';\n\n/** The overlay anchor position of a SpeedDialGroup (shared overlay vocabulary). */\nexport type SpeedDialGroupPosition = OverlayPosition;\n\n/** Defines the axis a SpeedDialGroup's action items fan out along. */\nexport const SpeedDialGroupDirection = {\n /** Refers to items stacking upward from the trigger. */\n Up: 'up',\n /** Refers to items stacking downward from the trigger. */\n Down: 'down',\n /** Refers to items stacking to the left of the trigger. */\n Left: 'left',\n /** Refers to items stacking to the right of the trigger. */\n Right: 'right',\n} as const;\n\nexport type SpeedDialGroupDirection = (typeof SpeedDialGroupDirection)[keyof typeof SpeedDialGroupDirection];\n\nexport interface SpeedDialGroupContextValue {\n /** The open state. Live getter — read it, don't destructure it. */\n readonly open: boolean;\n\n /** Sets the open state (and fires the root's `open-change`). */\n setOpen: (open: boolean) => void;\n\n /**\n * The trigger's element, published by `SpeedDialGroupTrigger` on mount. Escape and\n * action-select return focus here — the React original held a `MutableRefObject`\n * threaded through `composeRefs`; a Vue child writes its own element into this ref\n * instead.\n */\n triggerEl: ShallowRef<HTMLElement | null>;\n\n /** The resolved fan-out axis. Live getter. */\n readonly direction: SpeedDialGroupDirection;\n\n /** The viewport anchor. Live getter. */\n readonly position: SpeedDialGroupPosition;\n}\n\nexport const SpeedDialGroupKey: InjectionKey<SpeedDialGroupContextValue> = Symbol('wow-two.speedDial');\n\n/** Reads the surrounding `SpeedDialGroup`. Throws outside one — the parts are not standalone. */\nexport function useSpeedDialContext(): SpeedDialGroupContextValue {\n const context = inject(SpeedDialGroupKey, null);\n if (!context) throw new Error('SpeedDialGroup.* must be used inside <SpeedDialGroup>');\n return context;\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 the `<ul>` an open speed dial fans its action items into.\n *\n * `Presence`-clonable list: a single element that takes the `data-state` and `ref`\n * `Presence` injects. Marked `group` so each action item animates off its\n * `data-[state]`; carries its own fade so `Presence` has an animation on *this*\n * node to watch before unmount. Internal — not exported from the barrel.\n */\ndefineOptions({ name: 'SpeedDialGroupList', inheritAttrs: false });\n\ndefineSlots<{\n /** The `SpeedDialGroupAction` items the list fans out, each its own `<li>`. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\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 'group absolute flex',\n /* list fade gated on data-state; motion-safe so reduced-motion users\n get no movement. */\n 'motion-safe:data-[state=open]:animate-(--animate-fade-in)',\n 'motion-safe:data-[state=closed]:animate-(--animate-fade-out)',\n 'motion-reduce:animate-none',\n /* Per-item enter stagger: ramp `animation-delay` on the first few items\n while opening only (closed → delay 0 so no item outlasts the list's\n own fade-out, which gates unmount). */\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(2)]:[animation-delay:40ms]',\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(3)]:[animation-delay:80ms]',\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(4)]:[animation-delay:120ms]',\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(n+5)]:[animation-delay:160ms]',\n attrs.class as ClassValue,\n ),\n);\n</script>\n\n<template>\n <ul role=\"menu\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </ul>\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes, VNodeChild } from 'vue';\nimport type { FabButtonVariant, FabButtonSize } from '../fabButton/FabButton.variants';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface SpeedDialGroupTriggerProps extends /* @vue-ignore */ Omit<ButtonHTMLAttributes, 'children'> {\n /** The glyph shown while closed. Defaults to a `Plus` icon. Prefer the `closed-icon` named slot. */\n readonly closedIcon?: VNodeChild;\n\n /** The glyph shown while open. Defaults to an `X` icon. Prefer the `open-icon` named slot. */\n readonly openIcon?: VNodeChild;\n\n /** The FabButton surface style. */\n readonly variant?: FabButtonVariant;\n\n /** The FabButton diameter. */\n readonly size?: FabButtonSize;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, defineComponent, useAttrs, useTemplateRef, watchPostEffect } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { Plus, X } from 'lucide-vue-next';\nimport { AriaAttribute } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport FabButton from '../fabButton/FabButton.vue';\nimport { useSpeedDialContext } from './SpeedDialGroupContext';\n\nconst locale = useLocale();\n\n/** Renders the speed dial's pinned FAB, swapping its glyph as the dial opens and closes. */\ndefineOptions({ name: 'SpeedDialGroupTrigger', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SpeedDialGroupTriggerProps>(), {\n /* `VNodeChild` includes `boolean`, so Vue's boolean casting turns an absent node-valued prop\n into `false` rather than `undefined` — which reads as \"supplied\" at every `!== undefined`\n check. An explicit `undefined` default suppresses the cast. */\n closedIcon: undefined,\n openIcon: undefined,\n});\n\ndefineSlots<{\n /** The glyph shown while the dial is open. Falls back to `openIcon`, then to an `X` icon. */\n 'open-icon'?(): unknown;\n\n /** The glyph shown while the dial is closed. Falls back to `closedIcon`, then to a `Plus` icon. */\n 'closed-icon'?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst context = useSpeedDialContext();\n\n/* `aria-label` is read off `attrs`, not `props`: Vue camelizes declared prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It is stripped from the\n forwarded attrs and re-bound below, so the resolved value is the one that lands. */\nconst ariaLabel = computed(\n () =>\n (attrs[AriaAttribute.Label] as string | undefined) ??\n locale.t('SpeedDialGroupTrigger.label', undefined, 'Toggle actions'),\n);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', AriaAttribute.Label]);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\n/* Stable render-only wrappers for the node-valued props, so each can render as the fallback of its\n named-slot twin. */\nconst ClosedIconProp = defineComponent({ render: () => props.closedIcon });\nconst OpenIconProp = defineComponent({ render: () => props.openIcon });\n\nconst fab = useTemplateRef('fab');\n\n/* Publishes the trigger element into the root's context — Escape and action-select return focus\n here. The React original threaded a shared `MutableRefObject` through `composeRefs`. */\nwatchPostEffect(() => {\n const node = fab.value?.el;\n const elementType = node?.ownerDocument.defaultView?.HTMLElement;\n context.triggerEl.value = elementType && node instanceof elementType ? node : null;\n});\n\nconst rootClass = computed(() =>\n cn('static !bottom-auto !left-auto !right-auto !top-auto !translate-x-0', attrs.class as ClassValue),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (e.defaultPrevented) return`. */\nfunction handleClick(event: MouseEvent): void {\n if (event.defaultPrevented) return;\n context.setOpen(!context.open);\n}\n</script>\n\n<template>\n <FabButton\n ref=\"fab\"\n v-bind=\"passthroughAttrs\"\n :aria-label=\"ariaLabel\"\n aria-haspopup=\"menu\"\n :aria-expanded=\"context.open\"\n :variant=\"variant\"\n :size=\"size\"\n :position=\"context.position\"\n :class=\"rootClass\"\n @click=\"handleClick\"\n >\n <template v-if=\"context.open\">\n <slot name=\"open-icon\">\n <OpenIconProp v-if=\"openIcon !== undefined\" />\n <Icon v-else :icon=\"X\" :size=\"20\" />\n </slot>\n </template>\n <template v-else>\n <slot name=\"closed-icon\">\n <ClosedIconProp v-if=\"closedIcon !== undefined\" />\n <Icon v-else :icon=\"Plus\" :size=\"20\" />\n </slot>\n </template>\n </FabButton>\n</template>\n","<script lang=\"ts\">\nimport type { SpeedDialGroupDirection, SpeedDialGroupPosition } from './SpeedDialGroupContext';\n\nexport interface SpeedDialGroupProps {\n /** The viewport anchor. Default `bottom-right`. */\n readonly position?: SpeedDialGroupPosition;\n\n /** The axis the action items fan out along. Defaults to the one implied by `position`. */\n readonly direction?: SpeedDialGroupDirection;\n\n /** The controlled open state. */\n readonly open?: boolean;\n\n /** The uncontrolled initial state. */\n readonly defaultOpen?: boolean;\n\n /** The pixel gap between stacked action items. Default 12. */\n readonly gap?: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, shallowRef, useAttrs, useSlots, useTemplateRef, watch, type VNode } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, OverlayPosition } from '../../../foundation/styles';\nimport { Key } from '../../../foundation/dom';\nimport { Presence, renderableChildren } from '../../../foundation/primitives';\nimport { useControlled } from '../../../foundation/state';\nimport { useEscape } from '../../../foundation/shortcuts';\nimport { useOutsideClick } from '../../../foundation/dom';\nimport { SpeedDialGroupDirection as SpeedDialGroupDirectionValue, SpeedDialGroupKey } from './SpeedDialGroupContext';\nimport SpeedDialGroupList from './SpeedDialGroupList.vue';\nimport SpeedDialGroupTrigger from './SpeedDialGroupTrigger.vue';\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. */\n/** Renders a pinned trigger that fans a stack of action buttons out across the viewport when opened. */\ndefineOptions({ name: 'SpeedDialGroup', inheritAttrs: false });\n\n/* `className` is Vue's `class` fallthrough attr; `children` is the default slot. */\nconst props = withDefaults(defineProps<SpeedDialGroupProps>(), {\n position: OverlayPosition.BottomRight,\n direction: undefined,\n gap: 12,\n defaultOpen: false,\n open: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the dial opens or closes, carrying the new open state. */\n 'update:open': [open: boolean];\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\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 PositionToDirection: Record<SpeedDialGroupPosition, SpeedDialGroupDirection> = {\n 'bottom-right': SpeedDialGroupDirectionValue.Up,\n 'bottom-left': SpeedDialGroupDirectionValue.Up,\n 'bottom-center': SpeedDialGroupDirectionValue.Up,\n 'top-right': SpeedDialGroupDirectionValue.Down,\n 'top-left': SpeedDialGroupDirectionValue.Down,\n 'top-center': SpeedDialGroupDirectionValue.Down,\n};\n\nconst PositionOffsets: Record<SpeedDialGroupPosition, string> = {\n 'bottom-right': 'bottom-6 right-6',\n 'bottom-left': 'bottom-6 left-6',\n 'bottom-center': 'bottom-6 left-1/2 -translate-x-1/2',\n 'top-right': 'top-6 right-6',\n 'top-left': 'top-6 left-6',\n 'top-center': 'top-6 left-1/2 -translate-x-1/2',\n};\n\nconst DirectionToStack: Record<SpeedDialGroupDirection, string> = {\n [SpeedDialGroupDirectionValue.Up]: 'flex-col-reverse bottom-full mb-3',\n [SpeedDialGroupDirectionValue.Down]: 'flex-col top-full mt-3',\n [SpeedDialGroupDirectionValue.Left]: 'flex-row-reverse right-full mr-3',\n [SpeedDialGroupDirectionValue.Right]: 'flex-row top-1/2 -translate-y-1/2 left-full ml-3',\n};\n\nconst { value: open, setValue: setOpen } = useControlled<boolean>({\n controlled: () => props.open,\n default: props.defaultOpen,\n onChange: (next) => emit('update:open', next),\n});\n\nconst rootEl = useTemplateRef<HTMLDivElement>('rootEl');\nconst triggerEl = shallowRef<HTMLElement | null>(null);\n\nconst resolvedDirection = computed(() => props.direction ?? PositionToDirection[props.position]);\n\nuseEscape((event) => {\n if (event.defaultPrevented) return;\n setOpen(false);\n}, open);\n\n// Restore only while the closing dial owns focus; never queue a callback that can steal it later.\nwatch(\n open,\n (isOpen) => {\n const root = rootEl.value;\n if (!isOpen && root?.contains(root.ownerDocument.activeElement)) triggerEl.value?.focus();\n },\n { flush: 'pre' },\n);\n\nuseOutsideClick(\n rootEl,\n () => {\n if (open.value) setOpen(false);\n },\n open,\n);\n\nprovide(SpeedDialGroupKey, {\n get open() {\n return open.value;\n },\n setOpen,\n triggerEl,\n get direction() {\n return resolvedDirection.value;\n },\n get position() {\n return props.position;\n },\n});\n\n/* The trigger renders always (a closed dial must still be openable); only the action items are\n gated behind `open`. The React original partitioned `Children.toArray` on `child.type`; the\n same split runs over the slot's vnodes, so the authoring shape is unchanged. */\nfunction splitChildren(keepTrigger: boolean): Array<VNode> {\n return renderableChildren(slots.default?.()).filter(\n (child) => (child.type === SpeedDialGroupTrigger) === keepTrigger,\n );\n}\n\nconst rootClass = computed(() => cn('fixed', PositionOffsets[props.position], attrs.class as ClassValue));\nconst stackClass = computed(() => DirectionToStack[resolvedDirection.value]);\n\nfunction handleKeydown(event: KeyboardEvent): void {\n if (\n event.defaultPrevented ||\n event.isComposing ||\n !open.value ||\n (event.key !== Key.ArrowDown && event.key !== Key.ArrowUp)\n )\n return;\n const root = rootEl.value;\n if (!root) return;\n const items = Array.from(root.querySelectorAll<HTMLButtonElement>('[role=\"menuitem\"]')).filter(\n (item) => !item.matches(':disabled,[aria-disabled=\"true\"],[data-disabled],[hidden]') && !item.closest('[inert]'),\n );\n if (items.length === 0) return;\n event.preventDefault();\n const currentIndex = items.indexOf(root.ownerDocument.activeElement as HTMLButtonElement);\n const nextIndex =\n currentIndex === -1\n ? event.key === Key.ArrowDown\n ? 0\n : items.length - 1\n : (currentIndex + (event.key === Key.ArrowDown ? 1 : -1) + items.length) % items.length;\n items[nextIndex]?.focus();\n}\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: rootEl });\n</script>\n\n<template>\n <div\n ref=\"rootEl\"\n :data-state=\"open ? 'open' : 'closed'\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @keydown=\"handleKeydown\"\n >\n <!-- `Presence` clones `data-state` (\"open\" | \"closed\") + a `ref` onto the list and defers\n unmount until its fade-out ends — keeps the exit from being killed by the hard `!open`\n unmount. Items pop in/out off the list's `group` state (see `SpeedDialGroupAction`),\n staggered on enter. -->\n <Presence :is-present=\"open\">\n <SpeedDialGroupList :data-direction=\"resolvedDirection\" :style=\"{ gap: `${gap}px` }\" :class=\"stackClass\">\n <component :is=\"node\" v-for=\"(node, index) in splitChildren(false)\" :key=\"node.key ?? index\" />\n </SpeedDialGroupList>\n </Presence>\n <component :is=\"node\" v-for=\"(node, index) in splitChildren(true)\" :key=\"node.key ?? index\" />\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes, VNodeChild } from 'vue';\nimport { AriaAttribute } from '../../../foundation/dom';\n\n/** @internal An attribute name this component derives or requires. */\ntype RequiredAttribute = typeof AriaAttribute.Label;\n\n/* The required accessible label rides on the ignored heritage rather than the body — action items\n are icon-only, so the name is mandatory, but it must reach the DOM as an attribute. */\ntype SpeedDialGroupActionAttributes = Omit<ButtonHTMLAttributes, 'children'> & Record<RequiredAttribute, string>;\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface SpeedDialGroupActionProps extends /* @vue-ignore */ SpeedDialGroupActionAttributes {\n /** The action's glyph. Prefer the `icon` named slot; this prop stays for parity with the React API. */\n readonly icon?: VNodeChild;\n\n /** The label chip rendered beside the button. Prefer the `tooltip` named slot. */\n readonly tooltip?: VNodeChild;\n\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, defineComponent, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType } from '../../../foundation/dom';\nimport { cn, Side } from '../../../foundation/styles';\nimport { SpeedDialGroupDirection, useSpeedDialContext } from './SpeedDialGroupContext';\n\n/* `aria-label` is deliberately NOT a declared prop: Vue camelizes prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It stays a fallthrough attr;\n the interface keeps the requirement through the `@vue-ignore`d heritage. */\n/** Renders one icon button of an open speed dial, with an optional label chip beside it. */\ndefineOptions({ name: 'SpeedDialGroupAction', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SpeedDialGroupActionProps>(), {\n type: ButtonType.Button,\n /* `VNodeChild` includes `boolean`, so Vue's boolean casting turns an absent node-valued prop\n into `false` rather than `undefined` — which reads as \"supplied\" at every `!== undefined`\n check. An explicit `undefined` default suppresses the cast. */\n icon: undefined,\n tooltip: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the action is chosen — the dial closes and focus returns to the trigger afterwards. */\n select: [];\n}>();\n\ndefineSlots<{\n /** The action's glyph. Preferred over the `icon` prop. */\n icon?(): unknown;\n /** The glyph, in the plain-children shape a Vue caller reaches for. Same slot as `icon`. */\n default?(): unknown;\n /** The label chip beside the button. Preferred over the `tooltip` prop. */\n tooltip?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst context = useSpeedDialContext();\n\nconst DirectionLabelSide: Record<SpeedDialGroupDirection, Side> = {\n [SpeedDialGroupDirection.Up]: Side.Right,\n [SpeedDialGroupDirection.Down]: Side.Right,\n [SpeedDialGroupDirection.Left]: Side.Right,\n [SpeedDialGroupDirection.Right]: Side.Left,\n};\n\n/* Stable render-only wrappers for the node-valued props, so each can render as the fallback of its\n named-slot twin. */\nconst IconProp = defineComponent({ render: () => props.icon });\nconst TooltipProp = defineComponent({ render: () => props.tooltip });\n\nconst labelSide = computed(() => DirectionLabelSide[context.direction]);\nconst hasTooltip = computed(() => props.tooltip !== undefined || slots.tooltip !== undefined);\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 buttonClass = computed(() =>\n cn(\n 'inline-flex h-10 w-10 items-center justify-center rounded-full bg-card text-card-foreground shadow-md transition-all hover:shadow-lg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (e.defaultPrevented) return`. */\nfunction handleClick(event: MouseEvent): void {\n if (\n event.defaultPrevented ||\n !context.open ||\n root.value?.matches(':disabled,[aria-disabled=\"true\"],[data-disabled]')\n )\n return;\n emit('select');\n context.setOpen(false);\n}\n\nconst root = useTemplateRef<HTMLButtonElement>('root');\nfunction handleClickCapture(event: MouseEvent): void {\n if (context.open && !root.value?.matches(':disabled,[aria-disabled=\"true\"],[data-disabled]')) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\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 <li\n role=\"none\"\n :data-side=\"labelSide\"\n :class=\"\n cn(\n 'flex items-center gap-2',\n /* fade+scale each action off the list's `group` state; motion-safe so\n reduced-motion users get no movement (delay ramp lives on the list). */\n 'motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n 'motion-reduce:animate-none',\n )\n \"\n >\n <span\n v-if=\"hasTooltip && labelSide === Side.Left\"\n class=\"rounded-md bg-popover px-2 py-1 text-xs text-popover-foreground shadow\"\n >\n <slot name=\"tooltip\"><TooltipProp v-if=\"tooltip !== undefined\" /></slot>\n </span>\n <button\n ref=\"root\"\n v-bind=\"passthroughAttrs\"\n :type=\"type\"\n role=\"menuitem\"\n :class=\"buttonClass\"\n @click.capture=\"handleClickCapture\"\n @click=\"handleClick\"\n >\n <!-- The default slot is the fallback, not a second API: React typed `children` away,\n so a Vue caller writing `<SpeedDialGroupAction><Pencil /></SpeedDialGroupAction>` — the\n idiomatic shape — got a silently empty button. Precedence stays `icon` slot →\n default slot → `icon` prop. -->\n <slot name=\"icon\">\n <slot><IconProp v-if=\"icon !== undefined\" /></slot>\n </slot>\n </button>\n <span\n v-if=\"hasTooltip && labelSide === Side.Right\"\n class=\"rounded-md bg-popover px-2 py-1 text-xs text-popover-foreground shadow\"\n >\n <slot name=\"tooltip\"><TooltipProp v-if=\"tooltip !== undefined\" /></slot>\n </span>\n </li>\n</template>\n","import SpeedDialGroupRoot from './SpeedDialGroup.vue';\nimport SpeedDialGroupTrigger from './SpeedDialGroupTrigger.vue';\nimport SpeedDialGroupAction from './SpeedDialGroupAction.vue';\n\n/**\n * The dial root, carrying its parts as properties so `<SpeedDialGroup.Trigger>` /\n * `<SpeedDialGroup.Action>` resolve in a template — the counterpart of the React\n * original's `Object.assign`. Each part is also exported on its own name.\n */\nconst SpeedDialGroup: typeof SpeedDialGroupRoot & {\n Trigger: typeof SpeedDialGroupTrigger;\n Action: typeof SpeedDialGroupAction;\n} = Object.assign(SpeedDialGroupRoot, {\n Trigger: SpeedDialGroupTrigger,\n Action: SpeedDialGroupAction,\n});\n\nexport { SpeedDialGroup, SpeedDialGroupAction, SpeedDialGroupTrigger };\nexport {\n SpeedDialGroupDirection,\n SpeedDialGroupKey,\n useSpeedDialContext,\n type SpeedDialGroupContextValue,\n type SpeedDialGroupPosition,\n} from './SpeedDialGroupContext';\nexport type { SpeedDialGroupProps } from './SpeedDialGroup.vue';\nexport type { SpeedDialGroupTriggerProps } from './SpeedDialGroupTrigger.vue';\nexport type { SpeedDialGroupActionProps } from './SpeedDialGroupAction.vue';\nexport default SpeedDialGroup;\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes, VNodeChild } from 'vue';\nimport type { OverlayPosition } from '../../../foundation/styles';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface BackToTopButtonProps extends /* @vue-ignore */ ButtonHTMLAttributes {\n /** The scroll distance (px) before the button appears. Default 400. */\n readonly threshold?: number;\n\n /** The scrollable element to scope to. Defaults to the window. */\n readonly scrollContainer?: HTMLElement | null;\n\n /** The anchor position on the viewport. Default `bottom-right`. */\n readonly position?: OverlayPosition;\n\n /** The visible label. Omit for icon-only. Prefer the `label` named slot. */\n readonly label?: VNodeChild;\n\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, defineComponent, shallowRef, useAttrs, useTemplateRef, watchPostEffect } from 'vue';\nimport { ArrowUp } from 'lucide-vue-next';\nimport type { ClassValue } from 'clsx';\nimport { AriaAttribute, ButtonType } from '../../../foundation/dom';\nimport { cn, OverlayPosition as OverlayPositionValue } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\n\nconst locale = useLocale();\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. */\n/** Renders a floating button that appears past a scroll threshold and returns the page to the top. */\ndefineOptions({ name: 'BackToTopButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<BackToTopButtonProps>(), {\n threshold: 400,\n position: OverlayPositionValue.BottomRight,\n type: ButtonType.Button,\n scrollContainer: null,\n /* `VNodeChild` includes `boolean`, so Vue's boolean casting turns an absent node-valued prop\n into `false` rather than `undefined` — which reads as \"supplied\" at every `!== undefined`\n check. An explicit `undefined` default suppresses the cast. */\n label: undefined,\n});\n\nconst slots = defineSlots<{\n /** The visible label beside the arrow. Falls back to the `label` prop, then to icon-only. */\n label?(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst PositionClasses: Record<OverlayPosition, string> = {\n 'bottom-right': 'bottom-6 right-6',\n 'bottom-left': 'bottom-6 left-6',\n 'bottom-center': 'bottom-6 left-1/2 -translate-x-1/2',\n 'top-right': 'top-6 right-6',\n 'top-left': 'top-6 left-6',\n 'top-center': 'top-6 left-1/2 -translate-x-1/2',\n};\n\n/* Stable render-only wrapper for the node-valued `label` prop, so it can render as the fallback of\n its named-slot twin. */\nconst LabelProp = defineComponent({ render: () => props.label });\n\nconst hasLabel = computed(() => props.label !== undefined || slots.label !== undefined);\n\nconst visible = shallowRef(false);\n\n/* `watchPostEffect` is the `useEffect` counterpart: it re-subscribes whenever `threshold` or\n `scrollContainer` changes, and reads once on attach. */\nwatchPostEffect((onCleanup) => {\n if (typeof window === 'undefined') return;\n const element: HTMLElement | Window = props.scrollContainer ?? window;\n const read = (): void => {\n const y = 'scrollY' in element ? (element as Window).scrollY : (element as HTMLElement).scrollTop;\n visible.value = y >= props.threshold;\n };\n read();\n const target = element as EventTarget;\n target.addEventListener('scroll', read, { passive: true });\n onCleanup(() => target.removeEventListener('scroll', read));\n});\n\n/* `aria-label` is read off `attrs`, not `props`: Vue camelizes declared prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It is stripped from the\n forwarded attrs and re-bound below, so the resolved value is the one that lands. */\nconst ariaLabel = computed(\n () =>\n (attrs[AriaAttribute.Label] as string | undefined) ?? locale.t('BackToTopButton.label', undefined, 'Back to top'),\n);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', AriaAttribute.Label]);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'fixed z-banner inline-flex items-center justify-center gap-2 rounded-full bg-card text-card-foreground shadow-lg ring-1 ring-border transition-all hover:shadow-xl focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n hasLabel.value ? 'h-11 px-4 text-sm font-medium' : 'h-11 w-11',\n PositionClasses[props.position],\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (e.defaultPrevented) return`. */\nfunction handleClick(event: MouseEvent): void {\n if (event.defaultPrevented) return;\n const reducedMotion =\n typeof window !== 'undefined' && window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n const target = props.scrollContainer ?? window;\n if ('scrollTo' in target) {\n target.scrollTo({ top: 0, behavior: reducedMotion ? 'auto' : 'smooth' });\n }\n}\n\nconst root = useTemplateRef<HTMLButtonElement>('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 <!-- Floating button revealed past `threshold` scroll — smooth-scrolls to top. -->\n <button\n v-if=\"visible\"\n ref=\"root\"\n :type=\"type\"\n :aria-label=\"ariaLabel\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @click=\"handleClick\"\n >\n <Icon :icon=\"ArrowUp\" :size=\"16\" />\n <slot name=\"label\"><LabelProp v-if=\"label !== undefined\" /></slot>\n </button>\n</template>\n"],"names":["OwnedAttributes","OrientationValue","_openBlock","_createElementBlock","_mergeProps","_renderSlot","_useSlots","_createBlock","Button","_unref","Icon","$attrs","SideValue","_createElementVNode","_hoisted_2","_hoisted_1","ToolbarRoot","ToolbarButton","ToolbarLink","ToolbarSeparator","FabButton","SpeedDialGroupDirectionValue","SpeedDialGroupTrigger","_createVNode","SpeedDialGroupList","_Fragment","_renderList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;AAAA,QAC9B,MAAM;AAAA,MAAA;AAAA,IACR;AAKF,aAAS,YAAY,OAAyB;AAC5C,UAAI,MAAM,iBAAkB;AAC5B,YAAM,gBACJ,OAAO,WAAW,eAAe,OAAO,aAAa,kCAAkC,EAAE;AAC3F,YAAM,SAAS,MAAM,mBAAmB;AACxC,UAAI,cAAc,QAAQ;AACxB,eAAO,SAAS,EAAE,KAAK,GAAG,UAAU,gBAAgB,SAAS,UAAU;AAAA,MACzE;AAAA,IACF;AAEA,UAAM,OAAO,eAAkC,MAAM;AAGrD,aAAa,EAAE,IAAI,MAAM;;aAMf,QAAA,SADRE,UAAA,GAAAC,mBAWS,UAXTC,WAWS;AAAA;iBATH;AAAA,QAAJ,KAAI;AAAA,QACH,MAAM,QAAA;AAAA,QACN,cAAY,UAAA;AAAA,QACZ,OAAO,UAAA;AAAA,MAAA,GACA,iBAAA,OAAgB,EACvB,SAAO,YAAA,CAAW,GAAA;AAAA,QAEnBmB,YAAmCd,MAAAC,WAAA,GAAA;AAAA,UAA5B,MAAMD,MAAA,OAAA;AAAA,UAAU,MAAM;AAAA,QAAA;QAC7BJ,WAAkE,0BAAlE,MAAkE;AAAA,UAA9B,QAAA,UAAU,uBAA3BE,YAAwCE,MAAA,SAAA,GAAA,EAAA,KAAA,EAAA,CAAA;;;;;;"}
1
+ {"version":3,"file":"BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js","sources":["../../src/presentation/actions/buttonGroup/ButtonGroup.vue","../../src/presentation/actions/fabButton/FabButton.variants.ts","../../src/presentation/actions/fabButton/FabButton.vue","../../src/presentation/actions/copyButton/CopyButton.vue","../../src/presentation/actions/googleSignInButton/GoogleSignInButton.vue","../../src/presentation/actions/disclosureButton/DisclosureButton.vue","../../src/presentation/actions/toolbar/ToolbarContext.ts","../../src/presentation/actions/toolbar/Toolbar.vue","../../src/presentation/actions/toolbar/ToolbarButton.vue","../../src/presentation/actions/toolbar/ToolbarLink.vue","../../src/presentation/actions/toolbar/ToolbarSeparator.vue","../../src/presentation/actions/toolbar/index.ts","../../src/presentation/actions/speedDialGroup/SpeedDialGroupContext.ts","../../src/presentation/actions/speedDialGroup/SpeedDialGroupList.vue","../../src/presentation/actions/speedDialGroup/SpeedDialGroupTrigger.vue","../../src/presentation/actions/speedDialGroup/SpeedDialGroup.vue","../../src/presentation/actions/speedDialGroup/SpeedDialGroupAction.vue","../../src/presentation/actions/speedDialGroup/index.ts","../../src/presentation/actions/backToTopButton/BackToTopButton.vue"],"sourcesContent":["<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\n\n/* Native div attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface ButtonGroupProps extends /* @vue-ignore */ HTMLAttributes {\n /** The visual orientation. Default `horizontal`. */\n readonly orientation?: Orientation;\n\n /** The attached state — groups children with collapsed inner radii (connected look). Default `true`. */\n readonly isAttached?: boolean;\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/* `inheritAttrs: false` so `class` folds into the component's own `cn()` call — plain fallthrough\n appends outside it and loses tailwind-merge conflict resolution. */\n/** Renders a row or column of related buttons, collapsing their inner radii into one connected control. */\ndefineOptions({ name: 'ButtonGroup', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ButtonGroupProps>(), {\n orientation: OrientationValue.Horizontal,\n isAttached: true,\n});\n\ndefineSlots<{\n /** The buttons the group lays out and joins into one connected control. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\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 isHorizontal = computed(() => props.orientation === OrientationValue.Horizontal);\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex',\n isHorizontal.value ? 'flex-row' : 'flex-col',\n props.isAttached\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 : 'gap-2',\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 <!-- Visually groups action-children — collapses inner radii when `isAttached`. -->\n <div ref=\"root\" role=\"group\" :data-orientation=\"orientation\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </div>\n</template>\n","import { tv, OverlayPosition, type VariantProps } from '../../../foundation/styles';\n\n/** Defines the FabButton's visual surface style. */\nexport const FabButtonVariant = {\n /** Refers to the primary brand-filled surface. */\n Primary: 'primary',\n /** Refers to the neutral card surface with a hairline border. */\n Secondary: 'secondary',\n /** Refers to the destructive / error-filled surface. */\n Destructive: 'destructive',\n} as const;\n\nexport type FabButtonVariant = (typeof FabButtonVariant)[keyof typeof FabButtonVariant];\n\n/** Defines the FabButton's diameter. */\nexport const FabButtonSize = {\n /** Refers to the small (2.5rem) diameter. */\n Sm: 'sm',\n /** Refers to the medium (3.5rem) default diameter. */\n Md: 'md',\n /** Refers to the large (4rem) diameter. */\n Lg: 'lg',\n} as const;\n\nexport type FabButtonSize = (typeof FabButtonSize)[keyof typeof FabButtonSize];\n\nexport const fabVariants = tv({\n base: 'fixed inline-flex items-center justify-center rounded-full shadow-lg transition-all hover:shadow-xl focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n variants: {\n variant: {\n primary: 'bg-primary text-primary-foreground hover:bg-primary/90',\n secondary: 'bg-card text-card-foreground border border-border hover:bg-muted',\n destructive: 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\n },\n size: {\n sm: 'h-10 w-10',\n md: 'h-14 w-14',\n lg: 'h-16 w-16',\n },\n position: {\n 'bottom-right': 'bottom-6 right-6',\n 'bottom-left': 'bottom-6 left-6',\n 'bottom-center': 'bottom-6 left-1/2 -translate-x-1/2',\n 'top-right': 'top-6 right-6',\n 'top-left': 'top-6 left-6',\n 'top-center': 'top-6 left-1/2 -translate-x-1/2',\n },\n },\n defaultVariants: {\n variant: 'primary',\n size: 'md',\n position: 'bottom-right',\n },\n});\n\nexport type FabButtonVariants = VariantProps<typeof fabVariants>;\n\n/* Compile-time lock: enum values ≡ tv axis keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertFabVariant: AssertExact<FabButtonVariant, NonNullable<FabButtonVariants['variant']>> = true;\nconst _assertFabSize: AssertExact<FabButtonSize, NonNullable<FabButtonVariants['size']>> = true;\nconst _assertFabPosition: AssertExact<OverlayPosition, NonNullable<FabButtonVariants['position']>> = true;\nvoid _assertFabVariant;\nvoid _assertFabSize;\nvoid _assertFabPosition;\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes } from 'vue';\nimport { AriaAttribute } from '../../../foundation/dom';\nimport { type OverlayPosition } from '../../../foundation/styles';\nimport type { FabButtonVariants, FabButtonVariant, FabButtonSize } from './FabButton.variants';\n\n/** @internal An attribute name this component derives or requires. */\ntype RequiredAttribute = typeof AriaAttribute.Label;\n\n/* The required accessible label rides on the ignored heritage rather than the body — FabButton content\n is typically icon-only, so the name is mandatory, but it must reach the DOM as an attribute. */\ntype FabButtonAttributes = ButtonHTMLAttributes & Record<RequiredAttribute, string>;\n\n/* Both heritage types are `@vue-ignore`d — native button attributes belong in attribute\n fallthrough, and `FabButtonVariants` resolves through `typeof fabVariants`, which the SFC prop\n compiler cannot walk. */\ntype FabButtonBase = FabButtonAttributes & Omit<FabButtonVariants, 'variant' | 'size' | 'position'>;\n\nexport interface FabButtonProps extends /* @vue-ignore */ FabButtonBase {\n /** The visual surface style. */\n readonly variant?: FabButtonVariant;\n /** The button diameter. */\n readonly size?: FabButtonSize;\n /** The anchor position on the viewport. */\n readonly position?: OverlayPosition;\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { fabVariants } from './FabButton.variants';\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. */\n/** Renders a floating action button — a circular, shadowed control pinned to a corner of the viewport. */\ndefineOptions({ name: 'FabButton', inheritAttrs: false });\n\n/* `aria-label` is deliberately NOT a declared prop: Vue camelizes prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It stays a fallthrough attr;\n the interface keeps the requirement through the `@vue-ignore`d heritage. */\n/* `children` has no prop counterpart — it is the default slot. */\nconst props = withDefaults(defineProps<FabButtonProps>(), { type: ButtonType.Button });\n\ndefineSlots<{\n /** The button's content — typically a single icon. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\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(fabVariants({ variant: props.variant, size: props.size, position: props.position }), attrs.class as ClassValue),\n);\n\nconst root = useTemplateRef<HTMLButtonElement>('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 <!-- Floating Action Button — fixed-position circular button with shadow. -->\n <button ref=\"root\" :type=\"type\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </button>\n</template>\n","<script lang=\"ts\">\nimport { AriaAttribute, DomEvent, type HandlerProp } from '../../../foundation/dom';\nimport type { ButtonProps } from '../button';\n\n/** @internal The attributes this component renders itself rather than forwarding. */\nconst OwnedAttributes = [AriaAttribute.Label] as const;\n\n/** @internal An attribute name from {@link OwnedAttributes}. */\ntype OwnedAttribute = (typeof OwnedAttributes)[number];\n\n/** @internal The `ButtonProps` handler this component replaces with its own emit. */\ntype ReplacedButtonProp = keyof Pick<ButtonProps, HandlerProp<typeof DomEvent.Error>>;\n\n/** Defines the forwarded `ButtonProps`, with the owned attributes re-added as required. */\ntype CopyButtonAttributes = Omit<ButtonProps, ReplacedButtonProp | OwnedAttribute> & Record<OwnedAttribute, string>;\n\n/** Defines props for the clipboard-copy button. */\nexport interface CopyButtonProps extends /* @vue-ignore */ CopyButtonAttributes {\n /** The text to copy when the button is activated. */\n readonly text: string;\n\n /** The reset window for the `copied` state in ms. Default 2000. Set 0 to hold `copied` until the next mount. */\n readonly resetAfter?: number;\n\n /** The accessible name to announce while `copied` is true. Falls back to `aria-label` when omitted. */\n readonly copiedAriaLabel?: string;\n\n /** The accessible name to announce while the last copy has failed. Falls back to `aria-label` when omitted. */\n readonly failedAriaLabel?: string;\n\n /** The visual surface style. Default `ghost`. */\n readonly variant?: ButtonVariant;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, watch } from 'vue';\nimport { Check, Copy, X } from 'lucide-vue-next';\n\nimport { Icon } from '../../../foundation/icons';\nimport { useClipboard } from '../../../foundation/clipboard';\nimport { AttributeValue } from '../../../foundation/dom';\nimport { OptionalExtensions } from '../../../foundation/optionals';\nimport Button from '../button/Button.vue';\nimport { ButtonVariant } from '../button';\n\n/** Renders a clipboard-copy button — for code blocks, ID / URL fields, and inline copy affordances. */\ndefineOptions({ name: 'CopyButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<CopyButtonProps>(), {\n resetAfter: 2000,\n variant: ButtonVariant.Ghost,\n});\n\nconst emit = defineEmits<{\n /** Fires when the copy fails — the Clipboard API and the legacy fallback both refused — once per failure. */\n error: [error: Error];\n}>();\n\nconst slots = defineSlots<{\n /** The content — receives `{ copied, error }` for a state-driven swap. Icon-only Copy/Check/X when omitted. */\n default?: (props: { copied: boolean; error: Error | null }) => unknown;\n}>();\n\n/** @internal {@link OwnedAttributes} as a lookup, for filtering the fallthrough set. */\nconst OwnedAttributeLookup: ReadonlySet<string> = new Set(OwnedAttributes);\n\nconst attrs = useAttrs();\n\nconst { copied, error, copy } = useClipboard({ resetAfter: () => props.resetAfter });\n\n/** The fallthrough attributes minus the ones this component renders itself. */\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributeLookup.has(key))),\n);\n\n/** The accessible name for the current state — `copiedAriaLabel` while copied, `failedAriaLabel` after a failure. */\nconst effectiveAriaLabel = computed(() => {\n const label = attrs[AriaAttribute.Label] as string | undefined;\n if (copied.value) return props.copiedAriaLabel ?? label;\n return error.value ? (props.failedAriaLabel ?? label) : label;\n});\n\n/** The state icon shown when the consumer supplies no content: Check once copied, X once the copy failed. */\nconst fallbackIcon = computed(() => (copied.value ? Check : error.value ? X : Copy));\n\n/** Emits `error` on each transition into a failed copy. */\nwatch(error, (next) => {\n if (next) emit(DomEvent.Error, next);\n});\n\n/** Copies the current text from the clicked button, discarding the settled promise. */\nfunction handleClick(event: MouseEvent): void {\n void copy(props.text, event.target instanceof Element ? event.target : null);\n}\n</script>\n\n<template>\n <Button\n :variant=\"variant\"\n :aria-label=\"effectiveAriaLabel\"\n :data-copied=\"OptionalExtensions.from(copied, AttributeValue.True)\"\n :data-error=\"OptionalExtensions.from(error !== null, AttributeValue.True)\"\n :class=\"error ? 'text-destructive-soft-foreground' : undefined\"\n v-bind=\"passthroughAttrs\"\n @click=\"handleClick\"\n >\n <slot v-if=\"slots.default\" :copied=\"copied\" :error=\"error\" />\n <Icon v-else :icon=\"fallbackIcon\" :size=\"16\" />\n </Button>\n</template>\n","<script lang=\"ts\">\nimport type { GoogleButtonOptions } from '../../../foundation/oauth';\n\n/** Defines the props for {@link GoogleSignInButton}. */\nexport interface GoogleSignInButtonProps {\n /** The button surface. Default `outline`. */\n readonly theme?: GoogleButtonOptions['theme'];\n\n /** The button height band. Default `large`. */\n readonly size?: GoogleButtonOptions['size'];\n\n /** The label wording. Default `signin_with`. */\n readonly text?: GoogleButtonOptions['text'];\n\n /** The button outline. Default `rectangular`. */\n readonly shape?: GoogleButtonOptions['shape'];\n\n /** The rendered width in px. GIS caps this at 400; omit to size to the host element. */\n readonly width?: number;\n\n /** The logo placement. Default `left`. */\n readonly logoAlignment?: GoogleButtonOptions['logo_alignment'];\n\n /** The BCP-47 locale for the button copy. Defaults to the browser's. */\n readonly locale?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, nextTick, ref, watch } from 'vue';\n\nimport { GoogleIdentityStatus, useGoogleIdentity } from '../../../foundation/oauth';\n\n/**\n * Renders the Google sign-in button — the Google-owned control for the GIS ID-token flow.\n *\n * The button itself is drawn by Google into the host element, not by this package: the ID-token flow\n * requires Google's own branding, so `theme` / `size` / `shape` are forwarded to GIS rather than\n * mapped onto house variants. Everything below the pixels is ours — script loading, `initialize`, and\n * the credential handoff live in the ancestor's `provideGoogleIdentity` owner.\n *\n * The owner receives a signed JWT ID token, not a session. Post it to the\n * product's identity endpoint for server-side verification, and let the response drive `AuthProvider`.\n */\ndefineOptions({ name: 'GoogleSignInButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<GoogleSignInButtonProps>(), {\n theme: 'outline',\n size: 'large',\n text: 'signin_with',\n shape: 'rectangular',\n logoAlignment: 'left',\n});\n\nconst host = ref<HTMLElement | null>(null);\nconst identity = useGoogleIdentity();\nconst isConfigured = computed(() => identity.status.value !== GoogleIdentityStatus.Unresolved);\n\n/* GIS reads these once per `renderButton` call, so a prop change has to re-render the button rather\n than mutate it. Collected into one computed so the watcher below fires on any of them. */\nconst buttonOptions = computed<GoogleButtonOptions>(() => ({\n theme: props.theme,\n size: props.size,\n text: props.text,\n shape: props.shape,\n width: props.width,\n logo_alignment: props.logoAlignment,\n locale: props.locale,\n}));\n\nconst isReady = computed(() => identity.status.value === GoogleIdentityStatus.Ready);\n\n/* `immediate` covers the case where the script resolved before this watcher was registered; the\n `nextTick` covers the opposite one, where `isReady` flips in the same tick the host is created and\n the ref is not populated yet. */\nwatch(\n [isReady, buttonOptions, host],\n async () => {\n if (!isReady.value) {\n host.value?.replaceChildren();\n return;\n }\n await nextTick();\n if (!isReady.value) return;\n\n const target = host.value;\n if (!target) return;\n\n // GIS appends; without the clear, a re-render stacks a second button under the first.\n target.replaceChildren();\n identity.renderButton(target, buttonOptions.value);\n },\n { immediate: true },\n);\n</script>\n\n<template>\n <div v-if=\"isConfigured\" ref=\"host\" v-bind=\"$attrs\" />\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes } from 'vue';\nimport type { Side } from '../../../foundation/styles';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface DisclosureButtonProps extends /* @vue-ignore */ Omit<ButtonHTMLAttributes, 'children' | 'onChange'> {\n /** The controlled open state. */\n readonly open?: boolean;\n /** The uncontrolled initial state. */\n readonly defaultOpen?: boolean;\n /** The side the chevron sits on (`left` · `right`). Default `right`. */\n readonly chevronSide?: Side;\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { ChevronDown } from 'lucide-vue-next';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType, dataAttr } from '../../../foundation/dom';\nimport { cn, Side as SideValue } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport { useControlled } from '../../../foundation/state';\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. */\n/** Renders a full-width labelled button with a rotating chevron that expands or collapses a section. */\ndefineOptions({ name: 'DisclosureButton', inheritAttrs: false });\n\n/* `children` became the default slot (the visible, left-aligned label); `onOpenChange` the\n `update:open` emit. */\nconst props = withDefaults(defineProps<DisclosureButtonProps>(), {\n chevronSide: SideValue.Right,\n type: ButtonType.Button,\n defaultOpen: false,\n open: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the reader expands or collapses the section, carrying the new open state. */\n 'update:open': [open: boolean];\n}>();\n\ndefineSlots<{\n /** The button's own label, left-aligned beside the chevron. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst { value: open, setValue: setOpen } = useControlled<boolean>({\n controlled: () => props.open,\n default: props.defaultOpen,\n onChange: (next) => emit('update:open', next),\n});\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 chevronClass = computed(() => cn('transition-transform', open.value && 'rotate-180'));\n\nconst rootClass = computed(() =>\n cn(\n 'inline-flex w-full items-center justify-between gap-2 rounded-md px-3 py-2 text-sm font-medium text-foreground transition-colors hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (!e.defaultPrevented)`. */\nfunction handleClick(event: MouseEvent): void {\n if (event.defaultPrevented) return;\n setOpen(!open.value);\n}\n\nconst root = useTemplateRef<HTMLButtonElement>('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 <!-- Button with a rotating chevron — sets `aria-expanded` + `data-state=\"open|closed\"`. -->\n <button\n ref=\"root\"\n :type=\"type\"\n :aria-expanded=\"open\"\n :data-state=\"open ? 'open' : 'closed'\"\n :data-disabled=\"dataAttr(attrs.disabled as boolean | undefined)\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @click=\"handleClick\"\n >\n <Icon v-if=\"chevronSide === SideValue.Left\" :icon=\"ChevronDown\" :size=\"16\" :class=\"chevronClass\" />\n <span class=\"flex-1 text-left\"><slot /></span>\n <Icon v-if=\"chevronSide === SideValue.Right\" :icon=\"ChevronDown\" :size=\"16\" :class=\"chevronClass\" />\n </button>\n</template>\n","import { inject, type InjectionKey } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\n\nexport interface ToolbarContextValue {\n /** The toolbar's layout axis. Live getter — read it, don't destructure it. */\n readonly orientation: Orientation;\n}\n\nexport const ToolbarKey: InjectionKey<ToolbarContextValue> = Symbol('wow-two.toolbar');\n\n/** Reads the surrounding `Toolbar`. Throws outside one — the parts are not standalone. */\nexport function useToolbarContext(): ToolbarContextValue {\n const context = inject(ToolbarKey, null);\n if (!context) throw new Error('Toolbar.* must be used inside <Toolbar>');\n return context;\n}\n","<script lang=\"ts\">\nimport type { HTMLAttributes } from 'vue';\nimport type { Orientation } from '../../../foundation/styles';\n\n/* Native div attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface ToolbarProps extends /* @vue-ignore */ HTMLAttributes {\n /** The layout axis — drives both the arrow-key navigation and the flex direction. Default `horizontal`. */\n readonly orientation?: Orientation;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, useAttrs, useTemplateRef, type ComponentPublicInstance } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Orientation as OrientationValue } from '../../../foundation/styles';\nimport { RovingFocusGroup } from '../../../foundation/primitives';\nimport { ToolbarKey } from './ToolbarContext';\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. */\n/** Renders a bordered strip of actions that arrow keys walk through as a single tab stop. */\ndefineOptions({ name: 'Toolbar', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ToolbarProps>(), {\n orientation: OrientationValue.Horizontal,\n});\n\ndefineSlots<{\n /** The toolbar items — buttons, links, and separators sharing one roving tab stop. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* Live getter, not a snapshot — `ToolbarSeparator` re-reads it to flip its own axis. */\nprovide(ToolbarKey, {\n get orientation() {\n return props.orientation;\n },\n});\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 items-center gap-1 rounded-md border border-border bg-background p-1',\n props.orientation === OrientationValue.Vertical && 'flex-col items-stretch',\n attrs.class as ClassValue,\n ),\n);\n\nconst root = useTemplateRef<ComponentPublicInstance>('root');\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\nconst el = computed<HTMLElement | null>(() => {\n const node = root.value?.$el;\n return node instanceof HTMLElement ? node : null;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <RovingFocusGroup\n ref=\"root\"\n :orientation=\"orientation\"\n can-loop\n role=\"toolbar\"\n :aria-orientation=\"orientation\"\n :data-orientation=\"orientation\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n >\n <slot />\n </RovingFocusGroup>\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes } from 'vue';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface ToolbarButtonProps extends /* @vue-ignore */ Omit<ButtonHTMLAttributes, 'children'> {\n /** The as-child flag — renders as the single child via `Primitive`, dropping item chrome. */\n readonly asChild?: boolean;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType, HtmlElement } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { Primitive, useRovingFocusItem } from '../../../foundation/primitives';\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. */\n/** Renders one action button inside a toolbar, taking its turn in the group's roving tab stop. */\ndefineOptions({ name: 'ToolbarButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<ToolbarButtonProps>(), { asChild: false });\n\ndefineSlots<{\n /** The button's label, or — under `asChild` — the single element that becomes the item. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* Reactive object — `tabindex` tracks the group's tab stop, so read through it rather than\n destructuring. The function `ref` registers this item's node with the group. */\nconst roving = useRovingFocusItem();\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 props.asChild\n ? cn(attrs.class as ClassValue)\n : cn(\n 'inline-flex h-8 items-center justify-center rounded-sm px-2 text-sm transition-colors hover:bg-muted focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own keydown (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's explicit `if (e.defaultPrevented) return`. */\nfunction handleKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented) return;\n roving.onKeydown(event);\n}\n</script>\n\n<template>\n <Primitive\n :ref=\"roving.ref\"\n :as=\"HtmlElement.Button\"\n :as-child=\"asChild\"\n :type=\"asChild ? undefined : ButtonType.Button\"\n :tabindex=\"roving.tabindex\"\n :data-roving-focus-item=\"roving['data-roving-focus-item']\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @focus=\"roving.onFocus()\"\n @keydown=\"handleKeydown\"\n >\n <slot />\n </Primitive>\n</template>\n","<script lang=\"ts\">\nimport type { AnchorHTMLAttributes } from 'vue';\n\n/* Native anchor attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport type ToolbarLinkProps = /* @vue-ignore */ Omit<AnchorHTMLAttributes, 'children'>;\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn } from '../../../foundation/styles';\nimport { useRovingFocusItem } from '../../../foundation/primitives';\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. */\n/** Renders one anchor inside a toolbar, taking its turn in the group's roving tab stop. */\ndefineOptions({ name: 'ToolbarLink', inheritAttrs: false });\n\ndefineSlots<{\n /** The anchor's own label. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\n/* Reactive object — `tabindex` tracks the group's tab stop, so read through it rather than\n destructuring. The function `ref` registers this item's node with the group. */\nconst roving = useRovingFocusItem();\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 h-8 items-center justify-center rounded-sm px-2 text-sm text-foreground underline-offset-2 transition-colors hover:bg-muted hover:underline focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own keydown (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's explicit `if (e.defaultPrevented) return`. */\nfunction handleKeydown(event: KeyboardEvent): void {\n if (event.defaultPrevented) return;\n roving.onKeydown(event);\n}\n</script>\n\n<template>\n <a\n :ref=\"roving.ref\"\n :tabindex=\"roving.tabindex\"\n :data-roving-focus-item=\"roving['data-roving-focus-item']\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @focus=\"roving.onFocus()\"\n @keydown=\"handleKeydown\"\n >\n <slot />\n </a>\n</template>\n","<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, Orientation } from '../../../foundation/styles';\nimport { useToolbarContext } from './ToolbarContext';\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. */\n/** Renders a hairline rule between two toolbar groups, turned across the toolbar's own axis. */\ndefineOptions({ name: 'ToolbarSeparator', inheritAttrs: false });\n\nconst attrs = useAttrs();\nconst context = useToolbarContext();\n\nconst isVertical = computed(() => context.orientation === Orientation.Vertical);\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('shrink-0 bg-border', isVertical.value ? 'mx-1 h-px' : 'my-1 w-px self-stretch', attrs.class as ClassValue),\n);\n</script>\n\n<template>\n <div\n role=\"separator\"\n :aria-orientation=\"isVertical ? 'horizontal' : 'vertical'\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n />\n</template>\n","import ToolbarRoot from './Toolbar.vue';\nimport ToolbarButton from './ToolbarButton.vue';\nimport ToolbarLink from './ToolbarLink.vue';\nimport ToolbarSeparator from './ToolbarSeparator.vue';\n\n/**\n * The toolbar root, carrying its parts as properties so `<Toolbar.Button>` /\n * `<Toolbar.Separator>` resolve in a template — the counterpart of the React\n * original's `Object.assign`. Each part is also exported on its own name.\n */\nconst Toolbar: typeof ToolbarRoot & {\n Button: typeof ToolbarButton;\n LinkItem: typeof ToolbarLink;\n SeparatorLayout: typeof ToolbarSeparator;\n} = Object.assign(ToolbarRoot, {\n Button: ToolbarButton,\n LinkItem: ToolbarLink,\n SeparatorLayout: ToolbarSeparator,\n});\n\nexport { Toolbar, ToolbarButton, ToolbarLink, ToolbarSeparator };\nexport type { ToolbarProps } from './Toolbar.vue';\nexport type { ToolbarButtonProps } from './ToolbarButton.vue';\nexport type { ToolbarLinkProps } from './ToolbarLink.vue';\nexport { ToolbarKey, useToolbarContext, type ToolbarContextValue } from './ToolbarContext';\n","import { inject, type InjectionKey, type ShallowRef } from 'vue';\nimport type { OverlayPosition } from '../../../foundation/styles';\n\n/** The overlay anchor position of a SpeedDialGroup (shared overlay vocabulary). */\nexport type SpeedDialGroupPosition = OverlayPosition;\n\n/** Defines the axis a SpeedDialGroup's action items fan out along. */\nexport const SpeedDialGroupDirection = {\n /** Refers to items stacking upward from the trigger. */\n Up: 'up',\n /** Refers to items stacking downward from the trigger. */\n Down: 'down',\n /** Refers to items stacking to the left of the trigger. */\n Left: 'left',\n /** Refers to items stacking to the right of the trigger. */\n Right: 'right',\n} as const;\n\nexport type SpeedDialGroupDirection = (typeof SpeedDialGroupDirection)[keyof typeof SpeedDialGroupDirection];\n\nexport interface SpeedDialGroupContextValue {\n /** The open state. Live getter — read it, don't destructure it. */\n readonly open: boolean;\n\n /** Sets the open state (and fires the root's `open-change`). */\n setOpen: (open: boolean) => void;\n\n /**\n * The trigger's element, published by `SpeedDialGroupTrigger` on mount. Escape and\n * action-select return focus here — the React original held a `MutableRefObject`\n * threaded through `composeRefs`; a Vue child writes its own element into this ref\n * instead.\n */\n triggerEl: ShallowRef<HTMLElement | null>;\n\n /** The resolved fan-out axis. Live getter. */\n readonly direction: SpeedDialGroupDirection;\n\n /** The viewport anchor. Live getter. */\n readonly position: SpeedDialGroupPosition;\n}\n\nexport const SpeedDialGroupKey: InjectionKey<SpeedDialGroupContextValue> = Symbol('wow-two.speedDial');\n\n/** Reads the surrounding `SpeedDialGroup`. Throws outside one — the parts are not standalone. */\nexport function useSpeedDialContext(): SpeedDialGroupContextValue {\n const context = inject(SpeedDialGroupKey, null);\n if (!context) throw new Error('SpeedDialGroup.* must be used inside <SpeedDialGroup>');\n return context;\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 the `<ul>` an open speed dial fans its action items into.\n *\n * `Presence`-clonable list: a single element that takes the `data-state` and `ref`\n * `Presence` injects. Marked `group` so each action item animates off its\n * `data-[state]`; carries its own fade so `Presence` has an animation on *this*\n * node to watch before unmount. Internal — not exported from the barrel.\n */\ndefineOptions({ name: 'SpeedDialGroupList', inheritAttrs: false });\n\ndefineSlots<{\n /** The `SpeedDialGroupAction` items the list fans out, each its own `<li>`. */\n default(): unknown;\n}>();\n\nconst attrs = useAttrs();\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 'group absolute flex',\n /* list fade gated on data-state; motion-safe so reduced-motion users\n get no movement. */\n 'motion-safe:data-[state=open]:animate-(--animate-fade-in)',\n 'motion-safe:data-[state=closed]:animate-(--animate-fade-out)',\n 'motion-reduce:animate-none',\n /* Per-item enter stagger: ramp `animation-delay` on the first few items\n while opening only (closed → delay 0 so no item outlasts the list's\n own fade-out, which gates unmount). */\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(2)]:[animation-delay:40ms]',\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(3)]:[animation-delay:80ms]',\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(4)]:[animation-delay:120ms]',\n 'motion-safe:group-data-[state=open]:[&>li:nth-child(n+5)]:[animation-delay:160ms]',\n attrs.class as ClassValue,\n ),\n);\n</script>\n\n<template>\n <ul role=\"menu\" :class=\"rootClass\" v-bind=\"passthroughAttrs\">\n <slot />\n </ul>\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes, VNodeChild } from 'vue';\nimport type { FabButtonVariant, FabButtonSize } from '../fabButton/FabButton.variants';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface SpeedDialGroupTriggerProps extends /* @vue-ignore */ Omit<ButtonHTMLAttributes, 'children'> {\n /** The glyph shown while closed. Defaults to a `Plus` icon. Prefer the `closed-icon` named slot. */\n readonly closedIcon?: VNodeChild;\n\n /** The glyph shown while open. Defaults to an `X` icon. Prefer the `open-icon` named slot. */\n readonly openIcon?: VNodeChild;\n\n /** The FabButton surface style. */\n readonly variant?: FabButtonVariant;\n\n /** The FabButton diameter. */\n readonly size?: FabButtonSize;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, defineComponent, useAttrs, useTemplateRef, watchPostEffect } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { Plus, X } from 'lucide-vue-next';\nimport { AriaAttribute } from '../../../foundation/dom';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport FabButton from '../fabButton/FabButton.vue';\nimport { useSpeedDialContext } from './SpeedDialGroupContext';\n\nconst locale = useLocale();\n\n/** Renders the speed dial's pinned FAB, swapping its glyph as the dial opens and closes. */\ndefineOptions({ name: 'SpeedDialGroupTrigger', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SpeedDialGroupTriggerProps>(), {\n /* `VNodeChild` includes `boolean`, so Vue's boolean casting turns an absent node-valued prop\n into `false` rather than `undefined` — which reads as \"supplied\" at every `!== undefined`\n check. An explicit `undefined` default suppresses the cast. */\n closedIcon: undefined,\n openIcon: undefined,\n});\n\ndefineSlots<{\n /** The glyph shown while the dial is open. Falls back to `openIcon`, then to an `X` icon. */\n 'open-icon'?(): unknown;\n\n /** The glyph shown while the dial is closed. Falls back to `closedIcon`, then to a `Plus` icon. */\n 'closed-icon'?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst context = useSpeedDialContext();\n\n/* `aria-label` is read off `attrs`, not `props`: Vue camelizes declared prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It is stripped from the\n forwarded attrs and re-bound below, so the resolved value is the one that lands. */\nconst ariaLabel = computed(\n () =>\n (attrs[AriaAttribute.Label] as string | undefined) ??\n locale.t('SpeedDialGroupTrigger.label', undefined, 'Toggle actions'),\n);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', AriaAttribute.Label]);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\n/* Stable render-only wrappers for the node-valued props, so each can render as the fallback of its\n named-slot twin. */\nconst ClosedIconProp = defineComponent({ render: () => props.closedIcon });\nconst OpenIconProp = defineComponent({ render: () => props.openIcon });\n\nconst fab = useTemplateRef('fab');\n\n/* Publishes the trigger element into the root's context — Escape and action-select return focus\n here. The React original threaded a shared `MutableRefObject` through `composeRefs`. */\nwatchPostEffect(() => {\n const node = fab.value?.el;\n const elementType = node?.ownerDocument.defaultView?.HTMLElement;\n context.triggerEl.value = elementType && node instanceof elementType ? node : null;\n});\n\nconst rootClass = computed(() =>\n cn('static !bottom-auto !left-auto !right-auto !top-auto !translate-x-0', attrs.class as ClassValue),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (e.defaultPrevented) return`. */\nfunction handleClick(event: MouseEvent): void {\n if (event.defaultPrevented) return;\n context.setOpen(!context.open);\n}\n</script>\n\n<template>\n <FabButton\n ref=\"fab\"\n v-bind=\"passthroughAttrs\"\n :aria-label=\"ariaLabel\"\n aria-haspopup=\"menu\"\n :aria-expanded=\"context.open\"\n :variant=\"variant\"\n :size=\"size\"\n :position=\"context.position\"\n :class=\"rootClass\"\n @click=\"handleClick\"\n >\n <template v-if=\"context.open\">\n <slot name=\"open-icon\">\n <OpenIconProp v-if=\"openIcon !== undefined\" />\n <Icon v-else :icon=\"X\" :size=\"20\" />\n </slot>\n </template>\n <template v-else>\n <slot name=\"closed-icon\">\n <ClosedIconProp v-if=\"closedIcon !== undefined\" />\n <Icon v-else :icon=\"Plus\" :size=\"20\" />\n </slot>\n </template>\n </FabButton>\n</template>\n","<script lang=\"ts\">\nimport type { SpeedDialGroupDirection, SpeedDialGroupPosition } from './SpeedDialGroupContext';\n\nexport interface SpeedDialGroupProps {\n /** The viewport anchor. Default `bottom-right`. */\n readonly position?: SpeedDialGroupPosition;\n\n /** The axis the action items fan out along. Defaults to the one implied by `position`. */\n readonly direction?: SpeedDialGroupDirection;\n\n /** The controlled open state. */\n readonly open?: boolean;\n\n /** The uncontrolled initial state. */\n readonly defaultOpen?: boolean;\n\n /** The pixel gap between stacked action items. Default 12. */\n readonly gap?: number;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, provide, shallowRef, useAttrs, useSlots, useTemplateRef, watch, type VNode } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { cn, OverlayPosition } from '../../../foundation/styles';\nimport { Key } from '../../../foundation/dom';\nimport { Presence, renderableChildren } from '../../../foundation/primitives';\nimport { useControlled } from '../../../foundation/state';\nimport { useEscape } from '../../../foundation/shortcuts';\nimport { useOutsideClick } from '../../../foundation/dom';\nimport { SpeedDialGroupDirection as SpeedDialGroupDirectionValue, SpeedDialGroupKey } from './SpeedDialGroupContext';\nimport SpeedDialGroupList from './SpeedDialGroupList.vue';\nimport SpeedDialGroupTrigger from './SpeedDialGroupTrigger.vue';\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. */\n/** Renders a pinned trigger that fans a stack of action buttons out across the viewport when opened. */\ndefineOptions({ name: 'SpeedDialGroup', inheritAttrs: false });\n\n/* `className` is Vue's `class` fallthrough attr; `children` is the default slot. */\nconst props = withDefaults(defineProps<SpeedDialGroupProps>(), {\n position: OverlayPosition.BottomRight,\n direction: undefined,\n gap: 12,\n defaultOpen: false,\n open: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the dial opens or closes, carrying the new open state. */\n 'update:open': [open: boolean];\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\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 PositionToDirection: Record<SpeedDialGroupPosition, SpeedDialGroupDirection> = {\n 'bottom-right': SpeedDialGroupDirectionValue.Up,\n 'bottom-left': SpeedDialGroupDirectionValue.Up,\n 'bottom-center': SpeedDialGroupDirectionValue.Up,\n 'top-right': SpeedDialGroupDirectionValue.Down,\n 'top-left': SpeedDialGroupDirectionValue.Down,\n 'top-center': SpeedDialGroupDirectionValue.Down,\n};\n\nconst PositionOffsets: Record<SpeedDialGroupPosition, string> = {\n 'bottom-right': 'bottom-6 right-6',\n 'bottom-left': 'bottom-6 left-6',\n 'bottom-center': 'bottom-6 left-1/2 -translate-x-1/2',\n 'top-right': 'top-6 right-6',\n 'top-left': 'top-6 left-6',\n 'top-center': 'top-6 left-1/2 -translate-x-1/2',\n};\n\nconst DirectionToStack: Record<SpeedDialGroupDirection, string> = {\n [SpeedDialGroupDirectionValue.Up]: 'flex-col-reverse bottom-full mb-3',\n [SpeedDialGroupDirectionValue.Down]: 'flex-col top-full mt-3',\n [SpeedDialGroupDirectionValue.Left]: 'flex-row-reverse right-full mr-3',\n [SpeedDialGroupDirectionValue.Right]: 'flex-row top-1/2 -translate-y-1/2 left-full ml-3',\n};\n\nconst { value: open, setValue: setOpen } = useControlled<boolean>({\n controlled: () => props.open,\n default: props.defaultOpen,\n onChange: (next) => emit('update:open', next),\n});\n\nconst rootEl = useTemplateRef<HTMLDivElement>('rootEl');\nconst triggerEl = shallowRef<HTMLElement | null>(null);\n\nconst resolvedDirection = computed(() => props.direction ?? PositionToDirection[props.position]);\n\nuseEscape((event) => {\n if (event.defaultPrevented) return;\n setOpen(false);\n}, open);\n\n// Restore only while the closing dial owns focus; never queue a callback that can steal it later.\nwatch(\n open,\n (isOpen) => {\n const root = rootEl.value;\n if (!isOpen && root?.contains(root.ownerDocument.activeElement)) triggerEl.value?.focus();\n },\n { flush: 'pre' },\n);\n\nuseOutsideClick(\n rootEl,\n () => {\n if (open.value) setOpen(false);\n },\n open,\n);\n\nprovide(SpeedDialGroupKey, {\n get open() {\n return open.value;\n },\n setOpen,\n triggerEl,\n get direction() {\n return resolvedDirection.value;\n },\n get position() {\n return props.position;\n },\n});\n\n/* The trigger renders always (a closed dial must still be openable); only the action items are\n gated behind `open`. The React original partitioned `Children.toArray` on `child.type`; the\n same split runs over the slot's vnodes, so the authoring shape is unchanged. */\nfunction splitChildren(keepTrigger: boolean): Array<VNode> {\n return renderableChildren(slots.default?.()).filter(\n (child) => (child.type === SpeedDialGroupTrigger) === keepTrigger,\n );\n}\n\nconst rootClass = computed(() => cn('fixed', PositionOffsets[props.position], attrs.class as ClassValue));\nconst stackClass = computed(() => DirectionToStack[resolvedDirection.value]);\n\nfunction handleKeydown(event: KeyboardEvent): void {\n if (\n event.defaultPrevented ||\n event.isComposing ||\n !open.value ||\n (event.key !== Key.ArrowDown && event.key !== Key.ArrowUp)\n )\n return;\n const root = rootEl.value;\n if (!root) return;\n const items = Array.from(root.querySelectorAll<HTMLButtonElement>('[role=\"menuitem\"]')).filter(\n (item) => !item.matches(':disabled,[aria-disabled=\"true\"],[data-disabled],[hidden]') && !item.closest('[inert]'),\n );\n if (items.length === 0) return;\n event.preventDefault();\n const currentIndex = items.indexOf(root.ownerDocument.activeElement as HTMLButtonElement);\n const nextIndex =\n currentIndex === -1\n ? event.key === Key.ArrowDown\n ? 0\n : items.length - 1\n : (currentIndex + (event.key === Key.ArrowDown ? 1 : -1) + items.length) % items.length;\n items[nextIndex]?.focus();\n}\n\n/** The rendered element — the Vue stand-in for the React original's forwarded ref. */\ndefineExpose({ el: rootEl });\n</script>\n\n<template>\n <div\n ref=\"rootEl\"\n :data-state=\"open ? 'open' : 'closed'\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @keydown=\"handleKeydown\"\n >\n <!-- `Presence` clones `data-state` (\"open\" | \"closed\") + a `ref` onto the list and defers\n unmount until its fade-out ends — keeps the exit from being killed by the hard `!open`\n unmount. Items pop in/out off the list's `group` state (see `SpeedDialGroupAction`),\n staggered on enter. -->\n <Presence :is-present=\"open\">\n <SpeedDialGroupList :data-direction=\"resolvedDirection\" :style=\"{ gap: `${gap}px` }\" :class=\"stackClass\">\n <component :is=\"node\" v-for=\"(node, index) in splitChildren(false)\" :key=\"node.key ?? index\" />\n </SpeedDialGroupList>\n </Presence>\n <component :is=\"node\" v-for=\"(node, index) in splitChildren(true)\" :key=\"node.key ?? index\" />\n </div>\n</template>\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes, VNodeChild } from 'vue';\nimport { AriaAttribute } from '../../../foundation/dom';\n\n/** @internal An attribute name this component derives or requires. */\ntype RequiredAttribute = typeof AriaAttribute.Label;\n\n/* The required accessible label rides on the ignored heritage rather than the body — action items\n are icon-only, so the name is mandatory, but it must reach the DOM as an attribute. */\ntype SpeedDialGroupActionAttributes = Omit<ButtonHTMLAttributes, 'children'> & Record<RequiredAttribute, string>;\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface SpeedDialGroupActionProps extends /* @vue-ignore */ SpeedDialGroupActionAttributes {\n /** The action's glyph. Prefer the `icon` named slot; this prop stays for parity with the React API. */\n readonly icon?: VNodeChild;\n\n /** The label chip rendered beside the button. Prefer the `tooltip` named slot. */\n readonly tooltip?: VNodeChild;\n\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, defineComponent, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport type { ClassValue } from 'clsx';\nimport { ButtonType } from '../../../foundation/dom';\nimport { cn, Side } from '../../../foundation/styles';\nimport { SpeedDialGroupDirection, useSpeedDialContext } from './SpeedDialGroupContext';\n\n/* `aria-label` is deliberately NOT a declared prop: Vue camelizes prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It stays a fallthrough attr;\n the interface keeps the requirement through the `@vue-ignore`d heritage. */\n/** Renders one icon button of an open speed dial, with an optional label chip beside it. */\ndefineOptions({ name: 'SpeedDialGroupAction', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<SpeedDialGroupActionProps>(), {\n type: ButtonType.Button,\n /* `VNodeChild` includes `boolean`, so Vue's boolean casting turns an absent node-valued prop\n into `false` rather than `undefined` — which reads as \"supplied\" at every `!== undefined`\n check. An explicit `undefined` default suppresses the cast. */\n icon: undefined,\n tooltip: undefined,\n});\n\nconst emit = defineEmits<{\n /** Fires when the action is chosen — the dial closes and focus returns to the trigger afterwards. */\n select: [];\n}>();\n\ndefineSlots<{\n /** The action's glyph. Preferred over the `icon` prop. */\n icon?(): unknown;\n /** The glyph, in the plain-children shape a Vue caller reaches for. Same slot as `icon`. */\n default?(): unknown;\n /** The label chip beside the button. Preferred over the `tooltip` prop. */\n tooltip?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst context = useSpeedDialContext();\n\nconst DirectionLabelSide: Record<SpeedDialGroupDirection, Side> = {\n [SpeedDialGroupDirection.Up]: Side.Right,\n [SpeedDialGroupDirection.Down]: Side.Right,\n [SpeedDialGroupDirection.Left]: Side.Right,\n [SpeedDialGroupDirection.Right]: Side.Left,\n};\n\n/* Stable render-only wrappers for the node-valued props, so each can render as the fallback of its\n named-slot twin. */\nconst IconProp = defineComponent({ render: () => props.icon });\nconst TooltipProp = defineComponent({ render: () => props.tooltip });\n\nconst labelSide = computed(() => DirectionLabelSide[context.direction]);\nconst hasTooltip = computed(() => props.tooltip !== undefined || slots.tooltip !== undefined);\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 buttonClass = computed(() =>\n cn(\n 'inline-flex h-10 w-10 items-center justify-center rounded-full bg-card text-card-foreground shadow-md transition-all hover:shadow-lg focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (e.defaultPrevented) return`. */\nfunction handleClick(event: MouseEvent): void {\n if (\n event.defaultPrevented ||\n !context.open ||\n root.value?.matches(':disabled,[aria-disabled=\"true\"],[data-disabled]')\n )\n return;\n emit('select');\n context.setOpen(false);\n}\n\nconst root = useTemplateRef<HTMLButtonElement>('root');\nfunction handleClickCapture(event: MouseEvent): void {\n if (context.open && !root.value?.matches(':disabled,[aria-disabled=\"true\"],[data-disabled]')) return;\n event.preventDefault();\n event.stopImmediatePropagation();\n}\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 <li\n role=\"none\"\n :data-side=\"labelSide\"\n :class=\"\n cn(\n 'flex items-center gap-2',\n /* fade+scale each action off the list's `group` state; motion-safe so\n reduced-motion users get no movement (delay ramp lives on the list). */\n 'motion-safe:group-data-[state=open]:animate-(--animate-pop-in)',\n 'motion-safe:group-data-[state=closed]:animate-(--animate-pop-out)',\n 'motion-reduce:animate-none',\n )\n \"\n >\n <span\n v-if=\"hasTooltip && labelSide === Side.Left\"\n class=\"rounded-md bg-popover px-2 py-1 text-xs text-popover-foreground shadow\"\n >\n <slot name=\"tooltip\"><TooltipProp v-if=\"tooltip !== undefined\" /></slot>\n </span>\n <button\n ref=\"root\"\n v-bind=\"passthroughAttrs\"\n :type=\"type\"\n role=\"menuitem\"\n :class=\"buttonClass\"\n @click.capture=\"handleClickCapture\"\n @click=\"handleClick\"\n >\n <!-- The default slot is the fallback, not a second API: React typed `children` away,\n so a Vue caller writing `<SpeedDialGroupAction><Pencil /></SpeedDialGroupAction>` — the\n idiomatic shape — got a silently empty button. Precedence stays `icon` slot →\n default slot → `icon` prop. -->\n <slot name=\"icon\">\n <slot><IconProp v-if=\"icon !== undefined\" /></slot>\n </slot>\n </button>\n <span\n v-if=\"hasTooltip && labelSide === Side.Right\"\n class=\"rounded-md bg-popover px-2 py-1 text-xs text-popover-foreground shadow\"\n >\n <slot name=\"tooltip\"><TooltipProp v-if=\"tooltip !== undefined\" /></slot>\n </span>\n </li>\n</template>\n","import SpeedDialGroupRoot from './SpeedDialGroup.vue';\nimport SpeedDialGroupTrigger from './SpeedDialGroupTrigger.vue';\nimport SpeedDialGroupAction from './SpeedDialGroupAction.vue';\n\n/**\n * The dial root, carrying its parts as properties so `<SpeedDialGroup.Trigger>` /\n * `<SpeedDialGroup.Action>` resolve in a template — the counterpart of the React\n * original's `Object.assign`. Each part is also exported on its own name.\n */\nconst SpeedDialGroup: typeof SpeedDialGroupRoot & {\n Trigger: typeof SpeedDialGroupTrigger;\n Action: typeof SpeedDialGroupAction;\n} = Object.assign(SpeedDialGroupRoot, {\n Trigger: SpeedDialGroupTrigger,\n Action: SpeedDialGroupAction,\n});\n\nexport { SpeedDialGroup, SpeedDialGroupAction, SpeedDialGroupTrigger };\nexport {\n SpeedDialGroupDirection,\n SpeedDialGroupKey,\n useSpeedDialContext,\n type SpeedDialGroupContextValue,\n type SpeedDialGroupPosition,\n} from './SpeedDialGroupContext';\nexport type { SpeedDialGroupProps } from './SpeedDialGroup.vue';\nexport type { SpeedDialGroupTriggerProps } from './SpeedDialGroupTrigger.vue';\nexport type { SpeedDialGroupActionProps } from './SpeedDialGroupAction.vue';\nexport default SpeedDialGroup;\n","<script lang=\"ts\">\nimport type { ButtonHTMLAttributes, VNodeChild } from 'vue';\nimport type { OverlayPosition } from '../../../foundation/styles';\n\n/* Native button attributes stay in attribute fallthrough rather than becoming runtime props. */\nexport interface BackToTopButtonProps extends /* @vue-ignore */ ButtonHTMLAttributes {\n /** The scroll distance (px) before the button appears. Default 400. */\n readonly threshold?: number;\n\n /** The scrollable element to scope to. Defaults to the window. */\n readonly scrollContainer?: HTMLElement | null;\n\n /** The anchor position on the viewport. Default `bottom-right`. */\n readonly position?: OverlayPosition;\n\n /** The visible label. Omit for icon-only. Prefer the `label` named slot. */\n readonly label?: VNodeChild;\n\n /** The button type. Default `ButtonType.Button`. */\n readonly type?: ButtonType;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocale } from '../../../foundation/i18n';\nimport { computed, defineComponent, shallowRef, useAttrs, useTemplateRef, watchPostEffect } from 'vue';\nimport { ArrowUp } from 'lucide-vue-next';\nimport type { ClassValue } from 'clsx';\nimport { AriaAttribute, ButtonType } from '../../../foundation/dom';\nimport { cn, OverlayPosition as OverlayPositionValue } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\n\nconst locale = useLocale();\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. */\n/** Renders a floating button that appears past a scroll threshold and returns the page to the top. */\ndefineOptions({ name: 'BackToTopButton', inheritAttrs: false });\n\nconst props = withDefaults(defineProps<BackToTopButtonProps>(), {\n threshold: 400,\n position: OverlayPositionValue.BottomRight,\n type: ButtonType.Button,\n scrollContainer: null,\n /* `VNodeChild` includes `boolean`, so Vue's boolean casting turns an absent node-valued prop\n into `false` rather than `undefined` — which reads as \"supplied\" at every `!== undefined`\n check. An explicit `undefined` default suppresses the cast. */\n label: undefined,\n});\n\nconst slots = defineSlots<{\n /** The visible label beside the arrow. Falls back to the `label` prop, then to icon-only. */\n label?(): unknown;\n}>();\n\nconst attrs = useAttrs();\n\nconst PositionClasses: Record<OverlayPosition, string> = {\n 'bottom-right': 'bottom-6 right-6',\n 'bottom-left': 'bottom-6 left-6',\n 'bottom-center': 'bottom-6 left-1/2 -translate-x-1/2',\n 'top-right': 'top-6 right-6',\n 'top-left': 'top-6 left-6',\n 'top-center': 'top-6 left-1/2 -translate-x-1/2',\n};\n\n/* Stable render-only wrapper for the node-valued `label` prop, so it can render as the fallback of\n its named-slot twin. */\nconst LabelProp = defineComponent({ render: () => props.label });\n\nconst hasLabel = computed(() => props.label !== undefined || slots.label !== undefined);\n\nconst visible = shallowRef(false);\n\n/* `watchPostEffect` is the `useEffect` counterpart: it re-subscribes whenever `threshold` or\n `scrollContainer` changes, and reads once on attach. */\nwatchPostEffect((onCleanup) => {\n if (typeof window === 'undefined') return;\n const element: HTMLElement | Window = props.scrollContainer ?? window;\n const read = (): void => {\n const y = 'scrollY' in element ? (element as Window).scrollY : (element as HTMLElement).scrollTop;\n visible.value = y >= props.threshold;\n };\n read();\n const target = element as EventTarget;\n target.addEventListener('scroll', read, { passive: true });\n onCleanup(() => target.removeEventListener('scroll', read));\n});\n\n/* `aria-label` is read off `attrs`, not `props`: Vue camelizes declared prop keys, so a declared\n `'aria-label'` would arrive as `props.ariaLabel` and never render. It is stripped from the\n forwarded attrs and re-bound below, so the resolved value is the one that lands. */\nconst ariaLabel = computed(\n () =>\n (attrs[AriaAttribute.Label] as string | undefined) ?? locale.t('BackToTopButton.label', undefined, 'Back to top'),\n);\n\nconst OwnedAttributes: ReadonlySet<string> = new Set(['class', AriaAttribute.Label]);\nconst passthroughAttrs = computed(() =>\n Object.fromEntries(Object.entries(attrs).filter(([key]) => !OwnedAttributes.has(key))),\n);\n\nconst rootClass = computed(() =>\n cn(\n 'fixed z-banner inline-flex items-center justify-center gap-2 rounded-full bg-card text-card-foreground shadow-lg ring-1 ring-border transition-all hover:shadow-xl focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring',\n hasLabel.value ? 'h-11 px-4 text-sm font-medium' : 'h-11 w-11',\n PositionClasses[props.position],\n attrs.class as ClassValue,\n ),\n);\n\n/* Chained after the consumer's own click (attribute fallthrough puts theirs first) and skipped\n when they called `preventDefault()` — the original's `onClick?.(e); if (e.defaultPrevented) return`. */\nfunction handleClick(event: MouseEvent): void {\n if (event.defaultPrevented) return;\n const reducedMotion =\n typeof window !== 'undefined' && window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n const target = props.scrollContainer ?? window;\n if ('scrollTo' in target) {\n target.scrollTo({ top: 0, behavior: reducedMotion ? 'auto' : 'smooth' });\n }\n}\n\nconst root = useTemplateRef<HTMLButtonElement>('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 <!-- Floating button revealed past `threshold` scroll — smooth-scrolls to top. -->\n <button\n v-if=\"visible\"\n ref=\"root\"\n :type=\"type\"\n :aria-label=\"ariaLabel\"\n :class=\"rootClass\"\n v-bind=\"passthroughAttrs\"\n @click=\"handleClick\"\n >\n <Icon :icon=\"ArrowUp\" :size=\"16\" />\n <slot name=\"label\"><LabelProp v-if=\"label !== undefined\" /></slot>\n </button>\n</template>\n"],"names":["OwnedAttributes","OrientationValue","_openBlock","_createElementBlock","_mergeProps","_renderSlot","_useSlots","_createBlock","Button","_unref","Icon","$attrs","SideValue","_createElementVNode","_hoisted_2","_hoisted_1","ToolbarRoot","ToolbarButton","ToolbarLink","ToolbarSeparator","FabButton","SpeedDialGroupDirectionValue","SpeedDialGroupTrigger","_createVNode","SpeedDialGroupList","_Fragment","_renderList","_resolveDynamicComponent","_normalizeClass","SpeedDialGroupRoot","SpeedDialGroupAction"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwBA,UAAM,QAAQ;AAUd,UAAM,QAAQ,SAAA;AAEd,UAAMA,mBAAuC,oBAAI,IAAI,CAAC,OAAO,CAAC;AAC9D,UAAM,mBAAmB;AAAA,MAAS,MAChC,OAAO,YAAY,OAAO,QAAQ,KAAK,EAAE,OAAO,CAAC,CAAC,GAAG,MAAM,CAACA,iBAAgB,IAAI,GAAG,CAAC,CAAC;AAAA,IAAA;AAGvF,UAAM,eAAe,SAAS,MAAM,MAAM,gBAAgBC,YAAiB,UAAU;AAErF,UAAM,YAAY;AAAA,MAAS,MACzB;AAAA,QACE;AAAA,QACA,aAAa,QAAQ,aAAa;AAAA,QAClC,MAAM,aACF,aAAa,QACX,mHACA,mHACF;AAAA,QACJ,MAAM;AAAA,MAAA;AAAA,IACR;AAGF,UAAM,OAAO,eAA+B,MAAM;AAGlD,aAAa,EAAE,IAAI,MAAM;;AAKvB,aAAAC,UAAA,GAAAC,mBAEM,OAFNC,WAEM;AAAA,iBAFG;AAAA,QAAJ,KAAI;AAAA,QAAO,MAAK;AAAA,QAAS,oBAAkB,QAAA;AAAA,QAAc,OAAO,UAAA;AAAA,MAAA,GAAmB,iBAAA,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5,7 +5,7 @@ import { B as ButtonType, H as HtmlElement } from "./HtmlValues-jlKY5f9C.js";
5
5
  import { K as Key } from "./Key-CQlkK53D.js";
6
6
  import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
7
7
  import { c as cn } from "./Cn-C7De6POU.js";
8
- import { T as Tones, C as CssExtensions } from "./Tones-Bcz8dIo3.js";
8
+ import { T as Tones, C as CssExtensions } from "./Tones-BU9yaXKf.js";
9
9
  import { C as ColorExtensions } from "./ColorExtensions-DiCSaVbJ.js";
10
10
  import { I as IsDevelopment } from "./Environment-BLuXHzzF.js";
11
11
  import { O as OptionalExtensions } from "./OptionalExtensions-NiO6gV0W.js";
@@ -661,4 +661,4 @@ export {
661
661
  ButtonVariant as a,
662
662
  buttonVariants as b
663
663
  };
664
- //# sourceMappingURL=Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map
664
+ //# sourceMappingURL=Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js.map