@fluentui/react-nav 9.1.0 → 9.1.2

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 (66) hide show
  1. package/CHANGELOG.md +31 -2
  2. package/dist/index.d.ts +9 -9
  3. package/lib/components/AppItem/AppItem.js +3 -9
  4. package/lib/components/AppItem/AppItem.js.map +1 -1
  5. package/lib/components/AppItemStatic/AppItemStatic.js +3 -9
  6. package/lib/components/AppItemStatic/AppItemStatic.js.map +1 -1
  7. package/lib/components/Hamburger/Hamburger.js +4 -5
  8. package/lib/components/Hamburger/Hamburger.js.map +1 -1
  9. package/lib/components/Nav/Nav.js +2 -0
  10. package/lib/components/Nav/Nav.js.map +1 -1
  11. package/lib/components/NavCategory/NavCategory.js +1 -1
  12. package/lib/components/NavCategory/NavCategory.js.map +1 -1
  13. package/lib/components/NavCategoryItem/NavCategoryItem.js +2 -3
  14. package/lib/components/NavCategoryItem/NavCategoryItem.js.map +1 -1
  15. package/lib/components/NavDivider/NavDivider.js +4 -5
  16. package/lib/components/NavDivider/NavDivider.js.map +1 -1
  17. package/lib/components/NavDrawer/NavDrawer.js +3 -5
  18. package/lib/components/NavDrawer/NavDrawer.js.map +1 -1
  19. package/lib/components/NavDrawerBody/NavDrawerBody.js +2 -3
  20. package/lib/components/NavDrawerBody/NavDrawerBody.js.map +1 -1
  21. package/lib/components/NavDrawerFooter/NavDrawerFooter.js +2 -3
  22. package/lib/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -1
  23. package/lib/components/NavDrawerHeader/NavDrawerHeader.js +4 -5
  24. package/lib/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -1
  25. package/lib/components/NavItem/NavItem.js +3 -5
  26. package/lib/components/NavItem/NavItem.js.map +1 -1
  27. package/lib/components/NavSectionHeader/NavSectionHeader.js +2 -3
  28. package/lib/components/NavSectionHeader/NavSectionHeader.js.map +1 -1
  29. package/lib/components/NavSubItem/NavSubItem.js +3 -5
  30. package/lib/components/NavSubItem/NavSubItem.js.map +1 -1
  31. package/lib/components/NavSubItemGroup/NavSubItemGroup.js +3 -5
  32. package/lib/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -1
  33. package/lib/components/SplitNavItem/SplitNavItem.js +2 -8
  34. package/lib/components/SplitNavItem/SplitNavItem.js.map +1 -1
  35. package/lib-commonjs/components/AppItem/AppItem.js +2 -8
  36. package/lib-commonjs/components/AppItem/AppItem.js.map +1 -1
  37. package/lib-commonjs/components/AppItemStatic/AppItemStatic.js +2 -8
  38. package/lib-commonjs/components/AppItemStatic/AppItemStatic.js.map +1 -1
  39. package/lib-commonjs/components/Hamburger/Hamburger.js +3 -4
  40. package/lib-commonjs/components/Hamburger/Hamburger.js.map +1 -1
  41. package/lib-commonjs/components/Nav/Nav.js +2 -0
  42. package/lib-commonjs/components/Nav/Nav.js.map +1 -1
  43. package/lib-commonjs/components/NavCategory/NavCategory.js.map +1 -1
  44. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js +2 -2
  45. package/lib-commonjs/components/NavCategoryItem/NavCategoryItem.js.map +1 -1
  46. package/lib-commonjs/components/NavDivider/NavDivider.js +3 -4
  47. package/lib-commonjs/components/NavDivider/NavDivider.js.map +1 -1
  48. package/lib-commonjs/components/NavDrawer/NavDrawer.js +2 -3
  49. package/lib-commonjs/components/NavDrawer/NavDrawer.js.map +1 -1
  50. package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js +2 -3
  51. package/lib-commonjs/components/NavDrawerBody/NavDrawerBody.js.map +1 -1
  52. package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js +2 -3
  53. package/lib-commonjs/components/NavDrawerFooter/NavDrawerFooter.js.map +1 -1
  54. package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js +4 -5
  55. package/lib-commonjs/components/NavDrawerHeader/NavDrawerHeader.js.map +1 -1
  56. package/lib-commonjs/components/NavItem/NavItem.js +2 -3
  57. package/lib-commonjs/components/NavItem/NavItem.js.map +1 -1
  58. package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js +2 -3
  59. package/lib-commonjs/components/NavSectionHeader/NavSectionHeader.js.map +1 -1
  60. package/lib-commonjs/components/NavSubItem/NavSubItem.js +2 -3
  61. package/lib-commonjs/components/NavSubItem/NavSubItem.js.map +1 -1
  62. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js +2 -3
  63. package/lib-commonjs/components/NavSubItemGroup/NavSubItemGroup.js.map +1 -1
  64. package/lib-commonjs/components/SplitNavItem/SplitNavItem.js +2 -8
  65. package/lib-commonjs/components/SplitNavItem/SplitNavItem.js.map +1 -1
  66. package/package.json +11 -11
@@ -1,16 +1,14 @@
1
1
  import * as React from 'react';
2
- // import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
2
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
3
3
  import { useNavSubItemGroup_unstable } from './useNavSubItemGroup';
4
4
  import { renderNavSubItemGroup_unstable } from './renderNavSubItemGroup';
5
5
  import { useNavSubItemGroupStyles_unstable } from './useNavSubItemGroupStyles.styles';
6
6
  /**
7
- * NavSubItemGroup component - TODO: add more docs
7
+ * NavSubItemGroup component - a group of sub-items within a navigation structure.
8
8
  */ export const NavSubItemGroup = /*#__PURE__*/ React.forwardRef((props, ref)=>{
9
9
  const state = useNavSubItemGroup_unstable(props, ref);
10
10
  useNavSubItemGroupStyles_unstable(state);
11
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
12
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
13
- // useCustomStyleHook_unstable('useNavSubItemGroupStyles_unstable')(state);
11
+ useCustomStyleHook_unstable('useNavSubItemGroupStyles_unstable')(state);
14
12
  return renderNavSubItemGroup_unstable(state);
15
13
  });
