@fluentui/react-tabs 1.0.0-beta.99 → 9.0.0-beta.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (224) hide show
  1. package/CHANGELOG.json +259 -1810
  2. package/CHANGELOG.md +74 -733
  3. package/README.md +0 -17
  4. package/Spec.md +433 -0
  5. package/dist/index.d.ts +243 -0
  6. package/lib/Tab.d.ts +1 -0
  7. package/lib/Tab.js +2 -0
  8. package/lib/Tab.js.map +1 -0
  9. package/lib/TabList.d.ts +1 -0
  10. package/lib/TabList.js +2 -0
  11. package/lib/TabList.js.map +1 -0
  12. package/lib/components/Tab/Tab.d.ts +6 -0
  13. package/lib/components/Tab/Tab.js +15 -0
  14. package/lib/components/Tab/Tab.js.map +1 -0
  15. package/lib/components/Tab/Tab.types.d.ts +61 -0
  16. package/lib/components/Tab/Tab.types.js +2 -0
  17. package/lib/components/Tab/Tab.types.js.map +1 -0
  18. package/lib/components/Tab/index.d.ts +6 -0
  19. package/lib/components/Tab/index.js +7 -0
  20. package/lib/components/Tab/index.js.map +1 -0
  21. package/lib/components/Tab/renderTab.d.ts +5 -0
  22. package/lib/components/Tab/renderTab.js +17 -0
  23. package/lib/components/Tab/renderTab.js.map +1 -0
  24. package/lib/components/Tab/useTab.d.ts +12 -0
  25. package/lib/components/Tab/useTab.js +81 -0
  26. package/lib/components/Tab/useTab.js.map +1 -0
  27. package/lib/components/Tab/useTabAnimatedIndicator.d.ts +5 -0
  28. package/lib/components/Tab/useTabAnimatedIndicator.js +134 -0
  29. package/lib/components/Tab/useTabAnimatedIndicator.js.map +1 -0
  30. package/lib/components/Tab/useTabStyles.d.ts +8 -0
  31. package/lib/components/Tab/useTabStyles.js +403 -0
  32. package/lib/components/Tab/useTabStyles.js.map +1 -0
  33. package/lib/components/TabList/TabList.d.ts +6 -0
  34. package/lib/components/TabList/TabList.js +17 -0
  35. package/lib/components/TabList/TabList.js.map +1 -0
  36. package/lib/components/TabList/TabList.types.d.ts +104 -0
  37. package/lib/components/TabList/TabList.types.js +2 -0
  38. package/lib/components/TabList/TabList.types.js.map +1 -0
  39. package/lib/components/TabList/TabListContext.d.ts +3 -0
  40. package/lib/components/TabList/TabListContext.js +23 -0
  41. package/lib/components/TabList/TabListContext.js.map +1 -0
  42. package/lib/components/TabList/index.d.ts +5 -0
  43. package/lib/components/TabList/index.js +6 -0
  44. package/lib/components/TabList/index.js.map +1 -0
  45. package/lib/components/TabList/renderTabList.d.ts +5 -0
  46. package/lib/components/TabList/renderTabList.js +18 -0
  47. package/lib/components/TabList/renderTabList.js.map +1 -0
  48. package/lib/components/TabList/useTabList.d.ts +12 -0
  49. package/lib/components/TabList/useTabList.js +81 -0
  50. package/lib/components/TabList/useTabList.js.map +1 -0
  51. package/lib/components/TabList/useTabListContextValues.d.ts +2 -0
  52. package/lib/components/TabList/useTabListContextValues.js +28 -0
  53. package/lib/components/TabList/useTabListContextValues.js.map +1 -0
  54. package/lib/components/TabList/useTabListStyles.d.ts +8 -0
  55. package/lib/components/TabList/useTabListStyles.js +45 -0
  56. package/lib/components/TabList/useTabListStyles.js.map +1 -0
  57. package/lib/index.d.ts +4 -1
  58. package/lib/index.js +2 -1
  59. package/lib/index.js.map +1 -1
  60. package/lib/tsdoc-metadata.json +1 -1
  61. package/lib-commonjs/Tab.d.ts +1 -0
  62. package/lib-commonjs/Tab.js +10 -0
  63. package/lib-commonjs/Tab.js.map +1 -0
  64. package/lib-commonjs/TabList.d.ts +1 -0
  65. package/lib-commonjs/TabList.js +10 -0
  66. package/lib-commonjs/TabList.js.map +1 -0
  67. package/lib-commonjs/components/Tab/Tab.d.ts +6 -0
  68. package/lib-commonjs/components/Tab/Tab.js +26 -0
  69. package/lib-commonjs/components/Tab/Tab.js.map +1 -0
  70. package/lib-commonjs/components/Tab/Tab.types.d.ts +61 -0
  71. package/lib-commonjs/components/Tab/Tab.types.js +6 -0
  72. package/lib-commonjs/components/Tab/Tab.types.js.map +1 -0
  73. package/lib-commonjs/components/Tab/index.d.ts +6 -0
  74. package/lib-commonjs/components/Tab/index.js +20 -0
  75. package/lib-commonjs/components/Tab/index.js.map +1 -0
  76. package/lib-commonjs/components/Tab/renderTab.d.ts +5 -0
  77. package/lib-commonjs/components/Tab/renderTab.js +28 -0
  78. package/lib-commonjs/components/Tab/renderTab.js.map +1 -0
  79. package/lib-commonjs/components/Tab/useTab.d.ts +12 -0
  80. package/lib-commonjs/components/Tab/useTab.js +94 -0
  81. package/lib-commonjs/components/Tab/useTab.js.map +1 -0
  82. package/lib-commonjs/components/Tab/useTabAnimatedIndicator.d.ts +5 -0
  83. package/lib-commonjs/components/Tab/useTabAnimatedIndicator.js +148 -0
  84. package/lib-commonjs/components/Tab/useTabAnimatedIndicator.js.map +1 -0
  85. package/lib-commonjs/components/Tab/useTabStyles.d.ts +8 -0
  86. package/lib-commonjs/components/Tab/useTabStyles.js +416 -0
  87. package/lib-commonjs/components/Tab/useTabStyles.js.map +1 -0
  88. package/lib-commonjs/components/TabList/TabList.d.ts +6 -0
  89. package/lib-commonjs/components/TabList/TabList.js +29 -0
  90. package/lib-commonjs/components/TabList/TabList.js.map +1 -0
  91. package/lib-commonjs/components/TabList/TabList.types.d.ts +104 -0
  92. package/lib-commonjs/components/TabList/TabList.types.js +6 -0
  93. package/lib-commonjs/components/TabList/TabList.types.js.map +1 -0
  94. package/lib-commonjs/components/TabList/TabListContext.d.ts +3 -0
  95. package/lib-commonjs/components/TabList/TabListContext.js +31 -0
  96. package/lib-commonjs/components/TabList/TabListContext.js.map +1 -0
  97. package/lib-commonjs/components/TabList/index.d.ts +5 -0
  98. package/lib-commonjs/components/TabList/index.js +18 -0
  99. package/lib-commonjs/components/TabList/index.js.map +1 -0
  100. package/lib-commonjs/components/TabList/renderTabList.d.ts +5 -0
  101. package/lib-commonjs/components/TabList/renderTabList.js +30 -0
  102. package/lib-commonjs/components/TabList/renderTabList.js.map +1 -0
  103. package/lib-commonjs/components/TabList/useTabList.d.ts +12 -0
  104. package/lib-commonjs/components/TabList/useTabList.js +93 -0
  105. package/lib-commonjs/components/TabList/useTabList.js.map +1 -0
  106. package/lib-commonjs/components/TabList/useTabListContextValues.d.ts +2 -0
  107. package/lib-commonjs/components/TabList/useTabListContextValues.js +37 -0
  108. package/lib-commonjs/components/TabList/useTabListContextValues.js.map +1 -0
  109. package/lib-commonjs/components/TabList/useTabListStyles.d.ts +8 -0
  110. package/lib-commonjs/components/TabList/useTabListStyles.js +55 -0
  111. package/lib-commonjs/components/TabList/useTabListStyles.js.map +1 -0
  112. package/lib-commonjs/index.d.ts +4 -1
  113. package/lib-commonjs/index.js +83 -3
  114. package/lib-commonjs/index.js.map +1 -1
  115. package/package.json +25 -21
  116. package/config/api-extractor.json +0 -3
  117. package/config/tests.js +0 -14
  118. package/dist/react-tabs.d.ts +0 -197
  119. package/etc/react-tabs.api.md +0 -104
  120. package/just.config.ts +0 -3
  121. package/lib/Tabs.d.ts +0 -1
  122. package/lib/Tabs.js +0 -2
  123. package/lib/Tabs.js.map +0 -1
  124. package/lib/common/isConformant.d.ts +0 -4
  125. package/lib/common/isConformant.js +0 -9
  126. package/lib/common/isConformant.js.map +0 -1
  127. package/lib/components/Tabs/TabItem.d.ts +0 -6
  128. package/lib/components/Tabs/TabItem.js +0 -18
  129. package/lib/components/Tabs/TabItem.js.map +0 -1
  130. package/lib/components/Tabs/TabItem.types.d.ts +0 -61
  131. package/lib/components/Tabs/TabItem.types.js +0 -2
  132. package/lib/components/Tabs/TabItem.types.js.map +0 -1
  133. package/lib/components/Tabs/Tabs.base.d.ts +0 -3
  134. package/lib/components/Tabs/Tabs.base.js +0 -179
  135. package/lib/components/Tabs/Tabs.base.js.map +0 -1
  136. package/lib/components/Tabs/Tabs.d.ts +0 -8
  137. package/lib/components/Tabs/Tabs.js +0 -12
  138. package/lib/components/Tabs/Tabs.js.map +0 -1
  139. package/lib/components/Tabs/Tabs.styles.d.ts +0 -2
  140. package/lib/components/Tabs/Tabs.styles.js +0 -264
  141. package/lib/components/Tabs/Tabs.styles.js.map +0 -1
  142. package/lib/components/Tabs/Tabs.types.d.ts +0 -113
  143. package/lib/components/Tabs/Tabs.types.js +0 -2
  144. package/lib/components/Tabs/Tabs.types.js.map +0 -1
  145. package/lib/components/Tabs/index.d.ts +0 -5
  146. package/lib/components/Tabs/index.js +0 -6
  147. package/lib/components/Tabs/index.js.map +0 -1
  148. package/lib/utilities/observeResize.d.ts +0 -21
  149. package/lib/utilities/observeResize.js +0 -46
  150. package/lib/utilities/observeResize.js.map +0 -1
  151. package/lib/utilities/useOverflow.d.ts +0 -45
  152. package/lib/utilities/useOverflow.js +0 -126
  153. package/lib/utilities/useOverflow.js.map +0 -1
  154. package/lib-amd/Tabs.d.ts +0 -1
  155. package/lib-amd/Tabs.js +0 -6
  156. package/lib-amd/Tabs.js.map +0 -1
  157. package/lib-amd/common/isConformant.d.ts +0 -4
  158. package/lib-amd/common/isConformant.js +0 -14
  159. package/lib-amd/common/isConformant.js.map +0 -1
  160. package/lib-amd/components/Tabs/TabItem.d.ts +0 -6
  161. package/lib-amd/components/Tabs/TabItem.js +0 -20
  162. package/lib-amd/components/Tabs/TabItem.js.map +0 -1
  163. package/lib-amd/components/Tabs/TabItem.types.d.ts +0 -61
  164. package/lib-amd/components/Tabs/TabItem.types.js +0 -5
  165. package/lib-amd/components/Tabs/TabItem.types.js.map +0 -1
  166. package/lib-amd/components/Tabs/Tabs.base.d.ts +0 -3
  167. package/lib-amd/components/Tabs/Tabs.base.js +0 -176
  168. package/lib-amd/components/Tabs/Tabs.base.js.map +0 -1
  169. package/lib-amd/components/Tabs/Tabs.d.ts +0 -8
  170. package/lib-amd/components/Tabs/Tabs.js +0 -14
  171. package/lib-amd/components/Tabs/Tabs.js.map +0 -1
  172. package/lib-amd/components/Tabs/Tabs.styles.d.ts +0 -2
  173. package/lib-amd/components/Tabs/Tabs.styles.js +0 -267
  174. package/lib-amd/components/Tabs/Tabs.styles.js.map +0 -1
  175. package/lib-amd/components/Tabs/Tabs.types.d.ts +0 -113
  176. package/lib-amd/components/Tabs/Tabs.types.js +0 -5
  177. package/lib-amd/components/Tabs/Tabs.types.js.map +0 -1
  178. package/lib-amd/components/Tabs/index.d.ts +0 -5
  179. package/lib-amd/components/Tabs/index.js +0 -11
  180. package/lib-amd/components/Tabs/index.js.map +0 -1
  181. package/lib-amd/index.d.ts +0 -1
  182. package/lib-amd/index.js +0 -6
  183. package/lib-amd/index.js.map +0 -1
  184. package/lib-amd/utilities/observeResize.d.ts +0 -21
  185. package/lib-amd/utilities/observeResize.js +0 -51
  186. package/lib-amd/utilities/observeResize.js.map +0 -1
  187. package/lib-amd/utilities/useOverflow.d.ts +0 -45
  188. package/lib-amd/utilities/useOverflow.js +0 -128
  189. package/lib-amd/utilities/useOverflow.js.map +0 -1
  190. package/lib-commonjs/Tabs.d.ts +0 -1
  191. package/lib-commonjs/Tabs.js +0 -5
  192. package/lib-commonjs/Tabs.js.map +0 -1
  193. package/lib-commonjs/common/isConformant.d.ts +0 -4
  194. package/lib-commonjs/common/isConformant.js +0 -13
  195. package/lib-commonjs/common/isConformant.js.map +0 -1
  196. package/lib-commonjs/components/Tabs/TabItem.d.ts +0 -6
  197. package/lib-commonjs/components/Tabs/TabItem.js +0 -21
  198. package/lib-commonjs/components/Tabs/TabItem.js.map +0 -1
  199. package/lib-commonjs/components/Tabs/TabItem.types.d.ts +0 -61
  200. package/lib-commonjs/components/Tabs/TabItem.types.js +0 -3
  201. package/lib-commonjs/components/Tabs/TabItem.types.js.map +0 -1
  202. package/lib-commonjs/components/Tabs/Tabs.base.d.ts +0 -3
  203. package/lib-commonjs/components/Tabs/Tabs.base.js +0 -182
  204. package/lib-commonjs/components/Tabs/Tabs.base.js.map +0 -1
  205. package/lib-commonjs/components/Tabs/Tabs.d.ts +0 -8
  206. package/lib-commonjs/components/Tabs/Tabs.js +0 -15
  207. package/lib-commonjs/components/Tabs/Tabs.js.map +0 -1
  208. package/lib-commonjs/components/Tabs/Tabs.styles.d.ts +0 -2
  209. package/lib-commonjs/components/Tabs/Tabs.styles.js +0 -268
  210. package/lib-commonjs/components/Tabs/Tabs.styles.js.map +0 -1
  211. package/lib-commonjs/components/Tabs/Tabs.types.d.ts +0 -113
  212. package/lib-commonjs/components/Tabs/Tabs.types.js +0 -3
  213. package/lib-commonjs/components/Tabs/Tabs.types.js.map +0 -1
  214. package/lib-commonjs/components/Tabs/index.d.ts +0 -5
  215. package/lib-commonjs/components/Tabs/index.js +0 -11
  216. package/lib-commonjs/components/Tabs/index.js.map +0 -1
  217. package/lib-commonjs/utilities/observeResize.d.ts +0 -21
  218. package/lib-commonjs/utilities/observeResize.js +0 -50
  219. package/lib-commonjs/utilities/observeResize.js.map +0 -1
  220. package/lib-commonjs/utilities/useOverflow.d.ts +0 -45
  221. package/lib-commonjs/utilities/useOverflow.js +0 -130
  222. package/lib-commonjs/utilities/useOverflow.js.map +0 -1
  223. package/src/components/Tabs/TabItem.types.ts +0 -69
  224. package/src/components/Tabs/Tabs.types.ts +0 -131
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/Tab/useTabStyles.ts"],"names":[],"mappings":";;;;;;;AAEA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,aAAA,gBAAA,OAAA,CAAA,uBAAA,CAAA;;AAEA,MAAA,yBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEa,OAAA,CAAA,aAAA,GAA0C;AACrD,EAAA,IAAI,EAAE,SAD+C;AAErD,EAAA,IAAI,EAAE,eAF+C;AAGrD,EAAA,OAAO,EAAE;AAH4C,CAA1C,C,CAMb;;AACa,OAAA,CAAA,YAAA,GAAe,OAAA,CAAA,aAAA,CAAc,IAA7B;AAEb;;AAEG;;AACH;;AACA,MAAM,aAAa,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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gBAF3E,CApBqB,EAuBrB,QAAQ,IACN,IAAI,KAAK,OADX,KAEG,QAAQ,GAAG,qBAAqB,CAAC,aAAzB,GAAyC,qBAAqB,CAAC,eAF1E,CAvBqB,EA0BrB,QAAQ,IAAI,QAAZ,IAAwB,qBAAqB,CAAC,QA1BzB,EA2BrB,KAAK,CAAC,IAAN,CAAW,SA3BU,CAAvB;;AA8BA,MAAI,KAAK,CAAC,IAAV,EAAgB;AACd,IAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CAAa,OAAA,CAAA,aAAA,CAAc,IAA3B,EAAiC,UAAU,CAAC,IAA5C,EAAkD,UAAU,CAAC,IAAD,CAA5D,EAAoE,KAAK,CAAC,IAAN,CAAW,SAA/E,CAAvB;AACD;;AAED,EAAA,KAAK,CAAC,OAAN,CAAc,SAAd,GAA0B,OAAA,CAAA,YAAA,CACxB,OAAA,CAAA,aAAA,CAAc,OADU,EAExB,aAAa,CAAC,IAFU,EAGxB,QAAQ,IAAI,aAAa,CAAC,QAHF,EAIxB,KAAK,CAAC,OAAN,CAAc,SAJU,CAA1B;AAOA,EAAA,yBAAA,CAAA,sCAAA,CAAuC,KAAvC;AAEA,SAAO,KAAP;AACD,CAtDM;;AAAM,OAAA,CAAA,qBAAA,GAAqB,qBAArB","sourcesContent":["import type { TabSlots, TabState } from './Tab.types';\n\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport { createCustomFocusIndicatorStyle } from '@fluentui/react-tabster';\nimport { tokens, typographyStyles } from '@fluentui/react-theme';\nimport { SlotClassNames } from '@fluentui/react-utilities';\nimport { useTabAnimatedIndicatorStyles_unstable } from './useTabAnimatedIndicator';\n\nexport const tabClassNames: SlotClassNames<TabSlots> = {\n root: 'fui-Tab',\n icon: 'fui-Tab__icon',\n content: 'fui-Tab__content',\n};\n\n// TODO temporary export to pass conformance test.\nexport const tabClassName = tabClassNames.root;\n\n/**\n * Styles for the root slot\n */\n/* eslint-disable @typescript-eslint/naming-convention */\nconst useRootStyles = makeStyles({\n base: {\n alignItems: 'center',\n ...shorthands.borderColor('none'),\n ...shorthands.borderRadius(tokens.borderRadiusMedium),\n ...shorthands.borderWidth(0),\n cursor: 'pointer',\n display: 'flex',\n flexDirection: 'row',\n flexShrink: 0,\n fontFamily: tokens.fontFamilyBase,\n lineHeight: tokens.lineHeightBase300,\n outlineStyle: 'none',\n position: 'relative',\n ...shorthands.overflow('hidden'),\n textTransform: 'none',\n },\n mediumHorizontal: {\n columnGap: tokens.spacingHorizontalSNudge,\n justifyContent: 'center',\n ...shorthands.padding(tokens.spacingVerticalM, tokens.spacingHorizontalMNudge),\n },\n mediumVertical: {\n // horizontal spacing is deliberate. This is the gap between icon and content.\n columnGap: tokens.spacingHorizontalSNudge,\n justifyContent: 'flex-start',\n minWidth: '120px',\n ...shorthands.padding(tokens.spacingVerticalSNudge, tokens.spacingHorizontalMNudge),\n },\n smallHorizontal: {\n columnGap: tokens.spacingHorizontalXXS,\n ...shorthands.padding(tokens.spacingVerticalSNudge, tokens.spacingHorizontalSNudge),\n },\n smallVertical: {\n // horizontal spacing is deliberate. This is the gap between icon and content.\n columnGap: tokens.spacingHorizontalXXS,\n ...shorthands.padding(tokens.spacingVerticalXXS, tokens.spacingHorizontalSNudge),\n },\n transparent: {\n backgroundColor: tokens.colorTransparentBackground,\n ':hover': {\n backgroundColor: tokens.colorTransparentBackgroundHover,\n },\n ':active': {\n backgroundColor: tokens.colorTransparentBackgroundPressed,\n },\n '& .fui-Tab__icon': {\n color: tokens.colorNeutralForeground2,\n },\n ':hover .fui-Tab__icon': {\n color: tokens.colorNeutralForeground2Hover,\n },\n ':active .fui-Tab__icon': {\n color: tokens.colorNeutralForeground2Pressed,\n },\n '& .fui-Tab__content': {\n color: tokens.colorNeutralForeground2,\n },\n ':hover .fui-Tab__content': {\n color: tokens.colorNeutralForeground2Hover,\n },\n ':active .fui-Tab__content': {\n color: tokens.colorNeutralForeground2Pressed,\n },\n },\n subtle: {\n backgroundColor: tokens.colorSubtleBackground,\n ':hover': {\n backgroundColor: tokens.colorSubtleBackgroundHover,\n },\n ':active': {\n backgroundColor: tokens.colorSubtleBackgroundPressed,\n },\n '& .fui-Tab__icon': {\n color: tokens.colorNeutralForeground2,\n },\n ':hover .fui-Tab__icon': {\n color: tokens.colorNeutralForeground2Hover,\n },\n ':active .fui-Tab__icon': {\n color: tokens.colorNeutralForeground2Pressed,\n },\n '& .fui-Tab__content': {\n color: tokens.colorNeutralForeground2,\n },\n ':hover .fui-Tab__content': {\n color: tokens.colorNeutralForeground2Hover,\n },\n ':active .fui-Tab__content': {\n color: tokens.colorNeutralForeground2Pressed,\n },\n },\n disabled: {\n backgroundColor: tokens.colorTransparentBackground,\n\n '& .fui-Tab__icon': {\n color: tokens.colorNeutralForegroundDisabled,\n },\n '& .fui-Tab__content': {\n color: tokens.colorNeutralForegroundDisabled,\n },\n cursor: 'not-allowed',\n },\n selected: {\n '& .fui-Tab__icon': {\n color: tokens.colorCompoundBrandForeground1,\n },\n ':hover .fui-Tab__icon': {\n color: tokens.colorCompoundBrandForeground1Hover,\n },\n ':active .fui-Tab__icon': {\n color: tokens.colorCompoundBrandForeground1Pressed,\n },\n '& .fui-Tab__content': {\n color: tokens.colorNeutralForeground1,\n },\n ':hover .fui-Tab__content': {\n color: tokens.colorNeutralForeground1Hover,\n },\n ':active .fui-Tab__content': {\n color: tokens.colorNeutralForeground1Pressed,\n },\n },\n});\n/* eslint-enable @typescript-eslint/naming-convention */\n\n/**\n * Focus styles for the root slot\n */\nconst useFocusStyles = makeStyles({\n // Tab creates a custom focus indicator because the default focus indicator\n // is applied using an ::after pseudo-element on the root. Since the selection\n // indicator uses an ::after pseudo-element on the root, there is a conflict.\n base: createCustomFocusIndicatorStyle({\n ...shorthands.borderColor('transparent'),\n outlineWidth: tokens.strokeWidthThick,\n outlineColor: 'transparent',\n outlineStyle: 'solid',\n boxShadow: `\n ${tokens.shadow4},\n 0 0 0 ${tokens.strokeWidthThick} ${tokens.colorStrokeFocus2}\n `,\n zIndex: 1,\n }),\n});\n\n/** Indicator styles for when pending selection */\nconst usePendingIndicatorStyles = makeStyles({\n base: {\n ':hover::before': {\n backgroundColor: 'none',\n ...shorthands.borderStyle('solid'),\n ...shorthands.borderColor(tokens.colorNeutralStroke1Hover),\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n },\n ':active::before': {\n backgroundColor: 'none',\n ...shorthands.borderStyle('solid'),\n ...shorthands.borderColor(tokens.colorNeutralStroke1Pressed),\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n },\n },\n disabled: {\n ':hover::before': {\n ...shorthands.borderColor(tokens.colorTransparentStroke),\n },\n ':active::before': {\n ...shorthands.borderColor(tokens.colorTransparentStroke),\n },\n },\n mediumHorizontal: {\n '::before': {\n bottom: 0,\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThicker} / 2.0)`),\n height: 0,\n left: tokens.spacingHorizontalM,\n right: tokens.spacingHorizontalM,\n },\n },\n mediumVertical: {\n '::before': {\n bottom: tokens.spacingVerticalS,\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThicker} / 2.0)`),\n left: 0,\n top: tokens.spacingVerticalS,\n width: 0,\n },\n },\n smallHorizontal: {\n '::before': {\n bottom: 0,\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThick} / 2.0)`),\n height: 0,\n left: tokens.spacingHorizontalSNudge,\n right: tokens.spacingHorizontalSNudge,\n },\n },\n smallVertical: {\n '::before': {\n bottom: tokens.spacingVerticalXS,\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThicker} / 2.0)`),\n left: 0,\n top: tokens.spacingVerticalXS,\n width: 0,\n },\n },\n});\n\nconst useActiveIndicatorStyles = makeStyles({\n base: {\n '::after': {\n ...shorthands.borderColor(tokens.colorTransparentStroke),\n ...shorthands.borderStyle('solid'),\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n boxSizing: 'border-box',\n content: '\"\"',\n position: 'absolute',\n zIndex: 1,\n },\n },\n selected: {\n '::after': {\n ...shorthands.borderColor(tokens.colorCompoundBrandStroke),\n },\n ':hover::after': {\n ...shorthands.borderColor(tokens.colorCompoundBrandStrokeHover),\n },\n ':active::after': {\n ...shorthands.borderColor(tokens.colorCompoundBrandStrokePressed),\n },\n },\n disabled: {\n '::after': {\n ...shorthands.borderColor(tokens.colorNeutralForegroundDisabled),\n },\n },\n mediumHorizontal: {\n '::after': {\n bottom: '0',\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThicker} / 2.0)`),\n height: 0,\n left: tokens.spacingHorizontalM,\n right: tokens.spacingHorizontalM,\n },\n },\n mediumVertical: {\n '::after': {\n bottom: tokens.spacingVerticalS,\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThicker} / 2.0)`),\n left: 0,\n top: tokens.spacingVerticalS,\n width: 0,\n },\n },\n smallHorizontal: {\n '::after': {\n bottom: 0,\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThick} / 2.0)`),\n height: 0,\n left: tokens.spacingHorizontalSNudge,\n right: tokens.spacingHorizontalSNudge,\n },\n },\n smallVertical: {\n '::after': {\n bottom: tokens.spacingVerticalXS,\n ...shorthands.borderWidth(`calc(${tokens.strokeWidthThicker} / 2.0)`),\n left: '0',\n top: tokens.spacingVerticalXS,\n width: 0,\n },\n },\n});\n\n/**\n * Styles for the icon slot.\n */\nconst useIconStyles = makeStyles({\n base: {\n alignItems: 'center',\n display: 'inline-flex',\n justifyContent: 'center',\n ...shorthands.overflow('hidden'),\n },\n // per design, the small and medium font sizes are the same.\n // the size prop only affects spacing.\n small: {\n fontSize: '20px',\n height: '20px',\n width: '20px',\n },\n medium: {\n fontSize: '20px',\n height: '20px',\n width: '20px',\n },\n});\n\n/**\n * Styles for the content slot (children)\n */\nconst useContentStyles = makeStyles({\n base: {\n ...typographyStyles.body1,\n ...shorthands.overflow('hidden'),\n // content padding is the same for medium & small, horiztonal & vertical\n ...shorthands.padding(tokens.spacingVerticalNone, tokens.spacingHorizontalXXS),\n },\n selected: {\n ...typographyStyles.body1Strong,\n },\n});\n\n/**\n * Apply styling to the Tab slots based on the state\n */\nexport const useTabStyles_unstable = (state: TabState): TabState => {\n const rootStyles = useRootStyles();\n const focusStyles = useFocusStyles();\n const pendingIndicatorStyles = usePendingIndicatorStyles();\n const activeIndicatorStyles = useActiveIndicatorStyles();\n const iconStyles = useIconStyles();\n const contentStyles = useContentStyles();\n\n const { appearance, disabled, selected, size, vertical } = state;\n\n state.root.className = mergeClasses(\n tabClassNames.root,\n rootStyles.base,\n size !== 'small' && (vertical ? rootStyles.mediumVertical : rootStyles.mediumHorizontal),\n size === 'small' && (vertical ? rootStyles.smallVertical : rootStyles.smallHorizontal),\n focusStyles.base,\n !disabled && appearance === 'subtle' && rootStyles.subtle,\n !disabled && appearance === 'transparent' && rootStyles.transparent,\n !disabled && selected && rootStyles.selected,\n disabled && rootStyles.disabled,\n\n // pending indicator (before pseudo element)\n pendingIndicatorStyles.base,\n size !== 'small' && (vertical ? pendingIndicatorStyles.mediumVertical : pendingIndicatorStyles.mediumHorizontal),\n size === 'small' && (vertical ? pendingIndicatorStyles.smallVertical : pendingIndicatorStyles.smallHorizontal),\n disabled && pendingIndicatorStyles.disabled,\n\n // active indicator (after pseudo element)\n selected && activeIndicatorStyles.base,\n selected && !disabled && activeIndicatorStyles.selected,\n selected &&\n size !== 'small' &&\n (vertical ? activeIndicatorStyles.mediumVertical : activeIndicatorStyles.mediumHorizontal),\n selected &&\n size === 'small' &&\n (vertical ? activeIndicatorStyles.smallVertical : activeIndicatorStyles.smallHorizontal),\n selected && disabled && activeIndicatorStyles.disabled,\n state.root.className,\n );\n\n if (state.icon) {\n state.icon.className = mergeClasses(tabClassNames.icon, iconStyles.base, iconStyles[size], state.icon.className);\n }\n\n state.content.className = mergeClasses(\n tabClassNames.content,\n contentStyles.base,\n selected && contentStyles.selected,\n state.content.className,\n );\n\n useTabAnimatedIndicatorStyles_unstable(state);\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,6 @@
1
+ import type { TabListProps } from './TabList.types';
2
+ import type { ForwardRefComponent } from '@fluentui/react-utilities';
3
+ /**
4
+ * A tab list provides single selection from a set of tabs.
5
+ */
6
+ export declare const TabList: ForwardRefComponent<TabListProps>;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TabList = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const useTabList_1 = /*#__PURE__*/require("./useTabList");
11
+
12
+ const renderTabList_1 = /*#__PURE__*/require("./renderTabList");
13
+
14
+ const useTabListStyles_1 = /*#__PURE__*/require("./useTabListStyles");
15
+
16
+ const useTabListContextValues_1 = /*#__PURE__*/require("./useTabListContextValues");
17
+ /**
18
+ * A tab list provides single selection from a set of tabs.
19
+ */
20
+
21
+
22
+ exports.TabList = /*#__PURE__*/React.forwardRef((props, ref) => {
23
+ const state = useTabList_1.useTabList_unstable(props, ref);
24
+ const contextValues = useTabListContextValues_1.useTabListContextValues(state);
25
+ useTabListStyles_1.useTabListStyles_unstable(state);
26
+ return renderTabList_1.renderTabList_unstable(state, contextValues);
27
+ });
28
+ exports.TabList.displayName = 'TabList';
29
+ //# sourceMappingURL=TabList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/TabList/TabList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,YAAA,gBAAA,OAAA,CAAA,cAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,iBAAA,CAAA;;AACA,MAAA,kBAAA,gBAAA,OAAA,CAAA,oBAAA,CAAA;;AAGA,MAAA,yBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AAEA;;AAEG;;;AACU,OAAA,CAAA,OAAA,gBAA6C,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACxF,QAAM,KAAK,GAAG,YAAA,CAAA,mBAAA,CAAoB,KAApB,EAA2B,GAA3B,CAAd;AACA,QAAM,aAAa,GAAG,yBAAA,CAAA,uBAAA,CAAwB,KAAxB,CAAtB;AAEA,EAAA,kBAAA,CAAA,yBAAA,CAA0B,KAA1B;AACA,SAAO,eAAA,CAAA,sBAAA,CAAuB,KAAvB,EAA8B,aAA9B,CAAP;AACD,CANyD,CAA7C;AAQb,OAAA,CAAA,OAAA,CAAQ,WAAR,GAAsB,SAAtB","sourcesContent":["import * as React from 'react';\nimport { useTabList_unstable } from './useTabList';\nimport { renderTabList_unstable } from './renderTabList';\nimport { useTabListStyles_unstable } from './useTabListStyles';\nimport type { TabListProps } from './TabList.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useTabListContextValues } from './useTabListContextValues';\n\n/**\n * A tab list provides single selection from a set of tabs.\n */\nexport const TabList: ForwardRefComponent<TabListProps> = React.forwardRef((props, ref) => {\n const state = useTabList_unstable(props, ref);\n const contextValues = useTabListContextValues(state);\n\n useTabListStyles_unstable(state);\n return renderTabList_unstable(state, contextValues);\n});\n\nTabList.displayName = 'TabList';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,104 @@
1
+ import * as React from 'react';
2
+ import type { ComponentProps, ComponentState, Slot } from '@fluentui/react-utilities';
3
+ import { TabValue } from '../Tab/Tab.types';
4
+ export declare type TabRegisterData = {
5
+ /**
6
+ * The value of the tab.
7
+ */
8
+ value: TabValue;
9
+ /**
10
+ * The reference to the tab HTML element.
11
+ */
12
+ ref: React.RefObject<HTMLElement>;
13
+ };
14
+ export declare type RegisterTabEventHandler = (data: TabRegisterData) => void;
15
+ export declare type SelectTabData = {
16
+ /**
17
+ * The value of the selected tab.
18
+ */
19
+ value: TabValue;
20
+ };
21
+ export declare type SelectTabEvent<E = HTMLElement> = React.MouseEvent<E> | React.KeyboardEvent<E>;
22
+ export declare type SelectTabEventHandler = (event: SelectTabEvent, data: SelectTabData) => void;
23
+ export declare type TabListSlots = {
24
+ /**
25
+ * The slot associated with the root element of this tab list.
26
+ */
27
+ root: Slot<'div'>;
28
+ };
29
+ declare type TabListCommons = {
30
+ /**
31
+ * A tab list can supports 'transparent' and 'subtle' appearance.
32
+ *- 'subtle': Minimizes emphasis to blend into the background until hovered or focused.
33
+ *- 'transparent': No background and border styling
34
+ * The appearance affects each of the contained tabs.
35
+ * @default 'transparent'
36
+ */
37
+ appearance?: 'transparent' | 'subtle';
38
+ /**
39
+ * A tab list can be set to disable interaction.
40
+ * @default false
41
+ */
42
+ disabled?: boolean;
43
+ /**
44
+ * Raised when a tab is selected.
45
+ */
46
+ onTabSelect?: SelectTabEventHandler;
47
+ /**
48
+ * The value of the currently selected tab.
49
+ */
50
+ selectedValue?: TabValue;
51
+ /**
52
+ * A tab list can be either 'small' or 'medium' size.
53
+ * The size affects each of the contained tabs.
54
+ * @default 'medium'
55
+ */
56
+ size?: 'small' | 'medium';
57
+ /**
58
+ * A tab list can arrange its tabs vertically.
59
+ * @default false
60
+ */
61
+ vertical?: boolean;
62
+ };
63
+ /**
64
+ * TabList Props
65
+ */
66
+ export declare type TabListProps = ComponentProps<TabListSlots> & TabListCommons & {
67
+ /**
68
+ * The value of the tab to be selected by default.
69
+ * Typically useful when the selectedValue is uncontrolled.
70
+ */
71
+ defaultSelectedValue?: TabValue;
72
+ };
73
+ export declare type TabListContextValue = Pick<TabListCommons, 'onTabSelect' | 'selectedValue'> & Required<Pick<TabListCommons, 'appearance' | 'disabled' | 'size' | 'vertical'>> & {
74
+ /** A callback to allow a tab to register itself with the tab list. */
75
+ onRegister: RegisterTabEventHandler;
76
+ /** A callback to allow a tab to unregister itself with the tab list. */
77
+ onUnregister: RegisterTabEventHandler;
78
+ /**
79
+ * A callback to allow a tab to select itself when pressed.
80
+ */
81
+ onSelect: SelectTabEventHandler;
82
+ /**
83
+ * Gets the registered tab data along with current and previous selected values.
84
+ */
85
+ getRegisteredTabs: () => {
86
+ selectedValue?: TabValue;
87
+ previousSelectedValue?: TabValue;
88
+ registeredTabs: Record<string, TabRegisterData>;
89
+ };
90
+ };
91
+ /**
92
+ * Context values used in rendering TabList.
93
+ */
94
+ export declare type TabListContextValues = {
95
+ /**
96
+ * The context of the tab list available to each tab.
97
+ */
98
+ tabList: TabListContextValue;
99
+ };
100
+ /**
101
+ * State used in rendering TabList.
102
+ */
103
+ export declare type TabListState = ComponentState<Required<TabListSlots>> & TabListContextValue;
104
+ export {};
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ //# sourceMappingURL=TabList.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","sourceRoot":"../src/"}
@@ -0,0 +1,3 @@
1
+ import type { Context } from '@fluentui/react-context-selector';
2
+ import { TabListContextValue } from './TabList.types';
3
+ export declare const TabListContext: Context<TabListContextValue>;
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.TabListContext = void 0;
7
+
8
+ const react_context_selector_1 = /*#__PURE__*/require("@fluentui/react-context-selector");
9
+
10
+ exports.TabListContext = /*#__PURE__*/react_context_selector_1.createContext({
11
+ appearance: 'transparent',
12
+ disabled: false,
13
+ selectedValue: undefined,
14
+ onRegister: () => {
15
+ /* noop */
16
+ },
17
+ onUnregister: () => {
18
+ /* noop */
19
+ },
20
+ onSelect: () => {
21
+ /* noop */
22
+ },
23
+ getRegisteredTabs: () => {
24
+ return {
25
+ registeredTabs: {}
26
+ };
27
+ },
28
+ size: 'medium',
29
+ vertical: false
30
+ });
31
+ //# sourceMappingURL=TabListContext.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/TabList/TabListContext.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,wBAAA,gBAAA,OAAA,CAAA,kCAAA,CAAA;;AAIa,OAAA,CAAA,cAAA,gBAA+C,wBAAA,CAAA,aAAA,CAAmC;AAC7F,EAAA,UAAU,EAAE,aADiF;AAE7F,EAAA,QAAQ,EAAE,KAFmF;AAG7F,EAAA,aAAa,EAAE,SAH8E;AAI7F,EAAA,UAAU,EAAE,MAAK;AACf;AACD,GAN4F;AAO7F,EAAA,YAAY,EAAE,MAAK;AACjB;AACD,GAT4F;AAU7F,EAAA,QAAQ,EAAE,MAAK;AACb;AACD,GAZ4F;AAa7F,EAAA,iBAAiB,EAAE,MAAK;AACtB,WAAO;AACL,MAAA,cAAc,EAAE;AADX,KAAP;AAGD,GAjB4F;AAkB7F,EAAA,IAAI,EAAE,QAlBuF;AAmB7F,EAAA,QAAQ,EAAE;AAnBmF,CAAnC,CAA/C","sourcesContent":["import { createContext } from '@fluentui/react-context-selector';\nimport type { Context } from '@fluentui/react-context-selector';\nimport { TabListContextValue } from './TabList.types';\n\nexport const TabListContext: Context<TabListContextValue> = createContext<TabListContextValue>({\n appearance: 'transparent',\n disabled: false,\n selectedValue: undefined,\n onRegister: () => {\n /* noop */\n },\n onUnregister: () => {\n /* noop */\n },\n onSelect: () => {\n /* noop */\n },\n getRegisteredTabs: () => {\n return {\n registeredTabs: {},\n };\n },\n size: 'medium',\n vertical: false,\n});\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,5 @@
1
+ export * from './TabList';
2
+ export * from './TabList.types';
3
+ export * from './renderTabList';
4
+ export * from './useTabList';
5
+ export * from './useTabListStyles';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+
7
+ const tslib_1 = /*#__PURE__*/require("tslib");
8
+
9
+ tslib_1.__exportStar(require("./TabList"), exports);
10
+
11
+ tslib_1.__exportStar(require("./TabList.types"), exports);
12
+
13
+ tslib_1.__exportStar(require("./renderTabList"), exports);
14
+
15
+ tslib_1.__exportStar(require("./useTabList"), exports);
16
+
17
+ tslib_1.__exportStar(require("./useTabListStyles"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/TabList/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,WAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,iBAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,EAAA,OAAA;;AACA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,oBAAA,CAAA,EAAA,OAAA","sourcesContent":["export * from './TabList';\nexport * from './TabList.types';\nexport * from './renderTabList';\nexport * from './useTabList';\nexport * from './useTabListStyles';\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,5 @@
1
+ import type { TabListState, TabListContextValues } from './TabList.types';
2
+ /**
3
+ * Render the final JSX of TabList
4
+ */
5
+ export declare const renderTabList_unstable: (state: TabListState, contextValues: TabListContextValues) => JSX.Element;
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.renderTabList_unstable = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
11
+
12
+ const TabListContext_1 = /*#__PURE__*/require("./TabListContext");
13
+ /**
14
+ * Render the final JSX of TabList
15
+ */
16
+
17
+
18
+ const renderTabList_unstable = (state, contextValues) => {
19
+ const {
20
+ slots,
21
+ slotProps
22
+ } = react_utilities_1.getSlots(state);
23
+ return React.createElement(slots.root, { ...slotProps.root
24
+ }, React.createElement(TabListContext_1.TabListContext.Provider, {
25
+ value: contextValues.tabList
26
+ }, state.root.children));
27
+ };
28
+
29
+ exports.renderTabList_unstable = renderTabList_unstable;
30
+ //# sourceMappingURL=renderTabList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/TabList/renderTabList.tsx"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;;AAEA,MAAA,gBAAA,gBAAA,OAAA,CAAA,kBAAA,CAAA;AAEA;;AAEG;;;AACI,MAAM,sBAAsB,GAAG,CAAC,KAAD,EAAsB,aAAtB,KAA6D;AACjG,QAAM;AAAE,IAAA,KAAF;AAAS,IAAA;AAAT,MAAuB,iBAAA,CAAA,QAAA,CAAuB,KAAvB,CAA7B;AAEA,SACE,KAAA,CAAA,aAAA,CAAC,KAAK,CAAC,IAAP,EAAW,EAAA,GAAK,SAAS,CAAC;AAAf,GAAX,EACE,KAAA,CAAA,aAAA,CAAC,gBAAA,CAAA,cAAA,CAAe,QAAhB,EAAwB;AAAC,IAAA,KAAK,EAAE,aAAa,CAAC;AAAtB,GAAxB,EAAwD,KAAK,CAAC,IAAN,CAAW,QAAnE,CADF,CADF;AAKD,CARM;;AAAM,OAAA,CAAA,sBAAA,GAAsB,sBAAtB","sourcesContent":["import * as React from 'react';\nimport { getSlots } from '@fluentui/react-utilities';\nimport type { TabListState, TabListSlots, TabListContextValues } from './TabList.types';\nimport { TabListContext } from './TabListContext';\n\n/**\n * Render the final JSX of TabList\n */\nexport const renderTabList_unstable = (state: TabListState, contextValues: TabListContextValues) => {\n const { slots, slotProps } = getSlots<TabListSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n <TabListContext.Provider value={contextValues.tabList}>{state.root.children}</TabListContext.Provider>\n </slots.root>\n );\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,12 @@
1
+ import * as React from 'react';
2
+ import type { TabListProps, TabListState } from './TabList.types';
3
+ /**
4
+ * Create the state required to render TabList.
5
+ *
6
+ * The returned state can be modified with hooks such as useTabListStyles_unstable,
7
+ * before being passed to renderTabList_unstable.
8
+ *
9
+ * @param props - props from this instance of TabList
10
+ * @param ref - reference to root HTMLElement of TabList
11
+ */
12
+ export declare const useTabList_unstable: (props: TabListProps, ref: React.Ref<HTMLElement>) => TabListState;
@@ -0,0 +1,93 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTabList_unstable = void 0;
7
+
8
+ const React = /*#__PURE__*/require("react");
9
+
10
+ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
11
+
12
+ const react_utilities_1 = /*#__PURE__*/require("@fluentui/react-utilities");
13
+ /**
14
+ * Create the state required to render TabList.
15
+ *
16
+ * The returned state can be modified with hooks such as useTabListStyles_unstable,
17
+ * before being passed to renderTabList_unstable.
18
+ *
19
+ * @param props - props from this instance of TabList
20
+ * @param ref - reference to root HTMLElement of TabList
21
+ */
22
+
23
+
24
+ const useTabList_unstable = (props, ref) => {
25
+ const {
26
+ appearance = 'transparent',
27
+ disabled = false,
28
+ onTabSelect,
29
+ size = 'medium',
30
+ vertical = false
31
+ } = props;
32
+ const innerRef = React.useRef(null);
33
+ const focusAttributes = react_tabster_1.useArrowNavigationGroup({
34
+ circular: true,
35
+ axis: vertical ? 'vertical' : 'horizontal'
36
+ });
37
+ const [selectedValue, setSelectedValue] = react_utilities_1.useControllableState({
38
+ state: props.selectedValue,
39
+ defaultState: props.defaultSelectedValue,
40
+ initialState: undefined
41
+ }); // considered usePrevious, but it is sensitive to re-renders
42
+ // this could cause the previous to move to current in the case where the tab list re-renders.
43
+ // these refs avoid getRegisteredTabs changing when selectedValue changes and causing
44
+ // renders for tabs that have not changed.
45
+
46
+ const currentSelectedValue = React.useRef(undefined);
47
+ const previousSelectedValue = React.useRef(undefined);
48
+ React.useEffect(() => {
49
+ previousSelectedValue.current = currentSelectedValue.current;
50
+ currentSelectedValue.current = selectedValue;
51
+ }, [selectedValue]);
52
+ const onSelect = react_utilities_1.useEventCallback((event, data) => {
53
+ setSelectedValue(data.value);
54
+ onTabSelect === null || onTabSelect === void 0 ? void 0 : onTabSelect(event, data);
55
+ });
56
+ const registeredTabs = React.useRef({});
57
+ const onRegister = react_utilities_1.useEventCallback(data => {
58
+ registeredTabs.current[JSON.stringify(data.value)] = data;
59
+ });
60
+ const onUnregister = react_utilities_1.useEventCallback(data => {
61
+ delete registeredTabs.current[JSON.stringify(data.value)];
62
+ });
63
+ const getRegisteredTabs = React.useCallback(() => {
64
+ return {
65
+ selectedValue: currentSelectedValue.current,
66
+ previousSelectedValue: previousSelectedValue.current,
67
+ registeredTabs: registeredTabs.current
68
+ };
69
+ }, []);
70
+ return {
71
+ components: {
72
+ root: 'div'
73
+ },
74
+ root: react_utilities_1.getNativeElementProps('div', {
75
+ ref: react_utilities_1.useMergedRefs(ref, innerRef),
76
+ role: 'tablist',
77
+ ...focusAttributes,
78
+ ...props
79
+ }),
80
+ appearance,
81
+ disabled,
82
+ selectedValue,
83
+ size,
84
+ vertical,
85
+ onRegister,
86
+ onUnregister,
87
+ onSelect,
88
+ getRegisteredTabs
89
+ };
90
+ };
91
+
92
+ exports.useTabList_unstable = useTabList_unstable;
93
+ //# sourceMappingURL=useTabList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/TabList/useTabList.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAA,KAAA,gBAAA,OAAA,CAAA,OAAA,CAAA;;AACA,MAAA,eAAA,gBAAA,OAAA,CAAA,yBAAA,CAAA;;AACA,MAAA,iBAAA,gBAAA,OAAA,CAAA,2BAAA,CAAA;AASA;;;;;;;;AAQG;;;AACI,MAAM,mBAAmB,GAAG,CAAC,KAAD,EAAsB,GAAtB,KAAmE;AACpG,QAAM;AAAE,IAAA,UAAU,GAAG,aAAf;AAA8B,IAAA,QAAQ,GAAG,KAAzC;AAAgD,IAAA,WAAhD;AAA6D,IAAA,IAAI,GAAG,QAApE;AAA8E,IAAA,QAAQ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AAC,OAAf,CAAuB,IAAI,CAAC,SAAL,CAAe,IAAI,CAAC,KAApB,CAAvB,IAAqD,IAArD;AACD,GAFkB,CAAnB;AAIA,QAAM,YAAY,GAAG,iBAAA,CAAA,gBAAA,CAAkB,IAAD,IAA0B;AAC9D,WAAO,cAAc,CAAC,OAAf,CAAuB,IAAI,CAAC,SAAL,CAAe,IAAI,CAAC,KAApB,CAAvB,CAAP;AACD,GAFoB,CAArB;AAIA,QAAM,iBAAiB,GAAG,KAAK,CAAC,WAAN,CAAkB,MAAK;AAC/C,WAAO;AACL,MAAA,aAAa,EAAE,oBAAoB,CAAC,OAD/B;AAEL,MAAA,qBAAqB,EAAE,qBAAqB,CAAC,OAFxC;AAGL,MAAA,cAAc,EAAE,cAAc,CAAC;AAH1B,KAAP;AAKD,GANyB,EAMvB,EANuB,CAA1B;AAQA,SAAO;AACL,IAAA,UAAU,EAAE;AACV,MAAA,IAAI,EAAE;AADI,KADP;AAIL,IAAA,IAAI,EAAE,iBAAA,CAAA,qBAAA,CAAsB,KAAtB,EAA6B;AACjC,MAAA,GAAG,EAAE,iBAAA,CAAA,aAAA,CAAc,GAAd,EAAmB,QAAnB,CAD4B;AAEjC,MAAA,IAAI,EAAE,SAF2B;AAGjC,SAAG,eAH8B;AAIjC,SAAG;AAJ8B,KAA7B,CAJD;AAUL,IAAA,UAVK;AAWL,IAAA,QAXK;AAYL,IAAA,aAZK;AAaL,IAAA,IAbK;AAcL,IAAA,QAdK;AAeL,IAAA,UAfK;AAgBL,IAAA,YAhBK;AAiBL,IAAA,QAjBK;AAkBL,IAAA;AAlBK,GAAP;AAoBD,CApEM;;AAAM,OAAA,CAAA,mBAAA,GAAmB,mBAAnB","sourcesContent":["import * as React from 'react';\nimport { useArrowNavigationGroup } from '@fluentui/react-tabster';\nimport {\n getNativeElementProps,\n useControllableState,\n useEventCallback,\n useMergedRefs,\n} from '@fluentui/react-utilities';\nimport type { TabRegisterData, SelectTabData, SelectTabEvent, TabListProps, TabListState } from './TabList.types';\nimport { TabValue } from '../Tab/Tab.types';\n\n/**\n * Create the state required to render TabList.\n *\n * The returned state can be modified with hooks such as useTabListStyles_unstable,\n * before being passed to renderTabList_unstable.\n *\n * @param props - props from this instance of TabList\n * @param ref - reference to root HTMLElement of TabList\n */\nexport const useTabList_unstable = (props: TabListProps, ref: React.Ref<HTMLElement>): TabListState => {\n const { appearance = 'transparent', disabled = false, onTabSelect, size = 'medium', vertical = false } = props;\n\n const innerRef = React.useRef<HTMLElement>(null);\n\n const focusAttributes = useArrowNavigationGroup({ circular: true, axis: vertical ? 'vertical' : 'horizontal' });\n\n const [selectedValue, setSelectedValue] = useControllableState({\n state: props.selectedValue,\n defaultState: props.defaultSelectedValue,\n initialState: undefined,\n });\n\n // considered usePrevious, but it is sensitive to re-renders\n // this could cause the previous to move to current in the case where the tab list re-renders.\n // these refs avoid getRegisteredTabs changing when selectedValue changes and causing\n // renders for tabs that have not changed.\n const currentSelectedValue = React.useRef<TabValue | undefined>(undefined);\n const previousSelectedValue = React.useRef<TabValue | undefined>(undefined);\n\n React.useEffect(() => {\n previousSelectedValue.current = currentSelectedValue.current;\n currentSelectedValue.current = selectedValue;\n }, [selectedValue]);\n\n const onSelect = useEventCallback((event: SelectTabEvent, data: SelectTabData) => {\n setSelectedValue(data.value);\n onTabSelect?.(event, data);\n });\n\n const registeredTabs = React.useRef<Record<string, TabRegisterData>>({});\n\n const onRegister = useEventCallback((data: TabRegisterData) => {\n registeredTabs.current[JSON.stringify(data.value)] = data;\n });\n\n const onUnregister = useEventCallback((data: TabRegisterData) => {\n delete registeredTabs.current[JSON.stringify(data.value)];\n });\n\n const getRegisteredTabs = React.useCallback(() => {\n return {\n selectedValue: currentSelectedValue.current,\n previousSelectedValue: previousSelectedValue.current,\n registeredTabs: registeredTabs.current,\n };\n }, []);\n\n return {\n components: {\n root: 'div',\n },\n root: getNativeElementProps('div', {\n ref: useMergedRefs(ref, innerRef),\n role: 'tablist',\n ...focusAttributes,\n ...props,\n }),\n appearance,\n disabled,\n selectedValue,\n size,\n vertical,\n onRegister,\n onUnregister,\n onSelect,\n getRegisteredTabs,\n };\n};\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,2 @@
1
+ import { TabListContextValues, TabListState } from './TabList.types';
2
+ export declare function useTabListContextValues(state: TabListState): TabListContextValues;
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTabListContextValues = void 0;
7
+
8
+ function useTabListContextValues(state) {
9
+ const {
10
+ appearance,
11
+ disabled,
12
+ selectedValue: selectedKey,
13
+ onRegister,
14
+ onUnregister,
15
+ onSelect,
16
+ getRegisteredTabs,
17
+ size,
18
+ vertical
19
+ } = state;
20
+ const tabList = {
21
+ appearance,
22
+ disabled,
23
+ selectedValue: selectedKey,
24
+ onSelect,
25
+ onRegister,
26
+ onUnregister,
27
+ getRegisteredTabs,
28
+ size,
29
+ vertical
30
+ };
31
+ return {
32
+ tabList
33
+ };
34
+ }
35
+
36
+ exports.useTabListContextValues = useTabListContextValues;
37
+ //# sourceMappingURL=useTabListContextValues.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/TabList/useTabListContextValues.tsx"],"names":[],"mappings":";;;;;;;AAEA,SAAgB,uBAAhB,CAAwC,KAAxC,EAA2D;AACzD,QAAM;AACJ,IAAA,UADI;AAEJ,IAAA,QAFI;AAGJ,IAAA,aAAa,EAAE,WAHX;AAIJ,IAAA,UAJI;AAKJ,IAAA,YALI;AAMJ,IAAA,QANI;AAOJ,IAAA,iBAPI;AAQJ,IAAA,IARI;AASJ,IAAA;AATI,MAUF,KAVJ;AAYA,QAAM,OAAO,GAAwB;AACnC,IAAA,UADmC;AAEnC,IAAA,QAFmC;AAGnC,IAAA,aAAa,EAAE,WAHoB;AAInC,IAAA,QAJmC;AAKnC,IAAA,UALmC;AAMnC,IAAA,YANmC;AAOnC,IAAA,iBAPmC;AAQnC,IAAA,IARmC;AASnC,IAAA;AATmC,GAArC;AAYA,SAAO;AAAE,IAAA;AAAF,GAAP;AACD;;AA1BD,OAAA,CAAA,uBAAA,GAAA,uBAAA","sourcesContent":["import { TabListContextValue, TabListContextValues, TabListState } from './TabList.types';\n\nexport function useTabListContextValues(state: TabListState): TabListContextValues {\n const {\n appearance,\n disabled,\n selectedValue: selectedKey,\n onRegister,\n onUnregister,\n onSelect,\n getRegisteredTabs,\n size,\n vertical,\n } = state;\n\n const tabList: TabListContextValue = {\n appearance,\n disabled,\n selectedValue: selectedKey,\n onSelect,\n onRegister,\n onUnregister,\n getRegisteredTabs,\n size,\n vertical,\n };\n\n return { tabList };\n}\n"],"sourceRoot":"../src/"}
@@ -0,0 +1,8 @@
1
+ import { SlotClassNames } from '@fluentui/react-utilities';
2
+ import type { TabListSlots, TabListState } from './TabList.types';
3
+ export declare const tabListClassNames: SlotClassNames<TabListSlots>;
4
+ export declare const tabListClassName: string;
5
+ /**
6
+ * Apply styling to the TabList slots based on the state
7
+ */
8
+ export declare const useTabListStyles_unstable: (state: TabListState) => TabListState;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTabListStyles_unstable = exports.tabListClassName = exports.tabListClassNames = void 0;
7
+
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ exports.tabListClassNames = {
11
+ root: 'fui-TabList'
12
+ }; // TODO temporary export to pass conformance test.
13
+
14
+ exports.tabListClassName = exports.tabListClassNames.root;
15
+ /**
16
+ * Styles for the root slot
17
+ */
18
+
19
+ const useStyles = /*#__PURE__*/react_1.__styles({
20
+ "root": {
21
+ "mc9l5x": "f22iagw",
22
+ "Beiy3e4": "f1063pyq",
23
+ "Bnnss6s": "fi64zpg",
24
+ "Eh141a": "flvyvdh",
25
+ "B68tc82": "f1p9o1ba",
26
+ "Bmxbyg5": "f1sil6mw",
27
+ "qhf8xq": "f10pi13n"
28
+ },
29
+ "horizontal": {
30
+ "Bt984gj": "f1q9h2pe",
31
+ "Beiy3e4": "f1063pyq"
32
+ },
33
+ "vertical": {
34
+ "Bt984gj": "f1q9h2pe",
35
+ "Beiy3e4": "f1vx9l62"
36
+ }
37
+ }, {
38
+ "d": [".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f1063pyq{-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;}", ".fi64zpg{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".flvyvdh{-webkit-box-flex-wrap:nowrap;-webkit-flex-wrap:nowrap;-ms-flex-wrap:nowrap;flex-wrap:nowrap;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f10pi13n{position:relative;}", ".f1q9h2pe{-webkit-align-items:stretch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;}", ".f1vx9l62{-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;}"]
39
+ });
40
+ /**
41
+ * Apply styling to the TabList slots based on the state
42
+ */
43
+
44
+
45
+ const useTabListStyles_unstable = state => {
46
+ const {
47
+ vertical
48
+ } = state;
49
+ const styles = useStyles();
50
+ state.root.className = react_1.mergeClasses(exports.tabListClassName, styles.root, vertical ? styles.vertical : styles.horizontal, state.root.className);
51
+ return state;
52
+ };
53
+
54
+ exports.useTabListStyles_unstable = useTabListStyles_unstable;
55
+ //# sourceMappingURL=useTabListStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["components/TabList/useTabListStyles.ts"],"names":[],"mappings":";;;;;;;AACA,MAAA,OAAA,gBAAA,OAAA,CAAA,gBAAA,CAAA;;AAGa,OAAA,CAAA,iBAAA,GAAkD;AAC7D,EAAA,IAAI,EAAE;AADuD,CAAlD,C,CAIb;;AACa,OAAA,CAAA,gBAAA,GAAmB,OAAA,CAAA,iBAAA,CAAkB,IAArC;AAEb;;AAEG;;AACH,MAAM,SAAS,gBAAG,OAAA,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAAlB;AAmBA;;AAEG;;;AACI,MAAM,yBAAyB,GAAI,KAAD,IAAsC;AAC7E,QAAM;AAAE,IAAA;AAAF,MAAe,KAArB;AAEA,QAAM,MAAM,GAAG,SAAS,EAAxB;AAEA,EAAA,KAAK,CAAC,IAAN,CAAW,SAAX,GAAuB,OAAA,CAAA,YAAA,CACrB,OAAA,CAAA,gBADqB,EAErB,MAAM,CAAC,IAFc,EAGrB,QAAQ,GAAG,MAAM,CAAC,QAAV,GAAqB,MAAM,CAAC,UAHf,EAIrB,KAAK,CAAC,IAAN,CAAW,SAJU,CAAvB;AAOA,SAAO,KAAP;AACD,CAbM;;AAAM,OAAA,CAAA,yBAAA,GAAyB,yBAAzB","sourcesContent":["import { SlotClassNames } from '@fluentui/react-utilities';\nimport { makeStyles, mergeClasses, shorthands } from '@griffel/react';\nimport type { TabListSlots, TabListState } from './TabList.types';\n\nexport const tabListClassNames: SlotClassNames<TabListSlots> = {\n root: 'fui-TabList',\n};\n\n// TODO temporary export to pass conformance test.\nexport const tabListClassName = tabListClassNames.root;\n\n/**\n * Styles for the root slot\n */\nconst useStyles = makeStyles({\n root: {\n display: 'flex',\n flexDirection: 'row',\n flexShrink: 0,\n flexWrap: 'nowrap',\n ...shorthands.overflow('hidden'),\n position: 'relative',\n },\n horizontal: {\n alignItems: 'stretch',\n flexDirection: 'row',\n },\n vertical: {\n alignItems: 'stretch',\n flexDirection: 'column',\n },\n});\n\n/**\n * Apply styling to the TabList slots based on the state\n */\nexport const useTabListStyles_unstable = (state: TabListState): TabListState => {\n const { vertical } = state;\n\n const styles = useStyles();\n\n state.root.className = mergeClasses(\n tabListClassName,\n styles.root,\n vertical ? styles.vertical : styles.horizontal,\n state.root.className,\n );\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1,4 @@
1
- export * from './Tabs';
1
+ export type { TabProps, TabSlots, TabState, TabValue } from './Tab';
2
+ export { renderTab_unstable, Tab, tabClassName, tabClassNames, useTabStyles_unstable, useTab_unstable } from './Tab';
3
+ export type { TabRegisterData, RegisterTabEventHandler, SelectTabData, SelectTabEvent, SelectTabEventHandler, TabListContextValue, TabListContextValues, TabListProps, TabListSlots, TabListState, } from './TabList';
4
+ export { renderTabList_unstable, TabList, tabListClassName, tabListClassNames, useTabListStyles_unstable, useTabList_unstable, } from './TabList';