@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
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
import { dirname, resolve } from "node:path";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
4
|
-
|
|
5
|
-
import { beforeEach, describe, expect, it, vi } from "vitest";
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* This is a wiring unit, not a runtime reproduction of the reported Storybook
|
|
9
|
-
* crash. It verifies that the preview decorator registers its theme effect
|
|
10
|
-
* through the public Storybook preview API instead of React's dispatcher.
|
|
11
|
-
*/
|
|
12
|
-
const { useEffectMock } = vi.hoisted(() => ({ useEffectMock: vi.fn() }));
|
|
13
|
-
|
|
14
|
-
function testModuleFilePath(): string {
|
|
15
|
-
const url = import.meta.url;
|
|
16
|
-
if (url.startsWith("file:")) {
|
|
17
|
-
return fileURLToPath(url);
|
|
18
|
-
}
|
|
19
|
-
const fsPath = url.replace(/^https?:\/\/[^/]+\/@fs/, "");
|
|
20
|
-
if (fsPath !== url) {
|
|
21
|
-
return decodeURIComponent(fsPath.replace(/[?#].*$/, ""));
|
|
22
|
-
}
|
|
23
|
-
throw new Error(`Unsupported test module URL: ${url}`);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const requireFromStorybook = createRequire(
|
|
27
|
-
resolve(
|
|
28
|
-
dirname(testModuleFilePath()),
|
|
29
|
-
"../../../../apps/storybook/package.json"
|
|
30
|
-
)
|
|
31
|
-
);
|
|
32
|
-
const previewApiEntry = requireFromStorybook.resolve("storybook/preview-api");
|
|
33
|
-
|
|
34
|
-
type Preview = {
|
|
35
|
-
initialGlobals?: { theme?: string };
|
|
36
|
-
decorators?: unknown;
|
|
37
|
-
globalTypes?: Record<string, unknown>;
|
|
38
|
-
parameters?: Record<string, unknown>;
|
|
39
|
-
};
|
|
40
|
-
type StoryFn = () => null;
|
|
41
|
-
type DecoratorContext = { globals: { theme?: string } };
|
|
42
|
-
type DecoratorResult = {
|
|
43
|
-
props: {
|
|
44
|
-
className: string;
|
|
45
|
-
style: { padding: string; minHeight: string };
|
|
46
|
-
children: { type: unknown };
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
// @ts-expect-error Vite provides import.meta.glob during the test transform.
|
|
51
|
-
const previewModules = import.meta.glob(
|
|
52
|
-
"../../../../apps/storybook/.storybook/preview.ts"
|
|
53
|
-
);
|
|
54
|
-
const previewLoader = (
|
|
55
|
-
previewModules as Record<string, () => Promise<unknown>>
|
|
56
|
-
)["../../../../apps/storybook/.storybook/preview.ts"];
|
|
57
|
-
|
|
58
|
-
async function loadPreview(): Promise<Preview> {
|
|
59
|
-
if (!previewLoader) {
|
|
60
|
-
throw new Error("Preview module was not found by the test loader");
|
|
61
|
-
}
|
|
62
|
-
vi.resetModules();
|
|
63
|
-
vi.doMock(previewApiEntry, () => ({ useEffect: useEffectMock }));
|
|
64
|
-
const module = (await previewLoader()) as { default: Preview };
|
|
65
|
-
return module.default;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
function getThemeDecorator(
|
|
69
|
-
preview: Preview
|
|
70
|
-
): (story: StoryFn, context: DecoratorContext) => DecoratorResult {
|
|
71
|
-
const decorators = preview.decorators;
|
|
72
|
-
if (!Array.isArray(decorators) || decorators.length !== 1) {
|
|
73
|
-
throw new Error("Expected exactly one preview decorator");
|
|
74
|
-
}
|
|
75
|
-
return decorators[0] as (
|
|
76
|
-
story: StoryFn,
|
|
77
|
-
context: DecoratorContext
|
|
78
|
-
) => DecoratorResult;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
describe("Storybook preview theme decorator (wiring unit)", () => {
|
|
82
|
-
beforeEach(() => {
|
|
83
|
-
useEffectMock.mockReset();
|
|
84
|
-
document.documentElement.removeAttribute("data-theme");
|
|
85
|
-
document.documentElement.classList.remove("dark");
|
|
86
|
-
document.body.classList.remove("dark");
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
it("uses the installed public preview-api effect and keeps annotations", async () => {
|
|
90
|
-
const installed = requireFromStorybook("storybook/preview-api") as {
|
|
91
|
-
useEffect?: unknown;
|
|
92
|
-
};
|
|
93
|
-
expect(typeof installed.useEffect).toBe("function");
|
|
94
|
-
|
|
95
|
-
const preview = await loadPreview();
|
|
96
|
-
expect(preview.initialGlobals).toMatchObject({ theme: "dark" });
|
|
97
|
-
expect(preview.decorators).toHaveLength(1);
|
|
98
|
-
expect(preview.globalTypes?.theme).toMatchObject({
|
|
99
|
-
description: "Global theme for components",
|
|
100
|
-
});
|
|
101
|
-
expect(preview.parameters).toMatchObject({
|
|
102
|
-
layout: "centered",
|
|
103
|
-
backgrounds: { disabled: true },
|
|
104
|
-
a11y: {
|
|
105
|
-
manual: true,
|
|
106
|
-
context: "#storybook-root",
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
it("registers and applies the default dark effect", async () => {
|
|
112
|
-
const preview = await loadPreview();
|
|
113
|
-
const decorator = getThemeDecorator(preview);
|
|
114
|
-
const Story = () => null;
|
|
115
|
-
const element = decorator(Story, { globals: {} });
|
|
116
|
-
|
|
117
|
-
expect(useEffectMock).toHaveBeenCalledTimes(1);
|
|
118
|
-
const [effect, dependencies] = useEffectMock.mock.calls[0] as [
|
|
119
|
-
() => void,
|
|
120
|
-
string[],
|
|
121
|
-
];
|
|
122
|
-
expect(dependencies).toEqual(["dark"]);
|
|
123
|
-
|
|
124
|
-
effect();
|
|
125
|
-
expect(document.documentElement.dataset.theme).toBe("dark");
|
|
126
|
-
expect(document.documentElement.classList.contains("dark")).toBe(true);
|
|
127
|
-
expect(document.body.classList.contains("dark")).toBe(true);
|
|
128
|
-
expect(element.props.className).toBe(
|
|
129
|
-
"dark bg-background text-foreground"
|
|
130
|
-
);
|
|
131
|
-
expect(element.props.style).toEqual({
|
|
132
|
-
padding: "2rem",
|
|
133
|
-
minHeight: "100%",
|
|
134
|
-
});
|
|
135
|
-
expect(element.props.children.type).toBe(Story);
|
|
136
|
-
});
|
|
137
|
-
|
|
138
|
-
it("registers and applies the light effect", async () => {
|
|
139
|
-
document.documentElement.dataset.theme = "dark";
|
|
140
|
-
document.documentElement.classList.add("dark");
|
|
141
|
-
document.body.classList.add("dark");
|
|
142
|
-
|
|
143
|
-
const preview = await loadPreview();
|
|
144
|
-
const decorator = getThemeDecorator(preview);
|
|
145
|
-
const Story = () => null;
|
|
146
|
-
const element = decorator(Story, { globals: { theme: "light" } });
|
|
147
|
-
|
|
148
|
-
expect(useEffectMock).toHaveBeenCalledTimes(1);
|
|
149
|
-
const [effect, dependencies] = useEffectMock.mock.calls[0] as [
|
|
150
|
-
() => void,
|
|
151
|
-
string[],
|
|
152
|
-
];
|
|
153
|
-
expect(dependencies).toEqual(["light"]);
|
|
154
|
-
|
|
155
|
-
effect();
|
|
156
|
-
expect(document.documentElement.dataset.theme).toBe("light");
|
|
157
|
-
expect(document.documentElement.classList.contains("dark")).toBe(false);
|
|
158
|
-
expect(document.body.classList.contains("dark")).toBe(false);
|
|
159
|
-
expect(element.props.className).toBe(
|
|
160
|
-
" bg-background text-foreground"
|
|
161
|
-
);
|
|
162
|
-
expect(element.props.children.type).toBe(Story);
|
|
163
|
-
});
|
|
164
|
-
});
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import fs from "node:fs";
|
|
3
|
-
import path from "node:path";
|
|
4
|
-
import { render, screen } from "@testing-library/react";
|
|
5
|
-
import userEvent from "@testing-library/user-event";
|
|
6
|
-
import { describe, expect, it } from "vitest";
|
|
7
|
-
import { PaginationDemo } from "../../../../apps/docs/src/components/demos/PaginationDemo";
|
|
8
|
-
import { StepperDemo } from "../../../../apps/docs/src/components/demos/StepperDemo";
|
|
9
|
-
import { KbdDemo } from "../../../../apps/docs/src/components/demos/KbdDemo";
|
|
10
|
-
|
|
11
|
-
const docsRoot = path.resolve(process.cwd(), "../../apps/docs");
|
|
12
|
-
const popoverDocsPath = path.join(
|
|
13
|
-
docsRoot,
|
|
14
|
-
"src/content/docs/components/popover.mdx"
|
|
15
|
-
);
|
|
16
|
-
const astroConfigPath = path.join(docsRoot, "astro.config.mjs");
|
|
17
|
-
|
|
18
|
-
describe("Documentation component usability", () => {
|
|
19
|
-
it("shows aria-current on pages four through six and truthful page text", async () => {
|
|
20
|
-
const user = userEvent.setup();
|
|
21
|
-
render(<PaginationDemo />);
|
|
22
|
-
|
|
23
|
-
const next = screen.getByLabelText(/go to next page/i);
|
|
24
|
-
for (const pageNumber of [2, 3, 4, 5, 6]) {
|
|
25
|
-
await user.click(next);
|
|
26
|
-
expect(
|
|
27
|
-
await screen.findByText(`Page ${pageNumber} of 7`)
|
|
28
|
-
).toBeInTheDocument();
|
|
29
|
-
|
|
30
|
-
const activeLinks = screen
|
|
31
|
-
.getAllByRole("link")
|
|
32
|
-
.filter(link => link.getAttribute("aria-current") === "page");
|
|
33
|
-
|
|
34
|
-
if (pageNumber >= 4) {
|
|
35
|
-
expect(activeLinks).toHaveLength(1);
|
|
36
|
-
expect(activeLinks[0]).toHaveTextContent(String(pageNumber));
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
it("keeps stepper current-step, Next and Back behavior intact", async () => {
|
|
42
|
-
const user = userEvent.setup();
|
|
43
|
-
const { container } = render(<StepperDemo />);
|
|
44
|
-
|
|
45
|
-
expect(container.querySelector('[aria-current="step"]')).toHaveTextContent(
|
|
46
|
-
"Scope"
|
|
47
|
-
);
|
|
48
|
-
const next = screen.getByRole("button", { name: "Next" });
|
|
49
|
-
const back = screen.getByRole("button", { name: "Back" });
|
|
50
|
-
expect(back).toBeDisabled();
|
|
51
|
-
|
|
52
|
-
await user.click(next);
|
|
53
|
-
expect(container.querySelector('[aria-current="step"]')).toHaveTextContent(
|
|
54
|
-
"Evaluate"
|
|
55
|
-
);
|
|
56
|
-
expect(back).toBeEnabled();
|
|
57
|
-
|
|
58
|
-
await user.click(back);
|
|
59
|
-
expect(container.querySelector('[aria-current="step"]')).toHaveTextContent(
|
|
60
|
-
"Scope"
|
|
61
|
-
);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
it("uses readable native kbd chips without fake interaction roles", () => {
|
|
65
|
-
const { container } = render(<KbdDemo />);
|
|
66
|
-
const chips = [...container.querySelectorAll("kbd")];
|
|
67
|
-
|
|
68
|
-
expect(chips).toHaveLength(9);
|
|
69
|
-
for (const chip of chips) {
|
|
70
|
-
expect(chip.tagName).toBe("KBD");
|
|
71
|
-
expect(chip).not.toHaveAttribute("role");
|
|
72
|
-
expect(chip.className).toContain("h-6");
|
|
73
|
-
expect(chip.className).toContain("text-xs");
|
|
74
|
-
}
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
it("shows a complete public Popover usage example", () => {
|
|
78
|
-
const docs = fs.readFileSync(popoverDocsPath, "utf8");
|
|
79
|
-
const usage = docs.slice(
|
|
80
|
-
docs.indexOf("## Usage"),
|
|
81
|
-
docs.indexOf("## Props")
|
|
82
|
-
);
|
|
83
|
-
|
|
84
|
-
expect(usage).toContain("PopoverTrigger");
|
|
85
|
-
expect(usage).toContain("PopoverContent");
|
|
86
|
-
expect(usage).not.toContain("return <Popover />");
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
it("does not paint the code-frame active marker as a primary action", () => {
|
|
90
|
-
const config = fs.readFileSync(astroConfigPath, "utf8");
|
|
91
|
-
expect(config).toContain(
|
|
92
|
-
'editorActiveTabIndicatorTopColor: "var(--color-border)"'
|
|
93
|
-
);
|
|
94
|
-
expect(config).not.toContain(
|
|
95
|
-
'editorActiveTabIndicatorTopColor: "var(--color-primary)"'
|
|
96
|
-
);
|
|
97
|
-
});
|
|
98
|
-
});
|