Fix build
parent
447c2dbabb
commit
009446207c
|
@ -55,27 +55,9 @@
|
|||
"@floating-ui/react-dom": "^1.3.0",
|
||||
"@internationalized/number": "^3.2.0",
|
||||
"@leeoniya/ufuzzy": "^1.0.2",
|
||||
"@popperjs/core": "^2.11.7",
|
||||
"@publicodes/api": "^1.0.0-beta.69",
|
||||
"@react-aria/accordion": "^3.0.0-alpha.15",
|
||||
"@react-aria/button": "^3.7.0",
|
||||
"@react-aria/checkbox": "^3.8.0",
|
||||
"@react-aria/dialog": "^3.5.0",
|
||||
"@react-aria/i18n": "^3.7.0",
|
||||
"@react-aria/numberfield": "^3.4.0",
|
||||
"@react-aria/overlays": "^3.13.0",
|
||||
"@react-aria/progress": "^3.4.0",
|
||||
"@react-aria/radio": "^3.5.0",
|
||||
"@react-aria/searchfield": "^3.5.0",
|
||||
"@react-aria/select": "^3.9.0",
|
||||
"@react-aria/ssr": "^3.5.0",
|
||||
"@react-aria/switch": "^3.4.0",
|
||||
"@react-aria/textfield": "^3.9.0",
|
||||
"@react-aria/accordion": "^3.0.0-alpha.17",
|
||||
"@react-pdf/renderer": "^3.1.6",
|
||||
"@react-stately/radio": "^3.7.0",
|
||||
"@react-stately/searchfield": "^3.4.0",
|
||||
"@react-stately/toggle": "^3.5.0",
|
||||
"@react-stately/tree": "^3.5.0",
|
||||
"@sentry/integrations": "^7.22.0",
|
||||
"@sentry/react": "^7.22.0",
|
||||
"@sentry/tracing": "^7.22.0",
|
||||
|
@ -103,6 +85,7 @@
|
|||
"react-router-dom": "^6.4.4",
|
||||
"react-signature-pad-wrapper": "^3.3.1",
|
||||
"react-spring": "^9.5.5",
|
||||
"react-stately": "^3.22.0",
|
||||
"react-tooltip": "^5.4.0",
|
||||
"react-use-measure": "^2.1.1",
|
||||
"recharts": "2.3.2",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { useCallback, useMemo, useState } from 'react'
|
||||
import { useCallback } from 'react'
|
||||
|
||||
import { InputProps } from '@/components/conversation/RuleInput'
|
||||
import { DateField } from '@/design-system/field'
|
||||
|
|
|
@ -22,13 +22,20 @@ interface DateFieldProps {
|
|||
onChange?: (value?: string) => void
|
||||
placeholder?: string
|
||||
label?: string
|
||||
isRequired?: boolean
|
||||
'aria-label'?: string
|
||||
'aria-labelby'?: string
|
||||
}
|
||||
|
||||
export default function DateField(props: DateFieldProps) {
|
||||
const { aria: ariaProps, rest } = splitAriaProps(props)
|
||||
const { defaultSelected, placeholder = 'JJ/MM/AAAA', label, onChange } = rest
|
||||
const {
|
||||
defaultSelected,
|
||||
placeholder = 'JJ/MM/AAAA',
|
||||
label,
|
||||
isRequired,
|
||||
onChange,
|
||||
} = rest
|
||||
|
||||
const { t, i18n } = useTranslation()
|
||||
const language = i18n.language as 'fr' | 'en'
|
||||
|
@ -131,6 +138,7 @@ export default function DateField(props: DateFieldProps) {
|
|||
'design-system.date-picker.label',
|
||||
'Champ de date au format jours/mois/année'
|
||||
)}
|
||||
isRequired={isRequired}
|
||||
placeholder={placeholder}
|
||||
value={inputValue}
|
||||
onChange={(value) => {
|
||||
|
|
Loading…
Reference in New Issue