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

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 (79) hide show
  1. package/browser/esm/{Dl0ye0MfTml4mjhA.mjs → 2-8Z3hKcjFc9IUm_.mjs} +3 -3
  2. package/browser/esm/{fHDciYUZvXpLzoID.mjs → B1qMCa-WDnmPYR_C.mjs} +2 -2
  3. package/browser/esm/{zTaXN_1rvsoWg94m.mjs → B1rKvYmr4ynvDkqM.mjs} +3 -3
  4. package/browser/esm/B7RYx03rC74aIduo.mjs +264 -0
  5. package/browser/esm/{C2HjD-DbaqXq93R7.mjs → BG96UT5-ooOuigD0.mjs} +1 -1
  6. package/browser/esm/{BQur1iFrng9Y4kh4.mjs → BHukFXtx1rpfvfIy.mjs} +1 -1
  7. package/browser/esm/{BjnWnPjhT1QFkbUC.mjs → BN7pckCvCRZMPCmK.mjs} +7 -7
  8. package/browser/esm/{BzCq_Z7J2qQlY4Dp.mjs → BklsD3lkZGRSwAFi.mjs} +1 -1
  9. package/browser/esm/{CdE8JeJkTtdh5qqp.mjs → C-eTPeTwXQoqn3Lb.mjs} +2 -2
  10. package/browser/esm/{CA6w64diOtRCgr4n.mjs → C9wgyCKVT4rwQMSD.mjs} +1 -1
  11. package/browser/esm/{DG1f60gvSkz8Y3qb.mjs → CD5gjg2DVLsy6h33.mjs} +6 -6
  12. package/browser/esm/{DL2WZkJdK1lZfpJo.mjs → CEtZlL4v4JU0TDVR.mjs} +122 -122
  13. package/browser/esm/{6lfBozPNyWlFBEDn.mjs → CGEyv-QdxMuQmLqk.mjs} +1 -1
  14. package/browser/esm/{CkYId3pjG9v3XZM2.mjs → CLD7Vob5oUran-l0.mjs} +1 -1
  15. package/browser/esm/{B7TCFLHs7nnOgLMi.mjs → CXJmpmqTkVe25Ita.mjs} +2 -2
  16. package/browser/esm/{mOYnwl3MMod-yX7a.mjs → CmYMKPG-TaW2dJPu.mjs} +1 -1
  17. package/browser/esm/{_T8e_9xhVAagwkPD.mjs → CruGvs0fdtWWO_Di.mjs} +1 -1
  18. package/browser/esm/{Co65nK3fyBcyVzrS.mjs → Cw3PQMs1RDxzIo35.mjs} +2 -2
  19. package/browser/esm/{C46qV9hBGqlz6_Kt.mjs → D5r5ejlRpFFXN6TK.mjs} +4 -4
  20. package/browser/esm/{C9dHNoiKtX9PLY1g.mjs → D952mmmww4cYPatc.mjs} +1 -1
  21. package/browser/esm/{BwMC6jAg2neI4LTH.mjs → DQ5DeFNj_0mj6QMd.mjs} +1 -1
  22. package/browser/esm/{CPwcEeQtvkrESNEy.mjs → DSvlk_YzOev20rgN.mjs} +173 -160
  23. package/browser/esm/{k1IvXgw5-153QQUo.mjs → DedLmnV_HajYHYSM.mjs} +2 -2
  24. package/browser/esm/{CCL3pFmdsuwahoCR.mjs → G6Ek0k1QC1pUHvPd.mjs} +1 -1
  25. package/browser/esm/{CHgyrBEiFmspcFXV.mjs → OPWkc7t367MwVsVU.mjs} +1 -1
  26. package/browser/esm/chart.mjs +11 -11
  27. package/browser/esm/control.mjs +16 -16
  28. package/browser/esm/group.mjs +29 -29
  29. package/browser/esm/index.mjs +6524 -6512
  30. package/browser/esm/note.mjs +10 -10
  31. package/browser/esm/picture.mjs +2 -2
  32. package/browser/esm/shape.mjs +2 -2
  33. package/browser/esm/slicer.mjs +55 -50
  34. package/node/esm/{fM9xnrz0LJWdndYE.mjs → B5ae_WW6vAz2jOsn.mjs} +1 -1
  35. package/node/esm/{JrDkDzP0l4TgHusH.mjs → BD04OJgRWKiE2W1H.mjs} +1 -1
  36. package/node/esm/{uzlKB6H0b-ol8pDK.mjs → BGLOvRRJr4nt8QdO.mjs} +2 -2
  37. package/node/esm/{B2a1mRx9B8XMRd8H.mjs → BKrvkWuGTMdkvdy6.mjs} +1 -1
  38. package/node/esm/{CdKkuM4Yy04LbhRL.mjs → BMWwIbesFn8e6-Ov.mjs} +1 -1
  39. package/node/esm/{BBBfGP0lLhBFoR9F.mjs → BhgjRcXOyNKBdqUW.mjs} +5 -5
  40. package/node/esm/{DtrPF3bSD4CZC5VG.mjs → Bv0fGxNecKUr_qYS.mjs} +1 -1
  41. package/node/esm/{Mq8a4csdTfwY5CnZ.mjs → CF5ztfx05vyEMEub.mjs} +1 -1
  42. package/node/esm/{CGEbcsNJ40cYQEWX.mjs → CeSZX96RPPjn29Hw.mjs} +2 -2
  43. package/node/esm/{Bzuh8HcJcFD2dYTY.mjs → CeuVkQpY8O4nZG-k.mjs} +2 -2
  44. package/node/esm/{BQpm93aEyzN5TiU6.mjs → Csl959_HnUC4Y06N.mjs} +1 -1
  45. package/node/esm/{B4qJFO-8Vml8JbaC.mjs → Cx16BErZDzlQEXH_.mjs} +2 -2
  46. package/node/esm/{Df-nWyFJwXaVd79x.mjs → D8mwVRSclIFn5SVM.mjs} +80 -78
  47. package/node/esm/{COg8aOu0d67g_Pg5.mjs → DJyNfqgeIlJ6lOHS.mjs} +1 -1
  48. package/node/esm/{cgqViNUwnlIX8-UW.mjs → DL2RKBB2PXzdJyx_.mjs} +4 -4
  49. package/node/esm/{CNYzecnb2TInTI8p.mjs → DmHHRlyfyFWj6wvW.mjs} +1 -1
  50. package/node/esm/{8PerdW56-NyRf0pg.mjs → VFXZqkIvB9MDE2Ea.mjs} +1 -1
  51. package/node/esm/{tRhXTPxocmY7ZY3z.mjs → YC2O0ix33xKY0ShQ.mjs} +12 -12
  52. package/node/esm/chart.mjs +19 -19
  53. package/node/esm/control.mjs +16 -16
  54. package/node/esm/group.mjs +27 -27
  55. package/node/esm/{EXPN4LM0alUK5Zw7.mjs → iMUcM8KW4HIW2Ksm.mjs} +1 -1
  56. package/node/esm/index.mjs +5598 -5585
  57. package/node/esm/{BadjRr_jKKGvmEW-.mjs → k3c-0DQ1fifSFOnO.mjs} +1 -1
  58. package/node/esm/note.mjs +10 -10
  59. package/node/esm/picture.mjs +175 -162
  60. package/node/esm/shape.mjs +164 -164
  61. package/node/esm/slicer.mjs +100 -95
  62. package/node/esm/{CD1OBtF4vEthYy6e.mjs → vYeFE_eUMRqsgnkd.mjs} +1 -1
  63. package/package.json +7 -7
  64. package/types/src/cell/CornerTriangle.d.ts +2 -1
  65. package/types/src/editor/SheetCellEditorLayer.d.ts +0 -5
  66. package/types/src/editor/formulaPresentation.d.ts +4 -3
  67. package/types/src/movable/IMovableArea.d.ts +11 -0
  68. package/types/src/movable/MovableLayer.d.ts +1 -1
  69. package/types/src/sheet/IWorksheetElement.d.ts +13 -4
  70. package/types/src/theme/ExplicitTokens.d.ts +18 -0
  71. package/types/src/theme/GridColorSchemeContext.d.ts +8 -0
  72. package/types/src/theme/ThemeRootStyles.d.ts +31 -0
  73. package/types/src/theme/buildTokensCSS.d.ts +15 -0
  74. package/types/src/theme/index.d.ts +2 -4
  75. package/types/src/theme/useAppColorScheme.d.ts +4 -1
  76. package/types/src/theme/useGridColorScheme.d.ts +7 -2
  77. package/types/src/theme/useSystemColors.d.ts +0 -14
  78. package/types/src/workbook/IWorkbookElement.d.ts +36 -8
  79. package/browser/esm/BzFKdDmdCdg3cXdh.mjs +0 -262
