@ternent/core 0.0.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 (313) hide show
  1. package/.changeset/README.md +8 -0
  2. package/.changeset/config.json +17 -0
  3. package/.github/workflows/deploy-armour.yml +42 -0
  4. package/.github/workflows/deploy-identity.yml +42 -0
  5. package/.github/workflows/deploy-seal.yml +42 -0
  6. package/.github/workflows/deploy-ui.yml +42 -0
  7. package/.github/workflows/deploy-utils.yml +42 -0
  8. package/.github/workflows/release-create.yml +59 -0
  9. package/.github/workflows/release-publish.yml +54 -0
  10. package/.nvmrc +1 -0
  11. package/.ops/publish.mjs +31 -0
  12. package/package.json +16 -0
  13. package/packages/README.md +0 -0
  14. package/packages/armour/CHANGELOG.md +66 -0
  15. package/packages/armour/CLAUDE.md +8 -0
  16. package/packages/armour/README.md +103 -0
  17. package/packages/armour/SPEC.md +92 -0
  18. package/packages/armour/package.json +45 -0
  19. package/packages/armour/src/constants.ts +5 -0
  20. package/packages/armour/src/deps.d.ts +56 -0
  21. package/packages/armour/src/errors.ts +172 -0
  22. package/packages/armour/src/files.ts +73 -0
  23. package/packages/armour/src/identity.ts +72 -0
  24. package/packages/armour/src/index.ts +56 -0
  25. package/packages/armour/src/init.ts +10 -0
  26. package/packages/armour/src/passphrase.ts +33 -0
  27. package/packages/armour/src/recipients.ts +73 -0
  28. package/packages/armour/src/text.ts +68 -0
  29. package/packages/armour/src/types.ts +93 -0
  30. package/packages/armour/test/armour.test.ts +270 -0
  31. package/packages/armour/tsconfig.build.json +12 -0
  32. package/packages/armour/tsconfig.json +12 -0
  33. package/packages/armour/vite.config.ts +29 -0
  34. package/packages/concord/CHANGELOG.md +83 -0
  35. package/packages/concord/CLAUDE.md +9 -0
  36. package/packages/concord/README.md +146 -0
  37. package/packages/concord/SPEC.md +287 -0
  38. package/packages/concord/package.json +51 -0
  39. package/packages/concord/src/app.ts +717 -0
  40. package/packages/concord/src/errors.ts +9 -0
  41. package/packages/concord/src/index.ts +20 -0
  42. package/packages/concord/src/types.ts +127 -0
  43. package/packages/concord/test/concord.test.ts +978 -0
  44. package/packages/concord/tsconfig.json +12 -0
  45. package/packages/concord/vite.browser.config.ts +27 -0
  46. package/packages/concord/vite.config.ts +35 -0
  47. package/packages/concord/vite.config.ts.timestamp-1774262297922-ffd76e35ea668.mjs +83 -0
  48. package/packages/identity/CHANGELOG.md +47 -0
  49. package/packages/identity/README.md +236 -0
  50. package/packages/identity/package.json +41 -0
  51. package/packages/identity/src/index.ts +538 -0
  52. package/packages/identity/test/identity.test.ts +172 -0
  53. package/packages/identity/tsconfig.build.json +12 -0
  54. package/packages/identity/vite.config.ts +17 -0
  55. package/packages/ledger/CHANGELOG.md +69 -0
  56. package/packages/ledger/CLAUDE.md +9 -0
  57. package/packages/ledger/SPEC.md +304 -0
  58. package/packages/ledger/package.json +48 -0
  59. package/packages/ledger/src/index.ts +2 -0
  60. package/packages/ledger/src/ledger.ts +1286 -0
  61. package/packages/ledger/src/seal-cli.d.ts +25 -0
  62. package/packages/ledger/src/types.ts +294 -0
  63. package/packages/ledger/test/ledger.test.ts +838 -0
  64. package/packages/ledger/tsconfig.json +12 -0
  65. package/packages/ledger/vite.browser.config.ts +27 -0
  66. package/packages/ledger/vite.config.ts +39 -0
  67. package/packages/seal/CHANGELOG.md +137 -0
  68. package/packages/seal/CLAUDE.md +8 -0
  69. package/packages/seal/README.md +258 -0
  70. package/packages/seal/bin/seal +6 -0
  71. package/packages/seal/package.json +59 -0
  72. package/packages/seal/src/artifact.ts +380 -0
  73. package/packages/seal/src/cli.ts +372 -0
  74. package/packages/seal/src/commands/identity.ts +52 -0
  75. package/packages/seal/src/commands/manifest.ts +71 -0
  76. package/packages/seal/src/commands/publicKey.ts +7 -0
  77. package/packages/seal/src/commands/sign.ts +56 -0
  78. package/packages/seal/src/commands/verify.ts +54 -0
  79. package/packages/seal/src/crypto.ts +85 -0
  80. package/packages/seal/src/errors.ts +88 -0
  81. package/packages/seal/src/index.ts +5 -0
  82. package/packages/seal/src/manifest.ts +114 -0
  83. package/packages/seal/src/node.ts +18 -0
  84. package/packages/seal/src/proof.ts +344 -0
  85. package/packages/seal/test/artifact.test.ts +86 -0
  86. package/packages/seal/test/cli.test.ts +208 -0
  87. package/packages/seal/test/crypto.test.ts +21 -0
  88. package/packages/seal/test/manifest.test.ts +32 -0
  89. package/packages/seal/test/proof.test.ts +60 -0
  90. package/packages/seal/tsconfig.json +12 -0
  91. package/packages/seal/vite.config.ts +54 -0
  92. package/packages/ui/CHANGELOG.md +393 -0
  93. package/packages/ui/README.md +57 -0
  94. package/packages/ui/jsconfig.json +19 -0
  95. package/packages/ui/package.json +64 -0
  96. package/packages/ui/scripts/check-tokens.js +56 -0
  97. package/packages/ui/scripts/generate-theme-css.mjs +85 -0
  98. package/packages/ui/src/design-system/base.css +8 -0
  99. package/packages/ui/src/design-system/docs/ACCESSIBILITY_RULES.md +186 -0
  100. package/packages/ui/src/design-system/docs/AI_SYSTEM.md +281 -0
  101. package/packages/ui/src/design-system/docs/PATTERN_RULES.md +83 -0
  102. package/packages/ui/src/design-system/docs/PRIMITIVE_RULES.md +258 -0
  103. package/packages/ui/src/design-system/docs/TOKEN_RULES.md +235 -0
  104. package/packages/ui/src/design-system/docs/VISUAL_DIRECTION.md +68 -0
  105. package/packages/ui/src/design-system/foundation.js +420 -0
  106. package/packages/ui/src/design-system/tokens.css +140 -0
  107. package/packages/ui/src/design-system/tokens.js +327 -0
  108. package/packages/ui/src/design-system/utils.js +246 -0
  109. package/packages/ui/src/main.js +4 -0
  110. package/packages/ui/src/patterns/FeatureCard/FeatureCard.spec.md +24 -0
  111. package/packages/ui/src/patterns/FeatureCard/FeatureCard.types.ts +8 -0
  112. package/packages/ui/src/patterns/FeatureCard/FeatureCard.vue +175 -0
  113. package/packages/ui/src/patterns/FormField/FormField.spec.md +65 -0
  114. package/packages/ui/src/patterns/FormField/FormField.types.ts +11 -0
  115. package/packages/ui/src/patterns/FormField/FormField.vue +87 -0
  116. package/packages/ui/src/patterns/IdentityGlyph/IdentityGlyph.vue +61 -0
  117. package/packages/ui/src/patterns/IdentityGlyph/IdentityHandle.vue +58 -0
  118. package/packages/ui/src/patterns/IdentityGlyph/identityGlyph.types.ts +36 -0
  119. package/packages/ui/src/patterns/IdentityGlyph/identityGlyph.utils.ts +585 -0
  120. package/packages/ui/src/patterns/IdentityGlyph/index.ts +5 -0
  121. package/packages/ui/src/patterns/KeyValueList/KeyValueList.spec.md +28 -0
  122. package/packages/ui/src/patterns/KeyValueList/KeyValueList.types.ts +16 -0
  123. package/packages/ui/src/patterns/KeyValueList/KeyValueList.vue +50 -0
  124. package/packages/ui/src/patterns/LandingPage/LandingIcon.vue +90 -0
  125. package/packages/ui/src/patterns/LandingPage/LandingPage.spec.md +24 -0
  126. package/packages/ui/src/patterns/LandingPage/LandingPage.types.ts +212 -0
  127. package/packages/ui/src/patterns/LandingPage/LandingPage.vue +599 -0
  128. package/packages/ui/src/patterns/ListWorkspaceLayout/ListWorkspaceLayout.test.ts +33 -0
  129. package/packages/ui/src/patterns/ListWorkspaceLayout/ListWorkspaceLayout.vue +44 -0
  130. package/packages/ui/src/patterns/Logo/Logo.spec.md +22 -0
  131. package/packages/ui/src/patterns/Logo/Logo.vue +160 -0
  132. package/packages/ui/src/patterns/PageSurface/PageSurface.spec.md +15 -0
  133. package/packages/ui/src/patterns/PageSurface/PageSurface.vue +85 -0
  134. package/packages/ui/src/patterns/PanelChrome/PanelChrome.spec.md +39 -0
  135. package/packages/ui/src/patterns/PanelChrome/PanelChrome.types.ts +1 -0
  136. package/packages/ui/src/patterns/PanelChrome/PanelChrome.vue +187 -0
  137. package/packages/ui/src/patterns/PreviewPanel/PreviewPanel.spec.md +31 -0
  138. package/packages/ui/src/patterns/PreviewPanel/PreviewPanel.types.ts +23 -0
  139. package/packages/ui/src/patterns/PreviewPanel/PreviewPanel.vue +354 -0
  140. package/packages/ui/src/patterns/RecordList/RecordList.spec.md +35 -0
  141. package/packages/ui/src/patterns/RecordList/RecordList.test.ts +42 -0
  142. package/packages/ui/src/patterns/RecordList/RecordList.types.ts +9 -0
  143. package/packages/ui/src/patterns/RecordList/RecordList.utils.ts +5 -0
  144. package/packages/ui/src/patterns/RecordList/RecordList.vue +134 -0
  145. package/packages/ui/src/patterns/SectionClarifier/SectionClarifier.vue +85 -0
  146. package/packages/ui/src/patterns/SectionIntro/SectionIntro.spec.md +25 -0
  147. package/packages/ui/src/patterns/SectionIntro/SectionIntro.types.ts +7 -0
  148. package/packages/ui/src/patterns/SectionIntro/SectionIntro.vue +141 -0
  149. package/packages/ui/src/patterns/SidebarNav/SidebarNav.spec.md +34 -0
  150. package/packages/ui/src/patterns/SidebarNav/SidebarNav.types.ts +17 -0
  151. package/packages/ui/src/patterns/SidebarNav/SidebarNav.vue +110 -0
  152. package/packages/ui/src/patterns/SplitView/SplitView.spec.md +28 -0
  153. package/packages/ui/src/patterns/SplitView/SplitView.test.ts +22 -0
  154. package/packages/ui/src/patterns/SplitView/SplitView.types.ts +3 -0
  155. package/packages/ui/src/patterns/SplitView/SplitView.utils.ts +13 -0
  156. package/packages/ui/src/patterns/SplitView/SplitView.vue +39 -0
  157. package/packages/ui/src/patterns/StepList/StepList.spec.md +15 -0
  158. package/packages/ui/src/patterns/StepList/StepList.types.ts +4 -0
  159. package/packages/ui/src/patterns/StepList/StepList.vue +91 -0
  160. package/packages/ui/src/patterns/Verification/VerificationBadge.vue +97 -0
  161. package/packages/ui/src/patterns/Verification/VerificationComponents.test.ts +153 -0
  162. package/packages/ui/src/patterns/Verification/VerificationDetailsPanel.vue +270 -0
  163. package/packages/ui/src/patterns/Verification/VerificationSummary.vue +171 -0
  164. package/packages/ui/src/patterns/Verification/index.ts +6 -0
  165. package/packages/ui/src/patterns/Verification/verification.types.ts +8 -0
  166. package/packages/ui/src/patterns/Verification/verification.utils.test.ts +37 -0
  167. package/packages/ui/src/patterns/Verification/verification.utils.ts +75 -0
  168. package/packages/ui/src/patterns/index.ts +25 -0
  169. package/packages/ui/src/primitives/Accordian/Accordian.vue +11 -0
  170. package/packages/ui/src/primitives/Accordian/AccordianItem.vue +14 -0
  171. package/packages/ui/src/primitives/Accordion/Accordion.props.ts +21 -0
  172. package/packages/ui/src/primitives/Accordion/Accordion.spec.md +50 -0
  173. package/packages/ui/src/primitives/Accordion/Accordion.types.ts +4 -0
  174. package/packages/ui/src/primitives/Accordion/Accordion.variants.ts +12 -0
  175. package/packages/ui/src/primitives/Accordion/Accordion.vue +71 -0
  176. package/packages/ui/src/primitives/Accordion/AccordionItem.props.ts +14 -0
  177. package/packages/ui/src/primitives/Accordion/AccordionItem.vue +40 -0
  178. package/packages/ui/src/primitives/Badge/Badge.props.ts +17 -0
  179. package/packages/ui/src/primitives/Badge/Badge.spec.md +17 -0
  180. package/packages/ui/src/primitives/Badge/Badge.types.ts +15 -0
  181. package/packages/ui/src/primitives/Badge/Badge.variants.ts +48 -0
  182. package/packages/ui/src/primitives/Badge/Badge.vue +31 -0
  183. package/packages/ui/src/primitives/Button/Button.props.ts +29 -0
  184. package/packages/ui/src/primitives/Button/Button.spec.md +139 -0
  185. package/packages/ui/src/primitives/Button/Button.types.ts +19 -0
  186. package/packages/ui/src/primitives/Button/Button.variants.ts +72 -0
  187. package/packages/ui/src/primitives/Button/Button.vue +90 -0
  188. package/packages/ui/src/primitives/Card/Card.props.ts +17 -0
  189. package/packages/ui/src/primitives/Card/Card.spec.md +29 -0
  190. package/packages/ui/src/primitives/Card/Card.types.ts +12 -0
  191. package/packages/ui/src/primitives/Card/Card.variants.ts +27 -0
  192. package/packages/ui/src/primitives/Card/Card.vue +37 -0
  193. package/packages/ui/src/primitives/Checkbox/Checkbox.props.ts +21 -0
  194. package/packages/ui/src/primitives/Checkbox/Checkbox.spec.md +51 -0
  195. package/packages/ui/src/primitives/Checkbox/Checkbox.types.ts +4 -0
  196. package/packages/ui/src/primitives/Checkbox/Checkbox.variants.ts +34 -0
  197. package/packages/ui/src/primitives/Checkbox/Checkbox.vue +92 -0
  198. package/packages/ui/src/primitives/Dialog/Dialog.props.ts +29 -0
  199. package/packages/ui/src/primitives/Dialog/Dialog.spec.md +52 -0
  200. package/packages/ui/src/primitives/Dialog/Dialog.types.ts +3 -0
  201. package/packages/ui/src/primitives/Dialog/Dialog.variants.ts +27 -0
  202. package/packages/ui/src/primitives/Dialog/Dialog.vue +78 -0
  203. package/packages/ui/src/primitives/Drawer/Drawer.props.ts +33 -0
  204. package/packages/ui/src/primitives/Drawer/Drawer.spec.md +50 -0
  205. package/packages/ui/src/primitives/Drawer/Drawer.types.ts +5 -0
  206. package/packages/ui/src/primitives/Drawer/Drawer.variants.ts +35 -0
  207. package/packages/ui/src/primitives/Drawer/Drawer.vue +88 -0
  208. package/packages/ui/src/primitives/FieldMessage/FieldMessage.props.ts +17 -0
  209. package/packages/ui/src/primitives/FieldMessage/FieldMessage.spec.md +35 -0
  210. package/packages/ui/src/primitives/FieldMessage/FieldMessage.types.ts +5 -0
  211. package/packages/ui/src/primitives/FieldMessage/FieldMessage.variants.ts +14 -0
  212. package/packages/ui/src/primitives/FieldMessage/FieldMessage.vue +40 -0
  213. package/packages/ui/src/primitives/FileInput/FileInput.props.ts +41 -0
  214. package/packages/ui/src/primitives/FileInput/FileInput.types.ts +6 -0
  215. package/packages/ui/src/primitives/FileInput/FileInput.variants.ts +46 -0
  216. package/packages/ui/src/primitives/FileInput/FileInput.vue +163 -0
  217. package/packages/ui/src/primitives/Input/Input.props.ts +29 -0
  218. package/packages/ui/src/primitives/Input/Input.spec.md +79 -0
  219. package/packages/ui/src/primitives/Input/Input.types.ts +13 -0
  220. package/packages/ui/src/primitives/Input/Input.variants.ts +54 -0
  221. package/packages/ui/src/primitives/Input/Input.vue +99 -0
  222. package/packages/ui/src/primitives/Label/Label.props.ts +25 -0
  223. package/packages/ui/src/primitives/Label/Label.spec.md +31 -0
  224. package/packages/ui/src/primitives/Label/Label.types.ts +3 -0
  225. package/packages/ui/src/primitives/Label/Label.variants.ts +17 -0
  226. package/packages/ui/src/primitives/Label/Label.vue +38 -0
  227. package/packages/ui/src/primitives/Menu/Menu.props.ts +17 -0
  228. package/packages/ui/src/primitives/Menu/Menu.spec.md +38 -0
  229. package/packages/ui/src/primitives/Menu/Menu.types.ts +10 -0
  230. package/packages/ui/src/primitives/Menu/Menu.variants.ts +10 -0
  231. package/packages/ui/src/primitives/Menu/Menu.vue +57 -0
  232. package/packages/ui/src/primitives/Popover/Popover.props.ts +25 -0
  233. package/packages/ui/src/primitives/Popover/Popover.spec.md +49 -0
  234. package/packages/ui/src/primitives/Popover/Popover.types.ts +3 -0
  235. package/packages/ui/src/primitives/Popover/Popover.variants.ts +18 -0
  236. package/packages/ui/src/primitives/Popover/Popover.vue +74 -0
  237. package/packages/ui/src/primitives/RadioGroup/RadioGroup.props.ts +29 -0
  238. package/packages/ui/src/primitives/RadioGroup/RadioGroup.spec.md +50 -0
  239. package/packages/ui/src/primitives/RadioGroup/RadioGroup.types.ts +12 -0
  240. package/packages/ui/src/primitives/RadioGroup/RadioGroup.variants.ts +48 -0
  241. package/packages/ui/src/primitives/RadioGroup/RadioGroup.vue +87 -0
  242. package/packages/ui/src/primitives/Separator/Separator.props.ts +9 -0
  243. package/packages/ui/src/primitives/Separator/Separator.spec.md +15 -0
  244. package/packages/ui/src/primitives/Separator/Separator.types.ts +3 -0
  245. package/packages/ui/src/primitives/Separator/Separator.variants.ts +8 -0
  246. package/packages/ui/src/primitives/Separator/Separator.vue +23 -0
  247. package/packages/ui/src/primitives/Skeleton/Skeleton.props.ts +21 -0
  248. package/packages/ui/src/primitives/Skeleton/Skeleton.spec.md +18 -0
  249. package/packages/ui/src/primitives/Skeleton/Skeleton.types.ts +5 -0
  250. package/packages/ui/src/primitives/Skeleton/Skeleton.variants.ts +18 -0
  251. package/packages/ui/src/primitives/Skeleton/Skeleton.vue +37 -0
  252. package/packages/ui/src/primitives/Spinner/Spinner.props.ts +13 -0
  253. package/packages/ui/src/primitives/Spinner/Spinner.spec.md +16 -0
  254. package/packages/ui/src/primitives/Spinner/Spinner.types.ts +5 -0
  255. package/packages/ui/src/primitives/Spinner/Spinner.variants.ts +15 -0
  256. package/packages/ui/src/primitives/Spinner/Spinner.vue +33 -0
  257. package/packages/ui/src/primitives/SplitButton/SplitButton.vue +108 -0
  258. package/packages/ui/src/primitives/Switch/Switch.props.ts +21 -0
  259. package/packages/ui/src/primitives/Switch/Switch.spec.md +49 -0
  260. package/packages/ui/src/primitives/Switch/Switch.types.ts +3 -0
  261. package/packages/ui/src/primitives/Switch/Switch.variants.ts +34 -0
  262. package/packages/ui/src/primitives/Switch/Switch.vue +71 -0
  263. package/packages/ui/src/primitives/Tabs/Tabs.props.ts +25 -0
  264. package/packages/ui/src/primitives/Tabs/Tabs.spec.md +48 -0
  265. package/packages/ui/src/primitives/Tabs/Tabs.types.ts +11 -0
  266. package/packages/ui/src/primitives/Tabs/Tabs.variants.ts +28 -0
  267. package/packages/ui/src/primitives/Tabs/Tabs.vue +59 -0
  268. package/packages/ui/src/primitives/Textarea/Textarea.props.ts +33 -0
  269. package/packages/ui/src/primitives/Textarea/Textarea.spec.md +59 -0
  270. package/packages/ui/src/primitives/Textarea/Textarea.types.ts +5 -0
  271. package/packages/ui/src/primitives/Textarea/Textarea.variants.ts +27 -0
  272. package/packages/ui/src/primitives/Textarea/Textarea.vue +74 -0
  273. package/packages/ui/src/primitives/Tooltip/Tooltip.props.ts +21 -0
  274. package/packages/ui/src/primitives/Tooltip/Tooltip.spec.md +45 -0
  275. package/packages/ui/src/primitives/Tooltip/Tooltip.types.ts +3 -0
  276. package/packages/ui/src/primitives/Tooltip/Tooltip.variants.ts +4 -0
  277. package/packages/ui/src/primitives/Tooltip/Tooltip.vue +31 -0
  278. package/packages/ui/src/primitives/TreeView/TreeView.types.ts +10 -0
  279. package/packages/ui/src/primitives/TreeView/TreeView.vue +113 -0
  280. package/packages/ui/src/primitives/TreeView/TreeViewNode.vue +190 -0
  281. package/packages/ui/src/primitives/index.ts +29 -0
  282. package/packages/ui/src/style.css +7 -0
  283. package/packages/ui/src/style.js +1 -0
  284. package/packages/ui/src/themes/armour.css +147 -0
  285. package/packages/ui/src/themes/aurora.css +147 -0
  286. package/packages/ui/src/themes/citrine-ash.css +147 -0
  287. package/packages/ui/src/themes/concord.css +147 -0
  288. package/packages/ui/src/themes/garnet-honey.css +147 -0
  289. package/packages/ui/src/themes/harbor-rose.css +147 -0
  290. package/packages/ui/src/themes/ledger.css +147 -0
  291. package/packages/ui/src/themes/neon-noir.css +74 -0
  292. package/packages/ui/src/themes/obsidian-iris.css +147 -0
  293. package/packages/ui/src/themes/pixpax.css +147 -0
  294. package/packages/ui/src/themes/print.css +147 -0
  295. package/packages/ui/src/themes/prism.css +147 -0
  296. package/packages/ui/src/themes/proof.css +145 -0
  297. package/packages/ui/src/themes/semanticThemeContract.js +2256 -0
  298. package/packages/ui/src/themes/spruce-ink.css +147 -0
  299. package/packages/ui/src/themes/sunset.css +147 -0
  300. package/packages/ui/tailwind.config.js +64 -0
  301. package/packages/ui/vite.config.js +35 -0
  302. package/packages/ui/vite.config.js.timestamp-1780697224943-89fbc929987bc.mjs +38 -0
  303. package/packages/utils/CHANGELOG.md +111 -0
  304. package/packages/utils/README.md +3 -0
  305. package/packages/utils/package.json +46 -0
  306. package/packages/utils/src/index.test.js +39 -0
  307. package/packages/utils/src/index.ts +289 -0
  308. package/packages/utils/tsconfig.build.json +12 -0
  309. package/packages/utils/vite.config.js +28 -0
  310. package/pnpm-workspace.yaml +8 -0
  311. package/scripts/vite/package-lib-config.ts +59 -0
  312. package/tsconfig.json +24 -0
  313. package/tsconfig.node.json +9 -0
