@etus/ui 0.1.0
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/dist/chunk-HRNDJU7D.js +11 -0
- package/dist/chunk-HRNDJU7D.js.map +1 -0
- package/dist/index.d.ts +21250 -0
- package/dist/index.js +44886 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +7 -0
- package/dist/lib/utils.js.map +1 -0
- package/package.json +145 -0
- package/src/components/CLAUDE.md +66 -0
- package/src/components/advanced/AssetManager/AssetManager.test.tsx +624 -0
- package/src/components/advanced/AssetManager/AssetManager.tsx +928 -0
- package/src/components/advanced/AssetManager/AssetManager.types.ts +248 -0
- package/src/components/advanced/AssetManager/AssetManager.variants.ts +284 -0
- package/src/components/advanced/AssetManager/README.md +246 -0
- package/src/components/advanced/AssetManager/index.ts +4 -0
- package/src/components/advanced/CLAUDE.md +77 -0
- package/src/components/advanced/Calendar/Calendar.test.tsx +718 -0
- package/src/components/advanced/Calendar/Calendar.tsx +264 -0
- package/src/components/advanced/Calendar/Calendar.types.ts +62 -0
- package/src/components/advanced/Calendar/Calendar.variants.ts +154 -0
- package/src/components/advanced/Calendar/README.md +389 -0
- package/src/components/advanced/Calendar/index.ts +3 -0
- package/src/components/advanced/Command/Command.test.tsx +1014 -0
- package/src/components/advanced/Command/Command.tsx +330 -0
- package/src/components/advanced/Command/Command.types.ts +238 -0
- package/src/components/advanced/Command/Command.variants.ts +300 -0
- package/src/components/advanced/Command/README.md +1259 -0
- package/src/components/advanced/Command/index.ts +45 -0
- package/src/components/advanced/DragAndDrop/DragAndDrop.test.tsx +573 -0
- package/src/components/advanced/DragAndDrop/DragAndDrop.tsx +495 -0
- package/src/components/advanced/DragAndDrop/DragAndDrop.types.ts +237 -0
- package/src/components/advanced/DragAndDrop/DragAndDrop.variants.ts +156 -0
- package/src/components/advanced/DragAndDrop/README.md +284 -0
- package/src/components/advanced/DragAndDrop/index.ts +4 -0
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.test.tsx +372 -0
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.tsx +184 -0
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.types.ts +73 -0
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.variants.ts +153 -0
- package/src/components/advanced/ErrorBoundary/README.md +296 -0
- package/src/components/advanced/ErrorBoundary/index.ts +18 -0
- package/src/components/advanced/EventCalendar/EventCalendar.test.tsx +535 -0
- package/src/components/advanced/EventCalendar/EventCalendar.tsx +1066 -0
- package/src/components/advanced/EventCalendar/EventCalendar.types.ts +232 -0
- package/src/components/advanced/EventCalendar/EventCalendar.variants.ts +222 -0
- package/src/components/advanced/EventCalendar/README.md +330 -0
- package/src/components/advanced/EventCalendar/index.ts +35 -0
- package/src/components/advanced/FileDropzone/FileDropzone.test.tsx +344 -0
- package/src/components/advanced/FileDropzone/FileDropzone.tsx +188 -0
- package/src/components/advanced/FileDropzone/FileDropzone.types.ts +47 -0
- package/src/components/advanced/FileDropzone/FileDropzone.variants.ts +46 -0
- package/src/components/advanced/FileDropzone/README.md +359 -0
- package/src/components/advanced/FileDropzone/index.ts +7 -0
- package/src/components/advanced/FilePreview/FilePreview.test.tsx +503 -0
- package/src/components/advanced/FilePreview/FilePreview.tsx +385 -0
- package/src/components/advanced/FilePreview/FilePreview.types.ts +90 -0
- package/src/components/advanced/FilePreview/FilePreview.variants.ts +234 -0
- package/src/components/advanced/FilePreview/README.md +318 -0
- package/src/components/advanced/FilePreview/index.ts +25 -0
- package/src/components/advanced/FileUpload/FileUpload.test.tsx +676 -0
- package/src/components/advanced/FileUpload/FileUpload.tsx +845 -0
- package/src/components/advanced/FileUpload/FileUpload.types.ts +270 -0
- package/src/components/advanced/FileUpload/FileUpload.variants.ts +216 -0
- package/src/components/advanced/FileUpload/README.md +380 -0
- package/src/components/advanced/FileUpload/index.ts +39 -0
- package/src/components/advanced/FilterBuilder/FilterBuilder.test.tsx +644 -0
- package/src/components/advanced/FilterBuilder/FilterBuilder.tsx +881 -0
- package/src/components/advanced/FilterBuilder/FilterBuilder.types.ts +249 -0
- package/src/components/advanced/FilterBuilder/FilterBuilder.variants.ts +307 -0
- package/src/components/advanced/FilterBuilder/README.md +383 -0
- package/src/components/advanced/FilterBuilder/index.ts +48 -0
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.test.tsx +468 -0
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.tsx +556 -0
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.types.ts +108 -0
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.variants.ts +62 -0
- package/src/components/advanced/MarkdownEditor/README.md +352 -0
- package/src/components/advanced/MarkdownEditor/index.ts +15 -0
- package/src/components/advanced/Portal/Portal.test.tsx +406 -0
- package/src/components/advanced/Portal/Portal.tsx +77 -0
- package/src/components/advanced/Portal/Portal.types.ts +28 -0
- package/src/components/advanced/Portal/Portal.variants.ts +95 -0
- package/src/components/advanced/Portal/README.md +326 -0
- package/src/components/advanced/Portal/index.ts +9 -0
- package/src/components/advanced/RichTextEditor/README.md +383 -0
- package/src/components/advanced/RichTextEditor/RichTextEditor.test.tsx +394 -0
- package/src/components/advanced/RichTextEditor/RichTextEditor.tsx +651 -0
- package/src/components/advanced/RichTextEditor/RichTextEditor.types.ts +77 -0
- package/src/components/advanced/RichTextEditor/RichTextEditor.variants.ts +151 -0
- package/src/components/advanced/RichTextEditor/index.ts +24 -0
- package/src/components/advanced/Search/README.md +391 -0
- package/src/components/advanced/Search/Search.test.tsx +567 -0
- package/src/components/advanced/Search/Search.tsx +829 -0
- package/src/components/advanced/Search/Search.types.ts +243 -0
- package/src/components/advanced/Search/Search.variants.ts +358 -0
- package/src/components/advanced/Search/index.ts +52 -0
- package/src/components/advanced/SortableList/README.md +448 -0
- package/src/components/advanced/SortableList/SortableList.test.tsx +317 -0
- package/src/components/advanced/SortableList/SortableList.tsx +392 -0
- package/src/components/advanced/SortableList/SortableList.types.ts +122 -0
- package/src/components/advanced/SortableList/SortableList.variants.ts +141 -0
- package/src/components/advanced/SortableList/index.ts +33 -0
- package/src/components/advanced/VersionControl/README.md +440 -0
- package/src/components/advanced/VersionControl/VersionControl.test.tsx +517 -0
- package/src/components/advanced/VersionControl/VersionControl.tsx +758 -0
- package/src/components/advanced/VersionControl/VersionControl.types.ts +176 -0
- package/src/components/advanced/VersionControl/VersionControl.variants.ts +203 -0
- package/src/components/advanced/VersionControl/index.ts +33 -0
- package/src/components/advanced/index.ts +17 -0
- package/src/components/data-display/Accordion/Accordion.test.tsx +519 -0
- package/src/components/data-display/Accordion/Accordion.tsx +164 -0
- package/src/components/data-display/Accordion/Accordion.types.ts +37 -0
- package/src/components/data-display/Accordion/Accordion.variants.ts +112 -0
- package/src/components/data-display/Accordion/README.md +976 -0
- package/src/components/data-display/Accordion/index.ts +31 -0
- package/src/components/data-display/AreaChart/AreaChart.test.tsx +529 -0
- package/src/components/data-display/AreaChart/AreaChart.tsx +318 -0
- package/src/components/data-display/AreaChart/AreaChart.types.ts +169 -0
- package/src/components/data-display/AreaChart/AreaChart.variants.ts +45 -0
- package/src/components/data-display/AreaChart/README.md +229 -0
- package/src/components/data-display/AreaChart/index.ts +2 -0
- package/src/components/data-display/Banner/Banner.test.tsx +648 -0
- package/src/components/data-display/Banner/Banner.tsx +111 -0
- package/src/components/data-display/Banner/Banner.types.ts +51 -0
- package/src/components/data-display/Banner/Banner.variants.ts +37 -0
- package/src/components/data-display/Banner/README.md +351 -0
- package/src/components/data-display/Banner/index.ts +2 -0
- package/src/components/data-display/BarChart/BarChart.test.tsx +536 -0
- package/src/components/data-display/BarChart/BarChart.tsx +305 -0
- package/src/components/data-display/BarChart/BarChart.types.ts +145 -0
- package/src/components/data-display/BarChart/BarChart.variants.ts +61 -0
- package/src/components/data-display/BarChart/README.md +205 -0
- package/src/components/data-display/BarChart/index.ts +2 -0
- package/src/components/data-display/BarList/BarList.tsx +172 -0
- package/src/components/data-display/BarList/BarList.types.ts +69 -0
- package/src/components/data-display/BarList/BarList.variants.ts +63 -0
- package/src/components/data-display/BarList/index.ts +2 -0
- package/src/components/data-display/CLAUDE.md +90 -0
- package/src/components/data-display/Callout/Callout.test.tsx +516 -0
- package/src/components/data-display/Callout/Callout.tsx +112 -0
- package/src/components/data-display/Callout/Callout.types.ts +37 -0
- package/src/components/data-display/Callout/Callout.variants.ts +48 -0
- package/src/components/data-display/Callout/README.md +341 -0
- package/src/components/data-display/Callout/index.ts +2 -0
- package/src/components/data-display/Carousel/Carousel.test.tsx +386 -0
- package/src/components/data-display/Carousel/Carousel.tsx +241 -0
- package/src/components/data-display/Carousel/Carousel.types.ts +20 -0
- package/src/components/data-display/Carousel/Carousel.variants.ts +125 -0
- package/src/components/data-display/Carousel/README.md +711 -0
- package/src/components/data-display/Carousel/index.ts +1 -0
- package/src/components/data-display/CategoryBar/CategoryBar.tsx +220 -0
- package/src/components/data-display/CategoryBar/CategoryBar.types.ts +80 -0
- package/src/components/data-display/CategoryBar/CategoryBar.variants.ts +85 -0
- package/src/components/data-display/CategoryBar/index.ts +2 -0
- package/src/components/data-display/Chart/Chart.test.tsx +432 -0
- package/src/components/data-display/Chart/Chart.tsx +476 -0
- package/src/components/data-display/Chart/Chart.types.ts +24 -0
- package/src/components/data-display/Chart/Chart.variants.ts +106 -0
- package/src/components/data-display/Chart/README.md +674 -0
- package/src/components/data-display/Chart/index.ts +1 -0
- package/src/components/data-display/ChartCard/ChartCard.test.tsx +327 -0
- package/src/components/data-display/ChartCard/ChartCard.tsx +201 -0
- package/src/components/data-display/ChartCard/ChartCard.types.ts +68 -0
- package/src/components/data-display/ChartCard/ChartCard.variants.ts +63 -0
- package/src/components/data-display/ChartCard/index.ts +17 -0
- package/src/components/data-display/ChartLegend/ChartLegend.test.tsx +165 -0
- package/src/components/data-display/ChartLegend/ChartLegend.types.ts +88 -0
- package/src/components/data-display/ChartLegend/README.md +317 -0
- package/src/components/data-display/ChartLegend/index.ts +22 -0
- package/src/components/data-display/ComboChart/ComboChart.tsx +380 -0
- package/src/components/data-display/ComboChart/ComboChart.types.ts +224 -0
- package/src/components/data-display/ComboChart/index.ts +2 -0
- package/src/components/data-display/DashboardCard/DashboardCard.test.tsx +289 -0
- package/src/components/data-display/DashboardCard/DashboardCard.tsx +285 -0
- package/src/components/data-display/DashboardCard/DashboardCard.types.ts +74 -0
- package/src/components/data-display/DashboardCard/DashboardCard.variants.ts +67 -0
- package/src/components/data-display/DashboardCard/index.ts +25 -0
- package/src/components/data-display/DashboardFilterbar/DashboardFilterbar.tsx +151 -0
- package/src/components/data-display/DashboardFilterbar/DashboardFilterbar.types.ts +39 -0
- package/src/components/data-display/DashboardFilterbar/DashboardFilterbar.variants.ts +30 -0
- package/src/components/data-display/DashboardFilterbar/index.ts +10 -0
- package/src/components/data-display/DataTable/DataTable.test.tsx +654 -0
- package/src/components/data-display/DataTable/DataTable.tsx +529 -0
- package/src/components/data-display/DataTable/DataTable.types.ts +190 -0
- package/src/components/data-display/DataTable/DataTable.variants.ts +79 -0
- package/src/components/data-display/DataTable/README.md +447 -0
- package/src/components/data-display/DataTable/index.ts +2 -0
- package/src/components/data-display/DeltaBar/DeltaBar.tsx +100 -0
- package/src/components/data-display/DeltaBar/DeltaBar.types.ts +57 -0
- package/src/components/data-display/DeltaBar/DeltaBar.variants.ts +40 -0
- package/src/components/data-display/DeltaBar/index.ts +2 -0
- package/src/components/data-display/EmptyState/EmptyState.test.tsx +368 -0
- package/src/components/data-display/EmptyState/EmptyState.tsx +91 -0
- package/src/components/data-display/EmptyState/EmptyState.types.ts +9 -0
- package/src/components/data-display/EmptyState/EmptyState.variants.ts +28 -0
- package/src/components/data-display/EmptyState/README.md +746 -0
- package/src/components/data-display/EmptyState/index.ts +1 -0
- package/src/components/data-display/Feed/Feed.test.tsx +668 -0
- package/src/components/data-display/Feed/Feed.tsx +290 -0
- package/src/components/data-display/Feed/Feed.types.ts +104 -0
- package/src/components/data-display/Feed/Feed.variants.ts +64 -0
- package/src/components/data-display/Feed/README.md +326 -0
- package/src/components/data-display/Feed/index.ts +17 -0
- package/src/components/data-display/FunnelChart/FunnelChart.tsx +177 -0
- package/src/components/data-display/FunnelChart/FunnelChart.types.ts +145 -0
- package/src/components/data-display/FunnelChart/index.ts +2 -0
- package/src/components/data-display/GaugeChart/GaugeChart.test.tsx +129 -0
- package/src/components/data-display/GaugeChart/GaugeChart.tsx +332 -0
- package/src/components/data-display/GaugeChart/GaugeChart.types.ts +53 -0
- package/src/components/data-display/GaugeChart/GaugeChart.variants.ts +56 -0
- package/src/components/data-display/GaugeChart/README.md +305 -0
- package/src/components/data-display/GaugeChart/index.ts +3 -0
- package/src/components/data-display/Heatmap/Heatmap.test.tsx +630 -0
- package/src/components/data-display/Heatmap/Heatmap.tsx +569 -0
- package/src/components/data-display/Heatmap/Heatmap.types.ts +120 -0
- package/src/components/data-display/Heatmap/Heatmap.variants.ts +72 -0
- package/src/components/data-display/Heatmap/README.md +321 -0
- package/src/components/data-display/Heatmap/index.ts +2 -0
- package/src/components/data-display/HoverCard/HoverCard.test.tsx +314 -0
- package/src/components/data-display/HoverCard/HoverCard.tsx +40 -0
- package/src/components/data-display/HoverCard/HoverCard.types.ts +21 -0
- package/src/components/data-display/HoverCard/HoverCard.variants.ts +29 -0
- package/src/components/data-display/HoverCard/README.md +624 -0
- package/src/components/data-display/HoverCard/index.ts +1 -0
- package/src/components/data-display/ImageGallery/ImageGallery.test.tsx +519 -0
- package/src/components/data-display/ImageGallery/ImageGallery.tsx +733 -0
- package/src/components/data-display/ImageGallery/ImageGallery.types.ts +109 -0
- package/src/components/data-display/ImageGallery/ImageGallery.variants.ts +58 -0
- package/src/components/data-display/ImageGallery/README.md +352 -0
- package/src/components/data-display/ImageGallery/index.ts +9 -0
- package/src/components/data-display/Item/Item.test.tsx +476 -0
- package/src/components/data-display/Item/Item.tsx +195 -0
- package/src/components/data-display/Item/Item.types.ts +23 -0
- package/src/components/data-display/Item/Item.variants.ts +51 -0
- package/src/components/data-display/Item/README.md +759 -0
- package/src/components/data-display/Item/index.ts +1 -0
- package/src/components/data-display/KPICard/KPICard.test.tsx +445 -0
- package/src/components/data-display/KPICard/KPICard.tsx +203 -0
- package/src/components/data-display/KPICard/KPICard.types.ts +32 -0
- package/src/components/data-display/KPICard/KPICard.variants.ts +64 -0
- package/src/components/data-display/KPICard/README.md +380 -0
- package/src/components/data-display/KPICard/index.ts +7 -0
- package/src/components/data-display/Lightbox/Lightbox.test.tsx +574 -0
- package/src/components/data-display/Lightbox/Lightbox.tsx +466 -0
- package/src/components/data-display/Lightbox/Lightbox.types.ts +53 -0
- package/src/components/data-display/Lightbox/Lightbox.variants.ts +99 -0
- package/src/components/data-display/Lightbox/README.md +397 -0
- package/src/components/data-display/Lightbox/index.ts +2 -0
- package/src/components/data-display/LineChart/LineChart.test.tsx +654 -0
- package/src/components/data-display/LineChart/LineChart.tsx +295 -0
- package/src/components/data-display/LineChart/LineChart.types.ts +168 -0
- package/src/components/data-display/LineChart/LineChart.variants.ts +52 -0
- package/src/components/data-display/LineChart/README.md +242 -0
- package/src/components/data-display/LineChart/index.ts +8 -0
- package/src/components/data-display/List/List.test.tsx +756 -0
- package/src/components/data-display/List/List.tsx +455 -0
- package/src/components/data-display/List/List.types.ts +67 -0
- package/src/components/data-display/List/List.variants.ts +69 -0
- package/src/components/data-display/List/README.md +374 -0
- package/src/components/data-display/List/index.ts +9 -0
- package/src/components/data-display/MarkerBar/MarkerBar.tsx +130 -0
- package/src/components/data-display/MarkerBar/MarkerBar.types.ts +67 -0
- package/src/components/data-display/MarkerBar/MarkerBar.variants.ts +75 -0
- package/src/components/data-display/MarkerBar/index.ts +3 -0
- package/src/components/data-display/PieChart/PieChart.test.tsx +655 -0
- package/src/components/data-display/PieChart/PieChart.tsx +327 -0
- package/src/components/data-display/PieChart/PieChart.types.ts +134 -0
- package/src/components/data-display/PieChart/PieChart.variants.ts +49 -0
- package/src/components/data-display/PieChart/README.md +261 -0
- package/src/components/data-display/PieChart/index.ts +2 -0
- package/src/components/data-display/ScatterChart/ScatterChart.tsx +310 -0
- package/src/components/data-display/ScatterChart/ScatterChart.types.ts +272 -0
- package/src/components/data-display/ScatterChart/index.ts +2 -0
- package/src/components/data-display/SingleStat/README.md +363 -0
- package/src/components/data-display/SingleStat/SingleStat.test.tsx +223 -0
- package/src/components/data-display/SingleStat/SingleStat.tsx +251 -0
- package/src/components/data-display/SingleStat/SingleStat.types.ts +71 -0
- package/src/components/data-display/SingleStat/SingleStat.variants.ts +51 -0
- package/src/components/data-display/SingleStat/index.ts +6 -0
- package/src/components/data-display/Sparkline/README.md +321 -0
- package/src/components/data-display/Sparkline/Sparkline.test.tsx +276 -0
- package/src/components/data-display/Sparkline/Sparkline.tsx +971 -0
- package/src/components/data-display/Sparkline/Sparkline.types.ts +147 -0
- package/src/components/data-display/Sparkline/Sparkline.variants.ts +52 -0
- package/src/components/data-display/Sparkline/index.ts +9 -0
- package/src/components/data-display/Table/README.md +821 -0
- package/src/components/data-display/Table/Table.test.tsx +732 -0
- package/src/components/data-display/Table/Table.tsx +123 -0
- package/src/components/data-display/Table/Table.types.ts +20 -0
- package/src/components/data-display/Table/Table.variants.ts +123 -0
- package/src/components/data-display/Table/index.ts +1 -0
- package/src/components/data-display/Timeline/README.md +366 -0
- package/src/components/data-display/Timeline/Timeline.test.tsx +701 -0
- package/src/components/data-display/Timeline/Timeline.tsx +328 -0
- package/src/components/data-display/Timeline/Timeline.types.ts +59 -0
- package/src/components/data-display/Timeline/Timeline.variants.ts +152 -0
- package/src/components/data-display/Timeline/index.ts +15 -0
- package/src/components/data-display/Tracker/Tracker.tsx +105 -0
- package/src/components/data-display/Tracker/Tracker.types.ts +45 -0
- package/src/components/data-display/Tracker/Tracker.variants.ts +24 -0
- package/src/components/data-display/Tracker/index.ts +2 -0
- package/src/components/data-display/VirtualTable/README.md +383 -0
- package/src/components/data-display/VirtualTable/VirtualTable.test.tsx +295 -0
- package/src/components/data-display/VirtualTable/VirtualTable.tsx +354 -0
- package/src/components/data-display/VirtualTable/VirtualTable.types.ts +62 -0
- package/src/components/data-display/VirtualTable/VirtualTable.variants.ts +61 -0
- package/src/components/data-display/VirtualTable/index.ts +2 -0
- package/src/components/data-display/index.ts +35 -0
- package/src/components/feedback/Alert/Alert.test.tsx +614 -0
- package/src/components/feedback/Alert/Alert.tsx +48 -0
- package/src/components/feedback/Alert/Alert.types.ts +42 -0
- package/src/components/feedback/Alert/Alert.variants.ts +20 -0
- package/src/components/feedback/Alert/README.md +522 -0
- package/src/components/feedback/Alert/index.ts +3 -0
- package/src/components/feedback/AlertDialog/AlertDialog.test.tsx +1237 -0
- package/src/components/feedback/AlertDialog/AlertDialog.tsx +160 -0
- package/src/components/feedback/AlertDialog/AlertDialog.types.ts +139 -0
- package/src/components/feedback/AlertDialog/README.md +723 -0
- package/src/components/feedback/AlertDialog/index.ts +2 -0
- package/src/components/feedback/CLAUDE.md +87 -0
- package/src/components/feedback/ConfirmModal/ConfirmModal.test.tsx +404 -0
- package/src/components/feedback/ConfirmModal/ConfirmModal.tsx +139 -0
- package/src/components/feedback/ConfirmModal/ConfirmModal.types.ts +117 -0
- package/src/components/feedback/ConfirmModal/README.md +546 -0
- package/src/components/feedback/ConfirmModal/index.ts +2 -0
- package/src/components/feedback/Dialog/Dialog.test.tsx +1070 -0
- package/src/components/feedback/Dialog/Dialog.tsx +137 -0
- package/src/components/feedback/Dialog/Dialog.types.ts +119 -0
- package/src/components/feedback/Dialog/README.md +770 -0
- package/src/components/feedback/Dialog/index.ts +2 -0
- package/src/components/feedback/ErrorPage/ErrorPage.test.tsx +338 -0
- package/src/components/feedback/ErrorPage/ErrorPage.tsx +232 -0
- package/src/components/feedback/ErrorPage/ErrorPage.types.ts +95 -0
- package/src/components/feedback/ErrorPage/README.md +573 -0
- package/src/components/feedback/ErrorPage/index.ts +6 -0
- package/src/components/feedback/FocusTrap/FocusTrap.test.tsx +378 -0
- package/src/components/feedback/FocusTrap/FocusTrap.tsx +115 -0
- package/src/components/feedback/FocusTrap/FocusTrap.types.ts +119 -0
- package/src/components/feedback/FocusTrap/README.md +571 -0
- package/src/components/feedback/FocusTrap/index.ts +2 -0
- package/src/components/feedback/Message/Message.test.tsx +143 -0
- package/src/components/feedback/Message/Message.tsx +66 -0
- package/src/components/feedback/Message/Message.types.ts +44 -0
- package/src/components/feedback/Message/Message.variants.ts +24 -0
- package/src/components/feedback/Message/README.md +522 -0
- package/src/components/feedback/Message/index.ts +2 -0
- package/src/components/feedback/Modal/Modal.test.tsx +475 -0
- package/src/components/feedback/Modal/Modal.tsx +168 -0
- package/src/components/feedback/Modal/Modal.types.ts +91 -0
- package/src/components/feedback/Modal/README.md +517 -0
- package/src/components/feedback/Modal/index.ts +2 -0
- package/src/components/feedback/Notification/Notification.test.tsx +908 -0
- package/src/components/feedback/Notification/Notification.tsx +222 -0
- package/src/components/feedback/Notification/Notification.types.ts +90 -0
- package/src/components/feedback/Notification/Notification.variants.ts +54 -0
- package/src/components/feedback/Notification/README.md +602 -0
- package/src/components/feedback/Notification/index.ts +11 -0
- package/src/components/feedback/Popover/Popover.test.tsx +901 -0
- package/src/components/feedback/Popover/Popover.tsx +60 -0
- package/src/components/feedback/Popover/Popover.types.ts +158 -0
- package/src/components/feedback/Popover/Popover.variants.ts +27 -0
- package/src/components/feedback/Popover/README.md +700 -0
- package/src/components/feedback/Popover/index.ts +2 -0
- package/src/components/feedback/Toast/README.md +613 -0
- package/src/components/feedback/Toast/Toast.test.tsx +1116 -0
- package/src/components/feedback/Toast/Toast.tsx +44 -0
- package/src/components/feedback/Toast/Toast.types.ts +156 -0
- package/src/components/feedback/Toast/index.ts +1 -0
- package/src/components/feedback/Tooltip/README.md +671 -0
- package/src/components/feedback/Tooltip/Tooltip.test.tsx +413 -0
- package/src/components/feedback/Tooltip/Tooltip.tsx +110 -0
- package/src/components/feedback/Tooltip/Tooltip.types.ts +138 -0
- package/src/components/feedback/Tooltip/Tooltip.variants.ts +54 -0
- package/src/components/feedback/Tooltip/index.ts +3 -0
- package/src/components/feedback/index.ts +13 -0
- package/src/components/forms/Autocomplete/Autocomplete.test.tsx +2351 -0
- package/src/components/forms/Autocomplete/Autocomplete.tsx +696 -0
- package/src/components/forms/Autocomplete/Autocomplete.types.ts +211 -0
- package/src/components/forms/Autocomplete/Autocomplete.variants.ts +154 -0
- package/src/components/forms/Autocomplete/README.md +919 -0
- package/src/components/forms/Autocomplete/index.ts +7 -0
- package/src/components/forms/CLAUDE.md +124 -0
- package/src/components/forms/Checkbox/Checkbox.test.tsx +475 -0
- package/src/components/forms/Checkbox/Checkbox.tsx +35 -0
- package/src/components/forms/Checkbox/Checkbox.types.ts +24 -0
- package/src/components/forms/Checkbox/Checkbox.variants.ts +46 -0
- package/src/components/forms/Checkbox/README.md +861 -0
- package/src/components/forms/Checkbox/index.ts +3 -0
- package/src/components/forms/CheckboxGroup/CheckboxGroup.test.tsx +338 -0
- package/src/components/forms/CheckboxGroup/CheckboxGroup.tsx +212 -0
- package/src/components/forms/CheckboxGroup/CheckboxGroup.types.ts +150 -0
- package/src/components/forms/CheckboxGroup/CheckboxGroup.variants.ts +85 -0
- package/src/components/forms/CheckboxGroup/README.md +124 -0
- package/src/components/forms/CheckboxGroup/index.ts +21 -0
- package/src/components/forms/ColorPicker/ColorPicker.test.tsx +916 -0
- package/src/components/forms/ColorPicker/ColorPicker.tsx +282 -0
- package/src/components/forms/ColorPicker/ColorPicker.types.ts +99 -0
- package/src/components/forms/ColorPicker/ColorPicker.variants.ts +84 -0
- package/src/components/forms/ColorPicker/README.md +809 -0
- package/src/components/forms/ColorPicker/index.ts +14 -0
- package/src/components/forms/Combobox/Combobox.test.tsx +975 -0
- package/src/components/forms/Combobox/Combobox.tsx +194 -0
- package/src/components/forms/Combobox/Combobox.types.ts +113 -0
- package/src/components/forms/Combobox/Combobox.variants.ts +108 -0
- package/src/components/forms/Combobox/README.md +923 -0
- package/src/components/forms/Combobox/index.ts +7 -0
- package/src/components/forms/DatePicker/DatePicker.test.tsx +1181 -0
- package/src/components/forms/DatePicker/DatePicker.tsx +503 -0
- package/src/components/forms/DatePicker/DatePicker.types.ts +196 -0
- package/src/components/forms/DatePicker/DatePicker.variants.ts +38 -0
- package/src/components/forms/DatePicker/README.md +821 -0
- package/src/components/forms/DatePicker/index.ts +8 -0
- package/src/components/forms/DateRangePicker/DateRangeInput.tsx +139 -0
- package/src/components/forms/DateRangePicker/DateRangePicker.test.tsx +1684 -0
- package/src/components/forms/DateRangePicker/DateRangePicker.tsx +375 -0
- package/src/components/forms/DateRangePicker/DateRangePicker.types.ts +145 -0
- package/src/components/forms/DateRangePicker/DateRangePicker.variants.ts +133 -0
- package/src/components/forms/DateRangePicker/DateRangePresets.tsx +44 -0
- package/src/components/forms/DateRangePicker/index.ts +25 -0
- package/src/components/forms/DateRangePicker/presets.ts +104 -0
- package/src/components/forms/EmailInput/EmailInput.test.tsx +562 -0
- package/src/components/forms/EmailInput/EmailInput.tsx +59 -0
- package/src/components/forms/EmailInput/EmailInput.types.ts +46 -0
- package/src/components/forms/EmailInput/EmailInput.variants.ts +30 -0
- package/src/components/forms/EmailInput/README.md +708 -0
- package/src/components/forms/EmailInput/index.ts +6 -0
- package/src/components/forms/ErrorMessage/ErrorMessage.test.tsx +457 -0
- package/src/components/forms/ErrorMessage/ErrorMessage.tsx +128 -0
- package/src/components/forms/ErrorMessage/ErrorMessage.types.ts +54 -0
- package/src/components/forms/ErrorMessage/ErrorMessage.variants.ts +78 -0
- package/src/components/forms/ErrorMessage/README.md +855 -0
- package/src/components/forms/ErrorMessage/index.ts +4 -0
- package/src/components/forms/Field/Field.test.tsx +811 -0
- package/src/components/forms/Field/Field.tsx +195 -0
- package/src/components/forms/Field/Field.types.ts +94 -0
- package/src/components/forms/Field/Field.variants.ts +114 -0
- package/src/components/forms/Field/README.md +931 -0
- package/src/components/forms/Field/index.ts +3 -0
- package/src/components/forms/FloatLabel/FloatLabel.test.tsx +248 -0
- package/src/components/forms/FloatLabel/FloatLabel.tsx +110 -0
- package/src/components/forms/FloatLabel/FloatLabel.types.ts +37 -0
- package/src/components/forms/FloatLabel/index.ts +2 -0
- package/src/components/forms/Form/Form.test.tsx +1167 -0
- package/src/components/forms/Form/Form.tsx +170 -0
- package/src/components/forms/Form/Form.types.ts +126 -0
- package/src/components/forms/Form/Form.variants.ts +81 -0
- package/src/components/forms/Form/README.md +787 -0
- package/src/components/forms/Form/index.ts +3 -0
- package/src/components/forms/FormValidation/FormValidation.test.tsx +376 -0
- package/src/components/forms/FormValidation/FormValidation.tsx +99 -0
- package/src/components/forms/FormValidation/FormValidation.types.ts +37 -0
- package/src/components/forms/FormValidation/FormValidation.variants.ts +24 -0
- package/src/components/forms/FormValidation/README.md +592 -0
- package/src/components/forms/FormValidation/index.ts +4 -0
- package/src/components/forms/HelpText/HelpText.test.tsx +558 -0
- package/src/components/forms/HelpText/HelpText.tsx +111 -0
- package/src/components/forms/HelpText/HelpText.types.ts +51 -0
- package/src/components/forms/HelpText/HelpText.variants.ts +54 -0
- package/src/components/forms/HelpText/README.md +739 -0
- package/src/components/forms/HelpText/index.ts +4 -0
- package/src/components/forms/IftaLabel/IftaLabel.test.tsx +193 -0
- package/src/components/forms/IftaLabel/IftaLabel.tsx +72 -0
- package/src/components/forms/IftaLabel/IftaLabel.types.ts +18 -0
- package/src/components/forms/IftaLabel/index.ts +2 -0
- package/src/components/forms/InputGroup/InputGroup.test.tsx +782 -0
- package/src/components/forms/InputGroup/InputGroup.tsx +128 -0
- package/src/components/forms/InputGroup/InputGroup.types.ts +66 -0
- package/src/components/forms/InputGroup/InputGroup.variants.ts +102 -0
- package/src/components/forms/InputGroup/README.md +845 -0
- package/src/components/forms/InputGroup/index.ts +24 -0
- package/src/components/forms/InputOTP/InputOTP.test.tsx +793 -0
- package/src/components/forms/InputOTP/InputOTP.tsx +90 -0
- package/src/components/forms/InputOTP/InputOTP.types.ts +74 -0
- package/src/components/forms/InputOTP/InputOTP.variants.ts +64 -0
- package/src/components/forms/InputOTP/README.md +1149 -0
- package/src/components/forms/InputOTP/index.ts +18 -0
- package/src/components/forms/InputOTPField/InputOTPField.test.tsx +220 -0
- package/src/components/forms/InputOTPField/InputOTPField.tsx +148 -0
- package/src/components/forms/InputOTPField/InputOTPField.types.ts +91 -0
- package/src/components/forms/InputOTPField/InputOTPField.variants.ts +83 -0
- package/src/components/forms/InputOTPField/README.md +195 -0
- package/src/components/forms/InputOTPField/index.ts +12 -0
- package/src/components/forms/MultiSelect/MultiSelect.test.tsx +1036 -0
- package/src/components/forms/MultiSelect/MultiSelect.tsx +291 -0
- package/src/components/forms/MultiSelect/MultiSelect.types.ts +147 -0
- package/src/components/forms/MultiSelect/MultiSelect.variants.ts +132 -0
- package/src/components/forms/MultiSelect/README.md +897 -0
- package/src/components/forms/MultiSelect/index.ts +7 -0
- package/src/components/forms/NativeSelect/NativeSelect.test.tsx +856 -0
- package/src/components/forms/NativeSelect/NativeSelect.tsx +75 -0
- package/src/components/forms/NativeSelect/NativeSelect.types.ts +17 -0
- package/src/components/forms/NativeSelect/NativeSelect.variants.ts +106 -0
- package/src/components/forms/NativeSelect/README.md +1033 -0
- package/src/components/forms/NativeSelect/index.ts +3 -0
- package/src/components/forms/NumberInput/NumberInput.test.tsx +636 -0
- package/src/components/forms/NumberInput/NumberInput.tsx +131 -0
- package/src/components/forms/NumberInput/NumberInput.types.ts +45 -0
- package/src/components/forms/NumberInput/NumberInput.variants.ts +85 -0
- package/src/components/forms/NumberInput/README.md +766 -0
- package/src/components/forms/NumberInput/index.ts +9 -0
- package/src/components/forms/PasswordInput/PasswordInput.test.tsx +525 -0
- package/src/components/forms/PasswordInput/PasswordInput.tsx +67 -0
- package/src/components/forms/PasswordInput/PasswordInput.types.ts +35 -0
- package/src/components/forms/PasswordInput/PasswordInput.variants.ts +34 -0
- package/src/components/forms/PasswordInput/README.md +698 -0
- package/src/components/forms/PasswordInput/index.ts +6 -0
- package/src/components/forms/PaymentInput/PaymentInput.test.tsx +252 -0
- package/src/components/forms/PaymentInput/PaymentInput.tsx +178 -0
- package/src/components/forms/PaymentInput/PaymentInput.types.ts +69 -0
- package/src/components/forms/PaymentInput/PaymentInput.variants.ts +81 -0
- package/src/components/forms/PaymentInput/README.md +263 -0
- package/src/components/forms/PaymentInput/card-utils.ts +219 -0
- package/src/components/forms/PaymentInput/index.ts +23 -0
- package/src/components/forms/PhoneInput/PhoneInput.test.tsx +270 -0
- package/src/components/forms/PhoneInput/PhoneInput.tsx +215 -0
- package/src/components/forms/PhoneInput/PhoneInput.types.ts +74 -0
- package/src/components/forms/PhoneInput/PhoneInput.variants.ts +103 -0
- package/src/components/forms/PhoneInput/README.md +258 -0
- package/src/components/forms/PhoneInput/countries.ts +134 -0
- package/src/components/forms/PhoneInput/index.ts +22 -0
- package/src/components/forms/RadioButton/README.md +832 -0
- package/src/components/forms/RadioButton/RadioButton.test.tsx +583 -0
- package/src/components/forms/RadioButton/RadioButton.tsx +82 -0
- package/src/components/forms/RadioButton/RadioButton.types.ts +23 -0
- package/src/components/forms/RadioButton/RadioButton.variants.ts +80 -0
- package/src/components/forms/RadioButton/index.ts +15 -0
- package/src/components/forms/RadioCardGroup/RadioCardGroup.tsx +130 -0
- package/src/components/forms/RadioCardGroup/RadioCardGroup.types.ts +66 -0
- package/src/components/forms/RadioCardGroup/RadioCardGroup.variants.ts +131 -0
- package/src/components/forms/RadioCardGroup/index.ts +3 -0
- package/src/components/forms/RadioGroup/README.md +908 -0
- package/src/components/forms/RadioGroup/RadioGroup.test.tsx +764 -0
- package/src/components/forms/RadioGroup/RadioGroup.tsx +75 -0
- package/src/components/forms/RadioGroup/RadioGroup.types.ts +36 -0
- package/src/components/forms/RadioGroup/RadioGroup.variants.ts +58 -0
- package/src/components/forms/RadioGroup/index.ts +15 -0
- package/src/components/forms/Rating/README.md +729 -0
- package/src/components/forms/Rating/Rating.test.tsx +729 -0
- package/src/components/forms/Rating/Rating.tsx +258 -0
- package/src/components/forms/Rating/Rating.types.ts +89 -0
- package/src/components/forms/Rating/Rating.variants.ts +56 -0
- package/src/components/forms/Rating/index.ts +8 -0
- package/src/components/forms/SearchInput/README.md +729 -0
- package/src/components/forms/SearchInput/SearchInput.test.tsx +579 -0
- package/src/components/forms/SearchInput/SearchInput.tsx +103 -0
- package/src/components/forms/SearchInput/SearchInput.types.ts +40 -0
- package/src/components/forms/SearchInput/SearchInput.variants.ts +51 -0
- package/src/components/forms/SearchInput/index.ts +8 -0
- package/src/components/forms/Select/README.md +1286 -0
- package/src/components/forms/Select/Select.test.tsx +1136 -0
- package/src/components/forms/Select/Select.tsx +170 -0
- package/src/components/forms/Select/Select.types.ts +75 -0
- package/src/components/forms/Select/Select.variants.ts +133 -0
- package/src/components/forms/Select/index.ts +3 -0
- package/src/components/forms/Slider/README.md +1246 -0
- package/src/components/forms/Slider/Slider.test.tsx +731 -0
- package/src/components/forms/Slider/Slider.tsx +235 -0
- package/src/components/forms/Slider/Slider.types.ts +90 -0
- package/src/components/forms/Slider/Slider.variants.ts +239 -0
- package/src/components/forms/Slider/index.ts +34 -0
- package/src/components/forms/SuccessMessage/README.md +534 -0
- package/src/components/forms/SuccessMessage/SuccessMessage.test.tsx +257 -0
- package/src/components/forms/SuccessMessage/SuccessMessage.tsx +43 -0
- package/src/components/forms/SuccessMessage/SuccessMessage.types.ts +11 -0
- package/src/components/forms/SuccessMessage/SuccessMessage.variants.ts +15 -0
- package/src/components/forms/SuccessMessage/index.ts +4 -0
- package/src/components/forms/Switch/README.md +785 -0
- package/src/components/forms/Switch/Switch.test.tsx +636 -0
- package/src/components/forms/Switch/Switch.tsx +28 -0
- package/src/components/forms/Switch/Switch.types.ts +24 -0
- package/src/components/forms/Switch/Switch.variants.ts +49 -0
- package/src/components/forms/Switch/index.ts +3 -0
- package/src/components/forms/TagsInput/README.md +216 -0
- package/src/components/forms/TagsInput/TagsInput.test.tsx +308 -0
- package/src/components/forms/TagsInput/TagsInput.tsx +189 -0
- package/src/components/forms/TagsInput/TagsInput.types.ts +85 -0
- package/src/components/forms/TagsInput/TagsInput.variants.ts +58 -0
- package/src/components/forms/TagsInput/index.ts +12 -0
- package/src/components/forms/TextInput/README.md +871 -0
- package/src/components/forms/TextInput/TextInput.test.tsx +484 -0
- package/src/components/forms/TextInput/TextInput.tsx +76 -0
- package/src/components/forms/TextInput/TextInput.types.ts +61 -0
- package/src/components/forms/TextInput/TextInput.variants.ts +117 -0
- package/src/components/forms/TextInput/index.ts +14 -0
- package/src/components/forms/Textarea/README.md +905 -0
- package/src/components/forms/Textarea/Textarea.test.tsx +482 -0
- package/src/components/forms/Textarea/Textarea.tsx +24 -0
- package/src/components/forms/Textarea/Textarea.types.ts +39 -0
- package/src/components/forms/Textarea/Textarea.variants.ts +48 -0
- package/src/components/forms/Textarea/index.ts +3 -0
- package/src/components/forms/TextareaField/README.md +172 -0
- package/src/components/forms/TextareaField/TextareaField.test.tsx +260 -0
- package/src/components/forms/TextareaField/TextareaField.tsx +73 -0
- package/src/components/forms/TextareaField/TextareaField.types.ts +37 -0
- package/src/components/forms/TextareaField/TextareaField.variants.ts +83 -0
- package/src/components/forms/TextareaField/index.ts +12 -0
- package/src/components/forms/TimePicker/README.md +750 -0
- package/src/components/forms/TimePicker/TimePicker.test.tsx +780 -0
- package/src/components/forms/TimePicker/TimePicker.tsx +383 -0
- package/src/components/forms/TimePicker/TimePicker.types.ts +94 -0
- package/src/components/forms/TimePicker/TimePicker.variants.ts +83 -0
- package/src/components/forms/TimePicker/index.ts +14 -0
- package/src/components/forms/ToggleGroup/README.md +870 -0
- package/src/components/forms/ToggleGroup/ToggleGroup.test.tsx +941 -0
- package/src/components/forms/ToggleGroup/ToggleGroup.tsx +5 -0
- package/src/components/forms/ToggleGroup/ToggleGroup.types.ts +17 -0
- package/src/components/forms/ToggleGroup/ToggleGroup.variants.ts +42 -0
- package/src/components/forms/ToggleGroup/index.ts +9 -0
- package/src/components/forms/URLInput/README.md +701 -0
- package/src/components/forms/URLInput/URLInput.test.tsx +602 -0
- package/src/components/forms/URLInput/URLInput.tsx +71 -0
- package/src/components/forms/URLInput/URLInput.types.ts +51 -0
- package/src/components/forms/URLInput/URLInput.variants.ts +52 -0
- package/src/components/forms/URLInput/index.ts +8 -0
- package/src/components/forms/index.ts +44 -0
- package/src/components/index.ts +26 -0
- package/src/components/layout/AppContent/AppContent.test.tsx +34 -0
- package/src/components/layout/AppContent/AppContent.tsx +23 -0
- package/src/components/layout/AppContent/AppContent.variants.ts +23 -0
- package/src/components/layout/AppContent/index.ts +2 -0
- package/src/components/layout/AppHeader/AppHeader.test.tsx +26 -0
- package/src/components/layout/AppHeader/AppHeader.tsx +17 -0
- package/src/components/layout/AppHeader/AppHeader.variants.ts +21 -0
- package/src/components/layout/AppHeader/AppHeaderActions.tsx +13 -0
- package/src/components/layout/AppHeader/AppHeaderNav.tsx +13 -0
- package/src/components/layout/AppHeader/AppHeaderTitle.tsx +13 -0
- package/src/components/layout/AppHeader/index.ts +5 -0
- package/src/components/layout/AppRail/AppRail.test.tsx +50 -0
- package/src/components/layout/AppRail/AppRail.tsx +24 -0
- package/src/components/layout/AppRail/AppRail.variants.ts +31 -0
- package/src/components/layout/AppRail/AppRailFooter.tsx +13 -0
- package/src/components/layout/AppRail/AppRailGroup.tsx +13 -0
- package/src/components/layout/AppRail/AppRailHeader.tsx +13 -0
- package/src/components/layout/AppRail/AppRailItem.tsx +57 -0
- package/src/components/layout/AppRail/index.ts +5 -0
- package/src/components/layout/AppShell/AppShell.context.tsx +34 -0
- package/src/components/layout/AppShell/AppShell.test.tsx +61 -0
- package/src/components/layout/AppShell/AppShell.tsx +91 -0
- package/src/components/layout/AppShell/AppShell.variants.ts +21 -0
- package/src/components/layout/AppShell/index.ts +2 -0
- package/src/components/layout/AppSidebar/AppSidebar.test.tsx +69 -0
- package/src/components/layout/AppSidebar/AppSidebar.tsx +58 -0
- package/src/components/layout/AppSidebar/AppSidebar.variants.ts +41 -0
- package/src/components/layout/AppSidebar/AppSidebarContent.tsx +18 -0
- package/src/components/layout/AppSidebar/AppSidebarFooter.tsx +13 -0
- package/src/components/layout/AppSidebar/AppSidebarGroup.tsx +22 -0
- package/src/components/layout/AppSidebar/AppSidebarHeader.tsx +13 -0
- package/src/components/layout/AppSidebar/AppSidebarItem.tsx +54 -0
- package/src/components/layout/AppSidebar/AppSidebarTrigger.tsx +25 -0
- package/src/components/layout/AppSidebar/index.ts +7 -0
- package/src/components/layout/CLAUDE.md +112 -0
- package/src/components/layout/Card/Card.test.tsx +339 -0
- package/src/components/layout/Card/Card.tsx +102 -0
- package/src/components/layout/Card/Card.types.ts +52 -0
- package/src/components/layout/Card/Card.variants.ts +85 -0
- package/src/components/layout/Card/README.md +994 -0
- package/src/components/layout/Card/index.ts +3 -0
- package/src/components/layout/Collapsible/Collapsible.test.tsx +491 -0
- package/src/components/layout/Collapsible/Collapsible.tsx +50 -0
- package/src/components/layout/Collapsible/Collapsible.types.ts +26 -0
- package/src/components/layout/Collapsible/Collapsible.variants.ts +52 -0
- package/src/components/layout/Collapsible/README.md +885 -0
- package/src/components/layout/Collapsible/index.ts +3 -0
- package/src/components/layout/Container/Container.test.tsx +283 -0
- package/src/components/layout/Container/Container.tsx +25 -0
- package/src/components/layout/Container/Container.types.ts +36 -0
- package/src/components/layout/Container/Container.variants.ts +59 -0
- package/src/components/layout/Container/README.md +700 -0
- package/src/components/layout/Container/index.ts +3 -0
- package/src/components/layout/Flex/Flex.test.tsx +545 -0
- package/src/components/layout/Flex/Flex.tsx +52 -0
- package/src/components/layout/Flex/Flex.types.ts +61 -0
- package/src/components/layout/Flex/Flex.variants.ts +98 -0
- package/src/components/layout/Flex/README.md +812 -0
- package/src/components/layout/Flex/index.ts +3 -0
- package/src/components/layout/Grid/Grid.test.tsx +601 -0
- package/src/components/layout/Grid/Grid.tsx +61 -0
- package/src/components/layout/Grid/Grid.types.ts +47 -0
- package/src/components/layout/Grid/Grid.variants.ts +100 -0
- package/src/components/layout/Grid/README.md +762 -0
- package/src/components/layout/Grid/index.ts +3 -0
- package/src/components/layout/PageContent/PageContent.tsx +13 -0
- package/src/components/layout/PageContent/index.ts +1 -0
- package/src/components/layout/PageHeader/PageHeader.tsx +43 -0
- package/src/components/layout/PageHeader/index.ts +1 -0
- package/src/components/layout/PageSection/PageSection.tsx +28 -0
- package/src/components/layout/PageSection/index.ts +1 -0
- package/src/components/layout/Panel/Panel.test.tsx +427 -0
- package/src/components/layout/Panel/Panel.tsx +75 -0
- package/src/components/layout/Panel/Panel.types.ts +59 -0
- package/src/components/layout/Panel/Panel.variants.ts +94 -0
- package/src/components/layout/Panel/README.md +861 -0
- package/src/components/layout/Panel/index.ts +3 -0
- package/src/components/layout/ResizablePanels/README.md +369 -0
- package/src/components/layout/ResizablePanels/ResizablePanels.test.tsx +506 -0
- package/src/components/layout/ResizablePanels/ResizablePanels.tsx +64 -0
- package/src/components/layout/ResizablePanels/ResizablePanels.types.ts +41 -0
- package/src/components/layout/ResizablePanels/ResizablePanels.variants.ts +67 -0
- package/src/components/layout/ResizablePanels/index.ts +3 -0
- package/src/components/layout/ResponsiveContainer/README.md +267 -0
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.test.tsx +386 -0
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.tsx +54 -0
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.types.ts +43 -0
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.variants.ts +106 -0
- package/src/components/layout/ResponsiveContainer/index.ts +3 -0
- package/src/components/layout/ScrollArea/README.md +278 -0
- package/src/components/layout/ScrollArea/ScrollArea.test.tsx +352 -0
- package/src/components/layout/ScrollArea/ScrollArea.tsx +61 -0
- package/src/components/layout/ScrollArea/ScrollArea.types.ts +36 -0
- package/src/components/layout/ScrollArea/ScrollArea.variants.ts +85 -0
- package/src/components/layout/ScrollArea/index.ts +3 -0
- package/src/components/layout/Section/README.md +315 -0
- package/src/components/layout/Section/Section.test.tsx +293 -0
- package/src/components/layout/Section/Section.tsx +60 -0
- package/src/components/layout/Section/Section.types.ts +38 -0
- package/src/components/layout/Section/Section.variants.ts +45 -0
- package/src/components/layout/Section/index.ts +3 -0
- package/src/components/layout/Sheet/README.md +533 -0
- package/src/components/layout/Sheet/Sheet.test.tsx +702 -0
- package/src/components/layout/Sheet/Sheet.tsx +142 -0
- package/src/components/layout/Sheet/Sheet.types.ts +92 -0
- package/src/components/layout/Sheet/Sheet.variants.ts +98 -0
- package/src/components/layout/Sheet/index.ts +3 -0
- package/src/components/layout/Stack/README.md +346 -0
- package/src/components/layout/Stack/Stack.test.tsx +492 -0
- package/src/components/layout/Stack/Stack.tsx +58 -0
- package/src/components/layout/Stack/Stack.types.ts +58 -0
- package/src/components/layout/Stack/Stack.variants.ts +77 -0
- package/src/components/layout/Stack/index.ts +3 -0
- package/src/components/layout/index.ts +21 -0
- package/src/components/navigation/Breadcrumb/Breadcrumb.test.tsx +875 -0
- package/src/components/navigation/Breadcrumb/Breadcrumb.tsx +183 -0
- package/src/components/navigation/Breadcrumb/Breadcrumb.types.ts +49 -0
- package/src/components/navigation/Breadcrumb/Breadcrumb.variants.ts +63 -0
- package/src/components/navigation/Breadcrumb/README.md +608 -0
- package/src/components/navigation/Breadcrumb/index.ts +24 -0
- package/src/components/navigation/CLAUDE.md +118 -0
- package/src/components/navigation/ContextMenu/ContextMenu.test.tsx +881 -0
- package/src/components/navigation/ContextMenu/ContextMenu.tsx +304 -0
- package/src/components/navigation/ContextMenu/ContextMenu.types.ts +119 -0
- package/src/components/navigation/ContextMenu/ContextMenu.variants.ts +167 -0
- package/src/components/navigation/ContextMenu/README.md +660 -0
- package/src/components/navigation/ContextMenu/index.ts +34 -0
- package/src/components/navigation/Drawer/Drawer.test.tsx +721 -0
- package/src/components/navigation/Drawer/Drawer.tsx +178 -0
- package/src/components/navigation/Drawer/Drawer.types.ts +66 -0
- package/src/components/navigation/Drawer/Drawer.variants.ts +121 -0
- package/src/components/navigation/Drawer/README.md +723 -0
- package/src/components/navigation/Drawer/index.ts +24 -0
- package/src/components/navigation/DropdownMenu/DropdownMenu.test.tsx +881 -0
- package/src/components/navigation/DropdownMenu/DropdownMenu.tsx +305 -0
- package/src/components/navigation/DropdownMenu/DropdownMenu.types.ts +98 -0
- package/src/components/navigation/DropdownMenu/DropdownMenu.variants.ts +168 -0
- package/src/components/navigation/DropdownMenu/README.md +676 -0
- package/src/components/navigation/DropdownMenu/index.ts +33 -0
- package/src/components/navigation/Header/Header.test.tsx +418 -0
- package/src/components/navigation/Header/Header.tsx +133 -0
- package/src/components/navigation/Header/Header.types.ts +41 -0
- package/src/components/navigation/Header/Header.variants.ts +91 -0
- package/src/components/navigation/Header/README.md +567 -0
- package/src/components/navigation/Header/index.ts +14 -0
- package/src/components/navigation/Menu/Menu.test.tsx +658 -0
- package/src/components/navigation/Menu/Menu.tsx +247 -0
- package/src/components/navigation/Menu/Menu.types.ts +51 -0
- package/src/components/navigation/Menu/Menu.variants.ts +105 -0
- package/src/components/navigation/Menu/README.md +599 -0
- package/src/components/navigation/Menu/index.ts +17 -0
- package/src/components/navigation/Menubar/Menubar.test.tsx +1028 -0
- package/src/components/navigation/Menubar/Menubar.tsx +308 -0
- package/src/components/navigation/Menubar/Menubar.types.ts +104 -0
- package/src/components/navigation/Menubar/Menubar.variants.ts +182 -0
- package/src/components/navigation/Menubar/README.md +641 -0
- package/src/components/navigation/Menubar/index.ts +36 -0
- package/src/components/navigation/MobileSidebar/MobileSidebar.test.tsx +255 -0
- package/src/components/navigation/MobileSidebar/MobileSidebar.tsx +187 -0
- package/src/components/navigation/MobileSidebar/MobileSidebar.types.ts +62 -0
- package/src/components/navigation/MobileSidebar/MobileSidebar.variants.ts +79 -0
- package/src/components/navigation/MobileSidebar/index.ts +17 -0
- package/src/components/navigation/Navbar/Navbar.test.tsx +621 -0
- package/src/components/navigation/Navbar/Navbar.tsx +238 -0
- package/src/components/navigation/Navbar/Navbar.types.ts +69 -0
- package/src/components/navigation/Navbar/Navbar.variants.ts +176 -0
- package/src/components/navigation/Navbar/README.md +670 -0
- package/src/components/navigation/Navbar/index.ts +20 -0
- package/src/components/navigation/NavigationMenu/NavigationMenu.test.tsx +701 -0
- package/src/components/navigation/NavigationMenu/NavigationMenu.tsx +211 -0
- package/src/components/navigation/NavigationMenu/NavigationMenu.types.ts +52 -0
- package/src/components/navigation/NavigationMenu/NavigationMenu.variants.ts +122 -0
- package/src/components/navigation/NavigationMenu/README.md +697 -0
- package/src/components/navigation/NavigationMenu/index.ts +23 -0
- package/src/components/navigation/Pagination/Pagination.test.tsx +619 -0
- package/src/components/navigation/Pagination/Pagination.tsx +185 -0
- package/src/components/navigation/Pagination/Pagination.types.ts +42 -0
- package/src/components/navigation/Pagination/Pagination.variants.ts +36 -0
- package/src/components/navigation/Pagination/README.md +635 -0
- package/src/components/navigation/Pagination/index.ts +17 -0
- package/src/components/navigation/Sidebar/README.md +628 -0
- package/src/components/navigation/Sidebar/Sidebar.test.tsx +1169 -0
- package/src/components/navigation/Sidebar/Sidebar.tsx +761 -0
- package/src/components/navigation/Sidebar/Sidebar.types.ts +168 -0
- package/src/components/navigation/Sidebar/Sidebar.variants.ts +302 -0
- package/src/components/navigation/Sidebar/index.ts +59 -0
- package/src/components/navigation/SkipLinks/README.md +512 -0
- package/src/components/navigation/SkipLinks/SkipLinks.test.tsx +445 -0
- package/src/components/navigation/SkipLinks/SkipLinks.tsx +103 -0
- package/src/components/navigation/SkipLinks/SkipLinks.types.ts +39 -0
- package/src/components/navigation/SkipLinks/SkipLinks.variants.ts +102 -0
- package/src/components/navigation/SkipLinks/index.ts +12 -0
- package/src/components/navigation/TabNavigation/TabNavigation.tsx +196 -0
- package/src/components/navigation/TabNavigation/TabNavigation.types.ts +85 -0
- package/src/components/navigation/TabNavigation/TabNavigation.variants.ts +95 -0
- package/src/components/navigation/TabNavigation/index.ts +10 -0
- package/src/components/navigation/TabPanel/README.md +437 -0
- package/src/components/navigation/TabPanel/TabPanel.test.tsx +566 -0
- package/src/components/navigation/TabPanel/TabPanel.tsx +95 -0
- package/src/components/navigation/TabPanel/TabPanel.types.ts +29 -0
- package/src/components/navigation/TabPanel/TabPanel.variants.ts +61 -0
- package/src/components/navigation/TabPanel/index.ts +13 -0
- package/src/components/navigation/Tabs/README.md +669 -0
- package/src/components/navigation/Tabs/Tabs.test.tsx +500 -0
- package/src/components/navigation/Tabs/Tabs.tsx +112 -0
- package/src/components/navigation/Tabs/Tabs.types.ts +38 -0
- package/src/components/navigation/Tabs/Tabs.variants.ts +80 -0
- package/src/components/navigation/Tabs/index.ts +14 -0
- package/src/components/navigation/Toolbar/README.md +650 -0
- package/src/components/navigation/Toolbar/Toolbar.test.tsx +620 -0
- package/src/components/navigation/Toolbar/Toolbar.tsx +133 -0
- package/src/components/navigation/Toolbar/Toolbar.types.ts +42 -0
- package/src/components/navigation/Toolbar/Toolbar.variants.ts +95 -0
- package/src/components/navigation/Toolbar/index.ts +17 -0
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.test.tsx +257 -0
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.tsx +267 -0
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.types.ts +84 -0
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.variants.ts +77 -0
- package/src/components/navigation/UserProfileDropdown/index.ts +17 -0
- package/src/components/navigation/WorkspaceDropdown/WorkspaceDropdown.tsx +190 -0
- package/src/components/navigation/WorkspaceDropdown/WorkspaceDropdown.types.ts +56 -0
- package/src/components/navigation/WorkspaceDropdown/WorkspaceDropdown.variants.ts +82 -0
- package/src/components/navigation/WorkspaceDropdown/index.ts +20 -0
- package/src/components/navigation/index.ts +17 -0
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.test.tsx +240 -0
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.tsx +96 -0
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.types.ts +16 -0
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.variants.ts +43 -0
- package/src/components/primitives/ArrowAnimated/index.ts +9 -0
- package/src/components/primitives/AspectRatio/AspectRatio.test.tsx +306 -0
- package/src/components/primitives/AspectRatio/AspectRatio.tsx +11 -0
- package/src/components/primitives/AspectRatio/AspectRatio.types.ts +57 -0
- package/src/components/primitives/AspectRatio/AspectRatio.variants.ts +110 -0
- package/src/components/primitives/AspectRatio/README.md +914 -0
- package/src/components/primitives/AspectRatio/index.ts +7 -0
- package/src/components/primitives/Avatar/Avatar.test.tsx +1311 -0
- package/src/components/primitives/Avatar/Avatar.tsx +159 -0
- package/src/components/primitives/Avatar/Avatar.types.ts +70 -0
- package/src/components/primitives/Avatar/AvatarAddButton.tsx +59 -0
- package/src/components/primitives/Avatar/AvatarBadge.tsx +84 -0
- package/src/components/primitives/Avatar/AvatarGroup.test.tsx +1377 -0
- package/src/components/primitives/Avatar/AvatarGroup.tsx +101 -0
- package/src/components/primitives/Avatar/AvatarLabelGroup.tsx +160 -0
- package/src/components/primitives/Avatar/AvatarSkeleton.tsx +76 -0
- package/src/components/primitives/Avatar/AvatarStatus.tsx +71 -0
- package/src/components/primitives/Avatar/README.md +1174 -0
- package/src/components/primitives/Avatar/index.ts +8 -0
- package/src/components/primitives/Badge/Badge.test.tsx +1146 -0
- package/src/components/primitives/Badge/Badge.tsx +389 -0
- package/src/components/primitives/Badge/Badge.types.ts +102 -0
- package/src/components/primitives/Badge/README.md +814 -0
- package/src/components/primitives/Badge/index.ts +2 -0
- package/src/components/primitives/Button/Button.test.tsx +626 -0
- package/src/components/primitives/Button/Button.tsx +299 -0
- package/src/components/primitives/Button/Button.types.ts +137 -0
- package/src/components/primitives/Button/README.md +1112 -0
- package/src/components/primitives/Button/index.ts +8 -0
- package/src/components/primitives/ButtonGroup/ButtonGroup.test.tsx +945 -0
- package/src/components/primitives/ButtonGroup/ButtonGroup.tsx +224 -0
- package/src/components/primitives/ButtonGroup/ButtonGroup.types.ts +133 -0
- package/src/components/primitives/ButtonGroup/README.md +945 -0
- package/src/components/primitives/ButtonGroup/index.ts +12 -0
- package/src/components/primitives/CLAUDE.md +108 -0
- package/src/components/primitives/ConfirmButton/ConfirmButton.test.tsx +929 -0
- package/src/components/primitives/ConfirmButton/ConfirmButton.tsx +298 -0
- package/src/components/primitives/ConfirmButton/ConfirmButton.types.ts +116 -0
- package/src/components/primitives/ConfirmButton/README.md +1059 -0
- package/src/components/primitives/ConfirmButton/index.ts +6 -0
- package/src/components/primitives/Divider/Divider.test.tsx +304 -0
- package/src/components/primitives/Divider/Divider.tsx +209 -0
- package/src/components/primitives/Divider/Divider.types.ts +74 -0
- package/src/components/primitives/Divider/README.md +839 -0
- package/src/components/primitives/Divider/index.ts +8 -0
- package/src/components/primitives/Heading/Heading.test.tsx +611 -0
- package/src/components/primitives/Heading/Heading.tsx +120 -0
- package/src/components/primitives/Heading/Heading.types.ts +61 -0
- package/src/components/primitives/Heading/README.md +820 -0
- package/src/components/primitives/Heading/index.ts +2 -0
- package/src/components/primitives/Icon/Icon.test.tsx +466 -0
- package/src/components/primitives/Icon/Icon.tsx +74 -0
- package/src/components/primitives/Icon/Icon.types.ts +61 -0
- package/src/components/primitives/Icon/README.md +759 -0
- package/src/components/primitives/Icon/index.ts +8 -0
- package/src/components/primitives/Image/Image.test.tsx +734 -0
- package/src/components/primitives/Image/Image.tsx +239 -0
- package/src/components/primitives/Image/Image.types.ts +75 -0
- package/src/components/primitives/Image/README.md +863 -0
- package/src/components/primitives/Image/index.ts +8 -0
- package/src/components/primitives/Kbd/Kbd.test.tsx +432 -0
- package/src/components/primitives/Kbd/Kbd.tsx +53 -0
- package/src/components/primitives/Kbd/Kbd.types.ts +55 -0
- package/src/components/primitives/Kbd/Kbd.variants.ts +33 -0
- package/src/components/primitives/Kbd/README.md +659 -0
- package/src/components/primitives/Kbd/index.ts +3 -0
- package/src/components/primitives/Label/Label.test.tsx +311 -0
- package/src/components/primitives/Label/Label.tsx +46 -0
- package/src/components/primitives/Label/Label.types.ts +28 -0
- package/src/components/primitives/Label/README.md +816 -0
- package/src/components/primitives/Label/index.ts +2 -0
- package/src/components/primitives/Link/Link.test.tsx +764 -0
- package/src/components/primitives/Link/Link.tsx +143 -0
- package/src/components/primitives/Link/Link.types.ts +85 -0
- package/src/components/primitives/Link/README.md +954 -0
- package/src/components/primitives/Link/index.ts +8 -0
- package/src/components/primitives/Paragraph/Paragraph.test.tsx +463 -0
- package/src/components/primitives/Paragraph/Paragraph.tsx +119 -0
- package/src/components/primitives/Paragraph/Paragraph.types.ts +81 -0
- package/src/components/primitives/Paragraph/README.md +812 -0
- package/src/components/primitives/Paragraph/index.ts +2 -0
- package/src/components/primitives/ProgressBar/ProgressBar.test.tsx +598 -0
- package/src/components/primitives/ProgressBar/ProgressBar.tsx +268 -0
- package/src/components/primitives/ProgressBar/ProgressBar.types.ts +127 -0
- package/src/components/primitives/ProgressBar/ProgressBar.variants.ts +111 -0
- package/src/components/primitives/ProgressBar/README.md +772 -0
- package/src/components/primitives/ProgressBar/index.ts +3 -0
- package/src/components/primitives/ProgressCircle/ProgressCircle.test.tsx +219 -0
- package/src/components/primitives/ProgressCircle/ProgressCircle.tsx +264 -0
- package/src/components/primitives/ProgressCircle/ProgressCircle.types.ts +152 -0
- package/src/components/primitives/ProgressCircle/ProgressCircle.variants.ts +140 -0
- package/src/components/primitives/ProgressCircle/README.md +763 -0
- package/src/components/primitives/ProgressCircle/index.ts +3 -0
- package/src/components/primitives/SkeletonLoader/README.md +792 -0
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.test.tsx +382 -0
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.tsx +45 -0
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.types.ts +56 -0
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.variants.ts +87 -0
- package/src/components/primitives/SkeletonLoader/index.ts +3 -0
- package/src/components/primitives/Spacer/README.md +804 -0
- package/src/components/primitives/Spacer/Spacer.test.tsx +363 -0
- package/src/components/primitives/Spacer/Spacer.tsx +147 -0
- package/src/components/primitives/Spacer/Spacer.types.ts +72 -0
- package/src/components/primitives/Spacer/index.ts +9 -0
- package/src/components/primitives/Spinner/README.md +767 -0
- package/src/components/primitives/Spinner/Spinner.test.tsx +289 -0
- package/src/components/primitives/Spinner/Spinner.tsx +101 -0
- package/src/components/primitives/Spinner/Spinner.types.ts +62 -0
- package/src/components/primitives/Spinner/Spinner.variants.ts +50 -0
- package/src/components/primitives/Spinner/index.ts +3 -0
- package/src/components/primitives/SplitButton/README.md +1142 -0
- package/src/components/primitives/SplitButton/SplitButton.test.tsx +1020 -0
- package/src/components/primitives/SplitButton/SplitButton.tsx +215 -0
- package/src/components/primitives/SplitButton/SplitButton.types.ts +114 -0
- package/src/components/primitives/SplitButton/index.ts +8 -0
- package/src/components/primitives/StatusIndicator/README.md +730 -0
- package/src/components/primitives/StatusIndicator/StatusIndicator.test.tsx +446 -0
- package/src/components/primitives/StatusIndicator/StatusIndicator.tsx +100 -0
- package/src/components/primitives/StatusIndicator/StatusIndicator.types.ts +39 -0
- package/src/components/primitives/StatusIndicator/index.ts +2 -0
- package/src/components/primitives/Tag/README.md +793 -0
- package/src/components/primitives/Tag/Tag.test.tsx +410 -0
- package/src/components/primitives/Tag/Tag.tsx +302 -0
- package/src/components/primitives/Tag/Tag.types.ts +112 -0
- package/src/components/primitives/Tag/Tag.variants.ts +144 -0
- package/src/components/primitives/Tag/TagGroup.tsx +89 -0
- package/src/components/primitives/Tag/index.ts +15 -0
- package/src/components/primitives/Text/README.md +849 -0
- package/src/components/primitives/Text/Text.test.tsx +371 -0
- package/src/components/primitives/Text/Text.tsx +89 -0
- package/src/components/primitives/Text/Text.types.ts +21 -0
- package/src/components/primitives/Text/index.ts +2 -0
- package/src/components/primitives/Thumbnail/README.md +800 -0
- package/src/components/primitives/Thumbnail/Thumbnail.test.tsx +657 -0
- package/src/components/primitives/Thumbnail/Thumbnail.tsx +141 -0
- package/src/components/primitives/Thumbnail/Thumbnail.types.ts +102 -0
- package/src/components/primitives/Thumbnail/index.ts +9 -0
- package/src/components/primitives/Toggle/README.md +232 -0
- package/src/components/primitives/Toggle/Toggle.test.tsx +630 -0
- package/src/components/primitives/Toggle/Toggle.tsx +174 -0
- package/src/components/primitives/Toggle/Toggle.types.ts +161 -0
- package/src/components/primitives/Toggle/index.ts +2 -0
- package/src/components/primitives/index.ts +26 -0
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.test.tsx +607 -0
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.tsx +522 -0
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.types.ts +233 -0
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.variants.ts +207 -0
- package/src/components/workflow/ApprovalFlow/README.md +450 -0
- package/src/components/workflow/ApprovalFlow/index.ts +38 -0
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.test.tsx +316 -0
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.tsx +342 -0
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.types.ts +68 -0
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.variants.ts +60 -0
- package/src/components/workflow/ApprovalStatus/README.md +359 -0
- package/src/components/workflow/ApprovalStatus/index.ts +7 -0
- package/src/components/workflow/CLAUDE.md +118 -0
- package/src/components/workflow/CommentSystem/CommentSystem.test.tsx +901 -0
- package/src/components/workflow/CommentSystem/CommentSystem.tsx +1014 -0
- package/src/components/workflow/CommentSystem/CommentSystem.types.ts +290 -0
- package/src/components/workflow/CommentSystem/CommentSystem.variants.ts +307 -0
- package/src/components/workflow/CommentSystem/README.md +478 -0
- package/src/components/workflow/CommentSystem/index.ts +37 -0
- package/src/components/workflow/Dashboard/Dashboard.test.tsx +586 -0
- package/src/components/workflow/Dashboard/Dashboard.tsx +447 -0
- package/src/components/workflow/Dashboard/Dashboard.types.ts +232 -0
- package/src/components/workflow/Dashboard/Dashboard.variants.ts +241 -0
- package/src/components/workflow/Dashboard/README.md +445 -0
- package/src/components/workflow/Dashboard/index.ts +39 -0
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.test.tsx +460 -0
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.tsx +944 -0
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.types.ts +389 -0
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.variants.ts +264 -0
- package/src/components/workflow/DashboardBuilder/README.md +489 -0
- package/src/components/workflow/DashboardBuilder/index.ts +61 -0
- package/src/components/workflow/KanbanBoard/KanbanBoard.test.tsx +445 -0
- package/src/components/workflow/KanbanBoard/KanbanBoard.tsx +806 -0
- package/src/components/workflow/KanbanBoard/KanbanBoard.types.ts +183 -0
- package/src/components/workflow/KanbanBoard/KanbanBoard.variants.ts +311 -0
- package/src/components/workflow/KanbanBoard/README.md +495 -0
- package/src/components/workflow/KanbanBoard/index.ts +40 -0
- package/src/components/workflow/ProgressSteps/ProgressSteps.test.tsx +318 -0
- package/src/components/workflow/ProgressSteps/ProgressSteps.tsx +350 -0
- package/src/components/workflow/ProgressSteps/ProgressSteps.types.ts +84 -0
- package/src/components/workflow/ProgressSteps/ProgressSteps.variants.ts +315 -0
- package/src/components/workflow/ProgressSteps/README.md +412 -0
- package/src/components/workflow/ProgressSteps/index.ts +20 -0
- package/src/components/workflow/ReportGenerator/README.md +530 -0
- package/src/components/workflow/ReportGenerator/ReportGenerator.test.tsx +723 -0
- package/src/components/workflow/ReportGenerator/ReportGenerator.tsx +889 -0
- package/src/components/workflow/ReportGenerator/ReportGenerator.types.ts +321 -0
- package/src/components/workflow/ReportGenerator/ReportGenerator.variants.ts +378 -0
- package/src/components/workflow/ReportGenerator/index.ts +44 -0
- package/src/components/workflow/Stepper/README.md +390 -0
- package/src/components/workflow/Stepper/Stepper.test.tsx +376 -0
- package/src/components/workflow/Stepper/Stepper.tsx +301 -0
- package/src/components/workflow/Stepper/Stepper.types.ts +73 -0
- package/src/components/workflow/Stepper/Stepper.variants.ts +194 -0
- package/src/components/workflow/Stepper/index.ts +16 -0
- package/src/components/workflow/TaskCard/README.md +343 -0
- package/src/components/workflow/TaskCard/TaskCard.test.tsx +375 -0
- package/src/components/workflow/TaskCard/TaskCard.tsx +312 -0
- package/src/components/workflow/TaskCard/TaskCard.types.ts +55 -0
- package/src/components/workflow/TaskCard/TaskCard.variants.ts +64 -0
- package/src/components/workflow/TaskCard/index.ts +14 -0
- package/src/components/workflow/TaskList/README.md +317 -0
- package/src/components/workflow/TaskList/TaskList.test.tsx +318 -0
- package/src/components/workflow/TaskList/TaskList.tsx +556 -0
- package/src/components/workflow/TaskList/TaskList.types.ts +78 -0
- package/src/components/workflow/TaskList/TaskList.variants.ts +143 -0
- package/src/components/workflow/TaskList/index.ts +19 -0
- package/src/components/workflow/TaskStatus/README.md +358 -0
- package/src/components/workflow/TaskStatus/TaskStatus.test.tsx +299 -0
- package/src/components/workflow/TaskStatus/TaskStatus.tsx +246 -0
- package/src/components/workflow/TaskStatus/TaskStatus.types.ts +65 -0
- package/src/components/workflow/TaskStatus/TaskStatus.variants.ts +145 -0
- package/src/components/workflow/TaskStatus/index.ts +24 -0
- package/src/components/workflow/Wizard/README.md +440 -0
- package/src/components/workflow/Wizard/Wizard.test.tsx +432 -0
- package/src/components/workflow/Wizard/Wizard.tsx +279 -0
- package/src/components/workflow/Wizard/Wizard.types.ts +61 -0
- package/src/components/workflow/Wizard/Wizard.variants.ts +105 -0
- package/src/components/workflow/Wizard/index.ts +9 -0
- package/src/components/workflow/index.ts +14 -0
- package/src/hooks/index.ts +4 -0
- package/src/hooks/use-media-query.ts +24 -0
- package/src/hooks/use-mobile.ts +30 -0
- package/src/hooks/use-on-window-resize.ts +27 -0
- package/src/index.ts +22 -0
- package/src/lib/chart-colors.ts +195 -0
- package/src/lib/utils.ts +6 -0
- package/src/test/setup.ts +125 -0
- package/src/test/vitest.d.ts +13 -0
|
@@ -0,0 +1,1259 @@
|
|
|
1
|
+
# Command
|
|
2
|
+
|
|
3
|
+
## Visão Geral
|
|
4
|
+
|
|
5
|
+
O **Command** é um componente avançado de menu de comandos e combobox acessível do Design System ETUS. Baseado na biblioteca [cmdk](https://cmdk.paco.me), fornece uma interface de busca rápida estilo ⌘K para navegação, execução de ações e seleção de itens. Como organismo, combina múltiplos elementos (input, lista, grupos, itens) em uma experiência de busca e navegação coesa.
|
|
6
|
+
|
|
7
|
+
### Casos de Uso
|
|
8
|
+
|
|
9
|
+
- Command palettes (menus ⌘K/Ctrl+K)
|
|
10
|
+
- Busca global em aplicações
|
|
11
|
+
- Navegação rápida entre páginas/recursos
|
|
12
|
+
- Seleção de ações com filtro automático
|
|
13
|
+
- Comboboxes acessíveis com autocomplete
|
|
14
|
+
- Lançadores de aplicações/shortcuts
|
|
15
|
+
|
|
16
|
+
### Classificação
|
|
17
|
+
|
|
18
|
+
**Categoria:** Organism (Advanced)
|
|
19
|
+
**Dependências:** `cmdk`, `@/components/feedback/Dialog`, `lucide-react`
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Design Specs
|
|
24
|
+
|
|
25
|
+
### Compound Components
|
|
26
|
+
|
|
27
|
+
O Command é um sistema de compound components com as seguintes partes:
|
|
28
|
+
|
|
29
|
+
| Componente | Descrição | data-slot |
|
|
30
|
+
|------------|-----------|-----------|
|
|
31
|
+
| `Command` | Container raiz do menu | `command` |
|
|
32
|
+
| `CommandDialog` | Wrapper com Dialog modal | - |
|
|
33
|
+
| `CommandInput` | Campo de busca com ícone | `command-input` |
|
|
34
|
+
| `CommandList` | Container scrollável de itens | `command-list` |
|
|
35
|
+
| `CommandEmpty` | Estado vazio quando sem resultados | `command-empty` |
|
|
36
|
+
| `CommandGroup` | Agrupa itens com heading | `command-group` |
|
|
37
|
+
| `CommandItem` | Item selecionável | `command-item` |
|
|
38
|
+
| `CommandSeparator` | Linha divisória entre grupos | `command-separator` |
|
|
39
|
+
| `CommandShortcut` | Exibe atalho de teclado | `command-shortcut` |
|
|
40
|
+
|
|
41
|
+
### Estados
|
|
42
|
+
|
|
43
|
+
| Estado | Classes/Atributos | Comportamento |
|
|
44
|
+
|--------|-------------------|---------------|
|
|
45
|
+
| Default | - | Aparência base |
|
|
46
|
+
| Selected | `data-selected="true"` | Background `bg-accent` no item |
|
|
47
|
+
| Disabled | `data-disabled="true"` | 50% opacidade, sem pointer events |
|
|
48
|
+
| Empty | - | Exibe `CommandEmpty` |
|
|
49
|
+
| Loading | - | Exibe indicador de loading |
|
|
50
|
+
|
|
51
|
+
### Tokens Utilizados
|
|
52
|
+
|
|
53
|
+
```css
|
|
54
|
+
/* Cores */
|
|
55
|
+
--popover /* Fundo do Command */
|
|
56
|
+
--popover-foreground /* Texto principal */
|
|
57
|
+
--accent /* Background item selecionado */
|
|
58
|
+
--accent-foreground /* Texto item selecionado */
|
|
59
|
+
--muted-foreground /* Texto secundário, ícones, placeholders */
|
|
60
|
+
--border /* Borda inferior do input */
|
|
61
|
+
|
|
62
|
+
/* Espaçamento */
|
|
63
|
+
px-2, px-3 /* Padding horizontal items/input */
|
|
64
|
+
py-1.5, py-3, py-6 /* Padding vertical items/empty */
|
|
65
|
+
gap-2 /* Entre ícone e texto */
|
|
66
|
+
|
|
67
|
+
/* Tipografia */
|
|
68
|
+
text-sm /* 14px - items e input */
|
|
69
|
+
text-xs /* 12px - group headings, shortcuts */
|
|
70
|
+
font-medium /* 500 - group headings */
|
|
71
|
+
|
|
72
|
+
/* Bordas */
|
|
73
|
+
rounded-md /* var(--radius) */
|
|
74
|
+
rounded-sm /* Items */
|
|
75
|
+
|
|
76
|
+
/* Dimensões */
|
|
77
|
+
h-9, h-12 /* Altura do input wrapper */
|
|
78
|
+
max-h-[300px] /* Altura máxima da lista */
|
|
79
|
+
size-4, size-5 /* Tamanho dos ícones */
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### data-slot
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<div data-slot="command">
|
|
86
|
+
<div data-slot="command-input-wrapper">
|
|
87
|
+
<input data-slot="command-input" />
|
|
88
|
+
</div>
|
|
89
|
+
<div data-slot="command-list">
|
|
90
|
+
<div data-slot="command-group">
|
|
91
|
+
<div data-slot="command-item">
|
|
92
|
+
<span data-slot="command-shortcut">⌘K</span>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
<div data-slot="command-separator" />
|
|
96
|
+
<div data-slot="command-empty">No results.</div>
|
|
97
|
+
</div>
|
|
98
|
+
</div>
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
## API
|
|
104
|
+
|
|
105
|
+
### Command (Root)
|
|
106
|
+
|
|
107
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
108
|
+
|------|------|--------|-----------|
|
|
109
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
110
|
+
| `shouldFilter` | `boolean` | `true` | Habilita filtro automático |
|
|
111
|
+
| `filter` | `(value: string, search: string) => number` | - | Função de filtro customizada |
|
|
112
|
+
| `value` | `string` | - | Item selecionado (controlado) |
|
|
113
|
+
| `onValueChange` | `(value: string) => void` | - | Callback de seleção |
|
|
114
|
+
| `loop` | `boolean` | `false` | Navegação circular no teclado |
|
|
115
|
+
| `children` | `ReactNode` | - | Conteúdo do command |
|
|
116
|
+
|
|
117
|
+
> Herda todas as props de `React.ComponentProps<typeof CommandPrimitive>`
|
|
118
|
+
|
|
119
|
+
### CommandDialog
|
|
120
|
+
|
|
121
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
122
|
+
|------|------|--------|-----------|
|
|
123
|
+
| `open` | `boolean` | - | Estado de abertura (controlado) |
|
|
124
|
+
| `onOpenChange` | `(open: boolean) => void` | - | Callback de abertura/fechamento |
|
|
125
|
+
| `title` | `string` | `"Command Palette"` | Título acessível do dialog |
|
|
126
|
+
| `description` | `string` | `"Search for a command..."` | Descrição acessível |
|
|
127
|
+
| `showCloseButton` | `boolean` | `true` | Exibe botão de fechar |
|
|
128
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
129
|
+
| `children` | `ReactNode` | - | Conteúdo do dialog |
|
|
130
|
+
|
|
131
|
+
> Herda todas as props de `Dialog`
|
|
132
|
+
|
|
133
|
+
### CommandInput
|
|
134
|
+
|
|
135
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
136
|
+
|------|------|--------|-----------|
|
|
137
|
+
| `placeholder` | `string` | - | Placeholder do input |
|
|
138
|
+
| `value` | `string` | - | Valor do input (controlado) |
|
|
139
|
+
| `onValueChange` | `(value: string) => void` | - | Callback de digitação |
|
|
140
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
141
|
+
|
|
142
|
+
> Herda todas as props de `React.ComponentProps<typeof CommandPrimitive.Input>`
|
|
143
|
+
|
|
144
|
+
### CommandList
|
|
145
|
+
|
|
146
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
147
|
+
|------|------|--------|-----------|
|
|
148
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
149
|
+
| `children` | `ReactNode` | - | Grupos e items |
|
|
150
|
+
|
|
151
|
+
> Expõe CSS variable `--cmdk-list-height` para animação
|
|
152
|
+
|
|
153
|
+
### CommandEmpty
|
|
154
|
+
|
|
155
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
156
|
+
|------|------|--------|-----------|
|
|
157
|
+
| `children` | `ReactNode` | - | Mensagem de estado vazio |
|
|
158
|
+
|
|
159
|
+
### CommandGroup
|
|
160
|
+
|
|
161
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
162
|
+
|------|------|--------|-----------|
|
|
163
|
+
| `heading` | `string` | - | Título do grupo |
|
|
164
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
165
|
+
| `children` | `ReactNode` | - | Items do grupo |
|
|
166
|
+
|
|
167
|
+
### CommandItem
|
|
168
|
+
|
|
169
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
170
|
+
|------|------|--------|-----------|
|
|
171
|
+
| `value` | `string` | - | Valor para filtro/seleção |
|
|
172
|
+
| `keywords` | `string[]` | - | Palavras-chave adicionais para busca |
|
|
173
|
+
| `disabled` | `boolean` | `false` | Desabilita o item |
|
|
174
|
+
| `onSelect` | `(value: string) => void` | - | Callback de seleção |
|
|
175
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
176
|
+
| `children` | `ReactNode` | - | Conteúdo do item |
|
|
177
|
+
|
|
178
|
+
### CommandShortcut
|
|
179
|
+
|
|
180
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
181
|
+
|------|------|--------|-----------|
|
|
182
|
+
| `children` | `ReactNode` | - | Texto do atalho (ex: `⌘K`) |
|
|
183
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
184
|
+
|
|
185
|
+
### CommandSeparator
|
|
186
|
+
|
|
187
|
+
| Prop | Tipo | Padrão | Descrição |
|
|
188
|
+
|------|------|--------|-----------|
|
|
189
|
+
| `className` | `string` | - | Classes CSS adicionais |
|
|
190
|
+
|
|
191
|
+
### TypeScript
|
|
192
|
+
|
|
193
|
+
```typescript
|
|
194
|
+
import type { ComponentProps } from "react"
|
|
195
|
+
import type { Command as CommandPrimitive } from "cmdk"
|
|
196
|
+
import type { Dialog } from "@/components/feedback/Dialog"
|
|
197
|
+
|
|
198
|
+
// Props dos componentes
|
|
199
|
+
type CommandProps = ComponentProps<typeof CommandPrimitive>
|
|
200
|
+
|
|
201
|
+
type CommandDialogProps = ComponentProps<typeof Dialog> & {
|
|
202
|
+
title?: string
|
|
203
|
+
description?: string
|
|
204
|
+
className?: string
|
|
205
|
+
showCloseButton?: boolean
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
type CommandInputProps = ComponentProps<typeof CommandPrimitive.Input>
|
|
209
|
+
type CommandListProps = ComponentProps<typeof CommandPrimitive.List>
|
|
210
|
+
type CommandEmptyProps = ComponentProps<typeof CommandPrimitive.Empty>
|
|
211
|
+
type CommandGroupProps = ComponentProps<typeof CommandPrimitive.Group>
|
|
212
|
+
type CommandItemProps = ComponentProps<typeof CommandPrimitive.Item>
|
|
213
|
+
type CommandSeparatorProps = ComponentProps<typeof CommandPrimitive.Separator>
|
|
214
|
+
type CommandShortcutProps = ComponentProps<"span">
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Comparativo com Design Systems de Referência
|
|
218
|
+
|
|
219
|
+
#### Matriz de Features (12 Design Systems)
|
|
220
|
+
|
|
221
|
+
| Feature | ETUS | Shadcn | Mantine | MUI | Chakra | AntD | NextUI | Headless | Ariakit | Fluent | Carbon | Blueprint |
|
|
222
|
+
|---------|:----:|:------:|:-------:|:---:|:------:|:----:|:------:|:--------:|:-------:|:------:|:------:|:---------:|
|
|
223
|
+
| **Command Palette** | ✓ | ✓ | ✓ | - | - | - | - | ✓ | ✓ | ✓ | - | ✓ |
|
|
224
|
+
| **Combobox Mode** | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
225
|
+
| **Auto Filter** | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ |
|
|
226
|
+
| **Groups** | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ |
|
|
227
|
+
| **Keyboard Nav** | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
228
|
+
| **Dialog Mode** | ✓ | ✓ | ✓ | - | - | - | - | ✓ | ✓ | ✓ | - | ✓ |
|
|
229
|
+
| **Shortcuts Display** | ✓ | ✓ | ✓ | - | - | - | - | - | - | ✓ | - | ✓ |
|
|
230
|
+
| **Loading State** | ~ | ~ | ✓ | ✓ | - | ✓ | ✓ | - | - | ✓ | ✓ | ✓ |
|
|
231
|
+
| **Async Items** | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ |
|
|
232
|
+
| **Custom Filter** | ✓ | ✓ | ✓ | ✓ | - | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ |
|
|
233
|
+
| **Virtualization** | - | - | ✓ | ✓ | - | ✓ | ✓ | - | - | ✓ | ✓ | - |
|
|
234
|
+
| **data-slot** | ✓ | ✓ | - | - | - | - | - | - | - | - | - | - |
|
|
235
|
+
|
|
236
|
+
**Legenda:** ✓ = Suporte completo | ~ = Parcial/Manual | - = Não suportado
|
|
237
|
+
|
|
238
|
+
#### Componentes Equivalentes por Design System
|
|
239
|
+
|
|
240
|
+
| Design System | Componente | Notas |
|
|
241
|
+
|---------------|------------|-------|
|
|
242
|
+
| **ETUS** | `Command`, `CommandDialog` | Baseado em cmdk |
|
|
243
|
+
| **Shadcn/ui** | `Command` | Baseado em cmdk |
|
|
244
|
+
| **Mantine** | `Spotlight` | Modal de busca global |
|
|
245
|
+
| **MUI** | `Autocomplete` | Combobox, sem command palette |
|
|
246
|
+
| **Chakra UI** | `Menu` + custom | Requer composição manual |
|
|
247
|
+
| **Ant Design** | `AutoComplete` | Combobox, sem command palette |
|
|
248
|
+
| **NextUI** | `Autocomplete` | Combobox, sem command palette |
|
|
249
|
+
| **Headless UI** | `Combobox` | Primitivo headless |
|
|
250
|
+
| **Ariakit** | `Combobox` | Primitivo composable |
|
|
251
|
+
| **Fluent UI** | `SearchBox` + `Menu` | Requer composição |
|
|
252
|
+
| **Carbon** | `ComboBox` | Combobox, sem command palette |
|
|
253
|
+
| **Blueprint** | `Omnibar` | Command palette completo |
|
|
254
|
+
|
|
255
|
+
#### Comparativo de Props por Design System
|
|
256
|
+
|
|
257
|
+
| Prop | ETUS | Shadcn | Mantine Spotlight | MUI Autocomplete | Ariakit |
|
|
258
|
+
|------|:----:|:------:|:-----------------:|:----------------:|:-------:|
|
|
259
|
+
| `shouldFilter` | ✓ | ✓ | `filter` | `filterOptions` | - |
|
|
260
|
+
| `value` | ✓ | ✓ | `query` | `value` | `value` |
|
|
261
|
+
| `onValueChange` | ✓ | ✓ | `onQueryChange` | `onChange` | `setValue` |
|
|
262
|
+
| `loop` | ✓ | ✓ | - | - | `focusLoop` |
|
|
263
|
+
| `onSelect` (item) | ✓ | ✓ | `onActionClick` | `onChange` | `onItemClick` |
|
|
264
|
+
| `keywords` | ✓ | ✓ | `keywords` | - | - |
|
|
265
|
+
| `disabled` | ✓ | ✓ | `disabled` | `disabled` | `disabled` |
|
|
266
|
+
|
|
267
|
+
---
|
|
268
|
+
|
|
269
|
+
## Acessibilidade (A11y)
|
|
270
|
+
|
|
271
|
+
### ARIA Attributes
|
|
272
|
+
|
|
273
|
+
| Atributo | Elemento | Uso |
|
|
274
|
+
|----------|----------|-----|
|
|
275
|
+
| `role="combobox"` | Input | Identifica como combobox |
|
|
276
|
+
| `role="listbox"` | List | Identifica lista de opções |
|
|
277
|
+
| `role="option"` | Item | Identifica item selecionável |
|
|
278
|
+
| `role="group"` | Group | Agrupa opções relacionadas |
|
|
279
|
+
| `aria-expanded` | Input | Estado de expansão da lista |
|
|
280
|
+
| `aria-activedescendant` | Input | Item atualmente focado |
|
|
281
|
+
| `aria-selected` | Item | Item selecionado |
|
|
282
|
+
| `aria-disabled` | Item | Item desabilitado |
|
|
283
|
+
| `aria-label` | Dialog | Título acessível do modal |
|
|
284
|
+
| `aria-describedby` | Dialog | Descrição do modal |
|
|
285
|
+
|
|
286
|
+
### Suporte a Teclado
|
|
287
|
+
|
|
288
|
+
| Tecla | Ação |
|
|
289
|
+
|-------|------|
|
|
290
|
+
| `↓` / `↑` | Navega entre items |
|
|
291
|
+
| `Enter` | Seleciona item focado |
|
|
292
|
+
| `Escape` | Fecha dialog / limpa busca |
|
|
293
|
+
| `Home` | Vai para primeiro item |
|
|
294
|
+
| `End` | Vai para último item |
|
|
295
|
+
| `Tab` | Move foco (comportamento padrão) |
|
|
296
|
+
|
|
297
|
+
### Focus Management
|
|
298
|
+
|
|
299
|
+
```tsx
|
|
300
|
+
// Focus automático no input ao abrir
|
|
301
|
+
<CommandDialog>
|
|
302
|
+
<CommandInput /> // Auto-focus
|
|
303
|
+
|
|
304
|
+
// Focus visible nos items
|
|
305
|
+
[&_[cmdk-item]]:focus-visible:ring-2
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Contraste de Cores
|
|
309
|
+
|
|
310
|
+
Todos os pares de cores seguem WCAG 2.1 AA (mínimo 4.5:1):
|
|
311
|
+
|
|
312
|
+
| Elemento | Foreground | Background | Ratio |
|
|
313
|
+
|----------|------------|------------|-------|
|
|
314
|
+
| Input text | `--popover-foreground` | `--popover` | ≥ 4.5:1 |
|
|
315
|
+
| Item default | `--foreground` | `--popover` | ≥ 4.5:1 |
|
|
316
|
+
| Item selected | `--accent-foreground` | `--accent` | ≥ 4.5:1 |
|
|
317
|
+
| Placeholder | `--muted-foreground` | `--popover` | ≥ 4.5:1 |
|
|
318
|
+
|
|
319
|
+
### Screen Readers
|
|
320
|
+
|
|
321
|
+
- `CommandDialog` usa Dialog acessível com título/descrição sr-only
|
|
322
|
+
- Items anunciam label e estado (selecionado, desabilitado)
|
|
323
|
+
- Grupos anunciam heading antes dos items
|
|
324
|
+
- Estado vazio é anunciado automaticamente
|
|
325
|
+
|
|
326
|
+
### Reduced Motion
|
|
327
|
+
|
|
328
|
+
```tsx
|
|
329
|
+
// Respeitar preferência do usuário
|
|
330
|
+
motion-reduce:transition-none
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
### Comparativo A11y (12 Design Systems)
|
|
334
|
+
|
|
335
|
+
| Feature | ETUS | React Aria | Radix | Ariakit | Headless | Mantine | MUI | Fluent | Carbon |
|
|
336
|
+
|---------|:----:|:----------:|:-----:|:-------:|:--------:|:-------:|:---:|:------:|:------:|
|
|
337
|
+
| **ARIA combobox** | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
338
|
+
| **Keyboard nav** | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
339
|
+
| **Focus management** | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
340
|
+
| **aria-activedescendant** | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
341
|
+
| **Group labels** | ✓ | ✓ | - | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
|
|
342
|
+
| **Screen reader tested** | ~ | ✓ | - | ✓ | ✓ | ~ | ✓ | ✓ | ✓ |
|
|
343
|
+
| **Reduced motion** | ~ | ✓ | - | - | - | ✓ | ✓ | ✓ | ✓ |
|
|
344
|
+
| **High contrast** | - | ✓ | - | - | - | - | - | ✓ | ✓ |
|
|
345
|
+
|
|
346
|
+
**Legenda:** ✓ = Suporte completo | ~ = Parcial/Manual | - = Não suportado
|
|
347
|
+
|
|
348
|
+
---
|
|
349
|
+
|
|
350
|
+
## Exemplos
|
|
351
|
+
|
|
352
|
+
### Uso Básico
|
|
353
|
+
|
|
354
|
+
```tsx
|
|
355
|
+
import {
|
|
356
|
+
Command,
|
|
357
|
+
CommandEmpty,
|
|
358
|
+
CommandGroup,
|
|
359
|
+
CommandInput,
|
|
360
|
+
CommandItem,
|
|
361
|
+
CommandList,
|
|
362
|
+
} from "@etus/ui"
|
|
363
|
+
|
|
364
|
+
function Example() {
|
|
365
|
+
return (
|
|
366
|
+
<Command className="rounded-lg border shadow-md">
|
|
367
|
+
<CommandInput placeholder="Buscar..." />
|
|
368
|
+
<CommandList>
|
|
369
|
+
<CommandEmpty>Nenhum resultado encontrado.</CommandEmpty>
|
|
370
|
+
<CommandGroup heading="Sugestões">
|
|
371
|
+
<CommandItem>Calendário</CommandItem>
|
|
372
|
+
<CommandItem>Configurações</CommandItem>
|
|
373
|
+
<CommandItem>Perfil</CommandItem>
|
|
374
|
+
</CommandGroup>
|
|
375
|
+
</CommandList>
|
|
376
|
+
</Command>
|
|
377
|
+
)
|
|
378
|
+
}
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
### Command Dialog (⌘K Menu)
|
|
382
|
+
|
|
383
|
+
```tsx
|
|
384
|
+
import { useEffect, useState } from "react"
|
|
385
|
+
import {
|
|
386
|
+
CommandDialog,
|
|
387
|
+
CommandEmpty,
|
|
388
|
+
CommandGroup,
|
|
389
|
+
CommandInput,
|
|
390
|
+
CommandItem,
|
|
391
|
+
CommandList,
|
|
392
|
+
CommandShortcut,
|
|
393
|
+
} from "@etus/ui"
|
|
394
|
+
import { Calculator, Calendar, CreditCard, Settings, User } from "lucide-react"
|
|
395
|
+
|
|
396
|
+
function CommandMenu() {
|
|
397
|
+
const [open, setOpen] = useState(false)
|
|
398
|
+
|
|
399
|
+
useEffect(() => {
|
|
400
|
+
const down = (e: KeyboardEvent) => {
|
|
401
|
+
if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
|
|
402
|
+
e.preventDefault()
|
|
403
|
+
setOpen((open) => !open)
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
document.addEventListener("keydown", down)
|
|
408
|
+
return () => document.removeEventListener("keydown", down)
|
|
409
|
+
}, [])
|
|
410
|
+
|
|
411
|
+
return (
|
|
412
|
+
<CommandDialog open={open} onOpenChange={setOpen}>
|
|
413
|
+
<CommandInput placeholder="Digite um comando ou busque..." />
|
|
414
|
+
<CommandList>
|
|
415
|
+
<CommandEmpty>Nenhum resultado encontrado.</CommandEmpty>
|
|
416
|
+
<CommandGroup heading="Sugestões">
|
|
417
|
+
<CommandItem onSelect={() => setOpen(false)}>
|
|
418
|
+
<Calendar className="mr-2 h-4 w-4" />
|
|
419
|
+
<span>Calendário</span>
|
|
420
|
+
</CommandItem>
|
|
421
|
+
<CommandItem onSelect={() => setOpen(false)}>
|
|
422
|
+
<User className="mr-2 h-4 w-4" />
|
|
423
|
+
<span>Perfil</span>
|
|
424
|
+
<CommandShortcut>⌘P</CommandShortcut>
|
|
425
|
+
</CommandItem>
|
|
426
|
+
<CommandItem onSelect={() => setOpen(false)}>
|
|
427
|
+
<Settings className="mr-2 h-4 w-4" />
|
|
428
|
+
<span>Configurações</span>
|
|
429
|
+
<CommandShortcut>⌘S</CommandShortcut>
|
|
430
|
+
</CommandItem>
|
|
431
|
+
</CommandGroup>
|
|
432
|
+
<CommandGroup heading="Ferramentas">
|
|
433
|
+
<CommandItem>
|
|
434
|
+
<Calculator className="mr-2 h-4 w-4" />
|
|
435
|
+
<span>Calculadora</span>
|
|
436
|
+
</CommandItem>
|
|
437
|
+
<CommandItem>
|
|
438
|
+
<CreditCard className="mr-2 h-4 w-4" />
|
|
439
|
+
<span>Pagamentos</span>
|
|
440
|
+
</CommandItem>
|
|
441
|
+
</CommandGroup>
|
|
442
|
+
</CommandList>
|
|
443
|
+
</CommandDialog>
|
|
444
|
+
)
|
|
445
|
+
}
|
|
446
|
+
```
|
|
447
|
+
|
|
448
|
+
### Com Ícones e Shortcuts
|
|
449
|
+
|
|
450
|
+
```tsx
|
|
451
|
+
import { File, FileText, Image, Music, Video } from "lucide-react"
|
|
452
|
+
|
|
453
|
+
<Command>
|
|
454
|
+
<CommandInput placeholder="Buscar arquivos..." />
|
|
455
|
+
<CommandList>
|
|
456
|
+
<CommandGroup heading="Arquivos Recentes">
|
|
457
|
+
<CommandItem>
|
|
458
|
+
<FileText className="mr-2 h-4 w-4" />
|
|
459
|
+
<span>Documento.pdf</span>
|
|
460
|
+
<CommandShortcut>⌘1</CommandShortcut>
|
|
461
|
+
</CommandItem>
|
|
462
|
+
<CommandItem>
|
|
463
|
+
<Image className="mr-2 h-4 w-4" />
|
|
464
|
+
<span>Foto.jpg</span>
|
|
465
|
+
<CommandShortcut>⌘2</CommandShortcut>
|
|
466
|
+
</CommandItem>
|
|
467
|
+
<CommandItem>
|
|
468
|
+
<Video className="mr-2 h-4 w-4" />
|
|
469
|
+
<span>Video.mp4</span>
|
|
470
|
+
<CommandShortcut>⌘3</CommandShortcut>
|
|
471
|
+
</CommandItem>
|
|
472
|
+
<CommandItem>
|
|
473
|
+
<Music className="mr-2 h-4 w-4" />
|
|
474
|
+
<span>Audio.mp3</span>
|
|
475
|
+
<CommandShortcut>⌘4</CommandShortcut>
|
|
476
|
+
</CommandItem>
|
|
477
|
+
</CommandGroup>
|
|
478
|
+
</CommandList>
|
|
479
|
+
</Command>
|
|
480
|
+
```
|
|
481
|
+
|
|
482
|
+
### Com Grupos e Separadores
|
|
483
|
+
|
|
484
|
+
```tsx
|
|
485
|
+
import { CommandSeparator } from "@etus/ui"
|
|
486
|
+
import { Home, LogOut, Settings, User } from "lucide-react"
|
|
487
|
+
|
|
488
|
+
<Command>
|
|
489
|
+
<CommandInput placeholder="Buscar..." />
|
|
490
|
+
<CommandList>
|
|
491
|
+
<CommandGroup heading="Navegação">
|
|
492
|
+
<CommandItem>
|
|
493
|
+
<Home className="mr-2 h-4 w-4" />
|
|
494
|
+
<span>Início</span>
|
|
495
|
+
</CommandItem>
|
|
496
|
+
<CommandItem>
|
|
497
|
+
<User className="mr-2 h-4 w-4" />
|
|
498
|
+
<span>Perfil</span>
|
|
499
|
+
</CommandItem>
|
|
500
|
+
</CommandGroup>
|
|
501
|
+
<CommandSeparator />
|
|
502
|
+
<CommandGroup heading="Configurações">
|
|
503
|
+
<CommandItem>
|
|
504
|
+
<Settings className="mr-2 h-4 w-4" />
|
|
505
|
+
<span>Preferências</span>
|
|
506
|
+
</CommandItem>
|
|
507
|
+
</CommandGroup>
|
|
508
|
+
<CommandSeparator />
|
|
509
|
+
<CommandItem>
|
|
510
|
+
<LogOut className="mr-2 h-4 w-4" />
|
|
511
|
+
<span>Sair</span>
|
|
512
|
+
</CommandItem>
|
|
513
|
+
</CommandList>
|
|
514
|
+
</Command>
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
### Items Desabilitados
|
|
518
|
+
|
|
519
|
+
```tsx
|
|
520
|
+
<Command>
|
|
521
|
+
<CommandInput placeholder="Buscar ações..." />
|
|
522
|
+
<CommandList>
|
|
523
|
+
<CommandGroup heading="Ações">
|
|
524
|
+
<CommandItem>
|
|
525
|
+
<span>Salvar</span>
|
|
526
|
+
<CommandShortcut>⌘S</CommandShortcut>
|
|
527
|
+
</CommandItem>
|
|
528
|
+
<CommandItem disabled>
|
|
529
|
+
<span>Excluir</span>
|
|
530
|
+
<CommandShortcut>⌘D</CommandShortcut>
|
|
531
|
+
</CommandItem>
|
|
532
|
+
<CommandItem>
|
|
533
|
+
<span>Exportar</span>
|
|
534
|
+
<CommandShortcut>⌘E</CommandShortcut>
|
|
535
|
+
</CommandItem>
|
|
536
|
+
</CommandGroup>
|
|
537
|
+
</CommandList>
|
|
538
|
+
</Command>
|
|
539
|
+
```
|
|
540
|
+
|
|
541
|
+
### Com Filtro Customizado
|
|
542
|
+
|
|
543
|
+
```tsx
|
|
544
|
+
<Command
|
|
545
|
+
shouldFilter={false}
|
|
546
|
+
filter={(value, search) => {
|
|
547
|
+
// Filtro customizado: apenas matches exatos
|
|
548
|
+
if (value.toLowerCase() === search.toLowerCase()) return 1
|
|
549
|
+
if (value.toLowerCase().includes(search.toLowerCase())) return 0.5
|
|
550
|
+
return 0
|
|
551
|
+
}}
|
|
552
|
+
>
|
|
553
|
+
<CommandInput placeholder="Busca exata..." />
|
|
554
|
+
<CommandList>
|
|
555
|
+
<CommandGroup>
|
|
556
|
+
<CommandItem value="react">React</CommandItem>
|
|
557
|
+
<CommandItem value="react-dom">React DOM</CommandItem>
|
|
558
|
+
<CommandItem value="react-native">React Native</CommandItem>
|
|
559
|
+
</CommandGroup>
|
|
560
|
+
</CommandList>
|
|
561
|
+
</Command>
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
### Com Keywords para Busca
|
|
565
|
+
|
|
566
|
+
```tsx
|
|
567
|
+
<Command>
|
|
568
|
+
<CommandInput placeholder="Buscar configurações..." />
|
|
569
|
+
<CommandList>
|
|
570
|
+
<CommandGroup heading="Configurações">
|
|
571
|
+
<CommandItem keywords={["dark", "light", "appearance"]}>
|
|
572
|
+
<span>Tema</span>
|
|
573
|
+
</CommandItem>
|
|
574
|
+
<CommandItem keywords={["language", "locale", "i18n"]}>
|
|
575
|
+
<span>Idioma</span>
|
|
576
|
+
</CommandItem>
|
|
577
|
+
<CommandItem keywords={["password", "security", "2fa"]}>
|
|
578
|
+
<span>Segurança</span>
|
|
579
|
+
</CommandItem>
|
|
580
|
+
</CommandGroup>
|
|
581
|
+
</CommandList>
|
|
582
|
+
</Command>
|
|
583
|
+
```
|
|
584
|
+
|
|
585
|
+
### Com Loading Assíncrono
|
|
586
|
+
|
|
587
|
+
```tsx
|
|
588
|
+
import { useEffect, useState } from "react"
|
|
589
|
+
import { Loader2 } from "lucide-react"
|
|
590
|
+
|
|
591
|
+
function AsyncCommand() {
|
|
592
|
+
const [loading, setLoading] = useState(false)
|
|
593
|
+
const [items, setItems] = useState<string[]>([])
|
|
594
|
+
const [search, setSearch] = useState("")
|
|
595
|
+
|
|
596
|
+
useEffect(() => {
|
|
597
|
+
if (!search) {
|
|
598
|
+
setItems([])
|
|
599
|
+
return
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
setLoading(true)
|
|
603
|
+
const timeout = setTimeout(async () => {
|
|
604
|
+
// Simula API call
|
|
605
|
+
const results = await fetchResults(search)
|
|
606
|
+
setItems(results)
|
|
607
|
+
setLoading(false)
|
|
608
|
+
}, 300)
|
|
609
|
+
|
|
610
|
+
return () => clearTimeout(timeout)
|
|
611
|
+
}, [search])
|
|
612
|
+
|
|
613
|
+
return (
|
|
614
|
+
<Command shouldFilter={false}>
|
|
615
|
+
<CommandInput
|
|
616
|
+
placeholder="Buscar usuários..."
|
|
617
|
+
value={search}
|
|
618
|
+
onValueChange={setSearch}
|
|
619
|
+
/>
|
|
620
|
+
<CommandList>
|
|
621
|
+
{loading ? (
|
|
622
|
+
<div className="flex items-center justify-center py-6">
|
|
623
|
+
<Loader2 className="h-6 w-6 animate-spin" />
|
|
624
|
+
</div>
|
|
625
|
+
) : items.length === 0 && search ? (
|
|
626
|
+
<CommandEmpty>Nenhum usuário encontrado.</CommandEmpty>
|
|
627
|
+
) : (
|
|
628
|
+
<CommandGroup heading="Usuários">
|
|
629
|
+
{items.map((item) => (
|
|
630
|
+
<CommandItem key={item} value={item}>
|
|
631
|
+
{item}
|
|
632
|
+
</CommandItem>
|
|
633
|
+
))}
|
|
634
|
+
</CommandGroup>
|
|
635
|
+
)}
|
|
636
|
+
</CommandList>
|
|
637
|
+
</Command>
|
|
638
|
+
)
|
|
639
|
+
}
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
### Navegação com Router
|
|
643
|
+
|
|
644
|
+
```tsx
|
|
645
|
+
import { useNavigate } from "@tanstack/react-router"
|
|
646
|
+
import { File, Home, Settings, User } from "lucide-react"
|
|
647
|
+
|
|
648
|
+
function NavigationCommand() {
|
|
649
|
+
const [open, setOpen] = useState(false)
|
|
650
|
+
const navigate = useNavigate()
|
|
651
|
+
|
|
652
|
+
const handleSelect = (path: string) => {
|
|
653
|
+
navigate({ to: path })
|
|
654
|
+
setOpen(false)
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
return (
|
|
658
|
+
<CommandDialog open={open} onOpenChange={setOpen}>
|
|
659
|
+
<CommandInput placeholder="Ir para..." />
|
|
660
|
+
<CommandList>
|
|
661
|
+
<CommandGroup heading="Páginas">
|
|
662
|
+
<CommandItem onSelect={() => handleSelect("/")}>
|
|
663
|
+
<Home className="mr-2 h-4 w-4" />
|
|
664
|
+
Início
|
|
665
|
+
</CommandItem>
|
|
666
|
+
<CommandItem onSelect={() => handleSelect("/profile")}>
|
|
667
|
+
<User className="mr-2 h-4 w-4" />
|
|
668
|
+
Perfil
|
|
669
|
+
</CommandItem>
|
|
670
|
+
<CommandItem onSelect={() => handleSelect("/settings")}>
|
|
671
|
+
<Settings className="mr-2 h-4 w-4" />
|
|
672
|
+
Configurações
|
|
673
|
+
</CommandItem>
|
|
674
|
+
<CommandItem onSelect={() => handleSelect("/documents")}>
|
|
675
|
+
<File className="mr-2 h-4 w-4" />
|
|
676
|
+
Documentos
|
|
677
|
+
</CommandItem>
|
|
678
|
+
</CommandGroup>
|
|
679
|
+
</CommandList>
|
|
680
|
+
</CommandDialog>
|
|
681
|
+
)
|
|
682
|
+
}
|
|
683
|
+
```
|
|
684
|
+
|
|
685
|
+
### Dentro de Popover (Combobox)
|
|
686
|
+
|
|
687
|
+
```tsx
|
|
688
|
+
import { Popover, PopoverContent, PopoverTrigger } from "@etus/ui"
|
|
689
|
+
import { Button } from "@etus/ui"
|
|
690
|
+
import { ChevronsUpDown } from "lucide-react"
|
|
691
|
+
|
|
692
|
+
function ComboboxExample() {
|
|
693
|
+
const [open, setOpen] = useState(false)
|
|
694
|
+
const [value, setValue] = useState("")
|
|
695
|
+
|
|
696
|
+
const frameworks = [
|
|
697
|
+
{ value: "next", label: "Next.js" },
|
|
698
|
+
{ value: "remix", label: "Remix" },
|
|
699
|
+
{ value: "astro", label: "Astro" },
|
|
700
|
+
{ value: "nuxt", label: "Nuxt" },
|
|
701
|
+
]
|
|
702
|
+
|
|
703
|
+
return (
|
|
704
|
+
<Popover open={open} onOpenChange={setOpen}>
|
|
705
|
+
<PopoverTrigger asChild>
|
|
706
|
+
<Button variant="outline" className="w-[200px] justify-between">
|
|
707
|
+
{value
|
|
708
|
+
? frameworks.find((f) => f.value === value)?.label
|
|
709
|
+
: "Selecione..."}
|
|
710
|
+
<ChevronsUpDown className="ml-2 h-4 w-4 opacity-50" />
|
|
711
|
+
</Button>
|
|
712
|
+
</PopoverTrigger>
|
|
713
|
+
<PopoverContent className="w-[200px] p-0">
|
|
714
|
+
<Command>
|
|
715
|
+
<CommandInput placeholder="Buscar framework..." />
|
|
716
|
+
<CommandList>
|
|
717
|
+
<CommandEmpty>Nenhum framework encontrado.</CommandEmpty>
|
|
718
|
+
<CommandGroup>
|
|
719
|
+
{frameworks.map((framework) => (
|
|
720
|
+
<CommandItem
|
|
721
|
+
key={framework.value}
|
|
722
|
+
value={framework.value}
|
|
723
|
+
onSelect={(currentValue) => {
|
|
724
|
+
setValue(currentValue === value ? "" : currentValue)
|
|
725
|
+
setOpen(false)
|
|
726
|
+
}}
|
|
727
|
+
>
|
|
728
|
+
{framework.label}
|
|
729
|
+
</CommandItem>
|
|
730
|
+
))}
|
|
731
|
+
</CommandGroup>
|
|
732
|
+
</CommandList>
|
|
733
|
+
</Command>
|
|
734
|
+
</PopoverContent>
|
|
735
|
+
</Popover>
|
|
736
|
+
)
|
|
737
|
+
}
|
|
738
|
+
```
|
|
739
|
+
|
|
740
|
+
---
|
|
741
|
+
|
|
742
|
+
## Testes
|
|
743
|
+
|
|
744
|
+
### Testes Unitários
|
|
745
|
+
|
|
746
|
+
```tsx
|
|
747
|
+
// Command.test.tsx
|
|
748
|
+
import { render, screen } from "@testing-library/react"
|
|
749
|
+
import userEvent from "@testing-library/user-event"
|
|
750
|
+
import { describe, expect, it, vi } from "vitest"
|
|
751
|
+
import {
|
|
752
|
+
Command,
|
|
753
|
+
CommandEmpty,
|
|
754
|
+
CommandGroup,
|
|
755
|
+
CommandInput,
|
|
756
|
+
CommandItem,
|
|
757
|
+
CommandList,
|
|
758
|
+
} from "./Command"
|
|
759
|
+
|
|
760
|
+
describe("Command", () => {
|
|
761
|
+
it("renders input and items correctly", () => {
|
|
762
|
+
render(
|
|
763
|
+
<Command>
|
|
764
|
+
<CommandInput placeholder="Search..." />
|
|
765
|
+
<CommandList>
|
|
766
|
+
<CommandGroup>
|
|
767
|
+
<CommandItem>Item 1</CommandItem>
|
|
768
|
+
<CommandItem>Item 2</CommandItem>
|
|
769
|
+
</CommandGroup>
|
|
770
|
+
</CommandList>
|
|
771
|
+
</Command>
|
|
772
|
+
)
|
|
773
|
+
|
|
774
|
+
expect(screen.getByPlaceholderText("Search...")).toBeInTheDocument()
|
|
775
|
+
expect(screen.getByText("Item 1")).toBeInTheDocument()
|
|
776
|
+
expect(screen.getByText("Item 2")).toBeInTheDocument()
|
|
777
|
+
})
|
|
778
|
+
|
|
779
|
+
it("has data-slot attribute on root", () => {
|
|
780
|
+
render(
|
|
781
|
+
<Command data-testid="command">
|
|
782
|
+
<CommandInput />
|
|
783
|
+
<CommandList />
|
|
784
|
+
</Command>
|
|
785
|
+
)
|
|
786
|
+
|
|
787
|
+
expect(screen.getByTestId("command")).toHaveAttribute("data-slot", "command")
|
|
788
|
+
})
|
|
789
|
+
|
|
790
|
+
it("filters items based on search input", async () => {
|
|
791
|
+
const user = userEvent.setup()
|
|
792
|
+
|
|
793
|
+
render(
|
|
794
|
+
<Command>
|
|
795
|
+
<CommandInput placeholder="Search..." />
|
|
796
|
+
<CommandList>
|
|
797
|
+
<CommandGroup>
|
|
798
|
+
<CommandItem value="apple">Apple</CommandItem>
|
|
799
|
+
<CommandItem value="banana">Banana</CommandItem>
|
|
800
|
+
<CommandItem value="cherry">Cherry</CommandItem>
|
|
801
|
+
</CommandGroup>
|
|
802
|
+
</CommandList>
|
|
803
|
+
</Command>
|
|
804
|
+
)
|
|
805
|
+
|
|
806
|
+
const input = screen.getByPlaceholderText("Search...")
|
|
807
|
+
await user.type(input, "ban")
|
|
808
|
+
|
|
809
|
+
expect(screen.getByText("Banana")).toBeVisible()
|
|
810
|
+
expect(screen.queryByText("Apple")).not.toBeVisible()
|
|
811
|
+
expect(screen.queryByText("Cherry")).not.toBeVisible()
|
|
812
|
+
})
|
|
813
|
+
|
|
814
|
+
it("shows empty state when no results", async () => {
|
|
815
|
+
const user = userEvent.setup()
|
|
816
|
+
|
|
817
|
+
render(
|
|
818
|
+
<Command>
|
|
819
|
+
<CommandInput placeholder="Search..." />
|
|
820
|
+
<CommandList>
|
|
821
|
+
<CommandEmpty>No results found.</CommandEmpty>
|
|
822
|
+
<CommandGroup>
|
|
823
|
+
<CommandItem value="apple">Apple</CommandItem>
|
|
824
|
+
</CommandGroup>
|
|
825
|
+
</CommandList>
|
|
826
|
+
</Command>
|
|
827
|
+
)
|
|
828
|
+
|
|
829
|
+
const input = screen.getByPlaceholderText("Search...")
|
|
830
|
+
await user.type(input, "xyz")
|
|
831
|
+
|
|
832
|
+
expect(screen.getByText("No results found.")).toBeVisible()
|
|
833
|
+
})
|
|
834
|
+
})
|
|
835
|
+
```
|
|
836
|
+
|
|
837
|
+
### Testes de Interação
|
|
838
|
+
|
|
839
|
+
```tsx
|
|
840
|
+
describe("Command interactions", () => {
|
|
841
|
+
it("calls onSelect when item is clicked", async () => {
|
|
842
|
+
const user = userEvent.setup()
|
|
843
|
+
const handleSelect = vi.fn()
|
|
844
|
+
|
|
845
|
+
render(
|
|
846
|
+
<Command>
|
|
847
|
+
<CommandInput />
|
|
848
|
+
<CommandList>
|
|
849
|
+
<CommandGroup>
|
|
850
|
+
<CommandItem value="test" onSelect={handleSelect}>
|
|
851
|
+
Test Item
|
|
852
|
+
</CommandItem>
|
|
853
|
+
</CommandGroup>
|
|
854
|
+
</CommandList>
|
|
855
|
+
</Command>
|
|
856
|
+
)
|
|
857
|
+
|
|
858
|
+
await user.click(screen.getByText("Test Item"))
|
|
859
|
+
expect(handleSelect).toHaveBeenCalledWith("test")
|
|
860
|
+
})
|
|
861
|
+
|
|
862
|
+
it("navigates with arrow keys", async () => {
|
|
863
|
+
const user = userEvent.setup()
|
|
864
|
+
|
|
865
|
+
render(
|
|
866
|
+
<Command>
|
|
867
|
+
<CommandInput placeholder="Search..." />
|
|
868
|
+
<CommandList>
|
|
869
|
+
<CommandGroup>
|
|
870
|
+
<CommandItem value="first">First</CommandItem>
|
|
871
|
+
<CommandItem value="second">Second</CommandItem>
|
|
872
|
+
<CommandItem value="third">Third</CommandItem>
|
|
873
|
+
</CommandGroup>
|
|
874
|
+
</CommandList>
|
|
875
|
+
</Command>
|
|
876
|
+
)
|
|
877
|
+
|
|
878
|
+
const input = screen.getByPlaceholderText("Search...")
|
|
879
|
+
await user.click(input)
|
|
880
|
+
await user.keyboard("{ArrowDown}")
|
|
881
|
+
await user.keyboard("{ArrowDown}")
|
|
882
|
+
|
|
883
|
+
const secondItem = screen.getByText("Second").closest("[cmdk-item]")
|
|
884
|
+
expect(secondItem).toHaveAttribute("data-selected", "true")
|
|
885
|
+
})
|
|
886
|
+
|
|
887
|
+
it("selects item with Enter key", async () => {
|
|
888
|
+
const user = userEvent.setup()
|
|
889
|
+
const handleSelect = vi.fn()
|
|
890
|
+
|
|
891
|
+
render(
|
|
892
|
+
<Command>
|
|
893
|
+
<CommandInput placeholder="Search..." />
|
|
894
|
+
<CommandList>
|
|
895
|
+
<CommandGroup>
|
|
896
|
+
<CommandItem value="test" onSelect={handleSelect}>
|
|
897
|
+
Test
|
|
898
|
+
</CommandItem>
|
|
899
|
+
</CommandGroup>
|
|
900
|
+
</CommandList>
|
|
901
|
+
</Command>
|
|
902
|
+
)
|
|
903
|
+
|
|
904
|
+
const input = screen.getByPlaceholderText("Search...")
|
|
905
|
+
await user.click(input)
|
|
906
|
+
await user.keyboard("{ArrowDown}")
|
|
907
|
+
await user.keyboard("{Enter}")
|
|
908
|
+
|
|
909
|
+
expect(handleSelect).toHaveBeenCalledWith("test")
|
|
910
|
+
})
|
|
911
|
+
|
|
912
|
+
it("does not call onSelect for disabled items", async () => {
|
|
913
|
+
const user = userEvent.setup()
|
|
914
|
+
const handleSelect = vi.fn()
|
|
915
|
+
|
|
916
|
+
render(
|
|
917
|
+
<Command>
|
|
918
|
+
<CommandInput />
|
|
919
|
+
<CommandList>
|
|
920
|
+
<CommandGroup>
|
|
921
|
+
<CommandItem value="test" disabled onSelect={handleSelect}>
|
|
922
|
+
Disabled Item
|
|
923
|
+
</CommandItem>
|
|
924
|
+
</CommandGroup>
|
|
925
|
+
</CommandList>
|
|
926
|
+
</Command>
|
|
927
|
+
)
|
|
928
|
+
|
|
929
|
+
await user.click(screen.getByText("Disabled Item"))
|
|
930
|
+
expect(handleSelect).not.toHaveBeenCalled()
|
|
931
|
+
})
|
|
932
|
+
})
|
|
933
|
+
```
|
|
934
|
+
|
|
935
|
+
### Testes de Acessibilidade
|
|
936
|
+
|
|
937
|
+
```tsx
|
|
938
|
+
import { axe, toHaveNoViolations } from "jest-axe"
|
|
939
|
+
|
|
940
|
+
expect.extend(toHaveNoViolations)
|
|
941
|
+
|
|
942
|
+
describe("Command accessibility", () => {
|
|
943
|
+
it("has no accessibility violations", async () => {
|
|
944
|
+
const { container } = render(
|
|
945
|
+
<Command>
|
|
946
|
+
<CommandInput placeholder="Search..." />
|
|
947
|
+
<CommandList>
|
|
948
|
+
<CommandGroup heading="Options">
|
|
949
|
+
<CommandItem>Option 1</CommandItem>
|
|
950
|
+
<CommandItem>Option 2</CommandItem>
|
|
951
|
+
</CommandGroup>
|
|
952
|
+
</CommandList>
|
|
953
|
+
</Command>
|
|
954
|
+
)
|
|
955
|
+
|
|
956
|
+
const results = await axe(container)
|
|
957
|
+
expect(results).toHaveNoViolations()
|
|
958
|
+
})
|
|
959
|
+
|
|
960
|
+
it("input has combobox role", () => {
|
|
961
|
+
render(
|
|
962
|
+
<Command>
|
|
963
|
+
<CommandInput placeholder="Search..." />
|
|
964
|
+
<CommandList />
|
|
965
|
+
</Command>
|
|
966
|
+
)
|
|
967
|
+
|
|
968
|
+
expect(screen.getByRole("combobox")).toBeInTheDocument()
|
|
969
|
+
})
|
|
970
|
+
|
|
971
|
+
it("list has listbox role", () => {
|
|
972
|
+
render(
|
|
973
|
+
<Command>
|
|
974
|
+
<CommandInput />
|
|
975
|
+
<CommandList data-testid="list">
|
|
976
|
+
<CommandGroup>
|
|
977
|
+
<CommandItem>Item</CommandItem>
|
|
978
|
+
</CommandGroup>
|
|
979
|
+
</CommandList>
|
|
980
|
+
</Command>
|
|
981
|
+
)
|
|
982
|
+
|
|
983
|
+
expect(screen.getByRole("listbox")).toBeInTheDocument()
|
|
984
|
+
})
|
|
985
|
+
|
|
986
|
+
it("items have option role", () => {
|
|
987
|
+
render(
|
|
988
|
+
<Command>
|
|
989
|
+
<CommandInput />
|
|
990
|
+
<CommandList>
|
|
991
|
+
<CommandGroup>
|
|
992
|
+
<CommandItem>Item</CommandItem>
|
|
993
|
+
</CommandGroup>
|
|
994
|
+
</CommandList>
|
|
995
|
+
</Command>
|
|
996
|
+
)
|
|
997
|
+
|
|
998
|
+
expect(screen.getByRole("option")).toBeInTheDocument()
|
|
999
|
+
})
|
|
1000
|
+
|
|
1001
|
+
it("is keyboard navigable", async () => {
|
|
1002
|
+
const user = userEvent.setup()
|
|
1003
|
+
|
|
1004
|
+
render(
|
|
1005
|
+
<Command>
|
|
1006
|
+
<CommandInput placeholder="Search..." />
|
|
1007
|
+
<CommandList>
|
|
1008
|
+
<CommandGroup>
|
|
1009
|
+
<CommandItem>Item 1</CommandItem>
|
|
1010
|
+
<CommandItem>Item 2</CommandItem>
|
|
1011
|
+
</CommandGroup>
|
|
1012
|
+
</CommandList>
|
|
1013
|
+
</Command>
|
|
1014
|
+
)
|
|
1015
|
+
|
|
1016
|
+
const input = screen.getByPlaceholderText("Search...")
|
|
1017
|
+
input.focus()
|
|
1018
|
+
expect(input).toHaveFocus()
|
|
1019
|
+
|
|
1020
|
+
await user.keyboard("{ArrowDown}")
|
|
1021
|
+
// First item should be selected
|
|
1022
|
+
expect(screen.getByText("Item 1").closest("[cmdk-item]")).toHaveAttribute(
|
|
1023
|
+
"data-selected",
|
|
1024
|
+
"true"
|
|
1025
|
+
)
|
|
1026
|
+
})
|
|
1027
|
+
})
|
|
1028
|
+
```
|
|
1029
|
+
|
|
1030
|
+
### Testes de Composição (Dialog)
|
|
1031
|
+
|
|
1032
|
+
```tsx
|
|
1033
|
+
describe("CommandDialog", () => {
|
|
1034
|
+
it("opens and closes correctly", async () => {
|
|
1035
|
+
const user = userEvent.setup()
|
|
1036
|
+
const handleOpenChange = vi.fn()
|
|
1037
|
+
|
|
1038
|
+
render(
|
|
1039
|
+
<CommandDialog open={true} onOpenChange={handleOpenChange}>
|
|
1040
|
+
<CommandInput placeholder="Search..." />
|
|
1041
|
+
<CommandList>
|
|
1042
|
+
<CommandGroup>
|
|
1043
|
+
<CommandItem>Item</CommandItem>
|
|
1044
|
+
</CommandGroup>
|
|
1045
|
+
</CommandList>
|
|
1046
|
+
</CommandDialog>
|
|
1047
|
+
)
|
|
1048
|
+
|
|
1049
|
+
expect(screen.getByPlaceholderText("Search...")).toBeInTheDocument()
|
|
1050
|
+
|
|
1051
|
+
await user.keyboard("{Escape}")
|
|
1052
|
+
expect(handleOpenChange).toHaveBeenCalledWith(false)
|
|
1053
|
+
})
|
|
1054
|
+
|
|
1055
|
+
it("auto-focuses input when opened", () => {
|
|
1056
|
+
render(
|
|
1057
|
+
<CommandDialog open={true} onOpenChange={() => {}}>
|
|
1058
|
+
<CommandInput placeholder="Search..." />
|
|
1059
|
+
<CommandList />
|
|
1060
|
+
</CommandDialog>
|
|
1061
|
+
)
|
|
1062
|
+
|
|
1063
|
+
expect(screen.getByPlaceholderText("Search...")).toHaveFocus()
|
|
1064
|
+
})
|
|
1065
|
+
|
|
1066
|
+
it("has accessible title and description", () => {
|
|
1067
|
+
render(
|
|
1068
|
+
<CommandDialog
|
|
1069
|
+
open={true}
|
|
1070
|
+
onOpenChange={() => {}}
|
|
1071
|
+
title="Command Menu"
|
|
1072
|
+
description="Search for commands"
|
|
1073
|
+
>
|
|
1074
|
+
<CommandInput />
|
|
1075
|
+
<CommandList />
|
|
1076
|
+
</CommandDialog>
|
|
1077
|
+
)
|
|
1078
|
+
|
|
1079
|
+
expect(screen.getByText("Command Menu")).toBeInTheDocument()
|
|
1080
|
+
expect(screen.getByText("Search for commands")).toBeInTheDocument()
|
|
1081
|
+
})
|
|
1082
|
+
})
|
|
1083
|
+
```
|
|
1084
|
+
|
|
1085
|
+
---
|
|
1086
|
+
|
|
1087
|
+
## Roadmap / Features Futuras
|
|
1088
|
+
|
|
1089
|
+
Baseado na análise comparativa com 14 design systems, as seguintes features são candidatas para implementação futura:
|
|
1090
|
+
|
|
1091
|
+
### Prioridade Alta
|
|
1092
|
+
|
|
1093
|
+
#### Virtualização para Listas Grandes
|
|
1094
|
+
|
|
1095
|
+
Suporte a listas com milhares de items sem perda de performance.
|
|
1096
|
+
|
|
1097
|
+
```tsx
|
|
1098
|
+
// Proposta de API
|
|
1099
|
+
interface CommandListProps {
|
|
1100
|
+
virtualized?: boolean
|
|
1101
|
+
itemHeight?: number
|
|
1102
|
+
overscan?: number
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
// Uso
|
|
1106
|
+
<CommandList virtualized itemHeight={40}>
|
|
1107
|
+
{/* 10,000+ items */}
|
|
1108
|
+
</CommandList>
|
|
1109
|
+
```
|
|
1110
|
+
|
|
1111
|
+
**Referências:** Mantine (`virtualizedItems`), MUI (`ListboxComponent`), AntD (`virtual`)
|
|
1112
|
+
|
|
1113
|
+
#### Loading State Nativo
|
|
1114
|
+
|
|
1115
|
+
Estado de carregamento com componente dedicado.
|
|
1116
|
+
|
|
1117
|
+
```tsx
|
|
1118
|
+
// Proposta de API (já suportado pelo cmdk)
|
|
1119
|
+
import { Command } from "cmdk"
|
|
1120
|
+
|
|
1121
|
+
<Command.Loading>
|
|
1122
|
+
<Spinner /> Loading...
|
|
1123
|
+
</Command.Loading>
|
|
1124
|
+
|
|
1125
|
+
// Wrapper ETUS
|
|
1126
|
+
<CommandLoading>Carregando...</CommandLoading>
|
|
1127
|
+
```
|
|
1128
|
+
|
|
1129
|
+
**Referências:** cmdk (`Command.Loading`), Mantine (`loading`), MUI (`loading`)
|
|
1130
|
+
|
|
1131
|
+
### Prioridade Média
|
|
1132
|
+
|
|
1133
|
+
#### Highlight de Match
|
|
1134
|
+
|
|
1135
|
+
Destaque visual do texto que matcheia a busca.
|
|
1136
|
+
|
|
1137
|
+
```tsx
|
|
1138
|
+
// Proposta de API
|
|
1139
|
+
interface CommandItemProps {
|
|
1140
|
+
highlightMatch?: boolean
|
|
1141
|
+
highlightClassName?: string
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
// Uso
|
|
1145
|
+
<CommandItem highlightMatch>
|
|
1146
|
+
React Native {/* "nat" seria destacado */}
|
|
1147
|
+
</CommandItem>
|
|
1148
|
+
```
|
|
1149
|
+
|
|
1150
|
+
**Referências:** Blueprint Omnibar, Algolia InstantSearch
|
|
1151
|
+
|
|
1152
|
+
#### Footer com Ações
|
|
1153
|
+
|
|
1154
|
+
Área fixa no rodapé para ações ou dicas de atalho.
|
|
1155
|
+
|
|
1156
|
+
```tsx
|
|
1157
|
+
// Proposta de API
|
|
1158
|
+
<Command>
|
|
1159
|
+
<CommandInput />
|
|
1160
|
+
<CommandList />
|
|
1161
|
+
<CommandFooter>
|
|
1162
|
+
<span>↑↓ para navegar</span>
|
|
1163
|
+
<span>↵ para selecionar</span>
|
|
1164
|
+
<span>esc para fechar</span>
|
|
1165
|
+
</CommandFooter>
|
|
1166
|
+
</Command>
|
|
1167
|
+
```
|
|
1168
|
+
|
|
1169
|
+
**Referências:** Spotlight (Mantine), Linear, Vercel
|
|
1170
|
+
|
|
1171
|
+
### Prioridade Baixa
|
|
1172
|
+
|
|
1173
|
+
#### Recent Items
|
|
1174
|
+
|
|
1175
|
+
Seção de items recentes com persistência.
|
|
1176
|
+
|
|
1177
|
+
```tsx
|
|
1178
|
+
// Proposta de API
|
|
1179
|
+
<Command>
|
|
1180
|
+
<CommandInput />
|
|
1181
|
+
<CommandList>
|
|
1182
|
+
<CommandRecents max={5} />
|
|
1183
|
+
<CommandGroup heading="Todos">
|
|
1184
|
+
{/* items */}
|
|
1185
|
+
</CommandGroup>
|
|
1186
|
+
</CommandList>
|
|
1187
|
+
</Command>
|
|
1188
|
+
```
|
|
1189
|
+
|
|
1190
|
+
**Referências:** Spotlight (Mantine), Raycast
|
|
1191
|
+
|
|
1192
|
+
#### Multiple Selection
|
|
1193
|
+
|
|
1194
|
+
Seleção múltipla de items.
|
|
1195
|
+
|
|
1196
|
+
```tsx
|
|
1197
|
+
// Proposta de API
|
|
1198
|
+
interface CommandProps {
|
|
1199
|
+
multiple?: boolean
|
|
1200
|
+
value?: string[]
|
|
1201
|
+
onValueChange?: (value: string[]) => void
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
// Uso
|
|
1205
|
+
<Command multiple value={selected} onValueChange={setSelected}>
|
|
1206
|
+
<CommandItem value="a">
|
|
1207
|
+
<Checkbox checked={selected.includes("a")} />
|
|
1208
|
+
Item A
|
|
1209
|
+
</CommandItem>
|
|
1210
|
+
</Command>
|
|
1211
|
+
```
|
|
1212
|
+
|
|
1213
|
+
**Referências:** MUI Autocomplete (`multiple`), Mantine MultiSelect
|
|
1214
|
+
|
|
1215
|
+
### Decisões de Design
|
|
1216
|
+
|
|
1217
|
+
| Feature | Recomendação | Justificativa |
|
|
1218
|
+
|---------|--------------|---------------|
|
|
1219
|
+
| `virtualized` | ✅ Implementar | Performance crítica para listas grandes |
|
|
1220
|
+
| `CommandLoading` | ✅ Implementar | Já suportado pelo cmdk, apenas wrapper |
|
|
1221
|
+
| `highlightMatch` | ⚠️ Avaliar | Útil mas complexo de implementar |
|
|
1222
|
+
| `CommandFooter` | ⚠️ Avaliar | Bom UX, pode ser feito via composição |
|
|
1223
|
+
| `CommandRecents` | ❌ Evitar | Muito específico, melhor via composição |
|
|
1224
|
+
| `multiple` | ❌ Evitar | Muda natureza do componente, usar MultiSelect |
|
|
1225
|
+
|
|
1226
|
+
---
|
|
1227
|
+
|
|
1228
|
+
## Referências
|
|
1229
|
+
|
|
1230
|
+
### Design Systems Analisados
|
|
1231
|
+
|
|
1232
|
+
| Design System | Documentação | GitHub |
|
|
1233
|
+
|---------------|--------------|--------|
|
|
1234
|
+
| **Shadcn/ui** | [Command](https://ui.shadcn.com/docs/components/command) | [shadcn-ui/ui](https://github.com/shadcn-ui/ui) |
|
|
1235
|
+
| **cmdk** | [Documentation](https://cmdk.paco.me) | [pacocoursey/cmdk](https://github.com/pacocoursey/cmdk) |
|
|
1236
|
+
| **Mantine** | [Spotlight](https://mantine.dev/x/spotlight/) | [mantinedev/mantine](https://github.com/mantinedev/mantine) |
|
|
1237
|
+
| **MUI** | [Autocomplete](https://mui.com/material-ui/react-autocomplete/) | [mui/material-ui](https://github.com/mui/material-ui) |
|
|
1238
|
+
| **Chakra UI** | [Menu](https://chakra-ui.com/docs/components/menu) | [chakra-ui/chakra-ui](https://github.com/chakra-ui/chakra-ui) |
|
|
1239
|
+
| **Ant Design** | [AutoComplete](https://ant.design/components/auto-complete) | [ant-design/ant-design](https://github.com/ant-design/ant-design) |
|
|
1240
|
+
| **NextUI** | [Autocomplete](https://nextui.org/docs/components/autocomplete) | [nextui-org/nextui](https://github.com/nextui-org/nextui) |
|
|
1241
|
+
| **Headless UI** | [Combobox](https://headlessui.com/react/combobox) | [tailwindlabs/headlessui](https://github.com/tailwindlabs/headlessui) |
|
|
1242
|
+
| **Ariakit** | [Combobox](https://ariakit.org/components/combobox) | [ariakit/ariakit](https://github.com/ariakit/ariakit) |
|
|
1243
|
+
| **Fluent UI** | [SearchBox](https://react.fluentui.dev/?path=/docs/components-searchbox--default) | [microsoft/fluentui](https://github.com/microsoft/fluentui) |
|
|
1244
|
+
| **Carbon** | [ComboBox](https://carbondesignsystem.com/components/combo-box/usage/) | [carbon-design-system/carbon](https://github.com/carbon-design-system/carbon) |
|
|
1245
|
+
| **Blueprint** | [Omnibar](https://blueprintjs.com/docs/#select/omnibar) | [palantir/blueprint](https://github.com/palantir/blueprint) |
|
|
1246
|
+
|
|
1247
|
+
### Especificações e Padrões
|
|
1248
|
+
|
|
1249
|
+
- [WAI-ARIA APG - Combobox Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/combobox/)
|
|
1250
|
+
- [WAI-ARIA APG - Listbox Pattern](https://www.w3.org/WAI/ARIA/apg/patterns/listbox/)
|
|
1251
|
+
- [WCAG 2.1 Success Criteria](https://www.w3.org/WAI/WCAG21/quickref/)
|
|
1252
|
+
- [MDN - ARIA: combobox role](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/combobox_role)
|
|
1253
|
+
|
|
1254
|
+
### Ferramentas Utilizadas
|
|
1255
|
+
|
|
1256
|
+
- [cmdk](https://cmdk.paco.me) - Command menu primitivo
|
|
1257
|
+
- [Tailwind CSS](https://tailwindcss.com/docs)
|
|
1258
|
+
- [Radix Dialog](https://www.radix-ui.com/primitives/docs/components/dialog)
|
|
1259
|
+
- [Lucide Icons](https://lucide.dev/icons/)
|