@helpwave/hightide 0.8.5 → 0.8.7

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.d.mts CHANGED
@@ -1399,15 +1399,15 @@ interface TooltipTriggerProps {
1399
1399
  children: (bag: TooltipTriggerBag) => ReactNode;
1400
1400
  }
1401
1401
  declare const TooltipTrigger: ({ children, }: TooltipTriggerProps) => ReactNode;
1402
- interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | 'disabled' | 'isAnimated'> {
1402
+ interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | 'isAnimated'> {
1403
1403
  tooltip: ReactNode;
1404
- tooltipClassName?: string;
1405
1404
  containerClassName?: string;
1405
+ displayProps?: Omit<TooltipDisplayProps, 'alignment' | 'isAnimated'>;
1406
1406
  }
1407
1407
  /**
1408
1408
  * A Component for showing a tooltip when hovering over Content
1409
1409
  */
1410
- declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
1410
+ declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated, onIsShownChange, displayProps, }: TooltipProps) => react_jsx_runtime.JSX.Element;
1411
1411
 
1412
1412
  /**
1413
1413
  * The different sizes for a icon button
package/dist/index.d.ts CHANGED
@@ -1399,15 +1399,15 @@ interface TooltipTriggerProps {
1399
1399
  children: (bag: TooltipTriggerBag) => ReactNode;
1400
1400
  }
1401
1401
  declare const TooltipTrigger: ({ children, }: TooltipTriggerProps) => ReactNode;
1402
- interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | 'disabled' | 'isAnimated'> {
1402
+ interface TooltipProps extends TooltipRootProps, Pick<TooltipDisplayProps, 'alignment' | 'isAnimated'> {
1403
1403
  tooltip: ReactNode;
1404
- tooltipClassName?: string;
1405
1404
  containerClassName?: string;
1405
+ displayProps?: Omit<TooltipDisplayProps, 'alignment' | 'isAnimated'>;
1406
1406
  }
1407
1407
  /**
1408
1408
  * A Component for showing a tooltip when hovering over Content
1409
1409
  */
1410
- declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element;
1410
+ declare const Tooltip: ({ tooltip, children, isInitiallyShown, appearDelay, disabled, containerClassName, alignment, isAnimated, onIsShownChange, displayProps, }: TooltipProps) => react_jsx_runtime.JSX.Element;
1411
1411
 
1412
1412
  /**
1413
1413
  * The different sizes for a icon button
package/dist/index.js CHANGED
@@ -9815,21 +9815,23 @@ var Tooltip = ({
9815
9815
  containerClassName,
9816
9816
  alignment,
9817
9817
  isAnimated,
9818
- ...props
9818
+ onIsShownChange,
9819
+ displayProps
9819
9820
  }) => {
9820
9821
  return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(
9821
9822
  TooltipRoot,
9822
9823
  {
9823
9824
  isInitiallyShown,
9825
+ onIsShownChange,
9824
9826
  appearDelay,
9825
9827
  disabled,
9826
9828
  children: [
9827
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipTrigger, { children: ({ props: props2, callbackRef, disabled: disabled2 }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
9829
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(TooltipTrigger, { children: ({ props, callbackRef, disabled: disabled2 }) => /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
9828
9830
  "div",
9829
9831
  {
9830
9832
  ref: callbackRef,
9831
9833
  className: containerClassName,
9832
- ...disabled2 ? void 0 : props2,
9834
+ ...disabled2 ? void 0 : props,
9833
9835
  children
9834
9836
  }
9835
9837
  ) }),
@@ -9838,7 +9840,7 @@ var Tooltip = ({
9838
9840
  {
9839
9841
  alignment,
9840
9842
  isAnimated,
9841
- ...props,
9843
+ ...displayProps,
9842
9844
  children: tooltip
9843
9845
  }
9844
9846
  )
@@ -10532,9 +10534,10 @@ var Expandable = (0, import_react29.forwardRef)(function Expandable2({
10532
10534
  trigger,
10533
10535
  triggerProps,
10534
10536
  contentProps,
10535
- contentExpandedClassName
10537
+ contentExpandedClassName,
10538
+ ...props
10536
10539
  }, ref) {
10537
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(ExpandableRoot, { ref, children: [
10540
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(ExpandableRoot, { ref, ...props, children: [
10538
10541
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ExpandableHeader, { ...triggerProps, children: trigger }),
10539
10542
  /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(ExpandableContext.Consumer, { children: (ctx) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
10540
10543
  ExpandableContent,
@@ -14886,7 +14889,7 @@ var formatRelative = (date, locale) => {
14886
14889
  if (Math.abs(diffInSeconds) < timesInSeconds.week) return rtf.format(Math.round(diffInSeconds / timesInSeconds.day), "day");
14887
14890
  if (Math.abs(diffInSeconds) < timesInSeconds.monthImprecise) return rtf.format(Math.round(diffInSeconds / timesInSeconds.week), "week");
14888
14891
  if (Math.abs(diffInSeconds) < timesInSeconds.yearImprecise) return rtf.format(Math.round(diffInSeconds / timesInSeconds.monthImprecise), "month");
14889
- return rtf.format(Math.round(diffInSeconds / timesInSeconds.monthImprecise), "year");
14892
+ return rtf.format(Math.round(diffInSeconds / timesInSeconds.yearImprecise), "year");
14890
14893
  };
14891
14894
  var toInputString = (date, format) => {
14892
14895
  switch (format) {