@kismet-ux/constellation 1.15.0 → 1.15.1

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/README.md CHANGED
@@ -133,12 +133,20 @@ Wrap the app once and every link, breadcrumb, sidebar item and menu action upgra
133
133
  import { RouterProvider } from '@kismet-ux/constellation/navigation';
134
134
  import { Link, useNavigate } from 'react-router-dom';
135
135
 
136
- <RouterProvider linkComponent={Link} navigate={useNavigate()}>
136
+ <RouterProvider linkComponent={Link} linkProp={'to'} navigate={useNavigate()}>
137
137
  <App />
138
138
  </RouterProvider>
139
139
  ```
140
140
 
141
- Works the same with Next, TanStack Router, or anything else that exposes a link component and an imperative navigate.
141
+ Constellation hands every link its destination as `href`. React Router and TanStack Router read `to` instead, so name that prop with `linkProp={'to'}`; Next and Inertia read `href` and need nothing extra:
142
+
143
+ ```tsx
144
+ <RouterProvider linkComponent={NextLink} navigate={router.push}>
145
+ <App />
146
+ </RouterProvider>
147
+ ```
148
+
149
+ Anything else that exposes a link component and an imperative navigate works the same way.
142
150
 
143
151
  Components take data, never globals: `AppShell` takes `defaultSidebarOpen`, `NavUser` takes `user` plus `onSettings` / `onLogout`.
144
152
 
package/dist/form.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { C as Checkbox, a as CheckboxProps, b as Combobox, c as ComboboxOption, d as ComboboxProps, D as DatePicker, L as Label, f as LabelProps, S as Select, h as SelectContent, j as SelectField, l as SelectGroup, m as SelectItem, p as SelectSeparator, r as SelectTrigger, s as SelectValue, t as __Surface } from './index-BPKtGvrM.js';
1
+ export { C as Checkbox, a as CheckboxProps, b as Combobox, c as ComboboxOption, d as ComboboxProps, D as DatePicker, L as Label, f as LabelProps, S as Select, h as SelectContent, j as SelectField, l as SelectGroup, m as SelectItem, p as SelectSeparator, r as SelectTrigger, s as SelectValue, t as __Surface } from './index-B828Nf0P.js';
2
2
  export { I as Input, b as InputBaseProps } from './input-BHmlHvYR.js';
3
3
  import 'react';
4
4
  import 'class-variance-authority';