@bigbinary/neeto-atoms 1.0.37 → 1.0.39

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 (59) hide show
  1. package/dist/DatePicker-CJfkNORC.js +634 -0
  2. package/dist/DatePicker-CJfkNORC.js.map +1 -0
  3. package/dist/{TimePicker-wPi2k6Z8.js → TimePicker-D4cwQB7b.js} +50 -32
  4. package/dist/TimePicker-D4cwQB7b.js.map +1 -0
  5. package/dist/TimePickerPanel-DN5mK2he.js +436 -0
  6. package/dist/TimePickerPanel-DN5mK2he.js.map +1 -0
  7. package/dist/cjs/DatePicker-DaVdS--q.js +636 -0
  8. package/dist/cjs/DatePicker-DaVdS--q.js.map +1 -0
  9. package/dist/cjs/{TimePicker-BG_vYH3r.js → TimePicker-DrHKSjhU.js} +49 -31
  10. package/dist/cjs/TimePicker-DrHKSjhU.js.map +1 -0
  11. package/dist/cjs/TimePickerPanel-Df904uM-.js +446 -0
  12. package/dist/cjs/TimePickerPanel-Df904uM-.js.map +1 -0
  13. package/dist/cjs/components/DatePicker.js +4 -3
  14. package/dist/cjs/components/DatePicker.js.map +1 -1
  15. package/dist/cjs/components/TimePicker.js +3 -2
  16. package/dist/cjs/components/TimePicker.js.map +1 -1
  17. package/dist/cjs/components/index.js +5 -4
  18. package/dist/cjs/components/index.js.map +1 -1
  19. package/dist/cjs/index.js +11 -247
  20. package/dist/cjs/index.js.map +1 -1
  21. package/dist/cjs/primitives/Calendar.js +8129 -10
  22. package/dist/cjs/primitives/Calendar.js.map +1 -1
  23. package/dist/cjs/primitives/index.js +1 -1
  24. package/dist/components/DatePicker/constants.d.ts +0 -1
  25. package/dist/components/DatePicker/types.d.ts +7 -5
  26. package/dist/components/DatePicker/utils.d.ts +18 -3
  27. package/dist/components/DatePicker.js +4 -3
  28. package/dist/components/DatePicker.js.map +1 -1
  29. package/dist/components/TimePicker/types.d.ts +3 -3
  30. package/dist/components/TimePicker/utils.d.ts +13 -1
  31. package/dist/components/TimePicker.js +3 -2
  32. package/dist/components/TimePicker.js.map +1 -1
  33. package/dist/components/index.js +5 -4
  34. package/dist/components/index.js.map +1 -1
  35. package/dist/index.d.ts +2 -1
  36. package/dist/index.js +9 -239
  37. package/dist/index.js.map +1 -1
  38. package/dist/primitives/Calendar.js +8112 -8
  39. package/dist/primitives/Calendar.js.map +1 -1
  40. package/dist/primitives/index.js +1 -1
  41. package/dist/utils/inputMask.d.ts +38 -0
  42. package/dist/utils/timezone.d.ts +7 -0
  43. package/package.json +2 -1
  44. package/dist/Calendar-CjOBwDbx.js +0 -8134
  45. package/dist/Calendar-CjOBwDbx.js.map +0 -1
  46. package/dist/DatePicker-CCN3b1oz.js +0 -3166
  47. package/dist/DatePicker-CCN3b1oz.js.map +0 -1
  48. package/dist/TimePicker-wPi2k6Z8.js.map +0 -1
  49. package/dist/TimePickerPanel-DAhz3B2d.js +0 -227
  50. package/dist/TimePickerPanel-DAhz3B2d.js.map +0 -1
  51. package/dist/cjs/Calendar-02KiUZTT.js +0 -8175
  52. package/dist/cjs/Calendar-02KiUZTT.js.map +0 -1
  53. package/dist/cjs/DatePicker-DRQubO2h.js +0 -3168
  54. package/dist/cjs/DatePicker-DRQubO2h.js.map +0 -1
  55. package/dist/cjs/TimePicker-BG_vYH3r.js.map +0 -1
  56. package/dist/cjs/TimePickerPanel-6xA-hjhm.js +0 -233
  57. package/dist/cjs/TimePickerPanel-6xA-hjhm.js.map +0 -1
  58. package/dist/utils/dayjs/index.d.ts +0 -4
  59. package/dist/utils/dayjs/timezonePlugin.d.ts +0 -3
