@usalyt/ui 0.0.0-stage → 0.0.1
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 +15 -0
- package/LICENSE +674 -0
- package/NOTICE +32 -0
- package/README.md +148 -2
- package/THIRD_PARTY_NOTICES.md +446 -0
- package/dist/app-shell-layout-C63PPxCb.mjs +115 -0
- package/dist/app-shell-layout-C63PPxCb.mjs.map +1 -0
- package/dist/app-shell-layout-S_85mtFG.cjs +120 -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/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 +86 -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 +85 -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 +119 -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 +117 -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/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/stats-card-grid/index.cjs +54 -0
- package/dist/blocks/stats-card-grid/index.d.cts +20 -0
- package/dist/blocks/stats-card-grid/index.d.cts.map +1 -0
- package/dist/blocks/stats-card-grid/index.d.mts +20 -0
- package/dist/blocks/stats-card-grid/index.d.mts.map +1 -0
- package/dist/blocks/stats-card-grid/index.mjs +53 -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-D-o2i4-Y.cjs +118 -0
- package/dist/collaboration-chat-panel-DuIoQQ6W.mjs +113 -0
- package/dist/collaboration-chat-panel-DuIoQQ6W.mjs.map +1 -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 +42 -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 +38 -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 +36 -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 +34 -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 +65 -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 +63 -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 +63 -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 +56 -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 +67 -0
- package/dist/components/dialog/index.d.cts +22 -0
- package/dist/components/dialog/index.d.cts.map +1 -0
- package/dist/components/dialog/index.d.mts +22 -0
- package/dist/components/dialog/index.d.mts.map +1 -0
- package/dist/components/dialog/index.mjs +57 -0
- package/dist/components/dialog/index.mjs.map +1 -0
- package/dist/components/drawer/index.cjs +59 -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 +49 -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 +32 -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 +30 -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 +46 -0
- package/dist/components/progress/index.d.cts +18 -0
- package/dist/components/progress/index.d.cts.map +1 -0
- package/dist/components/progress/index.d.mts +18 -0
- package/dist/components/progress/index.d.mts.map +1 -0
- package/dist/components/progress/index.mjs +43 -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 +53 -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 +45 -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 +67 -0
- package/dist/components/sheet/index.d.cts +25 -0
- package/dist/components/sheet/index.d.cts.map +1 -0
- package/dist/components/sheet/index.d.mts +25 -0
- package/dist/components/sheet/index.d.mts.map +1 -0
- package/dist/components/sheet/index.mjs +59 -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 +33 -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 +29 -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 +91 -0
- package/dist/components/toast/index.d.cts +25 -0
- package/dist/components/toast/index.d.cts.map +1 -0
- package/dist/components/toast/index.d.mts +25 -0
- package/dist/components/toast/index.d.mts.map +1 -0
- package/dist/components/toast/index.mjs +79 -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-CW1vdx89.cjs +57 -0
- package/dist/empty-state-block-DePTPvzM.mjs +52 -0
- package/dist/empty-state-block-DePTPvzM.mjs.map +1 -0
- package/dist/evaluation-summary-report-Bx2iT1Pd.cjs +212 -0
- package/dist/evaluation-summary-report-CbaikB0Q.mjs +207 -0
- package/dist/evaluation-summary-report-CbaikB0Q.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-B5zpJp27.cjs +130 -0
- package/dist/heuristic-finding-card-BFwXci2U.mjs +125 -0
- package/dist/heuristic-finding-card-BFwXci2U.mjs.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-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-BfHoUosL.d.cts +25 -0
- package/dist/index-BfHoUosL.d.cts.map +1 -0
- package/dist/index-BfHoUosL.d.mts +25 -0
- package/dist/index-BfHoUosL.d.mts.map +1 -0
- package/dist/index-CTCm9Rd3.d.cts +46 -0
- package/dist/index-CTCm9Rd3.d.cts.map +1 -0
- package/dist/index-CY6x-q24.d.cts +27 -0
- package/dist/index-CY6x-q24.d.cts.map +1 -0
- package/dist/index-CY6x-q24.d.mts +27 -0
- package/dist/index-CY6x-q24.d.mts.map +1 -0
- package/dist/index-ClitDRHg.d.mts +12 -0
- package/dist/index-ClitDRHg.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-CxCGf9_1.d.mts +46 -0
- package/dist/index-CxCGf9_1.d.mts.map +1 -0
- package/dist/index-D0R6bxY7.d.cts +12 -0
- package/dist/index-D0R6bxY7.d.cts.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-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-DCrV07Ko.d.cts +31 -0
- package/dist/index-DCrV07Ko.d.cts.map +1 -0
- package/dist/index-DISRvpYF.d.cts +31 -0
- package/dist/index-DISRvpYF.d.cts.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-N-mHPudY.d.mts +31 -0
- package/dist/index-N-mHPudY.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-Wut4L1Y4.d.mts +31 -0
- package/dist/index-Wut4L1Y4.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-bO8Bd2qN.d.cts +39 -0
- package/dist/index-bO8Bd2qN.d.cts.map +1 -0
- package/dist/index-bO8Bd2qN.d.mts +39 -0
- package/dist/index-bO8Bd2qN.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-jYLDWfZc.d.cts +15 -0
- package/dist/index-jYLDWfZc.d.cts.map +1 -0
- package/dist/index-jYLDWfZc.d.mts +15 -0
- package/dist/index-jYLDWfZc.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-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 +357 -0
- package/dist/index.d.cts +80 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +80 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +77 -0
- package/dist/input-otp-CXy8gtKM.mjs +44 -0
- package/dist/input-otp-CXy8gtKM.mjs.map +1 -0
- package/dist/input-otp-DyBlKPGM.cjs +67 -0
- package/dist/inspector-split-view-CQeClX4k.mjs +139 -0
- package/dist/inspector-split-view-CQeClX4k.mjs.map +1 -0
- package/dist/inspector-split-view-CSPoFJJC.cjs +144 -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-BGypLhTA.cjs +143 -0
- package/dist/project-kanban-board-TUeAebbI.mjs +138 -0
- package/dist/project-kanban-board-TUeAebbI.mjs.map +1 -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-ChWMZMYw.mjs +121 -0
- package/dist/team-members-table-ChWMZMYw.mjs.map +1 -0
- package/dist/team-members-table-Cu5gCqMg.cjs +126 -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-BjthGxVv.cjs +48 -0
- package/dist/toggle-C2RktAMd.mjs +37 -0
- package/dist/toggle-C2RktAMd.mjs.map +1 -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/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 +843 -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/__tests__/storybook-preview.test.tsx +164 -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/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 +87 -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 +82 -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 +79 -0
- package/src/blocks/evaluation-summary-report/evaluation-summary-report.tsx +208 -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 +172 -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/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/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 +101 -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 +104 -0
- package/src/components/alert/alert.tsx +68 -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 +55 -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 +183 -0
- package/src/components/button/button.tsx +90 -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 +94 -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 +94 -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 +97 -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 +38 -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 +133 -0
- package/src/components/progress/progress.test.tsx +68 -0
- package/src/components/progress/progress.tsx +64 -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 +88 -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 +116 -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 +55 -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 +133 -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 +74 -0
- package/src/lib/utils.ts +38 -0
- package/src/test/contrast.ts +139 -0
- package/src/test/docs-component-usability.test.tsx +98 -0
- package/src/test/palette-contract.test.ts +694 -0
- package/src/test/public-entries.test.ts +118 -0
- package/src/test/setup.ts +94 -0
- package/src/test/sidebar-contract.test.ts +194 -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 +342 -0
- package/tsconfig.json +11 -0
- package/tsdown.config.ts +34 -0
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const require_collaboration_chat_panel = require("../../collaboration-chat-panel-D-o2i4-Y.cjs");
|
|
4
|
+
exports.CollaborationChatPanel = require_collaboration_chat_panel.CollaborationChatPanel;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const require_rolldown_runtime = require("../../rolldown-runtime-D6vf50IK.cjs");
|
|
4
|
+
const require_utils = require("../../utils-YZxtPI0Y.cjs");
|
|
5
|
+
const require_components_button_index = require("../../components/button/index.cjs");
|
|
6
|
+
const require_components_input_index = require("../../components/input/index.cjs");
|
|
7
|
+
const require_components_dropdown_menu_index = require("../../components/dropdown-menu/index.cjs");
|
|
8
|
+
const require_components_avatar_index = require("../../components/avatar/index.cjs");
|
|
9
|
+
const require_components_breadcrumb_index = require("../../components/breadcrumb/index.cjs");
|
|
10
|
+
let react = require("react");
|
|
11
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
12
|
+
let lucide_react = require("lucide-react");
|
|
13
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
14
|
+
//#region src/blocks/dashboard-header/dashboard-header.tsx
|
|
15
|
+
function DashboardHeader({ title = "Dashboard", userName = "Alex Rivera", userAvatarUrl = "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150", onSearch, actions, notificationCount = 0, onNotificationsClick, onProfileSettings, onTeamManagement, onLogout, className }) {
|
|
16
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("header", {
|
|
17
|
+
className: require_utils.cn("flex min-h-16 w-full flex-wrap items-center justify-between gap-2 border-b border-border bg-card px-4 py-2 text-foreground sm:h-16 sm:flex-nowrap sm:gap-4 sm:px-6 sm:py-0", className),
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_breadcrumb_index.Breadcrumb, {
|
|
20
|
+
className: "min-w-0 shrink",
|
|
21
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_breadcrumb_index.BreadcrumbList, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_breadcrumb_index.BreadcrumbItem, { children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_breadcrumb_index.BreadcrumbPage, {
|
|
22
|
+
className: "truncate",
|
|
23
|
+
children: title
|
|
24
|
+
}) }) })
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
27
|
+
className: "order-2 flex shrink-0 items-center justify-end gap-2 sm:gap-4",
|
|
28
|
+
children: [
|
|
29
|
+
actions && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
30
|
+
className: "flex shrink-0 items-center gap-2",
|
|
31
|
+
children: actions
|
|
32
|
+
}),
|
|
33
|
+
onNotificationsClick && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_button_index.Button, {
|
|
34
|
+
variant: "ghost",
|
|
35
|
+
size: "icon",
|
|
36
|
+
"aria-label": notificationCount > 0 ? `Notifications (${notificationCount} unread)` : "Notifications",
|
|
37
|
+
onClick: onNotificationsClick,
|
|
38
|
+
className: "relative h-9 w-9 shrink-0 text-muted-foreground hover:text-foreground",
|
|
39
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Bell, { className: "h-4 w-4" }), notificationCount > 0 && /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
40
|
+
"aria-hidden": "true",
|
|
41
|
+
className: "absolute right-1.5 top-1.5 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-paper px-1 text-[10px] font-w510 leading-none text-void",
|
|
42
|
+
children: notificationCount > 9 ? "9+" : notificationCount
|
|
43
|
+
})]
|
|
44
|
+
}),
|
|
45
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_dropdown_menu_index.DropdownMenu, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_dropdown_menu_index.DropdownMenuTrigger, { render: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_button_index.Button, {
|
|
46
|
+
variant: "ghost",
|
|
47
|
+
"aria-label": `User menu for ${userName}`,
|
|
48
|
+
className: "h-9 w-9 shrink-0 rounded-full p-0",
|
|
49
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_avatar_index.Avatar, {
|
|
50
|
+
className: "h-9 w-9",
|
|
51
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_avatar_index.AvatarImage, {
|
|
52
|
+
src: userAvatarUrl,
|
|
53
|
+
alt: userName
|
|
54
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_avatar_index.AvatarFallback, { children: userName.charAt(0) })]
|
|
55
|
+
})
|
|
56
|
+
}) }), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_dropdown_menu_index.DropdownMenuContent, {
|
|
57
|
+
align: "end",
|
|
58
|
+
className: "w-56",
|
|
59
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_components_dropdown_menu_index.DropdownMenuGroup, { children: [
|
|
60
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_dropdown_menu_index.DropdownMenuLabel, { children: userName }),
|
|
61
|
+
onProfileSettings && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_dropdown_menu_index.DropdownMenuItem, {
|
|
62
|
+
onClick: onProfileSettings,
|
|
63
|
+
children: "Profile Settings"
|
|
64
|
+
}),
|
|
65
|
+
onTeamManagement && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_dropdown_menu_index.DropdownMenuItem, {
|
|
66
|
+
onClick: onTeamManagement,
|
|
67
|
+
children: "Team Management"
|
|
68
|
+
})
|
|
69
|
+
] }), onLogout && /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_dropdown_menu_index.DropdownMenuSeparator, {}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_dropdown_menu_index.DropdownMenuItem, {
|
|
70
|
+
onClick: onLogout,
|
|
71
|
+
className: "text-coral-red-foreground focus:text-coral-red-foreground",
|
|
72
|
+
children: "Log out"
|
|
73
|
+
})] })]
|
|
74
|
+
})] })
|
|
75
|
+
]
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
78
|
+
className: "relative order-3 w-full min-w-0 sm:w-64 sm:flex-none",
|
|
79
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Search, { className: "absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_input_index.Input, {
|
|
80
|
+
type: "search",
|
|
81
|
+
"aria-label": "Search dashboard",
|
|
82
|
+
placeholder: "Search dashboard...",
|
|
83
|
+
onChange: (e) => onSearch?.(e.target.value),
|
|
84
|
+
className: "h-9 pl-9 text-xs border-border placeholder:text-muted-foreground"
|
|
85
|
+
})]
|
|
86
|
+
})
|
|
87
|
+
]
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
//#endregion
|
|
91
|
+
exports.DashboardHeader = DashboardHeader;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/blocks/dashboard-header/dashboard-header.d.ts
|
|
3
|
+
interface DashboardHeaderProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
userName?: string;
|
|
6
|
+
userAvatarUrl?: string;
|
|
7
|
+
onSearch?: (query: string) => void;
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
notificationCount?: number;
|
|
10
|
+
onNotificationsClick?: () => void;
|
|
11
|
+
onProfileSettings?: () => void;
|
|
12
|
+
onTeamManagement?: () => void;
|
|
13
|
+
onLogout?: () => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function DashboardHeader({ title, userName, userAvatarUrl, onSearch, actions, notificationCount, onNotificationsClick, onProfileSettings, onTeamManagement, onLogout, className }: DashboardHeaderProps): React.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DashboardHeader, DashboardHeaderProps };
|
|
19
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/blocks/dashboard-header/dashboard-header.tsx"],"mappings":";;UAWiB;EACf;EACA;EACA;EACA,YAAY;EACZ,UAAU,MAAM;EAChB;EACA;EACA;EACA;EACA;EACA;;iBAGc,kBACd,OACA,UACA,eACA,UACA,SACA,mBACA,sBACA,mBACA,kBACA,UACA,aACC,uBAAoB,MAAA,IAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/blocks/dashboard-header/dashboard-header.d.ts
|
|
3
|
+
interface DashboardHeaderProps {
|
|
4
|
+
title?: string;
|
|
5
|
+
userName?: string;
|
|
6
|
+
userAvatarUrl?: string;
|
|
7
|
+
onSearch?: (query: string) => void;
|
|
8
|
+
actions?: React.ReactNode;
|
|
9
|
+
notificationCount?: number;
|
|
10
|
+
onNotificationsClick?: () => void;
|
|
11
|
+
onProfileSettings?: () => void;
|
|
12
|
+
onTeamManagement?: () => void;
|
|
13
|
+
onLogout?: () => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function DashboardHeader({ title, userName, userAvatarUrl, onSearch, actions, notificationCount, onNotificationsClick, onProfileSettings, onTeamManagement, onLogout, className }: DashboardHeaderProps): React.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DashboardHeader, DashboardHeaderProps };
|
|
19
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/blocks/dashboard-header/dashboard-header.tsx"],"mappings":";;UAWiB;EACf;EACA;EACA;EACA,YAAY;EACZ,UAAU,MAAM;EAChB;EACA;EACA;EACA;EACA;EACA;;iBAGc,kBACd,OACA,UACA,eACA,UACA,SACA,mBACA,sBACA,mBACA,kBACA,UACA,aACC,uBAAoB,MAAA,IAAA"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { t as cn } from "../../utils-BVF9WCwH.mjs";
|
|
3
|
+
import { Button } from "../../components/button/index.mjs";
|
|
4
|
+
import { Input } from "../../components/input/index.mjs";
|
|
5
|
+
import { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../../components/dropdown-menu/index.mjs";
|
|
6
|
+
import { Avatar, AvatarFallback, AvatarImage } from "../../components/avatar/index.mjs";
|
|
7
|
+
import { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage } from "../../components/breadcrumb/index.mjs";
|
|
8
|
+
import "react";
|
|
9
|
+
import { Bell, Search } from "lucide-react";
|
|
10
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
|
+
//#region src/blocks/dashboard-header/dashboard-header.tsx
|
|
12
|
+
function DashboardHeader({ title = "Dashboard", userName = "Alex Rivera", userAvatarUrl = "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150", onSearch, actions, notificationCount = 0, onNotificationsClick, onProfileSettings, onTeamManagement, onLogout, className }) {
|
|
13
|
+
return /* @__PURE__ */ jsxs("header", {
|
|
14
|
+
className: cn("flex min-h-16 w-full flex-wrap items-center justify-between gap-2 border-b border-border bg-card px-4 py-2 text-foreground sm:h-16 sm:flex-nowrap sm:gap-4 sm:px-6 sm:py-0", className),
|
|
15
|
+
children: [
|
|
16
|
+
/* @__PURE__ */ jsx(Breadcrumb, {
|
|
17
|
+
className: "min-w-0 shrink",
|
|
18
|
+
children: /* @__PURE__ */ jsx(BreadcrumbList, { children: /* @__PURE__ */ jsx(BreadcrumbItem, { children: /* @__PURE__ */ jsx(BreadcrumbPage, {
|
|
19
|
+
className: "truncate",
|
|
20
|
+
children: title
|
|
21
|
+
}) }) })
|
|
22
|
+
}),
|
|
23
|
+
/* @__PURE__ */ jsxs("div", {
|
|
24
|
+
className: "order-2 flex shrink-0 items-center justify-end gap-2 sm:gap-4",
|
|
25
|
+
children: [
|
|
26
|
+
actions && /* @__PURE__ */ jsx("div", {
|
|
27
|
+
className: "flex shrink-0 items-center gap-2",
|
|
28
|
+
children: actions
|
|
29
|
+
}),
|
|
30
|
+
onNotificationsClick && /* @__PURE__ */ jsxs(Button, {
|
|
31
|
+
variant: "ghost",
|
|
32
|
+
size: "icon",
|
|
33
|
+
"aria-label": notificationCount > 0 ? `Notifications (${notificationCount} unread)` : "Notifications",
|
|
34
|
+
onClick: onNotificationsClick,
|
|
35
|
+
className: "relative h-9 w-9 shrink-0 text-muted-foreground hover:text-foreground",
|
|
36
|
+
children: [/* @__PURE__ */ jsx(Bell, { className: "h-4 w-4" }), notificationCount > 0 && /* @__PURE__ */ jsx("span", {
|
|
37
|
+
"aria-hidden": "true",
|
|
38
|
+
className: "absolute right-1.5 top-1.5 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-paper px-1 text-[10px] font-w510 leading-none text-void",
|
|
39
|
+
children: notificationCount > 9 ? "9+" : notificationCount
|
|
40
|
+
})]
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ jsxs(DropdownMenu, { children: [/* @__PURE__ */ jsx(DropdownMenuTrigger, { render: /* @__PURE__ */ jsx(Button, {
|
|
43
|
+
variant: "ghost",
|
|
44
|
+
"aria-label": `User menu for ${userName}`,
|
|
45
|
+
className: "h-9 w-9 shrink-0 rounded-full p-0",
|
|
46
|
+
children: /* @__PURE__ */ jsxs(Avatar, {
|
|
47
|
+
className: "h-9 w-9",
|
|
48
|
+
children: [/* @__PURE__ */ jsx(AvatarImage, {
|
|
49
|
+
src: userAvatarUrl,
|
|
50
|
+
alt: userName
|
|
51
|
+
}), /* @__PURE__ */ jsx(AvatarFallback, { children: userName.charAt(0) })]
|
|
52
|
+
})
|
|
53
|
+
}) }), /* @__PURE__ */ jsxs(DropdownMenuContent, {
|
|
54
|
+
align: "end",
|
|
55
|
+
className: "w-56",
|
|
56
|
+
children: [/* @__PURE__ */ jsxs(DropdownMenuGroup, { children: [
|
|
57
|
+
/* @__PURE__ */ jsx(DropdownMenuLabel, { children: userName }),
|
|
58
|
+
onProfileSettings && /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
59
|
+
onClick: onProfileSettings,
|
|
60
|
+
children: "Profile Settings"
|
|
61
|
+
}),
|
|
62
|
+
onTeamManagement && /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
63
|
+
onClick: onTeamManagement,
|
|
64
|
+
children: "Team Management"
|
|
65
|
+
})
|
|
66
|
+
] }), onLogout && /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(DropdownMenuSeparator, {}), /* @__PURE__ */ jsx(DropdownMenuItem, {
|
|
67
|
+
onClick: onLogout,
|
|
68
|
+
className: "text-coral-red-foreground focus:text-coral-red-foreground",
|
|
69
|
+
children: "Log out"
|
|
70
|
+
})] })]
|
|
71
|
+
})] })
|
|
72
|
+
]
|
|
73
|
+
}),
|
|
74
|
+
/* @__PURE__ */ jsxs("div", {
|
|
75
|
+
className: "relative order-3 w-full min-w-0 sm:w-64 sm:flex-none",
|
|
76
|
+
children: [/* @__PURE__ */ jsx(Search, { className: "absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground" }), /* @__PURE__ */ jsx(Input, {
|
|
77
|
+
type: "search",
|
|
78
|
+
"aria-label": "Search dashboard",
|
|
79
|
+
placeholder: "Search dashboard...",
|
|
80
|
+
onChange: (e) => onSearch?.(e.target.value),
|
|
81
|
+
className: "h-9 pl-9 text-xs border-border placeholder:text-muted-foreground"
|
|
82
|
+
})]
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
//#endregion
|
|
88
|
+
export { DashboardHeader };
|
|
89
|
+
|
|
90
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/blocks/dashboard-header/dashboard-header.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { Bell, Search } from \"lucide-react\";\nimport { Avatar, AvatarFallback, AvatarImage } from \"../../components/avatar\";\nimport { Breadcrumb, BreadcrumbItem, BreadcrumbList, BreadcrumbPage } from \"../../components/breadcrumb\";\nimport { Button } from \"../../components/button\";\nimport { DropdownMenu, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from \"../../components/dropdown-menu\";\nimport { Input } from \"../../components/input\";\nimport { cn } from \"../../lib/utils\";\n\nexport interface DashboardHeaderProps {\n title?: string;\n userName?: string;\n userAvatarUrl?: string;\n onSearch?: (query: string) => void;\n actions?: React.ReactNode;\n notificationCount?: number;\n onNotificationsClick?: () => void;\n onProfileSettings?: () => void;\n onTeamManagement?: () => void;\n onLogout?: () => void;\n className?: string;\n}\n\nexport function DashboardHeader({\n title = \"Dashboard\",\n userName = \"Alex Rivera\",\n userAvatarUrl = \"https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=150\",\n onSearch,\n actions,\n notificationCount = 0,\n onNotificationsClick,\n onProfileSettings,\n onTeamManagement,\n onLogout,\n className\n}: DashboardHeaderProps) {\n return (\n <header className={cn(\"flex min-h-16 w-full flex-wrap items-center justify-between gap-2 border-b border-border bg-card px-4 py-2 text-foreground sm:h-16 sm:flex-nowrap sm:gap-4 sm:px-6 sm:py-0\", className)}>\n <Breadcrumb className=\"min-w-0 shrink\">\n <BreadcrumbList>\n <BreadcrumbItem>\n <BreadcrumbPage className=\"truncate\">{title}</BreadcrumbPage>\n </BreadcrumbItem>\n </BreadcrumbList>\n </Breadcrumb>\n\n <div className=\"order-2 flex shrink-0 items-center justify-end gap-2 sm:gap-4\">\n {actions && <div className=\"flex shrink-0 items-center gap-2\">{actions}</div>}\n\n {onNotificationsClick && (\n <Button\n variant=\"ghost\"\n size=\"icon\"\n aria-label={\n notificationCount > 0\n ? `Notifications (${notificationCount} unread)`\n : \"Notifications\"\n }\n onClick={onNotificationsClick}\n className=\"relative h-9 w-9 shrink-0 text-muted-foreground hover:text-foreground\"\n >\n <Bell className=\"h-4 w-4\" />\n {notificationCount > 0 && (\n <span\n aria-hidden=\"true\"\n className=\"absolute right-1.5 top-1.5 inline-flex h-4 min-w-4 items-center justify-center rounded-full bg-paper px-1 text-[10px] font-w510 leading-none text-void\"\n >\n {notificationCount > 9 ? \"9+\" : notificationCount}\n </span>\n )}\n </Button>\n )}\n\n <DropdownMenu>\n <DropdownMenuTrigger\n render={\n <Button variant=\"ghost\" aria-label={`User menu for ${userName}`} className=\"h-9 w-9 shrink-0 rounded-full p-0\">\n <Avatar className=\"h-9 w-9\">\n <AvatarImage src={userAvatarUrl} alt={userName} />\n <AvatarFallback>{userName.charAt(0)}</AvatarFallback>\n </Avatar>\n </Button>\n }\n />\n <DropdownMenuContent align=\"end\" className=\"w-56\">\n <DropdownMenuGroup>\n <DropdownMenuLabel>{userName}</DropdownMenuLabel>\n {onProfileSettings && (\n <DropdownMenuItem onClick={onProfileSettings}>\n Profile Settings\n </DropdownMenuItem>\n )}\n {onTeamManagement && (\n <DropdownMenuItem onClick={onTeamManagement}>\n Team Management\n </DropdownMenuItem>\n )}\n </DropdownMenuGroup>\n {onLogout && (\n <>\n <DropdownMenuSeparator />\n <DropdownMenuItem\n onClick={onLogout}\n className=\"text-coral-red-foreground focus:text-coral-red-foreground\"\n >\n Log out\n </DropdownMenuItem>\n </>\n )}\n </DropdownMenuContent>\n </DropdownMenu>\n </div>\n\n <div className=\"relative order-3 w-full min-w-0 sm:w-64 sm:flex-none\">\n <Search className=\"absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground\" />\n <Input\n type=\"search\"\n aria-label=\"Search dashboard\"\n placeholder=\"Search dashboard...\"\n onChange={(e) => onSearch?.(e.target.value)}\n className=\"h-9 pl-9 text-xs border-border placeholder:text-muted-foreground\"\n />\n </div>\n </header>\n );\n}\n"],"mappings":";;;;;;;;;;AAyBA,SAAgB,gBAAgB,EAC9B,QAAQ,aACR,WAAW,eACX,gBAAgB,sEAChB,UACA,SACA,oBAAoB,GACpB,sBACA,mBACA,kBACA,UACA,aACuB;CACvB,OACE,qBAAC,UAAD;EAAQ,WAAW,GAAG,8KAA8K,SAAS;EAA7M,UAAA;GACE,oBAAC,YAAD;IAAY,WAAU;IACpB,UAAA,oBAAC,gBAAD,EAAA,UACE,oBAAC,gBAAD,EAAA,UACE,oBAAC,gBAAD;KAAgB,WAAU;KAAY,UAAA;IAAsB,CAAA,EAC9C,CAAA,EACF,CAAA;GACN,CAAA;GAEZ,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA;KACG,WAAW,oBAAC,OAAD;MAAK,WAAU;MAAoC,UAAA;KAAa,CAAA;KAE3E,wBACC,qBAAC,QAAD;MACE,SAAQ;MACR,MAAK;MACL,cACE,oBAAoB,IAChB,kBAAkB,kBAAkB,YACpC;MAEN,SAAS;MACT,WAAU;MATZ,UAAA,CAWE,oBAAC,MAAD,EAAM,WAAU,UAAW,CAAA,GAC1B,oBAAoB,KACnB,oBAAC,QAAD;OACE,eAAY;OACZ,WAAU;OAET,UAAA,oBAAoB,IAAI,OAAO;MAC5B,CAAA,CAEF;;KAGV,qBAAC,cAAD,EAAA,UAAA,CACE,oBAAC,qBAAD,EACE,QACE,oBAAC,QAAD;MAAQ,SAAQ;MAAQ,cAAY,iBAAiB;MAAY,WAAU;MACzE,UAAA,qBAAC,QAAD;OAAQ,WAAU;OAAlB,UAAA,CACE,oBAAC,aAAD;QAAa,KAAK;QAAe,KAAK;OAAW,CAAA,GACjD,oBAAC,gBAAD,EAAA,UAAiB,SAAS,OAAO,CAAC,EAAkB,CAAA,CAC9C;;KACF,CAAA,EAEX,CAAA,GACD,qBAAC,qBAAD;MAAqB,OAAM;MAAM,WAAU;MAA3C,UAAA,CACE,qBAAC,mBAAD,EAAA,UAAA;OACE,oBAAC,mBAAD,EAAA,UAAoB,SAA4B,CAAA;OAC/C,qBACC,oBAAC,kBAAD;QAAkB,SAAS;QAAmB,UAAA;OAE5B,CAAA;OAEnB,oBACC,oBAAC,kBAAD;QAAkB,SAAS;QAAkB,UAAA;OAE3B,CAAA;MAEH,EAAA,CAAA,GAClB,YACC,qBAAA,UAAA,EAAA,UAAA,CACE,oBAAC,uBAAD,CAAwB,CAAA,GACxB,oBAAC,kBAAD;OACE,SAAS;OACT,WAAU;OACX,UAAA;MAEiB,CAAA,CAClB,EAAA,CAAA,CAEe;KACT,CAAA,CAAA,EAAA,CAAA;IACX;;GAEL,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,oBAAC,QAAD,EAAQ,WAAU,0DAA2D,CAAA,GAC7E,oBAAC,OAAD;KACE,MAAK;KACL,cAAW;KACX,aAAY;KACZ,WAAW,MAAM,WAAW,EAAE,OAAO,KAAK;KAC1C,WAAU;IACX,CAAA,CACE;;EACC;;AAEZ"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const require_rolldown_runtime = require("../../rolldown-runtime-D6vf50IK.cjs");
|
|
4
|
+
const require_components_combobox_index = require("../../components/combobox/index.cjs");
|
|
5
|
+
const require_components_data_table_index = require("../../components/data-table/index.cjs");
|
|
6
|
+
let react = require("react");
|
|
7
|
+
react = require_rolldown_runtime.__toESM(react, 1);
|
|
8
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
9
|
+
//#region src/blocks/data-table-with-filters/data-table-with-filters.tsx
|
|
10
|
+
const columns = [
|
|
11
|
+
{
|
|
12
|
+
accessorKey: "name",
|
|
13
|
+
header: ({ column }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_data_table_index.DataTableColumnHeader, {
|
|
14
|
+
column,
|
|
15
|
+
title: "User"
|
|
16
|
+
})
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
accessorKey: "email",
|
|
20
|
+
header: "Email"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
accessorKey: "role",
|
|
24
|
+
header: "Role"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
accessorKey: "status",
|
|
28
|
+
header: "Status"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
const roleOptions = [
|
|
32
|
+
{
|
|
33
|
+
value: "all",
|
|
34
|
+
label: "All Roles"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: "Admin",
|
|
38
|
+
label: "Admin"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: "Evaluator",
|
|
42
|
+
label: "Evaluator"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
value: "Viewer",
|
|
46
|
+
label: "Viewer"
|
|
47
|
+
}
|
|
48
|
+
];
|
|
49
|
+
function DataTableWithFilters({ data, title = "Team directory", description = "Review project access and filter members by role.", className }) {
|
|
50
|
+
const [selectedRole, setSelectedRole] = react.useState("all");
|
|
51
|
+
const filteredData = react.useMemo(() => {
|
|
52
|
+
if (selectedRole === "all") return data;
|
|
53
|
+
return data.filter((item) => item.role === selectedRole);
|
|
54
|
+
}, [data, selectedRole]);
|
|
55
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
56
|
+
className: "w-full min-w-0 space-y-4",
|
|
57
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
58
|
+
className: "flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",
|
|
59
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
60
|
+
className: "space-y-1",
|
|
61
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h3", {
|
|
62
|
+
className: "text-sm font-semibold text-foreground",
|
|
63
|
+
children: title
|
|
64
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
65
|
+
className: "text-xs text-muted-foreground",
|
|
66
|
+
children: description
|
|
67
|
+
})]
|
|
68
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
69
|
+
className: "w-full sm:w-56",
|
|
70
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_combobox_index.Combobox, {
|
|
71
|
+
options: roleOptions,
|
|
72
|
+
value: selectedRole,
|
|
73
|
+
onChange: setSelectedRole,
|
|
74
|
+
placeholder: "Filter by role..."
|
|
75
|
+
})
|
|
76
|
+
})]
|
|
77
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_components_data_table_index.DataTable, {
|
|
78
|
+
columns,
|
|
79
|
+
data: filteredData,
|
|
80
|
+
filterPlaceholder: "Filter users by name or email...",
|
|
81
|
+
className: "min-w-0"
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
//#endregion
|
|
86
|
+
exports.DataTableWithFilters = DataTableWithFilters;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/blocks/data-table-with-filters/data-table-with-filters.d.ts
|
|
3
|
+
interface SystemUser {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
role: string;
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
interface DataTableWithFiltersProps {
|
|
11
|
+
data: SystemUser[];
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function DataTableWithFilters({ data, title, description, className }: DataTableWithFiltersProps): React.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DataTableWithFilters, DataTableWithFiltersProps, SystemUser };
|
|
19
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/blocks/data-table-with-filters/data-table-with-filters.tsx"],"mappings":";;UAOiB;EACf;EACA;EACA;EACA;EACA;;UAsBe;EACf,MAAM;EACN;EACA;EACA;;iBAUc,uBACd,MACA,OACA,aACA,aACC,4BAAyB,MAAA,IAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
//#region src/blocks/data-table-with-filters/data-table-with-filters.d.ts
|
|
3
|
+
interface SystemUser {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
role: string;
|
|
8
|
+
status: string;
|
|
9
|
+
}
|
|
10
|
+
interface DataTableWithFiltersProps {
|
|
11
|
+
data: SystemUser[];
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
declare function DataTableWithFilters({ data, title, description, className }: DataTableWithFiltersProps): React.JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DataTableWithFilters, DataTableWithFiltersProps, SystemUser };
|
|
19
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../../src/blocks/data-table-with-filters/data-table-with-filters.tsx"],"mappings":";;UAOiB;EACf;EACA;EACA;EACA;EACA;;UAsBe;EACf,MAAM;EACN;EACA;EACA;;iBAUc,uBACd,MACA,OACA,aACA,aACC,4BAAyB,MAAA,IAAA"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Combobox } from "../../components/combobox/index.mjs";
|
|
3
|
+
import { DataTable, DataTableColumnHeader } from "../../components/data-table/index.mjs";
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
//#region src/blocks/data-table-with-filters/data-table-with-filters.tsx
|
|
7
|
+
const columns = [
|
|
8
|
+
{
|
|
9
|
+
accessorKey: "name",
|
|
10
|
+
header: ({ column }) => /* @__PURE__ */ jsx(DataTableColumnHeader, {
|
|
11
|
+
column,
|
|
12
|
+
title: "User"
|
|
13
|
+
})
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
accessorKey: "email",
|
|
17
|
+
header: "Email"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
accessorKey: "role",
|
|
21
|
+
header: "Role"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
accessorKey: "status",
|
|
25
|
+
header: "Status"
|
|
26
|
+
}
|
|
27
|
+
];
|
|
28
|
+
const roleOptions = [
|
|
29
|
+
{
|
|
30
|
+
value: "all",
|
|
31
|
+
label: "All Roles"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
value: "Admin",
|
|
35
|
+
label: "Admin"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "Evaluator",
|
|
39
|
+
label: "Evaluator"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: "Viewer",
|
|
43
|
+
label: "Viewer"
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
function DataTableWithFilters({ data, title = "Team directory", description = "Review project access and filter members by role.", className }) {
|
|
47
|
+
const [selectedRole, setSelectedRole] = React.useState("all");
|
|
48
|
+
const filteredData = React.useMemo(() => {
|
|
49
|
+
if (selectedRole === "all") return data;
|
|
50
|
+
return data.filter((item) => item.role === selectedRole);
|
|
51
|
+
}, [data, selectedRole]);
|
|
52
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
53
|
+
className: "w-full min-w-0 space-y-4",
|
|
54
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
55
|
+
className: "flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between",
|
|
56
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
57
|
+
className: "space-y-1",
|
|
58
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
59
|
+
className: "text-sm font-semibold text-foreground",
|
|
60
|
+
children: title
|
|
61
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
62
|
+
className: "text-xs text-muted-foreground",
|
|
63
|
+
children: description
|
|
64
|
+
})]
|
|
65
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
66
|
+
className: "w-full sm:w-56",
|
|
67
|
+
children: /* @__PURE__ */ jsx(Combobox, {
|
|
68
|
+
options: roleOptions,
|
|
69
|
+
value: selectedRole,
|
|
70
|
+
onChange: setSelectedRole,
|
|
71
|
+
placeholder: "Filter by role..."
|
|
72
|
+
})
|
|
73
|
+
})]
|
|
74
|
+
}), /* @__PURE__ */ jsx(DataTable, {
|
|
75
|
+
columns,
|
|
76
|
+
data: filteredData,
|
|
77
|
+
filterPlaceholder: "Filter users by name or email...",
|
|
78
|
+
className: "min-w-0"
|
|
79
|
+
})]
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { DataTableWithFilters };
|
|
84
|
+
|
|
85
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/blocks/data-table-with-filters/data-table-with-filters.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { ColumnDef } from \"@tanstack/react-table\";\nimport { Combobox } from \"../../components/combobox\";\nimport { DataTable, DataTableColumnHeader } from \"../../components/data-table\";\n\nexport interface SystemUser {\n id: string;\n name: string;\n email: string;\n role: string;\n status: string;\n}\n\nconst columns: ColumnDef<SystemUser>[] = [\n {\n accessorKey: \"name\",\n header: ({ column }) => <DataTableColumnHeader column={column} title=\"User\" />\n },\n {\n accessorKey: \"email\",\n header: \"Email\"\n },\n {\n accessorKey: \"role\",\n header: \"Role\"\n },\n {\n accessorKey: \"status\",\n header: \"Status\"\n }\n];\n\nexport interface DataTableWithFiltersProps {\n data: SystemUser[];\n title?: string;\n description?: string;\n className?: string;\n}\n\nconst roleOptions = [\n { value: \"all\", label: \"All Roles\" },\n { value: \"Admin\", label: \"Admin\" },\n { value: \"Evaluator\", label: \"Evaluator\" },\n { value: \"Viewer\", label: \"Viewer\" }\n];\n\nexport function DataTableWithFilters({\n data,\n title = \"Team directory\",\n description = \"Review project access and filter members by role.\",\n className\n}: DataTableWithFiltersProps) {\n const [selectedRole, setSelectedRole] = React.useState(\"all\");\n\n const filteredData = React.useMemo(() => {\n if (selectedRole === \"all\") return data;\n return data.filter((item) => item.role === selectedRole);\n }, [data, selectedRole]);\n\n return (\n <div className=\"w-full min-w-0 space-y-4\">\n <div className=\"flex flex-col gap-3 sm:flex-row sm:items-end sm:justify-between\">\n <div className=\"space-y-1\">\n <h3 className=\"text-sm font-semibold text-foreground\">{title}</h3>\n <p className=\"text-xs text-muted-foreground\">{description}</p>\n </div>\n <div className=\"w-full sm:w-56\">\n <Combobox\n options={roleOptions}\n value={selectedRole}\n onChange={setSelectedRole}\n placeholder=\"Filter by role...\"\n />\n </div>\n </div>\n\n <DataTable\n columns={columns}\n data={filteredData}\n filterPlaceholder=\"Filter users by name or email...\"\n className=\"min-w-0\"\n />\n </div>\n );\n}\n"],"mappings":";;;;;AAeA,MAAM,UAAmC;CACvC;EACE,aAAa;EACb,SAAS,EAAE,aAAa,oBAAC,uBAAD;GAA+B;GAAQ,OAAM;EAAQ,CAAA;CAC/E;CACA;EACE,aAAa;EACb,QAAQ;CACV;CACA;EACE,aAAa;EACb,QAAQ;CACV;CACA;EACE,aAAa;EACb,QAAQ;CACV;AACF;AASA,MAAM,cAAc;CAClB;EAAE,OAAO;EAAO,OAAO;CAAY;CACnC;EAAE,OAAO;EAAS,OAAO;CAAQ;CACjC;EAAE,OAAO;EAAa,OAAO;CAAY;CACzC;EAAE,OAAO;EAAU,OAAO;CAAS;AACrC;AAEA,SAAgB,qBAAqB,EACnC,MACA,QAAQ,kBACR,cAAc,qDACd,aAC4B;CAC5B,MAAM,CAAC,cAAc,mBAAmB,MAAM,SAAS,KAAK;CAE5D,MAAM,eAAe,MAAM,cAAc;EACvC,IAAI,iBAAiB,OAAO,OAAO;EACnC,OAAO,KAAK,QAAQ,SAAS,KAAK,SAAS,YAAY;CACzD,GAAG,CAAC,MAAM,YAAY,CAAC;CAEvB,OACE,qBAAC,OAAD;EAAK,WAAU;EAAf,UAAA,CACE,qBAAC,OAAD;GAAK,WAAU;GAAf,UAAA,CACE,qBAAC,OAAD;IAAK,WAAU;IAAf,UAAA,CACE,oBAAC,MAAD;KAAI,WAAU;KAAyC,UAAA;IAAU,CAAA,GACjE,oBAAC,KAAD;KAAG,WAAU;KAAiC,UAAA;IAAe,CAAA,CAC1D;GACL,CAAA,GAAA,oBAAC,OAAD;IAAK,WAAU;IACb,UAAA,oBAAC,UAAD;KACE,SAAS;KACT,OAAO;KACP,UAAU;KACV,aAAY;IACb,CAAA;GACE,CAAA,CACF;EAEL,CAAA,GAAA,oBAAC,WAAD;GACW;GACT,MAAM;GACN,mBAAkB;GAClB,WAAU;EACX,CAAA,CACE;;AAET"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const require_evaluation_summary_report = require("../../evaluation-summary-report-Bx2iT1Pd.cjs");
|
|
4
|
+
exports.EvaluationSummaryReport = require_evaluation_summary_report.EvaluationSummaryReport;
|