hijri-date-time-picker 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,84 +0,0 @@
1
- /**
2
- * Date picker mode types
3
- */
4
- export type DateMode = "greg" | "hijri";
5
- /**
6
- * Text direction types
7
- */
8
- export type Direction = "ltr" | "rtl";
9
- /**
10
- * Locale types
11
- */
12
- export type Locale = "en" | "ar";
13
- /**
14
- * Selected date information
15
- */
16
- export interface SelectedDate {
17
- gregorian: Date;
18
- hijri: {
19
- year: number;
20
- month: number;
21
- day: number;
22
- };
23
- time?: {
24
- hours: number;
25
- minutes: number;
26
- seconds: number;
27
- };
28
- formatted: {
29
- gregorian: string;
30
- hijri: string;
31
- time?: string;
32
- };
33
- }
34
- /**
35
- * Time format types
36
- */
37
- export type TimeFormat = "12" | "24";
38
- /**
39
- * Custom styling configuration
40
- */
41
- export interface DatePickerStyles {
42
- primaryColor?: string;
43
- secondaryColor?: string;
44
- backgroundColor?: string;
45
- textColor?: string;
46
- selectedDateColor?: string;
47
- selectedDateBackground?: string;
48
- todayColor?: string;
49
- disabledColor?: string;
50
- borderColor?: string;
51
- hoverColor?: string;
52
- fontFamily?: string;
53
- fontSize?: string;
54
- borderRadius?: string;
55
- }
56
- /**
57
- * Label configuration
58
- */
59
- export interface DatePickerLabels {
60
- submitTextButton?: string;
61
- todaysDateText?: string;
62
- ummAlQuraDateText?: string;
63
- yearSelectLabel?: string;
64
- monthSelectLabel?: string;
65
- }
66
- /**
67
- * Display configuration
68
- */
69
- export interface DatePickerDisplay {
70
- todaysDateSection?: boolean;
71
- markToday?: boolean;
72
- disableYearPicker?: boolean;
73
- disableMonthPicker?: boolean;
74
- disableDayPicker?: boolean;
75
- }
76
- /**
77
- * Month names in different locales
78
- */
79
- export declare const GREGORIAN_MONTHS_EN: string[];
80
- export declare const GREGORIAN_MONTHS_AR: string[];
81
- export declare const HIJRI_MONTHS_EN: string[];
82
- export declare const HIJRI_MONTHS_AR: string[];
83
- export declare const WEEKDAY_NAMES_EN: string[];
84
- export declare const WEEKDAY_NAMES_AR: string[];
@@ -1,77 +0,0 @@
1
- /**
2
- * Month names in different locales
3
- */
4
- export const GREGORIAN_MONTHS_EN = [
5
- "January",
6
- "February",
7
- "March",
8
- "April",
9
- "May",
10
- "June",
11
- "July",
12
- "August",
13
- "September",
14
- "October",
15
- "November",
16
- "December",
17
- ];
18
- export const GREGORIAN_MONTHS_AR = [
19
- "يناير",
20
- "فبراير",
21
- "مارس",
22
- "أبريل",
23
- "مايو",
24
- "يونيو",
25
- "يوليو",
26
- "أغسطس",
27
- "سبتمبر",
28
- "أكتوبر",
29
- "نوفمبر",
30
- "ديسمبر",
31
- ];
32
- export const HIJRI_MONTHS_EN = [
33
- "Muharram",
34
- "Safar",
35
- "Rabi' al-Awwal",
36
- "Rabi' al-Thani",
37
- "Jumada al-Awwal",
38
- "Jumada al-Thani",
39
- "Rajab",
40
- "Sha'ban",
41
- "Ramadan",
42
- "Shawwal",
43
- "Dhu al-Qi'dah",
44
- "Dhu al-Hijjah",
45
- ];
46
- export const HIJRI_MONTHS_AR = [
47
- "محرم",
48
- "صفر",
49
- "ربيع الأول",
50
- "ربيع الثاني",
51
- "جمادى الأولى",
52
- "جمادى الثانية",
53
- "رجب",
54
- "شعبان",
55
- "رمضان",
56
- "شوال",
57
- "ذو القعدة",
58
- "ذو الحجة",
59
- ];
60
- export const WEEKDAY_NAMES_EN = [
61
- "Sun",
62
- "Mon",
63
- "Tue",
64
- "Wed",
65
- "Thu",
66
- "Fri",
67
- "Sat",
68
- ];
69
- export const WEEKDAY_NAMES_AR = [
70
- "الأحد",
71
- "الإثنين",
72
- "الثلاثاء",
73
- "الأربعاء",
74
- "الخميس",
75
- "الجمعة",
76
- "السبت",
77
- ];