@astryxdesign/lab 0.1.5-canary.efe7cc3 → 0.1.6-canary.02f2602

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 (69) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/Chart/Chart.js +14 -14
  3. package/dist/Chart/ChartArea.js +6 -6
  4. package/dist/Chart/ChartAxis.js +15 -15
  5. package/dist/Chart/ChartBar.js +5 -5
  6. package/dist/Chart/ChartBrush.js +6 -6
  7. package/dist/Chart/ChartCandlestick.js +15 -15
  8. package/dist/Chart/ChartDot.js +5 -5
  9. package/dist/Chart/ChartDotGL.js +3 -3
  10. package/dist/Chart/ChartDotGLInteractive.js +23 -23
  11. package/dist/Chart/ChartErrorBar.js +9 -9
  12. package/dist/Chart/ChartGrid.js +6 -6
  13. package/dist/Chart/ChartHeatmapGL.js +3 -3
  14. package/dist/Chart/ChartLegend.js +22 -22
  15. package/dist/Chart/ChartLine.js +6 -6
  16. package/dist/Chart/ChartReferenceLine.js +17 -17
  17. package/dist/Chart/ChartSelect.js +7 -7
  18. package/dist/Chart/ChartStreamGL.js +3 -3
  19. package/dist/Chart/ChartTooltip.js +28 -28
  20. package/dist/Chart/ChartZoom.js +27 -27
  21. package/dist/Chat/ChatEmojiPicker.js +13 -13
  22. package/dist/Chat/ChatReactionBar.js +16 -16
  23. package/dist/Chat/ChatTypingIndicator.js +10 -10
  24. package/dist/Chat/ChatUnreadDivider.js +6 -6
  25. package/dist/ChatReasoning/ChatReasoning.js +36 -36
  26. package/dist/CircularProgress/CircularProgress.js +13 -13
  27. package/dist/CodeEditor/CodeEditor.js +13 -13
  28. package/dist/Drawer/Drawer.js +15 -15
  29. package/dist/InfoTip/InfoTip.js +7 -7
  30. package/dist/LogStream/LogStream.js +22 -22
  31. package/dist/Radial/RadialArea.js +6 -6
  32. package/dist/Radial/RadialAxis.js +5 -5
  33. package/dist/Radial/RadialChart.js +7 -7
  34. package/dist/Radial/RadialGrid.js +7 -7
  35. package/dist/Radial/RadialSlice.js +8 -8
  36. package/dist/Radial/RadialTooltip.js +23 -23
  37. package/dist/SVGIcon/SVGIcon.js +26 -26
  38. package/dist/Sankey/SankeyChart.js +9 -9
  39. package/dist/Sankey/SankeyGrid.js +8 -8
  40. package/dist/Sankey/SankeyLabel.js +20 -20
  41. package/dist/Sankey/SankeyLink.js +16 -16
  42. package/dist/Sankey/SankeyNode.js +8 -8
  43. package/dist/Schedule/DayView.js +7 -7
  44. package/dist/Schedule/ListView.js +22 -22
  45. package/dist/Schedule/MonthlyView.js +32 -32
  46. package/dist/Schedule/Schedule.js +13 -13
  47. package/dist/Schedule/TimeGridView.js +66 -66
  48. package/dist/Schedule/WeeklyView.js +7 -7
  49. package/dist/Schedule/plugins/PaginationPlugin.js +16 -16
  50. package/dist/Schedule/plugins/ViewSelectorPlugin.js +13 -13
  51. package/dist/Schedule/shared.d.ts +0 -43
  52. package/dist/Schedule/shared.d.ts.map +1 -1
  53. package/dist/Schedule/shared.js +47 -81
  54. package/dist/Stat/Stat.js +16 -16
  55. package/dist/Stepper/Step.js +44 -44
  56. package/dist/Stepper/Stepper.js +5 -5
  57. package/dist/ThreeD/ThreeDAxis.js +12 -12
  58. package/dist/ThreeD/ThreeDBar.js +9 -9
  59. package/dist/ThreeD/ThreeDChart.js +7 -7
  60. package/dist/ThreeD/ThreeDGrid.js +5 -5
  61. package/dist/ThreeD/ThreeDScatter.js +5 -5
  62. package/dist/ThreeD/ThreeDScatterGL.js +3 -3
  63. package/dist/ThreeD/ThreeDSurface.js +5 -5
  64. package/package.json +3 -3
  65. package/src/Chat/ChatReactionBar.doc.mjs +3 -3
  66. package/src/Chat/ChatTypingIndicator.doc.mjs +2 -2
  67. package/src/Chat/ChatUnreadDivider.doc.mjs +1 -1
  68. package/src/LogStream/LogStream.doc.mjs +1 -1
  69. package/src/Schedule/shared.tsx +0 -44
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @xds/lab
2
2
 