@@ -0,0 +1,113 @@
1
+ <script setup lang="ts">
2
+ import { TreeView, createTreeCollection } from "@ark-ui/vue/tree-view";
3
+ import type { TreeCollection } from "@ark-ui/vue/tree-view";
4
+ import { computed } from "vue";
5
+ import type { SelectionChangeDetails } from "@zag-js/tree-view";
6
+ import TreeViewNode from "./TreeViewNode.vue";
7
+ import type { TreeNode } from "./TreeView.types.js";
8
+
9
+ defineOptions({ name: "TreeViewPrimitive" });
10
+
11
+ const props = withDefaults(
12
+ defineProps<{
13
+ nodes: TreeNode[];
14
+ ariaLabel?: string;
15
+ selectionMode?: "single" | "multiple";
16
+ selectedValue?: string[];
17
+ defaultExpandedDepth?: number;
18
+ editableValues?: boolean;
19
+ textSize?: "xs" | "sm" | "md" | "lg";
20
+ }>(),
21
+ {
22
+ ariaLabel: "Tree view",
23
+ selectionMode: "single",
24
+ defaultExpandedDepth: 1,
25
+ editableValues: false,
26
+ textSize: "sm",
27
+ },
28
+ );
29
+
30
+ const emit = defineEmits<{
31
+ (event: "value-change", payload: { path: string; raw: string }): void;
32
+ (event: "update:selectedValue", value: string[]): void;
33
+ (event: "selection-change", payload: SelectionChangeDetails<TreeNode>): void;
34
+ }>();
35
+
36
+ const hasNodes = computed(() => props.nodes?.length > 0);
37
+
38
+ const collection = computed<TreeCollection<TreeNode>>(() =>
39
+ createTreeCollection<TreeNode>({
40
+ rootNode: {
41
+ id: "root",
42
+ label: props.ariaLabel,
43
+ children: props.nodes ?? [],
44
+ },
45
+ nodeToValue: (node) => node.id,
46
+ nodeToString: (node) => node.label,
47
+ nodeToChildren: (node) => node.children ?? [],
48
+ }),
49
+ );
50
+
51
+ const rootNodes = computed(() => collection.value.getNodeChildren(collection.value.rootNode));
52
+
53
+ function collectExpandedValues(nodes: TreeNode[], maxDepth: number, depth = 0, acc: string[] = []) {
54
+ if (maxDepth <= 0 || depth >= maxDepth) return acc;
55
+ for (const node of nodes) {
56
+ if (node.children && node.children.length > 0) {
57
+ acc.push(node.id);
58
+ collectExpandedValues(node.children, maxDepth, depth + 1, acc);
59
+ }
60
+ }
61
+ return acc;
62
+ }
63
+
64
+ const defaultExpandedValue = computed(() =>
65
+ collectExpandedValues(props.nodes ?? [], props.defaultExpandedDepth),
66
+ );
67
+
68
+ function handleValueEdit(path: string, raw: string) {
69
+ emit("value-change", { path, raw });
70
+ }
71
+
72
+ function handleSelectedValueChange(value: string[]) {
73
+ emit("update:selectedValue", value);
74
+ }
75
+
76
+ function handleSelectionChange(details: SelectionChangeDetails<TreeNode>) {
77
+ emit("selection-change", details);
78
+ }
79
+ </script>
80
+
81
+ <template>
82
+ <TreeView.Root
83
+ :aria-label="ariaLabel"
84
+ :collection="collection"
85
+ :selection-mode="selectionMode"
86
+ :selected-value="selectedValue"
87
+ :default-expanded-value="defaultExpandedValue"
88
+ @update:selected-value="handleSelectedValueChange"
89
+ @selection-change="handleSelectionChange"
90
+ class="w-full text-[var(--ui-text)]"
91
+ :class="{
92
+ 'text-xs': textSize === 'xs',
93
+ 'text-sm': textSize === 'sm',
94
+ 'text-base': textSize === 'md',
95
+ 'text-lg': textSize === 'lg',
96
+ }"
97
+ >
98
+ <TreeView.Tree class="space-y-1">
99
+ <template v-if="hasNodes">
100
+ <TreeViewNode
101
+ v-for="(node, index) in rootNodes"
102
+ :key="node.id"
103
+ :node="node"
104
+ :collection="collection"
105
+ :index-path="[index]"
106
+ :editable-values="editableValues"
107
+ :on-value-edit="handleValueEdit"
108
+ />
109
+ </template>
110
+ <p v-else class="text-xs opacity-60">No nodes to display.</p>
111
+ </TreeView.Tree>
112
+ </TreeView.Root>
113
+ </template>
@@ -0,0 +1,190 @@
1
+ <script setup lang="ts">
2
+ import { computed, ref } from "vue";
3
+ import { TreeView } from "@ark-ui/vue/tree-view";
4
+ import type { TreeCollection } from "@ark-ui/vue/tree-view";
5
+ import Badge from "../Badge/Badge.vue";
6
+ import type { TreeNode } from "./TreeView.types.js";
7
+
8
+ defineOptions({ name: "TreeViewNode" });
9
+
10
+ const props = withDefaults(
11
+ defineProps<{
12
+ node: TreeNode;
13
+ collection: TreeCollection<TreeNode>;
14
+ indexPath: number[];
15
+ level?: number;
16
+ editableValues?: boolean;
17
+ onValueEdit?: (path: string, raw: string) => void;
18
+ }>(),
19
+ {
20
+ level: 0,
21
+ editableValues: false,
22
+ onValueEdit: undefined,
23
+ },
24
+ );
25
+
26
+ const hasChildren = computed(() => props.collection.isBranchNode(props.node));
27
+ const childNodes = computed(() => props.collection.getNodeChildren(props.node));
28
+ const rowStyle = computed(() => ({
29
+ paddingLeft: `${props.level * 16}px`,
30
+ color: props.node.tone === "critical" ? "var(--ui-critical)" : undefined,
31
+ }));
32
+ const rowToneClass = computed(() =>
33
+ props.node.tone === "critical"
34
+ ? "border border-[color-mix(in_srgb,var(--ui-critical)_18%,transparent)] bg-[color-mix(in_srgb,var(--ui-critical-muted)_65%,transparent)]"
35
+ : "border border-transparent",
36
+ );
37
+ const labelToneClass = computed(() =>
38
+ props.node.tone === "critical" ? "text-[var(--ui-text)]" : "text-[var(--ui-text)]",
39
+ );
40
+ const valueToneClass = computed(() =>
41
+ props.node.tone === "critical" ? "text-[var(--ui-text-muted)]" : "text-[var(--ui-text-muted)]",
42
+ );
43
+ const textStyle = computed(() =>
44
+ props.node.tone === "critical" ? { color: "var(--ui-critical)" } : undefined,
45
+ );
46
+
47
+ const isEditingValue = ref(false);
48
+ const draftValue = ref("");
49
+
50
+ const hasRawValue = computed(() => Object.prototype.hasOwnProperty.call(props.node, "rawValue"));
51
+
52
+ function formatRawValue(value: unknown) {
53
+ if (typeof value === "string") return value;
54
+ if (typeof value === "number" || typeof value === "boolean") {
55
+ return String(value);
56
+ }
57
+ if (value === null) return "null";
58
+ try {
59
+ return JSON.stringify(value);
60
+ } catch {
61
+ return String(value ?? "");
62
+ }
63
+ }
64
+
65
+ function beginValueEdit() {
66
+ if (!props.editableValues || !props.onValueEdit || !hasRawValue.value) return;
67
+ draftValue.value = formatRawValue(props.node.rawValue);
68
+ isEditingValue.value = true;
69
+ }
70
+
71
+ function commitValueEdit() {
72
+ if (!isEditingValue.value) return;
73
+ isEditingValue.value = false;
74
+ if (!props.onValueEdit) return;
75
+ props.onValueEdit(props.node.id, draftValue.value);
76
+ }
77
+
78
+ function cancelValueEdit() {
79
+ isEditingValue.value = false;
80
+ draftValue.value = "";
81
+ }
82
+ </script>
83
+
84
+ <template>
85
+ <TreeView.NodeProvider :node="node" :index-path="indexPath">
86
+ <TreeView.NodeContext v-slot="context">
87
+ <TreeView.Branch v-if="hasChildren">
88
+ <TreeView.BranchControl
89
+ :style="rowStyle"
90
+ class="group flex w-full items-center gap-2 rounded-md px-2 py-1 text-left transition hover:bg-[var(--ui-border)]"
91
+ :class="rowToneClass"
92
+ >
93
+ <TreeView.BranchTrigger class="flex items-center gap-2">
94
+ <TreeView.BranchIndicator>
95
+ <svg
96
+ xmlns="http://www.w3.org/2000/svg"
97
+ viewBox="0 0 20 20"
98
+ fill="currentColor"
99
+ class="h-3 w-3 transition-transform duration-200"
100
+ :class="{ 'rotate-90': context.expanded }"
101
+ >
102
+ <path
103
+ fill-rule="evenodd"
104
+ d="M7.21 14.77a.75.75 0 0 1 .02-1.06L10.94 10 7.23 6.29a.75.75 0 1 1 1.06-1.06l4.24 4.24a.75.75 0 0 1 0 1.06l-4.24 4.24a.75.75 0 0 1-1.08 0Z"
105
+ clip-rule="evenodd"
106
+ />
107
+ </svg>
108
+ </TreeView.BranchIndicator>
109
+ <TreeView.BranchText
110
+ class="flex-1 truncate"
111
+ :class="[labelToneClass, { 'font-semibold': context.selected }]"
112
+ :style="textStyle"
113
+ >
114
+ {{ node.label }}
115
+ </TreeView.BranchText>
116
+ </TreeView.BranchTrigger>
117
+ <Badge v-if="node.badge" tone="critical" variant="soft" size="xs">
118
+ {{ node.badge }}
119
+ </Badge>
120
+ <input
121
+ v-if="editableValues && hasRawValue && isEditingValue"
122
+ v-model="draftValue"
123
+ class="ml-auto max-w-[55%] rounded border border-[var(--ui-border)] bg-transparent px-2 py-1 text-[0.85em]"
124
+ @keydown.enter.prevent="commitValueEdit"
125
+ @keydown.esc.prevent="cancelValueEdit"
126
+ @blur="commitValueEdit"
127
+ />
128
+ <span
129
+ v-else-if="node.value || node.meta"
130
+ class="ml-auto max-w-[55%] truncate text-[0.85em]"
131
+ :class="valueToneClass"
132
+ :style="textStyle"
133
+ @dblclick.stop="beginValueEdit"
134
+ >
135
+ {{ node.value || node.meta }}
136
+ </span>
137
+ </TreeView.BranchControl>
138
+ <TreeView.BranchContent class="space-y-1">
139
+ <TreeView.Tree class="space-y-1">
140
+ <TreeViewNode
141
+ v-for="(child, childIndex) in childNodes"
142
+ :key="child.id"
143
+ :node="child"
144
+ :collection="collection"
145
+ :index-path="[...indexPath, childIndex]"
146
+ :level="level + 1"
147
+ :editable-values="editableValues"
148
+ :on-value-edit="onValueEdit"
149
+ />
150
+ </TreeView.Tree>
151
+ </TreeView.BranchContent>
152
+ </TreeView.Branch>
153
+
154
+ <TreeView.Item
155
+ v-else
156
+ :style="rowStyle"
157
+ class="group flex w-full items-center gap-2 rounded-md px-2 py-1 text-left transition hover:bg-[var(--ui-border)]"
158
+ :class="rowToneClass"
159
+ >
160
+ <TreeView.ItemText
161
+ class="flex-1 truncate"
162
+ :class="[labelToneClass, { 'font-semibold': context.selected }]"
163
+ :style="textStyle"
164
+ >
165
+ {{ node.label }}
166
+ </TreeView.ItemText>
167
+ <Badge v-if="node.badge" tone="critical" variant="soft" size="xs">
168
+ {{ node.badge }}
169
+ </Badge>
170
+ <input
171
+ v-if="editableValues && hasRawValue && isEditingValue"
172
+ v-model="draftValue"
173
+ class="ml-auto max-w-[55%] rounded border border-[var(--ui-border)] bg-transparent px-2 py-1 text-[0.85em]"
174
+ @keydown.enter.prevent="commitValueEdit"
175
+ @keydown.esc.prevent="cancelValueEdit"
176
+ @blur="commitValueEdit"
177
+ />
178
+ <span
179
+ v-else-if="node.value || node.meta"
180
+ class="ml-auto max-w-[55%] truncate text-[0.85em]"
181
+ :class="valueToneClass"
182
+ :style="textStyle"
183
+ @dblclick.stop="beginValueEdit"
184
+ >
185
+ {{ node.value || node.meta }}
186
+ </span>
187
+ </TreeView.Item>
188
+ </TreeView.NodeContext>
189
+ </TreeView.NodeProvider>
190
+ </template>
@@ -0,0 +1,29 @@
1
+ import "../style.css";
2
+
3
+ export { default as Button } from "./Button/Button.vue";
4
+ export { default as Accordion } from "./Accordion/Accordion.vue";
5
+ export { default as AccordionItem } from "./Accordion/AccordionItem.vue";
6
+ export { default as Badge } from "./Badge/Badge.vue";
7
+ export { default as Card } from "./Card/Card.vue";
8
+ export { default as Checkbox } from "./Checkbox/Checkbox.vue";
9
+ export { default as Dialog } from "./Dialog/Dialog.vue";
10
+ export { default as Drawer } from "./Drawer/Drawer.vue";
11
+ export { default as Menu } from "./Menu/Menu.vue";
12
+ export { default as Popover } from "./Popover/Popover.vue";
13
+ export { default as RadioGroup } from "./RadioGroup/RadioGroup.vue";
14
+ export { default as Separator } from "./Separator/Separator.vue";
15
+ export { default as Skeleton } from "./Skeleton/Skeleton.vue";
16
+ export { default as Spinner } from "./Spinner/Spinner.vue";
17
+ export { default as Switch } from "./Switch/Switch.vue";
18
+ export { default as Tabs } from "./Tabs/Tabs.vue";
19
+ export { default as Tooltip } from "./Tooltip/Tooltip.vue";
20
+ export { default as TreeView } from "./TreeView/TreeView.vue";
21
+ export { default as Input } from "./Input/Input.vue";
22
+ export { default as Textarea } from "./Textarea/Textarea.vue";
23
+ export { default as Label } from "./Label/Label.vue";
24
+ export { default as FieldMessage } from "./FieldMessage/FieldMessage.vue";
25
+ export { default as FileInput } from "./FileInput/FileInput.vue";
26
+ export { default as Accordian } from "./Accordion/Accordion.vue";
27
+ export { default as AccordianItem } from "./Accordion/AccordionItem.vue";
28
+ export { default as SplitButton } from "./SplitButton/SplitButton.vue";
29
+ export type { TreeNode } from "./TreeView/TreeView.types";
@@ -0,0 +1,7 @@
1
+ @layer theme, base, components, utilities;
2
+ @import "./design-system/tokens.css" layer(theme);
3
+ @import "./design-system/base.css" layer(base);
4
+ @import "tailwindcss/theme.css" layer(theme);
5
+ @import "tailwindcss/preflight.css" layer(base);
6
+ @import "tailwindcss/utilities.css" layer(utilities);
7
+ @plugin "@tailwindcss/typography";
@@ -0,0 +1 @@
1
+ import "./style.css";
@@ -0,0 +1,147 @@
1
+ /* This file is generated from src/themes/semanticThemeContract.js. */
2
+
3
+ :root[data-theme="armour-light"], [data-theme="armour-light"] {
4
+ color-scheme: light;
5
+ --ui-bg: #f3f8f7;
6
+ --ui-fg: #142321;
7
+ --ui-fg-muted: #5c726e;
8
+ --ui-surface: #e7efed;
9
+ --ui-surface-hover: #dbe7e4;
10
+ --ui-border: rgba(20, 35, 33, 0.12);
11
+ --ui-primary: #0f766e;
12
+ --ui-on-primary: #f3f8f7;
13
+ --ui-primary-muted: rgba(15, 118, 110, 0.14);
14
+ --ui-primary-hover: rgba(15, 118, 110, 0.22);
15
+ --ui-primary-active: rgba(15, 118, 110, 0.3);
16
+ --ui-secondary: #51656a;
17
+ --ui-on-secondary: #f3f8f7;
18
+ --ui-secondary-muted: rgba(81, 101, 106, 0.14);
19
+ --ui-secondary-hover: rgba(81, 101, 106, 0.22);
20
+ --ui-secondary-active: rgba(81, 101, 106, 0.3);
21
+ --ui-accent: #10b981;
22
+ --ui-on-accent: #062018;
23
+ --ui-accent-muted: rgba(16, 185, 129, 0.14);
24
+ --ui-accent-hover: rgba(16, 185, 129, 0.22);
25
+ --ui-accent-active: rgba(16, 185, 129, 0.3);
26
+ --ui-success: #15803d;
27
+ --ui-on-success: #f3f8f7;
28
+ --ui-success-muted: rgba(21, 128, 61, 0.16);
29
+ --ui-success-hover: rgba(21, 128, 61, 0.24);
30
+ --ui-success-active: rgba(21, 128, 61, 0.32);
31
+ --ui-warning: #b45309;
32
+ --ui-on-warning: #fff7ed;
33
+ --ui-warning-muted: rgba(180, 83, 9, 0.16);
34
+ --ui-warning-hover: rgba(180, 83, 9, 0.24);
35
+ --ui-warning-active: rgba(180, 83, 9, 0.32);
36
+ --ui-info: #0ea5e9;
37
+ --ui-on-info: #f3f8f7;
38
+ --ui-info-muted: rgba(14, 165, 233, 0.16);
39
+ --ui-info-hover: rgba(14, 165, 233, 0.24);
40
+ --ui-info-active: rgba(14, 165, 233, 0.32);
41
+ --ui-critical: #b91c1c;
42
+ --ui-on-critical: #fef2f2;
43
+ --ui-critical-muted: rgba(185, 28, 28, 0.16);
44
+ --ui-critical-hover: rgba(185, 28, 28, 0.24);
45
+ --ui-critical-active: rgba(185, 28, 28, 0.32);
46
+ --ui-danger: var(--ui-critical);
47
+ --ui-on-danger: var(--ui-on-critical);
48
+ --ui-danger-muted: var(--ui-critical-muted);
49
+ --ui-danger-hover: var(--ui-critical-hover);
50
+ --ui-danger-active: var(--ui-critical-active);
51
+ --ui-tonal-secondary: rgba(20, 35, 33, 0.06);
52
+ --ui-tonal-secondary-hover: rgba(20, 35, 33, 0.1);
53
+ --ui-tonal-tertiary: rgba(20, 35, 33, 0.03);
54
+ --ui-tonal-tertiary-hover: rgba(20, 35, 33, 0.07);
55
+ --ui-ring: rgba(15, 118, 110, 0.4);
56
+ --ui-glow-primary: 0 0 0 2px rgba(15, 118, 110, 0.25);
57
+ --ui-glow-accent: 0 0 0 2px rgba(16, 185, 129, 0.22);
58
+ --ui-glow-critical: 0 0 0 2px rgba(185, 28, 28, 0.25);
59
+ --ui-glow-success: 0 0 0 2px rgba(21, 128, 61, 0.22);
60
+ --ui-radius-sm: 8px;
61
+ --ui-radius-md: 12px;
62
+ --ui-radius-lg: 16px;
63
+ --ui-duration-fast: 120ms;
64
+ --ui-duration-normal: 200ms;
65
+ --ui-duration-slow: 300ms;
66
+ --ui-ease-out: cubic-bezier(0, 0, 0.2, 1);
67
+ --ui-shadow-sm: 0 1px 2px rgba(12, 21, 20, 0.12);
68
+ --ui-shadow-md: 0 6px 18px rgba(12, 21, 20, 0.22);
69
+ --ui-lift-hover: -0.5px;
70
+ --ui-scale-active: 0.97;
71
+ --ui-logo-start: #0f766e;
72
+ --ui-logo-end: #10b981;
73
+ --ui-logo-cutout: #f3f8f7;
74
+ }
75
+
76
+ :root[data-theme="armour-dark"], [data-theme="armour-dark"] {
77
+ color-scheme: dark;
78
+ --ui-bg: #071513;
79
+ --ui-fg: #e7f4f1;
80
+ --ui-fg-muted: #93ada7;
81
+ --ui-surface: #0d1d1a;
82
+ --ui-surface-hover: #142824;
83
+ --ui-border: rgba(231, 244, 241, 0.08);
84
+ --ui-primary: #14b8a6;
85
+ --ui-on-primary: #041311;
86
+ --ui-primary-muted: rgba(20, 184, 166, 0.16);
87
+ --ui-primary-hover: rgba(20, 184, 166, 0.24);
88
+ --ui-primary-active: rgba(20, 184, 166, 0.32);
89
+ --ui-secondary: #5d7470;
90
+ --ui-on-secondary: #ffffff;
91
+ --ui-secondary-muted: rgba(93, 116, 112, 0.16);
92
+ --ui-secondary-hover: rgba(93, 116, 112, 0.24);
93
+ --ui-secondary-active: rgba(93, 116, 112, 0.32);
94
+ --ui-accent: #34d399;
95
+ --ui-on-accent: #04140f;
96
+ --ui-accent-muted: rgba(52, 211, 153, 0.16);
97
+ --ui-accent-hover: rgba(52, 211, 153, 0.24);
98
+ --ui-accent-active: rgba(52, 211, 153, 0.32);
99
+ --ui-success: #22c55e;
100
+ --ui-on-success: #04140a;
101
+ --ui-success-muted: rgba(34, 197, 94, 0.16);
102
+ --ui-success-hover: rgba(34, 197, 94, 0.24);
103
+ --ui-success-active: rgba(34, 197, 94, 0.32);
104
+ --ui-warning: #f59e0b;
105
+ --ui-on-warning: #1a1002;
106
+ --ui-warning-muted: rgba(245, 158, 11, 0.16);
107
+ --ui-warning-hover: rgba(245, 158, 11, 0.24);
108
+ --ui-warning-active: rgba(245, 158, 11, 0.32);
109
+ --ui-info: #38bdf8;
110
+ --ui-on-info: #04131a;
111
+ --ui-info-muted: rgba(56, 189, 248, 0.16);
112
+ --ui-info-hover: rgba(56, 189, 248, 0.24);
113
+ --ui-info-active: rgba(56, 189, 248, 0.32);
114
+ --ui-critical: #ef4444;
115
+ --ui-on-critical: #190606;
116
+ --ui-critical-muted: rgba(239, 68, 68, 0.16);
117
+ --ui-critical-hover: rgba(239, 68, 68, 0.24);
118
+ --ui-critical-active: rgba(239, 68, 68, 0.32);
119
+ --ui-danger: var(--ui-critical);
120
+ --ui-on-danger: var(--ui-on-critical);
121
+ --ui-danger-muted: var(--ui-critical-muted);
122
+ --ui-danger-hover: var(--ui-critical-hover);
123
+ --ui-danger-active: var(--ui-critical-active);
124
+ --ui-tonal-secondary: rgba(231, 244, 241, 0.06);
125
+ --ui-tonal-secondary-hover: rgba(231, 244, 241, 0.12);
126
+ --ui-tonal-tertiary: rgba(231, 244, 241, 0.03);
127
+ --ui-tonal-tertiary-hover: rgba(231, 244, 241, 0.08);
128
+ --ui-ring: rgba(20, 184, 166, 0.45);
129
+ --ui-glow-primary: 0 0 0 2px rgba(20, 184, 166, 0.35);
130
+ --ui-glow-accent: 0 0 0 2px rgba(52, 211, 153, 0.35);
131
+ --ui-glow-critical: 0 0 0 2px rgba(239, 68, 68, 0.3);
132
+ --ui-glow-success: 0 0 0 2px rgba(34, 197, 94, 0.35);
133
+ --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
134
+ --ui-shadow-md: 0 12px 36px rgba(0, 0, 0, 0.65);
135
+ --ui-radius-sm: 6px;
136
+ --ui-radius-md: 10px;
137
+ --ui-radius-lg: 14px;
138
+ --ui-duration-fast: 120ms;
139
+ --ui-duration-normal: 180ms;
140
+ --ui-duration-slow: 240ms;
141
+ --ui-ease-out: cubic-bezier(0, 0, 0.2, 1);
142
+ --ui-lift-hover: -0.5px;
143
+ --ui-scale-active: 0.98;
144
+ --ui-logo-start: #14b8a6;
145
+ --ui-logo-end: #34d399;
146
+ --ui-logo-cutout: #071513;
147
+ }
@@ -0,0 +1,147 @@
1
+ /* This file is generated from src/themes/semanticThemeContract.js. */
2
+
3
+ :root[data-theme="aurora-light"], [data-theme="aurora-light"] {
4
+ color-scheme: light;
5
+ --ui-bg: #f2fbff;
6
+ --ui-fg: #14323d;
7
+ --ui-fg-muted: #4d6a73;
8
+ --ui-surface: #e4f2f8;
9
+ --ui-surface-hover: #d7e7ee;
10
+ --ui-border: rgba(20, 50, 61, 0.12);
11
+ --ui-primary: #0e7490;
12
+ --ui-on-primary: #f2fbff;
13
+ --ui-primary-muted: rgba(14, 116, 144, 0.14);
14
+ --ui-primary-hover: rgba(14, 116, 144, 0.22);
15
+ --ui-primary-active: rgba(14, 116, 144, 0.3);
16
+ --ui-secondary: #4338ca;
17
+ --ui-on-secondary: #f2fbff;
18
+ --ui-secondary-muted: rgba(67, 56, 202, 0.14);
19
+ --ui-secondary-hover: rgba(67, 56, 202, 0.22);
20
+ --ui-secondary-active: rgba(67, 56, 202, 0.3);
21
+ --ui-accent: #e11d48;
22
+ --ui-on-accent: #f2fbff;
23
+ --ui-accent-muted: rgba(225, 29, 72, 0.14);
24
+ --ui-accent-hover: rgba(225, 29, 72, 0.22);
25
+ --ui-accent-active: rgba(225, 29, 72, 0.3);
26
+ --ui-success: #16a34a;
27
+ --ui-on-success: #f2fbff;
28
+ --ui-success-muted: rgba(22, 163, 74, 0.16);
29
+ --ui-success-hover: rgba(22, 163, 74, 0.24);
30
+ --ui-success-active: rgba(22, 163, 74, 0.32);
31
+ --ui-warning: #ca8a04;
32
+ --ui-on-warning: #f2fbff;
33
+ --ui-warning-muted: rgba(202, 138, 4, 0.16);
34
+ --ui-warning-hover: rgba(202, 138, 4, 0.24);
35
+ --ui-warning-active: rgba(202, 138, 4, 0.32);
36
+ --ui-info: #2563eb;
37
+ --ui-on-info: #f2fbff;
38
+ --ui-info-muted: rgba(37, 99, 235, 0.16);
39
+ --ui-info-hover: rgba(37, 99, 235, 0.24);
40
+ --ui-info-active: rgba(37, 99, 235, 0.32);
41
+ --ui-critical: #dc2626;
42
+ --ui-on-critical: #f2fbff;
43
+ --ui-critical-muted: rgba(220, 38, 38, 0.16);
44
+ --ui-critical-hover: rgba(220, 38, 38, 0.24);
45
+ --ui-critical-active: rgba(220, 38, 38, 0.32);
46
+ --ui-danger: var(--ui-critical);
47
+ --ui-on-danger: var(--ui-on-critical);
48
+ --ui-danger-muted: var(--ui-critical-muted);
49
+ --ui-danger-hover: var(--ui-critical-hover);
50
+ --ui-danger-active: var(--ui-critical-active);
51
+ --ui-tonal-secondary: rgba(20, 50, 61, 0.06);
52
+ --ui-tonal-secondary-hover: rgba(20, 50, 61, 0.1);
53
+ --ui-tonal-tertiary: rgba(20, 50, 61, 0.03);
54
+ --ui-tonal-tertiary-hover: rgba(20, 50, 61, 0.07);
55
+ --ui-ring: rgba(14, 116, 144, 0.4);
56
+ --ui-glow-primary: 0 0 0 2px rgba(14, 116, 144, 0.25);
57
+ --ui-glow-accent: 0 0 0 2px rgba(225, 29, 72, 0.22);
58
+ --ui-glow-critical: 0 0 0 2px rgba(220, 38, 38, 0.25);
59
+ --ui-glow-success: 0 0 0 2px rgba(22, 163, 74, 0.22);
60
+ --ui-radius-sm: 8px;
61
+ --ui-radius-md: 12px;
62
+ --ui-radius-lg: 16px;
63
+ --ui-duration-fast: 120ms;
64
+ --ui-duration-normal: 200ms;
65
+ --ui-duration-slow: 300ms;
66
+ --ui-ease-out: cubic-bezier(0, 0, 0.2, 1);
67
+ --ui-shadow-sm: 0 1px 2px rgba(10, 24, 30, 0.12);
68
+ --ui-shadow-md: 0 6px 18px rgba(10, 24, 30, 0.22);
69
+ --ui-lift-hover: -0.5px;
70
+ --ui-scale-active: 0.97;
71
+ --ui-logo-start: #e11d48;
72
+ --ui-logo-end: #4338ca;
73
+ --ui-logo-cutout: #f2fbff;
74
+ }
75
+
76
+ :root[data-theme="aurora-dark"], [data-theme="aurora-dark"] {
77
+ color-scheme: dark;
78
+ --ui-bg: #0b1217;
79
+ --ui-fg: #e4f8ff;
80
+ --ui-fg-muted: #a8c8d1;
81
+ --ui-surface: #121a21;
82
+ --ui-surface-hover: #1a2430;
83
+ --ui-border: rgba(228, 248, 255, 0.12);
84
+ --ui-primary: #67e8f9;
85
+ --ui-on-primary: #0b1217;
86
+ --ui-primary-muted: rgba(103, 232, 249, 0.14);
87
+ --ui-primary-hover: rgba(103, 232, 249, 0.22);
88
+ --ui-primary-active: rgba(103, 232, 249, 0.3);
89
+ --ui-secondary: #c7d2fe;
90
+ --ui-on-secondary: #0b1217;
91
+ --ui-secondary-muted: rgba(199, 210, 254, 0.16);
92
+ --ui-secondary-hover: rgba(199, 210, 254, 0.24);
93
+ --ui-secondary-active: rgba(199, 210, 254, 0.32);
94
+ --ui-accent: #fda4af;
95
+ --ui-on-accent: #0b1217;
96
+ --ui-accent-muted: rgba(253, 164, 175, 0.16);
97
+ --ui-accent-hover: rgba(253, 164, 175, 0.24);
98
+ --ui-accent-active: rgba(253, 164, 175, 0.32);
99
+ --ui-success: #86efac;
100
+ --ui-on-success: #0b1411;
101
+ --ui-success-muted: rgba(134, 239, 172, 0.16);
102
+ --ui-success-hover: rgba(134, 239, 172, 0.24);
103
+ --ui-success-active: rgba(134, 239, 172, 0.32);
104
+ --ui-warning: #fde047;
105
+ --ui-on-warning: #0b1217;
106
+ --ui-warning-muted: rgba(253, 224, 71, 0.16);
107
+ --ui-warning-hover: rgba(253, 224, 71, 0.24);
108
+ --ui-warning-active: rgba(253, 224, 71, 0.32);
109
+ --ui-info: #93c5fd;
110
+ --ui-on-info: #0b1220;
111
+ --ui-info-muted: rgba(147, 197, 253, 0.16);
112
+ --ui-info-hover: rgba(147, 197, 253, 0.24);
113
+ --ui-info-active: rgba(147, 197, 253, 0.32);
114
+ --ui-critical: #fca5a5;
115
+ --ui-on-critical: #14090b;
116
+ --ui-critical-muted: rgba(252, 165, 165, 0.16);
117
+ --ui-critical-hover: rgba(252, 165, 165, 0.24);
118
+ --ui-critical-active: rgba(252, 165, 165, 0.32);
119
+ --ui-danger: var(--ui-critical);
120
+ --ui-on-danger: var(--ui-on-critical);
121
+ --ui-danger-muted: var(--ui-critical-muted);
122
+ --ui-danger-hover: var(--ui-critical-hover);
123
+ --ui-danger-active: var(--ui-critical-active);
124
+ --ui-tonal-secondary: rgba(228, 248, 255, 0.08);
125
+ --ui-tonal-secondary-hover: rgba(228, 248, 255, 0.14);
126
+ --ui-tonal-tertiary: rgba(228, 248, 255, 0.04);
127
+ --ui-tonal-tertiary-hover: rgba(228, 248, 255, 0.1);
128
+ --ui-ring: rgba(103, 232, 249, 0.5);
129
+ --ui-glow-primary: 0 0 0 2px rgba(103, 232, 249, 0.35);
130
+ --ui-glow-accent: 0 0 0 2px rgba(253, 164, 175, 0.35);
131
+ --ui-glow-critical: 0 0 0 2px rgba(252, 165, 165, 0.3);
132
+ --ui-glow-success: 0 0 0 2px rgba(134, 239, 172, 0.3);
133
+ --ui-radius-sm: 8px;
134
+ --ui-radius-md: 12px;
135
+ --ui-radius-lg: 16px;
136
+ --ui-duration-fast: 120ms;
137
+ --ui-duration-normal: 200ms;
138
+ --ui-duration-slow: 300ms;
139
+ --ui-ease-out: cubic-bezier(0, 0, 0.2, 1);
140
+ --ui-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
141
+ --ui-shadow-md: 0 6px 18px rgba(0, 0, 0, 0.45);
142
+ --ui-lift-hover: -0.5px;
143
+ --ui-scale-active: 0.97;
144
+ --ui-logo-start: #fda4af;
145
+ --ui-logo-end: #c7d2fe;
146
+ --ui-logo-cutout: #0b1217;
147
+ }