diff --git a/src/runtime/components/ContextMenuContent.vue b/src/runtime/components/ContextMenuContent.vue index 5c9234e2..279bcaf1 100644 --- a/src/runtime/components/ContextMenuContent.vue +++ b/src/runtime/components/ContextMenuContent.vue @@ -48,15 +48,17 @@ const groups = computed(() => props.items?.length ? (Array.isArray(props.items[0 - + {{ item.label }} + + - + diff --git a/src/runtime/components/DropdownMenuContent.vue b/src/runtime/components/DropdownMenuContent.vue index 47f1e9db..ed1579fb 100644 --- a/src/runtime/components/DropdownMenuContent.vue +++ b/src/runtime/components/DropdownMenuContent.vue @@ -48,15 +48,17 @@ const groups = computed(() => props.items?.length ? (Array.isArray(props.items[0 - + {{ item.label }} + + - + diff --git a/src/theme/context-menu.ts b/src/theme/context-menu.ts index 926dd327..13e3231a 100644 --- a/src/theme/context-menu.ts +++ b/src/theme/context-menu.ts @@ -10,7 +10,8 @@ export default { itemTrailing: 'ms-auto inline-flex', itemTrailingIcon: 'shrink-0 size-5', itemTrailingKbds: 'hidden lg:inline-flex items-center shrink-0 gap-0.5', - itemLabel: 'truncate' + itemLabel: 'truncate', + itemLabelExternalIcon: 'size-3 align-top text-gray-400 dark:text-gray-500' }, variants: { active: { diff --git a/src/theme/dropdown-menu.ts b/src/theme/dropdown-menu.ts index 5fabf796..e0672092 100644 --- a/src/theme/dropdown-menu.ts +++ b/src/theme/dropdown-menu.ts @@ -11,7 +11,8 @@ export default { itemTrailing: 'ms-auto inline-flex', itemTrailingIcon: 'shrink-0 size-5', itemTrailingKbds: 'hidden lg:inline-flex items-center shrink-0 gap-0.5', - itemLabel: 'truncate' + itemLabel: 'truncate', + itemLabelExternalIcon: 'size-3 align-top text-gray-400 dark:text-gray-500' }, variants: { active: { diff --git a/src/theme/icons.ts b/src/theme/icons.ts index 444d088a..cf9afe4f 100644 --- a/src/theme/icons.ts +++ b/src/theme/icons.ts @@ -8,6 +8,7 @@ export default { close: 'i-heroicons-x-mark-20-solid', ellipsis: 'i-heroicons-ellipsis-horizontal-20-solid', empty: 'i-heroicons-circle-stack-20-solid', + external: 'i-heroicons-arrow-up-right-20-solid', loading: 'i-heroicons-arrow-path-20-solid', minus: 'i-heroicons-minus-20-solid', search: 'i-heroicons-magnifying-glass-20-solid' diff --git a/test/components/__snapshots__/DropdownMenu.spec.ts.snap b/test/components/__snapshots__/DropdownMenu.spec.ts.snap index 94d4e0ab..e02a5b8c 100644 --- a/test/components/__snapshots__/DropdownMenu.spec.ts.snap +++ b/test/components/__snapshots__/DropdownMenu.spec.ts.snap @@ -9,48 +9,48 @@ exports[`DropdownMenu > renders with class correctly 1`] = ` - My account + My account - Profile + Profile - Billing⌃B + Billing⌃B - Settings? + Settings? - Team + Team - Invite users + Invite users - New team⌃N + New team⌃N - GitHub + GitHub - Support + Support - Keyboard Shortcuts + Keyboard Shortcuts - API + API - Logout⇧⌃Q + Logout⇧⌃Q @@ -69,45 +69,45 @@ exports[`DropdownMenu > renders with custom slot correctly 1`] = ` - My account + My account Custom slot - Billing⌃B + Billing⌃B - Settings? + Settings? - Team + Team - Invite users + Invite users - New team⌃N + New team⌃N - GitHub + GitHub - Support + Support - Keyboard Shortcuts + Keyboard Shortcuts - API + API - Logout⇧⌃Q + Logout⇧⌃Q @@ -126,48 +126,48 @@ exports[`DropdownMenu > renders with default slot correctly 1`] = ` - My account + My account - Profile + Profile - Billing⌃B + Billing⌃B - Settings? + Settings? - Team + Team - Invite users + Invite users - New team⌃N + New team⌃N - GitHub + GitHub - Support + Support - Keyboard Shortcuts + Keyboard Shortcuts - API + API - Logout⇧⌃Q + Logout⇧⌃Q @@ -186,48 +186,48 @@ exports[`DropdownMenu > renders with disabled correctly 1`] = ` - My account + My account - Profile + Profile - Billing⌃B + Billing⌃B - Settings? + Settings? - Team + Team - Invite users + Invite users - New team⌃N + New team⌃N - GitHub + GitHub - Support + Support - Keyboard Shortcuts + Keyboard Shortcuts - API + API - Logout⇧⌃Q + Logout⇧⌃Q @@ -249,7 +249,7 @@ exports[`DropdownMenu > renders with item slot correctly 1`] = ` Item slot - Profile + Profile Item slotItem slot Item slotItem slot @@ -279,48 +279,48 @@ exports[`DropdownMenu > renders with item-label slot correctly 1`] = ` - Item label slot + Item label slot - Profile + Profile - Item label slot⌃B + Item label slot⌃B - Item label slot? + Item label slot? - Item label slot + Item label slot - Item label slot + Item label slot - Item label slot⌃N + Item label slot⌃N - Item label slot + Item label slot - Item label slot + Item label slot - Item label slot + Item label slot - Item label slot + Item label slot - Item label slot⇧⌃Q + Item label slot⇧⌃Q @@ -339,34 +339,34 @@ exports[`DropdownMenu > renders with item-leading slot correctly 1`] = ` - Item leading slotMy account + Item leading slotMy account - Profile + Profile - Item leading slotBilling⌃BItem leading slotSettings? - Item leading slotTeam + Item leading slotBilling⌃BItem leading slotSettings? + Item leading slotTeam - Item leading slotInvite users + Item leading slotInvite users - Item leading slotNew team⌃N + Item leading slotNew team⌃N - Item leading slotGitHub + Item leading slotGitHub - Item leading slotSupport + Item leading slotSupport - Item leading slotKeyboard Shortcuts + Item leading slotKeyboard Shortcuts - Item leading slotAPI + Item leading slotAPI - Item leading slotLogout⇧⌃Q + Item leading slotLogout⇧⌃Q @@ -384,41 +384,41 @@ exports[`DropdownMenu > renders with item-trailing slot correctly 1`] = ` - My accountItem trailing slot + My accountItem trailing slot - Profile + Profile - BillingItem trailing slot + BillingItem trailing slot - SettingsItem trailing slot + SettingsItem trailing slot - TeamItem trailing slot + TeamItem trailing slot - Invite usersItem trailing slot + Invite usersItem trailing slot - New teamItem trailing slot + New teamItem trailing slot - GitHubItem trailing slot + GitHubItem trailing slot - SupportItem trailing slot + SupportItem trailing slot - Keyboard ShortcutsItem trailing slot + Keyboard ShortcutsItem trailing slot - APIItem trailing slot + APIItem trailing slot - LogoutItem trailing slot + LogoutItem trailing slot @@ -437,48 +437,48 @@ exports[`DropdownMenu > renders with items correctly 1`] = ` - My account + My account - Profile + Profile - Billing⌃B + Billing⌃B - Settings? + Settings? - Team + Team - Invite users + Invite users - New team⌃N + New team⌃N - GitHub + GitHub - Support + Support - Keyboard Shortcuts + Keyboard Shortcuts - API + API - Logout⇧⌃Q + Logout⇧⌃Q @@ -497,48 +497,48 @@ exports[`DropdownMenu > renders with ui correctly 1`] = ` - My account + My account - Profile + Profile - Billing⌃B + Billing⌃B - Settings? + Settings? - Team + Team - Invite users + Invite users - New team⌃N + New team⌃N - GitHub + GitHub - Support + Support - Keyboard Shortcuts + Keyboard Shortcuts - API + API - Logout⇧⌃Q + Logout⇧⌃Q