16
14
  NavSubItemGroup.displayName = 'NavSubItemGroup';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavSubItemGroup/NavSubItemGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useNavSubItemGroup_unstable } from './useNavSubItemGroup';\nimport { renderNavSubItemGroup_unstable } from './renderNavSubItemGroup';\nimport { useNavSubItemGroupStyles_unstable } from './useNavSubItemGroupStyles.styles';\nimport type { NavSubItemGroupProps } from './NavSubItemGroup.types';\n\n/**\n * NavSubItemGroup component - TODO: add more docs\n */\nexport const NavSubItemGroup: ForwardRefComponent<NavSubItemGroupProps> = React.forwardRef((props, ref) => {\n const state = useNavSubItemGroup_unstable(props, ref);\n\n useNavSubItemGroupStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavSubItemGroupStyles_unstable')(state);\n return renderNavSubItemGroup_unstable(state);\n});\n\nNavSubItemGroup.displayName = 'NavSubItemGroup';\n"],"names":["React","useNavSubItemGroup_unstable","renderNavSubItemGroup_unstable","useNavSubItemGroupStyles_unstable","NavSubItemGroup","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,iFAAiF;AACjF,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,0BAA0B;AACzE,SAASC,iCAAiC,QAAQ,oCAAoC;AAGtF;;CAEC,GACD,OAAO,MAAMC,gCAA6DJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQP,4BAA4BK,OAAOC;IAEjDJ,kCAAkCK;IAClC,8HAA8H;IAC9H,wGAAwG;IACxG,2EAA2E;IAC3E,OAAON,+BAA+BM;AACxC,GAAG;AAEHJ,gBAAgBK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavSubItemGroup/NavSubItemGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavSubItemGroup_unstable } from './useNavSubItemGroup';\nimport { renderNavSubItemGroup_unstable } from './renderNavSubItemGroup';\nimport { useNavSubItemGroupStyles_unstable } from './useNavSubItemGroupStyles.styles';\nimport type { NavSubItemGroupProps } from './NavSubItemGroup.types';\n\n/**\n * NavSubItemGroup component - a group of sub-items within a navigation structure.\n */\nexport const NavSubItemGroup: ForwardRefComponent<NavSubItemGroupProps> = React.forwardRef((props, ref) => {\n const state = useNavSubItemGroup_unstable(props, ref);\n\n useNavSubItemGroupStyles_unstable(state);\n useCustomStyleHook_unstable('useNavSubItemGroupStyles_unstable')(state);\n\n return renderNavSubItemGroup_unstable(state);\n});\n\nNavSubItemGroup.displayName = 'NavSubItemGroup';\n"],"names":["React","useCustomStyleHook_unstable","useNavSubItemGroup_unstable","renderNavSubItemGroup_unstable","useNavSubItemGroupStyles_unstable","NavSubItemGroup","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,0BAA0B;AACzE,SAASC,iCAAiC,QAAQ,oCAAoC;AAGtF;;CAEC,GACD,OAAO,MAAMC,gCAA6DL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQP,4BAA4BK,OAAOC;IAEjDJ,kCAAkCK;IAClCR,4BAA4B,qCAAqCQ;IAEjE,OAAON,+BAA+BM;AACxC,GAAG;AAEHJ,gBAAgBK,WAAW,GAAG"}
@@ -1,4 +1,5 @@
1
1
  import * as React from 'react';
2
+ import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
2
3
  import { useSplitNavItem_unstable } from './useSplitNavItem';
3
4
  import { renderSplitNavItem_unstable } from './renderSplitNavItem';
4
5
  import { useSplitNavItemStyles_unstable } from './useSplitNavItemStyles.styles';
@@ -7,14 +8,7 @@ import { useSplitNavItemStyles_unstable } from './useSplitNavItemStyles.styles';
7
8
  */ export const SplitNavItem = /*#__PURE__*/ React.forwardRef((props, ref)=>{
8
9
  const state = useSplitNavItem_unstable(props, ref);
9
10
  useSplitNavItemStyles_unstable(state);
10
- /**
11
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
12
- *
13
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
14
- * - uncomment this line
15
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
16
- * - verify that custom global style override works for your component
17
- */ // useCustomStyleHook_unstable('useSplitNavItemStyles_unstable')(state);
11
+ useCustomStyleHook_unstable('useSplitNavItemStyles_unstable')(state);
18
12
  return renderSplitNavItem_unstable(state);
19
13
  });
20
14
  SplitNavItem.displayName = 'SplitNavItem';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/SplitNavItem/SplitNavItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useSplitNavItem_unstable } from './useSplitNavItem';\nimport { renderSplitNavItem_unstable } from './renderSplitNavItem';\nimport { useSplitNavItemStyles_unstable } from './useSplitNavItemStyles.styles';\nimport type { SplitNavItemProps } from './SplitNavItem.types';\n\n/**\n * SplitNavItem component - TODO: add more docs\n */\nexport const SplitNavItem: ForwardRefComponent<SplitNavItemProps> = React.forwardRef((props, ref) => {\n const state = useSplitNavItem_unstable(props, ref);\n\n useSplitNavItemStyles_unstable(state);\n\n /**\n * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md\n *\n * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),\n * - uncomment this line\n * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}\n * - verify that custom global style override works for your component\n */\n // useCustomStyleHook_unstable('useSplitNavItemStyles_unstable')(state);\n\n return renderSplitNavItem_unstable(state);\n});\n\nSplitNavItem.displayName = 'SplitNavItem';\n"],"names":["React","useSplitNavItem_unstable","renderSplitNavItem_unstable","useSplitNavItemStyles_unstable","SplitNavItem","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,iCAAiC;AAGhF;;CAEC,GACD,OAAO,MAAMC,6BAAuDJ,MAAMK,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,QAAQP,yBAAyBK,OAAOC;IAE9CJ,+BAA+BK;IAE/B;;;;;;;GAOC,GACD,wEAAwE;IAExE,OAAON,4BAA4BM;AACrC,GAAG;AAEHJ,aAAaK,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/SplitNavItem/SplitNavItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useSplitNavItem_unstable } from './useSplitNavItem';\nimport { renderSplitNavItem_unstable } from './renderSplitNavItem';\nimport { useSplitNavItemStyles_unstable } from './useSplitNavItemStyles.styles';\nimport type { SplitNavItemProps } from './SplitNavItem.types';\n\n/**\n * SplitNavItem component - TODO: add more docs\n */\nexport const SplitNavItem: ForwardRefComponent<SplitNavItemProps> = React.forwardRef((props, ref) => {\n const state = useSplitNavItem_unstable(props, ref);\n\n useSplitNavItemStyles_unstable(state);\n useCustomStyleHook_unstable('useSplitNavItemStyles_unstable')(state);\n\n return renderSplitNavItem_unstable(state);\n});\n\nSplitNavItem.displayName = 'SplitNavItem';\n"],"names":["React","useCustomStyleHook_unstable","useSplitNavItem_unstable","renderSplitNavItem_unstable","useSplitNavItemStyles_unstable","SplitNavItem","forwardRef","props","ref","state","displayName"],"rangeMappings":";;;;;;;;;;;;;","mappings":"AAAA,YAAYA,WAAW,QAAQ;AAE/B,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E,SAASC,wBAAwB,QAAQ,oBAAoB;AAC7D,SAASC,2BAA2B,QAAQ,uBAAuB;AACnE,SAASC,8BAA8B,QAAQ,iCAAiC;AAGhF;;CAEC,GACD,OAAO,MAAMC,6BAAuDL,MAAMM,UAAU,CAAC,CAACC,OAAOC;IAC3F,MAAMC,QAAQP,yBAAyBK,OAAOC;IAE9CJ,+BAA+BK;IAC/BR,4BAA4B,kCAAkCQ;IAE9D,OAAON,4BAA4BM;AACrC,GAAG;AAEHJ,aAAaK,WAAW,GAAG"}
@@ -10,20 +10,14 @@ Object.defineProperty(exports, "AppItem", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useAppItem = require("./useAppItem");
14
15
  const _renderAppItem = require("./renderAppItem");
15
16
  const _useAppItemStylesstyles = require("./useAppItemStyles.styles");
16
17
  const AppItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useAppItem.useAppItem_unstable)(props, ref);
18
19
  (0, _useAppItemStylesstyles.useAppItemStyles_unstable)(state);
19
- /**
20
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
21
- *
22
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
23
- * - uncomment this line
24
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
25
- * - verify that custom global style override works for your component
26
- */ // useCustomStyleHook_unstable('useAppItemStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useAppItemStyles_unstable')(state);
27
21
  return (0, _renderAppItem.renderAppItem_unstable)(state);
28
22
  });
29
23
  AppItem.displayName = 'AppItem';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItem/AppItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useAppItem_unstable } from './useAppItem';\nimport { renderAppItem_unstable } from './renderAppItem';\nimport { useAppItemStyles_unstable } from './useAppItemStyles.styles';\nimport type { AppItemProps } from './AppItem.types';\n\n/**\n * AppItem component - TODO: add more docs\n */\nexport const AppItem: ForwardRefComponent<AppItemProps> = React.forwardRef((props, ref) => {\n const state = useAppItem_unstable(props, ref);\n\n useAppItemStyles_unstable(state);\n\n /**\n * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md\n *\n * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),\n * - uncomment this line\n * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}\n * - verify that custom global style override works for your component\n */\n // useCustomStyleHook_unstable('useAppItemStyles_unstable')(state);\n\n return renderAppItem_unstable(state);\n});\n\nAppItem.displayName = 'AppItem';\n"],"names":["AppItem","React","forwardRef","props","ref","state","useAppItem_unstable","useAppItemStyles_unstable","renderAppItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUaA;;;eAAAA;;;;iEAVU;4BAEa;+BACG;wCACG;AAMnC,MAAMA,UAAAA,WAAAA,GAA6CC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjF,MAAMC,QAAQC,IAAAA,+BAAAA,EAAoBH,OAAOC;IAEzCG,IAAAA,iDAAAA,EAA0BF;IAE1B;;;;;;;GAOC,GACD,mEAAmE;IAEnE,OAAOG,IAAAA,qCAAAA,EAAuBH;AAChC;AAEAL,QAAQS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/AppItem/AppItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useAppItem_unstable } from './useAppItem';\nimport { renderAppItem_unstable } from './renderAppItem';\nimport { useAppItemStyles_unstable } from './useAppItemStyles.styles';\nimport type { AppItemProps } from './AppItem.types';\n\n/**\n * AppItem component - Application item in the navigation menu.\n */\nexport const AppItem: ForwardRefComponent<AppItemProps> = React.forwardRef((props, ref) => {\n const state = useAppItem_unstable(props, ref);\n\n useAppItemStyles_unstable(state);\n useCustomStyleHook_unstable('useAppItemStyles_unstable')(state);\n\n return renderAppItem_unstable(state);\n});\n\nAppItem.displayName = 'AppItem';\n"],"names":["AppItem","React","forwardRef","props","ref","state","useAppItem_unstable","useAppItemStyles_unstable","useCustomStyleHook_unstable","renderAppItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;qCAEqB;4BAER;+BACG;wCACG;AAMnC,MAAMA,UAAAA,WAAAA,GAA6CC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjF,MAAMC,QAAQC,IAAAA,+BAAAA,EAAoBH,OAAOC;IAEzCG,IAAAA,iDAAAA,EAA0BF;IAC1BG,IAAAA,gDAAAA,EAA4B,6BAA6BH;IAEzD,OAAOI,IAAAA,qCAAAA,EAAuBJ;AAChC;AAEAL,QAAQU,WAAW,GAAG"}
@@ -10,20 +10,14 @@ Object.defineProperty(exports, "AppItemStatic", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useAppItemStatic = require("./useAppItemStatic");
14
15
  const _renderAppItemStatic = require("./renderAppItemStatic");
15
16
  const _useAppItemStaticStylesstyles = require("./useAppItemStaticStyles.styles");
16
17
  const AppItemStatic = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useAppItemStatic.useAppItemStatic_unstable)(props, ref);
18
19
  (0, _useAppItemStaticStylesstyles.useAppItemStaticStyles_unstable)(state);
19
- /**
20
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
21
- *
22
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
23
- * - uncomment this line
24
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
25
- * - verify that custom global style override works for your component
26
- */ // useCustomStyleHook_unstable('useAppItemStaticStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useAppItemStaticStyles_unstable')(state);
27
21
  return (0, _renderAppItemStatic.renderAppItemStatic_unstable)(state);
28
22
  });
