@octanejs/visx 0.1.4 → 0.1.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.
Files changed (160) hide show
  1. package/package.json +5 -5
  2. package/src/a11y/components/ChartA11yAnnouncer.tsrx +4 -3
  3. package/src/a11y/components/ChartA11yAnnouncer.tsrx.d.ts +4 -3
  4. package/src/annotation/components/Annotation.tsrx +2 -2
  5. package/src/annotation/components/Annotation.tsrx.d.ts +2 -2
  6. package/src/annotation/components/EditableAnnotation.tsrx +3 -2
  7. package/src/annotation/components/EditableAnnotation.tsrx.d.ts +3 -2
  8. package/src/annotation/components/HtmlLabel.tsrx +3 -2
  9. package/src/annotation/components/HtmlLabel.tsrx.d.ts +3 -2
  10. package/src/axis/types.ts +5 -4
  11. package/src/brush/BaseBrush.tsrx +3 -2
  12. package/src/brush/BaseBrush.tsrx.d.ts +3 -2
  13. package/src/brush/Brush.tsrx +3 -2
  14. package/src/brush/Brush.tsrx.d.ts +3 -2
  15. package/src/brush/BrushHandle.tsrx +2 -2
  16. package/src/brush/BrushHandle.tsrx.d.ts +2 -2
  17. package/src/brush/utils.ts +0 -1
  18. package/src/chord/Chord.tsrx +2 -2
  19. package/src/chord/Chord.tsrx.d.ts +2 -2
  20. package/src/clip-path/clip-paths/ClipPath.tsrx +3 -2
  21. package/src/clip-path/clip-paths/ClipPath.tsrx.d.ts +3 -2
  22. package/src/delaunay/components/Polygon.tsrx +3 -2
  23. package/src/delaunay/components/Polygon.tsrx.d.ts +3 -2
  24. package/src/drag/Drag.tsrx +2 -2
  25. package/src/drag/Drag.tsrx.d.ts +2 -2
  26. package/src/drag/useDrag.tsrx +2 -7
  27. package/src/drag/useDrag.tsrx.d.ts +0 -1
  28. package/src/geo/graticule/Graticule.tsrx +3 -2
  29. package/src/geo/graticule/Graticule.tsrx.d.ts +3 -2
  30. package/src/geo/projections/Projection.tsrx +5 -4
  31. package/src/geo/projections/Projection.tsrx.d.ts +5 -4
  32. package/src/glyph/glyphs/Glyph.tsrx +2 -2
  33. package/src/glyph/glyphs/Glyph.tsrx.d.ts +2 -2
  34. package/src/glyph/glyphs/GlyphCircle.tsrx +3 -2
  35. package/src/glyph/glyphs/GlyphCircle.tsrx.d.ts +3 -2
  36. package/src/glyph/glyphs/GlyphCross.tsrx +3 -2
  37. package/src/glyph/glyphs/GlyphCross.tsrx.d.ts +3 -2
  38. package/src/glyph/glyphs/GlyphDiamond.tsrx +3 -2
  39. package/src/glyph/glyphs/GlyphDiamond.tsrx.d.ts +3 -2
  40. package/src/glyph/glyphs/GlyphSquare.tsrx +3 -2
  41. package/src/glyph/glyphs/GlyphSquare.tsrx.d.ts +3 -2
  42. package/src/glyph/glyphs/GlyphStar.tsrx +3 -2
  43. package/src/glyph/glyphs/GlyphStar.tsrx.d.ts +3 -2
  44. package/src/glyph/glyphs/GlyphTriangle.tsrx +3 -2
  45. package/src/glyph/glyphs/GlyphTriangle.tsrx.d.ts +3 -2
  46. package/src/glyph/glyphs/GlyphWye.tsrx +3 -2
  47. package/src/glyph/glyphs/GlyphWye.tsrx.d.ts +3 -2
  48. package/src/gradient/gradients/LinearGradient.tsrx +3 -2
  49. package/src/gradient/gradients/LinearGradient.tsrx.d.ts +3 -2
  50. package/src/grid/grids/GridAngle.tsrx +2 -2
  51. package/src/grid/grids/GridAngle.tsrx.d.ts +2 -2
  52. package/src/grid/grids/GridColumns.tsrx +2 -2
  53. package/src/grid/grids/GridColumns.tsrx.d.ts +2 -2
  54. package/src/grid/grids/GridPolar.tsrx +4 -3
  55. package/src/grid/grids/GridPolar.tsrx.d.ts +4 -3
  56. package/src/grid/grids/GridRadial.tsrx +4 -3
  57. package/src/grid/grids/GridRadial.tsrx.d.ts +4 -3
  58. package/src/grid/grids/GridRows.tsrx +2 -2
  59. package/src/grid/grids/GridRows.tsrx.d.ts +2 -2
  60. package/src/grid/types.ts +3 -2
  61. package/src/group/Group.tsrx +5 -3
  62. package/src/group/Group.tsrx.d.ts +5 -3
  63. package/src/heatmap/heatmaps/HeatmapCircle.tsrx +3 -2
  64. package/src/heatmap/heatmaps/HeatmapCircle.tsrx.d.ts +3 -2
  65. package/src/heatmap/heatmaps/HeatmapRect.tsrx +3 -2
  66. package/src/heatmap/heatmaps/HeatmapRect.tsrx.d.ts +3 -2
  67. package/src/hierarchy/hierarchies/Cluster.tsrx +3 -2
  68. package/src/hierarchy/hierarchies/Cluster.tsrx.d.ts +3 -2
  69. package/src/hierarchy/hierarchies/Pack.tsrx +3 -2
  70. package/src/hierarchy/hierarchies/Pack.tsrx.d.ts +3 -2
  71. package/src/hierarchy/hierarchies/Partition.tsrx +3 -2
  72. package/src/hierarchy/hierarchies/Partition.tsrx.d.ts +3 -2
  73. package/src/hierarchy/hierarchies/Tree.tsrx +3 -2
  74. package/src/hierarchy/hierarchies/Tree.tsrx.d.ts +3 -2
  75. package/src/hierarchy/hierarchies/Treemap.tsrx +3 -2
  76. package/src/hierarchy/hierarchies/Treemap.tsrx.d.ts +3 -2
  77. package/src/legend/legends/Legend/LegendItem.tsrx +3 -2
  78. package/src/legend/legends/Legend/LegendItem.tsrx.d.ts +3 -2
  79. package/src/legend/legends/Legend/LegendLabel.tsrx +4 -3
  80. package/src/legend/legends/Legend/LegendLabel.tsrx.d.ts +4 -3
  81. package/src/legend/legends/Legend/index.tsrx +3 -2
  82. package/src/legend/legends/Legend/index.tsrx.d.ts +3 -2
  83. package/src/marker/markers/Marker.tsrx +3 -2
  84. package/src/marker/markers/Marker.tsrx.d.ts +3 -2
  85. package/src/pattern/patterns/Pattern.tsrx +2 -2
  86. package/src/pattern/patterns/Pattern.tsrx.d.ts +2 -2
  87. package/src/responsive/components/ParentSize.tsrx +10 -4
  88. package/src/responsive/components/ParentSize.tsrx.d.ts +9 -4
  89. package/src/responsive/components/ScaleSVG.tsrx +3 -2
  90. package/src/responsive/components/ScaleSVG.tsrx.d.ts +3 -2
  91. package/src/sankey/Sankey.tsrx +3 -2
  92. package/src/sankey/Sankey.tsrx.d.ts +3 -2
  93. package/src/shape/shapes/Arc.tsrx +3 -2
  94. package/src/shape/shapes/Arc.tsrx.d.ts +3 -2
  95. package/src/shape/shapes/BarGroup.tsrx +2 -2
  96. package/src/shape/shapes/BarGroup.tsrx.d.ts +2 -2
  97. package/src/shape/shapes/BarGroupHorizontal.tsrx +2 -2
  98. package/src/shape/shapes/BarGroupHorizontal.tsrx.d.ts +2 -2
  99. package/src/shape/shapes/BarRounded.tsrx +3 -2
  100. package/src/shape/shapes/BarRounded.tsrx.d.ts +3 -2
  101. package/src/shape/shapes/LinePath.tsrx +3 -2
  102. package/src/shape/shapes/LinePath.tsrx.d.ts +3 -2
  103. package/src/shape/shapes/LineRadial.tsrx +2 -2
  104. package/src/shape/shapes/LineRadial.tsrx.d.ts +2 -2
  105. package/src/shape/shapes/Pie.tsrx +3 -3
  106. package/src/shape/shapes/Pie.tsrx.d.ts +3 -3
  107. package/src/shape/shapes/Polygon.tsrx +3 -2
  108. package/src/shape/shapes/Polygon.tsrx.d.ts +3 -2
  109. package/src/shape/shapes/SplitLinePath.tsrx +15 -4
  110. package/src/shape/shapes/SplitLinePath.tsrx.d.ts +14 -4
  111. package/src/shape/shapes/Stack.tsrx +2 -2
  112. package/src/shape/shapes/Stack.tsrx.d.ts +2 -2
  113. package/src/shape/types/area.ts +3 -2
  114. package/src/shape/types/barStack.ts +2 -2
  115. package/src/shape/types/base.ts +8 -5
  116. package/src/shape/types/link.ts +3 -2
  117. package/src/stats/BoxPlot.tsrx +3 -2
  118. package/src/stats/BoxPlot.tsrx.d.ts +3 -2
  119. package/src/stats/ViolinPlot.tsrx +3 -2
  120. package/src/stats/ViolinPlot.tsrx.d.ts +3 -2
  121. package/src/theme/provider/ThemeScope.tsrx +3 -2
  122. package/src/theme/provider/ThemeScope.tsrx.d.ts +3 -2
  123. package/src/tooltip/Portal.tsrx +2 -2
  124. package/src/tooltip/Portal.tsrx.d.ts +2 -2
  125. package/src/tooltip/floating/ChartTooltip.tsrx +3 -2
  126. package/src/tooltip/floating/ChartTooltip.tsrx.d.ts +3 -2
  127. package/src/tooltip/floating/ChartTooltipContent.tsrx +13 -12
  128. package/src/tooltip/floating/ChartTooltipContent.tsrx.d.ts +13 -12
  129. package/src/tooltip/floating/FloatingTooltip.tsrx.d.ts +1 -1
  130. package/src/tooltip/floating/context.tsrx +2 -1
  131. package/src/tooltip/floating/context.tsrx.d.ts +2 -1
  132. package/src/tooltip/floating/types.ts +4 -3
  133. package/src/tooltip/tooltips/Tooltip.tsrx +3 -2
  134. package/src/tooltip/tooltips/Tooltip.tsrx.d.ts +3 -2
  135. package/src/voronoi/components/VoronoiPolygon.tsrx +3 -2
  136. package/src/voronoi/components/VoronoiPolygon.tsrx.d.ts +3 -2
  137. package/src/wordcloud/Wordcloud.tsrx +2 -2
  138. package/src/wordcloud/Wordcloud.tsrx.d.ts +2 -2
  139. package/src/xychart/components/Tooltip.tsrx +4 -3
  140. package/src/xychart/components/Tooltip.tsrx.d.ts +4 -3
  141. package/src/xychart/components/XYChart.tsrx +3 -2
  142. package/src/xychart/components/XYChart.tsrx.d.ts +3 -2
  143. package/src/xychart/components/series/GlyphSeries.tsrx +3 -2
  144. package/src/xychart/components/series/private/AnimatedGlyphs.tsrx +3 -2
  145. package/src/xychart/components/series/private/BaseBarGroup.tsrx +3 -2
  146. package/src/xychart/components/series/private/BaseBarGroup.tsrx.d.ts +3 -2
  147. package/src/xychart/components/series/private/BaseGlyphSeries.tsrx +2 -2
  148. package/src/xychart/components/series/private/BaseGlyphSeries.tsrx.d.ts +2 -2
  149. package/src/xychart/hooks/useStackedData.tsrx +2 -2
  150. package/src/xychart/hooks/useStackedData.tsrx.d.ts +2 -2
  151. package/src/xychart/providers/DataProvider.tsrx +2 -2
  152. package/src/xychart/providers/DataProvider.tsrx.d.ts +2 -2
  153. package/src/xychart/providers/EventEmitterProvider.tsrx +2 -2
  154. package/src/xychart/providers/EventEmitterProvider.tsrx.d.ts +2 -2
  155. package/src/xychart/providers/ThemeProvider.tsrx +2 -2
  156. package/src/xychart/providers/ThemeProvider.tsrx.d.ts +2 -2
  157. package/src/xychart/providers/TooltipProvider.tsrx +2 -2
  158. package/src/xychart/providers/TooltipProvider.tsrx.d.ts +2 -2
  159. package/src/xychart/utils/collectDataRegistryEntries.ts +2 -2
  160. package/src/xychart/utils/getChildrenAndGrandchildrenWithProps.ts +6 -5
