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