@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,287 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { Check } from "lucide-react";
|
|
5
|
+
import { cn } from "../../lib/utils";
|
|
6
|
+
|
|
7
|
+
export interface PaletteSurfaceStep {
|
|
8
|
+
name: string;
|
|
9
|
+
hex: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface PaletteInteractionState {
|
|
13
|
+
label: string;
|
|
14
|
+
background: string;
|
|
15
|
+
foreground: string;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface PaletteMetric {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface PaletteDensityOption {
|
|
24
|
+
id: string;
|
|
25
|
+
label: string;
|
|
26
|
+
fillPercent: number;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface PaletteSwatchItem {
|
|
30
|
+
label: string;
|
|
31
|
+
hex: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface ColorPaletteSheetProps {
|
|
35
|
+
surfaceSteps: PaletteSurfaceStep[];
|
|
36
|
+
interactionStates: PaletteInteractionState[];
|
|
37
|
+
metrics: PaletteMetric[];
|
|
38
|
+
densityOptions: PaletteDensityOption[];
|
|
39
|
+
activeDensityId: string;
|
|
40
|
+
onDensityChange?: (id: string) => void;
|
|
41
|
+
profileTags: string[];
|
|
42
|
+
swatches: PaletteSwatchItem[];
|
|
43
|
+
accentColor?: string;
|
|
44
|
+
sampleRadius?: string;
|
|
45
|
+
copyHint?: string;
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function ColorPaletteSheet({
|
|
50
|
+
surfaceSteps,
|
|
51
|
+
interactionStates,
|
|
52
|
+
metrics,
|
|
53
|
+
densityOptions,
|
|
54
|
+
activeDensityId,
|
|
55
|
+
onDensityChange,
|
|
56
|
+
profileTags,
|
|
57
|
+
swatches,
|
|
58
|
+
accentColor = "var(--color-primary)",
|
|
59
|
+
sampleRadius = "var(--radius-md)",
|
|
60
|
+
copyHint = "Click any swatch to copy hex",
|
|
61
|
+
className,
|
|
62
|
+
}: ColorPaletteSheetProps) {
|
|
63
|
+
const [copiedHex, setCopiedHex] = React.useState<string | null>(null);
|
|
64
|
+
|
|
65
|
+
const handleCopyHex = async (hex: string) => {
|
|
66
|
+
try {
|
|
67
|
+
await navigator.clipboard.writeText(hex);
|
|
68
|
+
setCopiedHex(hex);
|
|
69
|
+
window.setTimeout(
|
|
70
|
+
() => setCopiedHex((curr) => (curr === hex ? null : curr)),
|
|
71
|
+
1500
|
|
72
|
+
);
|
|
73
|
+
} catch {
|
|
74
|
+
// Clipboard API unavailable in non-secure contexts.
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
return (
|
|
79
|
+
<section
|
|
80
|
+
aria-label="Theme specification and color palette"
|
|
81
|
+
className={cn(
|
|
82
|
+
"@container w-full border-y border-border py-10 sm:py-12",
|
|
83
|
+
className
|
|
84
|
+
)}
|
|
85
|
+
>
|
|
86
|
+
{/* Top 3-Column Specification Breakdown (container-responsive) */}
|
|
87
|
+
<div className="grid grid-cols-1 gap-10 pb-10 @[52rem]:grid-cols-3 @[52rem]:gap-0 @[52rem]:divide-x @[52rem]:divide-border">
|
|
88
|
+
{/* Column 1: Surface Ladder */}
|
|
89
|
+
<div className="flex flex-col gap-5 @[52rem]:pr-10">
|
|
90
|
+
<div className="text-xs font-medium text-muted-foreground">
|
|
91
|
+
Surface ladder
|
|
92
|
+
</div>
|
|
93
|
+
<div className="grid grid-cols-4 gap-3">
|
|
94
|
+
{surfaceSteps.map((step) => (
|
|
95
|
+
<div key={step.name} className="flex flex-col gap-2.5 text-center">
|
|
96
|
+
<div
|
|
97
|
+
className="h-12 w-full rounded-md border border-border"
|
|
98
|
+
style={{ backgroundColor: step.hex }}
|
|
99
|
+
/>
|
|
100
|
+
<div className="text-xs font-medium text-foreground">
|
|
101
|
+
{step.name}
|
|
102
|
+
</div>
|
|
103
|
+
</div>
|
|
104
|
+
))}
|
|
105
|
+
</div>
|
|
106
|
+
</div>
|
|
107
|
+
|
|
108
|
+
{/* Column 2: Interaction States */}
|
|
109
|
+
<div className="flex flex-col gap-5 @[52rem]:px-10">
|
|
110
|
+
<div className="text-xs font-medium text-muted-foreground">
|
|
111
|
+
Interaction states
|
|
112
|
+
</div>
|
|
113
|
+
<div className="flex items-center justify-between gap-2.5 pt-1">
|
|
114
|
+
{interactionStates.map((state, idx) => (
|
|
115
|
+
<React.Fragment key={state.label}>
|
|
116
|
+
<div className="flex flex-1 flex-col items-center gap-2.5">
|
|
117
|
+
<span
|
|
118
|
+
className="inline-flex h-10 w-full items-center justify-center border border-border/30 px-3 text-xs font-medium"
|
|
119
|
+
style={{
|
|
120
|
+
backgroundColor: state.background,
|
|
121
|
+
color: state.foreground,
|
|
122
|
+
borderRadius: sampleRadius,
|
|
123
|
+
}}
|
|
124
|
+
>
|
|
125
|
+
{state.label}
|
|
126
|
+
</span>
|
|
127
|
+
<span className="font-mono text-[11px] uppercase text-muted-foreground">
|
|
128
|
+
{state.background.replace("#", "")}
|
|
129
|
+
</span>
|
|
130
|
+
</div>
|
|
131
|
+
{idx < interactionStates.length - 1 && (
|
|
132
|
+
<span
|
|
133
|
+
aria-hidden="true"
|
|
134
|
+
className="pb-6 text-xs text-muted-foreground"
|
|
135
|
+
>
|
|
136
|
+
→
|
|
137
|
+
</span>
|
|
138
|
+
)}
|
|
139
|
+
</React.Fragment>
|
|
140
|
+
))}
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
{/* Column 3: Token Metrics */}
|
|
145
|
+
<div className="flex flex-col gap-5 @[52rem]:pl-10">
|
|
146
|
+
<div className="text-xs font-medium text-muted-foreground">
|
|
147
|
+
Token metrics
|
|
148
|
+
</div>
|
|
149
|
+
<div className="grid grid-cols-3 gap-4 pt-1 text-center">
|
|
150
|
+
{metrics.map((metric) => (
|
|
151
|
+
<div key={metric.label} className="flex flex-col gap-1.5">
|
|
152
|
+
<div className="font-mono text-lg font-semibold text-foreground tabular-nums">
|
|
153
|
+
{metric.value}
|
|
154
|
+
</div>
|
|
155
|
+
<div className="text-xs text-muted-foreground">
|
|
156
|
+
{metric.label}
|
|
157
|
+
</div>
|
|
158
|
+
</div>
|
|
159
|
+
))}
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
{/* Bottom 2-Column Row: Density Gauge + Active Profile & Circular Color Palette */}
|
|
165
|
+
<div className="grid grid-cols-1 gap-10 border-t border-border pt-10 @[52rem]:grid-cols-12 @[52rem]:gap-0 @[52rem]:divide-x @[52rem]:divide-border">
|
|
166
|
+
{/* Left: Spacing Density Gauge */}
|
|
167
|
+
<div className="flex flex-col gap-5 @[52rem]:col-span-5 @[52rem]:pr-10">
|
|
168
|
+
<div className="text-xs font-medium text-muted-foreground">
|
|
169
|
+
Spacing density gauge
|
|
170
|
+
</div>
|
|
171
|
+
<div className="flex items-center justify-between gap-3 pt-2">
|
|
172
|
+
{densityOptions.map((step, idx) => {
|
|
173
|
+
const active = activeDensityId === step.id;
|
|
174
|
+
return (
|
|
175
|
+
<React.Fragment key={step.id}>
|
|
176
|
+
<button
|
|
177
|
+
type="button"
|
|
178
|
+
disabled={!onDensityChange}
|
|
179
|
+
aria-pressed={active}
|
|
180
|
+
onClick={() => onDensityChange?.(step.id)}
|
|
181
|
+
className={cn(
|
|
182
|
+
"flex flex-1 flex-col items-center gap-3 rounded-lg p-2 transition-colors duration-150",
|
|
183
|
+
onDensityChange
|
|
184
|
+
? "cursor-pointer hover:bg-accent/50"
|
|
185
|
+
: "cursor-default"
|
|
186
|
+
)}
|
|
187
|
+
>
|
|
188
|
+
<div className="h-3.5 w-full overflow-hidden rounded-full border border-border bg-secondary">
|
|
189
|
+
<div
|
|
190
|
+
className="h-full rounded-full transition-[width,background-color] duration-200"
|
|
191
|
+
style={{
|
|
192
|
+
width: `${step.fillPercent}%`,
|
|
193
|
+
backgroundColor: active
|
|
194
|
+
? accentColor
|
|
195
|
+
: "var(--color-muted-foreground)",
|
|
196
|
+
}}
|
|
197
|
+
/>
|
|
198
|
+
</div>
|
|
199
|
+
<span
|
|
200
|
+
className={cn(
|
|
201
|
+
"font-mono text-xs tabular-nums",
|
|
202
|
+
active
|
|
203
|
+
? "font-semibold text-foreground"
|
|
204
|
+
: "text-muted-foreground"
|
|
205
|
+
)}
|
|
206
|
+
>
|
|
207
|
+
{step.label}
|
|
208
|
+
</span>
|
|
209
|
+
</button>
|
|
210
|
+
{idx < densityOptions.length - 1 && (
|
|
211
|
+
<span
|
|
212
|
+
aria-hidden="true"
|
|
213
|
+
className="pb-6 text-xs text-muted-foreground"
|
|
214
|
+
>
|
|
215
|
+
→
|
|
216
|
+
</span>
|
|
217
|
+
)}
|
|
218
|
+
</React.Fragment>
|
|
219
|
+
);
|
|
220
|
+
})}
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
223
|
+
|
|
224
|
+
{/* Right: Active Profile + Circular Color Palette with Hex Codes */}
|
|
225
|
+
<div className="flex flex-col gap-8 @[52rem]:col-span-7 @[52rem]:pl-10">
|
|
226
|
+
<div className="flex flex-col gap-3">
|
|
227
|
+
<div className="text-xs font-medium text-muted-foreground">
|
|
228
|
+
Active profile
|
|
229
|
+
</div>
|
|
230
|
+
<div className="flex flex-wrap items-center gap-2.5">
|
|
231
|
+
{profileTags.map((tag) => (
|
|
232
|
+
<span
|
|
233
|
+
key={tag}
|
|
234
|
+
className="inline-flex items-center rounded-full border border-border bg-card px-3.5 py-1.5 text-xs font-medium text-foreground"
|
|
235
|
+
>
|
|
236
|
+
{tag}
|
|
237
|
+
</span>
|
|
238
|
+
))}
|
|
239
|
+
</div>
|
|
240
|
+
</div>
|
|
241
|
+
|
|
242
|
+
<div className="flex flex-col gap-4">
|
|
243
|
+
<div className="flex flex-wrap items-center justify-between gap-2">
|
|
244
|
+
<span className="text-xs font-medium text-muted-foreground">
|
|
245
|
+
Color palette
|
|
246
|
+
</span>
|
|
247
|
+
<span className="text-xs text-muted-foreground">{copyHint}</span>
|
|
248
|
+
</div>
|
|
249
|
+
|
|
250
|
+
<div className="grid grid-cols-3 gap-5 @[34rem]:grid-cols-6">
|
|
251
|
+
{swatches.map((swatch) => {
|
|
252
|
+
const hexCode = swatch.hex.replace("#", "").toUpperCase();
|
|
253
|
+
const isCopied = copiedHex === swatch.hex;
|
|
254
|
+
return (
|
|
255
|
+
<button
|
|
256
|
+
key={swatch.label}
|
|
257
|
+
type="button"
|
|
258
|
+
onClick={() => handleCopyHex(swatch.hex)}
|
|
259
|
+
title={`Copy ${swatch.label}: ${swatch.hex}`}
|
|
260
|
+
className="group flex flex-col items-center gap-2.5 text-center cursor-pointer"
|
|
261
|
+
>
|
|
262
|
+
<span
|
|
263
|
+
className="relative flex h-14 w-14 items-center justify-center rounded-full border border-border shadow-xs transition-transform duration-150 group-hover:scale-105"
|
|
264
|
+
style={{ backgroundColor: swatch.hex }}
|
|
265
|
+
>
|
|
266
|
+
{isCopied && (
|
|
267
|
+
<span className="inline-flex h-6 w-6 items-center justify-center rounded-full bg-background/90 text-foreground">
|
|
268
|
+
<Check className="h-3.5 w-3.5" />
|
|
269
|
+
</span>
|
|
270
|
+
)}
|
|
271
|
+
</span>
|
|
272
|
+
<span className="font-mono text-xs font-medium uppercase tracking-wide text-foreground tabular-nums">
|
|
273
|
+
{isCopied ? "COPIED" : hexCode}
|
|
274
|
+
</span>
|
|
275
|
+
<span className="text-[11px] text-muted-foreground">
|
|
276
|
+
{swatch.label}
|
|
277
|
+
</span>
|
|
278
|
+
</button>
|
|
279
|
+
);
|
|
280
|
+
})}
|
|
281
|
+
</div>
|
|
282
|
+
</div>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
</section>
|
|
286
|
+
);
|
|
287
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./color-palette-sheet";
|
|
@@ -37,7 +37,7 @@ export function DashboardHeader({
|
|
|
37
37
|
className
|
|
38
38
|
}: DashboardHeaderProps) {
|
|
39
39
|
return (
|
|
40
|
-
<header className={cn("flex min-h-16 w-full flex-wrap items-center justify-between gap-
|
|
40
|
+
<header className={cn("flex min-h-16 w-full flex-wrap items-center justify-between gap-3 border-b border-border bg-card px-5 py-3 text-foreground sm:h-16 sm:flex-nowrap sm:gap-5 sm:px-7 sm:py-0", className)}>
|
|
41
41
|
<Breadcrumb className="min-w-0 shrink">
|
|
42
42
|
<BreadcrumbList>
|
|
43
43
|
<BreadcrumbItem>
|
|
@@ -4,6 +4,7 @@ import * as React from "react";
|
|
|
4
4
|
import { ColumnDef } from "@tanstack/react-table";
|
|
5
5
|
import { Combobox } from "../../components/combobox";
|
|
6
6
|
import { DataTable, DataTableColumnHeader } from "../../components/data-table";
|
|
7
|
+
import { cn } from "../../lib/utils";
|
|
7
8
|
|
|
8
9
|
export interface SystemUser {
|
|
9
10
|
id: string;
|
|
@@ -60,9 +61,9 @@ export function DataTableWithFilters({
|
|
|
60
61
|
}, [data, selectedRole]);
|
|
61
62
|
|
|
62
63
|
return (
|
|
63
|
-
<div className="w-full min-w-0 space-y-
|
|
64
|
-
<div className="flex flex-col gap-
|
|
65
|
-
<div className="space-y-1">
|
|
64
|
+
<div className={cn("w-full min-w-0 space-y-5", className)}>
|
|
65
|
+
<div className="flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between">
|
|
66
|
+
<div className="space-y-1.5">
|
|
66
67
|
<h3 className="text-sm font-semibold text-foreground">{title}</h3>
|
|
67
68
|
<p className="text-xs text-muted-foreground">{description}</p>
|
|
68
69
|
</div>
|
|
@@ -18,9 +18,9 @@ export interface EmptyStateBlockProps
|
|
|
18
18
|
|
|
19
19
|
export function EmptyStateBlock({
|
|
20
20
|
icon,
|
|
21
|
-
title = "No
|
|
22
|
-
description = "Get started by
|
|
23
|
-
actionLabel = "
|
|
21
|
+
title = "No items yet",
|
|
22
|
+
description = "Get started by creating a new item or importing existing data.",
|
|
23
|
+
actionLabel = "Create item",
|
|
24
24
|
secondaryActionLabel,
|
|
25
25
|
onAction,
|
|
26
26
|
onSecondaryAction,
|
|
@@ -32,30 +32,31 @@ export function EmptyStateBlock({
|
|
|
32
32
|
|
|
33
33
|
return (
|
|
34
34
|
<div
|
|
35
|
+
data-slot="empty-state-block"
|
|
35
36
|
aria-labelledby={titleId}
|
|
36
37
|
aria-describedby={descriptionId}
|
|
37
38
|
className={cn(
|
|
38
|
-
"flex flex-col items-center justify-center rounded-
|
|
39
|
+
"flex flex-col items-center justify-center rounded-lg border border-dashed border-border bg-secondary/40 px-8 py-12 text-center max-w-lg mx-auto",
|
|
39
40
|
className
|
|
40
41
|
)}
|
|
41
42
|
{...props}
|
|
42
43
|
>
|
|
43
44
|
<div
|
|
44
45
|
aria-hidden="true"
|
|
45
|
-
className="flex h-12 w-12 items-center justify-center rounded-full bg-
|
|
46
|
+
className="flex h-12 w-12 items-center justify-center rounded-full bg-secondary border border-border text-muted-foreground mb-5"
|
|
46
47
|
>
|
|
47
48
|
{icon ?? <HelpCircle className="h-6 w-6" />}
|
|
48
49
|
</div>
|
|
49
50
|
|
|
50
|
-
<h3 id={titleId} className="text-base font-semibold text-foreground mb-
|
|
51
|
+
<h3 id={titleId} className="m-0 text-base font-semibold text-foreground mb-2">{title}</h3>
|
|
51
52
|
<p
|
|
52
53
|
id={descriptionId}
|
|
53
|
-
className="text-
|
|
54
|
+
className="m-0 text-sm text-muted-foreground max-w-sm mb-7 leading-relaxed"
|
|
54
55
|
>
|
|
55
56
|
{description}
|
|
56
57
|
</p>
|
|
57
58
|
|
|
58
|
-
<div className="flex w-full max-w-full flex-wrap items-center justify-center gap-3">
|
|
59
|
+
<div className="flex w-full max-w-full flex-wrap items-center justify-center gap-3.5">
|
|
59
60
|
{secondaryActionLabel && onSecondaryAction && (
|
|
60
61
|
<Button
|
|
61
62
|
variant="outline"
|
|
@@ -13,8 +13,9 @@ const sampleHeuristics: HeuristicScoreItem[] = [
|
|
|
13
13
|
id: "H2",
|
|
14
14
|
name: "Match between system and real world",
|
|
15
15
|
score: 95,
|
|
16
|
-
findingCount:
|
|
16
|
+
findingCount: 1,
|
|
17
17
|
},
|
|
18
|
+
{ id: "H3", name: "User control and freedom", score: 65, findingCount: 4 },
|
|
18
19
|
];
|
|
19
20
|
|
|
20
21
|
describe("EvaluationSummaryReport Block", () => {
|
|
@@ -25,7 +26,7 @@ describe("EvaluationSummaryReport Block", () => {
|
|
|
25
26
|
expect(screen.getByText("Generated with Usalyt Check")).toBeInTheDocument();
|
|
26
27
|
});
|
|
27
28
|
|
|
28
|
-
it("renders report title, metrics and heuristic
|
|
29
|
+
it("renders report title, metrics, pluralized findings, and heuristic scores", () => {
|
|
29
30
|
render(
|
|
30
31
|
<EvaluationSummaryReport
|
|
31
32
|
title="Sprint 4 Audit"
|
|
@@ -45,10 +46,12 @@ describe("EvaluationSummaryReport Block", () => {
|
|
|
45
46
|
expect(screen.getByText("4")).toBeInTheDocument();
|
|
46
47
|
expect(screen.getByText("10")).toBeInTheDocument();
|
|
47
48
|
expect(screen.getByText("Visibility of system status")).toBeInTheDocument();
|
|
49
|
+
expect(screen.getByText("1 finding")).toBeInTheDocument();
|
|
50
|
+
expect(screen.getByText("2 findings")).toBeInTheDocument();
|
|
48
51
|
expect(screen.getByText("80%")).toBeInTheDocument();
|
|
49
52
|
});
|
|
50
53
|
|
|
51
|
-
it("
|
|
54
|
+
it("renders segmented semantic score meters with accessible progress values", () => {
|
|
52
55
|
render(
|
|
53
56
|
<EvaluationSummaryReport
|
|
54
57
|
overallScore={78}
|
|
@@ -57,11 +60,16 @@ describe("EvaluationSummaryReport Block", () => {
|
|
|
57
60
|
);
|
|
58
61
|
|
|
59
62
|
const bars = screen.getAllByRole("progressbar");
|
|
60
|
-
expect(bars).toHaveLength(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
63
|
+
expect(bars).toHaveLength(4);
|
|
64
|
+
expect(bars[0]).toHaveAttribute("aria-valuenow", "78");
|
|
65
|
+
expect(bars[1]).toHaveAttribute("aria-valuenow", "80");
|
|
66
|
+
expect(bars[2]).toHaveAttribute("aria-valuenow", "95");
|
|
67
|
+
expect(bars[3]).toHaveAttribute("aria-valuenow", "65");
|
|
68
|
+
|
|
69
|
+
// 78 -> primary lavender-blue, 80+ -> pulse-green-foreground, <70 -> amber-signal-foreground
|
|
70
|
+
expect(bars[0].querySelector(".bg-primary")).toBeInTheDocument();
|
|
71
|
+
expect(bars[1].querySelector(".bg-pulse-green-foreground")).toBeInTheDocument();
|
|
72
|
+
expect(bars[3].querySelector(".bg-amber-signal-foreground")).toBeInTheDocument();
|
|
65
73
|
expect(screen.getByText("78")).toBeInTheDocument();
|
|
66
74
|
});
|
|
67
75
|
|