@sheetxl/studio-mui 0.4.22 → 0.5.1

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 (40) hide show
  1. package/browser/cjs/{BfnxiVEhzO5reOYH.cjs → B7ZqxL7HCcF4W64E.cjs} +2 -2
  2. package/browser/cjs/{Bil3fXnJ3lk7aGF5.cjs → BSchsQWqHadL8uiG.cjs} +2 -2
  3. package/browser/cjs/{BY09bxecVOSMwQA3.cjs → BSk234vVHlO9t-0j.cjs} +1 -1
  4. package/browser/cjs/{2d2J6QkipnGWfI99.cjs → Bi2ewauCdH2w14hW.cjs} +2 -2
  5. package/browser/cjs/{B_nvuo0kEXu5G0Gf.cjs → C6Qc9lLh9egNbs0t.cjs} +1 -1
  6. package/browser/cjs/{DC70SHoaPVkOUEHx.cjs → Ck0B-kjPAw2A9KVg.cjs} +1 -1
  7. package/browser/cjs/{DRUx3PLS_NrkJ6Yw.cjs → DBcDkQQ3AzkP7U-g.cjs} +3 -3
  8. package/browser/cjs/{D2Cp7gwb6bRupSZY.cjs → DGcWWDQoWTessrP9.cjs} +2 -2
  9. package/browser/cjs/{BzbKSVugPof6dqQI.cjs → DZXSHPXJywU0QDaX.cjs} +1 -1
  10. package/browser/cjs/{BYJI3FMxQ-z5UGsU.cjs → DkpiQeq_B6niQX_F.cjs} +1 -1
  11. package/browser/cjs/Dptdk7e9jdSVPSlW.cjs +20 -0
  12. package/browser/cjs/{CU0utErelA1oX0n8.cjs → DwKLyvJr6BNyEpRJ.cjs} +2 -2
  13. package/browser/cjs/index.cjs +2 -2
  14. package/browser/esm/{-AR3L_VjwMbtQVbL.mjs → B07osQ30jqhbDbZd.mjs} +2 -2
  15. package/browser/esm/{DXRFs7VZM4IShMju.mjs → B1z2_AMWCsfpJHbb.mjs} +2 -2
  16. package/browser/esm/{DEbllEGmvtLkCug_.mjs → BZX8sIMfMsI3HTX8.mjs} +3 -3
  17. package/browser/esm/{EMqbYi0X_krk5yOL.mjs → BdX-JA-__aDsnq7S.mjs} +1 -1
  18. package/browser/esm/{BXNl9EEQzO53Hoh5.mjs → Bk-eJX2kHnvnG28L.mjs} +2 -2
  19. package/browser/esm/{BqnVpwK0Q2fKGA2S.mjs → C3cb5A2fg-21I_jY.mjs} +1 -1
  20. package/browser/esm/{D4rFOqwrrtVMpgbc.mjs → C89QUgwXHQc2dJ3l.mjs} +1 -1
  21. package/browser/esm/{DeGATuYv4-5bhQcD.mjs → CBKfWBsXKJNQ1vnx.mjs} +1 -1
  22. package/browser/esm/{-0XEuwqNVFTlDKEX.mjs → CKP6l57oywzoCW26.mjs} +2 -2
  23. package/browser/esm/{fWsCG2WBM3kCpC5p.mjs → D3Q0yYY719Kq6-E0.mjs} +2 -2
  24. package/browser/esm/{pARZF2O230qNvxWd.mjs → Dhvid6hJKp8mH3mM.mjs} +1 -1
  25. package/browser/esm/{BLhZj1SgWlsmeviw.mjs → hSy4nt2e1JaglBGF.mjs} +2211 -2247
  26. package/browser/esm/index.mjs +36 -38
  27. package/node/esm/{DRt8kMDuCJn53CIE.mjs → 2ivPcTvenc9052Au.mjs} +1 -1
  28. package/node/esm/{CE_I2ijQF8MeexHD.mjs → BhrCUSzh6UYuYooH.mjs} +1 -1
  29. package/node/esm/{BzBHqe1ThbCP-l_d.mjs → BzI2nfBkzMD7nh3R.mjs} +1 -1
  30. package/node/esm/{0JTY0jNrXiIiOqWY.mjs → C1WgCk3bWrblj2tf.mjs} +1 -1
  31. package/node/esm/{CuomeW-4DDc1ywFW.mjs → C2yYkXDnvboLxKsV.mjs} +1 -1
  32. package/node/esm/{Do7y7aKPA48-93AV.mjs → CCjx6xhgYbFOq1KK.mjs} +1 -1
  33. package/node/esm/{DgHCTCARk1Gv_msN.mjs → D_iq-nakEihGXnfs.mjs} +1 -1
  34. package/node/esm/{Bu58psaOsDy_zPOJ.mjs → DuTuCOWVEZrVzH3R.mjs} +1 -1
  35. package/node/esm/{X11ONmg6R1Y6hfue.mjs → IXbZFmdmVOCo2beQ.mjs} +1 -1
  36. package/node/esm/{BqQ6JNhQ1K321g9U.mjs → WjtiXN--XGZjB3uh.mjs} +1 -1
  37. package/node/esm/index.mjs +928 -964
  38. package/package.json +8 -8
  39. package/types/index.d.ts +1 -82
  40. package/browser/cjs/CWp8_mrz0htdOXMM.cjs +0 -20
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.4.22",
4
+ "version": "0.5.1",
5
5
  "license": "SEE LICENSE IN <LICENSE>",
6
6
  "type": "module",
7
7
  "exports": {
@@ -36,13 +36,13 @@
36
36
  "charting"
37
37
  ],