29
23
  AppItemStatic.displayName = 'AppItemStatic';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/AppItemStatic/AppItemStatic.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useAppItemStatic_unstable } from './useAppItemStatic';\nimport { renderAppItemStatic_unstable } from './renderAppItemStatic';\nimport { useAppItemStaticStyles_unstable } from './useAppItemStaticStyles.styles';\nimport type { AppItemStaticProps } from './AppItemStatic.types';\n\n/**\n * AppItemStatic component - TODO: add more docs\n */\nexport const AppItemStatic: ForwardRefComponent<AppItemStaticProps> = React.forwardRef((props, ref) => {\n const state = useAppItemStatic_unstable(props, ref);\n\n useAppItemStaticStyles_unstable(state);\n\n /**\n * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md\n *\n * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),\n * - uncomment this line\n * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}\n * - verify that custom global style override works for your component\n */\n // useCustomStyleHook_unstable('useAppItemStaticStyles_unstable')(state);\n\n return renderAppItemStatic_unstable(state);\n});\n\nAppItemStatic.displayName = 'AppItemStatic';\n"],"names":["AppItemStatic","React","forwardRef","props","ref","state","useAppItemStatic_unstable","useAppItemStaticStyles_unstable","renderAppItemStatic_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUaA;;;eAAAA;;;;iEAVU;kCAEmB;qCACG;8CACG;AAMzC,MAAMA,gBAAAA,WAAAA,GAAyDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQC,IAAAA,2CAAAA,EAA0BH,OAAOC;IAE/CG,IAAAA,6DAAAA,EAAgCF;IAEhC;;;;;;;GAOC,GACD,yEAAyE;IAEzE,OAAOG,IAAAA,iDAAAA,EAA6BH;AACtC;AAEAL,cAAcS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/AppItemStatic/AppItemStatic.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useAppItemStatic_unstable } from './useAppItemStatic';\nimport { renderAppItemStatic_unstable } from './renderAppItemStatic';\nimport { useAppItemStaticStyles_unstable } from './useAppItemStaticStyles.styles';\nimport type { AppItemStaticProps } from './AppItemStatic.types';\n\n/**\n * AppItemStatic component - Static application item in the navigation menu.\n */\nexport const AppItemStatic: ForwardRefComponent<AppItemStaticProps> = React.forwardRef((props, ref) => {\n const state = useAppItemStatic_unstable(props, ref);\n\n useAppItemStaticStyles_unstable(state);\n useCustomStyleHook_unstable('useAppItemStaticStyles_unstable')(state);\n\n return renderAppItemStatic_unstable(state);\n});\n\nAppItemStatic.displayName = 'AppItemStatic';\n"],"names":["AppItemStatic","React","forwardRef","props","ref","state","useAppItemStatic_unstable","useAppItemStaticStyles_unstable","useCustomStyleHook_unstable","renderAppItemStatic_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;qCAEqB;kCAEF;qCACG;8CACG;AAMzC,MAAMA,gBAAAA,WAAAA,GAAyDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQC,IAAAA,2CAAAA,EAA0BH,OAAOC;IAE/CG,IAAAA,6DAAAA,EAAgCF;IAChCG,IAAAA,gDAAAA,EAA4B,mCAAmCH;IAE/D,OAAOI,IAAAA,iDAAAA,EAA6BJ;AACtC;AAEAL,cAAcU,WAAW,GAAG"}
@@ -10,15 +10,14 @@ Object.defineProperty(exports, "Hamburger", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
- const _useHamburger = require("./useHamburger");
14
13
  const _reactbutton = require("@fluentui/react-button");
14
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
15
+ const _useHamburger = require("./useHamburger");
15
16
  const _useHamburgerStylesstyles = require("./useHamburgerStyles.styles");
16
17
  const Hamburger = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useHamburger.useHamburger_unstable)(props, ref);
18
19
  (0, _useHamburgerStylesstyles.useHamburgerStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useHamburgerStyles_unstable')(state);
22
21
  return (0, _reactbutton.renderButton_unstable)(state);
23
22
  });
24
23
  Hamburger.displayName = 'Hamburger';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Hamburger/Hamburger.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useHamburger_unstable } from './useHamburger';\nimport { renderButton_unstable } from '@fluentui/react-button';\nimport { useHamburgerStyles_unstable } from './useHamburgerStyles.styles';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { HamburgerProps } from './Hamburger.types';\n\n/**\n * Hamburger component - TODO: add more docs\n */\nexport const Hamburger: ForwardRefComponent<HamburgerProps> = React.forwardRef((props, ref) => {\n const state = useHamburger_unstable(props, ref);\n\n useHamburgerStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);\n return renderButton_unstable(state);\n}) as ForwardRefComponent<HamburgerProps>;\n\nHamburger.displayName = 'Hamburger';\n"],"names":["Hamburger","React","forwardRef","props","ref","state","useHamburger_unstable","useHamburgerStyles_unstable","renderButton_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUaA;;;eAAAA;;;;iEAVU;8BACe;6BACA;0CACM;AAOrC,MAAMA,YAAAA,WAAAA,GAAiDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,QAAQC,IAAAA,mCAAAA,EAAsBH,OAAOC;IAE3CG,IAAAA,qDAAAA,EAA4BF;IAC5B,8HAA8H;IAC9H,wGAAwG;IACxG,qEAAqE;IACrE,OAAOG,IAAAA,kCAAAA,EAAsBH;AAC/B;AAEAL,UAAUS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/Hamburger/Hamburger.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { renderButton_unstable } from '@fluentui/react-button';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useHamburger_unstable } from './useHamburger';\nimport { useHamburgerStyles_unstable } from './useHamburgerStyles.styles';\nimport type { HamburgerProps } from './Hamburger.types';\n\n/**\n * Hamburger component - a button that toggles a menu or navigation drawer.\n */\nexport const Hamburger: ForwardRefComponent<HamburgerProps> = React.forwardRef((props, ref) => {\n const state = useHamburger_unstable(props, ref);\n\n useHamburgerStyles_unstable(state);\n useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);\n\n return renderButton_unstable(state);\n}) as ForwardRefComponent<HamburgerProps>;\n\nHamburger.displayName = 'Hamburger';\n"],"names":["Hamburger","React","forwardRef","props","ref","state","useHamburger_unstable","useHamburgerStyles_unstable","useCustomStyleHook_unstable","renderButton_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;6BAEe;qCACM;8BAEN;0CACM;AAMrC,MAAMA,YAAAA,WAAAA,GAAiDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,QAAQC,IAAAA,mCAAAA,EAAsBH,OAAOC;IAE3CG,IAAAA,qDAAAA,EAA4BF;IAC5BG,IAAAA,gDAAAA,EAA4B,+BAA+BH;IAE3D,OAAOI,IAAAA,kCAAAA,EAAsBJ;AAC/B;AAEAL,UAAUU,WAAW,GAAG"}
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "Nav", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useNav = require("./useNav");
14
15
  const _renderNav = require("./renderNav");
15
16
  const _useNavStylesstyles = require("./useNavStyles.styles");
@@ -18,6 +19,7 @@ const Nav = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
19
  const state = (0, _useNav.useNav_unstable)(props, ref);
19
20
  const contextValues = (0, _useNavContextValues.useNavContextValues_unstable)(state);
20
21
  (0, _useNavStylesstyles.useNavStyles_unstable)(state);
22
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useHamburgerStyles_unstable')(state);
21
23
  return (0, _renderNav.renderNav_unstable)(state, contextValues);
22
24
  });
