@kardalum/plugin-sdk 0.0.0-stage → 0.16.0

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 (332) hide show
  1. package/CHANGELOG.md +118 -0
  2. package/LICENSE +202 -0
  3. package/README.md +80 -2
  4. package/dist/admin-section-registry.d.ts +34 -0
  5. package/dist/admin-section-registry.js +49 -0
  6. package/dist/built-in-serializers.d.ts +3 -0
  7. package/dist/built-in-serializers.js +18 -0
  8. package/dist/built-in-settings-schemas.d.ts +14 -0
  9. package/dist/built-in-settings-schemas.js +225 -0
  10. package/dist/built-in-value-schemas.d.ts +4 -0
  11. package/dist/built-in-value-schemas.js +47 -0
  12. package/dist/built-ins.d.ts +1 -0
  13. package/dist/built-ins.js +257 -0
  14. package/dist/capabilities.d.ts +29 -0
  15. package/dist/capabilities.js +67 -0
  16. package/dist/data-type-plugin.d.ts +28 -0
  17. package/dist/data-type-plugin.js +1 -0
  18. package/dist/datatype-validation.d.ts +26 -0
  19. package/dist/datatype-validation.js +110 -0
  20. package/dist/datatypes-entry.d.ts +4 -0
  21. package/dist/datatypes-entry.js +18 -0
  22. package/dist/define-plugin.d.ts +25 -0
  23. package/dist/define-plugin.js +51 -0
  24. package/dist/entitlement-entry.d.ts +5 -0
  25. package/dist/entitlement-entry.js +24 -0
  26. package/dist/entitlement-gate.d.ts +36 -0
  27. package/dist/entitlement-gate.js +201 -0
  28. package/dist/entitlement-types.d.ts +39 -0
  29. package/dist/entitlement-types.js +1 -0
  30. package/dist/entitlement.d.ts +57 -0
  31. package/dist/entitlement.js +170 -0
  32. package/dist/host-entry.d.ts +1 -0
  33. package/dist/host-entry.js +11 -0
  34. package/dist/icon-name.d.ts +1 -0
  35. package/dist/icon-name.js +1 -0
  36. package/dist/icons.d.ts +2 -0
  37. package/dist/icons.js +10 -0
  38. package/dist/index.d.ts +28 -0
  39. package/dist/index.js +94 -0
  40. package/dist/license-verdict-keys.d.ts +18 -0
  41. package/dist/license-verdict-keys.js +26 -0
  42. package/dist/local-host.d.ts +3 -0
  43. package/dist/local-host.js +38 -0
  44. package/dist/manifest-entry.d.ts +8 -0
  45. package/dist/manifest-entry.js +13 -0
  46. package/dist/manifest-schema.d.ts +476 -0
  47. package/dist/manifest-schema.js +823 -0
  48. package/dist/manifest.d.ts +611 -0
  49. package/dist/manifest.js +86 -0
  50. package/dist/media/media-picker.d.ts +39 -0
  51. package/dist/media/media-picker.js +447 -0
  52. package/dist/media/upload-error.d.ts +12 -0
  53. package/dist/media/upload-error.js +30 -0
  54. package/dist/plugin-context.d.ts +82 -0
  55. package/dist/plugin-context.js +77 -0
  56. package/dist/plugin-screen-context.d.ts +71 -0
  57. package/dist/plugin-screen-context.js +41 -0
  58. package/dist/read-all-pages.d.ts +23 -0
  59. package/dist/read-all-pages.js +30 -0
  60. package/dist/register-built-ins.d.ts +1 -0
  61. package/dist/register-built-ins.js +41 -0
  62. package/dist/registry.d.ts +4 -0
  63. package/dist/registry.js +17 -0
  64. package/dist/rendition-eligibility.d.ts +24 -0
  65. package/dist/rendition-eligibility.js +40 -0
  66. package/dist/richtext/block-panel.d.ts +27 -0
  67. package/dist/richtext/block-panel.js +232 -0
  68. package/dist/richtext/extensions.d.ts +19 -0
  69. package/dist/richtext/extensions.js +56 -0
  70. package/dist/richtext/insert-menu.d.ts +24 -0
  71. package/dist/richtext/insert-menu.js +142 -0
  72. package/dist/richtext/kardalum-block.d.ts +33 -0
  73. package/dist/richtext/kardalum-block.js +282 -0
  74. package/dist/richtext/style-listbox.d.ts +10 -0
  75. package/dist/richtext/style-listbox.js +69 -0
  76. package/dist/richtext/text-style-class.d.ts +18 -0
  77. package/dist/richtext/text-style-class.js +36 -0
  78. package/dist/simple-storage-value-provider.d.ts +9 -0
  79. package/dist/simple-storage-value-provider.js +96 -0
  80. package/dist/structured-storage-types.d.ts +61 -0
  81. package/dist/structured-storage-types.js +11 -0
  82. package/dist/tailwind.d.ts +1 -0
  83. package/dist/tailwind.js +5 -0
  84. package/dist/tokens/system-dark.css +75 -0
  85. package/dist/tokens/tokens.css +239 -0
  86. package/dist/tokens/tokens.json +212 -0
  87. package/dist/tokens.d.ts +1 -0
  88. package/dist/tokens.js +11 -0
  89. package/dist/ui-entry.d.ts +5 -0
  90. package/dist/ui-entry.js +42 -0
  91. package/dist/views/content-list-preview.d.ts +1 -0
  92. package/dist/views/content-list-preview.js +14 -0
  93. package/dist/views/content-list-settings-view.d.ts +1 -0
  94. package/dist/views/content-list-settings-view.js +97 -0
  95. package/dist/views/content-list-view.d.ts +19 -0
  96. package/dist/views/content-list-view.js +248 -0
  97. package/dist/views/crop-view.d.ts +55 -0
  98. package/dist/views/crop-view.js +161 -0
  99. package/dist/views/date-range-view.d.ts +6 -0
  100. package/dist/views/date-range-view.js +55 -0
  101. package/dist/views/file-upload-view.d.ts +43 -0
  102. package/dist/views/file-upload-view.js +104 -0
  103. package/dist/views/html-code-editor.d.ts +10 -0
  104. package/dist/views/html-code-editor.js +101 -0
  105. package/dist/views/html-view.d.ts +3 -0
  106. package/dist/views/html-view.js +53 -0
  107. package/dist/views/image-view.d.ts +3 -0
  108. package/dist/views/image-view.js +372 -0
  109. package/dist/views/rich-text-view.d.ts +2 -0
  110. package/dist/views/rich-text-view.js +429 -0
  111. package/node_modules/@kardalum/api-schemas/LICENSE +202 -0
  112. package/node_modules/@kardalum/api-schemas/README.md +56 -0
  113. package/node_modules/@kardalum/api-schemas/dist/action.schema.d.ts +30 -0
  114. package/node_modules/@kardalum/api-schemas/dist/action.schema.js +88 -0
  115. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.d.ts +17 -0
  116. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +25 -0
  117. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +93 -0
  118. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +88 -0
  119. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +89 -0
  120. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +60 -0
  121. package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +24 -0
  122. package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +47 -0
  123. package/node_modules/@kardalum/api-schemas/dist/auth.schema.d.ts +38 -0
  124. package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +38 -0
  125. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +542 -0
  126. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +357 -0
  127. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +158 -0
  128. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +139 -0
  129. package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +125 -0
  130. package/node_modules/@kardalum/api-schemas/dist/content-path.js +260 -0
  131. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +20 -0
  132. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +23 -0
  133. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.d.ts +152 -0
  134. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +82 -0
  135. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.d.ts +18 -0
  136. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.js +22 -0
  137. package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +17 -0
  138. package/node_modules/@kardalum/api-schemas/dist/content.schema.js +20 -0
  139. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +352 -0
  140. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +133 -0
  141. package/node_modules/@kardalum/api-schemas/dist/culture-direction.d.ts +1 -0
  142. package/node_modules/@kardalum/api-schemas/dist/culture-direction.js +9 -0
  143. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +37 -0
  144. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +32 -0
  145. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +9 -0
  146. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +32 -0
  147. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +298 -0
  148. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +138 -0
  149. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +121 -0
  150. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +147 -0
  151. package/node_modules/@kardalum/api-schemas/dist/health.schema.d.ts +6 -0
  152. package/node_modules/@kardalum/api-schemas/dist/health.schema.js +5 -0
  153. package/node_modules/@kardalum/api-schemas/dist/html-entities.d.ts +4 -0
  154. package/node_modules/@kardalum/api-schemas/dist/html-entities.js +250 -0
  155. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +113 -0
  156. package/node_modules/@kardalum/api-schemas/dist/index.js +64 -0
  157. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +15 -0
  158. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +14 -0
  159. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.d.ts +73 -0
  160. package/node_modules/@kardalum/api-schemas/dist/management-multipart.schema.js +104 -0
  161. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +682 -0
  162. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +269 -0
  163. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +177 -0
  164. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +222 -0
  165. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +77 -0
  166. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.js +53 -0
  167. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +75 -0
  168. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +117 -0
  169. package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +27 -0
  170. package/node_modules/@kardalum/api-schemas/dist/media-reference.js +279 -0
  171. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.d.ts +74 -0
  172. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.js +157 -0
  173. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +80 -0
  174. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +156 -0
  175. package/node_modules/@kardalum/api-schemas/dist/nav.schema.d.ts +23 -0
  176. package/node_modules/@kardalum/api-schemas/dist/nav.schema.js +55 -0
  177. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +846 -0
  178. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +356 -0
  179. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +20 -0
  180. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +27 -0
  181. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +249 -0
  182. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +84 -0
  183. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.d.ts +65 -0
  184. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +889 -0
  185. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +172 -0
  186. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +196 -0
  187. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +31 -0
  188. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +38 -0
  189. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.d.ts +69 -0
  190. package/node_modules/@kardalum/api-schemas/dist/plugin-install-record.schema.js +59 -0
  191. package/node_modules/@kardalum/api-schemas/dist/plugin-install.d.ts +585 -0
  192. package/node_modules/@kardalum/api-schemas/dist/plugin-install.js +536 -0
  193. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.d.ts +75 -0
  194. package/node_modules/@kardalum/api-schemas/dist/plugin-locales.js +213 -0
  195. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +391 -0
  196. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +413 -0
  197. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +29 -0
  198. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +100 -0
  199. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.d.ts +44 -0
  200. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-api-routes.js +162 -0
  201. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +31 -0
  202. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +25 -0
  203. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +15 -0
  204. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +24 -0
  205. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +314 -0
  206. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +338 -0
  207. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +79 -0
  208. package/node_modules/@kardalum/api-schemas/dist/render-editing.js +50 -0
  209. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.d.ts +9 -0
  210. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +13 -0
  211. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.d.ts +2 -0
  212. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.js +16 -0
  213. package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +96 -0
  214. package/node_modules/@kardalum/api-schemas/dist/role.schema.js +75 -0
  215. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.d.ts +17 -0
  216. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.js +27 -0
  217. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.d.ts +35 -0
  218. package/node_modules/@kardalum/api-schemas/dist/sample-content.schema.js +79 -0
  219. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +138 -0
  220. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +105 -0
  221. package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +243 -0
  222. package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +296 -0
  223. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +47 -0
  224. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +27 -0
  225. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +30 -0
  226. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +19 -0
  227. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +112 -0
  228. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +74 -0
  229. package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +41 -0
  230. package/node_modules/@kardalum/api-schemas/dist/template.schema.js +39 -0
  231. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +21 -0
  232. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +14 -0
  233. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +97 -0
  234. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +73 -0
  235. package/node_modules/@kardalum/api-schemas/package.json +35 -0
  236. package/node_modules/@kardalum/design-tokens/LICENSE +202 -0
  237. package/node_modules/@kardalum/design-tokens/README.md +29 -0
  238. package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +32 -0
  239. package/node_modules/@kardalum/design-tokens/dist/build-css.js +88 -0
  240. package/node_modules/@kardalum/design-tokens/dist/generate.d.ts +1 -0
  241. package/node_modules/@kardalum/design-tokens/dist/generate.js +18 -0
  242. package/node_modules/@kardalum/design-tokens/dist/index.d.ts +6 -0
  243. package/node_modules/@kardalum/design-tokens/dist/index.js +4 -0
  244. package/node_modules/@kardalum/design-tokens/dist/system-dark.css +75 -0
  245. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +33 -0
  246. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +54 -0
  247. package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +12 -0
  248. package/node_modules/@kardalum/design-tokens/dist/theme-css.js +42 -0
  249. package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +43 -0
  250. package/node_modules/@kardalum/design-tokens/dist/theme-types.js +1 -0
  251. package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +13 -0
  252. package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +120 -0
  253. package/node_modules/@kardalum/design-tokens/dist/themes/index.d.ts +5 -0
  254. package/node_modules/@kardalum/design-tokens/dist/themes/index.js +4 -0
  255. package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +9 -0
  256. package/node_modules/@kardalum/design-tokens/dist/themes/light.js +13 -0
  257. package/node_modules/@kardalum/design-tokens/dist/tokens.css +239 -0
  258. package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +25 -0
  259. package/node_modules/@kardalum/design-tokens/dist/tokens.js +276 -0
  260. package/node_modules/@kardalum/design-tokens/dist/tokens.json +212 -0
  261. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +91 -0
  262. package/node_modules/@kardalum/design-tokens/dist/types.js +5 -0
  263. package/node_modules/@kardalum/design-tokens/package.json +42 -0
  264. package/node_modules/@kardalum/plugin-package/LICENSE +202 -0
  265. package/node_modules/@kardalum/plugin-package/README.md +71 -0
  266. package/node_modules/@kardalum/plugin-package/dist/build-reference.d.ts +111 -0
  267. package/node_modules/@kardalum/plugin-package/dist/build-reference.js +61 -0
  268. package/node_modules/@kardalum/plugin-package/dist/capabilities.d.ts +103 -0
  269. package/node_modules/@kardalum/plugin-package/dist/capabilities.js +351 -0
  270. package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +50 -0
  271. package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +659 -0
  272. package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +19 -0
  273. package/node_modules/@kardalum/plugin-package/dist/envelope.js +104 -0
  274. package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +37 -0
  275. package/node_modules/@kardalum/plugin-package/dist/extract.js +199 -0
  276. package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +17 -0
  277. package/node_modules/@kardalum/plugin-package/dist/hash.js +69 -0
  278. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +13 -0
  279. package/node_modules/@kardalum/plugin-package/dist/index.js +8 -0
  280. package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +185 -0
  281. package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +236 -0
  282. package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +50 -0
  283. package/node_modules/@kardalum/plugin-package/dist/package-contract.js +115 -0
  284. package/node_modules/@kardalum/plugin-package/dist/reference-entry.d.ts +2 -0
  285. package/node_modules/@kardalum/plugin-package/dist/reference-entry.js +6 -0
  286. package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +20 -0
  287. package/node_modules/@kardalum/plugin-package/dist/sample-content.js +57 -0
  288. package/node_modules/@kardalum/plugin-package/dist/types.d.ts +43 -0
  289. package/node_modules/@kardalum/plugin-package/dist/types.js +15 -0
  290. package/node_modules/@kardalum/plugin-package/package.json +54 -0
  291. package/node_modules/@kardalum/ui/LICENSE +202 -0
  292. package/node_modules/@kardalum/ui/README.md +35 -0
  293. package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +14 -0
  294. package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +38 -0
  295. package/node_modules/@kardalum/ui/dist/components/badge.d.ts +9 -0
  296. package/node_modules/@kardalum/ui/dist/components/badge.js +30 -0
  297. package/node_modules/@kardalum/ui/dist/components/button.d.ts +11 -0
  298. package/node_modules/@kardalum/ui/dist/components/button.js +37 -0
  299. package/node_modules/@kardalum/ui/dist/components/checkbox.d.ts +5 -0
  300. package/node_modules/@kardalum/ui/dist/components/checkbox.js +7 -0
  301. package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +17 -0
  302. package/node_modules/@kardalum/ui/dist/components/dialog.js +48 -0
  303. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +18 -0
  304. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +53 -0
  305. package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +30 -0
  306. package/node_modules/@kardalum/ui/dist/components/empty-state.js +9 -0
  307. package/node_modules/@kardalum/ui/dist/components/input.d.ts +4 -0
  308. package/node_modules/@kardalum/ui/dist/components/input.js +6 -0
  309. package/node_modules/@kardalum/ui/dist/components/panel.d.ts +5 -0
  310. package/node_modules/@kardalum/ui/dist/components/panel.js +6 -0
  311. package/node_modules/@kardalum/ui/dist/components/property-field.d.ts +19 -0
  312. package/node_modules/@kardalum/ui/dist/components/property-field.js +89 -0
  313. package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +17 -0
  314. package/node_modules/@kardalum/ui/dist/components/sheet.js +55 -0
  315. package/node_modules/@kardalum/ui/dist/components/skeleton.d.ts +3 -0
  316. package/node_modules/@kardalum/ui/dist/components/skeleton.js +9 -0
  317. package/node_modules/@kardalum/ui/dist/components/switch.d.ts +5 -0
  318. package/node_modules/@kardalum/ui/dist/components/switch.js +7 -0
  319. package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +34 -0
  320. package/node_modules/@kardalum/ui/dist/components/tab-strip.js +72 -0
  321. package/node_modules/@kardalum/ui/dist/components/toast.d.ts +18 -0
  322. package/node_modules/@kardalum/ui/dist/components/toast.js +42 -0
  323. package/node_modules/@kardalum/ui/dist/components/toaster.d.ts +12 -0
  324. package/node_modules/@kardalum/ui/dist/components/toaster.js +11 -0
  325. package/node_modules/@kardalum/ui/dist/components/use-toast.d.ts +17 -0
  326. package/node_modules/@kardalum/ui/dist/components/use-toast.js +62 -0
  327. package/node_modules/@kardalum/ui/dist/index.d.ts +18 -0
  328. package/node_modules/@kardalum/ui/dist/index.js +18 -0
  329. package/node_modules/@kardalum/ui/dist/lib/cn.d.ts +2 -0
  330. package/node_modules/@kardalum/ui/dist/lib/cn.js +5 -0
  331. package/node_modules/@kardalum/ui/package.json +63 -0
  332. package/package.json +146 -4
@@ -0,0 +1,276 @@
1
+ /**
2
+ * Kardalum brand tokens: the default (light) token set, per the S177
3
+ * design (the Session-177 design decisions,
4
+ * user-approved 2026-08-30).
5
+ *
6
+ * Colour roles: the primary scale runs sky (50–300, atmosphere:
7
+ * selection, focus, the version rail) into cerulean (600–800, action:
8
+ * buttons, links). THE ACTION COLOUR IS primary-600 — this supersedes the
9
+ * Session-27 "brand = 500 step" convention for primary; 500 is a
10
+ * mid-step used for nothing in particular. Status scales pair a 100-step
11
+ * soft fill with the lightest text step that clears 4.5:1 on that fill
12
+ * (success/danger 700, warning 800). Neutrals are warm stone, not grey. The
13
+ * dark set (themes/dark.ts) overrides colour only — themes never touch
14
+ * typography/spacing/shadow/motion.
15
+ */
16
+ export const tokens = {
17
+ color: {
18
+ primary: {
19
+ '50': '#EAF4FB',
20
+ '100': '#CFE6F6',
21
+ '200': '#A9D5F0',
22
+ '300': '#7CC0E8',
23
+ '400': '#4E9CCB',
24
+ '500': '#2A82BC',
25
+ '600': '#1F6FA8',
26
+ '700': '#1A5E8F',
27
+ '800': '#154D75',
28
+ '900': '#113D5C',
29
+ '950': '#0B2A40',
30
+ },
31
+ // The former brand indigo, demoted to the info/secondary role.
32
+ secondary: {
33
+ '50': '#F0F0FA',
34
+ '100': '#E9E9F8',
35
+ '200': '#D3D4F1',
36
+ '300': '#B4B6E6',
37
+ '400': '#8F92D8',
38
+ '500': '#5B5FC7',
39
+ '600': '#4B4FB0',
40
+ '700': '#3E4194',
41
+ '800': '#333676',
42
+ '900': '#282A5C',
43
+ '950': '#181A3A',
44
+ },
45
+ success: {
46
+ '50': '#EEF5EB',
47
+ '100': '#E4F0DF',
48
+ '200': '#C6E0BD',
49
+ '300': '#9CC78E',
50
+ '400': '#6CA85C',
51
+ '500': '#4E9340',
52
+ '600': '#3B7D2E',
53
+ '700': '#306626',
54
+ '800': '#27521F',
55
+ '900': '#1F4119',
56
+ '950': '#122A0E',
57
+ },
58
+ warning: {
59
+ '50': '#FBF5E8',
60
+ '100': '#F7EBD2',
61
+ '200': '#EFD8A6',
62
+ '300': '#E4BF72',
63
+ '400': '#D6A245',
64
+ '500': '#C98E2D',
65
+ '600': '#B7791F',
66
+ '700': '#96631A',
67
+ '800': '#764E15',
68
+ '900': '#5B3C11',
69
+ '950': '#3B260A',
70
+ },
71
+ danger: {
72
+ '50': '#FBEFEE',
73
+ '100': '#F6E0DE',
74
+ '200': '#EEC3BF',
75
+ '300': '#E39B95',
76
+ '400': '#D66E66',
77
+ '500': '#C94F46',
78
+ '600': '#B93A32',
79
+ '700': '#9A2F29',
80
+ '800': '#7B2621',
81
+ '900': '#611E1A',
82
+ '950': '#3F120F',
83
+ },
84
+ neutral: {
85
+ '50': '#FAF9F5',
86
+ '100': '#F3F1EB',
87
+ '200': '#ECEAE3',
88
+ '300': '#E1DED5',
89
+ '400': '#CFCBC0',
90
+ '500': '#8C9490',
91
+ '600': '#5C6663',
92
+ '700': '#3E4644',
93
+ '800': '#2A3230',
94
+ '900': '#1B2321',
95
+ '950': '#111614',
96
+ },
97
+ background: {
98
+ base: '#F3F1EB',
99
+ elevated: '#FFFFFF',
100
+ subtle: '#FAF9F5',
101
+ overlay: 'rgba(27, 35, 33, 0.5)',
102
+ // Nudged from #ECEAE3 (S179): the original wash put primary-600 text
103
+ // at 4.48:1 against it, just under AA — #F0EEE7 clears 4.5:1 while
104
+ // staying the darkest of the four light surfaces (the hover-wash
105
+ // hierarchy is unchanged).
106
+ hover: '#F0EEE7',
107
+ },
108
+ text: {
109
+ primary: '#1B2321',
110
+ secondary: '#5C6663',
111
+ tertiary: '#616966',
112
+ disabled: '#8C9490',
113
+ inverse: '#FFFFFF',
114
+ },
115
+ border: {
116
+ default: '#E1DED5',
117
+ subtle: '#ECEAE3',
118
+ strong: '#CFCBC0',
119
+ },
120
+ // Code-syntax roles (S195), approved mockup: reuses existing hues
121
+ // (primary-700 / secondary-600 / success-700 / warning-700) for
122
+ // keyword/tag/string/attr so highlighted code stays in the brand
123
+ // palette; comment/punctuation are quiet warm-stone steps between
124
+ // neutral-600 and neutral-700 built for this role specifically.
125
+ code: {
126
+ keyword: '#1A5E8F',
127
+ tag: '#4B4FB0',
128
+ string: '#306626',
129
+ attr: '#96631A',
130
+ comment: '#6B6659',
131
+ punctuation: '#4A463C',
132
+ },
133
+ // S256: dark in BOTH themes, so they carry their own values rather than
134
+ // borrowing surface ones. Straight from the approved mockup
135
+ // (docs/design/website-mockup-s215.html:26-29), except `raised` and
136
+ // `strong`, which the mockup does not name, and `muted`, which the
137
+ // mockup sets to #6E8CA0 and measures 4.17:1 here, under AA.
138
+ artifact: {
139
+ base: '#0B2A40',
140
+ raised: '#113D5C',
141
+ border: '#1A5E8F',
142
+ text: '#CFE6F6',
143
+ muted: '#8FA9BC',
144
+ strong: '#FFFFFF',
145
+ // The approved mockup's own .art .k and .art .s. keyword is also
146
+ // primary-300, the one ramp step identical in both themes.
147
+ keyword: '#7CC0E8',
148
+ string: '#9FD8A8',
149
+ // S248: the Why and Developers sheets' amber, for numbers and the
150
+ // version table's current-pointer.
151
+ highlight: '#E7B96B',
152
+ },
153
+ footer: {
154
+ base: '#1B2321',
155
+ border: '#2A3230',
156
+ text: '#CFCBC0',
157
+ muted: '#8C9490',
158
+ strong: '#FFFFFF',
159
+ },
160
+ // R4 fix wave: the mark's colours (see types.ts). Light is the approved
161
+ // F exactly: tile primary-900, keep primary-300. themes/dark.ts swaps
162
+ // them. The brand master (brand/kardalum-mark.svg) bakes the same two
163
+ // values for the favicons, which cannot read CSS variables.
164
+ brand: {
165
+ tile: '#113D5C',
166
+ keep: '#7CC0E8',
167
+ },
168
+ },
169
+ typography: {
170
+ fontFamily: {
171
+ sans: "'IBM Plex Sans', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif",
172
+ serif: "'Literata', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif",
173
+ mono: "'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace",
174
+ },
175
+ // px targets at a 16px root: 12 · 13 · 14 · 16 · 20 · 24 · 30.
176
+ // base is 14px (the tool's body size); 2xl = tool titles, 3xl =
177
+ // content titles (serif).
178
+ // 4xl/5xl (S257) are the marketing site's display steps, fluid by
179
+ // design and carrying the approved mockups' own values: the hero clamp
180
+ // from website-mockup-s215.html, the 3.4rem ceiling from
181
+ // website-mockup-s211.html. 4xl's minimum sits just above 3xl and 5xl's
182
+ // minimum is 4xl's maximum, because the site steps up through them at
183
+ // the sm: breakpoint (`text-3xl sm:text-4xl`, `text-4xl sm:text-5xl`)
184
+ // and a lower minimum would make that breakpoint shrink the heading.
185
+ fontSize: {
186
+ xs: '0.75rem',
187
+ sm: '0.8125rem',
188
+ base: '0.875rem',
189
+ lg: '1rem',
190
+ xl: '1.25rem',
191
+ '2xl': '1.5rem',
192
+ '3xl': '1.875rem',
193
+ '4xl': 'clamp(1.9rem, 3.4vw, 2.6rem)',
194
+ '5xl': 'clamp(2.6rem, 4.6vw, 3.4rem)',
195
+ },
196
+ fontWeight: {
197
+ normal: 400,
198
+ medium: 500,
199
+ semibold: 600,
200
+ bold: 700,
201
+ },
202
+ lineHeight: {
203
+ tight: 1.25,
204
+ normal: 1.5,
205
+ relaxed: 1.75,
206
+ },
207
+ },
208
+ spacing: {
209
+ '0': '0',
210
+ px: '1px',
211
+ '1': '0.25rem',
212
+ '2': '0.5rem',
213
+ '3': '0.75rem',
214
+ '4': '1rem',
215
+ '5': '1.25rem',
216
+ '6': '1.5rem',
217
+ '7': '1.75rem',
218
+ '8': '2rem',
219
+ '9': '2.25rem',
220
+ '10': '2.5rem',
221
+ '11': '2.75rem',
222
+ '12': '3rem',
223
+ '14': '3.5rem',
224
+ '16': '4rem',
225
+ '20': '5rem',
226
+ '24': '6rem',
227
+ // 28/32/44/64 (S257): Tailwind's own values for these keys (key / 4 =
228
+ // rem). The marketplace cards and the review forms already used them,
229
+ // and got no width or height at all because the scale is replaced, not
230
+ // extended.
231
+ '28': '7rem',
232
+ '32': '8rem',
233
+ '44': '11rem',
234
+ '64': '16rem',
235
+ // 72 (18rem): the persistent tree panel's width (S49 structure, S177 spec
236
+ // 284px) — Tailwind's `w-72` resolves only through this scale.
237
+ '72': '18rem',
238
+ },
239
+ // 6 small · 8 controls · 12 cards · 16 dialogs
240
+ radius: {
241
+ none: '0',
242
+ sm: '0.375rem',
243
+ md: '0.5rem',
244
+ lg: '0.75rem',
245
+ xl: '1rem',
246
+ full: '9999px',
247
+ },
248
+ // Warm-tinted (the shadow colour is the neutral-900 ink, not black).
249
+ shadow: {
250
+ sm: '0 1px 2px 0 rgba(43, 38, 24, 0.06)',
251
+ md: '0 1px 2px 0 rgba(43, 38, 24, 0.05), 0 6px 18px 0 rgba(43, 38, 24, 0.07)',
252
+ lg: '0 2px 4px 0 rgba(43, 38, 24, 0.06), 0 16px 40px 0 rgba(43, 38, 24, 0.12)',
253
+ xl: '0 4px 8px 0 rgba(43, 38, 24, 0.08), 0 24px 56px 0 rgba(43, 38, 24, 0.16)',
254
+ },
255
+ motion: {
256
+ duration: {
257
+ fast: '150ms',
258
+ normal: '250ms',
259
+ slow: '400ms',
260
+ },
261
+ easing: {
262
+ standard: 'cubic-bezier(0.4, 0, 0.2, 1)',
263
+ enter: 'cubic-bezier(0, 0, 0.2, 1)',
264
+ exit: 'cubic-bezier(0.4, 0, 1, 1)',
265
+ },
266
+ },
267
+ direction: 'ltr',
268
+ };
269
+ /**
270
+ * Under an Arabic document language the SAME sans token leads with Plex
271
+ * Sans Arabic (its Latin glyphs are Plex-compatible), so RTL locales get a
272
+ * native UI face without any component knowing. Emitted by build-css.ts
273
+ * as a `[lang="ar"]` block — a language-conditional value of an existing
274
+ * token, not a new one.
275
+ */
276
+ export const ARABIC_SANS_FONT_FAMILY = "'IBM Plex Sans Arabic', 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif";
@@ -0,0 +1,212 @@
1
+ {
2
+ "color": {
3
+ "primary": {
4
+ "50": "#EAF4FB",
5
+ "100": "#CFE6F6",
6
+ "200": "#A9D5F0",
7
+ "300": "#7CC0E8",
8
+ "400": "#4E9CCB",
9
+ "500": "#2A82BC",
10
+ "600": "#1F6FA8",
11
+ "700": "#1A5E8F",
12
+ "800": "#154D75",
13
+ "900": "#113D5C",
14
+ "950": "#0B2A40"
15
+ },
16
+ "secondary": {
17
+ "50": "#F0F0FA",
18
+ "100": "#E9E9F8",
19
+ "200": "#D3D4F1",
20
+ "300": "#B4B6E6",
21
+ "400": "#8F92D8",
22
+ "500": "#5B5FC7",
23
+ "600": "#4B4FB0",
24
+ "700": "#3E4194",
25
+ "800": "#333676",
26
+ "900": "#282A5C",
27
+ "950": "#181A3A"
28
+ },
29
+ "success": {
30
+ "50": "#EEF5EB",
31
+ "100": "#E4F0DF",
32
+ "200": "#C6E0BD",
33
+ "300": "#9CC78E",
34
+ "400": "#6CA85C",
35
+ "500": "#4E9340",
36
+ "600": "#3B7D2E",
37
+ "700": "#306626",
38
+ "800": "#27521F",
39
+ "900": "#1F4119",
40
+ "950": "#122A0E"
41
+ },
42
+ "warning": {
43
+ "50": "#FBF5E8",
44
+ "100": "#F7EBD2",
45
+ "200": "#EFD8A6",
46
+ "300": "#E4BF72",
47
+ "400": "#D6A245",
48
+ "500": "#C98E2D",
49
+ "600": "#B7791F",
50
+ "700": "#96631A",
51
+ "800": "#764E15",
52
+ "900": "#5B3C11",
53
+ "950": "#3B260A"
54
+ },
55
+ "danger": {
56
+ "50": "#FBEFEE",
57
+ "100": "#F6E0DE",
58
+ "200": "#EEC3BF",
59
+ "300": "#E39B95",
60
+ "400": "#D66E66",
61
+ "500": "#C94F46",
62
+ "600": "#B93A32",
63
+ "700": "#9A2F29",
64
+ "800": "#7B2621",
65
+ "900": "#611E1A",
66
+ "950": "#3F120F"
67
+ },
68
+ "neutral": {
69
+ "50": "#FAF9F5",
70
+ "100": "#F3F1EB",
71
+ "200": "#ECEAE3",
72
+ "300": "#E1DED5",
73
+ "400": "#CFCBC0",
74
+ "500": "#8C9490",
75
+ "600": "#5C6663",
76
+ "700": "#3E4644",
77
+ "800": "#2A3230",
78
+ "900": "#1B2321",
79
+ "950": "#111614"
80
+ },
81
+ "background": {
82
+ "base": "#F3F1EB",
83
+ "elevated": "#FFFFFF",
84
+ "subtle": "#FAF9F5",
85
+ "overlay": "rgba(27, 35, 33, 0.5)",
86
+ "hover": "#F0EEE7"
87
+ },
88
+ "text": {
89
+ "primary": "#1B2321",
90
+ "secondary": "#5C6663",
91
+ "tertiary": "#616966",
92
+ "disabled": "#8C9490",
93
+ "inverse": "#FFFFFF"
94
+ },
95
+ "border": {
96
+ "default": "#E1DED5",
97
+ "subtle": "#ECEAE3",
98
+ "strong": "#CFCBC0"
99
+ },
100
+ "code": {
101
+ "keyword": "#1A5E8F",
102
+ "tag": "#4B4FB0",
103
+ "string": "#306626",
104
+ "attr": "#96631A",
105
+ "comment": "#6B6659",
106
+ "punctuation": "#4A463C"
107
+ },
108
+ "artifact": {
109
+ "base": "#0B2A40",
110
+ "raised": "#113D5C",
111
+ "border": "#1A5E8F",
112
+ "text": "#CFE6F6",
113
+ "muted": "#8FA9BC",
114
+ "strong": "#FFFFFF",
115
+ "keyword": "#7CC0E8",
116
+ "string": "#9FD8A8",
117
+ "highlight": "#E7B96B"
118
+ },
119
+ "footer": {
120
+ "base": "#1B2321",
121
+ "border": "#2A3230",
122
+ "text": "#CFCBC0",
123
+ "muted": "#8C9490",
124
+ "strong": "#FFFFFF"
125
+ },
126
+ "brand": {
127
+ "tile": "#113D5C",
128
+ "keep": "#7CC0E8"
129
+ }
130
+ },
131
+ "typography": {
132
+ "fontFamily": {
133
+ "sans": "'IBM Plex Sans', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif",
134
+ "serif": "'Literata', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif",
135
+ "mono": "'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace"
136
+ },
137
+ "fontSize": {
138
+ "xs": "0.75rem",
139
+ "sm": "0.8125rem",
140
+ "base": "0.875rem",
141
+ "lg": "1rem",
142
+ "xl": "1.25rem",
143
+ "2xl": "1.5rem",
144
+ "3xl": "1.875rem",
145
+ "4xl": "clamp(1.9rem, 3.4vw, 2.6rem)",
146
+ "5xl": "clamp(2.6rem, 4.6vw, 3.4rem)"
147
+ },
148
+ "fontWeight": {
149
+ "normal": 400,
150
+ "medium": 500,
151
+ "semibold": 600,
152
+ "bold": 700
153
+ },
154
+ "lineHeight": {
155
+ "tight": 1.25,
156
+ "normal": 1.5,
157
+ "relaxed": 1.75
158
+ }
159
+ },
160
+ "spacing": {
161
+ "0": "0",
162
+ "1": "0.25rem",
163
+ "2": "0.5rem",
164
+ "3": "0.75rem",
165
+ "4": "1rem",
166
+ "5": "1.25rem",
167
+ "6": "1.5rem",
168
+ "7": "1.75rem",
169
+ "8": "2rem",
170
+ "9": "2.25rem",
171
+ "10": "2.5rem",
172
+ "11": "2.75rem",
173
+ "12": "3rem",
174
+ "14": "3.5rem",
175
+ "16": "4rem",
176
+ "20": "5rem",
177
+ "24": "6rem",
178
+ "28": "7rem",
179
+ "32": "8rem",
180
+ "44": "11rem",
181
+ "64": "16rem",
182
+ "72": "18rem",
183
+ "px": "1px"
184
+ },
185
+ "radius": {
186
+ "none": "0",
187
+ "sm": "0.375rem",
188
+ "md": "0.5rem",
189
+ "lg": "0.75rem",
190
+ "xl": "1rem",
191
+ "full": "9999px"
192
+ },
193
+ "shadow": {
194
+ "sm": "0 1px 2px 0 rgba(43, 38, 24, 0.06)",
195
+ "md": "0 1px 2px 0 rgba(43, 38, 24, 0.05), 0 6px 18px 0 rgba(43, 38, 24, 0.07)",
196
+ "lg": "0 2px 4px 0 rgba(43, 38, 24, 0.06), 0 16px 40px 0 rgba(43, 38, 24, 0.12)",
197
+ "xl": "0 4px 8px 0 rgba(43, 38, 24, 0.08), 0 24px 56px 0 rgba(43, 38, 24, 0.16)"
198
+ },
199
+ "motion": {
200
+ "duration": {
201
+ "fast": "150ms",
202
+ "normal": "250ms",
203
+ "slow": "400ms"
204
+ },
205
+ "easing": {
206
+ "standard": "cubic-bezier(0.4, 0, 0.2, 1)",
207
+ "enter": "cubic-bezier(0, 0, 0.2, 1)",
208
+ "exit": "cubic-bezier(0.4, 0, 1, 1)"
209
+ }
210
+ },
211
+ "direction": "ltr"
212
+ }
@@ -0,0 +1,91 @@
1
+ /**
2
+ * Design token type definitions — the shape every theme (built-in or
3
+ * plugin) targets.
4
+ */
5
+ export type ColorScaleStep = '50' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | '950';
6
+ export type ColorScale = Record<ColorScaleStep, string>;
7
+ /**
8
+ * 4px-base spacing scale. Keys are multiples of the base unit
9
+ * (spacing '4' = 4 × 4px = 1rem), plus 'px' for hairline offsets.
10
+ * Dots are avoided in keys so CSS custom property names stay valid
11
+ * without escaping.
12
+ */
13
+ export type SpacingStep = '0' | 'px' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12' | '14' | '16' | '20' | '24' | '28' | '32' | '44' | '64' | '72';
14
+ export type ScaleTokens = Record<SpacingStep, string>;
15
+ export interface KardalumDesignTokens {
16
+ color: {
17
+ primary: ColorScale;
18
+ secondary: ColorScale;
19
+ success: ColorScale;
20
+ warning: ColorScale;
21
+ danger: ColorScale;
22
+ neutral: ColorScale;
23
+ background: {
24
+ base: string;
25
+ elevated: string;
26
+ subtle: string;
27
+ overlay: string;
28
+ hover: string;
29
+ };
30
+ text: {
31
+ primary: string;
32
+ secondary: string;
33
+ tertiary: string;
34
+ disabled: string;
35
+ inverse: string;
36
+ };
37
+ border: {
38
+ default: string;
39
+ subtle: string;
40
+ strong: string;
41
+ };
42
+ code: {
43
+ keyword: string;
44
+ tag: string;
45
+ string: string;
46
+ attr: string;
47
+ comment: string;
48
+ punctuation: string;
49
+ };
50
+ artifact: {
51
+ base: string;
52
+ raised: string;
53
+ border: string;
54
+ text: string;
55
+ muted: string;
56
+ strong: string;
57
+ keyword: string;
58
+ string: string;
59
+ highlight: string;
60
+ };
61
+ footer: {
62
+ base: string;
63
+ border: string;
64
+ text: string;
65
+ muted: string;
66
+ strong: string;
67
+ };
68
+ brand: {
69
+ tile: string;
70
+ keep: string;
71
+ };
72
+ };
73
+ typography: {
74
+ fontFamily: {
75
+ sans: string;
76
+ serif: string;
77
+ mono: string;
78
+ };
79
+ fontSize: Record<'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl', string>;
80
+ fontWeight: Record<'normal' | 'medium' | 'semibold' | 'bold', number>;
81
+ lineHeight: Record<'tight' | 'normal' | 'relaxed', number>;
82
+ };
83
+ spacing: ScaleTokens;
84
+ radius: Record<'none' | 'sm' | 'md' | 'lg' | 'xl' | 'full', string>;
85
+ shadow: Record<'sm' | 'md' | 'lg' | 'xl', string>;
86
+ motion: {
87
+ duration: Record<string, string>;
88
+ easing: Record<string, string>;
89
+ };
90
+ direction: 'ltr' | 'rtl';
91
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Design token type definitions — the shape every theme (built-in or
3
+ * plugin) targets.
4
+ */
5
+ export {};
@@ -0,0 +1,42 @@
1
+ {
2
+ "name": "@kardalum/design-tokens",
3
+ "version": "0.14.0",
4
+ "private": true,
5
+ "license": "Apache-2.0",
6
+ "description": "Kardalum's design token source, generating the Tailwind config and CSS variables consumed by the UI library, admin UI, and plugin UIs.",
7
+ "engines": {
8
+ "node": ">=22.12"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/kardalum/kardalum-devkit/issues"
12
+ },
13
+ "type": "module",
14
+ "main": "dist/index.js",
15
+ "types": "dist/index.d.ts",
16
+ "files": [
17
+ "dist",
18
+ "!dist/**/*.test.*"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/kardalum/kardalum-devkit.git"
23
+ },
24
+ "homepage": "https://kardalum.com",
25
+ "exports": {
26
+ ".": {
27
+ "types": "./dist/index.d.ts",
28
+ "import": "./dist/index.js",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "./tokens.css": "./dist/tokens.css",
32
+ "./system-dark.css": "./dist/system-dark.css",
33
+ "./tokens.json": "./dist/tokens.json"
34
+ },
35
+ "devDependencies": {
36
+ "@types/node": "20.19.43"
37
+ },
38
+ "scripts": {
39
+ "build": "node -e \"require('fs').rmSync('dist',{recursive:true,force:true})\" && tsc -p . && node dist/generate.js",
40
+ "test": "vitest run"
41
+ }
42
+ }