@wow-two-beta/fe 0.0.32 → 0.0.34

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 (73) hide show
  1. package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js +155 -0
  2. package/dist/chunks/Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js.map +1 -0
  3. package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js → BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js} +74 -31
  4. package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js.map +1 -0
  5. package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js → ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js} +70 -230
  6. package/dist/chunks/ColorSwatchPreview.vue_vue_type_script_setup_true_lang-Btd7KUEw.js.map +1 -0
  7. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js} +87 -233
  8. package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-E72RRrNG.js.map +1 -0
  9. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js +216 -0
  10. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-2IDI_JgQ.js.map +1 -0
  11. package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js → KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js} +390 -203
  12. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-akNFA0JK.js.map +1 -0
  13. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -1
  14. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js → RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js} +939 -1063
  15. package/dist/chunks/RowsField.vue_vue_type_script_setup_true_lang-C0L-DjCW.js.map +1 -0
  16. package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js +447 -0
  17. package/dist/chunks/TypedConfirmField.vue_vue_type_script_setup_true_lang-DXCZlnlM.js.map +1 -0
  18. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js → TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js} +313 -109
  19. package/dist/chunks/TypedConfirmModal.vue_vue_type_script_setup_true_lang-3Sdgh0cV.js.map +1 -0
  20. package/dist/foundation/device/hooks/UseBreakpointRange.d.ts +21 -0
  21. package/dist/foundation/device/index.d.ts +1 -0
  22. package/dist/foundation/device/index.js +13 -0
  23. package/dist/foundation/device/index.js.map +1 -1
  24. package/dist/foundation/http/ApiDecoderExtensions.d.ts +22 -0
  25. package/dist/foundation/http/ApiFailureExtensions.d.ts +22 -0
  26. package/dist/foundation/http/ProblemDetailsExtensions.d.ts +31 -0
  27. package/dist/foundation/http/index.d.ts +3 -0
  28. package/dist/foundation/http/index.js +93 -2
  29. package/dist/foundation/http/index.js.map +1 -1
  30. package/dist/index.js +642 -633
  31. package/dist/index.js.map +1 -1
  32. package/dist/presentation/actions/index.d.ts +1 -0
  33. package/dist/presentation/actions/index.js +12 -11
  34. package/dist/presentation/actions/refreshButton/RefreshButton.vue.d.ts +26 -0
  35. package/dist/presentation/actions/refreshButton/index.d.ts +1 -0
  36. package/dist/presentation/display/badge/Badge.variants.d.ts +77 -10
  37. package/dist/presentation/display/badge/Badge.vue.d.ts +18 -1
  38. package/dist/presentation/display/badge/index.d.ts +1 -1
  39. package/dist/presentation/display/card/CardLink.vue.d.ts +19 -0
  40. package/dist/presentation/display/card/index.d.ts +1 -0
  41. package/dist/presentation/display/index.js +63 -60
  42. package/dist/presentation/display/index.js.map +1 -1
  43. package/dist/presentation/display/listGroup/ListGroupItem.vue.d.ts +17 -0
  44. package/dist/presentation/display/sparkline/Sparkline.vue.d.ts +32 -2
  45. package/dist/presentation/display/sparkline/index.d.ts +1 -1
  46. package/dist/presentation/feedback/dataRegion/DataRegion.vue.d.ts +1 -1
  47. package/dist/presentation/feedback/index.js +43 -42
  48. package/dist/presentation/feedback/index.js.map +1 -1
  49. package/dist/presentation/forms/index.d.ts +2 -0
  50. package/dist/presentation/forms/index.js +140 -137
  51. package/dist/presentation/forms/rowsField/RowsField.vue.d.ts +56 -0
  52. package/dist/presentation/forms/rowsField/index.d.ts +1 -0
  53. package/dist/presentation/forms/tagsInput/TagsInput.vue.d.ts +1 -1
  54. package/dist/presentation/forms/typedConfirmField/TypedConfirmField.vue.d.ts +61 -0
  55. package/dist/presentation/forms/typedConfirmField/UseTypedConfirmation.d.ts +32 -0
  56. package/dist/presentation/forms/typedConfirmField/index.d.ts +2 -0
  57. package/dist/presentation/overlays/index.d.ts +1 -0
  58. package/dist/presentation/overlays/index.js +6 -5
  59. package/dist/presentation/overlays/typedConfirmModal/TypedConfirmModal.vue.d.ts +80 -0
  60. package/dist/presentation/overlays/typedConfirmModal/index.d.ts +1 -0
  61. package/dist/router/adapters/vueRouter/hooks/UseListDetailRoute.d.ts +28 -0
  62. package/dist/router/adapters/vueRouter/index.d.ts +1 -0
  63. package/dist/router/index.js +34 -0
  64. package/dist/router/index.js.map +1 -1
  65. package/package.json +1 -1
  66. package/dist/chunks/BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map +0 -1
  67. package/dist/chunks/ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map +0 -1
  68. package/dist/chunks/FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map +0 -1
  69. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +0 -1
  70. package/dist/chunks/LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map +0 -1
  71. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js +0 -44
  72. package/dist/chunks/ListboxPicker.variants-hiMcl66_.js.map +0 -1
  73. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +0 -1