23
25
  Nav.displayName = 'Nav';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/Nav/Nav.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useNav_unstable } from './useNav';\nimport { renderNav_unstable } from './renderNav';\nimport { useNavStyles_unstable } from './useNavStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport type { NavProps } from './Nav.types';\n\n/**\n * Nav - A component that provides up to two levels of nesting for navigation.\n */\nexport const Nav: ForwardRefComponent<NavProps> = React.forwardRef((props, ref) => {\n const state = useNav_unstable(props, ref);\n\n const contextValues = useNavContextValues_unstable(state);\n\n useNavStyles_unstable(state);\n return renderNav_unstable(state, contextValues);\n});\n\nNav.displayName = 'Nav';\n"],"names":["Nav","React","forwardRef","props","ref","state","useNav_unstable","contextValues","useNavContextValues_unstable","useNavStyles_unstable","renderNav_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;wBAES;2BACG;oCACG;qCACO;AAMtC,MAAMA,MAAAA,WAAAA,GAAqCC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACzE,MAAMC,QAAQC,IAAAA,uBAAAA,EAAgBH,OAAOC;IAErC,MAAMG,gBAAgBC,IAAAA,iDAAAA,EAA6BH;IAEnDI,IAAAA,yCAAAA,EAAsBJ;IACtB,OAAOK,IAAAA,6BAAAA,EAAmBL,OAAOE;AACnC;AAEAP,IAAIW,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/Nav/Nav.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNav_unstable } from './useNav';\nimport { renderNav_unstable } from './renderNav';\nimport { useNavStyles_unstable } from './useNavStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport type { NavProps } from './Nav.types';\n\n/**\n * Nav - A component that provides up to two levels of nesting for navigation.\n */\nexport const Nav: ForwardRefComponent<NavProps> = React.forwardRef((props, ref) => {\n const state = useNav_unstable(props, ref);\n\n const contextValues = useNavContextValues_unstable(state);\n\n useNavStyles_unstable(state);\n useCustomStyleHook_unstable('useHamburgerStyles_unstable')(state);\n\n return renderNav_unstable(state, contextValues);\n});\n\nNav.displayName = 'Nav';\n"],"names":["Nav","React","forwardRef","props","ref","state","useNav_unstable","contextValues","useNavContextValues_unstable","useNavStyles_unstable","useCustomStyleHook_unstable","renderNav_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;qCAEqB;wBAEZ;2BACG;oCACG;qCACO;AAMtC,MAAMA,MAAAA,WAAAA,GAAqCC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACzE,MAAMC,QAAQC,IAAAA,uBAAAA,EAAgBH,OAAOC;IAErC,MAAMG,gBAAgBC,IAAAA,iDAAAA,EAA6BH;IAEnDI,IAAAA,yCAAAA,EAAsBJ;IACtBK,IAAAA,gDAAAA,EAA4B,+BAA+BL;IAE3D,OAAOM,IAAAA,6BAAAA,EAAmBN,OAAOE;AACnC;AAEAP,IAAIY,WAAW,GAAG"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategory/NavCategory.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavCategoryProps } from './NavCategory.types';\n\nimport { useNavCategory_unstable } from './useNavCategory';\nimport { renderNavCategory_unstable } from './renderNavCategory';\nimport { useNavCategoryContextValues_unstable } from '../useNavCategoryContextValues_unstable';\n\n/**\n * NavCategory component - TODO: add more docs\n */\nexport const NavCategory: ForwardRefComponent<NavCategoryProps> = React.forwardRef((props, ref) => {\n const state = useNavCategory_unstable(props, ref);\n const contextValues = useNavCategoryContextValues_unstable(state);\n\n return renderNavCategory_unstable(state, contextValues);\n});\n\nNavCategory.displayName = 'NavCategory';\n"],"names":["NavCategory","React","forwardRef","props","ref","state","useNavCategory_unstable","contextValues","useNavCategoryContextValues_unstable","renderNavCategory_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;gCAKiB;mCACG;sDACU;AAK9C,MAAMA,cAAAA,WAAAA,GAAqDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACzF,MAAMC,QAAQC,IAAAA,uCAAAA,EAAwBH,OAAOC;IAC7C,MAAMG,gBAAgBC,IAAAA,0EAAAA,EAAqCH;IAE3D,OAAOI,IAAAA,6CAAAA,EAA2BJ,OAAOE;AAC3C;AAEAP,YAAYU,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavCategory/NavCategory.tsx"],"sourcesContent":["import * as React from 'react';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavCategoryProps } from './NavCategory.types';\n\nimport { useNavCategory_unstable } from './useNavCategory';\nimport { renderNavCategory_unstable } from './renderNavCategory';\nimport { useNavCategoryContextValues_unstable } from '../useNavCategoryContextValues_unstable';\n\n/**\n * NavCategory component - a category in the navigation menu that can contain multiple items.\n */\nexport const NavCategory: ForwardRefComponent<NavCategoryProps> = React.forwardRef((props, ref) => {\n const state = useNavCategory_unstable(props, ref);\n const contextValues = useNavCategoryContextValues_unstable(state);\n\n return renderNavCategory_unstable(state, contextValues);\n});\n\nNavCategory.displayName = 'NavCategory';\n"],"names":["NavCategory","React","forwardRef","props","ref","state","useNavCategory_unstable","contextValues","useNavCategoryContextValues_unstable","renderNavCategory_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;gCAKiB;mCACG;sDACU;AAK9C,MAAMA,cAAAA,WAAAA,GAAqDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACzF,MAAMC,QAAQC,IAAAA,uCAAAA,EAAwBH,OAAOC;IAC7C,MAAMG,gBAAgBC,IAAAA,0EAAAA,EAAqCH;IAE3D,OAAOI,IAAAA,6CAAAA,EAA2BJ,OAAOE;AAC3C;AAEAP,YAAYU,WAAW,GAAG"}
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "NavCategoryItem", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useNavCategoryItem = require("./useNavCategoryItem");
14
15
  const _renderNavCategoryItem = require("./renderNavCategoryItem");
15
16
  const _useNavCategoryItemstyles = require("./useNavCategoryItem.styles");
@@ -18,8 +19,7 @@ const NavCategoryItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
19
  const state = (0, _useNavCategoryItem.useNavCategoryItem_unstable)(props, ref);
19
20
  const contextValues = (0, _useNavCategoryItemContextValues_unstable.useNavCategoryItemContextValues_unstable)(state);
20
21
  (0, _useNavCategoryItemstyles.useNavCategoryItemStyles_unstable)(state);
21
- // todo: add custom style hook
22
- // useCustomStyleHook_unstable('useNavCategoryItemStyles')(state);
22
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavCategoryItemStyles')(state);
23
23
  return (0, _renderNavCategoryItem.renderNavCategoryItem_unstable)(state, contextValues);
24
24
  });
25
25
  NavCategoryItem.displayName = 'NavCategoryItem';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavCategoryItem/NavCategoryItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useNavCategoryItem_unstable } from './useNavCategoryItem';\nimport { renderNavCategoryItem_unstable } from './renderNavCategoryItem';\nimport type { NavCategoryItemProps } from './NavCategoryItem.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useNavCategoryItemStyles_unstable } from './useNavCategoryItem.styles';\nimport { useNavCategoryItemContextValues_unstable } from '../useNavCategoryItemContextValues_unstable';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * A Nav Category Item provides provides a clickable accordion like header that exposes\n * a list of NavSubItems to take users to a new destination.\n */\nexport const NavCategoryItem: ForwardRefComponent<NavCategoryItemProps> = React.forwardRef((props, ref) => {\n const state = useNavCategoryItem_unstable(props, ref);\n const contextValues = useNavCategoryItemContextValues_unstable(state);\n\n useNavCategoryItemStyles_unstable(state);\n\n // todo: add custom style hook\n // useCustomStyleHook_unstable('useNavCategoryItemStyles')(state);\n\n return renderNavCategoryItem_unstable(state, contextValues);\n});\n\nNavCategoryItem.displayName = 'NavCategoryItem';\n"],"names":["NavCategoryItem","React","forwardRef","props","ref","state","useNavCategoryItem_unstable","contextValues","useNavCategoryItemContextValues_unstable","useNavCategoryItemStyles_unstable","renderNavCategoryItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAaaA;;;eAAAA;;;;iEAbU;oCACqB;uCACG;0CAGG;0DACO;AAOlD,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IACjD,MAAMG,gBAAgBC,IAAAA,kFAAAA,EAAyCH;IAE/DI,IAAAA,2DAAAA,EAAkCJ;IAElC,8BAA8B;IAC9B,kEAAkE;IAElE,OAAOK,IAAAA,qDAAAA,EAA+BL,OAAOE;AAC/C;AAEAP,gBAAgBW,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavCategoryItem/NavCategoryItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavCategoryItem_unstable } from './useNavCategoryItem';\nimport { renderNavCategoryItem_unstable } from './renderNavCategoryItem';\nimport type { NavCategoryItemProps } from './NavCategoryItem.types';\nimport { useNavCategoryItemStyles_unstable } from './useNavCategoryItem.styles';\nimport { useNavCategoryItemContextValues_unstable } from '../useNavCategoryItemContextValues_unstable';\n\n/**\n * A Nav Category Item provides provides a clickable accordion like header that exposes\n * a list of NavSubItems to take users to a new destination.\n */\nexport const NavCategoryItem: ForwardRefComponent<NavCategoryItemProps> = React.forwardRef((props, ref) => {\n const state = useNavCategoryItem_unstable(props, ref);\n const contextValues = useNavCategoryItemContextValues_unstable(state);\n\n useNavCategoryItemStyles_unstable(state);\n useCustomStyleHook_unstable('useNavCategoryItemStyles')(state);\n\n return renderNavCategoryItem_unstable(state, contextValues);\n});\n\nNavCategoryItem.displayName = 'NavCategoryItem';\n"],"names":["NavCategoryItem","React","forwardRef","props","ref","state","useNavCategoryItem_unstable","contextValues","useNavCategoryItemContextValues_unstable","useNavCategoryItemStyles_unstable","useCustomStyleHook_unstable","renderNavCategoryItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAcaA;;;eAAAA;;;;iEAdU;qCAEqB;oCAEA;uCACG;0CAEG;0DACO;AAMlD,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IACjD,MAAMG,gBAAgBC,IAAAA,kFAAAA,EAAyCH;IAE/DI,IAAAA,2DAAAA,EAAkCJ;IAClCK,IAAAA,gDAAAA,EAA4B,4BAA4BL;IAExD,OAAOM,IAAAA,qDAAAA,EAA+BN,OAAOE;AAC/C;AAEAP,gBAAgBY,WAAW,GAAG"}