3
+ # 0.1.6
4
+
5
+ ---
6
+
3
7
  # 0.1.5
4
8
 
5
9
  ---
@@ -20,7 +20,7 @@ import { ChartProvider } from "./ChartContext.js";
20
20
  * - `'zero'` — symmetric range centered on 0 (good for +/- data)
21
21
  * - `'data'` — tight fit to data extent only (no forced zero)
22
22
  */
23
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
23
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
24
  const DEFAULT_MARGIN = {
25
25
  top: 16,
26
26
  right: 16,
@@ -215,33 +215,33 @@ export function Chart({
215
215
  touchAction: interactive ? 'none' : undefined,
216
216
  userSelect: interactive ? 'none' : undefined
217
217
  };
218
- return /*#__PURE__*/_jsxDEV("div", {
218
+ return /*#__PURE__*/_jsx("div", {
219
219
  ref: containerRef,
220
220
  style: containerStyle,
221
- children: containerWidth > 0 && /*#__PURE__*/_jsxDEV("svg", {
221
+ children: containerWidth > 0 && /*#__PURE__*/_jsxs("svg", {
222
222
  ref: svgRef,
223
223
  width: containerWidth,
224
224
  height: height,
225
225
  style: interactive ? {
226
226
  touchAction: 'none'
227
227
  } : undefined,
228
- children: [/*#__PURE__*/_jsxDEV("defs", {
229
- children: /*#__PURE__*/_jsxDEV("clipPath", {
228
+ children: [/*#__PURE__*/_jsx("defs", {
229
+ children: /*#__PURE__*/_jsx("clipPath", {
230
230
  id: "astryx-chart-plot",
231
- children: /*#__PURE__*/_jsxDEV("rect", {
231
+ children: /*#__PURE__*/_jsx("rect", {
232
232
  x: 0,
233
233
  y: 0,
234
234
  width: innerWidth,
235
235
  height: innerHeight
236
- }, void 0, false)
237
- }, void 0, false)
238
- }, void 0, false), /*#__PURE__*/_jsxDEV("g", {
236
+ })
237
+ })
238
+ }), /*#__PURE__*/_jsx("g", {
239
239
  transform: `translate(${margin.left},${margin.top})`,
240
- children: /*#__PURE__*/_jsxDEV(ChartProvider, {
240
+ children: /*#__PURE__*/_jsx(ChartProvider, {
241
241
  value: ctx,
242
242
  children: children
243
- }, void 0, false)
244
- }, void 0, false)]
245
- }, void 0, true)
246
- }, void 0, false);
243
+ })
244
+ })]
245
+ })
246
+ });
247
247
  }
@@ -10,7 +10,7 @@ import { useMemo } from 'react';
10
10
  import { area, curveMonotoneX } from 'd3-shape';
11
11
  import { useChart } from "./ChartContext.js";
12
12
  import { xPixel } from "./utils.js";
13
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
13
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
14
14
  /**
15
15
  * Area band between two y-values. Use for confidence intervals, error ranges,
16
16
  * or any min/max band around a line.
@@ -54,18 +54,18 @@ export function ChartArea({
54
54
  if (!pathD) {
55
55
  return null;
56
56
  }
57
- return /*#__PURE__*/_jsxDEV("g", {
58
- children: [/*#__PURE__*/_jsxDEV("path", {
57
+ return /*#__PURE__*/_jsxs("g", {
58
+ children: [/*#__PURE__*/_jsx("path", {
59
59
  d: pathD,
60
60
  fill: color,
61
61
  fillOpacity: opacity,
62
62
  stroke: "none"
63
- }, void 0, false), stroke && /*#__PURE__*/_jsxDEV("path", {
63
+ }), stroke && /*#__PURE__*/_jsx("path", {
64
64
  d: pathD,
65
65
  fill: "none",
66
66
  stroke: color,
67
67
  strokeWidth: strokeWidth,
68
68
  strokeOpacity: opacity * 2
69
- }, void 0, false)]
70
- }, void 0, true);
69
+ })]
70
+ });
71
71
  }
