@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
|
@@ -10,13 +10,15 @@ const DrawerPortal = Drawer$1.Portal;
|
|
|
10
10
|
const DrawerClose = Drawer$1.Close;
|
|
11
11
|
const DrawerBackdrop = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Drawer$1.Backdrop, {
|
|
12
12
|
ref,
|
|
13
|
-
|
|
13
|
+
"data-slot": "drawer-backdrop",
|
|
14
|
+
className: cn("fixed inset-0 z-50 bg-void/80 backdrop-blur-md data-open:animate-fade-in data-closed:animate-fade-out", className),
|
|
14
15
|
...props
|
|
15
16
|
}));
|
|
16
17
|
DrawerBackdrop.displayName = "DrawerBackdrop";
|
|
17
18
|
const DrawerContent = React.forwardRef(({ className, children, side = "right", ...props }, ref) => /* @__PURE__ */ jsxs(DrawerPortal, { children: [/* @__PURE__ */ jsx(DrawerBackdrop, {}), /* @__PURE__ */ jsx(Drawer$1.Viewport, { children: /* @__PURE__ */ jsx(Drawer$1.Popup, {
|
|
18
19
|
ref,
|
|
19
|
-
|
|
20
|
+
"data-slot": "drawer-content",
|
|
21
|
+
className: cn("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", 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", 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", 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", side === "right" && "inset-y-0 right-0 h-full w-3/4 border-l data-starting-style:translate-x-full data-ending-style:translate-x-full sm:max-w-sm", className),
|
|
20
22
|
...props,
|
|
21
23
|
children
|
|
22
24
|
}) })] }));
|
|
@@ -27,7 +29,7 @@ const DrawerHeader = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
|
27
29
|
});
|
|
28
30
|
DrawerHeader.displayName = "DrawerHeader";
|
|
29
31
|
const DrawerFooter = ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
30
|
-
className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className),
|
|
32
|
+
className: cn("flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end sm:gap-3", className),
|
|
31
33
|
...props
|
|
32
34
|
});
|
|
33
35
|
DrawerFooter.displayName = "DrawerFooter";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["BaseDrawer"],"sources":["../../../src/components/drawer/drawer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Drawer as BaseDrawer } from \"@base-ui/react/drawer\";\nimport { cn } from \"../../lib/utils\";\n\nexport const Drawer = BaseDrawer.Root;\nexport const DrawerTrigger = BaseDrawer.Trigger;\nexport const DrawerPortal = BaseDrawer.Portal;\nexport const DrawerClose = BaseDrawer.Close;\n\nexport const DrawerBackdrop = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseDrawer.Backdrop>\n>(({ className, ...props }, ref) => (\n <BaseDrawer.Backdrop\n ref={ref}\n className={cn(\n \"fixed inset-0 z-50 bg-
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["BaseDrawer"],"sources":["../../../src/components/drawer/drawer.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Drawer as BaseDrawer } from \"@base-ui/react/drawer\";\nimport { cn } from \"../../lib/utils\";\n\nexport const Drawer = BaseDrawer.Root;\nexport const DrawerTrigger = BaseDrawer.Trigger;\nexport const DrawerPortal = BaseDrawer.Portal;\nexport const DrawerClose = BaseDrawer.Close;\n\nexport const DrawerBackdrop = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseDrawer.Backdrop>\n>(({ className, ...props }, ref) => (\n <BaseDrawer.Backdrop\n ref={ref}\n data-slot=\"drawer-backdrop\"\n className={cn(\n \"fixed inset-0 z-50 bg-void/80 backdrop-blur-md data-open:animate-fade-in data-closed:animate-fade-out\",\n className\n )}\n {...props}\n />\n));\nDrawerBackdrop.displayName = \"DrawerBackdrop\";\n\nexport const DrawerContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseDrawer.Popup> & {\n side?: \"top\" | \"bottom\" | \"left\" | \"right\";\n }\n>(({ className, children, side = \"right\", ...props }, ref) => (\n <DrawerPortal>\n <DrawerBackdrop />\n <BaseDrawer.Viewport>\n <BaseDrawer.Popup\n ref={ref}\n data-slot=\"drawer-content\"\n className={cn(\n \"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\",\n 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\",\n 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\",\n 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\",\n side === \"right\" && \"inset-y-0 right-0 h-full w-3/4 border-l data-starting-style:translate-x-full data-ending-style:translate-x-full sm:max-w-sm\",\n className\n )}\n {...props}\n >\n {children}\n </BaseDrawer.Popup>\n </BaseDrawer.Viewport>\n </DrawerPortal>\n));\nDrawerContent.displayName = \"DrawerContent\";\n\nexport const DrawerHeader = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col space-y-2 text-center sm:text-left\", className)}\n {...props}\n />\n);\nDrawerHeader.displayName = \"DrawerHeader\";\n\nexport const DrawerFooter = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLDivElement>) => (\n <div\n className={cn(\"flex flex-col-reverse gap-2 pt-2 sm:flex-row sm:justify-end sm:gap-3\", className)}\n {...props}\n />\n);\nDrawerFooter.displayName = \"DrawerFooter\";\n\nexport const DrawerTitle = React.forwardRef<\n HTMLHeadingElement,\n React.ComponentPropsWithoutRef<typeof BaseDrawer.Title>\n>(({ className, ...props }, ref) => (\n <BaseDrawer.Title\n ref={ref}\n className={cn(\"text-lg font-semibold text-foreground\", className)}\n {...props}\n />\n));\nDrawerTitle.displayName = \"DrawerTitle\";\n\nexport const DrawerDescription = React.forwardRef<\n HTMLParagraphElement,\n React.ComponentPropsWithoutRef<typeof BaseDrawer.Description>\n>(({ className, ...props }, ref) => (\n <BaseDrawer.Description\n ref={ref}\n className={cn(\"text-sm text-muted-foreground\", className)}\n {...props}\n />\n));\nDrawerDescription.displayName = \"DrawerDescription\";\n"],"mappings":";;;;;AAIA,MAAa,SAASA,SAAW;AACjC,MAAa,gBAAgBA,SAAW;AACxC,MAAa,eAAeA,SAAW;AACvC,MAAa,cAAcA,SAAW;AAEtC,MAAa,iBAAiB,MAAM,YAGjC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,SAAW,UAAZ;CACO;CACL,aAAU;CACV,WAAW,GACT,yGACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;AAE7B,MAAa,gBAAgB,MAAM,YAKhC,EAAE,WAAW,UAAU,OAAO,SAAS,GAAG,SAAS,QACpD,qBAAC,cAAD,EAAA,UAAA,CACE,oBAAC,gBAAD,CAAiB,CAAA,GACjB,oBAACA,SAAW,UAAZ,EAAA,UACE,oBAACA,SAAW,OAAZ;CACO;CACL,aAAU;CACV,WAAW,GACT,kLACA,SAAS,SAAS,gIAClB,SAAS,YAAY,iIACrB,SAAS,UAAU,gIACnB,SAAS,WAAW,+HACpB,SACF;CACA,GAAI;CAEH;AACe,CAAA,EACC,CAAA,CACT,EAAA,CAAA,CACf;AACD,cAAc,cAAc;AAE5B,MAAa,gBAAgB,EAC3B,WACA,GAAG,YAEH,oBAAC,OAAD;CACE,WAAW,GAAG,oDAAoD,SAAS;CAC3E,GAAI;AACL,CAAA;AAEH,aAAa,cAAc;AAE3B,MAAa,gBAAgB,EAC3B,WACA,GAAG,YAEH,oBAAC,OAAD;CACE,WAAW,GAAG,wEAAwE,SAAS;CAC/F,GAAI;AACL,CAAA;AAEH,aAAa,cAAc;AAE3B,MAAa,cAAc,MAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,SAAW,OAAZ;CACO;CACL,WAAW,GAAG,yCAAyC,SAAS;CAChE,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc;AAE1B,MAAa,oBAAoB,MAAM,YAGpC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,SAAW,aAAZ;CACO;CACL,WAAW,GAAG,iCAAiC,SAAS;CACxD,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc"}
|
|
@@ -16,14 +16,14 @@ const DropdownMenuContent = react.forwardRef(({ className, align = "start", side
|
|
|
16
16
|
sideOffset,
|
|
17
17
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Popup, {
|
|
18
18
|
ref,
|
|
19
|
-
className: require_utils.cn("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", className),
|
|
19
|
+
className: require_utils.cn("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", className),
|
|
20
20
|
...props
|
|
21
21
|
})
|
|
22
22
|
}) }));
|
|
23
23
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
24
24
|
const DropdownMenuItem = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.Item, {
|
|
25
25
|
ref,
|
|
26
|
-
className: require_utils.cn("relative flex cursor-default select-none items-center justify-between rounded-sm px-
|
|
26
|
+
className: require_utils.cn("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", className),
|
|
27
27
|
...props
|
|
28
28
|
}));
|
|
29
29
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
@@ -35,7 +35,7 @@ const DropdownMenuSeparator = react.forwardRef(({ className, ...props }, ref) =>
|
|
|
35
35
|
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
36
36
|
const DropdownMenuLabel = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_menu.Menu.GroupLabel, {
|
|
37
37
|
ref,
|
|
38
|
-
className: require_utils.cn("px-
|
|
38
|
+
className: require_utils.cn("px-3 py-2 text-xs font-medium text-muted-foreground", className),
|
|
39
39
|
...props
|
|
40
40
|
}));
|
|
41
41
|
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
@@ -13,14 +13,14 @@ const DropdownMenuContent = React.forwardRef(({ className, align = "start", side
|
|
|
13
13
|
sideOffset,
|
|
14
14
|
children: /* @__PURE__ */ jsx(Menu.Popup, {
|
|
15
15
|
ref,
|
|
16
|
-
className: cn("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", className),
|
|
16
|
+
className: cn("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", className),
|
|
17
17
|
...props
|
|
18
18
|
})
|
|
19
19
|
}) }));
|
|
20
20
|
DropdownMenuContent.displayName = "DropdownMenuContent";
|
|
21
21
|
const DropdownMenuItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Menu.Item, {
|
|
22
22
|
ref,
|
|
23
|
-
className: cn("relative flex cursor-default select-none items-center justify-between rounded-sm px-
|
|
23
|
+
className: cn("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", className),
|
|
24
24
|
...props
|
|
25
25
|
}));
|
|
26
26
|
DropdownMenuItem.displayName = "DropdownMenuItem";
|
|
@@ -32,7 +32,7 @@ const DropdownMenuSeparator = React.forwardRef(({ className, ...props }, ref) =>
|
|
|
32
32
|
DropdownMenuSeparator.displayName = "DropdownMenuSeparator";
|
|
33
33
|
const DropdownMenuLabel = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(Menu.GroupLabel, {
|
|
34
34
|
ref,
|
|
35
|
-
className: cn("px-
|
|
35
|
+
className: cn("px-3 py-2 text-xs font-medium text-muted-foreground", className),
|
|
36
36
|
...props
|
|
37
37
|
}));
|
|
38
38
|
DropdownMenuLabel.displayName = "DropdownMenuLabel";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["BaseMenu"],"sources":["../../../src/components/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Menu as BaseMenu } from \"@base-ui/react/menu\";\nimport { cn } from \"../../lib/utils\";\n\nexport const DropdownMenu = BaseMenu.Root;\nexport const DropdownMenuTrigger = BaseMenu.Trigger;\nexport const DropdownMenuPortal = BaseMenu.Portal;\nexport const DropdownMenuGroup = BaseMenu.Group;\n\nexport const DropdownMenuContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseMenu.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"start\", sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPortal>\n <BaseMenu.Positioner align={align} sideOffset={sideOffset}>\n <BaseMenu.Popup\n ref={ref}\n className={cn(\n \"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\",\n className\n )}\n {...props}\n />\n </BaseMenu.Positioner>\n </DropdownMenuPortal>\n));\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport const DropdownMenuItem = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseMenu.Item>\n>(({ className, ...props }, ref) => (\n <BaseMenu.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default select-none items-center justify-between rounded-sm px-
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["BaseMenu"],"sources":["../../../src/components/dropdown-menu/dropdown-menu.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Menu as BaseMenu } from \"@base-ui/react/menu\";\nimport { cn } from \"../../lib/utils\";\n\nexport const DropdownMenu = BaseMenu.Root;\nexport const DropdownMenuTrigger = BaseMenu.Trigger;\nexport const DropdownMenuPortal = BaseMenu.Portal;\nexport const DropdownMenuGroup = BaseMenu.Group;\n\nexport const DropdownMenuContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseMenu.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"start\", sideOffset = 4, ...props }, ref) => (\n <DropdownMenuPortal>\n <BaseMenu.Positioner align={align} sideOffset={sideOffset}>\n <BaseMenu.Popup\n ref={ref}\n className={cn(\n \"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\",\n className\n )}\n {...props}\n />\n </BaseMenu.Positioner>\n </DropdownMenuPortal>\n));\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nexport const DropdownMenuItem = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseMenu.Item>\n>(({ className, ...props }, ref) => (\n <BaseMenu.Item\n ref={ref}\n className={cn(\n \"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\",\n className\n )}\n {...props}\n />\n));\nDropdownMenuItem.displayName = \"DropdownMenuItem\";\n\nexport const DropdownMenuSeparator = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseMenu.Separator>\n>(({ className, ...props }, ref) => (\n <BaseMenu.Separator\n ref={ref}\n className={cn(\"-mx-1 my-1 h-px bg-border\", className)}\n {...props}\n />\n));\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\";\n\nexport const DropdownMenuLabel = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BaseMenu.GroupLabel>\n>(({ className, ...props }, ref) => (\n <BaseMenu.GroupLabel\n ref={ref}\n className={cn(\n \"px-3 py-2 text-xs font-medium text-muted-foreground\",\n className\n )}\n {...props}\n />\n));\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\";\n\nexport const DropdownMenuShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n \"ml-auto text-xs tracking-widest text-muted-foreground font-mono\",\n className\n )}\n {...props}\n />\n );\n};\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n"],"mappings":";;;;;AAIA,MAAa,eAAeA,KAAS;AACrC,MAAa,sBAAsBA,KAAS;AAC5C,MAAa,qBAAqBA,KAAS;AAC3C,MAAa,oBAAoBA,KAAS;AAE1C,MAAa,sBAAsB,MAAM,YAMtC,EAAE,WAAW,QAAQ,SAAS,aAAa,GAAG,GAAG,SAAS,QAC3D,oBAAC,oBAAD,EAAA,UACE,oBAACA,KAAS,YAAV;CAA4B;CAAmB;CAC7C,UAAA,oBAACA,KAAS,OAAV;EACO;EACL,WAAW,GACT,8MACA,SACF;EACA,GAAI;CACL,CAAA;AACkB,CAAA,EACH,CAAA,CACrB;AACD,oBAAoB,cAAc;AAElC,MAAa,mBAAmB,MAAM,YAGnC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,KAAS,MAAV;CACO;CACL,WAAW,GACT,iRACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc;AAE/B,MAAa,wBAAwB,MAAM,YAGxC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,KAAS,WAAV;CACO;CACL,WAAW,GAAG,6BAA6B,SAAS;CACpD,GAAI;AACL,CAAA,CACF;AACD,sBAAsB,cAAc;AAEpC,MAAa,oBAAoB,MAAM,YAGpC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAACA,KAAS,YAAV;CACO;CACL,WAAW,GACT,uDACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc;AAEhC,MAAa,wBAAwB,EACnC,WACA,GAAG,YACwC;CAC3C,OACE,oBAAC,QAAD;EACE,WAAW,GACT,mEACA,SACF;EACA,GAAI;CACL,CAAA;AAEL;AACA,qBAAqB,cAAc"}
|
|
@@ -20,7 +20,7 @@ const FileInput = react.forwardRef(({ className, label, helperText, error, disab
|
|
|
20
20
|
className: "flex w-full flex-col gap-1.5",
|
|
21
21
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("label", {
|
|
22
22
|
"data-focused": focused ? "true" : void 0,
|
|
23
|
-
className: require_utils.cn("relative flex min-h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-
|
|
23
|
+
className: require_utils.cn("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", "data-[focused=true]:border-ring data-[focused=true]:ring-2 data-[focused=true]:ring-ring", disabled && "cursor-not-allowed opacity-50 hover:border-border hover:bg-background", error && "border-destructive hover:border-destructive", className),
|
|
24
24
|
children: [
|
|
25
25
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Upload, { className: "mb-2 h-6 w-6 text-muted-foreground" }),
|
|
26
26
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -17,7 +17,7 @@ const FileInput = React.forwardRef(({ className, label, helperText, error, disab
|
|
|
17
17
|
className: "flex w-full flex-col gap-1.5",
|
|
18
18
|
children: /* @__PURE__ */ jsxs("label", {
|
|
19
19
|
"data-focused": focused ? "true" : void 0,
|
|
20
|
-
className: cn("relative flex min-h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-
|
|
20
|
+
className: cn("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", "data-[focused=true]:border-ring data-[focused=true]:ring-2 data-[focused=true]:ring-ring", disabled && "cursor-not-allowed opacity-50 hover:border-border hover:bg-background", error && "border-destructive hover:border-destructive", className),
|
|
21
21
|
children: [
|
|
22
22
|
/* @__PURE__ */ jsx(Upload, { className: "mb-2 h-6 w-6 text-muted-foreground" }),
|
|
23
23
|
/* @__PURE__ */ jsx("span", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/file-input/file-input.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Upload, FileText, X } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\n\nexport interface FileInputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {\n label?: string;\n helperText?: string;\n error?: string;\n}\n\nconst FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(\n (\n {\n className,\n label,\n helperText,\n error,\n disabled,\n onChange,\n onFocus,\n onBlur,\n ...props\n },\n ref\n ) => {\n const [fileNames, setFileNames] = React.useState<string[]>([]);\n const [focused, setFocused] = React.useState(false);\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const files = e.target.files;\n if (files && files.length > 0) {\n setFileNames(Array.from(files).map((f) => f.name));\n } else {\n setFileNames([]);\n }\n onChange?.(e);\n };\n\n return (\n <div className=\"flex w-full flex-col gap-1.5\">\n <label\n data-focused={focused ? \"true\" : undefined}\n className={cn(\n \"relative flex min-h-[120px] w-full cursor-pointer flex-col items-center justify-center rounded-
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/file-input/file-input.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Upload, FileText, X } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\n\nexport interface FileInputProps\n extends React.InputHTMLAttributes<HTMLInputElement> {\n label?: string;\n helperText?: string;\n error?: string;\n}\n\nconst FileInput = React.forwardRef<HTMLInputElement, FileInputProps>(\n (\n {\n className,\n label,\n helperText,\n error,\n disabled,\n onChange,\n onFocus,\n onBlur,\n ...props\n },\n ref\n ) => {\n const [fileNames, setFileNames] = React.useState<string[]>([]);\n const [focused, setFocused] = React.useState(false);\n\n const handleChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n const files = e.target.files;\n if (files && files.length > 0) {\n setFileNames(Array.from(files).map((f) => f.name));\n } else {\n setFileNames([]);\n }\n onChange?.(e);\n };\n\n return (\n <div className=\"flex w-full flex-col gap-1.5\">\n <label\n data-focused={focused ? \"true\" : undefined}\n className={cn(\n \"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\",\n \"data-[focused=true]:border-ring data-[focused=true]:ring-2 data-[focused=true]:ring-ring\",\n disabled && \"cursor-not-allowed opacity-50 hover:border-border hover:bg-background\",\n error && \"border-destructive hover:border-destructive\",\n className\n )}\n >\n <Upload className=\"mb-2 h-6 w-6 text-muted-foreground\" />\n <span className=\"text-sm font-medium text-foreground\">\n {fileNames.length > 0\n ? fileNames.join(\", \")\n : label || \"Click to browse files\"}\n </span>\n {helperText && !error && (\n <span className=\"mt-1 text-xs text-muted-foreground\">\n {helperText}\n </span>\n )}\n {error && (\n <span className=\"mt-1 text-xs text-destructive font-medium\">\n {error}\n </span>\n )}\n <input\n type=\"file\"\n ref={ref}\n disabled={disabled}\n className=\"sr-only\"\n onChange={handleChange}\n onFocus={(e) => {\n setFocused(true);\n onFocus?.(e);\n }}\n onBlur={(e) => {\n setFocused(false);\n onBlur?.(e);\n }}\n {...props}\n />\n </label>\n </div>\n );\n }\n);\nFileInput.displayName = \"FileInput\";\n\nexport { FileInput };\n"],"mappings":";;;;;AAWA,MAAM,YAAY,MAAM,YAEpB,EACE,WACA,OACA,YACA,OACA,UACA,UACA,SACA,QACA,GAAG,SAEL,QACG;CACH,MAAM,CAAC,WAAW,gBAAgB,MAAM,SAAmB,CAAC,CAAC;CAC7D,MAAM,CAAC,SAAS,cAAc,MAAM,SAAS,KAAK;CAElD,MAAM,gBAAgB,MAA2C;EAC/D,MAAM,QAAQ,EAAE,OAAO;EACvB,IAAI,SAAS,MAAM,SAAS,GAC1B,aAAa,MAAM,KAAK,KAAK,CAAC,CAAC,KAAK,MAAM,EAAE,IAAI,CAAC;OAEjD,aAAa,CAAC,CAAC;EAEjB,WAAW,CAAC;CACd;CAEA,OACE,oBAAC,OAAD;EAAK,WAAU;EACb,UAAA,qBAAC,SAAD;GACE,gBAAc,UAAU,SAAS,KAAA;GACjC,WAAW,GACT,mOACA,4FACA,YAAY,yEACZ,SAAS,+CACT,SACF;GARF,UAAA;IAUE,oBAAC,QAAD,EAAQ,WAAU,qCAAsC,CAAA;IACxD,oBAAC,QAAD;KAAM,WAAU;KACb,UAAA,UAAU,SAAS,IAChB,UAAU,KAAK,IAAI,IACnB,SAAS;IACT,CAAA;IACL,cAAc,CAAC,SACd,oBAAC,QAAD;KAAM,WAAU;KACb,UAAA;IACG,CAAA;IAEP,SACC,oBAAC,QAAD;KAAM,WAAU;KACb,UAAA;IACG,CAAA;IAER,oBAAC,SAAD;KACE,MAAK;KACA;KACK;KACV,WAAU;KACV,UAAU;KACV,UAAU,MAAM;MACd,WAAW,IAAI;MACf,UAAU,CAAC;KACb;KACA,SAAS,MAAM;MACb,WAAW,KAAK;MAChB,SAAS,CAAC;KACZ;KACA,GAAI;IACL,CAAA;GACI;;CACJ,CAAA;AAET,CACF;AACA,UAAU,cAAc"}
|
|
@@ -45,7 +45,7 @@ const HoverCardContent = react.forwardRef(({ className, align = "center", sideOf
|
|
|
45
45
|
sideOffset,
|
|
46
46
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_popover.Popover.Popup, {
|
|
47
47
|
ref,
|
|
48
|
-
className: require_utils.cn("z-50 w-72 rounded-
|
|
48
|
+
className: require_utils.cn("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", className),
|
|
49
49
|
...props
|
|
50
50
|
})
|
|
51
51
|
}) }));
|
|
@@ -17,7 +17,7 @@ declare const HoverCard: ({ open, defaultOpen, onOpenChange, children }: {
|
|
|
17
17
|
* focus and activation still work through the native button semantics the
|
|
18
18
|
* trigger renders (Enter/Space open, Escape closes and restores focus).
|
|
19
19
|
*/
|
|
20
|
-
declare const HoverCardTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "
|
|
20
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "defaultChecked" | "defaultValue" | "className" | "style" | "color"> & {
|
|
21
21
|
className?: string | ((state: import("@base-ui/react").PopoverTriggerState) => string | undefined) | undefined;
|
|
22
22
|
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, import("@base-ui/react").PopoverTriggerState> | undefined;
|
|
23
23
|
style?: React.CSSProperties | ((state: import("@base-ui/react").PopoverTriggerState) => React.CSSProperties | undefined) | undefined;
|
|
@@ -17,7 +17,7 @@ declare const HoverCard: ({ open, defaultOpen, onOpenChange, children }: {
|
|
|
17
17
|
* focus and activation still work through the native button semantics the
|
|
18
18
|
* trigger renders (Enter/Space open, Escape closes and restores focus).
|
|
19
19
|
*/
|
|
20
|
-
declare const HoverCardTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "
|
|
20
|
+
declare const HoverCardTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "defaultChecked" | "defaultValue" | "className" | "style" | "color"> & {
|
|
21
21
|
className?: string | ((state: import("@base-ui/react").PopoverTriggerState) => string | undefined) | undefined;
|
|
22
22
|
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, import("@base-ui/react").PopoverTriggerState> | undefined;
|
|
23
23
|
style?: React.CSSProperties | ((state: import("@base-ui/react").PopoverTriggerState) => React.CSSProperties | undefined) | undefined;
|
|
@@ -42,7 +42,7 @@ const HoverCardContent = React.forwardRef(({ className, align = "center", sideOf
|
|
|
42
42
|
sideOffset,
|
|
43
43
|
children: /* @__PURE__ */ jsx(Popover.Popup, {
|
|
44
44
|
ref,
|
|
45
|
-
className: cn("z-50 w-72 rounded-
|
|
45
|
+
className: cn("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", className),
|
|
46
46
|
...props
|
|
47
47
|
})
|
|
48
48
|
}) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["BasePopover"],"sources":["../../../src/components/hover-card/hover-card.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Popover as BasePopover } from \"@base-ui/react/popover\";\nimport { cn } from \"../../lib/utils\";\n\nexport const HoverCard = ({\n open,\n defaultOpen,\n onOpenChange,\n children,\n}: {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n children: React.ReactNode;\n}) => {\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen ?? false);\n const isControlled = open !== undefined;\n const isOpen = isControlled ? open : internalOpen;\n\n const handleOpenChange = (newOpen: boolean) => {\n if (!isControlled) {\n setInternalOpen(newOpen);\n }\n onOpenChange?.(newOpen);\n };\n\n return (\n <BasePopover.Root open={isOpen} onOpenChange={handleOpenChange}>\n {children}\n </BasePopover.Root>\n );\n};\n\n/**\n * Hover-to-open trigger.\n *\n * Base UI's `Popover.Trigger` owns the hover interaction: `openOnHover` turns\n * the pointer rest over the trigger into an open (after `delay` ms), and\n * `closeDelay` keeps the card alive long enough for the pointer to travel into\n * it — Base UI's safe-polygon keeps the popup open along that path. Keyboard\n * focus and activation still work through the native button semantics the\n * trigger renders (Enter/Space open, Escape closes and restores focus).\n */\nexport const HoverCardTrigger = React.forwardRef<\n HTMLButtonElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Trigger> & {\n delay?: number;\n closeDelay?: number;\n }\n>(({ openOnHover = true, delay = 300, closeDelay = 100, ...props }, ref) => (\n <BasePopover.Trigger\n ref={ref}\n openOnHover={openOnHover}\n delay={delay}\n closeDelay={closeDelay}\n {...props}\n />\n));\nHoverCardTrigger.displayName = \"HoverCardTrigger\";\n\nexport const HoverCardPortal = BasePopover.Portal;\n\nexport const HoverCardContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPortal>\n <BasePopover.Positioner align={align} sideOffset={sideOffset}>\n <BasePopover.Popup\n ref={ref}\n className={cn(\n \"z-50 w-72 rounded-
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["BasePopover"],"sources":["../../../src/components/hover-card/hover-card.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Popover as BasePopover } from \"@base-ui/react/popover\";\nimport { cn } from \"../../lib/utils\";\n\nexport const HoverCard = ({\n open,\n defaultOpen,\n onOpenChange,\n children,\n}: {\n open?: boolean;\n defaultOpen?: boolean;\n onOpenChange?: (open: boolean) => void;\n children: React.ReactNode;\n}) => {\n const [internalOpen, setInternalOpen] = React.useState(defaultOpen ?? false);\n const isControlled = open !== undefined;\n const isOpen = isControlled ? open : internalOpen;\n\n const handleOpenChange = (newOpen: boolean) => {\n if (!isControlled) {\n setInternalOpen(newOpen);\n }\n onOpenChange?.(newOpen);\n };\n\n return (\n <BasePopover.Root open={isOpen} onOpenChange={handleOpenChange}>\n {children}\n </BasePopover.Root>\n );\n};\n\n/**\n * Hover-to-open trigger.\n *\n * Base UI's `Popover.Trigger` owns the hover interaction: `openOnHover` turns\n * the pointer rest over the trigger into an open (after `delay` ms), and\n * `closeDelay` keeps the card alive long enough for the pointer to travel into\n * it — Base UI's safe-polygon keeps the popup open along that path. Keyboard\n * focus and activation still work through the native button semantics the\n * trigger renders (Enter/Space open, Escape closes and restores focus).\n */\nexport const HoverCardTrigger = React.forwardRef<\n HTMLButtonElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Trigger> & {\n delay?: number;\n closeDelay?: number;\n }\n>(({ openOnHover = true, delay = 300, closeDelay = 100, ...props }, ref) => (\n <BasePopover.Trigger\n ref={ref}\n openOnHover={openOnHover}\n delay={delay}\n closeDelay={closeDelay}\n {...props}\n />\n));\nHoverCardTrigger.displayName = \"HoverCardTrigger\";\n\nexport const HoverCardPortal = BasePopover.Portal;\n\nexport const HoverCardContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <HoverCardPortal>\n <BasePopover.Positioner align={align} sideOffset={sideOffset}>\n <BasePopover.Popup\n ref={ref}\n className={cn(\n \"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\",\n className\n )}\n {...props}\n />\n </BasePopover.Positioner>\n </HoverCardPortal>\n));\nHoverCardContent.displayName = \"HoverCardContent\";\n"],"mappings":";;;;;AAMA,MAAa,aAAa,EACxB,MACA,aACA,cACA,eAMI;CACJ,MAAM,CAAC,cAAc,mBAAmB,MAAM,SAAS,eAAe,KAAK;CAC3E,MAAM,eAAe,SAAS,KAAA;CAC9B,MAAM,SAAS,eAAe,OAAO;CAErC,MAAM,oBAAoB,YAAqB;EAC7C,IAAI,CAAC,cACH,gBAAgB,OAAO;EAEzB,eAAe,OAAO;CACxB;CAEA,OACE,oBAACA,QAAY,MAAb;EAAkB,MAAM;EAAQ,cAAc;EAC3C;CACe,CAAA;AAEtB;;;;;;;;;;;AAYA,MAAa,mBAAmB,MAAM,YAMnC,EAAE,cAAc,MAAM,QAAQ,KAAK,aAAa,KAAK,GAAG,SAAS,QAClE,oBAACA,QAAY,SAAb;CACO;CACQ;CACN;CACK;CACZ,GAAI;AACL,CAAA,CACF;AACD,iBAAiB,cAAc;AAE/B,MAAa,kBAAkBA,QAAY;AAE3C,MAAa,mBAAmB,MAAM,YAMnC,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAAC,iBAAD,EAAA,UACE,oBAACA,QAAY,YAAb;CAA+B;CAAmB;CAChD,UAAA,oBAACA,QAAY,OAAb;EACO;EACL,WAAW,GACT,yLACA,SACF;EACA,GAAI;CACL,CAAA;AACqB,CAAA,EACT,CAAA,CAClB;AACD,iBAAiB,cAAc"}
|
|
@@ -7,16 +7,17 @@ react = require_rolldown_runtime.__toESM(react, 1);
|
|
|
7
7
|
let class_variance_authority = require("class-variance-authority");
|
|
8
8
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
9
|
//#region src/components/input/input.tsx
|
|
10
|
-
const inputVariants = (0, class_variance_authority.cva)("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", {
|
|
10
|
+
const inputVariants = (0, class_variance_authority.cva)("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", {
|
|
11
11
|
variants: { inputSize: {
|
|
12
|
-
sm: "h-8 px-
|
|
13
|
-
md: "h-9 px-3 text-sm rounded-md",
|
|
14
|
-
lg: "h-10 px-4 text-base rounded-md"
|
|
12
|
+
sm: "h-8 px-3 py-1.5 text-xs rounded-md",
|
|
13
|
+
md: "h-9 px-3.5 py-2 text-sm rounded-md",
|
|
14
|
+
lg: "h-10 px-4 py-2 text-base rounded-md"
|
|
15
15
|
} },
|
|
16
16
|
defaultVariants: { inputSize: "md" }
|
|
17
17
|
});
|
|
18
18
|
const Input = react.forwardRef(({ className, type = "text", inputSize, ...props }, ref) => {
|
|
19
19
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("input", {
|
|
20
|
+
"data-slot": "input",
|
|
20
21
|
type,
|
|
21
22
|
className: require_utils.cn(inputVariants({
|
|
22
23
|
inputSize,
|
|
@@ -4,16 +4,17 @@ import * as React from "react";
|
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { jsx } from "react/jsx-runtime";
|
|
6
6
|
//#region src/components/input/input.tsx
|
|
7
|
-
const inputVariants = cva("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
|
+
const inputVariants = cva("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", {
|
|
8
8
|
variants: { inputSize: {
|
|
9
|
-
sm: "h-8 px-
|
|
10
|
-
md: "h-9 px-3 text-sm rounded-md",
|
|
11
|
-
lg: "h-10 px-4 text-base rounded-md"
|
|
9
|
+
sm: "h-8 px-3 py-1.5 text-xs rounded-md",
|
|
10
|
+
md: "h-9 px-3.5 py-2 text-sm rounded-md",
|
|
11
|
+
lg: "h-10 px-4 py-2 text-base rounded-md"
|
|
12
12
|
} },
|
|
13
13
|
defaultVariants: { inputSize: "md" }
|
|
14
14
|
});
|
|
15
15
|
const Input = React.forwardRef(({ className, type = "text", inputSize, ...props }, ref) => {
|
|
16
16
|
return /* @__PURE__ */ jsx("input", {
|
|
17
|
+
"data-slot": "input",
|
|
17
18
|
type,
|
|
18
19
|
className: cn(inputVariants({
|
|
19
20
|
inputSize,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/input/input.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\nexport const inputVariants = cva(\n \"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\",\n {\n variants: {\n inputSize: {\n sm: \"h-8 px-
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/input/input.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\nexport const inputVariants = cva(\n \"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\",\n {\n variants: {\n inputSize: {\n sm: \"h-8 px-3 py-1.5 text-xs rounded-md\",\n md: \"h-9 px-3.5 py-2 text-sm rounded-md\",\n lg: \"h-10 px-4 py-2 text-base rounded-md\",\n },\n },\n defaultVariants: {\n inputSize: \"md\",\n },\n }\n);\n\nexport interface InputProps\n extends React.InputHTMLAttributes<HTMLInputElement>,\n VariantProps<typeof inputVariants> {}\n\nexport const Input = React.forwardRef<HTMLInputElement, InputProps>(\n ({ className, type = \"text\", inputSize, ...props }, ref) => {\n return (\n <input\n data-slot=\"input\"\n type={type}\n className={cn(inputVariants({ inputSize, className }))}\n ref={ref}\n {...props}\n />\n );\n }\n);\n\nInput.displayName = \"Input\";\n"],"mappings":";;;;;AAIA,MAAa,gBAAgB,IAC3B,0eACA;CACE,UAAU,EACR,WAAW;EACT,IAAI;EACJ,IAAI;EACJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,WAAW,KACb;AACF,CACF;AAMA,MAAa,QAAQ,MAAM,YACxB,EAAE,WAAW,OAAO,QAAQ,WAAW,GAAG,SAAS,QAAQ;CAC1D,OACE,oBAAC,SAAD;EACE,aAAU;EACJ;EACN,WAAW,GAAG,cAAc;GAAE;GAAW;EAAU,CAAC,CAAC;EAChD;EACL,GAAI;CACL,CAAA;AAEL,CACF;AAEA,MAAM,cAAc"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const require_input_otp = require("../../input-otp-
|
|
3
|
+
const require_input_otp = require("../../input-otp-C7O7AtXb.cjs");
|
|
4
4
|
exports.InputOTP = require_input_otp.InputOTP;
|
|
5
5
|
exports.InputOTPGroup = require_input_otp.InputOTPGroup;
|
|
6
6
|
exports.InputOTPSeparator = require_input_otp.InputOTPSeparator;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as InputOTPSlot, n as InputOTPGroup, r as InputOTPSeparator, t as InputOTP } from "../../index-
|
|
1
|
+
import { i as InputOTPSlot, n as InputOTPGroup, r as InputOTPSeparator, t as InputOTP } from "../../index-CI5EwPm7.cjs";
|
|
2
2
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as InputOTPSlot, n as InputOTPGroup, r as InputOTPSeparator, t as InputOTP } from "../../index-
|
|
1
|
+
import { i as InputOTPSlot, n as InputOTPGroup, r as InputOTPSeparator, t as InputOTP } from "../../index-CI5EwPm7.mjs";
|
|
2
2
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as InputOTPSlot, n as InputOTPGroup, r as InputOTPSeparator, t as InputOTP } from "../../input-otp-
|
|
2
|
+
import { i as InputOTPSlot, n as InputOTPGroup, r as InputOTPSeparator, t as InputOTP } from "../../input-otp-CFNLnAuu.mjs";
|
|
3
3
|
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
|
@@ -29,7 +29,7 @@ const NavigationMenuItem = react.forwardRef(({ className, ...props }, ref) => /*
|
|
|
29
29
|
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
30
30
|
const NavigationMenuTrigger = react.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_base_ui_react_popover.Popover.Trigger, {
|
|
31
31
|
ref,
|
|
32
|
-
className: require_utils.cn("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", className),
|
|
32
|
+
className: require_utils.cn("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", className),
|
|
33
33
|
...props,
|
|
34
34
|
children: [children, /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronDown, {
|
|
35
35
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-popup-open:rotate-180",
|
|
@@ -42,7 +42,7 @@ const NavigationMenuContent = react.forwardRef(({ className, align = "start", si
|
|
|
42
42
|
sideOffset,
|
|
43
43
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_popover.Popover.Popup, {
|
|
44
44
|
ref,
|
|
45
|
-
className: require_utils.cn("z-50 w-[400px] max-w-[var(--available-width,calc(100vw_-_2rem))] overflow-hidden rounded-
|
|
45
|
+
className: require_utils.cn("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", className),
|
|
46
46
|
...props
|
|
47
47
|
})
|
|
48
48
|
}) }));
|
|
@@ -4,7 +4,7 @@ import { Popover } from "@base-ui/react/popover";
|
|
|
4
4
|
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
6
6
|
declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
-
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "
|
|
7
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "defaultChecked" | "defaultValue" | "className" | "style" | "color"> & {
|
|
8
8
|
className?: string | ((state: import("@base-ui/react").PopoverTriggerState) => string | undefined) | undefined;
|
|
9
9
|
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, import("@base-ui/react").PopoverTriggerState> | undefined;
|
|
10
10
|
style?: React.CSSProperties | ((state: import("@base-ui/react").PopoverTriggerState) => React.CSSProperties | undefined) | undefined;
|
|
@@ -4,7 +4,7 @@ import { Popover } from "@base-ui/react/popover";
|
|
|
4
4
|
declare const NavigationMenu: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>>;
|
|
5
5
|
declare const NavigationMenuList: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLUListElement>, HTMLUListElement>, "ref"> & React.RefAttributes<HTMLUListElement>>;
|
|
6
6
|
declare const NavigationMenuItem: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
-
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "
|
|
7
|
+
declare const NavigationMenuTrigger: React.ForwardRefExoticComponent<Omit<import("@base-ui/react/internals/types").NativeButtonProps & Omit<import("@base-ui/react/internals/types").WithBaseUIEvent<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>>, "defaultChecked" | "defaultValue" | "className" | "style" | "color"> & {
|
|
8
8
|
className?: string | ((state: import("@base-ui/react").PopoverTriggerState) => string | undefined) | undefined;
|
|
9
9
|
render?: React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | import("@base-ui/react").ComponentRenderFn<import("@base-ui/react").HTMLProps, import("@base-ui/react").PopoverTriggerState> | undefined;
|
|
10
10
|
style?: React.CSSProperties | ((state: import("@base-ui/react").PopoverTriggerState) => React.CSSProperties | undefined) | undefined;
|
|
@@ -26,7 +26,7 @@ const NavigationMenuItem = React.forwardRef(({ className, ...props }, ref) => /*
|
|
|
26
26
|
NavigationMenuItem.displayName = "NavigationMenuItem";
|
|
27
27
|
const NavigationMenuTrigger = React.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(Popover.Trigger, {
|
|
28
28
|
ref,
|
|
29
|
-
className: cn("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", className),
|
|
29
|
+
className: cn("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", className),
|
|
30
30
|
...props,
|
|
31
31
|
children: [children, /* @__PURE__ */ jsx(ChevronDown, {
|
|
32
32
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-popup-open:rotate-180",
|
|
@@ -39,7 +39,7 @@ const NavigationMenuContent = React.forwardRef(({ className, align = "start", si
|
|
|
39
39
|
sideOffset,
|
|
40
40
|
children: /* @__PURE__ */ jsx(Popover.Popup, {
|
|
41
41
|
ref,
|
|
42
|
-
className: cn("z-50 w-[400px] max-w-[var(--available-width,calc(100vw_-_2rem))] overflow-hidden rounded-
|
|
42
|
+
className: cn("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", className),
|
|
43
43
|
...props
|
|
44
44
|
})
|
|
45
45
|
}) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["BasePopover"],"sources":["../../../src/components/navigation-menu/navigation-menu.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Popover as BasePopover } from \"@base-ui/react/popover\";\nimport { ChevronDown } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\n\nconst NavigationMenu = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<\"nav\">\n>(({ className, ...props }, ref) => (\n <nav\n ref={ref}\n aria-label=\"Main Navigation\"\n className={cn(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\n {...props}\n />\n));\nNavigationMenu.displayName = \"NavigationMenu\";\n\nconst NavigationMenuList = React.forwardRef<\n HTMLUListElement,\n React.ComponentPropsWithoutRef<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\n \"group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\n {...props}\n />\n));\nNavigationMenuList.displayName = \"NavigationMenuList\";\n\nconst NavigationMenuItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentPropsWithoutRef<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"relative\", className)} {...props} />\n));\nNavigationMenuItem.displayName = \"NavigationMenuItem\";\n\nconst NavigationMenuTrigger = React.forwardRef<\n HTMLButtonElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Trigger>\n>(({ className, children, ...props }, ref) => (\n <BasePopover.Trigger\n ref={ref}\n className={cn(\n // impeccable-disable-next-line border-accent-on-rounded: state-conditional open-state underline indicator on a rounded trigger, not a card border\n \"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\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-popup-open:rotate-180\"\n aria-hidden=\"true\"\n />\n </BasePopover.Trigger>\n));\nNavigationMenuTrigger.displayName = \"NavigationMenuTrigger\";\n\nconst NavigationMenuContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"start\", sideOffset = 4, ...props }, ref) => (\n <BasePopover.Portal>\n <BasePopover.Positioner align={align} sideOffset={sideOffset}>\n <BasePopover.Popup\n ref={ref}\n className={cn(\n \"z-50 w-[400px] max-w-[var(--available-width,calc(100vw_-_2rem))] overflow-hidden rounded-
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["BasePopover"],"sources":["../../../src/components/navigation-menu/navigation-menu.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Popover as BasePopover } from \"@base-ui/react/popover\";\nimport { ChevronDown } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\n\nconst NavigationMenu = React.forwardRef<\n HTMLElement,\n React.ComponentPropsWithoutRef<\"nav\">\n>(({ className, ...props }, ref) => (\n <nav\n ref={ref}\n aria-label=\"Main Navigation\"\n className={cn(\n \"relative z-10 flex max-w-max flex-1 items-center justify-center\",\n className\n )}\n {...props}\n />\n));\nNavigationMenu.displayName = \"NavigationMenu\";\n\nconst NavigationMenuList = React.forwardRef<\n HTMLUListElement,\n React.ComponentPropsWithoutRef<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\n \"group flex flex-1 list-none items-center justify-center space-x-1\",\n className\n )}\n {...props}\n />\n));\nNavigationMenuList.displayName = \"NavigationMenuList\";\n\nconst NavigationMenuItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentPropsWithoutRef<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"relative\", className)} {...props} />\n));\nNavigationMenuItem.displayName = \"NavigationMenuItem\";\n\nconst NavigationMenuTrigger = React.forwardRef<\n HTMLButtonElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Trigger>\n>(({ className, children, ...props }, ref) => (\n <BasePopover.Trigger\n ref={ref}\n className={cn(\n // impeccable-disable-next-line border-accent-on-rounded: state-conditional open-state underline indicator on a rounded trigger, not a card border\n \"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\",\n className\n )}\n {...props}\n >\n {children}\n <ChevronDown\n className=\"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-popup-open:rotate-180\"\n aria-hidden=\"true\"\n />\n </BasePopover.Trigger>\n));\nNavigationMenuTrigger.displayName = \"NavigationMenuTrigger\";\n\nconst NavigationMenuContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"start\", sideOffset = 4, ...props }, ref) => (\n <BasePopover.Portal>\n <BasePopover.Positioner align={align} sideOffset={sideOffset}>\n <BasePopover.Popup\n ref={ref}\n className={cn(\n \"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\",\n className\n )}\n {...props}\n />\n </BasePopover.Positioner>\n </BasePopover.Portal>\n));\nNavigationMenuContent.displayName = \"NavigationMenuContent\";\n\nconst NavigationMenuLink = React.forwardRef<\n HTMLAnchorElement,\n React.ComponentPropsWithoutRef<\"a\">\n>(({ className, ...props }, ref) => (\n <a\n ref={ref}\n className={cn(\n \"block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-none transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground text-xs font-medium text-foreground\",\n className\n )}\n {...props}\n />\n));\nNavigationMenuLink.displayName = \"NavigationMenuLink\";\n\nexport {\n NavigationMenu,\n NavigationMenuList,\n NavigationMenuItem,\n NavigationMenuTrigger,\n NavigationMenuContent,\n NavigationMenuLink,\n};\n"],"mappings":";;;;;;AAKA,MAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,OAAD;CACO;CACL,cAAW;CACX,WAAW,GACT,mEACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;AAE7B,MAAM,qBAAqB,MAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,WAAW,GACT,qEACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,mBAAmB,cAAc;AAEjC,MAAM,qBAAqB,MAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CAAS;CAAK,WAAW,GAAG,YAAY,SAAS;CAAG,GAAI;AAAQ,CAAA,CACjE;AACD,mBAAmB,cAAc;AAEjC,MAAM,wBAAwB,MAAM,YAGjC,EAAE,WAAW,UAAU,GAAG,SAAS,QACpC,qBAACA,QAAY,SAAb;CACO;CACL,WAAW,GAET,keACA,SACF;CACA,GAAI;CAPN,UAAA,CASG,UACD,oBAAC,aAAD;EACE,WAAU;EACV,eAAY;CACb,CAAA,CACkB;AACtB,CAAA,CAAA;AACD,sBAAsB,cAAc;AAEpC,MAAM,wBAAwB,MAAM,YAMjC,EAAE,WAAW,QAAQ,SAAS,aAAa,GAAG,GAAG,SAAS,QAC3D,oBAACA,QAAY,QAAb,EAAA,UACE,oBAACA,QAAY,YAAb;CAA+B;CAAmB;CAChD,UAAA,oBAACA,QAAY,OAAb;EACO;EACL,WAAW,GACT,0PACA,SACF;EACA,GAAI;CACL,CAAA;AACqB,CAAA,EACN,CAAA,CACrB;AACD,sBAAsB,cAAc;AAEpC,MAAM,qBAAqB,MAAM,YAG9B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,KAAD;CACO;CACL,WAAW,GACT,qOACA,SACF;CACA,GAAI;AACL,CAAA,CACF;AACD,mBAAmB,cAAc"}
|
|
@@ -21,7 +21,7 @@ const NumberField = react.forwardRef(({ className, children, "aria-label": ariaL
|
|
|
21
21
|
}),
|
|
22
22
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_number_field.NumberField.Input, {
|
|
23
23
|
"aria-label": ariaLabel ?? "Value",
|
|
24
|
-
className: "h-9 w-16 bg-transparent text-center text-sm font-semibold text-foreground focus:outline-none disabled:opacity-40"
|
|
24
|
+
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"
|
|
25
25
|
}),
|
|
26
26
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_number_field.NumberField.Increment, {
|
|
27
27
|
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",
|
|
@@ -18,7 +18,7 @@ const NumberField = React.forwardRef(({ className, children, "aria-label": ariaL
|
|
|
18
18
|
}),
|
|
19
19
|
/* @__PURE__ */ jsx(NumberField$1.Input, {
|
|
20
20
|
"aria-label": ariaLabel ?? "Value",
|
|
21
|
-
className: "h-9 w-16 bg-transparent text-center text-sm font-semibold text-foreground focus:outline-none disabled:opacity-40"
|
|
21
|
+
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"
|
|
22
22
|
}),
|
|
23
23
|
/* @__PURE__ */ jsx(NumberField$1.Increment, {
|
|
24
24
|
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",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["BaseNumberField"],"sources":["../../../src/components/number-field/number-field.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { NumberField as BaseNumberField } from \"@base-ui/react/number-field\";\nimport { Minus, Plus } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\n\nexport type NumberFieldProps = React.ComponentPropsWithoutRef<\n typeof BaseNumberField.Root\n>;\n\nexport const NumberField = React.forwardRef<HTMLDivElement, NumberFieldProps>(\n ({ className, children, \"aria-label\": ariaLabel, ...props }, ref) => (\n <BaseNumberField.Root\n ref={ref}\n aria-label={ariaLabel}\n className={cn(\n \"inline-flex items-center rounded-md border border-border bg-background\",\n className\n )}\n {...props}\n >\n {children ?? (\n <>\n <BaseNumberField.Decrement\n className=\"flex h-9 w-9 items-center justify-center rounded-l-md border-r border-border text-foreground transition-colors hover:bg-accent disabled:opacity-40 disabled:cursor-not-allowed\"\n aria-label=\"Decrease value\"\n >\n <Minus className=\"h-4 w-4\" />\n </BaseNumberField.Decrement>\n <BaseNumberField.Input\n aria-label={ariaLabel ?? \"Value\"}\n className=\"h-9 w-16 bg-transparent text-center text-sm font-semibold text-foreground focus:outline-none disabled:opacity-40\"\n />\n <BaseNumberField.Increment\n 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\"\n aria-label=\"Increase value\"\n >\n <Plus className=\"h-4 w-4\" />\n </BaseNumberField.Increment>\n </>\n )}\n </BaseNumberField.Root>\n )\n);\nNumberField.displayName = \"NumberField\";\n\nexport const NumberFieldInput = BaseNumberField.Input;\nexport const NumberFieldIncrement = BaseNumberField.Increment;\nexport const NumberFieldDecrement = BaseNumberField.Decrement;\n"],"mappings":";;;;;;AASA,MAAa,cAAc,MAAM,YAC9B,EAAE,WAAW,UAAU,cAAc,WAAW,GAAG,SAAS,QAC3D,oBAACA,cAAgB,MAAjB;CACO;CACL,cAAY;CACZ,WAAW,GACT,0EACA,SACF;CACA,GAAI;CAEH,UAAA,YACC,qBAAA,UAAA,EAAA,UAAA;EACE,oBAACA,cAAgB,WAAjB;GACE,WAAU;GACV,cAAW;GAEX,UAAA,oBAAC,OAAD,EAAO,WAAU,UAAW,CAAA;EACH,CAAA;EAC3B,oBAACA,cAAgB,OAAjB;GACE,cAAY,aAAa;GACzB,WAAU;EACX,CAAA;EACD,oBAACA,cAAgB,WAAjB;GACE,WAAU;GACV,cAAW;GAEX,UAAA,oBAAC,MAAD,EAAM,WAAU,UAAW,CAAA;EACF,CAAA;CAC3B,EAAA,CAAA;AAEgB,CAAA,CAE1B;AACA,YAAY,cAAc;AAE1B,MAAa,mBAAmBA,cAAgB;AAChD,MAAa,uBAAuBA,cAAgB;AACpD,MAAa,uBAAuBA,cAAgB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["BaseNumberField"],"sources":["../../../src/components/number-field/number-field.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { NumberField as BaseNumberField } from \"@base-ui/react/number-field\";\nimport { Minus, Plus } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\n\nexport type NumberFieldProps = React.ComponentPropsWithoutRef<\n typeof BaseNumberField.Root\n>;\n\nexport const NumberField = React.forwardRef<HTMLDivElement, NumberFieldProps>(\n ({ className, children, \"aria-label\": ariaLabel, ...props }, ref) => (\n <BaseNumberField.Root\n ref={ref}\n aria-label={ariaLabel}\n className={cn(\n \"inline-flex items-center rounded-md border border-border bg-background\",\n className\n )}\n {...props}\n >\n {children ?? (\n <>\n <BaseNumberField.Decrement\n className=\"flex h-9 w-9 items-center justify-center rounded-l-md border-r border-border text-foreground transition-colors hover:bg-accent disabled:opacity-40 disabled:cursor-not-allowed\"\n aria-label=\"Decrease value\"\n >\n <Minus className=\"h-4 w-4\" />\n </BaseNumberField.Decrement>\n <BaseNumberField.Input\n aria-label={ariaLabel ?? \"Value\"}\n 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\"\n />\n <BaseNumberField.Increment\n 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\"\n aria-label=\"Increase value\"\n >\n <Plus className=\"h-4 w-4\" />\n </BaseNumberField.Increment>\n </>\n )}\n </BaseNumberField.Root>\n )\n);\nNumberField.displayName = \"NumberField\";\n\nexport const NumberFieldInput = BaseNumberField.Input;\nexport const NumberFieldIncrement = BaseNumberField.Increment;\nexport const NumberFieldDecrement = BaseNumberField.Decrement;\n"],"mappings":";;;;;;AASA,MAAa,cAAc,MAAM,YAC9B,EAAE,WAAW,UAAU,cAAc,WAAW,GAAG,SAAS,QAC3D,oBAACA,cAAgB,MAAjB;CACO;CACL,cAAY;CACZ,WAAW,GACT,0EACA,SACF;CACA,GAAI;CAEH,UAAA,YACC,qBAAA,UAAA,EAAA,UAAA;EACE,oBAACA,cAAgB,WAAjB;GACE,WAAU;GACV,cAAW;GAEX,UAAA,oBAAC,OAAD,EAAO,WAAU,UAAW,CAAA;EACH,CAAA;EAC3B,oBAACA,cAAgB,OAAjB;GACE,cAAY,aAAa;GACzB,WAAU;EACX,CAAA;EACD,oBAACA,cAAgB,WAAjB;GACE,WAAU;GACV,cAAW;GAEX,UAAA,oBAAC,MAAD,EAAM,WAAU,UAAW,CAAA;EACF,CAAA;CAC3B,EAAA,CAAA;AAEgB,CAAA,CAE1B;AACA,YAAY,cAAc;AAE1B,MAAa,mBAAmBA,cAAgB;AAChD,MAAa,uBAAuBA,cAAgB;AACpD,MAAa,uBAAuBA,cAAgB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationLink, c as PaginationPrevious, i as PaginationItem, n as PaginationContent, o as PaginationLinkProps, r as PaginationEllipsis, s as PaginationNext, t as Pagination } from "../../index-
|
|
1
|
+
import { a as PaginationLink, c as PaginationPrevious, i as PaginationItem, n as PaginationContent, o as PaginationLinkProps, r as PaginationEllipsis, s as PaginationNext, t as Pagination } from "../../index-C3ol_8Kk.cjs";
|
|
2
2
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PaginationLink, c as PaginationPrevious, i as PaginationItem, n as PaginationContent, o as PaginationLinkProps, r as PaginationEllipsis, s as PaginationNext, t as Pagination } from "../../index-
|
|
1
|
+
import { a as PaginationLink, c as PaginationPrevious, i as PaginationItem, n as PaginationContent, o as PaginationLinkProps, r as PaginationEllipsis, s as PaginationNext, t as Pagination } from "../../index-o7W0pKFo.mjs";
|
|
2
2
|
export { Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, type PaginationLinkProps, PaginationNext, PaginationPrevious };
|
|
@@ -16,7 +16,7 @@ const PopoverContent = react.forwardRef(({ className, align = "center", sideOffs
|
|
|
16
16
|
sideOffset,
|
|
17
17
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_base_ui_react_popover.Popover.Popup, {
|
|
18
18
|
ref,
|
|
19
|
-
className: require_utils.cn("z-50 w-72 rounded-
|
|
19
|
+
className: require_utils.cn("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", className),
|
|
20
20
|
...props
|
|
21
21
|
})
|
|
22
22
|
}) }));
|
|
@@ -13,7 +13,7 @@ const PopoverContent = React.forwardRef(({ className, align = "center", sideOffs
|
|
|
13
13
|
sideOffset,
|
|
14
14
|
children: /* @__PURE__ */ jsx(Popover$1.Popup, {
|
|
15
15
|
ref,
|
|
16
|
-
className: cn("z-50 w-72 rounded-
|
|
16
|
+
className: cn("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", className),
|
|
17
17
|
...props
|
|
18
18
|
})
|
|
19
19
|
}) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["BasePopover"],"sources":["../../../src/components/popover/popover.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Popover as BasePopover } from \"@base-ui/react/popover\";\nimport { cn } from \"../../lib/utils\";\n\nexport const Popover = BasePopover.Root;\nexport const PopoverTrigger = BasePopover.Trigger;\nexport const PopoverPortal = BasePopover.Portal;\nexport const PopoverClose = BasePopover.Close;\n\nexport const PopoverContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPortal>\n <BasePopover.Positioner align={align} sideOffset={sideOffset}>\n <BasePopover.Popup\n ref={ref}\n className={cn(\n \"z-50 w-72 rounded-
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["BasePopover"],"sources":["../../../src/components/popover/popover.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { Popover as BasePopover } from \"@base-ui/react/popover\";\nimport { cn } from \"../../lib/utils\";\n\nexport const Popover = BasePopover.Root;\nexport const PopoverTrigger = BasePopover.Trigger;\nexport const PopoverPortal = BasePopover.Portal;\nexport const PopoverClose = BasePopover.Close;\n\nexport const PopoverContent = React.forwardRef<\n HTMLDivElement,\n React.ComponentPropsWithoutRef<typeof BasePopover.Popup> & {\n align?: \"start\" | \"center\" | \"end\";\n sideOffset?: number;\n }\n>(({ className, align = \"center\", sideOffset = 4, ...props }, ref) => (\n <PopoverPortal>\n <BasePopover.Positioner align={align} sideOffset={sideOffset}>\n <BasePopover.Popup\n ref={ref}\n className={cn(\n \"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\",\n className\n )}\n {...props}\n />\n </BasePopover.Positioner>\n </PopoverPortal>\n));\nPopoverContent.displayName = \"PopoverContent\";\n"],"mappings":";;;;;AAIA,MAAa,UAAUA,UAAY;AACnC,MAAa,iBAAiBA,UAAY;AAC1C,MAAa,gBAAgBA,UAAY;AACzC,MAAa,eAAeA,UAAY;AAExC,MAAa,iBAAiB,MAAM,YAMjC,EAAE,WAAW,QAAQ,UAAU,aAAa,GAAG,GAAG,SAAS,QAC5D,oBAAC,eAAD,EAAA,UACE,oBAACA,UAAY,YAAb;CAA+B;CAAmB;CAChD,UAAA,oBAACA,UAAY,OAAb;EACO;EACL,WAAW,GACT,yLACA,SACF;EACA,GAAI;CACL,CAAA;AACqB,CAAA,EACX,CAAA,CAChB;AACD,eAAe,cAAc"}
|