@industry-theme/repository-composition-panels 0.2.42 → 0.2.43

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.
@@ -2,10 +2,32 @@ var __defProp = Object.defineProperty;
2
2
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  import require$$0, { jsxs, jsx, Fragment } from "react/jsx-runtime";
5
- import require$$1$1, { forwardRef, createElement, useCallback, useState, useRef, useEffect, useMemo } from "react";
5
+ import React2, { createContext, useContext, forwardRef, createElement, useCallback, useState, useRef, useEffect, useMemo } from "react";
6
6
  import require$$2, { createPortal } from "react-dom";
7
- import require$$2$1, { useTheme } from "@principal-ade/industry-theme";
8
7
  import { GitStatusFileTree, calculateTelemetryCoverageStats, TelemetryCoverageFileTree } from "@principal-ade/dynamic-file-tree";
8
+ var ThemeContext;
9
+ var getThemeContext = () => {
10
+ if (typeof window !== "undefined") {
11
+ const globalWindow = window;
12
+ if (!globalWindow.__principlemd_theme_context__) {
13
+ globalWindow.__principlemd_theme_context__ = createContext(void 0);
14
+ }
15
+ return globalWindow.__principlemd_theme_context__;
16
+ } else {
17
+ if (!ThemeContext) {
18
+ ThemeContext = createContext(void 0);
19
+ }
20
+ return ThemeContext;
21
+ }
22
+ };
23
+ var ThemeContextSingleton = getThemeContext();
24
+ var useTheme = () => {
25
+ const context = useContext(ThemeContextSingleton);
26
+ if (!context) {
27
+ throw new Error("useTheme must be used within a ThemeProvider");
28
+ }
29
+ return context;
30
+ };
9
31
  class _ {
10
32
  static buildTreeFromPaths(j, k = "") {
11
33
  let q2 = k.endsWith("/") ? k.slice(0, -1) : k, E = /* @__PURE__ */ new Map(), J = [], O = [], X2 = /* @__PURE__ */ new Set();
@@ -788,7 +810,7 @@ const EMPTY_GIT_STATUS = {
788
810
  untracked: [],
789
811
  deleted: []
790
812
  };
791
- const ToggleButtons = require$$1$1.memo(({ showFullTree, onShowFullTree, onShowChanges, theme }) => /* @__PURE__ */ jsxs(
813
+ const ToggleButtons = React2.memo(({ showFullTree, onShowFullTree, onShowChanges, theme }) => /* @__PURE__ */ jsxs(
792
814
  "div",
793
815
  {
794
816
  style: {
@@ -4885,7 +4907,7 @@ function requireUmd() {
4885
4907
  hasRequiredUmd = 1;
4886
4908
  (function(module, exports$1) {
4887
4909
  !(function(e, t) {
4888
- t(exports$1, require$$0, require$$1$1, require$$2);
4910
+ t(exports$1, require$$0, React2, require$$2);
4889
4911
  })(umd, (function(e, t, n, o) {
4890
4912
  function r(e2) {
4891
4913
  if ("string" == typeof e2 || "number" == typeof e2) return "" + e2;
@@ -15437,6 +15459,2000 @@ const dist = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
15437
15459
  validatePrivuConfig
15438
15460
  }, Symbol.toStringTag, { value: "Module" }));
15439
15461
  const require$$4 = /* @__PURE__ */ getAugmentedNamespace(dist);
15462
+ var cjs;
15463
+ var hasRequiredCjs;
15464
+ function requireCjs() {
15465
+ if (hasRequiredCjs) return cjs;
15466
+ hasRequiredCjs = 1;
15467
+ var __create = Object.create;
15468
+ var __getProtoOf = Object.getPrototypeOf;
15469
+ var __defProp2 = Object.defineProperty;
15470
+ var __getOwnPropNames = Object.getOwnPropertyNames;
15471
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
15472
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
15473
+ var __toESM = (mod, isNodeMode, target) => {
15474
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
15475
+ const to2 = !mod || !mod.__esModule ? __defProp2(target, "default", { value: mod, enumerable: true }) : target;
15476
+ for (let key of __getOwnPropNames(mod))
15477
+ if (!__hasOwnProp.call(to2, key))
15478
+ __defProp2(to2, key, {
15479
+ get: () => mod[key],
15480
+ enumerable: true
15481
+ });
15482
+ return to2;
15483
+ };
15484
+ var __moduleCache = /* @__PURE__ */ new WeakMap();
15485
+ var __toCommonJS = (from) => {
15486
+ var entry = __moduleCache.get(from), desc;
15487
+ if (entry)
15488
+ return entry;
15489
+ entry = __defProp2({}, "__esModule", { value: true });
15490
+ if (from && typeof from === "object" || typeof from === "function")
15491
+ __getOwnPropNames(from).map((key) => !__hasOwnProp.call(entry, key) && __defProp2(entry, key, {
15492
+ get: () => from[key],
15493
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
15494
+ }));
15495
+ __moduleCache.set(from, entry);
15496
+ return entry;
15497
+ };
15498
+ var __export = (target, all) => {
15499
+ for (var name in all)
15500
+ __defProp2(target, name, {
15501
+ get: all[name],
15502
+ enumerable: true,
15503
+ configurable: true,
15504
+ set: (newValue) => all[name] = () => newValue
15505
+ });
15506
+ };
15507
+ var exports_src = {};
15508
+ __export(exports_src, {
15509
+ withTheme: () => withTheme,
15510
+ useTheme: () => useTheme2,
15511
+ theme: () => theme,
15512
+ terminalTheme: () => terminalTheme,
15513
+ sx: () => sx,
15514
+ slateTheme: () => slateTheme,
15515
+ scaleThemeFonts: () => scaleThemeFonts,
15516
+ responsive: () => responsive,
15517
+ resetFontScale: () => resetFontScale,
15518
+ regalTheme: () => regalTheme,
15519
+ overrideColors: () => overrideColors,
15520
+ mergeThemes: () => mergeThemes,
15521
+ matrixTheme: () => matrixTheme,
15522
+ matrixMinimalTheme: () => matrixMinimalTheme,
15523
+ makeTheme: () => makeTheme,
15524
+ landingPageTheme: () => landingPageTheme,
15525
+ landingPageLightTheme: () => landingPageLightTheme,
15526
+ increaseFontScale: () => increaseFontScale,
15527
+ glassmorphismTheme: () => glassmorphismTheme,
15528
+ getZIndex: () => getZIndex,
15529
+ getSpace: () => getSpace,
15530
+ getShadow: () => getShadow,
15531
+ getRadius: () => getRadius,
15532
+ getMode: () => getMode,
15533
+ getFontSize: () => getFontSize,
15534
+ getColor: () => getColor,
15535
+ defaultTerminalTheme: () => defaultTerminalTheme,
15536
+ defaultMarkdownTheme: () => defaultMarkdownTheme,
15537
+ defaultEditorTheme: () => defaultEditorTheme,
15538
+ default: () => src_default,
15539
+ decreaseFontScale: () => decreaseFontScale,
15540
+ createStyle: () => createStyle,
15541
+ addMode: () => addMode,
15542
+ ThemeShowcase: () => ThemeShowcase,
15543
+ ThemeProvider: () => ThemeProvider
15544
+ });
15545
+ cjs = __toCommonJS(exports_src);
15546
+ var glassmorphismTheme = {
15547
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
15548
+ fonts: {
15549
+ body: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
15550
+ heading: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
15551
+ monospace: '"Fira Code", "SF Mono", Monaco, Inconsolata, monospace'
15552
+ },
15553
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
15554
+ fontScale: 1,
15555
+ fontWeights: {
15556
+ body: 400,
15557
+ heading: 600,
15558
+ bold: 700,
15559
+ light: 300,
15560
+ medium: 500,
15561
+ semibold: 600
15562
+ },
15563
+ lineHeights: {
15564
+ body: 1.6,
15565
+ heading: 1.3,
15566
+ tight: 1.4,
15567
+ relaxed: 1.8
15568
+ },
15569
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
15570
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
15571
+ radii: [0, 8, 12, 16, 20, 24, 32, 40],
15572
+ shadows: [
15573
+ "none",
15574
+ "0 8px 32px 0 rgba(31, 38, 135, 0.15)",
15575
+ "0 12px 40px 0 rgba(31, 38, 135, 0.2)",
15576
+ "0 16px 48px 0 rgba(31, 38, 135, 0.25)",
15577
+ "0 20px 56px 0 rgba(31, 38, 135, 0.3)",
15578
+ "0 24px 64px 0 rgba(31, 38, 135, 0.35)"
15579
+ ],
15580
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
15581
+ colors: {
15582
+ text: "rgba(255, 255, 255, 0.95)",
15583
+ background: "rgba(255, 255, 255, 0.1)",
15584
+ primary: "rgba(99, 102, 241, 0.9)",
15585
+ secondary: "rgba(139, 92, 246, 0.9)",
15586
+ accent: "rgba(236, 72, 153, 0.9)",
15587
+ highlight: "rgba(99, 102, 241, 0.2)",
15588
+ muted: "rgba(255, 255, 255, 0.05)",
15589
+ success: "rgba(34, 197, 94, 0.9)",
15590
+ warning: "rgba(251, 146, 60, 0.9)",
15591
+ error: "rgba(239, 68, 68, 0.9)",
15592
+ info: "rgba(59, 130, 246, 0.9)",
15593
+ border: "rgba(255, 255, 255, 0.18)",
15594
+ backgroundSecondary: "rgba(255, 255, 255, 0.15)",
15595
+ backgroundTertiary: "rgba(255, 255, 255, 0.2)",
15596
+ backgroundLight: "rgba(255, 255, 255, 0.08)",
15597
+ backgroundHover: "rgba(255, 255, 255, 0.25)",
15598
+ surface: "rgba(255, 255, 255, 0.12)",
15599
+ textSecondary: "rgba(255, 255, 255, 0.8)",
15600
+ textTertiary: "rgba(255, 255, 255, 0.6)",
15601
+ textMuted: "rgba(255, 255, 255, 0.5)",
15602
+ highlightBg: "rgba(251, 191, 36, 0.3)",
15603
+ highlightBorder: "rgba(251, 191, 36, 0.5)"
15604
+ },
15605
+ modes: {
15606
+ dark: {
15607
+ text: "rgba(255, 255, 255, 0.95)",
15608
+ background: "rgba(0, 0, 0, 0.3)",
15609
+ primary: "rgba(129, 140, 248, 0.9)",
15610
+ secondary: "rgba(167, 139, 250, 0.9)",
15611
+ accent: "rgba(244, 114, 182, 0.9)",
15612
+ highlight: "rgba(129, 140, 248, 0.25)",
15613
+ muted: "rgba(0, 0, 0, 0.15)",
15614
+ success: "rgba(74, 222, 128, 0.9)",
15615
+ warning: "rgba(251, 191, 36, 0.9)",
15616
+ error: "rgba(248, 113, 113, 0.9)",
15617
+ info: "rgba(96, 165, 250, 0.9)",
15618
+ border: "rgba(255, 255, 255, 0.15)",
15619
+ backgroundSecondary: "rgba(0, 0, 0, 0.4)",
15620
+ backgroundTertiary: "rgba(0, 0, 0, 0.5)",
15621
+ backgroundLight: "rgba(0, 0, 0, 0.2)",
15622
+ backgroundHover: "rgba(255, 255, 255, 0.1)",
15623
+ surface: "rgba(0, 0, 0, 0.35)",
15624
+ textSecondary: "rgba(255, 255, 255, 0.8)",
15625
+ textTertiary: "rgba(255, 255, 255, 0.6)",
15626
+ textMuted: "rgba(255, 255, 255, 0.4)",
15627
+ highlightBg: "rgba(251, 191, 36, 0.35)",
15628
+ highlightBorder: "rgba(251, 191, 36, 0.6)"
15629
+ },
15630
+ frosted: {
15631
+ text: "rgba(31, 41, 55, 0.95)",
15632
+ background: "rgba(255, 255, 255, 0.3)",
15633
+ primary: "rgba(79, 70, 229, 0.95)",
15634
+ secondary: "rgba(124, 58, 237, 0.95)",
15635
+ accent: "rgba(219, 39, 119, 0.95)",
15636
+ highlight: "rgba(79, 70, 229, 0.15)",
15637
+ muted: "rgba(255, 255, 255, 0.4)",
15638
+ success: "rgba(16, 185, 129, 0.95)",
15639
+ warning: "rgba(245, 158, 11, 0.95)",
15640
+ error: "rgba(220, 38, 38, 0.95)",
15641
+ info: "rgba(37, 99, 235, 0.95)",
15642
+ border: "rgba(255, 255, 255, 0.5)",
15643
+ backgroundSecondary: "rgba(255, 255, 255, 0.4)",
15644
+ backgroundTertiary: "rgba(255, 255, 255, 0.5)",
15645
+ backgroundLight: "rgba(255, 255, 255, 0.25)",
15646
+ backgroundHover: "rgba(255, 255, 255, 0.6)",
15647
+ surface: "rgba(255, 255, 255, 0.35)",
15648
+ textSecondary: "rgba(31, 41, 55, 0.8)",
15649
+ textTertiary: "rgba(31, 41, 55, 0.6)",
15650
+ textMuted: "rgba(31, 41, 55, 0.5)",
15651
+ highlightBg: "rgba(251, 191, 36, 0.4)",
15652
+ highlightBorder: "rgba(251, 191, 36, 0.7)"
15653
+ }
15654
+ },
15655
+ buttons: {
15656
+ primary: {
15657
+ color: "white",
15658
+ bg: "primary",
15659
+ borderWidth: 1,
15660
+ borderStyle: "solid",
15661
+ borderColor: "rgba(255, 255, 255, 0.2)",
15662
+ "&:hover": {
15663
+ bg: "secondary"
15664
+ }
15665
+ },
15666
+ secondary: {
15667
+ color: "text",
15668
+ bg: "rgba(255, 255, 255, 0.1)",
15669
+ borderWidth: 1,
15670
+ borderStyle: "solid",
15671
+ borderColor: "rgba(255, 255, 255, 0.2)",
15672
+ "&:hover": {
15673
+ bg: "rgba(255, 255, 255, 0.2)"
15674
+ }
15675
+ },
15676
+ ghost: {
15677
+ color: "text",
15678
+ bg: "transparent",
15679
+ borderWidth: 1,
15680
+ borderStyle: "solid",
15681
+ borderColor: "transparent",
15682
+ "&:hover": {
15683
+ borderColor: "rgba(255, 255, 255, 0.2)",
15684
+ bg: "rgba(255, 255, 255, 0.05)"
15685
+ }
15686
+ }
15687
+ },
15688
+ text: {
15689
+ heading: {
15690
+ fontFamily: "heading",
15691
+ fontWeight: "heading",
15692
+ lineHeight: "heading"
15693
+ },
15694
+ body: {
15695
+ fontFamily: "body",
15696
+ fontWeight: "body",
15697
+ lineHeight: "body"
15698
+ },
15699
+ caption: {
15700
+ fontSize: 1,
15701
+ color: "textSecondary"
15702
+ }
15703
+ },
15704
+ cards: {
15705
+ primary: {
15706
+ bg: "surface",
15707
+ border: "1px solid",
15708
+ borderColor: "border",
15709
+ borderRadius: 3
15710
+ },
15711
+ secondary: {
15712
+ bg: "backgroundSecondary",
15713
+ border: "1px solid",
15714
+ borderColor: "border",
15715
+ borderRadius: 3
15716
+ }
15717
+ }
15718
+ };
15719
+ var defaultMarkdownTheme = {
15720
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
15721
+ fonts: {
15722
+ body: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
15723
+ heading: '"Crimson Text", "Georgia", "Times New Roman", serif',
15724
+ monospace: '"Fira Code", "SF Mono", Monaco, Inconsolata, monospace'
15725
+ },
15726
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
15727
+ fontScale: 1,
15728
+ fontWeights: {
15729
+ body: 400,
15730
+ heading: 600,
15731
+ bold: 700,
15732
+ light: 300,
15733
+ medium: 500,
15734
+ semibold: 600
15735
+ },
15736
+ lineHeights: {
15737
+ body: 1.6,
15738
+ heading: 1.3,
15739
+ tight: 1.25,
15740
+ relaxed: 1.75
15741
+ },
15742
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
15743
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
15744
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
15745
+ shadows: [
15746
+ "none",
15747
+ "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
15748
+ "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
15749
+ "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
15750
+ "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
15751
+ "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
15752
+ ],
15753
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
15754
+ colors: {
15755
+ text: "#1a1a1a",
15756
+ background: "#ffffff",
15757
+ primary: "#007acc",
15758
+ secondary: "#005a9e",
15759
+ accent: "#1a1a1a",
15760
+ highlight: "rgba(0, 122, 204, 0.1)",
15761
+ muted: "#f0f0f0",
15762
+ success: "#28a745",
15763
+ warning: "#ffc107",
15764
+ error: "#dc3545",
15765
+ info: "#17a2b8",
15766
+ border: "rgba(0, 0, 0, 0.1)",
15767
+ backgroundSecondary: "#f8f9fa",
15768
+ backgroundTertiary: "#e9ecef",
15769
+ backgroundLight: "rgba(0, 0, 0, 0.03)",
15770
+ backgroundHover: "rgba(0, 0, 0, 0.05)",
15771
+ surface: "#ffffff",
15772
+ textSecondary: "#555555",
15773
+ textTertiary: "#888888",
15774
+ textMuted: "#aaaaaa",
15775
+ highlightBg: "rgba(255, 235, 59, 0.3)",
15776
+ highlightBorder: "rgba(255, 235, 59, 0.6)"
15777
+ },
15778
+ buttons: {
15779
+ primary: {
15780
+ color: "white",
15781
+ bg: "primary",
15782
+ "&:hover": { bg: "secondary" }
15783
+ },
15784
+ secondary: {
15785
+ color: "primary",
15786
+ bg: "transparent",
15787
+ borderWidth: 1,
15788
+ borderStyle: "solid",
15789
+ borderColor: "primary",
15790
+ "&:hover": { bg: "highlight" }
15791
+ },
15792
+ ghost: {
15793
+ color: "text",
15794
+ bg: "transparent",
15795
+ "&:hover": { bg: "backgroundHover" }
15796
+ }
15797
+ },
15798
+ text: {
15799
+ heading: {
15800
+ fontFamily: "heading",
15801
+ fontWeight: "heading",
15802
+ lineHeight: "heading"
15803
+ },
15804
+ body: {
15805
+ fontFamily: "body",
15806
+ fontWeight: "body",
15807
+ lineHeight: "body"
15808
+ },
15809
+ caption: {
15810
+ fontSize: 1,
15811
+ color: "textSecondary"
15812
+ }
15813
+ },
15814
+ cards: {
15815
+ primary: {
15816
+ bg: "surface",
15817
+ border: "1px solid",
15818
+ borderColor: "border",
15819
+ borderRadius: 2
15820
+ },
15821
+ secondary: {
15822
+ bg: "backgroundSecondary",
15823
+ border: "1px solid",
15824
+ borderColor: "border",
15825
+ borderRadius: 2
15826
+ }
15827
+ }
15828
+ };
15829
+ var defaultTerminalTheme = {
15830
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
15831
+ fonts: {
15832
+ body: '"Courier New", Courier, monospace',
15833
+ heading: '"Courier New", Courier, monospace',
15834
+ monospace: '"Courier New", Courier, monospace'
15835
+ },
15836
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
15837
+ fontScale: 1,
15838
+ fontWeights: {
15839
+ body: 400,
15840
+ heading: 500,
15841
+ bold: 600,
15842
+ light: 300,
15843
+ medium: 500,
15844
+ semibold: 600
15845
+ },
15846
+ lineHeights: {
15847
+ body: 1.4,
15848
+ heading: 1.2,
15849
+ tight: 1.3,
15850
+ relaxed: 1.6
15851
+ },
15852
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
15853
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
15854
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
15855
+ shadows: [
15856
+ "none",
15857
+ "0 0 5px rgba(255, 193, 7, 0.1)",
15858
+ "0 0 10px rgba(255, 193, 7, 0.15)",
15859
+ "0 0 15px rgba(255, 193, 7, 0.2)",
15860
+ "0 0 20px rgba(255, 193, 7, 0.25)",
15861
+ "0 0 30px rgba(255, 193, 7, 0.3)"
15862
+ ],
15863
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
15864
+ colors: {
15865
+ text: "#ffc107",
15866
+ background: "#000000",
15867
+ primary: "#ffc107",
15868
+ secondary: "#ffb300",
15869
+ accent: "#ffffff",
15870
+ highlight: "rgba(255, 193, 7, 0.1)",
15871
+ muted: "#1a1a1a",
15872
+ success: "#4caf50",
15873
+ warning: "#ff9800",
15874
+ error: "#f44336",
15875
+ info: "#2196f3",
15876
+ border: "rgba(255, 193, 7, 0.2)",
15877
+ backgroundSecondary: "#0a0a0a",
15878
+ backgroundTertiary: "#111111",
15879
+ backgroundLight: "rgba(255, 193, 7, 0.03)",
15880
+ backgroundHover: "rgba(255, 193, 7, 0.05)",
15881
+ surface: "#050505",
15882
+ textSecondary: "#e0e0e0",
15883
+ textTertiary: "#b0b0b0",
15884
+ textMuted: "#808080",
15885
+ highlightBg: "rgba(255, 193, 7, 0.2)",
15886
+ highlightBorder: "rgba(255, 193, 7, 0.4)"
15887
+ },
15888
+ buttons: {
15889
+ primary: {
15890
+ color: "black",
15891
+ bg: "primary",
15892
+ borderWidth: 0,
15893
+ "&:hover": { bg: "secondary" }
15894
+ },
15895
+ secondary: {
15896
+ color: "primary",
15897
+ bg: "transparent",
15898
+ borderWidth: 1,
15899
+ borderStyle: "solid",
15900
+ borderColor: "primary",
15901
+ "&:hover": { bg: "highlight" }
15902
+ },
15903
+ ghost: {
15904
+ color: "text",
15905
+ bg: "transparent",
15906
+ "&:hover": { bg: "backgroundHover" }
15907
+ }
15908
+ },
15909
+ text: {
15910
+ heading: {
15911
+ fontFamily: "heading",
15912
+ fontWeight: "heading",
15913
+ lineHeight: "heading"
15914
+ },
15915
+ body: {
15916
+ fontFamily: "body",
15917
+ fontWeight: "body",
15918
+ lineHeight: "body"
15919
+ },
15920
+ caption: {
15921
+ fontSize: 1,
15922
+ color: "textSecondary"
15923
+ }
15924
+ },
15925
+ cards: {
15926
+ primary: {
15927
+ bg: "surface",
15928
+ border: "1px solid",
15929
+ borderColor: "border",
15930
+ borderRadius: 0
15931
+ },
15932
+ secondary: {
15933
+ bg: "backgroundSecondary",
15934
+ border: "1px solid",
15935
+ borderColor: "border",
15936
+ borderRadius: 0
15937
+ }
15938
+ }
15939
+ };
15940
+ var defaultEditorTheme = {
15941
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
15942
+ fonts: {
15943
+ body: '"Fira Code", "SF Mono", Monaco, Inconsolata, monospace',
15944
+ heading: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
15945
+ monospace: '"Fira Code", "SF Mono", Monaco, Inconsolata, monospace'
15946
+ },
15947
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
15948
+ fontScale: 1,
15949
+ fontWeights: {
15950
+ body: 400,
15951
+ heading: 600,
15952
+ bold: 700,
15953
+ light: 300,
15954
+ medium: 500,
15955
+ semibold: 600
15956
+ },
15957
+ lineHeights: {
15958
+ body: 1.5,
15959
+ heading: 1.2,
15960
+ tight: 1.3,
15961
+ relaxed: 1.7
15962
+ },
15963
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
15964
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
15965
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
15966
+ shadows: [
15967
+ "none",
15968
+ "0 1px 2px rgba(0, 0, 0, 0.05)",
15969
+ "0 2px 4px rgba(0, 0, 0, 0.1)",
15970
+ "0 4px 8px rgba(0, 0, 0, 0.15)",
15971
+ "0 8px 16px rgba(0, 0, 0, 0.2)",
15972
+ "0 12px 24px rgba(0, 0, 0, 0.25)"
15973
+ ],
15974
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
15975
+ colors: {
15976
+ text: "#d4d4d4",
15977
+ background: "#1e1e1e",
15978
+ primary: "#569cd6",
15979
+ secondary: "#408ac9",
15980
+ accent: "#c586c0",
15981
+ highlight: "rgba(86, 156, 214, 0.1)",
15982
+ muted: "#2a2a2a",
15983
+ success: "#6a9955",
15984
+ warning: "#d18616",
15985
+ error: "#f44747",
15986
+ info: "#569cd6",
15987
+ border: "rgba(255, 255, 255, 0.1)",
15988
+ backgroundSecondary: "#252526",
15989
+ backgroundTertiary: "#333333",
15990
+ backgroundLight: "rgba(255, 255, 255, 0.03)",
15991
+ backgroundHover: "rgba(255, 255, 255, 0.05)",
15992
+ surface: "#252526",
15993
+ textSecondary: "#cccccc",
15994
+ textTertiary: "#999999",
15995
+ textMuted: "#666666",
15996
+ highlightBg: "rgba(255, 235, 59, 0.2)",
15997
+ highlightBorder: "rgba(255, 235, 59, 0.4)"
15998
+ },
15999
+ buttons: {
16000
+ primary: {
16001
+ color: "white",
16002
+ bg: "primary",
16003
+ "&:hover": { bg: "secondary" }
16004
+ },
16005
+ secondary: {
16006
+ color: "primary",
16007
+ bg: "transparent",
16008
+ borderWidth: 1,
16009
+ borderStyle: "solid",
16010
+ borderColor: "primary",
16011
+ "&:hover": { bg: "highlight" }
16012
+ },
16013
+ ghost: {
16014
+ color: "text",
16015
+ bg: "transparent",
16016
+ "&:hover": { bg: "backgroundHover" }
16017
+ }
16018
+ },
16019
+ text: {
16020
+ heading: {
16021
+ fontFamily: "heading",
16022
+ fontWeight: "heading",
16023
+ lineHeight: "heading"
16024
+ },
16025
+ body: {
16026
+ fontFamily: "body",
16027
+ fontWeight: "body",
16028
+ lineHeight: "body"
16029
+ },
16030
+ caption: {
16031
+ fontSize: 1,
16032
+ color: "textSecondary"
16033
+ }
16034
+ },
16035
+ cards: {
16036
+ primary: {
16037
+ bg: "surface",
16038
+ border: "1px solid",
16039
+ borderColor: "border",
16040
+ borderRadius: 1
16041
+ },
16042
+ secondary: {
16043
+ bg: "backgroundSecondary",
16044
+ border: "1px solid",
16045
+ borderColor: "border",
16046
+ borderRadius: 1
16047
+ }
16048
+ }
16049
+ };
16050
+ var landingPageTheme = {
16051
+ space: [0, 4, 8, 12, 16, 20, 24, 32, 40, 48, 64, 80, 100, 128],
16052
+ fonts: {
16053
+ body: 'Inter, "Geist Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
16054
+ heading: '-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif',
16055
+ monospace: '"SF Mono", Monaco, Inconsolata, "Fira Code", monospace'
16056
+ },
16057
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
16058
+ fontScale: 1,
16059
+ fontWeights: {
16060
+ body: 400,
16061
+ heading: 600,
16062
+ bold: 700,
16063
+ light: 300,
16064
+ medium: 500,
16065
+ semibold: 600
16066
+ },
16067
+ lineHeights: {
16068
+ body: 1.6,
16069
+ heading: 1.2,
16070
+ tight: 1.05,
16071
+ relaxed: 1.7
16072
+ },
16073
+ breakpoints: ["640px", "768px", "1024px", "1280px", "1400px"],
16074
+ sizes: [16, 32, 64, 128, 200, 240, 256, 300, 512, 740, 768, 820, 900, 1024, 1200, 1400, 1536],
16075
+ radii: [0, 2, 4, 6, 7, 8, 9, 10, 12, 14, 16, 24],
16076
+ shadows: [
16077
+ "none",
16078
+ "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
16079
+ "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
16080
+ "0 4px 12px rgba(0, 194, 255, 0.4)",
16081
+ "0 6px 24px rgba(0, 194, 255, 0.1)",
16082
+ "0 8px 32px rgba(0, 0, 0, 0.4)"
16083
+ ],
16084
+ zIndices: [0, 1, 10, 20, 30, 40, 50, 1e3],
16085
+ colors: {
16086
+ text: "#ffffff",
16087
+ background: "#000000",
16088
+ primary: "#00C2FF",
16089
+ secondary: "#0098CC",
16090
+ accent: "#0066FF",
16091
+ highlight: "rgba(0, 194, 255, 0.15)",
16092
+ muted: "#1a1a1a",
16093
+ success: "#4caf50",
16094
+ warning: "#ff9800",
16095
+ error: "#f44336",
16096
+ info: "#2196f3",
16097
+ border: "rgba(0, 194, 255, 0.2)",
16098
+ backgroundSecondary: "#0a1628",
16099
+ backgroundTertiary: "#0f1c2e",
16100
+ backgroundLight: "rgba(0, 194, 255, 0.04)",
16101
+ backgroundHover: "rgba(0, 194, 255, 0.1)",
16102
+ surface: "rgba(0, 0, 0, 0.4)",
16103
+ textSecondary: "#d1d5db",
16104
+ textTertiary: "#9ca3af",
16105
+ textMuted: "#6b7280",
16106
+ highlightBg: "rgba(255, 235, 59, 0.25)",
16107
+ highlightBorder: "rgba(255, 235, 59, 0.5)"
16108
+ },
16109
+ buttons: {
16110
+ primary: {
16111
+ color: "#000000",
16112
+ bg: "#00C2FF",
16113
+ borderWidth: 0,
16114
+ padding: "8px 20px",
16115
+ fontSize: 14,
16116
+ fontWeight: 600,
16117
+ cursor: "pointer",
16118
+ "&:hover": {
16119
+ bg: "#00D9FF"
16120
+ }
16121
+ },
16122
+ secondary: {
16123
+ color: "#00C2FF",
16124
+ bg: "transparent",
16125
+ borderWidth: 1,
16126
+ borderStyle: "solid",
16127
+ borderColor: "rgba(0, 194, 255, 0.3)",
16128
+ padding: "8px 16px",
16129
+ fontSize: 14,
16130
+ fontWeight: 600,
16131
+ cursor: "pointer",
16132
+ "&:hover": {
16133
+ bg: "rgba(0, 194, 255, 0.1)",
16134
+ borderColor: "#00C2FF"
16135
+ }
16136
+ },
16137
+ ghost: {
16138
+ color: "#00C2FF",
16139
+ bg: "transparent",
16140
+ borderWidth: 0,
16141
+ padding: "8px 16px",
16142
+ fontSize: 14,
16143
+ fontWeight: 500,
16144
+ cursor: "pointer",
16145
+ "&:hover": {
16146
+ color: "#00D9FF",
16147
+ bg: "rgba(0, 194, 255, 0.1)"
16148
+ }
16149
+ }
16150
+ },
16151
+ text: {
16152
+ heading: {
16153
+ fontFamily: "heading",
16154
+ fontWeight: "heading",
16155
+ lineHeight: "heading",
16156
+ color: "#ffffff"
16157
+ },
16158
+ body: {
16159
+ fontFamily: "body",
16160
+ fontWeight: "body",
16161
+ lineHeight: "body",
16162
+ color: "text"
16163
+ },
16164
+ caption: {
16165
+ fontSize: 1,
16166
+ color: "textSecondary"
16167
+ }
16168
+ },
16169
+ cards: {
16170
+ primary: {
16171
+ bg: "surface",
16172
+ border: "1px solid",
16173
+ borderColor: "border",
16174
+ borderRadius: 4
16175
+ },
16176
+ secondary: {
16177
+ bg: "rgba(0, 194, 255, 0.05)",
16178
+ border: "1px solid",
16179
+ borderColor: "rgba(0, 194, 255, 0.2)",
16180
+ borderRadius: 4
16181
+ }
16182
+ }
16183
+ };
16184
+ var landingPageLightTheme = {
16185
+ ...landingPageTheme,
16186
+ colors: {
16187
+ text: "#1a1a1a",
16188
+ background: "#ffffff",
16189
+ primary: "#0098CC",
16190
+ secondary: "#00C2FF",
16191
+ accent: "#0066FF",
16192
+ highlight: "rgba(0, 152, 204, 0.1)",
16193
+ muted: "#f0f0f0",
16194
+ success: "#4caf50",
16195
+ warning: "#ff9800",
16196
+ error: "#f44336",
16197
+ info: "#2196f3",
16198
+ border: "rgba(0, 152, 204, 0.2)",
16199
+ backgroundSecondary: "#f8f9fa",
16200
+ backgroundTertiary: "#e9ecef",
16201
+ backgroundLight: "rgba(0, 152, 204, 0.03)",
16202
+ backgroundHover: "rgba(0, 152, 204, 0.05)",
16203
+ surface: "rgba(255, 255, 255, 0.95)",
16204
+ textSecondary: "#555555",
16205
+ textTertiary: "#888888",
16206
+ textMuted: "#aaaaaa",
16207
+ highlightBg: "rgba(255, 235, 59, 0.3)",
16208
+ highlightBorder: "rgba(255, 235, 59, 0.6)"
16209
+ },
16210
+ buttons: {
16211
+ primary: {
16212
+ color: "#ffffff",
16213
+ bg: "#0098CC",
16214
+ borderWidth: 0,
16215
+ padding: "8px 20px",
16216
+ fontSize: 14,
16217
+ fontWeight: 600,
16218
+ cursor: "pointer",
16219
+ "&:hover": {
16220
+ bg: "#007aa8"
16221
+ }
16222
+ },
16223
+ secondary: {
16224
+ color: "#0098CC",
16225
+ bg: "transparent",
16226
+ borderWidth: 1,
16227
+ borderStyle: "solid",
16228
+ borderColor: "rgba(0, 152, 204, 0.3)",
16229
+ padding: "8px 16px",
16230
+ fontSize: 14,
16231
+ fontWeight: 600,
16232
+ cursor: "pointer",
16233
+ "&:hover": {
16234
+ bg: "rgba(0, 152, 204, 0.05)",
16235
+ borderColor: "#0098CC"
16236
+ }
16237
+ },
16238
+ ghost: {
16239
+ color: "#0098CC",
16240
+ bg: "transparent",
16241
+ borderWidth: 0,
16242
+ padding: "8px 16px",
16243
+ fontSize: 14,
16244
+ fontWeight: 500,
16245
+ cursor: "pointer",
16246
+ "&:hover": {
16247
+ color: "#007aa8",
16248
+ bg: "rgba(0, 152, 204, 0.05)"
16249
+ }
16250
+ }
16251
+ }
16252
+ };
16253
+ var regalTheme = {
16254
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
16255
+ fonts: {
16256
+ body: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
16257
+ heading: '"Crimson Text", "Georgia", "Times New Roman", serif',
16258
+ monospace: '"Fira Code", "SF Mono", Monaco, Inconsolata, monospace'
16259
+ },
16260
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
16261
+ fontScale: 1,
16262
+ fontWeights: {
16263
+ body: 400,
16264
+ heading: 600,
16265
+ bold: 700,
16266
+ light: 300,
16267
+ medium: 500,
16268
+ semibold: 600
16269
+ },
16270
+ lineHeights: {
16271
+ body: 1.5,
16272
+ heading: 1.2,
16273
+ tight: 1.25,
16274
+ relaxed: 1.75
16275
+ },
16276
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
16277
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
16278
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
16279
+ shadows: [
16280
+ "none",
16281
+ "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",
16282
+ "0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",
16283
+ "0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",
16284
+ "0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)",
16285
+ "0 25px 50px -12px rgba(0, 0, 0, 0.25)"
16286
+ ],
16287
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
16288
+ colors: {
16289
+ text: "#f1e8dc",
16290
+ background: "#1a1f2e",
16291
+ primary: "#d4a574",
16292
+ secondary: "#e0b584",
16293
+ accent: "#c9b8a3",
16294
+ highlight: "rgba(212, 165, 116, 0.15)",
16295
+ muted: "#8b7968",
16296
+ success: "#5c8a72",
16297
+ warning: "#d4a574",
16298
+ error: "#a85751",
16299
+ info: "#d4a574",
16300
+ border: "rgba(212, 165, 116, 0.2)",
16301
+ backgroundSecondary: "#212738",
16302
+ backgroundTertiary: "#2d3446",
16303
+ backgroundLight: "rgba(212, 165, 116, 0.08)",
16304
+ backgroundHover: "rgba(212, 165, 116, 0.15)",
16305
+ surface: "#212738",
16306
+ textSecondary: "#c9b8a3",
16307
+ textTertiary: "#8b7968",
16308
+ textMuted: "#8b7968",
16309
+ highlightBg: "rgba(255, 193, 7, 0.25)",
16310
+ highlightBorder: "rgba(255, 193, 7, 0.5)"
16311
+ },
16312
+ buttons: {
16313
+ primary: {
16314
+ color: "background",
16315
+ bg: "primary",
16316
+ "&:hover": {
16317
+ bg: "secondary"
16318
+ }
16319
+ },
16320
+ secondary: {
16321
+ color: "text",
16322
+ bg: "muted",
16323
+ "&:hover": {
16324
+ bg: "backgroundSecondary"
16325
+ }
16326
+ },
16327
+ ghost: {
16328
+ color: "primary",
16329
+ bg: "transparent",
16330
+ "&:hover": {
16331
+ bg: "muted"
16332
+ }
16333
+ }
16334
+ },
16335
+ text: {
16336
+ heading: {
16337
+ fontFamily: "heading",
16338
+ fontWeight: "heading",
16339
+ lineHeight: "heading"
16340
+ },
16341
+ body: {
16342
+ fontFamily: "body",
16343
+ fontWeight: "body",
16344
+ lineHeight: "body"
16345
+ },
16346
+ caption: {
16347
+ fontSize: 1,
16348
+ color: "textSecondary"
16349
+ }
16350
+ },
16351
+ cards: {
16352
+ primary: {
16353
+ bg: "background",
16354
+ border: "1px solid",
16355
+ borderColor: "border",
16356
+ borderRadius: 2
16357
+ },
16358
+ secondary: {
16359
+ bg: "backgroundSecondary",
16360
+ border: "1px solid",
16361
+ borderColor: "border",
16362
+ borderRadius: 2
16363
+ }
16364
+ }
16365
+ };
16366
+ var terminalTheme = {
16367
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
16368
+ fonts: {
16369
+ body: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
16370
+ heading: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace',
16371
+ monospace: '"SF Mono", "Monaco", "Inconsolata", "Fira Code", monospace'
16372
+ },
16373
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
16374
+ fontScale: 1,
16375
+ fontWeights: {
16376
+ body: 400,
16377
+ heading: 500,
16378
+ bold: 600,
16379
+ light: 300,
16380
+ medium: 500,
16381
+ semibold: 600
16382
+ },
16383
+ lineHeights: {
16384
+ body: 1.6,
16385
+ heading: 1.3,
16386
+ tight: 1.4,
16387
+ relaxed: 1.8
16388
+ },
16389
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
16390
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
16391
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
16392
+ shadows: [
16393
+ "none",
16394
+ "0 1px 2px 0 rgba(0, 0, 0, 0.05)",
16395
+ "0 2px 4px 0 rgba(0, 0, 0, 0.06)",
16396
+ "0 4px 6px 0 rgba(0, 0, 0, 0.07)",
16397
+ "0 8px 12px 0 rgba(0, 0, 0, 0.08)",
16398
+ "0 16px 24px 0 rgba(0, 0, 0, 0.10)"
16399
+ ],
16400
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
16401
+ colors: {
16402
+ text: "#e4e4e4",
16403
+ background: "rgba(10, 10, 10, 0.85)",
16404
+ primary: "#66b3ff",
16405
+ secondary: "#80c4ff",
16406
+ accent: "#66ff99",
16407
+ highlight: "rgba(102, 179, 255, 0.15)",
16408
+ muted: "rgba(26, 26, 26, 0.8)",
16409
+ success: "#66ff99",
16410
+ warning: "#ffcc66",
16411
+ error: "#ff6666",
16412
+ info: "#66b3ff",
16413
+ border: "rgba(255, 255, 255, 0.1)",
16414
+ backgroundSecondary: "rgba(15, 15, 15, 0.9)",
16415
+ backgroundTertiary: "rgba(20, 20, 20, 0.9)",
16416
+ backgroundLight: "rgba(255, 255, 255, 0.05)",
16417
+ backgroundHover: "rgba(102, 179, 255, 0.08)",
16418
+ surface: "rgba(15, 15, 15, 0.95)",
16419
+ textSecondary: "rgba(255, 255, 255, 0.7)",
16420
+ textTertiary: "rgba(255, 255, 255, 0.5)",
16421
+ textMuted: "rgba(255, 255, 255, 0.4)",
16422
+ highlightBg: "rgba(255, 235, 59, 0.25)",
16423
+ highlightBorder: "rgba(255, 235, 59, 0.5)"
16424
+ },
16425
+ modes: {
16426
+ light: {
16427
+ text: "#1a1a1a",
16428
+ background: "rgba(255, 255, 255, 0.9)",
16429
+ primary: "#0066cc",
16430
+ secondary: "#0052a3",
16431
+ accent: "#00cc88",
16432
+ highlight: "rgba(0, 102, 204, 0.08)",
16433
+ muted: "rgba(245, 245, 245, 0.8)",
16434
+ success: "#00cc88",
16435
+ warning: "#ffaa00",
16436
+ error: "#ff3333",
16437
+ info: "#0066cc",
16438
+ border: "rgba(0, 0, 0, 0.1)",
16439
+ backgroundSecondary: "rgba(250, 250, 250, 0.9)",
16440
+ backgroundTertiary: "rgba(245, 245, 245, 0.9)",
16441
+ backgroundLight: "rgba(0, 0, 0, 0.02)",
16442
+ backgroundHover: "rgba(0, 102, 204, 0.04)",
16443
+ surface: "rgba(255, 255, 255, 0.95)",
16444
+ textSecondary: "rgba(0, 0, 0, 0.6)",
16445
+ textTertiary: "rgba(0, 0, 0, 0.4)",
16446
+ textMuted: "rgba(0, 0, 0, 0.3)",
16447
+ highlightBg: "rgba(255, 235, 59, 0.3)",
16448
+ highlightBorder: "rgba(255, 235, 59, 0.6)"
16449
+ }
16450
+ },
16451
+ buttons: {
16452
+ primary: {
16453
+ color: "white",
16454
+ bg: "primary",
16455
+ borderWidth: 0,
16456
+ "&:hover": {
16457
+ bg: "secondary"
16458
+ }
16459
+ },
16460
+ secondary: {
16461
+ color: "primary",
16462
+ bg: "transparent",
16463
+ borderWidth: 1,
16464
+ borderStyle: "solid",
16465
+ borderColor: "primary",
16466
+ "&:hover": {
16467
+ bg: "highlight"
16468
+ }
16469
+ },
16470
+ ghost: {
16471
+ color: "text",
16472
+ bg: "transparent",
16473
+ "&:hover": {
16474
+ bg: "backgroundHover"
16475
+ }
16476
+ }
16477
+ },
16478
+ text: {
16479
+ heading: {
16480
+ fontFamily: "heading",
16481
+ fontWeight: "heading",
16482
+ lineHeight: "heading"
16483
+ },
16484
+ body: {
16485
+ fontFamily: "body",
16486
+ fontWeight: "body",
16487
+ lineHeight: "body"
16488
+ },
16489
+ caption: {
16490
+ fontSize: 1,
16491
+ color: "textSecondary"
16492
+ }
16493
+ },
16494
+ cards: {
16495
+ primary: {
16496
+ bg: "surface",
16497
+ border: "1px solid",
16498
+ borderColor: "border",
16499
+ borderRadius: 1
16500
+ },
16501
+ secondary: {
16502
+ bg: "backgroundSecondary",
16503
+ border: "1px solid",
16504
+ borderColor: "border",
16505
+ borderRadius: 1
16506
+ }
16507
+ }
16508
+ };
16509
+ var matrixTheme = {
16510
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
16511
+ fonts: {
16512
+ body: '"Courier New", "Courier", "Lucida Console", "Monaco", monospace',
16513
+ heading: '"Courier New", "Courier", "Lucida Console", "Monaco", monospace',
16514
+ monospace: '"Courier New", "Courier", "Lucida Console", "Monaco", monospace'
16515
+ },
16516
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
16517
+ fontScale: 1,
16518
+ fontWeights: {
16519
+ body: 400,
16520
+ heading: 500,
16521
+ bold: 600,
16522
+ light: 300,
16523
+ medium: 500,
16524
+ semibold: 600
16525
+ },
16526
+ lineHeights: {
16527
+ body: 1.5,
16528
+ heading: 1.2,
16529
+ tight: 1.3,
16530
+ relaxed: 1.7
16531
+ },
16532
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
16533
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
16534
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
16535
+ shadows: [
16536
+ "none",
16537
+ "0 0 5px rgba(0, 216, 53, 0.15)",
16538
+ "0 0 10px rgba(0, 216, 53, 0.2)",
16539
+ "0 0 15px rgba(0, 216, 53, 0.25)",
16540
+ "0 0 20px rgba(0, 216, 53, 0.3)",
16541
+ "0 0 30px rgba(0, 216, 53, 0.4)"
16542
+ ],
16543
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
16544
+ colors: {
16545
+ text: "#a8a8a8",
16546
+ background: "#000000",
16547
+ primary: "#00d835",
16548
+ secondary: "#00a828",
16549
+ accent: "#00d835",
16550
+ highlight: "rgba(0, 216, 53, 0.15)",
16551
+ muted: "#0a0a0a",
16552
+ success: "#00d835",
16553
+ warning: "#d4a000",
16554
+ error: "#d63333",
16555
+ info: "#00a8d6",
16556
+ border: "rgba(0, 216, 53, 0.2)",
16557
+ backgroundSecondary: "#0a0a0a",
16558
+ backgroundTertiary: "#111111",
16559
+ backgroundLight: "rgba(0, 216, 53, 0.03)",
16560
+ backgroundHover: "rgba(0, 216, 53, 0.08)",
16561
+ surface: "#050505",
16562
+ textSecondary: "#808080",
16563
+ textTertiary: "#606060",
16564
+ textMuted: "#484848",
16565
+ highlightBg: "rgba(0, 216, 53, 0.25)",
16566
+ highlightBorder: "rgba(0, 216, 53, 0.5)"
16567
+ },
16568
+ buttons: {
16569
+ primary: {
16570
+ color: "black",
16571
+ bg: "primary",
16572
+ borderWidth: 0,
16573
+ "&:hover": {
16574
+ bg: "secondary"
16575
+ }
16576
+ },
16577
+ secondary: {
16578
+ color: "primary",
16579
+ bg: "transparent",
16580
+ borderWidth: 1,
16581
+ borderStyle: "solid",
16582
+ borderColor: "primary",
16583
+ "&:hover": {
16584
+ bg: "highlight"
16585
+ }
16586
+ },
16587
+ ghost: {
16588
+ color: "text",
16589
+ bg: "transparent",
16590
+ "&:hover": {
16591
+ bg: "backgroundHover"
16592
+ }
16593
+ }
16594
+ },
16595
+ text: {
16596
+ heading: {
16597
+ fontFamily: "heading",
16598
+ fontWeight: "heading",
16599
+ lineHeight: "heading"
16600
+ },
16601
+ body: {
16602
+ fontFamily: "body",
16603
+ fontWeight: "body",
16604
+ lineHeight: "body"
16605
+ },
16606
+ caption: {
16607
+ fontSize: 1,
16608
+ color: "textSecondary"
16609
+ }
16610
+ },
16611
+ cards: {
16612
+ primary: {
16613
+ bg: "surface",
16614
+ border: "1px solid",
16615
+ borderColor: "border",
16616
+ borderRadius: 0
16617
+ },
16618
+ secondary: {
16619
+ bg: "backgroundSecondary",
16620
+ border: "1px solid",
16621
+ borderColor: "border",
16622
+ borderRadius: 0
16623
+ }
16624
+ }
16625
+ };
16626
+ var matrixMinimalTheme = {
16627
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
16628
+ fonts: {
16629
+ body: '"Courier New", "Courier", "Lucida Console", "Monaco", monospace',
16630
+ heading: '"Courier New", "Courier", "Lucida Console", "Monaco", monospace',
16631
+ monospace: '"Courier New", "Courier", "Lucida Console", "Monaco", monospace'
16632
+ },
16633
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
16634
+ fontScale: 1,
16635
+ fontWeights: {
16636
+ body: 400,
16637
+ heading: 500,
16638
+ bold: 600,
16639
+ light: 300,
16640
+ medium: 500,
16641
+ semibold: 600
16642
+ },
16643
+ lineHeights: {
16644
+ body: 1.5,
16645
+ heading: 1.2,
16646
+ tight: 1.3,
16647
+ relaxed: 1.7
16648
+ },
16649
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
16650
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
16651
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
16652
+ shadows: [
16653
+ "none",
16654
+ "0 1px 2px rgba(0, 0, 0, 0.05)",
16655
+ "0 2px 4px rgba(0, 0, 0, 0.1)",
16656
+ "0 4px 8px rgba(0, 0, 0, 0.15)",
16657
+ "0 8px 16px rgba(0, 0, 0, 0.2)",
16658
+ "0 0 20px rgba(0, 216, 53, 0.1)"
16659
+ ],
16660
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
16661
+ colors: {
16662
+ text: "#a8a8a8",
16663
+ background: "#000000",
16664
+ primary: "#b8b8b8",
16665
+ secondary: "#909090",
16666
+ accent: "#00d835",
16667
+ highlight: "rgba(0, 216, 53, 0.1)",
16668
+ muted: "#0a0a0a",
16669
+ success: "#00d835",
16670
+ warning: "#d4a000",
16671
+ error: "#d63333",
16672
+ info: "#00a8d6",
16673
+ border: "rgba(184, 184, 184, 0.1)",
16674
+ backgroundSecondary: "#0a0a0a",
16675
+ backgroundTertiary: "#111111",
16676
+ backgroundLight: "rgba(184, 184, 184, 0.02)",
16677
+ backgroundHover: "rgba(0, 216, 53, 0.05)",
16678
+ surface: "#050505",
16679
+ textSecondary: "#808080",
16680
+ textTertiary: "#606060",
16681
+ textMuted: "#484848",
16682
+ highlightBg: "rgba(0, 216, 53, 0.2)",
16683
+ highlightBorder: "rgba(0, 216, 53, 0.4)"
16684
+ },
16685
+ buttons: {
16686
+ primary: {
16687
+ color: "black",
16688
+ bg: "primary",
16689
+ borderWidth: 0,
16690
+ "&:hover": {
16691
+ bg: "secondary"
16692
+ }
16693
+ },
16694
+ secondary: {
16695
+ color: "primary",
16696
+ bg: "transparent",
16697
+ borderWidth: 1,
16698
+ borderStyle: "solid",
16699
+ borderColor: "primary",
16700
+ "&:hover": {
16701
+ bg: "backgroundHover"
16702
+ }
16703
+ },
16704
+ ghost: {
16705
+ color: "text",
16706
+ bg: "transparent",
16707
+ "&:hover": {
16708
+ bg: "backgroundHover"
16709
+ }
16710
+ }
16711
+ },
16712
+ text: {
16713
+ heading: {
16714
+ fontFamily: "heading",
16715
+ fontWeight: "heading",
16716
+ lineHeight: "heading"
16717
+ },
16718
+ body: {
16719
+ fontFamily: "body",
16720
+ fontWeight: "body",
16721
+ lineHeight: "body"
16722
+ },
16723
+ caption: {
16724
+ fontSize: 1,
16725
+ color: "textSecondary"
16726
+ }
16727
+ },
16728
+ cards: {
16729
+ primary: {
16730
+ bg: "surface",
16731
+ border: "1px solid",
16732
+ borderColor: "border",
16733
+ borderRadius: 0
16734
+ },
16735
+ secondary: {
16736
+ bg: "backgroundSecondary",
16737
+ border: "1px solid",
16738
+ borderColor: "border",
16739
+ borderRadius: 0
16740
+ }
16741
+ }
16742
+ };
16743
+ var slateTheme = {
16744
+ space: [0, 4, 8, 16, 32, 64, 128, 256, 512],
16745
+ fonts: {
16746
+ body: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
16747
+ heading: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
16748
+ monospace: '"Fira Code", "SF Mono", Monaco, Inconsolata, monospace'
16749
+ },
16750
+ fontSizes: [12, 14, 16, 18, 20, 24, 32, 48, 64, 96],
16751
+ fontScale: 1,
16752
+ fontWeights: {
16753
+ body: 400,
16754
+ heading: 600,
16755
+ bold: 700,
16756
+ light: 300,
16757
+ medium: 500,
16758
+ semibold: 600
16759
+ },
16760
+ lineHeights: {
16761
+ body: 1.6,
16762
+ heading: 1.3,
16763
+ tight: 1.25,
16764
+ relaxed: 1.75
16765
+ },
16766
+ breakpoints: ["640px", "768px", "1024px", "1280px"],
16767
+ sizes: [16, 32, 64, 128, 256, 512, 768, 1024, 1536],
16768
+ radii: [0, 2, 4, 6, 8, 12, 16, 24],
16769
+ shadows: [
16770
+ "none",
16771
+ "0 1px 3px 0 rgba(0, 0, 0, 0.2)",
16772
+ "0 4px 6px -1px rgba(0, 0, 0, 0.2)",
16773
+ "0 10px 15px -3px rgba(0, 0, 0, 0.2)",
16774
+ "0 20px 25px -5px rgba(0, 0, 0, 0.25)",
16775
+ "0 25px 50px -12px rgba(0, 0, 0, 0.3)"
16776
+ ],
16777
+ zIndices: [0, 1, 10, 20, 30, 40, 50],
16778
+ colors: {
16779
+ text: "#9ca3af",
16780
+ background: "#1a1c1e",
16781
+ primary: "#d1d5db",
16782
+ secondary: "#6b7280",
16783
+ accent: "#f59e0b",
16784
+ highlight: "rgba(209, 213, 219, 0.15)",
16785
+ muted: "#2d3134",
16786
+ success: "#10b981",
16787
+ warning: "#f59e0b",
16788
+ error: "#ef4444",
16789
+ info: "#3b82f6",
16790
+ border: "rgba(156, 163, 175, 0.15)",
16791
+ backgroundSecondary: "#22252a",
16792
+ backgroundTertiary: "#2d3134",
16793
+ backgroundLight: "rgba(156, 163, 175, 0.05)",
16794
+ backgroundHover: "rgba(156, 163, 175, 0.1)",
16795
+ surface: "#1f2124",
16796
+ textSecondary: "#e5e7eb",
16797
+ textTertiary: "#6b7280",
16798
+ textMuted: "#4b5563",
16799
+ highlightBg: "rgba(245, 158, 11, 0.25)",
16800
+ highlightBorder: "rgba(245, 158, 11, 0.5)"
16801
+ },
16802
+ buttons: {
16803
+ primary: {
16804
+ color: "#1a1c1e",
16805
+ bg: "primary",
16806
+ borderWidth: 0,
16807
+ "&:hover": {
16808
+ bg: "#9ca3af"
16809
+ }
16810
+ },
16811
+ secondary: {
16812
+ color: "#e5e7eb",
16813
+ bg: "secondary",
16814
+ borderWidth: 0,
16815
+ "&:hover": {
16816
+ bg: "#4b5563"
16817
+ }
16818
+ },
16819
+ ghost: {
16820
+ color: "textSecondary",
16821
+ bg: "transparent",
16822
+ "&:hover": {
16823
+ bg: "backgroundHover"
16824
+ }
16825
+ }
16826
+ },
16827
+ text: {
16828
+ heading: {
16829
+ fontFamily: "heading",
16830
+ fontWeight: "heading",
16831
+ lineHeight: "heading",
16832
+ color: "textSecondary"
16833
+ },
16834
+ body: {
16835
+ fontFamily: "body",
16836
+ fontWeight: "body",
16837
+ lineHeight: "body"
16838
+ },
16839
+ caption: {
16840
+ fontSize: 1,
16841
+ color: "textTertiary"
16842
+ }
16843
+ },
16844
+ cards: {
16845
+ primary: {
16846
+ bg: "surface",
16847
+ border: "1px solid",
16848
+ borderColor: "border",
16849
+ borderRadius: 3
16850
+ },
16851
+ secondary: {
16852
+ bg: "backgroundSecondary",
16853
+ border: "1px solid",
16854
+ borderColor: "border",
16855
+ borderRadius: 3
16856
+ }
16857
+ }
16858
+ };
16859
+ var import_react2 = __toESM(React2);
16860
+ function overrideColors(theme2, colors) {
16861
+ return {
16862
+ ...theme2,
16863
+ colors: {
16864
+ ...theme2.colors,
16865
+ ...colors
16866
+ }
16867
+ };
16868
+ }
16869
+ function makeTheme(baseTheme, overrides) {
16870
+ return {
16871
+ ...baseTheme,
16872
+ ...overrides,
16873
+ colors: {
16874
+ ...baseTheme.colors,
16875
+ ...overrides.colors
16876
+ },
16877
+ fonts: {
16878
+ ...baseTheme.fonts,
16879
+ ...overrides.fonts
16880
+ }
16881
+ };
16882
+ }
16883
+ function addMode(theme2, modeName, colors, baseMode) {
16884
+ let baseColors;
16885
+ if (baseMode && theme2.modes && theme2.modes[baseMode]) {
16886
+ baseColors = {
16887
+ ...theme2.colors,
16888
+ ...theme2.modes[baseMode]
16889
+ };
16890
+ } else {
16891
+ baseColors = theme2.colors;
16892
+ }
16893
+ const newMode = {
16894
+ ...baseColors,
16895
+ ...colors
16896
+ };
16897
+ return {
16898
+ ...theme2,
16899
+ modes: {
16900
+ ...theme2.modes,
16901
+ [modeName]: newMode
16902
+ }
16903
+ };
16904
+ }
16905
+ function getMode(theme2, mode) {
16906
+ if (!mode || !theme2.modes || !theme2.modes[mode]) {
16907
+ return theme2.colors;
16908
+ }
16909
+ return {
16910
+ ...theme2.colors,
16911
+ ...theme2.modes[mode]
16912
+ };
16913
+ }
16914
+ var ThemeContext2;
16915
+ var getThemeContext2 = () => {
16916
+ if (typeof window !== "undefined") {
16917
+ const globalWindow = window;
16918
+ if (!globalWindow.__principlemd_theme_context__) {
16919
+ globalWindow.__principlemd_theme_context__ = import_react2.createContext(void 0);
16920
+ }
16921
+ return globalWindow.__principlemd_theme_context__;
16922
+ } else {
16923
+ if (!ThemeContext2) {
16924
+ ThemeContext2 = import_react2.createContext(void 0);
16925
+ }
16926
+ return ThemeContext2;
16927
+ }
16928
+ };
16929
+ var ThemeContextSingleton2 = getThemeContext2();
16930
+ var useTheme2 = () => {
16931
+ const context = import_react2.useContext(ThemeContextSingleton2);
16932
+ if (!context) {
16933
+ throw new Error("useTheme must be used within a ThemeProvider");
16934
+ }
16935
+ return context;
16936
+ };
16937
+ var ThemeProvider = ({
16938
+ children,
16939
+ theme: customTheme = theme,
16940
+ initialMode
16941
+ }) => {
16942
+ const [mode, setMode] = import_react2.useState(initialMode);
16943
+ const activeTheme = import_react2.default.useMemo(() => {
16944
+ if (!mode || !customTheme.modes || !customTheme.modes[mode]) {
16945
+ return customTheme;
16946
+ }
16947
+ return {
16948
+ ...customTheme,
16949
+ colors: getMode(customTheme, mode)
16950
+ };
16951
+ }, [customTheme, mode]);
16952
+ import_react2.useEffect(() => {
16953
+ if (!initialMode) {
16954
+ const savedMode = localStorage.getItem("principlemd-theme-mode");
16955
+ if (savedMode) {
16956
+ setMode(savedMode);
16957
+ }
16958
+ }
16959
+ }, [initialMode]);
16960
+ import_react2.useEffect(() => {
16961
+ if (mode) {
16962
+ localStorage.setItem("principlemd-theme-mode", mode);
16963
+ } else {
16964
+ localStorage.removeItem("principlemd-theme-mode");
16965
+ }
16966
+ }, [mode]);
16967
+ const value = {
16968
+ theme: activeTheme,
16969
+ mode,
16970
+ setMode
16971
+ };
16972
+ return /* @__PURE__ */ import_react2.default.createElement(ThemeContextSingleton2.Provider, {
16973
+ value
16974
+ }, children);
16975
+ };
16976
+ var withTheme = (Component2) => {
16977
+ return (props) => {
16978
+ const { theme: theme2 } = useTheme2();
16979
+ return /* @__PURE__ */ import_react2.default.createElement(Component2, {
16980
+ ...props,
16981
+ theme: theme2
16982
+ });
16983
+ };
16984
+ };
16985
+ var getColor = (theme2, colorKey) => {
16986
+ const colors = theme2.colors;
16987
+ const value = colors[colorKey];
16988
+ return typeof value === "string" ? value : colorKey;
16989
+ };
16990
+ var getSpace = (theme2, index2) => {
16991
+ return theme2.space[index2] || 0;
16992
+ };
16993
+ var getFontSize = (theme2, index2) => {
16994
+ return theme2.fontSizes[index2] || theme2.fontSizes[2];
16995
+ };
16996
+ var getRadius = (theme2, index2) => {
16997
+ return theme2.radii[index2] || 0;
16998
+ };
16999
+ var getShadow = (theme2, index2) => {
17000
+ return theme2.shadows[index2] || "none";
17001
+ };
17002
+ var getZIndex = (theme2, index2) => {
17003
+ return theme2.zIndices[index2] || 0;
17004
+ };
17005
+ var responsive = (values) => {
17006
+ return values.reduce((acc, value, index2) => {
17007
+ if (index2 === 0) {
17008
+ return value;
17009
+ }
17010
+ return {
17011
+ ...acc,
17012
+ [`@media screen and (min-width: ${values[index2 - 1]})`]: value
17013
+ };
17014
+ }, {});
17015
+ };
17016
+ var sx = (styles) => styles;
17017
+ var createStyle = (theme2, styleObj) => {
17018
+ const processValue = (value) => {
17019
+ if (typeof value === "string") {
17020
+ if (value in theme2.colors) {
17021
+ return getColor(theme2, value);
17022
+ }
17023
+ return value;
17024
+ }
17025
+ if (typeof value === "number") {
17026
+ return value;
17027
+ }
17028
+ if (Array.isArray(value)) {
17029
+ return value.map(processValue);
17030
+ }
17031
+ if (typeof value === "object" && value !== null) {
17032
+ const processed2 = {};
17033
+ for (const [key, val] of Object.entries(value)) {
17034
+ processed2[key] = processValue(val);
17035
+ }
17036
+ return processed2;
17037
+ }
17038
+ return value;
17039
+ };
17040
+ const processed = {};
17041
+ for (const [key, val] of Object.entries(styleObj)) {
17042
+ processed[key] = processValue(val);
17043
+ }
17044
+ return processed;
17045
+ };
17046
+ var mergeThemes = (baseTheme, ...overrides) => {
17047
+ return overrides.reduce((theme2, override) => ({
17048
+ space: override.space || theme2.space,
17049
+ fonts: { ...theme2.fonts, ...override.fonts || {} },
17050
+ fontSizes: override.fontSizes || theme2.fontSizes,
17051
+ fontWeights: { ...theme2.fontWeights, ...override.fontWeights || {} },
17052
+ lineHeights: { ...theme2.lineHeights, ...override.lineHeights || {} },
17053
+ breakpoints: override.breakpoints || theme2.breakpoints,
17054
+ sizes: override.sizes || theme2.sizes,
17055
+ radii: override.radii || theme2.radii,
17056
+ shadows: override.shadows || theme2.shadows,
17057
+ zIndices: override.zIndices || theme2.zIndices,
17058
+ colors: {
17059
+ ...theme2.colors,
17060
+ ...override.colors || {}
17061
+ },
17062
+ buttons: { ...theme2.buttons, ...override.buttons || {} },
17063
+ text: { ...theme2.text, ...override.text || {} },
17064
+ cards: { ...theme2.cards, ...override.cards || {} }
17065
+ }), baseTheme);
17066
+ };
17067
+ var import_react22 = __toESM(React2);
17068
+ var ThemeShowcase = ({
17069
+ theme: theme2,
17070
+ title,
17071
+ showValues = true,
17072
+ sections = ["colors", "typography", "spacing", "shadows", "radii"]
17073
+ }) => {
17074
+ const containerStyle = {
17075
+ fontFamily: theme2.fonts.body,
17076
+ color: theme2.colors.text,
17077
+ backgroundColor: theme2.colors.background,
17078
+ padding: theme2.space[4],
17079
+ minHeight: "100vh"
17080
+ };
17081
+ const sectionStyle = {
17082
+ marginBottom: theme2.space[5],
17083
+ padding: theme2.space[4],
17084
+ backgroundColor: theme2.colors.surface || theme2.colors.backgroundSecondary,
17085
+ borderRadius: theme2.radii[2],
17086
+ border: `1px solid ${theme2.colors.border}`
17087
+ };
17088
+ const headingStyle = {
17089
+ fontFamily: theme2.fonts.heading,
17090
+ fontSize: theme2.fontSizes[5],
17091
+ fontWeight: theme2.fontWeights.heading,
17092
+ marginBottom: theme2.space[3],
17093
+ color: theme2.colors.primary
17094
+ };
17095
+ const subheadingStyle = {
17096
+ fontFamily: theme2.fonts.heading,
17097
+ fontSize: theme2.fontSizes[3],
17098
+ fontWeight: theme2.fontWeights.medium,
17099
+ marginBottom: theme2.space[2],
17100
+ marginTop: theme2.space[3],
17101
+ color: theme2.colors.text
17102
+ };
17103
+ return /* @__PURE__ */ import_react22.default.createElement("div", {
17104
+ style: containerStyle
17105
+ }, title && /* @__PURE__ */ import_react22.default.createElement("h1", {
17106
+ style: {
17107
+ ...headingStyle,
17108
+ fontSize: theme2.fontSizes[6],
17109
+ marginBottom: theme2.space[4]
17110
+ }
17111
+ }, title), sections.includes("colors") && /* @__PURE__ */ import_react22.default.createElement("div", {
17112
+ style: sectionStyle
17113
+ }, /* @__PURE__ */ import_react22.default.createElement("h2", {
17114
+ style: headingStyle
17115
+ }, "Colors"), /* @__PURE__ */ import_react22.default.createElement("h3", {
17116
+ style: subheadingStyle
17117
+ }, "Primary Colors"), /* @__PURE__ */ import_react22.default.createElement("div", {
17118
+ style: {
17119
+ display: "grid",
17120
+ gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))",
17121
+ gap: theme2.space[3],
17122
+ marginBottom: theme2.space[3]
17123
+ }
17124
+ }, ["text", "background", "primary", "secondary", "accent", "muted"].map((key) => {
17125
+ const color = theme2.colors[key];
17126
+ if (!color)
17127
+ return null;
17128
+ return /* @__PURE__ */ import_react22.default.createElement("div", {
17129
+ key,
17130
+ style: {
17131
+ display: "flex",
17132
+ alignItems: "center",
17133
+ padding: theme2.space[2],
17134
+ backgroundColor: theme2.colors.backgroundLight || theme2.colors.backgroundTertiary,
17135
+ borderRadius: theme2.radii[1]
17136
+ }
17137
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17138
+ style: {
17139
+ width: 40,
17140
+ height: 40,
17141
+ backgroundColor: color,
17142
+ border: `1px solid ${theme2.colors.border}`,
17143
+ borderRadius: theme2.radii[1],
17144
+ marginRight: theme2.space[2]
17145
+ }
17146
+ }), /* @__PURE__ */ import_react22.default.createElement("div", null, /* @__PURE__ */ import_react22.default.createElement("div", {
17147
+ style: {
17148
+ fontFamily: theme2.fonts.monospace,
17149
+ fontSize: theme2.fontSizes[1],
17150
+ fontWeight: theme2.fontWeights.medium
17151
+ }
17152
+ }, key), showValues && /* @__PURE__ */ import_react22.default.createElement("div", {
17153
+ style: {
17154
+ fontFamily: theme2.fonts.monospace,
17155
+ fontSize: theme2.fontSizes[0],
17156
+ color: theme2.colors.textSecondary
17157
+ }
17158
+ }, color)));
17159
+ })), /* @__PURE__ */ import_react22.default.createElement("h3", {
17160
+ style: subheadingStyle
17161
+ }, "Status Colors"), /* @__PURE__ */ import_react22.default.createElement("div", {
17162
+ style: {
17163
+ display: "grid",
17164
+ gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))",
17165
+ gap: theme2.space[3],
17166
+ marginBottom: theme2.space[3]
17167
+ }
17168
+ }, ["success", "warning", "error", "info"].map((key) => {
17169
+ const color = theme2.colors[key];
17170
+ if (!color)
17171
+ return null;
17172
+ return /* @__PURE__ */ import_react22.default.createElement("div", {
17173
+ key,
17174
+ style: {
17175
+ display: "flex",
17176
+ alignItems: "center",
17177
+ padding: theme2.space[2],
17178
+ backgroundColor: theme2.colors.backgroundLight || theme2.colors.backgroundTertiary,
17179
+ borderRadius: theme2.radii[1]
17180
+ }
17181
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17182
+ style: {
17183
+ width: 40,
17184
+ height: 40,
17185
+ backgroundColor: color,
17186
+ border: `1px solid ${theme2.colors.border}`,
17187
+ borderRadius: theme2.radii[1],
17188
+ marginRight: theme2.space[2]
17189
+ }
17190
+ }), /* @__PURE__ */ import_react22.default.createElement("div", null, /* @__PURE__ */ import_react22.default.createElement("div", {
17191
+ style: {
17192
+ fontFamily: theme2.fonts.monospace,
17193
+ fontSize: theme2.fontSizes[1],
17194
+ fontWeight: theme2.fontWeights.medium
17195
+ }
17196
+ }, key), showValues && /* @__PURE__ */ import_react22.default.createElement("div", {
17197
+ style: {
17198
+ fontFamily: theme2.fonts.monospace,
17199
+ fontSize: theme2.fontSizes[0],
17200
+ color: theme2.colors.textSecondary
17201
+ }
17202
+ }, color)));
17203
+ })), /* @__PURE__ */ import_react22.default.createElement("h3", {
17204
+ style: subheadingStyle
17205
+ }, "Background Colors"), /* @__PURE__ */ import_react22.default.createElement("div", {
17206
+ style: {
17207
+ display: "grid",
17208
+ gridTemplateColumns: "repeat(auto-fill, minmax(200px, 1fr))",
17209
+ gap: theme2.space[3]
17210
+ }
17211
+ }, ["backgroundSecondary", "backgroundTertiary", "backgroundLight", "backgroundHover", "surface"].map((key) => {
17212
+ const color = theme2.colors[key];
17213
+ if (!color)
17214
+ return null;
17215
+ return /* @__PURE__ */ import_react22.default.createElement("div", {
17216
+ key,
17217
+ style: {
17218
+ padding: theme2.space[3],
17219
+ backgroundColor: color,
17220
+ border: `1px solid ${theme2.colors.border}`,
17221
+ borderRadius: theme2.radii[1]
17222
+ }
17223
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17224
+ style: {
17225
+ fontFamily: theme2.fonts.monospace,
17226
+ fontSize: theme2.fontSizes[1],
17227
+ fontWeight: theme2.fontWeights.medium
17228
+ }
17229
+ }, key), showValues && /* @__PURE__ */ import_react22.default.createElement("div", {
17230
+ style: {
17231
+ fontFamily: theme2.fonts.monospace,
17232
+ fontSize: theme2.fontSizes[0],
17233
+ color: theme2.colors.textSecondary,
17234
+ marginTop: theme2.space[1]
17235
+ }
17236
+ }, color));
17237
+ }))), sections.includes("typography") && /* @__PURE__ */ import_react22.default.createElement("div", {
17238
+ style: sectionStyle
17239
+ }, /* @__PURE__ */ import_react22.default.createElement("h2", {
17240
+ style: headingStyle
17241
+ }, "Typography"), /* @__PURE__ */ import_react22.default.createElement("h3", {
17242
+ style: subheadingStyle
17243
+ }, "Font Families"), /* @__PURE__ */ import_react22.default.createElement("div", {
17244
+ style: { marginBottom: theme2.space[4] }
17245
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17246
+ style: {
17247
+ fontFamily: theme2.fonts.heading,
17248
+ fontSize: theme2.fontSizes[4],
17249
+ marginBottom: theme2.space[2]
17250
+ }
17251
+ }, "Heading Font: ", showValues && /* @__PURE__ */ import_react22.default.createElement("span", {
17252
+ style: {
17253
+ fontFamily: theme2.fonts.monospace,
17254
+ fontSize: theme2.fontSizes[1],
17255
+ color: theme2.colors.textSecondary
17256
+ }
17257
+ }, " ", theme2.fonts.heading)), /* @__PURE__ */ import_react22.default.createElement("div", {
17258
+ style: {
17259
+ fontFamily: theme2.fonts.body,
17260
+ fontSize: theme2.fontSizes[2],
17261
+ marginBottom: theme2.space[2]
17262
+ }
17263
+ }, "Body Font: ", showValues && /* @__PURE__ */ import_react22.default.createElement("span", {
17264
+ style: {
17265
+ fontFamily: theme2.fonts.monospace,
17266
+ fontSize: theme2.fontSizes[1],
17267
+ color: theme2.colors.textSecondary
17268
+ }
17269
+ }, " ", theme2.fonts.body)), /* @__PURE__ */ import_react22.default.createElement("div", {
17270
+ style: {
17271
+ fontFamily: theme2.fonts.monospace,
17272
+ fontSize: theme2.fontSizes[2]
17273
+ }
17274
+ }, "Monospace Font: ", showValues && /* @__PURE__ */ import_react22.default.createElement("span", {
17275
+ style: {
17276
+ fontSize: theme2.fontSizes[1],
17277
+ color: theme2.colors.textSecondary
17278
+ }
17279
+ }, " ", theme2.fonts.monospace))), /* @__PURE__ */ import_react22.default.createElement("h3", {
17280
+ style: subheadingStyle
17281
+ }, "Font Sizes"), /* @__PURE__ */ import_react22.default.createElement("div", {
17282
+ style: { marginBottom: theme2.space[4] }
17283
+ }, theme2.fontSizes.map((size, index2) => /* @__PURE__ */ import_react22.default.createElement("div", {
17284
+ key: index2,
17285
+ style: {
17286
+ fontSize: size,
17287
+ lineHeight: theme2.lineHeights.body,
17288
+ marginBottom: theme2.space[1]
17289
+ }
17290
+ }, "Size ", index2, ": Sample Text ", showValues && `(${size}px)`))), /* @__PURE__ */ import_react22.default.createElement("h3", {
17291
+ style: subheadingStyle
17292
+ }, "Font Weights"), /* @__PURE__ */ import_react22.default.createElement("div", {
17293
+ style: {
17294
+ display: "grid",
17295
+ gridTemplateColumns: "repeat(auto-fit, minmax(150px, 1fr))",
17296
+ gap: theme2.space[2]
17297
+ }
17298
+ }, Object.entries(theme2.fontWeights).map(([name, weight]) => /* @__PURE__ */ import_react22.default.createElement("div", {
17299
+ key: name,
17300
+ style: {
17301
+ fontWeight: weight,
17302
+ fontSize: theme2.fontSizes[2]
17303
+ }
17304
+ }, name, " ", showValues && `(${weight})`)))), sections.includes("spacing") && /* @__PURE__ */ import_react22.default.createElement("div", {
17305
+ style: sectionStyle
17306
+ }, /* @__PURE__ */ import_react22.default.createElement("h2", {
17307
+ style: headingStyle
17308
+ }, "Spacing"), /* @__PURE__ */ import_react22.default.createElement("div", {
17309
+ style: { display: "flex", flexDirection: "column", gap: theme2.space[2] }
17310
+ }, theme2.space.map((space, index2) => /* @__PURE__ */ import_react22.default.createElement("div", {
17311
+ key: index2,
17312
+ style: { display: "flex", alignItems: "center" }
17313
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17314
+ style: {
17315
+ width: 60,
17316
+ fontFamily: theme2.fonts.monospace,
17317
+ fontSize: theme2.fontSizes[1],
17318
+ color: theme2.colors.textSecondary
17319
+ }
17320
+ }, "[", index2, "]"), /* @__PURE__ */ import_react22.default.createElement("div", {
17321
+ style: {
17322
+ height: 24,
17323
+ width: space,
17324
+ backgroundColor: theme2.colors.primary,
17325
+ borderRadius: theme2.radii[1]
17326
+ }
17327
+ }), showValues && /* @__PURE__ */ import_react22.default.createElement("div", {
17328
+ style: {
17329
+ marginLeft: theme2.space[2],
17330
+ fontFamily: theme2.fonts.monospace,
17331
+ fontSize: theme2.fontSizes[1],
17332
+ color: theme2.colors.textSecondary
17333
+ }
17334
+ }, space, "px"))))), sections.includes("radii") && /* @__PURE__ */ import_react22.default.createElement("div", {
17335
+ style: sectionStyle
17336
+ }, /* @__PURE__ */ import_react22.default.createElement("h2", {
17337
+ style: headingStyle
17338
+ }, "Border Radii"), /* @__PURE__ */ import_react22.default.createElement("div", {
17339
+ style: {
17340
+ display: "grid",
17341
+ gridTemplateColumns: "repeat(auto-fill, minmax(100px, 1fr))",
17342
+ gap: theme2.space[3]
17343
+ }
17344
+ }, theme2.radii.map((radius, index2) => /* @__PURE__ */ import_react22.default.createElement("div", {
17345
+ key: index2,
17346
+ style: { textAlign: "center" }
17347
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17348
+ style: {
17349
+ width: 80,
17350
+ height: 80,
17351
+ backgroundColor: theme2.colors.primary,
17352
+ borderRadius: radius,
17353
+ marginBottom: theme2.space[1],
17354
+ margin: "0 auto"
17355
+ }
17356
+ }), /* @__PURE__ */ import_react22.default.createElement("div", {
17357
+ style: {
17358
+ fontFamily: theme2.fonts.monospace,
17359
+ fontSize: theme2.fontSizes[0],
17360
+ color: theme2.colors.textSecondary
17361
+ }
17362
+ }, "[", index2, "] ", showValues && `${radius}px`))))), sections.includes("shadows") && /* @__PURE__ */ import_react22.default.createElement("div", {
17363
+ style: sectionStyle
17364
+ }, /* @__PURE__ */ import_react22.default.createElement("h2", {
17365
+ style: headingStyle
17366
+ }, "Shadows"), /* @__PURE__ */ import_react22.default.createElement("div", {
17367
+ style: {
17368
+ display: "grid",
17369
+ gridTemplateColumns: "repeat(auto-fill, minmax(150px, 1fr))",
17370
+ gap: theme2.space[4]
17371
+ }
17372
+ }, theme2.shadows.map((shadow, index2) => /* @__PURE__ */ import_react22.default.createElement("div", {
17373
+ key: index2,
17374
+ style: { textAlign: "center" }
17375
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17376
+ style: {
17377
+ width: 100,
17378
+ height: 100,
17379
+ backgroundColor: theme2.colors.background,
17380
+ boxShadow: shadow,
17381
+ borderRadius: theme2.radii[2],
17382
+ margin: "0 auto",
17383
+ marginBottom: theme2.space[2],
17384
+ border: `1px solid ${theme2.colors.border}`
17385
+ }
17386
+ }), /* @__PURE__ */ import_react22.default.createElement("div", {
17387
+ style: {
17388
+ fontFamily: theme2.fonts.monospace,
17389
+ fontSize: theme2.fontSizes[0],
17390
+ color: theme2.colors.textSecondary
17391
+ }
17392
+ }, "Shadow [", index2, "]"), showValues && /* @__PURE__ */ import_react22.default.createElement("div", {
17393
+ style: {
17394
+ fontFamily: theme2.fonts.monospace,
17395
+ fontSize: theme2.fontSizes[0],
17396
+ color: theme2.colors.textMuted,
17397
+ marginTop: theme2.space[1]
17398
+ }
17399
+ }, shadow === "none" ? "none" : "..."))))), theme2.modes && Object.keys(theme2.modes).length > 0 && /* @__PURE__ */ import_react22.default.createElement("div", {
17400
+ style: sectionStyle
17401
+ }, /* @__PURE__ */ import_react22.default.createElement("h2", {
17402
+ style: headingStyle
17403
+ }, "Available Modes"), /* @__PURE__ */ import_react22.default.createElement("div", {
17404
+ style: {
17405
+ display: "flex",
17406
+ gap: theme2.space[2],
17407
+ flexWrap: "wrap"
17408
+ }
17409
+ }, /* @__PURE__ */ import_react22.default.createElement("div", {
17410
+ style: {
17411
+ padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
17412
+ backgroundColor: theme2.colors.primary,
17413
+ color: "#ffffff",
17414
+ borderRadius: theme2.radii[2],
17415
+ fontFamily: theme2.fonts.body,
17416
+ fontSize: theme2.fontSizes[1]
17417
+ }
17418
+ }, "default"), Object.keys(theme2.modes).map((modeName) => /* @__PURE__ */ import_react22.default.createElement("div", {
17419
+ key: modeName,
17420
+ style: {
17421
+ padding: `${theme2.space[2]}px ${theme2.space[3]}px`,
17422
+ backgroundColor: theme2.colors.secondary,
17423
+ color: theme2.colors.text,
17424
+ borderRadius: theme2.radii[2],
17425
+ fontFamily: theme2.fonts.body,
17426
+ fontSize: theme2.fontSizes[1]
17427
+ }
17428
+ }, modeName)))));
17429
+ };
17430
+ var theme = terminalTheme;
17431
+ function scaleThemeFonts(theme2, scale) {
17432
+ const currentScale = theme2.fontScale || 1;
17433
+ const effectiveScale = scale / currentScale;
17434
+ return {
17435
+ ...theme2,
17436
+ fontSizes: theme2.fontSizes.map((size) => Math.round(size * effectiveScale)),
17437
+ fontScale: scale
17438
+ };
17439
+ }
17440
+ function increaseFontScale(theme2) {
17441
+ const currentScale = theme2.fontScale || 1;
17442
+ const newScale = Math.min(currentScale * 1.1, 2);
17443
+ return scaleThemeFonts(theme2, newScale);
17444
+ }
17445
+ function decreaseFontScale(theme2) {
17446
+ const currentScale = theme2.fontScale || 1;
17447
+ const newScale = Math.max(currentScale * 0.9, 0.5);
17448
+ return scaleThemeFonts(theme2, newScale);
17449
+ }
17450
+ function resetFontScale(theme2) {
17451
+ return scaleThemeFonts(theme2, 1);
17452
+ }
17453
+ var src_default = theme;
17454
+ return cjs;
17455
+ }
15440
17456
  var CustomNode = {};
15441
17457
  var iconResolver = {};
15442
17458
  /**
@@ -49435,7 +51451,7 @@ function requireCustomEdge() {
49435
51451
  Object.defineProperty(CustomEdge, "__esModule", { value: true });
49436
51452
  CustomEdge.CustomEdge = void 0;
49437
51453
  const jsx_runtime_1 = require$$0;
49438
- const react_1 = require$$1$1;
51454
+ const react_1 = React2;
49439
51455
  const react_2 = /* @__PURE__ */ requireUmd();
49440
51456
  const CustomEdge$1 = ({ id, sourceX, sourceY, targetX, targetY, sourcePosition, targetPosition, data, markerEnd, selected }) => {
49441
51457
  var _a, _b, _c, _d, _e2;
@@ -49862,7 +51878,7 @@ function requireEdgeInfoPanel() {
49862
51878
  Object.defineProperty(EdgeInfoPanel, "__esModule", { value: true });
49863
51879
  EdgeInfoPanel.EdgeInfoPanel = void 0;
49864
51880
  const jsx_runtime_1 = require$$0;
49865
- const industry_theme_1 = require$$2$1;
51881
+ const industry_theme_1 = requireCjs();
49866
51882
  const SIDE_OPTIONS = ["top", "right", "bottom", "left"];
49867
51883
  const EdgeInfoPanel$1 = ({ edge, typeDefinition, sourceNodeId, targetNodeId, onClose, onDelete, onUpdateSides }) => {
49868
51884
  var _a, _b;
@@ -49980,8 +51996,8 @@ function requireNodeInfoPanel() {
49980
51996
  Object.defineProperty(NodeInfoPanel, "__esModule", { value: true });
49981
51997
  NodeInfoPanel.NodeInfoPanel = void 0;
49982
51998
  const jsx_runtime_1 = require$$0;
49983
- const react_1 = require$$1$1;
49984
- const industry_theme_1 = require$$2$1;
51999
+ const react_1 = React2;
52000
+ const industry_theme_1 = requireCjs();
49985
52001
  const iconResolver_1 = requireIconResolver();
49986
52002
  const COMMON_ICONS = [
49987
52003
  "Settings",
@@ -50253,8 +52269,8 @@ function requireSelectionSidebar() {
50253
52269
  Object.defineProperty(SelectionSidebar, "__esModule", { value: true });
50254
52270
  SelectionSidebar.SelectionSidebar = void 0;
50255
52271
  const jsx_runtime_1 = require$$0;
50256
- const react_1 = require$$1$1;
50257
- const industry_theme_1 = require$$2$1;
52272
+ const react_1 = React2;
52273
+ const industry_theme_1 = requireCjs();
50258
52274
  const iconResolver_1 = requireIconResolver();
50259
52275
  const SelectionSidebar$1 = ({ selectedNodeIds, nodes, nodeTypeDefinitions, onClose }) => {
50260
52276
  const { theme } = (0, industry_theme_1.useTheme)();
@@ -50429,10 +52445,10 @@ function requireGraphRenderer() {
50429
52445
  Object.defineProperty(exports$1, "__esModule", { value: true });
50430
52446
  exports$1.GraphRenderer = void 0;
50431
52447
  const jsx_runtime_1 = require$$0;
50432
- const react_1 = require$$1$1;
52448
+ const react_1 = React2;
50433
52449
  const react_2 = /* @__PURE__ */ requireUmd();
50434
52450
  const principal_view_core_1 = require$$4;
50435
- const industry_theme_1 = require$$2$1;
52451
+ const industry_theme_1 = requireCjs();
50436
52452
  const CustomNode_1 = requireCustomNode();
50437
52453
  const CustomEdge_1 = requireCustomEdge();
50438
52454
  const graphConverter_1 = requireGraphConverter();