@@ -11,7 +11,7 @@
11
11
  import { useMemo } from 'react';
12
12
  import { useChart } from "./ChartContext.js";
13
13
  import { isBandScale } from "./utils.js";
14
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
15
  /**
16
16
  * Chart axis. Renders tick marks and labels for the x or y dimension.
17
17
  * Ticks transition smoothly when the scale domain shifts (e.g. streaming).
@@ -84,16 +84,16 @@ export function ChartAxis({
84
84
 
85
85
  // Transition style for smooth tick movement during streaming
86
86
  const tickTransition = animated ? 'transform 150ms linear, opacity 150ms ease' : undefined;
87
- return /*#__PURE__*/_jsxDEV("g", {
87
+ return /*#__PURE__*/_jsxs("g", {
88
88
  transform: transform,
89
- children: [/*#__PURE__*/_jsxDEV("line", {
89
+ children: [/*#__PURE__*/_jsx("line", {
90
90
  x1: isHorizontal ? 0 : 0,
91
91
  x2: isHorizontal ? width : 0,
92
92
  y1: isHorizontal ? axisLineY : 0,
93
93
  y2: isHorizontal ? axisLineY : height,
94
94
  stroke: "var(--color-border-emphasized)",
95
95
  strokeWidth: 1
96
- }, void 0, false), ticks.map(({
96
+ }), ticks.map(({
97
97
  value,
98
98
  offset
99
99
  }) => {
@@ -102,46 +102,46 @@ export function ChartAxis({
102
102
  const isVisible = isHorizontal ? offset >= -10 && offset <= width + 10 : offset >= -10 && offset <= height + 10;
103
103
  if (isHorizontal) {
104
104
  const y = position === 'bottom' ? tickSize : -tickSize;
105
- return /*#__PURE__*/_jsxDEV("g", {
105
+ return /*#__PURE__*/_jsxs("g", {
106
106
  style: {
107
107
  transform: `translateX(${offset}px)`,
108
108
  transition: tickTransition,
109
109
  opacity: isVisible ? 1 : 0
110
110
  },
111
- children: [/*#__PURE__*/_jsxDEV("line", {
111
+ children: [/*#__PURE__*/_jsx("line", {
112
112
  y2: y,
113
113
  stroke: "var(--color-border-emphasized)",
114
114
  strokeWidth: 1
115
- }, void 0, false), /*#__PURE__*/_jsxDEV("text", {
115
+ }), /*#__PURE__*/_jsx("text", {
116
116
  y: position === 'bottom' ? tickSize + 12 : -(tickSize + 4),
117
117
  textAnchor: "middle",
118
118
  fill: "var(--color-text-secondary)",
119
119
  fontSize: 12,
120
120
  children: label
121
- }, void 0, false)]
122
- }, label, true);
121
+ })]
122
+ }, label);
123
123
  }
124
124
  // Vertical axis
125
125
  const x = position === 'left' ? -tickSize : tickSize;
126
- return /*#__PURE__*/_jsxDEV("g", {
126
+ return /*#__PURE__*/_jsxs("g", {
127
127
  style: {
128
128
  transform: `translateY(${offset}px)`,
129
129
  transition: tickTransition,
130
130
  opacity: isVisible ? 1 : 0
131
131
  },
132
- children: [/*#__PURE__*/_jsxDEV("line", {
132
+ children: [/*#__PURE__*/_jsx("line", {
133
133
  x2: x,
134
134
  stroke: "var(--color-border-emphasized)",
135
135
  strokeWidth: 1
136
- }, void 0, false), /*#__PURE__*/_jsxDEV("text", {
136
+ }), /*#__PURE__*/_jsx("text", {
137
137
  x: position === 'left' ? -(tickSize + 4) : tickSize + 4,
138
138
  dy: "0.32em",
139
139
  textAnchor: position === 'left' ? 'end' : 'start',
140
140
  fill: "var(--color-text-secondary)",
141
141
  fontSize: 12,
142
142
  children: label
143
- }, void 0, false)]
144
- }, label, true);
143
+ })]
144
+ }, label);
145
145
  })]
146
- }, void 0, true);
146
+ });
147
147
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { useChart } from "./ChartContext.js";
10
10
  import { isBandScale } from "./utils.js";
11
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
13
13
  * Bar marks. Requires a band xScale (categorical x-axis).
14
14
  * Bars grow from the zero line — handles both positive and negative values.
@@ -35,7 +35,7 @@ export function ChartBar({
35
35
 
36
36
  // Zero line position — bars grow from here
37
37
  const zeroY = yScale(0);
38
- return /*#__PURE__*/_jsxDEV("g", {
38
+ return /*#__PURE__*/_jsx("g", {
39
39
  children: data.map((d, i) => {
40
40
  const xVal = xScale(String(d[xKey]));
41
41
  if (xVal == null) {
@@ -47,7 +47,7 @@ export function ChartBar({
47
47
  // Bar grows from zero line toward the value
48
48
  const barY = Math.min(yPos, zeroY);
49
49
  const barHeight = Math.abs(yPos - zeroY);
50
- return /*#__PURE__*/_jsxDEV("rect", {
50
+ return /*#__PURE__*/_jsx("rect", {
51
51
  x: xVal,
52
52
  y: barY,
53
53
  width: xScale.bandwidth(),
@@ -55,7 +55,7 @@ export function ChartBar({
55
55
  fill: color,
56
56
  rx: radius,
57
57
  ry: radius
58
- }, i, false);
58
+ }, i);
59
59
  })
60
- }, void 0, false);
60
+ });
61
61
  }
@@ -15,7 +15,7 @@ import { isBandScale } from "./utils.js";
15
15
  * - `'x'` — horizontal range selection (default)
16
16
  * - `'xy'` — 2D rectangular selection
17
17
  */
18
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
18
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
19
19
  function localCoords(e) {
20
20
  const svg = e.currentTarget.ownerSVGElement;
21
21
  if (!svg) {
@@ -165,8 +165,8 @@ export function ChartBrush({
165
165
  touchAction: 'none',
166
166
  userSelect: 'none'
167
167
  };
168
- return /*#__PURE__*/_jsxDEV("g", {
169
- children: [/*#__PURE__*/_jsxDEV("rect", {
168
+ return /*#__PURE__*/_jsxs("g", {
169
+ children: [/*#__PURE__*/_jsx("rect", {
170
170
  x: 0,
171
171
  y: 0,
172
172
  width: width,
@@ -177,7 +177,7 @@ export function ChartBrush({
177
177
  onPointerMove: onPointerMove,
178
178
  onPointerUp: onPointerUp,
179
179
  onPointerCancel: onPointerUp
180
- }, void 0, false), brush && (rectW > 1 || rectH > 1) && /*#__PURE__*/_jsxDEV("rect", {
180
+ }), brush && (rectW > 1 || rectH > 1) && /*#__PURE__*/_jsx("rect", {
181
181
  x: rectX,
182
182
  y: rectY,
183
183
  width: rectW,
@@ -189,6 +189,6 @@ export function ChartBrush({
189
189
  strokeOpacity: 0.4,
190
190
  rx: mode === 'xy' ? 2 : 0,
191
191
  pointerEvents: "none"
192
- }, void 0, false)]
193
- }, void 0, true);
192
+ })]
193
+ });
194
194
  }
@@ -12,7 +12,7 @@
12
12
 
13
13
  import { useChart } from "./ChartContext.js";
14
14
  import { isBandScale } from "./utils.js";
15
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
15
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  /**
17
17
  * Candlestick / box-whisker marks.
18
18
  *
@@ -53,7 +53,7 @@ export function ChartCandlestick({
53
53
  return null;
54
54
  }
55
55
  const bw = xScale.bandwidth();
56
- return /*#__PURE__*/_jsxDEV("g", {
56
+ return /*#__PURE__*/_jsx("g", {
57
57
  children: data.map((d, i) => {
58
58
  const xVal = xScale(String(d[xKey]));
59
59
  if (xVal == null) {
@@ -75,52 +75,52 @@ export function ChartCandlestick({
75
75
  if (variant === 'bar') {
76
76
  // OHLC bar: vertical line (high→low), left tick at open, right tick at close
77
77
  const tickLen = bw * bodyWidth * 0.4;
78
- return /*#__PURE__*/_jsxDEV("g", {
79
- children: [/*#__PURE__*/_jsxDEV("line", {
78
+ return /*#__PURE__*/_jsxs("g", {
79
+ children: [/*#__PURE__*/_jsx("line", {
80
80
  x1: centerX,
81
81
  x2: centerX,
82
82
  y1: yHigh,
83
83
  y2: yLow,
84
84
  stroke: fill,
85
85
  strokeWidth: strokeWidth
86
- }, void 0, false), /*#__PURE__*/_jsxDEV("line", {
86
+ }), /*#__PURE__*/_jsx("line", {
87
87
  x1: centerX - tickLen,
88
88
  x2: centerX,
89
89
  y1: yOpen,
90
90
  y2: yOpen,
91
91
  stroke: fill,
92
92
  strokeWidth: strokeWidth
93
- }, void 0, false), /*#__PURE__*/_jsxDEV("line", {
93
+ }), /*#__PURE__*/_jsx("line", {
94
94
  x1: centerX,
95
95
  x2: centerX + tickLen,
96
96
  y1: yClose,
97
97
  y2: yClose,
98
98
  stroke: fill,
99
99
  strokeWidth: strokeWidth
100
- }, void 0, false)]
101
- }, i, true);
100
+ })]
101
+ }, i);
102
102
  }
103
103
 
104
104
  // Default variant: filled body with whiskers
105
105
  const bodyW = bw * bodyWidth;
106
106
  const bodyX = centerX - bodyW / 2;
107
107
  const bodyH = Math.max(1, bodyBot - bodyTop);
108
- return /*#__PURE__*/_jsxDEV("g", {
109
- children: [/*#__PURE__*/_jsxDEV("line", {
108
+ return /*#__PURE__*/_jsxs("g", {
109
+ children: [/*#__PURE__*/_jsx("line", {
110
110
  x1: centerX,
111
111
  x2: centerX,
112
112
  y1: yHigh,
113
113
  y2: bodyTop,
114
114
  stroke: fill,
115
115
  strokeWidth: strokeWidth
116
- }, void 0, false), /*#__PURE__*/_jsxDEV("line", {
116
+ }), /*#__PURE__*/_jsx("line", {
117
117
  x1: centerX,
118
118
  x2: centerX,
119
119
  y1: bodyBot,
120
120
  y2: yLow,
121
121
  stroke: fill,
122
122
  strokeWidth: strokeWidth
123
- }, void 0, false), /*#__PURE__*/_jsxDEV("rect", {
123
+ }), /*#__PURE__*/_jsx("rect", {
124
124
  x: bodyX,
125
125
  y: bodyTop,
126
126
  width: bodyW,
@@ -128,8 +128,8 @@ export function ChartCandlestick({
128
128
  fill: fill,
129
129
  rx: radius,
130
130
  ry: radius
131
- }, void 0, false)]
132
- }, i, true);
131
+ })]
132
+ }, i);
133
133
  })
134
- }, void 0, false);
134
+ });
135
135
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { useChart } from "./ChartContext.js";
10
10
  import { xPixel } from "./utils.js";
11
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
11
+ import { jsx as _jsx } from "react/jsx-runtime";
12
12
  /**
13
13
  * Scatter dot marks.
14
14
  *
@@ -28,16 +28,16 @@ export function ChartDot({
28
28
  xScale,
29
29
  yScale
30
30
  } = useChart();
31
- return /*#__PURE__*/_jsxDEV("g", {
31
+ return /*#__PURE__*/_jsx("g", {
32
32
  children: data.map((d, i) => {
33
33
  const x = xPixel(d, xKey, xScale);
34
34
  const yVal = typeof d[dataKey] === 'number' ? d[dataKey] : 0;
35
- return /*#__PURE__*/_jsxDEV("circle", {
35
+ return /*#__PURE__*/_jsx("circle", {
36
36
  cx: x,
37
37
  cy: yScale(yVal),
38
38
  r: radius,
39
39
  fill: color
40
- }, i, false);
40
+ }, i);
41
41
  })
42
- }, void 0, false);
42
+ });
43
43
  }
@@ -10,7 +10,7 @@ import { useRef, useEffect, useCallback } from 'react';
10
10
  import { useChart } from "./ChartContext.js";
11
11
  import { xPixel } from "./utils.js";
12
12
  import { hexToGL, getWebGLContext, setupGLState, sizeCanvas, mountCanvasOverSVG, createProgram, POINT_SIZE_COMPENSATION } from "./webgl.js";
13
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
13
+ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  const VERT = `
15
15
  attribute vec2 a_position;
16
16
  uniform vec2 u_resolution;
@@ -129,7 +129,7 @@ export function ChartDotGL({
129
129
  if (width <= 0 || height <= 0) {
130
130
  return null;
131
131
  }
132
- return /*#__PURE__*/_jsxDEV("g", {
132
+ return /*#__PURE__*/_jsx("g", {
133
133
  ref: markerRef
134
- }, void 0, false);
134
+ });
135
135
  }
@@ -13,7 +13,7 @@
13
13
  import { useRef, useEffect, useCallback, useState, useMemo } from 'react';
14
14
  import { useChart } from "./ChartContext.js";
15
15
  import { xPixel } from "./utils.js";
16
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
16
+ import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
17
17
  function hexToGL(hex) {
18
18
  const n = parseInt(hex.replace('#', ''), 16);
19
19
  return [(n >> 16) / 255, (n >> 8 & 0xff) / 255, (n & 0xff) / 255];
@@ -342,38 +342,38 @@ export function ChartDotGLInteractive({
342
342
  setMousePos(null);
343
343
  }, []);
344
344
  const datum = hoverIndex >= 0 && hoverIndex < data.length ? data[hoverIndex] : null;
345
- const defaultTooltip = (d, i) => /*#__PURE__*/_jsxDEV("div", {
345
+ const defaultTooltip = (d, i) => /*#__PURE__*/_jsxs("div", {
346
346
  style: {
347
347
  display: 'flex',
348
348
  flexDirection: 'column',
349
349
  gap: 2,
350
350
  fontSize: 12
351
351
  },
352
- children: [/*#__PURE__*/_jsxDEV("div", {
352
+ children: [/*#__PURE__*/_jsxs("div", {
353
353
  style: {
354
354
  fontWeight: 600,
355
355
  color: 'var(--color-text-primary)'
356
356
  },
357
357
  children: ["Point ", i]
358
- }, void 0, true), Object.entries(d).map(([k, v]) => /*#__PURE__*/_jsxDEV("div", {
359
- children: [/*#__PURE__*/_jsxDEV("span", {
358
+ }), Object.entries(d).map(([k, v]) => /*#__PURE__*/_jsxs("div", {
359
+ children: [/*#__PURE__*/_jsxs("span", {
360
360
  style: {
361
361
  color: 'var(--color-text-secondary)'
362
362
  },
363
363
  children: [k, ":"]
364
- }, void 0, true), ' ', /*#__PURE__*/_jsxDEV("span", {
364
+ }), ' ', /*#__PURE__*/_jsx("span", {
365
365
  style: {
366
366
  fontWeight: 500
367
367
  },
368
368
  children: String(v)
369
- }, void 0, false)]
370
- }, k, true))]
371
- }, void 0, true);
369
+ })]
370
+ }, k))]
371
+ });
372
372
  if (width <= 0 || height <= 0) {
373
373
  return null;
374
374
  }
375
- return /*#__PURE__*/_jsxDEV("g", {
376
- children: [/*#__PURE__*/_jsxDEV("foreignObject", {
375
+ return /*#__PURE__*/_jsxs("g", {
376
+ children: [/*#__PURE__*/_jsx("foreignObject", {
377
377
  x: 0,
378
378
  y: 0,
379
379
  width: width,
@@ -381,15 +381,15 @@ export function ChartDotGLInteractive({
381
381
  style: {
382
382
  overflow: 'hidden'
383
383
  },
384
- children: /*#__PURE__*/_jsxDEV("canvas", {
384
+ children: /*#__PURE__*/_jsx("canvas", {
385
385
  ref: visCanvasRef,
386
386
  style: {
387
387
  width,
388
388
  height,
389
389
  pointerEvents: 'none'
390
390
  }
391
- }, void 0, false)
392
- }, void 0, false), /*#__PURE__*/_jsxDEV("foreignObject", {
391
+ })
392
+ }), /*#__PURE__*/_jsx("foreignObject", {
393
393
  x: 0,
394
394
  y: 0,
395
395
  width: 0,
@@ -397,13 +397,13 @@ export function ChartDotGLInteractive({
397
397
  style: {
398
398
  overflow: 'hidden'
399
399
  },
400
- children: /*#__PURE__*/_jsxDEV("canvas", {
400
+ children: /*#__PURE__*/_jsx("canvas", {
401
401
  ref: pickCanvasRef,
402
402
  style: {
403
403
  display: 'none'
404
404
  }
405
- }, void 0, false)
406
- }, void 0, false), /*#__PURE__*/_jsxDEV("rect", {
405
+ })
406
+ }), /*#__PURE__*/_jsx("rect", {
407
407
  x: 0,
408
408
  y: 0,
409
409
  width: width,
@@ -411,7 +411,7 @@ export function ChartDotGLInteractive({
411
411
  fill: "transparent",
412
412
  onMouseMove: handleMouseMove,
413
413
  onMouseLeave: handleMouseLeave
414
- }, void 0, false), datum && hoverIndex >= 0 && /*#__PURE__*/_jsxDEV("circle", {
414
+ }), datum && hoverIndex >= 0 && /*#__PURE__*/_jsx("circle", {
415
415
  cx: positions[hoverIndex * 2],
416
416
  cy: positions[hoverIndex * 2 + 1],
417
417
  r: size / 2 + 3,
@@ -420,7 +420,7 @@ export function ChartDotGLInteractive({
420
420
  strokeWidth: 2,
421
421
  strokeOpacity: 0.8,
422
422
  pointerEvents: "none"
423
- }, void 0, false), datum && mousePos && /*#__PURE__*/_jsxDEV("foreignObject", {
423
+ }), datum && mousePos && /*#__PURE__*/_jsx("foreignObject", {
424
424
  x: mousePos.x + 12,
425
425
  y: Math.max(0, mousePos.y - 40),
426
426
  width: 200,
@@ -429,7 +429,7 @@ export function ChartDotGLInteractive({
429
429
  style: {
430
430
  overflow: 'visible'
431
431
  },
432
- children: /*#__PURE__*/_jsxDEV("div", {
432
+ children: /*#__PURE__*/_jsx("div", {
433
433
  style: {
434
434
  background: 'var(--color-background-popover)',
435
435
  border: '1px solid var(--color-border)',
@@ -440,7 +440,7 @@ export function ChartDotGLInteractive({
440
440
  width: 'fit-content'
441
441
  },
442
442
  children: renderTooltip ? renderTooltip(datum, hoverIndex) : defaultTooltip(datum, hoverIndex)
443
- }, void 0, false)
444
- }, void 0, false)]
445
- }, void 0, true);
443
+ })
444
+ })]
445
+ });
446
446
  }
@@ -8,7 +8,7 @@
8
8
 
9
9
  import { useChart } from "./ChartContext.js";
10
10
  import { xPixel } from "./utils.js";
11
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
11
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
12
12
  /**
13
13
  * Error bars with whisker caps. Pair with ChartBar or ChartDot.
14
14
  *
@@ -31,7 +31,7 @@ export function ChartErrorBar({
31
31
  xScale,
32
32
  yScale
33
33
  } = useChart();
34
- return /*#__PURE__*/_jsxDEV("g", {
34
+ return /*#__PURE__*/_jsx("g", {
35
35
  children: data.map((d, i) => {
36
36
  const x = xPixel(d, xKey, xScale);
37
37
  const upper = typeof d[yUpper] === 'number' ? d[yUpper] : 0;
@@ -39,30 +39,30 @@ export function ChartErrorBar({
39
39
  const yTop = yScale(upper);
40
40
  const yBot = yScale(lower);
41
41
  const half = capWidth / 2;
42
- return /*#__PURE__*/_jsxDEV("g", {
43
- children: [/*#__PURE__*/_jsxDEV("line", {
42
+ return /*#__PURE__*/_jsxs("g", {
43
+ children: [/*#__PURE__*/_jsx("line", {
44
44
  x1: x,
45
45
  x2: x,
46
46
  y1: yTop,
47
47
  y2: yBot,
48
48
  stroke: color,
49
49
  strokeWidth: strokeWidth
50
- }, void 0, false), /*#__PURE__*/_jsxDEV("line", {
50
+ }), /*#__PURE__*/_jsx("line", {
51
51
  x1: x - half,
52
52
  x2: x + half,
53
53
  y1: yTop,
54
54
  y2: yTop,
55
55
  stroke: color,
56
56
  strokeWidth: strokeWidth
57
- }, void 0, false), /*#__PURE__*/_jsxDEV("line", {
57
+ }), /*#__PURE__*/_jsx("line", {
58
58
  x1: x - half,
59
59
  x2: x + half,
60
60
  y1: yBot,
61
61
  y2: yBot,
62
62
  stroke: color,
63
63
  strokeWidth: strokeWidth
64
- }, void 0, false)]
65
- }, i, true);
64
+ })]
65
+ }, i);
66
66
  })
67
- }, void 0, false);
67
+ });
68
68
  }
@@ -9,7 +9,7 @@
9
9
  import { useMemo } from 'react';
10
10
  import { useChart } from "./ChartContext.js";
11
11
  import { isBandScale } from "./utils.js";
12
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
12
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
13
13
  /**
14
14
  * Grid lines behind chart marks.
15
15
  *
@@ -45,8 +45,8 @@ export function ChartGrid({
45
45
  const linear = xScale;
46
46
  return linear.ticks(5).map(d => linear(d));
47
47
  }, [vertical, xScale]);
48
- return /*#__PURE__*/_jsxDEV("g", {
49
- children: [hLines.map(y => /*#__PURE__*/_jsxDEV("line", {
48
+ return /*#__PURE__*/_jsxs("g", {
49
+ children: [hLines.map(y => /*#__PURE__*/_jsx("line", {
50
50
  x1: 0,
51
51
  x2: width,
52
52
  y1: y,
@@ -54,7 +54,7 @@ export function ChartGrid({
54
54
  stroke: "var(--color-border)",
55
55
  strokeOpacity: 0.5,
56
56
  strokeDasharray: "4 4"
57
- }, `h-${y}`, false)), vLines.map(x => /*#__PURE__*/_jsxDEV("line", {
57
+ }, `h-${y}`)), vLines.map(x => /*#__PURE__*/_jsx("line", {
58
58
  x1: x,
59
59
  x2: x,
60
60
  y1: 0,
@@ -62,6 +62,6 @@ export function ChartGrid({
62
62
  stroke: "var(--color-border)",
63
63
  strokeOpacity: 0.5,
64
64
  strokeDasharray: "4 4"
65
- }, `v-${x}`, false))]
66
- }, void 0, true);
65
+ }, `v-${x}`))]
66
+ });
67
67
  }
@@ -11,7 +11,7 @@ import { scaleBand } from 'd3-scale';
11
11
  import { useChart } from "./ChartContext.js";
12
12
  import { isBandScale } from "./utils.js";
13
13
  import { hexToGL, getWebGLContext, setupGLState, sizeCanvas, mountCanvasOverSVG, createProgram } from "./webgl.js";
14
- import { jsxDEV as _jsxDEV } from "react/jsx-dev-runtime";
14
+ import { jsx as _jsx } from "react/jsx-runtime";
15
15
  const VERT = `
16
16
  attribute vec2 a_position;
17
17
  attribute vec3 a_color;
@@ -174,7 +174,7 @@ export function ChartHeatmapGL({
174
174
  if (width <= 0 || height <= 0) {
175
175
  return null;
176
176
  }
177
- return /*#__PURE__*/_jsxDEV("g", {
177
+ return /*#__PURE__*/_jsx("g", {
178
178
  ref: markerRef
179
- }, void 0, false);
179
+ });
180
180
  }