Skip to content

Commit ae46e71

Browse files
authored
docs: removes duplicated docs for help prop (#4568)
1 parent 251a54c commit ae46e71

File tree

4 files changed

+37
-11
lines changed

4 files changed

+37
-11
lines changed

packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/Email/properties.mdx

+2-4
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,13 @@ showTabs: true
55
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
66
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
77
import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
8+
import { EmailProperties } from '@dnb/eufemia/src/extensions/forms/Field/Email/EmailDocs'
89

910
## Properties
1011

1112
### Field-specific properties
1213

13-
| Property | Type | Description |
14-
| ------------------------------------------- | -------- | ------------------------------------------------------------------------------- |
15-
| `help` | `object` | _(optional)_ Provide a help button. Object consisting of `title` and `content`. |
16-
| [Input](/uilib/components/input/properties) | Various | _(optional)_ All `Input` properties are supported. |
14+
<PropertiesTable props={EmailProperties} />
1715

1816
### General properties
1917

packages/dnb-design-system-portal/src/docs/uilib/extensions/forms/feature-fields/more-fields/Password/properties.mdx

+2-7
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,13 @@ showTabs: true
55
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
66
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
77
import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
8+
import { PasswordProperties } from '@dnb/eufemia/src/extensions/forms/Field/Password/PasswordDocs'
89

910
## Properties
1011

1112
### Field-specific properties
1213

13-
| Property | Type | Description |
14-
| --------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
15-
| `pattern` | `string` | _(optional)_ Validation based on regex pattern for the number field e.g. `pattern="\w{8}\d{4}"`. |
16-
| `size` | `object` | _(optional)_ The sizes you can choose is small (1.5rem), default (2rem), medium (2.5rem) and large (3rem) are supported component sizes. Defaults to default / null. Also, if you define a number like size="2" then it will be forwarded as the input element attribute. |
17-
| `innerRef` | `object` | _(optional)_ `ElementRef` passed on to the password `input` element. |
18-
| `help` | `object` | _(optional)_ Provide a help button. Object consisting of `title` and `content`. |
19-
| [Space](/uilib/layout/space/properties) | Various | _(optional)_ Spacing properties like `top` or `bottom` are supported. |
14+
<PropertiesTable props={PasswordProperties} />
2015

2116
### General properties
2217

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { PropertiesTableProps } from '../../../../shared/types'
2+
3+
export const EmailProperties: PropertiesTableProps = {
4+
'[Input](/uilib/components/input/properties)': {
5+
doc: 'All `Input` properties are supported.',
6+
type: 'Various',
7+
status: 'optional',
8+
},
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import { PropertiesTableProps } from '../../../../shared/types'
2+
3+
export const PasswordProperties: PropertiesTableProps = {
4+
pattern: {
5+
doc: 'Validation based on regex pattern for the number field e.g. `pattern="w{8}d{4}"`.',
6+
type: 'string',
7+
status: 'optional',
8+
},
9+
size: {
10+
doc: 'The sizes you can choose is small (1.5rem), default (2rem), medium (2.5rem) and large (3rem) are supported component sizes. Defaults to default / null. Also, if you define a number like size="2" then it will be forwarded as the input element attribute.',
11+
type: 'object',
12+
status: 'optional',
13+
},
14+
innerRef: {
15+
doc: '`ElementRef` passed on to the password `input` element.',
16+
type: 'object',
17+
status: 'optional',
18+
},
19+
'[Space](/uilib/layout/space/properties)': {
20+
doc: 'Spacing properties like `top` or `bottom` are supported.',
21+
type: ['string', 'object'],
22+
status: 'optional',
23+
},
24+
}

0 commit comments

Comments
 (0)