{"version":3,"sources":["../src/components/TabList/useTabList.ts"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { useTabListBase_unstable } from '@fluentui/react-tabs';\n\nimport type { TabListProps, TabListState } from './TabList.types';\n\n/**\n * Returns the state for a TabList component, given its props and ref.\n * The returned state can be modified with hooks before being passed to `renderTabList`.\n */\nexport const useTabList = (props: TabListProps, ref: React.Ref<HTMLElement>): TabListState => {\n  const state: TabListState = useTabListBase_unstable(props, ref);\n\n  // eslint-disable-next-line react-hooks/immutability\n  state.root.focusgroup = state.vertical ? 'tablist block wrap no-memory' : 'tablist inline wrap no-memory';\n  // eslint-disable-next-line react-hooks/immutability\n  state.root['data-orientation'] = state.vertical ? 'vertical' : 'horizontal';\n\n  return state;\n};\n"],"names":["useTabList","props","ref","state","useTabListBase_unstable","root","focusgroup","vertical"],"mappings":"AAAA;;;;;+BAWaA;;;eAAAA;;;2BAR2B;AAQjC,MAAMA,aAAa,CAACC,OAAqBC;IAC9C,MAAMC,QAAsBC,IAAAA,kCAAuB,EAACH,OAAOC;IAE3D,oDAAoD;IACpDC,MAAME,IAAI,CAACC,UAAU,GAAGH,MAAMI,QAAQ,GAAG,iCAAiC;IAC1E,oDAAoD;IACpDJ,MAAME,IAAI,CAAC,mBAAmB,GAAGF,MAAMI,QAAQ,GAAG,aAAa;IAE/D,OAAOJ;AACT"}