@wso2/oxygen-ui 0.0.1-alpha.10 → 0.0.1-alpha.12

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 (54) hide show
  1. package/README.md +134 -2
  2. package/dist/animations/ParticleBackground/ParticleBackground.d.ts +66 -0
  3. package/dist/animations/ParticleBackground/index.d.ts +19 -0
  4. package/dist/animations/index.d.ts +18 -0
  5. package/dist/components/CodeBlock/CodeBlock.d.ts +47 -0
  6. package/dist/components/CodeBlock/index.d.ts +19 -0
  7. package/dist/components/ColorSchemeImage/index.d.ts +19 -0
  8. package/dist/components/ColorSchemeToggle/index.d.ts +18 -0
  9. package/dist/components/ComplexSelect/ComplexSelect.d.ts +17 -0
  10. package/dist/components/ComplexSelect/ComplexSelectDivider.d.ts +4 -0
  11. package/dist/components/ComplexSelect/ComplexSelectListHeader.d.ts +7 -0
  12. package/dist/components/ComplexSelect/ComplexSelectMenuItem.d.ts +16 -0
  13. package/dist/components/ComplexSelect/ComplexSelectMenuItemAvatar.d.ts +7 -0
  14. package/dist/components/ComplexSelect/ComplexSelectMenuItemIcon.d.ts +7 -0
  15. package/dist/components/ComplexSelect/ComplexSelectMenuItemText.d.ts +8 -0
  16. package/dist/components/ComplexSelect/index.d.ts +21 -0
  17. package/dist/components/PageTitle/PageTitle.d.ts +34 -0
  18. package/dist/components/PageTitle/PageTitleAvatar.d.ts +16 -0
  19. package/dist/components/PageTitle/PageTitleHeader.d.ts +16 -0
  20. package/dist/components/PageTitle/PageTitleLink.d.ts +20 -0
  21. package/dist/components/PageTitle/PageTitleSubHeader.d.ts +16 -0
  22. package/dist/components/PageTitle/index.d.ts +27 -0
  23. package/dist/components/ThemeSwitcher/ThemeSelect.d.ts +37 -0
  24. package/dist/components/ThemeSwitcher/ThemeSwitcher.d.ts +65 -0
  25. package/dist/components/ThemeSwitcher/index.d.ts +4 -0
  26. package/dist/components/index.d.ts +28 -0
  27. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.d.ts +58 -3
  28. package/dist/contexts/OxygenUIThemeProvider/index.d.ts +20 -0
  29. package/dist/contexts/index.d.ts +19 -0
  30. package/dist/hooks/index.d.ts +18 -0
  31. package/dist/hooks/useThemeContent/index.d.ts +18 -0
  32. package/dist/hooks/useThemeContent/useThemeContent.d.ts +57 -0
  33. package/dist/index.d.ts +7 -4
  34. package/dist/index.js +1360 -169
  35. package/dist/index.js.map +4 -4
  36. package/dist/styles/Themes/AsgardeoTheme.d.ts +17 -0
  37. package/dist/styles/Themes/ChoreoTheme.d.ts +20 -0
  38. package/dist/styles/Themes/ClassicTheme.d.ts +20 -0
  39. package/dist/styles/Themes/HighContrastTheme.d.ts +20 -0
  40. package/dist/styles/Themes/OxygenBaseTheme.d.ts +66 -0
  41. package/dist/styles/Themes/index.d.ts +22 -0
  42. package/dist/styles/index.d.ts +18 -0
  43. package/dist/utils/index.d.ts +18 -0
  44. package/dist/utils/pxToRem.d.ts +23 -0
  45. package/package.json +10 -8
  46. package/dist/components/ColorSchemeImage/ColorSchemeImage.js +0 -57
  47. package/dist/components/ColorSchemeImage/ColorSchemeImage.js.map +0 -7
  48. package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js +0 -76
  49. package/dist/components/ColorSchemeToggle/ColorSchemeToggle.js.map +0 -7
  50. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js +0 -378
  51. package/dist/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.js.map +0 -7
  52. package/dist/styles/OxygenTheme/OxygenTheme.d.ts +0 -38
  53. package/dist/styles/OxygenTheme/OxygenTheme.js +0 -356
  54. package/dist/styles/OxygenTheme/OxygenTheme.js.map +0 -7
package/dist/index.js CHANGED
@@ -127,99 +127,69 @@ var __objRest = (source, exclude) => {
127
127
  }
128
128
  })();
129
129
 
130
- // src/styles/OxygenTheme/OxygenTheme.ts
131
- import { createTheme } from "@mui/material/styles";
130
+ // src/styles/Themes/OxygenBaseTheme.ts
131
+ import { extendTheme } from "@mui/material/styles";
132
132
  import { ChevronDown, X } from "@wso2/oxygen-ui-icons-react";
133
133
  import React from "react";
