@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,14 @@
1
+ /**
2
+ * Represents a month in a calendar year.
3
+ *
4
+ * A `CalendarMonth` contains the weeks within the month and the date of the
5
+ * month.
6
+ */
7
+ class CalendarMonth {
8
+ constructor(month, weeks) {
9
+ this.date = month;
10
+ this.weeks = weeks;
11
+ }
12
+ }
13
+
14
+ export { CalendarMonth };
@@ -0,0 +1,15 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * Represents a week in a calendar month.
5
+ *
6
+ * A `CalendarWeek` contains the days within the week and the week number.
7
+ */
8
+ class CalendarWeek {
9
+ constructor(weekNumber, days) {
10
+ this.days = days;
11
+ this.weekNumber = weekNumber;
12
+ }
13
+ }
14
+
15
+ exports.CalendarWeek = CalendarWeek;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Represents a week in a calendar month.
3
+ *
4
+ * A `CalendarWeek` contains the days within the week and the week number.
5
+ */
6
+ class CalendarWeek {
7
+ constructor(weekNumber, days) {
8
+ this.days = days;
9
+ this.weekNumber = weekNumber;
10
+ }
11
+ }
12
+
13
+ export { CalendarWeek };
@@ -0,0 +1,577 @@
1
+ 'use strict';
2
+
3
+ const index = require('../../../../../../@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.cjs');
4
+ require('../../../../../../@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.cjs');
5
+ const dateFns = require('date-fns');
6
+ const endOfBroadcastWeek = require('../helpers/endOfBroadcastWeek.cjs');
7
+ const startOfBroadcastWeek = require('../helpers/startOfBroadcastWeek.cjs');
8
+ const enUS = require('../locale/en-US.cjs');
9
+
10
+ /**
11
+ * A wrapper class around [date-fns](http://date-fns.org) that provides utility
12
+ * methods for date manipulation and formatting.
13
+ *
14
+ * @since 9.2.0
15
+ * @example
16
+ * const dateLib = new DateLib({ locale: es });
17
+ * const newDate = dateLib.addDays(new Date(), 5);
18
+ */
19
+ class DateLib {
20
+ /**
21
+ * Creates an instance of `DateLib`.
22
+ *
23
+ * @param options Configuration options for the date library.
24
+ * @param overrides Custom overrides for the date library functions.
25
+ */
26
+ constructor(options, overrides) {
27
+ /**
28
+ * Reference to the built-in Date constructor.
29
+ *
30
+ * @deprecated Use `newDate()` or `today()`.
31
+ */
32
+ this.Date = Date;
33
+ /**
34
+ * Creates a new `Date` object representing today's date.
35
+ *
36
+ * @since 9.5.0
37
+ * @returns A `Date` object for today's date.
38
+ */
39
+ this.today = () => {
40
+ if (this.overrides?.today) {
41
+ return this.overrides.today();
42
+ }
43
+ if (this.options.timeZone) {
44
+ return index.TZDate.tz(this.options.timeZone);
45
+ }
46
+ return new this.Date();
47
+ };
48
+ /**
49
+ * Creates a new `Date` object with the specified year, month, and day.
50
+ *
51
+ * @since 9.5.0
52
+ * @param year The year.
53
+ * @param monthIndex The month (0-11).
54
+ * @param date The day of the month.
55
+ * @returns A new `Date` object.
56
+ */
57
+ this.newDate = (year, monthIndex, date) => {
58
+ if (this.overrides?.newDate) {
59
+ return this.overrides.newDate(year, monthIndex, date);
60
+ }
61
+ if (this.options.timeZone) {
62
+ return new index.TZDate(year, monthIndex, date, this.options.timeZone);
63
+ }
64
+ return new Date(year, monthIndex, date);
65
+ };
66
+ /**
67
+ * Adds the specified number of days to the given date.
68
+ *
69
+ * @param date The date to add days to.
70
+ * @param amount The number of days to add.
71
+ * @returns The new date with the days added.
72
+ */
73
+ this.addDays = (date, amount) => {
74
+ return this.overrides?.addDays
75
+ ? this.overrides.addDays(date, amount)
76
+ : dateFns.addDays(date, amount);
77
+ };
78
+ /**
79
+ * Adds the specified number of months to the given date.
80
+ *
81
+ * @param date The date to add months to.
82
+ * @param amount The number of months to add.
83
+ * @returns The new date with the months added.
84
+ */
85
+ this.addMonths = (date, amount) => {
86
+ return this.overrides?.addMonths
87
+ ? this.overrides.addMonths(date, amount)
88
+ : dateFns.addMonths(date, amount);
89
+ };
90
+ /**
91
+ * Adds the specified number of weeks to the given date.
92
+ *
93
+ * @param date The date to add weeks to.
94
+ * @param amount The number of weeks to add.
95
+ * @returns The new date with the weeks added.
96
+ */
97
+ this.addWeeks = (date, amount) => {
98
+ return this.overrides?.addWeeks
99
+ ? this.overrides.addWeeks(date, amount)
100
+ : dateFns.addWeeks(date, amount);
101
+ };
102
+ /**
103
+ * Adds the specified number of years to the given date.
104
+ *
105
+ * @param date The date to add years to.
106
+ * @param amount The number of years to add.
107
+ * @returns The new date with the years added.
108
+ */
109
+ this.addYears = (date, amount) => {
110
+ return this.overrides?.addYears
111
+ ? this.overrides.addYears(date, amount)
112
+ : dateFns.addYears(date, amount);
113
+ };
114
+ /**
115
+ * Returns the number of calendar days between the given dates.
116
+ *
117
+ * @param dateLeft The later date.
118
+ * @param dateRight The earlier date.
119
+ * @returns The number of calendar days between the dates.
120
+ */
121
+ this.differenceInCalendarDays = (dateLeft, dateRight) => {
122
+ return this.overrides?.differenceInCalendarDays
123
+ ? this.overrides.differenceInCalendarDays(dateLeft, dateRight)
124
+ : dateFns.differenceInCalendarDays(dateLeft, dateRight);
125
+ };
126
+ /**
127
+ * Returns the number of calendar months between the given dates.
128
+ *
129
+ * @param dateLeft The later date.
130
+ * @param dateRight The earlier date.
131
+ * @returns The number of calendar months between the dates.
132
+ */
133
+ this.differenceInCalendarMonths = (dateLeft, dateRight) => {
134
+ return this.overrides?.differenceInCalendarMonths
135
+ ? this.overrides.differenceInCalendarMonths(dateLeft, dateRight)
136
+ : dateFns.differenceInCalendarMonths(dateLeft, dateRight);
137
+ };
138
+ /**
139
+ * Returns the months between the given dates.
140
+ *
141
+ * @param interval The interval to get the months for.
142
+ */
143
+ this.eachMonthOfInterval = (interval) => {
144
+ return this.overrides?.eachMonthOfInterval
145
+ ? this.overrides.eachMonthOfInterval(interval)
146
+ : dateFns.eachMonthOfInterval(interval);
147
+ };
148
+ /**
149
+ * Returns the years between the given dates.
150
+ *
151
+ * @since 9.11.1
152
+ * @param interval The interval to get the years for.
153
+ * @returns The array of years in the interval.
154
+ */
155
+ this.eachYearOfInterval = (interval) => {
156
+ const years = this.overrides?.eachYearOfInterval
157
+ ? this.overrides.eachYearOfInterval(interval)
158
+ : dateFns.eachYearOfInterval(interval);
159
+ // Remove duplicates that may happen across DST transitions (e.g., "America/Sao_Paulo")
160
+ // See https://github.com/date-fns/tz/issues/72
161
+ const uniqueYears = new Set(years.map((d) => this.getYear(d)));
162
+ if (uniqueYears.size === years.length) {
163
+ // No duplicates, return as is
164
+ return years;
165
+ }
166
+ // Rebuild the array to ensure one date per year
167
+ const yearsArray = [];
168
+ uniqueYears.forEach((y) => {
169
+ yearsArray.push(new Date(y, 0, 1));
170
+ });
171
+ return yearsArray;
172
+ };
173
+ /**
174
+ * Returns the end of the broadcast week for the given date.
175
+ *
176
+ * @param date The original date.
177
+ * @returns The end of the broadcast week.
178
+ */
179
+ this.endOfBroadcastWeek = (date) => {
180
+ return this.overrides?.endOfBroadcastWeek
181
+ ? this.overrides.endOfBroadcastWeek(date)
182
+ : endOfBroadcastWeek.endOfBroadcastWeek(date, this);
183
+ };
184
+ /**
185
+ * Returns the end of the ISO week for the given date.
186
+ *
187
+ * @param date The original date.
188
+ * @returns The end of the ISO week.
189
+ */
190
+ this.endOfISOWeek = (date) => {
191
+ return this.overrides?.endOfISOWeek
192
+ ? this.overrides.endOfISOWeek(date)
193
+ : dateFns.endOfISOWeek(date);
194
+ };
195
+ /**
196
+ * Returns the end of the month for the given date.
197
+ *
198
+ * @param date The original date.
199
+ * @returns The end of the month.
200
+ */
201
+ this.endOfMonth = (date) => {
202
+ return this.overrides?.endOfMonth
203
+ ? this.overrides.endOfMonth(date)
204
+ : dateFns.endOfMonth(date);
205
+ };
206
+ /**
207
+ * Returns the end of the week for the given date.
208
+ *
209
+ * @param date The original date.
210
+ * @returns The end of the week.
211
+ */
212
+ this.endOfWeek = (date, options) => {
213
+ return this.overrides?.endOfWeek
214
+ ? this.overrides.endOfWeek(date, options)
215
+ : dateFns.endOfWeek(date, this.options);
216
+ };
217
+ /**
218
+ * Returns the end of the year for the given date.
219
+ *
220
+ * @param date The original date.
221
+ * @returns The end of the year.
222
+ */
223
+ this.endOfYear = (date) => {
224
+ return this.overrides?.endOfYear
225
+ ? this.overrides.endOfYear(date)
226
+ : dateFns.endOfYear(date);
227
+ };
228
+ /**
229
+ * Formats the given date using the specified format string.
230
+ *
231
+ * @param date The date to format.
232
+ * @param formatStr The format string.
233
+ * @returns The formatted date string.
234
+ */
235
+ this.format = (date, formatStr, _options) => {
236
+ const formatted = this.overrides?.format
237
+ ? this.overrides.format(date, formatStr, this.options)
238
+ : dateFns.format(date, formatStr, this.options);
239
+ if (this.options.numerals && this.options.numerals !== "latn") {
240
+ return this.replaceDigits(formatted);
241
+ }
242
+ return formatted;
243
+ };
244
+ /**
245
+ * Returns the ISO week number for the given date.
246
+ *
247
+ * @param date The date to get the ISO week number for.
248
+ * @returns The ISO week number.
249
+ */
250
+ this.getISOWeek = (date) => {
251
+ return this.overrides?.getISOWeek
252
+ ? this.overrides.getISOWeek(date)
253
+ : dateFns.getISOWeek(date);
254
+ };
255
+ /**
256
+ * Returns the month of the given date.
257
+ *
258
+ * @param date The date to get the month for.
259
+ * @returns The month.
260
+ */
261
+ this.getMonth = (date, _options) => {
262
+ return this.overrides?.getMonth
263
+ ? this.overrides.getMonth(date, this.options)
264
+ : dateFns.getMonth(date, this.options);
265
+ };
266
+ /**
267
+ * Returns the year of the given date.
268
+ *
269
+ * @param date The date to get the year for.
270
+ * @returns The year.
271
+ */
272
+ this.getYear = (date, _options) => {
273
+ return this.overrides?.getYear
274
+ ? this.overrides.getYear(date, this.options)
275
+ : dateFns.getYear(date, this.options);
276
+ };
277
+ /**
278
+ * Returns the local week number for the given date.
279
+ *
280
+ * @param date The date to get the week number for.
281
+ * @returns The week number.
282
+ */
283
+ this.getWeek = (date, _options) => {
284
+ return this.overrides?.getWeek
285
+ ? this.overrides.getWeek(date, this.options)
286
+ : dateFns.getWeek(date, this.options);
287
+ };
288
+ /**
289
+ * Checks if the first date is after the second date.
290
+ *
291
+ * @param date The date to compare.
292
+ * @param dateToCompare The date to compare with.
293
+ * @returns True if the first date is after the second date.
294
+ */
295
+ this.isAfter = (date, dateToCompare) => {
296
+ return this.overrides?.isAfter
297
+ ? this.overrides.isAfter(date, dateToCompare)
298
+ : dateFns.isAfter(date, dateToCompare);
299
+ };
300
+ /**
301
+ * Checks if the first date is before the second date.
302
+ *
303
+ * @param date The date to compare.
304
+ * @param dateToCompare The date to compare with.
305
+ * @returns True if the first date is before the second date.
306
+ */
307
+ this.isBefore = (date, dateToCompare) => {
308
+ return this.overrides?.isBefore
309
+ ? this.overrides.isBefore(date, dateToCompare)
310
+ : dateFns.isBefore(date, dateToCompare);
311
+ };
312
+ /**
313
+ * Checks if the given value is a Date object.
314
+ *
315
+ * @param value The value to check.
316
+ * @returns True if the value is a Date object.
317
+ */
318
+ this.isDate = (value) => {
319
+ return this.overrides?.isDate
320
+ ? this.overrides.isDate(value)
321
+ : dateFns.isDate(value);
322
+ };
323
+ /**
324
+ * Checks if the given dates are on the same day.
325
+ *
326
+ * @param dateLeft The first date to compare.
327
+ * @param dateRight The second date to compare.
328
+ * @returns True if the dates are on the same day.
329
+ */
330
+ this.isSameDay = (dateLeft, dateRight) => {
331
+ return this.overrides?.isSameDay
332
+ ? this.overrides.isSameDay(dateLeft, dateRight)
333
+ : dateFns.isSameDay(dateLeft, dateRight);
334
+ };
335
+ /**
336
+ * Checks if the given dates are in the same month.
337
+ *
338
+ * @param dateLeft The first date to compare.
339
+ * @param dateRight The second date to compare.
340
+ * @returns True if the dates are in the same month.
341
+ */
342
+ this.isSameMonth = (dateLeft, dateRight) => {
343
+ return this.overrides?.isSameMonth
344
+ ? this.overrides.isSameMonth(dateLeft, dateRight)
345
+ : dateFns.isSameMonth(dateLeft, dateRight);
346
+ };
347
+ /**
348
+ * Checks if the given dates are in the same year.
349
+ *
350
+ * @param dateLeft The first date to compare.
351
+ * @param dateRight The second date to compare.
352
+ * @returns True if the dates are in the same year.
353
+ */
354
+ this.isSameYear = (dateLeft, dateRight) => {
355
+ return this.overrides?.isSameYear
356
+ ? this.overrides.isSameYear(dateLeft, dateRight)
357
+ : dateFns.isSameYear(dateLeft, dateRight);
358
+ };
359
+ /**
360
+ * Returns the latest date in the given array of dates.
361
+ *
362
+ * @param dates The array of dates to compare.
363
+ * @returns The latest date.
364
+ */
365
+ this.max = (dates) => {
366
+ return this.overrides?.max ? this.overrides.max(dates) : dateFns.max(dates);
367
+ };
368
+ /**
369
+ * Returns the earliest date in the given array of dates.
370
+ *
371
+ * @param dates The array of dates to compare.
372
+ * @returns The earliest date.
373
+ */
374
+ this.min = (dates) => {
375
+ return this.overrides?.min ? this.overrides.min(dates) : dateFns.min(dates);
376
+ };
377
+ /**
378
+ * Sets the month of the given date.
379
+ *
380
+ * @param date The date to set the month on.
381
+ * @param month The month to set (0-11).
382
+ * @returns The new date with the month set.
383
+ */
384
+ this.setMonth = (date, month) => {
385
+ return this.overrides?.setMonth
386
+ ? this.overrides.setMonth(date, month)
387
+ : dateFns.setMonth(date, month);
388
+ };
389
+ /**
390
+ * Sets the year of the given date.
391
+ *
392
+ * @param date The date to set the year on.
393
+ * @param year The year to set.
394
+ * @returns The new date with the year set.
395
+ */
396
+ this.setYear = (date, year) => {
397
+ return this.overrides?.setYear
398
+ ? this.overrides.setYear(date, year)
399
+ : dateFns.setYear(date, year);
400
+ };
401
+ /**
402
+ * Returns the start of the broadcast week for the given date.
403
+ *
404
+ * @param date The original date.
405
+ * @returns The start of the broadcast week.
406
+ */
407
+ this.startOfBroadcastWeek = (date, _dateLib) => {
408
+ return this.overrides?.startOfBroadcastWeek
409
+ ? this.overrides.startOfBroadcastWeek(date, this)
410
+ : startOfBroadcastWeek.startOfBroadcastWeek(date, this);
411
+ };
412
+ /**
413
+ * Returns the start of the day for the given date.
414
+ *
415
+ * @param date The original date.
416
+ * @returns The start of the day.
417
+ */
418
+ this.startOfDay = (date) => {
419
+ return this.overrides?.startOfDay
420
+ ? this.overrides.startOfDay(date)
421
+ : dateFns.startOfDay(date);
422
+ };
423
+ /**
424
+ * Returns the start of the ISO week for the given date.
425
+ *
426
+ * @param date The original date.
427
+ * @returns The start of the ISO week.
428
+ */
429
+ this.startOfISOWeek = (date) => {
430
+ return this.overrides?.startOfISOWeek
431
+ ? this.overrides.startOfISOWeek(date)
432
+ : dateFns.startOfISOWeek(date);
433
+ };
434
+ /**
435
+ * Returns the start of the month for the given date.
436
+ *
437
+ * @param date The original date.
438
+ * @returns The start of the month.
439
+ */
440
+ this.startOfMonth = (date) => {
441
+ return this.overrides?.startOfMonth
442
+ ? this.overrides.startOfMonth(date)
443
+ : dateFns.startOfMonth(date);
444
+ };
445
+ /**
446
+ * Returns the start of the week for the given date.
447
+ *
448
+ * @param date The original date.
449
+ * @returns The start of the week.
450
+ */
451
+ this.startOfWeek = (date, _options) => {
452
+ return this.overrides?.startOfWeek
453
+ ? this.overrides.startOfWeek(date, this.options)
454
+ : dateFns.startOfWeek(date, this.options);
455
+ };
456
+ /**
457
+ * Returns the start of the year for the given date.
458
+ *
459
+ * @param date The original date.
460
+ * @returns The start of the year.
461
+ */
462
+ this.startOfYear = (date) => {
463
+ return this.overrides?.startOfYear
464
+ ? this.overrides.startOfYear(date)
465
+ : dateFns.startOfYear(date);
466
+ };
467
+ this.options = { locale: enUS.enUS, ...options };
468
+ this.overrides = overrides;
469
+ }
470
+ /**
471
+ * Generates a mapping of Arabic digits (0-9) to the target numbering system
472
+ * digits.
473
+ *
474
+ * @since 9.5.0
475
+ * @returns A record mapping Arabic digits to the target numerals.
476
+ */
477
+ getDigitMap() {
478
+ const { numerals = "latn" } = this.options;
479
+ // Use Intl.NumberFormat to create a formatter with the specified numbering system
480
+ const formatter = new Intl.NumberFormat("en-US", {
481
+ numberingSystem: numerals,
482
+ });
483
+ // Map Arabic digits (0-9) to the target numerals
484
+ const digitMap = {};
485
+ for (let i = 0; i < 10; i++) {
486
+ digitMap[i.toString()] = formatter.format(i);
487
+ }
488
+ return digitMap;
489
+ }
490
+ /**
491
+ * Replaces Arabic digits in a string with the target numbering system digits.
492
+ *
493
+ * @since 9.5.0
494
+ * @param input The string containing Arabic digits.
495
+ * @returns The string with digits replaced.
496
+ */
497
+ replaceDigits(input) {
498
+ const digitMap = this.getDigitMap();
499
+ return input.replace(/\d/g, (digit) => digitMap[digit] || digit);
500
+ }
501
+ /**
502
+ * Formats a number using the configured numbering system.
503
+ *
504
+ * @since 9.5.0
505
+ * @param value The number to format.
506
+ * @returns The formatted number as a string.
507
+ */
508
+ formatNumber(value) {
509
+ return this.replaceDigits(value.toString());
510
+ }
511
+ /**
512
+ * Returns the preferred ordering for month and year labels for the current
513
+ * locale.
514
+ */
515
+ getMonthYearOrder() {
516
+ const code = this.options.locale?.code;
517
+ if (!code) {
518
+ return "month-first";
519
+ }
520
+ return DateLib.yearFirstLocales.has(code) ? "year-first" : "month-first";
521
+ }
522
+ /**
523
+ * Formats the month/year pair respecting locale conventions.
524
+ *
525
+ * @since 9.11.0
526
+ */
527
+ formatMonthYear(date) {
528
+ const { locale, timeZone, numerals } = this.options;
529
+ const localeCode = locale?.code;
530
+ if (localeCode && DateLib.yearFirstLocales.has(localeCode)) {
531
+ try {
532
+ const intl = new Intl.DateTimeFormat(localeCode, {
533
+ month: "long",
534
+ year: "numeric",
535
+ timeZone,
536
+ numberingSystem: numerals,
537
+ });
538
+ const formatted = intl.format(date);
539
+ return formatted;
540
+ }
541
+ catch {
542
+ // Fallback to date-fns formatting below.
543
+ }
544
+ }
545
+ const pattern = this.getMonthYearOrder() === "year-first" ? "y LLLL" : "LLLL y";
546
+ return this.format(date, pattern);
547
+ }
548
+ }
549
+ DateLib.yearFirstLocales = new Set([
550
+ "eu",
551
+ "hu",
552
+ "ja",
553
+ "ja-Hira",
554
+ "ja-JP",
555
+ "ko",
556
+ "ko-KR",
557
+ "lt",
558
+ "lt-LT",
559
+ "lv",
560
+ "lv-LV",
561
+ "mn",
562
+ "mn-MN",
563
+ "zh",
564
+ "zh-CN",
565
+ "zh-HK",
566
+ "zh-TW",
567
+ ]);
568
+ /**
569
+ * The default date library with English locale.
570
+ *
571
+ * @since 9.2.0
572
+ */
573
+ const defaultDateLib = new DateLib();
574
+
575
+ exports.defaultLocale = enUS.enUS;
576
+ exports.DateLib = DateLib;
577
+ exports.defaultDateLib = defaultDateLib;