@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
|
@@ -50,7 +50,7 @@ const NavigationMenuTrigger = React.forwardRef<
|
|
|
50
50
|
ref={ref}
|
|
51
51
|
className={cn(
|
|
52
52
|
// impeccable-disable-next-line border-accent-on-rounded: state-conditional open-state underline indicator on a rounded trigger, not a card border
|
|
53
|
-
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-xs font-semibold tracking-tight-linear text-muted-foreground transition-colors hover:text-foreground hover:bg-accent focus:bg-accent focus:text-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-popup-open:text-foreground data-popup-open:border-b-2 data-popup-open:border-primary",
|
|
53
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-transparent px-4 py-2 text-xs font-semibold tracking-tight-linear text-muted-foreground transition-colors hover:text-foreground hover:bg-accent focus-visible:bg-accent focus-visible:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-popup-open:text-foreground data-popup-open:border-b-2 data-popup-open:border-primary",
|
|
54
54
|
className
|
|
55
55
|
)}
|
|
56
56
|
{...props}
|
|
@@ -76,7 +76,7 @@ const NavigationMenuContent = React.forwardRef<
|
|
|
76
76
|
<BasePopover.Popup
|
|
77
77
|
ref={ref}
|
|
78
78
|
className={cn(
|
|
79
|
-
"z-50 w-[400px] max-w-[var(--available-width,calc(100vw_-_2rem))] overflow-hidden rounded-
|
|
79
|
+
"z-50 w-[400px] max-w-[var(--available-width,calc(100vw_-_2rem))] overflow-hidden rounded-lg border border-border bg-popover p-4 text-popover-foreground shadow-(--shadow-xl) outline-none data-open:animate-overlay-in data-closed:animate-overlay-out",
|
|
80
80
|
className
|
|
81
81
|
)}
|
|
82
82
|
{...props}
|
|
@@ -28,7 +28,7 @@ export const NumberField = React.forwardRef<HTMLDivElement, NumberFieldProps>(
|
|
|
28
28
|
</BaseNumberField.Decrement>
|
|
29
29
|
<BaseNumberField.Input
|
|
30
30
|
aria-label={ariaLabel ?? "Value"}
|
|
31
|
-
className="h-9 w-16 bg-transparent text-center text-sm font-semibold text-foreground focus:outline-none disabled:opacity-40"
|
|
31
|
+
className="h-9 w-16 bg-transparent text-center text-sm font-semibold text-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:opacity-40"
|
|
32
32
|
/>
|
|
33
33
|
<BaseNumberField.Increment
|
|
34
34
|
className="flex h-9 w-9 items-center justify-center rounded-r-md border-l border-border text-foreground transition-colors hover:bg-accent disabled:opacity-40 disabled:cursor-not-allowed"
|
|
@@ -19,7 +19,7 @@ export const PopoverContent = React.forwardRef<
|
|
|
19
19
|
<BasePopover.Popup
|
|
20
20
|
ref={ref}
|
|
21
21
|
className={cn(
|
|
22
|
-
"z-50 w-72 rounded-
|
|
22
|
+
"z-50 w-72 rounded-lg border border-border bg-popover px-5 py-4 text-popover-foreground shadow-(--shadow-xl) outline-none data-open:animate-overlay-in data-closed:animate-overlay-out",
|
|
23
23
|
className
|
|
24
24
|
)}
|
|
25
25
|
{...props}
|
|
@@ -16,6 +16,10 @@ const meta: Meta<typeof Progress> = {
|
|
|
16
16
|
control: "select",
|
|
17
17
|
options: ["default", "neutral", "success", "warning", "destructive"],
|
|
18
18
|
},
|
|
19
|
+
pattern: {
|
|
20
|
+
control: "select",
|
|
21
|
+
options: ["solid", "hatched", "ticks", "dots"],
|
|
22
|
+
},
|
|
19
23
|
},
|
|
20
24
|
};
|
|
21
25
|
|
|
@@ -131,3 +135,38 @@ export const DestructiveVariant: Story = {
|
|
|
131
135
|
</div>
|
|
132
136
|
),
|
|
133
137
|
};
|
|
138
|
+
|
|
139
|
+
export const GraphitePatterns: Story = {
|
|
140
|
+
render: () => (
|
|
141
|
+
<div className="w-full max-w-md space-y-5">
|
|
142
|
+
<div className="space-y-1.5">
|
|
143
|
+
<div className="flex justify-between font-mono text-xs">
|
|
144
|
+
<span>Solid</span>
|
|
145
|
+
<span>64%</span>
|
|
146
|
+
</div>
|
|
147
|
+
<Progress value={64} pattern="solid" size="lg" />
|
|
148
|
+
</div>
|
|
149
|
+
<div className="space-y-1.5">
|
|
150
|
+
<div className="flex justify-between font-mono text-xs">
|
|
151
|
+
<span>Hatched (45 deg)</span>
|
|
152
|
+
<span>78%</span>
|
|
153
|
+
</div>
|
|
154
|
+
<Progress value={78} pattern="hatched" size="lg" />
|
|
155
|
+
</div>
|
|
156
|
+
<div className="space-y-1.5">
|
|
157
|
+
<div className="flex justify-between font-mono text-xs">
|
|
158
|
+
<span>Barcode ticks</span>
|
|
159
|
+
<span>71%</span>
|
|
160
|
+
</div>
|
|
161
|
+
<Progress value={71} pattern="ticks" size="lg" />
|
|
162
|
+
</div>
|
|
163
|
+
<div className="space-y-1.5">
|
|
164
|
+
<div className="flex justify-between font-mono text-xs">
|
|
165
|
+
<span>Dot matrix</span>
|
|
166
|
+
<span>82%</span>
|
|
167
|
+
</div>
|
|
168
|
+
<Progress value={82} pattern="dots" size="lg" />
|
|
169
|
+
</div>
|
|
170
|
+
</div>
|
|
171
|
+
),
|
|
172
|
+
};
|
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
|
|
6
6
|
export const progressVariants = cva(
|
|
7
|
-
"relative w-full overflow-hidden rounded-full bg-secondary transition-
|
|
7
|
+
"relative w-full overflow-hidden rounded-full bg-secondary transition-[background-color,opacity] duration-200",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
size: {
|
|
@@ -20,14 +20,14 @@ export const progressVariants = cva(
|
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
export const indicatorVariants = cva(
|
|
23
|
-
"h-full w-full flex-1 transition-
|
|
23
|
+
"h-full w-full flex-1 transition-[transform,background-color] duration-300 ease-out",
|
|
24
24
|
{
|
|
25
25
|
variants: {
|
|
26
26
|
variant: {
|
|
27
27
|
default: "bg-primary",
|
|
28
28
|
neutral: "bg-muted-foreground",
|
|
29
29
|
success: "bg-pulse-green-foreground",
|
|
30
|
-
warning: "bg-signal-
|
|
30
|
+
warning: "bg-amber-signal-foreground",
|
|
31
31
|
destructive: "bg-destructive",
|
|
32
32
|
},
|
|
33
33
|
},
|
|
@@ -37,28 +37,120 @@ export const indicatorVariants = cva(
|
|
|
37
37
|
}
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
+
const FILL_CLASSES: Record<NonNullable<ProgressProps["variant"]>, string> = {
|
|
41
|
+
default: "bg-primary",
|
|
42
|
+
neutral: "bg-foreground",
|
|
43
|
+
success: "bg-pulse-green-foreground",
|
|
44
|
+
warning: "bg-amber-signal-foreground",
|
|
45
|
+
destructive: "bg-destructive",
|
|
46
|
+
};
|
|
47
|
+
|
|
40
48
|
export interface ProgressProps
|
|
41
49
|
extends Omit<React.ComponentPropsWithoutRef<typeof BaseProgress.Root>, "value">,
|
|
42
50
|
VariantProps<typeof progressVariants> {
|
|
43
51
|
value?: number;
|
|
44
52
|
variant?: "default" | "neutral" | "success" | "warning" | "destructive";
|
|
53
|
+
/** Graphite industrial progress patterns: solid (default), hatched track, vertical barcode ticks, or circular dot matrix. */
|
|
54
|
+
pattern?: "solid" | "hatched" | "ticks" | "dots";
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
export const Progress = React.forwardRef<HTMLDivElement, ProgressProps>(
|
|
48
|
-
(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
value=
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
58
|
+
(
|
|
59
|
+
{
|
|
60
|
+
className,
|
|
61
|
+
value = 0,
|
|
62
|
+
size = "md",
|
|
63
|
+
variant = "default",
|
|
64
|
+
pattern = "solid",
|
|
65
|
+
...props
|
|
66
|
+
},
|
|
67
|
+
ref
|
|
68
|
+
) => {
|
|
69
|
+
const clamped = Math.min(100, Math.max(0, value));
|
|
70
|
+
const fillClass = FILL_CLASSES[variant];
|
|
71
|
+
|
|
72
|
+
if (pattern === "ticks") {
|
|
73
|
+
const tickCount = 32;
|
|
74
|
+
const activeTicks = Math.round((clamped / 100) * tickCount);
|
|
75
|
+
const tickHeight = size === "sm" ? "h-4" : size === "lg" ? "h-9" : "h-6";
|
|
76
|
+
return (
|
|
77
|
+
<BaseProgress.Root
|
|
78
|
+
ref={ref}
|
|
79
|
+
data-slot="progress"
|
|
80
|
+
data-pattern="ticks"
|
|
81
|
+
value={clamped}
|
|
82
|
+
className={cn("flex w-full items-center gap-[3px]", tickHeight, className)}
|
|
83
|
+
{...props}
|
|
84
|
+
>
|
|
85
|
+
{Array.from({ length: tickCount }).map((_, idx) => (
|
|
86
|
+
<span
|
|
87
|
+
key={idx}
|
|
88
|
+
aria-hidden="true"
|
|
89
|
+
className={cn(
|
|
90
|
+
"h-full flex-1 rounded-[1px] transition-colors duration-200",
|
|
91
|
+
idx < activeTicks ? fillClass : "bg-foreground/15"
|
|
92
|
+
)}
|
|
93
|
+
/>
|
|
94
|
+
))}
|
|
95
|
+
</BaseProgress.Root>
|
|
96
|
+
);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
if (pattern === "dots") {
|
|
100
|
+
const dotCount = 16;
|
|
101
|
+
const activeDots = Math.round((clamped / 100) * dotCount);
|
|
102
|
+
const dotSize = size === "sm" ? "h-2.5 w-2.5" : size === "lg" ? "h-4 w-4" : "h-3.5 w-3.5";
|
|
103
|
+
return (
|
|
104
|
+
<BaseProgress.Root
|
|
105
|
+
ref={ref}
|
|
106
|
+
data-slot="progress"
|
|
107
|
+
data-pattern="dots"
|
|
108
|
+
value={clamped}
|
|
109
|
+
className={cn("flex w-full flex-wrap items-center gap-1.5", className)}
|
|
110
|
+
{...props}
|
|
111
|
+
>
|
|
112
|
+
{Array.from({ length: dotCount }).map((_, idx) => (
|
|
113
|
+
<span
|
|
114
|
+
key={idx}
|
|
115
|
+
aria-hidden="true"
|
|
116
|
+
className={cn(
|
|
117
|
+
"rounded-full transition-colors duration-200",
|
|
118
|
+
dotSize,
|
|
119
|
+
idx < activeDots
|
|
120
|
+
? fillClass
|
|
121
|
+
: "border border-border bg-graphite-hatch"
|
|
122
|
+
)}
|
|
123
|
+
/>
|
|
124
|
+
))}
|
|
125
|
+
</BaseProgress.Root>
|
|
126
|
+
);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return (
|
|
130
|
+
<BaseProgress.Root
|
|
131
|
+
ref={ref}
|
|
132
|
+
data-slot="progress"
|
|
133
|
+
data-pattern={pattern}
|
|
134
|
+
value={clamped}
|
|
135
|
+
className={cn(
|
|
136
|
+
progressVariants({ size }),
|
|
137
|
+
pattern === "hatched" && "border border-border bg-graphite-hatch",
|
|
138
|
+
className
|
|
139
|
+
)}
|
|
140
|
+
{...props}
|
|
141
|
+
>
|
|
142
|
+
<BaseProgress.Track className="h-full w-full">
|
|
143
|
+
<BaseProgress.Indicator
|
|
144
|
+
data-slot="progress-indicator"
|
|
145
|
+
className={cn(
|
|
146
|
+
indicatorVariants({ variant }),
|
|
147
|
+
pattern === "hatched" && "rounded-full"
|
|
148
|
+
)}
|
|
149
|
+
style={{ transform: `translateX(-${100 - clamped}%)` }}
|
|
150
|
+
/>
|
|
151
|
+
</BaseProgress.Track>
|
|
152
|
+
</BaseProgress.Root>
|
|
153
|
+
);
|
|
154
|
+
}
|
|
63
155
|
);
|
|
64
156
|
Progress.displayName = "Progress";
|
|
@@ -13,8 +13,9 @@ export const SelectTrigger = React.forwardRef<
|
|
|
13
13
|
>(({ className, children, ...props }, ref) => (
|
|
14
14
|
<BaseSelect.Trigger
|
|
15
15
|
ref={ref}
|
|
16
|
+
data-slot="select-trigger"
|
|
16
17
|
className={cn(
|
|
17
|
-
"flex h-9 w-full items-center justify-between rounded-md border border-input bg-
|
|
18
|
+
"box-border flex h-9 w-full items-center justify-between gap-2 rounded-md border border-input bg-field px-3.5 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
18
19
|
className
|
|
19
20
|
)}
|
|
20
21
|
{...props}
|
|
@@ -43,7 +44,7 @@ export const SelectContent = React.forwardRef<
|
|
|
43
44
|
// Base UI v1.6.0 positioner writes `--anchor-width` inline on the
|
|
44
45
|
// floating element (utils/useAnchorPositioning), and the popup
|
|
45
46
|
// inherits it. Same mechanism Combobox uses.
|
|
46
|
-
"relative z-50 w-[var(--anchor-width)] min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-(--shadow-xl) outline-none data-open:animate-overlay-in data-closed:animate-overlay-out p-1",
|
|
47
|
+
"relative z-50 w-[var(--anchor-width)] min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground shadow-(--shadow-xl) outline-none data-open:animate-overlay-in data-closed:animate-overlay-out p-1.5",
|
|
47
48
|
className
|
|
48
49
|
)}
|
|
49
50
|
{...props}
|
|
@@ -61,7 +62,7 @@ export const SelectLabel = React.forwardRef<
|
|
|
61
62
|
>(({ className, ...props }, ref) => (
|
|
62
63
|
<BaseSelect.GroupLabel
|
|
63
64
|
ref={ref}
|
|
64
|
-
className={cn("px-
|
|
65
|
+
className={cn("px-3 py-2 text-xs font-medium text-muted-foreground", className)}
|
|
65
66
|
{...props}
|
|
66
67
|
/>
|
|
67
68
|
));
|
|
@@ -74,7 +75,7 @@ export const SelectItem = React.forwardRef<
|
|
|
74
75
|
<BaseSelect.Item
|
|
75
76
|
ref={ref}
|
|
76
77
|
className={cn(
|
|
77
|
-
"relative flex w-full cursor-pointer select-none items-center justify-between rounded-sm px-
|
|
78
|
+
"relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-sm px-3 py-2 text-xs outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[selected]:font-semibold",
|
|
78
79
|
className
|
|
79
80
|
)}
|
|
80
81
|
{...props}
|
|
@@ -11,7 +11,7 @@ const SheetTrigger = BaseDialog.Trigger;
|
|
|
11
11
|
const SheetClose = BaseDialog.Close;
|
|
12
12
|
|
|
13
13
|
const sheetVariants = cva(
|
|
14
|
-
"fixed z-50 gap-
|
|
14
|
+
"fixed z-50 gap-5 overflow-y-auto overscroll-contain bg-popover px-7 py-6 shadow-(--shadow-xl) transition ease-in-out border-border text-popover-foreground backdrop-blur-md",
|
|
15
15
|
{
|
|
16
16
|
variants: {
|
|
17
17
|
side: {
|
|
@@ -29,23 +29,26 @@ const sheetVariants = cva(
|
|
|
29
29
|
|
|
30
30
|
interface SheetContentProps
|
|
31
31
|
extends React.ComponentPropsWithoutRef<typeof BaseDialog.Popup>,
|
|
32
|
-
VariantProps<typeof sheetVariants> {
|
|
32
|
+
VariantProps<typeof sheetVariants> {
|
|
33
|
+
closeLabel?: string;
|
|
34
|
+
}
|
|
33
35
|
|
|
34
36
|
const SheetContent = React.forwardRef<
|
|
35
37
|
React.ElementRef<typeof BaseDialog.Popup>,
|
|
36
38
|
SheetContentProps
|
|
37
|
-
>(({ side = "right", className, children, ...props }, ref) => (
|
|
39
|
+
>(({ side = "right", className, children, closeLabel = "Close", ...props }, ref) => (
|
|
38
40
|
<BaseDialog.Portal>
|
|
39
41
|
<BaseDialog.Backdrop className="fixed inset-0 z-50 bg-void/80 backdrop-blur-md transition-opacity duration-200" />
|
|
40
42
|
<BaseDialog.Popup
|
|
41
43
|
ref={ref}
|
|
44
|
+
data-slot="sheet-content"
|
|
42
45
|
className={cn(sheetVariants({ side }), className)}
|
|
43
46
|
{...props}
|
|
44
47
|
>
|
|
45
48
|
{children}
|
|
46
|
-
<BaseDialog.Close className="absolute right-
|
|
49
|
+
<BaseDialog.Close aria-label={closeLabel} className="absolute right-3 top-3 inline-flex h-8 w-8 items-center justify-center rounded-md opacity-70 transition-opacity hover:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 text-muted-foreground hover:text-foreground">
|
|
47
50
|
<X className="h-4 w-4" />
|
|
48
|
-
<span className="sr-only">
|
|
51
|
+
<span className="sr-only">{closeLabel}</span>
|
|
49
52
|
</BaseDialog.Close>
|
|
50
53
|
</BaseDialog.Popup>
|
|
51
54
|
</BaseDialog.Portal>
|
|
@@ -58,7 +61,7 @@ const SheetHeader = ({
|
|
|
58
61
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
59
62
|
<div
|
|
60
63
|
className={cn(
|
|
61
|
-
"flex flex-col space-y-2 text-center sm:text-left mb-
|
|
64
|
+
"flex flex-col space-y-2 text-center sm:text-left mb-5",
|
|
62
65
|
className
|
|
63
66
|
)}
|
|
64
67
|
{...props}
|
|
@@ -72,7 +75,7 @@ const SheetFooter = ({
|
|
|
72
75
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
73
76
|
<div
|
|
74
77
|
className={cn(
|
|
75
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end mt-6",
|
|
78
|
+
"flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end sm:gap-3 mt-6",
|
|
76
79
|
className
|
|
77
80
|
)}
|
|
78
81
|
{...props}
|
|
@@ -16,7 +16,7 @@ export const Switch = React.forwardRef<HTMLButtonElement, SwitchProps>(
|
|
|
16
16
|
>
|
|
17
17
|
<BaseSwitch.Thumb
|
|
18
18
|
className={cn(
|
|
19
|
-
"pointer-events-none block h-4 w-4 rounded-full bg-
|
|
19
|
+
"pointer-events-none block h-4 w-4 rounded-full bg-paper shadow-sm ring-0 transition-[transform,background-color] duration-200 ease-out data-[checked]:translate-x-4 data-[unchecked]:translate-x-0"
|
|
20
20
|
)}
|
|
21
21
|
/>
|
|
22
22
|
</BaseSwitch.Root>
|
|
@@ -73,7 +73,7 @@ const TableHead = React.forwardRef<
|
|
|
73
73
|
ref={ref}
|
|
74
74
|
scope="col"
|
|
75
75
|
className={cn(
|
|
76
|
-
"h-
|
|
76
|
+
"h-11 px-4 py-3 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
77
77
|
className
|
|
78
78
|
)}
|
|
79
79
|
{...props}
|
|
@@ -88,7 +88,7 @@ const TableCell = React.forwardRef<
|
|
|
88
88
|
<td
|
|
89
89
|
ref={ref}
|
|
90
90
|
className={cn(
|
|
91
|
-
"
|
|
91
|
+
"px-4 py-3.5 align-middle text-foreground [&:has([role=checkbox])]:pr-0",
|
|
92
92
|
className
|
|
93
93
|
)}
|
|
94
94
|
{...props}
|
|
@@ -10,9 +10,10 @@ export const TabsList = React.forwardRef<
|
|
|
10
10
|
>(({ className, ...props }, ref) => (
|
|
11
11
|
<BaseTabs.List
|
|
12
12
|
ref={ref}
|
|
13
|
+
data-slot="tabs-list"
|
|
13
14
|
className={cn(
|
|
14
15
|
// Single underline idiom: one hairline rail the triggers sit on.
|
|
15
|
-
"flex flex-wrap items-center gap-1 border-b border-border",
|
|
16
|
+
"flex flex-wrap items-center gap-1 sm:gap-2 border-b border-border",
|
|
16
17
|
className
|
|
17
18
|
)}
|
|
18
19
|
{...props}
|
|
@@ -26,12 +27,13 @@ export const TabsTrigger = React.forwardRef<
|
|
|
26
27
|
>(({ className, ...props }, ref) => (
|
|
27
28
|
<BaseTabs.Tab
|
|
28
29
|
ref={ref}
|
|
30
|
+
data-slot="tabs-trigger"
|
|
29
31
|
className={cn(
|
|
30
32
|
// The selected idiom is only the 2px primary underline hanging over the
|
|
31
33
|
// list rail (-mb-px); no pill fill, no shadow. The trigger carries a
|
|
32
34
|
// transparent 2px bottom border at rest so the rail never shifts.
|
|
33
35
|
// impeccable-disable-next-line border-accent-on-rounded: state-conditional selected-tab underline indicator, not a card border
|
|
34
|
-
"relative inline-flex h-
|
|
36
|
+
"relative inline-flex h-9 items-center px-3.5 py-2 text-[13px] text-muted-foreground transition-colors hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 border-b-2 border-transparent data-active:text-foreground data-active:border-primary -mb-px",
|
|
35
37
|
className
|
|
36
38
|
)}
|
|
37
39
|
{...props}
|
|
@@ -45,8 +47,9 @@ export const TabsContent = React.forwardRef<
|
|
|
45
47
|
>(({ className, ...props }, ref) => (
|
|
46
48
|
<BaseTabs.Panel
|
|
47
49
|
ref={ref}
|
|
50
|
+
data-slot="tabs-content"
|
|
48
51
|
className={cn(
|
|
49
|
-
"mt-
|
|
52
|
+
"mt-4 ring-offset-background focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring",
|
|
50
53
|
className
|
|
51
54
|
)}
|
|
52
55
|
{...props}
|
|
@@ -3,7 +3,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
4
|
|
|
5
5
|
export const textareaVariants = cva(
|
|
6
|
-
"flex min-h-[
|
|
6
|
+
"box-border flex min-h-[96px] w-full rounded-md border border-input bg-field text-foreground px-3.5 py-2.5 text-sm transition-[border-color,box-shadow,background-color] duration-150 ease-out placeholder:text-fog focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
resize: {
|
|
@@ -21,7 +21,7 @@ export const ToastViewport = React.forwardRef<
|
|
|
21
21
|
<BaseToast.Viewport
|
|
22
22
|
ref={ref}
|
|
23
23
|
className={cn(
|
|
24
|
-
"fixed right-
|
|
24
|
+
"fixed right-5 bottom-5 top-auto left-auto z-50 flex w-[min(calc(100vw-2rem),24rem)] flex-col items-end gap-3 outline-none",
|
|
25
25
|
className
|
|
26
26
|
)}
|
|
27
27
|
{...props}
|
|
@@ -32,7 +32,7 @@ ToastViewport.displayName = "ToastViewport";
|
|
|
32
32
|
// Base UI retains toasts beyond `limit` as inert, promotable entries. Keep
|
|
33
33
|
// them out of layout flow so retained entries cannot push the stack offscreen.
|
|
34
34
|
export const toastVariants = cva(
|
|
35
|
-
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-
|
|
35
|
+
"group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-lg border border-border bg-popover text-popover-foreground px-5 py-4 shadow-subtle-2 transition-[opacity,translate,scale] duration-enter ease-out-expo data-starting-style:opacity-0 data-starting-style:translate-y-3 data-starting-style:scale-[0.97] data-ending-style:opacity-0 data-ending-style:translate-y-2 data-ending-style:scale-[0.98] data-ending-style:duration-exit data-limited:hidden",
|
|
36
36
|
{
|
|
37
37
|
variants: {
|
|
38
38
|
variant: {
|
|
@@ -42,7 +42,7 @@ export const toastVariants = cva(
|
|
|
42
42
|
success:
|
|
43
43
|
"border-pulse-green/40 bg-pulse-green/10 text-pulse-green-foreground",
|
|
44
44
|
warning:
|
|
45
|
-
"border-signal
|
|
45
|
+
"border-amber-signal/40 bg-amber-signal/10 text-amber-signal-foreground",
|
|
46
46
|
info: "border-iris-violet/40 bg-iris-violet/10 text-iris-violet-foreground",
|
|
47
47
|
},
|
|
48
48
|
},
|
|
@@ -81,7 +81,7 @@ export const ToastContent = React.forwardRef<
|
|
|
81
81
|
>(({ className, ...props }, ref) => (
|
|
82
82
|
<BaseToast.Content
|
|
83
83
|
ref={ref}
|
|
84
|
-
className={cn("flex min-w-0 flex-1 flex-col gap-1", className)}
|
|
84
|
+
className={cn("flex min-w-0 flex-1 flex-col gap-1.5", className)}
|
|
85
85
|
{...props}
|
|
86
86
|
/>
|
|
87
87
|
));
|
|
@@ -115,19 +115,22 @@ export const ToastAction = BaseToast.Action;
|
|
|
115
115
|
|
|
116
116
|
export const ToastClose = React.forwardRef<
|
|
117
117
|
HTMLButtonElement,
|
|
118
|
-
React.ComponentPropsWithoutRef<typeof BaseToast.Close>
|
|
119
|
-
|
|
118
|
+
React.ComponentPropsWithoutRef<typeof BaseToast.Close> & {
|
|
119
|
+
closeLabel?: string;
|
|
120
|
+
}
|
|
121
|
+
>(({ className, closeLabel = "Close", ...props }, ref) => (
|
|
120
122
|
<BaseToast.Close
|
|
121
123
|
ref={ref}
|
|
124
|
+
data-slot="toast-close"
|
|
122
125
|
aria-hidden={false}
|
|
123
126
|
className={cn(
|
|
124
|
-
"absolute right-2 top-2 rounded-md
|
|
127
|
+
"absolute right-2 top-2 inline-flex h-8 w-8 items-center justify-center rounded-md text-foreground/50 opacity-70 transition-opacity hover:opacity-100 focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring",
|
|
125
128
|
className
|
|
126
129
|
)}
|
|
127
130
|
{...props}
|
|
128
131
|
>
|
|
129
132
|
<X className="h-4 w-4" aria-hidden="true" />
|
|
130
|
-
<span className="sr-only">
|
|
133
|
+
<span className="sr-only">{closeLabel}</span>
|
|
131
134
|
</BaseToast.Close>
|
|
132
135
|
));
|
|
133
136
|
ToastClose.displayName = "ToastClose";
|
|
@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
4
4
|
import { cn } from "../../lib/utils";
|
|
5
5
|
|
|
6
6
|
export const toggleVariants = cva(
|
|
7
|
-
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-
|
|
7
|
+
"inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium transition-[background-color,border-color,color,transform] duration-150 ease-out hover:bg-muted hover:text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 active:scale-[0.97] data-[pressed]:bg-accent data-[pressed]:text-accent-foreground data-[pressed]:font-semibold",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
variant: {
|
package/src/index.ts
CHANGED
|
@@ -65,10 +65,13 @@ export * from "./blocks/form-with-validation";
|
|
|
65
65
|
export * from "./blocks/stats-card-grid";
|
|
66
66
|
export * from "./blocks/heuristic-finding-card";
|
|
67
67
|
export * from "./blocks/inspector-split-view";
|
|
68
|
+
export * from "./blocks/instrument-metrics-grid";
|
|
68
69
|
export * from "./blocks/evaluation-summary-report";
|
|
69
70
|
export * from "./blocks/app-shell-layout";
|
|
70
71
|
export * from "./blocks/collaboration-chat-panel";
|
|
72
|
+
export * from "./blocks/color-palette-sheet";
|
|
71
73
|
export * from "./blocks/project-kanban-board";
|
|
74
|
+
export * from "./blocks/schedule-timeline-board";
|
|
72
75
|
export * from "./blocks/team-members-table";
|
|
73
76
|
export * from "./blocks/empty-state-block";
|
|
74
77
|
export * from "./lib/utils";
|