@wso2/oxygen-ui 0.0.1-alpha.11 → 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 (32) hide show
  1. package/dist/animations/ParticleBackground/ParticleBackground.d.ts +66 -0
  2. package/dist/{styles/OxygenTheme/OxygenTheme.d.ts → animations/ParticleBackground/index.d.ts} +2 -2
  3. package/dist/animations/index.d.ts +18 -0
  4. package/dist/components/CodeBlock/CodeBlock.d.ts +47 -0
  5. package/dist/components/CodeBlock/index.d.ts +19 -0
  6. package/dist/components/ColorSchemeImage/index.d.ts +19 -0
  7. package/dist/components/ColorSchemeToggle/index.d.ts +18 -0
  8. package/dist/components/ComplexSelect/ComplexSelectDivider.d.ts +1 -2
  9. package/dist/components/PageTitle/PageTitle.d.ts +34 -0
  10. package/dist/components/PageTitle/PageTitleAvatar.d.ts +16 -0
  11. package/dist/components/PageTitle/PageTitleHeader.d.ts +16 -0
  12. package/dist/components/PageTitle/PageTitleLink.d.ts +20 -0
  13. package/dist/components/PageTitle/PageTitleSubHeader.d.ts +16 -0
  14. package/dist/components/PageTitle/index.d.ts +27 -0
  15. package/dist/components/index.d.ts +28 -0
  16. package/dist/contexts/OxygenUIThemeProvider/index.d.ts +20 -0
  17. package/dist/contexts/index.d.ts +19 -0
  18. package/dist/hooks/index.d.ts +18 -0
  19. package/dist/hooks/useThemeContent/index.d.ts +18 -0
  20. package/dist/hooks/useThemeContent/useThemeContent.d.ts +57 -0
  21. package/dist/index.d.ts +7 -10
  22. package/dist/index.js +1126 -186
  23. package/dist/index.js.map +4 -4
  24. package/dist/styles/Themes/AsgardeoTheme.d.ts +17 -0
  25. package/dist/styles/Themes/ChoreoTheme.d.ts +20 -0
  26. package/dist/styles/Themes/ClassicTheme.d.ts +20 -0
  27. package/dist/styles/Themes/HighContrastTheme.d.ts +20 -0
  28. package/dist/styles/Themes/OxygenBaseTheme.d.ts +66 -0
  29. package/dist/styles/Themes/index.d.ts +22 -0
  30. package/dist/styles/index.d.ts +18 -0
  31. package/package.json +10 -8
  32. package/dist/styles/OxygenTheme/OxygenThemeWithRadialBackground.d.ts +0 -17
package/dist/index.js CHANGED
@@ -127,7 +127,7 @@ var __objRest = (source, exclude) => {
127
127
  }
128
128
  })();
129
129
 
130
- // src/styles/OxygenTheme/OxygenTheme.ts
130
+ // src/styles/Themes/OxygenBaseTheme.ts
131
131
  import { extendTheme } from "@mui/material/styles";
132
132
  import { ChevronDown, X } from "@wso2/oxygen-ui-icons-react";
133
133
  import React from "react";
@@ -135,14 +135,8 @@ import React from "react";
135
135
  // src/utils/pxToRem.ts
136
136
  var pxToRem = (size) => `${size / 14}rem`;
137
137
 