@@ -1,5 +1,5 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { ReactNode } from 'react';
2
+ import type { OctaneNode } from 'octane';
3
3
  import type { AddSVGProps, ArcPathConfig, PiePathConfig } from '../types';
4
4
  import type { PieArcDatum, UsePieResult } from '../react/usePie.tsrx';
5
5
  export type { PieArcDatum };
@@ -15,7 +15,7 @@ export type PieProps<Datum> = {
15
15
  /** Array of data to generate a Pie for. */
16
16
  data?: Datum[];
17
17
  /** Optional render function invoked for each Datum to render something (e.g., a Label) at each pie centroid. */
18
- centroid?: (xyCoords: [number, number], arc: PieArcDatum<Datum>) => ReactNode;
18
+ centroid?: (xyCoords: [number, number], arc: PieArcDatum<Datum>) => OctaneNode;
19
19
  /** Invoked for each datum, returns the value for a given Pie segment/arc datum. */
20
20
  pieValue?: PiePathConfig<Datum>['value'];
21
21
  /** Comparator function to sort *arcs*, overridden by pieSortValues if defined. If pieSort and pieSortValues are null, arcs match input data order. */
@@ -23,7 +23,7 @@ export type PieProps<Datum> = {
23
23
  /** Comparator function to sort arc *values*, overrides pieSort if defined. If pieSort and pieSortValues are null, arcs match input data order. */
24
24
  pieSortValues?: PiePathConfig<Datum>['sortValues'];
25
25
  /** Render function override which is passed the configured arc generator as input. */
26
- children?: (provided: ProvidedProps<Datum>) => ReactNode;
26
+ children?: (provided: ProvidedProps<Datum>) => OctaneNode;
27
27
  /** Optional accessor function to return the fill string value of a given arc. */
28
28
  fill?: string | StringAccessor<Datum>;
29
29
  } & Pick<PiePathConfig<Datum>, 'startAngle' | 'endAngle' | 'padAngle'> & Pick<ArcPathConfig<PieArcDatum<Datum>>, 'innerRadius' | 'outerRadius' | 'cornerRadius' | 'padRadius'>;
@@ -1,4 +1,5 @@
1
- import type { ReactNode, Ref } from 'react';
1
+ import type { Ref } from 'react';
2
+ import type { OctaneNode } from 'octane';
2
3
  import cx from 'classnames';
3
4
  import { degreesToRadians } from '../util/trigonometry';
4
5
  import type { AddSVGProps } from '../types';
@@ -42,7 +43,7 @@ export type PolygonProps = {
42
43
  /** Rotation transform to apply to polygon. */
43
44
  rotate?: number;
44
45
  /** Render function override which is passed the generated polygon points. */
45
- children?: (args: { points: [number, number][] }) => ReactNode;
46
+ children?: (args: { points: [number, number][] }) => OctaneNode;
46
47
  /** Reference to polygon element. */
47
48
  innerRef?: Ref<SVGPolygonElement>;
48
49
  /** Polygon center position. */
@@ -1,5 +1,6 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { ReactNode, Ref } from 'react';
2
+ import type { Ref } from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { AddSVGProps } from '../types';
4
5
  export declare const getPoint: ({ sides, size, center, rotate, side }: {
5
6
  side: number;
@@ -25,7 +26,7 @@ export type PolygonProps = {
25
26
  /** Render function override which is passed the generated polygon points. */
26
27
  children?: (args: {
27
28
  points: [number, number][];
28
- }) => ReactNode;
29
+ }) => OctaneNode;
29
30
  /** Reference to polygon element. */
30
31
  innerRef?: Ref<SVGPolygonElement>;
31
32
  /** Polygon center position. */
@@ -1,5 +1,6 @@
1
1
  import { useMemo } from 'octane';
2
- import type { ReactNode, SVGProps } from 'react';
2
+ import type { Octane } from 'octane/jsx-runtime';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { GetLineSegmentsConfig } from '../util/getSplitLineSegments';
4
5
  import getSplitLineSegments from '../util/getSplitLineSegments';
5
6
  import { line } from '../util/D3ShapeFactories';
@@ -14,17 +15,27 @@ interface Point {
14
15
  const getX = (d: Point) => d.x || 0;
15
16
  const getY = (d: Point) => d.y || 0;
16
17
 
18
+ /**
19
+ * Per-segment path styles. Octane's `className` composes clsx-style
20
+ * (`ClassValue`), but segment styles are forwarded to `LinePath`'s plain
21
+ * `className?: string` prop, so it stays a string here (matching upstream).
22
+ */
23
+ type SplitLinePathSegmentStyles = Omit<
24
+ Octane.SVGProps<SVGPathElement>,
25
+ 'x' | 'y' | 'children' | 'className'
26
+ > & { className?: string };
27
+
17
28
  export type SplitLinePathRenderer = (renderProps: {
18
29
  index: number;
19
30
  segment: { x: number; y: number }[];
20
- styles?: Omit<SVGProps<SVGPathElement>, 'x' | 'y' | 'children'>;
21
- }) => ReactNode;
31
+ styles?: SplitLinePathSegmentStyles;
32
+ }) => OctaneNode;
22
33
 
23
34
  export type SplitLinePathProps<Datum> = {
24
35
  /** Array of data segments, where each segment will be a separate path in the rendered line. */
25
36
  segments: Datum[][];
26
37
  /** Styles to apply to each segment. If fewer styles are specified than the number of segments, they will be re-used. */
27
- styles: Omit<SVGProps<SVGPathElement>, 'x' | 'y' | 'children'>[];
38
+ styles: SplitLinePathSegmentStyles[];
28
39
  /** Override render function which is passed the configured path generator as input. */
29
40
  children?: SplitLinePathRenderer;
30
41
  /** className applied to path element. */
@@ -1,23 +1,33 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { ReactNode, SVGProps } from 'react';
2
+ import type { Octane } from 'octane/jsx-runtime';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { GetLineSegmentsConfig } from '../util/getSplitLineSegments';
4
5
  import type { LinePathConfig } from '../types';
6
+ /**
7
+ * Per-segment path styles. Octane's `className` composes clsx-style
8
+ * (`ClassValue`), but segment styles are forwarded to `LinePath`'s plain
9
+ * `className?: string` prop, so it stays a string here (matching upstream).
10
+ */
11
+ type SplitLinePathSegmentStyles = Omit<Octane.SVGProps<SVGPathElement>, 'x' | 'y' | 'children' | 'className'> & {
12
+ className?: string;
13
+ };
5
14
  export type SplitLinePathRenderer = (renderProps: {
6
15
  index: number;
7
16
  segment: {
8
17
  x: number;
9
18
  y: number;
10
19
  }[];
11
- styles?: Omit<SVGProps<SVGPathElement>, 'x' | 'y' | 'children'>;
12
- }) => ReactNode;
20
+ styles?: SplitLinePathSegmentStyles;
21
+ }) => OctaneNode;
13
22
  export type SplitLinePathProps<Datum> = {
14
23
  /** Array of data segments, where each segment will be a separate path in the rendered line. */
15
24
  segments: Datum[][];
16
25
  /** Styles to apply to each segment. If fewer styles are specified than the number of segments, they will be re-used. */
17
- styles: Omit<SVGProps<SVGPathElement>, 'x' | 'y' | 'children'>[];
26
+ styles: SplitLinePathSegmentStyles[];
18
27
  /** Override render function which is passed the configured path generator as input. */
19
28
  children?: SplitLinePathRenderer;
20
29
  /** className applied to path element. */
21
30
  className?: string;
22
31
  } & LinePathConfig<Datum> & Pick<GetLineSegmentsConfig, 'segmentation' | 'sampleRate'>;
23
32
  export default function SplitLinePath<Datum>({ children, className, curve, defined, segmentation, sampleRate, segments, x, y, styles, }: SplitLinePathProps<Datum>): import("react").JSX.Element;
33
+ export {};
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { OctaneNode } from 'octane';
2
2
  import cx from 'classnames';
3
3
  import { Group } from '@octanejs/visx/group';
4
4
  import type { Area as AreaType, Stack as StackType, SeriesPoint, Series } from 'd3-shape';
@@ -20,7 +20,7 @@ export type StackProps<Datum, Key> = BaseStackProps<Datum, Key> & {
20
20
  stacks: Series<Datum, Key>[];
21
21
  path: AreaType<SeriesPoint<Datum>>;
22
22
  stack: StackType<$TSFIXME, Datum, Key>;
23
- }) => ReactNode;
23
+ }) => OctaneNode;
24
24
  /** Sets the x0 accessor function, and sets x1 to null. */
25
25
  x?: AccessorForArrayItem<SeriesPoint<Datum>, number>;
26
26
  /** Specifies the x0 accessor function which defaults to d => d[0]. */
@@ -1,5 +1,5 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { ReactNode } from 'react';
2
+ import type { OctaneNode } from 'octane';
3
3
  import type { Area as AreaType, Stack as StackType, SeriesPoint, Series } from 'd3-shape';
4
4
  import type { $TSFIXME, AddSVGProps, AccessorForArrayItem, StackKey, BaseStackProps, AreaPathConfig } from '../types';
5
5
  export type StackProps<Datum, Key> = BaseStackProps<Datum, Key> & {
@@ -10,7 +10,7 @@ export type StackProps<Datum, Key> = BaseStackProps<Datum, Key> & {
10
10
  stacks: Series<Datum, Key>[];
11
11
  path: AreaType<SeriesPoint<Datum>>;
12
12
  stack: StackType<$TSFIXME, Datum, Key>;
13
- }) => ReactNode;
13
+ }) => OctaneNode;
14
14
  /** Sets the x0 accessor function, and sets x1 to null. */
15
15
  x?: AccessorForArrayItem<SeriesPoint<Datum>, number>;
16
16
  /** Specifies the x0 accessor function which defaults to d => d[0]. */
@@ -1,10 +1,11 @@
1
1
  import type { Area } from 'd3-shape';
2
- import type { ReactNode, Ref } from 'react';
2
+ import type { Ref } from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { AreaPathConfig } from './D3ShapeConfig';
4
5
 
5
6
  export type BaseAreaProps<Datum> = {
6
7
  /** Override render function which is passed the configured area generator as input. */
7
- children?: (args: { path: Area<Datum> }) => ReactNode;
8
+ children?: (args: { path: Area<Datum> }) => OctaneNode;
8
9
  /** Classname applied to path element. */
9
10
  className?: string;
10
11
  /** Array of data for which to generate an area shape. */
@@ -1,4 +1,4 @@
1
- import type { ReactNode } from 'react';
1
+ import type { OctaneNode } from 'octane';
2
2
  import type { BarGroupBar } from './barGroup';
3
3
  import type { BaseStackProps, StackKey } from './stack';
4
4
  import type { PositionScale } from './base';
@@ -51,5 +51,5 @@ export type BaseBarStackProps<
51
51
  /** Returns the desired color for a bar with a given key and index. */
52
52
  color: (key: Key, index: number) => string;
53
53
  /** Override render function which is passed the configured stack generator as input. */
54
- children?: (stacks: BarStack<Datum, Key>[]) => ReactNode;
54
+ children?: (stacks: BarStack<Datum, Key>[]) => OctaneNode;
55
55
  };
@@ -1,5 +1,6 @@
1
1
  import type { D3Scale, PickD3Scale } from '@octanejs/visx/scale';
2
- import type { ReactNode, SVGProps } from 'react';
2
+ import type { Octane } from 'octane/jsx-runtime';
3
+ import type { OctaneNode } from 'octane';
3
4
 
4
5
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
5
6
  export type $TSFIXME = any;
@@ -14,10 +15,12 @@ export type AnyScaleBand = PickD3Scale<'band', any, any>;
14
15
  export type PositionScale = D3Scale<number, any, any>;
15
16
 
16
17
  /**
17
- * Add fields from `SVGProps` for the specified SVG `Element`
18
- * to `Props` except fields that already exist in `Props`
18
+ * Add fields from octane's `SVGProps` (native event handlers Octane
19
+ * delivers native, delegated DOM events, not React synthetics) for the
20
+ * specified SVG `Element` to `Props` except fields that already exist
21
+ * in `Props`
19
22
  */
20
23
  export type AddSVGProps<Props, Element extends SVGElement> = Props &
21
- Omit<SVGProps<Element>, keyof Props>;
24
+ Omit<Octane.SVGProps<Element>, keyof Props>;
22
25
 
23
- export type RenderProp<Input> = (args: Input) => ReactNode;
26
+ export type RenderProp<Input> = (args: Input) => OctaneNode;
@@ -1,4 +1,5 @@
1
- import type { ReactNode, Ref } from 'react';
1
+ import type { Ref } from 'react';
2
+ import type { OctaneNode } from 'octane';
2
3
 
