@btst/stack 1.5.1 → 1.5.2

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 (277) hide show
  1. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.cjs +14 -2
  2. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/DayPicker.mjs +14 -2
  3. package/dist/node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.0/node_modules/react-day-picker/dist/esm/noonDateLib.cjs +162 -0
  4. package/dist/node_modules/.pnpm/react-day-picker@9.13.0_react@19.2.0/node_modules/react-day-picker/dist/esm/noonDateLib.mjs +160 -0
  5. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.cjs +12 -8
  6. package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.mjs +12 -8
  7. package/dist/packages/better-stack/src/plugins/cms/api/plugin.cjs +33 -4
  8. package/dist/packages/better-stack/src/plugins/cms/api/plugin.mjs +33 -4
  9. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +26 -141
  10. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +24 -139
  11. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +2 -2
  12. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.mjs +2 -2
  13. package/dist/packages/better-stack/src/plugins/cms/db.cjs +4 -0
  14. package/dist/packages/better-stack/src/plugins/cms/db.mjs +4 -0
  15. package/dist/packages/better-stack/src/plugins/cms/schemas.cjs +0 -1
  16. package/dist/packages/better-stack/src/plugins/cms/schemas.mjs +0 -1
  17. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/label.cjs +2 -2
  18. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/label.mjs +2 -2
  19. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/config.cjs +0 -2
  20. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/config.mjs +0 -2
  21. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/array.cjs +15 -29
  22. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/array.mjs +16 -16
  23. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/checkbox.cjs +2 -2
  24. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/checkbox.mjs +2 -2
  25. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/date.cjs +29 -5
  26. package/dist/packages/ui/src/components/auto-form/fields/date.mjs +59 -0
  27. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/enum.cjs +2 -2
  28. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/enum.mjs +2 -2
  29. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/input.cjs +2 -2
  30. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/input.mjs +2 -2
  31. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/number.cjs +2 -2
  32. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/number.mjs +2 -2
  33. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/object.cjs +7 -4
  34. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/object.mjs +8 -5
  35. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/radio-group.cjs +2 -2
  36. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/radio-group.mjs +2 -2
  37. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/switch.cjs +2 -2
  38. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/switch.mjs +2 -2
  39. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/textarea.cjs +2 -2
  40. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/fields/textarea.mjs +2 -2
  41. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/index.cjs +3 -3
  42. package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/index.mjs +3 -3
  43. package/dist/packages/ui/src/components/auto-form/utils.cjs +306 -0
  44. package/dist/packages/ui/src/components/auto-form/utils.mjs +294 -0
  45. package/dist/packages/ui/src/components/calendar.cjs +2 -2
  46. package/dist/packages/ui/src/components/calendar.mjs +2 -2
  47. package/dist/plugins/cms/api/index.d.cts +2 -4
  48. package/dist/plugins/cms/api/index.d.mts +2 -4
  49. package/dist/plugins/cms/api/index.d.ts +2 -4
  50. package/dist/plugins/cms/client/hooks/index.d.cts +1 -4
  51. package/dist/plugins/cms/client/hooks/index.d.mts +1 -4
  52. package/dist/plugins/cms/client/hooks/index.d.ts +1 -4
  53. package/dist/plugins/cms/client/index.d.cts +113 -5
  54. package/dist/plugins/cms/client/index.d.mts +113 -5
  55. package/dist/plugins/cms/client/index.d.ts +113 -5
  56. package/dist/plugins/cms/query-keys.d.cts +1 -4
  57. package/dist/plugins/cms/query-keys.d.mts +1 -4
  58. package/dist/plugins/cms/query-keys.d.ts +1 -4
  59. package/dist/shared/{stack.DwnJA87a.d.ts → stack.L-UFwz2G.d.cts} +14 -14
  60. package/dist/shared/{stack.BwkyFwF8.d.cts → stack.L-UFwz2G.d.mts} +14 -14
  61. package/dist/shared/{stack.DBqxCs0V.d.mts → stack.L-UFwz2G.d.ts} +14 -14
  62. package/package.json +1 -1
  63. package/src/plugins/cms/__tests__/schema-roundtrip.test.ts +195 -0
  64. package/src/plugins/cms/api/plugin.ts +65 -4
  65. package/src/plugins/cms/client/components/forms/content-form.tsx +50 -234
  66. package/src/plugins/cms/client/components/forms/file-upload.tsx +3 -3
  67. package/src/plugins/cms/client/index.ts +1 -1
  68. package/src/plugins/cms/client/overrides.ts +1 -1
  69. package/src/plugins/cms/db.ts +4 -0
  70. package/src/plugins/cms/schemas.ts +1 -1
  71. package/src/plugins/cms/types.ts +14 -17
  72. package/dist/packages/ui/src/components/ui/auto-form/fields/date.mjs +0 -35
  73. package/dist/packages/ui/src/components/ui/auto-form/fields/file.cjs +0 -63
  74. package/dist/packages/ui/src/components/ui/auto-form/fields/file.mjs +0 -61
  75. package/dist/packages/ui/src/components/ui/auto-form/utils.cjs +0 -179
  76. package/dist/packages/ui/src/components/ui/auto-form/utils.mjs +0 -169
  77. package/dist/shared/stack.NZJogTUn.d.cts +0 -66
  78. package/dist/shared/stack.NZJogTUn.d.mts +0 -66
  79. package/dist/shared/stack.NZJogTUn.d.ts +0 -66
  80. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.cjs +0 -0
  81. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/UI.mjs +0 -0
  82. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.cjs +0 -0
  83. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarDay.mjs +0 -0
  84. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.cjs +0 -0
  85. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.mjs +0 -0
  86. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.cjs +0 -0
  87. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.mjs +0 -0
  88. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.cjs +0 -0
  89. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/classes/DateLib.mjs +0 -0
  90. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.cjs +0 -0
  91. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Button.mjs +0 -0
  92. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.cjs +0 -0
  93. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/CaptionLabel.mjs +0 -0
  94. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.cjs +0 -0
  95. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Chevron.mjs +0 -0
  96. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.cjs +0 -0
  97. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Day.mjs +0 -0
  98. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.cjs +0 -0
  99. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DayButton.mjs +0 -0
  100. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.cjs +0 -0
  101. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Dropdown.mjs +0 -0
  102. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.cjs +0 -0
  103. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/DropdownNav.mjs +0 -0
  104. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.cjs +0 -0
  105. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Footer.mjs +0 -0
  106. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.cjs +0 -0
  107. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Month.mjs +0 -0
  108. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.cjs +0 -0
  109. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthCaption.mjs +0 -0
  110. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.cjs +0 -0
  111. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthGrid.mjs +0 -0
  112. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.cjs +0 -0
  113. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Months.mjs +0 -0
  114. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.cjs +0 -0
  115. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.mjs +0 -0
  116. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.cjs +0 -0
  117. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Nav.mjs +0 -0
  118. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.cjs +0 -0
  119. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/NextMonthButton.mjs +0 -0
  120. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.cjs +0 -0
  121. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Option.mjs +0 -0
  122. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.cjs +0 -0
  123. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.mjs +0 -0
  124. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.cjs +0 -0
  125. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Root.mjs +0 -0
  126. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.cjs +0 -0
  127. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Select.mjs +0 -0
  128. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.cjs +0 -0
  129. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Week.mjs +0 -0
  130. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.cjs +0 -0
  131. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumber.mjs +0 -0
  132. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.cjs +0 -0
  133. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.mjs +0 -0
  134. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.cjs +0 -0
  135. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekday.mjs +0 -0
  136. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.cjs +0 -0
  137. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weekdays.mjs +0 -0
  138. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.cjs +0 -0
  139. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/Weeks.mjs +0 -0
  140. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.cjs +0 -0
  141. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/YearsDropdown.mjs +0 -0
  142. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.cjs +0 -0
  143. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/components/custom-components.mjs +0 -0
  144. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.cjs +0 -0
  145. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatCaption.mjs +0 -0
  146. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.cjs +0 -0
  147. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatDay.mjs +0 -0
  148. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.cjs +0 -0
  149. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.mjs +0 -0
  150. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.cjs +0 -0
  151. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.mjs +0 -0
  152. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.cjs +0 -0
  153. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.mjs +0 -0
  154. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.cjs +0 -0
  155. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.mjs +0 -0
  156. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.cjs +0 -0
  157. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.mjs +0 -0
  158. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.cjs +0 -0
  159. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/formatters/index.mjs +0 -0
  160. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.cjs +0 -0
  161. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.mjs +0 -0
  162. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.cjs +0 -0
  163. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.mjs +0 -0
  164. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.cjs +0 -0
  165. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.mjs +0 -0
  166. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.cjs +0 -0
  167. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.mjs +0 -0
  168. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.cjs +0 -0
  169. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.mjs +0 -0
  170. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.cjs +0 -0
  171. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getComponents.mjs +0 -0
  172. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.cjs +0 -0
  173. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.mjs +0 -0
  174. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.cjs +0 -0
  175. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDates.mjs +0 -0
  176. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.cjs +0 -0
  177. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDays.mjs +0 -0
  178. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.cjs +0 -0
  179. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.mjs +0 -0
  180. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.cjs +0 -0
  181. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.mjs +0 -0
  182. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.cjs +0 -0
  183. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.mjs +0 -0
  184. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.cjs +0 -0
  185. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getFormatters.mjs +0 -0
  186. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.cjs +0 -0
  187. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.mjs +0 -0
  188. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.cjs +0 -0
  189. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getLabels.mjs +0 -0
  190. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.cjs +0 -0
  191. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.mjs +0 -0
  192. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.cjs +0 -0
  193. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getMonths.mjs +0 -0
  194. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.cjs +0 -0
  195. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.mjs +0 -0
  196. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.cjs +0 -0
  197. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.mjs +0 -0
  198. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.cjs +0 -0
  199. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.mjs +0 -0
  200. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.cjs +0 -0
  201. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.mjs +0 -0
  202. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.cjs +0 -0
  203. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.mjs +0 -0
  204. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.cjs +0 -0
  205. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.mjs +0 -0
  206. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.cjs +0 -0
  207. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getWeeks.mjs +0 -0
  208. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.cjs +0 -0
  209. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.mjs +0 -0
  210. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.cjs +0 -0
  211. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.mjs +0 -0
  212. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.cjs +0 -0
  213. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.mjs +0 -0
  214. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.cjs +0 -0
  215. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/index.mjs +0 -0
  216. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.cjs +0 -0
  217. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelDayButton.mjs +0 -0
  218. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.cjs +0 -0
  219. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGrid.mjs +0 -0
  220. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.cjs +0 -0
  221. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelGridcell.mjs +0 -0
  222. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.cjs +0 -0
  223. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.mjs +0 -0
  224. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.cjs +0 -0
  225. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNav.mjs +0 -0
  226. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.cjs +0 -0
  227. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelNext.mjs +0 -0
  228. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.cjs +0 -0
  229. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelPrevious.mjs +0 -0
  230. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.cjs +0 -0
  231. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.mjs +0 -0
  232. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.cjs +0 -0
  233. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.mjs +0 -0
  234. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.cjs +0 -0
  235. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelWeekday.mjs +0 -0
  236. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.cjs +0 -0
  237. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.mjs +0 -0
  238. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.cjs +0 -0
  239. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/locale/en-US.mjs +0 -0
  240. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.cjs +0 -0
  241. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useMulti.mjs +0 -0
  242. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.cjs +0 -0
  243. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useRange.mjs +0 -0
  244. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.cjs +0 -0
  245. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/selection/useSingle.mjs +0 -0
  246. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.cjs +0 -0
  247. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useAnimation.mjs +0 -0
  248. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.cjs +0 -0
  249. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useCalendar.mjs +0 -0
  250. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.cjs +0 -0
  251. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useDayPicker.mjs +0 -0
  252. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.cjs +0 -0
  253. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useFocus.mjs +0 -0
  254. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.cjs +0 -0
  255. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/useSelection.mjs +0 -0
  256. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.cjs +0 -0
  257. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/addToRange.mjs +0 -0
  258. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.cjs +0 -0
  259. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.mjs +0 -0
  260. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.cjs +0 -0
  261. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.mjs +0 -0
  262. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.cjs +0 -0
  263. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.mjs +0 -0
  264. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.cjs +0 -0
  265. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.mjs +0 -0
  266. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.cjs +0 -0
  267. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.mjs +0 -0
  268. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.cjs +0 -0
  269. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/toTimeZone.mjs +0 -0
  270. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.cjs +0 -0
  271. /package/dist/node_modules/.pnpm/{react-day-picker@9.12.0_react@19.2.0 → react-day-picker@9.13.0_react@19.2.0}/node_modules/react-day-picker/dist/esm/utils/typeguards.mjs +0 -0
  272. /package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/tooltip.cjs +0 -0
  273. /package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/common/tooltip.mjs +0 -0
  274. /package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/dependencies.cjs +0 -0
  275. /package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/dependencies.mjs +0 -0
  276. /package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/types.cjs +0 -0
  277. /package/dist/packages/ui/src/components/{ui/auto-form → auto-form}/types.mjs +0 -0
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { Checkbox } from '../../../checkbox.mjs';
3
- import { FormItem, FormControl } from '../../../form.mjs';
2
+ import { Checkbox } from '../../checkbox.mjs';
3
+ import { FormItem, FormControl } from '../../form.mjs';
4
4
  import AutoFormTooltip from '../common/tooltip.mjs';
