@usalyt/ui 0.0.0-stage → 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 +34 -0
- package/LICENSE +21 -0
- package/NOTICE +31 -0
- package/README.md +147 -2
- package/THIRD_PARTY_NOTICES.md +446 -0
- package/dist/app-shell-layout-BwhU0DNY.cjs +120 -0
- package/dist/app-shell-layout-Dpl6jPni.mjs +115 -0
- package/dist/app-shell-layout-Dpl6jPni.mjs.map +1 -0
- package/dist/aspect-ratio-D-UR6be8.cjs +36 -0
- package/dist/aspect-ratio-DkBx-nZ0.mjs +31 -0
- package/dist/aspect-ratio-DkBx-nZ0.mjs.map +1 -0
- package/dist/blocks/app-shell-layout/index.cjs +4 -0
- package/dist/blocks/app-shell-layout/index.d.cts +2 -0
- package/dist/blocks/app-shell-layout/index.d.mts +2 -0
- package/dist/blocks/app-shell-layout/index.mjs +3 -0
- package/dist/blocks/auth-form/index.cjs +110 -0
- package/dist/blocks/auth-form/index.d.cts +25 -0
- package/dist/blocks/auth-form/index.d.cts.map +1 -0
- package/dist/blocks/auth-form/index.d.mts +25 -0
- package/dist/blocks/auth-form/index.d.mts.map +1 -0
- package/dist/blocks/auth-form/index.mjs +109 -0
- package/dist/blocks/auth-form/index.mjs.map +1 -0
- package/dist/blocks/collaboration-chat-panel/index.cjs +4 -0
- package/dist/blocks/collaboration-chat-panel/index.d.cts +2 -0
- package/dist/blocks/collaboration-chat-panel/index.d.mts +2 -0
- package/dist/blocks/collaboration-chat-panel/index.mjs +3 -0
- 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 +91 -0
- package/dist/blocks/dashboard-header/index.d.cts +19 -0
- package/dist/blocks/dashboard-header/index.d.cts.map +1 -0
- package/dist/blocks/dashboard-header/index.d.mts +19 -0
- package/dist/blocks/dashboard-header/index.d.mts.map +1 -0
- package/dist/blocks/dashboard-header/index.mjs +90 -0
- package/dist/blocks/dashboard-header/index.mjs.map +1 -0
- package/dist/blocks/data-table-with-filters/index.cjs +87 -0
- package/dist/blocks/data-table-with-filters/index.d.cts +19 -0
- package/dist/blocks/data-table-with-filters/index.d.cts.map +1 -0
- package/dist/blocks/data-table-with-filters/index.d.mts +19 -0
- package/dist/blocks/data-table-with-filters/index.d.mts.map +1 -0
- package/dist/blocks/data-table-with-filters/index.mjs +86 -0
- package/dist/blocks/data-table-with-filters/index.mjs.map +1 -0
- package/dist/blocks/empty-state-block/index.cjs +4 -0
- package/dist/blocks/empty-state-block/index.d.cts +2 -0
- package/dist/blocks/empty-state-block/index.d.mts +2 -0
- package/dist/blocks/empty-state-block/index.mjs +3 -0
- package/dist/blocks/evaluation-summary-report/index.cjs +4 -0
- package/dist/blocks/evaluation-summary-report/index.d.cts +2 -0
- package/dist/blocks/evaluation-summary-report/index.d.mts +2 -0
- package/dist/blocks/evaluation-summary-report/index.mjs +3 -0
- package/dist/blocks/form-with-validation/index.cjs +122 -0
- package/dist/blocks/form-with-validation/index.d.cts +27 -0
- package/dist/blocks/form-with-validation/index.d.cts.map +1 -0
- package/dist/blocks/form-with-validation/index.d.mts +27 -0
- package/dist/blocks/form-with-validation/index.d.mts.map +1 -0
- package/dist/blocks/form-with-validation/index.mjs +120 -0
- package/dist/blocks/form-with-validation/index.mjs.map +1 -0
- package/dist/blocks/heuristic-finding-card/index.cjs +4 -0
- package/dist/blocks/heuristic-finding-card/index.d.cts +2 -0
- package/dist/blocks/heuristic-finding-card/index.d.mts +2 -0
- package/dist/blocks/heuristic-finding-card/index.mjs +3 -0
- package/dist/blocks/inspector-split-view/index.cjs +4 -0
- package/dist/blocks/inspector-split-view/index.d.cts +2 -0
- package/dist/blocks/inspector-split-view/index.d.mts +2 -0
- package/dist/blocks/inspector-split-view/index.mjs +3 -0
- 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 +4 -0
- package/dist/blocks/project-kanban-board/index.d.cts +2 -0
- package/dist/blocks/project-kanban-board/index.d.mts +2 -0
- package/dist/blocks/project-kanban-board/index.mjs +3 -0
- 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 +55 -0
- package/dist/blocks/stats-card-grid/index.d.cts +22 -0
- package/dist/blocks/stats-card-grid/index.d.cts.map +1 -0
- package/dist/blocks/stats-card-grid/index.d.mts +22 -0
- package/dist/blocks/stats-card-grid/index.d.mts.map +1 -0
- package/dist/blocks/stats-card-grid/index.mjs +54 -0
- package/dist/blocks/stats-card-grid/index.mjs.map +1 -0
- package/dist/blocks/team-members-table/index.cjs +4 -0
- package/dist/blocks/team-members-table/index.d.cts +2 -0
- package/dist/blocks/team-members-table/index.d.mts +2 -0
- package/dist/blocks/team-members-table/index.mjs +3 -0
- package/dist/carousel-BvB82spx.mjs +138 -0
- package/dist/carousel-BvB82spx.mjs.map +1 -0
- package/dist/carousel-DU60VwEf.cjs +174 -0
- package/dist/collaboration-chat-panel-BO-k0fqo.mjs +113 -0
- package/dist/collaboration-chat-panel-BO-k0fqo.mjs.map +1 -0
- package/dist/collaboration-chat-panel-CR14FNw6.cjs +118 -0
- package/dist/color-swatch-XzO6dwhR.mjs +47 -0
- package/dist/color-swatch-XzO6dwhR.mjs.map +1 -0
- package/dist/color-swatch-nICTKGMP.cjs +58 -0
- package/dist/components/accordion/index.cjs +44 -0
- package/dist/components/accordion/index.d.cts +11 -0
- package/dist/components/accordion/index.d.cts.map +1 -0
- package/dist/components/accordion/index.d.mts +11 -0
- package/dist/components/accordion/index.d.mts.map +1 -0
- package/dist/components/accordion/index.mjs +39 -0
- package/dist/components/accordion/index.mjs.map +1 -0
- package/dist/components/alert/index.cjs +46 -0
- package/dist/components/alert/index.d.cts +14 -0
- package/dist/components/alert/index.d.cts.map +1 -0
- package/dist/components/alert/index.d.mts +14 -0
- package/dist/components/alert/index.d.mts.map +1 -0
- package/dist/components/alert/index.mjs +42 -0
- package/dist/components/alert/index.mjs.map +1 -0
- package/dist/components/alert-dialog/index.cjs +61 -0
- package/dist/components/alert-dialog/index.d.cts +23 -0
- package/dist/components/alert-dialog/index.d.cts.map +1 -0
- package/dist/components/alert-dialog/index.d.mts +23 -0
- package/dist/components/alert-dialog/index.d.mts.map +1 -0
- package/dist/components/alert-dialog/index.mjs +50 -0
- package/dist/components/alert-dialog/index.mjs.map +1 -0
- package/dist/components/aspect-ratio/index.cjs +4 -0
- package/dist/components/aspect-ratio/index.d.cts +2 -0
- package/dist/components/aspect-ratio/index.d.mts +2 -0
- package/dist/components/aspect-ratio/index.mjs +3 -0
- package/dist/components/avatar/index.cjs +42 -0
- package/dist/components/avatar/index.d.cts +14 -0
- package/dist/components/avatar/index.d.cts.map +1 -0
- package/dist/components/avatar/index.d.mts +14 -0
- package/dist/components/avatar/index.d.mts.map +1 -0
- package/dist/components/avatar/index.mjs +38 -0
- package/dist/components/avatar/index.mjs.map +1 -0
- package/dist/components/badge/index.cjs +38 -0
- package/dist/components/badge/index.d.cts +11 -0
- package/dist/components/badge/index.d.cts.map +1 -0
- package/dist/components/badge/index.d.mts +11 -0
- package/dist/components/badge/index.d.mts.map +1 -0
- package/dist/components/badge/index.mjs +36 -0
- package/dist/components/badge/index.mjs.map +1 -0
- package/dist/components/breadcrumb/index.cjs +70 -0
- package/dist/components/breadcrumb/index.d.cts +18 -0
- package/dist/components/breadcrumb/index.d.cts.map +1 -0
- package/dist/components/breadcrumb/index.d.mts +18 -0
- package/dist/components/breadcrumb/index.d.mts.map +1 -0
- package/dist/components/breadcrumb/index.mjs +63 -0
- package/dist/components/breadcrumb/index.mjs.map +1 -0
- package/dist/components/button/index.cjs +100 -0
- package/dist/components/button/index.d.cts +2 -0
- package/dist/components/button/index.d.mts +2 -0
- package/dist/components/button/index.mjs +98 -0
- package/dist/components/button/index.mjs.map +1 -0
- package/dist/components/calendar/index.cjs +125 -0
- package/dist/components/calendar/index.d.cts +12 -0
- package/dist/components/calendar/index.d.cts.map +1 -0
- package/dist/components/calendar/index.d.mts +12 -0
- package/dist/components/calendar/index.d.mts.map +1 -0
- package/dist/components/calendar/index.mjs +124 -0
- package/dist/components/calendar/index.mjs.map +1 -0
- package/dist/components/card/index.cjs +65 -0
- package/dist/components/card/index.d.cts +16 -0
- package/dist/components/card/index.d.cts.map +1 -0
- package/dist/components/card/index.d.mts +16 -0
- package/dist/components/card/index.d.mts.map +1 -0
- package/dist/components/card/index.mjs +58 -0
- package/dist/components/card/index.mjs.map +1 -0
- package/dist/components/carousel/index.cjs +9 -0
- package/dist/components/carousel/index.d.cts +2 -0
- package/dist/components/carousel/index.d.mts +2 -0
- package/dist/components/carousel/index.mjs +3 -0
- package/dist/components/chart/index.cjs +63 -0
- package/dist/components/chart/index.d.cts +21 -0
- package/dist/components/chart/index.d.cts.map +1 -0
- package/dist/components/chart/index.d.mts +21 -0
- package/dist/components/chart/index.d.mts.map +1 -0
- package/dist/components/chart/index.mjs +60 -0
- package/dist/components/chart/index.mjs.map +1 -0
- package/dist/components/checkbox/index.cjs +34 -0
- package/dist/components/checkbox/index.d.cts +10 -0
- package/dist/components/checkbox/index.d.cts.map +1 -0
- package/dist/components/checkbox/index.d.mts +10 -0
- package/dist/components/checkbox/index.d.mts.map +1 -0
- package/dist/components/checkbox/index.mjs +33 -0
- package/dist/components/checkbox/index.mjs.map +1 -0
- package/dist/components/collapsible/index.cjs +22 -0
- package/dist/components/collapsible/index.d.cts +8 -0
- package/dist/components/collapsible/index.d.cts.map +1 -0
- package/dist/components/collapsible/index.d.mts +8 -0
- package/dist/components/collapsible/index.d.mts.map +1 -0
- package/dist/components/collapsible/index.mjs +19 -0
- package/dist/components/collapsible/index.mjs.map +1 -0
- package/dist/components/color-swatch/index.cjs +5 -0
- package/dist/components/color-swatch/index.d.cts +2 -0
- package/dist/components/color-swatch/index.d.mts +2 -0
- package/dist/components/color-swatch/index.mjs +3 -0
- package/dist/components/combobox/index.cjs +192 -0
- package/dist/components/combobox/index.d.cts +27 -0
- package/dist/components/combobox/index.d.cts.map +1 -0
- package/dist/components/combobox/index.d.mts +27 -0
- package/dist/components/combobox/index.d.mts.map +1 -0
- package/dist/components/combobox/index.mjs +191 -0
- package/dist/components/combobox/index.mjs.map +1 -0
- package/dist/components/command/index.cjs +96 -0
- package/dist/components/command/index.d.cts +75 -0
- package/dist/components/command/index.d.cts.map +1 -0
- package/dist/components/command/index.d.mts +75 -0
- package/dist/components/command/index.d.mts.map +1 -0
- package/dist/components/command/index.mjs +88 -0
- package/dist/components/command/index.mjs.map +1 -0
- package/dist/components/context-menu/index.cjs +55 -0
- package/dist/components/context-menu/index.d.cts +19 -0
- package/dist/components/context-menu/index.d.cts.map +1 -0
- package/dist/components/context-menu/index.d.mts +19 -0
- package/dist/components/context-menu/index.d.mts.map +1 -0
- package/dist/components/context-menu/index.mjs +47 -0
- package/dist/components/context-menu/index.mjs.map +1 -0
- package/dist/components/copy-button/index.cjs +4 -0
- package/dist/components/copy-button/index.d.cts +2 -0
- package/dist/components/copy-button/index.d.mts +2 -0
- package/dist/components/copy-button/index.mjs +3 -0
- package/dist/components/data-table/index.cjs +152 -0
- package/dist/components/data-table/index.d.cts +20 -0
- package/dist/components/data-table/index.d.cts.map +1 -0
- package/dist/components/data-table/index.d.mts +20 -0
- package/dist/components/data-table/index.d.mts.map +1 -0
- package/dist/components/data-table/index.mjs +150 -0
- package/dist/components/data-table/index.mjs.map +1 -0
- package/dist/components/date-picker/index.cjs +48 -0
- package/dist/components/date-picker/index.d.cts +13 -0
- package/dist/components/date-picker/index.d.cts.map +1 -0
- package/dist/components/date-picker/index.d.mts +13 -0
- package/dist/components/date-picker/index.d.mts.map +1 -0
- package/dist/components/date-picker/index.mjs +47 -0
- package/dist/components/date-picker/index.mjs.map +1 -0
- package/dist/components/dialog/index.cjs +68 -0
- package/dist/components/dialog/index.d.cts +24 -0
- package/dist/components/dialog/index.d.cts.map +1 -0
- package/dist/components/dialog/index.d.mts +24 -0
- package/dist/components/dialog/index.d.mts.map +1 -0
- package/dist/components/dialog/index.mjs +58 -0
- package/dist/components/dialog/index.mjs.map +1 -0
- package/dist/components/drawer/index.cjs +61 -0
- package/dist/components/drawer/index.d.cts +24 -0
- package/dist/components/drawer/index.d.cts.map +1 -0
- package/dist/components/drawer/index.d.mts +24 -0
- package/dist/components/drawer/index.d.mts.map +1 -0
- package/dist/components/drawer/index.mjs +51 -0
- package/dist/components/drawer/index.mjs.map +1 -0
- package/dist/components/dropdown-menu/index.cjs +58 -0
- package/dist/components/dropdown-menu/index.d.cts +21 -0
- package/dist/components/dropdown-menu/index.d.cts.map +1 -0
- package/dist/components/dropdown-menu/index.d.mts +21 -0
- package/dist/components/dropdown-menu/index.d.mts.map +1 -0
- package/dist/components/dropdown-menu/index.mjs +49 -0
- package/dist/components/dropdown-menu/index.mjs.map +1 -0
- package/dist/components/file-input/index.cjs +60 -0
- package/dist/components/file-input/index.d.cts +11 -0
- package/dist/components/file-input/index.d.cts.map +1 -0
- package/dist/components/file-input/index.d.mts +11 -0
- package/dist/components/file-input/index.d.mts.map +1 -0
- package/dist/components/file-input/index.mjs +59 -0
- package/dist/components/file-input/index.mjs.map +1 -0
- package/dist/components/form/index.cjs +121 -0
- package/dist/components/form/index.d.cts +26 -0
- package/dist/components/form/index.d.cts.map +1 -0
- package/dist/components/form/index.d.mts +26 -0
- package/dist/components/form/index.d.mts.map +1 -0
- package/dist/components/form/index.mjs +113 -0
- package/dist/components/form/index.mjs.map +1 -0
- package/dist/components/hover-card/index.cjs +57 -0
- package/dist/components/hover-card/index.d.cts +43 -0
- package/dist/components/hover-card/index.d.cts.map +1 -0
- package/dist/components/hover-card/index.d.mts +43 -0
- package/dist/components/hover-card/index.d.mts.map +1 -0
- package/dist/components/hover-card/index.mjs +53 -0
- package/dist/components/hover-card/index.mjs.map +1 -0
- package/dist/components/input/index.cjs +33 -0
- package/dist/components/input/index.d.cts +11 -0
- package/dist/components/input/index.d.cts.map +1 -0
- package/dist/components/input/index.d.mts +11 -0
- package/dist/components/input/index.d.mts.map +1 -0
- package/dist/components/input/index.mjs +31 -0
- package/dist/components/input/index.mjs.map +1 -0
- package/dist/components/input-otp/index.cjs +7 -0
- package/dist/components/input-otp/index.d.cts +2 -0
- package/dist/components/input-otp/index.d.mts +2 -0
- package/dist/components/input-otp/index.mjs +3 -0
- package/dist/components/kbd/index.cjs +5 -0
- package/dist/components/kbd/index.d.cts +2 -0
- package/dist/components/kbd/index.d.mts +2 -0
- package/dist/components/kbd/index.mjs +3 -0
- package/dist/components/label/index.cjs +24 -0
- package/dist/components/label/index.d.cts +2 -0
- package/dist/components/label/index.d.mts +2 -0
- package/dist/components/label/index.mjs +22 -0
- package/dist/components/label/index.mjs.map +1 -0
- package/dist/components/menubar/index.cjs +63 -0
- package/dist/components/menubar/index.d.cts +19 -0
- package/dist/components/menubar/index.d.cts.map +1 -0
- package/dist/components/menubar/index.d.mts +19 -0
- package/dist/components/menubar/index.d.mts.map +1 -0
- package/dist/components/menubar/index.mjs +55 -0
- package/dist/components/menubar/index.mjs.map +1 -0
- package/dist/components/navigation-menu/index.cjs +62 -0
- package/dist/components/navigation-menu/index.d.cts +27 -0
- package/dist/components/navigation-menu/index.d.cts.map +1 -0
- package/dist/components/navigation-menu/index.d.mts +27 -0
- package/dist/components/navigation-menu/index.d.mts.map +1 -0
- package/dist/components/navigation-menu/index.mjs +56 -0
- package/dist/components/navigation-menu/index.mjs.map +1 -0
- package/dist/components/number-field/index.cjs +41 -0
- package/dist/components/number-field/index.d.cts +11 -0
- package/dist/components/number-field/index.d.cts.map +1 -0
- package/dist/components/number-field/index.d.mts +11 -0
- package/dist/components/number-field/index.d.mts.map +1 -0
- package/dist/components/number-field/index.mjs +37 -0
- package/dist/components/number-field/index.mjs.map +1 -0
- package/dist/components/pagination/index.cjs +10 -0
- package/dist/components/pagination/index.d.cts +2 -0
- package/dist/components/pagination/index.d.mts +2 -0
- package/dist/components/pagination/index.mjs +3 -0
- package/dist/components/popover/index.cjs +29 -0
- package/dist/components/popover/index.d.cts +14 -0
- package/dist/components/popover/index.d.cts.map +1 -0
- package/dist/components/popover/index.d.mts +14 -0
- package/dist/components/popover/index.d.mts.map +1 -0
- package/dist/components/popover/index.mjs +24 -0
- package/dist/components/popover/index.mjs.map +1 -0
- package/dist/components/progress/index.cjs +94 -0
- package/dist/components/progress/index.d.cts +20 -0
- package/dist/components/progress/index.d.cts.map +1 -0
- package/dist/components/progress/index.d.mts +20 -0
- package/dist/components/progress/index.d.mts.map +1 -0
- package/dist/components/progress/index.mjs +91 -0
- package/dist/components/progress/index.mjs.map +1 -0
- package/dist/components/radio-group/index.cjs +43 -0
- package/dist/components/radio-group/index.d.cts +17 -0
- package/dist/components/radio-group/index.d.cts.map +1 -0
- package/dist/components/radio-group/index.d.mts +17 -0
- package/dist/components/radio-group/index.d.mts.map +1 -0
- package/dist/components/radio-group/index.mjs +41 -0
- package/dist/components/radio-group/index.mjs.map +1 -0
- package/dist/components/rating/index.cjs +4 -0
- package/dist/components/rating/index.d.cts +2 -0
- package/dist/components/rating/index.d.mts +2 -0
- package/dist/components/rating/index.mjs +3 -0
- package/dist/components/resizable/index.cjs +6 -0
- package/dist/components/resizable/index.d.cts +2 -0
- package/dist/components/resizable/index.d.mts +2 -0
- package/dist/components/resizable/index.mjs +3 -0
- package/dist/components/scroll-area/index.cjs +35 -0
- package/dist/components/scroll-area/index.d.cts +9 -0
- package/dist/components/scroll-area/index.d.cts.map +1 -0
- package/dist/components/scroll-area/index.d.mts +9 -0
- package/dist/components/scroll-area/index.d.mts.map +1 -0
- package/dist/components/scroll-area/index.mjs +33 -0
- package/dist/components/scroll-area/index.mjs.map +1 -0
- package/dist/components/select/index.cjs +54 -0
- package/dist/components/select/index.d.cts +17 -0
- package/dist/components/select/index.d.cts.map +1 -0
- package/dist/components/select/index.d.mts +17 -0
- package/dist/components/select/index.d.mts.map +1 -0
- package/dist/components/select/index.mjs +46 -0
- package/dist/components/select/index.mjs.map +1 -0
- package/dist/components/separator/index.cjs +18 -0
- package/dist/components/separator/index.d.cts +6 -0
- package/dist/components/separator/index.d.cts.map +1 -0
- package/dist/components/separator/index.d.mts +6 -0
- package/dist/components/separator/index.d.mts.map +1 -0
- package/dist/components/separator/index.mjs +17 -0
- package/dist/components/separator/index.mjs.map +1 -0
- package/dist/components/sheet/index.cjs +69 -0
- package/dist/components/sheet/index.d.cts +27 -0
- package/dist/components/sheet/index.d.cts.map +1 -0
- package/dist/components/sheet/index.d.mts +27 -0
- package/dist/components/sheet/index.d.mts.map +1 -0
- package/dist/components/sheet/index.mjs +61 -0
- package/dist/components/sheet/index.mjs.map +1 -0
- package/dist/components/sidebar/index.cjs +16 -0
- package/dist/components/sidebar/index.d.cts +2 -0
- package/dist/components/sidebar/index.d.mts +2 -0
- package/dist/components/sidebar/index.mjs +3 -0
- package/dist/components/skeleton/index.cjs +19 -0
- package/dist/components/skeleton/index.d.cts +7 -0
- package/dist/components/skeleton/index.d.cts.map +1 -0
- package/dist/components/skeleton/index.d.mts +7 -0
- package/dist/components/skeleton/index.d.mts.map +1 -0
- package/dist/components/skeleton/index.mjs +18 -0
- package/dist/components/skeleton/index.mjs.map +1 -0
- package/dist/components/slider/index.cjs +30 -0
- package/dist/components/slider/index.d.cts +10 -0
- package/dist/components/slider/index.d.cts.map +1 -0
- package/dist/components/slider/index.d.mts +10 -0
- package/dist/components/slider/index.d.mts.map +1 -0
- package/dist/components/slider/index.mjs +29 -0
- package/dist/components/slider/index.mjs.map +1 -0
- package/dist/components/sonner/index.cjs +6 -0
- package/dist/components/sonner/index.d.cts +2 -0
- package/dist/components/sonner/index.d.mts +2 -0
- package/dist/components/sonner/index.mjs +3 -0
- package/dist/components/spinner/index.cjs +53 -0
- package/dist/components/spinner/index.d.cts +14 -0
- package/dist/components/spinner/index.d.cts.map +1 -0
- package/dist/components/spinner/index.d.mts +14 -0
- package/dist/components/spinner/index.d.mts.map +1 -0
- package/dist/components/spinner/index.mjs +51 -0
- package/dist/components/spinner/index.mjs.map +1 -0
- package/dist/components/stepper/index.cjs +9 -0
- package/dist/components/stepper/index.d.cts +2 -0
- package/dist/components/stepper/index.d.mts +2 -0
- package/dist/components/stepper/index.mjs +3 -0
- package/dist/components/switch/index.cjs +18 -0
- package/dist/components/switch/index.d.cts +8 -0
- package/dist/components/switch/index.d.cts.map +1 -0
- package/dist/components/switch/index.d.mts +8 -0
- package/dist/components/switch/index.d.mts.map +1 -0
- package/dist/components/switch/index.mjs +17 -0
- package/dist/components/switch/index.mjs.map +1 -0
- package/dist/components/table/index.cjs +69 -0
- package/dist/components/table/index.d.cts +13 -0
- package/dist/components/table/index.d.cts.map +1 -0
- package/dist/components/table/index.d.mts +13 -0
- package/dist/components/table/index.d.mts.map +1 -0
- package/dist/components/table/index.mjs +61 -0
- package/dist/components/table/index.mjs.map +1 -0
- package/dist/components/tabs/index.cjs +36 -0
- package/dist/components/tabs/index.d.cts +9 -0
- package/dist/components/tabs/index.d.cts.map +1 -0
- package/dist/components/tabs/index.d.mts +9 -0
- package/dist/components/tabs/index.d.mts.map +1 -0
- package/dist/components/tabs/index.mjs +32 -0
- package/dist/components/tabs/index.mjs.map +1 -0
- package/dist/components/textarea/index.cjs +32 -0
- package/dist/components/textarea/index.d.cts +11 -0
- package/dist/components/textarea/index.d.cts.map +1 -0
- package/dist/components/textarea/index.d.mts +11 -0
- package/dist/components/textarea/index.d.mts.map +1 -0
- package/dist/components/textarea/index.mjs +30 -0
- package/dist/components/textarea/index.mjs.map +1 -0
- package/dist/components/timeline/index.cjs +12 -0
- package/dist/components/timeline/index.d.cts +2 -0
- package/dist/components/timeline/index.d.mts +2 -0
- package/dist/components/timeline/index.mjs +3 -0
- package/dist/components/toast/index.cjs +92 -0
- package/dist/components/toast/index.d.cts +27 -0
- package/dist/components/toast/index.d.cts.map +1 -0
- package/dist/components/toast/index.d.mts +27 -0
- package/dist/components/toast/index.d.mts.map +1 -0
- package/dist/components/toast/index.mjs +80 -0
- package/dist/components/toast/index.mjs.map +1 -0
- package/dist/components/toggle/index.cjs +5 -0
- package/dist/components/toggle/index.d.cts +2 -0
- package/dist/components/toggle/index.d.mts +2 -0
- package/dist/components/toggle/index.mjs +3 -0
- package/dist/components/toggle-group/index.cjs +45 -0
- package/dist/components/toggle-group/index.d.cts +13 -0
- package/dist/components/toggle-group/index.d.cts.map +1 -0
- package/dist/components/toggle-group/index.d.mts +13 -0
- package/dist/components/toggle-group/index.d.mts.map +1 -0
- package/dist/components/toggle-group/index.mjs +43 -0
- package/dist/components/toggle-group/index.mjs.map +1 -0
- package/dist/components/tooltip/index.cjs +29 -0
- package/dist/components/tooltip/index.d.cts +13 -0
- package/dist/components/tooltip/index.d.cts.map +1 -0
- package/dist/components/tooltip/index.d.mts +13 -0
- package/dist/components/tooltip/index.d.mts.map +1 -0
- package/dist/components/tooltip/index.mjs +24 -0
- package/dist/components/tooltip/index.mjs.map +1 -0
- package/dist/components/tree-view/index.cjs +7 -0
- package/dist/components/tree-view/index.d.cts +2 -0
- package/dist/components/tree-view/index.d.mts +2 -0
- package/dist/components/tree-view/index.mjs +3 -0
- package/dist/copy-button-CQR9ba95.cjs +45 -0
- package/dist/copy-button-DebO1rhk.mjs +40 -0
- package/dist/copy-button-DebO1rhk.mjs.map +1 -0
- package/dist/empty-state-block-DlccTgvo.mjs +53 -0
- package/dist/empty-state-block-DlccTgvo.mjs.map +1 -0
- package/dist/empty-state-block-rrYF_ai9.cjs +58 -0
- 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/files/Inter-OFL.txt +93 -0
- package/dist/files/inter-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/files/inter-cyrillic-wght-normal.woff2 +0 -0
- package/dist/files/inter-greek-ext-wght-normal.woff2 +0 -0
- package/dist/files/inter-greek-wght-normal.woff2 +0 -0
- package/dist/files/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/files/inter-latin-wght-normal.woff2 +0 -0
- package/dist/files/inter-vietnamese-wght-normal.woff2 +0 -0
- package/dist/heuristic-finding-card-CeJzuzuN.cjs +153 -0
- package/dist/heuristic-finding-card-hlDwM_of.mjs +148 -0
- package/dist/heuristic-finding-card-hlDwM_of.mjs.map +1 -0
- package/dist/index-2Vh9mMtN.d.mts +12 -0
- package/dist/index-2Vh9mMtN.d.mts.map +1 -0
- package/dist/index-6OorKnHX.d.cts +21 -0
- package/dist/index-6OorKnHX.d.cts.map +1 -0
- package/dist/index-6OorKnHX.d.mts +21 -0
- package/dist/index-6OorKnHX.d.mts.map +1 -0
- package/dist/index-B6epY4xT.d.cts +18 -0
- package/dist/index-B6epY4xT.d.cts.map +1 -0
- package/dist/index-B8Z5coVq.d.cts +25 -0
- package/dist/index-B8Z5coVq.d.cts.map +1 -0
- package/dist/index-B8Z5coVq.d.mts +25 -0
- package/dist/index-B8Z5coVq.d.mts.map +1 -0
- package/dist/index-BHz32vzo.d.cts +17 -0
- package/dist/index-BHz32vzo.d.cts.map +1 -0
- package/dist/index-BHz32vzo.d.mts +17 -0
- package/dist/index-BHz32vzo.d.mts.map +1 -0
- package/dist/index-BUL5nXfL.d.cts +22 -0
- package/dist/index-BUL5nXfL.d.cts.map +1 -0
- package/dist/index-BUL5nXfL.d.mts +22 -0
- package/dist/index-BUL5nXfL.d.mts.map +1 -0
- package/dist/index-BVVCNb2w.d.cts +29 -0
- package/dist/index-BVVCNb2w.d.cts.map +1 -0
- package/dist/index-BVVCNb2w.d.mts +29 -0
- package/dist/index-BVVCNb2w.d.mts.map +1 -0
- package/dist/index-B_JrTcxF.d.cts +31 -0
- package/dist/index-B_JrTcxF.d.cts.map +1 -0
- package/dist/index-C3V4MOJH.d.mts +18 -0
- package/dist/index-C3V4MOJH.d.mts.map +1 -0
- package/dist/index-C3ol_8Kk.d.cts +31 -0
- package/dist/index-C3ol_8Kk.d.cts.map +1 -0
- package/dist/index-C5ugjRen.d.cts +25 -0
- package/dist/index-C5ugjRen.d.cts.map +1 -0
- package/dist/index-C5ugjRen.d.mts +25 -0
- package/dist/index-C5ugjRen.d.mts.map +1 -0
- package/dist/index-CI5EwPm7.d.cts +39 -0
- package/dist/index-CI5EwPm7.d.cts.map +1 -0
- package/dist/index-CI5EwPm7.d.mts +39 -0
- package/dist/index-CI5EwPm7.d.mts.map +1 -0
- package/dist/index-CU-siW-K.d.mts +46 -0
- package/dist/index-CU-siW-K.d.mts.map +1 -0
- package/dist/index-CsF26Fe8.d.cts +23 -0
- package/dist/index-CsF26Fe8.d.cts.map +1 -0
- package/dist/index-CsF26Fe8.d.mts +23 -0
- package/dist/index-CsF26Fe8.d.mts.map +1 -0
- package/dist/index-CvHlThTj.d.cts +10 -0
- package/dist/index-CvHlThTj.d.cts.map +1 -0
- package/dist/index-CvHlThTj.d.mts +10 -0
- package/dist/index-CvHlThTj.d.mts.map +1 -0
- package/dist/index-D56D0Sa2.d.cts +13 -0
- package/dist/index-D56D0Sa2.d.cts.map +1 -0
- package/dist/index-D56D0Sa2.d.mts +13 -0
- package/dist/index-D56D0Sa2.d.mts.map +1 -0
- package/dist/index-D5_0x-hC.d.cts +12 -0
- package/dist/index-D5_0x-hC.d.cts.map +1 -0
- package/dist/index-D5sQcRHf.d.cts +23 -0
- package/dist/index-D5sQcRHf.d.cts.map +1 -0
- package/dist/index-D5sQcRHf.d.mts +23 -0
- package/dist/index-D5sQcRHf.d.mts.map +1 -0
- package/dist/index-DeDN45Ha.d.mts +31 -0
- package/dist/index-DeDN45Ha.d.mts.map +1 -0
- package/dist/index-DjbxiLM8.d.cts +12 -0
- package/dist/index-DjbxiLM8.d.cts.map +1 -0
- package/dist/index-DjbxiLM8.d.mts +12 -0
- package/dist/index-DjbxiLM8.d.mts.map +1 -0
- package/dist/index-DlP_5d_g.d.cts +21 -0
- package/dist/index-DlP_5d_g.d.cts.map +1 -0
- package/dist/index-DlP_5d_g.d.mts +21 -0
- package/dist/index-DlP_5d_g.d.mts.map +1 -0
- package/dist/index-DtPmPGcN.d.cts +27 -0
- package/dist/index-DtPmPGcN.d.cts.map +1 -0
- package/dist/index-DtPmPGcN.d.mts +27 -0
- package/dist/index-DtPmPGcN.d.mts.map +1 -0
- package/dist/index-Q6oL7Ku9.d.cts +8 -0
- package/dist/index-Q6oL7Ku9.d.cts.map +1 -0
- package/dist/index-Q6oL7Ku9.d.mts +8 -0
- package/dist/index-Q6oL7Ku9.d.mts.map +1 -0
- package/dist/index-Ymzy10FB.d.cts +21 -0
- package/dist/index-Ymzy10FB.d.cts.map +1 -0
- package/dist/index-Ymzy10FB.d.mts +21 -0
- package/dist/index-Ymzy10FB.d.mts.map +1 -0
- package/dist/index-bZKcWdNm.d.cts +15 -0
- package/dist/index-bZKcWdNm.d.cts.map +1 -0
- package/dist/index-bZKcWdNm.d.mts +15 -0
- package/dist/index-bZKcWdNm.d.mts.map +1 -0
- package/dist/index-joP2_4d6.d.cts +11 -0
- package/dist/index-joP2_4d6.d.cts.map +1 -0
- package/dist/index-joP2_4d6.d.mts +11 -0
- package/dist/index-joP2_4d6.d.mts.map +1 -0
- package/dist/index-o7W0pKFo.d.mts +31 -0
- package/dist/index-o7W0pKFo.d.mts.map +1 -0
- package/dist/index-y8s6jpSR.d.cts +46 -0
- package/dist/index-y8s6jpSR.d.cts.map +1 -0
- package/dist/index-zlEzdw7N.d.cts +15 -0
- package/dist/index-zlEzdw7N.d.cts.map +1 -0
- package/dist/index-zlEzdw7N.d.mts +15 -0
- package/dist/index-zlEzdw7N.d.mts.map +1 -0
- package/dist/index.cjs +363 -0
- package/dist/index.d.cts +83 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +83 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +80 -0
- package/dist/input-otp-C7O7AtXb.cjs +67 -0
- package/dist/input-otp-CFNLnAuu.mjs +44 -0
- package/dist/input-otp-CFNLnAuu.mjs.map +1 -0
- package/dist/inspector-split-view-Cwsvl3-m.cjs +150 -0
- package/dist/inspector-split-view-D5tX9P5r.mjs +145 -0
- package/dist/inspector-split-view-D5tX9P5r.mjs.map +1 -0
- package/dist/kbd-D9Ymi9Pt.mjs +37 -0
- package/dist/kbd-D9Ymi9Pt.mjs.map +1 -0
- package/dist/kbd-Dhz_xrKs.cjs +48 -0
- package/dist/pagination-B8J2t1Vr.cjs +105 -0
- package/dist/pagination-ivrgsud6.mjs +64 -0
- package/dist/pagination-ivrgsud6.mjs.map +1 -0
- package/dist/project-kanban-board-BHLRHooH.mjs +138 -0
- package/dist/project-kanban-board-BHLRHooH.mjs.map +1 -0
- package/dist/project-kanban-board-DUaDiHZC.cjs +143 -0
- package/dist/rating-CtXEsqKU.cjs +72 -0
- package/dist/rating-pFb5zNn2.mjs +67 -0
- package/dist/rating-pFb5zNn2.mjs.map +1 -0
- package/dist/resizable-DrJqbD5t.mjs +23 -0
- package/dist/resizable-DrJqbD5t.mjs.map +1 -0
- package/dist/resizable-VZ7tgMu9.cjs +41 -0
- package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/dist/sidebar-BCBtb6sS.mjs +232 -0
- package/dist/sidebar-BCBtb6sS.mjs.map +1 -0
- package/dist/sidebar-BilZg_Lv.cjs +309 -0
- package/dist/sonner-Ba68yk7d.mjs +20 -0
- package/dist/sonner-Ba68yk7d.mjs.map +1 -0
- package/dist/sonner-Crak-gYY.cjs +25 -0
- package/dist/stepper-CgBpI7sb.cjs +96 -0
- package/dist/stepper-Dtf208dW.mjs +61 -0
- package/dist/stepper-Dtf208dW.mjs.map +1 -0
- package/dist/styles.css +2 -0
- package/dist/team-members-table-5OWUc6Ib.cjs +126 -0
- package/dist/team-members-table-DW52BAKr.mjs +121 -0
- package/dist/team-members-table-DW52BAKr.mjs.map +1 -0
- package/dist/timeline-CAPfreK3.cjs +118 -0
- package/dist/timeline-CBMvtk3M.mjs +65 -0
- package/dist/timeline-CBMvtk3M.mjs.map +1 -0
- package/dist/toggle-CZG8xQeG.cjs +48 -0
- package/dist/toggle-CpGSEgUK.d.cts +13 -0
- package/dist/toggle-CpGSEgUK.d.cts.map +1 -0
- package/dist/toggle-CpGSEgUK.d.mts +13 -0
- package/dist/toggle-CpGSEgUK.d.mts.map +1 -0
- package/dist/toggle-CpsU8EEk.mjs +37 -0
- package/dist/toggle-CpsU8EEk.mjs.map +1 -0
- package/dist/tree-view-BB1ghmfC.mjs +69 -0
- package/dist/tree-view-BB1ghmfC.mjs.map +1 -0
- package/dist/tree-view-BFzVxqkZ.cjs +92 -0
- package/dist/utils-BVF9WCwH.mjs +38 -0
- package/dist/utils-BVF9WCwH.mjs.map +1 -0
- package/dist/utils-YZxtPI0Y.cjs +40 -0
- package/package.json +873 -3
- package/scripts/audit-bundle-size.ts +80 -0
- package/scripts/generate-storybook-stories.ts +79 -0
- package/scripts/postbuild.mjs +132 -0
- package/scripts/public-entries.d.mts +25 -0
- package/scripts/public-entries.mjs +123 -0
- package/scripts/verify-artifacts.mjs +361 -0
- package/scripts/write-all-rich-stories.ts +402 -0
- package/src/blocks/app-shell-layout/app-shell-layout.stories.tsx +62 -0
- package/src/blocks/app-shell-layout/app-shell-layout.test.tsx +59 -0
- package/src/blocks/app-shell-layout/app-shell-layout.tsx +180 -0
- package/src/blocks/app-shell-layout/index.ts +5 -0
- package/src/blocks/auth-form/auth-form.stories.tsx +36 -0
- package/src/blocks/auth-form/auth-form.test.tsx +72 -0
- package/src/blocks/auth-form/auth-form.tsx +136 -0
- package/src/blocks/auth-form/index.ts +1 -0
- package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.stories.tsx +45 -0
- package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.test.tsx +101 -0
- package/src/blocks/collaboration-chat-panel/collaboration-chat-panel.tsx +180 -0
- package/src/blocks/collaboration-chat-panel/index.ts +5 -0
- 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.stories.tsx +41 -0
- package/src/blocks/dashboard-header/dashboard-header.test.tsx +76 -0
- package/src/blocks/dashboard-header/dashboard-header.tsx +128 -0
- package/src/blocks/dashboard-header/index.ts +1 -0
- package/src/blocks/data-table-with-filters/data-table-with-filters.stories.tsx +41 -0
- package/src/blocks/data-table-with-filters/data-table-with-filters.test.tsx +40 -0
- package/src/blocks/data-table-with-filters/data-table-with-filters.tsx +88 -0
- package/src/blocks/data-table-with-filters/index.ts +1 -0
- package/src/blocks/empty-state-block/empty-state-block.stories.tsx +39 -0
- package/src/blocks/empty-state-block/empty-state-block.test.tsx +76 -0
- package/src/blocks/empty-state-block/empty-state-block.tsx +83 -0
- package/src/blocks/empty-state-block/index.ts +4 -0
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.stories.tsx +77 -0
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.test.tsx +87 -0
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.tsx +291 -0
- package/src/blocks/evaluation-summary-report/index.ts +5 -0
- package/src/blocks/form-with-validation/form-with-validation.stories.tsx +48 -0
- package/src/blocks/form-with-validation/form-with-validation.test.tsx +95 -0
- package/src/blocks/form-with-validation/form-with-validation.tsx +145 -0
- package/src/blocks/form-with-validation/index.ts +1 -0
- package/src/blocks/heuristic-finding-card/heuristic-finding-card.stories.tsx +125 -0
- package/src/blocks/heuristic-finding-card/heuristic-finding-card.test.tsx +68 -0
- package/src/blocks/heuristic-finding-card/heuristic-finding-card.tsx +218 -0
- package/src/blocks/heuristic-finding-card/index.ts +6 -0
- package/src/blocks/inspector-split-view/index.ts +5 -0
- package/src/blocks/inspector-split-view/inspector-split-view.stories.tsx +99 -0
- package/src/blocks/inspector-split-view/inspector-split-view.test.tsx +96 -0
- package/src/blocks/inspector-split-view/inspector-split-view.tsx +190 -0
- 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/index.ts +6 -0
- package/src/blocks/project-kanban-board/project-kanban-board.stories.tsx +107 -0
- package/src/blocks/project-kanban-board/project-kanban-board.test.tsx +112 -0
- package/src/blocks/project-kanban-board/project-kanban-board.tsx +243 -0
- 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/index.ts +1 -0
- package/src/blocks/stats-card-grid/stats-card-grid.stories.tsx +66 -0
- package/src/blocks/stats-card-grid/stats-card-grid.test.tsx +53 -0
- package/src/blocks/stats-card-grid/stats-card-grid.tsx +127 -0
- package/src/blocks/team-members-table/index.ts +6 -0
- package/src/blocks/team-members-table/team-members-table.stories.tsx +41 -0
- package/src/blocks/team-members-table/team-members-table.test.tsx +58 -0
- package/src/blocks/team-members-table/team-members-table.tsx +178 -0
- package/src/components/accordion/accordion.stories.tsx +85 -0
- package/src/components/accordion/accordion.test.tsx +125 -0
- package/src/components/accordion/accordion.tsx +57 -0
- package/src/components/accordion/index.ts +1 -0
- package/src/components/alert/alert.stories.tsx +90 -0
- package/src/components/alert/alert.test.tsx +118 -0
- package/src/components/alert/alert.tsx +72 -0
- package/src/components/alert/index.ts +1 -0
- package/src/components/alert-dialog/alert-dialog.stories.tsx +129 -0
- package/src/components/alert-dialog/alert-dialog.test.tsx +187 -0
- package/src/components/alert-dialog/alert-dialog.tsx +91 -0
- package/src/components/alert-dialog/index.ts +1 -0
- package/src/components/aspect-ratio/aspect-ratio.stories.tsx +22 -0
- package/src/components/aspect-ratio/aspect-ratio.test.tsx +43 -0
- package/src/components/aspect-ratio/aspect-ratio.tsx +39 -0
- package/src/components/aspect-ratio/index.ts +1 -0
- package/src/components/avatar/avatar.stories.tsx +98 -0
- package/src/components/avatar/avatar.test.tsx +72 -0
- package/src/components/avatar/avatar.tsx +63 -0
- package/src/components/avatar/index.ts +1 -0
- package/src/components/badge/badge.stories.tsx +83 -0
- package/src/components/badge/badge.test.tsx +79 -0
- package/src/components/badge/badge.tsx +58 -0
- package/src/components/badge/index.ts +1 -0
- package/src/components/breadcrumb/breadcrumb.stories.tsx +89 -0
- package/src/components/breadcrumb/breadcrumb.test.tsx +132 -0
- package/src/components/breadcrumb/breadcrumb.tsx +115 -0
- package/src/components/breadcrumb/index.ts +1 -0
- package/src/components/button/button.stories.tsx +150 -0
- package/src/components/button/button.test.tsx +192 -0
- package/src/components/button/button.tsx +140 -0
- package/src/components/button/index.ts +1 -0
- package/src/components/calendar/calendar.stories.tsx +64 -0
- package/src/components/calendar/calendar.test.tsx +80 -0
- package/src/components/calendar/calendar.tsx +161 -0
- package/src/components/calendar/index.ts +1 -0
- package/src/components/card/card.stories.tsx +118 -0
- package/src/components/card/card.test.tsx +113 -0
- package/src/components/card/card.tsx +98 -0
- package/src/components/card/index.ts +1 -0
- package/src/components/carousel/carousel.stories.tsx +40 -0
- package/src/components/carousel/carousel.test.tsx +30 -0
- package/src/components/carousel/carousel.tsx +241 -0
- package/src/components/carousel/index.ts +10 -0
- package/src/components/chart/chart.stories.tsx +71 -0
- package/src/components/chart/chart.test.tsx +74 -0
- package/src/components/chart/chart.tsx +96 -0
- package/src/components/chart/index.ts +1 -0
- package/src/components/checkbox/checkbox.stories.tsx +118 -0
- package/src/components/checkbox/checkbox.test.tsx +118 -0
- package/src/components/checkbox/checkbox.tsx +58 -0
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/collapsible/collapsible.stories.tsx +75 -0
- package/src/components/collapsible/collapsible.test.tsx +98 -0
- package/src/components/collapsible/collapsible.tsx +23 -0
- package/src/components/collapsible/index.ts +1 -0
- package/src/components/color-swatch/color-swatch.stories.tsx +28 -0
- package/src/components/color-swatch/color-swatch.test.tsx +86 -0
- package/src/components/color-swatch/color-swatch.tsx +72 -0
- package/src/components/color-swatch/index.ts +5 -0
- package/src/components/combobox/combobox.stories.tsx +72 -0
- package/src/components/combobox/combobox.test.tsx +146 -0
- package/src/components/combobox/combobox.tsx +273 -0
- package/src/components/combobox/index.ts +1 -0
- package/src/components/command/command.stories.tsx +88 -0
- package/src/components/command/command.test.tsx +174 -0
- package/src/components/command/command.tsx +152 -0
- package/src/components/command/index.ts +1 -0
- package/src/components/context-menu/context-menu.stories.tsx +62 -0
- package/src/components/context-menu/context-menu.test.tsx +94 -0
- package/src/components/context-menu/context-menu.tsx +85 -0
- package/src/components/context-menu/index.ts +1 -0
- package/src/components/copy-button/copy-button.stories.tsx +21 -0
- package/src/components/copy-button/copy-button.test.tsx +33 -0
- package/src/components/copy-button/copy-button.tsx +71 -0
- package/src/components/copy-button/index.ts +1 -0
- package/src/components/data-table/data-table.stories.tsx +85 -0
- package/src/components/data-table/data-table.test.tsx +117 -0
- package/src/components/data-table/data-table.tsx +243 -0
- package/src/components/data-table/index.ts +1 -0
- package/src/components/date-picker/date-picker.stories.tsx +49 -0
- package/src/components/date-picker/date-picker.test.tsx +50 -0
- package/src/components/date-picker/date-picker.tsx +78 -0
- package/src/components/date-picker/index.ts +1 -0
- package/src/components/dialog/dialog.stories.tsx +131 -0
- package/src/components/dialog/dialog.test.tsx +197 -0
- package/src/components/dialog/dialog.tsx +97 -0
- package/src/components/dialog/index.ts +1 -0
- package/src/components/drawer/drawer.stories.tsx +158 -0
- package/src/components/drawer/drawer.test.tsx +189 -0
- package/src/components/drawer/drawer.tsx +99 -0
- package/src/components/drawer/index.ts +1 -0
- package/src/components/dropdown-menu/dropdown-menu.stories.tsx +96 -0
- package/src/components/dropdown-menu/dropdown-menu.test.tsx +139 -0
- package/src/components/dropdown-menu/dropdown-menu.tsx +88 -0
- package/src/components/dropdown-menu/index.ts +1 -0
- package/src/components/file-input/file-input.stories.tsx +50 -0
- package/src/components/file-input/file-input.test.tsx +85 -0
- package/src/components/file-input/file-input.tsx +91 -0
- package/src/components/file-input/index.ts +1 -0
- package/src/components/form/form.stories.tsx +86 -0
- package/src/components/form/form.test.tsx +246 -0
- package/src/components/form/form.tsx +210 -0
- package/src/components/form/index.ts +1 -0
- package/src/components/hover-card/hover-card.stories.tsx +74 -0
- package/src/components/hover-card/hover-card.test.tsx +63 -0
- package/src/components/hover-card/hover-card.tsx +85 -0
- package/src/components/hover-card/index.ts +1 -0
- package/src/components/input/index.ts +1 -0
- package/src/components/input/input.stories.tsx +146 -0
- package/src/components/input/input.test.tsx +74 -0
- package/src/components/input/input.tsx +39 -0
- package/src/components/input-otp/index.ts +6 -0
- package/src/components/input-otp/input-otp.stories.tsx +35 -0
- package/src/components/input-otp/input-otp.test.tsx +52 -0
- package/src/components/input-otp/input-otp.tsx +69 -0
- package/src/components/kbd/index.ts +1 -0
- package/src/components/kbd/kbd.stories.tsx +22 -0
- package/src/components/kbd/kbd.test.tsx +25 -0
- package/src/components/kbd/kbd.tsx +41 -0
- package/src/components/label/index.ts +1 -0
- package/src/components/label/label.stories.tsx +44 -0
- package/src/components/label/label.test.tsx +47 -0
- package/src/components/label/label.tsx +31 -0
- package/src/components/menubar/index.ts +1 -0
- package/src/components/menubar/menubar.stories.tsx +70 -0
- package/src/components/menubar/menubar.test.tsx +103 -0
- package/src/components/menubar/menubar.tsx +103 -0
- package/src/components/navigation-menu/index.ts +1 -0
- package/src/components/navigation-menu/navigation-menu.stories.tsx +118 -0
- package/src/components/navigation-menu/navigation-menu.test.tsx +84 -0
- package/src/components/navigation-menu/navigation-menu.tsx +111 -0
- package/src/components/number-field/index.ts +1 -0
- package/src/components/number-field/number-field.stories.tsx +69 -0
- package/src/components/number-field/number-field.test.tsx +76 -0
- package/src/components/number-field/number-field.tsx +48 -0
- package/src/components/pagination/index.ts +10 -0
- package/src/components/pagination/pagination.stories.tsx +46 -0
- package/src/components/pagination/pagination.test.tsx +48 -0
- package/src/components/pagination/pagination.tsx +106 -0
- package/src/components/popover/index.ts +1 -0
- package/src/components/popover/popover.stories.tsx +106 -0
- package/src/components/popover/popover.test.tsx +111 -0
- package/src/components/popover/popover.tsx +30 -0
- package/src/components/progress/index.ts +1 -0
- package/src/components/progress/progress.stories.tsx +172 -0
- package/src/components/progress/progress.test.tsx +68 -0
- package/src/components/progress/progress.tsx +156 -0
- package/src/components/radio-group/index.ts +1 -0
- package/src/components/radio-group/radio-group.stories.tsx +125 -0
- package/src/components/radio-group/radio-group.test.tsx +160 -0
- package/src/components/radio-group/radio-group.tsx +56 -0
- package/src/components/rating/index.ts +1 -0
- package/src/components/rating/rating.stories.tsx +39 -0
- package/src/components/rating/rating.test.tsx +103 -0
- package/src/components/rating/rating.tsx +134 -0
- package/src/components/resizable/index.ts +5 -0
- package/src/components/resizable/resizable.stories.tsx +36 -0
- package/src/components/resizable/resizable.test.tsx +42 -0
- package/src/components/resizable/resizable.tsx +43 -0
- package/src/components/scroll-area/index.ts +1 -0
- package/src/components/scroll-area/scroll-area.stories.tsx +48 -0
- package/src/components/scroll-area/scroll-area.test.tsx +52 -0
- package/src/components/scroll-area/scroll-area.tsx +46 -0
- package/src/components/select/index.ts +1 -0
- package/src/components/select/select.stories.tsx +89 -0
- package/src/components/select/select.test.tsx +162 -0
- package/src/components/select/select.tsx +89 -0
- package/src/components/separator/index.ts +1 -0
- package/src/components/separator/separator.stories.tsx +68 -0
- package/src/components/separator/separator.test.tsx +35 -0
- package/src/components/separator/separator.tsx +25 -0
- package/src/components/sheet/index.ts +1 -0
- package/src/components/sheet/sheet.stories.tsx +164 -0
- package/src/components/sheet/sheet.test.tsx +187 -0
- package/src/components/sheet/sheet.tsx +119 -0
- package/src/components/sidebar/index.ts +18 -0
- package/src/components/sidebar/sidebar.stories.tsx +100 -0
- package/src/components/sidebar/sidebar.test.tsx +108 -0
- package/src/components/sidebar/sidebar.tsx +428 -0
- package/src/components/skeleton/index.ts +1 -0
- package/src/components/skeleton/skeleton.stories.tsx +51 -0
- package/src/components/skeleton/skeleton.test.tsx +41 -0
- package/src/components/skeleton/skeleton.tsx +22 -0
- package/src/components/slider/index.ts +1 -0
- package/src/components/slider/slider.stories.tsx +95 -0
- package/src/components/slider/slider.test.tsx +58 -0
- package/src/components/slider/slider.tsx +34 -0
- package/src/components/sonner/index.ts +1 -0
- package/src/components/sonner/sonner.stories.tsx +34 -0
- package/src/components/sonner/sonner.test.tsx +15 -0
- package/src/components/sonner/sonner.tsx +28 -0
- package/src/components/spinner/index.ts +1 -0
- package/src/components/spinner/spinner.stories.tsx +66 -0
- package/src/components/spinner/spinner.test.tsx +49 -0
- package/src/components/spinner/spinner.tsx +65 -0
- package/src/components/stepper/index.ts +11 -0
- package/src/components/stepper/stepper.stories.tsx +51 -0
- package/src/components/stepper/stepper.test.tsx +50 -0
- package/src/components/stepper/stepper.tsx +129 -0
- package/src/components/switch/index.ts +1 -0
- package/src/components/switch/switch.stories.tsx +81 -0
- package/src/components/switch/switch.test.tsx +81 -0
- package/src/components/switch/switch.tsx +26 -0
- package/src/components/table/index.ts +1 -0
- package/src/components/table/table.stories.tsx +100 -0
- package/src/components/table/table.test.tsx +89 -0
- package/src/components/table/table.tsx +120 -0
- package/src/components/tabs/index.ts +1 -0
- package/src/components/tabs/tabs.stories.tsx +95 -0
- package/src/components/tabs/tabs.test.tsx +175 -0
- package/src/components/tabs/tabs.tsx +58 -0
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/textarea.stories.tsx +103 -0
- package/src/components/textarea/textarea.test.tsx +65 -0
- package/src/components/textarea/textarea.tsx +38 -0
- package/src/components/timeline/index.ts +12 -0
- package/src/components/timeline/timeline.stories.tsx +104 -0
- package/src/components/timeline/timeline.test.tsx +39 -0
- package/src/components/timeline/timeline.tsx +135 -0
- package/src/components/toast/index.ts +1 -0
- package/src/components/toast/toast.stories.tsx +170 -0
- package/src/components/toast/toast.test.tsx +159 -0
- package/src/components/toast/toast.tsx +136 -0
- package/src/components/toggle/index.ts +1 -0
- package/src/components/toggle/toggle.stories.tsx +106 -0
- package/src/components/toggle/toggle.test.tsx +87 -0
- package/src/components/toggle/toggle.tsx +41 -0
- package/src/components/toggle-group/index.ts +1 -0
- package/src/components/toggle-group/toggle-group.stories.tsx +123 -0
- package/src/components/toggle-group/toggle-group.test.tsx +102 -0
- package/src/components/toggle-group/toggle-group.tsx +58 -0
- package/src/components/tooltip/index.ts +1 -0
- package/src/components/tooltip/tooltip.stories.tsx +82 -0
- package/src/components/tooltip/tooltip.test.tsx +103 -0
- package/src/components/tooltip/tooltip.tsx +30 -0
- package/src/components/tree-view/index.ts +8 -0
- package/src/components/tree-view/tree-view.stories.tsx +61 -0
- package/src/components/tree-view/tree-view.test.tsx +36 -0
- package/src/components/tree-view/tree-view.tsx +116 -0
- package/src/index.ts +77 -0
- package/src/lib/utils.ts +38 -0
- package/src/test/contrast.ts +139 -0
- package/src/test/palette-contract.test.ts +697 -0
- package/src/test/public-entries.test.ts +118 -0
- package/src/test/setup.ts +94 -0
- package/src/test/sidebar-contract.test.ts +196 -0
- package/src/test/type-contract.test.ts +253 -0
- package/src/test/vitest-axe.d.ts +10 -0
- package/src/typography/typography.stories.tsx +172 -0
- package/styles/compiled.css +19 -0
- package/styles/globals.css +27 -0
- package/styles/theme.css +430 -0
- package/tsconfig.json +11 -0
- package/tsdown.config.ts +34 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { t as cn } from "./utils-BVF9WCwH.mjs";
|
|
2
|
+
import { Button } from "./components/button/index.mjs";
|
|
3
|
+
import { Badge } from "./components/badge/index.mjs";
|
|
4
|
+
import { n as ResizablePanel, r as ResizablePanelGroup, t as ResizableHandle } from "./resizable-DrJqbD5t.mjs";
|
|
5
|
+
import { i as TreeView, n as TreeItemContent, r as TreeItemTrigger, t as TreeItem } from "./tree-view-BB1ghmfC.mjs";
|
|
6
|
+
import { t as CopyButton } from "./copy-button-DebO1rhk.mjs";
|
|
7
|
+
import * as React from "react";
|
|
8
|
+
import { Layers, Play } from "lucide-react";
|
|
9
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region src/blocks/inspector-split-view/inspector-split-view.tsx
|
|
11
|
+
function InspectorSplitView({ nodes = [], selectedNodeId, defaultSelectedNodeId, onSelectNode, onAuditElement, className, ...props }) {
|
|
12
|
+
const isControlled = selectedNodeId !== void 0;
|
|
13
|
+
const [internalSelectedId, setInternalSelectedId] = React.useState(defaultSelectedNodeId ?? null);
|
|
14
|
+
const currentId = isControlled ? selectedNodeId : internalSelectedId;
|
|
15
|
+
const selected = (currentId ? findNodeById(nodes, currentId) : null) ?? (!isControlled ? nodes[0] ?? null : null);
|
|
16
|
+
const handleNodeClick = (node) => {
|
|
17
|
+
if (!isControlled) setInternalSelectedId(node.id);
|
|
18
|
+
onSelectNode?.(node);
|
|
19
|
+
};
|
|
20
|
+
function renderTree(item) {
|
|
21
|
+
const hasChildren = item.children && item.children.length > 0;
|
|
22
|
+
return /* @__PURE__ */ jsxs(TreeItem, {
|
|
23
|
+
defaultExpanded: true,
|
|
24
|
+
children: [/* @__PURE__ */ jsxs(TreeItemTrigger, {
|
|
25
|
+
onClick: () => handleNodeClick(item),
|
|
26
|
+
className: cn("min-w-0", selected?.id === item.id && "bg-accent text-accent-foreground font-medium"),
|
|
27
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
28
|
+
className: "font-mono text-xs text-primary font-semibold",
|
|
29
|
+
children: [
|
|
30
|
+
"<",
|
|
31
|
+
item.tag,
|
|
32
|
+
">"
|
|
33
|
+
]
|
|
34
|
+
}), /* @__PURE__ */ jsx("span", {
|
|
35
|
+
className: "font-mono text-xs text-muted-foreground truncate",
|
|
36
|
+
children: item.classes ? `.${item.classes.replace(/\s+/g, ".")}` : ""
|
|
37
|
+
})]
|
|
38
|
+
}), hasChildren && /* @__PURE__ */ jsx(TreeItemContent, { children: item.children.map(renderTree) })]
|
|
39
|
+
}, item.id);
|
|
40
|
+
}
|
|
41
|
+
return /* @__PURE__ */ jsx("div", {
|
|
42
|
+
className: cn("min-w-0 w-full max-w-full overflow-hidden rounded-lg border border-border bg-background h-[500px]", className),
|
|
43
|
+
...props,
|
|
44
|
+
children: /* @__PURE__ */ jsxs(ResizablePanelGroup, {
|
|
45
|
+
direction: "horizontal",
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ jsx(ResizablePanel, {
|
|
48
|
+
defaultSize: 40,
|
|
49
|
+
minSize: 25,
|
|
50
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
51
|
+
className: "flex h-full min-w-0 flex-col border-r border-border/60",
|
|
52
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
53
|
+
className: "flex items-center gap-2.5 border-b border-border/60 px-4 py-3.5",
|
|
54
|
+
children: [/* @__PURE__ */ jsx(Layers, { className: "h-4 w-4 shrink-0 text-muted-foreground" }), /* @__PURE__ */ jsx("span", {
|
|
55
|
+
className: "truncate text-xs font-medium text-muted-foreground",
|
|
56
|
+
children: "DOM Hierarchy"
|
|
57
|
+
})]
|
|
58
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
59
|
+
className: "min-w-0 flex-1 overflow-y-auto p-4",
|
|
60
|
+
children: /* @__PURE__ */ jsx(TreeView, { children: nodes.map(renderTree) })
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
}),
|
|
64
|
+
/* @__PURE__ */ jsx(ResizableHandle, { withHandle: true }),
|
|
65
|
+
/* @__PURE__ */ jsx(ResizablePanel, {
|
|
66
|
+
defaultSize: 60,
|
|
67
|
+
minSize: 30,
|
|
68
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
69
|
+
className: "flex h-full min-w-0 flex-col overflow-y-auto bg-surface-raised/50 px-6 py-5",
|
|
70
|
+
children: selected ? /* @__PURE__ */ jsxs("div", {
|
|
71
|
+
className: "flex min-w-0 flex-col gap-5",
|
|
72
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
73
|
+
className: "flex flex-wrap items-center justify-between gap-3 border-b border-border/60 pb-4",
|
|
74
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "flex min-w-0 items-center gap-2.5",
|
|
76
|
+
children: [/* @__PURE__ */ jsx(Badge, {
|
|
77
|
+
variant: "outline",
|
|
78
|
+
className: "font-mono uppercase",
|
|
79
|
+
children: selected.tag
|
|
80
|
+
}), selected.role && /* @__PURE__ */ jsxs(Badge, {
|
|
81
|
+
variant: "secondary",
|
|
82
|
+
children: [
|
|
83
|
+
"role=\"",
|
|
84
|
+
selected.role,
|
|
85
|
+
"\""
|
|
86
|
+
]
|
|
87
|
+
})]
|
|
88
|
+
}), onAuditElement && /* @__PURE__ */ jsxs(Button, {
|
|
89
|
+
size: "sm",
|
|
90
|
+
onClick: () => onAuditElement(selected),
|
|
91
|
+
className: "gap-1.5 text-xs",
|
|
92
|
+
children: [/* @__PURE__ */ jsx(Play, { className: "h-3 w-3" }), /* @__PURE__ */ jsx("span", { children: "Audit Element" })]
|
|
93
|
+
})]
|
|
94
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
95
|
+
className: "min-w-0 space-y-4",
|
|
96
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
97
|
+
className: "space-y-1.5",
|
|
98
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
99
|
+
className: "text-xs font-medium text-muted-foreground",
|
|
100
|
+
children: "Target Selector"
|
|
101
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
102
|
+
className: "flex min-w-0 items-center justify-between gap-3 rounded-md border border-border bg-secondary px-3.5 py-2.5 font-mono text-xs",
|
|
103
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
104
|
+
className: "min-w-0 truncate text-primary",
|
|
105
|
+
children: selected.selector
|
|
106
|
+
}), /* @__PURE__ */ jsx(CopyButton, {
|
|
107
|
+
value: selected.selector,
|
|
108
|
+
className: "h-7 w-7 shrink-0"
|
|
109
|
+
})]
|
|
110
|
+
})]
|
|
111
|
+
}), selected.classes && /* @__PURE__ */ jsxs("div", {
|
|
112
|
+
className: "space-y-1.5",
|
|
113
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
114
|
+
className: "text-xs font-medium text-muted-foreground",
|
|
115
|
+
children: "Class List"
|
|
116
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
117
|
+
className: "rounded-md border border-border bg-secondary px-3.5 py-2.5 font-mono text-xs text-muted-foreground break-all",
|
|
118
|
+
children: selected.classes
|
|
119
|
+
})]
|
|
120
|
+
})]
|
|
121
|
+
})]
|
|
122
|
+
}) : /* @__PURE__ */ jsx("div", {
|
|
123
|
+
className: "flex h-full items-center justify-center text-xs text-muted-foreground",
|
|
124
|
+
children: "Select an element from the DOM tree to inspect."
|
|
125
|
+
})
|
|
126
|
+
})
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
})
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function findNodeById(nodes, id) {
|
|
133
|
+
for (const node of nodes) {
|
|
134
|
+
if (node.id === id) return node;
|
|
135
|
+
if (node.children) {
|
|
136
|
+
const found = findNodeById(node.children, id);
|
|
137
|
+
if (found) return found;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
return null;
|
|
141
|
+
}
|
|
142
|
+
//#endregion
|
|
143
|
+
export { InspectorSplitView as t };
|
|
144
|
+
|
|
145
|
+
//# sourceMappingURL=inspector-split-view-D5tX9P5r.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inspector-split-view-D5tX9P5r.mjs","names":[],"sources":["../src/blocks/inspector-split-view/inspector-split-view.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Layers, Play } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\nimport {\n ResizablePanelGroup,\n ResizablePanel,\n ResizableHandle,\n} from \"../../components/resizable\";\nimport {\n TreeView,\n TreeItem,\n TreeItemTrigger,\n TreeItemContent,\n} from \"../../components/tree-view\";\nimport { Badge } from \"../../components/badge\";\nimport { Button } from \"../../components/button\";\nimport { CopyButton } from \"../../components/copy-button\";\n\nexport interface DOMNodeItem {\n id: string;\n tag: string;\n selector: string;\n classes?: string;\n role?: string;\n children?: DOMNodeItem[];\n}\n\nexport interface InspectorSplitViewProps\n extends React.HTMLAttributes<HTMLDivElement> {\n nodes?: DOMNodeItem[];\n selectedNodeId?: string;\n defaultSelectedNodeId?: string;\n onSelectNode?: (node: DOMNodeItem) => void;\n onAuditElement?: (node: DOMNodeItem) => void;\n}\n\nexport function InspectorSplitView({\n nodes = [],\n selectedNodeId,\n defaultSelectedNodeId,\n onSelectNode,\n onAuditElement,\n className,\n ...props\n}: InspectorSplitViewProps) {\n const isControlled = selectedNodeId !== undefined;\n const [internalSelectedId, setInternalSelectedId] = React.useState<\n string | null\n >(defaultSelectedNodeId ?? null);\n\n const currentId = isControlled ? selectedNodeId : internalSelectedId;\n const matchedNode = currentId ? findNodeById(nodes, currentId) : null;\n const selected = matchedNode ?? (!isControlled ? nodes[0] ?? null : null);\n\n const handleNodeClick = (node: DOMNodeItem) => {\n if (!isControlled) {\n setInternalSelectedId(node.id);\n }\n onSelectNode?.(node);\n };\n\n function renderTree(item: DOMNodeItem) {\n const hasChildren = item.children && item.children.length > 0;\n const isSelected = selected?.id === item.id;\n\n return (\n <TreeItem key={item.id} defaultExpanded>\n <TreeItemTrigger\n onClick={() => handleNodeClick(item)}\n className={cn(\n \"min-w-0\",\n isSelected && \"bg-accent text-accent-foreground font-medium\"\n )}\n >\n <span className=\"font-mono text-xs text-primary font-semibold\">\n <{item.tag}>\n </span>\n <span className=\"font-mono text-xs text-muted-foreground truncate\">\n {item.classes ? `.${item.classes.replace(/\\s+/g, \".\")}` : \"\"}\n </span>\n </TreeItemTrigger>\n {hasChildren && (\n <TreeItemContent>{item.children!.map(renderTree)}</TreeItemContent>\n )}\n </TreeItem>\n );\n }\n\n return (\n <div\n className={cn(\n \"min-w-0 w-full max-w-full overflow-hidden rounded-lg border border-border bg-background h-[500px]\",\n className\n )}\n {...props}\n >\n <ResizablePanelGroup direction=\"horizontal\">\n <ResizablePanel defaultSize={40} minSize={25}>\n <div className=\"flex h-full min-w-0 flex-col border-r border-border/60\">\n <div className=\"flex items-center gap-2.5 border-b border-border/60 px-4 py-3.5\">\n <Layers className=\"h-4 w-4 shrink-0 text-muted-foreground\" />\n <span className=\"truncate text-xs font-medium text-muted-foreground\">\n DOM Hierarchy\n </span>\n </div>\n <div className=\"min-w-0 flex-1 overflow-y-auto p-4\">\n <TreeView>{nodes.map(renderTree)}</TreeView>\n </div>\n </div>\n </ResizablePanel>\n\n <ResizableHandle withHandle />\n\n <ResizablePanel defaultSize={60} minSize={30}>\n <div className=\"flex h-full min-w-0 flex-col overflow-y-auto bg-surface-raised/50 px-6 py-5\">\n {selected ? (\n <div className=\"flex min-w-0 flex-col gap-5\">\n <div className=\"flex flex-wrap items-center justify-between gap-3 border-b border-border/60 pb-4\">\n <div className=\"flex min-w-0 items-center gap-2.5\">\n <Badge variant=\"outline\" className=\"font-mono uppercase\">\n {selected.tag}\n </Badge>\n {selected.role && (\n <Badge variant=\"secondary\">role=\"{selected.role}\"</Badge>\n )}\n </div>\n {onAuditElement && (\n <Button\n size=\"sm\"\n onClick={() => onAuditElement(selected)}\n className=\"gap-1.5 text-xs\"\n >\n <Play className=\"h-3 w-3\" />\n <span>Audit Element</span>\n </Button>\n )}\n </div>\n\n <div className=\"min-w-0 space-y-4\">\n <div className=\"space-y-1.5\">\n <span className=\"text-xs font-medium text-muted-foreground\">\n Target Selector\n </span>\n <div className=\"flex min-w-0 items-center justify-between gap-3 rounded-md border border-border bg-secondary px-3.5 py-2.5 font-mono text-xs\">\n <span className=\"min-w-0 truncate text-primary\">\n {selected.selector}\n </span>\n <CopyButton\n value={selected.selector}\n className=\"h-7 w-7 shrink-0\"\n />\n </div>\n </div>\n\n {selected.classes && (\n <div className=\"space-y-1.5\">\n <span className=\"text-xs font-medium text-muted-foreground\">\n Class List\n </span>\n <div className=\"rounded-md border border-border bg-secondary px-3.5 py-2.5 font-mono text-xs text-muted-foreground break-all\">\n {selected.classes}\n </div>\n </div>\n )}\n </div>\n </div>\n ) : (\n <div className=\"flex h-full items-center justify-center text-xs text-muted-foreground\">\n Select an element from the DOM tree to inspect.\n </div>\n )}\n </div>\n </ResizablePanel>\n </ResizablePanelGroup>\n </div>\n );\n}\n\nfunction findNodeById(nodes: DOMNodeItem[], id: string): DOMNodeItem | null {\n for (const node of nodes) {\n if (node.id === id) return node;\n if (node.children) {\n const found = findNodeById(node.children, id);\n if (found) return found;\n }\n }\n return null;\n}\n"],"mappings":"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"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { t as cn } from "./utils-BVF9WCwH.mjs";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { cva } from "class-variance-authority";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/kbd/kbd.tsx
|
|
6
|
+
const kbdVariants = cva("inline-flex items-center justify-center select-none font-mono font-medium rounded-sm border border-border bg-card text-foreground", {
|
|
7
|
+
variants: {
|
|
8
|
+
variant: {
|
|
9
|
+
default: "bg-card text-foreground border-border",
|
|
10
|
+
outline: "bg-background text-foreground border-border",
|
|
11
|
+
secondary: "bg-secondary text-secondary-foreground border-transparent",
|
|
12
|
+
ghost: "border-transparent bg-transparent text-muted-foreground"
|
|
13
|
+
},
|
|
14
|
+
size: {
|
|
15
|
+
sm: "h-5 min-w-5 px-1 text-[10px]",
|
|
16
|
+
md: "h-6 min-w-6 px-1.5 text-xs",
|
|
17
|
+
lg: "h-7 min-w-7 px-2 text-sm"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
defaultVariants: {
|
|
21
|
+
variant: "default",
|
|
22
|
+
size: "md"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const Kbd = React.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx("kbd", {
|
|
26
|
+
ref,
|
|
27
|
+
className: cn(kbdVariants({
|
|
28
|
+
variant,
|
|
29
|
+
size
|
|
30
|
+
}), className),
|
|
31
|
+
...props
|
|
32
|
+
}));
|
|
33
|
+
Kbd.displayName = "Kbd";
|
|
34
|
+
//#endregion
|
|
35
|
+
export { kbdVariants as n, Kbd as t };
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=kbd-D9Ymi9Pt.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"kbd-D9Ymi9Pt.mjs","names":[],"sources":["../src/components/kbd/kbd.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { cva, type VariantProps } from \"class-variance-authority\";\nimport { cn } from \"../../lib/utils\";\n\nexport const kbdVariants = cva(\n \"inline-flex items-center justify-center select-none font-mono font-medium rounded-sm border border-border bg-card text-foreground\",\n {\n variants: {\n variant: {\n default: \"bg-card text-foreground border-border\",\n outline: \"bg-background text-foreground border-border\",\n secondary: \"bg-secondary text-secondary-foreground border-transparent\",\n ghost: \"border-transparent bg-transparent text-muted-foreground\",\n },\n size: {\n sm: \"h-5 min-w-5 px-1 text-[10px]\",\n md: \"h-6 min-w-6 px-1.5 text-xs\",\n lg: \"h-7 min-w-7 px-2 text-sm\",\n },\n },\n defaultVariants: {\n variant: \"default\",\n size: \"md\",\n },\n }\n);\n\nexport interface KbdProps\n extends React.HTMLAttributes<HTMLElement>,\n VariantProps<typeof kbdVariants> {}\n\nexport const Kbd = React.forwardRef<HTMLElement, KbdProps>(\n ({ className, variant, size, ...props }, ref) => (\n <kbd\n ref={ref}\n className={cn(kbdVariants({ variant, size }), className)}\n {...props}\n />\n )\n);\nKbd.displayName = \"Kbd\";\n"],"mappings":";;;;;AAIA,MAAa,cAAc,IACzB,qIACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SAAS;GACT,WAAW;GACX,OAAO;EACT;EACA,MAAM;GACJ,IAAI;GACJ,IAAI;GACJ,IAAI;EACN;CACF;CACA,iBAAiB;EACf,SAAS;EACT,MAAM;CACR;AACF,CACF;AAMA,MAAa,MAAM,MAAM,YACtB,EAAE,WAAW,SAAS,MAAM,GAAG,SAAS,QACvC,oBAAC,OAAD;CACO;CACL,WAAW,GAAG,YAAY;EAAE;EAAS;CAAK,CAAC,GAAG,SAAS;CACvD,GAAI;AACL,CAAA,CAEL;AACA,IAAI,cAAc"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
|
|
2
|
+
const require_utils = require("./utils-YZxtPI0Y.cjs");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
5
|
+
let class_variance_authority = require("class-variance-authority");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
//#region src/components/kbd/kbd.tsx
|
|
8
|
+
const kbdVariants = (0, class_variance_authority.cva)("inline-flex items-center justify-center select-none font-mono font-medium rounded-sm border border-border bg-card text-foreground", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
default: "bg-card text-foreground border-border",
|
|
12
|
+
outline: "bg-background text-foreground border-border",
|
|
13
|
+
secondary: "bg-secondary text-secondary-foreground border-transparent",
|
|
14
|
+
ghost: "border-transparent bg-transparent text-muted-foreground"
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
sm: "h-5 min-w-5 px-1 text-[10px]",
|
|
18
|
+
md: "h-6 min-w-6 px-1.5 text-xs",
|
|
19
|
+
lg: "h-7 min-w-7 px-2 text-sm"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
defaultVariants: {
|
|
23
|
+
variant: "default",
|
|
24
|
+
size: "md"
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const Kbd = react.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("kbd", {
|
|
28
|
+
ref,
|
|
29
|
+
className: require_utils.cn(kbdVariants({
|
|
30
|
+
variant,
|
|
31
|
+
size
|
|
32
|
+
}), className),
|
|
33
|
+
...props
|
|
34
|
+
}));
|
|
35
|
+
Kbd.displayName = "Kbd";
|
|
36
|
+
//#endregion
|
|
37
|
+
Object.defineProperty(exports, "Kbd", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
get: function() {
|
|
40
|
+
return Kbd;
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
Object.defineProperty(exports, "kbdVariants", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function() {
|
|
46
|
+
return kbdVariants;
|
|
47
|
+
}
|
|
48
|
+
});
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
const require_rolldown_runtime = require("./rolldown-runtime-D6vf50IK.cjs");
|
|
2
|
+
const require_utils = require("./utils-YZxtPI0Y.cjs");
|
|
3
|
+
const require_components_button_index = require("./components/button/index.cjs");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
6
|
+
let lucide_react = require("lucide-react");
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
//#region src/components/pagination/pagination.tsx
|
|
9
|
+
const Pagination = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
|
|
10
|
+
role: "navigation",
|
|
11
|
+
"aria-label": "pagination",
|
|
12
|
+
className: require_utils.cn("mx-auto flex w-full justify-center", className),
|
|
13
|
+
...props
|
|
14
|
+
});
|
|
15
|
+
Pagination.displayName = "Pagination";
|
|
16
|
+
const PaginationContent = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ul", {
|
|
17
|
+
ref,
|
|
18
|
+
className: require_utils.cn("flex flex-row items-center gap-1", className),
|
|
19
|
+
...props
|
|
20
|
+
}));
|
|
21
|
+
PaginationContent.displayName = "PaginationContent";
|
|
22
|
+
const PaginationItem = react.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
23
|
+
ref,
|
|
24
|
+
className: require_utils.cn("", className),
|
|
25
|
+
...props
|
|
26
|
+
}));
|
|
27
|
+
PaginationItem.displayName = "PaginationItem";
|
|
28
|
+
const PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
29
|
+
"aria-current": isActive ? "page" : void 0,
|
|
30
|
+
className: require_utils.cn(require_components_button_index.buttonVariants({
|
|
31
|
+
variant: isActive ? "outline" : "ghost",
|
|
32
|
+
size
|
|
33
|
+
}), className),
|
|
34
|
+
...props
|
|
35
|
+
});
|
|
36
|
+
PaginationLink.displayName = "PaginationLink";
|
|
37
|
+
const PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PaginationLink, {
|
|
38
|
+
"aria-label": "Go to previous page",
|
|
39
|
+
size: "md",
|
|
40
|
+
className: require_utils.cn("gap-1 pl-2.5", className),
|
|
41
|
+
...props,
|
|
42
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronLeft, { className: "h-4 w-4" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: "Previous" })]
|
|
43
|
+
});
|
|
44
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
45
|
+
const PaginationNext = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(PaginationLink, {
|
|
46
|
+
"aria-label": "Go to next page",
|
|
47
|
+
size: "md",
|
|
48
|
+
className: require_utils.cn("gap-1 pr-2.5", className),
|
|
49
|
+
...props,
|
|
50
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: "Next" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.ChevronRight, { className: "h-4 w-4" })]
|
|
51
|
+
});
|
|
52
|
+
PaginationNext.displayName = "PaginationNext";
|
|
53
|
+
const PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("span", {
|
|
54
|
+
"aria-hidden": true,
|
|
55
|
+
className: require_utils.cn("flex h-9 w-9 items-center justify-center", className),
|
|
56
|
+
...props,
|
|
57
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
58
|
+
className: "sr-only",
|
|
59
|
+
children: "More pages"
|
|
60
|
+
})]
|
|
61
|
+
});
|
|
62
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
63
|
+
//#endregion
|
|
64
|
+
Object.defineProperty(exports, "Pagination", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function() {
|
|
67
|
+
return Pagination;
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(exports, "PaginationContent", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
get: function() {
|
|
73
|
+
return PaginationContent;
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(exports, "PaginationEllipsis", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function() {
|
|
79
|
+
return PaginationEllipsis;
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(exports, "PaginationItem", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
get: function() {
|
|
85
|
+
return PaginationItem;
|
|
86
|
+
}
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(exports, "PaginationLink", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
get: function() {
|
|
91
|
+
return PaginationLink;
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(exports, "PaginationNext", {
|
|
95
|
+
enumerable: true,
|
|
96
|
+
get: function() {
|
|
97
|
+
return PaginationNext;
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
Object.defineProperty(exports, "PaginationPrevious", {
|
|
101
|
+
enumerable: true,
|
|
102
|
+
get: function() {
|
|
103
|
+
return PaginationPrevious;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { t as cn } from "./utils-BVF9WCwH.mjs";
|
|
2
|
+
import { buttonVariants } from "./components/button/index.mjs";
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/components/pagination/pagination.tsx
|
|
7
|
+
const Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx("nav", {
|
|
8
|
+
role: "navigation",
|
|
9
|
+
"aria-label": "pagination",
|
|
10
|
+
className: cn("mx-auto flex w-full justify-center", className),
|
|
11
|
+
...props
|
|
12
|
+
});
|
|
13
|
+
Pagination.displayName = "Pagination";
|
|
14
|
+
const PaginationContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("ul", {
|
|
15
|
+
ref,
|
|
16
|
+
className: cn("flex flex-row items-center gap-1", className),
|
|
17
|
+
...props
|
|
18
|
+
}));
|
|
19
|
+
PaginationContent.displayName = "PaginationContent";
|
|
20
|
+
const PaginationItem = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("li", {
|
|
21
|
+
ref,
|
|
22
|
+
className: cn("", className),
|
|
23
|
+
...props
|
|
24
|
+
}));
|
|
25
|
+
PaginationItem.displayName = "PaginationItem";
|
|
26
|
+
const PaginationLink = ({ className, isActive, size = "icon", ...props }) => /* @__PURE__ */ jsx("a", {
|
|
27
|
+
"aria-current": isActive ? "page" : void 0,
|
|
28
|
+
className: cn(buttonVariants({
|
|
29
|
+
variant: isActive ? "outline" : "ghost",
|
|
30
|
+
size
|
|
31
|
+
}), className),
|
|
32
|
+
...props
|
|
33
|
+
});
|
|
34
|
+
PaginationLink.displayName = "PaginationLink";
|
|
35
|
+
const PaginationPrevious = ({ className, ...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
|
|
36
|
+
"aria-label": "Go to previous page",
|
|
37
|
+
size: "md",
|
|
38
|
+
className: cn("gap-1 pl-2.5", className),
|
|
39
|
+
...props,
|
|
40
|
+
children: [/* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", { children: "Previous" })]
|
|
41
|
+
});
|
|
42
|
+
PaginationPrevious.displayName = "PaginationPrevious";
|
|
43
|
+
const PaginationNext = ({ className, ...props }) => /* @__PURE__ */ jsxs(PaginationLink, {
|
|
44
|
+
"aria-label": "Go to next page",
|
|
45
|
+
size: "md",
|
|
46
|
+
className: cn("gap-1 pr-2.5", className),
|
|
47
|
+
...props,
|
|
48
|
+
children: [/* @__PURE__ */ jsx("span", { children: "Next" }), /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })]
|
|
49
|
+
});
|
|
50
|
+
PaginationNext.displayName = "PaginationNext";
|
|
51
|
+
const PaginationEllipsis = ({ className, ...props }) => /* @__PURE__ */ jsxs("span", {
|
|
52
|
+
"aria-hidden": true,
|
|
53
|
+
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
54
|
+
...props,
|
|
55
|
+
children: [/* @__PURE__ */ jsx(MoreHorizontal, { className: "h-4 w-4" }), /* @__PURE__ */ jsx("span", {
|
|
56
|
+
className: "sr-only",
|
|
57
|
+
children: "More pages"
|
|
58
|
+
})]
|
|
59
|
+
});
|
|
60
|
+
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
61
|
+
//#endregion
|
|
62
|
+
export { PaginationLink as a, PaginationItem as i, PaginationContent as n, PaginationNext as o, PaginationEllipsis as r, PaginationPrevious as s, Pagination as t };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=pagination-ivrgsud6.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination-ivrgsud6.mjs","names":[],"sources":["../src/components/pagination/pagination.tsx"],"sourcesContent":["import * as React from \"react\";\nimport { ChevronLeft, ChevronRight, MoreHorizontal } from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\nimport { buttonVariants, type ButtonProps } from \"../button\";\n\nexport const Pagination = ({ className, ...props }: React.ComponentProps<\"nav\">) => (\n <nav\n role=\"navigation\"\n aria-label=\"pagination\"\n className={cn(\"mx-auto flex w-full justify-center\", className)}\n {...props}\n />\n);\nPagination.displayName = \"Pagination\";\n\nexport const PaginationContent = React.forwardRef<\n HTMLUListElement,\n React.ComponentProps<\"ul\">\n>(({ className, ...props }, ref) => (\n <ul\n ref={ref}\n className={cn(\"flex flex-row items-center gap-1\", className)}\n {...props}\n />\n));\nPaginationContent.displayName = \"PaginationContent\";\n\nexport const PaginationItem = React.forwardRef<\n HTMLLIElement,\n React.ComponentProps<\"li\">\n>(({ className, ...props }, ref) => (\n <li ref={ref} className={cn(\"\", className)} {...props} />\n));\nPaginationItem.displayName = \"PaginationItem\";\n\nexport type PaginationLinkProps = {\n isActive?: boolean;\n} & Pick<ButtonProps, \"size\"> &\n React.ComponentProps<\"a\">;\n\nexport const PaginationLink = ({\n className,\n isActive,\n size = \"icon\",\n ...props\n}: PaginationLinkProps) => (\n <a\n aria-current={isActive ? \"page\" : undefined}\n className={cn(\n buttonVariants({\n variant: isActive ? \"outline\" : \"ghost\",\n size,\n }),\n className\n )}\n {...props}\n />\n);\nPaginationLink.displayName = \"PaginationLink\";\n\nexport const PaginationPrevious = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to previous page\"\n size=\"md\"\n className={cn(\"gap-1 pl-2.5\", className)}\n {...props}\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span>Previous</span>\n </PaginationLink>\n);\nPaginationPrevious.displayName = \"PaginationPrevious\";\n\nexport const PaginationNext = ({\n className,\n ...props\n}: React.ComponentProps<typeof PaginationLink>) => (\n <PaginationLink\n aria-label=\"Go to next page\"\n size=\"md\"\n className={cn(\"gap-1 pr-2.5\", className)}\n {...props}\n >\n <span>Next</span>\n <ChevronRight className=\"h-4 w-4\" />\n </PaginationLink>\n);\nPaginationNext.displayName = \"PaginationNext\";\n\nexport const PaginationEllipsis = ({\n className,\n ...props\n}: React.ComponentProps<\"span\">) => (\n <span\n aria-hidden\n className={cn(\"flex h-9 w-9 items-center justify-center\", className)}\n {...props}\n >\n <MoreHorizontal className=\"h-4 w-4\" />\n <span className=\"sr-only\">More pages</span>\n </span>\n);\nPaginationEllipsis.displayName = \"PaginationEllipsis\";\n"],"mappings":";;;;;;AAKA,MAAa,cAAc,EAAE,WAAW,GAAG,YACzC,oBAAC,OAAD;CACE,MAAK;CACL,cAAW;CACX,WAAW,GAAG,sCAAsC,SAAS;CAC7D,GAAI;AACL,CAAA;AAEH,WAAW,cAAc;AAEzB,MAAa,oBAAoB,MAAM,YAGpC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CACO;CACL,WAAW,GAAG,oCAAoC,SAAS;CAC3D,GAAI;AACL,CAAA,CACF;AACD,kBAAkB,cAAc;AAEhC,MAAa,iBAAiB,MAAM,YAGjC,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,MAAD;CAAS;CAAK,WAAW,GAAG,IAAI,SAAS;CAAG,GAAI;AAAQ,CAAA,CACzD;AACD,eAAe,cAAc;AAO7B,MAAa,kBAAkB,EAC7B,WACA,UACA,OAAO,QACP,GAAG,YAEH,oBAAC,KAAD;CACE,gBAAc,WAAW,SAAS,KAAA;CAClC,WAAW,GACT,eAAe;EACb,SAAS,WAAW,YAAY;EAChC;CACF,CAAC,GACD,SACF;CACA,GAAI;AACL,CAAA;AAEH,eAAe,cAAc;AAE7B,MAAa,sBAAsB,EACjC,WACA,GAAG,YAEH,qBAAC,gBAAD;CACE,cAAW;CACX,MAAK;CACL,WAAW,GAAG,gBAAgB,SAAS;CACvC,GAAI;CAJN,UAAA,CAME,oBAAC,aAAD,EAAa,WAAU,UAAW,CAAA,GAClC,oBAAC,QAAD,EAAA,UAAM,WAAc,CAAA,CACN;;AAElB,mBAAmB,cAAc;AAEjC,MAAa,kBAAkB,EAC7B,WACA,GAAG,YAEH,qBAAC,gBAAD;CACE,cAAW;CACX,MAAK;CACL,WAAW,GAAG,gBAAgB,SAAS;CACvC,GAAI;CAJN,UAAA,CAME,oBAAC,QAAD,EAAA,UAAM,OAAU,CAAA,GAChB,oBAAC,cAAD,EAAc,WAAU,UAAW,CAAA,CACrB;;AAElB,eAAe,cAAc;AAE7B,MAAa,sBAAsB,EACjC,WACA,GAAG,YAEH,qBAAC,QAAD;CACE,eAAA;CACA,WAAW,GAAG,4CAA4C,SAAS;CACnE,GAAI;CAHN,UAAA,CAKE,oBAAC,gBAAD,EAAgB,WAAU,UAAW,CAAA,GACrC,oBAAC,QAAD;EAAM,WAAU;EAAU,UAAA;CAAgB,CAAA,CACtC;;AAER,mBAAmB,cAAc"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { t as cn } from "./utils-BVF9WCwH.mjs";
|
|
2
|
+
import { Button } from "./components/button/index.mjs";
|
|
3
|
+
import { Badge } from "./components/badge/index.mjs";
|
|
4
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuTrigger } from "./components/dropdown-menu/index.mjs";
|
|
5
|
+
import { Avatar, AvatarFallback, AvatarImage } from "./components/avatar/index.mjs";
|
|
6
|
+
import { Card } from "./components/card/index.mjs";
|
|
7
|
+
import "react";
|
|
8
|
+
import { AlertCircle, CheckCircle2, Clock, Eye, MoreHorizontal, Plus } from "lucide-react";
|
|
9
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
10
|
+
//#region src/blocks/project-kanban-board/project-kanban-board.tsx
|
|
11
|
+
const COLUMNS = [
|
|
12
|
+
{
|
|
13
|
+
id: "TODO",
|
|
14
|
+
title: "To Do",
|
|
15
|
+
icon: /* @__PURE__ */ jsx(AlertCircle, { className: "h-4 w-4 text-muted-foreground" })
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
id: "IN_PROGRESS",
|
|
19
|
+
title: "In Progress",
|
|
20
|
+
icon: /* @__PURE__ */ jsx(Clock, { className: "h-4 w-4 text-signal-teal-foreground" })
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: "REVIEW",
|
|
24
|
+
title: "In Review",
|
|
25
|
+
icon: /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4 text-iris-violet-foreground" })
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: "DONE",
|
|
29
|
+
title: "Done",
|
|
30
|
+
icon: /* @__PURE__ */ jsx(CheckCircle2, { className: "h-4 w-4 text-pulse-green-foreground" })
|
|
31
|
+
}
|
|
32
|
+
];
|
|
33
|
+
function ProjectKanbanBoard({ tasks = [], onTaskMove, onTaskClick, onAddTask, className, ...props }) {
|
|
34
|
+
const getTasksByStatus = (status) => tasks.filter((t) => t.status === status);
|
|
35
|
+
return /* @__PURE__ */ jsx("div", {
|
|
36
|
+
className: cn("grid grid-cols-1 gap-4 md:grid-cols-4 md:gap-5 w-full", className),
|
|
37
|
+
...props,
|
|
38
|
+
children: COLUMNS.map((column) => {
|
|
39
|
+
const columnTasks = getTasksByStatus(column.id);
|
|
40
|
+
return /* @__PURE__ */ jsxs("section", {
|
|
41
|
+
"aria-label": column.title,
|
|
42
|
+
className: "flex min-h-0 flex-col rounded-lg border border-border bg-surface-raised p-4 md:h-full md:min-h-[480px]",
|
|
43
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
44
|
+
className: "flex items-center justify-between gap-2 pb-3.5 border-b border-border",
|
|
45
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
46
|
+
className: "flex items-center gap-2.5",
|
|
47
|
+
children: [
|
|
48
|
+
column.icon,
|
|
49
|
+
/* @__PURE__ */ jsx("span", {
|
|
50
|
+
className: "text-xs font-semibold text-foreground",
|
|
51
|
+
children: column.title
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ jsx(Badge, {
|
|
54
|
+
variant: "neutral",
|
|
55
|
+
className: "h-5 px-2 text-[11px] font-mono text-muted-foreground border-border tabular-nums",
|
|
56
|
+
children: columnTasks.length
|
|
57
|
+
})
|
|
58
|
+
]
|
|
59
|
+
}), onAddTask && /* @__PURE__ */ jsx(Button, {
|
|
60
|
+
variant: "ghost",
|
|
61
|
+
size: "icon",
|
|
62
|
+
className: "h-7 w-7 text-muted-foreground hover:text-foreground",
|
|
63
|
+
onClick: () => onAddTask(column.id),
|
|
64
|
+
"aria-label": `Add task to ${column.title}`,
|
|
65
|
+
children: /* @__PURE__ */ jsx(Plus, { className: "h-3.5 w-3.5" })
|
|
66
|
+
})]
|
|
67
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
68
|
+
className: "flex flex-col gap-3.5 pt-4 md:flex-1 md:overflow-y-auto",
|
|
69
|
+
children: [columnTasks.length === 0 && /* @__PURE__ */ jsx("p", {
|
|
70
|
+
className: "rounded-md border border-dashed border-border/70 px-4 py-8 text-center text-xs text-muted-foreground",
|
|
71
|
+
children: "No tasks in this column."
|
|
72
|
+
}), columnTasks.map((task) => /* @__PURE__ */ jsxs(Card, {
|
|
73
|
+
className: "p-4 border border-border bg-card hover:border-hairline-strong transition-colors",
|
|
74
|
+
children: [
|
|
75
|
+
/* @__PURE__ */ jsxs("div", {
|
|
76
|
+
className: "flex items-center justify-between gap-2 mb-3",
|
|
77
|
+
children: [task.heuristicTag && /* @__PURE__ */ jsx(Badge, {
|
|
78
|
+
variant: "neutral",
|
|
79
|
+
className: "font-mono text-[10px] px-1.5 py-0 border-border",
|
|
80
|
+
children: task.heuristicTag
|
|
81
|
+
}), task.severity && /* @__PURE__ */ jsx(Badge, {
|
|
82
|
+
variant: task.severity === "CRITICAL" ? "coral-red" : task.severity === "GOOD" ? "pulse-green" : "signal-teal",
|
|
83
|
+
className: "text-[10px] px-1.5 py-0",
|
|
84
|
+
children: task.severity
|
|
85
|
+
})]
|
|
86
|
+
}),
|
|
87
|
+
onTaskClick ? /* @__PURE__ */ jsx("button", {
|
|
88
|
+
type: "button",
|
|
89
|
+
onClick: () => onTaskClick(task),
|
|
90
|
+
"aria-label": `Open task ${task.title}`,
|
|
91
|
+
className: "block w-full rounded-sm text-left text-xs font-medium text-card-foreground leading-snug line-clamp-2 mb-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card",
|
|
92
|
+
children: task.title
|
|
93
|
+
}) : /* @__PURE__ */ jsx("p", {
|
|
94
|
+
className: "text-xs font-medium text-card-foreground leading-snug line-clamp-2 mb-3",
|
|
95
|
+
children: task.title
|
|
96
|
+
}),
|
|
97
|
+
/* @__PURE__ */ jsxs("div", {
|
|
98
|
+
className: "flex items-center justify-between text-xs text-muted-foreground pt-2.5 border-t border-border/50",
|
|
99
|
+
children: [/* @__PURE__ */ jsxs("span", {
|
|
100
|
+
className: "text-[10px] font-mono text-muted-foreground",
|
|
101
|
+
children: ["#", task.id]
|
|
102
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
103
|
+
className: "flex items-center gap-1.5",
|
|
104
|
+
children: [task.assigneeName && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
105
|
+
className: "text-[10px] truncate max-w-[80px] text-muted-foreground",
|
|
106
|
+
children: task.assigneeName
|
|
107
|
+
}), /* @__PURE__ */ jsxs(Avatar, {
|
|
108
|
+
className: "h-4 w-4 border border-border",
|
|
109
|
+
children: [task.assigneeAvatar && /* @__PURE__ */ jsx(AvatarImage, { src: task.assigneeAvatar }), /* @__PURE__ */ jsx(AvatarFallback, {
|
|
110
|
+
className: "text-[8px] bg-muted text-foreground",
|
|
111
|
+
children: task.assigneeName.slice(0, 2).toUpperCase()
|
|
112
|
+
})]
|
|
113
|
+
})] }), onTaskMove && /* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
114
|
+
variant: "ghost",
|
|
115
|
+
size: "icon",
|
|
116
|
+
className: "h-6 w-6 text-muted-foreground hover:text-foreground",
|
|
117
|
+
"aria-label": `Move task ${task.title}`,
|
|
118
|
+
children: /* @__PURE__ */ jsx(MoreHorizontal, { className: "h-3.5 w-3.5" })
|
|
119
|
+
}) }), /* @__PURE__ */ jsx(DropdownMenuContent, {
|
|
120
|
+
align: "end",
|
|
121
|
+
children: /* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [/* @__PURE__ */ jsx(DropdownMenuLabel, { children: "Move to" }), COLUMNS.filter((target) => target.id !== task.status).map((target) => /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
122
|
+
onClick: () => onTaskMove(task.id, target.id),
|
|
123
|
+
children: target.title
|
|
124
|
+
}, target.id))] })
|
|
125
|
+
})] })]
|
|
126
|
+
})]
|
|
127
|
+
})
|
|
128
|
+
]
|
|
129
|
+
}, task.id))]
|
|
130
|
+
})]
|
|
131
|
+
}, column.id);
|
|
132
|
+
})
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
//#endregion
|
|
136
|
+
export { ProjectKanbanBoard as t };
|
|
137
|
+
|
|
138
|
+
//# sourceMappingURL=project-kanban-board-BHLRHooH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"project-kanban-board-BHLRHooH.mjs","names":[],"sources":["../src/blocks/project-kanban-board/project-kanban-board.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport {\n Plus,\n CheckCircle2,\n Clock,\n Eye,\n AlertCircle,\n MoreHorizontal,\n} from \"lucide-react\";\nimport { cn } from \"../../lib/utils\";\nimport { Card } from \"../../components/card\";\nimport { Badge } from \"../../components/badge\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"../../components/avatar\";\nimport { Button } from \"../../components/button\";\nimport {\n DropdownMenu,\n DropdownMenuContent,\n DropdownMenuGroup,\n DropdownMenuItem,\n DropdownMenuLabel,\n DropdownMenuTrigger,\n} from \"../../components/dropdown-menu\";\n\nexport type KanbanColumnId = \"TODO\" | \"IN_PROGRESS\" | \"REVIEW\" | \"DONE\";\n\nexport interface KanbanTask {\n id: string;\n title: string;\n status: KanbanColumnId;\n heuristicTag?: string;\n severity?: \"CRITICAL\" | \"MEDIUM\" | \"GOOD\";\n assigneeName?: string;\n assigneeAvatar?: string;\n}\n\nexport interface ProjectKanbanBoardProps\n extends React.HTMLAttributes<HTMLDivElement> {\n tasks?: KanbanTask[];\n onTaskMove?: (taskId: string, targetStatus: KanbanColumnId) => void;\n onTaskClick?: (task: KanbanTask) => void;\n onAddTask?: (status: KanbanColumnId) => void;\n}\n\nconst COLUMNS: Array<{\n id: KanbanColumnId;\n title: string;\n icon: React.ReactNode;\n}> = [\n {\n id: \"TODO\",\n title: \"To Do\",\n icon: <AlertCircle className=\"h-4 w-4 text-muted-foreground\" />,\n },\n {\n id: \"IN_PROGRESS\",\n title: \"In Progress\",\n icon: <Clock className=\"h-4 w-4 text-signal-teal-foreground\" />,\n },\n {\n id: \"REVIEW\",\n title: \"In Review\",\n icon: <Eye className=\"h-4 w-4 text-iris-violet-foreground\" />,\n },\n {\n id: \"DONE\",\n title: \"Done\",\n icon: <CheckCircle2 className=\"h-4 w-4 text-pulse-green-foreground\" />,\n },\n];\n\nexport function ProjectKanbanBoard({\n tasks = [],\n onTaskMove,\n onTaskClick,\n onAddTask,\n className,\n ...props\n}: ProjectKanbanBoardProps) {\n const getTasksByStatus = (status: KanbanColumnId) =>\n tasks.filter((t) => t.status === status);\n\n return (\n <div\n className={cn(\n \"grid grid-cols-1 gap-4 md:grid-cols-4 md:gap-5 w-full\",\n className\n )}\n {...props}\n >\n {COLUMNS.map((column) => {\n const columnTasks = getTasksByStatus(column.id);\n\n return (\n <section\n key={column.id}\n aria-label={column.title}\n className=\"flex min-h-0 flex-col rounded-lg border border-border bg-surface-raised p-4 md:h-full md:min-h-[480px]\"\n >\n <div className=\"flex items-center justify-between gap-2 pb-3.5 border-b border-border\">\n <div className=\"flex items-center gap-2.5\">\n {column.icon}\n <span className=\"text-xs font-semibold text-foreground\">\n {column.title}\n </span>\n <Badge\n variant=\"neutral\"\n className=\"h-5 px-2 text-[11px] font-mono text-muted-foreground border-border tabular-nums\"\n >\n {columnTasks.length}\n </Badge>\n </div>\n\n {onAddTask && (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"h-7 w-7 text-muted-foreground hover:text-foreground\"\n onClick={() => onAddTask(column.id)}\n aria-label={`Add task to ${column.title}`}\n >\n <Plus className=\"h-3.5 w-3.5\" />\n </Button>\n )}\n </div>\n\n <div className=\"flex flex-col gap-3.5 pt-4 md:flex-1 md:overflow-y-auto\">\n {columnTasks.length === 0 && (\n <p className=\"rounded-md border border-dashed border-border/70 px-4 py-8 text-center text-xs text-muted-foreground\">\n No tasks in this column.\n </p>\n )}\n\n {columnTasks.map((task) => (\n <Card\n key={task.id}\n className=\"p-4 border border-border bg-card hover:border-hairline-strong transition-colors\"\n >\n <div className=\"flex items-center justify-between gap-2 mb-3\">\n {task.heuristicTag && (\n <Badge\n variant=\"neutral\"\n className=\"font-mono text-[10px] px-1.5 py-0 border-border\"\n >\n {task.heuristicTag}\n </Badge>\n )}\n {task.severity && (\n <Badge\n variant={\n task.severity === \"CRITICAL\"\n ? \"coral-red\"\n : task.severity === \"GOOD\"\n ? \"pulse-green\"\n : \"signal-teal\"\n }\n className=\"text-[10px] px-1.5 py-0\"\n >\n {task.severity}\n </Badge>\n )}\n </div>\n\n {onTaskClick ? (\n <button\n type=\"button\"\n onClick={() => onTaskClick(task)}\n aria-label={`Open task ${task.title}`}\n className=\"block w-full rounded-sm text-left text-xs font-medium text-card-foreground leading-snug line-clamp-2 mb-3 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-card\"\n >\n {task.title}\n </button>\n ) : (\n <p className=\"text-xs font-medium text-card-foreground leading-snug line-clamp-2 mb-3\">\n {task.title}\n </p>\n )}\n\n <div className=\"flex items-center justify-between text-xs text-muted-foreground pt-2.5 border-t border-border/50\">\n <span className=\"text-[10px] font-mono text-muted-foreground\">\n #{task.id}\n </span>\n <div className=\"flex items-center gap-1.5\">\n {task.assigneeName && (\n <>\n <span className=\"text-[10px] truncate max-w-[80px] text-muted-foreground\">\n {task.assigneeName}\n </span>\n <Avatar className=\"h-4 w-4 border border-border\">\n {task.assigneeAvatar && (\n <AvatarImage src={task.assigneeAvatar} />\n )}\n <AvatarFallback className=\"text-[8px] bg-muted text-foreground\">\n {task.assigneeName.slice(0, 2).toUpperCase()}\n </AvatarFallback>\n </Avatar>\n </>\n )}\n {onTaskMove && (\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button\n variant=\"ghost\"\n size=\"icon\"\n className=\"h-6 w-6 text-muted-foreground hover:text-foreground\"\n aria-label={`Move task ${task.title}`}\n >\n <MoreHorizontal className=\"h-3.5 w-3.5\" />\n </Button>\n }\n />\n <DropdownMenuContent align=\"end\">\n <DropdownMenuGroup>\n <DropdownMenuLabel>Move to</DropdownMenuLabel>\n {COLUMNS.filter(\n (target) => target.id !== task.status\n ).map((target) => (\n <DropdownMenuItem\n key={target.id}\n onClick={() =>\n onTaskMove(task.id, target.id)\n }\n >\n {target.title}\n </DropdownMenuItem>\n ))}\n </DropdownMenuGroup>\n </DropdownMenuContent>\n </DropdownMenu>\n )}\n </div>\n </div>\n </Card>\n ))}\n </div>\n </section>\n );\n })}\n </div>\n );\n}\n"],"mappings":"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"}
|