@@ -117,13 +117,12 @@ import {
117117 getCurrentInstance ,
118118 watch ,
119119 h ,
120- resolveComponent ,
121120} from ' vue' ;
122121import useI18n from ' @/use/useI18n' ;
123122import { focusFirstFocusableNode , handleMouseUpByBlurring } from ' @/utilities/focus' ;
124123import { classNames } from ' @/utilities/css' ;
125124import { useHasSlot } from ' @/use/useHasSlot' ;
126- import { Popover , ActionList , Modal , ModalSection } from ' @/components' ;
125+ import { Popover , ActionList , Modal , ModalSection , InlineStack , UnstyledButton , UnstyledLink , Icon , Text , Badge } from ' @/components' ;
127126import styles from ' @polaris/components/Tabs/Tabs.module.css' ;
128127import InfoIcon from ' @icons/InfoIcon.svg' ;
129128import DuplicateIcon from ' @icons/DuplicateIcon.svg' ;
@@ -302,8 +301,8 @@ const handleKeyDown = (event: KeyboardEvent) => {
302301const activator = () => {
303302 return h (
304303 urlIfNotDisabledOrSelected .value
305- ? resolveComponent ( ' UnstyledLink' )
306- : resolveComponent ( ' UnstyledButton' ) ,
304+ ? UnstyledLink
305+ : UnstyledButton ,
307306 {
308307 id: props .id ,
309308 className: tabClassName .value ,
@@ -321,16 +320,16 @@ const activator = () => {
321320 },
322321 () => [
323322 h (
324- resolveComponent ( ' InlineStack' ) ,
323+ InlineStack ,
325324 {
326- gap: 200 ,
325+ gap: ' 200' ,
327326 align: ' center' ,
328327 blockAlign: ' center' ,
329328 wrap: false ,
330329 },
331330 () => [
332331 h (
333- resolveComponent ( ' Text' ) ,
332+ Text ,
334333 {
335334 as: ' span' ,
336335 variant: ' bodySm' ,
@@ -341,7 +340,7 @@ const activator = () => {
341340 },
342341 ),
343342 props .badge ? h (
344- resolveComponent ( ' Badge' ) ,
343+ Badge ,
345344 { tone: props .selected ? undefined : ' new' },
346345 { default : () => props .badge },
347346 ) : null ,
@@ -350,7 +349,7 @@ const activator = () => {
350349 props .selected && props .actions ?.length ? h (
351350 ' div' ,
352351 { class: classNames (styles .IconWrap ) },
353- h (resolveComponent ( ' Icon' ) , { source: ChevronDownIcon }),
352+ h (Icon , { source: ChevronDownIcon }),
354353 ) : null ,
355354 ],
356355 );
0 commit comments