basalt-ui 1.38.1 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +8 -0
- package/MIGRATING.md +34 -13
- package/configs/oxlint-plugin.js +6 -0
- package/configs/oxlint-plugin.test.ts +2 -1
- package/dist/forms/index.d.ts +3 -36
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/index.js +0 -16
- package/dist/shell/index.d.ts +11 -0
- package/dist/shell/index.d.ts.map +1 -1
- package/dist/shell/index.js +2 -1
- package/dist/surfaces.d.ts +1 -1
- package/dist/surfaces.js +1 -1
- package/dist/tokens/palette.d.ts +2 -0
- package/dist/tokens/palette.d.ts.map +1 -1
- package/dist/tokens/palette.js +2 -0
- package/llms.txt +3 -3
- package/package.json +1 -1
- package/src/forms/index.ts +3 -44
- package/src/shell/index.tsx +13 -1
- package/src/surfaces.ts +1 -1
- package/src/tokens/palette.ts +2 -0
package/AGENTS.md
CHANGED
|
@@ -15,7 +15,7 @@ Toolchain: Bun runtime, oxlint + oxfmt, conventional commits (empty scope), `mas
|
|
|
15
15
|
| `basalt-ui/vite` | build-tooling | basaltViteConfig(opts) — Vite preset for basalt-ui consumer apps; basaltAppPlugin(opts) — PWA head, manifest, and icon metadata derived from the token palette |
|
|
16
16
|
| `basalt-ui/guard` | headless | checkSource, GUARD_RULES, Finding types — the headless theme-guard core |
|
|
17
17
|
| `basalt-ui/router-tanstack` | headless | TanStack Router bridge: defineNav/navGroup/navTarget (one typed nav definition) + useNav (sections + mobileNav, spread onto BasaltShell) + useBasaltNav (active route) + useRouterBreadcrumbs + createSearchStore (typed URL > localStorage > fallback store over field.enum/multi/range/number/boolean/string; the deprecated createSearchParamStore/createMultiSearchParamStore wrappers were removed in 1.29.0, C1 consolidation) |
|
|
18
|
-
| `basalt-ui/forms` | mantine-coupled | Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout
|
|
18
|
+
| `basalt-ui/forms` | mantine-coupled | Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout lives in ./controls (moved in 1.36.0) and useForm/schemaResolver come from @mantine/form; the six re-exports here were removed in 1.39.0 |
|
|
19
19
|
| `basalt-ui/notifications` | mantine-coupled | Mantine notifications: notify helpers, typed registry, persisted history, NotificationBell, NotificationCenter |
|
|
20
20
|
| `basalt-ui/commands` | mantine-coupled | typed command bus + overlay controller, toSpotlightActions, ShortcutsHelp, BasaltOverlays |
|
|
21
21
|
| `basalt-ui/data/table` | mantine-coupled | BasaltDataTable: a sortable data table over TanStack Table, rendered with Mantine (Mantine-rendered) |
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [1.39.0](https://github.com/jkrumm/basalt-ui/compare/v1.38.1...v1.39.0) (2026-10-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add BasaltShell headerHeight for a deliberate, consumer-set header row ([3561361](https://github.com/jkrumm/basalt-ui/commit/3561361279664d3ee51d245586331e057dd62844))
|
|
7
|
+
* remove the deprecated forms layout and useForm re-exports ([9e8b8c6](https://github.com/jkrumm/basalt-ui/commit/9e8b8c69241ea33d8bdf47532358166a809eb4ce))
|
|
8
|
+
|
|
1
9
|
## [1.38.1](https://github.com/jkrumm/basalt-ui/compare/v1.38.0...v1.38.1) (2026-10-04)
|
|
2
10
|
|
|
3
11
|
|
package/MIGRATING.md
CHANGED
|
@@ -66,18 +66,18 @@ There is one row per SURFACE, not per export, and a surface earns a row once any
|
|
|
66
66
|
shipped lefthook preset both changed in 1.30.0 with no row that owned them — which is how a
|
|
67
67
|
consumer read this index, found nothing, and diffed a KPI row that had silently gone 4-up → 2-up.
|
|
68
68
|
|
|
69
|
-
| Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | Unreleased
|
|
70
|
-
| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | --- |
|
|
71
|
-
| **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — |
|
|
72
|
-
| **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — |
|
|
73
|
-
| **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — |
|
|
74
|
-
| **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — |
|
|
75
|
-
| **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — |
|
|
76
|
-
| **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — |
|
|
77
|
-
| **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
78
|
-
| **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
79
|
-
| **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
80
|
-
| **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — |
|
|
69
|
+
| Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | Unreleased |
|
|
70
|
+
| ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ---------- | --- |
|
|
71
|
+
| **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — |
|
|
72
|
+
| **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
73
|
+
| **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — |
|
|
74
|
+
| **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — |
|
|
75
|
+
| **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — |
|
|
76
|
+
| **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
77
|
+
| **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
78
|
+
| **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
79
|
+
| **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
|
|
80
|
+
| **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — |
|
|
81
81
|
|
|
82
82
|
---
|
|
83
83
|
|
|
@@ -86,6 +86,25 @@ consumer read this index, found nothing, and diffed a KPI row that had silently
|
|
|
86
86
|
_Nothing yet. Author the next section under this heading as `## Unreleased — <title>`; the
|
|
87
87
|
release renames it and opens a new one here._
|
|
88
88
|
|
|
89
|
+
## 1.39.0 — the forms aliases leave
|
|
90
|
+
|
|
91
|
+
**Added: `BasaltShell headerHeight?: number`** (px, default unchanged — the density-tracking
|
|
92
|
+
`appShellHeaderHeight`, 44). One value for both sidebar forms and every width; the navbar and aside
|
|
93
|
+
tops, the page-bar band and Main follow it. A native unified-toolbar title bar sets ~52.
|
|
94
|
+
|
|
95
|
+
**Removed (grace ended — deprecated in 1.36.0, re-dated twice):** the six `basalt-ui/forms`
|
|
96
|
+
re-exports below. No autofix: move the import by hand.
|
|
97
|
+
|
|
98
|
+
| Was (`basalt-ui/forms`) | Now |
|
|
99
|
+
| ------------------------------------------------------------------------------------- | ---------------------------------------- |
|
|
100
|
+
| `FormSection`, `FormRow`, `FormGroup`, `FormActions` (+ their `*Props`/`*Slot` types) | the same names from `basalt-ui/controls` |
|
|
101
|
+
| `useForm`, `schemaResolver`, `UseFormReturnType`, `UseFormInput` | `@mantine/form` directly |
|
|
102
|
+
|
|
103
|
+
`basalt/deprecated-export` keeps the rows as `removed: true`, so an old import still gets a finding
|
|
104
|
+
that names the new home. `useBasaltForm`, `inputProps`, `fieldKey`, `useFormSubmit`,
|
|
105
|
+
`FormStateProvider`, `useFieldArray`, `FormErrorSummary` and `useFormDraft` are unchanged.
|
|
106
|
+
The `public symbols` budget is back to 400.
|
|
107
|
+
|
|
89
108
|
## 1.38.1 — the content inset
|
|
90
109
|
|
|
91
110
|
No export changed. Two default numbers moved, both from `sm` up (the phone gutter is untouched):
|
|
@@ -100,7 +119,9 @@ No export changed. Two default numbers moved, both from `sm` up (the phone gutte
|
|
|
100
119
|
The block inset is `stack-sm` from `sm` up and stays `stack-md` (12) on a phone. The breadcrumb
|
|
101
120
|
now sits exactly on Main's content edge (it was 7px short of it); the brand mark no longer borrows
|
|
102
121
|
the page gutter for its x — it is the nav-icon column (`row-inset-x` twice) on its own, so it stays
|
|
103
|
-
at 20 while the gutter is 16.
|
|
122
|
+
at 20 while the gutter is 16.
|
|
123
|
+
|
|
124
|
+
A consumer that wants the old numbers has no knob for them: the gutter
|
|
104
125
|
is a `SPACE_STEP` entry, so retune it through the density level or accept the new default.
|
|
105
126
|
|
|
106
127
|
## 1.38.0
|
package/configs/oxlint-plugin.js
CHANGED
|
@@ -3672,6 +3672,7 @@ export const DEPRECATED_EXPORTS = [
|
|
|
3672
3672
|
name: 'FormSection',
|
|
3673
3673
|
replacement: "FormSection from 'basalt-ui/controls'",
|
|
3674
3674
|
removeIn: '1.39.0',
|
|
3675
|
+
removed: true,
|
|
3675
3676
|
fix: false,
|
|
3676
3677
|
},
|
|
3677
3678
|
{
|
|
@@ -3679,6 +3680,7 @@ export const DEPRECATED_EXPORTS = [
|
|
|
3679
3680
|
name: 'FormRow',
|
|
3680
3681
|
replacement: "FormRow from 'basalt-ui/controls'",
|
|
3681
3682
|
removeIn: '1.39.0',
|
|
3683
|
+
removed: true,
|
|
3682
3684
|
fix: false,
|
|
3683
3685
|
},
|
|
3684
3686
|
{
|
|
@@ -3686,6 +3688,7 @@ export const DEPRECATED_EXPORTS = [
|
|
|
3686
3688
|
name: 'FormGroup',
|
|
3687
3689
|
replacement: "FormGroup from 'basalt-ui/controls'",
|
|
3688
3690
|
removeIn: '1.39.0',
|
|
3691
|
+
removed: true,
|
|
3689
3692
|
fix: false,
|
|
3690
3693
|
},
|
|
3691
3694
|
{
|
|
@@ -3693,6 +3696,7 @@ export const DEPRECATED_EXPORTS = [
|
|
|
3693
3696
|
name: 'FormActions',
|
|
3694
3697
|
replacement: "FormActions from 'basalt-ui/controls'",
|
|
3695
3698
|
removeIn: '1.39.0',
|
|
3699
|
+
removed: true,
|
|
3696
3700
|
fix: false,
|
|
3697
3701
|
},
|
|
3698
3702
|
{
|
|
@@ -3700,6 +3704,7 @@ export const DEPRECATED_EXPORTS = [
|
|
|
3700
3704
|
name: 'useForm',
|
|
3701
3705
|
replacement: "useForm from '@mantine/form'",
|
|
3702
3706
|
removeIn: '1.39.0',
|
|
3707
|
+
removed: true,
|
|
3703
3708
|
fix: false,
|
|
3704
3709
|
},
|
|
3705
3710
|
{
|
|
@@ -3707,6 +3712,7 @@ export const DEPRECATED_EXPORTS = [
|
|
|
3707
3712
|
name: 'schemaResolver',
|
|
3708
3713
|
replacement: "schemaResolver from '@mantine/form'",
|
|
3709
3714
|
removeIn: '1.39.0',
|
|
3715
|
+
removed: true,
|
|
3710
3716
|
fix: false,
|
|
3711
3717
|
},
|
|
3712
3718
|
{
|
|
@@ -3393,7 +3393,7 @@ describe('basalt/deprecated-export — the form layout move', () => {
|
|
|
3393
3393
|
)
|
|
3394
3394
|
expect(rules).toContain('deprecated-export')
|
|
3395
3395
|
expect(output).toContain(`'basalt-ui/controls'`)
|
|
3396
|
-
expect(output).toContain('removed in 1.39.0')
|
|
3396
|
+
expect(output).toContain('was removed in 1.39.0')
|
|
3397
3397
|
},
|
|
3398
3398
|
)
|
|
3399
3399
|
|
|
@@ -3403,6 +3403,7 @@ describe('basalt/deprecated-export — the form layout move', () => {
|
|
|
3403
3403
|
)
|
|
3404
3404
|
expect(rules).toContain('deprecated-export')
|
|
3405
3405
|
expect(output).toContain(`'@mantine/form'`)
|
|
3406
|
+
expect(output).toContain('was removed in 1.39.0')
|
|
3406
3407
|
})
|
|
3407
3408
|
|
|
3408
3409
|
it('does NOT report FormRow imported from basalt-ui/controls', () => {
|
package/dist/forms/index.d.ts
CHANGED
|
@@ -8,38 +8,15 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Four pieces: the form (`useBasaltForm` + `inputProps`/`fieldKey`), the submit lifecycle
|
|
10
10
|
* (`useFormSubmit` + `FormStateProvider`), the list field (`useFieldArray`) and the draft
|
|
11
|
-
* (`useFormDraft`). The layout (`FormSection` / `FormRow` / `FormGroup` / `FormActions`)
|
|
12
|
-
* `basalt-ui/controls`
|
|
13
|
-
*
|
|
14
|
-
* `@mantine/form`).
|
|
11
|
+
* (`useFormDraft`). The layout (`FormSection` / `FormRow` / `FormGroup` / `FormActions`) lives in
|
|
12
|
+
* `basalt-ui/controls` (it needs no `@mantine/form`); `useForm`/`schemaResolver` come from
|
|
13
|
+
* `@mantine/form` directly. Both stopped being re-exported here in 1.39.0.
|
|
15
14
|
*
|
|
16
15
|
* Optional peer: @mantine/form ^9.3.0 — install with: bun add @mantine/form
|
|
17
16
|
*/
|
|
18
17
|
export { useBasaltForm } from './create-form.js';
|
|
19
18
|
export type { UseBasaltFormOptions } from './create-form.js';
|
|
20
19
|
export { inputProps, fieldKey } from './field.js';
|
|
21
|
-
export {
|
|
22
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
23
|
-
FormSection,
|
|
24
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
25
|
-
FormRow,
|
|
26
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
27
|
-
FormGroup,
|
|
28
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
29
|
-
FormActions, } from '../controls/form-layout.js';
|
|
30
|
-
export type {
|
|
31
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
32
|
-
FormSectionProps,
|
|
33
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
34
|
-
FormSectionSlot,
|
|
35
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
36
|
-
FormRowProps,
|
|
37
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
38
|
-
FormRowSlot,
|
|
39
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
40
|
-
FormGroupProps,
|
|
41
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
42
|
-
FormActionsProps, } from '../controls/form-layout.js';
|
|
43
20
|
export { useFormSubmit, isFieldErrorEnvelope } from './use-form-submit.js';
|
|
44
21
|
export type { FormFieldErrors, UseFormSubmitOptions, UseFormSubmitReturn } from './use-form-submit.js';
|
|
45
22
|
export { FormStateProvider, useFormState } from './form-state.js';
|
|
@@ -50,14 +27,4 @@ export { FormErrorSummary } from './FormErrorSummary.js';
|
|
|
50
27
|
export type { FormErrorSummaryProps } from './FormErrorSummary.js';
|
|
51
28
|
export { useFormDraft, DEFAULT_AUTOSAVE_DEBOUNCE_MS } from './use-form-draft.js';
|
|
52
29
|
export type { UseFormDraftOptions, UseFormDraftReturn } from './use-form-draft.js';
|
|
53
|
-
export {
|
|
54
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
55
|
-
useForm,
|
|
56
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
57
|
-
schemaResolver, } from '@mantine/form';
|
|
58
|
-
export type {
|
|
59
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
60
|
-
UseFormReturnType,
|
|
61
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
62
|
-
UseFormInput, } from '@mantine/form';
|
|
63
30
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/forms/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/forms/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAC7C,YAAY,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAA;AAIzD,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAG9C,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AACvE,YAAY,EAAE,eAAe,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AACnG,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAC9D,YAAY,EAAE,SAAS,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAGrE,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAG5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAG/D,OAAO,EAAE,YAAY,EAAE,4BAA4B,EAAE,MAAM,kBAAkB,CAAA;AAC7E,YAAY,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA"}
|
package/dist/forms/index.js
CHANGED
|
@@ -1,35 +1,19 @@
|
|
|
1
1
|
import { useBasaltForm } from "./create-form.js";
|
|
2
2
|
import { inputProps, fieldKey } from "./field.js";
|
|
3
|
-
import {
|
|
4
|
-
FormSection,
|
|
5
|
-
FormRow,
|
|
6
|
-
FormGroup,
|
|
7
|
-
FormActions
|
|
8
|
-
} from "../controls/form-layout.js";
|
|
9
3
|
import { useFormSubmit, isFieldErrorEnvelope } from "./use-form-submit.js";
|
|
10
4
|
import { FormStateProvider, useFormState } from "./form-state.js";
|
|
11
5
|
import { useFieldArray } from "./use-field-array.js";
|
|
12
6
|
import { FormErrorSummary } from "./FormErrorSummary.js";
|
|
13
7
|
import { useFormDraft, DEFAULT_AUTOSAVE_DEBOUNCE_MS } from "./use-form-draft.js";
|
|
14
|
-
import {
|
|
15
|
-
useForm,
|
|
16
|
-
schemaResolver
|
|
17
|
-
} from "@mantine/form";
|
|
18
8
|
export {
|
|
19
9
|
DEFAULT_AUTOSAVE_DEBOUNCE_MS,
|
|
20
|
-
FormActions,
|
|
21
10
|
FormErrorSummary,
|
|
22
|
-
FormGroup,
|
|
23
|
-
FormRow,
|
|
24
|
-
FormSection,
|
|
25
11
|
FormStateProvider,
|
|
26
12
|
fieldKey,
|
|
27
13
|
inputProps,
|
|
28
14
|
isFieldErrorEnvelope,
|
|
29
|
-
schemaResolver,
|
|
30
15
|
useBasaltForm,
|
|
31
16
|
useFieldArray,
|
|
32
|
-
useForm,
|
|
33
17
|
useFormDraft,
|
|
34
18
|
useFormState,
|
|
35
19
|
useFormSubmit
|
package/dist/shell/index.d.ts
CHANGED
|
@@ -144,6 +144,17 @@ export type BasaltShellProps = BasaltProps & {
|
|
|
144
144
|
* a no-op when omitted.
|
|
145
145
|
*/
|
|
146
146
|
onCollapsedChange?: (collapsed: boolean) => void;
|
|
147
|
+
/**
|
|
148
|
+
* The header row's height in px — default `SPACE_STEP.appShellHeaderHeight` (44, tracking the
|
|
149
|
+
* density level). ONE number at every width and in both sidebar forms (law C14): the navbar's and
|
|
150
|
+
* aside's top, the page-bar band, the aside's shell header and Main all derive from Mantine's
|
|
151
|
+
* `--app-shell-header-height`, so they follow it with no second value to keep in step. Brand,
|
|
152
|
+
* breadcrumb, page actions and globals centre vertically in the row. For a host that draws its
|
|
153
|
+
* own chrome into the header, e.g. a native macOS unified-toolbar title bar (~52): pair it with
|
|
154
|
+
* `--basalt-shell-lead-inset`. Keep it at or above the `ctl` control height (32) — the row holds
|
|
155
|
+
* one `ctl`-tier control.
|
|
156
|
+
*/
|
|
157
|
+
headerHeight?: number;
|
|
147
158
|
/** Page content. */
|
|
148
159
|
children?: ReactNode;
|
|
149
160
|
};
|
|
@@ -1 +1 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;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,EAAE,YAAY,EAAE,CAAA;IAC9B;;;OAGG;IACH,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;IACvC;;;OAGG;IACH,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B;;;;OAIG;IACH,MAAM,CAAC,EAAE,mBAAmB,GAAG;QAAE,OAAO,CAAC,EAAE,oBAAoB,CAAA;KAAE,CAAA;IACjE;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAChD;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,oBAAoB;IACpB,QAAQ,CAAC,EAAE,SAAS,CAAA;CACrB,CAAA;AAgFD;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BASlD"}
|
package/dist/shell/index.js
CHANGED
|
@@ -87,6 +87,7 @@ function ShellFrame({
|
|
|
87
87
|
storageKey = "basalt-sidebar-collapsed",
|
|
88
88
|
collapsed: collapsedProp,
|
|
89
89
|
onCollapsedChange,
|
|
90
|
+
headerHeight,
|
|
90
91
|
account,
|
|
91
92
|
search,
|
|
92
93
|
children,
|
|
@@ -146,7 +147,7 @@ function ShellFrame({
|
|
|
146
147
|
h: "100dvh",
|
|
147
148
|
header: {
|
|
148
149
|
// ONE height at every width (law C14): nothing reserves a second mobile row any more.
|
|
149
|
-
height: step.appShellHeaderHeight
|
|
150
|
+
height: headerHeight ?? step.appShellHeaderHeight
|
|
150
151
|
},
|
|
151
152
|
navbar: {
|
|
152
153
|
width: { base: step.appShellNavbarWidth, sm: navbarWidth },
|
package/dist/surfaces.d.ts
CHANGED
|
@@ -267,7 +267,7 @@ export declare const SURFACES: {
|
|
|
267
267
|
readonly skill: readonly ["basalt-design"];
|
|
268
268
|
readonly guardKinds: readonly [];
|
|
269
269
|
readonly pluginRules: readonly ["forms-field-key"];
|
|
270
|
-
readonly description: "Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout
|
|
270
|
+
readonly description: "Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout lives in ./controls (moved in 1.36.0) and useForm/schemaResolver come from @mantine/form; the six re-exports here were removed in 1.39.0";
|
|
271
271
|
readonly optionalPeers: readonly ["@mantine/form"];
|
|
272
272
|
readonly forbiddenImports: readonly [];
|
|
273
273
|
};
|
package/dist/surfaces.js
CHANGED
|
@@ -243,7 +243,7 @@ const SURFACES = {
|
|
|
243
243
|
// only stops resetting. `warn` through the 1.30.0 grace because it fires on what every
|
|
244
244
|
// consumer ships today (`PLUGIN_RULE_GRACE`).
|
|
245
245
|
pluginRules: ["forms-field-key"],
|
|
246
|
-
description: "Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls \u2014 a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout
|
|
246
|
+
description: "Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls \u2014 a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout lives in ./controls (moved in 1.36.0) and useForm/schemaResolver come from @mantine/form; the six re-exports here were removed in 1.39.0",
|
|
247
247
|
optionalPeers: ["@mantine/form"],
|
|
248
248
|
forbiddenImports: []
|
|
249
249
|
},
|
package/dist/tokens/palette.d.ts
CHANGED
|
@@ -502,6 +502,8 @@ declare const SPACE_STEP_BASE: {
|
|
|
502
502
|
* folds that row's overflow into a kebab and moves its filters/tabs into the page flow, so the
|
|
503
503
|
* bar is one row on a phone too and there is no sum to keep in step any more.
|
|
504
504
|
*
|
|
505
|
+
* Consumer-settable per shell through `BasaltShell`'s `headerHeight` (px); this is its default.
|
|
506
|
+
*
|
|
505
507
|
* 44, down from 48. The band holds ONE `ctl`-tier row (32 since this pass), so 48 left 8px of
|
|
506
508
|
* dead air above and below it — the "too much spacing at the top bar" the header reads as. 44
|
|
507
509
|
* keeps 6px of breathing room a side, still clears `controlHeight` (42) for a `size="md"`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../src/tokens/palette.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAExC;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;CAgCL,CAAA;AAEV;;;;GAIG;AACH,eAAO,MAAM,CAA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}
|
package/dist/tokens/palette.js
CHANGED
|
@@ -414,6 +414,8 @@ const SPACE_STEP_BASE = {
|
|
|
414
414
|
* folds that row's overflow into a kebab and moves its filters/tabs into the page flow, so the
|
|
415
415
|
* bar is one row on a phone too and there is no sum to keep in step any more.
|
|
416
416
|
*
|
|
417
|
+
* Consumer-settable per shell through `BasaltShell`'s `headerHeight` (px); this is its default.
|
|
418
|
+
*
|
|
417
419
|
* 44, down from 48. The band holds ONE `ctl`-tier row (32 since this pass), so 48 left 8px of
|
|
418
420
|
* dead air above and below it — the "too much spacing at the top bar" the header reads as. 44
|
|
419
421
|
* keeps 6px of breathing room a side, still clears `controlHeight` (42) for a `size="md"`
|
package/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# basalt-ui v1.
|
|
1
|
+
# basalt-ui v1.39.0
|
|
2
2
|
# Opinionated framework for Mantine-based React apps — theme, app shell, visx charts, toolchain presets
|
|
3
3
|
#
|
|
4
4
|
# basalt-ui is an opinionated framework for Mantine-based React apps.
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
# ./tokens.css subpath. Guide: docs/FRAMEWORK-FREE.md in the repo.
|
|
20
20
|
|
|
21
21
|
Package: basalt-ui
|
|
22
|
-
Version: 1.
|
|
22
|
+
Version: 1.39.0
|
|
23
23
|
|
|
24
24
|
## basalt-ui
|
|
25
25
|
Import: import { ... } from 'basalt-ui'
|
|
@@ -70,7 +70,7 @@ OptionalPeers: @tanstack/react-router@^1.170.0
|
|
|
70
70
|
|
|
71
71
|
## basalt-ui/forms
|
|
72
72
|
Import: import { ... } from 'basalt-ui/forms'
|
|
73
|
-
Description: Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout
|
|
73
|
+
Description: Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout lives in ./controls (moved in 1.36.0) and useForm/schemaResolver come from @mantine/form; the six re-exports here were removed in 1.39.0
|
|
74
74
|
Layer: mantine-coupled
|
|
75
75
|
Rule: basalt-batteries
|
|
76
76
|
OptionalPeers: @mantine/form@^9.3.0
|
package/package.json
CHANGED
package/src/forms/index.ts
CHANGED
|
@@ -8,10 +8,9 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Four pieces: the form (`useBasaltForm` + `inputProps`/`fieldKey`), the submit lifecycle
|
|
10
10
|
* (`useFormSubmit` + `FormStateProvider`), the list field (`useFieldArray`) and the draft
|
|
11
|
-
* (`useFormDraft`). The layout (`FormSection` / `FormRow` / `FormGroup` / `FormActions`)
|
|
12
|
-
* `basalt-ui/controls`
|
|
13
|
-
*
|
|
14
|
-
* `@mantine/form`).
|
|
11
|
+
* (`useFormDraft`). The layout (`FormSection` / `FormRow` / `FormGroup` / `FormActions`) lives in
|
|
12
|
+
* `basalt-ui/controls` (it needs no `@mantine/form`); `useForm`/`schemaResolver` come from
|
|
13
|
+
* `@mantine/form` directly. Both stopped being re-exported here in 1.39.0.
|
|
15
14
|
*
|
|
16
15
|
* Optional peer: @mantine/form ^9.3.0 — install with: bun add @mantine/form
|
|
17
16
|
*/
|
|
@@ -24,32 +23,6 @@ export type { UseBasaltFormOptions } from './create-form'
|
|
|
24
23
|
// Two calls, never one object: `key` inside a spread is a React 19 warning. See field.ts.
|
|
25
24
|
export { inputProps, fieldKey } from './field'
|
|
26
25
|
|
|
27
|
-
// ── layout — moved to ./controls (1.36.0), deprecated aliases until 1.39.0 ─────
|
|
28
|
-
export {
|
|
29
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
30
|
-
FormSection,
|
|
31
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
32
|
-
FormRow,
|
|
33
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
34
|
-
FormGroup,
|
|
35
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
36
|
-
FormActions,
|
|
37
|
-
} from '../controls/form-layout'
|
|
38
|
-
export type {
|
|
39
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
40
|
-
FormSectionProps,
|
|
41
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
42
|
-
FormSectionSlot,
|
|
43
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
44
|
-
FormRowProps,
|
|
45
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
46
|
-
FormRowSlot,
|
|
47
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
48
|
-
FormGroupProps,
|
|
49
|
-
/** @deprecated Import from 'basalt-ui/controls' — removed in 1.39.0. */
|
|
50
|
-
FormActionsProps,
|
|
51
|
-
} from '../controls/form-layout'
|
|
52
|
-
|
|
53
26
|
// ── submit lifecycle ──────────────────────────────────────────────────────────
|
|
54
27
|
export { useFormSubmit, isFieldErrorEnvelope } from './use-form-submit'
|
|
55
28
|
export type { FormFieldErrors, UseFormSubmitOptions, UseFormSubmitReturn } from './use-form-submit'
|
|
@@ -67,17 +40,3 @@ export type { FormErrorSummaryProps } from './FormErrorSummary'
|
|
|
67
40
|
// ── useFormDraft ──────────────────────────────────────────────────────────────
|
|
68
41
|
export { useFormDraft, DEFAULT_AUTOSAVE_DEBOUNCE_MS } from './use-form-draft'
|
|
69
42
|
export type { UseFormDraftOptions, UseFormDraftReturn } from './use-form-draft'
|
|
70
|
-
|
|
71
|
-
// ── @mantine/form re-exports — deprecated, zero consumers import them from here ──
|
|
72
|
-
export {
|
|
73
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
74
|
-
useForm,
|
|
75
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
76
|
-
schemaResolver,
|
|
77
|
-
} from '@mantine/form'
|
|
78
|
-
export type {
|
|
79
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
80
|
-
UseFormReturnType,
|
|
81
|
-
/** @deprecated Import from '@mantine/form' — removed in 1.39.0. */
|
|
82
|
-
UseFormInput,
|
|
83
|
-
} from '@mantine/form'
|
package/src/shell/index.tsx
CHANGED
|
@@ -232,6 +232,17 @@ export type BasaltShellProps = BasaltProps & {
|
|
|
232
232
|
* a no-op when omitted.
|
|
233
233
|
*/
|
|
234
234
|
onCollapsedChange?: (collapsed: boolean) => void
|
|
235
|
+
/**
|
|
236
|
+
* The header row's height in px — default `SPACE_STEP.appShellHeaderHeight` (44, tracking the
|
|
237
|
+
* density level). ONE number at every width and in both sidebar forms (law C14): the navbar's and
|
|
238
|
+
* aside's top, the page-bar band, the aside's shell header and Main all derive from Mantine's
|
|
239
|
+
* `--app-shell-header-height`, so they follow it with no second value to keep in step. Brand,
|
|
240
|
+
* breadcrumb, page actions and globals centre vertically in the row. For a host that draws its
|
|
241
|
+
* own chrome into the header, e.g. a native macOS unified-toolbar title bar (~52): pair it with
|
|
242
|
+
* `--basalt-shell-lead-inset`. Keep it at or above the `ctl` control height (32) — the row holds
|
|
243
|
+
* one `ctl`-tier control.
|
|
244
|
+
*/
|
|
245
|
+
headerHeight?: number
|
|
235
246
|
/** Page content. */
|
|
236
247
|
children?: ReactNode
|
|
237
248
|
}
|
|
@@ -349,6 +360,7 @@ function ShellFrame({
|
|
|
349
360
|
storageKey = 'basalt-sidebar-collapsed',
|
|
350
361
|
collapsed: collapsedProp,
|
|
351
362
|
onCollapsedChange,
|
|
363
|
+
headerHeight,
|
|
352
364
|
account,
|
|
353
365
|
search,
|
|
354
366
|
children,
|
|
@@ -466,7 +478,7 @@ function ShellFrame({
|
|
|
466
478
|
// bar to the RIGHT of the sidebar instead of above it.
|
|
467
479
|
header={{
|
|
468
480
|
// ONE height at every width (law C14): nothing reserves a second mobile row any more.
|
|
469
|
-
height: step.appShellHeaderHeight,
|
|
481
|
+
height: headerHeight ?? step.appShellHeaderHeight,
|
|
470
482
|
}}
|
|
471
483
|
navbar={{
|
|
472
484
|
width: { base: step.appShellNavbarWidth, sm: navbarWidth },
|
package/src/surfaces.ts
CHANGED
|
@@ -443,7 +443,7 @@ export const SURFACES = {
|
|
|
443
443
|
// consumer ships today (`PLUGIN_RULE_GRACE`).
|
|
444
444
|
pluginRules: ['forms-field-key'],
|
|
445
445
|
description:
|
|
446
|
-
'Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout
|
|
446
|
+
'Mantine form layer: useBasaltForm + inputProps/fieldKey (two calls — a spread `key` is a React 19 warning; the deprecated `field` alias for `inputProps` was removed in 1.29.0, C1 consolidation), useFormSubmit (submit state, decoded errors, server fieldErrors, focus-first-error, validateAsync), FormStateProvider disable propagation, useFieldArray, FormErrorSummary, useFormDraft with autosave (Standard Schema). The FormSection/FormRow/FormGroup/FormActions layout lives in ./controls (moved in 1.36.0) and useForm/schemaResolver come from @mantine/form; the six re-exports here were removed in 1.39.0',
|
|
447
447
|
optionalPeers: ['@mantine/form'],
|
|
448
448
|
forbiddenImports: [],
|
|
449
449
|
},
|
package/src/tokens/palette.ts
CHANGED
|
@@ -611,6 +611,8 @@ const SPACE_STEP_BASE = {
|
|
|
611
611
|
* folds that row's overflow into a kebab and moves its filters/tabs into the page flow, so the
|
|
612
612
|
* bar is one row on a phone too and there is no sum to keep in step any more.
|
|
613
613
|
*
|
|
614
|
+
* Consumer-settable per shell through `BasaltShell`'s `headerHeight` (px); this is its default.
|
|
615
|
+
*
|
|
614
616
|
* 44, down from 48. The band holds ONE `ctl`-tier row (32 since this pass), so 48 left 8px of
|
|
615
617
|
* dead air above and below it — the "too much spacing at the top bar" the header reads as. 44
|
|
616
618
|
* keeps 6px of breathing room a side, still clears `controlHeight` (42) for a `size="md"`
|