Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed Nov 17, 2024
1 parent 8a759a7 commit 6ba5b4b
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions packages/dnb-eufemia/src/extensions/forms/Field/Date/Date.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,28 +17,28 @@ import {
// `range`, `showInput`, `showCancelButton` and `showResetButton` are not picked from the `DatePickerProps`
// Since they require `Field.Date` specific comments, due to them having different default values
export type Props = FieldProps<string, undefined | string> & {
// Validation
pattern?: string
/**
* Defines if the Date field should support a value of two dates (starting and ending date).
* The value needs to be a string containing two dates, separated by a pipe character (`|`) i.e. (`01-09-2024|30-09-2024`) when this is set to `true`.
* Defaults to `false`.
*/
range?: DatePickerProps['range']
/**
* If the input fields with the mask should be visible. Defaults to `true`.
*/
showInput?: DatePickerProps['showInput']
// Validation
pattern?: string
/**
* Defines if the Date field should support a value of two dates (starting and ending date).
* The value needs to be a string containing two dates, separated by a pipe character (`|`) i.e. (`01-09-2024|30-09-2024`) when this is set to `true`.
* Defaults to `false`.
*/
range?: DatePickerProps['range']
/**
* If the input fields with the mask should be visible. Defaults to `true`.
*/
showInput?: DatePickerProps['showInput']

/**
* If set to `true`, a cancel button will be shown. You can change the default text by using `cancel_button_text="Avbryt"` Defaults to `true`. If the `range` prop is `true`, then the cancel button is shown.
*/
showCancelButton?: DatePickerProps['showCancelButton']
/**
* If set to `true`, a reset button will be shown. You can change the default text by using `reset_button_text="Tilbakestill"` Defaults to `true`.
*/
showResetButton?: DatePickerProps['showResetButton']
} & Pick<
/**
* If set to `true`, a cancel button will be shown. You can change the default text by using `cancel_button_text="Avbryt"` Defaults to `true`. If the `range` prop is `true`, then the cancel button is shown.
*/
showCancelButton?: DatePickerProps['showCancelButton']
/**
* If set to `true`, a reset button will be shown. You can change the default text by using `reset_button_text="Tilbakestill"` Defaults to `true`.
*/
showResetButton?: DatePickerProps['showResetButton']
} & Pick<
DatePickerProps,
| 'month'
| 'startMonth'
Expand Down

0 comments on commit 6ba5b4b

Please sign in to comment.