ooxml-ui 1.18.2 → 1.19.0

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 (75) hide show
  1. package/README.md +54 -0
  2. package/dist/building-block-styles.d.ts +5 -0
  3. package/dist/building-block-styles.d.ts.map +1 -0
  4. package/dist/chunk-6Y7KR2I3.js +299 -0
  5. package/dist/{chunk-EVL7GFC7.js → chunk-KH2ZG3N6.js} +2 -2
  6. package/dist/{chunk-MSXUCINT.js → chunk-QEIGB73C.js} +1 -1
  7. package/dist/docx/building-blocks.d.ts +31 -0
  8. package/dist/docx/component.d.ts +1 -1
  9. package/dist/docx/editor-core.d.ts +3 -0
  10. package/dist/docx/element-api.d.ts +8 -0
  11. package/dist/docx/index.d.ts +1 -0
  12. package/dist/docx/styles/index.d.ts +0 -4
  13. package/dist/docx.js +154 -38
  14. package/dist/index.js +3 -3
  15. package/dist/pptx/chunk-NDAE3JFO.cjs +1014 -0
  16. package/dist/pptx/{chunk-AUCJIB3M.mjs → chunk-NLUVYOKN.mjs} +113 -381
  17. package/dist/pptx/{chunk-S2Y3VUNC.cjs → chunk-OQQQ2GBW.cjs} +134 -402
  18. package/dist/pptx/chunk-UTFFX4M7.mjs +989 -0
  19. package/dist/pptx/dom/index.cjs +205 -205
  20. package/dist/pptx/dom/index.mjs +3 -3
  21. package/dist/pptx/index.cjs +2888 -2880
  22. package/dist/pptx/index.mjs +2 -2
  23. package/dist/pptx/render/morph-predicates.d.ts.map +1 -1
  24. package/dist/pptx/theme/index.cjs +24 -16
  25. package/dist/pptx/theme/index.d.ts +1 -0
  26. package/dist/pptx/theme/index.d.ts.map +1 -1
  27. package/dist/pptx/theme/index.mjs +1 -1
  28. package/dist/pptx/theme/office-css.d.ts +6 -0
  29. package/dist/pptx/theme/office-css.d.ts.map +1 -0
  30. package/dist/pptx/web-components/chart-format-pane-styles.d.ts +1 -1
  31. package/dist/pptx/web-components/chart-format-pane-styles.d.ts.map +1 -1
  32. package/dist/pptx/web-components/control-styles.d.ts.map +1 -1
  33. package/dist/pptx/web-components/index.d.ts.map +1 -1
  34. package/dist/pptx/web-components/mobile-bar-styles.d.ts +2 -2
  35. package/dist/pptx/web-components/mobile-bar-styles.d.ts.map +1 -1
  36. package/dist/pptx/web-components/mobile-insert-styles.d.ts +1 -1
  37. package/dist/pptx/web-components/mobile-insert-styles.d.ts.map +1 -1
  38. package/dist/pptx/web-components/notes-toolbar-styles.d.ts +1 -1
  39. package/dist/pptx/web-components/notes-toolbar-styles.d.ts.map +1 -1
  40. package/dist/pptx/web-components/office-token-bridge.d.ts.map +1 -1
  41. package/dist/pptx/web-components/subtitle-settings-styles.d.ts +1 -1
  42. package/dist/pptx/web-components/subtitle-settings-styles.d.ts.map +1 -1
  43. package/dist/pptx/web-components/theme-editor-styles.d.ts +1 -1
  44. package/dist/pptx/web-components/theme-editor-styles.d.ts.map +1 -1
  45. package/dist/teams.js +2 -2
  46. package/dist/theme-bridge.d.ts +28 -0
  47. package/dist/theme-bridge.d.ts.map +1 -0
  48. package/dist/theme.d.ts +10 -3
  49. package/dist/theme.d.ts.map +1 -0
  50. package/dist/theme.js +1 -1
  51. package/dist/visio/building-blocks.d.ts +37 -0
  52. package/dist/visio/controller.d.ts +6 -0
  53. package/dist/visio/index.d.ts +1 -0
  54. package/dist/visio/styles/theme.d.ts +1 -1
  55. package/dist/visio/styles.d.ts +1 -1
  56. package/dist/visio/viewer-element.d.ts +2 -0
  57. package/dist/visio.js +7446 -7321
  58. package/dist/xlsx/building-blocks.d.ts +55 -0
  59. package/dist/xlsx/component.d.ts +3 -1
  60. package/dist/xlsx/dialogs/styles.d.ts +1 -1
  61. package/dist/xlsx/editor-core.d.ts +1 -0
  62. package/dist/xlsx/element-api.d.ts +6 -0
  63. package/dist/xlsx/formula-bar/styles.d.ts +1 -1
  64. package/dist/xlsx/grid/page-break-layer.d.ts +1 -1
  65. package/dist/xlsx/grid/styles.d.ts +1 -1
  66. package/dist/xlsx/index.d.ts +1 -0
  67. package/dist/xlsx/page-views/page-layout-css.d.ts +1 -1
  68. package/dist/xlsx/sheet-tabs/styles.d.ts +1 -1
  69. package/dist/xlsx/surface-shell.d.ts +3 -0
  70. package/dist/xlsx/theme/styles.d.ts +1 -4
  71. package/dist/xlsx.js +412 -268
  72. package/package.json +4 -4
  73. package/dist/chunk-7E3HU7RL.js +0 -123
  74. package/dist/pptx/chunk-BDXQX6RA.cjs +0 -373
  75. package/dist/pptx/chunk-ZAOD6O2D.mjs +0 -357
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ooxml-ui",
3
- "version": "1.18.2",
3
+ "version": "1.19.0",
4
4
  "description": "Shared, format-neutral web components and styles for the Office viewers (Word, PowerPoint, Excel)",
