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
package/dist/surfaces.js
ADDED
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
const v = (spec, message, extra) => ({
|
|
2
|
+
spec,
|
|
3
|
+
match: "path",
|
|
4
|
+
message,
|
|
5
|
+
...extra
|
|
6
|
+
});
|
|
7
|
+
const vg = (spec, message, extra) => ({
|
|
8
|
+
spec,
|
|
9
|
+
match: "group",
|
|
10
|
+
message,
|
|
11
|
+
...extra
|
|
12
|
+
});
|
|
13
|
+
const MANTINE_BANS = [
|
|
14
|
+
v("@mantine/core", "{ctx} must be Mantine-free \u2014 no Mantine imports allowed."),
|
|
15
|
+
v("@mantine/hooks", "{ctx} must be Mantine-free \u2014 no Mantine imports allowed."),
|
|
16
|
+
vg("@mantine/*", "{ctx} must be Mantine-free \u2014 no Mantine imports allowed.")
|
|
17
|
+
];
|
|
18
|
+
const SURFACES = {
|
|
19
|
+
// ── JS-subpath surfaces ──────────────────────────────────────────────────────────────────────
|
|
20
|
+
".": {
|
|
21
|
+
kind: "doctrine",
|
|
22
|
+
layer: "mantine-coupled",
|
|
23
|
+
rule: "mantine",
|
|
24
|
+
skill: ["basalt-app", "basalt-design"],
|
|
25
|
+
guardKinds: ["raw-motion-value", "card-with-border", "raw-form-control", "sub-16-input-font"],
|
|
26
|
+
description: "BasaltProvider, createBasaltTheme, BasaltShell + sidebar/mobile-nav/breadcrumbs, NavCountBadge, ThemeToggle, ThreadWorkspace + thread-chat components, dashboard composites (DeltaBadge, StatCard, EmptyState, SettingsSection/SettingsRow/DangerZone)",
|
|
27
|
+
optionalPeers: ["react-markdown", "remark-gfm", "shiki", "beautiful-mermaid"],
|
|
28
|
+
forbiddenImports: []
|
|
29
|
+
// the no-charts/tokens-reexport invariant is comment-only today; Phase-4 plugin
|
|
30
|
+
},
|
|
31
|
+
"./charts": {
|
|
32
|
+
kind: "doctrine",
|
|
33
|
+
layer: "headless",
|
|
34
|
+
rule: "charts",
|
|
35
|
+
skill: ["basalt-charts"],
|
|
36
|
+
guardKinds: ["raw-hex", "raw-color-fn", "raw-visx-axis", "unframed-chart"],
|
|
37
|
+
description: "visx chart primitives, sparklines, hooks, and token re-exports (Mantine-free)",
|
|
38
|
+
globs: {
|
|
39
|
+
shipped: ["**/charts/**"],
|
|
40
|
+
repo: ["packages/basalt-ui/src/charts/**"]
|
|
41
|
+
},
|
|
42
|
+
replaceBans: true,
|
|
43
|
+
// @visx/* MUST NOT inherit from src/** (the re-allow). Full list emitted.
|
|
44
|
+
forbiddenImports: [
|
|
45
|
+
...MANTINE_BANS,
|
|
46
|
+
v("@visx/tooltip", "Use ChartTooltip + TooltipHeader/Row/Body from {ctx}.")
|
|
47
|
+
// LOAD-BEARING ABSENCE: no @visx/* group ban here — charts uniquely permits @visx/*.
|
|
48
|
+
],
|
|
49
|
+
ruleOverrides: [{ rule: "no-underscore-dangle", level: "off", target: "repo" }]
|
|
50
|
+
},
|
|
51
|
+
"./tokens": {
|
|
52
|
+
kind: "doctrine",
|
|
53
|
+
layer: "headless",
|
|
54
|
+
rule: "tokens",
|
|
55
|
+
skill: ["basalt-design", "basalt-charts"],
|
|
56
|
+
guardKinds: ["raw-hex", "raw-color-fn", "off-identity-accent", "off-system-surface-var"],
|
|
57
|
+
description: "VX token refs, buildPaletteCss, defineSeries, seriesTokens, groupTokens, alpha (Mantine-free)",
|
|
58
|
+
globs: {
|
|
59
|
+
shipped: ["**/tokens/**"],
|
|
60
|
+
repo: ["packages/basalt-ui/src/tokens/**"]
|
|
61
|
+
},
|
|
62
|
+
forbiddenImports: [
|
|
63
|
+
...MANTINE_BANS,
|
|
64
|
+
vg("@visx/*", "Direct @visx/* imports are only allowed inside the charts boundary ({ctx}).")
|
|
65
|
+
]
|
|
66
|
+
// shipped tokens override is MISSING today → this projection EMITS it (closes D2)
|
|
67
|
+
},
|
|
68
|
+
"./theme-lab": {
|
|
69
|
+
kind: "tooling",
|
|
70
|
+
layer: "mantine-coupled",
|
|
71
|
+
description: "ThemeLabControls, applyOverrides, COLOR_GROUPS for live theme inspection",
|
|
72
|
+
forbiddenImports: []
|
|
73
|
+
},
|
|
74
|
+
"./vite": {
|
|
75
|
+
kind: "tooling",
|
|
76
|
+
layer: "mantine-coupled",
|
|
77
|
+
description: "basaltViteConfig(opts) \u2014 Vite preset for basalt-ui consumer apps",
|
|
78
|
+
forbiddenImports: []
|
|
79
|
+
},
|
|
80
|
+
"./guard": {
|
|
81
|
+
kind: "tooling",
|
|
82
|
+
layer: "headless",
|
|
83
|
+
description: "checkSource, GUARD_RULES, Finding types \u2014 the headless theme-guard core",
|
|
84
|
+
globs: {
|
|
85
|
+
shipped: [],
|
|
86
|
+
repo: ["packages/basalt-ui/src/guard/**"]
|
|
87
|
+
},
|
|
88
|
+
forbiddenImports: [
|
|
89
|
+
...MANTINE_BANS,
|
|
90
|
+
vg("@visx/*", "Direct @visx/* imports are only allowed inside the charts boundary ({ctx}).")
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
// 6th JS subpath
|
|
94
|
+
"./query": {
|
|
95
|
+
kind: "doctrine",
|
|
96
|
+
layer: "headless",
|
|
97
|
+
rule: "query",
|
|
98
|
+
skill: ["basalt-app"],
|
|
99
|
+
guardKinds: [],
|
|
100
|
+
description: "createBasaltQueryClient, transport-agnostic unwrap, lazy BasaltQueryDevtools",
|
|
101
|
+
optionalPeers: ["@tanstack/react-query-devtools"],
|
|
102
|
+
globs: {
|
|
103
|
+
shipped: [],
|
|
104
|
+
repo: ["packages/basalt-ui/src/query/**"]
|
|
105
|
+
},
|
|
106
|
+
forbiddenImports: [
|
|
107
|
+
...MANTINE_BANS,
|
|
108
|
+
vg("@visx/*", "Direct @visx/* imports are only allowed inside the charts boundary ({ctx}).")
|
|
109
|
+
]
|
|
110
|
+
},
|
|
111
|
+
"./router-tanstack": {
|
|
112
|
+
kind: "doctrine",
|
|
113
|
+
layer: "headless",
|
|
114
|
+
rule: "router",
|
|
115
|
+
skill: ["basalt-app"],
|
|
116
|
+
guardKinds: [],
|
|
117
|
+
description: "TanStack Router bridge: useBasaltNav (active route) + useRouterBreadcrumbs + createSearchParamStore (single-select URL-state store) + createMultiSearchParamStore (multi-select URL-state store)",
|
|
118
|
+
optionalPeers: ["@tanstack/react-router"],
|
|
119
|
+
globs: {
|
|
120
|
+
shipped: [],
|
|
121
|
+
repo: ["packages/basalt-ui/src/router-tanstack/**"]
|
|
122
|
+
},
|
|
123
|
+
forbiddenImports: [
|
|
124
|
+
...MANTINE_BANS,
|
|
125
|
+
vg("@visx/*", "Direct @visx/* imports are only allowed inside the charts boundary ({ctx}).")
|
|
126
|
+
]
|
|
127
|
+
},
|
|
128
|
+
"./forms": {
|
|
129
|
+
kind: "doctrine",
|
|
130
|
+
layer: "mantine-coupled",
|
|
131
|
+
rule: "forms",
|
|
132
|
+
skill: ["basalt-design"],
|
|
133
|
+
guardKinds: [],
|
|
134
|
+
description: "Mantine form adapter: useBasaltForm, field, FormErrorSummary, useFormDraft (Standard Schema)",
|
|
135
|
+
optionalPeers: ["@mantine/form"],
|
|
136
|
+
forbiddenImports: []
|
|
137
|
+
},
|
|
138
|
+
"./notifications": {
|
|
139
|
+
kind: "doctrine",
|
|
140
|
+
layer: "mantine-coupled",
|
|
141
|
+
rule: "notifications",
|
|
142
|
+
skill: ["basalt-app"],
|
|
143
|
+
guardKinds: [],
|
|
144
|
+
description: "Mantine notifications: notify helpers, typed registry, persisted history, NotificationBell, NotificationCenter",
|
|
145
|
+
optionalPeers: ["@mantine/notifications"],
|
|
146
|
+
forbiddenImports: []
|
|
147
|
+
},
|
|
148
|
+
"./commands": {
|
|
149
|
+
kind: "doctrine",
|
|
150
|
+
layer: "mantine-coupled",
|
|
151
|
+
rule: "commands",
|
|
152
|
+
skill: ["basalt-app"],
|
|
153
|
+
guardKinds: [],
|
|
154
|
+
description: "typed command bus + overlay controller, toSpotlightActions, ShortcutsHelp, BasaltOverlays",
|
|
155
|
+
optionalPeers: ["@mantine/spotlight", "@mantine/modals", "@tanstack/react-hotkeys"],
|
|
156
|
+
forbiddenImports: []
|
|
157
|
+
},
|
|
158
|
+
"./data": {
|
|
159
|
+
kind: "doctrine",
|
|
160
|
+
layer: "mantine-coupled",
|
|
161
|
+
rule: "data",
|
|
162
|
+
skill: ["basalt-design"],
|
|
163
|
+
guardKinds: [],
|
|
164
|
+
description: "Convenience barrel pulling both TanStack Table + Virtual peer groups: BasaltDataTable, BasaltVirtualList (Mantine-rendered) \u2014 prefer ./data/table or ./data/virtual for per-feature opt-in",
|
|
165
|
+
optionalPeers: ["@tanstack/react-table", "@tanstack/react-virtual"],
|
|
166
|
+
forbiddenImports: []
|
|
167
|
+
},
|
|
168
|
+
"./data/table": {
|
|
169
|
+
kind: "doctrine",
|
|
170
|
+
layer: "mantine-coupled",
|
|
171
|
+
rule: "data",
|
|
172
|
+
skill: ["basalt-design"],
|
|
173
|
+
guardKinds: [],
|
|
174
|
+
description: "BasaltDataTable: a sortable data table over TanStack Table, rendered with Mantine (Mantine-rendered)",
|
|
175
|
+
optionalPeers: ["@tanstack/react-table"],
|
|
176
|
+
forbiddenImports: []
|
|
177
|
+
},
|
|
178
|
+
"./data/virtual": {
|
|
179
|
+
kind: "doctrine",
|
|
180
|
+
layer: "mantine-coupled",
|
|
181
|
+
rule: "data",
|
|
182
|
+
skill: ["basalt-design"],
|
|
183
|
+
guardKinds: [],
|
|
184
|
+
description: "BasaltVirtualList: a windowed virtual list over TanStack Virtual, rendered with Mantine (Mantine-rendered)",
|
|
185
|
+
optionalPeers: ["@tanstack/react-virtual"],
|
|
186
|
+
forbiddenImports: []
|
|
187
|
+
},
|
|
188
|
+
"./agent": {
|
|
189
|
+
kind: "doctrine",
|
|
190
|
+
layer: "headless",
|
|
191
|
+
rule: "agent",
|
|
192
|
+
skill: ["basalt-app"],
|
|
193
|
+
guardKinds: [],
|
|
194
|
+
description: "Headless streaming-chat layer: useAgentStream, aiSdkTransport (recommended default) + edenTransport, PartList, plus the multi-thread createThreadsStore + useAgentThreadRuns + outcome-resolver seam (Mantine-free)",
|
|
195
|
+
optionalPeers: ["ai", "use-stick-to-bottom"],
|
|
196
|
+
globs: {
|
|
197
|
+
shipped: [],
|
|
198
|
+
repo: ["packages/basalt-ui/src/agent/**"]
|
|
199
|
+
},
|
|
200
|
+
forbiddenImports: [
|
|
201
|
+
...MANTINE_BANS,
|
|
202
|
+
vg("@visx/*", "Direct @visx/* imports are only allowed inside the charts boundary ({ctx}).")
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"./content": {
|
|
206
|
+
kind: "doctrine",
|
|
207
|
+
layer: "mantine-coupled",
|
|
208
|
+
rule: "content",
|
|
209
|
+
skill: ["basalt-design"],
|
|
210
|
+
guardKinds: [],
|
|
211
|
+
description: "Prose (article/chat typography), CodeBlock (shiki, optional peer), Callout, TableOfContents, ReadingProgress, Markdown (react-markdown + remark-gfm, optional peers, streaming-aware), MermaidDiagram (beautiful-mermaid, optional peer), mdxComponents/createMdxComponents, ArticleLayout (docs-page frame), ArticleCard/ArticleGrid (overview cards), Article model (sortArticles/filterArticles/formatArticleDate), ArticleFilterBar (category/tags filter UI), toArticleActions (Spotlight projector, @mantine/spotlight type-only), GuideLink/GuideDrawer (contextual-help drawer) \u2014 the content/prose surface",
|
|
212
|
+
optionalPeers: [
|
|
213
|
+
"shiki",
|
|
214
|
+
"@shikijs/langs",
|
|
215
|
+
"@shikijs/themes",
|
|
216
|
+
"beautiful-mermaid",
|
|
217
|
+
"react-markdown",
|
|
218
|
+
"remark-gfm",
|
|
219
|
+
"@mantine/spotlight"
|
|
220
|
+
],
|
|
221
|
+
forbiddenImports: []
|
|
222
|
+
},
|
|
223
|
+
"./state": {
|
|
224
|
+
kind: "doctrine",
|
|
225
|
+
layer: "headless",
|
|
226
|
+
rule: "state",
|
|
227
|
+
skill: ["basalt-design"],
|
|
228
|
+
guardKinds: ["localstorage-theme"],
|
|
229
|
+
description: "createPersistedState (versioned localStorage) + useOnlineStatus \u2014 Mantine-free state primitives",
|
|
230
|
+
optionalPeers: [],
|
|
231
|
+
// Consumers import basalt-ui/state from node_modules (lint-ignored), so there is nothing to
|
|
232
|
+
// enforce consumer-side, and a shipped **/state* glob would wrongly hit consumers' own
|
|
233
|
+
// Mantine-using state files. Enforce only basalt's own src/state.ts.
|
|
234
|
+
globs: {
|
|
235
|
+
shipped: [],
|
|
236
|
+
repo: ["packages/basalt-ui/src/state.ts"]
|
|
237
|
+
},
|
|
238
|
+
forbiddenImports: [
|
|
239
|
+
...MANTINE_BANS,
|
|
240
|
+
vg("@visx/*", "Direct @visx/* imports are only allowed inside the charts boundary ({ctx}).")
|
|
241
|
+
]
|
|
242
|
+
},
|
|
243
|
+
"./connectivity": {
|
|
244
|
+
kind: "doctrine",
|
|
245
|
+
layer: "mantine-coupled",
|
|
246
|
+
rule: "mantine",
|
|
247
|
+
skill: ["basalt-app"],
|
|
248
|
+
guardKinds: [],
|
|
249
|
+
description: "ConnectivityProvider (aggregates browser online/offline, React Query onlineManager, SSE, and health-check pings into one status), useConnectivity, and ConnectivityIndicator \u2014 auto-mounted by BasaltProvider",
|
|
250
|
+
optionalPeers: [],
|
|
251
|
+
forbiddenImports: []
|
|
252
|
+
},
|
|
253
|
+
// ── Non-JS published assets (ToolingSpec; not JS subpaths — check-coverage exempts these) ─────
|
|
254
|
+
"./styles.css": {
|
|
255
|
+
kind: "tooling",
|
|
256
|
+
layer: "non-js-asset",
|
|
257
|
+
description: "Mandatory CSS import (after the Mantine styles.layer.css bundles) \u2014 @layer basalt base styles, iOS input safety net, font stack",
|
|
258
|
+
forbiddenImports: []
|
|
259
|
+
},
|
|
260
|
+
"./configs/*": {
|
|
261
|
+
kind: "tooling",
|
|
262
|
+
layer: "non-js-asset",
|
|
263
|
+
description: "Raw toolchain presets for consumer extends: oxlint.json, oxfmt.json, tsconfig.*.json, lefthook.yml, check.yml",
|
|
264
|
+
forbiddenImports: []
|
|
265
|
+
},
|
|
266
|
+
"./llms.txt": {
|
|
267
|
+
kind: "tooling",
|
|
268
|
+
layer: "non-js-asset",
|
|
269
|
+
description: "Machine-readable surface map \u2014 one entry per published subpath with import specifier, description, layer, and optional peers",
|
|
270
|
+
forbiddenImports: []
|
|
271
|
+
},
|
|
272
|
+
// ── #-prefixed synthetic surfaces (advisory rules + global ban layer; NOT export keys) ────────
|
|
273
|
+
"#app": {
|
|
274
|
+
// synthetic global app-wide ban layer — the src/**+app/** glob
|
|
275
|
+
kind: "doctrine",
|
|
276
|
+
layer: "app-global",
|
|
277
|
+
rule: "mantine",
|
|
278
|
+
skill: ["basalt-app"],
|
|
279
|
+
guardKinds: [],
|
|
280
|
+
globs: {
|
|
281
|
+
// Shipped is a catch-all (not just src/**+app/**) so consumer code under components/, lib/,
|
|
282
|
+
// features/, etc. is also covered — the narrower re-allow overrides (./tokens, ./charts,
|
|
283
|
+
// ./agent) still win for their globs because oxlint overrides are last-writer-wins and
|
|
284
|
+
// EMIT_ORDER places #app first (see projectBanList doc comment in gen-oxlint.ts).
|
|
285
|
+
shipped: ["**/*.{ts,tsx}"],
|
|
286
|
+
repo: ["packages/basalt-ui/src/**", "apps/playground/src/**"]
|
|
287
|
+
},
|
|
288
|
+
ruleOverrides: [{ rule: "no-console", level: "off", target: "repo" }],
|
|
289
|
+
// cli/bin/scripts, repo-local only
|
|
290
|
+
forbiddenImports: [
|
|
291
|
+
v("antd", "Use Mantine \u2014 antd is not part of the basalt-ui stack.", { shippedOnly: true }),
|
|
292
|
+
v("@visx/tooltip", "Use ChartTooltip + TooltipHeader/Row/Body from {ctx}."),
|
|
293
|
+
vg("@visx/*", "Direct @visx/* imports are only allowed inside the charts boundary ({ctx})."),
|
|
294
|
+
v("framer-motion", "Import from 'motion/react', not the raw framer-motion package.")
|
|
295
|
+
]
|
|
296
|
+
}
|
|
297
|
+
};
|
|
298
|
+
const RULE_NAMES = [
|
|
299
|
+
...new Set(
|
|
300
|
+
Object.values(SURFACES).filter((s) => s.kind === "doctrine").map((s) => s.rule)
|
|
301
|
+
)
|
|
302
|
+
];
|
|
303
|
+
const SKILL_NAMES = [
|
|
304
|
+
...new Set(
|
|
305
|
+
Object.values(SURFACES).filter((s) => s.kind === "doctrine").flatMap((s) => [...s.skill])
|
|
306
|
+
)
|
|
307
|
+
];
|
|
308
|
+
export {
|
|
309
|
+
RULE_NAMES,
|
|
310
|
+
SKILL_NAMES,
|
|
311
|
+
SURFACES
|
|
312
|
+
};
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Control-level state rules the theme's flat `styles` objects can't express. Wired via
|
|
3
|
+
* `classNames` in theme/index.ts (Input / Button / ActionIcon / Accordion), so they reach every
|
|
4
|
+
* render path — same pattern as nav-link.module.css.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Field idiom (docs/DESIGN-SPEC.md §5): inputs read slightly inset on the panel — field surface
|
|
9
|
+
* (white on light, a page-bg step below panel on dark), depth via `shadow-card` (a whisper shadow
|
|
10
|
+
* + ring baked into the one value — DESIGN-SPEC doctrine inversion #1: depth is `shadow-card`, not
|
|
11
|
+
* a hairline; borders-as-borders stay reserved for layout dividers), faint placeholder, and an
|
|
12
|
+
* accent border on focus (Mantine's own `:focus` rule swaps `--input-bd` to `--input-bd-focus`).
|
|
13
|
+
* The `--input-bd` box itself stays a TRANSPARENT 1px border (not `border: none`) so focus can
|
|
14
|
+
* recolor the same box with no layout shift, and `[data-error]` still wins a real red border.
|
|
15
|
+
*
|
|
16
|
+
* Mantine defines these vars per scheme+variant on the input WRAPPER
|
|
17
|
+
* (`[data-mantine-color-scheme] .m_*[data-variant='default']`, specificity 0,3,0). The `html`
|
|
18
|
+
* prefix here lands at 0,3,1 so the override is deterministic regardless of stylesheet order.
|
|
19
|
+
* Scoped to the `default` variant so `filled`/`unstyled` keep their Mantine semantics; the border
|
|
20
|
+
* override excludes `[data-error]` so the error border still wins.
|
|
21
|
+
*/
|
|
22
|
+
html[data-mantine-color-scheme] .inputWrapper[data-variant='default'] {
|
|
23
|
+
--input-bg: var(--vx-surface-field);
|
|
24
|
+
--input-bd-focus: var(--vx-accent);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
html[data-mantine-color-scheme] .inputWrapper[data-variant='default']:not([data-error]) {
|
|
28
|
+
--input-bd: transparent;
|
|
29
|
+
--input-placeholder-color: var(--vx-faint);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/*
|
|
33
|
+
* Depth lands on the INPUT ELEMENT, never on the wrapper above — `--vx-shadow-card` bakes a 1px
|
|
34
|
+
* ring into the shadow, and the ring follows the shadowed box's OWN `border-radius`, not any other
|
|
35
|
+
* element's. Mantine's input wrapper (`.m_6c018570`) is a bare `position: relative` box with
|
|
36
|
+
* `border-radius: 0`; the ring drawn there squares off around the rounded input inside it and leaks
|
|
37
|
+
* visible corner nubs. The input element itself carries `border-radius: var(--input-radius)`
|
|
38
|
+
* (Input.css), so the ring follows the rounded edge exactly. This is the general rule for the token
|
|
39
|
+
* — see shadow-surfaces.test.ts.
|
|
40
|
+
*
|
|
41
|
+
* Mantine never declares a `box-shadow` on the input at any specificity, so a plain `.input` class
|
|
42
|
+
* (0,1,0) wins uncontested. `--field-depth` carries the resting shadow so the `:focus` rule below
|
|
43
|
+
* can layer the accent ring ON TOP of it (box-shadow replaces, it never merges) without restating
|
|
44
|
+
* the value or depending on source order; it is a no-op shadow for the `filled`/`unstyled` variants,
|
|
45
|
+
* which keep their Mantine semantics and take the focus ring alone.
|
|
46
|
+
*/
|
|
47
|
+
.input {
|
|
48
|
+
--field-depth: 0 0 #0000;
|
|
49
|
+
|
|
50
|
+
box-shadow: var(--field-depth);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.input[data-variant='default'] {
|
|
54
|
+
--field-depth: var(--vx-shadow-card);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/*
|
|
58
|
+
* Button / ActionIcon (`default` variant): the SAME shadow-card depth as the field above and as
|
|
59
|
+
* Card/Paper (docs/DESIGN-SPEC.md §5: "search trigger … panel + shadow-card", "icon button …
|
|
60
|
+
* panel + shadow-card"). Background and border already resolve centrally, through
|
|
61
|
+
* `--mantine-color-default`/`-border` (theme/index.ts's `cssVariablesResolver`) — the
|
|
62
|
+
* `default-border` var is pinned to `transparent` there, which is what kills the stock 1px
|
|
63
|
+
* hairline `defaultVariantColorsResolver`'s `variant === 'default'` branch draws for EVERY
|
|
64
|
+
* default-variant control (Button, ActionIcon, Chip, CheckboxCard, RadioCard, …), not just these
|
|
65
|
+
* two. Only the shadow is a fresh declaration (Mantine never sets one for `default`), so no
|
|
66
|
+
* `html[...]` specificity fight is needed to win it — a plain module-class + attribute selector is
|
|
67
|
+
* deterministic. `filled`/`subtle`/`light` variants are untouched by the attribute scope.
|
|
68
|
+
*/
|
|
69
|
+
.buttonRoot[data-variant='default'] {
|
|
70
|
+
box-shadow: var(--vx-shadow-card);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.actionIconRoot[data-variant='default'] {
|
|
74
|
+
box-shadow: var(--vx-shadow-card);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/*
|
|
78
|
+
* CheckboxCard / RadioCard (`withBorder`, the default): panel bg + `shadow-card`, no border — the
|
|
79
|
+
* same triad as Card/Paper. Mantine's own border-color rule wraps `[data-with-border]` in
|
|
80
|
+
* `:where()` (0 specificity), so a plain class + real attribute selector ((0,2,0)) already wins;
|
|
81
|
+
* no `html[…]` prefix fight needed, same reasoning as Button/ActionIcon above.
|
|
82
|
+
*/
|
|
83
|
+
.checkboxCardRoot[data-with-border],
|
|
84
|
+
.radioCardRoot[data-with-border] {
|
|
85
|
+
background-color: var(--vx-surface-panel);
|
|
86
|
+
border-color: transparent;
|
|
87
|
+
box-shadow: var(--vx-shadow-card);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/*
|
|
91
|
+
* Chip (`filled` variant, Chip's own default — see theme/index.ts for why there's no literal
|
|
92
|
+
* `variant="default"` here). Unchecked, non-disabled state only — checked stays the accent fill,
|
|
93
|
+
* disabled keeps Mantine's own disabled treatment. `:not([data-checked]):not([data-disabled])`
|
|
94
|
+
* lands (0,3,0), above Mantine's own unchecked-background rule at (0,2,0), so this wins on
|
|
95
|
+
* specificity alone.
|
|
96
|
+
*/
|
|
97
|
+
.chipLabel:not([data-checked]):not([data-disabled]) {
|
|
98
|
+
background-color: var(--vx-surface-panel);
|
|
99
|
+
box-shadow: var(--vx-shadow-card);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/*
|
|
103
|
+
* Focus = accent border (via --input-bd-focus above) + a subtle accent ring layered over the
|
|
104
|
+
* resting `--field-depth`, so the field keeps its shadow-card depth while focused.
|
|
105
|
+
*/
|
|
106
|
+
.input:focus,
|
|
107
|
+
.input:focus-within {
|
|
108
|
+
box-shadow:
|
|
109
|
+
var(--field-depth),
|
|
110
|
+
0 0 0 3px color-mix(in srgb, var(--vx-accent) 15%, transparent);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/*
|
|
114
|
+
* Accordion (default variant): hairline separators BETWEEN items only — the last item's
|
|
115
|
+
* border-bottom would read as an outer rule, so it's dropped. Mantine declares
|
|
116
|
+
* `--item-border-color` on the item via an all-`:where()` scheme rule (0,1,0); the `html` prefix
|
|
117
|
+
* (0,1,1) outranks it. (Custom properties can't ride `styles` objects — Mantine strips them.)
|
|
118
|
+
*/
|
|
119
|
+
html .accordionItem {
|
|
120
|
+
--item-border-color: var(--vx-surface-hairline);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.accordionItem:last-of-type {
|
|
124
|
+
border-bottom: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/*
|
|
128
|
+
* Tabs: the tab-list rule (and the inactive-tab hover underline) is a layout separator — the
|
|
129
|
+
* divider token, not the heavy gray-3/dark-4 line. Mantine's scheme rules sit at (0,2,0); the
|
|
130
|
+
* `html[...]` prefix lands (0,2,1). The active underline keeps `--tabs-color` untouched.
|
|
131
|
+
*/
|
|
132
|
+
html[data-mantine-color-scheme] .tabsRoot {
|
|
133
|
+
--tab-border-color: var(--vx-divider);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/*
|
|
137
|
+
* Table: `--table-border-color` drives row separators AND the opt-in `withTableBorder` outer
|
|
138
|
+
* border — both drop to the hairline. Mantine's all-`:where()` scheme rule is (0,1,0); `html`
|
|
139
|
+
* prefix wins at (0,1,1).
|
|
140
|
+
*/
|
|
141
|
+
html .tableRoot {
|
|
142
|
+
--table-border-color: var(--vx-surface-hairline);
|
|
143
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 inputWrapper: string
|
|
7
|
+
readonly input: string
|
|
8
|
+
readonly buttonRoot: string
|
|
9
|
+
readonly actionIconRoot: string
|
|
10
|
+
readonly checkboxCardRoot: string
|
|
11
|
+
readonly radioCardRoot: string
|
|
12
|
+
readonly chipLabel: string
|
|
13
|
+
readonly accordionItem: string
|
|
14
|
+
readonly tabsRoot: string
|
|
15
|
+
readonly tableRoot: string
|
|
16
|
+
}
|
|
17
|
+
export default classes
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Floating-layer interaction states that the theme's flat `styles` objects can't express (they
|
|
3
|
+
* take inline properties only — a `:hover` selector there throws). Wired via `classNames` in
|
|
4
|
+
* theme/index.ts so they reach every Modal / Drawer render path — same pattern as
|
|
5
|
+
* nav-link.module.css and segmented-control.module.css. (Menu-item hover needs no rule here:
|
|
6
|
+
* Mantine's hover rule reads the `--menu-item-hover` var, set inline via `styles.item`.)
|
|
7
|
+
*
|
|
8
|
+
* Ghost close button (Modal / Drawer headers) — the ghost-icon idiom (docs/DESIGN-SPEC.md §5):
|
|
9
|
+
* transparent at rest, faint glyph, hover ink-6% + ink, radius 6. `!important` for the same reason
|
|
10
|
+
* as the shell's `.ghostIcon`: these compete with Mantine's own compiled CloseButton rules
|
|
11
|
+
* (`:where(scheme) .m_*` rest color / `:hover` fill) at equal specificity, and the cascade
|
|
12
|
+
* position of a CSS module relative to Mantine's stylesheet isn't guaranteed by a consumer's
|
|
13
|
+
* bundler.
|
|
14
|
+
*/
|
|
15
|
+
.closeButton {
|
|
16
|
+
color: var(--vx-faint) !important;
|
|
17
|
+
border-radius: 6px !important;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.closeButton:hover {
|
|
21
|
+
background-color: color-mix(in srgb, var(--vx-ink) 6%, transparent) !important;
|
|
22
|
+
color: var(--vx-ink) !important;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/*
|
|
26
|
+
* Menu item hover/focus/keyboard-active — the ink-6% ghost tint (docs/DESIGN-SPEC.md §5), replacing
|
|
27
|
+
* Mantine's grey-step fill. Mantine's own rule is all-`:where()` (specificity 0,1,0), so this
|
|
28
|
+
* (0,2,0) wins deterministically without `!important`. (An inline `--menu-item-hover` var through
|
|
29
|
+
* `styles.item` was tried first — Mantine strips custom properties from `styles` objects.)
|
|
30
|
+
*/
|
|
31
|
+
.menuItem:hover:not(:disabled):not([data-disabled]),
|
|
32
|
+
.menuItem:focus:not(:disabled):not([data-disabled]),
|
|
33
|
+
.menuItem[data-menu-active]:not(:disabled):not([data-disabled]) {
|
|
34
|
+
background-color: color-mix(in srgb, var(--vx-ink) 6%, transparent);
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
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 closeButton: string
|
|
7
|
+
readonly menuItem: string
|
|
8
|
+
}
|
|
9
|
+
export default classes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CSSVariablesResolver, MantineThemeOverride } from '@mantine/core';
|
|
2
|
+
/**
|
|
3
|
+
* Basalt base theme — Mantine `createTheme` bound to the Basalt zinc palette.
|
|
4
|
+
*
|
|
5
|
+
* Inputs keep `size: 'md'` for GEOMETRY (42px height, padding), while their FONT-SIZE is floored
|
|
6
|
+
* at 16px by the `styles.css` rule — Safari zooms the viewport when a focused input computes below
|
|
7
|
+
* 16px. Splitting the two is deliberate: pinning `size: 'lg'` to reach a 16px font would drag a
|
|
8
|
+
* 50px input height along with it. The floor is `max(16px, …)`, so it never clamps a deliberately
|
|
9
|
+
* LARGER input down, and — being a CSS floor on the element rather than a per-component
|
|
10
|
+
* `defaultProps` — it covers every input Mantine ships (Autocomplete, MultiSelect, TagsInput,
|
|
11
|
+
* PinInput, …) plus any consumer that passes an explicit `size="xs"`. Enumerating components in
|
|
12
|
+
* `defaultProps` could never do that; the previous attempt missed seven of them.
|
|
13
|
+
*/
|
|
14
|
+
export declare const baseTheme: MantineThemeOverride;
|
|
15
|
+
export declare const cssVariablesResolver: CSSVariablesResolver;
|
|
16
|
+
/**
|
|
17
|
+
* Build the Basalt theme, optionally merged with consumer overrides. Overrides win on conflict
|
|
18
|
+
* (Mantine `mergeThemeOverrides` is last-wins), so a consumer can retune any field without
|
|
19
|
+
* forking the base.
|
|
20
|
+
*/
|
|
21
|
+
export declare function createBasaltTheme(overrides?: MantineThemeOverride): MantineThemeOverride;
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EACV,oBAAoB,EAGpB,oBAAoB,EAErB,MAAM,eAAe,CAAA;AA0NtB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,SAAS,EAAE,oBAsftB,CAAA;AAsEF,eAAO,MAAM,oBAAoB,EAAE,oBAoDjC,CAAA;AAEF;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,CAAC,EAAE,oBAAoB,GAAG,oBAAoB,CAExF"}
|