@sheetxl/react 0.8.0-beta.1 → 0.8.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/esm/BHjeSMaycUkS5dVL.mjs +66 -0
- package/browser/esm/BZcQ-KYwS62Ut45c.mjs +20 -0
- package/browser/esm/Bow9CzRJrYxak2i5.mjs +318 -0
- package/browser/esm/BuvXl14hs-1CvjeA.mjs +2706 -0
- package/browser/esm/BwRduT8FTrk5n72r.mjs +32 -0
- package/browser/esm/C6urN77szrYwODXF.mjs +134 -0
- package/browser/esm/CYMRbtPIr6SklGpp.mjs +775 -0
- package/browser/esm/CYoUd5KIl7W3AsxH.mjs +196 -0
- package/browser/esm/Cfe0kofqVKGxLqO6.mjs +31 -0
- package/browser/esm/CiRN-woJZWYOgTn4.mjs +36 -0
- package/browser/esm/Dd-ZybXAgoq9pgGv.mjs +45 -0
- package/browser/esm/DjiBz4H74I6nPUY6.mjs +79 -0
- package/browser/esm/DyU9UInRnfkPYYlR.mjs +63 -0
- package/browser/esm/J8cPagZBeXz86Lnd.mjs +777 -0
- package/browser/esm/Sp6PJavGKpF8SJzA.mjs +75 -0
- package/browser/esm/cYjYjqEsyd63x8t4.mjs +67 -0
- package/browser/esm/chart.mjs +60 -0
- package/browser/esm/control.mjs +216 -0
- package/browser/esm/group.mjs +123 -0
- package/browser/esm/index.mjs +14070 -9138
- package/browser/esm/note.mjs +86 -0
- package/browser/esm/picture.mjs +86 -0
- package/{node/esm/DAE_NG8D9uT50zUH.mjs → browser/esm/shape.mjs} +2 -4
- package/browser/esm/slicer.mjs +276 -0
- package/licenses/dependencies.txt +6 -599
- package/node/esm/BJ7ZZm63j5O6cvrB.mjs +134 -0
- package/node/esm/BfRn5S5V4X8xIAEa.mjs +20 -0
- package/node/esm/BpwE3HqTnrLLzE3C.mjs +775 -0
- package/node/esm/Buw-VKYJy3y5dbaJ.mjs +197 -0
- package/node/esm/CFFlJxNwgyInjEnh.mjs +45 -0
- package/node/esm/CM5BT7h-hMtST2bE.mjs +2706 -0
- package/node/esm/CV3bT3Hql74GcHoU.mjs +37 -0
- package/node/esm/C_ANM4feA1xV-pri.mjs +32 -0
- package/node/esm/D3YXHeOyFp00Xk3m.mjs +323 -0
- package/node/esm/DPN0n6MGYQ9vZ2KO.mjs +80 -0
- package/node/esm/DYosMUJKp-3MSO4q.mjs +76 -0
- package/node/esm/DhSq680c5tgMFFbj.mjs +68 -0
- package/node/esm/Dxbm6ryIDCEi26RO.mjs +66 -0
- package/node/esm/GkmuxU7OwRZtm2Rf.mjs +63 -0
- package/node/esm/chart.mjs +60 -0
- package/node/esm/control.mjs +216 -0
- package/node/esm/group.mjs +123 -0
- package/node/esm/index.mjs +16618 -11534
- package/node/esm/note.mjs +87 -0
- package/node/esm/picture.mjs +86 -0
- package/node/esm/shape.mjs +783 -0
- package/node/esm/slicer.mjs +278 -0
- package/package.json +53 -14
- package/resources/contents.json +18 -0
- package/resources/locales/contents.json +42 -0
- package/resources/locales/de/movable.cmd.json +154 -0
- package/resources/locales/de/picture.cmd.json +31 -0
- package/resources/locales/de/selection.cmd.json +8 -0
- package/resources/locales/de/shape.cmd.json +17 -0
- package/resources/locales/de/sheet.cmd.json +328 -21
- package/resources/locales/de/slicer.cmd.json +17 -0
- package/resources/locales/de/table.cmd.json +9 -1
- package/resources/locales/de/ui.msg.json +309 -3
- package/resources/locales/de/workbook.cmd.json +10 -6
- package/resources/locales/en/movable.cmd.json +154 -0
- package/resources/locales/en/picture.cmd.json +31 -0
- package/resources/locales/en/selection.cmd.json +8 -0
- package/resources/locales/en/shape.cmd.json +17 -0
- package/resources/locales/en/sheet.cmd.json +342 -22
- package/resources/locales/en/slicer.cmd.json +17 -0
- package/resources/locales/en/table.cmd.json +9 -1
- package/resources/locales/en/ui.msg.json +309 -3
- package/resources/locales/en/workbook.cmd.json +11 -7
- package/types/chart.d.ts +2 -0
- package/types/control.d.ts +2 -0
- package/types/group.d.ts +2 -0
- package/types/note.d.ts +2 -0
- package/types/picture.d.ts +2 -0
- package/types/shape.d.ts +2 -0
- package/types/slicer.d.ts +2 -0
- package/types/src/annotation/RangeAnnotations.d.ts +119 -0
- package/types/src/annotation/index.d.ts +2 -0
- package/types/src/autoFill/AutoFillPresets.d.ts +14 -0
- package/types/src/autoFill/FillMenu.d.ts +36 -0
- package/types/src/autoFill/FillSeries.d.ts +38 -0
- package/types/src/autoFill/index.d.ts +4 -0
- package/types/src/border/StaticBorderRenderer.d.ts +2 -2
- package/types/src/border/useBorders.d.ts +7 -7
- package/types/src/cell/CornerTriangle.d.ts +6 -0
- package/types/src/cell/FormulaCellRenderer.d.ts +1 -1
- package/types/src/cell/OutlineButton.d.ts +123 -0
- package/types/src/cell/SheetCellRenderer.d.ts +2 -2
- package/types/src/cell/SheetHeaderRenderer.d.ts +5 -0
- package/types/src/cell/StaticCellRenderer.d.ts +57 -0
- package/types/src/cell/index.d.ts +2 -0
- package/types/src/cell/useFormulaViewAnchor.d.ts +1 -1
- package/types/src/chart/index.d.ts +0 -1
- package/types/src/checklist/ValueChecklist.d.ts +112 -0
- package/types/src/checklist/index.d.ts +2 -0
- package/types/src/commands/ContextualToolbar.d.ts +19 -0
- package/types/src/commands/createTransactionalMiddleware.d.ts +4 -1
- package/types/src/commands/index.d.ts +1 -0
- package/types/src/comment/CommentCardRequest.d.ts +94 -0
- package/types/src/comment/CommentUtils.d.ts +43 -0
- package/types/src/comment/NoteEditor.d.ts +20 -0
- package/types/src/comment/index.d.ts +5 -0
- package/types/src/comment/useCommentThread.d.ts +37 -0
- package/types/src/comment/useSheetComments.d.ts +28 -0
- package/types/src/{sheet → conditionalFormat}/ConditionalFormatPresets.d.ts +6 -6
- package/types/src/conditionalFormat/index.d.ts +1 -0
- package/types/src/control/FormControlRenderers.d.ts +22 -0
- package/types/src/editor/FunctionPreviewPanel.d.ts +15 -1
- package/types/src/editor/NamedItemLabel.d.ts +29 -0
- package/types/src/editor/NamedItemsPanel.d.ts +13 -2
- package/types/src/editor/SheetCellEditorLayer.d.ts +3 -7
- package/types/src/editor/SheetCellEditorStartLayer.d.ts +44 -0
- package/types/src/editor/SheetCellInput.d.ts +26 -2
- package/types/src/editor/SheetEditable.d.ts +8 -2
- package/types/src/editor/formulaCaret.d.ts +39 -10
- package/types/src/editor/formulaEval.d.ts +9 -5
- package/types/src/editor/formulaLint.d.ts +36 -0
- package/types/src/editor/formulaPresentation.d.ts +7 -0
- package/types/src/editor/formulaText.d.ts +17 -5
- package/types/src/editor/functionArgs.d.ts +20 -0
- package/types/src/editor/index.d.ts +4 -1
- package/types/src/editor/pickedReference.d.ts +76 -0
- package/types/src/editor/useEditRejectedNotice.d.ts +32 -0
- package/types/src/editor/useFormulaHints.d.ts +93 -3
- package/types/src/editor/useFormulaInput.d.ts +30 -4
- package/types/src/editor/useReferenceMode.d.ts +12 -0
- package/types/src/editor/validationAlert.d.ts +24 -0
- package/types/src/externalLink/ExternalLinksPaneArgs.d.ts +23 -0
- package/types/src/externalLink/index.d.ts +2 -0
- package/types/src/form/FormulaInput.d.ts +18 -2
- package/types/src/form/FormulaInputParts.d.ts +10 -1
- package/types/src/form/useEditCommit.d.ts +23 -3
- package/types/src/form/useInputField.d.ts +2 -3
- package/types/src/frame/CommandContext.d.ts +188 -6
- package/types/src/group/GroupEditor.d.ts +25 -0
- package/types/src/index.d.ts +12 -2
- package/types/src/io/WorkbookIO.d.ts +2 -0
- package/types/src/layer/CellErrorLayer.d.ts +24 -7
- package/types/src/layer/CommentCardLayer.d.ts +43 -0
- package/types/src/layer/CommentsLayer.d.ts +35 -0
- package/types/src/layer/ConditionalIcons.d.ts +4 -4
- package/types/src/layer/FreezeDragLines.d.ts +17 -0
- package/types/src/layer/GridFreezeLayer.d.ts +11 -0
- package/types/src/layer/HeaderFreezeLayer.d.ts +12 -0
- package/types/src/layer/HeaderResizerLayer.d.ts +2 -1
- package/types/src/layer/HyperlinkLayer.d.ts +109 -0
- package/types/src/layer/MovableKindScope.d.ts +17 -0
- package/types/src/layer/ProtectionLayer.d.ts +52 -0
- package/types/src/layer/RangeAnnotationLayer.d.ts +71 -0
- package/types/src/layer/ResizeIndicator.d.ts +9 -8
- package/types/src/layer/ResizeTooltip.d.ts +13 -0
- package/types/src/layer/SheetHeaderCellLayer.d.ts +10 -1
- package/types/src/layer/SheetOutlineLayer.d.ts +40 -0
- package/types/src/layer/TableLayer.d.ts +5 -4
- package/types/src/layer/TableToolbar.d.ts +42 -0
- package/types/src/layer/ValidationDropdownLayer.d.ts +15 -5
- package/types/src/layer/ValidationIndicatorLayer.d.ts +9 -3
- package/types/src/layer/ValidationPromptLayer.d.ts +64 -0
- package/types/src/layer/_tableColor.d.ts +4 -0
- package/types/src/layer/cellTip.d.ts +13 -0
- package/types/src/layer/freezeDragState.d.ts +21 -0
- package/types/src/layer/index.d.ts +12 -1
- package/types/src/layer/resizeIndicatorState.d.ts +3 -1
- package/types/src/layer/useFreezeDrag.d.ts +22 -0
- package/types/src/layer/useValidationPicker.d.ts +35 -35
- package/types/src/layer/validationMark.d.ts +63 -0
- package/types/src/listener/useModelListener.d.ts +4 -4
- package/types/src/movable/ConnectionSites.d.ts +18 -0
- package/types/src/movable/IMovableArea.d.ts +56 -0
- package/types/src/movable/MovableAdornment.d.ts +26 -0
- package/types/src/movable/MovableCommandGroups.d.ts +40 -0
- package/types/src/movable/MovableCommands.d.ts +6 -1
- package/types/src/movable/MovableControl.d.ts +78 -0
- package/types/src/movable/MovableEdit.d.ts +22 -0
- package/types/src/movable/MovableFrame.d.ts +16 -13
- package/types/src/movable/MovableLayer.d.ts +25 -7
- package/types/src/movable/MovableRenderers.d.ts +210 -0
- package/types/src/movable/PlaceholderFrames.d.ts +11 -0
- package/types/src/movable/RotateHandle.d.ts +37 -0
- package/types/src/movable/TextBox.d.ts +34 -0
- package/types/src/movable/connect.d.ts +16 -0
- package/types/src/movable/framePlacement.d.ts +72 -0
- package/types/src/movable/geometry.d.ts +61 -0
- package/types/src/movable/index.d.ts +10 -0
- package/types/src/movable/pressTarget.d.ts +20 -0
- package/types/src/picker/PickerPanel.d.ts +52 -0
- package/types/src/picker/cellPickerOpen.d.ts +6 -0
- package/types/src/picker/index.d.ts +4 -0
- package/types/src/picker/useCellPicker.d.ts +95 -0
- package/types/src/picture/PictureCommands.d.ts +12 -0
- package/types/src/picture/PictureKind.d.ts +7 -0
- package/types/src/picture/index.d.ts +0 -1
- package/types/src/protection/ProtectionPaneArgs.d.ts +31 -0
- package/types/src/protection/index.d.ts +3 -0
- package/types/src/protection/unlockProtectedRanges.d.ts +23 -0
- package/types/src/richText/RichTextEditor.d.ts +41 -0
- package/types/src/richText/index.d.ts +2 -0
- package/types/src/selection/SheetSelectionLayer.d.ts +14 -10
- package/types/src/shape/ConnectorControl.d.ts +46 -0
- package/types/src/shape/ShapeCommands.d.ts +11 -0
- package/types/src/shape/ShapeControl.d.ts +8 -0
- package/types/src/shape/ShapeEditor.d.ts +15 -2
- package/types/src/shape/ShapeGallery.d.ts +31 -0
- package/types/src/shape/ShapeHandles.d.ts +28 -0
- package/types/src/shape/ShapeKind.d.ts +7 -0
- package/types/src/shape/ShapeSVG.d.ts +22 -0
- package/types/src/shape/ShapeText.d.ts +17 -0
- package/types/src/shape/icons/ShapeIcons.d.ts +16 -0
- package/types/src/shape/icons/_ShapeIconPack.d.ts +4 -0
- package/types/src/shape/index.d.ts +3 -1
- package/types/src/shape/shapeFrame.d.ts +50 -0
- package/types/src/shape/shapeStyle.d.ts +82 -0
- package/types/src/sheet/ISheetElement.d.ts +62 -65
- package/types/src/sheet/SheetCommandProvider.d.ts +9 -4
- package/types/src/sheet/SheetCommands.d.ts +21 -6
- package/types/src/sheet/SheetOutlineElement.d.ts +70 -0
- package/types/src/sheet/SheetScrollbar.d.ts +1 -10
- package/types/src/sheet/_freezeAt.d.ts +10 -0
- package/types/src/sheet/_useHeaderMetrics.d.ts +11 -0
- package/types/src/sheet/circularReferences.d.ts +9 -1
- package/types/src/sheet/index.d.ts +1 -1
- package/types/src/sheet/useCycleHighlight.d.ts +21 -0
- package/types/src/slicer/SlicerCommands.d.ts +10 -0
- package/types/src/slicer/SlicerEditor.d.ts +8 -2
- package/types/src/slicer/SlicerKind.d.ts +7 -0
- package/types/src/slicer/SlicerStylePreview.d.ts +18 -0
- package/types/src/slicer/index.d.ts +2 -1
- package/types/src/slicer/slicerStyles.d.ts +32 -0
- package/types/src/tabStrip/TabStrip.d.ts +7 -0
- package/types/src/taskPane/ITaskPane.d.ts +12 -1
- package/types/src/taskPane/MovablePane.d.ts +17 -0
- package/types/src/taskPane/index.d.ts +1 -0
- package/types/src/theme/ThemeState.d.ts +14 -1
- package/types/src/theme/useGridColorScheme.d.ts +1 -1
- package/types/src/workbook/DefaultMovableRenderers.d.ts +20 -0
- package/types/src/workbook/IWorkbookElement.d.ts +24 -0
- package/types/src/workbook/WorkbookCommands.d.ts +2 -4
- package/types/src/workbook/WorkbookStrip.d.ts +9 -0
- package/types/src/workbook/_followOrigin.d.ts +9 -0
- package/types/src/workbook/useWorkbookFormat.d.ts +3 -3
- package/browser/cjs/Bo9Kx3L_XQkGPBJ5.cjs +0 -1
- package/browser/cjs/Pl04-kDEQSO8_qFU.cjs +0 -156
- package/browser/cjs/index.cjs +0 -35
- package/browser/esm/SJMJzBwlXTJ9QIO5.mjs +0 -6286
- package/types/src/editor/useProtectedEditNotice.d.ts +0 -14
- package/types/src/layer/validationList.d.ts +0 -84
- package/types/src/list/SheetValueList.d.ts +0 -93
- package/types/src/list/index.d.ts +0 -2
- package/types/src/movable/MoveableBundle.d.ts +0 -4
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.10
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { Color as e, IFill as t, IFont as i, ITextFrame as r, ShapeStyleUtils as n } from "@sheetxl/sdk";
|
|
8
|
+
import { memo as l, useMemo as o } from "react";
|
|
9
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
10
|
+
var p = (i, r) => {
|
|
11
|
+
let n = r;
|
|
12
|
+
if (r && "object" == typeof r) {
|
|
13
|
+
const e = r;
|
|
14
|
+
if (e.type === t.Type.None) return "transparent";
|
|
15
|
+
if (e.type === t.Type.Solid) n = e.color;
|
|
16
|
+
else if (e.type === t.Type.Pattern) n = e.foreground;
|
|
17
|
+
else if (e.type === t.Type.Gradient) {
|
|
18
|
+
const t = e.stops?.[0];
|
|
19
|
+
n = "string" == typeof t ? t : t?.color;
|
|
20
|
+
} else n = void 0;
|
|
21
|
+
}
|
|
22
|
+
if ("string" == typeof n && n) try {
|
|
23
|
+
return (i ? i.parseColor(n) : new e(n))?.toCSS("adaptive") ?? void 0;
|
|
24
|
+
} catch {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
}, c = {
|
|
28
|
+
top: "flex-start",
|
|
29
|
+
center: "center",
|
|
30
|
+
bottom: "flex-end",
|
|
31
|
+
justify: "space-between",
|
|
32
|
+
distributed: "space-around"
|
|
33
|
+
}, d = {
|
|
34
|
+
left: "left",
|
|
35
|
+
center: "center",
|
|
36
|
+
right: "right",
|
|
37
|
+
justify: "justify",
|
|
38
|
+
justifyLow: "justify",
|
|
39
|
+
distributed: "justify",
|
|
40
|
+
thaiDistributed: "justify"
|
|
41
|
+
}, f = {
|
|
42
|
+
left: 9.6,
|
|
43
|
+
top: 4.8,
|
|
44
|
+
right: 9.6,
|
|
45
|
+
bottom: 4.8
|
|
46
|
+
}, g = (e, t) => e ? "percent" in e ? e.percent / 100 * 1.2 : `${e.points}pt` : t, h = (e, t, r) => {
|
|
47
|
+
const n = [];
|
|
48
|
+
t.underline && "none" !== t.underline && n.push("underline"), t.strike && "none" !== t.strike && n.push("line-through");
|
|
49
|
+
const l = t.font?.family ?? t.font?.fallbacks?.[0];
|
|
50
|
+
return {
|
|
51
|
+
fontSize: "number" == typeof t.size ? `${t.size}pt` : void 0,
|
|
52
|
+
fontWeight: t.weight,
|
|
53
|
+
fontStyle: t.style === i.Style.Italic ? "italic" : void 0,
|
|
54
|
+
textDecoration: n.length ? n.join(" ") : void 0,
|
|
55
|
+
fontFamily: l,
|
|
56
|
+
color: p(e, t.color) ?? r ?? void 0,
|
|
57
|
+
letterSpacing: "number" == typeof t.letterSpacing ? `${t.letterSpacing}pt` : void 0,
|
|
58
|
+
verticalAlign: "number" == typeof t.baseline && 0 !== t.baseline ? `${t.baseline}%` : void 0,
|
|
59
|
+
fontVariant: "small" === t.capitals ? "small-caps" : void 0,
|
|
60
|
+
textTransform: "all" === t.capitals ? "uppercase" : void 0,
|
|
61
|
+
backgroundColor: t.highlight ? p(e, t.highlight) : void 0
|
|
62
|
+
};
|
|
63
|
+
}, u = l(({ text: e, styles: t, color: i }) => {
|
|
64
|
+
const l = e.body, p = {
|
|
65
|
+
...f,
|
|
66
|
+
...l?.insets
|
|
67
|
+
}, u = e.listStyle?.levels?.[0] ?? e.listStyle?.default, v = o(() => ({
|
|
68
|
+
display: "flex",
|
|
69
|
+
flexDirection: "column",
|
|
70
|
+
justifyContent: c[l?.anchor ?? "top"],
|
|
71
|
+
alignItems: l?.anchorCenter ? "center" : "stretch",
|
|
72
|
+
boxSizing: "border-box",
|
|
73
|
+
width: "100%",
|
|
74
|
+
height: "100%",
|
|
75
|
+
padding: `${p.top}px ${p.right}px ${p.bottom}px ${p.left}px`,
|
|
76
|
+
whiteSpace: "none" === l?.wrap ? "pre" : "pre-wrap",
|
|
77
|
+
overflowX: (l?.horizontalOverflow ?? n.TEXT_DEFAULTS.horizontalOverflow) === r.Overflow.Visible ? "visible" : "hidden",
|
|
78
|
+
overflowY: (l?.verticalOverflow ?? n.TEXT_DEFAULTS.verticalOverflow) === r.Overflow.Visible ? "visible" : "hidden",
|
|
79
|
+
fontSize: `${n.TEXT_DEFAULTS.size}pt`,
|
|
80
|
+
writingMode: l?.vertical === r.WritingMode.Vertical || l?.vertical === r.WritingMode.EastAsianVertical ? "vertical-rl" : l?.vertical === r.WritingMode.Vertical270 ? "vertical-lr" : void 0,
|
|
81
|
+
color: i ?? void 0
|
|
82
|
+
}), [
|
|
83
|
+
l,
|
|
84
|
+
p.top,
|
|
85
|
+
p.right,
|
|
86
|
+
p.bottom,
|
|
87
|
+
p.left,
|
|
88
|
+
i
|
|
89
|
+
]);
|
|
90
|
+
return a("div", {
|
|
91
|
+
className: "shape-text",
|
|
92
|
+
style: v,
|
|
93
|
+
children: e.paragraphs.map((r, n) => {
|
|
94
|
+
const l = r.level ? e.listStyle?.levels?.[r.level] : u, o = {
|
|
95
|
+
...l?.defaultRun,
|
|
96
|
+
...r.defaultRun
|
|
97
|
+
}, p = r.bullet ?? l?.bullet, c = {
|
|
98
|
+
textAlign: d[r.align ?? l?.align ?? "left"],
|
|
99
|
+
marginLeft: r.marginLeft ?? l?.marginLeft,
|
|
100
|
+
marginRight: r.marginRight ?? l?.marginRight,
|
|
101
|
+
textIndent: r.indent ?? l?.indent,
|
|
102
|
+
marginTop: g(r.spaceBefore, void 0),
|
|
103
|
+
marginBottom: g(r.spaceAfter, void 0),
|
|
104
|
+
lineHeight: g(r.lineSpacing, 1.2),
|
|
105
|
+
minHeight: "1.2em",
|
|
106
|
+
direction: r.rightToLeft ? "rtl" : void 0,
|
|
107
|
+
...h(t, o, void 0)
|
|
108
|
+
}, f = r.runs.length ? r.runs : r.endRun ? [{
|
|
109
|
+
text: "",
|
|
110
|
+
...r.endRun
|
|
111
|
+
}] : [];
|
|
112
|
+
return s("div", {
|
|
113
|
+
className: "shape-paragraph",
|
|
114
|
+
style: c,
|
|
115
|
+
children: ["char" === p?.type && p.char ? a("span", {
|
|
116
|
+
style: { marginRight: "0.4em" },
|
|
117
|
+
children: p.char
|
|
118
|
+
}) : null, f.map((e, r) => {
|
|
119
|
+
if ("\n" === e.text) return a("br", {}, r);
|
|
120
|
+
const { text: n, field: l, ...s } = e;
|
|
121
|
+
return a("span", {
|
|
122
|
+
style: h(t, {
|
|
123
|
+
...o,
|
|
124
|
+
...s
|
|
125
|
+
}, i),
|
|
126
|
+
children: n
|
|
127
|
+
}, r);
|
|
128
|
+
})]
|
|
129
|
+
}, n);
|
|
130
|
+
})
|
|
131
|
+
});
|
|
132
|
+
});
|
|
133
|
+
u.displayName = "ShapeText";
|
|
134
|
+
export { u as t };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.10
|
|
3
|
+
*
|
|
4
|
+
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
import { createContext as r, useContext as t } from "react";
|
|
8
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
9
|
+
var n = r(null);
|
|
10
|
+
function o(r) {
|
|
11
|
+
const { sheet: t, children: o } = r;
|
|
12
|
+
return e(n.Provider, {
|
|
13
|
+
value: t,
|
|
14
|
+
children: o
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
function i() {
|
|
18
|
+
return t(n);
|
|
19
|
+
}
|
|
20
|
+
export { i as n, o as t };
|