basalt-ui 0.4.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +70 -0
- package/CHANGELOG.md +210 -40
- package/LICENSE +201 -0
- package/README.md +421 -160
- package/agent/rules/basalt-agent.md +395 -0
- package/agent/rules/basalt-charts.md +170 -0
- package/agent/rules/basalt-commands.md +320 -0
- package/agent/rules/basalt-content.md +390 -0
- package/agent/rules/basalt-data.md +237 -0
- package/agent/rules/basalt-forms.md +186 -0
- package/agent/rules/basalt-mantine.md +327 -0
- package/agent/rules/basalt-notifications.md +264 -0
- package/agent/rules/basalt-query.md +130 -0
- package/agent/rules/basalt-router.md +173 -0
- package/agent/rules/basalt-state.md +99 -0
- package/agent/rules/basalt-tokens.md +148 -0
- package/agent/skills/basalt-app/SKILL.md +137 -0
- package/agent/skills/basalt-charts/SKILL.md +179 -0
- package/agent/skills/basalt-design/SKILL.md +249 -0
- package/agent/templates/CLAUDE-block.md.tpl +38 -0
- package/agent/templates/DESIGN.md.tpl +71 -0
- package/agent/templates/__root.tpl +31 -0
- package/agent/templates/query-client.ts.tpl +12 -0
- package/bin/basalt-ui.mjs +14 -0
- package/configs/check.yml +29 -0
- package/configs/lefthook.yml +25 -0
- package/configs/oxfmt.json +8 -0
- package/configs/oxlint-plugin.js +269 -0
- package/configs/oxlint-plugin.test.ts +107 -0
- package/configs/oxlint.json +116 -0
- package/configs/tsconfig.base.json +20 -0
- package/configs/tsconfig.node.json +8 -0
- package/configs/tsconfig.react-app.json +8 -0
- package/dist/agent/ai-sdk-transport.d.ts +85 -0
- package/dist/agent/ai-sdk-transport.d.ts.map +1 -0
- package/dist/agent/ai-sdk-transport.js +109 -0
- package/dist/agent/history.d.ts +55 -0
- package/dist/agent/history.d.ts.map +1 -0
- package/dist/agent/history.js +32 -0
- package/dist/agent/index.d.ts +53 -0
- package/dist/agent/index.d.ts.map +1 -0
- package/dist/agent/index.js +23 -0
- package/dist/agent/outcome.d.ts +71 -0
- package/dist/agent/outcome.d.ts.map +1 -0
- package/dist/agent/outcome.js +30 -0
- package/dist/agent/part-list.d.ts +75 -0
- package/dist/agent/part-list.d.ts.map +1 -0
- package/dist/agent/part-list.js +127 -0
- package/dist/agent/parts.d.ts +91 -0
- package/dist/agent/parts.d.ts.map +1 -0
- package/dist/agent/parts.js +49 -0
- package/dist/agent/stick-to-bottom.d.ts +23 -0
- package/dist/agent/stick-to-bottom.d.ts.map +1 -0
- package/dist/agent/stick-to-bottom.js +73 -0
- package/dist/agent/thread.d.ts +124 -0
- package/dist/agent/thread.d.ts.map +1 -0
- package/dist/agent/thread.js +131 -0
- package/dist/agent/transport.d.ts +87 -0
- package/dist/agent/transport.d.ts.map +1 -0
- package/dist/agent/transport.js +21 -0
- package/dist/agent/use-agent-stream.d.ts +34 -0
- package/dist/agent/use-agent-stream.d.ts.map +1 -0
- package/dist/agent/use-agent-stream.js +56 -0
- package/dist/agent/use-agent-thread-runs.d.ts +72 -0
- package/dist/agent/use-agent-thread-runs.d.ts.map +1 -0
- package/dist/agent/use-agent-thread-runs.js +217 -0
- package/dist/agent-chat/composer.d.ts +18 -0
- package/dist/agent-chat/composer.d.ts.map +1 -0
- package/dist/agent-chat/composer.js +86 -0
- package/dist/agent-chat/index.d.ts +24 -0
- package/dist/agent-chat/index.d.ts.map +1 -0
- package/dist/agent-chat/index.js +15 -0
- package/dist/agent-chat/thread-detail-panel.d.ts +27 -0
- package/dist/agent-chat/thread-detail-panel.d.ts.map +1 -0
- package/dist/agent-chat/thread-detail-panel.js +108 -0
- package/dist/agent-chat/thread-feed.d.ts +18 -0
- package/dist/agent-chat/thread-feed.d.ts.map +1 -0
- package/dist/agent-chat/thread-feed.js +42 -0
- package/dist/agent-chat/thread-message.d.ts +31 -0
- package/dist/agent-chat/thread-message.d.ts.map +1 -0
- package/dist/agent-chat/thread-message.js +128 -0
- package/dist/agent-chat/thread-outcome-card.d.ts +19 -0
- package/dist/agent-chat/thread-outcome-card.d.ts.map +1 -0
- package/dist/agent-chat/thread-outcome-card.js +120 -0
- package/dist/agent-chat/thread-workspace.d.ts +27 -0
- package/dist/agent-chat/thread-workspace.d.ts.map +1 -0
- package/dist/agent-chat/thread-workspace.js +95 -0
- package/dist/charts/hooks/useChartSize.d.ts +25 -0
- package/dist/charts/hooks/useChartSize.d.ts.map +1 -0
- package/dist/charts/hooks/useChartSize.js +8 -0
- package/dist/charts/hooks/useChartTooltip.d.ts +13 -0
- package/dist/charts/hooks/useChartTooltip.d.ts.map +1 -0
- package/dist/charts/hooks/useChartTooltip.js +26 -0
- package/dist/charts/hooks/useHoverSync.d.ts +30 -0
- package/dist/charts/hooks/useHoverSync.d.ts.map +1 -0
- package/dist/charts/hooks/useHoverSync.js +70 -0
- package/dist/charts/hover-context.d.ts +21 -0
- package/dist/charts/hover-context.d.ts.map +1 -0
- package/dist/charts/hover-context.js +12 -0
- package/dist/charts/hover-sync.d.ts +14 -0
- package/dist/charts/hover-sync.d.ts.map +1 -0
- package/dist/charts/hover-sync.js +17 -0
- package/dist/charts/index.d.ts +47 -0
- package/dist/charts/index.d.ts.map +1 -0
- package/dist/charts/index.js +129 -0
- package/dist/charts/kinds/Bars.d.ts +129 -0
- package/dist/charts/kinds/Bars.d.ts.map +1 -0
- package/dist/charts/kinds/Bars.js +467 -0
- package/dist/charts/kinds/Donut.d.ts +65 -0
- package/dist/charts/kinds/Donut.d.ts.map +1 -0
- package/dist/charts/kinds/Donut.js +158 -0
- package/dist/charts/kinds/DualPanel.d.ts +67 -0
- package/dist/charts/kinds/DualPanel.d.ts.map +1 -0
- package/dist/charts/kinds/DualPanel.js +326 -0
- package/dist/charts/kinds/Heatmap.d.ts +59 -0
- package/dist/charts/kinds/Heatmap.d.ts.map +1 -0
- package/dist/charts/kinds/Heatmap.js +175 -0
- package/dist/charts/kinds/MultiLine.d.ts +73 -0
- package/dist/charts/kinds/MultiLine.d.ts.map +1 -0
- package/dist/charts/kinds/MultiLine.js +275 -0
- package/dist/charts/kinds/StackedArea.d.ts +35 -0
- package/dist/charts/kinds/StackedArea.d.ts.map +1 -0
- package/dist/charts/kinds/StackedArea.js +151 -0
- package/dist/charts/kinds/ZonedLine.d.ts +94 -0
- package/dist/charts/kinds/ZonedLine.d.ts.map +1 -0
- package/dist/charts/kinds/ZonedLine.js +218 -0
- package/dist/charts/primitives/AreaGradient.d.ts +18 -0
- package/dist/charts/primitives/AreaGradient.d.ts.map +1 -0
- package/dist/charts/primitives/AreaGradient.js +13 -0
- package/dist/charts/primitives/Axes.d.ts +22 -0
- package/dist/charts/primitives/Axes.d.ts.map +1 -0
- package/dist/charts/primitives/Axes.js +79 -0
- package/dist/charts/primitives/ChartCard.d.ts +14 -0
- package/dist/charts/primitives/ChartCard.d.ts.map +1 -0
- package/dist/charts/primitives/ChartCard.js +144 -0
- package/dist/charts/primitives/ChartFrame.d.ts +70 -0
- package/dist/charts/primitives/ChartFrame.d.ts.map +1 -0
- package/dist/charts/primitives/ChartFrame.js +77 -0
- package/dist/charts/primitives/ChartLegend.d.ts +36 -0
- package/dist/charts/primitives/ChartLegend.d.ts.map +1 -0
- package/dist/charts/primitives/ChartLegend.js +234 -0
- package/dist/charts/primitives/ChartTooltip.d.ts +34 -0
- package/dist/charts/primitives/ChartTooltip.d.ts.map +1 -0
- package/dist/charts/primitives/ChartTooltip.js +134 -0
- package/dist/charts/primitives/Crosshair.d.ts +23 -0
- package/dist/charts/primitives/Crosshair.d.ts.map +1 -0
- package/dist/charts/primitives/Crosshair.js +21 -0
- package/dist/charts/primitives/HoverOverlay.d.ts +9 -0
- package/dist/charts/primitives/HoverOverlay.d.ts.map +1 -0
- package/dist/charts/primitives/HoverOverlay.js +21 -0
- package/dist/charts/primitives/ResponsiveChart.d.ts +45 -0
- package/dist/charts/primitives/ResponsiveChart.d.ts.map +1 -0
- package/dist/charts/primitives/ResponsiveChart.js +24 -0
- package/dist/charts/primitives/ZoneRects.d.ts +38 -0
- package/dist/charts/primitives/ZoneRects.d.ts.map +1 -0
- package/dist/charts/primitives/ZoneRects.js +30 -0
- package/dist/charts/series.d.ts +99 -0
- package/dist/charts/series.d.ts.map +1 -0
- package/dist/charts/series.js +55 -0
- package/dist/charts/sparklines/BarSparkline.d.ts +13 -0
- package/dist/charts/sparklines/BarSparkline.d.ts.map +1 -0
- package/dist/charts/sparklines/BarSparkline.js +33 -0
- package/dist/charts/sparklines/LineSparkline.d.ts +15 -0
- package/dist/charts/sparklines/LineSparkline.d.ts.map +1 -0
- package/dist/charts/sparklines/LineSparkline.js +39 -0
- package/dist/charts/sparklines/index.d.ts +3 -0
- package/dist/charts/sparklines/index.d.ts.map +1 -0
- package/dist/charts/sparklines/index.js +6 -0
- package/dist/charts/theme.d.ts +21 -0
- package/dist/charts/theme.d.ts.map +1 -0
- package/dist/charts/theme.js +30 -0
- package/dist/charts/utils/domain.d.ts +20 -0
- package/dist/charts/utils/domain.d.ts.map +1 -0
- package/dist/charts/utils/domain.js +7 -0
- package/dist/charts/utils/format.d.ts +5 -0
- package/dist/charts/utils/format.d.ts.map +1 -0
- package/dist/charts/utils/format.js +27 -0
- package/dist/charts/utils/ticks.d.ts +5 -0
- package/dist/charts/utils/ticks.d.ts.map +1 -0
- package/dist/charts/utils/ticks.js +18 -0
- package/dist/cli/index.d.ts +292 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +889 -0
- package/dist/commands/ShortcutsHelp.d.ts +17 -0
- package/dist/commands/ShortcutsHelp.d.ts.map +1 -0
- package/dist/commands/ShortcutsHelp.js +64 -0
- package/dist/commands/define-commands.d.ts +140 -0
- package/dist/commands/define-commands.d.ts.map +1 -0
- package/dist/commands/define-commands.js +26 -0
- package/dist/commands/define-overlays.d.ts +134 -0
- package/dist/commands/define-overlays.d.ts.map +1 -0
- package/dist/commands/define-overlays.js +53 -0
- package/dist/commands/index.d.ts +42 -0
- package/dist/commands/index.d.ts.map +1 -0
- package/dist/commands/index.js +46 -0
- package/dist/commands/overlays-mount.d.ts +117 -0
- package/dist/commands/overlays-mount.d.ts.map +1 -0
- package/dist/commands/overlays-mount.js +116 -0
- package/dist/commands/projectors.d.ts +152 -0
- package/dist/commands/projectors.d.ts.map +1 -0
- package/dist/commands/projectors.js +87 -0
- package/dist/commands/shortcut-format.d.ts +48 -0
- package/dist/commands/shortcut-format.d.ts.map +1 -0
- package/dist/commands/shortcut-format.js +33 -0
- package/dist/commands/useCommandHotkeys.d.ts +14 -0
- package/dist/commands/useCommandHotkeys.d.ts.map +1 -0
- package/dist/commands/useCommandHotkeys.js +45 -0
- package/dist/connectivity/connectivity-indicator.d.ts +8 -0
- package/dist/connectivity/connectivity-indicator.d.ts.map +1 -0
- package/dist/connectivity/connectivity-indicator.js +203 -0
- package/dist/connectivity/connectivity-provider.d.ts +7 -0
- package/dist/connectivity/connectivity-provider.d.ts.map +1 -0
- package/dist/connectivity/connectivity-provider.js +125 -0
- package/dist/connectivity/index.d.ts +13 -0
- package/dist/connectivity/index.d.ts.map +1 -0
- package/dist/connectivity/index.js +8 -0
- package/dist/connectivity/types.d.ts +36 -0
- package/dist/connectivity/types.d.ts.map +1 -0
- package/dist/connectivity/types.js +0 -0
- package/dist/connectivity/use-connectivity.d.ts +3 -0
- package/dist/connectivity/use-connectivity.d.ts.map +1 -0
- package/dist/connectivity/use-connectivity.js +14 -0
- package/dist/content/article-actions.d.ts +39 -0
- package/dist/content/article-actions.d.ts.map +1 -0
- package/dist/content/article-actions.js +28 -0
- package/dist/content/article-card.d.ts +58 -0
- package/dist/content/article-card.d.ts.map +1 -0
- package/dist/content/article-card.js +76 -0
- package/dist/content/article-card.module.css +109 -0
- package/dist/content/article-card.module.css.d.ts +16 -0
- package/dist/content/article-filter-bar.d.ts +40 -0
- package/dist/content/article-filter-bar.d.ts.map +1 -0
- package/dist/content/article-filter-bar.js +56 -0
- package/dist/content/article-layout.d.ts +61 -0
- package/dist/content/article-layout.d.ts.map +1 -0
- package/dist/content/article-layout.js +71 -0
- package/dist/content/article-layout.module.css +131 -0
- package/dist/content/article-layout.module.css.d.ts +20 -0
- package/dist/content/article-model.d.ts +62 -0
- package/dist/content/article-model.d.ts.map +1 -0
- package/dist/content/article-model.js +41 -0
- package/dist/content/block-split.d.ts +24 -0
- package/dist/content/block-split.d.ts.map +1 -0
- package/dist/content/block-split.js +63 -0
- package/dist/content/callout-alert.d.ts +27 -0
- package/dist/content/callout-alert.d.ts.map +1 -0
- package/dist/content/callout-alert.js +59 -0
- package/dist/content/callout.d.ts +24 -0
- package/dist/content/callout.d.ts.map +1 -0
- package/dist/content/callout.js +59 -0
- package/dist/content/callout.module.css +77 -0
- package/dist/content/callout.module.css.d.ts +16 -0
- package/dist/content/code-block.d.ts +26 -0
- package/dist/content/code-block.d.ts.map +1 -0
- package/dist/content/code-block.js +41 -0
- package/dist/content/code-block.module.css +86 -0
- package/dist/content/code-block.module.css.d.ts +14 -0
- package/dist/content/copy-action.d.ts +29 -0
- package/dist/content/copy-action.d.ts.map +1 -0
- package/dist/content/copy-action.js +46 -0
- package/dist/content/fence-block.d.ts +19 -0
- package/dist/content/fence-block.d.ts.map +1 -0
- package/dist/content/fence-block.js +23 -0
- package/dist/content/glyphs.d.ts +18 -0
- package/dist/content/glyphs.d.ts.map +1 -0
- package/dist/content/glyphs.js +43 -0
- package/dist/content/guide.d.ts +47 -0
- package/dist/content/guide.d.ts.map +1 -0
- package/dist/content/guide.js +110 -0
- package/dist/content/guide.module.css +62 -0
- package/dist/content/guide.module.css.d.ts +13 -0
- package/dist/content/heading-anchor.d.ts +8 -0
- package/dist/content/heading-anchor.d.ts.map +1 -0
- package/dist/content/heading-anchor.js +23 -0
- package/dist/content/heading-components.d.ts +5 -0
- package/dist/content/heading-components.d.ts.map +1 -0
- package/dist/content/heading-components.js +41 -0
- package/dist/content/highlighter.d.ts +8 -0
- package/dist/content/highlighter.d.ts.map +1 -0
- package/dist/content/highlighter.js +85 -0
- package/dist/content/index.d.ts +45 -0
- package/dist/content/index.d.ts.map +1 -0
- package/dist/content/index.js +43 -0
- package/dist/content/markdown-hast.d.ts +23 -0
- package/dist/content/markdown-hast.d.ts.map +1 -0
- package/dist/content/markdown-hast.js +48 -0
- package/dist/content/markdown.d.ts +68 -0
- package/dist/content/markdown.d.ts.map +1 -0
- package/dist/content/markdown.js +180 -0
- package/dist/content/mdx.d.ts +20 -0
- package/dist/content/mdx.d.ts.map +1 -0
- package/dist/content/mdx.js +64 -0
- package/dist/content/mermaid.d.ts +32 -0
- package/dist/content/mermaid.d.ts.map +1 -0
- package/dist/content/mermaid.js +70 -0
- package/dist/content/mermaid.module.css +20 -0
- package/dist/content/mermaid.module.css.d.ts +8 -0
- package/dist/content/prose.d.ts +29 -0
- package/dist/content/prose.d.ts.map +1 -0
- package/dist/content/prose.js +24 -0
- package/dist/content/prose.module.css +330 -0
- package/dist/content/prose.module.css.d.ts +12 -0
- package/dist/content/reading-progress.d.ts +20 -0
- package/dist/content/reading-progress.d.ts.map +1 -0
- package/dist/content/reading-progress.js +38 -0
- package/dist/content/reading-progress.module.css +22 -0
- package/dist/content/reading-progress.module.css.d.ts +9 -0
- package/dist/content/slug.d.ts +28 -0
- package/dist/content/slug.d.ts.map +1 -0
- package/dist/content/slug.js +28 -0
- package/dist/content/toc.d.ts +37 -0
- package/dist/content/toc.d.ts.map +1 -0
- package/dist/content/toc.js +134 -0
- package/dist/content/toc.module.css +51 -0
- package/dist/content/toc.module.css.d.ts +13 -0
- package/dist/content/url-hardening.d.ts +23 -0
- package/dist/content/url-hardening.d.ts.map +1 -0
- package/dist/content/url-hardening.js +23 -0
- package/dist/dashboard/delta-badge.d.ts +13 -0
- package/dist/dashboard/delta-badge.d.ts.map +1 -0
- package/dist/dashboard/delta-badge.js +45 -0
- package/dist/dashboard/empty-state.d.ts +15 -0
- package/dist/dashboard/empty-state.d.ts.map +1 -0
- package/dist/dashboard/empty-state.js +56 -0
- package/dist/dashboard/index.d.ts +5 -0
- package/dist/dashboard/index.d.ts.map +1 -0
- package/dist/dashboard/index.js +16 -0
- package/dist/dashboard/settings-section.d.ts +24 -0
- package/dist/dashboard/settings-section.d.ts.map +1 -0
- package/dist/dashboard/settings-section.js +61 -0
- package/dist/dashboard/settings-section.module.css +23 -0
- package/dist/dashboard/settings-section.module.css.d.ts +10 -0
- package/dist/dashboard/stat-card.d.ts +18 -0
- package/dist/dashboard/stat-card.d.ts.map +1 -0
- package/dist/dashboard/stat-card.js +74 -0
- package/dist/data/data-table.d.ts +198 -0
- package/dist/data/data-table.d.ts.map +1 -0
- package/dist/data/data-table.js +342 -0
- package/dist/data/index.d.ts +34 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +2 -0
- package/dist/data/table.d.ts +24 -0
- package/dist/data/table.d.ts.map +1 -0
- package/dist/data/table.js +20 -0
- package/dist/data/virtual-list.d.ts +74 -0
- package/dist/data/virtual-list.d.ts.map +1 -0
- package/dist/data/virtual-list.js +86 -0
- package/dist/data/virtual.d.ts +20 -0
- package/dist/data/virtual.d.ts.map +1 -0
- package/dist/data/virtual.js +4 -0
- package/dist/forms/FormErrorSummary.d.ts +29 -0
- package/dist/forms/FormErrorSummary.d.ts.map +1 -0
- package/dist/forms/FormErrorSummary.js +28 -0
- package/dist/forms/create-form.d.ts +31 -0
- package/dist/forms/create-form.d.ts.map +1 -0
- package/dist/forms/create-form.js +18 -0
- package/dist/forms/field.d.ts +22 -0
- package/dist/forms/field.d.ts.map +1 -0
- package/dist/forms/field.js +9 -0
- package/dist/forms/index.d.ts +17 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +13 -0
- package/dist/forms/use-form-draft.d.ts +61 -0
- package/dist/forms/use-form-draft.d.ts.map +1 -0
- package/dist/forms/use-form-draft.js +55 -0
- package/dist/guard/guard-hook.d.ts +40 -0
- package/dist/guard/guard-hook.d.ts.map +1 -0
- package/dist/guard/guard-hook.js +55 -0
- package/dist/guard/index.d.ts +144 -0
- package/dist/guard/index.d.ts.map +1 -0
- package/dist/guard/index.js +315 -0
- package/dist/guard/types.d.ts +97 -0
- package/dist/guard/types.d.ts.map +1 -0
- package/dist/guard/types.js +0 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +90 -0
- package/dist/motion/index.d.ts +29 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +12 -0
- package/dist/notifications/bell.d.ts +12 -0
- package/dist/notifications/bell.d.ts.map +1 -0
- package/dist/notifications/bell.js +84 -0
- package/dist/notifications/center.d.ts +20 -0
- package/dist/notifications/center.d.ts.map +1 -0
- package/dist/notifications/center.js +144 -0
- package/dist/notifications/define-notifications.d.ts +97 -0
- package/dist/notifications/define-notifications.d.ts.map +1 -0
- package/dist/notifications/define-notifications.js +27 -0
- package/dist/notifications/index.d.ts +36 -0
- package/dist/notifications/index.d.ts.map +1 -0
- package/dist/notifications/index.js +52 -0
- package/dist/notifications/notify.d.ts +92 -0
- package/dist/notifications/notify.d.ts.map +1 -0
- package/dist/notifications/notify.js +127 -0
- package/dist/notifications/overlay.d.ts +20 -0
- package/dist/notifications/overlay.d.ts.map +1 -0
- package/dist/notifications/overlay.js +12 -0
- package/dist/notifications/store.d.ts +120 -0
- package/dist/notifications/store.d.ts.map +1 -0
- package/dist/notifications/store.js +113 -0
- package/dist/provider/index.d.ts +93 -0
- package/dist/provider/index.d.ts.map +1 -0
- package/dist/provider/index.js +106 -0
- package/dist/query/devtools.d.ts +21 -0
- package/dist/query/devtools.d.ts.map +1 -0
- package/dist/query/devtools.js +12 -0
- package/dist/query/index.d.ts +65 -0
- package/dist/query/index.d.ts.map +1 -0
- package/dist/query/index.js +68 -0
- package/dist/register.d.ts +139 -0
- package/dist/register.d.ts.map +1 -0
- package/dist/register.js +6 -0
- package/dist/router-tanstack/index.d.ts +74 -0
- package/dist/router-tanstack/index.d.ts.map +1 -0
- package/dist/router-tanstack/index.js +29 -0
- package/dist/router-tanstack/multi-search-param-store.d.ts +78 -0
- package/dist/router-tanstack/multi-search-param-store.d.ts.map +1 -0
- package/dist/router-tanstack/multi-search-param-store.js +35 -0
- package/dist/router-tanstack/search-param-store.d.ts +92 -0
- package/dist/router-tanstack/search-param-store.d.ts.map +1 -0
- package/dist/router-tanstack/search-param-store.js +26 -0
- package/dist/shell/account-types.d.ts +118 -0
- package/dist/shell/account-types.d.ts.map +1 -0
- package/dist/shell/account-types.js +0 -0
- package/dist/shell/app-breadcrumbs.d.ts +17 -0
- package/dist/shell/app-breadcrumbs.d.ts.map +1 -0
- package/dist/shell/app-breadcrumbs.js +39 -0
- package/dist/shell/app-header.module.css +73 -0
- package/dist/shell/app-header.module.css.d.ts +11 -0
- package/dist/shell/app-mobile-nav.d.ts +26 -0
- package/dist/shell/app-mobile-nav.d.ts.map +1 -0
- package/dist/shell/app-mobile-nav.js +106 -0
- package/dist/shell/app-mobile-nav.module.css +100 -0
- package/dist/shell/app-mobile-nav.module.css.d.ts +14 -0
- package/dist/shell/app-sidebar-account.d.ts +3 -0
- package/dist/shell/app-sidebar-account.d.ts.map +1 -0
- package/dist/shell/app-sidebar-account.js +84 -0
- package/dist/shell/app-sidebar.d.ts +56 -0
- package/dist/shell/app-sidebar.d.ts.map +1 -0
- package/dist/shell/app-sidebar.js +455 -0
- package/dist/shell/app-sidebar.module.css +414 -0
- package/dist/shell/app-sidebar.module.css.d.ts +34 -0
- package/dist/shell/index.d.ts +123 -0
- package/dist/shell/index.d.ts.map +1 -0
- package/dist/shell/index.js +179 -0
- package/dist/shell/page-header.d.ts +13 -0
- package/dist/shell/page-header.d.ts.map +1 -0
- package/dist/shell/page-header.js +23 -0
- package/dist/shell/sidebar-search.d.ts +12 -0
- package/dist/shell/sidebar-search.d.ts.map +1 -0
- package/dist/shell/sidebar-search.js +62 -0
- package/dist/shell/sidebar-search.module.css +62 -0
- package/dist/shell/sidebar-search.module.css.d.ts +11 -0
- package/dist/state.d.ts +62 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +124 -0
- package/dist/styles.css +166 -0
- package/dist/surfaces.d.ts +386 -0
- package/dist/surfaces.d.ts.map +1 -0
- package/dist/surfaces.js +312 -0
- package/dist/theme/controls.module.css +143 -0
- package/dist/theme/controls.module.css.d.ts +17 -0
- package/dist/theme/floating.module.css +35 -0
- package/dist/theme/floating.module.css.d.ts +9 -0
- package/dist/theme/index.d.ts +22 -0
- package/dist/theme/index.d.ts.map +1 -0
- package/dist/theme/index.js +733 -0
- package/dist/theme/nav-link.module.css +67 -0
- package/dist/theme/nav-link.module.css.d.ts +8 -0
- package/dist/theme/segmented-control.module.css +14 -0
- package/dist/theme/segmented-control.module.css.d.ts +8 -0
- package/dist/theme/timeline.module.css +29 -0
- package/dist/theme/timeline.module.css.d.ts +9 -0
- package/dist/theme-lab/index.d.ts +59 -0
- package/dist/theme-lab/index.d.ts.map +1 -0
- package/dist/theme-lab/index.js +263 -0
- package/dist/theme-toggle/index.d.ts +8 -0
- package/dist/theme-toggle/index.d.ts.map +1 -0
- package/dist/theme-toggle/index.js +155 -0
- package/dist/tokens/index.d.ts +152 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/index.js +249 -0
- package/dist/tokens/palette.d.ts +304 -0
- package/dist/tokens/palette.d.ts.map +1 -0
- package/dist/tokens/palette.js +186 -0
- package/dist/vite.d.ts +30 -0
- package/dist/vite.d.ts.map +1 -0
- package/dist/vite.js +68 -0
- package/llms.txt +149 -0
- package/package.json +243 -46
- package/src/agent/ai-sdk-transport.ts +280 -0
- package/src/agent/history.ts +128 -0
- package/src/agent/index.ts +92 -0
- package/src/agent/outcome.ts +120 -0
- package/src/agent/part-list.tsx +292 -0
- package/src/agent/parts.ts +136 -0
- package/src/agent/stick-to-bottom.tsx +154 -0
- package/src/agent/thread.ts +312 -0
- package/src/agent/transport.ts +114 -0
- package/src/agent/use-agent-stream.ts +141 -0
- package/src/agent/use-agent-thread-runs.ts +440 -0
- package/src/agent-chat/composer.tsx +131 -0
- package/src/agent-chat/index.ts +35 -0
- package/src/agent-chat/thread-detail-panel.tsx +192 -0
- package/src/agent-chat/thread-feed.tsx +81 -0
- package/src/agent-chat/thread-message.tsx +251 -0
- package/src/agent-chat/thread-outcome-card.tsx +196 -0
- package/src/agent-chat/thread-workspace.tsx +179 -0
- package/src/charts/hooks/useChartSize.ts +31 -0
- package/src/charts/hooks/useChartTooltip.ts +31 -0
- package/src/charts/hooks/useHoverSync.ts +116 -0
- package/src/charts/hover-context.ts +28 -0
- package/src/charts/hover-sync.tsx +37 -0
- package/src/charts/index.ts +118 -0
- package/src/charts/kinds/Bars.tsx +634 -0
- package/src/charts/kinds/Donut.tsx +233 -0
- package/src/charts/kinds/DualPanel.tsx +432 -0
- package/src/charts/kinds/Heatmap.tsx +255 -0
- package/src/charts/kinds/MultiLine.tsx +376 -0
- package/src/charts/kinds/StackedArea.tsx +218 -0
- package/src/charts/kinds/ZonedLine.tsx +346 -0
- package/src/charts/primitives/AreaGradient.tsx +26 -0
- package/src/charts/primitives/Axes.tsx +97 -0
- package/src/charts/primitives/ChartCard.tsx +180 -0
- package/src/charts/primitives/ChartFrame.tsx +157 -0
- package/src/charts/primitives/ChartLegend.tsx +302 -0
- package/src/charts/primitives/ChartTooltip.tsx +158 -0
- package/src/charts/primitives/Crosshair.tsx +40 -0
- package/src/charts/primitives/HoverOverlay.tsx +24 -0
- package/src/charts/primitives/ResponsiveChart.tsx +64 -0
- package/src/charts/primitives/ZoneRects.tsx +67 -0
- package/src/charts/series.ts +163 -0
- package/src/charts/sparklines/BarSparkline.tsx +48 -0
- package/src/charts/sparklines/LineSparkline.tsx +57 -0
- package/src/charts/sparklines/index.ts +2 -0
- package/src/charts/theme.tsx +53 -0
- package/src/charts/utils/domain.test.ts +24 -0
- package/src/charts/utils/domain.ts +22 -0
- package/src/charts/utils/format.ts +27 -0
- package/src/charts/utils/ticks.ts +18 -0
- package/src/cli/check-theme.test.ts +668 -0
- package/src/cli/help.test.ts +93 -0
- package/src/cli/index.ts +1535 -0
- package/src/cli/init-sync.test.ts +160 -0
- package/src/cli/placement-engine.test.ts +194 -0
- package/src/cli/tarball-parity.test.ts +44 -0
- package/src/cli/template-format.test.ts +64 -0
- package/src/commands/ShortcutsHelp.tsx +129 -0
- package/src/commands/define-commands.ts +184 -0
- package/src/commands/define-overlays.ts +197 -0
- package/src/commands/index.ts +86 -0
- package/src/commands/overlays-mount.tsx +301 -0
- package/src/commands/projectors.ts +267 -0
- package/src/commands/shortcut-format.ts +83 -0
- package/src/commands/useCommandHotkeys.ts +114 -0
- package/src/connectivity/connectivity-indicator.tsx +249 -0
- package/src/connectivity/connectivity-provider.tsx +186 -0
- package/src/connectivity/index.ts +18 -0
- package/src/connectivity/types.ts +39 -0
- package/src/connectivity/use-connectivity.ts +25 -0
- package/src/content/article-actions.test.ts +78 -0
- package/src/content/article-actions.ts +72 -0
- package/src/content/article-card.module.css +109 -0
- package/src/content/article-card.module.css.d.ts +16 -0
- package/src/content/article-card.tsx +173 -0
- package/src/content/article-filter-bar.tsx +88 -0
- package/src/content/article-layout.module.css +131 -0
- package/src/content/article-layout.module.css.d.ts +20 -0
- package/src/content/article-layout.tsx +167 -0
- package/src/content/article-model.test.ts +119 -0
- package/src/content/article-model.ts +110 -0
- package/src/content/block-split.test.ts +75 -0
- package/src/content/block-split.ts +102 -0
- package/src/content/callout-alert.ts +88 -0
- package/src/content/callout.module.css +77 -0
- package/src/content/callout.module.css.d.ts +16 -0
- package/src/content/callout.tsx +96 -0
- package/src/content/code-block.module.css +86 -0
- package/src/content/code-block.module.css.d.ts +14 -0
- package/src/content/code-block.tsx +82 -0
- package/src/content/copy-action.tsx +79 -0
- package/src/content/fence-block.tsx +39 -0
- package/src/content/glyphs.tsx +53 -0
- package/src/content/guide.module.css +62 -0
- package/src/content/guide.module.css.d.ts +13 -0
- package/src/content/guide.tsx +174 -0
- package/src/content/heading-anchor.tsx +54 -0
- package/src/content/heading-components.tsx +62 -0
- package/src/content/highlighter.ts +123 -0
- package/src/content/index.ts +60 -0
- package/src/content/markdown-hast.ts +80 -0
- package/src/content/markdown.tsx +346 -0
- package/src/content/mdx.tsx +127 -0
- package/src/content/mermaid.module.css +20 -0
- package/src/content/mermaid.module.css.d.ts +8 -0
- package/src/content/mermaid.tsx +124 -0
- package/src/content/prose.module.css +330 -0
- package/src/content/prose.module.css.d.ts +12 -0
- package/src/content/prose.tsx +53 -0
- package/src/content/reading-progress.module.css +22 -0
- package/src/content/reading-progress.module.css.d.ts +9 -0
- package/src/content/reading-progress.tsx +67 -0
- package/src/content/slug.test.ts +62 -0
- package/src/content/slug.ts +57 -0
- package/src/content/toc.module.css +51 -0
- package/src/content/toc.module.css.d.ts +13 -0
- package/src/content/toc.tsx +226 -0
- package/src/content/url-hardening.ts +46 -0
- package/src/dashboard/delta-badge.tsx +70 -0
- package/src/dashboard/empty-state.tsx +80 -0
- package/src/dashboard/index.ts +11 -0
- package/src/dashboard/settings-section.module.css +23 -0
- package/src/dashboard/settings-section.module.css.d.ts +10 -0
- package/src/dashboard/settings-section.tsx +118 -0
- package/src/dashboard/stat-card.tsx +105 -0
- package/src/data/data-table.tsx +695 -0
- package/src/data/index.ts +37 -0
- package/src/data/table.ts +46 -0
- package/src/data/virtual-list.tsx +180 -0
- package/src/data/virtual.ts +21 -0
- package/src/forms/FormErrorSummary.tsx +64 -0
- package/src/forms/create-form.ts +57 -0
- package/src/forms/field.ts +30 -0
- package/src/forms/index.ts +26 -0
- package/src/forms/use-form-draft.ts +170 -0
- package/src/guard/check-source.test.ts +834 -0
- package/src/guard/guard-hook.test.ts +173 -0
- package/src/guard/guard-hook.ts +122 -0
- package/src/guard/index.ts +510 -0
- package/src/guard/types.ts +117 -0
- package/src/index.ts +139 -0
- package/src/motion/index.ts +26 -0
- package/src/notifications/bell.tsx +108 -0
- package/src/notifications/center.tsx +245 -0
- package/src/notifications/define-notifications.ts +162 -0
- package/src/notifications/index.ts +79 -0
- package/src/notifications/notify.tsx +260 -0
- package/src/notifications/overlay.tsx +64 -0
- package/src/notifications/store.ts +287 -0
- package/src/provider/index.tsx +234 -0
- package/src/query/devtools.tsx +38 -0
- package/src/query/index.ts +129 -0
- package/src/register.ts +158 -0
- package/src/router-tanstack/index.ts +111 -0
- package/src/router-tanstack/multi-search-param-store.test.ts +56 -0
- package/src/router-tanstack/multi-search-param-store.ts +122 -0
- package/src/router-tanstack/search-param-store.ts +125 -0
- package/src/shell/account-types.ts +119 -0
- package/src/shell/app-breadcrumbs.tsx +90 -0
- package/src/shell/app-header.module.css +73 -0
- package/src/shell/app-header.module.css.d.ts +11 -0
- package/src/shell/app-mobile-nav.module.css +100 -0
- package/src/shell/app-mobile-nav.module.css.d.ts +14 -0
- package/src/shell/app-mobile-nav.tsx +146 -0
- package/src/shell/app-sidebar-account.tsx +142 -0
- package/src/shell/app-sidebar.module.css +414 -0
- package/src/shell/app-sidebar.module.css.d.ts +34 -0
- package/src/shell/app-sidebar.tsx +632 -0
- package/src/shell/index.tsx +343 -0
- package/src/shell/page-header.tsx +35 -0
- package/src/shell/sidebar-search.module.css +62 -0
- package/src/shell/sidebar-search.module.css.d.ts +11 -0
- package/src/shell/sidebar-search.tsx +80 -0
- package/src/state.ts +246 -0
- package/src/styles.css +166 -0
- package/src/styles.floor.test.ts +36 -0
- package/src/surfaces.ts +508 -0
- package/src/theme/border-coverage.test.ts +272 -0
- package/src/theme/contrast.test.ts +306 -0
- package/src/theme/controls.module.css +143 -0
- package/src/theme/controls.module.css.d.ts +17 -0
- package/src/theme/floating.module.css +35 -0
- package/src/theme/floating.module.css.d.ts +9 -0
- package/src/theme/index.ts +933 -0
- package/src/theme/nav-link.module.css +67 -0
- package/src/theme/nav-link.module.css.d.ts +8 -0
- package/src/theme/segmented-control.module.css +14 -0
- package/src/theme/segmented-control.module.css.d.ts +8 -0
- package/src/theme/shadow-surfaces.test.ts +421 -0
- package/src/theme/timeline.module.css +29 -0
- package/src/theme/timeline.module.css.d.ts +9 -0
- package/src/theme-lab/index.tsx +359 -0
- package/src/theme-lab/theme-lab.test.ts +60 -0
- package/src/theme-toggle/index.tsx +180 -0
- package/src/tokens/index.ts +369 -0
- package/src/tokens/palette.ts +288 -0
- package/src/vite.ts +122 -0
- package/src/index.css +0 -877
- package/src/starlight.css +0 -308
- package/tailwind.config.js +0 -78
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { describe, expect, test } from 'bun:test'
|
|
2
|
+
import { toArticleActions } from './article-actions'
|
|
3
|
+
import type { Article } from './article-model'
|
|
4
|
+
|
|
5
|
+
const ARTICLE: Article = {
|
|
6
|
+
slug: 'reading-dashboards',
|
|
7
|
+
title: 'Reading dashboards',
|
|
8
|
+
description: 'Why most internal dashboards fail the five-second glance test.',
|
|
9
|
+
category: 'guide',
|
|
10
|
+
tags: ['dashboards', 'ux'],
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
describe('toArticleActions', () => {
|
|
14
|
+
test('projects id/label/description/keywords', () => {
|
|
15
|
+
const [action] = toArticleActions([ARTICLE], {
|
|
16
|
+
onNavigate: () => {},
|
|
17
|
+
href: () => '/content',
|
|
18
|
+
})
|
|
19
|
+
|
|
20
|
+
expect(action?.id).toBe('article:/content')
|
|
21
|
+
expect(action?.label).toBe('Reading dashboards')
|
|
22
|
+
expect(action?.description).toBe(ARTICLE.description)
|
|
23
|
+
expect(action?.keywords).toBe(
|
|
24
|
+
'Reading dashboards Why most internal dashboards fail the five-second glance test. guide dashboards ux reading-dashboards',
|
|
25
|
+
)
|
|
26
|
+
})
|
|
27
|
+
|
|
28
|
+
test('lands tags and category in keywords', () => {
|
|
29
|
+
const [action] = toArticleActions([ARTICLE], {
|
|
30
|
+
onNavigate: () => {},
|
|
31
|
+
href: () => '/content',
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
expect(action?.keywords).toContain('guide')
|
|
35
|
+
expect(action?.keywords).toContain('dashboards')
|
|
36
|
+
expect(action?.keywords).toContain('ux')
|
|
37
|
+
})
|
|
38
|
+
|
|
39
|
+
test('onClick calls onNavigate with the href fn output', () => {
|
|
40
|
+
const navigated: string[] = []
|
|
41
|
+
const [action] = toArticleActions([ARTICLE], {
|
|
42
|
+
onNavigate: (href) => navigated.push(href),
|
|
43
|
+
href: (article) => `/articles/${article.slug}`,
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
// onClick's declared type takes a MouseEvent, but the implementation ignores it — call
|
|
47
|
+
// through a zero-arg view rather than fabricating a fake event.
|
|
48
|
+
const onClick = action?.onClick as (() => void) | undefined
|
|
49
|
+
onClick?.()
|
|
50
|
+
expect(navigated).toEqual(['/articles/reading-dashboards'])
|
|
51
|
+
})
|
|
52
|
+
|
|
53
|
+
test('omits group/rightSection when not passed', () => {
|
|
54
|
+
const [action] = toArticleActions([ARTICLE], {
|
|
55
|
+
onNavigate: () => {},
|
|
56
|
+
href: () => '/content',
|
|
57
|
+
})
|
|
58
|
+
|
|
59
|
+
expect(action).not.toHaveProperty('group')
|
|
60
|
+
expect(action).not.toHaveProperty('rightSection')
|
|
61
|
+
})
|
|
62
|
+
|
|
63
|
+
test('sets group/rightSection when passed', () => {
|
|
64
|
+
const [action] = toArticleActions([ARTICLE], {
|
|
65
|
+
onNavigate: () => {},
|
|
66
|
+
href: () => '/content',
|
|
67
|
+
group: 'Guides',
|
|
68
|
+
rightSection: 'badge',
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
expect(action?.group).toBe('Guides')
|
|
72
|
+
expect(action?.rightSection).toBe('badge')
|
|
73
|
+
})
|
|
74
|
+
|
|
75
|
+
test('empty input returns []', () => {
|
|
76
|
+
expect(toArticleActions([], { onNavigate: () => {}, href: () => '#' })).toEqual([])
|
|
77
|
+
})
|
|
78
|
+
})
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* toArticleActions — projects an article list into Mantine Spotlight actions
|
|
3
|
+
* (docs/CONTENT-SPEC.md). A pure in-memory PROJECTOR into the already-shipped Spotlight surface —
|
|
4
|
+
* the same tier as `toRouteActions` (`basalt-ui/commands`). It does not tokenize, rank, index, or
|
|
5
|
+
* persist; an app that outgrows substring matching brings its own index.
|
|
6
|
+
*
|
|
7
|
+
* `SpotlightActionData` is imported TYPE-ONLY — it erases at build, so `./content` stays a types-
|
|
8
|
+
* only optional peer of `@mantine/spotlight` and adds no runtime edge. The consumer merges the
|
|
9
|
+
* result into its own `<Spotlight>`/`toSpotlightActions()` action array.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* const articleActions = toArticleActions(ARTICLES, {
|
|
13
|
+
* onNavigate: (href) => router.navigate({ to: href as never }),
|
|
14
|
+
* href: (article) => (article.slug === 'reading-dashboards' ? '/content' : '#'),
|
|
15
|
+
* group: 'Guides',
|
|
16
|
+
* })
|
|
17
|
+
*/
|
|
18
|
+
import type { SpotlightActionData } from '@mantine/spotlight'
|
|
19
|
+
import type { ReactNode } from 'react'
|
|
20
|
+
import type { Article } from './article-model'
|
|
21
|
+
|
|
22
|
+
export type ToArticleActionsOptions = {
|
|
23
|
+
/** Navigate to an article's href — e.g. `(href) => router.navigate({ to: href })`. */
|
|
24
|
+
onNavigate: (href: string) => void
|
|
25
|
+
/** Consumer owns routing — maps an article to its destination href. */
|
|
26
|
+
href: (article: Article) => string
|
|
27
|
+
/** Prefix for generated action ids so they never collide with route/command ids. Default 'article:'. */
|
|
28
|
+
idPrefix?: string
|
|
29
|
+
/** Spotlight group for every produced action (e.g. 'Guides'). Omit for an ungrouped, flat list. */
|
|
30
|
+
group?: string
|
|
31
|
+
/** Node rendered on the right of every action — e.g. a kind badge (`<Badge>Guide</Badge>`). */
|
|
32
|
+
rightSection?: ReactNode
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Project an article list into Mantine Spotlight actions. `keywords` joins title, description,
|
|
37
|
+
* category, tags, and slug — this is why tags/category live on the model, they make an article
|
|
38
|
+
* findable by topic even when the title itself doesn't mention it.
|
|
39
|
+
*/
|
|
40
|
+
export function toArticleActions(
|
|
41
|
+
articles: readonly Article[],
|
|
42
|
+
options: ToArticleActionsOptions,
|
|
43
|
+
): SpotlightActionData[] {
|
|
44
|
+
const { onNavigate, href, idPrefix = 'article:', group, rightSection } = options
|
|
45
|
+
const actions: SpotlightActionData[] = []
|
|
46
|
+
|
|
47
|
+
for (const article of articles) {
|
|
48
|
+
const target = href(article)
|
|
49
|
+
const keywords = [
|
|
50
|
+
article.title,
|
|
51
|
+
article.description,
|
|
52
|
+
article.category,
|
|
53
|
+
...(article.tags ?? []),
|
|
54
|
+
article.slug,
|
|
55
|
+
]
|
|
56
|
+
.filter((part): part is string => part !== undefined)
|
|
57
|
+
.join(' ')
|
|
58
|
+
|
|
59
|
+
const action: SpotlightActionData = {
|
|
60
|
+
id: `${idPrefix}${target}`,
|
|
61
|
+
label: article.title,
|
|
62
|
+
keywords,
|
|
63
|
+
onClick: () => onNavigate(target),
|
|
64
|
+
}
|
|
65
|
+
if (article.description !== undefined) action.description = article.description
|
|
66
|
+
if (group !== undefined) action.group = group
|
|
67
|
+
if (rightSection !== undefined) action.rightSection = rightSection
|
|
68
|
+
actions.push(action)
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return actions
|
|
72
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ArticleCard — the docs-landing overview building block (docs/CONTENT-SPEC.md §3/§7): panel bg +
|
|
3
|
+
* shadow-card + card-radius (inherited from the shipped `Card` theme, same as StatCard/
|
|
4
|
+
* SettingsSection), a clickable whole-card affordance when `href`/`onClick` is given.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
.card {
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 8px;
|
|
11
|
+
text-decoration: none;
|
|
12
|
+
color: inherit;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* The `renderLink` router bridge renders a consumer anchor around the card — neutralize the
|
|
16
|
+
* browser anchor defaults it brings, and keep the grid cell's full height flowing through. */
|
|
17
|
+
.linkWrap {
|
|
18
|
+
display: block;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.linkWrap a {
|
|
23
|
+
display: block;
|
|
24
|
+
height: 100%;
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
color: inherit;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.clickable {
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
transition: background-color 120ms ease;
|
|
32
|
+
/* Native-`<button>` reset — ArticleCard's `onClick`-only variant renders `Card component="button"`
|
|
33
|
+
* for real keyboard/AT semantics. The browser's UA-origin button chrome (border, font, text-align)
|
|
34
|
+
* always loses to Card's own authored background/shadow/radius, but these three properties are
|
|
35
|
+
* NOT set by Card itself, so the button's UA defaults would otherwise leak through. */
|
|
36
|
+
width: 100%;
|
|
37
|
+
border: none;
|
|
38
|
+
font: inherit;
|
|
39
|
+
text-align: inherit;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.clickable:hover,
|
|
43
|
+
.clickable:focus-visible {
|
|
44
|
+
background-color: var(--vx-surface-panelHover);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.clickable:hover .title,
|
|
48
|
+
.clickable:focus-visible .title {
|
|
49
|
+
color: var(--vx-accent);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.clickable:focus-visible {
|
|
53
|
+
outline: 2px solid var(--vx-accent);
|
|
54
|
+
outline-offset: 2px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.icon {
|
|
58
|
+
display: flex;
|
|
59
|
+
color: var(--vx-muted);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.title {
|
|
63
|
+
font-family: var(--basalt-font-head);
|
|
64
|
+
font-stretch: 88%;
|
|
65
|
+
font-weight: 550;
|
|
66
|
+
font-size: var(--vx-text-md);
|
|
67
|
+
color: var(--vx-ink);
|
|
68
|
+
transition: color 120ms ease;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.description {
|
|
72
|
+
font-size: var(--vx-text-sm);
|
|
73
|
+
color: var(--vx-ink2);
|
|
74
|
+
display: -webkit-box;
|
|
75
|
+
-webkit-line-clamp: 2;
|
|
76
|
+
-webkit-box-orient: vertical;
|
|
77
|
+
overflow: hidden;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/* Quiet — a data label, not a status. Muted text on a faint ink tint, same recipe as the code
|
|
81
|
+
* block/callout/prose surfaces (`color-mix(in srgb, var(--vx-ink) 6%, transparent)`); no accent,
|
|
82
|
+
* no status color. */
|
|
83
|
+
.tags {
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-wrap: wrap;
|
|
86
|
+
gap: 4px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.tag {
|
|
90
|
+
padding: 1px 6px;
|
|
91
|
+
border-radius: 4px;
|
|
92
|
+
background-color: color-mix(in srgb, var(--vx-ink) 6%, transparent);
|
|
93
|
+
color: var(--vx-muted);
|
|
94
|
+
font-size: var(--vx-text-micro);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Pinned to the card's floor, not floated up behind a short description: the grid stretches every
|
|
98
|
+
* card in a row to one height, so a content-following meta line lands at a different y in each
|
|
99
|
+
* card and the row reads ragged. `margin-top: auto` in the card's flex column gives the row one
|
|
100
|
+
* meta baseline regardless of how many lines each description clamps to. */
|
|
101
|
+
.meta {
|
|
102
|
+
margin-top: auto;
|
|
103
|
+
padding-top: 2px;
|
|
104
|
+
font-family: var(--basalt-font-mono);
|
|
105
|
+
font-size: var(--vx-text-micro);
|
|
106
|
+
letter-spacing: 0.06em;
|
|
107
|
+
text-transform: uppercase;
|
|
108
|
+
color: var(--vx-faint);
|
|
109
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed CSS-module declaration (the S4 CSS-modules path). Named string props — not an index
|
|
3
|
+
* signature — so dot access stays verbatim under the package's strict flags.
|
|
4
|
+
*/
|
|
5
|
+
declare const classes: {
|
|
6
|
+
readonly card: string
|
|
7
|
+
readonly clickable: string
|
|
8
|
+
readonly linkWrap: string
|
|
9
|
+
readonly icon: string
|
|
10
|
+
readonly title: string
|
|
11
|
+
readonly description: string
|
|
12
|
+
readonly tags: string
|
|
13
|
+
readonly tag: string
|
|
14
|
+
readonly meta: string
|
|
15
|
+
}
|
|
16
|
+
export default classes
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArticleCard / ArticleGrid — the docs-landing overview building blocks (docs/CONTENT-SPEC.md
|
|
3
|
+
* §3/§7): an icon/title/description/meta card over the shipped `Card` chrome, and the responsive
|
|
4
|
+
* grid that lays a set of them out.
|
|
5
|
+
*
|
|
6
|
+
* `ArticleCard` is clickable three ways — pick whichever fits: `href` alone renders the `Card`
|
|
7
|
+
* itself as an anchor; `href` + `renderLink` hands the card to a router bridge (e.g. TanStack
|
|
8
|
+
* `Link`); `onClick` alone renders a keyboard-operable button-role card. Omit all three for a
|
|
9
|
+
* static, non-interactive card.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* import { ArticleCard, ArticleGrid } from 'basalt-ui/content'
|
|
13
|
+
* import { Link } from '@tanstack/react-router'
|
|
14
|
+
*
|
|
15
|
+
* <ArticleGrid>
|
|
16
|
+
* <ArticleCard
|
|
17
|
+
* title="Reading dashboards"
|
|
18
|
+
* description="Why most internal dashboards fail the five-second glance test."
|
|
19
|
+
* date="2026-07-16"
|
|
20
|
+
* readingTime={6}
|
|
21
|
+
* category="guide"
|
|
22
|
+
* tags={['dashboards', 'ux']}
|
|
23
|
+
* href="/content"
|
|
24
|
+
* renderLink={(target, node) => <Link to={target.href}>{node}</Link>}
|
|
25
|
+
* />
|
|
26
|
+
* </ArticleGrid>
|
|
27
|
+
*/
|
|
28
|
+
import type { CSSProperties, ReactNode } from 'react'
|
|
29
|
+
import { Card, SimpleGrid } from '@mantine/core'
|
|
30
|
+
import classes from './article-card.module.css'
|
|
31
|
+
import { formatArticleDate } from './article-model'
|
|
32
|
+
import type { ArticleNavTarget } from './article-layout'
|
|
33
|
+
|
|
34
|
+
export type ArticleCardProps = {
|
|
35
|
+
readonly title: string
|
|
36
|
+
readonly description?: string
|
|
37
|
+
readonly icon?: ReactNode
|
|
38
|
+
/** ISO 8601 — rendered via `formatArticleDate`. */
|
|
39
|
+
readonly date?: string
|
|
40
|
+
readonly category?: string
|
|
41
|
+
readonly tags?: readonly string[]
|
|
42
|
+
/** Minutes; rendered as `"N min read"`. */
|
|
43
|
+
readonly readingTime?: number
|
|
44
|
+
/** Locale passed to `formatArticleDate`. Default `'en-US'` — see its JSDoc for why this is
|
|
45
|
+
* pinned rather than defaulting to the runtime locale. */
|
|
46
|
+
readonly locale?: string
|
|
47
|
+
readonly href?: string
|
|
48
|
+
/** Router bridge — when given alongside `href`, the card is handed to it instead of rendering a
|
|
49
|
+
* plain anchor itself. */
|
|
50
|
+
readonly renderLink?: (target: ArticleNavTarget, node: ReactNode) => ReactNode
|
|
51
|
+
readonly onClick?: () => void
|
|
52
|
+
readonly className?: string
|
|
53
|
+
readonly style?: CSSProperties
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const CARD_STYLE: CSSProperties = {
|
|
57
|
+
padding: 'var(--mantine-spacing-xs) var(--mantine-spacing-sm)',
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function ArticleCard({
|
|
61
|
+
title,
|
|
62
|
+
description,
|
|
63
|
+
icon,
|
|
64
|
+
date,
|
|
65
|
+
category,
|
|
66
|
+
tags,
|
|
67
|
+
readingTime,
|
|
68
|
+
locale = 'en-US',
|
|
69
|
+
href,
|
|
70
|
+
renderLink,
|
|
71
|
+
onClick,
|
|
72
|
+
className,
|
|
73
|
+
style,
|
|
74
|
+
}: ArticleCardProps) {
|
|
75
|
+
const cardClass = [
|
|
76
|
+
classes.card,
|
|
77
|
+
(href !== undefined || onClick !== undefined) && classes.clickable,
|
|
78
|
+
className,
|
|
79
|
+
]
|
|
80
|
+
.filter(Boolean)
|
|
81
|
+
.join(' ')
|
|
82
|
+
const mergedStyle: CSSProperties = { ...CARD_STYLE, ...style }
|
|
83
|
+
|
|
84
|
+
// Derived, not passed in — the card owns the meta line's shape so callers hand it structured
|
|
85
|
+
// fields instead of a preformatted string.
|
|
86
|
+
const meta = [
|
|
87
|
+
date !== undefined ? formatArticleDate(date, locale) : undefined,
|
|
88
|
+
readingTime !== undefined ? `${readingTime} min read` : undefined,
|
|
89
|
+
category,
|
|
90
|
+
]
|
|
91
|
+
.filter((part) => part !== undefined)
|
|
92
|
+
.join(' · ')
|
|
93
|
+
|
|
94
|
+
const body = (
|
|
95
|
+
<>
|
|
96
|
+
{icon !== undefined && <span className={classes.icon}>{icon}</span>}
|
|
97
|
+
<span className={classes.title}>{title}</span>
|
|
98
|
+
{description !== undefined && <span className={classes.description}>{description}</span>}
|
|
99
|
+
{tags !== undefined && tags.length > 0 && (
|
|
100
|
+
<span className={classes.tags}>
|
|
101
|
+
{tags.map((tag) => (
|
|
102
|
+
<span key={tag} className={classes.tag}>
|
|
103
|
+
{tag}
|
|
104
|
+
</span>
|
|
105
|
+
))}
|
|
106
|
+
</span>
|
|
107
|
+
)}
|
|
108
|
+
{meta !== '' && <span className={classes.meta}>{meta}</span>}
|
|
109
|
+
</>
|
|
110
|
+
)
|
|
111
|
+
|
|
112
|
+
if (href !== undefined && renderLink !== undefined) {
|
|
113
|
+
const target: ArticleNavTarget = {
|
|
114
|
+
label: title,
|
|
115
|
+
href,
|
|
116
|
+
...(description !== undefined && { description }),
|
|
117
|
+
}
|
|
118
|
+
// The router bridge renders its own anchor around the card — the wrapper class neutralizes
|
|
119
|
+
// browser anchor defaults (underline, link color) the library can't reach from inside.
|
|
120
|
+
return (
|
|
121
|
+
<span className={classes.linkWrap}>
|
|
122
|
+
{renderLink(
|
|
123
|
+
target,
|
|
124
|
+
<Card className={cardClass} style={mergedStyle}>
|
|
125
|
+
{body}
|
|
126
|
+
</Card>,
|
|
127
|
+
)}
|
|
128
|
+
</span>
|
|
129
|
+
)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
if (href !== undefined) {
|
|
133
|
+
return (
|
|
134
|
+
<Card component="a" href={href} className={cardClass} style={mergedStyle}>
|
|
135
|
+
{body}
|
|
136
|
+
</Card>
|
|
137
|
+
)
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
if (onClick !== undefined) {
|
|
141
|
+
return (
|
|
142
|
+
<Card
|
|
143
|
+
component="button"
|
|
144
|
+
type="button"
|
|
145
|
+
onClick={onClick}
|
|
146
|
+
className={cardClass}
|
|
147
|
+
style={mergedStyle}
|
|
148
|
+
>
|
|
149
|
+
{body}
|
|
150
|
+
</Card>
|
|
151
|
+
)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
return (
|
|
155
|
+
<Card className={cardClass} style={mergedStyle}>
|
|
156
|
+
{body}
|
|
157
|
+
</Card>
|
|
158
|
+
)
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type ArticleGridProps = {
|
|
162
|
+
readonly children: ReactNode
|
|
163
|
+
/** Columns at the `lg` breakpoint. Default `3`. */
|
|
164
|
+
readonly cols?: number
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export function ArticleGrid({ children, cols = 3 }: ArticleGridProps) {
|
|
168
|
+
return (
|
|
169
|
+
<SimpleGrid cols={{ base: 1, sm: 2, lg: cols }} spacing="sm">
|
|
170
|
+
{children}
|
|
171
|
+
</SimpleGrid>
|
|
172
|
+
)
|
|
173
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ArticleFilterBar — a fully controlled, dumb filter bar over an article list's category and tags
|
|
3
|
+
* axes (docs/CONTENT-SPEC.md). It owns no state, no store, no URL knowledge — the store lives in
|
|
4
|
+
* `basalt-ui/router-tanstack` (`createSearchParamStore`/`createMultiSearchParamStore`, headless,
|
|
5
|
+
* Mantine-free); this is the Mantine half. Wire it to that pair per `createSearchParamStore`'s
|
|
6
|
+
* 5-step JSDoc recipe (the filter is its step 3).
|
|
7
|
+
*
|
|
8
|
+
* Category renders as a `SegmentedControl` (DESIGN-SPEC §5); below the `sm` breakpoint it swaps to
|
|
9
|
+
* a `Select` via Mantine's CSS-based `visibleFrom`/`hiddenFrom` props (not `useMediaQuery` — a JS
|
|
10
|
+
* media query renders differently on server vs client and would trip a hydration mismatch, the
|
|
11
|
+
* same hazard `formatArticleDate` is careful to avoid). Tags render as a `Chip.Group` — Chips wrap
|
|
12
|
+
* natively and need no responsive fallback. The tag row is omitted entirely when `tags` is
|
|
13
|
+
* absent/empty.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* <ArticleFilterBar
|
|
17
|
+
* categories={[{ value: 'all', label: 'All' }, { value: 'guide', label: 'Guide' }]}
|
|
18
|
+
* category={category}
|
|
19
|
+
* onCategoryChange={setCategory}
|
|
20
|
+
* tags={ARTICLE_TAGS}
|
|
21
|
+
* selectedTags={tags}
|
|
22
|
+
* onTagsChange={setTags}
|
|
23
|
+
* />
|
|
24
|
+
*/
|
|
25
|
+
import type { CSSProperties } from 'react'
|
|
26
|
+
import { Chip, Group, SegmentedControl, Select, Stack } from '@mantine/core'
|
|
27
|
+
|
|
28
|
+
export type ArticleFilterBarProps = {
|
|
29
|
+
readonly categories: readonly { readonly value: string; readonly label: string }[]
|
|
30
|
+
readonly category: string
|
|
31
|
+
readonly onCategoryChange: (next: string) => void
|
|
32
|
+
readonly tags?: readonly string[]
|
|
33
|
+
readonly selectedTags?: readonly string[]
|
|
34
|
+
readonly onTagsChange?: (next: string[]) => void
|
|
35
|
+
readonly className?: string
|
|
36
|
+
readonly style?: CSSProperties
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function ArticleFilterBar({
|
|
40
|
+
categories,
|
|
41
|
+
category,
|
|
42
|
+
onCategoryChange,
|
|
43
|
+
tags,
|
|
44
|
+
selectedTags,
|
|
45
|
+
onTagsChange,
|
|
46
|
+
className,
|
|
47
|
+
style,
|
|
48
|
+
}: ArticleFilterBarProps) {
|
|
49
|
+
const categoryData = categories.map(({ value, label }) => ({ value, label }))
|
|
50
|
+
const hasTags = tags !== undefined && tags.length > 0
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<Stack
|
|
54
|
+
gap="sm"
|
|
55
|
+
{...(className !== undefined && { className })}
|
|
56
|
+
{...(style !== undefined && { style })}
|
|
57
|
+
>
|
|
58
|
+
<SegmentedControl
|
|
59
|
+
visibleFrom="sm"
|
|
60
|
+
data={categoryData}
|
|
61
|
+
value={category}
|
|
62
|
+
onChange={onCategoryChange}
|
|
63
|
+
/>
|
|
64
|
+
<Select
|
|
65
|
+
hiddenFrom="sm"
|
|
66
|
+
data={categoryData}
|
|
67
|
+
value={category}
|
|
68
|
+
allowDeselect={false}
|
|
69
|
+
onChange={(next) => next !== null && onCategoryChange(next)}
|
|
70
|
+
/>
|
|
71
|
+
{hasTags && (
|
|
72
|
+
<Chip.Group
|
|
73
|
+
multiple
|
|
74
|
+
value={selectedTags !== undefined ? [...selectedTags] : []}
|
|
75
|
+
onChange={(next) => onTagsChange?.(next)}
|
|
76
|
+
>
|
|
77
|
+
<Group gap="xs" wrap="wrap">
|
|
78
|
+
{tags?.map((tag) => (
|
|
79
|
+
<Chip key={tag} value={tag}>
|
|
80
|
+
{tag}
|
|
81
|
+
</Chip>
|
|
82
|
+
))}
|
|
83
|
+
</Group>
|
|
84
|
+
</Chip.Group>
|
|
85
|
+
)}
|
|
86
|
+
</Stack>
|
|
87
|
+
)
|
|
88
|
+
}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* ArticleLayout — the docs-page frame (docs/CONTENT-SPEC.md §3/§7): a content column CENTERED in
|
|
3
|
+
* the available width, an optional sticky TOC rail, a meta header, and a prev/next footer. The
|
|
4
|
+
* header/content/footer all sit in grid-column 1, so they share the SAME width regardless of
|
|
5
|
+
* whether the TOC rail is visible — this is what fixes the old "content hugs the left, huge gulf
|
|
6
|
+
* to the far-right TOC" imbalance.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
.root {
|
|
10
|
+
display: grid;
|
|
11
|
+
grid-template-columns: minmax(0, var(--vx-prose-measure)) 220px;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
column-gap: 56px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.root.noToc {
|
|
17
|
+
grid-template-columns: minmax(0, var(--vx-prose-measure));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@media (max-width: 1200px) {
|
|
21
|
+
.root {
|
|
22
|
+
grid-template-columns: minmax(0, var(--vx-prose-measure));
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.tocRail {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.header {
|
|
31
|
+
grid-column: 1;
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: 10px;
|
|
35
|
+
padding-bottom: 20px;
|
|
36
|
+
margin-bottom: 28px;
|
|
37
|
+
border-bottom: 1px solid var(--vx-divider);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.title {
|
|
41
|
+
font-family: var(--basalt-font-head);
|
|
42
|
+
font-stretch: 88%;
|
|
43
|
+
font-weight: 550;
|
|
44
|
+
font-size: var(--vx-text-h1);
|
|
45
|
+
color: var(--vx-ink);
|
|
46
|
+
margin: 0;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.description {
|
|
50
|
+
font-size: var(--vx-text-lg);
|
|
51
|
+
color: var(--vx-ink2);
|
|
52
|
+
line-height: 1.6;
|
|
53
|
+
margin: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.metaRow {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
gap: 6px;
|
|
60
|
+
font-family: var(--basalt-font-mono);
|
|
61
|
+
font-size: var(--vx-text-micro);
|
|
62
|
+
letter-spacing: 0.06em;
|
|
63
|
+
text-transform: uppercase;
|
|
64
|
+
color: var(--vx-faint);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.content {
|
|
68
|
+
grid-column: 1;
|
|
69
|
+
min-width: 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.tocRail {
|
|
73
|
+
grid-column: 2;
|
|
74
|
+
position: sticky;
|
|
75
|
+
top: 84px;
|
|
76
|
+
align-self: start;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.footer {
|
|
80
|
+
grid-column: 1;
|
|
81
|
+
display: grid;
|
|
82
|
+
grid-template-columns: 1fr 1fr;
|
|
83
|
+
gap: 12px;
|
|
84
|
+
margin-top: 40px;
|
|
85
|
+
padding-top: 20px;
|
|
86
|
+
border-top: 1px solid var(--vx-divider);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/* A consumer `renderLink` bridge wraps the cell in its own anchor — neutralize the browser anchor
|
|
90
|
+
* defaults it brings (same treatment as ArticleCard's linkWrap). */
|
|
91
|
+
.footer a {
|
|
92
|
+
text-decoration: none;
|
|
93
|
+
color: inherit;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.navCell {
|
|
97
|
+
display: flex;
|
|
98
|
+
flex-direction: column;
|
|
99
|
+
gap: 4px;
|
|
100
|
+
text-decoration: none;
|
|
101
|
+
color: inherit;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.navCellNext {
|
|
105
|
+
align-items: flex-end;
|
|
106
|
+
text-align: right;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.navLabel {
|
|
110
|
+
font-family: var(--basalt-font-mono);
|
|
111
|
+
font-size: var(--vx-text-micro);
|
|
112
|
+
letter-spacing: 0.06em;
|
|
113
|
+
text-transform: uppercase;
|
|
114
|
+
color: var(--vx-faint);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.navTarget {
|
|
118
|
+
display: flex;
|
|
119
|
+
align-items: center;
|
|
120
|
+
gap: 6px;
|
|
121
|
+
font-family: var(--basalt-font-head);
|
|
122
|
+
font-stretch: 88%;
|
|
123
|
+
font-weight: 550;
|
|
124
|
+
font-size: var(--vx-text-md);
|
|
125
|
+
color: var(--vx-ink);
|
|
126
|
+
transition: color 120ms ease;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.navCell:hover .navTarget {
|
|
130
|
+
color: var(--vx-accent);
|
|
131
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed CSS-module declaration (the S4 CSS-modules path). Named string props — not an index
|
|
3
|
+
* signature — so dot access stays verbatim under the package's strict flags.
|
|
4
|
+
*/
|
|
5
|
+
declare const classes: {
|
|
6
|
+
readonly root: string
|
|
7
|
+
readonly noToc: string
|
|
8
|
+
readonly header: string
|
|
9
|
+
readonly title: string
|
|
10
|
+
readonly description: string
|
|
11
|
+
readonly metaRow: string
|
|
12
|
+
readonly content: string
|
|
13
|
+
readonly tocRail: string
|
|
14
|
+
readonly footer: string
|
|
15
|
+
readonly navCell: string
|
|
16
|
+
readonly navCellNext: string
|
|
17
|
+
readonly navLabel: string
|
|
18
|
+
readonly navTarget: string
|
|
19
|
+
}
|
|
20
|
+
export default classes
|