@@ -10,15 +10,14 @@ Object.defineProperty(exports, "NavDivider", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactdivider = require("@fluentui/react-divider");
14
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
15
  const _useNavDivider = require("./useNavDivider");
14
16
  const _useNavDividerStylesstyles = require("./useNavDividerStyles.styles");
15
- const _reactdivider = require("@fluentui/react-divider");
16
17
  const NavDivider = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavDivider.useNavDivider_unstable)(props, ref);
18
19
  (0, _useNavDividerStylesstyles.useNavDividerStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavDividerStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavDividerStyles_unstable')(state);
22
21
  return (0, _reactdivider.renderDivider_unstable)(state);
23
22
  });
24
23
  NavDivider.displayName = 'NavDivider';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDivider/NavDivider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useNavDivider_unstable } from './useNavDivider';\nimport { useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\nimport { renderDivider_unstable } from '@fluentui/react-divider';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDividerProps } from './NavDivider.types';\n\n/**\n * NavDivider component - TODO: add more docs\n */\nexport const NavDivider: ForwardRefComponent<NavDividerProps> = React.forwardRef((props, ref) => {\n const state = useNavDivider_unstable(props, ref);\n\n useNavDividerStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDividerStyles_unstable')(state);\n return renderDivider_unstable(state);\n});\n\nNavDivider.displayName = 'NavDivider';\n"],"names":["NavDivider","React","forwardRef","props","ref","state","useNavDivider_unstable","useNavDividerStyles_unstable","renderDivider_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;+BACgB;2CACM;8BACN;AAQhC,MAAMA,aAAAA,WAAAA,GAAmDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQC,IAAAA,qCAAAA,EAAuBH,OAAOC;IAE5CG,IAAAA,uDAAAA,EAA6BF;IAC7B,8HAA8H;IAC9H,wGAAwG;IACxG,sEAAsE;IACtE,OAAOG,IAAAA,oCAAAA,EAAuBH;AAChC;AAEAL,WAAWS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavDivider/NavDivider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDivider_unstable } from '@fluentui/react-divider';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavDivider_unstable } from './useNavDivider';\nimport { useNavDividerStyles_unstable } from './useNavDividerStyles.styles';\nimport type { NavDividerProps } from './NavDivider.types';\n\n/**\n * NavDivider component - a divider used within navigation components to separate items.\n */\nexport const NavDivider: ForwardRefComponent<NavDividerProps> = React.forwardRef((props, ref) => {\n const state = useNavDivider_unstable(props, ref);\n\n useNavDividerStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDividerStyles_unstable')(state);\n\n return renderDivider_unstable(state);\n});\n\nNavDivider.displayName = 'NavDivider';\n"],"names":["NavDivider","React","forwardRef","props","ref","state","useNavDivider_unstable","useNavDividerStyles_unstable","useCustomStyleHook_unstable","renderDivider_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;8BACgB;qCAEK;+BAEL;2CACM;AAMtC,MAAMA,aAAAA,WAAAA,GAAmDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQC,IAAAA,qCAAAA,EAAuBH,OAAOC;IAE5CG,IAAAA,uDAAAA,EAA6BF;IAC7BG,IAAAA,gDAAAA,EAA4B,gCAAgCH;IAE5D,OAAOI,IAAAA,oCAAAA,EAAuBJ;AAChC;AAEAL,WAAWU,WAAW,GAAG"}
@@ -10,6 +10,7 @@ Object.defineProperty(exports, "NavDrawer", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useNavDrawer = require("./useNavDrawer");
14
15
  const _renderNavDrawer = require("./renderNavDrawer");
15
16
  const _useNavDrawerStylesstyles = require("./useNavDrawerStyles.styles");
@@ -18,9 +19,7 @@ const NavDrawer = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
18
19
  const state = (0, _useNavDrawer.useNavDrawer_unstable)(props, ref);
19
20
  const contextValues = (0, _useNavContextValues.useNavContextValues_unstable)(state);
20
21
  (0, _useNavDrawerStylesstyles.useNavDrawerStyles_unstable)(state);
21
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
22
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
23
- // useCustomStyleHook_unstable('useNavDrawerStyles_unstable')(state);
22
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavDrawerStyles_unstable')(state);
24
23
  return (0, _renderNavDrawer.renderNavDrawer_unstable)(state, contextValues);
25
24
  });
26
25
  NavDrawer.displayName = 'NavDrawer';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawer/NavDrawer.tsx"],"sourcesContent":["import * as React from 'react';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useNavDrawer_unstable } from './useNavDrawer';\nimport { renderNavDrawer_unstable } from './renderNavDrawer';\nimport { useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport { NavState } from '../Nav/Nav.types';\n\nimport type { NavDrawerProps } from './NavDrawer.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * NavDrawer component - TODO: add more docs\n */\nexport const NavDrawer: ForwardRefComponent<NavDrawerProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawer_unstable(props, ref);\n const contextValues = useNavContextValues_unstable(state as NavState);\n\n useNavDrawerStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerStyles_unstable')(state);\n return renderNavDrawer_unstable(state, contextValues);\n});\n\nNavDrawer.displayName = 'NavDrawer';\n"],"names":["NavDrawer","React","forwardRef","props","ref","state","useNavDrawer_unstable","contextValues","useNavContextValues_unstable","useNavDrawerStyles_unstable","renderNavDrawer_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAcaA;;;eAAAA;;;;iEAdU;8BAEe;iCACG;0CACG;qCACC;AAStC,MAAMA,YAAAA,WAAAA,GAAiDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,QAAQC,IAAAA,mCAAAA,EAAsBH,OAAOC;IAC3C,MAAMG,gBAAgBC,IAAAA,iDAAAA,EAA6BH;IAEnDI,IAAAA,qDAAAA,EAA4BJ;IAC5B,8HAA8H;IAC9H,wGAAwG;IACxG,qEAAqE;IACrE,OAAOK,IAAAA,yCAAAA,EAAyBL,OAAOE;AACzC;AAEAP,UAAUW,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavDrawer/NavDrawer.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport { useNavDrawer_unstable } from './useNavDrawer';\nimport { renderNavDrawer_unstable } from './renderNavDrawer';\nimport { useNavDrawerStyles_unstable } from './useNavDrawerStyles.styles';\nimport { useNavContextValues_unstable } from '../useNavContextValues';\nimport { NavState } from '../Nav/Nav.types';\nimport type { NavDrawerProps } from './NavDrawer.types';\n\n/**\n * NavDrawer component - a component that provides a drawer for navigation items.\n */\nexport const NavDrawer: ForwardRefComponent<NavDrawerProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawer_unstable(props, ref);\n const contextValues = useNavContextValues_unstable(state as NavState);\n\n useNavDrawerStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerStyles_unstable')(state);\n\n return renderNavDrawer_unstable(state, contextValues);\n});\n\nNavDrawer.displayName = 'NavDrawer';\n"],"names":["NavDrawer","React","forwardRef","props","ref","state","useNavDrawer_unstable","contextValues","useNavContextValues_unstable","useNavDrawerStyles_unstable","useCustomStyleHook_unstable","renderNavDrawer_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAcaA;;;eAAAA;;;;iEAdU;qCACqB;8BAGN;iCACG;0CACG;qCACC;AAOtC,MAAMA,YAAAA,WAAAA,GAAiDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACrF,MAAMC,QAAQC,IAAAA,mCAAAA,EAAsBH,OAAOC;IAC3C,MAAMG,gBAAgBC,IAAAA,iDAAAA,EAA6BH;IAEnDI,IAAAA,qDAAAA,EAA4BJ;IAC5BK,IAAAA,gDAAAA,EAA4B,+BAA+BL;IAE3D,OAAOM,IAAAA,yCAAAA,EAAyBN,OAAOE;AACzC;AAEAP,UAAUY,WAAW,GAAG"}
@@ -11,14 +11,13 @@ Object.defineProperty(exports, "NavDrawerBody", {
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
13
  const _reactdrawer = require("@fluentui/react-drawer");
14
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
14
15
  const _useNavDrawerBody = require("./useNavDrawerBody");
15
16
  const _useNavDrawerBodyStylesstyles = require("./useNavDrawerBodyStyles.styles");
16
17
  const NavDrawerBody = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavDrawerBody.useNavDrawerBody_unstable)(props, ref);
18
19
  (0, _useNavDrawerBodyStylesstyles.useNavDrawerBodyStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavDrawerBodyStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavDrawerBodyStyles_unstable')(state);
22
21
  return (0, _reactdrawer.renderDrawerBody_unstable)(state);
23
22
  });