5
5
  "keywords": [
6
6
  "custom-elements",
@@ -144,9 +144,9 @@
144
144
  },
145
145
  "dependencies": {
146
146
  "dompurify": "^3.4.17",
147
- "emf-converter": "4.20.3",
147
+ "emf-converter": "4.21.0",
148
148
  "lit": "^3.3.3",
149
- "ooxml-core": "^1.19.1",
149
+ "ooxml-core": "^1.20.0",
150
150
  "opentype.js": "^2.0.0",
151
151
  "prosemirror-collab": "^1.3.1",
152
152
  "prosemirror-commands": "^1.7.2",
@@ -165,7 +165,7 @@
165
165
  "@types/opentype.js": "^1.3.10",
166
166
  "@types/three": "^0.186.0",
167
167
  "ai": "^7.0.142",
168
- "fake-indexeddb": "^6.2.5",
168
+ "fake-indexeddb": "^6.2.6",
169
169
  "happy-dom": "^21.0.3",
170
170
  "jsdom": "^30.1.3",
171
171
  "jszip": "^3.10.2",
@@ -1,123 +0,0 @@
1
- import { OFFICE_TOKENS, TOUCH } from './chunk-LD3K2RDN.js';
2
-
3
- // src/theme-bridge.ts
4
- var SHADCN_NAMES = [
5
- ["--office-foreground", "foreground"],
6
- ["--office-muted-foreground", "muted-foreground"],
7
- ["--office-background", "background"],
8
- ["--office-surface", "card"],
9
- ["--office-selected", "accent"],
10
- ["--office-border", "border"],
11
- ["--office-accent", "primary"],
12
- ["--office-accent-foreground", "primary-foreground"],
13
- ["--office-ring", "ring"],
14
- ["--office-popover", "popover"],
15
- // Popover text falls back to the plain foreground, as it does in the shadcn themes.
16
- ["--office-popover-foreground", "popover-foreground", "foreground"],
17
- ["--office-danger", "destructive"],
18
- ["--office-danger-foreground", "destructive-foreground"]
19
- ];
20
- var reads = (value) => [...value.matchAll(/var\((--office-[\w-]+)/g)].map((m) => m[1]);
21
- function derivedTokens(bridged) {
22
- const derived = /* @__PURE__ */ new Map();
23
- let grew = true;
24
- while (grew) {
25
- grew = false;
26
- for (const [name, value] of Object.entries(OFFICE_TOKENS)) {
27
- if (bridged.has(name) || derived.has(name)) continue;
28
- if (reads(value).some((token) => bridged.has(token) || derived.has(token))) {
29
- derived.set(name, value);
30
- grew = true;
31
- }
32
- }
33
- }
34
- return [...derived];
35
- }
36
- function themeBridge(selector, map) {
37
- const mapped = Object.entries(map).filter((entry) => !!entry[1]);
38
- const lines = [...mapped, ...derivedTokens(new Set(mapped.map(([name]) => name)))].map(
39
- ([name, value]) => ` ${name}: ${value};`
40
- );
41
- return `${selector} {
42
- ${lines.join("\n")}
43
- }
44
- `;
45
- }
46
- function shadcnBridge(selector, prefix, options = {}) {
47
- const map = {};
48
- for (const [token, name, fallbackName] of SHADCN_NAMES) {
49
- const fallback = options.fallbacks?.[name];
50
- const inner = fallbackName ? `var(${prefix}${fallbackName})` : fallback;
51
- map[token] = `var(${prefix}${name}${inner ? `, ${inner}` : ""})`;
52
- }
53
- return themeBridge(selector, { ...map, ...options.extra });
54
- }
55
-
56
- // src/theme.ts
57
- var THEME_STYLE_ID = "office-ui-theme";
58
- var DARK = `
59
- --office-foreground: #f9fafb;
60
- --office-muted-foreground: #9ca3af;
61
- --office-background: #111827;
62
- --office-surface: #1f2937;
63
- --office-border: #374151;
64
- --office-accent: #6366f1;
65
- --office-ring: #818cf8;
66
- --office-danger: #f87171;
67
- --office-selected: #374151;
68
- --office-notice-background: rgb(120 53 15 / 20%);
69
- --office-notice-foreground: #fde68a;
70
- --office-notice-accent: #fbbf24;
71
- --office-info: #60a5fa;
72
- --office-warning: #f59e0b;
73
- --office-teams-brand: #7f85f5;
74
- --office-teams-brand-hover: #96a0ff;
75
- --office-teams-brand-subtle: #2f2f4a;
76
- --office-teams-rail: #141414;
77
- --office-teams-panel: #1f1f1f;
78
- --office-teams-bubble: #2d2d2d;
79
- --office-teams-bubble-own: #2f2f4a;
80
- --office-teams-divider: #3d3d3d;
81
- --office-teams-text-subtle: #adadad;
82
- --office-shadow: 0 6px 20px rgb(0 0 0 / 45%);
83
- --office-shadow-lg: 0 10px 25px rgb(0 0 0 / 45%);`;
84
- var LIGHT = Object.entries(OFFICE_TOKENS).map(([name, value]) => ` ${name}: ${value};`).join("\n");
85
- var THEME_CSS = `
86
- :root {
87
- ${LIGHT}
88
- }
89
- @media (prefers-color-scheme: dark) {
90
- :root:not([data-office-theme="light"]) {${DARK}
91
- }
92
- }
93
- :root[data-office-theme="dark"] {${DARK}
94
- }
95
- @media ${TOUCH} {
96
- :root { --office-target-size: var(--office-target-size-touch); }
97
- }
98
- @media (forced-colors: active) {
99
- :root {
100
- --office-foreground: CanvasText;
101
- --office-muted-foreground: GrayText;
102
- --office-background: Canvas;
103
- --office-surface: Canvas;
104
- --office-border: CanvasText;
105
- --office-accent: Highlight;
106
- --office-accent-foreground: HighlightText;
107
- --office-ring: Highlight;
108
- --office-danger: CanvasText;
109
- }
110
- }
111
- `;
112
- function installOfficeUiTheme(doc = globalThis.document) {
113
- if (!doc?.head) return false;
114
- if (!doc.getElementById(THEME_STYLE_ID)) {
115
- const style = doc.createElement("style");
116
- style.id = THEME_STYLE_ID;
117
- style.textContent = THEME_CSS;
118
- doc.head.append(style);
119
- }
120
- return true;
121
- }
122
-
123
- export { THEME_CSS, THEME_STYLE_ID, installOfficeUiTheme, shadcnBridge, themeBridge };
@@ -1,373 +0,0 @@
1
- 'use strict';
2
-
3
- var pptx = require('ooxml-core/pptx');
4
-
5
- // src/pptx/theme/defaults.ts
6
- var defaultThemeColors = {
7
- background: "#030712",
8
- // gray-950
9
- foreground: "#f3f4f6",
10
- // gray-100
11
- card: "#111827",
12
- // gray-900
13
- cardForeground: "#f3f4f6",
14
- // gray-100
15
- popover: "#111827",
16
- // gray-900
17
- popoverForeground: "#f3f4f6",
18
- // gray-100
19
- primary: "#6366f1",
20
- // indigo-500
21
- primaryForeground: "#ffffff",
22
- // white
23
- secondary: "#1f2937",
24
- // gray-800
25
- secondaryForeground: "#f3f4f6",
26
- // gray-100
27
- muted: "#1f2937",
28
- // gray-800
29
- mutedForeground: "#9ca3af",
30
- // gray-400
31
- accent: "#1f2937",
32
- // gray-800
33
- accentForeground: "#f3f4f6",
34
- // gray-100
35
- destructive: "#ef4444",
36
- // red-500
37
- destructiveForeground: "#ffffff",
38
- // white
39
- border: "#374151",
40
- // gray-700
41
- input: "#374151",
42
- // gray-700
43
- ring: "#6366f1"
44
- // indigo-500
45
- };
46
- var defaultRadius = "0.5rem";
47
- var lightThemeColors = {
48
- background: "#f8fafc",
49
- // slate-50
50
- foreground: "#0f172a",
51
- // slate-900
52
- card: "#ffffff",
53
- cardForeground: "#0f172a",
54
- // slate-900
55
- popover: "#ffffff",
56
- popoverForeground: "#0f172a",
57
- // slate-900
58
- primary: "#4f46e5",
59
- // indigo-600
60
- primaryForeground: "#ffffff",
61
- secondary: "#f1f5f9",
62
- // slate-100
63
- secondaryForeground: "#0f172a",
64
- // slate-900
65
- muted: "#f1f5f9",
66
- // slate-100
67
- mutedForeground: "#64748b",
68
- // slate-500
69
- accent: "#f1f5f9",
70
- // slate-100
71
- accentForeground: "#0f172a",
72
- // slate-900
73
- destructive: "#dc2626",
74
- // red-600
75
- destructiveForeground: "#ffffff",
76
- border: "#e2e8f0",
77
- // slate-200
78
- input: "#e2e8f0",
79
- // slate-200
80
- ring: "#4f46e5"
81
- // indigo-600
82
- };
83
- var lightTheme = {
84
- colors: lightThemeColors
85
- };
86
-
87
- // src/pptx/theme/css-vars.ts
88
- var COLOR_KEY_TO_CSS = {
89
- background: "background",
90
- foreground: "foreground",
91
- card: "card",
92
- cardForeground: "card-foreground",
93
- popover: "popover",
94
- popoverForeground: "popover-foreground",
95
- primary: "primary",
96
- primaryForeground: "primary-foreground",
97
- secondary: "secondary",
98
- secondaryForeground: "secondary-foreground",
99
- muted: "muted",
100
- mutedForeground: "muted-foreground",
101
- accent: "accent",
102
- accentForeground: "accent-foreground",
103
- destructive: "destructive",
104
- destructiveForeground: "destructive-foreground",
105
- border: "border",
106
- input: "input",
107
- ring: "ring"
108
- };
109
- var DERIVED_COLOR_TOKENS = [
110
- { source: "primary", cssSuffix: "inspector-active" },
111
- { source: "border", cssSuffix: "inspector-border" }
112
- ];
113
- function themeToCssVars(theme, omitDefaults = false) {
114
- const vars = {};
115
- if (!theme) {
116
- return vars;
117
- }
118
- const colors = theme.colors;
119
- if (colors) {
120
- for (const [key, cssSuffix] of Object.entries(COLOR_KEY_TO_CSS)) {
121
- const value = colors[key];
122
- if (value === void 0) {
123
- continue;
124
- }
125
- if (omitDefaults && value === defaultThemeColors[key]) {
126
- continue;
127
- }
128
- vars[`--pptx-${cssSuffix}`] = value;
129
- vars[`--color-${cssSuffix}`] = value;
130
- }
131
- for (const { source, cssSuffix } of DERIVED_COLOR_TOKENS) {
132
- const value = colors[source];
133
- if (value === void 0) {
134
- continue;
135
- }
136
- if (omitDefaults && value === defaultThemeColors[source]) {
137
- continue;
138
- }
139
- vars[`--pptx-${cssSuffix}`] = value;
140
- }
141
- }
142
- if (theme.radius !== void 0) {
143
- if (!omitDefaults || theme.radius !== defaultRadius) {
144
- vars["--pptx-radius"] = theme.radius;
145
- const r = theme.radius;
146
- vars["--radius-sm"] = `calc(${r} - 4px)`;
147
- vars["--radius-md"] = `calc(${r} - 2px)`;
148
- vars["--radius-lg"] = r;
149
- vars["--radius-xl"] = `calc(${r} + 4px)`;
150
- }
151
- }
152
- if (theme.cssVars) {
153
- for (const [key, value] of Object.entries(theme.cssVars)) {
154
- vars[key] = value;
155
- }
156
- }
157
- return vars;
158
- }
159
- function defaultCssVars() {
160
- const vars = {};
161
- for (const [key, cssSuffix] of Object.entries(COLOR_KEY_TO_CSS)) {
162
- vars[`--pptx-${cssSuffix}`] = defaultThemeColors[key];
163
- }
164
- for (const { source, cssSuffix } of DERIVED_COLOR_TOKENS) {
165
- vars[`--pptx-${cssSuffix}`] = defaultThemeColors[source];
166
- }
167
- vars["--pptx-radius"] = defaultRadius;
168
- return vars;
169
- }
170
-
171
- // src/pptx/theme/presets.ts
172
- var vermilionLightColors = {
173
- background: "#fbfaf7",
174
- foreground: "#1a1d21",
175
- card: "#ffffff",
176
- cardForeground: "#1a1d21",
177
- popover: "#ffffff",
178
- popoverForeground: "#1a1d21",
179
- primary: "#c2431f",
180
- primaryForeground: "#ffffff",
181
- secondary: "#f2efe8",
182
- secondaryForeground: "#1a1d21",
183
- muted: "#f2efe8",
184
- mutedForeground: "#5a626e",
185
- accent: "rgba(194, 67, 31, 0.08)",
186
- accentForeground: "#1a1d21",
187
- destructive: "#dc2626",
188
- destructiveForeground: "#ffffff",
189
- border: "#e6e2d9",
190
- input: "#e6e2d9",
191
- ring: "#c2431f"
192
- };
193
- var vermilionDarkColors = {
194
- background: "#0f1113",
195
- foreground: "#f0efec",
196
- card: "#171a1e",
197
- cardForeground: "#f0efec",
198
- popover: "#171a1e",
199
- popoverForeground: "#f0efec",
200
- primary: "#e86a40",
201
- primaryForeground: "#ffffff",
202
- secondary: "#1f242b",
203
- secondaryForeground: "#f0efec",
204
- muted: "#1f242b",
205
- mutedForeground: "#9aa1ab",
206
- accent: "rgba(232, 106, 64, 0.1)",
207
- accentForeground: "#f0efec",
208
- destructive: "#ef4444",
209
- destructiveForeground: "#ffffff",
210
- border: "#272c33",
211
- input: "#272c33",
212
- ring: "#e86a40"
213
- };
214
- var vermilionRadius = "0.375rem";
215
- var vermilionLightTheme = {
216
- colors: vermilionLightColors,
217
- radius: vermilionRadius
218
- };
219
- var vermilionDarkTheme = {
220
- colors: vermilionDarkColors,
221
- radius: vermilionRadius
222
- };
223
-
224
- // src/pptx/theme/theme-catalog.ts
225
- var THEME_CATALOG = [
226
- { key: "default", labelKey: "pptx.settings.theme.default", theme: void 0 },
227
- { key: "light", labelKey: "pptx.settings.theme.light", theme: lightTheme },
228
- {
229
- key: "vermilionLight",
230
- labelKey: "pptx.settings.theme.vermilionLight",
231
- theme: vermilionLightTheme
232
- },
233
- {
234
- key: "vermilionDark",
235
- labelKey: "pptx.settings.theme.vermilionDark",
236
- theme: vermilionDarkTheme
237
- }
238
- ];
239
- function resolveThemeCatalogEntry(key, catalog = THEME_CATALOG) {
240
- return catalog.find((entry) => entry.key === key)?.theme;
241
- }
242
- function corePreset(id) {
243
- const preset = pptx.THEME_PRESETS.find((p) => p.id === id);
244
- if (!preset) {
245
- throw new Error(`theme-gallery-presets: core THEME_PRESETS is missing "${id}"`);
246
- }
247
- return preset;
248
- }
249
- var WISP_PRESET = {
250
- id: "wisp",
251
- name: "Wisp",
252
- colorScheme: {
253
- dk1: "#000000",
254
- lt1: "#FFFFFF",
255
- dk2: "#46393B",
256
- lt2: "#E8DCD8",
257
- accent1: "#A53010",
258
- accent2: "#DE7E18",
259
- accent3: "#9F8351",
260
- accent4: "#728653",
261
- accent5: "#92AA4C",
262
- accent6: "#6AAC91",
263
- hlink: "#FB4F14",
264
- folHlink: "#E25839"
265
- },
266
- fontScheme: {
267
- majorFont: { latin: "Century Gothic" },
268
- minorFont: { latin: "Century Gothic" }
269
- }
270
- };
271
- var BERLIN_PRESET = {
272
- id: "berlin",
273
- name: "Berlin",
274
- colorScheme: {
275
- dk1: "#000000",
276
- lt1: "#FFFFFF",
277
- dk2: "#3E5C61",
278
- lt2: "#D5E0D0",
279
- accent1: "#F09415",
280
- accent2: "#C1B56B",
281
- accent3: "#89C2A3",
282
- accent4: "#729BBE",
283
- accent5: "#9A90C2",
284
- accent6: "#BE8DBE",
285
- hlink: "#25A0DA",
286
- folHlink: "#FF7F00"
287
- },
288
- fontScheme: {
289
- majorFont: { latin: "Trebuchet MS" },
290
- minorFont: { latin: "Trebuchet MS" }
291
- }
292
- };
293
- var SLICE_PRESET = {
294
- id: "slice",
295
- name: "Slice",
296
- colorScheme: {
297
- dk1: "#000000",
298
- lt1: "#FFFFFF",
299
- dk2: "#2E3B4C",
300
- lt2: "#C7CDD3",
301
- accent1: "#E2751D",
302
- accent2: "#C53B23",
303
- accent3: "#A13D69",
304
- accent4: "#58599E",
305
- accent5: "#36749D",
306
- accent6: "#4EA39A",
307
- hlink: "#FD6B32",
308
- folHlink: "#D14D0F"
309
- },
310
- fontScheme: {
311
- majorFont: { latin: "Century Gothic" },
312
- minorFont: { latin: "Century Gothic" }
313
- }
314
- };
315
- var DIVIDEND_PRESET = {
316
- id: "dividend",
317
- name: "Dividend",
318
- colorScheme: {
319
- dk1: "#000000",
320
- lt1: "#FFFFFF",
321
- dk2: "#3D3D3D",
322
- lt2: "#E1E1E1",
323
- accent1: "#4D1434",
324
- accent2: "#903163",
325
- accent3: "#B2324B",
326
- accent4: "#D34817",
327
- accent5: "#E8971C",
328
- accent6: "#FDCB00",
329
- hlink: "#A03068",
330
- folHlink: "#C34882"
331
- },
332
- fontScheme: {
333
- majorFont: { latin: "Gill Sans MT" },
334
- minorFont: { latin: "Gill Sans MT" }
335
- }
336
- };
337
- var GALLERY_THEME_PRESETS = [
338
- corePreset("office"),
339
- corePreset("facet"),
340
- corePreset("integral"),
341
- corePreset("ion"),
342
- corePreset("retrospect"),
343
- corePreset("organic"),
344
- WISP_PRESET,
345
- BERLIN_PRESET,
346
- SLICE_PRESET,
347
- DIVIDEND_PRESET
348
- ];
349
- function activeGalleryThemePreset(theme) {
350
- if (!theme) {
351
- return void 0;
352
- }
353
- const colorScheme = theme.colorScheme;
354
- return colorScheme && GALLERY_THEME_PRESETS.find(
355
- (preset) => pptx.themeColorSchemesEqual(colorScheme, preset.colorScheme)
356
- ) || GALLERY_THEME_PRESETS.find((preset) => preset.name === theme.name);
357
- }
358
-
359
- exports.GALLERY_THEME_PRESETS = GALLERY_THEME_PRESETS;
360
- exports.THEME_CATALOG = THEME_CATALOG;
361
- exports.activeGalleryThemePreset = activeGalleryThemePreset;
362
- exports.defaultCssVars = defaultCssVars;
363
- exports.defaultRadius = defaultRadius;
364
- exports.defaultThemeColors = defaultThemeColors;
365
- exports.lightTheme = lightTheme;
366
- exports.lightThemeColors = lightThemeColors;
367
- exports.resolveThemeCatalogEntry = resolveThemeCatalogEntry;
368
- exports.themeToCssVars = themeToCssVars;
369
- exports.vermilionDarkColors = vermilionDarkColors;
370
- exports.vermilionDarkTheme = vermilionDarkTheme;
371
- exports.vermilionLightColors = vermilionLightColors;
372
- exports.vermilionLightTheme = vermilionLightTheme;
373
- exports.vermilionRadius = vermilionRadius;