@wow-two-beta/fe 0.0.29 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +11 -0
  2. package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js → AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js} +91 -26
  3. package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js.map +1 -0
  4. package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js} +2 -2
  5. package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js.map} +1 -1
  6. package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js} +2 -2
  7. package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map} +1 -1
  8. package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js} +2 -2
  9. package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js.map} +1 -1
  10. package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js} +2 -2
  11. package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js.map} +1 -1
  12. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js} +4 -4
  13. package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map} +1 -1
  14. package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js} +2 -2
  15. package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map} +1 -1
  16. package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js → KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js} +6 -6
  17. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +1 -0
  18. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js} +6 -6
  19. package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map} +1 -1
  20. package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js → MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js} +28 -9
  21. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-C5GpXgfl.js.map +1 -0
  22. package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js} +578 -322
  23. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map +1 -0
  24. package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js} +2 -2
  25. package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js.map} +1 -1
  26. package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js} +2 -2
  27. package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js.map} +1 -1
  28. package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js} +2 -2
  29. package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js.map} +1 -1
  30. package/dist/chunks/{SurfaceStyles-BYvRlsWe.js → SurfaceStyles-DUVz963_.js} +25 -6
  31. package/dist/chunks/SurfaceStyles-DUVz963_.js.map +1 -0
  32. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js} +3 -3
  33. package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js.map} +1 -1
  34. package/dist/chunks/{Tones-Bcz8dIo3.js → Tones-BU9yaXKf.js} +5 -3
  35. package/dist/chunks/{Tones-Bcz8dIo3.js.map → Tones-BU9yaXKf.js.map} +1 -1
  36. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js +29 -0
  37. package/dist/chunks/VisuallyHidden.vue_vue_type_script_setup_true_lang-SZseKI7j.js.map +1 -0
  38. package/dist/chunks/{index-CGIXFfl9.js → index-Bk5JPh5t.js} +3 -3
  39. package/dist/chunks/{index-CGIXFfl9.js.map → index-Bk5JPh5t.js.map} +1 -1
  40. package/dist/chunks/{index-DA17sNzP.js → index-CRV9gpyX.js} +52 -3
  41. package/dist/chunks/index-CRV9gpyX.js.map +1 -0
  42. package/dist/chunks/{index-Dp6L9sX7.js → index-Clq52PIa.js} +5 -28
  43. package/dist/chunks/index-Clq52PIa.js.map +1 -0
  44. package/dist/foundation/primitives/index.js +5 -4
  45. package/dist/foundation/primitives/index.js.map +1 -1
  46. package/dist/foundation/styles/SurfaceStyles.d.ts +25 -8
  47. package/dist/foundation/styles/index.js +3 -3
  48. package/dist/foundation/themes/Theme.d.ts +33 -0
  49. package/dist/foundation/themes/index.d.ts +1 -1
  50. package/dist/foundation/themes/index.js +1 -1
  51. package/dist/index.css +106 -0
  52. package/dist/index.js +18 -18
  53. package/dist/presentation/actions/index.js +2 -2
  54. package/dist/presentation/display/card/Card.vue.d.ts +4 -1
  55. package/dist/presentation/display/index.js +3 -3
  56. package/dist/presentation/feedback/index.js +3 -3
  57. package/dist/presentation/feedback/toastHost/index.js +1 -1
  58. package/dist/presentation/forms/InputStyles.d.ts +7 -0
  59. package/dist/presentation/forms/ReadOnlyHint.vue.d.ts +6 -0
  60. package/dist/presentation/forms/UseReadOnlyHint.d.ts +17 -0
  61. package/dist/presentation/forms/colorSwatchPicker/ColorSwatchItem.vue.d.ts +2 -0
  62. package/dist/presentation/forms/emojiPicker/EmojiPickerPopover.vue.d.ts +6 -0
  63. package/dist/presentation/forms/fontPicker/FontPicker.vue.d.ts +3 -0
  64. package/dist/presentation/forms/iconPicker/IconPicker.vue.d.ts +6 -0
  65. package/dist/presentation/forms/index.js +2 -2
  66. package/dist/presentation/forms/multiSelectPicker/MultiSelectPickerContext.d.ts +2 -0
  67. package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +13 -10
  68. package/dist/presentation/layout/index.js +1 -1
  69. package/dist/presentation/layout/navbar/Navbar.variants.d.ts +11 -2
  70. package/dist/presentation/layout/surfaceLayout/SurfaceLayout.vue.d.ts +4 -1
  71. package/dist/presentation/nav/index.js +1 -1
  72. package/dist/presentation/nav/menu/MenuContext.d.ts +1 -1
  73. package/dist/presentation/nav/menu/MenuItem.vue.d.ts +19 -1
  74. package/dist/presentation/overlays/index.js +4 -4
  75. package/dist/themes.css +18 -0
  76. package/package.json +1 -1
  77. package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +0 -1
  78. package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +0 -1
  79. package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +0 -1
  80. package/dist/chunks/MentionInput.vue_vue_type_script_setup_true_lang-5pRxNIcK.js.map +0 -1
  81. package/dist/chunks/SurfaceStyles-BYvRlsWe.js.map +0 -1
  82. package/dist/chunks/index-DA17sNzP.js.map +0 -1
  83. package/dist/chunks/index-Dp6L9sX7.js.map +0 -1
