@trinityui/design-system 2.1.3 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/CHANGELOG.md +628 -1
  2. package/MIGRATION.md +118 -0
  3. package/README.md +546 -136
  4. package/dist/Legend.js +873 -868
  5. package/dist/app-shell.js +5705 -5757
  6. package/dist/charts.js +2399 -2407
  7. package/dist/components/AI/AIActions.d.ts +3 -3
  8. package/dist/components/AI/AIActions.d.ts.map +1 -1
  9. package/dist/components/AI/AIAvatar.d.ts +1 -1
  10. package/dist/components/AI/AIAvatar.d.ts.map +1 -1
  11. package/dist/components/AI/AIChainOfThought.d.ts +63 -188
  12. package/dist/components/AI/AIChainOfThought.d.ts.map +1 -1
  13. package/dist/components/AI/AIChainOfThought.types.d.ts +195 -0
  14. package/dist/components/AI/AIChainOfThought.types.d.ts.map +1 -0
  15. package/dist/components/AI/AIChainOfThought.utils.d.ts +20 -0
  16. package/dist/components/AI/AIChainOfThought.utils.d.ts.map +1 -0
  17. package/dist/components/AI/AIChat.d.ts +5 -5
  18. package/dist/components/AI/AIChat.d.ts.map +1 -1
  19. package/dist/components/AI/AIContainer.d.ts +3 -3
  20. package/dist/components/AI/AIContainer.d.ts.map +1 -1
  21. package/dist/components/AI/AIExplainability.d.ts +1 -1
  22. package/dist/components/AI/AIExplainability.d.ts.map +1 -1
  23. package/dist/components/AI/AILabel.d.ts +1 -1
  24. package/dist/components/AI/AILabel.d.ts.map +1 -1
  25. package/dist/components/AI/AIMessage.d.ts +15 -2
  26. package/dist/components/AI/AIMessage.d.ts.map +1 -1
  27. package/dist/components/AI/AIRelatedQuestions.d.ts +1 -1
  28. package/dist/components/AI/AIRelatedQuestions.d.ts.map +1 -1
  29. package/dist/components/AI/AIResponseRenderer.d.ts +33 -26
  30. package/dist/components/AI/AIResponseRenderer.d.ts.map +1 -1
  31. package/dist/components/AI/AISources.d.ts +2 -2
  32. package/dist/components/AI/AISources.d.ts.map +1 -1
  33. package/dist/components/AI/AISourcesPanel.d.ts +2 -2
  34. package/dist/components/AI/AISourcesPanel.d.ts.map +1 -1
  35. package/dist/components/AI/AITextBlock.d.ts +59 -19
  36. package/dist/components/AI/AITextBlock.d.ts.map +1 -1
  37. package/dist/components/AI/AIVisuals.d.ts +4 -4
  38. package/dist/components/AI/AIVisuals.d.ts.map +1 -1
  39. package/dist/components/AI/AIVoiceInput.d.ts +2 -2
  40. package/dist/components/AI/AIVoiceInput.d.ts.map +1 -1
  41. package/dist/components/AI/ChatHeader.d.ts +1 -1
  42. package/dist/components/AI/ChatHeader.d.ts.map +1 -1
  43. package/dist/components/AI/ChatHistoryList.d.ts +1 -1
  44. package/dist/components/AI/ChatHistoryList.d.ts.map +1 -1
  45. package/dist/components/AI/ChatThread.d.ts +21 -1
  46. package/dist/components/AI/ChatThread.d.ts.map +1 -1
  47. package/dist/components/AI/InsightEngine.d.ts +29 -1
  48. package/dist/components/AI/InsightEngine.d.ts.map +1 -1
  49. package/dist/components/AI/InsightEngineInput.d.ts +1 -1
  50. package/dist/components/AI/InsightEngineInput.d.ts.map +1 -1
  51. package/dist/components/AI/QueryInput.d.ts +1 -1
  52. package/dist/components/AI/QueryInput.d.ts.map +1 -1
  53. package/dist/components/AI/UserAvatar.d.ts +1 -1
  54. package/dist/components/AI/UserAvatar.d.ts.map +1 -1
  55. package/dist/components/AI/UserMessage.d.ts +1 -1
  56. package/dist/components/AI/UserMessage.d.ts.map +1 -1
  57. package/dist/components/AI/tokens.d.ts +120 -10
  58. package/dist/components/AI/tokens.d.ts.map +1 -1
  59. package/dist/components/AppLayout/AIFab.d.ts +1 -1
  60. package/dist/components/AppLayout/AIFab.d.ts.map +1 -1
  61. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts +3 -2
  62. package/dist/components/AppLayout/AIFabLayout.deprecated.d.ts.map +1 -1
  63. package/dist/components/AppLayout/AppLayout.d.ts +45 -1
  64. package/dist/components/AppLayout/AppLayout.d.ts.map +1 -1
  65. package/dist/components/AppLayout/InsightEnginePanel.d.ts +1 -1
  66. package/dist/components/AppLayout/InsightEnginePanel.d.ts.map +1 -1
  67. package/dist/components/AppLayout/ResizablePanel.d.ts +1 -1
  68. package/dist/components/AppLayout/ResizablePanel.d.ts.map +1 -1
  69. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts +1 -1
  70. package/dist/components/AppLayout/ThreadHistorySidebar.d.ts.map +1 -1
  71. package/dist/components/Autocomplete/Autocomplete.d.ts +10 -1
  72. package/dist/components/Autocomplete/Autocomplete.d.ts.map +1 -1
  73. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +57 -0
  74. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -0
  75. package/dist/components/Breadcrumbs/index.d.ts +3 -0
  76. package/dist/components/Breadcrumbs/index.d.ts.map +1 -0
  77. package/dist/components/Carousel/Carousel.d.ts +26 -1
  78. package/dist/components/Carousel/Carousel.d.ts.map +1 -1
  79. package/dist/components/Carousel/index.d.ts +1 -1
  80. package/dist/components/Carousel/index.d.ts.map +1 -1
  81. package/dist/components/Charts/AreaChart.d.ts +1 -1
  82. package/dist/components/Charts/AreaChart.d.ts.map +1 -1
  83. package/dist/components/Charts/BarChart.d.ts +1 -1
  84. package/dist/components/Charts/BarChart.d.ts.map +1 -1
  85. package/dist/components/Charts/ChartWrapper.d.ts +1 -1
  86. package/dist/components/Charts/ChartWrapper.d.ts.map +1 -1
  87. package/dist/components/Charts/ComposedChart.d.ts +1 -1
  88. package/dist/components/Charts/ComposedChart.d.ts.map +1 -1
  89. package/dist/components/Charts/CustomLegend.d.ts +6 -8
  90. package/dist/components/Charts/CustomLegend.d.ts.map +1 -1
  91. package/dist/components/Charts/CustomTooltip.d.ts +4 -3
  92. package/dist/components/Charts/CustomTooltip.d.ts.map +1 -1
  93. package/dist/components/Charts/LineChart.d.ts +1 -1
  94. package/dist/components/Charts/LineChart.d.ts.map +1 -1
  95. package/dist/components/Charts/PieChart.d.ts +1 -1
  96. package/dist/components/Charts/PieChart.d.ts.map +1 -1
  97. package/dist/components/Charts/RadialChart.d.ts +2 -2
  98. package/dist/components/Charts/RadialChart.d.ts.map +1 -1
  99. package/dist/components/Charts/ScatterChart.d.ts +1 -1
  100. package/dist/components/Charts/ScatterChart.d.ts.map +1 -1
  101. package/dist/components/Charts/Sparkline.d.ts +1 -1
  102. package/dist/components/Charts/Sparkline.d.ts.map +1 -1
  103. package/dist/components/Charts/highchartsUtils.d.ts.map +1 -1
  104. package/dist/components/ChipsInput/ChipsInput.d.ts +1 -1
  105. package/dist/components/ChipsInput/ChipsInput.d.ts.map +1 -1
  106. package/dist/components/ClearableTextField/ClearableTextField.d.ts +7 -1
  107. package/dist/components/ClearableTextField/ClearableTextField.d.ts.map +1 -1
  108. package/dist/components/Combobox/Combobox.d.ts +1 -1
  109. package/dist/components/Combobox/Combobox.d.ts.map +1 -1
  110. package/dist/components/CommandPalette/CommandPalette.d.ts +10 -1
  111. package/dist/components/CommandPalette/CommandPalette.d.ts.map +1 -1
  112. package/dist/components/Cron/Cron.d.ts +1 -1
  113. package/dist/components/Cron/Cron.d.ts.map +1 -1
  114. package/dist/components/DataCard/DataCard.d.ts +1 -1
  115. package/dist/components/DataCard/DataCard.d.ts.map +1 -1
  116. package/dist/components/DiffViewer/DiffViewer.d.ts +1 -1
  117. package/dist/components/DiffViewer/DiffViewer.d.ts.map +1 -1
  118. package/dist/components/DockLayout/DockLayout.d.ts +1 -1
  119. package/dist/components/DockLayout/DockLayout.d.ts.map +1 -1
  120. package/dist/components/DocumentCard/DocumentCard.d.ts +77 -0
  121. package/dist/components/DocumentCard/DocumentCard.d.ts.map +1 -0
  122. package/dist/components/DocumentCard/index.d.ts +3 -0
  123. package/dist/components/DocumentCard/index.d.ts.map +1 -0
  124. package/dist/components/FileUpload/FileUpload.d.ts +1 -1
  125. package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
  126. package/dist/components/FilterBar/FilterBar.d.ts +42 -1
  127. package/dist/components/FilterBar/FilterBar.d.ts.map +1 -1
  128. package/dist/components/Footer.d.ts +17 -2
  129. package/dist/components/Footer.d.ts.map +1 -1
  130. package/dist/components/GoToTop/GoToTop.d.ts +1 -1
  131. package/dist/components/GoToTop/GoToTop.d.ts.map +1 -1
  132. package/dist/components/HtmlToMui/HtmlToMui.d.ts +39 -0
  133. package/dist/components/HtmlToMui/HtmlToMui.d.ts.map +1 -0
  134. package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts +35 -0
  135. package/dist/components/HtmlToMui/StreamingHtmlToMui.d.ts.map +1 -0
  136. package/dist/components/HtmlToMui/index.d.ts +4 -0
  137. package/dist/components/HtmlToMui/index.d.ts.map +1 -0
  138. package/dist/components/IllustratedMessage.d.ts +2 -2
  139. package/dist/components/IllustratedMessage.d.ts.map +1 -1
  140. package/dist/components/LandingPage/LandingPage.d.ts +1 -1
  141. package/dist/components/LandingPage/LandingPage.d.ts.map +1 -1
  142. package/dist/components/MentionsInput/MentionsInput.d.ts +1 -1
  143. package/dist/components/MentionsInput/MentionsInput.d.ts.map +1 -1
  144. package/dist/components/Modal/Modal.d.ts +1 -1
  145. package/dist/components/Modal/Modal.d.ts.map +1 -1
  146. package/dist/components/NestedMenu/NestedMenu.d.ts +6 -0
  147. package/dist/components/NestedMenu/NestedMenu.d.ts.map +1 -1
  148. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +7 -3
  149. package/dist/components/OverflowTooltip/OverflowTooltip.d.ts.map +1 -1
  150. package/dist/components/PageHeader/PageHeader.d.ts +23 -5
  151. package/dist/components/PageHeader/PageHeader.d.ts.map +1 -1
  152. package/dist/components/Popper/Popper.d.ts +1 -1
  153. package/dist/components/Popper/Popper.d.ts.map +1 -1
  154. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts +1 -1
  155. package/dist/components/PredictiveTextInput/PredictiveTextInput.d.ts.map +1 -1
  156. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts +62 -0
  157. package/dist/components/SandboxedIframeRenderer/SandboxedIframeRenderer.d.ts.map +1 -0
  158. package/dist/components/SandboxedIframeRenderer/index.d.ts +3 -0
  159. package/dist/components/SandboxedIframeRenderer/index.d.ts.map +1 -0
  160. package/dist/components/SearchInput/SearchInput.d.ts +1 -1
  161. package/dist/components/SearchInput/SearchInput.d.ts.map +1 -1
  162. package/dist/components/SimpleTable/SimpleTable.d.ts +7 -2
  163. package/dist/components/SimpleTable/SimpleTable.d.ts.map +1 -1
  164. package/dist/components/SplitPane/SplitPane.d.ts +51 -7
  165. package/dist/components/SplitPane/SplitPane.d.ts.map +1 -1
  166. package/dist/components/SplitPane/index.d.ts +1 -1
  167. package/dist/components/SplitPane/index.d.ts.map +1 -1
  168. package/dist/components/StatusIndicator/StatusIndicator.d.ts +1 -1
  169. package/dist/components/StatusIndicator/StatusIndicator.d.ts.map +1 -1
  170. package/dist/components/Timeline/Timeline.d.ts +1 -1
  171. package/dist/components/Timeline/Timeline.d.ts.map +1 -1
  172. package/dist/components/Toast/Toast.d.ts +1 -1
  173. package/dist/components/Toast/Toast.d.ts.map +1 -1
  174. package/dist/components/TopNavHeader.d.ts +14 -2
  175. package/dist/components/TopNavHeader.d.ts.map +1 -1
  176. package/dist/components/TopNavWithSidebar.d.ts +34 -4
  177. package/dist/components/TopNavWithSidebar.d.ts.map +1 -1
  178. package/dist/components/Tour/Tour.d.ts +1 -1
  179. package/dist/components/Tour/Tour.d.ts.map +1 -1
  180. package/dist/components/TransferList/TransferList.d.ts +1 -1
  181. package/dist/components/TransferList/TransferList.d.ts.map +1 -1
  182. package/dist/components/TreeView/TreeView.d.ts +1 -1
  183. package/dist/components/TreeView/TreeView.d.ts.map +1 -1
  184. package/dist/components/index.d.ts +2 -2
  185. package/dist/components/index.d.ts.map +1 -1
  186. package/dist/components/navigation/components.d.ts +5 -5
  187. package/dist/components/navigation/components.d.ts.map +1 -1
  188. package/dist/components/shared/NavBar.styles.d.ts +65 -0
  189. package/dist/components/shared/NavBar.styles.d.ts.map +1 -0
  190. package/dist/components/shared/useResizable.d.ts +82 -0
  191. package/dist/components/shared/useResizable.d.ts.map +1 -0
  192. package/dist/components/shared/warnDeprecated.d.ts +30 -0
  193. package/dist/components/shared/warnDeprecated.d.ts.map +1 -0
  194. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts +1 -1
  195. package/dist/components/templates/Dashboard/DashboardTemplate.d.ts.map +1 -1
  196. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts +1 -1
  197. package/dist/components/templates/ListDetail/ListDetailTemplate.d.ts.map +1 -1
  198. package/dist/components/templates/Settings/SettingsTemplate.d.ts +1 -1
  199. package/dist/components/templates/Settings/SettingsTemplate.d.ts.map +1 -1
  200. package/dist/data-table2.js +18194 -15721
  201. package/dist/data.js +116 -114
  202. package/dist/essentials.js +91 -89
  203. package/dist/form.d.ts.map +1 -1
  204. package/dist/forms.js +358 -45092
  205. package/dist/index.d.ts +44 -11
  206. package/dist/index.d.ts.map +1 -1
  207. package/dist/index.js +30203 -29843
  208. package/dist/theme.d.ts +4 -1
  209. package/dist/theme.d.ts.map +1 -1
  210. package/dist/theme.js +188 -161
  211. package/dist/tokens.d.ts +16 -0
  212. package/dist/tokens.d.ts.map +1 -1
  213. package/dist/tokens.js +1 -1
  214. package/dist/trinity.css +862 -1014
  215. package/package.json +69 -27
  216. package/dist/assets/design-system.css +0 -1
  217. package/dist/components/RichTextEditor/RichTextEditor.d.ts +0 -39
  218. package/dist/components/RichTextEditor/RichTextEditor.d.ts.map +0 -1
  219. package/dist/components/RichTextEditor/index.d.ts +0 -3
  220. package/dist/components/RichTextEditor/index.d.ts.map +0 -1