@@ -0,0 +1,155 @@
1
+ import { defineComponent, useAttrs, useTemplateRef, computed, openBlock, createElementBlock, mergeProps, renderSlot, useSlots, getCurrentInstance, createBlock, unref, withCtx, createTextVNode, toDisplayString, createCommentVNode, createElementVNode, normalizeClass, createVNode } from "vue";
2
+ import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
3
+ import { X } from "lucide-vue-next";
4
+ import { c as cn } from "./Cn-C7De6POU.js";
5
+ import { tv } from "tailwind-variants";
6
+ import { _ as _sfc_main$2 } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
7
+ const alertSimpleVariants = tv({
8
+ base: "rounded-md border px-4 py-3 text-sm",
9
+ variants: {
10
+ severity: {
11
+ info: "border-info-soft bg-info-soft text-info-soft-foreground",
12
+ success: "border-success-soft bg-success-soft text-success-soft-foreground",
13
+ warning: "border-warning-soft bg-warning-soft text-warning-soft-foreground",
14
+ danger: "border-destructive-soft bg-destructive-soft text-destructive-soft-foreground",
15
+ neutral: "border-border bg-muted text-foreground"
16
+ }
17
+ },
18
+ defaultVariants: {
19
+ severity: "info"
20
+ }
21
+ });
22
+ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
23
+ ...{ name: "AlertSimple", inheritAttrs: false },
24
+ __name: "AlertSimple",
25
+ props: {
26
+ severity: {}
27
+ },
28
+ setup(__props, { expose: __expose }) {
29
+ const props = __props;
30
+ const attrs = useAttrs();
31
+ const el = useTemplateRef("el");
32
+ const classes = computed(
33
+ () => cn(alertSimpleVariants({ severity: props.severity }), attrs.class)
34
+ );
35
+ const rest = computed(() => {
36
+ const { class: _class, ...others } = attrs;
37
+ return others;
38
+ });
39
+ __expose({ el });
40
+ return (_ctx, _cache) => {
41
+ return openBlock(), createElementBlock("div", mergeProps({
42
+ ref_key: "el",
43
+ ref: el,
44
+ role: "status"
45
+ }, rest.value, { class: classes.value }), [
46
+ renderSlot(_ctx.$slots, "default")
47
+ ], 16);
48
+ };
49
+ }
50
+ });
51
+ const _hoisted_1 = {
52
+ key: 0,
53
+ class: "mt-0.5 shrink-0"
54
+ };
55
+ const _hoisted_2 = { class: "min-w-0 flex-1" };
56
+ const _hoisted_3 = {
57
+ key: 0,
58
+ class: "font-medium"
59
+ };
60
+ const _hoisted_4 = {
61
+ key: 2,
62
+ class: "mt-2 flex flex-wrap items-center gap-2"
63
+ };
64
+ const _hoisted_5 = ["aria-label"];
65
+ const _sfc_main = /* @__PURE__ */ defineComponent({
66
+ ...{ name: "Alert", inheritAttrs: false },
67
+ __name: "Alert",
68
+ props: {
69
+ severity: {},
70
+ icon: {},
71
+ title: {},
72
+ description: {},
73
+ actions: {},
74
+ closeLabel: {}
75
+ },
76
+ emits: ["close"],
77
+ setup(__props, { expose: __expose, emit: __emit }) {
78
+ const CloseIcon = X;
79
+ const componentProps = __props;
80
+ const props = useLocaleDefaults(componentProps, "Alert", { closeLabel: "Dismiss" });
81
+ const emit = __emit;
82
+ const attrs = useAttrs();
83
+ const slots = useSlots();
84
+ const instance = getCurrentInstance();
85
+ const inner = useTemplateRef("inner");
86
+ const hasClose = () => Boolean(instance?.vnode.props?.onClose);
87
+ const hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));
88
+ const hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));
89
+ const hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));
90
+ const hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));
91
+ const classes = computed(() => cn("flex items-start gap-3", attrs.class));
92
+ const descriptionClasses = computed(() => cn("text-sm", hasTitle.value && "mt-0.5 opacity-90"));
93
+ const rest = computed(() => {
94
+ const { class: _class, ...others } = attrs;
95
+ return others;
96
+ });
97
+ const el = computed(() => inner.value?.el ?? null);
98
+ __expose({ el });
99
+ return (_ctx, _cache) => {
100
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
101
+ ref_key: "inner",
102
+ ref: inner,
103
+ severity: unref(props).severity
104
+ }, rest.value, { class: classes.value }), {
105
+ default: withCtx(() => [
106
+ hasIcon.value ? (openBlock(), createElementBlock("span", _hoisted_1, [
107
+ renderSlot(_ctx.$slots, "icon", {}, () => [
108
+ createTextVNode(toDisplayString(unref(props).icon), 1)
109
+ ])
110
+ ])) : createCommentVNode("", true),
111
+ createElementVNode("div", _hoisted_2, [
112
+ hasTitle.value ? (openBlock(), createElementBlock("div", _hoisted_3, [
113
+ renderSlot(_ctx.$slots, "title", {}, () => [
114
+ createTextVNode(toDisplayString(unref(props).title), 1)
115
+ ])
116
+ ])) : createCommentVNode("", true),
117
+ hasDescription.value ? (openBlock(), createElementBlock("div", {
118
+ key: 1,
119
+ class: normalizeClass(descriptionClasses.value)
120
+ }, [
121
+ renderSlot(_ctx.$slots, "description", {}, () => [
122
+ createTextVNode(toDisplayString(unref(props).description), 1)
123
+ ])
124
+ ], 2)) : createCommentVNode("", true),
125
+ hasActions.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
126
+ renderSlot(_ctx.$slots, "actions", {}, () => [
127
+ createTextVNode(toDisplayString(unref(props).actions), 1)
128
+ ])
129
+ ])) : createCommentVNode("", true),
130
+ renderSlot(_ctx.$slots, "default")
131
+ ]),
132
+ hasClose() ? (openBlock(), createElementBlock("button", {
133
+ key: 1,
134
+ type: "button",
135
+ "aria-label": unref(props).closeLabel,
136
+ class: "-mr-1 grid h-6 w-6 shrink-0 place-items-center rounded text-current opacity-60 transition-opacity hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-current",
137
+ onClick: _cache[0] || (_cache[0] = ($event) => emit("close"))
138
+ }, [
139
+ createVNode(unref(_sfc_main$2), {
140
+ icon: unref(CloseIcon),
141
+ size: 14
142
+ }, null, 8, ["icon"])
143
+ ], 8, _hoisted_5)) : createCommentVNode("", true)
144
+ ]),
145
+ _: 3
146
+ }, 16, ["severity", "class"]);
147
+ };
148
+ }
149
+ });
150
+ export {
151
+ _sfc_main as _,
152
+ _sfc_main$1 as a,
153
+ alertSimpleVariants as b
154
+ };
155
+ //# sourceMappingURL=Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.vue_vue_type_script_setup_true_lang-CoLxB2dM.js","sources":["../../src/presentation/feedback/alertSimple/AlertSimple.variants.ts","../../src/presentation/feedback/alertSimple/AlertSimple.vue","../../src/presentation/feedback/alert/Alert.vue"],"sourcesContent":["import { Severity, tv, type VariantProps } from '../../../foundation/styles';\n\nexport const alertSimpleVariants = tv({\n base: 'rounded-md border px-4 py-3 text-sm',\n variants: {\n severity: {\n info: 'border-info-soft bg-info-soft text-info-soft-foreground',\n success: 'border-success-soft bg-success-soft text-success-soft-foreground',\n warning: 'border-warning-soft bg-warning-soft text-warning-soft-foreground',\n danger: 'border-destructive-soft bg-destructive-soft text-destructive-soft-foreground',\n neutral: 'border-border bg-muted text-foreground',\n },\n },\n defaultVariants: {\n severity: 'info',\n },\n});\n\nexport type AlertSimpleVariants = VariantProps<typeof alertSimpleVariants>;\n\n/* Compile-time lock: Severity values ≡ tv severity keys (drift = type error). */\ntype AssertExact<A, B> = [A] extends [B] ? ([B] extends [A] ? true : never) : never;\nconst _assertSeverity: AssertExact<Severity, NonNullable<VariantProps<typeof alertSimpleVariants>['severity']>> = true;\nvoid _assertSeverity;\n","<script lang=\"ts\">\nimport type { Severity } from '../../../foundation/styles';\n\nexport interface AlertSimpleProps {\n /** The semantic severity palette. */\n readonly severity?: Severity;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs, useTemplateRef } from 'vue';\nimport { cn } from '../../../foundation/styles';\nimport { alertSimpleVariants } from './AlertSimple.variants';\n\n/**\n * Renders a severity-tinted alert container around free-form children.\n * No internal slots; consumer composes title/description/actions inline.\n *\n * For the structured Icon + Title + Description + Actions composition use\n * the `Alert` molecule (L4).\n *\n * `role=\"status\"` is the live-region contract; bound before `v-bind=\"rest\"`\n * so a caller-supplied `role` (e.g. `\"alert\"`) still wins.\n */\ndefineOptions({ name: 'AlertSimple', inheritAttrs: false });\n\nconst props = defineProps<AlertSimpleProps>();\n\ndefineSlots<{\n /** The alert content. */\n default?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst el = useTemplateRef<HTMLDivElement>('el');\n\nconst classes = computed(() =>\n cn(alertSimpleVariants({ severity: props.severity }), attrs.class as string | undefined),\n);\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\ndefineExpose({ el });\n</script>\n\n<template>\n <div ref=\"el\" role=\"status\" v-bind=\"rest\" :class=\"classes\"><slot /></div>\n</template>\n","<script lang=\"ts\">\nimport type { Severity } from '../../../foundation/styles';\n\nexport interface AlertProps {\n /** The semantic severity palette. */\n readonly severity?: Severity;\n /** The optional leading icon. Rich content → the `icon` slot. */\n readonly icon?: string;\n /** The bold heading line. Rich content → the `title` slot. */\n readonly title?: string;\n /** The body text below the title. Rich content → the `description` slot. */\n readonly description?: string;\n /** The right-side action slot (typically Button(s)). Rich content → the `actions` slot. */\n readonly actions?: string;\n /** The accessible label for the close button. Default `\"Dismiss\"`. */\n readonly closeLabel?: string;\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { computed, getCurrentInstance, useAttrs, useSlots, useTemplateRef } from 'vue';\nimport { X } from 'lucide-vue-next';\nimport { cn } from '../../../foundation/styles';\nimport { Icon } from '../../../foundation/icons';\nimport AlertSimple from '../alertSimple/AlertSimple.vue';\n\nconst CloseIcon = X;\n\n/**\n * Renders an icon, title, description, and actions laid over the `AlertSimple` atom.\n * Pair: `AlertSimple` (atom, free-form children) + `Alert` (this molecule).\n *\n * Each of React's four `ReactNode` props keeps its string form and gains a\n * same-named slot for rich content; the slot wins when both are supplied.\n */\ndefineOptions({ name: 'Alert', inheritAttrs: false });\n\nconst componentProps = withDefaults(defineProps<AlertProps>(), {});\nconst props = useLocaleDefaults(componentProps, 'Alert', { closeLabel: 'Dismiss' });\n\n/** Replaces React's `onClose`; omitting `@close` omits the close button. */\nconst emit = defineEmits<{\n /** Fires when the close button is activated. */\n close: [];\n}>();\n\ndefineSlots<{\n /** The extra content below the description. */\n default?(): unknown;\n /** The leading icon. Falls back to the `icon` prop. */\n icon?(): unknown;\n /** The heading line. Falls back to the `title` prop. */\n title?(): unknown;\n /** The body text below the title. Falls back to the `description` prop. */\n description?(): unknown;\n /** The action row. Falls back to the `actions` prop. */\n actions?(): unknown;\n}>();\n\nconst attrs = useAttrs();\nconst slots = useSlots();\nconst instance = getCurrentInstance();\nconst inner = useTemplateRef<InstanceType<typeof AlertSimple>>('inner');\n\n/**\n * Mirrors React's `onClose && <button/>` guard — the close button renders only\n * when the consumer bound `@close`. Read through a call, not a cached computed:\n * `instance.vnode` is replaced on every re-render.\n */\nconst hasClose = () => Boolean(instance?.vnode.props?.onClose);\n\nconst hasIcon = computed(() => Boolean(props.icon) || Boolean(slots.icon));\nconst hasTitle = computed(() => Boolean(props.title) || Boolean(slots.title));\nconst hasDescription = computed(() => Boolean(props.description) || Boolean(slots.description));\nconst hasActions = computed(() => Boolean(props.actions) || Boolean(slots.actions));\n\nconst classes = computed(() => cn('flex items-start gap-3', attrs.class as string | undefined));\n\nconst descriptionClasses = computed(() => cn('text-sm', hasTitle.value && 'mt-0.5 opacity-90'));\n\n/** Everything but `class`, which is re-applied through `cn` above. */\nconst rest = computed(() => {\n const { class: _class, ...others } = attrs;\n return others;\n});\n\n/** Re-exposes the underlying `AlertSimple` root element, matching React's forwarded ref. */\nconst el = computed(() => inner.value?.el ?? null);\n\ndefineExpose({ el });\n</script>\n\n<template>\n <AlertSimple ref=\"inner\" :severity=\"props.severity\" v-bind=\"rest\" :class=\"classes\">\n <span v-if=\"hasIcon\" class=\"mt-0.5 shrink-0\">\n <slot name=\"icon\">{{ props.icon }}</slot>\n </span>\n <div class=\"min-w-0 flex-1\">\n <div v-if=\"hasTitle\" class=\"font-medium\">\n <slot name=\"title\">{{ props.title }}</slot>\n </div>\n <div v-if=\"hasDescription\" :class=\"descriptionClasses\">\n <slot name=\"description\">{{ props.description }}</slot>\n </div>\n <div v-if=\"hasActions\" class=\"mt-2 flex flex-wrap items-center gap-2\">\n <slot name=\"actions\">{{ props.actions }}</slot>\n </div>\n <slot />\n </div>\n <button\n v-if=\"hasClose()\"\n type=\"button\"\n :aria-label=\"props.closeLabel\"\n class=\"-mr-1 grid h-6 w-6 shrink-0 place-items-center rounded text-current opacity-60 transition-opacity hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-current\"\n @click=\"emit('close')\"\n >\n <Icon :icon=\"CloseIcon\" :size=\"14\" />\n </button>\n </AlertSimple>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_renderSlot","_createBlock","AlertSimple","_unref","_createTextVNode","_toDisplayString","_createElementVNode","_createVNode","Icon"],"mappings":";;;;;;AAEO,MAAM,sBAAsB,GAAG;AAAA,EACpC,MAAM;AAAA,EACN,UAAU;AAAA,IACR,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,MACT,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,SAAS;AAAA,IAAA;AAAA,EACX;AAAA,EAEF,iBAAiB;AAAA,IACf,UAAU;AAAA,EAAA;AAEd,CAAC;;;;;;;;ACUD,UAAM,QAAQ;AAOd,UAAM,QAAQ,SAAA;AACd,UAAM,KAAK,eAA+B,IAAI;AAE9C,UAAM,UAAU;AAAA,MAAS,MACvB,GAAG,oBAAoB,EAAE,UAAU,MAAM,SAAA,CAAU,GAAG,MAAM,KAA2B;AAAA,IAAA;AAIzF,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,EAAE,OAAO,QAAQ,GAAG,WAAW;AACr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,YAAA;;;;;;;;"}
@@ -1,19 +1,20 @@
1
- import { defineComponent, useAttrs, computed, useTemplateRef, openBlock, createElementBlock, mergeProps, renderSlot, useSlots, watch, createBlock, unref, withCtx, ref, nextTick, createCommentVNode, normalizeClass, createElementVNode, inject, provide, watchPostEffect, shallowRef, createVNode, normalizeStyle, Fragment, renderList, resolveDynamicComponent } from "vue";
1
+ import { defineComponent, useAttrs, computed, useTemplateRef, openBlock, createElementBlock, mergeProps, renderSlot, useSlots, watch, createBlock, unref, withCtx, Fragment, createTextVNode, toDisplayString, createCommentVNode, createVNode, ref, nextTick, normalizeClass, createElementVNode, inject, provide, watchPostEffect, shallowRef, normalizeStyle, renderList, resolveDynamicComponent } from "vue";
2
2
  import { c as cn } from "./Cn-C7De6POU.js";