24
23
  NavDrawerBody.displayName = 'NavDrawerBody';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawerBody/NavDrawerBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDrawerBody_unstable } from '@fluentui/react-drawer';\nimport { useNavDrawerBody_unstable } from './useNavDrawerBody';\nimport { useNavDrawerBodyStyles_unstable } from './useNavDrawerBodyStyles.styles';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDrawerBodyProps } from './NavDrawerBody.types';\n\n/**\n * NavDrawerBody component\n */\nexport const NavDrawerBody: ForwardRefComponent<NavDrawerBodyProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerBody_unstable(props, ref);\n\n useNavDrawerBodyStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerBodyStyles_unstable')(state);\n return renderDrawerBody_unstable(state);\n});\n\nNavDrawerBody.displayName = 'NavDrawerBody';\n"],"names":["NavDrawerBody","React","forwardRef","props","ref","state","useNavDrawerBody_unstable","useNavDrawerBodyStyles_unstable","renderDrawerBody_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;6BACmB;kCACA;8CACM;AAQzC,MAAMA,gBAAAA,WAAAA,GAAyDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQC,IAAAA,2CAAAA,EAA0BH,OAAOC;IAE/CG,IAAAA,6DAAAA,EAAgCF;IAChC,8HAA8H;IAC9H,wGAAwG;IACxG,yEAAyE;IACzE,OAAOG,IAAAA,sCAAAA,EAA0BH;AACnC;AAEAL,cAAcS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavDrawerBody/NavDrawerBody.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDrawerBody_unstable } from '@fluentui/react-drawer';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavDrawerBody_unstable } from './useNavDrawerBody';\nimport { useNavDrawerBodyStyles_unstable } from './useNavDrawerBodyStyles.styles';\nimport type { NavDrawerBodyProps } from './NavDrawerBody.types';\n\n/**\n * NavDrawerBody component\n */\nexport const NavDrawerBody: ForwardRefComponent<NavDrawerBodyProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerBody_unstable(props, ref);\n\n useNavDrawerBodyStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerBodyStyles_unstable')(state);\n\n return renderDrawerBody_unstable(state);\n});\n\nNavDrawerBody.displayName = 'NavDrawerBody';\n"],"names":["NavDrawerBody","React","forwardRef","props","ref","state","useNavDrawerBody_unstable","useNavDrawerBodyStyles_unstable","useCustomStyleHook_unstable","renderDrawerBody_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;6BACmB;qCAEE;kCAEF;8CACM;AAMzC,MAAMA,gBAAAA,WAAAA,GAAyDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IAC7F,MAAMC,QAAQC,IAAAA,2CAAAA,EAA0BH,OAAOC;IAE/CG,IAAAA,6DAAAA,EAAgCF;IAChCG,IAAAA,gDAAAA,EAA4B,mCAAmCH;IAE/D,OAAOI,IAAAA,sCAAAA,EAA0BJ;AACnC;AAEAL,cAAcU,WAAW,GAAG"}
@@ -11,14 +11,13 @@ Object.defineProperty(exports, "NavDrawerFooter", {
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
13
  const _reactdrawer = require("@fluentui/react-drawer");
14
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
14
15
  const _useNavDrawerFooter = require("./useNavDrawerFooter");
15
16
  const _useNavDrawerFooterStylesstyles = require("./useNavDrawerFooterStyles.styles");
16
17
  const NavDrawerFooter = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavDrawerFooter.useNavDrawerFooter_unstable)(props, ref);
18
19
  (0, _useNavDrawerFooterStylesstyles.useNavDrawerFooterStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavDrawerFooterStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavDrawerFooterStyles_unstable')(state);
22
21
  return (0, _reactdrawer.renderDrawerFooter_unstable)(state);
23
22
  });
24
23
  NavDrawerFooter.displayName = 'NavDrawerFooter';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawerFooter/NavDrawerFooter.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDrawerFooter_unstable } from '@fluentui/react-drawer';\nimport { useNavDrawerFooter_unstable } from './useNavDrawerFooter';\nimport { useNavDrawerFooterStyles_unstable } from './useNavDrawerFooterStyles.styles';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDrawerFooterProps } from './NavDrawerFooter.types';\n\n/**\n * NavDrawerFooter component\n */\nexport const NavDrawerFooter: ForwardRefComponent<NavDrawerFooterProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerFooter_unstable(props, ref);\n\n useNavDrawerFooterStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerFooterStyles_unstable')(state);\n return renderDrawerFooter_unstable(state);\n});\n\nNavDrawerFooter.displayName = 'NavDrawerFooter';\n"],"names":["NavDrawerFooter","React","forwardRef","props","ref","state","useNavDrawerFooter_unstable","useNavDrawerFooterStyles_unstable","renderDrawerFooter_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;6BACqB;oCACA;gDACM;AAQ3C,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IAEjDG,IAAAA,iEAAAA,EAAkCF;IAClC,8HAA8H;IAC9H,wGAAwG;IACxG,2EAA2E;IAC3E,OAAOG,IAAAA,wCAAAA,EAA4BH;AACrC;AAEAL,gBAAgBS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavDrawerFooter/NavDrawerFooter.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDrawerFooter_unstable } from '@fluentui/react-drawer';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavDrawerFooter_unstable } from './useNavDrawerFooter';\nimport { useNavDrawerFooterStyles_unstable } from './useNavDrawerFooterStyles.styles';\nimport type { NavDrawerFooterProps } from './NavDrawerFooter.types';\n\n/**\n * NavDrawerFooter component\n */\nexport const NavDrawerFooter: ForwardRefComponent<NavDrawerFooterProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerFooter_unstable(props, ref);\n\n useNavDrawerFooterStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerFooterStyles_unstable')(state);\n\n return renderDrawerFooter_unstable(state);\n});\n\nNavDrawerFooter.displayName = 'NavDrawerFooter';\n"],"names":["NavDrawerFooter","React","forwardRef","props","ref","state","useNavDrawerFooter_unstable","useNavDrawerFooterStyles_unstable","useCustomStyleHook_unstable","renderDrawerFooter_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;6BACqB;qCAEA;oCAEA;gDACM;AAM3C,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IAEjDG,IAAAA,iEAAAA,EAAkCF;IAClCG,IAAAA,gDAAAA,EAA4B,qCAAqCH;IAEjE,OAAOI,IAAAA,wCAAAA,EAA4BJ;AACrC;AAEAL,gBAAgBU,WAAW,GAAG"}
@@ -10,15 +10,14 @@ Object.defineProperty(exports, "NavDrawerHeader", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
- const _useNavDrawerHeader = require("./useNavDrawerHeader");
14
- const _useNavDrawerHeaderStylesstyles = require("./useNavDrawerHeaderStyles.styles");
15
13
  const _reactdrawer = require("@fluentui/react-drawer");
14
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
15
+ const _useNavDrawerHeaderStylesstyles = require("./useNavDrawerHeaderStyles.styles");
16
+ const _useNavDrawerHeader = require("./useNavDrawerHeader");
16
17
  const NavDrawerHeader = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavDrawerHeader.useNavDrawerHeader_unstable)(props, ref);
18
19
  (0, _useNavDrawerHeaderStylesstyles.useNavDrawerHeaderStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavDrawerHeaderStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavDrawerHeaderStyles_unstable')(state);
22
21
  return (0, _reactdrawer.renderDrawerHeader_unstable)(state);
23
22
  });
24
23
  NavDrawerHeader.displayName = 'NavDrawerHeader';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavDrawerHeader/NavDrawerHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useNavDrawerHeader_unstable } from './useNavDrawerHeader';\nimport { useNavDrawerHeaderStyles_unstable } from './useNavDrawerHeaderStyles.styles';\nimport { renderDrawerHeader_unstable } from '@fluentui/react-drawer';\n\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport type { NavDrawerHeaderProps } from './NavDrawerHeader.types';\n\n/**\n * NavDrawerHeader component\n */\nexport const NavDrawerHeader: ForwardRefComponent<NavDrawerHeaderProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerHeader_unstable(props, ref);\n\n useNavDrawerHeaderStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavDrawerHeaderStyles_unstable')(state);\n return renderDrawerHeader_unstable(state);\n});\n\nNavDrawerHeader.displayName = 'NavDrawerHeader';\n"],"names":["NavDrawerHeader","React","forwardRef","props","ref","state","useNavDrawerHeader_unstable","useNavDrawerHeaderStyles_unstable","renderDrawerHeader_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;oCACqB;gDACM;6BACN;AAQrC,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IAEjDG,IAAAA,iEAAAA,EAAkCF;IAClC,8HAA8H;IAC9H,wGAAwG;IACxG,2EAA2E;IAC3E,OAAOG,IAAAA,wCAAAA,EAA4BH;AACrC;AAEAL,gBAAgBS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavDrawerHeader/NavDrawerHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport { renderDrawerHeader_unstable } from '@fluentui/react-drawer';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\nimport { useNavDrawerHeaderStyles_unstable } from './useNavDrawerHeaderStyles.styles';\nimport { useNavDrawerHeader_unstable } from './useNavDrawerHeader';\nimport type { NavDrawerHeaderProps } from './NavDrawerHeader.types';\n\n/**\n * NavDrawerHeader component\n */\nexport const NavDrawerHeader: ForwardRefComponent<NavDrawerHeaderProps> = React.forwardRef((props, ref) => {\n const state = useNavDrawerHeader_unstable(props, ref);\n\n useNavDrawerHeaderStyles_unstable(state);\n useCustomStyleHook_unstable('useNavDrawerHeaderStyles_unstable')(state);\n\n return renderDrawerHeader_unstable(state);\n});\n\nNavDrawerHeader.displayName = 'NavDrawerHeader';\n"],"names":["NavDrawerHeader","React","forwardRef","props","ref","state","useNavDrawerHeader_unstable","useNavDrawerHeaderStyles_unstable","useCustomStyleHook_unstable","renderDrawerHeader_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;6BACqB;qCACA;gDAGM;oCACN;AAMrC,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IAEjDG,IAAAA,iEAAAA,EAAkCF;IAClCG,IAAAA,gDAAAA,EAA4B,qCAAqCH;IAEjE,OAAOI,IAAAA,wCAAAA,EAA4BJ;AACrC;AAEAL,gBAAgBU,WAAW,GAAG"}
