@quietmind/mdx-docs 0.1.15 → 0.1.16

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.
@@ -0,0 +1,12 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2
+ <defs>
3
+ <linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
4
+ <stop offset="0%" stop-color="#7c3aed"/>
5
+ <stop offset="100%" stop-color="#22d3ee"/>
6
+ </linearGradient>
7
+ </defs>
8
+ <polygon
9
+ points="11.2,3.5 7.8,11.5 10.6,11.5 8.8,20 15.6,9.8 12.6,9.8 16,3.5"
10
+ fill="url(#grad)"
11
+ />
12
+ </svg>
package/dist/icon.svg ADDED
@@ -0,0 +1,22 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="500" height="500" fill="none" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round">
2
+
3
+ <defs>
4
+ <linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
5
+ <stop offset="0%" stop-color="#7c3aed"/>
6
+ <stop offset="100%" stop-color="#22d3ee"/>
7
+ </linearGradient>
8
+ </defs>
9
+
10
+ <!-- Single continuous document outline -->
11
+ <path
12
+ d="M14 2H6C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H18C19.1 22 20 21.1 20 20V8L14 2Z"
13
+ stroke="url(#grad)"
14
+ />
15
+
16
+ <!-- Lightning bolt -->
17
+ <polygon
18
+ points="11.8,6.6 9.4,12.8 11.8,12.8 10.3,18.2 14.8,11.4 12.3,11.4 15.8,6.6"
19
+ fill="url(#grad)"
20
+ />
21
+
22
+ </svg>
package/dist/index.js CHANGED
@@ -1,42 +1,42 @@
1
- import { jsx as n, jsxs as m, Fragment as U } from "react/jsx-runtime";
2
- import X, { createContext as Z, useContext as K, useState as F, Suspense as Y, useEffect as x, useLayoutEffect as q, useMemo as V, StrictMode as J } from "react";
1
+ import { jsx as a, jsxs as m, Fragment as U } from "react/jsx-runtime";
2
+ import X, { createContext as Z, useContext as K, useState as F, Suspense as q, useEffect as x, useLayoutEffect as Y, useMemo as V, StrictMode as J } from "react";
3
3
  import { createRoot as Q } from "react-dom/client";
4
- import { AppBar as ee, Toolbar as P, IconButton as A, Typography as te, Box as g, useTheme as D, Tooltip as re, CircularProgress as ne, List as ae, ListItem as oe, ListItemButton as se, ListItemText as ie, Drawer as $, createTheme as le, ThemeProvider as ce, CssBaseline as de } from "@mui/material";
5
- import { Link as L, Routes as ue, Route as I, useLocation as B, BrowserRouter as pe, useNavigate as ge } from "react-router-dom";
6
- import fe from "@mui/icons-material/DarkMode";
4
+ import { AppBar as ee, Toolbar as P, IconButton as v, Typography as te, Box as f, useTheme as D, Tooltip as re, CircularProgress as ae, List as ne, ListItem as oe, ListItemButton as se, ListItemText as ie, Drawer as $, createTheme as le, ThemeProvider as ce, CssBaseline as de } from "@mui/material";
5
+ import { Link as L, Routes as pe, Route as I, useLocation as B, BrowserRouter as ue, useNavigate as fe } from "react-router-dom";
6
+ import ge from "@mui/icons-material/DarkMode";
7
7
  import me from "@mui/icons-material/LightMode";
8
- import he from "@mui/icons-material/Menu";
9
- import { MDXProvider as be } from "@mdx-js/react";
8
+ import be from "@mui/icons-material/Menu";
9
+ import { MDXProvider as he } from "@mdx-js/react";
10
10
  import ye from "@mui/icons-material/Check";
11
11
  import Se from "@mui/icons-material/ContentCopy";
12
12
  import { Highlight as M } from "prism-react-renderer";
13
13
  import xe from "prismjs";