@@ -7,7 +7,7 @@ export { Badge, badgeVariants } from './Badge.js';
7
7
  export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator } from './Breadcrumb.js';
8
8
  export { Button } from './Button.js';
9
9
  export { ButtonGroup, ButtonGroupSeparator, ButtonGroupText, buttonGroupVariants } from './ButtonGroup.js';
10
- export { C as Calendar, a as CalendarDayButton } from '../Calendar-CjOBwDbx.js';
10
+ export { Calendar, CalendarDayButton } from './Calendar.js';
11
11
  export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './Card.js';
12
12
  export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, useCarousel } from './Carousel.js';
13
13
  export { ChartContainer, ChartLegend, ChartLegendContent, ChartStyle, ChartTooltip, ChartTooltipContent } from './Chart.js';
@@ -0,0 +1,38 @@
1
+ export interface MaskTemplate {
2
+ pattern: string;
3
+ hasAmPm: boolean;
4
+ }
5
+ /**
6
+ * Convert a display format string into a mask template.
7
+ *
8
+ * Format chars (d, M, y, H, h, m, s) → digit slots (#).
9
+ * A (from AA) → ampm letter slots (@).
10
+ * Everything else → literal separators.
11
+ *
12
+ * Examples:
13
+ * "dd/MM/yyyy" → "##/##/####"
14
+ * "hh:mm AA" → "##:## @@"
15
+ */
16
+ export declare const buildMaskTemplate: (format: string) => MaskTemplate;
17
+ /**
18
+ * Build a range mask template: two single-date templates joined by " - ".
19
+ */
20
+ export declare const buildRangeMaskTemplate: (format: string) => MaskTemplate;
21
+ /**
22
+ * Check if a format string uses only fixed-width numeric tokens (dd, MM, yyyy, etc).
23
+ * Returns false for single-char tokens (d, M) and textual tokens (MMM, MMMM).
24
+ */
25
+ export declare const isFixedWidthFormat: (format: string) => boolean;
26
+ /**
27
+ * Apply the mask template to raw input text.
28
+ *
29
+ * - Auto-inserts separators as the user types.
30
+ * - When the mask is full, typing in the middle replaces the digit at cursor.
31
+ * - Backspacing in the middle replaces the digit with '_' placeholder
32
+ * instead of shifting subsequent digits.
33
+ * - AM/PM auto-completes: typing "A" or "P" expands to "AM" or "PM".
34
+ */
35
+ export declare const applyMask: (inputText: string, template: MaskTemplate, previousText?: string, nativeCursorPos?: number | null) => {
36
+ text: string;
37
+ cursorPosition: number;
38
+ };
@@ -0,0 +1,7 @@
1
+ import type { Dayjs } from "dayjs";
2
+ /**
3
+ * Apply the configured timezone to a date value.
4
+ * Strips the original timezone and reinterprets via neetocommons' dayjs wrapper.
5
+ * Handles both single dates and arrays (for date ranges).
6
+ */
7
+ export declare const getTimezoneAppliedDateTime: (inputDateTime: Dayjs | Dayjs[] | null) => Dayjs | (Dayjs | null)[] | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-atoms",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "author": "BigBinary",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -191,6 +191,7 @@
191
191
  "zod": "^4.3.6"
192
192
  },
193
193
  "peerDependencies": {
194
+ "@bigbinary/neeto-commons-frontend": ">=4.0.0",
194
195
  "dayjs": "^1.11.20",
195
196
  "formik": "^2.4.6",
196
197
  "i18next": "^26.0.4",