basalt-ui 2.29.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 +68 -108
- package/CHANGELOG.md +113 -39
- package/MIGRATING.md +1682 -6575
- package/README.md +400 -505
- package/agent/reviewer/basalt-design-reviewer.md +33 -0
- package/agent/reviewer/basalt-site-reviewer.md +27 -0
- package/agent/reviewer/rubric-site.md +98 -0
- package/agent/reviewer/rubric.md +140 -0
- package/agent/rules/basalt-charts.md +25 -23
- package/agent/rules/basalt-page.md +60 -0
- package/agent/rules/basalt-site.md +35 -0
- package/agent/rules/basalt-state.md +37 -30
- package/agent/rules/basalt-tokens.md +25 -37
- package/agent/rules/basalt-ui.md +45 -0
- package/agent/skills/basalt-app/SKILL.md +59 -274
- package/agent/skills/basalt-app/references/live.md +112 -0
- package/agent/skills/basalt-app/references/migrate.md +111 -0
- package/agent/skills/basalt-app/references/performance.md +69 -0
- package/agent/skills/basalt-app/references/recipes.md +50 -0
- package/agent/skills/basalt-app/references/setup.md +110 -0
- package/agent/skills/basalt-app/references/testing.md +37 -0
- package/agent/skills/basalt-charts/SKILL.md +18 -32
- package/agent/skills/basalt-charts/references/advanced.md +43 -0
- package/agent/skills/basalt-charts/references/custom-marks.md +80 -0
- package/agent/skills/basalt-charts/references/linked-parts.md +83 -0
- package/agent/skills/basalt-design/SKILL.md +47 -25
- package/agent/skills/basalt-design/references/ai.md +64 -0
- package/agent/skills/basalt-design/references/anti-defaults.md +54 -18
- package/agent/skills/basalt-design/references/cards.md +73 -0
- package/agent/skills/basalt-design/references/chart-color.md +30 -0
- package/agent/skills/basalt-design/references/chart-form.md +43 -0
- package/agent/skills/basalt-design/references/chart-honest.md +35 -0
- package/agent/skills/basalt-design/references/chart-labels.md +32 -0
- package/agent/skills/basalt-design/references/chart-view.md +40 -0
- package/agent/skills/basalt-design/references/charts.md +15 -0
- package/agent/skills/basalt-design/references/concept.md +55 -27
- package/agent/skills/basalt-design/references/controls.md +29 -0
- package/agent/skills/basalt-design/references/copy.md +65 -0
- package/agent/skills/basalt-design/references/encoding.md +87 -0
- package/agent/skills/basalt-design/references/forms.md +70 -0
- package/agent/skills/basalt-design/references/gaps.md +54 -0
- package/agent/skills/basalt-design/references/ladder.md +60 -0
- package/agent/skills/basalt-design/references/motion.md +73 -0
- package/agent/skills/basalt-design/references/parts.md +203 -0
- package/agent/skills/basalt-design/references/phone.md +53 -0
- package/agent/skills/basalt-design/references/state.md +40 -0
- package/agent/skills/basalt-design/references/states.md +30 -27
- package/agent/skills/basalt-design/references/table.md +141 -0
- package/agent/skills/basalt-site/SKILL.md +43 -0
- package/agent/skills/basalt-site/references/content.md +37 -0
- package/agent/templates/AGENTS-block.md.tpl +6 -26
- package/agent/templates/AGENTS-block.site.md.tpl +15 -0
- package/agent/templates/AGENTS-block.tokens.md.tpl +11 -0
- package/agent/templates/DESIGN.md.tpl +22 -31
- package/agent/templates/__root.start.tpl +64 -0
- package/agent/templates/__root.tpl +9 -18
- package/agent/templates/_app-error.i18n.tpl +45 -0
- package/agent/templates/_app-error.tpl +43 -0
- package/agent/templates/_app-index.i18n.tpl +27 -0
- package/agent/templates/_app-index.tpl +24 -0
- package/agent/templates/_app-missing.i18n.tpl +35 -0
- package/agent/templates/_app-missing.tpl +32 -0
- package/agent/templates/_app-pending.i18n.tpl +19 -0
- package/agent/templates/_app-pending.tpl +16 -0
- package/agent/templates/_app.tpl +23 -0
- package/agent/templates/basalt.tokens.ts.tpl +15 -0
- package/agent/templates/e2e-app.spec.ts.tpl +11 -0
- package/agent/templates/hook-opencode.js.tpl +42 -0
- package/agent/templates/hook-pi.js.tpl +45 -0
- package/agent/templates/hook-run.js.tpl +52 -0
- package/agent/templates/hook.mjs.tpl +45 -0
- package/agent/templates/i18n.ts.tpl +78 -0
- package/agent/templates/lingui.config.ts.tpl +18 -0
- package/agent/templates/localized-provider.tsx.tpl +42 -0
- package/agent/templates/main.i18n.tpl +64 -0
- package/agent/templates/main.tpl +47 -9
- package/agent/templates/nav.i18n.tpl +23 -0
- package/agent/templates/nav.tpl +12 -10
- package/agent/templates/playwright.config.ts.tpl +16 -0
- package/agent/templates/po.d.ts.tpl +4 -0
- package/agent/templates/router.start.tpl +49 -0
- package/agent/templates/seed-messages.json +74 -0
- package/agent/templates/site-index.astro.tpl +11 -0
- package/agent/templates/site-layout.astro.tpl +28 -0
- package/bin/basalt-ui.mjs +7 -3
- package/blocks/assistant/Assistant.tsx +168 -0
- package/blocks/assistant/block.json +23 -0
- package/blocks/assistant/model.ts +15 -0
- package/blocks/assistant/words.ts +18 -0
- package/blocks/create-flow/NewOrderDialog.tsx +300 -0
- package/blocks/create-flow/block.json +31 -0
- package/blocks/create-flow/model.ts +18 -0
- package/blocks/create-flow/words.ts +77 -0
- package/blocks/list-page/ListPage.tsx +318 -0
- package/blocks/list-page/PartRecord.tsx +142 -0
- package/blocks/list-page/block.json +31 -0
- package/blocks/list-page/model.ts +49 -0
- package/blocks/list-page/words.ts +85 -0
- package/blocks/mailbox/Mailbox.tsx +714 -0
- package/blocks/mailbox/block.json +34 -0
- package/blocks/mailbox/model.ts +39 -0
- package/blocks/mailbox/words.ts +60 -0
- package/blocks/notes-list/NotesList.tsx +176 -0
- package/blocks/notes-list/block.json +23 -0
- package/blocks/notes-list/model.ts +16 -0
- package/blocks/notes-list/words.ts +38 -0
- package/blocks/record-page/RecordPage.tsx +575 -0
- package/blocks/record-page/block.json +31 -0
- package/blocks/record-page/model.ts +84 -0
- package/blocks/record-page/words.ts +106 -0
- package/blocks/settings-page/SettingsPage.tsx +372 -0
- package/blocks/settings-page/block.json +31 -0
- package/blocks/settings-page/model.ts +11 -0
- package/blocks/settings-page/words.ts +115 -0
- package/configs/check.yml +2 -4
- package/configs/lefthook.yml +6 -49
- package/configs/oxfmt-tailwind.json +11 -0
- package/configs/oxlint-app.json +803 -0
- package/configs/oxlint-bridge.json +310 -0
- package/configs/oxlint-parts.json +808 -0
- package/configs/oxlint-site.json +353 -0
- package/configs/stylelint.basalt.json +154 -0
- package/dist/ai/caret.d.ts +7 -0
- package/dist/ai/caret.d.ts.map +1 -0
- package/dist/ai/caret.js +47 -0
- package/dist/ai/catalog/block.d.ts +4 -0
- package/dist/ai/catalog/block.d.ts.map +1 -0
- package/dist/ai/catalog/block.js +87 -0
- package/dist/ai/catalog/define.d.ts +53 -0
- package/dist/ai/catalog/define.d.ts.map +1 -0
- package/dist/ai/catalog/define.js +36 -0
- package/dist/ai/catalog/validate.d.ts +24 -0
- package/dist/ai/catalog/validate.d.ts.map +1 -0
- package/dist/ai/catalog/validate.js +95 -0
- package/dist/ai/composer.d.ts +74 -0
- package/dist/ai/composer.d.ts.map +1 -0
- package/dist/ai/composer.js +423 -0
- package/dist/ai/contract.d.ts +162 -0
- package/dist/ai/contract.d.ts.map +1 -0
- package/dist/ai/glyphs.d.ts +19 -0
- package/dist/ai/glyphs.d.ts.map +1 -0
- package/dist/ai/glyphs.js +44 -0
- package/dist/ai/index.d.ts +23 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +16 -0
- package/dist/ai/mention-text.d.ts +49 -0
- package/dist/ai/mention-text.d.ts.map +1 -0
- package/dist/ai/mention-text.js +57 -0
- package/dist/ai/message.d.ts +69 -0
- package/dist/ai/message.d.ts.map +1 -0
- package/dist/ai/message.js +119 -0
- package/dist/ai/model-picker.d.ts +42 -0
- package/dist/ai/model-picker.d.ts.map +1 -0
- package/dist/ai/model-picker.js +98 -0
- package/dist/ai/part-view.d.ts +18 -0
- package/dist/ai/part-view.d.ts.map +1 -0
- package/dist/ai/part-view.js +87 -0
- package/dist/ai/reasoning-trace.d.ts +34 -0
- package/dist/ai/reasoning-trace.d.ts.map +1 -0
- package/dist/ai/reasoning-trace.js +138 -0
- package/dist/ai/tool-view.d.ts +30 -0
- package/dist/ai/tool-view.d.ts.map +1 -0
- package/dist/ai/tool-view.js +29 -0
- package/dist/astro/BasaltFonts.astro +32 -0
- package/dist/astro/SiteHead.astro +21 -0
- package/dist/astro/build.d.ts +17 -0
- package/dist/astro/build.d.ts.map +1 -0
- package/dist/astro/build.js +69 -0
- package/dist/astro/fonts.d.ts +22 -0
- package/dist/astro/fonts.d.ts.map +1 -0
- package/dist/astro/fonts.js +23 -0
- package/dist/astro/head.d.ts +78 -0
- package/dist/astro/head.d.ts.map +1 -0
- package/dist/astro/head.js +84 -0
- package/dist/astro/index.d.ts +76 -0
- package/dist/astro/index.d.ts.map +1 -0
- package/dist/astro/index.js +111 -0
- package/dist/astro/islands.d.ts +22 -0
- package/dist/astro/islands.d.ts.map +1 -0
- package/dist/astro/islands.js +63 -0
- package/dist/astro/mdx/Chart.astro +25 -0
- package/dist/astro/mdx/DataTable.astro +27 -0
- package/dist/astro/mdx/chart-island.d.ts +60 -0
- package/dist/astro/mdx/chart-island.d.ts.map +1 -0
- package/dist/astro/mdx/chart-island.js +94 -0
- package/dist/astro/mdx/messages.d.ts +9 -0
- package/dist/astro/mdx/messages.d.ts.map +1 -0
- package/dist/astro/mdx/table-island.d.ts +27 -0
- package/dist/astro/mdx/table-island.d.ts.map +1 -0
- package/dist/astro/mdx/table-island.js +45 -0
- package/dist/astro/notes.d.ts +30 -0
- package/dist/astro/notes.d.ts.map +1 -0
- package/dist/astro/notes.js +147 -0
- package/dist/astro/parts.d.ts +24 -0
- package/dist/astro/parts.d.ts.map +1 -0
- package/dist/astro/parts.js +492 -0
- package/dist/astro/shiki.d.ts +29 -0
- package/dist/astro/shiki.d.ts.map +1 -0
- package/dist/astro/shiki.js +8 -0
- package/dist/astro/sources.d.ts +18 -0
- package/dist/astro/sources.d.ts.map +1 -0
- package/dist/astro/sources.js +72 -0
- package/dist/cards/bar-list-scroll.d.ts +29 -0
- package/dist/cards/bar-list-scroll.d.ts.map +1 -0
- package/dist/cards/bar-list-scroll.js +53 -0
- package/dist/cards/bar-list.d.ts +107 -0
- package/dist/cards/bar-list.d.ts.map +1 -0
- package/dist/cards/bar-list.js +270 -0
- package/dist/cards/board.d.ts +80 -0
- package/dist/cards/board.d.ts.map +1 -0
- package/dist/cards/board.js +314 -0
- package/dist/cards/chain-layout.d.ts +59 -0
- package/dist/cards/chain-layout.d.ts.map +1 -0
- package/dist/cards/chain-layout.js +211 -0
- package/dist/cards/chain-view.d.ts +102 -0
- package/dist/cards/chain-view.d.ts.map +1 -0
- package/dist/cards/chain-view.js +548 -0
- package/dist/cards/contract.d.ts +187 -0
- package/dist/cards/contract.d.ts.map +1 -0
- package/dist/cards/data-panel.d.ts +54 -0
- package/dist/cards/data-panel.d.ts.map +1 -0
- package/dist/cards/data-panel.js +352 -0
- package/dist/cards/edge-path.d.ts +38 -0
- package/dist/cards/edge-path.d.ts.map +1 -0
- package/dist/cards/edge-path.js +36 -0
- package/dist/cards/event-list-model.d.ts +67 -0
- package/dist/cards/event-list-model.d.ts.map +1 -0
- package/dist/cards/event-list-model.js +98 -0
- package/dist/cards/event-list.d.ts +84 -0
- package/dist/cards/event-list.d.ts.map +1 -0
- package/dist/cards/event-list.js +359 -0
- package/dist/cards/flow-canvas.d.ts +54 -0
- package/dist/cards/flow-canvas.d.ts.map +1 -0
- package/dist/cards/flow-canvas.js +668 -0
- package/dist/cards/flow-checklist.d.ts +25 -0
- package/dist/cards/flow-checklist.d.ts.map +1 -0
- package/dist/cards/flow-checklist.js +67 -0
- package/dist/cards/flow.d.ts +93 -0
- package/dist/cards/flow.d.ts.map +1 -0
- package/dist/cards/flow.js +45 -0
- package/dist/cards/frame-kit.d.ts +67 -0
- package/dist/cards/frame-kit.d.ts.map +1 -0
- package/dist/cards/frame-kit.js +60 -0
- package/dist/cards/frame-types.type-guard.d.ts +17 -0
- package/dist/cards/frame-types.type-guard.d.ts.map +1 -0
- package/dist/cards/frame-types.type-guard.js +29 -0
- package/dist/cards/index.d.ts +41 -0
- package/dist/cards/index.d.ts.map +1 -0
- package/dist/cards/index.js +49 -0
- package/dist/cards/kanban-actions.d.ts +17 -0
- package/dist/cards/kanban-actions.d.ts.map +1 -0
- package/dist/cards/kanban-actions.js +26 -0
- package/dist/cards/kanban-card.d.ts +34 -0
- package/dist/cards/kanban-card.d.ts.map +1 -0
- package/dist/cards/kanban-card.js +264 -0
- package/dist/cards/list-focus.d.ts +76 -0
- package/dist/cards/list-focus.d.ts.map +1 -0
- package/dist/cards/list-focus.js +212 -0
- package/dist/cards/mail-list.d.ts +104 -0
- package/dist/cards/mail-list.d.ts.map +1 -0
- package/dist/cards/mail-list.js +436 -0
- package/dist/cards/mail-thread.d.ts +56 -0
- package/dist/cards/mail-thread.d.ts.map +1 -0
- package/dist/cards/mail-thread.js +142 -0
- package/dist/cards/period-label.d.ts +8 -0
- package/dist/cards/period-label.d.ts.map +1 -0
- package/dist/cards/period-label.js +27 -0
- package/dist/cards/relationship-card.d.ts +67 -0
- package/dist/cards/relationship-card.d.ts.map +1 -0
- package/dist/cards/relationship-card.js +82 -0
- package/dist/cards/row-list.d.ts +98 -0
- package/dist/cards/row-list.d.ts.map +1 -0
- package/dist/cards/row-list.js +191 -0
- package/dist/cards/schedule-model.d.ts +81 -0
- package/dist/cards/schedule-model.d.ts.map +1 -0
- package/dist/cards/schedule-model.js +80 -0
- package/dist/cards/schedule.d.ts +106 -0
- package/dist/cards/schedule.d.ts.map +1 -0
- package/dist/cards/schedule.js +925 -0
- package/dist/cards/stat-card-parts.d.ts +18 -0
- package/dist/cards/stat-card-parts.d.ts.map +1 -0
- package/dist/cards/stat-card-parts.js +62 -0
- package/dist/cards/stat-card.d.ts +37 -0
- package/dist/cards/stat-card.d.ts.map +1 -0
- package/dist/cards/stat-card.js +259 -0
- package/dist/cards/stat-cell.d.ts +56 -0
- package/dist/cards/stat-cell.d.ts.map +1 -0
- package/dist/cards/stat-cell.js +410 -0
- package/dist/cards/stat-group-shared.d.ts +21 -0
- package/dist/cards/stat-group-shared.d.ts.map +1 -0
- package/dist/cards/stat-group-shared.js +26 -0
- package/dist/cards/stat-group.d.ts +44 -0
- package/dist/cards/stat-group.d.ts.map +1 -0
- package/dist/cards/stat-group.js +183 -0
- package/dist/cards/step-rail.d.ts +45 -0
- package/dist/cards/step-rail.d.ts.map +1 -0
- package/dist/cards/step-rail.js +125 -0
- package/dist/cards/viewport.d.ts +66 -0
- package/dist/cards/viewport.d.ts.map +1 -0
- package/dist/cards/viewport.js +219 -0
- package/dist/charts/axis-gaps.d.ts +170 -0
- package/dist/charts/axis-gaps.d.ts.map +1 -0
- package/dist/charts/axis-gaps.js +310 -0
- package/dist/charts/box.d.ts +8 -2
- package/dist/charts/box.d.ts.map +1 -1
- package/dist/charts/box.js +28 -8
- package/dist/charts/canvas.d.ts +45 -0
- package/dist/charts/canvas.d.ts.map +1 -0
- package/dist/charts/canvas.js +103 -0
- package/dist/charts/card-context.d.ts +6 -0
- package/dist/charts/card-context.d.ts.map +1 -1
- package/dist/charts/card-context.js +5 -0
- package/dist/charts/chart-box.module.css +199 -43
- package/dist/charts/chart-box.module.css.d.ts +2 -0
- package/dist/charts/chart-dates.d.ts +8 -6
- package/dist/charts/chart-dates.d.ts.map +1 -1
- package/dist/charts/chart-dates.js +21 -6
- package/dist/charts/chart-labels-widths.gen.d.ts +22 -0
- package/dist/charts/chart-labels-widths.gen.d.ts.map +1 -0
- package/dist/charts/chart-labels-widths.gen.js +879 -0
- package/dist/charts/chart-labels.d.ts +173 -0
- package/dist/charts/chart-labels.d.ts.map +1 -0
- package/dist/charts/chart-labels.js +93 -0
- package/dist/charts/chart-legend.module.css +50 -5
- package/dist/charts/chart-legend.module.css.d.ts +1 -0
- package/dist/charts/contract.d.ts +647 -0
- package/dist/charts/contract.d.ts.map +1 -0
- package/dist/charts/core/axis-ext.d.ts +86 -0
- package/dist/charts/core/axis-ext.d.ts.map +1 -0
- package/dist/charts/core/axis-ext.js +369 -0
- package/dist/charts/core/bar-values.d.ts +44 -0
- package/dist/charts/core/bar-values.d.ts.map +1 -0
- package/dist/charts/core/bar-values.js +682 -0
- package/dist/charts/core/compile.d.ts +260 -0
- package/dist/charts/core/compile.d.ts.map +1 -0
- package/dist/charts/core/compile.js +2242 -0
- package/dist/charts/core/cursor.d.ts +108 -0
- package/dist/charts/core/cursor.d.ts.map +1 -0
- package/dist/charts/core/cursor.js +256 -0
- package/dist/charts/core/curves.d.ts +12 -0
- package/dist/charts/core/curves.d.ts.map +1 -0
- package/dist/charts/core/curves.js +86 -0
- package/dist/charts/core/label-backing.d.ts +29 -0
- package/dist/charts/core/label-backing.d.ts.map +1 -0
- package/dist/charts/core/label-backing.js +40 -0
- package/dist/charts/core/label-ties.d.ts +16 -0
- package/dist/charts/core/label-ties.d.ts.map +1 -0
- package/dist/charts/core/label-ties.js +62 -0
- package/dist/charts/core/plot-context.d.ts +24 -0
- package/dist/charts/core/plot-context.d.ts.map +1 -0
- package/dist/charts/core/plot-context.js +55 -0
- package/dist/charts/core/portal.d.ts +7 -0
- package/dist/charts/core/portal.d.ts.map +1 -0
- package/dist/charts/core/portal.js +124 -0
- package/dist/charts/core/probe/bar.d.ts +2 -0
- package/dist/charts/core/probe/bar.d.ts.map +1 -0
- package/dist/charts/core/probe/bar.js +23 -0
- package/dist/charts/core/probe/base0.d.ts +2 -0
- package/dist/charts/core/probe/base0.d.ts.map +1 -0
- package/dist/charts/core/probe/base0.js +4 -0
- package/dist/charts/core/probe/line.d.ts +2 -0
- package/dist/charts/core/probe/line.d.ts.map +1 -0
- package/dist/charts/core/probe/line.js +19 -0
- package/dist/charts/core/probe/sparkline.d.ts +2 -0
- package/dist/charts/core/probe/sparkline.d.ts.map +1 -0
- package/dist/charts/core/probe/sparkline.js +52 -0
- package/dist/charts/core/readout-clear.d.ts +106 -0
- package/dist/charts/core/readout-clear.d.ts.map +1 -0
- package/dist/charts/core/readout-clear.js +87 -0
- package/dist/charts/core/rich-tooltip.d.ts +56 -0
- package/dist/charts/core/rich-tooltip.d.ts.map +1 -0
- package/dist/charts/core/rich-tooltip.js +71 -0
- package/dist/charts/core/right-pin.d.ts +17 -0
- package/dist/charts/core/right-pin.d.ts.map +1 -0
- package/dist/charts/core/right-pin.js +52 -0
- package/dist/charts/core/scales.d.ts +91 -0
- package/dist/charts/core/scales.d.ts.map +1 -0
- package/dist/charts/core/scales.js +326 -0
- package/dist/charts/core/spread.d.ts +37 -0
- package/dist/charts/core/spread.d.ts.map +1 -0
- package/dist/charts/core/spread.js +98 -0
- package/dist/charts/core/theme.d.ts +88 -0
- package/dist/charts/core/theme.d.ts.map +1 -0
- package/dist/charts/core/theme.js +85 -0
- package/dist/charts/core/ticks.d.ts.map +1 -0
- package/dist/charts/core/ticks.js +42 -0
- 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/csv.d.ts +6 -0
- package/dist/charts/csv.d.ts.map +1 -0
- package/dist/charts/csv.js +27 -0
- package/dist/charts/date-tick-format.d.ts +3 -3
- package/dist/charts/date-tick-format.d.ts.map +1 -1
- package/dist/charts/date-tick-format.js +21 -16
- package/dist/charts/engine-marks.d.ts +77 -0
- package/dist/charts/engine-marks.d.ts.map +1 -0
- package/dist/charts/engine-marks.js +20 -0
- package/dist/charts/focus.d.ts +96 -0
- package/dist/charts/focus.d.ts.map +1 -0
- package/dist/charts/focus.js +115 -0
- package/dist/charts/host.d.ts +7 -3
- package/dist/charts/host.d.ts.map +1 -1
- package/dist/charts/host.js +40 -24
- package/dist/charts/index.d.ts +23 -20
- package/dist/charts/index.d.ts.map +1 -1
- package/dist/charts/index.js +36 -21
- package/dist/charts/label-obstacles.d.ts +91 -0
- package/dist/charts/label-obstacles.d.ts.map +1 -0
- package/dist/charts/label-obstacles.js +142 -0
- package/dist/charts/label-place.d.ts +47 -0
- package/dist/charts/label-place.d.ts.map +1 -0
- package/dist/charts/label-place.js +209 -0
- package/dist/charts/label-widths.d.ts +10 -0
- package/dist/charts/label-widths.d.ts.map +1 -0
- package/dist/charts/label-widths.js +14 -0
- package/dist/charts/labels.d.ts +75 -2
- package/dist/charts/labels.d.ts.map +1 -1
- package/dist/charts/labels.js +220 -14
- package/dist/charts/legend.d.ts +25 -4
- package/dist/charts/legend.d.ts.map +1 -1
- package/dist/charts/legend.js +175 -39
- package/dist/charts/marks.d.ts +71 -2
- package/dist/charts/marks.d.ts.map +1 -1
- package/dist/charts/marks.js +123 -12
- package/dist/charts/pane-gutter.d.ts +8 -0
- package/dist/charts/pane-gutter.d.ts.map +1 -0
- package/dist/charts/pane-gutter.js +5 -0
- package/dist/charts/parts/band-fold.d.ts +65 -0
- package/dist/charts/parts/band-fold.d.ts.map +1 -0
- package/dist/charts/parts/band-fold.js +46 -0
- package/dist/charts/parts/band-strip.d.ts +95 -0
- package/dist/charts/parts/band-strip.d.ts.map +1 -0
- package/dist/charts/parts/band-strip.js +434 -0
- package/dist/charts/parts/bars-marks.d.ts +41 -0
- package/dist/charts/parts/bars-marks.d.ts.map +1 -0
- package/dist/charts/parts/bars-marks.js +225 -0
- package/dist/charts/parts/bars.d.ts +39 -0
- package/dist/charts/parts/bars.d.ts.map +1 -0
- package/dist/charts/parts/bars.js +8 -0
- package/dist/charts/parts/cartesian-adapt.d.ts +82 -0
- package/dist/charts/parts/cartesian-adapt.d.ts.map +1 -0
- package/dist/charts/parts/cartesian-adapt.js +277 -0
- package/dist/charts/parts/cartesian-selection.d.ts +12 -0
- package/dist/charts/parts/cartesian-selection.d.ts.map +1 -0
- package/dist/charts/parts/cartesian-selection.js +17 -0
- package/dist/charts/parts/cartesian.d.ts +54 -0
- package/dist/charts/parts/cartesian.d.ts.map +1 -0
- package/dist/charts/parts/cartesian.js +701 -0
- package/dist/charts/parts/chart-card-frame.d.ts +34 -0
- package/dist/charts/parts/chart-card-frame.d.ts.map +1 -0
- package/dist/charts/parts/chart-card-frame.js +112 -0
- package/dist/charts/parts/chart-card.d.ts +95 -0
- package/dist/charts/parts/chart-card.d.ts.map +1 -0
- package/dist/charts/parts/chart-card.js +351 -0
- package/dist/charts/parts/chart-panes.d.ts +26 -0
- package/dist/charts/parts/chart-panes.d.ts.map +1 -0
- package/dist/charts/parts/chart-panes.js +70 -0
- package/dist/charts/parts/heatmap-fill.d.ts.map +1 -0
- package/dist/charts/parts/heatmap-ink.d.ts +9 -0
- package/dist/charts/parts/heatmap-ink.d.ts.map +1 -0
- package/dist/charts/parts/heatmap-ink.js +19 -0
- package/dist/charts/parts/heatmap.d.ts +156 -0
- package/dist/charts/parts/heatmap.d.ts.map +1 -0
- package/dist/charts/parts/heatmap.js +450 -0
- package/dist/charts/parts/interval-layout.d.ts +45 -0
- package/dist/charts/parts/interval-layout.d.ts.map +1 -0
- package/dist/charts/parts/interval-layout.js +45 -0
- package/dist/charts/parts/interval-track.d.ts +109 -0
- package/dist/charts/parts/interval-track.d.ts.map +1 -0
- package/dist/charts/parts/interval-track.js +543 -0
- package/dist/charts/parts/legend.d.ts +33 -0
- package/dist/charts/parts/legend.d.ts.map +1 -0
- package/dist/charts/parts/legend.js +62 -0
- package/dist/charts/parts/lines-marks.d.ts +32 -0
- package/dist/charts/parts/lines-marks.d.ts.map +1 -0
- package/dist/charts/parts/lines-marks.js +175 -0
- package/dist/charts/parts/lines.d.ts +35 -0
- package/dist/charts/parts/lines.d.ts.map +1 -0
- package/dist/charts/parts/lines.js +8 -0
- package/dist/charts/parts/range-navigator.d.ts +70 -0
- package/dist/charts/parts/range-navigator.d.ts.map +1 -0
- package/dist/charts/parts/range-navigator.js +128 -0
- package/dist/charts/parts/range-navigator.module.css +50 -0
- package/dist/charts/parts/range-navigator.module.css.d.ts +9 -0
- package/dist/charts/parts/sparkline-probe/both.d.ts +2 -0
- package/dist/charts/parts/sparkline-probe/both.d.ts.map +1 -0
- package/dist/charts/parts/sparkline-probe/both.js +31 -0
- package/dist/charts/parts/sparkline-probe/mini-bars.d.ts +2 -0
- package/dist/charts/parts/sparkline-probe/mini-bars.d.ts.map +1 -0
- package/dist/charts/parts/sparkline-probe/mini-bars.js +17 -0
- package/dist/charts/parts/sparkline-probe/sparkline.d.ts +2 -0
- package/dist/charts/parts/sparkline-probe/sparkline.d.ts.map +1 -0
- package/dist/charts/parts/sparkline-probe/sparkline.js +19 -0
- package/dist/charts/parts/tooltip.d.ts +41 -0
- package/dist/charts/parts/tooltip.d.ts.map +1 -0
- package/dist/charts/parts/tooltip.js +42 -0
- package/dist/charts/parts/waterfall.d.ts +64 -0
- package/dist/charts/parts/waterfall.d.ts.map +1 -0
- package/dist/charts/parts/waterfall.js +112 -0
- package/dist/charts/plot-context.d.ts +4 -1
- package/dist/charts/plot-context.d.ts.map +1 -1
- package/dist/charts/plot-context.js +1 -1
- package/dist/charts/ref-label.d.ts +41 -4
- package/dist/charts/ref-label.d.ts.map +1 -1
- package/dist/charts/ref-label.js +94 -16
- package/dist/charts/seams/bar-opacity.d.ts +6 -0
- package/dist/charts/seams/bar-opacity.d.ts.map +1 -0
- package/dist/charts/seams/bar-opacity.js +8 -0
- package/dist/charts/seams/define.d.ts +51 -0
- package/dist/charts/seams/define.d.ts.map +1 -0
- package/dist/charts/seams/define.js +25 -0
- package/dist/charts/seams/lone-point.d.ts +3 -0
- package/dist/charts/seams/lone-point.d.ts.map +1 -0
- package/dist/charts/seams/lone-point.js +8 -0
- package/dist/charts/seams/pixel-extent.d.ts +23 -0
- package/dist/charts/seams/pixel-extent.d.ts.map +1 -0
- package/dist/charts/seams/pixel-extent.js +23 -0
- package/dist/charts/seams/plot-data.d.ts +3 -0
- package/dist/charts/seams/plot-data.d.ts.map +1 -0
- package/dist/charts/seams/plot-data.js +8 -0
- package/dist/charts/seams/plot-px.d.ts +11 -0
- package/dist/charts/seams/plot-px.d.ts.map +1 -0
- package/dist/charts/seams/plot-px.js +17 -0
- package/dist/charts/seams/plot-scales.d.ts +29 -0
- package/dist/charts/seams/plot-scales.d.ts.map +1 -0
- package/dist/charts/seams/plot-scales.js +33 -0
- package/dist/charts/seams/series-axis.d.ts +3 -0
- package/dist/charts/seams/series-axis.d.ts.map +1 -0
- package/dist/charts/seams/series-axis.js +8 -0
- package/dist/charts/seams/series-dash.d.ts +3 -0
- package/dist/charts/seams/series-dash.d.ts.map +1 -0
- package/dist/charts/seams/series-dash.js +8 -0
- package/dist/charts/seams/series-format.d.ts +3 -0
- package/dist/charts/seams/series-format.d.ts.map +1 -0
- package/dist/charts/seams/series-format.js +8 -0
- package/dist/charts/seams/series-gaps.d.ts +3 -0
- package/dist/charts/seams/series-gaps.d.ts.map +1 -0
- package/dist/charts/seams/series-gaps.js +8 -0
- package/dist/charts/seams/series-legend-tooltip.d.ts +3 -0
- package/dist/charts/seams/series-legend-tooltip.d.ts.map +1 -0
- package/dist/charts/seams/series-legend-tooltip.js +8 -0
- package/dist/charts/seams/series-marker.d.ts +3 -0
- package/dist/charts/seams/series-marker.d.ts.map +1 -0
- package/dist/charts/seams/series-marker.js +8 -0
- package/dist/charts/seams/series-note.d.ts +3 -0
- package/dist/charts/seams/series-note.d.ts.map +1 -0
- package/dist/charts/seams/series-note.js +8 -0
- package/dist/charts/seams/series-parent.d.ts +3 -0
- package/dist/charts/seams/series-parent.d.ts.map +1 -0
- package/dist/charts/seams/series-parent.js +8 -0
- package/dist/charts/seams/series-role.d.ts +3 -0
- package/dist/charts/seams/series-role.d.ts.map +1 -0
- package/dist/charts/seams/series-role.js +8 -0
- package/dist/charts/seams/series-weight.d.ts +3 -0
- package/dist/charts/seams/series-weight.d.ts.map +1 -0
- package/dist/charts/seams/series-weight.js +8 -0
- package/dist/charts/seams/x-domain.d.ts +3 -0
- package/dist/charts/seams/x-domain.d.ts.map +1 -0
- package/dist/charts/seams/x-domain.js +8 -0
- package/dist/charts/seams/y-domain.d.ts +32 -0
- package/dist/charts/seams/y-domain.d.ts.map +1 -0
- package/dist/charts/seams/y-domain.js +93 -0
- package/dist/charts/seams/y-gutter.d.ts +12 -0
- package/dist/charts/seams/y-gutter.d.ts.map +1 -0
- package/dist/charts/seams/y-gutter.js +18 -0
- package/dist/charts/seams.d.ts +18 -0
- package/dist/charts/seams.d.ts.map +1 -0
- package/dist/charts/seams.js +49 -0
- package/dist/charts/sizing.d.ts +11 -0
- package/dist/charts/sizing.d.ts.map +1 -1
- package/dist/charts/sizing.js +6 -2
- package/dist/charts/state.d.ts +2 -2
- package/dist/charts/state.d.ts.map +1 -1
- package/dist/charts/state.js +45 -22
- package/dist/charts/text-measure.d.ts +10 -0
- package/dist/charts/text-measure.d.ts.map +1 -0
- package/dist/charts/text-measure.js +26 -0
- package/dist/charts/tooltip-body.d.ts +16 -0
- package/dist/charts/tooltip-body.d.ts.map +1 -0
- package/dist/charts/tooltip-body.js +59 -0
- package/dist/charts/track.d.ts +101 -0
- package/dist/charts/track.d.ts.map +1 -0
- package/dist/charts/track.js +189 -0
- package/dist/charts/types.d.ts +126 -12
- package/dist/charts/types.d.ts.map +1 -1
- package/dist/cli/add/catalog.d.ts +26 -0
- package/dist/cli/add/catalog.d.ts.map +1 -0
- package/dist/cli/add/catalog.js +70 -0
- package/dist/cli/add/help.d.ts +4 -0
- package/dist/cli/add/help.d.ts.map +1 -0
- package/dist/cli/add/help.js +42 -0
- package/dist/cli/add/index.d.ts +6 -0
- package/dist/cli/add/index.d.ts.map +1 -0
- package/dist/cli/add/index.js +157 -0
- package/dist/cli/agent-note.d.ts +21 -0
- package/dist/cli/agent-note.d.ts.map +1 -0
- package/dist/cli/agent-note.js +107 -0
- package/dist/cli/board-freshness.d.ts +6 -4
- package/dist/cli/board-freshness.d.ts.map +1 -1
- package/dist/cli/board-freshness.js +18 -11
- package/dist/cli/budget/index.d.ts +42 -0
- package/dist/cli/budget/index.d.ts.map +1 -0
- package/dist/cli/budget/index.js +102 -0
- package/dist/cli/config.d.ts +15 -143
- package/dist/cli/config.d.ts.map +1 -1
- package/dist/cli/config.js +0 -16
- package/dist/cli/docs/catalog.d.ts +38 -0
- package/dist/cli/docs/catalog.d.ts.map +1 -0
- package/dist/cli/docs/catalog.js +129 -0
- package/dist/cli/docs/index.d.ts +3 -0
- package/dist/cli/docs/index.d.ts.map +1 -0
- package/dist/cli/docs/index.js +56 -0
- package/dist/cli/doctor/app.d.ts +8 -0
- package/dist/cli/doctor/app.d.ts.map +1 -0
- package/dist/cli/doctor/app.js +285 -0
- package/dist/cli/doctor/eject.d.ts +5 -0
- package/dist/cli/doctor/eject.d.ts.map +1 -0
- package/dist/cli/doctor/eject.js +137 -0
- package/dist/cli/doctor/guards.d.ts +3 -0
- package/dist/cli/doctor/guards.d.ts.map +1 -0
- package/dist/cli/doctor/guards.js +114 -0
- package/dist/cli/doctor/hook.d.ts +10 -0
- package/dist/cli/doctor/hook.d.ts.map +1 -0
- package/dist/cli/doctor/hook.js +294 -0
- package/dist/cli/doctor/index.d.ts +8 -0
- package/dist/cli/doctor/index.d.ts.map +1 -0
- package/dist/cli/doctor/index.js +92 -0
- package/dist/cli/doctor/install.d.ts +14 -0
- package/dist/cli/doctor/install.d.ts.map +1 -0
- package/dist/cli/doctor/install.js +290 -0
- package/dist/cli/doctor/legacy.d.ts +3 -0
- package/dist/cli/doctor/legacy.d.ts.map +1 -0
- package/dist/cli/doctor/legacy.js +144 -0
- package/dist/cli/doctor/translations.d.ts +17 -0
- package/dist/cli/doctor/translations.d.ts.map +1 -0
- package/dist/cli/doctor/translations.js +253 -0
- package/dist/cli/doctor/types.d.ts +64 -0
- package/dist/cli/doctor/types.d.ts.map +1 -0
- package/dist/cli/doctor/types.js +110 -0
- package/dist/cli/doctor/wiring.d.ts +10 -0
- package/dist/cli/doctor/wiring.d.ts.map +1 -0
- package/dist/cli/doctor/wiring.js +213 -0
- 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/git.d.ts +5 -0
- package/dist/cli/eject/git.d.ts.map +1 -0
- package/dist/cli/eject/git.js +35 -0
- package/dist/cli/eject/help.d.ts +4 -0
- package/dist/cli/eject/help.d.ts.map +1 -0
- package/dist/cli/eject/help.js +57 -0
- package/dist/cli/eject/index.d.ts +6 -0
- package/dist/cli/eject/index.d.ts.map +1 -0
- package/dist/cli/eject/index.js +424 -0
- package/dist/cli/eject/ledger.d.ts +73 -0
- package/dist/cli/eject/ledger.d.ts.map +1 -0
- package/dist/cli/eject/ledger.js +101 -0
- package/dist/cli/eject/tsconfig.d.ts +14 -0
- package/dist/cli/eject/tsconfig.d.ts.map +1 -0
- package/dist/cli/eject/tsconfig.js +207 -0
- package/dist/cli/harness.d.ts +65 -0
- package/dist/cli/harness.d.ts.map +1 -0
- package/dist/cli/harness.js +91 -0
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +56 -20
- package/dist/cli/index.d.ts +25 -387
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +78 -855
- package/dist/cli/init/app-files.d.ts +21 -0
- package/dist/cli/init/app-files.d.ts.map +1 -0
- package/dist/cli/init/app-files.js +99 -0
- package/dist/cli/init/index.d.ts +71 -0
- package/dist/cli/init/index.d.ts.map +1 -0
- package/dist/cli/init/index.js +295 -0
- package/dist/cli/init/locales.d.ts +35 -0
- package/dist/cli/init/locales.d.ts.map +1 -0
- package/dist/cli/init/locales.js +99 -0
- package/dist/cli/init/router-seeds.d.ts +10 -0
- package/dist/cli/init/router-seeds.d.ts.map +1 -0
- package/dist/cli/init/router-seeds.js +214 -0
- package/dist/cli/init/site.d.ts +19 -0
- package/dist/cli/init/site.d.ts.map +1 -0
- package/dist/cli/init/site.js +37 -0
- package/dist/cli/init/steps.d.ts +196 -0
- package/dist/cli/init/steps.d.ts.map +1 -0
- package/dist/cli/init/steps.js +958 -0
- package/dist/cli/init/stock.d.ts +24 -0
- package/dist/cli/init/stock.d.ts.map +1 -0
- package/dist/cli/init/stock.js +50 -0
- package/dist/cli/init/upgrade.d.ts +8 -0
- package/dist/cli/init/upgrade.d.ts.map +1 -0
- package/dist/cli/init/upgrade.js +47 -0
- package/dist/cli/install-root.d.ts +15 -5
- package/dist/cli/install-root.d.ts.map +1 -1
- package/dist/cli/install-root.js +28 -17
- package/dist/cli/legacy-2x-files.d.ts +2 -0
- package/dist/cli/legacy-2x-files.d.ts.map +1 -0
- package/dist/cli/legacy-2x-files.js +25 -0
- package/dist/cli/legacy-2x.d.ts +18 -0
- package/dist/cli/legacy-2x.d.ts.map +1 -0
- package/dist/cli/legacy-2x.js +71 -0
- 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 +53 -0
- package/dist/cli/lint/engine.d.ts.map +1 -0
- package/dist/cli/lint/engine.js +263 -0
- package/dist/cli/lint/hook.d.ts +43 -0
- package/dist/cli/lint/hook.d.ts.map +1 -0
- package/dist/cli/lint/hook.js +227 -0
- package/dist/cli/lint/index.d.ts +25 -0
- package/dist/cli/lint/index.d.ts.map +1 -0
- package/dist/cli/lint/index.js +205 -0
- package/dist/cli/lint/record.d.ts +18 -0
- package/dist/cli/lint/record.d.ts.map +1 -0
- package/dist/cli/lint/record.js +77 -0
- package/dist/cli/lint/seams.d.ts +62 -0
- package/dist/cli/lint/seams.d.ts.map +1 -0
- package/dist/cli/lint/seams.js +351 -0
- package/dist/cli/lint/settings.d.ts +61 -0
- package/dist/cli/lint/settings.d.ts.map +1 -0
- package/dist/cli/lint/settings.js +229 -0
- package/dist/cli/lint/stats.d.ts +36 -0
- package/dist/cli/lint/stats.d.ts.map +1 -0
- package/dist/cli/lint/stats.js +119 -0
- package/dist/cli/lint/template-classes.d.ts +17 -0
- package/dist/cli/lint/template-classes.d.ts.map +1 -0
- package/dist/cli/lint/template-classes.js +91 -0
- package/dist/cli/lint-settings.d.ts +15 -0
- package/dist/cli/lint-settings.d.ts.map +1 -0
- package/dist/cli/lint-settings.js +81 -0
- package/dist/cli/manifest.d.ts +127 -0
- package/dist/cli/manifest.d.ts.map +1 -0
- package/dist/cli/manifest.js +269 -0
- package/dist/cli/merge/formatter.d.ts +12 -0
- package/dist/cli/merge/formatter.d.ts.map +1 -0
- package/dist/cli/merge/formatter.js +44 -0
- package/dist/cli/merge/header.d.ts +20 -0
- package/dist/cli/merge/header.d.ts.map +1 -0
- package/dist/cli/merge/header.js +25 -0
- package/dist/cli/merge/merge-file.d.ts +20 -0
- package/dist/cli/merge/merge-file.d.ts.map +1 -0
- package/dist/cli/merge/merge-file.js +46 -0
- package/dist/cli/merge/seed.d.ts +25 -0
- package/dist/cli/merge/seed.d.ts.map +1 -0
- package/dist/cli/merge/seed.js +72 -0
- package/dist/cli/migrate/census.d.ts +34 -0
- package/dist/cli/migrate/census.d.ts.map +1 -0
- package/dist/cli/migrate/census.js +230 -0
- package/dist/cli/migrate/index.d.ts +80 -0
- package/dist/cli/migrate/index.d.ts.map +1 -0
- package/dist/cli/migrate/index.js +283 -0
- 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 +130 -0
- package/dist/cli/migrate/rows.d.ts.map +1 -0
- package/dist/cli/migrate/rows.js +222 -0
- package/dist/cli/package-manager.d.ts +11 -0
- package/dist/cli/package-manager.d.ts.map +1 -0
- package/dist/cli/package-manager.js +45 -0
- package/dist/cli/peers.d.ts +23 -0
- package/dist/cli/peers.d.ts.map +1 -0
- package/dist/cli/peers.js +87 -0
- package/dist/cli/presets.d.ts +39 -0
- package/dist/cli/presets.d.ts.map +1 -0
- package/dist/cli/presets.js +134 -0
- package/dist/cli/resolver.d.ts +22 -0
- package/dist/cli/resolver.d.ts.map +1 -0
- package/dist/cli/resolver.js +59 -0
- package/dist/cli/route-tree.d.ts +21 -0
- package/dist/cli/route-tree.d.ts.map +1 -0
- package/dist/cli/route-tree.js +57 -0
- package/dist/cli/router-wiring.d.ts +45 -4
- package/dist/cli/router-wiring.d.ts.map +1 -1
- package/dist/cli/router-wiring.js +45 -5
- package/dist/cli/shot/board.d.ts +4 -2
- package/dist/cli/shot/board.d.ts.map +1 -1
- package/dist/cli/shot/board.js +35 -60
- package/dist/cli/shot/capture.d.ts +62 -110
- package/dist/cli/shot/capture.d.ts.map +1 -1
- package/dist/cli/shot/capture.js +415 -467
- package/dist/cli/shot/detect.d.ts +1 -13
- package/dist/cli/shot/detect.d.ts.map +1 -1
- package/dist/cli/shot/detect.js +260 -256
- package/dist/cli/shot/facts.d.ts +28 -0
- package/dist/cli/shot/facts.d.ts.map +1 -0
- package/dist/cli/shot/facts.js +184 -0
- package/dist/cli/shot/index.d.ts +14 -20
- package/dist/cli/shot/index.d.ts.map +1 -1
- package/dist/cli/shot/index.js +120 -215
- package/dist/cli/shot/measure.d.ts +9 -27
- package/dist/cli/shot/measure.d.ts.map +1 -1
- package/dist/cli/shot/measure.js +140 -107
- package/dist/cli/shot/playwright.d.ts +27 -27
- package/dist/cli/shot/playwright.d.ts.map +1 -1
- package/dist/cli/shot/playwright.js +16 -11
- package/dist/cli/shot/real-data.js +1 -1
- package/dist/cli/shot/serve.d.ts +8 -2
- package/dist/cli/shot/serve.d.ts.map +1 -1
- package/dist/cli/shot/serve.js +92 -21
- package/dist/cli/shot/types.d.ts +89 -31
- package/dist/cli/shot/types.d.ts.map +1 -1
- package/dist/cli/shot/types.js +49 -9
- package/dist/cli/source-text.d.ts +2 -0
- package/dist/cli/source-text.d.ts.map +1 -1
- package/dist/cli/source-text.js +8 -0
- package/dist/cli/sync/block.d.ts +20 -0
- package/dist/cli/sync/block.d.ts.map +1 -0
- package/dist/cli/sync/block.js +51 -0
- package/dist/cli/sync/blocks.d.ts +12 -0
- package/dist/cli/sync/blocks.d.ts.map +1 -0
- package/dist/cli/sync/blocks.js +111 -0
- package/dist/cli/sync/engine.d.ts +44 -0
- package/dist/cli/sync/engine.d.ts.map +1 -0
- package/dist/cli/sync/engine.js +145 -0
- package/dist/cli/sync/formats.d.ts +18 -0
- package/dist/cli/sync/formats.d.ts.map +1 -0
- package/dist/cli/sync/formats.js +64 -0
- package/dist/cli/sync/index.d.ts +17 -0
- package/dist/cli/sync/index.d.ts.map +1 -0
- package/dist/cli/sync/index.js +153 -0
- package/dist/cli/sync/render.d.ts +77 -0
- package/dist/cli/sync/render.d.ts.map +1 -0
- package/dist/cli/sync/render.js +335 -0
- package/dist/cli/sync/sibling.d.ts +28 -0
- package/dist/cli/sync/sibling.d.ts.map +1 -0
- package/dist/cli/sync/sibling.js +41 -0
- package/dist/cli/sync/three-way.d.ts +45 -0
- package/dist/cli/sync/three-way.d.ts.map +1 -0
- package/dist/cli/sync/three-way.js +165 -0
- package/dist/cli/tokens-css-extra.d.ts +26 -0
- package/dist/cli/tokens-css-extra.d.ts.map +1 -0
- package/dist/cli/tokens-css-extra.js +149 -0
- package/dist/cli/tokens-css.d.ts +35 -15
- package/dist/cli/tokens-css.d.ts.map +1 -1
- package/dist/cli/tokens-css.js +202 -77
- package/dist/common/basalt-families.d.ts +6 -0
- package/dist/common/basalt-families.d.ts.map +1 -0
- package/dist/common/basalt-families.js +65 -0
- package/dist/common/basalt-family.d.ts +10 -0
- package/dist/common/basalt-family.d.ts.map +1 -0
- package/dist/common/basalt-family.js +12 -0
- package/dist/common/errors.d.ts +2 -2
- package/dist/common/errors.js +5 -5
- package/dist/common/focus.d.ts +24 -0
- package/dist/common/focus.d.ts.map +1 -0
- package/dist/common/focus.js +47 -0
- package/dist/common/hit-floor.d.ts +1 -1
- package/dist/common/isomorphic-layout-effect.d.ts +3 -3
- package/dist/common/isomorphic-layout-effect.d.ts.map +1 -1
- package/dist/common/nest.d.ts +7 -0
- package/dist/common/nest.d.ts.map +1 -0
- package/dist/common/nest.js +25 -0
- package/dist/common/props.d.ts +7 -30
- package/dist/common/props.d.ts.map +1 -1
- package/dist/common/retry-button.d.ts +4 -2
- package/dist/common/retry-button.d.ts.map +1 -1
- package/dist/common/retry-button.js +3 -2
- package/dist/common/retry-button.module.css +23 -22
- package/dist/common/use-media-query.d.ts +1 -1
- package/dist/common/use-media-query.d.ts.map +1 -1
- package/dist/common/validate.d.ts +1 -1
- package/dist/content/code-block.d.ts +16 -20
- package/dist/content/code-block.d.ts.map +1 -1
- package/dist/content/code-block.js +76 -76
- package/dist/content/contract.d.ts +42 -0
- package/dist/content/contract.d.ts.map +1 -0
- package/dist/content/fence-trust.d.ts +8 -0
- package/dist/content/fence-trust.d.ts.map +1 -0
- package/dist/content/fence-trust.js +5 -0
- package/dist/content/fences.d.ts +42 -0
- package/dist/content/fences.d.ts.map +1 -0
- package/dist/content/fences.js +73 -0
- package/dist/content/headings.d.ts +15 -0
- package/dist/content/headings.d.ts.map +1 -0
- package/dist/content/headings.js +58 -0
- package/dist/content/highlighter.d.ts +20 -1
- package/dist/content/highlighter.d.ts.map +1 -1
- package/dist/content/highlighter.js +57 -6
- package/dist/content/index.d.ts +10 -17
- package/dist/content/index.d.ts.map +1 -1
- package/dist/content/index.js +4 -15
- package/dist/content/markdown.d.ts +25 -152
- package/dist/content/markdown.d.ts.map +1 -1
- package/dist/content/markdown.js +77 -270
- package/dist/content/mermaid.d.ts +9 -32
- package/dist/content/mermaid.d.ts.map +1 -1
- package/dist/content/mermaid.js +73 -51
- package/dist/content/pele-peer.d.ts +10 -0
- package/dist/content/pele-peer.d.ts.map +1 -0
- package/dist/content/pele-peer.js +19 -0
- package/dist/content/sanitize.d.ts +18 -167
- package/dist/content/sanitize.d.ts.map +1 -1
- package/dist/content/sanitize.js +39 -170
- package/dist/controls/appearance-switcher.d.ts +49 -0
- package/dist/controls/appearance-switcher.d.ts.map +1 -0
- package/dist/controls/appearance-switcher.js +176 -0
- package/dist/controls/contract.d.ts +154 -0
- package/dist/controls/contract.d.ts.map +1 -0
- package/dist/controls/control-home.d.ts +44 -0
- package/dist/controls/control-home.d.ts.map +1 -0
- package/dist/controls/control-home.js +74 -0
- package/dist/controls/control-kind.d.ts +26 -0
- package/dist/controls/control-kind.d.ts.map +1 -0
- package/dist/controls/control-kind.js +6 -0
- package/dist/controls/control-view.d.ts +25 -0
- package/dist/controls/control-view.d.ts.map +1 -0
- package/dist/controls/control-view.handles.d.ts +40 -0
- package/dist/controls/control-view.handles.d.ts.map +1 -0
- package/dist/controls/control-view.handles.js +95 -0
- package/dist/controls/control-view.js +116 -0
- package/dist/controls/draft.d.ts +23 -0
- package/dist/controls/draft.d.ts.map +1 -0
- package/dist/controls/draft.js +94 -0
- package/dist/controls/facets.d.ts +26 -0
- package/dist/controls/facets.d.ts.map +1 -0
- package/dist/controls/facets.js +13 -0
- package/dist/controls/filter-set-census.d.ts +34 -0
- package/dist/controls/filter-set-census.d.ts.map +1 -0
- package/dist/controls/filter-set-census.js +62 -0
- package/dist/controls/filter-set-fold.d.ts +13 -0
- package/dist/controls/filter-set-fold.d.ts.map +1 -0
- package/dist/controls/filter-set-fold.js +59 -0
- package/dist/controls/filter-set-menu.d.ts +30 -0
- package/dist/controls/filter-set-menu.d.ts.map +1 -0
- package/dist/controls/filter-set-menu.js +201 -0
- package/dist/controls/filter-set-spec.d.ts +12 -0
- package/dist/controls/filter-set-spec.d.ts.map +1 -0
- package/dist/controls/filter-set-spec.js +265 -0
- package/dist/controls/filter-set.d.ts +32 -13
- package/dist/controls/filter-set.d.ts.map +1 -1
- package/dist/controls/filter-set.js +4 -144
- package/dist/controls/filter-slot.d.ts +57 -0
- package/dist/controls/filter-slot.d.ts.map +1 -0
- package/dist/controls/filter-slot.js +139 -0
- package/dist/controls/form-field.d.ts +85 -0
- package/dist/controls/form-field.d.ts.map +1 -0
- package/dist/controls/form-field.js +233 -0
- package/dist/controls/form-footer.d.ts +43 -0
- package/dist/controls/form-footer.d.ts.map +1 -0
- package/dist/controls/form-footer.js +134 -0
- package/dist/controls/form-row.d.ts +35 -0
- package/dist/controls/form-row.d.ts.map +1 -0
- package/dist/controls/form-row.js +22 -0
- package/dist/controls/form-section.d.ts +65 -0
- package/dist/controls/form-section.d.ts.map +1 -0
- package/dist/controls/form-section.js +148 -0
- package/dist/controls/globals.d.ts +9 -0
- package/dist/controls/globals.d.ts.map +1 -0
- package/dist/controls/globals.js +20 -0
- package/dist/controls/index.d.ts +33 -11
- package/dist/controls/index.d.ts.map +1 -1
- package/dist/controls/index.js +39 -18
- package/dist/controls/local-control.d.ts +52 -0
- package/dist/controls/local-control.d.ts.map +1 -0
- package/dist/controls/local-control.js +24 -0
- package/dist/controls/renderers.d.ts +26 -0
- package/dist/controls/renderers.d.ts.map +1 -0
- package/dist/controls/renderers.js +415 -0
- package/dist/controls/row-icon.d.ts +10 -0
- package/dist/controls/row-icon.d.ts.map +1 -0
- package/dist/controls/row-icon.js +15 -0
- package/dist/controls/settings-rows.d.ts +84 -0
- package/dist/controls/settings-rows.d.ts.map +1 -0
- package/dist/controls/settings-rows.js +232 -0
- package/dist/controls/spec.d.ts +50 -0
- package/dist/controls/spec.d.ts.map +1 -0
- package/dist/controls/spec.js +12 -0
- package/dist/controls/stepper.d.ts +49 -0
- package/dist/controls/stepper.d.ts.map +1 -0
- package/dist/controls/stepper.js +170 -0
- package/dist/controls/submit.d.ts +27 -0
- package/dist/controls/submit.d.ts.map +1 -0
- package/dist/controls/submit.js +58 -0
- package/dist/controls/use-committed-field.d.ts +37 -0
- package/dist/controls/use-committed-field.d.ts.map +1 -0
- package/dist/controls/use-committed-field.js +66 -0
- package/dist/controls/view-tabs.d.ts +37 -13
- package/dist/controls/view-tabs.d.ts.map +1 -1
- package/dist/controls/view-tabs.js +124 -97
- package/dist/controls/view-tabs.test-support.d.ts +40 -0
- package/dist/controls/view-tabs.test-support.d.ts.map +1 -0
- package/dist/controls/view-tabs.test-support.js +39 -0
- package/dist/controls/wizard-dialog.d.ts +68 -0
- package/dist/controls/wizard-dialog.d.ts.map +1 -0
- package/dist/controls/wizard-dialog.js +243 -0
- package/dist/core/action-menu-items.d.ts +15 -0
- package/dist/core/action-menu-items.d.ts.map +1 -0
- package/dist/core/action-menu-items.js +46 -0
- package/dist/core/action.d.ts +54 -0
- package/dist/core/action.d.ts.map +1 -0
- package/dist/core/action.js +6 -0
- package/dist/core/appearance.d.ts +51 -0
- package/dist/core/appearance.d.ts.map +1 -0
- package/dist/core/appearance.js +117 -0
- package/dist/core/binding.d.ts +16 -0
- package/dist/core/binding.d.ts.map +1 -0
- package/dist/core/binding.js +21 -0
- package/dist/core/card-menu.d.ts +27 -0
- package/dist/core/card-menu.d.ts.map +1 -0
- package/dist/core/card-menu.js +179 -0
- package/dist/core/channel-transport.d.ts +25 -0
- package/dist/core/channel-transport.d.ts.map +1 -0
- package/dist/core/channel-transport.js +52 -0
- package/dist/core/channel.d.ts +111 -0
- package/dist/core/channel.d.ts.map +1 -0
- package/dist/core/channel.js +318 -0
- package/dist/core/chord-keys.d.ts +16 -0
- package/dist/core/chord-keys.d.ts.map +1 -0
- package/dist/core/chord-keys.js +20 -0
- package/dist/core/chord.d.ts +86 -0
- package/dist/core/chord.d.ts.map +1 -0
- package/dist/core/chord.js +129 -0
- package/dist/core/clipboard.d.ts +3 -0
- package/dist/core/clipboard.d.ts.map +1 -0
- package/dist/core/clipboard.js +27 -0
- package/dist/core/cn-theme.d.ts +11 -0
- package/dist/core/cn-theme.d.ts.map +1 -0
- package/dist/core/cn-theme.gen.d.ts +13 -0
- package/dist/core/cn-theme.gen.d.ts.map +1 -0
- package/dist/core/cn-theme.gen.js +59 -0
- package/dist/core/cn-theme.js +62 -0
- package/dist/core/cn.d.ts +10 -0
- package/dist/core/cn.d.ts.map +1 -0
- package/dist/core/cn.js +367 -0
- package/dist/core/commit-key.d.ts +16 -0
- package/dist/core/commit-key.d.ts.map +1 -0
- package/dist/core/commit-key.js +6 -0
- package/dist/core/context-trigger.d.ts +109 -0
- package/dist/core/context-trigger.d.ts.map +1 -0
- package/dist/core/context-trigger.js +175 -0
- package/dist/core/control-scope.d.ts +34 -0
- package/dist/core/control-scope.d.ts.map +1 -0
- package/dist/core/control-scope.js +21 -0
- package/dist/core/could-not-load.d.ts +8 -0
- package/dist/core/could-not-load.d.ts.map +1 -0
- package/dist/core/could-not-load.js +5 -0
- package/dist/core/date-stepper.d.ts +39 -0
- package/dist/core/date-stepper.d.ts.map +1 -0
- package/dist/core/date-stepper.js +83 -0
- package/dist/core/debounce.d.ts +19 -0
- package/dist/core/debounce.d.ts.map +1 -0
- package/dist/core/debounce.js +46 -0
- package/dist/core/drag-landing.d.ts +8 -0
- package/dist/core/drag-landing.d.ts.map +1 -0
- package/dist/core/drag-landing.js +7 -0
- package/dist/core/error-dot.d.ts +7 -0
- package/dist/core/error-dot.d.ts.map +1 -0
- package/dist/core/error-dot.js +14 -0
- package/dist/core/external-field.d.ts +45 -0
- package/dist/core/external-field.d.ts.map +1 -0
- package/dist/core/external-field.js +40 -0
- package/dist/core/focus-handle.d.ts +32 -0
- package/dist/core/focus-handle.d.ts.map +1 -0
- package/dist/core/focus-handle.js +182 -0
- package/dist/core/focus-release.d.ts +19 -0
- package/dist/core/focus-release.d.ts.map +1 -0
- package/dist/core/focus-release.js +10 -0
- package/dist/core/focus-store.d.ts +151 -0
- package/dist/core/focus-store.d.ts.map +1 -0
- package/dist/core/focus-store.js +422 -0
- package/dist/core/form-dirty.d.ts +24 -0
- package/dist/core/form-dirty.d.ts.map +1 -0
- package/dist/core/form-dirty.js +31 -0
- package/dist/core/format.d.ts +80 -0
- package/dist/core/format.d.ts.map +1 -0
- package/dist/core/format.js +188 -0
- package/dist/core/frame-arm.d.ts +19 -0
- package/dist/core/frame-arm.d.ts.map +1 -0
- package/dist/core/frame-arm.js +5 -0
- package/dist/core/frame-figure.d.ts +21 -0
- package/dist/core/frame-figure.d.ts.map +1 -0
- package/dist/core/frame-figure.js +156 -0
- package/dist/core/frame-head.d.ts +53 -0
- package/dist/core/frame-head.d.ts.map +1 -0
- package/dist/core/frame-head.js +352 -0
- package/dist/core/frame-regions.d.ts +101 -0
- package/dist/core/frame-regions.d.ts.map +1 -0
- package/dist/core/frame-regions.js +383 -0
- package/dist/core/frame-spec.test-support.d.ts +43 -0
- package/dist/core/frame-spec.test-support.d.ts.map +1 -0
- package/dist/core/frame-spec.test-support.js +58 -0
- package/dist/core/frame-tiles.d.ts +23 -0
- package/dist/core/frame-tiles.d.ts.map +1 -0
- package/dist/core/frame-tiles.js +79 -0
- package/dist/core/href.d.ts +22 -0
- package/dist/core/href.d.ts.map +1 -0
- package/dist/core/href.js +29 -0
- package/dist/core/info-hint.d.ts +24 -0
- package/dist/core/info-hint.d.ts.map +1 -0
- package/dist/core/info-hint.js +147 -0
- package/dist/core/keyboard.d.ts +16 -0
- package/dist/core/keyboard.d.ts.map +1 -0
- package/dist/core/keyboard.js +50 -0
- package/dist/core/label-text.d.ts +9 -0
- package/dist/core/label-text.d.ts.map +1 -0
- package/dist/core/label-text.js +8 -0
- package/dist/core/label.d.ts +29 -0
- package/dist/core/label.d.ts.map +1 -0
- package/dist/core/label.js +21 -0
- package/dist/core/lanes.d.ts +33 -0
- package/dist/core/lanes.d.ts.map +1 -0
- package/dist/core/lanes.js +58 -0
- package/dist/core/leave-guard.d.ts +61 -0
- package/dist/core/leave-guard.d.ts.map +1 -0
- package/dist/core/leave-guard.js +121 -0
- package/dist/core/link.d.ts +9 -0
- package/dist/core/link.d.ts.map +1 -0
- package/dist/core/link.js +10 -0
- package/dist/core/list/engine.d.ts +138 -0
- package/dist/core/list/engine.d.ts.map +1 -0
- package/dist/core/list/engine.js +397 -0
- package/dist/core/list/option-row.d.ts +63 -0
- package/dist/core/list/option-row.d.ts.map +1 -0
- package/dist/core/list/option-row.js +135 -0
- package/dist/core/list/options.d.ts +91 -0
- package/dist/core/list/options.d.ts.map +1 -0
- package/dist/core/list/options.js +77 -0
- package/dist/core/list/popup.d.ts +18 -0
- package/dist/core/list/popup.d.ts.map +1 -0
- package/dist/core/list/popup.js +57 -0
- package/dist/core/list/rank.d.ts +25 -0
- package/dist/core/list/rank.d.ts.map +1 -0
- package/dist/core/list/rank.js +30 -0
- package/dist/core/list-link.d.ts +43 -0
- package/dist/core/list-link.d.ts.map +1 -0
- package/dist/core/list-link.js +57 -0
- package/dist/core/live-actions.d.ts +46 -0
- package/dist/core/live-actions.d.ts.map +1 -0
- package/dist/core/live-actions.js +72 -0
- package/dist/core/mark-focus.d.ts +26 -0
- package/dist/core/mark-focus.d.ts.map +1 -0
- package/dist/core/mark-focus.js +63 -0
- package/dist/core/mark-tone.d.ts +25 -0
- package/dist/core/mark-tone.d.ts.map +1 -0
- package/dist/core/mark-tone.js +28 -0
- package/dist/core/mark-types.d.ts +89 -0
- package/dist/core/mark-types.d.ts.map +1 -0
- package/dist/core/menu-key.d.ts +6 -0
- package/dist/core/menu-key.d.ts.map +1 -0
- package/dist/core/menu-key.js +4 -0
- package/dist/core/messages/ai.d.ts +40 -0
- package/dist/core/messages/ai.d.ts.map +1 -0
- package/dist/core/messages/ai.js +29 -0
- package/dist/core/messages/base.d.ts +21 -0
- package/dist/core/messages/base.d.ts.map +1 -0
- package/dist/core/messages/base.js +13 -0
- package/dist/core/messages/cards.d.ts +13 -0
- package/dist/core/messages/cards.d.ts.map +1 -0
- package/dist/core/messages/cards.js +7 -0
- package/dist/core/messages/chain.d.ts +18 -0
- package/dist/core/messages/chain.d.ts.map +1 -0
- package/dist/core/messages/chain.js +14 -0
- package/dist/core/messages/charts.d.ts +27 -0
- package/dist/core/messages/charts.d.ts.map +1 -0
- package/dist/core/messages/charts.js +23 -0
- package/dist/core/messages/common.d.ts +96 -0
- package/dist/core/messages/common.d.ts.map +1 -0
- package/dist/core/messages/common.js +93 -0
- package/dist/core/messages/content.d.ts +6 -0
- package/dist/core/messages/content.d.ts.map +1 -0
- package/dist/core/messages/content.js +6 -0
- package/dist/core/messages/controls.d.ts +46 -0
- package/dist/core/messages/controls.d.ts.map +1 -0
- package/dist/core/messages/controls.js +34 -0
- package/dist/core/messages/date.d.ts +15 -0
- package/dist/core/messages/date.d.ts.map +1 -0
- package/dist/core/messages/date.js +11 -0
- package/dist/core/messages/dialogs.d.ts +15 -0
- package/dist/core/messages/dialogs.d.ts.map +1 -0
- package/dist/core/messages/dialogs.js +7 -0
- package/dist/core/messages/filters.d.ts +24 -0
- package/dist/core/messages/filters.d.ts.map +1 -0
- package/dist/core/messages/filters.js +11 -0
- package/dist/core/messages/flow.d.ts +19 -0
- package/dist/core/messages/flow.d.ts.map +1 -0
- package/dist/core/messages/flow.js +15 -0
- package/dist/core/messages/home.d.ts +13 -0
- package/dist/core/messages/home.d.ts.map +1 -0
- package/dist/core/messages/home.js +6 -0
- package/dist/core/messages/index.d.ts +33 -0
- package/dist/core/messages/index.d.ts.map +1 -0
- package/dist/core/messages/index.js +63 -0
- package/dist/core/messages/kanban.d.ts +16 -0
- package/dist/core/messages/kanban.d.ts.map +1 -0
- package/dist/core/messages/kanban.js +11 -0
- package/dist/core/messages/keys.d.ts +16 -0
- package/dist/core/messages/keys.d.ts.map +1 -0
- package/dist/core/messages/keys.js +12 -0
- package/dist/core/messages/lists.d.ts +36 -0
- package/dist/core/messages/lists.d.ts.map +1 -0
- package/dist/core/messages/lists.js +42 -0
- package/dist/core/messages/live.d.ts +26 -0
- package/dist/core/messages/live.d.ts.map +1 -0
- package/dist/core/messages/live.js +28 -0
- package/dist/core/messages/mark.d.ts +22 -0
- package/dist/core/messages/mark.d.ts.map +1 -0
- package/dist/core/messages/mark.js +11 -0
- package/dist/core/messages/menu.d.ts +10 -0
- package/dist/core/messages/menu.d.ts.map +1 -0
- package/dist/core/messages/menu.js +10 -0
- package/dist/core/messages/page.d.ts +40 -0
- package/dist/core/messages/page.d.ts.map +1 -0
- package/dist/core/messages/page.js +31 -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/messages/schedule.d.ts +18 -0
- package/dist/core/messages/schedule.d.ts.map +1 -0
- package/dist/core/messages/schedule.js +17 -0
- package/dist/core/messages/select.d.ts +15 -0
- package/dist/core/messages/select.d.ts.map +1 -0
- package/dist/core/messages/select.js +8 -0
- package/dist/core/messages/shell.d.ts +48 -0
- package/dist/core/messages/shell.d.ts.map +1 -0
- package/dist/core/messages/shell.js +34 -0
- package/dist/core/messages/sortable.d.ts +9 -0
- package/dist/core/messages/sortable.d.ts.map +1 -0
- package/dist/core/messages/sortable.js +8 -0
- package/dist/core/messages/status.d.ts +16 -0
- package/dist/core/messages/status.d.ts.map +1 -0
- package/dist/core/messages/status.js +12 -0
- package/dist/core/messages/table.d.ts +170 -0
- package/dist/core/messages/table.d.ts.map +1 -0
- package/dist/core/messages/table.js +165 -0
- package/dist/core/messages/tree.d.ts +29 -0
- package/dist/core/messages/tree.d.ts.map +1 -0
- package/dist/core/messages/tree.js +38 -0
- package/dist/core/messages/upload.d.ts +27 -0
- package/dist/core/messages/upload.d.ts.map +1 -0
- package/dist/core/messages/upload.js +23 -0
- package/dist/core/messages/use-messages.d.ts +12 -0
- package/dist/core/messages/use-messages.d.ts.map +1 -0
- package/dist/core/messages/use-messages.js +26 -0
- package/dist/core/messages/use-text.d.ts +8 -0
- package/dist/core/messages/use-text.d.ts.map +1 -0
- package/dist/core/messages/use-text.js +9 -0
- package/dist/core/notify.d.ts +94 -0
- package/dist/core/notify.d.ts.map +1 -0
- package/dist/core/notify.js +161 -0
- package/dist/core/object-menu-popup.d.ts +18 -0
- package/dist/core/object-menu-popup.d.ts.map +1 -0
- package/dist/core/object-menu-popup.js +32 -0
- package/dist/core/object-menu.d.ts +49 -0
- package/dist/core/object-menu.d.ts.map +1 -0
- package/dist/core/object-menu.js +81 -0
- package/dist/core/offline-line.d.ts +7 -0
- package/dist/core/offline-line.d.ts.map +1 -0
- package/dist/core/offline-line.js +11 -0
- package/dist/core/panel.d.ts +73 -0
- package/dist/core/panel.d.ts.map +1 -0
- package/dist/core/panel.js +172 -0
- package/dist/core/parse-number.d.ts +8 -0
- package/dist/core/parse-number.d.ts.map +1 -0
- package/dist/core/parse-number.js +38 -0
- package/dist/core/persisted.d.ts +59 -0
- package/dist/core/persisted.d.ts.map +1 -0
- package/dist/core/persisted.js +276 -0
- package/dist/core/phase-boundary.d.ts +30 -0
- package/dist/core/phase-boundary.d.ts.map +1 -0
- package/dist/core/phase-boundary.js +18 -0
- package/dist/core/phase.d.ts +377 -0
- package/dist/core/phase.d.ts.map +1 -0
- package/dist/core/phase.js +94 -0
- package/dist/core/popup-position.d.ts +33 -0
- package/dist/core/popup-position.d.ts.map +1 -0
- package/dist/core/popup-position.js +9 -0
- package/dist/core/ports.d.ts +437 -0
- package/dist/core/ports.d.ts.map +1 -0
- package/dist/core/ports.js +0 -0
- package/dist/core/provider-props.d.ts +40 -0
- package/dist/core/provider-props.d.ts.map +1 -0
- package/dist/core/provider-props.js +28 -0
- package/dist/core/provider.d.ts +50 -0
- package/dist/core/provider.d.ts.map +1 -0
- package/dist/core/provider.js +41 -0
- package/dist/core/record-address.d.ts +16 -0
- package/dist/core/record-address.d.ts.map +1 -0
- package/dist/core/record-address.js +17 -0
- package/dist/core/record-steps.d.ts +22 -0
- package/dist/core/record-steps.d.ts.map +1 -0
- package/dist/core/record-steps.js +40 -0
- package/dist/core/resolved-tokens.d.ts +32 -0
- package/dist/core/resolved-tokens.d.ts.map +1 -0
- package/dist/core/resolved-tokens.js +135 -0
- package/dist/core/retry-label.d.ts +5 -0
- package/dist/core/retry-label.d.ts.map +1 -0
- package/dist/core/retry-label.js +10 -0
- package/dist/core/retry-owner.d.ts +31 -0
- package/dist/core/retry-owner.d.ts.map +1 -0
- package/dist/core/retry-owner.js +58 -0
- package/dist/core/rows-shown.d.ts +3 -0
- package/dist/core/rows-shown.d.ts.map +1 -0
- package/dist/core/rows-shown.js +9 -0
- package/dist/core/scheme.d.ts +25 -0
- package/dist/core/scheme.d.ts.map +1 -0
- package/dist/core/scheme.js +63 -0
- package/dist/core/sheet-tools.d.ts +3 -0
- package/dist/core/sheet-tools.d.ts.map +1 -0
- package/dist/core/sheet-tools.js +5 -0
- package/dist/core/slot-home.d.ts +10 -0
- package/dist/core/slot-home.d.ts.map +1 -0
- package/dist/core/slot-home.js +5 -0
- package/dist/core/slug.d.ts.map +1 -0
- package/dist/core/slug.js +22 -0
- package/dist/core/spark/compile-spark.d.ts +59 -0
- package/dist/core/spark/compile-spark.d.ts.map +1 -0
- package/dist/core/spark/compile-spark.js +78 -0
- package/dist/core/spark/mini-bars.d.ts +38 -0
- package/dist/core/spark/mini-bars.d.ts.map +1 -0
- package/dist/core/spark/mini-bars.js +227 -0
- package/dist/core/spark/sparkline-shared.d.ts +99 -0
- package/dist/core/spark/sparkline-shared.d.ts.map +1 -0
- package/dist/core/spark/sparkline-shared.js +257 -0
- package/dist/core/spark/sparkline.d.ts +42 -0
- package/dist/core/spark/sparkline.d.ts.map +1 -0
- package/dist/core/spark/sparkline.js +324 -0
- package/dist/core/standard-actions.d.ts +29 -0
- package/dist/core/standard-actions.d.ts.map +1 -0
- package/dist/core/standard-actions.js +67 -0
- package/dist/core/stat-row.d.ts +9 -0
- package/dist/core/stat-row.d.ts.map +1 -0
- package/dist/core/stat-row.js +14 -0
- package/dist/core/tree-model.d.ts +53 -0
- package/dist/core/tree-model.d.ts.map +1 -0
- package/dist/core/tree-model.js +117 -0
- package/dist/core/url.d.ts +22 -0
- package/dist/core/url.d.ts.map +1 -0
- package/dist/core/url.js +44 -0
- package/dist/core/use-control.d.ts +27 -0
- package/dist/core/use-control.d.ts.map +1 -0
- package/dist/core/use-control.js +6 -0
- package/dist/core/use-locale.d.ts +9 -0
- package/dist/core/use-locale.d.ts.map +1 -0
- package/dist/core/use-locale.js +7 -0
- package/dist/core/use-now.d.ts +10 -0
- package/dist/core/use-now.d.ts.map +1 -0
- package/dist/core/use-now.js +36 -0
- package/dist/core/use-resolved-tokens.d.ts +15 -0
- package/dist/core/use-resolved-tokens.d.ts.map +1 -0
- package/dist/core/use-resolved-tokens.js +8 -0
- package/dist/core/use-standard-actions.d.ts +5 -0
- package/dist/core/use-standard-actions.d.ts.map +1 -0
- package/dist/core/use-standard-actions.js +11 -0
- package/dist/core/write-batch.d.ts +13 -0
- package/dist/core/write-batch.d.ts.map +1 -0
- package/dist/core/write-batch.js +30 -0
- package/dist/core/zoned.d.ts +58 -0
- package/dist/core/zoned.d.ts.map +1 -0
- package/dist/core/zoned.js +128 -0
- package/dist/css/archify.css +37 -0
- package/dist/css/base.css +286 -0
- package/dist/css/bridge.css +63 -0
- package/dist/css/cursor.css +119 -0
- package/dist/css/files/hubot-sans-latin-ext-wdth-normal.woff2 +0 -0
- package/dist/css/files/hubot-sans-latin-wdth-normal.woff2 +0 -0
- package/dist/css/files/jetbrains-mono-latin-ext-wght-normal.woff2 +0 -0
- package/dist/css/files/jetbrains-mono-latin-wght-normal.woff2 +0 -0
- package/dist/css/files/nunito-sans-latin-ext-wght-normal.woff2 +0 -0
- package/dist/css/files/nunito-sans-latin-wght-normal.woff2 +0 -0
- package/dist/css/fonts.css +84 -0
- package/dist/css/generate.d.ts +24 -0
- package/dist/css/generate.d.ts.map +1 -0
- package/dist/css/generate.js +243 -0
- package/dist/css/prose.css +214 -0
- package/dist/css/starlight.css +342 -0
- package/dist/css/static.css +263 -0
- package/dist/css/tailwind.css +254 -0
- package/dist/css/templates/fonts.css +82 -0
- package/dist/css/templates/prose.css +230 -0
- package/dist/css/templates/starlight.css +356 -0
- package/dist/css/templates/typography.css +50 -0
- package/dist/css/theme-script.d.ts +27 -0
- package/dist/css/theme-script.d.ts.map +1 -0
- package/dist/css/theme-script.js +29 -0
- package/dist/css/tokens.css +233 -0
- package/dist/css/touch.css +36 -0
- package/dist/css/typography.css +89 -0
- package/dist/data/index.d.ts +17 -0
- package/dist/data/index.d.ts.map +1 -0
- package/dist/data/index.js +22 -0
- package/dist/data/live/bind-invalidation.d.ts +77 -0
- package/dist/data/live/bind-invalidation.d.ts.map +1 -0
- package/dist/data/live/bind-invalidation.js +166 -0
- package/dist/data/live/connection.d.ts +47 -0
- package/dist/data/live/connection.d.ts.map +1 -0
- package/dist/data/live/connection.js +181 -0
- package/dist/data/live/freshness.d.ts +30 -0
- package/dist/data/live/freshness.d.ts.map +1 -0
- package/dist/data/live/freshness.js +91 -0
- package/dist/data/live/live-query-runtime.d.ts +39 -0
- package/dist/data/live/live-query-runtime.d.ts.map +1 -0
- package/dist/data/live/live-query-runtime.js +59 -0
- package/dist/data/live/live-query.d.ts +55 -0
- package/dist/data/live/live-query.d.ts.map +1 -0
- package/dist/data/live/live-query.js +128 -0
- package/dist/data/optimistic.d.ts +60 -0
- package/dist/data/optimistic.d.ts.map +1 -0
- package/dist/data/optimistic.js +34 -0
- package/dist/data/query-client.d.ts +29 -0
- package/dist/data/query-client.d.ts.map +1 -0
- package/dist/data/query-client.js +35 -0
- package/dist/data/shot-state.d.ts +68 -0
- package/dist/data/shot-state.d.ts.map +1 -0
- package/dist/data/shot-state.js +59 -0
- package/dist/data/synced-runtime.d.ts +90 -0
- package/dist/data/synced-runtime.d.ts.map +1 -0
- package/dist/data/synced-runtime.js +380 -0
- package/dist/data/synced.d.ts +91 -0
- package/dist/data/synced.d.ts.map +1 -0
- package/dist/data/synced.js +110 -0
- package/dist/data/unwrap.d.ts +45 -0
- package/dist/data/unwrap.d.ts.map +1 -0
- package/dist/data/unwrap.js +28 -0
- package/dist/form/contexts.d.ts +2 -0
- package/dist/form/contexts.d.ts.map +1 -0
- package/dist/form/contexts.js +8 -0
- package/dist/form/hook.d.ts +110 -0
- package/dist/form/hook.d.ts.map +1 -0
- package/dist/form/hook.js +60 -0
- package/dist/form/index.d.ts +9 -0
- package/dist/form/index.d.ts.map +1 -0
- package/dist/form/index.js +6 -0
- package/dist/form/parts.d.ts +48 -0
- package/dist/form/parts.d.ts.map +1 -0
- package/dist/form/parts.js +50 -0
- package/dist/format/locale.d.ts +4 -0
- package/dist/format/locale.d.ts.map +1 -0
- package/dist/format/locale.js +4 -0
- package/dist/format/number.d.ts +2 -46
- package/dist/format/number.d.ts.map +1 -1
- package/dist/format/number.js +4 -57
- package/dist/format/shared.d.ts +8 -45
- package/dist/format/shared.d.ts.map +1 -1
- package/dist/format/shared.js +15 -53
- package/dist/index.d.ts +27 -18
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +26 -72
- package/dist/lint/bin.d.ts +13 -0
- package/dist/lint/bin.d.ts.map +1 -0
- package/dist/lint/bin.js +20 -0
- package/dist/lint/blanket-disable.d.ts +23 -0
- package/dist/lint/blanket-disable.d.ts.map +1 -0
- package/dist/lint/blanket-disable.js +85 -0
- package/dist/lint/check-tokens.d.ts +39 -0
- package/dist/lint/check-tokens.d.ts.map +1 -0
- package/dist/lint/check-tokens.js +160 -0
- package/dist/lint/factory.d.ts +101 -0
- package/dist/lint/factory.d.ts.map +1 -0
- package/dist/lint/factory.js +318 -0
- package/dist/lint/generated/gen-site-classes.d.ts +5 -0
- package/dist/lint/generated/gen-site-classes.d.ts.map +1 -0
- package/dist/lint/generated/gen-site-classes.js +45 -0
- package/dist/lint/generated/gen-zone-a.d.ts +4 -0
- package/dist/lint/generated/gen-zone-a.d.ts.map +1 -0
- package/dist/lint/generated/gen-zone-a.js +62 -0
- package/dist/lint/generated/site-classes.d.ts +2 -0
- package/dist/lint/generated/site-classes.d.ts.map +1 -0
- package/dist/lint/generated/site-classes.js +48 -0
- package/dist/lint/generated/zone-a.d.ts +16 -0
- package/dist/lint/generated/zone-a.d.ts.map +1 -0
- package/dist/lint/generated/zone-a.js +90 -0
- package/dist/lint/index.d.ts +4 -0
- package/dist/lint/index.d.ts.map +1 -0
- package/dist/lint/index.js +37 -0
- package/dist/lint/lintable.d.ts +3 -0
- package/dist/lint/lintable.d.ts.map +1 -0
- package/dist/lint/lintable.js +4 -0
- package/dist/lint/preset.d.ts +198 -0
- package/dist/lint/preset.d.ts.map +1 -0
- package/dist/lint/preset.js +449 -0
- package/dist/lint/renamed-rules.d.ts +7 -0
- package/dist/lint/renamed-rules.d.ts.map +1 -0
- package/dist/lint/renamed-rules.js +9 -0
- package/dist/lint/rule-table.d.ts +125 -0
- package/dist/lint/rule-table.d.ts.map +1 -0
- package/dist/lint/rule-table.js +222 -0
- package/dist/lint/rules/class/detect.d.ts +133 -0
- package/dist/lint/rules/class/detect.d.ts.map +1 -0
- package/dist/lint/rules/class/detect.js +858 -0
- package/dist/lint/rules/class/table.d.ts +296 -0
- package/dist/lint/rules/class/table.d.ts.map +1 -0
- package/dist/lint/rules/class/table.js +455 -0
- package/dist/lint/rules/structure/ast.d.ts +15 -0
- package/dist/lint/rules/structure/ast.d.ts.map +1 -0
- package/dist/lint/rules/structure/ast.js +48 -0
- package/dist/lint/rules/structure/color-literal.d.ts +51 -0
- package/dist/lint/rules/structure/color-literal.d.ts.map +1 -0
- package/dist/lint/rules/structure/color-literal.js +127 -0
- package/dist/lint/rules/structure/control-home.d.ts +10 -0
- package/dist/lint/rules/structure/control-home.d.ts.map +1 -0
- package/dist/lint/rules/structure/control-home.js +246 -0
- package/dist/lint/rules/structure/data-primitive-live.d.ts +5 -0
- package/dist/lint/rules/structure/data-primitive-live.d.ts.map +1 -0
- package/dist/lint/rules/structure/data-primitive-live.js +95 -0
- package/dist/lint/rules/structure/data-primitive.d.ts +38 -0
- package/dist/lint/rules/structure/data-primitive.d.ts.map +1 -0
- package/dist/lint/rules/structure/data-primitive.js +587 -0
- package/dist/lint/rules/structure/format-home.d.ts +15 -0
- package/dist/lint/rules/structure/format-home.d.ts.map +1 -0
- package/dist/lint/rules/structure/format-home.js +416 -0
- package/dist/lint/rules/structure/import-boundary.d.ts +40 -0
- package/dist/lint/rules/structure/import-boundary.d.ts.map +1 -0
- package/dist/lint/rules/structure/import-boundary.js +831 -0
- package/dist/lint/rules/structure/label-literal.d.ts +23 -0
- package/dist/lint/rules/structure/label-literal.d.ts.map +1 -0
- package/dist/lint/rules/structure/label-literal.js +492 -0
- package/dist/lint/rules/structure/motion-literal.d.ts +26 -0
- package/dist/lint/rules/structure/motion-literal.d.ts.map +1 -0
- package/dist/lint/rules/structure/motion-literal.js +147 -0
- package/dist/lint/rules/structure/page-root.d.ts +10 -0
- package/dist/lint/rules/structure/page-root.d.ts.map +1 -0
- package/dist/lint/rules/structure/page-root.js +162 -0
- package/dist/lint/rules/structure/primitive-bypass.d.ts +8 -0
- package/dist/lint/rules/structure/primitive-bypass.d.ts.map +1 -0
- package/dist/lint/rules/structure/primitive-bypass.js +1014 -0
- package/dist/lint/rules/structure/query-home.d.ts +12 -0
- package/dist/lint/rules/structure/query-home.d.ts.map +1 -0
- package/dist/lint/rules/structure/query-home.js +171 -0
- package/dist/lint/rules/structure/router-search.d.ts +10 -0
- package/dist/lint/rules/structure/router-search.d.ts.map +1 -0
- package/dist/lint/rules/structure/router-search.js +321 -0
- package/dist/lint/rules/structure/untrusted-markdown.d.ts +22 -0
- package/dist/lint/rules/structure/untrusted-markdown.d.ts.map +1 -0
- package/dist/lint/rules/structure/untrusted-markdown.js +374 -0
- package/dist/lint/rules/structure/waiver-needs-reason.d.ts +41 -0
- package/dist/lint/rules/structure/waiver-needs-reason.d.ts.map +1 -0
- package/dist/lint/rules/structure/waiver-needs-reason.js +128 -0
- 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/gen.d.ts +2 -0
- package/dist/lint/stylelint/gen.d.ts.map +1 -0
- package/dist/lint/stylelint/gen.js +28 -0
- package/dist/lint/stylelint/index.d.ts +3 -0
- package/dist/lint/stylelint/index.d.ts.map +1 -0
- package/dist/lint/stylelint/index.js +5 -0
- package/dist/lint/stylelint/render.d.ts +39 -0
- package/dist/lint/stylelint/render.d.ts.map +1 -0
- package/dist/lint/stylelint/render.js +69 -0
- package/dist/lint/stylelint/rules.d.ts +76 -0
- package/dist/lint/stylelint/rules.d.ts.map +1 -0
- package/dist/lint/stylelint/rules.js +244 -0
- package/dist/lint/weakened.d.ts +76 -0
- package/dist/lint/weakened.d.ts.map +1 -0
- package/dist/lint/weakened.js +447 -0
- package/dist/lint/weakening-edit.d.ts +6 -0
- package/dist/lint/weakening-edit.d.ts.map +1 -0
- package/dist/lint/weakening-edit.js +63 -0
- package/dist/messages/de.d.ts +16 -0
- package/dist/messages/de.d.ts.map +1 -0
- package/dist/messages/de.js +636 -0
- package/dist/messages/es.d.ts +16 -0
- package/dist/messages/es.d.ts.map +1 -0
- package/dist/messages/es.js +641 -0
- package/dist/messages/fr.d.ts +16 -0
- package/dist/messages/fr.d.ts.map +1 -0
- package/dist/messages/fr.js +636 -0
- package/dist/messages/zh-hans.d.ts +16 -0
- package/dist/messages/zh-hans.d.ts.map +1 -0
- package/dist/messages/zh-hans.js +643 -0
- package/dist/motion/index.d.ts +20 -0
- package/dist/motion/index.d.ts.map +1 -0
- package/dist/motion/index.js +13 -0
- package/dist/motion/presets.d.ts +45 -0
- package/dist/motion/presets.d.ts.map +1 -0
- package/dist/motion/presets.js +37 -0
- package/dist/page/article-layout.d.ts +67 -0
- package/dist/page/article-layout.d.ts.map +1 -0
- package/dist/page/article-layout.js +127 -0
- package/dist/page/article-progress.d.ts +20 -0
- package/dist/page/article-progress.d.ts.map +1 -0
- package/dist/page/article-progress.js +59 -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/callout.d.ts +27 -0
- package/dist/page/callout.d.ts.map +1 -0
- package/dist/page/callout.js +32 -0
- package/dist/page/card-grid.d.ts +42 -0
- package/dist/page/card-grid.d.ts.map +1 -0
- package/dist/page/card-grid.js +41 -0
- package/dist/page/connection-indicator.d.ts +25 -0
- package/dist/page/connection-indicator.d.ts.map +1 -0
- package/dist/page/connection-indicator.js +115 -0
- package/dist/page/contract.d.ts +305 -0
- package/dist/page/contract.d.ts.map +1 -0
- package/dist/page/contract.js +0 -0
- package/dist/page/core/article-date.d.ts +17 -0
- package/dist/page/core/article-date.d.ts.map +1 -0
- package/dist/page/core/article-date.js +13 -0
- package/dist/page/core/bar-measure.d.ts +32 -0
- package/dist/page/core/bar-measure.d.ts.map +1 -0
- package/dist/page/core/bar-measure.js +34 -0
- package/dist/page/core/claims.d.ts +66 -0
- package/dist/page/core/claims.d.ts.map +1 -0
- package/dist/page/core/claims.js +84 -0
- package/dist/page/core/docking.d.ts +66 -0
- package/dist/page/core/docking.d.ts.map +1 -0
- package/dist/page/core/docking.js +26 -0
- package/dist/page/core/panel-store.d.ts +24 -0
- package/dist/page/core/panel-store.d.ts.map +1 -0
- package/dist/page/core/panel-store.js +35 -0
- package/dist/page/define-overlays.d.ts +95 -0
- package/dist/page/define-overlays.d.ts.map +1 -0
- package/dist/page/define-overlays.js +56 -0
- package/dist/page/dock.d.ts +67 -0
- package/dist/page/dock.d.ts.map +1 -0
- package/dist/page/dock.js +179 -0
- package/dist/page/empty-state.d.ts +52 -0
- package/dist/page/empty-state.d.ts.map +1 -0
- package/dist/page/empty-state.js +78 -0
- package/dist/page/error-cause.d.ts +13 -0
- package/dist/page/error-cause.d.ts.map +1 -0
- package/dist/page/error-cause.js +14 -0
- package/dist/page/facts.d.ts +50 -0
- package/dist/page/facts.d.ts.map +1 -0
- package/dist/page/facts.js +37 -0
- package/dist/page/favorites.d.ts +59 -0
- package/dist/page/favorites.d.ts.map +1 -0
- package/dist/page/favorites.js +106 -0
- package/dist/page/index.d.ts +51 -0
- package/dist/page/index.d.ts.map +1 -0
- package/dist/page/index.js +67 -0
- package/dist/page/mdx.d.ts +18 -0
- package/dist/page/mdx.d.ts.map +1 -0
- package/dist/page/mdx.js +86 -0
- package/dist/page/overlay-host.d.ts +23 -0
- package/dist/page/overlay-host.d.ts.map +1 -0
- package/dist/page/overlay-host.js +78 -0
- package/dist/page/page-aside.d.ts +66 -0
- package/dist/page/page-aside.d.ts.map +1 -0
- package/dist/page/page-aside.js +273 -0
- package/dist/page/page-bar.d.ts +85 -0
- package/dist/page/page-bar.d.ts.map +1 -0
- package/dist/page/page-bar.js +507 -0
- package/dist/page/page-summary.d.ts +63 -0
- package/dist/page/page-summary.d.ts.map +1 -0
- package/dist/page/page-summary.js +112 -0
- package/dist/page/page-tabs.d.ts +9 -0
- package/dist/page/page-tabs.d.ts.map +1 -0
- package/dist/page/page-tabs.js +49 -0
- package/dist/page/page.d.ts +87 -0
- package/dist/page/page.d.ts.map +1 -0
- package/dist/page/page.js +101 -0
- package/dist/page/page.test-support.d.ts +25 -0
- package/dist/page/page.test-support.d.ts.map +1 -0
- package/dist/page/page.test-support.js +81 -0
- package/dist/page/panel-steps.d.ts +19 -0
- package/dist/page/panel-steps.d.ts.map +1 -0
- package/dist/page/panel-steps.js +66 -0
- package/dist/page/parts/inner-nav.d.ts +55 -0
- package/dist/page/parts/inner-nav.d.ts.map +1 -0
- package/dist/page/parts/inner-nav.js +261 -0
- package/dist/page/parts/inner-nav.test-support.d.ts +8 -0
- package/dist/page/parts/inner-nav.test-support.d.ts.map +1 -0
- package/dist/page/parts/inner-nav.test-support.js +59 -0
- package/dist/page/parts/split-page.d.ts +35 -0
- package/dist/page/parts/split-page.d.ts.map +1 -0
- package/dist/page/parts/split-page.js +161 -0
- package/dist/page/peek-window.d.ts +38 -0
- package/dist/page/peek-window.d.ts.map +1 -0
- package/dist/page/peek-window.js +226 -0
- package/dist/page/peek.d.ts +112 -0
- package/dist/page/peek.d.ts.map +1 -0
- package/dist/page/peek.js +498 -0
- package/dist/page/present-glyph.d.ts +9 -0
- package/dist/page/present-glyph.d.ts.map +1 -0
- package/dist/page/present-glyph.js +31 -0
- package/dist/page/property-list.d.ts +127 -0
- package/dist/page/property-list.d.ts.map +1 -0
- package/dist/page/property-list.js +335 -0
- package/dist/page/prose.d.ts +28 -0
- package/dist/page/prose.d.ts.map +1 -0
- package/dist/page/prose.js +25 -0
- package/dist/page/query-state.d.ts +41 -0
- package/dist/page/query-state.d.ts.map +1 -0
- package/dist/page/query-state.js +79 -0
- package/dist/page/record-panel.d.ts +106 -0
- package/dist/page/record-panel.d.ts.map +1 -0
- package/dist/page/record-panel.js +242 -0
- package/dist/page/refresh-button.d.ts +41 -0
- package/dist/page/refresh-button.d.ts.map +1 -0
- package/dist/page/refresh-button.js +148 -0
- 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/search-hint.d.ts +13 -0
- package/dist/page/search-hint.d.ts.map +1 -0
- package/dist/page/search-hint.js +33 -0
- package/dist/page/section.d.ts +35 -0
- package/dist/page/section.d.ts.map +1 -0
- package/dist/page/section.js +114 -0
- package/dist/page/settings-layout.d.ts +36 -0
- package/dist/page/settings-layout.d.ts.map +1 -0
- package/dist/page/settings-layout.js +83 -0
- package/dist/page/toast-host.d.ts +15 -0
- package/dist/page/toast-host.d.ts.map +1 -0
- package/dist/page/toast-host.js +57 -0
- package/dist/page/toc-click-pin.d.ts.map +1 -0
- package/dist/page/toc-click-pin.js +112 -0
- package/dist/page/toc-spy.d.ts.map +1 -0
- package/dist/page/toc.d.ts +43 -0
- package/dist/page/toc.d.ts.map +1 -0
- package/dist/page/toc.js +151 -0
- package/dist/page/use-size-class.d.ts +20 -0
- package/dist/page/use-size-class.d.ts.map +1 -0
- package/dist/page/use-size-class.js +23 -0
- package/dist/register.d.ts +11 -48
- package/dist/register.d.ts.map +1 -1
- package/dist/router/controls/brand.d.ts +72 -0
- package/dist/router/controls/brand.d.ts.map +1 -0
- package/dist/router/controls/brand.js +37 -0
- package/dist/router/controls/codec.d.ts +78 -0
- package/dist/router/controls/codec.d.ts.map +1 -0
- package/dist/router/controls/codec.js +112 -0
- package/dist/router/controls/define.d.ts +234 -0
- package/dist/router/controls/define.d.ts.map +1 -0
- package/dist/router/controls/define.js +379 -0
- package/dist/router/controls/field.d.ts +156 -0
- package/dist/router/controls/field.d.ts.map +1 -0
- package/dist/router/controls/field.js +104 -0
- package/dist/router/controls/href.d.ts +5 -0
- package/dist/router/controls/href.d.ts.map +1 -0
- package/dist/router/controls/href.js +19 -0
- package/dist/router/controls/middleware.d.ts +34 -0
- package/dist/router/controls/middleware.d.ts.map +1 -0
- package/dist/router/controls/middleware.js +41 -0
- package/dist/router/controls/ownership.d.ts +19 -0
- package/dist/router/controls/ownership.d.ts.map +1 -0
- package/dist/router/controls/ownership.js +57 -0
- package/dist/router/controls/precedence.d.ts +16 -0
- package/dist/router/controls/precedence.d.ts.map +1 -0
- package/dist/router/controls/precedence.js +8 -0
- package/dist/router/controls/values.d.ts +24 -0
- package/dist/router/controls/values.d.ts.map +1 -0
- package/dist/router/controls/values.js +0 -0
- package/dist/router/controls/widgets.d.ts +131 -0
- package/dist/router/controls/widgets.d.ts.map +1 -0
- package/dist/router/controls/widgets.js +199 -0
- package/dist/router/defaults.d.ts +74 -0
- package/dist/router/defaults.d.ts.map +1 -0
- package/dist/router/defaults.js +45 -0
- package/dist/router/index.d.ts +17 -0
- package/dist/router/index.d.ts.map +1 -0
- package/dist/router/index.js +19 -0
- package/dist/router/nav/anchor.d.ts +8 -0
- package/dist/router/nav/anchor.d.ts.map +1 -0
- package/dist/router/nav/anchor.js +18 -0
- package/dist/router/nav/define-nav.d.ts +46 -0
- package/dist/router/nav/define-nav.d.ts.map +1 -0
- package/dist/router/nav/define-nav.js +6 -0
- package/dist/router/nav/read-labels.d.ts +4 -0
- package/dist/router/nav/read-labels.d.ts.map +1 -0
- package/dist/router/nav/read-labels.js +72 -0
- package/dist/router/nav/registry.d.ts +9 -0
- package/dist/router/nav/registry.d.ts.map +1 -0
- package/dist/router/nav/registry.js +22 -0
- package/dist/router/nav/resolve-active.d.ts +46 -0
- package/dist/router/nav/resolve-active.d.ts.map +1 -0
- package/dist/router/nav/resolve-active.js +84 -0
- package/dist/router/nav/types.d.ts +274 -0
- package/dist/router/nav/types.d.ts.map +1 -0
- package/dist/router/nav/types.js +0 -0
- package/dist/router/nav-target.d.ts +40 -0
- package/dist/router/nav-target.d.ts.map +1 -0
- package/dist/router/nav-target.js +55 -0
- package/dist/router/peek.d.ts +107 -0
- package/dist/router/peek.d.ts.map +1 -0
- package/dist/router/peek.js +224 -0
- package/dist/router/unsaved-guard.d.ts +30 -0
- package/dist/router/unsaved-guard.d.ts.map +1 -0
- package/dist/router/unsaved-guard.js +30 -0
- package/dist/shell/app-shell-host.d.ts +27 -0
- package/dist/shell/app-shell-host.d.ts.map +1 -0
- package/dist/shell/app-shell-host.js +52 -0
- package/dist/shell/app-shell.d.ts +64 -0
- package/dist/shell/app-shell.d.ts.map +1 -0
- package/dist/shell/app-shell.js +281 -0
- package/dist/shell/chrome.d.ts +45 -0
- package/dist/shell/chrome.d.ts.map +1 -0
- package/dist/shell/chrome.js +63 -0
- package/dist/shell/commands/area.d.ts +6 -0
- package/dist/shell/commands/area.d.ts.map +1 -0
- package/dist/shell/commands/area.js +11 -0
- package/dist/shell/commands/bindings.d.ts +51 -0
- package/dist/shell/commands/bindings.d.ts.map +1 -0
- package/dist/shell/commands/bindings.js +93 -0
- package/dist/shell/commands/command-palette.d.ts +71 -0
- package/dist/shell/commands/command-palette.d.ts.map +1 -0
- package/dist/shell/commands/command-palette.js +273 -0
- package/dist/shell/commands/define-commands.d.ts +127 -0
- package/dist/shell/commands/define-commands.d.ts.map +1 -0
- package/dist/shell/commands/define-commands.js +171 -0
- package/dist/shell/commands/nav-commands.d.ts +14 -0
- package/dist/shell/commands/nav-commands.d.ts.map +1 -0
- package/dist/shell/commands/nav-commands.js +34 -0
- package/dist/shell/commands/palette-sheet.d.ts +13 -0
- package/dist/shell/commands/palette-sheet.d.ts.map +1 -0
- package/dist/shell/commands/palette-sheet.js +23 -0
- package/dist/shell/commands/palette-sources.d.ts +64 -0
- package/dist/shell/commands/palette-sources.d.ts.map +1 -0
- package/dist/shell/commands/palette-sources.js +106 -0
- package/dist/shell/commands/rank.d.ts +23 -0
- package/dist/shell/commands/rank.d.ts.map +1 -0
- package/dist/shell/commands/rank.js +15 -0
- package/dist/shell/commands/runnable.d.ts +8 -0
- package/dist/shell/commands/runnable.d.ts.map +1 -0
- package/dist/shell/commands/runnable.js +71 -0
- package/dist/shell/commands/shortcut-overlay.d.ts +14 -0
- package/dist/shell/commands/shortcut-overlay.d.ts.map +1 -0
- package/dist/shell/commands/shortcut-overlay.js +33 -0
- package/dist/shell/commands/shortcut-rows.d.ts +30 -0
- package/dist/shell/commands/shortcut-rows.d.ts.map +1 -0
- package/dist/shell/commands/shortcut-rows.js +20 -0
- package/dist/shell/contract.d.ts +191 -0
- package/dist/shell/contract.d.ts.map +1 -0
- package/dist/shell/contract.js +0 -0
- package/dist/shell/core/badges.d.ts +32 -0
- package/dist/shell/core/badges.d.ts.map +1 -0
- package/dist/shell/core/badges.js +41 -0
- package/dist/shell/core/block-model.d.ts +100 -0
- package/dist/shell/core/block-model.d.ts.map +1 -0
- package/dist/shell/core/block-model.js +36 -0
- package/dist/shell/core/column.d.ts +24 -0
- package/dist/shell/core/column.d.ts.map +1 -0
- package/dist/shell/core/column.js +33 -0
- package/dist/shell/core/crumbs.d.ts +75 -0
- package/dist/shell/core/crumbs.d.ts.map +1 -0
- package/dist/shell/core/crumbs.js +54 -0
- package/dist/shell/core/header-tiers.d.ts +49 -0
- package/dist/shell/core/header-tiers.d.ts.map +1 -0
- package/dist/shell/core/header-tiers.js +37 -0
- package/dist/shell/core/nav-runtime.d.ts +42 -0
- package/dist/shell/core/nav-runtime.d.ts.map +1 -0
- package/dist/shell/core/nav-runtime.js +44 -0
- package/dist/shell/core/phone-groups.d.ts +41 -0
- package/dist/shell/core/phone-groups.d.ts.map +1 -0
- package/dist/shell/core/phone-groups.js +33 -0
- package/dist/shell/core/projector.d.ts +82 -0
- package/dist/shell/core/projector.d.ts.map +1 -0
- package/dist/shell/core/projector.js +92 -0
- package/dist/shell/core/types.d.ts +70 -0
- package/dist/shell/core/types.d.ts.map +1 -0
- package/dist/shell/core/types.js +0 -0
- package/dist/shell/favorites-host.d.ts +4 -0
- package/dist/shell/favorites-host.d.ts.map +1 -0
- package/dist/shell/favorites-host.js +41 -0
- package/dist/shell/index.d.ts +12 -203
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +12 -253
- package/dist/shell/menu-template.d.ts +42 -0
- package/dist/shell/menu-template.d.ts.map +1 -0
- package/dist/shell/menu-template.js +72 -0
- package/dist/shell/parts/a11y.d.ts +51 -0
- package/dist/shell/parts/a11y.d.ts.map +1 -0
- package/dist/shell/parts/a11y.js +147 -0
- package/dist/shell/parts/account.d.ts +8 -0
- package/dist/shell/parts/account.d.ts.map +1 -0
- package/dist/shell/parts/account.js +115 -0
- package/dist/shell/parts/blocks.d.ts +12 -0
- package/dist/shell/parts/blocks.d.ts.map +1 -0
- package/dist/shell/parts/blocks.js +209 -0
- package/dist/shell/parts/crumbs.d.ts +6 -0
- package/dist/shell/parts/crumbs.d.ts.map +1 -0
- package/dist/shell/parts/crumbs.js +63 -0
- package/dist/shell/parts/grid.d.ts +166 -0
- package/dist/shell/parts/grid.d.ts.map +1 -0
- package/dist/shell/parts/grid.js +395 -0
- package/dist/shell/parts/header-kebab.d.ts +21 -0
- package/dist/shell/parts/header-kebab.d.ts.map +1 -0
- package/dist/shell/parts/header-kebab.js +89 -0
- package/dist/shell/parts/header.d.ts +34 -0
- package/dist/shell/parts/header.d.ts.map +1 -0
- package/dist/shell/parts/header.js +353 -0
- package/dist/shell/parts/mobile/retap.d.ts +42 -0
- package/dist/shell/parts/mobile/retap.d.ts.map +1 -0
- package/dist/shell/parts/mobile/retap.js +52 -0
- package/dist/shell/parts/mobile/section-nav/chrome-state.d.ts +5 -0
- package/dist/shell/parts/mobile/section-nav/chrome-state.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/chrome-state.js +39 -0
- package/dist/shell/parts/mobile/section-nav/drawer.d.ts +4 -0
- package/dist/shell/parts/mobile/section-nav/drawer.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/drawer.js +231 -0
- package/dist/shell/parts/mobile/section-nav/host.d.ts +37 -0
- package/dist/shell/parts/mobile/section-nav/host.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/host.js +52 -0
- package/dist/shell/parts/mobile/section-nav/measure.d.ts +2 -0
- package/dist/shell/parts/mobile/section-nav/measure.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/measure.js +19 -0
- package/dist/shell/parts/mobile/section-nav/model.d.ts +38 -0
- package/dist/shell/parts/mobile/section-nav/model.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/model.js +63 -0
- package/dist/shell/parts/mobile/section-nav/parts.d.ts +34 -0
- package/dist/shell/parts/mobile/section-nav/parts.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/parts.js +86 -0
- package/dist/shell/parts/mobile/section-nav/phone-actions.d.ts +13 -0
- package/dist/shell/parts/mobile/section-nav/phone-actions.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/phone-actions.js +65 -0
- package/dist/shell/parts/mobile/section-nav/phone-rail.d.ts +10 -0
- package/dist/shell/parts/mobile/section-nav/phone-rail.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/phone-rail.js +187 -0
- package/dist/shell/parts/mobile/section-nav/rows.d.ts +5 -0
- package/dist/shell/parts/mobile/section-nav/rows.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/rows.js +63 -0
- package/dist/shell/parts/mobile/section-nav/safe.d.ts +8 -0
- package/dist/shell/parts/mobile/section-nav/safe.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/safe.js +4 -0
- package/dist/shell/parts/mobile/section-nav/section-bar.d.ts +24 -0
- package/dist/shell/parts/mobile/section-nav/section-bar.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/section-bar.js +101 -0
- package/dist/shell/parts/mobile/section-nav/snaps.d.ts +25 -0
- package/dist/shell/parts/mobile/section-nav/snaps.d.ts.map +1 -0
- package/dist/shell/parts/mobile/section-nav/snaps.js +17 -0
- package/dist/shell/parts/mounts.d.ts +14 -0
- package/dist/shell/parts/mounts.d.ts.map +1 -0
- package/dist/shell/parts/mounts.js +29 -0
- package/dist/shell/parts/nav-row-menu.d.ts +17 -0
- package/dist/shell/parts/nav-row-menu.d.ts.map +1 -0
- package/dist/shell/parts/nav-row-menu.js +56 -0
- package/dist/shell/parts/print.d.ts +14 -0
- package/dist/shell/parts/print.d.ts.map +1 -0
- package/dist/shell/parts/print.js +33 -0
- package/dist/shell/parts/rail-favorites.d.ts +4 -0
- package/dist/shell/parts/rail-favorites.d.ts.map +1 -0
- package/dist/shell/parts/rail-favorites.js +118 -0
- package/dist/shell/parts/rail-folds.d.ts +5 -0
- package/dist/shell/parts/rail-folds.d.ts.map +1 -0
- package/dist/shell/parts/rail-folds.js +32 -0
- package/dist/shell/parts/rail-resize.d.ts +3 -0
- package/dist/shell/parts/rail-resize.d.ts.map +1 -0
- package/dist/shell/parts/rail-resize.js +92 -0
- package/dist/shell/parts/rail-rows.d.ts +9 -0
- package/dist/shell/parts/rail-rows.d.ts.map +1 -0
- package/dist/shell/parts/rail-rows.js +169 -0
- package/dist/shell/parts/rail-search.d.ts +10 -0
- package/dist/shell/parts/rail-search.d.ts.map +1 -0
- package/dist/shell/parts/rail-search.js +56 -0
- package/dist/shell/parts/rail-section.d.ts +7 -0
- package/dist/shell/parts/rail-section.d.ts.map +1 -0
- package/dist/shell/parts/rail-section.js +112 -0
- package/dist/shell/parts/rail-test-kit.d.ts +12 -0
- package/dist/shell/parts/rail-test-kit.d.ts.map +1 -0
- package/dist/shell/parts/rail-test-kit.js +38 -0
- package/dist/shell/parts/rail-text.d.ts +9 -0
- package/dist/shell/parts/rail-text.d.ts.map +1 -0
- package/dist/shell/parts/rail-text.js +16 -0
- package/dist/shell/parts/rail.d.ts +19 -0
- package/dist/shell/parts/rail.d.ts.map +1 -0
- package/dist/shell/parts/rail.js +117 -0
- package/dist/shell/parts/section-column.d.ts +11 -0
- package/dist/shell/parts/section-column.d.ts.map +1 -0
- package/dist/shell/parts/section-column.js +89 -0
- package/dist/shell/parts/settings.d.ts +18 -0
- package/dist/shell/parts/settings.d.ts.map +1 -0
- package/dist/shell/parts/settings.js +73 -0
- package/dist/shell/parts/top-nav.d.ts +20 -0
- package/dist/shell/parts/top-nav.d.ts.map +1 -0
- package/dist/shell/parts/top-nav.js +143 -0
- package/dist/shell/parts/workspace-switcher.d.ts +19 -0
- package/dist/shell/parts/workspace-switcher.d.ts.map +1 -0
- package/dist/shell/parts/workspace-switcher.js +98 -0
- package/dist/static/article-layout.d.ts +62 -0
- package/dist/static/article-layout.d.ts.map +1 -0
- package/dist/static/article-layout.js +129 -0
- package/dist/static/bento.d.ts +50 -0
- package/dist/static/bento.d.ts.map +1 -0
- package/dist/static/bento.js +49 -0
- package/dist/static/blocks.d.ts +25 -0
- package/dist/static/blocks.d.ts.map +1 -0
- package/dist/static/blocks.js +34 -0
- package/dist/static/call-to-action.d.ts +23 -0
- package/dist/static/call-to-action.d.ts.map +1 -0
- package/dist/static/call-to-action.js +36 -0
- package/dist/static/callout.d.ts +27 -0
- package/dist/static/callout.d.ts.map +1 -0
- package/dist/static/callout.js +57 -0
- package/dist/static/changelog.d.ts +41 -0
- package/dist/static/changelog.d.ts.map +1 -0
- package/dist/static/changelog.js +47 -0
- package/dist/static/code-block.d.ts +28 -0
- package/dist/static/code-block.d.ts.map +1 -0
- package/dist/static/code-block.js +34 -0
- package/dist/static/comparison.d.ts +55 -0
- package/dist/static/comparison.d.ts.map +1 -0
- package/dist/static/comparison.js +100 -0
- package/dist/static/data-table.d.ts +35 -0
- package/dist/static/data-table.d.ts.map +1 -0
- package/dist/static/data-table.js +46 -0
- package/dist/static/dates.d.ts +5 -0
- package/dist/static/dates.d.ts.map +1 -0
- package/dist/static/dates.js +11 -0
- package/dist/static/form.d.ts +71 -0
- package/dist/static/form.d.ts.map +1 -0
- package/dist/static/form.js +88 -0
- package/dist/static/glyphs.d.ts +20 -0
- package/dist/static/glyphs.d.ts.map +1 -0
- package/dist/static/glyphs.js +33 -0
- package/dist/static/hero.d.ts +36 -0
- package/dist/static/hero.d.ts.map +1 -0
- package/dist/static/hero.js +36 -0
- package/dist/static/index.d.ts +47 -0
- package/dist/static/index.d.ts.map +1 -0
- package/dist/static/index.js +51 -0
- package/dist/static/markup.d.ts +21 -0
- package/dist/static/markup.d.ts.map +1 -0
- package/dist/static/markup.js +17 -0
- package/dist/static/mdx.d.ts +28 -0
- package/dist/static/mdx.d.ts.map +1 -0
- package/dist/static/mdx.js +74 -0
- package/dist/static/post-list.d.ts +43 -0
- package/dist/static/post-list.d.ts.map +1 -0
- package/dist/static/post-list.js +52 -0
- package/dist/static/question-list.d.ts +36 -0
- package/dist/static/question-list.d.ts.map +1 -0
- package/dist/static/question-list.js +43 -0
- package/dist/static/site-footer.d.ts +28 -0
- package/dist/static/site-footer.d.ts.map +1 -0
- package/dist/static/site-footer.js +39 -0
- package/dist/static/site-header.d.ts +57 -0
- package/dist/static/site-header.d.ts.map +1 -0
- package/dist/static/site-header.js +250 -0
- package/dist/static/site-nav.d.ts +38 -0
- package/dist/static/site-nav.d.ts.map +1 -0
- package/dist/static/site-nav.js +29 -0
- package/dist/static/site-script.d.ts +20 -0
- package/dist/static/site-script.d.ts.map +1 -0
- package/dist/static/site-script.js +89 -0
- package/dist/static/tabs.d.ts +46 -0
- package/dist/static/tabs.d.ts.map +1 -0
- package/dist/static/tabs.js +53 -0
- package/dist/static/theme-switch.d.ts +23 -0
- package/dist/static/theme-switch.d.ts.map +1 -0
- package/dist/static/theme-switch.js +35 -0
- package/dist/static/toc.d.ts +23 -0
- package/dist/static/toc.d.ts.map +1 -0
- package/dist/static/toc.js +36 -0
- package/dist/static/types.d.ts +60 -0
- package/dist/static/types.d.ts.map +1 -0
- package/dist/static/types.js +0 -0
- package/dist/surfaces.d.ts +311 -193
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +285 -326
- package/dist/table/contract.d.ts +576 -0
- package/dist/table/contract.d.ts.map +1 -0
- package/dist/table/contract.js +0 -0
- package/dist/table/core/arrange.d.ts +44 -0
- package/dist/table/core/arrange.d.ts.map +1 -0
- package/dist/table/core/arrange.js +51 -0
- package/dist/table/core/cell-parts.d.ts +67 -0
- package/dist/table/core/cell-parts.d.ts.map +1 -0
- package/dist/table/core/cell-parts.js +90 -0
- package/dist/table/core/codec.d.ts +84 -0
- package/dist/table/core/codec.d.ts.map +1 -0
- package/dist/table/core/codec.js +237 -0
- package/dist/table/core/features.d.ts +111 -0
- package/dist/table/core/features.d.ts.map +1 -0
- package/dist/table/core/features.js +81 -0
- package/dist/table/core/filters.d.ts +77 -0
- package/dist/table/core/filters.d.ts.map +1 -0
- package/dist/table/core/filters.js +123 -0
- package/dist/table/core/keyboard.d.ts +64 -0
- package/dist/table/core/keyboard.d.ts.map +1 -0
- package/dist/table/core/keyboard.js +308 -0
- package/dist/table/core/kind-icons.d.ts +5 -0
- package/dist/table/core/kind-icons.d.ts.map +1 -0
- package/dist/table/core/kind-icons.js +94 -0
- package/dist/table/core/kinds-cells.d.ts +325 -0
- package/dist/table/core/kinds-cells.d.ts.map +1 -0
- package/dist/table/core/kinds-cells.js +834 -0
- package/dist/table/core/kinds-codec.d.ts +34 -0
- package/dist/table/core/kinds-codec.d.ts.map +1 -0
- package/dist/table/core/kinds-codec.js +30 -0
- package/dist/table/core/kinds-engine.d.ts +7 -0
- package/dist/table/core/kinds-engine.d.ts.map +1 -0
- package/dist/table/core/kinds-engine.js +37 -0
- package/dist/table/core/kinds-spec.d.ts +253 -0
- package/dist/table/core/kinds-spec.d.ts.map +1 -0
- package/dist/table/core/kinds-spec.js +298 -0
- package/dist/table/core/kinds.d.ts +550 -0
- package/dist/table/core/kinds.d.ts.map +1 -0
- package/dist/table/core/kinds.js +1387 -0
- package/dist/table/core/plan.d.ts +131 -0
- package/dist/table/core/plan.d.ts.map +1 -0
- package/dist/table/core/plan.js +252 -0
- package/dist/table/core/selection.d.ts +47 -0
- package/dist/table/core/selection.d.ts.map +1 -0
- package/dist/table/core/selection.js +85 -0
- package/dist/table/core/state.d.ts +76 -0
- package/dist/table/core/state.d.ts.map +1 -0
- package/dist/table/core/state.js +160 -0
- package/dist/table/index.d.ts +25 -15
- package/dist/table/index.d.ts.map +1 -1
- package/dist/table/index.js +21 -4
- package/dist/table/layouts/add-menu.d.ts +16 -0
- package/dist/table/layouts/add-menu.d.ts.map +1 -0
- package/dist/table/layouts/add-menu.js +35 -0
- package/dist/table/layouts/board-layout.d.ts +11 -0
- package/dist/table/layouts/board-layout.d.ts.map +1 -0
- package/dist/table/layouts/board-layout.js +182 -0
- package/dist/table/layouts/card-tick.d.ts +15 -0
- package/dist/table/layouts/card-tick.d.ts.map +1 -0
- package/dist/table/layouts/card-tick.js +28 -0
- package/dist/table/layouts/gallery-layout.d.ts +6 -0
- package/dist/table/layouts/gallery-layout.d.ts.map +1 -0
- package/dist/table/layouts/gallery-layout.js +135 -0
- package/dist/table/layouts/glyphs.d.ts +14 -0
- package/dist/table/layouts/glyphs.d.ts.map +1 -0
- package/dist/table/layouts/glyphs.js +34 -0
- package/dist/table/layouts/layout-phase.d.ts +18 -0
- package/dist/table/layouts/layout-phase.d.ts.map +1 -0
- package/dist/table/layouts/layout-phase.js +107 -0
- package/dist/table/layouts/model.d.ts +57 -0
- package/dist/table/layouts/model.d.ts.map +1 -0
- package/dist/table/layouts/model.js +109 -0
- package/dist/table/layouts/specs.d.ts +26 -0
- package/dist/table/layouts/specs.d.ts.map +1 -0
- package/dist/table/layouts/specs.js +42 -0
- package/dist/table/layouts/toggle.d.ts +31 -0
- package/dist/table/layouts/toggle.d.ts.map +1 -0
- package/dist/table/layouts/toggle.js +55 -0
- package/dist/table/parts/add-filter.d.ts +7 -0
- package/dist/table/parts/add-filter.d.ts.map +1 -0
- package/dist/table/parts/add-filter.js +47 -0
- package/dist/table/parts/auto-detail.d.ts +17 -0
- package/dist/table/parts/auto-detail.d.ts.map +1 -0
- package/dist/table/parts/auto-detail.js +24 -0
- package/dist/table/parts/body.d.ts +57 -0
- package/dist/table/parts/body.d.ts.map +1 -0
- package/dist/table/parts/body.js +335 -0
- package/dist/table/parts/bulk-bar.d.ts +40 -0
- package/dist/table/parts/bulk-bar.d.ts.map +1 -0
- package/dist/table/parts/bulk-bar.js +172 -0
- package/dist/table/parts/category-order.d.ts +14 -0
- package/dist/table/parts/category-order.d.ts.map +1 -0
- package/dist/table/parts/category-order.js +52 -0
- package/dist/table/parts/cell-filter.d.ts +42 -0
- package/dist/table/parts/cell-filter.d.ts.map +1 -0
- package/dist/table/parts/cell-filter.js +52 -0
- package/dist/table/parts/chips.d.ts +26 -0
- package/dist/table/parts/chips.d.ts.map +1 -0
- package/dist/table/parts/chips.js +81 -0
- package/dist/table/parts/column-actions.d.ts +48 -0
- package/dist/table/parts/column-actions.d.ts.map +1 -0
- package/dist/table/parts/column-actions.js +170 -0
- package/dist/table/parts/data-table.d.ts +37 -0
- package/dist/table/parts/data-table.d.ts.map +1 -0
- package/dist/table/parts/data-table.js +338 -0
- package/dist/table/parts/detail-sheet.d.ts +9 -0
- package/dist/table/parts/detail-sheet.d.ts.map +1 -0
- package/dist/table/parts/detail-sheet.js +102 -0
- package/dist/table/parts/filter-text.d.ts +12 -0
- package/dist/table/parts/filter-text.d.ts.map +1 -0
- package/dist/table/parts/filter-text.js +34 -0
- package/dist/table/parts/footer-model.d.ts +54 -0
- package/dist/table/parts/footer-model.d.ts.map +1 -0
- package/dist/table/parts/footer-model.js +73 -0
- package/dist/table/parts/footer.d.ts +38 -0
- package/dist/table/parts/footer.d.ts.map +1 -0
- package/dist/table/parts/footer.js +131 -0
- package/dist/table/parts/group-row-model.d.ts +36 -0
- package/dist/table/parts/group-row-model.d.ts.map +1 -0
- package/dist/table/parts/group-row-model.js +50 -0
- package/dist/table/parts/group-row.d.ts +32 -0
- package/dist/table/parts/group-row.d.ts.map +1 -0
- package/dist/table/parts/group-row.js +143 -0
- package/dist/table/parts/head.d.ts +53 -0
- package/dist/table/parts/head.d.ts.map +1 -0
- package/dist/table/parts/head.js +462 -0
- package/dist/table/parts/live-row-actions.d.ts +9 -0
- package/dist/table/parts/live-row-actions.d.ts.map +1 -0
- package/dist/table/parts/live-row-actions.js +62 -0
- package/dist/table/parts/order-list.d.ts +22 -0
- package/dist/table/parts/order-list.d.ts.map +1 -0
- package/dist/table/parts/order-list.js +166 -0
- package/dist/table/parts/pager.d.ts +35 -0
- package/dist/table/parts/pager.d.ts.map +1 -0
- package/dist/table/parts/pager.js +184 -0
- package/dist/table/parts/phases.d.ts +50 -0
- package/dist/table/parts/phases.d.ts.map +1 -0
- package/dist/table/parts/phases.js +200 -0
- package/dist/table/parts/plus-glyph.d.ts +6 -0
- package/dist/table/parts/plus-glyph.d.ts.map +1 -0
- package/dist/table/parts/plus-glyph.js +8 -0
- package/dist/table/parts/range-editor.d.ts +17 -0
- package/dist/table/parts/range-editor.d.ts.map +1 -0
- package/dist/table/parts/range-editor.js +153 -0
- package/dist/table/parts/row-focus.d.ts +45 -0
- package/dist/table/parts/row-focus.d.ts.map +1 -0
- package/dist/table/parts/row-focus.js +131 -0
- package/dist/table/parts/row-menu.d.ts +14 -0
- package/dist/table/parts/row-menu.d.ts.map +1 -0
- package/dist/table/parts/row-menu.js +35 -0
- package/dist/table/parts/row-number.d.ts +40 -0
- package/dist/table/parts/row-number.d.ts.map +1 -0
- package/dist/table/parts/row-number.js +48 -0
- package/dist/table/parts/search-label.d.ts +5 -0
- package/dist/table/parts/search-label.d.ts.map +1 -0
- package/dist/table/parts/search-label.js +9 -0
- package/dist/table/parts/select-cell.d.ts +23 -0
- package/dist/table/parts/select-cell.d.ts.map +1 -0
- package/dist/table/parts/select-cell.js +77 -0
- package/dist/table/parts/tick-column.d.ts +29 -0
- package/dist/table/parts/tick-column.d.ts.map +1 -0
- package/dist/table/parts/tick-column.js +40 -0
- package/dist/table/parts/tiers.d.ts +40 -0
- package/dist/table/parts/tiers.d.ts.map +1 -0
- package/dist/table/parts/tiers.js +83 -0
- package/dist/table/parts/toolbar-editor.d.ts +14 -0
- package/dist/table/parts/toolbar-editor.d.ts.map +1 -0
- package/dist/table/parts/toolbar-editor.js +154 -0
- package/dist/table/parts/toolbar-filters.d.ts +35 -0
- package/dist/table/parts/toolbar-filters.d.ts.map +1 -0
- package/dist/table/parts/toolbar-filters.js +31 -0
- package/dist/table/parts/toolbar.d.ts +25 -0
- package/dist/table/parts/toolbar.d.ts.map +1 -0
- package/dist/table/parts/toolbar.js +146 -0
- package/dist/table/parts/tree-row-model.d.ts +38 -0
- package/dist/table/parts/tree-row-model.d.ts.map +1 -0
- package/dist/table/parts/tree-row-model.js +75 -0
- package/dist/table/parts/tri-state-header.d.ts +23 -0
- package/dist/table/parts/tri-state-header.d.ts.map +1 -0
- package/dist/table/parts/tri-state-header.js +40 -0
- package/dist/table/parts/view-door.d.ts +17 -0
- package/dist/table/parts/view-door.d.ts.map +1 -0
- package/dist/table/parts/view-door.js +51 -0
- package/dist/table/parts/view-panel.d.ts +7 -0
- package/dist/table/parts/view-panel.d.ts.map +1 -0
- package/dist/table/parts/view-panel.js +605 -0
- package/dist/table/parts/view-tab-menu.d.ts +17 -0
- package/dist/table/parts/view-tab-menu.d.ts.map +1 -0
- package/dist/table/parts/view-tab-menu.js +47 -0
- package/dist/table/parts/views-model.d.ts +64 -0
- package/dist/table/parts/views-model.d.ts.map +1 -0
- package/dist/table/parts/views-model.js +228 -0
- package/dist/table/parts/views.d.ts +126 -0
- package/dist/table/parts/views.d.ts.map +1 -0
- package/dist/table/parts/views.js +564 -0
- package/dist/table/parts/virtual.d.ts +33 -0
- package/dist/table/parts/virtual.d.ts.map +1 -0
- package/dist/table/parts/virtual.js +120 -0
- package/dist/table/table.css +2688 -0
- package/dist/table/use-data-table.d.ts +284 -0
- package/dist/table/use-data-table.d.ts.map +1 -0
- package/dist/table/use-data-table.js +751 -0
- package/dist/testing/dom-shims.d.ts +29 -0
- package/dist/testing/dom-shims.d.ts.map +1 -0
- package/dist/testing/dom-shims.js +114 -0
- package/dist/testing/expect-catalog.d.ts +30 -0
- package/dist/testing/expect-catalog.d.ts.map +1 -0
- package/dist/testing/expect-catalog.js +102 -0
- package/dist/testing/fake-channel.d.ts +17 -0
- package/dist/testing/fake-channel.d.ts.map +1 -0
- package/dist/testing/fake-channel.js +78 -0
- package/dist/testing/index.d.ts +9 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +17 -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 +107 -0
- package/dist/testing/quality.d.ts.map +1 -0
- package/dist/testing/quality.js +557 -0
- package/dist/testing/settled.d.ts +37 -0
- package/dist/testing/settled.d.ts.map +1 -0
- package/dist/testing/settled.js +42 -0
- package/dist/testing/shell-invariants.d.ts +134 -0
- package/dist/testing/shell-invariants.d.ts.map +1 -0
- package/dist/testing/shell-invariants.js +274 -0
- package/dist/testing/slots.d.ts +16 -0
- package/dist/testing/slots.d.ts.map +1 -0
- package/dist/testing/slots.js +5 -0
- package/dist/tokens/accents.d.ts +37 -0
- package/dist/tokens/accents.d.ts.map +1 -0
- package/dist/tokens/accents.js +26 -0
- package/dist/tokens/basalt-names.d.ts +3 -0
- package/dist/tokens/basalt-names.d.ts.map +1 -0
- package/dist/tokens/basalt-names.js +367 -0
- 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/chart-vars.d.ts +85 -0
- package/dist/tokens/chart-vars.d.ts.map +1 -0
- package/dist/tokens/chart-vars.js +212 -0
- package/dist/tokens/core.d.ts +68 -124
- package/dist/tokens/core.d.ts.map +1 -1
- package/dist/tokens/core.js +114 -197
- package/dist/tokens/ctl-vars.d.ts +1 -9
- package/dist/tokens/ctl-vars.d.ts.map +1 -1
- package/dist/tokens/ctl-vars.js +1 -11
- package/dist/tokens/derive.d.ts +132 -4
- package/dist/tokens/derive.d.ts.map +1 -1
- package/dist/tokens/derive.js +236 -13
- package/dist/tokens/emit-fallback.d.ts +21 -0
- package/dist/tokens/emit-fallback.d.ts.map +1 -0
- package/dist/tokens/emit-fallback.js +22 -0
- package/dist/tokens/emit-json.d.ts +19 -0
- package/dist/tokens/emit-json.d.ts.map +1 -0
- package/dist/tokens/emit-json.js +29 -0
- package/dist/tokens/emit.d.ts +76 -0
- package/dist/tokens/emit.d.ts.map +1 -0
- package/dist/tokens/emit.js +204 -0
- package/dist/tokens/gates.d.ts +36 -0
- package/dist/tokens/gates.d.ts.map +1 -0
- package/dist/tokens/gates.js +177 -0
- package/dist/tokens/golden/default.css +233 -0
- package/dist/tokens/golden/hue-268-vibrancy-1.css +233 -0
- package/dist/tokens/hct.d.ts +1 -1
- package/dist/tokens/index.d.ts +4 -2
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +19 -5
- package/dist/tokens/motion.d.ts +140 -0
- package/dist/tokens/motion.d.ts.map +1 -0
- package/dist/tokens/motion.js +41 -0
- package/dist/tokens/oklab.d.ts +3 -3
- package/dist/tokens/oklab.d.ts.map +1 -1
- package/dist/tokens/palette.d.ts +122 -146
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +81 -79
- package/dist/tokens/part-vars.d.ts +8 -0
- package/dist/tokens/part-vars.d.ts.map +1 -0
- package/dist/tokens/part-vars.js +72 -0
- package/dist/tokens/ramps.d.ts +44 -0
- package/dist/tokens/ramps.d.ts.map +1 -0
- package/dist/tokens/ramps.js +32 -0
- package/dist/tokens/site-text.d.ts +8 -0
- package/dist/tokens/site-text.d.ts.map +1 -0
- package/dist/tokens/site-text.js +7 -0
- package/dist/tokens/size-classes.d.ts +12 -15
- package/dist/tokens/size-classes.d.ts.map +1 -1
- package/dist/tokens/size-classes.js +4 -4
- package/dist/tokens/space-scale.d.ts +2 -2
- package/dist/tokens/status-text.d.ts +16 -1
- package/dist/tokens/status-text.d.ts.map +1 -1
- package/dist/tokens/status-text.js +15 -0
- package/dist/tokens/table.d.ts +93 -0
- package/dist/tokens/table.d.ts.map +1 -0
- package/dist/tokens/table.js +599 -0
- package/dist/ui/accordion.d.ts +58 -0
- package/dist/ui/accordion.d.ts.map +1 -0
- package/dist/ui/accordion.guard.d.ts +13 -0
- package/dist/ui/accordion.guard.d.ts.map +1 -0
- package/dist/ui/accordion.guard.js +6 -0
- package/dist/ui/accordion.js +96 -0
- package/dist/ui/alert.d.ts +35 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.guard.d.ts +14 -0
- package/dist/ui/alert.guard.d.ts.map +1 -0
- package/dist/ui/alert.guard.js +8 -0
- package/dist/ui/alert.js +76 -0
- package/dist/ui/avatar.d.ts +75 -0
- package/dist/ui/avatar.d.ts.map +1 -0
- package/dist/ui/avatar.guard.d.ts +29 -0
- package/dist/ui/avatar.guard.d.ts.map +1 -0
- package/dist/ui/avatar.guard.js +14 -0
- package/dist/ui/avatar.js +154 -0
- package/dist/ui/badge.d.ts +95 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.guard.d.ts +16 -0
- package/dist/ui/badge.guard.d.ts.map +1 -0
- package/dist/ui/badge.guard.js +8 -0
- package/dist/ui/badge.js +162 -0
- package/dist/ui/button.d.ts +73 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.guard.d.ts +24 -0
- package/dist/ui/button.guard.d.ts.map +1 -0
- package/dist/ui/button.guard.js +12 -0
- package/dist/ui/button.js +127 -0
- package/dist/ui/calendar-grid.d.ts +31 -0
- package/dist/ui/calendar-grid.d.ts.map +1 -0
- package/dist/ui/calendar-grid.js +133 -0
- package/dist/ui/calendar.d.ts +74 -0
- package/dist/ui/calendar.d.ts.map +1 -0
- package/dist/ui/calendar.guard.d.ts +42 -0
- package/dist/ui/calendar.guard.d.ts.map +1 -0
- package/dist/ui/calendar.guard.js +12 -0
- package/dist/ui/calendar.js +119 -0
- package/dist/ui/card.d.ts +157 -0
- package/dist/ui/card.d.ts.map +1 -0
- package/dist/ui/card.guard.d.ts +12 -0
- package/dist/ui/card.guard.d.ts.map +1 -0
- package/dist/ui/card.guard.js +6 -0
- package/dist/ui/card.js +225 -0
- package/dist/ui/checkbox-matrix.d.ts +82 -0
- package/dist/ui/checkbox-matrix.d.ts.map +1 -0
- package/dist/ui/checkbox-matrix.guard.d.ts +24 -0
- package/dist/ui/checkbox-matrix.guard.d.ts.map +1 -0
- package/dist/ui/checkbox-matrix.guard.js +6 -0
- package/dist/ui/checkbox-matrix.js +226 -0
- package/dist/ui/checkbox.d.ts +71 -0
- package/dist/ui/checkbox.d.ts.map +1 -0
- package/dist/ui/checkbox.guard.d.ts +24 -0
- package/dist/ui/checkbox.guard.d.ts.map +1 -0
- package/dist/ui/checkbox.guard.js +8 -0
- package/dist/ui/checkbox.js +110 -0
- package/dist/ui/choice-card.d.ts +41 -0
- package/dist/ui/choice-card.d.ts.map +1 -0
- package/dist/ui/choice-card.guard.d.ts +17 -0
- package/dist/ui/choice-card.guard.d.ts.map +1 -0
- package/dist/ui/choice-card.guard.js +6 -0
- package/dist/ui/choice-card.js +51 -0
- package/dist/ui/collapsible.d.ts +46 -0
- package/dist/ui/collapsible.d.ts.map +1 -0
- package/dist/ui/collapsible.guard.d.ts +13 -0
- package/dist/ui/collapsible.guard.d.ts.map +1 -0
- package/dist/ui/collapsible.guard.js +6 -0
- package/dist/ui/collapsible.js +43 -0
- package/dist/ui/combobox.d.ts +310 -0
- package/dist/ui/combobox.d.ts.map +1 -0
- package/dist/ui/combobox.guard.d.ts +22 -0
- package/dist/ui/combobox.guard.d.ts.map +1 -0
- package/dist/ui/combobox.guard.js +12 -0
- package/dist/ui/combobox.js +642 -0
- package/dist/ui/context-menu.d.ts +66 -0
- package/dist/ui/context-menu.d.ts.map +1 -0
- package/dist/ui/context-menu.js +130 -0
- package/dist/ui/control-group.d.ts +129 -0
- package/dist/ui/control-group.d.ts.map +1 -0
- package/dist/ui/control-group.guard.d.ts +21 -0
- package/dist/ui/control-group.guard.d.ts.map +1 -0
- package/dist/ui/control-group.guard.js +12 -0
- package/dist/ui/control-group.js +132 -0
- package/dist/ui/copy-button.d.ts +35 -0
- package/dist/ui/copy-button.d.ts.map +1 -0
- package/dist/ui/copy-button.js +80 -0
- package/dist/ui/date-picker.d.ts +104 -0
- package/dist/ui/date-picker.d.ts.map +1 -0
- package/dist/ui/date-picker.guard.d.ts +38 -0
- package/dist/ui/date-picker.guard.d.ts.map +1 -0
- package/dist/ui/date-picker.guard.js +13 -0
- package/dist/ui/date-picker.js +265 -0
- package/dist/ui/dialog.d.ts +172 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.guard.d.ts +30 -0
- package/dist/ui/dialog.guard.d.ts.map +1 -0
- package/dist/ui/dialog.guard.js +16 -0
- package/dist/ui/dialog.js +207 -0
- package/dist/ui/drag-auto-scroll.d.ts +31 -0
- package/dist/ui/drag-auto-scroll.d.ts.map +1 -0
- package/dist/ui/drag-auto-scroll.js +78 -0
- package/dist/ui/entity.d.ts +81 -0
- package/dist/ui/entity.d.ts.map +1 -0
- package/dist/ui/entity.guard.d.ts +25 -0
- package/dist/ui/entity.guard.d.ts.map +1 -0
- package/dist/ui/entity.guard.js +14 -0
- package/dist/ui/entity.js +124 -0
- package/dist/ui/field.d.ts +115 -0
- package/dist/ui/field.d.ts.map +1 -0
- package/dist/ui/field.guard.d.ts +16 -0
- package/dist/ui/field.guard.d.ts.map +1 -0
- package/dist/ui/field.guard.js +8 -0
- package/dist/ui/field.js +112 -0
- package/dist/ui/file-upload.d.ts +75 -0
- package/dist/ui/file-upload.d.ts.map +1 -0
- package/dist/ui/file-upload.guard.d.ts +24 -0
- package/dist/ui/file-upload.guard.d.ts.map +1 -0
- package/dist/ui/file-upload.guard.js +10 -0
- package/dist/ui/file-upload.js +330 -0
- package/dist/ui/guard-completeness.d.ts +28 -0
- package/dist/ui/guard-completeness.d.ts.map +1 -0
- package/dist/ui/guard-completeness.js +164 -0
- package/dist/ui/header-actions.d.ts +9 -0
- package/dist/ui/header-actions.d.ts.map +1 -0
- package/dist/ui/header-actions.js +22 -0
- package/dist/ui/info-hint.d.ts +61 -0
- package/dist/ui/info-hint.d.ts.map +1 -0
- package/dist/ui/info-hint.guard.d.ts +23 -0
- package/dist/ui/info-hint.guard.d.ts.map +1 -0
- package/dist/ui/info-hint.guard.js +10 -0
- package/dist/ui/info-hint.js +28 -0
- package/dist/ui/input.d.ts +41 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.guard.d.ts +12 -0
- package/dist/ui/input.guard.d.ts.map +1 -0
- package/dist/ui/input.guard.js +6 -0
- package/dist/ui/input.js +59 -0
- package/dist/ui/kbd.d.ts +30 -0
- package/dist/ui/kbd.d.ts.map +1 -0
- package/dist/ui/kbd.guard.d.ts +13 -0
- package/dist/ui/kbd.guard.d.ts.map +1 -0
- package/dist/ui/kbd.guard.js +6 -0
- package/dist/ui/kbd.js +40 -0
- package/dist/ui/leave-confirm.d.ts +20 -0
- package/dist/ui/leave-confirm.d.ts.map +1 -0
- package/dist/ui/leave-confirm.js +34 -0
- package/dist/ui/list-sheet.d.ts +25 -0
- package/dist/ui/list-sheet.d.ts.map +1 -0
- package/dist/ui/list-sheet.js +8 -0
- package/dist/ui/menu.d.ts +159 -0
- package/dist/ui/menu.d.ts.map +1 -0
- package/dist/ui/menu.guard.d.ts +51 -0
- package/dist/ui/menu.guard.d.ts.map +1 -0
- package/dist/ui/menu.guard.js +18 -0
- package/dist/ui/menu.js +248 -0
- package/dist/ui/meter.d.ts +174 -0
- package/dist/ui/meter.d.ts.map +1 -0
- package/dist/ui/meter.guard.d.ts +28 -0
- package/dist/ui/meter.guard.d.ts.map +1 -0
- package/dist/ui/meter.guard.js +46 -0
- package/dist/ui/meter.js +396 -0
- package/dist/ui/num.d.ts +37 -0
- package/dist/ui/num.d.ts.map +1 -0
- package/dist/ui/num.guard.d.ts +15 -0
- package/dist/ui/num.guard.d.ts.map +1 -0
- package/dist/ui/num.guard.js +8 -0
- package/dist/ui/num.js +36 -0
- package/dist/ui/number-field.d.ts +45 -0
- package/dist/ui/number-field.d.ts.map +1 -0
- package/dist/ui/number-field.guard.d.ts +18 -0
- package/dist/ui/number-field.guard.d.ts.map +1 -0
- package/dist/ui/number-field.guard.js +6 -0
- package/dist/ui/number-field.js +87 -0
- package/dist/ui/one-time-code.d.ts +54 -0
- package/dist/ui/one-time-code.d.ts.map +1 -0
- package/dist/ui/one-time-code.guard.d.ts +18 -0
- package/dist/ui/one-time-code.guard.d.ts.map +1 -0
- package/dist/ui/one-time-code.guard.js +6 -0
- package/dist/ui/one-time-code.js +65 -0
- package/dist/ui/overlay-presenter.d.ts +65 -0
- package/dist/ui/overlay-presenter.d.ts.map +1 -0
- package/dist/ui/overlay-presenter.js +82 -0
- package/dist/ui/overlay-sheet.d.ts +8 -0
- package/dist/ui/overlay-sheet.d.ts.map +1 -0
- package/dist/ui/overlay-sheet.js +37 -0
- package/dist/ui/password-input.d.ts +18 -0
- package/dist/ui/password-input.d.ts.map +1 -0
- package/dist/ui/password-input.js +66 -0
- package/dist/ui/popover.d.ts +77 -0
- package/dist/ui/popover.d.ts.map +1 -0
- package/dist/ui/popover.guard.d.ts +31 -0
- package/dist/ui/popover.guard.d.ts.map +1 -0
- package/dist/ui/popover.guard.js +12 -0
- package/dist/ui/popover.js +118 -0
- package/dist/ui/primitive.contract.d.ts +63 -0
- package/dist/ui/primitive.contract.d.ts.map +1 -0
- package/dist/ui/primitive.contract.js +309 -0
- package/dist/ui/progress.d.ts +84 -0
- package/dist/ui/progress.d.ts.map +1 -0
- package/dist/ui/progress.guard.d.ts +27 -0
- package/dist/ui/progress.guard.d.ts.map +1 -0
- package/dist/ui/progress.guard.js +14 -0
- package/dist/ui/progress.js +150 -0
- package/dist/ui/quick-picks.d.ts +46 -0
- package/dist/ui/quick-picks.d.ts.map +1 -0
- package/dist/ui/quick-picks.guard.d.ts +18 -0
- package/dist/ui/quick-picks.guard.d.ts.map +1 -0
- package/dist/ui/quick-picks.guard.js +6 -0
- package/dist/ui/quick-picks.js +45 -0
- package/dist/ui/radio-group.d.ts +79 -0
- package/dist/ui/radio-group.d.ts.map +1 -0
- package/dist/ui/radio-group.guard.d.ts +21 -0
- package/dist/ui/radio-group.guard.d.ts.map +1 -0
- package/dist/ui/radio-group.guard.js +8 -0
- package/dist/ui/radio-group.js +86 -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/resizable.d.ts +62 -0
- package/dist/ui/resizable.d.ts.map +1 -0
- package/dist/ui/resizable.js +42 -0
- package/dist/ui/scroll-area.d.ts +35 -0
- package/dist/ui/scroll-area.d.ts.map +1 -0
- package/dist/ui/scroll-area.guard.d.ts +13 -0
- package/dist/ui/scroll-area.guard.d.ts.map +1 -0
- package/dist/ui/scroll-area.guard.js +8 -0
- package/dist/ui/scroll-area.js +75 -0
- package/dist/ui/segmented.d.ts +102 -0
- package/dist/ui/segmented.d.ts.map +1 -0
- package/dist/ui/segmented.guard.d.ts +22 -0
- package/dist/ui/segmented.guard.d.ts.map +1 -0
- package/dist/ui/segmented.guard.js +8 -0
- package/dist/ui/segmented.js +138 -0
- package/dist/ui/select.d.ts +211 -0
- package/dist/ui/select.d.ts.map +1 -0
- package/dist/ui/select.guard.d.ts +27 -0
- package/dist/ui/select.guard.d.ts.map +1 -0
- package/dist/ui/select.guard.js +14 -0
- package/dist/ui/select.js +467 -0
- package/dist/ui/separator.d.ts +32 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.guard.d.ts +12 -0
- package/dist/ui/separator.guard.d.ts.map +1 -0
- package/dist/ui/separator.guard.js +6 -0
- package/dist/ui/separator.js +30 -0
- package/dist/ui/sheet.d.ts +150 -0
- package/dist/ui/sheet.d.ts.map +1 -0
- package/dist/ui/sheet.guard.d.ts +28 -0
- package/dist/ui/sheet.guard.d.ts.map +1 -0
- package/dist/ui/sheet.guard.js +15 -0
- package/dist/ui/sheet.js +359 -0
- package/dist/ui/skeleton.d.ts +57 -0
- package/dist/ui/skeleton.d.ts.map +1 -0
- package/dist/ui/skeleton.guard.d.ts +19 -0
- package/dist/ui/skeleton.guard.d.ts.map +1 -0
- package/dist/ui/skeleton.guard.js +12 -0
- package/dist/ui/skeleton.js +55 -0
- package/dist/ui/slider.d.ts +43 -0
- package/dist/ui/slider.d.ts.map +1 -0
- package/dist/ui/slider.guard.d.ts +20 -0
- package/dist/ui/slider.guard.d.ts.map +1 -0
- package/dist/ui/slider.guard.js +6 -0
- package/dist/ui/slider.js +56 -0
- package/dist/ui/slots.d.ts +61 -0
- package/dist/ui/slots.d.ts.map +1 -0
- package/dist/ui/slots.js +113 -0
- package/dist/ui/sortable-list.d.ts +67 -0
- package/dist/ui/sortable-list.d.ts.map +1 -0
- package/dist/ui/sortable-list.js +275 -0
- package/dist/ui/status.d.ts +62 -0
- package/dist/ui/status.d.ts.map +1 -0
- package/dist/ui/status.guard.d.ts +16 -0
- package/dist/ui/status.guard.d.ts.map +1 -0
- package/dist/ui/status.guard.js +12 -0
- package/dist/ui/status.js +43 -0
- package/dist/ui/swatch-picker.d.ts +59 -0
- package/dist/ui/swatch-picker.d.ts.map +1 -0
- package/dist/ui/swatch-picker.guard.d.ts +20 -0
- package/dist/ui/swatch-picker.guard.d.ts.map +1 -0
- package/dist/ui/swatch-picker.guard.js +6 -0
- package/dist/ui/swatch-picker.js +198 -0
- package/dist/ui/switch.d.ts +31 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.guard.d.ts +16 -0
- package/dist/ui/switch.guard.d.ts.map +1 -0
- package/dist/ui/switch.guard.js +6 -0
- package/dist/ui/switch.js +16 -0
- package/dist/ui/table.d.ts +91 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.guard.d.ts +14 -0
- package/dist/ui/table.guard.d.ts.map +1 -0
- package/dist/ui/table.guard.js +8 -0
- package/dist/ui/table.js +132 -0
- package/dist/ui/tabs.d.ts +103 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.guard.d.ts +12 -0
- package/dist/ui/tabs.guard.d.ts.map +1 -0
- package/dist/ui/tabs.guard.js +6 -0
- package/dist/ui/tabs.js +148 -0
- package/dist/ui/tag-input.d.ts +59 -0
- package/dist/ui/tag-input.d.ts.map +1 -0
- package/dist/ui/tag-input.guard.d.ts +19 -0
- package/dist/ui/tag-input.guard.d.ts.map +1 -0
- package/dist/ui/tag-input.guard.js +6 -0
- package/dist/ui/tag-input.js +191 -0
- package/dist/ui/textarea.d.ts +39 -0
- package/dist/ui/textarea.d.ts.map +1 -0
- package/dist/ui/textarea.guard.d.ts +17 -0
- package/dist/ui/textarea.guard.d.ts.map +1 -0
- package/dist/ui/textarea.guard.js +6 -0
- package/dist/ui/textarea.js +66 -0
- package/dist/ui/toast.d.ts +77 -0
- package/dist/ui/toast.d.ts.map +1 -0
- package/dist/ui/toast.guard.d.ts +12 -0
- package/dist/ui/toast.guard.d.ts.map +1 -0
- package/dist/ui/toast.guard.js +6 -0
- package/dist/ui/toast.js +109 -0
- package/dist/ui/toolbar.d.ts +101 -0
- package/dist/ui/toolbar.d.ts.map +1 -0
- package/dist/ui/toolbar.guard.d.ts +16 -0
- package/dist/ui/toolbar.guard.d.ts.map +1 -0
- package/dist/ui/toolbar.guard.js +10 -0
- package/dist/ui/toolbar.js +68 -0
- package/dist/ui/tooltip.d.ts +48 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.guard.d.ts +19 -0
- package/dist/ui/tooltip.guard.d.ts.map +1 -0
- package/dist/ui/tooltip.guard.js +8 -0
- package/dist/ui/tooltip.js +122 -0
- package/dist/ui/tree.d.ts +170 -0
- package/dist/ui/tree.d.ts.map +1 -0
- package/dist/ui/tree.guard.d.ts +41 -0
- package/dist/ui/tree.guard.d.ts.map +1 -0
- package/dist/ui/tree.guard.js +10 -0
- package/dist/ui/tree.js +1290 -0
- package/dist/ui/virtual-list.d.ts +94 -0
- package/dist/ui/virtual-list.d.ts.map +1 -0
- package/dist/ui/virtual-list.guard.d.ts +20 -0
- package/dist/ui/virtual-list.guard.d.ts.map +1 -0
- package/dist/ui/virtual-list.guard.js +13 -0
- package/dist/ui/virtual-list.js +93 -0
- package/dist/vite/allotment.d.ts +26 -0
- package/dist/vite/allotment.d.ts.map +1 -0
- package/dist/vite/allotment.js +122 -0
- package/dist/vite/doc.d.ts +4 -0
- package/dist/vite/doc.d.ts.map +1 -0
- package/dist/vite/doc.js +102 -0
- package/dist/vite/ejects.d.ts +19 -0
- package/dist/vite/ejects.d.ts.map +1 -0
- package/dist/vite/ejects.js +46 -0
- package/dist/vite/graph.d.ts +36 -0
- package/dist/vite/graph.d.ts.map +1 -0
- package/dist/vite/graph.js +167 -0
- package/dist/vite/head.d.ts +73 -0
- package/dist/vite/head.d.ts.map +1 -0
- package/dist/vite/head.js +201 -0
- package/dist/vite/index.d.ts +25 -0
- package/dist/vite/index.d.ts.map +1 -0
- package/dist/vite/index.js +146 -0
- 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/dist/vite/sources.d.ts +16 -0
- package/dist/vite/sources.d.ts.map +1 -0
- package/dist/vite/sources.js +32 -0
- package/dist/vite/table-sheet.d.ts +3 -0
- package/dist/vite/table-sheet.d.ts.map +1 -0
- package/dist/vite/table-sheet.js +12 -0
- package/docs/accordion.md +60 -0
- package/docs/add.md +34 -0
- package/docs/alert.md +37 -0
- package/docs/app-shell.md +71 -0
- package/docs/appearance-switcher.md +38 -0
- package/docs/apply-move.md +28 -0
- package/docs/area-y.md +27 -0
- package/docs/article-layout.md +48 -0
- package/docs/astro-parts.md +22 -0
- package/docs/astro.md +419 -0
- package/docs/avatar.md +63 -0
- package/docs/badge.md +77 -0
- package/docs/band-strip.md +38 -0
- package/docs/bar-list.md +58 -0
- package/docs/bar-title.md +33 -0
- package/docs/bars.md +55 -0
- package/docs/basalt-astro.md +40 -0
- package/docs/basalt-provider.md +41 -0
- package/docs/basalt-shiki.md +27 -0
- package/docs/basalt.md +36 -0
- package/docs/bind-invalidation.md +52 -0
- package/docs/block-frame.md +26 -0
- package/docs/board.md +45 -0
- package/docs/bulk-bar.md +36 -0
- package/docs/button.md +58 -0
- package/docs/calendar.md +49 -0
- package/docs/callout.md +36 -0
- package/docs/card-figure.md +29 -0
- package/docs/card-footer.md +30 -0
- package/docs/card-grid.md +33 -0
- package/docs/card-strip.md +29 -0
- package/docs/card-tabs.md +29 -0
- package/docs/card.md +122 -0
- package/docs/cartesian-chart-guide.md +204 -0
- package/docs/cartesian-chart.md +57 -0
- package/docs/cell-meta.md +28 -0
- package/docs/cell-stack.md +32 -0
- package/docs/chain-view.md +58 -0
- package/docs/chart-card-states.md +52 -0
- package/docs/chart-card.md +80 -0
- package/docs/chart-cursor.md +20 -0
- package/docs/chart-labels.md +62 -0
- package/docs/checkbox-matrix.md +53 -0
- package/docs/checkbox.md +55 -0
- package/docs/choice-card.md +40 -0
- package/docs/code-block.md +37 -0
- package/docs/col.md +113 -0
- package/docs/collapsible.md +52 -0
- package/docs/combobox.md +212 -0
- package/docs/command-palette.md +55 -0
- package/docs/composer.md +41 -0
- package/docs/connection-indicator.md +36 -0
- package/docs/context-menu.md +56 -0
- package/docs/control-group.md +108 -0
- package/docs/control-home.md +33 -0
- package/docs/control-property.md +36 -0
- package/docs/control-view.md +33 -0
- package/docs/copy-button.md +35 -0
- package/docs/create-app-form.md +35 -0
- package/docs/create-channel.md +46 -0
- package/docs/create-format.md +24 -0
- package/docs/create-query-client.md +26 -0
- package/docs/create-run-queue.md +40 -0
- package/docs/create-synced-state.md +69 -0
- package/docs/data-panel.md +90 -0
- package/docs/data-table-body.md +34 -0
- package/docs/data-table.md +38 -0
- package/docs/date-picker.md +81 -0
- package/docs/date-stepper.md +43 -0
- package/docs/de.md +29 -0
- package/docs/define-block.md +55 -0
- package/docs/define-catalog.md +36 -0
- package/docs/define-commands.md +32 -0
- package/docs/define-control-kind.md +31 -0
- package/docs/define-controls.md +80 -0
- package/docs/define-nav.md +53 -0
- package/docs/define-overlays.md +34 -0
- package/docs/delta.md +31 -0
- package/docs/dialog.md +135 -0
- package/docs/dock.md +56 -0
- package/docs/dot.md +27 -0
- package/docs/eject.md +49 -0
- package/docs/empty-state.md +51 -0
- package/docs/empty.md +33 -0
- package/docs/entity.md +63 -0
- package/docs/es.md +29 -0
- package/docs/event-list.md +56 -0
- package/docs/expect-catalog.md +32 -0
- package/docs/expect-shell-invariants.md +36 -0
- package/docs/external-field.md +33 -0
- package/docs/external-href.md +30 -0
- package/docs/facet-counts.md +28 -0
- package/docs/fact.md +35 -0
- package/docs/facts.md +37 -0
- package/docs/favorite-toggle.md +38 -0
- package/docs/field.md +110 -0
- package/docs/file-upload.md +54 -0
- package/docs/filter-set.md +42 -0
- package/docs/filter-slot.md +32 -0
- package/docs/flow-canvas.md +57 -0
- package/docs/flow-checklist.md +34 -0
- package/docs/foot-facts.md +27 -0
- package/docs/form-action-row.md +38 -0
- package/docs/form-confirm-row.md +40 -0
- package/docs/form-field.md +53 -0
- package/docs/form-footer.md +35 -0
- package/docs/form-group-row.md +44 -0
- package/docs/form-row.md +35 -0
- package/docs/form-section.md +52 -0
- package/docs/fr.md +29 -0
- package/docs/frame-tabs.md +45 -0
- package/docs/frame-tiles.md +47 -0
- package/docs/heatmap.md +44 -0
- package/docs/info-hint.md +32 -0
- package/docs/inner-nav.md +62 -0
- package/docs/input.md +36 -0
- package/docs/install-dom-shims.md +27 -0
- package/docs/interval-track.md +47 -0
- package/docs/intl-scope.md +35 -0
- package/docs/kanban-card.md +52 -0
- package/docs/kbd.md +33 -0
- package/docs/line-y.md +27 -0
- package/docs/lines.md +55 -0
- package/docs/link.md +27 -0
- package/docs/live-query.md +36 -0
- package/docs/mail-list.md +59 -0
- package/docs/mail-thread.md +36 -0
- package/docs/mdx-components.md +30 -0
- package/docs/menu.md +141 -0
- package/docs/message-actions.md +30 -0
- package/docs/message.md +33 -0
- package/docs/meter.md +69 -0
- package/docs/mini-bars.md +60 -0
- package/docs/model-picker.md +39 -0
- package/docs/motion-duration.md +26 -0
- package/docs/motion-ease-enter.md +21 -0
- package/docs/motion-ease-exit.md +21 -0
- package/docs/motion-ease-standard.md +21 -0
- package/docs/motion-preset.md +29 -0
- package/docs/motion-spring.md +26 -0
- package/docs/motion-stagger.md +19 -0
- package/docs/motion.md +82 -0
- package/docs/nav-target.md +29 -0
- package/docs/notify.md +32 -0
- package/docs/num.md +37 -0
- package/docs/number-field.md +41 -0
- package/docs/one-time-code.md +52 -0
- package/docs/optimistic.md +35 -0
- package/docs/overlay-host.md +30 -0
- package/docs/page-aside.md +39 -0
- package/docs/page-bar.md +92 -0
- package/docs/page-summary.md +45 -0
- package/docs/page.md +47 -0
- package/docs/part-view.md +31 -0
- package/docs/password-input.md +29 -0
- package/docs/peek.md +60 -0
- package/docs/period-of.md +29 -0
- package/docs/persisted.md +67 -0
- package/docs/popover.md +60 -0
- package/docs/progress.md +63 -0
- package/docs/property-list.md +37 -0
- package/docs/prose.md +36 -0
- package/docs/pseudo-basalt-messages.md +30 -0
- package/docs/pseudo-messages.md +27 -0
- package/docs/quality.md +39 -0
- package/docs/query-state.md +40 -0
- package/docs/quick-picks.md +41 -0
- package/docs/radio-group.md +53 -0
- package/docs/range-navigator.md +34 -0
- package/docs/reasoning-trace.md +31 -0
- package/docs/recipes/.gitkeep +0 -0
- package/docs/recipes/add-page.md +33 -0
- package/docs/recipes/ai-approvals-sources.md +51 -0
- package/docs/recipes/ai-artifacts.md +59 -0
- package/docs/recipes/ai-blocks.md +59 -0
- package/docs/recipes/ai-card.md +47 -0
- package/docs/recipes/ai-external-runtime.md +59 -0
- package/docs/recipes/ai-sdk-tools.md +57 -0
- package/docs/recipes/app-shell.md +27 -0
- package/docs/recipes/band.md +59 -0
- package/docs/recipes/board.md +39 -0
- package/docs/recipes/candlestick.md +50 -0
- package/docs/recipes/card-regions.md +60 -0
- package/docs/recipes/chat-thread-composer.md +43 -0
- package/docs/recipes/chat-thread-scroll.md +45 -0
- package/docs/recipes/chat-thread.md +60 -0
- package/docs/recipes/cursor-table.md +56 -0
- package/docs/recipes/dashboard-cells.md +60 -0
- package/docs/recipes/dependent-validation.md +50 -0
- package/docs/recipes/end-marker.md +54 -0
- package/docs/recipes/export.md +38 -0
- package/docs/recipes/field-array.md +54 -0
- package/docs/recipes/file-drop.md +53 -0
- package/docs/recipes/forecast-segment.md +44 -0
- package/docs/recipes/inner-nav.md +52 -0
- package/docs/recipes/loader-suspense.md +50 -0
- package/docs/recipes/localise-app.md +61 -0
- package/docs/recipes/lollipop.md +56 -0
- package/docs/recipes/markdown.md +40 -0
- package/docs/recipes/mdx.md +33 -0
- package/docs/recipes/memory-state.md +48 -0
- package/docs/recipes/optimistic-list.md +60 -0
- package/docs/recipes/optimistic.md +26 -0
- package/docs/recipes/realtime-client.md +50 -0
- package/docs/recipes/remembered-values.md +47 -0
- package/docs/recipes/saved-views.md +60 -0
- package/docs/recipes/seam-bar.md +59 -0
- package/docs/recipes/seam-linked.md +56 -0
- package/docs/recipes/seam-track.md +61 -0
- package/docs/recipes/shot-state.md +21 -0
- package/docs/recipes/threshold-recolor.md +46 -0
- package/docs/recipes/timeline.md +59 -0
- package/docs/recipes/trend-line.md +43 -0
- package/docs/recipes/two-pane.md +51 -0
- package/docs/recipes/view-switch.md +55 -0
- package/docs/recipes/websocket-transport.md +60 -0
- package/docs/recipes/window-key.md +40 -0
- package/docs/record-at.md +33 -0
- package/docs/rect.md +27 -0
- package/docs/refresh-button.md +45 -0
- package/docs/relationship-card.md +50 -0
- package/docs/remote-pad.md +40 -0
- package/docs/resizable.md +58 -0
- package/docs/router-defaults.md +41 -0
- package/docs/row-list.md +67 -0
- package/docs/run-button.md +45 -0
- package/docs/run-list.md +71 -0
- package/docs/schedule.md +59 -0
- package/docs/scroll-area.md +36 -0
- package/docs/section.md +46 -0
- package/docs/segmented.md +66 -0
- package/docs/select.md +145 -0
- package/docs/separator.md +33 -0
- package/docs/set-appearance.md +26 -0
- package/docs/set-scheme.md +23 -0
- package/docs/settings-layout.md +40 -0
- package/docs/settled.md +31 -0
- package/docs/sheet.md +95 -0
- package/docs/shot-state.md +49 -0
- package/docs/site-article.md +43 -0
- package/docs/site-bento.md +35 -0
- package/docs/site-call-to-action.md +32 -0
- package/docs/site-callout.md +36 -0
- package/docs/site-changelog.md +32 -0
- package/docs/site-code-block.md +35 -0
- package/docs/site-comparison.md +47 -0
- package/docs/site-data-table.md +34 -0
- package/docs/site-feature.md +31 -0
- package/docs/site-field.md +38 -0
- package/docs/site-footer.md +35 -0
- package/docs/site-form.md +35 -0
- package/docs/site-header.md +59 -0
- package/docs/site-hero.md +41 -0
- package/docs/site-mdx-components.md +37 -0
- package/docs/site-nav.md +34 -0
- package/docs/site-pager.md +32 -0
- package/docs/site-post-list.md +35 -0
- package/docs/site-question-list.md +37 -0
- package/docs/site-script.md +30 -0
- package/docs/site-submit.md +27 -0
- package/docs/site-tab.md +31 -0
- package/docs/site-tabs.md +36 -0
- package/docs/skeleton.md +53 -0
- package/docs/slider.md +40 -0
- package/docs/slots.md +28 -0
- package/docs/sortable-list.md +43 -0
- package/docs/sparkline.md +67 -0
- package/docs/spec.md +41 -0
- package/docs/split-page.md +44 -0
- package/docs/stagger-delay.md +26 -0
- package/docs/stat-card.md +79 -0
- package/docs/stat-cell.md +66 -0
- package/docs/stat-group.md +37 -0
- package/docs/static-site.md +163 -0
- package/docs/status.md +53 -0
- package/docs/step-rail.md +39 -0
- package/docs/stepper.md +35 -0
- package/docs/swatch-picker.md +48 -0
- package/docs/switch.md +33 -0
- package/docs/table-codec.md +39 -0
- package/docs/table-pager.md +29 -0
- package/docs/table-toolbar.md +33 -0
- package/docs/table.md +101 -0
- package/docs/tabs.md +80 -0
- package/docs/tag-input.md +53 -0
- package/docs/testing.md +123 -0
- package/docs/text.md +27 -0
- package/docs/textarea.md +38 -0
- package/docs/theme-script.md +36 -0
- package/docs/theme-switch.md +34 -0
- package/docs/to-menu-template.md +31 -0
- package/docs/to-submit-errors.md +28 -0
- package/docs/toast-host.md +27 -0
- package/docs/toast.md +83 -0
- package/docs/toc.md +37 -0
- package/docs/toolbar.md +87 -0
- package/docs/tooltip.md +39 -0
- package/docs/tree.md +63 -0
- package/docs/unwrap.md +29 -0
- package/docs/use-app-form.md +36 -0
- package/docs/use-appearance.md +27 -0
- package/docs/use-chart-focus.md +54 -0
- package/docs/use-connection.md +30 -0
- package/docs/use-control.md +30 -0
- package/docs/use-data-table.md +85 -0
- package/docs/use-favorite.md +34 -0
- package/docs/use-flow.md +30 -0
- package/docs/use-focus-scope.md +24 -0
- package/docs/use-form-draft.md +40 -0
- package/docs/use-format.md +31 -0
- package/docs/use-freshness.md +33 -0
- package/docs/use-hotkey.md +28 -0
- package/docs/use-local-control.md +35 -0
- package/docs/use-motion-preset.md +29 -0
- package/docs/use-now.md +19 -0
- package/docs/use-peek.md +32 -0
- package/docs/use-resolved-tokens.md +29 -0
- package/docs/use-runs.md +32 -0
- package/docs/use-size-class.md +32 -0
- package/docs/use-table-views.md +39 -0
- package/docs/use-unsaved-guard.md +52 -0
- package/docs/use-window-chrome.md +30 -0
- package/docs/verdict.md +27 -0
- package/docs/view-tabs.md +44 -0
- package/docs/virtual-list.md +51 -0
- package/docs/vite.md +89 -0
- package/docs/waterfall.md +53 -0
- package/docs/widgets.md +79 -0
- package/docs/with-form.md +32 -0
- package/docs/wizard-dialog.md +40 -0
- package/docs/zh-hans.md +29 -0
- package/llms.txt +1991 -1169
- package/migrations/areas/agent.json +10 -0
- package/migrations/areas/ai.json +10 -0
- package/migrations/areas/cards.json +696 -0
- package/migrations/areas/charts.json +898 -0
- package/migrations/areas/cli.json +146 -0
- package/migrations/areas/content.json +268 -0
- package/migrations/areas/controls.json +425 -0
- package/migrations/areas/data.json +133 -0
- package/migrations/areas/legacy-1x.json +663 -0
- package/migrations/areas/lint.json +130 -0
- package/migrations/areas/page.json +251 -0
- package/migrations/areas/removed-2x.json +421 -0
- package/migrations/areas/router.json +144 -0
- package/migrations/areas/shadcn.json +338 -0
- package/migrations/areas/shell.json +489 -0
- package/migrations/areas/state.json +511 -0
- package/migrations/areas/table.json +536 -0
- package/migrations/areas/tokens.json +3294 -0
- package/migrations/areas/ui.json +1651 -0
- package/package.json +458 -153
- package/src/ai/caret.ts +51 -0
- package/src/ai/catalog/block.tsx +113 -0
- package/src/ai/catalog/define.ts +86 -0
- package/src/ai/catalog/validate.ts +144 -0
- package/src/ai/composer.tsx +545 -0
- package/src/ai/contract.ts +142 -0
- package/src/ai/glyphs.tsx +89 -0
- package/src/ai/index.ts +31 -0
- package/src/ai/mention-text.ts +106 -0
- package/src/ai/message.tsx +178 -0
- package/src/ai/model-picker.tsx +144 -0
- package/src/ai/part-view.tsx +146 -0
- package/src/ai/reasoning-trace.tsx +190 -0
- package/src/ai/tool-view.ts +54 -0
- package/src/astro/BasaltFonts.astro +32 -0
- package/src/astro/SiteHead.astro +21 -0
- package/src/astro/build.ts +94 -0
- package/src/astro/fonts.ts +25 -0
- package/src/astro/head.ts +157 -0
- package/src/astro/index.ts +227 -0
- package/src/astro/islands.ts +81 -0
- package/src/astro/mdx/Chart.astro +25 -0
- package/src/astro/mdx/DataTable.astro +27 -0
- package/src/astro/mdx/chart-island.tsx +166 -0
- package/src/astro/mdx/css.d.ts +2 -0
- package/src/astro/mdx/messages.ts +9 -0
- package/src/astro/mdx/table-island.tsx +77 -0
- package/src/astro/notes.ts +203 -0
- package/src/astro/parts.ts +514 -0
- package/src/astro/shiki.ts +32 -0
- package/src/astro/sources.ts +103 -0
- package/src/cards/bar-list-scroll.tsx +92 -0
- package/src/cards/bar-list.tsx +454 -0
- package/src/cards/bar-list.type-guard.tsx +107 -0
- package/src/cards/board.tsx +448 -0
- package/src/cards/cards.type-guard.tsx +82 -0
- package/src/cards/chain-layout.ts +291 -0
- package/src/cards/chain-view.tsx +709 -0
- package/src/cards/contract.ts +200 -0
- package/src/cards/data-panel.tsx +558 -0
- package/src/cards/edge-path.ts +70 -0
- package/src/cards/event-list-model.ts +167 -0
- package/src/cards/event-list.tsx +497 -0
- package/src/cards/flow-canvas.tsx +780 -0
- package/src/cards/flow-checklist.tsx +94 -0
- package/src/cards/flow.ts +136 -0
- package/src/cards/frame-caps.type-guard.tsx +94 -0
- package/src/cards/frame-kit.tsx +125 -0
- package/src/cards/frame-types.type-guard.ts +35 -0
- package/src/cards/index.ts +83 -0
- package/src/cards/kanban-actions.ts +41 -0
- package/src/cards/kanban-card.tsx +347 -0
- package/src/cards/kanban-card.type-guard.tsx +57 -0
- package/src/cards/list-focus.ts +304 -0
- package/src/cards/mail-list.tsx +580 -0
- package/src/cards/mail-thread.tsx +219 -0
- package/src/cards/optional-undefined.type-guard.tsx +84 -0
- package/src/cards/period-label.ts +31 -0
- package/src/cards/relationship-card.tsx +161 -0
- package/src/cards/row-list.tsx +327 -0
- package/src/cards/row-list.type-guard.tsx +67 -0
- package/src/cards/schedule-model.ts +178 -0
- package/src/cards/schedule.tsx +1236 -0
- package/src/cards/stat-card-parts.tsx +71 -0
- package/src/cards/stat-card.tsx +330 -0
- package/src/cards/stat-cell.tsx +615 -0
- package/src/cards/stat-group-shared.ts +39 -0
- package/src/cards/stat-group.tsx +356 -0
- package/src/cards/stat-group.type-guard.tsx +146 -0
- package/src/cards/step-rail.tsx +201 -0
- package/src/cards/viewport.ts +310 -0
- package/src/charts/axis-gaps.ts +524 -0
- package/src/charts/box.tsx +44 -10
- package/src/charts/canvas.ts +164 -0
- package/src/charts/card-context.ts +10 -0
- package/src/charts/chart-box.module.css +199 -43
- package/src/charts/chart-box.module.css.d.ts +2 -0
- package/src/charts/chart-dates.ts +32 -14
- package/src/charts/chart-labels-widths.gen.ts +101 -0
- package/src/charts/chart-labels.ts +220 -0
- package/src/charts/chart-legend.module.css +50 -5
- package/src/charts/chart-legend.module.css.d.ts +1 -0
- package/src/charts/contract.ts +707 -0
- package/src/charts/core/axis-ext.ts +569 -0
- package/src/charts/core/bar-values.ts +989 -0
- package/src/charts/core/compile.ts +3424 -0
- package/src/charts/core/cursor.ts +469 -0
- package/src/charts/core/curves.ts +111 -0
- package/src/charts/core/label-backing.ts +75 -0
- package/src/charts/core/label-ties.ts +80 -0
- package/src/charts/core/plot-context.ts +69 -0
- package/src/charts/core/portal.ts +180 -0
- package/src/charts/core/probe/bar.tsx +28 -0
- package/src/charts/core/probe/base0.tsx +4 -0
- package/src/charts/core/probe/line.tsx +22 -0
- package/src/charts/core/probe/sparkline.tsx +59 -0
- package/src/charts/core/readout-clear.ts +244 -0
- package/src/charts/core/rich-tooltip.ts +128 -0
- package/src/charts/core/right-pin.ts +66 -0
- package/src/charts/core/scales.ts +505 -0
- package/src/charts/core/spread.ts +144 -0
- package/src/charts/core/theme.ts +114 -0
- package/src/charts/core/ticks.ts +61 -0
- package/src/charts/core/tooltip-said.ts +55 -0
- package/src/charts/csv.ts +40 -0
- package/src/charts/date-tick-format.ts +29 -23
- package/src/charts/engine-marks.ts +82 -0
- package/src/charts/focus.tsx +261 -0
- package/src/charts/host.tsx +64 -41
- package/src/charts/index.ts +94 -38
- package/src/charts/label-obstacles.ts +216 -0
- package/src/charts/label-place.ts +329 -0
- package/src/charts/label-widths.ts +21 -0
- package/src/charts/labels.ts +368 -19
- package/src/charts/legend.tsx +227 -35
- package/src/charts/marks.ts +223 -13
- package/src/charts/optional-undefined.type-guard.tsx +73 -0
- package/src/charts/pane-gutter.ts +16 -0
- package/src/charts/parts/band-fold.ts +107 -0
- package/src/charts/parts/band-strip.tsx +690 -0
- package/src/charts/parts/bars-marks.ts +360 -0
- package/src/charts/parts/bars.tsx +43 -0
- package/src/charts/parts/cartesian-adapt.ts +375 -0
- package/src/charts/parts/cartesian-selection.ts +35 -0
- package/src/charts/parts/cartesian.tsx +894 -0
- package/src/charts/parts/chart-card-frame.tsx +193 -0
- package/src/charts/parts/chart-card.tsx +524 -0
- package/src/charts/parts/chart-panes.tsx +113 -0
- package/src/charts/parts/heatmap-ink.ts +35 -0
- package/src/charts/parts/heatmap.tsx +735 -0
- package/src/charts/parts/interval-layout.ts +103 -0
- package/src/charts/parts/interval-track.tsx +781 -0
- package/src/charts/parts/legend.tsx +97 -0
- package/src/charts/parts/lines-marks.ts +234 -0
- package/src/charts/parts/lines.tsx +39 -0
- package/src/charts/parts/range-navigator.module.css +50 -0
- package/src/charts/parts/range-navigator.module.css.d.ts +9 -0
- package/src/charts/parts/range-navigator.tsx +226 -0
- package/src/charts/parts/sparkline-probe/both.tsx +25 -0
- package/src/charts/parts/sparkline-probe/mini-bars.tsx +14 -0
- package/src/charts/parts/sparkline-probe/sparkline.tsx +16 -0
- package/src/charts/parts/tooltip.ts +85 -0
- package/src/charts/parts/waterfall.tsx +190 -0
- package/src/charts/plot-context.ts +6 -2
- package/src/charts/ref-label.ts +155 -30
- package/src/charts/seams/bar-opacity.ts +11 -0
- package/src/charts/seams/define.ts +68 -0
- package/src/charts/seams/lone-point.ts +8 -0
- package/src/charts/seams/pixel-extent.ts +43 -0
- package/src/charts/seams/plot-data.ts +8 -0
- package/src/charts/seams/plot-px.ts +23 -0
- package/src/charts/seams/plot-scales.ts +62 -0
- package/src/charts/seams/series-axis.ts +8 -0
- package/src/charts/seams/series-dash.ts +8 -0
- package/src/charts/seams/series-format.ts +8 -0
- package/src/charts/seams/series-gaps.ts +8 -0
- package/src/charts/seams/series-legend-tooltip.ts +8 -0
- package/src/charts/seams/series-marker.ts +8 -0
- package/src/charts/seams/series-note.ts +8 -0
- package/src/charts/seams/series-parent.ts +8 -0
- package/src/charts/seams/series-role.ts +8 -0
- package/src/charts/seams/series-weight.ts +8 -0
- package/src/charts/seams/x-domain.ts +8 -0
- package/src/charts/seams/y-domain.ts +139 -0
- package/src/charts/seams/y-gutter.ts +29 -0
- package/src/charts/seams.ts +66 -0
- package/src/charts/sizing.ts +12 -1
- package/src/charts/state.tsx +51 -28
- package/src/charts/text-measure.ts +57 -0
- package/src/charts/tooltip-body.tsx +98 -0
- package/src/charts/track.ts +370 -0
- package/src/charts/types.ts +124 -12
- package/src/cli/add/catalog.ts +101 -0
- package/src/cli/add/help.ts +35 -0
- package/src/cli/add/index.ts +194 -0
- package/src/cli/agent-note.ts +162 -0
- package/src/cli/board-freshness.ts +21 -7
- package/src/cli/budget/index.ts +149 -0
- package/src/cli/config.ts +17 -159
- package/src/cli/docs/catalog.ts +187 -0
- package/src/cli/docs/index.ts +68 -0
- package/src/cli/doctor/app.ts +388 -0
- package/src/cli/doctor/eject.ts +169 -0
- package/src/cli/doctor/guards.ts +139 -0
- package/src/cli/doctor/hook.ts +375 -0
- package/src/cli/doctor/index.ts +114 -0
- package/src/cli/doctor/install.ts +380 -0
- package/src/cli/doctor/legacy.ts +188 -0
- package/src/cli/doctor/translations.ts +319 -0
- package/src/cli/doctor/types.ts +160 -0
- package/src/cli/doctor/wiring.ts +245 -0
- package/src/cli/eject/dropped-slots.ts +11 -0
- package/src/cli/eject/git.ts +43 -0
- package/src/cli/eject/help.ts +50 -0
- package/src/cli/eject/index.ts +539 -0
- package/src/cli/eject/ledger.ts +159 -0
- package/src/cli/eject/tsconfig.ts +246 -0
- package/src/cli/harness.ts +144 -0
- package/src/cli/help.ts +195 -64
- package/src/cli/index.ts +107 -1428
- package/src/cli/init/app-files.ts +133 -0
- package/src/cli/init/index.ts +382 -0
- package/src/cli/init/locales.ts +157 -0
- package/src/cli/init/router-seeds.ts +292 -0
- package/src/cli/init/site.ts +43 -0
- package/src/cli/init/steps.ts +1355 -0
- package/src/cli/init/stock.ts +88 -0
- package/src/cli/init/upgrade.ts +67 -0
- package/src/cli/install-root.ts +39 -21
- package/src/cli/legacy-2x-files.ts +47 -0
- package/src/cli/legacy-2x.ts +115 -0
- package/src/cli/lint/baseline.ts +141 -0
- package/src/cli/lint/engine.ts +372 -0
- package/src/cli/lint/hook.ts +333 -0
- package/src/cli/lint/index.ts +243 -0
- package/src/cli/lint/record.ts +99 -0
- package/src/cli/lint/seams.ts +386 -0
- package/src/cli/lint/settings.ts +309 -0
- package/src/cli/lint/stats.ts +198 -0
- package/src/cli/lint/template-classes.ts +127 -0
- package/src/cli/lint-settings.ts +107 -0
- package/src/cli/manifest.ts +432 -0
- package/src/cli/merge/formatter.ts +59 -0
- package/src/cli/merge/header.ts +32 -0
- package/src/cli/merge/merge-file.ts +62 -0
- package/src/cli/merge/seed.ts +109 -0
- package/src/cli/migrate/census.ts +296 -0
- package/src/cli/migrate/index.ts +407 -0
- package/src/cli/migrate/lost-classes.ts +203 -0
- package/src/cli/migrate/rows.ts +368 -0
- package/src/cli/package-manager.ts +65 -0
- package/src/cli/peers.ts +125 -0
- package/src/cli/presets.ts +196 -0
- package/src/cli/resolver.ts +102 -0
- package/src/cli/route-tree.ts +103 -0
- package/src/cli/router-wiring.ts +59 -6
- package/src/cli/shot/board.ts +59 -106
- package/src/cli/shot/capture.ts +552 -672
- package/src/cli/shot/detect.ts +338 -323
- package/src/cli/shot/facts.ts +266 -0
- package/src/cli/shot/index.ts +142 -254
- package/src/cli/shot/measure.ts +192 -143
- package/src/cli/shot/playwright.ts +37 -39
- package/src/cli/shot/serve.ts +115 -27
- package/src/cli/shot/types.ts +118 -36
- package/src/cli/source-text.ts +11 -0
- package/src/cli/sync/block.ts +59 -0
- package/src/cli/sync/blocks.ts +154 -0
- package/src/cli/sync/engine.ts +205 -0
- package/src/cli/sync/formats.ts +74 -0
- package/src/cli/sync/index.ts +201 -0
- package/src/cli/sync/render.ts +499 -0
- package/src/cli/sync/sibling.ts +67 -0
- package/src/cli/sync/three-way.ts +227 -0
- package/src/cli/tokens-css-extra.ts +205 -0
- package/src/cli/tokens-css.ts +271 -96
- package/src/common/basalt-families.ts +68 -0
- package/src/common/basalt-family.ts +21 -0
- package/src/common/errors.ts +2 -2
- package/src/common/focus.ts +65 -0
- package/src/common/hit-floor.ts +1 -1
- package/src/common/isomorphic-layout-effect.ts +1 -1
- package/src/common/nest.ts +32 -0
- package/src/common/props.ts +7 -33
- package/src/common/retry-button.module.css +23 -22
- package/src/common/retry-button.tsx +5 -2
- package/src/common/use-media-query.ts +2 -3
- package/src/common/validate.ts +1 -1
- package/src/content/code-block.tsx +121 -110
- package/src/content/contract.ts +43 -0
- package/src/content/fence-trust.ts +9 -0
- package/src/content/fences.tsx +143 -0
- package/src/content/headings.tsx +96 -0
- package/src/content/highlighter.ts +112 -17
- package/src/content/index.ts +15 -18
- package/src/content/markdown.tsx +156 -622
- package/src/content/mermaid.tsx +104 -98
- package/src/content/pele-peer.ts +28 -0
- package/src/content/sanitize.ts +64 -488
- package/src/controls/appearance-switcher.tsx +239 -0
- package/src/controls/contract.ts +187 -0
- package/src/controls/control-home.tsx +146 -0
- package/src/controls/control-kind.ts +28 -0
- package/src/controls/control-view.handles.ts +136 -0
- package/src/controls/control-view.tsx +160 -0
- package/src/controls/draft.ts +145 -0
- package/src/controls/facets.ts +35 -0
- package/src/controls/filter-set-census.ts +111 -0
- package/src/controls/filter-set-fold.ts +91 -0
- package/src/controls/filter-set-menu.tsx +258 -0
- package/src/controls/filter-set-spec.tsx +342 -0
- package/src/controls/filter-set.tsx +29 -234
- package/src/controls/filter-slot.tsx +252 -0
- package/src/controls/form-field.tsx +370 -0
- package/src/controls/form-footer.tsx +205 -0
- package/src/controls/form-row.tsx +60 -0
- package/src/controls/form-section.tsx +220 -0
- package/src/controls/globals.tsx +56 -0
- package/src/controls/index.ts +73 -13
- package/src/controls/local-control.ts +80 -0
- package/src/controls/renderers.tsx +514 -0
- package/src/controls/row-icon.tsx +18 -0
- package/src/controls/settings-rows.tsx +326 -0
- package/src/controls/spec.ts +82 -0
- package/src/controls/stepper.tsx +226 -0
- package/src/controls/submit.ts +84 -0
- package/src/controls/use-committed-field.ts +117 -0
- package/src/controls/view-tabs.test-support.tsx +72 -0
- package/src/controls/view-tabs.tsx +184 -153
- package/src/controls/wizard-dialog.tsx +312 -0
- package/src/core/action-menu-items.tsx +73 -0
- package/src/core/action.ts +52 -0
- package/src/core/appearance.ts +166 -0
- package/src/core/binding.ts +41 -0
- package/src/core/card-menu.tsx +230 -0
- package/src/core/channel-transport.ts +74 -0
- package/src/core/channel.ts +454 -0
- package/src/core/chord-keys.tsx +36 -0
- package/src/core/chord.ts +234 -0
- package/src/core/clipboard.ts +27 -0
- package/src/core/cn-theme.gen.ts +57 -0
- package/src/core/cn-theme.ts +60 -0
- package/src/core/cn.ts +411 -0
- package/src/core/commit-key.ts +17 -0
- package/src/core/context-trigger.ts +314 -0
- package/src/core/control-scope.ts +50 -0
- package/src/core/could-not-load.ts +9 -0
- package/src/core/date-stepper.tsx +145 -0
- package/src/core/debounce.ts +80 -0
- package/src/core/drag-landing.ts +11 -0
- package/src/core/error-dot.tsx +15 -0
- package/src/core/external-field.golden.json +34 -0
- package/src/core/external-field.ts +104 -0
- package/src/core/focus-handle.tsx +264 -0
- package/src/core/focus-release.ts +26 -0
- package/src/core/focus-store.ts +696 -0
- package/src/core/form-dirty.ts +47 -0
- package/src/core/format.ts +347 -0
- package/src/core/frame-arm.ts +19 -0
- package/src/core/frame-figure.tsx +199 -0
- package/src/core/frame-head.tsx +444 -0
- package/src/core/frame-regions.tsx +589 -0
- package/src/core/frame-spec.test-support.tsx +81 -0
- package/src/core/frame-tiles.tsx +104 -0
- package/src/core/href.ts +51 -0
- package/src/core/info-hint.tsx +190 -0
- package/src/core/keyboard.ts +65 -0
- package/src/core/label-text.tsx +11 -0
- package/src/core/label.ts +45 -0
- package/src/core/lanes.ts +85 -0
- package/src/core/leave-guard.ts +179 -0
- package/src/core/link-href.type-guard.tsx +45 -0
- package/src/core/link.ts +26 -0
- package/src/core/list/engine.tsx +605 -0
- package/src/core/list/option-row.tsx +204 -0
- package/src/core/list/options.ts +165 -0
- package/src/core/list/popup.tsx +83 -0
- package/src/core/list/rank.ts +65 -0
- package/src/core/list-link.ts +109 -0
- package/src/core/live-actions.ts +131 -0
- package/src/core/mark-focus.ts +94 -0
- package/src/core/mark-tone.ts +49 -0
- package/src/core/mark-types.ts +100 -0
- package/src/core/menu-key.ts +3 -0
- package/src/core/menu.type-guard.tsx +34 -0
- package/src/core/messages/ai.ts +71 -0
- package/src/core/messages/base.ts +31 -0
- package/src/core/messages/cards.ts +16 -0
- package/src/core/messages/chain.ts +28 -0
- package/src/core/messages/charts.ts +54 -0
- package/src/core/messages/common.ts +189 -0
- package/src/core/messages/content.ts +8 -0
- package/src/core/messages/controls.ts +80 -0
- package/src/core/messages/date.ts +22 -0
- package/src/core/messages/dialogs.ts +17 -0
- package/src/core/messages/filters.ts +31 -0
- package/src/core/messages/flow.ts +28 -0
- package/src/core/messages/home.ts +15 -0
- package/src/core/messages/index.ts +133 -0
- package/src/core/messages/kanban.ts +25 -0
- package/src/core/messages/keys.ts +21 -0
- package/src/core/messages/lists.ts +78 -0
- package/src/core/messages/live.ts +54 -0
- package/src/core/messages/mark.ts +27 -0
- package/src/core/messages/menu.ts +13 -0
- package/src/core/messages/page.ts +71 -0
- package/src/core/messages/runs.ts +40 -0
- package/src/core/messages/schedule.ts +34 -0
- package/src/core/messages/select.ts +21 -0
- package/src/core/messages/shell.ts +82 -0
- package/src/core/messages/sortable.ts +13 -0
- package/src/core/messages/status.ts +27 -0
- package/src/core/messages/table.ts +352 -0
- package/src/core/messages/tree.ts +67 -0
- package/src/core/messages/upload.ts +57 -0
- package/src/core/messages/use-messages.ts +59 -0
- package/src/core/messages/use-text.ts +19 -0
- package/src/core/notify.ts +287 -0
- package/src/core/object-menu-popup.tsx +55 -0
- package/src/core/object-menu.tsx +134 -0
- package/src/core/offline-line.tsx +13 -0
- package/src/core/panel.tsx +267 -0
- package/src/core/parse-number.ts +54 -0
- package/src/core/persisted.golden.json +117 -0
- package/src/core/persisted.ts +437 -0
- package/src/core/phase-boundary.tsx +35 -0
- package/src/core/phase.ts +505 -0
- package/src/core/popup-position.ts +31 -0
- package/src/core/ports.ts +444 -0
- package/src/core/provider-props.tsx +71 -0
- package/src/core/provider.tsx +108 -0
- package/src/core/record-address.tsx +31 -0
- package/src/core/record-steps.ts +56 -0
- package/src/core/resolved-tokens.ts +175 -0
- package/src/core/retry-label.ts +10 -0
- package/src/core/retry-owner.tsx +103 -0
- package/src/core/rows-shown.ts +8 -0
- package/src/core/scheme.ts +85 -0
- package/src/core/sheet-tools.ts +10 -0
- package/src/core/slot-home.ts +12 -0
- package/src/core/slug.ts +48 -0
- package/src/core/spark/compile-spark.ts +142 -0
- package/src/core/spark/mini-bars.tsx +310 -0
- package/src/core/spark/sparkline-shared.tsx +391 -0
- package/src/core/spark/sparkline.tsx +399 -0
- package/src/core/standard-actions.ts +103 -0
- package/src/core/stat-row.ts +22 -0
- package/src/core/tree-model.ts +169 -0
- package/src/core/url.ts +63 -0
- package/src/core/use-control.ts +28 -0
- package/src/core/use-locale.ts +12 -0
- package/src/core/use-now.ts +60 -0
- package/src/core/use-resolved-tokens.ts +19 -0
- package/src/core/use-standard-actions.ts +12 -0
- package/src/core/write-batch.ts +40 -0
- package/src/core/zoned.ts +189 -0
- package/src/css/archify.css +37 -0
- package/src/css/base.css +286 -0
- package/src/css/bridge.css +63 -0
- package/src/css/cursor.css +119 -0
- package/src/css/fonts.css +84 -0
- package/src/css/generate.ts +402 -0
- package/src/css/prose.css +214 -0
- package/src/css/starlight.css +342 -0
- package/src/css/static.css +263 -0
- package/src/css/tailwind.css +254 -0
- package/src/css/templates/fonts.css +82 -0
- package/src/css/templates/prose.css +230 -0
- package/src/css/templates/starlight.css +356 -0
- package/src/css/templates/typography.css +50 -0
- package/src/css/theme-script.ts +73 -0
- package/src/css/tokens.css +233 -0
- package/src/css/touch.css +36 -0
- package/src/css/typography.css +89 -0
- package/src/data/index.ts +17 -0
- package/src/data/live/bind-invalidation.ts +263 -0
- package/src/data/live/connection.ts +261 -0
- package/src/data/live/freshness.ts +165 -0
- package/src/data/live/live-query-runtime.ts +96 -0
- package/src/data/live/live-query.ts +215 -0
- package/src/data/optimistic.ts +109 -0
- package/src/data/query-client.ts +61 -0
- package/src/data/shot-state.ts +132 -0
- package/src/data/synced-runtime.ts +516 -0
- package/src/data/synced.ts +236 -0
- package/src/data/unwrap.ts +71 -0
- package/src/form/contexts.ts +9 -0
- package/src/form/hook.ts +410 -0
- package/src/form/index.ts +17 -0
- package/src/form/parts.tsx +99 -0
- package/src/format/locale.ts +3 -0
- package/src/format/number.ts +5 -110
- package/src/format/shared.ts +24 -99
- package/src/index.ts +77 -67
- package/src/lint/bin.ts +34 -0
- package/src/lint/blanket-disable.ts +114 -0
- package/src/lint/check-tokens.ts +245 -0
- package/src/lint/factory.ts +443 -0
- package/src/lint/generated/gen-site-classes.ts +58 -0
- package/src/lint/generated/gen-zone-a.ts +95 -0
- package/src/lint/generated/site-classes.ts +46 -0
- package/src/lint/generated/zone-a.ts +88 -0
- package/src/lint/index.ts +49 -0
- package/src/lint/lintable.ts +2 -0
- package/src/lint/preset.ts +773 -0
- package/src/lint/renamed-rules.ts +11 -0
- package/src/lint/rule-table.ts +334 -0
- package/src/lint/rules/class/detect.ts +1321 -0
- package/src/lint/rules/class/table.ts +567 -0
- package/src/lint/rules/structure/ast.ts +56 -0
- package/src/lint/rules/structure/color-literal.ts +232 -0
- package/src/lint/rules/structure/control-home.ts +379 -0
- package/src/lint/rules/structure/data-primitive-live.ts +153 -0
- package/src/lint/rules/structure/data-primitive.ts +759 -0
- package/src/lint/rules/structure/format-home.ts +544 -0
- package/src/lint/rules/structure/import-boundary.ts +1162 -0
- package/src/lint/rules/structure/label-literal.ts +619 -0
- package/src/lint/rules/structure/motion-literal.ts +195 -0
- package/src/lint/rules/structure/page-root.ts +229 -0
- package/src/lint/rules/structure/primitive-bypass.ts +1430 -0
- package/src/lint/rules/structure/query-home.ts +227 -0
- package/src/lint/rules/structure/router-search.ts +483 -0
- package/src/lint/rules/structure/untrusted-markdown.ts +507 -0
- package/src/lint/rules/structure/waiver-needs-reason.ts +188 -0
- package/src/lint/shadcn.ts +91 -0
- package/src/lint/stylelint/gen.ts +33 -0
- package/src/lint/stylelint/index.ts +10 -0
- package/src/lint/stylelint/render.ts +119 -0
- package/src/lint/stylelint/rules.ts +360 -0
- package/src/lint/weakened.ts +658 -0
- package/src/lint/weakening-edit.ts +95 -0
- package/src/messages/GLOSSARY.md +65 -0
- package/src/messages/de.ts +728 -0
- package/src/messages/es.ts +731 -0
- package/src/messages/fr.ts +737 -0
- package/src/messages/zh-hans.ts +711 -0
- package/src/motion/index.ts +38 -0
- package/src/motion/presets.ts +96 -0
- package/src/page/article-layout.tsx +231 -0
- package/src/page/article-progress.tsx +76 -0
- package/src/page/bar-title.tsx +35 -0
- package/src/page/callout.tsx +57 -0
- package/src/page/card-grid.tsx +97 -0
- package/src/page/connection-indicator.tsx +154 -0
- package/src/page/contract.ts +307 -0
- package/src/page/core/article-date.ts +27 -0
- package/src/page/core/bar-measure.ts +68 -0
- package/src/page/core/claims.ts +153 -0
- package/src/page/core/docking.ts +86 -0
- package/src/page/core/panel-store.ts +66 -0
- package/src/page/define-overlays.ts +150 -0
- package/src/page/dock.tsx +260 -0
- package/src/page/empty-state.tsx +125 -0
- package/src/page/error-cause.ts +18 -0
- package/src/page/facts.tsx +88 -0
- package/src/page/favorites.tsx +180 -0
- package/src/page/index.ts +75 -0
- package/src/page/mdx.tsx +142 -0
- package/src/page/overlay-host.tsx +115 -0
- package/src/page/page-aside.tsx +386 -0
- package/src/page/page-bar.tsx +728 -0
- package/src/page/page-kit.type-guard.tsx +135 -0
- package/src/page/page-summary.tsx +210 -0
- package/src/page/page-tabs.tsx +78 -0
- package/src/page/page.test-support.tsx +103 -0
- package/src/page/page.tsx +193 -0
- package/src/page/panel-steps.tsx +70 -0
- package/src/page/parts/inner-nav.test-support.tsx +78 -0
- package/src/page/parts/inner-nav.tsx +373 -0
- package/src/page/parts/split-page.tsx +228 -0
- package/src/page/peek-window.tsx +297 -0
- package/src/page/peek.tsx +660 -0
- package/src/page/present-glyph.tsx +33 -0
- package/src/page/property-list.tsx +574 -0
- package/src/page/prose.tsx +50 -0
- package/src/page/query-state.tsx +163 -0
- package/src/page/record-panel.tsx +357 -0
- package/src/page/refresh-button.tsx +198 -0
- 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/search-hint.ts +56 -0
- package/src/page/section.tsx +171 -0
- package/src/page/settings-layout.tsx +128 -0
- package/src/page/toast-host.tsx +89 -0
- package/src/page/toc-click-pin.ts +157 -0
- package/src/page/toc.tsx +226 -0
- package/src/page/use-size-class.ts +45 -0
- package/src/register.ts +11 -57
- package/src/router/controls/brand.ts +104 -0
- package/src/router/controls/codec.ts +207 -0
- package/src/router/controls/define.ts +795 -0
- package/src/router/controls/field.ts +314 -0
- package/src/router/controls/fixtures/argo-window-stores.json +76 -0
- package/src/router/controls/fixtures/cases.json +8 -0
- package/src/router/controls/fixtures/linewatch-dashboard.json +20 -0
- package/src/router/controls/fixtures/shutterflow-photos-settings.json +26 -0
- package/src/router/controls/href.ts +37 -0
- package/src/router/controls/middleware.ts +80 -0
- package/src/router/controls/ownership.ts +86 -0
- package/src/router/controls/precedence.ts +26 -0
- package/src/router/controls/values.ts +15 -0
- package/src/router/controls/widgets.ts +403 -0
- package/src/router/defaults.ts +124 -0
- package/src/router/index.ts +18 -0
- package/src/router/nav/anchor.ts +37 -0
- package/src/router/nav/define-nav.ts +52 -0
- package/src/router/nav/read-labels.ts +102 -0
- package/src/router/nav/registry.ts +35 -0
- package/src/router/nav/resolve-active.ts +144 -0
- package/src/router/nav/types.ts +282 -0
- package/src/router/nav-target.ts +126 -0
- package/src/router/peek.ts +400 -0
- package/src/router/unsaved-guard.ts +65 -0
- package/src/shell/app-shell-host.ts +90 -0
- package/src/shell/app-shell.tsx +405 -0
- package/src/shell/chrome.tsx +118 -0
- package/src/shell/commands/area.ts +12 -0
- package/src/shell/commands/bindings.ts +150 -0
- package/src/shell/commands/command-palette.tsx +391 -0
- package/src/shell/commands/define-commands.ts +346 -0
- package/src/shell/commands/nav-commands.ts +54 -0
- package/src/shell/commands/palette-sheet.tsx +35 -0
- package/src/shell/commands/palette-sources.ts +202 -0
- package/src/shell/commands/rank.ts +38 -0
- package/src/shell/commands/runnable.ts +85 -0
- package/src/shell/commands/shortcut-overlay.tsx +61 -0
- package/src/shell/commands/shortcut-rows.ts +46 -0
- package/src/shell/contract.ts +169 -0
- package/src/shell/core/badges.ts +71 -0
- package/src/shell/core/block-model.ts +132 -0
- package/src/shell/core/column.ts +60 -0
- package/src/shell/core/crumbs.ts +132 -0
- package/src/shell/core/header-tiers.ts +76 -0
- package/src/shell/core/nav-runtime.ts +92 -0
- package/src/shell/core/phone-groups.ts +76 -0
- package/src/shell/core/projector.ts +195 -0
- package/src/shell/core/types.ts +58 -0
- package/src/shell/favorites-host.ts +50 -0
- package/src/shell/index.ts +32 -0
- package/src/shell/menu-template.golden.json +52 -0
- package/src/shell/menu-template.ts +138 -0
- package/src/shell/parts/a11y.tsx +210 -0
- package/src/shell/parts/account.tsx +136 -0
- package/src/shell/parts/blocks.tsx +296 -0
- package/src/shell/parts/crumbs.tsx +81 -0
- package/src/shell/parts/grid.tsx +638 -0
- package/src/shell/parts/header-kebab.tsx +132 -0
- package/src/shell/parts/header.tsx +436 -0
- package/src/shell/parts/mobile/retap.ts +94 -0
- package/src/shell/parts/mobile/section-nav/chrome-state.ts +50 -0
- package/src/shell/parts/mobile/section-nav/drawer.tsx +253 -0
- package/src/shell/parts/mobile/section-nav/host.tsx +94 -0
- package/src/shell/parts/mobile/section-nav/measure.ts +22 -0
- package/src/shell/parts/mobile/section-nav/model.ts +100 -0
- package/src/shell/parts/mobile/section-nav/parts.tsx +114 -0
- package/src/shell/parts/mobile/section-nav/phone-actions.tsx +92 -0
- package/src/shell/parts/mobile/section-nav/phone-rail.tsx +239 -0
- package/src/shell/parts/mobile/section-nav/rows.tsx +94 -0
- package/src/shell/parts/mobile/section-nav/safe.ts +8 -0
- package/src/shell/parts/mobile/section-nav/section-bar.tsx +136 -0
- package/src/shell/parts/mobile/section-nav/snaps.ts +45 -0
- package/src/shell/parts/mounts.tsx +44 -0
- package/src/shell/parts/nav-row-menu.tsx +86 -0
- package/src/shell/parts/print.ts +48 -0
- package/src/shell/parts/rail-favorites.tsx +162 -0
- package/src/shell/parts/rail-folds.ts +47 -0
- package/src/shell/parts/rail-resize.tsx +97 -0
- package/src/shell/parts/rail-rows.tsx +217 -0
- package/src/shell/parts/rail-search.tsx +55 -0
- package/src/shell/parts/rail-section.tsx +146 -0
- package/src/shell/parts/rail-test-kit.tsx +50 -0
- package/src/shell/parts/rail-text.ts +26 -0
- package/src/shell/parts/rail.tsx +160 -0
- package/src/shell/parts/section-column.tsx +124 -0
- package/src/shell/parts/settings.tsx +89 -0
- package/src/shell/parts/top-nav.tsx +218 -0
- package/src/shell/parts/workspace-switcher.tsx +109 -0
- package/src/static/article-layout.tsx +201 -0
- package/src/static/bento.tsx +106 -0
- package/src/static/blocks.tsx +62 -0
- package/src/static/call-to-action.tsx +53 -0
- package/src/static/callout.tsx +79 -0
- package/src/static/changelog.tsx +110 -0
- package/src/static/code-block.tsx +60 -0
- package/src/static/comparison.tsx +169 -0
- package/src/static/data-table.tsx +101 -0
- package/src/static/dates.ts +10 -0
- package/src/static/form.tsx +163 -0
- package/src/static/glyphs.tsx +35 -0
- package/src/static/hero.tsx +74 -0
- package/src/static/index.ts +55 -0
- package/src/static/markup.ts +30 -0
- package/src/static/mdx.tsx +135 -0
- package/src/static/post-list.tsx +112 -0
- package/src/static/question-list.tsx +82 -0
- package/src/static/site-footer.tsx +77 -0
- package/src/static/site-header.tsx +349 -0
- package/src/static/site-nav.tsx +93 -0
- package/src/static/site-script.ts +125 -0
- package/src/static/tabs.tsx +103 -0
- package/src/static/theme-switch.tsx +53 -0
- package/src/static/toc.tsx +59 -0
- package/src/static/types.ts +69 -0
- package/src/surfaces.ts +321 -430
- package/src/table/action-id.type-guard.tsx +31 -0
- package/src/table/column-ids.type-test.ts +181 -0
- package/src/table/contract.ts +587 -0
- package/src/table/contract.type-test.ts +118 -0
- package/src/table/core/arrange.ts +89 -0
- package/src/table/core/cell-parts.tsx +157 -0
- package/src/table/core/codec.ts +392 -0
- package/src/table/core/features.ts +120 -0
- package/src/table/core/filters.ts +214 -0
- package/src/table/core/keyboard.ts +441 -0
- package/src/table/core/kind-icons.tsx +112 -0
- package/src/table/core/kinds-cells.tsx +1254 -0
- package/src/table/core/kinds-codec.ts +66 -0
- package/src/table/core/kinds-engine.ts +64 -0
- package/src/table/core/kinds-spec.ts +575 -0
- package/src/table/core/kinds.tsx +2421 -0
- package/src/table/core/plan.ts +416 -0
- package/src/table/core/selection.ts +154 -0
- package/src/table/core/state.ts +284 -0
- package/src/table/index.ts +66 -16
- package/src/table/invariants/api.ts +37 -0
- package/src/table/invariants/harness.tsx +47 -0
- package/src/table/layouts/add-menu.tsx +49 -0
- package/src/table/layouts/board-layout.tsx +227 -0
- package/src/table/layouts/card-tick.tsx +37 -0
- package/src/table/layouts/gallery-layout.tsx +176 -0
- package/src/table/layouts/glyphs.tsx +45 -0
- package/src/table/layouts/layout-phase.tsx +172 -0
- package/src/table/layouts/model.ts +186 -0
- package/src/table/layouts/specs.ts +79 -0
- package/src/table/layouts/toggle.tsx +77 -0
- package/src/table/parts/add-filter.tsx +63 -0
- package/src/table/parts/auto-detail.tsx +42 -0
- package/src/table/parts/body.tsx +464 -0
- package/src/table/parts/bulk-bar.tsx +277 -0
- package/src/table/parts/category-order.tsx +80 -0
- package/src/table/parts/cell-filter.tsx +96 -0
- package/src/table/parts/cell-filter.type-test.ts +24 -0
- package/src/table/parts/chips.tsx +98 -0
- package/src/table/parts/column-actions.tsx +269 -0
- package/src/table/parts/data-table.tsx +480 -0
- package/src/table/parts/detail-sheet.tsx +140 -0
- package/src/table/parts/filter-text.ts +57 -0
- package/src/table/parts/footer-model.ts +127 -0
- package/src/table/parts/footer.tsx +178 -0
- package/src/table/parts/group-row-model.ts +86 -0
- package/src/table/parts/group-row.tsx +173 -0
- package/src/table/parts/head.tsx +596 -0
- package/src/table/parts/live-row-actions.ts +92 -0
- package/src/table/parts/order-list.tsx +226 -0
- package/src/table/parts/pager.tsx +232 -0
- package/src/table/parts/phases.tsx +304 -0
- package/src/table/parts/plus-glyph.tsx +11 -0
- package/src/table/parts/range-editor.tsx +199 -0
- package/src/table/parts/row-focus.tsx +196 -0
- package/src/table/parts/row-menu.ts +68 -0
- package/src/table/parts/row-number.tsx +80 -0
- package/src/table/parts/search-label.ts +11 -0
- package/src/table/parts/select-cell.tsx +135 -0
- package/src/table/parts/tick-column.tsx +67 -0
- package/src/table/parts/tiers.tsx +133 -0
- package/src/table/parts/toolbar-editor.tsx +223 -0
- package/src/table/parts/toolbar-filters.ts +68 -0
- package/src/table/parts/toolbar.tsx +218 -0
- package/src/table/parts/tree-row-model.ts +121 -0
- package/src/table/parts/tri-state-header.tsx +53 -0
- package/src/table/parts/view-door.ts +85 -0
- package/src/table/parts/view-panel.tsx +728 -0
- package/src/table/parts/view-tab-menu.tsx +74 -0
- package/src/table/parts/views-model.ts +356 -0
- package/src/table/parts/views.tsx +795 -0
- package/src/table/parts/virtual.tsx +178 -0
- package/src/table/table.css +2688 -0
- package/src/table/use-data-table.ts +1314 -0
- package/src/testing/dom-shims.ts +148 -0
- package/src/testing/expect-catalog.tsx +156 -0
- package/src/testing/fake-channel.ts +100 -0
- package/src/testing/index.ts +9 -0
- package/src/testing/pseudo-locale.ts +149 -0
- package/src/testing/quality.ts +855 -0
- package/src/testing/settled.ts +94 -0
- package/src/testing/shell-invariants.ts +447 -0
- package/src/testing/slots.ts +17 -0
- package/src/tokens/__snapshots__/emit.test.ts.snap +523 -0
- package/src/tokens/accents.ts +50 -0
- package/src/tokens/basalt-names.ts +367 -0
- package/src/tokens/bridge-sheet.ts +80 -0
- package/src/tokens/chart-vars.ts +275 -0
- package/src/tokens/core.ts +202 -306
- package/src/tokens/ctl-vars.ts +2 -20
- package/src/tokens/derive.ts +350 -27
- package/src/tokens/emit-fallback.ts +41 -0
- package/src/tokens/emit-json.ts +64 -0
- package/src/tokens/emit.ts +344 -0
- package/src/tokens/gates.ts +253 -0
- package/src/tokens/golden/default.css +233 -0
- package/src/tokens/golden/hue-268-vibrancy-1.css +233 -0
- package/src/tokens/hct.ts +1 -1
- package/src/tokens/index.ts +15 -3
- package/src/tokens/motion.ts +132 -0
- package/src/tokens/oklab.ts +3 -3
- package/src/tokens/palette.ts +130 -154
- package/src/tokens/part-vars.ts +75 -0
- package/src/tokens/ramps.ts +51 -0
- package/src/tokens/site-text.ts +10 -0
- package/src/tokens/size-classes.ts +14 -17
- package/src/tokens/size-classes.type-guard.tsx +20 -0
- package/src/tokens/space-scale.ts +2 -2
- package/src/tokens/status-text.ts +36 -1
- package/src/tokens/table.ts +698 -0
- package/src/ui/accordion.guard.ts +15 -0
- package/src/ui/accordion.tsx +142 -0
- package/src/ui/alert.guard.ts +21 -0
- package/src/ui/alert.tsx +105 -0
- package/src/ui/avatar.guard.ts +41 -0
- package/src/ui/avatar.tsx +237 -0
- package/src/ui/badge.guard.ts +27 -0
- package/src/ui/badge.tsx +269 -0
- package/src/ui/button.guard.ts +30 -0
- package/src/ui/button.tsx +203 -0
- package/src/ui/calendar-grid.ts +193 -0
- package/src/ui/calendar.guard.ts +54 -0
- package/src/ui/calendar.tsx +200 -0
- package/src/ui/card.guard.ts +15 -0
- package/src/ui/card.tsx +442 -0
- package/src/ui/checkbox-matrix.guard.ts +28 -0
- package/src/ui/checkbox-matrix.tsx +344 -0
- package/src/ui/checkbox.guard.ts +36 -0
- package/src/ui/checkbox.tsx +184 -0
- package/src/ui/choice-card.guard.ts +24 -0
- package/src/ui/choice-card.tsx +100 -0
- package/src/ui/collapsible.guard.ts +17 -0
- package/src/ui/collapsible.tsx +81 -0
- package/src/ui/combobox.guard.ts +26 -0
- package/src/ui/combobox.tsx +1053 -0
- package/src/ui/context-menu.tsx +214 -0
- package/src/ui/control-group.guard.ts +29 -0
- package/src/ui/control-group.tsx +266 -0
- package/src/ui/copy-button.tsx +117 -0
- package/src/ui/date-picker.guard.ts +54 -0
- package/src/ui/date-picker.tsx +394 -0
- package/src/ui/dialog.guard.ts +41 -0
- package/src/ui/dialog.tsx +397 -0
- package/src/ui/drag-auto-scroll.ts +125 -0
- package/src/ui/entity.guard.ts +41 -0
- package/src/ui/entity.tsx +219 -0
- package/src/ui/field.guard.ts +24 -0
- package/src/ui/field.tsx +206 -0
- package/src/ui/file-upload.guard.ts +45 -0
- package/src/ui/file-upload.tsx +462 -0
- package/src/ui/guard-completeness.ts +204 -0
- package/src/ui/header-actions.ts +27 -0
- package/src/ui/info-hint.guard.ts +21 -0
- package/src/ui/info-hint.tsx +98 -0
- package/src/ui/input.guard.ts +15 -0
- package/src/ui/input.tsx +95 -0
- package/src/ui/kbd.guard.ts +16 -0
- package/src/ui/kbd.tsx +74 -0
- package/src/ui/leave-confirm.ts +50 -0
- package/src/ui/list-sheet.ts +29 -0
- package/src/ui/menu.guard.ts +70 -0
- package/src/ui/menu.tsx +437 -0
- package/src/ui/meter.guard.ts +76 -0
- package/src/ui/meter.tsx +600 -0
- package/src/ui/no-restyle.generated.json +660 -0
- package/src/ui/num.guard.ts +22 -0
- package/src/ui/num.tsx +66 -0
- package/src/ui/number-field.guard.ts +26 -0
- package/src/ui/number-field.tsx +141 -0
- package/src/ui/one-time-code.guard.ts +28 -0
- package/src/ui/one-time-code.tsx +121 -0
- package/src/ui/overlay-presenter.ts +138 -0
- package/src/ui/overlay-sheet.ts +47 -0
- package/src/ui/password-input.tsx +74 -0
- package/src/ui/popover.guard.ts +43 -0
- package/src/ui/popover.tsx +210 -0
- package/src/ui/primitive.contract.ts +426 -0
- package/src/ui/progress.guard.ts +40 -0
- package/src/ui/progress.tsx +246 -0
- package/src/ui/quick-picks.guard.ts +22 -0
- package/src/ui/quick-picks.tsx +92 -0
- package/src/ui/radio-group.guard.ts +25 -0
- package/src/ui/radio-group.tsx +177 -0
- package/src/ui/remote-pad.guard.ts +24 -0
- package/src/ui/remote-pad.tsx +249 -0
- package/src/ui/resizable.tsx +99 -0
- package/src/ui/scroll-area.guard.ts +18 -0
- package/src/ui/scroll-area.tsx +110 -0
- package/src/ui/segmented.guard.ts +28 -0
- package/src/ui/segmented.tsx +267 -0
- package/src/ui/select.guard.ts +27 -0
- package/src/ui/select.tsx +765 -0
- package/src/ui/separator.guard.ts +15 -0
- package/src/ui/separator.tsx +53 -0
- package/src/ui/sheet.guard.ts +40 -0
- package/src/ui/sheet.tsx +602 -0
- package/src/ui/skeleton.guard.ts +26 -0
- package/src/ui/skeleton.tsx +101 -0
- package/src/ui/slider.guard.ts +30 -0
- package/src/ui/slider.tsx +114 -0
- package/src/ui/slots.ts +117 -0
- package/src/ui/sortable-list.tsx +382 -0
- package/src/ui/status.guard.ts +27 -0
- package/src/ui/status.tsx +101 -0
- package/src/ui/swatch-picker.guard.ts +27 -0
- package/src/ui/swatch-picker.tsx +263 -0
- package/src/ui/switch.guard.ts +23 -0
- package/src/ui/switch.tsx +44 -0
- package/src/ui/table.guard.ts +18 -0
- package/src/ui/table.tsx +205 -0
- package/src/ui/tabs.guard.ts +15 -0
- package/src/ui/tabs.tsx +257 -0
- package/src/ui/tag-input.guard.ts +29 -0
- package/src/ui/tag-input.tsx +243 -0
- package/src/ui/textarea.guard.ts +24 -0
- package/src/ui/textarea.tsx +115 -0
- package/src/ui/toast.guard.ts +15 -0
- package/src/ui/toast.tsx +173 -0
- package/src/ui/toolbar.guard.ts +25 -0
- package/src/ui/toolbar.tsx +163 -0
- package/src/ui/tooltip.guard.ts +27 -0
- package/src/ui/tooltip.tsx +183 -0
- package/src/ui/tree.guard.ts +72 -0
- package/src/ui/tree.tsx +1690 -0
- package/src/ui/virtual-list.guard.ts +31 -0
- package/src/ui/virtual-list.tsx +200 -0
- package/src/vite/allotment.ts +145 -0
- package/src/vite/doc.ts +104 -0
- package/src/vite/ejects.ts +68 -0
- package/src/vite/graph.ts +215 -0
- package/src/vite/head.ts +298 -0
- package/src/vite/index.ts +233 -0
- package/src/vite/shell-worker.ts +115 -0
- package/src/vite/sources.ts +57 -0
- package/src/vite/table-sheet.ts +17 -0
- package/agent/agents/basalt-design-reviewer.md +0 -100
- package/agent/rules/basalt-batteries.md +0 -41
- package/agent/rules/basalt-controls.md +0 -46
- package/agent/rules/basalt-mantine.md +0 -48
- package/agent/skills/basalt-design/references/catalogue.md +0 -58
- package/agent/skills/basalt-design/references/encoding-rules.md +0 -45
- package/agent/skills/basalt-design/references/recipes.md +0 -47
- package/agent/skills/basalt-design/references/stat-tile.md +0 -24
- package/configs/card-inset.test.ts +0 -57
- package/configs/oxlint-basalt.json +0 -28
- package/configs/oxlint-plugin.js +0 -4382
- package/configs/oxlint-plugin.test.ts +0 -4480
- package/configs/oxlint.json +0 -63
- package/dist/agent/ai-sdk-transport.d.ts +0 -48
- package/dist/agent/ai-sdk-transport.d.ts.map +0 -1
- package/dist/agent/ai-sdk-transport.js +0 -206
- package/dist/agent/chat/composer.d.ts +0 -144
- package/dist/agent/chat/composer.d.ts.map +0 -1
- package/dist/agent/chat/composer.js +0 -268
- package/dist/agent/chat/message-affordances.d.ts +0 -60
- package/dist/agent/chat/message-affordances.d.ts.map +0 -1
- package/dist/agent/chat/message-affordances.js +0 -7
- package/dist/agent/chat/thread-feed-row.d.ts +0 -93
- package/dist/agent/chat/thread-feed-row.d.ts.map +0 -1
- package/dist/agent/chat/thread-feed-row.js +0 -192
- package/dist/agent/chat/thread-feed.d.ts +0 -58
- package/dist/agent/chat/thread-feed.d.ts.map +0 -1
- package/dist/agent/chat/thread-feed.js +0 -86
- package/dist/agent/chat/thread-message.d.ts +0 -74
- package/dist/agent/chat/thread-message.d.ts.map +0 -1
- package/dist/agent/chat/thread-message.js +0 -367
- package/dist/agent/chat/thread-outcome-card.d.ts +0 -20
- package/dist/agent/chat/thread-outcome-card.d.ts.map +0 -1
- package/dist/agent/chat/thread-outcome-card.js +0 -112
- package/dist/agent/chat/tool-chip.d.ts +0 -22
- package/dist/agent/chat/tool-chip.d.ts.map +0 -1
- package/dist/agent/chat/tool-chip.js +0 -125
- package/dist/agent/chat/use-keyboard-inset.d.ts +0 -2
- package/dist/agent/chat/use-keyboard-inset.d.ts.map +0 -1
- package/dist/agent/chat/use-keyboard-inset.js +0 -34
- package/dist/agent/chat/virtualize.d.ts +0 -162
- package/dist/agent/chat/virtualize.d.ts.map +0 -1
- package/dist/agent/chat/virtualize.js +0 -24
- package/dist/agent/coalesce.d.ts +0 -42
- package/dist/agent/coalesce.d.ts.map +0 -1
- package/dist/agent/coalesce.js +0 -137
- package/dist/agent/error.d.ts +0 -46
- package/dist/agent/error.d.ts.map +0 -1
- package/dist/agent/error.js +0 -18
- package/dist/agent/foreign.d.ts +0 -98
- package/dist/agent/foreign.d.ts.map +0 -1
- package/dist/agent/foreign.js +0 -18
- package/dist/agent/history.d.ts +0 -23
- package/dist/agent/history.d.ts.map +0 -1
- package/dist/agent/id.d.ts +0 -112
- package/dist/agent/id.d.ts.map +0 -1
- package/dist/agent/id.js +0 -44
- package/dist/agent/index.d.ts +0 -28
- package/dist/agent/index.d.ts.map +0 -1
- package/dist/agent/index.js +0 -18
- package/dist/agent/merge.d.ts +0 -8
- package/dist/agent/merge.d.ts.map +0 -1
- package/dist/agent/merge.js +0 -35
- package/dist/agent/outcome.d.ts +0 -60
- package/dist/agent/outcome.d.ts.map +0 -1
- package/dist/agent/part-list.d.ts +0 -90
- package/dist/agent/part-list.d.ts.map +0 -1
- package/dist/agent/part-list.js +0 -185
- package/dist/agent/parts.d.ts +0 -205
- package/dist/agent/parts.d.ts.map +0 -1
- package/dist/agent/parts.js +0 -176
- package/dist/agent/run-committer.d.ts +0 -23
- package/dist/agent/run-committer.d.ts.map +0 -1
- package/dist/agent/run-committer.js +0 -41
- package/dist/agent/run-records.d.ts +0 -86
- package/dist/agent/run-records.d.ts.map +0 -1
- package/dist/agent/run-records.js +0 -82
- package/dist/agent/stick-to-bottom.d.ts +0 -20
- package/dist/agent/stick-to-bottom.d.ts.map +0 -1
- package/dist/agent/stick-to-bottom.js +0 -77
- package/dist/agent/thread.d.ts +0 -118
- package/dist/agent/thread.d.ts.map +0 -1
- package/dist/agent/thread.js +0 -6
- package/dist/agent/transport.d.ts +0 -78
- package/dist/agent/transport.d.ts.map +0 -1
- package/dist/agent/transport.js +0 -6
- package/dist/agent/use-agent-thread-runs.d.ts +0 -147
- package/dist/agent/use-agent-thread-runs.d.ts.map +0 -1
- package/dist/agent/use-agent-thread-runs.js +0 -476
- package/dist/charts/BandStrip.d.ts +0 -62
- package/dist/charts/BandStrip.d.ts.map +0 -1
- package/dist/charts/BandStrip.js +0 -310
- package/dist/charts/Bars.d.ts +0 -19
- package/dist/charts/Bars.d.ts.map +0 -1
- package/dist/charts/Bars.js +0 -144
- package/dist/charts/CartesianChart.d.ts +0 -72
- package/dist/charts/CartesianChart.d.ts.map +0 -1
- package/dist/charts/CartesianChart.js +0 -139
- package/dist/charts/ChartCard.d.ts +0 -91
- package/dist/charts/ChartCard.d.ts.map +0 -1
- package/dist/charts/ChartCard.js +0 -272
- package/dist/charts/Donut.d.ts +0 -25
- package/dist/charts/Donut.d.ts.map +0 -1
- package/dist/charts/Donut.js +0 -203
- package/dist/charts/DualPanel.d.ts +0 -51
- package/dist/charts/DualPanel.d.ts.map +0 -1
- package/dist/charts/DualPanel.js +0 -246
- package/dist/charts/Heatmap.d.ts +0 -84
- package/dist/charts/Heatmap.d.ts.map +0 -1
- package/dist/charts/Heatmap.js +0 -294
- package/dist/charts/Lines.d.ts +0 -14
- package/dist/charts/Lines.d.ts.map +0 -1
- package/dist/charts/Lines.js +0 -106
- package/dist/charts/MirroredBars.d.ts +0 -55
- package/dist/charts/MirroredBars.d.ts.map +0 -1
- package/dist/charts/MirroredBars.js +0 -221
- package/dist/charts/Sparkline.d.ts +0 -70
- package/dist/charts/Sparkline.d.ts.map +0 -1
- package/dist/charts/Sparkline.js +0 -652
- package/dist/charts/StackedArea.d.ts +0 -18
- package/dist/charts/StackedArea.d.ts.map +0 -1
- package/dist/charts/StackedArea.js +0 -56
- package/dist/charts/band-fold.d.ts +0 -65
- package/dist/charts/band-fold.d.ts.map +0 -1
- package/dist/charts/band-fold.js +0 -46
- package/dist/charts/chart-card.module.css +0 -142
- package/dist/charts/chart-card.module.css.d.ts +0 -20
- package/dist/charts/compile.d.ts +0 -146
- package/dist/charts/compile.d.ts.map +0 -1
- package/dist/charts/compile.js +0 -905
- package/dist/charts/cursor.d.ts +0 -93
- package/dist/charts/cursor.d.ts.map +0 -1
- package/dist/charts/cursor.js +0 -211
- package/dist/charts/donut.module.css +0 -54
- package/dist/charts/donut.module.css.d.ts +0 -9
- package/dist/charts/heatmap-fill.d.ts.map +0 -1
- package/dist/charts/panel.d.ts +0 -65
- package/dist/charts/panel.d.ts.map +0 -1
- package/dist/charts/panel.js +0 -130
- package/dist/charts/scales.d.ts +0 -52
- package/dist/charts/scales.d.ts.map +0 -1
- package/dist/charts/scales.js +0 -194
- package/dist/charts/sparkline.module.css +0 -166
- package/dist/charts/sparkline.module.css.d.ts +0 -16
- package/dist/charts/theme.d.ts +0 -40
- package/dist/charts/theme.d.ts.map +0 -1
- package/dist/charts/theme.js +0 -52
- package/dist/charts/ticks.d.ts.map +0 -1
- package/dist/charts/ticks.js +0 -42
- package/dist/cli/audit-allows.d.ts +0 -11
- package/dist/cli/audit-allows.d.ts.map +0 -1
- package/dist/cli/audit-allows.js +0 -240
- package/dist/cli/check-theme.d.ts +0 -10
- package/dist/cli/check-theme.d.ts.map +0 -1
- package/dist/cli/check-theme.js +0 -154
- package/dist/cli/doctor-upgrade.d.ts +0 -86
- package/dist/cli/doctor-upgrade.d.ts.map +0 -1
- package/dist/cli/doctor-upgrade.js +0 -509
- package/dist/cli/doctor.d.ts +0 -38
- package/dist/cli/doctor.d.ts.map +0 -1
- package/dist/cli/doctor.js +0 -352
- package/dist/cli/guard-hook.d.ts +0 -9
- package/dist/cli/guard-hook.d.ts.map +0 -1
- package/dist/cli/guard-hook.js +0 -59
- package/dist/cli/init.d.ts +0 -12
- package/dist/cli/init.d.ts.map +0 -1
- package/dist/cli/init.js +0 -349
- package/dist/cli/provider-tags.d.ts +0 -12
- package/dist/cli/provider-tags.d.ts.map +0 -1
- package/dist/cli/provider-tags.js +0 -28
- package/dist/cli/render-imports.d.ts +0 -24
- package/dist/cli/render-imports.d.ts.map +0 -1
- package/dist/cli/render-imports.js +0 -74
- package/dist/cli/sync.d.ts +0 -27
- package/dist/cli/sync.d.ts.map +0 -1
- package/dist/cli/sync.js +0 -243
- package/dist/commands/ShortcutsHelp.d.ts +0 -18
- package/dist/commands/ShortcutsHelp.d.ts.map +0 -1
- package/dist/commands/ShortcutsHelp.js +0 -69
- package/dist/commands/command-stash.d.ts +0 -15
- package/dist/commands/command-stash.d.ts.map +0 -1
- package/dist/commands/command-stash.js +0 -31
- package/dist/commands/define-commands.d.ts +0 -123
- package/dist/commands/define-commands.d.ts.map +0 -1
- package/dist/commands/define-commands.js +0 -18
- package/dist/commands/define-overlays.d.ts +0 -221
- package/dist/commands/define-overlays.d.ts.map +0 -1
- package/dist/commands/define-overlays.js +0 -140
- package/dist/commands/index.d.ts +0 -26
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -17
- package/dist/commands/notifications/bell.d.ts +0 -16
- package/dist/commands/notifications/bell.d.ts.map +0 -1
- package/dist/commands/notifications/bell.js +0 -101
- package/dist/commands/notifications/center.d.ts +0 -31
- package/dist/commands/notifications/center.d.ts.map +0 -1
- package/dist/commands/notifications/center.js +0 -130
- package/dist/commands/notifications/define-notifications.d.ts +0 -142
- package/dist/commands/notifications/define-notifications.d.ts.map +0 -1
- package/dist/commands/notifications/define-notifications.js +0 -28
- package/dist/commands/notifications/notify.d.ts +0 -44
- package/dist/commands/notifications/notify.d.ts.map +0 -1
- package/dist/commands/notifications/notify.js +0 -79
- package/dist/commands/notifications/store.d.ts +0 -129
- package/dist/commands/notifications/store.d.ts.map +0 -1
- package/dist/commands/notifications/store.js +0 -117
- package/dist/commands/projectors.d.ts +0 -22
- package/dist/commands/projectors.d.ts.map +0 -1
- package/dist/commands/projectors.js +0 -16
- package/dist/commands/shell-bridge.d.ts +0 -57
- package/dist/commands/shell-bridge.d.ts.map +0 -1
- package/dist/commands/shell-bridge.js +0 -32
- package/dist/commands/shortcut-format.d.ts +0 -54
- package/dist/commands/shortcut-format.d.ts.map +0 -1
- package/dist/commands/shortcut-format.js +0 -63
- package/dist/common/could-not-load.d.ts +0 -13
- package/dist/common/could-not-load.d.ts.map +0 -1
- package/dist/common/could-not-load.js +0 -14
- package/dist/common/index.d.ts +0 -18
- package/dist/common/index.d.ts.map +0 -1
- package/dist/common/index.js +0 -30
- package/dist/common/motion.d.ts +0 -29
- package/dist/common/motion.d.ts.map +0 -1
- package/dist/common/motion.js +0 -12
- package/dist/common/query-state-like.d.ts +0 -43
- package/dist/common/query-state-like.d.ts.map +0 -1
- package/dist/common/query-state-like.js +0 -20
- package/dist/common/refs.d.ts +0 -29
- package/dist/common/refs.d.ts.map +0 -1
- package/dist/common/refs.js +0 -29
- package/dist/common/use-measured-widths.d.ts +0 -37
- package/dist/common/use-measured-widths.d.ts.map +0 -1
- package/dist/common/use-measured-widths.js +0 -53
- package/dist/common/virtual-rows.d.ts +0 -196
- package/dist/common/virtual-rows.d.ts.map +0 -1
- package/dist/common/virtual-rows.js +0 -290
- package/dist/common/vx-families.d.ts +0 -7
- package/dist/common/vx-families.d.ts.map +0 -1
- package/dist/common/vx-families.js +0 -32
- package/dist/common/vx-family.d.ts +0 -11
- package/dist/common/vx-family.d.ts.map +0 -1
- package/dist/common/vx-family.js +0 -12
- package/dist/content/article-layout.d.ts +0 -63
- package/dist/content/article-layout.d.ts.map +0 -1
- package/dist/content/article-layout.js +0 -111
- package/dist/content/article-layout.module.css +0 -183
- package/dist/content/article-layout.module.css.d.ts +0 -23
- package/dist/content/article-model.d.ts +0 -17
- package/dist/content/article-model.d.ts.map +0 -1
- package/dist/content/article-model.js +0 -13
- package/dist/content/callout-alert.d.ts +0 -27
- package/dist/content/callout-alert.d.ts.map +0 -1
- package/dist/content/callout-alert.js +0 -59
- package/dist/content/callout.d.ts +0 -28
- package/dist/content/callout.d.ts.map +0 -1
- package/dist/content/callout.js +0 -75
- package/dist/content/callout.module.css +0 -89
- package/dist/content/callout.module.css.d.ts +0 -17
- package/dist/content/code-block.module.css +0 -135
- package/dist/content/code-block.module.css.d.ts +0 -14
- package/dist/content/copy-action.d.ts +0 -29
- package/dist/content/copy-action.d.ts.map +0 -1
- package/dist/content/copy-action.js +0 -46
- package/dist/content/fence-block.d.ts +0 -46
- package/dist/content/fence-block.d.ts.map +0 -1
- package/dist/content/fence-block.js +0 -89
- package/dist/content/glyphs.d.ts +0 -18
- package/dist/content/glyphs.d.ts.map +0 -1
- package/dist/content/glyphs.js +0 -43
- package/dist/content/guide.d.ts +0 -48
- package/dist/content/guide.d.ts.map +0 -1
- package/dist/content/guide.js +0 -119
- package/dist/content/guide.module.css +0 -62
- package/dist/content/guide.module.css.d.ts +0 -13
- package/dist/content/heading-anchor.d.ts +0 -30
- package/dist/content/heading-anchor.d.ts.map +0 -1
- package/dist/content/heading-anchor.js +0 -37
- package/dist/content/heading-components.d.ts +0 -5
- package/dist/content/heading-components.d.ts.map +0 -1
- package/dist/content/heading-components.js +0 -44
- package/dist/content/mermaid-sanitize.d.ts +0 -15
- package/dist/content/mermaid-sanitize.d.ts.map +0 -1
- package/dist/content/mermaid-sanitize.js +0 -28
- package/dist/content/mermaid.module.css +0 -20
- package/dist/content/mermaid.module.css.d.ts +0 -8
- package/dist/content/prose.d.ts +0 -29
- package/dist/content/prose.d.ts.map +0 -1
- package/dist/content/prose.js +0 -24
- package/dist/content/prose.module.css +0 -346
- package/dist/content/prose.module.css.d.ts +0 -12
- package/dist/content/reading-progress.d.ts +0 -26
- package/dist/content/reading-progress.d.ts.map +0 -1
- package/dist/content/reading-progress.js +0 -54
- package/dist/content/reading-progress.module.css +0 -24
- package/dist/content/reading-progress.module.css.d.ts +0 -9
- package/dist/content/slug.d.ts.map +0 -1
- package/dist/content/slug.js +0 -21
- package/dist/content/toc-click-pin.d.ts.map +0 -1
- package/dist/content/toc-click-pin.js +0 -111
- package/dist/content/toc-spy.d.ts.map +0 -1
- package/dist/content/toc.d.ts +0 -50
- package/dist/content/toc.d.ts.map +0 -1
- package/dist/content/toc.js +0 -136
- package/dist/content/toc.module.css +0 -54
- package/dist/content/toc.module.css.d.ts +0 -13
- package/dist/content/url-hardening.d.ts +0 -23
- package/dist/content/url-hardening.d.ts.map +0 -1
- package/dist/content/url-hardening.js +0 -25
- package/dist/controls/actions.d.ts +0 -250
- package/dist/controls/actions.d.ts.map +0 -1
- package/dist/controls/actions.js +0 -466
- package/dist/controls/actions.module.css +0 -75
- package/dist/controls/actions.module.css.d.ts +0 -14
- package/dist/controls/control-group.d.ts +0 -19
- package/dist/controls/control-group.d.ts.map +0 -1
- package/dist/controls/control-group.js +0 -27
- package/dist/controls/control-name.d.ts +0 -27
- package/dist/controls/control-name.d.ts.map +0 -1
- package/dist/controls/control-name.js +0 -11
- package/dist/controls/controls.module.css +0 -549
- package/dist/controls/controls.module.css.d.ts +0 -35
- package/dist/controls/enum-filter.d.ts +0 -40
- package/dist/controls/enum-filter.d.ts.map +0 -1
- package/dist/controls/enum-filter.js +0 -109
- package/dist/controls/filter-base.d.ts +0 -30
- package/dist/controls/filter-base.d.ts.map +0 -1
- package/dist/controls/filter-context.d.ts +0 -74
- package/dist/controls/filter-context.d.ts.map +0 -1
- package/dist/controls/filter-context.js +0 -73
- package/dist/controls/filter-pill.d.ts +0 -62
- package/dist/controls/filter-pill.d.ts.map +0 -1
- package/dist/controls/filter-pill.js +0 -103
- package/dist/controls/filter-sheet.d.ts +0 -25
- package/dist/controls/filter-sheet.d.ts.map +0 -1
- package/dist/controls/filter-sheet.js +0 -33
- package/dist/controls/form-layout.d.ts +0 -162
- package/dist/controls/form-layout.d.ts.map +0 -1
- package/dist/controls/form-layout.js +0 -172
- package/dist/controls/form-layout.module.css +0 -268
- package/dist/controls/form-layout.module.css.d.ts +0 -22
- package/dist/controls/glyphs.d.ts +0 -37
- package/dist/controls/glyphs.d.ts.map +0 -1
- package/dist/controls/glyphs.js +0 -63
- package/dist/controls/multi-select-filter.d.ts +0 -45
- package/dist/controls/multi-select-filter.d.ts.map +0 -1
- package/dist/controls/multi-select-filter.js +0 -204
- package/dist/controls/number-filter.d.ts +0 -23
- package/dist/controls/number-filter.d.ts.map +0 -1
- package/dist/controls/number-filter.js +0 -195
- package/dist/controls/panel-row.d.ts +0 -129
- package/dist/controls/panel-row.d.ts.map +0 -1
- package/dist/controls/panel-row.js +0 -176
- package/dist/controls/panel-row.module.css +0 -86
- package/dist/controls/panel-row.module.css.d.ts +0 -13
- package/dist/controls/range-filter.d.ts +0 -45
- package/dist/controls/range-filter.d.ts.map +0 -1
- package/dist/controls/range-filter.js +0 -139
- package/dist/controls/search-filter.d.ts +0 -15
- package/dist/controls/search-filter.d.ts.map +0 -1
- package/dist/controls/search-filter.js +0 -135
- package/dist/controls/select-filter.d.ts +0 -63
- package/dist/controls/select-filter.d.ts.map +0 -1
- package/dist/controls/select-filter.js +0 -14
- package/dist/controls/sync-button.d.ts +0 -36
- package/dist/controls/sync-button.d.ts.map +0 -1
- package/dist/controls/sync-button.js +0 -118
- package/dist/controls/sync-button.module.css +0 -96
- package/dist/controls/sync-button.module.css.d.ts +0 -12
- package/dist/controls/toggle-filter.d.ts +0 -11
- package/dist/controls/toggle-filter.d.ts.map +0 -1
- package/dist/controls/toggle-filter.js +0 -60
- package/dist/controls/uncontrolled.d.ts +0 -12
- package/dist/controls/uncontrolled.d.ts.map +0 -1
- package/dist/controls-dates/date-range-picker.d.ts +0 -4
- package/dist/controls-dates/date-range-picker.d.ts.map +0 -1
- package/dist/controls-dates/date-range-picker.js +0 -23
- package/dist/controls-dates/index.d.ts +0 -8
- package/dist/controls-dates/index.d.ts.map +0 -1
- package/dist/controls-dates/index.js +0 -4
- package/dist/dashboard/bar-list.d.ts +0 -48
- package/dist/dashboard/bar-list.d.ts.map +0 -1
- package/dist/dashboard/bar-list.js +0 -117
- package/dist/dashboard/bar-list.module.css +0 -258
- package/dist/dashboard/bar-list.module.css.d.ts +0 -20
- package/dist/dashboard/board-nav.d.ts +0 -22
- package/dist/dashboard/board-nav.d.ts.map +0 -1
- package/dist/dashboard/board-nav.js +0 -49
- package/dist/dashboard/board.d.ts +0 -52
- package/dist/dashboard/board.d.ts.map +0 -1
- package/dist/dashboard/board.js +0 -247
- package/dist/dashboard/board.module.css +0 -179
- package/dist/dashboard/board.module.css.d.ts +0 -28
- package/dist/dashboard/delta-badge.d.ts +0 -24
- package/dist/dashboard/delta-badge.d.ts.map +0 -1
- package/dist/dashboard/delta-badge.js +0 -41
- package/dist/dashboard/empty-state.d.ts +0 -23
- package/dist/dashboard/empty-state.d.ts.map +0 -1
- package/dist/dashboard/empty-state.js +0 -82
- package/dist/dashboard/event-list-model.d.ts +0 -54
- package/dist/dashboard/event-list-model.d.ts.map +0 -1
- package/dist/dashboard/event-list-model.js +0 -76
- package/dist/dashboard/event-list-rows.d.ts +0 -23
- package/dist/dashboard/event-list-rows.d.ts.map +0 -1
- package/dist/dashboard/event-list-rows.js +0 -89
- package/dist/dashboard/event-list-scroll.d.ts +0 -55
- package/dist/dashboard/event-list-scroll.d.ts.map +0 -1
- package/dist/dashboard/event-list-scroll.js +0 -216
- package/dist/dashboard/event-list-skeleton.d.ts +0 -10
- package/dist/dashboard/event-list-skeleton.d.ts.map +0 -1
- package/dist/dashboard/event-list-skeleton.js +0 -34
- package/dist/dashboard/event-list.d.ts +0 -65
- package/dist/dashboard/event-list.d.ts.map +0 -1
- package/dist/dashboard/event-list.js +0 -208
- package/dist/dashboard/event-list.module.css +0 -336
- package/dist/dashboard/event-list.module.css.d.ts +0 -34
- package/dist/dashboard/index.d.ts +0 -15
- package/dist/dashboard/index.d.ts.map +0 -1
- package/dist/dashboard/index.js +0 -28
- package/dist/dashboard/meter-model.d.ts +0 -300
- package/dist/dashboard/meter-model.d.ts.map +0 -1
- package/dist/dashboard/meter-model.js +0 -484
- package/dist/dashboard/meter-parts.d.ts +0 -61
- package/dist/dashboard/meter-parts.d.ts.map +0 -1
- package/dist/dashboard/meter-parts.js +0 -684
- package/dist/dashboard/meter.d.ts +0 -144
- package/dist/dashboard/meter.d.ts.map +0 -1
- package/dist/dashboard/meter.js +0 -89
- package/dist/dashboard/meter.module.css +0 -470
- package/dist/dashboard/meter.module.css.d.ts +0 -47
- package/dist/dashboard/page-summary.d.ts +0 -20
- package/dist/dashboard/page-summary.d.ts.map +0 -1
- package/dist/dashboard/page-summary.js +0 -33
- package/dist/dashboard/page-summary.module.css +0 -92
- package/dist/dashboard/page-summary.module.css.d.ts +0 -15
- package/dist/dashboard/query-state.d.ts +0 -148
- package/dist/dashboard/query-state.d.ts.map +0 -1
- package/dist/dashboard/query-state.js +0 -217
- package/dist/dashboard/scale.d.ts +0 -9
- package/dist/dashboard/scale.d.ts.map +0 -1
- package/dist/dashboard/scale.js +0 -10
- package/dist/dashboard/section.d.ts +0 -95
- package/dist/dashboard/section.d.ts.map +0 -1
- package/dist/dashboard/section.js +0 -162
- package/dist/dashboard/section.module.css +0 -134
- package/dist/dashboard/section.module.css.d.ts +0 -12
- package/dist/dashboard/settings-section.d.ts +0 -39
- package/dist/dashboard/settings-section.d.ts.map +0 -1
- package/dist/dashboard/settings-section.js +0 -113
- package/dist/dashboard/settings-section.module.css +0 -54
- package/dist/dashboard/settings-section.module.css.d.ts +0 -12
- package/dist/dashboard/stat-card-parts.d.ts +0 -46
- package/dist/dashboard/stat-card-parts.d.ts.map +0 -1
- package/dist/dashboard/stat-card-parts.js +0 -75
- package/dist/dashboard/stat-card.d.ts +0 -141
- package/dist/dashboard/stat-card.d.ts.map +0 -1
- package/dist/dashboard/stat-card.js +0 -281
- package/dist/dashboard/stat-card.module.css +0 -508
- package/dist/dashboard/stat-card.module.css.d.ts +0 -39
- package/dist/dashboard/stat-group.d.ts +0 -56
- package/dist/dashboard/stat-group.d.ts.map +0 -1
- package/dist/dashboard/stat-group.js +0 -47
- package/dist/dashboard/stat-group.module.css +0 -124
- package/dist/dashboard/stat-group.module.css.d.ts +0 -9
- package/dist/dashboard/stat-strip.d.ts +0 -93
- package/dist/dashboard/stat-strip.d.ts.map +0 -1
- package/dist/dashboard/stat-strip.js +0 -273
- package/dist/dashboard/stat-strip.module.css +0 -395
- package/dist/dashboard/stat-strip.module.css.d.ts +0 -41
- package/dist/dashboard/visual-slot.d.ts +0 -16
- package/dist/dashboard/visual-slot.d.ts.map +0 -1
- package/dist/dashboard/visual-slot.js +0 -11
- package/dist/dashboard/widget-header.d.ts +0 -142
- package/dist/dashboard/widget-header.d.ts.map +0 -1
- package/dist/dashboard/widget-header.js +0 -219
- package/dist/dashboard/widget-header.module.css +0 -486
- package/dist/dashboard/widget-header.module.css.d.ts +0 -27
- package/dist/dev-dock.d.ts +0 -26
- package/dist/dev-dock.d.ts.map +0 -1
- package/dist/dev-dock.js +0 -90
- package/dist/format/date.d.ts +0 -61
- package/dist/format/date.d.ts.map +0 -1
- package/dist/format/date.js +0 -144
- package/dist/format/index.d.ts +0 -25
- package/dist/format/index.d.ts.map +0 -1
- package/dist/format/index.js +0 -22
- package/dist/format/measure.d.ts +0 -15
- package/dist/format/measure.d.ts.map +0 -1
- package/dist/format/measure.js +0 -27
- package/dist/forms/create-form.d.ts +0 -31
- package/dist/forms/create-form.d.ts.map +0 -1
- package/dist/forms/create-form.js +0 -18
- package/dist/forms/field.d.ts +0 -86
- package/dist/forms/field.d.ts.map +0 -1
- package/dist/forms/field.js +0 -10
- package/dist/forms/form-state.d.ts +0 -42
- package/dist/forms/form-state.d.ts.map +0 -1
- package/dist/forms/form-state.js +0 -26
- package/dist/forms/index.d.ts +0 -18
- package/dist/forms/index.d.ts.map +0 -1
- package/dist/forms/index.js +0 -7
- package/dist/guard/fonts-hint.d.ts +0 -3
- package/dist/guard/fonts-hint.d.ts.map +0 -1
- package/dist/guard/fonts-hint.js +0 -4
- package/dist/guard/guard-hook.d.ts +0 -40
- package/dist/guard/guard-hook.d.ts.map +0 -1
- package/dist/guard/guard-hook.js +0 -57
- package/dist/guard/index.d.ts +0 -431
- package/dist/guard/index.d.ts.map +0 -1
- package/dist/guard/index.js +0 -1313
- package/dist/guard/palette.d.ts +0 -51
- package/dist/guard/palette.d.ts.map +0 -1
- package/dist/guard/palette.js +0 -190
- package/dist/guard/series-file.d.ts +0 -15
- package/dist/guard/series-file.d.ts.map +0 -1
- package/dist/guard/series-file.js +0 -29
- package/dist/guard/types.d.ts +0 -181
- package/dist/guard/types.d.ts.map +0 -1
- package/dist/guard/vx-names.d.ts +0 -3
- package/dist/guard/vx-names.d.ts.map +0 -1
- package/dist/guard/vx-names.js +0 -228
- package/dist/provider/create-router.d.ts +0 -96
- package/dist/provider/create-router.d.ts.map +0 -1
- package/dist/provider/create-router.js +0 -55
- package/dist/provider/error-fallback.module.css +0 -10
- package/dist/provider/error-fallback.module.css.d.ts +0 -8
- package/dist/provider/fallback.module.css +0 -37
- package/dist/provider/fallback.module.css.d.ts +0 -11
- package/dist/provider/hotkeys.d.ts +0 -4
- package/dist/provider/hotkeys.d.ts.map +0 -1
- package/dist/provider/hotkeys.js +0 -45
- package/dist/provider/index.d.ts +0 -120
- package/dist/provider/index.d.ts.map +0 -1
- package/dist/provider/index.js +0 -335
- package/dist/provider/lab-theme.d.ts +0 -40
- package/dist/provider/lab-theme.d.ts.map +0 -1
- package/dist/provider/lab-theme.js +0 -51
- package/dist/provider/modals-mount.d.ts +0 -16
- package/dist/provider/modals-mount.d.ts.map +0 -1
- package/dist/provider/modals-mount.js +0 -42
- package/dist/provider/notifier.d.ts +0 -22
- package/dist/provider/notifier.d.ts.map +0 -1
- package/dist/provider/notifier.js +0 -36
- package/dist/provider/route-defaults.d.ts +0 -10
- package/dist/provider/route-defaults.d.ts.map +0 -1
- package/dist/provider/route-defaults.js +0 -25
- package/dist/provider/route-defaults.module.css +0 -39
- package/dist/provider/route-defaults.module.css.d.ts +0 -10
- package/dist/provider/route-transition.d.ts +0 -76
- package/dist/provider/route-transition.d.ts.map +0 -1
- package/dist/provider/route-transition.js +0 -98
- package/dist/provider/slots.d.ts +0 -25
- package/dist/provider/slots.d.ts.map +0 -1
- package/dist/provider/slots.js +0 -29
- package/dist/provider/spotlight-actions.d.ts +0 -11
- package/dist/provider/spotlight-actions.d.ts.map +0 -1
- package/dist/provider/spotlight-actions.js +0 -56
- package/dist/provider/spotlight-mount.d.ts +0 -3
- package/dist/provider/spotlight-mount.d.ts.map +0 -1
- package/dist/provider/spotlight-mount.js +0 -26
- package/dist/provider/test-router.d.ts +0 -7
- package/dist/provider/test-router.d.ts.map +0 -1
- package/dist/provider/test-router.js +0 -17
- package/dist/query-client.d.ts +0 -9
- package/dist/query-client.d.ts.map +0 -1
- package/dist/query-client.js +0 -30
- package/dist/router-tanstack/index.d.ts +0 -36
- package/dist/router-tanstack/index.d.ts.map +0 -1
- package/dist/router-tanstack/index.js +0 -18
- package/dist/router-tanstack/nav-stash.d.ts +0 -24
- package/dist/router-tanstack/nav-stash.d.ts.map +0 -1
- package/dist/router-tanstack/nav-stash.js +0 -23
- package/dist/router-tanstack/nav.d.ts +0 -169
- package/dist/router-tanstack/nav.d.ts.map +0 -1
- package/dist/router-tanstack/nav.js +0 -35
- package/dist/router-tanstack/search-store-warnings.d.ts +0 -33
- package/dist/router-tanstack/search-store-warnings.d.ts.map +0 -1
- package/dist/router-tanstack/search-store-warnings.js +0 -77
- package/dist/router-tanstack/search-store.d.ts +0 -86
- package/dist/router-tanstack/search-store.d.ts.map +0 -1
- package/dist/router-tanstack/search-store.js +0 -303
- package/dist/router-tanstack/use-nav.d.ts +0 -29
- package/dist/router-tanstack/use-nav.d.ts.map +0 -1
- package/dist/router-tanstack/use-nav.js +0 -149
- package/dist/shell/account-types.d.ts +0 -121
- package/dist/shell/account-types.d.ts.map +0 -1
- package/dist/shell/app-brand.d.ts +0 -13
- package/dist/shell/app-brand.d.ts.map +0 -1
- package/dist/shell/app-brand.js +0 -95
- package/dist/shell/app-brand.module.css +0 -142
- package/dist/shell/app-brand.module.css.d.ts +0 -14
- package/dist/shell/app-breadcrumbs.d.ts +0 -15
- package/dist/shell/app-breadcrumbs.d.ts.map +0 -1
- package/dist/shell/app-breadcrumbs.js +0 -52
- package/dist/shell/app-header.module.css +0 -171
- package/dist/shell/app-header.module.css.d.ts +0 -12
- package/dist/shell/app-main.module.css +0 -215
- package/dist/shell/app-main.module.css.d.ts +0 -12
- package/dist/shell/app-mobile-nav.d.ts +0 -33
- package/dist/shell/app-mobile-nav.d.ts.map +0 -1
- package/dist/shell/app-mobile-nav.js +0 -511
- package/dist/shell/app-mobile-nav.module.css +0 -429
- package/dist/shell/app-mobile-nav.module.css.d.ts +0 -24
- package/dist/shell/app-sidebar-account.d.ts +0 -4
- package/dist/shell/app-sidebar-account.d.ts.map +0 -1
- package/dist/shell/app-sidebar-account.js +0 -123
- package/dist/shell/app-sidebar.d.ts +0 -82
- package/dist/shell/app-sidebar.d.ts.map +0 -1
- package/dist/shell/app-sidebar.js +0 -361
- package/dist/shell/app-sidebar.module.css +0 -812
- package/dist/shell/app-sidebar.module.css.d.ts +0 -50
- package/dist/shell/aside-docking.d.ts +0 -31
- package/dist/shell/aside-docking.d.ts.map +0 -1
- package/dist/shell/aside-docking.js +0 -19
- package/dist/shell/mobile-nav-model.d.ts +0 -71
- package/dist/shell/mobile-nav-model.d.ts.map +0 -1
- package/dist/shell/mobile-nav-model.js +0 -287
- package/dist/shell/nav-count-badge.d.ts +0 -13
- package/dist/shell/nav-count-badge.d.ts.map +0 -1
- package/dist/shell/nav-count-badge.js +0 -31
- package/dist/shell/nav-glyph.d.ts +0 -14
- package/dist/shell/nav-glyph.d.ts.map +0 -1
- package/dist/shell/nav-glyph.js +0 -21
- package/dist/shell/nav-types.d.ts +0 -220
- package/dist/shell/nav-types.d.ts.map +0 -1
- package/dist/shell/page-aside.d.ts +0 -64
- package/dist/shell/page-aside.d.ts.map +0 -1
- package/dist/shell/page-aside.js +0 -226
- package/dist/shell/page-aside.module.css +0 -176
- package/dist/shell/page-aside.module.css.d.ts +0 -14
- package/dist/shell/page-bar.d.ts +0 -134
- package/dist/shell/page-bar.d.ts.map +0 -1
- package/dist/shell/page-bar.js +0 -273
- package/dist/shell/page-bar.module.css +0 -256
- package/dist/shell/page-bar.module.css.d.ts +0 -20
- package/dist/shell/page-title.d.ts +0 -14
- package/dist/shell/page-title.d.ts.map +0 -1
- package/dist/shell/page-title.js +0 -25
- package/dist/shell/page-title.module.css +0 -35
- package/dist/shell/page-title.module.css.d.ts +0 -11
- package/dist/shell/sidebar-block-model.d.ts +0 -48
- package/dist/shell/sidebar-block-model.d.ts.map +0 -1
- package/dist/shell/sidebar-block-model.js +0 -43
- package/dist/shell/sidebar-blocks.d.ts +0 -33
- package/dist/shell/sidebar-blocks.d.ts.map +0 -1
- package/dist/shell/sidebar-blocks.js +0 -177
- package/dist/shell/sidebar-search.d.ts +0 -26
- package/dist/shell/sidebar-search.d.ts.map +0 -1
- package/dist/shell/sidebar-search.js +0 -98
- package/dist/shell/sidebar-search.module.css +0 -102
- package/dist/shell/sidebar-search.module.css.d.ts +0 -13
- package/dist/shell/use-size-class.d.ts +0 -6
- package/dist/shell/use-size-class.d.ts.map +0 -1
- package/dist/shell/use-size-class.js +0 -19
- package/dist/state/fields.d.ts +0 -622
- package/dist/state/fields.d.ts.map +0 -1
- package/dist/state/fields.js +0 -460
- package/dist/state/persisted-or-local.d.ts +0 -12
- package/dist/state/persisted-or-local.d.ts.map +0 -1
- package/dist/state/persisted-or-local.js +0 -25
- package/dist/state/persisted.d.ts +0 -70
- package/dist/state/persisted.d.ts.map +0 -1
- package/dist/state/persisted.js +0 -153
- package/dist/state.d.ts +0 -16
- package/dist/state.d.ts.map +0 -1
- package/dist/state.js +0 -14
- package/dist/styles.css +0 -477
- package/dist/table/cell-kinds.d.ts +0 -47
- package/dist/table/cell-kinds.d.ts.map +0 -1
- package/dist/table/cell-kinds.js +0 -180
- package/dist/table/cell-kinds.module.css +0 -55
- package/dist/table/cell-kinds.module.css.d.ts +0 -15
- package/dist/table/data-table-fold.d.ts +0 -155
- package/dist/table/data-table-fold.d.ts.map +0 -1
- package/dist/table/data-table-fold.js +0 -320
- package/dist/table/data-table-state.d.ts +0 -90
- package/dist/table/data-table-state.d.ts.map +0 -1
- package/dist/table/data-table-state.js +0 -145
- package/dist/table/data-table.d.ts +0 -538
- package/dist/table/data-table.d.ts.map +0 -1
- package/dist/table/data-table.js +0 -1044
- package/dist/table/data-table.module.css +0 -474
- package/dist/table/data-table.module.css.d.ts +0 -41
- package/dist/table/query-branch.d.ts +0 -28
- package/dist/table/query-branch.d.ts.map +0 -1
- package/dist/table/query-branch.js +0 -10
- package/dist/table/table-features.d.ts +0 -99
- package/dist/table/table-features.d.ts.map +0 -1
- package/dist/table/table-features.js +0 -59
- package/dist/telemetry.d.ts +0 -165
- package/dist/telemetry.d.ts.map +0 -1
- package/dist/telemetry.js +0 -61
- package/dist/theme/card-inset.module.css +0 -111
- package/dist/theme/card-inset.module.css.d.ts +0 -9
- package/dist/theme/chrome-vars.d.ts +0 -109
- package/dist/theme/chrome-vars.d.ts.map +0 -1
- package/dist/theme/chrome-vars.js +0 -89
- package/dist/theme/controls.module.css +0 -433
- package/dist/theme/controls.module.css.d.ts +0 -20
- package/dist/theme/ctl-theme.d.ts +0 -33
- package/dist/theme/ctl-theme.d.ts.map +0 -1
- package/dist/theme/ctl-theme.js +0 -54
- package/dist/theme/extend.d.ts +0 -18
- package/dist/theme/extend.d.ts.map +0 -1
- package/dist/theme/extend.js +0 -6
- package/dist/theme/floating.module.css +0 -72
- package/dist/theme/floating.module.css.d.ts +0 -12
- package/dist/theme/icon-slot.d.ts +0 -44
- package/dist/theme/icon-slot.d.ts.map +0 -1
- package/dist/theme/icon-slot.js +0 -21
- package/dist/theme/icon-slot.module.css +0 -47
- package/dist/theme/icon-slot.module.css.d.ts +0 -8
- package/dist/theme/index.d.ts +0 -132
- package/dist/theme/index.d.ts.map +0 -1
- package/dist/theme/index.js +0 -1112
- package/dist/theme/nav-link.module.css +0 -85
- package/dist/theme/nav-link.module.css.d.ts +0 -8
- package/dist/theme/segmented-control.module.css +0 -80
- package/dist/theme/segmented-control.module.css.d.ts +0 -10
- package/dist/theme/status-dot.d.ts +0 -7
- package/dist/theme/status-dot.d.ts.map +0 -1
- package/dist/theme/status-dot.js +0 -18
- package/dist/theme/status-dot.module.css +0 -9
- package/dist/theme/status-dot.module.css.d.ts +0 -8
- package/dist/theme/status-verdict.d.ts +0 -10
- package/dist/theme/status-verdict.d.ts.map +0 -1
- package/dist/theme/status-verdict.js +0 -22
- package/dist/theme/status-verdict.module.css +0 -25
- package/dist/theme/status-verdict.module.css.d.ts +0 -9
- package/dist/theme/theme-toggle.d.ts +0 -9
- package/dist/theme/theme-toggle.d.ts.map +0 -1
- package/dist/theme/theme-toggle.js +0 -136
- package/dist/theme/theme-toggle.module.css +0 -30
- package/dist/theme/theme-toggle.module.css.d.ts +0 -10
- package/dist/theme/timeline.module.css +0 -29
- package/dist/theme/timeline.module.css.d.ts +0 -9
- package/dist/theme/use-basalt-spacing.d.ts +0 -3
- package/dist/theme/use-basalt-spacing.d.ts.map +0 -1
- package/dist/theme/use-basalt-spacing.js +0 -8
- package/dist/theme-lab/boot.d.ts +0 -66
- package/dist/theme-lab/boot.d.ts.map +0 -1
- package/dist/theme-lab/boot.js +0 -82
- package/dist/theme-lab/derive-controls.d.ts +0 -13
- package/dist/theme-lab/derive-controls.d.ts.map +0 -1
- package/dist/theme-lab/derive-controls.js +0 -139
- package/dist/theme-lab/derive-state.d.ts +0 -55
- package/dist/theme-lab/derive-state.d.ts.map +0 -1
- package/dist/theme-lab/derive-state.js +0 -82
- package/dist/theme-lab/index.d.ts +0 -30
- package/dist/theme-lab/index.d.ts.map +0 -1
- package/dist/theme-lab/index.js +0 -154
- package/dist/unwrap.d.ts +0 -29
- package/dist/unwrap.d.ts.map +0 -1
- package/dist/unwrap.js +0 -18
- package/dist/vite-boot.d.ts +0 -25
- package/dist/vite-boot.d.ts.map +0 -1
- package/dist/vite-boot.js +0 -36
- package/dist/vite-color-mix.d.ts +0 -30
- package/dist/vite-color-mix.d.ts.map +0 -1
- package/dist/vite-color-mix.js +0 -80
- package/dist/vite.d.ts +0 -203
- package/dist/vite.d.ts.map +0 -1
- package/dist/vite.js +0 -477
- package/src/agent/ai-sdk-transport.ts +0 -469
- package/src/agent/chat/composer.tsx +0 -648
- package/src/agent/chat/message-affordances.ts +0 -64
- package/src/agent/chat/thread-feed-row.tsx +0 -352
- package/src/agent/chat/thread-feed.tsx +0 -219
- package/src/agent/chat/thread-message.tsx +0 -823
- package/src/agent/chat/thread-outcome-card.tsx +0 -180
- package/src/agent/chat/tool-chip.tsx +0 -225
- package/src/agent/chat/use-keyboard-inset.ts +0 -68
- package/src/agent/chat/virtualize.ts +0 -180
- package/src/agent/coalesce.ts +0 -229
- package/src/agent/error.ts +0 -58
- package/src/agent/foreign.ts +0 -141
- package/src/agent/history.ts +0 -25
- package/src/agent/id.ts +0 -160
- package/src/agent/index.ts +0 -35
- package/src/agent/merge.ts +0 -114
- package/src/agent/outcome.ts +0 -67
- package/src/agent/part-list.tsx +0 -373
- package/src/agent/parts.ts +0 -428
- package/src/agent/run-committer.ts +0 -64
- package/src/agent/run-records.ts +0 -171
- package/src/agent/stick-to-bottom.tsx +0 -153
- package/src/agent/thread.ts +0 -129
- package/src/agent/transport.ts +0 -95
- package/src/agent/use-agent-thread-runs.ts +0 -968
- package/src/charts/BandStrip.tsx +0 -520
- package/src/charts/Bars.tsx +0 -238
- package/src/charts/CartesianChart.tsx +0 -244
- package/src/charts/ChartCard.tsx +0 -474
- package/src/charts/Donut.tsx +0 -264
- package/src/charts/DualPanel.tsx +0 -370
- package/src/charts/Heatmap.tsx +0 -444
- package/src/charts/Lines.tsx +0 -160
- package/src/charts/MirroredBars.tsx +0 -348
- package/src/charts/Sparkline.tsx +0 -957
- package/src/charts/StackedArea.tsx +0 -101
- package/src/charts/band-fold.ts +0 -107
- package/src/charts/chart-card.module.css +0 -142
- package/src/charts/chart-card.module.css.d.ts +0 -20
- package/src/charts/compile.ts +0 -1438
- package/src/charts/cursor.ts +0 -394
- package/src/charts/donut.module.css +0 -54
- package/src/charts/donut.module.css.d.ts +0 -9
- package/src/charts/panel.tsx +0 -245
- package/src/charts/scales.ts +0 -287
- package/src/charts/sparkline.module.css +0 -166
- package/src/charts/sparkline.module.css.d.ts +0 -16
- package/src/charts/theme.ts +0 -65
- package/src/charts/ticks.ts +0 -61
- package/src/cli/audit-allows.ts +0 -348
- package/src/cli/check-theme.ts +0 -244
- package/src/cli/doctor-upgrade.ts +0 -737
- package/src/cli/doctor.ts +0 -488
- package/src/cli/guard-hook.ts +0 -82
- package/src/cli/init.ts +0 -495
- package/src/cli/provider-tags.ts +0 -38
- package/src/cli/render-imports.ts +0 -104
- package/src/cli/sync.ts +0 -342
- package/src/commands/ShortcutsHelp.tsx +0 -135
- package/src/commands/command-stash.ts +0 -44
- package/src/commands/define-commands.ts +0 -150
- package/src/commands/define-overlays.ts +0 -364
- package/src/commands/index.ts +0 -28
- package/src/commands/notifications/bell.tsx +0 -125
- package/src/commands/notifications/center.tsx +0 -248
- package/src/commands/notifications/define-notifications.ts +0 -211
- package/src/commands/notifications/notify.tsx +0 -158
- package/src/commands/notifications/store.ts +0 -302
- package/src/commands/projectors.ts +0 -47
- package/src/commands/shell-bridge.ts +0 -86
- package/src/commands/shortcut-format.ts +0 -123
- package/src/common/could-not-load.ts +0 -22
- package/src/common/index.ts +0 -17
- package/src/common/motion.ts +0 -26
- package/src/common/query-state-like.ts +0 -64
- package/src/common/refs.ts +0 -58
- package/src/common/use-measured-widths.ts +0 -91
- package/src/common/virtual-rows.tsx +0 -682
- package/src/common/vx-families.ts +0 -36
- package/src/common/vx-family.ts +0 -22
- package/src/content/article-layout.module.css +0 -183
- package/src/content/article-layout.module.css.d.ts +0 -23
- package/src/content/article-layout.tsx +0 -221
- package/src/content/article-model.ts +0 -27
- package/src/content/callout-alert.ts +0 -88
- package/src/content/callout.module.css +0 -89
- package/src/content/callout.module.css.d.ts +0 -17
- package/src/content/callout.tsx +0 -115
- package/src/content/code-block.module.css +0 -135
- package/src/content/code-block.module.css.d.ts +0 -14
- package/src/content/copy-action.tsx +0 -79
- package/src/content/fence-block.tsx +0 -265
- package/src/content/glyphs.tsx +0 -53
- package/src/content/guide.module.css +0 -62
- package/src/content/guide.module.css.d.ts +0 -13
- package/src/content/guide.tsx +0 -184
- package/src/content/heading-anchor.tsx +0 -65
- package/src/content/heading-components.tsx +0 -83
- package/src/content/mermaid-sanitize.ts +0 -49
- package/src/content/mermaid.module.css +0 -20
- package/src/content/mermaid.module.css.d.ts +0 -8
- package/src/content/prose.module.css +0 -346
- package/src/content/prose.module.css.d.ts +0 -12
- package/src/content/prose.tsx +0 -53
- package/src/content/reading-progress.module.css +0 -24
- package/src/content/reading-progress.module.css.d.ts +0 -9
- package/src/content/reading-progress.tsx +0 -92
- package/src/content/slug.ts +0 -46
- package/src/content/toc-click-pin.ts +0 -156
- package/src/content/toc.module.css +0 -54
- package/src/content/toc.module.css.d.ts +0 -13
- package/src/content/toc.tsx +0 -220
- package/src/content/url-hardening.ts +0 -52
- package/src/controls/actions.module.css +0 -75
- package/src/controls/actions.module.css.d.ts +0 -14
- package/src/controls/actions.tsx +0 -969
- package/src/controls/control-group.tsx +0 -70
- package/src/controls/control-name.ts +0 -33
- package/src/controls/controls.module.css +0 -549
- package/src/controls/controls.module.css.d.ts +0 -35
- package/src/controls/enum-filter.tsx +0 -188
- package/src/controls/filter-base.ts +0 -31
- package/src/controls/filter-context.tsx +0 -179
- package/src/controls/filter-pill.tsx +0 -203
- package/src/controls/filter-sheet.tsx +0 -79
- package/src/controls/form-layout.module.css +0 -268
- package/src/controls/form-layout.module.css.d.ts +0 -22
- package/src/controls/form-layout.tsx +0 -416
- package/src/controls/glyphs.tsx +0 -114
- package/src/controls/multi-select-filter.tsx +0 -316
- package/src/controls/number-filter.tsx +0 -364
- package/src/controls/panel-row.module.css +0 -86
- package/src/controls/panel-row.module.css.d.ts +0 -13
- package/src/controls/panel-row.tsx +0 -391
- package/src/controls/range-filter.tsx +0 -256
- package/src/controls/search-filter.tsx +0 -200
- package/src/controls/select-filter.tsx +0 -84
- package/src/controls/sync-button.module.css +0 -96
- package/src/controls/sync-button.module.css.d.ts +0 -12
- package/src/controls/sync-button.tsx +0 -211
- package/src/controls/toggle-filter.tsx +0 -83
- package/src/controls/uncontrolled.ts +0 -12
- package/src/controls-dates/date-range-picker.tsx +0 -49
- package/src/controls-dates/index.ts +0 -7
- package/src/dashboard/bar-list.module.css +0 -258
- package/src/dashboard/bar-list.module.css.d.ts +0 -20
- package/src/dashboard/bar-list.tsx +0 -254
- package/src/dashboard/board-nav.ts +0 -67
- package/src/dashboard/board.module.css +0 -179
- package/src/dashboard/board.module.css.d.ts +0 -28
- package/src/dashboard/board.tsx +0 -415
- package/src/dashboard/delta-badge.tsx +0 -103
- package/src/dashboard/empty-state.tsx +0 -128
- package/src/dashboard/event-list-model.ts +0 -125
- package/src/dashboard/event-list-rows.tsx +0 -117
- package/src/dashboard/event-list-scroll.ts +0 -291
- package/src/dashboard/event-list-skeleton.tsx +0 -62
- package/src/dashboard/event-list.module.css +0 -336
- package/src/dashboard/event-list.module.css.d.ts +0 -34
- package/src/dashboard/event-list.tsx +0 -336
- package/src/dashboard/index.ts +0 -14
- package/src/dashboard/meter-model.ts +0 -895
- package/src/dashboard/meter-parts.tsx +0 -1015
- package/src/dashboard/meter.module.css +0 -470
- package/src/dashboard/meter.module.css.d.ts +0 -47
- package/src/dashboard/meter.tsx +0 -311
- package/src/dashboard/page-summary.module.css +0 -92
- package/src/dashboard/page-summary.module.css.d.ts +0 -15
- package/src/dashboard/page-summary.tsx +0 -102
- package/src/dashboard/query-state.tsx +0 -409
- package/src/dashboard/scale.ts +0 -13
- package/src/dashboard/section.module.css +0 -134
- package/src/dashboard/section.module.css.d.ts +0 -12
- package/src/dashboard/section.tsx +0 -380
- package/src/dashboard/settings-section.module.css +0 -54
- package/src/dashboard/settings-section.module.css.d.ts +0 -12
- package/src/dashboard/settings-section.tsx +0 -183
- package/src/dashboard/stat-card-parts.tsx +0 -149
- package/src/dashboard/stat-card.module.css +0 -508
- package/src/dashboard/stat-card.module.css.d.ts +0 -39
- package/src/dashboard/stat-card.tsx +0 -622
- package/src/dashboard/stat-group.module.css +0 -124
- package/src/dashboard/stat-group.module.css.d.ts +0 -9
- package/src/dashboard/stat-group.tsx +0 -113
- package/src/dashboard/stat-strip.module.css +0 -395
- package/src/dashboard/stat-strip.module.css.d.ts +0 -41
- package/src/dashboard/stat-strip.tsx +0 -506
- package/src/dashboard/visual-slot.ts +0 -27
- package/src/dashboard/widget-header.module.css +0 -486
- package/src/dashboard/widget-header.module.css.d.ts +0 -27
- package/src/dashboard/widget-header.tsx +0 -479
- package/src/dev-dock.tsx +0 -149
- package/src/format/date.ts +0 -250
- package/src/format/index.ts +0 -24
- package/src/format/measure.ts +0 -42
- package/src/forms/create-form.ts +0 -57
- package/src/forms/field.ts +0 -134
- package/src/forms/form-state.tsx +0 -94
- package/src/forms/index.ts +0 -18
- package/src/guard/fonts-hint.ts +0 -2
- package/src/guard/guard-hook.ts +0 -129
- package/src/guard/index.ts +0 -2848
- package/src/guard/palette.ts +0 -261
- package/src/guard/series-file.ts +0 -51
- package/src/guard/types.ts +0 -211
- package/src/guard/vx-names.ts +0 -228
- package/src/provider/create-router.tsx +0 -168
- package/src/provider/error-fallback.module.css +0 -10
- package/src/provider/error-fallback.module.css.d.ts +0 -8
- package/src/provider/fallback.module.css +0 -37
- package/src/provider/fallback.module.css.d.ts +0 -11
- package/src/provider/hotkeys.ts +0 -62
- package/src/provider/index.tsx +0 -574
- package/src/provider/lab-theme.ts +0 -175
- package/src/provider/modals-mount.tsx +0 -66
- package/src/provider/notifier.ts +0 -52
- package/src/provider/route-defaults.module.css +0 -39
- package/src/provider/route-defaults.module.css.d.ts +0 -10
- package/src/provider/route-defaults.tsx +0 -39
- package/src/provider/route-transition.ts +0 -199
- package/src/provider/slots.ts +0 -59
- package/src/provider/spotlight-actions.tsx +0 -73
- package/src/provider/spotlight-mount.tsx +0 -33
- package/src/provider/test-router.tsx +0 -25
- package/src/query-client.ts +0 -41
- package/src/router-tanstack/index.ts +0 -51
- package/src/router-tanstack/nav-stash.ts +0 -41
- package/src/router-tanstack/nav.ts +0 -216
- package/src/router-tanstack/search-store-warnings.ts +0 -120
- package/src/router-tanstack/search-store.ts +0 -599
- package/src/router-tanstack/use-nav.ts +0 -283
- package/src/shell/account-types.ts +0 -122
- package/src/shell/app-brand.module.css +0 -142
- package/src/shell/app-brand.module.css.d.ts +0 -14
- package/src/shell/app-brand.tsx +0 -141
- package/src/shell/app-breadcrumbs.tsx +0 -104
- package/src/shell/app-header.module.css +0 -171
- package/src/shell/app-header.module.css.d.ts +0 -12
- package/src/shell/app-main.module.css +0 -215
- package/src/shell/app-main.module.css.d.ts +0 -12
- package/src/shell/app-mobile-nav.module.css +0 -429
- package/src/shell/app-mobile-nav.module.css.d.ts +0 -24
- package/src/shell/app-mobile-nav.tsx +0 -864
- package/src/shell/app-sidebar-account.tsx +0 -180
- package/src/shell/app-sidebar.module.css +0 -812
- package/src/shell/app-sidebar.module.css.d.ts +0 -50
- package/src/shell/app-sidebar.tsx +0 -626
- package/src/shell/aside-docking.ts +0 -54
- package/src/shell/index.tsx +0 -658
- package/src/shell/mobile-nav-model.ts +0 -521
- package/src/shell/nav-count-badge.tsx +0 -44
- package/src/shell/nav-glyph.tsx +0 -38
- package/src/shell/nav-types.ts +0 -232
- package/src/shell/page-aside.module.css +0 -176
- package/src/shell/page-aside.module.css.d.ts +0 -14
- package/src/shell/page-aside.tsx +0 -433
- package/src/shell/page-bar.module.css +0 -256
- package/src/shell/page-bar.module.css.d.ts +0 -20
- package/src/shell/page-bar.tsx +0 -598
- package/src/shell/page-title.module.css +0 -35
- package/src/shell/page-title.module.css.d.ts +0 -11
- package/src/shell/page-title.tsx +0 -57
- package/src/shell/sidebar-block-model.ts +0 -91
- package/src/shell/sidebar-blocks.tsx +0 -326
- package/src/shell/sidebar-search.module.css +0 -102
- package/src/shell/sidebar-search.module.css.d.ts +0 -13
- package/src/shell/sidebar-search.tsx +0 -154
- package/src/shell/use-size-class.ts +0 -33
- package/src/state/fields.ts +0 -1279
- package/src/state/persisted-or-local.ts +0 -56
- package/src/state/persisted.ts +0 -320
- package/src/state.ts +0 -25
- package/src/styles.css +0 -477
- package/src/table/cell-kinds.module.css +0 -55
- package/src/table/cell-kinds.module.css.d.ts +0 -15
- package/src/table/cell-kinds.tsx +0 -263
- package/src/table/data-table-fold.tsx +0 -567
- package/src/table/data-table-state.ts +0 -230
- package/src/table/data-table.module.css +0 -474
- package/src/table/data-table.module.css.d.ts +0 -41
- package/src/table/data-table.tsx +0 -2232
- package/src/table/query-branch.ts +0 -53
- package/src/table/table-features.ts +0 -142
- package/src/telemetry.ts +0 -236
- package/src/theme/__snapshots__/plain-theme.test.ts.snap +0 -2774
- package/src/theme/card-inset.module.css +0 -111
- package/src/theme/card-inset.module.css.d.ts +0 -9
- package/src/theme/chrome-vars.ts +0 -205
- package/src/theme/controls.module.css +0 -433
- package/src/theme/controls.module.css.d.ts +0 -20
- package/src/theme/ctl-theme.tsx +0 -169
- package/src/theme/extend.ts +0 -18
- package/src/theme/floating.module.css +0 -72
- package/src/theme/floating.module.css.d.ts +0 -12
- package/src/theme/icon-slot.module.css +0 -47
- package/src/theme/icon-slot.module.css.d.ts +0 -8
- package/src/theme/icon-slot.tsx +0 -59
- package/src/theme/index.ts +0 -1699
- package/src/theme/nav-link.module.css +0 -85
- package/src/theme/nav-link.module.css.d.ts +0 -8
- package/src/theme/segmented-control.module.css +0 -80
- package/src/theme/segmented-control.module.css.d.ts +0 -10
- package/src/theme/status-dot.module.css +0 -9
- package/src/theme/status-dot.module.css.d.ts +0 -8
- package/src/theme/status-dot.tsx +0 -31
- package/src/theme/status-verdict.module.css +0 -25
- package/src/theme/status-verdict.module.css.d.ts +0 -9
- package/src/theme/status-verdict.tsx +0 -36
- package/src/theme/theme-toggle.module.css +0 -30
- package/src/theme/theme-toggle.module.css.d.ts +0 -10
- package/src/theme/theme-toggle.tsx +0 -164
- package/src/theme/timeline.module.css +0 -29
- package/src/theme/timeline.module.css.d.ts +0 -9
- package/src/theme/use-basalt-spacing.ts +0 -40
- package/src/theme-lab/boot.ts +0 -140
- package/src/theme-lab/derive-controls.tsx +0 -231
- package/src/theme-lab/derive-state.ts +0 -164
- package/src/theme-lab/index.tsx +0 -229
- package/src/unwrap.ts +0 -44
- package/src/vite-boot.ts +0 -109
- package/src/vite-color-mix.ts +0 -137
- package/src/vite.ts +0 -899
- /package/dist/{agent/history.js → ai/contract.js} +0 -0
- /package/dist/{agent/outcome.js → astro/mdx/messages.js} +0 -0
- /package/dist/{controls/filter-base.js → cards/contract.js} +0 -0
- /package/dist/{controls/uncontrolled.js → charts/contract.js} +0 -0
- /package/dist/charts/{ticks.d.ts → core/ticks.d.ts} +0 -0
- /package/dist/charts/{heatmap-fill.d.ts → parts/heatmap-fill.d.ts} +0 -0
- /package/dist/charts/{heatmap-fill.js → parts/heatmap-fill.js} +0 -0
- /package/dist/{guard/types.js → content/contract.js} +0 -0
- /package/dist/{shell/account-types.js → controls/contract.js} +0 -0
- /package/dist/{shell/nav-types.js → core/mark-types.js} +0 -0
- /package/dist/{content → core}/slug.d.ts +0 -0
- /package/dist/{content → page}/toc-click-pin.d.ts +0 -0
- /package/dist/{content → page}/toc-spy.d.ts +0 -0
- /package/dist/{content → page}/toc-spy.js +0 -0
- /package/src/charts/{heatmap-fill.ts → parts/heatmap-fill.ts} +0 -0
- /package/src/{content → page}/toc-spy.ts +0 -0
package/src/table/data-table.tsx
DELETED
|
@@ -1,2232 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ./table — BasaltDataTable: a sortable data table over @tanstack/react-table v9, rendered with
|
|
3
|
-
* Mantine. Optional peer: @tanstack/react-table 9.2.8 (exact).
|
|
4
|
-
*
|
|
5
|
-
* Ships with opt-in chrome layered on top of the base sortable table: a filter/search toolbar
|
|
6
|
-
* (global search + faceted column Selects + an actions slot), a pagination bar ("Showing X–Y of N"
|
|
7
|
-
* + rows-per-page + Mantine Pagination, client-side or server-driven), and sticky column pinning.
|
|
8
|
-
* Every feature is opt-in via a boolean prop — a bare `<BasaltDataTable data columns />` renders
|
|
9
|
-
* exactly as before.
|
|
10
|
-
*
|
|
11
|
-
* @example
|
|
12
|
-
* import { BasaltDataTable, createColumnHelper } from 'basalt-ui/table'
|
|
13
|
-
*
|
|
14
|
-
* type Row = { name: string; age: number }
|
|
15
|
-
* const col = createColumnHelper<Row>()
|
|
16
|
-
* const columns = [
|
|
17
|
-
* col.accessor('name', { header: 'Name' }),
|
|
18
|
-
* col.accessor('age', { header: 'Age' }),
|
|
19
|
-
* ]
|
|
20
|
-
* <BasaltDataTable data={rows} columns={columns} />
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* // With the title, the toolbar + pagination bar:
|
|
24
|
-
* <BasaltDataTable
|
|
25
|
-
* title="Top pages"
|
|
26
|
-
* data={rows}
|
|
27
|
-
* columns={columns}
|
|
28
|
-
* enableGlobalFilter
|
|
29
|
-
* facets={[{ columnId: 'department', label: 'Department', options: departmentOptions }]}
|
|
30
|
-
* actions={<Button>Export</Button>}
|
|
31
|
-
* enablePagination
|
|
32
|
-
* />
|
|
33
|
-
*/
|
|
34
|
-
import {
|
|
35
|
-
ActionIcon,
|
|
36
|
-
Box,
|
|
37
|
-
Checkbox,
|
|
38
|
-
Group,
|
|
39
|
-
Pagination,
|
|
40
|
-
ScrollArea,
|
|
41
|
-
Select,
|
|
42
|
-
Skeleton,
|
|
43
|
-
Stack,
|
|
44
|
-
Table,
|
|
45
|
-
Text,
|
|
46
|
-
TextInput,
|
|
47
|
-
} from '@mantine/core'
|
|
48
|
-
import type { MantineSpacing } from '@mantine/core'
|
|
49
|
-
import type {
|
|
50
|
-
Cell,
|
|
51
|
-
Column,
|
|
52
|
-
ColumnDef,
|
|
53
|
-
ColumnFiltersState,
|
|
54
|
-
ColumnVisibilityState,
|
|
55
|
-
FilterFn,
|
|
56
|
-
PaginationState,
|
|
57
|
-
RowData,
|
|
58
|
-
RowSelectionState,
|
|
59
|
-
SortingState,
|
|
60
|
-
Table as TanstackTable,
|
|
61
|
-
} from '@tanstack/react-table'
|
|
62
|
-
import { constructFilterFn, FlexRender, useTable } from '@tanstack/react-table'
|
|
63
|
-
import type { CSSProperties, MouseEvent as ReactMouseEvent, ReactNode, RefObject } from 'react'
|
|
64
|
-
import { Fragment, useId, useLayoutEffect, useMemo, useRef, useState } from 'react'
|
|
65
|
-
import { useDebouncedCallback } from '@mantine/hooks'
|
|
66
|
-
import { HostTitleContext } from '../common/could-not-load'
|
|
67
|
-
import { cx, pickDataAttributes } from '../common/props'
|
|
68
|
-
import type { BasaltProps, DataAttributes, SlotStylesProps } from '../common/props'
|
|
69
|
-
import { BASALT_PREFIX } from '../common/errors'
|
|
70
|
-
import { HIT_COARSE } from '../common/hit-floor'
|
|
71
|
-
import { useMeasuredWidths } from '../common/use-measured-widths'
|
|
72
|
-
import { assertRequiredProps, useValidateProps } from '../common/validate'
|
|
73
|
-
import { FilterSet } from '../controls'
|
|
74
|
-
import { ActionGroup, BarActionSlot, OverflowMenu } from '../controls/actions'
|
|
75
|
-
import type { BarAction, BarActionItem, SlotActions } from '../controls/actions'
|
|
76
|
-
// `EnumFilter` is deliberately NOT on the `./controls` barrel (`docs/CONTROLS-SPEC.md` §3 —
|
|
77
|
-
// reaching for it directly is hand-rolling a filter, `basalt/hand-rolled-filter`); a facet column
|
|
78
|
-
// is the one place inside the framework itself that legitimately builds a `FieldHandle` over
|
|
79
|
-
// something that is not a store field, so it reaches past the barrel on purpose.
|
|
80
|
-
import { EnumFilter } from '../controls/enum-filter'
|
|
81
|
-
import { MultiSelectFilter } from '../controls/multi-select-filter'
|
|
82
|
-
import { CtlSlot } from '../theme'
|
|
83
|
-
import { IconSlot } from '../theme/icon-slot'
|
|
84
|
-
import { CONTAINER_CLASSES, VX } from '../tokens'
|
|
85
|
-
import type { EnumField, FieldHandle, MultiField } from '../state/fields'
|
|
86
|
-
import { WidgetHeader } from '../dashboard'
|
|
87
|
-
import { EmptyState } from '../dashboard/empty-state'
|
|
88
|
-
import { ErrorState } from '../dashboard/query-state'
|
|
89
|
-
import type { QueryStateLike } from '../dashboard/query-state'
|
|
90
|
-
import {
|
|
91
|
-
activationProps,
|
|
92
|
-
useCardProjection,
|
|
93
|
-
useDataTableState,
|
|
94
|
-
useNarrowerThan,
|
|
95
|
-
useRowDisclosure,
|
|
96
|
-
} from './data-table-state'
|
|
97
|
-
export { planColumnFold } from './data-table-fold'
|
|
98
|
-
import { dataQueryBranch } from './query-branch'
|
|
99
|
-
import { basaltTableFeatures } from './table-features'
|
|
100
|
-
import type {
|
|
101
|
-
BasaltColumnDef,
|
|
102
|
-
BasaltTableFeatures,
|
|
103
|
-
DataTableAlign,
|
|
104
|
-
DataTableColumnKind,
|
|
105
|
-
} from './table-features'
|
|
106
|
-
import {
|
|
107
|
-
columnDefId,
|
|
108
|
-
columnLabel,
|
|
109
|
-
FIXED_ID_ATTR,
|
|
110
|
-
FOLD_ID_ATTR,
|
|
111
|
-
foldOrder,
|
|
112
|
-
foldToggleCellProps,
|
|
113
|
-
FoldHeaderLabel,
|
|
114
|
-
FoldToggle,
|
|
115
|
-
PIN_MIN_WIDTH,
|
|
116
|
-
pinnedCellProps,
|
|
117
|
-
RowDisclosure,
|
|
118
|
-
useColumnFold,
|
|
119
|
-
} from './data-table-fold'
|
|
120
|
-
import type { PinContext } from './data-table-fold'
|
|
121
|
-
import {
|
|
122
|
-
CellContent,
|
|
123
|
-
DEFAULT_CELL,
|
|
124
|
-
kindAlign,
|
|
125
|
-
kindClass,
|
|
126
|
-
KindSkeleton,
|
|
127
|
-
planColumnSizing,
|
|
128
|
-
resolveKind,
|
|
129
|
-
} from './cell-kinds'
|
|
130
|
-
import classes from './data-table.module.css'
|
|
131
|
-
|
|
132
|
-
// ── Column alignment ──────────────────────────────────────────────────────────
|
|
133
|
-
|
|
134
|
-
// `meta.align` is typed by `BasaltColumnMeta` (`table-features.ts`); only the VALUE check lives here.
|
|
135
|
-
|
|
136
|
-
const ALIGNMENTS: ReadonlySet<string> = new Set<DataTableAlign>(['left', 'center', 'right'])
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Reads `meta.align` off a column, throwing on a value that is not one of the three — the one
|
|
140
|
-
* check a type cannot make once a value arrives from an untyped caller. A misspelled alignment that
|
|
141
|
-
* quietly left-aligns a money column looks correct in review.
|
|
142
|
-
*/
|
|
143
|
-
function resolveAlign<T extends RowData>(
|
|
144
|
-
column: Column<BasaltTableFeatures, T, unknown>,
|
|
145
|
-
): DataTableAlign | undefined {
|
|
146
|
-
const align = column.columnDef.meta?.align
|
|
147
|
-
if (align === undefined) return undefined
|
|
148
|
-
if (!ALIGNMENTS.has(align)) {
|
|
149
|
-
throw new Error(
|
|
150
|
-
`BasaltDataTable: column "${column.id}" has meta.align=${JSON.stringify(align)} — ` +
|
|
151
|
-
"expected 'left' | 'center' | 'right'.",
|
|
152
|
-
)
|
|
153
|
-
}
|
|
154
|
-
return align
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
// ── Facets ────────────────────────────────────────────────────────────────────
|
|
158
|
-
|
|
159
|
-
/** A single selectable option inside a {@link DataTableFacet}'s `EnumFilter`/`MultiSelectFilter` pill. */
|
|
160
|
-
export type DataTableFacetOption = {
|
|
161
|
-
/** The raw filter value, compared against the column's stringified cell value. */
|
|
162
|
-
value: string
|
|
163
|
-
/** Label shown in the pill's popover. */
|
|
164
|
-
label: string
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
/**
|
|
168
|
-
* A TanStack column id typed off the row shape `T` where `accessor`/manual `id` inference allows
|
|
169
|
-
* it — `Extract<keyof T, string>` for a real field name, widened by `(string & {})` so a
|
|
170
|
-
* synthetic/derived column id (no matching key on `T`) still type-checks. Defaults to `unknown` so
|
|
171
|
-
* a bare `DataTableFacet[]` / `DataTableColumnPinning` (no type argument) keeps working exactly as
|
|
172
|
-
* before. Shared by {@link DataTableFacet}'s `columnId` and {@link DataTableColumnPinning}'s
|
|
173
|
-
* `start`/`end`.
|
|
174
|
-
*/
|
|
175
|
-
export type DataTableColumnId<T = unknown> = Extract<keyof T, string> | (string & {})
|
|
176
|
-
|
|
177
|
-
/**
|
|
178
|
-
* Declares one faceted column filter, rendered as an `EnumFilter` pill (or `MultiSelectFilter`
|
|
179
|
-
* when `multiple` is set) inside a `FilterSet` in the toolbar (`docs/CONTROLS-SPEC.md` §3).
|
|
180
|
-
*
|
|
181
|
-
* @example
|
|
182
|
-
* const facets: DataTableFacet<Employee>[] = [
|
|
183
|
-
* { columnId: 'department', label: 'Department', options: [{ value: 'Engineering', label: 'Engineering' }] },
|
|
184
|
-
* { columnId: 'role', label: 'Role', multiple: true, options: roleOptions },
|
|
185
|
-
* ]
|
|
186
|
-
* <BasaltDataTable data={rows} columns={columns} facets={facets} />
|
|
187
|
-
*/
|
|
188
|
-
export type DataTableFacet<T = unknown> = {
|
|
189
|
-
/** The TanStack column id — the column's manual `id`, or its `accessorKey` string. */
|
|
190
|
-
columnId: DataTableColumnId<T>
|
|
191
|
-
/** The pill's label — read at rest (single-select) and as the `Filters`/count fallback (multi). */
|
|
192
|
-
label: string
|
|
193
|
-
/** Selectable options for this facet. */
|
|
194
|
-
options: DataTableFacetOption[]
|
|
195
|
-
/** Render a `MultiSelectFilter` (any-of match) instead of an `EnumFilter` (exact match). @default false */
|
|
196
|
-
multiple?: boolean
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* Column ids pinned to each edge — the same `T`-derived id union as {@link DataTableFacet}'s
|
|
201
|
-
* `columnId`, applied to the `{ start, end }` shape. Not itself a TanStack `ColumnPinningState`: both edges are
|
|
202
|
-
* optional here, and `useDataTableState` normalises a missing edge to `[]` before the table sees it.
|
|
203
|
-
*/
|
|
204
|
-
export type DataTableColumnPinning<T = unknown> = {
|
|
205
|
-
start?: DataTableColumnId<T>[]
|
|
206
|
-
end?: DataTableColumnId<T>[]
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
/**
|
|
210
|
-
* The "no filter" member of a single-select facet's `FieldHandle`. A closed enum field always has
|
|
211
|
-
* a real member as its fallback (C4) — there is no "unset" — so a facet, whose underlying
|
|
212
|
-
* `column.getFilterValue()` genuinely can be `undefined`, needs one synthetic option to stand for
|
|
213
|
-
* that state. Rendered as the enum's first radio; picking it clears the column filter, same as every
|
|
214
|
-
* other value change.
|
|
215
|
-
*
|
|
216
|
-
* Its label is `Any <facet>`, and it used to be a bare `All`. The pill now reads the SELECTED
|
|
217
|
-
* option's label at every value including the fallback (`controls/enum-filter.tsx` — a bar reading
|
|
218
|
-
* `Compare` over a field holding `'previous'` is the bug that law fixes), and a toolbar with three
|
|
219
|
-
* facets would then have read `All` three times. `Any project` is the one label that works in both
|
|
220
|
-
* places at once: it is a legible popover row for "no constraint", and a legible pill readout of the
|
|
221
|
-
* state the filter is actually in. Derived from `facet.label`, so no facet has to declare it.
|
|
222
|
-
*/
|
|
223
|
-
const FACET_ALL_VALUE = '__basalt_facet_all__'
|
|
224
|
-
|
|
225
|
-
/** The synthetic row's label — see {@link FACET_ALL_VALUE}. */
|
|
226
|
-
function facetAllLabel<T>(facet: DataTableFacet<T>): string {
|
|
227
|
-
return `Any ${facet.label.toLowerCase()}`
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* Presents a single-select facet column as a `FieldHandle<EnumField<string>>` so it can render
|
|
232
|
-
* through the shared `EnumFilter` pill instead of a hand-rolled `Select` (`basalt/hand-rolled-filter`).
|
|
233
|
-
* `use()` reads/writes `column.getFilterValue()`/`setFilterValue()` directly — no internal
|
|
234
|
-
* subscription needed, since the enclosing `BasaltDataTable` already re-renders on every
|
|
235
|
-
* `columnFilters` change and this handle is rebuilt fresh each render alongside its column.
|
|
236
|
-
*/
|
|
237
|
-
function facetEnumHandle<T extends RowData>(
|
|
238
|
-
column: Column<BasaltTableFeatures, T, unknown>,
|
|
239
|
-
facet: DataTableFacet<T>,
|
|
240
|
-
): FieldHandle<EnumField<string>> {
|
|
241
|
-
return {
|
|
242
|
-
kind: 'enum',
|
|
243
|
-
fallback: FACET_ALL_VALUE,
|
|
244
|
-
options: [{ value: FACET_ALL_VALUE, label: facetAllLabel(facet) }, ...facet.options],
|
|
245
|
-
use: () => {
|
|
246
|
-
const current = (column.getFilterValue() as string | undefined) ?? FACET_ALL_VALUE
|
|
247
|
-
return [
|
|
248
|
-
current,
|
|
249
|
-
(next: string) => {
|
|
250
|
-
column.setFilterValue(next === FACET_ALL_VALUE ? undefined : next)
|
|
251
|
-
},
|
|
252
|
-
] as const
|
|
253
|
-
},
|
|
254
|
-
// A facet column has no lane to unset: clearing the column filter IS its fallback state.
|
|
255
|
-
clear: () => {
|
|
256
|
-
column.setFilterValue(undefined)
|
|
257
|
-
},
|
|
258
|
-
isDefault: (value) => value === FACET_ALL_VALUE,
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/**
|
|
263
|
-
* Presents a multi-select facet column as a `FieldHandle<MultiField<string>>`. Unlike the
|
|
264
|
-
* single-select case, `MultiField`'s own fallback — an empty selection — already means "no
|
|
265
|
-
* constraint", so no synthetic option is needed here.
|
|
266
|
-
*/
|
|
267
|
-
function facetMultiHandle<T extends RowData>(
|
|
268
|
-
column: Column<BasaltTableFeatures, T, unknown>,
|
|
269
|
-
facet: DataTableFacet<T>,
|
|
270
|
-
): FieldHandle<MultiField<string>> {
|
|
271
|
-
return {
|
|
272
|
-
kind: 'multi',
|
|
273
|
-
fallback: [],
|
|
274
|
-
options: facet.options,
|
|
275
|
-
use: () => {
|
|
276
|
-
const current = (column.getFilterValue() as readonly string[] | undefined) ?? []
|
|
277
|
-
return [
|
|
278
|
-
current,
|
|
279
|
-
(next: readonly string[]) => {
|
|
280
|
-
column.setFilterValue(next.length > 0 ? [...next] : undefined)
|
|
281
|
-
},
|
|
282
|
-
] as const
|
|
283
|
-
},
|
|
284
|
-
// Same as the single-select facet: an empty column filter is this handle's fallback.
|
|
285
|
-
clear: () => {
|
|
286
|
-
column.setFilterValue(undefined)
|
|
287
|
-
},
|
|
288
|
-
isDefault: (value) => value.length === 0,
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
|
|
292
|
-
/**
|
|
293
|
-
* Resolves a facet's `columnId` against the table. A mistyped id used to fall through to
|
|
294
|
-
* `if (!column) return null` — the facet pill silently vanished from the toolbar, the same class
|
|
295
|
-
* of defect the sibling `meta.align` lane and `manualPagination` both treat as a dev-time throw.
|
|
296
|
-
* Mirrors `resolveAlign`'s dev-throw shape: throw naming the id in dev
|
|
297
|
-
* (`basaltViteConfig` defines `process.env.NODE_ENV`, so a production bundle constant-folds this
|
|
298
|
-
* away), degrade to "no pill for this facet" in production.
|
|
299
|
-
*/
|
|
300
|
-
function resolveFacetColumn<T extends RowData>(
|
|
301
|
-
table: TanstackTable<BasaltTableFeatures, T>,
|
|
302
|
-
facet: DataTableFacet<T>,
|
|
303
|
-
): Column<BasaltTableFeatures, T, unknown> | undefined {
|
|
304
|
-
const column = table.getColumn(facet.columnId)
|
|
305
|
-
if (column) return column
|
|
306
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
307
|
-
const knownIds = table
|
|
308
|
-
.getAllColumns()
|
|
309
|
-
.map((known) => known.id)
|
|
310
|
-
.join(', ')
|
|
311
|
-
throw new Error(
|
|
312
|
-
`BasaltDataTable: facet columnId "${facet.columnId}" matches no column — known column ids: ` +
|
|
313
|
-
`${knownIds}.`,
|
|
314
|
-
)
|
|
315
|
-
}
|
|
316
|
-
return undefined
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* The facet filters, built with `constructFilterFn` so `autoRemove` is part of the typed definition:
|
|
321
|
-
* a facet with nothing selected is dropped from `columnFilters` rather than kept as a no-op. They
|
|
322
|
-
* match the column value's STRING form exactly (a Select's option values are strings), which is why
|
|
323
|
-
* the built-in `includesString` auto-filter (substring) is never allowed to run on a facet column.
|
|
324
|
-
*/
|
|
325
|
-
const facetAutoRemove = (value: unknown): boolean =>
|
|
326
|
-
value === null ||
|
|
327
|
-
value === undefined ||
|
|
328
|
-
value === '' ||
|
|
329
|
-
(Array.isArray(value) && value.length === 0)
|
|
330
|
-
|
|
331
|
-
const facetExact = constructFilterFn({
|
|
332
|
-
filter: (dataValue, filterValue: string | null | undefined) =>
|
|
333
|
-
filterValue === null || filterValue === undefined || filterValue === ''
|
|
334
|
-
? true
|
|
335
|
-
: String(dataValue) === filterValue,
|
|
336
|
-
autoRemove: facetAutoRemove,
|
|
337
|
-
})
|
|
338
|
-
|
|
339
|
-
const facetAnyOf = constructFilterFn({
|
|
340
|
-
filter: (dataValue, filterValue: string[]) =>
|
|
341
|
-
!Array.isArray(filterValue) || filterValue.length === 0
|
|
342
|
-
? true
|
|
343
|
-
: filterValue.includes(String(dataValue)),
|
|
344
|
-
autoRemove: facetAutoRemove,
|
|
345
|
-
})
|
|
346
|
-
|
|
347
|
-
// ── Row selection ─────────────────────────────────────────────────────────────
|
|
348
|
-
|
|
349
|
-
/**
|
|
350
|
-
* The synthetic checkbox column `enableRowSelection` prepends. Its id is namespaced so it can never
|
|
351
|
-
* collide with a real accessor key, and it is excluded from sorting — a checkbox column sorts by
|
|
352
|
-
* selection state, which is a reordering nobody asked for.
|
|
353
|
-
*/
|
|
354
|
-
const SELECT_COLUMN_ID = '__basalt_select__'
|
|
355
|
-
/** The checkbox column's width when it pins beside an auto-pinned identifier — the pinned offsets
|
|
356
|
-
* sum `getSize()`, so the real cell is held to it (the coarse hit floor, one tap target wide). */
|
|
357
|
-
const SELECT_COLUMN_SIZE = HIT_COARSE
|
|
358
|
-
|
|
359
|
-
/**
|
|
360
|
-
* Built per render inside a `useMemo`, not hoisted as a constant: `ColumnDef` is generic in `T`, and
|
|
361
|
-
* a single shared instance would have to be cast at every call site.
|
|
362
|
-
*
|
|
363
|
-
* The select cell's `stopPropagation` (see the `<Table.Td>`) is the load-bearing line. The checkbox
|
|
364
|
-
* lives inside the row, and a row carrying `onRowActivate` opens a detail from a click — so without
|
|
365
|
-
* it, ticking the box also navigated away from the table the tick was meant to act on.
|
|
366
|
-
*/
|
|
367
|
-
function selectionColumn<T extends RowData>(): ColumnDef<BasaltTableFeatures, T, unknown> {
|
|
368
|
-
return {
|
|
369
|
-
id: SELECT_COLUMN_ID,
|
|
370
|
-
size: SELECT_COLUMN_SIZE,
|
|
371
|
-
enableSorting: false,
|
|
372
|
-
header: ({ table }) => (
|
|
373
|
-
// oxlint-disable-next-line jsx-a11y/label-has-associated-control -- wraps <Checkbox>, which oxlint cannot see is an input
|
|
374
|
-
<label className={classes.selectHit}>
|
|
375
|
-
<Checkbox
|
|
376
|
-
size="xs"
|
|
377
|
-
aria-label="Select all rows"
|
|
378
|
-
checked={table.getIsAllPageRowsSelected()}
|
|
379
|
-
indeterminate={table.getIsSomePageRowsSelected() && !table.getIsAllPageRowsSelected()}
|
|
380
|
-
onChange={table.getToggleAllPageRowsSelectedHandler()}
|
|
381
|
-
/>
|
|
382
|
-
</label>
|
|
383
|
-
),
|
|
384
|
-
cell: ({ row }) => (
|
|
385
|
-
// oxlint-disable-next-line jsx-a11y/label-has-associated-control -- wraps <Checkbox>, which oxlint cannot see is an input
|
|
386
|
-
<label className={classes.selectHit}>
|
|
387
|
-
<Checkbox
|
|
388
|
-
size="xs"
|
|
389
|
-
aria-label={`Select row ${row.index + 1}`}
|
|
390
|
-
checked={row.getIsSelected()}
|
|
391
|
-
disabled={!row.getCanSelect()}
|
|
392
|
-
onChange={row.getToggleSelectedHandler()}
|
|
393
|
-
/>
|
|
394
|
-
</label>
|
|
395
|
-
),
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
// ── Row actions ───────────────────────────────────────────────────────────────
|
|
400
|
-
|
|
401
|
-
/** One per-row action: `BarActionItem`'s vocabulary with the row handed to the handler. */
|
|
402
|
-
export type DataTableRowAction<T = unknown> = {
|
|
403
|
-
key: string
|
|
404
|
-
label: string
|
|
405
|
-
/** A lone action with an icon renders as that icon button; anything else folds into the menu. */
|
|
406
|
-
icon?: ReactNode
|
|
407
|
-
onClick: (row: T) => void
|
|
408
|
-
danger?: boolean
|
|
409
|
-
/** A disabled action renders inert and never fires. */
|
|
410
|
-
disabled?: (row: T) => boolean
|
|
411
|
-
/** A loading action shows the busy state (icon button) or sits inert (menu) and never fires. */
|
|
412
|
-
loading?: (row: T) => boolean
|
|
413
|
-
}
|
|
414
|
-
|
|
415
|
-
/** The synthetic trailing column `rowActions` appends — namespaced like {@link SELECT_COLUMN_ID}. */
|
|
416
|
-
const ACTIONS_COLUMN_ID = '__basalt_actions__'
|
|
417
|
-
|
|
418
|
-
/** Wide enough for one 30px control plus the cell's horizontal padding. */
|
|
419
|
-
const ACTIONS_COLUMN_SIZE = 56
|
|
420
|
-
|
|
421
|
-
/**
|
|
422
|
-
* The cells whose own controls must not read as "activate the row": a tickable selection cell (a
|
|
423
|
-
* disabled row's tap IS a row tap) and every actions cell.
|
|
424
|
-
*/
|
|
425
|
-
function stopsRowActivation<T extends RowData>(
|
|
426
|
-
cell: Cell<BasaltTableFeatures, T, unknown>,
|
|
427
|
-
): boolean {
|
|
428
|
-
if (cell.column.id === ACTIONS_COLUMN_ID) return true
|
|
429
|
-
return cell.column.id === SELECT_COLUMN_ID && cell.row.getCanSelect()
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
function RowActionCell<T>({
|
|
433
|
-
actions,
|
|
434
|
-
row,
|
|
435
|
-
rowIndex,
|
|
436
|
-
rowLabel,
|
|
437
|
-
}: {
|
|
438
|
-
actions: readonly DataTableRowAction<T>[]
|
|
439
|
-
row: T
|
|
440
|
-
rowIndex: number
|
|
441
|
-
rowLabel: ((row: T) => string) | undefined
|
|
442
|
-
}): ReactNode {
|
|
443
|
-
const named = rowLabel?.(row)
|
|
444
|
-
const [only] = actions
|
|
445
|
-
if (actions.length === 1 && only?.icon !== undefined) {
|
|
446
|
-
const inert = only.disabled?.(row) === true || only.loading?.(row) === true
|
|
447
|
-
return (
|
|
448
|
-
<ActionIcon
|
|
449
|
-
variant="subtle"
|
|
450
|
-
size="ctl"
|
|
451
|
-
aria-label={named === undefined ? only.label : `${only.label}: ${named}`}
|
|
452
|
-
disabled={only.disabled?.(row) === true}
|
|
453
|
-
loading={only.loading?.(row) === true}
|
|
454
|
-
{...(only.danger === true && { className: classes.dangerAction })}
|
|
455
|
-
onClick={() => {
|
|
456
|
-
if (!inert) only.onClick(row)
|
|
457
|
-
}}
|
|
458
|
-
>
|
|
459
|
-
<IconSlot>{only.icon}</IconSlot>
|
|
460
|
-
</ActionIcon>
|
|
461
|
-
)
|
|
462
|
-
}
|
|
463
|
-
const items: BarActionItem[] = actions.map((action) => ({
|
|
464
|
-
key: action.key,
|
|
465
|
-
label: action.label,
|
|
466
|
-
...(action.icon !== undefined && { icon: action.icon }),
|
|
467
|
-
...(action.danger === true && { danger: true }),
|
|
468
|
-
// The menu has no busy state of its own, so loading reads as inert there.
|
|
469
|
-
disabled: action.disabled?.(row) === true || action.loading?.(row) === true,
|
|
470
|
-
onClick: () => action.onClick(row),
|
|
471
|
-
}))
|
|
472
|
-
return (
|
|
473
|
-
<OverflowMenu
|
|
474
|
-
actions={items}
|
|
475
|
-
trigger="kebab"
|
|
476
|
-
label={named === undefined ? `Row ${rowIndex + 1} actions` : `Actions for ${named}`}
|
|
477
|
-
/>
|
|
478
|
-
)
|
|
479
|
-
}
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* Header-less: the `<th>` carries a screen-reader-only name and nothing sorts across it. Built per
|
|
483
|
-
* render for the same reason as {@link selectionColumn} (`ColumnDef` is generic in `T`).
|
|
484
|
-
*/
|
|
485
|
-
function rowActionsColumn<T extends RowData>(
|
|
486
|
-
actions: readonly DataTableRowAction<T>[],
|
|
487
|
-
rowLabel: ((row: T) => string) | undefined,
|
|
488
|
-
): ColumnDef<BasaltTableFeatures, T, unknown> {
|
|
489
|
-
return {
|
|
490
|
-
id: ACTIONS_COLUMN_ID,
|
|
491
|
-
size: ACTIONS_COLUMN_SIZE,
|
|
492
|
-
enableSorting: false,
|
|
493
|
-
enableHiding: false,
|
|
494
|
-
header: () => <span className={classes.srOnly}>Actions</span>,
|
|
495
|
-
cell: ({ row }) => (
|
|
496
|
-
<RowActionCell
|
|
497
|
-
actions={actions}
|
|
498
|
-
row={row.original}
|
|
499
|
-
rowIndex={row.index}
|
|
500
|
-
rowLabel={rowLabel}
|
|
501
|
-
/>
|
|
502
|
-
),
|
|
503
|
-
}
|
|
504
|
-
}
|
|
505
|
-
|
|
506
|
-
/**
|
|
507
|
-
* The bar a selection raises, above the table and below its header — the count, then the actions,
|
|
508
|
-
* through the SAME `BarAction[]` vocabulary `PageBar` uses, so the ≤3-inline fold and the mobile
|
|
509
|
-
* kebab are basalt's here too (law C7/C15) instead of a hand-rolled `Group` of buttons.
|
|
510
|
-
*
|
|
511
|
-
* It renders only while at least one row is selected. A bar reserved at zero is a row of page
|
|
512
|
-
* furniture that says nothing, and a table that changes height when the first box is ticked is the
|
|
513
|
-
* price of not reserving it — the cheaper of the two, because the selection is what the reader just
|
|
514
|
-
* caused.
|
|
515
|
-
*/
|
|
516
|
-
function BulkActionBar({ count, actions }: { count: number; actions: BarAction[] }) {
|
|
517
|
-
return (
|
|
518
|
-
<Group className={classes.bulkBar} gap="xs" align="center" wrap="wrap" mb="xs">
|
|
519
|
-
<Text className={classes.bulkCount}>{count} selected</Text>
|
|
520
|
-
<CtlSlot>
|
|
521
|
-
<ActionGroup secondary={actions} />
|
|
522
|
-
</CtlSlot>
|
|
523
|
-
</Group>
|
|
524
|
-
)
|
|
525
|
-
}
|
|
526
|
-
|
|
527
|
-
// ── Props ─────────────────────────────────────────────────────────────────────
|
|
528
|
-
|
|
529
|
-
/**
|
|
530
|
-
* The four boxes `BasaltDataTable` paints: `root` is the outer fragment's replacement wrapper,
|
|
531
|
-
* `toolbar` is the search/facets/actions row, `table` is whichever body renders — the Mantine
|
|
532
|
-
* `Table`, or the card list's `Stack` while `renderCard` projects — and `footer` is the pagination
|
|
533
|
-
* bar.
|
|
534
|
-
*/
|
|
535
|
-
export type BasaltDataTableSlot = 'root' | 'toolbar' | 'table' | 'footer'
|
|
536
|
-
|
|
537
|
-
/**
|
|
538
|
-
* Props for {@link BasaltDataTable}.
|
|
539
|
-
*
|
|
540
|
-
* @example
|
|
541
|
-
* const props: BasaltDataTableProps<User> = {
|
|
542
|
-
* data: users,
|
|
543
|
-
* columns,
|
|
544
|
-
* enableSorting: true,
|
|
545
|
-
* striped: true,
|
|
546
|
-
* highlightOnHover: true,
|
|
547
|
-
* emptyState: <Text c="dimmed">No results found.</Text>,
|
|
548
|
-
* }
|
|
549
|
-
*/
|
|
550
|
-
export type BasaltDataTableProps<T extends RowData> = BasaltProps &
|
|
551
|
-
DataAttributes &
|
|
552
|
-
SlotStylesProps<BasaltDataTableSlot> & {
|
|
553
|
-
// ── Header (WidgetHeader, docs/CONTROLS-SPEC.md §2.2) ──────────────────────────
|
|
554
|
-
|
|
555
|
-
/**
|
|
556
|
-
* Optional heading rendered above the toolbar via `WidgetHeader tier="widget"`. The count tag
|
|
557
|
-
* beside it is automatic, not a prop (there is no `count`): it reads `table.getRowCount()` (C11)
|
|
558
|
-
* — never a raw `data.length` — so it tracks the row model (post-filter/-pagination) rather
|
|
559
|
-
* than the unfiltered input.
|
|
560
|
-
*/
|
|
561
|
-
title?: string
|
|
562
|
-
/** Optional leading icon, forwarded to `WidgetHeader`. */
|
|
563
|
-
icon?: ReactNode
|
|
564
|
-
/** Optional muted line rendered below the title row. */
|
|
565
|
-
subtitle?: string
|
|
566
|
-
|
|
567
|
-
/** Row data array. */
|
|
568
|
-
data: T[]
|
|
569
|
-
/**
|
|
570
|
-
* Column definitions. Use `createColumnHelper<T>()` from `basalt-ui/table`
|
|
571
|
-
* for a typed accessor builder — `col.accessor('field', …)` columns sort by value.
|
|
572
|
-
*/
|
|
573
|
-
// The cell-value type varies per column, so the array is heterogeneous in TValue
|
|
574
|
-
// (`BasaltColumnDef` carries the `any`); row typing stays exact via the `T` data generic.
|
|
575
|
-
columns: BasaltColumnDef<T>[]
|
|
576
|
-
/**
|
|
577
|
-
* Enable column sorting via clickable headers. Client-side — the rows in `data` are what get
|
|
578
|
-
* reordered.
|
|
579
|
-
*
|
|
580
|
-
* Under `manualPagination` that is one page, so leaving this on without also passing
|
|
581
|
-
* `manualSorting` is a contract violation and throws in dev — see `manualPagination`.
|
|
582
|
-
* @default true
|
|
583
|
-
*/
|
|
584
|
-
enableSorting?: boolean
|
|
585
|
-
/**
|
|
586
|
-
* Hand sorting to the server: the table stops reordering `data` locally and renders it in the
|
|
587
|
-
* order given, while the headers keep toggling `SortingState` and reporting it through
|
|
588
|
-
* `onSortingChange` — which is where you re-request the sorted page.
|
|
589
|
-
*
|
|
590
|
-
* This is the required companion to `manualPagination` whenever sort headers are live; without
|
|
591
|
-
* it a server-paginated table sorts one page and the "of N" bar presents that as a sort of all N.
|
|
592
|
-
* @default false
|
|
593
|
-
* @example
|
|
594
|
-
* <BasaltDataTable
|
|
595
|
-
* data={page.rows}
|
|
596
|
-
* columns={columns}
|
|
597
|
-
* enablePagination
|
|
598
|
-
* manualPagination
|
|
599
|
-
* manualSorting
|
|
600
|
-
* rowCount={page.total}
|
|
601
|
-
* onSortingChange={(s) => refetch({ sort: s[0] })}
|
|
602
|
-
* />
|
|
603
|
-
*/
|
|
604
|
-
manualSorting?: boolean
|
|
605
|
-
/** Stripe alternate rows. Forwarded to Mantine `Table` — `'odd'`/`'even'` pick the phase. */
|
|
606
|
-
striped?: boolean | 'odd' | 'even'
|
|
607
|
-
/** Highlight hovered rows with `VX.surface.rowHover` on a fine pointer. Forwarded to Mantine `Table`.
|
|
608
|
-
* @default true */
|
|
609
|
-
highlightOnHover?: boolean
|
|
610
|
-
/**
|
|
611
|
-
* Rendered when no rows are VISIBLE — `data` is empty, or a filter/page matches none of it.
|
|
612
|
-
* Falls back to a simple message when omitted. (Before 1.25.0 this tracked `data.length` alone,
|
|
613
|
-
* so a search matching nothing rendered a blank `<tbody>` with no message at all.)
|
|
614
|
-
*/
|
|
615
|
-
emptyState?: ReactNode
|
|
616
|
-
/**
|
|
617
|
-
* When true, renders skeleton placeholder rows instead of the empty-state branch.
|
|
618
|
-
* The header remains visible. Use while async data is loading.
|
|
619
|
-
*
|
|
620
|
-
* Superseded by `query`, which resolves this branch AND the two this prop cannot express — pass
|
|
621
|
-
* both and `query` wins, with a dev warning.
|
|
622
|
-
*/
|
|
623
|
-
isLoading?: boolean
|
|
624
|
-
/**
|
|
625
|
-
* The result behind `data`, resolved into a body: pending → the skeleton rows below, error with
|
|
626
|
-
* no data → an `ErrorState` row spanning the table (with the query's own `refetch` behind
|
|
627
|
-
* Retry), anything else → the rows, or `emptyState` when none are visible.
|
|
628
|
-
*
|
|
629
|
-
* This is law C3's uniform container contract (`docs/CONTROLS-SPEC.md` §1). The table had NO
|
|
630
|
-
* error branch at all (components audit #3), so a 500 rendered *No data to display.* — the
|
|
631
|
-
* exact false claim `QueryState` was built to delete, one container over.
|
|
632
|
-
*
|
|
633
|
-
* The header, toolbar, `<thead>` and pagination bar stay drawn through every branch: only the
|
|
634
|
-
* `<tbody>` swaps, which is why this is not `QueryState` wrapped around the table. A refetch
|
|
635
|
-
* that fails while rows are already on screen keeps the rows — compose `QueryState` AROUND the
|
|
636
|
-
* table when you want its cached-data banner too.
|
|
637
|
-
*
|
|
638
|
-
* @example
|
|
639
|
-
* const q = useQuery({ queryKey: ['rows'], queryFn: () => api.rows() })
|
|
640
|
-
* <BasaltDataTable data={q.data ?? []} columns={columns} query={q} />
|
|
641
|
-
*/
|
|
642
|
-
query?: QueryStateLike<unknown>
|
|
643
|
-
/**
|
|
644
|
-
* Number of skeleton rows to render when `isLoading` is true and neither a page size nor an
|
|
645
|
-
* earlier load says better: a paginated table loads at its page size, any other at the row
|
|
646
|
-
* count it last showed.
|
|
647
|
-
* @default 5
|
|
648
|
-
*/
|
|
649
|
-
skeletonRows?: number
|
|
650
|
-
/**
|
|
651
|
-
* Initial sorting state. Drives `useState` initial value — useful for restoring
|
|
652
|
-
* sort order from URL search params (e.g. `initialSorting={Route.useSearch().sorting}`).
|
|
653
|
-
* @example
|
|
654
|
-
* // URL-sync pattern with TanStack Router
|
|
655
|
-
* const { sorting } = Route.useSearch()
|
|
656
|
-
* <BasaltDataTable initialSorting={sorting} onSortingChange={(s) => navigate({ search: { sorting: s } })} … />
|
|
657
|
-
*/
|
|
658
|
-
initialSorting?: SortingState
|
|
659
|
-
/**
|
|
660
|
-
* Called whenever the internal sorting state changes. Receives the new `SortingState`.
|
|
661
|
-
* The table continues to manage sorting internally (uncontrolled) when this is omitted.
|
|
662
|
-
*/
|
|
663
|
-
onSortingChange?: (sorting: SortingState) => void
|
|
664
|
-
|
|
665
|
-
// ── Toolbar (search + facets + actions) ──────────────────────────────────────
|
|
666
|
-
|
|
667
|
-
/**
|
|
668
|
-
* Shows a global search `TextInput` above the table, wired to TanStack's `globalFilter` state
|
|
669
|
-
* (substring match against every column's stringified cell value).
|
|
670
|
-
* @default false
|
|
671
|
-
* @example
|
|
672
|
-
* <BasaltDataTable data={rows} columns={columns} enableGlobalFilter searchIcon={<IconSearch size={14} />} />
|
|
673
|
-
*/
|
|
674
|
-
enableGlobalFilter?: boolean
|
|
675
|
-
/**
|
|
676
|
-
* Placeholder for the global search input.
|
|
677
|
-
* @default 'Search…'
|
|
678
|
-
*/
|
|
679
|
-
globalFilterPlaceholder?: string
|
|
680
|
-
/**
|
|
681
|
-
* Leading icon rendered inside the global search input (Mantine `leftSection`). basalt-ui ships
|
|
682
|
-
* no icon set — pass any `ReactNode` (e.g. `<IconSearch size={14} />`).
|
|
683
|
-
*/
|
|
684
|
-
searchIcon?: ReactNode
|
|
685
|
-
/**
|
|
686
|
-
* Initial global filter value. Drives `useState` initial value — mirrors `initialSorting` for
|
|
687
|
-
* restoring the search term from a URL search param.
|
|
688
|
-
*/
|
|
689
|
-
initialGlobalFilter?: string
|
|
690
|
-
/**
|
|
691
|
-
* Initial facet filters — `[{ id: 'department', value: 'Engineering' }]` opens the table with
|
|
692
|
-
* that facet preset. Uncontrolled, like `initialSorting`; `onColumnFiltersChange` reports edits.
|
|
693
|
-
*/
|
|
694
|
-
initialColumnFilters?: ColumnFiltersState
|
|
695
|
-
/** Called whenever the internal global filter value changes. */
|
|
696
|
-
onGlobalFilterChange?: (value: string) => void
|
|
697
|
-
/**
|
|
698
|
-
* Faceted column filters, rendered in the toolbar as `EnumFilter`/`MultiSelectFilter` pills
|
|
699
|
-
* inside a `FilterSet`, wired to TanStack's per-column `columnFilters` state. The toolbar
|
|
700
|
-
* renders whenever this array is non-empty, `enableGlobalFilter` is set, or `actions` is passed.
|
|
701
|
-
* @example
|
|
702
|
-
* facets={[{ columnId: 'department', label: 'Department', options: departmentOptions }]}
|
|
703
|
-
*/
|
|
704
|
-
facets?: DataTableFacet<T>[]
|
|
705
|
-
/** Called whenever the faceted column filters change — the seam for server-side faceting. */
|
|
706
|
-
onColumnFiltersChange?: (filters: ColumnFiltersState) => void
|
|
707
|
-
/**
|
|
708
|
-
* Hand filtering to the server: the table stops narrowing `data` locally and renders every row
|
|
709
|
-
* given, while the search input and facets keep reporting through `onGlobalFilterChange` /
|
|
710
|
-
* `onColumnFiltersChange` — which is where you re-request the filtered page.
|
|
711
|
-
*
|
|
712
|
-
* Required alongside `manualPagination` whenever `enableGlobalFilter` or `facets` is set;
|
|
713
|
-
* without it the controls narrow one page while "of N" keeps counting the whole set.
|
|
714
|
-
* @default false
|
|
715
|
-
*/
|
|
716
|
-
manualFiltering?: boolean
|
|
717
|
-
/**
|
|
718
|
-
* Right-aligned toolbar slot (e.g. an "Export" button). Renders the toolbar row even when no
|
|
719
|
-
* search input or facets are configured. The toolbar (search + facets + this slot) is wrapped
|
|
720
|
-
* in `CtlSlot` (C1/C5), so its controls resolve to the `ctl` tier.
|
|
721
|
-
*
|
|
722
|
-
* Two accepted forms (law C15): a typed `BarAction[]`, projected through the same row `PageBar`
|
|
723
|
-
* and `ActionGroup` use — ≤3 inline, the rest folded into `More`, one kebab below `sm` — or an
|
|
724
|
-
* opaque `ReactNode`, rendered verbatim exactly as before.
|
|
725
|
-
*/
|
|
726
|
-
actions?: SlotActions
|
|
727
|
-
|
|
728
|
-
// ── Row activation + selection ────────────────────────────────────────────────
|
|
729
|
-
|
|
730
|
-
/**
|
|
731
|
-
* Makes each row openable — click, or Enter on a focused row — with the ROW's original datum.
|
|
732
|
-
* The hook that pairs a table with `PageAside`: row → detail, without the caller adding an
|
|
733
|
-
* `onClick` to every cell renderer.
|
|
734
|
-
*
|
|
735
|
-
* The row keeps its native `<tr>` semantics and takes `tabIndex=0` plus `data-activatable`,
|
|
736
|
-
* never `role="button"`: a role swap takes the row out of the table's row/cell semantics, so a
|
|
737
|
-
* screen reader stops announcing each cell's column header — which is the reason the data is in
|
|
738
|
-
* a table. Cursor and focus ring come from the module class.
|
|
739
|
-
*
|
|
740
|
-
* A click that originates inside the selection checkbox does NOT activate (the checkbox stops
|
|
741
|
-
* the event); a click on a control your own `cell` renders should do the same.
|
|
742
|
-
*
|
|
743
|
-
* @example
|
|
744
|
-
* <BasaltDataTable data={rows} columns={columns} onRowActivate={(row) => setSelected(row)} />
|
|
745
|
-
*/
|
|
746
|
-
onRowActivate?: (row: T) => void
|
|
747
|
-
|
|
748
|
-
/**
|
|
749
|
-
* A compact card projection of one row, rendered INSTEAD of the table while the table's own box
|
|
750
|
-
* is narrower than the `regular` container class (`CONTAINER_CLASSES`, 480px) — keyed on the
|
|
751
|
-
* width this table actually has, never the viewport, so a table in a narrow aside or a split
|
|
752
|
-
* column swaps on a desktop too, and a full-width one does not swap early on a tablet.
|
|
753
|
-
*
|
|
754
|
-
* The cards are the SAME processed rows the table would draw — sorted, filtered and paged — so a
|
|
755
|
-
* list can never disagree with its table; a fixed card order is `initialSorting`, not a second
|
|
756
|
-
* sort. Everything around the body stays: the header (title · count · toolbar), the bulk bar,
|
|
757
|
-
* the pager, and `query` / `isLoading` / `emptyState`. `onRowActivate` makes each card
|
|
758
|
-
* activatable exactly as it does a row (click, or Enter on the focused card — never Space, the
|
|
759
|
-
* browser's own page scroll on a focused non-button). The selection
|
|
760
|
-
* checkbox is not projected — a card list with a selection keeps its bulk bar but no ticks.
|
|
761
|
-
*
|
|
762
|
-
* An activatable card takes `tabIndex=0` + `data-activatable`, never `role="button"`: a card is
|
|
763
|
-
* where a row's actions and links land (argo's all do), and a `button` role makes every
|
|
764
|
-
* descendant presentational, so those nested controls would vanish from the accessibility tree.
|
|
765
|
-
* The affordance is the cursor and the focus ring, as on the row. `maxHeight` caps the card list
|
|
766
|
-
* in a `ScrollArea`; `minWidth` does not apply — it is a horizontal floor for columns, and a
|
|
767
|
-
* card list has none. `stickyHeader` has nothing to stick while the cards render. A card order
|
|
768
|
-
* with no user sort is `data`'s own order — sort it there (or `initialSorting`) for a domain
|
|
769
|
-
* order.
|
|
770
|
-
*
|
|
771
|
-
* Reach for it when the row carries more than the columns a phone can hold (a status + label +
|
|
772
|
-
* age header, a clamped title, a prose line). A table that only needs to shed a column or two
|
|
773
|
-
* already has that: the column fold hides the lowest-priority columns behind a per-row
|
|
774
|
-
* disclosure with no prop at all. Server render and first paint are the table.
|
|
775
|
-
*
|
|
776
|
-
* @example
|
|
777
|
-
* <BasaltDataTable data={items} columns={columns} onRowActivate={open}
|
|
778
|
-
* renderCard={(item) => <ItemCard item={item} />} />
|
|
779
|
-
*/
|
|
780
|
-
renderCard?: (row: T) => ReactNode
|
|
781
|
-
/**
|
|
782
|
-
* Prepends a checkbox column (header = select-all on the page) and arms TanStack's row-selection
|
|
783
|
-
* feature. Selection is uncontrolled unless `rowSelection` is passed.
|
|
784
|
-
* @default false
|
|
785
|
-
*/
|
|
786
|
-
enableRowSelection?: boolean
|
|
787
|
-
/**
|
|
788
|
-
* Controlled selection — TanStack's own `RowSelectionState` (`Record<rowId, boolean>`), keyed by
|
|
789
|
-
* `getRowId` (row index by default). Omit for uncontrolled selection held by the table.
|
|
790
|
-
*/
|
|
791
|
-
rowSelection?: RowSelectionState
|
|
792
|
-
/** Called with the next `RowSelectionState` on every selection change, controlled or not. */
|
|
793
|
-
onRowSelectionChange?: (selection: RowSelectionState) => void
|
|
794
|
-
/**
|
|
795
|
-
* Stable row id, handed to TanStack. Pass one whenever the selection must survive a re-sort, a
|
|
796
|
-
* page change or a refetch — the default id is the row's INDEX, so row 3 stays "selected" when a
|
|
797
|
-
* different record moves into position 3.
|
|
798
|
-
*/
|
|
799
|
-
getRowId?: (row: T, index: number) => string
|
|
800
|
-
/**
|
|
801
|
-
* The actions a selection offers, rendered in a bar above the table while at least one row is
|
|
802
|
-
* selected — and nothing at all while none is.
|
|
803
|
-
*
|
|
804
|
-
* A FUNCTION of the selected rows, not a bare array, and that is the whole signature decision:
|
|
805
|
-
* `BarActionItem.onClick` is `() => void` (the one vocabulary every home shares, unforked), so
|
|
806
|
-
* the rows have to reach the handler through the closure the caller writes here. It also means
|
|
807
|
-
* an UNCONTROLLED table can offer bulk actions at all — the selection lives inside the table,
|
|
808
|
-
* and this is how it gets out.
|
|
809
|
-
*
|
|
810
|
-
* @example
|
|
811
|
-
* bulkActions={(rows) => [
|
|
812
|
-
* { key: 'export', label: `Export ${rows.length}`, onClick: () => exportCsv(rows) },
|
|
813
|
-
* { key: 'delete', label: 'Delete', danger: true, onClick: () => remove(rows) },
|
|
814
|
-
* ]}
|
|
815
|
-
*/
|
|
816
|
-
bulkActions?: (rows: T[]) => BarAction[]
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* Per-row actions as typed data. The table renders them itself in a trailing, pinned,
|
|
820
|
-
* header-less column: an icon button for one action that carries an `icon`, an overflow menu
|
|
821
|
-
* for anything else. Clicking either never fires `onRowActivate`. Never put a `Menu` or
|
|
822
|
-
* `ActionIcon` in a `display` / `cell` renderer (`basalt/control-outside-home`).
|
|
823
|
-
*
|
|
824
|
-
* Pass a STABLE reference — a module constant or a `useMemo` — because the column is rebuilt
|
|
825
|
-
* whenever the array identity changes. A `renderCard` projection owns its own card, so the
|
|
826
|
-
* column renders in the table body only.
|
|
827
|
-
*
|
|
828
|
-
* State-dependent actions keep that array stable and read the state per row: put it in
|
|
829
|
-
* `disabled(row)` / `loading(row)` (state in a ref or the row itself), or `useMemo` the array
|
|
830
|
-
* keyed on exactly that state.
|
|
831
|
-
*
|
|
832
|
-
* @example
|
|
833
|
-
* const ROW_ACTIONS: DataTableRowAction<Row>[] = [
|
|
834
|
-
* { key: 'edit', label: 'Edit', icon: <IconEdit />, onClick: (row) => edit(row) },
|
|
835
|
-
* { key: 'delete', label: 'Delete', danger: true, onClick: (row) => remove(row) },
|
|
836
|
-
* ]
|
|
837
|
-
* <BasaltDataTable rowActions={ROW_ACTIONS} rowLabel={(row) => row.name} … />
|
|
838
|
-
*/
|
|
839
|
-
rowActions?: DataTableRowAction<T>[]
|
|
840
|
-
/** Names a row for assistive tech in its action controls; default `Row N actions`. */
|
|
841
|
-
rowLabel?: (row: T) => string
|
|
842
|
-
|
|
843
|
-
// ── Pagination ────────────────────────────────────────────────────────────────
|
|
844
|
-
|
|
845
|
-
/**
|
|
846
|
-
* Enables the bottom pagination bar ("Showing X–Y of N", rows-per-page `Select`, Mantine
|
|
847
|
-
* `Pagination`) wired to TanStack's `pagination` state. Client-side by default — see
|
|
848
|
-
* `manualPagination` for server-driven pagination.
|
|
849
|
-
* @default false
|
|
850
|
-
*/
|
|
851
|
-
enablePagination?: boolean
|
|
852
|
-
/**
|
|
853
|
-
* Rows-per-page choices offered in the pagination bar's Select.
|
|
854
|
-
* @default [10, 25, 50, 100]
|
|
855
|
-
*/
|
|
856
|
-
pageSizeOptions?: number[]
|
|
857
|
-
/**
|
|
858
|
-
* Initial pagination state. Drives `useState` initial value — mirrors `initialSorting` for
|
|
859
|
-
* restoring the page/size from a URL search param.
|
|
860
|
-
*/
|
|
861
|
-
initialPagination?: PaginationState
|
|
862
|
-
/** Called whenever the internal pagination state changes. */
|
|
863
|
-
onPaginationChange?: (pagination: PaginationState) => void
|
|
864
|
-
/**
|
|
865
|
-
* Disables local pagination slicing — pass the already-paginated page of `data` plus `rowCount`
|
|
866
|
-
* (and optionally `pageCount`) for server-driven pagination. `onPaginationChange` is where you
|
|
867
|
-
* fetch the next page.
|
|
868
|
-
*
|
|
869
|
-
* **It imposes a contract, enforced at render.** `data` is now one page, but the pagination bar
|
|
870
|
-
* says "Showing 1–25 of 412" — so every OTHER client-side control becomes a claim about 412 rows
|
|
871
|
-
* that it can only make about 25. Each has to be resolved explicitly, because only the call site
|
|
872
|
-
* knows whether the server does the work:
|
|
873
|
-
*
|
|
874
|
-
* - `rowCount` (or `pageCount`) must be given, or "of N" counts the page and the pager collapses
|
|
875
|
-
* to a single page nobody can leave;
|
|
876
|
-
* - sorting must be handed over with `manualSorting`, or switched off with `enableSorting={false}`;
|
|
877
|
-
* - `enableGlobalFilter` / `facets`, if used, must be handed over with `manualFiltering`;
|
|
878
|
-
* - `enablePagination` must be on, or `manualPagination` is inert and the page renders as if it
|
|
879
|
-
* were the whole table.
|
|
880
|
-
*
|
|
881
|
-
* Unresolved, each throws in dev and degrades to the honest render in production (no sort
|
|
882
|
-
* headers, no filter controls, no "of N") — never to the plausible wrong answer.
|
|
883
|
-
* @default false
|
|
884
|
-
* @example
|
|
885
|
-
* <BasaltDataTable
|
|
886
|
-
* data={page.rows}
|
|
887
|
-
* columns={columns}
|
|
888
|
-
* enablePagination
|
|
889
|
-
* manualPagination
|
|
890
|
-
* rowCount={page.total}
|
|
891
|
-
* initialPagination={{ pageIndex: page.index, pageSize: page.size }}
|
|
892
|
-
* onPaginationChange={(p) => fetchPage(p)}
|
|
893
|
-
* />
|
|
894
|
-
*/
|
|
895
|
-
manualPagination?: boolean
|
|
896
|
-
/** Total row count across all pages. Required for `manualPagination` to render "of N" and compute page count. */
|
|
897
|
-
rowCount?: number
|
|
898
|
-
/** Total page count, when known. Only consulted under `manualPagination`; omit to derive it from `rowCount`/`pageSize`. */
|
|
899
|
-
pageCount?: number
|
|
900
|
-
|
|
901
|
-
// ── Column pinning ────────────────────────────────────────────────────────────
|
|
902
|
-
|
|
903
|
-
/**
|
|
904
|
-
* Enables sticky start/end column pinning — pinned columns stick to the edge with a panel
|
|
905
|
-
* background and a hairline shadow separator while the table scrolls horizontally. Pin columns
|
|
906
|
-
* via `initialColumnPinning` (`{ start: string[], end: string[] }`).
|
|
907
|
-
* @default false
|
|
908
|
-
* @example
|
|
909
|
-
* <BasaltDataTable data={rows} columns={columns} enablePinning initialColumnPinning={{ start: ['name'] }} />
|
|
910
|
-
*/
|
|
911
|
-
enablePinning?: boolean
|
|
912
|
-
/** Initial column-pinning state — which column ids stick to the start/end edge. */
|
|
913
|
-
initialColumnPinning?: DataTableColumnPinning<T>
|
|
914
|
-
|
|
915
|
-
// ── Body chrome ─────────────────────────────────────────────────────────────
|
|
916
|
-
|
|
917
|
-
/**
|
|
918
|
-
* Caps the scrolling body (px number or CSS length) so a long table cannot blow a card out
|
|
919
|
-
* vertically — the header stays put and the rows scroll under it. Renders Mantine's
|
|
920
|
-
* `Table.ScrollContainer type="native"`, which is the same node the docs sanction as the raw
|
|
921
|
-
* escape for a bespoke table: the blessed lane and the escape hatch produce identical DOM, so
|
|
922
|
-
* adopting one does not contradict the other.
|
|
923
|
-
*
|
|
924
|
-
* `type="native"` is required rather than preferred: `ScrollArea`'s custom viewport is the
|
|
925
|
-
* positioning context a sticky `<thead>` resolves against, so the default `'scrollarea'` type
|
|
926
|
-
* pins the header to the page viewport instead of the table's box.
|
|
927
|
-
*/
|
|
928
|
-
maxHeight?: number | string
|
|
929
|
-
/**
|
|
930
|
-
* `min-width` below which the body scrolls horizontally. Setting either this or `maxHeight`
|
|
931
|
-
* turns on the CAPPED scroll container; `maxHeight` alone implies `minWidth: 0`.
|
|
932
|
-
*
|
|
933
|
-
* It is a FLOOR, not the containment switch — since the shell made `AppShell.Main` the
|
|
934
|
-
* scrollport, every table renders inside a `Table.ScrollContainer type="native"` whether or not
|
|
935
|
-
* this is set (`minWidth: 0` when it is not), so a table wider than its column scrolls inside
|
|
936
|
-
* its own card instead of widening the page. Reach for this only to hold a MINIMUM table width
|
|
937
|
-
* — e.g. so eight columns keep their readable widths and scroll rather than compress.
|
|
938
|
-
*
|
|
939
|
-
* Setting it also switches the column fold OFF (a declared floor is the caller saying "this
|
|
940
|
-
* table is at least this wide", which folding columns out would contradict), so a `minWidth`
|
|
941
|
-
* table scrolls where the same table without it folds. `maxHeight` alone keeps the fold.
|
|
942
|
-
*
|
|
943
|
-
* The one table whose wrapper is MEASURED rather than declared is `stickyHeader` with neither
|
|
944
|
-
* this nor `maxHeight`; see that prop and `useMeasuredContainment` in the implementation for
|
|
945
|
-
* why, and pair it with `maxHeight` if the table must both scroll and stick.
|
|
946
|
-
*/
|
|
947
|
-
minWidth?: number | string
|
|
948
|
-
/**
|
|
949
|
-
* Sticky header row. Pair with `maxHeight` to stick within the table rather than the page.
|
|
950
|
-
*
|
|
951
|
-
* On its own — no `maxHeight`, no `minWidth` — the header sticks against the page's scrollport
|
|
952
|
-
* (`AppShell.Main`) only while the table FITS its container, and basalt measures that: the
|
|
953
|
-
* wrapper declares no overflow while it fits and flips to `overflow-x: auto` once the table is
|
|
954
|
-
* wider, publishing `data-contained`. The columns stay reachable either way and the page never
|
|
955
|
-
* scrolls sideways, but a sticky header cannot stick inside an uncapped overflow box — it has
|
|
956
|
-
* no scroll range — so it is inert at that width. A dev warning states the trade; pair this
|
|
957
|
-
* with `maxHeight` for a table that must both scroll and stick at every width.
|
|
958
|
-
*/
|
|
959
|
-
stickyHeader?: boolean
|
|
960
|
-
/**
|
|
961
|
-
* Offset for a sticky header sitting under whatever chrome scrolls above it (px number or CSS
|
|
962
|
-
* length).
|
|
963
|
-
*
|
|
964
|
-
* PAGE-scroll only, and IGNORED whenever `maxHeight`/`minWidth` turn on the scroll container:
|
|
965
|
-
* that box is then the header's own scrollport, so an offset would park the `<thead>` that many
|
|
966
|
-
* pixels down inside the body — painting it over the rows instead of above them. Inside the
|
|
967
|
-
* container the header sticks to the scroller's own top edge.
|
|
968
|
-
*
|
|
969
|
-
* Inside `BasaltShell` the page's scrollport is `AppShell.Main`, and the app header sits
|
|
970
|
-
* OUTSIDE it — so the only chrome left to clear is `PageBar` row 2's band:
|
|
971
|
-
* `var(--basalt-page-bar-h, 0px)`, not the header height plus it.
|
|
972
|
-
*/
|
|
973
|
-
stickyHeaderOffset?: number | string
|
|
974
|
-
/** Vertical cell padding. Forwarded to Mantine `Table`. */
|
|
975
|
-
verticalSpacing?: MantineSpacing
|
|
976
|
-
/** Horizontal cell padding. Forwarded to Mantine `Table`. */
|
|
977
|
-
horizontalSpacing?: MantineSpacing
|
|
978
|
-
/** Row separators. Forwarded to Mantine `Table`. @default true (Mantine's own default) */
|
|
979
|
-
withRowBorders?: boolean
|
|
980
|
-
/**
|
|
981
|
-
* Outer table border — a full box around the table.
|
|
982
|
-
*
|
|
983
|
-
* **`false` by default since this minor** (it was `true`). Three separate faults, all visible on
|
|
984
|
-
* the playground's `Controls (mobile)` page at 390px: its TOP edge sat directly under the table's
|
|
985
|
-
* own `WidgetHeader`, separating a header from its own content; its BOTTOM edge landed on the last
|
|
986
|
-
* row's own hairline, two rules at zero distance; and its left/right edges carried no information
|
|
987
|
-
* at all on a table that fills the page (`docs/DESIGN-SPEC.md` §8 — a border is a layout divider,
|
|
988
|
-
* and there is nothing here to divide). The head-row rule and the between-row rules stay, so the
|
|
989
|
-
* table still reads as a table.
|
|
990
|
-
*
|
|
991
|
-
* Pass `true` for a table that genuinely needs a frame — a small table floating in whitespace
|
|
992
|
-
* beside other content, where the box IS the grouping.
|
|
993
|
-
*
|
|
994
|
-
* @default false
|
|
995
|
-
*/
|
|
996
|
-
withTableBorder?: boolean
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
/**
|
|
1000
|
-
* A skeleton cell's floor by `meta.kind`, rem: roughly what a typical value of the kind measures, so
|
|
1001
|
-
* a loading table plans the same fold as the loaded one instead of squeezing every column to its
|
|
1002
|
-
* (narrow) header. A kindless column floors at a short phrase. `text` is a short word
|
|
1003
|
-
* (a scope, a category): the bar was once 10rem wide, which made such a column 3x its loaded width
|
|
1004
|
-
* and folded one column more than the rows do.
|
|
1005
|
-
*/
|
|
1006
|
-
const SKELETON_MIN_REM: Partial<Record<DataTableColumnKind | 'kindless', number>> = {
|
|
1007
|
-
entity: 7,
|
|
1008
|
-
text: 4.5,
|
|
1009
|
-
// A kindless column is the one-line cause or note of an outage or event log.
|
|
1010
|
-
kindless: 8,
|
|
1011
|
-
'relative-time': 5,
|
|
1012
|
-
status: 4,
|
|
1013
|
-
money: 4.5,
|
|
1014
|
-
number: 3.5,
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
function skeletonMinWidth<T extends RowData>(
|
|
1018
|
-
column: Column<BasaltTableFeatures, T, unknown>,
|
|
1019
|
-
): string | undefined {
|
|
1020
|
-
// The checkbox and actions columns are synthetic: no kind, and a fixed width of their own.
|
|
1021
|
-
if (column.id === SELECT_COLUMN_ID || column.id === ACTIONS_COLUMN_ID) return undefined
|
|
1022
|
-
const rem = SKELETON_MIN_REM[resolveKind(column) ?? 'kindless']
|
|
1023
|
-
return rem === undefined ? undefined : `${rem}rem`
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
// ── Sort indicator ────────────────────────────────────────────────────────────
|
|
1027
|
-
|
|
1028
|
-
function SortIndicator({ direction }: { direction: 'asc' | 'desc' | false }) {
|
|
1029
|
-
if (!direction) return null
|
|
1030
|
-
return (
|
|
1031
|
-
<Box component="span" ml={4} aria-hidden>
|
|
1032
|
-
{direction === 'asc' ? '↑' : '↓'}
|
|
1033
|
-
</Box>
|
|
1034
|
-
)
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
const ARIA_SORT = { asc: 'ascending', desc: 'descending' } as const
|
|
1038
|
-
|
|
1039
|
-
// ── Numeral cell idiom (SPEC D33: figures are the proportional sans with `tabular-nums`, mono is
|
|
1040
|
-
// for captions, times and code) — auto-detected from the cell's raw value (no column-level opt-in
|
|
1041
|
-
// prop needed) so every numeric column gets tabular figures with zero call-site configuration.
|
|
1042
|
-
const NUMERIC_CELL_STYLE: CSSProperties = {
|
|
1043
|
-
fontSize: VX.text.sm,
|
|
1044
|
-
fontWeight: 500,
|
|
1045
|
-
fontVariantNumeric: 'tabular-nums',
|
|
1046
|
-
color: 'var(--vx-ink)',
|
|
1047
|
-
}
|
|
1048
|
-
|
|
1049
|
-
// docs/DESIGN-SPEC.md §3: mono/micro-label idiom for the pagination bar's row-count label — the
|
|
1050
|
-
// header's own micro size, so a paginated table reads in three sizes (micro, sm, the field's 16).
|
|
1051
|
-
const RANGE_LABEL_STYLE: CSSProperties = {
|
|
1052
|
-
fontFamily: 'var(--mantine-font-family-monospace)',
|
|
1053
|
-
fontSize: VX.text.micro,
|
|
1054
|
-
fontVariantNumeric: 'tabular-nums',
|
|
1055
|
-
color: 'var(--vx-faint)',
|
|
1056
|
-
}
|
|
1057
|
-
|
|
1058
|
-
const DEFAULT_PAGE_SIZE_OPTIONS = [10, 25, 50, 100]
|
|
1059
|
-
|
|
1060
|
-
/**
|
|
1061
|
-
* The header row's two halves (`docs/waves/design-parity/SPEC.md` § 6.6). The TOOLBAR grows and the
|
|
1062
|
-
* title does not: the title ellipsizes into whatever it needs, and the toolbar takes the rest of the
|
|
1063
|
-
* row, so its facet row (`FilterSet`, `flex: 1 1 auto`) fills it and pushes the `actions` slot to
|
|
1064
|
-
* the right edge — beside the title when the two fit, full-width under it when they do not.
|
|
1065
|
-
*
|
|
1066
|
-
* Both SHRINK, and that half is not a preference. `CtlSlot` between the header row and the toolbar
|
|
1067
|
-
* is `display: contents`, so the toolbar `Group` IS the row's flex item — and a flex item with
|
|
1068
|
-
* `min-width: auto` cannot give up a pixel. MEASURED at 390x844 on `/data`: a 220px search beside a
|
|
1069
|
-
* 230px facet pill row, gap 11, is a 461px item in a 302px column, and `AppShell.Main` read
|
|
1070
|
-
* `scrollWidth` 505 against `clientWidth` 390 — the whole app draggable sideways over a table
|
|
1071
|
-
* header. `min-width: 0` lets the item shrink to the column; inside it the search gives up width
|
|
1072
|
-
* down to its floor and `FilterSet` folds what still does not fit behind its own `+N`.
|
|
1073
|
-
*
|
|
1074
|
-
* The toolbar is ONE row at every container width from the `compact` class (240px) up
|
|
1075
|
-
* (`.toolbar` in `data-table.module.css`, keyed on the header row's own width — never the
|
|
1076
|
-
* viewport). Only below it may the row wrap.
|
|
1077
|
-
*/
|
|
1078
|
-
const TABLE_HEADER_LEAD_STYLE: CSSProperties = { flex: '0 1 auto', minWidth: 0 }
|
|
1079
|
-
const TABLE_TOOLBAR_STYLE: CSSProperties = { flex: '1 1 auto', minWidth: 0 }
|
|
1080
|
-
/**
|
|
1081
|
-
* The toolbar search's width. Mantine's Input grows to its container, which in a `justify:
|
|
1082
|
-
* space-between` row means "whatever is left" — so the field was 600px on a wide table and 180px on a
|
|
1083
|
-
* narrow one, for the same one-word query. A stated width also makes the toolbar's own minimum width
|
|
1084
|
-
* knowable, which is what lets it wrap under the title below `sm` with no media query.
|
|
1085
|
-
*
|
|
1086
|
-
* The field states a BASIS and a `width`, both `SEARCH_WIDTH`: `flex: 0 1 <SEARCH_WIDTH>px` holds it
|
|
1087
|
-
* at 220px wherever 220 is available and lets it shrink where it is not, floored at `12ch` (a legible
|
|
1088
|
-
* query plus the search glyph) and capped at `100%` so it can never be the box that outgrows its
|
|
1089
|
-
* column. The `width` is the field's intrinsic contribution: the toolbar is sized by its items'
|
|
1090
|
-
* max-content, and an input's own (~196px) came out short of the basis, which wrapped the facet pills
|
|
1091
|
-
* under the search at 1440. It is no floor — `min-width: 12ch` is. A literal `w={220}` in a 302px
|
|
1092
|
-
* column was half of the overflow above.
|
|
1093
|
-
*/
|
|
1094
|
-
const SEARCH_WIDTH = 220
|
|
1095
|
-
/**
|
|
1096
|
-
* The search gives up width FIRST. Flex shrinks items in proportion to `shrink × basis`; at `1` the
|
|
1097
|
-
* search and `FilterSet`'s row (`flex: 1 1 auto`, whose slots cannot shrink) split the deficit, so the
|
|
1098
|
-
* pills overflowed their own box and the phone's `Filters` pill was clipped. A large factor takes the
|
|
1099
|
-
* whole deficit from the search until its `12ch` floor, and only then from the pill row — where
|
|
1100
|
-
* `FilterSet`'s fold takes over.
|
|
1101
|
-
*/
|
|
1102
|
-
const SEARCH_SHRINK = 100
|
|
1103
|
-
/** How long the global search waits after the last keystroke before filtering. */
|
|
1104
|
-
const SEARCH_DEBOUNCE_MS = 250
|
|
1105
|
-
const TABLE_SEARCH_STYLE: CSSProperties = {
|
|
1106
|
-
// `width` as well as the basis — see the `SEARCH_WIDTH` JSDoc.
|
|
1107
|
-
width: SEARCH_WIDTH,
|
|
1108
|
-
flex: `0 ${SEARCH_SHRINK} ${SEARCH_WIDTH}px`,
|
|
1109
|
-
minWidth: '12ch',
|
|
1110
|
-
maxWidth: '100%',
|
|
1111
|
-
}
|
|
1112
|
-
/** The rows-per-page Select's width — see `SEARCH_WIDTH` for why a toolbar field states one. */
|
|
1113
|
-
const PAGE_SIZE_WIDTH = 116
|
|
1114
|
-
|
|
1115
|
-
// ── Column pinning helpers ────────────────────────────────────────────────────
|
|
1116
|
-
|
|
1117
|
-
// Merges the start/center/end header-group triad TanStack exposes for pinning into the single
|
|
1118
|
-
// render order (start → center → end) the header row needs — depth-indexed so grouped headers
|
|
1119
|
-
// (multi-row) still line up.
|
|
1120
|
-
function getOrderedHeaderGroups<T extends RowData>(table: TanstackTable<BasaltTableFeatures, T>) {
|
|
1121
|
-
const start = table.getStartHeaderGroups()
|
|
1122
|
-
const center = table.getCenterHeaderGroups()
|
|
1123
|
-
const end = table.getEndHeaderGroups()
|
|
1124
|
-
return center.map((group, index) => ({
|
|
1125
|
-
...group,
|
|
1126
|
-
headers: [...(start[index]?.headers ?? []), ...group.headers, ...(end[index]?.headers ?? [])],
|
|
1127
|
-
}))
|
|
1128
|
-
}
|
|
1129
|
-
|
|
1130
|
-
// ── The manual-pagination contract ────────────────────────────────────────────
|
|
1131
|
-
|
|
1132
|
-
/** One client-side control that `manualPagination` turns into a claim the table cannot support. */
|
|
1133
|
-
type ManualPaginationBreach = 'inert' | 'total' | 'sorting' | 'filtering'
|
|
1134
|
-
|
|
1135
|
-
const BREACH_REMEDY: Record<ManualPaginationBreach, string> = {
|
|
1136
|
-
inert:
|
|
1137
|
-
'`enablePagination` is not set, so `manualPagination` never reaches the table and the server ' +
|
|
1138
|
-
'page renders as if it were the whole set, with no bar to say otherwise. Pass ' +
|
|
1139
|
-
'`enablePagination`, or drop `manualPagination`.',
|
|
1140
|
-
total:
|
|
1141
|
-
'neither `rowCount` nor `pageCount` was given, so "of N" counts only the rows on this page and ' +
|
|
1142
|
-
'the pager collapses to one page nobody can leave. Pass `rowCount={total}`.',
|
|
1143
|
-
sorting:
|
|
1144
|
-
'client-side sorting is still armed. It reorders only the rows in `data` — one page — while the ' +
|
|
1145
|
-
'header chevron and "of N" together present it as a sort of all of them. Pass `manualSorting` ' +
|
|
1146
|
-
'and sort in the request you make from `onSortingChange`, or `enableSorting={false}`.',
|
|
1147
|
-
filtering:
|
|
1148
|
-
'the search input / facets still filter client-side. They narrow only the rows in `data` — one ' +
|
|
1149
|
-
'page — while "of N" keeps counting the whole set. Pass `manualFiltering` and filter in the ' +
|
|
1150
|
-
'request you make from `onGlobalFilterChange` / `onColumnFiltersChange`, or drop ' +
|
|
1151
|
-
'`enableGlobalFilter` / `facets`.',
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
/**
|
|
1155
|
-
* Every way the props on hand contradict `manualPagination`. Computed from PROPS only — never from
|
|
1156
|
-
* the table instance, whose `getCanSort()` would read back the very `enableSorting` this decides.
|
|
1157
|
-
*/
|
|
1158
|
-
function manualPaginationBreaches(config: {
|
|
1159
|
-
columns: readonly { enableSorting?: boolean }[]
|
|
1160
|
-
enablePagination: boolean
|
|
1161
|
-
manualPagination: boolean
|
|
1162
|
-
rowCount: number | undefined
|
|
1163
|
-
pageCount: number | undefined
|
|
1164
|
-
enableSorting: boolean
|
|
1165
|
-
manualSorting: boolean
|
|
1166
|
-
enableGlobalFilter: boolean
|
|
1167
|
-
hasFacets: boolean
|
|
1168
|
-
manualFiltering: boolean
|
|
1169
|
-
}): ManualPaginationBreach[] {
|
|
1170
|
-
if (!config.manualPagination) return []
|
|
1171
|
-
if (!config.enablePagination) return ['inert']
|
|
1172
|
-
const breaches: ManualPaginationBreach[] = []
|
|
1173
|
-
if (config.rowCount === undefined && config.pageCount === undefined) breaches.push('total')
|
|
1174
|
-
const anyColumnMaySort = config.columns.some((column) => column.enableSorting !== false)
|
|
1175
|
-
if (config.enableSorting && anyColumnMaySort && !config.manualSorting) breaches.push('sorting')
|
|
1176
|
-
if ((config.enableGlobalFilter || config.hasFacets) && !config.manualFiltering)
|
|
1177
|
-
breaches.push('filtering')
|
|
1178
|
-
return breaches
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
function manualPaginationMessage(breaches: ManualPaginationBreach[]): string {
|
|
1182
|
-
return (
|
|
1183
|
-
'BasaltDataTable: `manualPagination` is set, so `data` is one server page — but:\n · ' +
|
|
1184
|
-
breaches.map((breach) => BREACH_REMEDY[breach]).join('\n · ') +
|
|
1185
|
-
'\nEach has to be resolved explicitly: only the call site knows whether the server does the ' +
|
|
1186
|
-
'work, so there is no default that is not a guess about the data.'
|
|
1187
|
-
)
|
|
1188
|
-
}
|
|
1189
|
-
|
|
1190
|
-
/** Bounded by the sixteen possible breach sets, so it cannot grow with render count. */
|
|
1191
|
-
const reportedBreaches = new Set<string>()
|
|
1192
|
-
|
|
1193
|
-
/**
|
|
1194
|
-
* Dev throws; production reports once and lets the caller degrade.
|
|
1195
|
-
*
|
|
1196
|
-
* Split deliberately from BandStrip's datum/prop rule rather than copied. That rule throws on a bad
|
|
1197
|
-
* PROP because a prop is authored, deterministic, and caught the first time the component renders —
|
|
1198
|
-
* all true here. What differs is that a bad `meta.align` has no honest render (every alignment we
|
|
1199
|
-
* could pick might be the wrong one, and would look right in review), whereas this one does: a
|
|
1200
|
-
* table with no sort headers, no filter controls and no "of N" asserts nothing false. Throwing in
|
|
1201
|
-
* production would add no correctness the degradation does not already give, and would convert a
|
|
1202
|
-
* misreport on a rarely-visited page into a blank one. The report is what keeps the degradation
|
|
1203
|
-
* from being its own silence.
|
|
1204
|
-
*/
|
|
1205
|
-
function enforceManualPaginationContract(breaches: ManualPaginationBreach[]): void {
|
|
1206
|
-
if (breaches.length === 0) return
|
|
1207
|
-
const message = manualPaginationMessage(breaches)
|
|
1208
|
-
if (process.env.NODE_ENV !== 'production') throw new Error(message)
|
|
1209
|
-
if (reportedBreaches.has(message)) return
|
|
1210
|
-
reportedBreaches.add(message)
|
|
1211
|
-
console.error(message)
|
|
1212
|
-
}
|
|
1213
|
-
|
|
1214
|
-
/**
|
|
1215
|
-
* MEASURED CONTAINMENT — the wrapper for the ONE table shape whose overflow mode cannot be decided
|
|
1216
|
-
* statically: `stickyHeader` with neither `maxHeight` nor `minWidth`.
|
|
1217
|
-
*
|
|
1218
|
-
* Every other table renders inside `Table.ScrollContainer type="native"`, because a bare `<table>`
|
|
1219
|
-
* sizes to its own min-content and would drag the page sideways. This shape cannot take that
|
|
1220
|
-
* container unconditionally: an `overflow-x: auto` box also computes `overflow-y`, making it the
|
|
1221
|
-
* sticky header's own scrollport with no scroll range, so the `<thead>` scrolls clean away.
|
|
1222
|
-
*
|
|
1223
|
-
* So the wrapper's overflow is MEASURED. While the table FITS, the wrapper is bare and the sticky
|
|
1224
|
-
* header sticks; once it is WIDER, the wrapper flips to `overflow-x: auto` and the header is inert.
|
|
1225
|
-
* The trade is deliberate: a header that stops sticking is recoverable, a page that scrolls
|
|
1226
|
-
* sideways is not.
|
|
1227
|
-
*
|
|
1228
|
-
* Three invariants: the observer stays alive in BOTH states (no one-way latch, so the wrapper
|
|
1229
|
-
* reverts when the space returns); equality counts as FITS (a `width: 100%` table reads
|
|
1230
|
-
* `offsetWidth === clientWidth`, which stops oscillation); and a zero `clientWidth` is `unknown`,
|
|
1231
|
-
* not overflow (the aside animates its width in from 0). `useLayoutEffect` runs before paint, so an
|
|
1232
|
-
* already-measurable table resolves without a flash; the default is bare for SSR and first paint.
|
|
1233
|
-
*/
|
|
1234
|
-
function useMeasuredContainment(active: boolean): {
|
|
1235
|
-
wrapperRef: RefObject<HTMLDivElement | null>
|
|
1236
|
-
contained: boolean
|
|
1237
|
-
} {
|
|
1238
|
-
const wrapperRef = useRef<HTMLDivElement>(null)
|
|
1239
|
-
const [contained, setContained] = useState(false)
|
|
1240
|
-
|
|
1241
|
-
// The same measured-fold core `useColumnFold` uses, so this shape no longer mounts a second
|
|
1242
|
-
// bespoke `ResizeObserver` on the wrapper + table.
|
|
1243
|
-
useMeasuredWidths({
|
|
1244
|
-
resolveRoot: () => wrapperRef.current,
|
|
1245
|
-
signature: String(active),
|
|
1246
|
-
enabled: active,
|
|
1247
|
-
// The TABLE too, not only the wrapper: a column set that re-measures (a facet filter changing
|
|
1248
|
-
// the widest cell, a font settling) moves the table's min-content width while the wrapper's
|
|
1249
|
-
// box never changes at all.
|
|
1250
|
-
extra: (root) => [root.querySelector('table')],
|
|
1251
|
-
onMeasure: (root) => {
|
|
1252
|
-
const table = root.querySelector('table')
|
|
1253
|
-
// Three answers, not two — see the docblock. A zero reading is an un-laid-out ancestor
|
|
1254
|
-
// (the aside animating in from 0), not overflow, so it moves neither the state nor the
|
|
1255
|
-
// observer; equality counts as FITS and stops the fit/contained oscillation.
|
|
1256
|
-
if (table === null || root.clientWidth === 0 || table.offsetWidth === 0) return
|
|
1257
|
-
const next = table.offsetWidth > root.clientWidth
|
|
1258
|
-
setContained((current) => (current === next ? current : next))
|
|
1259
|
-
},
|
|
1260
|
-
})
|
|
1261
|
-
|
|
1262
|
-
return { wrapperRef, contained: active && contained }
|
|
1263
|
-
}
|
|
1264
|
-
|
|
1265
|
-
// ── Component ─────────────────────────────────────────────────────────────────
|
|
1266
|
-
|
|
1267
|
-
/**
|
|
1268
|
-
* A sortable data table backed by TanStack Table and rendered with Mantine primitives.
|
|
1269
|
-
* Generic over `T` — column types are inferred from `ColumnDef<T>`.
|
|
1270
|
-
*
|
|
1271
|
-
* Sorting is local/client-side by default (no `any`); `manualSorting` hands it to the server.
|
|
1272
|
-
* When `enableSorting` is `false` the table is read-only. An `emptyState` node is rendered
|
|
1273
|
-
* whenever no rows are visible — empty `data`, or a filter that matches none of it.
|
|
1274
|
-
*
|
|
1275
|
-
* `manualPagination` imposes a contract on the rest of the props (see its docblock): every
|
|
1276
|
-
* client-side control it would turn into a false claim about the unseen rows must be handed to the
|
|
1277
|
-
* server or switched off, and an unresolved one throws in dev rather than misreporting.
|
|
1278
|
-
*
|
|
1279
|
-
* Toolbar (search + facets), pagination, and column pinning are opt-in chrome layered on top —
|
|
1280
|
-
* see the corresponding props below. None of them change rendering unless explicitly enabled.
|
|
1281
|
-
*
|
|
1282
|
-
* @example
|
|
1283
|
-
* <BasaltDataTable
|
|
1284
|
-
* data={users}
|
|
1285
|
-
* columns={columns}
|
|
1286
|
-
* enableSorting
|
|
1287
|
-
* striped
|
|
1288
|
-
* highlightOnHover
|
|
1289
|
-
* emptyState={<Text c="dimmed">No users found.</Text>}
|
|
1290
|
-
* />
|
|
1291
|
-
*/
|
|
1292
|
-
export function BasaltDataTable<T extends RowData>(props: BasaltDataTableProps<T>) {
|
|
1293
|
-
// F-ERR-1: without this, a table missing `data`/`columns` fails deep inside `useTable` as a
|
|
1294
|
-
// raw `TypeError` caught by `RootBoundary` — a blank subtree with no message naming either
|
|
1295
|
-
// prop.
|
|
1296
|
-
assertRequiredProps('BasaltDataTable', props, ['data', 'columns'])
|
|
1297
|
-
const {
|
|
1298
|
-
title,
|
|
1299
|
-
icon,
|
|
1300
|
-
subtitle,
|
|
1301
|
-
data,
|
|
1302
|
-
columns,
|
|
1303
|
-
enableSorting = true,
|
|
1304
|
-
manualSorting = false,
|
|
1305
|
-
striped,
|
|
1306
|
-
highlightOnHover = true,
|
|
1307
|
-
emptyState,
|
|
1308
|
-
isLoading = false,
|
|
1309
|
-
query,
|
|
1310
|
-
skeletonRows,
|
|
1311
|
-
enableGlobalFilter = false,
|
|
1312
|
-
globalFilterPlaceholder = 'Search…',
|
|
1313
|
-
searchIcon,
|
|
1314
|
-
facets,
|
|
1315
|
-
manualFiltering = false,
|
|
1316
|
-
actions,
|
|
1317
|
-
onRowActivate,
|
|
1318
|
-
renderCard,
|
|
1319
|
-
enableRowSelection = false,
|
|
1320
|
-
getRowId,
|
|
1321
|
-
bulkActions,
|
|
1322
|
-
rowActions,
|
|
1323
|
-
rowLabel,
|
|
1324
|
-
enablePagination = false,
|
|
1325
|
-
pageSizeOptions = DEFAULT_PAGE_SIZE_OPTIONS,
|
|
1326
|
-
manualPagination = false,
|
|
1327
|
-
rowCount,
|
|
1328
|
-
pageCount,
|
|
1329
|
-
enablePinning = false,
|
|
1330
|
-
maxHeight,
|
|
1331
|
-
minWidth,
|
|
1332
|
-
stickyHeader,
|
|
1333
|
-
stickyHeaderOffset,
|
|
1334
|
-
verticalSpacing,
|
|
1335
|
-
horizontalSpacing,
|
|
1336
|
-
withRowBorders,
|
|
1337
|
-
withTableBorder = false,
|
|
1338
|
-
className,
|
|
1339
|
-
style,
|
|
1340
|
-
classNames,
|
|
1341
|
-
} = props
|
|
1342
|
-
const tableState = useDataTableState(props, pageSizeOptions[0] ?? 10)
|
|
1343
|
-
const { globalFilter, columnPinning, onGlobalFilterChange: handleGlobalFilterChange } = tableState
|
|
1344
|
-
// The input binds to a local draft so typing stays instant; the table (and `onGlobalFilterChange`)
|
|
1345
|
-
// only see the value once typing pauses. Invariant: the debounced commit is the ONLY writer of
|
|
1346
|
-
// `globalFilter`, so the draft never needs syncing back from it. `flushOnUnmount` delivers a
|
|
1347
|
-
// pending keystroke to `onGlobalFilterChange` rather than dropping it with the table.
|
|
1348
|
-
const [searchDraft, setSearchDraft] = useState(globalFilter)
|
|
1349
|
-
const commitSearch = useDebouncedCallback(handleGlobalFilterChange, {
|
|
1350
|
-
delay: SEARCH_DEBOUNCE_MS,
|
|
1351
|
-
flushOnUnmount: true,
|
|
1352
|
-
})
|
|
1353
|
-
|
|
1354
|
-
// `stickyHeaderOffset` is DROPPED whenever the table owns a scroll container — see
|
|
1355
|
-
// `resolvedStickyHeaderOffset` below for why it is always wrong there. Dropping it silently is
|
|
1356
|
-
// the part worth a message: the header still sticks, so the table looks right until it overlaps
|
|
1357
|
-
// the page chrome the offset was measured against, and nothing anywhere says the prop was ignored.
|
|
1358
|
-
//
|
|
1359
|
-
// The second check is `query` beside `isLoading`: `query` resolves the pending branch AND the two
|
|
1360
|
-
// `isLoading` cannot express, so it wins outright. Silently, that reads as the boolean having no
|
|
1361
|
-
// effect — which is indistinguishable from a bug in the caller's own loading flag.
|
|
1362
|
-
useValidateProps(
|
|
1363
|
-
'BasaltDataTable',
|
|
1364
|
-
() => [
|
|
1365
|
-
stickyHeaderOffset === undefined || (maxHeight === undefined && minWidth === undefined)
|
|
1366
|
-
? null
|
|
1367
|
-
: `${BASALT_PREFIX} BasaltDataTable: prop "stickyHeaderOffset" is ignored beside ` +
|
|
1368
|
-
'"maxHeight"/"minWidth" — those render a scroll container, and the sticky `<thead>` then ' +
|
|
1369
|
-
"anchors to that box's own top edge rather than to the window. Drop the offset, or drop " +
|
|
1370
|
-
'the cap and let the page scroll.',
|
|
1371
|
-
query === undefined || props.isLoading === undefined
|
|
1372
|
-
? null
|
|
1373
|
-
: `${BASALT_PREFIX} BasaltDataTable: props "query" and "isLoading" are both set — "query" ` +
|
|
1374
|
-
'wins and "isLoading" is ignored. `query` already resolves the pending branch, plus the ' +
|
|
1375
|
-
'error and empty ones the boolean cannot express. Drop "isLoading".',
|
|
1376
|
-
stickyHeader !== true || maxHeight !== undefined || minWidth !== undefined
|
|
1377
|
-
? null
|
|
1378
|
-
: `${BASALT_PREFIX} BasaltDataTable: prop "stickyHeader" with neither "maxHeight" nor ` +
|
|
1379
|
-
'"minWidth" sticks only while the table FITS its container. basalt measures it: a table ' +
|
|
1380
|
-
'wider than the space it has flips its wrapper to `overflow-x: auto` so the columns ' +
|
|
1381
|
-
'stay reachable and the page never scrolls sideways, and a sticky header cannot stick ' +
|
|
1382
|
-
'inside that box — it has no scroll range. Pair it with "maxHeight" for a table that ' +
|
|
1383
|
-
'must both scroll and stick.',
|
|
1384
|
-
],
|
|
1385
|
-
[
|
|
1386
|
-
stickyHeaderOffset,
|
|
1387
|
-
maxHeight,
|
|
1388
|
-
minWidth,
|
|
1389
|
-
stickyHeader,
|
|
1390
|
-
query === undefined,
|
|
1391
|
-
props.isLoading === undefined,
|
|
1392
|
-
],
|
|
1393
|
-
)
|
|
1394
|
-
|
|
1395
|
-
// Facets are TanStack `columnFilters` entries under the hood — inject an exact-match (or
|
|
1396
|
-
// any-of, for `multiple`) filterFn onto the matching column so the built-in `includesString`
|
|
1397
|
-
// auto-filter (substring match) never misfires against a Select's exact option value.
|
|
1398
|
-
const facetColumns = useMemo(() => {
|
|
1399
|
-
if (!facets || facets.length === 0) return columns
|
|
1400
|
-
const facetById = new Map(facets.map((facet) => [facet.columnId, facet]))
|
|
1401
|
-
return columns.map((column) => {
|
|
1402
|
-
const id = columnDefId(column)
|
|
1403
|
-
const facet = id === undefined ? undefined : facetById.get(id)
|
|
1404
|
-
if (!facet) return column
|
|
1405
|
-
const filterFn: FilterFn<BasaltTableFeatures, T> = facet.multiple ? facetAnyOf : facetExact
|
|
1406
|
-
return { ...column, filterFn }
|
|
1407
|
-
})
|
|
1408
|
-
}, [columns, facets])
|
|
1409
|
-
|
|
1410
|
-
// The checkbox column is PREPENDED here rather than asked of the caller, so `columns` stays the
|
|
1411
|
-
// caller's own data columns and `meta.align` / `numeral` never have to reason about a synthetic
|
|
1412
|
-
// one. Everything counting columns downstream reads `columnCount`, below.
|
|
1413
|
-
const hasRowActions = rowActions !== undefined && rowActions.length > 0
|
|
1414
|
-
const tableColumns = useMemo(
|
|
1415
|
-
() => [
|
|
1416
|
-
...(enableRowSelection ? [selectionColumn<T>()] : []),
|
|
1417
|
-
...facetColumns,
|
|
1418
|
-
...(hasRowActions ? [rowActionsColumn<T>(rowActions, rowLabel)] : []),
|
|
1419
|
-
],
|
|
1420
|
-
[facetColumns, enableRowSelection, hasRowActions, rowActions, rowLabel],
|
|
1421
|
-
)
|
|
1422
|
-
|
|
1423
|
-
// Enforced before the table is built, so the degraded options below are the ones TanStack gets —
|
|
1424
|
-
// a degraded table must not merely hide a control, it must not compute the answer either.
|
|
1425
|
-
const hasFacets = Boolean(facets && facets.length > 0)
|
|
1426
|
-
const breaches = manualPaginationBreaches({
|
|
1427
|
-
columns,
|
|
1428
|
-
enablePagination,
|
|
1429
|
-
manualPagination,
|
|
1430
|
-
rowCount,
|
|
1431
|
-
pageCount,
|
|
1432
|
-
enableSorting,
|
|
1433
|
-
manualSorting,
|
|
1434
|
-
enableGlobalFilter,
|
|
1435
|
-
hasFacets,
|
|
1436
|
-
manualFiltering,
|
|
1437
|
-
})
|
|
1438
|
-
enforceManualPaginationContract(breaches)
|
|
1439
|
-
// Unreachable in dev (the line above threw); in production these are the honest fallbacks.
|
|
1440
|
-
const sortingEnabled = enableSorting && !breaches.includes('sorting')
|
|
1441
|
-
const filteringEnabled = !breaches.includes('filtering')
|
|
1442
|
-
const totalIsAuthoritative = !breaches.includes('total')
|
|
1443
|
-
|
|
1444
|
-
// A capped body or a horizontal floor both need the same native scroll node — computed here,
|
|
1445
|
-
// ahead of the table, because `pageStickyHeader` (further down) needs it: `maxHeight` alone still
|
|
1446
|
-
// wants its own `ScrollArea` scrollport (a sticky `<thead>` resolves against it, not the measured
|
|
1447
|
-
// containment div, which offers no vertical scroll box at all), so EITHER prop rules out the
|
|
1448
|
-
// measured-containment shape.
|
|
1449
|
-
const scrolls = maxHeight !== undefined || minWidth !== undefined
|
|
1450
|
-
|
|
1451
|
-
// Fold eligibility is narrower than `scrolls`: only `minWidth` is a genuinely DECLARED horizontal
|
|
1452
|
-
// floor — the caller is stating "this table is at least this wide," which folding columns out of
|
|
1453
|
-
// would contradict. `maxHeight` alone is a purely VERTICAL cap and orthogonal to column width, so
|
|
1454
|
-
// a `stickyHeader` + `maxHeight` table (the pairing this package's own docs recommend for a
|
|
1455
|
-
// capped, sticky-header body) still folds instead of silently regressing to horizontal scroll.
|
|
1456
|
-
const foldEligible = minWidth === undefined
|
|
1457
|
-
|
|
1458
|
-
// The fold order is computed off the caller's OWN `columns` — never `tableColumns` — so the
|
|
1459
|
-
// selection checkbox (prepended below) is never a fold candidate; see `foldOrder`'s docblock for
|
|
1460
|
-
// the declared-order default and the explicit-priority rule. `enableHiding: false` and a PINNED
|
|
1461
|
-
// column are excluded outright, not merely de-prioritized — both are the caller stating this
|
|
1462
|
-
// column must stay visible, the same declaration a fold candidate has no way to override.
|
|
1463
|
-
const { columnFoldOrder, columnFoldFixedIds, pinCandidates } = useMemo(() => {
|
|
1464
|
-
const pinnedIds = new Set([...columnPinning.start, ...columnPinning.end])
|
|
1465
|
-
const excluded = new Set(
|
|
1466
|
-
columns.flatMap((column) => {
|
|
1467
|
-
const id = columnDefId(column)
|
|
1468
|
-
if (id === undefined) return []
|
|
1469
|
-
return column.enableHiding === false || pinnedIds.has(id) ? [id] : []
|
|
1470
|
-
}),
|
|
1471
|
-
)
|
|
1472
|
-
return {
|
|
1473
|
-
columnFoldOrder: foldOrder(columns).filter((id) => !excluded.has(id)),
|
|
1474
|
-
columnFoldFixedIds: [...excluded],
|
|
1475
|
-
// Leaf columns the caller did not pin itself, declared order: a caller's END pin must not
|
|
1476
|
-
// also become the start pin, where TanStack would resolve it as start.
|
|
1477
|
-
pinCandidates: columns.flatMap((column) => {
|
|
1478
|
-
const id = columnDefId(column)
|
|
1479
|
-
return id === undefined || 'columns' in column || pinnedIds.has(id) ? [] : [id]
|
|
1480
|
-
}),
|
|
1481
|
-
}
|
|
1482
|
-
}, [columns, columnPinning])
|
|
1483
|
-
// ── The query branch (law C3) ───────────────────────────────────────────────
|
|
1484
|
-
// `query`, when given, owns the body: it resolves the pending branch `isLoading` used to own,
|
|
1485
|
-
// plus the error branch the table had none of. `isLoading` stays live for every caller who never
|
|
1486
|
-
// had a query result to hand — the dev warning above covers the pair.
|
|
1487
|
-
const branch = query === undefined ? undefined : dataQueryBranch('BasaltDataTable', query)
|
|
1488
|
-
const showSkeleton = branch === undefined ? isLoading : branch === 'pending'
|
|
1489
|
-
const queryError = branch === 'error' && query !== undefined ? query : undefined
|
|
1490
|
-
// The card projection unmounts the table, so the fold and the containment wrapper go inactive with
|
|
1491
|
-
// it — their measuring effects re-attach to the remounted table when the width returns.
|
|
1492
|
-
const { cards: showCards, rootRef: projectionRootRef } = useCardProjection(
|
|
1493
|
-
renderCard !== undefined,
|
|
1494
|
-
)
|
|
1495
|
-
const renderedRows = useRef(0)
|
|
1496
|
-
// The row count the table last showed with data: a reload skeleton is that tall, not a guess.
|
|
1497
|
-
const [lastLoadedRows, setLastLoadedRows] = useState(0)
|
|
1498
|
-
const foldExtraIds = useMemo(
|
|
1499
|
-
() => [
|
|
1500
|
-
...(enableRowSelection ? [SELECT_COLUMN_ID] : []),
|
|
1501
|
-
...(hasRowActions ? [ACTIONS_COLUMN_ID] : []),
|
|
1502
|
-
],
|
|
1503
|
-
[enableRowSelection, hasRowActions],
|
|
1504
|
-
)
|
|
1505
|
-
const {
|
|
1506
|
-
folded: foldedColumns,
|
|
1507
|
-
wrapperRef: foldWrapperRef,
|
|
1508
|
-
pinId: autoPinId,
|
|
1509
|
-
overflowing: foldOverflowing,
|
|
1510
|
-
widths: measuredWidths,
|
|
1511
|
-
} = useColumnFold({
|
|
1512
|
-
active: foldEligible && !showCards,
|
|
1513
|
-
order: columnFoldOrder,
|
|
1514
|
-
fixedIds: columnFoldFixedIds,
|
|
1515
|
-
extraIds: foldExtraIds,
|
|
1516
|
-
pinCandidates,
|
|
1517
|
-
// An explicit caller pin wins: the fold already treats it as fixed overhead, and a second,
|
|
1518
|
-
// implicit one beside it would stack two sticky columns nobody asked for.
|
|
1519
|
-
// A one-column table has nothing to scroll beside an identifier.
|
|
1520
|
-
allowPin: columnPinning.start.length === 0 && columns.length > 1,
|
|
1521
|
-
headerOnly: showSkeleton || queryError !== undefined,
|
|
1522
|
-
renderedRows,
|
|
1523
|
-
})
|
|
1524
|
-
const columnVisibility: ColumnVisibilityState = useMemo(
|
|
1525
|
-
() => Object.fromEntries([...foldedColumns].map((id) => [id, false])),
|
|
1526
|
-
[foldedColumns],
|
|
1527
|
-
)
|
|
1528
|
-
const hasFolded = foldedColumns.size > 0
|
|
1529
|
-
const foldRows = useRowDisclosure({ data, getRowId })
|
|
1530
|
-
|
|
1531
|
-
// The actions column always sticks to the end edge, behind any end-pinned columns the caller
|
|
1532
|
-
// asked for — so it is pinned through TanStack's own state, which also keeps their offsets right.
|
|
1533
|
-
//
|
|
1534
|
-
// The auto-pin (SPEC § 6.6): once the fold has hit its floor and the table STILL overflows, the
|
|
1535
|
-
// first visible data column pins to the start edge (with the checkbox column ahead of it) so the
|
|
1536
|
-
// rest scrolls under a fixed identifier. It rides TanStack's own `columnPinning` state, merged
|
|
1537
|
-
// with the caller's — which wins outright whenever it pins a start column itself.
|
|
1538
|
-
const pinningActive = enablePinning || hasRowActions || autoPinId !== undefined
|
|
1539
|
-
const tablePinning = useMemo(() => {
|
|
1540
|
-
const start =
|
|
1541
|
-
autoPinId === undefined
|
|
1542
|
-
? columnPinning.start
|
|
1543
|
-
: [...(enableRowSelection ? [SELECT_COLUMN_ID] : []), autoPinId]
|
|
1544
|
-
const end = hasRowActions ? [...columnPinning.end, ACTIONS_COLUMN_ID] : columnPinning.end
|
|
1545
|
-
return { start, end }
|
|
1546
|
-
}, [columnPinning, hasRowActions, autoPinId, enableRowSelection])
|
|
1547
|
-
// The fold toggle column leads the row and sticks beside the pinned start cells, so they sit past it.
|
|
1548
|
-
const pinStartOffset = hasFolded && tablePinning.start.length > 0 ? HIT_COARSE : 0
|
|
1549
|
-
const autoPinMinWidth =
|
|
1550
|
-
autoPinId === undefined
|
|
1551
|
-
? undefined
|
|
1552
|
-
: (columns.find((column) => columnDefId(column) === autoPinId)?.minSize ?? PIN_MIN_WIDTH)
|
|
1553
|
-
const tableId = useId()
|
|
1554
|
-
|
|
1555
|
-
const table = useTable({
|
|
1556
|
-
features: basaltTableFeatures,
|
|
1557
|
-
data,
|
|
1558
|
-
columns: tableColumns,
|
|
1559
|
-
defaultColumn: { cell: DEFAULT_CELL },
|
|
1560
|
-
state: {
|
|
1561
|
-
sorting: tableState.sorting,
|
|
1562
|
-
globalFilter,
|
|
1563
|
-
columnFilters: tableState.columnFilters,
|
|
1564
|
-
columnPinning: tablePinning,
|
|
1565
|
-
columnVisibility,
|
|
1566
|
-
...(enablePagination && { pagination: tableState.pagination }),
|
|
1567
|
-
...(enableRowSelection && { rowSelection: tableState.rowSelection }),
|
|
1568
|
-
},
|
|
1569
|
-
onSortingChange: tableState.onSortingChange,
|
|
1570
|
-
onGlobalFilterChange: handleGlobalFilterChange,
|
|
1571
|
-
onColumnFiltersChange: tableState.onColumnFiltersChange,
|
|
1572
|
-
onColumnPinningChange: tableState.onColumnPinningChange,
|
|
1573
|
-
...(enablePagination && { onPaginationChange: tableState.onPaginationChange }),
|
|
1574
|
-
...(enableRowSelection && {
|
|
1575
|
-
enableRowSelection: true,
|
|
1576
|
-
onRowSelectionChange: tableState.onRowSelectionChange,
|
|
1577
|
-
}),
|
|
1578
|
-
...(getRowId !== undefined && { getRowId }),
|
|
1579
|
-
// Every row model is registered on the feature set (v9 has no per-render switch) and BYPASSED by
|
|
1580
|
-
// these flags, which is TanStack's own seam — so a degraded table renders `data` in the order
|
|
1581
|
-
// and completeness the server sent it. Sorting/filtering are forced only by a BREACH, never by
|
|
1582
|
-
// `enableSorting={false}` on its own: that pair still applies an `initialSorting` today (it
|
|
1583
|
-
// disables the header control, not the row model) and a table that is not misreporting has no
|
|
1584
|
-
// business losing it. Pagination is bypassed whenever it is not enabled, or is server-driven.
|
|
1585
|
-
manualSorting: manualSorting || breaches.includes('sorting'),
|
|
1586
|
-
manualFiltering: manualFiltering || breaches.includes('filtering'),
|
|
1587
|
-
manualPagination: !enablePagination || manualPagination,
|
|
1588
|
-
...(enablePagination && {
|
|
1589
|
-
...(manualPagination && rowCount !== undefined && { rowCount }),
|
|
1590
|
-
...(manualPagination && pageCount !== undefined && { pageCount }),
|
|
1591
|
-
}),
|
|
1592
|
-
enableSorting: sortingEnabled,
|
|
1593
|
-
enableColumnPinning: pinningActive,
|
|
1594
|
-
})
|
|
1595
|
-
|
|
1596
|
-
const showSearch = enableGlobalFilter && filteringEnabled
|
|
1597
|
-
const showFacets = hasFacets && filteringEnabled
|
|
1598
|
-
const showToolbar = showSearch || showFacets || Boolean(actions)
|
|
1599
|
-
// The PHONE tier of the toolbar, read off the header row's own width (never the viewport): below
|
|
1600
|
-
// the `regular` container class the facets live behind the one `Filters (n)` pill
|
|
1601
|
-
// (`FilterSet inline={0}`) — a search, a facet pill, `Filters` and the actions cannot share a
|
|
1602
|
-
// ~272px row, and two homes for the same facets is worse than one.
|
|
1603
|
-
const { ref: headerRef, narrow: narrowToolbar } = useNarrowerThan(
|
|
1604
|
-
CONTAINER_CLASSES.regular,
|
|
1605
|
-
showToolbar,
|
|
1606
|
-
)
|
|
1607
|
-
|
|
1608
|
-
// Every colSpan and every skeleton row counts the RENDERED columns: one more than `columns` for
|
|
1609
|
-
// the prepended checkbox column, one more again for the fold-disclosure toggle once anything has
|
|
1610
|
-
// folded — a stale count left the empty state and the error row short of the header.
|
|
1611
|
-
const columnCount =
|
|
1612
|
-
columns.length +
|
|
1613
|
-
(enableRowSelection ? 1 : 0) +
|
|
1614
|
-
(hasRowActions ? 1 : 0) +
|
|
1615
|
-
(hasFolded ? 1 : 0) -
|
|
1616
|
-
foldedColumns.size
|
|
1617
|
-
|
|
1618
|
-
// ARIA column positions (WCAG F102): `aria-colcount` counts the FULL column set — folded and
|
|
1619
|
-
// hidden columns included — and every cell's `aria-colindex` is its 1-based slot in that order,
|
|
1620
|
-
// so a fold leaves a gap a screen-reader user can hear. The fold toggle column is a real cell
|
|
1621
|
-
// leading the row, so while it renders it takes slot 1 and shifts the rest.
|
|
1622
|
-
const fullLeafColumns = pinningActive
|
|
1623
|
-
? [
|
|
1624
|
-
...table.getStartLeafColumns(),
|
|
1625
|
-
...table.getCenterLeafColumns(),
|
|
1626
|
-
...table.getEndLeafColumns(),
|
|
1627
|
-
]
|
|
1628
|
-
: table.getAllLeafColumns()
|
|
1629
|
-
const colIndexOffset = hasFolded ? 1 : 0
|
|
1630
|
-
const colIndexById = new Map(
|
|
1631
|
-
fullLeafColumns.map((column, index) => [column.id, index + 1 + colIndexOffset]),
|
|
1632
|
-
)
|
|
1633
|
-
const ariaColCount = fullLeafColumns.length + colIndexOffset
|
|
1634
|
-
// What the toggle announces: the folded columns' own headers, in column order.
|
|
1635
|
-
const foldedNames = fullLeafColumns
|
|
1636
|
-
.filter((column) => foldedColumns.has(column.id))
|
|
1637
|
-
.map((column) => columnLabel(column))
|
|
1638
|
-
const foldedLabel = foldedNames.join(', ')
|
|
1639
|
-
|
|
1640
|
-
// `getSelectedRowModel()` is TanStack's own memo, so its `rows` array keeps its identity until
|
|
1641
|
-
// the selection or the row model actually moves — which is what makes both memos below hold.
|
|
1642
|
-
const selectedModelRows = enableRowSelection ? table.getSelectedRowModel().rows : undefined
|
|
1643
|
-
const selectedRows = useMemo(
|
|
1644
|
-
() => selectedModelRows?.map((row) => row.original) ?? [],
|
|
1645
|
-
[selectedModelRows],
|
|
1646
|
-
)
|
|
1647
|
-
// `bulkActions` is the caller's function of the selection, and calling it inline rebuilt every
|
|
1648
|
-
// action object on every render of the table — new `onClick` identities into the whole bar, for a
|
|
1649
|
-
// selection that had not changed.
|
|
1650
|
-
const bulkBarActions = useMemo(
|
|
1651
|
-
() =>
|
|
1652
|
-
bulkActions === undefined || selectedRows.length === 0
|
|
1653
|
-
? undefined
|
|
1654
|
-
: bulkActions(selectedRows),
|
|
1655
|
-
[bulkActions, selectedRows],
|
|
1656
|
-
)
|
|
1657
|
-
const headerGroups = pinningActive ? getOrderedHeaderGroups(table) : table.getHeaderGroups()
|
|
1658
|
-
// The rows actually rendered, not `data` — a filter or a page index that matches nothing leaves
|
|
1659
|
-
// `data` non-empty while the body has nothing in it, and a blank body reads as a broken table.
|
|
1660
|
-
const rows = table.getRowModel().rows
|
|
1661
|
-
const stateless = showSkeleton || queryError !== undefined
|
|
1662
|
-
useLayoutEffect(() => {
|
|
1663
|
-
renderedRows.current = rows.length
|
|
1664
|
-
})
|
|
1665
|
-
// Derived during render (React's own seam for state that follows a prop), not in an effect.
|
|
1666
|
-
if (!stateless && rows.length > 0 && rows.length !== lastLoadedRows) {
|
|
1667
|
-
setLastLoadedRows(rows.length)
|
|
1668
|
-
}
|
|
1669
|
-
|
|
1670
|
-
// `stickyHeaderOffset` is a WINDOW-scroll concept — the height of whatever fixed chrome the page
|
|
1671
|
-
// scrolls under (the AppShell header plus `PageBar` row 2). Inside the scroll container it is
|
|
1672
|
-
// always wrong: that box is the sticky header's own scrollport, so the offset parks the `<thead>`
|
|
1673
|
-
// that many pixels DOWN INSIDE the body rather than above it. MEASURED on `/data-stress`
|
|
1674
|
-
// (`stickyHeader` + `minWidth`, no `maxHeight`): `calc(48px + 46px)` put the header at y=339 with
|
|
1675
|
-
// row 1 at y=284 and row 2 at y=327 — the header painted over row 2 at initial scroll, at 1440x900
|
|
1676
|
-
// and 390x844 alike. `overflow-x: auto` computes `overflow-y` to `auto` too, so the container is a
|
|
1677
|
-
// scrollport even with no `maxHeight` and the header never scrolls back into place. The scroller's
|
|
1678
|
-
// own top edge is the only correct anchor here, so the offset is dropped rather than honoured.
|
|
1679
|
-
//
|
|
1680
|
-
// THE ONE SHAPE WHOSE OVERFLOW IS MEASURED, NOT DECLARED. Every other table renders inside a
|
|
1681
|
-
// `Table.ScrollContainer` (see the render branch below), because a bare `<table>` sizes to its
|
|
1682
|
-
// own min-content and a 5-column table is ~450px wide — it widened the whole page at 390px, which
|
|
1683
|
-
// is the defect `tests/layout/no-horizontal-overflow.layout.test.ts` guards. A page-scrolled
|
|
1684
|
-
// sticky header cannot take that container unconditionally, so it takes the wrapper
|
|
1685
|
-
// `useMeasuredContainment` drives instead: bare while the table fits, `overflow-x: auto` once it
|
|
1686
|
-
// does not. Its docblock carries the full accounting.
|
|
1687
|
-
const pageStickyHeader = !scrolls && stickyHeader === true
|
|
1688
|
-
const { wrapperRef: containmentRef, contained } = useMeasuredContainment(
|
|
1689
|
-
pageStickyHeader && !showCards,
|
|
1690
|
-
)
|
|
1691
|
-
const resolvedStickyHeaderOffset = scrolls ? undefined : stickyHeaderOffset
|
|
1692
|
-
// The declared-`minWidth` shape has no fold hook, so its scroller is measured on its own.
|
|
1693
|
-
const { wrapperRef: minWidthScrollerRef, contained: minWidthOverflowing } =
|
|
1694
|
-
useMeasuredContainment(!foldEligible && !showCards)
|
|
1695
|
-
// A scroll container is a keyboard tab stop ONLY while it actually scrolls (WCAG 2.1.1 — a
|
|
1696
|
-
// sighted keyboard user otherwise has no way to reach the clipped columns), and a focusable box
|
|
1697
|
-
// needs a role and a name (axe `scrollable-region-focusable`). The ring is `.scroller`'s.
|
|
1698
|
-
const scrollerLabel = `${title ?? 'Table'}, scrolls horizontally`
|
|
1699
|
-
const scrollerProps = (overflowing: boolean) =>
|
|
1700
|
-
overflowing
|
|
1701
|
-
? { tabIndex: 0, role: 'region', 'aria-label': scrollerLabel, className: classes.scroller }
|
|
1702
|
-
: undefined
|
|
1703
|
-
|
|
1704
|
-
// The error branch the table did not have (components audit #3) carries the query's OWN `refetch`
|
|
1705
|
-
// behind Retry, so the failure is reported where the rows would have been — in a row spanning
|
|
1706
|
-
// every rendered column, or in place of the card list.
|
|
1707
|
-
const errorNode = queryError !== undefined && (
|
|
1708
|
-
<ErrorState
|
|
1709
|
-
error={queryError.error}
|
|
1710
|
-
// A titled table names itself; an untitled one reads its host's title (`Section`, a card)
|
|
1711
|
-
// through `ErrorState`, which falls back to the bare "Could not load" outside any host.
|
|
1712
|
-
{...(title !== undefined && { title: `Could not load ${title}` })}
|
|
1713
|
-
tier="section"
|
|
1714
|
-
retrying={queryError.fetchStatus === 'fetching'}
|
|
1715
|
-
onRetry={() => void queryError.refetch()}
|
|
1716
|
-
/>
|
|
1717
|
-
)
|
|
1718
|
-
const emptyNode = (
|
|
1719
|
-
<HostTitleContext value={title}>
|
|
1720
|
-
{emptyState ?? <EmptyState tier="section" title="No data to display." />}
|
|
1721
|
-
</HostTitleContext>
|
|
1722
|
-
)
|
|
1723
|
-
|
|
1724
|
-
// The cells in render order (start → center → end) with only the visible ones — the skeleton rows
|
|
1725
|
-
// mirror the header with it.
|
|
1726
|
-
const orderedVisibleColumns = pinningActive
|
|
1727
|
-
? [
|
|
1728
|
-
...table.getStartVisibleLeafColumns(),
|
|
1729
|
-
...table.getCenterVisibleLeafColumns(),
|
|
1730
|
-
...table.getEndVisibleLeafColumns(),
|
|
1731
|
-
]
|
|
1732
|
-
: table.getVisibleLeafColumns()
|
|
1733
|
-
// One description of every sticky cell, read by the header, skeleton and body sites alike.
|
|
1734
|
-
const pinCtx: PinContext<T> = {
|
|
1735
|
-
table,
|
|
1736
|
-
startOffset: pinStartOffset,
|
|
1737
|
-
autoPinId,
|
|
1738
|
-
autoPinMinWidth,
|
|
1739
|
-
}
|
|
1740
|
-
const toggleCell = foldToggleCellProps(pinCtx)
|
|
1741
|
-
const { fitIds, spacer } = planColumnSizing(
|
|
1742
|
-
orderedVisibleColumns,
|
|
1743
|
-
new Set([SELECT_COLUMN_ID, ACTIONS_COLUMN_ID]),
|
|
1744
|
-
// Every row, not the page: paging, sorting or filtering must not move a column's width.
|
|
1745
|
-
table.getCoreRowModel().rows,
|
|
1746
|
-
)
|
|
1747
|
-
const fitAttr = (id: string) => (fitIds.has(id) ? { 'data-fit': true } : undefined)
|
|
1748
|
-
// colSpan covers the rendered cells, the trailing spacer included.
|
|
1749
|
-
const spanCount = columnCount + (spacer ? 1 : 0)
|
|
1750
|
-
// A page of rows when paginated, else what the table last showed, else the caller's guess.
|
|
1751
|
-
const skeletonCount = enablePagination
|
|
1752
|
-
? table.state.pagination.pageSize
|
|
1753
|
-
: lastLoadedRows > 0
|
|
1754
|
-
? lastLoadedRows
|
|
1755
|
-
: (skeletonRows ?? 5)
|
|
1756
|
-
|
|
1757
|
-
const tableNode = (
|
|
1758
|
-
<Table
|
|
1759
|
-
className={cx(
|
|
1760
|
-
classes.table,
|
|
1761
|
-
pageStickyHeader && !contained && classes.pageSticky,
|
|
1762
|
-
classNames?.table,
|
|
1763
|
-
)}
|
|
1764
|
-
aria-colcount={ariaColCount}
|
|
1765
|
-
{...(striped !== undefined && { striped })}
|
|
1766
|
-
{...(highlightOnHover !== undefined && { highlightOnHover })}
|
|
1767
|
-
{...(stickyHeader !== undefined && { stickyHeader })}
|
|
1768
|
-
{...(resolvedStickyHeaderOffset !== undefined && {
|
|
1769
|
-
stickyHeaderOffset: resolvedStickyHeaderOffset,
|
|
1770
|
-
})}
|
|
1771
|
-
{...(verticalSpacing !== undefined && { verticalSpacing })}
|
|
1772
|
-
{...(horizontalSpacing !== undefined && { horizontalSpacing })}
|
|
1773
|
-
{...(withRowBorders !== undefined && { withRowBorders })}
|
|
1774
|
-
withTableBorder={withTableBorder}
|
|
1775
|
-
>
|
|
1776
|
-
<Table.Thead>
|
|
1777
|
-
{headerGroups.map((headerGroup) => (
|
|
1778
|
-
<Table.Tr key={headerGroup.id}>
|
|
1779
|
-
{/* The disclosure toggle column sorts and selects nothing: its header says that columns
|
|
1780
|
-
are folded, and which. */}
|
|
1781
|
-
{hasFolded && (
|
|
1782
|
-
<Table.Th {...toggleCell} aria-colindex={1}>
|
|
1783
|
-
<FoldHeaderLabel names={foldedNames} />
|
|
1784
|
-
</Table.Th>
|
|
1785
|
-
)}
|
|
1786
|
-
{headerGroup.headers.map((header) => {
|
|
1787
|
-
const canSort = sortingEnabled && header.column.getCanSort()
|
|
1788
|
-
const sorted = header.column.getIsSorted()
|
|
1789
|
-
const toggleSorting = header.column.getToggleSortingHandler()
|
|
1790
|
-
const pinned = pinningActive ? pinnedCellProps(pinCtx, header.column) : undefined
|
|
1791
|
-
const align = resolveAlign(header.column) ?? kindAlign(resolveKind(header.column))
|
|
1792
|
-
const isSelectColumn = header.column.id === SELECT_COLUMN_ID
|
|
1793
|
-
const isFoldCandidate = !isSelectColumn && header.column.id !== ACTIONS_COLUMN_ID
|
|
1794
|
-
return (
|
|
1795
|
-
<Table.Th
|
|
1796
|
-
key={header.id}
|
|
1797
|
-
aria-colindex={colIndexById.get(header.column.id)}
|
|
1798
|
-
className={cx(isSelectColumn && classes.selectCell, pinned?.className)}
|
|
1799
|
-
{...fitAttr(header.column.id)}
|
|
1800
|
-
// The measured fold's own read (`useColumnFold`): a candidate's width plans the
|
|
1801
|
-
// fold, the checkbox / actions column's is fixed overhead against it.
|
|
1802
|
-
{...{
|
|
1803
|
-
[isFoldCandidate ? FOLD_ID_ATTR : FIXED_ID_ATTR]: header.column.id,
|
|
1804
|
-
}}
|
|
1805
|
-
onClick={canSort ? toggleSorting : undefined}
|
|
1806
|
-
onKeyDown={
|
|
1807
|
-
canSort
|
|
1808
|
-
? (event) => {
|
|
1809
|
-
if (event.key !== 'Enter' && event.key !== ' ') return
|
|
1810
|
-
event.preventDefault()
|
|
1811
|
-
toggleSorting?.(event)
|
|
1812
|
-
}
|
|
1813
|
-
: undefined
|
|
1814
|
-
}
|
|
1815
|
-
tabIndex={canSort ? 0 : undefined}
|
|
1816
|
-
aria-sort={canSort ? (sorted ? ARIA_SORT[sorted] : 'none') : undefined}
|
|
1817
|
-
style={{
|
|
1818
|
-
...(canSort ? { cursor: 'pointer', userSelect: 'none' } : undefined),
|
|
1819
|
-
...(align !== undefined && { textAlign: align }),
|
|
1820
|
-
...pinned?.style,
|
|
1821
|
-
}}
|
|
1822
|
-
>
|
|
1823
|
-
{header.isPlaceholder ? null : <FlexRender header={header} />}
|
|
1824
|
-
{canSort && <SortIndicator direction={sorted} />}
|
|
1825
|
-
</Table.Th>
|
|
1826
|
-
)
|
|
1827
|
-
})}
|
|
1828
|
-
{spacer && <Table.Th className={classes.spacer} aria-hidden />}
|
|
1829
|
-
</Table.Tr>
|
|
1830
|
-
))}
|
|
1831
|
-
</Table.Thead>
|
|
1832
|
-
<Table.Tbody>
|
|
1833
|
-
{queryError !== undefined ? (
|
|
1834
|
-
<Table.Tr>
|
|
1835
|
-
<Table.Td colSpan={spanCount}>{errorNode}</Table.Td>
|
|
1836
|
-
</Table.Tr>
|
|
1837
|
-
) : showSkeleton ? (
|
|
1838
|
-
// The same visible columns as the header — a folded table loads folded, and the pinned
|
|
1839
|
-
// identifier keeps its sticky cell, so nothing shifts when the rows arrive.
|
|
1840
|
-
Array.from({ length: skeletonCount }, (_, rowIndex) => (
|
|
1841
|
-
<Table.Tr key={`skeleton-${rowIndex}`}>
|
|
1842
|
-
{hasFolded && (
|
|
1843
|
-
<Table.Td {...toggleCell} aria-colindex={1}>
|
|
1844
|
-
<Skeleton h={12} w={12} radius="sm" display="inline-block" />
|
|
1845
|
-
</Table.Td>
|
|
1846
|
-
)}
|
|
1847
|
-
{orderedVisibleColumns.map((column) => {
|
|
1848
|
-
const pinned = pinningActive ? pinnedCellProps(pinCtx, column) : undefined
|
|
1849
|
-
const kind = resolveKind(column)
|
|
1850
|
-
// The loaded grid: a content-sized column keeps the width it last measured, the
|
|
1851
|
-
// others the kind's floor, so the rows arrive without the columns moving.
|
|
1852
|
-
const measuredWidth = fitIds.has(column.id)
|
|
1853
|
-
? measuredWidths.get(column.id)
|
|
1854
|
-
: undefined
|
|
1855
|
-
return (
|
|
1856
|
-
<Table.Td
|
|
1857
|
-
key={column.id}
|
|
1858
|
-
aria-colindex={colIndexById.get(column.id)}
|
|
1859
|
-
className={pinned?.className}
|
|
1860
|
-
{...fitAttr(column.id)}
|
|
1861
|
-
style={{
|
|
1862
|
-
minWidth:
|
|
1863
|
-
measuredWidth === undefined ? skeletonMinWidth(column) : measuredWidth,
|
|
1864
|
-
...pinned?.style,
|
|
1865
|
-
}}
|
|
1866
|
-
>
|
|
1867
|
-
{column.id === SELECT_COLUMN_ID || column.id === ACTIONS_COLUMN_ID ? null : (
|
|
1868
|
-
<KindSkeleton
|
|
1869
|
-
kind={kind}
|
|
1870
|
-
right={(resolveAlign(column) ?? kindAlign(kind)) === 'right'}
|
|
1871
|
-
/>
|
|
1872
|
-
)}
|
|
1873
|
-
</Table.Td>
|
|
1874
|
-
)
|
|
1875
|
-
})}
|
|
1876
|
-
{spacer && <Table.Td aria-hidden />}
|
|
1877
|
-
</Table.Tr>
|
|
1878
|
-
))
|
|
1879
|
-
) : rows.length === 0 ? (
|
|
1880
|
-
<Table.Tr>
|
|
1881
|
-
<Table.Td colSpan={spanCount}>{emptyNode}</Table.Td>
|
|
1882
|
-
</Table.Tr>
|
|
1883
|
-
) : (
|
|
1884
|
-
rows.map((row) => {
|
|
1885
|
-
const cells = pinningActive
|
|
1886
|
-
? [
|
|
1887
|
-
...row.getStartVisibleCells(),
|
|
1888
|
-
...row.getCenterVisibleCells(),
|
|
1889
|
-
...row.getEndVisibleCells(),
|
|
1890
|
-
]
|
|
1891
|
-
: row.getVisibleCells()
|
|
1892
|
-
const rowExpanded = hasFolded && foldRows.expanded.has(row.id)
|
|
1893
|
-
return (
|
|
1894
|
-
<Fragment key={row.id}>
|
|
1895
|
-
<Table.Tr
|
|
1896
|
-
{...(enableRowSelection && row.getIsSelected() && { 'data-selected': true })}
|
|
1897
|
-
{...activationProps(onRowActivate, row.original)}
|
|
1898
|
-
>
|
|
1899
|
-
{hasFolded && (
|
|
1900
|
-
<Table.Td {...toggleCell} aria-colindex={1}>
|
|
1901
|
-
<FoldToggle
|
|
1902
|
-
expanded={rowExpanded}
|
|
1903
|
-
controlsId={`${tableId}-${row.id}-fold`}
|
|
1904
|
-
foldedLabel={foldedLabel}
|
|
1905
|
-
onToggle={() => foldRows.toggle(row.id)}
|
|
1906
|
-
/>
|
|
1907
|
-
</Table.Td>
|
|
1908
|
-
)}
|
|
1909
|
-
{cells.map((cell) => {
|
|
1910
|
-
const pinned = pinningActive ? pinnedCellProps(pinCtx, cell.column) : undefined
|
|
1911
|
-
const pinnedValue = cell.column.id === autoPinId ? cell.getValue() : undefined
|
|
1912
|
-
const kind = resolveKind(cell.column)
|
|
1913
|
-
const align = resolveAlign(cell.column) ?? kindAlign(kind)
|
|
1914
|
-
return (
|
|
1915
|
-
<Table.Td
|
|
1916
|
-
key={cell.id}
|
|
1917
|
-
aria-colindex={colIndexById.get(cell.column.id)}
|
|
1918
|
-
className={cx(
|
|
1919
|
-
cell.column.id === SELECT_COLUMN_ID && classes.selectCell,
|
|
1920
|
-
kind !== undefined && kindClass(kind),
|
|
1921
|
-
pinned?.className,
|
|
1922
|
-
)}
|
|
1923
|
-
// The pinned column ellipsizes past its cap — the full text stays reachable.
|
|
1924
|
-
{...((typeof pinnedValue === 'string' ||
|
|
1925
|
-
typeof pinnedValue === 'number') && {
|
|
1926
|
-
title: String(pinnedValue),
|
|
1927
|
-
})}
|
|
1928
|
-
{...(kind !== undefined && { 'data-kind': kind })}
|
|
1929
|
-
{...fitAttr(cell.column.id)}
|
|
1930
|
-
{...(stopsRowActivation(cell) && {
|
|
1931
|
-
// The label's ::after fills the select cell, so a tap on it bubbles to the
|
|
1932
|
-
// row; the actions menu portals out but React bubbles through the portal.
|
|
1933
|
-
onClick: (event: ReactMouseEvent) => event.stopPropagation(),
|
|
1934
|
-
})}
|
|
1935
|
-
style={{
|
|
1936
|
-
...(kind === undefined &&
|
|
1937
|
-
typeof cell.getValue() === 'number' &&
|
|
1938
|
-
cell.column.columnDef.meta?.numeral !== false
|
|
1939
|
-
? NUMERIC_CELL_STYLE
|
|
1940
|
-
: undefined),
|
|
1941
|
-
...(align !== undefined && { textAlign: align }),
|
|
1942
|
-
...pinned?.style,
|
|
1943
|
-
}}
|
|
1944
|
-
>
|
|
1945
|
-
<CellContent cell={cell} />
|
|
1946
|
-
</Table.Td>
|
|
1947
|
-
)
|
|
1948
|
-
})}
|
|
1949
|
-
{spacer && <Table.Td aria-hidden />}
|
|
1950
|
-
</Table.Tr>
|
|
1951
|
-
{rowExpanded && (
|
|
1952
|
-
<Table.Tr
|
|
1953
|
-
id={`${tableId}-${row.id}-fold`}
|
|
1954
|
-
className={classes.foldDisclosureRowTr}
|
|
1955
|
-
>
|
|
1956
|
-
<Table.Td
|
|
1957
|
-
colSpan={spanCount}
|
|
1958
|
-
className={classes.foldDisclosureCell}
|
|
1959
|
-
aria-colindex={1}
|
|
1960
|
-
>
|
|
1961
|
-
<RowDisclosure row={row} folded={foldedColumns} />
|
|
1962
|
-
</Table.Td>
|
|
1963
|
-
</Table.Tr>
|
|
1964
|
-
)}
|
|
1965
|
-
</Fragment>
|
|
1966
|
-
)
|
|
1967
|
-
})
|
|
1968
|
-
)}
|
|
1969
|
-
</Table.Tbody>
|
|
1970
|
-
</Table>
|
|
1971
|
-
)
|
|
1972
|
-
|
|
1973
|
-
// The `renderCard` body — the same processed rows, states and activation as the table's.
|
|
1974
|
-
const renderCardList = () => (
|
|
1975
|
-
<Stack gap="xs" className={cx(classNames?.table)}>
|
|
1976
|
-
{queryError !== undefined
|
|
1977
|
-
? errorNode
|
|
1978
|
-
: showSkeleton
|
|
1979
|
-
? Array.from({ length: skeletonCount }, (_, index) => (
|
|
1980
|
-
<Skeleton key={`skeleton-${index}`} height={48} radius="md" />
|
|
1981
|
-
))
|
|
1982
|
-
: rows.length === 0
|
|
1983
|
-
? emptyNode
|
|
1984
|
-
: rows.map((row) => (
|
|
1985
|
-
<Box key={row.id} {...activationProps(onRowActivate, row.original)}>
|
|
1986
|
-
{renderCard?.(row.original)}
|
|
1987
|
-
</Box>
|
|
1988
|
-
))}
|
|
1989
|
-
</Stack>
|
|
1990
|
-
)
|
|
1991
|
-
|
|
1992
|
-
const paginationState = table.state.pagination
|
|
1993
|
-
// The CURRENT page size is always an option, even when it is not in `pageSizeOptions`. Mantine's
|
|
1994
|
-
// Select renders EMPTY when its `value` matches no row, so a table opened at
|
|
1995
|
-
// `initialPagination.pageSize: 5` against the default `[10, 25, 50, 100]` showed a blank
|
|
1996
|
-
// rows-per-page box — a control stating nothing, next to a range label stating `1–5`.
|
|
1997
|
-
const pageSizeRows = [...new Set([...pageSizeOptions, paginationState.pageSize])]
|
|
1998
|
-
.sort((a, b) => a - b)
|
|
1999
|
-
.map((size) => ({ value: String(size), label: `${size} / page` }))
|
|
2000
|
-
const total = table.getRowCount()
|
|
2001
|
-
const rangeStart = total === 0 ? 0 : paginationState.pageIndex * paginationState.pageSize + 1
|
|
2002
|
-
const rangeEnd = Math.min((paginationState.pageIndex + 1) * paginationState.pageSize, total)
|
|
2003
|
-
// A page past the end (server-driven, the count shrank) keeps its pager so the reader can step
|
|
2004
|
-
// back, but states no range: "Showing 91–7 of 7" is a contradiction.
|
|
2005
|
-
const rangeInBounds = rangeStart <= rangeEnd || total === 0
|
|
2006
|
-
// Only a table that has NO rows drops its footer: a filter or search that matches nothing keeps
|
|
2007
|
-
// it (the pager and "Showing 0–0 of 0" belong to a table that has rows to page). Loading and
|
|
2008
|
-
// error keep the box too, the rows are about to land.
|
|
2009
|
-
const unfilteredCount = manualPagination ? total : table.getPreFilteredRowModel().rows.length
|
|
2010
|
-
const showFooter = enablePagination && (stateless || unfilteredCount > 0)
|
|
2011
|
-
|
|
2012
|
-
return (
|
|
2013
|
-
<div
|
|
2014
|
-
{...pickDataAttributes(props)}
|
|
2015
|
-
ref={projectionRootRef}
|
|
2016
|
-
className={cx(classNames?.root, className)}
|
|
2017
|
-
{...(style !== undefined && { style })}
|
|
2018
|
-
>
|
|
2019
|
-
{/*
|
|
2020
|
-
* ONE header row: the `WidgetHeader` (title · count) on the left, the toolbar right-aligned in
|
|
2021
|
-
* the SAME row. It was two stacked rows with `mb="xs"` on each, so a titled table with search
|
|
2022
|
-
* spent title → 11px → search → 11px → thead before a single datum appeared, and the toolbar
|
|
2023
|
-
* read as page furniture rather than as this table's controls.
|
|
2024
|
-
*
|
|
2025
|
-
* `wrap="wrap"` is the header row's own: a toolbar whose natural width exceeds what is left
|
|
2026
|
-
* beside a title drops under it, full width. The TOOLBAR itself never wraps from the `compact`
|
|
2027
|
-
* container class up (`.toolbar`) — the search shrinks to its floor and `FilterSet` folds the
|
|
2028
|
-
* rest behind `+N`. `align="center"` puts the 28px controls on the title's optical line.
|
|
2029
|
-
*/}
|
|
2030
|
-
{(title !== undefined || showToolbar) && (
|
|
2031
|
-
<Group
|
|
2032
|
-
ref={headerRef}
|
|
2033
|
-
className={classes.tableHeader}
|
|
2034
|
-
justify="space-between"
|
|
2035
|
-
align="center"
|
|
2036
|
-
wrap="wrap"
|
|
2037
|
-
gap="xs"
|
|
2038
|
-
mb="xs"
|
|
2039
|
-
>
|
|
2040
|
-
{title !== undefined ? (
|
|
2041
|
-
<Box style={TABLE_HEADER_LEAD_STYLE}>
|
|
2042
|
-
<WidgetHeader
|
|
2043
|
-
tier="widget"
|
|
2044
|
-
title={title}
|
|
2045
|
-
{...(icon !== undefined && { icon })}
|
|
2046
|
-
{...(subtitle !== undefined && { subtitle })}
|
|
2047
|
-
// A count is a figure read from rows: none while the rows are loading or failed.
|
|
2048
|
-
{...(!stateless && { count: table.getRowCount() })}
|
|
2049
|
-
/>
|
|
2050
|
-
</Box>
|
|
2051
|
-
) : null}
|
|
2052
|
-
{showToolbar && (
|
|
2053
|
-
<CtlSlot>
|
|
2054
|
-
<Group
|
|
2055
|
-
className={cx(classes.toolbar, classNames?.toolbar)}
|
|
2056
|
-
data-basalt-dense
|
|
2057
|
-
gap="xs"
|
|
2058
|
-
align="center"
|
|
2059
|
-
style={TABLE_TOOLBAR_STYLE}
|
|
2060
|
-
>
|
|
2061
|
-
{showSearch && (
|
|
2062
|
-
<TextInput
|
|
2063
|
-
size="ctl"
|
|
2064
|
-
classNames={{ wrapper: classes.toolbarWrapper, input: classes.toolbarInput }}
|
|
2065
|
-
wrapperProps={{ 'data-basalt-hit': true }}
|
|
2066
|
-
radius="md"
|
|
2067
|
-
style={TABLE_SEARCH_STYLE}
|
|
2068
|
-
placeholder={globalFilterPlaceholder}
|
|
2069
|
-
leftSection={searchIcon}
|
|
2070
|
-
value={searchDraft}
|
|
2071
|
-
onChange={(event) => {
|
|
2072
|
-
setSearchDraft(event.currentTarget.value)
|
|
2073
|
-
commitSearch(event.currentTarget.value)
|
|
2074
|
-
}}
|
|
2075
|
-
/>
|
|
2076
|
-
)}
|
|
2077
|
-
{showFacets && (
|
|
2078
|
-
<FilterSet inline={narrowToolbar ? 0 : 1}>
|
|
2079
|
-
{facets?.map((facet) => {
|
|
2080
|
-
const column = resolveFacetColumn(table, facet)
|
|
2081
|
-
if (!column) return null
|
|
2082
|
-
return facet.multiple ? (
|
|
2083
|
-
<MultiSelectFilter
|
|
2084
|
-
key={facet.columnId}
|
|
2085
|
-
field={facetMultiHandle(column, facet)}
|
|
2086
|
-
label={facet.label}
|
|
2087
|
-
/>
|
|
2088
|
-
) : (
|
|
2089
|
-
<EnumFilter
|
|
2090
|
-
key={facet.columnId}
|
|
2091
|
-
field={facetEnumHandle(column, facet)}
|
|
2092
|
-
label={facet.label}
|
|
2093
|
-
/>
|
|
2094
|
-
)
|
|
2095
|
-
})}
|
|
2096
|
-
</FilterSet>
|
|
2097
|
-
)}
|
|
2098
|
-
{actions !== undefined && (
|
|
2099
|
-
<div className={classes.toolbarActions}>
|
|
2100
|
-
<BarActionSlot actions={actions} />
|
|
2101
|
-
</div>
|
|
2102
|
-
)}
|
|
2103
|
-
</Group>
|
|
2104
|
-
</CtlSlot>
|
|
2105
|
-
)}
|
|
2106
|
-
</Group>
|
|
2107
|
-
)}
|
|
2108
|
-
{bulkBarActions !== undefined && (
|
|
2109
|
-
<BulkActionBar count={selectedRows.length} actions={bulkBarActions} />
|
|
2110
|
-
)}
|
|
2111
|
-
{showCards ? (
|
|
2112
|
-
maxHeight === undefined ? (
|
|
2113
|
-
renderCardList()
|
|
2114
|
-
) : (
|
|
2115
|
-
<ScrollArea.Autosize mah={maxHeight} type="hover" scrollbars="y">
|
|
2116
|
-
{renderCardList()}
|
|
2117
|
-
</ScrollArea.Autosize>
|
|
2118
|
-
)
|
|
2119
|
-
) : !foldEligible ? (
|
|
2120
|
-
// An explicit `minWidth` is the one genuinely DECLARED horizontal floor — the column fold
|
|
2121
|
-
// never engages here (see `foldEligible`, above), so this shape keeps its exact
|
|
2122
|
-
// pre-existing DOM: no extra measuring wrapper for a table nothing folds.
|
|
2123
|
-
<Table.ScrollContainer
|
|
2124
|
-
ref={minWidthScrollerRef}
|
|
2125
|
-
type="native"
|
|
2126
|
-
minWidth={minWidth ?? 0}
|
|
2127
|
-
maxHeight={maxHeight}
|
|
2128
|
-
{...scrollerProps(minWidthOverflowing)}
|
|
2129
|
-
>
|
|
2130
|
-
{tableNode}
|
|
2131
|
-
</Table.ScrollContainer>
|
|
2132
|
-
) : (
|
|
2133
|
-
// The column fold's own measuring box (`useColumnFold`) — wraps every remaining shape,
|
|
2134
|
-
// `maxHeight`-only included: a vertical cap is orthogonal to column width, so a
|
|
2135
|
-
// `stickyHeader` + `maxHeight` table (the pairing this package's own docs recommend) still
|
|
2136
|
-
// folds instead of silently regressing to horizontal scroll. A plain block box, so it
|
|
2137
|
-
// constrains nothing on its own; `foldWrapperRef` only reads it.
|
|
2138
|
-
<div ref={foldWrapperRef} className={classes.foldWrapper}>
|
|
2139
|
-
{pageStickyHeader ? (
|
|
2140
|
-
// Pinning takes this wrapper too — a pinned column's offsets are `position: sticky` on
|
|
2141
|
-
// the cells and need no overflow box of their own, so the `overflow-x: auto` Box that
|
|
2142
|
-
// used to sit here was the exact inert-sticky defect this shape exists to avoid.
|
|
2143
|
-
<div
|
|
2144
|
-
ref={containmentRef}
|
|
2145
|
-
className={cx(classes.containment, contained && classes.scroller)}
|
|
2146
|
-
data-contained={contained ? 'true' : 'false'}
|
|
2147
|
-
{...(contained && {
|
|
2148
|
-
tabIndex: 0,
|
|
2149
|
-
role: 'region',
|
|
2150
|
-
'aria-label': scrollerLabel,
|
|
2151
|
-
})}
|
|
2152
|
-
>
|
|
2153
|
-
{tableNode}
|
|
2154
|
-
</div>
|
|
2155
|
-
) : (
|
|
2156
|
-
// `pageStickyHeader` is false whenever `maxHeight` is set (`scrolls` above), so a vertical
|
|
2157
|
-
// cap lands here — its own `ScrollArea` scrollport, just with no `minWidth` floor.
|
|
2158
|
-
<Table.ScrollContainer
|
|
2159
|
-
type="native"
|
|
2160
|
-
minWidth={0}
|
|
2161
|
-
maxHeight={maxHeight}
|
|
2162
|
-
{...scrollerProps(foldOverflowing)}
|
|
2163
|
-
>
|
|
2164
|
-
{tableNode}
|
|
2165
|
-
</Table.ScrollContainer>
|
|
2166
|
-
)}
|
|
2167
|
-
</div>
|
|
2168
|
-
)}
|
|
2169
|
-
{showFooter && (
|
|
2170
|
-
<Group
|
|
2171
|
-
className={cx(classNames?.footer)}
|
|
2172
|
-
justify="space-between"
|
|
2173
|
-
mt="xs"
|
|
2174
|
-
wrap="wrap"
|
|
2175
|
-
gap="xs"
|
|
2176
|
-
align="center"
|
|
2177
|
-
>
|
|
2178
|
-
<Text
|
|
2179
|
-
// Hidden, not removed: the footer keeps its height and nothing shifts when rows land.
|
|
2180
|
-
style={
|
|
2181
|
-
stateless || !rangeInBounds
|
|
2182
|
-
? { ...RANGE_LABEL_STYLE, visibility: 'hidden' }
|
|
2183
|
-
: RANGE_LABEL_STYLE
|
|
2184
|
-
}
|
|
2185
|
-
>
|
|
2186
|
-
Showing {rangeStart}–{rangeEnd}
|
|
2187
|
-
{totalIsAuthoritative ? ` of ${total}` : ''}
|
|
2188
|
-
</Text>
|
|
2189
|
-
<Group gap="xs" align="center" data-basalt-dense>
|
|
2190
|
-
{/* theme-allow control-outside-home — the table's own page-size setting, not a page
|
|
2191
|
-
filter: its state is the table's pagination, owned inside this component. */}
|
|
2192
|
-
<Select
|
|
2193
|
-
size="ctl"
|
|
2194
|
-
classNames={{ wrapper: classes.toolbarWrapper, input: classes.toolbarInput }}
|
|
2195
|
-
wrapperProps={{ 'data-basalt-hit': true }}
|
|
2196
|
-
radius="md"
|
|
2197
|
-
w={PAGE_SIZE_WIDTH}
|
|
2198
|
-
data={pageSizeRows}
|
|
2199
|
-
value={String(paginationState.pageSize)}
|
|
2200
|
-
onChange={(value) => value && table.setPageSize(Number(value))}
|
|
2201
|
-
allowDeselect={false}
|
|
2202
|
-
/>
|
|
2203
|
-
<CtlSlot>
|
|
2204
|
-
{/* `Pagination` carries no `ctl`-tier entry in `CTL_THEME` (its own controls resolve
|
|
2205
|
-
the 44px coarse hit floor through `PaginationControl`'s theme-level
|
|
2206
|
-
`data-basalt-hit`, not through the `ctl` size), so `CtlSlot` cannot restore this
|
|
2207
|
-
size on its own — an explicit `size="sm"` is the visual this footer always had. */}
|
|
2208
|
-
<Pagination
|
|
2209
|
-
size="sm"
|
|
2210
|
-
// Mantine writes `--pagination-control-size` inline from `size`, which a class cannot
|
|
2211
|
-
// outrank — `vars` is the seam. The `ctl` height of the dense group above: 28 at a
|
|
2212
|
-
// fine pointer, 32 at a coarse one, the Select's own height either way. The labels
|
|
2213
|
-
// read `sm`, the cells' size, whatever the `size` prop maps to.
|
|
2214
|
-
vars={() => ({
|
|
2215
|
-
root: {
|
|
2216
|
-
'--pagination-control-size':
|
|
2217
|
-
'calc(var(--vx-space-control-height-ctl) * var(--mantine-scale))',
|
|
2218
|
-
'--pagination-control-fz': 'var(--vx-text-sm)',
|
|
2219
|
-
},
|
|
2220
|
-
})}
|
|
2221
|
-
radius="md"
|
|
2222
|
-
total={Math.max(table.getPageCount(), 1)}
|
|
2223
|
-
value={paginationState.pageIndex + 1}
|
|
2224
|
-
onChange={(page) => table.setPageIndex(page - 1)}
|
|
2225
|
-
/>
|
|
2226
|
-
</CtlSlot>
|
|
2227
|
-
</Group>
|
|
2228
|
-
</Group>
|
|
2229
|
-
)}
|
|
2230
|
-
</div>
|
|
2231
|
-
)
|
|
2232
|
-
}
|