@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 +10 -2
- package/dist/form.d.ts +1 -1
- package/dist/index-B0UMInYo.d.ts +647 -0
- package/dist/index-B828Nf0P.d.ts +200 -0
- package/dist/index-BdpiAK5-.d.ts +354 -0
- package/dist/index.d.ts +7 -7
- package/dist/index.js +1 -1
- package/dist/layout.d.ts +2 -2
- package/dist/navigation/Router/router-context.d.ts +13 -5
- package/dist/navigation/Router/router-context.d.ts.map +1 -1
- package/dist/navigation/Router/router-context.js +22 -5
- package/dist/navigation/Router/router-context.js.map +1 -1
- package/dist/navigation.d.ts +15 -7
- package/dist/ui.d.ts +2 -2
- package/package.json +1 -1
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
|
-
|
|
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-
|
|
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';
|