Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FX-4554] Export useFieldsLayoutContext hook #4033

Merged
merged 4 commits into from
Nov 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/brown-pigs-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@toptal/picasso-forms': minor
---

- mention `useFieldsLayoutContext` hook in forms documentation
5 changes: 5 additions & 0 deletions .changeset/neat-lies-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@toptal/picasso': minor
---

- export `useFieldsLayoutContext()` hook
dmaklygin marked this conversation as resolved.
Show resolved Hide resolved
3 changes: 2 additions & 1 deletion packages/picasso-forms/src/Form/story/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ types supported by picasso-forms.
'Form/story/Horizontal.example.tsx',
{
title: 'Horizontal',
description: 'Horizontal form with responsive design',
description:
'Horizontal form with responsive design. Use "useFieldsLayoutContext()" hook from "@toptal/picasso" to get access to the current layout depending on the screen size.',
screenshotBreakpoints: true,
},
'picasso-form'
Expand Down
1 change: 1 addition & 0 deletions packages/picasso/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ export type {
FileRejection as AvatarUploadFileRejection,
DropEvent as AvatarUploadDropEvent,
} from './AvatarUpload'
export * from './FieldsLayout'

export { default as Carousel } from './Carousel'
export type { CarouselProps } from './Carousel'
Expand Down
Loading