@misoto22/folio 0.0.0 → 0.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +88 -0
- package/CLAUDE.md +1 -0
- package/LICENSE +21 -0
- package/README.md +208 -2
- package/bin/folio-design.mjs +277 -0
- package/bin/migrate-legacy.mjs +81 -0
- package/dist/agent/Accordion.md +65 -0
- package/dist/agent/Actions.md +49 -0
- package/dist/agent/Alert.md +65 -0
- package/dist/agent/AppShell.md +69 -0
- package/dist/agent/ArchitectureFigure.md +72 -0
- package/dist/agent/AreaChart.md +94 -0
- package/dist/agent/Article.md +65 -0
- package/dist/agent/AspectRatio.md +58 -0
- package/dist/agent/Avatar.md +53 -0
- package/dist/agent/Badge.md +62 -0
- package/dist/agent/BarChart.md +93 -0
- package/dist/agent/BarList.md +67 -0
- package/dist/agent/BigNumber.md +70 -0
- package/dist/agent/BoxPlot.md +82 -0
- package/dist/agent/Breadcrumb.md +55 -0
- package/dist/agent/BulletChart.md +71 -0
- package/dist/agent/Button.md +81 -0
- package/dist/agent/Calendar.md +77 -0
- package/dist/agent/CalendarHeatmap.md +75 -0
- package/dist/agent/Card.md +72 -0
- package/dist/agent/Checkbox.md +57 -0
- package/dist/agent/Code.md +51 -0
- package/dist/agent/CodeBlock.md +77 -0
- package/dist/agent/Collapsible.md +68 -0
- package/dist/agent/Collection.md +169 -0
- package/dist/agent/ColorPicker.md +76 -0
- package/dist/agent/Combobox.md +77 -0
- package/dist/agent/Command.md +122 -0
- package/dist/agent/ComposedChart.md +82 -0
- package/dist/agent/Contact.md +90 -0
- package/dist/agent/Content.md +70 -0
- package/dist/agent/ContextMenu.md +93 -0
- package/dist/agent/Conversation.md +247 -0
- package/dist/agent/DataflowFigure.md +49 -0
- package/dist/agent/DatePicker.md +104 -0
- package/dist/agent/DescriptionList.md +69 -0
- package/dist/agent/Diagram.md +71 -0
- package/dist/agent/DiagramCanvas.md +71 -0
- package/dist/agent/DiagramExportMenu.md +65 -0
- package/dist/agent/DiagramInspector.md +73 -0
- package/dist/agent/DiagramLegend.md +56 -0
- package/dist/agent/DiagramMinimap.md +69 -0
- package/dist/agent/DiagramToolbar.md +70 -0
- package/dist/agent/Dialog.md +76 -0
- package/dist/agent/DropdownMenu.md +110 -0
- package/dist/agent/EmptyState.md +63 -0
- package/dist/agent/ErrorState.md +67 -0
- package/dist/agent/Evidence.md +165 -0
- package/dist/agent/Facet.md +107 -0
- package/dist/agent/Field.md +79 -0
- package/dist/agent/FigureBand.md +49 -0
- package/dist/agent/FloatingIconButton.md +61 -0
- package/dist/agent/FunnelChart.md +75 -0
- package/dist/agent/Heading.md +65 -0
- package/dist/agent/Heatmap.md +78 -0
- package/dist/agent/Histogram.md +88 -0
- package/dist/agent/Input.md +52 -0
- package/dist/agent/Kbd.md +48 -0
- package/dist/agent/LifecycleFigure.md +50 -0
- package/dist/agent/LineChart.md +85 -0
- package/dist/agent/LinkArrow.md +49 -0
- package/dist/agent/Markdown.md +69 -0
- package/dist/agent/Media.md +261 -0
- package/dist/agent/Metric.md +70 -0
- package/dist/agent/Metrics.md +114 -0
- package/dist/agent/Music.md +86 -0
- package/dist/agent/NativeSelect.md +62 -0
- package/dist/agent/NavItem.md +56 -0
- package/dist/agent/NumberField.md +73 -0
- package/dist/agent/PageHeader.md +69 -0
- package/dist/agent/Pagination.md +70 -0
- package/dist/agent/PieChart.md +80 -0
- package/dist/agent/Popover.md +80 -0
- package/dist/agent/Portfolio.md +93 -0
- package/dist/agent/PortfolioIndex.md +34 -0
- package/dist/agent/Progress.md +58 -0
- package/dist/agent/RadarChart.md +79 -0
- package/dist/agent/RadialChart.md +81 -0
- package/dist/agent/RadioGroup.md +66 -0
- package/dist/agent/Reading.md +233 -0
- package/dist/agent/Recovery.md +72 -0
- package/dist/agent/SankeyChart.md +85 -0
- package/dist/agent/ScatterChart.md +80 -0
- package/dist/agent/ScrollArea.md +62 -0
- package/dist/agent/SearchPalette.md +51 -0
- package/dist/agent/SearchableMenu.md +69 -0
- package/dist/agent/Select.md +102 -0
- package/dist/agent/Separator.md +60 -0
- package/dist/agent/SequenceFigure.md +51 -0
- package/dist/agent/Sheet.md +82 -0
- package/dist/agent/Sidebar.md +194 -0
- package/dist/agent/SiteNavigation.md +62 -0
- package/dist/agent/SiteShell.md +67 -0
- package/dist/agent/Skeleton.md +96 -0
- package/dist/agent/Slider.md +67 -0
- package/dist/agent/Sparkline.md +68 -0
- package/dist/agent/Spinner.md +62 -0
- package/dist/agent/StatusDot.md +56 -0
- package/dist/agent/StatusPill.md +55 -0
- package/dist/agent/Steps.md +68 -0
- package/dist/agent/Switch.md +50 -0
- package/dist/agent/Table.md +111 -0
- package/dist/agent/Tabs.md +71 -0
- package/dist/agent/Tag.md +67 -0
- package/dist/agent/Text.md +66 -0
- package/dist/agent/Textarea.md +46 -0
- package/dist/agent/Timeline.md +114 -0
- package/dist/agent/Timestamp.md +65 -0
- package/dist/agent/Toast.md +51 -0
- package/dist/agent/ToggleGroup.md +67 -0
- package/dist/agent/Toolbar.md +72 -0
- package/dist/agent/Tooltip.md +74 -0
- package/dist/agent/TreemapChart.md +76 -0
- package/dist/agent/WaterfallChart.md +86 -0
- package/dist/agent/WorkflowFigure.md +51 -0
- package/dist/agent/catalog.json +8006 -0
- package/dist/agent/index.md +182 -0
- package/dist/article.css +407 -0
- package/dist/charts/AreaChart/AreaChart.d.ts +198 -0
- package/dist/charts/AreaChart/AreaChart.js +479 -0
- package/dist/charts/AreaChart/AreaChart.js.map +1 -0
- package/dist/charts/BarChart/BarChart.d.ts +190 -0
- package/dist/charts/BarChart/BarChart.js +599 -0
- package/dist/charts/BarChart/BarChart.js.map +1 -0
- package/dist/charts/BarList/BarList.d.ts +65 -0
- package/dist/charts/BarList/BarList.js +79 -0
- package/dist/charts/BarList/BarList.js.map +1 -0
- package/dist/charts/BigNumber/BigNumber.d.ts +72 -0
- package/dist/charts/BigNumber/BigNumber.js +51 -0
- package/dist/charts/BigNumber/BigNumber.js.map +1 -0
- package/dist/charts/BoxPlot/BoxPlot.d.ts +177 -0
- package/dist/charts/BoxPlot/BoxPlot.js +497 -0
- package/dist/charts/BoxPlot/BoxPlot.js.map +1 -0
- package/dist/charts/BulletChart/BulletChart.d.ts +100 -0
- package/dist/charts/BulletChart/BulletChart.js +197 -0
- package/dist/charts/BulletChart/BulletChart.js.map +1 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.d.ts +106 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.js +103 -0
- package/dist/charts/CalendarHeatmap/CalendarHeatmap.js.map +1 -0
- package/dist/charts/ComposedChart/ComposedChart.d.ts +178 -0
- package/dist/charts/ComposedChart/ComposedChart.js +667 -0
- package/dist/charts/ComposedChart/ComposedChart.js.map +1 -0
- package/dist/charts/Facet/Facet.d.ts +240 -0
- package/dist/charts/Facet/Facet.js +133 -0
- package/dist/charts/Facet/Facet.js.map +1 -0
- package/dist/charts/Facet/panels.d.ts +187 -0
- package/dist/charts/Facet/panels.js +203 -0
- package/dist/charts/Facet/panels.js.map +1 -0
- package/dist/charts/FunnelChart/FunnelChart.d.ts +106 -0
- package/dist/charts/FunnelChart/FunnelChart.js +137 -0
- package/dist/charts/FunnelChart/FunnelChart.js.map +1 -0
- package/dist/charts/Heatmap/Heatmap.d.ts +101 -0
- package/dist/charts/Heatmap/Heatmap.js +125 -0
- package/dist/charts/Heatmap/Heatmap.js.map +1 -0
- package/dist/charts/Histogram/Histogram.d.ts +188 -0
- package/dist/charts/Histogram/Histogram.js +382 -0
- package/dist/charts/Histogram/Histogram.js.map +1 -0
- package/dist/charts/LineChart/LineChart.d.ts +174 -0
- package/dist/charts/LineChart/LineChart.js +485 -0
- package/dist/charts/LineChart/LineChart.js.map +1 -0
- package/dist/charts/PieChart/PieChart.d.ts +140 -0
- package/dist/charts/PieChart/PieChart.js +317 -0
- package/dist/charts/PieChart/PieChart.js.map +1 -0
- package/dist/charts/RadarChart/RadarChart.d.ts +135 -0
- package/dist/charts/RadarChart/RadarChart.js +303 -0
- package/dist/charts/RadarChart/RadarChart.js.map +1 -0
- package/dist/charts/RadialChart/RadialChart.d.ts +142 -0
- package/dist/charts/RadialChart/RadialChart.js +279 -0
- package/dist/charts/RadialChart/RadialChart.js.map +1 -0
- package/dist/charts/SankeyChart/SankeyChart.d.ts +149 -0
- package/dist/charts/SankeyChart/SankeyChart.js +509 -0
- package/dist/charts/SankeyChart/SankeyChart.js.map +1 -0
- package/dist/charts/ScatterChart/ScatterChart.d.ts +149 -0
- package/dist/charts/ScatterChart/ScatterChart.js +275 -0
- package/dist/charts/ScatterChart/ScatterChart.js.map +1 -0
- package/dist/charts/Sparkline/Sparkline.d.ts +53 -0
- package/dist/charts/Sparkline/Sparkline.js +95 -0
- package/dist/charts/Sparkline/Sparkline.js.map +1 -0
- package/dist/charts/TreemapChart/TreemapChart.d.ts +98 -0
- package/dist/charts/TreemapChart/TreemapChart.js +127 -0
- package/dist/charts/TreemapChart/TreemapChart.js.map +1 -0
- package/dist/charts/WaterfallChart/WaterfallChart.d.ts +164 -0
- package/dist/charts/WaterfallChart/WaterfallChart.js +321 -0
- package/dist/charts/WaterfallChart/WaterfallChart.js.map +1 -0
- package/dist/charts/index.d.ts +43 -0
- package/dist/charts/index.js +130 -0
- package/dist/charts/index.js.map +1 -0
- package/dist/charts/lib/annotations.d.ts +103 -0
- package/dist/charts/lib/annotations.js +99 -0
- package/dist/charts/lib/annotations.js.map +1 -0
- package/dist/charts/lib/axis.d.ts +18 -0
- package/dist/charts/lib/axis.js +21 -0
- package/dist/charts/lib/axis.js.map +1 -0
- package/dist/charts/lib/background.d.ts +33 -0
- package/dist/charts/lib/background.js +173 -0
- package/dist/charts/lib/background.js.map +1 -0
- package/dist/charts/lib/brush.d.ts +94 -0
- package/dist/charts/lib/brush.js +535 -0
- package/dist/charts/lib/brush.js.map +1 -0
- package/dist/charts/lib/chart.d.ts +94 -0
- package/dist/charts/lib/chart.js +149 -0
- package/dist/charts/lib/chart.js.map +1 -0
- package/dist/charts/lib/dot.d.ts +29 -0
- package/dist/charts/lib/dot.js +78 -0
- package/dist/charts/lib/dot.js.map +1 -0
- package/dist/charts/lib/empty.d.ts +31 -0
- package/dist/charts/lib/empty.js +24 -0
- package/dist/charts/lib/empty.js.map +1 -0
- package/dist/charts/lib/export.d.ts +94 -0
- package/dist/charts/lib/export.js +62 -0
- package/dist/charts/lib/export.js.map +1 -0
- package/dist/charts/lib/figure.d.ts +81 -0
- package/dist/charts/lib/figure.js +62 -0
- package/dist/charts/lib/figure.js.map +1 -0
- package/dist/charts/lib/format.d.ts +46 -0
- package/dist/charts/lib/format.js +56 -0
- package/dist/charts/lib/format.js.map +1 -0
- package/dist/charts/lib/legend.d.ts +45 -0
- package/dist/charts/lib/legend.js +117 -0
- package/dist/charts/lib/legend.js.map +1 -0
- package/dist/charts/lib/loading.d.ts +48 -0
- package/dist/charts/lib/loading.js +105 -0
- package/dist/charts/lib/loading.js.map +1 -0
- package/dist/charts/lib/paint.d.ts +154 -0
- package/dist/charts/lib/paint.js +551 -0
- package/dist/charts/lib/paint.js.map +1 -0
- package/dist/charts/lib/scale.d.ts +23 -0
- package/dist/charts/lib/scale.js +13 -0
- package/dist/charts/lib/scale.js.map +1 -0
- package/dist/charts/lib/selection.d.ts +20 -0
- package/dist/charts/lib/selection.js +18 -0
- package/dist/charts/lib/selection.js.map +1 -0
- package/dist/charts/lib/sonify-control.d.ts +163 -0
- package/dist/charts/lib/sonify-control.js +172 -0
- package/dist/charts/lib/sonify-control.js.map +1 -0
- package/dist/charts/lib/sonify.d.ts +248 -0
- package/dist/charts/lib/sonify.js +262 -0
- package/dist/charts/lib/sonify.js.map +1 -0
- package/dist/charts/lib/toolbar.d.ts +144 -0
- package/dist/charts/lib/toolbar.js +156 -0
- package/dist/charts/lib/toolbar.js.map +1 -0
- package/dist/charts/lib/tooltip.d.ts +59 -0
- package/dist/charts/lib/tooltip.js +135 -0
- package/dist/charts/lib/tooltip.js.map +1 -0
- package/dist/charts/lib/values.d.ts +56 -0
- package/dist/charts/lib/values.js +71 -0
- package/dist/charts/lib/values.js.map +1 -0
- package/dist/charts/lib/zoom.d.ts +139 -0
- package/dist/charts/lib/zoom.js +314 -0
- package/dist/charts/lib/zoom.js.map +1 -0
- package/dist/components/Accordion/Accordion.d.ts +34 -0
- package/dist/components/Accordion/Accordion.js +43 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Alert/Alert.d.ts +32 -0
- package/dist/components/Alert/Alert.js +49 -0
- package/dist/components/Alert/Alert.js.map +1 -0
- package/dist/components/AppShell/AppShell.d.ts +58 -0
- package/dist/components/AppShell/AppShell.js +126 -0
- package/dist/components/AppShell/AppShell.js.map +1 -0
- package/dist/components/Article/Article.d.ts +58 -0
- package/dist/components/Article/Article.js +34 -0
- package/dist/components/Article/Article.js.map +1 -0
- package/dist/components/AspectRatio/AspectRatio.d.ts +46 -0
- package/dist/components/AspectRatio/AspectRatio.js +33 -0
- package/dist/components/AspectRatio/AspectRatio.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +38 -0
- package/dist/components/Avatar/Avatar.js +44 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Badge/Badge.d.ts +30 -0
- package/dist/components/Badge/Badge.js +29 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +37 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +46 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Button/Button.d.ts +70 -0
- package/dist/components/Button/Button.js +95 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Calendar/Calendar.d.ts +54 -0
- package/dist/components/Calendar/Calendar.js +369 -0
- package/dist/components/Calendar/Calendar.js.map +1 -0
- package/dist/components/Card/Card.d.ts +55 -0
- package/dist/components/Card/Card.js +64 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +26 -0
- package/dist/components/Checkbox/Checkbox.js +34 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Code/Code.d.ts +30 -0
- package/dist/components/Code/Code.js +21 -0
- package/dist/components/Code/Code.js.map +1 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +145 -0
- package/dist/components/CodeBlock/CodeBlock.js +114 -0
- package/dist/components/CodeBlock/CodeBlock.js.map +1 -0
- package/dist/components/Collapsible/Collapsible.d.ts +45 -0
- package/dist/components/Collapsible/Collapsible.js +60 -0
- package/dist/components/Collapsible/Collapsible.js.map +1 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts +67 -0
- package/dist/components/ColorPicker/ColorPicker.js +334 -0
- package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +77 -0
- package/dist/components/Combobox/Combobox.js +170 -0
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Command/Command.d.ts +125 -0
- package/dist/components/Command/Command.js +204 -0
- package/dist/components/Command/Command.js.map +1 -0
- package/dist/components/ContextMenu/ContextMenu.d.ts +63 -0
- package/dist/components/ContextMenu/ContextMenu.js +109 -0
- package/dist/components/ContextMenu/ContextMenu.js.map +1 -0
- package/dist/components/DatePicker/DatePicker.d.ts +130 -0
- package/dist/components/DatePicker/DatePicker.js +257 -0
- package/dist/components/DatePicker/DatePicker.js.map +1 -0
- package/dist/components/DescriptionList/DescriptionList.d.ts +73 -0
- package/dist/components/DescriptionList/DescriptionList.js +35 -0
- package/dist/components/DescriptionList/DescriptionList.js.map +1 -0
- package/dist/components/Diagram/Diagram.d.ts +86 -0
- package/dist/components/Diagram/Diagram.js +211 -0
- package/dist/components/Diagram/Diagram.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +63 -0
- package/dist/components/Dialog/Dialog.js +90 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +87 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +120 -0
- package/dist/components/DropdownMenu/DropdownMenu.js.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +55 -0
- package/dist/components/EmptyState/EmptyState.js +32 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/ErrorState/ErrorState.d.ts +55 -0
- package/dist/components/ErrorState/ErrorState.js +41 -0
- package/dist/components/ErrorState/ErrorState.js.map +1 -0
- package/dist/components/Field/Field.d.ts +111 -0
- package/dist/components/Field/Field.js +95 -0
- package/dist/components/Field/Field.js.map +1 -0
- package/dist/components/Field/field-control.d.ts +31 -0
- package/dist/components/Field/field-control.js +12 -0
- package/dist/components/Field/field-control.js.map +1 -0
- package/dist/components/FigureBand/FigureBand.d.ts +31 -0
- package/dist/components/FigureBand/FigureBand.js +51 -0
- package/dist/components/FigureBand/FigureBand.js.map +1 -0
- package/dist/components/FloatingIconButton/FloatingIconButton.d.ts +29 -0
- package/dist/components/FloatingIconButton/FloatingIconButton.js +34 -0
- package/dist/components/FloatingIconButton/FloatingIconButton.js.map +1 -0
- package/dist/components/Heading/Heading.d.ts +62 -0
- package/dist/components/Heading/Heading.js +44 -0
- package/dist/components/Heading/Heading.js.map +1 -0
- package/dist/components/Input/Input.d.ts +22 -0
- package/dist/components/Input/Input.js +21 -0
- package/dist/components/Input/Input.js.map +1 -0
- package/dist/components/Kbd/Kbd.d.ts +27 -0
- package/dist/components/Kbd/Kbd.js +21 -0
- package/dist/components/Kbd/Kbd.js.map +1 -0
- package/dist/components/LinkArrow/LinkArrow.d.ts +24 -0
- package/dist/components/LinkArrow/LinkArrow.js +24 -0
- package/dist/components/LinkArrow/LinkArrow.js.map +1 -0
- package/dist/components/Markdown/Markdown.d.ts +139 -0
- package/dist/components/Markdown/Markdown.js +135 -0
- package/dist/components/Markdown/Markdown.js.map +1 -0
- package/dist/components/Markdown/inline.d.ts +29 -0
- package/dist/components/Markdown/inline.js +74 -0
- package/dist/components/Markdown/inline.js.map +1 -0
- package/dist/components/Markdown/nodes.d.ts +65 -0
- package/dist/components/Markdown/nodes.js +1 -0
- package/dist/components/Markdown/nodes.js.map +1 -0
- package/dist/components/Markdown/parse.d.ts +24 -0
- package/dist/components/Markdown/parse.js +110 -0
- package/dist/components/Markdown/parse.js.map +1 -0
- package/dist/components/Markdown/slug.d.ts +15 -0
- package/dist/components/Markdown/slug.js +7 -0
- package/dist/components/Markdown/slug.js.map +1 -0
- package/dist/components/Metric/Metric.d.ts +61 -0
- package/dist/components/Metric/Metric.js +51 -0
- package/dist/components/Metric/Metric.js.map +1 -0
- package/dist/components/NativeSelect/NativeSelect.d.ts +33 -0
- package/dist/components/NativeSelect/NativeSelect.js +44 -0
- package/dist/components/NativeSelect/NativeSelect.js.map +1 -0
- package/dist/components/NavItem/NavItem.d.ts +39 -0
- package/dist/components/NavItem/NavItem.js +31 -0
- package/dist/components/NavItem/NavItem.js.map +1 -0
- package/dist/components/NumberField/NumberField.d.ts +69 -0
- package/dist/components/NumberField/NumberField.js +162 -0
- package/dist/components/NumberField/NumberField.js.map +1 -0
- package/dist/components/PageHeader/PageHeader.d.ts +92 -0
- package/dist/components/PageHeader/PageHeader.js +37 -0
- package/dist/components/PageHeader/PageHeader.js.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +67 -0
- package/dist/components/Pagination/Pagination.js +112 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Popover/Popover.d.ts +39 -0
- package/dist/components/Popover/Popover.js +57 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Progress/Progress.d.ts +43 -0
- package/dist/components/Progress/Progress.js +57 -0
- package/dist/components/Progress/Progress.js.map +1 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +49 -0
- package/dist/components/RadioGroup/RadioGroup.js +53 -0
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/ScrollArea/ScrollArea.d.ts +46 -0
- package/dist/components/ScrollArea/ScrollArea.js +54 -0
- package/dist/components/ScrollArea/ScrollArea.js.map +1 -0
- package/dist/components/SearchableMenu/SearchableMenu.d.ts +68 -0
- package/dist/components/SearchableMenu/SearchableMenu.js +101 -0
- package/dist/components/SearchableMenu/SearchableMenu.js.map +1 -0
- package/dist/components/Select/Select.d.ts +87 -0
- package/dist/components/Select/Select.js +130 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Separator/Separator.d.ts +48 -0
- package/dist/components/Separator/Separator.js +43 -0
- package/dist/components/Separator/Separator.js.map +1 -0
- package/dist/components/Sheet/Sheet.d.ts +43 -0
- package/dist/components/Sheet/Sheet.js +79 -0
- package/dist/components/Sheet/Sheet.js.map +1 -0
- package/dist/components/Sidebar/Sidebar.d.ts +357 -0
- package/dist/components/Sidebar/Sidebar.js +447 -0
- package/dist/components/Sidebar/Sidebar.js.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +70 -0
- package/dist/components/Skeleton/Skeleton.js +44 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Slider/Slider.d.ts +74 -0
- package/dist/components/Slider/Slider.js +143 -0
- package/dist/components/Slider/Slider.js.map +1 -0
- package/dist/components/Spinner/Spinner.d.ts +58 -0
- package/dist/components/Spinner/Spinner.js +49 -0
- package/dist/components/Spinner/Spinner.js.map +1 -0
- package/dist/components/StatusDot/StatusDot.d.ts +29 -0
- package/dist/components/StatusDot/StatusDot.js +44 -0
- package/dist/components/StatusDot/StatusDot.js.map +1 -0
- package/dist/components/StatusPill/StatusPill.d.ts +30 -0
- package/dist/components/StatusPill/StatusPill.js +37 -0
- package/dist/components/StatusPill/StatusPill.js.map +1 -0
- package/dist/components/Steps/Steps.d.ts +65 -0
- package/dist/components/Steps/Steps.js +25 -0
- package/dist/components/Steps/Steps.js.map +1 -0
- package/dist/components/Switch/Switch.d.ts +23 -0
- package/dist/components/Switch/Switch.js +23 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Table/Table.d.ts +116 -0
- package/dist/components/Table/Table.js +137 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Tabs/Tabs.d.ts +37 -0
- package/dist/components/Tabs/Tabs.js +205 -0
- package/dist/components/Tabs/Tabs.js.map +1 -0
- package/dist/components/Tag/Tag.d.ts +87 -0
- package/dist/components/Tag/Tag.js +62 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Text/Text.d.ts +62 -0
- package/dist/components/Text/Text.js +30 -0
- package/dist/components/Text/Text.js.map +1 -0
- package/dist/components/Textarea/Textarea.d.ts +20 -0
- package/dist/components/Textarea/Textarea.js +32 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Timestamp/Timestamp.d.ts +59 -0
- package/dist/components/Timestamp/Timestamp.js +56 -0
- package/dist/components/Timestamp/Timestamp.js.map +1 -0
- package/dist/components/Toast/Toast.d.ts +32 -0
- package/dist/components/Toast/Toast.js +64 -0
- package/dist/components/Toast/Toast.js.map +1 -0
- package/dist/components/ToggleGroup/ToggleGroup.d.ts +46 -0
- package/dist/components/ToggleGroup/ToggleGroup.js +88 -0
- package/dist/components/ToggleGroup/ToggleGroup.js.map +1 -0
- package/dist/components/Toolbar/Toolbar.d.ts +55 -0
- package/dist/components/Toolbar/Toolbar.js +43 -0
- package/dist/components/Toolbar/Toolbar.js.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +43 -0
- package/dist/components/Tooltip/Tooltip.js +40 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/diagrams/ArchitectureFigure/ArchitectureFigure.d.ts +55 -0
- package/dist/diagrams/ArchitectureFigure/ArchitectureFigure.js +175 -0
- package/dist/diagrams/ArchitectureFigure/ArchitectureFigure.js.map +1 -0
- package/dist/diagrams/DataflowFigure/DataflowFigure.d.ts +28 -0
- package/dist/diagrams/DataflowFigure/DataflowFigure.js +148 -0
- package/dist/diagrams/DataflowFigure/DataflowFigure.js.map +1 -0
- package/dist/diagrams/DiagramCanvas/DiagramCanvas.d.ts +78 -0
- package/dist/diagrams/DiagramCanvas/DiagramCanvas.js +229 -0
- package/dist/diagrams/DiagramCanvas/DiagramCanvas.js.map +1 -0
- package/dist/diagrams/DiagramExportMenu/DiagramExportMenu.d.ts +106 -0
- package/dist/diagrams/DiagramExportMenu/DiagramExportMenu.js +123 -0
- package/dist/diagrams/DiagramExportMenu/DiagramExportMenu.js.map +1 -0
- package/dist/diagrams/DiagramInspector/DiagramInspector.d.ts +70 -0
- package/dist/diagrams/DiagramInspector/DiagramInspector.js +94 -0
- package/dist/diagrams/DiagramInspector/DiagramInspector.js.map +1 -0
- package/dist/diagrams/DiagramLegend/DiagramLegend.d.ts +42 -0
- package/dist/diagrams/DiagramLegend/DiagramLegend.js +35 -0
- package/dist/diagrams/DiagramLegend/DiagramLegend.js.map +1 -0
- package/dist/diagrams/DiagramMinimap/DiagramMinimap.d.ts +77 -0
- package/dist/diagrams/DiagramMinimap/DiagramMinimap.js +106 -0
- package/dist/diagrams/DiagramMinimap/DiagramMinimap.js.map +1 -0
- package/dist/diagrams/DiagramToolbar/DiagramToolbar.d.ts +48 -0
- package/dist/diagrams/DiagramToolbar/DiagramToolbar.js +53 -0
- package/dist/diagrams/DiagramToolbar/DiagramToolbar.js.map +1 -0
- package/dist/diagrams/LifecycleFigure/LifecycleFigure.d.ts +31 -0
- package/dist/diagrams/LifecycleFigure/LifecycleFigure.js +234 -0
- package/dist/diagrams/LifecycleFigure/LifecycleFigure.js.map +1 -0
- package/dist/diagrams/SequenceFigure/SequenceFigure.d.ts +38 -0
- package/dist/diagrams/SequenceFigure/SequenceFigure.js +261 -0
- package/dist/diagrams/SequenceFigure/SequenceFigure.js.map +1 -0
- package/dist/diagrams/WorkflowFigure/WorkflowFigure.d.ts +36 -0
- package/dist/diagrams/WorkflowFigure/WorkflowFigure.js +259 -0
- package/dist/diagrams/WorkflowFigure/WorkflowFigure.js.map +1 -0
- package/dist/diagrams/index.d.ts +17 -0
- package/dist/diagrams/index.js +29 -0
- package/dist/diagrams/index.js.map +1 -0
- package/dist/diagrams/lib/dev.d.ts +61 -0
- package/dist/diagrams/lib/dev.js +96 -0
- package/dist/diagrams/lib/dev.js.map +1 -0
- package/dist/diagrams/lib/frame.d.ts +138 -0
- package/dist/diagrams/lib/frame.js +131 -0
- package/dist/diagrams/lib/frame.js.map +1 -0
- package/dist/diagrams/lib/geometry.d.ts +114 -0
- package/dist/diagrams/lib/geometry.js +113 -0
- package/dist/diagrams/lib/geometry.js.map +1 -0
- package/dist/diagrams/lib/legend.d.ts +32 -0
- package/dist/diagrams/lib/legend.js +84 -0
- package/dist/diagrams/lib/legend.js.map +1 -0
- package/dist/diagrams/lib/marks.d.ts +207 -0
- package/dist/diagrams/lib/marks.js +480 -0
- package/dist/diagrams/lib/marks.js.map +1 -0
- package/dist/diagrams/lib/route.d.ts +106 -0
- package/dist/diagrams/lib/route.js +201 -0
- package/dist/diagrams/lib/route.js.map +1 -0
- package/dist/diagrams/lib/wires.d.ts +59 -0
- package/dist/diagrams/lib/wires.js +94 -0
- package/dist/diagrams/lib/wires.js.map +1 -0
- package/dist/diagrams/spec.d.ts +405 -0
- package/dist/diagrams/spec.js +1 -0
- package/dist/diagrams/spec.js.map +1 -0
- package/dist/fonts/hanken-grotesk-300.woff2 +0 -0
- package/dist/fonts/hanken-grotesk-400.woff2 +0 -0
- package/dist/fonts/hanken-grotesk-500.woff2 +0 -0
- package/dist/fonts/hanken-grotesk-600.woff2 +0 -0
- package/dist/fonts/hanken-grotesk-700.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-400.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-500.woff2 +0 -0
- package/dist/fonts/ibm-plex-mono-600.woff2 +0 -0
- package/dist/fonts/newsreader-300.woff2 +0 -0
- package/dist/fonts/newsreader-400.woff2 +0 -0
- package/dist/fonts/newsreader-500.woff2 +0 -0
- package/dist/fonts/newsreader-600.woff2 +0 -0
- package/dist/fonts.css +96 -0
- package/dist/index.d.ts +97 -0
- package/dist/index.js +80 -0
- package/dist/index.js.map +1 -0
- package/dist/keyframes.css +300 -0
- package/dist/lib/cn.d.ts +21 -0
- package/dist/lib/cn.js +9 -0
- package/dist/lib/cn.js.map +1 -0
- package/dist/lib/color.d.ts +80 -0
- package/dist/lib/color.js +189 -0
- package/dist/lib/color.js.map +1 -0
- package/dist/lib/control.d.ts +32 -0
- package/dist/lib/control.js +14 -0
- package/dist/lib/control.js.map +1 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/index.js +11 -0
- package/dist/lib/index.js.map +1 -0
- package/dist/lib/numeric.d.ts +35 -0
- package/dist/lib/numeric.js +29 -0
- package/dist/lib/numeric.js.map +1 -0
- package/dist/lib/overlay-container.d.ts +48 -0
- package/dist/lib/overlay-container.js +15 -0
- package/dist/lib/overlay-container.js.map +1 -0
- package/dist/lib/slot-content.d.ts +8 -0
- package/dist/lib/slot-content.js +17 -0
- package/dist/lib/slot-content.js.map +1 -0
- package/dist/lib/step-rail.d.ts +45 -0
- package/dist/lib/step-rail.js +47 -0
- package/dist/lib/step-rail.js.map +1 -0
- package/dist/lib/svg-export.d.ts +138 -0
- package/dist/lib/svg-export.js +198 -0
- package/dist/lib/svg-export.js.map +1 -0
- package/dist/lib/useClipboardCopy.d.ts +30 -0
- package/dist/lib/useClipboardCopy.js +37 -0
- package/dist/lib/useClipboardCopy.js.map +1 -0
- package/dist/lib/useSelectionIndicator.d.ts +29 -0
- package/dist/lib/useSelectionIndicator.js +49 -0
- package/dist/lib/useSelectionIndicator.js.map +1 -0
- package/dist/lib/warn.d.ts +73 -0
- package/dist/lib/warn.js +38 -0
- package/dist/lib/warn.js.map +1 -0
- package/dist/semantic.css +193 -0
- package/dist/styles.css +98 -0
- package/dist/themes.css +514 -0
- package/dist/tokens/brand.d.ts +47 -0
- package/dist/tokens/brand.js +38 -0
- package/dist/tokens/brand.js.map +1 -0
- package/dist/tokens.css +652 -0
- package/dist/tokens.d.ts +198 -0
- package/dist/tokens.js +1020 -0
- package/dist/tokens.json +1019 -0
- package/dist/website/Actions/Actions.d.ts +34 -0
- package/dist/website/Actions/Actions.js +29 -0
- package/dist/website/Actions/Actions.js.map +1 -0
- package/dist/website/Collection/Collection.d.ts +128 -0
- package/dist/website/Collection/Collection.js +162 -0
- package/dist/website/Collection/Collection.js.map +1 -0
- package/dist/website/Contact/Contact.d.ts +87 -0
- package/dist/website/Contact/Contact.js +94 -0
- package/dist/website/Contact/Contact.js.map +1 -0
- package/dist/website/Content/CodePanel.d.ts +27 -0
- package/dist/website/Content/CodePanel.js +30 -0
- package/dist/website/Content/CodePanel.js.map +1 -0
- package/dist/website/Content/Content.d.ts +29 -0
- package/dist/website/Content/Content.js +38 -0
- package/dist/website/Content/Content.js.map +1 -0
- package/dist/website/Conversation/Conversation.d.ts +193 -0
- package/dist/website/Conversation/Conversation.js +252 -0
- package/dist/website/Conversation/Conversation.js.map +1 -0
- package/dist/website/Evidence/Evidence.d.ts +116 -0
- package/dist/website/Evidence/Evidence.js +142 -0
- package/dist/website/Evidence/Evidence.js.map +1 -0
- package/dist/website/Media/Media.d.ts +173 -0
- package/dist/website/Media/Media.js +225 -0
- package/dist/website/Media/Media.js.map +1 -0
- package/dist/website/Media/MediaLightbox.d.ts +18 -0
- package/dist/website/Media/MediaLightbox.js +38 -0
- package/dist/website/Media/MediaLightbox.js.map +1 -0
- package/dist/website/Metrics/Metrics.d.ts +74 -0
- package/dist/website/Metrics/Metrics.js +96 -0
- package/dist/website/Metrics/Metrics.js.map +1 -0
- package/dist/website/Music/Music.d.ts +60 -0
- package/dist/website/Music/Music.js +80 -0
- package/dist/website/Music/Music.js.map +1 -0
- package/dist/website/Portfolio/FrameLayout.d.ts +9 -0
- package/dist/website/Portfolio/FrameLayout.js +42 -0
- package/dist/website/Portfolio/FrameLayout.js.map +1 -0
- package/dist/website/Portfolio/Portfolio.d.ts +49 -0
- package/dist/website/Portfolio/Portfolio.js +66 -0
- package/dist/website/Portfolio/Portfolio.js.map +1 -0
- package/dist/website/Portfolio/QuestionCard.d.ts +22 -0
- package/dist/website/Portfolio/QuestionCard.js +33 -0
- package/dist/website/Portfolio/QuestionCard.js.map +1 -0
- package/dist/website/PortfolioIndex/PortfolioIndex.d.ts +21 -0
- package/dist/website/PortfolioIndex/PortfolioIndex.js +31 -0
- package/dist/website/PortfolioIndex/PortfolioIndex.js.map +1 -0
- package/dist/website/Reading/Reading.d.ts +203 -0
- package/dist/website/Reading/Reading.js +357 -0
- package/dist/website/Reading/Reading.js.map +1 -0
- package/dist/website/Recovery/Recovery.d.ts +39 -0
- package/dist/website/Recovery/Recovery.js +96 -0
- package/dist/website/Recovery/Recovery.js.map +1 -0
- package/dist/website/SearchPalette/SearchPalette.d.ts +59 -0
- package/dist/website/SearchPalette/SearchPalette.js +120 -0
- package/dist/website/SearchPalette/SearchPalette.js.map +1 -0
- package/dist/website/SiteNavigation/SiteNavigation.d.ts +46 -0
- package/dist/website/SiteNavigation/SiteNavigation.js +101 -0
- package/dist/website/SiteNavigation/SiteNavigation.js.map +1 -0
- package/dist/website/SiteShell/SiteShell.d.ts +45 -0
- package/dist/website/SiteShell/SiteShell.js +46 -0
- package/dist/website/SiteShell/SiteShell.js.map +1 -0
- package/dist/website/Timeline/Timeline.d.ts +80 -0
- package/dist/website/Timeline/Timeline.js +99 -0
- package/dist/website/Timeline/Timeline.js.map +1 -0
- package/dist/website/index.d.ts +27 -0
- package/dist/website/index.js +21 -0
- package/dist/website/index.js.map +1 -0
- package/dist/website-actions.css +6 -0
- package/dist/website-base.css +46 -0
- package/dist/website-collection.css +89 -0
- package/dist/website-contact.css +29 -0
- package/dist/website-content.css +17 -0
- package/dist/website-controls.css +91 -0
- package/dist/website-conversation.css +115 -0
- package/dist/website-evidence.css +56 -0
- package/dist/website-media.css +227 -0
- package/dist/website-metrics.css +15 -0
- package/dist/website-music.css +27 -0
- package/dist/website-portfolio.css +94 -0
- package/dist/website-reading.css +159 -0
- package/dist/website-recovery.css +28 -0
- package/dist/website-search.css +26 -0
- package/dist/website-shell.css +89 -0
- package/dist/website-timeline.css +43 -0
- package/dist/website.css +25 -0
- package/llms.txt +35 -0
- package/package.json +163 -5
- package/skills/folio-design/SKILL.md +228 -0
- package/skills/folio-design/evals/claims.json +95 -0
- package/skills/folio-design/evals/evals.json +84 -0
- package/skills/folio-design/rules/a11y.md +167 -0
- package/skills/folio-design/rules/composition.md +108 -0
- package/skills/folio-design/rules/forms.md +135 -0
- package/skills/folio-design/rules/naming.md +155 -0
- package/skills/folio-design/rules/tokens.md +133 -0
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ChartConfig } from './chart.js';
|
|
3
|
+
import 'recharts';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The intro wipe's direction, shared by every mark that has one.
|
|
7
|
+
*
|
|
8
|
+
* Named for the DATA rather than for the screen. `forward` runs from the first
|
|
9
|
+
* row to the last, `reverse` the other way — which is the thing the author
|
|
10
|
+
* actually means, and stays true in a right-to-left document, where a cartesian
|
|
11
|
+
* plot is still drawn first-row-first.
|
|
12
|
+
*
|
|
13
|
+
* `"none"` opts out, and is also what a device with the OS reduce-motion
|
|
14
|
+
* preference falls back to: a reveal is a per-frame animated SVG mask, the
|
|
15
|
+
* heaviest thing in the package and the least welcome to a reader who has
|
|
16
|
+
* asked for stillness.
|
|
17
|
+
*/
|
|
18
|
+
type ChartRevealType = 'none' | 'forward' | 'reverse' | 'center-out' | 'edges-in';
|
|
19
|
+
/** A reveal that actually plays. */
|
|
20
|
+
type ChartRevealDirection = Exclude<ChartRevealType, 'none'>;
|
|
21
|
+
/** The intro wipe, in seconds. */
|
|
22
|
+
declare const REVEAL_DURATION = 1;
|
|
23
|
+
/**
|
|
24
|
+
* The wipe's curve. Not `--ease`: the system's easing is tuned for a control
|
|
25
|
+
* moving a few pixels, and over a full plot width it arrives too abruptly.
|
|
26
|
+
* A long, flat tail is what makes a line read as being drawn.
|
|
27
|
+
*/
|
|
28
|
+
declare const REVEAL_EASE: [number, number, number, number];
|
|
29
|
+
/**
|
|
30
|
+
* The mask that draws a line or an area in.
|
|
31
|
+
*
|
|
32
|
+
* One mask covers the mark's fill, its stroke AND its resting dots, so the
|
|
33
|
+
* three arrive together. Drawn separately — which is what Recharts' own
|
|
34
|
+
* animation does — the dots pop in before the line reaches them.
|
|
35
|
+
*
|
|
36
|
+
* Both `maskUnits` and `maskContentUnits` are user space so every masked
|
|
37
|
+
* element shares one coordinate system and the wipe edge lands at the same x
|
|
38
|
+
* on each of them.
|
|
39
|
+
*/
|
|
40
|
+
declare function RevealMask({ id, type }: {
|
|
41
|
+
id: string;
|
|
42
|
+
type: ChartRevealDirection;
|
|
43
|
+
}): react.JSX.Element;
|
|
44
|
+
interface PaintProps {
|
|
45
|
+
/** The owning mark's id, which scopes every definition below. */
|
|
46
|
+
id: string;
|
|
47
|
+
/** The series being painted. */
|
|
48
|
+
dataKey: string;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* The one gradient everything else is masked out of.
|
|
52
|
+
*
|
|
53
|
+
* Every fill variant, every stroke and every dot in a chart paints from this,
|
|
54
|
+
* which is what makes a series a single visual object rather than a set of
|
|
55
|
+
* elements that happen to share a colour. A series with one colour still gets a
|
|
56
|
+
* two-stop gradient: it keeps the paint reference identical across variants, so
|
|
57
|
+
* switching a series from one colour to three changes no other code.
|
|
58
|
+
*/
|
|
59
|
+
declare function SeriesGradient({ id, dataKey, config, direction, gradientUnits, }: PaintProps & {
|
|
60
|
+
config: ChartConfig;
|
|
61
|
+
/** Horizontal reads along the axis; vertical reads up the mark. */
|
|
62
|
+
direction?: 'horizontal' | 'vertical';
|
|
63
|
+
gradientUnits?: 'userSpaceOnUse' | 'objectBoundingBox';
|
|
64
|
+
}): react.JSX.Element;
|
|
65
|
+
/**
|
|
66
|
+
* The stops themselves, so a variant can build its own gradient from them.
|
|
67
|
+
*
|
|
68
|
+
* `opacities` ramps the stops independently of their colour — a radar's fill
|
|
69
|
+
* fades from its centre outward without needing a second gradient to mask it.
|
|
70
|
+
*/
|
|
71
|
+
declare function ColorStops({ dataKey, stops, opacities, }: {
|
|
72
|
+
dataKey: string;
|
|
73
|
+
stops: number;
|
|
74
|
+
opacities?: number[];
|
|
75
|
+
}): react.JSX.Element;
|
|
76
|
+
/** Solid at the top, dissolving toward the axis. The default. */
|
|
77
|
+
declare function AreaGradientFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
78
|
+
/** The same fade, run the other way — heavier where it meets the axis. */
|
|
79
|
+
declare function AreaGradientReverseFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
80
|
+
/** One flat wash, no fade. Reads as a band rather than as a slope. */
|
|
81
|
+
declare function AreaSolidFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
82
|
+
/** A field of dots. The lightest texture, and the one that stacks best. */
|
|
83
|
+
declare function AreaDottedFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
84
|
+
/** Diagonal rule lines, 45°. */
|
|
85
|
+
declare function AreaLinesFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
86
|
+
/** Wide soft-edged stripes at 20°. The heaviest of the six. */
|
|
87
|
+
declare function AreaHatchedFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
88
|
+
/**
|
|
89
|
+
* What a series looks like when another one is selected.
|
|
90
|
+
*
|
|
91
|
+
* A thin diagonal rule rather than a lower opacity: opacity alone makes a
|
|
92
|
+
* series faint, and a faint area on a white ground is still an area. The
|
|
93
|
+
* texture change is what makes it read as "not this one".
|
|
94
|
+
*/
|
|
95
|
+
declare function UnselectedFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
96
|
+
/** 45° stripes over a faint ground. */
|
|
97
|
+
declare function BarHatchedFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
98
|
+
/**
|
|
99
|
+
* Stripes with nothing behind them — the projected, not-yet-real part of a
|
|
100
|
+
* series. Used by the last bar when `buffer` is set.
|
|
101
|
+
*/
|
|
102
|
+
declare function BarBufferFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
103
|
+
/**
|
|
104
|
+
* A bar split down its own middle, one half at full weight.
|
|
105
|
+
*
|
|
106
|
+
* Everything here is in object-bounding-box units so the split lands at each
|
|
107
|
+
* bar's centre rather than at the plot's — in user space a narrow bar at the
|
|
108
|
+
* right of the chart would be entirely on one side of the seam.
|
|
109
|
+
*/
|
|
110
|
+
declare function BarDuotoneFill({ id, dataKey, config, reverse, }: PaintProps & {
|
|
111
|
+
config: ChartConfig;
|
|
112
|
+
reverse?: boolean;
|
|
113
|
+
}): react.JSX.Element;
|
|
114
|
+
/** Solid at the top of the bar, dissolving toward the baseline. */
|
|
115
|
+
declare function BarGradientFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
116
|
+
/**
|
|
117
|
+
* A faint body under a solid cap, drawn by the bar shape itself.
|
|
118
|
+
*
|
|
119
|
+
* The variant that survives density best: at twenty bars a solid block becomes
|
|
120
|
+
* a wall, and a 2px cap over a wash still reads as twenty distinct values.
|
|
121
|
+
*/
|
|
122
|
+
declare function BarStrippedFill({ id, dataKey }: PaintProps): react.JSX.Element;
|
|
123
|
+
/**
|
|
124
|
+
* The halo behind a highlighted mark.
|
|
125
|
+
*
|
|
126
|
+
* The one blur in the package, and it is a filter on a MARK rather than a
|
|
127
|
+
* box-shadow under a panel — law 2 bans the second, not the first. It exists
|
|
128
|
+
* because a monochrome chart has no "brighter" to reach for when one series has
|
|
129
|
+
* to be the point of the figure.
|
|
130
|
+
*
|
|
131
|
+
* A line needs a wider, stronger halo than a bar: a 0.8px stroke has almost no
|
|
132
|
+
* area to bleed from, where a bar has its whole face.
|
|
133
|
+
*/
|
|
134
|
+
declare function GlowFilter({ id, dataKey, spread, intensity, }: PaintProps & {
|
|
135
|
+
/** Blur radius, in user units. */
|
|
136
|
+
spread?: number;
|
|
137
|
+
/** Alpha multiplier on the blurred copy. Above 1 saturates it. */
|
|
138
|
+
intensity?: number;
|
|
139
|
+
}): react.JSX.Element;
|
|
140
|
+
/**
|
|
141
|
+
* A dashed stroke that crawls along its own path.
|
|
142
|
+
*
|
|
143
|
+
* SMIL rather than CSS, because the two attributes have to stay in lockstep and
|
|
144
|
+
* a CSS animation on `stroke-dasharray` is not interpolated the same way in
|
|
145
|
+
* every engine. It is composed as a CHILD of the mark, so a caller that does
|
|
146
|
+
* not ask for it pays nothing — and `keyframes.css`'s reduced-motion rule
|
|
147
|
+
* cannot reach SMIL, which is why the call sites gate it on `useReducedMotion`
|
|
148
|
+
* instead.
|
|
149
|
+
*/
|
|
150
|
+
declare function AnimatedDashedStroke({ dash }: {
|
|
151
|
+
dash?: number;
|
|
152
|
+
}): react.JSX.Element;
|
|
153
|
+
|
|
154
|
+
export { AnimatedDashedStroke, AreaDottedFill, AreaGradientFill, AreaGradientReverseFill, AreaHatchedFill, AreaLinesFill, AreaSolidFill, BarBufferFill, BarDuotoneFill, BarGradientFill, BarHatchedFill, BarStrippedFill, type ChartRevealDirection, type ChartRevealType, ColorStops, GlowFilter, type PaintProps, REVEAL_DURATION, REVEAL_EASE, RevealMask, SeriesGradient, UnselectedFill };
|
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { motion } from "motion/react";
|
|
4
|
+
import { colorStops } from "./chart.js";
|
|
5
|
+
const REVEAL_DURATION = 1;
|
|
6
|
+
const REVEAL_EASE = [0, 0.7, 0.5, 1];
|
|
7
|
+
const REVEAL_ORIGIN = {
|
|
8
|
+
forward: 0,
|
|
9
|
+
reverse: 1,
|
|
10
|
+
"center-out": 0.5
|
|
11
|
+
};
|
|
12
|
+
function RevealMask({ id, type }) {
|
|
13
|
+
const reveal = {
|
|
14
|
+
initial: { scaleX: 0 },
|
|
15
|
+
animate: { scaleX: 1 },
|
|
16
|
+
transition: { duration: REVEAL_DURATION, ease: REVEAL_EASE }
|
|
17
|
+
};
|
|
18
|
+
return /* @__PURE__ */ jsx(
|
|
19
|
+
"mask",
|
|
20
|
+
{
|
|
21
|
+
id: `${id}-reveal-mask`,
|
|
22
|
+
maskUnits: "userSpaceOnUse",
|
|
23
|
+
maskContentUnits: "userSpaceOnUse",
|
|
24
|
+
x: "0",
|
|
25
|
+
y: "0",
|
|
26
|
+
width: "100%",
|
|
27
|
+
height: "100%",
|
|
28
|
+
children: type === "edges-in" ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
29
|
+
/* @__PURE__ */ jsx(
|
|
30
|
+
motion.rect,
|
|
31
|
+
{
|
|
32
|
+
...reveal,
|
|
33
|
+
x: "0",
|
|
34
|
+
y: "0",
|
|
35
|
+
width: "50%",
|
|
36
|
+
height: "100%",
|
|
37
|
+
fill: "white",
|
|
38
|
+
style: { originX: 0 }
|
|
39
|
+
}
|
|
40
|
+
),
|
|
41
|
+
/* @__PURE__ */ jsx(
|
|
42
|
+
motion.rect,
|
|
43
|
+
{
|
|
44
|
+
...reveal,
|
|
45
|
+
x: "50%",
|
|
46
|
+
y: "0",
|
|
47
|
+
width: "50%",
|
|
48
|
+
height: "100%",
|
|
49
|
+
fill: "white",
|
|
50
|
+
style: { originX: 1 }
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] }) : /* @__PURE__ */ jsx(
|
|
54
|
+
motion.rect,
|
|
55
|
+
{
|
|
56
|
+
...reveal,
|
|
57
|
+
x: "0",
|
|
58
|
+
y: "0",
|
|
59
|
+
width: "100%",
|
|
60
|
+
height: "100%",
|
|
61
|
+
fill: "white",
|
|
62
|
+
style: { originX: REVEAL_ORIGIN[type] }
|
|
63
|
+
}
|
|
64
|
+
)
|
|
65
|
+
}
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
function SeriesGradient({
|
|
69
|
+
id,
|
|
70
|
+
dataKey,
|
|
71
|
+
config,
|
|
72
|
+
direction = "horizontal",
|
|
73
|
+
gradientUnits
|
|
74
|
+
}) {
|
|
75
|
+
const stops = colorStops(config[dataKey]);
|
|
76
|
+
const axis = direction === "vertical" ? { x1: "0", y1: "0", x2: "0", y2: "1" } : { x1: "0", y1: "0", x2: "1", y2: "0" };
|
|
77
|
+
return /* @__PURE__ */ jsx("linearGradient", { id: `${id}-colors-${dataKey}`, ...axis, gradientUnits, children: /* @__PURE__ */ jsx(ColorStops, { dataKey, stops }) });
|
|
78
|
+
}
|
|
79
|
+
function ColorStops({
|
|
80
|
+
dataKey,
|
|
81
|
+
stops,
|
|
82
|
+
opacities
|
|
83
|
+
}) {
|
|
84
|
+
if (stops === 1) {
|
|
85
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
86
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: `var(--color-${dataKey}-0)`, stopOpacity: opacities?.[0] }),
|
|
87
|
+
/* @__PURE__ */ jsx(
|
|
88
|
+
"stop",
|
|
89
|
+
{
|
|
90
|
+
offset: "100%",
|
|
91
|
+
stopColor: `var(--color-${dataKey}-0)`,
|
|
92
|
+
stopOpacity: opacities?.[opacities.length - 1]
|
|
93
|
+
}
|
|
94
|
+
)
|
|
95
|
+
] });
|
|
96
|
+
}
|
|
97
|
+
return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: stops }, (_, index) => {
|
|
98
|
+
const offset = `${index / (stops - 1) * 100}%`;
|
|
99
|
+
return /* @__PURE__ */ jsx(
|
|
100
|
+
"stop",
|
|
101
|
+
{
|
|
102
|
+
offset,
|
|
103
|
+
stopColor: `var(--color-${dataKey}-${index}, var(--color-${dataKey}-0))`,
|
|
104
|
+
stopOpacity: opacities?.[index]
|
|
105
|
+
},
|
|
106
|
+
offset
|
|
107
|
+
);
|
|
108
|
+
}) });
|
|
109
|
+
}
|
|
110
|
+
function MaskedFill({
|
|
111
|
+
name,
|
|
112
|
+
id,
|
|
113
|
+
dataKey,
|
|
114
|
+
texture,
|
|
115
|
+
patternUnits = "userSpaceOnUse",
|
|
116
|
+
patternContentUnits,
|
|
117
|
+
size = { width: "100%", height: "100%" },
|
|
118
|
+
maskContentUnits,
|
|
119
|
+
fill
|
|
120
|
+
}) {
|
|
121
|
+
const maskId = `${id}-${name}-mask-${dataKey}`;
|
|
122
|
+
const paint = fill ?? `url(#${id}-colors-${dataKey})`;
|
|
123
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
124
|
+
/* @__PURE__ */ jsx("mask", { id: maskId, maskContentUnits, children: texture }),
|
|
125
|
+
/* @__PURE__ */ jsx(
|
|
126
|
+
"pattern",
|
|
127
|
+
{
|
|
128
|
+
id: `${id}-${name}-${dataKey}`,
|
|
129
|
+
patternUnits,
|
|
130
|
+
patternContentUnits,
|
|
131
|
+
width: size.width,
|
|
132
|
+
height: size.height,
|
|
133
|
+
children: /* @__PURE__ */ jsx(
|
|
134
|
+
"rect",
|
|
135
|
+
{
|
|
136
|
+
x: "0",
|
|
137
|
+
y: "0",
|
|
138
|
+
width: size.width,
|
|
139
|
+
height: size.height,
|
|
140
|
+
fill: paint,
|
|
141
|
+
mask: `url(#${maskId})`
|
|
142
|
+
}
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
)
|
|
146
|
+
] });
|
|
147
|
+
}
|
|
148
|
+
function AreaGradientFill({ id, dataKey }) {
|
|
149
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
150
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: `${id}-area-gradient-fade-${dataKey}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
151
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "white", stopOpacity: "var(--chart-fill)" }),
|
|
152
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "white", stopOpacity: 0 })
|
|
153
|
+
] }),
|
|
154
|
+
/* @__PURE__ */ jsx(
|
|
155
|
+
MaskedFill,
|
|
156
|
+
{
|
|
157
|
+
name: "gradient",
|
|
158
|
+
id,
|
|
159
|
+
dataKey,
|
|
160
|
+
texture: /* @__PURE__ */ jsx(
|
|
161
|
+
"rect",
|
|
162
|
+
{
|
|
163
|
+
width: "100%",
|
|
164
|
+
height: "100%",
|
|
165
|
+
fill: `url(#${id}-area-gradient-fade-${dataKey})`
|
|
166
|
+
}
|
|
167
|
+
)
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
] });
|
|
171
|
+
}
|
|
172
|
+
function AreaGradientReverseFill({ id, dataKey }) {
|
|
173
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
174
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: `${id}-area-reverse-fade-${dataKey}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
175
|
+
/* @__PURE__ */ jsx("stop", { offset: "0%", stopColor: "white", stopOpacity: 0 }),
|
|
176
|
+
/* @__PURE__ */ jsx("stop", { offset: "100%", stopColor: "white", stopOpacity: "var(--chart-fill)" })
|
|
177
|
+
] }),
|
|
178
|
+
/* @__PURE__ */ jsx(
|
|
179
|
+
MaskedFill,
|
|
180
|
+
{
|
|
181
|
+
name: "gradient-reverse",
|
|
182
|
+
id,
|
|
183
|
+
dataKey,
|
|
184
|
+
texture: /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id}-area-reverse-fade-${dataKey})` })
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
] });
|
|
188
|
+
}
|
|
189
|
+
function AreaSolidFill({ id, dataKey }) {
|
|
190
|
+
return /* @__PURE__ */ jsx(
|
|
191
|
+
MaskedFill,
|
|
192
|
+
{
|
|
193
|
+
name: "solid",
|
|
194
|
+
id,
|
|
195
|
+
dataKey,
|
|
196
|
+
texture: /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: "white", fillOpacity: "var(--chart-fill)" })
|
|
197
|
+
}
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
function AreaDottedFill({ id, dataKey }) {
|
|
201
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
202
|
+
/* @__PURE__ */ jsx(
|
|
203
|
+
"pattern",
|
|
204
|
+
{
|
|
205
|
+
id: `${id}-area-dotted-texture-${dataKey}`,
|
|
206
|
+
x: "0",
|
|
207
|
+
y: "0",
|
|
208
|
+
width: "6",
|
|
209
|
+
height: "6",
|
|
210
|
+
patternUnits: "userSpaceOnUse",
|
|
211
|
+
children: /* @__PURE__ */ jsx("circle", { cx: "4", cy: "4", r: "0.5", fill: "white" })
|
|
212
|
+
}
|
|
213
|
+
),
|
|
214
|
+
/* @__PURE__ */ jsx(
|
|
215
|
+
MaskedFill,
|
|
216
|
+
{
|
|
217
|
+
name: "dotted",
|
|
218
|
+
id,
|
|
219
|
+
dataKey,
|
|
220
|
+
texture: /* @__PURE__ */ jsx(
|
|
221
|
+
"rect",
|
|
222
|
+
{
|
|
223
|
+
width: "100%",
|
|
224
|
+
height: "100%",
|
|
225
|
+
fill: `url(#${id}-area-dotted-texture-${dataKey})`,
|
|
226
|
+
fillOpacity: "var(--chart-texture)"
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
}
|
|
230
|
+
)
|
|
231
|
+
] });
|
|
232
|
+
}
|
|
233
|
+
function AreaLinesFill({ id, dataKey }) {
|
|
234
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
235
|
+
/* @__PURE__ */ jsx(
|
|
236
|
+
"pattern",
|
|
237
|
+
{
|
|
238
|
+
id: `${id}-area-lines-texture-${dataKey}`,
|
|
239
|
+
patternUnits: "userSpaceOnUse",
|
|
240
|
+
width: "5",
|
|
241
|
+
height: "5",
|
|
242
|
+
patternTransform: "rotate(45)",
|
|
243
|
+
children: /* @__PURE__ */ jsx("line", { x1: "0", y1: "0", x2: "0", y2: "5", stroke: "white", strokeWidth: "1" })
|
|
244
|
+
}
|
|
245
|
+
),
|
|
246
|
+
/* @__PURE__ */ jsx(
|
|
247
|
+
MaskedFill,
|
|
248
|
+
{
|
|
249
|
+
name: "lines",
|
|
250
|
+
id,
|
|
251
|
+
dataKey,
|
|
252
|
+
texture: /* @__PURE__ */ jsx(
|
|
253
|
+
"rect",
|
|
254
|
+
{
|
|
255
|
+
width: "100%",
|
|
256
|
+
height: "100%",
|
|
257
|
+
fill: `url(#${id}-area-lines-texture-${dataKey})`,
|
|
258
|
+
fillOpacity: "var(--chart-texture)"
|
|
259
|
+
}
|
|
260
|
+
)
|
|
261
|
+
}
|
|
262
|
+
)
|
|
263
|
+
] });
|
|
264
|
+
}
|
|
265
|
+
function AreaHatchedFill({ id, dataKey }) {
|
|
266
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
267
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: `${id}-area-hatched-stripe-${dataKey}`, x1: "0", y1: "0", x2: "1", y2: "0", children: [
|
|
268
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "white", stopOpacity: 0.2 }),
|
|
269
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "white", stopOpacity: 1 })
|
|
270
|
+
] }),
|
|
271
|
+
/* @__PURE__ */ jsx(
|
|
272
|
+
"pattern",
|
|
273
|
+
{
|
|
274
|
+
id: `${id}-area-hatched-texture-${dataKey}`,
|
|
275
|
+
x: "0",
|
|
276
|
+
y: "0",
|
|
277
|
+
width: "20",
|
|
278
|
+
height: "10",
|
|
279
|
+
patternUnits: "userSpaceOnUse",
|
|
280
|
+
overflow: "visible",
|
|
281
|
+
patternTransform: "rotate(20)",
|
|
282
|
+
children: /* @__PURE__ */ jsx("rect", { width: "20", height: "10", fill: `url(#${id}-area-hatched-stripe-${dataKey})` })
|
|
283
|
+
}
|
|
284
|
+
),
|
|
285
|
+
/* @__PURE__ */ jsx(
|
|
286
|
+
MaskedFill,
|
|
287
|
+
{
|
|
288
|
+
name: "hatched",
|
|
289
|
+
id,
|
|
290
|
+
dataKey,
|
|
291
|
+
texture: /* @__PURE__ */ jsx(
|
|
292
|
+
"rect",
|
|
293
|
+
{
|
|
294
|
+
width: "100%",
|
|
295
|
+
height: "100%",
|
|
296
|
+
fill: `url(#${id}-area-hatched-texture-${dataKey})`,
|
|
297
|
+
fillOpacity: "var(--chart-texture)"
|
|
298
|
+
}
|
|
299
|
+
)
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
] });
|
|
303
|
+
}
|
|
304
|
+
function UnselectedFill({ id, dataKey }) {
|
|
305
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
306
|
+
/* @__PURE__ */ jsx(
|
|
307
|
+
"pattern",
|
|
308
|
+
{
|
|
309
|
+
id: `${id}-unselected-texture-${dataKey}`,
|
|
310
|
+
patternUnits: "userSpaceOnUse",
|
|
311
|
+
width: "5",
|
|
312
|
+
height: "5",
|
|
313
|
+
patternTransform: "rotate(45)",
|
|
314
|
+
children: /* @__PURE__ */ jsx("line", { x1: "0", y1: "0", x2: "0", y2: "5", stroke: "white", strokeWidth: "1" })
|
|
315
|
+
}
|
|
316
|
+
),
|
|
317
|
+
/* @__PURE__ */ jsx(
|
|
318
|
+
MaskedFill,
|
|
319
|
+
{
|
|
320
|
+
name: "unselected",
|
|
321
|
+
id,
|
|
322
|
+
dataKey,
|
|
323
|
+
texture: /* @__PURE__ */ jsx(
|
|
324
|
+
"rect",
|
|
325
|
+
{
|
|
326
|
+
width: "100%",
|
|
327
|
+
height: "100%",
|
|
328
|
+
fill: `url(#${id}-unselected-texture-${dataKey})`,
|
|
329
|
+
fillOpacity: "var(--chart-texture)"
|
|
330
|
+
}
|
|
331
|
+
)
|
|
332
|
+
}
|
|
333
|
+
)
|
|
334
|
+
] });
|
|
335
|
+
}
|
|
336
|
+
function BarHatchedFill({ id, dataKey }) {
|
|
337
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
338
|
+
/* @__PURE__ */ jsxs(
|
|
339
|
+
"pattern",
|
|
340
|
+
{
|
|
341
|
+
id: `${id}-bar-hatched-texture-${dataKey}`,
|
|
342
|
+
x: "0",
|
|
343
|
+
y: "0",
|
|
344
|
+
width: "5",
|
|
345
|
+
height: "5",
|
|
346
|
+
patternUnits: "userSpaceOnUse",
|
|
347
|
+
patternTransform: "rotate(-45)",
|
|
348
|
+
children: [
|
|
349
|
+
/* @__PURE__ */ jsx("rect", { width: "5", height: "5", fill: "white", fillOpacity: 0.3 }),
|
|
350
|
+
/* @__PURE__ */ jsx("rect", { width: "1.5", height: "5", fill: "white", fillOpacity: 1 })
|
|
351
|
+
]
|
|
352
|
+
}
|
|
353
|
+
),
|
|
354
|
+
/* @__PURE__ */ jsx(
|
|
355
|
+
MaskedFill,
|
|
356
|
+
{
|
|
357
|
+
name: "hatched",
|
|
358
|
+
id,
|
|
359
|
+
dataKey,
|
|
360
|
+
texture: /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id}-bar-hatched-texture-${dataKey})` })
|
|
361
|
+
}
|
|
362
|
+
)
|
|
363
|
+
] });
|
|
364
|
+
}
|
|
365
|
+
function BarBufferFill({ id, dataKey }) {
|
|
366
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
367
|
+
/* @__PURE__ */ jsxs(
|
|
368
|
+
"pattern",
|
|
369
|
+
{
|
|
370
|
+
id: `${id}-bar-buffer-texture-${dataKey}`,
|
|
371
|
+
x: "0",
|
|
372
|
+
y: "0",
|
|
373
|
+
width: "5",
|
|
374
|
+
height: "5",
|
|
375
|
+
patternUnits: "userSpaceOnUse",
|
|
376
|
+
patternTransform: "rotate(-45)",
|
|
377
|
+
children: [
|
|
378
|
+
/* @__PURE__ */ jsx("rect", { width: "5", height: "5", fill: "black", fillOpacity: 0 }),
|
|
379
|
+
/* @__PURE__ */ jsx("rect", { width: "1", height: "5", fill: "white", fillOpacity: 1 })
|
|
380
|
+
]
|
|
381
|
+
}
|
|
382
|
+
),
|
|
383
|
+
/* @__PURE__ */ jsx(
|
|
384
|
+
MaskedFill,
|
|
385
|
+
{
|
|
386
|
+
name: "buffer",
|
|
387
|
+
id,
|
|
388
|
+
dataKey,
|
|
389
|
+
texture: /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id}-bar-buffer-texture-${dataKey})` })
|
|
390
|
+
}
|
|
391
|
+
)
|
|
392
|
+
] });
|
|
393
|
+
}
|
|
394
|
+
function BarDuotoneFill({
|
|
395
|
+
id,
|
|
396
|
+
dataKey,
|
|
397
|
+
config,
|
|
398
|
+
reverse = false
|
|
399
|
+
}) {
|
|
400
|
+
const name = reverse ? "duotone-reverse" : "duotone";
|
|
401
|
+
const stops = colorStops(config[dataKey]);
|
|
402
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
403
|
+
/* @__PURE__ */ jsxs(
|
|
404
|
+
"linearGradient",
|
|
405
|
+
{
|
|
406
|
+
id: `${id}-${name}-split-${dataKey}`,
|
|
407
|
+
gradientUnits: "objectBoundingBox",
|
|
408
|
+
x1: "0",
|
|
409
|
+
y1: "0",
|
|
410
|
+
x2: "1",
|
|
411
|
+
y2: "0",
|
|
412
|
+
children: [
|
|
413
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "white", stopOpacity: reverse ? 1 : 0.4 }),
|
|
414
|
+
/* @__PURE__ */ jsx("stop", { offset: "50%", stopColor: "white", stopOpacity: reverse ? 0.4 : 1 })
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
),
|
|
418
|
+
/* @__PURE__ */ jsx(
|
|
419
|
+
"linearGradient",
|
|
420
|
+
{
|
|
421
|
+
id: `${id}-${name}-colors-${dataKey}`,
|
|
422
|
+
gradientUnits: "objectBoundingBox",
|
|
423
|
+
x1: "0",
|
|
424
|
+
y1: "0",
|
|
425
|
+
x2: "0",
|
|
426
|
+
y2: "1",
|
|
427
|
+
children: /* @__PURE__ */ jsx(ColorStops, { dataKey, stops })
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
/* @__PURE__ */ jsx(
|
|
431
|
+
MaskedFill,
|
|
432
|
+
{
|
|
433
|
+
name,
|
|
434
|
+
id,
|
|
435
|
+
dataKey,
|
|
436
|
+
patternUnits: "objectBoundingBox",
|
|
437
|
+
patternContentUnits: "objectBoundingBox",
|
|
438
|
+
maskContentUnits: "objectBoundingBox",
|
|
439
|
+
size: { width: 1, height: 1 },
|
|
440
|
+
fill: `url(#${id}-${name}-colors-${dataKey})`,
|
|
441
|
+
texture: /* @__PURE__ */ jsx(
|
|
442
|
+
"rect",
|
|
443
|
+
{
|
|
444
|
+
x: "0",
|
|
445
|
+
y: "0",
|
|
446
|
+
width: "1",
|
|
447
|
+
height: "1",
|
|
448
|
+
fill: `url(#${id}-${name}-split-${dataKey})`
|
|
449
|
+
}
|
|
450
|
+
)
|
|
451
|
+
}
|
|
452
|
+
)
|
|
453
|
+
] });
|
|
454
|
+
}
|
|
455
|
+
function BarGradientFill({ id, dataKey }) {
|
|
456
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
457
|
+
/* @__PURE__ */ jsxs("linearGradient", { id: `${id}-bar-gradient-fade-${dataKey}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
458
|
+
/* @__PURE__ */ jsx("stop", { offset: "20%", stopColor: "white", stopOpacity: 1 }),
|
|
459
|
+
/* @__PURE__ */ jsx("stop", { offset: "90%", stopColor: "white", stopOpacity: 0 })
|
|
460
|
+
] }),
|
|
461
|
+
/* @__PURE__ */ jsx(
|
|
462
|
+
MaskedFill,
|
|
463
|
+
{
|
|
464
|
+
name: "gradient",
|
|
465
|
+
id,
|
|
466
|
+
dataKey,
|
|
467
|
+
texture: /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: `url(#${id}-bar-gradient-fade-${dataKey})` })
|
|
468
|
+
}
|
|
469
|
+
)
|
|
470
|
+
] });
|
|
471
|
+
}
|
|
472
|
+
function BarStrippedFill({ id, dataKey }) {
|
|
473
|
+
return /* @__PURE__ */ jsx(
|
|
474
|
+
MaskedFill,
|
|
475
|
+
{
|
|
476
|
+
name: "stripped",
|
|
477
|
+
id,
|
|
478
|
+
dataKey,
|
|
479
|
+
texture: /* @__PURE__ */ jsx("rect", { width: "100%", height: "100%", fill: "white", fillOpacity: "var(--chart-fill)" })
|
|
480
|
+
}
|
|
481
|
+
);
|
|
482
|
+
}
|
|
483
|
+
function GlowFilter({
|
|
484
|
+
id,
|
|
485
|
+
dataKey,
|
|
486
|
+
spread = 8,
|
|
487
|
+
intensity = 0.5
|
|
488
|
+
}) {
|
|
489
|
+
return /* @__PURE__ */ jsxs("filter", { id: `${id}-glow-${dataKey}`, x: "-100%", y: "-100%", width: "300%", height: "300%", children: [
|
|
490
|
+
/* @__PURE__ */ jsx("feGaussianBlur", { in: "SourceGraphic", stdDeviation: spread, result: "blur" }),
|
|
491
|
+
/* @__PURE__ */ jsx(
|
|
492
|
+
"feColorMatrix",
|
|
493
|
+
{
|
|
494
|
+
in: "blur",
|
|
495
|
+
type: "matrix",
|
|
496
|
+
values: `1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 ${intensity} 0`,
|
|
497
|
+
result: "glow"
|
|
498
|
+
}
|
|
499
|
+
),
|
|
500
|
+
/* @__PURE__ */ jsxs("feMerge", { children: [
|
|
501
|
+
/* @__PURE__ */ jsx("feMergeNode", { in: "glow" }),
|
|
502
|
+
/* @__PURE__ */ jsx("feMergeNode", { in: "SourceGraphic" })
|
|
503
|
+
] })
|
|
504
|
+
] });
|
|
505
|
+
}
|
|
506
|
+
function AnimatedDashedStroke({ dash = 3 }) {
|
|
507
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
508
|
+
/* @__PURE__ */ jsx(
|
|
509
|
+
"animate",
|
|
510
|
+
{
|
|
511
|
+
attributeName: "stroke-dasharray",
|
|
512
|
+
values: `${dash} ${dash}; 0 ${dash}; ${dash} ${dash}`,
|
|
513
|
+
dur: "1s",
|
|
514
|
+
repeatCount: "indefinite",
|
|
515
|
+
keyTimes: "0;0.5;1"
|
|
516
|
+
}
|
|
517
|
+
),
|
|
518
|
+
/* @__PURE__ */ jsx(
|
|
519
|
+
"animate",
|
|
520
|
+
{
|
|
521
|
+
attributeName: "stroke-dashoffset",
|
|
522
|
+
values: `0; -${dash * 2}`,
|
|
523
|
+
dur: "1s",
|
|
524
|
+
repeatCount: "indefinite",
|
|
525
|
+
keyTimes: "0;1"
|
|
526
|
+
}
|
|
527
|
+
)
|
|
528
|
+
] });
|
|
529
|
+
}
|
|
530
|
+
export {
|
|
531
|
+
AnimatedDashedStroke,
|
|
532
|
+
AreaDottedFill,
|
|
533
|
+
AreaGradientFill,
|
|
534
|
+
AreaGradientReverseFill,
|
|
535
|
+
AreaHatchedFill,
|
|
536
|
+
AreaLinesFill,
|
|
537
|
+
AreaSolidFill,
|
|
538
|
+
BarBufferFill,
|
|
539
|
+
BarDuotoneFill,
|
|
540
|
+
BarGradientFill,
|
|
541
|
+
BarHatchedFill,
|
|
542
|
+
BarStrippedFill,
|
|
543
|
+
ColorStops,
|
|
544
|
+
GlowFilter,
|
|
545
|
+
REVEAL_DURATION,
|
|
546
|
+
REVEAL_EASE,
|
|
547
|
+
RevealMask,
|
|
548
|
+
SeriesGradient,
|
|
549
|
+
UnselectedFill
|
|
550
|
+
};
|
|
551
|
+
//# sourceMappingURL=paint.js.map
|