134
- var noShadows = Array(25).fill("none");
135
- var OxygenThemePrimitives = {
136
- primary: {
137
- color: "linear-gradient(77.74deg, #e74420ff 11.16%, #fa7b3f 99.55%)",
138
- colorHover: "linear-gradient(77.74deg, #d04036ff 11.16%, #f2621f 99.55%)"
139
- }
140
- };
141
- var RadialBodyBackgroundDesign = {
142
- components: {
143
- MuiCssBaseline: {
144
- styleOverrides: {
145
- "html[data-color-scheme='dark'] body": {
146
- backgroundAttachment: "fixed",
147
- backgroundImage: `
148
- radial-gradient(circle at 65% 30%, rgba(255, 116, 0, 0.15) 10%, rgba(0, 0, 0, 0) 60% 40%),
149
- radial-gradient(circle at 15% 50%, rgba(74, 41, 165, 0.32) 1%, rgba(0, 0, 0, 0) 40% 70%),
150
- radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 0%, var(--mui-palette-background-default) 100%)
151
- `,
152
- backgroundBlendMode: "screen"
153
- },
154
- "html[data-color-scheme='light'] body": {
155
- backgroundAttachment: "fixed",
156
- backgroundImage: `
157
- radial-gradient(circle at 65% 30%, rgba(255, 116, 0, 0.1) 10%, rgba(255, 255, 255, 0) 40% 40%),
158
- radial-gradient(circle at 15% 50%, rgba(74, 41, 165, 0.1) 1%, rgba(255, 255, 255, 0) 40% 70%),
159
- radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, var(--mui-palette-background-default) 100%)
160
- `,
161
- backgroundBlendMode: "normal"
162
- }
163
- }
164
- }
165
- }
166
- };
167
- var baseTheme = createTheme();
168
- var OxygenTheme = createTheme({
134
+
135
+ // src/utils/pxToRem.ts
136
+ var pxToRem = (size) => `${size / 14}rem`;
137
+
138
+ // src/styles/Themes/OxygenBaseTheme.ts
139
+ var OxygenBaseTheme = extendTheme({
140
+ cssVarPrefix: "oxygen",
141
+ colorSchemeSelector: "data-color-scheme",
169
142
  typography: {
170
143
  fontFamily: "'Inter Variable', sans-serif",
171
144
  fontWeightRegular: 400,
172
145
  fontSize: 14,
173
146
  h1: {
174
- fontSize: baseTheme.typography.pxToRem(36),
147
+ fontSize: pxToRem(36),
175
148
  fontWeight: 400
176
149
  },
177
150
  h2: {
178
- fontSize: baseTheme.typography.pxToRem(30),
151
+ fontSize: pxToRem(30),
179
152
  fontWeight: 400
180
153
  },
181
154
  h3: {
182
- fontSize: baseTheme.typography.pxToRem(24),
155
+ fontSize: pxToRem(24),
183
156
  fontWeight: 400
184
157
  },
185
158
  h4: {
186
- fontSize: baseTheme.typography.pxToRem(18),
159
+ fontSize: pxToRem(18),
187
160
  fontWeight: 400
188
161
  },
189
162
  h5: {
190
- fontSize: baseTheme.typography.pxToRem(16),
163
+ fontSize: pxToRem(16),
191
164
  fontWeight: 400
192
165
  },
193
166
  h6: {
194
- fontSize: baseTheme.typography.pxToRem(14),
167
+ fontSize: pxToRem(14),
195
168
  fontWeight: 500
196
169
  },
197
170
  subtitle1: {
198
- fontSize: baseTheme.typography.pxToRem(18)
171
+ fontSize: pxToRem(18)
199
172
  },
200
173
  subtitle2: {
201
- fontSize: baseTheme.typography.pxToRem(14),
174
+ fontSize: pxToRem(14),
202
175
  fontWeight: 400
203
176
  },
204
177
  body1: {
205
- fontSize: baseTheme.typography.pxToRem(14)
178
+ fontSize: pxToRem(14)
206
179
  },
207
180
  body2: {
208
- fontSize: baseTheme.typography.pxToRem(14),
181
+ fontSize: pxToRem(14),
209
182
  fontWeight: 400
210
183
  },
211
184
  caption: {
212
- fontSize: baseTheme.typography.pxToRem(12),
185
+ fontSize: pxToRem(12),
213
186
  fontWeight: 400
214
187
  }
215
188
  },
216
- shadows: noShadows,
189
+ shadows: Array(25).fill("none"),
217
190
  shape: {
218
191
  borderRadius: 15
219
192
  },
220
- cssVariables: {
221
- colorSchemeSelector: "data-color-scheme"
222
- },
223
193
  colorSchemes: {
224
194
  light: {
225
195
  palette: {
@@ -232,7 +202,7 @@ var OxygenTheme = createTheme({
232
202
  },
233
203
  background: {
234
204
  default: "#f5f5f5",
235
- paper: "#ffffff"
205
+ paper: "#ffffffb5"
236
206
  },
237
207
  text: {
238
208
  primary: "#40404B",
@@ -252,7 +222,7 @@ var OxygenTheme = createTheme({
252
222
  },
253
223
  background: {
254
224
  default: "#000000",
255
- paper: "#00000088"
225
+ paper: "#00000045"
256
226
  },
257
227
  text: {
258
228
  primary: "#efefef",
@@ -265,13 +235,10 @@ var OxygenTheme = createTheme({
265
235
  components: {
266
236
  MuiAvatar: {
267
237
  styleOverrides: {
268
- root: ({ theme }) => __spreadValues(__spreadValues({}, theme.applyStyles("light", {
269
- backgroundColor: "#ebebeb",
270
- color: "#40404B"
271
- })), theme.applyStyles("dark", {
272
- backgroundColor: "#3c3c3c",
273
- color: "#D0D3E2"
274
- }))
238
+ root: ({ theme }) => ({
239
+ backgroundColor: theme.vars.palette.secondary.main,
240
+ color: theme.vars.palette.text.primary
241
+ })
275
242
  }
276
243
  },
277
244
  MuiAutocomplete: {
@@ -287,35 +254,56 @@ var OxygenTheme = createTheme({
287
254
  textTransform: "none",
288
255
  fontWeight: 400
289
256
  },
290
- containedPrimary: {
257
+ containedPrimary: ({ theme }) => ({
291
258
  "&:not(:disabled)": {
292
- background: OxygenThemePrimitives.primary.color,
293
- color: "#fff",
259
+ background: `${theme.gradient.primary} !important`,
260
+ color: "#fff !important",
294
261
  "&:hover": {
295
- background: OxygenThemePrimitives.primary.colorHover,
296
- color: "#fff"
262
+ background: `${theme.gradient.primary} !important`,
263
+ opacity: 0.9,
264
+ color: "#fff !important"
297
265
  }
298
266
  }
299
- }
267
+ }),
268
+ outlinedPrimary: ({ theme }) => ({
269
+ borderColor: theme.vars.palette.primary.main,
270
+ color: theme.vars.palette.primary.main,
271
+ "&:hover": {
272
+ borderColor: theme.vars.palette.primary.dark,
273
+ backgroundColor: theme.vars.palette.action.hover
274
+ }
275
+ })
276
+ }
277
+ },
278
+ MuiFab: {
279
+ styleOverrides: {
280
+ primary: ({ theme }) => ({
281
+ background: theme.gradient.primary,
282
+ color: "#fff",
283
+ "&:hover": {
284
+ background: theme.gradient.primary,
285
+ opacity: 0.9
286
+ }
287
+ })
300
288
  }
301
289
  },
302
290
  MuiDialog: {
303
291
  styleOverrides: {
304
- paper: ({ theme }) => __spreadValues(__spreadValues({
305
- WebkitBackdropFilter: "blur(10px)",
306
- backdropFilter: "blur(10px)"
307
- }, theme.applyStyles("light", {
308
- background: "rgba(255, 255, 255, 0.7)"
309
- })), theme.applyStyles("dark", {
310
- background: "rgba(10, 10, 10, 0.7)"
311
- }))
292
+ paper: ({ theme }) => ({
293
+ WebkitBackdropFilter: theme.blur.medium,
294
+ backdropFilter: theme.blur.medium,
295
+ // Use CSS variable - will automatically switch between light/dark
296
+ background: theme.vars.palette.background.paper,
297
+ opacity: 0.7
298
+ })
312
299
  }
313
300
  },
314
301
  MuiDrawer: {
315
302
  styleOverrides: {
316
- paper: ({ theme }) => __spreadValues({}, theme.applyStyles("dark", {
317
- background: "transparent"
318
- }))
303
+ paper: ({ theme }) => ({
304
+ // Paper background is already set by colorSchemes
305
+ background: theme.vars.palette.background.paper
306
+ })
319
307
  }
320
308
  },
321
309
  MuiFormLabel: {
@@ -328,28 +316,23 @@ var OxygenTheme = createTheme({
328
316
  },
329
317
  MuiPaper: {
330
318
  styleOverrides: {
331
- root: ({ theme }) => __spreadValues(__spreadValues({
319
+ root: ({ theme }) => ({
332
320
  borderRadius: theme.shape.borderRadius,
333
- WebkitBackdropFilter: "blur(3px)",
334
- backdropFilter: "blur(3px)"
335
- }, theme.applyStyles("light", {
336
- border: "1px solid #ffffff7a",
337
- background: "rgb(230 230 230 / 5%)",
338
- boxShadow: "0 10px 22px 0 rgba(6, 6, 14, 0.1),0 24px 48px 0 rgba(199, 211, 234, 0.05) inset,0 1px 1px 0 rgba(199, 211, 234, 0.12) inset"
339
- })), theme.applyStyles("dark", {
340
- border: "1px solid #d2d2d20f",
341
- background: "rgb(230 230 230 / 1%)",
342
- boxShadow: "0 24px 32px 0 rgba(6, 6, 14, 0.70),0 24px 48px 0 rgba(199, 211, 234, 0.05) inset,0 1px 1px 0 rgba(199, 211, 234, 0.12) inset"
343
- }))
321
+ WebkitBackdropFilter: theme.blur.light,
322
+ backdropFilter: theme.blur.light,
323
+ border: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
324
+ backgroundColor: theme.vars.palette.background.paper,
325
+ boxShadow: theme.shadows[1]
326
+ })
344
327
  }
345
328
  },
346
329
  MuiPopover: {
347
330
  styleOverrides: {
348
- paper: ({ theme }) => __spreadValues(__spreadValues({}, theme.applyStyles("light", {
349
- background: "#ffffff9c"
350
- })), theme.applyStyles("dark", {
351
- background: "#040404c2"
352
- }))
331
+ paper: ({ theme }) => ({
332
+ // Use CSS variable - automatically switches between colorSchemes
333
+ background: theme.vars.palette.background.paper,
334
+ opacity: 0.95
335
+ })
353
336
  }
354
337
  },
355
338
  MuiTextField: {
@@ -374,21 +357,15 @@ var OxygenTheme = createTheme({
374
357
  },
375
358
  MuiOutlinedInput: {
376
359
  styleOverrides: {
377
- root: ({ theme }) => __spreadValues(__spreadValues({
360
+ root: ({ theme }) => ({
378
361
  fontSize: theme.typography.body2.fontSize,
379
- borderRadius: 8
380
- }, theme.applyStyles("light", {
381
- background: "#ffffffc4"
382
- })), theme.applyStyles("dark", {
383
- background: "#ffffff05"
384
- })),
385
- notchedOutline: ({ theme }) => __spreadValues(__spreadValues({
386
- borderWidth: 1
387
- }, theme.applyStyles("light", {
388
- borderColor: "#d9d9d987"
389
- })), theme.applyStyles("dark", {
390
- borderColor: "#ffffff0d"
391
- }))
362
+ borderRadius: 8,
363
+ background: theme.vars.palette.background.paper
364
+ }),
365
+ notchedOutline: ({ theme }) => ({
366
+ borderWidth: 1,
367
+ borderColor: theme.vars.palette.divider
368
+ })
392
369
  }
393
370
  },
394
371
  MuiMenuItem: {
@@ -401,10 +378,10 @@ var OxygenTheme = createTheme({
401
378
  MuiLink: {
402
379
  styleOverrides: {
403
380
  root: ({ theme }) => ({
404
- color: theme.palette.primary.main,
381
+ color: theme.vars.palette.primary.main,
405
382
  textDecoration: "none",
406
383
  "&:hover": {
407
- color: theme.palette.primary.dark,
384
+ color: theme.vars.palette.primary.dark,
408
385
  textDecoration: "underline"
409
386
  }
410
387
  })
@@ -414,17 +391,13 @@ var OxygenTheme = createTheme({
414
391
  styleOverrides: {
415
392
  root: ({ theme }) => ({
416
393
  borderRadius: 8,
417
- "&.Mui-selected": __spreadProps(__spreadValues(__spreadValues({}, theme.applyStyles("light", {
418
- backgroundColor: theme.palette.action.selected
419
- })), theme.applyStyles("dark", {
420
- backgroundColor: "#ffffff1a"
421
- })), {
422
- "&:hover": __spreadValues(__spreadValues({}, theme.applyStyles("light", {
423
- backgroundColor: theme.palette.action.hover
424
- })), theme.applyStyles("dark", {
425
- backgroundColor: "#ffffff1a"
426
- }))
427
- })
394
+ "&.Mui-selected": {
395
+ // Use CSS variable - automatically adapts to color scheme
396
+ backgroundColor: theme.vars.palette.action.selected,
397
+ "&:hover": {
398
+ backgroundColor: theme.vars.palette.action.hover
399
+ }
400
+ }
428
401
  })
429
402
  }
430
403
  },
@@ -435,56 +408,711 @@ var OxygenTheme = createTheme({
435
408
  backgroundColor: "transparent",
436
409
  overflow: "hidden",
437
410
  "& .MuiDataGrid-columnHeaders": {
438
- backgroundColor: "#ffffff0a",
439
- borderBottom: "1px solid",
440
- borderColor: theme.palette.divider
411
+ backgroundColor: theme.vars.palette.action.hover,
412
+ WebkitBackdropFilter: theme.blur.medium,
413
+ backdropFilter: theme.blur.medium,
414
+ borderBottom: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
415
+ position: "sticky",
416
+ top: 0,
417
+ zIndex: 10
418
+ },
419
+ "& .MuiDataGrid-virtualScroller": {
420
+ marginTop: "0 !important",
421
+ overflow: "auto"
441
422
  }
442
423
  }),
443
424
  columnHeaders: ({ theme }) => ({
444
- backgroundColor: "#ffffff0a",
445
- borderBottom: "1px solid",
446
- borderColor: theme.palette.divider
425
+ backgroundColor: theme.vars.palette.action.hover,
426
+ WebkitBackdropFilter: theme.blur.medium,
427
+ backdropFilter: theme.blur.medium,
428
+ borderBottom: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`
447
429
  }),
448
430
  columnHeader: {
449
431
  backgroundColor: "transparent"
450
432
  },
451
433
  cell: ({ theme }) => ({
452
- borderBottom: "1px solid",
453
- backgroundColor: "transparent",
454
- borderColor: theme.palette.divider
434
+ borderBottom: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
435
+ backgroundColor: "transparent"
436
+ })
437
+ }
438
+ }
439
+ }
440
+ });
441
+ var customProperties = {
442
+ blur: {
443
+ light: "blur(3px)",
444
+ medium: "blur(10px)",
445
+ heavy: "blur(20px)"
446
+ },
447
+ border: {
448
+ width: "1px",
449
+ style: "solid"
450
+ },
451
+ gradient: {
452
+ primary: "linear-gradient(90deg, #F47B20 0%, #EF4223 100%)"
453
+ },
454
+ syntax: {
455
+ light: {
456
+ background: "#f5f5f5",
457
+ text: "#24292e",
458
+ comment: "#6a737d",
459
+ keyword: "#d73a49",
460
+ string: "#032f62",
461
+ function: "#6f42c1",
462
+ number: "#005cc5",
463
+ operator: "#d73a49"
464
+ },
465
+ dark: {
466
+ background: "#1e1e1e",
467
+ text: "#d4d4d4",
468
+ comment: "#6a9955",
469
+ keyword: "#569cd6",
470
+ string: "#ce9178",
471
+ function: "#dcdcaa",
472
+ number: "#b5cea8",
473
+ operator: "#d4d4d4"
474
+ }
475
+ }
476
+ };
477
+ Object.assign(OxygenBaseTheme, customProperties);
478
+ if (OxygenBaseTheme.vars) {
479
+ Object.assign(OxygenBaseTheme.vars, customProperties);
480
+ }
481
+ var OxygenBaseTheme_default = OxygenBaseTheme;
482
+
483
+ // src/styles/Themes/AsgardeoTheme.ts
484
+ import { extendTheme as extendTheme2 } from "@mui/material/styles";
485
+ var AsgardeoTheme = extendTheme2(OxygenBaseTheme_default, {
486
+ components: {
487
+ MuiCssBaseline: {
488
+ styleOverrides: {
489
+ "html[data-color-scheme='dark'] body": {
490
+ backgroundAttachment: "fixed",
491
+ backgroundImage: `
492
+ radial-gradient(circle at 65% 30%, rgb(255 116 0 / 13%) 10%, rgba(0, 0, 0, 0) 60% 40%),
493
+ radial-gradient(circle at 15% 50%, rgb(74 41 165 / 22%) 1%, rgba(0, 0, 0, 0) 40% 70%),
494
+ radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
495
+ `,
496
+ backgroundBlendMode: "screen"
497
+ },
498
+ "html[data-color-scheme='light'] body": {
499
+ backgroundAttachment: "fixed",
500
+ backgroundImage: `
501
+ radial-gradient(circle at 65% 30%, rgba(255, 116, 0, 0.1) 10%, rgba(255, 255, 255, 0) 40% 40%),
502
+ radial-gradient(circle at 15% 50%, rgba(74, 41, 165, 0.1) 1%, rgba(255, 255, 255, 0) 40% 70%),
503
+ radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
504
+ `,
505
+ backgroundBlendMode: "normal"
506
+ }
507
+ }
508
+ }
509
+ }
510
+ });
511
+ var AsgardeoTheme_default = AsgardeoTheme;
512
+
513
+ // src/styles/Themes/ChoreoTheme.ts
514
+ import { extendTheme as extendTheme3 } from "@mui/material/styles";
515
+ var ChoreoThemeBase = extendTheme3(OxygenBaseTheme_default, {
516
+ colorSchemes: {
517
+ light: {
518
+ palette: {
519
+ primary: {
520
+ main: "#646cff",
521
+ light: "#8187ff",
522
+ dark: "#4651cc",
523
+ contrastText: "#ffffff"
524
+ }
525
+ }
526
+ },
527
+ dark: {
528
+ palette: {
529
+ primary: {
530
+ main: "#646cff",
531
+ light: "#8187ff",
532
+ dark: "#4651cc",
533
+ contrastText: "#ffffff"
534
+ }
535
+ }
536
+ }
537
+ },
538
+ components: {
539
+ MuiButton: {
540
+ styleOverrides: {
541
+ containedPrimary: () => ({
542
+ "&:not(:disabled)": {
543
+ background: "linear-gradient(77.74deg, #5567d5 11.16%, #7155d5ff 99.55%) !important",
544
+ color: "#fff !important",
545
+ "&:hover": {
546
+ background: "linear-gradient(77.74deg, #5567d5 11.16%, #7155d5ff 99.55%) !important",
547
+ opacity: 0.9,
548
+ color: "#fff !important"
549
+ }
550
+ }
551
+ })
552
+ }
553
+ },
554
+ MuiCssBaseline: {
555
+ styleOverrides: {
556
+ "html[data-color-scheme='dark'] body": {
557
+ backgroundAttachment: "fixed",
558
+ backgroundImage: `
559
+ radial-gradient(circle at 65% 30%, rgb(85 103 213 / 20%) 10%, rgba(0, 0, 0, 0) 60% 40%),
560
+ radial-gradient(circle at 15% 50%, rgb(113 85 213 / 25%) 1%, rgba(0, 0, 0, 0) 40% 70%),
561
+ radial-gradient(circle at center, rgba(0, 0, 0, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
562
+ `,
563
+ backgroundBlendMode: "screen"
564
+ },
565
+ "html[data-color-scheme='light'] body": {
566
+ backgroundAttachment: "fixed",
567
+ backgroundImage: `
568
+ radial-gradient(circle at 65% 30%, rgba(100, 108, 255, 0.12) 10%, rgba(255, 255, 255, 0) 40% 40%),
569
+ radial-gradient(circle at 15% 50%, rgba(113, 85, 213, 0.15) 1%, rgba(255, 255, 255, 0) 40% 70%),
570
+ radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, var(--oxygen-palette-background-default) 100%)
571
+ `,
572
+ backgroundBlendMode: "normal"
573
+ }
574
+ }
575
+ }
576
+ }
577
+ });
578
+ var choreoGradient = {
579
+ gradient: {
580
+ primary: "linear-gradient(77.74deg, #5567d5 11.16%, #7155d5ff 99.55%)"
581
+ }
582
+ };
583
+ Object.assign(ChoreoThemeBase, choreoGradient);
584
+ if (ChoreoThemeBase.vars) {
585
+ Object.assign(ChoreoThemeBase.vars, choreoGradient);
586
+ }
587
+ var ChoreoTheme = ChoreoThemeBase;
588
+ var ChoreoTheme_default = ChoreoTheme;
589
+
590
+ // src/styles/Themes/ClassicTheme.ts
591
+ import { extendTheme as extendTheme4 } from "@mui/material/styles";
592
+ var ClassicThemeBase = extendTheme4(OxygenBaseTheme_default, {
593
+ shadows: [
594
+ "none",
595
+ "0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)",
596
+ "0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",
597
+ "0px 3px 3px -2px rgba(0,0,0,0.2),0px 3px 4px 0px rgba(0,0,0,0.14),0px 1px 8px 0px rgba(0,0,0,0.12)",
598
+ "0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)",
599
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 5px 8px 0px rgba(0,0,0,0.14),0px 1px 14px 0px rgba(0,0,0,0.12)",
600
+ "0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)",
601
+ "0px 4px 5px -2px rgba(0,0,0,0.2),0px 7px 10px 1px rgba(0,0,0,0.14),0px 2px 16px 1px rgba(0,0,0,0.12)",
602
+ "0px 5px 5px -3px rgba(0,0,0,0.2),0px 8px 10px 1px rgba(0,0,0,0.14),0px 3px 14px 2px rgba(0,0,0,0.12)",
603
+ "0px 5px 6px -3px rgba(0,0,0,0.2),0px 9px 12px 1px rgba(0,0,0,0.14),0px 3px 16px 2px rgba(0,0,0,0.12)",
604
+ "0px 6px 6px -3px rgba(0,0,0,0.2),0px 10px 14px 1px rgba(0,0,0,0.14),0px 4px 18px 3px rgba(0,0,0,0.12)",
605
+ "0px 6px 7px -4px rgba(0,0,0,0.2),0px 11px 15px 1px rgba(0,0,0,0.14),0px 4px 20px 3px rgba(0,0,0,0.12)",
606
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 12px 17px 2px rgba(0,0,0,0.14),0px 5px 22px 4px rgba(0,0,0,0.12)",
607
+ "0px 7px 8px -4px rgba(0,0,0,0.2),0px 13px 19px 2px rgba(0,0,0,0.14),0px 5px 24px 4px rgba(0,0,0,0.12)",
608
+ "0px 7px 9px -4px rgba(0,0,0,0.2),0px 14px 21px 2px rgba(0,0,0,0.14),0px 5px 26px 4px rgba(0,0,0,0.12)",
609
+ "0px 8px 9px -5px rgba(0,0,0,0.2),0px 15px 22px 2px rgba(0,0,0,0.14),0px 6px 28px 5px rgba(0,0,0,0.12)",
610
+ "0px 8px 10px -5px rgba(0,0,0,0.2),0px 16px 24px 2px rgba(0,0,0,0.14),0px 6px 30px 5px rgba(0,0,0,0.12)",
611
+ "0px 8px 11px -5px rgba(0,0,0,0.2),0px 17px 26px 2px rgba(0,0,0,0.14),0px 6px 32px 5px rgba(0,0,0,0.12)",
612
+ "0px 9px 11px -5px rgba(0,0,0,0.2),0px 18px 28px 2px rgba(0,0,0,0.14),0px 7px 34px 6px rgba(0,0,0,0.12)",
613
+ "0px 9px 12px -6px rgba(0,0,0,0.2),0px 19px 29px 2px rgba(0,0,0,0.14),0px 7px 36px 6px rgba(0,0,0,0.12)",
614
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 20px 31px 3px rgba(0,0,0,0.14),0px 8px 38px 7px rgba(0,0,0,0.12)",
615
+ "0px 10px 13px -6px rgba(0,0,0,0.2),0px 21px 33px 3px rgba(0,0,0,0.14),0px 8px 40px 7px rgba(0,0,0,0.12)",
616
+ "0px 10px 14px -6px rgba(0,0,0,0.2),0px 22px 35px 3px rgba(0,0,0,0.14),0px 8px 42px 7px rgba(0,0,0,0.12)",
617
+ "0px 11px 14px -7px rgba(0,0,0,0.2),0px 23px 36px 3px rgba(0,0,0,0.14),0px 9px 44px 8px rgba(0,0,0,0.12)",
618
+ "0px 11px 15px -7px rgba(0,0,0,0.2),0px 24px 38px 3px rgba(0,0,0,0.14),0px 9px 46px 8px rgba(0,0,0,0.12)"
619
+ ],
620
+ shape: {
621
+ borderRadius: 4
622
+ },
623
+ colorSchemes: {
624
+ light: {
625
+ palette: {
626
+ primary: {
627
+ main: "#1976d2",
628
+ light: "#42a5f5",
629
+ dark: "#1565c0",
630
+ contrastText: "#ffffff"
631
+ },
632
+ secondary: {
633
+ main: "#9c27b0",
634
+ light: "#ba68c8",
635
+ dark: "#7b1fa2",
636
+ contrastText: "#ffffff"
637
+ },
638
+ background: {
639
+ default: "#fafafa",
640
+ paper: "#ffffff"
641
+ },
642
+ text: {
643
+ primary: "rgba(0, 0, 0, 0.87)",
644
+ secondary: "rgba(0, 0, 0, 0.6)"
645
+ },
646
+ divider: "rgba(0, 0, 0, 0.12)"
647
+ }
648
+ },
649
+ dark: {
650
+ palette: {
651
+ primary: {
652
+ main: "#90caf9",
653
+ light: "#e3f2fd",
654
+ dark: "#42a5f5",
655
+ contrastText: "rgba(0, 0, 0, 0.87)"
656
+ },
657
+ secondary: {
658
+ main: "#ce93d8",
659
+ light: "#f3e5f5",
660
+ dark: "#ab47bc",
661
+ contrastText: "rgba(0, 0, 0, 0.87)"
662
+ },
663
+ background: {
664
+ default: "#121212",
665
+ paper: "#1e1e1e"
666
+ },
667
+ text: {
668
+ primary: "#ffffff",
669
+ secondary: "rgba(255, 255, 255, 0.7)"
670
+ },
671
+ divider: "rgba(255, 255, 255, 0.12)"
672
+ }
673
+ }
674
+ },
675
+ components: {
676
+ MuiButton: {
677
+ styleOverrides: {
678
+ root: {
679
+ borderRadius: 4,
680
+ textTransform: "uppercase",
681
+ fontWeight: 500
682
+ },
683
+ containedPrimary: ({ theme }) => ({
684
+ background: theme.vars.palette.primary.main,
685
+ color: theme.vars.palette.primary.contrastText,
686
+ boxShadow: "0px 3px 1px -2px rgba(0,0,0,0.2),0px 2px 2px 0px rgba(0,0,0,0.14),0px 1px 5px 0px rgba(0,0,0,0.12)",
687
+ "&:hover": {
688
+ backgroundColor: theme.vars.palette.primary.dark,
689
+ boxShadow: "0px 2px 4px -1px rgba(0,0,0,0.2),0px 4px 5px 0px rgba(0,0,0,0.14),0px 1px 10px 0px rgba(0,0,0,0.12)"
690
+ }
691
+ })
692
+ }
693
+ },
694
+ MuiCard: {
695
+ styleOverrides: {
696
+ root: {
697
+ boxShadow: "0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)"
698
+ }
699
+ }
700
+ },
701
+ MuiPaper: {
702
+ styleOverrides: {
703
+ elevation1: {
704
+ boxShadow: "0px 2px 1px -1px rgba(0,0,0,0.2),0px 1px 1px 0px rgba(0,0,0,0.14),0px 1px 3px 0px rgba(0,0,0,0.12)"
705
+ }
706
+ }
707
+ }
708
+ }
709
+ });
710
+ var ClassicTheme = ClassicThemeBase;
711
+ Object.assign(ClassicTheme, {
712
+ gradient: {
713
+ primary: "none"
714
+ }
715
+ });
716
+ if (ClassicTheme.vars) {
717
+ Object.assign(ClassicTheme.vars, {
718
+ gradient: {
719
+ primary: "none"
720
+ }
721
+ });
722
+ }
723
+ var ClassicTheme_default = ClassicTheme;
724
+
725
+ // src/styles/Themes/HighContrastTheme.ts
726
+ import { extendTheme as extendTheme5 } from "@mui/material/styles";
727
+ var HighContrastThemeBase = extendTheme5(OxygenBaseTheme_default, {
728
+ colorSchemes: {
729
+ light: {
730
+ palette: {
731
+ primary: {
732
+ main: "#0000FF",
733
+ light: "#4040FF",
734
+ dark: "#0000CC",
735
+ contrastText: "#FFFFFF"
736
+ },
737
+ secondary: {
738
+ main: "#FFD700",
739
+ light: "#FFED4E",
740
+ dark: "#CCB000",
741
+ contrastText: "#000000"
742
+ },
743
+ background: {
744
+ default: "#FFFFFF",
745
+ paper: "#FFFFFF"
746
+ },
747
+ text: {
748
+ primary: "#000000",
749
+ secondary: "#000000"
750
+ },
751
+ divider: "#000000",
752
+ error: {
753
+ main: "#CC0000",
754
+ contrastText: "#FFFFFF"
755
+ },
756
+ warning: {
757
+ main: "#FF6600",
758
+ contrastText: "#000000"
759
+ },
760
+ info: {
761
+ main: "#0066CC",
762
+ contrastText: "#FFFFFF"
763
+ },
764
+ success: {
765
+ main: "#008000",
766
+ contrastText: "#FFFFFF"
767
+ }
768
+ }
769
+ },
770
+ dark: {
771
+ palette: {
772
+ primary: {
773
+ main: "#00FFFF",
774
+ light: "#66FFFF",
775
+ dark: "#00CCCC",
776
+ contrastText: "#000000"
777
+ },
778
+ secondary: {
779
+ main: "#FFFF00",
780
+ light: "#FFFF66",
781
+ dark: "#CCCC00",
782
+ contrastText: "#000000"
783
+ },
784
+ background: {
785
+ default: "#000000",
786
+ paper: "#000000"
787
+ },
788
+ text: {
789
+ primary: "#FFFFFF",
790
+ secondary: "#FFFFFF"
791
+ },
792
+ divider: "#FFFFFF",
793
+ error: {
794
+ main: "#FF0000",
795
+ contrastText: "#FFFFFF"
796
+ },
797
+ warning: {
798
+ main: "#FF9900",
799
+ contrastText: "#000000"
800
+ },
801
+ info: {
802
+ main: "#00BFFF",
803
+ contrastText: "#000000"
804
+ },
805
+ success: {
806
+ main: "#00FF00",
807
+ contrastText: "#000000"
808
+ }
809
+ }
810
+ }
811
+ },
812
+ border: {
813
+ width: "3px",
814
+ style: "solid"
815
+ },
816
+ components: {
817
+ MuiButton: {
818
+ styleOverrides: {
819
+ root: {
820
+ borderRadius: 0,
821
+ textTransform: "none",
822
+ fontWeight: 700,
823
+ border: "3px solid",
824
+ "&:hover": {
825
+ borderWidth: "3px"
826
+ }
827
+ },
828
+ containedPrimary: ({ theme }) => ({
829
+ backgroundColor: theme.vars.palette.primary.main,
830
+ color: theme.vars.palette.primary.contrastText,
831
+ borderColor: theme.vars.palette.primary.main,
832
+ "&:hover": {
833
+ backgroundColor: theme.vars.palette.primary.dark,
834
+ borderColor: theme.vars.palette.primary.dark
835
+ }
836
+ }),
837
+ contained: ({ theme }) => ({
838
+ borderColor: theme.vars.palette.primary.main
839
+ }),
840
+ outlined: ({ theme }) => ({
841
+ borderWidth: "3px",
842
+ borderColor: theme.vars.palette.primary.main,
843
+ "&:hover": {
844
+ borderWidth: "3px",
845
+ backgroundColor: theme.vars.palette.action.hover
846
+ }
455
847
  })
456
848
  }
849
+ },
850
+ MuiCard: {
851
+ styleOverrides: {
852
+ root: {
853
+ border: "3px solid",
854
+ borderRadius: 0
855
+ }
856
+ }
857
+ },
858
+ MuiPaper: {
859
+ styleOverrides: {
860
+ root: ({ theme }) => ({
861
+ border: `3px solid ${theme.vars.palette.divider}`,
862
+ borderRadius: 0
863
+ }),
864
+ outlined: {
865
+ borderWidth: "3px"
866
+ }
867
+ }
868
+ },
869
+ MuiTextField: {
870
+ styleOverrides: {
871
+ root: {
872
+ "& .MuiOutlinedInput-root": {
873
+ "& fieldset": {
874
+ borderWidth: "3px"
875
+ },
876
+ "&:hover fieldset": {
877
+ borderWidth: "3px"
878
+ },
879
+ "&.Mui-focused fieldset": {
880
+ borderWidth: "3px"
881
+ }
882
+ }
883
+ }
884
+ }
885
+ },
886
+ MuiLink: {
887
+ styleOverrides: {
888
+ root: {
889
+ textDecoration: "underline",
890
+ textDecorationThickness: "2px",
891
+ textUnderlineOffset: "4px",
892
+ fontWeight: 700
893
+ }
894
+ }
895
+ },
896
+ MuiDivider: {
897
+ styleOverrides: {
898
+ root: {
899
+ borderWidth: "2px"
900
+ }
901
+ }
457
902
  }
458
903
  }
459
904
  });
460
- var OxygenTheme_default = OxygenTheme;
905
+ var HighContrastTheme = HighContrastThemeBase;
906
+ Object.assign(HighContrastTheme, {
907
+ gradient: {
908
+ primary: "none"
909
+ }
910
+ });
911
+ if (HighContrastTheme.vars) {
912
+ Object.assign(HighContrastTheme.vars, {
913
+ gradient: {
914
+ primary: "none"
915
+ }
916
+ });
917
+ }
918
+ var HighContrastTheme_default = HighContrastTheme;
461
919
 
462
920
  // src/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.tsx
463
- import { useMemo } from "react";
464
- import { ThemeProvider as MUIThemeProvider, StyledEngineProvider, createTheme as createTheme2 } from "@mui/material/styles";
921
+ import { ThemeProvider, StyledEngineProvider } from "@mui/material/styles";
465
922
  import { CssBaseline } from "@mui/material";
923
+ import { createContext, useContext, useState } from "react";
466
924
  import { jsx, jsxs } from "react/jsx-runtime";
925
+ var defaultThemes = [
926
+ {
927
+ key: "default",
928
+ label: "Default",
929
+ theme: OxygenBaseTheme_default
930
+ },
931
+ {
932
+ key: "asgardeo",
933
+ label: "Asgardeo",
934
+ theme: AsgardeoTheme_default
935
+ },
936
+ {
937
+ key: "choreo",
938
+ label: "Choreo",
939
+ theme: ChoreoTheme_default
940
+ }
941
+ ];
942
+ var ThemeSwitcherContext = createContext(null);
943
+ var useThemeSwitcher = () => {
944
+ const context = useContext(ThemeSwitcherContext);
945
+ if (!context) {
946
+ throw new Error("useThemeSwitcher must be used within OxygenUIThemeProvider with themes prop");
947
+ }
948
+ return context;
949
+ };
467
950
  function OxygenUIThemeProvider({
468
951
  children,
469
952
  theme,
470
- radialBackground = false
953
+ themes,
954
+ initialTheme
471
955
  }) {
472
- const resolvedTheme = useMemo(() => {
473
- if (theme) return theme;
474
- if (!radialBackground) return OxygenTheme_default;
475
- return createTheme2(OxygenTheme_default, RadialBodyBackgroundDesign);
476
- }, [theme, radialBackground]);
477
- return /* @__PURE__ */ jsx(StyledEngineProvider, { injectFirst: true, children: /* @__PURE__ */ jsxs(MUIThemeProvider, { theme: resolvedTheme, children: [
478
- /* @__PURE__ */ jsx(CssBaseline, {}),
956
+ var _a, _b, _c;
957
+ const useThemeSwitching = !!themes;
958
+ const themeOptions = themes || defaultThemes;
959
+ const [currentThemeKey, setCurrentThemeKey] = useState(
960
+ initialTheme || ((_a = themeOptions[0]) == null ? void 0 : _a.key) || "default"
961
+ );
962
+ let resolvedTheme;
963
+ if (useThemeSwitching) {
964
+ resolvedTheme = ((_b = themeOptions.find((t) => t.key === currentThemeKey)) == null ? void 0 : _b.theme) || ((_c = themeOptions[0]) == null ? void 0 : _c.theme);
965
+ } else {
966
+ resolvedTheme = theme || OxygenBaseTheme_default;
967
+ }
968
+ const setTheme = (themeKey) => {
969
+ if (themeOptions.some((t) => t.key === themeKey)) {
970
+ setCurrentThemeKey(themeKey);
971
+ }
972
+ };
973
+ const isActive = (themeKey) => currentThemeKey === themeKey;
974
+ const contextValue = {
975
+ theme: resolvedTheme,
976
+ currentTheme: currentThemeKey,
977
+ themes: themeOptions,
978
+ setTheme,
979
+ isActive
980
+ };
981
+ const content = /* @__PURE__ */ jsx(StyledEngineProvider, { injectFirst: true, children: /* @__PURE__ */ jsxs(ThemeProvider, { theme: resolvedTheme, children: [
982
+ /* @__PURE__ */ jsx(CssBaseline, { enableColorScheme: true }),
479
983
  children
480
984
  ] }) });
985
+ if (useThemeSwitching) {
986
+ return /* @__PURE__ */ jsx(ThemeSwitcherContext.Provider, { value: contextValue, children: content });
987
+ }
988
+ return content;
481
989
  }
482
990
 
991
+ // src/components/CodeBlock/CodeBlock.tsx
992
+ import React2, { useEffect } from "react";
993
+ import { Box, useTheme } from "@mui/material";
994
+ import Prism from "prismjs";
995
+ import "prismjs/components/prism-javascript";
996
+ import "prismjs/components/prism-typescript";
997
+ import "prismjs/components/prism-jsx";
998
+ import "prismjs/components/prism-tsx";
999
+ import "prismjs/components/prism-css";
1000
+ import "prismjs/components/prism-bash";
1001
+ import "prismjs/components/prism-json";
1002
+ import "prismjs/components/prism-markup";
1003
+ import { jsx as jsx2 } from "react/jsx-runtime";
1004
+ var CodeBlock = ({
1005
+ code,
1006
+ language = "tsx",
1007
+ showLineNumbers = false
1008
+ }) => {
1009
+ var _a, _b, _c, _d, _e, _f;
1010
+ const theme = useTheme();
1011
+ const [isDark, setIsDark] = React2.useState(false);
1012
+ React2.useEffect(() => {
1013
+ const checkColorScheme = () => {
1014
+ const htmlElement = document.documentElement;
1015
+ const colorScheme = htmlElement.getAttribute("data-color-scheme");
1016
+ setIsDark(colorScheme === "dark" || theme.palette.mode === "dark");
1017
+ };
1018
+ checkColorScheme();
1019
+ const observer = new MutationObserver(checkColorScheme);
1020
+ observer.observe(document.documentElement, {
1021
+ attributes: true,
1022
+ attributeFilter: ["data-color-scheme"]
1023
+ });
1024
+ return () => observer.disconnect();
1025
+ }, [theme.palette.mode]);
1026
+ useEffect(() => {
1027
+ Prism.highlightAll();
1028
+ }, [code, language]);
1029
+ const defaultColors = {
1030
+ background: isDark ? "#1e1e1e" : "#f5f5f5",
1031
+ text: isDark ? "#d4d4d4" : "#24292e",
1032
+ comment: isDark ? "#6a9955" : "#6a737d",
1033
+ keyword: isDark ? "#569cd6" : "#d73a49",
1034
+ string: isDark ? "#ce9178" : "#032f62",
1035
+ function: isDark ? "#dcdcaa" : "#6f42c1",
1036
+ number: isDark ? "#b5cea8" : "#005cc5",
1037
+ operator: isDark ? "#d4d4d4" : "#d73a49"
1038
+ };
1039
+ const colors2 = (isDark ? (_b = (_a = theme.vars) == null ? void 0 : _a.syntax) == null ? void 0 : _b.dark : (_d = (_c = theme.vars) == null ? void 0 : _c.syntax) == null ? void 0 : _d.light) || defaultColors;
1040
+ return /* @__PURE__ */ jsx2(
1041
+ Box,
1042
+ {
1043
+ sx: __spreadValues({
1044
+ position: "relative",
1045
+ borderRadius: 1,
1046
+ overflow: "hidden",
1047
+ border: `1px solid ${((_e = theme.vars) == null ? void 0 : _e.palette.divider) || theme.palette.divider}`,
1048
+ mb: 2,
1049
+ "& pre": {
1050
+ margin: 0,
1051
+ padding: 2,
1052
+ overflow: "auto",
1053
+ backgroundColor: colors2.background,
1054
+ color: colors2.text,
1055
+ fontFamily: "'Consolas', 'Monaco', 'Courier New', monospace",
1056
+ fontSize: "0.875rem",
1057
+ lineHeight: 1.6
1058
+ },
1059
+ "& code": {
1060
+ fontFamily: "inherit",
1061
+ fontSize: "inherit",
1062
+ color: colors2.text
1063
+ },
1064
+ // Prism.js syntax highlighting colors
1065
+ "& .token.comment, & .token.prolog, & .token.doctype, & .token.cdata": {
1066
+ color: colors2.comment
1067
+ },
1068
+ "& .token.punctuation": {
1069
+ color: colors2.text
1070
+ },
1071
+ "& .token.property, & .token.tag, & .token.boolean, & .token.constant, & .token.symbol, & .token.deleted": {
1072
+ color: colors2.keyword
1073
+ },
1074
+ "& .token.selector, & .token.attr-name, & .token.string, & .token.char, & .token.builtin, & .token.inserted": {
1075
+ color: colors2.string
1076
+ },
1077
+ "& .token.operator, & .token.entity, & .token.url": {
1078
+ color: colors2.operator
1079
+ },
1080
+ "& .token.atrule, & .token.attr-value, & .token.keyword": {
1081
+ color: colors2.keyword
1082
+ },
1083
+ "& .token.function, & .token.class-name": {
1084
+ color: colors2.function
1085
+ },
1086
+ "& .token.regex, & .token.important, & .token.variable": {
1087
+ color: colors2.keyword
1088
+ },
1089
+ "& .token.number": {
1090
+ color: colors2.number
1091
+ }
1092
+ }, showLineNumbers && {
1093
+ "& .line-numbers-rows": {
1094
+ borderRight: `1px solid ${((_f = theme.vars) == null ? void 0 : _f.palette.divider) || theme.palette.divider}`
1095
+ }
1096
+ }),
1097
+ children: /* @__PURE__ */ jsx2(
1098
+ Box,
1099
+ {
1100
+ component: "pre",
1101
+ className: showLineNumbers ? "line-numbers" : "",
1102
+ children: /* @__PURE__ */ jsx2("code", { className: `language-${language}`, children: code })
1103
+ }
1104
+ )
1105
+ }
1106
+ );
1107
+ };
1108
+ CodeBlock.displayName = "CodeBlock";
1109
+ var CodeBlock_default = CodeBlock;
1110
+
483
1111
  // src/components/ColorSchemeImage/ColorSchemeImage.tsx
484
- import Box from "@mui/material/Box";
1112
+ import Box2 from "@mui/material/Box";
485
1113
  import { useColorScheme } from "@mui/material/styles";
486
1114
  import useMediaQuery from "@mui/material/useMediaQuery";
487
- import { jsx as jsx2 } from "react/jsx-runtime";
1115
+ import { jsx as jsx3 } from "react/jsx-runtime";
488
1116
  function ColorSchemeImage(_a) {
489
1117
  var _b = _a, { src, alt, width = 16, height = 16 } = _b, rest = __objRest(_b, ["src", "alt", "width", "height"]);
490
1118
  const { mode } = useColorScheme();
@@ -502,7 +1130,7 @@ function ColorSchemeImage(_a) {
502
1130
  } else {
503
1131
  imageAlt = actualMode === "dark" ? alt.dark : alt.light;
504
1132
  }
505
- return /* @__PURE__ */ jsx2(Box, __spreadValues({ component: "img", src: imageSrc, alt: imageAlt, width, height }, rest));
1133
+ return /* @__PURE__ */ jsx3(Box2, __spreadValues({ component: "img", src: imageSrc, alt: imageAlt, width, height }, rest));
506
1134
  }
507
1135
 
508
1136
  // src/components/ColorSchemeToggle/ColorSchemeToggle.tsx
@@ -510,7 +1138,7 @@ import { useColorScheme as useColorScheme2 } from "@mui/material/styles";
510
1138
  import IconButton from "@mui/material/IconButton";
511
1139
  import { Moon, Monitor, Sun } from "@wso2/oxygen-ui-icons-react";
512
1140
  import { Tooltip } from "@mui/material";
513
- import { jsx as jsx3 } from "react/jsx-runtime";
1141
+ import { jsx as jsx4 } from "react/jsx-runtime";
514
1142
  var ColorSchemeToggle = (_a) => {
515
1143
  var _b = _a, {
516
1144
  darkModeIcon,
@@ -534,24 +1162,354 @@ var ColorSchemeToggle = (_a) => {
534
1162
  const ColorSchemeIcon = () => {
535
1163
  switch (currentMode) {
536
1164
  case "light":
537
- return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */ jsx3(Sun, {});
1165
+ return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */ jsx4(Sun, {});
538
1166
  case "dark":
539
- return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */ jsx3(Moon, {});
1167
+ return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */ jsx4(Moon, {});
540
1168
  default:
541
- return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */ jsx3(Monitor, {});
1169
+ return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */ jsx4(Monitor, {});
542
1170
  }
543
1171
  };
544
- return /* @__PURE__ */ jsx3(Tooltip, { title: `${currentMode.charAt(0).toUpperCase()}${currentMode.slice(1)} Mode`, children: /* @__PURE__ */ jsx3(IconButton, __spreadProps(__spreadValues({}, buttonProps), { onClick: () => setMode(nextMode(currentMode)), children: /* @__PURE__ */ jsx3(ColorSchemeIcon, {}) })) });
1172
+ return /* @__PURE__ */ jsx4(Tooltip, { title: `${currentMode.charAt(0).toUpperCase()}${currentMode.slice(1)} Mode`, children: /* @__PURE__ */ jsx4(IconButton, __spreadProps(__spreadValues({}, buttonProps), { onClick: () => setMode(nextMode(currentMode)), children: /* @__PURE__ */ jsx4(ColorSchemeIcon, {}) })) });
545
1173
  };
546
1174
  var ColorSchemeToggle_default = ColorSchemeToggle;
547
1175
 
1176
+ // src/components/ComplexSelect/ComplexSelect.tsx
1177
+ import MuiSelect, { selectClasses } from "@mui/material/Select";
1178
+ import MuiFormControl from "@mui/material/FormControl";
1179
+ import MuiInputLabel from "@mui/material/InputLabel";
1180
+
1181
+ // src/components/ComplexSelect/ComplexSelectListHeader.tsx
1182
+ import MuiListSubheader from "@mui/material/ListSubheader";
1183
+ import { jsx as jsx5 } from "react/jsx-runtime";
1184
+ function ComplexSelectListHeader(_a) {
1185
+ var _b = _a, { children, sx } = _b, props = __objRest(_b, ["children", "sx"]);
1186
+ return /* @__PURE__ */ jsx5(MuiListSubheader, __spreadProps(__spreadValues({ sx: __spreadValues({ pt: 0 }, sx) }, props), { children }));
1187
+ }
1188
+ var ComplexSelectListHeader_default = ComplexSelectListHeader;
1189
+
1190
+ // src/components/ComplexSelect/ComplexSelectMenuItem.tsx
1191
+ import MuiMenuItem from "@mui/material/MenuItem";
1192
+
1193
+ // src/components/ComplexSelect/ComplexSelectMenuItemAvatar.tsx
1194
+ import { styled } from "@mui/material/styles";
1195
+ import MuiListItemAvatar from "@mui/material/ListItemAvatar";
1196
+ import MuiAvatar from "@mui/material/Avatar";
1197
+ import { jsx as jsx6 } from "react/jsx-runtime";
1198
+ var StyledAvatar = styled(MuiAvatar)(({ theme }) => ({
1199
+ width: 28,
1200
+ height: 28,
1201
+ backgroundColor: (theme.vars || theme).palette.background.paper,
1202
+ color: (theme.vars || theme).palette.text.secondary,
1203
+ border: `1px solid ${(theme.vars || theme).palette.divider}`
1204
+ }));
1205
+ var StyledListItemAvatar = styled(MuiListItemAvatar)({
1206
+ minWidth: 0,
1207
+ marginRight: 12
1208
+ });
1209
+ function ComplexSelectMenuItemAvatar(_a) {
1210
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1211
+ return /* @__PURE__ */ jsx6(StyledListItemAvatar, { children: /* @__PURE__ */ jsx6(StyledAvatar, __spreadProps(__spreadValues({}, props), { children })) });
1212
+ }
1213
+ var ComplexSelectMenuItemAvatar_default = ComplexSelectMenuItemAvatar;
1214
+
1215
+ // src/components/ComplexSelect/ComplexSelectMenuItemText.tsx
1216
+ import MuiListItemText from "@mui/material/ListItemText";
1217
+ import { jsx as jsx7 } from "react/jsx-runtime";
1218
+ function ComplexSelectMenuItemText(_a) {
1219
+ var _b = _a, { primary, secondary } = _b, props = __objRest(_b, ["primary", "secondary"]);
1220
+ return /* @__PURE__ */ jsx7(MuiListItemText, __spreadValues({ primary, secondary }, props));
1221
+ }
1222
+ var ComplexSelectMenuItemText_default = ComplexSelectMenuItemText;
1223
+
1224
+ // src/components/ComplexSelect/ComplexSelectMenuItemIcon.tsx
1225
+ import MuiListItemIcon from "@mui/material/ListItemIcon";
1226
+ import { jsx as jsx8 } from "react/jsx-runtime";
1227
+ function ComplexSelectMenuItemIcon(_a) {
1228
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1229
+ return /* @__PURE__ */ jsx8(MuiListItemIcon, __spreadProps(__spreadValues({}, props), { children }));
1230
+ }
1231
+ var ComplexSelectMenuItemIcon_default = ComplexSelectMenuItemIcon;
1232
+
1233
+ // src/components/ComplexSelect/ComplexSelectMenuItem.tsx
1234
+ import { jsx as jsx9 } from "react/jsx-runtime";
1235
+ var ComplexSelectMenuItem = Object.assign(
1236
+ (_a) => {
1237
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1238
+ return /* @__PURE__ */ jsx9(MuiMenuItem, __spreadProps(__spreadValues({}, props), { children }));
1239
+ },
1240
+ {
1241
+ Avatar: ComplexSelectMenuItemAvatar_default,
1242
+ Text: ComplexSelectMenuItemText_default,
1243
+ Icon: ComplexSelectMenuItemIcon_default
1244
+ }
1245
+ );
1246
+ var ComplexSelectMenuItem_default = ComplexSelectMenuItem;
1247
+
1248
+ // src/components/ComplexSelect/ComplexSelectDivider.tsx
1249
+ import MuiDivider from "@mui/material/Divider";
1250
+ import { jsx as jsx10 } from "react/jsx-runtime";
1251
+ function ComplexSelectDivider(_a) {
1252
+ var _b = _a, { sx } = _b, props = __objRest(_b, ["sx"]);
1253
+ return /* @__PURE__ */ jsx10(MuiDivider, __spreadValues({ sx: __spreadValues({ mx: -1 }, sx) }, props));
1254
+ }
1255
+ var ComplexSelectDivider_default = ComplexSelectDivider;
1256
+
1257
+ // src/components/ComplexSelect/ComplexSelect.tsx
1258
+ import { jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
1259
+ function ComplexSelect(_a) {
1260
+ var _b = _a, { children, sx, label, labelId } = _b, props = __objRest(_b, ["children", "sx", "label", "labelId"]);
1261
+ const selectContent = /* @__PURE__ */ jsx11(
1262
+ MuiSelect,
1263
+ __spreadProps(__spreadValues({}, props), {
1264
+ label,
1265
+ labelId,
1266
+ sx: __spreadValues({
1267
+ maxHeight: 56,
1268
+ "&.MuiList-root": {
1269
+ p: "8px"
1270
+ },
1271
+ [`& .${selectClasses.select}`]: {
1272
+ display: "flex",
1273
+ alignItems: "center",
1274
+ gap: "2px",
1275
+ pl: 1
1276
+ }
1277
+ }, sx),
1278
+ children
1279
+ })
1280
+ );
1281
+ if (label) {
1282
+ const generatedLabelId = labelId || `complex-select-label-${Math.random().toString(36).substr(2, 9)}`;
1283
+ return /* @__PURE__ */ jsxs2(MuiFormControl, { fullWidth: props.fullWidth, sx: { minWidth: 120 }, children: [
1284
+ /* @__PURE__ */ jsx11(MuiInputLabel, { id: generatedLabelId, children: label }),
1285
+ /* @__PURE__ */ jsx11(
1286
+ MuiSelect,
1287
+ __spreadProps(__spreadValues({}, props), {
1288
+ label,
1289
+ labelId: generatedLabelId,
1290
+ sx: __spreadValues({
1291
+ maxHeight: 56,
1292
+ "&.MuiList-root": {
1293
+ p: "8px"
1294
+ },
1295
+ [`& .${selectClasses.select}`]: {
1296
+ display: "flex",
1297
+ alignItems: "center",
1298
+ gap: "2px",
1299
+ pl: 1
1300
+ }
1301
+ }, sx),
1302
+ children
1303
+ })
1304
+ )
1305
+ ] });
1306
+ }
1307
+ return selectContent;
1308
+ }
1309
+ var ComplexSelectCompound = Object.assign(ComplexSelect, {
1310
+ ListHeader: ComplexSelectListHeader_default,
1311
+ MenuItem: ComplexSelectMenuItem_default,
1312
+ Divider: ComplexSelectDivider_default
1313
+ });
1314
+ var ComplexSelect_default = ComplexSelectCompound;
1315
+
1316
+ // src/components/PageTitle/PageTitle.tsx
1317
+ import React3 from "react";
1318
+ import { styled as styled6 } from "@mui/material/styles";
1319
+
1320
+ // src/components/PageTitle/PageTitleHeader.tsx
1321
+ import { styled as styled2 } from "@mui/material/styles";
1322
+ import Typography from "@mui/material/Typography";
1323
+ import { jsx as jsx12 } from "react/jsx-runtime";
1324
+ var PageTitleHeaderStyled = styled2(Typography, {
1325
+ name: "MuiPageTitle",
1326
+ slot: "Header"
1327
+ })(({ theme }) => ({
1328
+ fontWeight: 600,
1329
+ fontSize: "1.5rem",
1330
+ lineHeight: 1.334,
1331
+ letterSpacing: "0em",
1332
+ color: theme.palette.text.primary
1333
+ }));
1334
+ var PageTitleHeader = (_a) => {
1335
+ var _b = _a, { children, variant = "h4" } = _b, props = __objRest(_b, ["children", "variant"]);
1336
+ return /* @__PURE__ */ jsx12(PageTitleHeaderStyled, __spreadProps(__spreadValues({ variant }, props), { children }));
1337
+ };
1338
+ PageTitleHeader.displayName = "PageTitle.Header";
1339
+ var PageTitleHeader_default = PageTitleHeader;
1340
+
1341
+ // src/components/PageTitle/PageTitleSubHeader.tsx
1342
+ import { styled as styled3 } from "@mui/material/styles";
1343
+ import Typography2 from "@mui/material/Typography";
1344
+ import { jsx as jsx13 } from "react/jsx-runtime";
1345
+ var PageTitleSubHeaderStyled = styled3(Typography2, {
1346
+ name: "MuiPageTitle",
1347
+ slot: "SubHeader"
1348
+ })(({ theme }) => ({
1349
+ fontSize: "0.875rem",
1350
+ lineHeight: 1.43,
1351
+ letterSpacing: "0.01071em",
1352
+ color: theme.palette.text.secondary
1353
+ }));
1354
+ var PageTitleSubHeader = (_a) => {
1355
+ var _b = _a, { children, variant = "body2" } = _b, props = __objRest(_b, ["children", "variant"]);
1356
+ return /* @__PURE__ */ jsx13(PageTitleSubHeaderStyled, __spreadProps(__spreadValues({ variant }, props), { children }));
1357
+ };
1358
+ PageTitleSubHeader.displayName = "PageTitle.SubHeader";
1359
+ var PageTitleSubHeader_default = PageTitleSubHeader;
1360
+
1361
+ // src/components/PageTitle/PageTitleAvatar.tsx
1362
+ import { styled as styled4 } from "@mui/material/styles";
1363
+ import Avatar from "@mui/material/Avatar";
1364
+ import { jsx as jsx14 } from "react/jsx-runtime";
1365
+ var PageTitleAvatarStyled = styled4(Avatar, {
1366
+ name: "MuiPageTitle",
1367
+ slot: "Avatar"
1368
+ })(({ theme }) => ({
1369
+ width: 55,
1370
+ height: 55,
1371
+ marginRight: theme.spacing(2)
1372
+ }));
1373
+ var PageTitleAvatar = (_a) => {
1374
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1375
+ return /* @__PURE__ */ jsx14(PageTitleAvatarStyled, __spreadProps(__spreadValues({}, props), { children }));
1376
+ };
1377
+ PageTitleAvatar.displayName = "PageTitle.Avatar";
1378
+ var PageTitleAvatar_default = PageTitleAvatar;
1379
+
1380
+ // src/components/PageTitle/PageTitleLink.tsx
1381
+ import { styled as styled5 } from "@mui/material/styles";
1382
+ import Link from "@mui/material/Link";
1383
+ import Box3 from "@mui/material/Box";
1384
+ import { jsx as jsx15, jsxs as jsxs3 } from "react/jsx-runtime";
1385
+ var PageTitleLinkStyled = styled5(Link, {
1386
+ name: "MuiPageTitle",
1387
+ slot: "Link"
1388
+ })(({ theme }) => ({
1389
+ fontSize: "0.875rem",
1390
+ lineHeight: 1.43,
1391
+ display: "inline-flex",
1392
+ alignItems: "center",
1393
+ gap: theme.spacing(0.5),
1394
+ textDecoration: "none",
1395
+ color: theme.palette.primary.main,
1396
+ "&:hover": {
1397
+ textDecoration: "underline"
1398
+ }
1399
+ }));
1400
+ var PageTitleLink = (_a) => {
1401
+ var _b = _a, { children, icon } = _b, props = __objRest(_b, ["children", "icon"]);
1402
+ return /* @__PURE__ */ jsxs3(PageTitleLinkStyled, __spreadProps(__spreadValues({}, props), { children: [
1403
+ icon && /* @__PURE__ */ jsx15(Box3, { component: "span", sx: { display: "inline-flex", alignItems: "center", fontSize: "1rem" }, children: icon }),
1404
+ children
1405
+ ] }));
1406
+ };
1407
+ PageTitleLink.displayName = "PageTitle.Link";
1408
+ var PageTitleLink_default = PageTitleLink;
1409
+
1410
+ // src/components/PageTitle/PageTitle.tsx
1411
+ import { jsx as jsx16, jsxs as jsxs4 } from "react/jsx-runtime";
1412
+ var PageTitleRoot = styled6("div", {
1413
+ name: "MuiPageTitle",
1414
+ slot: "Root"
1415
+ })(({ theme }) => ({
1416
+ marginBottom: theme.spacing(3),
1417
+ display: "flex",
1418
+ alignItems: "flex-start",
1419
+ gap: 0
1420
+ }));
1421
+ var PageTitleContent = styled6("div", {
1422
+ name: "MuiPageTitle",
1423
+ slot: "Content"
1424
+ })(({ theme }) => ({
1425
+ display: "flex",
1426
+ flexDirection: "column",
1427
+ gap: theme.spacing(0.5),
1428
+ flex: 1
1429
+ }));
1430
+ var PageTitle = (_a) => {
1431
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1432
+ const childrenArray = React3.Children.toArray(children);
1433
+ const avatar = childrenArray.find(
1434
+ (child) => React3.isValidElement(child) && child.type === PageTitleAvatar_default
1435
+ );
1436
+ const otherChildren = childrenArray.filter(
1437
+ (child) => !React3.isValidElement(child) || child.type !== PageTitleAvatar_default
1438
+ );
1439
+ return /* @__PURE__ */ jsxs4(PageTitleRoot, __spreadProps(__spreadValues({}, props), { children: [
1440
+ avatar,
1441
+ /* @__PURE__ */ jsx16(PageTitleContent, { children: otherChildren })
1442
+ ] }));
1443
+ };
1444
+ PageTitle.Avatar = PageTitleAvatar_default;
1445
+ PageTitle.Header = PageTitleHeader_default;
1446
+ PageTitle.SubHeader = PageTitleSubHeader_default;
1447
+ PageTitle.Link = PageTitleLink_default;
1448
+ PageTitle.displayName = "PageTitle";
1449
+ var PageTitle_default = PageTitle;
1450
+
1451
+ // src/components/ThemeSwitcher/ThemeSelect.tsx
1452
+ import { Select, MenuItem, FormControl, InputLabel } from "@mui/material";
1453
+ import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
1454
+ function ThemeSelect({
1455
+ size = "small",
1456
+ showLabel = false,
1457
+ label = "Theme",
1458
+ variant = "outlined",
1459
+ sx
1460
+ }) {
1461
+ const { currentTheme, themes, setTheme } = useThemeSwitcher();
1462
+ const handleChange = (event) => {
1463
+ setTheme(event.target.value);
1464
+ };
1465
+ return /* @__PURE__ */ jsxs5(FormControl, { size, variant, sx: __spreadValues({ minWidth: 120 }, sx), children: [
1466
+ showLabel && /* @__PURE__ */ jsx17(InputLabel, { id: "theme-select-label", children: label }),
1467
+ /* @__PURE__ */ jsx17(
1468
+ Select,
1469
+ {
1470
+ labelId: showLabel ? "theme-select-label" : void 0,
1471
+ value: currentTheme,
1472
+ onChange: handleChange,
1473
+ label: showLabel ? label : void 0,
1474
+ children: themes.map((themeOption) => /* @__PURE__ */ jsx17(MenuItem, { value: themeOption.key, children: themeOption.label }, themeOption.key))
1475
+ }
1476
+ )
1477
+ ] });
1478
+ }
1479
+
1480
+ // src/components/ThemeSwitcher/ThemeSwitcher.tsx
1481
+ import { Fragment, jsx as jsx18 } from "react/jsx-runtime";
1482
+ function ThemeSwitcher({
1483
+ children,
1484
+ size,
1485
+ showLabel,
1486
+ label,
1487
+ variant,
1488
+ sx
1489
+ }) {
1490
+ const themeSwitcherContext = useThemeSwitcher();
1491
+ if (children) {
1492
+ return /* @__PURE__ */ jsx18(Fragment, { children: children(themeSwitcherContext) });
1493
+ }
1494
+ return /* @__PURE__ */ jsx18(
1495
+ ThemeSelect,
1496
+ {
1497
+ size,
1498
+ showLabel,
1499
+ label,
1500
+ variant,
1501
+ sx
1502
+ }
1503
+ );
1504
+ }
1505
+
548
1506
  // src/layouts/Layout.tsx
549
- import Box2 from "@mui/material/Box";
550
- import { jsx as jsx4 } from "react/jsx-runtime";
1507
+ import Box4 from "@mui/material/Box";
1508
+ import { jsx as jsx19 } from "react/jsx-runtime";
551
1509
  function Layout(_a) {
552
1510
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
553
- return /* @__PURE__ */ jsx4(
554
- Box2,
1511
+ return /* @__PURE__ */ jsx19(
1512
+ Box4,
555
1513
  __spreadProps(__spreadValues({
556
1514
  sx: __spreadValues({
557
1515
  display: "flex",
@@ -565,12 +1523,12 @@ function Layout(_a) {
565
1523
  var Layout_default = Layout;
566
1524
 
567
1525
  // src/layouts/LayoutSidebar.tsx
568
- import Box3 from "@mui/material/Box";
569
- import { jsx as jsx5 } from "react/jsx-runtime";
1526
+ import Box5 from "@mui/material/Box";
1527
+ import { jsx as jsx20 } from "react/jsx-runtime";
570
1528
  function LayoutSidebar(_a) {
571
1529
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
572
- return /* @__PURE__ */ jsx5(
573
- Box3,
1530
+ return /* @__PURE__ */ jsx20(
1531
+ Box5,
574
1532
  __spreadProps(__spreadValues({
575
1533
  sx: __spreadValues({
576
1534
  display: "flex",
@@ -590,12 +1548,12 @@ function LayoutNavbar({ children = null }) {
590
1548
  var LayoutNavbar_default = LayoutNavbar;
591
1549
 
592
1550
  // src/layouts/LayoutContent.tsx
593
- import Box4 from "@mui/material/Box";
594
- import { jsx as jsx6 } from "react/jsx-runtime";
1551
+ import Box6 from "@mui/material/Box";
1552
+ import { jsx as jsx21 } from "react/jsx-runtime";
595
1553
  function LayoutContent(_a) {
596
1554
  var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
597
- return /* @__PURE__ */ jsx6(
598
- Box4,
1555
+ return /* @__PURE__ */ jsx21(
1556
+ Box6,
599
1557
  __spreadProps(__spreadValues({
600
1558
  component: "main",
601
1559
  sx: {
@@ -612,12 +1570,12 @@ function LayoutContent(_a) {
612
1570
  var LayoutContent_default = LayoutContent;
613
1571
 
614
1572
  // src/layouts/LayoutHeader.tsx
615
- import Box5 from "@mui/material/Box";
616
- import { jsx as jsx7 } from "react/jsx-runtime";
1573
+ import Box7 from "@mui/material/Box";
1574
+ import { jsx as jsx22 } from "react/jsx-runtime";
617
1575
  function LayoutHeader(_a) {
618
1576
  var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
619
- return /* @__PURE__ */ jsx7(
620
- Box5,
1577
+ return /* @__PURE__ */ jsx22(
1578
+ Box7,
621
1579
  __spreadProps(__spreadValues({
622
1580
  sx: __spreadValues({
623
1581
  display: "flex"
@@ -638,21 +1596,254 @@ var Layout2 = Object.assign(Layout_default, {
638
1596
  });
639
1597
  var layouts_default = Layout2;
640
1598
 
1599
+ // src/animations/ParticleBackground/ParticleBackground.tsx
1600
+ import { useEffect as useEffect2, useRef } from "react";
1601
+ import { useColorScheme as useColorScheme3 } from "@mui/material/styles";
1602
+ import { jsx as jsx23 } from "react/jsx-runtime";
1603
+ var ParticleBackground = ({
1604
+ opacity = 0.5,
1605
+ baseDensity = 0.12,
1606
+ maxSpeed = 0.3,
1607
+ radius = [2, 3.2],
1608
+ linkDist = 210,
1609
+ linkAlpha = 0.2,
1610
+ mouseInfluence = 110,
1611
+ repelStrength = 0.35,
1612
+ clickBurst = 120
1613
+ }) => {
1614
+ const canvasRef = useRef(null);
1615
+ const { mode } = useColorScheme3();
1616
+ useEffect2(() => {
1617
+ const canvas = canvasRef.current;
1618
+ if (!canvas) return;
1619
+ const ctx = canvas.getContext("2d", { alpha: true });
1620
+ if (!ctx) return;
1621
+ const canvasEl = canvas;
1622
+ const context = ctx;
1623
+ const lightColors = {
1624
+ colorParticle: "#44444447",
1625
+ colorLink: "#000000"
1626
+ };
1627
+ const darkColors = {
1628
+ colorParticle: "#ffffff47",
1629
+ colorLink: "#ffffff"
1630
+ };
1631
+ let currentColors = mode === "dark" ? darkColors : lightColors;
1632
+ let DPR = Math.max(1, Math.min(2, window.devicePixelRatio || 1));
1633
+ let W = 0;
1634
+ let H = 0;
1635
+ let particles = [];
1636
+ let targetCount = 0;
1637
+ let animationFrameId;
1638
+ const rand = (min, max) => Math.random() * (max - min) + min;
1639
+ const clamp = (v, a, b) => Math.max(a, Math.min(b, v));
1640
+ class Particle {
1641
+ constructor() {
1642
+ this.x = 0;
1643
+ this.y = 0;
1644
+ this.vx = 0;
1645
+ this.vy = 0;
1646
+ this.r = 0;
1647
+ this.reset(true);
1648
+ }
1649
+ reset(randomPos = false) {
1650
+ this.x = randomPos ? rand(0, W) : Math.random() < 0.5 ? 0 : W;
1651
+ this.y = randomPos ? rand(0, H) : rand(0, H);
1652
+ const ang = rand(0, Math.PI * 2);
1653
+ const speed = rand(0.05, maxSpeed);
1654
+ this.vx = Math.cos(ang) * speed;
1655
+ this.vy = Math.sin(ang) * speed;
1656
+ this.r = rand(radius[0], radius[1]) * DPR;
1657
+ }
1658
+ step(mx, my) {
1659
+ if (mx !== null && my !== null) {
1660
+ const dx = this.x - mx;
1661
+ const dy = this.y - my;
1662
+ const d2 = dx * dx + dy * dy;
1663
+ const r = mouseInfluence * DPR;
1664
+ if (d2 < r * r) {
1665
+ const d = Math.sqrt(d2) || 1e-3;
1666
+ const ux = dx / d;
1667
+ const uy = dy / d;
1668
+ this.vx += ux * repelStrength * (1 - d / r);
1669
+ this.vy += uy * repelStrength * (1 - d / r);
1670
+ }
1671
+ }
1672
+ const sp = Math.hypot(this.vx, this.vy);
1673
+ const maxSp = maxSpeed;
1674
+ if (sp > maxSp) {
1675
+ this.vx *= maxSp / sp;
1676
+ this.vy *= maxSp / sp;
1677
+ }
1678
+ this.x += this.vx * DPR;
1679
+ this.y += this.vy * DPR;
1680
+ if (this.x < -50) this.x = W + 50;
1681
+ if (this.x > W + 50) this.x = -50;
1682
+ if (this.y < -50) this.y = H + 50;
1683
+ if (this.y > H + 50) this.y = -50;
1684
+ }
1685
+ draw() {
1686
+ context.beginPath();
1687
+ context.arc(this.x, this.y, this.r, 0, Math.PI * 2);
1688
+ context.fillStyle = currentColors.colorParticle;
1689
+ context.globalAlpha = 0.9;
1690
+ context.fill();
1691
+ }
1692
+ }
1693
+ function resize() {
1694
+ DPR = Math.max(1, Math.min(2, window.devicePixelRatio || 1));
1695
+ W = canvasEl.width = Math.floor(window.innerWidth * DPR);
1696
+ H = canvasEl.height = Math.floor(window.innerHeight * DPR);
1697
+ canvasEl.style.width = window.innerWidth + "px";
1698
+ canvasEl.style.height = window.innerHeight + "px";
1699
+ computeParticlesCount();
1700
+ }
1701
+ function computeParticlesCount() {
1702
+ const area = W * H / (DPR * DPR);
1703
+ targetCount = Math.round(baseDensity * (area / 1e4));
1704
+ targetCount = clamp(targetCount, 40, 220);
1705
+ if (particles.length < targetCount) {
1706
+ const add = targetCount - particles.length;
1707
+ for (let i = 0; i < add; i++) particles.push(new Particle());
1708
+ } else if (particles.length > targetCount) {
1709
+ particles.length = targetCount;
1710
+ }
1711
+ }
1712
+ const mouse = { x: null, y: null };
1713
+ const handleMouseMove = (e) => {
1714
+ mouse.x = e.clientX * DPR;
1715
+ mouse.y = e.clientY * DPR;
1716
+ };
1717
+ const handleMouseLeave = () => {
1718
+ mouse.x = mouse.y = null;
1719
+ };
1720
+ const handleClick = (e) => {
1721
+ const mx = e.clientX * DPR;
1722
+ const my = e.clientY * DPR;
1723
+ for (let i = 0; i < particles.length; i++) {
1724
+ const p = particles[i];
1725
+ const dx = p.x - mx;
1726
+ const dy = p.y - my;
1727
+ const d2 = dx * dx + dy * dy;
1728
+ const r = mouseInfluence * DPR;
1729
+ if (d2 < r * r) {
1730
+ const d = Math.sqrt(d2) || 1e-3;
1731
+ const ux = dx / d;
1732
+ const uy = dy / d;
1733
+ p.vx += ux * (clickBurst / 100);
1734
+ p.vy += uy * (clickBurst / 100);
1735
+ }
1736
+ }
1737
+ };
1738
+ function drawLinks() {
1739
+ context.lineWidth = 1 * DPR;
1740
+ context.strokeStyle = currentColors.colorLink;
1741
+ for (let i = 0; i < particles.length; i++) {
1742
+ for (let j = i + 1; j < particles.length; j++) {
1743
+ const a = particles[i];
1744
+ const b = particles[j];
1745
+ const dx = a.x - b.x;
1746
+ const dy = a.y - b.y;
1747
+ const dist = Math.hypot(dx, dy);
1748
+ if (dist < linkDist * DPR) {
1749
+ const alpha = linkAlpha * (1 - dist / (linkDist * DPR));
1750
+ context.globalAlpha = alpha;
1751
+ context.beginPath();
1752
+ context.moveTo(a.x, a.y);
1753
+ context.lineTo(b.x, b.y);
1754
+ context.stroke();
1755
+ }
1756
+ }
1757
+ }
1758
+ context.globalAlpha = 1;
1759
+ }
1760
+ function loop() {
1761
+ context.clearRect(0, 0, W, H);
1762
+ for (let i = 0; i < particles.length; i++) {
1763
+ particles[i].step(mouse.x, mouse.y);
1764
+ }
1765
+ drawLinks();
1766
+ for (let i = 0; i < particles.length; i++) {
1767
+ particles[i].draw();
1768
+ }
1769
+ animationFrameId = requestAnimationFrame(loop);
1770
+ }
1771
+ resize();
1772
+ for (let i = 0; i < 120; i++) particles.push(new Particle());
1773
+ computeParticlesCount();
1774
+ window.addEventListener("resize", resize, { passive: true });
1775
+ window.addEventListener("mousemove", handleMouseMove, { passive: true });
1776
+ window.addEventListener("mouseleave", handleMouseLeave);
1777
+ window.addEventListener("click", handleClick);
1778
+ loop();
1779
+ return () => {
1780
+ window.removeEventListener("resize", resize);
1781
+ window.removeEventListener("mousemove", handleMouseMove);
1782
+ window.removeEventListener("mouseleave", handleMouseLeave);
1783
+ window.removeEventListener("click", handleClick);
1784
+ cancelAnimationFrame(animationFrameId);
1785
+ };
1786
+ }, [baseDensity, maxSpeed, radius, linkDist, linkAlpha, mouseInfluence, repelStrength, clickBurst, mode]);
1787
+ return /* @__PURE__ */ jsx23(
1788
+ "canvas",
1789
+ {
1790
+ ref: canvasRef,
1791
+ id: "particle-bg",
1792
+ style: {
1793
+ position: "fixed",
1794
+ top: 0,
1795
+ left: 0,
1796
+ width: "100%",
1797
+ height: "100%",
1798
+ pointerEvents: "none",
1799
+ zIndex: -1,
1800
+ opacity
1801
+ }
1802
+ }
1803
+ );
1804
+ };
1805
+
1806
+ // src/hooks/useThemeContent/useThemeContent.ts
1807
+ function useThemeContent(contentMap, fallback) {
1808
+ var _a, _b;
1809
+ const { currentTheme } = useThemeSwitcher();
1810
+ return (_b = (_a = contentMap[currentTheme]) != null ? _a : fallback) != null ? _b : Object.values(contentMap)[0];
1811
+ }
1812
+ var useThemeContent_default = useThemeContent;
1813
+
641
1814
  // src/index.ts
642
1815
  export * from "@mui/material";
1816
+ import * as colors from "@mui/material/colors";
643
1817
  import * as Charts from "@mui/x-charts";
644
1818
  import * as DataGrid from "@mui/x-data-grid";
645
1819
  import * as DatePickers from "@mui/x-date-pickers";
1820
+ import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
646
1821
  import * as TreeView from "@mui/x-tree-view";
647
1822
  export {
1823
+ AdapterDateFns,
1824
+ AsgardeoTheme_default as AsgardeoTheme,
648
1825
  Charts,
1826
+ ChoreoTheme_default as ChoreoTheme,
1827
+ ClassicTheme_default as ClassicTheme,
1828
+ CodeBlock_default as CodeBlock,
649
1829
  ColorSchemeImage,
650
- ColorSchemeToggle_default as ColorSchemeToggle,
1830
+ ColorSchemeToggle,
1831
+ ColorSchemeToggle_default as ColorSchemeToggleDefault,
1832
+ ComplexSelect_default as ComplexSelect,
651
1833
  DataGrid,
652
1834
  DatePickers,
1835
+ HighContrastTheme_default as HighContrastTheme,
653
1836
  layouts_default as Layout,
654
- OxygenTheme_default as OxygenTheme,
1837
+ OxygenBaseTheme_default as OxygenTheme,
655
1838
  OxygenUIThemeProvider,
656
- TreeView
1839
+ PageTitle_default as PageTitle,
1840
+ ParticleBackground,
1841
+ ThemeSelect,
1842
+ ThemeSwitcher,
1843
+ TreeView,
1844
+ colors,
1845
+ useThemeContent,
1846
+ useThemeContent_default as useThemeContentDefault,
1847
+ useThemeSwitcher
657
1848
  };
658
1849
  //# sourceMappingURL=index.js.map