Skip to content

Commit 06f0087

Browse files
authored
chore: rename docs of Field.String and Input to PascalCase (#6442)
For consistency.
1 parent 809d5e0 commit 06f0087

File tree

16 files changed

+40
-40
lines changed

16 files changed

+40
-40
lines changed

packages/dnb-design-system-portal/src/docs/uilib/components/input/events.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ showTabs: true
33
---
44

55
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
6-
import { inputEvents } from '@dnb/eufemia/src/components/input/InputDocs'
6+
import { InputEvents } from '@dnb/eufemia/src/components/input/InputDocs'
77

88
## Events
99

10-
<PropertiesTable props={inputEvents} />
10+
<PropertiesTable props={InputEvents} />
1111

1212
### Manipulate the input value during typing
1313

packages/dnb-design-system-portal/src/docs/uilib/components/input/properties.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ showTabs: true
44

55
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
66
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
7-
import { inputProperties } from '@dnb/eufemia/src/components/input/InputDocs'
7+
import { InputProperties } from '@dnb/eufemia/src/components/input/InputDocs'
88

99
## Properties
1010

11-
<PropertiesTable props={inputProperties} />
11+
<PropertiesTable props={InputProperties} />
1212

1313
## Translations
1414

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ showTabs: true
44

55
import TranslationsTable from 'dnb-design-system-portal/src/shared/parts/TranslationsTable'
66
import PropertiesTable from 'dnb-design-system-portal/src/shared/parts/PropertiesTable'
7-
import { stringProperties } from '@dnb/eufemia/src/extensions/forms/Field/String/StringDocs'
7+
import { StringProperties } from '@dnb/eufemia/src/extensions/forms/Field/String/StringDocs'
88
import { FieldProperties } from '@dnb/eufemia/src/extensions/forms/Field/FieldDocs'
99

1010
## Properties
1111

1212
### Field-specific properties
1313

14-
<PropertiesTable props={stringProperties} />
14+
<PropertiesTable props={StringProperties} />
1515

1616
### General properties
1717

packages/dnb-eufemia/src/components/input/InputDocs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PropertiesTableProps } from '../../shared/types'
22

3-
export const inputProperties: PropertiesTableProps = {
3+
export const InputProperties: PropertiesTableProps = {
44
value: {
55
doc: 'The content value of the input.',
66
type: 'string',
@@ -158,7 +158,7 @@ export const inputProperties: PropertiesTableProps = {
158158
},
159159
}
160160

161-
export const inputEvents: PropertiesTableProps = {
161+
export const InputEvents: PropertiesTableProps = {
162162
on_change: {
163163
doc: 'Will be called on value changes made by the user. Returns an object with the value as a string and the native event: `{ value, event }`.',
164164
type: 'function',
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { PropertiesTableProps } from '../../../../shared/types'
2-
import { stringProperties } from '../String/StringDocs'
2+
import { StringProperties } from '../String/StringDocs'
33

44
export const AddressProperties: PropertiesTableProps = {
55
element: {
66
doc: 'Define the type of element. Defaults to `Field.String`.',
77
type: 'React.Element',
88
status: 'optional',
99
},
10-
...stringProperties,
10+
...StringProperties,
1111
}

packages/dnb-eufemia/src/extensions/forms/Field/BankAccountNumber/BankAccountNumberDocs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { PropertiesTableProps } from '../../../../shared/types'
2-
import { stringProperties } from '../String/StringDocs'
2+
import { StringProperties } from '../String/StringDocs'
33

44
export const BankAccountNumberProperties: PropertiesTableProps = {
5-
...stringProperties,
5+
...StringProperties,
66
validate: {
77
doc: 'Using this prop you can disable the default validation.',
88
type: 'boolean',
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PropertiesTableProps } from '../../../../shared/types'
2-
import { stringProperties } from '../String/StringDocs'
2+
import { StringProperties } from '../String/StringDocs'
33

44
export const EmailProperties: PropertiesTableProps = {
5-
...stringProperties,
5+
...StringProperties,
66
}

packages/dnb-eufemia/src/extensions/forms/Field/Expiry/ExpiryDocs.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { PropertiesTableProps } from '../../../../shared/types'
2-
import { inputProperties } from '../../../../components/input/InputDocs'
2+
import { InputProperties } from '../../../../components/input/InputDocs'
33

44
export const ExpiryProperties: PropertiesTableProps = {
55
size: {
6-
...inputProperties.size,
7-
doc: `${inputProperties.size.doc} Consider rather setting field sizes with [Form.Appearance](/uilib/extensions/forms/Form/Appearance/).`,
6+
...InputProperties.size,
7+
doc: `${InputProperties.size.doc} Consider rather setting field sizes with [Form.Appearance](/uilib/extensions/forms/Form/Appearance/).`,
88
},
99
onBlurValidator: {
1010
doc: 'Custom validator function that is triggered when the user leaves a field (e.g., blurring a text input or closing a dropdown). The function can be either asynchronous or synchronous. The first parameter is the value, and the second parameter returns an object containing { errorMessages, connectWithPath, validators }. Defaults to validating invalid month and year, using `expiryValidator`.',
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { PropertiesTableProps } from '../../../../shared/types'
2-
import { stringProperties } from '../String/StringDocs'
2+
import { StringProperties } from '../String/StringDocs'
33

44
export const NameProperties: PropertiesTableProps = {
5-
...stringProperties,
5+
...StringProperties,
66
}

packages/dnb-eufemia/src/extensions/forms/Field/NationalIdentityNumber/NationalIdentityNumberDocs.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { PropertiesTableProps } from '../../../../shared/types'
2-
import { stringProperties } from '../String/StringDocs'
2+
import { StringProperties } from '../String/StringDocs'
33

44
export const NationalIdentityNumberProperties: PropertiesTableProps = {
5-
...stringProperties,
5+
...StringProperties,
66
validate: {
77
doc: 'Using this prop you can disable the default validation.',
88
type: 'boolean',

0 commit comments

Comments
 (0)