package/dist/theme.js CHANGED
@@ -1,47 +1,47 @@
1
1
  import { createTheme as M, useTheme as C } from "@mui/material/styles";
2
- import { t, c as o, d as x, e as R, s as m, a as y } from "./app-shell.js";
3
- import { g as Z, j as q, f as J, o as K, m as Q, p as U, n as Y, h as _, k, i as S, l as rr } from "./app-shell.js";
4
- import { useMemo as w } from "react";
2
+ import { t as p, c as i, d as f, e as w, s as m, a as y } from "./app-shell.js";
3
+ import { g as X, j as Z, f as q, o as J, m as K, p as Q, n as Y, h as _, k, i as S, l as rr } from "./app-shell.js";
4
+ import { useMemo as R } from "react";
5
5
  function O(...r) {
6
6
  return `--trinity-${r.join("-").replace(/([A-Z])/g, "-$1").toLowerCase()}`;
7
7
  }
8
- function i(r, a = []) {
9
- const s = [];
10
- for (const [e, c] of Object.entries(r)) {
11
- const u = [...a, e];
12
- if (c != null)
13
- if (typeof c == "object" && !Array.isArray(c))
14
- s.push(...i(c, u));
8
+ function l(r, a = []) {
9
+ const o = [];
10
+ for (const [s, e] of Object.entries(r)) {
11
+ const g = [...a, s];
12
+ if (e != null)
13
+ if (typeof e == "object" && !Array.isArray(e))
14
+ o.push(...l(e, g));
15
15
  else {
16
- const n = typeof c == "number" && !e.includes("opacity") && !e.includes("weight") && !e.includes("Height") ? `${c}px` : String(c);
17
- s.push({ name: O(...u), value: n });
16
+ const u = typeof e == "number" && !s.includes("opacity") && !s.includes("weight") && !s.includes("Height") ? `${e}px` : String(e);
17
+ o.push({ name: O(...g), value: u });
18
18
  }
19
19
  }
20
- return s;
20
+ return o;
21
21
  }
22
- function z(r = t) {
22
+ function z(r = p) {
23
23
  const a = [];
24
- return a.push(...i(r.base.colors, ["color"])), a.push(...i(r.base.spacing, ["spacing"])), a.push(...i(r.base.fontSize, ["font-size"])), a.push(...i(r.base.fontWeight, ["font-weight"])), a.push(...i(r.base.lineHeight, ["line-height"])), a.push(...i(r.base.letterSpacing, ["letter-spacing"])), a.push(...i(r.base.borderRadius, ["radius"])), a.push(...i(r.base.borderWidth, ["border-width"])), a.push(...i(r.base.shadows, ["shadow"])), a.push(...i(r.base.zIndex, ["z-index"])), a.push(...i(r.base.duration, ["duration"])), a.push(...i(r.base.easing, ["easing"])), a.push(...i(r.base.opacity, ["opacity"])), a.push(...i(r.base.breakpoints, ["breakpoint"])), a.push(...i(r.semantic.colors, ["semantic"])), a.push(...i(r.semantic.spacing, ["semantic-spacing"])), a.push(...i(r.semantic.borders, ["semantic-border"])), a.push(...i(r.semantic.shadows, ["semantic-shadow"])), a.push(...i(r.semantic.motion, ["motion"])), a.push(...i(r.component, ["component"])), a.map((s) => ` ${s.name}: ${s.value};`).join(`
24
+ return a.push(...l(r.base.colors, ["color"])), a.push(...l(r.base.spacing, ["spacing"])), a.push(...l(r.base.fontSize, ["font-size"])), a.push(...l(r.base.fontWeight, ["font-weight"])), a.push(...l(r.base.lineHeight, ["line-height"])), a.push(...l(r.base.letterSpacing, ["letter-spacing"])), a.push(...l(r.base.borderRadius, ["radius"])), a.push(...l(r.base.borderWidth, ["border-width"])), a.push(...l(r.base.shadows, ["shadow"])), a.push(...l(r.base.zIndex, ["z-index"])), a.push(...l(r.base.duration, ["duration"])), a.push(...l(r.base.easing, ["easing"])), a.push(...l(r.base.opacity, ["opacity"])), a.push(...l(r.base.breakpoints, ["breakpoint"])), a.push(...l(r.semantic.colors, ["semantic"])), a.push(...l(r.semantic.spacing, ["semantic-spacing"])), a.push(...l(r.semantic.borders, ["semantic-border"])), a.push(...l(r.semantic.shadows, ["semantic-shadow"])), a.push(...l(r.semantic.motion, ["motion"])), a.push(...l(r.component, ["component"])), a.map((o) => ` ${o.name}: ${o.value};`).join(`
25
25
  `);
26
26
  }
27
- function $(r = t) {
27
+ function $(r = p) {
28
28
  const a = [];
29
- return a.push(...i(r.darkMode.colors.text, ["semantic", "text"])), a.push(...i(r.darkMode.colors.background, ["semantic", "background"])), a.push(...i(r.darkMode.colors.border, ["semantic", "border"])), r.darkMode.colors.interactive && a.push(...i(r.darkMode.colors.interactive, ["semantic", "interactive"])), r.darkMode.colors.status && a.push(...i(r.darkMode.colors.status, ["semantic", "status"])), a.map((s) => ` ${s.name}: ${s.value};`).join(`
29
+ return a.push(...l(r.darkMode.colors.text, ["semantic", "text"])), a.push(...l(r.darkMode.colors.background, ["semantic", "background"])), a.push(...l(r.darkMode.colors.border, ["semantic", "border"])), r.darkMode.colors.interactive && a.push(...l(r.darkMode.colors.interactive, ["semantic", "interactive"])), r.darkMode.colors.status && a.push(...l(r.darkMode.colors.status, ["semantic", "status"])), a.map((o) => ` ${o.name}: ${o.value};`).join(`
30
30
  `);
31
31
  }
32
- function D(r = t) {
32
+ function P(r = p) {
33
33
  if (typeof window > "u") return;
34
- const a = z(r), s = document.createElement("style");
35
- s.id = "trinity-css-variables", s.textContent = `:root {
34
+ const a = z(r), o = document.createElement("style");
35
+ o.id = "trinity-css-variables", o.textContent = `:root {
36
36
  ${a}
37
37
  }`;
38
- const e = document.getElementById("trinity-css-variables");
39
- e && e.remove(), document.head.appendChild(s);
38
+ const s = document.getElementById("trinity-css-variables");
39
+ s && s.remove(), document.head.appendChild(o);
40
40
  }
41
- function I(r = t) {
41
+ function D(r = p) {
42
42
  if (typeof window > "u") return;
43
- const a = $(r), s = document.createElement("style");
44
- s.id = "trinity-dark-mode-variables", s.textContent = `
43
+ const a = $(r), o = document.createElement("style");
44
+ o.id = "trinity-dark-mode-variables", o.textContent = `
45
45
  [data-theme="dark"],
46
46
  .dark-mode,
47
47
  :root.dark {
@@ -53,29 +53,29 @@ ${a}
53
53
  ${a}
54
54
  }
55
55
  }`;
56
- const e = document.getElementById("trinity-dark-mode-variables");
57
- e && e.remove(), document.head.appendChild(s);
56
+ const s = document.getElementById("trinity-dark-mode-variables");
57
+ s && s.remove(), document.head.appendChild(o);
58
58
  }
59
59
  function W(r, a) {
60
- function s(n) {
61
- let g = n.replace("#", "");
62
- g.length === 3 && (g = g.split("").map((l) => l + l).join(""));
63
- const p = parseInt(g, 16);
64
- return [p >> 16 & 255, p >> 8 & 255, p & 255];
60
+ function o(u) {
61
+ let n = u.replace("#", "");
62
+ n.length === 3 && (n = n.split("").map((c) => c + c).join(""));
63
+ const t = parseInt(n, 16);
64
+ return [t >> 16 & 255, t >> 8 & 255, t & 255];
65
65
  }
66
- function e([n, g, p]) {
67
- const l = [n, g, p].map((b) => (b /= 255, b <= 0.03928 ? b / 12.92 : Math.pow((b + 0.055) / 1.055, 2.4)));
68
- return 0.2126 * l[0] + 0.7152 * l[1] + 0.0722 * l[2];
66
+ function s([u, n, t]) {
67
+ const c = [u, n, t].map((b) => (b /= 255, b <= 0.03928 ? b / 12.92 : Math.pow((b + 0.055) / 1.055, 2.4)));
68
+ return 0.2126 * c[0] + 0.7152 * c[1] + 0.0722 * c[2];
69
69
  }
70
- const c = e(s(r)), u = e(s(a));
71
- return (Math.max(c, u) + 0.05) / (Math.min(c, u) + 0.05);
70
+ const e = s(o(r)), g = s(o(a));
71
+ return (Math.max(e, g) + 0.05) / (Math.min(e, g) + 0.05);
72
72
  }
73
- function P(r, a, s = 4.5) {
74
- const e = W(r, a);
75
- return e < s && typeof window < "u" && console.warn(`[Trinity] Low contrast ratio ${e.toFixed(2)} for ${r} on ${a}`), e >= s;
73
+ function L(r, a, o = 4.5) {
74
+ const s = W(r, a);
75
+ return s < o && typeof window < "u" && console.warn(`[Trinity] Low contrast ratio ${s.toFixed(2)} for ${r} on ${a}`), s >= o;
76
76
  }
77
- function T(r = t, a = "light") {
78
- const s = a === "dark" ? "rgba(255, 255, 255, 0.12)" : r.base.colors.gray[200], e = a === "dark" ? "rgba(255, 255, 255, 0.2)" : r.base.colors.gray[300];
77
+ function T(r = p, a = "light") {
78
+ const o = a === "dark" ? "rgba(255, 255, 255, 0.12)" : r.base.colors.gray[200], s = a === "dark" ? "rgba(255, 255, 255, 0.2)" : r.base.colors.gray[300];
79
79
  return {
80
80
  MuiCssBaseline: {
81
81
  styleOverrides: {
@@ -234,7 +234,7 @@ function T(r = t, a = "light") {
234
234
  borderRadius: r.base.borderRadius.lg,
235
235
  // 12px — matches component tokens
236
236
  backgroundColor: a === "dark" ? r.base.colors.gray[700] : r.base.colors.gray[0],
237
- border: `1px solid ${s}`,
237
+ border: `1px solid ${o}`,
238
238
  boxShadow: a === "dark" ? "0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3), 0 0 0 1px rgb(255 255 255 / 0.05)" : r.base.shadows.base,
239
239
  transition: "box-shadow 0.2s ease-in-out, border-color 0.2s ease-in-out",
240
240
  "&:hover": {
@@ -252,30 +252,30 @@ function T(r = t, a = "light") {
252
252
  borderRadius: r.base.borderRadius.lg,
253
253
  // 12px — consistent with cards
254
254
  backgroundColor: a === "dark" ? r.base.colors.gray[700] : r.base.colors.gray[0],
255
- border: `1px solid ${s}`,
255
+ border: `1px solid ${o}`,
256
256
  boxShadow: a === "dark" ? "0 1px 2px 0 rgb(0 0 0 / 0.3), 0 0 0 1px rgb(255 255 255 / 0.05)" : r.base.shadows.sm
257
257
  },
258
258
  rounded: {
259
259
  borderRadius: r.base.borderRadius.lg
260
260
  },
261
261
  elevation0: {
262
- border: `1px solid ${s}`,
262
+ border: `1px solid ${o}`,
263
263
  boxShadow: a === "dark" ? "0 1px 2px 0 rgb(0 0 0 / 0.3), 0 0 0 1px rgb(255 255 255 / 0.05)" : r.base.shadows.sm
264
264
  },
265
265
  elevation1: {
266
- border: `1px solid ${s}`,
266
+ border: `1px solid ${o}`,
267
267
  boxShadow: a === "dark" ? "0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.3), 0 0 0 1px rgb(255 255 255 / 0.05)" : r.base.shadows.base
268
268
  },
269
269
  elevation2: {
270
- border: `1px solid ${s}`,
270
+ border: `1px solid ${o}`,
271
271
  boxShadow: a === "dark" ? "0 4px 6px -1px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4), 0 0 0 1px rgb(255 255 255 / 0.05)" : r.base.shadows.md
272
272
  },
273
273
  elevation3: {
274
- border: `1px solid ${s}`,
274
+ border: `1px solid ${o}`,
275
275
  boxShadow: a === "dark" ? "0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5), 0 0 0 1px rgb(255 255 255 / 0.05)" : r.base.shadows.lg
276
276
  },
277
277
  outlined: {
278
- border: `1px solid ${e}`,
278
+ border: `1px solid ${s}`,
279
279
  boxShadow: "none"
280
280
  }
281
281
  }
@@ -321,7 +321,7 @@ function T(r = t, a = "light") {
321
321
  borderRadius: r.base.borderRadius.xl,
322
322
  // 16px — allows nested cards with lg:12px
323
323
  backgroundColor: a === "dark" ? r.base.colors.gray[700] : r.base.colors.gray[0],
324
- border: `1px solid ${s}`,
324
+ border: `1px solid ${o}`,
325
325
  boxShadow: a === "dark" ? "0 25px 50px -12px rgb(0 0 0 / 0.6), 0 0 0 1px rgb(255 255 255 / 0.1)" : r.base.shadows["2xl"]
326
326
  }
327
327
  }
@@ -329,7 +329,7 @@ function T(r = t, a = "light") {
329
329
  MuiDialogTitle: {
330
330
  styleOverrides: {
331
331
  root: {
332
- fontSize: r.base.fontSize.lg,
332
+ fontSize: r.base.fontSize.xl,
333
333
  fontWeight: r.base.fontWeight.semibold,
334
334
  padding: `${r.base.spacing[5]}px ${r.base.spacing[6]}px`,
335
335
  paddingBottom: r.base.spacing[3],
@@ -598,7 +598,7 @@ function T(r = t, a = "light") {
598
598
  transitionDuration: "300ms",
599
599
  "&.Mui-checked": {
600
600
  transform: "translateX(20px)",
601
- color: "#fff",
601
+ color: r.base.colors.gray[0],
602
602
  "& + .MuiSwitch-track": {
603
603
  backgroundColor: a === "dark" ? r.base.colors.coral[400] : r.base.colors.navy[900],
604
604
  opacity: 1,
@@ -607,7 +607,18 @@ function T(r = t, a = "light") {
607
607
  "& .MuiSwitch-thumb": {
608
608
  width: 24,
609
609
  height: 24,
610
- margin: 0
610
+ margin: 0,
611
+ "&::before": {
612
+ content: '""',
613
+ position: "absolute",
614
+ width: "100%",
615
+ height: "100%",
616
+ left: 0,
617
+ top: 0,
618
+ backgroundRepeat: "no-repeat",
619
+ backgroundPosition: "center",
620
+ backgroundImage: `url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 24 24"><path fill="${encodeURIComponent(a === "dark" ? r.base.colors.coral[400] : r.base.colors.navy[900])}" d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>')`
621
+ }
611
622
  },
612
623
  "&.Mui-disabled + .MuiSwitch-track": {
613
624
  opacity: 0.5
@@ -615,7 +626,7 @@ function T(r = t, a = "light") {
615
626
  },
616
627
  "&.Mui-focusVisible .MuiSwitch-thumb": {
617
628
  color: a === "dark" ? r.base.colors.coral[400] : r.base.colors.navy[900],
618
- border: "6px solid #fff"
629
+ border: `6px solid ${r.base.colors.gray[0]}`
619
630
  },
620
631
  "&.Mui-disabled .MuiSwitch-thumb": {
621
632
  color: a === "dark" ? r.base.colors.gray[600] : r.base.colors.gray[300]
@@ -629,6 +640,7 @@ function T(r = t, a = "light") {
629
640
  width: 16,
630
641
  height: 16,
631
642
  margin: 4,
643
+ position: "relative",
632
644
  boxShadow: r.base.shadows.sm,
633
645
  transition: "all 200ms ease-in-out"
634
646
  },
@@ -652,7 +664,18 @@ function T(r = t, a = "light") {
652
664
  "& .MuiSwitch-thumb": {
653
665
  width: 18,
654
666
  height: 18,
655
- margin: 0
667
+ margin: 0,
668
+ "&::before": {
669
+ content: '""',
670
+ position: "absolute",
671
+ width: "100%",
672
+ height: "100%",
673
+ left: 0,
674
+ top: 0,
675
+ backgroundRepeat: "no-repeat",
676
+ backgroundPosition: "center",
677
+ backgroundImage: `url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" height="12" width="12" viewBox="0 0 24 24"><path fill="${encodeURIComponent(a === "dark" ? r.base.colors.coral[400] : r.base.colors.navy[900])}" d="M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>')`
678
+ }
656
679
  }
657
680
  }
658
681
  },
@@ -761,7 +784,7 @@ function T(r = t, a = "light") {
761
784
  MuiTableCell: {
762
785
  styleOverrides: {
763
786
  root: {
764
- borderBottom: `1px solid ${s}`,
787
+ borderBottom: `1px solid ${o}`,
765
788
  padding: `${r.base.spacing[3]}px ${r.base.spacing[4]}px`
766
789
  },
767
790
  head: {
@@ -803,7 +826,7 @@ function T(r = t, a = "light") {
803
826
  paper: {
804
827
  borderRadius: r.base.borderRadius.md,
805
828
  boxShadow: a === "dark" ? "0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5)" : "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
806
- border: `1px solid ${s}`,
829
+ border: `1px solid ${o}`,
807
830
  marginTop: r.base.spacing[1]
808
831
  },
809
832
  list: {
@@ -835,7 +858,7 @@ function T(r = t, a = "light") {
835
858
  paper: {
836
859
  borderRadius: r.base.borderRadius.md,
837
860
  boxShadow: a === "dark" ? "0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5)" : "0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",
838
- border: `1px solid ${s}`
861
+ border: `1px solid ${o}`
839
862
  }
840
863
  }
841
864
  },
@@ -901,7 +924,7 @@ function T(r = t, a = "light") {
901
924
  styleOverrides: {
902
925
  paper: {
903
926
  backgroundColor: a === "dark" ? r.base.colors.gray[800] : r.base.colors.gray[0],
904
- borderRight: `1px solid ${s}`
927
+ borderRight: `1px solid ${o}`
905
928
  }
906
929
  }
907
930
  },
@@ -968,7 +991,7 @@ function T(r = t, a = "light") {
968
991
  backgroundColor: r.base.colors.coral[600]
969
992
  },
970
993
  colorSuccess: {
971
- backgroundColor: "#1DC286"
994
+ backgroundColor: r.semantic.colors.status.success.text
972
995
  }
973
996
  }
974
997
  },
@@ -1031,7 +1054,7 @@ function T(r = t, a = "light") {
1031
1054
  color: a === "dark" ? r.base.colors.coral[400] : r.base.colors.navy[900]
1032
1055
  },
1033
1056
  "&.Mui-completed": {
1034
- color: "#1DC286"
1057
+ color: r.semantic.colors.status.success.text
1035
1058
  }
1036
1059
  }
1037
1060
  }
@@ -1069,6 +1092,7 @@ function T(r = t, a = "light") {
1069
1092
  styleOverrides: {
1070
1093
  root: {
1071
1094
  color: "#FFB400"
1095
+ // @intentional-color: rating star gold — no token equivalent
1072
1096
  },
1073
1097
  iconEmpty: {
1074
1098
  color: a === "dark" ? r.base.colors.gray[600] : r.base.colors.gray[300]
@@ -1164,31 +1188,33 @@ function T(r = t, a = "light") {
1164
1188
  }
1165
1189
  };
1166
1190
  }
1167
- function E(r) {
1191
+ function F(r) {
1168
1192
  const {
1169
1193
  mode: a,
1194
+ direction: o = "ltr",
1170
1195
  name: s = "custom",
1171
1196
  tokens: e,
1172
- palette: c,
1197
+ palette: g,
1173
1198
  components: u,
1174
1199
  typography: n,
1175
- shape: g,
1176
- config: p = {}
1177
- } = r, l = h(a, e);
1200
+ shape: t,
1201
+ config: c = {}
1202
+ } = r, b = v(a, e, o);
1178
1203
  return {
1179
- theme: M(l, {
1180
- palette: c,
1204
+ theme: M(b, {
1205
+ direction: o,
1206
+ palette: g,
1181
1207
  components: u,
1182
1208
  typography: n,
1183
- shape: g
1209
+ shape: t
1184
1210
  }),
1185
1211
  name: s,
1186
1212
  mode: a,
1187
- config: p
1213
+ config: c
1188
1214
  };
1189
1215
  }
1190
- function h(r, a) {
1191
- const s = { ...t, ...a }, e = r === "dark" ? {
1216
+ function v(r, a, o = "ltr") {
1217
+ const s = { ...p, ...a }, e = s.darkMode.colors.status ?? s.semantic.colors.status, g = r === "dark" ? {
1192
1218
  mode: "dark",
1193
1219
  primary: { main: s.base.colors.coral[600], ...s.base.colors.coral },
1194
1220
  secondary: { main: s.base.colors.purple[500], ...s.base.colors.purple },
@@ -1219,15 +1245,15 @@ function h(r, a) {
1219
1245
  focus: s.base.colors.purple[400]
1220
1246
  },
1221
1247
  status: {
1222
- success: { text: "#4ADE80", background: "rgba(74, 222, 128, 0.15)", border: "rgba(74, 222, 128, 0.3)" },
1223
- warning: { text: "#FBBF24", background: "rgba(251, 191, 36, 0.15)", border: "rgba(251, 191, 36, 0.3)" },
1224
- error: { text: "#F87171", background: "rgba(248, 113, 113, 0.15)", border: "rgba(248, 113, 113, 0.3)" },
1225
- info: { text: "#60A5FA", background: "rgba(96, 165, 250, 0.15)", border: "rgba(96, 165, 250, 0.3)" }
1248
+ success: { text: e.success.text, background: e.success.background, border: e.success.border },
1249
+ warning: { text: e.warning.text, background: e.warning.background, border: e.warning.border },
1250
+ error: { text: e.error.text, background: e.error.background, border: e.error.border },
1251
+ info: { text: e.info.text, background: e.info.background, border: e.info.border }
1226
1252
  },
1227
1253
  border: {
1228
- default: "rgba(255, 255, 255, 0.12)",
1229
- subtle: "rgba(255, 255, 255, 0.08)",
1230
- strong: "rgba(255, 255, 255, 0.24)"
1254
+ default: s.darkMode.colors.border.default,
1255
+ subtle: s.darkMode.colors.border.subtle,
1256
+ strong: s.darkMode.colors.border.strong
1231
1257
  }
1232
1258
  }
1233
1259
  } : {
@@ -1261,10 +1287,10 @@ function h(r, a) {
1261
1287
  focus: s.base.colors.purple[700]
1262
1288
  },
1263
1289
  status: {
1264
- success: { text: "#16A34A", background: "#F0FDF4", border: "#BBF7D0" },
1265
- warning: { text: "#D97706", background: "#FFFBEB", border: "#FDE68A" },
1266
- error: { text: "#DC2626", background: "#FEF2F2", border: "#FECACA" },
1267
- info: { text: s.base.colors.azure[500], background: s.base.colors.azure[50], border: s.base.colors.azure[200] }
1290
+ success: { text: s.semantic.colors.status.success.text, background: s.semantic.colors.status.success.background, border: s.semantic.colors.status.success.border },
1291
+ warning: { text: s.semantic.colors.status.warning.text, background: s.semantic.colors.status.warning.background, border: s.semantic.colors.status.warning.border },
1292
+ error: { text: s.semantic.colors.status.error.text, background: s.semantic.colors.status.error.background, border: s.semantic.colors.status.error.border },
1293
+ info: { text: s.semantic.colors.status.info.text, background: s.semantic.colors.status.info.background, border: s.semantic.colors.status.info.border }
1268
1294
  },
1269
1295
  border: {
1270
1296
  default: s.base.colors.gray[200],
@@ -1272,7 +1298,7 @@ function h(r, a) {
1272
1298
  strong: s.base.colors.gray[400]
1273
1299
  }
1274
1300
  }
1275
- }, c = {
1301
+ }, u = {
1276
1302
  fontFamily: '"Montserrat", sans-serif',
1277
1303
  // Button text style
1278
1304
  button: {
@@ -1282,85 +1308,86 @@ function h(r, a) {
1282
1308
  // Hierarchy-based typography variants
1283
1309
  // Display variants (Level 1 - Hero/Marketing)
1284
1310
  h1: {
1285
- fontSize: o.heading.scale.h1.size,
1286
- fontWeight: o.heading.scale.h1.weight,
1287
- lineHeight: o.heading.scale.h1.lineHeight,
1311
+ fontSize: i.heading.scale.h1.size,
1312
+ fontWeight: i.heading.scale.h1.weight,
1313
+ lineHeight: i.heading.scale.h1.lineHeight,
1288
1314
  color: r === "dark" ? s.darkMode.colors.text.primary : s.semantic.colors.text.primary
1289
1315
  },
1290
1316
  h2: {
1291
- fontSize: o.heading.scale.h2.size,
1292
- fontWeight: o.heading.scale.h2.weight,
1293
- lineHeight: o.heading.scale.h2.lineHeight,
1317
+ fontSize: i.heading.scale.h2.size,
1318
+ fontWeight: i.heading.scale.h2.weight,
1319
+ lineHeight: i.heading.scale.h2.lineHeight,
1294
1320
  color: r === "dark" ? s.darkMode.colors.text.primary : s.semantic.colors.text.primary
1295
1321
  },
1296
1322
  h3: {
1297
- fontSize: o.heading.scale.h3.size,
1298
- fontWeight: o.heading.scale.h3.weight,
1299
- lineHeight: o.heading.scale.h3.lineHeight,
1323
+ fontSize: i.heading.scale.h3.size,
1324
+ fontWeight: i.heading.scale.h3.weight,
1325
+ lineHeight: i.heading.scale.h3.lineHeight,
1300
1326
  color: r === "dark" ? s.darkMode.colors.text.primary : s.semantic.colors.text.primary
1301
1327
  },
1302
1328
  h4: {
1303
- fontSize: o.heading.scale.h4.size,
1304
- fontWeight: o.heading.scale.h4.weight,
1305
- lineHeight: o.heading.scale.h4.lineHeight,
1329
+ fontSize: i.heading.scale.h4.size,
1330
+ fontWeight: i.heading.scale.h4.weight,
1331
+ lineHeight: i.heading.scale.h4.lineHeight,
1306
1332
  color: r === "dark" ? s.darkMode.colors.text.primary : s.semantic.colors.text.secondary
1307
1333
  },
1308
1334
  h5: {
1309
- fontSize: o.heading.scale.h5.size,
1310
- fontWeight: o.heading.scale.h5.weight,
1311
- lineHeight: o.heading.scale.h5.lineHeight,
1335
+ fontSize: i.heading.scale.h5.size,
1336
+ fontWeight: i.heading.scale.h5.weight,
1337
+ lineHeight: i.heading.scale.h5.lineHeight,
1312
1338
  color: r === "dark" ? s.darkMode.colors.text.secondary : s.semantic.colors.text.secondary
1313
1339
  },
1314
1340
  h6: {
1315
- fontSize: o.heading.scale.h6.size,
1316
- fontWeight: o.heading.scale.h6.weight,
1317
- lineHeight: o.heading.scale.h6.lineHeight,
1341
+ fontSize: i.heading.scale.h6.size,
1342
+ fontWeight: i.heading.scale.h6.weight,
1343
+ lineHeight: i.heading.scale.h6.lineHeight,
1318
1344
  color: r === "dark" ? s.darkMode.colors.text.secondary : s.semantic.colors.text.secondary
1319
1345
  },
1320
1346
  // Body variants (Level 3 - Content)
1321
1347
  body1: {
1322
- fontSize: o.body.scale.medium.size,
1323
- fontWeight: o.body.scale.medium.weight,
1324
- lineHeight: o.body.scale.medium.lineHeight,
1348
+ fontSize: i.body.scale.medium.size,
1349
+ fontWeight: i.body.scale.medium.weight,
1350
+ lineHeight: i.body.scale.medium.lineHeight,
1325
1351
  color: r === "dark" ? s.darkMode.colors.text.primary : s.semantic.colors.text.primary
1326
1352
  },
1327
1353
  body2: {
1328
- fontSize: o.body.scale.small.size,
1329
- fontWeight: o.body.scale.small.weight,
1330
- lineHeight: o.body.scale.small.lineHeight,
1354
+ fontSize: i.body.scale.small.size,
1355
+ fontWeight: i.body.scale.small.weight,
1356
+ lineHeight: i.body.scale.small.lineHeight,
1331
1357
  color: r === "dark" ? s.darkMode.colors.text.secondary : s.semantic.colors.text.secondary
1332
1358
  },
1333
1359
  // Supporting text variants
1334
1360
  subtitle1: {
1335
- fontSize: o.label.scale.large.size,
1336
- fontWeight: o.label.scale.large.weight,
1337
- lineHeight: o.label.scale.large.lineHeight,
1361
+ fontSize: i.label.scale.large.size,
1362
+ fontWeight: i.label.scale.large.weight,
1363
+ lineHeight: i.label.scale.large.lineHeight,
1338
1364
  color: r === "dark" ? s.darkMode.colors.text.primary : s.semantic.colors.text.primary
1339
1365
  },
1340
1366
  subtitle2: {
1341
- fontSize: o.label.scale.medium.size,
1342
- fontWeight: o.label.scale.medium.weight,
1343
- lineHeight: o.label.scale.medium.lineHeight,
1367
+ fontSize: i.label.scale.medium.size,
1368
+ fontWeight: i.label.scale.medium.weight,
1369
+ lineHeight: i.label.scale.medium.lineHeight,
1344
1370
  color: r === "dark" ? s.darkMode.colors.text.secondary : s.semantic.colors.text.secondary
1345
1371
  },
1346
1372
  caption: {
1347
- fontSize: o.caption.scale.default.size,
1348
- fontWeight: o.caption.scale.default.weight,
1349
- lineHeight: o.caption.scale.default.lineHeight,
1373
+ fontSize: i.caption.scale.default.size,
1374
+ fontWeight: i.caption.scale.default.weight,
1375
+ lineHeight: i.caption.scale.default.lineHeight,
1350
1376
  color: r === "dark" ? s.darkMode.colors.text.tertiary : s.semantic.colors.text.tertiary
1351
1377
  },
1352
1378
  overline: {
1353
- fontSize: o.overline.scale.default.size,
1354
- fontWeight: o.overline.scale.default.weight,
1355
- lineHeight: o.overline.scale.default.lineHeight,
1356
- letterSpacing: o.overline.scale.default.tracking,
1379
+ fontSize: i.overline.scale.default.size,
1380
+ fontWeight: i.overline.scale.default.weight,
1381
+ lineHeight: i.overline.scale.default.lineHeight,
1382
+ letterSpacing: i.overline.scale.default.tracking,
1357
1383
  textTransform: "uppercase",
1358
1384
  color: r === "dark" ? s.darkMode.colors.text.tertiary : s.semantic.colors.text.tertiary
1359
1385
  }
1360
1386
  };
1361
1387
  return M({
1362
- palette: e,
1363
- typography: c,
1388
+ direction: o,
1389
+ palette: g,
1390
+ typography: u,
1364
1391
  shape: {
1365
1392
  borderRadius: s.base.borderRadius.md
1366
1393
  // 8px base - components override as needed
@@ -1395,7 +1422,7 @@ const d = {
1395
1422
  darkBg: "#18181B",
1396
1423
  darkPaper: "#27272A"
1397
1424
  }
1398
- }, L = {
1425
+ }, E = {
1399
1426
  // White text on colored backgrounds
1400
1427
  whiteOnNavy: { text: d.neutral.white, bg: d.primary.main },
1401
1428
  whiteOnPurple: { text: d.neutral.white, bg: d.primary.light },
@@ -1408,61 +1435,61 @@ const d = {
1408
1435
  // Accent colors on navy background
1409
1436
  coralOnNavy: { text: d.secondary.main, bg: d.primary.main },
1410
1437
  azureOnNavy: { text: d.secondary.light, bg: d.primary.main }
1411
- }, V = h("light"), j = h("dark");
1438
+ }, V = v("light"), j = v("dark");
1412
1439
  function N() {
1413
- const a = C().palette.mode, s = a === "dark";
1414
- return w(() => ({
1415
- tokens: t,
1440
+ const a = C().palette.mode, o = a === "dark";
1441
+ return R(() => ({
1442
+ tokens: p,
1416
1443
  base: y,
1417
1444
  semantic: m,
1418
- component: R,
1419
- darkMode: x,
1445
+ component: w,
1446
+ darkMode: f,
1420
1447
  mode: a,
1421
- isDarkMode: s,
1422
- getColor: (l, b) => s && b ? b : l,
1423
- getSemanticColor: (l, b) => {
1424
- const v = m.colors[l]?.[b];
1425
- if (s) {
1426
- const f = x.colors[l]?.[b];
1427
- if (f) return f;
1428
- }
1429
- return typeof v == "string" ? v : "";
1430
- },
1431
- spacing: (l) => y.spacing[l],
1432
- spacingCss: (l) => `${y.spacing[l]}px`,
1433
- radius: (l) => y.borderRadius[l],
1434
- shadow: (l) => y.shadows[l]
1435
- }), [s, a]);
1448
+ isDarkMode: o,
1449
+ getColor: (c, b) => o && b ? b : c,
1450
+ getSemanticColor: (c, b) => {
1451
+ const h = m.colors[c]?.[b];
1452
+ if (o) {
1453
+ const x = f.colors[c]?.[b];
1454
+ if (x) return x;
1455
+ }
1456
+ return typeof h == "string" ? h : "";
1457
+ },
1458
+ spacing: (c) => y.spacing[c],
1459
+ spacingCss: (c) => `${y.spacing[c]}px`,
1460
+ radius: (c) => y.borderRadius[c],
1461
+ shadow: (c) => y.shadows[c]
1462
+ }), [o, a]);
1436
1463
  }
1437
1464
  export {
1438
- L as accessibleCombinations,
1439
- Z as attentionHierarchy,
1465
+ E as accessibleCombinations,
1466
+ X as attentionHierarchy,
1440
1467
  y as baseTokens,
1441
1468
  d as brandColors,
1442
- R as componentTokens,
1443
- q as contrastHierarchy,
1444
- h as createTrinityTheme,
1445
- E as createTrinityThemePreset,
1446
- x as darkModeTokens,
1469
+ w as componentTokens,
1470
+ Z as contrastHierarchy,
1471
+ v as createTrinityTheme,
1472
+ F as createTrinityThemePreset,
1473
+ f as darkModeTokens,
1447
1474
  j as darkTheme,
1448
- J as elevationHierarchy,
1475
+ q as elevationHierarchy,
1449
1476
  z as generateCssVariables,
1450
1477
  $ as generateDarkModeCssVariables,
1451
- K as getAttentionColor,
1478
+ J as getAttentionColor,
1452
1479
  W as getContrastRatio,
1453
- Q as getElevation,
1454
- U as getHierarchySpacing,
1480
+ K as getElevation,
1481
+ Q as getHierarchySpacing,
1455
1482
  Y as getTypography,
1456
1483
  _ as hierarchy,
1457
- I as injectDarkModeCssVariables,
1458
- D as injectTrinityCssVariables,
1484
+ D as injectDarkModeCssVariables,
1485
+ P as injectTrinityCssVariables,
1459
1486
  k as interactiveHierarchy,
1460
1487
  V as lightTheme,
1461
1488
  S as scaleHierarchy,
1462
1489
  m as semanticTokens,
1463
1490
  rr as spacingHierarchy,
1464
- t as tokens,
1465
- o as typographicHierarchy,
1491
+ p as tokens,
1492
+ i as typographicHierarchy,
1466
1493
  N as useTrinityTokens,
1467
- P as validateAccessibility
1494
+ L as validateAccessibility
1468
1495
  };