3
4
  export type AccessorProps<Link, Node> = {
4
5
  /** Given a node, returns its x coordinate. */
@@ -31,7 +32,7 @@ export type SharedLinkProps<Link> = {
31
32
  /** Path generator, given a link returns a path d attribute string */
32
33
  path?: PathType<Link>;
33
34
  /** Render function override which is passed the configured path generator as input. */
34
- children?: (args: { path: PathType<Link> }) => ReactNode;
35
+ children?: (args: { path: PathType<Link> }) => OctaneNode;
35
36
  /** Datum for which to render a link. */
36
37
  data: Link;
37
38
  };
@@ -1,4 +1,5 @@
1
- import type { ReactNode, SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
+ import type { OctaneNode } from 'octane';
2
3
  import classnames from 'classnames';
3
4
  import { Group } from '@octanejs/visx/group';
4
5
  import type { PickD3Scale, ContinuousDomainScaleType } from '@octanejs/visx/scale';
@@ -57,7 +58,7 @@ export type BoxPlotProps = SharedProps & {
57
58
  /** Props to pass to the container glyph rect if rendered. */
58
59
  containerProps?: SVGProps<SVGRectElement>;
59
60
  /** Override render function to fully control the rendering of the BoxPlot glyph. */
60
- children?: (childRenderProps: ChildRenderProps) => ReactNode;
61
+ children?: (childRenderProps: ChildRenderProps) => OctaneNode;
61
62
  };
62
63
 
63
64
  export default function BoxPlot({
@@ -1,5 +1,6 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { ReactNode, SVGProps } from 'react';
2
+ import type { SVGProps } from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { PickD3Scale, ContinuousDomainScaleType } from '@octanejs/visx/scale';
4
5
  import type { SharedProps, ChildRenderProps } from './types';
5
6
  export type BoxPlotProps = SharedProps & {
@@ -46,6 +47,6 @@ export type BoxPlotProps = SharedProps & {
46
47
  /** Props to pass to the container glyph rect if rendered. */
47
48
  containerProps?: SVGProps<SVGRectElement>;
48
49
  /** Override render function to fully control the rendering of the BoxPlot glyph. */
49
- children?: (childRenderProps: ChildRenderProps) => ReactNode;
50
+ children?: (childRenderProps: ChildRenderProps) => OctaneNode;
50
51
  };
51
52
  export default function BoxPlot({ left, top, className, max, min, firstQuartile, thirdQuartile, median, boxWidth, fill, fillOpacity, stroke, strokeWidth, rx, ry, valueScale, outliers, horizontal, medianProps, maxProps, minProps, boxProps, outlierProps, container, containerProps, children, }: BoxPlotProps): import("react").JSX.Element;
@@ -1,4 +1,5 @@
1
- import type { ReactNode, SVGProps } from 'react';
1
+ import type { SVGProps } from 'react';
2
+ import type { OctaneNode } from 'octane';
2
3
  import cx from 'classnames';
3
4
  import type { PickD3Scale, ContinuousDomainScaleType } from '@octanejs/visx/scale';
4
5
  import { scaleLinear } from '@octanejs/visx/scale';
@@ -17,7 +18,7 @@ export type ViolinPlotProps<Datum extends object> = SharedProps & {
17
18
  /** Width of the violin plot glyph. */
18
19
  width?: number;
19
20
  /** Override render function to fully control the rendering of the ViolinPlot glyph. */
20
- children?: (providedProps: { path: string }) => ReactNode;
21
+ children?: (providedProps: { path: string }) => OctaneNode;
21
22
  };
22
23
 
23
24
  const defaultCountAccessor = (d: { count?: unknown }) => typeof d.count === 'number' ? d.count : 0;
@@ -1,5 +1,6 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { ReactNode, SVGProps } from 'react';
2
+ import type { SVGProps } from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { PickD3Scale, ContinuousDomainScaleType } from '@octanejs/visx/scale';
4
5
  import type { SharedProps } from './types';
5
6
  export type ViolinPlotProps<Datum extends object> = SharedProps & {
@@ -16,6 +17,6 @@ export type ViolinPlotProps<Datum extends object> = SharedProps & {
16
17
  /** Override render function to fully control the rendering of the ViolinPlot glyph. */
17
18
  children?: (providedProps: {
18
19
  path: string;
19
- }) => ReactNode;
20
+ }) => OctaneNode;
20
21
  };
21
22
  export default function ViolinPlot<Datum extends object>({ left, top, className, data, width, count, value, valueScale, horizontal, children, ...restProps }: ViolinPlotProps<Datum> & Omit<SVGProps<SVGPathElement>, keyof ViolinPlotProps<Datum>>): import("react").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { Fragment, createElement } from 'octane';
2
- import type { JSX as ReactJSX, ReactNode } from 'react';
2
+ import type { JSX as ReactJSX } from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  import createThemeStyle from '../tokens/style';
4
5
  import type { CSSVarStyle, VisxThemeDefinition } from '../tokens/types';
5
6
  import warn from '../utils/warn';
@@ -9,7 +10,7 @@ export type ThemeScopeElement = keyof ReactJSX.IntrinsicElements;
9
10
  interface BaseThemeScopeProps {
10
11
  className?: string;
11
12
  style?: CSSVarStyle;
12
- children: ReactNode;
13
+ children: OctaneNode;
13
14
  }
14
15
 
15
16
  interface AutoThemeScopeProps extends BaseThemeScopeProps {
@@ -1,11 +1,12 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { JSX as ReactJSX, ReactNode } from 'react';
2
+ import type { JSX as ReactJSX } from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { CSSVarStyle, VisxThemeDefinition } from '../tokens/types';
4
5
  export type ThemeScopeElement = keyof ReactJSX.IntrinsicElements;
5
6
  interface BaseThemeScopeProps {
6
7
  className?: string;
7
8
  style?: CSSVarStyle;
8
- children: ReactNode;
9
+ children: OctaneNode;
9
10
  }
10
11
  interface AutoThemeScopeProps extends BaseThemeScopeProps {
11
12
  theme?: 'auto';
@@ -1,11 +1,11 @@
1
1
  import { createPortal, useEffect, useState } from 'octane';
2
- import type { ReactNode } from 'react';
2
+ import type { OctaneNode } from 'octane';
3
3
 
4
4
  export type PortalProps = {
5
5
  /** Optional z-index to set on the Portal. */
6
6
  zIndex?: number | string;
7
7
  /** Content to render in the Portal. */
8
- children: NonNullable<ReactNode>;
8
+ children: NonNullable<OctaneNode>;
9
9
  };
10
10
 
11
11
  /** Render within a portal using a declarative component API. */
@@ -1,10 +1,10 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
- import type { ReactNode } from 'react';
2
+ import type { OctaneNode } from 'octane';
3
3
  export type PortalProps = {
4
4
  /** Optional z-index to set on the Portal. */
5
5
  zIndex?: number | string;
6
6
  /** Content to render in the Portal. */
7
- children: NonNullable<ReactNode>;
7
+ children: NonNullable<OctaneNode>;
8
8
  };
9
9
  /** Render within a portal using a declarative component API. */
10
10
  export default function Portal({ zIndex, children }: PortalProps): import("octane").PortalDescriptor | null;
@@ -1,4 +1,5 @@
1
1
  import type React from 'react';
2
+ import type { OctaneNode } from 'octane';
2
3
  import ChartTooltipContent from './ChartTooltipContent.tsrx';
3
4
  import FloatingTooltip from './FloatingTooltip.tsrx';
4
5
  import type {
@@ -27,7 +28,7 @@ export type ChartTooltipControlledProps<Datum = unknown> = {
27
28
 
28
29
  export type ChartTooltipProps<Datum = unknown> = ChartTooltipControlledProps<Datum> & {
29
30
  config?: ChartTooltipConfig<Datum>;
30
- label?: React.ReactNode;
31
+ label?: OctaneNode;
31
32
  placement?: TooltipPlacement;
32
33
  strategy?: 'absolute' | 'fixed';
33
34
  offset?: number | FloatingTooltipOffset;
@@ -46,7 +47,7 @@ export type ChartTooltipProps<Datum = unknown> = ChartTooltipControlledProps<Dat
46
47
  items: ChartTooltipItem<Datum>[];
47
48
  config?: ChartTooltipConfig<Datum>;
48
49
  state: FloatingTooltipRootState<ChartTooltipItem<Datum>[]>;
49
- }) => React.ReactNode;
50
+ }) => OctaneNode;
50
51
  };
51
52
 
52
53
  export default function ChartTooltip<Datum = unknown>({
@@ -1,5 +1,6 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
2
  import type React from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  import type { ChartTooltipConfig, ChartTooltipContentProps, ChartTooltipItem } from './ChartTooltipContent.tsrx';
4
5
  import type { FloatingTooltipOffset, FloatingTooltipPadding, FloatingTooltipPortalProps, FloatingTooltipPositionerProps, FloatingTooltipRootState, TooltipAnchor, TooltipPlacement, UseFloatingTooltipOptions } from './types';
5
6
  export { ChartTooltipItem } from './ChartTooltipContent.tsrx';
@@ -10,7 +11,7 @@ export type ChartTooltipControlledProps<Datum = unknown> = {
10
11
  };
11
12
  export type ChartTooltipProps<Datum = unknown> = ChartTooltipControlledProps<Datum> & {
12
13
  config?: ChartTooltipConfig<Datum>;
13
- label?: React.ReactNode;
14
+ label?: OctaneNode;
14
15
  placement?: TooltipPlacement;
15
16
  strategy?: 'absolute' | 'fixed';
16
17
  offset?: number | FloatingTooltipOffset;
@@ -24,6 +25,6 @@ export type ChartTooltipProps<Datum = unknown> = ChartTooltipControlledProps<Dat
24
25
  items: ChartTooltipItem<Datum>[];
25
26
  config?: ChartTooltipConfig<Datum>;
26
27
  state: FloatingTooltipRootState<ChartTooltipItem<Datum>[]>;
27
- }) => React.ReactNode;
28
+ }) => OctaneNode;
28
29
  };
29
30
  export default function ChartTooltip<Datum = unknown>({ anchor, collisionPadding, config, contentProps, floatingOptions, items, label, offset, open, placement, portal, portalProps, positionerProps, renderContent, strategy, }: ChartTooltipProps<Datum>): React.JSX.Element;
@@ -1,11 +1,12 @@
1
1
  import type React from 'react';
2
+ import type { OctaneNode } from 'octane';
2
3
 
3
4
  export type ChartTooltipItem<Datum = unknown> = {
4
5
  key: string;
5
6
  datum?: Datum;
6
7
  index?: number;
7
- label?: React.ReactNode;
8
- value?: React.ReactNode;
8
+ label?: OctaneNode;
9
+ value?: OctaneNode;
9
10
  rawValue?: unknown;
10
11
  color?: string;
11
12
  x?: number;
@@ -16,11 +17,11 @@ export type ChartTooltipItem<Datum = unknown> = {
16
17
  };
17
18
 
18
19
  export type ChartTooltipConfig<Datum = unknown> = Record<string, {
19
- label?: React.ReactNode | ((item: ChartTooltipItem<Datum>) => React.ReactNode);
20
+ label?: OctaneNode | ((item: ChartTooltipItem<Datum>) => OctaneNode);
20
21
  color?: string | ((item: ChartTooltipItem<Datum>) => string | undefined);
21
22
  icon?: React.ComponentType<{ item: ChartTooltipItem<Datum> }>;
22
- formatValue?: (value: unknown, item: ChartTooltipItem<Datum>) => React.ReactNode;
23
- formatLabel?: (item: ChartTooltipItem<Datum>) => React.ReactNode;
23
+ formatValue?: (value: unknown, item: ChartTooltipItem<Datum>) => OctaneNode;
24
+ formatLabel?: (item: ChartTooltipItem<Datum>) => OctaneNode;
24
25
  hide?: boolean;
25
26
  order?: number;
26
27
  }>;
@@ -28,7 +29,7 @@ export type ChartTooltipConfig<Datum = unknown> = Record<string, {
28
29
  export type ChartTooltipIndicator = 'dot' | 'line' | 'dashed' | 'square' | 'none';
29
30
 
30
31
  export type ChartTooltipLabelRenderParams<Datum = unknown> = {
31
- label: React.ReactNode;
32
+ label: OctaneNode;
32
33
  items: ChartTooltipItem<Datum>[];
33
34
  config?: ChartTooltipConfig<Datum>;
34
35
  };
@@ -36,8 +37,8 @@ export type ChartTooltipLabelRenderParams<Datum = unknown> = {
36
37
  export type ChartTooltipItemRenderParams<Datum = unknown> = {
37
38
  item: ChartTooltipItem<Datum>;
38
39
  configEntry?: ChartTooltipConfig<Datum>[string];
39
- label: React.ReactNode;
40
- value: React.ReactNode;
40
+ label: OctaneNode;
41
+ value: OctaneNode;
41
42
  color?: string;
42
43
  indicator: ChartTooltipIndicator;
43
44
  };
@@ -45,16 +46,16 @@ export type ChartTooltipItemRenderParams<Datum = unknown> = {
45
46
  export type ChartTooltipValueRenderParams<Datum = unknown> = ChartTooltipItemRenderParams<Datum>;
46
47
 
47
48
  export type ChartTooltipContentProps<Datum = unknown> = React.HTMLAttributes<HTMLDivElement> & {
48
- label?: React.ReactNode;
49
+ label?: OctaneNode;
49
50
  items: ChartTooltipItem<Datum>[];
50
51
  config?: ChartTooltipConfig<Datum>;
51
52
  indicator?: ChartTooltipIndicator;
52
53
  hideLabel?: boolean;
53
54
  hideIndicator?: boolean;
54
55
  sortItems?: (a: ChartTooltipItem<Datum>, b: ChartTooltipItem<Datum>) => number;
55
- renderLabel?: (params: ChartTooltipLabelRenderParams<Datum>) => React.ReactNode;
56
- renderItem?: (params: ChartTooltipItemRenderParams<Datum>) => React.ReactNode;
57
- renderValue?: (params: ChartTooltipValueRenderParams<Datum>) => React.ReactNode;
56
+ renderLabel?: (params: ChartTooltipLabelRenderParams<Datum>) => OctaneNode;
57
+ renderItem?: (params: ChartTooltipItemRenderParams<Datum>) => OctaneNode;
58
+ renderValue?: (params: ChartTooltipValueRenderParams<Datum>) => OctaneNode;
58
59
  getItemKey?: (item: ChartTooltipItem<Datum>, index: number) => React.Key;
59
60
  'data-testid'?: string;
60
61
  };
@@ -1,11 +1,12 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
2
  import type React from 'react';
3
+ import type { OctaneNode } from 'octane';
3
4
  export type ChartTooltipItem<Datum = unknown> = {
4
5
  key: string;
5
6
  datum?: Datum;
6
7
  index?: number;
7
- label?: React.ReactNode;
8
- value?: React.ReactNode;
8
+ label?: OctaneNode;
9
+ value?: OctaneNode;
9
10
  rawValue?: unknown;
10
11
  color?: string;
11
12
  x?: number;
@@ -15,42 +16,42 @@ export type ChartTooltipItem<Datum = unknown> = {
15
16
  payload?: unknown;
16
17
  };
17
18
  export type ChartTooltipConfig<Datum = unknown> = Record<string, {
18
- label?: React.ReactNode | ((item: ChartTooltipItem<Datum>) => React.ReactNode);
19
+ label?: OctaneNode | ((item: ChartTooltipItem<Datum>) => OctaneNode);
19
20
  color?: string | ((item: ChartTooltipItem<Datum>) => string | undefined);
20
21
  icon?: React.ComponentType<{
21
22
  item: ChartTooltipItem<Datum>;
22
23
  }>;
23
- formatValue?: (value: unknown, item: ChartTooltipItem<Datum>) => React.ReactNode;
24
- formatLabel?: (item: ChartTooltipItem<Datum>) => React.ReactNode;
24
+ formatValue?: (value: unknown, item: ChartTooltipItem<Datum>) => OctaneNode;
25
+ formatLabel?: (item: ChartTooltipItem<Datum>) => OctaneNode;
25
26
  hide?: boolean;
26
27
  order?: number;
27
28
  }>;
28
29
  export type ChartTooltipIndicator = 'dot' | 'line' | 'dashed' | 'square' | 'none';
29
30
  export type ChartTooltipLabelRenderParams<Datum = unknown> = {
30
- label: React.ReactNode;
31
+ label: OctaneNode;
31
32
  items: ChartTooltipItem<Datum>[];
32
33
  config?: ChartTooltipConfig<Datum>;
33
34
  };
34
35
  export type ChartTooltipItemRenderParams<Datum = unknown> = {
35
36
  item: ChartTooltipItem<Datum>;
36
37
  configEntry?: ChartTooltipConfig<Datum>[string];
37
- label: React.ReactNode;
38
- value: React.ReactNode;
38
+ label: OctaneNode;
39
+ value: OctaneNode;
39
40
  color?: string;
40
41
  indicator: ChartTooltipIndicator;
41
42
  };
42
43
  export type ChartTooltipValueRenderParams<Datum = unknown> = ChartTooltipItemRenderParams<Datum>;
43
44
  export type ChartTooltipContentProps<Datum = unknown> = React.HTMLAttributes<HTMLDivElement> & {
44
- label?: React.ReactNode;
45
+ label?: OctaneNode;
45
46
  items: ChartTooltipItem<Datum>[];
46
47
  config?: ChartTooltipConfig<Datum>;
47
48
  indicator?: ChartTooltipIndicator;
48
49
  hideLabel?: boolean;
49
50
  hideIndicator?: boolean;
50
51
  sortItems?: (a: ChartTooltipItem<Datum>, b: ChartTooltipItem<Datum>) => number;
51
- renderLabel?: (params: ChartTooltipLabelRenderParams<Datum>) => React.ReactNode;
52
- renderItem?: (params: ChartTooltipItemRenderParams<Datum>) => React.ReactNode;
53
- renderValue?: (params: ChartTooltipValueRenderParams<Datum>) => React.ReactNode;
52
+ renderLabel?: (params: ChartTooltipLabelRenderParams<Datum>) => OctaneNode;
53
+ renderItem?: (params: ChartTooltipItemRenderParams<Datum>) => OctaneNode;
54
+ renderValue?: (params: ChartTooltipValueRenderParams<Datum>) => OctaneNode;
54
55
  getItemKey?: (item: ChartTooltipItem<Datum>, index: number) => React.Key;
55
56
  'data-testid'?: string;
56
57
  };
@@ -4,7 +4,7 @@ import type { FloatingTooltipArrowProps, FloatingTooltipContentProps, FloatingTo
4
4
  declare function Provider({ children, closeDelay, delay, skipDelay, }: FloatingTooltipProviderProps): React.JSX.Element;
5
5
  declare function Root<TData = unknown>({ children, forceMount, ...options }: FloatingTooltipRootProps<TData>): React.JSX.Element;
6
6
  declare function Trigger({ disabled, render }: FloatingTooltipTriggerProps): import("octane").ElementDescriptor<any> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>>;
7
- declare function Portal({ children, container, disabled }: FloatingTooltipPortalProps): string | number | bigint | boolean | React.JSX.Element | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | null | undefined;
7
+ declare function Portal({ children, container, disabled }: FloatingTooltipPortalProps): unknown;
8
8
  declare function Positioner({ children, id, render, style, ...restProps }: FloatingTooltipPositionerProps): import("octane").ElementDescriptor<any> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
9
9
  declare function Content({ children, render, ...restProps }: FloatingTooltipContentProps): import("octane").ElementDescriptor<any> | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | null;
10
10
  declare function Arrow({ height, padding: _padding, render, tipRadius, width, ...restProps }: FloatingTooltipArrowProps): React.JSX.Element | import("octane").ElementDescriptor<any> | null;
@@ -1,11 +1,12 @@
1
1
  import { createContext, useContext } from 'octane';
2
+ import type { OctaneNode } from 'octane';
2
3
  import type React from 'react';
3
4
  import type { FloatingTooltipRootState } from './types';
4
5
 
5
6
  const FloatingTooltipContext = createContext<FloatingTooltipRootState<any> | null>(null);
6
7
 
7
8
  export type FloatingTooltipContextProviderProps = {
8
- children: React.ReactNode;
9
+ children: OctaneNode;
9
10
  value: FloatingTooltipRootState<any>;
10
11
  };
11
12
 
@@ -1,8 +1,9 @@
1
1
  // Generated by scripts/generate-tsrx-types.mjs.
2
+ import type { OctaneNode } from 'octane';
2
3
  import type React from 'react';
3
4
  import type { FloatingTooltipRootState } from './types';
4
5
  export type FloatingTooltipContextProviderProps = {
5
- children: React.ReactNode;
6
+ children: OctaneNode;
6
7
  value: FloatingTooltipRootState<any>;
7
8
  };
8
9
  export declare function FloatingTooltipContextProvider({ children, value, }: FloatingTooltipContextProviderProps): React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import type React from 'react';
2
+ import type { OctaneNode } from 'octane';
2
3
  import type {
3
4
  Boundary,
4
5
  Delay,
@@ -130,14 +131,14 @@ export type FloatingTooltipProviderProps = {
130
131
  delay?: Delay;
131
132
  closeDelay?: number;
132
133
  skipDelay?: number;
133
- children: React.ReactNode;
134
+ children: OctaneNode;
134
135
  };
135
136
 
136
137
  export type FloatingTooltipRootState<TData = unknown> = UseFloatingTooltipReturn<TData>;
137
138
 
138
139
  export type FloatingTooltipRootProps<TData = unknown> = UseFloatingTooltipOptions<TData> & {
139
140
  forceMount?: boolean;
140
- children: React.ReactNode | ((state: FloatingTooltipRootState<TData>) => React.ReactNode);
141
+ children: OctaneNode | ((state: FloatingTooltipRootState<TData>) => OctaneNode);
141
142
  };
142
143
 
143
144
  export type FloatingTooltipTriggerState = {
@@ -156,7 +157,7 @@ export type FloatingTooltipTriggerProps = {
156
157
  export type FloatingTooltipPortalProps = {
157
158
  container?: HTMLElement | ShadowRoot | React.RefObject<HTMLElement | ShadowRoot | null> | null;
158
159
  disabled?: boolean;
159
- children: React.ReactNode;
160
+ children: OctaneNode;
160
161
  };
161
162
 
162
163
  export type FloatingTooltipPositionerState = FloatingTooltipRootState;