@flamingo-stack/openframe-frontend-core 0.0.825 → 0.0.826
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/build/export-map.json +1 -1
- package/dist/{case-study-card-IZBMHA6R.cjs → case-study-card-O4IQCJAX.cjs} +5 -5
- package/dist/{chunk-QOAA7ZHB.cjs → chunk-2HQNXX2K.cjs} +2 -2
- package/dist/{chunk-2U7GXE3T.cjs → chunk-2TQJSB62.cjs} +2157 -811
- package/dist/{chunk-NONMZ5WJ.cjs → chunk-2VLPXUQK.cjs} +14 -83
- package/dist/{chunk-7DJWIVQC.cjs → chunk-37OYBX7W.cjs} +36 -36
- package/dist/{chunk-OBQ5WUNG.cjs → chunk-3B6ZE4EZ.cjs} +29 -29
- package/dist/{chunk-AO6YVNAH.cjs → chunk-5AQKXEMI.cjs} +979 -1357
- package/dist/{chunk-25HBH4J6.cjs → chunk-5BM7X4GA.cjs} +2 -2
- package/dist/{chunk-47SHKOCY.cjs → chunk-63T2KKDZ.cjs} +86 -86
- package/dist/{chunk-MHR4C465.cjs → chunk-6G4WRMEM.cjs} +3 -3
- package/dist/{chunk-AUBR3FGY.cjs → chunk-74GWFGH2.cjs} +28 -28
- package/dist/{chunk-467T3LCG.cjs → chunk-7PZQ7SHB.cjs} +49 -32
- package/dist/{chunk-6LVJKPR3.cjs → chunk-AJM4YZTW.cjs} +8 -8
- package/dist/{chunk-2XLPRW7V.cjs → chunk-BIG3O33P.cjs} +6 -2
- package/dist/chunk-BMQLM2NU.cjs +40 -0
- package/dist/{chunk-DVHSYPDB.cjs → chunk-DAKGX2WF.cjs} +2 -2
- package/dist/{chunk-2IWAHBCC.cjs → chunk-DRSFR5AC.cjs} +159 -159
- package/dist/{chunk-IJCSQFLD.cjs → chunk-DU6AF77X.cjs} +83 -121
- package/dist/{chunk-NL34HKLS.cjs → chunk-EJNDTSKY.cjs} +91 -91
- package/dist/{chunk-SBFBNOKU.cjs → chunk-ENMPSEEQ.cjs} +4 -4
- package/dist/{chunk-ZECG6GU5.cjs → chunk-F2J5WN6U.cjs} +2 -2
- package/dist/{chunk-BOS7OIC4.cjs → chunk-GRHF5SWL.cjs} +5 -2
- package/dist/{chunk-Z7BLMJEI.cjs → chunk-GZAPOCKS.cjs} +54 -54
- package/dist/{chunk-5S2GW6YG.cjs → chunk-HJAPXKWK.cjs} +17 -17
- package/dist/{chunk-P25RVNGX.cjs → chunk-HQ4FKHOO.cjs} +249 -108
- package/dist/{chunk-ZRDVFADQ.cjs → chunk-IBD2FPSX.cjs} +75 -9
- package/dist/{chunk-T266OITJ.cjs → chunk-IKWQW3YJ.cjs} +45 -45
- package/dist/{chunk-B7NSH7IK.cjs → chunk-IWQ2LJGW.cjs} +5 -5
- package/dist/{chunk-MALCUN2G.cjs → chunk-JDR72QFU.cjs} +12 -14
- package/dist/{chunk-EHANO6UE.cjs → chunk-K34TTZAE.cjs} +9 -129
- package/dist/{chunk-QDDBOCG3.cjs → chunk-KPGKTEEB.cjs} +2 -2
- package/dist/{chunk-4IY5FKYL.cjs → chunk-MDEOCOIE.cjs} +23 -23
- package/dist/chunk-OEP5KAT6.cjs +56 -0
- package/dist/chunk-OT6P57ZS.cjs +94 -0
- package/dist/{chunk-QQT23JJ7.cjs → chunk-PBHP3FHO.cjs} +4 -4
- package/dist/{chunk-IMMTH3F3.cjs → chunk-PJY3SYCS.cjs} +29 -27
- package/dist/{chunk-N7IDLF2G.cjs → chunk-PWAKRRRO.cjs} +1283 -268
- package/dist/{chunk-UEULXVW2.cjs → chunk-QS6AKUUL.cjs} +22 -22
- package/dist/{chunk-BN7QENV7.cjs → chunk-QYJZDEG7.cjs} +6 -6
- package/dist/{chunk-NPNZAAOB.cjs → chunk-S6UJEW4G.cjs} +2 -2
- package/dist/{chunk-XJMLZ63Y.cjs → chunk-TJG2BJ5J.cjs} +4 -4
- package/dist/{chunk-QOOMUGF2.cjs → chunk-TYJ73DHW.cjs} +15 -15
- package/dist/{chunk-A34UNP5V.cjs → chunk-W4VEDSAX.cjs} +80 -11
- package/dist/{chunk-DNZCSPMU.cjs → chunk-WGMU45NV.cjs} +20 -20
- package/dist/{chunk-APTFXX2C.cjs → chunk-XDHQC4XH.cjs} +46 -46
- package/dist/{cloud-tenants-M4VFFN33.cjs → cloud-tenants-F67KQ5GC.cjs} +108 -106
- package/dist/components/case-studies/index.cjs +124 -122
- package/dist/components/chat/approval-batch-message.d.ts.map +1 -1
- package/dist/components/chat/approval-batch-message.js +2 -2
- package/dist/components/chat/chat-archive-page.d.ts +7 -0
- package/dist/components/chat/chat-archive-page.d.ts.map +1 -1
- package/dist/components/chat/chat-archive-page.js +9 -0
- package/dist/components/chat/chat-composer.d.ts +24 -4
- package/dist/components/chat/chat-composer.d.ts.map +1 -1
- package/dist/components/chat/chat-composer.js +90 -48
- package/dist/components/chat/chat-context-memory-bar.d.ts +4 -1
- package/dist/components/chat/chat-context-memory-bar.d.ts.map +1 -1
- package/dist/components/chat/chat-context-memory-bar.js +8 -5
- package/dist/components/chat/chat-context-picker.d.ts +8 -1
- package/dist/components/chat/chat-context-picker.d.ts.map +1 -1
- package/dist/components/chat/chat-context-picker.js +32 -9
- package/dist/components/chat/chat-header-rename-field.d.ts +18 -0
- package/dist/components/chat/chat-header-rename-field.d.ts.map +1 -0
- package/dist/components/chat/chat-header-rename-field.js +49 -0
- package/dist/components/chat/chat-input.d.ts.map +1 -1
- package/dist/components/chat/chat-input.js +5 -0
- package/dist/components/chat/composer-sheet.d.ts +44 -0
- package/dist/components/chat/composer-sheet.d.ts.map +1 -0
- package/dist/components/chat/composer-sheet.js +140 -0
- package/dist/components/chat/embeddable-chat.d.ts +114 -1
- package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
- package/dist/components/chat/embeddable-chat.js +328 -215
- package/dist/components/chat/index.cjs +118 -103
- package/dist/components/chat/index.d.ts +6 -0
- package/dist/components/chat/index.d.ts.map +1 -1
- package/dist/components/chat/index.js +9 -0
- package/dist/components/chat/mingo-chat-day-groups.d.ts +18 -0
- package/dist/components/chat/mingo-chat-day-groups.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-day-groups.js +45 -0
- package/dist/components/chat/mingo-chat-header.d.ts +34 -6
- package/dist/components/chat/mingo-chat-header.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-header.js +44 -7
- package/dist/components/chat/mingo-chat-history-section.d.ts +30 -0
- package/dist/components/chat/mingo-chat-history-section.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-history-section.js +500 -0
- package/dist/components/chat/mingo-chat-history.d.ts +5 -2
- package/dist/components/chat/mingo-chat-history.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-history.js +26 -30
- package/dist/components/chat/mingo-chat-list-shared.d.ts +136 -0
- package/dist/components/chat/mingo-chat-list-shared.d.ts.map +1 -0
- package/dist/components/chat/mingo-chat-list-shared.js +76 -0
- package/dist/components/chat/mingo-chat-rail.d.ts +19 -51
- package/dist/components/chat/mingo-chat-rail.d.ts.map +1 -1
- package/dist/components/chat/mingo-chat-rail.js +23 -45
- package/dist/components/chat/mingo-edge-light.d.ts +13 -0
- package/dist/components/chat/mingo-edge-light.d.ts.map +1 -0
- package/dist/components/chat/mingo-edge-light.js +17 -0
- package/dist/components/chat/mingo-history-rail.d.ts +5 -4
- package/dist/components/chat/mingo-history-rail.d.ts.map +1 -1
- package/dist/components/chat/mingo-history-rail.js +5 -10
- package/dist/components/chat/mingo-quick-action-wall.d.ts +27 -0
- package/dist/components/chat/mingo-quick-action-wall.d.ts.map +1 -0
- package/dist/components/chat/mingo-quick-action-wall.js +41 -0
- package/dist/components/chat/mingo-welcome.d.ts.map +1 -1
- package/dist/components/chat/mingo-welcome.js +6 -20
- package/dist/components/chat/model-display.d.ts.map +1 -1
- package/dist/components/chat/model-display.js +38 -9
- package/dist/components/chat/tool-execution-display.d.ts.map +1 -1
- package/dist/components/chat/tool-execution-display.js +15 -1
- package/dist/components/chat/types/component.types.d.ts +13 -1
- package/dist/components/chat/types/component.types.d.ts.map +1 -1
- package/dist/components/chat/utils/chat-day-label.d.ts +8 -0
- package/dist/components/chat/utils/chat-day-label.d.ts.map +1 -0
- package/dist/components/chat/utils/chat-day-label.js +21 -0
- package/dist/components/contact/index.cjs +109 -107
- package/dist/components/docs/index.cjs +112 -110
- package/dist/components/embeds/index.cjs +109 -107
- package/dist/components/faq/index.cjs +110 -108
- package/dist/components/features/board/board-column.d.ts +3 -1
- package/dist/components/features/board/board-column.d.ts.map +1 -1
- package/dist/components/features/board/board-column.js +6 -2
- package/dist/components/features/board/board.d.ts +6 -0
- package/dist/components/features/board/board.d.ts.map +1 -1
- package/dist/components/features/board/board.js +14 -3
- package/dist/components/features/board/touch-board.d.ts +1 -1
- package/dist/components/features/board/touch-board.d.ts.map +1 -1
- package/dist/components/features/board/touch-board.js +3 -1
- package/dist/components/features/index.cjs +108 -106
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts +7 -1
- package/dist/components/features/notifications/approval-request-notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
- package/dist/components/features/notifications/notification-drawer.d.ts +6 -1
- package/dist/components/features/notifications/notification-drawer.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-drawer.js +3 -2
- package/dist/components/features/notifications/notification-tile.d.ts +4 -1
- package/dist/components/features/notifications/notification-tile.d.ts.map +1 -1
- package/dist/components/features/notifications/notification-tile.js +9 -7
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts +18 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.d.ts.map +1 -1
- package/dist/components/features/time-tracker/time-tracker-header-button.js +31 -7
- package/dist/components/help-center-pages/index.cjs +217 -215
- package/dist/components/icons-v2-generated/icon-loaders.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/icon-loaders.js +1 -0
- package/dist/components/icons-v2-generated/icon-names.js +1 -1
- package/dist/components/icons-v2-generated/index.cjs +90 -86
- package/dist/components/icons-v2-generated/loaders/dots-loader-icon.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/loaders/dots-loader-icon.js +21 -24
- package/dist/components/icons-v2-generated/logos/index.d.ts +1 -0
- package/dist/components/icons-v2-generated/logos/index.d.ts.map +1 -1
- package/dist/components/icons-v2-generated/logos/index.js +2 -0
- package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts +9 -0
- package/dist/components/icons-v2-generated/logos/mingo-logo-icon.d.ts.map +1 -0
- package/dist/components/icons-v2-generated/logos/mingo-logo-icon.js +36 -0
- package/dist/components/index.cjs +215 -182
- package/dist/components/meeting-scheduler/index.cjs +182 -180
- package/dist/components/navigation/account-popover.d.ts +62 -0
- package/dist/components/navigation/account-popover.d.ts.map +1 -0
- package/dist/components/navigation/account-popover.js +138 -0
- package/dist/components/navigation/app-header.d.ts +36 -2
- package/dist/components/navigation/app-header.d.ts.map +1 -1
- package/dist/components/navigation/app-header.js +28 -24
- package/dist/components/navigation/app-layout-context.d.ts +17 -0
- package/dist/components/navigation/app-layout-context.d.ts.map +1 -1
- package/dist/components/navigation/app-layout-context.js +9 -1
- package/dist/components/navigation/app-layout.d.ts +93 -1
- package/dist/components/navigation/app-layout.d.ts.map +1 -1
- package/dist/components/navigation/app-layout.js +149 -30
- package/dist/components/navigation/header-button.d.ts +11 -1
- package/dist/components/navigation/header-button.d.ts.map +1 -1
- package/dist/components/navigation/header-button.js +16 -5
- package/dist/components/navigation/header-mingo-button.d.ts.map +1 -1
- package/dist/components/navigation/header-mingo-button.js +6 -5
- package/dist/components/navigation/index.cjs +120 -109
- package/dist/components/navigation/index.d.ts +10 -1
- package/dist/components/navigation/index.d.ts.map +1 -1
- package/dist/components/navigation/index.js +8 -0
- package/dist/components/navigation/mingo-ai-button.d.ts.map +1 -1
- package/dist/components/navigation/mingo-ai-button.js +2 -1
- package/dist/components/navigation/mobile-burger-menu.d.ts.map +1 -1
- package/dist/components/navigation/mobile-burger-menu.js +155 -39
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts +57 -0
- package/dist/components/navigation/navigation-sidebar-grouped.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-grouped.js +365 -0
- package/dist/components/navigation/navigation-sidebar-match.d.ts +37 -0
- package/dist/components/navigation/navigation-sidebar-match.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-match.js +85 -0
- package/dist/components/navigation/navigation-sidebar-slot.d.ts +7 -0
- package/dist/components/navigation/navigation-sidebar-slot.d.ts.map +1 -0
- package/dist/components/navigation/navigation-sidebar-slot.js +11 -0
- package/dist/components/navigation/navigation-sidebar-toggle.d.ts +7 -1
- package/dist/components/navigation/navigation-sidebar-toggle.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar-toggle.js +52 -23
- package/dist/components/navigation/navigation-sidebar.d.ts +13 -1
- package/dist/components/navigation/navigation-sidebar.d.ts.map +1 -1
- package/dist/components/navigation/navigation-sidebar.js +188 -52
- package/dist/components/navigation/notifications-bell-button.d.ts +28 -0
- package/dist/components/navigation/notifications-bell-button.d.ts.map +1 -0
- package/dist/components/navigation/notifications-bell-button.js +44 -0
- package/dist/components/navigation/ticket-alerts-button.d.ts +7 -1
- package/dist/components/navigation/ticket-alerts-button.d.ts.map +1 -1
- package/dist/components/navigation/ticket-alerts-button.js +3 -2
- package/dist/components/onboarding-guides/index.cjs +111 -109
- package/dist/components/product-demo/index.cjs +119 -117
- package/dist/components/related-content/index.cjs +13 -13
- package/dist/components/tickets/index.cjs +115 -113
- package/dist/components/ui/actions-menu.d.ts +6 -1
- package/dist/components/ui/actions-menu.d.ts.map +1 -1
- package/dist/components/ui/actions-menu.js +6 -2
- package/dist/components/ui/fade-preview.d.ts +8 -0
- package/dist/components/ui/fade-preview.d.ts.map +1 -1
- package/dist/components/ui/fade-preview.js +7 -5
- package/dist/components/ui/index.cjs +136 -111
- package/dist/components/ui/index.d.ts +1 -0
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/index.js +1 -0
- package/dist/components/ui/mobile-action-bar.d.ts +14 -0
- package/dist/components/ui/mobile-action-bar.d.ts.map +1 -0
- package/dist/components/ui/mobile-action-bar.js +68 -0
- package/dist/components/ui/no-data/no-data-styles.d.ts +1 -1
- package/dist/components/ui/no-data/no-data-styles.d.ts.map +1 -1
- package/dist/components/ui/no-data/no-data-styles.js +1 -1
- package/dist/components/ui/page-actions.d.ts.map +1 -1
- package/dist/components/ui/page-actions.js +24 -8
- package/dist/components/ui/panel-resize-handle.d.ts +6 -2
- package/dist/components/ui/panel-resize-handle.d.ts.map +1 -1
- package/dist/components/ui/panel-resize-handle.js +6 -3
- package/dist/components/ui/square-avatar.d.ts.map +1 -1
- package/dist/components/ui/square-avatar.js +5 -2
- package/dist/{devices-DW5NDXMD.cjs → devices-SJORCARH.cjs} +109 -107
- package/dist/dots-loader-icon-5JXWD6FB.cjs +7 -0
- package/dist/{embeddable-chat-NBJMXEXB.cjs → embeddable-chat-7Z4CEZJL.cjs} +513 -398
- package/dist/hooks/index.cjs +15 -16
- package/dist/hooks/ui/use-content-breakpoint.d.ts +4 -2
- package/dist/hooks/ui/use-content-breakpoint.d.ts.map +1 -1
- package/dist/{icon-loaders-OLGJZGRP.cjs → icon-loaders-SUPEKMBJ.cjs} +2 -1
- package/dist/index.cjs +154 -121
- package/dist/{knowledge-EYJG2TNW.cjs → knowledge-QXILUVEM.cjs} +109 -107
- package/dist/{logs-2LV7DTSL.cjs → logs-E3KQQQD6.cjs} +118 -115
- package/dist/mingo-logo-icon-WGPBSDTF.cjs +7 -0
- package/dist/{policies-HSDYIQBX.cjs → policies-IOYQY6TF.cjs} +112 -110
- package/dist/{remote-session-BQMTIQTU.cjs → remote-session-QGFG5WAL.cjs} +99 -97
- package/dist/{scripts-UI6V7ANQ.cjs → scripts-E5TWWUNP.cjs} +115 -113
- package/dist/{software-update-WMLY7VHH.cjs → software-update-QZGYG4TD.cjs} +112 -110
- package/dist/{tickets-board-TRXOX77R.cjs → tickets-board-KCH6ITUV.cjs} +95 -94
- package/dist/types/navigation.d.ts +131 -0
- package/dist/types/navigation.d.ts.map +1 -1
- package/dist/utils/index.cjs +65 -25
- package/package.json +1 -1
- package/src/components/chat/approval-batch-message.tsx +3 -2
- package/src/components/chat/chat-archive-page.tsx +16 -0
- package/src/components/chat/chat-composer.tsx +131 -61
- package/src/components/chat/chat-context-memory-bar.tsx +27 -17
- package/src/components/chat/chat-context-picker.tsx +45 -11
- package/src/components/chat/chat-header-rename-field.tsx +68 -0
- package/src/components/chat/chat-input.tsx +9 -1
- package/src/components/chat/composer-sheet.tsx +196 -0
- package/src/components/chat/embeddable-chat.tsx +636 -319
- package/src/components/chat/index.ts +6 -0
- package/src/components/chat/mingo-chat-day-groups.ts +62 -0
- package/src/components/chat/mingo-chat-header.tsx +99 -23
- package/src/components/chat/mingo-chat-history-section.tsx +670 -0
- package/src/components/chat/mingo-chat-history.tsx +31 -45
- package/src/components/chat/mingo-chat-list-shared.tsx +244 -0
- package/src/components/chat/mingo-chat-rail.tsx +45 -97
- package/src/components/chat/mingo-edge-light.tsx +25 -0
- package/src/components/chat/mingo-history-rail.tsx +7 -17
- package/src/components/chat/mingo-quick-action-wall.tsx +64 -0
- package/src/components/chat/mingo-welcome.tsx +5 -19
- package/src/components/chat/model-display.tsx +66 -14
- package/src/components/chat/tool-execution-display.tsx +9 -1
- package/src/components/chat/types/component.types.ts +13 -1
- package/src/components/chat/utils/chat-day-label.ts +24 -0
- package/src/components/features/board/board-column.tsx +8 -0
- package/src/components/features/board/board.tsx +16 -2
- package/src/components/features/board/touch-board.tsx +2 -0
- package/src/components/features/notifications/approval-request-notification-tile.tsx +8 -2
- package/src/components/features/notifications/notification-drawer.tsx +7 -1
- package/src/components/features/notifications/notification-tile.tsx +17 -9
- package/src/components/features/time-tracker/time-tracker-header-button.tsx +53 -6
- package/src/components/icons-v2/icon-colors.json +4 -0
- package/src/components/icons-v2-generated/icon-loaders.ts +1 -0
- package/src/components/icons-v2-generated/icon-names.ts +1 -1
- package/src/components/icons-v2-generated/loaders/dots-loader-icon.tsx +18 -27
- package/src/components/icons-v2-generated/logos/index.ts +1 -0
- package/src/components/icons-v2-generated/logos/mingo-logo-icon.tsx +35 -0
- package/src/components/navigation/account-popover.tsx +198 -0
- package/src/components/navigation/app-header.tsx +74 -33
- package/src/components/navigation/app-layout-context.ts +22 -0
- package/src/components/navigation/app-layout.tsx +290 -24
- package/src/components/navigation/header-button.tsx +27 -5
- package/src/components/navigation/header-mingo-button.tsx +6 -5
- package/src/components/navigation/index.ts +19 -0
- package/src/components/navigation/mingo-ai-button.tsx +2 -3
- package/src/components/navigation/mobile-burger-menu.tsx +219 -53
- package/src/components/navigation/navigation-sidebar-grouped.tsx +554 -0
- package/src/components/navigation/navigation-sidebar-match.ts +152 -0
- package/src/components/navigation/navigation-sidebar-slot.ts +12 -0
- package/src/components/navigation/navigation-sidebar-toggle.tsx +39 -6
- package/src/components/navigation/navigation-sidebar.tsx +278 -61
- package/src/components/navigation/notifications-bell-button.tsx +70 -0
- package/src/components/navigation/ticket-alerts-button.tsx +9 -2
- package/src/components/ui/actions-menu.tsx +19 -3
- package/src/components/ui/fade-preview.tsx +13 -6
- package/src/components/ui/index.ts +1 -0
- package/src/components/ui/mobile-action-bar.ts +87 -0
- package/src/components/ui/no-data/no-data-styles.ts +5 -2
- package/src/components/ui/page-actions.tsx +38 -11
- package/src/components/ui/panel-resize-handle.tsx +14 -5
- package/src/components/ui/square-avatar.tsx +5 -2
- package/src/hooks/ui/use-content-breakpoint.ts +4 -2
- package/src/styles/ods-interaction-states.css +68 -0
- package/src/types/navigation.ts +140 -0
- package/dist/chunk-C7GIHB3V.cjs +0 -59
- package/dist/dots-loader-icon-RBLX46X7.cjs +0 -7
- package/dist/{chunk-ZOZR3QI2.cjs → chunk-46547WQW.cjs} +0 -0
- package/dist/{video-file-player-IAMWBKEQ.cjs → video-file-player-IHO66P2Q.cjs} +1 -1
|
@@ -14,6 +14,16 @@ export interface HeaderButtonProps extends React.ButtonHTMLAttributes<HTMLButton
|
|
|
14
14
|
* notifications-bell treatment, promoted to the cell primitive so
|
|
15
15
|
* indicator cells never copy the dot markup). */
|
|
16
16
|
showUnreadDot?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* - `cell` (default): a full-height cell of a top bar, as wide as the bar's
|
|
19
|
+
* `--top-nav-cell` (56px standalone).
|
|
20
|
+
* - `compact`: for the grouped navigation sidebar's foot (`footerSlot`). In the
|
|
21
|
+
* 56px rail it is a row's cell — the rail's width, 44px tall, the rows' hover,
|
|
22
|
+
* its glyph 8px in — so the foot's icons sit on the tree's icon line; from
|
|
23
|
+
* 140px of sidebar width, a 32px rounded icon button beside the account row.
|
|
24
|
+
* Pass a 20px icon.
|
|
25
|
+
*/
|
|
26
|
+
size?: 'cell' | 'compact';
|
|
17
27
|
/** Additional class names */
|
|
18
28
|
className?: string;
|
|
19
29
|
}
|
|
@@ -22,18 +32,29 @@ export function HeaderButton({
|
|
|
22
32
|
isActive = false,
|
|
23
33
|
icon,
|
|
24
34
|
showUnreadDot = false,
|
|
35
|
+
size = 'cell',
|
|
25
36
|
className,
|
|
26
37
|
...props
|
|
27
38
|
}: HeaderButtonProps) {
|
|
39
|
+
const compact = size === 'compact';
|
|
28
40
|
return (
|
|
29
41
|
<Button
|
|
30
42
|
variant="cell"
|
|
31
43
|
data-state={isActive ? 'active' : undefined}
|
|
32
44
|
className={cn(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
45
|
+
compact
|
|
46
|
+
? cn(
|
|
47
|
+
// A row's cell of the sidebar rail, its glyph on the rows' icon line (8px in), a 32px rounded
|
|
48
|
+
// icon button from 140px; its 20px glyph kept. `min-h-0` drops the bar cell's full-height
|
|
49
|
+
// floor, so the rail's height never stretches it.
|
|
50
|
+
'h-11 min-h-0 w-full justify-start rounded-md pl-[var(--spacing-system-xsf)] pr-0 [&_svg]:h-5 [&_svg]:w-5',
|
|
51
|
+
'@[140px]/of-nav-sidebar:size-8 @[140px]/of-nav-sidebar:justify-center @[140px]/of-nav-sidebar:px-0',
|
|
52
|
+
'disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:bg-transparent',
|
|
53
|
+
)
|
|
54
|
+
: // Square cell width follows the TopNavigation size (56px small /
|
|
55
|
+
// 72px big) via the shell's --top-nav-cell var; 56px fallback for
|
|
56
|
+
// standalone use.
|
|
57
|
+
'w-[var(--top-nav-cell,3.5rem)]',
|
|
37
58
|
className,
|
|
38
59
|
)}
|
|
39
60
|
{...props}
|
|
@@ -41,7 +62,8 @@ export function HeaderButton({
|
|
|
41
62
|
{showUnreadDot ? (
|
|
42
63
|
<span className="relative inline-flex">
|
|
43
64
|
{icon}
|
|
44
|
-
|
|
65
|
+
{/* A 20px glyph takes the sidebar's fixed dot, not the bar's responsive one. */}
|
|
66
|
+
<UnreadDot size={compact ? 'fixed' : 'responsive'} />
|
|
45
67
|
</span>
|
|
46
68
|
) : (
|
|
47
69
|
icon
|
|
@@ -44,11 +44,12 @@ export function HeaderMingoButton({
|
|
|
44
44
|
aria-label={showClose ? 'Close Mingo AI' : 'Mingo AI'}
|
|
45
45
|
aria-pressed={isActive}
|
|
46
46
|
className={cn(
|
|
47
|
-
//
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
//
|
|
51
|
-
|
|
47
|
+
// `iconOnly` (below md): a square cell, the bar's `--top-nav-cell` like every
|
|
48
|
+
// other one (`HeaderButton`), so its divider lines up with what sits under the
|
|
49
|
+
// bar. Otherwise the fixed 140px cell from md, so the header's right-hand
|
|
50
|
+
// cluster has a known width and a loading placeholder can reserve it exactly
|
|
51
|
+
// (`AppHeaderProps.loadingActionCells` → `'wide'`).
|
|
52
|
+
iconOnly ? 'w-[var(--top-nav-cell,3.5rem)]' : 'md:w-[140px]',
|
|
52
53
|
className,
|
|
53
54
|
)}
|
|
54
55
|
{...props}
|
|
@@ -42,9 +42,23 @@ export type { UseScrollSpyOptions } from '../docs/use-scroll-spy';
|
|
|
42
42
|
|
|
43
43
|
export { NAVIGATION_SIDEBAR_WIDTH_VAR, NavigationSidebar } from './navigation-sidebar';
|
|
44
44
|
export type { NavigationSidebarProps } from './navigation-sidebar';
|
|
45
|
+
export { NavigationSidebarActionRow } from './navigation-sidebar-grouped';
|
|
46
|
+
export type { NavigationSidebarActionRowProps } from './navigation-sidebar-grouped';
|
|
47
|
+
export { resolveNavigationActive } from './navigation-sidebar-match';
|
|
48
|
+
export type { NavigationActiveState, ResolveNavigationActiveOptions } from './navigation-sidebar-match';
|
|
49
|
+
export { AccountPopover } from './account-popover';
|
|
50
|
+
export type {
|
|
51
|
+
AccountPopoverDivider,
|
|
52
|
+
AccountPopoverEntry,
|
|
53
|
+
AccountPopoverItem,
|
|
54
|
+
AccountPopoverProps,
|
|
55
|
+
} from './account-popover';
|
|
45
56
|
|
|
46
57
|
export { AppHeader } from './app-header';
|
|
47
58
|
export type { AppHeaderProps, HeaderLoadingCell } from './app-header';
|
|
59
|
+
export type { AppHeaderCell } from './app-header';
|
|
60
|
+
export { NotificationsBellButton } from './notifications-bell-button';
|
|
61
|
+
export type { NotificationsBellButtonProps } from './notifications-bell-button';
|
|
48
62
|
|
|
49
63
|
export { AppLayout } from './app-layout';
|
|
50
64
|
export { useAppLayoutDrawerContainer } from './app-layout-context';
|
|
@@ -107,6 +121,11 @@ export type {
|
|
|
107
121
|
NavigationItem,
|
|
108
122
|
NavigationSidebarConfig,
|
|
109
123
|
NavigationSidebarItem,
|
|
124
|
+
NavigationSidebarLocation,
|
|
125
|
+
NavigationSidebarMatch,
|
|
126
|
+
NavigationSidebarMatchRule,
|
|
127
|
+
NavigationSidebarSlot,
|
|
128
|
+
NavigationSidebarSlotState,
|
|
110
129
|
SiteNav,
|
|
111
130
|
SiteNavPrimaryCta,
|
|
112
131
|
SlidingSidebarConfig,
|
|
@@ -7,6 +7,7 @@ import { useVisitorOs } from '../../hooks/ui/use-visitor-os';
|
|
|
7
7
|
import { cn } from '../../utils';
|
|
8
8
|
import { shortcutLabel, usesCommandKey } from '../../utils/visitor-os';
|
|
9
9
|
import { AgentMark } from '../agent-mark';
|
|
10
|
+
import { MingoEdgeLight } from '../chat/mingo-edge-light';
|
|
10
11
|
import { ASK_AI_OPEN_EVENT, ASK_AI_TRIGGER_ATTRIBUTE } from '../chat/utils/ask-ai-events';
|
|
11
12
|
import { Button } from '../ui/button';
|
|
12
13
|
|
|
@@ -161,9 +162,7 @@ export function MingoAiButton({
|
|
|
161
162
|
(.mingo-edge-frame). NO opaque cover, so the launcher inherits
|
|
162
163
|
whatever background sits behind it. Platform-tinted via the accent
|
|
163
164
|
token. */}
|
|
164
|
-
<
|
|
165
|
-
<span className="mingo-edge" />
|
|
166
|
-
</span>
|
|
165
|
+
<MingoEdgeLight className="rounded-md" />
|
|
167
166
|
{/* One-shot light-streak shimmer on hover, clipped to the outline. */}
|
|
168
167
|
<span aria-hidden="true" className="pointer-events-none absolute inset-0 overflow-hidden rounded-md">
|
|
169
168
|
<span
|
|
@@ -1,18 +1,33 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import { usePreventScroll } from '@react-aria/overlays';
|
|
4
|
-
import React, { useCallback, useRef } from 'react';
|
|
4
|
+
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
5
5
|
import { useFocusTrap } from '../../hooks/ui/use-focus-trap';
|
|
6
|
-
import type {
|
|
6
|
+
import type {
|
|
7
|
+
NavigationSidebarConfig,
|
|
8
|
+
NavigationSidebarItem,
|
|
9
|
+
NavigationSidebarSlotState,
|
|
10
|
+
} from '../../types/navigation';
|
|
7
11
|
import { cn } from '../../utils';
|
|
8
12
|
import { Logout02Icon, PenEditIcon, UserSearchIcon } from '../icons-v2-generated';
|
|
9
13
|
import { Button, SquareAvatar } from '../ui';
|
|
10
14
|
import { OVERLAY_BACKDROP_CLASS } from '../ui/drawer';
|
|
15
|
+
import { PortalContainerContext } from '../ui/portal-container';
|
|
11
16
|
import { NavigationItemBadge } from './navigation-item-badge';
|
|
17
|
+
import { isModifiedClick } from './navigation-sidebar';
|
|
18
|
+
import { NavigationSidebarGroupedEntries, useOpenNavigationGroup } from './navigation-sidebar-grouped';
|
|
19
|
+
import { resolveNavigationActive } from './navigation-sidebar-match';
|
|
20
|
+
import { hasNavigationSidebarSlot, renderNavigationSidebarSlot } from './navigation-sidebar-slot';
|
|
12
21
|
|
|
13
22
|
// Header height constant — the unified top-navigation `small` bar (56px on all screens)
|
|
14
23
|
const HEADER_HEIGHT = 56;
|
|
15
24
|
|
|
25
|
+
/** The drawer always lays its slots out expanded. */
|
|
26
|
+
const DRAWER_SLOT_STATE: NavigationSidebarSlotState = { minimized: false, inDrawer: true };
|
|
27
|
+
|
|
28
|
+
/** The grouped drawer's slide (`duration-300`): how long a closing drawer is still on screen. */
|
|
29
|
+
const DRAWER_SLIDE_MS = 300;
|
|
30
|
+
|
|
16
31
|
export interface MobileBurgerMenuProps {
|
|
17
32
|
/** Whether the menu is open */
|
|
18
33
|
isOpen: boolean;
|
|
@@ -73,6 +88,47 @@ export const MobileBurgerMenu = React.memo(function MobileBurgerMenuImpl({
|
|
|
73
88
|
const primaryItems = config.items.filter(item => item.section !== 'secondary');
|
|
74
89
|
const secondaryItems = config.items.filter(item => item.section === 'secondary');
|
|
75
90
|
|
|
91
|
+
// Grouped variant: the sidebar's own tree and active resolution. A parent
|
|
92
|
+
// only opens and folds, as in the sidebar.
|
|
93
|
+
const grouped = config.variant === 'grouped';
|
|
94
|
+
const { activeId, groupId: activeGroupId } = useMemo(
|
|
95
|
+
() => resolveNavigationActive(config.items, { currentPath: config.currentPath, includeChildren: true }),
|
|
96
|
+
[config.items, config.currentPath],
|
|
97
|
+
);
|
|
98
|
+
const [openGroupId, setOpenGroupId] = useOpenNavigationGroup(activeGroupId);
|
|
99
|
+
const [portalHost, setPortalHost] = useState<HTMLDivElement | null>(null);
|
|
100
|
+
|
|
101
|
+
// The grouped drawer stays mounted (`md:hidden` from md up, off-screen below
|
|
102
|
+
// it), so its section slot — the Mingo chat history — is held only while the
|
|
103
|
+
// drawer is open or still sliding closed. Always mounted, it was a second copy
|
|
104
|
+
// of every history row on every page: React work on each list update, its DOM
|
|
105
|
+
// in every restyle, and its loaders animating unseen.
|
|
106
|
+
const [sectionMounted, setSectionMounted] = useState(isOpen);
|
|
107
|
+
if (isOpen && !sectionMounted) setSectionMounted(true);
|
|
108
|
+
useEffect(() => {
|
|
109
|
+
if (isOpen || !sectionMounted) return undefined;
|
|
110
|
+
const timer = setTimeout(() => setSectionMounted(false), DRAWER_SLIDE_MS);
|
|
111
|
+
return () => clearTimeout(timer);
|
|
112
|
+
}, [isOpen, sectionMounted]);
|
|
113
|
+
// A grouped row is a real anchor (the sidebar's row), so a plain click must
|
|
114
|
+
// not ALSO let the browser follow it when the host routes through
|
|
115
|
+
// `onNavigate`; a modified click is the browser's (new tab) and leaves the
|
|
116
|
+
// menu as it is.
|
|
117
|
+
const handleGroupedItemClick = useCallback(
|
|
118
|
+
(item: NavigationSidebarItem, event?: React.MouseEvent) => {
|
|
119
|
+
if (item.path && !item.onClick) {
|
|
120
|
+
if (isModifiedClick(event)) return;
|
|
121
|
+
if (config.onNavigate) event?.preventDefault();
|
|
122
|
+
}
|
|
123
|
+
handleItemClick(item);
|
|
124
|
+
},
|
|
125
|
+
[config.onNavigate, handleItemClick],
|
|
126
|
+
);
|
|
127
|
+
const handleGroupClick = useCallback(
|
|
128
|
+
(item: NavigationSidebarItem) => setOpenGroupId(current => (current === item.id ? null : item.id)),
|
|
129
|
+
[setOpenGroupId],
|
|
130
|
+
);
|
|
131
|
+
|
|
76
132
|
const renderNavigationItem = (item: NavigationSidebarItem, isGridItem = false) => {
|
|
77
133
|
const isActive = item.isActive ?? false;
|
|
78
134
|
|
|
@@ -129,6 +185,165 @@ export const MobileBurgerMenu = React.memo(function MobileBurgerMenuImpl({
|
|
|
129
185
|
</div>
|
|
130
186
|
);
|
|
131
187
|
|
|
188
|
+
// User card — the flat menu's header; the grouped drawer keeps it too when the host passes `user`.
|
|
189
|
+
const userCard = user && (
|
|
190
|
+
<div
|
|
191
|
+
className={cn(
|
|
192
|
+
'flex items-center gap-3 rounded-md border border-ods-border bg-ods-card p-3',
|
|
193
|
+
disabled && 'pointer-events-none opacity-50',
|
|
194
|
+
)}
|
|
195
|
+
aria-disabled={disabled || undefined}
|
|
196
|
+
>
|
|
197
|
+
<SquareAvatar
|
|
198
|
+
src={user.userAvatarUrl || undefined}
|
|
199
|
+
alt={user.userName || 'User'}
|
|
200
|
+
fallback={user.userName}
|
|
201
|
+
size="lg"
|
|
202
|
+
variant="round"
|
|
203
|
+
className="h-14 w-14 shrink-0"
|
|
204
|
+
/>
|
|
205
|
+
|
|
206
|
+
{/* User Info */}
|
|
207
|
+
<div className="flex min-w-0 flex-1 flex-col">
|
|
208
|
+
<div className="flex items-center gap-2">
|
|
209
|
+
<span className="truncate text-ods-text-primary text-h6">{user.userName || 'User'}</span>
|
|
210
|
+
{user.userRole && (
|
|
211
|
+
<span className="shrink-0 rounded-md border border-ods-border bg-ods-card px-2 py-0.5 uppercase text-ods-text-primary text-h6">
|
|
212
|
+
{user.userRole}
|
|
213
|
+
</span>
|
|
214
|
+
)}
|
|
215
|
+
</div>
|
|
216
|
+
{user.userEmail && <span className="truncate text-ods-text-secondary text-h6">{user.userEmail}</span>}
|
|
217
|
+
</div>
|
|
218
|
+
|
|
219
|
+
{/* Action Buttons */}
|
|
220
|
+
<div className="flex shrink-0 items-center gap-2">
|
|
221
|
+
{onSearchUser && (
|
|
222
|
+
<Button size="icon" onClick={onSearchUser} variant="outline" aria-label="Search users">
|
|
223
|
+
<UserSearchIcon className="size-4 text-ods-text-primary" />
|
|
224
|
+
</Button>
|
|
225
|
+
)}
|
|
226
|
+
{onEditProfile && (
|
|
227
|
+
<Button size="icon" onClick={onEditProfile} variant="outline" aria-label="Edit profile">
|
|
228
|
+
<PenEditIcon className="size-4 text-ods-text-primary" />
|
|
229
|
+
</Button>
|
|
230
|
+
)}
|
|
231
|
+
</div>
|
|
232
|
+
</div>
|
|
233
|
+
);
|
|
234
|
+
|
|
235
|
+
// Logout button — last in both forms of the menu.
|
|
236
|
+
const logoutButton = onLogout && (
|
|
237
|
+
<Button variant="row" data-tone="framed" onClick={onLogout} disabled={disabled}>
|
|
238
|
+
<Logout02Icon className="size-4 text-ods-error" />
|
|
239
|
+
<span className="flex-1 text-left text-ods-text-primary text-h6">Log Out</span>
|
|
240
|
+
</Button>
|
|
241
|
+
);
|
|
242
|
+
|
|
243
|
+
if (grouped) {
|
|
244
|
+
const { sectionSlot, footerSlot } = config;
|
|
245
|
+
return (
|
|
246
|
+
// The drawer's own stacking layer, below the header: the scrim, the panel
|
|
247
|
+
// and the host its popups portal into (the account menu), so a menu opened
|
|
248
|
+
// in the panel stacks over it instead of under its `z-[101]`. The layer
|
|
249
|
+
// itself takes no clicks; its children opt back in.
|
|
250
|
+
<div className="pointer-events-none absolute inset-0 z-[101] md:hidden" style={{ top: HEADER_HEIGHT }}>
|
|
251
|
+
<div
|
|
252
|
+
className={cn(
|
|
253
|
+
'absolute inset-0',
|
|
254
|
+
OVERLAY_BACKDROP_CLASS,
|
|
255
|
+
'transition-all duration-300 motion-reduce:transition-none',
|
|
256
|
+
isOpen ? 'pointer-events-auto opacity-100' : 'opacity-0',
|
|
257
|
+
)}
|
|
258
|
+
onClick={onClose}
|
|
259
|
+
aria-hidden="true"
|
|
260
|
+
/>
|
|
261
|
+
|
|
262
|
+
{/* The sidebar as a drawer from the left, 300px (at most 85% of the
|
|
263
|
+
phone), with the sidebar's rows, slots and active resolution. */}
|
|
264
|
+
<div
|
|
265
|
+
ref={panelRef}
|
|
266
|
+
className={cn(
|
|
267
|
+
'absolute inset-y-0 left-0 flex w-[300px] max-w-[85vw] flex-col',
|
|
268
|
+
'border-r border-ods-border bg-ods-card',
|
|
269
|
+
'transition-transform duration-300 ease-out motion-reduce:transition-none',
|
|
270
|
+
isOpen ? 'pointer-events-auto translate-x-0' : '-translate-x-full',
|
|
271
|
+
)}
|
|
272
|
+
role="dialog"
|
|
273
|
+
aria-modal="true"
|
|
274
|
+
aria-label="Mobile navigation menu"
|
|
275
|
+
tabIndex={-1}
|
|
276
|
+
inert={!isOpen || undefined}
|
|
277
|
+
>
|
|
278
|
+
<PortalContainerContext.Provider value={portalHost}>
|
|
279
|
+
{/* The rail's container, declared at the drawer's width, so the
|
|
280
|
+
grouped rows — which read it — lay out expanded. */}
|
|
281
|
+
<div className="flex min-h-0 flex-1 flex-col @container/of-nav-sidebar">
|
|
282
|
+
{/* One inset all round the rows (8px), as in the sidebar. */}
|
|
283
|
+
<div className="flex min-h-0 flex-1 flex-col gap-[var(--spacing-system-mf)] overflow-y-auto overflow-x-hidden overscroll-contain p-[var(--spacing-system-xsf)]">
|
|
284
|
+
{userCard}
|
|
285
|
+
|
|
286
|
+
{/* The top slot, the tree and the section as one block, spaced as in
|
|
287
|
+
the sidebar: no gap between them, a divider before the section. */}
|
|
288
|
+
<div className="flex flex-col">
|
|
289
|
+
{config.topSlot?.({ minimized: false })}
|
|
290
|
+
|
|
291
|
+
<nav aria-label="Primary navigation" className="flex flex-col gap-[var(--spacing-system-xxs)]">
|
|
292
|
+
<NavigationSidebarGroupedEntries
|
|
293
|
+
items={primaryItems}
|
|
294
|
+
activeId={activeId}
|
|
295
|
+
pendingId={null}
|
|
296
|
+
openGroupId={openGroupId}
|
|
297
|
+
showLabel
|
|
298
|
+
disabled={disabled}
|
|
299
|
+
onItemClick={handleGroupedItemClick}
|
|
300
|
+
onGroupClick={handleGroupClick}
|
|
301
|
+
/>
|
|
302
|
+
</nav>
|
|
303
|
+
|
|
304
|
+
{/* In the flow at its full height, as in the sidebar: the drawer's
|
|
305
|
+
body scrolls the tree and the section as one. */}
|
|
306
|
+
{sectionMounted && hasNavigationSidebarSlot(sectionSlot) && (
|
|
307
|
+
<div className="mt-[var(--spacing-system-xsf)] flex flex-col border-t border-ods-border pt-[var(--spacing-system-sf)]">
|
|
308
|
+
{renderNavigationSidebarSlot(sectionSlot, DRAWER_SLOT_STATE)}
|
|
309
|
+
</div>
|
|
310
|
+
)}
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
{secondaryItems.length > 0 && (
|
|
314
|
+
<nav aria-label="Secondary navigation" className="flex flex-col">
|
|
315
|
+
<NavigationSidebarGroupedEntries
|
|
316
|
+
items={secondaryItems}
|
|
317
|
+
activeId={activeId}
|
|
318
|
+
pendingId={null}
|
|
319
|
+
openGroupId={openGroupId}
|
|
320
|
+
showLabel
|
|
321
|
+
disabled={disabled}
|
|
322
|
+
onItemClick={handleGroupedItemClick}
|
|
323
|
+
onGroupClick={handleGroupClick}
|
|
324
|
+
/>
|
|
325
|
+
</nav>
|
|
326
|
+
)}
|
|
327
|
+
|
|
328
|
+
{logoutButton}
|
|
329
|
+
</div>
|
|
330
|
+
|
|
331
|
+
{hasNavigationSidebarSlot(footerSlot) && (
|
|
332
|
+
<div className="shrink-0 border-t border-ods-border px-[var(--spacing-system-xsf)] py-[var(--spacing-system-xxs)]">
|
|
333
|
+
{renderNavigationSidebarSlot(footerSlot, DRAWER_SLOT_STATE)}
|
|
334
|
+
</div>
|
|
335
|
+
)}
|
|
336
|
+
</div>
|
|
337
|
+
</PortalContainerContext.Provider>
|
|
338
|
+
</div>
|
|
339
|
+
|
|
340
|
+
{/* Outside the panel: its slide is a transform, which would anchor the
|
|
341
|
+
menus' `position: fixed` to the panel. */}
|
|
342
|
+
<div ref={setPortalHost} className="pointer-events-auto contents" />
|
|
343
|
+
</div>
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
|
|
132
347
|
return (
|
|
133
348
|
<>
|
|
134
349
|
{/* Dim backdrop (no blur, unified with Drawer) - positioned below header.
|
|
@@ -176,51 +391,7 @@ export const MobileBurgerMenu = React.memo(function MobileBurgerMenuImpl({
|
|
|
176
391
|
{/* Scrollable Content */}
|
|
177
392
|
<div className="flex flex-1 flex-col gap-4 overflow-y-auto overflow-x-hidden overscroll-contain p-4">
|
|
178
393
|
{/* User Card */}
|
|
179
|
-
{
|
|
180
|
-
<div
|
|
181
|
-
className={cn(
|
|
182
|
-
'flex items-center gap-3 rounded-md border border-ods-border bg-ods-card p-3',
|
|
183
|
-
disabled && 'pointer-events-none opacity-50',
|
|
184
|
-
)}
|
|
185
|
-
aria-disabled={disabled || undefined}
|
|
186
|
-
>
|
|
187
|
-
<SquareAvatar
|
|
188
|
-
src={user.userAvatarUrl || undefined}
|
|
189
|
-
alt={user.userName || 'User'}
|
|
190
|
-
fallback={user.userName}
|
|
191
|
-
size="lg"
|
|
192
|
-
variant="round"
|
|
193
|
-
className="h-14 w-14 shrink-0"
|
|
194
|
-
/>
|
|
195
|
-
|
|
196
|
-
{/* User Info */}
|
|
197
|
-
<div className="flex min-w-0 flex-1 flex-col">
|
|
198
|
-
<div className="flex items-center gap-2">
|
|
199
|
-
<span className="truncate text-ods-text-primary text-h6">{user.userName || 'User'}</span>
|
|
200
|
-
{user.userRole && (
|
|
201
|
-
<span className="shrink-0 rounded-md border border-ods-border bg-ods-card px-2 py-0.5 uppercase text-ods-text-primary text-h6">
|
|
202
|
-
{user.userRole}
|
|
203
|
-
</span>
|
|
204
|
-
)}
|
|
205
|
-
</div>
|
|
206
|
-
{user.userEmail && <span className="truncate text-ods-text-secondary text-h6">{user.userEmail}</span>}
|
|
207
|
-
</div>
|
|
208
|
-
|
|
209
|
-
{/* Action Buttons */}
|
|
210
|
-
<div className="flex shrink-0 items-center gap-2">
|
|
211
|
-
{onSearchUser && (
|
|
212
|
-
<Button size="icon" onClick={onSearchUser} variant="outline" aria-label="Search users">
|
|
213
|
-
<UserSearchIcon className="size-4 text-ods-text-primary" />
|
|
214
|
-
</Button>
|
|
215
|
-
)}
|
|
216
|
-
{onEditProfile && (
|
|
217
|
-
<Button size="icon" onClick={onEditProfile} variant="outline" aria-label="Edit profile">
|
|
218
|
-
<PenEditIcon className="size-4 text-ods-text-primary" />
|
|
219
|
-
</Button>
|
|
220
|
-
)}
|
|
221
|
-
</div>
|
|
222
|
-
</div>
|
|
223
|
-
)}
|
|
394
|
+
{userCard}
|
|
224
395
|
|
|
225
396
|
{/* Host-owned action above the nav — the same slot the sidebar
|
|
226
397
|
renders, so a host passes `topSlot` once and both surfaces get it.
|
|
@@ -240,12 +411,7 @@ export const MobileBurgerMenu = React.memo(function MobileBurgerMenuImpl({
|
|
|
240
411
|
)}
|
|
241
412
|
|
|
242
413
|
{/* Logout Button */}
|
|
243
|
-
{
|
|
244
|
-
<Button variant="row" data-tone="framed" onClick={onLogout} disabled={disabled}>
|
|
245
|
-
<Logout02Icon className="size-4 text-ods-error" />
|
|
246
|
-
<span className="flex-1 text-left text-ods-text-primary text-h6">Log Out</span>
|
|
247
|
-
</Button>
|
|
248
|
-
)}
|
|
414
|
+
{logoutButton}
|
|
249
415
|
</div>
|
|
250
416
|
</div>
|
|
251
417
|
</>
|