@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
|
@@ -91,7 +91,7 @@ export function InspectorSplitView({
|
|
|
91
91
|
return (
|
|
92
92
|
<div
|
|
93
93
|
className={cn(
|
|
94
|
-
"min-w-0 w-full max-w-full overflow-hidden rounded-lg border border-border bg-background
|
|
94
|
+
"min-w-0 w-full max-w-full overflow-hidden rounded-lg border border-border bg-background h-[500px]",
|
|
95
95
|
className
|
|
96
96
|
)}
|
|
97
97
|
{...props}
|
|
@@ -99,13 +99,13 @@ export function InspectorSplitView({
|
|
|
99
99
|
<ResizablePanelGroup direction="horizontal">
|
|
100
100
|
<ResizablePanel defaultSize={40} minSize={25}>
|
|
101
101
|
<div className="flex h-full min-w-0 flex-col border-r border-border/60">
|
|
102
|
-
<div className="flex items-center gap-2 border-b border-border/60
|
|
102
|
+
<div className="flex items-center gap-2.5 border-b border-border/60 px-4 py-3.5">
|
|
103
103
|
<Layers className="h-4 w-4 shrink-0 text-muted-foreground" />
|
|
104
|
-
<span className="truncate text-xs font-
|
|
104
|
+
<span className="truncate text-xs font-medium text-muted-foreground">
|
|
105
105
|
DOM Hierarchy
|
|
106
106
|
</span>
|
|
107
107
|
</div>
|
|
108
|
-
<div className="min-w-0 flex-1 overflow-y-auto p-
|
|
108
|
+
<div className="min-w-0 flex-1 overflow-y-auto p-4">
|
|
109
109
|
<TreeView>{nodes.map(renderTree)}</TreeView>
|
|
110
110
|
</div>
|
|
111
111
|
</div>
|
|
@@ -114,11 +114,11 @@ export function InspectorSplitView({
|
|
|
114
114
|
<ResizableHandle withHandle />
|
|
115
115
|
|
|
116
116
|
<ResizablePanel defaultSize={60} minSize={30}>
|
|
117
|
-
<div className="flex h-full min-w-0 flex-col overflow-y-auto bg-
|
|
117
|
+
<div className="flex h-full min-w-0 flex-col overflow-y-auto bg-surface-raised/50 px-6 py-5">
|
|
118
118
|
{selected ? (
|
|
119
|
-
<div className="flex min-w-0 flex-col gap-
|
|
120
|
-
<div className="flex flex-wrap items-center justify-between gap-
|
|
121
|
-
<div className="flex min-w-0 items-center gap-2">
|
|
119
|
+
<div className="flex min-w-0 flex-col gap-5">
|
|
120
|
+
<div className="flex flex-wrap items-center justify-between gap-3 border-b border-border/60 pb-4">
|
|
121
|
+
<div className="flex min-w-0 items-center gap-2.5">
|
|
122
122
|
<Badge variant="outline" className="font-mono uppercase">
|
|
123
123
|
{selected.tag}
|
|
124
124
|
</Badge>
|
|
@@ -130,7 +130,7 @@ export function InspectorSplitView({
|
|
|
130
130
|
<Button
|
|
131
131
|
size="sm"
|
|
132
132
|
onClick={() => onAuditElement(selected)}
|
|
133
|
-
className="gap-1 text-xs"
|
|
133
|
+
className="gap-1.5 text-xs"
|
|
134
134
|
>
|
|
135
135
|
<Play className="h-3 w-3" />
|
|
136
136
|
<span>Audit Element</span>
|
|
@@ -138,28 +138,28 @@ export function InspectorSplitView({
|
|
|
138
138
|
)}
|
|
139
139
|
</div>
|
|
140
140
|
|
|
141
|
-
<div className="min-w-0 space-y-
|
|
142
|
-
<div>
|
|
141
|
+
<div className="min-w-0 space-y-4">
|
|
142
|
+
<div className="space-y-1.5">
|
|
143
143
|
<span className="text-xs font-medium text-muted-foreground">
|
|
144
144
|
Target Selector
|
|
145
145
|
</span>
|
|
146
|
-
<div className="
|
|
146
|
+
<div className="flex min-w-0 items-center justify-between gap-3 rounded-md border border-border bg-secondary px-3.5 py-2.5 font-mono text-xs">
|
|
147
147
|
<span className="min-w-0 truncate text-primary">
|
|
148
148
|
{selected.selector}
|
|
149
149
|
</span>
|
|
150
150
|
<CopyButton
|
|
151
151
|
value={selected.selector}
|
|
152
|
-
className="h-
|
|
152
|
+
className="h-7 w-7 shrink-0"
|
|
153
153
|
/>
|
|
154
154
|
</div>
|
|
155
155
|
</div>
|
|
156
156
|
|
|
157
157
|
{selected.classes && (
|
|
158
|
-
<div>
|
|
158
|
+
<div className="space-y-1.5">
|
|
159
159
|
<span className="text-xs font-medium text-muted-foreground">
|
|
160
160
|
Class List
|
|
161
161
|
</span>
|
|
162
|
-
<div className="
|
|
162
|
+
<div className="rounded-md border border-border bg-secondary px-3.5 py-2.5 font-mono text-xs text-muted-foreground break-all">
|
|
163
163
|
{selected.classes}
|
|
164
164
|
</div>
|
|
165
165
|
</div>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./instrument-metrics-grid";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react-vite";
|
|
3
|
+
import { InstrumentMetricsGrid } from "./instrument-metrics-grid";
|
|
4
|
+
|
|
5
|
+
const meta: Meta<typeof InstrumentMetricsGrid> = {
|
|
6
|
+
title: "Blocks/InstrumentMetricsGrid",
|
|
7
|
+
component: InstrumentMetricsGrid,
|
|
8
|
+
tags: ["autodocs"],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "fullscreen",
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof meta>;
|
|
16
|
+
|
|
17
|
+
export const Default: Story = {
|
|
18
|
+
render: () => (
|
|
19
|
+
<div className="mx-auto w-full max-w-6xl p-8 sm:p-12">
|
|
20
|
+
<InstrumentMetricsGrid />
|
|
21
|
+
</div>
|
|
22
|
+
),
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export const DarkGraphite: Story = {
|
|
26
|
+
render: () => (
|
|
27
|
+
<div className="dark mx-auto w-full max-w-6xl rounded-2xl bg-[#0e0e10] p-8 text-[#f2f1ed] sm:p-12">
|
|
28
|
+
<InstrumentMetricsGrid
|
|
29
|
+
tickValue={84}
|
|
30
|
+
tickLabel="Contrast pass rate"
|
|
31
|
+
dotValue={92}
|
|
32
|
+
dotLabel="Token coverage"
|
|
33
|
+
dialAngle={215}
|
|
34
|
+
dialTitle="Focus lock"
|
|
35
|
+
dialSubtitle="WCAG AA"
|
|
36
|
+
curveTitle="Audit velocity"
|
|
37
|
+
curveMeta="18 runs / wk"
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
),
|
|
41
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { render, screen } from "@testing-library/react";
|
|
3
|
+
import { describe, expect, it } from "vitest";
|
|
4
|
+
import { InstrumentMetricsGrid } from "./instrument-metrics-grid";
|
|
5
|
+
|
|
6
|
+
describe("InstrumentMetricsGrid", () => {
|
|
7
|
+
it("renders all four Graphite telemetry instruments with accessible labels", () => {
|
|
8
|
+
render(<InstrumentMetricsGrid tickValue={71} dotValue={82} />);
|
|
9
|
+
|
|
10
|
+
expect(screen.getByText("71%")).toBeInTheDocument();
|
|
11
|
+
expect(screen.getByText("82%")).toBeInTheDocument();
|
|
12
|
+
expect(screen.getByText("Radial repeat")).toBeInTheDocument();
|
|
13
|
+
expect(screen.getByText("Latency curve")).toBeInTheDocument();
|
|
14
|
+
expect(screen.getByRole("img", { name: /Coverage index: 71%/i })).toBeInTheDocument();
|
|
15
|
+
expect(screen.getByRole("img", { name: /Pattern integrity: 82%/i })).toBeInTheDocument();
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { cn } from "../../lib/utils";
|
|
5
|
+
|
|
6
|
+
export interface InstrumentMetricsGridProps {
|
|
7
|
+
/** Percentage (0–100) for the vertical barcode tick meter. */
|
|
8
|
+
tickValue?: number;
|
|
9
|
+
tickLabel?: string;
|
|
10
|
+
tickShortcut?: string;
|
|
11
|
+
/** Percentage (0–100) for the circular dot-matrix pattern meter. */
|
|
12
|
+
dotValue?: number;
|
|
13
|
+
dotLabel?: string;
|
|
14
|
+
/** Angle (0–360) for the inverted radial repeat dial indicator. */
|
|
15
|
+
dialAngle?: number;
|
|
16
|
+
dialTitle?: string;
|
|
17
|
+
dialSubtitle?: string;
|
|
18
|
+
/** Series values (0–100) for the hatched telemetry area curve. */
|
|
19
|
+
curvePoints?: number[];
|
|
20
|
+
curveTitle?: string;
|
|
21
|
+
curveMeta?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const DEFAULT_CURVE = [28, 52, 42, 68, 55, 86, 62, 74];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Graphite industrial instrument showcase block featuring four tactile graphic
|
|
29
|
+
* meters built purely with inline SVG and CSS custom properties:
|
|
30
|
+
* 1. Vertical Barcode Tick Meter
|
|
31
|
+
* 2. Circular Dot-Matrix Pattern Meter
|
|
32
|
+
* 3. Inverted Radial Repeat Dial
|
|
33
|
+
* 4. Diagonal-Hatched Area Telemetry Curve
|
|
34
|
+
*/
|
|
35
|
+
export function InstrumentMetricsGrid({
|
|
36
|
+
tickValue = 71,
|
|
37
|
+
tickLabel = "Coverage index",
|
|
38
|
+
tickShortcut = "⌘ + D",
|
|
39
|
+
dotValue = 82,
|
|
40
|
+
dotLabel = "Pattern integrity",
|
|
41
|
+
dialAngle = 140,
|
|
42
|
+
dialTitle = "Radial repeat",
|
|
43
|
+
dialSubtitle = "Calibrated",
|
|
44
|
+
curvePoints = DEFAULT_CURVE,
|
|
45
|
+
curveTitle = "Latency curve",
|
|
46
|
+
curveMeta = "p95 · 42ms",
|
|
47
|
+
className,
|
|
48
|
+
}: InstrumentMetricsGridProps) {
|
|
49
|
+
const hatchPatternId = React.useId();
|
|
50
|
+
|
|
51
|
+
const clampedTick = Math.min(100, Math.max(0, tickValue));
|
|
52
|
+
const clampedDot = Math.min(100, Math.max(0, dotValue));
|
|
53
|
+
|
|
54
|
+
const totalTicks = 28;
|
|
55
|
+
const filledTicks = Math.round((clampedTick / 100) * totalTicks);
|
|
56
|
+
|
|
57
|
+
const totalDots = 24; // 3 rows x 8 columns
|
|
58
|
+
const filledDots = Math.round((clampedDot / 100) * totalDots);
|
|
59
|
+
|
|
60
|
+
const normalizedPoints = curvePoints.length >= 2 ? curvePoints : DEFAULT_CURVE;
|
|
61
|
+
const svgW = 240;
|
|
62
|
+
const svgH = 110;
|
|
63
|
+
const stepX = svgW / (normalizedPoints.length - 1);
|
|
64
|
+
const coords = normalizedPoints.map((val, idx) => ({
|
|
65
|
+
x: idx * stepX,
|
|
66
|
+
y: svgH - 12 - (Math.min(100, Math.max(0, val)) / 100) * (svgH - 26),
|
|
67
|
+
}));
|
|
68
|
+
|
|
69
|
+
const linePath = coords
|
|
70
|
+
.map((pt, idx) => {
|
|
71
|
+
if (idx === 0) return `M ${pt.x} ${pt.y}`;
|
|
72
|
+
const prev = coords[idx - 1];
|
|
73
|
+
const cx = (prev.x + pt.x) / 2;
|
|
74
|
+
return `C ${cx} ${prev.y}, ${cx} ${pt.y}, ${pt.x} ${pt.y}`;
|
|
75
|
+
})
|
|
76
|
+
.join(" ");
|
|
77
|
+
const areaPath = `${linePath} L ${svgW} ${svgH} L 0 ${svgH} Z`;
|
|
78
|
+
const peakPoint = coords.reduce(
|
|
79
|
+
(best, pt) => (pt.y < best.y ? pt : best),
|
|
80
|
+
coords[0]
|
|
81
|
+
);
|
|
82
|
+
|
|
83
|
+
const dialRad = ((dialAngle - 90) * Math.PI) / 180;
|
|
84
|
+
const markerX = 80 + Math.cos(dialRad) * 56;
|
|
85
|
+
const markerY = 80 + Math.sin(dialRad) * 56;
|
|
86
|
+
|
|
87
|
+
return (
|
|
88
|
+
<div className={cn("@container w-full", className)}>
|
|
89
|
+
<div className="grid w-full grid-cols-1 gap-5 @md:grid-cols-2 @4xl:grid-cols-4">
|
|
90
|
+
{/* Tile 1: Barcode Tick Meter (71% ⌘ + D) */}
|
|
91
|
+
<article className="flex flex-col justify-between gap-6 rounded-2xl border border-border bg-card p-6 text-card-foreground">
|
|
92
|
+
<div className="flex items-start justify-between gap-3">
|
|
93
|
+
<div className="flex flex-col gap-1">
|
|
94
|
+
<span className="font-mono text-4xl font-semibold leading-none tracking-tight text-foreground tabular-nums">
|
|
95
|
+
{clampedTick}%
|
|
96
|
+
</span>
|
|
97
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
98
|
+
{tickLabel}
|
|
99
|
+
</span>
|
|
100
|
+
</div>
|
|
101
|
+
<kbd className="shrink-0 whitespace-nowrap rounded-md border border-border bg-secondary px-2 py-1 font-mono text-[11px] font-medium text-foreground">
|
|
102
|
+
{tickShortcut}
|
|
103
|
+
</kbd>
|
|
104
|
+
</div>
|
|
105
|
+
|
|
106
|
+
<div
|
|
107
|
+
aria-label={`${tickLabel}: ${clampedTick}%`}
|
|
108
|
+
role="img"
|
|
109
|
+
className="flex h-20 w-full items-end gap-[3px] pt-2"
|
|
110
|
+
>
|
|
111
|
+
{Array.from({ length: totalTicks }).map((_, idx) => {
|
|
112
|
+
const isActive = idx < filledTicks;
|
|
113
|
+
return (
|
|
114
|
+
<span
|
|
115
|
+
key={idx}
|
|
116
|
+
className={cn(
|
|
117
|
+
"flex-1 rounded-[1px] transition-colors duration-200",
|
|
118
|
+
isActive ? "h-full bg-primary" : "h-3/4 bg-foreground/20"
|
|
119
|
+
)}
|
|
120
|
+
/>
|
|
121
|
+
);
|
|
122
|
+
})}
|
|
123
|
+
</div>
|
|
124
|
+
</article>
|
|
125
|
+
|
|
126
|
+
{/* Tile 2: Dot-Matrix Pattern Meter (82% Pattern Hero) */}
|
|
127
|
+
<article className="flex flex-col justify-between gap-6 rounded-2xl border border-border bg-card p-6 text-card-foreground">
|
|
128
|
+
<div className="flex flex-col gap-1">
|
|
129
|
+
<span className="font-mono text-4xl font-semibold leading-none tracking-tight text-foreground tabular-nums">
|
|
130
|
+
{clampedDot}%
|
|
131
|
+
</span>
|
|
132
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
133
|
+
{dotLabel}
|
|
134
|
+
</span>
|
|
135
|
+
</div>
|
|
136
|
+
|
|
137
|
+
<div
|
|
138
|
+
aria-label={`${dotLabel}: ${clampedDot}%`}
|
|
139
|
+
role="img"
|
|
140
|
+
className="grid grid-cols-8 gap-2"
|
|
141
|
+
>
|
|
142
|
+
{Array.from({ length: totalDots }).map((_, idx) => {
|
|
143
|
+
const isActive = idx < filledDots;
|
|
144
|
+
return (
|
|
145
|
+
<span
|
|
146
|
+
key={idx}
|
|
147
|
+
className={cn(
|
|
148
|
+
"aspect-square w-full rounded-full transition-colors duration-200",
|
|
149
|
+
isActive
|
|
150
|
+
? "bg-primary"
|
|
151
|
+
: "border border-border bg-graphite-hatch"
|
|
152
|
+
)}
|
|
153
|
+
/>
|
|
154
|
+
);
|
|
155
|
+
})}
|
|
156
|
+
</div>
|
|
157
|
+
</article>
|
|
158
|
+
|
|
159
|
+
{/* Tile 3: Inverted Radial Repeat Dial */}
|
|
160
|
+
<article className="flex flex-col items-center justify-between gap-4 rounded-2xl border border-foreground bg-foreground p-6 text-background">
|
|
161
|
+
<div className="relative flex h-40 w-40 items-center justify-center">
|
|
162
|
+
<svg
|
|
163
|
+
viewBox="0 0 160 160"
|
|
164
|
+
className="h-full w-full"
|
|
165
|
+
role="img"
|
|
166
|
+
aria-label={`${dialTitle} indicator at ${dialAngle} degrees`}
|
|
167
|
+
>
|
|
168
|
+
{Array.from({ length: 48 }).map((_, idx) => {
|
|
169
|
+
const deg = (idx / 48) * 360;
|
|
170
|
+
const isMajor = idx % 4 === 0;
|
|
171
|
+
return (
|
|
172
|
+
<line
|
|
173
|
+
key={idx}
|
|
174
|
+
x1="80"
|
|
175
|
+
y1={isMajor ? "14" : "18"}
|
|
176
|
+
x2="80"
|
|
177
|
+
y2="28"
|
|
178
|
+
stroke="currentColor"
|
|
179
|
+
strokeOpacity={isMajor ? 0.65 : 0.25}
|
|
180
|
+
strokeWidth={isMajor ? 1.5 : 1}
|
|
181
|
+
transform={`rotate(${deg} 80 80)`}
|
|
182
|
+
/>
|
|
183
|
+
);
|
|
184
|
+
})}
|
|
185
|
+
<circle
|
|
186
|
+
cx="80"
|
|
187
|
+
cy="80"
|
|
188
|
+
r="56"
|
|
189
|
+
fill="none"
|
|
190
|
+
stroke="currentColor"
|
|
191
|
+
strokeOpacity="0.18"
|
|
192
|
+
strokeWidth="1"
|
|
193
|
+
/>
|
|
194
|
+
<circle
|
|
195
|
+
cx={markerX}
|
|
196
|
+
cy={markerY}
|
|
197
|
+
r="8.5"
|
|
198
|
+
fill="var(--color-primary)"
|
|
199
|
+
stroke="var(--color-foreground)"
|
|
200
|
+
strokeWidth="2.5"
|
|
201
|
+
/>
|
|
202
|
+
</svg>
|
|
203
|
+
<div className="pointer-events-none absolute inset-0 flex flex-col items-center justify-center text-center">
|
|
204
|
+
<span className="text-sm font-semibold leading-tight text-background">
|
|
205
|
+
{dialTitle}
|
|
206
|
+
</span>
|
|
207
|
+
<span className="mt-1 font-mono text-[11px] text-background/70">
|
|
208
|
+
{dialSubtitle}
|
|
209
|
+
</span>
|
|
210
|
+
</div>
|
|
211
|
+
</div>
|
|
212
|
+
</article>
|
|
213
|
+
|
|
214
|
+
{/* Tile 4: Hatched Area Telemetry Curve */}
|
|
215
|
+
<article className="flex flex-col justify-between gap-4 rounded-2xl border border-border bg-card p-6 text-card-foreground">
|
|
216
|
+
<div className="flex items-start justify-between gap-2">
|
|
217
|
+
<div className="flex flex-col gap-1">
|
|
218
|
+
<span className="text-base font-semibold tracking-tight text-foreground">
|
|
219
|
+
{curveTitle}
|
|
220
|
+
</span>
|
|
221
|
+
<span className="font-mono text-xs text-muted-foreground tabular-nums">
|
|
222
|
+
{curveMeta}
|
|
223
|
+
</span>
|
|
224
|
+
</div>
|
|
225
|
+
<span
|
|
226
|
+
aria-hidden="true"
|
|
227
|
+
className="mt-1 h-2.5 w-2.5 rounded-full bg-primary"
|
|
228
|
+
/>
|
|
229
|
+
</div>
|
|
230
|
+
|
|
231
|
+
<svg
|
|
232
|
+
viewBox={`0 0 ${svgW} ${svgH}`}
|
|
233
|
+
className="h-28 w-full overflow-visible"
|
|
234
|
+
role="img"
|
|
235
|
+
aria-label={`${curveTitle} hatched telemetry chart`}
|
|
236
|
+
>
|
|
237
|
+
<defs>
|
|
238
|
+
<pattern
|
|
239
|
+
id={hatchPatternId}
|
|
240
|
+
width="6"
|
|
241
|
+
height="6"
|
|
242
|
+
patternTransform="rotate(45 0 0)"
|
|
243
|
+
patternUnits="userSpaceOnUse"
|
|
244
|
+
>
|
|
245
|
+
<line
|
|
246
|
+
x1="0"
|
|
247
|
+
y1="0"
|
|
248
|
+
x2="0"
|
|
249
|
+
y2="6"
|
|
250
|
+
stroke="var(--color-foreground)"
|
|
251
|
+
strokeOpacity="0.28"
|
|
252
|
+
strokeWidth="1.5"
|
|
253
|
+
/>
|
|
254
|
+
</pattern>
|
|
255
|
+
</defs>
|
|
256
|
+
<path d={areaPath} fill={`url(#${hatchPatternId})`} />
|
|
257
|
+
<path
|
|
258
|
+
d={linePath}
|
|
259
|
+
fill="none"
|
|
260
|
+
stroke="var(--color-primary)"
|
|
261
|
+
strokeWidth="2.25"
|
|
262
|
+
strokeLinecap="round"
|
|
263
|
+
/>
|
|
264
|
+
<circle
|
|
265
|
+
cx={peakPoint.x}
|
|
266
|
+
cy={peakPoint.y}
|
|
267
|
+
r="5"
|
|
268
|
+
fill="var(--color-primary)"
|
|
269
|
+
stroke="var(--color-card)"
|
|
270
|
+
strokeWidth="2.5"
|
|
271
|
+
/>
|
|
272
|
+
</svg>
|
|
273
|
+
</article>
|
|
274
|
+
</div>
|
|
275
|
+
</div>
|
|
276
|
+
);
|
|
277
|
+
}
|
|
@@ -84,7 +84,7 @@ export function ProjectKanbanBoard({
|
|
|
84
84
|
return (
|
|
85
85
|
<div
|
|
86
86
|
className={cn(
|
|
87
|
-
"grid grid-cols-1 gap-
|
|
87
|
+
"grid grid-cols-1 gap-4 md:grid-cols-4 md:gap-5 w-full",
|
|
88
88
|
className
|
|
89
89
|
)}
|
|
90
90
|
{...props}
|
|
@@ -96,17 +96,17 @@ export function ProjectKanbanBoard({
|
|
|
96
96
|
<section
|
|
97
97
|
key={column.id}
|
|
98
98
|
aria-label={column.title}
|
|
99
|
-
className="flex min-h-0 flex-col rounded-lg border border-border bg-surface-raised p-
|
|
99
|
+
className="flex min-h-0 flex-col rounded-lg border border-border bg-surface-raised p-4 md:h-full md:min-h-[480px]"
|
|
100
100
|
>
|
|
101
|
-
<div className="flex items-center justify-between pb-3 border-b border-border">
|
|
102
|
-
<div className="flex items-center gap-2">
|
|
101
|
+
<div className="flex items-center justify-between gap-2 pb-3.5 border-b border-border">
|
|
102
|
+
<div className="flex items-center gap-2.5">
|
|
103
103
|
{column.icon}
|
|
104
|
-
<span className="text-xs font-semibold text-foreground
|
|
104
|
+
<span className="text-xs font-semibold text-foreground">
|
|
105
105
|
{column.title}
|
|
106
106
|
</span>
|
|
107
107
|
<Badge
|
|
108
108
|
variant="neutral"
|
|
109
|
-
className="h-5 px-
|
|
109
|
+
className="h-5 px-2 text-[11px] font-mono text-muted-foreground border-border tabular-nums"
|
|
110
110
|
>
|
|
111
111
|
{columnTasks.length}
|
|
112
112
|
</Badge>
|
|
@@ -116,7 +116,7 @@ export function ProjectKanbanBoard({
|
|
|
116
116
|
<Button
|
|
117
117
|
variant="ghost"
|
|
118
118
|
size="icon"
|
|
119
|
-
className="h-
|
|
119
|
+
className="h-7 w-7 text-muted-foreground hover:text-foreground"
|
|
120
120
|
onClick={() => onAddTask(column.id)}
|
|
121
121
|
aria-label={`Add task to ${column.title}`}
|
|
122
122
|
>
|
|
@@ -125,9 +125,9 @@ export function ProjectKanbanBoard({
|
|
|
125
125
|
)}
|
|
126
126
|
</div>
|
|
127
127
|
|
|
128
|
-
<div className="flex flex-col gap-
|
|
128
|
+
<div className="flex flex-col gap-3.5 pt-4 md:flex-1 md:overflow-y-auto">
|
|
129
129
|
{columnTasks.length === 0 && (
|
|
130
|
-
<p className="rounded-md border border-dashed border-border/70 px-
|
|
130
|
+
<p className="rounded-md border border-dashed border-border/70 px-4 py-8 text-center text-xs text-muted-foreground">
|
|
131
131
|
No tasks in this column.
|
|
132
132
|
</p>
|
|
133
133
|
)}
|
|
@@ -135,9 +135,9 @@ export function ProjectKanbanBoard({
|
|
|
135
135
|
{columnTasks.map((task) => (
|
|
136
136
|
<Card
|
|
137
137
|
key={task.id}
|
|
138
|
-
className="p-
|
|
138
|
+
className="p-4 border border-border bg-card hover:border-hairline-strong transition-colors"
|
|
139
139
|
>
|
|
140
|
-
<div className="flex items-center justify-between gap-
|
|
140
|
+
<div className="flex items-center justify-between gap-2 mb-3">
|
|
141
141
|
{task.heuristicTag && (
|
|
142
142
|
<Badge
|
|
143
143
|
variant="neutral"
|
|
@@ -177,7 +177,7 @@ export function ProjectKanbanBoard({
|
|
|
177
177
|
</p>
|
|
178
178
|
)}
|
|
179
179
|
|
|
180
|
-
<div className="flex items-center justify-between text-xs text-muted-foreground pt-
|
|
180
|
+
<div className="flex items-center justify-between text-xs text-muted-foreground pt-2.5 border-t border-border/50">
|
|
181
181
|
<span className="text-[10px] font-mono text-muted-foreground">
|
|
182
182
|
#{task.id}
|
|
183
183
|
</span>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./schedule-timeline-board";
|