feat(AmharicDatePicker): implement Amharic date picker component with calendar type switching and time input

This commit is contained in:
estifanos
2026-08-05 10:14:03 +00:00
parent 5fb1926ac0
commit 7ba760d74b
11 changed files with 89 additions and 37 deletions

View File

@@ -1,7 +1,7 @@
import { Loader, Select, SimpleGrid, TextInput } from '@mantine/core';
import type { FieldErrors, UseFormRegister, UseFormSetValue, UseFormWatch, UseFormTrigger } from 'react-hook-form';
import { z } from 'zod';
import { AmharicDatePicker } from '../../../components/AmharicDatePicker';
import { AmharicDatePicker } from '@ema-platform/ui';
export const profileSchema = z.object({
professionId: z.string().min(1, 'Select your profession'),

View File

@@ -1,5 +1,5 @@
import { useEffect, useState } from 'react';
import { AmharicDatePicker } from '../../../components/AmharicDatePicker';
import { AmharicDatePicker } from '@ema-platform/ui';
import {
ActionIcon,
Alert,

View File

@@ -33,9 +33,15 @@ import {
IconUser,
} from '@tabler/icons-react';
import { useNavigate } from 'react-router-dom';
import { notify, BilingualInput, useErrorHandler } from '@ema-platform/ui';
import {
notify,
BilingualInput,
useErrorHandler,
AmharicDatePicker,
toEthiopicDateLabel,
toGregorianDateLabel,
} from '@ema-platform/ui';
import type { BilingualValue } from '@ema-platform/ui';
import { AmharicDatePicker, toEthiopicDateLabel, toGregorianDateLabel } from '../../../components/AmharicDatePicker';
import { LocationPicker } from '../../location/components/LocationPicker';
// ---------------------------------------------------------------------------