@sheetxl/react 0.8.0-beta.21 → 0.8.0-beta.22

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 (67) hide show
  1. package/browser/esm/{B7TCFLHs7nnOgLMi.mjs → B9rbGikcuRq1OnhM.mjs} +2 -2
  2. package/browser/esm/{Co65nK3fyBcyVzrS.mjs → B9wkino8VMasq6E3.mjs} +1 -1
  3. package/browser/esm/{C2HjD-DbaqXq93R7.mjs → BPS1PDZKyF6ivJwa.mjs} +1 -1
  4. package/browser/esm/{CA6w64diOtRCgr4n.mjs → Biz8qA4-1wRN8de2.mjs} +1 -1
  5. package/browser/esm/{k1IvXgw5-153QQUo.mjs → Bjzo7g25tw9kTCYC.mjs} +2 -2
  6. package/browser/esm/{fHDciYUZvXpLzoID.mjs → BqIbT28MM3SBdvh_.mjs} +2 -2
  7. package/browser/esm/C7rc3CMd_XOITW1V.mjs +264 -0
  8. package/browser/esm/{CdE8JeJkTtdh5qqp.mjs → CJVcfqrty5b-eowN.mjs} +2 -2
  9. package/browser/esm/{CkYId3pjG9v3XZM2.mjs → CgOhJ3utK7aSQm26.mjs} +1 -1
  10. package/browser/esm/{_T8e_9xhVAagwkPD.mjs → CrTfqdSwWScJN566.mjs} +1 -1
  11. package/browser/esm/{DL2WZkJdK1lZfpJo.mjs → D01C312OntVURMN9.mjs} +7 -7
  12. package/browser/esm/{Dl0ye0MfTml4mjhA.mjs → D0g7sllamMog1m-Z.mjs} +3 -3
  13. package/browser/esm/{zTaXN_1rvsoWg94m.mjs → D7P7zWW2gdWclI2p.mjs} +3 -3
  14. package/browser/esm/{BjnWnPjhT1QFkbUC.mjs → D8NUgUzdI7YFxyyA.mjs} +3 -3
  15. package/browser/esm/{DG1f60gvSkz8Y3qb.mjs → DH8xeknZXWn7AV5q.mjs} +6 -6
  16. package/browser/esm/{BQur1iFrng9Y4kh4.mjs → DgmkBz2cYtVZ8tXv.mjs} +1 -1
  17. package/browser/esm/{C46qV9hBGqlz6_Kt.mjs → DhGJU1camaOf7KOq.mjs} +4 -4
  18. package/browser/esm/{CCL3pFmdsuwahoCR.mjs → DxsGY5rYjITV3SLK.mjs} +1 -1
  19. package/browser/esm/{CPwcEeQtvkrESNEy.mjs → DyFeCww9e_4G9c-1.mjs} +5 -5
  20. package/browser/esm/{CHgyrBEiFmspcFXV.mjs → HQkKZC6SPUdQwgxi.mjs} +1 -1
  21. package/browser/esm/{BwMC6jAg2neI4LTH.mjs → QKnTzTdIYAMcBU8r.mjs} +1 -1
  22. package/browser/esm/chart.mjs +3 -3
  23. package/browser/esm/control.mjs +2 -2
  24. package/browser/esm/group.mjs +3 -3
  25. package/browser/esm/{mOYnwl3MMod-yX7a.mjs → hTeTTb8oYTssk6EY.mjs} +1 -1
  26. package/browser/esm/index.mjs +6409 -6402
  27. package/browser/esm/{BzCq_Z7J2qQlY4Dp.mjs → mJyEnJIX0iGfGtvE.mjs} +1 -1
  28. package/browser/esm/{C9dHNoiKtX9PLY1g.mjs → mUKvsPCmRWzQke-M.mjs} +1 -1
  29. package/browser/esm/note.mjs +4 -4
  30. package/browser/esm/{6lfBozPNyWlFBEDn.mjs → np1ChcItFltS6AC5.mjs} +1 -1
  31. package/browser/esm/picture.mjs +2 -2
  32. package/browser/esm/shape.mjs +2 -2
  33. package/browser/esm/slicer.mjs +4 -4
  34. package/node/esm/{Bzuh8HcJcFD2dYTY.mjs → -6T2zqPkDm0WgUKI.mjs} +2 -2
  35. package/node/esm/{COg8aOu0d67g_Pg5.mjs → BPMjPMRyVTEZq_6j.mjs} +1 -1
  36. package/node/esm/{8PerdW56-NyRf0pg.mjs → BcASbEBHzMKiXn5i.mjs} +1 -1
  37. package/node/esm/{BadjRr_jKKGvmEW-.mjs → BpcTu_chuDjr_XFv.mjs} +1 -1
  38. package/node/esm/{Mq8a4csdTfwY5CnZ.mjs → C3XXdc_UXH2g2W5E.mjs} +1 -1
  39. package/node/esm/{CGEbcsNJ40cYQEWX.mjs → C91YeRrspETjFcRc.mjs} +2 -2
  40. package/node/esm/{B2a1mRx9B8XMRd8H.mjs → CE5fMGMmykts2yJP.mjs} +1 -1
  41. package/node/esm/{cgqViNUwnlIX8-UW.mjs → COlzVELrEvgm2STX.mjs} +4 -4
  42. package/node/esm/{fM9xnrz0LJWdndYE.mjs → CZc2QH8i-TgW9nGI.mjs} +1 -1
  43. package/node/esm/{JrDkDzP0l4TgHusH.mjs → CcLUKcJROXrbSXjb.mjs} +1 -1
  44. package/node/esm/{BBBfGP0lLhBFoR9F.mjs → CfpNgRvWmu36cTfV.mjs} +5 -5
  45. package/node/esm/{EXPN4LM0alUK5Zw7.mjs → CzQMRmArhJ6blZJp.mjs} +1 -1
  46. package/node/esm/{CNYzecnb2TInTI8p.mjs → DHTbAHbCiEWhilV_.mjs} +1 -1
  47. package/node/esm/{DtrPF3bSD4CZC5VG.mjs → DX7ysYSfnigj0ak8.mjs} +1 -1
  48. package/node/esm/{CD1OBtF4vEthYy6e.mjs → DxKxx-yEkSydHyWQ.mjs} +1 -1
  49. package/node/esm/{BQpm93aEyzN5TiU6.mjs → FUQMKIiQQ5m3xzeO.mjs} +1 -1
  50. package/node/esm/{tRhXTPxocmY7ZY3z.mjs → GG78Gq3CY8SDS-48.mjs} +1 -1
  51. package/node/esm/{CdKkuM4Yy04LbhRL.mjs → aLt3NYdUcYQu4Ur4.mjs} +1 -1
  52. package/node/esm/chart.mjs +2 -2
  53. package/node/esm/{B4qJFO-8Vml8JbaC.mjs → cju5Gx-t_74o116W.mjs} +2 -2
  54. package/node/esm/control.mjs +2 -2
  55. package/node/esm/group.mjs +3 -3
  56. package/node/esm/{Df-nWyFJwXaVd79x.mjs → i4aPmKocZebCBeSd.mjs} +79 -77
  57. package/node/esm/index.mjs +5542 -5535
  58. package/node/esm/{uzlKB6H0b-ol8pDK.mjs → l0GtU6LYlBywzc9T.mjs} +1 -1
  59. package/node/esm/note.mjs +4 -4
  60. package/node/esm/picture.mjs +5 -5
  61. package/node/esm/shape.mjs +18 -18
  62. package/node/esm/slicer.mjs +4 -4
  63. package/package.json +7 -7
  64. package/types/src/movable/MovableLayer.d.ts +1 -1
  65. package/types/src/theme/GridColorSchemeContext.d.ts +8 -0
  66. package/types/src/theme/useGridColorScheme.d.ts +5 -1
  67. package/browser/esm/BzFKdDmdCdg3cXdh.mjs +0 -262
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./_T8e_9xhVAagwkPD.mjs";
7
+ import { t as e } from "./CrTfqdSwWScJN566.mjs";
8
8
  import { forwardRef as t, memo as n, useMemo as r, useRef as i } from "react";
