@helpwave/hightide 0.8.3 → 0.8.5

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/index.mjs CHANGED
@@ -14641,7 +14641,7 @@ var formatRelative = (date, locale) => {
14641
14641
  if (Math.abs(diffInSeconds) < timesInSeconds.day) return rtf.format(Math.round(diffInSeconds / timesInSeconds.hour), "hour");
14642
14642
  if (Math.abs(diffInSeconds) < timesInSeconds.week) return rtf.format(Math.round(diffInSeconds / timesInSeconds.day), "day");
14643
14643
  if (Math.abs(diffInSeconds) < timesInSeconds.monthImprecise) return rtf.format(Math.round(diffInSeconds / timesInSeconds.week), "week");
14644
- if (Math.abs(diffInSeconds) < timesInSeconds.monthImprecise) return rtf.format(Math.round(diffInSeconds / timesInSeconds.monthImprecise), "month");
14644
+ if (Math.abs(diffInSeconds) < timesInSeconds.yearImprecise) return rtf.format(Math.round(diffInSeconds / timesInSeconds.monthImprecise), "month");
14645
14645
  return rtf.format(Math.round(diffInSeconds / timesInSeconds.monthImprecise), "year");
14646
14646
  };
14647
14647
  var toInputString = (date, format) => {
@@ -18312,7 +18312,7 @@ var useSearch = ({
18312
18312
 
18313
18313
  // src/hooks/useUpdatingDateString.ts
18314
18314
  import { useEffect as useEffect45, useState as useState41 } from "react";
18315
- var UseUpdatingDateString = ({ absoluteFormat = "dateTime", localeOverride, date }) => {
18315
+ var useUpdatingDateString = ({ absoluteFormat = "dateTime", localeOverride, date }) => {
18316
18316
  const { locale: contextLocale } = useLocale();
18317
18317
  const locale = localeOverride ?? contextLocale;
18318
18318
  const [dateAndTimeStrings, setDateAndTimeStrings] = useState41({
@@ -18847,7 +18847,6 @@ export {
18847
18847
  TooltipRoot,
18848
18848
  TooltipTrigger,
18849
18849
  Transition,
18850
- UseUpdatingDateString,
18851
18850
  UseValidators,
18852
18851
  VerticalDivider,
18853
18852
  Visibility,
@@ -18919,6 +18918,7 @@ export {
18919
18918
  useTooltip,
18920
18919
  useTransitionState,
18921
18920
  useTranslatedValidators,
18921
+ useUpdatingDateString,
18922
18922
  useWindowResizeObserver,
18923
18923
  validateEmail,
18924
18924
  writeToClipboard