@wow-two-beta/fe 0.0.30 → 0.0.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/chunks/{AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js → AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js} +97 -28
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js.map +1 -0
- package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js} +2 -2
- package/dist/chunks/{Avatar.vue_vue_type_script_setup_true_lang-BIoaOjCh.js.map → Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js.map} +1 -1
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js} +2 -2
- package/dist/chunks/{BackToTopButton.vue_vue_type_script_setup_true_lang-6tfkqsrZ.js.map → BackToTopButton.vue_vue_type_script_setup_true_lang-dmN5MH2T.js.map} +1 -1
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js} +2 -2
- package/dist/chunks/{Button.vue_vue_type_script_setup_true_lang-Cw0QS_Mm.js.map → Button.vue_vue_type_script_setup_true_lang-CAbPBMuc.js.map} +1 -1
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js} +2 -2
- package/dist/chunks/{DrawerContent.vue_vue_type_script_setup_true_lang-BA-au7LC.js.map → DrawerContent.vue_vue_type_script_setup_true_lang-ClhduLMN.js.map} +1 -1
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js} +4 -4
- package/dist/chunks/{ErrorBoundary.vue_vue_type_script_setup_true_lang-DzqE0ZF8.js.map → ErrorBoundary.vue_vue_type_script_setup_true_lang-Dv9wOZmk.js.map} +1 -1
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js} +2 -2
- package/dist/chunks/{FieldHelperText.vue_vue_type_script_setup_true_lang-DuMcXUch.js.map → FieldHelperText.vue_vue_type_script_setup_true_lang-B-G5rNMG.js.map} +1 -1
- package/dist/chunks/{KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js → KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js} +6 -6
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-DKgIhFwh.js.map +1 -0
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js} +6 -6
- package/dist/chunks/{LightboxModal.vue_vue_type_script_setup_true_lang-BxdSYLYf.js.map → LightboxModal.vue_vue_type_script_setup_true_lang-CP7Or4sf.js.map} +1 -1
- package/dist/chunks/{MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js → MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js} +46 -102
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-BmWwoZrv.js.map +1 -0
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js} +6 -6
- package/dist/chunks/{MentionInput.vue_vue_type_script_setup_true_lang-D8OEoQ37.js.map → MentionInput.vue_vue_type_script_setup_true_lang-D8Ja7QjX.js.map} +1 -1
- package/dist/chunks/Navbar.variants-7DXJlilx.js +88 -0
- package/dist/chunks/Navbar.variants-7DXJlilx.js.map +1 -0
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js} +2 -2
- package/dist/chunks/{OverlayCloseButton.vue_vue_type_script_setup_true_lang-Df9raD_m.js.map → OverlayCloseButton.vue_vue_type_script_setup_true_lang-D0f_usZ9.js.map} +1 -1
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js} +2 -2
- package/dist/chunks/{PopoverContent.vue_vue_type_script_setup_true_lang-C6YKEo3H.js.map → PopoverContent.vue_vue_type_script_setup_true_lang-iUlvOlO9.js.map} +1 -1
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js} +2 -2
- package/dist/chunks/{ReportAction.vue_vue_type_script_setup_true_lang-DCnPCczd.js.map → ReportAction.vue_vue_type_script_setup_true_lang-CcAxgi-G.js.map} +1 -1
- package/dist/chunks/{SurfaceStyles-BYvRlsWe.js → SurfaceStyles-DUVz963_.js} +25 -6
- package/dist/chunks/SurfaceStyles-DUVz963_.js.map +1 -0
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js} +3 -3
- package/dist/chunks/{ToastHost.vue_vue_type_script_setup_true_lang-J1ZPZXn3.js.map → ToastHost.vue_vue_type_script_setup_true_lang-BKfF6cjS.js.map} +1 -1
- package/dist/chunks/{Tones-Bcz8dIo3.js → Tones-BU9yaXKf.js} +5 -3
- package/dist/chunks/{Tones-Bcz8dIo3.js.map → Tones-BU9yaXKf.js.map} +1 -1
- package/dist/chunks/{index-CGIXFfl9.js → index-Bk5JPh5t.js} +3 -3
- package/dist/chunks/{index-CGIXFfl9.js.map → index-Bk5JPh5t.js.map} +1 -1
- package/dist/chunks/{index-DA17sNzP.js → index-ou-qGNDu.js} +55 -3
- package/dist/chunks/index-ou-qGNDu.js.map +1 -0
- package/dist/foundation/styles/SurfaceStyles.d.ts +25 -8
- package/dist/foundation/styles/index.js +3 -3
- package/dist/foundation/themes/Theme.d.ts +38 -0
- package/dist/foundation/themes/index.d.ts +1 -1
- package/dist/foundation/themes/index.js +1 -1
- package/dist/index.css +112 -0
- package/dist/index.js +54 -53
- package/dist/index.js.map +1 -1
- package/dist/presentation/actions/index.js +2 -2
- package/dist/presentation/display/card/Card.vue.d.ts +4 -1
- package/dist/presentation/display/index.js +3 -3
- package/dist/presentation/feedback/index.js +3 -3
- package/dist/presentation/feedback/toastHost/index.js +1 -1
- package/dist/presentation/forms/index.js +2 -2
- package/dist/presentation/layout/appShell/AppShellSidebar.vue.d.ts +13 -10
- package/dist/presentation/layout/index.js +34 -33
- package/dist/presentation/layout/index.js.map +1 -1
- package/dist/presentation/layout/navbar/Navbar.variants.d.ts +17 -2
- package/dist/presentation/layout/surfaceLayout/SurfaceLayout.vue.d.ts +4 -1
- package/dist/presentation/nav/bottomNavMenu/BottomNavMenu.vue.d.ts +8 -0
- package/dist/presentation/nav/index.js +1 -1
- package/dist/presentation/nav/menu/MenuContext.d.ts +1 -1
- package/dist/presentation/nav/menu/MenuItem.vue.d.ts +19 -1
- package/dist/presentation/overlays/index.js +4 -4
- package/dist/themes.css +20 -0
- package/package.json +1 -1
- package/dist/chunks/AccountMenu.vue_vue_type_script_setup_true_lang-CWsiHHiy.js.map +0 -1
- package/dist/chunks/KanbanCard.vue_vue_type_script_setup_true_lang-CyXb4ZZw.js.map +0 -1
- package/dist/chunks/MasonryLayout.vue_vue_type_script_setup_true_lang-DD_jRzkM.js.map +0 -1
- package/dist/chunks/SurfaceStyles-BYvRlsWe.js.map +0 -1
- package/dist/chunks/index-DA17sNzP.js.map +0 -1
package/README.md
CHANGED
|
@@ -64,6 +64,18 @@ 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 ten 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`, `--glass-bottom-shadow` (the bottom bar's,
|
|
71
|
+
cast upward) and `--glass-menu-shadow`. Unset, every surface keeps the SDK's own glass. Use them through the
|
|
72
|
+
components — `AppShellHeader variant="glass"`, `AppShellSidebar variant="glass"`, `BottomNavMenu variant="glass"`,
|
|
73
|
+
and `variant="glass-menu"` on `DropdownMenuContent`, `PopoverContent`, `ModalContent`, `AccountMenu` and
|
|
74
|
+
`AppSwitcherMenu` — or on an app's own markup through the utilities `surface-glass`, `surface-glass-side`,
|
|
75
|
+
`surface-glass-menu`, `border-glass-edge`, `shadow-(--glass-shadow)`, `shadow-(--glass-bottom-shadow)` and
|
|
76
|
+
`shadow-(--glass-menu-shadow)`. Each material is the solid card (popover for menus) where blur is unsupported and
|
|
77
|
+
under `prefers-reduced-transparency`.
|
|
78
|
+
|
|
67
79
|
The root exports presentation components and the `styles`, `dom`, `optionals`, `state`, `numbers`, `json`, `icons`, `primitives`, `themes`,
|
|
68
80
|
`color` and `emoji` namespaces. Dedicated subpaths expose application adapters:
|
|
69
81
|
|
|
@@ -13,25 +13,26 @@ 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-
|
|
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";
|
|
20
20
|
import { _ as _sfc_main$J } from "./DismissableLayer.vue_vue_type_script_setup_true_lang-B8hZrhek.js";
|
|
21
21
|
import { P as Presence } from "./Presence-DDk0ZtAr.js";
|
|
22
22
|
import { H as HtmlElement } from "./HtmlValues-jlKY5f9C.js";
|
|
23
|
+
import { B as BottomNavSurfaceClass } from "./Navbar.variants-7DXJlilx.js";
|
|
23
24
|
import { S as Slottable } from "./Slot-BGJ_Mr_j.js";
|
|
24
25
|
import { T as TailwindBreakpoints } from "./Breakpoints-CltjxN0E.js";
|
|
25
26
|
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-
|
|
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-
|
|
28
|
-
import { _ as _sfc_main$S } from "./Avatar.vue_vue_type_script_setup_true_lang-
|
|
27
|
+
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";
|
|
28
|
+
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";
|
|
29
|
+
import { _ as _sfc_main$S } from "./Avatar.vue_vue_type_script_setup_true_lang-BHnzqtQH.js";
|
|
29
30
|
import { u as useTypeahead } from "./UseTypeahead-C-y7nBo2.js";
|
|
30
31
|
import { _ as _sfc_main$I } from "./FocusScope.vue_vue_type_script_setup_true_lang-C4XeQoxg.js";
|
|
31
32
|
import { b as ColorModeKey, C as ColorMode } from "./ColorModeContext-ivCR7JC9.js";
|
|
32
33
|
const _hoisted_1$m = ["aria-label"];
|
|
33
|
-
const _hoisted_2$
|
|
34
|
-
const _hoisted_3$
|
|
34
|
+
const _hoisted_2$f = { class: "flex flex-wrap items-center gap-1.5" };
|
|
35
|
+
const _hoisted_3$9 = ["href"];
|
|
35
36
|
const _hoisted_4$6 = ["aria-current"];
|
|
36
37
|
const _hoisted_5$4 = {
|
|
37
38
|
key: 0,
|
|
@@ -62,7 +63,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
62
63
|
ref: el,
|
|
63
64
|
"aria-label": unref(locale).t("Breadcrumb.breadcrumb", void 0, "Breadcrumb")
|
|
64
65
|
}, rest.value, { class: classes.value }), [
|
|
65
|
-
createElementVNode("ol", _hoisted_2$
|
|
66
|
+
createElementVNode("ol", _hoisted_2$f, [
|
|
66
67
|
(openBlock(true), createElementBlock(Fragment, null, renderList(props.items, (item, i) => {
|
|
67
68
|
return openBlock(), createElementBlock(Fragment, {
|
|
68
69
|
key: item.href ?? item.label
|
|
@@ -79,7 +80,7 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
79
80
|
}, () => [
|
|
80
81
|
createTextVNode(toDisplayString(item.label), 1)
|
|
81
82
|
])
|
|
82
|
-
], 8, _hoisted_3$
|
|
83
|
+
], 8, _hoisted_3$9)) : (openBlock(), createElementBlock("span", {
|
|
83
84
|
key: 1,
|
|
84
85
|
"aria-current": i === lastIndex.value ? "page" : void 0,
|
|
85
86
|
class: "text-foreground"
|
|
@@ -108,8 +109,8 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
108
109
|
}
|
|
109
110
|
});
|
|
110
111
|
const _hoisted_1$l = ["aria-label"];
|
|
111
|
-
const _hoisted_2$
|
|
112
|
-
const _hoisted_3$
|
|
112
|
+
const _hoisted_2$e = ["aria-label", "disabled"];
|
|
113
|
+
const _hoisted_3$8 = ["aria-label", "disabled"];
|
|
113
114
|
const _hoisted_4$5 = ["aria-current", "onClick"];
|
|
114
115
|
const _hoisted_5$3 = ["aria-label", "disabled"];
|
|
115
116
|
const _hoisted_6$3 = ["aria-label", "disabled"];
|
|
@@ -183,7 +184,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
183
184
|
icon: unref(ChevronsLeft),
|
|
184
185
|
size: 16
|
|
185
186
|
}, null, 8, ["icon"])
|
|
186
|
-
], 10, _hoisted_2$
|
|
187
|
+
], 10, _hoisted_2$e)) : createCommentVNode("", true),
|
|
187
188
|
createElementVNode("button", {
|
|
188
189
|
type: "button",
|
|
189
190
|
"aria-label": unref(locale).t("Pagination.previousPage", void 0, "Previous page"),
|
|
@@ -195,7 +196,7 @@ const _sfc_main$D = /* @__PURE__ */ defineComponent({
|
|
|
195
196
|
icon: unref(ChevronLeft),
|
|
196
197
|
size: 16
|
|
197
198
|
}, null, 8, ["icon"])
|
|
198
|
-
], 10, _hoisted_3$
|
|
199
|
+
], 10, _hoisted_3$8),
|
|
199
200
|
(openBlock(true), createElementBlock(Fragment, null, renderList(pages.value, (p, i) => {
|
|
200
201
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
201
202
|
p === "ellipsis" ? (openBlock(), createElementBlock("span", {
|
|
@@ -580,7 +581,14 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
580
581
|
};
|
|
581
582
|
}
|
|
582
583
|
});
|
|
583
|
-
const _hoisted_1$k = ["
|
|
584
|
+
const _hoisted_1$k = ["href", "target", "rel", "aria-disabled", "data-disabled"];
|
|
585
|
+
const _hoisted_2$d = {
|
|
586
|
+
key: 0,
|
|
587
|
+
class: "sr-only"
|
|
588
|
+
};
|
|
589
|
+
const _hoisted_3$7 = ["disabled", "aria-disabled", "data-disabled"];
|
|
590
|
+
const AbsoluteWebUrl = /^(?:https?:)?\/\//iu;
|
|
591
|
+
const ExternalRel = "noopener noreferrer";
|
|
584
592
|
const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
585
593
|
...{ name: "MenuItem", inheritAttrs: false },
|
|
586
594
|
__name: "MenuItem",
|
|
@@ -588,11 +596,17 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
588
596
|
state: { default: void 0 },
|
|
589
597
|
isDisabled: { type: Boolean, default: void 0 },
|
|
590
598
|
canCloseOnSelect: { type: Boolean, default: void 0 },
|
|
591
|
-
closeOnSelect: { type: Boolean, default: void 0 }
|
|
599
|
+
closeOnSelect: { type: Boolean, default: void 0 },
|
|
600
|
+
href: { default: void 0 },
|
|
601
|
+
target: { default: void 0 },
|
|
602
|
+
rel: { default: void 0 },
|
|
603
|
+
asChild: { type: Boolean, default: false },
|
|
604
|
+
newTabLabel: { default: void 0 }
|
|
592
605
|
},
|
|
593
606
|
emits: ["select"],
|
|
594
607
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
595
|
-
const
|
|
608
|
+
const componentProps = __props;
|
|
609
|
+
const props = useLocaleDefaults(componentProps, "MenuItem", { newTabLabel: "(opens in a new tab)" });
|
|
596
610
|
const emit = __emit;
|
|
597
611
|
const attrs = useAttrs();
|
|
598
612
|
const menu = useMenuContext();
|
|
@@ -601,6 +615,14 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
601
615
|
const itemState = computed(
|
|
602
616
|
() => props.state ?? (props.isDisabled ? MenuItemState.Disabled : MenuItemState.Default)
|
|
603
617
|
);
|
|
618
|
+
const safeHref = computed(() => props.asChild ? void 0 : UrlExtensions.safeNavigation(props.href));
|
|
619
|
+
const isLink = computed(() => safeHref.value !== void 0);
|
|
620
|
+
const followsLink = computed(() => isLink.value || props.asChild);
|
|
621
|
+
const opensNewTab = computed(() => isLink.value && props.target === "_blank");
|
|
622
|
+
const linkRel = computed(() => {
|
|
623
|
+
if (props.rel !== void 0) return props.rel === "" ? void 0 : props.rel;
|
|
624
|
+
return opensNewTab.value || AbsoluteWebUrl.test(safeHref.value ?? "") ? ExternalRel : void 0;
|
|
625
|
+
});
|
|
604
626
|
const classes = computed(() => cn(menuItemVariants({ state: itemState.value }), attrs.class));
|
|
605
627
|
const rest = computed(() => {
|
|
606
628
|
const { class: _class, ...others } = attrs;
|
|
@@ -614,6 +636,10 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
614
636
|
{ immediate: true, flush: "post" }
|
|
615
637
|
);
|
|
616
638
|
onScopeDispose(() => menu.unregisterItem(id));
|
|
639
|
+
function setChild(instance) {
|
|
640
|
+
const node = instance && "$el" in instance ? instance.$el : instance;
|
|
641
|
+
el.value = node instanceof HTMLElement ? node : null;
|
|
642
|
+
}
|
|
617
643
|
function activate() {
|
|
618
644
|
emit("select");
|
|
619
645
|
if (props.canCloseOnSelect ?? props.closeOnSelect ?? true) menu.close();
|
|
@@ -623,11 +649,13 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
623
649
|
if (menu.navigate(id, event)) return;
|
|
624
650
|
if (event.key === "Enter" || event.key === " ") {
|
|
625
651
|
event.preventDefault();
|
|
626
|
-
|
|
652
|
+
if (followsLink.value) el.value?.click();
|
|
653
|
+
else activate();
|
|
627
654
|
}
|
|
628
655
|
}
|
|
629
656
|
function handleClick(event) {
|
|
630
|
-
if (
|
|
657
|
+
if (props.isDisabled) return;
|
|
658
|
+
if (event.defaultPrevented && !followsLink.value) return;
|
|
631
659
|
activate();
|
|
632
660
|
}
|
|
633
661
|
function handlePointerMove(event) {
|
|
@@ -641,14 +669,52 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
641
669
|
}
|
|
642
670
|
__expose({ el });
|
|
643
671
|
return (_ctx, _cache) => {
|
|
644
|
-
return openBlock(), createElementBlock("
|
|
672
|
+
return isLink.value ? (openBlock(), createElementBlock("a", mergeProps({
|
|
673
|
+
key: 0,
|
|
674
|
+
ref_key: "el",
|
|
675
|
+
ref: el,
|
|
676
|
+
role: "menuitem",
|
|
677
|
+
href: unref(props).isDisabled ? void 0 : safeHref.value,
|
|
678
|
+
target: unref(props).target,
|
|
679
|
+
rel: linkRel.value,
|
|
680
|
+
"aria-disabled": unref(props).isDisabled || void 0,
|
|
681
|
+
"data-disabled": unref(dataAttr)(unref(props).isDisabled)
|
|
682
|
+
}, rest.value, {
|
|
683
|
+
class: classes.value,
|
|
684
|
+
onClick: handleClick,
|
|
685
|
+
onKeydown: handleKeydown,
|
|
686
|
+
onPointermove: handlePointerMove,
|
|
687
|
+
onPointerleave: handlePointerLeave
|
|
688
|
+
}), [
|
|
689
|
+
renderSlot(_ctx.$slots, "default"),
|
|
690
|
+
opensNewTab.value && unref(props).newTabLabel ? (openBlock(), createElementBlock("span", _hoisted_2$d, toDisplayString(` ${unref(props).newTabLabel}`), 1)) : createCommentVNode("", true)
|
|
691
|
+
], 16, _hoisted_1$k)) : unref(props).asChild ? (openBlock(), createBlock(unref(Primitive), mergeProps({
|
|
692
|
+
key: 1,
|
|
693
|
+
ref: setChild,
|
|
694
|
+
"as-child": "",
|
|
695
|
+
role: "menuitem",
|
|
696
|
+
"aria-disabled": unref(props).isDisabled || void 0,
|
|
697
|
+
"data-disabled": unref(dataAttr)(unref(props).isDisabled)
|
|
698
|
+
}, rest.value, {
|
|
699
|
+
class: classes.value,
|
|
700
|
+
onClick: handleClick,
|
|
701
|
+
onKeydown: handleKeydown,
|
|
702
|
+
onPointermove: handlePointerMove,
|
|
703
|
+
onPointerleave: handlePointerLeave
|
|
704
|
+
}), {
|
|
705
|
+
default: withCtx(() => [
|
|
706
|
+
renderSlot(_ctx.$slots, "default")
|
|
707
|
+
]),
|
|
708
|
+
_: 3
|
|
709
|
+
}, 16, ["aria-disabled", "data-disabled", "class"])) : (openBlock(), createElementBlock("button", mergeProps({
|
|
710
|
+
key: 2,
|
|
645
711
|
ref_key: "el",
|
|
646
712
|
ref: el,
|
|
647
713
|
type: "button",
|
|
648
714
|
role: "menuitem",
|
|
649
|
-
disabled:
|
|
650
|
-
"aria-disabled":
|
|
651
|
-
"data-disabled": unref(dataAttr)(
|
|
715
|
+
disabled: unref(props).isDisabled,
|
|
716
|
+
"aria-disabled": unref(props).isDisabled || void 0,
|
|
717
|
+
"data-disabled": unref(dataAttr)(unref(props).isDisabled)
|
|
652
718
|
}, rest.value, {
|
|
653
719
|
class: classes.value,
|
|
654
720
|
onClick: handleClick,
|
|
@@ -657,7 +723,7 @@ const _sfc_main$B = /* @__PURE__ */ defineComponent({
|
|
|
657
723
|
onPointerleave: handlePointerLeave
|
|
658
724
|
}), [
|
|
659
725
|
renderSlot(_ctx.$slots, "default")
|
|
660
|
-
], 16,
|
|
726
|
+
], 16, _hoisted_3$7));
|
|
661
727
|
};
|
|
662
728
|
}
|
|
663
729
|
});
|
|
@@ -1033,7 +1099,7 @@ const _sfc_main$w = /* @__PURE__ */ defineComponent({
|
|
|
1033
1099
|
}
|
|
1034
1100
|
function focusFirstRow() {
|
|
1035
1101
|
const content = el.value?.ownerDocument.getElementById(sub.contentId);
|
|
1036
|
-
content?.querySelector('[role^="menuitem"]:not([disabled])')?.focus();
|
|
1102
|
+
content?.querySelector('[role^="menuitem"]:not([disabled]):not([aria-disabled="true"])')?.focus();
|
|
1037
1103
|
}
|
|
1038
1104
|
function openFromKeyboard() {
|
|
1039
1105
|
clearOpenTimer();
|
|
@@ -1385,7 +1451,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
|
1385
1451
|
function focusLastEnabledItem(panel) {
|
|
1386
1452
|
if (context.openFocus.current !== "last") return;
|
|
1387
1453
|
context.openFocus.current = "first";
|
|
1388
|
-
const items = panel.querySelectorAll('[role^="menuitem"]:not([disabled])');
|
|
1454
|
+
const items = panel.querySelectorAll('[role^="menuitem"]:not([disabled]):not([aria-disabled="true"])');
|
|
1389
1455
|
items[items.length - 1]?.focus();
|
|
1390
1456
|
}
|
|
1391
1457
|
watch(
|
|
@@ -2531,7 +2597,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2531
2597
|
...{ name: "BottomNavMenu", inheritAttrs: false },
|
|
2532
2598
|
__name: "BottomNavMenu",
|
|
2533
2599
|
props: {
|
|
2534
|
-
isFixed: { type: Boolean, default: true }
|
|
2600
|
+
isFixed: { type: Boolean, default: true },
|
|
2601
|
+
variant: { default: "solid" }
|
|
2535
2602
|
},
|
|
2536
2603
|
setup(__props) {
|
|
2537
2604
|
const props = __props;
|
|
@@ -2546,7 +2613,9 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
2546
2613
|
});
|
|
2547
2614
|
const classes = computed(
|
|
2548
2615
|
() => cn(
|
|
2549
|
-
"border-t
|
|
2616
|
+
"border-t",
|
|
2617
|
+
BottomNavSurfaceClass[props.variant],
|
|
2618
|
+
"pb-[env(safe-area-inset-bottom)]",
|
|
2550
2619
|
props.isFixed && "fixed inset-x-0 bottom-0 z-sticky",
|
|
2551
2620
|
attrs.class
|
|
2552
2621
|
)
|
|
@@ -3476,7 +3545,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
3476
3545
|
);
|
|
3477
3546
|
const panelClasses = computed(
|
|
3478
3547
|
() => cn(
|
|
3479
|
-
"flex w-[min(
|
|
3548
|
+
"-mx-1 flex w-[min(18.5rem,calc(100vw-1.5rem))] max-h-[calc(100dvh-5rem)] flex-col gap-0.5 px-1",
|
|
3480
3549
|
"overflow-y-auto overscroll-contain",
|
|
3481
3550
|
props.panelClass
|
|
3482
3551
|
)
|
|
@@ -3786,4 +3855,4 @@ export {
|
|
|
3786
3855
|
MenuSubKey as y,
|
|
3787
3856
|
MenuSubOpenReason as z
|
|
3788
3857
|
};
|
|
3789
|
-
//# sourceMappingURL=AccountMenu.vue_vue_type_script_setup_true_lang-
|
|
3858
|
+
//# sourceMappingURL=AccountMenu.vue_vue_type_script_setup_true_lang-LEQUWCXJ.js.map
|