{"version":3,"file":"constants.mjs","sources":["../../../../../../packages/components/tab/src/constants.ts"],"sourcesContent":["import type { TabProps, TabPaneProps } from '@sgui-plus/components/tab'\r\nimport type {\r\n  ComponentInternalInstance,\r\n  ComputedRef,\r\n  Ref,\r\n  InjectionKey,\r\n  UnwrapRef,\r\n  ShallowReactive,\r\n} from 'vue'\r\n\r\nexport type TabPaneContext = UnwrapRef<{\r\n  uid: number\r\n  instance: ShallowReactive<ComponentInternalInstance>\r\n  props: TabPaneProps\r\n  paneName: ComputedRef<string | undefined>\r\n  active: ComputedRef<boolean>\r\n  index: Ref<string | undefined>\r\n  isClosable: ComputedRef<boolean>\r\n}>\r\n\r\nexport interface TabRootContext {\r\n  props: TabProps\r\n  currentName: Ref<string | number>\r\n  updatePaneState: (pane: TabPaneContext) => void\r\n}\r\n\r\nexport const TabRootContextKey: InjectionKey<TabRootContext> = Symbol('TabRootContextKey')\r\n"],"names":[],"mappings":"AAAY,MAAC,iBAAiB,GAAG,MAAM,CAAC,mBAAmB;;;;"}