-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat(forms): add Value.Selection
component
#3857
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Selection
componentValue.Selection
component
77a61f7
to
086f45c
Compare
4dd3f61
to
05071ec
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice work 🚀
packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/info.mdx
Outdated
Show resolved
Hide resolved
packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection.mdx
Outdated
Show resolved
Hide resolved
…rms/Value/Selection/info.mdx Co-authored-by: Tobias Høegh <tobias@tujo.no>
…rms/Value/Selection.mdx Co-authored-by: Tobias Høegh <tobias@tujo.no>
packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/demos.mdx
Outdated
Show resolved
Hide resolved
c623e7e
to
5b8b130
Compare
packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection.mdx
Show resolved
Hide resolved
|
||
export const SelectionProperties: PropertiesTableProps = { | ||
dataPath: { | ||
doc: 'The path to the context data (Form.Handler). The object needs to have a `value` and a `title` property. The generated options will be placed above given JSX based children.', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doc: 'The path to the context data (Form.Handler). The object needs to have a `value` and a `title` property. The generated options will be placed above given JSX based children.', | |
doc: 'The path to the context data (Form.Handler). The context data object needs to have a `value` and a `title` property. The generated options will be placed above given JSX based children.', |
When reading this in the dos, I don't 100% get it.
## [10.45.0](v10.44.0...v10.45.0) (2024-08-26) ### 📝 Documentation * **Upload:** adds `false` as a file max size type ([#3846](#3846)) ([8747e74](8747e74)) ### 🐛 Bug Fixes * **forms:** enhance `Field.Name` validation rule ([#3849](#3849)) ([9c9142d](9c9142d)) * **forms:** ensure `Iterate.Array` can handle an array given in the data context ([#3842](#3842)) ([263f4c7](263f4c7)), closes [#3759](#3759) * **forms:** ensure `Section.EditContainer` cancel restores data when path is given ([#3853](#3853)) ([eabc583](eabc583)), closes [#3797](#3797) * **forms:** ensure pressing enter in an input field inside Wizard does trigger next step ([#3852](#3852)) ([fd35828](fd35828)) * **forms:** make `Form.Isolation`s data flow "from outside" stricter ([#3847](#3847)) ([977962b](977962b)), closes [#3844](#3844) * **forms:** validate fields inside `Iterate.EditContainer` when done button is pressed ([#3850](#3850)) ([2a2272e](2a2272e)) * **forms:** validate fields inside `Section.EditContainer` when done button is pressed ([#3851](#3851)) ([1c34980](1c34980)) * **useTheme:** define the return type of `null` as a possible return ([#3861](#3861)) ([8d0cf61](8d0cf61)) ### ✨ Features * **forms:** add `inheritLabel` prop to value components ([#3858](#3858)) ([01e0976](01e0976)) * **forms:** add `Iterate.PushContainer` to support an "initially open" container ([#3843](#3843)) ([0fe23a9](0fe23a9)) * **forms:** add `Value.ArraySelection` component ([#3854](#3854)) ([bc55cc2](bc55cc2)) * **forms:** add `Value.Selection` component ([#3857](#3857)) ([7432986](7432986)) * **forms:** add support for `{itemNr}` to the iterate container title + add `useItem` hook ([#3848](#3848)) ([0d50272](0d50272)) * **Upload:** define max file size for file type ([#3859](#3859)) ([13fc1a8](13fc1a8))
🎉 This PR is included in version 10.45.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Quick example: