@sheetxl/studio-mui 0.8.0-beta.22 → 0.8.0-beta.24
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/{BKwBJsEKNY-Zg8CB.mjs → 7XEGWIttcSbBYq6X.mjs} +2 -2
- package/browser/esm/{C-rODYmI2nVNJxkV.mjs → B1J7-fSJd96S5STt.mjs} +2 -2
- package/browser/esm/{DrMsUvIwtq9dARmW.mjs → B1zJHbp6G6TTKTQC.mjs} +4 -4
- package/browser/esm/{ov0v-5BfNGRojfXZ.mjs → B2MwSeVQb2zWJrzL.mjs} +2 -2
- package/browser/esm/{CgtckX24zzJUIsPm.mjs → BFHH6tVY4R0lMIqf.mjs} +4 -4
- package/browser/esm/{CJlwai18BnsJScjr.mjs → BL4fyBwHouOSUlzC.mjs} +2 -2
- package/browser/esm/{Dq5jd89jluXcrOEE.mjs → BNOxvik6-Q4nIApA.mjs} +5 -5
- package/browser/esm/{CzhTxHyYCZp4qxKC.mjs → BNvNGU2n7yyZVKIy.mjs} +119 -116
- package/browser/esm/{D26ZjloyA6kyqhCO.mjs → BQ3aYpDVa6A3J9Xt.mjs} +2 -2
- package/browser/esm/{CuL7ggWqWMgPSTYd.mjs → BRsCZxrGyyA6h8T6.mjs} +1 -1
- package/browser/esm/{DQbt4DNrmq-Uhlgk.mjs → BWucl1RV8CJYTcpt.mjs} +8 -8
- package/browser/esm/{vsSZOEJBDfjVM46M.mjs → BY0yBoZ7AzI567Ps.mjs} +2 -2
- package/browser/esm/{C1F9o-e9q6m9MuOd.mjs → B_nraJQRTCR3eak_.mjs} +727 -734
- package/browser/esm/{h0wby0g03NYV4-XW.mjs → BaWzcy1PPng1FJin.mjs} +5 -5
- package/browser/esm/{CtNLEdf5v8pGcG3C.mjs → Bb3HM5mmBw-8OoNR.mjs} +2 -2
- package/browser/esm/{CSgrMpZ0rZKxXZyj.mjs → BfMULAFm959ZLHOe.mjs} +4 -4
- package/browser/esm/{BfiIvcOXqUoxIFoz.mjs → BgnjNV3VdjlTw94C.mjs} +2 -2
- package/browser/esm/{DkWzWQNmOvX1iJXV.mjs → Bk9tzJOoqxzTMQKv.mjs} +2 -2
- package/browser/esm/{BChPnCMzvz7cXxgX.mjs → Bpulk50Ex6FGKiwF.mjs} +2 -2
- package/browser/esm/{DaCPqL3R4JLbgfKh.mjs → Brk8Ndnu-yN80ETp.mjs} +2 -2
- package/browser/esm/{BOlLywIc0l3AgTeQ.mjs → BuJdDEM4YeYxoQ01.mjs} +3 -3
- package/browser/esm/{D3H9iUvXD2rOEXUz.mjs → BzTlI18P6oo1vgFo.mjs} +3 -3
- package/browser/esm/{IrJcYpXt_8rkAXkj.mjs → C0OOFFzZRgT8CBIp.mjs} +3 -3
- package/browser/esm/{Df0ygc7YMQG-3ATr.mjs → C2Uy5KAk1EpXx_wk.mjs} +1 -1
- package/browser/esm/{DEMQ4FkP_kNZF_wE.mjs → C2w9aGKwb08u3Ez7.mjs} +1 -1
- package/browser/esm/{BuAIHmOwBspXtuLo.mjs → C7orP4YoHT-eSyfn.mjs} +4 -4
- package/browser/esm/{COFmQH3tB3uvu0v4.mjs → CBMDjcxw8rlrNKnj.mjs} +1 -1
- package/browser/esm/{CwBN8jwNndijQgmx.mjs → CD4IYmiQX8A97dEr.mjs} +1 -1
- package/browser/esm/{dAjSLtkpLCkJDkhU.mjs → CEtIRobAbbsiZfrZ.mjs} +1 -1
- package/browser/esm/{CXvLc2JRNpJ9CiWw.mjs → CMajJZaC8s1_eSEC.mjs} +3 -3
- package/browser/esm/{C1tObUn9YlTLNn25.mjs → CguVBBZwZ618NlE6.mjs} +2 -2
- package/browser/esm/{DqFTGLVzd9DQ8EhO.mjs → Cj9TPVpIkIYcy70d.mjs} +21 -21
- package/browser/esm/{B73fvq9CvO4zWnAU.mjs → ClQF_ptVGM5B66xW.mjs} +3 -3
- package/browser/esm/{B_N6a3iKw4osibIz.mjs → CpC0uo2M0Dai7AiA.mjs} +1 -1
- package/browser/esm/{veW5ER4LND6O438J.mjs → Cq0vzuugOpnZM8QA.mjs} +1 -1
- package/browser/esm/{Dqa4YY-GeaELqOWP.mjs → CrTiob4GyK7RSm2j.mjs} +2 -2
- package/browser/esm/{Df13XIFEDDEusmq6.mjs → D1altjJlQetHB62D.mjs} +2 -2
- package/browser/esm/{C-LSHx-5EgUmc44h.mjs → D80enC00cXoSVJra.mjs} +6 -6
- package/browser/esm/{t7Y081CM2JBXwlh-.mjs → DD4IfoI_4c8kxYdT.mjs} +1 -1
- package/browser/esm/{De5GPX3SbEvetD0y.mjs → DK7jTimU_43Q6WwS.mjs} +1 -1
- package/browser/esm/{PujeLGgr7jXdyoVl.mjs → DKsw1VYfCTtYGlop.mjs} +1 -1
- package/browser/esm/{Dt3cLYWyjIUhoGv5.mjs → DPGrdFumR1i6zBRq.mjs} +2 -2
- package/browser/esm/{94tsNi06fbT_N5QP.mjs → DR0M8Ps9UHTIyyDI.mjs} +1 -1
- package/browser/esm/{UkGnqCkXqASlUdkb.mjs → DUmQjo4XoGeyakLY.mjs} +4 -4
- package/browser/esm/{4fBGyv6A2TxumCq-.mjs → DWv41FDs4YkqZkyJ.mjs} +1 -1
- package/browser/esm/{BYtWtukbMjjvrpmO.mjs → DZZC-Nkfq6DDLJ1n.mjs} +4 -4
- package/browser/esm/{DXRtL-ZwbSMLfMWu.mjs → DgDOmvY1hlDC7lat.mjs} +1 -1
- package/browser/esm/{CoVFWmiy6hWV8rPy.mjs → DhusV9FVUjYDlVj1.mjs} +4 -4
- package/browser/esm/{DdyE9R4gSZNhRZb0.mjs → DlICPyHPAt2vB9TF.mjs} +5 -5
- package/browser/esm/{DNdSq8U8iqBPrwOo.mjs → DptpTirYcok-s9Ek.mjs} +1 -1
- package/browser/esm/{es5d1Dk1vs-XYLkm.mjs → DyP2IhUq_LBuTK7x.mjs} +2 -2
- package/browser/esm/{CqmCCdvSBl4ksHpK.mjs → DzDvnHxGXipk_479.mjs} +4 -4
- package/browser/esm/{C3lvgNO_MVml-Awy.mjs → OqwpjZkr-pRhQuZV.mjs} +2 -2
- package/browser/esm/{CMPdCzAvGvFQ_NOu.mjs → SOW_dQWWWJ-cOnDw.mjs} +1 -1
- package/browser/esm/{DB44ddihGazQSGaZ.mjs → bdmGALeUgD9fyDGM.mjs} +1 -1
- package/browser/esm/{eA3xhEFzK_Y-f3m3.mjs → fz_FDlw054tjwa-c.mjs} +5 -5
- package/browser/esm/index.mjs +21 -19
- package/browser/esm/{DCjDYZjRl7IH3hl7.mjs → j-Z9J_LlODLEkT7p.mjs} +1 -1
- package/browser/esm/{BhT_uJEPxlXpMzZA.mjs → kp1nDU5guLdBB4_i.mjs} +8 -8
- package/browser/esm/{CStCc2wP7hmm92t1.mjs → tKnZpMJpv_nVyFCW.mjs} +2 -2
- package/licenses/dependencies.txt +34 -34
- package/node/esm/{bXPPrX3OxYcCm85J.mjs → 4HqJx9W3eCHZJYHq.mjs} +1 -1
- package/node/esm/{CawfjLMD5X08VllQ.mjs → 9BK7l-Ivt43b6KEy.mjs} +2 -2
- package/node/esm/{Bu647iy66qiv3-qM.mjs → B5xwJWLsa8sioS03.mjs} +2 -2
- package/node/esm/{DLt7HmhROlJ1V8bV.mjs → BDTeyNi7xRbf38xH.mjs} +1 -1
- package/node/esm/{CTsTUI34q8TBkdX5.mjs → BMgFr4sa7VguBGxk.mjs} +1 -1
- package/node/esm/{Dj16Fzha7o7DGv6z.mjs → BP0g0_d2f-xt8UFn.mjs} +2 -2
- package/node/esm/{DY96atQfGYmZ90TD.mjs → BSsmV4HYEDHVuddc.mjs} +4 -4
- package/node/esm/{BML2jZO-vGc6RS51.mjs → BaifedVnO6sEYMzi.mjs} +2 -2
- package/node/esm/{Bppef7aHA2mOZ_sn.mjs → Bh0Gj46U8muzB5rE.mjs} +1 -1
- package/node/esm/{BPGz9KUMwgtyF6LG.mjs → BhwrJ37EPr61SCjz.mjs} +1 -1
- package/node/esm/{Dv8pWn_FIH1LYneP.mjs → Bk1BxTa-h6oEeomA.mjs} +2 -2
- package/node/esm/{JieSP-_GeRIfiW8Z.mjs → Bv57exHF6UhZGb1O.mjs} +2 -2
- package/node/esm/{BI4aQ23a2wqqskmY.mjs → C2VFk9URvBZFujyP.mjs} +523 -530
- package/node/esm/{tt1hY7OYeKg-gSFj.mjs → CFjQXRCWP-MPTRBv.mjs} +1 -1
- package/node/esm/{GeB-AGYaOLPf4xIa.mjs → CPH0Wi667aTEJWCl.mjs} +2 -2
- package/node/esm/{DBB9QhddMWoyCmju.mjs → CRH0tGlA-sqHDUz2.mjs} +2 -2
- package/node/esm/{BjpAc-kSpia0lwjr.mjs → C_h-NFbdy9DIJixP.mjs} +1 -1
- package/node/esm/{DRigWgmIaYtEv5Lk.mjs → ChzGjcGAyzVoq3us.mjs} +1 -1
- package/node/esm/{C4qWN7D3UW8jLaZK.mjs → Cirjh7F_jwRd8Pi6.mjs} +4 -4
- package/node/esm/{B5dbA7OTeRHtdFKK.mjs → ClNrf_Pe3HfSaFUT.mjs} +4 -4
- package/node/esm/{CF8UfOyBsfrrOyAH.mjs → CppEuBRopVC7VxPL.mjs} +2 -2
- package/node/esm/{BuDVpL6sgPNGIN7T.mjs → CqWATgCFM9qYxp1y.mjs} +1 -1
- package/node/esm/{Dg5D5zMNzygUWk51.mjs → Ct2JrPNKwFOvQu0_.mjs} +2 -2
- package/node/esm/{wC3tHWypFfvBG8Fu.mjs → DCYxCMEhlKObeBEe.mjs} +1 -1
- package/node/esm/{CM2JoqeXwIblrqJM.mjs → DI0Up8gwhMuO7w72.mjs} +2 -2
- package/node/esm/{eCWrCiaQxjPKI08p.mjs → DILm8NUWBiK3awMV.mjs} +1 -1
- package/node/esm/{C9dfS-Tk6WGogUSV.mjs → DNtSV77EYwaspYmi.mjs} +2 -2
- package/node/esm/{CcLCu4TIukHypMCt.mjs → DTvy0yJqex01kzo5.mjs} +2 -2
- package/node/esm/{DxRENk3CWrgvcnJj.mjs → DWujZlKfLTgVGIEt.mjs} +2 -2
- package/node/esm/{BNJBkYIYk2zyHoU3.mjs → DZTW7YULM5cQgjS4.mjs} +1 -1
- package/node/esm/{DLQ1x8uASVrHgCX2.mjs → DsBCEfioTtS5807R.mjs} +1 -1
- package/node/esm/{DomLgHu8aLIg6y2l.mjs → DsbNzYUczH1eAcK3.mjs} +1 -1
- package/node/esm/{CbE22c6PmT_9BusX.mjs → DxqToqw-cEzX831t.mjs} +1 -1
- package/node/esm/{Caf_ZRpLHj97cmhq.mjs → EzGwAoT6udab_NyI.mjs} +1 -1
- package/node/esm/{G7AEbATGEFC09W8Z.mjs → FIiI413QzHon4mGk.mjs} +1 -1
- package/node/esm/{DrBGMrwOCXerStOS.mjs → YlDJ0a12ebcGk3BT.mjs} +2 -2
- package/node/esm/{D1QZYBh1NZInkWaZ.mjs → epCpPVzMrhKc5rqz.mjs} +2 -2
- package/node/esm/index.mjs +2408 -2402
- package/node/esm/{Bzi3tHPQ3b7BGbwU.mjs → oXlca69piL_uRVe2.mjs} +1 -1
- package/node/esm/{Bn2kMFZYznOun538.mjs → tIvPPjG0vLdENMKH.mjs} +1 -1
- package/package.json +10 -10
- package/types/src/studio/StudioProps.d.ts +14 -7
- package/types/src/theme/ThemeUtils.d.ts +8 -27
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.24
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.8.0-beta.24
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: MIT
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/studio-mui",
|
|
3
3
|
"description": "Studio - Spreadsheet UI built with SheetXL SDK using React & MUI.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.24",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -51,19 +51,19 @@
|
|
|
51
51
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
52
52
|
"@dnd-kit/sortable": "^10.0.0",
|
|
53
53
|
"@dnd-kit/utilities": "^3.2.2",
|
|
54
|
-
"@sheetxl/grid-react": "^0.8.0-beta.
|
|
55
|
-
"@sheetxl/io": "^0.8.0-beta.
|
|
56
|
-
"@sheetxl/react": "^0.8.0-beta.
|
|
57
|
-
"@sheetxl/scripting-react": "^0.8.0-beta.
|
|
58
|
-
"@sheetxl/sdk": "^0.8.0-beta.
|
|
59
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
60
|
-
"@sheetxl/utils-mui": "^0.8.0-beta.
|
|
61
|
-
"@sheetxl/utils-react": "^0.8.0-beta.
|
|
54
|
+
"@sheetxl/grid-react": "^0.8.0-beta.24",
|
|
55
|
+
"@sheetxl/io": "^0.8.0-beta.24",
|
|
56
|
+
"@sheetxl/react": "^0.8.0-beta.24",
|
|
57
|
+
"@sheetxl/scripting-react": "^0.8.0-beta.24",
|
|
58
|
+
"@sheetxl/sdk": "^0.8.0-beta.24",
|
|
59
|
+
"@sheetxl/utils": "^0.8.0-beta.24",
|
|
60
|
+
"@sheetxl/utils-mui": "^0.8.0-beta.24",
|
|
61
|
+
"@sheetxl/utils-react": "^0.8.0-beta.24",
|
|
62
62
|
"clsx": "^2.1.1",
|
|
63
63
|
"csstype": "^3.2.3",
|
|
64
64
|
"file-saver": "^2.0.5",
|
|
65
65
|
"notistack": "^3.0.2",
|
|
66
|
-
"react-hook-form": "^7.
|
|
66
|
+
"react-hook-form": "^7.91.0",
|
|
67
67
|
"react-merge-refs": "^3.0.2",
|
|
68
68
|
"react-transition-group": "^4.4.5",
|
|
69
69
|
"rooks": "^9.9.0",
|
|
@@ -2,8 +2,7 @@ import { IWorkbook, IWorkbookIO } from '@sheetxl/sdk';
|
|
|
2
2
|
import { ErrorPanelProps, LoadingPanelProps, RenderSlotFn, VirtualKeyboardMode } from '@sheetxl/utils-react';
|
|
3
3
|
import { SxProps } from '@mui/system';
|
|
4
4
|
import { Theme, ThemeOptions, PaperProps } from '@mui/material';
|
|
5
|
-
import { TaskPaneAreaProps, IWorkbookElement, WorkbookElementProps, WorkbookLoadEvent, SheetEditable } from '@sheetxl/react';
|
|
6
|
-
import { ExplicitTokens } from '../theme/ThemeUtils';
|
|
5
|
+
import { TaskPaneAreaProps, IWorkbookElement, WorkbookElementProps, WorkbookLoadEvent, WorkbookRenderSettledEvent, SheetEditable, ExplicitTokens } from '@sheetxl/react';
|
|
7
6
|
import { DocumentTitleProps } from '../workbook';
|
|
8
7
|
import { WorkbookToolbarsProps } from '../toolbar';
|
|
9
8
|
import { FormulaBarProps, IFormulaBarElement, FormulaBarPlacement } from '../formulaBar';
|
|
@@ -81,9 +80,17 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
81
80
|
*/
|
|
82
81
|
propsWorkbook?: Partial<WorkbookElementProps>;
|
|
83
82
|
/**
|
|
84
|
-
*
|
|
83
|
+
* Called when the workbook grid first renders, before its pictures and charts have finished
|
|
84
|
+
* drawing. Fires again for each workbook opened in the studio.
|
|
85
85
|
*/
|
|
86
86
|
onWorkbookLoad?: (event: WorkbookLoadEvent) => void | Promise<void>;
|
|
87
|
+
/**
|
|
88
|
+
* Called when a workbook is shown: its first screen has finished drawing, or
|
|
89
|
+
* `propsWorkbook.renderSettleTimeout` ran out. Fires again for each workbook opened in the studio.
|
|
90
|
+
*
|
|
91
|
+
* @see {@link WorkbookElementProps.onRenderSettled}
|
|
92
|
+
*/
|
|
93
|
+
onRenderSettled?: (event: WorkbookRenderSettledEvent) => void;
|
|
87
94
|
/**
|
|
88
95
|
* Allow for customizations on TaskPaneArea.
|
|
89
96
|
*/
|
|
@@ -230,7 +237,7 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
230
237
|
* @remarks
|
|
231
238
|
* This is *config*, not state. Light/dark **mode** and the dark-grid/dark-image toggles are self-managed by
|
|
232
239
|
* Studio as persisted preferences (see {@link @sheetxl/react!ThemeStateKey}), driven by the surrounding
|
|
233
|
-
* `PersistentStateProvider` — not by props.
|
|
240
|
+
* `PersistentStateProvider` — not by props. {@link tokens} layers token values on top.
|
|
234
241
|
*/
|
|
235
242
|
muiTheme?: ThemeOptions;
|
|
236
243
|
/**
|
|
@@ -258,9 +265,9 @@ export interface StudioProps extends Omit<PaperProps, 'autoFocus' | 'ref'> {
|
|
|
258
265
|
* cells and keeps deriving only the rest.
|
|
259
266
|
*
|
|
260
267
|
* The surfaces are `app` (the default cell everything inherits), `header` (row/column headers) and `grid`
|
|
261
|
-
* (the cell body). These are emitted with Studio's own `sxl-app` layer, so they stay **surface-aware**.
|
|
262
|
-
*
|
|
263
|
-
*
|
|
268
|
+
* (the cell body). These are emitted with Studio's own `sxl-app` layer, so they stay **surface-aware**. The
|
|
269
|
+
* `app` cell also retints the MUI chrome (primary, background, text, radius, font). A stylesheet in
|
|
270
|
+
* `@layer sxl-overrides` reaches the grid but not the MUI chrome.
|
|
264
271
|
*/
|
|
265
272
|
tokens?: ExplicitTokens;
|
|
266
273
|
/**
|
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
import { Theme, ThemeOptions } from '@mui/material';
|
|
2
|
-
import { TokenTheme
|
|
3
|
-
|
|
4
|
-
export type ExplicitSurface = 'app' | 'header' | 'grid';
|
|
5
|
-
/**
|
|
6
|
-
* Explicit token values a HOST supplies, addressed by **cell** — `(surface × mode)`, not just token. So a
|
|
7
|
-
* host says "the header paper is `editorGroupHeader.tabsBackground`" without any new token name entering
|
|
8
|
-
* the vocabulary; the expressiveness comes from the matrix that already exists (THEMING-DESIGN §8).
|
|
9
|
-
*
|
|
10
|
-
* ```ts
|
|
11
|
-
* { dark: { app: { 'color-base-200': '#1f1f1f' }, header: { 'color-base-100': '#181818' } } }
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @remarks
|
|
15
|
-
* The escape hatch out of the math below. Every derived value here (the gridline, the header hover) is an
|
|
16
|
-
* *elevation* calculation: it assumes "raised" means "lighter", which is the Material idea. A host with a
|
|
17
|
-
* FLAT design language (VS Code, Fluent) has its own named surfaces that do not follow that curve at all,
|
|
18
|
-
* and mapping them onto the five MUI palette slots the adapter reads throws all of them away. So each
|
|
19
|
-
* derivation is a FALLBACK: an explicitly supplied token wins, and only what the host leaves unset is
|
|
20
|
-
* computed.
|
|
21
|
-
*/
|
|
22
|
-
export type ExplicitTokens = Partial<Record<ThemeMode, Partial<Record<ExplicitSurface, Partial<TokenTheme>>>>>;
|
|
2
|
+
import { TokenTheme } from '@sheetxl/utils-react';
|
|
3
|
+
import { ExplicitTokens } from '@sheetxl/react';
|
|
23
4
|
/**
|
|
24
5
|
* The MUI→Theme adapter: maps a MUI {@link Theme} onto the framework-neutral flat {@link TokenTheme}
|
|
25
6
|
* token set (utils-react) — one mode's worth of `--sxl-*` values. {@link createStudioThemeCSS} compiles the
|
|
@@ -31,8 +12,8 @@ export type ExplicitTokens = Partial<Record<ThemeMode, Partial<Record<ExplicitSu
|
|
|
31
12
|
*/
|
|
32
13
|
export declare const createThemeFromMUITheme: (muiTheme: Theme, explicit?: ExplicitTokens) => TokenTheme;
|
|
33
14
|
/**
|
|
34
|
-
* The **inverse** adapter (`sxl → mui`): map a partial {@link TokenTheme} (
|
|
35
|
-
*
|
|
15
|
+
* The **inverse** adapter (`sxl → mui`): map a partial {@link TokenTheme} (the host's `app`
|
|
16
|
+
* tokens) onto the MUI palette/geometry slots the forward {@link createThemeFromMUITheme} reads. Studio
|
|
36
17
|
* merges the result INTO its `createExhibitTheme` input, so a token override flows `sxl → mui → sxl`: the MUI
|
|
37
18
|
* chrome (buttons / slider / tabs) follows it as well as the grid — no "half-themed" mixed bag. Only the mapped
|
|
38
19
|
* subset (colors, radius, fonts) crosses; non-color MUI config (components / spacing) is untouched. Partial in,
|
|
@@ -48,10 +29,10 @@ export declare const tokensToMuiOptions: (tokens?: Partial<TokenTheme>) => Theme
|
|
|
48
29
|
*
|
|
49
30
|
* `explicit` is the host's own token values ({@link ExplicitTokens}), addressed per `(surface × mode)` cell.
|
|
50
31
|
* Each cell is merged into the surface it names AND consulted by that surface's derivations, so a host color
|
|
51
|
-
* participates in the math instead of being computed over. This is emitted in `sxl-app
|
|
52
|
-
* `sxl-overrides
|
|
53
|
-
*
|
|
54
|
-
*
|
|
32
|
+
* participates in the math instead of being computed over. This is emitted in `sxl-app`, not
|
|
33
|
+
* `sxl-overrides`, which is why it can be surface-aware: an override-layer rule keyed on `[mode]` alone
|
|
34
|
+
* outranks (by layer, not specificity) the `[mode][surface="header"]` rules below, so it would flatten every
|
|
35
|
+
* surface at once.
|
|
55
36
|
*/
|
|
56
37
|
export declare const createStudioThemeCSS: (lightTheme: Theme, darkTheme: Theme, scope?: string, explicit?: ExplicitTokens) => string;
|
|
57
38
|
//# sourceMappingURL=ThemeUtils.d.ts.map
|