138
- // src/styles/OxygenTheme/OxygenTheme.ts
139
- var primitives = {
140
- primary: {
141
- gradientColor: "linear-gradient(77.74deg, #e74420ff 11.16%, #fa7b3f 99.55%)",
142
- gradientColorHover: "linear-gradient(77.74deg, #d04036ff 11.16%, #f2621f 99.55%)"
143
- }
144
- };
145
- var OxygenTheme = extendTheme({
138
+ // src/styles/Themes/OxygenBaseTheme.ts
139
+ var OxygenBaseTheme = extendTheme({
146
140
  cssVarPrefix: "oxygen",
147
141
  colorSchemeSelector: "data-color-scheme",
148
142
  typography: {
@@ -208,7 +202,7 @@ var OxygenTheme = extendTheme({
208
202
  },
209
203
  background: {
210
204
  default: "#f5f5f5",
211
- paper: "#ffffff"
205
+ paper: "#ffffffb5"
212
206
  },
213
207
  text: {
214
208
  primary: "#40404B",
@@ -228,7 +222,7 @@ var OxygenTheme = extendTheme({
228
222
  },
229
223
  background: {
230
224
  default: "#000000",
231
- paper: "#00000088"
225
+ paper: "#00000045"
232
226
  },
233
227
  text: {
234
228
  primary: "#efefef",
@@ -241,13 +235,10 @@ var OxygenTheme = extendTheme({
241
235
  components: {
242
236
  MuiAvatar: {
243
237
  styleOverrides: {
244
- root: ({ theme }) => __spreadValues(__spreadValues({}, theme.applyStyles("light", {
245
- backgroundColor: "#ebebeb",
246
- color: "#40404B"
247
- })), theme.applyStyles("dark", {
248
- backgroundColor: "#3c3c3c",
249
- color: "#D0D3E2"
250
- }))
238
+ root: ({ theme }) => ({
239
+ backgroundColor: theme.vars.palette.secondary.main,
240
+ color: theme.vars.palette.text.primary
241
+ })
251
242
  }
252
243
  },
253
244
  MuiAutocomplete: {
@@ -263,35 +254,56 @@ var OxygenTheme = extendTheme({
263
254
  textTransform: "none",
264
255
  fontWeight: 400
265
256
  },
266
- containedPrimary: {
257
+ containedPrimary: ({ theme }) => ({
267
258
  "&:not(:disabled)": {
268
- background: primitives.primary.gradientColor,
269
- color: "#fff",
259
+ background: `${theme.gradient.primary} !important`,
260
+ color: "#fff !important",
270
261
  "&:hover": {
271
- background: primitives.primary.gradientColorHover,
272
- color: "#fff"
262
+ background: `${theme.gradient.primary} !important`,
263
+ opacity: 0.9,
264
+ color: "#fff !important"
273
265
  }
274
266
  }
275
- }
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
+ })
276
288
  }
277
289
  },
278
290
  MuiDialog: {
279
291
  styleOverrides: {
280
- paper: ({ theme }) => __spreadValues(__spreadValues({
281
- WebkitBackdropFilter: "blur(10px)",
282
- backdropFilter: "blur(10px)"
283
- }, theme.applyStyles("light", {
284
- background: "rgba(255, 255, 255, 0.7)"
285
- })), theme.applyStyles("dark", {
286
- background: "rgba(10, 10, 10, 0.7)"
287
- }))
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
+ })
288
299
  }
289
300
  },
290
301
  MuiDrawer: {
291
302
  styleOverrides: {
292
- paper: ({ theme }) => __spreadValues({}, theme.applyStyles("dark", {
293
- background: "transparent"
294
- }))
303
+ paper: ({ theme }) => ({
304
+ // Paper background is already set by colorSchemes
305
+ background: theme.vars.palette.background.paper
306
+ })
295
307
  }
296
308
  },
297
309
  MuiFormLabel: {
@@ -304,28 +316,23 @@ var OxygenTheme = extendTheme({
304
316
  },
305
317
  MuiPaper: {
306
318
  styleOverrides: {
307
- root: ({ theme }) => __spreadValues(__spreadValues({
319
+ root: ({ theme }) => ({
308
320
  borderRadius: theme.shape.borderRadius,
309
- WebkitBackdropFilter: "blur(3px)",
310
- backdropFilter: "blur(3px)"
311
- }, theme.applyStyles("light", {
312
- border: "1px solid #ffffff7a",
313
- background: "rgb(230 230 230 / 5%)",
314
- 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"
315
- })), theme.applyStyles("dark", {
316
- border: "1px solid #d2d2d20f",
317
- background: "rgb(230 230 230 / 1%)",
318
- 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"
319
- }))
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
+ })
320
327
  }
321
328
  },
322
329
  MuiPopover: {
323
330
  styleOverrides: {
324
- paper: ({ theme }) => __spreadValues(__spreadValues({}, theme.applyStyles("light", {
325
- background: "#ffffff9c"
326
- })), theme.applyStyles("dark", {
327
- background: "#040404c2"
328
- }))
331
+ paper: ({ theme }) => ({
332
+ // Use CSS variable - automatically switches between colorSchemes
333
+ background: theme.vars.palette.background.paper,
334
+ opacity: 0.95
335
+ })
329
336
  }
330
337
  },
331
338
  MuiTextField: {
@@ -350,21 +357,15 @@ var OxygenTheme = extendTheme({
350
357
  },
351
358
  MuiOutlinedInput: {
352
359
  styleOverrides: {
353
- root: ({ theme }) => __spreadValues(__spreadValues({
360
+ root: ({ theme }) => ({
354
361
  fontSize: theme.typography.body2.fontSize,
355
- borderRadius: 8
356
- }, theme.applyStyles("light", {
357
- background: "#ffffffc4"
358
- })), theme.applyStyles("dark", {
359
- background: "#ffffff05"
360
- })),
361
- notchedOutline: ({ theme }) => __spreadValues(__spreadValues({
362
- borderWidth: 1
363
- }, theme.applyStyles("light", {
364
- borderColor: "#d9d9d987"
365
- })), theme.applyStyles("dark", {
366
- borderColor: "#ffffff0d"
367
- }))
362
+ borderRadius: 8,
363
+ background: theme.vars.palette.background.paper
364
+ }),
365
+ notchedOutline: ({ theme }) => ({
366
+ borderWidth: 1,
367
+ borderColor: theme.vars.palette.divider
368
+ })
368
369
  }
369
370
  },
370
371
  MuiMenuItem: {
@@ -377,10 +378,10 @@ var OxygenTheme = extendTheme({
377
378
  MuiLink: {
378
379
  styleOverrides: {
379
380
  root: ({ theme }) => ({
380
- color: theme.palette.primary.main,
381
+ color: theme.vars.palette.primary.main,
381
382
  textDecoration: "none",
382
383
  "&:hover": {
383
- color: theme.palette.primary.dark,
384
+ color: theme.vars.palette.primary.dark,
384
385
  textDecoration: "underline"
385
386
  }
386
387
  })
@@ -390,17 +391,13 @@ var OxygenTheme = extendTheme({
390
391
  styleOverrides: {
391
392
  root: ({ theme }) => ({
392
393
  borderRadius: 8,
393
- "&.Mui-selected": __spreadProps(__spreadValues(__spreadValues({}, theme.applyStyles("light", {
394
- backgroundColor: theme.palette.action.selected
395
- })), theme.applyStyles("dark", {
396
- backgroundColor: "#ffffff1a"
397
- })), {
398
- "&:hover": __spreadValues(__spreadValues({}, theme.applyStyles("light", {
399
- backgroundColor: theme.palette.action.hover
400
- })), theme.applyStyles("dark", {
401
- backgroundColor: "#ffffff1a"
402
- }))
403
- })
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
+ }
404
401
  })
405
402
  }
406
403
  },
@@ -411,36 +408,84 @@ var OxygenTheme = extendTheme({
411
408
  backgroundColor: "transparent",
412
409
  overflow: "hidden",
413
410
  "& .MuiDataGrid-columnHeaders": {
414
- backgroundColor: "#ffffff0a",
415
- borderBottom: "1px solid",
416
- 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"
417
422
  }
418
423
  }),
419
424
  columnHeaders: ({ theme }) => ({
420
- backgroundColor: "#ffffff0a",
421
- borderBottom: "1px solid",
422
- 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}`
423
429
  }),
424
430
  columnHeader: {
425
431
  backgroundColor: "transparent"
426
432
  },
427
433
  cell: ({ theme }) => ({
428
- borderBottom: "1px solid",
429
- backgroundColor: "transparent",
430
- borderColor: theme.palette.divider
434
+ borderBottom: `${theme.border.width} ${theme.border.style} ${theme.vars.palette.divider}`,
435
+ backgroundColor: "transparent"
431
436
  })
432
437
  }
433
438
  }
434
439
  }
435
440
  });
436
- var OxygenTheme_default = OxygenTheme;
437
-
438
- // src/styles/OxygenTheme/OxygenThemeWithRadialBackground.ts
439
- var _a, _b, _c;
440
- var OxygenThemeWithRadialBackground = __spreadProps(__spreadValues({}, OxygenTheme_default), {
441
- components: __spreadProps(__spreadValues({}, OxygenTheme_default.components), {
442
- MuiCssBaseline: __spreadProps(__spreadValues({}, ((_a = OxygenTheme_default.components) == null ? void 0 : _a.MuiCssBaseline) || {}), {
443
- styleOverrides: __spreadProps(__spreadValues({}, typeof ((_c = (_b = OxygenTheme_default.components) == null ? void 0 : _b.MuiCssBaseline) == null ? void 0 : _c.styleOverrides) === "object" ? OxygenTheme_default.components.MuiCssBaseline.styleOverrides : {}), {
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: {
444
489
  "html[data-color-scheme='dark'] body": {
445
490
  backgroundAttachment: "fixed",
446
491
  backgroundImage: `
@@ -459,11 +504,418 @@ var OxygenThemeWithRadialBackground = __spreadProps(__spreadValues({}, OxygenThe
459
504
  `,
460
505
  backgroundBlendMode: "normal"
461
506
  }
462
- })
463
- })
464
- })
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
+ }
465
715
  });
466
- var OxygenThemeWithRadialBackground_default = OxygenThemeWithRadialBackground;
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
+ }
847
+ })
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
+ }
902
+ }
903
+ }
904
+ });
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;
467
919
 
468
920
  // src/contexts/OxygenUIThemeProvider/OxygenUIThemeProvider.tsx
469
921
  import { ThemeProvider, StyledEngineProvider } from "@mui/material/styles";
@@ -474,12 +926,17 @@ var defaultThemes = [
474
926
  {
475
927
  key: "default",
476
928
  label: "Default",
477
- theme: OxygenTheme_default
929
+ theme: OxygenBaseTheme_default
478
930
  },
479
931
  {
480
- key: "radial",
481
- label: "Radial Background",
482
- theme: OxygenThemeWithRadialBackground_default
932
+ key: "asgardeo",
933
+ label: "Asgardeo",
934
+ theme: AsgardeoTheme_default
935
+ },
936
+ {
937
+ key: "choreo",
938
+ label: "Choreo",
939
+ theme: ChoreoTheme_default
483
940
  }
484
941
  ];
485
942
  var ThemeSwitcherContext = createContext(null);
@@ -496,17 +953,17 @@ function OxygenUIThemeProvider({
496
953
  themes,
497
954
  initialTheme
498
955
  }) {
499
- var _a2, _b2, _c2;
956
+ var _a, _b, _c;
500
957
  const useThemeSwitching = !!themes;
501
958
  const themeOptions = themes || defaultThemes;
502
959
  const [currentThemeKey, setCurrentThemeKey] = useState(
503
- initialTheme || ((_a2 = themeOptions[0]) == null ? void 0 : _a2.key) || "default"
960
+ initialTheme || ((_a = themeOptions[0]) == null ? void 0 : _a.key) || "default"
504
961
  );
505
962
  let resolvedTheme;
506
963
  if (useThemeSwitching) {
507
- resolvedTheme = ((_b2 = themeOptions.find((t) => t.key === currentThemeKey)) == null ? void 0 : _b2.theme) || ((_c2 = themeOptions[0]) == null ? void 0 : _c2.theme);
964
+ resolvedTheme = ((_b = themeOptions.find((t) => t.key === currentThemeKey)) == null ? void 0 : _b.theme) || ((_c = themeOptions[0]) == null ? void 0 : _c.theme);
508
965
  } else {
509
- resolvedTheme = theme || OxygenTheme_default;
966
+ resolvedTheme = theme || OxygenBaseTheme_default;
510
967
  }
511
968
  const setTheme = (themeKey) => {
512
969
  if (themeOptions.some((t) => t.key === themeKey)) {
@@ -531,13 +988,133 @@ function OxygenUIThemeProvider({
531
988
  return content;
532
989
  }
533
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
+
534
1111
  // src/components/ColorSchemeImage/ColorSchemeImage.tsx
535
- import Box from "@mui/material/Box";
1112
+ import Box2 from "@mui/material/Box";
536
1113
  import { useColorScheme } from "@mui/material/styles";
537
1114
  import useMediaQuery from "@mui/material/useMediaQuery";
538
- import { jsx as jsx2 } from "react/jsx-runtime";
539
- function ColorSchemeImage(_a2) {
540
- var _b2 = _a2, { src, alt, width = 16, height = 16 } = _b2, rest = __objRest(_b2, ["src", "alt", "width", "height"]);
1115
+ import { jsx as jsx3 } from "react/jsx-runtime";
1116
+ function ColorSchemeImage(_a) {
1117
+ var _b = _a, { src, alt, width = 16, height = 16 } = _b, rest = __objRest(_b, ["src", "alt", "width", "height"]);
541
1118
  const { mode } = useColorScheme();
542
1119
  const prefersDark = useMediaQuery("(prefers-color-scheme: dark)");
543
1120
  let actualMode;
@@ -553,7 +1130,7 @@ function ColorSchemeImage(_a2) {
553
1130
  } else {
554
1131
  imageAlt = actualMode === "dark" ? alt.dark : alt.light;
555
1132
  }
556
- 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));
557
1134
  }
558
1135
 
559
1136
  // src/components/ColorSchemeToggle/ColorSchemeToggle.tsx
@@ -561,13 +1138,13 @@ import { useColorScheme as useColorScheme2 } from "@mui/material/styles";
561
1138
  import IconButton from "@mui/material/IconButton";
562
1139
  import { Moon, Monitor, Sun } from "@wso2/oxygen-ui-icons-react";
563
1140
  import { Tooltip } from "@mui/material";
564
- import { jsx as jsx3 } from "react/jsx-runtime";
565
- var ColorSchemeToggle = (_a2) => {
566
- var _b2 = _a2, {
1141
+ import { jsx as jsx4 } from "react/jsx-runtime";
1142
+ var ColorSchemeToggle = (_a) => {
1143
+ var _b = _a, {
567
1144
  darkModeIcon,
568
1145
  lightModeIcon,
569
1146
  systemModeIcon
570
- } = _b2, buttonProps = __objRest(_b2, [
1147
+ } = _b, buttonProps = __objRest(_b, [
571
1148
  "darkModeIcon",
572
1149
  "lightModeIcon",
573
1150
  "systemModeIcon"
@@ -585,14 +1162,14 @@ var ColorSchemeToggle = (_a2) => {
585
1162
  const ColorSchemeIcon = () => {
586
1163
  switch (currentMode) {
587
1164
  case "light":
588
- return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */ jsx3(Sun, {});
1165
+ return lightModeIcon != null ? lightModeIcon : /* @__PURE__ */ jsx4(Sun, {});
589
1166
  case "dark":
590
- return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */ jsx3(Moon, {});
1167
+ return darkModeIcon != null ? darkModeIcon : /* @__PURE__ */ jsx4(Moon, {});
591
1168
  default:
592
- return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */ jsx3(Monitor, {});
1169
+ return systemModeIcon != null ? systemModeIcon : /* @__PURE__ */ jsx4(Monitor, {});
593
1170
  }
594
1171
  };
595
- 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, {}) })) });
596
1173
  };
597
1174
  var ColorSchemeToggle_default = ColorSchemeToggle;
598
1175
 
@@ -603,10 +1180,10 @@ import MuiInputLabel from "@mui/material/InputLabel";
603
1180
 
604
1181
  // src/components/ComplexSelect/ComplexSelectListHeader.tsx
605
1182
  import MuiListSubheader from "@mui/material/ListSubheader";
606
- import { jsx as jsx4 } from "react/jsx-runtime";
607
- function ComplexSelectListHeader(_a2) {
608
- var _b2 = _a2, { children, sx } = _b2, props = __objRest(_b2, ["children", "sx"]);
609
- return /* @__PURE__ */ jsx4(MuiListSubheader, __spreadProps(__spreadValues({ sx: __spreadValues({ pt: 0 }, sx) }, props), { children }));
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 }));
610
1187
  }
611
1188
  var ComplexSelectListHeader_default = ComplexSelectListHeader;
612
1189
 
@@ -617,7 +1194,7 @@ import MuiMenuItem from "@mui/material/MenuItem";
617
1194
  import { styled } from "@mui/material/styles";
618
1195
  import MuiListItemAvatar from "@mui/material/ListItemAvatar";
619
1196
  import MuiAvatar from "@mui/material/Avatar";
620
- import { jsx as jsx5 } from "react/jsx-runtime";
1197
+ import { jsx as jsx6 } from "react/jsx-runtime";
621
1198
  var StyledAvatar = styled(MuiAvatar)(({ theme }) => ({
622
1199
  width: 28,
623
1200
  height: 28,
@@ -629,36 +1206,36 @@ var StyledListItemAvatar = styled(MuiListItemAvatar)({
629
1206
  minWidth: 0,
630
1207
  marginRight: 12
631
1208
  });
632
- function ComplexSelectMenuItemAvatar(_a2) {
633
- var _b2 = _a2, { children } = _b2, props = __objRest(_b2, ["children"]);
634
- return /* @__PURE__ */ jsx5(StyledListItemAvatar, { children: /* @__PURE__ */ jsx5(StyledAvatar, __spreadProps(__spreadValues({}, props), { children })) });
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 })) });
635
1212
  }
636
1213
  var ComplexSelectMenuItemAvatar_default = ComplexSelectMenuItemAvatar;
637
1214
 
638
1215
  // src/components/ComplexSelect/ComplexSelectMenuItemText.tsx
639
1216
  import MuiListItemText from "@mui/material/ListItemText";
640
- import { jsx as jsx6 } from "react/jsx-runtime";
641
- function ComplexSelectMenuItemText(_a2) {
642
- var _b2 = _a2, { primary, secondary } = _b2, props = __objRest(_b2, ["primary", "secondary"]);
643
- return /* @__PURE__ */ jsx6(MuiListItemText, __spreadValues({ primary, secondary }, props));
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));
644
1221
  }
645
1222
  var ComplexSelectMenuItemText_default = ComplexSelectMenuItemText;
646
1223
 
647
1224
  // src/components/ComplexSelect/ComplexSelectMenuItemIcon.tsx
648
1225
  import MuiListItemIcon from "@mui/material/ListItemIcon";
649
- import { jsx as jsx7 } from "react/jsx-runtime";
650
- function ComplexSelectMenuItemIcon(_a2) {
651
- var _b2 = _a2, { children } = _b2, props = __objRest(_b2, ["children"]);
652
- return /* @__PURE__ */ jsx7(MuiListItemIcon, __spreadProps(__spreadValues({}, props), { children }));
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 }));
653
1230
  }
654
1231
  var ComplexSelectMenuItemIcon_default = ComplexSelectMenuItemIcon;
655
1232
 
656
1233
  // src/components/ComplexSelect/ComplexSelectMenuItem.tsx
657
- import { jsx as jsx8 } from "react/jsx-runtime";
1234
+ import { jsx as jsx9 } from "react/jsx-runtime";
658
1235
  var ComplexSelectMenuItem = Object.assign(
659
- (_a2) => {
660
- var _b2 = _a2, { children } = _b2, props = __objRest(_b2, ["children"]);
661
- return /* @__PURE__ */ jsx8(MuiMenuItem, __spreadProps(__spreadValues({}, props), { children }));
1236
+ (_a) => {
1237
+ var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
1238
+ return /* @__PURE__ */ jsx9(MuiMenuItem, __spreadProps(__spreadValues({}, props), { children }));
662
1239
  },
663
1240
  {
664
1241
  Avatar: ComplexSelectMenuItemAvatar_default,
@@ -670,18 +1247,18 @@ var ComplexSelectMenuItem_default = ComplexSelectMenuItem;
670
1247
 
671
1248
  // src/components/ComplexSelect/ComplexSelectDivider.tsx
672
1249
  import MuiDivider from "@mui/material/Divider";
673
- import { jsx as jsx9 } from "react/jsx-runtime";
674
- function ComplexSelectDivider(_a2) {
675
- var _b2 = _a2, { sx } = _b2, props = __objRest(_b2, ["sx"]);
676
- return /* @__PURE__ */ jsx9(MuiDivider, __spreadValues({ sx: __spreadValues({ mx: -1 }, sx) }, props));
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));
677
1254
  }
678
1255
  var ComplexSelectDivider_default = ComplexSelectDivider;
679
1256
 
680
1257
  // src/components/ComplexSelect/ComplexSelect.tsx
681
- import { jsx as jsx10, jsxs as jsxs2 } from "react/jsx-runtime";
682
- function ComplexSelect(_a2) {
683
- var _b2 = _a2, { children, sx, label, labelId } = _b2, props = __objRest(_b2, ["children", "sx", "label", "labelId"]);
684
- const selectContent = /* @__PURE__ */ jsx10(
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(
685
1262
  MuiSelect,
686
1263
  __spreadProps(__spreadValues({}, props), {
687
1264
  label,
@@ -704,8 +1281,8 @@ function ComplexSelect(_a2) {
704
1281
  if (label) {
705
1282
  const generatedLabelId = labelId || `complex-select-label-${Math.random().toString(36).substr(2, 9)}`;
706
1283
  return /* @__PURE__ */ jsxs2(MuiFormControl, { fullWidth: props.fullWidth, sx: { minWidth: 120 }, children: [
707
- /* @__PURE__ */ jsx10(MuiInputLabel, { id: generatedLabelId, children: label }),
708
- /* @__PURE__ */ jsx10(
1284
+ /* @__PURE__ */ jsx11(MuiInputLabel, { id: generatedLabelId, children: label }),
1285
+ /* @__PURE__ */ jsx11(
709
1286
  MuiSelect,
710
1287
  __spreadProps(__spreadValues({}, props), {
711
1288
  label,
@@ -736,9 +1313,144 @@ var ComplexSelectCompound = Object.assign(ComplexSelect, {
736
1313
  });
737
1314
  var ComplexSelect_default = ComplexSelectCompound;
738
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
+
739
1451
  // src/components/ThemeSwitcher/ThemeSelect.tsx
740
1452
  import { Select, MenuItem, FormControl, InputLabel } from "@mui/material";
741
- import { jsx as jsx11, jsxs as jsxs3 } from "react/jsx-runtime";
1453
+ import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
742
1454
  function ThemeSelect({
743
1455
  size = "small",
744
1456
  showLabel = false,
@@ -750,23 +1462,23 @@ function ThemeSelect({
750
1462
  const handleChange = (event) => {
751
1463
  setTheme(event.target.value);
752
1464
  };
753
- return /* @__PURE__ */ jsxs3(FormControl, { size, variant, sx: __spreadValues({ minWidth: 120 }, sx), children: [
754
- showLabel && /* @__PURE__ */ jsx11(InputLabel, { id: "theme-select-label", children: label }),
755
- /* @__PURE__ */ jsx11(
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(
756
1468
  Select,
757
1469
  {
758
1470
  labelId: showLabel ? "theme-select-label" : void 0,
759
1471
  value: currentTheme,
760
1472
  onChange: handleChange,
761
1473
  label: showLabel ? label : void 0,
762
- children: themes.map((themeOption) => /* @__PURE__ */ jsx11(MenuItem, { value: themeOption.key, children: themeOption.label }, themeOption.key))
1474
+ children: themes.map((themeOption) => /* @__PURE__ */ jsx17(MenuItem, { value: themeOption.key, children: themeOption.label }, themeOption.key))
763
1475
  }
764
1476
  )
765
1477
  ] });
766
1478
  }
767
1479
 
768
1480
  // src/components/ThemeSwitcher/ThemeSwitcher.tsx
769
- import { Fragment, jsx as jsx12 } from "react/jsx-runtime";
1481
+ import { Fragment, jsx as jsx18 } from "react/jsx-runtime";
770
1482
  function ThemeSwitcher({
771
1483
  children,
772
1484
  size,
@@ -777,9 +1489,9 @@ function ThemeSwitcher({
777
1489
  }) {
778
1490
  const themeSwitcherContext = useThemeSwitcher();
779
1491
  if (children) {
780
- return /* @__PURE__ */ jsx12(Fragment, { children: children(themeSwitcherContext) });
1492
+ return /* @__PURE__ */ jsx18(Fragment, { children: children(themeSwitcherContext) });
781
1493
  }
782
- return /* @__PURE__ */ jsx12(
1494
+ return /* @__PURE__ */ jsx18(
783
1495
  ThemeSelect,
784
1496
  {
785
1497
  size,
@@ -792,12 +1504,12 @@ function ThemeSwitcher({
792
1504
  }
793
1505
 
794
1506
  // src/layouts/Layout.tsx
795
- import Box2 from "@mui/material/Box";
796
- import { jsx as jsx13 } from "react/jsx-runtime";
797
- function Layout(_a2) {
798
- var _b2 = _a2, { children = null, sx } = _b2, rest = __objRest(_b2, ["children", "sx"]);
799
- return /* @__PURE__ */ jsx13(
800
- Box2,
1507
+ import Box4 from "@mui/material/Box";
1508
+ import { jsx as jsx19 } from "react/jsx-runtime";
1509
+ function Layout(_a) {
1510
+ var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
1511
+ return /* @__PURE__ */ jsx19(
1512
+ Box4,
801
1513
  __spreadProps(__spreadValues({
802
1514
  sx: __spreadValues({
803
1515
  display: "flex",
@@ -811,12 +1523,12 @@ function Layout(_a2) {
811
1523
  var Layout_default = Layout;
812
1524
 
813
1525
  // src/layouts/LayoutSidebar.tsx
814
- import Box3 from "@mui/material/Box";
815
- import { jsx as jsx14 } from "react/jsx-runtime";
816
- function LayoutSidebar(_a2) {
817
- var _b2 = _a2, { children = null, sx } = _b2, rest = __objRest(_b2, ["children", "sx"]);
818
- return /* @__PURE__ */ jsx14(
819
- Box3,
1526
+ import Box5 from "@mui/material/Box";
1527
+ import { jsx as jsx20 } from "react/jsx-runtime";
1528
+ function LayoutSidebar(_a) {
1529
+ var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
1530
+ return /* @__PURE__ */ jsx20(
1531
+ Box5,
820
1532
  __spreadProps(__spreadValues({
821
1533
  sx: __spreadValues({
822
1534
  display: "flex",
@@ -836,12 +1548,12 @@ function LayoutNavbar({ children = null }) {
836
1548
  var LayoutNavbar_default = LayoutNavbar;
837
1549
 
838
1550
  // src/layouts/LayoutContent.tsx
839
- import Box4 from "@mui/material/Box";
840
- import { jsx as jsx15 } from "react/jsx-runtime";
841
- function LayoutContent(_a2) {
842
- var _b2 = _a2, { children = null } = _b2, rest = __objRest(_b2, ["children"]);
843
- return /* @__PURE__ */ jsx15(
844
- Box4,
1551
+ import Box6 from "@mui/material/Box";
1552
+ import { jsx as jsx21 } from "react/jsx-runtime";
1553
+ function LayoutContent(_a) {
1554
+ var _b = _a, { children = null } = _b, rest = __objRest(_b, ["children"]);
1555
+ return /* @__PURE__ */ jsx21(
1556
+ Box6,
845
1557
  __spreadProps(__spreadValues({
846
1558
  component: "main",
847
1559
  sx: {
@@ -858,12 +1570,12 @@ function LayoutContent(_a2) {
858
1570
  var LayoutContent_default = LayoutContent;
859
1571
 
860
1572
  // src/layouts/LayoutHeader.tsx
861
- import Box5 from "@mui/material/Box";
862
- import { jsx as jsx16 } from "react/jsx-runtime";
863
- function LayoutHeader(_a2) {
864
- var _b2 = _a2, { children = null, sx } = _b2, rest = __objRest(_b2, ["children", "sx"]);
865
- return /* @__PURE__ */ jsx16(
866
- Box5,
1573
+ import Box7 from "@mui/material/Box";
1574
+ import { jsx as jsx22 } from "react/jsx-runtime";
1575
+ function LayoutHeader(_a) {
1576
+ var _b = _a, { children = null, sx } = _b, rest = __objRest(_b, ["children", "sx"]);
1577
+ return /* @__PURE__ */ jsx22(
1578
+ Box7,
867
1579
  __spreadProps(__spreadValues({
868
1580
  sx: __spreadValues({
869
1581
  display: "flex"
@@ -884,26 +1596,254 @@ var Layout2 = Object.assign(Layout_default, {
884
1596
  });
885
1597
  var layouts_default = Layout2;
886
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
+
887
1814
  // src/index.ts
888
1815
  export * from "@mui/material";
1816
+ import * as colors from "@mui/material/colors";
889
1817
  import * as Charts from "@mui/x-charts";
890
1818
  import * as DataGrid from "@mui/x-data-grid";
891
1819
  import * as DatePickers from "@mui/x-date-pickers";
1820
+ import { AdapterDateFns } from "@mui/x-date-pickers/AdapterDateFns";
892
1821
  import * as TreeView from "@mui/x-tree-view";
893
1822
  export {
1823
+ AdapterDateFns,
1824
+ AsgardeoTheme_default as AsgardeoTheme,
894
1825
  Charts,
1826
+ ChoreoTheme_default as ChoreoTheme,
1827
+ ClassicTheme_default as ClassicTheme,
1828
+ CodeBlock_default as CodeBlock,
895
1829
  ColorSchemeImage,
896
- ColorSchemeToggle_default as ColorSchemeToggle,
1830
+ ColorSchemeToggle,
1831
+ ColorSchemeToggle_default as ColorSchemeToggleDefault,
897
1832
  ComplexSelect_default as ComplexSelect,
898
1833
  DataGrid,
899
1834
  DatePickers,
1835
+ HighContrastTheme_default as HighContrastTheme,
900
1836
  layouts_default as Layout,
901
- OxygenTheme_default as OxygenTheme,
902
- OxygenThemeWithRadialBackground_default as OxygenThemeWithRadialBackground,
1837
+ OxygenBaseTheme_default as OxygenTheme,
903
1838
  OxygenUIThemeProvider,
1839
+ PageTitle_default as PageTitle,
1840
+ ParticleBackground,
904
1841
  ThemeSelect,
905
1842
  ThemeSwitcher,
906
1843
  TreeView,
1844
+ colors,
1845
+ useThemeContent,
1846
+ useThemeContent_default as useThemeContentDefault,
907
1847
  useThemeSwitcher
908
1848
  };
909
1849
  //# sourceMappingURL=index.js.map