All notable changes to this project will be documented in this file. The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
Spinner
component.languages
option togenerateRoutes
function, that allows to generate routes for multiple languages.InferRouteKey
type utility that infers theRouteKey
type from the route object.useSwitchPathLang
hook, returned bygeneratePath
. It allows to switch between languages keeping the language path synchronized.- Tests for routing.
InferRouteKey
type utility that infers theRouteKey
type from the route object.
- Bumped dev dependencies.
- Renamed
generateTypedReactRoutedDOM
togenerateRoutes
- Moved
generateRoutes
declaration. generatePath
funcition util returned bygenerateRoutes
is now a hookuseGeneratePath
. This is needed to be able to check for the current language.
- Missing initial forward slash in
RouteKey
's generated paths.
- Added
CodeBlock
component. - Added
rightContent
prop toFilters
component.
- Storybook bumped to v7
- Fixed router typing declarations.
- Added
CodeBlock
component. - Added JSDoc comments to most of the components and hooks.
- Added README.md file with examples of usage for all the components and hooks.
- Added more tests.
- Added Storybook to the project.
- Added confirm button on datepicker filter field.
- Changed the way
useFilters
updates the search params. Now it takes the previous search params state from theuseSearchParams
hook callback.
- Added two new types of filter fields,
numeric
andautocomplete-single
. - Added
useAutocompleteTextInput
hook.