diff --git a/packages/@core/base/icons/src/index.ts b/packages/@core/base/icons/src/index.ts index 1e0fe56446f..85a47d27a2f 100644 --- a/packages/@core/base/icons/src/index.ts +++ b/packages/@core/base/icons/src/index.ts @@ -4,4 +4,9 @@ export * from './create-icon'; export * from './lucide'; export type { IconifyIcon as IconifyIconStructure } from '@iconify/vue'; -export { addCollection, addIcon, Icon as IconifyIcon } from '@iconify/vue'; +export { + addCollection, + addIcon, + Icon as IconifyIcon, + listIcons, +} from '@iconify/vue'; diff --git a/packages/@core/base/icons/src/lucide.ts b/packages/@core/base/icons/src/lucide.ts index 592bd73c647..152dc5cd205 100644 --- a/packages/@core/base/icons/src/lucide.ts +++ b/packages/@core/base/icons/src/lucide.ts @@ -27,6 +27,7 @@ export { FoldHorizontal, Fullscreen, Github, + Grip, Info, InspectionPanel, Languages, @@ -40,6 +41,7 @@ export { Minimize, Minimize2, MoonStar, + Package2, Palette, PanelLeft, PanelRight, diff --git a/packages/@core/ui-kit/shadcn-ui/src/components/button/icon-button.vue b/packages/@core/ui-kit/shadcn-ui/src/components/button/icon-button.vue index 7c123a91dbd..ac626c1b4fa 100644 --- a/packages/@core/ui-kit/shadcn-ui/src/components/button/icon-button.vue +++ b/packages/@core/ui-kit/shadcn-ui/src/components/button/icon-button.vue @@ -14,6 +14,7 @@ interface Props extends VbenButtonProps { disabled?: boolean; onClick?: () => void; tooltip?: string; + tooltipDelayDuration?: number; tooltipSide?: 'bottom' | 'left' | 'right' | 'top'; variant?: ButtonVariants; } @@ -21,6 +22,7 @@ interface Props extends VbenButtonProps { const props = withDefaults(defineProps(), { disabled: false, onClick: () => {}, + tooltipDelayDuration: 200, tooltipSide: 'bottom', variant: 'icon', }); @@ -42,7 +44,11 @@ const showTooltip = computed(() => !!slots.tooltip || !!props.tooltip); - +