@betterinternship/components 1.5.28 → 1.6.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/README.md +26 -0
- package/dist/components/Accordion.d.ts +7 -0
- package/dist/components/Avatar.d.ts +6 -0
- package/dist/components/Badge.d.ts +21 -0
- package/dist/components/Button.js.map +1 -1
- package/dist/components/Calendar.d.ts +7 -0
- package/dist/components/Input.d.ts +3 -0
- package/dist/components/ui/accordion.d.ts +7 -0
- package/dist/components/ui/accordion.js +20 -0
- package/dist/components/ui/accordion.js.map +1 -0
- package/dist/components/ui/avatar.d.ts +6 -0
- package/dist/components/ui/avatar.js +16 -0
- package/dist/components/ui/avatar.js.map +1 -0
- package/dist/components/ui/badge.d.ts +22 -0
- package/dist/components/ui/badge.js +113 -0
- package/dist/components/ui/badge.js.map +1 -0
- package/dist/components/ui/button.d.ts +13 -0
- package/dist/components/ui/button.js +88 -0
- package/dist/components/ui/button.js.map +1 -0
- package/dist/components/ui/calendar.d.ts +7 -0
- package/dist/components/ui/calendar.js +51 -0
- package/dist/components/ui/calendar.js.map +1 -0
- package/dist/components/ui/card.d.ts +9 -0
- package/dist/components/ui/card.js +27 -0
- package/dist/components/ui/card.js.map +1 -0
- package/dist/components/ui/checkbox.d.ts +4 -0
- package/dist/components/ui/checkbox.js +11 -0
- package/dist/components/ui/checkbox.js.map +1 -0
- package/dist/components/ui/dialog.d.ts +18 -0
- package/dist/components/ui/dialog.js +41 -0
- package/dist/components/ui/dialog.js.map +1 -0
- package/dist/components/ui/icons.d.ts +10 -0
- package/dist/components/ui/icons.js +39 -0
- package/dist/components/ui/icons.js.map +1 -0
- package/dist/components/ui/input.d.ts +3 -0
- package/dist/components/ui/input.js +17 -0
- package/dist/components/ui/input.js.map +1 -0
- package/dist/components/ui/label.d.ts +4 -0
- package/dist/components/ui/label.js +10 -0
- package/dist/components/ui/label.js.map +1 -0
- package/dist/components/ui/popover.d.ts +7 -0
- package/dist/components/ui/popover.js +17 -0
- package/dist/components/ui/popover.js.map +1 -0
- package/dist/components/ui/separator.d.ts +4 -0
- package/dist/components/ui/separator.js +10 -0
- package/dist/components/ui/separator.js.map +1 -0
- package/dist/components/ui/skeleton.d.ts +2 -0
- package/dist/components/ui/skeleton.js +9 -0
- package/dist/components/ui/skeleton.js.map +1 -0
- package/dist/components/ui/switch.d.ts +4 -0
- package/dist/components/ui/switch.js +10 -0
- package/dist/components/ui/switch.js.map +1 -0
- package/dist/components/ui/table.d.ts +10 -0
- package/dist/components/ui/table.js +30 -0
- package/dist/components/ui/table.js.map +1 -0
- package/dist/components/ui/textarea.d.ts +3 -0
- package/dist/components/ui/textarea.js +9 -0
- package/dist/components/ui/textarea.js.map +1 -0
- package/dist/components/ui/tooltip.d.ts +9 -0
- package/dist/components/ui/tooltip.js +19 -0
- package/dist/components/ui/tooltip.js.map +1 -0
- package/dist/hooks/useClientProcess.js +0 -1
- package/dist/hooks/useClientProcess.js.map +1 -1
- package/dist/index.css.js +1 -1
- package/dist/index.d.ts +19 -1
- package/dist/index.esm.js +3761 -3761
- package/dist/index.js +19 -1
- package/dist/index.js.map +1 -1
- package/dist/node_modules/@date-fns/tz/date/index.js +84 -0
- package/dist/node_modules/@date-fns/tz/date/index.js.map +1 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js +451 -0
- package/dist/node_modules/@date-fns/tz/date/mini.js.map +1 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js +40 -0
- package/dist/node_modules/@date-fns/tz/tzName/index.js.map +1 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +57 -0
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +8 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +8 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +776 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +95 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +67 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +32 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +12 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js +9 -0
- package/dist/node_modules/date-fns/_lib/normalizeInterval.js.map +1 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +26 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +1 -0
- package/dist/node_modules/date-fns/addDays.js +61 -0
- package/dist/node_modules/date-fns/addDays.js.map +1 -0
- package/dist/node_modules/date-fns/addMonths.js +76 -0
- package/dist/node_modules/date-fns/addMonths.js.map +1 -0
- package/dist/node_modules/date-fns/addWeeks.js +34 -0
- package/dist/node_modules/date-fns/addWeeks.js.map +1 -0
- package/dist/node_modules/date-fns/addYears.js +34 -0
- package/dist/node_modules/date-fns/addYears.js.map +1 -0
- package/dist/node_modules/date-fns/constants.js +47 -0
- package/dist/node_modules/date-fns/constants.js.map +1 -0
- package/dist/node_modules/date-fns/constructFrom.js +50 -0
- package/dist/node_modules/date-fns/constructFrom.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +63 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +1 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js +43 -0
- package/dist/node_modules/date-fns/differenceInCalendarMonths.js.map +1 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js +66 -0
- package/dist/node_modules/date-fns/eachMonthOfInterval.js.map +1 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js +66 -0
- package/dist/node_modules/date-fns/eachYearOfInterval.js.map +1 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js +36 -0
- package/dist/node_modules/date-fns/endOfISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/endOfMonth.js +38 -0
- package/dist/node_modules/date-fns/endOfMonth.js.map +1 -0
- package/dist/node_modules/date-fns/endOfWeek.js +54 -0
- package/dist/node_modules/date-fns/endOfWeek.js.map +1 -0
- package/dist/node_modules/date-fns/endOfYear.js +38 -0
- package/dist/node_modules/date-fns/endOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/format.js +424 -0
- package/dist/node_modules/date-fns/format.js.map +1 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +35 -0
- package/dist/node_modules/date-fns/getDayOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js +37 -0
- package/dist/node_modules/date-fns/getDaysInMonth.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeek.js +41 -0
- package/dist/node_modules/date-fns/getISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +53 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/getMonth.js +30 -0
- package/dist/node_modules/date-fns/getMonth.js.map +1 -0
- package/dist/node_modules/date-fns/getWeek.js +55 -0
- package/dist/node_modules/date-fns/getWeek.js.map +1 -0
- package/dist/node_modules/date-fns/getWeekYear.js +76 -0
- package/dist/node_modules/date-fns/getWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/getYear.js +30 -0
- package/dist/node_modules/date-fns/getYear.js.map +1 -0
- package/dist/node_modules/date-fns/isAfter.js +26 -0
- package/dist/node_modules/date-fns/isAfter.js.map +1 -0
- package/dist/node_modules/date-fns/isBefore.js +26 -0
- package/dist/node_modules/date-fns/isBefore.js.map +1 -0
- package/dist/node_modules/date-fns/isDate.js +42 -0
- package/dist/node_modules/date-fns/isDate.js.map +1 -0
- package/dist/node_modules/date-fns/isSameDay.js +47 -0
- package/dist/node_modules/date-fns/isSameDay.js.map +1 -0
- package/dist/node_modules/date-fns/isSameMonth.js +44 -0
- package/dist/node_modules/date-fns/isSameMonth.js.map +1 -0
- package/dist/node_modules/date-fns/isSameYear.js +36 -0
- package/dist/node_modules/date-fns/isSameYear.js.map +1 -0
- package/dist/node_modules/date-fns/isValid.js +40 -0
- package/dist/node_modules/date-fns/isValid.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +11 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +65 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +60 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +23 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +104 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +42 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +14 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +190 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +135 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +1 -0
- package/dist/node_modules/date-fns/locale/en-US.js +29 -0
- package/dist/node_modules/date-fns/locale/en-US.js.map +1 -0
- package/dist/node_modules/date-fns/max.js +50 -0
- package/dist/node_modules/date-fns/max.js.map +1 -0
- package/dist/node_modules/date-fns/min.js +50 -0
- package/dist/node_modules/date-fns/min.js.map +1 -0
- package/dist/node_modules/date-fns/setMonth.js +47 -0
- package/dist/node_modules/date-fns/setMonth.js.map +1 -0
- package/dist/node_modules/date-fns/setYear.js +41 -0
- package/dist/node_modules/date-fns/setYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfDay.js +36 -0
- package/dist/node_modules/date-fns/startOfDay.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +36 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +43 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfMonth.js +38 -0
- package/dist/node_modules/date-fns/startOfMonth.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeek.js +54 -0
- package/dist/node_modules/date-fns/startOfWeek.js.map +1 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +65 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +1 -0
- package/dist/node_modules/date-fns/startOfYear.js +37 -0
- package/dist/node_modules/date-fns/startOfYear.js.map +1 -0
- package/dist/node_modules/date-fns/toDate.js +47 -0
- package/dist/node_modules/date-fns/toDate.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +2 -2
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +347 -0
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +123 -0
- package/dist/node_modules/react-day-picker/dist/esm/UI.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +600 -0
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +24 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +8 -0
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +74 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +96 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +29 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +60 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +20 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +25 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +47 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +18 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js +54 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getLabels.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +34 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +70 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +41 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +37 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +38 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +27 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +37 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +12 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +28 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +21 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +23 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +14 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +16 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +19 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +15 -0
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js +68 -0
- package/dist/node_modules/react-day-picker/dist/esm/locale/en-US.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js +164 -0
- package/dist/node_modules/react-day-picker/dist/esm/noonDateLib.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +58 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +64 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +45 -0
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +174 -0
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +114 -0
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +26 -0
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +57 -0
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +32 -0
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +96 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js +62 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/convertMatchersToTimeZone.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +63 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +31 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +75 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +36 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +22 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js +17 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/toTimeZone.js.map +1 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +67 -0
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js.map +1 -0
- package/dist/utilities/Icons.d.ts +33 -0
- package/dist/utils.js.map +1 -1
- package/package.json +84 -9
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.js';
|
|
2
|
+
import { dateMatchModifiers } from './dateMatchModifiers.js';
|
|
3
|
+
import { rangeContainsDayOfWeek } from './rangeContainsDayOfWeek.js';
|
|
4
|
+
import { rangeIncludesDate } from './rangeIncludesDate.js';
|
|
5
|
+
import { rangeOverlaps } from './rangeOverlaps.js';
|
|
6
|
+
import { isDatesArray, isDateRange, isDayOfWeekType, isDateInterval, isDateAfterType, isDateBeforeType } from './typeguards.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Checks if a date range contains dates that match the given modifiers.
|
|
10
|
+
*
|
|
11
|
+
* @since 9.2.2
|
|
12
|
+
* @param range - The date range to check.
|
|
13
|
+
* @param modifiers - The modifiers to match against.
|
|
14
|
+
* @param dateLib - The date utility library instance.
|
|
15
|
+
* @returns `true` if the range contains matching dates, otherwise `false`.
|
|
16
|
+
* @group Utilities
|
|
17
|
+
*/
|
|
18
|
+
function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {
|
|
19
|
+
const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];
|
|
20
|
+
// Defer function matchers evaluation as they are the least performant.
|
|
21
|
+
const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== "function");
|
|
22
|
+
const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {
|
|
23
|
+
if (typeof matcher === "boolean")
|
|
24
|
+
return matcher;
|
|
25
|
+
if (dateLib.isDate(matcher)) {
|
|
26
|
+
return rangeIncludesDate(range, matcher, false, dateLib);
|
|
27
|
+
}
|
|
28
|
+
if (isDatesArray(matcher, dateLib)) {
|
|
29
|
+
return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));
|
|
30
|
+
}
|
|
31
|
+
if (isDateRange(matcher)) {
|
|
32
|
+
if (matcher.from && matcher.to) {
|
|
33
|
+
return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
if (isDayOfWeekType(matcher)) {
|
|
38
|
+
return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);
|
|
39
|
+
}
|
|
40
|
+
if (isDateInterval(matcher)) {
|
|
41
|
+
const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);
|
|
42
|
+
if (isClosedInterval) {
|
|
43
|
+
return rangeOverlaps(range, {
|
|
44
|
+
from: dateLib.addDays(matcher.after, 1),
|
|
45
|
+
to: dateLib.addDays(matcher.before, -1),
|
|
46
|
+
}, dateLib);
|
|
47
|
+
}
|
|
48
|
+
return (dateMatchModifiers(range.from, matcher, dateLib) ||
|
|
49
|
+
dateMatchModifiers(range.to, matcher, dateLib));
|
|
50
|
+
}
|
|
51
|
+
if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {
|
|
52
|
+
return (dateMatchModifiers(range.from, matcher, dateLib) ||
|
|
53
|
+
dateMatchModifiers(range.to, matcher, dateLib));
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
});
|
|
57
|
+
if (nonFunctionMatchersResult) {
|
|
58
|
+
return true;
|
|
59
|
+
}
|
|
60
|
+
const functionMatchers = matchers.filter((matcher) => typeof matcher === "function");
|
|
61
|
+
if (functionMatchers.length) {
|
|
62
|
+
let date = range.from;
|
|
63
|
+
const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);
|
|
64
|
+
for (let i = 0; i <= totalDays; i++) {
|
|
65
|
+
if (functionMatchers.some((matcher) => matcher(date))) {
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
date = dateLib.addDays(date, 1);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { rangeContainsModifiers };
|
|
75
|
+
//# sourceMappingURL=rangeContainsModifiers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rangeContainsModifiers.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\nimport { dateMatchModifiers } from \"./dateMatchModifiers.js\";\nimport { rangeContainsDayOfWeek } from \"./rangeContainsDayOfWeek.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\nimport { rangeOverlaps } from \"./rangeOverlaps.js\";\nimport { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType, } from \"./typeguards.js\";\n/**\n * Checks if a date range contains dates that match the given modifiers.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param modifiers - The modifiers to match against.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains matching dates, otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsModifiers(range, modifiers, dateLib = defaultDateLib) {\n const matchers = Array.isArray(modifiers) ? modifiers : [modifiers];\n // Defer function matchers evaluation as they are the least performant.\n const nonFunctionMatchers = matchers.filter((matcher) => typeof matcher !== \"function\");\n const nonFunctionMatchersResult = nonFunctionMatchers.some((matcher) => {\n if (typeof matcher === \"boolean\")\n return matcher;\n if (dateLib.isDate(matcher)) {\n return rangeIncludesDate(range, matcher, false, dateLib);\n }\n if (isDatesArray(matcher, dateLib)) {\n return matcher.some((date) => rangeIncludesDate(range, date, false, dateLib));\n }\n if (isDateRange(matcher)) {\n if (matcher.from && matcher.to) {\n return rangeOverlaps(range, { from: matcher.from, to: matcher.to }, dateLib);\n }\n return false;\n }\n if (isDayOfWeekType(matcher)) {\n return rangeContainsDayOfWeek(range, matcher.dayOfWeek, dateLib);\n }\n if (isDateInterval(matcher)) {\n const isClosedInterval = dateLib.isAfter(matcher.before, matcher.after);\n if (isClosedInterval) {\n return rangeOverlaps(range, {\n from: dateLib.addDays(matcher.after, 1),\n to: dateLib.addDays(matcher.before, -1),\n }, dateLib);\n }\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n if (isDateAfterType(matcher) || isDateBeforeType(matcher)) {\n return (dateMatchModifiers(range.from, matcher, dateLib) ||\n dateMatchModifiers(range.to, matcher, dateLib));\n }\n return false;\n });\n if (nonFunctionMatchersResult) {\n return true;\n }\n const functionMatchers = matchers.filter((matcher) => typeof matcher === \"function\");\n if (functionMatchers.length) {\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n for (let i = 0; i <= totalDays; i++) {\n if (functionMatchers.some((matcher) => matcher(date))) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n }\n return false;\n}\n"],"names":[],"mappings":"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","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { defaultDateLib } from '../classes/DateLib.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Checks if a given date is within a specified date range.
|
|
5
|
+
*
|
|
6
|
+
* @since 9.0.0
|
|
7
|
+
* @param range - The date range to check against.
|
|
8
|
+
* @param date - The date to check.
|
|
9
|
+
* @param excludeEnds - If `true`, the range's start and end dates are excluded.
|
|
10
|
+
* @param dateLib - The date utility library instance.
|
|
11
|
+
* @returns `true` if the date is within the range, otherwise `false`.
|
|
12
|
+
* @group Utilities
|
|
13
|
+
*/
|
|
14
|
+
function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {
|
|
15
|
+
let { from, to } = range;
|
|
16
|
+
const { differenceInCalendarDays, isSameDay } = dateLib;
|
|
17
|
+
if (from && to) {
|
|
18
|
+
const isRangeInverted = differenceInCalendarDays(to, from) < 0;
|
|
19
|
+
if (isRangeInverted) {
|
|
20
|
+
[from, to] = [to, from];
|
|
21
|
+
}
|
|
22
|
+
const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&
|
|
23
|
+
differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);
|
|
24
|
+
return isInRange;
|
|
25
|
+
}
|
|
26
|
+
if (!excludeEnds && to) {
|
|
27
|
+
return isSameDay(to, date);
|
|
28
|
+
}
|
|
29
|
+
if (!excludeEnds && from) {
|
|
30
|
+
return isSameDay(from, date);
|
|
31
|
+
}
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export { rangeIncludesDate };
|
|
36
|
+
//# sourceMappingURL=rangeIncludesDate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rangeIncludesDate.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\n/**\n * Checks if a given date is within a specified date range.\n *\n * @since 9.0.0\n * @param range - The date range to check against.\n * @param date - The date to check.\n * @param excludeEnds - If `true`, the range's start and end dates are excluded.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the date is within the range, otherwise `false`.\n * @group Utilities\n */\nexport function rangeIncludesDate(range, date, excludeEnds = false, dateLib = defaultDateLib) {\n let { from, to } = range;\n const { differenceInCalendarDays, isSameDay } = dateLib;\n if (from && to) {\n const isRangeInverted = differenceInCalendarDays(to, from) < 0;\n if (isRangeInverted) {\n [from, to] = [to, from];\n }\n const isInRange = differenceInCalendarDays(date, from) >= (excludeEnds ? 1 : 0) &&\n differenceInCalendarDays(to, date) >= (excludeEnds ? 1 : 0);\n return isInRange;\n }\n if (!excludeEnds && to) {\n return isSameDay(to, date);\n }\n if (!excludeEnds && from) {\n return isSameDay(from, date);\n }\n return false;\n}\n"],"names":[],"mappings":";;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,iBAAiB,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,GAAG,KAAK,EAAE,OAAO,GAAG,cAAc,EAAE;AAC9F,IAAI,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,KAAK;AAC5B,IAAI,MAAM,EAAE,wBAAwB,EAAE,SAAS,EAAE,GAAG,OAAO;AAC3D,IAAI,IAAI,IAAI,IAAI,EAAE,EAAE;AACpB,QAAQ,MAAM,eAAe,GAAG,wBAAwB,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC;AACtE,QAAQ,IAAI,eAAe,EAAE;AAC7B,YAAY,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC;AACnC,QAAQ;AACR,QAAQ,MAAM,SAAS,GAAG,wBAAwB,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;AACvF,YAAY,wBAAwB,CAAC,EAAE,EAAE,IAAI,CAAC,KAAK,WAAW,GAAG,CAAC,GAAG,CAAC,CAAC;AACvE,QAAQ,OAAO,SAAS;AACxB,IAAI;AACJ,IAAI,IAAI,CAAC,WAAW,IAAI,EAAE,EAAE;AAC5B,QAAQ,OAAO,SAAS,CAAC,EAAE,EAAE,IAAI,CAAC;AAClC,IAAI;AACJ,IAAI,IAAI,CAAC,WAAW,IAAI,IAAI,EAAE;AAC9B,QAAQ,OAAO,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC;AACpC,IAAI;AACJ,IAAI,OAAO,KAAK;AAChB;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { rangeIncludesDate } from './rangeIncludesDate.js';
|
|
2
|
+
import { defaultDateLib } from '../classes/DateLib.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Determines if two date ranges overlap.
|
|
6
|
+
*
|
|
7
|
+
* @since 9.2.2
|
|
8
|
+
* @param rangeLeft - The first date range.
|
|
9
|
+
* @param rangeRight - The second date range.
|
|
10
|
+
* @param dateLib - The date utility library instance.
|
|
11
|
+
* @returns `true` if the ranges overlap, otherwise `false`.
|
|
12
|
+
* @group Utilities
|
|
13
|
+
*/
|
|
14
|
+
function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {
|
|
15
|
+
return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||
|
|
16
|
+
rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||
|
|
17
|
+
rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||
|
|
18
|
+
rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { rangeOverlaps };
|
|
22
|
+
//# sourceMappingURL=rangeOverlaps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rangeOverlaps.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/index.js\";\nimport { rangeIncludesDate } from \"./rangeIncludesDate.js\";\n/**\n * Determines if two date ranges overlap.\n *\n * @since 9.2.2\n * @param rangeLeft - The first date range.\n * @param rangeRight - The second date range.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the ranges overlap, otherwise `false`.\n * @group Utilities\n */\nexport function rangeOverlaps(rangeLeft, rangeRight, dateLib = defaultDateLib) {\n return (rangeIncludesDate(rangeLeft, rangeRight.from, false, dateLib) ||\n rangeIncludesDate(rangeLeft, rangeRight.to, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.from, false, dateLib) ||\n rangeIncludesDate(rangeRight, rangeLeft.to, false, dateLib));\n}\n"],"names":[],"mappings":";;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,aAAa,CAAC,SAAS,EAAE,UAAU,EAAE,OAAO,GAAG,cAAc,EAAE;AAC/E,IAAI,QAAQ,iBAAiB,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;AACzE,QAAQ,iBAAiB,CAAC,SAAS,EAAE,UAAU,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC;AACnE,QAAQ,iBAAiB,CAAC,UAAU,EAAE,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,OAAO,CAAC;AACrE,QAAQ,iBAAiB,CAAC,UAAU,EAAE,SAAS,CAAC,EAAE,EAAE,KAAK,EAAE,OAAO,CAAC;AACnE;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { TZDate } from '../../../../@date-fns/tz/date/index.js';
|
|
2
|
+
import '../../../../@date-fns/tz/date/mini.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Convert a {@link Date} or {@link TZDate} instance to the given time zone.
|
|
6
|
+
* Reuses the same instance when it is already a {@link TZDate} using the target
|
|
7
|
+
* time zone to avoid extra allocations.
|
|
8
|
+
*/
|
|
9
|
+
function toTimeZone(date, timeZone) {
|
|
10
|
+
if (date instanceof TZDate && date.timeZone === timeZone) {
|
|
11
|
+
return date;
|
|
12
|
+
}
|
|
13
|
+
return new TZDate(date, timeZone);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { toTimeZone };
|
|
17
|
+
//# sourceMappingURL=toTimeZone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toTimeZone.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/toTimeZone.js"],"sourcesContent":["import { TZDate } from \"@date-fns/tz\";\n/**\n * Convert a {@link Date} or {@link TZDate} instance to the given time zone.\n * Reuses the same instance when it is already a {@link TZDate} using the target\n * time zone to avoid extra allocations.\n */\nexport function toTimeZone(date, timeZone) {\n if (date instanceof TZDate && date.timeZone === timeZone) {\n return date;\n }\n return new TZDate(date, timeZone);\n}\n"],"names":[],"mappings":";;;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,UAAU,CAAC,IAAI,EAAE,QAAQ,EAAE;AAC3C,IAAI,IAAI,IAAI,YAAY,MAAM,IAAI,IAAI,CAAC,QAAQ,KAAK,QAAQ,EAAE;AAC9D,QAAQ,OAAO,IAAI;AACnB,IAAI;AACJ,IAAI,OAAO,IAAI,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC;AACrC;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if the given value is of type {@link DateInterval}.
|
|
3
|
+
*
|
|
4
|
+
* @param matcher - The value to check.
|
|
5
|
+
* @returns `true` if the value is a {@link DateInterval}, otherwise `false`.
|
|
6
|
+
* @group Utilities
|
|
7
|
+
*/
|
|
8
|
+
function isDateInterval(matcher) {
|
|
9
|
+
return Boolean(matcher &&
|
|
10
|
+
typeof matcher === "object" &&
|
|
11
|
+
"before" in matcher &&
|
|
12
|
+
"after" in matcher);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Checks if the given value is of type {@link DateRange}.
|
|
16
|
+
*
|
|
17
|
+
* @param value - The value to check.
|
|
18
|
+
* @returns `true` if the value is a {@link DateRange}, otherwise `false`.
|
|
19
|
+
* @group Utilities
|
|
20
|
+
*/
|
|
21
|
+
function isDateRange(value) {
|
|
22
|
+
return Boolean(value && typeof value === "object" && "from" in value);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Checks if the given value is of type {@link DateAfter}.
|
|
26
|
+
*
|
|
27
|
+
* @param value - The value to check.
|
|
28
|
+
* @returns `true` if the value is a {@link DateAfter}, otherwise `false`.
|
|
29
|
+
* @group Utilities
|
|
30
|
+
*/
|
|
31
|
+
function isDateAfterType(value) {
|
|
32
|
+
return Boolean(value && typeof value === "object" && "after" in value);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Checks if the given value is of type {@link DateBefore}.
|
|
36
|
+
*
|
|
37
|
+
* @param value - The value to check.
|
|
38
|
+
* @returns `true` if the value is a {@link DateBefore}, otherwise `false`.
|
|
39
|
+
* @group Utilities
|
|
40
|
+
*/
|
|
41
|
+
function isDateBeforeType(value) {
|
|
42
|
+
return Boolean(value && typeof value === "object" && "before" in value);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Checks if the given value is of type {@link DayOfWeek}.
|
|
46
|
+
*
|
|
47
|
+
* @param value - The value to check.
|
|
48
|
+
* @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.
|
|
49
|
+
* @group Utilities
|
|
50
|
+
*/
|
|
51
|
+
function isDayOfWeekType(value) {
|
|
52
|
+
return Boolean(value && typeof value === "object" && "dayOfWeek" in value);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Checks if the given value is an array of valid dates.
|
|
56
|
+
*
|
|
57
|
+
* @private
|
|
58
|
+
* @param value - The value to check.
|
|
59
|
+
* @param dateLib - The date utility library instance.
|
|
60
|
+
* @returns `true` if the value is an array of valid dates, otherwise `false`.
|
|
61
|
+
*/
|
|
62
|
+
function isDatesArray(value, dateLib) {
|
|
63
|
+
return Array.isArray(value) && value.every(dateLib.isDate);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { isDateAfterType, isDateBeforeType, isDateInterval, isDateRange, isDatesArray, isDayOfWeekType };
|
|
67
|
+
//# sourceMappingURL=typeguards.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typeguards.js","sources":["../../../../../../node_modules/react-day-picker/dist/esm/utils/typeguards.js"],"sourcesContent":["/**\n * Checks if the given value is of type {@link DateInterval}.\n *\n * @param matcher - The value to check.\n * @returns `true` if the value is a {@link DateInterval}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateInterval(matcher) {\n return Boolean(matcher &&\n typeof matcher === \"object\" &&\n \"before\" in matcher &&\n \"after\" in matcher);\n}\n/**\n * Checks if the given value is of type {@link DateRange}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateRange}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateRange(value) {\n return Boolean(value && typeof value === \"object\" && \"from\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateAfter}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateAfter}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateAfterType(value) {\n return Boolean(value && typeof value === \"object\" && \"after\" in value);\n}\n/**\n * Checks if the given value is of type {@link DateBefore}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DateBefore}, otherwise `false`.\n * @group Utilities\n */\nexport function isDateBeforeType(value) {\n return Boolean(value && typeof value === \"object\" && \"before\" in value);\n}\n/**\n * Checks if the given value is of type {@link DayOfWeek}.\n *\n * @param value - The value to check.\n * @returns `true` if the value is a {@link DayOfWeek}, otherwise `false`.\n * @group Utilities\n */\nexport function isDayOfWeekType(value) {\n return Boolean(value && typeof value === \"object\" && \"dayOfWeek\" in value);\n}\n/**\n * Checks if the given value is an array of valid dates.\n *\n * @private\n * @param value - The value to check.\n * @param dateLib - The date utility library instance.\n * @returns `true` if the value is an array of valid dates, otherwise `false`.\n */\nexport function isDatesArray(value, dateLib) {\n return Array.isArray(value) && value.every(dateLib.isDate);\n}\n"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,cAAc,CAAC,OAAO,EAAE;AACxC,IAAI,OAAO,OAAO,CAAC,OAAO;AAC1B,QAAQ,OAAO,OAAO,KAAK,QAAQ;AACnC,QAAQ,QAAQ,IAAI,OAAO;AAC3B,QAAQ,OAAO,IAAI,OAAO,CAAC;AAC3B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,WAAW,CAAC,KAAK,EAAE;AACnC,IAAI,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,IAAI,KAAK,CAAC;AACzE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,eAAe,CAAC,KAAK,EAAE;AACvC,IAAI,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,IAAI,KAAK,CAAC;AAC1E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,KAAK,EAAE;AACxC,IAAI,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,QAAQ,IAAI,KAAK,CAAC;AAC3E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,eAAe,CAAC,KAAK,EAAE;AACvC,IAAI,OAAO,OAAO,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,WAAW,IAAI,KAAK,CAAC;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,YAAY,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7C,IAAI,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC;AAC9D;;;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A collection of the icons we use for different indicators.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Component for indicated job mode (face-to-face, hybrid, etc.)
|
|
6
|
+
*
|
|
7
|
+
* @component
|
|
8
|
+
*/
|
|
9
|
+
export declare const JobModeIcon: ({ mode }: {
|
|
10
|
+
mode: number | null | undefined;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
/**
|
|
13
|
+
* Returns the icon associated with the given job type.
|
|
14
|
+
*
|
|
15
|
+
* @component
|
|
16
|
+
*/
|
|
17
|
+
export declare const JobTypeIcon: ({ type }: {
|
|
18
|
+
type: number | null | undefined;
|
|
19
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
/**
|
|
21
|
+
* The icon we use for salaries
|
|
22
|
+
*
|
|
23
|
+
* @component
|
|
24
|
+
*/
|
|
25
|
+
export declare const SalaryIcon: () => import("react/jsx-runtime").JSX.Element;
|
|
26
|
+
/**
|
|
27
|
+
* Just so we can keep this consistent
|
|
28
|
+
*
|
|
29
|
+
* @component
|
|
30
|
+
*/
|
|
31
|
+
export declare const BooleanCheckIcon: ({ checked }: {
|
|
32
|
+
checked?: boolean | null;
|
|
33
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
package/dist/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../src/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}"],"names":[],"mappings":";;;AAGM,SAAU,EAAE,CAAC,GAAG,MAAoB,EAAA;AACxC,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B;;;;"}
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../src/utils.ts"],"sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\r\nimport { twMerge } from \"tailwind-merge\";\r\n\r\nexport function cn(...inputs: ClassValue[]) {\r\n return twMerge(clsx(inputs));\r\n}"],"names":[],"mappings":";;;AAGM,SAAU,EAAE,CAAC,GAAG,MAAoB,EAAA;AACxC,IAAA,OAAO,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AAC9B;;;;"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@betterinternship/components",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"main": "dist/index.
|
|
5
|
-
"module": "dist/index.
|
|
3
|
+
"version": "1.6.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"module": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "rollup -c && tsc-alias",
|
|
@@ -15,6 +15,78 @@
|
|
|
15
15
|
".": {
|
|
16
16
|
"import": "./dist/index.js",
|
|
17
17
|
"types": "./dist/index.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./button": {
|
|
20
|
+
"import": "./dist/components/ui/button.js",
|
|
21
|
+
"types": "./dist/components/ui/button.d.ts"
|
|
22
|
+
},
|
|
23
|
+
"./accordion": {
|
|
24
|
+
"import": "./dist/components/ui/accordion.js",
|
|
25
|
+
"types": "./dist/components/ui/accordion.d.ts"
|
|
26
|
+
},
|
|
27
|
+
"./calendar": {
|
|
28
|
+
"import": "./dist/components/ui/calendar.js",
|
|
29
|
+
"types": "./dist/components/ui/calendar.d.ts"
|
|
30
|
+
},
|
|
31
|
+
"./input": {
|
|
32
|
+
"import": "./dist/components/ui/input.js",
|
|
33
|
+
"types": "./dist/components/ui/input.d.ts"
|
|
34
|
+
},
|
|
35
|
+
"./icons": {
|
|
36
|
+
"import": "./dist/components/ui/icons.js",
|
|
37
|
+
"types": "./dist/components/ui/icons.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"./avatar": {
|
|
40
|
+
"import": "./dist/components/ui/avatar.js",
|
|
41
|
+
"types": "./dist/components/ui/avatar.d.ts"
|
|
42
|
+
},
|
|
43
|
+
"./badge": {
|
|
44
|
+
"import": "./dist/components/ui/badge.js",
|
|
45
|
+
"types": "./dist/components/ui/badge.d.ts"
|
|
46
|
+
},
|
|
47
|
+
"./card": {
|
|
48
|
+
"import": "./dist/components/ui/card.js",
|
|
49
|
+
"types": "./dist/components/ui/card.d.ts"
|
|
50
|
+
},
|
|
51
|
+
"./checkbox": {
|
|
52
|
+
"import": "./dist/components/ui/checkbox.js",
|
|
53
|
+
"types": "./dist/components/ui/checkbox.d.ts"
|
|
54
|
+
},
|
|
55
|
+
"./dialog": {
|
|
56
|
+
"import": "./dist/components/ui/dialog.js",
|
|
57
|
+
"types": "./dist/components/ui/dialog.d.ts"
|
|
58
|
+
},
|
|
59
|
+
"./label": {
|
|
60
|
+
"import": "./dist/components/ui/label.js",
|
|
61
|
+
"types": "./dist/components/ui/label.d.ts"
|
|
62
|
+
},
|
|
63
|
+
"./popover": {
|
|
64
|
+
"import": "./dist/components/ui/popover.js",
|
|
65
|
+
"types": "./dist/components/ui/popover.d.ts"
|
|
66
|
+
},
|
|
67
|
+
"./separator": {
|
|
68
|
+
"import": "./dist/components/ui/separator.js",
|
|
69
|
+
"types": "./dist/components/ui/separator.d.ts"
|
|
70
|
+
},
|
|
71
|
+
"./skeleton": {
|
|
72
|
+
"import": "./dist/components/ui/skeleton.js",
|
|
73
|
+
"types": "./dist/components/ui/skeleton.d.ts"
|
|
74
|
+
},
|
|
75
|
+
"./switch": {
|
|
76
|
+
"import": "./dist/components/ui/switch.js",
|
|
77
|
+
"types": "./dist/components/ui/switch.d.ts"
|
|
78
|
+
},
|
|
79
|
+
"./table": {
|
|
80
|
+
"import": "./dist/components/ui/table.js",
|
|
81
|
+
"types": "./dist/components/ui/table.d.ts"
|
|
82
|
+
},
|
|
83
|
+
"./textarea": {
|
|
84
|
+
"import": "./dist/components/ui/textarea.js",
|
|
85
|
+
"types": "./dist/components/ui/textarea.d.ts"
|
|
86
|
+
},
|
|
87
|
+
"./tooltip": {
|
|
88
|
+
"import": "./dist/components/ui/tooltip.js",
|
|
89
|
+
"types": "./dist/components/ui/tooltip.d.ts"
|
|
18
90
|
}
|
|
19
91
|
},
|
|
20
92
|
"repository": {
|
|
@@ -58,6 +130,7 @@
|
|
|
58
130
|
"@radix-ui/react-toggle-group": "^1.1.1",
|
|
59
131
|
"@radix-ui/react-tooltip": "^1.2.7",
|
|
60
132
|
"@tanstack/react-query": "^5.0.0",
|
|
133
|
+
"lucide-react": ">=0.454.0",
|
|
61
134
|
"react": "^19",
|
|
62
135
|
"react-dom": "^19",
|
|
63
136
|
"sonner": "^2.0.7"
|
|
@@ -79,11 +152,6 @@
|
|
|
79
152
|
"devDependencies": {
|
|
80
153
|
"@eslint/eslintrc": "^3.2.0",
|
|
81
154
|
"@eslint/js": "^9.18.0",
|
|
82
|
-
"eslint": "^9.18.0",
|
|
83
|
-
"eslint-config-prettier": "^10.0.1",
|
|
84
|
-
"eslint-plugin-prettier": "^5.2.2",
|
|
85
|
-
"prettier": "^3.4.2",
|
|
86
|
-
"typescript-eslint": "^8.20.0",
|
|
87
155
|
"@radix-ui/react-accordion": "^1.2.11",
|
|
88
156
|
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
89
157
|
"@radix-ui/react-aspect-ratio": "^1.1.1",
|
|
@@ -119,8 +187,12 @@
|
|
|
119
187
|
"autoprefixer": "^10.4.22",
|
|
120
188
|
"esbuild-css-modules-plugin": "^3.1.5",
|
|
121
189
|
"esbuild-style-plugin": "^1.6.3",
|
|
190
|
+
"eslint": "^9.18.0",
|
|
191
|
+
"eslint-config-prettier": "^10.0.1",
|
|
192
|
+
"eslint-plugin-prettier": "^5.2.2",
|
|
122
193
|
"postcss": "^8.5.6",
|
|
123
194
|
"postcss-cli": "^11.0.1",
|
|
195
|
+
"prettier": "^3.4.2",
|
|
124
196
|
"react": "^19",
|
|
125
197
|
"react-dom": "^19",
|
|
126
198
|
"rollup": "^4.53.3",
|
|
@@ -131,14 +203,17 @@
|
|
|
131
203
|
"tailwindcss": "^4.1.17",
|
|
132
204
|
"tsc-alias": "^1.8.16",
|
|
133
205
|
"tw-animate-css": "^1.4.0",
|
|
134
|
-
"typescript": "^5.9.3"
|
|
206
|
+
"typescript": "^5.9.3",
|
|
207
|
+
"typescript-eslint": "^8.20.0"
|
|
135
208
|
},
|
|
136
209
|
"files": [
|
|
137
210
|
"dist"
|
|
138
211
|
],
|
|
139
212
|
"dependencies": {
|
|
213
|
+
"@daypicker/react": "^10.0.1",
|
|
140
214
|
"class-variance-authority": "^0.7.1",
|
|
141
215
|
"clsx": "^2.1.1",
|
|
216
|
+
"lucide-react": "^1.30.0",
|
|
142
217
|
"tailwind-merge": "^3.4.0"
|
|
143
218
|
}
|
|
144
219
|
}
|