@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,141 @@
1
+ <script setup lang="ts">
2
+ import { computed } from "vue";
3
+ import type {
4
+ SectionIntroAlign,
5
+ SectionIntroSize,
6
+ SectionIntroTitleTag,
7
+ } from "./SectionIntro.types";
8
+
9
+ const props = withDefaults(
10
+ defineProps<{
11
+ align?: SectionIntroAlign;
12
+ description?: string;
13
+ eyebrow?: string;
14
+ size?: SectionIntroSize;
15
+ title: string;
16
+ titleTag?: SectionIntroTitleTag;
17
+ }>(),
18
+ {
19
+ align: "start",
20
+ description: undefined,
21
+ eyebrow: undefined,
22
+ size: "section",
23
+ titleTag: "h2",
24
+ },
25
+ );
26
+
27
+ const rootClass = computed(() => [
28
+ "ui-section-intro",
29
+ `ui-section-intro--${props.align}`,
30
+ `ui-section-intro--${props.size}`,
31
+ ]);
32
+
33
+ const titleClass = computed(() => [
34
+ "ui-section-intro__title",
35
+ `ui-section-intro__title--${props.size}`,
36
+ ]);
37
+ </script>
38
+
39
+ <template>
40
+ <div :class="rootClass">
41
+ <p v-if="props.eyebrow" class="ui-section-intro__eyebrow">
42
+ {{ props.eyebrow }}
43
+ </p>
44
+ <component :is="props.titleTag" :class="titleClass">
45
+ {{ props.title }}
46
+ </component>
47
+ <p v-if="props.description" class="ui-section-intro__description">
48
+ {{ props.description }}
49
+ </p>
50
+ <div v-if="$slots.actions" class="ui-section-intro__actions">
51
+ <slot name="actions" />
52
+ </div>
53
+ <div v-if="$slots.default" class="ui-section-intro__content">
54
+ <slot />
55
+ </div>
56
+ </div>
57
+ </template>
58
+
59
+ <style scoped>
60
+ .ui-section-intro {
61
+ display: flex;
62
+ flex-direction: column;
63
+ gap: 1rem;
64
+ color: var(--ui-fg);
65
+ }
66
+
67
+ .ui-section-intro--center {
68
+ align-items: center;
69
+ text-align: center;
70
+ }
71
+
72
+ .ui-section-intro__eyebrow {
73
+ margin: 0;
74
+ color: var(--ui-fg-muted);
75
+ font-size: 0.75rem;
76
+ font-weight: 600;
77
+ letter-spacing: 0.24em;
78
+ text-transform: uppercase;
79
+ }
80
+
81
+ .ui-section-intro__title {
82
+ margin: 0;
83
+ color: var(--ui-fg);
84
+ font-weight: 500;
85
+ letter-spacing: -0.04em;
86
+ line-height: 1.05;
87
+ text-wrap: balance;
88
+ }
89
+
90
+ .ui-section-intro__title--hero {
91
+ max-width: 12ch;
92
+ font-size: clamp(3.25rem, 6.4vw, 5.65rem);
93
+ letter-spacing: -0.05em;
94
+ line-height: 0.98;
95
+ }
96
+
97
+ .ui-section-intro__title--section {
98
+ font-size: clamp(2.25rem, 4vw, 3.25rem);
99
+ }
100
+
101
+ .ui-section-intro__title--compact {
102
+ font-size: clamp(1.5rem, 2.5vw, 2rem);
103
+ }
104
+
105
+ .ui-section-intro__description {
106
+ margin: 0;
107
+ max-width: 42rem;
108
+ color: var(--ui-fg-muted);
109
+ font-size: 1.125rem;
110
+ line-height: 1.7;
111
+ text-wrap: pretty;
112
+ }
113
+
114
+ .ui-section-intro--hero .ui-section-intro__description {
115
+ max-width: 34rem;
116
+ font-size: 1.03rem;
117
+ line-height: 1.75;
118
+ color: color-mix(in srgb, var(--ui-fg-muted) 92%, var(--ui-bg) 8%);
119
+ }
120
+
121
+ .ui-section-intro--compact .ui-section-intro__description {
122
+ font-size: 1rem;
123
+ }
124
+
125
+ .ui-section-intro__actions {
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ align-items: center;
129
+ gap: 0.75rem;
130
+ }
131
+
132
+ .ui-section-intro--center .ui-section-intro__actions {
133
+ justify-content: center;
134
+ }
135
+
136
+ .ui-section-intro__content {
137
+ display: flex;
138
+ flex-direction: column;
139
+ gap: 1rem;
140
+ }
141
+ </style>
@@ -0,0 +1,34 @@
1
+ # SidebarNav
2
+
3
+ ## Purpose
4
+
5
+ Reusable sidebar navigation composition for grouped links and action footer content.
6
+
7
+ ## Category
8
+
9
+ Pattern
10
+
11
+ ## Public API
12
+
13
+ Props:
14
+
15
+ - `sections`: `SidebarNavSection[]`
16
+ - `title`: optional string
17
+
18
+ Slots:
19
+
20
+ - `header`
21
+ - `footer`
22
+
23
+ Events:
24
+
25
+ - `select(item, event)` when an item is activated
26
+
27
+ ## Behavior
28
+
29
+ - renders grouped nav sections with optional section labels
30
+ - supports Router links (`to`), external links (`href`), and button-like actions
31
+ - applies active-state styling through `item.active`
32
+ - supports optional item count pills via `item.count`
33
+ - supports optional active indicator dot via `item.showActiveDot`
34
+ - keeps footer actions visually separated from route links
@@ -0,0 +1,17 @@
1
+ export type SidebarNavItem = {
2
+ active?: boolean;
3
+ count?: number | string;
4
+ dataTest?: string;
5
+ disabled?: boolean;
6
+ href?: string;
7
+ id?: string;
8
+ label: string;
9
+ showActiveDot?: boolean;
10
+ to?: string;
11
+ };
12
+
13
+ export type SidebarNavSection = {
14
+ id?: string;
15
+ items: SidebarNavItem[];
16
+ label?: string;
17
+ };
@@ -0,0 +1,110 @@
1
+ <script setup lang="ts">
2
+ import { computed, useSlots } from "vue";
3
+ import Button from "../../primitives/Button/Button.vue";
4
+ import type { SidebarNavItem, SidebarNavSection } from "./SidebarNav.types";
5
+
6
+ const emit = defineEmits<{
7
+ select: [item: SidebarNavItem, event: MouseEvent];
8
+ }>();
9
+
10
+ const props = withDefaults(
11
+ defineProps<{
12
+ sections: SidebarNavSection[];
13
+ title?: string;
14
+ }>(),
15
+ {
16
+ title: undefined,
17
+ },
18
+ );
19
+
20
+ const slots = useSlots();
21
+
22
+ const normalizedSections = computed(() =>
23
+ props.sections.filter((section) => section.items.length > 0),
24
+ );
25
+
26
+ const hasHeader = computed(() => Boolean(props.title || slots.header));
27
+
28
+ function handleSelect(item: SidebarNavItem, event: MouseEvent): void {
29
+ if (item.disabled) {
30
+ event.preventDefault();
31
+ event.stopPropagation();
32
+ return;
33
+ }
34
+
35
+ emit("select", item, event);
36
+ }
37
+ </script>
38
+
39
+ <template>
40
+ <aside class="flex h-full min-h-0 flex-col border-r border-[var(--ui-border)] bg-[var(--ui-surface)]">
41
+ <div
42
+ v-if="hasHeader"
43
+ class="flex items-center justify-between gap-2 border-b border-[var(--ui-border)] px-3 py-2"
44
+ >
45
+ <slot name="header">
46
+ <p class="m-0 text-sm font-medium tracking-[0.08em] text-[var(--ui-fg)]">
47
+ {{ props.title }}
48
+ </p>
49
+ </slot>
50
+ </div>
51
+
52
+ <nav
53
+ class="flex min-h-0 flex-1 flex-col gap-7 overflow-auto px-3 py-5"
54
+ aria-label="Sidebar navigation"
55
+ >
56
+ <template
57
+ v-for="(section, sectionIndex) in normalizedSections"
58
+ :key="section.id ?? `sidebar-section-${sectionIndex}`"
59
+ >
60
+ <div class="flex flex-col gap-1">
61
+ <p
62
+ v-if="section.label"
63
+ class="m-0 px-3 text-[11px] font-bold uppercase tracking-[0.16em] text-[var(--ui-fg-muted)]/80"
64
+ >
65
+ {{ section.label }}
66
+ </p>
67
+
68
+ <Button
69
+ v-for="item in section.items"
70
+ :key="item.id ?? item.to ?? item.href ?? item.label"
71
+ :as="item.to ? 'RouterLink' : item.href ? 'a' : 'button'"
72
+ :to="item.to"
73
+ :href="item.href"
74
+ :target="item.href ? '_blank' : undefined"
75
+ :rel="item.href ? 'noreferrer noopener' : undefined"
76
+ :disabled="Boolean(item.disabled)"
77
+ :variant="item.active ? 'secondary' : 'plain-secondary'"
78
+ size="sm"
79
+ :class="[
80
+ 'w-full justify-between rounded-xl px-3 py-2.5 !text-sm',
81
+ item.active
82
+ ? '!border-transparent !bg-[var(--ui-tonal-secondary)] !font-semibold !shadow-none hover:!bg-[var(--ui-tonal-secondary-hover)]'
83
+ : '!font-medium',
84
+ ]"
85
+ :data-test="item.dataTest"
86
+ @click="handleSelect(item, $event)"
87
+ >
88
+ <span class="inline-flex min-w-0 items-center gap-2">
89
+ <span
90
+ v-if="item.active && item.showActiveDot"
91
+ class="h-1.5 w-1.5 shrink-0 rounded-full bg-[var(--ui-primary)]"
92
+ ></span>
93
+ <span class="truncate">{{ item.label }}</span>
94
+ </span>
95
+ <span
96
+ v-if="item.count !== undefined"
97
+ class="ml-2 inline-flex min-w-5 shrink-0 items-center justify-center rounded-full border border-[var(--ui-border)] bg-[var(--ui-surface)] px-2 py-0.5 text-[11px] font-medium text-[var(--ui-fg-muted)]"
98
+ >
99
+ {{ item.count }}
100
+ </span>
101
+ </Button>
102
+ </div>
103
+ </template>
104
+ </nav>
105
+
106
+ <footer v-if="$slots.footer" class="border-t border-[var(--ui-border)] p-3">
107
+ <slot name="footer" />
108
+ </footer>
109
+ </aside>
110
+ </template>
@@ -0,0 +1,28 @@
1
+ # SplitView
2
+
3
+ ## Purpose
4
+
5
+ Reusable two-pane layout composition for in-content navigation rails and detail surfaces.
6
+
7
+ ## Category
8
+
9
+ Pattern
10
+
11
+ ## Public API
12
+
13
+ Props:
14
+
15
+ - `railAriaLabel`: optional `aria-label` for rail landmark
16
+ - `railWidth`: `sm | md | lg` (`md` default)
17
+ - `divider`: toggles rail/content divider (`true` default)
18
+
19
+ Slots:
20
+
21
+ - `rail`
22
+ - default slot (detail content)
23
+
24
+ ## Behavior
25
+
26
+ - stacks on small screens and switches to side-by-side split at `md`
27
+ - constrains rail width via tokenized width presets
28
+ - keeps rail and detail as distinct semantic regions
@@ -0,0 +1,22 @@
1
+ import { readFileSync } from "node:fs";
2
+ import { resolve } from "node:path";
3
+ import { describe, expect, it } from "vitest";
4
+ import { getSplitViewRailWidthClass } from "./SplitView.utils";
5
+
6
+ describe("SplitView", () => {
7
+ it("maps rail width variants to layout classes", () => {
8
+ expect(getSplitViewRailWidthClass("sm")).toBe("md:basis-64 md:max-w-64");
9
+ expect(getSplitViewRailWidthClass("md")).toBe("md:basis-72 md:max-w-72");
10
+ expect(getSplitViewRailWidthClass("lg")).toBe("md:basis-80 md:max-w-80");
11
+ });
12
+
13
+ it("declares rail and detail slots", () => {
14
+ const source = readFileSync(
15
+ resolve(process.cwd(), "src/patterns/SplitView/SplitView.vue"),
16
+ "utf8",
17
+ );
18
+
19
+ expect(source).toContain('<slot name="rail" />');
20
+ expect(source).toContain("<slot />");
21
+ });
22
+ });
@@ -0,0 +1,3 @@
1
+ export const splitViewRailWidthValues = ["sm", "md", "lg"] as const;
2
+
3
+ export type SplitViewRailWidth = (typeof splitViewRailWidthValues)[number];
@@ -0,0 +1,13 @@
1
+ import type { SplitViewRailWidth } from "./SplitView.types";
2
+
3
+ export function getSplitViewRailWidthClass(width: SplitViewRailWidth): string {
4
+ if (width === "sm") {
5
+ return "md:basis-64 md:max-w-64";
6
+ }
7
+
8
+ if (width === "lg") {
9
+ return "md:basis-80 md:max-w-80";
10
+ }
11
+
12
+ return "md:basis-72 md:max-w-72";
13
+ }
@@ -0,0 +1,39 @@
1
+ <script setup lang="ts">
2
+ import { computed } from "vue";
3
+ import type { SplitViewRailWidth } from "./SplitView.types";
4
+ import { getSplitViewRailWidthClass } from "./SplitView.utils";
5
+
6
+ const props = withDefaults(
7
+ defineProps<{
8
+ divider?: boolean;
9
+ railAriaLabel?: string;
10
+ railWidth?: SplitViewRailWidth;
11
+ }>(),
12
+ {
13
+ divider: true,
14
+ railAriaLabel: "Section navigation",
15
+ railWidth: "md",
16
+ },
17
+ );
18
+
19
+ const railWidthClass = computed(() => getSplitViewRailWidthClass(props.railWidth));
20
+ </script>
21
+
22
+ <template>
23
+ <div class="flex min-h-0 flex-col gap-4 md:flex-row!" data-pattern="split-view">
24
+ <aside
25
+ :class="[
26
+ 'min-h-0 pb-4 md:pb-0 md:pr-4',
27
+ props.divider ? 'border-b border-[var(--ui-border)] md:border-b-0 md:border-r' : '',
28
+ railWidthClass,
29
+ ]"
30
+ :aria-label="props.railAriaLabel"
31
+ >
32
+ <slot name="rail" />
33
+ </aside>
34
+
35
+ <section class="min-h-0 flex-1" data-slot="detail">
36
+ <slot />
37
+ </section>
38
+ </div>
39
+ </template>
@@ -0,0 +1,15 @@
1
+ # StepList
2
+
3
+ ## Purpose
4
+
5
+ Ordered process list for onboarding, workflows, and narrative explanations.
6
+
7
+ ## Category
8
+
9
+ Pattern
10
+
11
+ ## Public API
12
+
13
+ Props:
14
+
15
+ - `items`: array of `{ title, description }`
@@ -0,0 +1,4 @@
1
+ export type StepListItem = {
2
+ description: string;
3
+ title: string;
4
+ };
@@ -0,0 +1,91 @@
1
+ <script setup lang="ts">
2
+ import type { StepListItem } from "./StepList.types";
3
+
4
+ defineProps<{
5
+ items: readonly StepListItem[];
6
+ }>();
7
+ </script>
8
+
9
+ <template>
10
+ <ol class="ui-step-list">
11
+ <li v-for="(item, index) in items" :key="item.title" class="ui-step-list__item">
12
+ <div class="ui-step-list__marker" aria-hidden="true">
13
+ {{ index + 1 }}
14
+ </div>
15
+ <div class="ui-step-list__body">
16
+ <h3 class="ui-step-list__title">{{ item.title }}</h3>
17
+ <p class="ui-step-list__description">{{ item.description }}</p>
18
+ </div>
19
+ </li>
20
+ </ol>
21
+ </template>
22
+
23
+ <style scoped>
24
+ .ui-step-list {
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: 1.5rem;
28
+ margin: 0;
29
+ padding: 0;
30
+ list-style: none;
31
+ }
32
+
33
+ .ui-step-list__item {
34
+ display: grid;
35
+ grid-template-columns: auto 1fr;
36
+ gap: 1rem;
37
+ align-items: start;
38
+ }
39
+
40
+ .ui-step-list__marker {
41
+ display: inline-flex;
42
+ width: 2rem;
43
+ height: 2rem;
44
+ align-items: center;
45
+ justify-content: center;
46
+ border: 1px solid color-mix(in srgb, var(--ui-primary) 40%, var(--ui-border));
47
+ border-radius: 999px;
48
+ background: color-mix(in srgb, var(--ui-primary-muted) 72%, transparent);
49
+ color: var(--ui-fg);
50
+ font-size: 0.9rem;
51
+ font-weight: 600;
52
+ box-shadow: var(--ui-shadow-sm);
53
+ }
54
+
55
+ .ui-step-list__body {
56
+ position: relative;
57
+ display: flex;
58
+ flex-direction: column;
59
+ gap: 0.5rem;
60
+ padding-bottom: 1.5rem;
61
+ }
62
+
63
+ .ui-step-list__item:not(:last-child) .ui-step-list__body::after {
64
+ position: absolute;
65
+ top: 2rem;
66
+ left: -1.5rem;
67
+ width: 1px;
68
+ height: calc(100% - 0.25rem);
69
+ content: "";
70
+ background: linear-gradient(
71
+ 180deg,
72
+ color-mix(in srgb, var(--ui-primary-muted) 80%, transparent),
73
+ transparent
74
+ );
75
+ }
76
+
77
+ .ui-step-list__title {
78
+ margin: 0;
79
+ color: var(--ui-fg);
80
+ font-size: 1.375rem;
81
+ font-weight: 500;
82
+ letter-spacing: -0.02em;
83
+ }
84
+
85
+ .ui-step-list__description {
86
+ margin: 0;
87
+ color: var(--ui-fg-muted);
88
+ font-size: 1rem;
89
+ line-height: 1.7;
90
+ }
91
+ </style>
@@ -0,0 +1,97 @@
1
+ <script setup lang="ts">
2
+ import { computed } from "vue";
3
+ import Badge from "../../primitives/Badge/Badge.vue";
4
+ import type { VerificationContext, VerificationStatus } from "./verification.types.js";
5
+ import {
6
+ getVerificationBadgeTone,
7
+ getVerificationStatusLabel,
8
+ getVerificationSurfaceLabel,
9
+ truncateMiddle,
10
+ } from "./verification.utils.js";
11
+
12
+ const props = withDefaults(
13
+ defineProps<{
14
+ status: VerificationStatus;
15
+ context?: VerificationContext;
16
+ size?: "sm" | "md";
17
+ subject?: string;
18
+ label?: string;
19
+ }>(),
20
+ {
21
+ context: undefined,
22
+ size: "sm",
23
+ subject: undefined,
24
+ label: undefined,
25
+ },
26
+ );
27
+
28
+ const tone = computed(() => getVerificationBadgeTone(props.status));
29
+ const displayLabel = computed(() => props.label ?? getVerificationStatusLabel(props.status));
30
+ const contextLabel = computed(() => getVerificationSurfaceLabel(props.context?.surface));
31
+ const truncatedSubject = computed(() => {
32
+ if (!props.subject) return undefined;
33
+ return truncateMiddle(
34
+ props.subject,
35
+ props.size === "md" ? 16 : 12,
36
+ props.size === "md" ? 14 : 10,
37
+ );
38
+ });
39
+ const iconClass = computed(() => (props.size === "md" ? "size-4" : "size-3.5"));
40
+ </script>
41
+
42
+ <template>
43
+ <Badge
44
+ :tone="tone"
45
+ variant="outline"
46
+ :size="props.size === 'md' ? 'md' : 'sm'"
47
+ class="max-w-full"
48
+ :data-status="props.status"
49
+ >
50
+ <span class="flex min-w-0 items-center gap-1.5">
51
+ <span :class="iconClass" aria-hidden="true">
52
+ <svg v-if="props.status === 'verified'" viewBox="0 0 24 24" fill="none" class="size-full">
53
+ <circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="1.75" />
54
+ <path
55
+ d="m8.5 12 2.2 2.2 4.8-5"
56
+ stroke="currentColor"
57
+ stroke-width="1.75"
58
+ stroke-linecap="round"
59
+ stroke-linejoin="round"
60
+ />
61
+ </svg>
62
+ <svg
63
+ v-else-if="props.status === 'failed'"
64
+ viewBox="0 0 24 24"
65
+ fill="none"
66
+ class="size-full"
67
+ >
68
+ <circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="1.75" />
69
+ <path
70
+ d="M9.5 9.5 14.5 14.5M14.5 9.5 9.5 14.5"
71
+ stroke="currentColor"
72
+ stroke-width="1.75"
73
+ stroke-linecap="round"
74
+ />
75
+ </svg>
76
+ <svg v-else viewBox="0 0 24 24" fill="none" class="size-full">
77
+ <circle cx="12" cy="12" r="8" stroke="currentColor" stroke-width="1.75" />
78
+ <circle cx="12" cy="12" r="1.75" fill="currentColor" />
79
+ </svg>
80
+ </span>
81
+
82
+ <span class="truncate">{{ displayLabel }}</span>
83
+
84
+ <span v-if="contextLabel" class="shrink-0 text-[10px] uppercase tracking-[0.2em] opacity-70">
85
+ {{ contextLabel }}
86
+ </span>
87
+
88
+ <span
89
+ v-if="truncatedSubject"
90
+ class="min-w-0 truncate font-mono text-[11px] opacity-80"
91
+ :title="props.subject"
92
+ >
93
+ {{ truncatedSubject }}
94
+ </span>
95
+ </span>
96
+ </Badge>
97
+ </template>