@btst/stack 1.4.1 → 1.5.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 (465) hide show
  1. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.cjs +85 -0
  2. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.mjs +83 -0
  3. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.cjs +237 -0
  4. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.mjs +235 -0
  5. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.cjs +41 -0
  6. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.mjs +39 -0
  7. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.cjs +46 -0
  8. package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.mjs +44 -0
  9. package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.3.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_c1e3fbdebd5ee34a254141dc5a2dcd28/node_modules/@radix-ui/react-checkbox/dist/index.cjs +296 -0
  10. package/dist/node_modules/.pnpm/@radix-ui_react-checkbox@1.3.3_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_c1e3fbdebd5ee34a254141dc5a2dcd28/node_modules/@radix-ui/react-checkbox/dist/index.mjs +271 -0
  11. package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_5c5a3ca63b34dfe7d9d23f1e8cee675c/node_modules/@radix-ui/react-popover/dist/index.cjs +325 -0
  12. package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.15_@types_react-dom@19.2.3_@types_react@19.2.6__@types_reac_5c5a3ca63b34dfe7d9d23f1e8cee675c/node_modules/@radix-ui/react-popover/dist/index.mjs +299 -0
  13. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_43b950ce9f6b8d55739cce33fe173a1c/node_modules/@radix-ui/react-primitive/dist/index.cjs +56 -0
  14. package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.4_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_43b950ce9f6b8d55739cce33fe173a1c/node_modules/@radix-ui/react-primitive/dist/index.mjs +40 -0
  15. package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_e0d4db654009398ea41c8e459eeae4ee/node_modules/@radix-ui/react-radio-group/dist/index.cjs +304 -0
  16. package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_r_e0d4db654009398ea41c8e459eeae4ee/node_modules/@radix-ui/react-radio-group/dist/index.mjs +283 -0
  17. package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_8aae318b88145540882c32de0262377a/node_modules/@radix-ui/react-separator/dist/index.cjs +47 -0
  18. package/dist/node_modules/.pnpm/@radix-ui_react-separator@1.1.8_@types_react-dom@19.2.3_@types_react@19.2.6__@types_rea_8aae318b88145540882c32de0262377a/node_modules/@radix-ui/react-separator/dist/index.mjs +30 -0
  19. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.cjs +326 -0
  20. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/DayPicker.mjs +320 -0
  21. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/UI.cjs +122 -0
  22. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/UI.mjs +122 -0
  23. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.cjs +35 -0
  24. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.mjs +33 -0
  25. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.cjs +16 -0
  26. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.mjs +14 -0
  27. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.cjs +15 -0
  28. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.mjs +13 -0
  29. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/DateLib.cjs +577 -0
  30. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/classes/DateLib.mjs +573 -0
  31. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Button.cjs +19 -0
  32. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Button.mjs +13 -0
  33. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.cjs +19 -0
  34. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/CaptionLabel.mjs +13 -0
  35. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Chevron.cjs +26 -0
  36. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Chevron.mjs +20 -0
  37. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Day.cjs +24 -0
  38. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Day.mjs +18 -0
  39. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DayButton.cjs +25 -0
  40. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DayButton.mjs +19 -0
  41. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.cjs +27 -0
  42. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Dropdown.mjs +21 -0
  43. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.cjs +19 -0
  44. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/DropdownNav.mjs +13 -0
  45. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Footer.cjs +19 -0
  46. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Footer.mjs +13 -0
  47. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Month.cjs +21 -0
  48. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Month.mjs +15 -0
  49. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.cjs +20 -0
  50. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthCaption.mjs +14 -0
  51. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.cjs +19 -0
  52. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthGrid.mjs +13 -0
  53. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Months.cjs +19 -0
  54. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Months.mjs +13 -0
  55. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.cjs +21 -0
  56. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.mjs +15 -0
  57. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Nav.cjs +37 -0
  58. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Nav.mjs +31 -0
  59. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.cjs +21 -0
  60. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/NextMonthButton.mjs +15 -0
  61. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Option.cjs +19 -0
  62. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Option.mjs +13 -0
  63. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.cjs +21 -0
  64. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.mjs +15 -0
  65. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Root.cjs +20 -0
  66. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Root.mjs +14 -0
  67. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Select.cjs +19 -0
  68. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Select.mjs +13 -0
  69. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Week.cjs +20 -0
  70. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Week.mjs +14 -0
  71. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.cjs +20 -0
  72. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumber.mjs +14 -0
  73. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.cjs +19 -0
  74. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.mjs +13 -0
  75. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekday.cjs +19 -0
  76. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekday.mjs +13 -0
  77. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekdays.cjs +20 -0
  78. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weekdays.mjs +14 -0
  79. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weeks.cjs +19 -0
  80. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/Weeks.mjs +13 -0
  81. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.cjs +21 -0
  82. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/YearsDropdown.mjs +15 -0
  83. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/custom-components.cjs +57 -0
  84. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/components/custom-components.mjs +26 -0
  85. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.cjs +29 -0
  86. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatCaption.mjs +26 -0
  87. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.cjs +21 -0
  88. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatDay.mjs +19 -0
  89. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.cjs +20 -0
  90. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.mjs +18 -0
  91. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.cjs +23 -0
  92. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.mjs +21 -0
  93. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.cjs +15 -0
  94. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.mjs +13 -0
  95. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.cjs +21 -0
  96. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.mjs +19 -0
  97. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.cjs +26 -0
  98. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.mjs +23 -0
  99. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/index.cjs +21 -0
  100. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/formatters/index.mjs +7 -0
  101. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.cjs +75 -0
  102. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.mjs +73 -0
  103. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.cjs +97 -0
  104. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.mjs +95 -0
  105. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.cjs +24 -0
  106. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.mjs +22 -0
  107. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.cjs +30 -0
  108. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.mjs +28 -0
  109. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.cjs +35 -0
  110. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.mjs +33 -0
  111. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.cjs +22 -0
  112. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getComponents.mjs +20 -0
  113. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.cjs +29 -0
  114. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.mjs +27 -0
  115. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDates.cjs +61 -0
  116. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDates.mjs +59 -0
  117. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDays.cjs +21 -0
  118. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDays.mjs +19 -0
  119. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.cjs +35 -0
  120. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.mjs +33 -0
  121. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.cjs +26 -0
  122. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.mjs +24 -0
  123. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.cjs +48 -0
  124. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.mjs +46 -0
  125. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.cjs +26 -0
  126. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getFormatters.mjs +24 -0
  127. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.cjs +29 -0
  128. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.mjs +27 -0
  129. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getLabels.cjs +55 -0
  130. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getLabels.mjs +53 -0
  131. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.cjs +35 -0
  132. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.mjs +33 -0
  133. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.cjs +71 -0
  134. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.mjs +69 -0
  135. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.cjs +53 -0
  136. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.mjs +51 -0
  137. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.cjs +42 -0
  138. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.mjs +40 -0
  139. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.cjs +38 -0
  140. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.mjs +36 -0
  141. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.cjs +39 -0
  142. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.mjs +37 -0
  143. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.cjs +29 -0
  144. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.mjs +27 -0
  145. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.cjs +28 -0
  146. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.mjs +26 -0
  147. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.cjs +16 -0
  148. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getWeeks.mjs +14 -0
  149. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.cjs +38 -0
  150. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.mjs +36 -0
  151. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.cjs +29 -0
  152. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.mjs +27 -0
  153. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.cjs +33 -0
  154. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.mjs +31 -0
  155. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/index.cjs +29 -0
  156. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/index.mjs +11 -0
  157. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.cjs +35 -0
  158. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelDayButton.mjs +32 -0
  159. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.cjs +28 -0
  160. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGrid.mjs +25 -0
  161. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.cjs +24 -0
  162. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelGridcell.mjs +22 -0
  163. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.cjs +16 -0
  164. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.mjs +14 -0
  165. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNav.cjs +15 -0
  166. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNav.mjs +13 -0
  167. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNext.cjs +18 -0
  168. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelNext.mjs +16 -0
  169. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.cjs +17 -0
  170. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelPrevious.mjs +15 -0
  171. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.cjs +17 -0
  172. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.mjs +15 -0
  173. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.cjs +16 -0
  174. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.mjs +14 -0
  175. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.cjs +20 -0
  176. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelWeekday.mjs +18 -0
  177. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.cjs +16 -0
  178. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.mjs +14 -0
  179. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/locale/en-US.cjs +69 -0
  180. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/locale/en-US.mjs +67 -0
  181. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useMulti.cjs +59 -0
  182. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useMulti.mjs +57 -0
  183. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useRange.cjs +47 -0
  184. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useRange.mjs +45 -0
  185. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useSingle.cjs +46 -0
  186. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/selection/useSingle.mjs +44 -0
  187. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useAnimation.cjs +176 -0
  188. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useAnimation.mjs +174 -0
  189. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.cjs +115 -0
  190. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useCalendar.mjs +113 -0
  191. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useDayPicker.cjs +28 -0
  192. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useDayPicker.mjs +25 -0
  193. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.cjs +58 -0
  194. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useFocus.mjs +56 -0
  195. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useSelection.cjs +33 -0
  196. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/useSelection.mjs +31 -0
  197. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/addToRange.cjs +97 -0
  198. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/addToRange.mjs +95 -0
  199. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.cjs +59 -0
  200. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.mjs +57 -0
  201. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.cjs +64 -0
  202. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.mjs +62 -0
  203. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.cjs +32 -0
  204. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.mjs +30 -0
  205. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.cjs +76 -0
  206. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.mjs +74 -0
  207. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.cjs +37 -0
  208. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.mjs +35 -0
  209. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.cjs +23 -0
  210. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.mjs +21 -0
  211. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.cjs +18 -0
  212. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/toTimeZone.mjs +16 -0
  213. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/typeguards.cjs +73 -0
  214. package/dist/node_modules/.pnpm/react-day-picker@9.12.0_react@19.2.0/node_modules/react-day-picker/dist/esm/utils/typeguards.mjs +66 -0
  215. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.cjs +7 -0
  216. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.mjs +7 -0
  217. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +131 -124
  218. package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.mjs +131 -124
  219. package/dist/packages/better-stack/src/plugins/ai-chat/schemas.cjs +23 -23
  220. package/dist/packages/better-stack/src/plugins/blog/api/plugin.cjs +28 -12
  221. package/dist/packages/better-stack/src/plugins/blog/api/plugin.mjs +18 -2
  222. package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.cjs +1 -1
  223. package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.mjs +1 -1
  224. package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.cjs +1 -1
  225. package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.mjs +1 -1
  226. package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.cjs +1 -1
  227. package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.mjs +1 -1
  228. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/edit-post-page.internal.cjs +7 -6
  229. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/edit-post-page.internal.mjs +7 -6
  230. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/home-page.internal.cjs +9 -7
  231. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/home-page.internal.mjs +9 -7
  232. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/new-post-page.internal.cjs +7 -6
  233. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/new-post-page.internal.mjs +7 -6
  234. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/post-page.internal.cjs +7 -5
  235. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/post-page.internal.mjs +7 -5
  236. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/tag-page.internal.cjs +5 -3
  237. package/dist/packages/better-stack/src/plugins/blog/client/components/pages/tag-page.internal.mjs +5 -3
  238. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/page-wrapper.cjs +10 -6
  239. package/dist/packages/better-stack/src/plugins/blog/client/components/shared/page-wrapper.mjs +11 -7
  240. package/dist/packages/better-stack/src/plugins/blog/client/plugin.cjs +6 -6
  241. package/dist/packages/better-stack/src/plugins/blog/client/plugin.mjs +6 -6
  242. package/dist/packages/better-stack/src/plugins/blog/schemas.cjs +17 -17
  243. package/dist/packages/better-stack/src/plugins/cms/api/plugin.cjs +457 -0
  244. package/dist/packages/better-stack/src/plugins/cms/api/plugin.mjs +455 -0
  245. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +299 -0
  246. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +297 -0
  247. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +118 -0
  248. package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.mjs +116 -0
  249. package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.cjs +18 -0
  250. package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.mjs +16 -0
  251. package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.cjs +32 -0
  252. package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.mjs +30 -0
  253. package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.cjs +32 -0
  254. package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.mjs +30 -0
  255. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.cjs +20 -0
  256. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.mjs +18 -0
  257. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.cjs +46 -0
  258. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +100 -0
  259. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +98 -0
  260. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.mjs +44 -0
  261. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.cjs +43 -0
  262. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +165 -0
  263. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.mjs +163 -0
  264. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.mjs +41 -0
  265. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.cjs +39 -0
  266. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +84 -0
  267. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.mjs +82 -0
  268. package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.mjs +37 -0
  269. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +17 -0
  270. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.mjs +15 -0
  271. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +16 -0
  272. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.mjs +14 -0
  273. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.cjs +27 -0
  274. package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.mjs +25 -0
  275. package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.cjs +402 -0
  276. package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.mjs +390 -0
  277. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.cjs +29 -0
  278. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.mjs +27 -0
  279. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.cjs +13 -0
  280. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.mjs +11 -0
  281. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.cjs +12 -0
  282. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.mjs +10 -0
  283. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.cjs +18 -0
  284. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.mjs +16 -0
  285. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.cjs +12 -0
  286. package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.mjs +10 -0
  287. package/dist/packages/better-stack/src/plugins/cms/client/localization/index.cjs +17 -0
  288. package/dist/packages/better-stack/src/plugins/cms/client/localization/index.mjs +15 -0
  289. package/dist/packages/better-stack/src/plugins/cms/client/plugin.cjs +275 -0
  290. package/dist/packages/better-stack/src/plugins/cms/client/plugin.mjs +273 -0
  291. package/dist/packages/better-stack/src/plugins/cms/db.cjs +76 -0
  292. package/dist/packages/better-stack/src/plugins/cms/db.mjs +74 -0
  293. package/dist/packages/better-stack/src/plugins/cms/schemas.cjs +54 -0
  294. package/dist/packages/better-stack/src/plugins/cms/schemas.mjs +49 -0
  295. package/dist/packages/better-stack/src/plugins/cms/utils.cjs +15 -0
  296. package/dist/packages/better-stack/src/plugins/cms/utils.mjs +9 -0
  297. package/dist/packages/ui/src/components/calendar.cjs +205 -0
  298. package/dist/packages/ui/src/components/calendar.mjs +188 -0
  299. package/dist/packages/ui/src/components/checkbox.cjs +34 -0
  300. package/dist/packages/ui/src/components/checkbox.mjs +32 -0
  301. package/dist/packages/ui/src/components/date-picker.cjs +41 -0
  302. package/dist/packages/ui/src/components/date-picker.mjs +39 -0
  303. package/dist/packages/ui/src/components/form.mjs +1 -1
  304. package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.cjs +2 -1
  305. package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.mjs +2 -1
  306. package/dist/packages/ui/src/components/page-wrapper.cjs +20 -0
  307. package/dist/packages/ui/src/components/page-wrapper.mjs +18 -0
  308. package/dist/packages/ui/src/components/popover.cjs +41 -0
  309. package/dist/packages/ui/src/components/popover.mjs +37 -0
  310. package/dist/packages/ui/src/components/radio-group.cjs +48 -0
  311. package/dist/packages/ui/src/components/radio-group.mjs +45 -0
  312. package/dist/packages/ui/src/components/separator.cjs +29 -0
  313. package/dist/packages/ui/src/components/separator.mjs +27 -0
  314. package/dist/packages/ui/src/components/table.cjs +89 -0
  315. package/dist/packages/ui/src/components/table.mjs +82 -0
  316. package/dist/packages/ui/src/components/ui/auto-form/common/label.cjs +18 -0
  317. package/dist/packages/ui/src/components/ui/auto-form/common/label.mjs +16 -0
  318. package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.cjs +9 -0
  319. package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.mjs +7 -0
  320. package/dist/packages/ui/src/components/ui/auto-form/config.cjs +42 -0
  321. package/dist/packages/ui/src/components/ui/auto-form/config.mjs +39 -0
  322. package/dist/packages/ui/src/components/ui/auto-form/dependencies.cjs +48 -0
  323. package/dist/packages/ui/src/components/ui/auto-form/dependencies.mjs +46 -0
  324. package/dist/packages/ui/src/components/ui/auto-form/fields/array.cjs +103 -0
  325. package/dist/packages/ui/src/components/ui/auto-form/fields/array.mjs +87 -0
  326. package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.cjs +38 -0
  327. package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.mjs +36 -0
  328. package/dist/packages/ui/src/components/ui/auto-form/fields/date.cjs +37 -0
  329. package/dist/packages/ui/src/components/ui/auto-form/fields/date.mjs +35 -0
  330. package/dist/packages/ui/src/components/ui/auto-form/fields/enum.cjs +73 -0
  331. package/dist/packages/ui/src/components/ui/auto-form/fields/enum.mjs +71 -0
  332. package/dist/packages/ui/src/components/ui/auto-form/fields/file.cjs +63 -0
  333. package/dist/packages/ui/src/components/ui/auto-form/fields/file.mjs +61 -0
  334. package/dist/packages/ui/src/components/ui/auto-form/fields/input.cjs +32 -0
  335. package/dist/packages/ui/src/components/ui/auto-form/fields/input.mjs +30 -0
  336. package/dist/packages/ui/src/components/ui/auto-form/fields/number.cjs +31 -0
  337. package/dist/packages/ui/src/components/ui/auto-form/fields/number.mjs +29 -0
  338. package/dist/packages/ui/src/components/ui/auto-form/fields/object.cjs +149 -0
  339. package/dist/packages/ui/src/components/ui/auto-form/fields/object.mjs +133 -0
  340. package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.cjs +67 -0
  341. package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.mjs +65 -0
  342. package/dist/packages/ui/src/components/ui/auto-form/fields/switch.cjs +38 -0
  343. package/dist/packages/ui/src/components/ui/auto-form/fields/switch.mjs +36 -0
  344. package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.cjs +31 -0
  345. package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.mjs +29 -0
  346. package/dist/packages/ui/src/components/ui/auto-form/index.cjs +87 -0
  347. package/dist/packages/ui/src/components/ui/auto-form/index.mjs +78 -0
  348. package/dist/packages/ui/src/components/ui/auto-form/types.cjs +11 -0
  349. package/dist/packages/ui/src/components/ui/auto-form/types.mjs +9 -0
  350. package/dist/packages/ui/src/components/ui/auto-form/utils.cjs +179 -0
  351. package/dist/packages/ui/src/components/ui/auto-form/utils.mjs +169 -0
  352. package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/hooks}/use-route-lifecycle.cjs +8 -9
  353. package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/hooks}/use-route-lifecycle.mjs +1 -2
  354. package/dist/plugins/ai-chat/api/index.d.cts +1 -1
  355. package/dist/plugins/ai-chat/api/index.d.mts +1 -1
  356. package/dist/plugins/ai-chat/api/index.d.ts +1 -1
  357. package/dist/plugins/ai-chat/client/hooks/index.d.cts +1 -1
  358. package/dist/plugins/ai-chat/client/hooks/index.d.mts +1 -1
  359. package/dist/plugins/ai-chat/client/hooks/index.d.ts +1 -1
  360. package/dist/plugins/ai-chat/query-keys.d.cts +56 -250
  361. package/dist/plugins/ai-chat/query-keys.d.mts +56 -250
  362. package/dist/plugins/ai-chat/query-keys.d.ts +56 -250
  363. package/dist/plugins/blog/api/index.d.cts +1 -1
  364. package/dist/plugins/blog/api/index.d.mts +1 -1
  365. package/dist/plugins/blog/api/index.d.ts +1 -1
  366. package/dist/plugins/blog/client/hooks/index.d.cts +2 -2
  367. package/dist/plugins/blog/client/hooks/index.d.mts +2 -2
  368. package/dist/plugins/blog/client/hooks/index.d.ts +2 -2
  369. package/dist/plugins/blog/client/index.d.cts +1 -1
  370. package/dist/plugins/blog/client/index.d.mts +1 -1
  371. package/dist/plugins/blog/client/index.d.ts +1 -1
  372. package/dist/plugins/blog/query-keys.d.cts +103 -363
  373. package/dist/plugins/blog/query-keys.d.mts +103 -363
  374. package/dist/plugins/blog/query-keys.d.ts +103 -363
  375. package/dist/plugins/cms/api/index.cjs +7 -0
  376. package/dist/plugins/cms/api/index.d.cts +101 -0
  377. package/dist/plugins/cms/api/index.d.mts +101 -0
  378. package/dist/plugins/cms/api/index.d.ts +101 -0
  379. package/dist/plugins/cms/api/index.mjs +1 -0
  380. package/dist/plugins/cms/client/components/index.cjs +14 -0
  381. package/dist/plugins/cms/client/components/index.d.cts +20 -0
  382. package/dist/plugins/cms/client/components/index.d.mts +20 -0
  383. package/dist/plugins/cms/client/components/index.d.ts +20 -0
  384. package/dist/plugins/cms/client/components/index.mjs +10 -0
  385. package/dist/plugins/cms/client/hooks/index.cjs +17 -0
  386. package/dist/plugins/cms/client/hooks/index.d.cts +203 -0
  387. package/dist/plugins/cms/client/hooks/index.d.mts +203 -0
  388. package/dist/plugins/cms/client/hooks/index.d.ts +203 -0
  389. package/dist/plugins/cms/client/hooks/index.mjs +1 -0
  390. package/dist/plugins/cms/client/index.cjs +9 -0
  391. package/dist/plugins/cms/client/index.d.cts +409 -0
  392. package/dist/plugins/cms/client/index.d.mts +409 -0
  393. package/dist/plugins/cms/client/index.d.ts +409 -0
  394. package/dist/plugins/cms/client/index.mjs +2 -0
  395. package/dist/plugins/cms/client.css +2 -0
  396. package/dist/plugins/cms/query-keys.cjs +137 -0
  397. package/dist/plugins/cms/query-keys.d.cts +79 -0
  398. package/dist/plugins/cms/query-keys.d.mts +79 -0
  399. package/dist/plugins/cms/query-keys.d.ts +79 -0
  400. package/dist/plugins/cms/query-keys.mjs +135 -0
  401. package/dist/plugins/cms/style.css +19 -0
  402. package/dist/shared/stack.BwkyFwF8.d.cts +135 -0
  403. package/dist/shared/stack.DBqxCs0V.d.mts +135 -0
  404. package/dist/shared/stack.DwnJA87a.d.ts +135 -0
  405. package/dist/shared/stack.NZJogTUn.d.cts +66 -0
  406. package/dist/shared/stack.NZJogTUn.d.mts +66 -0
  407. package/dist/shared/stack.NZJogTUn.d.ts +66 -0
  408. package/package.json +58 -5
  409. package/src/plugins/ai-chat/client/components/chat-interface.tsx +15 -0
  410. package/src/plugins/ai-chat/client/components/chat-sidebar.tsx +4 -1
  411. package/src/plugins/blog/api/plugin.ts +29 -2
  412. package/src/plugins/blog/client/components/loading/form-page-skeleton.tsx +1 -1
  413. package/src/plugins/blog/client/components/loading/list-page-skeleton.tsx +1 -1
  414. package/src/plugins/blog/client/components/loading/post-page-skeleton.tsx +1 -1
  415. package/src/plugins/blog/client/components/pages/edit-post-page.internal.tsx +4 -3
  416. package/src/plugins/blog/client/components/pages/home-page.internal.tsx +4 -2
  417. package/src/plugins/blog/client/components/pages/new-post-page.internal.tsx +4 -3
  418. package/src/plugins/blog/client/components/pages/post-page.internal.tsx +4 -2
  419. package/src/plugins/blog/client/components/pages/tag-page.internal.tsx +4 -2
  420. package/src/plugins/blog/client/components/shared/page-wrapper.tsx +9 -9
  421. package/src/plugins/blog/client/plugin.tsx +10 -9
  422. package/src/plugins/cms/__tests__/schema-roundtrip.test.ts +611 -0
  423. package/src/plugins/cms/api/index.ts +1 -0
  424. package/src/plugins/cms/api/plugin.ts +611 -0
  425. package/src/plugins/cms/client/components/forms/content-form.tsx +477 -0
  426. package/src/plugins/cms/client/components/forms/file-upload.tsx +164 -0
  427. package/src/plugins/cms/client/components/index.tsx +10 -0
  428. package/src/plugins/cms/client/components/loading/dashboard-skeleton.tsx +22 -0
  429. package/src/plugins/cms/client/components/loading/editor-skeleton.tsx +35 -0
  430. package/src/plugins/cms/client/components/loading/index.tsx +3 -0
  431. package/src/plugins/cms/client/components/loading/list-skeleton.tsx +38 -0
  432. package/src/plugins/cms/client/components/pages/404-page.tsx +27 -0
  433. package/src/plugins/cms/client/components/pages/content-editor-page.internal.tsx +139 -0
  434. package/src/plugins/cms/client/components/pages/content-editor-page.tsx +50 -0
  435. package/src/plugins/cms/client/components/pages/content-list-page.internal.tsx +213 -0
  436. package/src/plugins/cms/client/components/pages/content-list-page.tsx +45 -0
  437. package/src/plugins/cms/client/components/pages/dashboard-page.internal.tsx +111 -0
  438. package/src/plugins/cms/client/components/pages/dashboard-page.tsx +37 -0
  439. package/src/plugins/cms/client/components/shared/default-error.tsx +30 -0
  440. package/src/plugins/cms/client/components/shared/empty-state.tsx +26 -0
  441. package/src/plugins/cms/client/components/shared/page-wrapper.tsx +32 -0
  442. package/src/plugins/cms/client/components/shared/pagination.tsx +72 -0
  443. package/src/plugins/cms/client/hooks/cms-hooks.tsx +724 -0
  444. package/src/plugins/cms/client/hooks/index.tsx +1 -0
  445. package/src/plugins/cms/client/index.ts +13 -0
  446. package/src/plugins/cms/client/localization/cms-common.ts +29 -0
  447. package/src/plugins/cms/client/localization/cms-dashboard.ts +10 -0
  448. package/src/plugins/cms/client/localization/cms-editor.ts +8 -0
  449. package/src/plugins/cms/client/localization/cms-list.ts +14 -0
  450. package/src/plugins/cms/client/localization/cms-toasts.ts +8 -0
  451. package/src/plugins/cms/client/localization/index.ts +15 -0
  452. package/src/plugins/cms/client/overrides.ts +166 -0
  453. package/src/plugins/cms/client/plugin.tsx +494 -0
  454. package/src/plugins/cms/client.css +2 -0
  455. package/src/plugins/cms/db.ts +76 -0
  456. package/src/plugins/cms/query-keys.ts +186 -0
  457. package/src/plugins/cms/schemas.ts +81 -0
  458. package/src/plugins/cms/style.css +19 -0
  459. package/src/plugins/cms/types.ts +220 -0
  460. package/src/plugins/cms/utils.ts +11 -0
  461. package/src/plugins/blog/client/components/shared/page-layout.tsx +0 -23
  462. package/src/plugins/blog/client/components/shared/use-route-lifecycle.tsx +0 -68
  463. package/dist/shared/{stack.CcI4sYJP.d.cts → stack.DLhzx1-D.d.cts} +1 -1
  464. package/dist/shared/{stack.CcI4sYJP.d.mts → stack.DLhzx1-D.d.mts} +1 -1
  465. package/dist/shared/{stack.CcI4sYJP.d.ts → stack.DLhzx1-D.d.ts} +1 -1