3
3
  import { O as Orientation } from "./Orientation-u-sYunuG.js";
4
- import { Check, X, Copy, ChevronDown, Plus, ArrowUp } from "lucide-vue-next";
4
+ import { Check, X, Copy, RefreshCw, ChevronDown, Plus, ArrowUp } from "lucide-vue-next";
5
5
  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-CAbPBMuc.js";
10
- import { _ as _sfc_main$f } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
9
+ import { a as ButtonVariant, _ as _sfc_main$f } from "./Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js";
10
+ import { _ as _sfc_main$g } from "./Icon.vue_vue_type_script_setup_true_lang-Ca4wsJw9.js";
11
+ import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
11
12
  import { u as useGoogleIdentity, G as GoogleIdentityStatus } from "./GoogleIdentity-WSQsNIRW.js";
12
13
  import { d as dataAttr } from "./DataAttr-7BR67dTj.js";
13
14
  import { B as ButtonType, H as HtmlElement } from "./HtmlValues-jlKY5f9C.js";
14
15
  import { S as Side } from "./Side-Kw61CDou.js";
15
16
  import { u as useControlled } from "./UseControlled-BQneb7BW.js";
16
- import { _ as _sfc_main$g, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
17
+ import { _ as _sfc_main$h, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
17
18
  import { P as Primitive } from "./Primitive-D-9ShOm7.js";
18
19
  import { O as OverlayPosition } from "./OverlayPosition-BNybkMGG.js";
19
20
  import { K as Key } from "./Key-CQlkK53D.js";
@@ -23,7 +24,7 @@ import { tv } from "tailwind-variants";
23
24
  import { P as Presence } from "./Presence-DDk0ZtAr.js";
24
25
  import { r as renderableChildren } from "./Slot-BGJ_Mr_j.js";
25
26
  const _hoisted_1$7 = ["data-orientation"];
26
- const _sfc_main$d = /* @__PURE__ */ defineComponent({
27
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
27
28
  ...{ name: "ButtonGroup", inheritAttrs: false },
28
29
  __name: "ButtonGroup",
29
30
  props: {
@@ -106,7 +107,7 @@ const fabVariants = tv({
106
107
  }
107
108
  });
108
109
  const _hoisted_1$6 = ["type"];
109
- const _sfc_main$c = /* @__PURE__ */ defineComponent({
110
+ const _sfc_main$d = /* @__PURE__ */ defineComponent({
110
111
  ...{ name: "FabButton", inheritAttrs: false },
111
112
  __name: "FabButton",
112
113
  props: {
@@ -140,7 +141,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
140
141
  }
141
142
  });
142
143
  const OwnedAttributes = [AriaAttribute.Label];
143
- const _sfc_main$b = /* @__PURE__ */ defineComponent({
144
+ const _sfc_main$c = /* @__PURE__ */ defineComponent({
144
145
  ...{ name: "CopyButton", inheritAttrs: false },
145
146
  __name: "CopyButton",
146
147
  props: {
@@ -174,7 +175,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
174
175
  void copy(props.text, event.target instanceof Element ? event.target : null);
175
176
  }
176
177
  return (_ctx, _cache) => {
177
- return openBlock(), createBlock(_sfc_main$e, mergeProps({
178
+ return openBlock(), createBlock(_sfc_main$f, mergeProps({
178
179
  variant: __props.variant,
179
180
  "aria-label": effectiveAriaLabel.value,
180
181
  "data-copied": unref(OptionalExtensions).from(unref(copied), unref(AttributeValue).True),
@@ -185,7 +186,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
185
186
  slots.default ? renderSlot(_ctx.$slots, "default", {
186
187
  copied: unref(copied),
187
188
  error: unref(error)
188
- }, void 0, void 0, 0) : (openBlock(), createBlock(unref(_sfc_main$f), {
189
+ }, void 0, void 0, 0) : (openBlock(), createBlock(unref(_sfc_main$g), {
189
190
  key: 1,
190
191
  icon: fallbackIcon.value,
191
192
  size: 16
@@ -196,6 +197,47 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
196
197
  };
197
198
  }
198
199
  });
200
+ const _sfc_main$b = /* @__PURE__ */ defineComponent({
201
+ ...{ name: "RefreshButton", inheritAttrs: false },
202
+ __name: "RefreshButton",
203
+ props: {
204
+ isRefreshing: { type: Boolean, default: false },
205
+ label: { default: void 0 },
206
+ isIconOnly: { type: Boolean, default: false },
207
+ variant: { default: "outline" },
208
+ size: { default: "sm" }
209
+ },
210
+ setup(__props) {
211
+ const componentProps = __props;
212
+ const props = useLocaleDefaults(componentProps, "RefreshButton", { label: "Refresh" });
213
+ const attrs = useAttrs();
214
+ const naming = computed(
215
+ () => props.isIconOnly ? { "aria-label": props.label, title: props.label } : {}
216
+ );
217
+ return (_ctx, _cache) => {
218
+ return openBlock(), createBlock(_sfc_main$f, mergeProps({
219
+ tone: "neutral",
220
+ variant: unref(props).variant,
221
+ size: unref(props).size,
222
+ shape: unref(props).isIconOnly ? "square" : "default",
223
+ "is-loading": unref(props).isRefreshing
224
+ }, { ...naming.value, ...unref(attrs) }), {
225
+ leading: withCtx(() => [
226
+ createVNode(unref(_sfc_main$g), {
227
+ icon: unref(RefreshCw),
228
+ size: 14
229
+ }, null, 8, ["icon"])
230
+ ]),
231
+ default: withCtx(() => [
232
+ !unref(props).isIconOnly ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
233
+ createTextVNode(toDisplayString(unref(props).label), 1)
234
+ ], 64)) : createCommentVNode("", true)
235
+ ]),
236
+ _: 1
237
+ }, 16, ["variant", "size", "shape", "is-loading"]);
238
+ };
239
+ }
240
+ });
199
241
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
200
242
  ...{ name: "GoogleSignInButton", inheritAttrs: false },
201
243
  __name: "GoogleSignInButton",
@@ -296,7 +338,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
296
338
  "data-disabled": unref(dataAttr)(unref(attrs).disabled),
297
339
  class: rootClass.value
298
340
  }, passthroughAttrs.value, { onClick: handleClick }), [
299
- __props.chevronSide === unref(Side).Left ? (openBlock(), createBlock(unref(_sfc_main$f), {
341
+ __props.chevronSide === unref(Side).Left ? (openBlock(), createBlock(unref(_sfc_main$g), {
300
342
  key: 0,
301
343
  icon: unref(ChevronDown),
302
344
  size: 16,
@@ -305,7 +347,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
305
347
  createElementVNode("span", _hoisted_2$1, [
306
348
  renderSlot(_ctx.$slots, "default")
307
349
  ]),
308
- __props.chevronSide === unref(Side).Right ? (openBlock(), createBlock(unref(_sfc_main$f), {
350
+ __props.chevronSide === unref(Side).Right ? (openBlock(), createBlock(unref(_sfc_main$g), {
309
351
  key: 1,
310
352
  icon: unref(ChevronDown),
311
353
  size: 16,
@@ -353,7 +395,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
353
395
  });
354
396
  __expose({ el });
355
397
  return (_ctx, _cache) => {
356
- return openBlock(), createBlock(unref(_sfc_main$g), mergeProps({
398
+ return openBlock(), createBlock(unref(_sfc_main$h), mergeProps({
357
399
  ref_key: "root",
358
400
  ref: root,
359
401
  orientation: __props.orientation,
@@ -571,7 +613,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
571
613
  context.setOpen(!context.open);
572
614
  }
573
615
  return (_ctx, _cache) => {
574
- return openBlock(), createBlock(_sfc_main$c, mergeProps({
616
+ return openBlock(), createBlock(_sfc_main$d, mergeProps({
575
617
  ref_key: "fab",
576
618
  ref: fab
577
619
  }, passthroughAttrs.value, {
@@ -586,13 +628,13 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
586
628
  }), {
587
629
  default: withCtx(() => [
588
630
  unref(context).open ? renderSlot(_ctx.$slots, "open-icon", {}, () => [
589
- __props.openIcon !== void 0 ? (openBlock(), createBlock(unref(OpenIconProp), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$f), {
631
+ __props.openIcon !== void 0 ? (openBlock(), createBlock(unref(OpenIconProp), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$g), {
590
632
  key: 1,
591
633
  icon: unref(X),
592
634
  size: 20
593
635
  }, null, 8, ["icon"]))
594
636
  ], void 0, 0) : renderSlot(_ctx.$slots, "closed-icon", {}, () => [
595
- __props.closedIcon !== void 0 ? (openBlock(), createBlock(unref(ClosedIconProp), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$f), {
637
+ __props.closedIcon !== void 0 ? (openBlock(), createBlock(unref(ClosedIconProp), { key: 0 })) : (openBlock(), createBlock(unref(_sfc_main$g), {
596
638
  key: 1,
597
639
  icon: unref(Plus),
598
640
  size: 20
@@ -924,7 +966,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
924
966
  "aria-label": ariaLabel.value,
925
967
  class: rootClass.value
926
968
  }, passthroughAttrs.value, { onClick: handleClick }), [
927
- createVNode(unref(_sfc_main$f), {
969
+ createVNode(unref(_sfc_main$g), {
928
970
  icon: unref(ArrowUp),
929
971
  size: 16
930
972
  }, null, 8, ["icon"]),
@@ -940,22 +982,23 @@ export {
940
982
  SpeedDialGroup as S,
941
983
  Toolbar as T,
942
984
  _sfc_main as _,
943
- _sfc_main$d as a,
944
- _sfc_main$b as b,
985
+ _sfc_main$e as a,
986
+ _sfc_main$c as b,
945
987
  _sfc_main$9 as c,
946
- _sfc_main$c as d,
988
+ _sfc_main$d as d,
947
989
  FabButtonVariant as e,
948
990
  _sfc_main$a as f,
949
- _sfc_main$1 as g,
950
- SpeedDialGroupDirection as h,
951
- SpeedDialGroupKey as i,
952
- _sfc_main$3 as j,
953
- _sfc_main$7 as k,
954
- ToolbarKey as l,
955
- _sfc_main$6 as m,
956
- _sfc_main$5 as n,
957
- fabVariants as o,
958
- useToolbarContext as p,
991
+ _sfc_main$b as g,
992
+ _sfc_main$1 as h,
993
+ SpeedDialGroupDirection as i,
994
+ SpeedDialGroupKey as j,
995
+ _sfc_main$3 as k,
996
+ _sfc_main$7 as l,
997
+ ToolbarKey as m,
998
+ _sfc_main$6 as n,
999
+ _sfc_main$5 as o,
1000
+ fabVariants as p,
1001
+ useToolbarContext as q,
959
1002
  useSpeedDialContext as u
960
1003
  };
961
- //# sourceMappingURL=BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map
1004
+ //# sourceMappingURL=BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BackToTopButton.vue_vue_type_script_setup_true_lang-DHSpEajG.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/refreshButton/RefreshButton.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 { ButtonProps } from '../button';\n\n/** @internal The `ButtonProps` this preset decides itself. */\ntype OwnedButtonProp = keyof Pick<ButtonProps, 'isLoading' | 'shape' | 'leadingSlot'>;\n\n/** Defines the forwarded `ButtonProps`, minus the ones the refresh preset sets. */\ntype RefreshButtonAttributes = Omit<ButtonProps, OwnedButtonProp>;\n\n/** Defines props for the one refresh control a region shows. */\nexport interface RefreshButtonProps extends /* @vue-ignore */ RefreshButtonAttributes {\n /** True from the click until the refresh settles — `useRefresh`'s `refreshing`; the icon spins and clicks wait. */\n readonly isRefreshing?: boolean;\n\n /** The visible label, or the accessible name of an icon-only button. Default `\"Refresh\"`, localized. */\n readonly label?: string;\n\n /** Renders the icon alone, square at its size, named by `label`. */\n readonly isIconOnly?: boolean;\n\n /** The visual surface style. Default `outline`; `ghost` inside a panel header. */\n readonly variant?: ButtonProps['variant'];\n\n /** The size step. Default `sm`; `md` beside page-level controls. */\n readonly size?: ButtonProps['size'];\n}\n</script>\n\n<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue';\nimport { RefreshCw } from 'lucide-vue-next';\nimport { useLocaleDefaults } from '../../../foundation/i18n';\nimport { Icon } from '../../../foundation/icons';\nimport Button from '../button/Button.vue';\n\n/**\n * Renders the refresh control a region reruns its reads with — a `Button` preset that swaps the refresh icon for the\n * spinner while `isRefreshing`, keeps its label and width, and swallows repeat clicks until the refresh settles. Pair\n * it with `useRefresh` from `@wow-two-beta/fe/query`, which also drives the region's placeholders.\n */\ndefineOptions({ name: 'RefreshButton', inheritAttrs: false });\n\nconst componentProps = withDefaults(defineProps<RefreshButtonProps>(), {\n isRefreshing: false,\n label: undefined,\n isIconOnly: false,\n variant: 'outline',\n size: 'sm',\n});\nconst props = useLocaleDefaults(componentProps, 'RefreshButton', { label: 'Refresh' });\n\nconst attrs = useAttrs();\n\n/** The icon-only form names itself through `aria-label`, and `title` shows the name on hover. */\nconst naming = computed(() =>\n props.isIconOnly ? { 'aria-label': props.label, title: props.label } : ({} as Record<string, string>),\n);\n</script>\n\n<template>\n <Button\n tone=\"neutral\"\n :variant=\"props.variant\"\n :size=\"props.size\"\n :shape=\"props.isIconOnly ? 'square' : 'default'\"\n :is-loading=\"props.isRefreshing\"\n v-bind=\"{ ...naming, ...attrs }\"\n >\n <template #leading><Icon :icon=\"RefreshCw\" :size=\"14\" /></template>\n <template v-if=\"!props.isIconOnly\">{{ props.label }}</template>\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","_createVNode","_Fragment","_createTextVNode","_toDisplayString","$attrs","SideValue","_createElementVNode","_hoisted_2","_hoisted_1","ToolbarRoot","ToolbarButton","ToolbarLink","ToolbarSeparator","FabButton","SpeedDialGroupDirectionValue","SpeedDialGroupTrigger","SpeedDialGroupList","_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;A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