5
5
  import AutoFormLabel from '../common/label.mjs';
6
6
 
@@ -1,18 +1,42 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const datePicker = require('../../../date-picker.cjs');
5
- const form = require('../../../form.cjs');
4
+ const datePicker = require('../../date-picker.cjs');
5
+ const form = require('../../form.cjs');
6
6
  const label = require('../common/label.cjs');
7
7
  const tooltip = require('../common/tooltip.cjs');
8
+ const utils = require('../utils.cjs');
8
9
 
10
+ function toDate(value) {
11
+ if (!value) return void 0;
12
+ if (value instanceof Date) return value;
13
+ if (typeof value === "string") {
14
+ const date = new Date(value);
15
+ return isNaN(date.getTime()) ? void 0 : date;
16
+ }
17
+ return void 0;
18
+ }
9
19
  function AutoFormDate({
10
20
  label: label$1,
11
21
  isRequired,
12
22
  field,
13
23
  fieldConfigItem,
14
- fieldProps
24
+ fieldProps,
25
+ zodItem
15
26
  }) {
27
+ const baseType = utils.getBaseType(zodItem);
28
+ const expectsDateObject = baseType === "ZodDate";
29
+ const handleChange = (date) => {
30
+ if (!date) {
31
+ field.onChange(void 0);
32
+ return;
33
+ }
34
+ if (expectsDateObject) {
35
+ field.onChange(date);
36
+ } else {
37
+ field.onChange(date.toISOString());
38
+ }
39
+ };
16
40
  return /* @__PURE__ */ jsxRuntime.jsxs(form.FormItem, { children: [
17
41
  /* @__PURE__ */ jsxRuntime.jsx(
18
42
  label,
@@ -24,8 +48,8 @@ function AutoFormDate({
24
48
  /* @__PURE__ */ jsxRuntime.jsx(form.FormControl, { children: /* @__PURE__ */ jsxRuntime.jsx(
25
49
  datePicker.DatePicker,
26
50
  {
27
- date: field.value,
28
- setDate: field.onChange,
51
+ date: toDate(field.value),
52
+ setDate: handleChange,
29
53
  ...fieldProps
30
54
  }
31
55
  ) }),
@@ -0,0 +1,59 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import { DatePicker } from '../../date-picker.mjs';
3
+ import { FormItem, FormControl, FormMessage } from '../../form.mjs';
4
+ import AutoFormLabel from '../common/label.mjs';
5
+ import AutoFormTooltip from '../common/tooltip.mjs';
6
+ import { getBaseType } from '../utils.mjs';
7
+
8
+ function toDate(value) {
9
+ if (!value) return void 0;
10
+ if (value instanceof Date) return value;
11
+ if (typeof value === "string") {
12
+ const date = new Date(value);
13
+ return isNaN(date.getTime()) ? void 0 : date;
14
+ }
15
+ return void 0;
16
+ }
17
+ function AutoFormDate({
18
+ label,
19
+ isRequired,
20
+ field,
21
+ fieldConfigItem,
22
+ fieldProps,
23
+ zodItem
24
+ }) {
25
+ const baseType = getBaseType(zodItem);
26
+ const expectsDateObject = baseType === "ZodDate";
27
+ const handleChange = (date) => {
28
+ if (!date) {
29
+ field.onChange(void 0);
30
+ return;
31
+ }
32
+ if (expectsDateObject) {
33
+ field.onChange(date);
34
+ } else {
35
+ field.onChange(date.toISOString());
36
+ }
37
+ };
38
+ return /* @__PURE__ */ jsxs(FormItem, { children: [
39
+ /* @__PURE__ */ jsx(
40
+ AutoFormLabel,
41
+ {
42
+ label: fieldConfigItem?.label || label,
43
+ isRequired
44
+ }
45
+ ),
46
+ /* @__PURE__ */ jsx(FormControl, { children: /* @__PURE__ */ jsx(
47
+ DatePicker,
48
+ {
49
+ date: toDate(field.value),
50
+ setDate: handleChange,
51
+ ...fieldProps
52
+ }
53
+ ) }),
54
+ /* @__PURE__ */ jsx(AutoFormTooltip, { fieldConfigItem }),
55
+ /* @__PURE__ */ jsx(FormMessage, {})
56
+ ] });
57
+ }
58
+
59
+ export { AutoFormDate as default };
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const form = require('../../../form.cjs');
5
- const select = require('../../../select.cjs');
4
+ const form = require('../../form.cjs');
5
+ const select = require('../../select.cjs');
6
6
  const label = require('../common/label.cjs');
7
7
  const tooltip = require('../common/tooltip.cjs');
8
8
  const utils = require('../utils.cjs');
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { FormItem, FormControl, FormMessage } from '../../../form.mjs';
3
- import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../../../select.mjs';
2
+ import { FormItem, FormControl, FormMessage } from '../../form.mjs';
3
+ import { Select, SelectTrigger, SelectValue, SelectContent, SelectItem } from '../../select.mjs';
4
4
  import AutoFormLabel from '../common/label.mjs';
5
5
  import AutoFormTooltip from '../common/tooltip.mjs';
6
6
  import { getBaseSchema } from '../utils.mjs';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const form = require('../../../form.cjs');
5
- const input = require('../../../input.cjs');
4
+ const form = require('../../form.cjs');
5
+ const input = require('../../input.cjs');
6
6
  const label = require('../common/label.cjs');
7
7
  const tooltip = require('../common/tooltip.cjs');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
- import { FormItem, FormControl, FormMessage } from '../../../form.mjs';
3
- import { Input } from '../../../input.mjs';
2
+ import { FormItem, FormControl, FormMessage } from '../../form.mjs';
3
+ import { Input } from '../../input.mjs';
4
4
  import AutoFormLabel from '../common/label.mjs';
5
5
  import AutoFormTooltip from '../common/tooltip.mjs';
6
6
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const form = require('../../../form.cjs');
5
- const input = require('../../../input.cjs');
4
+ const form = require('../../form.cjs');
5
+ const input = require('../../input.cjs');
6
6
  const label = require('../common/label.cjs');
7
7
  const tooltip = require('../common/tooltip.cjs');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { FormItem, FormControl, FormMessage } from '../../../form.mjs';
3
- import { Input } from '../../../input.mjs';
2
+ import { FormItem, FormControl, FormMessage } from '../../form.mjs';
3
+ import { Input } from '../../input.mjs';
4
4
  import AutoFormLabel from '../common/label.mjs';
5
5
  import AutoFormTooltip from '../common/tooltip.mjs';
6
6
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const accordion = require('../../../accordion.cjs');
5
- const form = require('../../../form.cjs');
4
+ const accordion = require('../../accordion.cjs');
5
+ const form = require('../../form.cjs');
6
6
  const reactHookForm = require('react-hook-form');
7
7
  const z = require('zod');
8
8
  const config = require('../config.cjs');
@@ -60,7 +60,7 @@ function AutoFormObject({
60
60
  let item = shape[name];
61
61
  item = handleIfZodNumber(item);
62
62
  const zodBaseType = utils.getBaseType(item);
63
- const itemName = utils.getSchemaDescription(item) ?? utils.beautifyObjectName(name);
63
+ const itemName = utils.beautifyObjectName(name);
64
64
  const key = [...path, name].join(".");
65
65
  const {
66
66
  isHidden,
@@ -100,7 +100,10 @@ function AutoFormObject({
100
100
  }
101
101
  const fieldConfigItem = fieldConfig?.[name] ?? {};
102
102
  const zodInputProps = utils.zodToHtmlInputProps(item);
103
- const isRequired = isRequiredByDependency || zodInputProps.required || fieldConfigItem.inputProps?.required || false;
103
+ let isRequired = isRequiredByDependency || zodInputProps.required || false;
104
+ if (fieldConfigItem.inputProps?.required !== void 0) {
105
+ isRequired = fieldConfigItem.inputProps.required;
106
+ }
104
107
  if (overrideOptions) {
105
108
  item = z__namespace.enum(overrideOptions);
106
109
  }
@@ -1,10 +1,10 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '../../../accordion.mjs';
3
- import { FormField } from '../../../form.mjs';
2
+ import { Accordion, AccordionItem, AccordionTrigger, AccordionContent } from '../../accordion.mjs';
3
+ import { FormField } from '../../form.mjs';
4
4
  import { useFormContext } from 'react-hook-form';
5
5
  import * as z from 'zod';
6
6
  import { DEFAULT_ZOD_HANDLERS, INPUT_COMPONENTS } from '../config.mjs';
7
- import { getBaseSchema, sortFieldsByOrder, getBaseType, getSchemaDescription, beautifyObjectName, zodToHtmlInputProps } from '../utils.mjs';
7
+ import { getBaseSchema, sortFieldsByOrder, getBaseType, beautifyObjectName, zodToHtmlInputProps } from '../utils.mjs';
8
8
  import AutoFormArray from './array.mjs';
9
9
  import resolveDependencies from '../dependencies.mjs';
10
10
 
@@ -44,7 +44,7 @@ function AutoFormObject({
44
44
  let item = shape[name];
45
45
  item = handleIfZodNumber(item);
46
46
  const zodBaseType = getBaseType(item);
47
- const itemName = getSchemaDescription(item) ?? beautifyObjectName(name);
47
+ const itemName = beautifyObjectName(name);
48
48
  const key = [...path, name].join(".");
49
49
  const {
50
50
  isHidden,
@@ -84,7 +84,10 @@ function AutoFormObject({
84
84
  }
85
85
  const fieldConfigItem = fieldConfig?.[name] ?? {};
86
86
  const zodInputProps = zodToHtmlInputProps(item);
87
- const isRequired = isRequiredByDependency || zodInputProps.required || fieldConfigItem.inputProps?.required || false;
87
+ let isRequired = isRequiredByDependency || zodInputProps.required || false;
88
+ if (fieldConfigItem.inputProps?.required !== void 0) {
89
+ isRequired = fieldConfigItem.inputProps.required;
90
+ }
88
91
  if (overrideOptions) {
89
92
  item = z.enum(overrideOptions);
90
93
  }
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const form = require('../../../form.cjs');
5
- const radioGroup = require('../../../radio-group.cjs');
4
+ const form = require('../../form.cjs');
5
+ const radioGroup = require('../../radio-group.cjs');
6
6
  const label = require('../common/label.cjs');
7
7
  const tooltip = require('../common/tooltip.cjs');
8
8
  const utils = require('../utils.cjs');
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { FormItem, FormControl, FormLabel, FormMessage } from '../../../form.mjs';
3
- import { RadioGroup, RadioGroupItem } from '../../../radio-group.mjs';
2
+ import { FormItem, FormControl, FormLabel, FormMessage } from '../../form.mjs';
3
+ import { RadioGroup, RadioGroupItem } from '../../radio-group.mjs';
4
4
  import AutoFormLabel from '../common/label.mjs';
5
5
  import AutoFormTooltip from '../common/tooltip.mjs';
6
6
  import { getBaseSchema } from '../utils.mjs';
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const form = require('../../../form.cjs');
5
- const _switch = require('../../../switch.cjs');
4
+ const form = require('../../form.cjs');
5
+ const _switch = require('../../switch.cjs');
6
6
  const label = require('../common/label.cjs');
7
7
  const tooltip = require('../common/tooltip.cjs');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { FormItem, FormControl } from '../../../form.mjs';
3
- import { Switch } from '../../../switch.mjs';
2
+ import { FormItem, FormControl } from '../../form.mjs';
3
+ import { Switch } from '../../switch.mjs';
4
4
  import AutoFormLabel from '../common/label.mjs';
5
5
  import AutoFormTooltip from '../common/tooltip.mjs';
6
6
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const jsxRuntime = require('react/jsx-runtime');
4
- const form = require('../../../form.cjs');
5
- const textarea = require('../../../textarea.cjs');
4
+ const form = require('../../form.cjs');
5
+ const textarea = require('../../textarea.cjs');
6
6
  const label = require('../common/label.cjs');
7
7
  const tooltip = require('../common/tooltip.cjs');
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import { FormItem, FormControl, FormMessage } from '../../../form.mjs';
3
- import { Textarea } from '../../../textarea.mjs';
2
+ import { FormItem, FormControl, FormMessage } from '../../form.mjs';
3
+ import { Textarea } from '../../textarea.mjs';
4
4
  import AutoFormLabel from '../common/label.mjs';
5
5
  import AutoFormTooltip from '../common/tooltip.mjs';
6
6
 
@@ -4,11 +4,11 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  const jsxRuntime = require('react/jsx-runtime');
7
- const form = require('../../form.cjs');
7
+ const form = require('../form.cjs');
8
8
  const React = require('react');
9
9
  const reactHookForm = require('react-hook-form');
10
- const button = require('../../button.cjs');
11
- const utils$1 = require('../../../lib/utils.cjs');
10
+ const button = require('../button.cjs');
11
+ const utils$1 = require('../../lib/utils.cjs');
12
12
  const zod = require('@hookform/resolvers/zod');
13
13
  const object = require('./fields/object.cjs');
14
14
  const utils = require('./utils.cjs');
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { jsx, jsxs } from 'react/jsx-runtime';
3
- import { Form } from '../../form.mjs';
3
+ import { Form } from '../form.mjs';
4
4
  import React__default from 'react';
5
5
  import { useForm } from 'react-hook-form';
6
- import { Button } from '../../button.mjs';
7
- import { cn } from '../../../lib/utils.mjs';
6
+ import { Button } from '../button.mjs';
7
+ import { cn } from '../../lib/utils.mjs';
8
8
  import { zodResolver } from '@hookform/resolvers/zod';
9
9
  import AutoFormObject from './fields/object.mjs';
10
10
  import { getObjectFormSchema, getDefaultValues } from './utils.mjs';
@@ -0,0 +1,306 @@
1
+ 'use strict';
2
+
3
+ const jsxRuntime = require('react/jsx-runtime');
4
+ const z = require('zod');
5
+
6
+ const BUILTIN_FIELD_TYPES = [
7
+ "checkbox",
8
+ "date",
9
+ "select",
10
+ "radio",
11
+ "switch",
12
+ "textarea",
13
+ "number",
14
+ "fallback"
15
+ ];
16
+ function getDefTypeName(schema) {
17
+ const def = schema._zod?.def;
18
+ return def?.type || "";
19
+ }
20
+ function beautifyObjectName(string) {
21
+ let output = string.replace(/([A-Z])/g, " $1");
22
+ output = output.charAt(0).toUpperCase() + output.slice(1);
23
+ return output;
24
+ }
25
+ function getBaseSchema(schema) {
26
+ if (!schema) return null;
27
+ const def = schema._zod?.def;
28
+ if (!def) return schema;
29
+ if (def.innerType) {
30
+ return getBaseSchema(def.innerType);
31
+ }
32
+ if (def.out) {
33
+ return getBaseSchema(def.out);
34
+ }
35
+ if (def.schema) {
36
+ return getBaseSchema(def.schema);
37
+ }
38
+ return schema;
39
+ }
40
+ function getBaseType(schema) {
41
+ const baseSchema = getBaseSchema(schema);
42
+ if (!baseSchema) return "";
43
+ const typeName = getDefTypeName(baseSchema);
44
+ const typeMap = {
45
+ object: "ZodObject",
46
+ array: "ZodArray",
47
+ string: "ZodString",
48
+ number: "ZodNumber",
49
+ int: "ZodNumber",
50
+ float: "ZodNumber",
51
+ boolean: "ZodBoolean",
52
+ date: "ZodDate",
53
+ enum: "ZodEnum",
54
+ nativeEnum: "ZodNativeEnum",
55
+ literal: "ZodLiteral",
56
+ union: "ZodUnion"
57
+ };
58
+ return typeMap[typeName] || typeName;
59
+ }
60
+ function getDefaultValueInZodStack(schema) {
61
+ const def = schema._zod?.def;
62
+ if (!def) return void 0;
63
+ if (def.type === "default") {
64
+ const defaultValue = def.defaultValue;
65
+ if (typeof defaultValue === "function") {
66
+ return defaultValue();
67
+ }
68
+ return defaultValue;
69
+ }
70
+ if (def.innerType) {
71
+ return getDefaultValueInZodStack(def.innerType);
72
+ }
73
+ if (def.schema) {
74
+ return getDefaultValueInZodStack(def.schema);
75
+ }
76
+ return void 0;
77
+ }
78
+ function getDefaultValues(schema, fieldConfig) {
79
+ if (!schema) return null;
80
+ const { shape } = schema;
81
+ const defaultValues = {};
82
+ if (!shape) return defaultValues;
83
+ for (const key of Object.keys(shape)) {
84
+ const item = shape[key];
85
+ if (getBaseType(item) === "ZodObject") {
86
+ const defaultItems = getDefaultValues(
87
+ getBaseSchema(item),
88
+ fieldConfig?.[key]
89
+ );
90
+ if (defaultItems !== null) {
91
+ for (const defaultItemKey of Object.keys(defaultItems)) {
92
+ const pathKey = `${key}.${defaultItemKey}`;
93
+ defaultValues[pathKey] = defaultItems[defaultItemKey];
94
+ }
95
+ }
96
+ } else {
97
+ let defaultValue = getDefaultValueInZodStack(item);
98
+ if ((defaultValue === void 0 || defaultValue === null || defaultValue === "") && fieldConfig?.[key]?.inputProps) {
99
+ defaultValue = (fieldConfig?.[key]?.inputProps).defaultValue;
100
+ }
101
+ if (defaultValue !== void 0) {
102
+ defaultValues[key] = defaultValue;
103
+ }
104
+ }
105
+ }
106
+ return defaultValues;
107
+ }
108
+ function getObjectFormSchema(schema) {
109
+ if (!schema) return schema;
110
+ const def = schema._zod?.def;
111
+ if (!def) return schema;
112
+ if (def.type === "pipe") {
113
+ return getObjectFormSchema(def.in);
114
+ }
115
+ if (def.innerType) {
116
+ return getObjectFormSchema(def.innerType);
117
+ }
118
+ if (def.schema) {
119
+ return getObjectFormSchema(def.schema);
120
+ }
121
+ return schema;
122
+ }
123
+ function zodToHtmlInputProps(schema) {
124
+ const def = schema._zod?.def;
125
+ const defType = def?.type || "";
126
+ if (["optional", "nullable"].includes(defType)) {
127
+ return {
128
+ ...zodToHtmlInputProps(def.innerType),
129
+ required: false
130
+ };
131
+ }
132
+ if (defType === "default") {
133
+ return {
134
+ ...zodToHtmlInputProps(def.innerType),
135
+ required: false
136
+ };
137
+ }
138
+ const inputProps = {
139
+ required: true
140
+ };
141
+ const checks = def?.checks;
142
+ if (!checks || !Array.isArray(checks)) {
143
+ return inputProps;
144
+ }
145
+ const type = getBaseType(schema);
146
+ for (const check of checks) {
147
+ const checkKind = check.kind || check.type;
148
+ if (checkKind === "min" || checkKind === "min_length") {
149
+ if (type === "ZodString") {
150
+ inputProps.minLength = check.value ?? check.minimum;
151
+ } else {
152
+ inputProps.min = check.value ?? check.minimum;
153
+ }
154
+ }
155
+ if (checkKind === "max" || checkKind === "max_length") {
156
+ if (type === "ZodString") {
157
+ inputProps.maxLength = check.value ?? check.maximum;
158
+ } else {
159
+ inputProps.max = check.value ?? check.maximum;
160
+ }
161
+ }
162
+ }
163
+ return inputProps;
164
+ }
165
+ function sortFieldsByOrder(fieldConfig, keys) {
166
+ const sortedFields = keys.sort((a, b) => {
167
+ const fieldA = fieldConfig?.[a]?.order ?? 0;
168
+ const fieldB = fieldConfig?.[b]?.order ?? 0;
169
+ return fieldA - fieldB;
170
+ });
171
+ return sortedFields;
172
+ }
173
+ function fromJSONSchemaWithDates(jsonSchema) {
174
+ const baseSchema = z.z.fromJSONSchema(jsonSchema);
175
+ const properties = jsonSchema.properties;
176
+ if (!properties) return baseSchema;
177
+ const dateFieldsWithConstraints = {};
178
+ for (const [key, prop] of Object.entries(properties)) {
179
+ if (prop.type === "string" && prop.format === "date-time") {
180
+ if (prop.formatMinimum || prop.formatMaximum) {
181
+ dateFieldsWithConstraints[key] = {
182
+ min: prop.formatMinimum,
183
+ max: prop.formatMaximum
184
+ };
185
+ }
186
+ }
187
+ }
188
+ if (Object.keys(dateFieldsWithConstraints).length === 0) {
189
+ return baseSchema;
190
+ }
191
+ return baseSchema.superRefine((data, ctx) => {
192
+ for (const [key, constraints] of Object.entries(dateFieldsWithConstraints)) {
193
+ const value = data[key];
194
+ if (value === void 0 || value === null || value === "") continue;
195
+ const dateValue = new Date(value);
196
+ if (isNaN(dateValue.getTime())) {
197
+ ctx.addIssue({
198
+ code: z.z.ZodIssueCode.custom,
199
+ message: "Invalid date",
200
+ path: [key]
201
+ });
202
+ continue;
203
+ }
204
+ if (constraints.min) {
205
+ const minDate = new Date(constraints.min);
206
+ if (dateValue < minDate) {
207
+ ctx.addIssue({
208
+ code: z.z.ZodIssueCode.custom,
209
+ message: `Date must be after ${minDate.toLocaleDateString()}`,
210
+ path: [key]
211
+ });
212
+ }
213
+ }
214
+ if (constraints.max) {
215
+ const maxDate = new Date(constraints.max);
216
+ if (dateValue > maxDate) {
217
+ ctx.addIssue({
218
+ code: z.z.ZodIssueCode.custom,
219
+ message: `Date must be before ${maxDate.toLocaleDateString()}`,
220
+ path: [key]
221
+ });
222
+ }
223
+ }
224
+ }
225
+ });
226
+ }
227
+ function buildFieldConfigFromJsonSchema(jsonSchema, fieldComponents) {
228
+ const fieldConfig = {};
229
+ const properties = jsonSchema.properties;
230
+ if (!properties) return fieldConfig;
231
+ for (const [key, value] of Object.entries(properties)) {
232
+ const config = {};
233
+ if (value.label) {
234
+ config.label = value.label;
235
+ } else if (value.title) {
236
+ config.label = value.title;
237
+ }
238
+ if (value.description) {
239
+ config.description = value.description;
240
+ }
241
+ const inputProps = value.inputProps ? { ...value.inputProps } : {};
242
+ if (value.placeholder) {
243
+ inputProps.placeholder = value.placeholder;
244
+ }
245
+ if (value.default !== void 0) {
246
+ inputProps.defaultValue = value.default;
247
+ inputProps.required = false;
248
+ }
249
+ if (Object.keys(inputProps).length > 0) {
250
+ config.inputProps = inputProps;
251
+ }
252
+ if (value.order !== void 0) {
253
+ config.order = value.order;
254
+ }
255
+ let fieldType = value.fieldType;
256
+ if (!fieldType && value.type === "string" && value.format === "date-time") {
257
+ fieldType = "date";
258
+ }
259
+ if (fieldType) {
260
+ const CustomComponent = fieldComponents?.[fieldType];
261
+ if (CustomComponent) {
262
+ config.fieldType = (props) => /* @__PURE__ */ jsxRuntime.jsx(CustomComponent, { ...props });
263
+ } else if (BUILTIN_FIELD_TYPES.includes(
264
+ fieldType
265
+ )) {
266
+ config.fieldType = fieldType;
267
+ } else {
268
+ console.warn(
269
+ `CMS: Unknown fieldType "${fieldType}" for field "${key}". Provide a component via fieldComponents override or use a built-in type.`
270
+ );
271
+ }
272
+ }
273
+ if (value.properties) {
274
+ const nestedConfig = buildFieldConfigFromJsonSchema(
275
+ { properties: value.properties },
276
+ fieldComponents
277
+ );
278
+ const reservedProps = /* @__PURE__ */ new Set(["description", "label", "inputProps", "fieldType", "renderParent", "order"]);
279
+ for (const [nestedKey, nestedValue] of Object.entries(nestedConfig)) {
280
+ if (!reservedProps.has(nestedKey)) {
281
+ config[nestedKey] = nestedValue;
282
+ } else {
283
+ console.warn(
284
+ `Field "${key}" has a nested field named "${nestedKey}" which conflicts with a reserved FieldConfigItem property. The nested field's config will not be accessible at the parent level.`
285
+ );
286
+ }
287
+ }
288
+ }
289
+ if (Object.keys(config).length > 0) {
290
+ fieldConfig[key] = config;
291
+ }
292
+ }
293
+ return fieldConfig;
294
+ }
295
+
296
+ exports.BUILTIN_FIELD_TYPES = BUILTIN_FIELD_TYPES;
297
+ exports.beautifyObjectName = beautifyObjectName;
298
+ exports.buildFieldConfigFromJsonSchema = buildFieldConfigFromJsonSchema;
299
+ exports.fromJSONSchemaWithDates = fromJSONSchemaWithDates;
300
+ exports.getBaseSchema = getBaseSchema;
301
+ exports.getBaseType = getBaseType;
302
+ exports.getDefaultValueInZodStack = getDefaultValueInZodStack;
303
+ exports.getDefaultValues = getDefaultValues;
304
+ exports.getObjectFormSchema = getObjectFormSchema;
305
+ exports.sortFieldsByOrder = sortFieldsByOrder;
306
+ exports.zodToHtmlInputProps = zodToHtmlInputProps;