9
9
  import { jsx as a } from "react/jsx-runtime";
10
10
  var o = "data-run", s = (e) => typeof e == "string" ? e ? [{ text: e }] : [] : e.runs ?? [], c = (e) => {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { n as e } from "./CCL3pFmdsuwahoCR.mjs";
7
+ import { n as e } from "./DxsGY5rYjITV3SLK.mjs";
8
8
  var t = function(e, n) {
9
9
  return t = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, t) {
10
10
  e.__proto__ = t;
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { n as e } from "./CkYId3pjG9v3XZM2.mjs";
7
+ import { n as e } from "./CgOhJ3utK7aSQm26.mjs";
8
8
  import { ChartEditor as t } from "./chart.mjs";
9
9
  import { jsx as n } from "react/jsx-runtime";
10
10
  import { messageKey as r, t as i } from "@sheetxl/utils";
@@ -0,0 +1,264 @@
1
+ /**
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
+ *
4
+ * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
+ * License: SheetXL EULA — https://www.sheetxl.com/eula
6
+ */
7
+ import { t as e } from "./CrTfqdSwWScJN566.mjs";
8
+ import { createContext as t, forwardRef as n, memo as r, useCallback as i, useContext as a, useEffect as o, useLayoutEffect as s, useRef as c, useState as l } from "react";
9
+ import { jsx as u, jsxs as d } from "react/jsx-runtime";
10
+ import { CommonUtils as f, defineLazyModule as p } from "@sheetxl/utils";
11
+ import { useImperativeElement as ee, useMeasure as m, usePendingRender as te, usePersistentState as h, useResolvedThemeMode as g } from "@sheetxl/utils-react";
12
+ var _ = {
13
+ Mode: "themeMode",
14
+ DarkGrid: "enableDarkGrid",
15
+ DarkImages: "enableDarkImages"
16
+ }, v = {
17
+ [_.Mode]: null,
18
+ [_.DarkGrid]: !1,
19
+ [_.DarkImages]: !1
20
+ }, y = t(null);
21
+ y.displayName = "GridColorSchemeContext";
22
+ var b = (e) => {
23
+ let t = a(y), [n] = h(_.Mode, v[_.Mode]), [r] = h(_.DarkGrid, v[_.DarkGrid]), { themeMode: i } = g({ mode: e ?? n ?? void 0 });
24
+ return e || t || (i === "dark" && r ? "dark" : "light");
25
+ }, x = () => {
26
+ let [e] = h(_.Mode, v[_.Mode]), { themeMode: t } = g({ mode: e ?? void 0 });
27
+ return t;
28
+ }, S = p("chart:paint", () => import("./D0g7sllamMog1m-Z.mjs")), C = (e, t) => {
29
+ let n = e.getElementType();
30
+ if (n === "point") {
31
+ let n = e.getParent();
32
+ return t === n || t?.getElementType() === "point" && t.getParent() === n ? e : n;
33
+ }
34
+ if (n === "legendEntry") {
35
+ let n = e.getParent();
36
+ return t === n || t?.getElementType() === "legendEntry" ? e : n;
37
+ }
38
+ if (n === "dataLabel") {
39
+ let n = e.getParent()?.getParent(), r = n?.getDataLabels();
40
+ return r ? t === r || t?.getElementType() === "dataLabel" && t.getParent()?.getParent() === n ? e : r : e;
41
+ }
42
+ return e;
43
+ }, w = {
44
+ boxes: [],
45
+ handles: []
46
+ }, T = r(n((t, n) => {
47
+ let { children: r, style: a, chart: p, onChartChange: h, zoom: g = 1, width: _, height: v, selection: y = null, colorScheme: b, onElementPress: T, onPointerDown: E, ...ne } = t, [D, O] = l(() => f.isPromiseLike(p) ? null : p), [k, re] = l(null), A = c(h);
48
+ A.current = h;
49
+ let j = c(null);
50
+ o(() => {
51
+ let e = !0, t = (e, t) => {
52
+ re(t), O(e), j.current !== e && (j.current = e, A.current?.(e));
53
+ };
54
+ if (f.isPromiseLike(p)) return p.then((n) => {
55
+ e && t(n, null);
56
+ }, (n) => {
57
+ e && t(null, n);
58
+ }), () => {
59
+ e = !1;
60
+ };
61
+ t(p, null);
62
+ }, [p]);
63
+ let [ie, M] = m(), N = typeof _ == "number" ? _ : M.width, P = typeof v == "number" ? v : M.height, F = N ? Math.round(N / g) : 0, I = P ? Math.round(P / g) : 0, L = c({
64
+ width: F,
65
+ height: I
66
+ });
67
+ L.current = {
68
+ width: F,
69
+ height: I
70
+ };
71
+ let ae = x(), R = (b ?? ae) === "dark", z = i(async (e) => {
72
+ let t = L.current;
73
+ if (!D || !t.width || !t.height) return null;
74
+ let n = D.getLayout(t);
75
+ return n ? (await S.load()).renderChartToSVG(n, { darkMode: e?.darkMode ?? !1 }) : null;
76
+ }, [D]), B = c(null), V = c(null), H = c(g);
77
+ H.current = g;
78
+ let U = i((e, t) => {
79
+ let n = B.current;
80
+ if (!n) return null;
81
+ let r = n.getBoundingClientRect(), i = H.current || 1;
82
+ return {
83
+ x: (e - r.left) / i,
84
+ y: (t - r.top) / i
85
+ };
86
+ }, []), W = i((e, t) => {
87
+ let n = V.current, r = U(e, t);
88
+ return D && n && r ? D.getElementAt(r, n) : null;
89
+ }, [D, U]), oe = ee(n, () => ({
90
+ isChartElement: () => !0,
91
+ getChart: () => D,
92
+ toSVG: z,
93
+ getElementAt: W
94
+ }), [
95
+ D,
96
+ z,
97
+ W
98
+ ]), G = e([
99
+ oe,
100
+ ie,
101
+ B
102
+ ]), K = c(null), q = c(null), [J, se] = l(() => S.peek() ?? null), [Y, X] = l(null), [ce, le] = l(0), [Z, ue] = l(w);
103
+ o(() => D?.addListeners({ onLayoutChange: () => le((e) => e + 1) }), [D]), te(!(Y || k || J && D)), o(() => {
104
+ if (J) return;
105
+ let e = !0;
106
+ return S.load().then((t) => {
107
+ e && se(t);
108
+ }, (t) => {
109
+ e && X(t);
110
+ }), () => {
111
+ e = !1;
112
+ };
113
+ }, [J]);
114
+ let Q = i(() => {
115
+ let e = V.current;
116
+ ue(D && e && y && !y.isEmpty() ? ((e, t, n) => {
117
+ let r = [], i = [];
118
+ for (let a of n.getItems()) {
119
+ if (a.getChart() !== e) continue;
120
+ let o = a.getElementType();
121
+ if (o === "series" || o === "dataLabels") {
122
+ let n = o === "series" ? a : a.getParent(), i = o === "series" ? n.getPoints() : n.getPoints().map((e) => e.getDataLabel());
123
+ for (let n of i) {
124
+ let i = e.getElementBounds(n, t);
125
+ i && r.push(i);
126
+ }
127
+ if (r.length > 0) continue;
128
+ }
129
+ let s = e.getElementBounds(a, t);
130
+ if (s && (r.push(s), n.getItems().length === 1)) {
131
+ let e = [
132
+ s.x,
133
+ s.x + s.width / 2,
134
+ s.x + s.width
135
+ ], t = [
136
+ s.y,
137
+ s.y + s.height / 2,
138
+ s.y + s.height
139
+ ];
140
+ for (let n of e) for (let r of t) n === e[1] && r === t[1] || i.push({
141
+ x: n,
142
+ y: r
143
+ });
144
+ }
145
+ }
146
+ return {
147
+ boxes: r,
148
+ handles: i
149
+ };
150
+ })(D, e, y) : w);
151
+ }, [D, y]);
152
+ o(() => y?.addListeners({ onChange: Q }), [y, Q]), s(() => {
153
+ let e = K.current;
154
+ if (!(J && e && D && F && I)) return;
155
+ let t = D.getLayout({
156
+ width: F,
157
+ height: I
158
+ });
159
+ if (V.current = t, !t) return q.current?.dispose(), q.current = null, e.style.backgroundColor = "", void Q();
160
+ let n = t.chartArea.fill === void 0;
161
+ e.style.backgroundColor = n ? `var(--sxl-color-base-100, ${R ? "#121212" : "#FFFFFF"})` : "", e.style.borderRadius = n ? `${t.chartArea.cornerRadius}px` : "";
162
+ let r = {
163
+ darkMode: R,
164
+ background: "transparent"
165
+ };
166
+ q.current ? q.current.update(t, r) : q.current = J.mountChart(e, t, r), Q();
167
+ }, [
168
+ J,
169
+ D,
170
+ F,
171
+ I,
172
+ ce,
173
+ R,
174
+ Q
175
+ ]), o(() => () => {
176
+ q.current?.dispose(), q.current = null, V.current = null;
177
+ }, [D]);
178
+ let de = i((e) => {
179
+ if (E?.(e), e.button !== 0 && e.button !== 2) return;
180
+ let t = V.current, n = U(e.clientX, e.clientY);
181
+ if (!D || !t || !n) return;
182
+ let r = D.getElementAt(n, t);
183
+ if (T?.({
184
+ element: r,
185
+ point: n,
186
+ event: e
187
+ }), !y) return;
188
+ if (!r || r.getElementType() === "chartArea") return void y.clear();
189
+ let i = C(r, y.getActive());
190
+ y.isSelected(i) && y.getItems().length === 1 || y.select([i]);
191
+ }, [
192
+ D,
193
+ y,
194
+ T,
195
+ E,
196
+ U
197
+ ]);
198
+ if (D?.isDeleted()) return;
199
+ let $ = Y ?? k;
200
+ return d("div", {
201
+ ...ne,
202
+ onPointerDown: de,
203
+ style: {
204
+ ..._ === void 0 ? {} : { width: _ },
205
+ ...v === void 0 ? {} : { height: v },
206
+ ...a,
207
+ overflow: "hidden"
208
+ },
209
+ ref: G,
210
+ children: [
211
+ $ ? u("div", {
212
+ className: "sxl-chart-element-error",
213
+ style: {
214
+ padding: "8px",
215
+ fontSize: "12px",
216
+ color: "var(--sxl-color-error, #b00020)"
217
+ },
218
+ children: $.message
219
+ }) : null,
220
+ u("div", {
221
+ className: "sxl-chart-element",
222
+ ref: K,
223
+ style: {
224
+ width: F || "100%",
225
+ height: I || "100%",
226
+ zoom: g,
227
+ position: "relative"
228
+ }
229
+ }),
230
+ Z.boxes.length > 0 ? d("div", {
231
+ className: "sxl-chart-element-selection",
232
+ style: {
233
+ position: "absolute",
234
+ left: 0,
235
+ top: 0,
236
+ width: F,
237
+ height: I,
238
+ zoom: g,
239
+ pointerEvents: "none"
240
+ },
241
+ children: [Z.boxes.map((e, t) => u("div", { style: {
242
+ position: "absolute",
243
+ left: e.x - 1,
244
+ top: e.y - 1,
245
+ width: Math.max(0, e.width),
246
+ height: Math.max(0, e.height),
247
+ border: "1px solid var(--sxl-color-primary, #1a73e8)",
248
+ boxSizing: "content-box"
249
+ } }, `box-${t}`)), Z.handles.map((e, t) => u("div", { style: {
250
+ position: "absolute",
251
+ left: e.x - 3,
252
+ top: e.y - 3,
253
+ width: 6,
254
+ height: 6,
255
+ background: "var(--sxl-color-base-100, #fff)",
256
+ border: "1px solid var(--sxl-color-primary, #1a73e8)",
257
+ boxSizing: "border-box"
258
+ } }, `handle-${t}`))]
259
+ }) : null
260
+ ]
261
+ });
262
+ }));
263
+ T.displayName = "ChartElement";
264
+ export { y as a, b as i, C as n, v as o, x as r, _ as s, T as t };
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { i as e, n as t, r as n, t as r } from "./k1IvXgw5-153QQUo.mjs";
7
+ import { i as e, n as t, r as n, t as r } from "./Bjzo7g25tw9kTCYC.mjs";
8
8
  var i = !1;
9
9
  function a(e) {
10
10
  let t = [];
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./C2HjD-DbaqXq93R7.mjs";
8
- import { n as t } from "./C9dHNoiKtX9PLY1g.mjs";
9
- import { t as n } from "./mOYnwl3MMod-yX7a.mjs";
10
- import { t as r } from "./BzCq_Z7J2qQlY4Dp.mjs";
11
- import { i, n as a, r as o, t as ee } from "./Co65nK3fyBcyVzrS.mjs";
7
+ import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
8
+ import { n as t } from "./mUKvsPCmRWzQke-M.mjs";
9
+ import { t as n } from "./hTeTTb8oYTssk6EY.mjs";
10
+ import { t as r } from "./mJyEnJIX0iGfGtvE.mjs";
11
+ import { i, n as a, r as o, t as ee } from "./B9wkino8VMasq6E3.mjs";
12
12
  import { forwardRef as s, memo as c, useCallback as l, useEffect as u, useMemo as d, useReducer as f, useRef as p, useState as m } from "react";
13
13
  import { jsx as h, jsxs as g } from "react/jsx-runtime";
14
14
  import { messageKey as te } from "@sheetxl/utils";
@@ -271,7 +271,7 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
271
271
  top: 0,
272
272
  display: "block",
273
273
  pointerEvents: "none",
274
- filter: Oe ? "drop-shadow(1px 1px 2px rgba(0,0,0,.15))" : void 0
274
+ filter: Oe ? "drop-shadow(1px 1px 2px var(--sxl-color-shadow, rgba(0, 0, 0, 0.15)))" : void 0
275
275
  },
276
276
  children: [G ? h(ee, {
277
277
  geometry: G,
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./CCL3pFmdsuwahoCR.mjs";
8
- import { $ as t, $n as n, $r as r, $t as i, A as a, Ai as o, An as s, Ar as c, At as l, B as u, Bn as d, Br as f, Bt as p, C as m, Ci as h, Cr as g, Ct as _, D as v, Di as y, Dn as b, Dr as x, Dt as S, E as C, Ei as w, En as T, Er as E, Et as D, F as O, Fi as k, Fn as A, Fr as j, Ft as M, G as N, Gn as P, Gr as F, Gt as I, H as ee, Hn as L, Hr as R, Ht as te, I as ne, Ii as re, In as ie, Ir as ae, It as oe, J as se, Jn as ce, Jr as le, Jt as ue, K as de, Kn as fe, Kr as pe, Kt as me, L as he, Li as ge, Ln as _e, Lr as ve, Lt as ye, M as be, Mi as xe, Mn as Se, Mr as Ce, Mt as we, N as Te, Ni as z, Nn as Ee, Nr as De, Nt as Oe, O as ke, Oi as B, On as Ae, Or as je, Ot as Me, P as Ne, Pi as Pe, Pn as Fe, Pr as Ie, Pt as Le, Q as Re, Qn as ze, Qr as Be, Qt as Ve, R as V, Ri as H, Rn as He, Rr as Ue, Rt as We, S as Ge, Si as Ke, Sn as qe, Sr as Je, St as Ye, T as Xe, Ti as Ze, Tn as Qe, Tr as $e, Tt as et, U as tt, Un as nt, Ur as rt, Ut as it, V as at, Vn as ot, Vr as st, Vt as ct, W as lt, Wn as ut, Wr as dt, Wt as ft, X as pt, Xn as mt, Xr as ht, Xt as gt, Y as _t, Yn as vt, Yr as yt, Yt as bt, Z as xt, Zn as St, Zr as Ct, Zt as wt, _ as Tt, _i as Et, _n as Dt, _r as Ot, _t as kt, a as At, ai as jt, an as Mt, ar as Nt, at as Pt, b as Ft, bi as U, bn as It, br as Lt, bt as Rt, c as zt, ci as W, cn as Bt, cr as Vt, ct as Ht, d as Ut, di as G, dn as Wt, dr as Gt, dt as Kt, ei as qt, en as Jt, er as Yt, et as Xt, f as Zt, fi as Qt, fn as $t, fr as en, ft as tn, g as nn, gi as rn, gn as an, gr as on, gt as sn, h as cn, hi as K, hn as ln, hr as un, ht as dn, i as fn, ii as pn, in as mn, ir as hn, it as gn, j as _n, ji as vn, jn as yn, jr as bn, jt as xn, k as Sn, ki as Cn, kn as wn, kr as Tn, kt as En, l as Dn, li as On, ln as kn, lr as An, lt as jn, m as Mn, mi as Nn, mn as Pn, mr as Fn, mt as In, n as Ln, ni as Rn, nn as zn, nr as Bn, nt as Vn, o as Hn, oi as Un, on as Wn, or as Gn, ot as Kn, p as qn, pi as q, pn as Jn, pr as Yn, pt as Xn, q as Zn, qn as Qn, qr as J, qt as $n, r as er, ri as tr, rn as nr, rr, rt as ir, s as ar, si as or, sn as sr, sr as cr, st as lr, t as ur, ti as dr, tn as fr, tr as pr, tt as mr, u as hr, ui as Y, un as gr, ur as _r, ut as vr, v as yr, vi as br, vn as xr, vr as Sr, vt as Cr, w as wr, wi as Tr, wr as X, wt as Er, x as Dr, xi as Or, xn as kr, xr as Ar, xt as jr, y as Mr, yi as Nr, yn as Pr, yr as Fr, yt as Ir, z as Lr, zn as Rr, zr, zt as Br } from "./k1IvXgw5-153QQUo.mjs";
7
+ import { t as e } from "./DxsGY5rYjITV3SLK.mjs";
8
+ import { $ as t, $n as n, $r as r, $t as i, A as a, Ai as o, An as s, Ar as c, At as l, B as u, Bn as d, Br as f, Bt as p, C as m, Ci as h, Cr as g, Ct as _, D as v, Di as y, Dn as b, Dr as x, Dt as S, E as C, Ei as w, En as T, Er as E, Et as D, F as O, Fi as k, Fn as A, Fr as j, Ft as M, G as N, Gn as P, Gr as F, Gt as I, H as ee, Hn as L, Hr as R, Ht as te, I as ne, Ii as re, In as ie, Ir as ae, It as oe, J as se, Jn as ce, Jr as le, Jt as ue, K as de, Kn as fe, Kr as pe, Kt as me, L as he, Li as ge, Ln as _e, Lr as ve, Lt as ye, M as be, Mi as xe, Mn as Se, Mr as Ce, Mt as we, N as Te, Ni as z, Nn as Ee, Nr as De, Nt as Oe, O as ke, Oi as B, On as Ae, Or as je, Ot as Me, P as Ne, Pi as Pe, Pn as Fe, Pr as Ie, Pt as Le, Q as Re, Qn as ze, Qr as Be, Qt as Ve, R as V, Ri as H, Rn as He, Rr as Ue, Rt as We, S as Ge, Si as Ke, Sn as qe, Sr as Je, St as Ye, T as Xe, Ti as Ze, Tn as Qe, Tr as $e, Tt as et, U as tt, Un as nt, Ur as rt, Ut as it, V as at, Vn as ot, Vr as st, Vt as ct, W as lt, Wn as ut, Wr as dt, Wt as ft, X as pt, Xn as mt, Xr as ht, Xt as gt, Y as _t, Yn as vt, Yr as yt, Yt as bt, Z as xt, Zn as St, Zr as Ct, Zt as wt, _ as Tt, _i as Et, _n as Dt, _r as Ot, _t as kt, a as At, ai as jt, an as Mt, ar as Nt, at as Pt, b as Ft, bi as U, bn as It, br as Lt, bt as Rt, c as zt, ci as W, cn as Bt, cr as Vt, ct as Ht, d as Ut, di as G, dn as Wt, dr as Gt, dt as Kt, ei as qt, en as Jt, er as Yt, et as Xt, f as Zt, fi as Qt, fn as $t, fr as en, ft as tn, g as nn, gi as rn, gn as an, gr as on, gt as sn, h as cn, hi as K, hn as ln, hr as un, ht as dn, i as fn, ii as pn, in as mn, ir as hn, it as gn, j as _n, ji as vn, jn as yn, jr as bn, jt as xn, k as Sn, ki as Cn, kn as wn, kr as Tn, kt as En, l as Dn, li as On, ln as kn, lr as An, lt as jn, m as Mn, mi as Nn, mn as Pn, mr as Fn, mt as In, n as Ln, ni as Rn, nn as zn, nr as Bn, nt as Vn, o as Hn, oi as Un, on as Wn, or as Gn, ot as Kn, p as qn, pi as q, pn as Jn, pr as Yn, pt as Xn, q as Zn, qn as Qn, qr as J, qt as $n, r as er, ri as tr, rn as nr, rr, rt as ir, s as ar, si as or, sn as sr, sr as cr, st as lr, t as ur, ti as dr, tn as fr, tr as pr, tt as mr, u as hr, ui as Y, un as gr, ur as _r, ut as vr, v as yr, vi as br, vn as xr, vr as Sr, vt as Cr, w as wr, wi as Tr, wr as X, wt as Er, x as Dr, xi as Or, xn as kr, xr as Ar, xt as jr, y as Mr, yi as Nr, yn as Pr, yr as Fr, yt as Ir, z as Lr, zn as Rr, zr, zt as Br } from "./Bjzo7g25tw9kTCYC.mjs";
9
9
  import { Color as Vr, IFill as Hr, IStroke as Ur, PaintUtils as Wr } from "@sheetxl/sdk";
10
10
  var Gr = {
11
11
  pct5: "0040000000040000",
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { n as e } from "./6lfBozPNyWlFBEDn.mjs";
8
- import { i as t, n, r, t as i } from "./CPwcEeQtvkrESNEy.mjs";
7
+ import { n as e } from "./np1ChcItFltS6AC5.mjs";
8
+ import { i as t, n, r, t as i } from "./DyFeCww9e_4G9c-1.mjs";
9
9
  import { jsx as a } from "react/jsx-runtime";
10
10
  import { DOMUtils as o, messageKey as s, t as c } from "@sheetxl/utils";
11
11
  import { NotifierType as l } from "@sheetxl/utils-react";
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { n as e } from "./CCL3pFmdsuwahoCR.mjs";
8
- import { t } from "./_T8e_9xhVAagwkPD.mjs";
7
+ import { n as e } from "./DxsGY5rYjITV3SLK.mjs";
8
+ import { t } from "./CrTfqdSwWScJN566.mjs";
9
9
  import { forwardRef as n, memo as r, useEffect as i } from "react";
10
10
  import { jsx as a } from "react/jsx-runtime";
11
11
  import { useImperativeElement as o, useMeasure as s, useTranslator as c } from "@sheetxl/utils-react";
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./C2HjD-DbaqXq93R7.mjs";
8
- import { d as t } from "./C46qV9hBGqlz6_Kt.mjs";
9
- import { t as n } from "./CHgyrBEiFmspcFXV.mjs";
10
- import { n as r } from "./CkYId3pjG9v3XZM2.mjs";
11
- import { t as i } from "./DL2WZkJdK1lZfpJo.mjs";
7
+ import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
8
+ import { d as t } from "./DhGJU1camaOf7KOq.mjs";
9
+ import { t as n } from "./HQkKZC6SPUdQwgxi.mjs";
10
+ import { n as r } from "./CgOhJ3utK7aSQm26.mjs";
11
+ import { t as i } from "./D01C312OntVURMN9.mjs";
12
12
  import { memo as a, useCallback as o, useReducer as s, useRef as c } from "react";
13
13
  import { jsx as l } from "react/jsx-runtime";
14
14
  import { messageKey as u } from "@sheetxl/utils";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./C2HjD-DbaqXq93R7.mjs";
7
+ import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
8
8
  import { createContext as t, memo as n, useCallback as r, useEffect as i, useReducer as a, useRef as o, useState as s } from "react";
9
9
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
10
10
  import { LazyModules as d, defineLazyModule as f } from "@sheetxl/utils";
@@ -161,7 +161,7 @@ var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), A = /* @__PURE
161
161
  for (let e of [...j]) e();
162
162
  }, N = !1, P = () => {
163
163
  N || (N = !0, function(e) {
164
- e("picture", () => import("./zTaXN_1rvsoWg94m.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./fHDciYUZvXpLzoID.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./BwMC6jAg2neI4LTH.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./DG1f60gvSkz8Y3qb.mjs"), {
164
+ e("picture", () => import("./D7P7zWW2gdWclI2p.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./BqIbT28MM3SBdvh_.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./QKnTzTdIYAMcBU8r.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./DH8xeknZXWn7AV5q.mjs"), {
165
165
  select: (e) => e.ShapeKind,
166
166
  selectionShadow: !1
167
167
  }), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => l(e, {
@@ -173,7 +173,7 @@ var O = /* @__PURE__ */ new Map(), k = /* @__PURE__ */ new Map(), A = /* @__PURE
173
173
  ...r,
174
174
  note: t.movable.getContent()
175
175
  });
176
- } }), e("error", () => import("./BjnWnPjhT1QFkbUC.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => l(e, { ...t }) });
176
+ } }), e("error", () => import("./D8NUgUzdI7YFxyyA.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => l(e, { ...t }) });
177
177
  let t = (t, n) => {
178
178
  e(t, () => import("./control.mjs"), { select: n });
179
179
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./C2HjD-DbaqXq93R7.mjs";
8
- import { n as t } from "./C9dHNoiKtX9PLY1g.mjs";
9
- import { t as n } from "./6lfBozPNyWlFBEDn.mjs";
10
- import { i as r, r as i, t as a } from "./Co65nK3fyBcyVzrS.mjs";
7
+ import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
8
+ import { n as t } from "./mUKvsPCmRWzQke-M.mjs";
9
+ import { t as n } from "./np1ChcItFltS6AC5.mjs";
10
+ import { i as r, r as i, t as a } from "./B9wkino8VMasq6E3.mjs";
11
11
  import { forwardRef as o, memo as s, useEffect as c, useId as l, useMemo as u, useReducer as ee, useRef as te, useState as d } from "react";
12
12
  import { jsx as f, jsxs as ne } from "react/jsx-runtime";
13
13
  import { useSurfaceStateSetter as re } from "@sheetxl/grid-react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { i as e, n as t, t as n } from "./BzFKdDmdCdg3cXdh.mjs";
8
- import { t as r } from "./_T8e_9xhVAagwkPD.mjs";
7
+ import { i as e, n as t, t as n } from "./C7rc3CMd_XOITW1V.mjs";
8
+ import { t as r } from "./CrTfqdSwWScJN566.mjs";
9
9
  import { forwardRef as i, memo as a, useCallback as o, useLayoutEffect as s, useRef as c } from "react";
10
10
  import { jsx as l } from "react/jsx-runtime";
11
11
  import { useImperativeElement as u } from "@sheetxl/utils-react";
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./C2HjD-DbaqXq93R7.mjs";
7
+ import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
8
8
  import { IFont as t } from "@sheetxl/sdk";
9
9
  import { memo as n, useEffect as r, useReducer as i, useRef as a } from "react";
10
10
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./C2HjD-DbaqXq93R7.mjs";
8
- import { h as t, i as n, p as r } from "./C46qV9hBGqlz6_Kt.mjs";
7
+ import { t as e } from "./BPS1PDZKyF6ivJwa.mjs";
8
+ import { h as t, i as n, p as r } from "./DhGJU1camaOf7KOq.mjs";
9
9
  import { forwardRef as i, memo as a, useContext as o, useEffect as s, useReducer as c } from "react";
10
10
  import { jsx as l, jsxs as u } from "react/jsx-runtime";
11
11
  import { useSurfaceState as d } from "@sheetxl/grid-react";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.21
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.22
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula