@toa.io/extensions.configuration 1.0.0-alpha.274 → 1.0.0-alpha.276

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 (501) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/components/configuration.values/operations/create.d.ts +16 -0
  3. package/components/configuration.values/operations/create.js +58 -0
  4. package/components/configuration.values/operations/create.js.map +1 -0
  5. package/components/configuration.values/operations/fetch.d.ts +11 -0
  6. package/components/configuration.values/operations/fetch.js +17 -0
  7. package/components/configuration.values/operations/fetch.js.map +1 -0
  8. package/components/configuration.values/operations/get.d.ts +17 -0
  9. package/components/configuration.values/operations/get.js +23 -0
  10. package/components/configuration.values/operations/get.js.map +1 -0
  11. package/components/configuration.values/operations/lib/map.d.ts +11 -0
  12. package/components/configuration.values/operations/lib/map.js +26 -0
  13. package/components/configuration.values/operations/lib/map.js.map +1 -0
  14. package/components/configuration.values/operations/lib/map.test.d.ts +1 -0
  15. package/components/configuration.values/operations/lib/map.test.js +26 -0
  16. package/components/configuration.values/operations/lib/map.test.js.map +1 -0
  17. package/components/configuration.values/operations/lib/resolve.d.ts +27 -0
  18. package/components/configuration.values/operations/lib/resolve.js +28 -0
  19. package/components/configuration.values/operations/lib/resolve.js.map +1 -0
  20. package/components/configuration.values/operations/list.d.ts +10 -0
  21. package/components/configuration.values/operations/list.js +15 -0
  22. package/components/configuration.values/operations/list.js.map +1 -0
  23. package/components/configuration.values/operations/tsconfig.tsbuildinfo +1 -0
  24. package/features/site/favicon.ico +0 -0
  25. package/features/ui.feature +8 -0
  26. package/package.json +2 -2
  27. package/source/Aspect.ts +7 -2
  28. package/source/UI.ts +16 -1
  29. package/source/deployment.ts +1 -1
  30. package/transpiled/Aspect.js +3 -2
  31. package/transpiled/Aspect.js.map +1 -1
  32. package/transpiled/UI.js +14 -1
  33. package/transpiled/UI.js.map +1 -1
  34. package/transpiled/deployment.d.ts +1 -1
  35. package/transpiled/tsconfig.tsbuildinfo +1 -1
  36. package/ui/dist/_app/env.js +1 -0
  37. package/ui/dist/_app/immutable/assets/0.CNS8Cqhc.css +2 -0
  38. package/ui/dist/_app/immutable/assets/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2 +0 -0
  39. package/ui/dist/_app/immutable/assets/inter-cyrillic-wght-normal.DqGufNeO.woff2 +0 -0
  40. package/ui/dist/_app/immutable/assets/inter-greek-ext-wght-normal.DlzME5K_.woff2 +0 -0
  41. package/ui/dist/_app/immutable/assets/inter-greek-wght-normal.CkhJZR-_.woff2 +0 -0
  42. package/ui/dist/_app/immutable/assets/inter-latin-ext-wght-normal.DO1Apj_S.woff2 +0 -0
  43. package/ui/dist/_app/immutable/assets/inter-latin-wght-normal.Dx4kXJAl.woff2 +0 -0
  44. package/ui/dist/_app/immutable/assets/inter-vietnamese-wght-normal.CBcvBZtf.woff2 +0 -0
  45. package/ui/dist/_app/immutable/assets/ui.BghF56l_.css +1 -0
  46. package/ui/dist/_app/immutable/chunks/Bjy-W4x2.js +81 -0
  47. package/ui/dist/_app/immutable/chunks/CDKtbN4n.js +6 -0
  48. package/ui/dist/_app/immutable/chunks/CcD_ISxM.js +3 -0
  49. package/ui/dist/_app/immutable/chunks/Chb3af1a.js +1 -0
  50. package/ui/dist/_app/immutable/chunks/Cov6-56A.js +50 -0
  51. package/ui/dist/_app/immutable/chunks/E7oj41Za.js +1 -0
  52. package/ui/dist/_app/immutable/chunks/MOpxGoVO.js +8 -0
  53. package/ui/dist/_app/immutable/chunks/xihTtKlq.js +1 -0
  54. package/ui/dist/_app/immutable/entry/app.B9v2AwU_.js +2 -0
  55. package/ui/dist/_app/immutable/entry/start.B97KALv1.js +1 -0
  56. package/ui/dist/_app/immutable/nodes/0.DKSa6mGa.js +1 -0
  57. package/ui/dist/_app/immutable/nodes/1.Cnu_jAWf.js +1 -0
  58. package/ui/dist/_app/immutable/nodes/2.Dg1zeC2b.js +1 -0
  59. package/ui/dist/_app/immutable/nodes/3.QCbZIibO.js +1 -0
  60. package/ui/dist/_app/immutable/nodes/4.1bG6DC_9.js +1 -0
  61. package/ui/dist/_app/version.json +1 -0
  62. package/ui/dist/apple-touch-icon.png +0 -0
  63. package/ui/dist/favicon-96x96.png +0 -0
  64. package/ui/dist/favicon.ico +0 -0
  65. package/ui/dist/index.html +52 -0
  66. package/ui/.agents/skills/antcn/SKILL.md +0 -91
  67. package/ui/.agents/skills/antcn/references/analytics.md +0 -78
  68. package/ui/.agents/skills/antcn/references/bridge.md +0 -41
  69. package/ui/.agents/skills/antcn/references/clipboard.md +0 -23
  70. package/ui/.agents/skills/antcn/references/dismissable.md +0 -75
  71. package/ui/.agents/skills/antcn/references/dropdown.md +0 -153
  72. package/ui/.agents/skills/antcn/references/fragments.md +0 -29
  73. package/ui/.agents/skills/antcn/references/fullscreen.md +0 -157
  74. package/ui/.agents/skills/antcn/references/geo.md +0 -27
  75. package/ui/.agents/skills/antcn/references/globals.md +0 -31
  76. package/ui/.agents/skills/antcn/references/grammatical-form.md +0 -69
  77. package/ui/.agents/skills/antcn/references/hints.md +0 -44
  78. package/ui/.agents/skills/antcn/references/hold.md +0 -34
  79. package/ui/.agents/skills/antcn/references/iam.md +0 -117
  80. package/ui/.agents/skills/antcn/references/input-form.md +0 -34
  81. package/ui/.agents/skills/antcn/references/locale.md +0 -66
  82. package/ui/.agents/skills/antcn/references/net.md +0 -33
  83. package/ui/.agents/skills/antcn/references/panel.md +0 -44
  84. package/ui/.agents/skills/antcn/references/passkeys.md +0 -27
  85. package/ui/.agents/skills/antcn/references/payments.md +0 -99
  86. package/ui/.agents/skills/antcn/references/realtime.md +0 -69
  87. package/ui/.agents/skills/antcn/references/scrollable.md +0 -39
  88. package/ui/.agents/skills/antcn/references/selector.md +0 -71
  89. package/ui/.agents/skills/antcn/references/shake.md +0 -36
  90. package/ui/.agents/skills/antcn/references/share.md +0 -28
  91. package/ui/.agents/skills/antcn/references/shell.md +0 -139
  92. package/ui/.agents/skills/antcn/references/stack.md +0 -53
  93. package/ui/.agents/skills/antcn/references/system.md +0 -149
  94. package/ui/.agents/skills/antcn/references/taptap.md +0 -28
  95. package/ui/.agents/skills/antcn/references/tools.md +0 -68
  96. package/ui/.agents/skills/antcn/references/transmission.md +0 -96
  97. package/ui/.agents/skills/shadcn-svelte/SKILL.md +0 -227
  98. package/ui/.agents/skills/shadcn-svelte/agents/openai.yml +0 -5
  99. package/ui/.agents/skills/shadcn-svelte/assets/shadcn-svelte-small.png +0 -0
  100. package/ui/.agents/skills/shadcn-svelte/assets/shadcn-svelte.png +0 -0
  101. package/ui/.agents/skills/shadcn-svelte/cli.md +0 -166
  102. package/ui/.agents/skills/shadcn-svelte/customization.md +0 -213
  103. package/ui/.agents/skills/shadcn-svelte/evals/evals.json +0 -47
  104. package/ui/.agents/skills/shadcn-svelte/rules/composition.md +0 -244
  105. package/ui/.agents/skills/shadcn-svelte/rules/forms.md +0 -234
  106. package/ui/.agents/skills/shadcn-svelte/rules/icons.md +0 -107
  107. package/ui/.agents/skills/shadcn-svelte/rules/styling.md +0 -195
  108. package/ui/.agents/skills/svas/SKILL.md +0 -169
  109. package/ui/.agents/skills/svas/references/patterns.md +0 -95
  110. package/ui/.agents/skills/svintl/SKILL.md +0 -176
  111. package/ui/.claude/settings.json +0 -15
  112. package/ui/.codex/hooks.json +0 -15
  113. package/ui/.cursor/hooks.json +0 -11
  114. package/ui/.env.example +0 -1
  115. package/ui/.prettierrc +0 -9
  116. package/ui/.vscode/extensions.json +0 -7
  117. package/ui/.vscode/settings.json +0 -27
  118. package/ui/AGENTS.md +0 -51
  119. package/ui/architecture.md +0 -390
  120. package/ui/components.json +0 -20
  121. package/ui/eslint.config.js +0 -152
  122. package/ui/features/base.ts +0 -2
  123. package/ui/features/boot.feature +0 -5
  124. package/ui/features/steps/authentication.ts +0 -34
  125. package/ui/features/steps/navigaton.ts +0 -37
  126. package/ui/features/steps/typing.ts +0 -24
  127. package/ui/package-lock.json +0 -8173
  128. package/ui/package.json +0 -76
  129. package/ui/playwright.config.ts +0 -13
  130. package/ui/skills-lock.json +0 -30
  131. package/ui/src/@/configuration/index.ts +0 -1
  132. package/ui/src/@/configuration/svc/create.ts +0 -29
  133. package/ui/src/@/configuration/svc/index.ts +0 -3
  134. package/ui/src/@/configuration/svc/net/Configuration.ts +0 -18
  135. package/ui/src/@/configuration/svc/net/index.ts +0 -2
  136. package/ui/src/@/configuration/svc/net/interface.ts +0 -35
  137. package/ui/src/@/configuration/svc/store.ts +0 -14
  138. package/ui/src/@/configuration/ui/Configurations.svelte +0 -85
  139. package/ui/src/@/configuration/ui/Configurations.ts +0 -5
  140. package/ui/src/@/configuration/ui/Create.svelte +0 -64
  141. package/ui/src/@/configuration/ui/Create.ts +0 -7
  142. package/ui/src/@/configuration/ui/Form.svelte +0 -75
  143. package/ui/src/@/configuration/ui/Form.ts +0 -79
  144. package/ui/src/@/configuration/ui/Row.svelte +0 -44
  145. package/ui/src/@/configuration/ui/Row.ts +0 -9
  146. package/ui/src/@/configuration/ui/Value.svelte +0 -33
  147. package/ui/src/@/configuration/ui/Value.ts +0 -6
  148. package/ui/src/@/configuration/ui/index.ts +0 -9
  149. package/ui/src/@/configuration/ui/intl/built.js +0 -38
  150. package/ui/src/@/configuration/ui/intl/context.yaml +0 -51
  151. package/ui/src/@/configuration/ui/intl/en-US.yaml +0 -21
  152. package/ui/src/@/configuration/ui/intl/index.ts +0 -9
  153. package/ui/src/@/configuration/ui/intl/types.ts +0 -31
  154. package/ui/src/@/configuration/ui/read.test.ts +0 -75
  155. package/ui/src/@/configuration/ui/read.ts +0 -102
  156. package/ui/src/@/configuration/ui/ui.test.ts +0 -69
  157. package/ui/src/@/configuration/ui/ui.ts +0 -115
  158. package/ui/src/@/iam/index.ts +0 -1
  159. package/ui/src/@/iam/rc.ts +0 -22
  160. package/ui/src/@/iam/svc/authenticated.ts +0 -17
  161. package/ui/src/@/iam/svc/basic.ts +0 -23
  162. package/ui/src/@/iam/svc/index.ts +0 -10
  163. package/ui/src/@/iam/svc/logout.ts +0 -5
  164. package/ui/src/@/iam/svc/named.ts +0 -16
  165. package/ui/src/@/iam/svc/net/Echo.ts +0 -9
  166. package/ui/src/@/iam/svc/net/basic/index.ts +0 -1
  167. package/ui/src/@/iam/svc/net/basic/interface.ts +0 -15
  168. package/ui/src/@/iam/svc/net/federation/index.ts +0 -1
  169. package/ui/src/@/iam/svc/net/federation/interface.ts +0 -12
  170. package/ui/src/@/iam/svc/net/index.ts +0 -6
  171. package/ui/src/@/iam/svc/net/interface.ts +0 -17
  172. package/ui/src/@/iam/svc/net/otp/index.ts +0 -1
  173. package/ui/src/@/iam/svc/net/otp/interface.ts +0 -14
  174. package/ui/src/@/iam/svc/net/passkeys/index.ts +0 -1
  175. package/ui/src/@/iam/svc/net/passkeys/interface.ts +0 -12
  176. package/ui/src/@/iam/svc/oidc/apple.ts +0 -47
  177. package/ui/src/@/iam/svc/oidc/authenticate.ts +0 -62
  178. package/ui/src/@/iam/svc/oidc/google.ts +0 -45
  179. package/ui/src/@/iam/svc/oidc/hello.ts +0 -82
  180. package/ui/src/@/iam/svc/oidc/index.ts +0 -3
  181. package/ui/src/@/iam/svc/oidc/nonce.ts +0 -5
  182. package/ui/src/@/iam/svc/oidc/providers.ts +0 -28
  183. package/ui/src/@/iam/svc/oidc/standard.ts +0 -28
  184. package/ui/src/@/iam/svc/otp.ts +0 -18
  185. package/ui/src/@/iam/svc/passkeys/create.ts +0 -20
  186. package/ui/src/@/iam/svc/passkeys/index.ts +0 -2
  187. package/ui/src/@/iam/svc/passkeys/login.ts +0 -21
  188. package/ui/src/@/iam/svc/store.ts +0 -36
  189. package/ui/src/@/iam/svc/sync.ts +0 -18
  190. package/ui/src/@/iam/svc/transfer.ts +0 -11
  191. package/ui/src/@/iam/svc/update.ts +0 -8
  192. package/ui/src/@/iam/ui/AccountLike.ts +0 -4
  193. package/ui/src/@/iam/ui/Authenticated.svelte +0 -37
  194. package/ui/src/@/iam/ui/Authenticated.ts +0 -10
  195. package/ui/src/@/iam/ui/Authentication.svelte +0 -50
  196. package/ui/src/@/iam/ui/Authentication.ts +0 -9
  197. package/ui/src/@/iam/ui/Authorized.svelte +0 -32
  198. package/ui/src/@/iam/ui/Authorized.ts +0 -65
  199. package/ui/src/@/iam/ui/Card.svelte +0 -14
  200. package/ui/src/@/iam/ui/Card.ts +0 -7
  201. package/ui/src/@/iam/ui/Refresh.svelte +0 -39
  202. package/ui/src/@/iam/ui/credentials/Credentials.svelte +0 -26
  203. package/ui/src/@/iam/ui/credentials/Credentials.ts +0 -5
  204. package/ui/src/@/iam/ui/credentials/Provider.svelte +0 -24
  205. package/ui/src/@/iam/ui/credentials/Provider.ts +0 -5
  206. package/ui/src/@/iam/ui/credentials/index.ts +0 -1
  207. package/ui/src/@/iam/ui/credentials/passkeys/Key.svelte +0 -42
  208. package/ui/src/@/iam/ui/credentials/passkeys/Key.ts +0 -29
  209. package/ui/src/@/iam/ui/credentials/passkeys/Manager.svelte +0 -83
  210. package/ui/src/@/iam/ui/credentials/passkeys/Manager.ts +0 -5
  211. package/ui/src/@/iam/ui/credentials/passkeys/Passkeys.svelte +0 -39
  212. package/ui/src/@/iam/ui/credentials/passkeys/Summary.svelte +0 -27
  213. package/ui/src/@/iam/ui/credentials/passkeys/Summary.ts +0 -5
  214. package/ui/src/@/iam/ui/credentials/passkeys/index.ts +0 -1
  215. package/ui/src/@/iam/ui/credentials/providers.ts +0 -15
  216. package/ui/src/@/iam/ui/credentials/transfer/Qr.svelte +0 -24
  217. package/ui/src/@/iam/ui/credentials/transfer/Qr.ts +0 -3
  218. package/ui/src/@/iam/ui/credentials/transfer/Transfer.svelte +0 -48
  219. package/ui/src/@/iam/ui/credentials/transfer/Transfer.ts +0 -5
  220. package/ui/src/@/iam/ui/credentials/transfer/index.ts +0 -1
  221. package/ui/src/@/iam/ui/index.ts +0 -3
  222. package/ui/src/@/iam/ui/intl/built.js +0 -79
  223. package/ui/src/@/iam/ui/intl/context.yaml +0 -91
  224. package/ui/src/@/iam/ui/intl/en-US.yaml +0 -64
  225. package/ui/src/@/iam/ui/intl/index.ts +0 -10
  226. package/ui/src/@/iam/ui/intl/types.ts +0 -70
  227. package/ui/src/@/iam/ui/oidc/Authentication.svelte +0 -16
  228. package/ui/src/@/iam/ui/oidc/Authentication.ts +0 -5
  229. package/ui/src/@/iam/ui/oidc/Button.svelte +0 -36
  230. package/ui/src/@/iam/ui/oidc/Button.ts +0 -11
  231. package/ui/src/@/iam/ui/oidc/Refresh.svelte +0 -16
  232. package/ui/src/@/iam/ui/oidc/icons/Apple.svelte +0 -19
  233. package/ui/src/@/iam/ui/oidc/icons/Google.svelte +0 -31
  234. package/ui/src/@/iam/ui/oidc/icons/index.ts +0 -11
  235. package/ui/src/@/iam/ui/oidc/index.ts +0 -2
  236. package/ui/src/@/iam/ui/passkey/Authentication.svelte +0 -64
  237. package/ui/src/@/iam/ui/passkey/Authentication.ts +0 -8
  238. package/ui/src/@/iam/ui/passkey/Create.svelte +0 -53
  239. package/ui/src/@/iam/ui/passkey/Create.ts +0 -7
  240. package/ui/src/@/iam/ui/passkey/Login.svelte +0 -29
  241. package/ui/src/@/iam/ui/passkey/Refresh.svelte +0 -29
  242. package/ui/src/@/iam/ui/passkey/index.ts +0 -2
  243. package/ui/src/@/iam/ui/password/Authentication.svelte +0 -19
  244. package/ui/src/@/iam/ui/password/Authentication.ts +0 -8
  245. package/ui/src/@/iam/ui/password/Form.svelte +0 -151
  246. package/ui/src/@/iam/ui/password/Form.ts +0 -6
  247. package/ui/src/@/iam/ui/password/Password.svelte +0 -39
  248. package/ui/src/@/iam/ui/password/Password.ts +0 -6
  249. package/ui/src/@/iam/ui/password/Refresh.svelte +0 -5
  250. package/ui/src/@/iam/ui/password/index.ts +0 -2
  251. package/ui/src/@/net/index.ts +0 -1
  252. package/ui/src/@/net/svc/index.ts +0 -3
  253. package/ui/src/@/net/svc/origin.ts +0 -8
  254. package/ui/src/@/net/svc/query.test.ts +0 -45
  255. package/ui/src/@/net/svc/query.ts +0 -25
  256. package/ui/src/@/passkeys/index.ts +0 -1
  257. package/ui/src/@/passkeys/svc/add.ts +0 -15
  258. package/ui/src/@/passkeys/svc/create.ts +0 -58
  259. package/ui/src/@/passkeys/svc/credentials/convert.ts +0 -32
  260. package/ui/src/@/passkeys/svc/credentials/create.ts +0 -34
  261. package/ui/src/@/passkeys/svc/credentials/get.ts +0 -14
  262. package/ui/src/@/passkeys/svc/credentials/index.ts +0 -3
  263. package/ui/src/@/passkeys/svc/credentials/key.ts +0 -10
  264. package/ui/src/@/passkeys/svc/get.ts +0 -10
  265. package/ui/src/@/passkeys/svc/index.ts +0 -6
  266. package/ui/src/@/passkeys/svc/net/CreationResponse.ts +0 -15
  267. package/ui/src/@/passkeys/svc/net/Passkey.ts +0 -8
  268. package/ui/src/@/passkeys/svc/net/RequestResponse.ts +0 -12
  269. package/ui/src/@/passkeys/svc/net/challenges/Options.ts +0 -21
  270. package/ui/src/@/passkeys/svc/net/challenges/index.ts +0 -2
  271. package/ui/src/@/passkeys/svc/net/challenges/interface.ts +0 -16
  272. package/ui/src/@/passkeys/svc/net/index.ts +0 -4
  273. package/ui/src/@/passkeys/svc/net/interface.ts +0 -29
  274. package/ui/src/@/passkeys/svc/remove.ts +0 -13
  275. package/ui/src/@/passkeys/svc/request.ts +0 -50
  276. package/ui/src/@/passkeys/svc/store.ts +0 -13
  277. package/ui/src/@/passkeys/svc/supported.ts +0 -1
  278. package/ui/src/@/passkeys/ui/aaguid.json +0 -150
  279. package/ui/src/@/realtime/events.ts +0 -1
  280. package/ui/src/@/realtime/index.ts +0 -1
  281. package/ui/src/@/realtime/rc.ts +0 -13
  282. package/ui/src/@/realtime/svc/connect.ts +0 -67
  283. package/ui/src/@/realtime/svc/events.ts +0 -17
  284. package/ui/src/@/realtime/svc/index.ts +0 -5
  285. package/ui/src/@/realtime/svc/net/Message.ts +0 -6
  286. package/ui/src/@/realtime/svc/net/index.ts +0 -2
  287. package/ui/src/@/realtime/svc/net/interface.ts +0 -13
  288. package/ui/src/@/realtime/svc/reset.ts +0 -5
  289. package/ui/src/@/realtime/svc/status.ts +0 -12
  290. package/ui/src/@/realtime/svc/store.ts +0 -30
  291. package/ui/src/@/realtime/svc/time.ts +0 -15
  292. package/ui/src/app.d.ts +0 -20
  293. package/ui/src/app.html +0 -13
  294. package/ui/src/config/index.ts +0 -70
  295. package/ui/src/lib/assets/favicon.svg +0 -1
  296. package/ui/src/lib/components/clipboard/Clipboard.svelte +0 -63
  297. package/ui/src/lib/components/clipboard/Clipboard.ts +0 -12
  298. package/ui/src/lib/components/clipboard/index.ts +0 -1
  299. package/ui/src/lib/components/dismissable/Dismissable.svelte +0 -81
  300. package/ui/src/lib/components/dismissable/Dismissable.ts +0 -7
  301. package/ui/src/lib/components/dismissable/index.ts +0 -1
  302. package/ui/src/lib/components/dropdown/Back.svelte +0 -14
  303. package/ui/src/lib/components/dropdown/Back.ts +0 -3
  304. package/ui/src/lib/components/dropdown/Content.svelte +0 -76
  305. package/ui/src/lib/components/dropdown/Content.ts +0 -13
  306. package/ui/src/lib/components/dropdown/Context.ts +0 -18
  307. package/ui/src/lib/components/dropdown/Group.svelte +0 -24
  308. package/ui/src/lib/components/dropdown/Group.ts +0 -8
  309. package/ui/src/lib/components/dropdown/GroupContext.ts +0 -15
  310. package/ui/src/lib/components/dropdown/Item.svelte +0 -31
  311. package/ui/src/lib/components/dropdown/Item.ts +0 -5
  312. package/ui/src/lib/components/dropdown/Layer.svelte +0 -11
  313. package/ui/src/lib/components/dropdown/Layer.ts +0 -7
  314. package/ui/src/lib/components/dropdown/Root.svelte +0 -88
  315. package/ui/src/lib/components/dropdown/Root.ts +0 -6
  316. package/ui/src/lib/components/dropdown/Separator.svelte +0 -13
  317. package/ui/src/lib/components/dropdown/Separator.ts +0 -5
  318. package/ui/src/lib/components/dropdown/Trigger.svelte +0 -33
  319. package/ui/src/lib/components/dropdown/Trigger.ts +0 -5
  320. package/ui/src/lib/components/dropdown/index.ts +0 -8
  321. package/ui/src/lib/components/fullscreen/Fullscreen.svelte +0 -97
  322. package/ui/src/lib/components/fullscreen/Fullscreen.ts +0 -18
  323. package/ui/src/lib/components/fullscreen/Overlay.svelte +0 -15
  324. package/ui/src/lib/components/fullscreen/Overlay.ts +0 -7
  325. package/ui/src/lib/components/fullscreen/index.ts +0 -2
  326. package/ui/src/lib/components/hold/Hold.svelte +0 -133
  327. package/ui/src/lib/components/hold/Hold.ts +0 -23
  328. package/ui/src/lib/components/hold/index.ts +0 -1
  329. package/ui/src/lib/components/scrollable/Scrollable.svelte +0 -49
  330. package/ui/src/lib/components/scrollable/Scrollable.ts +0 -117
  331. package/ui/src/lib/components/scrollable/index.ts +0 -2
  332. package/ui/src/lib/components/shake/Shake.svelte +0 -62
  333. package/ui/src/lib/components/shake/Shake.ts +0 -7
  334. package/ui/src/lib/components/shake/index.ts +0 -1
  335. package/ui/src/lib/components/share/Share.svelte +0 -58
  336. package/ui/src/lib/components/share/Share.ts +0 -9
  337. package/ui/src/lib/components/share/index.ts +0 -1
  338. package/ui/src/lib/components/shell/Attention.svelte +0 -11
  339. package/ui/src/lib/components/shell/Attention.ts +0 -6
  340. package/ui/src/lib/components/shell/Header.svelte +0 -18
  341. package/ui/src/lib/components/shell/Header.ts +0 -7
  342. package/ui/src/lib/components/shell/Screen.svelte +0 -28
  343. package/ui/src/lib/components/shell/Screen.ts +0 -11
  344. package/ui/src/lib/components/shell/Sticky.svelte +0 -23
  345. package/ui/src/lib/components/shell/Sticky.ts +0 -8
  346. package/ui/src/lib/components/shell/Underlay.svelte +0 -21
  347. package/ui/src/lib/components/shell/Underlay.ts +0 -6
  348. package/ui/src/lib/components/shell/index.ts +0 -6
  349. package/ui/src/lib/components/shell/nav/Actions.svelte +0 -31
  350. package/ui/src/lib/components/shell/nav/Actions.ts +0 -16
  351. package/ui/src/lib/components/shell/nav/Back.svelte +0 -20
  352. package/ui/src/lib/components/shell/nav/Back.ts +0 -9
  353. package/ui/src/lib/components/shell/nav/Bar.svelte +0 -24
  354. package/ui/src/lib/components/shell/nav/Bar.ts +0 -3
  355. package/ui/src/lib/components/shell/nav/Button.svelte +0 -64
  356. package/ui/src/lib/components/shell/nav/Button.ts +0 -7
  357. package/ui/src/lib/components/shell/nav/Nav.svelte +0 -62
  358. package/ui/src/lib/components/shell/nav/Nav.ts +0 -35
  359. package/ui/src/lib/components/shell/nav/Return.svelte +0 -29
  360. package/ui/src/lib/components/shell/nav/Return.ts +0 -15
  361. package/ui/src/lib/components/shell/nav/Sections.svelte +0 -58
  362. package/ui/src/lib/components/shell/nav/Sections.ts +0 -6
  363. package/ui/src/lib/components/shell/nav/Toolbar.svelte +0 -73
  364. package/ui/src/lib/components/shell/nav/Toolbar.ts +0 -3
  365. package/ui/src/lib/components/shell/nav/history.ts +0 -36
  366. package/ui/src/lib/components/shell/nav/index.ts +0 -5
  367. package/ui/src/lib/components/shell/nav/store.ts +0 -24
  368. package/ui/src/lib/components/ui/alert/alert-action.svelte +0 -20
  369. package/ui/src/lib/components/ui/alert/alert-description.svelte +0 -23
  370. package/ui/src/lib/components/ui/alert/alert-title.svelte +0 -23
  371. package/ui/src/lib/components/ui/alert/alert.svelte +0 -43
  372. package/ui/src/lib/components/ui/alert/index.ts +0 -17
  373. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-action.svelte +0 -27
  374. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-cancel.svelte +0 -27
  375. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-content.svelte +0 -32
  376. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-description.svelte +0 -17
  377. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-footer.svelte +0 -23
  378. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-header.svelte +0 -20
  379. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-media.svelte +0 -20
  380. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-overlay.svelte +0 -17
  381. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-portal.svelte +0 -7
  382. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-title.svelte +0 -17
  383. package/ui/src/lib/components/ui/alert-dialog/alert-dialog-trigger.svelte +0 -7
  384. package/ui/src/lib/components/ui/alert-dialog/alert-dialog.svelte +0 -7
  385. package/ui/src/lib/components/ui/alert-dialog/index.ts +0 -40
  386. package/ui/src/lib/components/ui/badge/badge.svelte +0 -49
  387. package/ui/src/lib/components/ui/badge/index.ts +0 -2
  388. package/ui/src/lib/components/ui/button/button.svelte +0 -82
  389. package/ui/src/lib/components/ui/button/index.ts +0 -17
  390. package/ui/src/lib/components/ui/button-group/button-group-separator.svelte +0 -23
  391. package/ui/src/lib/components/ui/button-group/button-group-text.svelte +0 -28
  392. package/ui/src/lib/components/ui/button-group/button-group.svelte +0 -46
  393. package/ui/src/lib/components/ui/button-group/index.ts +0 -15
  394. package/ui/src/lib/components/ui/card/card-action.svelte +0 -23
  395. package/ui/src/lib/components/ui/card/card-content.svelte +0 -20
  396. package/ui/src/lib/components/ui/card/card-description.svelte +0 -20
  397. package/ui/src/lib/components/ui/card/card-footer.svelte +0 -20
  398. package/ui/src/lib/components/ui/card/card-header.svelte +0 -23
  399. package/ui/src/lib/components/ui/card/card-title.svelte +0 -20
  400. package/ui/src/lib/components/ui/card/card.svelte +0 -22
  401. package/ui/src/lib/components/ui/card/index.ts +0 -25
  402. package/ui/src/lib/components/ui/checkbox/checkbox.svelte +0 -39
  403. package/ui/src/lib/components/ui/checkbox/index.ts +0 -6
  404. package/ui/src/lib/components/ui/collapsible/collapsible-content.svelte +0 -7
  405. package/ui/src/lib/components/ui/collapsible/collapsible-trigger.svelte +0 -7
  406. package/ui/src/lib/components/ui/collapsible/collapsible.svelte +0 -20
  407. package/ui/src/lib/components/ui/collapsible/index.ts +0 -13
  408. package/ui/src/lib/components/ui/input/index.ts +0 -7
  409. package/ui/src/lib/components/ui/input/input.svelte +0 -48
  410. package/ui/src/lib/components/ui/input-otp/index.ts +0 -15
  411. package/ui/src/lib/components/ui/input-otp/input-otp-group.svelte +0 -20
  412. package/ui/src/lib/components/ui/input-otp/input-otp-separator.svelte +0 -27
  413. package/ui/src/lib/components/ui/input-otp/input-otp-slot.svelte +0 -31
  414. package/ui/src/lib/components/ui/input-otp/input-otp.svelte +0 -23
  415. package/ui/src/lib/components/ui/item/index.ts +0 -34
  416. package/ui/src/lib/components/ui/item/item-actions.svelte +0 -20
  417. package/ui/src/lib/components/ui/item/item-content.svelte +0 -23
  418. package/ui/src/lib/components/ui/item/item-description.svelte +0 -23
  419. package/ui/src/lib/components/ui/item/item-footer.svelte +0 -20
  420. package/ui/src/lib/components/ui/item/item-group.svelte +0 -21
  421. package/ui/src/lib/components/ui/item/item-header.svelte +0 -20
  422. package/ui/src/lib/components/ui/item/item-media.svelte +0 -42
  423. package/ui/src/lib/components/ui/item/item-separator.svelte +0 -19
  424. package/ui/src/lib/components/ui/item/item-title.svelte +0 -20
  425. package/ui/src/lib/components/ui/item/item.svelte +0 -61
  426. package/ui/src/lib/components/ui/kbd/index.ts +0 -10
  427. package/ui/src/lib/components/ui/kbd/kbd-group.svelte +0 -20
  428. package/ui/src/lib/components/ui/kbd/kbd.svelte +0 -23
  429. package/ui/src/lib/components/ui/label/index.ts +0 -7
  430. package/ui/src/lib/components/ui/label/label.svelte +0 -20
  431. package/ui/src/lib/components/ui/progress/index.ts +0 -7
  432. package/ui/src/lib/components/ui/progress/progress.svelte +0 -27
  433. package/ui/src/lib/components/ui/select/index.ts +0 -37
  434. package/ui/src/lib/components/ui/select/select-content.svelte +0 -45
  435. package/ui/src/lib/components/ui/select/select-group-heading.svelte +0 -21
  436. package/ui/src/lib/components/ui/select/select-group.svelte +0 -17
  437. package/ui/src/lib/components/ui/select/select-item.svelte +0 -40
  438. package/ui/src/lib/components/ui/select/select-label.svelte +0 -20
  439. package/ui/src/lib/components/ui/select/select-portal.svelte +0 -7
  440. package/ui/src/lib/components/ui/select/select-scroll-down-button.svelte +0 -20
  441. package/ui/src/lib/components/ui/select/select-scroll-up-button.svelte +0 -20
  442. package/ui/src/lib/components/ui/select/select-separator.svelte +0 -18
  443. package/ui/src/lib/components/ui/select/select-trigger.svelte +0 -29
  444. package/ui/src/lib/components/ui/select/select.svelte +0 -11
  445. package/ui/src/lib/components/ui/separator/index.ts +0 -7
  446. package/ui/src/lib/components/ui/separator/separator.svelte +0 -23
  447. package/ui/src/lib/components/ui/spinner/index.ts +0 -1
  448. package/ui/src/lib/components/ui/spinner/spinner.svelte +0 -18
  449. package/ui/src/lib/components/ui/tabs/index.ts +0 -18
  450. package/ui/src/lib/components/ui/tabs/tabs-content.svelte +0 -17
  451. package/ui/src/lib/components/ui/tabs/tabs-list.svelte +0 -40
  452. package/ui/src/lib/components/ui/tabs/tabs-trigger.svelte +0 -23
  453. package/ui/src/lib/components/ui/tabs/tabs.svelte +0 -19
  454. package/ui/src/lib/components/ui/textarea/index.ts +0 -7
  455. package/ui/src/lib/components/ui/textarea/textarea.svelte +0 -22
  456. package/ui/src/lib/intl/bcp.ts +0 -25
  457. package/ui/src/lib/intl/built.js +0 -18
  458. package/ui/src/lib/intl/context.yaml +0 -18
  459. package/ui/src/lib/intl/en-US.yaml +0 -6
  460. package/ui/src/lib/intl/index.ts +0 -65
  461. package/ui/src/lib/intl/types.ts +0 -19
  462. package/ui/src/lib/tools/ago.ts +0 -10
  463. package/ui/src/lib/tools/assert.ts +0 -3
  464. package/ui/src/lib/tools/cap.ts +0 -5
  465. package/ui/src/lib/tools/clicks.ts +0 -25
  466. package/ui/src/lib/tools/contextmenu.ts +0 -19
  467. package/ui/src/lib/tools/convert.ts +0 -32
  468. package/ui/src/lib/tools/currency.test.ts +0 -10
  469. package/ui/src/lib/tools/currency.ts +0 -55
  470. package/ui/src/lib/tools/date.test.ts +0 -21
  471. package/ui/src/lib/tools/date.ts +0 -35
  472. package/ui/src/lib/tools/delay.ts +0 -7
  473. package/ui/src/lib/tools/image.ts +0 -39
  474. package/ui/src/lib/tools/index.ts +0 -20
  475. package/ui/src/lib/tools/location.ts +0 -41
  476. package/ui/src/lib/tools/metronome.ts +0 -11
  477. package/ui/src/lib/tools/mq.ts +0 -84
  478. package/ui/src/lib/tools/onsubmit.ts +0 -21
  479. package/ui/src/lib/tools/random.ts +0 -15
  480. package/ui/src/lib/tools/search.ts +0 -25
  481. package/ui/src/lib/tools/timeout.ts +0 -26
  482. package/ui/src/lib/tools/transition.ts +0 -207
  483. package/ui/src/lib/tools/types.ts +0 -3
  484. package/ui/src/lib/tools/uuid.test.ts +0 -28
  485. package/ui/src/lib/tools/uuid.ts +0 -9
  486. package/ui/src/lib/typeset.css +0 -502
  487. package/ui/src/lib/utils.ts +0 -12
  488. package/ui/src/routes/(private)/+layout.svelte +0 -112
  489. package/ui/src/routes/(private)/+page.svelte +0 -7
  490. package/ui/src/routes/(private)/[component]/+page.svelte +0 -77
  491. package/ui/src/routes/+layout.svelte +0 -25
  492. package/ui/src/routes/+layout.ts +0 -14
  493. package/ui/src/routes/layout.css +0 -232
  494. package/ui/svelte.config.js +0 -36
  495. package/ui/tools/feat.js +0 -43
  496. package/ui/tools/hooks/README.md +0 -13
  497. package/ui/tools/hooks/guard-intl.sh +0 -40
  498. package/ui/tools/shad.js +0 -7
  499. package/ui/tsconfig.json +0 -20
  500. package/ui/vite.config.ts +0 -8
  501. /package/ui/{static → dist}/robots.txt +0 -0
@@ -1,28 +0,0 @@
1
- import { describe, it, expect } from 'vitest'
2
- import { toUuid } from './uuid'
3
-
4
- describe('toUuid', () => {
5
- it('formats 32-hex into 8-4-4-4-12 UUID shape', () => {
6
- expect(toUuid('0123456789abcdef0123456789abcdef'))
7
- .toBe('01234567-89ab-cdef-0123-456789abcdef')
8
- })
9
-
10
- it('lowercases hex', () => {
11
- expect(toUuid('0123456789ABCDEF0123456789ABCDEF'))
12
- .toBe('01234567-89ab-cdef-0123-456789abcdef')
13
- })
14
-
15
- it('is deterministic', () => {
16
- const hex = 'deadbeefcafebabe0011223344556677'
17
-
18
- expect(toUuid(hex)).toBe(toUuid(hex))
19
- })
20
-
21
- it.each([
22
- ['short', 'abc'],
23
- ['long', '0123456789abcdef0123456789abcdef00'],
24
- ['non-hex', '0123456789abcdef0123456789abcdeZ'],
25
- ])('throws on %s input', (_, input) => {
26
- expect(() => toUuid(input)).toThrow()
27
- })
28
- })
@@ -1,9 +0,0 @@
1
- const HEX32 = /^[0-9a-f]{32}$/i
2
-
3
- export function toUuid(hex32: string): string {
4
- if (!HEX32.test(hex32)) throw new Error(`toUuid: expected 32-hex, got ${hex32}`)
5
-
6
- const h = hex32.toLowerCase()
7
-
8
- return `${h.slice(0, 8)}-${h.slice(8, 12)}-${h.slice(12, 16)}-${h.slice(16, 20)}-${h.slice(20, 32)}`
9
- }
@@ -1,502 +0,0 @@
1
- /*
2
- * shadcn/typeset — vendored.
3
- *
4
- * Source: https://ui.shadcn.com/typeset.css (docs https://ui.shadcn.com/docs/typeset)
5
- * Snapshot: 2026-08-05
6
- *
7
- * Typeset has no registry entry and no npm package — it ships as a file plus a
8
- * web builder, so an update is a diff against a fresh download. One rule
9
- * deviates from upstream, marked at the rule; keep every other change out of
10
- * this file so that diff stays readable.
11
- *
12
- * This file ships as-is: the globals item installs it at the consumer's
13
- * src/lib/typeset.css and merges the matching @import into their stylesheet.
14
- */
15
-
16
- @layer components {
17
- .typeset {
18
- --typeset-font-body: inherit;
19
- --typeset-font-heading: var(--font-heading);
20
- --typeset-font-mono: var(--font-mono);
21
- --typeset-size: 1em;
22
- --typeset-leading: 1.75;
23
- --typeset-flow: 1.25em;
24
- }
25
- }
26
-
27
- @layer components {
28
- .typeset {
29
- font-family: var(--typeset-font-body);
30
- font-size: calc(var(--typeset-size) * 1.125);
31
- line-height: var(--typeset-leading);
32
- color: var(--color-foreground, currentColor);
33
- overflow-wrap: break-word;
34
- margin-trim: block-start;
35
-
36
- @media (min-width: 48rem), print {
37
- font-size: var(--typeset-size);
38
- }
39
-
40
- --typeset-muted: var(
41
- --color-muted-foreground,
42
- color-mix(in oklab, currentColor 60%, transparent)
43
- );
44
- --typeset-rule: var(
45
- --color-border,
46
- color-mix(in oklab, currentColor 20%, transparent)
47
- );
48
- }
49
-
50
- .typeset
51
- *:not(
52
- :where(
53
- .not-typeset,
54
- [data-not-typeset],
55
- .not-typeset *,
56
- [data-not-typeset] *
57
- )
58
- ) {
59
- /* Paragraphs. */
60
- &:where(p) {
61
- margin-block-start: var(--typeset-flow);
62
- margin-block-end: 0;
63
- }
64
-
65
- /* Headings. */
66
- &:where(h1, h2, h3, h4, h5, h6) {
67
- color: var(--color-foreground, currentColor);
68
- font-family: var(--typeset-font-heading);
69
- font-weight: 600;
70
- margin-block-end: 0;
71
- }
72
- &:where(h1) {
73
- font-size: 1.75em;
74
- line-height: 1.3;
75
- margin-block-start: var(--typeset-flow);
76
- }
77
- &:where(h2) {
78
- font-size: 1.25em;
79
- line-height: 1.4;
80
- margin-block-start: calc(var(--typeset-flow) * 1.4);
81
- }
82
- &:where(h3) {
83
- font-size: 1.125em;
84
- line-height: 1.45;
85
- margin-block-start: var(--typeset-flow);
86
- }
87
- &:where(h4) {
88
- font-size: 1em;
89
- line-height: 1.5;
90
- margin-block-start: var(--typeset-flow);
91
- }
92
- &:where(h5) {
93
- font-size: 0.875em;
94
- line-height: 1.5;
95
- font-weight: 500;
96
- color: var(--typeset-muted);
97
- margin-block-start: calc(var(--typeset-flow) / 0.875);
98
- }
99
- &:where(h6) {
100
- font-size: 0.8125em;
101
- line-height: 1.5;
102
- font-weight: 500;
103
- letter-spacing: 0.08em;
104
- text-transform: uppercase;
105
- color: var(--typeset-muted);
106
- margin-block-start: calc(var(--typeset-flow) / 0.8125);
107
- }
108
- /* Anchors. */
109
- &:where([id]) {
110
- scroll-margin-block-start: var(--typeset-flow);
111
- }
112
-
113
- /* Headings own the space below them. */
114
- &:where(h1 + *, h2 + *, h3 + *, h4 + *, h5 + *, h6 + *) {
115
- margin-block-start: 1em;
116
- }
117
- &:where(:is(h1, h2, h3, h4) :is(code)) {
118
- font-size: 0.9em;
119
- }
120
-
121
- /* Links. */
122
- &:where(a) {
123
- color: inherit;
124
- font-weight: 500;
125
- text-decoration-line: underline;
126
- text-decoration-color: color-mix(in oklab, currentColor 30%, transparent);
127
- }
128
- &:where(a:hover) {
129
- text-decoration-color: currentColor;
130
- }
131
- &:where(a:focus-visible) {
132
- outline: 2px solid var(--color-ring, currentColor);
133
- outline-offset: 2px;
134
- border-radius: 0.125em;
135
- }
136
- &:where(:is(h1, h2, h3, h4, h5, h6) :is(a)) {
137
- font-weight: inherit;
138
- }
139
-
140
- /* Inline semantics. */
141
- &:where(strong, b) {
142
- font-weight: 600;
143
- }
144
- &:where(:is(h1, h2, h3, h4) :is(strong, b)) {
145
- font-weight: 600;
146
- }
147
- &:where(mark) {
148
- background-color: color-mix(
149
- in oklab,
150
- oklch(0.86 0.17 95) 40%,
151
- transparent
152
- );
153
- color: inherit;
154
- padding: 0.05em 0.15em;
155
- border-radius: 0.2em;
156
- }
157
- &:where(abbr[title]) {
158
- text-decoration-line: underline;
159
- text-decoration-style: dotted;
160
- text-underline-offset: 0.2em;
161
- cursor: help;
162
- }
163
- &:where(del, s) {
164
- color: var(--typeset-muted);
165
- text-decoration-line: line-through;
166
- }
167
- &:where(sup, sub) {
168
- font-size: 0.75em;
169
- line-height: 0;
170
- position: relative;
171
- vertical-align: baseline;
172
- }
173
- &:where(sup) {
174
- top: -0.5em;
175
- }
176
- &:where(sub) {
177
- bottom: -0.25em;
178
- }
179
- &:where(sup a) {
180
- text-decoration-line: none;
181
- font-weight: 500;
182
- }
183
-
184
- /* Lists. */
185
- &:where(ul) {
186
- list-style-type: disc;
187
- }
188
- &:where(ol) {
189
- list-style-type: decimal;
190
- }
191
- /* Scoped to the root: upstream's bare `ul ul` counts a structural list
192
- * wrapping the container as a level. */
193
- &:where(.typeset ul ul) {
194
- list-style-type: circle;
195
- }
196
- &:where(.typeset ul ul ul) {
197
- list-style-type: square;
198
- }
199
- &:where(ol[type="a" i]) {
200
- list-style-type: lower-alpha;
201
- }
202
- &:where(ol[type="i" i]) {
203
- list-style-type: lower-roman;
204
- }
205
- &:where(ol[type="A" s]) {
206
- list-style-type: upper-alpha;
207
- }
208
- &:where(ol[type="I" s]) {
209
- list-style-type: upper-roman;
210
- }
211
- &:where(ul, ol) {
212
- margin-block-start: var(--typeset-flow);
213
- margin-block-end: 0;
214
- padding-inline-start: 1.5em;
215
- }
216
- &:where(li) {
217
- margin-block-start: 0.5em;
218
- padding-inline-start: 0.4em;
219
- }
220
- &:where(li > p, li > ul, li > ol) {
221
- margin-block-start: 0.5em;
222
- }
223
- &:where(ul > li)::marker {
224
- color: var(--typeset-muted);
225
- }
226
- &:where(ol > li)::marker {
227
- color: var(--typeset-muted);
228
- }
229
-
230
- /* GFM task lists. */
231
- &:where(ul.contains-task-list) {
232
- list-style-type: none;
233
- padding-inline-start: 0.25em;
234
- }
235
- &:where(li.task-list-item > input[type="checkbox"]) {
236
- margin-inline-end: 0.5em;
237
- vertical-align: -0.1em;
238
- accent-color: var(--color-primary, currentColor);
239
- }
240
-
241
- /* Disclosures. */
242
- &:where(details) {
243
- margin-block-start: var(--typeset-flow);
244
- margin-block-end: 0;
245
- }
246
- &:where(summary) {
247
- cursor: pointer;
248
- font-weight: 500;
249
- }
250
- &:where(summary)::marker {
251
- color: var(--typeset-muted);
252
- }
253
-
254
- /* Keyboard keys. */
255
- &:where(kbd) {
256
- font-family: inherit;
257
- font-size: 0.85em;
258
- font-weight: 500;
259
- border: 1px solid var(--typeset-rule);
260
- border-block-end-width: 2px;
261
- border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
262
- padding: 0.0625em 0.35em;
263
- }
264
-
265
- /* Definition lists. */
266
- &:where(dl) {
267
- margin-block-start: var(--typeset-flow);
268
- margin-block-end: 0;
269
- }
270
- &:where(dt) {
271
- font-weight: 500;
272
- margin-block-start: 1em;
273
- }
274
- &:where(dt + dt) {
275
- margin-block-start: 0.25em;
276
- }
277
- &:where(dd) {
278
- margin-block-start: 0.25em;
279
- margin-inline-start: 0;
280
- padding-inline-start: 1em;
281
- color: var(--typeset-muted);
282
- }
283
-
284
- /* Inline code. */
285
- &:where(:not(pre) > code) {
286
- background-color: var(
287
- --color-muted,
288
- color-mix(in oklab, currentColor 8%, transparent)
289
- );
290
- font-family: var(--typeset-font-mono);
291
- font-size: 0.85em;
292
- border-radius: min(calc(var(--radius, 0.5em) * 0.6), 0.35em);
293
- padding: 0.125em 0.3em;
294
- }
295
-
296
- /* Code blocks. */
297
- &:where(pre) {
298
- background-color: var(
299
- --color-muted,
300
- color-mix(in oklab, currentColor 8%, transparent)
301
- );
302
- font-family: var(--typeset-font-mono);
303
- font-size: 0.875em;
304
- line-height: 1.5;
305
- tab-size: 2;
306
- direction: ltr;
307
- border-radius: var(--radius, 0.5em);
308
- padding: 0.75em 1em;
309
- overflow-x: auto;
310
- margin-block-start: calc(var(--typeset-flow) / 0.875);
311
- margin-block-end: 0;
312
- }
313
- &:where(pre code) {
314
- background-color: transparent;
315
- font-family: inherit;
316
- font-size: inherit;
317
- padding: 0;
318
- border-radius: 0;
319
- }
320
-
321
- /* Blockquote. */
322
- &:where(blockquote) {
323
- border-inline-start: 2px solid var(--typeset-rule);
324
- padding-inline-start: 1em;
325
- margin-block-start: var(--typeset-flow);
326
- margin-block-end: 0;
327
- margin-inline: 0;
328
- }
329
-
330
- /* Dividers. */
331
- &:where(hr) {
332
- border: 0;
333
- border-block-start: 1px solid var(--typeset-rule);
334
- margin-block-start: calc(var(--typeset-flow) * 2.4);
335
- margin-block-end: 0;
336
- }
337
- &:where(hr + h1, hr + h2, hr + h3, hr + h4) {
338
- margin-block-start: var(--typeset-flow);
339
- }
340
-
341
- /* GFM footnotes. */
342
- &:where(.footnotes, [data-footnotes]) {
343
- margin-block-start: calc(var(--typeset-flow) * 2);
344
- border-block-start: 1px solid var(--typeset-rule);
345
- padding-block-start: var(--typeset-flow);
346
- font-size: 0.875em;
347
- color: var(--typeset-muted);
348
- }
349
-
350
- /* Math. */
351
- &:where(math[display="block"]) {
352
- margin-block-start: var(--typeset-flow);
353
- margin-block-end: 0;
354
- overflow-x: auto;
355
- overflow-y: hidden;
356
- padding-block: 0.25em;
357
- }
358
-
359
- /* Media. */
360
- &:where(img, video) {
361
- border-radius: var(--radius, 0.5em);
362
- max-width: 100%;
363
- height: auto;
364
- margin-block-start: var(--typeset-flow);
365
- margin-block-end: 0;
366
- }
367
- &:where(p img) {
368
- margin-block-start: 0;
369
- }
370
- &:where(figure) {
371
- margin-block-start: var(--typeset-flow);
372
- margin-block-end: 0;
373
- margin-inline: 0;
374
- }
375
- &:where(figcaption, caption) {
376
- color: var(--typeset-muted);
377
- font-size: 0.875em;
378
- text-align: center;
379
- margin-block-start: calc(0.75em / 0.875);
380
- }
381
- &:where(caption) {
382
- caption-side: bottom;
383
- }
384
-
385
- /* Tables. Separators sit on cells, not tr:last-child: append-safe.
386
- Bare tables stay real tables (keep their semantics) and wrap to fit. */
387
- &:where(table) {
388
- max-width: 100%;
389
- font-size: 1em;
390
- line-height: 1.5;
391
- font-variant-numeric: tabular-nums;
392
- border-collapse: separate;
393
- border-spacing: 0;
394
- border-block-end: 1px solid var(--typeset-rule);
395
- margin-block-start: var(--typeset-flow);
396
- margin-block-end: 0;
397
- }
398
-
399
- /* Horizontal scroll for any wide block. Wrap it and the wrapper owns the
400
- flow margin. Tables shrink to fit, so widen the table to make it scroll
401
- instead of compress. */
402
- &:where(.typeset-scroll) {
403
- overflow-x: auto;
404
- margin-block-start: var(--typeset-flow);
405
- }
406
- &:where(.typeset-scroll > *) {
407
- margin-block-start: 0;
408
- }
409
- &:where(.typeset-scroll table) {
410
- width: max-content;
411
- max-width: none;
412
- }
413
- &:where(thead th) {
414
- font-weight: 500;
415
- text-align: start;
416
- white-space: nowrap;
417
- padding: 0.65em 1em;
418
- }
419
- &:where(:is(tbody, tfoot) :is(td, th)) {
420
- padding: 0.75em 1em;
421
- text-align: start;
422
- vertical-align: top;
423
- border-block-start: 1px solid var(--typeset-rule);
424
- }
425
- &:where(tbody th, tfoot th) {
426
- font-weight: 500;
427
- }
428
- &:where(th:first-child, td:first-child) {
429
- padding-inline-start: 0;
430
- }
431
- &:where(th[align="center"], td[align="center"]) {
432
- text-align: center;
433
- }
434
- &:where(th[align="right"], td[align="right"]) {
435
- text-align: end;
436
- }
437
-
438
- /* Blocks inside list items keep the list's tighter rhythm. */
439
- &:where(li > blockquote, li > table, li > figure) {
440
- margin-block-start: 0.5em;
441
- }
442
- &:where(li > pre) {
443
- margin-block-start: calc(0.5em / 0.875);
444
- }
445
-
446
- @media print {
447
- &:where(pre, table, blockquote, figure) {
448
- break-inside: avoid;
449
- }
450
- &:where(h1, h2, h3, h4) {
451
- break-after: avoid;
452
- }
453
- }
454
-
455
- /* Forced colors strips the code background, so give it a border. */
456
- @media (forced-colors: active) {
457
- &:where(:not(pre) > code) {
458
- border: 1px solid;
459
- }
460
- }
461
- }
462
-
463
- /* First child adds no space above. Last so it wins ties. */
464
- .typeset
465
- > :where(:first-child):not(
466
- :where(
467
- .not-typeset,
468
- [data-not-typeset],
469
- .not-typeset *,
470
- [data-not-typeset] *
471
- )
472
- ),
473
- .typeset
474
- > :where(:first-child)
475
- > :where(:first-child):not(
476
- :where(
477
- .not-typeset,
478
- [data-not-typeset],
479
- .not-typeset *,
480
- [data-not-typeset] *
481
- )
482
- ),
483
- .typeset
484
- :where(
485
- li > :first-child,
486
- blockquote > :first-child,
487
- td > :first-child,
488
- th > :first-child,
489
- dd > :first-child,
490
- figure > :first-child,
491
- figure > picture > img
492
- ):not(
493
- :where(
494
- .not-typeset,
495
- [data-not-typeset],
496
- .not-typeset *,
497
- [data-not-typeset] *
498
- )
499
- ) {
500
- margin-block-start: 0;
501
- }
502
- }
@@ -1,12 +0,0 @@
1
- import { twMerge } from 'tailwind-merge'
2
- import { clsx, type ClassValue } from 'clsx'
3
-
4
- export function cn(...inputs: ClassValue[]) {
5
- return twMerge(clsx(inputs))
6
- }
7
-
8
- export type WithoutChild<T> = T extends { child?: any } ? Omit<T, 'child'> : T
9
-
10
- export type WithoutChildren<T> = T extends { children?: any } ? Omit<T, 'children'> : T
11
- export type WithoutChildrenOrChild<T> = WithoutChildren<WithoutChild<T>>
12
- export type WithElementRef<T, U extends HTMLElement = HTMLElement> = T & { ref?: U | null }
@@ -1,112 +0,0 @@
1
- <script lang="ts">
2
- import { LogOut, Search } from '@lucide/svelte'
3
- import { Authenticated, Authorized } from '@/iam/ui'
4
- import { logout } from '@/iam'
5
- import { only, query } from '@/configuration/ui'
6
- import { Kbd } from '$ui/kbd'
7
- import { Input } from '$ui/input'
8
- import { Button } from '$ui/button'
9
- import { apple } from '$lib/tools'
10
- import { dict } from '$lib/intl'
11
- import { meta } from '$config'
12
- import { page } from '$app/state'
13
- import { base } from '$app/paths'
14
- import { onNavigate } from '$app/navigation'
15
-
16
- const { children } = $props()
17
-
18
- /**
19
- * The title leads back to the list. Every address ends in a slash, so the way up is the
20
- * address itself on the list and one level up on a component's screen.
21
- */
22
- const home = $derived(page.url.pathname === base + '/' ? '.' : '..')
23
-
24
- // a filter is about the screen it was typed on, and the next screen is not that one
25
- onNavigate(() => query.set(''))
26
-
27
- /** What an account needs to read the values. `auth:role` in the component's manifest. */
28
- const ROLE = 'system:configuration:get'
29
-
30
- let filter = $state<HTMLInputElement | null>(null)
31
-
32
- /** With one thing left, the key does what pressing that thing does. */
33
- function enter(event: KeyboardEvent): void {
34
- if (event.key !== 'Enter') return
35
-
36
- $only?.()
37
- }
38
-
39
- // the shortcut every search field has; ⌘ on Apple, Ctrl everywhere else
40
- function shortcut(event: KeyboardEvent) {
41
- if (event.key !== 'k' || !(event.metaKey || event.ctrlKey)) return
42
-
43
- event.preventDefault()
44
- filter?.focus()
45
- filter?.select()
46
- }
47
- </script>
48
-
49
- <svelte:window onkeydown={shortcut} />
50
-
51
- <Authenticated>
52
- <div class="flex h-dvh flex-col">
53
- <!-- named, so the chrome stays put while the screen under it changes: what is not
54
- named is the page, and the page is what a view transition moves -->
55
- <header class="flex items-center gap-4 px-4 py-3" style="view-transition-name: chrome">
56
- <!-- the sides take equal space, which is what leaves the filter in the middle. Narrow,
57
- the title is gone and this side is empty: it takes no space either, so the filter
58
- starts at the edge rather than floating with nothing to sit between. -->
59
- <div class="hidden flex-1 items-center gap-4 md:flex">
60
- <h1 class="min-w-0 truncate text-lg font-medium">
61
- <a id="nav-home-link" href={home} class="hover:text-muted-foreground transition-colors"
62
- >{meta.title}</a
63
- >
64
- </h1>
65
- </div>
66
-
67
- <div class="relative w-full max-w-64 min-w-0 shrink">
68
- <Search
69
- class="text-muted-foreground pointer-events-none absolute start-2.5 top-1/2 size-3.5 -translate-y-1/2"
70
- />
71
-
72
- <Input
73
- id="nav-filter-input"
74
- type="search"
75
- bind:ref={filter}
76
- bind:value={$query}
77
- onkeydown={enter}
78
- aria-label={$dict.nav.filter}
79
- class="ps-8 pe-3 md:pe-14 [&::-webkit-search-cancel-button]:hidden"
80
- />
81
-
82
- <Kbd class="absolute end-2 top-1/2 hidden -translate-y-1/2 md:inline-flex"
83
- >{apple ? '⌘K' : 'Ctrl K'}</Kbd
84
- >
85
- </div>
86
-
87
- <!-- no `min-w-0` either: the button holds its ground and the filter gives way -->
88
- <div class="flex flex-1 justify-end">
89
- <!-- the label is the first thing to go when the header runs out of room -->
90
- <Button
91
- id="iam-logout-button"
92
- variant="ghost"
93
- aria-label={$dict.nav.signout}
94
- onclick={logout}
95
- >
96
- <LogOut />
97
- <span class="hidden md:inline">{$dict.nav.signout}</span>
98
- </Button>
99
- </div>
100
- </header>
101
-
102
- <main class="min-h-0 flex-1">
103
- <!-- the role the values API is read through, declared in `configuration.values`.
104
- Gating here rather than letting the page ask and be refused is what keeps the
105
- request from being made at all: the stores fetch when something subscribes,
106
- and nothing does. -->
107
- <Authorized role={ROLE}>
108
- {@render children()}
109
- </Authorized>
110
- </main>
111
- </div>
112
- </Authenticated>
@@ -1,7 +0,0 @@
1
- <script lang="ts">
2
- import { Configurations } from '@/configuration/ui'
3
- </script>
4
-
5
- <div class="mx-auto h-full max-w-7xl overflow-auto px-4 pb-12">
6
- <Configurations />
7
- </div>