@dreamstack-us/kaal 0.0.1

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.
Files changed (181) hide show
  1. package/lib/module/components/CalendarGrid/CalendarGrid.js +112 -0
  2. package/lib/module/components/CalendarGrid/CalendarGrid.js.map +1 -0
  3. package/lib/module/components/CalendarGrid/CalendarGrid.styles.js +46 -0
  4. package/lib/module/components/CalendarGrid/CalendarGrid.styles.js.map +1 -0
  5. package/lib/module/components/CalendarGrid/DayCell.js +96 -0
  6. package/lib/module/components/CalendarGrid/DayCell.js.map +1 -0
  7. package/lib/module/components/CalendarGrid/index.js +4 -0
  8. package/lib/module/components/CalendarGrid/index.js.map +1 -0
  9. package/lib/module/components/DatePicker/DatePicker.android.js +66 -0
  10. package/lib/module/components/DatePicker/DatePicker.android.js.map +1 -0
  11. package/lib/module/components/DatePicker/DatePicker.ios.js +74 -0
  12. package/lib/module/components/DatePicker/DatePicker.ios.js.map +1 -0
  13. package/lib/module/components/DatePicker/DatePicker.js +9 -0
  14. package/lib/module/components/DatePicker/DatePicker.js.map +1 -0
  15. package/lib/module/components/DatePicker/DatePicker.styles.js +35 -0
  16. package/lib/module/components/DatePicker/DatePicker.styles.js.map +1 -0
  17. package/lib/module/components/DatePicker/DatePicker.web.js +32 -0
  18. package/lib/module/components/DatePicker/DatePicker.web.js.map +1 -0
  19. package/lib/module/components/DatePicker/index.js +4 -0
  20. package/lib/module/components/DatePicker/index.js.map +1 -0
  21. package/lib/module/components/TimePicker/ClockFace.js +194 -0
  22. package/lib/module/components/TimePicker/ClockFace.js.map +1 -0
  23. package/lib/module/components/TimePicker/MaterialTimePicker.js +122 -0
  24. package/lib/module/components/TimePicker/MaterialTimePicker.js.map +1 -0
  25. package/lib/module/components/TimePicker/TimePicker.android.js +77 -0
  26. package/lib/module/components/TimePicker/TimePicker.android.js.map +1 -0
  27. package/lib/module/components/TimePicker/TimePicker.ios.js +83 -0
  28. package/lib/module/components/TimePicker/TimePicker.ios.js.map +1 -0
  29. package/lib/module/components/TimePicker/TimePicker.js +34 -0
  30. package/lib/module/components/TimePicker/TimePicker.js.map +1 -0
  31. package/lib/module/components/TimePicker/TimePicker.styles.js +180 -0
  32. package/lib/module/components/TimePicker/TimePicker.styles.js.map +1 -0
  33. package/lib/module/components/TimePicker/TimePicker.web.js +37 -0
  34. package/lib/module/components/TimePicker/TimePicker.web.js.map +1 -0
  35. package/lib/module/components/TimePicker/TimeWheelPicker.js +178 -0
  36. package/lib/module/components/TimePicker/TimeWheelPicker.js.map +1 -0
  37. package/lib/module/components/TimePicker/index.js +7 -0
  38. package/lib/module/components/TimePicker/index.js.map +1 -0
  39. package/lib/module/components/WheelPicker/WheelPicker.js +5 -0
  40. package/lib/module/components/WheelPicker/WheelPicker.js.map +1 -0
  41. package/lib/module/components/WheelPicker/WheelPicker.styles.js +41 -0
  42. package/lib/module/components/WheelPicker/WheelPicker.styles.js.map +1 -0
  43. package/lib/module/components/WheelPicker/WheelPicker.web.js +190 -0
  44. package/lib/module/components/WheelPicker/WheelPicker.web.js.map +1 -0
  45. package/lib/module/components/WheelPicker/index.js +4 -0
  46. package/lib/module/components/WheelPicker/index.js.map +1 -0
  47. package/lib/module/components/index.js +7 -0
  48. package/lib/module/components/index.js.map +1 -0
  49. package/lib/module/hooks/index.js +6 -0
  50. package/lib/module/hooks/index.js.map +1 -0
  51. package/lib/module/hooks/useCalendar.js +44 -0
  52. package/lib/module/hooks/useCalendar.js.map +1 -0
  53. package/lib/module/hooks/useDatePicker.js +30 -0
  54. package/lib/module/hooks/useDatePicker.js.map +1 -0
  55. package/lib/module/hooks/useTimePicker.js +125 -0
  56. package/lib/module/hooks/useTimePicker.js.map +1 -0
  57. package/lib/module/index.js +22 -0
  58. package/lib/module/index.js.map +1 -0
  59. package/lib/module/types/datepicker.js +2 -0
  60. package/lib/module/types/datepicker.js.map +1 -0
  61. package/lib/module/types/index.js +5 -0
  62. package/lib/module/types/index.js.map +1 -0
  63. package/lib/module/types/timepicker.js +2 -0
  64. package/lib/module/types/timepicker.js.map +1 -0
  65. package/lib/module/unistyles.js +9 -0
  66. package/lib/module/unistyles.js.map +1 -0
  67. package/lib/module/utils/date.js +205 -0
  68. package/lib/module/utils/date.js.map +1 -0
  69. package/lib/module/utils/index.js +5 -0
  70. package/lib/module/utils/index.js.map +1 -0
  71. package/lib/module/utils/validation.js +61 -0
  72. package/lib/module/utils/validation.js.map +1 -0
  73. package/lib/typescript/components/CalendarGrid/CalendarGrid.d.ts +12 -0
  74. package/lib/typescript/components/CalendarGrid/CalendarGrid.d.ts.map +1 -0
  75. package/lib/typescript/components/CalendarGrid/CalendarGrid.styles.d.ts +45 -0
  76. package/lib/typescript/components/CalendarGrid/CalendarGrid.styles.d.ts.map +1 -0
  77. package/lib/typescript/components/CalendarGrid/DayCell.d.ts +12 -0
  78. package/lib/typescript/components/CalendarGrid/DayCell.d.ts.map +1 -0
  79. package/lib/typescript/components/CalendarGrid/index.d.ts +2 -0
  80. package/lib/typescript/components/CalendarGrid/index.d.ts.map +1 -0
  81. package/lib/typescript/components/DatePicker/DatePicker.android.d.ts +4 -0
  82. package/lib/typescript/components/DatePicker/DatePicker.android.d.ts.map +1 -0
  83. package/lib/typescript/components/DatePicker/DatePicker.d.ts +15 -0
  84. package/lib/typescript/components/DatePicker/DatePicker.d.ts.map +1 -0
  85. package/lib/typescript/components/DatePicker/DatePicker.ios.d.ts +4 -0
  86. package/lib/typescript/components/DatePicker/DatePicker.ios.d.ts.map +1 -0
  87. package/lib/typescript/components/DatePicker/DatePicker.styles.d.ts +29 -0
  88. package/lib/typescript/components/DatePicker/DatePicker.styles.d.ts.map +1 -0
  89. package/lib/typescript/components/DatePicker/DatePicker.web.d.ts +4 -0
  90. package/lib/typescript/components/DatePicker/DatePicker.web.d.ts.map +1 -0
  91. package/lib/typescript/components/DatePicker/index.d.ts +3 -0
  92. package/lib/typescript/components/DatePicker/index.d.ts.map +1 -0
  93. package/lib/typescript/components/TimePicker/ClockFace.d.ts +12 -0
  94. package/lib/typescript/components/TimePicker/ClockFace.d.ts.map +1 -0
  95. package/lib/typescript/components/TimePicker/MaterialTimePicker.d.ts +12 -0
  96. package/lib/typescript/components/TimePicker/MaterialTimePicker.d.ts.map +1 -0
  97. package/lib/typescript/components/TimePicker/TimePicker.android.d.ts +4 -0
  98. package/lib/typescript/components/TimePicker/TimePicker.android.d.ts.map +1 -0
  99. package/lib/typescript/components/TimePicker/TimePicker.d.ts +29 -0
  100. package/lib/typescript/components/TimePicker/TimePicker.d.ts.map +1 -0
  101. package/lib/typescript/components/TimePicker/TimePicker.ios.d.ts +4 -0
  102. package/lib/typescript/components/TimePicker/TimePicker.ios.d.ts.map +1 -0
  103. package/lib/typescript/components/TimePicker/TimePicker.styles.d.ts +168 -0
  104. package/lib/typescript/components/TimePicker/TimePicker.styles.d.ts.map +1 -0
  105. package/lib/typescript/components/TimePicker/TimePicker.web.d.ts +10 -0
  106. package/lib/typescript/components/TimePicker/TimePicker.web.d.ts.map +1 -0
  107. package/lib/typescript/components/TimePicker/TimeWheelPicker.d.ts +11 -0
  108. package/lib/typescript/components/TimePicker/TimeWheelPicker.d.ts.map +1 -0
  109. package/lib/typescript/components/TimePicker/index.d.ts +6 -0
  110. package/lib/typescript/components/TimePicker/index.d.ts.map +1 -0
  111. package/lib/typescript/components/WheelPicker/WheelPicker.d.ts +2 -0
  112. package/lib/typescript/components/WheelPicker/WheelPicker.d.ts.map +1 -0
  113. package/lib/typescript/components/WheelPicker/WheelPicker.styles.d.ts +40 -0
  114. package/lib/typescript/components/WheelPicker/WheelPicker.styles.d.ts.map +1 -0
  115. package/lib/typescript/components/WheelPicker/WheelPicker.web.d.ts +10 -0
  116. package/lib/typescript/components/WheelPicker/WheelPicker.web.d.ts.map +1 -0
  117. package/lib/typescript/components/WheelPicker/index.d.ts +2 -0
  118. package/lib/typescript/components/WheelPicker/index.d.ts.map +1 -0
  119. package/lib/typescript/components/index.d.ts +5 -0
  120. package/lib/typescript/components/index.d.ts.map +1 -0
  121. package/lib/typescript/hooks/index.d.ts +4 -0
  122. package/lib/typescript/hooks/index.d.ts.map +1 -0
  123. package/lib/typescript/hooks/useCalendar.d.ts +10 -0
  124. package/lib/typescript/hooks/useCalendar.d.ts.map +1 -0
  125. package/lib/typescript/hooks/useDatePicker.d.ts +15 -0
  126. package/lib/typescript/hooks/useDatePicker.d.ts.map +1 -0
  127. package/lib/typescript/hooks/useTimePicker.d.ts +52 -0
  128. package/lib/typescript/hooks/useTimePicker.d.ts.map +1 -0
  129. package/lib/typescript/index.d.ts +12 -0
  130. package/lib/typescript/index.d.ts.map +1 -0
  131. package/lib/typescript/types/datepicker.d.ts +15 -0
  132. package/lib/typescript/types/datepicker.d.ts.map +1 -0
  133. package/lib/typescript/types/index.d.ts +3 -0
  134. package/lib/typescript/types/index.d.ts.map +1 -0
  135. package/lib/typescript/types/timepicker.d.ts +54 -0
  136. package/lib/typescript/types/timepicker.d.ts.map +1 -0
  137. package/lib/typescript/unistyles.d.ts +3 -0
  138. package/lib/typescript/unistyles.d.ts.map +1 -0
  139. package/lib/typescript/utils/date.d.ts +94 -0
  140. package/lib/typescript/utils/date.d.ts.map +1 -0
  141. package/lib/typescript/utils/index.d.ts +3 -0
  142. package/lib/typescript/utils/index.d.ts.map +1 -0
  143. package/lib/typescript/utils/validation.d.ts +40 -0
  144. package/lib/typescript/utils/validation.d.ts.map +1 -0
  145. package/package.json +101 -0
  146. package/src/components/CalendarGrid/CalendarGrid.styles.ts +44 -0
  147. package/src/components/CalendarGrid/CalendarGrid.tsx +151 -0
  148. package/src/components/CalendarGrid/DayCell.tsx +108 -0
  149. package/src/components/CalendarGrid/index.ts +1 -0
  150. package/src/components/DatePicker/DatePicker.android.tsx +69 -0
  151. package/src/components/DatePicker/DatePicker.ios.tsx +78 -0
  152. package/src/components/DatePicker/DatePicker.styles.ts +35 -0
  153. package/src/components/DatePicker/DatePicker.tsx +21 -0
  154. package/src/components/DatePicker/DatePicker.web.tsx +36 -0
  155. package/src/components/DatePicker/index.ts +2 -0
  156. package/src/components/TimePicker/ClockFace.tsx +233 -0
  157. package/src/components/TimePicker/MaterialTimePicker.tsx +169 -0
  158. package/src/components/TimePicker/TimePicker.android.tsx +80 -0
  159. package/src/components/TimePicker/TimePicker.ios.tsx +88 -0
  160. package/src/components/TimePicker/TimePicker.styles.ts +209 -0
  161. package/src/components/TimePicker/TimePicker.tsx +35 -0
  162. package/src/components/TimePicker/TimePicker.web.tsx +35 -0
  163. package/src/components/TimePicker/TimeWheelPicker.tsx +211 -0
  164. package/src/components/TimePicker/index.ts +5 -0
  165. package/src/components/WheelPicker/WheelPicker.styles.ts +39 -0
  166. package/src/components/WheelPicker/WheelPicker.tsx +2 -0
  167. package/src/components/WheelPicker/WheelPicker.web.tsx +237 -0
  168. package/src/components/WheelPicker/index.ts +1 -0
  169. package/src/components/index.ts +11 -0
  170. package/src/hooks/index.ts +9 -0
  171. package/src/hooks/useCalendar.ts +59 -0
  172. package/src/hooks/useDatePicker.ts +40 -0
  173. package/src/hooks/useTimePicker.ts +152 -0
  174. package/src/index.ts +77 -0
  175. package/src/types/datepicker.ts +17 -0
  176. package/src/types/index.ts +2 -0
  177. package/src/types/timepicker.ts +59 -0
  178. package/src/unistyles.ts +6 -0
  179. package/src/utils/date.ts +217 -0
  180. package/src/utils/index.ts +2 -0
  181. package/src/utils/validation.ts +76 -0
