@usalyt/ui 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/LICENSE +21 -674
- package/NOTICE +7 -8
- package/README.md +6 -7
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/{app-shell-layout-S_85mtFG.cjs → app-shell-layout-BwhU0DNY.cjs} +8 -8
- package/dist/{app-shell-layout-C63PPxCb.mjs → app-shell-layout-Dpl6jPni.mjs} +9 -9
- package/dist/app-shell-layout-Dpl6jPni.mjs.map +1 -0
- package/dist/blocks/app-shell-layout/index.cjs +1 -1
- package/dist/blocks/app-shell-layout/index.mjs +1 -1
- package/dist/blocks/auth-form/index.cjs +4 -4
- package/dist/blocks/auth-form/index.mjs +4 -4
- package/dist/blocks/auth-form/index.mjs.map +1 -1
- package/dist/blocks/collaboration-chat-panel/index.cjs +1 -1
- package/dist/blocks/collaboration-chat-panel/index.mjs +1 -1
- package/dist/blocks/color-palette-sheet/index.cjs +191 -0
- package/dist/blocks/color-palette-sheet/index.d.cts +42 -0
- package/dist/blocks/color-palette-sheet/index.d.cts.map +1 -0
- package/dist/blocks/color-palette-sheet/index.d.mts +42 -0
- package/dist/blocks/color-palette-sheet/index.d.mts.map +1 -0
- package/dist/blocks/color-palette-sheet/index.mjs +190 -0
- package/dist/blocks/color-palette-sheet/index.mjs.map +1 -0
- package/dist/blocks/dashboard-header/index.cjs +1 -1
- package/dist/blocks/dashboard-header/index.mjs +1 -1
- package/dist/blocks/dashboard-header/index.mjs.map +1 -1
- package/dist/blocks/data-table-with-filters/index.cjs +4 -3
- package/dist/blocks/data-table-with-filters/index.d.cts.map +1 -1
- package/dist/blocks/data-table-with-filters/index.d.mts.map +1 -1
- package/dist/blocks/data-table-with-filters/index.mjs +4 -3
- package/dist/blocks/data-table-with-filters/index.mjs.map +1 -1
- package/dist/blocks/empty-state-block/index.cjs +1 -1
- package/dist/blocks/empty-state-block/index.mjs +1 -1
- package/dist/blocks/evaluation-summary-report/index.cjs +1 -1
- package/dist/blocks/evaluation-summary-report/index.mjs +1 -1
- package/dist/blocks/form-with-validation/index.cjs +57 -54
- package/dist/blocks/form-with-validation/index.d.cts +2 -2
- package/dist/blocks/form-with-validation/index.d.mts +2 -2
- package/dist/blocks/form-with-validation/index.mjs +57 -54
- package/dist/blocks/form-with-validation/index.mjs.map +1 -1
- package/dist/blocks/heuristic-finding-card/index.cjs +1 -1
- package/dist/blocks/heuristic-finding-card/index.mjs +1 -1
- package/dist/blocks/inspector-split-view/index.cjs +1 -1
- package/dist/blocks/inspector-split-view/index.mjs +1 -1
- package/dist/blocks/instrument-metrics-grid/index.cjs +225 -0
- package/dist/blocks/instrument-metrics-grid/index.d.cts +32 -0
- package/dist/blocks/instrument-metrics-grid/index.d.cts.map +1 -0
- package/dist/blocks/instrument-metrics-grid/index.d.mts +32 -0
- package/dist/blocks/instrument-metrics-grid/index.d.mts.map +1 -0
- package/dist/blocks/instrument-metrics-grid/index.mjs +224 -0
- package/dist/blocks/instrument-metrics-grid/index.mjs.map +1 -0
- package/dist/blocks/project-kanban-board/index.cjs +1 -1
- package/dist/blocks/project-kanban-board/index.mjs +1 -1
- package/dist/blocks/schedule-timeline-board/index.cjs +327 -0
- package/dist/blocks/schedule-timeline-board/index.d.cts +51 -0
- package/dist/blocks/schedule-timeline-board/index.d.cts.map +1 -0
- package/dist/blocks/schedule-timeline-board/index.d.mts +51 -0
- package/dist/blocks/schedule-timeline-board/index.d.mts.map +1 -0
- package/dist/blocks/schedule-timeline-board/index.mjs +326 -0
- package/dist/blocks/schedule-timeline-board/index.mjs.map +1 -0
- package/dist/blocks/stats-card-grid/index.cjs +11 -10
- package/dist/blocks/stats-card-grid/index.d.cts +2 -0
- package/dist/blocks/stats-card-grid/index.d.cts.map +1 -1
- package/dist/blocks/stats-card-grid/index.d.mts +2 -0
- package/dist/blocks/stats-card-grid/index.d.mts.map +1 -1
- package/dist/blocks/stats-card-grid/index.mjs +11 -10
- package/dist/blocks/stats-card-grid/index.mjs.map +1 -1
- package/dist/blocks/team-members-table/index.cjs +1 -1
- package/dist/blocks/team-members-table/index.mjs +1 -1
- package/dist/{collaboration-chat-panel-DuIoQQ6W.mjs → collaboration-chat-panel-BO-k0fqo.mjs} +10 -10
- package/dist/collaboration-chat-panel-BO-k0fqo.mjs.map +1 -0
- package/dist/{collaboration-chat-panel-D-o2i4-Y.cjs → collaboration-chat-panel-CR14FNw6.cjs} +9 -9
- package/dist/components/accordion/index.cjs +2 -2
- package/dist/components/accordion/index.mjs +2 -2
- package/dist/components/accordion/index.mjs.map +1 -1
- package/dist/components/alert/index.cjs +8 -4
- package/dist/components/alert/index.d.cts +4 -4
- package/dist/components/alert/index.d.cts.map +1 -1
- package/dist/components/alert/index.d.mts +4 -4
- package/dist/components/alert/index.d.mts.map +1 -1
- package/dist/components/alert/index.mjs +8 -4
- package/dist/components/alert/index.mjs.map +1 -1
- package/dist/components/alert-dialog/index.cjs +2 -2
- package/dist/components/alert-dialog/index.mjs +2 -2
- package/dist/components/alert-dialog/index.mjs.map +1 -1
- package/dist/components/avatar/index.cjs +1 -1
- package/dist/components/avatar/index.mjs +1 -1
- package/dist/components/avatar/index.mjs.map +1 -1
- package/dist/components/badge/index.cjs +3 -1
- package/dist/components/badge/index.d.cts +1 -1
- package/dist/components/badge/index.d.cts.map +1 -1
- package/dist/components/badge/index.d.mts +1 -1
- package/dist/components/badge/index.d.mts.map +1 -1
- package/dist/components/badge/index.mjs +3 -1
- package/dist/components/badge/index.mjs.map +1 -1
- package/dist/components/button/index.cjs +50 -15
- package/dist/components/button/index.d.cts +1 -1
- package/dist/components/button/index.d.mts +1 -1
- package/dist/components/button/index.mjs +50 -15
- package/dist/components/button/index.mjs.map +1 -1
- package/dist/components/calendar/index.cjs +5 -5
- package/dist/components/calendar/index.mjs +5 -5
- package/dist/components/calendar/index.mjs.map +1 -1
- package/dist/components/card/index.cjs +9 -7
- package/dist/components/card/index.d.cts +1 -1
- package/dist/components/card/index.d.cts.map +1 -1
- package/dist/components/card/index.d.mts +1 -1
- package/dist/components/card/index.d.mts.map +1 -1
- package/dist/components/card/index.mjs +9 -7
- package/dist/components/card/index.mjs.map +1 -1
- package/dist/components/carousel/index.d.cts +1 -1
- package/dist/components/carousel/index.d.mts +1 -1
- package/dist/components/chart/index.cjs +1 -1
- package/dist/components/chart/index.mjs +1 -1
- package/dist/components/chart/index.mjs.map +1 -1
- package/dist/components/combobox/index.cjs +1 -1
- package/dist/components/combobox/index.mjs +1 -1
- package/dist/components/combobox/index.mjs.map +1 -1
- package/dist/components/command/index.d.cts +11 -11
- package/dist/components/command/index.d.cts.map +1 -1
- package/dist/components/command/index.d.mts +11 -11
- package/dist/components/command/index.d.mts.map +1 -1
- package/dist/components/context-menu/index.cjs +2 -2
- package/dist/components/context-menu/index.mjs +2 -2
- package/dist/components/context-menu/index.mjs.map +1 -1
- package/dist/components/copy-button/index.d.cts +1 -1
- package/dist/components/copy-button/index.d.mts +1 -1
- package/dist/components/data-table/index.cjs +1 -1
- package/dist/components/data-table/index.mjs +1 -1
- package/dist/components/data-table/index.mjs.map +1 -1
- package/dist/components/dialog/index.cjs +8 -7
- package/dist/components/dialog/index.d.cts +3 -1
- package/dist/components/dialog/index.d.cts.map +1 -1
- package/dist/components/dialog/index.d.mts +3 -1
- package/dist/components/dialog/index.d.mts.map +1 -1
- package/dist/components/dialog/index.mjs +8 -7
- package/dist/components/dialog/index.mjs.map +1 -1
- package/dist/components/drawer/index.cjs +5 -3
- package/dist/components/drawer/index.d.cts.map +1 -1
- package/dist/components/drawer/index.d.mts.map +1 -1
- package/dist/components/drawer/index.mjs +5 -3
- package/dist/components/drawer/index.mjs.map +1 -1
- package/dist/components/dropdown-menu/index.cjs +3 -3
- package/dist/components/dropdown-menu/index.mjs +3 -3
- package/dist/components/dropdown-menu/index.mjs.map +1 -1
- package/dist/components/file-input/index.cjs +1 -1
- package/dist/components/file-input/index.mjs +1 -1
- package/dist/components/file-input/index.mjs.map +1 -1
- package/dist/components/hover-card/index.cjs +1 -1
- package/dist/components/hover-card/index.d.cts +1 -1
- package/dist/components/hover-card/index.d.mts +1 -1
- package/dist/components/hover-card/index.mjs +1 -1
- package/dist/components/hover-card/index.mjs.map +1 -1
- package/dist/components/input/index.cjs +5 -4
- package/dist/components/input/index.mjs +5 -4
- package/dist/components/input/index.mjs.map +1 -1
- package/dist/components/input-otp/index.cjs +1 -1
- package/dist/components/input-otp/index.d.cts +1 -1
- package/dist/components/input-otp/index.d.mts +1 -1
- package/dist/components/input-otp/index.mjs +1 -1
- package/dist/components/navigation-menu/index.cjs +2 -2
- package/dist/components/navigation-menu/index.d.cts +1 -1
- package/dist/components/navigation-menu/index.d.mts +1 -1
- package/dist/components/navigation-menu/index.mjs +2 -2
- package/dist/components/navigation-menu/index.mjs.map +1 -1
- package/dist/components/number-field/index.cjs +1 -1
- package/dist/components/number-field/index.mjs +1 -1
- package/dist/components/number-field/index.mjs.map +1 -1
- package/dist/components/pagination/index.d.cts +1 -1
- package/dist/components/pagination/index.d.mts +1 -1
- package/dist/components/popover/index.cjs +1 -1
- package/dist/components/popover/index.mjs +1 -1
- package/dist/components/popover/index.mjs.map +1 -1
- package/dist/components/progress/index.cjs +63 -15
- package/dist/components/progress/index.d.cts +3 -1
- package/dist/components/progress/index.d.cts.map +1 -1
- package/dist/components/progress/index.d.mts +3 -1
- package/dist/components/progress/index.d.mts.map +1 -1
- package/dist/components/progress/index.mjs +63 -15
- package/dist/components/progress/index.mjs.map +1 -1
- package/dist/components/resizable/index.d.cts +1 -1
- package/dist/components/resizable/index.d.mts +1 -1
- package/dist/components/select/index.cjs +5 -4
- package/dist/components/select/index.d.cts.map +1 -1
- package/dist/components/select/index.d.mts.map +1 -1
- package/dist/components/select/index.mjs +5 -4
- package/dist/components/select/index.mjs.map +1 -1
- package/dist/components/separator/index.cjs +1 -1
- package/dist/components/separator/index.mjs +1 -1
- package/dist/components/separator/index.mjs.map +1 -1
- package/dist/components/sheet/index.cjs +8 -6
- package/dist/components/sheet/index.d.cts +3 -1
- package/dist/components/sheet/index.d.cts.map +1 -1
- package/dist/components/sheet/index.d.mts +3 -1
- package/dist/components/sheet/index.d.mts.map +1 -1
- package/dist/components/sheet/index.mjs +8 -6
- package/dist/components/sheet/index.mjs.map +1 -1
- package/dist/components/sidebar/index.d.cts +1 -1
- package/dist/components/sidebar/index.d.mts +1 -1
- package/dist/components/spinner/index.d.cts +1 -1
- package/dist/components/spinner/index.d.mts +1 -1
- package/dist/components/stepper/index.d.cts +1 -1
- package/dist/components/stepper/index.d.mts +1 -1
- package/dist/components/switch/index.cjs +1 -1
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/index.mjs.map +1 -1
- package/dist/components/table/index.cjs +2 -2
- package/dist/components/table/index.mjs +2 -2
- package/dist/components/table/index.mjs.map +1 -1
- package/dist/components/tabs/index.cjs +6 -3
- package/dist/components/tabs/index.d.cts.map +1 -1
- package/dist/components/tabs/index.d.mts.map +1 -1
- package/dist/components/tabs/index.mjs +6 -3
- package/dist/components/tabs/index.mjs.map +1 -1
- package/dist/components/textarea/index.cjs +1 -1
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/textarea/index.mjs.map +1 -1
- package/dist/components/toast/index.cjs +8 -7
- package/dist/components/toast/index.d.cts +3 -1
- package/dist/components/toast/index.d.cts.map +1 -1
- package/dist/components/toast/index.d.mts +3 -1
- package/dist/components/toast/index.d.mts.map +1 -1
- package/dist/components/toast/index.mjs +8 -7
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toggle/index.cjs +1 -1
- package/dist/components/toggle/index.mjs +1 -1
- package/dist/components/toggle-group/index.cjs +1 -1
- package/dist/components/toggle-group/index.mjs +1 -1
- package/dist/{empty-state-block-DePTPvzM.mjs → empty-state-block-DlccTgvo.mjs} +8 -7
- package/dist/empty-state-block-DlccTgvo.mjs.map +1 -0
- package/dist/{empty-state-block-CW1vdx89.cjs → empty-state-block-rrYF_ai9.cjs} +7 -6
- package/dist/evaluation-summary-report-CIa4moWm.cjs +245 -0
- package/dist/evaluation-summary-report-COZZFLS6.mjs +240 -0
- package/dist/evaluation-summary-report-COZZFLS6.mjs.map +1 -0
- package/dist/{heuristic-finding-card-B5zpJp27.cjs → heuristic-finding-card-CeJzuzuN.cjs} +63 -40
- package/dist/{heuristic-finding-card-BFwXci2U.mjs → heuristic-finding-card-hlDwM_of.mjs} +64 -41
- package/dist/heuristic-finding-card-hlDwM_of.mjs.map +1 -0
- package/dist/{index-ClitDRHg.d.mts → index-2Vh9mMtN.d.mts} +2 -2
- package/dist/{index-ClitDRHg.d.mts.map → index-2Vh9mMtN.d.mts.map} +1 -1
- package/dist/index-B6epY4xT.d.cts +18 -0
- package/dist/index-B6epY4xT.d.cts.map +1 -0
- package/dist/index-B8Z5coVq.d.cts.map +1 -1
- package/dist/index-B8Z5coVq.d.mts.map +1 -1
- package/dist/{index-DCrV07Ko.d.cts → index-B_JrTcxF.d.cts} +2 -2
- package/dist/{index-DCrV07Ko.d.cts.map → index-B_JrTcxF.d.cts.map} +1 -1
- package/dist/index-C3V4MOJH.d.mts +18 -0
- package/dist/index-C3V4MOJH.d.mts.map +1 -0
- package/dist/{index-N-mHPudY.d.mts → index-C3ol_8Kk.d.cts} +2 -2
- package/dist/{index-DISRvpYF.d.cts.map → index-C3ol_8Kk.d.cts.map} +1 -1
- package/dist/{index-BfHoUosL.d.cts → index-C5ugjRen.d.cts} +2 -2
- package/dist/{index-BfHoUosL.d.cts.map → index-C5ugjRen.d.cts.map} +1 -1
- package/dist/{index-BfHoUosL.d.mts → index-C5ugjRen.d.mts} +2 -2
- package/dist/{index-BfHoUosL.d.mts.map → index-C5ugjRen.d.mts.map} +1 -1
- package/dist/{index-bO8Bd2qN.d.cts → index-CI5EwPm7.d.cts} +3 -3
- package/dist/{index-bO8Bd2qN.d.cts.map → index-CI5EwPm7.d.cts.map} +1 -1
- package/dist/{index-bO8Bd2qN.d.mts → index-CI5EwPm7.d.mts} +3 -3
- package/dist/{index-bO8Bd2qN.d.mts.map → index-CI5EwPm7.d.mts.map} +1 -1
- package/dist/{index-CxCGf9_1.d.mts → index-CU-siW-K.d.mts} +2 -2
- package/dist/{index-CTCm9Rd3.d.cts.map → index-CU-siW-K.d.mts.map} +1 -1
- package/dist/index-CsF26Fe8.d.cts.map +1 -1
- package/dist/index-CsF26Fe8.d.mts.map +1 -1
- package/dist/{index-D0R6bxY7.d.cts → index-D5_0x-hC.d.cts} +2 -2
- package/dist/{index-D0R6bxY7.d.cts.map → index-D5_0x-hC.d.cts.map} +1 -1
- package/dist/{index-Wut4L1Y4.d.mts → index-DeDN45Ha.d.mts} +2 -2
- package/dist/{index-Wut4L1Y4.d.mts.map → index-DeDN45Ha.d.mts.map} +1 -1
- package/dist/{index-CY6x-q24.d.cts → index-DtPmPGcN.d.cts} +2 -2
- package/dist/index-DtPmPGcN.d.cts.map +1 -0
- package/dist/{index-CY6x-q24.d.mts → index-DtPmPGcN.d.mts} +2 -2
- package/dist/index-DtPmPGcN.d.mts.map +1 -0
- package/dist/{index-DISRvpYF.d.cts → index-o7W0pKFo.d.mts} +2 -2
- package/dist/{index-N-mHPudY.d.mts.map → index-o7W0pKFo.d.mts.map} +1 -1
- package/dist/{index-CTCm9Rd3.d.cts → index-y8s6jpSR.d.cts} +2 -2
- package/dist/{index-CxCGf9_1.d.mts.map → index-y8s6jpSR.d.cts.map} +1 -1
- package/dist/index.cjs +16 -10
- package/dist/index.d.cts +12 -9
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +12 -9
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +14 -11
- package/dist/{input-otp-DyBlKPGM.cjs → input-otp-C7O7AtXb.cjs} +1 -1
- package/dist/{input-otp-CXy8gtKM.mjs → input-otp-CFNLnAuu.mjs} +2 -2
- package/dist/input-otp-CFNLnAuu.mjs.map +1 -0
- package/dist/{inspector-split-view-CSPoFJJC.cjs → inspector-split-view-Cwsvl3-m.cjs} +33 -27
- package/dist/{inspector-split-view-CQeClX4k.mjs → inspector-split-view-D5tX9P5r.mjs} +34 -28
- package/dist/inspector-split-view-D5tX9P5r.mjs.map +1 -0
- package/dist/{project-kanban-board-TUeAebbI.mjs → project-kanban-board-BHLRHooH.mjs} +13 -13
- package/dist/project-kanban-board-BHLRHooH.mjs.map +1 -0
- package/dist/{project-kanban-board-BGypLhTA.cjs → project-kanban-board-DUaDiHZC.cjs} +12 -12
- package/dist/styles.css +1 -1
- package/dist/{team-members-table-Cu5gCqMg.cjs → team-members-table-5OWUc6Ib.cjs} +5 -5
- package/dist/{team-members-table-ChWMZMYw.mjs → team-members-table-DW52BAKr.mjs} +6 -6
- package/dist/team-members-table-DW52BAKr.mjs.map +1 -0
- package/dist/{toggle-BjthGxVv.cjs → toggle-CZG8xQeG.cjs} +1 -1
- package/dist/{toggle-C2RktAMd.mjs → toggle-CpsU8EEk.mjs} +2 -2
- package/dist/toggle-CpsU8EEk.mjs.map +1 -0
- package/package.json +34 -4
- package/scripts/verify-artifacts.mjs +2 -2
- package/src/blocks/app-shell-layout/app-shell-layout.tsx +8 -8
- package/src/blocks/auth-form/auth-form.tsx +4 -4
- package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.tsx +9 -9
- package/src/blocks/color-palette-sheet/color-palette-sheet.stories.tsx +161 -0
- package/src/blocks/color-palette-sheet/color-palette-sheet.test.tsx +45 -0
- package/src/blocks/color-palette-sheet/color-palette-sheet.tsx +287 -0
- package/src/blocks/color-palette-sheet/index.ts +1 -0
- package/src/blocks/dashboard-header/dashboard-header.tsx +1 -1
- package/src/blocks/data-table-with-filters/data-table-with-filters.tsx +4 -3
- package/src/blocks/empty-state-block/empty-state-block.tsx +9 -8
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.test.tsx +16 -8
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.tsx +161 -78
- package/src/blocks/form-with-validation/form-with-validation.tsx +5 -5
- package/src/blocks/heuristic-finding-card/heuristic-finding-card.stories.tsx +1 -1
- package/src/blocks/heuristic-finding-card/heuristic-finding-card.tsx +110 -64
- package/src/blocks/inspector-split-view/inspector-split-view.tsx +15 -15
- package/src/blocks/instrument-metrics-grid/index.ts +1 -0
- package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.stories.tsx +41 -0
- package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.test.tsx +17 -0
- package/src/blocks/instrument-metrics-grid/instrument-metrics-grid.tsx +277 -0
- package/src/blocks/project-kanban-board/project-kanban-board.tsx +12 -12
- package/src/blocks/schedule-timeline-board/index.ts +1 -0
- package/src/blocks/schedule-timeline-board/schedule-timeline-board.stories.tsx +202 -0
- package/src/blocks/schedule-timeline-board/schedule-timeline-board.test.tsx +67 -0
- package/src/blocks/schedule-timeline-board/schedule-timeline-board.tsx +495 -0
- package/src/blocks/stats-card-grid/stats-card-grid.tsx +36 -10
- package/src/blocks/team-members-table/team-members-table.tsx +5 -5
- package/src/components/accordion/accordion.tsx +2 -2
- package/src/components/alert/alert.test.tsx +15 -1
- package/src/components/alert/alert.tsx +13 -9
- package/src/components/alert-dialog/alert-dialog.tsx +2 -2
- package/src/components/avatar/avatar.tsx +1 -1
- package/src/components/badge/badge.tsx +4 -1
- package/src/components/button/button.test.tsx +15 -6
- package/src/components/button/button.tsx +63 -13
- package/src/components/calendar/calendar.tsx +5 -5
- package/src/components/card/card.stories.tsx +1 -1
- package/src/components/card/card.tsx +11 -7
- package/src/components/chart/chart.tsx +1 -1
- package/src/components/combobox/combobox.tsx +1 -1
- package/src/components/context-menu/context-menu.tsx +2 -2
- package/src/components/data-table/data-table.tsx +1 -1
- package/src/components/dialog/dialog.tsx +10 -7
- package/src/components/drawer/drawer.tsx +5 -3
- package/src/components/dropdown-menu/dropdown-menu.tsx +3 -3
- package/src/components/file-input/file-input.tsx +1 -1
- package/src/components/hover-card/hover-card.tsx +1 -1
- package/src/components/input/input.tsx +5 -4
- package/src/components/input-otp/input-otp.tsx +1 -1
- package/src/components/navigation-menu/navigation-menu.tsx +2 -2
- package/src/components/number-field/number-field.tsx +1 -1
- package/src/components/popover/popover.tsx +1 -1
- package/src/components/progress/progress.stories.tsx +39 -0
- package/src/components/progress/progress.tsx +110 -18
- package/src/components/select/select.tsx +5 -4
- package/src/components/separator/separator.tsx +1 -1
- package/src/components/sheet/sheet.tsx +10 -7
- package/src/components/switch/switch.tsx +1 -1
- package/src/components/table/table.tsx +2 -2
- package/src/components/tabs/tabs.tsx +6 -3
- package/src/components/textarea/textarea.tsx +1 -1
- package/src/components/toast/toast.tsx +11 -8
- package/src/components/toggle/toggle.tsx +1 -1
- package/src/index.ts +3 -0
- package/src/test/palette-contract.test.ts +24 -21
- package/src/test/sidebar-contract.test.ts +8 -6
- package/styles/theme.css +279 -191
- package/dist/app-shell-layout-C63PPxCb.mjs.map +0 -1
- package/dist/collaboration-chat-panel-DuIoQQ6W.mjs.map +0 -1
- package/dist/empty-state-block-DePTPvzM.mjs.map +0 -1
- package/dist/evaluation-summary-report-Bx2iT1Pd.cjs +0 -212
- package/dist/evaluation-summary-report-CbaikB0Q.mjs +0 -207
- package/dist/evaluation-summary-report-CbaikB0Q.mjs.map +0 -1
- package/dist/heuristic-finding-card-BFwXci2U.mjs.map +0 -1
- package/dist/index-CY6x-q24.d.cts.map +0 -1
- package/dist/index-CY6x-q24.d.mts.map +0 -1
- package/dist/index-jYLDWfZc.d.cts +0 -15
- package/dist/index-jYLDWfZc.d.cts.map +0 -1
- package/dist/index-jYLDWfZc.d.mts +0 -15
- package/dist/index-jYLDWfZc.d.mts.map +0 -1
- package/dist/input-otp-CXy8gtKM.mjs.map +0 -1
- package/dist/inspector-split-view-CQeClX4k.mjs.map +0 -1
- package/dist/project-kanban-board-TUeAebbI.mjs.map +0 -1
- package/dist/team-members-table-ChWMZMYw.mjs.map +0 -1
- package/dist/toggle-C2RktAMd.mjs.map +0 -1
- package/src/__tests__/storybook-preview.test.tsx +0 -164
- package/src/test/docs-component-usability.test.tsx +0 -98
|
@@ -0,0 +1,495 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import {
|
|
5
|
+
Check,
|
|
6
|
+
ChevronLeft,
|
|
7
|
+
ChevronRight,
|
|
8
|
+
MessageSquare,
|
|
9
|
+
Plus,
|
|
10
|
+
SlidersHorizontal,
|
|
11
|
+
X,
|
|
12
|
+
} from "lucide-react";
|
|
13
|
+
import { Button } from "../../components/button";
|
|
14
|
+
import { cn } from "../../lib/utils";
|
|
15
|
+
|
|
16
|
+
export type ScheduleEventStatus =
|
|
17
|
+
| "confirmed"
|
|
18
|
+
| "in-progress"
|
|
19
|
+
| "completed"
|
|
20
|
+
| "attention";
|
|
21
|
+
|
|
22
|
+
export interface ScheduleResource {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
meta: string;
|
|
26
|
+
initials: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ScheduleEventItem {
|
|
30
|
+
id: string;
|
|
31
|
+
resourceId: string;
|
|
32
|
+
title: string;
|
|
33
|
+
subtitle: string;
|
|
34
|
+
owner: string;
|
|
35
|
+
timeRange: string;
|
|
36
|
+
/** 0-based start column across the hours grid. */
|
|
37
|
+
startCol: number;
|
|
38
|
+
/** Number of columns the event spans. */
|
|
39
|
+
spanCols: number;
|
|
40
|
+
status: ScheduleEventStatus;
|
|
41
|
+
verification?: string;
|
|
42
|
+
note?: string;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface ScheduleTimelineBoardProps {
|
|
46
|
+
title?: string;
|
|
47
|
+
subtitle?: string;
|
|
48
|
+
dateLabel?: string;
|
|
49
|
+
hours?: string[];
|
|
50
|
+
currentTimeHour?: string;
|
|
51
|
+
currentTimeLabel?: string;
|
|
52
|
+
/** Horizontal offset (0..100) for the live time indicator across the hour columns. */
|
|
53
|
+
currentTimePercent?: number;
|
|
54
|
+
coverageNotice?: string;
|
|
55
|
+
resources: ScheduleResource[];
|
|
56
|
+
events: ScheduleEventItem[];
|
|
57
|
+
defaultSelectedEventId?: string | null;
|
|
58
|
+
primaryActionLabel?: string;
|
|
59
|
+
onPrimaryAction?: () => void;
|
|
60
|
+
openDetailLabel?: string;
|
|
61
|
+
onOpenDetail?: (event: ScheduleEventItem) => void;
|
|
62
|
+
secondaryDetailLabel?: string;
|
|
63
|
+
onSecondaryDetail?: (event: ScheduleEventItem) => void;
|
|
64
|
+
footerSummary?: string;
|
|
65
|
+
footerHint?: string;
|
|
66
|
+
className?: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const DEFAULT_HOURS = [
|
|
70
|
+
"7 AM",
|
|
71
|
+
"8 AM",
|
|
72
|
+
"9 AM",
|
|
73
|
+
"10 AM",
|
|
74
|
+
"11 AM",
|
|
75
|
+
"12 PM",
|
|
76
|
+
"1 PM",
|
|
77
|
+
"2 PM",
|
|
78
|
+
"3 PM",
|
|
79
|
+
"4 PM",
|
|
80
|
+
"5 PM",
|
|
81
|
+
"6 PM",
|
|
82
|
+
];
|
|
83
|
+
|
|
84
|
+
export function ScheduleTimelineBoard({
|
|
85
|
+
title = "Schedule",
|
|
86
|
+
subtitle = "Monday, Oct 5 · 48 reviews · 14 coordinators active",
|
|
87
|
+
dateLabel = "Today",
|
|
88
|
+
hours = DEFAULT_HOURS,
|
|
89
|
+
currentTimeHour = "1 PM",
|
|
90
|
+
currentTimeLabel = "1:38",
|
|
91
|
+
currentTimePercent = 54.16,
|
|
92
|
+
coverageNotice = "All covered · 48 of 48 reviews assigned",
|
|
93
|
+
resources,
|
|
94
|
+
events,
|
|
95
|
+
defaultSelectedEventId,
|
|
96
|
+
primaryActionLabel = "New review",
|
|
97
|
+
onPrimaryAction,
|
|
98
|
+
openDetailLabel = "Open audit",
|
|
99
|
+
onOpenDetail,
|
|
100
|
+
secondaryDetailLabel = "Finding",
|
|
101
|
+
onSecondaryDetail,
|
|
102
|
+
footerSummary,
|
|
103
|
+
footerHint = "Select any schedule block to inspect details",
|
|
104
|
+
className,
|
|
105
|
+
}: ScheduleTimelineBoardProps) {
|
|
106
|
+
const [rangeMode, setRangeMode] = React.useState<"day" | "week">("day");
|
|
107
|
+
const [groupMode, setGroupMode] = React.useState<"reviewers" | "projects">(
|
|
108
|
+
"reviewers"
|
|
109
|
+
);
|
|
110
|
+
const [selectedEventId, setSelectedEventId] = React.useState<string | null>(
|
|
111
|
+
defaultSelectedEventId !== undefined
|
|
112
|
+
? defaultSelectedEventId
|
|
113
|
+
: (events[1]?.id ?? events[0]?.id ?? null)
|
|
114
|
+
);
|
|
115
|
+
|
|
116
|
+
const selectedEvent = React.useMemo(
|
|
117
|
+
() => events.find((item) => item.id === selectedEventId) ?? null,
|
|
118
|
+
[events, selectedEventId]
|
|
119
|
+
);
|
|
120
|
+
|
|
121
|
+
if (resources.length === 0) {
|
|
122
|
+
return (
|
|
123
|
+
<div
|
|
124
|
+
className={cn(
|
|
125
|
+
"flex w-full flex-col items-center justify-center rounded-xl border border-dashed border-border bg-secondary/30 px-8 py-16 text-center",
|
|
126
|
+
className
|
|
127
|
+
)}
|
|
128
|
+
>
|
|
129
|
+
<p className="m-0 text-sm font-medium text-foreground">
|
|
130
|
+
No scheduled coordinators yet
|
|
131
|
+
</p>
|
|
132
|
+
<p className="m-0 mt-2 max-w-sm text-xs text-muted-foreground">
|
|
133
|
+
Assign coordinators or review windows to populate the timeline board.
|
|
134
|
+
</p>
|
|
135
|
+
{onPrimaryAction && (
|
|
136
|
+
<Button size="sm" onClick={onPrimaryAction} className="mt-5 gap-1.5">
|
|
137
|
+
<Plus className="h-3.5 w-3.5" />
|
|
138
|
+
<span>{primaryActionLabel}</span>
|
|
139
|
+
</Button>
|
|
140
|
+
)}
|
|
141
|
+
</div>
|
|
142
|
+
);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const colCount = hours.length;
|
|
146
|
+
|
|
147
|
+
return (
|
|
148
|
+
<div className={cn("@container flex w-full flex-col gap-6", className)}>
|
|
149
|
+
{/* Header & Operational Controls */}
|
|
150
|
+
<div className="flex flex-wrap items-center justify-between gap-4">
|
|
151
|
+
<div className="flex flex-col gap-1">
|
|
152
|
+
<h3 className="m-0 text-xl font-semibold tracking-tight text-foreground">
|
|
153
|
+
{title}
|
|
154
|
+
</h3>
|
|
155
|
+
<p className="m-0 text-sm text-muted-foreground tabular-nums">
|
|
156
|
+
{subtitle}
|
|
157
|
+
</p>
|
|
158
|
+
</div>
|
|
159
|
+
|
|
160
|
+
<div className="flex flex-wrap items-center gap-2.5">
|
|
161
|
+
{/* Date stepper */}
|
|
162
|
+
<div className="inline-flex items-center rounded-md border border-border bg-card text-xs">
|
|
163
|
+
<button
|
|
164
|
+
type="button"
|
|
165
|
+
aria-label="Previous period"
|
|
166
|
+
className="px-2.5 py-2 text-muted-foreground transition-colors duration-150 hover:text-foreground cursor-pointer"
|
|
167
|
+
>
|
|
168
|
+
<ChevronLeft className="h-3.5 w-3.5" />
|
|
169
|
+
</button>
|
|
170
|
+
<span className="border-x border-border px-3 py-2 font-medium text-foreground">
|
|
171
|
+
{dateLabel}
|
|
172
|
+
</span>
|
|
173
|
+
<button
|
|
174
|
+
type="button"
|
|
175
|
+
aria-label="Next period"
|
|
176
|
+
className="px-2.5 py-2 text-muted-foreground transition-colors duration-150 hover:text-foreground cursor-pointer"
|
|
177
|
+
>
|
|
178
|
+
<ChevronRight className="h-3.5 w-3.5" />
|
|
179
|
+
</button>
|
|
180
|
+
</div>
|
|
181
|
+
|
|
182
|
+
{/* Day / Week segmented control */}
|
|
183
|
+
<div
|
|
184
|
+
role="group"
|
|
185
|
+
aria-label="Time range"
|
|
186
|
+
className="inline-flex rounded-md border border-border bg-secondary p-1 text-xs"
|
|
187
|
+
>
|
|
188
|
+
{(["day", "week"] as const).map((mode) => (
|
|
189
|
+
<button
|
|
190
|
+
key={mode}
|
|
191
|
+
type="button"
|
|
192
|
+
aria-pressed={rangeMode === mode}
|
|
193
|
+
onClick={() => setRangeMode(mode)}
|
|
194
|
+
className={cn(
|
|
195
|
+
"rounded-sm px-3 py-1 font-medium capitalize transition-colors duration-150 cursor-pointer",
|
|
196
|
+
rangeMode === mode
|
|
197
|
+
? "bg-card text-foreground shadow-xs"
|
|
198
|
+
: "text-muted-foreground hover:text-foreground"
|
|
199
|
+
)}
|
|
200
|
+
>
|
|
201
|
+
{mode}
|
|
202
|
+
</button>
|
|
203
|
+
))}
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
{/* Reviewers / Projects segmented control */}
|
|
207
|
+
<div
|
|
208
|
+
role="group"
|
|
209
|
+
aria-label="Grouping"
|
|
210
|
+
className="hidden rounded-md border border-border bg-secondary p-1 text-xs @[48rem]:inline-flex"
|
|
211
|
+
>
|
|
212
|
+
{(["reviewers", "projects"] as const).map((group) => (
|
|
213
|
+
<button
|
|
214
|
+
key={group}
|
|
215
|
+
type="button"
|
|
216
|
+
aria-pressed={groupMode === group}
|
|
217
|
+
onClick={() => setGroupMode(group)}
|
|
218
|
+
className={cn(
|
|
219
|
+
"rounded-sm px-3 py-1 font-medium capitalize transition-colors duration-150 cursor-pointer",
|
|
220
|
+
groupMode === group
|
|
221
|
+
? "bg-card text-foreground shadow-xs"
|
|
222
|
+
: "text-muted-foreground hover:text-foreground"
|
|
223
|
+
)}
|
|
224
|
+
>
|
|
225
|
+
{group}
|
|
226
|
+
</button>
|
|
227
|
+
))}
|
|
228
|
+
</div>
|
|
229
|
+
|
|
230
|
+
<span className="hidden items-center gap-2 rounded-md border border-border bg-card px-3 py-2 text-xs text-muted-foreground @[60rem]:inline-flex">
|
|
231
|
+
<SlidersHorizontal className="h-3.5 w-3.5" />
|
|
232
|
+
<span>All areas</span>
|
|
233
|
+
</span>
|
|
234
|
+
|
|
235
|
+
<Button
|
|
236
|
+
size="sm"
|
|
237
|
+
onClick={onPrimaryAction}
|
|
238
|
+
className="gap-1.5 px-4 text-xs"
|
|
239
|
+
>
|
|
240
|
+
<Plus className="h-3.5 w-3.5" />
|
|
241
|
+
<span>{primaryActionLabel}</span>
|
|
242
|
+
</Button>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
{/* Coverage Status Bar & Legend */}
|
|
247
|
+
{coverageNotice && (
|
|
248
|
+
<div className="flex flex-wrap items-center justify-between gap-4 rounded-lg border border-pulse-green/30 bg-pulse-green/10 px-5 py-3 text-xs">
|
|
249
|
+
<span className="flex items-center gap-2.5 font-medium text-pulse-green-foreground">
|
|
250
|
+
<Check className="h-4 w-4 shrink-0" />
|
|
251
|
+
<span>{coverageNotice}</span>
|
|
252
|
+
</span>
|
|
253
|
+
<div className="flex flex-wrap items-center gap-5 text-xs text-muted-foreground">
|
|
254
|
+
<span className="flex items-center gap-2">
|
|
255
|
+
<span className="h-2.5 w-2.5 rounded-xs border border-border bg-secondary" />
|
|
256
|
+
Confirmed
|
|
257
|
+
</span>
|
|
258
|
+
<span className="flex items-center gap-2">
|
|
259
|
+
<span className="h-2.5 w-2.5 rounded-xs bg-primary" />
|
|
260
|
+
In progress
|
|
261
|
+
</span>
|
|
262
|
+
<span className="flex items-center gap-2">
|
|
263
|
+
<span className="h-2.5 w-2.5 rounded-xs border border-coral-red/50 bg-coral-red/15" />
|
|
264
|
+
Needs attention
|
|
265
|
+
</span>
|
|
266
|
+
</div>
|
|
267
|
+
</div>
|
|
268
|
+
)}
|
|
269
|
+
|
|
270
|
+
{/* Timeline Grid Canvas */}
|
|
271
|
+
<div className="overflow-x-auto rounded-xl border border-border bg-card">
|
|
272
|
+
<div className="min-w-[740px]">
|
|
273
|
+
{/* Column Header */}
|
|
274
|
+
<div
|
|
275
|
+
className="grid border-b border-border bg-secondary/40 text-xs text-muted-foreground"
|
|
276
|
+
style={{
|
|
277
|
+
gridTemplateColumns: `184px repeat(${colCount}, minmax(0, 1fr))`,
|
|
278
|
+
}}
|
|
279
|
+
>
|
|
280
|
+
<div className="border-r border-border px-4 py-3 font-medium">
|
|
281
|
+
{groupMode === "reviewers" ? "Coordinator" : "Project"}
|
|
282
|
+
</div>
|
|
283
|
+
{hours.map((hour) => (
|
|
284
|
+
<div
|
|
285
|
+
key={hour}
|
|
286
|
+
className="relative border-r border-border/40 px-1.5 py-3 text-center font-mono text-[11px] tabular-nums last:border-r-0"
|
|
287
|
+
>
|
|
288
|
+
{hour === currentTimeHour ? (
|
|
289
|
+
<span className="rounded-sm bg-primary px-1.5 py-0.5 font-semibold text-primary-foreground">
|
|
290
|
+
{currentTimeLabel}
|
|
291
|
+
</span>
|
|
292
|
+
) : (
|
|
293
|
+
hour
|
|
294
|
+
)}
|
|
295
|
+
</div>
|
|
296
|
+
))}
|
|
297
|
+
</div>
|
|
298
|
+
|
|
299
|
+
{/* Resource Rows */}
|
|
300
|
+
<div className="relative divide-y divide-border/70">
|
|
301
|
+
{/* Live Time Indicator Line */}
|
|
302
|
+
<div
|
|
303
|
+
aria-hidden="true"
|
|
304
|
+
className="pointer-events-none absolute bottom-0 top-0 z-10 w-px bg-primary/55"
|
|
305
|
+
style={{
|
|
306
|
+
left: `calc(184px + (100% - 184px) * ${currentTimePercent / 100})`,
|
|
307
|
+
}}
|
|
308
|
+
/>
|
|
309
|
+
|
|
310
|
+
{resources.map((resource) => {
|
|
311
|
+
const rowEvents = events.filter(
|
|
312
|
+
(event) => event.resourceId === resource.id
|
|
313
|
+
);
|
|
314
|
+
|
|
315
|
+
return (
|
|
316
|
+
<div
|
|
317
|
+
key={resource.id}
|
|
318
|
+
className="grid items-center"
|
|
319
|
+
style={{
|
|
320
|
+
gridTemplateColumns: `184px minmax(0, 1fr)`,
|
|
321
|
+
}}
|
|
322
|
+
>
|
|
323
|
+
{/* Coordinator Cell */}
|
|
324
|
+
<div className="flex items-center gap-3 border-r border-border px-4 py-3.5">
|
|
325
|
+
<span className="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-secondary text-[11px] font-semibold text-foreground">
|
|
326
|
+
{resource.initials}
|
|
327
|
+
</span>
|
|
328
|
+
<div className="flex min-w-0 flex-col gap-0.5">
|
|
329
|
+
<div className="truncate text-xs font-medium text-foreground">
|
|
330
|
+
{resource.name}
|
|
331
|
+
</div>
|
|
332
|
+
<div className="truncate text-[11px] text-muted-foreground tabular-nums">
|
|
333
|
+
{resource.meta}
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
{/* Time Track */}
|
|
339
|
+
<div
|
|
340
|
+
className="relative grid px-1.5 py-2.5"
|
|
341
|
+
style={{
|
|
342
|
+
gridTemplateColumns: `repeat(${colCount}, minmax(0, 1fr))`,
|
|
343
|
+
}}
|
|
344
|
+
>
|
|
345
|
+
{rowEvents.map((event) => {
|
|
346
|
+
const isSelected = selectedEvent?.id === event.id;
|
|
347
|
+
const toneClasses =
|
|
348
|
+
event.status === "in-progress"
|
|
349
|
+
? "border-primary bg-primary text-primary-foreground"
|
|
350
|
+
: event.status === "attention"
|
|
351
|
+
? "border-dashed border-coral-red/50 bg-coral-red/10 text-coral-red-foreground"
|
|
352
|
+
: event.status === "completed"
|
|
353
|
+
? "border-foreground/45 bg-secondary text-foreground"
|
|
354
|
+
: "border-border bg-secondary/75 text-foreground hover:border-hairline-strong";
|
|
355
|
+
|
|
356
|
+
return (
|
|
357
|
+
<button
|
|
358
|
+
key={event.id}
|
|
359
|
+
type="button"
|
|
360
|
+
aria-pressed={isSelected}
|
|
361
|
+
onClick={() =>
|
|
362
|
+
setSelectedEventId((curr) =>
|
|
363
|
+
curr === event.id ? null : event.id
|
|
364
|
+
)
|
|
365
|
+
}
|
|
366
|
+
style={{
|
|
367
|
+
gridColumn: `${event.startCol + 1} / span ${event.spanCols}`,
|
|
368
|
+
}}
|
|
369
|
+
className={cn(
|
|
370
|
+
"mx-1 flex flex-col gap-0.5 rounded-lg border px-2.5 py-2 text-left transition-colors duration-150 cursor-pointer",
|
|
371
|
+
toneClasses,
|
|
372
|
+
isSelected &&
|
|
373
|
+
"ring-2 ring-ring ring-offset-2 ring-offset-card"
|
|
374
|
+
)}
|
|
375
|
+
>
|
|
376
|
+
<span className="truncate text-xs font-medium leading-snug">
|
|
377
|
+
{event.title}
|
|
378
|
+
</span>
|
|
379
|
+
<span className="truncate font-mono text-[11px] opacity-80 tabular-nums">
|
|
380
|
+
{event.timeRange.split(" to ")[0]}
|
|
381
|
+
</span>
|
|
382
|
+
</button>
|
|
383
|
+
);
|
|
384
|
+
})}
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
);
|
|
388
|
+
})}
|
|
389
|
+
</div>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
|
|
393
|
+
{/* Selected Block Inspector Panel (container-responsive, zero overlap at any width) */}
|
|
394
|
+
{selectedEvent && (
|
|
395
|
+
<div
|
|
396
|
+
role="region"
|
|
397
|
+
aria-label={`Selected schedule item: ${selectedEvent.title}`}
|
|
398
|
+
className="rounded-xl border border-border bg-popover p-6 text-popover-foreground shadow-(--shadow-md)"
|
|
399
|
+
>
|
|
400
|
+
<div className="flex flex-col gap-5 @[64rem]:flex-row @[64rem]:items-center @[64rem]:justify-between">
|
|
401
|
+
<div className="flex items-start justify-between gap-4">
|
|
402
|
+
<div className="flex items-start gap-3.5">
|
|
403
|
+
<span className="inline-flex h-10 w-10 shrink-0 items-center justify-center rounded-lg border border-border bg-secondary text-xs font-semibold text-foreground">
|
|
404
|
+
{selectedEvent.title.slice(0, 2).toUpperCase()}
|
|
405
|
+
</span>
|
|
406
|
+
<div className="flex min-w-0 flex-col gap-1">
|
|
407
|
+
<div className="flex flex-wrap items-center gap-2.5">
|
|
408
|
+
<span className="text-sm font-semibold text-popover-foreground">
|
|
409
|
+
{selectedEvent.title}
|
|
410
|
+
</span>
|
|
411
|
+
<span className="inline-flex items-center gap-1.5 rounded-full border border-border bg-secondary px-2.5 py-0.5 text-[11px] font-medium text-foreground capitalize">
|
|
412
|
+
<span className="h-1.5 w-1.5 rounded-full bg-primary" />
|
|
413
|
+
{selectedEvent.status.replace("-", " ")}
|
|
414
|
+
</span>
|
|
415
|
+
</div>
|
|
416
|
+
<p className="m-0 text-xs text-muted-foreground">
|
|
417
|
+
{selectedEvent.subtitle}
|
|
418
|
+
</p>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
|
|
422
|
+
<button
|
|
423
|
+
type="button"
|
|
424
|
+
aria-label="Close inspector"
|
|
425
|
+
onClick={() => setSelectedEventId(null)}
|
|
426
|
+
className="inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-card text-muted-foreground transition-colors duration-150 hover:text-foreground cursor-pointer @[64rem]:hidden"
|
|
427
|
+
>
|
|
428
|
+
<X className="h-3.5 w-3.5" />
|
|
429
|
+
</button>
|
|
430
|
+
</div>
|
|
431
|
+
|
|
432
|
+
<div className="grid flex-1 grid-cols-1 gap-4 border-y border-border/70 py-4 text-xs @[34rem]:grid-cols-3 @[64rem]:border-y-0 @[64rem]:border-x @[64rem]:px-6 @[64rem]:py-0">
|
|
433
|
+
<div className="flex min-w-0 flex-col gap-1">
|
|
434
|
+
<div className="text-muted-foreground">Window</div>
|
|
435
|
+
<div className="font-medium text-popover-foreground tabular-nums">
|
|
436
|
+
{selectedEvent.timeRange}
|
|
437
|
+
</div>
|
|
438
|
+
</div>
|
|
439
|
+
<div className="flex min-w-0 flex-col gap-1">
|
|
440
|
+
<div className="text-muted-foreground">Owner</div>
|
|
441
|
+
<div className="truncate font-medium text-popover-foreground">
|
|
442
|
+
{selectedEvent.owner}
|
|
443
|
+
</div>
|
|
444
|
+
</div>
|
|
445
|
+
<div className="flex min-w-0 flex-col gap-1">
|
|
446
|
+
<div className="text-muted-foreground">Verification</div>
|
|
447
|
+
<div className="truncate font-medium text-pulse-green-foreground">
|
|
448
|
+
{selectedEvent.verification ?? selectedEvent.note ?? "Synced"}
|
|
449
|
+
</div>
|
|
450
|
+
</div>
|
|
451
|
+
</div>
|
|
452
|
+
|
|
453
|
+
<div className="flex shrink-0 flex-wrap items-center gap-2.5">
|
|
454
|
+
<Button
|
|
455
|
+
size="sm"
|
|
456
|
+
onClick={() => onOpenDetail?.(selectedEvent)}
|
|
457
|
+
className="px-4 text-xs"
|
|
458
|
+
>
|
|
459
|
+
{openDetailLabel} ›
|
|
460
|
+
</Button>
|
|
461
|
+
{onSecondaryDetail && (
|
|
462
|
+
<Button
|
|
463
|
+
size="sm"
|
|
464
|
+
variant="outline"
|
|
465
|
+
onClick={() => onSecondaryDetail(selectedEvent)}
|
|
466
|
+
className="gap-1.5 px-3.5 text-xs"
|
|
467
|
+
>
|
|
468
|
+
<MessageSquare className="h-3.5 w-3.5" />
|
|
469
|
+
<span>{secondaryDetailLabel}</span>
|
|
470
|
+
</Button>
|
|
471
|
+
)}
|
|
472
|
+
<button
|
|
473
|
+
type="button"
|
|
474
|
+
aria-label="Close inspector"
|
|
475
|
+
onClick={() => setSelectedEventId(null)}
|
|
476
|
+
className="hidden h-8 w-8 items-center justify-center rounded-md border border-border bg-card text-muted-foreground transition-colors duration-150 hover:text-foreground cursor-pointer @[64rem]:inline-flex"
|
|
477
|
+
>
|
|
478
|
+
<X className="h-3.5 w-3.5" />
|
|
479
|
+
</button>
|
|
480
|
+
</div>
|
|
481
|
+
</div>
|
|
482
|
+
</div>
|
|
483
|
+
)}
|
|
484
|
+
|
|
485
|
+
{/* Footer Meta */}
|
|
486
|
+
<div className="flex flex-wrap items-center justify-between gap-3 text-xs text-muted-foreground">
|
|
487
|
+
<span>
|
|
488
|
+
{footerSummary ??
|
|
489
|
+
`Showing ${resources.length} coordinators · ${events.length} scheduled blocks`}
|
|
490
|
+
</span>
|
|
491
|
+
<span>{footerHint}</span>
|
|
492
|
+
</div>
|
|
493
|
+
</div>
|
|
494
|
+
);
|
|
495
|
+
}
|
|
@@ -18,6 +18,8 @@ export interface StatItem {
|
|
|
18
18
|
trend?: "up" | "down" | "neutral";
|
|
19
19
|
description?: string;
|
|
20
20
|
icon?: React.ReactNode;
|
|
21
|
+
/** Renders the metric on an inverted high-contrast Graphite faceplate. */
|
|
22
|
+
highlighted?: boolean;
|
|
21
23
|
}
|
|
22
24
|
|
|
23
25
|
export interface StatsCardGridProps {
|
|
@@ -42,14 +44,14 @@ export function StatsCardGrid({
|
|
|
42
44
|
return (
|
|
43
45
|
<div
|
|
44
46
|
className={cn(
|
|
45
|
-
"flex w-full flex-col items-center justify-center rounded-
|
|
47
|
+
"flex w-full flex-col items-center justify-center rounded-lg border border-dashed border-border bg-secondary/40 px-8 py-12 text-center",
|
|
46
48
|
className
|
|
47
49
|
)}
|
|
48
50
|
>
|
|
49
51
|
<p className="text-sm font-medium text-foreground">
|
|
50
52
|
No metrics available
|
|
51
53
|
</p>
|
|
52
|
-
<p className="mt-
|
|
54
|
+
<p className="mt-2 text-xs text-muted-foreground">
|
|
53
55
|
Stats will appear once evaluation activity is recorded.
|
|
54
56
|
</p>
|
|
55
57
|
</div>
|
|
@@ -57,25 +59,49 @@ export function StatsCardGrid({
|
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
return (
|
|
60
|
-
<div className={cn("grid gap-
|
|
62
|
+
<div className={cn("grid gap-5 w-full", gridColsClass, className)}>
|
|
61
63
|
{stats.map((stat) => (
|
|
62
|
-
<Card
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
<Card
|
|
65
|
+
key={stat.id}
|
|
66
|
+
variant={stat.highlighted ? "inverted" : "default"}
|
|
67
|
+
className="relative overflow-hidden"
|
|
68
|
+
>
|
|
69
|
+
<CardHeader className="flex flex-row items-center justify-between gap-3 space-y-0 px-6 pt-6 pb-3">
|
|
70
|
+
<CardTitle
|
|
71
|
+
className={cn(
|
|
72
|
+
"text-xs font-medium",
|
|
73
|
+
stat.highlighted ? "text-background/75" : "text-muted-foreground"
|
|
74
|
+
)}
|
|
75
|
+
>
|
|
65
76
|
{stat.title}
|
|
66
77
|
</CardTitle>
|
|
67
78
|
{stat.icon && (
|
|
68
|
-
<div
|
|
79
|
+
<div
|
|
80
|
+
className={cn(
|
|
81
|
+
"h-4 w-4 shrink-0",
|
|
82
|
+
stat.highlighted ? "text-background/75" : "text-muted-foreground"
|
|
83
|
+
)}
|
|
84
|
+
>
|
|
69
85
|
{stat.icon}
|
|
70
86
|
</div>
|
|
71
87
|
)}
|
|
72
88
|
</CardHeader>
|
|
73
|
-
<CardContent className="space-y-
|
|
74
|
-
<div
|
|
89
|
+
<CardContent className="space-y-2.5 px-6 pb-6 pt-0">
|
|
90
|
+
<div
|
|
91
|
+
className={cn(
|
|
92
|
+
"text-2xl font-semibold tracking-tight font-mono tabular-nums",
|
|
93
|
+
stat.highlighted ? "text-background" : "text-foreground"
|
|
94
|
+
)}
|
|
95
|
+
>
|
|
75
96
|
{stat.value}
|
|
76
97
|
</div>
|
|
77
98
|
{(stat.change || stat.description) && (
|
|
78
|
-
<div
|
|
99
|
+
<div
|
|
100
|
+
className={cn(
|
|
101
|
+
"flex flex-wrap items-center gap-2.5 text-xs",
|
|
102
|
+
stat.highlighted ? "text-background/75" : "text-muted-foreground"
|
|
103
|
+
)}
|
|
104
|
+
>
|
|
79
105
|
{stat.change && (
|
|
80
106
|
<Badge
|
|
81
107
|
variant={
|
|
@@ -52,13 +52,13 @@ export function TeamMembersTable({
|
|
|
52
52
|
return (
|
|
53
53
|
<Card
|
|
54
54
|
className={cn(
|
|
55
|
-
"w-full min-w-0 border border-border
|
|
55
|
+
"w-full min-w-0 border border-border overflow-hidden",
|
|
56
56
|
className
|
|
57
57
|
)}
|
|
58
58
|
{...props}
|
|
59
59
|
>
|
|
60
|
-
<CardHeader className="flex flex-row flex-wrap items-center justify-between gap-3
|
|
61
|
-
<div className="min-w-0">
|
|
60
|
+
<CardHeader className="flex flex-row flex-wrap items-center justify-between gap-x-6 gap-y-3 px-6 py-5 border-b border-border/60">
|
|
61
|
+
<div className="min-w-0 space-y-1">
|
|
62
62
|
<CardTitle className="text-base font-semibold">
|
|
63
63
|
Project Team Members
|
|
64
64
|
</CardTitle>
|
|
@@ -71,7 +71,7 @@ export function TeamMembersTable({
|
|
|
71
71
|
<Button
|
|
72
72
|
size="sm"
|
|
73
73
|
onClick={onInviteMember}
|
|
74
|
-
className="gap-
|
|
74
|
+
className="gap-2 text-xs"
|
|
75
75
|
>
|
|
76
76
|
<UserPlus className="h-3.5 w-3.5" />
|
|
77
77
|
<span>Invite Member</span>
|
|
@@ -94,7 +94,7 @@ export function TeamMembersTable({
|
|
|
94
94
|
<TableRow>
|
|
95
95
|
<TableCell
|
|
96
96
|
colSpan={4}
|
|
97
|
-
className="text-center text-xs text-muted-foreground py-
|
|
97
|
+
className="text-center text-xs text-muted-foreground py-10"
|
|
98
98
|
>
|
|
99
99
|
No members found in this project.
|
|
100
100
|
</TableCell>
|
|
@@ -27,7 +27,7 @@ export const AccordionTrigger = React.forwardRef<
|
|
|
27
27
|
<BaseAccordion.Trigger
|
|
28
28
|
ref={ref}
|
|
29
29
|
className={cn(
|
|
30
|
-
"flex flex-1 items-center justify-between py-4 text-sm font-medium transition-[color,transform] duration-200 ease-out hover:underline active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm [&[data-panel-open]>svg]:rotate-180",
|
|
30
|
+
"flex flex-1 items-center justify-between gap-4 px-1 py-4.5 text-sm font-medium transition-[color,transform] duration-200 ease-out hover:underline active:scale-[0.99] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 rounded-sm [&[data-panel-open]>svg]:rotate-180",
|
|
31
31
|
className
|
|
32
32
|
)}
|
|
33
33
|
{...props}
|
|
@@ -51,7 +51,7 @@ export const AccordionContent = React.forwardRef<
|
|
|
51
51
|
)}
|
|
52
52
|
{...props}
|
|
53
53
|
>
|
|
54
|
-
<div className="pb-
|
|
54
|
+
<div className="px-1 pb-5 pt-1 text-muted-foreground leading-relaxed text-pretty">{children}</div>
|
|
55
55
|
</BaseAccordion.Panel>
|
|
56
56
|
));
|
|
57
57
|
AccordionContent.displayName = "AccordionContent";
|
|
@@ -59,6 +59,20 @@ describe("Alert Component", () => {
|
|
|
59
59
|
</Alert>
|
|
60
60
|
);
|
|
61
61
|
|
|
62
|
+
const alert = screen.getByRole("alert");
|
|
63
|
+
expect(alert).toHaveClass("border-amber-signal/40");
|
|
64
|
+
expect(alert).toHaveClass("bg-amber-signal/10");
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it("renders info variant with proper semantic styling", () => {
|
|
68
|
+
render(
|
|
69
|
+
<Alert variant="info">
|
|
70
|
+
<Info className="h-4 w-4" />
|
|
71
|
+
<AlertTitle>Info</AlertTitle>
|
|
72
|
+
<AlertDescription>Additional details available.</AlertDescription>
|
|
73
|
+
</Alert>
|
|
74
|
+
);
|
|
75
|
+
|
|
62
76
|
const alert = screen.getByRole("alert");
|
|
63
77
|
expect(alert).toHaveClass("border-signal-teal/40");
|
|
64
78
|
expect(alert).toHaveClass("bg-signal-teal/10");
|
|
@@ -86,7 +100,7 @@ describe("Alert Component", () => {
|
|
|
86
100
|
const alert = screen.getByRole("alert");
|
|
87
101
|
expect(alert).toHaveClass("my-custom-class");
|
|
88
102
|
expect(alert).toHaveClass("shadow-lg");
|
|
89
|
-
expect(alert).toHaveClass("rounded-
|
|
103
|
+
expect(alert).toHaveClass("rounded-lg");
|
|
90
104
|
});
|
|
91
105
|
|
|
92
106
|
it("renders inline action elements seamlessly inside alert", () => {
|