@flamingo-stack/openframe-frontend-core 0.0.824 → 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/chat-protocol/events.d.ts +0 -3
- package/dist/chat-protocol/events.d.ts.map +1 -1
- package/dist/chat-protocol/frames.d.ts +10 -7
- package/dist/chat-protocol/frames.d.ts.map +1 -1
- package/dist/chat-protocol/index.cjs +238 -234
- package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
- package/dist/chat-protocol/leading-frames.js +6 -3
- package/dist/chat-protocol/progress.d.ts +13 -20
- package/dist/chat-protocol/progress.d.ts.map +1 -1
- package/dist/chat-protocol/progress.js +13 -11
- package/dist/{chunk-QOAA7ZHB.cjs → chunk-2HQNXX2K.cjs} +2 -2
- package/dist/{chunk-TQ7TUEK2.cjs → chunk-2TQJSB62.cjs} +4879 -3563
- package/dist/{chunk-NONMZ5WJ.cjs → chunk-2VLPXUQK.cjs} +14 -83
- package/dist/{chunk-HDOU3AXV.cjs → chunk-37OYBX7W.cjs} +36 -36
- package/dist/{chunk-OBQ5WUNG.cjs → chunk-3B6ZE4EZ.cjs} +29 -29
- package/dist/{chunk-C3RAE7RO.cjs → chunk-5AQKXEMI.cjs} +979 -1357
- package/dist/{chunk-25HBH4J6.cjs → chunk-5BM7X4GA.cjs} +2 -2
- package/dist/{chunk-A3SR6HHX.cjs → chunk-63T2KKDZ.cjs} +86 -86
- package/dist/{chunk-MROW2JWE.cjs → chunk-6G4WRMEM.cjs} +3 -3
- package/dist/{chunk-WMTV6M5B.cjs → chunk-74GWFGH2.cjs} +28 -28
- package/dist/{chunk-467T3LCG.cjs → chunk-7PZQ7SHB.cjs} +49 -32
- package/dist/{chunk-SOSVC6HB.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-B2VRNRTY.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-M7EBCYKN.cjs → chunk-HJAPXKWK.cjs} +17 -17
- package/dist/{chunk-XUMZMIHR.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-2IHGR57J.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-WSBAIZXL.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-J5U3XHFJ.cjs → chunk-PJY3SYCS.cjs} +29 -27
- package/dist/{chunk-5N26M6CK.cjs → chunk-PWAKRRRO.cjs} +1283 -268
- package/dist/{chunk-UEULXVW2.cjs → chunk-QS6AKUUL.cjs} +22 -22
- package/dist/{chunk-GXBIYPDM.cjs → chunk-QYJZDEG7.cjs} +6 -6
- package/dist/{chunk-NPNZAAOB.cjs → chunk-S6UJEW4G.cjs} +2 -2
- package/dist/{chunk-TTMTNG3U.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-2M4E2V25.cjs → chunk-WGMU45NV.cjs} +20 -20
- package/dist/{chunk-EZTCN43H.cjs → chunk-XDHQC4XH.cjs} +46 -46
- package/dist/{cloud-tenants-VYXMNISG.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 -218
- package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-sse-chat-adapter.js +0 -2
- package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
- package/dist/components/chat/hooks/use-unified-chat.js +0 -1
- 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/stream/chat-dialog-store.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-dialog-store.js +0 -1
- package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -4
- package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
- package/dist/components/chat/stream/chat-stream-reducer.js +6 -13
- 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/types/unified-chat-state.types.d.ts +0 -5
- package/dist/components/chat/types/unified-chat-state.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-NTYNZEGJ.cjs → devices-SJORCARH.cjs} +109 -107
- package/dist/dots-loader-icon-5JXWD6FB.cjs +7 -0
- package/dist/{embeddable-chat-JAUO4O2T.cjs → embeddable-chat-7Z4CEZJL.cjs} +512 -400
- 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-I2LW27EP.cjs → knowledge-QXILUVEM.cjs} +109 -107
- package/dist/{logs-KLZHXSOU.cjs → logs-E3KQQQD6.cjs} +118 -115
- package/dist/mingo-logo-icon-WGPBSDTF.cjs +7 -0
- package/dist/{policies-SMDAHDKL.cjs → policies-IOYQY6TF.cjs} +112 -110
- package/dist/{remote-session-BQMTIQTU.cjs → remote-session-QGFG5WAL.cjs} +99 -97
- package/dist/{scripts-OMBBPNTU.cjs → scripts-E5TWWUNP.cjs} +115 -113
- package/dist/{software-update-ZIJYNJIC.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/chat-protocol/events.ts +0 -3
- package/src/chat-protocol/frames.ts +12 -8
- package/src/chat-protocol/leading-frames.ts +7 -4
- package/src/chat-protocol/progress.ts +31 -28
- 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 -324
- package/src/components/chat/hooks/use-sse-chat-adapter.ts +0 -2
- package/src/components/chat/hooks/use-unified-chat.ts +0 -1
- 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/stream/chat-dialog-store.ts +0 -1
- package/src/components/chat/stream/chat-stream-reducer.ts +6 -17
- package/src/components/chat/tool-execution-display.tsx +9 -1
- package/src/components/chat/types/component.types.ts +13 -1
- package/src/components/chat/types/unified-chat-state.types.ts +0 -6
- 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
|
@@ -3,7 +3,13 @@ export interface ApprovalRequestNotificationTileProps {
|
|
|
3
3
|
notification: Notification;
|
|
4
4
|
onApprove: (approvalRequestId: string) => void | Promise<void>;
|
|
5
5
|
onReject: (approvalRequestId: string) => void | Promise<void>;
|
|
6
|
-
|
|
6
|
+
/**
|
|
7
|
+
* Marks the notification complete: the tile's ✓, and after a successful
|
|
8
|
+
* Approve / Reject. Omit it for a card with no notification behind it (built
|
|
9
|
+
* from a chat's or a ticket's pending approval): no ✓ is drawn, and a
|
|
10
|
+
* decision completes nothing.
|
|
11
|
+
*/
|
|
12
|
+
onComplete?: (id: string) => void;
|
|
7
13
|
onSettle?: (id: string) => void;
|
|
8
14
|
liveDurationMs?: number;
|
|
9
15
|
defaultExpanded?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approval-request-notification-tile.d.ts","sourceRoot":"","sources":["../../../../src/components/features/notifications/approval-request-notification-tile.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,oCAAoC;IACnD,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,QAAQ,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"approval-request-notification-tile.d.ts","sourceRoot":"","sources":["../../../../src/components/features/notifications/approval-request-notification-tile.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,MAAM,WAAW,oCAAoC;IACnD,YAAY,EAAE,YAAY,CAAC;IAC3B,SAAS,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC/D,QAAQ,EAAE,CAAC,iBAAiB,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D;;;;;OAKG;IACH,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gFAAgF;IAChF,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACrC;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6CAA6C;IAC7C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,+BAA+B,CAAC,EAC9C,YAAY,EACZ,SAAS,EACT,QAAQ,EACR,UAAU,EACV,QAAQ,EACR,cAAc,EACd,eAAuB,EACvB,SAAS,EACT,UAAU,EACV,YAAqB,EACrB,cAAsB,EACtB,SAAS,GACV,EAAE,oCAAoC,sCAmItC"}
|
|
@@ -4,6 +4,11 @@ export interface NotificationDrawerProps {
|
|
|
4
4
|
liveDurationMs?: number;
|
|
5
5
|
loadMoreRootMargin?: string;
|
|
6
6
|
renderTile?: RenderNotificationTile;
|
|
7
|
+
/**
|
|
8
|
+
* Draw the title's × close button. Off by default: the header bell turns into × while the drawer
|
|
9
|
+
* is open. A host without a desktop header (`AppLayout desktopHeader={false}`) has no such bell.
|
|
10
|
+
*/
|
|
11
|
+
showClose?: boolean;
|
|
7
12
|
}
|
|
8
|
-
export declare function NotificationDrawer({ className, liveDurationMs, loadMoreRootMargin, renderTile: renderTileProp, }: NotificationDrawerProps): import("react").JSX.Element | null;
|
|
13
|
+
export declare function NotificationDrawer({ className, liveDurationMs, loadMoreRootMargin, renderTile: renderTileProp, showClose, }: NotificationDrawerProps): import("react").JSX.Element | null;
|
|
9
14
|
//# sourceMappingURL=notification-drawer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/features/notifications/notification-drawer.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAgB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEpE,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"notification-drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/features/notifications/notification-drawer.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EAAgB,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEpE,MAAM,WAAW,uBAAuB;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,sBAAsB,CAAC;IACpC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAgB,kBAAkB,CAAC,EACjC,SAAS,EACT,cAAc,EACd,kBAA4B,EAC5B,UAAU,EAAE,cAAc,EAC1B,SAAiB,GAClB,EAAE,uBAAuB,sCA8HzB"}
|
|
@@ -18,7 +18,8 @@ function NotificationDrawer({
|
|
|
18
18
|
className,
|
|
19
19
|
liveDurationMs,
|
|
20
20
|
loadMoreRootMargin = "200px",
|
|
21
|
-
renderTile: renderTileProp
|
|
21
|
+
renderTile: renderTileProp,
|
|
22
|
+
showClose = false
|
|
22
23
|
}) {
|
|
23
24
|
const ctx = useOptionalNotifications();
|
|
24
25
|
const layoutContainer = useAppLayoutDrawerContainer();
|
|
@@ -50,7 +51,7 @@ function NotificationDrawer({
|
|
|
50
51
|
/* @__PURE__ */ jsx("div", { className: "px-[var(--spacing-system-m)] pt-[var(--spacing-system-m)]", children: /* @__PURE__ */ jsx(
|
|
51
52
|
DrawerTitle,
|
|
52
53
|
{
|
|
53
|
-
hideClose:
|
|
54
|
+
hideClose: !showClose,
|
|
54
55
|
className: "truncate",
|
|
55
56
|
actions: /* @__PURE__ */ jsx(
|
|
56
57
|
Button,
|
|
@@ -39,10 +39,13 @@ interface NotificationTileOptions {
|
|
|
39
39
|
/**
|
|
40
40
|
* The notification and what dismisses it, or `loading` while the host reads it: the tile then draws its own loading
|
|
41
41
|
* form, as it does in a loading scope (an approval tile, one given `actions`, draws its button row too).
|
|
42
|
+
*
|
|
43
|
+
* `onComplete` is the ✓ "Mark notification complete" control once the tile is no longer live. Omit it for a tile with
|
|
44
|
+
* no notification behind it (an approval card built from a chat or a ticket): no ✓ is drawn.
|
|
42
45
|
*/
|
|
43
46
|
export type NotificationTileProps = NotificationTileOptions & ({
|
|
44
47
|
notification: Notification;
|
|
45
|
-
onComplete
|
|
48
|
+
onComplete?: (id: string) => void;
|
|
46
49
|
loading?: boolean;
|
|
47
50
|
} | {
|
|
48
51
|
loading: true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-tile.d.ts","sourceRoot":"","sources":["../../../../src/components/features/notifications/notification-tile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAY5D,OAAO,KAAK,EAAE,YAAY,EAA6C,MAAM,SAAS,CAAC;AAsCvF,UAAU,uBAAuB;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uGAAuG;IACvG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACnB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACrC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED
|
|
1
|
+
{"version":3,"file":"notification-tile.d.ts","sourceRoot":"","sources":["../../../../src/components/features/notifications/notification-tile.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuB,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAY5D,OAAO,KAAK,EAAE,YAAY,EAA6C,MAAM,SAAS,CAAC;AAsCvF,UAAU,uBAAuB;IAC/B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,4FAA4F;IAC5F,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,uGAAuG;IACvG,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACnB;;;;;;OAMG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,CAAC;IACrC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0DAA0D;IAC1D,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;;GAMG;AACH,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,GACzD,CACI;IAAE,YAAY,EAAE,YAAY,CAAC;IAAC,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GACpF;IACE,OAAO,EAAE,IAAI,CAAC;IACd,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,+GAA+G;IAC/G,OAAO,CAAC,EAAE,SAAS,GAAG,UAAU,CAAC;CAClC,CACJ,CAAC;AAOJ,oGAAoG;AACpG,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,+BAa5D;AAwMD;;;;GAIG;AACH,eAAO,MAAM,gCAAgC,iBAAiB,CAAC;AAE/D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C,qHAAqH;AACrH,eAAO,MAAM,4BAA4B,qCAAqC,CAAC"}
|
|
@@ -133,19 +133,21 @@ function LoadedNotificationTile({
|
|
|
133
133
|
children: timeLabel ?? formatTicketRelativeTime(createdAtIso)
|
|
134
134
|
}
|
|
135
135
|
) : null,
|
|
136
|
-
!lockscreen && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
136
|
+
!lockscreen && (isLive || onComplete) && /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("span", { className: TILE_CONTROL_BOX_CLASS, children: [
|
|
137
137
|
{
|
|
138
138
|
active: isLive,
|
|
139
139
|
label: "Dismiss notification",
|
|
140
140
|
icon: /* @__PURE__ */ jsx(XmarkIcon, { size: 16 }),
|
|
141
141
|
onClick: () => onSettle?.(id)
|
|
142
142
|
},
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
143
|
+
...onComplete ? [
|
|
144
|
+
{
|
|
145
|
+
active: !isLive,
|
|
146
|
+
label: "Mark notification complete",
|
|
147
|
+
icon: /* @__PURE__ */ jsx(CheckCircleIcon, { size: 16 }),
|
|
148
|
+
onClick: () => onComplete(id)
|
|
149
|
+
}
|
|
150
|
+
] : []
|
|
149
151
|
].map(({ active, label, icon: actionIcon, onClick }) => /* @__PURE__ */ jsx(
|
|
150
152
|
Button,
|
|
151
153
|
{
|
|
@@ -2,6 +2,23 @@ export interface TimeTrackerHeaderButtonProps {
|
|
|
2
2
|
/** Dimming/disabled passthrough from the header. */
|
|
3
3
|
className?: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* - `cell` (default): a cell of the top bar; while a session runs it widens
|
|
7
|
+
* to show the live clock from md up.
|
|
8
|
+
* - `compact`: `HeaderButton`'s compact cell with a 20px glyph for the navigation
|
|
9
|
+
* sidebar's foot, beside the account row (`footerSlot`). It never widens:
|
|
10
|
+
* a running session is the accent glyph, and the clock is in its tooltip.
|
|
11
|
+
*/
|
|
12
|
+
variant?: 'cell' | 'compact';
|
|
13
|
+
/**
|
|
14
|
+
* Where the panel opens against the button. Default: below it, aligned to its
|
|
15
|
+
* end (`cell`, the right end of a top bar) or its start (`compact`, the left
|
|
16
|
+
* edge of the window, so the panel opens over the page). In the sidebar pass
|
|
17
|
+
* `side="right"`: a compact button inside the navigation sidebar measures its
|
|
18
|
+
* side from the sidebar's edge, so the panel opens beside the sidebar, not over it.
|
|
19
|
+
*/
|
|
20
|
+
popoverSide?: 'top' | 'right' | 'bottom' | 'left';
|
|
21
|
+
popoverAlign?: 'start' | 'center' | 'end';
|
|
5
22
|
}
|
|
6
23
|
/**
|
|
7
24
|
* Header affordance for the time tracker. Renders nothing unless wrapped in a
|
|
@@ -13,5 +30,5 @@ export interface TimeTrackerHeaderButtonProps {
|
|
|
13
30
|
* it closes any open in-layout drawer and vice versa. Outside AppLayout it
|
|
14
31
|
* falls back to a viewport-wide backdrop.
|
|
15
32
|
*/
|
|
16
|
-
export declare function TimeTrackerHeaderButton({ className, disabled }: TimeTrackerHeaderButtonProps): import("react").JSX.Element | null;
|
|
33
|
+
export declare function TimeTrackerHeaderButton({ className, disabled, variant, popoverSide, popoverAlign, }: TimeTrackerHeaderButtonProps): import("react").JSX.Element | null;
|
|
17
34
|
//# sourceMappingURL=time-tracker-header-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-tracker-header-button.d.ts","sourceRoot":"","sources":["../../../../src/components/features/time-tracker/time-tracker-header-button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"time-tracker-header-button.d.ts","sourceRoot":"","sources":["../../../../src/components/features/time-tracker/time-tracker-header-button.tsx"],"names":[],"mappings":"AAmBA,MAAM,WAAW,4BAA4B;IAC3C,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAClD,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;CAC3C;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,SAAS,EACT,QAAQ,EACR,OAAgB,EAChB,WAAsB,EACtB,YAAY,GACb,EAAE,4BAA4B,sCA2I9B"}
|
|
@@ -5,6 +5,7 @@ import { useEffect, useRef, useState } from "react";
|
|
|
5
5
|
import { cn } from "../../../utils/cn.js";
|
|
6
6
|
import { ClockHistoryIcon } from "../../icons-v2-generated/date-and-time/clock-history-icon.js";
|
|
7
7
|
import {
|
|
8
|
+
NAVIGATION_SIDEBAR_ATTRIBUTE,
|
|
8
9
|
useAppLayoutDrawerContainer,
|
|
9
10
|
useAppLayoutDrawerCoordination
|
|
10
11
|
} from "../../navigation/app-layout-context.js";
|
|
@@ -14,7 +15,14 @@ import { usePortalContainer } from "../../ui/portal-container.js";
|
|
|
14
15
|
import { useOptionalTimeTracker } from "./time-tracker-context.js";
|
|
15
16
|
import { TimeTrackerPanel } from "./time-tracker-panel.js";
|
|
16
17
|
import { useTrackerClock } from "./use-tracker-clock.js";
|
|
17
|
-
function TimeTrackerHeaderButton({
|
|
18
|
+
function TimeTrackerHeaderButton({
|
|
19
|
+
className,
|
|
20
|
+
disabled,
|
|
21
|
+
variant = "cell",
|
|
22
|
+
popoverSide = "bottom",
|
|
23
|
+
popoverAlign
|
|
24
|
+
}) {
|
|
25
|
+
const compact = variant === "compact";
|
|
18
26
|
const ctx = useOptionalTimeTracker();
|
|
19
27
|
const elapsedLabel = useTrackerClock({
|
|
20
28
|
status: ctx?.status ?? "ready",
|
|
@@ -25,6 +33,15 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
25
33
|
const portalContainer = usePortalContainer();
|
|
26
34
|
const coordination = useAppLayoutDrawerCoordination();
|
|
27
35
|
const isOpen = ctx?.isOpen ?? false;
|
|
36
|
+
const triggerRef = useRef(null);
|
|
37
|
+
const sidebarEdgeRef = useRef({
|
|
38
|
+
getBoundingClientRect: () => {
|
|
39
|
+
const trigger = triggerRef.current;
|
|
40
|
+
const rect = trigger?.getBoundingClientRect() ?? new DOMRect();
|
|
41
|
+
const sidebar = trigger?.closest(`[${NAVIGATION_SIDEBAR_ATTRIBUTE}]`)?.getBoundingClientRect();
|
|
42
|
+
return sidebar ? new DOMRect(sidebar.right, rect.y, 0, rect.height) : rect;
|
|
43
|
+
}
|
|
44
|
+
});
|
|
28
45
|
const isOpenRef = useRef(isOpen);
|
|
29
46
|
const closeRef = useRef(ctx?.close);
|
|
30
47
|
useEffect(() => {
|
|
@@ -45,28 +62,33 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
45
62
|
const isPaused = status === "paused";
|
|
46
63
|
const isActive = status === "tracking" || isPaused;
|
|
47
64
|
return /* @__PURE__ */ jsxs(PopoverPrimitive.Root, { open: isOpen, onOpenChange: (next) => next ? open() : close(), children: [
|
|
48
|
-
/* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, children: /* @__PURE__ */ jsx(
|
|
65
|
+
/* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { asChild: true, ref: triggerRef, children: /* @__PURE__ */ jsx(
|
|
49
66
|
HeaderButton,
|
|
50
67
|
{
|
|
51
68
|
"aria-label": "Time tracker",
|
|
69
|
+
title: compact ? isActive ? `Time tracker \xB7 ${elapsedLabel}` : "Time tracker" : void 0,
|
|
52
70
|
isActive: isOpen,
|
|
53
71
|
disabled,
|
|
72
|
+
size: variant,
|
|
54
73
|
className: cn(
|
|
55
|
-
"outline-none",
|
|
74
|
+
!compact && "outline-none",
|
|
56
75
|
// ODS top-navigation spec (Figma 2797-5978): the active cell keeps
|
|
57
76
|
// its square icon-only footprint on mobile and becomes a fixed
|
|
58
77
|
// 144px cell with the live clock from md up.
|
|
59
|
-
isActive && "md:w-auto md:min-w-[144px] md:justify-center md:gap-[var(--spacing-system-xsf)] md:px-[var(--spacing-system-sf)]",
|
|
78
|
+
isActive && !compact && "md:w-auto md:min-w-[144px] md:justify-center md:gap-[var(--spacing-system-xsf)] md:px-[var(--spacing-system-sf)]",
|
|
60
79
|
className
|
|
61
80
|
),
|
|
62
81
|
icon: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
63
82
|
/* @__PURE__ */ jsx(
|
|
64
83
|
ClockHistoryIcon,
|
|
65
84
|
{
|
|
66
|
-
className: cn(
|
|
85
|
+
className: cn(
|
|
86
|
+
compact ? "h-5 w-5" : "h-6 w-6",
|
|
87
|
+
isPaused ? "text-ods-text-secondary" : isActive && "text-ods-accent"
|
|
88
|
+
)
|
|
67
89
|
}
|
|
68
90
|
),
|
|
69
|
-
isActive && /* @__PURE__ */ jsx(
|
|
91
|
+
isActive && !compact && /* @__PURE__ */ jsx(
|
|
70
92
|
"span",
|
|
71
93
|
{
|
|
72
94
|
className: cn(
|
|
@@ -79,6 +101,7 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
79
101
|
] })
|
|
80
102
|
}
|
|
81
103
|
) }),
|
|
104
|
+
compact && /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, { virtualRef: sidebarEdgeRef }),
|
|
82
105
|
/* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: layoutContainer ?? void 0, children: /* @__PURE__ */ jsx(
|
|
83
106
|
"div",
|
|
84
107
|
{
|
|
@@ -95,7 +118,8 @@ function TimeTrackerHeaderButton({ className, disabled }) {
|
|
|
95
118
|
/* @__PURE__ */ jsx(PopoverPrimitive.Portal, { container: portalContainer ?? void 0, children: /* @__PURE__ */ jsx(
|
|
96
119
|
PopoverPrimitive.Content,
|
|
97
120
|
{
|
|
98
|
-
|
|
121
|
+
side: popoverSide,
|
|
122
|
+
align: popoverAlign ?? (compact ? "start" : "end"),
|
|
99
123
|
sideOffset: 8,
|
|
100
124
|
collisionPadding: 8,
|
|
101
125
|
className: cn(
|