basalt-ui 1.41.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +46 -43
- package/CHANGELOG.md +535 -518
- package/MIGRATING.md +945 -37
- package/README.md +171 -366
- package/agent/rules/basalt-batteries.md +19 -74
- package/agent/rules/basalt-charts.md +21 -95
- package/agent/rules/basalt-controls.md +23 -131
- package/agent/rules/basalt-mantine.md +26 -99
- package/agent/rules/basalt-state.md +21 -103
- package/agent/rules/basalt-tokens.md +33 -114
- package/agent/skills/basalt-app/SKILL.md +229 -72
- package/agent/skills/basalt-charts/SKILL.md +23 -57
- package/agent/skills/basalt-design/SKILL.md +12 -70
- package/agent/templates/AGENTS-block.md.tpl +16 -26
- package/agent/templates/DESIGN.md.tpl +1 -1
- package/agent/templates/__root.tpl +9 -16
- package/agent/templates/main.tpl +21 -0
- package/agent/templates/nav.tpl +18 -0
- package/configs/oxlint-basalt.json +4 -10
- package/configs/oxlint-plugin.js +465 -844
- package/configs/oxlint-plugin.test.ts +661 -709
- package/configs/oxlint.json +10 -2
- package/dist/agent/ai-sdk-transport.d.ts +19 -7
- package/dist/agent/ai-sdk-transport.d.ts.map +1 -1
- package/dist/agent/ai-sdk-transport.js +10 -7
- package/dist/{agent-chat → agent/chat}/composer.d.ts +16 -16
- package/dist/agent/chat/composer.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/composer.js +10 -9
- package/dist/{agent-chat → agent/chat}/message-affordances.d.ts +7 -6
- package/dist/agent/chat/message-affordances.d.ts.map +1 -0
- package/dist/agent/chat/relative-time.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/thread-feed-row.d.ts +18 -16
- package/dist/agent/chat/thread-feed-row.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/thread-feed-row.js +12 -11
- package/dist/{agent-chat → agent/chat}/thread-feed.d.ts +8 -8
- package/dist/agent/chat/thread-feed.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/thread-feed.js +12 -10
- package/dist/{agent-chat → agent/chat}/thread-message.d.ts +12 -9
- package/dist/agent/chat/thread-message.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/thread-message.js +15 -13
- package/dist/{agent-chat → agent/chat}/thread-outcome-card.d.ts +2 -2
- package/dist/agent/chat/thread-outcome-card.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/thread-outcome-card.js +3 -3
- package/dist/{agent-chat → agent/chat}/tool-chip.d.ts +5 -5
- package/dist/agent/chat/tool-chip.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/tool-chip.js +4 -4
- package/dist/agent/chat/use-keyboard-inset.d.ts.map +1 -0
- package/dist/{agent-chat → agent/chat}/use-keyboard-inset.js +1 -1
- package/dist/{agent-chat → agent/chat}/virtualize.d.ts +7 -7
- package/dist/agent/chat/virtualize.d.ts.map +1 -0
- package/dist/agent/error.d.ts +31 -0
- package/dist/agent/error.d.ts.map +1 -0
- package/dist/agent/error.js +18 -0
- package/dist/agent/history.d.ts +2 -36
- package/dist/agent/history.d.ts.map +1 -1
- package/dist/agent/history.js +0 -32
- package/dist/agent/id.d.ts +4 -5
- package/dist/agent/id.d.ts.map +1 -1
- package/dist/agent/index.d.ts +19 -52
- package/dist/agent/index.d.ts.map +1 -1
- package/dist/agent/index.js +10 -32
- package/dist/agent/outcome.d.ts +3 -14
- package/dist/agent/outcome.d.ts.map +1 -1
- package/dist/agent/outcome.js +0 -30
- package/dist/agent/part-list.d.ts +3 -3
- package/dist/agent/part-list.d.ts.map +1 -1
- package/dist/agent/parts.d.ts +23 -24
- package/dist/agent/parts.d.ts.map +1 -1
- package/dist/agent/run-committer.d.ts +23 -0
- package/dist/agent/run-committer.d.ts.map +1 -0
- package/dist/agent/run-committer.js +41 -0
- package/dist/agent/run-records.d.ts +77 -0
- package/dist/agent/run-records.d.ts.map +1 -0
- package/dist/agent/run-records.js +69 -0
- package/dist/agent/thread.d.ts +23 -47
- package/dist/agent/thread.d.ts.map +1 -1
- package/dist/agent/thread.js +3 -134
- package/dist/agent/transport.d.ts +6 -69
- package/dist/agent/transport.d.ts.map +1 -1
- package/dist/agent/transport.js +0 -18
- package/dist/agent/use-agent-thread-runs.d.ts +63 -26
- package/dist/agent/use-agent-thread-runs.d.ts.map +1 -1
- package/dist/agent/use-agent-thread-runs.js +202 -66
- package/dist/charts/BandStrip.d.ts +46 -0
- package/dist/charts/BandStrip.d.ts.map +1 -0
- package/dist/charts/BandStrip.js +151 -0
- package/dist/charts/Bars.d.ts +19 -0
- package/dist/charts/Bars.d.ts.map +1 -0
- package/dist/charts/Bars.js +77 -0
- package/dist/charts/CartesianChart.d.ts +57 -0
- package/dist/charts/CartesianChart.d.ts.map +1 -0
- package/dist/charts/CartesianChart.js +121 -0
- package/dist/charts/ChartCard.d.ts +34 -0
- package/dist/charts/ChartCard.d.ts.map +1 -0
- package/dist/charts/ChartCard.js +115 -0
- package/dist/charts/Donut.d.ts +25 -0
- package/dist/charts/Donut.d.ts.map +1 -0
- package/dist/charts/Donut.js +191 -0
- package/dist/charts/DualPanel.d.ts +47 -0
- package/dist/charts/DualPanel.d.ts.map +1 -0
- package/dist/charts/DualPanel.js +214 -0
- package/dist/charts/Heatmap.d.ts +41 -0
- package/dist/charts/Heatmap.d.ts.map +1 -0
- package/dist/charts/Heatmap.js +216 -0
- package/dist/charts/Lines.d.ts +11 -0
- package/dist/charts/Lines.d.ts.map +1 -0
- package/dist/charts/Lines.js +114 -0
- package/dist/charts/MirroredBars.d.ts +44 -0
- package/dist/charts/MirroredBars.d.ts.map +1 -0
- package/dist/charts/MirroredBars.js +190 -0
- package/dist/charts/Sparkline.d.ts +22 -0
- package/dist/charts/Sparkline.d.ts.map +1 -0
- package/dist/charts/Sparkline.js +129 -0
- package/dist/charts/StackedArea.d.ts +15 -0
- package/dist/charts/StackedArea.d.ts.map +1 -0
- package/dist/charts/StackedArea.js +46 -0
- package/dist/charts/box.d.ts +38 -0
- package/dist/charts/box.d.ts.map +1 -0
- package/dist/charts/box.js +72 -0
- package/dist/charts/card-context.d.ts +3 -0
- package/dist/charts/card-context.d.ts.map +1 -0
- package/dist/charts/card-context.js +7 -0
- package/dist/charts/chart-box.module.css +64 -0
- package/{src/content/article-card.module.css.d.ts → dist/charts/chart-box.module.css.d.ts} +5 -9
- package/dist/charts/chart-card.module.css +25 -0
- package/dist/{dashboard/widget-grid.module.css.d.ts → charts/chart-card.module.css.d.ts} +1 -3
- package/dist/charts/chart-legend.module.css +38 -0
- package/{src/dashboard/widget-grid.module.css.d.ts → dist/charts/chart-legend.module.css.d.ts} +3 -3
- package/dist/charts/compile.d.ts +62 -0
- package/dist/charts/compile.d.ts.map +1 -0
- package/dist/charts/compile.js +386 -0
- package/dist/charts/cursor.d.ts +50 -0
- package/dist/charts/cursor.d.ts.map +1 -0
- package/dist/charts/cursor.js +157 -0
- package/dist/charts/curves.d.ts +12 -0
- package/dist/charts/curves.d.ts.map +1 -0
- package/dist/charts/curves.js +86 -0
- package/dist/charts/donut.module.css +54 -0
- package/dist/{content/article-card.module.css.d.ts → charts/donut.module.css.d.ts} +2 -9
- package/dist/charts/host.d.ts +17 -0
- package/dist/charts/host.d.ts.map +1 -0
- package/dist/charts/host.js +35 -0
- package/dist/charts/index.d.ts +18 -53
- package/dist/charts/index.d.ts.map +1 -1
- package/dist/charts/index.js +17 -189
- package/dist/charts/legend.d.ts +23 -0
- package/dist/charts/legend.d.ts.map +1 -0
- package/dist/charts/legend.js +160 -0
- package/dist/charts/marks.d.ts +25 -0
- package/dist/charts/marks.d.ts.map +1 -0
- package/dist/charts/marks.js +128 -0
- package/dist/charts/panel.d.ts +56 -0
- package/dist/charts/panel.d.ts.map +1 -0
- package/dist/charts/panel.js +123 -0
- package/dist/charts/scales.d.ts +44 -0
- package/dist/charts/scales.d.ts.map +1 -0
- package/dist/charts/scales.js +163 -0
- package/dist/charts/sizing.d.ts +12 -0
- package/dist/charts/sizing.d.ts.map +1 -0
- package/dist/charts/sizing.js +33 -0
- package/dist/charts/state.d.ts +17 -0
- package/dist/charts/state.d.ts.map +1 -0
- package/dist/charts/state.js +53 -0
- package/dist/charts/theme.d.ts +38 -19
- package/dist/charts/theme.d.ts.map +1 -1
- package/dist/charts/theme.js +48 -26
- package/dist/charts/types.d.ts +227 -0
- package/dist/charts/types.d.ts.map +1 -0
- package/dist/charts/types.js +4 -0
- package/dist/cli/audit-allows.d.ts +4 -17
- package/dist/cli/audit-allows.d.ts.map +1 -1
- package/dist/cli/config.d.ts +14 -43
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/doctor-upgrade.d.ts +31 -0
- package/dist/cli/doctor-upgrade.d.ts.map +1 -0
- package/dist/cli/doctor-upgrade.js +269 -0
- package/dist/cli/doctor.d.ts +13 -29
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +51 -9
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +2 -4
- package/dist/cli/index.d.ts +48 -172
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +39 -132
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +43 -37
- package/dist/cli/sync.d.ts +5 -21
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +4 -23
- package/dist/cli/tokens-css.d.ts +7 -28
- package/dist/cli/tokens-css.d.ts.map +1 -1
- package/dist/commands/ShortcutsHelp.d.ts.map +1 -1
- package/dist/commands/ShortcutsHelp.js +4 -5
- package/dist/commands/define-commands.d.ts +15 -31
- package/dist/commands/define-commands.d.ts.map +1 -1
- package/dist/commands/define-commands.js +1 -11
- package/dist/commands/define-overlays.d.ts +5 -19
- package/dist/commands/define-overlays.d.ts.map +1 -1
- package/dist/commands/define-overlays.js +3 -11
- package/dist/commands/index.d.ts +10 -40
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +9 -46
- package/dist/{notifications → commands/notifications}/bell.d.ts +1 -1
- package/dist/commands/notifications/bell.d.ts.map +1 -0
- package/dist/{notifications → commands/notifications}/center.d.ts +2 -2
- package/dist/commands/notifications/center.d.ts.map +1 -0
- package/dist/{notifications → commands/notifications}/center.js +2 -2
- package/dist/{notifications → commands/notifications}/define-notifications.d.ts +3 -3
- package/dist/commands/notifications/define-notifications.d.ts.map +1 -0
- package/dist/commands/notifications/notify.d.ts +44 -0
- package/dist/commands/notifications/notify.d.ts.map +1 -0
- package/dist/commands/notifications/notify.js +79 -0
- package/dist/{notifications → commands/notifications}/store.d.ts +2 -0
- package/dist/commands/notifications/store.d.ts.map +1 -0
- package/dist/{notifications → commands/notifications}/store.js +4 -0
- package/dist/commands/projectors.d.ts +1 -131
- package/dist/commands/projectors.d.ts.map +1 -1
- package/dist/commands/projectors.js +2 -73
- package/dist/commands/shell-bridge.d.ts +3 -3
- package/dist/commands/shortcut-format.d.ts +5 -4
- package/dist/commands/shortcut-format.d.ts.map +1 -1
- package/dist/common/errors.d.ts +3 -3
- package/dist/common/use-measured-widths.d.ts.map +1 -1
- package/dist/common/use-measured-widths.js +5 -3
- package/dist/common/validate.d.ts +2 -2
- package/dist/content/article-layout.d.ts.map +1 -1
- package/dist/content/article-layout.js +3 -3
- package/dist/content/article-model.d.ts +1 -46
- package/dist/content/article-model.d.ts.map +1 -1
- package/dist/content/article-model.js +1 -29
- package/dist/content/index.d.ts +11 -41
- package/dist/content/index.d.ts.map +1 -1
- package/dist/content/index.js +3 -35
- package/dist/content/markdown.d.ts +1 -1
- package/dist/content/markdown.d.ts.map +1 -1
- package/dist/content/markdown.js +1 -1
- package/dist/content/mermaid.d.ts.map +1 -1
- package/dist/content/mermaid.js +7 -7
- package/dist/content/slug.d.ts +1 -8
- package/dist/content/slug.d.ts.map +1 -1
- package/dist/content/slug.js +1 -8
- package/dist/content/url-hardening.d.ts +2 -2
- package/dist/content/url-hardening.d.ts.map +1 -1
- package/dist/content/url-hardening.js +2 -0
- package/dist/controls/actions.d.ts +16 -1
- package/dist/controls/actions.d.ts.map +1 -1
- package/dist/controls/enum-filter.d.ts +1 -1
- package/dist/controls/enum-filter.d.ts.map +1 -1
- package/dist/controls/filter-context.d.ts.map +1 -1
- package/dist/controls/filter-context.js +3 -1
- package/dist/controls/filter-set.js +4 -6
- package/dist/controls/form-layout.d.ts +1 -1
- package/dist/controls/form-layout.d.ts.map +1 -1
- package/dist/controls/form-layout.js +1 -1
- package/dist/controls/glyphs.d.ts +0 -2
- package/dist/controls/glyphs.d.ts.map +1 -1
- package/dist/controls/glyphs.js +0 -7
- package/dist/controls/index.d.ts +12 -17
- package/dist/controls/index.d.ts.map +1 -1
- package/dist/controls/index.js +5 -39
- package/dist/controls/multi-select-filter.d.ts +4 -3
- package/dist/controls/multi-select-filter.d.ts.map +1 -1
- package/dist/controls/number-filter.d.ts +4 -3
- package/dist/controls/number-filter.d.ts.map +1 -1
- package/dist/controls/number-filter.js +3 -1
- package/dist/controls/range-filter.d.ts +4 -3
- package/dist/controls/range-filter.d.ts.map +1 -1
- package/dist/controls/search-filter.d.ts +4 -3
- package/dist/controls/search-filter.d.ts.map +1 -1
- package/dist/controls/search-filter.js +19 -14
- package/dist/controls/select-filter.d.ts +4 -3
- package/dist/controls/select-filter.d.ts.map +1 -1
- package/dist/controls/sync-button.d.ts.map +1 -1
- package/dist/controls/sync-button.js +12 -15
- package/dist/controls/toggle-filter.d.ts +4 -3
- package/dist/controls/toggle-filter.d.ts.map +1 -1
- package/dist/controls/uncontrolled.d.ts +12 -0
- package/dist/controls/uncontrolled.d.ts.map +1 -0
- package/dist/controls/view-tabs.d.ts +2 -2
- package/dist/controls/view-tabs.d.ts.map +1 -1
- package/dist/controls-dates/index.d.ts +0 -1
- package/dist/controls-dates/index.d.ts.map +1 -1
- package/dist/dashboard/index.d.ts +7 -9
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +3 -23
- package/dist/dashboard/section.d.ts +4 -6
- package/dist/dashboard/section.d.ts.map +1 -1
- package/dist/dashboard/section.js +4 -10
- package/dist/dashboard/stat-card.d.ts +4 -4
- package/dist/dashboard/stat-card.d.ts.map +1 -1
- package/dist/dashboard/stat-card.js +3 -3
- package/dist/dashboard/widget-header.module.css +9 -7
- package/dist/dev-dock.d.ts.map +1 -1
- package/dist/dev-dock.js +6 -1
- package/dist/format/date.d.ts +0 -34
- package/dist/format/date.d.ts.map +1 -1
- package/dist/format/date.js +0 -54
- package/dist/format/index.d.ts +7 -22
- package/dist/format/index.d.ts.map +1 -1
- package/dist/format/index.js +2 -43
- package/dist/format/number.d.ts +3 -14
- package/dist/format/number.d.ts.map +1 -1
- package/dist/format/number.js +0 -13
- package/dist/format/shared.d.ts +2 -3
- package/dist/format/shared.d.ts.map +1 -1
- package/dist/forms/index.d.ts +0 -11
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/index.js +1 -14
- package/dist/guard/index.d.ts +6 -21
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +27 -115
- package/dist/guard/types.d.ts +7 -18
- package/dist/guard/types.d.ts.map +1 -1
- package/dist/index.d.ts +16 -48
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +21 -117
- package/dist/provider/create-router.d.ts +44 -0
- package/dist/provider/create-router.d.ts.map +1 -0
- package/dist/provider/create-router.js +62 -0
- package/dist/provider/hotkeys.d.ts +8 -0
- package/dist/provider/hotkeys.d.ts.map +1 -0
- package/dist/provider/hotkeys.js +50 -0
- package/dist/provider/index.d.ts +33 -110
- package/dist/provider/index.d.ts.map +1 -1
- package/dist/provider/index.js +182 -82
- package/dist/provider/lab-theme.d.ts.map +1 -1
- package/dist/provider/route-transition.d.ts +76 -0
- package/dist/provider/route-transition.d.ts.map +1 -0
- package/dist/provider/route-transition.js +98 -0
- package/dist/provider/spotlight-actions.d.ts +10 -0
- package/dist/provider/spotlight-actions.d.ts.map +1 -0
- package/dist/provider/spotlight-actions.js +55 -0
- package/dist/provider/test-router.d.ts +6 -0
- package/dist/provider/test-router.d.ts.map +1 -0
- package/dist/provider/test-router.js +18 -0
- package/dist/query-client.d.ts +4 -20
- package/dist/query-client.d.ts.map +1 -1
- package/dist/query-client.js +2 -2
- package/dist/router-tanstack/index.d.ts +18 -64
- package/dist/router-tanstack/index.d.ts.map +1 -1
- package/dist/router-tanstack/index.js +2 -16
- package/dist/router-tanstack/nav.d.ts +12 -1
- package/dist/router-tanstack/nav.d.ts.map +1 -1
- package/dist/router-tanstack/nav.js +8 -1
- package/dist/router-tanstack/search-store.d.ts +1 -1
- package/dist/router-tanstack/search-store.d.ts.map +1 -1
- package/dist/router-tanstack/use-nav.d.ts +8 -9
- package/dist/router-tanstack/use-nav.d.ts.map +1 -1
- package/dist/router-tanstack/use-nav.js +20 -1
- package/dist/shell/app-mobile-nav.d.ts.map +1 -1
- package/dist/shell/app-sidebar.js +1 -1
- package/dist/shell/index.d.ts +31 -10
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +14 -3
- package/dist/shell/page-aside.d.ts +2 -2
- package/dist/shell/page-aside.d.ts.map +1 -1
- package/dist/shell/page-aside.js +31 -12
- package/dist/shell/page-bar.d.ts +2 -2
- package/dist/shell/page-bar.d.ts.map +1 -1
- package/dist/shell/page-bar.js +1 -1
- package/dist/state.d.ts +10 -12
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +4 -6
- package/dist/styles.css +107 -7
- package/dist/surfaces.d.ts +28 -103
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +54 -143
- package/dist/{data → table}/data-table-state.d.ts +1 -1
- package/dist/table/data-table-state.d.ts.map +1 -0
- package/dist/{data → table}/data-table-state.js +4 -3
- package/dist/{data → table}/data-table.d.ts +28 -49
- package/dist/table/data-table.d.ts.map +1 -0
- package/dist/{data → table}/data-table.js +74 -60
- package/dist/table/index.d.ts +18 -0
- package/dist/table/index.d.ts.map +1 -0
- package/dist/{data/table.js → table/index.js} +1 -1
- package/dist/table/query-branch.d.ts.map +1 -0
- package/dist/table/table-features.d.ts +69 -0
- package/dist/table/table-features.d.ts.map +1 -0
- package/dist/table/table-features.js +49 -0
- package/dist/telemetry.d.ts +77 -0
- package/dist/telemetry.d.ts.map +1 -0
- package/dist/telemetry.js +33 -0
- package/dist/theme/index.d.ts +10 -21
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +3 -14
- package/dist/theme/theme-toggle.d.ts.map +1 -1
- package/dist/theme/theme-toggle.js +7 -33
- package/dist/theme/theme-toggle.module.css +30 -0
- package/dist/theme/theme-toggle.module.css.d.ts +10 -0
- package/dist/theme-lab/derive-controls.d.ts.map +1 -1
- package/dist/theme-lab/derive-controls.js +5 -3
- package/dist/theme-lab/derive-state.d.ts.map +1 -1
- package/dist/theme-lab/derive-state.js +2 -1
- package/dist/tokens/core.d.ts +360 -0
- package/dist/tokens/core.d.ts.map +1 -0
- package/dist/tokens/core.js +708 -0
- package/dist/tokens/derive.d.ts +1 -1
- package/dist/tokens/derive.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +5 -373
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +8 -700
- package/dist/tokens/palette.d.ts +2 -6
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +1 -4
- package/dist/vite.d.ts +4 -3
- package/dist/vite.d.ts.map +1 -1
- package/llms.txt +43 -85
- package/package.json +77 -170
- package/src/agent/ai-sdk-transport.ts +57 -37
- package/src/{agent-chat → agent/chat}/composer.tsx +29 -30
- package/src/{agent-chat → agent/chat}/message-affordances.ts +8 -5
- package/src/{agent-chat → agent/chat}/thread-feed-row.tsx +30 -35
- package/src/{agent-chat → agent/chat}/thread-feed.tsx +40 -35
- package/src/{agent-chat → agent/chat}/thread-message.tsx +37 -35
- package/src/{agent-chat → agent/chat}/thread-outcome-card.tsx +5 -5
- package/src/{agent-chat → agent/chat}/tool-chip.tsx +12 -12
- package/src/{agent-chat → agent/chat}/use-keyboard-inset.ts +1 -1
- package/src/{agent-chat → agent/chat}/virtualize.ts +5 -5
- package/src/agent/error.ts +43 -0
- package/src/agent/history.ts +2 -107
- package/src/agent/id.ts +4 -5
- package/src/agent/index.ts +23 -112
- package/src/agent/outcome.ts +3 -56
- package/src/agent/part-list.tsx +3 -3
- package/src/agent/parts.ts +23 -22
- package/src/agent/run-committer.ts +64 -0
- package/src/agent/run-records.ts +147 -0
- package/src/agent/thread.ts +24 -231
- package/src/agent/transport.ts +6 -96
- package/src/agent/use-agent-thread-runs.ts +364 -199
- package/src/charts/BandStrip.tsx +276 -0
- package/src/charts/Bars.tsx +141 -0
- package/src/charts/CartesianChart.tsx +206 -0
- package/src/charts/ChartCard.tsx +178 -0
- package/src/charts/Donut.tsx +256 -0
- package/src/charts/DualPanel.tsx +326 -0
- package/src/charts/Heatmap.tsx +282 -0
- package/src/charts/Lines.tsx +151 -0
- package/src/charts/MirroredBars.tsx +303 -0
- package/src/charts/Sparkline.tsx +176 -0
- package/src/charts/StackedArea.tsx +80 -0
- package/src/charts/box.tsx +96 -0
- package/src/charts/card-context.ts +11 -0
- package/src/charts/chart-box.module.css +64 -0
- package/src/charts/chart-box.module.css.d.ts +12 -0
- package/src/charts/chart-card.module.css +25 -0
- package/src/charts/chart-card.module.css.d.ts +8 -0
- package/src/charts/chart-legend.module.css +38 -0
- package/src/charts/chart-legend.module.css.d.ts +10 -0
- package/src/charts/compile.ts +585 -0
- package/src/charts/cursor.ts +282 -0
- package/src/charts/curves.ts +111 -0
- package/src/charts/donut.module.css +54 -0
- package/src/charts/donut.module.css.d.ts +9 -0
- package/src/charts/host.tsx +60 -0
- package/src/charts/index.ts +41 -178
- package/src/charts/legend.tsx +204 -0
- package/src/charts/marks.ts +201 -0
- package/src/charts/panel.tsx +227 -0
- package/src/charts/scales.ts +237 -0
- package/src/charts/sizing.ts +47 -0
- package/src/charts/state.tsx +80 -0
- package/src/charts/theme.ts +65 -0
- package/src/charts/types.ts +242 -0
- package/src/cli/audit-allows.ts +8 -30
- package/src/cli/config.ts +14 -43
- package/src/cli/doctor-upgrade.ts +392 -0
- package/src/cli/doctor.ts +81 -72
- package/src/cli/help.ts +2 -4
- package/src/cli/index.ts +100 -384
- package/src/cli/init.ts +60 -51
- package/src/cli/sync.ts +13 -68
- package/src/cli/tokens-css.ts +7 -28
- package/src/commands/ShortcutsHelp.tsx +8 -9
- package/src/commands/define-commands.ts +16 -43
- package/src/commands/define-overlays.ts +12 -36
- package/src/commands/index.ts +11 -94
- package/src/{notifications → commands/notifications}/bell.tsx +2 -2
- package/src/{notifications → commands/notifications}/center.tsx +7 -5
- package/src/{notifications → commands/notifications}/define-notifications.ts +3 -3
- package/src/commands/notifications/notify.tsx +158 -0
- package/src/{notifications → commands/notifications}/store.ts +10 -2
- package/src/commands/projectors.ts +5 -225
- package/src/commands/shell-bridge.ts +5 -5
- package/src/commands/shortcut-format.ts +5 -4
- package/src/common/errors.ts +3 -3
- package/src/common/use-measured-widths.ts +6 -3
- package/src/common/validate.ts +2 -2
- package/src/content/article-layout.tsx +37 -38
- package/src/content/article-model.ts +1 -84
- package/src/content/index.ts +12 -83
- package/src/content/markdown.tsx +4 -3
- package/src/content/mermaid.tsx +9 -7
- package/src/content/slug.ts +1 -16
- package/src/content/url-hardening.ts +8 -2
- package/src/controls/actions.tsx +24 -1
- package/src/controls/enum-filter.tsx +1 -1
- package/src/controls/filter-context.tsx +3 -1
- package/src/controls/filter-set.tsx +5 -7
- package/src/controls/form-layout.tsx +2 -2
- package/src/controls/glyphs.tsx +0 -10
- package/src/controls/index.ts +13 -64
- package/src/controls/multi-select-filter.tsx +5 -4
- package/src/controls/number-filter.tsx +8 -4
- package/src/controls/range-filter.tsx +5 -4
- package/src/controls/search-filter.tsx +25 -19
- package/src/controls/select-filter.tsx +5 -4
- package/src/controls/sync-button.tsx +18 -20
- package/src/controls/toggle-filter.tsx +5 -4
- package/src/controls/uncontrolled.ts +12 -0
- package/src/controls/view-tabs.tsx +3 -3
- package/src/controls-dates/date-range-picker.tsx +1 -1
- package/src/controls-dates/index.ts +0 -1
- package/src/dashboard/index.ts +7 -48
- package/src/dashboard/section.tsx +11 -40
- package/src/dashboard/stat-card.tsx +14 -16
- package/src/dashboard/widget-header.module.css +9 -7
- package/src/dev-dock.tsx +14 -27
- package/src/format/date.ts +2 -92
- package/src/format/index.ts +7 -53
- package/src/format/number.ts +3 -26
- package/src/format/shared.ts +2 -3
- package/src/forms/index.ts +0 -23
- package/src/guard/index.ts +36 -191
- package/src/guard/types.ts +6 -19
- package/src/index.ts +30 -282
- package/src/provider/create-router.tsx +138 -0
- package/src/provider/hotkeys.ts +70 -0
- package/src/provider/index.tsx +260 -230
- package/src/provider/lab-theme.ts +3 -2
- package/src/provider/route-transition.ts +199 -0
- package/src/provider/spotlight-actions.tsx +69 -0
- package/src/provider/test-router.tsx +25 -0
- package/src/query-client.ts +4 -22
- package/src/router-tanstack/index.ts +18 -112
- package/src/router-tanstack/nav.ts +28 -2
- package/src/router-tanstack/search-store.ts +9 -2
- package/src/router-tanstack/use-nav.ts +47 -13
- package/src/shell/app-mobile-nav.tsx +3 -2
- package/src/shell/app-sidebar.tsx +1 -1
- package/src/shell/aside-docking.ts +1 -1
- package/src/shell/index.tsx +61 -20
- package/src/shell/page-aside.tsx +47 -23
- package/src/shell/page-bar.tsx +3 -3
- package/src/shell/page-title.tsx +1 -1
- package/src/state.ts +11 -37
- package/src/styles.css +107 -7
- package/src/surfaces.ts +56 -151
- package/src/{data → table}/data-table-state.ts +5 -4
- package/src/{data → table}/data-table.tsx +170 -161
- package/src/table/index.ts +18 -0
- package/src/table/table-features.ts +102 -0
- package/src/telemetry.ts +110 -0
- package/src/theme/index.ts +22 -47
- package/src/theme/theme-toggle.module.css +30 -0
- package/src/theme/theme-toggle.module.css.d.ts +10 -0
- package/src/theme/theme-toggle.tsx +15 -43
- package/src/theme-lab/derive-controls.tsx +5 -3
- package/src/theme-lab/derive-state.ts +2 -1
- package/src/tokens/core.ts +1163 -0
- package/src/tokens/derive.ts +1 -1
- package/src/tokens/index.ts +14 -1181
- package/src/tokens/palette.ts +3 -7
- package/src/vite.ts +3 -3
- package/agent/templates/query-client.ts.tpl +0 -26
- package/dist/agent/adapter.d.ts +0 -150
- package/dist/agent/adapter.d.ts.map +0 -1
- package/dist/agent/adapter.js +0 -482
- package/dist/agent/use-agent-stream.d.ts +0 -35
- package/dist/agent/use-agent-stream.d.ts.map +0 -1
- package/dist/agent/use-agent-stream.js +0 -59
- package/dist/agent-chat/composer.d.ts.map +0 -1
- package/dist/agent-chat/index.d.ts +0 -31
- package/dist/agent-chat/index.d.ts.map +0 -1
- package/dist/agent-chat/index.js +0 -19
- package/dist/agent-chat/message-affordances.d.ts.map +0 -1
- package/dist/agent-chat/relative-time.d.ts.map +0 -1
- package/dist/agent-chat/thread-detail-panel.d.ts +0 -28
- package/dist/agent-chat/thread-detail-panel.d.ts.map +0 -1
- package/dist/agent-chat/thread-detail-panel.js +0 -115
- package/dist/agent-chat/thread-feed-row.d.ts.map +0 -1
- package/dist/agent-chat/thread-feed.d.ts.map +0 -1
- package/dist/agent-chat/thread-message.d.ts.map +0 -1
- package/dist/agent-chat/thread-outcome-card.d.ts.map +0 -1
- package/dist/agent-chat/thread-workspace.d.ts +0 -44
- package/dist/agent-chat/thread-workspace.d.ts.map +0 -1
- package/dist/agent-chat/thread-workspace.js +0 -153
- package/dist/agent-chat/tool-chip.d.ts.map +0 -1
- package/dist/agent-chat/use-keyboard-inset.d.ts.map +0 -1
- package/dist/agent-chat/virtualize.d.ts.map +0 -1
- package/dist/charts/cursor/resolve.d.ts +0 -75
- package/dist/charts/cursor/resolve.d.ts.map +0 -1
- package/dist/charts/cursor/resolve.js +0 -91
- package/dist/charts/cursor/scope.d.ts +0 -20
- package/dist/charts/cursor/scope.d.ts.map +0 -1
- package/dist/charts/cursor/scope.js +0 -20
- package/dist/charts/cursor/store.d.ts +0 -35
- package/dist/charts/cursor/store.d.ts.map +0 -1
- package/dist/charts/cursor/store.js +0 -25
- package/dist/charts/cursor/touch-pin.d.ts +0 -45
- package/dist/charts/cursor/touch-pin.d.ts.map +0 -1
- package/dist/charts/cursor/touch-pin.js +0 -79
- package/dist/charts/hooks/use-discrete-cursor.d.ts +0 -66
- package/dist/charts/hooks/use-discrete-cursor.d.ts.map +0 -1
- package/dist/charts/hooks/use-discrete-cursor.js +0 -198
- package/dist/charts/hooks/use-hysteresis.d.ts +0 -18
- package/dist/charts/hooks/use-hysteresis.d.ts.map +0 -1
- package/dist/charts/hooks/use-hysteresis.js +0 -12
- package/dist/charts/hooks/useBandPlot.d.ts +0 -145
- package/dist/charts/hooks/useBandPlot.d.ts.map +0 -1
- package/dist/charts/hooks/useBandPlot.js +0 -178
- package/dist/charts/hooks/useChartCursor.d.ts +0 -75
- package/dist/charts/hooks/useChartCursor.d.ts.map +0 -1
- package/dist/charts/hooks/useChartCursor.js +0 -200
- package/dist/charts/hooks/useChartSize.d.ts +0 -29
- package/dist/charts/hooks/useChartSize.d.ts.map +0 -1
- package/dist/charts/hooks/useChartSize.js +0 -8
- package/dist/charts/kinds/BandStrip.d.ts +0 -132
- package/dist/charts/kinds/BandStrip.d.ts.map +0 -1
- package/dist/charts/kinds/BandStrip.js +0 -241
- package/dist/charts/kinds/Bars.d.ts +0 -141
- package/dist/charts/kinds/Bars.d.ts.map +0 -1
- package/dist/charts/kinds/Bars.js +0 -343
- package/dist/charts/kinds/Donut.d.ts +0 -77
- package/dist/charts/kinds/Donut.d.ts.map +0 -1
- package/dist/charts/kinds/Donut.js +0 -245
- package/dist/charts/kinds/DualPanel.d.ts +0 -111
- package/dist/charts/kinds/DualPanel.d.ts.map +0 -1
- package/dist/charts/kinds/DualPanel.js +0 -471
- package/dist/charts/kinds/Heatmap.d.ts +0 -85
- package/dist/charts/kinds/Heatmap.d.ts.map +0 -1
- package/dist/charts/kinds/Heatmap.js +0 -243
- package/dist/charts/kinds/MirroredBars.d.ts +0 -98
- package/dist/charts/kinds/MirroredBars.d.ts.map +0 -1
- package/dist/charts/kinds/MirroredBars.js +0 -292
- package/dist/charts/kinds/MultiLine.d.ts +0 -87
- package/dist/charts/kinds/MultiLine.d.ts.map +0 -1
- package/dist/charts/kinds/MultiLine.js +0 -176
- package/dist/charts/kinds/StackedArea.d.ts +0 -73
- package/dist/charts/kinds/StackedArea.d.ts.map +0 -1
- package/dist/charts/kinds/StackedArea.js +0 -135
- package/dist/charts/kinds/ZonedLine.d.ts +0 -97
- package/dist/charts/kinds/ZonedLine.d.ts.map +0 -1
- package/dist/charts/kinds/ZonedLine.js +0 -155
- package/dist/charts/kinds/band-chrome.d.ts +0 -31
- package/dist/charts/kinds/band-chrome.d.ts.map +0 -1
- package/dist/charts/kinds/band-chrome.js +0 -71
- package/dist/charts/kinds/donut-layout.d.ts +0 -47
- package/dist/charts/kinds/donut-layout.d.ts.map +0 -1
- package/dist/charts/kinds/donut-layout.js +0 -52
- package/dist/charts/layout/auto-margin.d.ts +0 -122
- package/dist/charts/layout/auto-margin.d.ts.map +0 -1
- package/dist/charts/layout/auto-margin.js +0 -81
- package/dist/charts/layout/end-labels.d.ts +0 -64
- package/dist/charts/layout/end-labels.d.ts.map +0 -1
- package/dist/charts/layout/end-labels.js +0 -76
- package/dist/charts/layout/log-ticks.d.ts +0 -27
- package/dist/charts/layout/log-ticks.d.ts.map +0 -1
- package/dist/charts/layout/log-ticks.js +0 -42
- package/dist/charts/primitives/AreaGradient.d.ts +0 -18
- package/dist/charts/primitives/AreaGradient.d.ts.map +0 -1
- package/dist/charts/primitives/AreaGradient.js +0 -13
- package/dist/charts/primitives/Axes.d.ts +0 -83
- package/dist/charts/primitives/Axes.d.ts.map +0 -1
- package/dist/charts/primitives/Axes.js +0 -168
- package/dist/charts/primitives/CartesianChart.d.ts +0 -257
- package/dist/charts/primitives/CartesianChart.d.ts.map +0 -1
- package/dist/charts/primitives/CartesianChart.js +0 -549
- package/dist/charts/primitives/ChartCard.d.ts +0 -66
- package/dist/charts/primitives/ChartCard.d.ts.map +0 -1
- package/dist/charts/primitives/ChartCard.js +0 -143
- package/dist/charts/primitives/ChartFrame.d.ts +0 -156
- package/dist/charts/primitives/ChartFrame.d.ts.map +0 -1
- package/dist/charts/primitives/ChartFrame.js +0 -241
- package/dist/charts/primitives/ChartLegend.d.ts +0 -67
- package/dist/charts/primitives/ChartLegend.d.ts.map +0 -1
- package/dist/charts/primitives/ChartLegend.js +0 -292
- package/dist/charts/primitives/ChartPending.d.ts +0 -113
- package/dist/charts/primitives/ChartPending.d.ts.map +0 -1
- package/dist/charts/primitives/ChartPending.js +0 -117
- package/dist/charts/primitives/ChartTooltip.d.ts +0 -59
- package/dist/charts/primitives/ChartTooltip.d.ts.map +0 -1
- package/dist/charts/primitives/ChartTooltip.js +0 -197
- package/dist/charts/primitives/Crosshair.d.ts +0 -26
- package/dist/charts/primitives/Crosshair.d.ts.map +0 -1
- package/dist/charts/primitives/Crosshair.js +0 -23
- package/dist/charts/primitives/HatchPattern.d.ts +0 -31
- package/dist/charts/primitives/HatchPattern.d.ts.map +0 -1
- package/dist/charts/primitives/HatchPattern.js +0 -31
- package/dist/charts/primitives/HoverOverlay.d.ts +0 -45
- package/dist/charts/primitives/HoverOverlay.d.ts.map +0 -1
- package/dist/charts/primitives/HoverOverlay.js +0 -72
- package/dist/charts/primitives/HoverOverlay.module.css +0 -13
- package/dist/charts/primitives/HoverOverlay.module.css.d.ts +0 -8
- package/dist/charts/primitives/XZoneRects.d.ts +0 -54
- package/dist/charts/primitives/XZoneRects.d.ts.map +0 -1
- package/dist/charts/primitives/XZoneRects.js +0 -65
- package/dist/charts/primitives/ZoneRects.d.ts +0 -38
- package/dist/charts/primitives/ZoneRects.d.ts.map +0 -1
- package/dist/charts/primitives/ZoneRects.js +0 -30
- package/dist/charts/primitives/chart-card-context.d.ts +0 -33
- package/dist/charts/primitives/chart-card-context.d.ts.map +0 -1
- package/dist/charts/primitives/chart-card-context.js +0 -18
- package/dist/charts/primitives/chart-frame-layout.d.ts +0 -185
- package/dist/charts/primitives/chart-frame-layout.d.ts.map +0 -1
- package/dist/charts/primitives/chart-frame-layout.js +0 -175
- package/dist/charts/primitives/chart-layout.d.ts +0 -112
- package/dist/charts/primitives/chart-layout.d.ts.map +0 -1
- package/dist/charts/primitives/chart-layout.js +0 -175
- package/dist/charts/primitives/chart-tier.d.ts +0 -16
- package/dist/charts/primitives/chart-tier.d.ts.map +0 -1
- package/dist/charts/primitives/chart-tier.js +0 -44
- package/dist/charts/primitives/legend-disclosure.d.ts +0 -27
- package/dist/charts/primitives/legend-disclosure.d.ts.map +0 -1
- package/dist/charts/primitives/legend-disclosure.js +0 -153
- package/dist/charts/series.d.ts +0 -189
- package/dist/charts/series.d.ts.map +0 -1
- package/dist/charts/series.js +0 -84
- package/dist/charts/sparklines/BarSparkline.d.ts +0 -37
- package/dist/charts/sparklines/BarSparkline.d.ts.map +0 -1
- package/dist/charts/sparklines/BarSparkline.js +0 -53
- package/dist/charts/sparklines/LineSparkline.d.ts +0 -15
- package/dist/charts/sparklines/LineSparkline.d.ts.map +0 -1
- package/dist/charts/sparklines/LineSparkline.js +0 -51
- package/dist/charts/sparklines/index.d.ts +0 -3
- package/dist/charts/sparklines/index.d.ts.map +0 -1
- package/dist/charts/sparklines/index.js +0 -6
- package/dist/charts/utils/domain.d.ts +0 -35
- package/dist/charts/utils/domain.d.ts.map +0 -1
- package/dist/charts/utils/domain.js +0 -12
- package/dist/charts/utils/format.d.ts +0 -8
- package/dist/charts/utils/format.d.ts.map +0 -1
- package/dist/charts/utils/format.js +0 -20
- package/dist/charts/utils/measure-text.d.ts +0 -25
- package/dist/charts/utils/measure-text.d.ts.map +0 -1
- package/dist/charts/utils/measure-text.js +0 -64
- package/dist/charts/utils/ticks.d.ts +0 -103
- package/dist/charts/utils/ticks.d.ts.map +0 -1
- package/dist/charts/utils/ticks.js +0 -92
- package/dist/commands/overlays-mount.d.ts +0 -122
- package/dist/commands/overlays-mount.d.ts.map +0 -1
- package/dist/commands/overlays-mount.js +0 -125
- package/dist/commands/useCommandHotkeys.d.ts +0 -14
- package/dist/commands/useCommandHotkeys.d.ts.map +0 -1
- package/dist/commands/useCommandHotkeys.js +0 -45
- package/dist/content/article-actions.d.ts +0 -39
- package/dist/content/article-actions.d.ts.map +0 -1
- package/dist/content/article-actions.js +0 -28
- package/dist/content/article-card.d.ts +0 -58
- package/dist/content/article-card.d.ts.map +0 -1
- package/dist/content/article-card.js +0 -79
- package/dist/content/article-card.module.css +0 -111
- package/dist/content/mdx.d.ts +0 -20
- package/dist/content/mdx.d.ts.map +0 -1
- package/dist/content/mdx.js +0 -64
- package/dist/controls/compare-filter.d.ts +0 -42
- package/dist/controls/compare-filter.d.ts.map +0 -1
- package/dist/controls/compare-filter.js +0 -38
- package/dist/controls/slider-control.d.ts +0 -36
- package/dist/controls/slider-control.d.ts.map +0 -1
- package/dist/controls/slider-control.js +0 -64
- package/dist/dashboard/widget-grid.d.ts +0 -27
- package/dist/dashboard/widget-grid.d.ts.map +0 -1
- package/dist/dashboard/widget-grid.js +0 -40
- package/dist/dashboard/widget-grid.module.css +0 -69
- package/dist/data/data-table-state.d.ts.map +0 -1
- package/dist/data/data-table.d.ts.map +0 -1
- package/dist/data/query-branch.d.ts.map +0 -1
- package/dist/data/table.d.ts +0 -24
- package/dist/data/table.d.ts.map +0 -1
- package/dist/data/virtual-list.d.ts +0 -133
- package/dist/data/virtual-list.d.ts.map +0 -1
- package/dist/data/virtual-list.js +0 -157
- package/dist/data/virtual.d.ts +0 -21
- package/dist/data/virtual.d.ts.map +0 -1
- package/dist/data/virtual.js +0 -4
- package/dist/forms/FormErrorSummary.d.ts +0 -30
- package/dist/forms/FormErrorSummary.d.ts.map +0 -1
- package/dist/forms/FormErrorSummary.js +0 -30
- package/dist/forms/use-field-array.d.ts +0 -60
- package/dist/forms/use-field-array.d.ts.map +0 -1
- package/dist/forms/use-field-array.js +0 -20
- package/dist/forms/use-form-draft.d.ts +0 -76
- package/dist/forms/use-form-draft.d.ts.map +0 -1
- package/dist/forms/use-form-draft.js +0 -92
- package/dist/forms/use-form-submit.d.ts +0 -88
- package/dist/forms/use-form-submit.d.ts.map +0 -1
- package/dist/forms/use-form-submit.js +0 -63
- package/dist/notifications/bell.d.ts.map +0 -1
- package/dist/notifications/center.d.ts.map +0 -1
- package/dist/notifications/define-notifications.d.ts.map +0 -1
- package/dist/notifications/index.d.ts +0 -40
- package/dist/notifications/index.d.ts.map +0 -1
- package/dist/notifications/index.js +0 -54
- package/dist/notifications/mount-guard.d.ts +0 -8
- package/dist/notifications/mount-guard.d.ts.map +0 -1
- package/dist/notifications/mount-guard.js +0 -18
- package/dist/notifications/notify.d.ts +0 -149
- package/dist/notifications/notify.d.ts.map +0 -1
- package/dist/notifications/notify.js +0 -171
- package/dist/notifications/store.d.ts.map +0 -1
- package/dist/provider/connectivity-indicator.d.ts +0 -13
- package/dist/provider/connectivity-indicator.d.ts.map +0 -1
- package/dist/provider/connectivity-indicator.js +0 -205
- package/dist/provider/connectivity-provider.d.ts +0 -7
- package/dist/provider/connectivity-provider.d.ts.map +0 -1
- package/dist/provider/connectivity-provider.js +0 -128
- package/dist/provider/connectivity-types.d.ts +0 -36
- package/dist/provider/connectivity-types.d.ts.map +0 -1
- package/dist/provider/use-connectivity.d.ts +0 -3
- package/dist/provider/use-connectivity.d.ts.map +0 -1
- package/dist/provider/use-connectivity.js +0 -14
- package/dist/query-devtools.d.ts +0 -21
- package/dist/query-devtools.d.ts.map +0 -1
- package/dist/query-devtools.js +0 -13
- package/src/agent/adapter.ts +0 -945
- package/src/agent/use-agent-stream.ts +0 -154
- package/src/agent-chat/index.ts +0 -54
- package/src/agent-chat/thread-detail-panel.tsx +0 -201
- package/src/agent-chat/thread-workspace.tsx +0 -279
- package/src/charts/cursor/resolve.ts +0 -198
- package/src/charts/cursor/scope.tsx +0 -35
- package/src/charts/cursor/store.ts +0 -58
- package/src/charts/cursor/touch-pin.ts +0 -138
- package/src/charts/hooks/use-discrete-cursor.ts +0 -335
- package/src/charts/hooks/use-hysteresis.ts +0 -26
- package/src/charts/hooks/useBandPlot.ts +0 -383
- package/src/charts/hooks/useChartCursor.ts +0 -367
- package/src/charts/hooks/useChartSize.ts +0 -35
- package/src/charts/kinds/BandStrip.tsx +0 -449
- package/src/charts/kinds/Bars.tsx +0 -589
- package/src/charts/kinds/Donut.tsx +0 -368
- package/src/charts/kinds/DualPanel.tsx +0 -712
- package/src/charts/kinds/Heatmap.tsx +0 -396
- package/src/charts/kinds/MirroredBars.tsx +0 -469
- package/src/charts/kinds/MultiLine.tsx +0 -322
- package/src/charts/kinds/StackedArea.tsx +0 -267
- package/src/charts/kinds/ZonedLine.tsx +0 -301
- package/src/charts/kinds/band-chrome.tsx +0 -91
- package/src/charts/kinds/donut-layout.ts +0 -82
- package/src/charts/layout/auto-margin.ts +0 -242
- package/src/charts/layout/end-labels.ts +0 -135
- package/src/charts/layout/log-ticks.ts +0 -90
- package/src/charts/primitives/AreaGradient.tsx +0 -26
- package/src/charts/primitives/Axes.tsx +0 -271
- package/src/charts/primitives/CartesianChart.tsx +0 -1002
- package/src/charts/primitives/ChartCard.tsx +0 -280
- package/src/charts/primitives/ChartFrame.tsx +0 -493
- package/src/charts/primitives/ChartLegend.tsx +0 -422
- package/src/charts/primitives/ChartPending.tsx +0 -243
- package/src/charts/primitives/ChartTooltip.tsx +0 -265
- package/src/charts/primitives/Crosshair.tsx +0 -43
- package/src/charts/primitives/HatchPattern.tsx +0 -55
- package/src/charts/primitives/HoverOverlay.module.css +0 -13
- package/src/charts/primitives/HoverOverlay.module.css.d.ts +0 -8
- package/src/charts/primitives/HoverOverlay.tsx +0 -109
- package/src/charts/primitives/XZoneRects.tsx +0 -132
- package/src/charts/primitives/ZoneRects.tsx +0 -67
- package/src/charts/primitives/chart-card-context.ts +0 -46
- package/src/charts/primitives/chart-frame-layout.ts +0 -430
- package/src/charts/primitives/chart-layout.ts +0 -318
- package/src/charts/primitives/chart-tier.tsx +0 -76
- package/src/charts/primitives/legend-disclosure.tsx +0 -178
- package/src/charts/series.ts +0 -276
- package/src/charts/sparklines/BarSparkline.tsx +0 -94
- package/src/charts/sparklines/LineSparkline.tsx +0 -71
- package/src/charts/sparklines/index.ts +0 -2
- package/src/charts/theme.tsx +0 -53
- package/src/charts/utils/domain.ts +0 -41
- package/src/charts/utils/format.ts +0 -19
- package/src/charts/utils/measure-text.ts +0 -109
- package/src/charts/utils/ticks.ts +0 -239
- package/src/commands/overlays-mount.tsx +0 -333
- package/src/commands/useCommandHotkeys.ts +0 -114
- package/src/content/article-actions.ts +0 -72
- package/src/content/article-card.module.css +0 -111
- package/src/content/article-card.tsx +0 -174
- package/src/content/mdx.tsx +0 -127
- package/src/controls/compare-filter.tsx +0 -81
- package/src/controls/slider-control.tsx +0 -159
- package/src/dashboard/widget-grid.module.css +0 -69
- package/src/dashboard/widget-grid.tsx +0 -146
- package/src/data/table.ts +0 -39
- package/src/data/virtual-list.tsx +0 -356
- package/src/data/virtual.ts +0 -26
- package/src/forms/FormErrorSummary.tsx +0 -71
- package/src/forms/use-field-array.ts +0 -94
- package/src/forms/use-form-draft.ts +0 -262
- package/src/forms/use-form-submit.ts +0 -199
- package/src/notifications/index.ts +0 -88
- package/src/notifications/mount-guard.ts +0 -38
- package/src/notifications/notify.tsx +0 -379
- package/src/provider/connectivity-indicator.tsx +0 -267
- package/src/provider/connectivity-provider.tsx +0 -189
- package/src/provider/connectivity-types.ts +0 -42
- package/src/provider/use-connectivity.ts +0 -26
- package/src/query-devtools.tsx +0 -40
- /package/dist/{agent-chat → agent/chat}/message-affordances.js +0 -0
- /package/dist/{agent-chat → agent/chat}/relative-time.d.ts +0 -0
- /package/dist/{agent-chat → agent/chat}/relative-time.js +0 -0
- /package/dist/{agent-chat → agent/chat}/use-keyboard-inset.d.ts +0 -0
- /package/dist/{agent-chat → agent/chat}/virtualize.js +0 -0
- /package/dist/{notifications → commands/notifications}/bell.js +0 -0
- /package/dist/{notifications → commands/notifications}/define-notifications.js +0 -0
- /package/dist/{provider/connectivity-types.js → controls/uncontrolled.js} +0 -0
- /package/dist/{data → table}/data-table.module.css +0 -0
- /package/dist/{data → table}/data-table.module.css.d.ts +0 -0
- /package/dist/{data → table}/query-branch.d.ts +0 -0
- /package/dist/{data → table}/query-branch.js +0 -0
- /package/src/{agent-chat → agent/chat}/relative-time.ts +0 -0
- /package/src/{data → table}/data-table.module.css +0 -0
- /package/src/{data → table}/data-table.module.css.d.ts +0 -0
- /package/src/{data → table}/query-branch.ts +0 -0
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { Dispatch } from 'react';
|
|
2
|
-
/** One frame claiming or releasing the card's header legend slot. */
|
|
3
|
-
export type LegendSlotAction = {
|
|
4
|
-
type: 'claim' | 'release';
|
|
5
|
-
id: string;
|
|
6
|
-
};
|
|
7
|
-
/**
|
|
8
|
-
* The ONE owner of the legend-slot protocol (`docs/waves/PLAN.md` wave 3, P2-9): claimants in claim
|
|
9
|
-
* order, and the head owns the slot. A later claimant is denied simply by not being the head, and
|
|
10
|
-
* it takes over the moment everything ahead of it releases — no retry signal, no ownership mirrored
|
|
11
|
-
* in a ref. Returns the same array on a no-op so a repeated claim/release never re-renders the card.
|
|
12
|
-
*/
|
|
13
|
-
export declare function legendSlotReducer(claimants: readonly string[], { type, id }: LegendSlotAction): readonly string[];
|
|
14
|
-
/**
|
|
15
|
-
* `ChartCard`'s internal context: `inCard` (a frame inside a card treats its computed height as a
|
|
16
|
-
* MINIMUM and grows into the card body), the legend slot — the empty header-row box a chart will portal its legend into
|
|
17
|
-
* (`docs/CHARTS-SPEC.md` §5, Legend), so a card has one chrome band, not two — and `short`, the same
|
|
18
|
-
* `measuredHeight < CARD_SHORT_HEIGHT` flag `ChartCard` already computes for the header-fold law
|
|
19
|
-
* (`data-basalt-card-short`), threaded through so `ChartFrame` can fold its header-slot legend to
|
|
20
|
-
* 'dots' before it eats the plot floor (`docs/CHARTS-SPEC.md` §5, wave 11). `null`/`false` until the slot
|
|
21
|
-
* mounts, and outside any card. Deliberately not exported from any barrel.
|
|
22
|
-
*
|
|
23
|
-
* `legendClaimants` is {@link legendSlotReducer}'s queue (its head owns the slot) and
|
|
24
|
-
* `dispatchLegendSlot` feeds it. Outside any card there is no slot, so nothing ever claims.
|
|
25
|
-
*/
|
|
26
|
-
export declare const ChartCardContext: import("react").Context<{
|
|
27
|
-
legendSlot: HTMLDivElement | null;
|
|
28
|
-
inCard: boolean;
|
|
29
|
-
short: boolean;
|
|
30
|
-
legendClaimants: readonly string[];
|
|
31
|
-
dispatchLegendSlot: Dispatch<LegendSlotAction>;
|
|
32
|
-
}>;
|
|
33
|
-
//# sourceMappingURL=chart-card-context.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chart-card-context.d.ts","sourceRoot":"","sources":["../../../src/charts/primitives/chart-card-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAErC,qEAAqE;AACrE,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,OAAO,GAAG,SAAS,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAA;AAExE;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAC/B,SAAS,EAAE,SAAS,MAAM,EAAE,EAC5B,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,gBAAgB,GAC7B,SAAS,MAAM,EAAE,CAInB;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gBAAgB;gBACf,cAAc,GAAG,IAAI;YACzB,OAAO;WACR,OAAO;qBACG,SAAS,MAAM,EAAE;wBACd,QAAQ,CAAC,gBAAgB,CAAC;EAO9C,CAAA"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { createContext } from "react";
|
|
2
|
-
function legendSlotReducer(claimants, { type, id }) {
|
|
3
|
-
const held = claimants.includes(id);
|
|
4
|
-
if (type === "claim") return held ? claimants : [...claimants, id];
|
|
5
|
-
return held ? claimants.filter((c) => c !== id) : claimants;
|
|
6
|
-
}
|
|
7
|
-
const ChartCardContext = createContext({
|
|
8
|
-
legendSlot: null,
|
|
9
|
-
inCard: false,
|
|
10
|
-
short: false,
|
|
11
|
-
legendClaimants: [],
|
|
12
|
-
dispatchLegendSlot: () => {
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
export {
|
|
16
|
-
ChartCardContext,
|
|
17
|
-
legendSlotReducer
|
|
18
|
-
};
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pure, DOM-free layout math behind `ChartFrame`'s plot/legend split — extracted so the arithmetic
|
|
3
|
-
* is testable without a `ResizeObserver` and `ChartFrame.tsx` stays the measuring/rendering shell.
|
|
4
|
-
*/
|
|
5
|
-
import type { ContainerClass } from '../../tokens/size-classes.js';
|
|
6
|
-
import type { ChartMargin } from '../../tokens/index.js';
|
|
7
|
-
import type { LegendEntry } from './ChartLegend.js';
|
|
8
|
-
/** Gap between two wrapped legend rows — tight (4-6px); the wider `VX.legendGap` separates entries. */
|
|
9
|
-
export declare const LEGEND_ROW_GAP = 6;
|
|
10
|
-
/**
|
|
11
|
-
* The real gap a dots-mode entry needs so its `[data-basalt-hit]::after` overlay can reach the
|
|
12
|
-
* full 44px coarse floor with NO overlap into its neighbour's overlay (`hit-floor.layout.test.ts` +
|
|
13
|
-
* `hit-overlap.layout.test.ts`, wave 4's cap: `styles.css`'s `::after` grows to
|
|
14
|
-
* `min(max(size,44), size + 2 + gap)`). Two 44px-wide overlays centred on same-size hosts touch
|
|
15
|
-
* with zero overlap only once their PITCH (real gap + host size) is itself >= 44 — below that, the
|
|
16
|
-
* cap can only shrink the overlay below 44 (honouring WCAG 2.5.8's spacing route) or let it overlap;
|
|
17
|
-
* there is no gap value that lets it hit 44 exactly while staying flush against a same-size sibling.
|
|
18
|
-
* `LEGEND_DOT_SIZE` is 8px, so the floor is 44 − 8 − 2 = 34; a few px of headroom against rounding.
|
|
19
|
-
*/
|
|
20
|
-
export declare const LEGEND_DOT_SIZE = 8;
|
|
21
|
-
export declare const DOTS_HIT_GAP: number;
|
|
22
|
-
/**
|
|
23
|
-
* Order entries series → overlay → reference and record where a divider belongs — the ONE ordering
|
|
24
|
-
* both `ChartLegend`'s render and the resolver's fit math (`chart-layout.ts`) use, so a dots-mode
|
|
25
|
-
* fit never disagrees with what actually wraps (a grouped legend renders dividers as flex items).
|
|
26
|
-
*/
|
|
27
|
-
export declare function orderEntries(items: readonly LegendEntry[], groups: boolean): {
|
|
28
|
-
entries: LegendEntry[];
|
|
29
|
-
dividerAfter: ReadonlySet<number>;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* The two metric sets a chart's chrome resolves to. Internally the container class
|
|
33
|
-
* (`micro`/`compact` → `'phone'`, `regular`/`wide` → `'desktop'`) picks one; there is no `tablet`.
|
|
34
|
-
* Internal only — not on any public barrel.
|
|
35
|
-
*/
|
|
36
|
-
export type ChartTier = 'phone' | 'desktop';
|
|
37
|
-
/**
|
|
38
|
-
* A chart height stated per container step instead of as one number — the declarative escape from
|
|
39
|
-
* "every chart on this page is 260px tall on a 375px phone too".
|
|
40
|
-
*
|
|
41
|
-
* `base` is the height below the `regular` class; `regular` and `wide` take effect from
|
|
42
|
-
* `CONTAINER_CLASSES.regular` / `.wide` of the frame's MEASURED width (never the viewport).
|
|
43
|
-
*
|
|
44
|
-
* ```tsx
|
|
45
|
-
* <ChartFrame series={series} height={{ base: 180, wide: 260 }}>{…}</ChartFrame>
|
|
46
|
-
* ```
|
|
47
|
-
*/
|
|
48
|
-
export type ResponsiveChartHeight = {
|
|
49
|
-
base: number;
|
|
50
|
-
/** From the `regular` container class (480px) up. */
|
|
51
|
-
regular?: number;
|
|
52
|
-
/** From the `wide` container class (800px) up. */
|
|
53
|
-
wide?: number;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Resolve a `height` prop — a plain number, or a {@link ResponsiveChartHeight} — for a container
|
|
57
|
-
* class. A plain number passes through untouched. The class is the measured one, or, before the
|
|
58
|
-
* first measurement, the one implied by the viewport ({@link resolveChartLayout}), so the first
|
|
59
|
-
* frame is not a different height from the second.
|
|
60
|
-
*/
|
|
61
|
-
export declare function resolveFrameHeight(height: number | ResponsiveChartHeight, containerClass: ContainerClass): number;
|
|
62
|
-
/**
|
|
63
|
-
* Every size a chart's chrome resolves per tier. One object so a new tier-sensitive size is added
|
|
64
|
-
* in one place and read by name, rather than each primitive branching on the tier itself. Internal
|
|
65
|
-
* only — not on any public barrel.
|
|
66
|
-
*/
|
|
67
|
-
export type ChartTierMetrics = {
|
|
68
|
-
/** Which tier these are, so a consumer of the metrics never needs both values threaded. */
|
|
69
|
-
tier: ChartTier;
|
|
70
|
-
/** Axis tick label font size, px. Threaded into BOTH `autoMargin`'s measurement and the painted
|
|
71
|
-
* axis — measured labels must be the painted labels (`docs/CHARTS-SPEC.md` §1). */
|
|
72
|
-
axisFont: number;
|
|
73
|
-
/** Legend label font size, px. */
|
|
74
|
-
legendFontSize: number;
|
|
75
|
-
/** Crosshair dot radius, px. */
|
|
76
|
-
dotR: number;
|
|
77
|
-
/** Floating tooltip `minWidth`, px. */
|
|
78
|
-
tooltipMinWidth: number;
|
|
79
|
-
/** Per-side margin FLOORS (`VX.margin` is a floor, never a ceiling — §1). */
|
|
80
|
-
margin: ChartMargin;
|
|
81
|
-
};
|
|
82
|
-
/** The metric set a container class resolves to (`micro`/`compact` → phone, else desktop). */
|
|
83
|
-
export declare function chartMetrics(containerClass: ContainerClass): ChartTierMetrics;
|
|
84
|
-
/**
|
|
85
|
-
* The whole legend-cap decision in one place: which cap `ChartLegend` gets, and whether the plot
|
|
86
|
-
* pays for it. Pure, because the COMPOSITION is what once broke (1.30.0 ran a measured fit over a
|
|
87
|
-
* caller's stated number) and the frame that combines them needs a `ResizeObserver` to test.
|
|
88
|
-
*
|
|
89
|
-
* Three cases, in order:
|
|
90
|
-
* 1. The caller STATED `legend.maxRows` (deprecated, still honoured) → it is the cap, and on a
|
|
91
|
-
* `fill` band the plot yields (`legendWins`). Nothing measured trims it.
|
|
92
|
-
* 2. No `fill` band → the resolver's width-measured fit (`fittedMaxRows`), because the frame grows.
|
|
93
|
-
* 3. A `fill` band with nothing stated → the tighter of that fit and the height-measured
|
|
94
|
-
* {@link legendEntryCap}, because a `fill` box cannot grow.
|
|
95
|
-
*/
|
|
96
|
-
export declare function resolveLegendRollup(input: {
|
|
97
|
-
/** The caller's own `legend.maxRows`. */
|
|
98
|
-
statedMaxRows?: number | undefined;
|
|
99
|
-
/** `resolveChartLayout().legend.visible` when it overflows, else `undefined`. */
|
|
100
|
-
fittedMaxRows?: number | undefined;
|
|
101
|
-
/** A visible top/bottom legend on a `fill` frame — the one shape whose box cannot grow. */
|
|
102
|
-
fillBand: boolean;
|
|
103
|
-
items: readonly LegendEntry[];
|
|
104
|
-
containerW: number;
|
|
105
|
-
/** Frame height the legend may consume — `resolvedHeight - VX.minPlotHeight`. */
|
|
106
|
-
available: number;
|
|
107
|
-
}): {
|
|
108
|
-
maxRows: number | undefined;
|
|
109
|
-
legendWins: boolean;
|
|
110
|
-
};
|
|
111
|
-
/**
|
|
112
|
-
* Resolve the plot rect from the measured box and the measured legend band. Pure and exported so
|
|
113
|
-
* the two floors below are testable without a `ResizeObserver`.
|
|
114
|
-
*
|
|
115
|
-
* `minWidth` is a FIRST-FRAME guard, applied only while `containerW` is still 0 (unmeasured, or
|
|
116
|
-
* SSR); once measured the plot tracks the box exactly, floored at 1 so no scale divides by zero.
|
|
117
|
-
* The legend band is subtracted first, and the remainder stops at `VX.minPlotHeight` — the frame's
|
|
118
|
-
* flex box grows by the difference under a fixed height, and under `fill` (which cannot grow) the
|
|
119
|
-
* legend is capped instead ({@link legendEntryCap}). A caller-stated `legend.maxRows` yields the
|
|
120
|
-
* floor itself (`legendWins`) as far as the box has room ({@link SELF_MEASURED_SLACK}); an
|
|
121
|
-
* unmeasured box (`resolvedHeight <= 0`) stays 0 and renders nothing.
|
|
122
|
-
*/
|
|
123
|
-
export declare function resolvePlotRect(input: {
|
|
124
|
-
containerW: number;
|
|
125
|
-
resolvedHeight: number;
|
|
126
|
-
minWidth: number;
|
|
127
|
-
sideLegendWidth: number;
|
|
128
|
-
topBottomLegendHeight: number;
|
|
129
|
-
/**
|
|
130
|
-
* The caller stated `legend.maxRows` on a `fill` frame, so the legend takes the rows it asked
|
|
131
|
-
* for and the plot takes what is left — `VX.minPlotHeight` stops being a floor. Without this the
|
|
132
|
-
* honoured cap would push the frame's content PAST its own cell (the plot holds 120px, the legend
|
|
133
|
-
* band adds its own) and paint over whatever sits below it; with it, the cost of the caller's
|
|
134
|
-
* number lands where they can see it. Spend the whole box on legend rows and there is no plot
|
|
135
|
-
* left to draw — that is their arithmetic, made visible rather than silently rolled up.
|
|
136
|
-
*/
|
|
137
|
-
legendWins?: boolean;
|
|
138
|
-
}): {
|
|
139
|
-
width: number;
|
|
140
|
-
height: number;
|
|
141
|
-
};
|
|
142
|
-
/** How many of `items` fit in `rows` wrapped rows of `width` — the same greedy wrap the flex
|
|
143
|
-
* container performs, measured rather than assumed (`docs/CHARTS-SPEC.md` §1). */
|
|
144
|
-
export declare function entriesWithinRows(items: readonly LegendEntry[], width: number, rows: number): number;
|
|
145
|
-
/**
|
|
146
|
-
* Chips-mode counterpart of {@link entriesWithinDotRows}: once the un-reserved fit overflows, a
|
|
147
|
-
* second pass measures against the width LESS the `All N` chip's own footprint, so the count this
|
|
148
|
-
* returns still leaves the chip room to sit beside it in the same row — same reserve law the dots
|
|
149
|
-
* fit already applied, now applied to chip width instead of a dot's pitch. Returns 0 when not even
|
|
150
|
-
* the first chip fits once the chip's width is reserved, so the row renders the disclosure alone
|
|
151
|
-
* rather than one crowded chip plus a chip that doesn't actually fit next to it.
|
|
152
|
-
*/
|
|
153
|
-
export declare function entriesWithinChipRows(items: readonly LegendEntry[], width: number, rows: number): number;
|
|
154
|
-
/**
|
|
155
|
-
* How many of `items` fit as DOTS in `rows` wrapped rows of `width` — the dots-mode counterpart of
|
|
156
|
-
* {@link entriesWithinRows}, measured at the dot's own pitch rather than a chip's width.
|
|
157
|
-
* `dividerAfter` (from {@link orderEntries}) counts a rendered group divider's own gap.
|
|
158
|
-
*
|
|
159
|
-
* Two passes: every entry visible with no `All N` chip (if that fits, no chip is drawn); otherwise
|
|
160
|
-
* reserve the chip's measured width up front so it can never wrap to a row of its own — and, once
|
|
161
|
-
* reserved, allow the answer to be 0: a chip wide enough to leave no room for even the first dot
|
|
162
|
-
* means the row draws the disclosure alone, not one dot crowding a chip that no longer fits beside it.
|
|
163
|
-
*/
|
|
164
|
-
export declare function entriesWithinDotRows(items: readonly LegendEntry[], width: number, rows: number, dividerAfter?: ReadonlySet<number>): number;
|
|
165
|
-
/**
|
|
166
|
-
* The entry cap a `fill` frame's legend must respect so the plot keeps `VX.minPlotHeight`. A
|
|
167
|
-
* `fill` frame is pinned to its cell, so the only lever is `ChartLegend`'s `maxRows` rollup; how
|
|
168
|
-
* many entries fit follows from MEASURING the labels, not assuming one per row. Returns
|
|
169
|
-
* `undefined` when the whole legend already fits.
|
|
170
|
-
*
|
|
171
|
-
* Resolves an ABSENT cap only: a caller who stated `legend.maxRows` never reaches here
|
|
172
|
-
* ({@link resolveLegendRollup} routes around it), so the documented escape is never made inert.
|
|
173
|
-
*/
|
|
174
|
-
export declare function legendEntryCap(input: {
|
|
175
|
-
items: readonly LegendEntry[];
|
|
176
|
-
containerW: number;
|
|
177
|
-
/** Frame height the legend may consume — `resolvedHeight - VX.minPlotHeight`. */
|
|
178
|
-
available: number;
|
|
179
|
-
/**
|
|
180
|
-
* The cap that applies when nothing explicit was stated — the resolver's width fit. Two
|
|
181
|
-
* defaults contending: the smaller wins.
|
|
182
|
-
*/
|
|
183
|
-
defaultMaxRows?: number;
|
|
184
|
-
}): number | undefined;
|
|
185
|
-
//# sourceMappingURL=chart-frame-layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chart-frame-layout.d.ts","sourceRoot":"","sources":["../../../src/charts/primitives/chart-frame-layout.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { HIT_COARSE } from "../../common/hit-floor.js";
|
|
2
|
-
import { VX } from "../../tokens/index.js";
|
|
3
|
-
import { measureText } from "../utils/measure-text.js";
|
|
4
|
-
const LEGEND_LINE_H = Math.ceil(VX.legendFontSize * 1.35);
|
|
5
|
-
const LEGEND_PAD_Y = 10;
|
|
6
|
-
const LEGEND_ROW_GAP = 6;
|
|
7
|
-
const LEGEND_SWATCH_W = 24;
|
|
8
|
-
const LEGEND_DOT_SIZE = 8;
|
|
9
|
-
const DOTS_HIT_GAP = HIT_COARSE - LEGEND_DOT_SIZE - 2 + 4;
|
|
10
|
-
const DOT_PITCH = LEGEND_DOT_SIZE + DOTS_HIT_GAP;
|
|
11
|
-
const GROUP_ORDER = ["series", "overlay", "reference"];
|
|
12
|
-
const roleOf = (item) => item.role ?? "series";
|
|
13
|
-
function orderEntries(items, groups) {
|
|
14
|
-
if (!groups) return { entries: [...items], dividerAfter: /* @__PURE__ */ new Set() };
|
|
15
|
-
const dividerAfter = /* @__PURE__ */ new Set();
|
|
16
|
-
const entries = [];
|
|
17
|
-
const nonEmptyGroups = GROUP_ORDER.map(
|
|
18
|
-
(role) => items.filter((item) => roleOf(item) === role)
|
|
19
|
-
).filter((group) => group.length > 0);
|
|
20
|
-
nonEmptyGroups.forEach((group, i) => {
|
|
21
|
-
entries.push(...group);
|
|
22
|
-
if (i < nonEmptyGroups.length - 1) dividerAfter.add(entries.length - 1);
|
|
23
|
-
});
|
|
24
|
-
return { entries, dividerAfter };
|
|
25
|
-
}
|
|
26
|
-
function resolveFrameHeight(height, containerClass) {
|
|
27
|
-
if (typeof height === "number") return height;
|
|
28
|
-
if (containerClass === "wide") return height.wide ?? height.regular ?? height.base;
|
|
29
|
-
if (containerClass === "regular") return height.regular ?? height.base;
|
|
30
|
-
return height.base;
|
|
31
|
-
}
|
|
32
|
-
const PHONE_MARGIN_SCALE = 0.75;
|
|
33
|
-
const PHONE_DOT_R = Math.max(VX.dotR - 1, 2);
|
|
34
|
-
const TOOLTIP_MIN_WIDTH = { desktop: 140, phone: 110 };
|
|
35
|
-
const DESKTOP_METRICS = {
|
|
36
|
-
tier: "desktop",
|
|
37
|
-
axisFont: VX.axisFont,
|
|
38
|
-
legendFontSize: VX.legendFontSize,
|
|
39
|
-
dotR: VX.dotR,
|
|
40
|
-
tooltipMinWidth: TOOLTIP_MIN_WIDTH.desktop,
|
|
41
|
-
margin: VX.margin
|
|
42
|
-
};
|
|
43
|
-
const PHONE_METRICS = {
|
|
44
|
-
tier: "phone",
|
|
45
|
-
// One step DOWN the shared type ladder, never an arbitrary px value: micro → nano for ticks,
|
|
46
|
-
// sm → xs for the legend (`TEXT` in tokens/index.ts).
|
|
47
|
-
axisFont: VX.text.nano,
|
|
48
|
-
legendFontSize: VX.text.xs,
|
|
49
|
-
dotR: PHONE_DOT_R,
|
|
50
|
-
tooltipMinWidth: TOOLTIP_MIN_WIDTH.phone,
|
|
51
|
-
margin: {
|
|
52
|
-
top: Math.round(VX.margin.top * PHONE_MARGIN_SCALE),
|
|
53
|
-
right: Math.round(VX.margin.right * PHONE_MARGIN_SCALE),
|
|
54
|
-
bottom: Math.round(VX.margin.bottom * PHONE_MARGIN_SCALE),
|
|
55
|
-
left: Math.round(VX.margin.left * PHONE_MARGIN_SCALE)
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
function chartMetrics(containerClass) {
|
|
59
|
-
return containerClass === "micro" || containerClass === "compact" ? PHONE_METRICS : DESKTOP_METRICS;
|
|
60
|
-
}
|
|
61
|
-
function resolveLegendRollup(input) {
|
|
62
|
-
const { statedMaxRows, fittedMaxRows, fillBand, items, containerW, available } = input;
|
|
63
|
-
if (statedMaxRows !== void 0) return { maxRows: statedMaxRows, legendWins: fillBand };
|
|
64
|
-
if (!fillBand) return { maxRows: fittedMaxRows, legendWins: false };
|
|
65
|
-
return {
|
|
66
|
-
maxRows: legendEntryCap({
|
|
67
|
-
items,
|
|
68
|
-
containerW,
|
|
69
|
-
available,
|
|
70
|
-
...fittedMaxRows !== void 0 && { defaultMaxRows: fittedMaxRows }
|
|
71
|
-
}),
|
|
72
|
-
legendWins: false
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
function resolvePlotRect(input) {
|
|
76
|
-
const {
|
|
77
|
-
containerW,
|
|
78
|
-
resolvedHeight,
|
|
79
|
-
minWidth,
|
|
80
|
-
sideLegendWidth,
|
|
81
|
-
topBottomLegendHeight,
|
|
82
|
-
legendWins = false
|
|
83
|
-
} = input;
|
|
84
|
-
const room = resolvedHeight - topBottomLegendHeight;
|
|
85
|
-
const plotFloor = legendWins && !isSelfMeasured(room) ? 0 : VX.minPlotHeight;
|
|
86
|
-
return {
|
|
87
|
-
width: containerW === 0 ? minWidth : Math.max(containerW - sideLegendWidth, 1),
|
|
88
|
-
height: resolvedHeight <= 0 ? 0 : Math.max(room, plotFloor)
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
const SELF_MEASURED_SLACK = 0.5;
|
|
92
|
-
function isSelfMeasured(room) {
|
|
93
|
-
return room >= 0 && room < SELF_MEASURED_SLACK;
|
|
94
|
-
}
|
|
95
|
-
const legendBandHeight = (rows) => LEGEND_PAD_Y + rows * LEGEND_LINE_H + Math.max(rows - 1, 0) * LEGEND_ROW_GAP;
|
|
96
|
-
const legendEntryWidth = (item) => LEGEND_SWATCH_W + measureText(
|
|
97
|
-
item.note === void 0 ? item.label : `${item.label} ${item.note}`,
|
|
98
|
-
VX.legendFontSize
|
|
99
|
-
);
|
|
100
|
-
function fitGreedyRows(items, fit) {
|
|
101
|
-
let row = 1;
|
|
102
|
-
let x = 0;
|
|
103
|
-
let fitted = 0;
|
|
104
|
-
for (const [i, item] of items.entries()) {
|
|
105
|
-
const w = fit.widthOf(item);
|
|
106
|
-
const next = x === 0 ? w : x + fit.gap + w;
|
|
107
|
-
if (x === 0 && fit.allowZero === true && next > fit.width) return 0;
|
|
108
|
-
if (next > fit.width && x > 0) {
|
|
109
|
-
row += 1;
|
|
110
|
-
if (row > fit.rows) return fitted;
|
|
111
|
-
x = w;
|
|
112
|
-
} else {
|
|
113
|
-
x = next;
|
|
114
|
-
}
|
|
115
|
-
fitted += 1;
|
|
116
|
-
x += fit.extraAfter?.(i) ?? 0;
|
|
117
|
-
}
|
|
118
|
-
return fitted;
|
|
119
|
-
}
|
|
120
|
-
const chipFit = { widthOf: legendEntryWidth, gap: VX.legendGap };
|
|
121
|
-
function entriesWithinRows(items, width, rows) {
|
|
122
|
-
return fitGreedyRows(items, { ...chipFit, width, rows });
|
|
123
|
-
}
|
|
124
|
-
function entriesWithinChipRows(items, width, rows) {
|
|
125
|
-
const total = items.length;
|
|
126
|
-
const fittedNoReserve = entriesWithinRows(items, width, rows);
|
|
127
|
-
if (fittedNoReserve >= total) return fittedNoReserve;
|
|
128
|
-
const reserve = measureText(`All ${total}`, VX.legendFontSize) + VX.legendGap;
|
|
129
|
-
return fitGreedyRows(items, {
|
|
130
|
-
...chipFit,
|
|
131
|
-
width: Math.max(width - reserve, 0),
|
|
132
|
-
rows,
|
|
133
|
-
allowZero: true
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
function entriesWithinDotRows(items, width, rows, dividerAfter = /* @__PURE__ */ new Set()) {
|
|
137
|
-
const dotFit = {
|
|
138
|
-
widthOf: () => LEGEND_DOT_SIZE,
|
|
139
|
-
gap: DOT_PITCH - LEGEND_DOT_SIZE,
|
|
140
|
-
rows,
|
|
141
|
-
extraAfter: (i) => dividerAfter.has(i) ? DOT_PITCH : 0
|
|
142
|
-
};
|
|
143
|
-
const total = items.length;
|
|
144
|
-
const fittedNoReserve = fitGreedyRows(items, { ...dotFit, width });
|
|
145
|
-
if (fittedNoReserve >= total) return fittedNoReserve;
|
|
146
|
-
const reserve = measureText(`All ${total}`, VX.legendFontSize) + DOT_PITCH;
|
|
147
|
-
return fitGreedyRows(items, { ...dotFit, width: Math.max(width - reserve, 0), allowZero: true });
|
|
148
|
-
}
|
|
149
|
-
function legendEntryCap(input) {
|
|
150
|
-
const { items, containerW, available, defaultMaxRows } = input;
|
|
151
|
-
if (containerW <= 0 || items.length === 0) return defaultMaxRows;
|
|
152
|
-
const rows = Math.max(
|
|
153
|
-
1,
|
|
154
|
-
Math.floor((available - LEGEND_PAD_Y + LEGEND_ROW_GAP) / (LEGEND_LINE_H + LEGEND_ROW_GAP))
|
|
155
|
-
);
|
|
156
|
-
if (legendBandHeight(rows) <= available && entriesWithinRows(items, containerW, rows) >= items.length) {
|
|
157
|
-
return defaultMaxRows;
|
|
158
|
-
}
|
|
159
|
-
const fitted = Math.max(1, entriesWithinRows(items, containerW, rows));
|
|
160
|
-
return defaultMaxRows === void 0 ? fitted : Math.min(fitted, defaultMaxRows);
|
|
161
|
-
}
|
|
162
|
-
export {
|
|
163
|
-
DOTS_HIT_GAP,
|
|
164
|
-
LEGEND_DOT_SIZE,
|
|
165
|
-
LEGEND_ROW_GAP,
|
|
166
|
-
chartMetrics,
|
|
167
|
-
entriesWithinChipRows,
|
|
168
|
-
entriesWithinDotRows,
|
|
169
|
-
entriesWithinRows,
|
|
170
|
-
legendEntryCap,
|
|
171
|
-
orderEntries,
|
|
172
|
-
resolveFrameHeight,
|
|
173
|
-
resolveLegendRollup,
|
|
174
|
-
resolvePlotRect
|
|
175
|
-
};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* `resolveChartLayout` — the single, pure decision point for a chart's space
|
|
3
|
-
* (`docs/CHARTS-SPEC.md` §8): container class, height and legend fit. Also hosts the axis-economy
|
|
4
|
-
* ladder (`resolveYPlacement`, `planXLabels`, `yTickCount`, `compactNumber`, …) that
|
|
5
|
-
* `CartesianChart`/`useBandPlot` call directly. DOM-free and Mantine-free; deliberately not on any
|
|
6
|
-
* public barrel.
|
|
7
|
-
*/
|
|
8
|
-
import type { ContainerClass, SIZE_CLASSES } from '../../tokens/size-classes.js';
|
|
9
|
-
import type { ChartMargin } from '../../tokens/index.js';
|
|
10
|
-
import type { LegendEntry } from './ChartLegend.js';
|
|
11
|
-
export type ChartLayout = {
|
|
12
|
-
containerClass: ContainerClass;
|
|
13
|
-
height: number;
|
|
14
|
-
legend: {
|
|
15
|
-
mode: 'none';
|
|
16
|
-
} | {
|
|
17
|
-
mode: 'dots' | 'chips';
|
|
18
|
-
where: 'header' | 'band';
|
|
19
|
-
visible: number;
|
|
20
|
-
overflow: number;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export type ChartLayoutInput = {
|
|
24
|
-
/** The chart frame's MEASURED width; `<= 0` is unmeasured (SSR, first paint). */
|
|
25
|
-
frameW: number;
|
|
26
|
-
/** Width of the card's header legend slot; `0` when there is none (the legend takes a band). */
|
|
27
|
-
slotW: number;
|
|
28
|
-
/** Viewport height in px (`0` unknown). Only read on a coarse pointer. */
|
|
29
|
-
viewportH: number;
|
|
30
|
-
legendItems: readonly LegendEntry[];
|
|
31
|
-
/** Viewport class — decides the container class until the frame is measured. */
|
|
32
|
-
sizeClass: keyof typeof SIZE_CLASSES;
|
|
33
|
-
coarse: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* The card's own `short` flag (`ChartCard`'s `measuredHeight < CARD_SHORT_HEIGHT`) — the ONE
|
|
36
|
-
* source of truth for "this legend gets at most one row", not a second narrower threshold.
|
|
37
|
-
* Default `false` (no card, or an unmeasured/tall one).
|
|
38
|
-
*/
|
|
39
|
-
cardShort?: boolean;
|
|
40
|
-
/** The legend's own `groups` config — whether role dividers render (and so count toward the
|
|
41
|
-
* dots-mode fit). Default `false`. */
|
|
42
|
-
groups?: boolean;
|
|
43
|
-
/** Consumer-stated values; each wins over the derived one. */
|
|
44
|
-
override?: {
|
|
45
|
-
height?: number;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
/** Compact and micro plots are tight: y labels move inside and terminal x labels anchor inward. */
|
|
49
|
-
export declare function isTightClass(containerClass: ContainerClass): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* At a tight container class the y labels move inside the plot (micro: no y axis at all), so the
|
|
52
|
-
* left gutter drops to its floor. Not-tight, no left axis, or an explicit `margin.left` all keep
|
|
53
|
-
* the axis outside — the single implementation `CartesianChart`/`useBandPlot` both call.
|
|
54
|
-
*/
|
|
55
|
-
export declare function resolveYPlacement(containerClass: ContainerClass, opts?: {
|
|
56
|
-
hasLeftAxis?: boolean | undefined;
|
|
57
|
-
marginOverrideLeft?: number | undefined;
|
|
58
|
-
}): 'outside' | 'inside' | 'none';
|
|
59
|
-
/**
|
|
60
|
-
* Left-margin floor once `resolveYPlacement` moves the labels INSIDE the plot: just enough for the
|
|
61
|
-
* axis line and a hair of breathing room, not the outside axis's full label-width floor. Passing
|
|
62
|
-
* the tier's own `margin.left` here reserves a gutter for a label that no longer paints.
|
|
63
|
-
*/
|
|
64
|
-
export declare const INSIDE_Y_FLOOR = 4;
|
|
65
|
-
/**
|
|
66
|
-
* The `autoMargin` FLOOR to measure against, once `resolveYPlacement` has decided where the left
|
|
67
|
-
* axis paints — an axis placed `'outside'` keeps the tier's ordinary margin floor; one placed
|
|
68
|
-
* `'inside'` (or dropped, `'none'`) paints IN the plot, so the outside label-width floor is dead
|
|
69
|
-
* space on that side and only {@link INSIDE_Y_FLOOR} applies. `CartesianChart` and `useBandPlot`
|
|
70
|
-
* used to each spell this same ternary out by hand.
|
|
71
|
-
*/
|
|
72
|
-
export declare function resolveMarginFloor(yPlacement: 'outside' | 'inside' | 'none', tierMargin: ChartMargin): ChartMargin;
|
|
73
|
-
/**
|
|
74
|
-
* Ladder step 1: `12500` -> `12.5k`, `1_200_000` -> `1.2M`; `null` below 1000 or non-finite. Rounds
|
|
75
|
-
* BEFORE choosing the unit's suffix, so `999_950` reads `1M`, never `1000k`; the largest unit caps.
|
|
76
|
-
*/
|
|
77
|
-
export declare function compactNumber(value: number): string | null;
|
|
78
|
-
/** Ladder step 1's rule: compact only when the longest y label is over 4 chars. */
|
|
79
|
-
export declare function shouldCompactYLabels(labels: readonly string[]): boolean;
|
|
80
|
-
/** Ladder step 2 + the `VX.minPlotHeight` guard: one tick per ~44px, 2 when the plot is under the floor. */
|
|
81
|
-
export declare function yTickCount(plotHeight: number): number;
|
|
82
|
-
/** Greedy word wrap by measured px; a single word wider than `maxPx` keeps its own line. */
|
|
83
|
-
export declare function wrapLabel(label: string, maxPx: number, fontPx: number): string[];
|
|
84
|
-
export type XLabelPlan = {
|
|
85
|
-
wrap: boolean;
|
|
86
|
-
rotate: 0 | 45;
|
|
87
|
-
/** Lines the tallest label takes once wrapped (1 when it does not). */
|
|
88
|
-
lines: number;
|
|
89
|
-
/** Px one tick label needs: measured width (wrapped width when wrapping) plus the gap. */
|
|
90
|
-
labelPx: number;
|
|
91
|
-
/** Width labels wrap to; `0` when they do not wrap. */
|
|
92
|
-
wrapPx: number;
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Ladder step 4: x labels that do not all fit side by side wrap — categorical (band) domains
|
|
96
|
-
* only, and only when wrapping shows EVERY key. A wrap that would still drop keys buys nothing
|
|
97
|
-
* (it costs a line of bottom gutter to thin the same way flat already would), so it falls back to
|
|
98
|
-
* flat/thinned instead. Rotating is the last resort, reached only once even a full wrap can't fit.
|
|
99
|
-
*/
|
|
100
|
-
export declare function planXLabels(input: {
|
|
101
|
-
labels: readonly string[];
|
|
102
|
-
plotWidth: number;
|
|
103
|
-
fontPx: number;
|
|
104
|
-
categorical: boolean;
|
|
105
|
-
}): XLabelPlan;
|
|
106
|
-
/** The container class: the measured width's, or the viewport-implied one while unmeasured. */
|
|
107
|
-
export declare function resolveFrameClass(input: {
|
|
108
|
-
frameW: number;
|
|
109
|
-
sizeClass: keyof typeof SIZE_CLASSES;
|
|
110
|
-
}): ContainerClass;
|
|
111
|
-
export declare function resolveChartLayout(input: ChartLayoutInput): ChartLayout;
|
|
112
|
-
//# sourceMappingURL=chart-layout.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chart-layout.d.ts","sourceRoot":"","sources":["../../../src/charts/primitives/chart-layout.ts"],"names":[],"mappings":"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"}
|