@@ -10,15 +10,14 @@ Object.defineProperty(exports, "NavItem", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useNavItem = require("./useNavItem");
14
15
  const _renderNavItem = require("./renderNavItem");
15
16
  const _useNavItemStylesstyles = require("./useNavItemStyles.styles");
16
17
  const NavItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavItem.useNavItem_unstable)(props, ref);
18
19
  (0, _useNavItemStylesstyles.useNavItemStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavItemStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavItemStyles_unstable')(state);
22
21
  return (0, _renderNavItem.renderNavItem_unstable)(state);
23
22
  });
24
23
  NavItem.displayName = 'NavItem';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavItem/NavItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useNavItem_unstable } from './useNavItem';\nimport { renderNavItem_unstable } from './renderNavItem';\nimport { useNavItemStyles_unstable } from './useNavItemStyles.styles';\nimport type { NavItemProps } from './NavItem.types';\n\n/**\n * NavItem component - TODO: add more docs\n */\nexport const NavItem: ForwardRefComponent<NavItemProps> = React.forwardRef((props, ref) => {\n const state = useNavItem_unstable(props, ref);\n\n useNavItemStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavItemStyles_unstable')(state);\n return renderNavItem_unstable(state);\n});\n\nNavItem.displayName = 'NavItem';\n"],"names":["NavItem","React","forwardRef","props","ref","state","useNavItem_unstable","useNavItemStyles_unstable","renderNavItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;4BAGa;+BACG;wCACG;AAMnC,MAAMA,UAAAA,WAAAA,GAA6CC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjF,MAAMC,QAAQC,IAAAA,+BAAAA,EAAoBH,OAAOC;IAEzCG,IAAAA,iDAAAA,EAA0BF;IAC1B,8HAA8H;IAC9H,wGAAwG;IACxG,mEAAmE;IACnE,OAAOG,IAAAA,qCAAAA,EAAuBH;AAChC;AAEAL,QAAQS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavItem/NavItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavItem_unstable } from './useNavItem';\nimport { renderNavItem_unstable } from './renderNavItem';\nimport { useNavItemStyles_unstable } from './useNavItemStyles.styles';\nimport type { NavItemProps } from './NavItem.types';\n\n/**\n * NavItem component - a single item in the navigation menu.\n */\nexport const NavItem: ForwardRefComponent<NavItemProps> = React.forwardRef((props, ref) => {\n const state = useNavItem_unstable(props, ref);\n\n useNavItemStyles_unstable(state);\n useCustomStyleHook_unstable('useNavItemStyles_unstable')(state);\n\n return renderNavItem_unstable(state);\n});\n\nNavItem.displayName = 'NavItem';\n"],"names":["NavItem","React","forwardRef","props","ref","state","useNavItem_unstable","useNavItemStyles_unstable","useCustomStyleHook_unstable","renderNavItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;qCAEqB;4BAER;+BACG;wCACG;AAMnC,MAAMA,UAAAA,WAAAA,GAA6CC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjF,MAAMC,QAAQC,IAAAA,+BAAAA,EAAoBH,OAAOC;IAEzCG,IAAAA,iDAAAA,EAA0BF;IAC1BG,IAAAA,gDAAAA,EAA4B,6BAA6BH;IAEzD,OAAOI,IAAAA,qCAAAA,EAAuBJ;AAChC;AAEAL,QAAQU,WAAW,GAAG"}
@@ -10,15 +10,14 @@ Object.defineProperty(exports, "NavSectionHeader", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useNavSectionHeader = require("./useNavSectionHeader");
14
15
  const _renderNavSectionHeader = require("./renderNavSectionHeader");
15
16
  const _useNavSectionHeaderStylesstyles = require("./useNavSectionHeaderStyles.styles");
16
17
  const NavSectionHeader = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavSectionHeader.useNavSectionHeader_unstable)(props, ref);
18
19
  (0, _useNavSectionHeaderStylesstyles.useNavSectionHeaderStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavSectionHeaderStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavSectionHeaderStyles_unstable')(state);
22
21
  return (0, _renderNavSectionHeader.renderNavSectionHeader_unstable)(state);
23
22
  });
24
23
  NavSectionHeader.displayName = 'NavSectionHeader';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavSectionHeader/NavSectionHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useNavSectionHeader_unstable } from './useNavSectionHeader';\nimport { renderNavSectionHeader_unstable } from './renderNavSectionHeader';\nimport { useNavSectionHeaderStyles_unstable } from './useNavSectionHeaderStyles.styles';\nimport type { NavSectionHeaderProps } from './NavSectionHeader.types';\n\n/**\n * NavSectionHeader component\n */\nexport const NavSectionHeader: ForwardRefComponent<NavSectionHeaderProps> = React.forwardRef((props, ref) => {\n const state = useNavSectionHeader_unstable(props, ref);\n\n useNavSectionHeaderStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavSectionHeaderStyles_unstable')(state);\n return renderNavSectionHeader_unstable(state);\n});\n\nNavSectionHeader.displayName = 'NavSectionHeader';\n"],"names":["NavSectionHeader","React","forwardRef","props","ref","state","useNavSectionHeader_unstable","useNavSectionHeaderStyles_unstable","renderNavSectionHeader_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAUaA;;;eAAAA;;;;iEAVU;qCAEsB;wCACG;iDACG;AAM5C,MAAMA,mBAAAA,WAAAA,GAA+DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACnG,MAAMC,QAAQC,IAAAA,iDAAAA,EAA6BH,OAAOC;IAElDG,IAAAA,mEAAAA,EAAmCF;IACnC,8HAA8H;IAC9H,wGAAwG;IACxG,4EAA4E;IAC5E,OAAOG,IAAAA,uDAAAA,EAAgCH;AACzC;AAEAL,iBAAiBS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavSectionHeader/NavSectionHeader.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavSectionHeader_unstable } from './useNavSectionHeader';\nimport { renderNavSectionHeader_unstable } from './renderNavSectionHeader';\nimport { useNavSectionHeaderStyles_unstable } from './useNavSectionHeaderStyles.styles';\nimport type { NavSectionHeaderProps } from './NavSectionHeader.types';\n\n/**\n * NavSectionHeader component\n */\nexport const NavSectionHeader: ForwardRefComponent<NavSectionHeaderProps> = React.forwardRef((props, ref) => {\n const state = useNavSectionHeader_unstable(props, ref);\n\n useNavSectionHeaderStyles_unstable(state);\n useCustomStyleHook_unstable('useNavSectionHeaderStyles_unstable')(state);\n\n return renderNavSectionHeader_unstable(state);\n});\n\nNavSectionHeader.displayName = 'NavSectionHeader';\n"],"names":["NavSectionHeader","React","forwardRef","props","ref","state","useNavSectionHeader_unstable","useNavSectionHeaderStyles_unstable","useCustomStyleHook_unstable","renderNavSectionHeader_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;qCAEqB;qCAEC;wCACG;iDACG;AAM5C,MAAMA,mBAAAA,WAAAA,GAA+DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACnG,MAAMC,QAAQC,IAAAA,iDAAAA,EAA6BH,OAAOC;IAElDG,IAAAA,mEAAAA,EAAmCF;IACnCG,IAAAA,gDAAAA,EAA4B,sCAAsCH;IAElE,OAAOI,IAAAA,uDAAAA,EAAgCJ;AACzC;AAEAL,iBAAiBU,WAAW,GAAG"}
@@ -10,15 +10,14 @@ Object.defineProperty(exports, "NavSubItem", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useNavSubItem = require("./useNavSubItem");
14
15
  const _renderNavSubItem = require("./renderNavSubItem");
15
16
  const _useNavSubItemStylesstyles = require("./useNavSubItemStyles.styles");
16
17
  const NavSubItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavSubItem.useNavSubItem_unstable)(props, ref);
18
19
  (0, _useNavSubItemStylesstyles.useNavSubItemStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavSubItemStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavSubItemStyles_unstable')(state);
22
21
  return (0, _renderNavSubItem.renderNavSubItem_unstable)(state);
23
22
  });
24
23
  NavSubItem.displayName = 'NavSubItem';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavSubItem/NavSubItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useNavSubItem_unstable } from './useNavSubItem';\nimport { renderNavSubItem_unstable } from './renderNavSubItem';\nimport { useNavSubItemStyles_unstable } from './useNavSubItemStyles.styles';\nimport type { NavSubItemProps } from './NavSubItem.types';\n\n/**\n * NavSubItem component - TODO: add more docs\n */\nexport const NavSubItem: ForwardRefComponent<NavSubItemProps> = React.forwardRef((props, ref) => {\n const state = useNavSubItem_unstable(props, ref);\n\n useNavSubItemStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavSubItemStyles_unstable')(state);\n return renderNavSubItem_unstable(state);\n});\n\nNavSubItem.displayName = 'NavSubItem';\n"],"names":["NavSubItem","React","forwardRef","props","ref","state","useNavSubItem_unstable","useNavSubItemStyles_unstable","renderNavSubItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;+BAGgB;kCACG;2CACG;AAMtC,MAAMA,aAAAA,WAAAA,GAAmDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQC,IAAAA,qCAAAA,EAAuBH,OAAOC;IAE5CG,IAAAA,uDAAAA,EAA6BF;IAC7B,8HAA8H;IAC9H,wGAAwG;IACxG,sEAAsE;IACtE,OAAOG,IAAAA,2CAAAA,EAA0BH;AACnC;AAEAL,WAAWS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavSubItem/NavSubItem.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavSubItem_unstable } from './useNavSubItem';\nimport { renderNavSubItem_unstable } from './renderNavSubItem';\nimport { useNavSubItemStyles_unstable } from './useNavSubItemStyles.styles';\nimport type { NavSubItemProps } from './NavSubItem.types';\n\n/**\n * NavSubItem component - a sub-item within a navigation structure.\n */\nexport const NavSubItem: ForwardRefComponent<NavSubItemProps> = React.forwardRef((props, ref) => {\n const state = useNavSubItem_unstable(props, ref);\n\n useNavSubItemStyles_unstable(state);\n useCustomStyleHook_unstable('useNavSubItemStyles_unstable')(state);\n\n return renderNavSubItem_unstable(state);\n});\n\nNavSubItem.displayName = 'NavSubItem';\n"],"names":["NavSubItem","React","forwardRef","props","ref","state","useNavSubItem_unstable","useNavSubItemStyles_unstable","useCustomStyleHook_unstable","renderNavSubItem_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;qCAEqB;+BAEL;kCACG;2CACG;AAMtC,MAAMA,aAAAA,WAAAA,GAAmDC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACvF,MAAMC,QAAQC,IAAAA,qCAAAA,EAAuBH,OAAOC;IAE5CG,IAAAA,uDAAAA,EAA6BF;IAC7BG,IAAAA,gDAAAA,EAA4B,gCAAgCH;IAE5D,OAAOI,IAAAA,2CAAAA,EAA0BJ;AACnC;AAEAL,WAAWU,WAAW,GAAG"}
@@ -10,15 +10,14 @@ Object.defineProperty(exports, "NavSubItemGroup", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useNavSubItemGroup = require("./useNavSubItemGroup");
14
15
  const _renderNavSubItemGroup = require("./renderNavSubItemGroup");
15
16
  const _useNavSubItemGroupStylesstyles = require("./useNavSubItemGroupStyles.styles");
16
17
  const NavSubItemGroup = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useNavSubItemGroup.useNavSubItemGroup_unstable)(props, ref);
18
19
  (0, _useNavSubItemGroupStylesstyles.useNavSubItemGroupStyles_unstable)(state);
19
- // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts
20
- // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md
21
- // useCustomStyleHook_unstable('useNavSubItemGroupStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useNavSubItemGroupStyles_unstable')(state);
22
21
  return (0, _renderNavSubItemGroup.renderNavSubItemGroup_unstable)(state);
23
22
  });