38
38
  "dependencies": {
39
- "@sheetxl/grid-react": "^0.4.22",
40
- "@sheetxl/io": "^0.4.22",
41
- "@sheetxl/react": "^0.4.22",
42
- "@sheetxl/utils": "^0.4.22",
43
- "@sheetxl/utils-mui": "^0.4.22",
44
- "@sheetxl/utils-react": "^0.4.22",
45
- "@sheetxl/sdk": "^0.4.22",
39
+ "@sheetxl/grid-react": "^0.5.1",
40
+ "@sheetxl/io": "^0.5.1",
41
+ "@sheetxl/react": "^0.5.1",
42
+ "@sheetxl/utils": "^0.5.1",
43
+ "@sheetxl/utils-mui": "^0.5.1",
44
+ "@sheetxl/utils-react": "^0.5.1",
45
+ "@sheetxl/sdk": "^0.5.1",
46
46
  "clsx": "^2.1.1",
47
47
  "csstype": "^3.1.3",
48
48
  "file-saver": "^2.0.5",
package/types/index.d.ts CHANGED
@@ -50,7 +50,7 @@ import { SxProps } from '@mui/system';
50
50
  import { TabProps } from '@sheetxl/react';
51
51
  import { TabStripRef } from '@sheetxl/react';
52
52
  import { Theme } from '@mui/material/styles';
53
- import { ThemeOptions } from '@mui/material/styles';
53
+ import { ThemeModeOptions } from '@sheetxl/utils-mui';
54
54
  import { ToolbarProps } from '@mui/material';
55
55
  import { UndoManager } from '@sheetxl/utils';
56
56
  import { WorkbookHandle } from '@sheetxl/io';
@@ -990,8 +990,6 @@ export declare interface SheetZoomScaleProps extends BoxProps {
990
990
 
991
991
  export declare const SortFilterCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
992
992
 
993
- declare type Source = 'prop' | 'class' | 'media';
994
-
995
993
  /**
996
994
  * This show the current cell state as an unstyled editable field.
997
995
  * This wraps this with material styling and submit and cancel buttons
@@ -1284,76 +1282,6 @@ export declare const TextOverflowCommandButton: default_2.NamedExoticComponent<O
1284
1282
 
1285
1283
  export declare const TextRotateCommandButton: default_2.NamedExoticComponent<Omit<CommandPopupButtonProps<any, any>, "ref"> & default_2.RefAttributes<HTMLElement>>;
1286
1284
 
1287
- export declare const ThemeMode: {
1288
- readonly Light: "light";
1289
- readonly Dark: "dark";
1290
- };
1291
-
1292
- export declare type ThemeMode = typeof ThemeMode[keyof typeof ThemeMode];
1293
-
1294
- export declare interface ThemeModeOptions {
1295
- /**
1296
- * The user doesn't want to use the default.
1297
- *
1298
- * @defaultValue the system default
1299
- */
1300
- mode?: ThemeMode;
1301
- /**
1302
- * Customizations to the theme.
1303
- *
1304
- * @defaultValue `Theme`
1305
- */
1306
- theme?: ThemeOptions;
1307
- /**
1308
- * Customizations to the light theme.
1309
- *
1310
- * @defaultValue Theme values.
1311
- */
1312
- light?: ThemeOptions;
1313
- /**
1314
- * Customizations to the dark theme.
1315
- *
1316
- * @defaultValue Theme values
1317
- */
1318
- dark?: ThemeOptions;
1319
- /**
1320
- * By default the the standalone workbook grid will be the same theme as the workbook.
1321
- * If forceGridLight is `true` then the grid will always use the light mode.
1322
- *
1323
- * When `true` the grid will behave consistent with current Excel (2023).
1324
- *
1325
- * @remarks
1326
- * When the grid has a dark theme it will attempt to use DocTheme dark colors
1327
- * but will 'force' non dark-themed colors to be light via an inversion algo.
1328
- *
1329
- * @defaultValue false
1330
- */
1331
- enableDarkGrid?: boolean;
1332
- /**
1333
- * By default the the standalone workbook images will invert images if the grid
1334
- * is in dark mode.
1335
- *
1336
- * @defaultValue false
1337
- */
1338
- enableDarkImages?: boolean;
1339
- /**
1340
- * When theming also apply the MUI CssBaseline.
1341
- *
1342
- * @defaultValue false
1343
- */
1344
- cssBaseline?: boolean;
1345
- /**
1346
- * Called if the current mode changes for the AppTheme.
1347
- *
1348
- * @remarks
1349
- * * This is only used if the themeOptions are not provided.
1350
- * * If `null` is sent then the theme should inherit.
1351
- */
1352
- onModeChange?: (mode: ThemeMode | null) => void;
1353
- onEnabledDarkGridChange?: (allow: boolean) => void;
1354
- onEnabledDarkImagesChange?: (allow: boolean) => void;
1355
- }
1356
-
1357
1285
  export declare const ThemeSelectButton: default_2.FC<ThemeSelectButtonProps>;
1358
1286
 
1359
1287
  export declare interface ThemeSelectButtonProps extends ExhibitIconButtonProps {
@@ -1431,15 +1359,6 @@ export declare interface UndoRedoCommandButtonProps extends CommandPopupButtonPr
1431
1359
  nestRedo?: boolean;
1432
1360
  }
1433
1361
 
1434
- export declare function useResolvedThemeMode(options?: UseThemeOptions): {
1435
- themeMode: ThemeMode;
1436
- source: Source;
1437
- };
1438
-
1439
- declare interface UseThemeOptions {
1440
- mode?: ThemeMode;
1441
- }
1442
-
1443
1362
  /**
1444
1363
  * Hook for observing workbook commands. This hook will observe a combination
1445
1364
  * of workbook events and an options selection.