diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/form-label/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/components/form-label/demos.mdx
index c1f6db9aa9f..e29266e7e40 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/components/form-label/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/form-label/demos.mdx
@@ -14,7 +14,7 @@ import * as Examples from 'Docs/uilib/components/form-label/Examples'
-### Vertical form-label without a `for_id`
+### Vertical form-label without a `forId`
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/input/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/components/input/Examples.tsx
index 7516d764bb6..2e390f17d80 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/components/input/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/input/Examples.tsx
@@ -198,7 +198,7 @@ export const InputExampleSubmit = () => (
console.log(event)
}}
>
-
Label
+
Label
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/Examples.tsx
new file mode 100644
index 00000000000..63696af81e5
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/Examples.tsx
@@ -0,0 +1,221 @@
+/**
+ * UI lib Component Example
+ *
+ */
+
+import React from 'react'
+import ComponentBox from '../../../../shared/tags/ComponentBox'
+import { Provider } from '@dnb/eufemia/src/shared'
+import { ListFormat, P, Badge, Anchor } from '@dnb/eufemia/src'
+import { listFormat } from '@dnb/eufemia/src/components/list-format/ListFormat'
+
+export const UsingListFormatFunction = () => {
+ return (
+
+ {listFormat(
+ [
+ A ,
+ <>
+ B
+ >,
+ <>C>,
+ 'D',
+ 123,
+
+ Link to Eufemia's Github Repo
+ ,
+ <>
+ Text Text
+ >,
+ ],
+ {
+ format: { type: 'disjunction' },
+ locale: 'en-US',
+ },
+ )}
+
+ )
+}
+
+export const WithValue = () => {
+ return (
+
+ A,
+ <>
+ B
+ >,
+ <>C>,
+ 'D',
+ 123,
+
+ Link to Eufemia's Github Repo
+ ,
+ <>
+ Text Text
+ >,
+ ]}
+ />
+
+ )
+}
+
+export const WithChildren = () => {
+ return (
+
+
+ A
+ <>
+ B
+ >
+ <>C>
+ <>D>
+ 123
+
+ Link to Eufemia's Github Repo
+
+ <>
+ Text Text
+ >
+
+
+ )
+}
+
+export const WithCustomFormat = () => {
+ return (
+
+
+ A,
+ <>
+ B
+ >,
+ <>C>,
+ 'D',
+ 123,
+
+ Link to Eufemia's Github Repo
+ ,
+ <>
+ Text Text
+ >,
+ ]}
+ format={{ type: 'disjunction' }}
+ />
+
+
+ )
+}
+
+export const Inline = () => {
+ return (
+
+
+ This is before the component{' '}
+
+ Link to Eufemia's Github Repo
+ ,
+ <>
+ Text Text
+ >,
+ ]}
+ />{' '}
+ This is after the component
+
+
+ )
+}
+
+export const ListVariants = () => {
+ return (
+
+ Ordered List:
+
+ Unordered List:
+
+
+ )
+}
+
+export const ListTypes = () => {
+ return (
+
+ Ordered List a:
+
+ Ordered List A:
+
+ Ordered List i:
+
+ Ordered List I:
+
+ Unordered List square:
+
+ Unordered List circle:
+
+ Unordered List unstyled:
+
+
+ )
+}
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/demos.mdx
new file mode 100644
index 00000000000..a29aed78fcb
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/demos.mdx
@@ -0,0 +1,35 @@
+---
+showTabs: true
+---
+
+import * as Examples from './Examples'
+
+## Demos
+
+### Basic usage with `value`
+
+
+
+### Basic usage with `children`
+
+
+
+### Custom format
+
+
+
+### Inline
+
+
+
+### List variants
+
+
+
+### List types
+
+
+
+### Using listFormat function
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/info.mdx
new file mode 100644
index 00000000000..df9f3d6fa8a
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/info.mdx
@@ -0,0 +1,44 @@
+---
+showTabs: true
+---
+
+## Import
+
+```tsx
+import { ListFormat } from '@dnb/eufemia'
+```
+
+## Description
+
+A ready-to-use list formatter. Use it wherever you have to display a list of strings, numbers, or React components (JSX).
+
+Good reasons for why we have this is to:
+
+- Uniform the creation and formatting of lists.
+- Supports translation and localization.
+- Built on top of web standards.
+
+The component is designed to maximum display 10-20 items.
+If you need to display more items than that, consider a different design, and perhaps using [Pagination](/uilib/components/pagination) and/or [InfinityScroller](/uilib/components/pagination/infinity-scroller).
+
+When the `variant` property is set to `text` (default), the browser API [Intl.ListFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/ListFormat) will be used with additional React components (JSX) support.
+
+When the `variant` is set to a non-`text` variant, it uses [Lists](/uilib/elements/lists/) to render the given list.
+
+## Formatting only
+
+You can use the `listFormat` function without using the React Component `ListFormat`, to format strings, numbers, or React components (JSX) as a string. It does not return lists(ol, ul, etc).
+
+```ts
+import { listFormat } from '@dnb/eufemia/components/ListFormat'
+
+return listFormat(myList, {
+ format: { type: 'disjunction' },
+ locale: 'en-US',
+})
+```
+
+See the following [demo](/uilib/components/list-format/demos/#using-listformat-function) for a more detailed example.
+
+The `listFormat` function supports an object with `{ format, locale }` as the second parameter. `format` and `locale` will accept the same values as documented in [properties](/uilib/components/list-format/properties/) of the `ListFormat` component.
+The function does not support `variant` and `listType`, as it does not return a list, but rather return a string.
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/properties.mdx
new file mode 100644
index 00000000000..7c775a37788
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/list-format/properties.mdx
@@ -0,0 +1,11 @@
+---
+showTabs: true
+---
+
+import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
+import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
+import { ListFormatProperties } from '@dnb/eufemia/src/components/list-format/ListFormatDocs'
+
+## Properties
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/radio/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/components/radio/Examples.tsx
index 059d86c3156..b64a9272678 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/components/radio/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/radio/Examples.tsx
@@ -82,7 +82,11 @@ export const RadioExampleGroupStatus = () => (
export const RadioExampleWithoutGroup = () => (
-
+
{
+export function createMockFile(name: string, size: number, type: string) {
const file = new File([], name, { type })
Object.defineProperty(file, 'size', {
get() {
@@ -304,7 +304,7 @@ export const UploadFileMaxSizeBasedOnFileTypeDisabled = () => (
)
export const UploadDisabledFileMaxSize = () => (
-
+
-
-
+
### Upload without title and text
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/components/upload/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/components/upload/info.mdx
index dddd0336b7a..ab94ee47013 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/components/upload/info.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/components/upload/info.mdx
@@ -56,3 +56,9 @@ By default, the Upload component accepts multiple files. You can use the propert
Once the Upload component mounts, it also adds support for dropping files to the entire browser body.
**NB:** When you have several mounted components, only the first Upload component will receive the dropped files.
+
+## The `download` property
+
+Each file item is displayed as a clickable link with its original file name, which opens the file source in a new browser tab.
+
+In some situations, it's more suitable to have each link download the file instead of opening it in a new browser tab. To achieve this, set the `download={true}` property on the Upload component.
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/EditContainer/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/EditContainer/info.mdx
index eb269d0678c..796913dfacc 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/EditContainer/info.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/EditContainer/info.mdx
@@ -29,6 +29,24 @@ render(
)
```
+## Customize the Toolbar
+
+```tsx
+import { Form, Field } from '@dnb/eufemia/extensions/forms'
+
+render(
+
+
+
+
+
+
+
+
+ ,
+)
+```
+
## Accessibility
The `EditContainer` component has an `aria-label` attribute, which is set to the `title` property value. It uses a section element to wrap the content, which helps users with screen readers to get the needed announcement.
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar.mdx
new file mode 100644
index 00000000000..7af0f7e5532
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar.mdx
@@ -0,0 +1,23 @@
+---
+title: 'Toolbar'
+description: '`Form.Section.Toolbar` is a helper component to be used within an `Form.Section.ViewContainer` and `Form.Section.EditContainer`.'
+showTabs: true
+tabs:
+ - title: Info
+ key: '/info'
+ - title: Demos
+ key: '/demos'
+breadcrumb:
+ - text: Forms
+ href: /uilib/extensions/forms/Form/
+ - text: Section
+ href: /uilib/extensions/forms/Form/Section/
+ - text: Toolbar
+ href: /uilib/extensions/forms/Form/Section/Toolbar/
+---
+
+import Info from 'Docs/uilib/extensions/forms/Form/Section/Toolbar/info'
+import Demos from 'Docs/uilib/extensions/forms/Form/Section/Toolbar/demos'
+
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/Examples.tsx
new file mode 100644
index 00000000000..c8ed8c1d207
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/Examples.tsx
@@ -0,0 +1,28 @@
+import ComponentBox from '../../../../../../../shared/tags/ComponentBox'
+import { Button } from '@dnb/eufemia/src'
+import { Form } from '@dnb/eufemia/src/extensions/forms'
+
+export const ViewAndEditContainer = () => {
+ return (
+
+
+
+ View content
+
+ Your Tool
+
+
+
+
+
+ Edit content
+
+ Your Tool
+
+
+
+
+
+
+ )
+}
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/demos.mdx
new file mode 100644
index 00000000000..3b33440ca48
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/demos.mdx
@@ -0,0 +1,12 @@
+---
+showTabs: true
+hideInMenu: true
+---
+
+import * as Examples from './Examples'
+
+## Demos
+
+### Using ViewContainer and EditContainer
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/info.mdx
new file mode 100644
index 00000000000..3d6fbd4a19b
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/info.mdx
@@ -0,0 +1,35 @@
+---
+showTabs: true
+hideInMenu: true
+---
+
+## Description
+
+`Form.Section.Toolbar` is a helper component to be used within the [Form.Section.ViewContainer](/uilib/extensions/forms/Form/Section/ViewContainer/) and the [Form.Section.EditContainer](/uilib/extensions/forms/Form/Section/EditContainer/).
+
+## Customize the Toolbar
+
+You can customize the toolbar by either passing a function as a child or as a JSX element:
+
+```tsx
+import { Form } from '@dnb/eufemia/extensions/forms'
+
+render(
+
+
+ View content
+
+
+
+
+
+
+ Edit content
+
+
+
+
+
+ ,
+)
+```
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/properties.mdx
new file mode 100644
index 00000000000..4c6b34cdf4f
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/Toolbar/properties.mdx
@@ -0,0 +1,11 @@
+---
+showTabs: true
+hideInMenu: true
+---
+
+import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
+import { ToolbarProperties } from '@dnb/eufemia/src/extensions/forms/Form/Section/Toolbar/ToolbarDocs'
+
+## Properties
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/ViewContainer/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/ViewContainer/info.mdx
index 0e125c96345..bdbb5b4d18c 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/ViewContainer/info.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Form/Section/ViewContainer/info.mdx
@@ -25,6 +25,24 @@ render(
)
```
+## Customize the Toolbar
+
+```tsx
+import { Form, Value } from '@dnb/eufemia/extensions/forms'
+
+render(
+
+
+
+
+
+
+
+
+ ,
+)
+```
+
## Accessibility
The `ViewContainer` component has an `aria-label` attribute, which is set to the `title` property value. It uses a section element to wrap the content, which helps users with screen readers to get the needed announcement.
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/Examples.tsx
index a8327e44591..9cdeec29890 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/Examples.tsx
@@ -2,12 +2,12 @@ import ComponentBox from '../../../../../../shared/tags/ComponentBox'
import { Button } from '@dnb/eufemia/src'
import { Iterate } from '@dnb/eufemia/src/extensions/forms'
-export const Default = () => {
+export const AnimatedContainer = () => {
return (
- Item Content
+ Item content
Your Tool
@@ -17,3 +17,29 @@ export const Default = () => {
)
}
+
+export const ViewAndEditContainer = () => {
+ return (
+
+
+
+ Item view content
+
+ Your Tool
+
+
+
+
+
+
+ Item edit content
+
+ Your Tool
+
+
+
+
+
+
+ )
+}
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/demos.mdx
index 72408519158..99760ed3961 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/demos.mdx
@@ -7,4 +7,10 @@ import * as Examples from './Examples'
## Demos
-
+### Using AnimatedContainer
+
+
+
+### Using ViewContainer and EditContainer
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/info.mdx
index 065e0a078af..8fe19259c82 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/info.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Iterate/Toolbar/info.mdx
@@ -34,17 +34,25 @@ import { Iterate } from '@dnb/eufemia/extensions/forms'
render(
- Item Content
+ Item view content
+
+
+ Item edit content
+
+
+
+
+
,
)
```
-The function receives the following parameters as an object:
+You can also provide a function as a child. The function will provide the following parameters as an object:
- `index` the index of the current item in the array.
- `value` the value of the current item.
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection.mdx
index c39bba600a8..68466708218 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection.mdx
@@ -2,7 +2,6 @@
title: 'ArraySelection'
description: '`Value.ArraySelection` is a wrapper component for displaying string values, with user experience tailored for an array of selected values.'
componentType: 'base-value'
-hideInMenu: true
showTabs: true
tabs:
- title: Info
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection/Examples.tsx
index 31023053022..6a3e4aa8af7 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/ArraySelection/Examples.tsx
@@ -97,9 +97,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This
+ is after the component
)
@@ -124,7 +124,7 @@ export const ListVariants = () => {
export const ListTypes = () => {
return (
-
+
{
variant="ul"
listType="circle"
/>
+
)
}
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/BankAccountNumber/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/BankAccountNumber/Examples.tsx
index c41152ae037..10ab533a36b 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/BankAccountNumber/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/BankAccountNumber/Examples.tsx
@@ -46,9 +46,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is
+ after the component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/Examples.tsx
index 7d6068be8b7..be9bac3c6ff 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/Examples.tsx
@@ -54,8 +54,8 @@ export const Inline = () => {
return (
- This is before the component
-
+ This is before the component {' '}
+ {' '}
This is after the component
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/properties.mdx
index 87697c9aa58..2677ff7dfa6 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Boolean/properties.mdx
@@ -8,7 +8,7 @@ import { BooleanProperties } from '@dnb/eufemia/src/extensions/forms/Value/Boole
## Properties
-### Field-specific properties
+### Value-specific properties
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Currency/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Currency/Examples.tsx
index 46df72cb8f2..ae7baf76f4c 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Currency/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Currency/Examples.tsx
@@ -54,9 +54,8 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is after the component
)
@@ -66,9 +65,9 @@ export const InlineAndLabel = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is
+ after the component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/Examples.tsx
index 441dfd1195b..36827ae7b35 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/Examples.tsx
@@ -2,34 +2,10 @@ import ComponentBox from '../../../../../../shared/tags/ComponentBox'
import { P } from '@dnb/eufemia/src'
import { Value } from '@dnb/eufemia/src/extensions/forms'
-export const Empty = () => {
- return (
-
-
-
- )
-}
-
-export const Placeholder = () => {
- return (
-
-
-
- )
-}
-
-export const WithValue = () => {
- return (
-
-
-
- )
-}
-
export const VariantShort = () => {
return (
-
+
)
}
@@ -37,15 +13,11 @@ export const VariantShort = () => {
export const VariantNumeric = () => {
return (
-
-
- )
-}
-
-export const Label = () => {
- return (
-
-
+
)
}
@@ -62,9 +34,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is
+ after the component
)
@@ -73,7 +45,7 @@ export const Inline = () => {
export const Range = () => {
return (
-
+
)
}
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/demos.mdx
index 6f3721771fd..8bc8d0b5bf0 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Date/demos.mdx
@@ -6,17 +6,9 @@ import * as Examples from './Examples'
## Demos
-### Empty
-
-
-
-### Placeholder
-
-
-
-### Value
+### Label and value
-
+
### Variant short
@@ -26,14 +18,6 @@ import * as Examples from './Examples'
-### Label
-
-
-
-### Label and value
-
-
-
### Date range
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Email/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Email/Examples.tsx
index d6dd117b9ed..1e3150e1521 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Email/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Email/Examples.tsx
@@ -49,9 +49,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This
+ is after the component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Name/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Name/Examples.tsx
index 0e4bfc8074d..56470d553de 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Name/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Name/Examples.tsx
@@ -55,10 +55,10 @@ export const Inline = () => {
}}
>
- This is before the component
-
-
- This is after the component
+ This is before the component{' '}
+ {' '}
+ This is after the
+ component
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/NationalIdentityNumber/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/NationalIdentityNumber/Examples.tsx
index 38081bdaa3a..b78f3e00120 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/NationalIdentityNumber/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/NationalIdentityNumber/Examples.tsx
@@ -49,9 +49,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is
+ after the component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Number/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Number/Examples.tsx
index 3d93ee330b9..3a8393e5338 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Number/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Number/Examples.tsx
@@ -46,8 +46,7 @@ export const Inline = () => {
return (
- This is before the component
-
+ This is before the component {' '}
This is after the component
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/OrganizationNumber/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/OrganizationNumber/Examples.tsx
index ef3319dff0c..34b7fd60e94 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/OrganizationNumber/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/OrganizationNumber/Examples.tsx
@@ -46,9 +46,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is after
+ the component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PhoneNumber/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PhoneNumber/Examples.tsx
index acecd524fec..34b2c4e3d04 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PhoneNumber/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PhoneNumber/Examples.tsx
@@ -56,9 +56,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is after the
+ component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PostalCodeAndCity/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PostalCodeAndCity/Examples.tsx
index f93193aa29c..af7580cfdc6 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PostalCodeAndCity/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/PostalCodeAndCity/Examples.tsx
@@ -59,9 +59,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is after
+ the component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Provider.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Provider.mdx
index 3e5454638b9..789ff9b41e5 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Provider.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Provider.mdx
@@ -2,7 +2,6 @@
title: 'Provider'
description: 'The `Value.Provider` lets you pass generic properties to all nested Value.* components.'
componentType: 'base-value'
-hideInMenu: true
showTabs: true
tabs:
- title: Info
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry.mdx
index 30e9f33a5e5..0313477b8a7 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry.mdx
@@ -2,7 +2,6 @@
title: 'SelectCountry'
description: '`Value.SelectCountry` will render the selected country.'
componentType: 'base-value'
-hideInMenu: true
showTabs: true
tabs:
- title: Info
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry/Examples.tsx
index 13b78bf884a..19bf6a4abac 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SelectCountry/Examples.tsx
@@ -48,9 +48,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is after the
+ component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection.mdx
index 4ebbe475a1e..58185fee709 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection.mdx
@@ -2,7 +2,6 @@
title: 'Selection'
description: '`Value.Selection` is a component for displaying a string value based on a user selection.'
componentType: 'base-value'
-hideInMenu: true
showTabs: true
tabs:
- title: Info
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/Examples.tsx
index c62e1808618..4889781f1e5 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/Examples.tsx
@@ -38,8 +38,7 @@ export const Inline = () => {
return (
- This is before the component
-
+ This is before the component {' '}
This is after the component
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/properties.mdx
index 7305e005660..5d46057df0a 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Selection/properties.mdx
@@ -9,7 +9,7 @@ import { ValueProperties } from '@dnb/eufemia/src/extensions/forms/Value/ValueDo
## Properties
-### Field-specific properties
+### Value-specific properties
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/String/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/String/Examples.tsx
index 054066552e5..9f2c52382d6 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/String/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/String/Examples.tsx
@@ -46,9 +46,9 @@ export const Inline = () => {
return (
- This is before the component
-
- This is after the component
+ This is before the component{' '}
+ This is after the
+ component
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SummaryList/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SummaryList/properties.mdx
index 20454908506..d4398df79c6 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SummaryList/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/SummaryList/properties.mdx
@@ -2,8 +2,6 @@
showTabs: true
---
-## showTabs: true
-
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
import { SummaryListProperties } from '@dnb/eufemia/src/extensions/forms/Value/SummaryList/SummaryListDocs'
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload.mdx
new file mode 100644
index 00000000000..2f5ba725e3e
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload.mdx
@@ -0,0 +1,26 @@
+---
+title: 'Upload'
+description: '`Value.Upload` is a value component for displaying a list of files.'
+componentType: 'feature-value'
+showTabs: true
+tabs:
+ - title: Info
+ key: '/info'
+ - title: Demos
+ key: '/demos'
+ - title: Properties
+ key: '/properties'
+breadcrumb:
+ - text: Forms
+ href: /uilib/extensions/forms/
+ - text: Value
+ href: /uilib/extensions/forms/Value/
+ - text: Upload
+ href: /uilib/extensions/forms/Value/Upload/
+---
+
+import Info from 'Docs/uilib/extensions/forms/Value/Upload/info'
+import Demos from 'Docs/uilib/extensions/forms/Value/Upload/demos'
+
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/Examples.tsx
new file mode 100644
index 00000000000..97c24738739
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/Examples.tsx
@@ -0,0 +1,395 @@
+import ComponentBox from '../../../../../../shared/tags/ComponentBox'
+import { Form, Value, Field } from '@dnb/eufemia/src/extensions/forms'
+import { Flex, Span } from '@dnb/eufemia/src'
+import { createMockFile } from '../../../../../../docs/uilib/components/upload/Examples'
+
+export const Placeholder = () => {
+ return (
+
+
+
+ )
+}
+
+export const WithValue = () => {
+ return (
+
+
+
+ )
+}
+
+export const WithSize = () => {
+ return (
+
+
+
+ )
+}
+
+export const WithDownload = () => {
+ return (
+
+
+
+ )
+}
+
+export const WithCustomFormat = () => {
+ return (
+
+
+
+
+
+ )
+}
+
+export const FieldUploadSelectionPath = () => {
+ return (
+
+
+
+
+
+
+
+
+ )
+}
+
+export const Label = () => {
+ return (
+
+
+
+ )
+}
+
+export const LabelAndValue = () => {
+ return (
+
+
+
+ )
+}
+
+export const Inline = () => {
+ return (
+
+
+ This is before the component{' '}
+ {' '}
+ This is after the component
+
+
+ )
+}
+
+export const ListVariants = () => {
+ return (
+
+
+
+
+ )
+}
+
+export const ListTypes = () => {
+ return (
+
+
+
+
+
+
+
+
+ )
+}
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/demos.mdx
new file mode 100644
index 00000000000..845ea216ee0
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/demos.mdx
@@ -0,0 +1,51 @@
+---
+showTabs: true
+---
+
+import * as Examples from './Examples'
+
+## Demos
+
+### Placeholder
+
+
+
+### Value
+
+
+
+### With `displaySize` property
+
+
+
+### With `download` property
+
+
+
+### Custom format
+
+
+
+### Label
+
+
+
+### Label and value
+
+
+
+### Inline
+
+
+
+### List variants
+
+
+
+### List types
+
+
+
+### Field.Upload path
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/info.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/info.mdx
new file mode 100644
index 00000000000..2bd0a26e60e
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/info.mdx
@@ -0,0 +1,14 @@
+---
+showTabs: true
+---
+
+## Description
+
+`Value.Upload` is a value component for displaying a list of files.
+
+There is a corresponding [Field.Upload](/uilib/extensions/forms/feature-fields/more-fields/Upload) component.
+
+```jsx
+import { Value } from '@dnb/eufemia/extensions/forms'
+render( )
+```
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/properties.mdx
new file mode 100644
index 00000000000..a47f5154732
--- /dev/null
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/Value/Upload/properties.mdx
@@ -0,0 +1,20 @@
+---
+showTabs: true
+---
+
+import { UploadProperties } from '@dnb/eufemia/src/extensions/forms/Value/Upload/UploadDocs'
+import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
+import { ValueProperties } from '@dnb/eufemia/src/extensions/forms/Value/ValueDocs'
+
+## Properties
+
+### Value-specific properties
+
+
+
+### General properties
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/Examples.tsx
index bf29b3dd6d9..31235d5a664 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/Examples.tsx
@@ -170,15 +170,21 @@ export const CheckboxWithHelp = () => (
)
export const CheckboxNestingWithLogic = () => (
-
-
+
+
-
+
{
@@ -187,10 +193,11 @@ export const CheckboxNestingWithLogic = () => (
: false
},
}}
- compensateForGap="auto"
+ animate
+ compensateForGap="auto" // makes animation smooth
>
@@ -199,7 +206,6 @@ export const CheckboxNestingWithLogic = () => (
title="Show additional option"
/>
{
@@ -208,7 +214,8 @@ export const CheckboxNestingWithLogic = () => (
: false
},
}}
- compensateForGap="auto"
+ animate
+ compensateForGap="auto" // makes animation smooth
>
(
}}
>
+
+
)
@@ -303,6 +312,26 @@ export const CheckboxButtonEmpty = () => (
)
+export const CheckboxButtonHorizontalOptionsLayout = () => (
+
+ console.log('onChange', values)}
+ >
+
+
+
+
+
+
+
+
+
+)
+
export const ButtonLabel = () => (
(
{
@@ -485,7 +513,8 @@ export const ButtonNestingWithLogic = () => (
: false
},
}}
- compensateForGap="auto"
+ animate
+ compensateForGap="auto" // makes animation smooth
>
@@ -497,7 +526,6 @@ export const ButtonNestingWithLogic = () => (
title="Show additional option"
/>
{
@@ -506,7 +534,8 @@ export const ButtonNestingWithLogic = () => (
: false
},
}}
- compensateForGap="auto"
+ animate
+ compensateForGap="auto" // makes animation smooth
>
+
+#### Button with checkbox variant
+
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/properties.mdx
index 5637b6c6a94..c1d837f46ff 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/ArraySelection/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
import { arraySelectionProperties } from '@dnb/eufemia/src/extensions/forms/Field/ArraySelection/ArraySelectionDocs'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Properties
@@ -15,6 +15,6 @@ import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDo
### General properties
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/properties.mdx
index cb9a1651248..eadb92e032f 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Boolean/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { BooleanProperties } from '@dnb/eufemia/src/extensions/forms/Field/Boolean/BooleanDocs'
## Properties
@@ -15,7 +15,11 @@ import { BooleanProperties } from '@dnb/eufemia/src/extensions/forms/Field/Boole
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Indeterminate/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Indeterminate/properties.mdx
index 4f1df6fc421..bacd3bbd3cc 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Indeterminate/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Indeterminate/properties.mdx
@@ -3,7 +3,7 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { IndeterminateProperties } from '@dnb/eufemia/src/extensions/forms/Field/Indeterminate/IndeterminateDocs'
## Properties
@@ -14,4 +14,4 @@ import { IndeterminateProperties } from '@dnb/eufemia/src/extensions/forms/Field
### General properties
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx
index 2b5f829a1c1..116d955d18f 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/Examples.tsx
@@ -1,50 +1,111 @@
import ComponentBox from '../../../../../../shared/tags/ComponentBox'
-import { Slider, Grid, Flex } from '@dnb/eufemia/src'
+import { Slider, Grid, Flex, Card } from '@dnb/eufemia/src'
import { Field, Form } from '@dnb/eufemia/src/extensions/forms'
import React from 'react'
-export const Empty = () => {
+export const Placeholder = () => {
return (
-
+
console.log('onFocus', value)}
- onBlur={(value) => console.log('onBlur', value)}
+ label="Label text"
+ placeholder="Enter a number..."
onChange={(value) => console.log('onChange', value)}
/>
)
}
-export const Placeholder = () => {
+export const LabelAndValue = () => {
return (
console.log('onChange', value)}
/>
)
}
-export const Label = () => {
+export const LabelAndDescription = () => {
return (
-
- console.log('onChange', value)}
- />
+
+
+
+
+
)
}
-export const LabelAndValue = () => {
+export const WithStatus = () => {
return (
-
- console.log('onChange', value)}
- />
+
+
+
+
+
+
+
+ )
+}
+
+export const HorizontalLayout = () => {
+ return (
+
+
+
+
+
+
+
+
)
}
@@ -53,7 +114,7 @@ export const ExclusiveMinMax = () => {
return (
{
console.log('onChange', value)}
/>
(value === 1 ? ' year' : ' years')}
onChange={(value) => console.log('onChange', value)}
@@ -89,24 +150,26 @@ export const PrefixAndSuffix = () => {
export const Alignment = () => {
return (
- console.log('onChange', value)}
- />
- console.log('onChange', value)}
- />
- console.log('onChange', value)}
- />
+
+ console.log('onChange', value)}
+ />
+ console.log('onChange', value)}
+ />
+ console.log('onChange', value)}
+ />
+
)
}
@@ -115,7 +178,7 @@ export const WithHelp = () => {
return (
{
)
}
-export const HorizontalLayout = () => {
- return (
-
- console.log('onChange', value)}
- />
-
- )
-}
-
export const Widths = () => {
return (
@@ -149,52 +199,56 @@ export const Widths = () => {
-
+
-
+
With step controls
@@ -206,7 +260,7 @@ export const Disabled = () => {
return (
console.log('onChange', value)}
disabled
@@ -215,51 +269,12 @@ export const Disabled = () => {
)
}
-export const Info = () => {
- return (
-
- console.log('onChange', value)}
- info="Useful information (?)"
- />
-
- )
-}
-
-export const Warning = () => {
- return (
-
- console.log('onChange', value)}
- warning="I'm warning you..."
- />
-
- )
-}
-
-export const WithError = () => {
- return (
-
- console.log('onChange', value)}
- error={new Error('This is what is wrong...')}
- />
-
- )
-}
-
export const ValidateRequired = () => {
return (
console.log('onChange', value)}
required
/>
@@ -271,7 +286,7 @@ export const ValidateMinimum = () => {
return (
console.log('onChange', value)}
minimum={250}
@@ -301,7 +316,7 @@ export const Percentage = () => {
console.log('onChange', value)}
minimum={90}
@@ -314,13 +329,13 @@ export const ValidateMaximumCustomError = () => {
return (
console.log('onChange', value)}
+ defaultValue={200}
maximum={250}
errorMessages={{
maximum: "You can't enter a number THAR large.. Max 250!",
}}
+ onChange={(value) => console.log('onChange', value)}
/>
)
@@ -329,11 +344,12 @@ export const ValidateMaximumCustomError = () => {
export const WithStepControls = () => (
)
@@ -341,9 +357,10 @@ export const WithStepControls = () => (
export const WithStepControlsError = () => (
@@ -351,7 +368,7 @@ export const WithStepControlsError = () => (
export const WithStepControlsDisabled = () => (
-
+
)
@@ -375,6 +392,7 @@ export const WithSlider = () => (
}}
>
+
+### Label and description
+
+
+
+### With a horizontal layout
-
+This example uses [Field.Provider](/uilib/extensions/forms/feature-fields/Provider/) to set the `layout` to `horizontal` and `layoutOptions` to `{ width: 'medium' }` for all nested fields.
+
+The `width` of the horizontal label can be set to `small`, `medium`, `large` or a `rem` value.
+
+
### Placeholder
-### Label
+### With a status
-
+This example demonstrates how the status message width adjusts according to the field width.
-### Label and value
+
-
+#### With help
+
+
### Exclusive minimum and exclusive maximum
@@ -36,10 +50,6 @@ You can also use a function as a prefix or suffix.
-### Horizontal layout
-
-
-
### With help
@@ -56,18 +66,6 @@ You can also use a function as a prefix or suffix.
-### Info
-
-
-
-### Warning
-
-
-
-### Error
-
-
-
### Validation - Required
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/properties.mdx
index 5d99e086cdd..9cf3989809c 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Number/properties.mdx
@@ -5,7 +5,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
import { numberProperties } from '@dnb/eufemia/src/extensions/forms/Field/Number/NumberDocs'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Properties
@@ -15,7 +15,7 @@ import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDo
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/Examples.tsx
index 191a9e463be..9f3614c0e20 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/Examples.tsx
@@ -483,23 +483,24 @@ export const RadioWithAPath = () => (
)
export const RadioNestingWithLogic = () => (
-
-
+
+
(
title="Show additional option"
/>
value === 'showAdditionalOption' || value === 'showMeMore',
}}
- compensateForGap="auto"
+ animate
+ compensateForGap="auto" // makes animation smooth
>
(
}}
>
+
+
+
+
+)
+
+export const RadioNestingAdvanced = () => (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/demos.mdx
index 44af5827822..3bc5bff81ce 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/demos.mdx
@@ -124,12 +124,6 @@ As there are many variants, they are split into separate sections. Here is a sum
-#### Radio nesting other fields with logic
-
-You can nest other fields and show them based on your desired logic.
-
-
-
#### Radio button with a path to populate the data
@@ -138,6 +132,16 @@ You can nest other fields and show them based on your desired logic.
+#### Radio nesting other fields with logic
+
+You can nest other fields and show them based on your desired logic.
+
+
+
+#### Radio nesting advanced
+
+
+
---
### Buttons variant
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/properties.mdx
index 3238f63420c..494e58b0c48 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Selection/properties.mdx
@@ -3,7 +3,7 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { SelectionProperties } from '@dnb/eufemia/src/extensions/forms/Field/Selection/SelectionDocs'
## Properties
@@ -14,4 +14,4 @@ import { SelectionProperties } from '@dnb/eufemia/src/extensions/forms/Field/Sel
### General properties
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/Examples.tsx
index f6ea1a04c04..2a5b1af16d0 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/Examples.tsx
@@ -7,48 +7,103 @@ import {
Value,
} from '@dnb/eufemia/src/extensions/forms'
-export const Empty = () => {
+export const Placeholder = () => {
return (
console.log('onFocus', value)}
- onBlur={(value) => console.log('onBlur', value)}
+ label="Label text"
+ placeholder="Enter a text..."
onChange={(value) => console.log('onChange', value)}
/>
)
}
-export const Placeholder = () => {
+export const LabelAndValue = () => {
return (
console.log('onChange', value)}
/>
)
}
-export const Label = () => {
+export const LabelAndDescription = () => {
return (
-
- console.log('onChange', value)}
- />
+
+
+
+
+
)
}
-export const LabelAndValue = () => {
+export const WithStatus = () => {
return (
-
- console.log('onChange', value)}
- />
+
+
+
+
+
+
+
+ )
+}
+
+export const HorizontalLayout = () => {
+ return (
+
+
+
+
+
+
+
+
)
}
@@ -58,7 +113,7 @@ export const WithHelp = () => {
{
console.log('onChange', value)}
/>
@@ -83,50 +138,52 @@ export const Capitalize = () => {
)
}
-export const HorizontalLayout = () => {
- return (
-
- console.log('onChange', value)}
- />
-
- )
-}
-
export const Widths = () => {
return (
-
-
-
-
-
+
+
+
+
+
+
-
-
-
+
+
@@ -138,18 +195,20 @@ export const Widths = () => {
export const Icons = () => {
return (
- console.log('onChange', value)}
- />
- console.log('onChange', value)}
- />
+
+ console.log('onChange', value)}
+ />
+ console.log('onChange', value)}
+ />
+
)
}
@@ -158,7 +217,7 @@ export const Clear = () => {
return (
console.log('onChange', value)}
clear
/>
@@ -170,7 +229,7 @@ export const Disabled = () => {
return (
console.log('onChange', value)}
disabled
@@ -179,38 +238,12 @@ export const Disabled = () => {
)
}
-export const Info = () => {
- return (
-
- console.log('onChange', value)}
- info="Useful information (?)"
- />
-
- )
-}
-
-export const Warning = () => {
- return (
-
- console.log('onChange', value)}
- warning="I'm warning you..."
- />
-
- )
-}
-
export const WithMultipleError = () => {
return (
{
return (
console.log('onChange', value)}
required
@@ -236,7 +269,7 @@ export const ValidateMinimumLength = () => {
return (
console.log('onChange', value)}
minLength={8}
@@ -249,7 +282,7 @@ export const ValidateMaximumLengthCustomError = () => {
return (
console.log('onChange', value)}
maxLength={8}
@@ -265,7 +298,7 @@ export const ValidatePattern = () => {
return (
console.log('onChange', value)}
pattern="^foo123"
@@ -278,7 +311,7 @@ export const SynchronousExternalValidator = () => {
return (
value.length < 4 ? Error('At least 4 characters') : undefined
@@ -293,7 +326,7 @@ export const AsynchronousExternalValidator = () => {
return (
new Promise((resolve) =>
@@ -318,7 +351,7 @@ export const SynchronousExternalBlurValidator = () => {
return (
value.length < 4 ? Error('At least 4 characters') : undefined
@@ -333,7 +366,7 @@ export const AsynchronousExternalBlurValidator = () => {
return (
new Promise((resolve) =>
@@ -395,7 +428,7 @@ export const MultipleLabelAndValue = () => {
return (
console.log('onChange', value)}
multiline
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/demos.mdx
index 75bcd191a8f..8694985c37e 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/demos.mdx
@@ -6,33 +6,39 @@ import * as Examples from './Examples'
## Demos
-### Empty
+### Label and value
-
+
-### Placeholder
+### Label and description
-
+
-### Label
+### With a horizontal layout
-
+This example uses [Field.Provider](/uilib/extensions/forms/feature-fields/Provider/) to set the `layout` to `horizontal` and `layoutOptions` to `{ width: 'medium' }` for all nested fields.
-### Label and value
+The `width` of the horizontal label can be set to `small`, `medium`, `large` or a `rem` value.
-
+
-### Capitalize each word
+### Placeholder
-
+
+
+### With a status
+
+This example demonstrates how the status message width adjusts according to the field width.
+
+
#### With help
-### Horizontal layout
+### Capitalize each word
-
+
### Icons
@@ -46,14 +52,6 @@ import * as Examples from './Examples'
-### Info
-
-
-
-### Warning
-
-
-
### Validation - Required
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/properties.mdx
index b2b07cedcf1..c084239a0c7 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/String/properties.mdx
@@ -5,7 +5,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
import { stringProperties } from '@dnb/eufemia/src/extensions/forms/Field/String/StringDocs'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Properties
@@ -15,7 +15,7 @@ import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDo
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/Examples.tsx
index fb08efd073b..0f49b06699e 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/Examples.tsx
@@ -31,14 +31,32 @@ export const ValueOff = () => {
)
}
-export const NoValue = () => {
+export const TextOn = () => {
return (
console.log('onChange', value)}
+ />
+
+ )
+}
+
+export const TextOff = () => {
+ return (
+
+ console.log('onChange', value)}
/>
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/demos.mdx
index 67341c0883c..58103d2bd5b 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/demos.mdx
@@ -6,17 +6,21 @@ import * as Examples from './Examples'
## Demos
-### On state
+### Value On
-### Off state
+### Value Off
-### No value
+### Text On
-
+
+
+### Text Off
+
+
### Disabled
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/properties.mdx
index b49ba93f255..0f61925eb22 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/base-fields/Toggle/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { ToggleProperties } from '@dnb/eufemia/src/extensions/forms/Field/Toggle/ToggleDocs'
## Properties
@@ -15,7 +15,11 @@ import { ToggleProperties } from '@dnb/eufemia/src/extensions/forms/Field/Toggle
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/changelog.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/changelog.mdx
index fe03c63d274..00dbc910fb1 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/changelog.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/changelog.mdx
@@ -13,6 +13,20 @@ breadcrumb:
Change log for the Eufemia Forms extension.
+## v10.55
+
+- Added `transformLabel` to [Value.Composition](/uilib/extensions/forms/Value/Composition/).
+- Added [Value.Upload](/uilib/extensions/forms/Value/Upload/) component to render file values.
+- Added Iterate support for [Field.PostalCodeAndCity](/uilib/extensions/forms/feature-fields/PostalCodeAndCity/) when using `country` with a path.
+- Added `layoutOptions` for enhanced horizontal label layout in [Field.Provider](/uilib/extensions/forms/feature-fields/Provider/).
+- Added `EditButton`, `CancelButton` and `DoneButton` to [Form.Section](/uilib/extensions/forms/Form/Section/) containers.
+- Added maximum possible value to joint-responsibility & daycare fields in [Block.ChildrenWithAge](/uilib/extensions/forms/blocks/ChildrenWithAge/).
+- Fixed vertical gap between [Field.ArraySelection](/uilib/extensions/forms/base-fields/ArraySelection/) toggle buttons with checkbox variant.
+- Fixed so [Field.Number](/uilib/extensions/forms/base-fields/Number/) with `percent` and without a value renders correctly.
+- Fixed so components having `fieldset` inside still can use spacing.
+- Fixed so there's no extra space from Value.\* components when using `inline` property.
+- Fixed so errors display underneath fields when nested inside [Field.Selection](/uilib/extensions/forms/base-fields/Selection/) or [Field.ArraySelection](/uilib/extensions/forms/base-fields/ArraySelection/).
+
## v10.54
- Deprecated Ajv `validationRule` in [FormError](/uilib/extensions/forms/Form/error-messages/info/#error-messages) and deprecated `errorMessages` keys like `pattern` in favor of Eufemia translation keys like `Field.errorPattern`. For a migration guide, take a look at [release notes for the future major release, v11](/uilib/about-the-lib/releases/eufemia/v11-info/#forms-error-handling).
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component.mdx
index 87e419b8c0d..3063e572344 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component.mdx
@@ -63,7 +63,6 @@ const MyField = (props) => {
const {
id,
value,
- label,
handleChange,
handleFocus,
handleBlur,
@@ -71,7 +70,10 @@ const MyField = (props) => {
} = useFieldProps(props)
return (
-
+
{
)
}
-render( )
+render( )
```
The `useFieldProps` provides a standardized way to handle data flow, validation and error messages in a consistent manner.
@@ -190,6 +192,7 @@ const myFieldTranslations = {
},
},
}
+
type Translation =
(typeof myFieldTranslations)[keyof typeof myFieldTranslations]
@@ -207,7 +210,7 @@ const MyField = (props) => {
...props,
}
- const { id, value, label, handleChange, handleFocus, handleBlur } =
+ const { id, value, handleChange, handleFocus, handleBlur } =
useFieldProps(preparedProps)
return (
@@ -215,7 +218,6 @@ const MyField = (props) => {
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock.mdx
index 14c627cb905..9ae0f87956c 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock.mdx
@@ -6,6 +6,8 @@ showTabs: true
tabs:
- title: Info
key: '/info'
+ - title: Demos
+ key: '/demos'
- title: Properties
key: '/properties'
breadcrumb:
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock/Examples.tsx
index 74ca798045f..b954f4b2cac 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/create-component/ValueBlock/Examples.tsx
@@ -17,10 +17,8 @@ export const Inline = () => {
data-visual-test="value-block-inline"
>
- this is before the value
- Foo
- Bar
- this is after the value
+ this is before the value Foo {' '}
+ Bar this is after the value
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/properties.mdx
index 8f084a5f553..cc25a2cb627 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/BankAccountNumber/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { BankAccountNumberProperties } from '@dnb/eufemia/src/extensions/forms/Field/BankAccountNumber/BankAccountNumberDocs'
## Properties
@@ -15,7 +15,7 @@ import { BankAccountNumberProperties } from '@dnb/eufemia/src/extensions/forms/F
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/properties.mdx
index e91b102858c..c84b31d0a5a 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Currency/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { numberProperties } from '@dnb/eufemia/src/extensions/forms/Field/Number/NumberDocs'
## Properties
@@ -15,7 +15,7 @@ import { numberProperties } from '@dnb/eufemia/src/extensions/forms/Field/Number
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/Examples.tsx
index 88fbe0bc429..d69621c62d7 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/Examples.tsx
@@ -1,43 +1,27 @@
import ComponentBox from '../../../../../../shared/tags/ComponentBox'
import { Field } from '@dnb/eufemia/src/extensions/forms'
-export const Empty = () => {
- return (
-
- console.log('onChange', value)} />
-
- )
-}
-
-export const Placeholder = () => {
- return (
-
- console.log('onChange', value)}
- />
-
- )
-}
-
-export const Label = () => {
+export const LabelAndValue = () => {
return (
-
+
console.log('onChange', value)}
/>
)
}
-export const LabelAndValue = () => {
+export const HorizontalLayout = () => {
return (
-
+
console.log('onChange', value)}
+ label="Label with a long text that will wrap"
+ layout="horizontal"
+ layoutOptions={{
+ width: 'medium', // can be a rem value
+ }}
/>
)
@@ -47,8 +31,8 @@ export const WithHelp = () => {
return (
{
return (
console.log('onChange', value)}
disabled
/>
@@ -90,8 +74,8 @@ export const ValidationRequired = () => {
return (
console.log('onChange', value)}
required
/>
@@ -102,7 +86,7 @@ export const ValidationRequired = () => {
export const Range = () => {
return (
-
+
)
}
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx
index ba911f25843..77f7380dc9a 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/demos.mdx
@@ -6,22 +6,14 @@ import * as Examples from './Examples'
## Demos
-### Empty
-
-
-
-### Placeholder
-
-
-
-### Label
-
-
-
### Label and value
+### With a horizontal layout
+
+
+
### Date range
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/properties.mdx
index 8f007bf02ad..aa31336c7d4 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Date/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { DateProperties } from '@dnb/eufemia/src/extensions/forms/Field/Date/DateDocs'
## Properties
@@ -15,7 +15,7 @@ import { DateProperties } from '@dnb/eufemia/src/extensions/forms/Field/Date/Dat
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/properties.mdx
index 6fe0339bd1b..9564b0633b0 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Properties
@@ -17,7 +17,7 @@ import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDo
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/Examples.tsx
index 3873e710e4a..08b9826e71b 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/Examples.tsx
@@ -23,6 +23,20 @@ export const Label = () => {
)
}
+export const HorizontalLayout = () => {
+ return (
+
+
+
+ )
+}
+
export const WithHelp = () => {
return (
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/demos.mdx
index 4fc6e3be2db..73331290342 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/demos.mdx
@@ -34,6 +34,10 @@ import enUS from '@dnb/eufemia/shared/locales/en-US'
+### With a horizontal layout
+
+
+
### With help
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/events.mdx
index cf15aafb702..52b4899acb8 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/events.mdx
@@ -3,7 +3,7 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/properties.mdx
index a49052df6b8..9f2fe64a70e 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Expiry/properties.mdx
@@ -4,13 +4,13 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Properties
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/properties.mdx
index 48136440543..05e136fc093 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Name/properties.mdx
@@ -4,13 +4,13 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Properties
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/properties.mdx
index a85c9c0780e..9f56cda9cca 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/NationalIdentityNumber/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { NationalIdentityNumberProperties } from '@dnb/eufemia/src/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumberDocs'
## Properties
@@ -15,7 +15,7 @@ import { NationalIdentityNumberProperties } from '@dnb/eufemia/src/extensions/fo
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/properties.mdx
index 8db85d4f5e7..8a91acd1611 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/OrganizationNumber/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { OrganizationNumberProperties } from '@dnb/eufemia/src/extensions/forms/Field/OrganizationNumber/OrganizationNumberDocs'
## Properties
@@ -15,7 +15,7 @@ import { OrganizationNumberProperties } from '@dnb/eufemia/src/extensions/forms/
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/properties.mdx
index af45b67f4fb..7b09b38268e 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PhoneNumber/properties.mdx
@@ -4,20 +4,20 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
-import { phoneNumberSpecificProperties } from '@dnb/eufemia/src/extensions/forms/Field/PhoneNumber/PhoneNumberDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { PhoneNumberProperties } from '@dnb/eufemia/src/extensions/forms/Field/PhoneNumber/PhoneNumberDocs'
## Properties
### Field-specific properties
-
+
### General properties
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/properties.mdx
index cae26b66b72..2f6f1b63ac4 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/PostalCodeAndCity/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldBlockProperties } from '@dnb/eufemia/src/extensions/forms/FieldBlock/FieldBlockDocs'
+import { FieldBlockProperties } from '@dnb/eufemia/src/extensions/forms/FieldBlock/FieldBlockDocs'
import { PostalCodeAndCityProperties } from '@dnb/eufemia/src/extensions/forms/Field/PostalCodeAndCity/PostalCodeAndCityDocs'
## Properties
@@ -15,7 +15,7 @@ import { PostalCodeAndCityProperties } from '@dnb/eufemia/src/extensions/forms/F
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/Examples.tsx
index f80b8d8ac48..350d848539f 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/Examples.tsx
@@ -7,43 +7,9 @@ import {
Value,
} from '@dnb/eufemia/src/extensions/forms'
-export const Empty = () => {
- return (
-
- console.log('onChange', value, obj)}
- onBlur={(value, obj) => console.log('onBlur', value, obj)}
- onFocus={(value, obj) => console.log('onFocus', value, obj)}
- />
-
- )
-}
-
-export const Placeholder = () => {
- return (
-
- console.log('onChange', value, obj)}
- />
-
- )
-}
-
-export const Label = () => {
- return (
-
- console.log('onChange', value, obj)}
- />
-
- )
-}
-
export const OptionSelected = () => {
return (
-
+
console.log('onChange', value, obj)}
@@ -52,13 +18,13 @@ export const OptionSelected = () => {
)
}
-export const LabelAndOptionSelected = () => {
+export const HorizontalLayout = () => {
return (
-
+
console.log('onChange', value, obj)}
+ layout="horizontal"
+ layoutOptions={{ width: '6rem' }}
/>
)
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/demos.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/demos.mdx
index 75ce751d441..df25366f028 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/demos.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/demos.mdx
@@ -6,25 +6,13 @@ import * as Examples from './Examples'
## Demos
-### Empty
-
-
-
-### Placeholder
-
-
-
-### Label
-
-
-
### Option selected
-### Label and option selected
+### With a horizontal layout
-
+
### With help
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/properties.mdx
index e834f25ee45..d52eab3f41a 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/SelectCountry/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { SelectCountryProperties } from '@dnb/eufemia/src/extensions/forms/Field/SelectCountry/SelectCountryDocs'
### Field-specific properties
@@ -13,7 +13,7 @@ import { SelectCountryProperties } from '@dnb/eufemia/src/extensions/forms/Field
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/events.mdx
index f98612854e2..48c4fe83ca4 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/events.mdx
@@ -3,11 +3,11 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
## Password visibility events
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/properties.mdx
index 1216c417fe9..81aa9c01312 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Properties
@@ -20,10 +20,7 @@ import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDo
### General properties
-
+
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/events.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/events.mdx
index cbb99af227b..fe7fe176333 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/events.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/events.mdx
@@ -3,8 +3,8 @@ showTabs: true
---
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldEvents } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
## Events
-
+
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/properties.mdx
index 2d1eed6a726..433ef1e53bd 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Slider/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { SliderFieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/Slider/SliderDocs'
## Properties
@@ -16,7 +16,7 @@ import { SliderFieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/S
### General properties
']}
/>
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/Examples.tsx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/Examples.tsx
index 1d0f2e47528..785b9e4a226 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/Examples.tsx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/Examples.tsx
@@ -1,6 +1,7 @@
import { Flex } from '@dnb/eufemia/src'
import ComponentBox from '../../../../../../../shared/tags/ComponentBox'
import { Field, Form } from '@dnb/eufemia/src/extensions/forms'
+import { createMockFile } from '../../../../../../../docs/uilib/components/upload/Examples'
export const BasicUsage = () => {
return (
@@ -62,16 +63,6 @@ export const Customized = () => {
}
export const WithPath = () => {
- const createMockFile = (name: string, size: number, type: string) => {
- const file = new File([], name, { type })
- Object.defineProperty(file, 'size', {
- get() {
- return size
- },
- })
- return file
- }
-
return (
)
```
+There is a corresponding [Value.Upload](/uilib/extensions/forms/Value/Upload) component.
+
## The data and file format
The returned data is an array of objects containing a file object and a unique ID. The file object contains the file itself and some additional properties like an unique ID.
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/properties.mdx
index 5c6e4a259ea..eabce28c4b4 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Upload/properties.mdx
@@ -4,7 +4,7 @@ showTabs: true
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
-import { fieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
+import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
import { UploadFieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/Upload/UploadDocs'
## Properties
@@ -16,9 +16,9 @@ import { UploadFieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/U
### General properties
']}
- omit={['layout', 'onBlurValidator', 'contentWidth']}
+ omit={['layout', 'layoutOptions', 'onBlurValidator', 'contentWidth']}
/>
## Translations
diff --git a/packages/dnb-design-system-portal/src/docs/uilib/layout/flex/stack/properties.mdx b/packages/dnb-design-system-portal/src/docs/uilib/layout/flex/stack/properties.mdx
index 7032c52fbbe..31b4f75bf6a 100644
--- a/packages/dnb-design-system-portal/src/docs/uilib/layout/flex/stack/properties.mdx
+++ b/packages/dnb-design-system-portal/src/docs/uilib/layout/flex/stack/properties.mdx
@@ -2,11 +2,9 @@
showTabs: true
---
+import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
+import { FlexStackProperties } from '@dnb/eufemia/src/components/flex/StackDocs'
+
## Properties
-| Property | Type | Description |
-| ---------------------------------------------- | -------- | --------------------------------------------------------------------- |
-| `direction` | `string` | _(optional)_ Defaults to `vertical`. |
-| `align` | `string` | _(optional)_ Defaults to `stretch`. |
-| [Flex.Container](/uilib/layout/flex/container) | Various | _(optional)_ Flex.Container properties. |
-| [Space](/uilib/layout/space/properties) | Various | _(optional)_ Spacing properties like `top` or `bottom` are supported. |
+
diff --git a/packages/dnb-design-system-portal/src/shared/menu/MainMenu.js b/packages/dnb-design-system-portal/src/shared/menu/MainMenu.js
index 6e23808bdd0..e999ecbc075 100644
--- a/packages/dnb-design-system-portal/src/shared/menu/MainMenu.js
+++ b/packages/dnb-design-system-portal/src/shared/menu/MainMenu.js
@@ -100,55 +100,55 @@ function MainMenu() {
+
+
+ {items['design-system']?.description}
+
+ Updated: {packageJson.changelogVersion}
+
+ >
+ }
+ icon={DesignSystemSvg}
+ />
+
+
+
+
+
+