24
23
  NavSubItemGroup.displayName = 'NavSubItemGroup';
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/components/NavSubItemGroup/NavSubItemGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n// import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\nimport { useNavSubItemGroup_unstable } from './useNavSubItemGroup';\nimport { renderNavSubItemGroup_unstable } from './renderNavSubItemGroup';\nimport { useNavSubItemGroupStyles_unstable } from './useNavSubItemGroupStyles.styles';\nimport type { NavSubItemGroupProps } from './NavSubItemGroup.types';\n\n/**\n * NavSubItemGroup component - TODO: add more docs\n */\nexport const NavSubItemGroup: ForwardRefComponent<NavSubItemGroupProps> = React.forwardRef((props, ref) => {\n const state = useNavSubItemGroup_unstable(props, ref);\n\n useNavSubItemGroupStyles_unstable(state);\n // TODO update types in packages/react-components/react-shared-contexts/src/CustomStyleHooksContext/CustomStyleHooksContext.ts\n // https://github.com/microsoft/fluentui/blob/master/rfcs/react-components/convergence/custom-styling.md\n // useCustomStyleHook_unstable('useNavSubItemGroupStyles_unstable')(state);\n return renderNavSubItemGroup_unstable(state);\n});\n\nNavSubItemGroup.displayName = 'NavSubItemGroup';\n"],"names":["NavSubItemGroup","React","forwardRef","props","ref","state","useNavSubItemGroup_unstable","useNavSubItemGroupStyles_unstable","renderNavSubItemGroup_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAWaA;;;eAAAA;;;;iEAXU;oCAGqB;uCACG;gDACG;AAM3C,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IAEjDG,IAAAA,iEAAAA,EAAkCF;IAClC,8HAA8H;IAC9H,wGAAwG;IACxG,2EAA2E;IAC3E,OAAOG,IAAAA,qDAAAA,EAA+BH;AACxC;AAEAL,gBAAgBS,WAAW,GAAG"}
1
+ {"version":3,"sources":["../src/components/NavSubItemGroup/NavSubItemGroup.tsx"],"sourcesContent":["import * as React from 'react';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\nimport { useNavSubItemGroup_unstable } from './useNavSubItemGroup';\nimport { renderNavSubItemGroup_unstable } from './renderNavSubItemGroup';\nimport { useNavSubItemGroupStyles_unstable } from './useNavSubItemGroupStyles.styles';\nimport type { NavSubItemGroupProps } from './NavSubItemGroup.types';\n\n/**\n * NavSubItemGroup component - a group of sub-items within a navigation structure.\n */\nexport const NavSubItemGroup: ForwardRefComponent<NavSubItemGroupProps> = React.forwardRef((props, ref) => {\n const state = useNavSubItemGroup_unstable(props, ref);\n\n useNavSubItemGroupStyles_unstable(state);\n useCustomStyleHook_unstable('useNavSubItemGroupStyles_unstable')(state);\n\n return renderNavSubItemGroup_unstable(state);\n});\n\nNavSubItemGroup.displayName = 'NavSubItemGroup';\n"],"names":["NavSubItemGroup","React","forwardRef","props","ref","state","useNavSubItemGroup_unstable","useNavSubItemGroupStyles_unstable","useCustomStyleHook_unstable","renderNavSubItemGroup_unstable","displayName"],"rangeMappings":";;;;;;;;;;;;;;;;;;;;;;","mappings":";;;;+BAYaA;;;eAAAA;;;;iEAZU;qCAEqB;oCAEA;uCACG;gDACG;AAM3C,MAAMA,kBAAAA,WAAAA,GAA6DC,OAAMC,UAAU,CAAC,CAACC,OAAOC;IACjG,MAAMC,QAAQC,IAAAA,+CAAAA,EAA4BH,OAAOC;IAEjDG,IAAAA,iEAAAA,EAAkCF;IAClCG,IAAAA,gDAAAA,EAA4B,qCAAqCH;IAEjE,OAAOI,IAAAA,qDAAAA,EAA+BJ;AACxC;AAEAL,gBAAgBU,WAAW,GAAG"}
@@ -10,20 +10,14 @@ Object.defineProperty(exports, "SplitNavItem", {
10
10
  });
11
11
  const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
12
12
  const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
13
+ const _reactsharedcontexts = require("@fluentui/react-shared-contexts");
13
14
  const _useSplitNavItem = require("./useSplitNavItem");
14
15
  const _renderSplitNavItem = require("./renderSplitNavItem");
15
16
  const _useSplitNavItemStylesstyles = require("./useSplitNavItemStyles.styles");
16
17
  const SplitNavItem = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
17
18
  const state = (0, _useSplitNavItem.useSplitNavItem_unstable)(props, ref);
18
19
  (0, _useSplitNavItemStylesstyles.useSplitNavItemStyles_unstable)(state);
19
- /**
20
- * @see https://github.com/microsoft/fluentui/blob/master/docs/react-v9/contributing/rfcs/react-components/convergence/custom-styling.md
21
- *
22
- * TODO: 💡 once package will become stable (PR which will be part of promoting PREVIEW package to STABLE),
23
- * - uncomment this line
24
- * - update types {@link file://./../../../../../../../packages/react-components/react-shared-contexts/library/src/CustomStyleHooksContext/CustomStyleHooksContext.ts#CustomStyleHooksContextValue}
25
- * - verify that custom global style override works for your component
26
- */ // useCustomStyleHook_unstable('useSplitNavItemStyles_unstable')(state);
20
+ (0, _reactsharedcontexts.useCustomStyleHook_unstable)('useSplitNavItemStyles_unstable')(state);
27
21
  return (0, _renderSplitNavItem.renderSplitNavItem_unstable)(state);
28
22
  });
29
23
  SplitNavItem.displayName = 'SplitNavItem';