Skip to content

Commit

Permalink
[FX-4554] Export useFieldsLayoutContext hook (#4033)
Browse files Browse the repository at this point in the history
  • Loading branch information
sashuk authored Nov 30, 2023
1 parent 05cc26a commit 090c794
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
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
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

0 comments on commit 090c794

Please sign in to comment.