basalt-ui 1.25.0 → 1.27.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 +8 -6
- package/CHANGELOG.md +26 -0
- package/MIGRATING.md +815 -23
- package/README.md +45 -32
- package/agent/rules/basalt-batteries.md +205 -0
- package/agent/rules/basalt-charts.md +125 -555
- package/agent/rules/basalt-controls.md +160 -0
- package/agent/rules/basalt-mantine.md +146 -439
- package/agent/rules/basalt-state.md +118 -96
- package/agent/rules/basalt-tokens.md +126 -288
- package/agent/skills/basalt-app/SKILL.md +70 -195
- package/agent/skills/basalt-charts/SKILL.md +54 -234
- package/agent/skills/basalt-design/SKILL.md +56 -248
- package/agent/templates/CLAUDE-block.md.tpl +31 -40
- package/agent/templates/DESIGN.md.tpl +22 -51
- package/configs/oxlint-plugin.js +1465 -36
- package/configs/oxlint-plugin.test.ts +1190 -11
- package/configs/oxlint.json +11 -3
- package/dist/charts/cursor/resolve.d.ts +18 -0
- package/dist/charts/cursor/resolve.d.ts.map +1 -1
- package/dist/charts/cursor/resolve.js +15 -6
- package/dist/charts/cursor/scope.d.ts +6 -3
- package/dist/charts/cursor/scope.d.ts.map +1 -1
- package/dist/charts/cursor/store.d.ts +5 -1
- package/dist/charts/cursor/store.d.ts.map +1 -1
- package/dist/charts/cursor/store.js +4 -4
- package/dist/charts/hooks/useChartCursor.d.ts.map +1 -1
- package/dist/charts/hooks/useChartCursor.js +9 -8
- package/dist/charts/index.d.ts +2 -2
- package/dist/charts/index.d.ts.map +1 -1
- package/dist/charts/primitives/ChartCard.d.ts +34 -9
- package/dist/charts/primitives/ChartCard.d.ts.map +1 -1
- package/dist/charts/primitives/ChartCard.js +29 -114
- package/dist/charts/primitives/ChartCard.test.d.ts +2 -0
- package/dist/charts/primitives/ChartCard.test.d.ts.map +1 -0
- package/dist/charts/sparklines/BarSparkline.d.ts +26 -2
- package/dist/charts/sparklines/BarSparkline.d.ts.map +1 -1
- package/dist/charts/sparklines/BarSparkline.js +18 -4
- package/dist/cli/check-coverage.test.d.ts +2 -0
- package/dist/cli/check-coverage.test.d.ts.map +1 -0
- package/dist/cli/index.d.ts +67 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +225 -7
- package/dist/connectivity/connectivity-indicator.d.ts +4 -1
- package/dist/connectivity/connectivity-indicator.d.ts.map +1 -1
- package/dist/connectivity/connectivity-indicator.js +1 -1
- package/dist/content/index.d.ts +5 -3
- package/dist/content/index.d.ts.map +1 -1
- package/dist/content/index.js +4 -2
- package/dist/content/prose.module.css +7 -28
- package/dist/controls/actions.d.ts +169 -0
- package/dist/controls/actions.d.ts.map +1 -0
- package/dist/controls/actions.js +287 -0
- package/dist/controls/actions.module.css +62 -0
- package/dist/controls/actions.module.css.d.ts +13 -0
- package/dist/controls/actions.test.d.ts +2 -0
- package/dist/controls/actions.test.d.ts.map +1 -0
- package/dist/controls/actions.type-guard.test.d.ts +2 -0
- package/dist/controls/actions.type-guard.test.d.ts.map +1 -0
- package/dist/controls/compare-filter.d.ts +41 -0
- package/dist/controls/compare-filter.d.ts.map +1 -0
- package/dist/controls/compare-filter.js +23 -0
- package/dist/controls/control-group.d.ts +19 -0
- package/dist/controls/control-group.d.ts.map +1 -0
- package/dist/controls/control-group.js +20 -0
- package/dist/controls/control-group.test.d.ts +2 -0
- package/dist/controls/control-group.test.d.ts.map +1 -0
- package/dist/controls/controls.module.css +542 -0
- package/dist/controls/controls.module.css.d.ts +35 -0
- package/dist/controls/controls.router.test.d.ts +2 -0
- package/dist/controls/controls.router.test.d.ts.map +1 -0
- package/dist/controls/enum-filter.d.ts +39 -0
- package/dist/controls/enum-filter.d.ts.map +1 -0
- package/dist/controls/enum-filter.js +93 -0
- package/dist/controls/filter-context.d.ts +60 -0
- package/dist/controls/filter-context.d.ts.map +1 -0
- package/dist/controls/filter-context.js +69 -0
- package/dist/controls/filter-pill.d.ts +28 -0
- package/dist/controls/filter-pill.d.ts.map +1 -0
- package/dist/controls/filter-pill.js +70 -0
- package/dist/controls/filter-set.d.ts +13 -0
- package/dist/controls/filter-set.d.ts.map +1 -0
- package/dist/controls/filter-set.js +125 -0
- package/dist/controls/filter-set.test.d.ts +2 -0
- package/dist/controls/filter-set.test.d.ts.map +1 -0
- package/dist/controls/filter-sheet.d.ts +117 -0
- package/dist/controls/filter-sheet.d.ts.map +1 -0
- package/dist/controls/filter-sheet.js +146 -0
- package/dist/controls/glyphs.d.ts +27 -0
- package/dist/controls/glyphs.d.ts.map +1 -0
- package/dist/controls/glyphs.js +49 -0
- package/dist/controls/index.d.ts +20 -0
- package/dist/controls/index.d.ts.map +1 -0
- package/dist/controls/index.js +46 -0
- package/dist/controls/multi-select-filter.d.ts +23 -0
- package/dist/controls/multi-select-filter.d.ts.map +1 -0
- package/dist/controls/multi-select-filter.js +89 -0
- package/dist/controls/number-filter.d.ts +26 -0
- package/dist/controls/number-filter.d.ts.map +1 -0
- package/dist/controls/number-filter.js +143 -0
- package/dist/controls/peer-boundary.test.d.ts +2 -0
- package/dist/controls/peer-boundary.test.d.ts.map +1 -0
- package/dist/controls/props-contract.test.d.ts +2 -0
- package/dist/controls/props-contract.test.d.ts.map +1 -0
- package/dist/controls/range-filter.d.ts +43 -0
- package/dist/controls/range-filter.d.ts.map +1 -0
- package/dist/controls/range-filter.js +135 -0
- package/dist/controls/range-filter.type-guard.test.d.ts +2 -0
- package/dist/controls/range-filter.type-guard.test.d.ts.map +1 -0
- package/dist/controls/search-filter.d.ts +10 -0
- package/dist/controls/search-filter.d.ts.map +1 -0
- package/dist/controls/search-filter.js +81 -0
- package/dist/controls/select-filter.d.ts +74 -0
- package/dist/controls/select-filter.d.ts.map +1 -0
- package/dist/controls/select-filter.js +10 -0
- package/dist/controls/sync-button.d.ts +38 -0
- package/dist/controls/sync-button.d.ts.map +1 -0
- package/dist/controls/sync-button.js +119 -0
- package/dist/controls/sync-button.module.css +63 -0
- package/dist/controls/sync-button.module.css.d.ts +11 -0
- package/dist/controls/sync-button.test.d.ts +2 -0
- package/dist/controls/sync-button.test.d.ts.map +1 -0
- package/dist/controls/toggle-filter.d.ts +9 -0
- package/dist/controls/toggle-filter.d.ts.map +1 -0
- package/dist/controls/toggle-filter.js +42 -0
- package/dist/controls/view-tabs.d.ts +23 -0
- package/dist/controls/view-tabs.d.ts.map +1 -0
- package/dist/controls/view-tabs.js +59 -0
- package/dist/controls-dates/date-range-picker.d.ts +4 -0
- package/dist/controls-dates/date-range-picker.d.ts.map +1 -0
- package/dist/controls-dates/date-range-picker.js +18 -0
- package/dist/controls-dates/index.d.ts +9 -0
- package/dist/controls-dates/index.d.ts.map +1 -0
- package/dist/controls-dates/index.js +4 -0
- package/dist/dashboard/delta-badge.d.ts +6 -12
- package/dist/dashboard/delta-badge.d.ts.map +1 -1
- package/dist/dashboard/delta-badge.js +1 -50
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +3 -1
- package/dist/dashboard/settings-section.d.ts +6 -4
- package/dist/dashboard/settings-section.d.ts.map +1 -1
- package/dist/dashboard/settings-section.js +23 -16
- package/dist/dashboard/settings-section.module.css +10 -0
- package/dist/dashboard/settings-section.module.css.d.ts +1 -0
- package/dist/dashboard/settings-section.test.d.ts +2 -0
- package/dist/dashboard/settings-section.test.d.ts.map +1 -0
- package/dist/dashboard/stat-card.d.ts +95 -9
- package/dist/dashboard/stat-card.d.ts.map +1 -1
- package/dist/dashboard/stat-card.js +108 -49
- package/dist/dashboard/stat-card.module.css +153 -0
- package/dist/dashboard/stat-card.module.css.d.ts +15 -0
- package/dist/data/data-table.d.ts +37 -15
- package/dist/data/data-table.d.ts.map +1 -1
- package/dist/data/data-table.js +96 -58
- package/dist/guard/grace.test.d.ts +20 -0
- package/dist/guard/grace.test.d.ts.map +1 -0
- package/dist/guard/index.d.ts +66 -3
- package/dist/guard/index.d.ts.map +1 -1
- package/dist/guard/index.js +78 -7
- package/dist/guard/types.d.ts +3 -3
- package/dist/guard/types.d.ts.map +1 -1
- package/dist/index.d.ts +13 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -10
- package/dist/nav/types.d.ts +78 -2
- package/dist/nav/types.d.ts.map +1 -1
- package/dist/notifications/bell.d.ts +4 -1
- package/dist/notifications/bell.d.ts.map +1 -1
- package/dist/notifications/index.d.ts +1 -1
- package/dist/router-tanstack/field.d.ts +14 -0
- package/dist/router-tanstack/field.d.ts.map +1 -0
- package/dist/router-tanstack/field.js +4 -0
- package/dist/router-tanstack/index.d.ts +6 -2
- package/dist/router-tanstack/index.d.ts.map +1 -1
- package/dist/router-tanstack/index.js +4 -0
- package/dist/router-tanstack/multi-search-param-store.d.ts +4 -52
- package/dist/router-tanstack/multi-search-param-store.d.ts.map +1 -1
- package/dist/router-tanstack/multi-search-param-store.js +19 -27
- package/dist/router-tanstack/search-param-store.d.ts +3 -87
- package/dist/router-tanstack/search-param-store.d.ts.map +1 -1
- package/dist/router-tanstack/search-param-store.js +16 -45
- package/dist/router-tanstack/search-store.d.ts +84 -0
- package/dist/router-tanstack/search-store.d.ts.map +1 -0
- package/dist/router-tanstack/search-store.js +271 -0
- package/dist/router-tanstack/search-store.router.test.d.ts +2 -0
- package/dist/router-tanstack/search-store.router.test.d.ts.map +1 -0
- package/dist/router-tanstack/search-store.test.d.ts +2 -0
- package/dist/router-tanstack/search-store.test.d.ts.map +1 -0
- package/dist/router-tanstack/use-nav.d.ts +0 -2
- package/dist/router-tanstack/use-nav.d.ts.map +1 -1
- package/dist/router-tanstack/use-nav.js +34 -12
- package/dist/router-tanstack/use-nav.test.d.ts +2 -0
- package/dist/router-tanstack/use-nav.test.d.ts.map +1 -0
- package/dist/section/index.d.ts +2 -0
- package/dist/section/index.d.ts.map +1 -0
- package/dist/section/index.js +4 -0
- package/dist/section/section.d.ts +24 -0
- package/dist/section/section.d.ts.map +1 -0
- package/dist/section/section.js +126 -0
- package/dist/section/section.module.css +104 -0
- package/dist/section/section.module.css.d.ts +11 -0
- package/dist/section/section.test.d.ts +2 -0
- package/dist/section/section.test.d.ts.map +1 -0
- package/dist/shell/app-breadcrumbs.d.ts.map +1 -1
- package/dist/shell/app-breadcrumbs.js +18 -15
- package/dist/shell/app-header.module.css +77 -37
- package/dist/shell/app-header.module.css.d.ts +2 -1
- package/dist/shell/app-mobile-nav.d.ts +9 -2
- package/dist/shell/app-mobile-nav.d.ts.map +1 -1
- package/dist/shell/app-mobile-nav.js +98 -11
- package/dist/shell/app-mobile-nav.module.css +8 -0
- package/dist/shell/app-mobile-nav.module.css.d.ts +1 -0
- package/dist/shell/app-sidebar.d.ts +55 -28
- package/dist/shell/app-sidebar.d.ts.map +1 -1
- package/dist/shell/app-sidebar.js +116 -67
- package/dist/shell/app-sidebar.module.css +303 -20
- package/dist/shell/app-sidebar.module.css.d.ts +19 -1
- package/dist/shell/index.d.ts +55 -21
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +40 -18
- package/dist/shell/mobile-nav-model.d.ts +13 -2
- package/dist/shell/mobile-nav-model.d.ts.map +1 -1
- package/dist/shell/mobile-nav-model.js +15 -1
- package/dist/shell/nav-count-badge.d.ts +1 -1
- package/dist/shell/page-bar.d.ts +51 -0
- package/dist/shell/page-bar.d.ts.map +1 -0
- package/dist/shell/page-bar.js +154 -0
- package/dist/shell/page-bar.module.css +178 -0
- package/dist/shell/page-bar.module.css.d.ts +17 -0
- package/dist/shell/page-bar.test.d.ts +2 -0
- package/dist/shell/page-bar.test.d.ts.map +1 -0
- package/dist/shell/sidebar-block-model.d.ts +48 -0
- package/dist/shell/sidebar-block-model.d.ts.map +1 -0
- package/dist/shell/sidebar-block-model.js +39 -0
- package/dist/shell/sidebar-blocks.d.ts +32 -0
- package/dist/shell/sidebar-blocks.d.ts.map +1 -0
- package/dist/shell/sidebar-blocks.js +169 -0
- package/dist/shell/sidebar-search.d.ts +13 -1
- package/dist/shell/sidebar-search.d.ts.map +1 -1
- package/dist/shell/sidebar-search.js +34 -1
- package/dist/shell/sidebar-search.module.css +26 -0
- package/dist/shell/sidebar-search.module.css.d.ts +2 -0
- package/dist/state/fields.d.ts +565 -0
- package/dist/state/fields.d.ts.map +1 -0
- package/dist/state/fields.js +405 -0
- package/dist/state/fields.test.d.ts +2 -0
- package/dist/state/fields.test.d.ts.map +1 -0
- package/dist/state/persisted.d.ts +60 -0
- package/dist/state/persisted.d.ts.map +1 -0
- package/dist/state/persisted.js +123 -0
- package/dist/state/persisted.test.d.ts +2 -0
- package/dist/state/persisted.test.d.ts.map +1 -0
- package/dist/state.d.ts +11 -56
- package/dist/state.d.ts.map +1 -1
- package/dist/state.js +14 -120
- package/dist/styles.css +13 -0
- package/dist/surfaces.d.ts +106 -24
- package/dist/surfaces.d.ts.map +1 -1
- package/dist/surfaces.js +156 -19
- package/dist/theme/controls.module.css +16 -1
- package/dist/theme/ctl-theme.d.ts +32 -0
- package/dist/theme/ctl-theme.d.ts.map +1 -0
- package/dist/theme/ctl-theme.js +54 -0
- package/dist/theme/ctl-theme.test.d.ts +2 -0
- package/dist/theme/ctl-theme.test.d.ts.map +1 -0
- package/dist/theme/ctl-tier-coverage.test.d.ts +2 -0
- package/dist/theme/ctl-tier-coverage.test.d.ts.map +1 -0
- package/dist/theme/divider-law.test.d.ts +2 -0
- package/dist/theme/divider-law.test.d.ts.map +1 -0
- package/dist/theme/icon-slot.d.ts +44 -0
- package/dist/theme/icon-slot.d.ts.map +1 -0
- package/dist/theme/icon-slot.js +21 -0
- package/dist/theme/icon-slot.module.css +47 -0
- package/dist/theme/icon-slot.module.css.d.ts +8 -0
- package/dist/theme/icon-slot.test.d.ts +2 -0
- package/dist/theme/icon-slot.test.d.ts.map +1 -0
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/index.js +82 -5
- package/dist/theme/layout-rhythm-css.test.d.ts +2 -0
- package/dist/theme/layout-rhythm-css.test.d.ts.map +1 -0
- package/dist/theme/segmented-control.module.css +20 -0
- package/dist/theme/shadow-surfaces.test.d.ts.map +1 -1
- package/dist/tokens/index.d.ts +12 -0
- package/dist/tokens/index.d.ts.map +1 -1
- package/dist/tokens/index.js +38 -8
- package/dist/tokens/palette.d.ts +97 -61
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +76 -38
- package/dist/tokens.css +10 -2
- package/dist/widget-header/delta-badge.d.ts +13 -0
- package/dist/widget-header/delta-badge.d.ts.map +1 -0
- package/dist/widget-header/delta-badge.js +29 -0
- package/dist/widget-header/delta-badge.test.d.ts +2 -0
- package/dist/widget-header/delta-badge.test.d.ts.map +1 -0
- package/dist/widget-header/index.d.ts +3 -0
- package/dist/widget-header/index.d.ts.map +1 -0
- package/dist/widget-header/index.js +6 -0
- package/dist/widget-header/no-mantine.test.d.ts +2 -0
- package/dist/widget-header/no-mantine.test.d.ts.map +1 -0
- package/dist/widget-header/widget-header.d.ts +67 -0
- package/dist/widget-header/widget-header.d.ts.map +1 -0
- package/dist/widget-header/widget-header.js +89 -0
- package/dist/widget-header/widget-header.module.css +350 -0
- package/dist/widget-header/widget-header.module.css.d.ts +25 -0
- package/dist/widget-header/widget-header.test.d.ts +2 -0
- package/dist/widget-header/widget-header.test.d.ts.map +1 -0
- package/llms.txt +30 -17
- package/package.json +14 -1
- package/src/charts/cursor/resolve.test.ts +29 -1
- package/src/charts/cursor/resolve.ts +38 -6
- package/src/charts/cursor/scope.tsx +6 -3
- package/src/charts/cursor/store.test.ts +19 -1
- package/src/charts/cursor/store.ts +10 -5
- package/src/charts/hooks/useChartCursor.ts +16 -8
- package/src/charts/index.ts +2 -2
- package/src/charts/primitives/CartesianChart.test.tsx +124 -0
- package/src/charts/primitives/ChartCard.test.tsx +66 -0
- package/src/charts/primitives/ChartCard.tsx +86 -146
- package/src/charts/sparklines/BarSparkline.tsx +43 -5
- package/src/cli/check-coverage.test.ts +297 -0
- package/src/cli/check-theme.test.ts +38 -14
- package/src/cli/index.ts +392 -16
- package/src/cli/init-sync.test.ts +97 -0
- package/src/connectivity/connectivity-indicator.tsx +16 -9
- package/src/content/index.ts +16 -3
- package/src/content/prose.module.css +7 -28
- package/src/content/prose.module.css.test.ts +8 -24
- package/src/controls/actions.module.css +62 -0
- package/src/controls/actions.module.css.d.ts +13 -0
- package/src/controls/actions.test.tsx +252 -0
- package/src/controls/actions.tsx +655 -0
- package/src/controls/actions.type-guard.test.ts +63 -0
- package/src/controls/compare-filter.tsx +64 -0
- package/src/controls/control-group.test.tsx +229 -0
- package/src/controls/control-group.tsx +63 -0
- package/src/controls/controls.module.css +542 -0
- package/src/controls/controls.module.css.d.ts +35 -0
- package/src/controls/controls.router.test.tsx +1053 -0
- package/src/controls/enum-filter.tsx +170 -0
- package/src/controls/filter-context.tsx +158 -0
- package/src/controls/filter-pill.tsx +120 -0
- package/src/controls/filter-set.test.tsx +472 -0
- package/src/controls/filter-set.tsx +225 -0
- package/src/controls/filter-sheet.tsx +285 -0
- package/src/controls/glyphs.tsx +81 -0
- package/src/controls/index.ts +49 -0
- package/src/controls/multi-select-filter.tsx +140 -0
- package/src/controls/number-filter.tsx +291 -0
- package/src/controls/peer-boundary.test.ts +85 -0
- package/src/controls/props-contract.test.tsx +137 -0
- package/src/controls/range-filter.tsx +237 -0
- package/src/controls/range-filter.type-guard.test.tsx +122 -0
- package/src/controls/search-filter.tsx +123 -0
- package/src/controls/select-filter.tsx +89 -0
- package/src/controls/sync-button.module.css +63 -0
- package/src/controls/sync-button.module.css.d.ts +11 -0
- package/src/controls/sync-button.test.tsx +183 -0
- package/src/controls/sync-button.tsx +197 -0
- package/src/controls/toggle-filter.tsx +60 -0
- package/src/controls/view-tabs.tsx +110 -0
- package/src/controls-dates/date-range-picker.tsx +42 -0
- package/src/controls-dates/index.ts +8 -0
- package/src/dashboard/delta-badge.tsx +4 -74
- package/src/dashboard/index.ts +6 -1
- package/src/dashboard/settings-section.module.css +10 -0
- package/src/dashboard/settings-section.module.css.d.ts +1 -0
- package/src/dashboard/settings-section.test.tsx +56 -0
- package/src/dashboard/settings-section.tsx +33 -30
- package/src/dashboard/stat-card.module.css +153 -0
- package/src/dashboard/stat-card.module.css.d.ts +15 -0
- package/src/dashboard/stat-card.test.tsx +298 -1
- package/src/dashboard/stat-card.tsx +289 -67
- package/src/data/data-table.test.tsx +96 -11
- package/src/data/data-table.tsx +228 -84
- package/src/guard/check-source.test.ts +159 -13
- package/src/guard/grace.test.ts +158 -0
- package/src/guard/index.ts +185 -29
- package/src/guard/types.ts +4 -2
- package/src/index.ts +51 -5
- package/src/nav/types.ts +84 -2
- package/src/notifications/bell.tsx +6 -3
- package/src/notifications/index.ts +1 -1
- package/src/router-tanstack/field.ts +35 -0
- package/src/router-tanstack/index.ts +28 -2
- package/src/router-tanstack/multi-search-param-store.test.ts +71 -3
- package/src/router-tanstack/multi-search-param-store.ts +46 -77
- package/src/router-tanstack/search-param-store.ts +42 -159
- package/src/router-tanstack/search-store.router.test.tsx +882 -0
- package/src/router-tanstack/search-store.test.ts +578 -0
- package/src/router-tanstack/search-store.ts +546 -0
- package/src/router-tanstack/use-nav.test.tsx +187 -0
- package/src/router-tanstack/use-nav.ts +72 -14
- package/src/section/index.ts +1 -0
- package/src/section/section.module.css +104 -0
- package/src/section/section.module.css.d.ts +11 -0
- package/src/section/section.test.tsx +204 -0
- package/src/section/section.tsx +220 -0
- package/src/shell/app-breadcrumbs.tsx +44 -31
- package/src/shell/app-header.module.css +77 -37
- package/src/shell/app-header.module.css.d.ts +2 -1
- package/src/shell/app-mobile-nav.module.css +8 -0
- package/src/shell/app-mobile-nav.module.css.d.ts +1 -0
- package/src/shell/app-mobile-nav.tsx +147 -8
- package/src/shell/app-sidebar-account.tsx +2 -2
- package/src/shell/app-sidebar.module.css +303 -20
- package/src/shell/app-sidebar.module.css.d.ts +19 -1
- package/src/shell/app-sidebar.test.tsx +456 -41
- package/src/shell/app-sidebar.tsx +276 -140
- package/src/shell/index.test.tsx +291 -5
- package/src/shell/index.tsx +137 -38
- package/src/shell/mobile-nav-model.test.ts +228 -7
- package/src/shell/mobile-nav-model.ts +53 -3
- package/src/shell/nav-count-badge.tsx +1 -1
- package/src/shell/page-bar.module.css +178 -0
- package/src/shell/page-bar.module.css.d.ts +17 -0
- package/src/shell/page-bar.test.tsx +316 -0
- package/src/shell/page-bar.tsx +315 -0
- package/src/shell/sidebar-block-model.ts +83 -0
- package/src/shell/sidebar-blocks.tsx +301 -0
- package/src/shell/sidebar-search.module.css +26 -0
- package/src/shell/sidebar-search.module.css.d.ts +2 -0
- package/src/shell/sidebar-search.tsx +71 -2
- package/src/state/fields.test.tsx +512 -0
- package/src/state/fields.ts +1150 -0
- package/src/state/persisted.test.ts +91 -0
- package/src/state/persisted.ts +261 -0
- package/src/state.ts +52 -240
- package/src/styles.css +13 -0
- package/src/surfaces.ts +204 -36
- package/src/theme/controls.module.css +16 -1
- package/src/theme/ctl-theme.test.tsx +275 -0
- package/src/theme/ctl-theme.tsx +138 -0
- package/src/theme/ctl-tier-coverage.test.ts +170 -0
- package/src/theme/density-relations.test.ts +106 -51
- package/src/theme/divider-law.test.ts +259 -0
- package/src/theme/icon-slot.module.css +47 -0
- package/src/theme/icon-slot.module.css.d.ts +8 -0
- package/src/theme/icon-slot.test.tsx +275 -0
- package/src/theme/icon-slot.tsx +59 -0
- package/src/theme/index.ts +165 -3
- package/src/theme/layout-rhythm-css.test.ts +72 -0
- package/src/theme/radius.test.ts +11 -1
- package/src/theme/segmented-control.module.css +20 -0
- package/src/theme/shadow-surfaces.test.ts +20 -7
- package/src/theme/spacing.test.ts +75 -27
- package/src/theme/use-basalt-spacing.ts +2 -2
- package/src/tokens/density.test.ts +7 -25
- package/src/tokens/index.ts +48 -8
- package/src/tokens/palette.ts +107 -73
- package/src/widget-header/delta-badge.test.tsx +60 -0
- package/src/widget-header/delta-badge.tsx +57 -0
- package/src/widget-header/index.ts +2 -0
- package/src/widget-header/no-mantine.test.ts +33 -0
- package/src/widget-header/widget-header.module.css +350 -0
- package/src/widget-header/widget-header.module.css.d.ts +25 -0
- package/src/widget-header/widget-header.test.tsx +187 -0
- package/src/widget-header/widget-header.tsx +213 -0
- package/agent/rules/basalt-agent.md +0 -452
- package/agent/rules/basalt-app.md +0 -246
- package/agent/rules/basalt-commands.md +0 -320
- package/agent/rules/basalt-content.md +0 -409
- package/agent/rules/basalt-data.md +0 -329
- package/agent/rules/basalt-forms.md +0 -186
- package/agent/rules/basalt-notifications.md +0 -264
- package/agent/rules/basalt-query.md +0 -187
- package/agent/rules/basalt-router.md +0 -336
- package/dist/content/article-filter-bar.d.ts +0 -40
- package/dist/content/article-filter-bar.d.ts.map +0 -1
- package/dist/content/article-filter-bar.js +0 -56
- package/dist/shell/page-header.d.ts +0 -13
- package/dist/shell/page-header.d.ts.map +0 -1
- package/dist/shell/page-header.js +0 -23
- package/src/content/article-filter-bar.tsx +0 -88
- package/src/shell/page-header.tsx +0 -35
|
@@ -0,0 +1,565 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which lanes a field lives on, declared ONCE at definition (C4).
|
|
3
|
+
*
|
|
4
|
+
* `url` is the truth; `persist` is the localStorage mirror UNDER it. `history` picks the entry a
|
|
5
|
+
* write creates. Declare the lane inline (`field.boolean(false, { url: false })`) — a lane held in
|
|
6
|
+
* a widened variable still behaves correctly at runtime, but the TYPE-level lane filter that keeps
|
|
7
|
+
* a local-only field out of `validateSearch` can only narrow a literal.
|
|
8
|
+
*
|
|
9
|
+
* @default `{ url: true, persist: true, history: 'replace' }`
|
|
10
|
+
*/
|
|
11
|
+
export type FieldLane = {
|
|
12
|
+
/** Put the field in the URL search. `false` = the mirror-only lane (per-chart selects, compact). */
|
|
13
|
+
url?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Mirror the field in localStorage. `false` = the URL-only lane (pagination, one-shot filters);
|
|
16
|
+
* with `url: false` as well, the MEMORY-only lane — shared across every mount of the store for
|
|
17
|
+
* the session, gone on reload, never in localStorage. `createLocalStore` ignores `url`, so
|
|
18
|
+
* `persist: false` alone lands a field there.
|
|
19
|
+
*/
|
|
20
|
+
persist?: boolean;
|
|
21
|
+
/** History entry a write creates. @default 'replace' */
|
|
22
|
+
history?: 'push' | 'replace';
|
|
23
|
+
};
|
|
24
|
+
/** A `FieldLane` with every default applied — what a field descriptor actually carries. */
|
|
25
|
+
export type ResolvedLane = {
|
|
26
|
+
url: boolean;
|
|
27
|
+
persist: boolean;
|
|
28
|
+
history: 'push' | 'replace';
|
|
29
|
+
};
|
|
30
|
+
/** Lane defaults at the type level. Only an inline (const-inferred) lane object narrows. */
|
|
31
|
+
export type ResolveLane<L> = {
|
|
32
|
+
url: L extends {
|
|
33
|
+
url: false;
|
|
34
|
+
} ? false : true;
|
|
35
|
+
persist: L extends {
|
|
36
|
+
persist: false;
|
|
37
|
+
} ? false : true;
|
|
38
|
+
history: L extends {
|
|
39
|
+
history: 'push';
|
|
40
|
+
} ? 'push' : 'replace';
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* A field's fallback: the value, or a THUNK evaluated at read time (`field.string({ fallback: () =>
|
|
44
|
+
* todayIso() })`). A thunk is re-evaluated on every read while nothing is written, and is never
|
|
45
|
+
* itself persisted — a write stores the value the control produced, like any other.
|
|
46
|
+
*
|
|
47
|
+
* The LOCAL and MEMORY lanes only. `createSearchStore` throws at definition for a thunk on a
|
|
48
|
+
* URL-lane field: `validateSearch` would evaluate it on every navigation and pin the result into the
|
|
49
|
+
* URL, so a deep link would carry a value nobody chose.
|
|
50
|
+
*/
|
|
51
|
+
export type FieldFallback<T> = T | (() => T);
|
|
52
|
+
/** Resolves a per-preset window at call time. Returns ISO dates — what `toWindow` hands an API. */
|
|
53
|
+
export type RangeWindow = (now: Date) => {
|
|
54
|
+
from: string;
|
|
55
|
+
to: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Per-preset window resolvers for a range field. A preset WITH one resolves through `toWindow()` to
|
|
59
|
+
* `{ from, to }`; a preset without keeps `{ window: preset }` — which is what lets a derived preset
|
|
60
|
+
* (`3m`, `ytd`) live in the same field as a server-understood one (`7d`) instead of forcing a
|
|
61
|
+
* hand-rolled `presetToParams` beside the store.
|
|
62
|
+
*/
|
|
63
|
+
export type RangeWindows<P extends string> = Partial<Record<P, RangeWindow>>;
|
|
64
|
+
/** The value of a range field: one preset, plus two ISO dates when the preset is `'custom'`. */
|
|
65
|
+
export type RangeValue<P extends string> = {
|
|
66
|
+
preset: P;
|
|
67
|
+
from?: string | undefined;
|
|
68
|
+
to?: string | undefined;
|
|
69
|
+
};
|
|
70
|
+
/** Renamed URL params for a range field. Defaults: the field's own name, `from`, `to`. */
|
|
71
|
+
export type RangeParams = {
|
|
72
|
+
preset?: string;
|
|
73
|
+
from?: string;
|
|
74
|
+
to?: string;
|
|
75
|
+
};
|
|
76
|
+
export type EnumField<T extends string = string, Ln extends ResolvedLane = ResolvedLane> = {
|
|
77
|
+
readonly kind: 'enum';
|
|
78
|
+
readonly values: readonly T[];
|
|
79
|
+
readonly fallback: FieldFallback<T>;
|
|
80
|
+
readonly lane: Ln;
|
|
81
|
+
};
|
|
82
|
+
export type MultiField<T extends string = string, Ln extends ResolvedLane = ResolvedLane> = {
|
|
83
|
+
readonly kind: 'multi';
|
|
84
|
+
readonly values: readonly T[];
|
|
85
|
+
readonly fallback: FieldFallback<readonly T[]>;
|
|
86
|
+
readonly lane: Ln;
|
|
87
|
+
};
|
|
88
|
+
export type RangeField<P extends string = string, C extends boolean = boolean, Pm extends RangeParams = RangeParams, Ln extends ResolvedLane = ResolvedLane, W extends string = never> = {
|
|
89
|
+
readonly kind: 'range';
|
|
90
|
+
/** The declared presets — `'custom'` is NOT one of them, it is `custom: true`'s consequence. */
|
|
91
|
+
readonly presets: readonly P[];
|
|
92
|
+
readonly fallback: FieldFallback<RangeValue<P>>;
|
|
93
|
+
/** `true` → the preset `'custom'` plus `from`/`to` ISO dates are legal values. */
|
|
94
|
+
readonly custom: C;
|
|
95
|
+
readonly params: Pm;
|
|
96
|
+
/**
|
|
97
|
+
* The declared window resolvers, keyed by preset — `W` is exactly the presets that HAVE one, so
|
|
98
|
+
* `toWindow`'s return type can drop them from its `{ window }` branch and an API param type
|
|
99
|
+
* accepts the result with no cast.
|
|
100
|
+
*
|
|
101
|
+
* `W` defaults to `never` (`window: {}`), which is what keeps every `RangeField<P>` assignable to
|
|
102
|
+
* the widened `AnyField` a control's props take: a narrower resolver map is assignable to `{}`,
|
|
103
|
+
* and a widened handle's `toWindow` then excludes nothing rather than everything.
|
|
104
|
+
*/
|
|
105
|
+
readonly window: RangeWindows<W>;
|
|
106
|
+
readonly lane: Ln;
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* The preset union a range field's VALUES range over: the declared presets, plus `'custom'` unless
|
|
110
|
+
* the field opted out.
|
|
111
|
+
*
|
|
112
|
+
* `C` widened to `boolean` (a bare `RangeField<P>`) keeps `'custom'` — but a PROP typed that way
|
|
113
|
+
* accepts only a custom-capable handle, because the handle's setter is contravariant in the value:
|
|
114
|
+
* `field.range` without `custom: true` hands out a `RangeField<P, false>`, whose setter refuses a
|
|
115
|
+
* `'custom'` preset. A wrapper that must take any range handle is generic over the flag
|
|
116
|
+
* (`<P extends string, C extends boolean>` + `FieldHandle<RangeField<P, C>>`); one that only ever
|
|
117
|
+
* takes the preset-only shape pins `RangeField<P, false>`.
|
|
118
|
+
*/
|
|
119
|
+
export type RangePresets<P, C> = (P & string) | (C extends false ? never : 'custom');
|
|
120
|
+
export type NumberField<Ln extends ResolvedLane = ResolvedLane> = {
|
|
121
|
+
readonly kind: 'number';
|
|
122
|
+
readonly fallback: FieldFallback<number>;
|
|
123
|
+
readonly min: number | undefined;
|
|
124
|
+
readonly max: number | undefined;
|
|
125
|
+
readonly int: boolean;
|
|
126
|
+
readonly lane: Ln;
|
|
127
|
+
};
|
|
128
|
+
export type BooleanField<Ln extends ResolvedLane = ResolvedLane> = {
|
|
129
|
+
readonly kind: 'boolean';
|
|
130
|
+
readonly fallback: FieldFallback<boolean>;
|
|
131
|
+
readonly lane: Ln;
|
|
132
|
+
};
|
|
133
|
+
export type StringField<Ln extends ResolvedLane = ResolvedLane> = {
|
|
134
|
+
readonly kind: 'string';
|
|
135
|
+
readonly fallback: FieldFallback<string>;
|
|
136
|
+
readonly max: number | undefined;
|
|
137
|
+
readonly lane: Ln;
|
|
138
|
+
};
|
|
139
|
+
/** Every field kind, widened — the constraint a store's `fields` map satisfies. */
|
|
140
|
+
export type AnyField = EnumField | MultiField | RangeField | NumberField | BooleanField | StringField;
|
|
141
|
+
/** The value `use()` reads and writes for one field. Range fields deal in `RangeValue`. */
|
|
142
|
+
export type FieldValue<F extends AnyField> = F extends {
|
|
143
|
+
kind: 'enum';
|
|
144
|
+
values: readonly (infer T)[];
|
|
145
|
+
} ? T : F extends {
|
|
146
|
+
kind: 'multi';
|
|
147
|
+
values: readonly (infer T)[];
|
|
148
|
+
} ? readonly T[] : F extends {
|
|
149
|
+
kind: 'range';
|
|
150
|
+
presets: readonly (infer P)[];
|
|
151
|
+
custom: infer C;
|
|
152
|
+
} ? RangeValue<RangePresets<P, C>> : F extends {
|
|
153
|
+
kind: 'number';
|
|
154
|
+
} ? number : F extends {
|
|
155
|
+
kind: 'boolean';
|
|
156
|
+
} ? boolean : F extends {
|
|
157
|
+
kind: 'string';
|
|
158
|
+
} ? string : never;
|
|
159
|
+
/**
|
|
160
|
+
* The second, optional argument of a `FieldHandle` setter.
|
|
161
|
+
*
|
|
162
|
+
* @example field.tab.use()[1]('overview', { patch: { detailDate: undefined } })
|
|
163
|
+
*/
|
|
164
|
+
export type FieldSetOptions = {
|
|
165
|
+
/**
|
|
166
|
+
* Extra search params merged into the SAME navigate as the field's own write — the URL lane only
|
|
167
|
+
* (a local/memory-lane write has no navigate to merge into, and ignores this). For keys the STORE
|
|
168
|
+
* DOES NOT OWN: clearing a sibling param the page put there (`{ detailDate: undefined }`) used to
|
|
169
|
+
* need a second `navigate` beside the setter, which either lost the field's write or produced two
|
|
170
|
+
* history entries. The field's own params always win, so a `patch` cannot corrupt the value being
|
|
171
|
+
* set.
|
|
172
|
+
*
|
|
173
|
+
* A key ANOTHER field of the same store owns is refused — it would reach the URL while the
|
|
174
|
+
* mirror kept the old value, so the next paramless visit and every `linkSearch` link disagree
|
|
175
|
+
* with the page the write happened on. `createSearchStore` throws in dev and logs in production;
|
|
176
|
+
* write that field through its own setter instead.
|
|
177
|
+
*
|
|
178
|
+
* A write from a route that does not validate the field persists only (A1) and drops the patch
|
|
179
|
+
* with it — there is no navigate to merge into. Dev warns once per field.
|
|
180
|
+
*/
|
|
181
|
+
readonly patch?: Record<string, unknown>;
|
|
182
|
+
};
|
|
183
|
+
/** One option of an enum / multi / range field, labelled through `store.labels()`. */
|
|
184
|
+
export type FieldOption = {
|
|
185
|
+
value: string;
|
|
186
|
+
label: string;
|
|
187
|
+
};
|
|
188
|
+
/** `toWindow` exists on a range handle and nowhere else — it is not an optional convenience. */
|
|
189
|
+
type RangeHandleExtras<F> = F extends {
|
|
190
|
+
kind: 'range';
|
|
191
|
+
presets: readonly (infer P)[];
|
|
192
|
+
custom: infer C;
|
|
193
|
+
window: RangeWindows<infer W>;
|
|
194
|
+
} ? {
|
|
195
|
+
/**
|
|
196
|
+
* The API-facing projection of a range value: a preset becomes `{ window }`, a custom range
|
|
197
|
+
* becomes `{ from, to }`. Replaces every hand-rolled `presetToParams`.
|
|
198
|
+
*
|
|
199
|
+
* A preset declared with a `window` resolver (`field.range({ window: { '3m': ... } })`)
|
|
200
|
+
* becomes `{ from, to }` too — the resolver runs at CALL time with the current `Date`, so a
|
|
201
|
+
* derived window (`3m`, `ytd`) is never stale and never leaves the store.
|
|
202
|
+
*
|
|
203
|
+
* Those presets are EXCLUDED from the `{ window }` branch, so the result assigns to an API
|
|
204
|
+
* param type that only knows the server-understood windows with no cast — which is the half
|
|
205
|
+
* that lets a consumer delete the switch rather than move it. A `custom: true` field keeps
|
|
206
|
+
* `'custom'` in the union: a custom preset with no dates resolves to `{ window: 'custom' }`,
|
|
207
|
+
* so that one still needs a guard before it reaches such a type.
|
|
208
|
+
*/
|
|
209
|
+
readonly toWindow: (v: RangeValue<RangePresets<P, C>>) => {
|
|
210
|
+
window: Exclude<RangePresets<P, C>, W>;
|
|
211
|
+
} | {
|
|
212
|
+
from: string;
|
|
213
|
+
to: string;
|
|
214
|
+
};
|
|
215
|
+
} : {
|
|
216
|
+
readonly toWindow?: undefined;
|
|
217
|
+
};
|
|
218
|
+
/**
|
|
219
|
+
* A number handle's declared bounds, republished from the field — `RangeHandleExtras`' shape for the
|
|
220
|
+
* numeric kind, and there for the same reason: a control cannot ask the field descriptor anything,
|
|
221
|
+
* it only ever sees the handle.
|
|
222
|
+
*
|
|
223
|
+
* The codec has always CLAMPED to these on write, so before this the only way a `NumberFilter` could
|
|
224
|
+
* learn its own limits was for the call site to pass them a second time — a second answer to a
|
|
225
|
+
* question the field already owns, and one that silently stops matching the moment the field moves.
|
|
226
|
+
* With them on the handle the input can bound its own stepper, which turns the clamp from a
|
|
227
|
+
* correction the user watches happen into a value they cannot type in the first place.
|
|
228
|
+
*
|
|
229
|
+
* `int` is the third member because it is the same class of fact: it decides the stepper's grain
|
|
230
|
+
* (`step` 1, decimals refused), and the codec already rejects a non-integer for that field.
|
|
231
|
+
*/
|
|
232
|
+
type NumberHandleExtras<F> = F extends {
|
|
233
|
+
kind: 'number';
|
|
234
|
+
} ? {
|
|
235
|
+
/** The field's `min`, or `undefined` when it declared none. Clamped on write regardless. */
|
|
236
|
+
readonly min: number | undefined;
|
|
237
|
+
/** The field's `max`, or `undefined` when it declared none. Clamped on write regardless. */
|
|
238
|
+
readonly max: number | undefined;
|
|
239
|
+
/** `field.number({ int: true })` — a non-integer is refused by the codec, not rounded. */
|
|
240
|
+
readonly int: boolean;
|
|
241
|
+
} : {
|
|
242
|
+
readonly min?: undefined;
|
|
243
|
+
readonly max?: undefined;
|
|
244
|
+
readonly int?: undefined;
|
|
245
|
+
};
|
|
246
|
+
/**
|
|
247
|
+
* The binding every basalt control takes instead of `value`/`onChange` (C2). One field, both lanes,
|
|
248
|
+
* one resolution law. Handed out by `createSearchStore().field.<name>` /
|
|
249
|
+
* `createLocalStore().field.<name>`; never constructed by hand.
|
|
250
|
+
*/
|
|
251
|
+
export type FieldHandle<F extends AnyField> = {
|
|
252
|
+
readonly kind: F['kind'];
|
|
253
|
+
readonly fallback: FieldValue<F>;
|
|
254
|
+
/** enum / multi / range options, labelled by `labels()`. Empty for the other kinds. */
|
|
255
|
+
readonly options: readonly FieldOption[];
|
|
256
|
+
/**
|
|
257
|
+
* Read + write. Reads the URL when the field is on the URL lane (`useSearch({ strict: false })`,
|
|
258
|
+
* so a control renders on a sibling or child route with no `from`), else localStorage, else the
|
|
259
|
+
* fallback. Writes navigate when the matched route validates the param, then persist.
|
|
260
|
+
*/
|
|
261
|
+
use(): readonly [FieldValue<F>, (next: FieldValue<F>, opts?: FieldSetOptions) => void];
|
|
262
|
+
/**
|
|
263
|
+
* UNSET the field — what a control's reset calls, and deliberately not `set(fallback)`. The
|
|
264
|
+
* persist lane DELETES the field's key from the mirror, the memory lane drops its value, and the
|
|
265
|
+
* URL lane navigates back to the fallback params (plus dropping the mirror key under it).
|
|
266
|
+
*
|
|
267
|
+
* Writing the fallback instead pins it: a THUNK fallback (`() => todayIso()`) resolves at the
|
|
268
|
+
* moment of the reset, so a reader who pressed `Reset all` today was handed today's date
|
|
269
|
+
* tomorrow, with the field counted as active in `Filters (n)`. Unsetting lets the fallback keep
|
|
270
|
+
* resolving, which is what `FieldFallback`'s contract says it does.
|
|
271
|
+
*
|
|
272
|
+
* Callable outside render (an event handler is the only realistic caller); on the URL lane it
|
|
273
|
+
* navigates through the last render of `use()`, so a handle that no mount has read clears the
|
|
274
|
+
* mirror only.
|
|
275
|
+
*/
|
|
276
|
+
clear(): void;
|
|
277
|
+
isDefault(v: FieldValue<F>): boolean;
|
|
278
|
+
} & RangeHandleExtras<F> & NumberHandleExtras<F>;
|
|
279
|
+
/**
|
|
280
|
+
* `field.range`'s options. `C` is the `custom` flag, pinned per overload — never inferred; `W` is
|
|
281
|
+
* inferred from `window`'s KEYS (constrained to the declared presets, so a typo is still an error
|
|
282
|
+
* here) and is what carries the resolved presets into `toWindow`'s return type.
|
|
283
|
+
*/
|
|
284
|
+
type RangeOptions<P extends string, C extends boolean, Pm extends RangeParams, W extends P> = {
|
|
285
|
+
presets: readonly P[];
|
|
286
|
+
fallback: FieldFallback<NoInfer<P>>;
|
|
287
|
+
custom?: C;
|
|
288
|
+
params?: Pm;
|
|
289
|
+
/** Per-preset window resolvers — the presets `toWindow()` answers with `{ from, to }`. */
|
|
290
|
+
window?: RangeWindows<W>;
|
|
291
|
+
};
|
|
292
|
+
/**
|
|
293
|
+
* A time window: THREE URL params (preset + `from` + `to`, each renamable through `params`), so a
|
|
294
|
+
* consumer's existing deep links and loaders keep their shape. `custom: true` additionally
|
|
295
|
+
* allows the preset `'custom'` with two ISO dates. `window` resolves a DERIVED preset (`3m`, `ytd`)
|
|
296
|
+
* to `{ from, to }` through `toWindow()` while it stays one preset in the URL.
|
|
297
|
+
*
|
|
298
|
+
* A second `field.range` in the same store — or a second range store composed into the same
|
|
299
|
+
* route's `validateSearch` — MUST rename `from`/`to` via `params`: every range defaults to the
|
|
300
|
+
* literal param names `'from'`/`'to'`, and two fields silently sharing them makes the later one's
|
|
301
|
+
* `toSearch` overwrite the earlier one's dates. `createStoreCore` throws at definition for the
|
|
302
|
+
* in-store case; the cross-store case is not detectable by either store alone.
|
|
303
|
+
*
|
|
304
|
+
* THREE overloads, one per `custom` shape, because a single `custom?: C` signature is inferred
|
|
305
|
+
* against `AnyField` when the call sits inline in `createSearchStore({ fields })` — the contextual
|
|
306
|
+
* return type wins, `C` widens to `boolean`, and every value type gains a `'custom'` preset the
|
|
307
|
+
* field never allowed. Overloads have no `C` to widen: an omitted or `false` flag picks the first,
|
|
308
|
+
* a literal `true` the second, and a value typed `boolean` the third (widened, as declared).
|
|
309
|
+
*/
|
|
310
|
+
declare function rangeField<const P extends string, const Pm extends RangeParams = RangeParams, const L extends FieldLane = FieldLane, const W extends P = never>(o: RangeOptions<P, false, Pm, W>, lane?: L): RangeField<P, false, Pm, ResolveLane<L>, W>;
|
|
311
|
+
declare function rangeField<const P extends string, const Pm extends RangeParams = RangeParams, const L extends FieldLane = FieldLane, const W extends P = never>(o: RangeOptions<P, true, Pm, W>, lane?: L): RangeField<P, true, Pm, ResolveLane<L>, W>;
|
|
312
|
+
declare function rangeField<const P extends string, const Pm extends RangeParams = RangeParams, const L extends FieldLane = FieldLane, const W extends P = never>(o: RangeOptions<P, boolean, Pm, W>, lane?: L): RangeField<P, boolean, Pm, ResolveLane<L>, W>;
|
|
313
|
+
/**
|
|
314
|
+
* The field vocabulary. Every builder returns plain declarative data — no closures, no router, no
|
|
315
|
+
* storage — which is what lets one field definition drive `createSearchStore` (URL + storage) and
|
|
316
|
+
* `createLocalStore` (storage only) without a second description of the same param.
|
|
317
|
+
*
|
|
318
|
+
* @example
|
|
319
|
+
* const store = createSearchStore({
|
|
320
|
+
* key: 'analytics',
|
|
321
|
+
* fields: {
|
|
322
|
+
* range: field.range({ presets: ['7d', '30d', '90d'], fallback: '30d', custom: true }),
|
|
323
|
+
* compare: field.enum(['none', 'previous'], 'none'),
|
|
324
|
+
* channels: field.multi(CHANNELS, []),
|
|
325
|
+
* minDuration: field.number({ fallback: 0, min: 0 }, { persist: false }),
|
|
326
|
+
* compact: field.boolean(false, { url: false }),
|
|
327
|
+
* },
|
|
328
|
+
* })
|
|
329
|
+
*/
|
|
330
|
+
export declare const field: {
|
|
331
|
+
/** A closed string enum — a tab, a compare mode, a single-select filter. */
|
|
332
|
+
enum<const T extends string, const L extends FieldLane = FieldLane>(values: readonly T[], fallback: FieldFallback<NoInfer<T>>, lane?: L): EnumField<T, ResolveLane<L>>;
|
|
333
|
+
/** An any-of set over the same closed enum. Decoding is deduped and canonically re-sorted. */
|
|
334
|
+
multi<const T extends string, const L extends FieldLane = FieldLane>(values: readonly T[], fallback?: FieldFallback<readonly NoInfer<T>[]>, lane?: L): MultiField<T, ResolveLane<L>>;
|
|
335
|
+
range: typeof rangeField;
|
|
336
|
+
/** A number — pagination, a threshold. Out-of-range input clamps to `min`/`max`. */
|
|
337
|
+
number<const L extends FieldLane = FieldLane>(o: {
|
|
338
|
+
fallback: FieldFallback<number>;
|
|
339
|
+
min?: number;
|
|
340
|
+
max?: number;
|
|
341
|
+
int?: boolean;
|
|
342
|
+
}, lane?: L): NumberField<ResolveLane<L>>;
|
|
343
|
+
/** A toggle. Accepts `true`/`false` and the strings `'true'`/`'false'` from a hand-typed URL. */
|
|
344
|
+
boolean<const L extends FieldLane = FieldLane>(fallback: FieldFallback<boolean>, lane?: L): BooleanField<ResolveLane<L>>;
|
|
345
|
+
/** Free text — a search box. Defaults to `history: 'replace'` like every other field. */
|
|
346
|
+
string<const L extends FieldLane = FieldLane>(o?: {
|
|
347
|
+
fallback?: FieldFallback<string>;
|
|
348
|
+
max?: number;
|
|
349
|
+
}, lane?: L): StringField<ResolveLane<L>>;
|
|
350
|
+
};
|
|
351
|
+
type UnionToIntersection<U> = (U extends unknown ? (x: U) => void : never) extends (x: infer I) => void ? I : never;
|
|
352
|
+
type Prettify<T> = {
|
|
353
|
+
[K in keyof T]: T[K];
|
|
354
|
+
} & {};
|
|
355
|
+
type RangeParamName<Pm, K extends keyof RangeParams, D extends string> = Pm extends Record<K, infer N> ? (N extends string ? N : D) : D;
|
|
356
|
+
/** The param entries ONE field owns. A range field owns three; every other kind owns one. */
|
|
357
|
+
type FieldSearch<K extends string, F extends AnyField> = F extends {
|
|
358
|
+
kind: 'range';
|
|
359
|
+
presets: readonly (infer P)[];
|
|
360
|
+
custom: infer C;
|
|
361
|
+
params: infer Pm;
|
|
362
|
+
} ? {
|
|
363
|
+
[Q in RangeParamName<Pm, 'preset', K>]: RangePresets<P, C>;
|
|
364
|
+
} & {
|
|
365
|
+
[Q in RangeParamName<Pm, 'from', 'from'>]?: string | undefined;
|
|
366
|
+
} & {
|
|
367
|
+
[Q in RangeParamName<Pm, 'to', 'to'>]?: string | undefined;
|
|
368
|
+
} : {
|
|
369
|
+
[Q in K]: FieldValue<F>;
|
|
370
|
+
};
|
|
371
|
+
type FieldNames<S> = keyof S & string;
|
|
372
|
+
type UrlFieldNames<S> = {
|
|
373
|
+
[K in FieldNames<S>]: S[K] extends {
|
|
374
|
+
lane: {
|
|
375
|
+
url: false;
|
|
376
|
+
};
|
|
377
|
+
} ? never : K;
|
|
378
|
+
}[FieldNames<S>];
|
|
379
|
+
/** The search object of a store's URL-lane fields — `validateSearch`'s return, flat. */
|
|
380
|
+
export type SearchValues<S extends Record<string, AnyField>> = Prettify<UnionToIntersection<{
|
|
381
|
+
[K in UrlFieldNames<S>]: FieldSearch<K, S[K]>;
|
|
382
|
+
}[UrlFieldNames<S>]>>;
|
|
383
|
+
/** The same flat shape over EVERY field, both lanes — what `readStored()` can return. */
|
|
384
|
+
export type StoredValues<S extends Record<string, AnyField>> = Prettify<UnionToIntersection<{
|
|
385
|
+
[K in FieldNames<S>]: FieldSearch<K, S[K]>;
|
|
386
|
+
}[FieldNames<S>]>>;
|
|
387
|
+
/**
|
|
388
|
+
* Everything a store needs to move one field between the URL, localStorage and a control.
|
|
389
|
+
*
|
|
390
|
+
* @internal Reachable on `basalt-ui/state` only because `./router-tanstack`'s store is built on it
|
|
391
|
+
* — the two store factories are the public API, not this seam.
|
|
392
|
+
*/
|
|
393
|
+
export type FieldCodec = {
|
|
394
|
+
readonly kind: AnyField['kind'];
|
|
395
|
+
readonly lane: ResolvedLane;
|
|
396
|
+
/** Every URL param this field owns. */
|
|
397
|
+
readonly params: readonly string[];
|
|
398
|
+
/**
|
|
399
|
+
* The param whose PRESENCE in the current search means "the matched route validates this field".
|
|
400
|
+
* A store's `validateSearch` always returns it, so a route that ran it has the key; a foreign
|
|
401
|
+
* route does not, and a write there persists only (A1).
|
|
402
|
+
*/
|
|
403
|
+
readonly primary: string;
|
|
404
|
+
/**
|
|
405
|
+
* The fallback, ALREADY resolved — a getter, because `field.*({ fallback: () => … })` is a thunk
|
|
406
|
+
* that must run at read time and re-run while nothing is written. Every call site reads it as a
|
|
407
|
+
* plain value, which is why the laziness is invisible past this line.
|
|
408
|
+
*/
|
|
409
|
+
readonly fallback: unknown;
|
|
410
|
+
/** Range only: the per-preset window resolvers `toWindow` answers a derived preset through. */
|
|
411
|
+
readonly windows?: RangeWindows<string>;
|
|
412
|
+
/**
|
|
413
|
+
* Number only: the declared bounds and grain the codec clamps to, republished so `handle` can put
|
|
414
|
+
* them on the handle. The codec is the only thing that reads the field descriptor, so a control
|
|
415
|
+
* that needs a limit has to be handed it from here — see {@link NumberHandleExtras}.
|
|
416
|
+
*/
|
|
417
|
+
readonly bounds?: {
|
|
418
|
+
readonly min: number | undefined;
|
|
419
|
+
readonly max: number | undefined;
|
|
420
|
+
readonly int: boolean;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Validate a STORED (or caller-supplied) value. `null` = unusable.
|
|
424
|
+
*
|
|
425
|
+
* Deliberately a different function from `fromSearch` for one kind: the deprecated multi store
|
|
426
|
+
* reads an empty URL array as "absent", and reusing that rule on the storage side would turn a
|
|
427
|
+
* deliberately CLEARED filter into a miss and resurrect the fallback on upgrade.
|
|
428
|
+
*/
|
|
429
|
+
decode(raw: unknown): unknown;
|
|
430
|
+
/** Pull the field out of a router search object. `null` = absent or invalid. */
|
|
431
|
+
fromSearch(search: Record<string, unknown>): unknown;
|
|
432
|
+
/** The param entries a write puts on the URL. `undefined` values clear a stale param. */
|
|
433
|
+
toSearch(value: unknown): Record<string, unknown>;
|
|
434
|
+
equals(a: unknown, b: unknown): boolean;
|
|
435
|
+
/** Option values in declaration order — enum, multi and range only. */
|
|
436
|
+
readonly optionValues: readonly string[];
|
|
437
|
+
};
|
|
438
|
+
/**
|
|
439
|
+
* Build the codec for one field. `legacyMultiEmpty` restores the DEPRECATED multi-store's rule that
|
|
440
|
+
* an EMPTY url array means "absent, fall through to storage" — the deprecated wrapper's contract,
|
|
441
|
+
* never the new store's, where an empty selection is a value like any other.
|
|
442
|
+
*
|
|
443
|
+
* @internal — see `FieldCodec`.
|
|
444
|
+
*/
|
|
445
|
+
export declare function resolveFieldCodec(name: string, f: AnyField, opts?: {
|
|
446
|
+
legacyMultiEmpty?: boolean;
|
|
447
|
+
}): FieldCodec;
|
|
448
|
+
type StoreRecord = Record<string, unknown>;
|
|
449
|
+
/**
|
|
450
|
+
* A field's write, untyped — the shape both factories build and `handle` hands out. `opts` is the
|
|
451
|
+
* public `FieldSetOptions`; only the URL lane can act on it.
|
|
452
|
+
*
|
|
453
|
+
* @internal — see `FieldCodec`.
|
|
454
|
+
*/
|
|
455
|
+
export type FieldWrite = (next: unknown, opts?: FieldSetOptions) => void;
|
|
456
|
+
/** One field's `use()`, untyped. @internal — see `FieldCodec`. */
|
|
457
|
+
export type FieldUse = () => readonly [unknown, FieldWrite];
|
|
458
|
+
/** One named field plus its codec, in declaration order. @internal — see `FieldCodec`. */
|
|
459
|
+
export type StoreEntry = {
|
|
460
|
+
readonly name: string;
|
|
461
|
+
readonly codec: FieldCodec;
|
|
462
|
+
};
|
|
463
|
+
export type StoreCoreOptions = {
|
|
464
|
+
readonly key: string;
|
|
465
|
+
readonly fields: Record<string, AnyField>;
|
|
466
|
+
readonly version?: number | undefined;
|
|
467
|
+
/**
|
|
468
|
+
* Legacy single-value storage layout: the whole envelope value IS this field's value, the shape
|
|
469
|
+
* `createSearchParamStore` has written since 1.0.0. Set ONLY by the deprecated wrappers — a
|
|
470
|
+
* consumer's already-persisted selection has to keep resolving byte-for-byte.
|
|
471
|
+
*/
|
|
472
|
+
readonly legacyValueField?: string;
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* The storage + resolution kernel. Deliberately NOT exported from any barrel: it is the seam
|
|
476
|
+
* between `./state`'s router-free store and `./router-tanstack`'s router-coupled one, and both of
|
|
477
|
+
* those are the public API.
|
|
478
|
+
*
|
|
479
|
+
* @internal — see `FieldCodec`.
|
|
480
|
+
*/
|
|
481
|
+
export type StoreCore = {
|
|
482
|
+
readonly entries: readonly StoreEntry[];
|
|
483
|
+
readonly urlEntries: readonly StoreEntry[];
|
|
484
|
+
readonly anyPersisted: boolean;
|
|
485
|
+
usePersistedRecord(): readonly [StoreRecord, (next: StoreRecord) => void];
|
|
486
|
+
readRecord(): StoreRecord;
|
|
487
|
+
setLabels(map: Record<string, Record<string, string> | undefined>): void;
|
|
488
|
+
optionsFor(entry: StoreEntry): readonly FieldOption[];
|
|
489
|
+
/** The resolution law, once: URL ⊳ localStorage ⊳ fallback. `search: null` skips the URL lane. */
|
|
490
|
+
resolve(entry: StoreEntry, search: StoreRecord | null, record: StoreRecord): unknown;
|
|
491
|
+
writeField(setRecord: (next: StoreRecord) => void, name: string, value: unknown): void;
|
|
492
|
+
/**
|
|
493
|
+
* The IN-MEMORY lane's `use()` for one field — a field with neither the URL nor the mirror.
|
|
494
|
+
* Lives here rather than in either factory because BOTH have such a field: `createLocalStore`'s
|
|
495
|
+
* `persist: false`, and `createSearchStore`'s `{ url: false, persist: false }`.
|
|
496
|
+
*/
|
|
497
|
+
memoryUse(entry: StoreEntry): FieldUse;
|
|
498
|
+
/** The memory lane's value for one field, resolved — its fallback while nothing was written. */
|
|
499
|
+
readMemoryValue(entry: StoreEntry): unknown;
|
|
500
|
+
/** Subscribes to the whole memory lane. The snapshot is a write counter, so it is always stable. */
|
|
501
|
+
useMemoryVersion(): number;
|
|
502
|
+
/** Drops every memory value, so the next read resolves to the fallback. What `useReset` calls. */
|
|
503
|
+
resetMemory(): void;
|
|
504
|
+
/**
|
|
505
|
+
* Deletes ONE field's key from the localStorage record, so the next read falls through to the
|
|
506
|
+
* live fallback. Not a hook: `FieldHandle.clear()` runs in an event handler, where the persisted
|
|
507
|
+
* setter from `usePersistedRecord()` is not in reach — it writes through the same envelope and
|
|
508
|
+
* wakes the same per-key listeners (`writePersistedValue`).
|
|
509
|
+
*/
|
|
510
|
+
clearField(name: string): void;
|
|
511
|
+
/** The memory lane's half of the same: drops ONE field's value. */
|
|
512
|
+
clearMemory(name: string): void;
|
|
513
|
+
/** Every stored field, flattened into URL-param shape, `undefined` entries dropped. */
|
|
514
|
+
readStoredFlat(): StoreRecord;
|
|
515
|
+
handle(entry: StoreEntry, use: FieldUse, clear: () => void): FieldHandle<AnyField>;
|
|
516
|
+
};
|
|
517
|
+
/** @internal — the seam behind `createSearchStore` and `createLocalStore`. */
|
|
518
|
+
export declare function createStoreCore(o: StoreCoreOptions): StoreCore;
|
|
519
|
+
/** `Pick<SearchStore<S>, 'field' | 'readStored' | 'labels'>` — the same handles, no router. */
|
|
520
|
+
export type LocalStore<S extends Record<string, AnyField>> = {
|
|
521
|
+
readonly field: {
|
|
522
|
+
[K in keyof S]: FieldHandle<S[K]>;
|
|
523
|
+
};
|
|
524
|
+
readStored: () => Partial<StoredValues<S>>;
|
|
525
|
+
/**
|
|
526
|
+
* Option labels for enum / multi / range fields — the same chainable contract
|
|
527
|
+
* `createSearchStore` has, so `SelectFilter`/`ViewTabs` read their option labels off a local
|
|
528
|
+
* store too. Call it once, at definition.
|
|
529
|
+
*/
|
|
530
|
+
labels: (map: Partial<{
|
|
531
|
+
[K in keyof S]: Record<string, string>;
|
|
532
|
+
}>) => LocalStore<S>;
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* A store with no URL lane and no router import: per-chart selects, a section's view tab, a compact
|
|
536
|
+
* toggle. Same `field.*` vocabulary and the same `FieldHandle` every basalt control binds to, so a
|
|
537
|
+
* control cannot tell the two stores apart — which is the point, and why the local lane is not an
|
|
538
|
+
* excuse to reach for `useState` (C3).
|
|
539
|
+
*
|
|
540
|
+
* A field's `url` lane is ignored here (there is no URL to write); `persist: false` is the
|
|
541
|
+
* IN-MEMORY lane — shared across mounts for the session, gone on reload, never in localStorage.
|
|
542
|
+
* That is the honest home for a value a reader should not be handed back tomorrow (a scratch
|
|
543
|
+
* comparison, a temporary drill-down) without dropping to `useState` and losing the handle.
|
|
544
|
+
*
|
|
545
|
+
* A fallback may be a THUNK (`field.string({ fallback: () => todayIso() })`) — resolved at read
|
|
546
|
+
* time, re-resolved while nothing is written, and never persisted on its own. Every lane here
|
|
547
|
+
* qualifies; `createSearchStore` allows it off the URL lane only, and throws otherwise.
|
|
548
|
+
*
|
|
549
|
+
* @example
|
|
550
|
+
* const chart = createLocalStore({
|
|
551
|
+
* key: 'momentum-chart',
|
|
552
|
+
* fields: {
|
|
553
|
+
* metric: field.enum(['load', 'volume'], 'load'),
|
|
554
|
+
* zoomed: field.boolean(false, { persist: false }), // in-memory, this session only
|
|
555
|
+
* },
|
|
556
|
+
* }).labels({ metric: { load: 'Load', volume: 'Volume' } })
|
|
557
|
+
* // <SelectFilter field={chart.field.metric} label="Metric" />
|
|
558
|
+
*/
|
|
559
|
+
export declare function createLocalStore<const S extends Record<string, AnyField>>(o: {
|
|
560
|
+
key: string;
|
|
561
|
+
fields: S;
|
|
562
|
+
version?: number;
|
|
563
|
+
}): LocalStore<S>;
|
|
564
|
+
export {};
|
|
565
|
+
//# sourceMappingURL=fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../src/state/fields.ts"],"names":[],"mappings":"AAgBA;;;;;;;;;GASG;AACH,MAAM,MAAM,SAAS,GAAG;IACtB,oGAAoG;IACpG,GAAG,CAAC,EAAE,OAAO,CAAA;IACb;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAC7B,CAAA;AAED,2FAA2F;AAC3F,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CAAA;AAE1F,4FAA4F;AAC5F,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,GAAG,E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