@allurereport/web-components 3.21.0 → 3.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Attachment-DFk4AiwI.js +2 -0
- package/dist/Attachment-DFk4AiwI.js.map +1 -0
- package/dist/Attachment-Du2XgmQc.d.ts +26 -0
- package/dist/Attachment.d.ts +5 -0
- package/dist/Attachment.js +2 -0
- package/dist/Attachment.js.map +1 -0
- package/dist/AttachmentCode-DLfL9_C7.js +2 -0
- package/dist/AttachmentCode-DLfL9_C7.js.map +1 -0
- package/dist/AttachmentImageDiff-Bp1b_UU5.js +2 -0
- package/dist/AttachmentImageDiff-Bp1b_UU5.js.map +1 -0
- package/dist/AttachmentTable-B_2qN3O-.js +2 -0
- package/dist/AttachmentTable-B_2qN3O-.js.map +1 -0
- package/dist/BarChart-Dmhamjn_.js +2 -0
- package/dist/BarChart-Dmhamjn_.js.map +1 -0
- package/dist/BarChartRenderer-Ip2G__e-.js +2 -0
- package/dist/BarChartRenderer-Ip2G__e-.js.map +1 -0
- package/dist/ChartWidget.d.ts +13 -0
- package/dist/ChartWidget.js +2 -0
- package/dist/ChartWidget.js.map +1 -0
- package/dist/CodeViewer.d.ts +9 -0
- package/dist/CodeViewer.js +2 -0
- package/dist/CodeViewer.js.map +1 -0
- package/dist/CurrentStatusChartWidget.d.ts +16 -0
- package/dist/CurrentStatusChartWidget.js +2 -0
- package/dist/CurrentStatusChartWidget.js.map +1 -0
- package/dist/DurationDynamicsChartWidget.d.ts +12 -0
- package/dist/DurationDynamicsChartWidget.js +2 -0
- package/dist/DurationDynamicsChartWidget.js.map +1 -0
- package/dist/DurationsChartWidget.d.ts +12 -0
- package/dist/DurationsChartWidget.js +2 -0
- package/dist/DurationsChartWidget.js.map +1 -0
- package/dist/EmptyDataStub-CRdg61R2.js +2 -0
- package/dist/EmptyDataStub-CRdg61R2.js.map +1 -0
- package/dist/FunnelChartRenderer-tZ8LQJEg.js +2 -0
- package/dist/FunnelChartRenderer-tZ8LQJEg.js.map +1 -0
- package/dist/Grid.d.ts +20 -0
- package/dist/Grid.js +2 -0
- package/dist/Grid.js.map +1 -0
- package/dist/GridItem-DI1f2R1r.js +8 -0
- package/dist/GridItem-DI1f2R1r.js.map +1 -0
- package/dist/HeatMapChartRenderer-CgQ03Op3.js +2 -0
- package/dist/HeatMapChartRenderer-CgQ03Op3.js.map +1 -0
- package/dist/HeatMapWidget-Dqm7-_SB.js +2 -0
- package/dist/HeatMapWidget-Dqm7-_SB.js.map +1 -0
- package/dist/HeatMapWidget.d.ts +5 -0
- package/dist/HeatMapWidget.js +2 -0
- package/dist/HeatMapWidget.js.map +1 -0
- package/dist/HtmlPreview-u0sa77g5.js +2 -0
- package/dist/HtmlPreview-u0sa77g5.js.map +1 -0
- package/dist/HttpAttachment-CkQRcAfa.js +2 -0
- package/dist/HttpAttachment-CkQRcAfa.js.map +1 -0
- package/dist/MarkdownPreview-BEs6LvOd.js +4 -0
- package/dist/MarkdownPreview-BEs6LvOd.js.map +1 -0
- package/dist/MermaidPreview-4EDQwdX3.js +2 -0
- package/dist/MermaidPreview-4EDQwdX3.js.map +1 -0
- package/dist/PieChartRenderer-Cv4hjlRj.js +2 -0
- package/dist/PieChartRenderer-Cv4hjlRj.js.map +1 -0
- package/dist/StabilityDistributionWidget.d.ts +12 -0
- package/dist/StabilityDistributionWidget.js +2 -0
- package/dist/StabilityDistributionWidget.js.map +1 -0
- package/dist/StatusAgePyramidChartWidget.d.ts +15 -0
- package/dist/StatusAgePyramidChartWidget.js +2 -0
- package/dist/StatusAgePyramidChartWidget.js.map +1 -0
- package/dist/StatusDynamicsChartWidget.d.ts +22 -0
- package/dist/StatusDynamicsChartWidget.js +2 -0
- package/dist/StatusDynamicsChartWidget.js.map +1 -0
- package/dist/StatusTransitionsChartWidget.d.ts +14 -0
- package/dist/StatusTransitionsChartWidget.js +2 -0
- package/dist/StatusTransitionsChartWidget.js.map +1 -0
- package/dist/SuccessRatePieChart.d.ts +11 -0
- package/dist/SuccessRatePieChart.js +2 -0
- package/dist/SuccessRatePieChart.js.map +1 -0
- package/dist/TestBaseGrowthDynamicsChartWidget.d.ts +13 -0
- package/dist/TestBaseGrowthDynamicsChartWidget.js +2 -0
- package/dist/TestBaseGrowthDynamicsChartWidget.js.map +1 -0
- package/dist/TestingPyramidWidget.d.ts +20 -0
- package/dist/TestingPyramidWidget.js +2 -0
- package/dist/TestingPyramidWidget.js.map +1 -0
- package/dist/Timeline-BWVXDTn-.js +2 -0
- package/dist/Timeline-BWVXDTn-.js.map +1 -0
- package/dist/Timeline.d.ts +46 -0
- package/dist/Timeline.js +2 -0
- package/dist/Timeline.js.map +1 -0
- package/dist/TrSeveritiesChartWidget.d.ts +13 -0
- package/dist/TrSeveritiesChartWidget.js +2 -0
- package/dist/TrSeveritiesChartWidget.js.map +1 -0
- package/dist/TreeMapChartRenderer-DAOzpUju.js +2 -0
- package/dist/TreeMapChartRenderer-DAOzpUju.js.map +1 -0
- package/dist/TreeMapChartWidget-DKXJlnm9.js +2 -0
- package/dist/TreeMapChartWidget-DKXJlnm9.js.map +1 -0
- package/dist/TreeMapChartWidget.d.ts +7 -0
- package/dist/TreeMapChartWidget.js +2 -0
- package/dist/TreeMapChartWidget.js.map +1 -0
- package/dist/_baseSlice-CBpWu5XB.js +2 -0
- package/dist/_baseSlice-CBpWu5XB.js.map +1 -0
- package/dist/_commonjsHelpers-Doe7ti1T.js +2 -0
- package/dist/_commonjsHelpers-Doe7ti1T.js.map +1 -0
- package/dist/_stringToArray-aaWSQcKo.js +2 -0
- package/dist/_stringToArray-aaWSQcKo.js.map +1 -0
- package/dist/array-B0SXO2zY.js +2 -0
- package/dist/array-B0SXO2zY.js.map +1 -0
- package/dist/clipboard-BUUe2rGt.js +2 -0
- package/dist/clipboard-BUUe2rGt.js.map +1 -0
- package/dist/clsx-D83172mf.js +2 -0
- package/dist/clsx-D83172mf.js.map +1 -0
- package/dist/components/ArrowButton/index.d.ts +16 -0
- package/dist/components/ArrowButton/index.d.ts.map +1 -0
- package/dist/components/Attachment/Attachment.d.ts +10 -0
- package/dist/components/Attachment/Attachment.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentCode.d.ts +6 -0
- package/dist/components/Attachment/AttachmentCode.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentEmpty.d.ts +5 -0
- package/dist/components/Attachment/AttachmentEmpty.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentImage.d.ts +3 -0
- package/dist/components/Attachment/AttachmentImage.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentImageDiff.d.ts +3 -0
- package/dist/components/Attachment/AttachmentImageDiff.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentTable.d.ts +3 -0
- package/dist/components/Attachment/AttachmentTable.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentVideo.d.ts +3 -0
- package/dist/components/Attachment/AttachmentVideo.d.ts.map +1 -0
- package/dist/components/Attachment/CodeViewer.d.ts +8 -0
- package/dist/components/Attachment/CodeViewer.d.ts.map +1 -0
- package/dist/components/Attachment/HtmlPreview.d.ts +8 -0
- package/dist/components/Attachment/HtmlPreview.d.ts.map +1 -0
- package/dist/components/Attachment/HttpAttachment.d.ts +4 -0
- package/dist/components/Attachment/HttpAttachment.d.ts.map +1 -0
- package/dist/components/Attachment/MarkdownPreview.d.ts +8 -0
- package/dist/components/Attachment/MarkdownPreview.d.ts.map +1 -0
- package/dist/components/Attachment/MermaidPreview.d.ts +8 -0
- package/dist/components/Attachment/MermaidPreview.d.ts.map +1 -0
- package/dist/components/Attachment/htmlPreviewDocument.d.ts +3 -0
- package/dist/components/Attachment/htmlPreviewDocument.d.ts.map +1 -0
- package/dist/components/Attachment/iframe.d.ts +2 -0
- package/dist/components/Attachment/iframe.d.ts.map +1 -0
- package/dist/components/Attachment/index.d.ts +12 -0
- package/dist/components/Attachment/index.d.ts.map +1 -0
- package/dist/components/Attachment/mermaid.d.ts +3 -0
- package/dist/components/Attachment/mermaid.d.ts.map +1 -0
- package/dist/components/Attachment/model.d.ts +14 -0
- package/dist/components/Attachment/model.d.ts.map +1 -0
- package/dist/components/Attachment/prism-global.d.ts +2 -0
- package/dist/components/Attachment/prism-global.d.ts.map +1 -0
- package/dist/components/Attachment/prism-setup.d.ts +10 -0
- package/dist/components/Attachment/prism-setup.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +128 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/BarChart.d.ts +40 -0
- package/dist/components/Charts/BarChart/BarChart.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/BarChartTooltip.d.ts +12 -0
- package/dist/components/Charts/BarChart/BarChartTooltip.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/BottomAxisLine.d.ts +3 -0
- package/dist/components/Charts/BarChart/BottomAxisLine.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/Layers.d.ts +23 -0
- package/dist/components/Charts/BarChart/Layers.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/TrendLinesLayer.d.ts +8 -0
- package/dist/components/Charts/BarChart/TrendLinesLayer.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/context.d.ts +7 -0
- package/dist/components/Charts/BarChart/context.d.ts.map +1 -0
- package/dist/components/Charts/BarChart/utils.d.ts +13 -0
- package/dist/components/Charts/BarChart/utils.d.ts.map +1 -0
- package/dist/components/Charts/BarChartRenderer.d.ts +3 -0
- package/dist/components/Charts/BarChartRenderer.d.ts.map +1 -0
- package/dist/components/Charts/ChartTooltip/index.d.ts +6 -0
- package/dist/components/Charts/ChartTooltip/index.d.ts.map +1 -0
- package/dist/components/Charts/ChartTooltip/useChartTooltip.d.ts +14 -0
- package/dist/components/Charts/ChartTooltip/useChartTooltip.d.ts.map +1 -0
- package/dist/components/Charts/ChartWidget.d.ts +4 -0
- package/dist/components/Charts/ChartWidget.d.ts.map +1 -0
- package/dist/components/Charts/ChartWidget.types.d.ts +7 -0
- package/dist/components/Charts/ChartWidget.types.d.ts.map +1 -0
- package/dist/components/Charts/CurrentStatusChartWidget/AdditionalStats.d.ts +10 -0
- package/dist/components/Charts/CurrentStatusChartWidget/AdditionalStats.d.ts.map +1 -0
- package/dist/components/Charts/CurrentStatusChartWidget/constants.d.ts +9 -0
- package/dist/components/Charts/CurrentStatusChartWidget/constants.d.ts.map +1 -0
- package/dist/components/Charts/CurrentStatusChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/CurrentStatusChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/CurrentStatusChartWidget/parts.d.ts +11 -0
- package/dist/components/Charts/CurrentStatusChartWidget/parts.d.ts.map +1 -0
- package/dist/components/Charts/CurrentStatusChartWidget/types.d.ts +19 -0
- package/dist/components/Charts/CurrentStatusChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/CurrentStatusChartWidget/utils.d.ts +25 -0
- package/dist/components/Charts/CurrentStatusChartWidget/utils.d.ts.map +1 -0
- package/dist/components/Charts/DurationDynamicsChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/DurationDynamicsChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/DurationDynamicsChartWidget/types.d.ts +8 -0
- package/dist/components/Charts/DurationDynamicsChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/DurationsChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/DurationsChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/DurationsChartWidget/types.d.ts +8 -0
- package/dist/components/Charts/DurationsChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/EmptyDataStub/EmptyDataStub.d.ts +10 -0
- package/dist/components/Charts/EmptyDataStub/EmptyDataStub.d.ts.map +1 -0
- package/dist/components/Charts/EmptyDataStub/index.d.ts +2 -0
- package/dist/components/Charts/EmptyDataStub/index.d.ts.map +1 -0
- package/dist/components/Charts/FunnelChartRenderer.d.ts +3 -0
- package/dist/components/Charts/FunnelChartRenderer.d.ts.map +1 -0
- package/dist/components/Charts/HeatMap/HeatMap.d.ts +4 -0
- package/dist/components/Charts/HeatMap/HeatMap.d.ts.map +1 -0
- package/dist/components/Charts/HeatMap/Tooltip.d.ts +3 -0
- package/dist/components/Charts/HeatMap/Tooltip.d.ts.map +1 -0
- package/dist/components/Charts/HeatMap/config.d.ts +21 -0
- package/dist/components/Charts/HeatMap/config.d.ts.map +1 -0
- package/dist/components/Charts/HeatMap/index.d.ts +4 -0
- package/dist/components/Charts/HeatMap/index.d.ts.map +1 -0
- package/dist/components/Charts/HeatMap/types.d.ts +15 -0
- package/dist/components/Charts/HeatMap/types.d.ts.map +1 -0
- package/dist/components/Charts/HeatMapChartRenderer.d.ts +3 -0
- package/dist/components/Charts/HeatMapChartRenderer.d.ts.map +1 -0
- package/dist/components/Charts/HeatMapWidget/HeatMapWidget.d.ts +4 -0
- package/dist/components/Charts/HeatMapWidget/HeatMapWidget.d.ts.map +1 -0
- package/dist/components/Charts/HeatMapWidget/index.d.ts +3 -0
- package/dist/components/Charts/HeatMapWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/HeatMapWidget/types.d.ts +6 -0
- package/dist/components/Charts/HeatMapWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/Legend/LegendIndicator/index.d.ts +6 -0
- package/dist/components/Charts/Legend/LegendIndicator/index.d.ts.map +1 -0
- package/dist/components/Charts/Legend/LegendItem/index.d.ts +5 -0
- package/dist/components/Charts/Legend/LegendItem/index.d.ts.map +1 -0
- package/dist/components/Charts/Legend/LegendItem/types.d.ts +17 -0
- package/dist/components/Charts/Legend/LegendItem/types.d.ts.map +1 -0
- package/dist/components/Charts/Legend/index.d.ts +6 -0
- package/dist/components/Charts/Legend/index.d.ts.map +1 -0
- package/dist/components/Charts/PieChartRenderer.d.ts +3 -0
- package/dist/components/Charts/PieChartRenderer.d.ts.map +1 -0
- package/dist/components/Charts/StabilityDistributionWidget/index.d.ts +4 -0
- package/dist/components/Charts/StabilityDistributionWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/StabilityDistributionWidget/types.d.ts +8 -0
- package/dist/components/Charts/StabilityDistributionWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/StatusAgePyramidChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/StatusAgePyramidChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/StatusAgePyramidChartWidget/types.d.ts +11 -0
- package/dist/components/Charts/StatusAgePyramidChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/StatusDynamicsChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/StatusDynamicsChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/StatusDynamicsChartWidget/types.d.ts +18 -0
- package/dist/components/Charts/StatusDynamicsChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/StatusTransitionsChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/StatusTransitionsChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/StatusTransitionsChartWidget/types.d.ts +10 -0
- package/dist/components/Charts/StatusTransitionsChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/SuccessRatePieChart/index.d.ts +9 -0
- package/dist/components/Charts/SuccessRatePieChart/index.d.ts.map +1 -0
- package/dist/components/Charts/SuccessRatePieChart/successRate.d.ts +6 -0
- package/dist/components/Charts/SuccessRatePieChart/successRate.d.ts.map +1 -0
- package/dist/components/Charts/TestBaseGrowthDynamicsChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/TestBaseGrowthDynamicsChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/TestBaseGrowthDynamicsChartWidget/types.d.ts +10 -0
- package/dist/components/Charts/TestBaseGrowthDynamicsChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/TestingPyramidWidget/index.d.ts +19 -0
- package/dist/components/Charts/TestingPyramidWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/TrSeveritiesChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/TrSeveritiesChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/TrSeveritiesChartWidget/types.d.ts +9 -0
- package/dist/components/Charts/TrSeveritiesChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/Node.d.ts +3 -0
- package/dist/components/Charts/TreeMapChart/Node.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts +6 -0
- package/dist/components/Charts/TreeMapChart/TreeMapChart.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/TreeMapLegend/TreeMapLegend.d.ts +4 -0
- package/dist/components/Charts/TreeMapChart/TreeMapLegend/TreeMapLegend.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/TreeMapLegend/index.d.ts +3 -0
- package/dist/components/Charts/TreeMapChart/TreeMapLegend/index.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/TreeMapLegend/types.d.ts +8 -0
- package/dist/components/Charts/TreeMapChart/TreeMapLegend/types.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/TreeMapTooltip/TreeMapTooltip.d.ts +10 -0
- package/dist/components/Charts/TreeMapChart/TreeMapTooltip/TreeMapTooltip.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/config.d.ts +4 -0
- package/dist/components/Charts/TreeMapChart/config.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/index.d.ts +4 -0
- package/dist/components/Charts/TreeMapChart/index.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/types.d.ts +27 -0
- package/dist/components/Charts/TreeMapChart/types.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChart/utils.d.ts +5 -0
- package/dist/components/Charts/TreeMapChart/utils.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChartRenderer.d.ts +3 -0
- package/dist/components/Charts/TreeMapChartRenderer.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChartWidget/TreeMapChartWidget.d.ts +9 -0
- package/dist/components/Charts/TreeMapChartWidget/TreeMapChartWidget.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChartWidget/hooks.d.ts +4 -0
- package/dist/components/Charts/TreeMapChartWidget/hooks.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChartWidget/index.d.ts +4 -0
- package/dist/components/Charts/TreeMapChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/TreeMapChartWidget/types.d.ts +11 -0
- package/dist/components/Charts/TreeMapChartWidget/types.d.ts.map +1 -0
- package/dist/components/Charts/TrendChart/TrendChart.d.ts +4 -0
- package/dist/components/Charts/TrendChart/TrendChart.d.ts.map +1 -0
- package/dist/components/Charts/TrendChart/config.d.ts +13 -0
- package/dist/components/Charts/TrendChart/config.d.ts.map +1 -0
- package/dist/components/Charts/TrendChart/constants.d.ts +2 -0
- package/dist/components/Charts/TrendChart/constants.d.ts.map +1 -0
- package/dist/components/Charts/TrendChart/index.d.ts +5 -0
- package/dist/components/Charts/TrendChart/index.d.ts.map +1 -0
- package/dist/components/Charts/TrendChart/theme.d.ts +32 -0
- package/dist/components/Charts/TrendChart/theme.d.ts.map +1 -0
- package/dist/components/Charts/TrendChart/types.d.ts +53 -0
- package/dist/components/Charts/TrendChart/types.d.ts.map +1 -0
- package/dist/components/Charts/TrendChart/utils.d.ts +7 -0
- package/dist/components/Charts/TrendChart/utils.d.ts.map +1 -0
- package/dist/components/Charts/TrendChartWidget/index.d.ts +26 -0
- package/dist/components/Charts/TrendChartWidget/index.d.ts.map +1 -0
- package/dist/components/Charts/config.d.ts +12 -0
- package/dist/components/Charts/config.d.ts.map +1 -0
- package/dist/components/Charts/hooks/useTooltip.d.ts +9 -0
- package/dist/components/Charts/hooks/useTooltip.d.ts.map +1 -0
- package/dist/components/Charts/utils.d.ts +12 -0
- package/dist/components/Charts/utils.d.ts.map +1 -0
- package/dist/components/Counter/index.d.ts +10 -0
- package/dist/components/Counter/index.d.ts.map +1 -0
- package/dist/components/DimensionsProvider/index.d.ts +8 -0
- package/dist/components/DimensionsProvider/index.d.ts.map +1 -0
- package/dist/components/EmptyView/index.d.ts +16 -0
- package/dist/components/EmptyView/index.d.ts.map +1 -0
- package/dist/components/Grid/Grid.d.ts +28 -0
- package/dist/components/Grid/Grid.d.ts.map +1 -0
- package/dist/components/Grid/components/GridItem/GridItem.d.ts +21 -0
- package/dist/components/Grid/components/GridItem/GridItem.d.ts.map +1 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/DragHandle.d.ts +6 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/DragHandle.d.ts.map +1 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/components/DragHandleIcon.d.ts +6 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/components/DragHandleIcon.d.ts.map +1 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/components/index.d.ts +2 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/components/index.d.ts.map +1 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/index.d.ts +2 -0
- package/dist/components/Grid/components/GridItem/components/DragHandle/index.d.ts.map +1 -0
- package/dist/components/Grid/components/GridItem/components/index.d.ts +2 -0
- package/dist/components/Grid/components/GridItem/components/index.d.ts.map +1 -0
- package/dist/components/Grid/components/GridItem/index.d.ts +3 -0
- package/dist/components/Grid/components/GridItem/index.d.ts.map +1 -0
- package/dist/components/Grid/constants.d.ts +4 -0
- package/dist/components/Grid/constants.d.ts.map +1 -0
- package/dist/components/Grid/hooks/index.d.ts +2 -0
- package/dist/components/Grid/hooks/index.d.ts.map +1 -0
- package/dist/components/Grid/hooks/useSortable.d.ts +10 -0
- package/dist/components/Grid/hooks/useSortable.d.ts.map +1 -0
- package/dist/components/Grid/index.d.ts +5 -0
- package/dist/components/Grid/index.d.ts.map +1 -0
- package/dist/components/IconLabel/index.d.ts +10 -0
- package/dist/components/IconLabel/index.d.ts.map +1 -0
- package/dist/components/ImageDiff/index.d.ts +9 -0
- package/dist/components/ImageDiff/index.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/DiffModeSelector.d.ts +2 -0
- package/dist/components/ImageDiff/src/DiffModeSelector.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/DiffModeView.d.ts +2 -0
- package/dist/components/ImageDiff/src/DiffModeView.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/Image.d.ts +3 -0
- package/dist/components/ImageDiff/src/Image.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/Wrapper.d.ts +11 -0
- package/dist/components/ImageDiff/src/Wrapper.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/hooks.d.ts +37 -0
- package/dist/components/ImageDiff/src/hooks.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/i18n.d.ts +9 -0
- package/dist/components/ImageDiff/src/i18n.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/model.d.ts +20 -0
- package/dist/components/ImageDiff/src/model.d.ts.map +1 -0
- package/dist/components/ImageDiff/src/utils.d.ts +7 -0
- package/dist/components/ImageDiff/src/utils.d.ts.map +1 -0
- package/dist/components/Label/index.d.ts +3 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/LanguagePicker/index.d.ts +8 -0
- package/dist/components/LanguagePicker/index.d.ts.map +1 -0
- package/dist/components/LazyComponent/index.d.ts +12 -0
- package/dist/components/LazyComponent/index.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +9 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/LinkifiedText/index.d.ts +6 -0
- package/dist/components/LinkifiedText/index.d.ts.map +1 -0
- package/dist/components/Loadable/index.d.ts +16 -0
- package/dist/components/Loadable/index.d.ts.map +1 -0
- package/dist/components/Menu/index.d.ts +49 -0
- package/dist/components/Menu/index.d.ts.map +1 -0
- package/dist/components/MiddleEllipsis/index.d.ts +27 -0
- package/dist/components/MiddleEllipsis/index.d.ts.map +1 -0
- package/dist/components/Modal/Gallery.d.ts +5 -0
- package/dist/components/Modal/Gallery.d.ts.map +1 -0
- package/dist/components/Modal/Thumb.d.ts +10 -0
- package/dist/components/Modal/Thumb.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +25 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/OverviewLink/index.d.ts +16 -0
- package/dist/components/OverviewLink/index.d.ts.map +1 -0
- package/dist/components/PageLoader/index.d.ts +2 -0
- package/dist/components/PageLoader/index.d.ts.map +1 -0
- package/dist/components/ReportLogo/index.d.ts +5 -0
- package/dist/components/ReportLogo/index.d.ts.map +1 -0
- package/dist/components/ReportLogoFull/index.d.ts +4 -0
- package/dist/components/ReportLogoFull/index.d.ts.map +1 -0
- package/dist/components/ReportSummaryCard/components/MetadataItem/index.d.ts +16 -0
- package/dist/components/ReportSummaryCard/components/MetadataItem/index.d.ts.map +1 -0
- package/dist/components/ReportSummaryCard/index.d.ts +8 -0
- package/dist/components/ReportSummaryCard/index.d.ts.map +1 -0
- package/dist/components/ReportSummaryCard/model.d.ts +22 -0
- package/dist/components/ReportSummaryCard/model.d.ts.map +1 -0
- package/dist/components/SearchBox/index.d.ts +13 -0
- package/dist/components/SearchBox/index.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +5 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/StatusLabel/index.d.ts +8 -0
- package/dist/components/StatusLabel/index.d.ts.map +1 -0
- package/dist/components/SvgIcon/index.d.ts +124 -0
- package/dist/components/SvgIcon/index.d.ts.map +1 -0
- package/dist/components/Tabs/index.d.ts +27 -0
- package/dist/components/Tabs/index.d.ts.map +1 -0
- package/dist/components/Tag/index.d.ts +10 -0
- package/dist/components/Tag/index.d.ts.map +1 -0
- package/dist/components/ThemeButton/index.d.ts +7 -0
- package/dist/components/ThemeButton/index.d.ts.map +1 -0
- package/dist/components/ThemeProvider/index.d.ts +7 -0
- package/dist/components/ThemeProvider/index.d.ts.map +1 -0
- package/dist/components/Timeline/DurationRange.d.ts +30 -0
- package/dist/components/Timeline/DurationRange.d.ts.map +1 -0
- package/dist/components/Timeline/GroupTooltip.d.ts +9 -0
- package/dist/components/Timeline/GroupTooltip.d.ts.map +1 -0
- package/dist/components/Timeline/ResponsiveWrapper/context.d.ts +6 -0
- package/dist/components/Timeline/ResponsiveWrapper/context.d.ts.map +1 -0
- package/dist/components/Timeline/ResponsiveWrapper/index.d.ts +7 -0
- package/dist/components/Timeline/ResponsiveWrapper/index.d.ts.map +1 -0
- package/dist/components/Timeline/SegmentTooltip.d.ts +7 -0
- package/dist/components/Timeline/SegmentTooltip.d.ts.map +1 -0
- package/dist/components/Timeline/TimeOverview.d.ts +21 -0
- package/dist/components/Timeline/TimeOverview.d.ts.map +1 -0
- package/dist/components/Timeline/Timeline.d.ts +23 -0
- package/dist/components/Timeline/Timeline.d.ts.map +1 -0
- package/dist/components/Timeline/hooks/useDurationRange.d.ts +7 -0
- package/dist/components/Timeline/hooks/useDurationRange.d.ts.map +1 -0
- package/dist/components/Timeline/index.d.ts +2 -0
- package/dist/components/Timeline/index.d.ts.map +1 -0
- package/dist/components/Timeline/types.d.ts +35 -0
- package/dist/components/Timeline/types.d.ts.map +1 -0
- package/dist/components/Timeline/utils.d.ts +27 -0
- package/dist/components/Timeline/utils.d.ts.map +1 -0
- package/dist/components/Toggle/index.d.ts +10 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +36 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tree/Tree.d.ts +27 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -0
- package/dist/components/Tree/TreeHeader.d.ts +18 -0
- package/dist/components/Tree/TreeHeader.d.ts.map +1 -0
- package/dist/components/Tree/TreeItem.d.ts +25 -0
- package/dist/components/Tree/TreeItem.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemIcon.d.ts +10 -0
- package/dist/components/Tree/TreeItemIcon.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemInfo/index.d.ts +14 -0
- package/dist/components/Tree/TreeItemInfo/index.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemInfo/utils.d.ts +3 -0
- package/dist/components/Tree/TreeItemInfo/utils.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemRetries/index.d.ts +5 -0
- package/dist/components/Tree/TreeItemRetries/index.d.ts.map +1 -0
- package/dist/components/Tree/TreeSection.d.ts +12 -0
- package/dist/components/Tree/TreeSection.d.ts.map +1 -0
- package/dist/components/Tree/TreeStatusBar.d.ts +14 -0
- package/dist/components/Tree/TreeStatusBar.d.ts.map +1 -0
- package/dist/components/Tree/index.d.ts +7 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +37 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/components/Widget/index.d.ts +9 -0
- package/dist/components/Widget/index.d.ts.map +1 -0
- package/dist/config-CgDglkkw.js +2 -0
- package/dist/config-CgDglkkw.js.map +1 -0
- package/dist/constants-D-YBPtws.js +2 -0
- package/dist/constants-D-YBPtws.js.map +1 -0
- package/dist/core.d.ts +577 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +2 -0
- package/dist/core.js.map +1 -0
- package/dist/floating-ui.dom-B9YqEzUD.js +2 -0
- package/dist/floating-ui.dom-B9YqEzUD.js.map +1 -0
- package/dist/hooks/useDebouncedCallback.d.ts +6 -0
- package/dist/hooks/useDebouncedCallback.d.ts.map +1 -0
- package/dist/hooks/useElementTruncation.d.ts +9 -0
- package/dist/hooks/useElementTruncation.d.ts.map +1 -0
- package/dist/identity-DBvQ9SaG.js +2 -0
- package/dist/identity-DBvQ9SaG.js.map +1 -0
- package/dist/index-B-4syZ2J.d.ts +25 -0
- package/dist/index-B9kLHMy9.d.ts +19 -0
- package/dist/index-BLcyRUFW.js +2 -0
- package/dist/index-BLcyRUFW.js.map +1 -0
- package/dist/index-BZ-V3udE.js +2 -0
- package/dist/index-BZ-V3udE.js.map +1 -0
- package/dist/index-BzcM2nAl.js +2 -0
- package/dist/index-BzcM2nAl.js.map +1 -0
- package/dist/index-CCQ13d2t.js +2 -0
- package/dist/index-CCQ13d2t.js.map +1 -0
- package/dist/index-CbwuBF9w.js +2 -0
- package/dist/index-CbwuBF9w.js.map +1 -0
- package/dist/index-Cf1z5wAO.js +2 -0
- package/dist/index-Cf1z5wAO.js.map +1 -0
- package/dist/index-D2c5viX_.js +2 -0
- package/dist/index-D2c5viX_.js.map +1 -0
- package/dist/index-DQIPuqU4.js +2 -0
- package/dist/index-DQIPuqU4.js.map +1 -0
- package/dist/index-DYL-tbfk.js +2 -0
- package/dist/index-DYL-tbfk.js.map +1 -0
- package/dist/index-Dq7O-bm8.js +2 -0
- package/dist/index-Dq7O-bm8.js.map +1 -0
- package/dist/index-QmAJXsgx.d.ts +50 -0
- package/dist/index-k2XcinIa.js +2 -0
- package/dist/index-k2XcinIa.js.map +1 -0
- package/dist/index-qMwNH4DY.js +2 -0
- package/dist/index-qMwNH4DY.js.map +1 -0
- package/dist/index-uBEpZNBn.js +2 -0
- package/dist/index-uBEpZNBn.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +37 -819
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +1 -29
- package/dist/index.js.map +1 -1
- package/dist/index.module-Bdu_gwCw.js +2 -0
- package/dist/index.module-Bdu_gwCw.js.map +1 -0
- package/dist/line-CEBDCBhb.js +2 -0
- package/dist/line-CEBDCBhb.js.map +1 -0
- package/dist/linear-C7uKb8Tk.js +2 -0
- package/dist/linear-C7uKb8Tk.js.map +1 -0
- package/dist/nivo-annotations-OXtu3nXs.js +2 -0
- package/dist/nivo-annotations-OXtu3nXs.js.map +1 -0
- package/dist/nivo-axes-3Cy5TCy7.js +2 -0
- package/dist/nivo-axes-3Cy5TCy7.js.map +1 -0
- package/dist/nivo-colors-fVDn0-vW.js +3 -0
- package/dist/nivo-colors-fVDn0-vW.js.map +1 -0
- package/dist/nivo-legends-BIaWaGVX.js +2 -0
- package/dist/nivo-legends-BIaWaGVX.js.map +1 -0
- package/dist/omit-Cims_XVO.js +2 -0
- package/dist/omit-Cims_XVO.js.map +1 -0
- package/dist/prism-global-B3qB0vXd.js +18 -0
- package/dist/prism-global-B3qB0vXd.js.map +1 -0
- package/dist/successRate-De1K9gog.d.ts +3 -0
- package/dist/successRate-rrLYYsum.js +2 -0
- package/dist/successRate-rrLYYsum.js.map +1 -0
- package/dist/time-CyaymdXm.js +2 -0
- package/dist/time-CyaymdXm.js.map +1 -0
- package/dist/toNumber-Cpsf6DxM.js +2 -0
- package/dist/toNumber-Cpsf6DxM.js.map +1 -0
- package/dist/toString-Ccq3A8Sl.js +2 -0
- package/dist/toString-Ccq3A8Sl.js.map +1 -0
- package/dist/truncate-Bk-Lghrl.js +2 -0
- package/dist/truncate-Bk-Lghrl.js.map +1 -0
- package/dist/upperFirst-jXpCKAQr.js +2 -0
- package/dist/upperFirst-jXpCKAQr.js.map +1 -0
- package/dist/useTooltip-VGYCawp2.js +2 -0
- package/dist/useTooltip-VGYCawp2.js.map +1 -0
- package/dist/utcTime-ClVTKNFl.js +2 -0
- package/dist/utcTime-ClVTKNFl.js.map +1 -0
- package/dist/utils-DKmgmsaJ.js +6 -0
- package/dist/utils-DKmgmsaJ.js.map +1 -0
- package/dist/utils-DfVSL1lz.js +2 -0
- package/dist/utils-DfVSL1lz.js.map +1 -0
- package/package.json +159 -20
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,577 @@
|
|
|
1
|
+
import * as preact from 'preact';
|
|
2
|
+
import { SVGAttributes, JSX, ComponentChild, Ref, FunctionalComponent, HTMLAttributes, VNode, ComponentChildren, FunctionComponent, ComponentType } from 'preact';
|
|
3
|
+
import { Placement } from '@floating-ui/dom';
|
|
4
|
+
import { MutableRefObject } from 'preact/compat';
|
|
5
|
+
import { Signal } from '@preact/signals';
|
|
6
|
+
import { AttachmentTestStepResult, DefaultTreeGroup, TestStatus, ResolutionCategory, TestStatusTransition, Statistic } from '@allurereport/core-api';
|
|
7
|
+
import { SubtreeToggleAction, LangLocale } from '@allurereport/web-commons';
|
|
8
|
+
export { I as ImageDiff } from './index-B9kLHMy9.js';
|
|
9
|
+
|
|
10
|
+
declare const allureIcons: {
|
|
11
|
+
readonly amazon: "amazon";
|
|
12
|
+
readonly arrowsChevronDown: "arrows-chevron-down";
|
|
13
|
+
readonly azure: "azure";
|
|
14
|
+
readonly bitbucket: "bitbucket";
|
|
15
|
+
readonly circleci: "circleci";
|
|
16
|
+
readonly draggable: "draggable";
|
|
17
|
+
readonly drone: "drone";
|
|
18
|
+
readonly environment: "environment";
|
|
19
|
+
readonly github: "github";
|
|
20
|
+
readonly gitlab: "gitlab";
|
|
21
|
+
readonly jenkins: "jenkins";
|
|
22
|
+
readonly lineAlertsAlertCircle: "line-alerts-alert-circle";
|
|
23
|
+
readonly lineAlertsFixed: "line-alerts-fixed";
|
|
24
|
+
readonly lineAlertsMalfunctioned: "line-alerts-malfunctioned";
|
|
25
|
+
readonly lineAlertsNew: "line-alerts-new";
|
|
26
|
+
readonly lineAlertsNotificationBox: "line-alerts-notification-box";
|
|
27
|
+
readonly lineAlertsRegressed: "line-alerts-regressed";
|
|
28
|
+
readonly lineArrowsArrowLeft: "line-arrows-arrow-left";
|
|
29
|
+
readonly lineArrowsChevronDownDouble: "line-arrows-chevron-down-double";
|
|
30
|
+
readonly lineArrowsChevronDown: "line-arrows-chevron-down";
|
|
31
|
+
readonly lineArrowsChevronRight: "line-arrows-chevron-right";
|
|
32
|
+
readonly lineArrowsChevronUpDouble: "line-arrows-chevron-up-double";
|
|
33
|
+
readonly lineArrowsChevronUp: "line-arrows-chevron-up";
|
|
34
|
+
readonly lineArrowsCornerDownRight: "line-arrows-corner-down-right";
|
|
35
|
+
readonly lineArrowsExpand3: "line-arrows-expand-3";
|
|
36
|
+
readonly lineArrowsRefreshCcw1: "line-arrows-refresh-ccw-1";
|
|
37
|
+
readonly lineArrowsSortLineAsc: "line-arrows-sort-line-asc";
|
|
38
|
+
readonly lineArrowsSortLineDesc: "line-arrows-sort-line-desc";
|
|
39
|
+
readonly lineArrowsSwitchVertical1: "line-arrows-switch-vertical-1";
|
|
40
|
+
readonly lineChartsBarChartSquare: "line-charts-bar-chart-square";
|
|
41
|
+
readonly lineChartsTimeline: "line-charts-timeline";
|
|
42
|
+
readonly lineDevBug2: "line-dev-bug-2";
|
|
43
|
+
readonly lineDevCodeSquare: "line-dev-code-square";
|
|
44
|
+
readonly lineDevDataflow3: "line-dev-dataflow-3";
|
|
45
|
+
readonly lineFilesClipboardCheck: "line-files-clipboard-check";
|
|
46
|
+
readonly lineFilesFile2: "line-files-file-2";
|
|
47
|
+
readonly lineFilesFileAttachment2: "line-files-file-attachment-2";
|
|
48
|
+
readonly lineFilesFolder: "line-files-folder";
|
|
49
|
+
readonly lineGeneralCheckCircle: "line-general-check-circle";
|
|
50
|
+
readonly lineGeneralCheck: "line-general-check";
|
|
51
|
+
readonly lineGeneralChecklist3: "line-general-checklist3";
|
|
52
|
+
readonly lineGeneralCopy3: "line-general-copy-3";
|
|
53
|
+
readonly lineGeneralDownloadCloud: "line-general-download-cloud";
|
|
54
|
+
readonly lineGeneralEqual: "line-general-equal";
|
|
55
|
+
readonly lineGeneralEye: "line-general-eye";
|
|
56
|
+
readonly lineGeneralHelpCircle: "line-general-help-circle";
|
|
57
|
+
readonly lineGeneralHomeLine: "line-general-home-line";
|
|
58
|
+
readonly lineGeneralInfoCircle: "line-general-info-circle";
|
|
59
|
+
readonly lineGeneralLink1: "line-general-link-1";
|
|
60
|
+
readonly lineGeneralLinkExternal: "line-general-link-external";
|
|
61
|
+
readonly lineGeneralMinusCircle: "line-general-minus-circle";
|
|
62
|
+
readonly lineGeneralSearchMd: "line-general-search-md";
|
|
63
|
+
readonly lineGeneralSettings1: "line-general-settings-1";
|
|
64
|
+
readonly lineGeneralXCircle: "line-general-x-circle";
|
|
65
|
+
readonly lineGeneralXClose: "line-general-x-close";
|
|
66
|
+
readonly lineGeneralZap: "line-general-zap";
|
|
67
|
+
readonly lineHelpersFlag: "line-helpers-flag";
|
|
68
|
+
readonly lineHelpersPlayCircle: "line-helpers-play-circle";
|
|
69
|
+
readonly lineIconBomb2: "line-icon-bomb-2";
|
|
70
|
+
readonly lineImagesImage: "line-images-image";
|
|
71
|
+
readonly lineLayoutsColumn2: "line-layouts-columns-2";
|
|
72
|
+
readonly lineLayoutsColumns2: "line-layouts-columns-2";
|
|
73
|
+
readonly lineLayoutsLayoutTop: "line-layouts-layout-top";
|
|
74
|
+
readonly lineLayoutsMaximize2: "line-layouts-maximize-2";
|
|
75
|
+
readonly lineLayoutsMinimize2: "line-layouts-minimize-2";
|
|
76
|
+
readonly lineSecurityKey: "line-security-key";
|
|
77
|
+
readonly lineShapesDotCircle: "line-shapes-dot-circle";
|
|
78
|
+
readonly lineShapesMoon: "line-shapes-moon";
|
|
79
|
+
readonly lineShapesSun: "line-shapes-sun";
|
|
80
|
+
readonly lineShapesThemeAuto: "line-shapes-theme-auto";
|
|
81
|
+
readonly lineTimeClockStopwatch: "line-time-clock-stopwatch";
|
|
82
|
+
readonly playwrightLogo: "playwright-logo";
|
|
83
|
+
readonly reportLogo: "report-logo";
|
|
84
|
+
readonly solidAlertCircle: "solid-alert-circle";
|
|
85
|
+
readonly solidCheckCircle: "solid-check-circle";
|
|
86
|
+
readonly solidHelpCircle: "solid-help-circle";
|
|
87
|
+
readonly solidMinusCircle: "solid-minus-circle";
|
|
88
|
+
readonly solidPlusCircle: "solid-plus-circle";
|
|
89
|
+
readonly solidXCircle: "solid-x-circle";
|
|
90
|
+
readonly spinner: "spinner";
|
|
91
|
+
readonly testNew: "test-new";
|
|
92
|
+
readonly viewOff: "view-off";
|
|
93
|
+
readonly view: "view";
|
|
94
|
+
};
|
|
95
|
+
type SvgIconProps = Omit<SVGAttributes<SVGSVGElement>, "className" | "id" | "size" | "inline"> & {
|
|
96
|
+
"size"?: "xs" | "s" | "m" | "l" | "xl";
|
|
97
|
+
"className"?: string;
|
|
98
|
+
"id": string;
|
|
99
|
+
"inline"?: boolean;
|
|
100
|
+
"data-testid"?: string;
|
|
101
|
+
};
|
|
102
|
+
declare const SvgIcon: ({ id, size, inline, className, "data-testid": dataTestId, ...restProps }: SvgIconProps) => JSX.Element | null;
|
|
103
|
+
|
|
104
|
+
type BaseBtnProps = {
|
|
105
|
+
text?: string;
|
|
106
|
+
isPending?: boolean;
|
|
107
|
+
size?: "xs" | "s" | "m" | "l";
|
|
108
|
+
style?: "primary" | "outline" | "ghost" | "flat" | "raised";
|
|
109
|
+
action?: "default" | "danger" | "positive" | "accent";
|
|
110
|
+
icon?: string;
|
|
111
|
+
iconSize?: "xs" | "s" | "m";
|
|
112
|
+
iconColor?: "primary" | "secondary";
|
|
113
|
+
fullWidth?: boolean;
|
|
114
|
+
isIconButton?: boolean;
|
|
115
|
+
isDropdownButton?: boolean;
|
|
116
|
+
onClick?: (e: MouseEvent) => void;
|
|
117
|
+
type?: HTMLButtonElement["type"];
|
|
118
|
+
isDisabled?: boolean;
|
|
119
|
+
isActive?: boolean;
|
|
120
|
+
focusable?: boolean;
|
|
121
|
+
href?: string;
|
|
122
|
+
rounded?: boolean;
|
|
123
|
+
target?: HTMLAnchorElement["target"];
|
|
124
|
+
rel?: HTMLAnchorElement["rel"];
|
|
125
|
+
className?: string;
|
|
126
|
+
dataTestId?: string;
|
|
127
|
+
leadingSlot?: ComponentChild;
|
|
128
|
+
trailingSlot?: ComponentChild;
|
|
129
|
+
isLink?: boolean;
|
|
130
|
+
isTextTruncated?: boolean;
|
|
131
|
+
textRef?: Ref<HTMLSpanElement>;
|
|
132
|
+
};
|
|
133
|
+
type ButtonProps = Omit<BaseBtnProps, "text" | "isIconButton" | "isDropdownButton" | "rounded" | "isLink"> & Pick<Required<BaseBtnProps>, "text">;
|
|
134
|
+
declare const Button: (props: ButtonProps) => preact.JSX.Element;
|
|
135
|
+
type IconButtonProps = Omit<BaseBtnProps, "text" | "icon" | "autoFocus" | "fullWidth" | "isIconButton" | "isDropdownButton" | "trailingSlot" | "leadingSlot" | "isLink"> & Pick<Required<BaseBtnProps>, "icon"> & {
|
|
136
|
+
rounded?: boolean;
|
|
137
|
+
};
|
|
138
|
+
declare const IconButton: (props: IconButtonProps) => preact.JSX.Element;
|
|
139
|
+
type DropdownButtonProps = Omit<BaseBtnProps, "type" | "autoFocus" | "isDropdownButton" | "isIconButton" | "text" | "isActive" | "isLink"> & Pick<Required<BaseBtnProps>, "text"> & {
|
|
140
|
+
isExpanded?: boolean;
|
|
141
|
+
};
|
|
142
|
+
declare const DropdownButton: (props: DropdownButtonProps) => preact.JSX.Element;
|
|
143
|
+
declare const ButtonLink: (props: Omit<BaseBtnProps, "href" | "isLink"> & Pick<Required<BaseBtnProps>, "href">) => preact.JSX.Element;
|
|
144
|
+
|
|
145
|
+
type OverviewLinkProps = {
|
|
146
|
+
href: string;
|
|
147
|
+
text: string;
|
|
148
|
+
};
|
|
149
|
+
declare const OverviewLink: ({ href, text }: OverviewLinkProps) => preact.JSX.Element;
|
|
150
|
+
|
|
151
|
+
type MiddleEllipsisProps = {
|
|
152
|
+
text: string;
|
|
153
|
+
startLength?: number;
|
|
154
|
+
endLength?: number;
|
|
155
|
+
ellipsis?: string;
|
|
156
|
+
className?: string;
|
|
157
|
+
};
|
|
158
|
+
declare const MiddleEllipsis: ({ text, startLength, endLength, ellipsis, className, }: MiddleEllipsisProps) => preact.JSX.Element;
|
|
159
|
+
|
|
160
|
+
type SpinnerProps = {
|
|
161
|
+
size?: "s" | "m";
|
|
162
|
+
};
|
|
163
|
+
declare const Spinner: ({ size }: SpinnerProps) => preact.JSX.Element;
|
|
164
|
+
|
|
165
|
+
type TextProps<Tag extends keyof JSX.IntrinsicElements = "span"> = ({
|
|
166
|
+
type?: "paragraph";
|
|
167
|
+
size?: "s" | "m" | "l";
|
|
168
|
+
} | {
|
|
169
|
+
type: "ui";
|
|
170
|
+
size: "s" | "m" | "l" | "xs";
|
|
171
|
+
}) & {
|
|
172
|
+
className?: string;
|
|
173
|
+
bold?: boolean;
|
|
174
|
+
tag?: Tag;
|
|
175
|
+
} & Omit<JSX.IntrinsicElements[Tag], "type" | "size" | "className" | "bold" | "tag">;
|
|
176
|
+
declare const Text: <Tag extends keyof JSX.IntrinsicElements = "span">({ size, tag: ElementTag, type, bold, className, children, ...rest }: TextProps<Tag>) => JSX.Element | null;
|
|
177
|
+
type CodeProps = {
|
|
178
|
+
type?: "paragraph" | "ui";
|
|
179
|
+
size?: "s" | "m";
|
|
180
|
+
className?: string;
|
|
181
|
+
bold?: boolean;
|
|
182
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
183
|
+
};
|
|
184
|
+
declare const Code: FunctionalComponent<CodeProps>;
|
|
185
|
+
type HeadingProps = {
|
|
186
|
+
size?: "s" | "m" | "l";
|
|
187
|
+
className?: string;
|
|
188
|
+
tag?: keyof JSX.IntrinsicElements;
|
|
189
|
+
} & Omit<HTMLAttributes, "size" | "className" | "tag">;
|
|
190
|
+
declare const Heading: FunctionalComponent<HeadingProps>;
|
|
191
|
+
|
|
192
|
+
type LinkifiedTextProps<Tag extends keyof preact.JSX.IntrinsicElements = "span"> = Omit<TextProps<Tag>, "children"> & {
|
|
193
|
+
text: string;
|
|
194
|
+
};
|
|
195
|
+
declare const LinkifiedText: <Tag extends keyof preact.JSX.IntrinsicElements = "span">({ text, ...textProps }: LinkifiedTextProps<Tag>) => preact.JSX.Element;
|
|
196
|
+
|
|
197
|
+
interface TooltipWrapperProps {
|
|
198
|
+
"tooltipText"?: string;
|
|
199
|
+
"tooltipTextAfterClick"?: string;
|
|
200
|
+
"tooltipComponent"?: FunctionalComponent | VNode;
|
|
201
|
+
"children": VNode;
|
|
202
|
+
"placement"?: "top" | "bottom" | "left" | "right";
|
|
203
|
+
"triggerMode"?: "hover" | "click";
|
|
204
|
+
"autoHideDelay"?: number;
|
|
205
|
+
"isTriggerActive"?: boolean;
|
|
206
|
+
"data-testid"?: string;
|
|
207
|
+
"showDelay"?: number;
|
|
208
|
+
"className"?: string;
|
|
209
|
+
"triggerClassName"?: string;
|
|
210
|
+
}
|
|
211
|
+
interface TooltipProps {
|
|
212
|
+
"data-testid"?: string;
|
|
213
|
+
}
|
|
214
|
+
declare const Tooltip: FunctionalComponent<TooltipProps>;
|
|
215
|
+
declare const useTooltip: <TriggerRef extends HTMLElement = HTMLElement, TooltipRef extends HTMLElement = HTMLElement>(props: {
|
|
216
|
+
placement?: Placement;
|
|
217
|
+
isVisible: boolean;
|
|
218
|
+
triggerRef: MutableRefObject<TriggerRef>;
|
|
219
|
+
tooltipRef: MutableRefObject<TooltipRef>;
|
|
220
|
+
}) => void;
|
|
221
|
+
declare const TooltipWrapper: FunctionalComponent<TooltipWrapperProps>;
|
|
222
|
+
|
|
223
|
+
type UseElementTruncationOptions = {
|
|
224
|
+
observeResize?: boolean;
|
|
225
|
+
};
|
|
226
|
+
declare const useElementTruncation: <T extends HTMLElement>(dependencies: ReadonlyArray<unknown>, options?: UseElementTruncationOptions) => {
|
|
227
|
+
ref: (node: T | null) => void;
|
|
228
|
+
isTruncated: boolean;
|
|
229
|
+
};
|
|
230
|
+
|
|
231
|
+
interface StoreSignalState<T> {
|
|
232
|
+
error?: string;
|
|
233
|
+
loading: boolean;
|
|
234
|
+
data?: T;
|
|
235
|
+
}
|
|
236
|
+
type LoadableProps<T, K = T> = {
|
|
237
|
+
source: Signal<StoreSignalState<T>>;
|
|
238
|
+
transformData?: (data: T) => K;
|
|
239
|
+
renderData: (data: K) => JSX.Element;
|
|
240
|
+
renderLoader?: () => JSX.Element;
|
|
241
|
+
renderError?: (error: string) => JSX.Element;
|
|
242
|
+
};
|
|
243
|
+
declare const Loadable: <T, K = T>(props: LoadableProps<T, K>) => JSX.Element | null;
|
|
244
|
+
|
|
245
|
+
declare const PageLoader: () => preact.JSX.Element;
|
|
246
|
+
|
|
247
|
+
type Props$5 = {
|
|
248
|
+
placeholder?: string;
|
|
249
|
+
error?: string;
|
|
250
|
+
value: string;
|
|
251
|
+
onChange: (value: string) => void;
|
|
252
|
+
changeDebounce?: number;
|
|
253
|
+
leadingSlot?: ComponentChild;
|
|
254
|
+
trailingSlot?: ComponentChild;
|
|
255
|
+
};
|
|
256
|
+
declare const SearchBox: (props: Props$5) => preact.JSX.Element;
|
|
257
|
+
|
|
258
|
+
declare const Menu: {
|
|
259
|
+
(props: {
|
|
260
|
+
children: ComponentChildren;
|
|
261
|
+
isInitialOpened?: boolean;
|
|
262
|
+
size?: "xs" | "s" | "m" | "l" | "xl";
|
|
263
|
+
placement?: "bottom-start" | "bottom-end";
|
|
264
|
+
menuTrigger: (props: {
|
|
265
|
+
onClick: () => void;
|
|
266
|
+
isOpened: boolean;
|
|
267
|
+
setIsOpened: (isOpened: boolean) => void;
|
|
268
|
+
}) => VNode;
|
|
269
|
+
menuTriggerWrapper?: "div" | "span";
|
|
270
|
+
}): preact.JSX.Element;
|
|
271
|
+
Section: FunctionalComponent<{}>;
|
|
272
|
+
Item: FunctionalComponent<ItemProps>;
|
|
273
|
+
ItemWithCheckmark: FunctionalComponent<Omit<ItemProps, "rightSlot"> & {
|
|
274
|
+
isChecked: boolean;
|
|
275
|
+
}>;
|
|
276
|
+
};
|
|
277
|
+
type ItemProps = {
|
|
278
|
+
children: ComponentChildren;
|
|
279
|
+
onClick?: () => void;
|
|
280
|
+
href?: string;
|
|
281
|
+
leadingIcon?: string;
|
|
282
|
+
leadingIconFilled?: boolean;
|
|
283
|
+
copyValue?: string;
|
|
284
|
+
rightSlot?: ComponentChildren;
|
|
285
|
+
showRightSlotOnHover?: boolean;
|
|
286
|
+
closeMenuOnClick?: boolean;
|
|
287
|
+
ariaLabel?: string;
|
|
288
|
+
setIsOpened?: (isOpened: boolean) => void;
|
|
289
|
+
dataTestId?: string;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
interface ArrowButtonProps {
|
|
293
|
+
"aria-controls"?: string;
|
|
294
|
+
"aria-expanded"?: boolean;
|
|
295
|
+
"aria-label"?: string;
|
|
296
|
+
"isOpened"?: boolean;
|
|
297
|
+
"iconSize"?: "m" | "xs" | "s";
|
|
298
|
+
"buttonSize"?: "m" | "xs" | "s";
|
|
299
|
+
"className"?: string;
|
|
300
|
+
"icon"?: string;
|
|
301
|
+
"onClick"?: VoidFunction;
|
|
302
|
+
"tag"?: keyof JSX.IntrinsicElements;
|
|
303
|
+
"type"?: "button" | "reset" | "submit";
|
|
304
|
+
}
|
|
305
|
+
declare const ArrowButton: FunctionalComponent<ArrowButtonProps>;
|
|
306
|
+
|
|
307
|
+
type ModalGalleryProps = {
|
|
308
|
+
attachments: AttachmentTestStepResult[] | undefined;
|
|
309
|
+
};
|
|
310
|
+
interface ModalDataProps<T = any> {
|
|
311
|
+
data?: T;
|
|
312
|
+
component: VNode;
|
|
313
|
+
preview?: boolean;
|
|
314
|
+
isModalOpen?: boolean;
|
|
315
|
+
closeModal?: () => void;
|
|
316
|
+
attachments?: AttachmentTestStepResult[];
|
|
317
|
+
title?: string;
|
|
318
|
+
}
|
|
319
|
+
interface ModalTranslations {
|
|
320
|
+
tooltipPreview: string;
|
|
321
|
+
tooltipSyntaxHighlight?: string;
|
|
322
|
+
tooltipDownload: string;
|
|
323
|
+
openInNewTabButton: string;
|
|
324
|
+
}
|
|
325
|
+
interface ModalTranslationsProps {
|
|
326
|
+
translations: ModalTranslations;
|
|
327
|
+
}
|
|
328
|
+
declare const Modal: ({ data, isModalOpen, preview: initialPreview, component, attachments, closeModal, translations, title, }: ModalDataProps & ModalTranslationsProps) => preact.JSX.Element | null;
|
|
329
|
+
|
|
330
|
+
type Status = TestStatus | "total";
|
|
331
|
+
|
|
332
|
+
/**
|
|
333
|
+
* Tree which contains tree leaves instead of their IDs and recursive trees structure instead of groups
|
|
334
|
+
*/
|
|
335
|
+
type RecursiveTree = DefaultTreeGroup & {
|
|
336
|
+
nodeId: string;
|
|
337
|
+
leaves: TreeLeaf[];
|
|
338
|
+
trees: RecursiveTree[];
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
type TreeLeaf = {
|
|
342
|
+
id: string;
|
|
343
|
+
nodeId: string;
|
|
344
|
+
name: string;
|
|
345
|
+
status?: TestStatus;
|
|
346
|
+
duration?: number;
|
|
347
|
+
groupOrder?: number;
|
|
348
|
+
flaky?: boolean;
|
|
349
|
+
retry?: boolean;
|
|
350
|
+
retriesCount?: number;
|
|
351
|
+
retriesStatusChange?: boolean;
|
|
352
|
+
resolution?: ResolutionCategory;
|
|
353
|
+
transition?: TestStatusTransition;
|
|
354
|
+
transitionTooltip?: string;
|
|
355
|
+
tooltips?: Record<string, string>;
|
|
356
|
+
parameters?: string[];
|
|
357
|
+
};
|
|
358
|
+
|
|
359
|
+
interface TreeProps {
|
|
360
|
+
statistic?: Statistic;
|
|
361
|
+
reportStatistic?: Statistic;
|
|
362
|
+
tree: RecursiveTree;
|
|
363
|
+
name?: string;
|
|
364
|
+
root?: boolean;
|
|
365
|
+
statusFilter?: Status;
|
|
366
|
+
collapsedTrees: Set<string>;
|
|
367
|
+
toggleTree: (id: string, openedByDefault?: boolean) => void;
|
|
368
|
+
navigateTo: (id: string) => void;
|
|
369
|
+
routeId?: string;
|
|
370
|
+
focusedId?: string;
|
|
371
|
+
focusIdPrefix?: string;
|
|
372
|
+
isGroupOpened?: (scopedNodeId: string, openedByDefault: boolean) => boolean;
|
|
373
|
+
showMoreLabel?: string;
|
|
374
|
+
subtreeToggleLabels?: Record<SubtreeToggleAction, string>;
|
|
375
|
+
}
|
|
376
|
+
declare const Tree: FunctionalComponent<TreeProps>;
|
|
377
|
+
|
|
378
|
+
interface TreeHeaderProps {
|
|
379
|
+
statistic?: Statistic;
|
|
380
|
+
reportStatistic?: Statistic;
|
|
381
|
+
categoryTitle: ComponentChildren;
|
|
382
|
+
isOpened: boolean;
|
|
383
|
+
toggleTree: () => void;
|
|
384
|
+
statusFilter?: Status;
|
|
385
|
+
style?: Record<string, string>;
|
|
386
|
+
actions?: ComponentChildren;
|
|
387
|
+
focused?: boolean;
|
|
388
|
+
nodeId?: string;
|
|
389
|
+
}
|
|
390
|
+
declare const TreeHeader: FunctionComponent<TreeHeaderProps>;
|
|
391
|
+
|
|
392
|
+
interface TreeSectionProps {
|
|
393
|
+
title: ComponentChildren;
|
|
394
|
+
isOpened: boolean;
|
|
395
|
+
toggleTree: () => void;
|
|
396
|
+
icon?: string;
|
|
397
|
+
focused?: boolean;
|
|
398
|
+
nodeId?: string;
|
|
399
|
+
}
|
|
400
|
+
declare const TreeSection: FunctionComponent<TreeSectionProps>;
|
|
401
|
+
|
|
402
|
+
interface TreeItemProps {
|
|
403
|
+
name: string;
|
|
404
|
+
status?: TestStatus;
|
|
405
|
+
duration?: number;
|
|
406
|
+
retriesCount?: number;
|
|
407
|
+
retriesStatusChange?: boolean;
|
|
408
|
+
flaky?: boolean;
|
|
409
|
+
resolution?: ResolutionCategory;
|
|
410
|
+
transition?: TestStatusTransition;
|
|
411
|
+
transitionTooltip?: string;
|
|
412
|
+
id: string;
|
|
413
|
+
focusNodeId?: string;
|
|
414
|
+
groupOrder: number;
|
|
415
|
+
marked?: boolean;
|
|
416
|
+
focused?: boolean;
|
|
417
|
+
navigateTo: (id: string) => void;
|
|
418
|
+
tooltips?: Record<string, string>;
|
|
419
|
+
parameters?: string[];
|
|
420
|
+
}
|
|
421
|
+
declare const TreeItem: FunctionComponent<TreeItemProps>;
|
|
422
|
+
|
|
423
|
+
interface TestStatusIconProps {
|
|
424
|
+
status?: TestStatus;
|
|
425
|
+
className?: string;
|
|
426
|
+
classNameIcon?: string;
|
|
427
|
+
}
|
|
428
|
+
declare const TreeItemIcon: FunctionalComponent<TestStatusIconProps>;
|
|
429
|
+
|
|
430
|
+
interface TreeStatusBarProps {
|
|
431
|
+
statistic?: Statistic;
|
|
432
|
+
reportStatistic?: Statistic;
|
|
433
|
+
maxWidth?: number;
|
|
434
|
+
minWidth?: number;
|
|
435
|
+
offset?: number;
|
|
436
|
+
statusFilter?: Status;
|
|
437
|
+
}
|
|
438
|
+
declare const TreeStatusBar: FunctionalComponent<TreeStatusBarProps>;
|
|
439
|
+
|
|
440
|
+
type Props$4 = {
|
|
441
|
+
size?: "s" | "m" | "l";
|
|
442
|
+
count: number;
|
|
443
|
+
truncateCount?: boolean;
|
|
444
|
+
status?: TestStatus;
|
|
445
|
+
};
|
|
446
|
+
declare const Counter: (props: Props$4) => preact.JSX.Element;
|
|
447
|
+
|
|
448
|
+
type Props$3 = {
|
|
449
|
+
value: boolean;
|
|
450
|
+
label: string;
|
|
451
|
+
size?: "s" | "m";
|
|
452
|
+
onChange: (value: boolean) => void;
|
|
453
|
+
focusable?: boolean;
|
|
454
|
+
};
|
|
455
|
+
declare const Toggle: (props: Props$3) => preact.JSX.Element;
|
|
456
|
+
|
|
457
|
+
type Props$2 = {
|
|
458
|
+
href?: string;
|
|
459
|
+
children: ComponentChildren;
|
|
460
|
+
onClick?: (e: MouseEvent) => void;
|
|
461
|
+
};
|
|
462
|
+
declare const Link: (props: Props$2) => preact.JSX.Element;
|
|
463
|
+
|
|
464
|
+
declare const Label: FunctionComponent;
|
|
465
|
+
|
|
466
|
+
type StatusLabelProps = {
|
|
467
|
+
status: TestStatus;
|
|
468
|
+
className?: string;
|
|
469
|
+
};
|
|
470
|
+
declare const StatusLabel: FunctionalComponent<StatusLabelProps>;
|
|
471
|
+
|
|
472
|
+
declare const ReportLogoFull: (props: {
|
|
473
|
+
className?: string;
|
|
474
|
+
}) => preact.JSX.Element;
|
|
475
|
+
|
|
476
|
+
declare const ReportLogo: (props: {
|
|
477
|
+
className?: string;
|
|
478
|
+
logo?: string;
|
|
479
|
+
}) => preact.JSX.Element;
|
|
480
|
+
|
|
481
|
+
interface WidgetProps {
|
|
482
|
+
title?: string;
|
|
483
|
+
centerContent?: boolean;
|
|
484
|
+
dropShadow?: boolean;
|
|
485
|
+
}
|
|
486
|
+
declare const Widget: FunctionalComponent<WidgetProps>;
|
|
487
|
+
|
|
488
|
+
type TagSkin = "successful" | "failed" | "warning" | "neutral" | "successful-light" | "failed-light" | "warning-light" | "neutral-light" | "secondary";
|
|
489
|
+
interface TagProps {
|
|
490
|
+
"className"?: string;
|
|
491
|
+
"skin"?: TagSkin;
|
|
492
|
+
"data-testid"?: string;
|
|
493
|
+
"children": ComponentChildren;
|
|
494
|
+
}
|
|
495
|
+
declare const Tag: ({ className, skin, children, "data-testid": dataTestId }: TagProps) => preact.JSX.Element;
|
|
496
|
+
|
|
497
|
+
interface LanguagePickerProps {
|
|
498
|
+
locale: LangLocale;
|
|
499
|
+
setLocale: (locale: LangLocale) => void;
|
|
500
|
+
availableLocales?: LangLocale[];
|
|
501
|
+
}
|
|
502
|
+
declare const LanguagePicker: ({ locale, setLocale, availableLocales }: LanguagePickerProps) => preact.JSX.Element;
|
|
503
|
+
|
|
504
|
+
type Theme = "light" | "dark" | "auto";
|
|
505
|
+
interface ThemeButtonProps {
|
|
506
|
+
theme: Theme;
|
|
507
|
+
toggleTheme: () => void;
|
|
508
|
+
}
|
|
509
|
+
declare const ThemeButton: ({ theme, toggleTheme }: ThemeButtonProps) => preact.JSX.Element;
|
|
510
|
+
|
|
511
|
+
type Props$1 = {
|
|
512
|
+
icon: string;
|
|
513
|
+
tooltip?: string;
|
|
514
|
+
className?: string;
|
|
515
|
+
style?: "primary" | "secondary";
|
|
516
|
+
};
|
|
517
|
+
declare const IconLabel: FunctionalComponent<Props$1>;
|
|
518
|
+
|
|
519
|
+
type ReportSummary = {
|
|
520
|
+
href?: string;
|
|
521
|
+
remoteHref?: string;
|
|
522
|
+
jobHref?: string;
|
|
523
|
+
pullRequestHref?: string;
|
|
524
|
+
name: string;
|
|
525
|
+
stats: Statistic;
|
|
526
|
+
status: TestStatus;
|
|
527
|
+
duration: number;
|
|
528
|
+
plugin?: string;
|
|
529
|
+
newTests?: string[];
|
|
530
|
+
flakyTests?: string[];
|
|
531
|
+
retryTests?: string[];
|
|
532
|
+
createdAt?: number;
|
|
533
|
+
};
|
|
534
|
+
type StatusI18nKeys = "status.failed" | "status.broken" | "status.passed" | "status.skipped" | "status.unknown";
|
|
535
|
+
type MetadataI18nKeys = "metadata.new" | "metadata.retry" | "metadata.flaky";
|
|
536
|
+
type I18nKeys = `successRate.${string}` | MetadataI18nKeys | StatusI18nKeys | "in" | "new" | "retry" | "flaky" | "total" | "createdAt";
|
|
537
|
+
type I18nProp = (key: I18nKeys, props?: Record<string, any>) => string | undefined;
|
|
538
|
+
|
|
539
|
+
type ReportSummaryCardProps = {
|
|
540
|
+
i18n: I18nProp;
|
|
541
|
+
summary: ReportSummary;
|
|
542
|
+
};
|
|
543
|
+
declare const ReportSummaryCard: (props: ReportSummaryCardProps) => preact.JSX.Element;
|
|
544
|
+
|
|
545
|
+
declare const useTheme: () => string;
|
|
546
|
+
declare const ThemeProvider: (props: {
|
|
547
|
+
children: ComponentChildren;
|
|
548
|
+
theme: string;
|
|
549
|
+
}) => preact.JSX.Element;
|
|
550
|
+
|
|
551
|
+
type Size = "s" | "m" | "xs";
|
|
552
|
+
type Props = {
|
|
553
|
+
title?: ComponentChildren;
|
|
554
|
+
description?: ComponentChildren;
|
|
555
|
+
icon?: string;
|
|
556
|
+
iconColor?: "purple" | "blue" | "green" | "orange" | "violet" | "sky" | "magenta" | "rose" | "red" | "amber" | "teal" | "slate";
|
|
557
|
+
fullHeight?: boolean;
|
|
558
|
+
size?: Size;
|
|
559
|
+
className?: string;
|
|
560
|
+
iconClassName?: string;
|
|
561
|
+
border?: boolean;
|
|
562
|
+
};
|
|
563
|
+
declare const EmptyView: FunctionalComponent<Props>;
|
|
564
|
+
|
|
565
|
+
type ComponentLoader<P> = () => Promise<{
|
|
566
|
+
default: ComponentType<P>;
|
|
567
|
+
}>;
|
|
568
|
+
declare const LazyComponent: <P extends object>({ loader, componentProps, fallback, errorMessage, retryLabel, }: {
|
|
569
|
+
loader: ComponentLoader<P>;
|
|
570
|
+
componentProps: P;
|
|
571
|
+
fallback: ComponentChildren;
|
|
572
|
+
errorMessage: string;
|
|
573
|
+
retryLabel: string;
|
|
574
|
+
}) => preact.JSX.Element;
|
|
575
|
+
|
|
576
|
+
export { ArrowButton, Button, ButtonLink, Code, Counter, DropdownButton, EmptyView, Heading, IconButton, IconLabel, Label, LanguagePicker, LazyComponent, Link, LinkifiedText, Loadable, Menu, MiddleEllipsis, Modal, OverviewLink, PageLoader, ReportLogo, ReportLogoFull, ReportSummaryCard, SearchBox, Spinner, StatusLabel, SvgIcon, Tag, Text, ThemeButton, ThemeProvider, Toggle, Tooltip, TooltipWrapper, Tree, TreeHeader, TreeItem, TreeItemIcon, TreeSection, TreeStatusBar, Widget, allureIcons, useElementTruncation, useTheme, useTooltip };
|
|
577
|
+
export type { LanguagePickerProps, ModalDataProps, ModalGalleryProps, ModalTranslations, ModalTranslationsProps, ReportSummary, ReportSummaryCardProps, TagProps, TagSkin, Theme, ThemeButtonProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../src/core.ts"],"names":[],"mappings":"AAAA,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,cAAc,kBAAkB,CAAC;AACjC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AAEvC,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC"}
|
package/dist/core.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{S as SvgIcon,a as allureIcons}from"./index-qMwNH4DY.js";export{B as Button,a as ButtonLink,D as DropdownButton,I as IconButton,S as Spinner}from"./index-k2XcinIa.js";export{A as ArrowButton,C as Counter,L as Label,a as LanguagePicker,b as Link,c as LinkifiedText,d as Loadable,M as MiddleEllipsis,e as Modal,O as OverviewLink,P as PageLoader,R as ReportLogo,f as ReportLogoFull,g as ReportSummaryCard,S as SearchBox,h as StatusLabel,T as ThemeButton,i as Toggle,j as Tree,k as TreeHeader,l as TreeItem,m as TreeItemIcon,n as TreeSection,o as TreeStatusBar,u as useElementTruncation}from"./index-CCQ13d2t.js";export{C as Code,H as Heading,T as Text}from"./index-Dq7O-bm8.js";export{T as Tooltip,a as TooltipWrapper,u as useTooltip}from"./index-BZ-V3udE.js";export{I as ImageDiff,M as Menu,T as Tag}from"./index-Cf1z5wAO.js";export{W as Widget}from"./index-BzcM2nAl.js";export{I as IconLabel}from"./index-D2c5viX_.js";export{T as ThemeProvider,u as useTheme}from"./index-uBEpZNBn.js";export{E as EmptyView}from"./index-BLcyRUFW.js";export{L as LazyComponent}from"./Attachment-DFk4AiwI.js";import"./clsx-D83172mf.js";import"preact";import"react";import"preact/hooks";import"./identity-DBvQ9SaG.js";import"node:crypto";import"./constants-D-YBPtws.js";import"./utils-DKmgmsaJ.js";import"./array-B0SXO2zY.js";import"./_commonjsHelpers-Doe7ti1T.js";import"preact/compat";import"./time-CyaymdXm.js";import"./SuccessRatePieChart.js";import"./successRate-rrLYYsum.js";import"./floating-ui.dom-B9YqEzUD.js";import"./utils-DfVSL1lz.js";import"./linear-C7uKb8Tk.js";import"@preact/signals/utils";import"@preact/signals";import"./index-DYL-tbfk.js";import"./toString-Ccq3A8Sl.js";import"./toNumber-Cpsf6DxM.js";import"./upperFirst-jXpCKAQr.js";import"./_stringToArray-aaWSQcKo.js";import"./_baseSlice-CBpWu5XB.js";import"./clipboard-BUUe2rGt.js";
|
|
2
|
+
//# sourceMappingURL=core.js.map
|
package/dist/core.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"core.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
const t=Math.min,e=Math.max,n=Math.round,o=Math.floor,i=t=>({x:t,y:t}),r={left:"right",right:"left",bottom:"top",top:"bottom"};function l(t,e){return"function"==typeof t?t(e):t}function c(t){return t.split("-")[0]}function s(t){return t.split("-")[1]}function a(t){return"x"===t?"y":"x"}function f(t){return"y"===t?"height":"width"}function u(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function d(t){return a(u(t))}function h(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const m=["left","right"],p=["right","left"],g=["top","bottom"],y=["bottom","top"];function w(t,e,n,o){const i=s(t);let r=function(t,e,n){switch(t){case"top":case"bottom":return n?e?p:m:e?m:p;case"left":case"right":return e?g:y;default:return[]}}(c(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(h)))),r}function x(t){const e=c(t);return r[e]+t.slice(e.length)}function v(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function b(t,e,n){let{reference:o,floating:i}=t;const r=u(e),l=d(e),a=f(l),h=c(e),m="y"===r,p=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[a]/2-i[a]/2;let w;switch(h){case"top":w={x:p,y:o.y-i.height};break;case"bottom":w={x:p,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-i.width,y:g};break;default:w={x:o.x,y:o.y}}const x=s(e);return x&&(w[l]+=y*("end"===x?1:-1)*(n&&m?-1:1)),w}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:c,elements:s,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:h=!1,padding:m=0}=l(e,t),p=function(t){return"number"!=typeof t?function(t){var e,n,o,i;return{top:null!=(e=t.top)?e:0,right:null!=(n=t.right)?n:0,bottom:null!=(o=t.bottom)?o:0,left:null!=(i=t.left)?i:0}}(t):{top:t,right:t,bottom:t,left:t}}(m),g=s[h?"floating"===d?"reference":"floating":d],y=v(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:a})),w="floating"===d?{x:o,y:i,width:c.floating.width,height:c.floating.height}:c.reference,x=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),b=await(null==r.isElement?void 0:r.isElement(x))&&await(null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},R=v(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:x,strategy:a}):w);return{top:(y.top-R.top+p.top)/b.y,bottom:(R.bottom-y.bottom+p.bottom)/b.y,left:(y.left-R.left+p.left)/b.x,right:(R.right-y.right+p.right)/b.x}}const L=/*#__PURE__*/new Set(["left","top"]);function T(){return"undefined"!=typeof window}function E(t){return C(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function S(t){var e;return null==(e=(C(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function C(t){return!!T()&&(t instanceof Node||t instanceof A(t).Node)}function O(t){return!!T()&&(t instanceof Element||t instanceof A(t).Element)}function D(t){return!!T()&&(t instanceof HTMLElement||t instanceof A(t).HTMLElement)}function F(t){return!(!T()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof A(t).ShadowRoot)}function P(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=I(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&"inline"!==i&&"contents"!==i}function W(t){return/^(table|td|th)$/.test(E(t))}function k(t){try{if(t.matches(":popover-open"))return!0}catch(t){}try{return t.matches(":modal")}catch(t){return!1}}const V=/transform|translate|scale|rotate|perspective|filter/,B=/paint|layout|strict|content/,H=t=>!!t&&"none"!==t;let M;function z(t){const e=O(t)?I(t):t;return H(e.transform)||H(e.translate)||H(e.scale)||H(e.rotate)||H(e.perspective)||!N()&&(H(e.backdropFilter)||H(e.filter))||V.test(e.willChange||"")||B.test(e.contain||"")}function N(){return null==M&&(M="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),M}function $(t){return/^(html|body|#document)$/.test(E(t))}function I(t){return A(t).getComputedStyle(t)}function j(t){return O(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function q(t){if("html"===E(t))return t;const e=t.assignedSlot||t.parentNode||F(t)&&t.host||S(t);return F(e)?e.host:e}function X(t){const e=q(t);return $(e)?(t.ownerDocument||t).body:D(e)&&P(e)?e:X(e)}function Y(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=X(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=A(i);if(r){const t=_(l);return e.concat(l,l.visualViewport||[],P(i)?i:[],t&&n?Y(t):[])}return e.concat(i,Y(i,[],n))}function _(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function G(t){const e=I(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=D(t),l=r?t.offsetWidth:o,c=r?t.offsetHeight:i,s=n(o)!==l||n(i)!==c;return s&&(o=l,i=c),{width:o,height:i,$:s}}function J(t){return O(t)?t:t.contextElement}function K(t){const e=J(t);if(!D(e))return i(1);const o=e.getBoundingClientRect(),{width:r,height:l,$:c}=G(e);let s=(c?n(o.width):o.width)/r,a=(c?n(o.height):o.height)/l;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Q=/*#__PURE__*/i(0);function U(t){const e=A(t);return N()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Q}function Z(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const r=t.getBoundingClientRect(),l=J(t);let c=i(1);e&&(o?O(o)&&(c=K(o)):c=K(t));const s=function(t,e,n){return void 0===e&&(e=!1),!!n&&e&&n===A(t)}(l,n,o)?U(l):i(0);let a=(r.left+s.x)/c.x,f=(r.top+s.y)/c.y,u=r.width/c.x,d=r.height/c.y;if(l&&o){const t=A(l),e=O(o)?A(o):o;let n=t,i=_(n);for(;i&&e!==n;){const t=K(i),e=i.getBoundingClientRect(),o=I(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=A(i),i=_(n)}}return v({width:u,height:d,x:a,y:f})}function tt(t,e){const n=j(t).scrollLeft;return e?e.left+n:Z(S(t)).left+n}function et(t,e){const n=t.getBoundingClientRect();return{x:n.left+e.scrollLeft-tt(t,n),y:n.top+e.scrollTop}}function nt(t,n,o){let i;if("viewport"===n||"layoutViewport"===n)i=function(t,e,n){void 0===n&&(n="viewport");const o="layoutViewport"===n,i=A(t),r=S(t),l=i.visualViewport;let c=r.clientWidth,s=r.clientHeight,a=0,f=0;if(l){const t=!N()||"fixed"===e;o?t||(a=-l.offsetLeft,f=-l.offsetTop):(c=l.width,s=l.height,t&&(a=l.offsetLeft,f=l.offsetTop))}if(tt(r)<=0){const t=r.ownerDocument,e=t.body,n=getComputedStyle(e),o="CSS1Compat"===t.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-e.clientWidth-o),l="stable both-edges"===getComputedStyle(r).scrollbarGutter?i/2:i;l<=25&&(c-=l)}return{width:c,height:s,x:a,y:f}}(t,o,n);else if("document"===n)i=function(t){const n=j(t),o=t.ownerDocument.body,i=e(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),r=e(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+tt(t);const c=-n.scrollTop;return"rtl"===I(o).direction&&(l+=e(t.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:c}}(S(t));else if(O(n))i=function(t,e){const n=Z(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=K(t);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(n,o);else{const e=U(t);i={x:n.x-e.x,y:n.y-e.y,width:n.width,height:n.height}}return v(i)}function ot(t,e,n){const o=D(e),r=S(e),l="fixed"===n,c=Z(t,!0,l,e);let s={scrollLeft:0,scrollTop:0};const a=i(0);if((o||!l)&&(("body"!==E(e)||P(r))&&(s=j(e)),o)){const t=Z(e,!0,l,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}!o&&r&&(a.x=tt(r));const f=!r||o||l?i(0):et(r,s);return{x:c.left+s.scrollLeft-a.x-f.x,y:c.top+s.scrollTop-a.y-f.y,width:c.width,height:c.height}}function it(t){return"static"===I(t).position}function rt(t,e){if(!D(t)||"fixed"===I(t).position)return null;if(e)return e(t);let n=t.offsetParent;return S(t)===n&&(n=n.ownerDocument.body),n}function lt(t,e){const n=A(t);if(k(t))return n;if(!D(t)){let e=q(t);for(;e&&!$(e);){if(O(e)&&!it(e))return e;e=q(e)}return n}let o=rt(t,e);for(;o&&W(o)&&it(o);)o=rt(o,e);return o&&$(o)&&it(o)&&!z(o)?n:o||function(t){let e=q(t);for(;D(e)&&!$(e);){if(z(e))return e;if(k(e))return null;e=q(e)}return null}(t)||n}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:r}=t;const l="fixed"===r,c=S(o),s=!!e&&k(e.floating);if(o===c||s&&l)return n;let a={scrollLeft:0,scrollTop:0},f=i(1);const u=i(0),d=D(o);if((d||!l)&&(("body"!==E(o)||P(c))&&(a=j(o)),d)){const t=Z(o);f=K(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}const h=!c||d||l?i(0):et(c,a);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x+h.x,y:n.y*f.y-a.scrollTop*f.y+u.y+h.y}},getDocumentElement:S,getClippingRect:function(n){let{element:o,boundary:i,rootBoundary:r,strategy:l}=n;const c=[..."clippingAncestors"===i?k(o)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=Y(t,[],!1).filter((t=>O(t)&&"body"!==E(t))),i=null;const r="fixed"===I(t).position;let l=r?q(t):t;for(;O(l)&&!$(l);){const t=I(l),e=z(l),n=i?i.position:r?"fixed":"";e||"fixed"!==n&&("absolute"!==n||"static"!==t.position)?i=t:o=o.filter((t=>t!==l)),l=q(l)}return e.set(t,o),o}(o,this._c):[].concat(i),r],s=nt(o,c[0],l);let a=s.top,f=s.right,u=s.bottom,d=s.left;for(let n=1;n<c.length;n++){const i=nt(o,c[n],l);a=e(i.top,a),f=t(i.right,f),u=t(i.bottom,u),d=e(i.left,d)}return{width:f-d,height:u-a,x:d,y:a}},getOffsetParent:lt,getElementRects:async function(t){const e=this.getOffsetParent||lt,n=this.getDimensions,o=await n(t.floating);return{reference:ot(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return t.getClientRects?Array.from(t.getClientRects()):[]},getDimensions:function(t){const{width:e,height:n}=G(t);return{width:e,height:n}},getScale:K,isElement:O,isRTL:function(t){return"rtl"===I(t).direction}};function st(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function at(n,i,r,l){void 0===l&&(l={});const{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=l,d=J(n),h=c||s?[...d?Y(d):[],...i?Y(i):[]]:[];h.forEach((t=>{c&&t.addEventListener("scroll",r),s&&t.addEventListener("resize",r)}));const m=d&&f?function(n,i,r){let l,c=null;const s=S(n);function a(){var t;clearTimeout(l),null==(t=c)||t.disconnect(),c=null}function f(r,u){void 0===r&&(r=!1),void 0===u&&(u=1),a();const d=n.getBoundingClientRect(),{left:h,top:m,width:p,height:g}=d;if(r||i(),!p||!g)return;const y={rootMargin:-o(m)+"px "+-o(s.clientWidth-(h+p))+"px "+-o(s.clientHeight-(m+g))+"px "+-o(h)+"px",threshold:e(0,t(1,u))||1};let w=!0;function x(t){const e=t[0].intersectionRatio;if(!st(d,n.getBoundingClientRect()))return f();if(e!==u){if(!w)return f();e?f(!1,e):l=setTimeout((()=>{f(!1,1e-7)}),1e3)}w=!1}try{c=new IntersectionObserver(x,{...y,root:s.ownerDocument})}catch(t){c=new IntersectionObserver(x,y)}c.observe(n)}const u=A(n),d=()=>f(r);return u.addEventListener("resize",d),f(!0),()=>{u.removeEventListener("resize",d),a()}}(d,r,s):null;let p,g=-1,y=null;a&&(y=new ResizeObserver((t=>{let[e]=t;e&&e.target===d&&y&&i&&(y.unobserve(i),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(i)}))),r()})),d&&!u&&y.observe(d),i&&y.observe(i));let w=u?Z(n):null;return u&&function t(){const e=Z(n);w&&!st(w,e)&&r();w=e,p=requestAnimationFrame(t)}(),r(),()=>{var t;h.forEach((t=>{c&&t.removeEventListener("scroll",r),s&&t.removeEventListener("resize",r)})),null==m||m(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(p)}}const ft=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:a,middlewareData:f}=e,d=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),a=c(n),f=s(n),d="y"===u(n),h=L.has(a)?-1:1,m=r&&d?-1:1,p=l(e,t);let{mainAxis:g,crossAxis:y,alignmentAxis:w}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return f&&"number"==typeof w&&(y="end"===f?-1*w:w),d?{x:y*m,y:g*h}:{x:g*h,y:y*m}}(e,t);return a===(null==(n=f.offset)?void 0:n.placement)&&null!=(o=f.arrow)&&o.alignmentOffset?{}:{x:i+d.x,y:r+d.y,data:{...d,placement:a}}}}},ut=function(n){return void 0===n&&(n={}),{name:"shift",options:n,async fn(o){const{x:i,y:r,placement:c,platform:s}=o,{mainAxis:f=!0,crossAxis:d=!1,limiter:h={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...m}=l(n,o),p={x:i,y:r},g=await s.detectOverflow(o,m),y=u(c),w=a(y);let x=p[w],v=p[y];const b=(n,o)=>{return i=o+g["y"===n?"top":"left"],r=o,l=o-g["y"===n?"bottom":"right"],e(i,t(r,l));var i,r,l};f&&(x=b(w,x)),d&&(v=b(y,v));const R=h.fn({...o,[w]:x,[y]:v});return{...R,data:{x:R.x-i,y:R.y-r,enabled:{[w]:f,[y]:d}}}}}},dt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:a,initialPlacement:m,platform:p,elements:g}=e,{mainAxis:y=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:R="bestFit",fallbackAxisSideDirection:L="none",flipAlignment:T=!0,...E}=l(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const A=c(i),S=u(m),C=c(m)===m,O=await(null==p.isRTL?void 0:p.isRTL(g.floating)),D=b||(C||!T?[x(m)]:function(t){const e=x(t);return[h(t),e,h(e)]}(m)),F="none"!==L;!b&&F&&D.push(...w(m,T,L,O));const P=[m,...D],W=await p.detectOverflow(e,E),k=[];let V=(null==(o=r.flip)?void 0:o.overflows)||[];if(y&&k.push(W[A]),v){const t=function(t,e,n){void 0===n&&(n=!1);const o=s(t),i=d(t),r=f(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=x(l)),[l,x(l)]}(i,a,O);k.push(W[t[0]],W[t[1]])}if(V=[...V,{placement:i,overflows:k}],!k.every((t=>t<=0))){var B,H;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=P[t];if(e){if(!("alignment"===v&&S!==u(e))||V.every((t=>u(t.placement)!==S||t.overflows[0]>0)))return{data:{index:t,overflows:V},reset:{placement:e}}}let n=null==(H=V.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:H.placement;if(!n)switch(R){case"bestFit":{var M;const t=null==(M=V.filter((t=>{if(F){const e=u(t.placement);return e===S||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=m}if(i!==n)return{reset:{placement:n}}}return{}}}},ht=(t,e,n)=>{const o=new Map,i=null!=n?n:{},r={...ct,...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=l.detectOverflow?l:{...l,detectOverflow:R},s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=b(a,o,s),d=o,h=0;const m={};for(let n=0;n<r.length;n++){const p=r[n];if(!p)continue;const{name:g,fn:y}=p,{x:w,y:x,data:v,reset:R}=await y({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:m,rects:a,platform:c,elements:{reference:t,floating:e}});f=null!=w?w:f,u=null!=x?x:u,m[g]={...m[g],...v},R&&h<50&&(h++,"object"==typeof R&&(R.placement&&(d=R.placement),R.rects&&(a=!0===R.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):R.rects),({x:f,y:u}=b(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:m}})(t,e,{...i,platform:r})};export{at as a,ht as c,dt as f,ft as o,ut as s};
|
|
2
|
+
//# sourceMappingURL=floating-ui.dom-B9YqEzUD.js.map
|