14
- const j = Z(null), we = ({ pages: e, site: t, children: r }) => /* @__PURE__ */ n(j.Provider, { value: { pages: e, site: t }, children: r }), E = () => {
14
+ const j = Z(null), ke = ({ pages: e, site: t, children: r }) => /* @__PURE__ */ a(j.Provider, { value: { pages: e, site: t }, children: r }), E = () => {
15
15
  const e = K(j);
16
16
  if (!e)
17
17
  throw new Error("useDocsContext must be used within a DocsProvider");
18
18
  return e;
19
19
  };
20
- function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
21
- const { site: o } = E();
22
- return /* @__PURE__ */ n(
20
+ function we({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
21
+ const { site: n } = E();
22
+ return /* @__PURE__ */ a(
23
23
  ee,
24
24
  {
25
25
  position: "fixed",
26
- sx: { zIndex: (l) => l.zIndex.drawer + 1 },
26
+ sx: { zIndex: (i) => i.zIndex.drawer + 1 },
27
27
  children: /* @__PURE__ */ m(P, { children: [
28
- /* @__PURE__ */ n(
29
- A,
28
+ /* @__PURE__ */ a(
29
+ v,
30
30
  {
31
31
  color: "inherit",
32
32
  edge: "start",
33
33
  onClick: r,
34
34
  "aria-label": "Toggle navigation menu",
35
35
  sx: { mr: 2, display: { sm: "none" } },
36
- children: /* @__PURE__ */ n(he, {})
36
+ children: /* @__PURE__ */ a(be, {})
37
37
  }
38
38
  ),
39
- /* @__PURE__ */ n(
39
+ /* @__PURE__ */ a(
40
40
  te,
41
41
  {
42
42
  variant: "h6",
@@ -50,36 +50,23 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
50
50
  color: "inherit"
51
51
  }
52
52
  },
53
- children: o.name
53
+ children: n.name
54
54
  }
55
55
  ),
56
- /* @__PURE__ */ n(g, { sx: { flexGrow: 1 } }),
57
- /* @__PURE__ */ n(
58
- A,
56
+ /* @__PURE__ */ a(f, { sx: { flexGrow: 1 } }),
57
+ /* @__PURE__ */ a(
58
+ v,
59
59
  {
60
60
  onClick: () => t(!e),
61
61
  color: "inherit",
62
62
  "aria-label": e ? "Switch to light mode" : "Switch to dark mode",
63
63
  sx: {
64
64
  ml: 1,
65
- "&:focus": {
66
- outline: "none"
67
- },
68
- "&:focus-visible": {
69
- outline: "none"
70
- },
71
- "&:focus-within": {
72
- outline: "none"
73
- },
74
- // Remove webkit focus ring
75
- "&::-webkit-focus-inner": {
76
- border: 0
77
- },
78
- "&::-webkit-focus-ring-color": {
65
+ "&:focus:not(:focus-visible)": {
79
66
  outline: "none"
80
67
  }
81
68
  },
82
- children: e ? /* @__PURE__ */ n(me, {}) : /* @__PURE__ */ n(fe, {})
69
+ children: e ? /* @__PURE__ */ a(me, {}) : /* @__PURE__ */ a(ge, {})
83
70
  }
84
71
  )
85
72
  ] })
@@ -94,7 +81,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
94
81
  // this looks reasonably well in all themes
95
82
  inside: null
96
83
  // see below
97
- }, o = {
84
+ }, n = {
98
85
  bash: r,
99
86
  environment: {
100
87
  pattern: RegExp("\\$" + t),
@@ -206,7 +193,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
206
193
  pattern: /((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,
207
194
  lookbehind: !0,
208
195
  greedy: !0,
209
- inside: o
196
+ inside: n
210
197
  },
211
198
  // Here-document with quotes around the tag
212
199
  // → No expansion (so no “inside”).
@@ -224,7 +211,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
224
211
  pattern: /(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,
225
212
  lookbehind: !0,
226
213
  greedy: !0,
227
- inside: o
214
+ inside: n
228
215
  },
229
216
  {
230
217
  // https://www.gnu.org/software/bash/manual/html_node/Single-Quotes.html
@@ -237,7 +224,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
237
224
  pattern: /\$'(?:[^'\\]|\\[\s\S])*'/,
238
225
  greedy: !0,
239
226
  inside: {
240
- entity: o.entity
227
+ entity: n.entity
241
228
  }
242
229
  }
243
230
  ],
@@ -245,7 +232,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
245
232
  pattern: RegExp("\\$?" + t),
246
233
  alias: "constant"
247
234
  },
248
- variable: o.variable,
235
+ variable: n.variable,
249
236
  function: {
250
237
  pattern: /(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,
251
238
  lookbehind: !0
@@ -285,7 +272,7 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
285
272
  lookbehind: !0
286
273
  }
287
274
  }, r.inside = e.languages.bash;
288
- for (var l = [
275
+ for (var i = [
289
276
  "comment",
290
277
  "function-name",
291
278
  "for-or-select",
@@ -301,12 +288,12 @@ function ke({ darkMode: e, setDarkMode: t, handleDrawerToggle: r }) {
301
288
  "operator",
302
289
  "punctuation",
303
290
  "number"
304
- ], s = o.variable[1].inside, i = 0; i < l.length; i++)
305
- s[l[i]] = e.languages.bash[l[i]];
291
+ ], s = n.variable[1].inside, l = 0; l < i.length; l++)
292
+ s[i[l]] = e.languages.bash[i[l]];
306
293
  e.languages.sh = e.languages.bash, e.languages.shell = e.languages.bash;
307
294
  })(Prism);
308
295
  var O = {}, R;
309
- function ve() {
296
+ function Ae() {
310
297
  return R || (R = 1, function(e) {
311
298
  var t = [
312
299
  // normal string
@@ -362,26 +349,26 @@ function ve() {
362
349
  }, e.languages["sh-session"] = e.languages.shellsession = e.languages["shell-session"];
363
350
  }(Prism)), O;
364
351
  }
365
- ve();
352
+ Ae();
366
353
  (function(e) {
367
354
  var t = /\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source, r = /(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g, function() {
368
355
  return t;
369
- }), o = /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source, l = /--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g, function() {
370
- return o;
356
+ }), n = /"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source, i = /--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g, function() {
357
+ return n;
371
358
  }), s = {
372
- pattern: RegExp(o),
359
+ pattern: RegExp(n),
373
360
  greedy: !0
374
- }, i = {
361
+ }, l = {
375
362
  pattern: /(^[ \t]*)#.*/m,
376
363
  lookbehind: !0,
377
364
  greedy: !0
378
365
  };
379
- function u(a, c) {
380
- return a = a.replace(/<OPT>/g, function() {
381
- return l;
366
+ function p(o, c) {
367
+ return o = o.replace(/<OPT>/g, function() {
368
+ return i;
382
369
  }).replace(/<SP>/g, function() {
383
370
  return r;
384
- }), RegExp(a, c);
371
+ }), RegExp(o, c);
385
372
  }
386
373
  e.languages.docker = {
387
374
  instruction: {
@@ -390,7 +377,7 @@ ve();
390
377
  greedy: !0,
391
378
  inside: {
392
379
  options: {
393
- pattern: u(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source, "i"),
380
+ pattern: p(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source, "i"),
394
381
  lookbehind: !0,
395
382
  greedy: !0,
396
383
  inside: {
@@ -412,19 +399,19 @@ ve();
412
399
  keyword: [
413
400
  {
414
401
  // https://docs.docker.com/engine/reference/builder/#healthcheck
415
- pattern: u(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source, "i"),
402
+ pattern: p(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source, "i"),
416
403
  lookbehind: !0,
417
404
  greedy: !0
418
405
  },
419
406
  {
420
407
  // https://docs.docker.com/engine/reference/builder/#from
421
- pattern: u(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source, "i"),
408
+ pattern: p(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source, "i"),
422
409
  lookbehind: !0,
423
410
  greedy: !0
424
411
  },
425
412
  {
426
413
  // https://docs.docker.com/engine/reference/builder/#onbuild
427
- pattern: u(/(^ONBUILD<SP>)\w+/.source, "i"),
414
+ pattern: p(/(^ONBUILD<SP>)\w+/.source, "i"),
428
415
  lookbehind: !0,
429
416
  greedy: !0
430
417
  },
@@ -433,32 +420,32 @@ ve();
433
420
  greedy: !0
434
421
  }
435
422
  ],
436
- comment: i,
423
+ comment: l,
437
424
  string: s,
438
425
  variable: /\$(?:\w+|\{[^{}"'\\]*\})/,
439
426
  operator: /\\$/m
440
427
  }
441
428
  },
442
- comment: i
429
+ comment: l
443
430
  }, e.languages.dockerfile = e.languages.docker;
444
431
  })(Prism);
445
432
  (function(e) {
446
- var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, o = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", l = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
433
+ var t = /[*&][^\s[\]{},]+/, r = /!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/, n = "(?:" + r.source + "(?:[ ]+" + t.source + ")?|" + t.source + "(?:[ ]+" + r.source + ")?)", i = /(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g, function() {
447
434
  return /[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source;
448
435
  }), s = /"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;
449
- function i(u, a) {
450
- a = (a || "").replace(/m/g, "") + "m";
436
+ function l(p, o) {
437
+ o = (o || "").replace(/m/g, "") + "m";
451
438
  var c = /([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g, function() {
452
- return o;
439
+ return n;
453
440
  }).replace(/<<value>>/g, function() {
454
- return u;
441
+ return p;
455
442
  });
456
- return RegExp(c, a);
443
+ return RegExp(c, o);
457
444
  }
458
445
  e.languages.yaml = {
459
446
  scalar: {
460
447
  pattern: RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g, function() {
461
- return o;
448
+ return n;
462
449
  })),
463
450
  lookbehind: !0,
464
451
  alias: "string"
@@ -466,9 +453,9 @@ ve();
466
453
  comment: /#.*/,
467
454
  key: {
468
455
  pattern: RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g, function() {
469
- return o;
456
+ return n;
470
457
  }).replace(/<<key>>/g, function() {
471
- return "(?:" + l + "|" + s + ")";
458
+ return "(?:" + i + "|" + s + ")";
472
459
  })),
473
460
  lookbehind: !0,
474
461
  greedy: !0,
@@ -480,27 +467,27 @@ ve();
480
467
  alias: "important"
481
468
  },
482
469
  datetime: {
483
- pattern: i(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
470
+ pattern: l(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),
484
471
  lookbehind: !0,
485
472
  alias: "number"
486
473
  },
487
474
  boolean: {
488
- pattern: i(/false|true/.source, "i"),
475
+ pattern: l(/false|true/.source, "i"),
489
476
  lookbehind: !0,
490
477
  alias: "important"
491
478
  },
492
479
  null: {
493
- pattern: i(/null|~/.source, "i"),
480
+ pattern: l(/null|~/.source, "i"),
494
481
  lookbehind: !0,
495
482
  alias: "important"
496
483
  },
497
484
  string: {
498
- pattern: i(s),
485
+ pattern: l(s),
499
486
  lookbehind: !0,
500
487
  greedy: !0
501
488
  },
502
489
  number: {
503
- pattern: i(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
490
+ pattern: l(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source, "i"),
504
491
  lookbehind: !0
505
492
  },
506
493
  tag: r,
@@ -510,8 +497,8 @@ ve();
510
497
  })(Prism);
511
498
  (function(e) {
512
499
  var t = /(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;
513
- function r(o) {
514
- return o.replace(/__/g, function() {
500
+ function r(n) {
501
+ return n.replace(/__/g, function() {
515
502
  return t;
516
503
  });
517
504
  }
@@ -691,17 +678,17 @@ Prism.languages.markup && (Prism.languages.markup.tag.addInlined("script", "java
691
678
  ));
692
679
  Prism.languages.js = Prism.languages.javascript;
693
680
  (function(e) {
694
- var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, o = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, l = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
695
- function s(a, c) {
696
- return a = a.replace(/<S>/g, function() {
681
+ var t = e.util.clone(e.languages.javascript), r = /(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source, n = /(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source, i = /(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;
682
+ function s(o, c) {
683
+ return o = o.replace(/<S>/g, function() {
697
684
  return r;
698
685
  }).replace(/<BRACES>/g, function() {
699
- return o;
686
+ return n;
700
687
  }).replace(/<SPREAD>/g, function() {
701
- return l;
702
- }), RegExp(a, c);
688
+ return i;
689
+ }), RegExp(o, c);
703
690
  }
704
- l = s(l).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = s(
691
+ i = s(i).source, e.languages.jsx = e.languages.extend("markup", t), e.languages.jsx.tag.pattern = s(
705
692
  /<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source
706
693
  ), e.languages.jsx.tag.inside.tag.pattern = /^<\/?[^\s>\/]*/, e.languages.jsx.tag.inside["attr-value"].pattern = /=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/, e.languages.jsx.tag.inside.tag.inside["class-name"] = /^[A-Z]\w*(?:\.[A-Z]\w*)*$/, e.languages.jsx.tag.inside.comment = t.comment, e.languages.insertBefore("inside", "attr-name", {
707
694
  spread: {
@@ -722,27 +709,27 @@ Prism.languages.js = Prism.languages.javascript;
722
709
  }
723
710
  }
724
711
  }, e.languages.jsx.tag);
725
- var i = function(a) {
726
- return a ? typeof a == "string" ? a : typeof a.content == "string" ? a.content : a.content.map(i).join("") : "";
727
- }, u = function(a) {
728
- for (var c = [], p = 0; p < a.length; p++) {
729
- var d = a[p], h = !1;
730
- if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? c.length > 0 && c[c.length - 1].tagName === i(d.content[0].content[1]) && c.pop() : d.content[d.content.length - 1].content === "/>" || c.push({
731
- tagName: i(d.content[0].content[1]),
712
+ var l = function(o) {
713
+ return o ? typeof o == "string" ? o : typeof o.content == "string" ? o.content : o.content.map(l).join("") : "";
714
+ }, p = function(o) {
715
+ for (var c = [], u = 0; u < o.length; u++) {
716
+ var d = o[u], b = !1;
717
+ if (typeof d != "string" && (d.type === "tag" && d.content[0] && d.content[0].type === "tag" ? d.content[0].content[0].content === "</" ? c.length > 0 && c[c.length - 1].tagName === l(d.content[0].content[1]) && c.pop() : d.content[d.content.length - 1].content === "/>" || c.push({
718
+ tagName: l(d.content[0].content[1]),
732
719
  openedBraces: 0
733
- }) : c.length > 0 && d.type === "punctuation" && d.content === "{" ? c[c.length - 1].openedBraces++ : c.length > 0 && c[c.length - 1].openedBraces > 0 && d.type === "punctuation" && d.content === "}" ? c[c.length - 1].openedBraces-- : h = !0), (h || typeof d == "string") && c.length > 0 && c[c.length - 1].openedBraces === 0) {
734
- var f = i(d);
735
- p < a.length - 1 && (typeof a[p + 1] == "string" || a[p + 1].type === "plain-text") && (f += i(a[p + 1]), a.splice(p + 1, 1)), p > 0 && (typeof a[p - 1] == "string" || a[p - 1].type === "plain-text") && (f = i(a[p - 1]) + f, a.splice(p - 1, 1), p--), a[p] = new e.Token("plain-text", f, null, f);
720
+ }) : c.length > 0 && d.type === "punctuation" && d.content === "{" ? c[c.length - 1].openedBraces++ : c.length > 0 && c[c.length - 1].openedBraces > 0 && d.type === "punctuation" && d.content === "}" ? c[c.length - 1].openedBraces-- : b = !0), (b || typeof d == "string") && c.length > 0 && c[c.length - 1].openedBraces === 0) {
721
+ var g = l(d);
722
+ u < o.length - 1 && (typeof o[u + 1] == "string" || o[u + 1].type === "plain-text") && (g += l(o[u + 1]), o.splice(u + 1, 1)), u > 0 && (typeof o[u - 1] == "string" || o[u - 1].type === "plain-text") && (g = l(o[u - 1]) + g, o.splice(u - 1, 1), u--), o[u] = new e.Token("plain-text", g, null, g);
736
723
  }
737
- d.content && typeof d.content != "string" && u(d.content);
724
+ d.content && typeof d.content != "string" && p(d.content);
738
725
  }
739
726
  };
740
- e.hooks.add("after-tokenize", function(a) {
741
- a.language !== "jsx" && a.language !== "tsx" || u(a.tokens);
727
+ e.hooks.add("after-tokenize", function(o) {
728
+ o.language !== "jsx" && o.language !== "tsx" || p(o.tokens);
742
729
  });
743
730
  })(Prism);
744
731
  var C = {}, N;
745
- function Ae() {
732
+ function ve() {
746
733
  return N || (N = 1, function(e) {
747
734
  e.languages.typescript = e.languages.extend("javascript", {
748
735
  "class-name": {
@@ -789,7 +776,7 @@ function Ae() {
789
776
  }), e.languages.ts = e.languages.typescript;
790
777
  }(Prism)), C;
791
778
  }
792
- Ae();
779
+ ve();
793
780
  (function(e) {
794
781
  var t = e.util.clone(e.languages.typescript);
795
782
  e.languages.tsx = e.languages.extend("jsx", t), delete e.languages.tsx.parameter, delete e.languages.tsx["literal-property"];
@@ -802,9 +789,9 @@ const Fe = {
802
789
  zsh: "bash",
803
790
  console: "bash"
804
791
  }, Ee = ({ children: e, className: t = "", ...r }) => {
805
- const [o, l] = F(!1), s = D(), i = t.replace("language-", "") || "jsx", u = Fe[i] ?? i;
806
- let a = "";
807
- typeof e == "string" ? a = e.trim() : e && typeof e == "object" && e.props && (typeof e.props.children == "string" ? a = e.props.children.trim() : Array.isArray(e.props.children) && (a = e.props.children.join("").trim()));
792
+ const [n, i] = F(!1), s = D(), l = t.replace("language-", "") || "jsx", p = Fe[l] ?? l;
793
+ let o = "";
794
+ typeof e == "string" ? o = e.trim() : e && typeof e == "object" && e.props && (typeof e.props.children == "string" ? o = e.props.children.trim() : Array.isArray(e.props.children) && (o = e.props.children.join("").trim()));
808
795
  const c = {
809
796
  plain: {
810
797
  color: s.palette.text.primary,
@@ -861,25 +848,25 @@ const Fe = {
861
848
  }
862
849
  ]
863
850
  };
864
- return /* @__PURE__ */ m(g, { sx: { position: "relative", my: 2 }, children: [
865
- /* @__PURE__ */ n(g, { sx: { position: "absolute", top: 4, right: 4, zIndex: 1 }, children: /* @__PURE__ */ n(re, { title: o ? "Copied!" : "Copy", children: /* @__PURE__ */ n(
866
- A,
851
+ return /* @__PURE__ */ m(f, { sx: { position: "relative", my: 2 }, children: [
852
+ /* @__PURE__ */ a(f, { sx: { position: "absolute", top: 4, right: 4, zIndex: 1 }, children: /* @__PURE__ */ a(re, { title: n ? "Copied!" : "Copy", children: /* @__PURE__ */ a(
853
+ v,
867
854
  {
868
855
  size: "small",
869
856
  onClick: async () => {
870
857
  try {
871
- await navigator.clipboard.writeText(a), l(!0), setTimeout(() => l(!1), 1500);
858
+ await navigator.clipboard.writeText(o), i(!0), setTimeout(() => i(!1), 1500);
872
859
  } catch {
873
860
  }
874
861
  },
875
862
  color: "inherit",
876
- "aria-label": o ? "Code copied to clipboard" : "Copy code to clipboard",
863
+ "aria-label": n ? "Code copied to clipboard" : "Copy code to clipboard",
877
864
  sx: { width: 24, height: 24 },
878
- children: o ? /* @__PURE__ */ n(ye, { sx: { fontSize: 16 } }) : /* @__PURE__ */ n(Se, { sx: { fontSize: 16 } })
865
+ children: n ? /* @__PURE__ */ a(ye, { sx: { fontSize: 16 } }) : /* @__PURE__ */ a(Se, { sx: { fontSize: 16 } })
879
866
  }
880
867
  ) }) }),
881
- /* @__PURE__ */ n(M, { prism: xe, code: a, language: u, theme: c, children: ({ className: d, style: h, tokens: f, getLineProps: w, getTokenProps: k }) => /* @__PURE__ */ m(
882
- g,
868
+ /* @__PURE__ */ a(M, { prism: xe, code: o, language: p, theme: c, children: ({ className: d, style: b, tokens: g, getLineProps: k, getTokenProps: w }) => /* @__PURE__ */ m(
869
+ f,
883
870
  {
884
871
  sx: {
885
872
  border: 1,
@@ -890,8 +877,8 @@ const Fe = {
890
877
  boxShadow: 1
891
878
  },
892
879
  children: [
893
- /* @__PURE__ */ n(
894
- g,
880
+ /* @__PURE__ */ a(
881
+ f,
895
882
  {
896
883
  sx: {
897
884
  px: 2,
@@ -905,15 +892,15 @@ const Fe = {
905
892
  textTransform: "uppercase",
906
893
  letterSpacing: 0.5
907
894
  },
908
- children: u
895
+ children: p
909
896
  }
910
897
  ),
911
- /* @__PURE__ */ n(
898
+ /* @__PURE__ */ a(
912
899
  "pre",
913
900
  {
914
901
  className: d,
915
902
  style: {
916
- ...h,
903
+ ...b,
917
904
  margin: 0,
918
905
  padding: 16,
919
906
  overflowX: "auto",
@@ -923,12 +910,12 @@ const Fe = {
923
910
  whiteSpace: "pre-wrap"
924
911
  },
925
912
  ...r,
926
- children: f.map((b, S) => {
927
- const T = w({ line: b, key: S }), { key: v, ...H } = T;
928
- return /* @__PURE__ */ n("div", { ...H, children: b.map((G, _) => {
929
- const z = k({ token: G, key: _ }), { key: Ge, ...W } = z;
930
- return /* @__PURE__ */ n("span", { ...W }, `${S}-${_}`);
931
- }) }, v);
913
+ children: g.map((h, S) => {
914
+ const T = k({ line: h, key: S }), { key: A, ...H } = T;
915
+ return /* @__PURE__ */ a("div", { ...H, children: h.map((G, _) => {
916
+ const z = w({ token: G, key: _ }), { key: ze, ...W } = z;
917
+ return /* @__PURE__ */ a("span", { ...W }, `${S}-${_}`);
918
+ }) }, A);
932
919
  })
933
920
  }
934
921
  )
@@ -937,7 +924,7 @@ const Fe = {
937
924
  ) })
938
925
  ] });
939
926
  }, Te = ({ children: e, ...t }) => {
940
- const r = D(), o = typeof e == "string" ? e.trim() : "", l = {
927
+ const r = D(), n = typeof e == "string" ? e.trim() : "", i = {
941
928
  plain: {
942
929
  color: r.palette.text.primary,
943
930
  backgroundColor: r.palette.mode === "dark" ? "rgba(255,255,255,0.08)" : "rgba(0,0,0,0.08)"
@@ -993,12 +980,12 @@ const Fe = {
993
980
  }
994
981
  ]
995
982
  };
996
- return /* @__PURE__ */ n(M, { code: o, language: "jsx", theme: l, children: ({ className: s, style: i, tokens: u, getLineProps: a, getTokenProps: c }) => /* @__PURE__ */ n(
983
+ return /* @__PURE__ */ a(M, { code: n, language: "jsx", theme: i, children: ({ className: s, style: l, tokens: p, getLineProps: o, getTokenProps: c }) => /* @__PURE__ */ a(
997
984
  "code",
998
985
  {
999
986
  className: s,
1000
987
  style: {
1001
- ...i,
988
+ ...l,
1002
989
  padding: "2px 4px",
1003
990
  borderRadius: "3px",
1004
991
  fontSize: "0.875em",
@@ -1009,19 +996,19 @@ const Fe = {
1009
996
  maxWidth: "100%"
1010
997
  },
1011
998
  ...t,
1012
- children: u.map((p, d) => {
1013
- const h = a({ line: p, key: d }), { key: f, ...w } = h;
1014
- return /* @__PURE__ */ n("div", { ...w, children: p.map((k, b) => {
1015
- const S = c({ token: k, key: b }), { key: T, ...v } = S;
1016
- return /* @__PURE__ */ n("span", { ...v }, `${d}-${b}`);
1017
- }) }, f);
999
+ children: p.map((u, d) => {
1000
+ const b = o({ line: u, key: d }), { key: g, ...k } = b;
1001
+ return /* @__PURE__ */ a("div", { ...k, children: u.map((w, h) => {
1002
+ const S = c({ token: w, key: h }), { key: T, ...A } = S;
1003
+ return /* @__PURE__ */ a("span", { ...A }, `${d}-${h}`);
1004
+ }) }, g);
1018
1005
  })
1019
1006
  }
1020
1007
  ) });
1021
1008
  }, _e = (e) => e.filter((t) => !t.isDefault), $e = (e) => e.find((t) => t.isDefault), Ie = (e) => e ? !!(e.startsWith("http://") || e.startsWith("https://") || e.startsWith("mailto:") || e.startsWith("tel:")) : !1, Oe = () => {
1022
1009
  const { pages: e } = E();
1023
- return /* @__PURE__ */ n(
1024
- g,
1010
+ return /* @__PURE__ */ a(
1011
+ f,
1025
1012
  {
1026
1013
  sx: {
1027
1014
  width: "100%",
@@ -1069,15 +1056,15 @@ const Fe = {
1069
1056
  }
1070
1057
  }
1071
1058
  },
1072
- children: /* @__PURE__ */ n(
1073
- be,
1059
+ children: /* @__PURE__ */ a(
1060
+ he,
1074
1061
  {
1075
1062
  components: {
1076
1063
  // pre: CodeBlock,
1077
- code: (t) => t.className ? /* @__PURE__ */ n(Ee, { ...t }) : /* @__PURE__ */ n(Te, { ...t }),
1064
+ code: (t) => t.className ? /* @__PURE__ */ a(Ee, { ...t }) : /* @__PURE__ */ a(Te, { ...t }),
1078
1065
  a: (t) => {
1079
1066
  const r = Ie(t.href);
1080
- return /* @__PURE__ */ n(
1067
+ return /* @__PURE__ */ a(
1081
1068
  "a",
1082
1069
  {
1083
1070
  ...t,
@@ -1086,27 +1073,34 @@ const Fe = {
1086
1073
  }
1087
1074
  );
1088
1075
  },
1089
- p: (t) => {
1090
- const r = t.children && (Array.isArray(t.children) ? t.children.some(
1091
- (i) => typeof i == "object" && i.type
1092
- ) : typeof t.children == "object" && t.children.type), o = t.children && typeof t.children == "string" && t.children.length < 20, l = t.children && typeof t.children == "string" && (t.children.includes("Color Text") || t.children.includes("Text")), s = r || o || l;
1093
- return r ? /* @__PURE__ */ n(U, { children: t.children }) : l ? /* @__PURE__ */ n("span", { style: { margin: 0, padding: 0 }, children: t.children }) : /* @__PURE__ */ n(
1094
- "p",
1095
- {
1096
- ...t,
1097
- style: {
1098
- margin: s ? 0 : void 0,
1099
- padding: s ? 0 : void 0
1100
- }
1101
- }
1102
- );
1103
- }
1076
+ blockquote: (t) => /* @__PURE__ */ a(
1077
+ f,
1078
+ {
1079
+ component: "blockquote",
1080
+ sx: {
1081
+ borderLeft: "4px solid",
1082
+ borderColor: "primary.main",
1083
+ pl: 2,
1084
+ py: 0.5,
1085
+ my: 2,
1086
+ mx: 0,
1087
+ color: "text.secondary",
1088
+ fontStyle: "italic",
1089
+ bgcolor: "action.hover",
1090
+ borderRadius: "0 4px 4px 0"
1091
+ },
1092
+ ...t
1093
+ }
1094
+ ),
1095
+ p: (t) => t.children && (Array.isArray(t.children) ? t.children.some(
1096
+ (n) => typeof n == "object" && n.type
1097
+ ) : typeof t.children == "object" && t.children.type) ? /* @__PURE__ */ a(U, { children: t.children }) : /* @__PURE__ */ a("p", { ...t })
1104
1098
  },
1105
- children: /* @__PURE__ */ n(
1106
- Y,
1099
+ children: /* @__PURE__ */ a(
1100
+ q,
1107
1101
  {
1108
- fallback: /* @__PURE__ */ n(
1109
- g,
1102
+ fallback: /* @__PURE__ */ a(
1103
+ f,
1110
1104
  {
1111
1105
  sx: {
1112
1106
  display: "flex",
@@ -1114,22 +1108,22 @@ const Fe = {
1114
1108
  alignItems: "center",
1115
1109
  minHeight: "200px"
1116
1110
  },
1117
- children: /* @__PURE__ */ n(ne, {})
1111
+ children: /* @__PURE__ */ a(ae, {})
1118
1112
  }
1119
1113
  ),
1120
- children: /* @__PURE__ */ m(ue, { children: [
1114
+ children: /* @__PURE__ */ m(pe, { children: [
1121
1115
  e.map((t) => {
1122
1116
  const r = t.component;
1123
- return /* @__PURE__ */ n(
1117
+ return /* @__PURE__ */ a(
1124
1118
  I,
1125
1119
  {
1126
1120
  path: t.route,
1127
- element: /* @__PURE__ */ n(r, {})
1121
+ element: /* @__PURE__ */ a(r, {})
1128
1122
  },
1129
1123
  t.route
1130
1124
  );
1131
1125
  }),
1132
- /* @__PURE__ */ n(
1126
+ /* @__PURE__ */ a(
1133
1127
  I,
1134
1128
  {
1135
1129
  path: "*",
@@ -1144,40 +1138,40 @@ const Fe = {
1144
1138
  }
1145
1139
  );
1146
1140
  }, y = 240, Re = ({ mobileOpen: e, handleDrawerToggle: t }) => {
1147
- const r = B(), { pages: o } = E(), l = _e(o);
1141
+ const r = B(), { pages: n } = E(), i = _e(n);
1148
1142
  x(() => {
1149
- const u = setTimeout(() => {
1143
+ const p = setTimeout(() => {
1150
1144
  document.body.style.overflow = "";
1151
1145
  }, 100);
1152
- return () => clearTimeout(u);
1146
+ return () => clearTimeout(p);
1153
1147
  }, [r.pathname]);
1154
1148
  const s = () => {
1155
1149
  t();
1156
- }, i = /* @__PURE__ */ m("div", { children: [
1157
- /* @__PURE__ */ n(P, {}),
1158
- /* @__PURE__ */ n(ae, { children: l.map((u) => /* @__PURE__ */ n(oe, { disablePadding: !0, children: /* @__PURE__ */ n(
1150
+ }, l = /* @__PURE__ */ m("div", { children: [
1151
+ /* @__PURE__ */ a(P, {}),
1152
+ /* @__PURE__ */ a(ne, { children: i.map((p) => /* @__PURE__ */ a(oe, { disablePadding: !0, children: /* @__PURE__ */ a(
1159
1153
  se,
1160
1154
  {
1161
1155
  component: L,
1162
- to: u.route,
1156
+ to: p.route,
1163
1157
  onClick: () => s(),
1164
1158
  sx: {
1165
1159
  "&:hover": {
1166
1160
  color: "inherit"
1167
1161
  }
1168
1162
  },
1169
- children: /* @__PURE__ */ n(ie, { primary: u.name })
1163
+ children: /* @__PURE__ */ a(ie, { primary: p.name })
1170
1164
  }
1171
- ) }, u.route)) })
1165
+ ) }, p.route)) })
1172
1166
  ] });
1173
1167
  return /* @__PURE__ */ m(
1174
- g,
1168
+ f,
1175
1169
  {
1176
1170
  component: "nav",
1177
1171
  sx: { width: { sm: y }, flexShrink: { sm: 0 } },
1178
1172
  "aria-label": "sidebar navigation",
1179
1173
  children: [
1180
- /* @__PURE__ */ n(
1174
+ /* @__PURE__ */ a(
1181
1175
  $,
1182
1176
  {
1183
1177
  variant: "temporary",
@@ -1195,10 +1189,10 @@ const Fe = {
1195
1189
  maxWidth: y
1196
1190
  }
1197
1191
  },
1198
- children: i
1192
+ children: l
1199
1193
  }
1200
1194
  ),
1201
- /* @__PURE__ */ n(
1195
+ /* @__PURE__ */ a(
1202
1196
  $,
1203
1197
  {
1204
1198
  variant: "permanent",
@@ -1210,7 +1204,7 @@ const Fe = {
1210
1204
  }
1211
1205
  },
1212
1206
  open: !0,
1213
- children: i
1207
+ children: l
1214
1208
  }
1215
1209
  )
1216
1210
  ]
@@ -1229,10 +1223,10 @@ const Fe = {
1229
1223
  typeof window < "u" && localStorage.setItem("darkMode", JSON.stringify(e));
1230
1224
  }, [e]), x(() => {
1231
1225
  if (typeof window < "u" && window.matchMedia) {
1232
- const r = window.matchMedia("(prefers-color-scheme: dark)"), o = (l) => {
1233
- localStorage.getItem("darkMode") === null && t(l.matches);
1226
+ const r = window.matchMedia("(prefers-color-scheme: dark)"), n = (i) => {
1227
+ localStorage.getItem("darkMode") === null && t(i.matches);
1234
1228
  };
1235
- return r.addEventListener("change", o), () => r.removeEventListener("change", o);
1229
+ return r.addEventListener("change", n), () => r.removeEventListener("change", n);
1236
1230
  }
1237
1231
  }, []), { darkMode: e, setDarkMode: t };
1238
1232
  }, De = {
@@ -1404,79 +1398,79 @@ const Fe = {
1404
1398
  activatedOpacity: 0.12
1405
1399
  }
1406
1400
  }
1407
- }, Be = (e = "light") => {
1408
- const t = e === "dark" ? De : Le;
1409
- return le({
1410
- ...t,
1411
- palette: {
1412
- ...t.palette,
1413
- mode: e
1414
- },
1415
- components: {
1416
- MuiIconButton: {
1417
- styleOverrides: {
1418
- root: {
1419
- "&:focus": {
1420
- outline: "none"
1421
- },
1422
- "&:focus-visible": {
1423
- outline: "none"
1424
- },
1425
- "&:focus-within": {
1426
- outline: "none"
1427
- },
1428
- // Remove webkit focus ring
1429
- "&::-webkit-focus-inner": {
1430
- border: 0
1431
- },
1432
- "&::-webkit-focus-ring-color": {
1433
- outline: "none"
1434
- }
1401
+ }, Be = {
1402
+ components: {
1403
+ MuiIconButton: {
1404
+ styleOverrides: {
1405
+ root: {
1406
+ "&:focus": {
1407
+ outline: "none"
1408
+ },
1409
+ "&:focus-visible": {
1410
+ outline: "none"
1411
+ },
1412
+ "&:focus-within": {
1413
+ outline: "none"
1414
+ },
1415
+ // Remove webkit focus ring
1416
+ "&::-webkit-focus-inner": {
1417
+ border: 0
1418
+ },
1419
+ "&::-webkit-focus-ring-color": {
1420
+ outline: "none"
1435
1421
  }
1436
1422
  }
1437
1423
  }
1438
1424
  }
1439
- });
1440
- }, Me = ({ children: e }) => {
1441
- const t = B(), r = ge();
1425
+ }
1426
+ }, Me = (e = "light", t = {}) => {
1427
+ const r = e === "dark" ? De : Le, n = t[e], i = {};
1428
+ t.primaryColor && (i.palette = { primary: { main: t.primaryColor } }), t.fontFamily && (i.typography = { fontFamily: t.fontFamily });
1429
+ const s = [
1430
+ { ...r, palette: { ...r.palette, mode: e } },
1431
+ i
1432
+ ];
1433
+ return n && s.push(n), s.push(Be), le(...s);
1434
+ }, je = ({ children: e }) => {
1435
+ const t = B(), r = fe();
1442
1436
  return x(() => {
1443
- const o = new URLSearchParams(window.location.search), l = o.get("redirect");
1444
- if (l) {
1445
- o.delete("redirect");
1446
- const s = window.location.pathname + (o.toString() ? "?" + o.toString() : "");
1447
- window.history.replaceState({}, "", s), r(l);
1437
+ const n = new URLSearchParams(window.location.search), i = n.get("redirect");
1438
+ if (i) {
1439
+ n.delete("redirect");
1440
+ const s = window.location.pathname + (n.toString() ? "?" + n.toString() : "");
1441
+ window.history.replaceState({}, "", s), r(i);
1448
1442
  }
1449
- }, [r]), q(() => {
1443
+ }, [r]), Y(() => {
1450
1444
  window.scrollTo({ top: 0, left: 0, behavior: "instant" });
1451
1445
  }, [t.pathname]), e;
1452
1446
  };
1453
- function je() {
1454
- const { darkMode: e, setDarkMode: t } = Pe(), [r, o] = F(!1), l = V(
1455
- () => Be(e ? "dark" : "light"),
1456
- [e]
1457
- ), s = () => {
1458
- o(!r);
1447
+ function He({ userTheme: e = {} }) {
1448
+ const { darkMode: t, setDarkMode: r } = Pe(), [n, i] = F(!1), s = V(
1449
+ () => Me(t ? "dark" : "light", e),
1450
+ [t, e]
1451
+ ), l = () => {
1452
+ i(!n);
1459
1453
  };
1460
- return /* @__PURE__ */ m(ce, { theme: l, children: [
1461
- /* @__PURE__ */ n(de, {}),
1462
- /* @__PURE__ */ m(g, { sx: { display: "flex" }, children: [
1463
- /* @__PURE__ */ n(
1464
- ke,
1454
+ return /* @__PURE__ */ m(ce, { theme: s, children: [
1455
+ /* @__PURE__ */ a(de, {}),
1456
+ /* @__PURE__ */ m(f, { sx: { display: "flex" }, children: [
1457
+ /* @__PURE__ */ a(
1458
+ we,
1465
1459
  {
1466
- darkMode: e,
1467
- setDarkMode: t,
1468
- handleDrawerToggle: s
1460
+ darkMode: t,
1461
+ setDarkMode: r,
1462
+ handleDrawerToggle: l
1469
1463
  }
1470
1464
  ),
1471
- /* @__PURE__ */ n(
1465
+ /* @__PURE__ */ a(
1472
1466
  Re,
1473
1467
  {
1474
- mobileOpen: r,
1475
- handleDrawerToggle: s
1468
+ mobileOpen: n,
1469
+ handleDrawerToggle: l
1476
1470
  }
1477
1471
  ),
1478
- /* @__PURE__ */ n(
1479
- g,
1472
+ /* @__PURE__ */ a(
1473
+ f,
1480
1474
  {
1481
1475
  component: "main",
1482
1476
  sx: {
@@ -1489,20 +1483,66 @@ function je() {
1489
1483
  // Prevent horizontal overflow on very small screens
1490
1484
  overflowX: "hidden"
1491
1485
  },
1492
- children: /* @__PURE__ */ n(Oe, {})
1486
+ children: /* @__PURE__ */ a(Oe, {})
1493
1487
  }
1494
1488
  )
1495
1489
  ] })
1496
1490
  ] });
1497
1491
  }
1498
- function He({ pages: e, site: t }) {
1499
- return /* @__PURE__ */ n(we, { pages: e, site: t, children: /* @__PURE__ */ n(pe, { basename: "/", children: /* @__PURE__ */ n(Me, { children: /* @__PURE__ */ n(je, {}) }) }) });
1492
+ function Ge({ pages: e, site: t, theme: r = {} }) {
1493
+ return /* @__PURE__ */ a(ke, { pages: e, site: t, children: /* @__PURE__ */ a(ue, { basename: "/", children: /* @__PURE__ */ a(je, { children: /* @__PURE__ */ a(He, { userTheme: r }) }) }) });
1500
1494
  }
1501
- function rt({ pages: e, site: t }) {
1495
+ function at({ pages: e, site: t, theme: r }) {
1502
1496
  Q(document.getElementById("root")).render(
1503
- /* @__PURE__ */ n(J, { children: /* @__PURE__ */ n(He, { pages: e, site: t }) })
1497
+ /* @__PURE__ */ a(J, { children: /* @__PURE__ */ a(Ge, { pages: e, site: t, theme: r }) })
1504
1498
  );
1505
1499
  }
1500
+ const nt = {
1501
+ default: {},
1502
+ ocean: {
1503
+ primaryColor: "#0077b6",
1504
+ dark: {
1505
+ palette: {
1506
+ primary: { main: "#48cae4" },
1507
+ background: { default: "#03045e", paper: "#023e8a" }
1508
+ }
1509
+ },
1510
+ light: {
1511
+ palette: {
1512
+ background: { default: "#f0f9ff", paper: "#e0f2fe" }
1513
+ }
1514
+ }
1515
+ },
1516
+ forest: {
1517
+ primaryColor: "#2d6a4f",
1518
+ dark: {
1519
+ palette: {
1520
+ primary: { main: "#74c69d" },
1521
+ background: { default: "#081c15", paper: "#1b4332" }
1522
+ }
1523
+ },
1524
+ light: {
1525
+ palette: {
1526
+ background: { default: "#f0fdf4", paper: "#dcfce7" }
1527
+ }
1528
+ }
1529
+ },
1530
+ rose: {
1531
+ primaryColor: "#be123c",
1532
+ dark: {
1533
+ palette: {
1534
+ primary: { main: "#fb7185" },
1535
+ background: { default: "#1c0a0d", paper: "#3b0015" }
1536
+ }
1537
+ },
1538
+ light: {
1539
+ palette: {
1540
+ background: { default: "#fff1f2", paper: "#ffe4e6" }
1541
+ }
1542
+ }
1543
+ }
1544
+ };
1506
1545
  export {
1507
- rt as createApp
1546
+ at as createApp,
1547
+ nt as themes
1508
1548
  };
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quietmind/mdx-docs",
3
- "version": "0.1.15",
3
+ "version": "0.1.16",
4
4
  "type": "module",
5
5
  "homepage": "https://mdxdocs.com",
6
6
  "exports": {
package/dist/vite.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>