@instructure/ui-top-nav-bar 11.6.0 → 11.6.1-snapshot-129
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.
- package/CHANGELOG.md +57 -318
- package/es/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/index.js +2 -2
- package/es/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/index.js +2 -2
- package/es/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/index.js +2 -2
- package/es/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/index.js +6 -6
- package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/index.js +1 -1
- package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/index.js +4 -4
- package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/index.js +1 -1
- package/es/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/index.js +2 -2
- package/es/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/index.js +1 -1
- package/es/TopNavBar/{index.js → v1/index.js} +1 -1
- package/es/TopNavBar/{utils → v1/utils}/exampleHelpers.js +2 -2
- package/es/TopNavBar/{utils → v1/utils}/mapItemsForDrilldown.js +1 -1
- package/es/{index.js → exports/a.js} +8 -8
- package/lib/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/index.js +5 -5
- package/lib/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/index.js +3 -3
- package/lib/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/index.js +5 -5
- package/lib/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/index.js +13 -13
- package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/index.js +1 -1
- package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/index.js +13 -13
- package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/index.js +1 -1
- package/lib/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/index.js +4 -4
- package/lib/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/index.js +1 -1
- package/lib/TopNavBar/{index.js → v1/index.js} +2 -2
- package/lib/TopNavBar/{utils → v1/utils}/exampleHelpers.js +17 -17
- package/lib/TopNavBar/{utils → v1/utils}/mapItemsForDrilldown.js +5 -5
- package/lib/{index.js → exports/a.js} +9 -9
- package/package.json +55 -33
- package/src/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/index.tsx +2 -2
- package/src/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/index.tsx +2 -2
- package/src/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/props.ts +1 -1
- package/src/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/index.tsx +2 -2
- package/src/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/props.ts +3 -3
- package/src/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/index.tsx +13 -10
- package/src/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/props.ts +6 -6
- package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/index.tsx +1 -1
- package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/index.tsx +5 -5
- package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/props.ts +1 -1
- package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/index.tsx +1 -1
- package/src/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/index.tsx +2 -2
- package/src/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/index.tsx +1 -1
- package/src/TopNavBar/{index.tsx → v1/index.tsx} +1 -1
- package/src/TopNavBar/{utils → v1/utils}/exampleHelpers.tsx +2 -2
- package/src/TopNavBar/{utils → v1/utils}/mapItemsForDrilldown.tsx +2 -2
- package/src/{index.ts → exports/a.ts} +17 -17
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/TopNavBar/v1/TopNavBarActionItems/index.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarActionItems/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarActionItems/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarActionItems/theme.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarBrand/index.d.ts.map +1 -0
- package/types/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/props.d.ts +1 -1
- package/types/TopNavBar/v1/TopNavBarBrand/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarBrand/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarBrand/theme.d.ts.map +1 -0
- package/types/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/index.d.ts +2 -2
- package/types/TopNavBar/v1/TopNavBarBreadcrumb/index.d.ts.map +1 -0
- package/types/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/props.d.ts +3 -3
- package/types/TopNavBar/v1/TopNavBarBreadcrumb/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarBreadcrumb/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarContext.d.ts.map +1 -0
- package/types/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/index.d.ts +3 -3
- package/types/TopNavBar/v1/TopNavBarItem/index.d.ts.map +1 -0
- package/types/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/props.d.ts +6 -6
- package/types/TopNavBar/v1/TopNavBarItem/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarItem/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarItem/theme.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/DesktopLayout/index.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/DesktopLayout/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/DesktopLayout/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/DesktopLayout/theme.d.ts.map +1 -0
- package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/index.d.ts +2 -2
- package/types/TopNavBar/v1/TopNavBarLayout/SmallViewportLayout/index.d.ts.map +1 -0
- package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/props.d.ts +1 -1
- package/types/TopNavBar/v1/TopNavBarLayout/SmallViewportLayout/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/SmallViewportLayout/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/SmallViewportLayout/theme.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/index.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarLayout/theme.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarMenuItems/index.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarMenuItems/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarMenuItems/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarMenuItems/theme.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarUser/index.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarUser/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/TopNavBarUser/styles.d.ts.map +1 -0
- package/types/TopNavBar/v1/index.d.ts.map +1 -0
- package/types/TopNavBar/v1/props.d.ts.map +1 -0
- package/types/TopNavBar/v1/utils/exampleHelpers.d.ts.map +1 -0
- package/types/TopNavBar/v1/utils/exampleSvgFiles.d.ts.map +1 -0
- package/types/TopNavBar/{utils → v1/utils}/mapItemsForDrilldown.d.ts +1 -1
- package/types/TopNavBar/v1/utils/mapItemsForDrilldown.d.ts.map +1 -0
- package/types/exports/a.d.ts +18 -0
- package/types/exports/a.d.ts.map +1 -0
- package/types/TopNavBar/TopNavBarActionItems/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarActionItems/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarActionItems/styles.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarActionItems/theme.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarBrand/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarBrand/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarBrand/styles.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarBrand/theme.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarBreadcrumb/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarBreadcrumb/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarBreadcrumb/styles.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarContext.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarItem/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarItem/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarItem/styles.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarItem/theme.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/styles.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/DesktopLayout/theme.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/styles.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/SmallViewportLayout/theme.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarLayout/theme.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarMenuItems/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarMenuItems/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarMenuItems/styles.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarMenuItems/theme.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarUser/index.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarUser/props.d.ts.map +0 -1
- package/types/TopNavBar/TopNavBarUser/styles.d.ts.map +0 -1
- package/types/TopNavBar/index.d.ts.map +0 -1
- package/types/TopNavBar/props.d.ts.map +0 -1
- package/types/TopNavBar/utils/exampleHelpers.d.ts.map +0 -1
- package/types/TopNavBar/utils/exampleSvgFiles.d.ts.map +0 -1
- package/types/TopNavBar/utils/mapItemsForDrilldown.d.ts.map +0 -1
- package/types/index.d.ts +0 -18
- package/types/index.d.ts.map +0 -1
- /package/es/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/styles.js +0 -0
- /package/es/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/theme.js +0 -0
- /package/es/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/styles.js +0 -0
- /package/es/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/theme.js +0 -0
- /package/es/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/styles.js +0 -0
- /package/es/TopNavBar/{TopNavBarContext.js → v1/TopNavBarContext.js} +0 -0
- /package/es/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/styles.js +0 -0
- /package/es/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/theme.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/styles.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/theme.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/styles.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/theme.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/theme.js +0 -0
- /package/es/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/styles.js +0 -0
- /package/es/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/theme.js +0 -0
- /package/es/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/props.js +0 -0
- /package/es/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/styles.js +0 -0
- /package/es/TopNavBar/{props.js → v1/props.js} +0 -0
- /package/es/TopNavBar/{utils → v1/utils}/exampleSvgFiles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/styles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/theme.js +0 -0
- /package/lib/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/styles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/theme.js +0 -0
- /package/lib/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/styles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarContext.js → v1/TopNavBarContext.js} +0 -0
- /package/lib/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/styles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/theme.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/styles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/theme.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/styles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/theme.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/theme.js +0 -0
- /package/lib/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/styles.js +0 -0
- /package/lib/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/theme.js +0 -0
- /package/lib/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/props.js +0 -0
- /package/lib/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/styles.js +0 -0
- /package/lib/TopNavBar/{props.js → v1/props.js} +0 -0
- /package/lib/TopNavBar/{utils → v1/utils}/exampleSvgFiles.js +0 -0
- /package/src/TopNavBar/{README.md → v1/README.md} +0 -0
- /package/src/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/props.ts +0 -0
- /package/src/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/styles.ts +0 -0
- /package/src/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/theme.ts +0 -0
- /package/src/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/styles.ts +0 -0
- /package/src/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/theme.ts +0 -0
- /package/src/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/styles.ts +0 -0
- /package/src/TopNavBar/{TopNavBarContext.ts → v1/TopNavBarContext.ts} +0 -0
- /package/src/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/styles.ts +0 -0
- /package/src/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/theme.ts +0 -0
- /package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/props.ts +0 -0
- /package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/styles.ts +0 -0
- /package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/theme.ts +0 -0
- /package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/styles.ts +0 -0
- /package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/theme.ts +0 -0
- /package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/props.ts +0 -0
- /package/src/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/theme.ts +0 -0
- /package/src/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/props.ts +0 -0
- /package/src/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/styles.ts +0 -0
- /package/src/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/theme.ts +0 -0
- /package/src/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/props.ts +0 -0
- /package/src/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/styles.ts +0 -0
- /package/src/TopNavBar/{props.ts → v1/props.ts} +0 -0
- /package/src/TopNavBar/{utils → v1/utils}/exampleSvgFiles.tsx +0 -0
- /package/types/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/index.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/props.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/styles.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarActionItems → v1/TopNavBarActionItems}/theme.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/index.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/styles.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarBrand → v1/TopNavBarBrand}/theme.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarBreadcrumb → v1/TopNavBarBreadcrumb}/styles.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarContext.d.ts → v1/TopNavBarContext.d.ts} +0 -0
- /package/types/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/styles.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarItem → v1/TopNavBarItem}/theme.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/index.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/props.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/styles.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/DesktopLayout/theme.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/styles.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/SmallViewportLayout/theme.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/index.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/props.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarLayout → v1/TopNavBarLayout}/theme.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/index.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/props.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/styles.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarMenuItems → v1/TopNavBarMenuItems}/theme.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/index.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/props.d.ts +0 -0
- /package/types/TopNavBar/{TopNavBarUser → v1/TopNavBarUser}/styles.d.ts +0 -0
- /package/types/TopNavBar/{index.d.ts → v1/index.d.ts} +0 -0
- /package/types/TopNavBar/{props.d.ts → v1/props.d.ts} +0 -0
- /package/types/TopNavBar/{utils → v1/utils}/exampleHelpers.d.ts +0 -0
- /package/types/TopNavBar/{utils → v1/utils}/exampleSvgFiles.d.ts +0 -0
|
@@ -26,8 +26,8 @@ var _dec, _dec2, _class, _TopNavBarActionItems;
|
|
|
26
26
|
import { Children, Component } from 'react';
|
|
27
27
|
import { omitProps, passthroughProps, safeCloneElement, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
28
|
import { warn, error } from '@instructure/console';
|
|
29
|
-
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import { Drilldown } from '@instructure/ui-drilldown';
|
|
29
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
30
|
+
import { Drilldown } from '@instructure/ui-drilldown/v11_6';
|
|
31
31
|
import { IconMoreLine } from '@instructure/ui-icons';
|
|
32
32
|
import { TruncateList } from '@instructure/ui-truncate-list';
|
|
33
33
|
import { TopNavBarItem } from "../TopNavBarItem/index.js";
|
|
@@ -25,9 +25,9 @@ var _dec, _class, _TopNavBarBrand;
|
|
|
25
25
|
|
|
26
26
|
import { Component } from 'react';
|
|
27
27
|
import { getElementType, omitProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { withStyle } from '@instructure/emotion';
|
|
28
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
29
29
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
30
|
-
import { View } from '@instructure/ui-view';
|
|
30
|
+
import { View } from '@instructure/ui-view/v11_6';
|
|
31
31
|
import { TopNavBarContext } from "../TopNavBarContext.js";
|
|
32
32
|
import generateStyle from "./styles.js";
|
|
33
33
|
import generateComponentTheme from "./theme.js";
|
|
@@ -26,12 +26,12 @@ var _dec, _class, _TopNavBarBreadcrumb, _IconHamburgerLine;
|
|
|
26
26
|
import { Children, Component } from 'react';
|
|
27
27
|
import { allowedProps } from "./props.js";
|
|
28
28
|
import TopNavBar from "../index.js";
|
|
29
|
-
import { withStyle } from '@instructure/emotion';
|
|
29
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
30
30
|
import generateStyle from "../TopNavBarBreadcrumb/styles.js";
|
|
31
31
|
import { IconArrowOpenStartLine, IconHamburgerLine } from '@instructure/ui-icons';
|
|
32
32
|
import TopNavBarContext from "../TopNavBarContext.js";
|
|
33
33
|
import { error } from '@instructure/console';
|
|
34
|
-
import { Link } from '@instructure/ui-link';
|
|
34
|
+
import { Link } from '@instructure/ui-link/v11_6';
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
---
|
|
@@ -27,13 +27,13 @@ import { Component } from 'react';
|
|
|
27
27
|
import { callRenderProp, matchComponentTypes, omitProps, passthroughProps, safeCloneElement, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
28
|
import { createChainedFunction } from '@instructure/ui-utils';
|
|
29
29
|
import { warn, error } from '@instructure/console';
|
|
30
|
-
import { withStyle, InstUISettingsProvider } from '@instructure/emotion';
|
|
30
|
+
import { withStyleLegacy as withStyle, InstUISettingsProvider } from '@instructure/emotion';
|
|
31
31
|
import { IconArrowOpenDownSolid, IconArrowOpenUpSolid } from '@instructure/ui-icons';
|
|
32
|
-
import { Avatar } from '@instructure/ui-avatar';
|
|
33
|
-
import { BaseButton } from '@instructure/ui-buttons';
|
|
34
|
-
import { Tooltip } from '@instructure/ui-tooltip';
|
|
35
|
-
import { Popover } from '@instructure/ui-popover';
|
|
36
|
-
import { Drilldown } from '@instructure/ui-drilldown';
|
|
32
|
+
import { Avatar } from '@instructure/ui-avatar/v11_6';
|
|
33
|
+
import { BaseButton } from '@instructure/ui-buttons/v11_6';
|
|
34
|
+
import { Tooltip } from '@instructure/ui-tooltip/v11_6';
|
|
35
|
+
import { Popover } from '@instructure/ui-popover/v11_6';
|
|
36
|
+
import { Drilldown } from '@instructure/ui-drilldown/v11_6';
|
|
37
37
|
import { ScreenReaderContent } from '@instructure/ui-a11y-content';
|
|
38
38
|
import { TopNavBarContext } from "../TopNavBarContext.js";
|
|
39
39
|
import generateStyle from "./styles.js";
|
|
@@ -25,7 +25,7 @@ var _dec, _class, _TopNavBarDesktopLayout;
|
|
|
25
25
|
|
|
26
26
|
import { Children, Component } from 'react';
|
|
27
27
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
28
|
-
import { withStyle } from '@instructure/emotion';
|
|
28
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
29
29
|
import { TopNavBarContext } from "../../TopNavBarContext.js";
|
|
30
30
|
import generateStyle from "./styles.js";
|
|
31
31
|
import generateComponentTheme from "./theme.js";
|
|
@@ -28,12 +28,12 @@ import { omitProps, withDeterministicId, callRenderProp } from '@instructure/ui-
|
|
|
28
28
|
import { px } from '@instructure/ui-utils';
|
|
29
29
|
import { warn } from '@instructure/console';
|
|
30
30
|
import { getBoundingClientRect, requestAnimationFrame } from '@instructure/ui-dom-utils';
|
|
31
|
-
import { withStyle, Global } from '@instructure/emotion';
|
|
32
|
-
import { Tray } from '@instructure/ui-tray';
|
|
31
|
+
import { withStyleLegacy as withStyle, Global } from '@instructure/emotion';
|
|
32
|
+
import { Tray } from '@instructure/ui-tray/v11_6';
|
|
33
33
|
import { IconXLine, IconHamburgerLine, IconArrowOpenDownSolid, IconArrowOpenUpSolid } from '@instructure/ui-icons';
|
|
34
|
-
import { Avatar } from '@instructure/ui-avatar';
|
|
34
|
+
import { Avatar } from '@instructure/ui-avatar/v11_6';
|
|
35
35
|
import { Dialog } from '@instructure/ui-dialog';
|
|
36
|
-
import { Drilldown } from '@instructure/ui-drilldown';
|
|
36
|
+
import { Drilldown } from '@instructure/ui-drilldown/v11_6';
|
|
37
37
|
import { TopNavBarItem } from "../../TopNavBarItem/index.js";
|
|
38
38
|
import { mapItemsForDrilldown, renderMappedItemDrilldownSubpages, renderMappedItemsAsDrilldownOptions } from "../../utils/mapItemsForDrilldown.js";
|
|
39
39
|
import { TopNavBarContext } from "../../TopNavBarContext.js";
|
|
@@ -26,7 +26,7 @@ var _dec, _class, _TopNavBarLayout;
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
import { Component } from 'react';
|
|
29
|
-
import { withStyle } from '@instructure/emotion';
|
|
29
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
30
30
|
import { TopNavBarContext } from "../TopNavBarContext.js";
|
|
31
31
|
import generateComponentTheme from "./theme.js";
|
|
32
32
|
import { TopNavBarSmallViewportLayout } from "./SmallViewportLayout/index.js";
|
|
@@ -26,8 +26,8 @@ var _dec, _dec2, _class, _TopNavBarMenuItems, _span;
|
|
|
26
26
|
import { Children, Component } from 'react';
|
|
27
27
|
import { omitProps, safeCloneElement, withDeterministicId } from '@instructure/ui-react-utils';
|
|
28
28
|
import { warn, error } from '@instructure/console';
|
|
29
|
-
import { withStyle } from '@instructure/emotion';
|
|
30
|
-
import { Drilldown } from '@instructure/ui-drilldown';
|
|
29
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
30
|
+
import { Drilldown } from '@instructure/ui-drilldown/v11_6';
|
|
31
31
|
import { TruncateList } from '@instructure/ui-truncate-list';
|
|
32
32
|
import { TopNavBarContext } from "../TopNavBarContext.js";
|
|
33
33
|
import { TopNavBarItem } from "../TopNavBarItem/index.js";
|
|
@@ -26,7 +26,7 @@ var _dec, _class, _TopNavBarUser;
|
|
|
26
26
|
import { Component, Children } from 'react';
|
|
27
27
|
import { error } from '@instructure/console';
|
|
28
28
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
29
|
-
import { withStyle } from '@instructure/emotion';
|
|
29
|
+
import { withStyleLegacy as withStyle } from '@instructure/emotion';
|
|
30
30
|
import { TopNavBarContext } from "../TopNavBarContext.js";
|
|
31
31
|
import generateStyle from "./styles.js";
|
|
32
32
|
import { allowedProps } from "./props.js";
|
|
@@ -26,7 +26,7 @@ import { Component } from 'react';
|
|
|
26
26
|
import { error } from '@instructure/console';
|
|
27
27
|
import { px } from '@instructure/ui-utils';
|
|
28
28
|
import { matchComponentTypes } from '@instructure/ui-react-utils';
|
|
29
|
-
import { Responsive } from '@instructure/ui-responsive';
|
|
29
|
+
import { Responsive } from '@instructure/ui-responsive/v11_6';
|
|
30
30
|
import { TopNavBarActionItems } from "./TopNavBarActionItems/index.js";
|
|
31
31
|
import { TopNavBarBrand } from "./TopNavBarBrand/index.js";
|
|
32
32
|
import { TopNavBarItem } from "./TopNavBarItem/index.js";
|
|
@@ -23,12 +23,12 @@ var _TopNavBar$Breadcrumb;
|
|
|
23
23
|
* SOFTWARE.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
-
import { Drilldown } from '@instructure/ui-drilldown';
|
|
26
|
+
import { Drilldown } from '@instructure/ui-drilldown/v11_6';
|
|
27
27
|
import { IconQuestionLine, IconAlertsLine, IconConfigureLine, IconSearchLine, IconDiscussionLine, IconDashboardLine } from '@instructure/ui-icons';
|
|
28
28
|
import { TopNavBarContext } from "../TopNavBarContext.js";
|
|
29
29
|
import { TopNavBar } from "../index.js";
|
|
30
30
|
import { elevateIcon } from "./exampleSvgFiles.js";
|
|
31
|
-
import { Breadcrumb } from '@instructure/ui-breadcrumb';
|
|
31
|
+
import { Breadcrumb } from '@instructure/ui-breadcrumb/v11_6';
|
|
32
32
|
import { jsx as _jsx, jsxs as _jsxs } from "@emotion/react/jsx-runtime";
|
|
33
33
|
const avatarExample = {
|
|
34
34
|
avatarName: 'User Name',
|
|
@@ -26,7 +26,7 @@ import { Children } from 'react';
|
|
|
26
26
|
import { warn } from '@instructure/console';
|
|
27
27
|
import { generateId } from '@instructure/ui-utils';
|
|
28
28
|
import { matchComponentTypes } from '@instructure/ui-react-utils';
|
|
29
|
-
import { Drilldown } from '@instructure/ui-drilldown';
|
|
29
|
+
import { Drilldown } from '@instructure/ui-drilldown/v11_6';
|
|
30
30
|
import { TopNavBarItem } from "../TopNavBarItem/index.js";
|
|
31
31
|
import { jsx as _jsx } from "@emotion/react/jsx-runtime";
|
|
32
32
|
import { createElement as _createElement } from "@emotion/react";
|
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
22
|
* SOFTWARE.
|
|
23
23
|
*/
|
|
24
|
-
export { TopNavBar } from "
|
|
25
|
-
export { TopNavBarActionItems } from "
|
|
26
|
-
export { TopNavBarBrand } from "
|
|
27
|
-
export { TopNavBarBreadcrumb } from "
|
|
28
|
-
export { TopNavBarItem } from "
|
|
29
|
-
export { TopNavBarLayout } from "
|
|
30
|
-
export { TopNavBarMenuItems } from "
|
|
31
|
-
export { TopNavBarUser } from "
|
|
24
|
+
export { TopNavBar } from "../TopNavBar/v1/index.js";
|
|
25
|
+
export { TopNavBarActionItems } from "../TopNavBar/v1/TopNavBarActionItems/index.js";
|
|
26
|
+
export { TopNavBarBrand } from "../TopNavBar/v1/TopNavBarBrand/index.js";
|
|
27
|
+
export { TopNavBarBreadcrumb } from "../TopNavBar/v1/TopNavBarBreadcrumb/index.js";
|
|
28
|
+
export { TopNavBarItem } from "../TopNavBar/v1/TopNavBarItem/index.js";
|
|
29
|
+
export { TopNavBarLayout } from "../TopNavBar/v1/TopNavBarLayout/index.js";
|
|
30
|
+
export { TopNavBarMenuItems } from "../TopNavBar/v1/TopNavBarMenuItems/index.js";
|
|
31
|
+
export { TopNavBarUser } from "../TopNavBar/v1/TopNavBarUser/index.js";
|
|
@@ -12,8 +12,8 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
12
12
|
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
13
13
|
var _console = require("@instructure/console");
|
|
14
14
|
var _emotion = require("@instructure/emotion");
|
|
15
|
-
var
|
|
16
|
-
var _IconMoreLine = require("@instructure/ui-icons/lib/IconMoreLine.js");
|
|
15
|
+
var _v11_ = require("@instructure/ui-drilldown/v11_6");
|
|
16
|
+
var _IconMoreLine = require("@instructure/ui-icons/lib/generated/IconMoreLine.js");
|
|
17
17
|
var _TruncateList = require("@instructure/ui-truncate-list/lib/TruncateList");
|
|
18
18
|
var _TopNavBarItem = require("../TopNavBarItem");
|
|
19
19
|
var _mapItemsForDrilldown = require("../utils/mapItemsForDrilldown");
|
|
@@ -54,7 +54,7 @@ id: TopNavBar.ActionItems
|
|
|
54
54
|
---
|
|
55
55
|
@module TopNavBarActionItems
|
|
56
56
|
**/
|
|
57
|
-
let TopNavBarActionItems = exports.TopNavBarActionItems = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.
|
|
57
|
+
let TopNavBarActionItems = exports.TopNavBarActionItems = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_TopNavBarActionItems = class TopNavBarActionItems extends _react.Component {
|
|
58
58
|
constructor(props) {
|
|
59
59
|
super(props);
|
|
60
60
|
this.ref = null;
|
|
@@ -147,10 +147,10 @@ let TopNavBarActionItems = exports.TopNavBarActionItems = (_dec = (0, _withDeter
|
|
|
147
147
|
variant: "icon",
|
|
148
148
|
tooltip: tooltip,
|
|
149
149
|
showSubmenuChevron: false,
|
|
150
|
-
renderSubmenu: (0, _jsxRuntime.jsx)(
|
|
150
|
+
renderSubmenu: (0, _jsxRuntime.jsx)(_v11_.Drilldown, {
|
|
151
151
|
shouldSetAriaExpanded: false,
|
|
152
152
|
rootPageId: this._hiddenActionItemsMenuId,
|
|
153
|
-
children: [(0, _jsxRuntime.jsx)(
|
|
153
|
+
children: [(0, _jsxRuntime.jsx)(_v11_.Drilldown.Page, {
|
|
154
154
|
id: this._hiddenActionItemsMenuId,
|
|
155
155
|
children: options
|
|
156
156
|
}, this._hiddenActionItemsMenuId), ...subPages]
|
|
@@ -10,7 +10,7 @@ var _getElementType = require("@instructure/ui-react-utils/lib/getElementType.js
|
|
|
10
10
|
var _omitProps = require("@instructure/ui-react-utils/lib/omitProps.js");
|
|
11
11
|
var _emotion = require("@instructure/emotion");
|
|
12
12
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
13
|
-
var
|
|
13
|
+
var _v11_ = require("@instructure/ui-view/v11_6");
|
|
14
14
|
var _TopNavBarContext = require("../TopNavBarContext");
|
|
15
15
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
16
16
|
var _theme = _interopRequireDefault(require("./theme"));
|
|
@@ -47,7 +47,7 @@ id: TopNavBar.Brand
|
|
|
47
47
|
---
|
|
48
48
|
@module TopNavBarBrand
|
|
49
49
|
**/
|
|
50
|
-
let TopNavBarBrand = exports.TopNavBarBrand = (_dec = (0, _emotion.
|
|
50
|
+
let TopNavBarBrand = exports.TopNavBarBrand = (_dec = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = (_TopNavBarBrand = class TopNavBarBrand extends _react.Component {
|
|
51
51
|
constructor(...args) {
|
|
52
52
|
super(...args);
|
|
53
53
|
this.ref = null;
|
|
@@ -89,7 +89,7 @@ let TopNavBarBrand = exports.TopNavBarBrand = (_dec = (0, _emotion.withStyle)(_s
|
|
|
89
89
|
ref: this.handleRef,
|
|
90
90
|
css: styles === null || styles === void 0 ? void 0 : styles.topNavBarBrand,
|
|
91
91
|
"data-cid": "TopNavBarBrand",
|
|
92
|
-
children: renderIcon && (0, _jsxRuntime.jsxs)(
|
|
92
|
+
children: renderIcon && (0, _jsxRuntime.jsxs)(_v11_.View, {
|
|
93
93
|
...(0, _omitProps.omitProps)(this.props, _props.allowedProps),
|
|
94
94
|
css: styles === null || styles === void 0 ? void 0 : styles.container,
|
|
95
95
|
as: ElementType,
|
|
@@ -10,11 +10,11 @@ var _props = require("./props");
|
|
|
10
10
|
var _index = _interopRequireDefault(require("../index"));
|
|
11
11
|
var _emotion = require("@instructure/emotion");
|
|
12
12
|
var _styles = _interopRequireDefault(require("../TopNavBarBreadcrumb/styles"));
|
|
13
|
-
var _IconArrowOpenStartLine = require("@instructure/ui-icons/lib/IconArrowOpenStartLine.js");
|
|
14
|
-
var _IconHamburgerLine2 = require("@instructure/ui-icons/lib/IconHamburgerLine.js");
|
|
13
|
+
var _IconArrowOpenStartLine = require("@instructure/ui-icons/lib/generated/IconArrowOpenStartLine.js");
|
|
14
|
+
var _IconHamburgerLine2 = require("@instructure/ui-icons/lib/generated/IconHamburgerLine.js");
|
|
15
15
|
var _TopNavBarContext = _interopRequireDefault(require("../TopNavBarContext"));
|
|
16
16
|
var _console = require("@instructure/console");
|
|
17
|
-
var
|
|
17
|
+
var _v11_ = require("@instructure/ui-link/v11_6");
|
|
18
18
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
19
19
|
var _dec, _class, _TopNavBarBreadcrumb, _IconHamburgerLine;
|
|
20
20
|
/*
|
|
@@ -47,7 +47,7 @@ id: TopNavBar.Breadcrumb
|
|
|
47
47
|
---
|
|
48
48
|
@module TopNavBarBreadcrumb
|
|
49
49
|
**/
|
|
50
|
-
let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.
|
|
50
|
+
let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.withStyleLegacy)(_styles.default, null), _dec(_class = (_TopNavBarBreadcrumb = class TopNavBarBreadcrumb extends _react.Component {
|
|
51
51
|
constructor(...args) {
|
|
52
52
|
super(...args);
|
|
53
53
|
this.ref = null;
|
|
@@ -112,7 +112,7 @@ let TopNavBarBreadcrumb = exports.TopNavBarBreadcrumb = (_dec = (0, _emotion.wit
|
|
|
112
112
|
"data-cid": "TopNavBarBreadcrumb",
|
|
113
113
|
children: (0, _jsxRuntime.jsx)("div", {
|
|
114
114
|
css: styles === null || styles === void 0 ? void 0 : styles.linkContainer,
|
|
115
|
-
children: lastButOneLink && (0, _jsxRuntime.jsx)(
|
|
115
|
+
children: lastButOneLink && (0, _jsxRuntime.jsx)(_v11_.Link, {
|
|
116
116
|
href: lastButOneLink.props.href,
|
|
117
117
|
isWithinText: false,
|
|
118
118
|
renderIcon: _IconArrowOpenStartLine.IconArrowOpenStartLine,
|
|
@@ -15,13 +15,13 @@ var _withDeterministicId = require("@instructure/ui-react-utils/lib/Deterministi
|
|
|
15
15
|
var _createChainedFunction = require("@instructure/ui-utils/lib/createChainedFunction.js");
|
|
16
16
|
var _console = require("@instructure/console");
|
|
17
17
|
var _emotion = require("@instructure/emotion");
|
|
18
|
-
var _IconArrowOpenDownSolid = require("@instructure/ui-icons/lib/IconArrowOpenDownSolid.js");
|
|
19
|
-
var _IconArrowOpenUpSolid2 = require("@instructure/ui-icons/lib/IconArrowOpenUpSolid.js");
|
|
20
|
-
var
|
|
21
|
-
var
|
|
22
|
-
var
|
|
23
|
-
var
|
|
24
|
-
var
|
|
18
|
+
var _IconArrowOpenDownSolid = require("@instructure/ui-icons/lib/generated/IconArrowOpenDownSolid.js");
|
|
19
|
+
var _IconArrowOpenUpSolid2 = require("@instructure/ui-icons/lib/generated/IconArrowOpenUpSolid.js");
|
|
20
|
+
var _v11_ = require("@instructure/ui-avatar/v11_6");
|
|
21
|
+
var _v11_2 = require("@instructure/ui-buttons/v11_6");
|
|
22
|
+
var _v11_3 = require("@instructure/ui-tooltip/v11_6");
|
|
23
|
+
var _v11_4 = require("@instructure/ui-popover/v11_6");
|
|
24
|
+
var _v11_5 = require("@instructure/ui-drilldown/v11_6");
|
|
25
25
|
var _ScreenReaderContent = require("@instructure/ui-a11y-content/lib/ScreenReaderContent");
|
|
26
26
|
var _TopNavBarContext = require("../TopNavBarContext");
|
|
27
27
|
var _styles = _interopRequireDefault(require("./styles"));
|
|
@@ -63,7 +63,7 @@ id: TopNavBar.Item
|
|
|
63
63
|
---
|
|
64
64
|
@module TopNavBarItem
|
|
65
65
|
**/
|
|
66
|
-
let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.
|
|
66
|
+
let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_TopNavBarItem = class TopNavBarItem extends _react.Component {
|
|
67
67
|
constructor(props) {
|
|
68
68
|
super(props);
|
|
69
69
|
this.ref = null;
|
|
@@ -157,7 +157,7 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
157
157
|
}
|
|
158
158
|
get shouldRenderSubmenu() {
|
|
159
159
|
const renderSubmenu = this.props.renderSubmenu;
|
|
160
|
-
return !!renderSubmenu && (0, _matchComponentTypes.matchComponentTypes)(renderSubmenu, [
|
|
160
|
+
return !!renderSubmenu && (0, _matchComponentTypes.matchComponentTypes)(renderSubmenu, [_v11_5.Drilldown]);
|
|
161
161
|
}
|
|
162
162
|
get shouldRenderPopover() {
|
|
163
163
|
const _this$props3 = this.props,
|
|
@@ -366,7 +366,7 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
366
366
|
children: content
|
|
367
367
|
});
|
|
368
368
|
}
|
|
369
|
-
const button = (0, _jsxRuntime.jsx)(
|
|
369
|
+
const button = (0, _jsxRuntime.jsx)(_v11_2.BaseButton, {
|
|
370
370
|
...itemProps,
|
|
371
371
|
...(0, _passthroughProps.passthroughProps)((0, _omitProps.omitProps)(this.props, _props.allowedProps)),
|
|
372
372
|
children: this.isIconVariant && !this.submenuIcon ? content : (0, _jsxRuntime.jsxs)("div", {
|
|
@@ -418,7 +418,7 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
},
|
|
421
|
-
children: (0, _jsxRuntime.jsx)(
|
|
421
|
+
children: (0, _jsxRuntime.jsx)(_v11_3.Tooltip, {
|
|
422
422
|
...tooltipProps,
|
|
423
423
|
renderTip: contentAndTooltipIdentical ? tipContent : (0, _jsxRuntime.jsx)("div", {
|
|
424
424
|
id: this._tooltipContentId,
|
|
@@ -450,7 +450,7 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
450
450
|
if (!label) {
|
|
451
451
|
(0, _console.warn)(false, `Please supply a label for the avatar with either the "renderAvatar.avatarAlt" or the "children" (as string) prop. It is needed for screen reader support, but missing on the item with the id: "${id}".`);
|
|
452
452
|
}
|
|
453
|
-
return avatarName ? (0, _jsxRuntime.jsx)(
|
|
453
|
+
return avatarName ? (0, _jsxRuntime.jsx)(_v11_.Avatar, {
|
|
454
454
|
name: avatarName,
|
|
455
455
|
src: avatarSrc,
|
|
456
456
|
alt: label,
|
|
@@ -541,7 +541,7 @@ let TopNavBarItem = exports.TopNavBarItem = (_dec = (0, _withDeterministicId.wit
|
|
|
541
541
|
// is set on `get itemProps()`
|
|
542
542
|
shouldSetAriaExpanded: false
|
|
543
543
|
};
|
|
544
|
-
return (0, _jsxRuntime.jsx)(
|
|
544
|
+
return (0, _jsxRuntime.jsx)(_v11_4.Popover, {
|
|
545
545
|
...popoverProps,
|
|
546
546
|
children: customPopoverConfig.children
|
|
547
547
|
});
|
|
@@ -42,7 +42,7 @@ var _dec, _class, _TopNavBarDesktopLayout;
|
|
|
42
42
|
private: true
|
|
43
43
|
---
|
|
44
44
|
**/
|
|
45
|
-
let TopNavBarDesktopLayout = exports.TopNavBarDesktopLayout = (_dec = (0, _emotion.
|
|
45
|
+
let TopNavBarDesktopLayout = exports.TopNavBarDesktopLayout = (_dec = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = (_TopNavBarDesktopLayout = class TopNavBarDesktopLayout extends _react.Component {
|
|
46
46
|
constructor(...args) {
|
|
47
47
|
super(...args);
|
|
48
48
|
this.ref = null;
|
|
@@ -14,14 +14,14 @@ var _console = require("@instructure/console");
|
|
|
14
14
|
var _getBoundingClientRect = require("@instructure/ui-dom-utils/lib/getBoundingClientRect.js");
|
|
15
15
|
var _requestAnimationFrame = require("@instructure/ui-dom-utils/lib/requestAnimationFrame.js");
|
|
16
16
|
var _emotion = require("@instructure/emotion");
|
|
17
|
-
var
|
|
18
|
-
var _IconXLine2 = require("@instructure/ui-icons/lib/IconXLine.js");
|
|
19
|
-
var _IconHamburgerLine2 = require("@instructure/ui-icons/lib/IconHamburgerLine.js");
|
|
20
|
-
var _IconArrowOpenDownSolid = require("@instructure/ui-icons/lib/IconArrowOpenDownSolid.js");
|
|
21
|
-
var _IconArrowOpenUpSolid = require("@instructure/ui-icons/lib/IconArrowOpenUpSolid.js");
|
|
22
|
-
var
|
|
17
|
+
var _v11_ = require("@instructure/ui-tray/v11_6");
|
|
18
|
+
var _IconXLine2 = require("@instructure/ui-icons/lib/generated/IconXLine.js");
|
|
19
|
+
var _IconHamburgerLine2 = require("@instructure/ui-icons/lib/generated/IconHamburgerLine.js");
|
|
20
|
+
var _IconArrowOpenDownSolid = require("@instructure/ui-icons/lib/generated/IconArrowOpenDownSolid.js");
|
|
21
|
+
var _IconArrowOpenUpSolid = require("@instructure/ui-icons/lib/generated/IconArrowOpenUpSolid.js");
|
|
22
|
+
var _v11_2 = require("@instructure/ui-avatar/v11_6");
|
|
23
23
|
var _Dialog = require("@instructure/ui-dialog/lib/Dialog");
|
|
24
|
-
var
|
|
24
|
+
var _v11_3 = require("@instructure/ui-drilldown/v11_6");
|
|
25
25
|
var _TopNavBarItem = require("../../TopNavBarItem");
|
|
26
26
|
var _mapItemsForDrilldown = require("../../utils/mapItemsForDrilldown");
|
|
27
27
|
var _TopNavBarContext = require("../../TopNavBarContext");
|
|
@@ -58,7 +58,7 @@ var _dec, _dec2, _class, _TopNavBarSmallViewportLayout, _IconXLine, _IconHamburg
|
|
|
58
58
|
private: true
|
|
59
59
|
---
|
|
60
60
|
**/
|
|
61
|
-
let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.
|
|
61
|
+
let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_TopNavBarSmallViewportLayout = class TopNavBarSmallViewportLayout extends _react.Component {
|
|
62
62
|
constructor(props) {
|
|
63
63
|
var _props$styles;
|
|
64
64
|
super(props);
|
|
@@ -93,7 +93,7 @@ let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec
|
|
|
93
93
|
const label = avatarAlt || (typeof children === 'string' ? children : void 0);
|
|
94
94
|
optionStyle = styles === null || styles === void 0 ? void 0 : styles.dropdownMenuOptionWithAvatar;
|
|
95
95
|
content = (0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
96
|
-
children: [(0, _jsxRuntime.jsx)(
|
|
96
|
+
children: [(0, _jsxRuntime.jsx)(_v11_2.Avatar, {
|
|
97
97
|
name: avatarName,
|
|
98
98
|
src: avatarSrc,
|
|
99
99
|
alt: label,
|
|
@@ -314,7 +314,7 @@ let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec
|
|
|
314
314
|
if (hasUser) {
|
|
315
315
|
pageChildren = (0, _mapItemsForDrilldown.renderMappedItemsAsDrilldownOptions)(this.mappedUserOptions);
|
|
316
316
|
if (hasMenuItems) {
|
|
317
|
-
pageChildren.push((0, _jsxRuntime.jsx)(
|
|
317
|
+
pageChildren.push((0, _jsxRuntime.jsx)(_v11_3.Drilldown.Separator, {
|
|
318
318
|
id: this._separatorId
|
|
319
319
|
}, this._separatorId));
|
|
320
320
|
}
|
|
@@ -328,7 +328,7 @@ let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec
|
|
|
328
328
|
const _this$props5 = this.props,
|
|
329
329
|
dropdownMenuLabel = _this$props5.dropdownMenuLabel,
|
|
330
330
|
onDropdownMenuSelect = _this$props5.onDropdownMenuSelect;
|
|
331
|
-
return (0, _jsxRuntime.jsx)(
|
|
331
|
+
return (0, _jsxRuntime.jsx)(_v11_3.Drilldown, {
|
|
332
332
|
ref: el => {
|
|
333
333
|
this._drilldownRef = el;
|
|
334
334
|
},
|
|
@@ -345,7 +345,7 @@ let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec
|
|
|
345
345
|
this.toggleDropdownMenu();
|
|
346
346
|
}
|
|
347
347
|
},
|
|
348
|
-
children: [(0, _jsxRuntime.jsx)(
|
|
348
|
+
children: [(0, _jsxRuntime.jsx)(_v11_3.Drilldown.Page, {
|
|
349
349
|
id: this._menuId,
|
|
350
350
|
children: this.dropdownMenuContent
|
|
351
351
|
}, this._menuId), ...this.extractDrilldownSubpages]
|
|
@@ -356,7 +356,7 @@ let TopNavBarSmallViewportLayout = exports.TopNavBarSmallViewportLayout = (_dec
|
|
|
356
356
|
if (!this.hasSubmenu) {
|
|
357
357
|
return null;
|
|
358
358
|
}
|
|
359
|
-
return (0, _jsxRuntime.jsx)(
|
|
359
|
+
return (0, _jsxRuntime.jsx)(_v11_.Tray, {
|
|
360
360
|
id: this._trayId,
|
|
361
361
|
label: '',
|
|
362
362
|
role: "none",
|
|
@@ -46,7 +46,7 @@ id: TopNavBar.Layout
|
|
|
46
46
|
---
|
|
47
47
|
@module TopNavBarLayout
|
|
48
48
|
**/
|
|
49
|
-
let TopNavBarLayout = exports.TopNavBarLayout = (_dec = (0, _emotion.
|
|
49
|
+
let TopNavBarLayout = exports.TopNavBarLayout = (_dec = (0, _emotion.withStyleLegacy)(null, _theme.default), _dec(_class = (_TopNavBarLayout = class TopNavBarLayout extends _react.Component {
|
|
50
50
|
constructor(...args) {
|
|
51
51
|
super(...args);
|
|
52
52
|
this.ref = null;
|
|
@@ -11,7 +11,7 @@ var _safeCloneElement = require("@instructure/ui-react-utils/lib/safeCloneElemen
|
|
|
11
11
|
var _withDeterministicId = require("@instructure/ui-react-utils/lib/DeterministicIdContext/withDeterministicId.js");
|
|
12
12
|
var _console = require("@instructure/console");
|
|
13
13
|
var _emotion = require("@instructure/emotion");
|
|
14
|
-
var
|
|
14
|
+
var _v11_ = require("@instructure/ui-drilldown/v11_6");
|
|
15
15
|
var _TruncateList = require("@instructure/ui-truncate-list/lib/TruncateList");
|
|
16
16
|
var _TopNavBarContext = require("../TopNavBarContext");
|
|
17
17
|
var _TopNavBarItem = require("../TopNavBarItem");
|
|
@@ -52,7 +52,7 @@ id: TopNavBar.MenuItems
|
|
|
52
52
|
---
|
|
53
53
|
@module TopNavBarMenuItems
|
|
54
54
|
**/
|
|
55
|
-
let TopNavBarMenuItems = exports.TopNavBarMenuItems = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.
|
|
55
|
+
let TopNavBarMenuItems = exports.TopNavBarMenuItems = (_dec = (0, _withDeterministicId.withDeterministicId)(), _dec2 = (0, _emotion.withStyleLegacy)(_styles.default, _theme.default), _dec(_class = _dec2(_class = (_TopNavBarMenuItems = class TopNavBarMenuItems extends _react.Component {
|
|
56
56
|
constructor(props) {
|
|
57
57
|
super(props);
|
|
58
58
|
this._hiddenMenuItemsMenuTriggerId = void 0;
|
|
@@ -114,10 +114,10 @@ let TopNavBarMenuItems = exports.TopNavBarMenuItems = (_dec = (0, _withDetermini
|
|
|
114
114
|
"aria-label": renderHiddenItemsMenuTriggerAriaLabel ? renderHiddenItemsMenuTriggerAriaLabel(hiddenItems.length) : void 0,
|
|
115
115
|
id: this._hiddenMenuItemsMenuTriggerId,
|
|
116
116
|
status: hasActiveChild ? 'active' : 'default',
|
|
117
|
-
renderSubmenu: (0, _jsxRuntime.jsx)(
|
|
117
|
+
renderSubmenu: (0, _jsxRuntime.jsx)(_v11_.Drilldown, {
|
|
118
118
|
shouldSetAriaExpanded: false,
|
|
119
119
|
rootPageId: this._hiddenItemsMenuId,
|
|
120
|
-
children: [(0, _jsxRuntime.jsx)(
|
|
120
|
+
children: [(0, _jsxRuntime.jsx)(_v11_.Drilldown.Page, {
|
|
121
121
|
id: this._hiddenItemsMenuId,
|
|
122
122
|
children: options
|
|
123
123
|
}, this._hiddenItemsMenuId), ...subPages]
|
|
@@ -44,7 +44,7 @@ id: TopNavBar.User
|
|
|
44
44
|
---
|
|
45
45
|
@module TopNavBarUser
|
|
46
46
|
**/
|
|
47
|
-
let TopNavBarUser = exports.TopNavBarUser = (_dec = (0, _emotion.
|
|
47
|
+
let TopNavBarUser = exports.TopNavBarUser = (_dec = (0, _emotion.withStyleLegacy)(_styles.default, null), _dec(_class = (_TopNavBarUser = class TopNavBarUser extends _react.Component {
|
|
48
48
|
constructor(...args) {
|
|
49
49
|
super(...args);
|
|
50
50
|
this.ref = null;
|
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _console = require("@instructure/console");
|
|
9
9
|
var _px = require("@instructure/ui-utils/lib/px.js");
|
|
10
10
|
var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
|
|
11
|
-
var
|
|
11
|
+
var _v11_ = require("@instructure/ui-responsive/v11_6");
|
|
12
12
|
var _TopNavBarActionItems = require("./TopNavBarActionItems");
|
|
13
13
|
var _TopNavBarBrand = require("./TopNavBarBrand");
|
|
14
14
|
var _TopNavBarItem = require("./TopNavBarItem");
|
|
@@ -68,7 +68,7 @@ class TopNavBar extends _react.Component {
|
|
|
68
68
|
children = _this$props.children,
|
|
69
69
|
mediaQueryMatch = _this$props.mediaQueryMatch,
|
|
70
70
|
inverseColor = _this$props.inverseColor;
|
|
71
|
-
return (0, _jsxRuntime.jsx)(
|
|
71
|
+
return (0, _jsxRuntime.jsx)(_v11_.Responsive, {
|
|
72
72
|
"data-cid": "TopNavBar",
|
|
73
73
|
elementRef: this.handleRef,
|
|
74
74
|
match: mediaQueryMatch,
|
|
@@ -4,17 +4,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.itemSubmenuExample = exports.getUser = exports.getMenuItems = exports.getLayoutProps = exports.getInPlaceDialogConfig = exports.getCustomPopoverContent = exports.getCustomPopoverConfig = exports.getBreadcrumb = exports.getBrand = exports.getActionItems = exports.avatarExample = exports.SmallViewportModeWrapper = void 0;
|
|
7
|
-
var
|
|
8
|
-
var _IconQuestionLine = require("@instructure/ui-icons/lib/IconQuestionLine.js");
|
|
9
|
-
var _IconAlertsLine = require("@instructure/ui-icons/lib/IconAlertsLine.js");
|
|
10
|
-
var _IconConfigureLine = require("@instructure/ui-icons/lib/IconConfigureLine.js");
|
|
11
|
-
var _IconSearchLine = require("@instructure/ui-icons/lib/IconSearchLine.js");
|
|
12
|
-
var _IconDiscussionLine = require("@instructure/ui-icons/lib/IconDiscussionLine.js");
|
|
13
|
-
var _IconDashboardLine = require("@instructure/ui-icons/lib/IconDashboardLine.js");
|
|
7
|
+
var _v11_ = require("@instructure/ui-drilldown/v11_6");
|
|
8
|
+
var _IconQuestionLine = require("@instructure/ui-icons/lib/generated/IconQuestionLine.js");
|
|
9
|
+
var _IconAlertsLine = require("@instructure/ui-icons/lib/generated/IconAlertsLine.js");
|
|
10
|
+
var _IconConfigureLine = require("@instructure/ui-icons/lib/generated/IconConfigureLine.js");
|
|
11
|
+
var _IconSearchLine = require("@instructure/ui-icons/lib/generated/IconSearchLine.js");
|
|
12
|
+
var _IconDiscussionLine = require("@instructure/ui-icons/lib/generated/IconDiscussionLine.js");
|
|
13
|
+
var _IconDashboardLine = require("@instructure/ui-icons/lib/generated/IconDashboardLine.js");
|
|
14
14
|
var _TopNavBarContext = require("../TopNavBarContext");
|
|
15
15
|
var _index = require("../index");
|
|
16
16
|
var _exampleSvgFiles = require("./exampleSvgFiles");
|
|
17
|
-
var
|
|
17
|
+
var _v11_2 = require("@instructure/ui-breadcrumb/v11_6");
|
|
18
18
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
19
19
|
var _TopNavBar$Breadcrumb;
|
|
20
20
|
/*
|
|
@@ -44,20 +44,20 @@ const avatarExample = exports.avatarExample = {
|
|
|
44
44
|
avatarName: 'User Name',
|
|
45
45
|
avatarSrc: 'https://images.pexels.com/photos/220453/pexels-photo-220453.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1'
|
|
46
46
|
};
|
|
47
|
-
const itemSubmenuExample = exports.itemSubmenuExample = (0, _jsxRuntime.jsx)(
|
|
47
|
+
const itemSubmenuExample = exports.itemSubmenuExample = (0, _jsxRuntime.jsx)(_v11_.Drilldown, {
|
|
48
48
|
shouldSetAriaExpanded: false,
|
|
49
49
|
rootPageId: "root",
|
|
50
|
-
children: (0, _jsxRuntime.jsxs)(
|
|
50
|
+
children: (0, _jsxRuntime.jsxs)(_v11_.Drilldown.Page, {
|
|
51
51
|
id: "root",
|
|
52
|
-
children: [(0, _jsxRuntime.jsx)(
|
|
52
|
+
children: [(0, _jsxRuntime.jsx)(_v11_.Drilldown.Option, {
|
|
53
53
|
id: "linkExampleOption1",
|
|
54
54
|
href: "/#One",
|
|
55
55
|
children: "Link One"
|
|
56
|
-
}), (0, _jsxRuntime.jsx)(
|
|
56
|
+
}), (0, _jsxRuntime.jsx)(_v11_.Drilldown.Option, {
|
|
57
57
|
id: "linkExampleOption2",
|
|
58
58
|
href: "/#Two",
|
|
59
59
|
children: "Link Two"
|
|
60
|
-
}), (0, _jsxRuntime.jsx)(
|
|
60
|
+
}), (0, _jsxRuntime.jsx)(_v11_.Drilldown.Option, {
|
|
61
61
|
id: "linkExampleOption3",
|
|
62
62
|
href: "/#Three",
|
|
63
63
|
children: "Link Three"
|
|
@@ -198,13 +198,13 @@ const getUser = (config = {}) => {
|
|
|
198
198
|
exports.getUser = getUser;
|
|
199
199
|
const getBreadcrumb = (_config = {}) => {
|
|
200
200
|
return _TopNavBar$Breadcrumb || (_TopNavBar$Breadcrumb = (0, _jsxRuntime.jsx)(_index.TopNavBar.Breadcrumb, {
|
|
201
|
-
children: (0, _jsxRuntime.jsxs)(
|
|
201
|
+
children: (0, _jsxRuntime.jsxs)(_v11_2.Breadcrumb, {
|
|
202
202
|
label: "You are here",
|
|
203
|
-
children: [(0, _jsxRuntime.jsx)(
|
|
203
|
+
children: [(0, _jsxRuntime.jsx)(_v11_2.Breadcrumb.Link, {
|
|
204
204
|
children: "Course page 1"
|
|
205
|
-
}), (0, _jsxRuntime.jsx)(
|
|
205
|
+
}), (0, _jsxRuntime.jsx)(_v11_2.Breadcrumb.Link, {
|
|
206
206
|
children: "Course page 2"
|
|
207
|
-
}), (0, _jsxRuntime.jsx)(
|
|
207
|
+
}), (0, _jsxRuntime.jsx)(_v11_2.Breadcrumb.Link, {
|
|
208
208
|
children: "Course page 3"
|
|
209
209
|
})]
|
|
210
210
|
})
|
|
@@ -8,7 +8,7 @@ var _react = require("react");
|
|
|
8
8
|
var _console = require("@instructure/console");
|
|
9
9
|
var _generateId = require("@instructure/ui-utils/lib/generateId.js");
|
|
10
10
|
var _matchComponentTypes = require("@instructure/ui-react-utils/lib/matchComponentTypes.js");
|
|
11
|
-
var
|
|
11
|
+
var _v11_ = require("@instructure/ui-drilldown/v11_6");
|
|
12
12
|
var _TopNavBarItem = require("../TopNavBarItem");
|
|
13
13
|
var _jsxRuntime = require("@emotion/react/jsx-runtime");
|
|
14
14
|
var _react2 = require("@emotion/react");
|
|
@@ -60,7 +60,7 @@ const mapItemsForDrilldown = (itemList, options = {}) => {
|
|
|
60
60
|
let optionSubPageId;
|
|
61
61
|
const submenuPages = [];
|
|
62
62
|
if (submenu) {
|
|
63
|
-
if (!(0, _matchComponentTypes.matchComponentTypes)(submenu, [
|
|
63
|
+
if (!(0, _matchComponentTypes.matchComponentTypes)(submenu, [_v11_.Drilldown])) {
|
|
64
64
|
(0, _console.warn)(false, `The "renderSubmenu" prop accepts only Drilldown components, but the item with id "${id}" received: "${renderSubmenu}".`);
|
|
65
65
|
submenu = void 0;
|
|
66
66
|
}
|
|
@@ -85,9 +85,9 @@ const mapItemsForDrilldown = (itemList, options = {}) => {
|
|
|
85
85
|
if (customPopover) {
|
|
86
86
|
customPopoverId = (0, _generateId.generateId)(`TopNavBarItem__customPopoverOption`, customPopoverIdMap);
|
|
87
87
|
optionSubPageId = customPopoverId;
|
|
88
|
-
submenuPages.push((0, _jsxRuntime.jsx)(
|
|
88
|
+
submenuPages.push((0, _jsxRuntime.jsx)(_v11_.Drilldown.Page, {
|
|
89
89
|
id: customPopoverId,
|
|
90
|
-
children: (0, _jsxRuntime.jsx)(
|
|
90
|
+
children: (0, _jsxRuntime.jsx)(_v11_.Drilldown.Option, {
|
|
91
91
|
id: `${customPopoverId}__option`,
|
|
92
92
|
children: customPopover.children
|
|
93
93
|
})
|
|
@@ -142,7 +142,7 @@ const renderMappedItemsAsDrilldownOptions = mappedItems => {
|
|
|
142
142
|
// if the `onHiddenClick` prop is provided for the MenuItem it should overwrite the `onClick` prop if there is any
|
|
143
143
|
optionData.onOptionClick = onHiddenClick;
|
|
144
144
|
}
|
|
145
|
-
return (0, _react2.createElement)(
|
|
145
|
+
return (0, _react2.createElement)(_v11_.Drilldown.Option, {
|
|
146
146
|
...optionData,
|
|
147
147
|
key: optionData.id,
|
|
148
148
|
afterLabelContentVAlign: "center"
|