@butternutbox/pawprint-native 0.15.1 → 0.15.2

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.cts CHANGED
@@ -1829,7 +1829,14 @@ declare const StackedNotifications: React.ForwardRefExoticComponent<StackedNotif
1829
1829
  type TooltipAlignment = "left" | "middle" | "right";
1830
1830
  type TooltipPosition = "top" | "bottom";
1831
1831
  type TooltipOwnProps = {
1832
- text: string;
1832
+ /**
1833
+ * Tooltip body content. Pass a plain string for simple copy, or a
1834
+ * `ReactNode` (e.g. a `<Trans>` / nested `<Text>`) when part of the text
1835
+ * needs its own styling — bold, colour, underline, etc. A node is rendered
1836
+ * inside the tooltip's own `<Typography>`, so it inherits the base font and
1837
+ * only the emphasised spans override it.
1838
+ */
1839
+ text: string | React.ReactNode;
1833
1840
  alignment?: TooltipAlignment;
1834
1841
  position?: TooltipPosition;
1835
1842
  /**
package/dist/index.d.ts CHANGED
@@ -1829,7 +1829,14 @@ declare const StackedNotifications: React.ForwardRefExoticComponent<StackedNotif
1829
1829
  type TooltipAlignment = "left" | "middle" | "right";
1830
1830
  type TooltipPosition = "top" | "bottom";
1831
1831
  type TooltipOwnProps = {
1832
- text: string;
1832
+ /**
1833
+ * Tooltip body content. Pass a plain string for simple copy, or a
1834
+ * `ReactNode` (e.g. a `<Trans>` / nested `<Text>`) when part of the text
1835
+ * needs its own styling — bold, colour, underline, etc. A node is rendered
1836
+ * inside the tooltip's own `<Typography>`, so it inherits the base font and
1837
+ * only the emphasised spans override it.
1838
+ */
1839
+ text: string | React.ReactNode;
1833
1840
  alignment?: TooltipAlignment;
1834
1841
  position?: TooltipPosition;
1835
1842
  /**
package/dist/index.js CHANGED
@@ -10074,7 +10074,7 @@ var Tooltip = React66.forwardRef(
10074
10074
  ref,
10075
10075
  accessible: true,
10076
10076
  accessibilityRole: "none",
10077
- accessibilityLabel: text,
10077
+ accessibilityLabel: typeof text === "string" ? text : void 0,
10078
10078
  accessibilityLiveRegion: "polite"
10079
10079
  }, props), {
10080
10080
  children: [