@@ -0,0 +1,205 @@
1
+ "use strict";
2
+
3
+ /**
4
+ * Date utilities using native Date and Intl APIs
5
+ * Replaces @js-temporal/polyfill for lighter bundle size
6
+ */
7
+
8
+ /**
9
+ * Converts a Date to ISO date string (YYYY-MM-DD)
10
+ */
11
+ export const toISODateString = date => {
12
+ const year = date.getUTCFullYear();
13
+ const month = String(date.getUTCMonth() + 1).padStart(2, '0');
14
+ const day = String(date.getUTCDate()).padStart(2, '0');
15
+ return `${year}-${month}-${day}`;
16
+ };
17
+
18
+ /**
19
+ * Converts a Date to ISO datetime string with timezone
20
+ */
21
+ export const toISODateTimeString = (date, timeZone) => {
22
+ const tz = timeZone ?? getUserTimezone();
23
+ const formatter = new Intl.DateTimeFormat('en-CA', {
24
+ timeZone: tz,
25
+ year: 'numeric',
26
+ month: '2-digit',
27
+ day: '2-digit',
28
+ hour: '2-digit',
29
+ minute: '2-digit',
30
+ second: '2-digit',
31
+ hour12: false
32
+ });
33
+ const parts = formatter.formatToParts(date);
34
+ const get = type => parts.find(p => p.type === type)?.value ?? '';
35
+ return `${get('year')}-${get('month')}-${get('day')}T${get('hour')}:${get('minute')}:${get('second')}`;
36
+ };
37
+
38
+ /**
39
+ * Parses an ISO date string (YYYY-MM-DD) to Date
40
+ */
41
+ export const parseISODate = iso => {
42
+ const parts = iso.split('-').map(Number);
43
+ return new Date(Date.UTC(parts[0], parts[1] - 1, parts[2]));
44
+ };
45
+
46
+ /**
47
+ * @deprecated Alias for parseISODate for backward compatibility
48
+ */
49
+ export const fromISODateString = parseISODate;
50
+
51
+ /**
52
+ * Parses an ISO datetime string to Date
53
+ */
54
+ export const parseISODateTime = iso => {
55
+ return new Date(iso);
56
+ };
57
+
58
+ /**
59
+ * @deprecated Alias for parseISODateTime for backward compatibility
60
+ */
61
+ export const fromISODateTimeString = parseISODateTime;
62
+
63
+ /**
64
+ * Gets all dates in a range (inclusive)
65
+ */
66
+ export const getDateRange = (start, end) => {
67
+ const dates = [];
68
+ const current = new Date(start.getTime());
69
+ while (current.getTime() <= end.getTime()) {
70
+ dates.push(new Date(current.getTime()));
71
+ current.setUTCDate(current.getUTCDate() + 1);
72
+ }
73
+ return dates;
74
+ };
75
+
76
+ /**
77
+ * Checks if a date is within the given range
78
+ */
79
+ export const isDateInRange = (date, minDate, maxDate) => {
80
+ const time = date.getTime();
81
+ if (minDate && time < minDate.getTime()) return false;
82
+ if (maxDate && time > maxDate.getTime()) return false;
83
+ return true;
84
+ };
85
+
86
+ /**
87
+ * Gets the user's timezone
88
+ */
89
+ export const getUserTimezone = () => {
90
+ return Intl.DateTimeFormat().resolvedOptions().timeZone;
91
+ };
92
+
93
+ /**
94
+ * Adds days to a date
95
+ */
96
+ export const addDays = (date, days) => {
97
+ const result = new Date(date.getTime());
98
+ result.setUTCDate(result.getUTCDate() + days);
99
+ return result;
100
+ };
101
+
102
+ /**
103
+ * Adds months to a date, handling month overflow
104
+ */
105
+ export const addMonths = (date, months) => {
106
+ const result = new Date(date.getTime());
107
+ const dayOfMonth = result.getUTCDate();
108
+ result.setUTCDate(1);
109
+ result.setUTCMonth(result.getUTCMonth() + months);
110
+ const daysInMonth = new Date(Date.UTC(result.getUTCFullYear(), result.getUTCMonth() + 1, 0)).getUTCDate();
111
+ result.setUTCDate(Math.min(dayOfMonth, daysInMonth));
112
+ return result;
113
+ };
114
+
115
+ /**
116
+ * Compares two dates
117
+ * @returns negative if a < b, positive if a > b, 0 if equal
118
+ */
119
+ export const compareDates = (a, b) => {
120
+ return a.getTime() - b.getTime();
121
+ };
122
+
123
+ /**
124
+ * Checks if two dates are the same day
125
+ */
126
+ export const isSameDay = (a, b) => {
127
+ return toISODateString(a) === toISODateString(b);
128
+ };
129
+
130
+ /**
131
+ * Checks if two dates are the same month
132
+ */
133
+ export const isSameMonth = (a, b) => {
134
+ return a.getUTCFullYear() === b.getUTCFullYear() && a.getUTCMonth() === b.getUTCMonth();
135
+ };
136
+
137
+ /**
138
+ * Gets all days in a month
139
+ */
140
+ export const getMonthDays = (year, month) => {
141
+ const days = [];
142
+ const daysInMonth = new Date(Date.UTC(year, month + 1, 0)).getUTCDate();
143
+ for (let day = 1; day <= daysInMonth; day++) {
144
+ days.push(new Date(Date.UTC(year, month, day)));
145
+ }
146
+ return days;
147
+ };
148
+
149
+ /**
150
+ * Gets the first day of the month
151
+ */
152
+ export const getFirstDayOfMonth = date => {
153
+ return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth(), 1));
154
+ };
155
+
156
+ /**
157
+ * Gets the last day of the month
158
+ */
159
+ export const getLastDayOfMonth = date => {
160
+ return new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + 1, 0));
161
+ };
162
+
163
+ /**
164
+ * Gets the day of week (0 = Sunday, 6 = Saturday)
165
+ */
166
+ export const getDayOfWeek = date => {
167
+ return date.getUTCDay();
168
+ };
169
+
170
+ /**
171
+ * Formats a month name
172
+ */
173
+ export const formatMonth = (date, locale = 'en-US', style = 'long') => {
174
+ return new Intl.DateTimeFormat(locale, {
175
+ month: style
176
+ }).format(date);
177
+ };
178
+
179
+ /**
180
+ * Formats a weekday name
181
+ */
182
+ export const formatWeekday = (date, locale = 'en-US', style = 'short') => {
183
+ return new Intl.DateTimeFormat(locale, {
184
+ weekday: style
185
+ }).format(date);
186
+ };
187
+
188
+ /**
189
+ * Formats year and month
190
+ */
191
+ export const formatYearMonth = (date, locale = 'en-US') => {
192
+ return new Intl.DateTimeFormat(locale, {
193
+ month: 'long',
194
+ year: 'numeric'
195
+ }).format(date);
196
+ };
197
+
198
+ /**
199
+ * Gets today's date at midnight UTC
200
+ */
201
+ export const today = () => {
202
+ const now = new Date();
203
+ return new Date(Date.UTC(now.getFullYear(), now.getMonth(), now.getDate()));
204
+ };
205
+ //# sourceMappingURL=date.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["toISODateString","date","year","getUTCFullYear","month","String","getUTCMonth","padStart","day","getUTCDate","toISODateTimeString","timeZone","tz","getUserTimezone","formatter","Intl","DateTimeFormat","hour","minute","second","hour12","parts","formatToParts","get","type","find","p","value","parseISODate","iso","split","map","Number","Date","UTC","fromISODateString","parseISODateTime","fromISODateTimeString","getDateRange","start","end","dates","current","getTime","push","setUTCDate","isDateInRange","minDate","maxDate","time","resolvedOptions","addDays","days","result","addMonths","months","dayOfMonth","setUTCMonth","daysInMonth","Math","min","compareDates","a","b","isSameDay","isSameMonth","getMonthDays","getFirstDayOfMonth","getLastDayOfMonth","getDayOfWeek","getUTCDay","formatMonth","locale","style","format","formatWeekday","weekday","formatYearMonth","today","now","getFullYear","getMonth","getDate"],"sourceRoot":"../../../src","s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AAM,GAAG,OAAO,KAAa;EACvE,OAAO,IAAIzD,IAAI,CAACC,cAAc,CAACwD,MAAM,EAAE;IACrCpE,KAAK,EAAE,MAAM;IACbF,IAAI,EAAE;EACR,CAAC,CAAC,CAACwE,MAAM,CAACzE,IAAI,CAAC;AACjB,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAM6E,KAAK,GAAGA,CAAA,KAAY;EAC/B,MAAMC,GAAG,GAAG,IAAI9C,IAAI,CAAC,CAAC;EACtB,OAAO,IAAIA,IAAI,CAACA,IAAI,CAACC,GAAG,CAAC6C,GAAG,CAACC,WAAW,CAAC,CAAC,EAAED,GAAG,CAACE,QAAQ,CAAC,CAAC,EAAEF,GAAG,CAACG,OAAO,CAAC,CAAC,CAAC,CAAC;AAC7E,CAAC","ignoreList":[]}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ export * from "./date.js";
4
+ export * from "./validation.js";
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":[],"sourceRoot":"../../../src","sources":["utils/index.ts"],"mappings":";;AAAA,cAAc,WAAQ;AACtB,cAAc,iBAAc","ignoreList":[]}
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+
3
+ import * as v from 'valibot';
4
+
5
+ /**
6
+ * Helper to parse ISO date string parts
7
+ * Assumes input is already validated by regex pattern
8
+ */
9
+ const parseISOParts = val => {
10
+ const parts = val.split('-').map(Number);
11
+ return parts;
12
+ };
13
+
14
+ /**
15
+ * Validates an ISO 8601 date string (YYYY-MM-DD)
16
+ */
17
+ export const isoDateSchema = v.pipe(v.string(), v.regex(/^\d{4}-\d{2}-\d{2}$/, 'Must be in YYYY-MM-DD format'), v.check(val => {
18
+ const [year, month, day] = parseISOParts(val);
19
+ const date = new Date(Date.UTC(year, month - 1, day));
20
+ return date.getUTCFullYear() === year && date.getUTCMonth() === month - 1 && date.getUTCDate() === day;
21
+ }, 'Invalid ISO 8601 date format'));
22
+
23
+ /**
24
+ * Validates an ISO 8601 datetime string with timezone offset
25
+ */
26
+ export const isoDateTimeSchema = v.pipe(v.string(), v.isoTimestamp());
27
+
28
+ /**
29
+ * Validates a date range where start <= end
30
+ */
31
+ export const dateRangeSchema = v.pipe(v.object({
32
+ start: isoDateSchema,
33
+ end: isoDateSchema
34
+ }), v.check(data => {
35
+ return data.start <= data.end;
36
+ }, 'Start date must be before or equal to end date'));
37
+
38
+ /**
39
+ * Validates date picker configuration
40
+ */
41
+ export const datePickerValueSchema = v.object({
42
+ selectedDate: isoDateSchema,
43
+ minDate: v.optional(isoDateSchema),
44
+ maxDate: v.optional(isoDateSchema),
45
+ disabledDates: v.optional(v.array(isoDateSchema))
46
+ });
47
+
48
+ /**
49
+ * Parses an ISO date string to a Date object
50
+ * @deprecated Use parseISODate from date utils instead. Kept for backward compatibility.
51
+ */
52
+ export const dateSchema = v.pipe(v.string(), v.regex(/^\d{4}-\d{2}-\d{2}$/, 'Must be in YYYY-MM-DD format'), v.transform(val => {
53
+ const [year, month, day] = parseISOParts(val);
54
+ return new Date(Date.UTC(year, month - 1, day));
55
+ }));
56
+
57
+ /**
58
+ * @deprecated Alias for dateSchema for backward compatibility
59
+ */
60
+ export const temporalDateSchema = dateSchema;
61
+ //# sourceMappingURL=validation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["v","parseISOParts","val","parts","split","map","Number","isoDateSchema","pipe","string","regex","check","year","month","day","date","Date","UTC","getUTCFullYear","getUTCMonth","getUTCDate","isoDateTimeSchema","isoTimestamp","dateRangeSchema","object","start","end","data","datePickerValueSchema","selectedDate","minDate","optional","maxDate","disabledDates","array","dateSchema","transform","temporalDateSchema"],"sourceRoot":"../../../src","sources":["utils/validation.ts"],"mappings":";;AAAA,OAAO,KAAKA,CAAC,MAAM,SAAS;;AAE5B;AACA;AACA;AACA;AACA,MAAMC,aAAa,GAAIC,GAAW,IAA+B;EAC/D,MAAMC,KAAK,GAAGD,GAAG,CAACE,KAAK,CAAC,GAAG,CAAC,CAACC,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AEtB,aAAa;EAC3BuB,OAAO,EAAE9B,CAAC,CAAC+B,QAAQ,CAACxB,aAAa,CAAC;EAClCyB,OAAO,EAAEhC,CAAC,CAAC+B,QAAQ,CAACxB,aAAa,CAAC;EAClC0B,aAAa,EAAEjC,CAAC,CAAC+B,QAAQ,CAAC/B,CAAC,CAACkC,KAAK,CAAC3B,aAAa,CAAC;AAClD,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACA,OAAO,MAAM4B,UAAU,GAAGnC,CAAC,CAACQ,IAAI,CAC9BR,CAAC,CAACS,MAAM,CAAC,CAAC,EACVT,CAAC,CAACU,KAAK,CAAC,qBAAqB,EAAE,8BAA8B,CAAC,EAC9DV,CAAC,CAACoC,SAAS,CAAElC,GAAG,IAAK;EACnB,MAAM,CAACU,IAAI,EAAEC,KAAK,EAAEC,GAAG,CAAC,GAAGb,aAAa,CAACC,GAAG,CAAC;EAC7C,OAAO,IAAIc,IAAI,CAACA,IAAI,CAACC,GAAG,CAACL,IAAI,EAAEC,KAAK,GAAG,CAAC,EAAEC,GAAG,CAAC,CAAC;AACjD,CAAC,CACH,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMuB,kBAAkB,GAAGF,UAAU","ignoreList":[]}
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface CalendarGridProps {
3
+ value: Date;
4
+ onChange: (date: Date) => void;
5
+ minDate?: Date;
6
+ maxDate?: Date;
7
+ disabledDates?: Date[];
8
+ themeMode: 'ios' | 'android' | 'custom';
9
+ }
10
+ export declare const CalendarGrid: React.FC<CalendarGridProps>;
11
+ export {};
12
+ //# sourceMappingURL=CalendarGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarGrid.d.ts","sourceRoot":"","sources":["../../../../src/components/CalendarGrid/CalendarGrid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAe1D,UAAU,iBAAiB;IACzB,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,SAAS,EAAE,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;CACzC;AAmCD,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2FpD,CAAC"}
@@ -0,0 +1,45 @@
1
+ export declare const styles: {
2
+ container: {
3
+ backgroundColor: "#FFFFFF" | "#121212";
4
+ borderRadius: 16;
5
+ padding: number;
6
+ };
7
+ header: {
8
+ flexDirection: "row";
9
+ justifyContent: "space-between";
10
+ alignItems: "center";
11
+ marginBottom: number;
12
+ paddingHorizontal: number;
13
+ };
14
+ navButton: {
15
+ width: number;
16
+ height: number;
17
+ justifyContent: "center";
18
+ alignItems: "center";
19
+ borderRadius: 8;
20
+ };
21
+ navText: {
22
+ fontSize: number;
23
+ color: "#1E88E5" | "#4DA6FF";
24
+ fontWeight: "600";
25
+ };
26
+ monthTitle: {
27
+ fontSize: 18;
28
+ fontWeight: "600";
29
+ color: "#FFFFFF" | "#212121";
30
+ };
31
+ weekDays: {
32
+ flexDirection: "row";
33
+ marginBottom: number;
34
+ };
35
+ weekDayText: {
36
+ flex: number;
37
+ textAlign: "center";
38
+ fontSize: 12;
39
+ fontWeight: "500";
40
+ color: "#616161" | "#E0E0E0";
41
+ };
42
+ } & {
43
+ useVariants: (variants: never) => void;
44
+ };
45
+ //# sourceMappingURL=CalendarGrid.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarGrid.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/CalendarGrid/CalendarGrid.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyChB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type React from 'react';
2
+ interface DayCellProps {
3
+ date: Date | null;
4
+ isSelected: boolean;
5
+ isToday: boolean;
6
+ isDisabled: boolean;
7
+ isWeekend: boolean;
8
+ onPress?: () => void;
9
+ }
10
+ export declare const DayCell: React.FC<DayCellProps>;
11
+ export {};
12
+ //# sourceMappingURL=DayCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DayCell.d.ts","sourceRoot":"","sources":["../../../../src/components/CalendarGrid/DayCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,UAAU,YAAY;IACpB,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,OAAO,CAAC;IACpB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAqDD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAwC1C,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CalendarGrid } from './CalendarGrid';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/CalendarGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { KaalDatePickerProps } from './DatePicker';
3
+ export declare const DatePicker: React.FC<KaalDatePickerProps>;
4
+ //# sourceMappingURL=DatePicker.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.android.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/DatePicker.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AA6BxD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAmCpD,CAAC"}
@@ -0,0 +1,15 @@
1
+ import type React from 'react';
2
+ import type { DatePickerMode } from '../../types';
3
+ export interface KaalDatePickerProps {
4
+ value: Date;
5
+ onChange: (date: Date) => void;
6
+ mode?: DatePickerMode;
7
+ theme?: 'native' | 'ios' | 'android' | 'custom';
8
+ variant?: 'wheel' | 'calendar' | 'compact';
9
+ minDate?: Date;
10
+ maxDate?: Date;
11
+ disabledDates?: Date[];
12
+ locale?: string;
13
+ }
14
+ export declare const DatePicker: React.FC<KaalDatePickerProps>;
15
+ //# sourceMappingURL=DatePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/DatePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,QAAQ,CAAC;IAChD,OAAO,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,CAAC;IAC3C,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,aAAa,CAAC,EAAE,IAAI,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAID,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAGpD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { KaalDatePickerProps } from './DatePicker';
3
+ export declare const DatePicker: React.FC<KaalDatePickerProps>;
4
+ //# sourceMappingURL=DatePicker.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/DatePicker.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAIrD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAgCxD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAyCpD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { type UnistylesVariants } from 'react-native-unistyles';
2
+ export declare const styles: {
3
+ container: {
4
+ padding: number;
5
+ } & {
6
+ padding: number;
7
+ } & {
8
+ padding: number;
9
+ } & {
10
+ backgroundColor: "#FFFFFF" | "#121212";
11
+ borderRadius: 16;
12
+ overflow: "hidden";
13
+ };
14
+ backdrop: {
15
+ backdropFilter: string;
16
+ WebkitBackdropFilter: string;
17
+ backgroundColor: string;
18
+ } | {
19
+ backgroundColor: "#FAFAFA" | "#1E1E1E";
20
+ backdropFilter?: undefined;
21
+ WebkitBackdropFilter?: undefined;
22
+ };
23
+ } & {
24
+ useVariants: (variants: {
25
+ size?: "compact" | "large" | undefined;
26
+ }) => void;
27
+ };
28
+ export type DatePickerVariants = UnistylesVariants<typeof styles>;
29
+ //# sourceMappingURL=DatePicker.styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/DatePicker.styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAc,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE5E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhB,CAAC;AAEJ,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,OAAO,MAAM,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type React from 'react';
2
+ import type { KaalDatePickerProps } from './DatePicker';
3
+ export declare const DatePicker: React.FC<KaalDatePickerProps>;
4
+ //# sourceMappingURL=DatePicker.web.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DatePicker.web.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/DatePicker.web.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAExD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA8BpD,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { DatePicker } from './DatePicker';
2
+ export type { KaalDatePickerProps } from './DatePicker';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/DatePicker/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,YAAY,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type React from 'react';
2
+ import type { ClockMode, TimeValue } from '../../types/timepicker';
3
+ interface ClockFaceProps {
4
+ value: TimeValue;
5
+ onChange: (time: TimeValue) => void;
6
+ mode: ClockMode;
7
+ onModeChange?: (mode: ClockMode) => void;
8
+ is24Hour?: boolean;
9
+ }
10
+ export declare const ClockFace: React.FC<ClockFaceProps>;
11
+ export {};
12
+ //# sourceMappingURL=ClockFace.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClockFace.d.ts","sourceRoot":"","sources":["../../../../src/components/TimePicker/ClockFace.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EAAE,SAAS,EAAc,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAuC/E,UAAU,cAAc;IACtB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,IAAI,EAAE,SAAS,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAgL9C,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type React from 'react';
2
+ import type { TimeValue } from '../../types/timepicker';
3
+ interface MaterialTimePickerProps {
4
+ value: TimeValue;
5
+ onChange: (time: TimeValue) => void;
6
+ is24Hour?: boolean;
7
+ onCancel?: () => void;
8
+ onConfirm?: () => void;
9
+ }
10
+ export declare const MaterialTimePicker: React.FC<MaterialTimePickerProps>;
11
+ export {};
12
+ //# sourceMappingURL=MaterialTimePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MaterialTimePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/TimePicker/MaterialTimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAyB,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAI/E,UAAU,uBAAuB;IAC/B,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAsJhE,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TimePickerProps } from '../../types/timepicker';
3
+ export declare const TimePicker: React.FC<TimePickerProps>;
4
+ //# sourceMappingURL=TimePicker.android.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimePicker.android.d.ts","sourceRoot":"","sources":["../../../../src/components/TimePicker/TimePicker.android.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAa,MAAM,wBAAwB,CAAC;AA6CzE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAgChD,CAAC"}
@@ -0,0 +1,29 @@
1
+ import type React from 'react';
2
+ import type { TimePickerProps } from '../../types/timepicker';
3
+ export type { TimePickerProps, TimeValue } from '../../types/timepicker';
4
+ /**
5
+ * TimePicker Component
6
+ *
7
+ * A cross-platform time picker with support for iOS wheel style and Material clock face.
8
+ *
9
+ * Platform-specific implementations are handled by Metro's file resolution:
10
+ * - iOS: Uses @expo/ui DateTimePicker in time mode, falls back to TimeWheelPicker
11
+ * - Android: Uses @expo/ui DateTimePicker or MaterialTimePicker with ClockFace
12
+ * - Web: TimeWheelPicker for iOS theme, MaterialTimePicker for Android theme
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * import { TimePicker } from '@dreamstack-us/kaal';
17
+ *
18
+ * const [time, setTime] = useState({ hours: 9, minutes: 30 });
19
+ *
20
+ * <TimePicker
21
+ * value={time}
22
+ * onChange={setTime}
23
+ * theme="ios"
24
+ * is24Hour={false}
25
+ * />
26
+ * ```
27
+ */
28
+ export declare const TimePicker: React.FC<TimePickerProps>;
29
+ //# sourceMappingURL=TimePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimePicker.d.ts","sourceRoot":"","sources":["../../../../src/components/TimePicker/TimePicker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAG9D,YAAY,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAIhD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TimePickerProps } from '../../types/timepicker';
3
+ export declare const TimePicker: React.FC<TimePickerProps>;
4
+ //# sourceMappingURL=TimePicker.ios.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TimePicker.ios.d.ts","sourceRoot":"","sources":["../../../../src/components/TimePicker/TimePicker.ios.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAgC,MAAM,OAAO,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAa,MAAM,wBAAwB,CAAC;AA+CzE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAsChD,CAAC"}