package/README.md CHANGED
@@ -64,6 +64,17 @@ A platform app imports `themes.css` after `styles.css` and sets `class="theme-pl
64
64
  for dark mode and `surface-ambient` on the page for the backdrop; the `glass` variants of `Navbar`,
65
65
  `AppShellHeader` and `Card` take their translucent fill from its card and popover tokens.
66
66
 
67
+ Glass strength is a theme setting. The glass surfaces read nine custom properties, which a theme sets in its
68
+ `.theme-{id}` blocks (`Theme.glass`; the `ocharo` theme sets the approved frame values) and an app may set on any
69
+ subtree: `--glass-fill` (top bar, bottom bar, cards), `--glass-side-fill`, `--glass-menu-fill`, `--glass-blur`,
70
+ `--glass-saturate`, `--glass-edge`, `--glass-highlight`, `--glass-shadow` and `--glass-menu-shadow`. Unset, every
71
+ surface keeps the SDK's own glass. Use them through the components — `AppShellHeader variant="glass"`,
72
+ `AppShellSidebar variant="glass"`, and `variant="glass-menu"` on `DropdownMenuContent`, `PopoverContent`,
73
+ `ModalContent`, `AccountMenu` and `AppSwitcherMenu` — or on an app's own markup through the utilities
74
+ `surface-glass`, `surface-glass-side`, `surface-glass-menu`, `border-glass-edge`, `shadow-(--glass-shadow)` and
75
+ `shadow-(--glass-menu-shadow)`. Each material is the solid card (popover for menus) where blur is unsupported and
76
+ under `prefers-reduced-transparency`.
77
+
67
78
  The root exports presentation components and the `styles`, `dom`, `optionals`, `state`, `numbers`, `json`, `icons`, `primitives`, `themes`,
68
79
  `color` and `emoji` namespaces. Dedicated subpaths expose application adapters:
69
80
 
@@ -13,7 +13,7 @@ import { D as DomOrderExtensions } from "./DomOrderExtensions-Czsyvn6e.js";
13
13
  import { _ as _sfc_main$K, b as useRovingFocusItem } from "./RovingFocusGroup.vue_vue_type_script_setup_true_lang-DVRYYua_.js";
14
14
  import { tv } from "tailwind-variants";
15
15
  import { A as AriaAttribute } from "./AriaAttribute-CmUjjXjp.js";
16
- import { s as surfaceVariants } from "./SurfaceStyles-BYvRlsWe.js";
16
+ import { s as surfaceVariants } from "./SurfaceStyles-DUVz963_.js";
17
17
  import { u as useReducedMotion, a as useMediaQuery } from "./UseReducedMotion-NZ5fg-Xb.js";
18
18
  import { _ as _sfc_main$G } from "./Portal.vue_vue_type_script_setup_true_lang-C2_xSIMy.js";
19
19
  import { _ as _sfc_main$H } from "./AnchoredPositioner.vue_vue_type_script_setup_true_lang-BpBVI2Cu.js";
@@ -23,15 +23,15 @@ import { H as HtmlElement } from "./HtmlValues-jlKY5f9C.js";
23
23
  import { S as Slottable } from "./Slot-BGJ_Mr_j.js";
24
24
  import { T as TailwindBreakpoints } from "./Breakpoints-CltjxN0E.js";
25
25
  import { u as useLocaleDefaults } from "./UseLocaleDefaults-DnL2Ctbe.js";
26
- import { a as _sfc_main$O, c as _sfc_main$P, _ as _sfc_main$Q, b as _sfc_main$R } from "./OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js";
27
- import { _ as _sfc_main$L, b as _sfc_main$M, a as _sfc_main$N } from "./PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js";
28
- import { _ as _sfc_main$S } from "./Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js";
26
+ import { a as _sfc_main$O, c as _sfc_main$P, _ as _sfc_main$Q, b as _sfc_main$R } from "./OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js";
27
+ import { _ as _sfc_main$L, b as _sfc_main$M, a as _sfc_main$N } from "./PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js";
28
+ import { _ as _sfc_main$S } from "./Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js";
29
29
  import { u as useTypeahead } from "./UseTypeahead-C-y7nBo2.js";
30
30
  import { _ as _sfc_main$I } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
31
31
  import { b as ColorModeKey, C as ColorMode } from "./ColorModeContext-ivCR7JC9.js";
32
32
  const _hoisted_1$m = ["aria-label"];
33
- const _hoisted_2$e = { class: "flex flex-wrap items-center gap-1.5" };
34
- const _hoisted_3$8 = ["href"];
33
+ const _hoisted_2$f = { class: "flex flex-wrap items-center gap-1.5" };
34
+ const _hoisted_3$9 = ["href"];
35
35
  const _hoisted_4$6 = ["aria-current"];
36
36
  const _hoisted_5$4 = {
37
37
  key: 0,
@@ -62,7 +62,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
62
62
  ref: el,
63
63
  "aria-label": unref(locale).t("Breadcrumb.breadcrumb", void 0, "Breadcrumb")
64
64
  }, rest.value, { class: classes.value }), [
65
- createElementVNode("ol", _hoisted_2$e, [
65
+ createElementVNode("ol", _hoisted_2$f, [
66
66
  (openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item, i) => {
67
67
  return openBlock(), createElementBlock(Fragment, {
68
68
  key: item.href ?? item.label
@@ -79,7 +79,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
79
79
  }, () => [
80
80
  createTextVNode(toDisplayString(item.label), 1)
81
81
  ])
82
- ], 8, _hoisted_3$8)) : (openBlock(), createElementBlock("span", {
82
+ ], 8, _hoisted_3$9)) : (openBlock(), createElementBlock("span", {
83
83
  key: 1,
84
84
  "aria-current": i === lastIndex.value ? "page" : void 0,
85
85
  class: "text-foreground"
@@ -108,8 +108,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
108
108
  }
109
109
  });
110
110
  const _hoisted_1$l = ["aria-label"];
111
- const _hoisted_2$d = ["aria-label", "disabled"];
112
- const _hoisted_3$7 = ["aria-label", "disabled"];
111
+ const _hoisted_2$e = ["aria-label", "disabled"];
112
+ const _hoisted_3$8 = ["aria-label", "disabled"];
113
113
  const _hoisted_4$5 = ["aria-current", "onClick"];
114
114
  const _hoisted_5$3 = ["aria-label", "disabled"];
115
115
  const _hoisted_6$3 = ["aria-label", "disabled"];
@@ -183,7 +183,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
183
183
  icon: unref(ChevronsLeft),
184
184
  size: 16
185
185
  }, null, 8, ["icon"])
186
- ], 10, _hoisted_2$d)) : createCommentVNode("", true),
186
+ ], 10, _hoisted_2$e)) : createCommentVNode("", true),
187
187
  createElementVNode("button", {
188
188
  type: "button",
189
189
  "aria-label": unref(locale).t("Pagination.previousPage", void 0, "Previous page"),
@@ -195,7 +195,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
195
195
  icon: unref(ChevronLeft),
196
196
  size: 16
197
197
  }, null, 8, ["icon"])
198
- ], 10, _hoisted_3$7),
198
+ ], 10, _hoisted_3$8),
199
199
  (openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (p, i) => {
200
200
  return openBlock(), createElementBlock(Fragment, null, [
201
201
  p === "ellipsis" ? (openBlock(), createElementBlock("span", {
@@ -580,7 +580,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
580
580
  };
581
581
  }
582
582
  });
583
- const _hoisted_1$k = ["disabled", "aria-disabled", "data-disabled"];
583
+ const _hoisted_1$k = ["href", "target", "rel", "aria-disabled", "data-disabled"];
584
+ const _hoisted_2$d = {
585
+ key: 0,
586
+ class: "sr-only"
587
+ };
588
+ const _hoisted_3$7 = ["disabled", "aria-disabled", "data-disabled"];
589
+ const AbsoluteWebUrl = /^(?:https?:)?\/\//iu;
590
+ const ExternalRel = "noopener noreferrer";
584
591
  const _sfc_main$B = /* @__PURE__ */ defineComponent({
585
592
  ...{ name: "MenuItem", inheritAttrs: false },
586
593
  __name: "MenuItem",
@@ -588,11 +595,17 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
588
595
  state: { default: void 0 },
589
596
  isDisabled: { type: Boolean, default: void 0 },
590
597
  canCloseOnSelect: { type: Boolean, default: void 0 },
591
- closeOnSelect: { type: Boolean, default: void 0 }
598
+ closeOnSelect: { type: Boolean, default: void 0 },
599
+ href: { default: void 0 },
600
+ target: { default: void 0 },
601
+ rel: { default: void 0 },
602
+ asChild: { type: Boolean, default: false },
603
+ newTabLabel: { default: void 0 }
592
604
  },
593
605
  emits: ["select"],
594
606
  setup(__props, { expose: __expose, emit: __emit }) {
595
- const props = __props;
607
+ const componentProps = __props;
608
+ const props = useLocaleDefaults(componentProps, "MenuItem", { newTabLabel: "(opens in a new tab)" });
596
609
  const emit = __emit;
597
610
  const attrs = useAttrs();
598
611
  const menu = useMenuContext();
@@ -601,6 +614,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
601
614
  const itemState = computed(
602
615
  () => props.state ?? (props.isDisabled ? MenuItemState.Disabled : MenuItemState.Default)
603
616
  );
617
+ const safeHref = computed(() => props.asChild ? void 0 : UrlExtensions.safeNavigation(props.href));
618
+ const isLink = computed(() => safeHref.value !== void 0);
619
+ const followsLink = computed(() => isLink.value || props.asChild);
620
+ const opensNewTab = computed(() => isLink.value && props.target === "_blank");
621
+ const linkRel = computed(() => {
622
+ if (props.rel !== void 0) return props.rel === "" ? void 0 : props.rel;
623
+ return opensNewTab.value || AbsoluteWebUrl.test(safeHref.value ?? "") ? ExternalRel : void 0;
624
+ });
604
625
  const classes = computed(() => cn(menuItemVariants({ state: itemState.value }), attrs.class));
605
626
  const rest = computed(() => {
606
627
  const { class: _class, ...others } = attrs;
@@ -614,6 +635,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
614
635
  { immediate: true, flush: "post" }
615
636
  );
616
637
  onScopeDispose(() => menu.unregisterItem(id));
638
+ function setChild(instance) {
639
+ const node = instance && "$el" in instance ? instance.$el : instance;
640
+ el.value = node instanceof HTMLElement ? node : null;
641
+ }
617
642
  function activate() {
618
643
  emit("select");
619
644
  if (props.canCloseOnSelect ?? props.closeOnSelect ?? true) menu.close();
@@ -623,11 +648,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
623
648
  if (menu.navigate(id, event)) return;
624
649
  if (event.key === "Enter" || event.key === " ") {
625
650
  event.preventDefault();
626
- activate();
651
+ if (followsLink.value) el.value?.click();
652
+ else activate();
627
653
  }
628
654
  }
629
655
  function handleClick(event) {
630
- if (event.defaultPrevented || props.isDisabled) return;
656
+ if (props.isDisabled) return;
657
+ if (event.defaultPrevented && !followsLink.value) return;
631
658
  activate();
632
659
  }
633
660
  function handlePointerMove(event) {
@@ -641,14 +668,52 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
641
668
  }
642
669
  __expose({ el });
643
670
  return (_ctx, _cache) => {
644
- return openBlock(), createElementBlock("button", mergeProps({
671
+ return isLink.value ? (openBlock(), createElementBlock("a", mergeProps({
672
+ key: 0,
673
+ ref_key: "el",
674
+ ref: el,
675
+ role: "menuitem",
676
+ href: unref(props).isDisabled ? void 0 : safeHref.value,
677
+ target: unref(props).target,
678
+ rel: linkRel.value,
679
+ "aria-disabled": unref(props).isDisabled || void 0,
680
+ "data-disabled": unref(dataAttr)(unref(props).isDisabled)
681
+ }, rest.value, {
682
+ class: classes.value,
683
+ onClick: handleClick,
684
+ onKeydown: handleKeydown,
685
+ onPointermove: handlePointerMove,
686
+ onPointerleave: handlePointerLeave
687
+ }), [
688
+ renderSlot(_ctx.$slots, "default"),
689
+ opensNewTab.value && unref(props).newTabLabel ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(` ${unref(props).newTabLabel}`), 1)) : createCommentVNode("", true)
690
+ ], 16, _hoisted_1$k)) : unref(props).asChild ? (openBlock(), createBlock(unref(Primitive), mergeProps({
691
+ key: 1,
692
+ ref: setChild,
693
+ "as-child": "",
694
+ role: "menuitem",
695
+ "aria-disabled": unref(props).isDisabled || void 0,
696
+ "data-disabled": unref(dataAttr)(unref(props).isDisabled)
697
+ }, rest.value, {
698
+ class: classes.value,
699
+ onClick: handleClick,
700
+ onKeydown: handleKeydown,
701
+ onPointermove: handlePointerMove,
702
+ onPointerleave: handlePointerLeave
703
+ }), {
704
+ default: withCtx(() => [
705
+ renderSlot(_ctx.$slots, "default")
706
+ ]),
707
+ _: 3
708
+ }, 16, ["aria-disabled", "data-disabled", "class"])) : (openBlock(), createElementBlock("button", mergeProps({
709
+ key: 2,
645
710
  ref_key: "el",
646
711
  ref: el,
647
712
  type: "button",
648
713
  role: "menuitem",
649
- disabled: __props.isDisabled,
650
- "aria-disabled": __props.isDisabled || void 0,
651
- "data-disabled": unref(dataAttr)(__props.isDisabled)
714
+ disabled: unref(props).isDisabled,
715
+ "aria-disabled": unref(props).isDisabled || void 0,
716
+ "data-disabled": unref(dataAttr)(unref(props).isDisabled)
652
717
  }, rest.value, {
653
718
  class: classes.value,
654
719
  onClick: handleClick,
@@ -657,7 +722,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
657
722
  onPointerleave: handlePointerLeave
658
723
  }), [
659
724
  renderSlot(_ctx.$slots, "default")
660
- ], 16, _hoisted_1$k);
725
+ ], 16, _hoisted_3$7));
661
726
  };
662
727
  }
663
728
  });
@@ -1033,7 +1098,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
1033
1098
  }
1034
1099
  function focusFirstRow() {
1035
1100
  const content = el.value?.ownerDocument.getElementById(sub.contentId);
1036
- content?.querySelector('[role^="menuitem"]:not([disabled])')?.focus();
1101
+ content?.querySelector('[role^="menuitem"]:not([disabled]):not([aria-disabled="true"])')?.focus();
1037
1102
  }
1038
1103
  function openFromKeyboard() {
1039
1104
  clearOpenTimer();
@@ -1385,7 +1450,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
1385
1450
  function focusLastEnabledItem(panel) {
1386
1451
  if (context.openFocus.current !== "last") return;
1387
1452
  context.openFocus.current = "first";
1388
- const items = panel.querySelectorAll('[role^="menuitem"]:not([disabled])');
1453
+ const items = panel.querySelectorAll('[role^="menuitem"]:not([disabled]):not([aria-disabled="true"])');
1389
1454
  items[items.length - 1]?.focus();
1390
1455
  }
1391
1456
  watch(
@@ -3476,7 +3541,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3476
3541
  );
3477
3542
  const panelClasses = computed(
3478
3543
  () => cn(
3479
- "flex w-[min(18rem,calc(100vw-2rem))] max-h-[calc(100dvh-5rem)] flex-col gap-0.5",
3544
+ "-mx-1 flex w-[min(18.5rem,calc(100vw-1.5rem))] max-h-[calc(100dvh-5rem)] flex-col gap-0.5 px-1",
3480
3545
  "overflow-y-auto overscroll-contain",
3481
3546
  props.panelClass
3482
3547
  )
@@ -3786,4 +3851,4 @@ export {
3786
3851
  MenuSubKey as y,
3787
3852
  MenuSubOpenReason as z
3788
3853
  };
3789
- //# sourceMappingURL=AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map
3854
+ //# sourceMappingURL=AccountMenu.vue_vue_type_script_setup_true_lang-CG03MviN.js.map