@@ -1,21 +1,21 @@
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.23
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";
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
- import { jsx as h, jsxs as g } from "react/jsx-runtime";
14
- import { messageKey as te } from "@sheetxl/utils";
15
- import { ReactUtils as _, useImperativeElement as v } from "@sheetxl/utils-react";
16
- import { createPortal as ne } from "react-dom";
17
- var re = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
18
- let a = p(null), o = p(null), [ee, s] = m(!1), c = l((e) => {
7
+ import { t as e } from "./BG96UT5-ooOuigD0.mjs";
8
+ import { n as t } from "./D952mmmww4cYPatc.mjs";
9
+ import { t as n } from "./CmYMKPG-TaW2dJPu.mjs";
10
+ import { t as r } from "./BklsD3lkZGRSwAFi.mjs";
11
+ import { i, n as a, r as o, t as ee } from "./Cw3PQMs1RDxzIo35.mjs";
12
+ import { forwardRef as s, memo as c, useCallback as l, useEffect as u, useMemo as d, useReducer as te, useRef as f, useState as p } from "react";
13
+ import { jsx as m, jsxs as h } from "react/jsx-runtime";
14
+ import { messageKey as ne } from "@sheetxl/utils";
15
+ import { ReactUtils as g, tokenVar as _, useImperativeElement as v } from "@sheetxl/utils-react";
16
+ import { createPortal as re } from "react-dom";
17
+ var y = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
18
+ let a = f(null), o = f(null), [ee, s] = p(!1), c = l((e) => {
19
19
  let t = a.current, n = t?.getScreenCTM();
20
20
  if (!t || !n) return null;
21
21
  let r = new DOMPoint(e.clientX, e.clientY).matrixTransform(n.inverse());
@@ -34,19 +34,19 @@ var re = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
34
34
  e.stopPropagation();
35
35
  let n = c(e);
36
36
  n && i(t.index, n.x, n.y, "move");
37
- }, [c, i]), f = l((e) => {
37
+ }, [c, i]), te = l((e) => {
38
38
  let t = o.current;
39
39
  if (!t || t.pointerId !== e.pointerId) return;
40
40
  e.stopPropagation(), o.current = null, s(!1);
41
41
  let n = c(e);
42
42
  n ? i(t.index, n.x, n.y, "end") : i(t.index, 0, 0, "cancel");
43
- }, [c, i]), te = l((e) => {
43
+ }, [c, i]), ne = l((e) => {
44
44
  let t = o.current;
45
45
  t && t.pointerId === e.pointerId && (o.current = null, s(!1), i(t.index, 0, 0, "cancel"));
46
46
  }, [i]);
47
47
  if (!(e.length !== 0 && t > 0 && n > 0)) return null;
48
- let _ = r > 0 ? r : 1, v = 4.5 / _;
49
- return h("svg", {
48
+ let g = r > 0 ? r : 1, v = 4.5 / g;
49
+ return m("svg", {
50
50
  ref: a,
51
51
  className: ee ? "sxl-shape-handles sxl-movable-gesture" : "sxl-shape-handles",
52
52
  viewBox: `0 0 ${t} ${n}`,
@@ -62,18 +62,18 @@ var re = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
62
62
  pointerEvents: "none",
63
63
  touchAction: "none"
64
64
  },
65
- children: e.map((e) => g("g", {
65
+ children: e.map((e) => h("g", {
66
66
  className: "sxl-shape-handle",
67
- style: { "--shape-scale": _ },
68
- children: [h("circle", {
67
+ style: { "--shape-scale": g },
68
+ children: [m("circle", {
69
69
  cx: e.x,
70
70
  cy: e.y,
71
71
  r: v,
72
- fill: "#ffc000",
73
- stroke: "#7f6000",
74
- strokeWidth: 1 / _,
72
+ fill: _("color-accent"),
73
+ stroke: _("color-base-100"),
74
+ strokeWidth: 1 / g,
75
75
  style: { pointerEvents: "none" }
76
- }), h("circle", {
76
+ }), m("circle", {
77
77
  className: "sxl-shape-handle-hit",
78
78
  cx: e.x,
79
79
  cy: e.y,
@@ -86,48 +86,48 @@ var re = c(({ handles: e, width: t, height: n, zoom: r, onDrag: i }) => {
86
86
  },
87
87
  onPointerDown: (t) => u(t, e.index),
88
88
  onPointerMove: d,
89
- onPointerUp: f,
90
- onPointerCancel: te,
89
+ onPointerUp: te,
90
+ onPointerCancel: ne,
91
91
  onMouseDown: (e) => e.stopPropagation()
92
92
  })]
93
93
  }, e.index))
94
94
  });
95
95
  });
96
- re.displayName = "ShapeHandles";
97
- var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e.getHeight() === n ? e : y(t, n) ? e.resize(t, n) : null, ie = (e) => {
96
+ y.displayName = "ShapeHandles";
97
+ var b = (e, t) => e > 0 || t > 0, x = (e, t, n) => !e || e.getWidth() === t && e.getHeight() === n ? e : b(t, n) ? e.resize(t, n) : null, ie = (e) => {
98
98
  let t = [];
99
99
  return e.forEachConnection((e) => t.push(e)), t;
100
- }, x = c(s((s, c) => {
101
- let { children: x, disabled: S, style: ae, shape: C, movable: w, zoom: T = 1, isDragging: oe, onHide: se, onShow: ce, onDragZone: le, adornmentHost: ue, flip: de, gesture: E, debugGeometry: fe = !1, ...pe } = s, D = t()?.getStyles() ?? null, [me, O] = f((e) => e + 1, 0);
102
- e(C, { onAnyChange: O }), e(w ?? null, {
103
- onBoundsChange: O,
104
- onSelectionChange: O
100
+ }, ae = c(s((s, c) => {
101
+ let { children: ae, disabled: S, style: oe, shape: C, movable: w, zoom: T = 1, isDragging: se, onHide: ce, onShow: le, onDragZone: ue, onTap: de, adornmentHost: E, flip: fe, gesture: D, debugGeometry: pe = !1, ...me } = s, O = t()?.getStyles() ?? null, [he, k] = te((e) => e + 1, 0);
102
+ e(C, { onAnyChange: k }), e(w ?? null, {
103
+ onBoundsChange: k,
104
+ onSelectionChange: k
105
105
  });
106
- let k = C.toJSON(), { width: A, height: j, rotation: he, content: M } = i(w), N = C.getShapeType(), ge = C.getAdjustments(), P = y(A, j), [F, I] = m(null), L = p(0);
106
+ let A = C.toJSON(), { width: j, height: M, rotation: ge, content: N } = i(w), P = C.getShapeType(), _e = C.getAdjustments(), F = b(j, M), [I, L] = p(null), R = f(0);
107
107
  u(() => {
108
- if (!P) return void I(null);
109
- let e = ++L.current, t = C.getShapeType();
110
- C.getGeometry(A, j).then((n) => {
111
- L.current === e && I(n ? {
108
+ if (!F) return void L(null);
109
+ let e = ++R.current, t = C.getShapeType();
110
+ C.getGeometry(j, M).then((n) => {
111
+ R.current === e && L(n ? {
112
112
  shapeType: t,
113
113
  geometry: n
114
114
  } : null);
115
115
  }, () => {
116
- L.current === e && I(null);
116
+ R.current === e && L(null);
117
117
  });
118
118
  }, [
119
119
  C,
120
- A,
121
120
  j,
122
- me
121
+ M,
122
+ he
123
123
  ]);
124
- let R = M?.shapeType !== void 0 && M.shapeType !== N ? M.shapeType : null, [z, _e] = m(null);
124
+ let z = N?.shapeType !== void 0 && N.shapeType !== P ? N.shapeType : null, [B, ve] = p(null);
125
125
  u(() => {
126
- if (!R || !P || z?.shapeType === R) return;
126
+ if (!z || !F || B?.shapeType === z) return;
127
127
  let e = !0;
128
- return C.getGeometry(A, j, { shapeType: R }).then((t) => {
129
- e && t && _e({
130
- shapeType: R,
128
+ return C.getGeometry(j, M, { shapeType: z }).then((t) => {
129
+ e && t && ve({
130
+ shapeType: z,
131
131
  geometry: t
132
132
  });
133
133
  }, () => {}), () => {
@@ -135,101 +135,101 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
135
135
  };
136
136
  }, [
137
137
  C,
138
- R,
139
- P
138
+ z,
139
+ F
140
140
  ]);
141
- let B = d(() => {
142
- let e = F?.shapeType === N ? F : z?.shapeType === N ? z : null;
143
- return e ? b(e.geometry, A, j)?.withAdjustments(ge) ?? null : b(F?.geometry ?? null, A, j);
141
+ let V = d(() => {
142
+ let e = I?.shapeType === P ? I : B?.shapeType === P ? B : null;
143
+ return e ? x(e.geometry, j, M)?.withAdjustments(_e) ?? null : x(I?.geometry ?? null, j, M);
144
144
  }, [
145
- F,
146
- z,
147
- N,
148
- ge,
149
- A,
150
- j
151
- ]), ve = l((e) => C.getResource(e), [C]);
145
+ I,
146
+ B,
147
+ P,
148
+ _e,
149
+ j,
150
+ M
151
+ ]), ye = l((e) => C.getResource(e), [C]);
152
152
  u(() => {
153
153
  let e = [];
154
- for (let t = w?.getParent() ?? null; t; t = t.getParent()) e.push(t.getContent().addListeners({ onAnyChange: O }));
154
+ for (let t = w?.getParent() ?? null; t; t = t.getParent()) e.push(t.getContent().addListeners({ onAnyChange: k }));
155
155
  return () => {
156
156
  for (let t of e) t();
157
157
  };
158
158
  }, [w]);
159
- let V = a(w), H = d(() => o(k, D, ve, V), [
160
- k,
161
- D,
162
- ve,
163
- V
164
- ]), [ye, U] = m(null), W = M?.adjustments === void 0 ? ye ?? void 0 : M.adjustments, G = d(() => {
165
- if (R && z?.shapeType !== R) return B;
166
- let e = R ? b(z.geometry, A, j) : B;
159
+ let be = a(w), H = d(() => o(A, O, ye, be), [
160
+ A,
161
+ O,
162
+ ye,
163
+ be
164
+ ]), [xe, U] = p(null), W = N?.adjustments === void 0 ? xe ?? void 0 : N.adjustments, G = d(() => {
165
+ if (z && B?.shapeType !== z) return V;
166
+ let e = z ? x(B.geometry, j, M) : V;
167
167
  return e && W !== void 0 ? e.withAdjustments(W) : e;
168
168
  }, [
169
- B,
170
- R,
169
+ V,
171
170
  z,
172
- A,
171
+ B,
173
172
  j,
173
+ M,
174
174
  W
175
- ]), K = p(null), [be, q] = m(!1), xe = l((e, t, n, r) => {
176
- if (r === "cancel") return K.current && (K.current = null, q(!1), E?.cancel()), void U(null);
177
- if (!G || !B) return;
175
+ ]), K = f(null), [Se, q] = p(!1), Ce = l((e, t, n, r) => {
176
+ if (r === "cancel") return K.current && (K.current = null, q(!1), D?.cancel()), void U(null);
177
+ if (!G || !V) return;
178
178
  let i = G.adjustmentsFromHandle(e, t, n);
179
179
  if (r === "move") {
180
- if (E && !S) {
180
+ if (D && !S) {
181
181
  if (!K.current) {
182
182
  let e = { adjustments: i };
183
- if (!E.start(te("op.setShapeAdjustments"), (t) => {
183
+ if (!D.start(ne("op.setShapeAdjustments"), (t) => {
184
184
  t.getContent().setAdjustments(e.adjustments);
185
185
  })) return;
186
186
  K.current = e, q(!0);
187
187
  }
188
- K.current.adjustments = i, E.preview({ content: { adjustments: i } });
188
+ K.current.adjustments = i, D.preview({ content: { adjustments: i } });
189
189
  return;
190
190
  }
191
191
  U(i);
192
192
  return;
193
193
  }
194
194
  let a = K.current;
195
- if (a) return K.current = null, q(!1), a.adjustments = i, void E?.finish();
195
+ if (a) return K.current = null, q(!1), a.adjustments = i, void D?.finish();
196
196
  U(null), S || C.setAdjustments(i);
197
197
  }, [
198
198
  G,
199
- B,
199
+ V,
200
200
  C,
201
201
  S,
202
- E
203
- ]), Se = d(() => {
202
+ D
203
+ ]), we = d(() => {
204
204
  let e = [];
205
205
  return G?.forEachHandle((t) => e.push(t)), e;
206
- }, [G]), Ce = v(c, () => ({ isShapeEditor: () => !0 }), []), we = de ?? w?.getFlip(), J = we?.horizontal ?? !1, Y = we?.vertical ?? !1, Te = he % 360 != 0, Ee = d(() => !Te && y(A, j) ? {
207
- dpr: _.getDevicePixelRatio(),
206
+ }, [G]), Te = v(c, () => ({ isShapeEditor: () => !0 }), []), Ee = fe ?? w?.getFlip(), J = Ee?.horizontal ?? !1, Y = Ee?.vertical ?? !1, De = ge % 360 != 0, Oe = d(() => !De && b(j, M) ? {
207
+ dpr: g.getDevicePixelRatio(),
208
208
  zoom: T,
209
- width: A,
210
- height: j,
209
+ width: j,
210
+ height: M,
211
211
  flipH: J,
212
212
  flipV: Y
213
213
  } : null, [
214
- Te,
214
+ De,
215
215
  T,
216
- A,
217
216
  j,
217
+ M,
218
218
  J,
219
219
  Y
220
220
  ]);
221
- if (C.isDeleted() || !k) return null;
222
- let X = ae?.pointerEvents === "none", De = X ? "none" : "visiblePainted", Oe = !X && !S && (!oe || be) && !!w?.isSelected(), ke = {
221
+ if (C.isDeleted() || !A) return null;
222
+ let X = oe?.pointerEvents === "none", ke = X ? "none" : "visiblePainted", Ae = !X && !S && (!se || Se) && !!w?.isSelected(), je = {
223
223
  transform: J || Y ? `scale(${J ? -1 : 1}, ${Y ? -1 : 1})` : void 0,
224
224
  transformOrigin: "center"
225
225
  }, Z = null;
226
- Oe && Se.length > 0 && (Z = h(re, {
227
- handles: Se,
228
- width: A,
229
- height: j,
226
+ Ae && we.length > 0 && (Z = m(y, {
227
+ handles: we,
228
+ width: j,
229
+ height: M,
230
230
  zoom: T,
231
- onDrag: xe
232
- }), ue && (Z = ne(h("div", {
231
+ onDrag: Ce
232
+ }), E && (Z = re(m("div", {
233
233
  className: "sxl-shape-adornment",
234
234
  style: {
235
235
  position: "absolute",
@@ -237,32 +237,32 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
237
237
  top: 0,
238
238
  width: "100%",
239
239
  height: "100%",
240
- ...ke,
240
+ ...je,
241
241
  pointerEvents: "none"
242
242
  },
243
243
  children: Z
244
- }), ue)));
245
- let Ae = J === Y ? void 0 : "scaleX(-1)", Q = G?.getTextRect(), $ = k.text, je = !!$ && $.paragraphs.some((e) => e.runs.some((e) => e.text !== ""));
246
- return g("div", {
244
+ }), E)));
245
+ let Me = J === Y ? void 0 : "scaleX(-1)", Q = G?.getTextRect(), $ = A.text, Ne = !!$ && $.paragraphs.some((e) => e.runs.some((e) => e.text !== ""));
246
+ return h("div", {
247
247
  className: "sxl-shape-editor",
248
- ...pe,
249
- ref: Ce,
248
+ ...me,
249
+ ref: Te,
250
250
  style: {
251
251
  width: "100%",
252
252
  height: "100%",
253
253
  position: "relative",
254
254
  overflow: "visible",
255
255
  filter: S ? "blur(1px)" : void 0,
256
- ...ke,
257
- ...ae,
256
+ ...je,
257
+ ...oe,
258
258
  pointerEvents: "none"
259
259
  },
260
260
  children: [
261
- y(A, j) ? g("svg", {
261
+ b(j, M) ? h("svg", {
262
262
  className: "sxl-shape-geometry",
263
- viewBox: `0 0 ${A > 0 ? A : 1 / T} ${j > 0 ? j : 1 / T}`,
264
- width: A > 0 ? "100%" : "1px",
265
- height: j > 0 ? "100%" : "1px",
263
+ viewBox: `0 0 ${j > 0 ? j : 1 / T} ${M > 0 ? M : 1 / T}`,
264
+ width: j > 0 ? "100%" : "1px",
265
+ height: M > 0 ? "100%" : "1px",
266
266
  preserveAspectRatio: "none",
267
267
  overflow: "visible",
268
268
  style: {
@@ -271,35 +271,35 @@ 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: Ae ? `drop-shadow(1px 1px 2px ${_("color-shadow")})` : void 0
275
275
  },
276
- children: [G ? h(ee, {
276
+ children: [G ? m(ee, {
277
277
  geometry: G,
278
278
  style: H,
279
279
  zoom: T,
280
- grid: Ee,
281
- hit: De
282
- }) : null, fe && G && Q ? g("g", {
280
+ grid: Oe,
281
+ hit: ke
282
+ }) : null, pe && G && Q ? h("g", {
283
283
  pointerEvents: "none",
284
- children: [h("rect", {
284
+ children: [m("rect", {
285
285
  x: Q.l,
286
286
  y: Q.t,
287
287
  width: Math.max(0, Q.r - Q.l),
288
288
  height: Math.max(0, Q.b - Q.t),
289
289
  fill: "none",
290
- stroke: "#c00",
290
+ stroke: _("color-error"),
291
291
  strokeWidth: 1 / T,
292
292
  strokeDasharray: `${4 / T} ${2 / T}`
293
- }), ie(G).map((e) => h("rect", {
293
+ }), ie(G).map((e) => m("rect", {
294
294
  x: e.x - 3 / T,
295
295
  y: e.y - 3 / T,
296
296
  width: 6 / T,
297
297
  height: 6 / T,
298
- fill: "#0a0"
298
+ fill: _("color-success")
299
299
  }, e.index))]
300
300
  }) : null]
301
301
  }) : null,
302
- je && Q ? h("div", {
302
+ Ne && Q ? m("div", {
303
303
  className: "sxl-shape-text-frame",
304
304
  style: {
305
305
  position: "absolute",
@@ -308,12 +308,12 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
308
308
  width: Math.max(0, Q.r - Q.l),
309
309
  height: Math.max(0, Q.b - Q.t),
310
310
  zoom: T,
311
- transform: Ae,
311
+ transform: Me,
312
312
  transformOrigin: "center",
313
313
  pointerEvents: X ? "none" : "auto",
314
314
  color: H.textColor ?? void 0
315
315
  },
316
- children: h(n, {
316
+ children: m(n, {
317
317
  movable: w,
318
318
  disabled: !0,
319
319
  style: {
@@ -326,9 +326,9 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
326
326
  padding: 0,
327
327
  overflow: "hidden"
328
328
  },
329
- children: h(r, {
329
+ children: m(r, {
330
330
  text: $,
331
- styles: D,
331
+ styles: O,
332
332
  color: H.textColor
333
333
  })
334
334
  })
@@ -337,5 +337,5 @@ var y = (e, t) => e > 0 || t > 0, b = (e, t, n) => !e || e.getWidth() === t && e
337
337
  ]
338
338
  });
339
339
  }));
340
- x.displayName = "ShapeEditor";
341
- export { x as t };
340
+ ae.displayName = "ShapeEditor";
341
+ export { ae as 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.23
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.23
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.23
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 "./CruGvs0fdtWWO_Di.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.23
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.23
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.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
@@ -199,7 +199,7 @@ var _ = (e) => {
199
199
  for (let t of e.pts) r.push(t);
200
200
  }
201
201
  return o(), k(n.cmds);
202
- }, P = /* @__PURE__ */ new WeakMap(), F = { filter: "var(--sxl-image-filter)" }, I = (e) => {
202
+ }, P = /* @__PURE__ */ new WeakMap(), F = { filter: "var(--_sxl-image-filter)" }, I = (e) => {
203
203
  let [t, n] = u(null);
204
204
  return s(() => {
205
205
  if (!e) return;
@@ -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.23
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 "./BG96UT5-ooOuigD0.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("./B1rKvYmr4ynvDkqM.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./B1qMCa-WDnmPYR_C.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./DQ5DeFNj_0mj6QMd.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./CD5gjg2DVLsy6h33.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("./BN7pckCvCRZMPCmK.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.23
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.23
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula