@btst/stack 1.4.1 → 1.5.0
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.
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.cjs +85 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/index.mjs +83 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.cjs +237 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/date/mini.mjs +235 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.cjs +41 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzName/index.mjs +39 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.cjs +46 -0
- package/dist/node_modules/.pnpm/@date-fns_tz@1.4.1/node_modules/@date-fns/tz/tzOffset/index.mjs +44 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.cjs +7 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-interface.mjs +7 -0
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.cjs +131 -124
- package/dist/packages/better-stack/src/plugins/ai-chat/client/components/chat-sidebar.mjs +131 -124
- package/dist/packages/better-stack/src/plugins/ai-chat/schemas.cjs +23 -23
- package/dist/packages/better-stack/src/plugins/blog/api/plugin.cjs +28 -12
- package/dist/packages/better-stack/src/plugins/blog/api/plugin.mjs +18 -2
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/form-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/list-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.cjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/loading/post-page-skeleton.mjs +1 -1
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/page-wrapper.cjs +10 -6
- package/dist/packages/better-stack/src/plugins/blog/client/components/shared/page-wrapper.mjs +11 -7
- package/dist/packages/better-stack/src/plugins/blog/schemas.cjs +17 -17
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.cjs +457 -0
- package/dist/packages/better-stack/src/plugins/cms/api/plugin.mjs +455 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.cjs +299 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/content-form.mjs +297 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.cjs +118 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/forms/file-upload.mjs +116 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.cjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/dashboard-skeleton.mjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/editor-skeleton.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.cjs +32 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/loading/list-skeleton.mjs +30 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.cjs +20 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/404-page.mjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.cjs +46 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.cjs +83 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.internal.mjs +81 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-editor-page.mjs +44 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.cjs +43 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.cjs +152 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.internal.mjs +150 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/content-list-page.mjs +41 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.cjs +39 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.cjs +68 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.internal.mjs +66 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/pages/dashboard-page.mjs +37 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/default-error.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.cjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/empty-state.mjs +14 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.cjs +27 -0
- package/dist/packages/better-stack/src/plugins/cms/client/components/shared/page-wrapper.mjs +25 -0
- package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.cjs +402 -0
- package/dist/packages/better-stack/src/plugins/cms/client/hooks/cms-hooks.mjs +390 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.cjs +29 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-common.mjs +27 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.cjs +13 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-dashboard.mjs +11 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.cjs +12 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-editor.mjs +10 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.cjs +18 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-list.mjs +16 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.cjs +12 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/cms-toasts.mjs +10 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/index.cjs +17 -0
- package/dist/packages/better-stack/src/plugins/cms/client/localization/index.mjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.cjs +185 -0
- package/dist/packages/better-stack/src/plugins/cms/client/plugin.mjs +183 -0
- package/dist/packages/better-stack/src/plugins/cms/db.cjs +76 -0
- package/dist/packages/better-stack/src/plugins/cms/db.mjs +74 -0
- package/dist/packages/better-stack/src/plugins/cms/schemas.cjs +54 -0
- package/dist/packages/better-stack/src/plugins/cms/schemas.mjs +49 -0
- package/dist/packages/better-stack/src/plugins/cms/utils.cjs +15 -0
- package/dist/packages/better-stack/src/plugins/cms/utils.mjs +9 -0
- package/dist/packages/ui/src/components/calendar.cjs +205 -0
- package/dist/packages/ui/src/components/calendar.mjs +188 -0
- package/dist/packages/ui/src/components/checkbox.cjs +34 -0
- package/dist/packages/ui/src/components/checkbox.mjs +32 -0
- package/dist/packages/ui/src/components/date-picker.cjs +41 -0
- package/dist/packages/ui/src/components/date-picker.mjs +39 -0
- package/dist/packages/ui/src/components/form.mjs +1 -1
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.cjs +2 -1
- package/dist/packages/{better-stack/src/plugins/blog/client/components/shared → ui/src/components}/page-layout.mjs +2 -1
- package/dist/packages/ui/src/components/page-wrapper.cjs +20 -0
- package/dist/packages/ui/src/components/page-wrapper.mjs +18 -0
- package/dist/packages/ui/src/components/popover.cjs +41 -0
- package/dist/packages/ui/src/components/popover.mjs +37 -0
- package/dist/packages/ui/src/components/radio-group.cjs +48 -0
- package/dist/packages/ui/src/components/radio-group.mjs +45 -0
- package/dist/packages/ui/src/components/separator.cjs +29 -0
- package/dist/packages/ui/src/components/separator.mjs +27 -0
- package/dist/packages/ui/src/components/table.cjs +89 -0
- package/dist/packages/ui/src/components/table.mjs +82 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/label.cjs +18 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/label.mjs +16 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.cjs +9 -0
- package/dist/packages/ui/src/components/ui/auto-form/common/tooltip.mjs +7 -0
- package/dist/packages/ui/src/components/ui/auto-form/config.cjs +42 -0
- package/dist/packages/ui/src/components/ui/auto-form/config.mjs +39 -0
- package/dist/packages/ui/src/components/ui/auto-form/dependencies.cjs +48 -0
- package/dist/packages/ui/src/components/ui/auto-form/dependencies.mjs +46 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/array.cjs +103 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/array.mjs +87 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.cjs +38 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/checkbox.mjs +36 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/date.cjs +37 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/date.mjs +35 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/enum.cjs +73 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/enum.mjs +71 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.cjs +63 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/file.mjs +61 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/input.cjs +32 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/input.mjs +30 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/number.cjs +31 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/number.mjs +29 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/object.cjs +149 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/object.mjs +133 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.cjs +67 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/radio-group.mjs +65 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/switch.cjs +38 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/switch.mjs +36 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.cjs +31 -0
- package/dist/packages/ui/src/components/ui/auto-form/fields/textarea.mjs +29 -0
- package/dist/packages/ui/src/components/ui/auto-form/index.cjs +87 -0
- package/dist/packages/ui/src/components/ui/auto-form/index.mjs +78 -0
- package/dist/packages/ui/src/components/ui/auto-form/types.cjs +11 -0
- package/dist/packages/ui/src/components/ui/auto-form/types.mjs +9 -0
- package/dist/packages/ui/src/components/ui/auto-form/utils.cjs +179 -0
- package/dist/packages/ui/src/components/ui/auto-form/utils.mjs +169 -0
- package/dist/plugins/ai-chat/api/index.d.cts +1 -1
- package/dist/plugins/ai-chat/api/index.d.mts +1 -1
- package/dist/plugins/ai-chat/api/index.d.ts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.cts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.mts +1 -1
- package/dist/plugins/ai-chat/client/hooks/index.d.ts +1 -1
- package/dist/plugins/ai-chat/query-keys.d.cts +56 -250
- package/dist/plugins/ai-chat/query-keys.d.mts +56 -250
- package/dist/plugins/ai-chat/query-keys.d.ts +56 -250
- package/dist/plugins/blog/query-keys.d.cts +102 -362
- package/dist/plugins/blog/query-keys.d.mts +102 -362
- package/dist/plugins/blog/query-keys.d.ts +102 -362
- package/dist/plugins/cms/api/index.cjs +7 -0
- package/dist/plugins/cms/api/index.d.cts +101 -0
- package/dist/plugins/cms/api/index.d.mts +101 -0
- package/dist/plugins/cms/api/index.d.ts +101 -0
- package/dist/plugins/cms/api/index.mjs +1 -0
- package/dist/plugins/cms/client/components/index.cjs +14 -0
- package/dist/plugins/cms/client/components/index.d.cts +20 -0
- package/dist/plugins/cms/client/components/index.d.mts +20 -0
- package/dist/plugins/cms/client/components/index.d.ts +20 -0
- package/dist/plugins/cms/client/components/index.mjs +10 -0
- package/dist/plugins/cms/client/hooks/index.cjs +17 -0
- package/dist/plugins/cms/client/hooks/index.d.cts +203 -0
- package/dist/plugins/cms/client/hooks/index.d.mts +203 -0
- package/dist/plugins/cms/client/hooks/index.d.ts +203 -0
- package/dist/plugins/cms/client/hooks/index.mjs +1 -0
- package/dist/plugins/cms/client/index.cjs +9 -0
- package/dist/plugins/cms/client/index.d.cts +344 -0
- package/dist/plugins/cms/client/index.d.mts +344 -0
- package/dist/plugins/cms/client/index.d.ts +344 -0
- package/dist/plugins/cms/client/index.mjs +2 -0
- package/dist/plugins/cms/client.css +2 -0
- package/dist/plugins/cms/query-keys.cjs +137 -0
- package/dist/plugins/cms/query-keys.d.cts +79 -0
- package/dist/plugins/cms/query-keys.d.mts +79 -0
- package/dist/plugins/cms/query-keys.d.ts +79 -0
- package/dist/plugins/cms/query-keys.mjs +135 -0
- package/dist/plugins/cms/style.css +19 -0
- package/dist/shared/stack.BwkyFwF8.d.cts +135 -0
- package/dist/shared/stack.DBqxCs0V.d.mts +135 -0
- package/dist/shared/stack.DwnJA87a.d.ts +135 -0
- package/dist/shared/stack.NZJogTUn.d.cts +66 -0
- package/dist/shared/stack.NZJogTUn.d.mts +66 -0
- package/dist/shared/stack.NZJogTUn.d.ts +66 -0
- package/package.json +58 -5
- package/src/plugins/ai-chat/client/components/chat-interface.tsx +15 -0
- package/src/plugins/ai-chat/client/components/chat-sidebar.tsx +4 -1
- package/src/plugins/blog/api/plugin.ts +29 -2
- package/src/plugins/blog/client/components/loading/form-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/loading/list-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/loading/post-page-skeleton.tsx +1 -1
- package/src/plugins/blog/client/components/shared/page-wrapper.tsx +9 -9
- package/src/plugins/cms/__tests__/schema-roundtrip.test.ts +611 -0
- package/src/plugins/cms/api/index.ts +1 -0
- package/src/plugins/cms/api/plugin.ts +611 -0
- package/src/plugins/cms/client/components/forms/content-form.tsx +477 -0
- package/src/plugins/cms/client/components/forms/file-upload.tsx +164 -0
- package/src/plugins/cms/client/components/index.tsx +10 -0
- package/src/plugins/cms/client/components/loading/dashboard-skeleton.tsx +22 -0
- package/src/plugins/cms/client/components/loading/editor-skeleton.tsx +35 -0
- package/src/plugins/cms/client/components/loading/index.tsx +3 -0
- package/src/plugins/cms/client/components/loading/list-skeleton.tsx +38 -0
- package/src/plugins/cms/client/components/pages/404-page.tsx +27 -0
- package/src/plugins/cms/client/components/pages/content-editor-page.internal.tsx +121 -0
- package/src/plugins/cms/client/components/pages/content-editor-page.tsx +50 -0
- package/src/plugins/cms/client/components/pages/content-list-page.internal.tsx +198 -0
- package/src/plugins/cms/client/components/pages/content-list-page.tsx +45 -0
- package/src/plugins/cms/client/components/pages/dashboard-page.internal.tsx +94 -0
- package/src/plugins/cms/client/components/pages/dashboard-page.tsx +37 -0
- package/src/plugins/cms/client/components/shared/default-error.tsx +30 -0
- package/src/plugins/cms/client/components/shared/empty-state.tsx +26 -0
- package/src/plugins/cms/client/components/shared/page-wrapper.tsx +32 -0
- package/src/plugins/cms/client/components/shared/pagination.tsx +72 -0
- package/src/plugins/cms/client/hooks/cms-hooks.tsx +724 -0
- package/src/plugins/cms/client/hooks/index.tsx +1 -0
- package/src/plugins/cms/client/index.ts +13 -0
- package/src/plugins/cms/client/localization/cms-common.ts +29 -0
- package/src/plugins/cms/client/localization/cms-dashboard.ts +10 -0
- package/src/plugins/cms/client/localization/cms-editor.ts +8 -0
- package/src/plugins/cms/client/localization/cms-list.ts +14 -0
- package/src/plugins/cms/client/localization/cms-toasts.ts +8 -0
- package/src/plugins/cms/client/localization/index.ts +15 -0
- package/src/plugins/cms/client/overrides.ts +166 -0
- package/src/plugins/cms/client/plugin.tsx +283 -0
- package/src/plugins/cms/client.css +2 -0
- package/src/plugins/cms/db.ts +76 -0
- package/src/plugins/cms/query-keys.ts +186 -0
- package/src/plugins/cms/schemas.ts +81 -0
- package/src/plugins/cms/style.css +19 -0
- package/src/plugins/cms/types.ts +220 -0
- package/src/plugins/cms/utils.ts +11 -0
- package/src/plugins/blog/client/components/shared/page-layout.tsx +0 -23
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import { useRef, useLayoutEffect } from 'react';
|
|
2
|
+
import { Animation } from './UI.mjs';
|
|
3
|
+
|
|
4
|
+
const asHtmlElement = (element) => {
|
|
5
|
+
if (element instanceof HTMLElement)
|
|
6
|
+
return element;
|
|
7
|
+
return null;
|
|
8
|
+
};
|
|
9
|
+
const queryMonthEls = (element) => [
|
|
10
|
+
...(element.querySelectorAll("[data-animated-month]") ?? []),
|
|
11
|
+
];
|
|
12
|
+
const queryMonthEl = (element) => asHtmlElement(element.querySelector("[data-animated-month]"));
|
|
13
|
+
const queryCaptionEl = (element) => asHtmlElement(element.querySelector("[data-animated-caption]"));
|
|
14
|
+
const queryWeeksEl = (element) => asHtmlElement(element.querySelector("[data-animated-weeks]"));
|
|
15
|
+
const queryNavEl = (element) => asHtmlElement(element.querySelector("[data-animated-nav]"));
|
|
16
|
+
const queryWeekdaysEl = (element) => asHtmlElement(element.querySelector("[data-animated-weekdays]"));
|
|
17
|
+
/**
|
|
18
|
+
* Handles animations for transitioning between months in the DayPicker
|
|
19
|
+
* component.
|
|
20
|
+
*
|
|
21
|
+
* @private
|
|
22
|
+
* @param rootElRef - A reference to the root element of the DayPicker
|
|
23
|
+
* component.
|
|
24
|
+
* @param enabled - Whether animations are enabled.
|
|
25
|
+
* @param options - Configuration options for the animation, including class
|
|
26
|
+
* names, months, focused day, and the date utility library.
|
|
27
|
+
*/
|
|
28
|
+
function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib, }) {
|
|
29
|
+
const previousRootElSnapshotRef = useRef(null);
|
|
30
|
+
const previousMonthsRef = useRef(months);
|
|
31
|
+
const animatingRef = useRef(false);
|
|
32
|
+
useLayoutEffect(() => {
|
|
33
|
+
// get previous months before updating the previous months ref
|
|
34
|
+
const previousMonths = previousMonthsRef.current;
|
|
35
|
+
// update previous months ref for next effect trigger
|
|
36
|
+
previousMonthsRef.current = months;
|
|
37
|
+
if (!enabled ||
|
|
38
|
+
!rootElRef.current ||
|
|
39
|
+
// safety check because the ref can be set to anything by consumers
|
|
40
|
+
!(rootElRef.current instanceof HTMLElement) ||
|
|
41
|
+
// validation required for the animation to work as expected
|
|
42
|
+
months.length === 0 ||
|
|
43
|
+
previousMonths.length === 0 ||
|
|
44
|
+
months.length !== previousMonths.length) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
const isSameMonth = dateLib.isSameMonth(months[0].date, previousMonths[0].date);
|
|
48
|
+
const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);
|
|
49
|
+
const captionAnimationClass = isAfterPreviousMonth
|
|
50
|
+
? classNames[Animation.caption_after_enter]
|
|
51
|
+
: classNames[Animation.caption_before_enter];
|
|
52
|
+
const weeksAnimationClass = isAfterPreviousMonth
|
|
53
|
+
? classNames[Animation.weeks_after_enter]
|
|
54
|
+
: classNames[Animation.weeks_before_enter];
|
|
55
|
+
// get previous root element snapshot before updating the snapshot ref
|
|
56
|
+
const previousRootElSnapshot = previousRootElSnapshotRef.current;
|
|
57
|
+
// update snapshot for next effect trigger
|
|
58
|
+
const rootElSnapshot = rootElRef.current.cloneNode(true);
|
|
59
|
+
if (rootElSnapshot instanceof HTMLElement) {
|
|
60
|
+
// if this effect is triggered while animating, we need to clean up the new root snapshot
|
|
61
|
+
// to put it in the same state as when not animating, to correctly animate the next month change
|
|
62
|
+
const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);
|
|
63
|
+
currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {
|
|
64
|
+
if (!(currentMonthElSnapshot instanceof HTMLElement))
|
|
65
|
+
return;
|
|
66
|
+
// remove the old month snapshots from the new root snapshot
|
|
67
|
+
const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);
|
|
68
|
+
if (previousMonthElSnapshot &&
|
|
69
|
+
currentMonthElSnapshot.contains(previousMonthElSnapshot)) {
|
|
70
|
+
currentMonthElSnapshot.removeChild(previousMonthElSnapshot);
|
|
71
|
+
}
|
|
72
|
+
// remove animation classes from the new month snapshots
|
|
73
|
+
const captionEl = queryCaptionEl(currentMonthElSnapshot);
|
|
74
|
+
if (captionEl) {
|
|
75
|
+
captionEl.classList.remove(captionAnimationClass);
|
|
76
|
+
}
|
|
77
|
+
const weeksEl = queryWeeksEl(currentMonthElSnapshot);
|
|
78
|
+
if (weeksEl) {
|
|
79
|
+
weeksEl.classList.remove(weeksAnimationClass);
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
previousRootElSnapshotRef.current = rootElSnapshot;
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
previousRootElSnapshotRef.current = null;
|
|
86
|
+
}
|
|
87
|
+
if (animatingRef.current ||
|
|
88
|
+
isSameMonth ||
|
|
89
|
+
// skip animation if a day is focused because it can cause issues to the animation and is better for a11y
|
|
90
|
+
focused) {
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
const previousMonthEls = previousRootElSnapshot instanceof HTMLElement
|
|
94
|
+
? queryMonthEls(previousRootElSnapshot)
|
|
95
|
+
: [];
|
|
96
|
+
const currentMonthEls = queryMonthEls(rootElRef.current);
|
|
97
|
+
if (currentMonthEls?.every((el) => el instanceof HTMLElement) &&
|
|
98
|
+
previousMonthEls &&
|
|
99
|
+
previousMonthEls.every((el) => el instanceof HTMLElement)) {
|
|
100
|
+
animatingRef.current = true;
|
|
101
|
+
// set isolation to isolate to isolate the stacking context during animation
|
|
102
|
+
rootElRef.current.style.isolation = "isolate";
|
|
103
|
+
// set z-index to 1 to ensure the nav is clickable over the other elements being animated
|
|
104
|
+
const navEl = queryNavEl(rootElRef.current);
|
|
105
|
+
if (navEl) {
|
|
106
|
+
navEl.style.zIndex = "1";
|
|
107
|
+
}
|
|
108
|
+
currentMonthEls.forEach((currentMonthEl, index) => {
|
|
109
|
+
const previousMonthEl = previousMonthEls[index];
|
|
110
|
+
if (!previousMonthEl) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
// animate new displayed month
|
|
114
|
+
currentMonthEl.style.position = "relative";
|
|
115
|
+
currentMonthEl.style.overflow = "hidden";
|
|
116
|
+
const captionEl = queryCaptionEl(currentMonthEl);
|
|
117
|
+
if (captionEl) {
|
|
118
|
+
captionEl.classList.add(captionAnimationClass);
|
|
119
|
+
}
|
|
120
|
+
const weeksEl = queryWeeksEl(currentMonthEl);
|
|
121
|
+
if (weeksEl) {
|
|
122
|
+
weeksEl.classList.add(weeksAnimationClass);
|
|
123
|
+
}
|
|
124
|
+
// animate new displayed month end
|
|
125
|
+
const cleanUp = () => {
|
|
126
|
+
animatingRef.current = false;
|
|
127
|
+
if (rootElRef.current) {
|
|
128
|
+
rootElRef.current.style.isolation = "";
|
|
129
|
+
}
|
|
130
|
+
if (navEl) {
|
|
131
|
+
navEl.style.zIndex = "";
|
|
132
|
+
}
|
|
133
|
+
if (captionEl) {
|
|
134
|
+
captionEl.classList.remove(captionAnimationClass);
|
|
135
|
+
}
|
|
136
|
+
if (weeksEl) {
|
|
137
|
+
weeksEl.classList.remove(weeksAnimationClass);
|
|
138
|
+
}
|
|
139
|
+
currentMonthEl.style.position = "";
|
|
140
|
+
currentMonthEl.style.overflow = "";
|
|
141
|
+
if (currentMonthEl.contains(previousMonthEl)) {
|
|
142
|
+
currentMonthEl.removeChild(previousMonthEl);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
// animate old displayed month
|
|
146
|
+
previousMonthEl.style.pointerEvents = "none";
|
|
147
|
+
previousMonthEl.style.position = "absolute";
|
|
148
|
+
previousMonthEl.style.overflow = "hidden";
|
|
149
|
+
previousMonthEl.setAttribute("aria-hidden", "true");
|
|
150
|
+
// hide the weekdays container of the old month and only the new one
|
|
151
|
+
const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);
|
|
152
|
+
if (previousWeekdaysEl) {
|
|
153
|
+
previousWeekdaysEl.style.opacity = "0";
|
|
154
|
+
}
|
|
155
|
+
const previousCaptionEl = queryCaptionEl(previousMonthEl);
|
|
156
|
+
if (previousCaptionEl) {
|
|
157
|
+
previousCaptionEl.classList.add(isAfterPreviousMonth
|
|
158
|
+
? classNames[Animation.caption_before_exit]
|
|
159
|
+
: classNames[Animation.caption_after_exit]);
|
|
160
|
+
previousCaptionEl.addEventListener("animationend", cleanUp);
|
|
161
|
+
}
|
|
162
|
+
const previousWeeksEl = queryWeeksEl(previousMonthEl);
|
|
163
|
+
if (previousWeeksEl) {
|
|
164
|
+
previousWeeksEl.classList.add(isAfterPreviousMonth
|
|
165
|
+
? classNames[Animation.weeks_before_exit]
|
|
166
|
+
: classNames[Animation.weeks_after_exit]);
|
|
167
|
+
}
|
|
168
|
+
currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export { useAnimation };
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
const getDates = require('./helpers/getDates.cjs');
|
|
5
|
+
const getDays = require('./helpers/getDays.cjs');
|
|
6
|
+
const getDisplayMonths = require('./helpers/getDisplayMonths.cjs');
|
|
7
|
+
const getInitialMonth = require('./helpers/getInitialMonth.cjs');
|
|
8
|
+
const getMonths = require('./helpers/getMonths.cjs');
|
|
9
|
+
const getNavMonth = require('./helpers/getNavMonth.cjs');
|
|
10
|
+
const getNextMonth = require('./helpers/getNextMonth.cjs');
|
|
11
|
+
const getPreviousMonth = require('./helpers/getPreviousMonth.cjs');
|
|
12
|
+
const getWeeks = require('./helpers/getWeeks.cjs');
|
|
13
|
+
const useControlledValue = require('./helpers/useControlledValue.cjs');
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Provides the calendar object to work with the calendar in custom components.
|
|
17
|
+
*
|
|
18
|
+
* @private
|
|
19
|
+
* @param props - The DayPicker props related to calendar configuration.
|
|
20
|
+
* @param dateLib - The date utility library instance.
|
|
21
|
+
* @returns The calendar object containing displayed days, weeks, months, and
|
|
22
|
+
* navigation methods.
|
|
23
|
+
*/
|
|
24
|
+
function useCalendar(props, dateLib) {
|
|
25
|
+
const [navStart, navEnd] = getNavMonth.getNavMonths(props, dateLib);
|
|
26
|
+
const { startOfMonth, endOfMonth } = dateLib;
|
|
27
|
+
const initialMonth = getInitialMonth.getInitialMonth(props, navStart, navEnd, dateLib);
|
|
28
|
+
const [firstMonth, setFirstMonth] = useControlledValue.useControlledValue(initialMonth,
|
|
29
|
+
// initialMonth is always computed from props.month if provided
|
|
30
|
+
props.month ? initialMonth : undefined);
|
|
31
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.
|
|
32
|
+
React.useEffect(() => {
|
|
33
|
+
const newInitialMonth = getInitialMonth.getInitialMonth(props, navStart, navEnd, dateLib);
|
|
34
|
+
setFirstMonth(newInitialMonth);
|
|
35
|
+
}, [props.timeZone]);
|
|
36
|
+
/** The months displayed in the calendar. */
|
|
37
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: We want to recompute only when specific props change.
|
|
38
|
+
const { months, weeks, days, previousMonth, nextMonth } = React.useMemo(() => {
|
|
39
|
+
const displayMonths = getDisplayMonths.getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);
|
|
40
|
+
const dates = getDates.getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, {
|
|
41
|
+
ISOWeek: props.ISOWeek,
|
|
42
|
+
fixedWeeks: props.fixedWeeks,
|
|
43
|
+
broadcastCalendar: props.broadcastCalendar,
|
|
44
|
+
}, dateLib);
|
|
45
|
+
const months = getMonths.getMonths(displayMonths, dates, {
|
|
46
|
+
broadcastCalendar: props.broadcastCalendar,
|
|
47
|
+
fixedWeeks: props.fixedWeeks,
|
|
48
|
+
ISOWeek: props.ISOWeek,
|
|
49
|
+
reverseMonths: props.reverseMonths,
|
|
50
|
+
}, dateLib);
|
|
51
|
+
const weeks = getWeeks.getWeeks(months);
|
|
52
|
+
const days = getDays.getDays(months);
|
|
53
|
+
const previousMonth = getPreviousMonth.getPreviousMonth(firstMonth, navStart, props, dateLib);
|
|
54
|
+
const nextMonth = getNextMonth.getNextMonth(firstMonth, navEnd, props, dateLib);
|
|
55
|
+
return {
|
|
56
|
+
months,
|
|
57
|
+
weeks,
|
|
58
|
+
days,
|
|
59
|
+
previousMonth,
|
|
60
|
+
nextMonth,
|
|
61
|
+
};
|
|
62
|
+
}, [
|
|
63
|
+
dateLib,
|
|
64
|
+
firstMonth.getTime(),
|
|
65
|
+
navEnd?.getTime(),
|
|
66
|
+
navStart?.getTime(),
|
|
67
|
+
props.disableNavigation,
|
|
68
|
+
props.broadcastCalendar,
|
|
69
|
+
props.endMonth?.getTime(),
|
|
70
|
+
props.fixedWeeks,
|
|
71
|
+
props.ISOWeek,
|
|
72
|
+
props.numberOfMonths,
|
|
73
|
+
props.pagedNavigation,
|
|
74
|
+
props.reverseMonths,
|
|
75
|
+
]);
|
|
76
|
+
const { disableNavigation, onMonthChange } = props;
|
|
77
|
+
const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));
|
|
78
|
+
const goToMonth = (date) => {
|
|
79
|
+
if (disableNavigation) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
let newMonth = startOfMonth(date);
|
|
83
|
+
// if month is before start, use the first month instead
|
|
84
|
+
if (navStart && newMonth < startOfMonth(navStart)) {
|
|
85
|
+
newMonth = startOfMonth(navStart);
|
|
86
|
+
}
|
|
87
|
+
// if month is after endMonth, use the last month instead
|
|
88
|
+
if (navEnd && newMonth > startOfMonth(navEnd)) {
|
|
89
|
+
newMonth = startOfMonth(navEnd);
|
|
90
|
+
}
|
|
91
|
+
setFirstMonth(newMonth);
|
|
92
|
+
onMonthChange?.(newMonth);
|
|
93
|
+
};
|
|
94
|
+
const goToDay = (day) => {
|
|
95
|
+
// is this check necessary?
|
|
96
|
+
if (isDayInCalendar(day)) {
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
goToMonth(day.date);
|
|
100
|
+
};
|
|
101
|
+
const calendar = {
|
|
102
|
+
months,
|
|
103
|
+
weeks,
|
|
104
|
+
days,
|
|
105
|
+
navStart,
|
|
106
|
+
navEnd,
|
|
107
|
+
previousMonth,
|
|
108
|
+
nextMonth,
|
|
109
|
+
goToMonth,
|
|
110
|
+
goToDay,
|
|
111
|
+
};
|
|
112
|
+
return calendar;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
exports.useCalendar = useCalendar;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { useEffect, useMemo } from 'react';
|
|
2
|
+
import { getDates } from './helpers/getDates.mjs';
|
|
3
|
+
import { getDays } from './helpers/getDays.mjs';
|
|
4
|
+
import { getDisplayMonths } from './helpers/getDisplayMonths.mjs';
|
|
5
|
+
import { getInitialMonth } from './helpers/getInitialMonth.mjs';
|
|
6
|
+
import { getMonths } from './helpers/getMonths.mjs';
|
|
7
|
+
import { getNavMonths } from './helpers/getNavMonth.mjs';
|
|
8
|
+
import { getNextMonth } from './helpers/getNextMonth.mjs';
|
|
9
|
+
import { getPreviousMonth } from './helpers/getPreviousMonth.mjs';
|
|
10
|
+
import { getWeeks } from './helpers/getWeeks.mjs';
|
|
11
|
+
import { useControlledValue } from './helpers/useControlledValue.mjs';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Provides the calendar object to work with the calendar in custom components.
|
|
15
|
+
*
|
|
16
|
+
* @private
|
|
17
|
+
* @param props - The DayPicker props related to calendar configuration.
|
|
18
|
+
* @param dateLib - The date utility library instance.
|
|
19
|
+
* @returns The calendar object containing displayed days, weeks, months, and
|
|
20
|
+
* navigation methods.
|
|
21
|
+
*/
|
|
22
|
+
function useCalendar(props, dateLib) {
|
|
23
|
+
const [navStart, navEnd] = getNavMonths(props, dateLib);
|
|
24
|
+
const { startOfMonth, endOfMonth } = dateLib;
|
|
25
|
+
const initialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
|
|
26
|
+
const [firstMonth, setFirstMonth] = useControlledValue(initialMonth,
|
|
27
|
+
// initialMonth is always computed from props.month if provided
|
|
28
|
+
props.month ? initialMonth : undefined);
|
|
29
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: change the initial month when the time zone changes.
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const newInitialMonth = getInitialMonth(props, navStart, navEnd, dateLib);
|
|
32
|
+
setFirstMonth(newInitialMonth);
|
|
33
|
+
}, [props.timeZone]);
|
|
34
|
+
/** The months displayed in the calendar. */
|
|
35
|
+
// biome-ignore lint/correctness/useExhaustiveDependencies: We want to recompute only when specific props change.
|
|
36
|
+
const { months, weeks, days, previousMonth, nextMonth } = useMemo(() => {
|
|
37
|
+
const displayMonths = getDisplayMonths(firstMonth, navEnd, { numberOfMonths: props.numberOfMonths }, dateLib);
|
|
38
|
+
const dates = getDates(displayMonths, props.endMonth ? endOfMonth(props.endMonth) : undefined, {
|
|
39
|
+
ISOWeek: props.ISOWeek,
|
|
40
|
+
fixedWeeks: props.fixedWeeks,
|
|
41
|
+
broadcastCalendar: props.broadcastCalendar,
|
|
42
|
+
}, dateLib);
|
|
43
|
+
const months = getMonths(displayMonths, dates, {
|
|
44
|
+
broadcastCalendar: props.broadcastCalendar,
|
|
45
|
+
fixedWeeks: props.fixedWeeks,
|
|
46
|
+
ISOWeek: props.ISOWeek,
|
|
47
|
+
reverseMonths: props.reverseMonths,
|
|
48
|
+
}, dateLib);
|
|
49
|
+
const weeks = getWeeks(months);
|
|
50
|
+
const days = getDays(months);
|
|
51
|
+
const previousMonth = getPreviousMonth(firstMonth, navStart, props, dateLib);
|
|
52
|
+
const nextMonth = getNextMonth(firstMonth, navEnd, props, dateLib);
|
|
53
|
+
return {
|
|
54
|
+
months,
|
|
55
|
+
weeks,
|
|
56
|
+
days,
|
|
57
|
+
previousMonth,
|
|
58
|
+
nextMonth,
|
|
59
|
+
};
|
|
60
|
+
}, [
|
|
61
|
+
dateLib,
|
|
62
|
+
firstMonth.getTime(),
|
|
63
|
+
navEnd?.getTime(),
|
|
64
|
+
navStart?.getTime(),
|
|
65
|
+
props.disableNavigation,
|
|
66
|
+
props.broadcastCalendar,
|
|
67
|
+
props.endMonth?.getTime(),
|
|
68
|
+
props.fixedWeeks,
|
|
69
|
+
props.ISOWeek,
|
|
70
|
+
props.numberOfMonths,
|
|
71
|
+
props.pagedNavigation,
|
|
72
|
+
props.reverseMonths,
|
|
73
|
+
]);
|
|
74
|
+
const { disableNavigation, onMonthChange } = props;
|
|
75
|
+
const isDayInCalendar = (day) => weeks.some((week) => week.days.some((d) => d.isEqualTo(day)));
|
|
76
|
+
const goToMonth = (date) => {
|
|
77
|
+
if (disableNavigation) {
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
let newMonth = startOfMonth(date);
|
|
81
|
+
// if month is before start, use the first month instead
|
|
82
|
+
if (navStart && newMonth < startOfMonth(navStart)) {
|
|
83
|
+
newMonth = startOfMonth(navStart);
|
|
84
|
+
}
|
|
85
|
+
// if month is after endMonth, use the last month instead
|
|
86
|
+
if (navEnd && newMonth > startOfMonth(navEnd)) {
|
|
87
|
+
newMonth = startOfMonth(navEnd);
|
|
88
|
+
}
|
|
89
|
+
setFirstMonth(newMonth);
|
|
90
|
+
onMonthChange?.(newMonth);
|
|
91
|
+
};
|
|
92
|
+
const goToDay = (day) => {
|
|
93
|
+
// is this check necessary?
|
|
94
|
+
if (isDayInCalendar(day)) {
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
goToMonth(day.date);
|
|
98
|
+
};
|
|
99
|
+
const calendar = {
|
|
100
|
+
months,
|
|
101
|
+
weeks,
|
|
102
|
+
days,
|
|
103
|
+
navStart,
|
|
104
|
+
navEnd,
|
|
105
|
+
previousMonth,
|
|
106
|
+
nextMonth,
|
|
107
|
+
goToMonth,
|
|
108
|
+
goToDay,
|
|
109
|
+
};
|
|
110
|
+
return calendar;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { useCalendar };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
|
|
5
|
+
/** @ignore */
|
|
6
|
+
const dayPickerContext = React.createContext(undefined);
|
|
7
|
+
/**
|
|
8
|
+
* Provides access to the DayPicker context, which includes properties and
|
|
9
|
+
* methods to interact with the DayPicker component. This hook must be used
|
|
10
|
+
* within a custom component.
|
|
11
|
+
*
|
|
12
|
+
* @template T - Use this type to refine the returned context type with a
|
|
13
|
+
* specific selection mode.
|
|
14
|
+
* @returns The context to work with DayPicker.
|
|
15
|
+
* @throws {Error} If the hook is used outside of a DayPicker provider.
|
|
16
|
+
* @group Hooks
|
|
17
|
+
* @see https://daypicker.dev/guides/custom-components
|
|
18
|
+
*/
|
|
19
|
+
function useDayPicker() {
|
|
20
|
+
const context = React.useContext(dayPickerContext);
|
|
21
|
+
if (context === undefined) {
|
|
22
|
+
throw new Error("useDayPicker() must be used within a custom component.");
|
|
23
|
+
}
|
|
24
|
+
return context;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
exports.dayPickerContext = dayPickerContext;
|
|
28
|
+
exports.useDayPicker = useDayPicker;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { createContext, useContext } from 'react';
|
|
2
|
+
|
|
3
|
+
/** @ignore */
|
|
4
|
+
const dayPickerContext = createContext(undefined);
|
|
5
|
+
/**
|
|
6
|
+
* Provides access to the DayPicker context, which includes properties and
|
|
7
|
+
* methods to interact with the DayPicker component. This hook must be used
|
|
8
|
+
* within a custom component.
|
|
9
|
+
*
|
|
10
|
+
* @template T - Use this type to refine the returned context type with a
|
|
11
|
+
* specific selection mode.
|
|
12
|
+
* @returns The context to work with DayPicker.
|
|
13
|
+
* @throws {Error} If the hook is used outside of a DayPicker provider.
|
|
14
|
+
* @group Hooks
|
|
15
|
+
* @see https://daypicker.dev/guides/custom-components
|
|
16
|
+
*/
|
|
17
|
+
function useDayPicker() {
|
|
18
|
+
const context = useContext(dayPickerContext);
|
|
19
|
+
if (context === undefined) {
|
|
20
|
+
throw new Error("useDayPicker() must be used within a custom component.");
|
|
21
|
+
}
|
|
22
|
+
return context;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export { dayPickerContext, useDayPicker };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const React = require('react');
|
|
4
|
+
const calculateFocusTarget = require('./helpers/calculateFocusTarget.cjs');
|
|
5
|
+
const getNextFocus = require('./helpers/getNextFocus.cjs');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Manages focus behavior for the DayPicker component, including setting,
|
|
9
|
+
* moving, and blurring focus on calendar days.
|
|
10
|
+
*
|
|
11
|
+
* @template T - The type of DayPicker props.
|
|
12
|
+
* @param props - The DayPicker props.
|
|
13
|
+
* @param calendar - The calendar object containing the displayed days and
|
|
14
|
+
* months.
|
|
15
|
+
* @param getModifiers - A function to retrieve modifiers for a given day.
|
|
16
|
+
* @param isSelected - A function to check if a date is selected.
|
|
17
|
+
* @param dateLib - The date utility library instance.
|
|
18
|
+
* @returns An object containing focus-related methods and the currently focused
|
|
19
|
+
* day.
|
|
20
|
+
*/
|
|
21
|
+
function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
22
|
+
const { autoFocus } = props;
|
|
23
|
+
const [lastFocused, setLastFocused] = React.useState();
|
|
24
|
+
const focusTarget = calculateFocusTarget.calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
|
|
25
|
+
const [focusedDay, setFocused] = React.useState(autoFocus ? focusTarget : undefined);
|
|
26
|
+
const blur = () => {
|
|
27
|
+
setLastFocused(focusedDay);
|
|
28
|
+
setFocused(undefined);
|
|
29
|
+
};
|
|
30
|
+
const moveFocus = (moveBy, moveDir) => {
|
|
31
|
+
if (!focusedDay)
|
|
32
|
+
return;
|
|
33
|
+
const nextFocus = getNextFocus.getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);
|
|
34
|
+
if (!nextFocus)
|
|
35
|
+
return;
|
|
36
|
+
if (props.disableNavigation) {
|
|
37
|
+
const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));
|
|
38
|
+
if (!isNextInCalendar) {
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
calendar.goToDay(nextFocus);
|
|
43
|
+
setFocused(nextFocus);
|
|
44
|
+
};
|
|
45
|
+
const isFocusTarget = (day) => {
|
|
46
|
+
return Boolean(focusTarget?.isEqualTo(day));
|
|
47
|
+
};
|
|
48
|
+
const useFocus = {
|
|
49
|
+
isFocusTarget,
|
|
50
|
+
setFocused,
|
|
51
|
+
focused: focusedDay,
|
|
52
|
+
blur,
|
|
53
|
+
moveFocus,
|
|
54
|
+
};
|
|
55
|
+
return useFocus;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
exports.useFocus = useFocus;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { calculateFocusTarget } from './helpers/calculateFocusTarget.mjs';
|
|
3
|
+
import { getNextFocus } from './helpers/getNextFocus.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Manages focus behavior for the DayPicker component, including setting,
|
|
7
|
+
* moving, and blurring focus on calendar days.
|
|
8
|
+
*
|
|
9
|
+
* @template T - The type of DayPicker props.
|
|
10
|
+
* @param props - The DayPicker props.
|
|
11
|
+
* @param calendar - The calendar object containing the displayed days and
|
|
12
|
+
* months.
|
|
13
|
+
* @param getModifiers - A function to retrieve modifiers for a given day.
|
|
14
|
+
* @param isSelected - A function to check if a date is selected.
|
|
15
|
+
* @param dateLib - The date utility library instance.
|
|
16
|
+
* @returns An object containing focus-related methods and the currently focused
|
|
17
|
+
* day.
|
|
18
|
+
*/
|
|
19
|
+
function useFocus(props, calendar, getModifiers, isSelected, dateLib) {
|
|
20
|
+
const { autoFocus } = props;
|
|
21
|
+
const [lastFocused, setLastFocused] = useState();
|
|
22
|
+
const focusTarget = calculateFocusTarget(calendar.days, getModifiers, isSelected || (() => false), lastFocused);
|
|
23
|
+
const [focusedDay, setFocused] = useState(autoFocus ? focusTarget : undefined);
|
|
24
|
+
const blur = () => {
|
|
25
|
+
setLastFocused(focusedDay);
|
|
26
|
+
setFocused(undefined);
|
|
27
|
+
};
|
|
28
|
+
const moveFocus = (moveBy, moveDir) => {
|
|
29
|
+
if (!focusedDay)
|
|
30
|
+
return;
|
|
31
|
+
const nextFocus = getNextFocus(moveBy, moveDir, focusedDay, calendar.navStart, calendar.navEnd, props, dateLib);
|
|
32
|
+
if (!nextFocus)
|
|
33
|
+
return;
|
|
34
|
+
if (props.disableNavigation) {
|
|
35
|
+
const isNextInCalendar = calendar.days.some((day) => day.isEqualTo(nextFocus));
|
|
36
|
+
if (!isNextInCalendar) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
calendar.goToDay(nextFocus);
|
|
41
|
+
setFocused(nextFocus);
|
|
42
|
+
};
|
|
43
|
+
const isFocusTarget = (day) => {
|
|
44
|
+
return Boolean(focusTarget?.isEqualTo(day));
|
|
45
|
+
};
|
|
46
|
+
const useFocus = {
|
|
47
|
+
isFocusTarget,
|
|
48
|
+
setFocused,
|
|
49
|
+
focused: focusedDay,
|
|
50
|
+
blur,
|
|
51
|
+
moveFocus,
|
|
52
|
+
};
|
|
53
|
+
return useFocus;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export { useFocus };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const useMulti = require('./selection/useMulti.cjs');
|
|
4
|
+
const useRange = require('./selection/useRange.cjs');
|
|
5
|
+
const useSingle = require('./selection/useSingle.cjs');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Determines the appropriate selection hook to use based on the selection mode
|
|
9
|
+
* and returns the corresponding selection object.
|
|
10
|
+
*
|
|
11
|
+
* @template T - The type of DayPicker props.
|
|
12
|
+
* @param props - The DayPicker props.
|
|
13
|
+
* @param dateLib - The date utility library instance.
|
|
14
|
+
* @returns The selection object for the specified mode, or `undefined` if no
|
|
15
|
+
* mode is set.
|
|
16
|
+
*/
|
|
17
|
+
function useSelection(props, dateLib) {
|
|
18
|
+
const single = useSingle.useSingle(props, dateLib);
|
|
19
|
+
const multi = useMulti.useMulti(props, dateLib);
|
|
20
|
+
const range = useRange.useRange(props, dateLib);
|
|
21
|
+
switch (props.mode) {
|
|
22
|
+
case "single":
|
|
23
|
+
return single;
|
|
24
|
+
case "multiple":
|
|
25
|
+
return multi;
|
|
26
|
+
case "range":
|
|
27
|
+
return range;
|
|
28
|
+
default:
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
exports.useSelection = useSelection;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { useMulti } from './selection/useMulti.mjs';
|
|
2
|
+
import { useRange } from './selection/useRange.mjs';
|
|
3
|
+
import { useSingle } from './selection/useSingle.mjs';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Determines the appropriate selection hook to use based on the selection mode
|
|
7
|
+
* and returns the corresponding selection object.
|
|
8
|
+
*
|
|
9
|
+
* @template T - The type of DayPicker props.
|
|
10
|
+
* @param props - The DayPicker props.
|
|
11
|
+
* @param dateLib - The date utility library instance.
|
|
12
|
+
* @returns The selection object for the specified mode, or `undefined` if no
|
|
13
|
+
* mode is set.
|
|
14
|
+
*/
|
|
15
|
+
function useSelection(props, dateLib) {
|
|
16
|
+
const single = useSingle(props, dateLib);
|
|
17
|
+
const multi = useMulti(props, dateLib);
|
|
18
|
+
const range = useRange(props, dateLib);
|
|
19
|
+
switch (props.mode) {
|
|
20
|
+
case "single":
|
|
21
|
+
return single;
|
|
22
|
+
case "multiple":
|
|
23
|
+
return multi;
|
|
24
|
+
case "range":
|
|
25
|
+
return range;
|
|
26
|
+
default:
|
|
27
|
+
return undefined;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { useSelection };
|