@kalyx/react 1.0.0-rc.13 → 1.0.0-rc.14

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @kalyx/react
2
2
 
3
+ ## 1.0.0-rc.14
4
+
5
+ ### Minor Changes
6
+
7
+ - 44b3fa6: Add `@kalyx/react/headless` entry for adapter-explicit usage. Default `@kalyx/react` entry continues to auto-inject the date-fns adapter — no breaking change. Use the headless entry to opt out of the bundled date-fns and provide your own adapter (dayjs, luxon, custom). See [Adapters guide](https://kalyx-docs.vercel.app/docs/guides/adapters).
8
+
3
9
  ## 1.0.0-rc.13
4
10
 
5
11
  ### Minor Changes
package/README.md CHANGED
@@ -87,6 +87,21 @@ Every sub-component forwards `className`, `style`, and `ref`, and accepts a `cla
87
87
 
88
88
  Full recipes: [Tailwind](https://kalyx-docs.vercel.app/docs/recipes/tailwind), [shadcn/ui](https://kalyx-docs.vercel.app/docs/recipes/shadcn), [React Hook Form](https://kalyx-docs.vercel.app/docs/recipes/react-hook-form).
89
89
 
90
+ ## Bring your own adapter
91
+
92
+ Already shipping `dayjs`, `luxon`, or `Temporal`? Skip the bundled `date-fns` and import from `@kalyx/react/headless` instead — same component surface, no auto-installed adapter:
93
+
94
+ ```tsx
95
+ import { DatePicker } from '@kalyx/react/headless';
96
+ import { DayjsAdapter } from './my-dayjs-adapter'; // your DateAdapter
97
+
98
+ <DatePicker adapter={DayjsAdapter} value={iso} onChange={setIso}>
99
+ <DatePicker.Calendar />
100
+ </DatePicker>
101
+ ```
102
+
103
+ If you forget the `adapter` prop, the Root throws a clear error telling you exactly what's missing. The full how-to (interface, dayjs reference implementation, edge cases) is in the [adapters guide](https://kalyx-docs.vercel.app/docs/guides/adapters).
104
+
90
105
  ## Documentation
91
106
 
92
107
  - [Introduction](https://kalyx-docs.vercel.app/docs/intro)