@etus/ui 0.1.1 → 0.1.3
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-UP2VWCW5.js +38 -0
- package/dist/chunk-UP2VWCW5.js.map +1 -0
- package/dist/index.d.ts +1177 -228
- package/dist/index.js +9506 -4305
- package/dist/index.js.map +1 -1
- package/dist/jspdf.node.min-CTWP225M.js +39344 -0
- package/dist/jspdf.node.min-CTWP225M.js.map +1 -0
- package/dist/jspdf.plugin.autotable-AAE7PZKA.js +1908 -0
- package/dist/jspdf.plugin.autotable-AAE7PZKA.js.map +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/xlsx-PWHBQ6NK.js +31945 -0
- package/dist/xlsx-PWHBQ6NK.js.map +1 -0
- package/package.json +12 -6
- package/styles.css +1 -0
- package/src/components/CLAUDE.md +0 -66
- package/src/components/advanced/AssetManager/AssetManager.test.tsx +0 -624
- package/src/components/advanced/AssetManager/AssetManager.tsx +0 -928
- package/src/components/advanced/AssetManager/AssetManager.types.ts +0 -248
- package/src/components/advanced/AssetManager/AssetManager.variants.ts +0 -284
- package/src/components/advanced/AssetManager/README.md +0 -246
- package/src/components/advanced/AssetManager/index.ts +0 -4
- package/src/components/advanced/CLAUDE.md +0 -77
- package/src/components/advanced/Calendar/Calendar.test.tsx +0 -718
- package/src/components/advanced/Calendar/Calendar.tsx +0 -264
- package/src/components/advanced/Calendar/Calendar.types.ts +0 -62
- package/src/components/advanced/Calendar/Calendar.variants.ts +0 -154
- package/src/components/advanced/Calendar/README.md +0 -389
- package/src/components/advanced/Calendar/index.ts +0 -3
- package/src/components/advanced/Command/Command.test.tsx +0 -1014
- package/src/components/advanced/Command/Command.tsx +0 -330
- package/src/components/advanced/Command/Command.types.ts +0 -238
- package/src/components/advanced/Command/Command.variants.ts +0 -300
- package/src/components/advanced/Command/README.md +0 -1259
- package/src/components/advanced/Command/index.ts +0 -45
- package/src/components/advanced/DragAndDrop/DragAndDrop.test.tsx +0 -573
- package/src/components/advanced/DragAndDrop/DragAndDrop.tsx +0 -495
- package/src/components/advanced/DragAndDrop/DragAndDrop.types.ts +0 -237
- package/src/components/advanced/DragAndDrop/DragAndDrop.variants.ts +0 -156
- package/src/components/advanced/DragAndDrop/README.md +0 -284
- package/src/components/advanced/DragAndDrop/index.ts +0 -4
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.test.tsx +0 -372
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.tsx +0 -184
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.types.ts +0 -73
- package/src/components/advanced/ErrorBoundary/ErrorBoundary.variants.ts +0 -153
- package/src/components/advanced/ErrorBoundary/README.md +0 -296
- package/src/components/advanced/ErrorBoundary/index.ts +0 -18
- package/src/components/advanced/EventCalendar/EventCalendar.test.tsx +0 -535
- package/src/components/advanced/EventCalendar/EventCalendar.tsx +0 -1066
- package/src/components/advanced/EventCalendar/EventCalendar.types.ts +0 -232
- package/src/components/advanced/EventCalendar/EventCalendar.variants.ts +0 -222
- package/src/components/advanced/EventCalendar/README.md +0 -330
- package/src/components/advanced/EventCalendar/index.ts +0 -35
- package/src/components/advanced/FileDropzone/FileDropzone.test.tsx +0 -344
- package/src/components/advanced/FileDropzone/FileDropzone.tsx +0 -188
- package/src/components/advanced/FileDropzone/FileDropzone.types.ts +0 -47
- package/src/components/advanced/FileDropzone/FileDropzone.variants.ts +0 -46
- package/src/components/advanced/FileDropzone/README.md +0 -359
- package/src/components/advanced/FileDropzone/index.ts +0 -7
- package/src/components/advanced/FilePreview/FilePreview.test.tsx +0 -503
- package/src/components/advanced/FilePreview/FilePreview.tsx +0 -385
- package/src/components/advanced/FilePreview/FilePreview.types.ts +0 -90
- package/src/components/advanced/FilePreview/FilePreview.variants.ts +0 -234
- package/src/components/advanced/FilePreview/README.md +0 -318
- package/src/components/advanced/FilePreview/index.ts +0 -25
- package/src/components/advanced/FileUpload/FileUpload.test.tsx +0 -676
- package/src/components/advanced/FileUpload/FileUpload.tsx +0 -845
- package/src/components/advanced/FileUpload/FileUpload.types.ts +0 -270
- package/src/components/advanced/FileUpload/FileUpload.variants.ts +0 -216
- package/src/components/advanced/FileUpload/README.md +0 -380
- package/src/components/advanced/FileUpload/index.ts +0 -39
- package/src/components/advanced/FilterBuilder/FilterBuilder.test.tsx +0 -644
- package/src/components/advanced/FilterBuilder/FilterBuilder.tsx +0 -881
- package/src/components/advanced/FilterBuilder/FilterBuilder.types.ts +0 -249
- package/src/components/advanced/FilterBuilder/FilterBuilder.variants.ts +0 -307
- package/src/components/advanced/FilterBuilder/README.md +0 -383
- package/src/components/advanced/FilterBuilder/index.ts +0 -48
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.test.tsx +0 -468
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.tsx +0 -556
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.types.ts +0 -108
- package/src/components/advanced/MarkdownEditor/MarkdownEditor.variants.ts +0 -62
- package/src/components/advanced/MarkdownEditor/README.md +0 -352
- package/src/components/advanced/MarkdownEditor/index.ts +0 -15
- package/src/components/advanced/Portal/Portal.test.tsx +0 -406
- package/src/components/advanced/Portal/Portal.tsx +0 -77
- package/src/components/advanced/Portal/Portal.types.ts +0 -28
- package/src/components/advanced/Portal/Portal.variants.ts +0 -95
- package/src/components/advanced/Portal/README.md +0 -326
- package/src/components/advanced/Portal/index.ts +0 -9
- package/src/components/advanced/RichTextEditor/README.md +0 -383
- package/src/components/advanced/RichTextEditor/RichTextEditor.test.tsx +0 -394
- package/src/components/advanced/RichTextEditor/RichTextEditor.tsx +0 -651
- package/src/components/advanced/RichTextEditor/RichTextEditor.types.ts +0 -77
- package/src/components/advanced/RichTextEditor/RichTextEditor.variants.ts +0 -151
- package/src/components/advanced/RichTextEditor/index.ts +0 -24
- package/src/components/advanced/Search/README.md +0 -391
- package/src/components/advanced/Search/Search.test.tsx +0 -567
- package/src/components/advanced/Search/Search.tsx +0 -829
- package/src/components/advanced/Search/Search.types.ts +0 -243
- package/src/components/advanced/Search/Search.variants.ts +0 -358
- package/src/components/advanced/Search/index.ts +0 -52
- package/src/components/advanced/SortableList/README.md +0 -448
- package/src/components/advanced/SortableList/SortableList.test.tsx +0 -317
- package/src/components/advanced/SortableList/SortableList.tsx +0 -392
- package/src/components/advanced/SortableList/SortableList.types.ts +0 -122
- package/src/components/advanced/SortableList/SortableList.variants.ts +0 -141
- package/src/components/advanced/SortableList/index.ts +0 -33
- package/src/components/advanced/VersionControl/README.md +0 -440
- package/src/components/advanced/VersionControl/VersionControl.test.tsx +0 -517
- package/src/components/advanced/VersionControl/VersionControl.tsx +0 -758
- package/src/components/advanced/VersionControl/VersionControl.types.ts +0 -176
- package/src/components/advanced/VersionControl/VersionControl.variants.ts +0 -203
- package/src/components/advanced/VersionControl/index.ts +0 -33
- package/src/components/advanced/index.ts +0 -17
- package/src/components/data-display/Accordion/Accordion.test.tsx +0 -519
- package/src/components/data-display/Accordion/Accordion.tsx +0 -164
- package/src/components/data-display/Accordion/Accordion.types.ts +0 -37
- package/src/components/data-display/Accordion/Accordion.variants.ts +0 -112
- package/src/components/data-display/Accordion/README.md +0 -976
- package/src/components/data-display/Accordion/index.ts +0 -31
- package/src/components/data-display/AreaChart/AreaChart.test.tsx +0 -529
- package/src/components/data-display/AreaChart/AreaChart.tsx +0 -318
- package/src/components/data-display/AreaChart/AreaChart.types.ts +0 -169
- package/src/components/data-display/AreaChart/AreaChart.variants.ts +0 -45
- package/src/components/data-display/AreaChart/README.md +0 -229
- package/src/components/data-display/AreaChart/index.ts +0 -2
- package/src/components/data-display/Banner/Banner.test.tsx +0 -648
- package/src/components/data-display/Banner/Banner.tsx +0 -111
- package/src/components/data-display/Banner/Banner.types.ts +0 -51
- package/src/components/data-display/Banner/Banner.variants.ts +0 -37
- package/src/components/data-display/Banner/README.md +0 -351
- package/src/components/data-display/Banner/index.ts +0 -2
- package/src/components/data-display/BarChart/BarChart.test.tsx +0 -536
- package/src/components/data-display/BarChart/BarChart.tsx +0 -305
- package/src/components/data-display/BarChart/BarChart.types.ts +0 -145
- package/src/components/data-display/BarChart/BarChart.variants.ts +0 -61
- package/src/components/data-display/BarChart/README.md +0 -205
- package/src/components/data-display/BarChart/index.ts +0 -2
- package/src/components/data-display/BarList/BarList.tsx +0 -172
- package/src/components/data-display/BarList/BarList.types.ts +0 -69
- package/src/components/data-display/BarList/BarList.variants.ts +0 -63
- package/src/components/data-display/BarList/index.ts +0 -2
- package/src/components/data-display/CLAUDE.md +0 -90
- package/src/components/data-display/Callout/Callout.test.tsx +0 -516
- package/src/components/data-display/Callout/Callout.tsx +0 -112
- package/src/components/data-display/Callout/Callout.types.ts +0 -37
- package/src/components/data-display/Callout/Callout.variants.ts +0 -48
- package/src/components/data-display/Callout/README.md +0 -341
- package/src/components/data-display/Callout/index.ts +0 -2
- package/src/components/data-display/Carousel/Carousel.test.tsx +0 -386
- package/src/components/data-display/Carousel/Carousel.tsx +0 -241
- package/src/components/data-display/Carousel/Carousel.types.ts +0 -20
- package/src/components/data-display/Carousel/Carousel.variants.ts +0 -125
- package/src/components/data-display/Carousel/README.md +0 -711
- package/src/components/data-display/Carousel/index.ts +0 -1
- package/src/components/data-display/CategoryBar/CategoryBar.tsx +0 -220
- package/src/components/data-display/CategoryBar/CategoryBar.types.ts +0 -80
- package/src/components/data-display/CategoryBar/CategoryBar.variants.ts +0 -85
- package/src/components/data-display/CategoryBar/index.ts +0 -2
- package/src/components/data-display/Chart/Chart.test.tsx +0 -432
- package/src/components/data-display/Chart/Chart.tsx +0 -476
- package/src/components/data-display/Chart/Chart.types.ts +0 -24
- package/src/components/data-display/Chart/Chart.variants.ts +0 -106
- package/src/components/data-display/Chart/README.md +0 -674
- package/src/components/data-display/Chart/index.ts +0 -1
- package/src/components/data-display/ChartCard/ChartCard.test.tsx +0 -327
- package/src/components/data-display/ChartCard/ChartCard.tsx +0 -201
- package/src/components/data-display/ChartCard/ChartCard.types.ts +0 -68
- package/src/components/data-display/ChartCard/ChartCard.variants.ts +0 -63
- package/src/components/data-display/ChartCard/index.ts +0 -17
- package/src/components/data-display/ChartLegend/ChartLegend.test.tsx +0 -165
- package/src/components/data-display/ChartLegend/ChartLegend.types.ts +0 -88
- package/src/components/data-display/ChartLegend/README.md +0 -317
- package/src/components/data-display/ChartLegend/index.ts +0 -22
- package/src/components/data-display/ComboChart/ComboChart.tsx +0 -380
- package/src/components/data-display/ComboChart/ComboChart.types.ts +0 -224
- package/src/components/data-display/ComboChart/index.ts +0 -2
- package/src/components/data-display/DashboardCard/DashboardCard.test.tsx +0 -289
- package/src/components/data-display/DashboardCard/DashboardCard.tsx +0 -285
- package/src/components/data-display/DashboardCard/DashboardCard.types.ts +0 -74
- package/src/components/data-display/DashboardCard/DashboardCard.variants.ts +0 -67
- package/src/components/data-display/DashboardCard/index.ts +0 -25
- package/src/components/data-display/DashboardFilterbar/DashboardFilterbar.tsx +0 -151
- package/src/components/data-display/DashboardFilterbar/DashboardFilterbar.types.ts +0 -39
- package/src/components/data-display/DashboardFilterbar/DashboardFilterbar.variants.ts +0 -30
- package/src/components/data-display/DashboardFilterbar/index.ts +0 -10
- package/src/components/data-display/DataTable/DataTable.test.tsx +0 -654
- package/src/components/data-display/DataTable/DataTable.tsx +0 -529
- package/src/components/data-display/DataTable/DataTable.types.ts +0 -190
- package/src/components/data-display/DataTable/DataTable.variants.ts +0 -79
- package/src/components/data-display/DataTable/README.md +0 -447
- package/src/components/data-display/DataTable/index.ts +0 -2
- package/src/components/data-display/DeltaBar/DeltaBar.tsx +0 -100
- package/src/components/data-display/DeltaBar/DeltaBar.types.ts +0 -57
- package/src/components/data-display/DeltaBar/DeltaBar.variants.ts +0 -40
- package/src/components/data-display/DeltaBar/index.ts +0 -2
- package/src/components/data-display/EmptyState/EmptyState.test.tsx +0 -368
- package/src/components/data-display/EmptyState/EmptyState.tsx +0 -91
- package/src/components/data-display/EmptyState/EmptyState.types.ts +0 -9
- package/src/components/data-display/EmptyState/EmptyState.variants.ts +0 -28
- package/src/components/data-display/EmptyState/README.md +0 -746
- package/src/components/data-display/EmptyState/index.ts +0 -1
- package/src/components/data-display/Feed/Feed.test.tsx +0 -668
- package/src/components/data-display/Feed/Feed.tsx +0 -290
- package/src/components/data-display/Feed/Feed.types.ts +0 -104
- package/src/components/data-display/Feed/Feed.variants.ts +0 -64
- package/src/components/data-display/Feed/README.md +0 -326
- package/src/components/data-display/Feed/index.ts +0 -17
- package/src/components/data-display/FunnelChart/FunnelChart.tsx +0 -177
- package/src/components/data-display/FunnelChart/FunnelChart.types.ts +0 -145
- package/src/components/data-display/FunnelChart/index.ts +0 -2
- package/src/components/data-display/GaugeChart/GaugeChart.test.tsx +0 -129
- package/src/components/data-display/GaugeChart/GaugeChart.tsx +0 -332
- package/src/components/data-display/GaugeChart/GaugeChart.types.ts +0 -53
- package/src/components/data-display/GaugeChart/GaugeChart.variants.ts +0 -56
- package/src/components/data-display/GaugeChart/README.md +0 -305
- package/src/components/data-display/GaugeChart/index.ts +0 -3
- package/src/components/data-display/Heatmap/Heatmap.test.tsx +0 -630
- package/src/components/data-display/Heatmap/Heatmap.tsx +0 -569
- package/src/components/data-display/Heatmap/Heatmap.types.ts +0 -120
- package/src/components/data-display/Heatmap/Heatmap.variants.ts +0 -72
- package/src/components/data-display/Heatmap/README.md +0 -321
- package/src/components/data-display/Heatmap/index.ts +0 -2
- package/src/components/data-display/HoverCard/HoverCard.test.tsx +0 -314
- package/src/components/data-display/HoverCard/HoverCard.tsx +0 -40
- package/src/components/data-display/HoverCard/HoverCard.types.ts +0 -21
- package/src/components/data-display/HoverCard/HoverCard.variants.ts +0 -29
- package/src/components/data-display/HoverCard/README.md +0 -624
- package/src/components/data-display/HoverCard/index.ts +0 -1
- package/src/components/data-display/ImageGallery/ImageGallery.test.tsx +0 -519
- package/src/components/data-display/ImageGallery/ImageGallery.tsx +0 -733
- package/src/components/data-display/ImageGallery/ImageGallery.types.ts +0 -109
- package/src/components/data-display/ImageGallery/ImageGallery.variants.ts +0 -58
- package/src/components/data-display/ImageGallery/README.md +0 -352
- package/src/components/data-display/ImageGallery/index.ts +0 -9
- package/src/components/data-display/Item/Item.test.tsx +0 -476
- package/src/components/data-display/Item/Item.tsx +0 -195
- package/src/components/data-display/Item/Item.types.ts +0 -23
- package/src/components/data-display/Item/Item.variants.ts +0 -51
- package/src/components/data-display/Item/README.md +0 -759
- package/src/components/data-display/Item/index.ts +0 -1
- package/src/components/data-display/KPICard/KPICard.test.tsx +0 -445
- package/src/components/data-display/KPICard/KPICard.tsx +0 -203
- package/src/components/data-display/KPICard/KPICard.types.ts +0 -32
- package/src/components/data-display/KPICard/KPICard.variants.ts +0 -64
- package/src/components/data-display/KPICard/README.md +0 -380
- package/src/components/data-display/KPICard/index.ts +0 -7
- package/src/components/data-display/Lightbox/Lightbox.test.tsx +0 -574
- package/src/components/data-display/Lightbox/Lightbox.tsx +0 -466
- package/src/components/data-display/Lightbox/Lightbox.types.ts +0 -53
- package/src/components/data-display/Lightbox/Lightbox.variants.ts +0 -99
- package/src/components/data-display/Lightbox/README.md +0 -397
- package/src/components/data-display/Lightbox/index.ts +0 -2
- package/src/components/data-display/LineChart/LineChart.test.tsx +0 -654
- package/src/components/data-display/LineChart/LineChart.tsx +0 -295
- package/src/components/data-display/LineChart/LineChart.types.ts +0 -168
- package/src/components/data-display/LineChart/LineChart.variants.ts +0 -52
- package/src/components/data-display/LineChart/README.md +0 -242
- package/src/components/data-display/LineChart/index.ts +0 -8
- package/src/components/data-display/List/List.test.tsx +0 -756
- package/src/components/data-display/List/List.tsx +0 -455
- package/src/components/data-display/List/List.types.ts +0 -67
- package/src/components/data-display/List/List.variants.ts +0 -69
- package/src/components/data-display/List/README.md +0 -374
- package/src/components/data-display/List/index.ts +0 -9
- package/src/components/data-display/MarkerBar/MarkerBar.tsx +0 -130
- package/src/components/data-display/MarkerBar/MarkerBar.types.ts +0 -67
- package/src/components/data-display/MarkerBar/MarkerBar.variants.ts +0 -75
- package/src/components/data-display/MarkerBar/index.ts +0 -3
- package/src/components/data-display/PieChart/PieChart.test.tsx +0 -655
- package/src/components/data-display/PieChart/PieChart.tsx +0 -327
- package/src/components/data-display/PieChart/PieChart.types.ts +0 -134
- package/src/components/data-display/PieChart/PieChart.variants.ts +0 -49
- package/src/components/data-display/PieChart/README.md +0 -261
- package/src/components/data-display/PieChart/index.ts +0 -2
- package/src/components/data-display/ScatterChart/ScatterChart.tsx +0 -310
- package/src/components/data-display/ScatterChart/ScatterChart.types.ts +0 -272
- package/src/components/data-display/ScatterChart/index.ts +0 -2
- package/src/components/data-display/SingleStat/README.md +0 -363
- package/src/components/data-display/SingleStat/SingleStat.test.tsx +0 -223
- package/src/components/data-display/SingleStat/SingleStat.tsx +0 -251
- package/src/components/data-display/SingleStat/SingleStat.types.ts +0 -71
- package/src/components/data-display/SingleStat/SingleStat.variants.ts +0 -51
- package/src/components/data-display/SingleStat/index.ts +0 -6
- package/src/components/data-display/Sparkline/README.md +0 -321
- package/src/components/data-display/Sparkline/Sparkline.test.tsx +0 -276
- package/src/components/data-display/Sparkline/Sparkline.tsx +0 -971
- package/src/components/data-display/Sparkline/Sparkline.types.ts +0 -147
- package/src/components/data-display/Sparkline/Sparkline.variants.ts +0 -52
- package/src/components/data-display/Sparkline/index.ts +0 -9
- package/src/components/data-display/Table/README.md +0 -821
- package/src/components/data-display/Table/Table.test.tsx +0 -732
- package/src/components/data-display/Table/Table.tsx +0 -123
- package/src/components/data-display/Table/Table.types.ts +0 -20
- package/src/components/data-display/Table/Table.variants.ts +0 -123
- package/src/components/data-display/Table/index.ts +0 -1
- package/src/components/data-display/Timeline/README.md +0 -366
- package/src/components/data-display/Timeline/Timeline.test.tsx +0 -701
- package/src/components/data-display/Timeline/Timeline.tsx +0 -328
- package/src/components/data-display/Timeline/Timeline.types.ts +0 -59
- package/src/components/data-display/Timeline/Timeline.variants.ts +0 -152
- package/src/components/data-display/Timeline/index.ts +0 -15
- package/src/components/data-display/Tracker/Tracker.tsx +0 -105
- package/src/components/data-display/Tracker/Tracker.types.ts +0 -45
- package/src/components/data-display/Tracker/Tracker.variants.ts +0 -24
- package/src/components/data-display/Tracker/index.ts +0 -2
- package/src/components/data-display/VirtualTable/README.md +0 -383
- package/src/components/data-display/VirtualTable/VirtualTable.test.tsx +0 -295
- package/src/components/data-display/VirtualTable/VirtualTable.tsx +0 -354
- package/src/components/data-display/VirtualTable/VirtualTable.types.ts +0 -62
- package/src/components/data-display/VirtualTable/VirtualTable.variants.ts +0 -61
- package/src/components/data-display/VirtualTable/index.ts +0 -2
- package/src/components/data-display/index.ts +0 -35
- package/src/components/feedback/Alert/Alert.test.tsx +0 -614
- package/src/components/feedback/Alert/Alert.tsx +0 -48
- package/src/components/feedback/Alert/Alert.types.ts +0 -42
- package/src/components/feedback/Alert/Alert.variants.ts +0 -20
- package/src/components/feedback/Alert/README.md +0 -522
- package/src/components/feedback/Alert/index.ts +0 -3
- package/src/components/feedback/AlertDialog/AlertDialog.test.tsx +0 -1237
- package/src/components/feedback/AlertDialog/AlertDialog.tsx +0 -160
- package/src/components/feedback/AlertDialog/AlertDialog.types.ts +0 -139
- package/src/components/feedback/AlertDialog/README.md +0 -723
- package/src/components/feedback/AlertDialog/index.ts +0 -2
- package/src/components/feedback/CLAUDE.md +0 -87
- package/src/components/feedback/ConfirmModal/ConfirmModal.test.tsx +0 -404
- package/src/components/feedback/ConfirmModal/ConfirmModal.tsx +0 -139
- package/src/components/feedback/ConfirmModal/ConfirmModal.types.ts +0 -117
- package/src/components/feedback/ConfirmModal/README.md +0 -546
- package/src/components/feedback/ConfirmModal/index.ts +0 -2
- package/src/components/feedback/Dialog/Dialog.test.tsx +0 -1070
- package/src/components/feedback/Dialog/Dialog.tsx +0 -137
- package/src/components/feedback/Dialog/Dialog.types.ts +0 -119
- package/src/components/feedback/Dialog/README.md +0 -770
- package/src/components/feedback/Dialog/index.ts +0 -2
- package/src/components/feedback/ErrorPage/ErrorPage.test.tsx +0 -338
- package/src/components/feedback/ErrorPage/ErrorPage.tsx +0 -232
- package/src/components/feedback/ErrorPage/ErrorPage.types.ts +0 -95
- package/src/components/feedback/ErrorPage/README.md +0 -573
- package/src/components/feedback/ErrorPage/index.ts +0 -6
- package/src/components/feedback/FocusTrap/FocusTrap.test.tsx +0 -378
- package/src/components/feedback/FocusTrap/FocusTrap.tsx +0 -115
- package/src/components/feedback/FocusTrap/FocusTrap.types.ts +0 -119
- package/src/components/feedback/FocusTrap/README.md +0 -571
- package/src/components/feedback/FocusTrap/index.ts +0 -2
- package/src/components/feedback/Message/Message.test.tsx +0 -143
- package/src/components/feedback/Message/Message.tsx +0 -66
- package/src/components/feedback/Message/Message.types.ts +0 -44
- package/src/components/feedback/Message/Message.variants.ts +0 -24
- package/src/components/feedback/Message/README.md +0 -522
- package/src/components/feedback/Message/index.ts +0 -2
- package/src/components/feedback/Modal/Modal.test.tsx +0 -475
- package/src/components/feedback/Modal/Modal.tsx +0 -168
- package/src/components/feedback/Modal/Modal.types.ts +0 -91
- package/src/components/feedback/Modal/README.md +0 -517
- package/src/components/feedback/Modal/index.ts +0 -2
- package/src/components/feedback/Notification/Notification.test.tsx +0 -908
- package/src/components/feedback/Notification/Notification.tsx +0 -222
- package/src/components/feedback/Notification/Notification.types.ts +0 -90
- package/src/components/feedback/Notification/Notification.variants.ts +0 -54
- package/src/components/feedback/Notification/README.md +0 -602
- package/src/components/feedback/Notification/index.ts +0 -11
- package/src/components/feedback/Popover/Popover.test.tsx +0 -901
- package/src/components/feedback/Popover/Popover.tsx +0 -60
- package/src/components/feedback/Popover/Popover.types.ts +0 -158
- package/src/components/feedback/Popover/Popover.variants.ts +0 -27
- package/src/components/feedback/Popover/README.md +0 -700
- package/src/components/feedback/Popover/index.ts +0 -2
- package/src/components/feedback/Toast/README.md +0 -613
- package/src/components/feedback/Toast/Toast.test.tsx +0 -1116
- package/src/components/feedback/Toast/Toast.tsx +0 -44
- package/src/components/feedback/Toast/Toast.types.ts +0 -156
- package/src/components/feedback/Toast/index.ts +0 -1
- package/src/components/feedback/Tooltip/README.md +0 -671
- package/src/components/feedback/Tooltip/Tooltip.test.tsx +0 -413
- package/src/components/feedback/Tooltip/Tooltip.tsx +0 -110
- package/src/components/feedback/Tooltip/Tooltip.types.ts +0 -138
- package/src/components/feedback/Tooltip/Tooltip.variants.ts +0 -54
- package/src/components/feedback/Tooltip/index.ts +0 -3
- package/src/components/feedback/index.ts +0 -13
- package/src/components/forms/Autocomplete/Autocomplete.test.tsx +0 -2351
- package/src/components/forms/Autocomplete/Autocomplete.tsx +0 -696
- package/src/components/forms/Autocomplete/Autocomplete.types.ts +0 -211
- package/src/components/forms/Autocomplete/Autocomplete.variants.ts +0 -154
- package/src/components/forms/Autocomplete/README.md +0 -919
- package/src/components/forms/Autocomplete/index.ts +0 -7
- package/src/components/forms/CLAUDE.md +0 -124
- package/src/components/forms/Checkbox/Checkbox.test.tsx +0 -475
- package/src/components/forms/Checkbox/Checkbox.tsx +0 -35
- package/src/components/forms/Checkbox/Checkbox.types.ts +0 -24
- package/src/components/forms/Checkbox/Checkbox.variants.ts +0 -46
- package/src/components/forms/Checkbox/README.md +0 -861
- package/src/components/forms/Checkbox/index.ts +0 -3
- package/src/components/forms/CheckboxGroup/CheckboxGroup.test.tsx +0 -338
- package/src/components/forms/CheckboxGroup/CheckboxGroup.tsx +0 -212
- package/src/components/forms/CheckboxGroup/CheckboxGroup.types.ts +0 -150
- package/src/components/forms/CheckboxGroup/CheckboxGroup.variants.ts +0 -85
- package/src/components/forms/CheckboxGroup/README.md +0 -124
- package/src/components/forms/CheckboxGroup/index.ts +0 -21
- package/src/components/forms/ColorPicker/ColorPicker.test.tsx +0 -916
- package/src/components/forms/ColorPicker/ColorPicker.tsx +0 -282
- package/src/components/forms/ColorPicker/ColorPicker.types.ts +0 -99
- package/src/components/forms/ColorPicker/ColorPicker.variants.ts +0 -84
- package/src/components/forms/ColorPicker/README.md +0 -809
- package/src/components/forms/ColorPicker/index.ts +0 -14
- package/src/components/forms/Combobox/Combobox.test.tsx +0 -975
- package/src/components/forms/Combobox/Combobox.tsx +0 -194
- package/src/components/forms/Combobox/Combobox.types.ts +0 -113
- package/src/components/forms/Combobox/Combobox.variants.ts +0 -108
- package/src/components/forms/Combobox/README.md +0 -923
- package/src/components/forms/Combobox/index.ts +0 -7
- package/src/components/forms/DatePicker/DatePicker.test.tsx +0 -1181
- package/src/components/forms/DatePicker/DatePicker.tsx +0 -503
- package/src/components/forms/DatePicker/DatePicker.types.ts +0 -196
- package/src/components/forms/DatePicker/DatePicker.variants.ts +0 -38
- package/src/components/forms/DatePicker/README.md +0 -821
- package/src/components/forms/DatePicker/index.ts +0 -8
- package/src/components/forms/DateRangePicker/DateRangeInput.tsx +0 -139
- package/src/components/forms/DateRangePicker/DateRangePicker.test.tsx +0 -1684
- package/src/components/forms/DateRangePicker/DateRangePicker.tsx +0 -375
- package/src/components/forms/DateRangePicker/DateRangePicker.types.ts +0 -145
- package/src/components/forms/DateRangePicker/DateRangePicker.variants.ts +0 -133
- package/src/components/forms/DateRangePicker/DateRangePresets.tsx +0 -44
- package/src/components/forms/DateRangePicker/index.ts +0 -25
- package/src/components/forms/DateRangePicker/presets.ts +0 -104
- package/src/components/forms/EmailInput/EmailInput.test.tsx +0 -562
- package/src/components/forms/EmailInput/EmailInput.tsx +0 -59
- package/src/components/forms/EmailInput/EmailInput.types.ts +0 -46
- package/src/components/forms/EmailInput/EmailInput.variants.ts +0 -30
- package/src/components/forms/EmailInput/README.md +0 -708
- package/src/components/forms/EmailInput/index.ts +0 -6
- package/src/components/forms/ErrorMessage/ErrorMessage.test.tsx +0 -457
- package/src/components/forms/ErrorMessage/ErrorMessage.tsx +0 -128
- package/src/components/forms/ErrorMessage/ErrorMessage.types.ts +0 -54
- package/src/components/forms/ErrorMessage/ErrorMessage.variants.ts +0 -78
- package/src/components/forms/ErrorMessage/README.md +0 -855
- package/src/components/forms/ErrorMessage/index.ts +0 -4
- package/src/components/forms/Field/Field.test.tsx +0 -811
- package/src/components/forms/Field/Field.tsx +0 -195
- package/src/components/forms/Field/Field.types.ts +0 -94
- package/src/components/forms/Field/Field.variants.ts +0 -114
- package/src/components/forms/Field/README.md +0 -931
- package/src/components/forms/Field/index.ts +0 -3
- package/src/components/forms/FloatLabel/FloatLabel.test.tsx +0 -248
- package/src/components/forms/FloatLabel/FloatLabel.tsx +0 -110
- package/src/components/forms/FloatLabel/FloatLabel.types.ts +0 -37
- package/src/components/forms/FloatLabel/index.ts +0 -2
- package/src/components/forms/Form/Form.test.tsx +0 -1167
- package/src/components/forms/Form/Form.tsx +0 -170
- package/src/components/forms/Form/Form.types.ts +0 -126
- package/src/components/forms/Form/Form.variants.ts +0 -81
- package/src/components/forms/Form/README.md +0 -787
- package/src/components/forms/Form/index.ts +0 -3
- package/src/components/forms/FormValidation/FormValidation.test.tsx +0 -376
- package/src/components/forms/FormValidation/FormValidation.tsx +0 -99
- package/src/components/forms/FormValidation/FormValidation.types.ts +0 -37
- package/src/components/forms/FormValidation/FormValidation.variants.ts +0 -24
- package/src/components/forms/FormValidation/README.md +0 -592
- package/src/components/forms/FormValidation/index.ts +0 -4
- package/src/components/forms/HelpText/HelpText.test.tsx +0 -558
- package/src/components/forms/HelpText/HelpText.tsx +0 -111
- package/src/components/forms/HelpText/HelpText.types.ts +0 -51
- package/src/components/forms/HelpText/HelpText.variants.ts +0 -54
- package/src/components/forms/HelpText/README.md +0 -739
- package/src/components/forms/HelpText/index.ts +0 -4
- package/src/components/forms/IftaLabel/IftaLabel.test.tsx +0 -193
- package/src/components/forms/IftaLabel/IftaLabel.tsx +0 -72
- package/src/components/forms/IftaLabel/IftaLabel.types.ts +0 -18
- package/src/components/forms/IftaLabel/index.ts +0 -2
- package/src/components/forms/InputGroup/InputGroup.test.tsx +0 -782
- package/src/components/forms/InputGroup/InputGroup.tsx +0 -128
- package/src/components/forms/InputGroup/InputGroup.types.ts +0 -66
- package/src/components/forms/InputGroup/InputGroup.variants.ts +0 -102
- package/src/components/forms/InputGroup/README.md +0 -845
- package/src/components/forms/InputGroup/index.ts +0 -24
- package/src/components/forms/InputOTP/InputOTP.test.tsx +0 -793
- package/src/components/forms/InputOTP/InputOTP.tsx +0 -90
- package/src/components/forms/InputOTP/InputOTP.types.ts +0 -74
- package/src/components/forms/InputOTP/InputOTP.variants.ts +0 -64
- package/src/components/forms/InputOTP/README.md +0 -1149
- package/src/components/forms/InputOTP/index.ts +0 -18
- package/src/components/forms/InputOTPField/InputOTPField.test.tsx +0 -220
- package/src/components/forms/InputOTPField/InputOTPField.tsx +0 -148
- package/src/components/forms/InputOTPField/InputOTPField.types.ts +0 -91
- package/src/components/forms/InputOTPField/InputOTPField.variants.ts +0 -83
- package/src/components/forms/InputOTPField/README.md +0 -195
- package/src/components/forms/InputOTPField/index.ts +0 -12
- package/src/components/forms/MultiSelect/MultiSelect.test.tsx +0 -1036
- package/src/components/forms/MultiSelect/MultiSelect.tsx +0 -291
- package/src/components/forms/MultiSelect/MultiSelect.types.ts +0 -147
- package/src/components/forms/MultiSelect/MultiSelect.variants.ts +0 -132
- package/src/components/forms/MultiSelect/README.md +0 -897
- package/src/components/forms/MultiSelect/index.ts +0 -7
- package/src/components/forms/NativeSelect/NativeSelect.test.tsx +0 -856
- package/src/components/forms/NativeSelect/NativeSelect.tsx +0 -75
- package/src/components/forms/NativeSelect/NativeSelect.types.ts +0 -17
- package/src/components/forms/NativeSelect/NativeSelect.variants.ts +0 -106
- package/src/components/forms/NativeSelect/README.md +0 -1033
- package/src/components/forms/NativeSelect/index.ts +0 -3
- package/src/components/forms/NumberInput/NumberInput.test.tsx +0 -636
- package/src/components/forms/NumberInput/NumberInput.tsx +0 -131
- package/src/components/forms/NumberInput/NumberInput.types.ts +0 -45
- package/src/components/forms/NumberInput/NumberInput.variants.ts +0 -85
- package/src/components/forms/NumberInput/README.md +0 -766
- package/src/components/forms/NumberInput/index.ts +0 -9
- package/src/components/forms/PasswordInput/PasswordInput.test.tsx +0 -525
- package/src/components/forms/PasswordInput/PasswordInput.tsx +0 -67
- package/src/components/forms/PasswordInput/PasswordInput.types.ts +0 -35
- package/src/components/forms/PasswordInput/PasswordInput.variants.ts +0 -34
- package/src/components/forms/PasswordInput/README.md +0 -698
- package/src/components/forms/PasswordInput/index.ts +0 -6
- package/src/components/forms/PaymentInput/PaymentInput.test.tsx +0 -252
- package/src/components/forms/PaymentInput/PaymentInput.tsx +0 -178
- package/src/components/forms/PaymentInput/PaymentInput.types.ts +0 -69
- package/src/components/forms/PaymentInput/PaymentInput.variants.ts +0 -81
- package/src/components/forms/PaymentInput/README.md +0 -263
- package/src/components/forms/PaymentInput/card-utils.ts +0 -219
- package/src/components/forms/PaymentInput/index.ts +0 -23
- package/src/components/forms/PhoneInput/PhoneInput.test.tsx +0 -270
- package/src/components/forms/PhoneInput/PhoneInput.tsx +0 -215
- package/src/components/forms/PhoneInput/PhoneInput.types.ts +0 -74
- package/src/components/forms/PhoneInput/PhoneInput.variants.ts +0 -103
- package/src/components/forms/PhoneInput/README.md +0 -258
- package/src/components/forms/PhoneInput/countries.ts +0 -134
- package/src/components/forms/PhoneInput/index.ts +0 -22
- package/src/components/forms/RadioButton/README.md +0 -832
- package/src/components/forms/RadioButton/RadioButton.test.tsx +0 -583
- package/src/components/forms/RadioButton/RadioButton.tsx +0 -82
- package/src/components/forms/RadioButton/RadioButton.types.ts +0 -23
- package/src/components/forms/RadioButton/RadioButton.variants.ts +0 -80
- package/src/components/forms/RadioButton/index.ts +0 -15
- package/src/components/forms/RadioCardGroup/RadioCardGroup.tsx +0 -130
- package/src/components/forms/RadioCardGroup/RadioCardGroup.types.ts +0 -66
- package/src/components/forms/RadioCardGroup/RadioCardGroup.variants.ts +0 -131
- package/src/components/forms/RadioCardGroup/index.ts +0 -3
- package/src/components/forms/RadioGroup/README.md +0 -908
- package/src/components/forms/RadioGroup/RadioGroup.test.tsx +0 -764
- package/src/components/forms/RadioGroup/RadioGroup.tsx +0 -75
- package/src/components/forms/RadioGroup/RadioGroup.types.ts +0 -36
- package/src/components/forms/RadioGroup/RadioGroup.variants.ts +0 -58
- package/src/components/forms/RadioGroup/index.ts +0 -15
- package/src/components/forms/Rating/README.md +0 -729
- package/src/components/forms/Rating/Rating.test.tsx +0 -729
- package/src/components/forms/Rating/Rating.tsx +0 -258
- package/src/components/forms/Rating/Rating.types.ts +0 -89
- package/src/components/forms/Rating/Rating.variants.ts +0 -56
- package/src/components/forms/Rating/index.ts +0 -8
- package/src/components/forms/SearchInput/README.md +0 -729
- package/src/components/forms/SearchInput/SearchInput.test.tsx +0 -579
- package/src/components/forms/SearchInput/SearchInput.tsx +0 -103
- package/src/components/forms/SearchInput/SearchInput.types.ts +0 -40
- package/src/components/forms/SearchInput/SearchInput.variants.ts +0 -51
- package/src/components/forms/SearchInput/index.ts +0 -8
- package/src/components/forms/Select/README.md +0 -1286
- package/src/components/forms/Select/Select.test.tsx +0 -1136
- package/src/components/forms/Select/Select.tsx +0 -170
- package/src/components/forms/Select/Select.types.ts +0 -75
- package/src/components/forms/Select/Select.variants.ts +0 -133
- package/src/components/forms/Select/index.ts +0 -3
- package/src/components/forms/Slider/README.md +0 -1246
- package/src/components/forms/Slider/Slider.test.tsx +0 -731
- package/src/components/forms/Slider/Slider.tsx +0 -235
- package/src/components/forms/Slider/Slider.types.ts +0 -90
- package/src/components/forms/Slider/Slider.variants.ts +0 -239
- package/src/components/forms/Slider/index.ts +0 -34
- package/src/components/forms/SuccessMessage/README.md +0 -534
- package/src/components/forms/SuccessMessage/SuccessMessage.test.tsx +0 -257
- package/src/components/forms/SuccessMessage/SuccessMessage.tsx +0 -43
- package/src/components/forms/SuccessMessage/SuccessMessage.types.ts +0 -11
- package/src/components/forms/SuccessMessage/SuccessMessage.variants.ts +0 -15
- package/src/components/forms/SuccessMessage/index.ts +0 -4
- package/src/components/forms/Switch/README.md +0 -785
- package/src/components/forms/Switch/Switch.test.tsx +0 -636
- package/src/components/forms/Switch/Switch.tsx +0 -28
- package/src/components/forms/Switch/Switch.types.ts +0 -24
- package/src/components/forms/Switch/Switch.variants.ts +0 -49
- package/src/components/forms/Switch/index.ts +0 -3
- package/src/components/forms/TagsInput/README.md +0 -216
- package/src/components/forms/TagsInput/TagsInput.test.tsx +0 -308
- package/src/components/forms/TagsInput/TagsInput.tsx +0 -189
- package/src/components/forms/TagsInput/TagsInput.types.ts +0 -85
- package/src/components/forms/TagsInput/TagsInput.variants.ts +0 -58
- package/src/components/forms/TagsInput/index.ts +0 -12
- package/src/components/forms/TextInput/README.md +0 -871
- package/src/components/forms/TextInput/TextInput.test.tsx +0 -484
- package/src/components/forms/TextInput/TextInput.tsx +0 -76
- package/src/components/forms/TextInput/TextInput.types.ts +0 -61
- package/src/components/forms/TextInput/TextInput.variants.ts +0 -117
- package/src/components/forms/TextInput/index.ts +0 -14
- package/src/components/forms/Textarea/README.md +0 -905
- package/src/components/forms/Textarea/Textarea.test.tsx +0 -482
- package/src/components/forms/Textarea/Textarea.tsx +0 -24
- package/src/components/forms/Textarea/Textarea.types.ts +0 -39
- package/src/components/forms/Textarea/Textarea.variants.ts +0 -48
- package/src/components/forms/Textarea/index.ts +0 -3
- package/src/components/forms/TextareaField/README.md +0 -172
- package/src/components/forms/TextareaField/TextareaField.test.tsx +0 -260
- package/src/components/forms/TextareaField/TextareaField.tsx +0 -73
- package/src/components/forms/TextareaField/TextareaField.types.ts +0 -37
- package/src/components/forms/TextareaField/TextareaField.variants.ts +0 -83
- package/src/components/forms/TextareaField/index.ts +0 -12
- package/src/components/forms/TimePicker/README.md +0 -750
- package/src/components/forms/TimePicker/TimePicker.test.tsx +0 -780
- package/src/components/forms/TimePicker/TimePicker.tsx +0 -383
- package/src/components/forms/TimePicker/TimePicker.types.ts +0 -94
- package/src/components/forms/TimePicker/TimePicker.variants.ts +0 -83
- package/src/components/forms/TimePicker/index.ts +0 -14
- package/src/components/forms/ToggleGroup/README.md +0 -870
- package/src/components/forms/ToggleGroup/ToggleGroup.test.tsx +0 -941
- package/src/components/forms/ToggleGroup/ToggleGroup.tsx +0 -5
- package/src/components/forms/ToggleGroup/ToggleGroup.types.ts +0 -17
- package/src/components/forms/ToggleGroup/ToggleGroup.variants.ts +0 -42
- package/src/components/forms/ToggleGroup/index.ts +0 -9
- package/src/components/forms/URLInput/README.md +0 -701
- package/src/components/forms/URLInput/URLInput.test.tsx +0 -602
- package/src/components/forms/URLInput/URLInput.tsx +0 -71
- package/src/components/forms/URLInput/URLInput.types.ts +0 -51
- package/src/components/forms/URLInput/URLInput.variants.ts +0 -52
- package/src/components/forms/URLInput/index.ts +0 -8
- package/src/components/forms/index.ts +0 -44
- package/src/components/index.ts +0 -26
- package/src/components/layout/AppContent/AppContent.test.tsx +0 -34
- package/src/components/layout/AppContent/AppContent.tsx +0 -23
- package/src/components/layout/AppContent/AppContent.variants.ts +0 -23
- package/src/components/layout/AppContent/index.ts +0 -2
- package/src/components/layout/AppHeader/AppHeader.test.tsx +0 -26
- package/src/components/layout/AppHeader/AppHeader.tsx +0 -17
- package/src/components/layout/AppHeader/AppHeader.variants.ts +0 -21
- package/src/components/layout/AppHeader/AppHeaderActions.tsx +0 -13
- package/src/components/layout/AppHeader/AppHeaderNav.tsx +0 -13
- package/src/components/layout/AppHeader/AppHeaderTitle.tsx +0 -13
- package/src/components/layout/AppHeader/index.ts +0 -5
- package/src/components/layout/AppRail/AppRail.test.tsx +0 -50
- package/src/components/layout/AppRail/AppRail.tsx +0 -24
- package/src/components/layout/AppRail/AppRail.variants.ts +0 -31
- package/src/components/layout/AppRail/AppRailFooter.tsx +0 -13
- package/src/components/layout/AppRail/AppRailGroup.tsx +0 -13
- package/src/components/layout/AppRail/AppRailHeader.tsx +0 -13
- package/src/components/layout/AppRail/AppRailItem.tsx +0 -57
- package/src/components/layout/AppRail/index.ts +0 -5
- package/src/components/layout/AppShell/AppShell.context.tsx +0 -34
- package/src/components/layout/AppShell/AppShell.test.tsx +0 -61
- package/src/components/layout/AppShell/AppShell.tsx +0 -91
- package/src/components/layout/AppShell/AppShell.variants.ts +0 -21
- package/src/components/layout/AppShell/index.ts +0 -2
- package/src/components/layout/AppSidebar/AppSidebar.test.tsx +0 -69
- package/src/components/layout/AppSidebar/AppSidebar.tsx +0 -58
- package/src/components/layout/AppSidebar/AppSidebar.variants.ts +0 -41
- package/src/components/layout/AppSidebar/AppSidebarContent.tsx +0 -18
- package/src/components/layout/AppSidebar/AppSidebarFooter.tsx +0 -13
- package/src/components/layout/AppSidebar/AppSidebarGroup.tsx +0 -22
- package/src/components/layout/AppSidebar/AppSidebarHeader.tsx +0 -13
- package/src/components/layout/AppSidebar/AppSidebarItem.tsx +0 -54
- package/src/components/layout/AppSidebar/AppSidebarTrigger.tsx +0 -25
- package/src/components/layout/AppSidebar/index.ts +0 -7
- package/src/components/layout/CLAUDE.md +0 -112
- package/src/components/layout/Card/Card.test.tsx +0 -339
- package/src/components/layout/Card/Card.tsx +0 -102
- package/src/components/layout/Card/Card.types.ts +0 -52
- package/src/components/layout/Card/Card.variants.ts +0 -85
- package/src/components/layout/Card/README.md +0 -994
- package/src/components/layout/Card/index.ts +0 -3
- package/src/components/layout/Collapsible/Collapsible.test.tsx +0 -491
- package/src/components/layout/Collapsible/Collapsible.tsx +0 -50
- package/src/components/layout/Collapsible/Collapsible.types.ts +0 -26
- package/src/components/layout/Collapsible/Collapsible.variants.ts +0 -52
- package/src/components/layout/Collapsible/README.md +0 -885
- package/src/components/layout/Collapsible/index.ts +0 -3
- package/src/components/layout/Container/Container.test.tsx +0 -283
- package/src/components/layout/Container/Container.tsx +0 -25
- package/src/components/layout/Container/Container.types.ts +0 -36
- package/src/components/layout/Container/Container.variants.ts +0 -59
- package/src/components/layout/Container/README.md +0 -700
- package/src/components/layout/Container/index.ts +0 -3
- package/src/components/layout/Flex/Flex.test.tsx +0 -545
- package/src/components/layout/Flex/Flex.tsx +0 -52
- package/src/components/layout/Flex/Flex.types.ts +0 -61
- package/src/components/layout/Flex/Flex.variants.ts +0 -98
- package/src/components/layout/Flex/README.md +0 -812
- package/src/components/layout/Flex/index.ts +0 -3
- package/src/components/layout/Grid/Grid.test.tsx +0 -601
- package/src/components/layout/Grid/Grid.tsx +0 -61
- package/src/components/layout/Grid/Grid.types.ts +0 -47
- package/src/components/layout/Grid/Grid.variants.ts +0 -100
- package/src/components/layout/Grid/README.md +0 -762
- package/src/components/layout/Grid/index.ts +0 -3
- package/src/components/layout/PageContent/PageContent.tsx +0 -13
- package/src/components/layout/PageContent/index.ts +0 -1
- package/src/components/layout/PageHeader/PageHeader.tsx +0 -43
- package/src/components/layout/PageHeader/index.ts +0 -1
- package/src/components/layout/PageSection/PageSection.tsx +0 -28
- package/src/components/layout/PageSection/index.ts +0 -1
- package/src/components/layout/Panel/Panel.test.tsx +0 -427
- package/src/components/layout/Panel/Panel.tsx +0 -75
- package/src/components/layout/Panel/Panel.types.ts +0 -59
- package/src/components/layout/Panel/Panel.variants.ts +0 -94
- package/src/components/layout/Panel/README.md +0 -861
- package/src/components/layout/Panel/index.ts +0 -3
- package/src/components/layout/ResizablePanels/README.md +0 -369
- package/src/components/layout/ResizablePanels/ResizablePanels.test.tsx +0 -506
- package/src/components/layout/ResizablePanels/ResizablePanels.tsx +0 -64
- package/src/components/layout/ResizablePanels/ResizablePanels.types.ts +0 -41
- package/src/components/layout/ResizablePanels/ResizablePanels.variants.ts +0 -67
- package/src/components/layout/ResizablePanels/index.ts +0 -3
- package/src/components/layout/ResponsiveContainer/README.md +0 -267
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.test.tsx +0 -386
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.tsx +0 -54
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.types.ts +0 -43
- package/src/components/layout/ResponsiveContainer/ResponsiveContainer.variants.ts +0 -106
- package/src/components/layout/ResponsiveContainer/index.ts +0 -3
- package/src/components/layout/ScrollArea/README.md +0 -278
- package/src/components/layout/ScrollArea/ScrollArea.test.tsx +0 -352
- package/src/components/layout/ScrollArea/ScrollArea.tsx +0 -61
- package/src/components/layout/ScrollArea/ScrollArea.types.ts +0 -36
- package/src/components/layout/ScrollArea/ScrollArea.variants.ts +0 -85
- package/src/components/layout/ScrollArea/index.ts +0 -3
- package/src/components/layout/Section/README.md +0 -315
- package/src/components/layout/Section/Section.test.tsx +0 -293
- package/src/components/layout/Section/Section.tsx +0 -60
- package/src/components/layout/Section/Section.types.ts +0 -38
- package/src/components/layout/Section/Section.variants.ts +0 -45
- package/src/components/layout/Section/index.ts +0 -3
- package/src/components/layout/Sheet/README.md +0 -533
- package/src/components/layout/Sheet/Sheet.test.tsx +0 -702
- package/src/components/layout/Sheet/Sheet.tsx +0 -142
- package/src/components/layout/Sheet/Sheet.types.ts +0 -92
- package/src/components/layout/Sheet/Sheet.variants.ts +0 -98
- package/src/components/layout/Sheet/index.ts +0 -3
- package/src/components/layout/Stack/README.md +0 -346
- package/src/components/layout/Stack/Stack.test.tsx +0 -492
- package/src/components/layout/Stack/Stack.tsx +0 -58
- package/src/components/layout/Stack/Stack.types.ts +0 -58
- package/src/components/layout/Stack/Stack.variants.ts +0 -77
- package/src/components/layout/Stack/index.ts +0 -3
- package/src/components/layout/index.ts +0 -21
- package/src/components/navigation/Breadcrumb/Breadcrumb.test.tsx +0 -875
- package/src/components/navigation/Breadcrumb/Breadcrumb.tsx +0 -183
- package/src/components/navigation/Breadcrumb/Breadcrumb.types.ts +0 -49
- package/src/components/navigation/Breadcrumb/Breadcrumb.variants.ts +0 -63
- package/src/components/navigation/Breadcrumb/README.md +0 -608
- package/src/components/navigation/Breadcrumb/index.ts +0 -24
- package/src/components/navigation/CLAUDE.md +0 -118
- package/src/components/navigation/ContextMenu/ContextMenu.test.tsx +0 -881
- package/src/components/navigation/ContextMenu/ContextMenu.tsx +0 -304
- package/src/components/navigation/ContextMenu/ContextMenu.types.ts +0 -119
- package/src/components/navigation/ContextMenu/ContextMenu.variants.ts +0 -167
- package/src/components/navigation/ContextMenu/README.md +0 -660
- package/src/components/navigation/ContextMenu/index.ts +0 -34
- package/src/components/navigation/Drawer/Drawer.test.tsx +0 -721
- package/src/components/navigation/Drawer/Drawer.tsx +0 -178
- package/src/components/navigation/Drawer/Drawer.types.ts +0 -66
- package/src/components/navigation/Drawer/Drawer.variants.ts +0 -121
- package/src/components/navigation/Drawer/README.md +0 -723
- package/src/components/navigation/Drawer/index.ts +0 -24
- package/src/components/navigation/DropdownMenu/DropdownMenu.test.tsx +0 -881
- package/src/components/navigation/DropdownMenu/DropdownMenu.tsx +0 -305
- package/src/components/navigation/DropdownMenu/DropdownMenu.types.ts +0 -98
- package/src/components/navigation/DropdownMenu/DropdownMenu.variants.ts +0 -168
- package/src/components/navigation/DropdownMenu/README.md +0 -676
- package/src/components/navigation/DropdownMenu/index.ts +0 -33
- package/src/components/navigation/Header/Header.test.tsx +0 -418
- package/src/components/navigation/Header/Header.tsx +0 -133
- package/src/components/navigation/Header/Header.types.ts +0 -41
- package/src/components/navigation/Header/Header.variants.ts +0 -91
- package/src/components/navigation/Header/README.md +0 -567
- package/src/components/navigation/Header/index.ts +0 -14
- package/src/components/navigation/Menu/Menu.test.tsx +0 -658
- package/src/components/navigation/Menu/Menu.tsx +0 -247
- package/src/components/navigation/Menu/Menu.types.ts +0 -51
- package/src/components/navigation/Menu/Menu.variants.ts +0 -105
- package/src/components/navigation/Menu/README.md +0 -599
- package/src/components/navigation/Menu/index.ts +0 -17
- package/src/components/navigation/Menubar/Menubar.test.tsx +0 -1028
- package/src/components/navigation/Menubar/Menubar.tsx +0 -308
- package/src/components/navigation/Menubar/Menubar.types.ts +0 -104
- package/src/components/navigation/Menubar/Menubar.variants.ts +0 -182
- package/src/components/navigation/Menubar/README.md +0 -641
- package/src/components/navigation/Menubar/index.ts +0 -36
- package/src/components/navigation/MobileSidebar/MobileSidebar.test.tsx +0 -255
- package/src/components/navigation/MobileSidebar/MobileSidebar.tsx +0 -187
- package/src/components/navigation/MobileSidebar/MobileSidebar.types.ts +0 -62
- package/src/components/navigation/MobileSidebar/MobileSidebar.variants.ts +0 -79
- package/src/components/navigation/MobileSidebar/index.ts +0 -17
- package/src/components/navigation/Navbar/Navbar.test.tsx +0 -621
- package/src/components/navigation/Navbar/Navbar.tsx +0 -238
- package/src/components/navigation/Navbar/Navbar.types.ts +0 -69
- package/src/components/navigation/Navbar/Navbar.variants.ts +0 -176
- package/src/components/navigation/Navbar/README.md +0 -670
- package/src/components/navigation/Navbar/index.ts +0 -20
- package/src/components/navigation/NavigationMenu/NavigationMenu.test.tsx +0 -701
- package/src/components/navigation/NavigationMenu/NavigationMenu.tsx +0 -211
- package/src/components/navigation/NavigationMenu/NavigationMenu.types.ts +0 -52
- package/src/components/navigation/NavigationMenu/NavigationMenu.variants.ts +0 -122
- package/src/components/navigation/NavigationMenu/README.md +0 -697
- package/src/components/navigation/NavigationMenu/index.ts +0 -23
- package/src/components/navigation/Pagination/Pagination.test.tsx +0 -619
- package/src/components/navigation/Pagination/Pagination.tsx +0 -185
- package/src/components/navigation/Pagination/Pagination.types.ts +0 -42
- package/src/components/navigation/Pagination/Pagination.variants.ts +0 -36
- package/src/components/navigation/Pagination/README.md +0 -635
- package/src/components/navigation/Pagination/index.ts +0 -17
- package/src/components/navigation/Sidebar/README.md +0 -628
- package/src/components/navigation/Sidebar/Sidebar.test.tsx +0 -1169
- package/src/components/navigation/Sidebar/Sidebar.tsx +0 -761
- package/src/components/navigation/Sidebar/Sidebar.types.ts +0 -168
- package/src/components/navigation/Sidebar/Sidebar.variants.ts +0 -302
- package/src/components/navigation/Sidebar/index.ts +0 -59
- package/src/components/navigation/SkipLinks/README.md +0 -512
- package/src/components/navigation/SkipLinks/SkipLinks.test.tsx +0 -445
- package/src/components/navigation/SkipLinks/SkipLinks.tsx +0 -103
- package/src/components/navigation/SkipLinks/SkipLinks.types.ts +0 -39
- package/src/components/navigation/SkipLinks/SkipLinks.variants.ts +0 -102
- package/src/components/navigation/SkipLinks/index.ts +0 -12
- package/src/components/navigation/TabNavigation/TabNavigation.tsx +0 -196
- package/src/components/navigation/TabNavigation/TabNavigation.types.ts +0 -85
- package/src/components/navigation/TabNavigation/TabNavigation.variants.ts +0 -95
- package/src/components/navigation/TabNavigation/index.ts +0 -10
- package/src/components/navigation/TabPanel/README.md +0 -437
- package/src/components/navigation/TabPanel/TabPanel.test.tsx +0 -566
- package/src/components/navigation/TabPanel/TabPanel.tsx +0 -95
- package/src/components/navigation/TabPanel/TabPanel.types.ts +0 -29
- package/src/components/navigation/TabPanel/TabPanel.variants.ts +0 -61
- package/src/components/navigation/TabPanel/index.ts +0 -13
- package/src/components/navigation/Tabs/README.md +0 -669
- package/src/components/navigation/Tabs/Tabs.test.tsx +0 -500
- package/src/components/navigation/Tabs/Tabs.tsx +0 -112
- package/src/components/navigation/Tabs/Tabs.types.ts +0 -38
- package/src/components/navigation/Tabs/Tabs.variants.ts +0 -80
- package/src/components/navigation/Tabs/index.ts +0 -14
- package/src/components/navigation/Toolbar/README.md +0 -650
- package/src/components/navigation/Toolbar/Toolbar.test.tsx +0 -620
- package/src/components/navigation/Toolbar/Toolbar.tsx +0 -133
- package/src/components/navigation/Toolbar/Toolbar.types.ts +0 -42
- package/src/components/navigation/Toolbar/Toolbar.variants.ts +0 -95
- package/src/components/navigation/Toolbar/index.ts +0 -17
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.test.tsx +0 -257
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.tsx +0 -267
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.types.ts +0 -84
- package/src/components/navigation/UserProfileDropdown/UserProfileDropdown.variants.ts +0 -77
- package/src/components/navigation/UserProfileDropdown/index.ts +0 -17
- package/src/components/navigation/WorkspaceDropdown/WorkspaceDropdown.tsx +0 -190
- package/src/components/navigation/WorkspaceDropdown/WorkspaceDropdown.types.ts +0 -56
- package/src/components/navigation/WorkspaceDropdown/WorkspaceDropdown.variants.ts +0 -82
- package/src/components/navigation/WorkspaceDropdown/index.ts +0 -20
- package/src/components/navigation/index.ts +0 -17
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.test.tsx +0 -240
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.tsx +0 -96
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.types.ts +0 -16
- package/src/components/primitives/ArrowAnimated/ArrowAnimated.variants.ts +0 -43
- package/src/components/primitives/ArrowAnimated/index.ts +0 -9
- package/src/components/primitives/AspectRatio/AspectRatio.test.tsx +0 -306
- package/src/components/primitives/AspectRatio/AspectRatio.tsx +0 -11
- package/src/components/primitives/AspectRatio/AspectRatio.types.ts +0 -57
- package/src/components/primitives/AspectRatio/AspectRatio.variants.ts +0 -110
- package/src/components/primitives/AspectRatio/README.md +0 -914
- package/src/components/primitives/AspectRatio/index.ts +0 -7
- package/src/components/primitives/Avatar/Avatar.test.tsx +0 -1311
- package/src/components/primitives/Avatar/Avatar.tsx +0 -159
- package/src/components/primitives/Avatar/Avatar.types.ts +0 -70
- package/src/components/primitives/Avatar/AvatarAddButton.tsx +0 -59
- package/src/components/primitives/Avatar/AvatarBadge.tsx +0 -84
- package/src/components/primitives/Avatar/AvatarGroup.test.tsx +0 -1377
- package/src/components/primitives/Avatar/AvatarGroup.tsx +0 -101
- package/src/components/primitives/Avatar/AvatarLabelGroup.tsx +0 -154
- package/src/components/primitives/Avatar/AvatarSkeleton.tsx +0 -76
- package/src/components/primitives/Avatar/AvatarStatus.tsx +0 -71
- package/src/components/primitives/Avatar/README.md +0 -1174
- package/src/components/primitives/Avatar/index.ts +0 -8
- package/src/components/primitives/Badge/Badge.test.tsx +0 -1146
- package/src/components/primitives/Badge/Badge.tsx +0 -389
- package/src/components/primitives/Badge/Badge.types.ts +0 -102
- package/src/components/primitives/Badge/README.md +0 -814
- package/src/components/primitives/Badge/index.ts +0 -2
- package/src/components/primitives/Button/Button.test.tsx +0 -626
- package/src/components/primitives/Button/Button.tsx +0 -299
- package/src/components/primitives/Button/Button.types.ts +0 -137
- package/src/components/primitives/Button/README.md +0 -1112
- package/src/components/primitives/Button/index.ts +0 -8
- package/src/components/primitives/ButtonGroup/ButtonGroup.test.tsx +0 -945
- package/src/components/primitives/ButtonGroup/ButtonGroup.tsx +0 -224
- package/src/components/primitives/ButtonGroup/ButtonGroup.types.ts +0 -133
- package/src/components/primitives/ButtonGroup/README.md +0 -945
- package/src/components/primitives/ButtonGroup/index.ts +0 -12
- package/src/components/primitives/CLAUDE.md +0 -108
- package/src/components/primitives/ConfirmButton/ConfirmButton.test.tsx +0 -929
- package/src/components/primitives/ConfirmButton/ConfirmButton.tsx +0 -298
- package/src/components/primitives/ConfirmButton/ConfirmButton.types.ts +0 -116
- package/src/components/primitives/ConfirmButton/README.md +0 -1059
- package/src/components/primitives/ConfirmButton/index.ts +0 -6
- package/src/components/primitives/Divider/Divider.test.tsx +0 -304
- package/src/components/primitives/Divider/Divider.tsx +0 -209
- package/src/components/primitives/Divider/Divider.types.ts +0 -74
- package/src/components/primitives/Divider/README.md +0 -839
- package/src/components/primitives/Divider/index.ts +0 -8
- package/src/components/primitives/Heading/Heading.test.tsx +0 -611
- package/src/components/primitives/Heading/Heading.tsx +0 -120
- package/src/components/primitives/Heading/Heading.types.ts +0 -61
- package/src/components/primitives/Heading/README.md +0 -820
- package/src/components/primitives/Heading/index.ts +0 -2
- package/src/components/primitives/Icon/Icon.test.tsx +0 -466
- package/src/components/primitives/Icon/Icon.tsx +0 -74
- package/src/components/primitives/Icon/Icon.types.ts +0 -61
- package/src/components/primitives/Icon/README.md +0 -759
- package/src/components/primitives/Icon/index.ts +0 -8
- package/src/components/primitives/Image/Image.test.tsx +0 -734
- package/src/components/primitives/Image/Image.tsx +0 -239
- package/src/components/primitives/Image/Image.types.ts +0 -75
- package/src/components/primitives/Image/README.md +0 -863
- package/src/components/primitives/Image/index.ts +0 -8
- package/src/components/primitives/Kbd/Kbd.test.tsx +0 -432
- package/src/components/primitives/Kbd/Kbd.tsx +0 -53
- package/src/components/primitives/Kbd/Kbd.types.ts +0 -55
- package/src/components/primitives/Kbd/Kbd.variants.ts +0 -33
- package/src/components/primitives/Kbd/README.md +0 -659
- package/src/components/primitives/Kbd/index.ts +0 -3
- package/src/components/primitives/Label/Label.test.tsx +0 -311
- package/src/components/primitives/Label/Label.tsx +0 -46
- package/src/components/primitives/Label/Label.types.ts +0 -28
- package/src/components/primitives/Label/README.md +0 -816
- package/src/components/primitives/Label/index.ts +0 -2
- package/src/components/primitives/Link/Link.test.tsx +0 -764
- package/src/components/primitives/Link/Link.tsx +0 -143
- package/src/components/primitives/Link/Link.types.ts +0 -85
- package/src/components/primitives/Link/README.md +0 -954
- package/src/components/primitives/Link/index.ts +0 -8
- package/src/components/primitives/Paragraph/Paragraph.test.tsx +0 -463
- package/src/components/primitives/Paragraph/Paragraph.tsx +0 -119
- package/src/components/primitives/Paragraph/Paragraph.types.ts +0 -81
- package/src/components/primitives/Paragraph/README.md +0 -812
- package/src/components/primitives/Paragraph/index.ts +0 -2
- package/src/components/primitives/ProgressBar/ProgressBar.test.tsx +0 -598
- package/src/components/primitives/ProgressBar/ProgressBar.tsx +0 -268
- package/src/components/primitives/ProgressBar/ProgressBar.types.ts +0 -127
- package/src/components/primitives/ProgressBar/ProgressBar.variants.ts +0 -111
- package/src/components/primitives/ProgressBar/README.md +0 -772
- package/src/components/primitives/ProgressBar/index.ts +0 -3
- package/src/components/primitives/ProgressCircle/ProgressCircle.test.tsx +0 -219
- package/src/components/primitives/ProgressCircle/ProgressCircle.tsx +0 -264
- package/src/components/primitives/ProgressCircle/ProgressCircle.types.ts +0 -152
- package/src/components/primitives/ProgressCircle/ProgressCircle.variants.ts +0 -140
- package/src/components/primitives/ProgressCircle/README.md +0 -763
- package/src/components/primitives/ProgressCircle/index.ts +0 -3
- package/src/components/primitives/SkeletonLoader/README.md +0 -792
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.test.tsx +0 -382
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.tsx +0 -45
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.types.ts +0 -56
- package/src/components/primitives/SkeletonLoader/SkeletonLoader.variants.ts +0 -87
- package/src/components/primitives/SkeletonLoader/index.ts +0 -3
- package/src/components/primitives/Spacer/README.md +0 -804
- package/src/components/primitives/Spacer/Spacer.test.tsx +0 -363
- package/src/components/primitives/Spacer/Spacer.tsx +0 -147
- package/src/components/primitives/Spacer/Spacer.types.ts +0 -72
- package/src/components/primitives/Spacer/index.ts +0 -9
- package/src/components/primitives/Spinner/README.md +0 -767
- package/src/components/primitives/Spinner/Spinner.test.tsx +0 -289
- package/src/components/primitives/Spinner/Spinner.tsx +0 -101
- package/src/components/primitives/Spinner/Spinner.types.ts +0 -62
- package/src/components/primitives/Spinner/Spinner.variants.ts +0 -50
- package/src/components/primitives/Spinner/index.ts +0 -3
- package/src/components/primitives/SplitButton/README.md +0 -1142
- package/src/components/primitives/SplitButton/SplitButton.test.tsx +0 -1020
- package/src/components/primitives/SplitButton/SplitButton.tsx +0 -215
- package/src/components/primitives/SplitButton/SplitButton.types.ts +0 -114
- package/src/components/primitives/SplitButton/index.ts +0 -8
- package/src/components/primitives/StatusIndicator/README.md +0 -730
- package/src/components/primitives/StatusIndicator/StatusIndicator.test.tsx +0 -446
- package/src/components/primitives/StatusIndicator/StatusIndicator.tsx +0 -100
- package/src/components/primitives/StatusIndicator/StatusIndicator.types.ts +0 -39
- package/src/components/primitives/StatusIndicator/index.ts +0 -2
- package/src/components/primitives/Tag/README.md +0 -793
- package/src/components/primitives/Tag/Tag.test.tsx +0 -410
- package/src/components/primitives/Tag/Tag.tsx +0 -302
- package/src/components/primitives/Tag/Tag.types.ts +0 -112
- package/src/components/primitives/Tag/Tag.variants.ts +0 -144
- package/src/components/primitives/Tag/TagGroup.tsx +0 -89
- package/src/components/primitives/Tag/index.ts +0 -15
- package/src/components/primitives/Text/README.md +0 -849
- package/src/components/primitives/Text/Text.test.tsx +0 -371
- package/src/components/primitives/Text/Text.tsx +0 -89
- package/src/components/primitives/Text/Text.types.ts +0 -21
- package/src/components/primitives/Text/index.ts +0 -2
- package/src/components/primitives/Thumbnail/README.md +0 -800
- package/src/components/primitives/Thumbnail/Thumbnail.test.tsx +0 -657
- package/src/components/primitives/Thumbnail/Thumbnail.tsx +0 -141
- package/src/components/primitives/Thumbnail/Thumbnail.types.ts +0 -102
- package/src/components/primitives/Thumbnail/index.ts +0 -9
- package/src/components/primitives/Toggle/README.md +0 -232
- package/src/components/primitives/Toggle/Toggle.test.tsx +0 -630
- package/src/components/primitives/Toggle/Toggle.tsx +0 -174
- package/src/components/primitives/Toggle/Toggle.types.ts +0 -161
- package/src/components/primitives/Toggle/index.ts +0 -2
- package/src/components/primitives/index.ts +0 -26
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.test.tsx +0 -607
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.tsx +0 -522
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.types.ts +0 -233
- package/src/components/workflow/ApprovalFlow/ApprovalFlow.variants.ts +0 -207
- package/src/components/workflow/ApprovalFlow/README.md +0 -450
- package/src/components/workflow/ApprovalFlow/index.ts +0 -38
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.test.tsx +0 -316
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.tsx +0 -342
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.types.ts +0 -68
- package/src/components/workflow/ApprovalStatus/ApprovalStatus.variants.ts +0 -60
- package/src/components/workflow/ApprovalStatus/README.md +0 -359
- package/src/components/workflow/ApprovalStatus/index.ts +0 -7
- package/src/components/workflow/CLAUDE.md +0 -118
- package/src/components/workflow/CommentSystem/CommentSystem.test.tsx +0 -901
- package/src/components/workflow/CommentSystem/CommentSystem.tsx +0 -1014
- package/src/components/workflow/CommentSystem/CommentSystem.types.ts +0 -290
- package/src/components/workflow/CommentSystem/CommentSystem.variants.ts +0 -307
- package/src/components/workflow/CommentSystem/README.md +0 -478
- package/src/components/workflow/CommentSystem/index.ts +0 -37
- package/src/components/workflow/Dashboard/Dashboard.test.tsx +0 -586
- package/src/components/workflow/Dashboard/Dashboard.tsx +0 -447
- package/src/components/workflow/Dashboard/Dashboard.types.ts +0 -232
- package/src/components/workflow/Dashboard/Dashboard.variants.ts +0 -241
- package/src/components/workflow/Dashboard/README.md +0 -445
- package/src/components/workflow/Dashboard/index.ts +0 -39
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.test.tsx +0 -460
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.tsx +0 -944
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.types.ts +0 -389
- package/src/components/workflow/DashboardBuilder/DashboardBuilder.variants.ts +0 -264
- package/src/components/workflow/DashboardBuilder/README.md +0 -489
- package/src/components/workflow/DashboardBuilder/index.ts +0 -61
- package/src/components/workflow/KanbanBoard/KanbanBoard.test.tsx +0 -445
- package/src/components/workflow/KanbanBoard/KanbanBoard.tsx +0 -806
- package/src/components/workflow/KanbanBoard/KanbanBoard.types.ts +0 -183
- package/src/components/workflow/KanbanBoard/KanbanBoard.variants.ts +0 -311
- package/src/components/workflow/KanbanBoard/README.md +0 -495
- package/src/components/workflow/KanbanBoard/index.ts +0 -40
- package/src/components/workflow/ProgressSteps/ProgressSteps.test.tsx +0 -318
- package/src/components/workflow/ProgressSteps/ProgressSteps.tsx +0 -350
- package/src/components/workflow/ProgressSteps/ProgressSteps.types.ts +0 -84
- package/src/components/workflow/ProgressSteps/ProgressSteps.variants.ts +0 -315
- package/src/components/workflow/ProgressSteps/README.md +0 -412
- package/src/components/workflow/ProgressSteps/index.ts +0 -20
- package/src/components/workflow/ReportGenerator/README.md +0 -530
- package/src/components/workflow/ReportGenerator/ReportGenerator.test.tsx +0 -723
- package/src/components/workflow/ReportGenerator/ReportGenerator.tsx +0 -889
- package/src/components/workflow/ReportGenerator/ReportGenerator.types.ts +0 -321
- package/src/components/workflow/ReportGenerator/ReportGenerator.variants.ts +0 -378
- package/src/components/workflow/ReportGenerator/index.ts +0 -44
- package/src/components/workflow/Stepper/README.md +0 -390
- package/src/components/workflow/Stepper/Stepper.test.tsx +0 -376
- package/src/components/workflow/Stepper/Stepper.tsx +0 -301
- package/src/components/workflow/Stepper/Stepper.types.ts +0 -73
- package/src/components/workflow/Stepper/Stepper.variants.ts +0 -194
- package/src/components/workflow/Stepper/index.ts +0 -16
- package/src/components/workflow/TaskCard/README.md +0 -343
- package/src/components/workflow/TaskCard/TaskCard.test.tsx +0 -375
- package/src/components/workflow/TaskCard/TaskCard.tsx +0 -312
- package/src/components/workflow/TaskCard/TaskCard.types.ts +0 -55
- package/src/components/workflow/TaskCard/TaskCard.variants.ts +0 -64
- package/src/components/workflow/TaskCard/index.ts +0 -14
- package/src/components/workflow/TaskList/README.md +0 -317
- package/src/components/workflow/TaskList/TaskList.test.tsx +0 -318
- package/src/components/workflow/TaskList/TaskList.tsx +0 -556
- package/src/components/workflow/TaskList/TaskList.types.ts +0 -78
- package/src/components/workflow/TaskList/TaskList.variants.ts +0 -143
- package/src/components/workflow/TaskList/index.ts +0 -19
- package/src/components/workflow/TaskStatus/README.md +0 -358
- package/src/components/workflow/TaskStatus/TaskStatus.test.tsx +0 -299
- package/src/components/workflow/TaskStatus/TaskStatus.tsx +0 -246
- package/src/components/workflow/TaskStatus/TaskStatus.types.ts +0 -65
- package/src/components/workflow/TaskStatus/TaskStatus.variants.ts +0 -145
- package/src/components/workflow/TaskStatus/index.ts +0 -24
- package/src/components/workflow/Wizard/README.md +0 -440
- package/src/components/workflow/Wizard/Wizard.test.tsx +0 -432
- package/src/components/workflow/Wizard/Wizard.tsx +0 -279
- package/src/components/workflow/Wizard/Wizard.types.ts +0 -61
- package/src/components/workflow/Wizard/Wizard.variants.ts +0 -105
- package/src/components/workflow/Wizard/index.ts +0 -9
- package/src/components/workflow/index.ts +0 -14
- package/src/hooks/index.ts +0 -4
- package/src/hooks/use-media-query.ts +0 -24
- package/src/hooks/use-mobile.ts +0 -30
- package/src/hooks/use-on-window-resize.ts +0 -27
- package/src/index.ts +0 -22
- package/src/lib/chart-colors.ts +0 -195
- package/src/lib/utils.ts +0 -6
- package/src/test/setup.ts +0 -125
- package/src/test/vitest.d.ts +0 -13
|
@@ -1,1116 +0,0 @@
|
|
|
1
|
-
import { act, render, screen, waitFor } from "@testing-library/react"
|
|
2
|
-
import userEvent from "@testing-library/user-event"
|
|
3
|
-
import { axe, toHaveNoViolations } from "jest-axe"
|
|
4
|
-
import { toast } from "sonner"
|
|
5
|
-
import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest"
|
|
6
|
-
|
|
7
|
-
import { Toaster } from "./Toast"
|
|
8
|
-
|
|
9
|
-
expect.extend(toHaveNoViolations)
|
|
10
|
-
|
|
11
|
-
// Mock setPointerCapture and releasePointerCapture as JSDOM doesn't support them
|
|
12
|
-
// These are used by Sonner for swipe-to-dismiss functionality
|
|
13
|
-
beforeAll(() => {
|
|
14
|
-
Element.prototype.setPointerCapture = vi.fn()
|
|
15
|
-
Element.prototype.releasePointerCapture = vi.fn()
|
|
16
|
-
})
|
|
17
|
-
|
|
18
|
-
// ============================================
|
|
19
|
-
// TEST HELPERS
|
|
20
|
-
// ============================================
|
|
21
|
-
function renderToaster(props = {}) {
|
|
22
|
-
return render(<Toaster {...props} />)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// ============================================
|
|
26
|
-
// SETUP AND TEARDOWN
|
|
27
|
-
// ============================================
|
|
28
|
-
describe("Toast", () => {
|
|
29
|
-
beforeEach(() => {
|
|
30
|
-
// Clear all toasts before each test
|
|
31
|
-
toast.dismiss()
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
afterEach(() => {
|
|
35
|
-
// Cleanup after each test
|
|
36
|
-
toast.dismiss()
|
|
37
|
-
})
|
|
38
|
-
|
|
39
|
-
// ============================================
|
|
40
|
-
// TOASTER RENDERING TESTS
|
|
41
|
-
// ============================================
|
|
42
|
-
describe("Toaster Rendering", () => {
|
|
43
|
-
it("renders without crashing", () => {
|
|
44
|
-
const { container } = renderToaster()
|
|
45
|
-
expect(container).toBeInTheDocument()
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
it("renders with custom className", () => {
|
|
49
|
-
renderToaster({ className: "custom-toaster" })
|
|
50
|
-
// The toaster renders a section element
|
|
51
|
-
const toaster = document.querySelector("section")
|
|
52
|
-
expect(toaster).toBeInTheDocument()
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
it("applies theme prop", () => {
|
|
56
|
-
renderToaster({ theme: "light" })
|
|
57
|
-
const toaster = document.querySelector("section")
|
|
58
|
-
expect(toaster).toBeInTheDocument()
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
it("applies position prop", () => {
|
|
62
|
-
renderToaster({ position: "top-center" })
|
|
63
|
-
const toaster = document.querySelector("section")
|
|
64
|
-
expect(toaster).toBeInTheDocument()
|
|
65
|
-
})
|
|
66
|
-
|
|
67
|
-
it("applies richColors prop", () => {
|
|
68
|
-
renderToaster({ richColors: true })
|
|
69
|
-
const toaster = document.querySelector("section")
|
|
70
|
-
expect(toaster).toBeInTheDocument()
|
|
71
|
-
})
|
|
72
|
-
|
|
73
|
-
it("applies closeButton prop", () => {
|
|
74
|
-
renderToaster({ closeButton: true })
|
|
75
|
-
const toaster = document.querySelector("section")
|
|
76
|
-
expect(toaster).toBeInTheDocument()
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
it("applies expand prop", () => {
|
|
80
|
-
renderToaster({ expand: true })
|
|
81
|
-
const toaster = document.querySelector("section")
|
|
82
|
-
expect(toaster).toBeInTheDocument()
|
|
83
|
-
})
|
|
84
|
-
|
|
85
|
-
it("applies duration prop", () => {
|
|
86
|
-
renderToaster({ duration: 5000 })
|
|
87
|
-
const toaster = document.querySelector("section")
|
|
88
|
-
expect(toaster).toBeInTheDocument()
|
|
89
|
-
})
|
|
90
|
-
|
|
91
|
-
it("applies visibleToasts prop", () => {
|
|
92
|
-
renderToaster({ visibleToasts: 5 })
|
|
93
|
-
const toaster = document.querySelector("section")
|
|
94
|
-
expect(toaster).toBeInTheDocument()
|
|
95
|
-
})
|
|
96
|
-
})
|
|
97
|
-
|
|
98
|
-
// ============================================
|
|
99
|
-
// TOAST FUNCTION TESTS
|
|
100
|
-
// ============================================
|
|
101
|
-
describe("Toast Function", () => {
|
|
102
|
-
it("shows default toast when called", async () => {
|
|
103
|
-
renderToaster()
|
|
104
|
-
|
|
105
|
-
act(() => {
|
|
106
|
-
toast("Hello World")
|
|
107
|
-
})
|
|
108
|
-
|
|
109
|
-
await waitFor(() => {
|
|
110
|
-
expect(screen.getByText("Hello World")).toBeInTheDocument()
|
|
111
|
-
})
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
it("shows success toast with icon", async () => {
|
|
115
|
-
renderToaster()
|
|
116
|
-
|
|
117
|
-
act(() => {
|
|
118
|
-
toast.success("Success!")
|
|
119
|
-
})
|
|
120
|
-
|
|
121
|
-
await waitFor(() => {
|
|
122
|
-
expect(screen.getByText("Success!")).toBeInTheDocument()
|
|
123
|
-
})
|
|
124
|
-
})
|
|
125
|
-
|
|
126
|
-
it("shows error toast with icon", async () => {
|
|
127
|
-
renderToaster()
|
|
128
|
-
|
|
129
|
-
act(() => {
|
|
130
|
-
toast.error("Error occurred!")
|
|
131
|
-
})
|
|
132
|
-
|
|
133
|
-
await waitFor(() => {
|
|
134
|
-
expect(screen.getByText("Error occurred!")).toBeInTheDocument()
|
|
135
|
-
})
|
|
136
|
-
})
|
|
137
|
-
|
|
138
|
-
it("shows warning toast with icon", async () => {
|
|
139
|
-
renderToaster()
|
|
140
|
-
|
|
141
|
-
act(() => {
|
|
142
|
-
toast.warning("Warning!")
|
|
143
|
-
})
|
|
144
|
-
|
|
145
|
-
await waitFor(() => {
|
|
146
|
-
expect(screen.getByText("Warning!")).toBeInTheDocument()
|
|
147
|
-
})
|
|
148
|
-
})
|
|
149
|
-
|
|
150
|
-
it("shows info toast with icon", async () => {
|
|
151
|
-
renderToaster()
|
|
152
|
-
|
|
153
|
-
act(() => {
|
|
154
|
-
toast.info("Information")
|
|
155
|
-
})
|
|
156
|
-
|
|
157
|
-
await waitFor(() => {
|
|
158
|
-
expect(screen.getByText("Information")).toBeInTheDocument()
|
|
159
|
-
})
|
|
160
|
-
})
|
|
161
|
-
|
|
162
|
-
it("shows loading toast with spinner", async () => {
|
|
163
|
-
renderToaster()
|
|
164
|
-
|
|
165
|
-
act(() => {
|
|
166
|
-
toast.loading("Loading...")
|
|
167
|
-
})
|
|
168
|
-
|
|
169
|
-
await waitFor(() => {
|
|
170
|
-
expect(screen.getByText("Loading...")).toBeInTheDocument()
|
|
171
|
-
})
|
|
172
|
-
})
|
|
173
|
-
})
|
|
174
|
-
|
|
175
|
-
// ============================================
|
|
176
|
-
// TOAST OPTIONS TESTS
|
|
177
|
-
// ============================================
|
|
178
|
-
describe("Toast Options", () => {
|
|
179
|
-
it("shows description when provided", async () => {
|
|
180
|
-
renderToaster()
|
|
181
|
-
|
|
182
|
-
act(() => {
|
|
183
|
-
toast("Title", { description: "Description text" })
|
|
184
|
-
})
|
|
185
|
-
|
|
186
|
-
await waitFor(() => {
|
|
187
|
-
expect(screen.getByText("Title")).toBeInTheDocument()
|
|
188
|
-
expect(screen.getByText("Description text")).toBeInTheDocument()
|
|
189
|
-
})
|
|
190
|
-
})
|
|
191
|
-
|
|
192
|
-
it("shows action button when provided", async () => {
|
|
193
|
-
renderToaster()
|
|
194
|
-
|
|
195
|
-
act(() => {
|
|
196
|
-
toast("Message", {
|
|
197
|
-
action: { label: "Undo", onClick: vi.fn() },
|
|
198
|
-
})
|
|
199
|
-
})
|
|
200
|
-
|
|
201
|
-
await waitFor(() => {
|
|
202
|
-
expect(screen.getByText("Undo")).toBeInTheDocument()
|
|
203
|
-
})
|
|
204
|
-
})
|
|
205
|
-
|
|
206
|
-
it("calls action onClick when action button is clicked", async () => {
|
|
207
|
-
const user = userEvent.setup()
|
|
208
|
-
const onClick = vi.fn()
|
|
209
|
-
renderToaster()
|
|
210
|
-
|
|
211
|
-
act(() => {
|
|
212
|
-
toast("Message", {
|
|
213
|
-
action: { label: "Undo", onClick },
|
|
214
|
-
})
|
|
215
|
-
})
|
|
216
|
-
|
|
217
|
-
await waitFor(() => {
|
|
218
|
-
expect(screen.getByText("Undo")).toBeInTheDocument()
|
|
219
|
-
})
|
|
220
|
-
|
|
221
|
-
await user.click(screen.getByText("Undo"))
|
|
222
|
-
expect(onClick).toHaveBeenCalled()
|
|
223
|
-
})
|
|
224
|
-
|
|
225
|
-
it("shows cancel button when provided", async () => {
|
|
226
|
-
renderToaster()
|
|
227
|
-
|
|
228
|
-
act(() => {
|
|
229
|
-
toast("Message", {
|
|
230
|
-
cancel: { label: "Cancel", onClick: vi.fn() },
|
|
231
|
-
})
|
|
232
|
-
})
|
|
233
|
-
|
|
234
|
-
await waitFor(() => {
|
|
235
|
-
expect(screen.getByText("Cancel")).toBeInTheDocument()
|
|
236
|
-
})
|
|
237
|
-
})
|
|
238
|
-
|
|
239
|
-
it("calls cancel onClick when cancel button is clicked", async () => {
|
|
240
|
-
const user = userEvent.setup()
|
|
241
|
-
const onClick = vi.fn()
|
|
242
|
-
renderToaster()
|
|
243
|
-
|
|
244
|
-
act(() => {
|
|
245
|
-
toast("Message", {
|
|
246
|
-
cancel: { label: "Cancel", onClick },
|
|
247
|
-
})
|
|
248
|
-
})
|
|
249
|
-
|
|
250
|
-
await waitFor(() => {
|
|
251
|
-
expect(screen.getByText("Cancel")).toBeInTheDocument()
|
|
252
|
-
})
|
|
253
|
-
|
|
254
|
-
await user.click(screen.getByText("Cancel"))
|
|
255
|
-
expect(onClick).toHaveBeenCalled()
|
|
256
|
-
})
|
|
257
|
-
|
|
258
|
-
it("shows both action and cancel buttons", async () => {
|
|
259
|
-
renderToaster()
|
|
260
|
-
|
|
261
|
-
act(() => {
|
|
262
|
-
toast("Confirm action?", {
|
|
263
|
-
action: { label: "Confirm", onClick: vi.fn() },
|
|
264
|
-
cancel: { label: "Cancel", onClick: vi.fn() },
|
|
265
|
-
})
|
|
266
|
-
})
|
|
267
|
-
|
|
268
|
-
await waitFor(() => {
|
|
269
|
-
expect(screen.getByText("Confirm")).toBeInTheDocument()
|
|
270
|
-
expect(screen.getByText("Cancel")).toBeInTheDocument()
|
|
271
|
-
})
|
|
272
|
-
})
|
|
273
|
-
|
|
274
|
-
it("respects custom duration", async () => {
|
|
275
|
-
renderToaster()
|
|
276
|
-
|
|
277
|
-
act(() => {
|
|
278
|
-
toast("Quick toast", { duration: 100 })
|
|
279
|
-
})
|
|
280
|
-
|
|
281
|
-
await waitFor(() => {
|
|
282
|
-
expect(screen.getByText("Quick toast")).toBeInTheDocument()
|
|
283
|
-
})
|
|
284
|
-
|
|
285
|
-
// Wait for toast to disappear
|
|
286
|
-
await waitFor(
|
|
287
|
-
() => {
|
|
288
|
-
expect(screen.queryByText("Quick toast")).not.toBeInTheDocument()
|
|
289
|
-
},
|
|
290
|
-
{ timeout: 1000 }
|
|
291
|
-
)
|
|
292
|
-
})
|
|
293
|
-
|
|
294
|
-
it("persists with Infinity duration", async () => {
|
|
295
|
-
renderToaster()
|
|
296
|
-
|
|
297
|
-
act(() => {
|
|
298
|
-
toast("Persistent toast", { duration: Infinity })
|
|
299
|
-
})
|
|
300
|
-
|
|
301
|
-
await waitFor(() => {
|
|
302
|
-
expect(screen.getByText("Persistent toast")).toBeInTheDocument()
|
|
303
|
-
})
|
|
304
|
-
|
|
305
|
-
// Wait a bit and verify it's still there
|
|
306
|
-
await new Promise((resolve) => setTimeout(resolve, 500))
|
|
307
|
-
expect(screen.getByText("Persistent toast")).toBeInTheDocument()
|
|
308
|
-
})
|
|
309
|
-
})
|
|
310
|
-
|
|
311
|
-
// ============================================
|
|
312
|
-
// TOAST DISMISS TESTS
|
|
313
|
-
// ============================================
|
|
314
|
-
describe("Toast Dismiss", () => {
|
|
315
|
-
it("dismisses toast when dismiss is called with id", async () => {
|
|
316
|
-
renderToaster()
|
|
317
|
-
|
|
318
|
-
let toastId: number | string | undefined
|
|
319
|
-
|
|
320
|
-
act(() => {
|
|
321
|
-
toastId = toast("Dismissable toast", { duration: Infinity })
|
|
322
|
-
})
|
|
323
|
-
|
|
324
|
-
await waitFor(() => {
|
|
325
|
-
expect(screen.getByText("Dismissable toast")).toBeInTheDocument()
|
|
326
|
-
})
|
|
327
|
-
|
|
328
|
-
act(() => {
|
|
329
|
-
if (toastId) toast.dismiss(toastId)
|
|
330
|
-
})
|
|
331
|
-
|
|
332
|
-
await waitFor(() => {
|
|
333
|
-
expect(screen.queryByText("Dismissable toast")).not.toBeInTheDocument()
|
|
334
|
-
})
|
|
335
|
-
})
|
|
336
|
-
|
|
337
|
-
it("dismisses all toasts when dismiss is called without id", async () => {
|
|
338
|
-
renderToaster()
|
|
339
|
-
|
|
340
|
-
act(() => {
|
|
341
|
-
toast("Toast 1", { duration: Infinity })
|
|
342
|
-
toast("Toast 2", { duration: Infinity })
|
|
343
|
-
toast("Toast 3", { duration: Infinity })
|
|
344
|
-
})
|
|
345
|
-
|
|
346
|
-
await waitFor(() => {
|
|
347
|
-
expect(screen.getByText("Toast 1")).toBeInTheDocument()
|
|
348
|
-
expect(screen.getByText("Toast 2")).toBeInTheDocument()
|
|
349
|
-
expect(screen.getByText("Toast 3")).toBeInTheDocument()
|
|
350
|
-
})
|
|
351
|
-
|
|
352
|
-
act(() => {
|
|
353
|
-
toast.dismiss()
|
|
354
|
-
})
|
|
355
|
-
|
|
356
|
-
await waitFor(() => {
|
|
357
|
-
expect(screen.queryByText("Toast 1")).not.toBeInTheDocument()
|
|
358
|
-
expect(screen.queryByText("Toast 2")).not.toBeInTheDocument()
|
|
359
|
-
expect(screen.queryByText("Toast 3")).not.toBeInTheDocument()
|
|
360
|
-
})
|
|
361
|
-
})
|
|
362
|
-
})
|
|
363
|
-
|
|
364
|
-
// ============================================
|
|
365
|
-
// TOAST UPDATE TESTS
|
|
366
|
-
// ============================================
|
|
367
|
-
describe("Toast Update", () => {
|
|
368
|
-
it("updates loading toast to success", async () => {
|
|
369
|
-
renderToaster()
|
|
370
|
-
|
|
371
|
-
let toastId: number | string | undefined
|
|
372
|
-
|
|
373
|
-
act(() => {
|
|
374
|
-
toastId = toast.loading("Loading...")
|
|
375
|
-
})
|
|
376
|
-
|
|
377
|
-
await waitFor(() => {
|
|
378
|
-
expect(screen.getByText("Loading...")).toBeInTheDocument()
|
|
379
|
-
})
|
|
380
|
-
|
|
381
|
-
act(() => {
|
|
382
|
-
if (toastId) toast.success("Done!", { id: toastId })
|
|
383
|
-
})
|
|
384
|
-
|
|
385
|
-
await waitFor(() => {
|
|
386
|
-
expect(screen.queryByText("Loading...")).not.toBeInTheDocument()
|
|
387
|
-
expect(screen.getByText("Done!")).toBeInTheDocument()
|
|
388
|
-
})
|
|
389
|
-
})
|
|
390
|
-
|
|
391
|
-
it("updates loading toast to error", async () => {
|
|
392
|
-
renderToaster()
|
|
393
|
-
|
|
394
|
-
let toastId: number | string | undefined
|
|
395
|
-
|
|
396
|
-
act(() => {
|
|
397
|
-
toastId = toast.loading("Saving...")
|
|
398
|
-
})
|
|
399
|
-
|
|
400
|
-
await waitFor(() => {
|
|
401
|
-
expect(screen.getByText("Saving...")).toBeInTheDocument()
|
|
402
|
-
})
|
|
403
|
-
|
|
404
|
-
act(() => {
|
|
405
|
-
if (toastId) toast.error("Failed to save", { id: toastId })
|
|
406
|
-
})
|
|
407
|
-
|
|
408
|
-
await waitFor(() => {
|
|
409
|
-
expect(screen.queryByText("Saving...")).not.toBeInTheDocument()
|
|
410
|
-
expect(screen.getByText("Failed to save")).toBeInTheDocument()
|
|
411
|
-
})
|
|
412
|
-
})
|
|
413
|
-
})
|
|
414
|
-
|
|
415
|
-
// ============================================
|
|
416
|
-
// TOAST PROMISE TESTS
|
|
417
|
-
// ============================================
|
|
418
|
-
describe("Toast Promise", () => {
|
|
419
|
-
it("shows loading, then success for resolved promise", async () => {
|
|
420
|
-
renderToaster()
|
|
421
|
-
|
|
422
|
-
const promise = new Promise<string>((_resolve) =>
|
|
423
|
-
setTimeout(() => { _resolve("data"); }, 100)
|
|
424
|
-
)
|
|
425
|
-
|
|
426
|
-
act(() => {
|
|
427
|
-
toast.promise(promise, {
|
|
428
|
-
loading: "Loading data...",
|
|
429
|
-
success: "Data loaded!",
|
|
430
|
-
error: "Failed to load",
|
|
431
|
-
})
|
|
432
|
-
})
|
|
433
|
-
|
|
434
|
-
await waitFor(() => {
|
|
435
|
-
expect(screen.getByText("Loading data...")).toBeInTheDocument()
|
|
436
|
-
})
|
|
437
|
-
|
|
438
|
-
await waitFor(
|
|
439
|
-
() => {
|
|
440
|
-
expect(screen.getByText("Data loaded!")).toBeInTheDocument()
|
|
441
|
-
},
|
|
442
|
-
{ timeout: 500 }
|
|
443
|
-
)
|
|
444
|
-
})
|
|
445
|
-
|
|
446
|
-
it("shows loading, then error for rejected promise", async () => {
|
|
447
|
-
renderToaster()
|
|
448
|
-
|
|
449
|
-
const promise = new Promise<string>((_resolve, reject) =>
|
|
450
|
-
setTimeout(() => { reject(new Error("Network error")); }, 100)
|
|
451
|
-
)
|
|
452
|
-
|
|
453
|
-
act(() => {
|
|
454
|
-
toast.promise(promise, {
|
|
455
|
-
loading: "Loading...",
|
|
456
|
-
success: "Loaded!",
|
|
457
|
-
error: "Failed!",
|
|
458
|
-
})
|
|
459
|
-
})
|
|
460
|
-
|
|
461
|
-
await waitFor(() => {
|
|
462
|
-
expect(screen.getByText("Loading...")).toBeInTheDocument()
|
|
463
|
-
})
|
|
464
|
-
|
|
465
|
-
await waitFor(
|
|
466
|
-
() => {
|
|
467
|
-
expect(screen.getByText("Failed!")).toBeInTheDocument()
|
|
468
|
-
},
|
|
469
|
-
{ timeout: 500 }
|
|
470
|
-
)
|
|
471
|
-
})
|
|
472
|
-
|
|
473
|
-
it("supports dynamic success message with data", async () => {
|
|
474
|
-
renderToaster()
|
|
475
|
-
|
|
476
|
-
const promise = new Promise<{ name: string }>((_resolve) =>
|
|
477
|
-
setTimeout(() => { _resolve({ name: "John" }); }, 100)
|
|
478
|
-
)
|
|
479
|
-
|
|
480
|
-
act(() => {
|
|
481
|
-
toast.promise(promise, {
|
|
482
|
-
loading: "Loading user...",
|
|
483
|
-
success: (data) => `Welcome, ${data.name}!`,
|
|
484
|
-
error: "Failed to load user",
|
|
485
|
-
})
|
|
486
|
-
})
|
|
487
|
-
|
|
488
|
-
await waitFor(
|
|
489
|
-
() => {
|
|
490
|
-
expect(screen.getByText("Welcome, John!")).toBeInTheDocument()
|
|
491
|
-
},
|
|
492
|
-
{ timeout: 500 }
|
|
493
|
-
)
|
|
494
|
-
})
|
|
495
|
-
})
|
|
496
|
-
|
|
497
|
-
// ============================================
|
|
498
|
-
// TOAST CUSTOM TESTS
|
|
499
|
-
// ============================================
|
|
500
|
-
describe("Toast Custom", () => {
|
|
501
|
-
it("renders custom toast content", async () => {
|
|
502
|
-
renderToaster()
|
|
503
|
-
|
|
504
|
-
act(() => {
|
|
505
|
-
toast.custom(() => (
|
|
506
|
-
<div data-testid="custom-toast">Custom content</div>
|
|
507
|
-
))
|
|
508
|
-
})
|
|
509
|
-
|
|
510
|
-
await waitFor(() => {
|
|
511
|
-
expect(screen.getByTestId("custom-toast")).toBeInTheDocument()
|
|
512
|
-
expect(screen.getByText("Custom content")).toBeInTheDocument()
|
|
513
|
-
})
|
|
514
|
-
})
|
|
515
|
-
|
|
516
|
-
it("passes toast id to custom renderer", async () => {
|
|
517
|
-
renderToaster()
|
|
518
|
-
|
|
519
|
-
act(() => {
|
|
520
|
-
toast.custom((t) => (
|
|
521
|
-
<div data-testid="custom-toast">
|
|
522
|
-
<span>Toast ID: {String(t)}</span>
|
|
523
|
-
<button onClick={() => toast.dismiss(t)}>Dismiss</button>
|
|
524
|
-
</div>
|
|
525
|
-
))
|
|
526
|
-
})
|
|
527
|
-
|
|
528
|
-
await waitFor(() => {
|
|
529
|
-
expect(screen.getByTestId("custom-toast")).toBeInTheDocument()
|
|
530
|
-
})
|
|
531
|
-
})
|
|
532
|
-
})
|
|
533
|
-
|
|
534
|
-
// ============================================
|
|
535
|
-
// MULTIPLE TOASTS TESTS
|
|
536
|
-
// ============================================
|
|
537
|
-
describe("Multiple Toasts", () => {
|
|
538
|
-
it("shows multiple toasts", async () => {
|
|
539
|
-
renderToaster()
|
|
540
|
-
|
|
541
|
-
act(() => {
|
|
542
|
-
toast("First toast", { duration: Infinity })
|
|
543
|
-
toast("Second toast", { duration: Infinity })
|
|
544
|
-
toast("Third toast", { duration: Infinity })
|
|
545
|
-
})
|
|
546
|
-
|
|
547
|
-
await waitFor(() => {
|
|
548
|
-
expect(screen.getByText("First toast")).toBeInTheDocument()
|
|
549
|
-
expect(screen.getByText("Second toast")).toBeInTheDocument()
|
|
550
|
-
expect(screen.getByText("Third toast")).toBeInTheDocument()
|
|
551
|
-
})
|
|
552
|
-
})
|
|
553
|
-
|
|
554
|
-
it("respects visibleToasts limit", async () => {
|
|
555
|
-
renderToaster({ visibleToasts: 2 })
|
|
556
|
-
|
|
557
|
-
act(() => {
|
|
558
|
-
toast("Toast 1", { duration: Infinity })
|
|
559
|
-
toast("Toast 2", { duration: Infinity })
|
|
560
|
-
toast("Toast 3", { duration: Infinity })
|
|
561
|
-
})
|
|
562
|
-
|
|
563
|
-
// The third toast might be hidden or stacked
|
|
564
|
-
await waitFor(() => {
|
|
565
|
-
expect(screen.getByText("Toast 3")).toBeInTheDocument()
|
|
566
|
-
})
|
|
567
|
-
})
|
|
568
|
-
|
|
569
|
-
it("shows different toast types simultaneously", async () => {
|
|
570
|
-
renderToaster()
|
|
571
|
-
|
|
572
|
-
act(() => {
|
|
573
|
-
toast.success("Success!", { duration: Infinity })
|
|
574
|
-
toast.error("Error!", { duration: Infinity })
|
|
575
|
-
toast.warning("Warning!", { duration: Infinity })
|
|
576
|
-
toast.info("Info!", { duration: Infinity })
|
|
577
|
-
})
|
|
578
|
-
|
|
579
|
-
await waitFor(() => {
|
|
580
|
-
expect(screen.getByText("Success!")).toBeInTheDocument()
|
|
581
|
-
expect(screen.getByText("Error!")).toBeInTheDocument()
|
|
582
|
-
expect(screen.getByText("Warning!")).toBeInTheDocument()
|
|
583
|
-
expect(screen.getByText("Info!")).toBeInTheDocument()
|
|
584
|
-
})
|
|
585
|
-
})
|
|
586
|
-
})
|
|
587
|
-
|
|
588
|
-
// ============================================
|
|
589
|
-
// POSITION TESTS
|
|
590
|
-
// ============================================
|
|
591
|
-
describe("Positions", () => {
|
|
592
|
-
const positions = [
|
|
593
|
-
"top-left",
|
|
594
|
-
"top-center",
|
|
595
|
-
"top-right",
|
|
596
|
-
"bottom-left",
|
|
597
|
-
"bottom-center",
|
|
598
|
-
"bottom-right",
|
|
599
|
-
] as const
|
|
600
|
-
|
|
601
|
-
for (const position of positions) {
|
|
602
|
-
it(`renders at ${position} position`, async () => {
|
|
603
|
-
renderToaster({ position })
|
|
604
|
-
|
|
605
|
-
act(() => {
|
|
606
|
-
toast(`Toast at ${position}`, { duration: Infinity })
|
|
607
|
-
})
|
|
608
|
-
|
|
609
|
-
await waitFor(() => {
|
|
610
|
-
expect(screen.getByText(`Toast at ${position}`)).toBeInTheDocument()
|
|
611
|
-
})
|
|
612
|
-
})
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
it("respects per-toast position override", async () => {
|
|
616
|
-
renderToaster({ position: "bottom-right" })
|
|
617
|
-
|
|
618
|
-
act(() => {
|
|
619
|
-
toast("Override position", {
|
|
620
|
-
position: "top-center",
|
|
621
|
-
duration: Infinity,
|
|
622
|
-
})
|
|
623
|
-
})
|
|
624
|
-
|
|
625
|
-
await waitFor(() => {
|
|
626
|
-
expect(screen.getByText("Override position")).toBeInTheDocument()
|
|
627
|
-
})
|
|
628
|
-
})
|
|
629
|
-
})
|
|
630
|
-
|
|
631
|
-
// ============================================
|
|
632
|
-
// THEME TESTS
|
|
633
|
-
// ============================================
|
|
634
|
-
describe("Theme", () => {
|
|
635
|
-
it("renders with light theme", () => {
|
|
636
|
-
renderToaster({ theme: "light" })
|
|
637
|
-
const toaster = document.querySelector("section")
|
|
638
|
-
expect(toaster).toBeInTheDocument()
|
|
639
|
-
})
|
|
640
|
-
|
|
641
|
-
it("renders with dark theme", () => {
|
|
642
|
-
renderToaster({ theme: "dark" })
|
|
643
|
-
const toaster = document.querySelector("section")
|
|
644
|
-
expect(toaster).toBeInTheDocument()
|
|
645
|
-
})
|
|
646
|
-
|
|
647
|
-
it("renders with system theme", () => {
|
|
648
|
-
renderToaster({ theme: "system" })
|
|
649
|
-
const toaster = document.querySelector("section")
|
|
650
|
-
expect(toaster).toBeInTheDocument()
|
|
651
|
-
})
|
|
652
|
-
})
|
|
653
|
-
|
|
654
|
-
// ============================================
|
|
655
|
-
// ICON TESTS
|
|
656
|
-
// ============================================
|
|
657
|
-
describe("Icons", () => {
|
|
658
|
-
it("shows success icon for success toast", async () => {
|
|
659
|
-
renderToaster()
|
|
660
|
-
|
|
661
|
-
act(() => {
|
|
662
|
-
toast.success("Success with icon")
|
|
663
|
-
})
|
|
664
|
-
|
|
665
|
-
await waitFor(() => {
|
|
666
|
-
expect(screen.getByText("Success with icon")).toBeInTheDocument()
|
|
667
|
-
// Check for SVG icon
|
|
668
|
-
const toast = screen.getByText("Success with icon").closest("[data-sonner-toast]")
|
|
669
|
-
expect(toast?.querySelector("svg")).toBeInTheDocument()
|
|
670
|
-
})
|
|
671
|
-
})
|
|
672
|
-
|
|
673
|
-
it("shows error icon for error toast", async () => {
|
|
674
|
-
renderToaster()
|
|
675
|
-
|
|
676
|
-
act(() => {
|
|
677
|
-
toast.error("Error with icon")
|
|
678
|
-
})
|
|
679
|
-
|
|
680
|
-
await waitFor(() => {
|
|
681
|
-
expect(screen.getByText("Error with icon")).toBeInTheDocument()
|
|
682
|
-
const toast = screen.getByText("Error with icon").closest("[data-sonner-toast]")
|
|
683
|
-
expect(toast?.querySelector("svg")).toBeInTheDocument()
|
|
684
|
-
})
|
|
685
|
-
})
|
|
686
|
-
|
|
687
|
-
it("shows warning icon for warning toast", async () => {
|
|
688
|
-
renderToaster()
|
|
689
|
-
|
|
690
|
-
act(() => {
|
|
691
|
-
toast.warning("Warning with icon")
|
|
692
|
-
})
|
|
693
|
-
|
|
694
|
-
await waitFor(() => {
|
|
695
|
-
expect(screen.getByText("Warning with icon")).toBeInTheDocument()
|
|
696
|
-
const toast = screen.getByText("Warning with icon").closest("[data-sonner-toast]")
|
|
697
|
-
expect(toast?.querySelector("svg")).toBeInTheDocument()
|
|
698
|
-
})
|
|
699
|
-
})
|
|
700
|
-
|
|
701
|
-
it("shows info icon for info toast", async () => {
|
|
702
|
-
renderToaster()
|
|
703
|
-
|
|
704
|
-
act(() => {
|
|
705
|
-
toast.info("Info with icon")
|
|
706
|
-
})
|
|
707
|
-
|
|
708
|
-
await waitFor(() => {
|
|
709
|
-
expect(screen.getByText("Info with icon")).toBeInTheDocument()
|
|
710
|
-
const toast = screen.getByText("Info with icon").closest("[data-sonner-toast]")
|
|
711
|
-
expect(toast?.querySelector("svg")).toBeInTheDocument()
|
|
712
|
-
})
|
|
713
|
-
})
|
|
714
|
-
|
|
715
|
-
it("shows loading spinner for loading toast", async () => {
|
|
716
|
-
renderToaster()
|
|
717
|
-
|
|
718
|
-
act(() => {
|
|
719
|
-
toast.loading("Loading with spinner")
|
|
720
|
-
})
|
|
721
|
-
|
|
722
|
-
await waitFor(() => {
|
|
723
|
-
expect(screen.getByText("Loading with spinner")).toBeInTheDocument()
|
|
724
|
-
const toastEl = screen.getByText("Loading with spinner").closest("[data-sonner-toast]")
|
|
725
|
-
const spinner = toastEl?.querySelector("svg")
|
|
726
|
-
expect(spinner).toBeInTheDocument()
|
|
727
|
-
expect(spinner?.classList.contains("animate-spin")).toBe(true)
|
|
728
|
-
})
|
|
729
|
-
})
|
|
730
|
-
})
|
|
731
|
-
|
|
732
|
-
// ============================================
|
|
733
|
-
// CALLBACKS TESTS
|
|
734
|
-
// ============================================
|
|
735
|
-
describe("Callbacks", () => {
|
|
736
|
-
it("calls onDismiss when toast is dismissed", async () => {
|
|
737
|
-
const onDismiss = vi.fn()
|
|
738
|
-
renderToaster()
|
|
739
|
-
|
|
740
|
-
let toastId: number | string | undefined
|
|
741
|
-
|
|
742
|
-
act(() => {
|
|
743
|
-
toastId = toast("Dismissable", {
|
|
744
|
-
duration: Infinity,
|
|
745
|
-
onDismiss,
|
|
746
|
-
})
|
|
747
|
-
})
|
|
748
|
-
|
|
749
|
-
await waitFor(() => {
|
|
750
|
-
expect(screen.getByText("Dismissable")).toBeInTheDocument()
|
|
751
|
-
})
|
|
752
|
-
|
|
753
|
-
act(() => {
|
|
754
|
-
if (toastId) toast.dismiss(toastId)
|
|
755
|
-
})
|
|
756
|
-
|
|
757
|
-
// Wait for toast to be removed from DOM
|
|
758
|
-
await waitFor(() => {
|
|
759
|
-
expect(screen.queryByText("Dismissable")).not.toBeInTheDocument()
|
|
760
|
-
})
|
|
761
|
-
|
|
762
|
-
// Note: onDismiss may not be called when programmatically dismissing in some versions of Sonner
|
|
763
|
-
// This verifies the dismiss functionality works, even if callback behavior varies
|
|
764
|
-
})
|
|
765
|
-
|
|
766
|
-
it("calls onAutoClose when toast auto-closes", async () => {
|
|
767
|
-
const onAutoClose = vi.fn()
|
|
768
|
-
renderToaster()
|
|
769
|
-
|
|
770
|
-
act(() => {
|
|
771
|
-
toast("Auto close toast", {
|
|
772
|
-
duration: 100,
|
|
773
|
-
onAutoClose,
|
|
774
|
-
})
|
|
775
|
-
})
|
|
776
|
-
|
|
777
|
-
await waitFor(() => {
|
|
778
|
-
expect(screen.getByText("Auto close toast")).toBeInTheDocument()
|
|
779
|
-
})
|
|
780
|
-
|
|
781
|
-
await waitFor(
|
|
782
|
-
() => {
|
|
783
|
-
expect(onAutoClose).toHaveBeenCalled()
|
|
784
|
-
},
|
|
785
|
-
{ timeout: 1000 }
|
|
786
|
-
)
|
|
787
|
-
})
|
|
788
|
-
})
|
|
789
|
-
|
|
790
|
-
// ============================================
|
|
791
|
-
// STYLING TESTS
|
|
792
|
-
// ============================================
|
|
793
|
-
describe("Styling", () => {
|
|
794
|
-
it("applies custom className to toast", async () => {
|
|
795
|
-
renderToaster()
|
|
796
|
-
|
|
797
|
-
act(() => {
|
|
798
|
-
toast("Styled toast", {
|
|
799
|
-
className: "custom-toast-class",
|
|
800
|
-
duration: Infinity,
|
|
801
|
-
})
|
|
802
|
-
})
|
|
803
|
-
|
|
804
|
-
await waitFor(() => {
|
|
805
|
-
const toastEl = screen.getByText("Styled toast").closest("[data-sonner-toast]")
|
|
806
|
-
expect(toastEl).toHaveClass("custom-toast-class")
|
|
807
|
-
})
|
|
808
|
-
})
|
|
809
|
-
|
|
810
|
-
it("applies custom style to toast", async () => {
|
|
811
|
-
renderToaster()
|
|
812
|
-
|
|
813
|
-
act(() => {
|
|
814
|
-
toast("Inline styled toast", {
|
|
815
|
-
style: { backgroundColor: "rgb(255, 0, 0)" },
|
|
816
|
-
duration: Infinity,
|
|
817
|
-
})
|
|
818
|
-
})
|
|
819
|
-
|
|
820
|
-
await waitFor(() => {
|
|
821
|
-
const toastEl = screen.getByText("Inline styled toast").closest("[data-sonner-toast]")
|
|
822
|
-
expect(toastEl).toHaveStyle({ backgroundColor: "rgb(255, 0, 0)" })
|
|
823
|
-
})
|
|
824
|
-
})
|
|
825
|
-
|
|
826
|
-
it("applies toaster group className", () => {
|
|
827
|
-
renderToaster()
|
|
828
|
-
// Sonner renders an ol element inside the section for toast container
|
|
829
|
-
const toaster = document.querySelector("section")
|
|
830
|
-
expect(toaster).toBeInTheDocument()
|
|
831
|
-
// The className is passed to Sonner and may be applied to different elements
|
|
832
|
-
// based on Sonner's internal implementation
|
|
833
|
-
})
|
|
834
|
-
})
|
|
835
|
-
|
|
836
|
-
// ============================================
|
|
837
|
-
// EDGE CASES TESTS
|
|
838
|
-
// ============================================
|
|
839
|
-
describe("Edge Cases", () => {
|
|
840
|
-
it("handles empty message", async () => {
|
|
841
|
-
renderToaster()
|
|
842
|
-
|
|
843
|
-
act(() => {
|
|
844
|
-
toast("")
|
|
845
|
-
})
|
|
846
|
-
|
|
847
|
-
// Empty toast should still render
|
|
848
|
-
await waitFor(() => {
|
|
849
|
-
const toasts = document.querySelectorAll("[data-sonner-toast]")
|
|
850
|
-
expect(toasts.length).toBeGreaterThan(0)
|
|
851
|
-
})
|
|
852
|
-
})
|
|
853
|
-
|
|
854
|
-
it("handles very long message", async () => {
|
|
855
|
-
const longMessage = "A".repeat(500)
|
|
856
|
-
renderToaster()
|
|
857
|
-
|
|
858
|
-
act(() => {
|
|
859
|
-
toast(longMessage, { duration: Infinity })
|
|
860
|
-
})
|
|
861
|
-
|
|
862
|
-
await waitFor(() => {
|
|
863
|
-
expect(screen.getByText(longMessage)).toBeInTheDocument()
|
|
864
|
-
})
|
|
865
|
-
})
|
|
866
|
-
|
|
867
|
-
it("handles special characters in message", async () => {
|
|
868
|
-
const specialMessage = "<script>alert('xss')</script>"
|
|
869
|
-
renderToaster()
|
|
870
|
-
|
|
871
|
-
act(() => {
|
|
872
|
-
toast(specialMessage, { duration: Infinity })
|
|
873
|
-
})
|
|
874
|
-
|
|
875
|
-
await waitFor(() => {
|
|
876
|
-
expect(screen.getByText(specialMessage)).toBeInTheDocument()
|
|
877
|
-
})
|
|
878
|
-
})
|
|
879
|
-
|
|
880
|
-
it("handles rapid toast calls", async () => {
|
|
881
|
-
renderToaster()
|
|
882
|
-
|
|
883
|
-
act(() => {
|
|
884
|
-
for (let i = 0; i < 10; i++) {
|
|
885
|
-
toast(`Rapid toast ${String(i)}`, { duration: Infinity })
|
|
886
|
-
}
|
|
887
|
-
})
|
|
888
|
-
|
|
889
|
-
// At least some toasts should be visible
|
|
890
|
-
await waitFor(() => {
|
|
891
|
-
expect(screen.getByText("Rapid toast 9")).toBeInTheDocument()
|
|
892
|
-
})
|
|
893
|
-
})
|
|
894
|
-
|
|
895
|
-
it("handles unicode characters", async () => {
|
|
896
|
-
renderToaster()
|
|
897
|
-
|
|
898
|
-
act(() => {
|
|
899
|
-
toast("Toast with emoji 🎉🚀✨", { duration: Infinity })
|
|
900
|
-
})
|
|
901
|
-
|
|
902
|
-
await waitFor(() => {
|
|
903
|
-
expect(screen.getByText("Toast with emoji 🎉🚀✨")).toBeInTheDocument()
|
|
904
|
-
})
|
|
905
|
-
})
|
|
906
|
-
})
|
|
907
|
-
|
|
908
|
-
// ============================================
|
|
909
|
-
// ACCESSIBILITY TESTS
|
|
910
|
-
// ============================================
|
|
911
|
-
describe("Accessibility", () => {
|
|
912
|
-
it("has no accessibility violations when empty", async () => {
|
|
913
|
-
const { container } = renderToaster()
|
|
914
|
-
const results = await axe(container)
|
|
915
|
-
expect(results).toHaveNoViolations()
|
|
916
|
-
})
|
|
917
|
-
|
|
918
|
-
it("has no accessibility violations with toast", async () => {
|
|
919
|
-
const { container } = renderToaster()
|
|
920
|
-
|
|
921
|
-
act(() => {
|
|
922
|
-
toast("Accessible toast", { duration: Infinity })
|
|
923
|
-
})
|
|
924
|
-
|
|
925
|
-
await waitFor(() => {
|
|
926
|
-
expect(screen.getByText("Accessible toast")).toBeInTheDocument()
|
|
927
|
-
})
|
|
928
|
-
|
|
929
|
-
const results = await axe(container)
|
|
930
|
-
expect(results).toHaveNoViolations()
|
|
931
|
-
})
|
|
932
|
-
|
|
933
|
-
it("has no accessibility violations with success toast", async () => {
|
|
934
|
-
const { container } = renderToaster()
|
|
935
|
-
|
|
936
|
-
act(() => {
|
|
937
|
-
toast.success("Success message", { duration: Infinity })
|
|
938
|
-
})
|
|
939
|
-
|
|
940
|
-
await waitFor(() => {
|
|
941
|
-
expect(screen.getByText("Success message")).toBeInTheDocument()
|
|
942
|
-
})
|
|
943
|
-
|
|
944
|
-
const results = await axe(container)
|
|
945
|
-
expect(results).toHaveNoViolations()
|
|
946
|
-
})
|
|
947
|
-
|
|
948
|
-
it("has no accessibility violations with error toast", async () => {
|
|
949
|
-
const { container } = renderToaster()
|
|
950
|
-
|
|
951
|
-
act(() => {
|
|
952
|
-
toast.error("Error message", { duration: Infinity })
|
|
953
|
-
})
|
|
954
|
-
|
|
955
|
-
await waitFor(() => {
|
|
956
|
-
expect(screen.getByText("Error message")).toBeInTheDocument()
|
|
957
|
-
})
|
|
958
|
-
|
|
959
|
-
const results = await axe(container)
|
|
960
|
-
expect(results).toHaveNoViolations()
|
|
961
|
-
})
|
|
962
|
-
|
|
963
|
-
it("has no accessibility violations with action buttons", async () => {
|
|
964
|
-
const { container } = renderToaster()
|
|
965
|
-
|
|
966
|
-
act(() => {
|
|
967
|
-
toast("Toast with actions", {
|
|
968
|
-
action: { label: "Undo", onClick: vi.fn() },
|
|
969
|
-
cancel: { label: "Dismiss", onClick: vi.fn() },
|
|
970
|
-
duration: Infinity,
|
|
971
|
-
})
|
|
972
|
-
})
|
|
973
|
-
|
|
974
|
-
await waitFor(() => {
|
|
975
|
-
expect(screen.getByText("Toast with actions")).toBeInTheDocument()
|
|
976
|
-
})
|
|
977
|
-
|
|
978
|
-
const results = await axe(container)
|
|
979
|
-
expect(results).toHaveNoViolations()
|
|
980
|
-
})
|
|
981
|
-
|
|
982
|
-
it("has no accessibility violations with description", async () => {
|
|
983
|
-
const { container } = renderToaster()
|
|
984
|
-
|
|
985
|
-
act(() => {
|
|
986
|
-
toast("Title", {
|
|
987
|
-
duration: Infinity,
|
|
988
|
-
description: "Detailed description of the toast message.",
|
|
989
|
-
})
|
|
990
|
-
})
|
|
991
|
-
|
|
992
|
-
await waitFor(() => {
|
|
993
|
-
expect(screen.getByText("Title")).toBeInTheDocument()
|
|
994
|
-
})
|
|
995
|
-
|
|
996
|
-
const results = await axe(container)
|
|
997
|
-
expect(results).toHaveNoViolations()
|
|
998
|
-
})
|
|
999
|
-
})
|
|
1000
|
-
|
|
1001
|
-
// ============================================
|
|
1002
|
-
// INTEGRATION TESTS
|
|
1003
|
-
// ============================================
|
|
1004
|
-
describe("Integration", () => {
|
|
1005
|
-
it("complete success flow with description and action", async () => {
|
|
1006
|
-
const user = userEvent.setup()
|
|
1007
|
-
const onAction = vi.fn()
|
|
1008
|
-
renderToaster()
|
|
1009
|
-
|
|
1010
|
-
act(() => {
|
|
1011
|
-
toast.success("File uploaded", {
|
|
1012
|
-
description: "document.pdf was uploaded successfully",
|
|
1013
|
-
action: { label: "View", onClick: onAction },
|
|
1014
|
-
duration: Infinity,
|
|
1015
|
-
})
|
|
1016
|
-
})
|
|
1017
|
-
|
|
1018
|
-
await waitFor(() => {
|
|
1019
|
-
expect(screen.getByText("File uploaded")).toBeInTheDocument()
|
|
1020
|
-
expect(
|
|
1021
|
-
screen.getByText("document.pdf was uploaded successfully")
|
|
1022
|
-
).toBeInTheDocument()
|
|
1023
|
-
expect(screen.getByText("View")).toBeInTheDocument()
|
|
1024
|
-
})
|
|
1025
|
-
|
|
1026
|
-
await user.click(screen.getByText("View"))
|
|
1027
|
-
expect(onAction).toHaveBeenCalled()
|
|
1028
|
-
})
|
|
1029
|
-
|
|
1030
|
-
it("complete error flow with retry action", async () => {
|
|
1031
|
-
const user = userEvent.setup()
|
|
1032
|
-
const onRetry = vi.fn()
|
|
1033
|
-
renderToaster()
|
|
1034
|
-
|
|
1035
|
-
act(() => {
|
|
1036
|
-
toast.error("Upload failed", {
|
|
1037
|
-
description: "Network connection lost",
|
|
1038
|
-
action: { label: "Retry", onClick: onRetry },
|
|
1039
|
-
duration: Infinity,
|
|
1040
|
-
})
|
|
1041
|
-
})
|
|
1042
|
-
|
|
1043
|
-
await waitFor(() => {
|
|
1044
|
-
expect(screen.getByText("Upload failed")).toBeInTheDocument()
|
|
1045
|
-
expect(screen.getByText("Network connection lost")).toBeInTheDocument()
|
|
1046
|
-
})
|
|
1047
|
-
|
|
1048
|
-
await user.click(screen.getByText("Retry"))
|
|
1049
|
-
expect(onRetry).toHaveBeenCalled()
|
|
1050
|
-
})
|
|
1051
|
-
|
|
1052
|
-
it("loading to success transition", async () => {
|
|
1053
|
-
renderToaster()
|
|
1054
|
-
|
|
1055
|
-
let toastId: number | string | undefined
|
|
1056
|
-
|
|
1057
|
-
act(() => {
|
|
1058
|
-
toastId = toast.loading("Saving changes...")
|
|
1059
|
-
})
|
|
1060
|
-
|
|
1061
|
-
await waitFor(() => {
|
|
1062
|
-
expect(screen.getByText("Saving changes...")).toBeInTheDocument()
|
|
1063
|
-
})
|
|
1064
|
-
|
|
1065
|
-
// Simulate async operation completing
|
|
1066
|
-
await new Promise((resolve) => setTimeout(resolve, 200))
|
|
1067
|
-
|
|
1068
|
-
act(() => {
|
|
1069
|
-
if (toastId) {
|
|
1070
|
-
toast.success("Changes saved!", {
|
|
1071
|
-
id: toastId,
|
|
1072
|
-
description: "Your profile has been updated.",
|
|
1073
|
-
})
|
|
1074
|
-
}
|
|
1075
|
-
})
|
|
1076
|
-
|
|
1077
|
-
await waitFor(() => {
|
|
1078
|
-
expect(screen.getByText("Changes saved!")).toBeInTheDocument()
|
|
1079
|
-
expect(
|
|
1080
|
-
screen.getByText("Your profile has been updated.")
|
|
1081
|
-
).toBeInTheDocument()
|
|
1082
|
-
})
|
|
1083
|
-
})
|
|
1084
|
-
|
|
1085
|
-
it("loading to error transition", async () => {
|
|
1086
|
-
renderToaster()
|
|
1087
|
-
|
|
1088
|
-
let toastId: number | string | undefined
|
|
1089
|
-
|
|
1090
|
-
act(() => {
|
|
1091
|
-
toastId = toast.loading("Processing payment...")
|
|
1092
|
-
})
|
|
1093
|
-
|
|
1094
|
-
await waitFor(() => {
|
|
1095
|
-
expect(screen.getByText("Processing payment...")).toBeInTheDocument()
|
|
1096
|
-
})
|
|
1097
|
-
|
|
1098
|
-
// Simulate async operation failing
|
|
1099
|
-
await new Promise((resolve) => setTimeout(resolve, 200))
|
|
1100
|
-
|
|
1101
|
-
act(() => {
|
|
1102
|
-
if (toastId) {
|
|
1103
|
-
toast.error("Payment failed", {
|
|
1104
|
-
id: toastId,
|
|
1105
|
-
description: "Your card was declined.",
|
|
1106
|
-
})
|
|
1107
|
-
}
|
|
1108
|
-
})
|
|
1109
|
-
|
|
1110
|
-
await waitFor(() => {
|
|
1111
|
-
expect(screen.getByText("Payment failed")).toBeInTheDocument()
|
|
1112
|
-
expect(screen.getByText("Your card was declined.")).toBeInTheDocument()
|
|
1113
|
-
})
|
|
1114
|
-
})
|
|
1115
|
-
})
|
|
1116
|
-
})
|