@flamingo-stack/openframe-frontend-core 0.0.704 → 0.0.705-snapshot.20261006160157
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/dist/{chunk-7LFIKJX2.js → chunk-3EZ4HHAP.js} +3 -3
- package/dist/{chunk-I7DFUQMN.js → chunk-3NCM4ZQB.js} +17 -18
- package/dist/{chunk-4DQMTBMK.cjs → chunk-3PLDQDE6.cjs} +15 -15
- package/dist/{chunk-VTASHWER.js → chunk-4CJMQLB5.js} +4 -4
- package/dist/{chunk-VR2ZLFCP.js → chunk-4IBPRIQH.js} +1 -1
- package/dist/{chunk-ZQFZSFQI.js → chunk-4ILM7W2R.js} +2 -2
- package/dist/{chunk-FXENTYE5.js → chunk-6232S532.js} +3 -3
- package/dist/{chunk-MMOODW57.cjs → chunk-6NTPY5QA.cjs} +1887 -94
- package/dist/{chunk-2JDVL7UV.js → chunk-7GEBFJT2.js} +1829 -3447
- package/dist/{chunk-LDPEQGKT.cjs → chunk-7OFPU7WE.cjs} +942 -2560
- package/dist/{chunk-L3IC42IF.cjs → chunk-7SCNMP2B.cjs} +57 -58
- package/dist/{chunk-2G546OND.js → chunk-BHI6GVC4.js} +1094 -693
- package/dist/{chunk-MP2C3LJ4.js → chunk-CUME3VTQ.js} +1 -1
- package/dist/{chunk-WUJNYGO2.js → chunk-CZ7Y7UG4.js} +4 -76
- package/dist/{chunk-7JIL3WOH.cjs → chunk-DDVBX42E.cjs} +21 -21
- package/dist/{chunk-6WQIUQUC.js → chunk-DWPAAWMR.js} +6 -6
- package/dist/{chunk-MFFCUVWG.js → chunk-F57ECE2I.js} +1 -1
- package/dist/{chunk-CH5232HV.js → chunk-FI6GMDO7.js} +2455 -662
- package/dist/{chunk-NDESEPW5.js → chunk-FXJ3WWUB.js} +68 -0
- package/dist/{chunk-4KGXLVCF.js → chunk-G6UMNAVI.js} +57 -61
- package/dist/{chunk-LTSTC3N5.cjs → chunk-GWQEYPYM.cjs} +728 -732
- package/dist/{chunk-N3TO7JV3.cjs → chunk-HZ7CBXPL.cjs} +89 -89
- package/dist/{chunk-XATTBO5X.js → chunk-IKJA3Y7Z.js} +2 -2
- package/dist/{chunk-5HBHO5TB.js → chunk-JPG7OHEG.js} +1 -1
- package/dist/{chunk-AMYY3PNL.cjs → chunk-K6O43WDL.cjs} +46 -46
- package/dist/{chunk-IHU5ANUY.js → chunk-KUC673HM.js} +383 -142
- package/dist/{chunk-X72J4ACL.cjs → chunk-LLSUVPQC.cjs} +252 -8
- package/dist/{chunk-RKV5B7EU.cjs → chunk-LM7TXMLU.cjs} +72 -4
- package/dist/{chunk-XJKZ4IKT.cjs → chunk-LVSFKENJ.cjs} +4 -4
- package/dist/{chunk-IZGDG5X6.cjs → chunk-M75XEEGT.cjs} +940 -539
- package/dist/{chunk-UK62YTH6.cjs → chunk-MB4PNY7C.cjs} +6 -6
- package/dist/{chunk-2YXVWZVF.js → chunk-N45D4ZXQ.js} +959 -715
- package/dist/{chunk-Z2VNQQ74.js → chunk-NCPTID44.js} +978 -942
- package/dist/{chunk-JEYRXT5L.js → chunk-O2RSAA5M.js} +11 -11
- package/dist/{chunk-ABU3TGXA.cjs → chunk-OF6GEI5A.cjs} +3 -3
- package/dist/{chunk-OHFS7VOU.cjs → chunk-PLYEKV3N.cjs} +2 -2
- package/dist/{chunk-5QJDM6UV.js → chunk-PXOQIA5K.js} +5 -5
- package/dist/{chunk-VHCACDKP.cjs → chunk-RQRX4YC3.cjs} +39 -39
- package/dist/{chunk-HFJW24JJ.cjs → chunk-RTIPR53L.cjs} +104 -104
- package/dist/{chunk-262YQFOS.cjs → chunk-SEKYEWQG.cjs} +26 -26
- package/dist/{chunk-SYXQLETR.cjs → chunk-STHZBOQI.cjs} +17 -17
- package/dist/{chunk-MI3JUJ75.cjs → chunk-SW5ZV2BN.cjs} +34 -34
- package/dist/{chunk-QVSFBSWV.js → chunk-T5TMCHWM.js} +9 -9
- package/dist/{chunk-ERCV6HHJ.js → chunk-TE773HEH.js} +10 -10
- package/dist/{chunk-C7XGRLT5.cjs → chunk-TQ4LB2DS.cjs} +14 -14
- package/dist/{chunk-XOYH2YQE.cjs → chunk-UDFRUKLC.cjs} +2 -2
- package/dist/{chunk-XIFOBQRQ.cjs → chunk-UJ33ZXDT.cjs} +6 -6
- package/dist/{chunk-C3BWIU7R.cjs → chunk-UVTD52MD.cjs} +14 -86
- package/dist/{chunk-N3COXDBH.cjs → chunk-VX4E6YSB.cjs} +41 -5
- package/dist/{chunk-HJAYVKWQ.js → chunk-VZICIQW2.js} +15 -15
- package/dist/{chunk-MGGGBHYD.cjs → chunk-WCVZCGK5.cjs} +312 -71
- package/dist/{chunk-6XIF2Z7I.js → chunk-WMX26HB5.js} +3 -3
- package/dist/{chunk-D7BTSVMS.cjs → chunk-Y2GSOUCS.cjs} +2 -2
- package/dist/{chunk-NRLJUBCS.js → chunk-YGJKKDDM.js} +6 -6
- package/dist/components/case-studies/index.cjs +30 -32
- package/dist/components/case-studies/index.js +14 -16
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.d.ts +8 -0
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/entity-cards/case-study-card.d.ts +11 -4
- package/dist/components/chat/entity-cards/case-study-card.d.ts.map +1 -1
- package/dist/components/chat/index.cjs +11 -11
- package/dist/components/chat/index.d.ts +1 -1
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +16 -16
- package/dist/components/chat/mingo-chat-rail.d.ts +3 -1
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/chat/utils/icon-library.d.ts.map +1 -1
- package/dist/components/contact/index.cjs +12 -14
- package/dist/components/contact/index.js +11 -13
- package/dist/components/docs/index.cjs +15 -17
- package/dist/components/docs/index.js +14 -16
- package/dist/components/embeds/index.cjs +12 -14
- package/dist/components/embeds/index.js +11 -13
- package/dist/components/faq/index.cjs +13 -15
- package/dist/components/faq/index.js +12 -14
- package/dist/components/features/index.cjs +12 -14
- package/dist/components/features/index.js +21 -23
- package/dist/components/help-center-pages/index.cjs +118 -120
- package/dist/components/help-center-pages/index.js +33 -35
- package/dist/components/icons/index.cjs +3 -5
- package/dist/components/icons/index.js +9 -11
- package/dist/components/icons-v2-generated/index.cjs +3 -5
- package/dist/components/icons-v2-generated/index.js +2 -4
- package/dist/components/index.cjs +89 -158
- package/dist/components/index.d.ts +0 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +333 -402
- package/dist/components/loading/page-layout-skeleton.d.ts +1 -1
- package/dist/components/meeting-scheduler/index.cjs +62 -64
- package/dist/components/meeting-scheduler/index.js +12 -14
- package/dist/components/navigation/app-layout-side-panel.d.ts +18 -1
- package/dist/components/navigation/app-layout-side-panel.d.ts.map +1 -1
- package/dist/components/navigation/index.cjs +30 -16
- package/dist/components/navigation/index.d.ts +15 -10
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +40 -26
- package/dist/components/navigation/mingo-ai-button.d.ts +38 -3
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts +3 -0
- package/dist/components/navigation/mobile-nav-sheet-id.d.ts.map +1 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts +48 -0
- package/dist/components/navigation/mobile-nav-sheet.d.ts.map +1 -0
- package/dist/components/navigation/nav-item-row.d.ts +27 -0
- package/dist/components/navigation/nav-item-row.d.ts.map +1 -0
- package/dist/components/navigation/nav-panel.d.ts +43 -0
- package/dist/components/navigation/nav-panel.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-item.d.ts +1 -2
- package/dist/components/navigation/navigation-sidebar-item.d.ts.map +1 -1
- package/dist/components/navigation/site-footer.d.ts +28 -0
- package/dist/components/navigation/site-footer.d.ts.map +1 -0
- package/dist/components/navigation/site-header.d.ts +61 -0
- package/dist/components/navigation/site-header.d.ts.map +1 -0
- package/dist/components/navigation/site-nav-link.d.ts +26 -0
- package/dist/components/navigation/site-nav-link.d.ts.map +1 -0
- package/dist/components/navigation/top-navigation.d.ts +2 -2
- package/dist/components/navigation/top-navigation.d.ts.map +1 -1
- package/dist/components/onboarding-guides/index.cjs +15 -17
- package/dist/components/onboarding-guides/index.js +14 -16
- package/dist/components/related-content/index.cjs +10 -8
- package/dist/components/related-content/index.js +9 -7
- package/dist/components/tickets/index.cjs +16 -18
- package/dist/components/tickets/index.js +15 -17
- package/dist/components/ui/index.cjs +14 -14
- package/dist/components/ui/index.js +19 -19
- package/dist/hooks/index.cjs +19 -11
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +19 -11
- package/dist/hooks/ui/index.d.ts +3 -0
- package/dist/hooks/ui/index.d.ts.map +1 -1
- package/dist/hooks/ui/use-active-section.d.ts +10 -0
- package/dist/hooks/ui/use-active-section.d.ts.map +1 -0
- package/dist/hooks/ui/use-nav-menus.d.ts +48 -0
- package/dist/hooks/ui/use-nav-menus.d.ts.map +1 -0
- package/dist/hooks/ui/use-visitor-os.d.ts +15 -0
- package/dist/hooks/ui/use-visitor-os.d.ts.map +1 -0
- package/dist/hooks/use-location-hash.d.ts +9 -0
- package/dist/hooks/use-location-hash.d.ts.map +1 -0
- package/dist/index.cjs +58 -21
- package/dist/index.js +233 -196
- package/dist/types/case-study.d.ts +9 -0
- package/dist/types/case-study.d.ts.map +1 -1
- package/dist/types/navigation.d.ts +95 -65
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +55 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +50 -1
- package/dist/utils/source-icons.d.ts.map +1 -1
- package/dist/utils/visitor-os.d.ts +45 -0
- package/dist/utils/visitor-os.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/components/chat/chat-input.tsx +5 -1
- package/src/components/chat/chat-message-enhanced.tsx +4 -3
- package/src/components/chat/embeddable-chat.tsx +64 -6
- package/src/components/chat/entity-cards/case-study-card.tsx +115 -5
- package/src/components/chat/index.ts +1 -0
- package/src/components/chat/mingo-chat-rail.tsx +24 -7
- package/src/components/chat/utils/icon-library.tsx +35 -1
- package/src/components/index.ts +0 -2
- package/src/components/loading/page-layout-skeleton.tsx +1 -1
- package/src/components/navigation/app-layout-side-panel.tsx +30 -2
- package/src/components/navigation/index.ts +22 -14
- package/src/components/navigation/mingo-ai-button.tsx +139 -63
- package/src/components/navigation/mobile-nav-sheet-id.ts +2 -0
- package/src/components/navigation/mobile-nav-sheet.tsx +241 -0
- package/src/components/navigation/nav-item-row.tsx +129 -0
- package/src/components/navigation/nav-panel.tsx +196 -0
- package/src/components/navigation/navigation-sidebar-item.tsx +1 -2
- package/src/components/navigation/site-footer.tsx +256 -0
- package/src/components/navigation/site-header.tsx +339 -0
- package/src/components/navigation/site-nav-link.tsx +41 -0
- package/src/components/navigation/ticket-alerts-button.tsx +2 -2
- package/src/components/navigation/top-navigation.tsx +2 -2
- package/src/components/platform/SoftwareSourceBadge.tsx +1 -1
- package/src/hooks/index.ts +1 -0
- package/src/hooks/ui/index.ts +3 -0
- package/src/hooks/ui/use-active-section.ts +44 -0
- package/src/hooks/ui/use-nav-menus.ts +200 -0
- package/src/hooks/ui/use-visitor-os.ts +33 -0
- package/src/hooks/use-location-hash.ts +34 -0
- package/src/styles/app-globals.css +13 -0
- package/src/styles/chat-animations.css +57 -2
- package/src/types/case-study.ts +16 -0
- package/src/types/navigation.ts +80 -66
- package/src/utils/index.ts +1 -0
- package/src/utils/source-icons.ts +13 -0
- package/src/utils/visitor-os.ts +84 -0
- package/dist/chunk-LMBC5FFP.js +0 -43
- package/dist/chunk-O43V3EOS.js +0 -252
- package/dist/chunk-QZVSJF2K.cjs +0 -252
- package/dist/chunk-RALRPFDW.cjs +0 -43
- package/dist/components/footer-waitlist-button.d.ts +0 -29
- package/dist/components/footer-waitlist-button.d.ts.map +0 -1
- package/dist/components/footer.d.ts +0 -47
- package/dist/components/footer.d.ts.map +0 -1
- package/dist/components/navigation/client-only-header.d.ts +0 -8
- package/dist/components/navigation/client-only-header.d.ts.map +0 -1
- package/dist/components/navigation/header-skeleton.d.ts +0 -12
- package/dist/components/navigation/header-skeleton.d.ts.map +0 -1
- package/dist/components/navigation/header.d.ts +0 -9
- package/dist/components/navigation/header.d.ts.map +0 -1
- package/dist/components/navigation/mobile-nav-panel.d.ts +0 -10
- package/dist/components/navigation/mobile-nav-panel.d.ts.map +0 -1
- package/src/components/footer-waitlist-button.tsx +0 -53
- package/src/components/footer.tsx +0 -195
- package/src/components/navigation/client-only-header.tsx +0 -22
- package/src/components/navigation/header-skeleton.tsx +0 -74
- package/src/components/navigation/header.tsx +0 -429
- package/src/components/navigation/mobile-nav-panel.tsx +0 -155
|
@@ -19,47 +19,53 @@
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var _chunkIZGDG5X6cjs = require('../../chunk-IZGDG5X6.cjs');
|
|
23
22
|
|
|
24
23
|
|
|
25
24
|
|
|
26
25
|
|
|
27
26
|
|
|
28
|
-
var _chunkXJKZ4IKTcjs = require('../../chunk-XJKZ4IKT.cjs');
|
|
29
|
-
require('../../chunk-XIFOBQRQ.cjs');
|
|
30
27
|
|
|
31
28
|
|
|
32
29
|
|
|
30
|
+
var _chunkM75XEEGTcjs = require('../../chunk-M75XEEGT.cjs');
|
|
33
31
|
|
|
34
32
|
|
|
35
33
|
|
|
36
34
|
|
|
37
35
|
|
|
36
|
+
var _chunkLVSFKENJcjs = require('../../chunk-LVSFKENJ.cjs');
|
|
37
|
+
require('../../chunk-UJ33ZXDT.cjs');
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
var _chunkGWQEYPYMcjs = require('../../chunk-GWQEYPYM.cjs');
|
|
45
53
|
require('../../chunk-HQQE74RO.cjs');
|
|
46
54
|
require('../../chunk-DEY6XXGO.cjs');
|
|
47
|
-
require('../../chunk-
|
|
55
|
+
require('../../chunk-WCVZCGK5.cjs');
|
|
48
56
|
require('../../chunk-MZ4KBSH7.cjs');
|
|
49
57
|
require('../../chunk-BIZNSF3U.cjs');
|
|
50
|
-
require('../../chunk-
|
|
58
|
+
require('../../chunk-OF6GEI5A.cjs');
|
|
51
59
|
require('../../chunk-LX22Y43B.cjs');
|
|
52
|
-
require('../../chunk-
|
|
53
|
-
require('../../chunk-
|
|
60
|
+
require('../../chunk-7OFPU7WE.cjs');
|
|
61
|
+
require('../../chunk-UVTD52MD.cjs');
|
|
54
62
|
require('../../chunk-7DNL734S.cjs');
|
|
55
|
-
require('../../chunk-
|
|
56
|
-
require('../../chunk-N3COXDBH.cjs');
|
|
57
|
-
require('../../chunk-RDW5JAME.cjs');
|
|
58
|
-
require('../../chunk-MMOODW57.cjs');
|
|
63
|
+
require('../../chunk-6NTPY5QA.cjs');
|
|
59
64
|
require('../../chunk-MGHIV4L6.cjs');
|
|
60
|
-
require('../../chunk-
|
|
61
|
-
require('../../chunk-
|
|
62
|
-
require('../../chunk-
|
|
65
|
+
require('../../chunk-LM7TXMLU.cjs');
|
|
66
|
+
require('../../chunk-LLSUVPQC.cjs');
|
|
67
|
+
require('../../chunk-VX4E6YSB.cjs');
|
|
68
|
+
require('../../chunk-RDW5JAME.cjs');
|
|
63
69
|
require('../../chunk-UJ7AXHRZ.cjs');
|
|
64
70
|
require('../../chunk-BM5MVGH3.cjs');
|
|
65
71
|
require('../../chunk-4GFNWALL.cjs');
|
|
@@ -104,4 +110,12 @@ require('../../chunk-QBJ4SE23.cjs');
|
|
|
104
110
|
|
|
105
111
|
|
|
106
112
|
|
|
107
|
-
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
exports.ASK_AI_OPEN_EVENT = _chunkM75XEEGTcjs.ASK_AI_OPEN_EVENT; exports.AppHeader = _chunkM75XEEGTcjs.AppHeader; exports.AppLayout = _chunkM75XEEGTcjs.AppLayout; exports.AppLayoutDrawer = _chunkGWQEYPYMcjs.AppLayoutDrawerRoot; exports.AppLayoutDrawerBody = _chunkGWQEYPYMcjs.AppLayoutDrawerBody; exports.AppLayoutDrawerClose = _chunkGWQEYPYMcjs.AppLayoutDrawerClose; exports.AppLayoutDrawerContent = _chunkGWQEYPYMcjs.AppLayoutDrawerContent; exports.AppLayoutDrawerDescription = _chunkGWQEYPYMcjs.AppLayoutDrawerDescription; exports.AppLayoutDrawerFooter = _chunkGWQEYPYMcjs.AppLayoutDrawerFooter; exports.AppLayoutDrawerHeader = _chunkGWQEYPYMcjs.AppLayoutDrawerHeader; exports.AppLayoutDrawerTitle = _chunkGWQEYPYMcjs.AppLayoutDrawerTitle; exports.AppLayoutDrawerTrigger = _chunkGWQEYPYMcjs.AppLayoutDrawerTrigger; exports.HeaderButton = _chunkGWQEYPYMcjs.HeaderButton; exports.HeaderGlobalSearch = _chunkM75XEEGTcjs.HeaderGlobalSearch; exports.HeaderMingoButton = _chunkM75XEEGTcjs.HeaderMingoButton; exports.HeaderOrganizationFilter = _chunkM75XEEGTcjs.HeaderOrganizationFilter; exports.MOBILE_NAV_SHEET_ID = _chunkM75XEEGTcjs.MOBILE_NAV_SHEET_ID; exports.MingoAiButton = _chunkM75XEEGTcjs.MingoAiButton; exports.MobileBurgerMenu = _chunkM75XEEGTcjs.MobileBurgerMenu; exports.MobileNavSheet = _chunkM75XEEGTcjs.MobileNavSheet; exports.MobileNavigationDropdown = _chunkLVSFKENJcjs.MobileNavigationDropdown; exports.MultiLevelNavigation = _chunkLVSFKENJcjs.MultiLevelNavigation; exports.NAVIGATION_SIDEBAR_WIDTH_VAR = _chunkM75XEEGTcjs.NAVIGATION_SIDEBAR_WIDTH_VAR; exports.NavItemRow = _chunkM75XEEGTcjs.NavItemRow; exports.NavPanel = _chunkM75XEEGTcjs.NavPanel; exports.NavigationItemBadge = _chunkM75XEEGTcjs.NavigationItemBadge; exports.NavigationSidebar = _chunkM75XEEGTcjs.NavigationSidebar; exports.SIDE_PANEL_FRAME_WIDTH = _chunkM75XEEGTcjs.SIDE_PANEL_FRAME_WIDTH; exports.SiteFooter = _chunkM75XEEGTcjs.SiteFooter; exports.SiteHeader = _chunkM75XEEGTcjs.SiteHeader; exports.SlidingSidebar = _chunkM75XEEGTcjs.SlidingSidebar; exports.StickySectionNav = _chunkLVSFKENJcjs.StickySectionNav; exports.TicketAlertsButton = _chunkM75XEEGTcjs.TicketAlertsButton; exports.TopNavigation = _chunkM75XEEGTcjs.TopNavigation; exports.UnreadCountBadge = _chunkGWQEYPYMcjs.UnreadCountBadge; exports.UnreadDot = _chunkGWQEYPYMcjs.UnreadDot; exports.defaultRenderSiteNavLink = _chunkM75XEEGTcjs.defaultRenderSiteNavLink; exports.isMegaMenu = _chunkM75XEEGTcjs.isMegaMenu; exports.navLinkLabel = _chunkM75XEEGTcjs.navLinkLabel; exports.openAskAi = _chunkM75XEEGTcjs.openAskAi; exports.siteNavHasMobileMenus = _chunkM75XEEGTcjs.siteNavHasMobileMenus; exports.useAppLayoutDrawerContainer = _chunkGWQEYPYMcjs.useAppLayoutDrawerContainer; exports.useSectionNavigation = _chunkLVSFKENJcjs.useSectionNavigation;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
1
|
+
export { SiteHeader } from './site-header';
|
|
2
|
+
export type { SiteHeaderProps } from './site-header';
|
|
3
|
+
export { NavPanel, isMegaMenu } from './nav-panel';
|
|
4
|
+
export type { NavPanelProps } from './nav-panel';
|
|
5
|
+
export { NavItemRow } from './nav-item-row';
|
|
6
|
+
export type { NavItemRowProps, NavItemRowVariant } from './nav-item-row';
|
|
7
|
+
export { ASK_AI_OPEN_EVENT, MingoAiButton, openAskAi } from './mingo-ai-button';
|
|
4
8
|
export type { MingoAiButtonProps } from './mingo-ai-button';
|
|
5
|
-
export {
|
|
6
|
-
export type {
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
9
|
-
export {
|
|
10
|
-
export type {
|
|
9
|
+
export { MobileNavSheet, MOBILE_NAV_SHEET_ID, siteNavHasMobileMenus } from './mobile-nav-sheet';
|
|
10
|
+
export type { MobileNavSheetProps } from './mobile-nav-sheet';
|
|
11
|
+
export { SiteFooter } from './site-footer';
|
|
12
|
+
export type { SiteFooterProps } from './site-footer';
|
|
13
|
+
export { defaultRenderSiteNavLink, navLinkLabel } from './site-nav-link';
|
|
14
|
+
export type { SiteNavLinkRenderer } from './site-nav-link';
|
|
11
15
|
export { SlidingSidebar } from './sliding-sidebar';
|
|
12
16
|
export type { SlidingSidebarProps } from './sliding-sidebar';
|
|
13
17
|
export { StickySectionNav, useSectionNavigation } from './sticky-section-nav';
|
|
@@ -19,6 +23,7 @@ export type { AppHeaderProps, HeaderLoadingCell } from './app-header';
|
|
|
19
23
|
export { AppLayout, useAppLayoutDrawerContainer } from './app-layout';
|
|
20
24
|
export type { AppLayoutProps } from './app-layout';
|
|
21
25
|
export type { AppLayoutSidePanelConfig, AppLayoutSidePanelMode, AppLayoutSidePanelRenderState, } from './app-layout-side-panel';
|
|
26
|
+
export { SIDE_PANEL_FRAME_WIDTH } from './app-layout-side-panel';
|
|
22
27
|
export { AppLayoutDrawer, AppLayoutDrawerTrigger, AppLayoutDrawerClose, AppLayoutDrawerContent, AppLayoutDrawerHeader, AppLayoutDrawerTitle, AppLayoutDrawerDescription, AppLayoutDrawerBody, AppLayoutDrawerFooter, } from './app-layout-drawer';
|
|
23
28
|
export type { AppLayoutDrawerContentProps } from './app-layout-drawer';
|
|
24
29
|
export { MobileBurgerMenu } from './mobile-burger-menu';
|
|
@@ -41,5 +46,5 @@ export { HeaderOrganizationFilter } from './header-organization-filter';
|
|
|
41
46
|
export type { HeaderOrganizationFilterOrganization, HeaderOrganizationFilterProps } from './header-organization-filter';
|
|
42
47
|
export { MultiLevelNavigation, MobileNavigationDropdown } from './multi-level-navigation';
|
|
43
48
|
export type { NavigationNode } from './multi-level-navigation';
|
|
44
|
-
export type {
|
|
49
|
+
export type { NavFeature, NavGroup, NavLink, NavMenu, NavigationItem, NavigationSidebarConfig, NavigationSidebarItem, SiteNav, SiteNavPrimaryCta, SlidingSidebarConfig, UnifiedSidebarUser, } from '../../types/navigation';
|
|
45
50
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACnD,YAAY,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAChF,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAChG,YAAY,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACzE,YAAY,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAC9E,YAAY,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,OAAO,EAAE,4BAA4B,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvF,YAAY,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEtE,OAAO,EAAE,SAAS,EAAE,2BAA2B,EAAE,MAAM,cAAc,CAAC;AACtE,YAAY,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnD,YAAY,EACV,wBAAwB,EACxB,sBAAsB,EACtB,6BAA6B,GAC9B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAEjE,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,0BAA0B,EAC1B,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EAAE,2BAA2B,EAAE,MAAM,qBAAqB,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,YAAY,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,YAAY,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC3D,YAAY,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,YAAY,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC;AAE1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,YAAY,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAEtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AACxE,YAAY,EAAE,oCAAoC,EAAE,6BAA6B,EAAE,MAAM,8BAA8B,CAAC;AAIxH,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AAC1F,YAAY,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,YAAY,EACV,UAAU,EACV,QAAQ,EACR,OAAO,EACP,OAAO,EACP,cAAc,EACd,uBAAuB,EACvB,qBAAqB,EACrB,OAAO,EACP,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,wBAAwB,CAAC"}
|
|
@@ -1,32 +1,40 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import {
|
|
4
|
+
ASK_AI_OPEN_EVENT,
|
|
4
5
|
AppHeader,
|
|
5
6
|
AppLayout,
|
|
6
|
-
ClientOnlyHeader,
|
|
7
|
-
Header,
|
|
8
7
|
HeaderGlobalSearch,
|
|
9
8
|
HeaderMingoButton,
|
|
10
9
|
HeaderOrganizationFilter,
|
|
11
|
-
|
|
12
|
-
MOBILE_NAV_PANEL_ID,
|
|
10
|
+
MOBILE_NAV_SHEET_ID,
|
|
13
11
|
MingoAiButton,
|
|
14
12
|
MobileBurgerMenu,
|
|
15
|
-
|
|
13
|
+
MobileNavSheet,
|
|
16
14
|
NAVIGATION_SIDEBAR_WIDTH_VAR,
|
|
15
|
+
NavItemRow,
|
|
16
|
+
NavPanel,
|
|
17
17
|
NavigationItemBadge,
|
|
18
18
|
NavigationSidebar,
|
|
19
|
+
SIDE_PANEL_FRAME_WIDTH,
|
|
20
|
+
SiteFooter,
|
|
21
|
+
SiteHeader,
|
|
19
22
|
SlidingSidebar,
|
|
20
23
|
TicketAlertsButton,
|
|
21
|
-
TopNavigation
|
|
22
|
-
|
|
24
|
+
TopNavigation,
|
|
25
|
+
defaultRenderSiteNavLink,
|
|
26
|
+
isMegaMenu,
|
|
27
|
+
navLinkLabel,
|
|
28
|
+
openAskAi,
|
|
29
|
+
siteNavHasMobileMenus
|
|
30
|
+
} from "../../chunk-BHI6GVC4.js";
|
|
23
31
|
import {
|
|
24
32
|
MobileNavigationDropdown,
|
|
25
33
|
MultiLevelNavigation,
|
|
26
34
|
StickySectionNav,
|
|
27
35
|
useSectionNavigation
|
|
28
|
-
} from "../../chunk-
|
|
29
|
-
import "../../chunk-
|
|
36
|
+
} from "../../chunk-4ILM7W2R.js";
|
|
37
|
+
import "../../chunk-3EZ4HHAP.js";
|
|
30
38
|
import {
|
|
31
39
|
AppLayoutDrawerBody,
|
|
32
40
|
AppLayoutDrawerClose,
|
|
@@ -41,25 +49,23 @@ import {
|
|
|
41
49
|
UnreadCountBadge,
|
|
42
50
|
UnreadDot,
|
|
43
51
|
useAppLayoutDrawerContainer
|
|
44
|
-
} from "../../chunk-
|
|
52
|
+
} from "../../chunk-G6UMNAVI.js";
|
|
45
53
|
import "../../chunk-LQYXMEYF.js";
|
|
46
54
|
import "../../chunk-4JPLYOS6.js";
|
|
47
|
-
import "../../chunk-
|
|
55
|
+
import "../../chunk-KUC673HM.js";
|
|
48
56
|
import "../../chunk-HFL2F4RM.js";
|
|
49
57
|
import "../../chunk-UT4YHQZW.js";
|
|
50
|
-
import "../../chunk-
|
|
58
|
+
import "../../chunk-CUME3VTQ.js";
|
|
51
59
|
import "../../chunk-PLWMIU72.js";
|
|
52
|
-
import "../../chunk-
|
|
53
|
-
import "../../chunk-
|
|
60
|
+
import "../../chunk-7GEBFJT2.js";
|
|
61
|
+
import "../../chunk-CZ7Y7UG4.js";
|
|
54
62
|
import "../../chunk-GY4IZG22.js";
|
|
55
|
-
import "../../chunk-
|
|
56
|
-
import "../../chunk-Z2VNQQ74.js";
|
|
57
|
-
import "../../chunk-OSIKGEBU.js";
|
|
58
|
-
import "../../chunk-CH5232HV.js";
|
|
63
|
+
import "../../chunk-FI6GMDO7.js";
|
|
59
64
|
import "../../chunk-FBZMAPWO.js";
|
|
60
|
-
import "../../chunk-
|
|
61
|
-
import "../../chunk-
|
|
62
|
-
import "../../chunk-
|
|
65
|
+
import "../../chunk-FXJ3WWUB.js";
|
|
66
|
+
import "../../chunk-N45D4ZXQ.js";
|
|
67
|
+
import "../../chunk-NCPTID44.js";
|
|
68
|
+
import "../../chunk-OSIKGEBU.js";
|
|
63
69
|
import "../../chunk-E4ABZWTJ.js";
|
|
64
70
|
import "../../chunk-FLKJYMVB.js";
|
|
65
71
|
import "../../chunk-INS7KZJB.js";
|
|
@@ -69,6 +75,7 @@ import "../../chunk-7RXWKTAP.js";
|
|
|
69
75
|
import "../../chunk-V3JFVKHV.js";
|
|
70
76
|
import "../../chunk-62GWEYJ5.js";
|
|
71
77
|
export {
|
|
78
|
+
ASK_AI_OPEN_EVENT,
|
|
72
79
|
AppHeader,
|
|
73
80
|
AppLayout,
|
|
74
81
|
AppLayoutDrawerRoot as AppLayoutDrawer,
|
|
@@ -80,28 +87,35 @@ export {
|
|
|
80
87
|
AppLayoutDrawerHeader,
|
|
81
88
|
AppLayoutDrawerTitle,
|
|
82
89
|
AppLayoutDrawerTrigger,
|
|
83
|
-
ClientOnlyHeader,
|
|
84
|
-
Header,
|
|
85
90
|
HeaderButton,
|
|
86
91
|
HeaderGlobalSearch,
|
|
87
92
|
HeaderMingoButton,
|
|
88
93
|
HeaderOrganizationFilter,
|
|
89
|
-
|
|
90
|
-
MOBILE_NAV_PANEL_ID,
|
|
94
|
+
MOBILE_NAV_SHEET_ID,
|
|
91
95
|
MingoAiButton,
|
|
92
96
|
MobileBurgerMenu,
|
|
93
|
-
|
|
97
|
+
MobileNavSheet,
|
|
94
98
|
MobileNavigationDropdown,
|
|
95
99
|
MultiLevelNavigation,
|
|
96
100
|
NAVIGATION_SIDEBAR_WIDTH_VAR,
|
|
101
|
+
NavItemRow,
|
|
102
|
+
NavPanel,
|
|
97
103
|
NavigationItemBadge,
|
|
98
104
|
NavigationSidebar,
|
|
105
|
+
SIDE_PANEL_FRAME_WIDTH,
|
|
106
|
+
SiteFooter,
|
|
107
|
+
SiteHeader,
|
|
99
108
|
SlidingSidebar,
|
|
100
109
|
StickySectionNav,
|
|
101
110
|
TicketAlertsButton,
|
|
102
111
|
TopNavigation,
|
|
103
112
|
UnreadCountBadge,
|
|
104
113
|
UnreadDot,
|
|
114
|
+
defaultRenderSiteNavLink,
|
|
115
|
+
isMegaMenu,
|
|
116
|
+
navLinkLabel,
|
|
117
|
+
openAskAi,
|
|
118
|
+
siteNavHasMobileMenus,
|
|
105
119
|
useAppLayoutDrawerContainer,
|
|
106
120
|
useSectionNavigation
|
|
107
121
|
};
|
|
@@ -1,16 +1,51 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
export interface MingoAiButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
source?: string;
|
|
4
|
-
/** The platform's Mingo identity glyph
|
|
4
|
+
/** The platform's Mingo identity glyph: pass the SAME server-configured
|
|
5
5
|
* icon the chat panel renders (host-side: `EntityIcon` fed by the admin
|
|
6
6
|
* `assistantIcon`), so the launcher and the panel can never diverge.
|
|
7
7
|
* Falls back to the packaged Mingo mark when the server has none. */
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
|
-
/** The launcher's wordmark + aria-label
|
|
9
|
+
/** The launcher's wordmark + aria-label: pass the server-configured
|
|
10
10
|
* assistant name (same `assistantName` the chat panel shows) so the
|
|
11
11
|
* launcher never hardcodes an identity the admin has renamed. */
|
|
12
12
|
label?: string;
|
|
13
|
+
/** Bind Cmd+K (Ctrl+K off Apple platforms) to open the chat, and show the
|
|
14
|
+
* key cap beside the label. Default false. */
|
|
15
|
+
shortcutHint?: boolean;
|
|
16
|
+
/** `inline` (default): the header launcher, the height and type of the menu
|
|
17
|
+
* items beside it. `field`: the full-width row that opens the mobile menu
|
|
18
|
+
* (the name reads as the field's prompt). ONE component, so every Mingo
|
|
19
|
+
* launcher carries the same identity, ring and event. */
|
|
20
|
+
variant?: 'inline' | 'field';
|
|
13
21
|
}
|
|
14
|
-
|
|
22
|
+
/** The event the mounted chat panel (`EmbeddableChat`) opens on. */
|
|
23
|
+
export declare const ASK_AI_OPEN_EVENT = "ask-ai:open";
|
|
24
|
+
/**
|
|
25
|
+
* Open the chat of `source`. Coalesced to '' so a source-less call still
|
|
26
|
+
* matches the panel's own `runtime.source ?? ''` comparison (undefined !== ''
|
|
27
|
+
* would make the panel silently ignore the event).
|
|
28
|
+
*/
|
|
29
|
+
export declare function openAskAi(source?: string): void;
|
|
30
|
+
/**
|
|
31
|
+
* THE Mingo AI launcher, in the site header's right cluster and at the top of
|
|
32
|
+
* the mobile menu (`variant="field"`): the round identity glyph, the
|
|
33
|
+
* assistant's name and an optional shortcut hint, sized like the menu items
|
|
34
|
+
* beside it. Stateless: clicking dispatches an `ask-ai:open`
|
|
35
|
+
* CustomEvent (source-filtered) that the mounted `EmbeddableChat` panel
|
|
36
|
+
* listens for.
|
|
37
|
+
*
|
|
38
|
+
* It carries the AI edge light (`.mingo-edge-frame` / `.mingo-edge` in
|
|
39
|
+
* `styles/chat-animations.css`): an accent arc travelling around its outline,
|
|
40
|
+
* with a one-shot shimmer on hover. Static under reduced motion.
|
|
41
|
+
*
|
|
42
|
+
* Distinct from `header-mingo-button.tsx` (`HeaderMingoButton`), the
|
|
43
|
+
* dashboard/AppHeader controlled toggle; different surface and contract, do
|
|
44
|
+
* not merge them.
|
|
45
|
+
*
|
|
46
|
+
* It is the lib `Button` (`transparent`, or `glyph` for the menu row, at the
|
|
47
|
+
* `wrap` size): the launcher's own box, ring and collapse are classes on it.
|
|
48
|
+
*/
|
|
49
|
+
export declare function MingoAiButton({ source, icon, label, shortcutHint, variant, className, onClick, ...props }: MingoAiButtonProps): React.JSX.Element;
|
|
15
50
|
export default MingoAiButton;
|
|
16
51
|
//# sourceMappingURL=mingo-ai-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mingo-ai-button.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/mingo-ai-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"mingo-ai-button.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/mingo-ai-button.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC;IACvF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;0EAGsE;IACtE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB;;sEAEkE;IAClE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;mDAC+C;IAC/C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB;;;8DAG0D;IAC1D,OAAO,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC;CAC9B;AAID,oEAAoE;AACpE,eAAO,MAAM,iBAAiB,gBAAgB,CAAC;AAE/C;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAE/C;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,CAAC,EAC5B,MAAM,EACN,IAAI,EACJ,KAAkB,EAClB,YAAoB,EACpB,OAAkB,EAClB,SAAS,EACT,OAAO,EACP,GAAG,KAAK,EACT,EAAE,kBAAkB,qBAyGpB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-nav-sheet-id.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/mobile-nav-sheet-id.ts"],"names":[],"mappings":"AAAA,gGAAgG;AAChG,eAAO,MAAM,mBAAmB,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { NavMenu, SiteNav } from '../../types/navigation';
|
|
3
|
+
import { type SiteNavLinkRenderer } from './site-nav-link';
|
|
4
|
+
export { MOBILE_NAV_SHEET_ID } from './mobile-nav-sheet-id';
|
|
5
|
+
export interface MobileNavSheetProps {
|
|
6
|
+
nav: SiteNav;
|
|
7
|
+
isOpen: boolean;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
/** The host router's pathname: the group holding the current page starts open. */
|
|
10
|
+
pathname: string;
|
|
11
|
+
logo: React.ReactNode;
|
|
12
|
+
renderLink?: SiteNavLinkRenderer;
|
|
13
|
+
/** The primary CTA node when `nav.primaryCta` is `'trial'` or `'waitlist'`. */
|
|
14
|
+
cta?: React.ReactNode;
|
|
15
|
+
/** Host nodes shown above the pinned CTA (a sign-up button). */
|
|
16
|
+
actions?: React.ReactNode;
|
|
17
|
+
/** The Mingo row at the top (`MingoAiButton variant="field"`): the assistant's
|
|
18
|
+
* name and icon; `source` scopes the `ask-ai:open` event. Omitted: no row. */
|
|
19
|
+
askAI?: {
|
|
20
|
+
source?: string;
|
|
21
|
+
icon?: React.ReactNode;
|
|
22
|
+
label?: string;
|
|
23
|
+
};
|
|
24
|
+
/** Host-added groups after the site's own (Profile, Admin). */
|
|
25
|
+
extraMenus?: NavMenu[];
|
|
26
|
+
/** Values for `NavLink.badgeKey`. */
|
|
27
|
+
badges?: Record<string, number>;
|
|
28
|
+
/** Rendered under the links of a menu with `showSocial`. */
|
|
29
|
+
social?: React.ReactNode;
|
|
30
|
+
/** Opaque ODS background class. Default `bg-ods-bg`. */
|
|
31
|
+
backgroundClassName?: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Would the sheet list anything from this navigation? The header's menu button
|
|
35
|
+
* and the sheet read this one answer (plus whatever the host adds: a profile
|
|
36
|
+
* entry, a sign-up button), so a button never opens an empty sheet.
|
|
37
|
+
*/
|
|
38
|
+
export declare function siteNavHasMobileMenus(nav: Pick<SiteNav, 'menus' | 'mobileMenus'>): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The site navigation below `lg`: a full-screen sheet drawn from the same
|
|
41
|
+
* `SiteNav` as the header. Each menu with links is an accordion that expands
|
|
42
|
+
* in place; the primary CTA and Sign in stay pinned at the bottom while the
|
|
43
|
+
* body scrolls.
|
|
44
|
+
*
|
|
45
|
+
* Unmounted while closed (the header's panels are what crawlers read).
|
|
46
|
+
*/
|
|
47
|
+
export declare function MobileNavSheet(props: MobileNavSheetProps): React.JSX.Element | null;
|
|
48
|
+
//# sourceMappingURL=mobile-nav-sheet.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mobile-nav-sheet.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/mobile-nav-sheet.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAW,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AASxE,OAAO,EAA6C,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEtG,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kFAAkF;IAClF,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,+EAA+E;IAC/E,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,gEAAgE;IAChE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;mFAC+E;IAC/E,KAAK,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpE,+DAA+D;IAC/D,UAAU,CAAC,EAAE,OAAO,EAAE,CAAC;IACvB,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAAC,GAAG,OAAO,CAE1F;AAUD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,mBAAmB,4BAKxD"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { NavLink } from '../../types/navigation';
|
|
3
|
+
import { type SiteNavLinkRenderer } from './site-nav-link';
|
|
4
|
+
export type NavItemRowVariant = 'panel' | 'sheet' | 'side' | 'label';
|
|
5
|
+
export interface NavItemRowProps {
|
|
6
|
+
link: NavLink;
|
|
7
|
+
/**
|
|
8
|
+
* - `panel` (default): a desktop menu row, 36px icon tile, label, description.
|
|
9
|
+
* - `sheet`: the mobile sheet's row, 32px tile, at least 52px tall.
|
|
10
|
+
* - `side`: a mega menu's side list, a small bare icon and the label.
|
|
11
|
+
* - `label`: the label only (footer columns).
|
|
12
|
+
*/
|
|
13
|
+
variant?: NavItemRowVariant;
|
|
14
|
+
renderLink?: SiteNavLinkRenderer;
|
|
15
|
+
/** The live counter for `link.badgeKey`; nothing renders at 0 or undefined. */
|
|
16
|
+
badge?: number;
|
|
17
|
+
/** Called on activation, so the menu or sheet holding the row can close. */
|
|
18
|
+
onNavigate?: () => void;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* One navigation row, shared by the desktop panels, the mobile sheet and the
|
|
23
|
+
* footer columns: icon tile or agent avatar, label, description, the
|
|
24
|
+
* "Built on ..." line and an optional live counter.
|
|
25
|
+
*/
|
|
26
|
+
export declare function NavItemRow({ link, variant, renderLink, badge, onNavigate, className, }: NavItemRowProps): React.JSX.Element;
|
|
27
|
+
//# sourceMappingURL=nav-item-row.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav-item-row.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/nav-item-row.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAGtD,OAAO,EAA2D,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGpH,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;AAErE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,OAAO,CAAC;IACd;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,+EAA+E;IAC/E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4EAA4E;IAC5E,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsCD;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,OAAiB,EACjB,UAAqC,EACrC,KAAK,EACL,UAAU,EACV,SAAS,GACV,EAAE,eAAe,qBAoDjB"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type HTMLAttributes } from 'react';
|
|
3
|
+
import type { NavMenu } from '../../types/navigation';
|
|
4
|
+
import { type SiteNavLinkRenderer } from './site-nav-link';
|
|
5
|
+
/** True when a menu opens the full-width mega panel instead of a dropdown list. */
|
|
6
|
+
export declare function isMegaMenu(menu: Pick<NavMenu, 'columns' | 'features' | 'sideLinks'>): boolean;
|
|
7
|
+
export interface NavPanelProps extends Omit<HTMLAttributes<HTMLDivElement>, 'children'> {
|
|
8
|
+
menu: NavMenu;
|
|
9
|
+
open: boolean;
|
|
10
|
+
renderLink?: SiteNavLinkRenderer;
|
|
11
|
+
/** Values for `NavLink.badgeKey`. */
|
|
12
|
+
badges?: Record<string, number>;
|
|
13
|
+
/** Rendered under the links of a menu with `showSocial`. */
|
|
14
|
+
social?: React.ReactNode;
|
|
15
|
+
/** Called when a link is activated, so the owner can close the menu. */
|
|
16
|
+
onNavigate?: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* How an OPEN mega menu arrived: `open` from a closed bar (the panel fades
|
|
19
|
+
* in), `from-start` / `from-end` from the mega menu before or after it in
|
|
20
|
+
* the row (the surface stays put and only the content slides in from that
|
|
21
|
+
* side). Default `open`.
|
|
22
|
+
*/
|
|
23
|
+
motion?: NavPanelMotion;
|
|
24
|
+
/**
|
|
25
|
+
* Another mega menu is open: this closed one leaves without a fade, so the
|
|
26
|
+
* two panels never show through each other mid-switch.
|
|
27
|
+
*/
|
|
28
|
+
handoff?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export type NavPanelMotion = 'open' | 'from-start' | 'from-end';
|
|
31
|
+
/**
|
|
32
|
+
* The panel a header menu opens, in the one shape its data asks for: a single
|
|
33
|
+
* column is a compact dropdown under its trigger; more than one column, or
|
|
34
|
+
* features, or side links make the full-width mega menu under the bar.
|
|
35
|
+
*
|
|
36
|
+
* Always in the DOM, so crawlers see every link; closed, it is `inert` (out of
|
|
37
|
+
* the tab order and the accessibility tree, which `aria-hidden` alone would
|
|
38
|
+
* not do) and invisible. Plain `<div>`s on purpose: these are disclosures of
|
|
39
|
+
* links, not an ARIA menu, so there is no `role="menu"` and Tab moves through
|
|
40
|
+
* the links in DOM order.
|
|
41
|
+
*/
|
|
42
|
+
export declare const NavPanel: React.ForwardRefExoticComponent<NavPanelProps & React.RefAttributes<HTMLDivElement>>;
|
|
43
|
+
//# sourceMappingURL=nav-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nav-panel.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/nav-panel.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,KAAK,EAAY,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAIhE,OAAO,EAA4B,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAKrF,mFAAmF;AACnF,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,EAAE,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC,GAAG,OAAO,CAE7F;AAED,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACrF,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,4DAA4D;IAC5D,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,YAAY,GAAG,UAAU,CAAC;AAsChE;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,sFAuGnB,CAAC"}
|
|
@@ -34,8 +34,7 @@ export declare const NavigationSidebarItemButton: import("react").NamedExoticCom
|
|
|
34
34
|
*
|
|
35
35
|
* Deliberately in this file, beside `NavigationSidebarItemButton`: the two must
|
|
36
36
|
* agree on `h-14`, the `p-[var(--spacing-system-m)]` inset, the 24px icon box and
|
|
37
|
-
* the label column, or the nav resizes on the handoff.
|
|
38
|
-
* `header-skeleton.tsx` sits beside `header.tsx`.
|
|
37
|
+
* the label column, or the nav resizes on the handoff.
|
|
39
38
|
*
|
|
40
39
|
* `showLabel` is the sidebar's own minimized state, so the caller passes what it
|
|
41
40
|
* already passes the real row — no separate width handling.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigation-sidebar-item.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/navigation-sidebar-item.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyD,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAE/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAUpE,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,iGAAiG;IACjG,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACpE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,wEA2GtC,CAAC;AAEH
|
|
1
|
+
{"version":3,"file":"navigation-sidebar-item.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/navigation-sidebar-item.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAyD,KAAK,UAAU,EAAE,MAAM,OAAO,CAAC;AAE/F,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAUpE,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,qBAAqB,CAAC;IAC5B,iGAAiG;IACjG,QAAQ,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,CAAC,IAAI,EAAE,qBAAqB,EAAE,KAAK,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;CACpE;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,2BAA2B,wEA2GtC,CAAC;AAEH;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CAAC,EAAE,SAAS,EAAE,EAAE;IAAE,SAAS,EAAE,OAAO,CAAA;CAAE,+BASlF"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { SiteNav } from '../../types/navigation';
|
|
3
|
+
import { type SiteNavLinkRenderer } from './site-nav-link';
|
|
4
|
+
export interface SiteFooterProps {
|
|
5
|
+
nav: SiteNav;
|
|
6
|
+
logo: React.ReactNode;
|
|
7
|
+
/** The platform's name beside the logo: a string is set as the wordmark, a
|
|
8
|
+
* node is drawn as given (a platform with its own styled name). */
|
|
9
|
+
name?: React.ReactNode;
|
|
10
|
+
renderLink?: SiteNavLinkRenderer;
|
|
11
|
+
/** The closing band's primary CTA when `nav.primaryCta` is `'trial'` or `'waitlist'`. */
|
|
12
|
+
cta?: React.ReactNode;
|
|
13
|
+
/** Replaces the default social row built from `nav.brand.social` (each
|
|
14
|
+
* link's `iconName` is its social platform key). */
|
|
15
|
+
social?: React.ReactNode;
|
|
16
|
+
/** Rendered in the brand column, under the tagline and the social links. */
|
|
17
|
+
brandExtra?: React.ReactNode;
|
|
18
|
+
/** Opaque ODS background class. Default `bg-ods-bg`. */
|
|
19
|
+
backgroundClassName?: string;
|
|
20
|
+
/** Generated, never typed. Default: the current year. */
|
|
21
|
+
year?: number;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* The site footer of every platform, drawn from one `SiteNav`: the closing
|
|
25
|
+
* band, the brand column, the link columns and the legal line.
|
|
26
|
+
*/
|
|
27
|
+
export declare function SiteFooter({ nav, logo, name, renderLink, cta, social, brandExtra, backgroundClassName, year, }: SiteFooterProps): React.JSX.Element;
|
|
28
|
+
//# sourceMappingURL=site-footer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-footer.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/site-footer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAY,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAMhE,OAAO,EAA2D,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEpH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,OAAO,CAAC;IACb,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB;wEACoE;IACpE,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,yFAAyF;IACzF,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB;yDACqD;IACrD,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,4EAA4E;IAC5E,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,wDAAwD;IACxD,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA2FD;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACzB,GAAG,EACH,IAAI,EACJ,IAAI,EACJ,UAAqC,EACrC,GAAG,EACH,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,IAA+B,GAChC,EAAE,eAAe,qBAwHjB"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { SiteNav } from '../../types/navigation';
|
|
3
|
+
import { type SiteNavLinkRenderer } from './site-nav-link';
|
|
4
|
+
export interface SiteHeaderProps {
|
|
5
|
+
nav: SiteNav;
|
|
6
|
+
/** The host router's pathname: marks the active section and closes menus on navigation. */
|
|
7
|
+
pathname: string;
|
|
8
|
+
logo: React.ReactNode;
|
|
9
|
+
/** Omitted: the logo is not a link. */
|
|
10
|
+
logoHref?: string;
|
|
11
|
+
/** The host's link (Next `Link`, unified navigation). Default: `<a>`. */
|
|
12
|
+
renderLink?: SiteNavLinkRenderer;
|
|
13
|
+
/** Leading cells (admin sidebar toggle). Each cell owns its divider. */
|
|
14
|
+
leading?: React.ReactNode;
|
|
15
|
+
/** Host actions at the right (profile button, custom buttons). Shown at every width. */
|
|
16
|
+
actions?: React.ReactNode;
|
|
17
|
+
/** The primary CTA node when `nav.primaryCta` is `'trial'` or `'waitlist'`. */
|
|
18
|
+
cta?: React.ReactNode;
|
|
19
|
+
/** Trailing cells (ticket alerts). Each cell owns its divider. */
|
|
20
|
+
sideActions?: React.ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* The Mingo AI launcher, first in the right cluster (before Sign in).
|
|
23
|
+
* Omitted: no launcher. `icon` and `label` are the server-configured
|
|
24
|
+
* assistant identity (the same ones the chat panel shows); `source` scopes
|
|
25
|
+
* the `ask-ai:open` event the launcher dispatches.
|
|
26
|
+
*/
|
|
27
|
+
mingo?: {
|
|
28
|
+
source?: string;
|
|
29
|
+
icon?: React.ReactNode;
|
|
30
|
+
label?: string;
|
|
31
|
+
shortcutHint?: boolean;
|
|
32
|
+
};
|
|
33
|
+
/** Omitted: no burger. */
|
|
34
|
+
mobile?: {
|
|
35
|
+
isOpen: boolean;
|
|
36
|
+
onToggle: () => void;
|
|
37
|
+
controlsId?: string;
|
|
38
|
+
};
|
|
39
|
+
/** Values for `NavLink.badgeKey`. */
|
|
40
|
+
badges?: Record<string, number>;
|
|
41
|
+
/** Rendered under a menu with `showSocial`. */
|
|
42
|
+
social?: React.ReactNode;
|
|
43
|
+
autoHide?: boolean;
|
|
44
|
+
/** Opaque ODS background class. */
|
|
45
|
+
backgroundClassName?: string;
|
|
46
|
+
className?: string;
|
|
47
|
+
style?: React.CSSProperties;
|
|
48
|
+
/** The id the "Skip to content" link targets. Default `main-content`. */
|
|
49
|
+
skipToContentId?: string;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* The site header of every platform, drawn from one `SiteNav`: logo, the
|
|
53
|
+
* menus left-aligned after it, then the Mingo AI launcher, Sign in, the host's
|
|
54
|
+
* actions, the primary CTA (the only button) and the trailing cells. A
|
|
55
|
+
* platform differs only in the data and the slots it passes.
|
|
56
|
+
*
|
|
57
|
+
* Below `lg` the menus and Sign in leave the bar (they live in
|
|
58
|
+
* `MobileNavSheet`); the host's actions, the CTA and the launcher stay.
|
|
59
|
+
*/
|
|
60
|
+
export declare function SiteHeader({ nav, pathname, logo, logoHref, renderLink, leading, actions, cta, sideActions, mingo, mobile, badges, social, autoHide, backgroundClassName, className, style, skipToContentId, }: SiteHeaderProps): React.JSX.Element;
|
|
61
|
+
//# sourceMappingURL=site-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"site-header.d.ts","sourceRoot":"","sources":["../../../src/components/navigation/site-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAW,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAW/D,OAAO,EAA6C,KAAK,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAGtG,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,OAAO,CAAC;IACb,2FAA2F;IAC3F,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yEAAyE;IACzE,UAAU,CAAC,EAAE,mBAAmB,CAAC;IACjC,wEAAwE;IACxE,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,wFAAwF;IACxF,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,+EAA+E;IAC/E,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,kEAAkE;IAClE,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B;;;;;OAKG;IACH,KAAK,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5F,0BAA0B;IAC1B,MAAM,CAAC,EAAE;QAAE,MAAM,EAAE,OAAO,CAAC;QAAC,QAAQ,EAAE,MAAM,IAAI,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACxE,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,+CAA+C;IAC/C,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAcD;;;;;;;;GAQG;AACH,wBAAgB,UAAU,CAAC,EACzB,GAAG,EACH,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,UAAqC,EACrC,OAAO,EACP,OAAO,EACP,GAAG,EACH,WAAW,EACX,KAAK,EACL,MAAM,EACN,MAAM,EACN,MAAM,EACN,QAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,KAAK,EACL,eAAgC,GACjC,EAAE,eAAe,qBA8OjB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { NavLink } from '../../types/navigation';
|
|
3
|
+
/**
|
|
4
|
+
* How a host renders one navigation link (Next `Link`, a unified-navigation
|
|
5
|
+
* anchor). Every site navigation component takes one; omitted, links go
|
|
6
|
+
* through {@link defaultRenderSiteNavLink}.
|
|
7
|
+
*/
|
|
8
|
+
export type SiteNavLinkRenderer = (props: {
|
|
9
|
+
link: Pick<NavLink, 'href' | 'external'>;
|
|
10
|
+
className?: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
13
|
+
'aria-current'?: 'page';
|
|
14
|
+
'aria-label'?: string;
|
|
15
|
+
}) => React.ReactNode;
|
|
16
|
+
/**
|
|
17
|
+
* The default link: the library's `Link` shim (a plain `<a>`, or the host's
|
|
18
|
+
* registered router link, so internal links soft-navigate), opened in a new
|
|
19
|
+
* tab for a link that leaves the site.
|
|
20
|
+
*/
|
|
21
|
+
export declare const defaultRenderSiteNavLink: SiteNavLinkRenderer;
|
|
22
|
+
/** A link's label, with its `{count}` token filled from `link.count`. */
|
|
23
|
+
export declare function navLinkLabel(link: Pick<NavLink, 'label' | 'count'>): string;
|
|
24
|
+
/** Focus ring shared by every navigation link and trigger. */
|
|
25
|
+
export declare const NAV_FOCUS_CLASS = "outline-none focus-visible:ring-2 focus-visible:ring-ods-accent";
|
|
26
|
+
//# sourceMappingURL=site-nav-link.d.ts.map
|