basalt-ui 3.0.0 → 3.1.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 +1 -0
- package/CHANGELOG.md +72 -39
- package/MIGRATING.md +44 -2
- package/README.md +39 -12
- package/agent/rules/basalt-tokens.md +1 -1
- package/agent/rules/basalt-ui.md +3 -3
- package/agent/skills/basalt-app/references/live.md +4 -4
- package/agent/skills/basalt-app/references/migrate.md +2 -2
- package/agent/skills/basalt-app/references/setup.md +17 -8
- package/agent/skills/basalt-app/references/testing.md +8 -6
- package/agent/skills/basalt-design/SKILL.md +2 -1
- package/agent/skills/basalt-design/references/controls.md +1 -0
- package/agent/skills/basalt-design/references/parts.md +5 -1
- package/agent/templates/AGENTS-block.md.tpl +6 -23
- package/agent/templates/AGENTS-block.site.md.tpl +5 -18
- package/agent/templates/AGENTS-block.tokens.md.tpl +3 -7
- package/agent/templates/DESIGN.md.tpl +1 -1
- package/agent/templates/_app-error.i18n.tpl +8 -32
- package/agent/templates/_app-error.tpl +8 -32
- package/agent/templates/_app-pending.i18n.tpl +5 -3
- package/agent/templates/_app-pending.tpl +5 -4
- package/agent/templates/main.i18n.tpl +8 -3
- package/agent/templates/main.tpl +8 -3
- package/agent/templates/router.start.tpl +8 -3
- package/agent/templates/seed-messages.json +0 -30
- package/configs/oxlint-app.json +9 -1
- package/configs/oxlint-bridge.json +3 -1
- package/configs/oxlint-parts.json +9 -1
- package/configs/oxlint-site.json +3 -1
- package/dist/astro/shiki.d.ts +3 -2
- package/dist/astro/shiki.d.ts.map +1 -1
- package/dist/cards/bar-list.d.ts.map +1 -1
- package/dist/cards/bar-list.js +2 -1
- package/dist/cards/chain-view.d.ts +37 -8
- package/dist/cards/chain-view.d.ts.map +1 -1
- package/dist/cards/chain-view.js +105 -38
- package/dist/cards/contract.d.ts +8 -1
- package/dist/cards/contract.d.ts.map +1 -1
- package/dist/cards/data-panel.d.ts.map +1 -1
- package/dist/cards/data-panel.js +1 -0
- package/dist/cards/event-list.d.ts.map +1 -1
- package/dist/cards/event-list.js +3 -2
- package/dist/cards/index.d.ts +1 -1
- package/dist/cards/index.d.ts.map +1 -1
- package/dist/cards/row-list.d.ts.map +1 -1
- package/dist/cards/row-list.js +2 -1
- package/dist/cards/stat-card-parts.d.ts +3 -3
- package/dist/cards/stat-card-parts.d.ts.map +1 -1
- package/dist/cards/stat-card-parts.js +8 -2
- package/dist/cards/stat-card.d.ts.map +1 -1
- package/dist/cards/stat-card.js +34 -9
- package/dist/charts/core/compile.d.ts +2 -0
- package/dist/charts/core/compile.d.ts.map +1 -1
- package/dist/charts/core/compile.js +16 -8
- package/dist/charts/core/cursor.d.ts +2 -1
- package/dist/charts/core/cursor.d.ts.map +1 -1
- package/dist/charts/core/cursor.js +8 -1
- package/dist/charts/core/tooltip-said.d.ts +16 -0
- package/dist/charts/core/tooltip-said.d.ts.map +1 -0
- package/dist/charts/core/tooltip-said.js +39 -0
- package/dist/charts/focus.d.ts.map +1 -1
- package/dist/charts/focus.js +1 -1
- package/dist/charts/parts/chart-card.d.ts.map +1 -1
- package/dist/charts/parts/chart-card.js +1 -0
- package/dist/cli/agent-note.d.ts +3 -3
- package/dist/cli/agent-note.d.ts.map +1 -1
- package/dist/cli/agent-note.js +5 -5
- package/dist/cli/budget/index.d.ts +7 -0
- package/dist/cli/budget/index.d.ts.map +1 -1
- package/dist/cli/budget/index.js +11 -5
- package/dist/cli/config.d.ts +1 -1
- package/dist/cli/doctor/app.d.ts.map +1 -1
- package/dist/cli/doctor/app.js +53 -24
- package/dist/cli/doctor/eject.d.ts.map +1 -1
- package/dist/cli/doctor/eject.js +16 -9
- package/dist/cli/doctor/guards.d.ts.map +1 -1
- package/dist/cli/doctor/guards.js +11 -8
- package/dist/cli/doctor/hook.js +1 -1
- package/dist/cli/doctor/install.d.ts.map +1 -1
- package/dist/cli/doctor/install.js +46 -22
- package/dist/cli/doctor/translations.d.ts.map +1 -1
- package/dist/cli/doctor/translations.js +11 -4
- package/dist/cli/doctor/types.d.ts +2 -2
- package/dist/cli/doctor/types.d.ts.map +1 -1
- package/dist/cli/doctor/types.js +1 -1
- package/dist/cli/doctor/wiring.d.ts.map +1 -1
- package/dist/cli/doctor/wiring.js +26 -15
- package/dist/cli/eject/dropped-slots.d.ts +6 -0
- package/dist/cli/eject/dropped-slots.d.ts.map +1 -0
- package/dist/cli/eject/dropped-slots.js +9 -0
- package/dist/cli/eject/index.d.ts.map +1 -1
- package/dist/cli/eject/index.js +9 -8
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +7 -2
- package/dist/cli/index.d.ts +6 -5
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +38 -7
- package/dist/cli/init/index.d.ts +10 -0
- package/dist/cli/init/index.d.ts.map +1 -1
- package/dist/cli/init/index.js +61 -10
- package/dist/cli/init/locales.d.ts +7 -0
- package/dist/cli/init/locales.d.ts.map +1 -1
- package/dist/cli/init/locales.js +21 -6
- package/dist/cli/init/router-seeds.d.ts.map +1 -1
- package/dist/cli/init/router-seeds.js +16 -3
- package/dist/cli/init/steps.d.ts +36 -3
- package/dist/cli/init/steps.d.ts.map +1 -1
- package/dist/cli/init/steps.js +201 -34
- package/dist/cli/lint/baseline.d.ts +27 -0
- package/dist/cli/lint/baseline.d.ts.map +1 -0
- package/dist/cli/lint/baseline.js +96 -0
- package/dist/cli/lint/engine.d.ts +2 -0
- package/dist/cli/lint/engine.d.ts.map +1 -1
- package/dist/cli/lint/engine.js +18 -8
- package/dist/cli/lint/hook.d.ts.map +1 -1
- package/dist/cli/lint/hook.js +8 -3
- package/dist/cli/lint/index.d.ts +3 -0
- package/dist/cli/lint/index.d.ts.map +1 -1
- package/dist/cli/lint/index.js +67 -8
- package/dist/cli/manifest.d.ts +46 -3
- package/dist/cli/manifest.d.ts.map +1 -1
- package/dist/cli/manifest.js +71 -1
- package/dist/cli/migrate/census.d.ts +6 -0
- package/dist/cli/migrate/census.d.ts.map +1 -1
- package/dist/cli/migrate/census.js +22 -1
- package/dist/cli/migrate/index.d.ts +5 -0
- package/dist/cli/migrate/index.d.ts.map +1 -1
- package/dist/cli/migrate/index.js +36 -3
- package/dist/cli/migrate/lost-classes.d.ts +20 -0
- package/dist/cli/migrate/lost-classes.d.ts.map +1 -0
- package/dist/cli/migrate/lost-classes.js +145 -0
- package/dist/cli/migrate/rows.d.ts +10 -0
- package/dist/cli/migrate/rows.d.ts.map +1 -1
- package/dist/cli/migrate/rows.js +15 -0
- package/dist/cli/package-manager.d.ts.map +1 -1
- package/dist/cli/package-manager.js +2 -1
- package/dist/cli/peers.d.ts +2 -0
- package/dist/cli/peers.d.ts.map +1 -1
- package/dist/cli/peers.js +7 -0
- package/dist/cli/presets.d.ts.map +1 -1
- package/dist/cli/presets.js +27 -11
- package/dist/cli/resolver.d.ts +13 -4
- package/dist/cli/resolver.d.ts.map +1 -1
- package/dist/cli/resolver.js +39 -5
- package/dist/cli/router-wiring.d.ts +1 -0
- package/dist/cli/router-wiring.d.ts.map +1 -1
- package/dist/cli/router-wiring.js +1 -1
- package/dist/cli/sync/engine.d.ts +8 -1
- package/dist/cli/sync/engine.d.ts.map +1 -1
- package/dist/cli/sync/engine.js +25 -14
- package/dist/cli/sync/index.d.ts.map +1 -1
- package/dist/cli/sync/index.js +7 -4
- package/dist/cli/sync/render.d.ts.map +1 -1
- package/dist/cli/sync/render.js +21 -28
- package/dist/cli/tokens-css.d.ts +2 -0
- package/dist/cli/tokens-css.d.ts.map +1 -1
- package/dist/cli/tokens-css.js +28 -6
- package/dist/controls/contract.d.ts +2 -1
- package/dist/controls/contract.d.ts.map +1 -1
- package/dist/controls/control-home.d.ts +4 -1
- package/dist/controls/control-home.d.ts.map +1 -1
- package/dist/controls/control-home.js +5 -3
- package/dist/controls/local-control.d.ts +28 -1
- package/dist/controls/local-control.d.ts.map +1 -1
- package/dist/controls/local-control.js +14 -2
- package/dist/core/cn.d.ts.map +1 -1
- package/dist/core/cn.js +6 -5
- package/dist/core/frame-figure.d.ts +2 -0
- package/dist/core/frame-figure.d.ts.map +1 -1
- package/dist/core/frame-figure.js +5 -2
- package/dist/core/frame-head.d.ts +3 -1
- package/dist/core/frame-head.d.ts.map +1 -1
- package/dist/core/frame-head.js +28 -7
- package/dist/core/frame-regions.d.ts +1 -1
- package/dist/core/frame-regions.d.ts.map +1 -1
- package/dist/core/frame-regions.js +18 -8
- package/dist/core/info-hint.d.ts +5 -0
- package/dist/core/info-hint.d.ts.map +1 -1
- package/dist/core/info-hint.js +22 -1
- package/dist/core/mark-tone.d.ts +6 -2
- package/dist/core/mark-tone.d.ts.map +1 -1
- package/dist/core/mark-tone.js +1 -1
- package/dist/core/mark-types.d.ts +4 -2
- package/dist/core/mark-types.d.ts.map +1 -1
- package/dist/core/messages/chain.d.ts +2 -1
- package/dist/core/messages/chain.d.ts.map +1 -1
- package/dist/core/messages/chain.js +1 -0
- package/dist/core/messages/index.d.ts +2 -1
- package/dist/core/messages/index.d.ts.map +1 -1
- package/dist/core/messages/index.js +2 -0
- package/dist/core/messages/runs.d.ts +20 -0
- package/dist/core/messages/runs.d.ts.map +1 -0
- package/dist/core/messages/runs.js +18 -0
- package/dist/core/phase.d.ts +25 -2
- package/dist/core/phase.d.ts.map +1 -1
- package/dist/core/ports.d.ts +4 -1
- package/dist/core/ports.d.ts.map +1 -1
- package/dist/core/provider.d.ts +3 -1
- package/dist/core/provider.d.ts.map +1 -1
- package/dist/core/provider.js +5 -3
- package/dist/core/scheme.d.ts +2 -1
- package/dist/core/scheme.d.ts.map +1 -1
- package/dist/core/scheme.js +1 -0
- package/dist/core/spark/mini-bars.d.ts +6 -4
- package/dist/core/spark/mini-bars.d.ts.map +1 -1
- package/dist/core/spark/mini-bars.js +36 -11
- package/dist/core/spark/sparkline.d.ts +2 -2
- package/dist/core/spark/sparkline.d.ts.map +1 -1
- package/dist/core/spark/sparkline.js +21 -2
- package/dist/css/bridge.css +63 -0
- package/dist/css/generate.d.ts +2 -2
- package/dist/css/generate.d.ts.map +1 -1
- package/dist/css/generate.js +25 -0
- package/dist/data/live/live-query.d.ts +2 -2
- package/dist/data/live/live-query.d.ts.map +1 -1
- package/dist/data/live/live-query.js +2 -1
- package/dist/lint/preset.d.ts +12 -3
- package/dist/lint/preset.d.ts.map +1 -1
- package/dist/lint/preset.js +30 -10
- package/dist/lint/rules/class/table.d.ts.map +1 -1
- package/dist/lint/rules/class/table.js +3 -1
- package/dist/lint/rules/structure/control-home.js +1 -1
- package/dist/lint/rules/structure/import-boundary.d.ts.map +1 -1
- package/dist/lint/rules/structure/import-boundary.js +2 -0
- package/dist/lint/rules/structure/label-literal.d.ts.map +1 -1
- package/dist/lint/rules/structure/label-literal.js +1 -1
- package/dist/lint/shadcn.d.ts +562 -0
- package/dist/lint/shadcn.d.ts.map +1 -0
- package/dist/lint/shadcn.js +52 -0
- package/dist/lint/stylelint/render.d.ts +3 -1
- package/dist/lint/stylelint/render.d.ts.map +1 -1
- package/dist/lint/stylelint/render.js +23 -2
- package/dist/lint/stylelint/rules.d.ts +3 -2
- package/dist/lint/stylelint/rules.d.ts.map +1 -1
- package/dist/lint/stylelint/rules.js +11 -6
- package/dist/lint/weakened.d.ts +8 -0
- package/dist/lint/weakened.d.ts.map +1 -1
- package/dist/lint/weakened.js +44 -1
- package/dist/messages/de.d.ts.map +1 -1
- package/dist/messages/de.js +15 -0
- package/dist/messages/es.d.ts.map +1 -1
- package/dist/messages/es.js +15 -0
- package/dist/messages/fr.d.ts.map +1 -1
- package/dist/messages/fr.js +15 -0
- package/dist/messages/zh-hans.d.ts.map +1 -1
- package/dist/messages/zh-hans.js +15 -0
- package/dist/page/bar-title.d.ts +25 -0
- package/dist/page/bar-title.d.ts.map +1 -0
- package/dist/page/bar-title.js +10 -0
- package/dist/page/contract.d.ts +11 -1
- package/dist/page/contract.d.ts.map +1 -1
- package/dist/page/empty-state.d.ts +5 -2
- package/dist/page/empty-state.d.ts.map +1 -1
- package/dist/page/empty-state.js +14 -3
- package/dist/page/facts.d.ts +19 -2
- package/dist/page/facts.d.ts.map +1 -1
- package/dist/page/facts.js +26 -5
- package/dist/page/index.d.ts +8 -0
- package/dist/page/index.d.ts.map +1 -1
- package/dist/page/index.js +9 -0
- package/dist/page/page-bar.d.ts.map +1 -1
- package/dist/page/page-bar.js +2 -7
- package/dist/page/page-summary.d.ts +2 -1
- package/dist/page/page-summary.d.ts.map +1 -1
- package/dist/page/page-summary.js +1 -1
- package/dist/page/run-button.d.ts +26 -0
- package/dist/page/run-button.d.ts.map +1 -0
- package/dist/page/run-button.js +31 -0
- package/dist/page/run-list.d.ts +28 -0
- package/dist/page/run-list.d.ts.map +1 -0
- package/dist/page/run-list.js +88 -0
- package/dist/page/run-queue.d.ts +78 -0
- package/dist/page/run-queue.d.ts.map +1 -0
- package/dist/page/run-queue.js +93 -0
- package/dist/page/section.d.ts +6 -1
- package/dist/page/section.d.ts.map +1 -1
- package/dist/page/section.js +34 -16
- package/dist/shell/commands/command-palette.d.ts.map +1 -1
- package/dist/shell/commands/command-palette.js +5 -1
- package/dist/shell/parts/header.js +1 -1
- package/dist/surfaces.d.ts +15 -1
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +19 -2
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +3 -0
- package/dist/testing/pseudo-locale.d.ts +41 -0
- package/dist/testing/pseudo-locale.d.ts.map +1 -0
- package/dist/testing/pseudo-locale.js +74 -0
- package/dist/testing/quality.d.ts +6 -0
- package/dist/testing/quality.d.ts.map +1 -1
- package/dist/testing/quality.js +139 -1
- package/dist/tokens/bridge-sheet.d.ts +21 -0
- package/dist/tokens/bridge-sheet.d.ts.map +1 -0
- package/dist/tokens/bridge-sheet.js +68 -0
- package/dist/tokens/emit.d.ts +6 -1
- package/dist/tokens/emit.d.ts.map +1 -1
- package/dist/tokens/emit.js +26 -1
- package/dist/ui/accordion.js +1 -1
- package/dist/ui/card.d.ts +32 -4
- package/dist/ui/card.d.ts.map +1 -1
- package/dist/ui/card.js +26 -3
- package/dist/ui/collapsible.d.ts +4 -2
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/collapsible.js +1 -1
- package/dist/ui/combobox.js +1 -1
- package/dist/ui/meter.d.ts +34 -3
- package/dist/ui/meter.d.ts.map +1 -1
- package/dist/ui/meter.guard.d.ts +2 -0
- package/dist/ui/meter.guard.d.ts.map +1 -1
- package/dist/ui/meter.guard.js +20 -0
- package/dist/ui/meter.js +23 -7
- package/dist/ui/primitive.contract.d.ts.map +1 -1
- package/dist/ui/primitive.contract.js +7 -0
- package/dist/ui/remote-pad.d.ts +62 -0
- package/dist/ui/remote-pad.d.ts.map +1 -0
- package/dist/ui/remote-pad.guard.d.ts +21 -0
- package/dist/ui/remote-pad.guard.d.ts.map +1 -0
- package/dist/ui/remote-pad.guard.js +6 -0
- package/dist/ui/remote-pad.js +148 -0
- package/dist/ui/segmented.d.ts.map +1 -1
- package/dist/ui/segmented.js +4 -0
- package/dist/ui/skeleton.d.ts +9 -4
- package/dist/ui/skeleton.d.ts.map +1 -1
- package/dist/ui/skeleton.guard.d.ts +6 -2
- package/dist/ui/skeleton.guard.d.ts.map +1 -1
- package/dist/ui/skeleton.guard.js +4 -0
- package/dist/ui/skeleton.js +2 -1
- package/dist/ui/slots.d.ts +2 -1
- package/dist/ui/slots.d.ts.map +1 -1
- package/dist/ui/slots.js +2 -1
- package/dist/vite/allotment.d.ts +1 -1
- package/dist/vite/allotment.d.ts.map +1 -1
- package/dist/vite/allotment.js +15 -1
- package/dist/vite/doc.d.ts +1 -1
- package/dist/vite/doc.d.ts.map +1 -1
- package/dist/vite/doc.js +12 -2
- package/dist/vite/head.d.ts +4 -3
- package/dist/vite/head.d.ts.map +1 -1
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +4 -1
- package/dist/vite/shell-worker.d.ts +6 -0
- package/dist/vite/shell-worker.d.ts.map +1 -0
- package/dist/vite/shell-worker.js +92 -0
- package/docs/astro.md +19 -4
- package/docs/bar-list.md +3 -2
- package/docs/bar-title.md +33 -0
- package/docs/basalt-provider.md +2 -1
- package/docs/card.md +24 -4
- package/docs/chain-view.md +12 -7
- package/docs/chart-card.md +3 -2
- package/docs/collapsible.md +4 -2
- package/docs/control-home.md +4 -2
- package/docs/create-run-queue.md +40 -0
- package/docs/data-panel.md +3 -2
- package/docs/de.md +1 -1
- package/docs/empty-state.md +3 -1
- package/docs/es.md +1 -1
- package/docs/event-list.md +3 -2
- package/docs/fact.md +6 -1
- package/docs/facts.md +5 -1
- package/docs/fr.md +1 -1
- package/docs/live-query.md +1 -1
- package/docs/meter.md +17 -13
- package/docs/mini-bars.md +7 -5
- package/docs/pseudo-basalt-messages.md +30 -0
- package/docs/pseudo-messages.md +27 -0
- package/docs/quality.md +2 -1
- package/docs/recipes/localise-app.md +2 -2
- package/docs/remote-pad.md +40 -0
- package/docs/row-list.md +3 -2
- package/docs/run-button.md +45 -0
- package/docs/run-list.md +71 -0
- package/docs/section.md +7 -1
- package/docs/set-scheme.md +2 -2
- package/docs/skeleton.md +4 -3
- package/docs/slots.md +1 -1
- package/docs/sparkline.md +5 -2
- package/docs/stat-card.md +6 -4
- package/docs/testing.md +64 -0
- package/docs/use-local-control.md +8 -1
- package/docs/use-runs.md +32 -0
- package/docs/vite.md +12 -2
- package/docs/zh-hans.md +1 -1
- package/llms.txt +88 -21
- package/migrations/areas/shadcn.json +338 -0
- package/package.json +9 -2
- package/src/astro/shiki.ts +3 -1
- package/src/cards/bar-list.tsx +2 -1
- package/src/cards/chain-view.tsx +167 -55
- package/src/cards/contract.ts +8 -1
- package/src/cards/data-panel.tsx +1 -0
- package/src/cards/event-list.tsx +2 -1
- package/src/cards/index.ts +1 -0
- package/src/cards/row-list.tsx +2 -1
- package/src/cards/stat-card-parts.tsx +9 -7
- package/src/cards/stat-card.tsx +39 -12
- package/src/charts/core/compile.ts +31 -19
- package/src/charts/core/cursor.ts +11 -3
- package/src/charts/core/tooltip-said.ts +55 -0
- package/src/charts/focus.tsx +4 -1
- package/src/charts/parts/chart-card.tsx +1 -0
- package/src/cli/agent-note.ts +12 -5
- package/src/cli/budget/index.ts +22 -5
- package/src/cli/config.ts +1 -1
- package/src/cli/doctor/app.ts +75 -23
- package/src/cli/doctor/eject.ts +30 -10
- package/src/cli/doctor/guards.ts +11 -8
- package/src/cli/doctor/hook.ts +1 -1
- package/src/cli/doctor/install.ts +61 -24
- package/src/cli/doctor/translations.ts +13 -4
- package/src/cli/doctor/types.ts +2 -3
- package/src/cli/doctor/wiring.ts +30 -16
- package/src/cli/eject/dropped-slots.ts +11 -0
- package/src/cli/eject/index.ts +13 -9
- package/src/cli/help.ts +34 -10
- package/src/cli/index.ts +56 -14
- package/src/cli/init/index.ts +64 -5
- package/src/cli/init/locales.ts +41 -8
- package/src/cli/init/router-seeds.ts +17 -3
- package/src/cli/init/steps.ts +308 -41
- package/src/cli/lint/baseline.ts +141 -0
- package/src/cli/lint/engine.ts +33 -10
- package/src/cli/lint/hook.ts +11 -3
- package/src/cli/lint/index.ts +77 -12
- package/src/cli/manifest.ts +132 -4
- package/src/cli/migrate/census.ts +35 -1
- package/src/cli/migrate/index.ts +46 -3
- package/src/cli/migrate/lost-classes.ts +203 -0
- package/src/cli/migrate/rows.ts +21 -0
- package/src/cli/package-manager.ts +4 -1
- package/src/cli/peers.ts +11 -0
- package/src/cli/presets.ts +32 -11
- package/src/cli/resolver.ts +58 -10
- package/src/cli/router-wiring.ts +3 -1
- package/src/cli/sync/engine.ts +30 -14
- package/src/cli/sync/index.ts +7 -4
- package/src/cli/sync/render.ts +29 -37
- package/src/cli/tokens-css.ts +42 -5
- package/src/controls/contract.ts +2 -0
- package/src/controls/control-home.tsx +15 -4
- package/src/controls/local-control.ts +49 -3
- package/src/core/cn.ts +9 -5
- package/src/core/frame-figure.tsx +7 -1
- package/src/core/frame-head.tsx +32 -6
- package/src/core/frame-regions.tsx +18 -8
- package/src/core/info-hint.tsx +26 -0
- package/src/core/mark-tone.ts +10 -3
- package/src/core/mark-types.ts +4 -2
- package/src/core/messages/chain.ts +2 -1
- package/src/core/messages/index.ts +4 -0
- package/src/core/messages/runs.ts +40 -0
- package/src/core/phase.ts +22 -2
- package/src/core/ports.ts +13 -1
- package/src/core/provider.tsx +7 -3
- package/src/core/scheme.ts +6 -2
- package/src/core/spark/mini-bars.tsx +59 -15
- package/src/core/spark/sparkline.tsx +26 -4
- package/src/css/bridge.css +63 -0
- package/src/css/generate.ts +40 -3
- package/src/data/live/live-query.ts +4 -3
- package/src/lint/preset.ts +52 -13
- package/src/lint/rules/class/table.ts +3 -1
- package/src/lint/rules/structure/control-home.ts +1 -1
- package/src/lint/rules/structure/import-boundary.ts +2 -0
- package/src/lint/rules/structure/label-literal.ts +3 -1
- package/src/lint/shadcn.ts +91 -0
- package/src/lint/stylelint/render.ts +31 -1
- package/src/lint/stylelint/rules.ts +19 -7
- package/src/lint/weakened.ts +59 -1
- package/src/messages/de.ts +20 -0
- package/src/messages/es.ts +20 -0
- package/src/messages/fr.ts +20 -0
- package/src/messages/zh-hans.ts +20 -0
- package/src/page/bar-title.tsx +35 -0
- package/src/page/contract.ts +11 -1
- package/src/page/empty-state.tsx +18 -8
- package/src/page/facts.tsx +43 -5
- package/src/page/index.ts +8 -0
- package/src/page/page-bar.tsx +2 -9
- package/src/page/page-summary.tsx +4 -3
- package/src/page/run-button.tsx +52 -0
- package/src/page/run-list.tsx +151 -0
- package/src/page/run-queue.ts +185 -0
- package/src/page/section.tsx +30 -5
- package/src/shell/commands/command-palette.tsx +10 -1
- package/src/shell/parts/header.tsx +1 -1
- package/src/surfaces.ts +18 -1
- package/src/testing/index.ts +1 -0
- package/src/testing/pseudo-locale.ts +149 -0
- package/src/testing/quality.ts +188 -0
- package/src/tokens/bridge-sheet.ts +80 -0
- package/src/tokens/emit.ts +45 -6
- package/src/ui/accordion.tsx +1 -1
- package/src/ui/card.tsx +56 -6
- package/src/ui/collapsible.tsx +5 -3
- package/src/ui/combobox.tsx +1 -1
- package/src/ui/meter.guard.ts +23 -0
- package/src/ui/meter.tsx +76 -27
- package/src/ui/no-restyle.generated.json +8 -0
- package/src/ui/primitive.contract.ts +7 -0
- package/src/ui/remote-pad.guard.ts +24 -0
- package/src/ui/remote-pad.tsx +249 -0
- package/src/ui/segmented.tsx +6 -0
- package/src/ui/skeleton.guard.ts +7 -2
- package/src/ui/skeleton.tsx +10 -4
- package/src/ui/slots.ts +2 -1
- package/src/vite/allotment.ts +15 -1
- package/src/vite/doc.ts +12 -2
- package/src/vite/head.ts +4 -3
- package/src/vite/index.ts +4 -1
- package/src/vite/shell-worker.ts +115 -0
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"area": "shadcn",
|
|
4
|
+
"rows": [
|
|
5
|
+
{
|
|
6
|
+
"id": "shadcn-accordion",
|
|
7
|
+
"since": "3.1.0",
|
|
8
|
+
"kind": "replace",
|
|
9
|
+
"from": "file:components/ui/accordion.tsx",
|
|
10
|
+
"to": "basalt-ui/ui/accordion",
|
|
11
|
+
"note": "a shadcn copy: delete the file and import the shipped part. Item, Trigger and Content keep their names. type=\"multiple\" is the multiple prop (one item is open by default), collapsible is dropped, value and defaultValue are arrays, asChild is render",
|
|
12
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"id": "shadcn-alert",
|
|
16
|
+
"since": "3.1.0",
|
|
17
|
+
"kind": "replace",
|
|
18
|
+
"from": "file:components/ui/alert.tsx",
|
|
19
|
+
"to": "basalt-ui/ui/alert",
|
|
20
|
+
"note": "a shadcn copy: delete the file and import the shipped part. variant destructive is tone=\"bad\", default is tone=\"neutral\"; AlertTitle is the title prop, AlertDescription is the children",
|
|
21
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "shadcn-alert-dialog",
|
|
25
|
+
"since": "3.1.0",
|
|
26
|
+
"kind": "replace",
|
|
27
|
+
"from": "file:components/ui/alert-dialog.tsx",
|
|
28
|
+
"to": "basalt-ui/ui/dialog",
|
|
29
|
+
"note": "a shadcn copy: delete the file and import basalt-ui/ui/dialog. AlertDialog, AlertDialogTrigger and AlertDialogContent: the content takes title (required) and description in place of Header, Title and Description; the answers are its children, each a DialogClose with render={<Button />} (AlertDialogAction: variant=\"danger\" or \"primary\"); asChild is render",
|
|
30
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "shadcn-avatar",
|
|
34
|
+
"since": "3.1.0",
|
|
35
|
+
"kind": "replace",
|
|
36
|
+
"from": "file:components/ui/avatar.tsx",
|
|
37
|
+
"to": "basalt-ui/ui/avatar",
|
|
38
|
+
"note": "a shadcn copy: delete the file and import the shipped part. one Avatar with name (required, draws the initials) and src; AvatarImage and AvatarFallback are dropped. size is a prop",
|
|
39
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"id": "shadcn-badge",
|
|
43
|
+
"since": "3.1.0",
|
|
44
|
+
"kind": "replace",
|
|
45
|
+
"from": "file:components/ui/badge.tsx",
|
|
46
|
+
"to": "basalt-ui/ui/badge",
|
|
47
|
+
"note": "a shadcn copy: delete the file and import the shipped part. variant default is tone=\"accent\", secondary and outline are tone=\"neutral\", destructive is tone=\"bad\" (also good, warn, info). children is a string; a leading glyph is icon, a state dot is dot. A number is CountBadge, a change is DeltaBadge; there is no asChild",
|
|
48
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "shadcn-button",
|
|
52
|
+
"since": "3.1.0",
|
|
53
|
+
"kind": "replace",
|
|
54
|
+
"from": "file:components/ui/button.tsx",
|
|
55
|
+
"to": "basalt-ui/ui/button",
|
|
56
|
+
"note": "a shadcn copy: delete the file and import the shipped part. variant default (and none) is \"primary\"; outline and secondary are \"secondary\" (the default here); ghost is \"ghost\"; destructive is \"danger\"; link is an <a> with no Button. size default and lg are \"md\"; sm and xs are \"sm\"; icon is shape=\"icon\" with a required aria-label; icon-sm and icon-xs are shape=\"icon\" size=\"sm\". asChild is render (with nativeButton={false} for a link). buttonVariants takes the same values",
|
|
57
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"id": "shadcn-calendar",
|
|
61
|
+
"since": "3.1.0",
|
|
62
|
+
"kind": "replace",
|
|
63
|
+
"from": "file:components/ui/calendar.tsx",
|
|
64
|
+
"to": "basalt-ui/ui/calendar",
|
|
65
|
+
"note": "a shadcn copy: delete the file and import the shipped part. value and onValueChange carry YYYY-MM-DD strings in place of selected and onSelect with a Date; mode is \"single\" or \"range\"; aria-label or aria-labelledby is required; disabled is a function of the day",
|
|
66
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"id": "shadcn-card",
|
|
70
|
+
"since": "3.1.0",
|
|
71
|
+
"kind": "replace",
|
|
72
|
+
"from": "file:components/ui/card.tsx",
|
|
73
|
+
"to": "basalt-ui/ui/card",
|
|
74
|
+
"note": "a shadcn copy: delete the file and import the shipped part. Card and flush; CardHeader, CardTitle, CardDescription and CardAction are CardBand (title, subtitle, actions), CardContent is children or Inset; CardFooter is app markup. A framed chart or number is ChartCard or StatCard from basalt-ui/cards",
|
|
75
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"id": "shadcn-checkbox",
|
|
79
|
+
"since": "3.1.0",
|
|
80
|
+
"kind": "replace",
|
|
81
|
+
"from": "file:components/ui/checkbox.tsx",
|
|
82
|
+
"to": "basalt-ui/ui/checkbox",
|
|
83
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs checkbox` before swapping the import",
|
|
84
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"id": "shadcn-collapsible",
|
|
88
|
+
"since": "3.1.0",
|
|
89
|
+
"kind": "replace",
|
|
90
|
+
"from": "file:components/ui/collapsible.tsx",
|
|
91
|
+
"to": "basalt-ui/ui/collapsible",
|
|
92
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs collapsible` before swapping the import",
|
|
93
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "shadcn-combobox",
|
|
97
|
+
"since": "3.1.0",
|
|
98
|
+
"kind": "replace",
|
|
99
|
+
"from": "file:components/ui/combobox.tsx",
|
|
100
|
+
"to": "basalt-ui/ui/combobox",
|
|
101
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs combobox` before swapping the import",
|
|
102
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"id": "shadcn-context-menu",
|
|
106
|
+
"since": "3.1.0",
|
|
107
|
+
"kind": "replace",
|
|
108
|
+
"from": "file:components/ui/context-menu.tsx",
|
|
109
|
+
"to": "basalt-ui/ui/context-menu",
|
|
110
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs context-menu` before swapping the import",
|
|
111
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"id": "shadcn-dialog",
|
|
115
|
+
"since": "3.1.0",
|
|
116
|
+
"kind": "replace",
|
|
117
|
+
"from": "file:components/ui/dialog.tsx",
|
|
118
|
+
"to": "basalt-ui/ui/dialog",
|
|
119
|
+
"note": "a shadcn copy: delete the file and import the shipped part. DialogContent takes title (required) and description in place of DialogHeader, DialogTitle and DialogDescription; DialogOverlay, DialogPortal and the close button are built in; DialogFooter is a div; max-width classes are size sm|md|lg|wide; asChild is render",
|
|
120
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"id": "shadcn-drawer",
|
|
124
|
+
"since": "3.1.0",
|
|
125
|
+
"kind": "replace",
|
|
126
|
+
"from": "file:components/ui/drawer.tsx",
|
|
127
|
+
"to": "basalt-ui/ui/sheet",
|
|
128
|
+
"note": "a shadcn copy: delete the file and import basalt-ui/ui/sheet. Sheet, SheetTrigger, SheetContent (title is a prop, footer is the footer prop), SheetClose; asChild is render",
|
|
129
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"id": "shadcn-dropdown-menu",
|
|
133
|
+
"since": "3.1.0",
|
|
134
|
+
"kind": "replace",
|
|
135
|
+
"from": "file:components/ui/dropdown-menu.tsx",
|
|
136
|
+
"to": "basalt-ui/ui/menu",
|
|
137
|
+
"note": "a shadcn copy: delete the file and import basalt-ui/ui/menu. DropdownMenu* is Menu, MenuTrigger, MenuContent, MenuItem, MenuGroup (label prop), MenuCheckboxItem, MenuRadioGroup, MenuRadioItem, MenuSub (label prop), MenuSeparator; a destructive item is the destructive prop; onSelect is onClick; asChild is render",
|
|
138
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"id": "shadcn-input",
|
|
142
|
+
"since": "3.1.0",
|
|
143
|
+
"kind": "replace",
|
|
144
|
+
"from": "file:components/ui/input.tsx",
|
|
145
|
+
"to": "basalt-ui/ui/input",
|
|
146
|
+
"note": "a shadcn copy: delete the file and import the shipped part. same name; size is \"md\" (default) or \"sm\" and replaces height classes; onValueChange gives the text (onChange still works); start and end draw an icon or unit inside the field",
|
|
147
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "shadcn-input-otp",
|
|
151
|
+
"since": "3.1.0",
|
|
152
|
+
"kind": "replace",
|
|
153
|
+
"from": "file:components/ui/input-otp.tsx",
|
|
154
|
+
"to": "basalt-ui/ui/one-time-code",
|
|
155
|
+
"note": "a shadcn copy: delete the file and import basalt-ui/ui/one-time-code. OneTimeCode is one part: the slot and group subcomponents are dropped",
|
|
156
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"id": "shadcn-kbd",
|
|
160
|
+
"since": "3.1.0",
|
|
161
|
+
"kind": "replace",
|
|
162
|
+
"from": "file:components/ui/kbd.tsx",
|
|
163
|
+
"to": "basalt-ui/ui/kbd",
|
|
164
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs kbd` before swapping the import",
|
|
165
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"id": "shadcn-label",
|
|
169
|
+
"since": "3.1.0",
|
|
170
|
+
"kind": "replace",
|
|
171
|
+
"from": "file:components/ui/label.tsx",
|
|
172
|
+
"to": "basalt-ui/ui/field",
|
|
173
|
+
"note": "a shadcn copy: delete the file and import basalt-ui/ui/field. a Field with label, description and error props, or FieldLabel inside Field; htmlFor is not needed inside a Field",
|
|
174
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"id": "shadcn-popover",
|
|
178
|
+
"since": "3.1.0",
|
|
179
|
+
"kind": "replace",
|
|
180
|
+
"from": "file:components/ui/popover.tsx",
|
|
181
|
+
"to": "basalt-ui/ui/popover",
|
|
182
|
+
"note": "a shadcn copy: delete the file and import the shipped part. PopoverContent needs aria-label or aria-labelledby; side, align, sideOffset and anchor are on it (PopoverAnchor is dropped); PopoverHeader and PopoverTitle are markup; asChild is render",
|
|
183
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "shadcn-progress",
|
|
187
|
+
"since": "3.1.0",
|
|
188
|
+
"kind": "replace",
|
|
189
|
+
"from": "file:components/ui/progress.tsx",
|
|
190
|
+
"to": "basalt-ui/ui/progress",
|
|
191
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs progress` before swapping the import",
|
|
192
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"id": "shadcn-radio-group",
|
|
196
|
+
"since": "3.1.0",
|
|
197
|
+
"kind": "replace",
|
|
198
|
+
"from": "file:components/ui/radio-group.tsx",
|
|
199
|
+
"to": "basalt-ui/ui/radio-group",
|
|
200
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs radio-group` before swapping the import",
|
|
201
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"id": "shadcn-resizable",
|
|
205
|
+
"since": "3.1.0",
|
|
206
|
+
"kind": "replace",
|
|
207
|
+
"from": "file:components/ui/resizable.tsx",
|
|
208
|
+
"to": "basalt-ui/ui/resizable",
|
|
209
|
+
"note": "a shadcn copy: delete the file and import the shipped part. ResizablePanelGroup, ResizablePanel and ResizableHandle keep their names; direction is orientation, withHandle is grip; sizes follow react-resizable-panels (\"35%\", a bare number is px)",
|
|
210
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"id": "shadcn-scroll-area",
|
|
214
|
+
"since": "3.1.0",
|
|
215
|
+
"kind": "replace",
|
|
216
|
+
"from": "file:components/ui/scroll-area.tsx",
|
|
217
|
+
"to": "basalt-ui/ui/scroll-area",
|
|
218
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs scroll-area` before swapping the import",
|
|
219
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"id": "shadcn-select",
|
|
223
|
+
"since": "3.1.0",
|
|
224
|
+
"kind": "replace",
|
|
225
|
+
"from": "file:components/ui/select.tsx",
|
|
226
|
+
"to": "basalt-ui/ui/select",
|
|
227
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs select` before swapping the import",
|
|
228
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"id": "shadcn-separator",
|
|
232
|
+
"since": "3.1.0",
|
|
233
|
+
"kind": "replace",
|
|
234
|
+
"from": "file:components/ui/separator.tsx",
|
|
235
|
+
"to": "basalt-ui/ui/separator",
|
|
236
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs separator` before swapping the import",
|
|
237
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"id": "shadcn-sheet",
|
|
241
|
+
"since": "3.1.0",
|
|
242
|
+
"kind": "replace",
|
|
243
|
+
"from": "file:components/ui/sheet.tsx",
|
|
244
|
+
"to": "basalt-ui/ui/sheet",
|
|
245
|
+
"note": "a shadcn copy: delete the file and import the shipped part. SheetContent takes title (required) in place of SheetHeader and SheetTitle, and footer in place of SheetFooter; asChild is render",
|
|
246
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"id": "shadcn-skeleton",
|
|
250
|
+
"since": "3.1.0",
|
|
251
|
+
"kind": "replace",
|
|
252
|
+
"from": "file:components/ui/skeleton.tsx",
|
|
253
|
+
"to": "basalt-ui/ui/skeleton",
|
|
254
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs skeleton` before swapping the import",
|
|
255
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "shadcn-slider",
|
|
259
|
+
"since": "3.1.0",
|
|
260
|
+
"kind": "replace",
|
|
261
|
+
"from": "file:components/ui/slider.tsx",
|
|
262
|
+
"to": "basalt-ui/ui/slider",
|
|
263
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs slider` before swapping the import",
|
|
264
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"id": "shadcn-sonner",
|
|
268
|
+
"since": "3.1.0",
|
|
269
|
+
"kind": "replace",
|
|
270
|
+
"from": "file:components/ui/sonner.tsx",
|
|
271
|
+
"to": "basalt-ui/ui/toast",
|
|
272
|
+
"note": "a shadcn copy: delete the file and import basalt-ui/ui/toast. call notify('success', { message }) from basalt-ui instead of toast(); the app mounts ToastHost, not a Toaster",
|
|
273
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"id": "shadcn-switch",
|
|
277
|
+
"since": "3.1.0",
|
|
278
|
+
"kind": "replace",
|
|
279
|
+
"from": "file:components/ui/switch.tsx",
|
|
280
|
+
"to": "basalt-ui/ui/switch",
|
|
281
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs switch` before swapping the import",
|
|
282
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"id": "shadcn-table",
|
|
286
|
+
"since": "3.1.0",
|
|
287
|
+
"kind": "replace",
|
|
288
|
+
"from": "file:components/ui/table.tsx",
|
|
289
|
+
"to": "basalt-ui/ui/table",
|
|
290
|
+
"note": "a shadcn copy: delete the file and import the shipped part. The shipped part's props differ from the shadcn copy: read `basalt-ui docs table` before swapping the import",
|
|
291
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
"id": "shadcn-tabs",
|
|
295
|
+
"since": "3.1.0",
|
|
296
|
+
"kind": "replace",
|
|
297
|
+
"from": "file:components/ui/tabs.tsx",
|
|
298
|
+
"to": "basalt-ui/ui/tabs",
|
|
299
|
+
"note": "a shadcn copy: delete the file and import the shipped part. Tabs, TabsList, TabsTrigger and TabsContent keep their names. The shadcn default look is variant=\"segment\" on Tabs, its line look is the default \"line\"; size is \"md\" or \"sm\"; asChild is render",
|
|
300
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"id": "shadcn-textarea",
|
|
304
|
+
"since": "3.1.0",
|
|
305
|
+
"kind": "replace",
|
|
306
|
+
"from": "file:components/ui/textarea.tsx",
|
|
307
|
+
"to": "basalt-ui/ui/textarea",
|
|
308
|
+
"note": "a shadcn copy: delete the file and import the shipped part. same name; size \"md\" or \"sm\"; rows (default 3) sets the floor and it grows to 10; value and defaultValue are strings; onValueChange gives the text",
|
|
309
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
"id": "shadcn-toggle-group",
|
|
313
|
+
"since": "3.1.0",
|
|
314
|
+
"kind": "replace",
|
|
315
|
+
"from": "file:components/ui/toggle-group.tsx",
|
|
316
|
+
"to": "basalt-ui/ui/segmented",
|
|
317
|
+
"note": "a shadcn copy: delete the file and import basalt-ui/ui/segmented. Segmented takes options; type=\"multiple\" is multiple",
|
|
318
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
"id": "shadcn-tooltip",
|
|
322
|
+
"since": "3.1.0",
|
|
323
|
+
"kind": "replace",
|
|
324
|
+
"from": "file:components/ui/tooltip.tsx",
|
|
325
|
+
"to": "basalt-ui/ui/tooltip",
|
|
326
|
+
"note": "a shadcn copy: delete the file and import the shipped part. one Tooltip: TooltipProvider, TooltipTrigger and TooltipContent are dropped. <Tooltip label=\"Copy\" side=\"top\"><Button .../></Tooltip>; label is a string, delayDuration is delay. Rich content is a Popover",
|
|
327
|
+
"verify": "tsc, then basalt-ui doctor"
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
"tokens": {
|
|
331
|
+
"renamed": [],
|
|
332
|
+
"valueShifts": []
|
|
333
|
+
},
|
|
334
|
+
"storage": [],
|
|
335
|
+
"urls": [],
|
|
336
|
+
"attrs": [],
|
|
337
|
+
"rules": []
|
|
338
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "basalt-ui",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.0",
|
|
4
4
|
"description": "Opinionated framework for React apps on Base UI, Tailwind 4 and TanStack — primitives, app shell, TanStack Charts, toolchain presets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"charts",
|
|
@@ -372,6 +372,11 @@
|
|
|
372
372
|
"import": "./dist/lint/index.js",
|
|
373
373
|
"default": "./dist/lint/index.js"
|
|
374
374
|
},
|
|
375
|
+
"./lint/shadcn": {
|
|
376
|
+
"types": "./dist/lint/shadcn.d.ts",
|
|
377
|
+
"import": "./dist/lint/shadcn.js",
|
|
378
|
+
"default": "./dist/lint/shadcn.js"
|
|
379
|
+
},
|
|
375
380
|
"./testing": {
|
|
376
381
|
"types": "./dist/testing/index.d.ts",
|
|
377
382
|
"import": "./dist/testing/index.js",
|
|
@@ -436,6 +441,7 @@
|
|
|
436
441
|
"./table.css": "./dist/table/table.css",
|
|
437
442
|
"./tailwind.css": "./dist/css/tailwind.css",
|
|
438
443
|
"./archify.css": "./dist/css/archify.css",
|
|
444
|
+
"./bridge.css": "./dist/css/bridge.css",
|
|
439
445
|
"./astro": {
|
|
440
446
|
"types": "./dist/astro/index.d.ts",
|
|
441
447
|
"import": "./dist/astro/index.js",
|
|
@@ -483,7 +489,8 @@
|
|
|
483
489
|
"rehype-sanitize": "^6.0.0",
|
|
484
490
|
"remark-gfm": "^4.0.1",
|
|
485
491
|
"remend": "^1.4.0",
|
|
486
|
-
"shiki": "^4.5.0"
|
|
492
|
+
"shiki": "^4.5.0",
|
|
493
|
+
"yaml": "^2.9.1"
|
|
487
494
|
},
|
|
488
495
|
"devDependencies": {
|
|
489
496
|
"@ai-sdk/react": "4.0.170",
|
package/src/astro/shiki.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import type { BuiltinTheme } from 'shiki'
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* The Shiki setup a plain Astro site (no Starlight) needs for code that follows the scheme. Astro writes
|
|
3
5
|
* each token with both themes' colors as custom properties (`--shiki-light`, `--shiki-dark`) and no color
|
|
@@ -6,7 +8,7 @@
|
|
|
6
8
|
|
|
7
9
|
/** The shape of Astro's `markdown.shikiConfig` this export fills. */
|
|
8
10
|
export type BasaltShikiConfig = {
|
|
9
|
-
themes: { light:
|
|
11
|
+
themes: { light: BuiltinTheme; dark: BuiltinTheme }
|
|
10
12
|
defaultColor: false
|
|
11
13
|
wrap: boolean
|
|
12
14
|
}
|
package/src/cards/bar-list.tsx
CHANGED
|
@@ -169,7 +169,7 @@ export function BarList<I = unknown>(props: BarListProps<I>): ReactElement {
|
|
|
169
169
|
const { items, max, format, phase, empty, focus, series } = props
|
|
170
170
|
const mono = props.mono ?? false
|
|
171
171
|
const rows = listRows(props.bodyRows)
|
|
172
|
-
const { title, subtitle, icon, info } = props
|
|
172
|
+
const { title, subtitle, icon, info, headingLevel } = props
|
|
173
173
|
const f = useFormat()
|
|
174
174
|
const t = useMessages(lists)
|
|
175
175
|
const rowsShown = useRowsShown()
|
|
@@ -214,6 +214,7 @@ export function BarList<I = unknown>(props: BarListProps<I>): ReactElement {
|
|
|
214
214
|
subtitle={subtitle}
|
|
215
215
|
icon={icon}
|
|
216
216
|
info={info}
|
|
217
|
+
headingLevel={headingLevel}
|
|
217
218
|
tools={
|
|
218
219
|
scrolls ? (
|
|
219
220
|
<span
|