Merged in chore/SW-3145-move-date-to-design-system (pull request #2556)
feat: SW-3145 Moved date component to design system * chore: SW-3145 Moved date component to design system Approved-by: Anton Gunnarsson Approved-by: Matilda Landström
This commit is contained in:
21
packages/design-system/lib/components/Form/Date/date.ts
Normal file
21
packages/design-system/lib/components/Form/Date/date.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Lang } from '@scandic-hotels/common/constants/language'
|
||||
import type { RegisterOptions } from 'react-hook-form'
|
||||
|
||||
export const enum DateName {
|
||||
date = 'date',
|
||||
day = 'day',
|
||||
month = 'month',
|
||||
year = 'year',
|
||||
}
|
||||
export interface DateProps
|
||||
extends React.SelectHTMLAttributes<HTMLSelectElement> {
|
||||
labels: {
|
||||
day: string
|
||||
month: string
|
||||
year: string
|
||||
errorMessage?: string
|
||||
}
|
||||
lang: Lang
|
||||
name: string
|
||||
registerOptions?: RegisterOptions
|
||||
}
|
||||
Reference in New Issue
Block a user