@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
|
@@ -2,13 +2,12 @@ import * as React from "react";
|
|
|
2
2
|
import { cva, type VariantProps } from "class-variance-authority";
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
4
|
|
|
5
|
-
// Variant palette
|
|
6
|
-
//
|
|
7
|
-
// palette's non-danger attention hue (no amber exists in DESIGN.md).
|
|
5
|
+
// Variant palette: success = pulse-green, destructive = coral-red,
|
|
6
|
+
// warning = amber-signal, info = signal-teal.
|
|
8
7
|
// Ink pairs are theme-calibrated tokens: every text/icon pair holds
|
|
9
8
|
// >= 4.5:1 in BOTH themes (see src/test/palette-contract.test.ts).
|
|
10
9
|
export const alertVariants = cva(
|
|
11
|
-
"relative w-full rounded-
|
|
10
|
+
"box-border relative w-full rounded-lg border px-5 py-4 backdrop-blur-md transition-[border-color,background-color,color] duration-200 [&>svg~*]:pl-8 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-5 [&>svg]:top-4",
|
|
12
11
|
{
|
|
13
12
|
variants: {
|
|
14
13
|
variant: {
|
|
@@ -19,6 +18,8 @@ export const alertVariants = cva(
|
|
|
19
18
|
success:
|
|
20
19
|
"border-pulse-green/40 bg-pulse-green/10 text-pulse-green-foreground [&>svg]:text-pulse-green-foreground",
|
|
21
20
|
warning:
|
|
21
|
+
"border-amber-signal/40 bg-amber-signal/10 text-amber-signal-foreground [&>svg]:text-amber-signal-foreground",
|
|
22
|
+
info:
|
|
22
23
|
"border-signal-teal/40 bg-signal-teal/10 text-signal-teal-foreground [&>svg]:text-signal-teal-foreground",
|
|
23
24
|
}
|
|
24
25
|
},
|
|
@@ -34,6 +35,7 @@ const Alert = React.forwardRef<
|
|
|
34
35
|
>(({ className, variant, ...props }, ref) => (
|
|
35
36
|
<div
|
|
36
37
|
ref={ref}
|
|
38
|
+
data-slot="alert"
|
|
37
39
|
role="alert"
|
|
38
40
|
className={cn(alertVariants({ variant }), className)}
|
|
39
41
|
{...props}
|
|
@@ -42,23 +44,25 @@ const Alert = React.forwardRef<
|
|
|
42
44
|
Alert.displayName = "Alert";
|
|
43
45
|
|
|
44
46
|
const AlertTitle = React.forwardRef<
|
|
45
|
-
|
|
47
|
+
HTMLHeadingElement,
|
|
46
48
|
React.HTMLAttributes<HTMLHeadingElement>
|
|
47
49
|
>(({ className, ...props }, ref) => (
|
|
48
|
-
<
|
|
50
|
+
<h5
|
|
49
51
|
ref={ref}
|
|
50
|
-
|
|
52
|
+
data-slot="alert-title"
|
|
53
|
+
className={cn("m-0 mb-1.5 text-sm font-semibold leading-none tracking-tight text-balance", className)}
|
|
51
54
|
{...props}
|
|
52
55
|
/>
|
|
53
56
|
));
|
|
54
57
|
AlertTitle.displayName = "AlertTitle";
|
|
55
58
|
|
|
56
59
|
const AlertDescription = React.forwardRef<
|
|
57
|
-
|
|
58
|
-
React.HTMLAttributes<
|
|
60
|
+
HTMLDivElement,
|
|
61
|
+
React.HTMLAttributes<HTMLDivElement>
|
|
59
62
|
>(({ className, ...props }, ref) => (
|
|
60
63
|
<div
|
|
61
64
|
ref={ref}
|
|
65
|
+
data-slot="alert-description"
|
|
62
66
|
className={cn("text-xs leading-relaxed opacity-90 text-pretty", className)}
|
|
63
67
|
{...props}
|
|
64
68
|
/>
|
|
@@ -30,7 +30,7 @@ export const AlertDialogContent = React.forwardRef<
|
|
|
30
30
|
<BaseAlertDialog.Popup
|
|
31
31
|
ref={ref}
|
|
32
32
|
className={cn(
|
|
33
|
-
"fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100dvh-2rem)] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-
|
|
33
|
+
"fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100dvh-2rem)] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-5 overflow-y-auto overscroll-contain rounded-lg border border-border bg-popover text-popover-foreground px-7 py-6 shadow-(--shadow-xl) data-open:animate-overlay-in data-closed:animate-overlay-out",
|
|
34
34
|
className
|
|
35
35
|
)}
|
|
36
36
|
{...props}
|
|
@@ -57,7 +57,7 @@ export const AlertDialogFooter = ({
|
|
|
57
57
|
...props
|
|
58
58
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
59
59
|
<div
|
|
60
|
-
className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}
|
|
60
|
+
className={cn("flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end sm:gap-3", className)}
|
|
61
61
|
{...props}
|
|
62
62
|
/>
|
|
63
63
|
);
|
|
@@ -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 avatarVariants = cva(
|
|
7
|
-
"relative flex shrink-0 overflow-hidden rounded-full transition-
|
|
7
|
+
"relative flex shrink-0 overflow-hidden rounded-full transition-[transform,opacity,box-shadow] duration-150 ring-2 ring-background",
|
|
8
8
|
{
|
|
9
9
|
variants: {
|
|
10
10
|
size: {
|
|
@@ -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 badgeVariants = cva(
|
|
6
|
-
"inline-flex items-center gap-1.5 rounded-sm border px-2 py-0.5 text-xs font-medium tabular-nums transition-[background-color,border-color,color] duration-150 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
6
|
+
"inline-flex items-center gap-1.5 rounded-sm border px-2.5 py-0.5 text-xs font-medium tabular-nums transition-[background-color,border-color,color] duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
@@ -17,6 +17,8 @@ export const badgeVariants = cva(
|
|
|
17
17
|
"text-foreground border-border bg-background hover:bg-accent hover:text-accent-foreground",
|
|
18
18
|
neutral:
|
|
19
19
|
"border-border bg-foreground/5 text-muted-foreground",
|
|
20
|
+
cobalt:
|
|
21
|
+
"border-cobalt/35 bg-cobalt/10 text-cobalt-foreground",
|
|
20
22
|
"pulse-green":
|
|
21
23
|
"border-pulse-green/40 bg-pulse-green/10 text-pulse-green-foreground",
|
|
22
24
|
"coral-red":
|
|
@@ -46,6 +48,7 @@ export const Badge = React.forwardRef<HTMLDivElement, BadgeProps>(
|
|
|
46
48
|
return (
|
|
47
49
|
<div
|
|
48
50
|
ref={ref}
|
|
51
|
+
data-slot="badge"
|
|
49
52
|
className={cn(badgeVariants({ variant }), className)}
|
|
50
53
|
{...props}
|
|
51
54
|
/>
|
|
@@ -33,7 +33,7 @@ describe("Button Primitive Component", () => {
|
|
|
33
33
|
render(<Button variant="outline">Outline</Button>);
|
|
34
34
|
const button = screen.getByRole("button");
|
|
35
35
|
expect(button).toHaveClass("border-border");
|
|
36
|
-
expect(button).toHaveClass("bg-
|
|
36
|
+
expect(button).toHaveClass("bg-card");
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
it("applies destructive variant classes", () => {
|
|
@@ -59,8 +59,8 @@ describe("Button Primitive Component", () => {
|
|
|
59
59
|
it("applies pill variant classes", () => {
|
|
60
60
|
render(<Button variant="pill">Pill CTA</Button>);
|
|
61
61
|
const button = screen.getByRole("button");
|
|
62
|
-
expect(button).toHaveClass("bg-
|
|
63
|
-
expect(button).toHaveClass("text-
|
|
62
|
+
expect(button).toHaveClass("bg-foreground");
|
|
63
|
+
expect(button).toHaveClass("text-background");
|
|
64
64
|
expect(button).toHaveClass("rounded-full");
|
|
65
65
|
});
|
|
66
66
|
|
|
@@ -176,8 +176,17 @@ describe("Button Primitive Component", () => {
|
|
|
176
176
|
<a href="/target">Go Target</a>
|
|
177
177
|
</Button>
|
|
178
178
|
);
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
).
|
|
179
|
+
const link = screen.getByRole("link", { name: /go target/i });
|
|
180
|
+
expect(link).toBeInTheDocument();
|
|
181
|
+
expect(link).toHaveClass("inline-flex");
|
|
182
|
+
expect(screen.queryByRole("button")).not.toBeInTheDocument();
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
it("renders custom element when render prop is provided", () => {
|
|
186
|
+
render(<Button render={<a href="/docs" />}>Docs</Button>);
|
|
187
|
+
const link = screen.getByRole("link", { name: /docs/i });
|
|
188
|
+
expect(link).toBeInTheDocument();
|
|
189
|
+
expect(link).toHaveClass("inline-flex");
|
|
190
|
+
expect(screen.queryByRole("button")).not.toBeInTheDocument();
|
|
182
191
|
});
|
|
183
192
|
});
|
|
@@ -5,26 +5,26 @@ import { Loader2 } from "lucide-react";
|
|
|
5
5
|
import { cn } from "../../lib/utils";
|
|
6
6
|
|
|
7
7
|
export const buttonVariants = cva(
|
|
8
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-[background-color,border-color,color,fill,stroke,opacity,box-shadow,transform] duration-150 ease-out active:scale-[0.
|
|
8
|
+
"box-border inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md border border-transparent text-sm font-medium transition-[background-color,border-color,color,fill,stroke,opacity,box-shadow,transform] duration-150 ease-out active:translate-y-[1px] active:scale-[0.985] 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 aria-disabled:pointer-events-none aria-disabled:opacity-50",
|
|
9
9
|
{
|
|
10
10
|
variants: {
|
|
11
11
|
variant: {
|
|
12
12
|
default:
|
|
13
|
-
"bg-primary text-primary-foreground
|
|
13
|
+
"bg-primary text-primary-foreground hover:bg-primary-hover active:bg-primary-focus tracking-[-0.011em]",
|
|
14
14
|
destructive:
|
|
15
15
|
"bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
16
16
|
outline:
|
|
17
|
-
"border border-border bg-
|
|
17
|
+
"border border-border bg-card text-foreground shadow-(--shadow-inset-hairline) hover:bg-accent hover:text-accent-foreground hover:border-hairline-strong",
|
|
18
18
|
secondary:
|
|
19
|
-
"border border-border bg-secondary text-secondary-foreground hover:bg-accent hover:border-
|
|
20
|
-
ghost: "hover:bg-accent hover:text-accent-foreground text-
|
|
21
|
-
link: "text-primary underline-offset-4 hover:underline",
|
|
22
|
-
pill: "bg-
|
|
19
|
+
"border border-border bg-secondary text-secondary-foreground shadow-(--shadow-inset-hairline) hover:bg-accent hover:border-hairline-strong",
|
|
20
|
+
ghost: "bg-transparent hover:bg-accent hover:text-accent-foreground text-foreground",
|
|
21
|
+
link: "bg-transparent text-primary underline-offset-4 hover:underline",
|
|
22
|
+
pill: "bg-foreground text-background rounded-full hover:bg-foreground/90 font-medium",
|
|
23
23
|
},
|
|
24
24
|
size: {
|
|
25
|
-
sm: "h-8 px-3 text-xs",
|
|
26
|
-
md: "h-9 px-4",
|
|
27
|
-
lg: "h-10 px-6 text-base",
|
|
25
|
+
sm: "h-8 px-3 py-1.5 text-xs",
|
|
26
|
+
md: "h-9 px-4 py-2",
|
|
27
|
+
lg: "h-10 px-6 py-2.5 text-base",
|
|
28
28
|
icon: "h-9 w-9",
|
|
29
29
|
},
|
|
30
30
|
},
|
|
@@ -39,7 +39,9 @@ export interface ButtonProps
|
|
|
39
39
|
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
40
40
|
VariantProps<typeof buttonVariants> {
|
|
41
41
|
asChild?: boolean;
|
|
42
|
+
render?: React.ComponentPropsWithoutRef<typeof BaseButton>["render"];
|
|
42
43
|
loading?: boolean;
|
|
44
|
+
loadingLabel?: string;
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
@@ -49,7 +51,9 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
49
51
|
variant,
|
|
50
52
|
size,
|
|
51
53
|
asChild = false,
|
|
54
|
+
render,
|
|
52
55
|
loading = false,
|
|
56
|
+
loadingLabel = "Loading...",
|
|
53
57
|
disabled,
|
|
54
58
|
children,
|
|
55
59
|
type = "button",
|
|
@@ -59,13 +63,59 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
59
63
|
) => {
|
|
60
64
|
const isDisabled = disabled || loading;
|
|
61
65
|
|
|
66
|
+
if (asChild && React.isValidElement(children)) {
|
|
67
|
+
const childElement = children as React.ReactElement<{
|
|
68
|
+
className?: string;
|
|
69
|
+
children?: React.ReactNode;
|
|
70
|
+
}>;
|
|
71
|
+
return React.cloneElement(childElement, {
|
|
72
|
+
...props,
|
|
73
|
+
...(childElement.props as Record<string, unknown>),
|
|
74
|
+
ref,
|
|
75
|
+
"aria-disabled": isDisabled || undefined,
|
|
76
|
+
"aria-busy": loading || undefined,
|
|
77
|
+
className: cn(
|
|
78
|
+
buttonVariants({ variant, size, className }),
|
|
79
|
+
childElement.props.className
|
|
80
|
+
),
|
|
81
|
+
} as React.Attributes & Record<string, unknown>);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
if (render && React.isValidElement(render) && render.type === "a") {
|
|
85
|
+
const anchorElement = render as React.ReactElement<{
|
|
86
|
+
className?: string;
|
|
87
|
+
children?: React.ReactNode;
|
|
88
|
+
}>;
|
|
89
|
+
return React.cloneElement(
|
|
90
|
+
anchorElement,
|
|
91
|
+
{
|
|
92
|
+
...props,
|
|
93
|
+
...(anchorElement.props as Record<string, unknown>),
|
|
94
|
+
ref,
|
|
95
|
+
"aria-disabled": isDisabled || undefined,
|
|
96
|
+
"aria-busy": loading || undefined,
|
|
97
|
+
className: cn(
|
|
98
|
+
buttonVariants({ variant, size, className }),
|
|
99
|
+
anchorElement.props.className
|
|
100
|
+
),
|
|
101
|
+
} as React.Attributes & Record<string, unknown>,
|
|
102
|
+
anchorElement.props.children ?? children
|
|
103
|
+
);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const customRender = render ?? <button />;
|
|
107
|
+
const isNativeButton =
|
|
108
|
+
!render || (React.isValidElement(render) && render.type === "button");
|
|
109
|
+
|
|
62
110
|
return (
|
|
63
111
|
<BaseButton
|
|
64
112
|
ref={ref}
|
|
65
|
-
|
|
113
|
+
data-slot="button"
|
|
114
|
+
type={isNativeButton ? type : undefined}
|
|
115
|
+
nativeButton={isNativeButton}
|
|
66
116
|
disabled={isDisabled}
|
|
67
117
|
aria-busy={loading || undefined}
|
|
68
|
-
render={
|
|
118
|
+
render={customRender}
|
|
69
119
|
className={cn(buttonVariants({ variant, size, className }))}
|
|
70
120
|
{...props}
|
|
71
121
|
>
|
|
@@ -76,7 +126,7 @@ export const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
76
126
|
className="h-4 w-4 animate-spin shrink-0"
|
|
77
127
|
aria-hidden="true"
|
|
78
128
|
/>
|
|
79
|
-
<span className="sr-only">
|
|
129
|
+
<span className="sr-only">{loadingLabel}</span>
|
|
80
130
|
{children}
|
|
81
131
|
</>
|
|
82
132
|
) : (
|
|
@@ -81,7 +81,7 @@ export const Calendar = React.forwardRef<HTMLDivElement, CalendarProps>(
|
|
|
81
81
|
role="region"
|
|
82
82
|
aria-label="Calendar"
|
|
83
83
|
className={cn(
|
|
84
|
-
"w-
|
|
84
|
+
"w-72 p-3 bg-background border border-border rounded-lg text-foreground backdrop-blur-md",
|
|
85
85
|
className
|
|
86
86
|
)}
|
|
87
87
|
{...props}
|
|
@@ -97,7 +97,7 @@ export const Calendar = React.forwardRef<HTMLDivElement, CalendarProps>(
|
|
|
97
97
|
size="sm"
|
|
98
98
|
onClick={handlePrevMonth}
|
|
99
99
|
aria-label="Previous month"
|
|
100
|
-
className="h-
|
|
100
|
+
className="h-8 w-8 p-0 hover:bg-muted"
|
|
101
101
|
>
|
|
102
102
|
<ChevronLeft className="h-4 w-4" />
|
|
103
103
|
</Button>
|
|
@@ -106,7 +106,7 @@ export const Calendar = React.forwardRef<HTMLDivElement, CalendarProps>(
|
|
|
106
106
|
size="sm"
|
|
107
107
|
onClick={handleNextMonth}
|
|
108
108
|
aria-label="Next month"
|
|
109
|
-
className="h-
|
|
109
|
+
className="h-8 w-8 p-0 hover:bg-muted"
|
|
110
110
|
>
|
|
111
111
|
<ChevronRight className="h-4 w-4" />
|
|
112
112
|
</Button>
|
|
@@ -126,7 +126,7 @@ export const Calendar = React.forwardRef<HTMLDivElement, CalendarProps>(
|
|
|
126
126
|
<div className="grid grid-cols-7 gap-1 text-center" role="group" aria-label="Calendar days">
|
|
127
127
|
{days.map((date, idx) => {
|
|
128
128
|
if (!date) {
|
|
129
|
-
return <div key={`empty-${idx}`} className="h-
|
|
129
|
+
return <div key={`empty-${idx}`} className="h-8 w-8" />;
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
const isSelected = isSameDay(selected, date);
|
|
@@ -142,7 +142,7 @@ export const Calendar = React.forwardRef<HTMLDivElement, CalendarProps>(
|
|
|
142
142
|
aria-pressed={isSelected}
|
|
143
143
|
aria-disabled={disabled}
|
|
144
144
|
className={cn(
|
|
145
|
-
"h-
|
|
145
|
+
"h-8 w-8 rounded-md text-xs font-normal transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:opacity-40 disabled:cursor-not-allowed",
|
|
146
146
|
isSelected
|
|
147
147
|
? "bg-primary text-primary-foreground font-semibold shadow-subtle-3"
|
|
148
148
|
: "hover:bg-accent hover:text-accent-foreground text-foreground"
|
|
@@ -59,7 +59,7 @@ export const Default: Story = {
|
|
|
59
59
|
|
|
60
60
|
export const InteractiveCard: Story = {
|
|
61
61
|
render: () => (
|
|
62
|
-
<Card className="w-[380px] hover:border-primary/50 cursor-pointer transition-
|
|
62
|
+
<Card className="w-[380px] hover:border-primary/50 cursor-pointer transition-[border-color,box-shadow] duration-150">
|
|
63
63
|
<CardHeader>
|
|
64
64
|
<div className="flex items-center space-x-3">
|
|
65
65
|
<Bell className="h-5 w-5 text-primary" />
|
|
@@ -3,14 +3,18 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
4
|
|
|
5
5
|
export const cardVariants = cva(
|
|
6
|
-
"border transition-[box-shadow,border-color] duration-200",
|
|
6
|
+
"box-border border transition-[box-shadow,border-color,background-color] duration-200",
|
|
7
7
|
{
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default:
|
|
11
11
|
"rounded-lg border-border bg-card text-card-foreground",
|
|
12
12
|
subtle:
|
|
13
|
-
"rounded-md border-border/
|
|
13
|
+
"rounded-md border-border/70 bg-field text-card-foreground",
|
|
14
|
+
instrument:
|
|
15
|
+
"rounded-xl border-border bg-card text-card-foreground shadow-(--shadow-inset-hairline)",
|
|
16
|
+
inverted:
|
|
17
|
+
"rounded-xl border-foreground bg-foreground text-background",
|
|
14
18
|
},
|
|
15
19
|
},
|
|
16
20
|
defaultVariants: {
|
|
@@ -40,7 +44,7 @@ export const CardHeader = React.forwardRef<
|
|
|
40
44
|
>(({ className, ...props }, ref) => (
|
|
41
45
|
<div
|
|
42
46
|
ref={ref}
|
|
43
|
-
className={cn("flex flex-col space-y-
|
|
47
|
+
className={cn("flex flex-col space-y-2 px-6 pt-6 pb-5", className)}
|
|
44
48
|
{...props}
|
|
45
49
|
/>
|
|
46
50
|
));
|
|
@@ -53,7 +57,7 @@ export const CardTitle = React.forwardRef<
|
|
|
53
57
|
<h3
|
|
54
58
|
ref={ref}
|
|
55
59
|
className={cn(
|
|
56
|
-
"text-xl font-semibold leading-none tracking-tight text-card-foreground text-balance",
|
|
60
|
+
"m-0 text-xl font-semibold leading-none tracking-tight text-card-foreground text-balance",
|
|
57
61
|
className
|
|
58
62
|
)}
|
|
59
63
|
{...props}
|
|
@@ -67,7 +71,7 @@ export const CardDescription = React.forwardRef<
|
|
|
67
71
|
>(({ className, ...props }, ref) => (
|
|
68
72
|
<p
|
|
69
73
|
ref={ref}
|
|
70
|
-
className={cn("text-sm text-muted-foreground leading-relaxed text-pretty font-normal", className)}
|
|
74
|
+
className={cn("m-0 text-sm text-muted-foreground leading-relaxed text-pretty font-normal", className)}
|
|
71
75
|
{...props}
|
|
72
76
|
/>
|
|
73
77
|
));
|
|
@@ -77,7 +81,7 @@ export const CardContent = React.forwardRef<
|
|
|
77
81
|
HTMLDivElement,
|
|
78
82
|
React.HTMLAttributes<HTMLDivElement>
|
|
79
83
|
>(({ className, ...props }, ref) => (
|
|
80
|
-
<div ref={ref} className={cn("
|
|
84
|
+
<div ref={ref} className={cn("px-6 pb-6 pt-0", className)} {...props} />
|
|
81
85
|
));
|
|
82
86
|
CardContent.displayName = "CardContent";
|
|
83
87
|
|
|
@@ -87,7 +91,7 @@ export const CardFooter = React.forwardRef<
|
|
|
87
91
|
>(({ className, ...props }, ref) => (
|
|
88
92
|
<div
|
|
89
93
|
ref={ref}
|
|
90
|
-
className={cn("flex items-center
|
|
94
|
+
className={cn("flex items-center gap-3 px-6 pb-6 pt-0", className)}
|
|
91
95
|
{...props}
|
|
92
96
|
/>
|
|
93
97
|
));
|
|
@@ -17,7 +17,7 @@ export const ChartContainer = React.forwardRef<
|
|
|
17
17
|
role="img"
|
|
18
18
|
aria-label={title}
|
|
19
19
|
className={cn(
|
|
20
|
-
"w-full p-4 rounded-
|
|
20
|
+
"w-full p-4 rounded-lg border border-border bg-background text-foreground space-y-3 backdrop-blur-md",
|
|
21
21
|
className
|
|
22
22
|
)}
|
|
23
23
|
{...props}
|
|
@@ -170,7 +170,7 @@ export const Combobox = React.forwardRef<HTMLButtonElement, ComboboxProps>(
|
|
|
170
170
|
aria-controls={open ? listboxId : undefined}
|
|
171
171
|
aria-label={selectedOption ? selectedOption.label : placeholder}
|
|
172
172
|
className={cn(
|
|
173
|
-
"flex h-9 w-full items-center justify-between rounded-md border border-input bg-field px-3 py-2 text-sm text-foreground ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring focus:border-ring disabled:cursor-not-allowed disabled:opacity-50",
|
|
173
|
+
"flex h-9 w-full items-center justify-between rounded-md border border-input bg-field px-3 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",
|
|
174
174
|
className
|
|
175
175
|
)}
|
|
176
176
|
>
|
|
@@ -28,7 +28,7 @@ export const ContextMenuContent = React.forwardRef<
|
|
|
28
28
|
<BaseMenu.Popup
|
|
29
29
|
ref={ref}
|
|
30
30
|
className={cn(
|
|
31
|
-
"z-50 min-w-[8rem] overflow-hidden rounded-
|
|
31
|
+
"z-50 min-w-[8rem] overflow-hidden rounded-lg border border-border bg-popover p-1.5 text-popover-foreground shadow-(--shadow-xl) outline-none data-open:animate-overlay-in data-closed:animate-overlay-out",
|
|
32
32
|
className
|
|
33
33
|
)}
|
|
34
34
|
{...props}
|
|
@@ -47,7 +47,7 @@ export const ContextMenuItem = React.forwardRef<
|
|
|
47
47
|
<BaseMenu.Item
|
|
48
48
|
ref={ref}
|
|
49
49
|
className={cn(
|
|
50
|
-
"relative flex cursor-pointer select-none items-center rounded-
|
|
50
|
+
"relative flex cursor-pointer select-none items-center gap-2 rounded-md px-3 py-2 text-xs outline-none transition-colors 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",
|
|
51
51
|
inset && "pl-8",
|
|
52
52
|
className
|
|
53
53
|
)}
|
|
@@ -140,7 +140,7 @@ export function DataTable<TData, TValue>({
|
|
|
140
140
|
</div>
|
|
141
141
|
|
|
142
142
|
{/* Table grid */}
|
|
143
|
-
<div className="rounded-
|
|
143
|
+
<div className="rounded-lg border border-border bg-background overflow-x-auto">
|
|
144
144
|
<table className="w-full text-left text-xs text-foreground border-collapse">
|
|
145
145
|
<thead className="bg-muted/50 border-b border-border text-muted-foreground uppercase tracking-wider">
|
|
146
146
|
{table.getHeaderGroups().map((headerGroup) => (
|
|
@@ -25,22 +25,25 @@ DialogBackdrop.displayName = "DialogBackdrop";
|
|
|
25
25
|
|
|
26
26
|
export const DialogContent = React.forwardRef<
|
|
27
27
|
HTMLDivElement,
|
|
28
|
-
React.ComponentPropsWithoutRef<typeof BaseDialog.Popup>
|
|
29
|
-
|
|
28
|
+
React.ComponentPropsWithoutRef<typeof BaseDialog.Popup> & {
|
|
29
|
+
closeLabel?: string;
|
|
30
|
+
}
|
|
31
|
+
>(({ className, children, closeLabel = "Close", ...props }, ref) => (
|
|
30
32
|
<DialogPortal>
|
|
31
33
|
<DialogBackdrop />
|
|
32
34
|
<BaseDialog.Popup
|
|
33
35
|
ref={ref}
|
|
36
|
+
data-slot="dialog-content"
|
|
34
37
|
className={cn(
|
|
35
|
-
"fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100dvh-2rem)] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-
|
|
38
|
+
"fixed left-[50%] top-[50%] z-50 grid max-h-[calc(100dvh-2rem)] w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-5 overflow-y-auto overscroll-contain rounded-lg border border-border bg-popover text-popover-foreground px-7 py-6 shadow-(--shadow-xl) data-open:animate-overlay-in data-closed:animate-overlay-out",
|
|
36
39
|
className
|
|
37
40
|
)}
|
|
38
41
|
{...props}
|
|
39
42
|
>
|
|
40
43
|
{children}
|
|
41
|
-
<BaseDialog.Close aria-label=
|
|
44
|
+
<BaseDialog.Close aria-label={closeLabel} className="absolute right-3 top-3 inline-flex h-8 w-8 items-center justify-center rounded-md text-muted-foreground opacity-80 ring-offset-background transition-[opacity,transform,color] duration-150 hover:opacity-100 hover:text-foreground active:scale-95 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none">
|
|
42
45
|
<X className="h-4 w-4" />
|
|
43
|
-
<span className="sr-only">
|
|
46
|
+
<span className="sr-only">{closeLabel}</span>
|
|
44
47
|
</BaseDialog.Close>
|
|
45
48
|
</BaseDialog.Popup>
|
|
46
49
|
</DialogPortal>
|
|
@@ -52,7 +55,7 @@ export const DialogHeader = ({
|
|
|
52
55
|
...props
|
|
53
56
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
54
57
|
<div
|
|
55
|
-
className={cn("flex flex-col space-y-
|
|
58
|
+
className={cn("flex flex-col space-y-2 text-center sm:text-left", className)}
|
|
56
59
|
{...props}
|
|
57
60
|
/>
|
|
58
61
|
);
|
|
@@ -63,7 +66,7 @@ export const DialogFooter = ({
|
|
|
63
66
|
...props
|
|
64
67
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
65
68
|
<div
|
|
66
|
-
className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}
|
|
69
|
+
className={cn("flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end sm:gap-3", className)}
|
|
67
70
|
{...props}
|
|
68
71
|
/>
|
|
69
72
|
);
|
|
@@ -13,8 +13,9 @@ export const DrawerBackdrop = React.forwardRef<
|
|
|
13
13
|
>(({ className, ...props }, ref) => (
|
|
14
14
|
<BaseDrawer.Backdrop
|
|
15
15
|
ref={ref}
|
|
16
|
+
data-slot="drawer-backdrop"
|
|
16
17
|
className={cn(
|
|
17
|
-
"fixed inset-0 z-50 bg-
|
|
18
|
+
"fixed inset-0 z-50 bg-void/80 backdrop-blur-md data-open:animate-fade-in data-closed:animate-fade-out",
|
|
18
19
|
className
|
|
19
20
|
)}
|
|
20
21
|
{...props}
|
|
@@ -33,8 +34,9 @@ export const DrawerContent = React.forwardRef<
|
|
|
33
34
|
<BaseDrawer.Viewport>
|
|
34
35
|
<BaseDrawer.Popup
|
|
35
36
|
ref={ref}
|
|
37
|
+
data-slot="drawer-content"
|
|
36
38
|
className={cn(
|
|
37
|
-
"fixed z-50 gap-
|
|
39
|
+
"fixed z-50 gap-5 overflow-y-auto overscroll-contain bg-background px-7 py-6 shadow-(--shadow-xl) transition-[translate] duration-enter ease-out-expo data-closed:duration-exit",
|
|
38
40
|
side === "top" && "inset-x-0 top-0 max-h-[calc(100dvh-2rem)] border-b data-starting-style:-translate-y-full data-ending-style:-translate-y-full",
|
|
39
41
|
side === "bottom" && "inset-x-0 bottom-0 max-h-[calc(100dvh-2rem)] border-t data-starting-style:translate-y-full data-ending-style:translate-y-full",
|
|
40
42
|
side === "left" && "inset-y-0 left-0 h-full w-3/4 border-r data-starting-style:-translate-x-full data-ending-style:-translate-x-full sm:max-w-sm",
|
|
@@ -66,7 +68,7 @@ export const DrawerFooter = ({
|
|
|
66
68
|
...props
|
|
67
69
|
}: React.HTMLAttributes<HTMLDivElement>) => (
|
|
68
70
|
<div
|
|
69
|
-
className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)}
|
|
71
|
+
className={cn("flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end sm:gap-3", className)}
|
|
70
72
|
{...props}
|
|
71
73
|
/>
|
|
72
74
|
);
|
|
@@ -19,7 +19,7 @@ export const DropdownMenuContent = React.forwardRef<
|
|
|
19
19
|
<BaseMenu.Popup
|
|
20
20
|
ref={ref}
|
|
21
21
|
className={cn(
|
|
22
|
-
"z-50 min-w-[10rem] overflow-hidden rounded-lg border border-border bg-popover p-1 text-popover-foreground shadow-(--shadow-xl) outline-none data-open:animate-overlay-in data-closed:animate-overlay-out",
|
|
22
|
+
"z-50 min-w-[10rem] overflow-hidden rounded-lg border border-border bg-popover p-1.5 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}
|
|
@@ -36,7 +36,7 @@ export const DropdownMenuItem = React.forwardRef<
|
|
|
36
36
|
<BaseMenu.Item
|
|
37
37
|
ref={ref}
|
|
38
38
|
className={cn(
|
|
39
|
-
"relative flex cursor-default select-none items-center justify-between rounded-sm px-
|
|
39
|
+
"relative flex cursor-default select-none items-center justify-between gap-2 rounded-sm px-3 py-2 text-sm outline-none transition-colors data-[highlighted]:bg-accent data-[highlighted]:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
40
40
|
className
|
|
41
41
|
)}
|
|
42
42
|
{...props}
|
|
@@ -63,7 +63,7 @@ export const DropdownMenuLabel = React.forwardRef<
|
|
|
63
63
|
<BaseMenu.GroupLabel
|
|
64
64
|
ref={ref}
|
|
65
65
|
className={cn(
|
|
66
|
-
"px-
|
|
66
|
+
"px-3 py-2 text-xs font-medium text-muted-foreground",
|
|
67
67
|
className
|
|
68
68
|
)}
|
|
69
69
|
{...props}
|
|
@@ -42,7 +42,7 @@ const FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(
|
|
|
42
42
|
<label
|
|
43
43
|
data-focused={focused ? "true" : undefined}
|
|
44
44
|
className={cn(
|
|
45
|
-
"relative flex min-h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-
|
|
45
|
+
"relative flex min-h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-lg border border-dashed border-border bg-background p-4 text-center transition-colors hover:border-primary/50 hover:bg-accent/50",
|
|
46
46
|
"data-[focused=true]:border-ring data-[focused=true]:ring-2 data-[focused=true]:ring-ring",
|
|
47
47
|
disabled && "cursor-not-allowed opacity-50 hover:border-border hover:bg-background",
|
|
48
48
|
error && "border-destructive hover:border-destructive",
|
|
@@ -74,7 +74,7 @@ export const HoverCardContent = React.forwardRef<
|
|
|
74
74
|
<BasePopover.Popup
|
|
75
75
|
ref={ref}
|
|
76
76
|
className={cn(
|
|
77
|
-
"z-50 w-72 rounded-
|
|
77
|
+
"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",
|
|
78
78
|
className
|
|
79
79
|
)}
|
|
80
80
|
{...props}
|
|
@@ -3,13 +3,13 @@ import { cva, type VariantProps } from "class-variance-authority";
|
|
|
3
3
|
import { cn } from "../../lib/utils";
|
|
4
4
|
|
|
5
5
|
export const inputVariants = cva(
|
|
6
|
-
"flex w-full rounded-md border border-input bg-field text-foreground px-3 py-1 text-sm transition-[border-color,box-shadow,background-color] duration-150 ease-out file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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",
|
|
6
|
+
"box-border flex w-full rounded-md border border-input bg-field text-foreground px-3 py-1 text-sm transition-[border-color,box-shadow,background-color] duration-150 ease-out file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground 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
|
inputSize: {
|
|
10
|
-
sm: "h-8 px-
|
|
11
|
-
md: "h-9 px-3 text-sm rounded-md",
|
|
12
|
-
lg: "h-10 px-4 text-base rounded-md",
|
|
10
|
+
sm: "h-8 px-3 py-1.5 text-xs rounded-md",
|
|
11
|
+
md: "h-9 px-3.5 py-2 text-sm rounded-md",
|
|
12
|
+
lg: "h-10 px-4 py-2 text-base rounded-md",
|
|
13
13
|
},
|
|
14
14
|
},
|
|
15
15
|
defaultVariants: {
|
|
@@ -26,6 +26,7 @@ export const Input = React.forwardRef<HTMLInputElement, InputProps>(
|
|
|
26
26
|
({ className, type = "text", inputSize, ...props }, ref) => {
|
|
27
27
|
return (
|
|
28
28
|
<input
|
|
29
|
+
data-slot="input"
|
|
29
30
|
type={type}
|
|
30
31
|
className={cn(inputVariants({ inputSize, className }))}
|
|
31
32
|
ref={ref}
|
|
@@ -41,7 +41,7 @@ export const InputOTPSlot = React.forwardRef<
|
|
|
41
41
|
<div
|
|
42
42
|
ref={ref}
|
|
43
43
|
className={cn(
|
|
44
|
-
"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-
|
|
44
|
+
"relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm font-medium transition-[border-color,box-shadow,background-color] duration-150 first:rounded-l-md first:border-l last:rounded-r-md bg-background text-foreground",
|
|
45
45
|
isActive && "z-10 ring-2 ring-ring ring-offset-background",
|
|
46
46
|
className
|
|
47
47
|
)}
|