@@ -0,0 +1,320 @@
1
+ import React__default, { useMemo, useCallback, useRef } from 'react';
2
+ import { DateLib } from './classes/DateLib.mjs';
3
+ import { createGetModifiers } from './helpers/createGetModifiers.mjs';
4
+ import { getClassNamesForModifiers } from './helpers/getClassNamesForModifiers.mjs';
5
+ import { getComponents } from './helpers/getComponents.mjs';
6
+ import { getDataAttributes } from './helpers/getDataAttributes.mjs';
7
+ import { getDefaultClassNames } from './helpers/getDefaultClassNames.mjs';
8
+ import { getFormatters } from './helpers/getFormatters.mjs';
9
+ import { getLabels } from './helpers/getLabels.mjs';
10
+ import { getMonthOptions } from './helpers/getMonthOptions.mjs';
11
+ import { getStyleForModifiers } from './helpers/getStyleForModifiers.mjs';
12
+ import { getWeekdays } from './helpers/getWeekdays.mjs';
13
+ import { getYearOptions } from './helpers/getYearOptions.mjs';
14
+ import { UI, DayFlag, SelectionState } from './UI.mjs';
15
+ import { useAnimation } from './useAnimation.mjs';
16
+ import { useCalendar } from './useCalendar.mjs';
17
+ import { dayPickerContext } from './useDayPicker.mjs';
18
+ import { useFocus } from './useFocus.mjs';
19
+ import { useSelection } from './useSelection.mjs';
20
+ import { convertMatchersToTimeZone } from './utils/convertMatchersToTimeZone.mjs';
21
+ import { rangeIncludesDate } from './utils/rangeIncludesDate.mjs';
22
+ import { toTimeZone } from './utils/toTimeZone.mjs';
23
+ import { isDateRange } from './utils/typeguards.mjs';
24
+ import { enUS } from './locale/en-US.mjs';
25
+
26
+ /**
27
+ * Renders the DayPicker calendar component.
28
+ *
29
+ * @param initialProps - The props for the DayPicker component.
30
+ * @returns The rendered DayPicker component.
31
+ * @group DayPicker
32
+ * @see https://daypicker.dev
33
+ */
34
+ function DayPicker(initialProps) {
35
+ let props = initialProps;
36
+ const timeZone = props.timeZone;
37
+ if (timeZone) {
38
+ props = {
39
+ ...initialProps,
40
+ timeZone,
41
+ };
42
+ if (props.today) {
43
+ props.today = toTimeZone(props.today, timeZone);
44
+ }
45
+ if (props.month) {
46
+ props.month = toTimeZone(props.month, timeZone);
47
+ }
48
+ if (props.defaultMonth) {
49
+ props.defaultMonth = toTimeZone(props.defaultMonth, timeZone);
50
+ }
51
+ if (props.startMonth) {
52
+ props.startMonth = toTimeZone(props.startMonth, timeZone);
53
+ }
54
+ if (props.endMonth) {
55
+ props.endMonth = toTimeZone(props.endMonth, timeZone);
56
+ }
57
+ if (props.mode === "single" && props.selected) {
58
+ props.selected = toTimeZone(props.selected, timeZone);
59
+ }
60
+ else if (props.mode === "multiple" && props.selected) {
61
+ props.selected = props.selected?.map((date) => toTimeZone(date, timeZone));
62
+ }
63
+ else if (props.mode === "range" && props.selected) {
64
+ props.selected = {
65
+ from: props.selected.from
66
+ ? toTimeZone(props.selected.from, timeZone)
67
+ : props.selected.from,
68
+ to: props.selected.to
69
+ ? toTimeZone(props.selected.to, timeZone)
70
+ : props.selected.to,
71
+ };
72
+ }
73
+ if (props.disabled !== undefined) {
74
+ props.disabled = convertMatchersToTimeZone(props.disabled, timeZone);
75
+ }
76
+ if (props.hidden !== undefined) {
77
+ props.hidden = convertMatchersToTimeZone(props.hidden, timeZone);
78
+ }
79
+ if (props.modifiers) {
80
+ const nextModifiers = {};
81
+ Object.keys(props.modifiers).forEach((key) => {
82
+ nextModifiers[key] = convertMatchersToTimeZone(props.modifiers?.[key], timeZone);
83
+ });
84
+ props.modifiers = nextModifiers;
85
+ }
86
+ }
87
+ const { components, formatters, labels, dateLib, locale, classNames } = useMemo(() => {
88
+ const locale = { ...enUS, ...props.locale };
89
+ const dateLib = new DateLib({
90
+ locale,
91
+ weekStartsOn: props.broadcastCalendar ? 1 : props.weekStartsOn,
92
+ firstWeekContainsDate: props.firstWeekContainsDate,
93
+ useAdditionalWeekYearTokens: props.useAdditionalWeekYearTokens,
94
+ useAdditionalDayOfYearTokens: props.useAdditionalDayOfYearTokens,
95
+ timeZone: props.timeZone,
96
+ numerals: props.numerals,
97
+ }, props.dateLib);
98
+ return {
99
+ dateLib,
100
+ components: getComponents(props.components),
101
+ formatters: getFormatters(props.formatters),
102
+ labels: getLabels(props.labels, dateLib.options),
103
+ locale,
104
+ classNames: { ...getDefaultClassNames(), ...props.classNames },
105
+ };
106
+ }, [
107
+ props.locale,
108
+ props.broadcastCalendar,
109
+ props.weekStartsOn,
110
+ props.firstWeekContainsDate,
111
+ props.useAdditionalWeekYearTokens,
112
+ props.useAdditionalDayOfYearTokens,
113
+ props.timeZone,
114
+ props.numerals,
115
+ props.dateLib,
116
+ props.components,
117
+ props.formatters,
118
+ props.labels,
119
+ props.classNames,
120
+ ]);
121
+ if (!props.today) {
122
+ props = { ...props, today: dateLib.today() };
123
+ }
124
+ const { captionLayout, mode, navLayout, numberOfMonths = 1, onDayBlur, onDayClick, onDayFocus, onDayKeyDown, onDayMouseEnter, onDayMouseLeave, onNextClick, onPrevClick, showWeekNumber, styles, } = props;
125
+ const { formatCaption, formatDay, formatMonthDropdown, formatWeekNumber, formatWeekNumberHeader, formatWeekdayName, formatYearDropdown, } = formatters;
126
+ const calendar = useCalendar(props, dateLib);
127
+ const { days, months, navStart, navEnd, previousMonth, nextMonth, goToMonth, } = calendar;
128
+ const getModifiers = createGetModifiers(days, props, navStart, navEnd, dateLib);
129
+ const { isSelected, select, selected: selectedValue, } = useSelection(props, dateLib) ?? {};
130
+ const { blur, focused, isFocusTarget, moveFocus, setFocused } = useFocus(props, calendar, getModifiers, isSelected ?? (() => false), dateLib);
131
+ const { labelDayButton, labelGridcell, labelGrid, labelMonthDropdown, labelNav, labelPrevious, labelNext, labelWeekday, labelWeekNumber, labelWeekNumberHeader, labelYearDropdown, } = labels;
132
+ const weekdays = useMemo(() => getWeekdays(dateLib, props.ISOWeek, props.broadcastCalendar, props.today), [dateLib, props.ISOWeek, props.broadcastCalendar, props.today]);
133
+ const isInteractive = mode !== undefined || onDayClick !== undefined;
134
+ const handlePreviousClick = useCallback(() => {
135
+ if (!previousMonth)
136
+ return;
137
+ goToMonth(previousMonth);
138
+ onPrevClick?.(previousMonth);
139
+ }, [previousMonth, goToMonth, onPrevClick]);
140
+ const handleNextClick = useCallback(() => {
141
+ if (!nextMonth)
142
+ return;
143
+ goToMonth(nextMonth);
144
+ onNextClick?.(nextMonth);
145
+ }, [goToMonth, nextMonth, onNextClick]);
146
+ const handleDayClick = useCallback((day, m) => (e) => {
147
+ e.preventDefault();
148
+ e.stopPropagation();
149
+ setFocused(day);
150
+ if (m.disabled) {
151
+ return;
152
+ }
153
+ select?.(day.date, m, e);
154
+ onDayClick?.(day.date, m, e);
155
+ }, [select, onDayClick, setFocused]);
156
+ const handleDayFocus = useCallback((day, m) => (e) => {
157
+ setFocused(day);
158
+ onDayFocus?.(day.date, m, e);
159
+ }, [onDayFocus, setFocused]);
160
+ const handleDayBlur = useCallback((day, m) => (e) => {
161
+ blur();
162
+ onDayBlur?.(day.date, m, e);
163
+ }, [blur, onDayBlur]);
164
+ const handleDayKeyDown = useCallback((day, modifiers) => (e) => {
165
+ const keyMap = {
166
+ ArrowLeft: [
167
+ e.shiftKey ? "month" : "day",
168
+ props.dir === "rtl" ? "after" : "before",
169
+ ],
170
+ ArrowRight: [
171
+ e.shiftKey ? "month" : "day",
172
+ props.dir === "rtl" ? "before" : "after",
173
+ ],
174
+ ArrowDown: [e.shiftKey ? "year" : "week", "after"],
175
+ ArrowUp: [e.shiftKey ? "year" : "week", "before"],
176
+ PageUp: [e.shiftKey ? "year" : "month", "before"],
177
+ PageDown: [e.shiftKey ? "year" : "month", "after"],
178
+ Home: ["startOfWeek", "before"],
179
+ End: ["endOfWeek", "after"],
180
+ };
181
+ if (keyMap[e.key]) {
182
+ e.preventDefault();
183
+ e.stopPropagation();
184
+ const [moveBy, moveDir] = keyMap[e.key];
185
+ moveFocus(moveBy, moveDir);
186
+ }
187
+ onDayKeyDown?.(day.date, modifiers, e);
188
+ }, [moveFocus, onDayKeyDown, props.dir]);
189
+ const handleDayMouseEnter = useCallback((day, modifiers) => (e) => {
190
+ onDayMouseEnter?.(day.date, modifiers, e);
191
+ }, [onDayMouseEnter]);
192
+ const handleDayMouseLeave = useCallback((day, modifiers) => (e) => {
193
+ onDayMouseLeave?.(day.date, modifiers, e);
194
+ }, [onDayMouseLeave]);
195
+ const handleMonthChange = useCallback((date) => (e) => {
196
+ const selectedMonth = Number(e.target.value);
197
+ const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
198
+ goToMonth(month);
199
+ }, [dateLib, goToMonth]);
200
+ const handleYearChange = useCallback((date) => (e) => {
201
+ const selectedYear = Number(e.target.value);
202
+ const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
203
+ goToMonth(month);
204
+ }, [dateLib, goToMonth]);
205
+ const { className, style } = useMemo(() => ({
206
+ className: [classNames[UI.Root], props.className]
207
+ .filter(Boolean)
208
+ .join(" "),
209
+ style: { ...styles?.[UI.Root], ...props.style },
210
+ }), [classNames, props.className, props.style, styles]);
211
+ const dataAttributes = getDataAttributes(props);
212
+ const rootElRef = useRef(null);
213
+ useAnimation(rootElRef, Boolean(props.animate), {
214
+ classNames,
215
+ months,
216
+ focused,
217
+ dateLib,
218
+ });
219
+ const contextValue = {
220
+ dayPickerProps: props,
221
+ selected: selectedValue,
222
+ select: select,
223
+ isSelected,
224
+ months,
225
+ nextMonth,
226
+ previousMonth,
227
+ goToMonth,
228
+ getModifiers,
229
+ components,
230
+ classNames,
231
+ styles,
232
+ labels,
233
+ formatters,
234
+ };
235
+ return (React__default.createElement(dayPickerContext.Provider, { value: contextValue },
236
+ React__default.createElement(components.Root, { rootRef: props.animate ? rootElRef : undefined, className: className, style: style, dir: props.dir, id: props.id, lang: props.lang, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"], "aria-labelledby": props["aria-labelledby"], ...dataAttributes },
237
+ React__default.createElement(components.Months, { className: classNames[UI.Months], style: styles?.[UI.Months] },
238
+ !props.hideNavigation && !navLayout && (React__default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),
239
+ months.map((calendarMonth, displayIndex) => {
240
+ return (React__default.createElement(components.Month, { "data-animated-month": props.animate ? "true" : undefined, className: classNames[UI.Month], style: styles?.[UI.Month],
241
+ // biome-ignore lint/suspicious/noArrayIndexKey: breaks animation
242
+ key: displayIndex, displayIndex: displayIndex, calendarMonth: calendarMonth },
243
+ navLayout === "around" &&
244
+ !props.hideNavigation &&
245
+ displayIndex === 0 && (React__default.createElement(components.PreviousMonthButton, { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? undefined : -1, "aria-disabled": previousMonth ? undefined : true, "aria-label": labelPrevious(previousMonth), onClick: handlePreviousClick, "data-animated-button": props.animate ? "true" : undefined },
246
+ React__default.createElement(components.Chevron, { disabled: previousMonth ? undefined : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "right" : "left" }))),
247
+ React__default.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : undefined, className: classNames[UI.MonthCaption], style: styles?.[UI.MonthCaption], calendarMonth: calendarMonth, displayIndex: displayIndex }, captionLayout?.startsWith("dropdown") ? (React__default.createElement(components.DropdownNav, { className: classNames[UI.Dropdowns], style: styles?.[UI.Dropdowns] },
248
+ (() => {
249
+ const monthControl = captionLayout === "dropdown" ||
250
+ captionLayout === "dropdown-months" ? (React__default.createElement(components.MonthsDropdown, { key: "month", className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown(), classNames: classNames, components: components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: getMonthOptions(calendarMonth.date, navStart, navEnd, formatters, dateLib), style: styles?.[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) })) : (React__default.createElement("span", { key: "month" }, formatMonthDropdown(calendarMonth.date, dateLib)));
251
+ const yearControl = captionLayout === "dropdown" ||
252
+ captionLayout === "dropdown-years" ? (React__default.createElement(components.YearsDropdown, { key: "year", className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown(dateLib.options), classNames: classNames, components: components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: getYearOptions(navStart, navEnd, formatters, dateLib, Boolean(props.reverseYears)), style: styles?.[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) })) : (React__default.createElement("span", { key: "year" }, formatYearDropdown(calendarMonth.date, dateLib)));
253
+ const controls = dateLib.getMonthYearOrder() === "year-first"
254
+ ? [yearControl, monthControl]
255
+ : [monthControl, yearControl];
256
+ return controls;
257
+ })(),
258
+ React__default.createElement("span", { role: "status", "aria-live": "polite", style: {
259
+ border: 0,
260
+ clip: "rect(0 0 0 0)",
261
+ height: "1px",
262
+ margin: "-1px",
263
+ overflow: "hidden",
264
+ padding: 0,
265
+ position: "absolute",
266
+ width: "1px",
267
+ whiteSpace: "nowrap",
268
+ wordWrap: "normal",
269
+ } }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))) : (React__default.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption(calendarMonth.date, dateLib.options, dateLib)))),
270
+ navLayout === "around" &&
271
+ !props.hideNavigation &&
272
+ displayIndex === numberOfMonths - 1 && (React__default.createElement(components.NextMonthButton, { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? undefined : -1, "aria-disabled": nextMonth ? undefined : true, "aria-label": labelNext(nextMonth), onClick: handleNextClick, "data-animated-button": props.animate ? "true" : undefined },
273
+ React__default.createElement(components.Chevron, { disabled: nextMonth ? undefined : true, className: classNames[UI.Chevron], orientation: props.dir === "rtl" ? "left" : "right" }))),
274
+ displayIndex === numberOfMonths - 1 &&
275
+ navLayout === "after" &&
276
+ !props.hideNavigation && (React__default.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : undefined, className: classNames[UI.Nav], style: styles?.[UI.Nav], "aria-label": labelNav(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth: previousMonth, nextMonth: nextMonth })),
277
+ React__default.createElement(components.MonthGrid, { role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid(calendarMonth.date, dateLib.options, dateLib) ||
278
+ undefined, className: classNames[UI.MonthGrid], style: styles?.[UI.MonthGrid] },
279
+ !props.hideWeekdays && (React__default.createElement(components.Weekdays, { "data-animated-weekdays": props.animate ? "true" : undefined, className: classNames[UI.Weekdays], style: styles?.[UI.Weekdays] },
280
+ showWeekNumber && (React__default.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles?.[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader())),
281
+ weekdays.map((weekday) => (React__default.createElement(components.Weekday, { "aria-label": labelWeekday(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: String(weekday), style: styles?.[UI.Weekday], scope: "col" }, formatWeekdayName(weekday, dateLib.options, dateLib)))))),
282
+ React__default.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : undefined, className: classNames[UI.Weeks], style: styles?.[UI.Weeks] }, calendarMonth.weeks.map((week) => {
283
+ return (React__default.createElement(components.Week, { className: classNames[UI.Week], key: week.weekNumber, style: styles?.[UI.Week], week: week },
284
+ showWeekNumber && (React__default.createElement(components.WeekNumber, { week: week, style: styles?.[UI.WeekNumber], "aria-label": labelWeekNumber(week.weekNumber, {
285
+ locale,
286
+ }), className: classNames[UI.WeekNumber], scope: "row", role: "rowheader" }, formatWeekNumber(week.weekNumber, dateLib))),
287
+ week.days.map((day) => {
288
+ const { date } = day;
289
+ const modifiers = getModifiers(day);
290
+ modifiers[DayFlag.focused] =
291
+ !modifiers.hidden &&
292
+ Boolean(focused?.isEqualTo(day));
293
+ modifiers[SelectionState.selected] =
294
+ isSelected?.(date) || modifiers.selected;
295
+ if (isDateRange(selectedValue)) {
296
+ // add range modifiers
297
+ const { from, to } = selectedValue;
298
+ modifiers[SelectionState.range_start] = Boolean(from && to && dateLib.isSameDay(date, from));
299
+ modifiers[SelectionState.range_end] = Boolean(from && to && dateLib.isSameDay(date, to));
300
+ modifiers[SelectionState.range_middle] =
301
+ rangeIncludesDate(selectedValue, date, true, dateLib);
302
+ }
303
+ const style = getStyleForModifiers(modifiers, styles, props.modifiersStyles);
304
+ const className = getClassNamesForModifiers(modifiers, classNames, props.modifiersClassNames);
305
+ const ariaLabel = !isInteractive && !modifiers.hidden
306
+ ? labelGridcell(date, modifiers, dateLib.options, dateLib)
307
+ : undefined;
308
+ return (React__default.createElement(components.Day, { key: `${day.isoDate}_${day.displayMonthId}`, day: day, modifiers: modifiers, className: className.join(" "), style: style, role: "gridcell", "aria-selected": modifiers.selected || undefined, "aria-label": ariaLabel, "data-day": day.isoDate, "data-month": day.outside ? day.dateMonthId : undefined, "data-selected": modifiers.selected || undefined, "data-disabled": modifiers.disabled || undefined, "data-hidden": modifiers.hidden || undefined, "data-outside": day.outside || undefined, "data-focused": modifiers.focused || undefined, "data-today": modifiers.today || undefined }, !modifiers.hidden && isInteractive ? (React__default.createElement(components.DayButton, { className: classNames[UI.DayButton], style: styles?.[UI.DayButton], type: "button", day: day, modifiers: modifiers, disabled: (!modifiers.focused &&
309
+ modifiers.disabled) ||
310
+ undefined, "aria-disabled": (modifiers.focused &&
311
+ modifiers.disabled) ||
312
+ undefined, tabIndex: isFocusTarget(day) ? 0 : -1, "aria-label": labelDayButton(date, modifiers, dateLib.options, dateLib), onClick: handleDayClick(day, modifiers), onBlur: handleDayBlur(day, modifiers), onFocus: handleDayFocus(day, modifiers), onKeyDown: handleDayKeyDown(day, modifiers), onMouseEnter: handleDayMouseEnter(day, modifiers), onMouseLeave: handleDayMouseLeave(day, modifiers) }, formatDay(date, dateLib.options, dateLib))) : (!modifiers.hidden &&
313
+ formatDay(day.date, dateLib.options, dateLib))));
314
+ })));
315
+ })))));
316
+ })),
317
+ props.footer && (React__default.createElement(components.Footer, { className: classNames[UI.Footer], style: styles?.[UI.Footer], role: "status", "aria-live": "polite" }, props.footer)))));
318
+ }
319
+
320
+ export { DayPicker };
@@ -0,0 +1,122 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Enum representing the UI elements composing DayPicker. These elements are
5
+ * mapped to {@link CustomComponents}, {@link ClassNames}, and {@link Styles}.
6
+ *
7
+ * Some elements are extended by flags and modifiers.
8
+ */
9
+ exports.UI = void 0;
10
+ (function (UI) {
11
+ /** The root component displaying the months and the navigation bar. */
12
+ UI["Root"] = "root";
13
+ /** The Chevron SVG element used by navigation buttons and dropdowns. */
14
+ UI["Chevron"] = "chevron";
15
+ /**
16
+ * The grid cell with the day's date. Extended by {@link DayFlag} and
17
+ * {@link SelectionState}.
18
+ */
19
+ UI["Day"] = "day";
20
+ /** The button containing the formatted day's date, inside the grid cell. */
21
+ UI["DayButton"] = "day_button";
22
+ /** The caption label of the month (when not showing the dropdown navigation). */
23
+ UI["CaptionLabel"] = "caption_label";
24
+ /** The container of the dropdown navigation (when enabled). */
25
+ UI["Dropdowns"] = "dropdowns";
26
+ /** The dropdown element to select for years and months. */
27
+ UI["Dropdown"] = "dropdown";
28
+ /** The container element of the dropdown. */
29
+ UI["DropdownRoot"] = "dropdown_root";
30
+ /** The root element of the footer. */
31
+ UI["Footer"] = "footer";
32
+ /** The month grid. */
33
+ UI["MonthGrid"] = "month_grid";
34
+ /** Contains the dropdown navigation or the caption label. */
35
+ UI["MonthCaption"] = "month_caption";
36
+ /** The dropdown with the months. */
37
+ UI["MonthsDropdown"] = "months_dropdown";
38
+ /** Wrapper of the month grid. */
39
+ UI["Month"] = "month";
40
+ /** The container of the displayed months. */
41
+ UI["Months"] = "months";
42
+ /** The navigation bar with the previous and next buttons. */
43
+ UI["Nav"] = "nav";
44
+ /**
45
+ * The next month button in the navigation. *
46
+ *
47
+ * @since 9.1.0
48
+ */
49
+ UI["NextMonthButton"] = "button_next";
50
+ /**
51
+ * The previous month button in the navigation.
52
+ *
53
+ * @since 9.1.0
54
+ */
55
+ UI["PreviousMonthButton"] = "button_previous";
56
+ /** The row containing the week. */
57
+ UI["Week"] = "week";
58
+ /** The group of row weeks in a month (`tbody`). */
59
+ UI["Weeks"] = "weeks";
60
+ /** The column header with the weekday. */
61
+ UI["Weekday"] = "weekday";
62
+ /** The row grouping the weekdays in the column headers. */
63
+ UI["Weekdays"] = "weekdays";
64
+ /** The cell containing the week number. */
65
+ UI["WeekNumber"] = "week_number";
66
+ /** The cell header of the week numbers column. */
67
+ UI["WeekNumberHeader"] = "week_number_header";
68
+ /** The dropdown with the years. */
69
+ UI["YearsDropdown"] = "years_dropdown";
70
+ })(exports.UI || (exports.UI = {}));
71
+ /** Enum representing flags for the {@link UI.Day} element. */
72
+ exports.DayFlag = void 0;
73
+ (function (DayFlag) {
74
+ /** The day is disabled. */
75
+ DayFlag["disabled"] = "disabled";
76
+ /** The day is hidden. */
77
+ DayFlag["hidden"] = "hidden";
78
+ /** The day is outside the current month. */
79
+ DayFlag["outside"] = "outside";
80
+ /** The day is focused. */
81
+ DayFlag["focused"] = "focused";
82
+ /** The day is today. */
83
+ DayFlag["today"] = "today";
84
+ })(exports.DayFlag || (exports.DayFlag = {}));
85
+ /**
86
+ * Enum representing selection states that can be applied to the {@link UI.Day}
87
+ * element in selection mode.
88
+ */
89
+ exports.SelectionState = void 0;
90
+ (function (SelectionState) {
91
+ /** The day is at the end of a selected range. */
92
+ SelectionState["range_end"] = "range_end";
93
+ /** The day is at the middle of a selected range. */
94
+ SelectionState["range_middle"] = "range_middle";
95
+ /** The day is at the start of a selected range. */
96
+ SelectionState["range_start"] = "range_start";
97
+ /** The day is selected. */
98
+ SelectionState["selected"] = "selected";
99
+ })(exports.SelectionState || (exports.SelectionState = {}));
100
+ /**
101
+ * Enum representing different animation states for transitioning between
102
+ * months.
103
+ */
104
+ exports.Animation = void 0;
105
+ (function (Animation) {
106
+ /** The entering weeks when they appear before the exiting month. */
107
+ Animation["weeks_before_enter"] = "weeks_before_enter";
108
+ /** The exiting weeks when they disappear before the entering month. */
109
+ Animation["weeks_before_exit"] = "weeks_before_exit";
110
+ /** The entering weeks when they appear after the exiting month. */
111
+ Animation["weeks_after_enter"] = "weeks_after_enter";
112
+ /** The exiting weeks when they disappear after the entering month. */
113
+ Animation["weeks_after_exit"] = "weeks_after_exit";
114
+ /** The entering caption when it appears after the exiting month. */
115
+ Animation["caption_after_enter"] = "caption_after_enter";
116
+ /** The exiting caption when it disappears after the entering month. */
117
+ Animation["caption_after_exit"] = "caption_after_exit";
118
+ /** The entering caption when it appears before the exiting month. */
119
+ Animation["caption_before_enter"] = "caption_before_enter";
120
+ /** The exiting caption when it disappears before the entering month. */
121
+ Animation["caption_before_exit"] = "caption_before_exit";
122
+ })(exports.Animation || (exports.Animation = {}));
@@ -0,0 +1,122 @@
1
+ /**
2
+ * Enum representing the UI elements composing DayPicker. These elements are
3
+ * mapped to {@link CustomComponents}, {@link ClassNames}, and {@link Styles}.
4
+ *
5
+ * Some elements are extended by flags and modifiers.
6
+ */
7
+ var UI;
8
+ (function (UI) {
9
+ /** The root component displaying the months and the navigation bar. */
10
+ UI["Root"] = "root";
11
+ /** The Chevron SVG element used by navigation buttons and dropdowns. */
12
+ UI["Chevron"] = "chevron";
13
+ /**
14
+ * The grid cell with the day's date. Extended by {@link DayFlag} and
15
+ * {@link SelectionState}.
16
+ */
17
+ UI["Day"] = "day";
18
+ /** The button containing the formatted day's date, inside the grid cell. */
19
+ UI["DayButton"] = "day_button";
20
+ /** The caption label of the month (when not showing the dropdown navigation). */
21
+ UI["CaptionLabel"] = "caption_label";
22
+ /** The container of the dropdown navigation (when enabled). */
23
+ UI["Dropdowns"] = "dropdowns";
24
+ /** The dropdown element to select for years and months. */
25
+ UI["Dropdown"] = "dropdown";
26
+ /** The container element of the dropdown. */
27
+ UI["DropdownRoot"] = "dropdown_root";
28
+ /** The root element of the footer. */
29
+ UI["Footer"] = "footer";
30
+ /** The month grid. */
31
+ UI["MonthGrid"] = "month_grid";
32
+ /** Contains the dropdown navigation or the caption label. */
33
+ UI["MonthCaption"] = "month_caption";
34
+ /** The dropdown with the months. */
35
+ UI["MonthsDropdown"] = "months_dropdown";
36
+ /** Wrapper of the month grid. */
37
+ UI["Month"] = "month";
38
+ /** The container of the displayed months. */
39
+ UI["Months"] = "months";
40
+ /** The navigation bar with the previous and next buttons. */
41
+ UI["Nav"] = "nav";
42
+ /**
43
+ * The next month button in the navigation. *
44
+ *
45
+ * @since 9.1.0
46
+ */
47
+ UI["NextMonthButton"] = "button_next";
48
+ /**
49
+ * The previous month button in the navigation.
50
+ *
51
+ * @since 9.1.0
52
+ */
53
+ UI["PreviousMonthButton"] = "button_previous";
54
+ /** The row containing the week. */
55
+ UI["Week"] = "week";
56
+ /** The group of row weeks in a month (`tbody`). */
57
+ UI["Weeks"] = "weeks";
58
+ /** The column header with the weekday. */
59
+ UI["Weekday"] = "weekday";
60
+ /** The row grouping the weekdays in the column headers. */
61
+ UI["Weekdays"] = "weekdays";
62
+ /** The cell containing the week number. */
63
+ UI["WeekNumber"] = "week_number";
64
+ /** The cell header of the week numbers column. */
65
+ UI["WeekNumberHeader"] = "week_number_header";
66
+ /** The dropdown with the years. */
67
+ UI["YearsDropdown"] = "years_dropdown";
68
+ })(UI || (UI = {}));
69
+ /** Enum representing flags for the {@link UI.Day} element. */
70
+ var DayFlag;
71
+ (function (DayFlag) {
72
+ /** The day is disabled. */
73
+ DayFlag["disabled"] = "disabled";
74
+ /** The day is hidden. */
75
+ DayFlag["hidden"] = "hidden";
76
+ /** The day is outside the current month. */
77
+ DayFlag["outside"] = "outside";
78
+ /** The day is focused. */
79
+ DayFlag["focused"] = "focused";
80
+ /** The day is today. */
81
+ DayFlag["today"] = "today";
82
+ })(DayFlag || (DayFlag = {}));
83
+ /**
84
+ * Enum representing selection states that can be applied to the {@link UI.Day}
85
+ * element in selection mode.
86
+ */
87
+ var SelectionState;
88
+ (function (SelectionState) {
89
+ /** The day is at the end of a selected range. */
90
+ SelectionState["range_end"] = "range_end";
91
+ /** The day is at the middle of a selected range. */
92
+ SelectionState["range_middle"] = "range_middle";
93
+ /** The day is at the start of a selected range. */
94
+ SelectionState["range_start"] = "range_start";
95
+ /** The day is selected. */
96
+ SelectionState["selected"] = "selected";
97
+ })(SelectionState || (SelectionState = {}));
98
+ /**
99
+ * Enum representing different animation states for transitioning between
100
+ * months.
101
+ */
102
+ var Animation;
103
+ (function (Animation) {
104
+ /** The entering weeks when they appear before the exiting month. */
105
+ Animation["weeks_before_enter"] = "weeks_before_enter";
106
+ /** The exiting weeks when they disappear before the entering month. */
107
+ Animation["weeks_before_exit"] = "weeks_before_exit";
108
+ /** The entering weeks when they appear after the exiting month. */
109
+ Animation["weeks_after_enter"] = "weeks_after_enter";
110
+ /** The exiting weeks when they disappear after the entering month. */
111
+ Animation["weeks_after_exit"] = "weeks_after_exit";
112
+ /** The entering caption when it appears after the exiting month. */
113
+ Animation["caption_after_enter"] = "caption_after_enter";
114
+ /** The exiting caption when it disappears after the entering month. */
115
+ Animation["caption_after_exit"] = "caption_after_exit";
116
+ /** The entering caption when it appears before the exiting month. */
117
+ Animation["caption_before_enter"] = "caption_before_enter";
118
+ /** The exiting caption when it disappears before the entering month. */
119
+ Animation["caption_before_exit"] = "caption_before_exit";
120
+ })(Animation || (Animation = {}));
121
+
122
+ export { Animation, DayFlag, SelectionState, UI };
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ const DateLib = require('./DateLib.cjs');
4
+
5
+ /**
6
+ * Represents a day displayed in the calendar.
7
+ *
8
+ * In DayPicker, a `CalendarDay` is a wrapper around a `Date` object that
9
+ * provides additional information about the day, such as whether it belongs to
10
+ * the displayed month.
11
+ */
12
+ class CalendarDay {
13
+ constructor(date, displayMonth, dateLib = DateLib.defaultDateLib) {
14
+ this.date = date;
15
+ this.displayMonth = displayMonth;
16
+ this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));
17
+ this.dateLib = dateLib;
18
+ this.isoDate = dateLib.format(date, "yyyy-MM-dd");
19
+ this.displayMonthId = dateLib.format(displayMonth, "yyyy-MM");
20
+ this.dateMonthId = dateLib.format(date, "yyyy-MM");
21
+ }
22
+ /**
23
+ * Checks if this day is equal to another `CalendarDay`, considering both the
24
+ * date and the displayed month.
25
+ *
26
+ * @param day The `CalendarDay` to compare with.
27
+ * @returns `true` if the days are equal, otherwise `false`.
28
+ */
29
+ isEqualTo(day) {
30
+ return (this.dateLib.isSameDay(day.date, this.date) &&
31
+ this.dateLib.isSameMonth(day.displayMonth, this.displayMonth));
32
+ }
33
+ }
34
+
35
+ exports.CalendarDay = CalendarDay;
@@ -0,0 +1,33 @@
1
+ import { defaultDateLib } from './DateLib.mjs';
2
+
3
+ /**
4
+ * Represents a day displayed in the calendar.
5
+ *
6
+ * In DayPicker, a `CalendarDay` is a wrapper around a `Date` object that
7
+ * provides additional information about the day, such as whether it belongs to
8
+ * the displayed month.
9
+ */
10
+ class CalendarDay {
11
+ constructor(date, displayMonth, dateLib = defaultDateLib) {
12
+ this.date = date;
13
+ this.displayMonth = displayMonth;
14
+ this.outside = Boolean(displayMonth && !dateLib.isSameMonth(date, displayMonth));
15
+ this.dateLib = dateLib;
16
+ this.isoDate = dateLib.format(date, "yyyy-MM-dd");
17
+ this.displayMonthId = dateLib.format(displayMonth, "yyyy-MM");
18
+ this.dateMonthId = dateLib.format(date, "yyyy-MM");
19
+ }
20
+ /**
21
+ * Checks if this day is equal to another `CalendarDay`, considering both the
22
+ * date and the displayed month.
23
+ *
24
+ * @param day The `CalendarDay` to compare with.
25
+ * @returns `true` if the days are equal, otherwise `false`.
26
+ */
27
+ isEqualTo(day) {
28
+ return (this.dateLib.isSameDay(day.date, this.date) &&
29
+ this.dateLib.isSameMonth(day.displayMonth, this.displayMonth));
30
+ }
31
+ }
32
+
33
+ export { CalendarDay };
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Represents a month in a calendar year.
5
+ *
6
+ * A `CalendarMonth` contains the weeks within the month and the date of the
7
+ * month.
8
+ */
9
+ class CalendarMonth {
10
+ constructor(month, weeks) {
11
+ this.date = month;
12
+ this.weeks = weeks;
13
+ }
14
+ }
15
+
16
+ exports.CalendarMonth = CalendarMonth;