@kardalum/plugin-sdk 0.0.0-stage → 0.15.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 (312) hide show
  1. package/CHANGELOG.md +108 -0
  2. package/LICENSE +202 -0
  3. package/README.md +70 -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 +99 -0
  15. package/dist/capabilities.js +363 -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 +93 -0
  40. package/dist/license-verdict-keys.d.ts +18 -0
  41. package/dist/license-verdict-keys.js +22 -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 +408 -0
  47. package/dist/manifest-schema.js +774 -0
  48. package/dist/manifest.d.ts +546 -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 +438 -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 +75 -0
  55. package/dist/plugin-context.js +70 -0
  56. package/dist/plugin-screen-context.d.ts +40 -0
  57. package/dist/plugin-screen-context.js +16 -0
  58. package/dist/register-built-ins.d.ts +1 -0
  59. package/dist/register-built-ins.js +41 -0
  60. package/dist/registry.d.ts +4 -0
  61. package/dist/registry.js +17 -0
  62. package/dist/rendition-eligibility.d.ts +24 -0
  63. package/dist/rendition-eligibility.js +40 -0
  64. package/dist/richtext/block-panel.d.ts +27 -0
  65. package/dist/richtext/block-panel.js +232 -0
  66. package/dist/richtext/extensions.d.ts +19 -0
  67. package/dist/richtext/extensions.js +56 -0
  68. package/dist/richtext/insert-menu.d.ts +24 -0
  69. package/dist/richtext/insert-menu.js +142 -0
  70. package/dist/richtext/kardalum-block.d.ts +33 -0
  71. package/dist/richtext/kardalum-block.js +282 -0
  72. package/dist/richtext/style-listbox.d.ts +10 -0
  73. package/dist/richtext/style-listbox.js +69 -0
  74. package/dist/richtext/text-style-class.d.ts +18 -0
  75. package/dist/richtext/text-style-class.js +36 -0
  76. package/dist/simple-storage-value-provider.d.ts +9 -0
  77. package/dist/simple-storage-value-provider.js +96 -0
  78. package/dist/structured-storage-types.d.ts +61 -0
  79. package/dist/structured-storage-types.js +11 -0
  80. package/dist/tailwind.d.ts +1 -0
  81. package/dist/tailwind.js +5 -0
  82. package/dist/tokens/system-dark.css +75 -0
  83. package/dist/tokens/tokens.css +239 -0
  84. package/dist/tokens/tokens.json +212 -0
  85. package/dist/tokens.d.ts +1 -0
  86. package/dist/tokens.js +11 -0
  87. package/dist/ui-entry.d.ts +5 -0
  88. package/dist/ui-entry.js +42 -0
  89. package/dist/views/content-list-preview.d.ts +1 -0
  90. package/dist/views/content-list-preview.js +14 -0
  91. package/dist/views/content-list-settings-view.d.ts +1 -0
  92. package/dist/views/content-list-settings-view.js +97 -0
  93. package/dist/views/content-list-view.d.ts +19 -0
  94. package/dist/views/content-list-view.js +248 -0
  95. package/dist/views/crop-view.d.ts +55 -0
  96. package/dist/views/crop-view.js +161 -0
  97. package/dist/views/date-range-view.d.ts +6 -0
  98. package/dist/views/date-range-view.js +55 -0
  99. package/dist/views/file-upload-view.d.ts +43 -0
  100. package/dist/views/file-upload-view.js +104 -0
  101. package/dist/views/html-code-editor.d.ts +10 -0
  102. package/dist/views/html-code-editor.js +101 -0
  103. package/dist/views/html-view.d.ts +3 -0
  104. package/dist/views/html-view.js +53 -0
  105. package/dist/views/image-view.d.ts +3 -0
  106. package/dist/views/image-view.js +387 -0
  107. package/dist/views/rich-text-view.d.ts +2 -0
  108. package/dist/views/rich-text-view.js +429 -0
  109. package/node_modules/@kardalum/api-schemas/LICENSE +202 -0
  110. package/node_modules/@kardalum/api-schemas/README.md +56 -0
  111. package/node_modules/@kardalum/api-schemas/dist/action.schema.d.ts +30 -0
  112. package/node_modules/@kardalum/api-schemas/dist/action.schema.js +88 -0
  113. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.d.ts +5 -0
  114. package/node_modules/@kardalum/api-schemas/dist/api-error.schema.js +6 -0
  115. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.d.ts +75 -0
  116. package/node_modules/@kardalum/api-schemas/dist/api-key-api.schema.js +36 -0
  117. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.d.ts +89 -0
  118. package/node_modules/@kardalum/api-schemas/dist/asset-api.schema.js +60 -0
  119. package/node_modules/@kardalum/api-schemas/dist/asset.schema.d.ts +24 -0
  120. package/node_modules/@kardalum/api-schemas/dist/asset.schema.js +47 -0
  121. package/node_modules/@kardalum/api-schemas/dist/auth.schema.d.ts +38 -0
  122. package/node_modules/@kardalum/api-schemas/dist/auth.schema.js +38 -0
  123. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.d.ts +537 -0
  124. package/node_modules/@kardalum/api-schemas/dist/content-api.schema.js +353 -0
  125. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.d.ts +158 -0
  126. package/node_modules/@kardalum/api-schemas/dist/content-list.schema.js +139 -0
  127. package/node_modules/@kardalum/api-schemas/dist/content-path.d.ts +125 -0
  128. package/node_modules/@kardalum/api-schemas/dist/content-path.js +256 -0
  129. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.d.ts +20 -0
  130. package/node_modules/@kardalum/api-schemas/dist/content-trash-api.schema.js +23 -0
  131. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.d.ts +151 -0
  132. package/node_modules/@kardalum/api-schemas/dist/content-trash.schema.js +82 -0
  133. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.d.ts +18 -0
  134. package/node_modules/@kardalum/api-schemas/dist/content-version.schema.js +22 -0
  135. package/node_modules/@kardalum/api-schemas/dist/content.schema.d.ts +17 -0
  136. package/node_modules/@kardalum/api-schemas/dist/content.schema.js +20 -0
  137. package/node_modules/@kardalum/api-schemas/dist/core-actions.d.ts +302 -0
  138. package/node_modules/@kardalum/api-schemas/dist/core-actions.js +97 -0
  139. package/node_modules/@kardalum/api-schemas/dist/culture-direction.d.ts +1 -0
  140. package/node_modules/@kardalum/api-schemas/dist/culture-direction.js +9 -0
  141. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.d.ts +36 -0
  142. package/node_modules/@kardalum/api-schemas/dist/data-type-api.schema.js +32 -0
  143. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.d.ts +9 -0
  144. package/node_modules/@kardalum/api-schemas/dist/data-type-config.schema.js +32 -0
  145. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.d.ts +296 -0
  146. package/node_modules/@kardalum/api-schemas/dist/document-type-api.schema.js +138 -0
  147. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.d.ts +121 -0
  148. package/node_modules/@kardalum/api-schemas/dist/document-type.schema.js +147 -0
  149. package/node_modules/@kardalum/api-schemas/dist/health.schema.d.ts +6 -0
  150. package/node_modules/@kardalum/api-schemas/dist/health.schema.js +5 -0
  151. package/node_modules/@kardalum/api-schemas/dist/html-entities.d.ts +4 -0
  152. package/node_modules/@kardalum/api-schemas/dist/html-entities.js +250 -0
  153. package/node_modules/@kardalum/api-schemas/dist/index.d.ts +102 -0
  154. package/node_modules/@kardalum/api-schemas/dist/index.js +58 -0
  155. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.d.ts +15 -0
  156. package/node_modules/@kardalum/api-schemas/dist/licensing.schema.js +14 -0
  157. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.d.ts +381 -0
  158. package/node_modules/@kardalum/api-schemas/dist/marketplace-listing-api.schema.js +197 -0
  159. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.d.ts +167 -0
  160. package/node_modules/@kardalum/api-schemas/dist/media-api.schema.js +214 -0
  161. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.d.ts +77 -0
  162. package/node_modules/@kardalum/api-schemas/dist/media-reference-api.schema.js +53 -0
  163. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.d.ts +75 -0
  164. package/node_modules/@kardalum/api-schemas/dist/media-reference-use.js +117 -0
  165. package/node_modules/@kardalum/api-schemas/dist/media-reference.d.ts +27 -0
  166. package/node_modules/@kardalum/api-schemas/dist/media-reference.js +279 -0
  167. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.d.ts +74 -0
  168. package/node_modules/@kardalum/api-schemas/dist/media-rendition.schema.js +157 -0
  169. package/node_modules/@kardalum/api-schemas/dist/media.schema.d.ts +80 -0
  170. package/node_modules/@kardalum/api-schemas/dist/media.schema.js +156 -0
  171. package/node_modules/@kardalum/api-schemas/dist/nav.schema.d.ts +23 -0
  172. package/node_modules/@kardalum/api-schemas/dist/nav.schema.js +55 -0
  173. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.d.ts +846 -0
  174. package/node_modules/@kardalum/api-schemas/dist/node-access.schema.js +356 -0
  175. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.d.ts +20 -0
  176. package/node_modules/@kardalum/api-schemas/dist/plugin-actions.schema.js +27 -0
  177. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.d.ts +169 -0
  178. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-api.schema.js +80 -0
  179. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.d.ts +65 -0
  180. package/node_modules/@kardalum/api-schemas/dist/plugin-docs-text.js +889 -0
  181. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.d.ts +89 -0
  182. package/node_modules/@kardalum/api-schemas/dist/plugin-docs.js +134 -0
  183. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.d.ts +31 -0
  184. package/node_modules/@kardalum/api-schemas/dist/plugin-id-rules.js +38 -0
  185. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.d.ts +369 -0
  186. package/node_modules/@kardalum/api-schemas/dist/plugin-management-api.schema.js +393 -0
  187. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.d.ts +22 -0
  188. package/node_modules/@kardalum/api-schemas/dist/plugin-manifest-actions.js +87 -0
  189. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.d.ts +31 -0
  190. package/node_modules/@kardalum/api-schemas/dist/plugin-registry-api.schema.js +25 -0
  191. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.d.ts +15 -0
  192. package/node_modules/@kardalum/api-schemas/dist/plugin-storage-api.schema.js +24 -0
  193. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.d.ts +306 -0
  194. package/node_modules/@kardalum/api-schemas/dist/public-api.schema.js +328 -0
  195. package/node_modules/@kardalum/api-schemas/dist/render-editing.d.ts +79 -0
  196. package/node_modules/@kardalum/api-schemas/dist/render-editing.js +50 -0
  197. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.d.ts +9 -0
  198. package/node_modules/@kardalum/api-schemas/dist/render-settings-api.schema.js +13 -0
  199. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.d.ts +2 -0
  200. package/node_modules/@kardalum/api-schemas/dist/reserved-slugs.js +16 -0
  201. package/node_modules/@kardalum/api-schemas/dist/role.schema.d.ts +90 -0
  202. package/node_modules/@kardalum/api-schemas/dist/role.schema.js +69 -0
  203. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.d.ts +17 -0
  204. package/node_modules/@kardalum/api-schemas/dist/sample-content-outcome.schema.js +27 -0
  205. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.d.ts +108 -0
  206. package/node_modules/@kardalum/api-schemas/dist/setup-api.schema.js +93 -0
  207. package/node_modules/@kardalum/api-schemas/dist/sites.schema.d.ts +243 -0
  208. package/node_modules/@kardalum/api-schemas/dist/sites.schema.js +296 -0
  209. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.d.ts +43 -0
  210. package/node_modules/@kardalum/api-schemas/dist/snapshot-api.schema.js +25 -0
  211. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.d.ts +30 -0
  212. package/node_modules/@kardalum/api-schemas/dist/snapshot.schema.js +19 -0
  213. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.d.ts +112 -0
  214. package/node_modules/@kardalum/api-schemas/dist/template-api.schema.js +74 -0
  215. package/node_modules/@kardalum/api-schemas/dist/template.schema.d.ts +41 -0
  216. package/node_modules/@kardalum/api-schemas/dist/template.schema.js +39 -0
  217. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.d.ts +21 -0
  218. package/node_modules/@kardalum/api-schemas/dist/theme-api.schema.js +14 -0
  219. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.d.ts +89 -0
  220. package/node_modules/@kardalum/api-schemas/dist/user-api.schema.js +68 -0
  221. package/node_modules/@kardalum/api-schemas/package.json +35 -0
  222. package/node_modules/@kardalum/design-tokens/LICENSE +202 -0
  223. package/node_modules/@kardalum/design-tokens/README.md +29 -0
  224. package/node_modules/@kardalum/design-tokens/dist/build-css.d.ts +32 -0
  225. package/node_modules/@kardalum/design-tokens/dist/build-css.js +88 -0
  226. package/node_modules/@kardalum/design-tokens/dist/generate.d.ts +1 -0
  227. package/node_modules/@kardalum/design-tokens/dist/generate.js +18 -0
  228. package/node_modules/@kardalum/design-tokens/dist/index.d.ts +6 -0
  229. package/node_modules/@kardalum/design-tokens/dist/index.js +4 -0
  230. package/node_modules/@kardalum/design-tokens/dist/system-dark.css +75 -0
  231. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.d.ts +33 -0
  232. package/node_modules/@kardalum/design-tokens/dist/tailwind-theme.js +54 -0
  233. package/node_modules/@kardalum/design-tokens/dist/theme-css.d.ts +12 -0
  234. package/node_modules/@kardalum/design-tokens/dist/theme-css.js +42 -0
  235. package/node_modules/@kardalum/design-tokens/dist/theme-types.d.ts +43 -0
  236. package/node_modules/@kardalum/design-tokens/dist/theme-types.js +1 -0
  237. package/node_modules/@kardalum/design-tokens/dist/themes/dark.d.ts +13 -0
  238. package/node_modules/@kardalum/design-tokens/dist/themes/dark.js +120 -0
  239. package/node_modules/@kardalum/design-tokens/dist/themes/index.d.ts +5 -0
  240. package/node_modules/@kardalum/design-tokens/dist/themes/index.js +4 -0
  241. package/node_modules/@kardalum/design-tokens/dist/themes/light.d.ts +9 -0
  242. package/node_modules/@kardalum/design-tokens/dist/themes/light.js +13 -0
  243. package/node_modules/@kardalum/design-tokens/dist/tokens.css +239 -0
  244. package/node_modules/@kardalum/design-tokens/dist/tokens.d.ts +25 -0
  245. package/node_modules/@kardalum/design-tokens/dist/tokens.js +276 -0
  246. package/node_modules/@kardalum/design-tokens/dist/tokens.json +212 -0
  247. package/node_modules/@kardalum/design-tokens/dist/types.d.ts +91 -0
  248. package/node_modules/@kardalum/design-tokens/dist/types.js +5 -0
  249. package/node_modules/@kardalum/design-tokens/package.json +42 -0
  250. package/node_modules/@kardalum/plugin-package/LICENSE +202 -0
  251. package/node_modules/@kardalum/plugin-package/README.md +71 -0
  252. package/node_modules/@kardalum/plugin-package/dist/docs-contract.d.ts +50 -0
  253. package/node_modules/@kardalum/plugin-package/dist/docs-contract.js +659 -0
  254. package/node_modules/@kardalum/plugin-package/dist/envelope.d.ts +19 -0
  255. package/node_modules/@kardalum/plugin-package/dist/envelope.js +104 -0
  256. package/node_modules/@kardalum/plugin-package/dist/extract.d.ts +37 -0
  257. package/node_modules/@kardalum/plugin-package/dist/extract.js +199 -0
  258. package/node_modules/@kardalum/plugin-package/dist/hash.d.ts +17 -0
  259. package/node_modules/@kardalum/plugin-package/dist/hash.js +69 -0
  260. package/node_modules/@kardalum/plugin-package/dist/index.d.ts +11 -0
  261. package/node_modules/@kardalum/plugin-package/dist/index.js +7 -0
  262. package/node_modules/@kardalum/plugin-package/dist/license-verdict.d.ts +185 -0
  263. package/node_modules/@kardalum/plugin-package/dist/license-verdict.js +236 -0
  264. package/node_modules/@kardalum/plugin-package/dist/package-contract.d.ts +50 -0
  265. package/node_modules/@kardalum/plugin-package/dist/package-contract.js +115 -0
  266. package/node_modules/@kardalum/plugin-package/dist/sample-content.d.ts +1 -0
  267. package/node_modules/@kardalum/plugin-package/dist/sample-content.js +17 -0
  268. package/node_modules/@kardalum/plugin-package/dist/types.d.ts +45 -0
  269. package/node_modules/@kardalum/plugin-package/dist/types.js +1 -0
  270. package/node_modules/@kardalum/plugin-package/package.json +49 -0
  271. package/node_modules/@kardalum/ui/LICENSE +202 -0
  272. package/node_modules/@kardalum/ui/README.md +35 -0
  273. package/node_modules/@kardalum/ui/dist/components/alert-dialog.d.ts +14 -0
  274. package/node_modules/@kardalum/ui/dist/components/alert-dialog.js +38 -0
  275. package/node_modules/@kardalum/ui/dist/components/badge.d.ts +9 -0
  276. package/node_modules/@kardalum/ui/dist/components/badge.js +30 -0
  277. package/node_modules/@kardalum/ui/dist/components/button.d.ts +11 -0
  278. package/node_modules/@kardalum/ui/dist/components/button.js +37 -0
  279. package/node_modules/@kardalum/ui/dist/components/checkbox.d.ts +5 -0
  280. package/node_modules/@kardalum/ui/dist/components/checkbox.js +7 -0
  281. package/node_modules/@kardalum/ui/dist/components/dialog.d.ts +17 -0
  282. package/node_modules/@kardalum/ui/dist/components/dialog.js +48 -0
  283. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.d.ts +18 -0
  284. package/node_modules/@kardalum/ui/dist/components/dropdown-menu.js +53 -0
  285. package/node_modules/@kardalum/ui/dist/components/empty-state.d.ts +30 -0
  286. package/node_modules/@kardalum/ui/dist/components/empty-state.js +9 -0
  287. package/node_modules/@kardalum/ui/dist/components/input.d.ts +4 -0
  288. package/node_modules/@kardalum/ui/dist/components/input.js +6 -0
  289. package/node_modules/@kardalum/ui/dist/components/panel.d.ts +5 -0
  290. package/node_modules/@kardalum/ui/dist/components/panel.js +6 -0
  291. package/node_modules/@kardalum/ui/dist/components/property-field.d.ts +19 -0
  292. package/node_modules/@kardalum/ui/dist/components/property-field.js +86 -0
  293. package/node_modules/@kardalum/ui/dist/components/sheet.d.ts +17 -0
  294. package/node_modules/@kardalum/ui/dist/components/sheet.js +55 -0
  295. package/node_modules/@kardalum/ui/dist/components/skeleton.d.ts +3 -0
  296. package/node_modules/@kardalum/ui/dist/components/skeleton.js +9 -0
  297. package/node_modules/@kardalum/ui/dist/components/switch.d.ts +5 -0
  298. package/node_modules/@kardalum/ui/dist/components/switch.js +7 -0
  299. package/node_modules/@kardalum/ui/dist/components/tab-strip.d.ts +34 -0
  300. package/node_modules/@kardalum/ui/dist/components/tab-strip.js +72 -0
  301. package/node_modules/@kardalum/ui/dist/components/toast.d.ts +18 -0
  302. package/node_modules/@kardalum/ui/dist/components/toast.js +42 -0
  303. package/node_modules/@kardalum/ui/dist/components/toaster.d.ts +12 -0
  304. package/node_modules/@kardalum/ui/dist/components/toaster.js +11 -0
  305. package/node_modules/@kardalum/ui/dist/components/use-toast.d.ts +17 -0
  306. package/node_modules/@kardalum/ui/dist/components/use-toast.js +62 -0
  307. package/node_modules/@kardalum/ui/dist/index.d.ts +18 -0
  308. package/node_modules/@kardalum/ui/dist/index.js +18 -0
  309. package/node_modules/@kardalum/ui/dist/lib/cn.d.ts +2 -0
  310. package/node_modules/@kardalum/ui/dist/lib/cn.js +5 -0
  311. package/node_modules/@kardalum/ui/package.json +63 -0
  312. package/package.json +146 -4
@@ -0,0 +1,13 @@
1
+ import type { BuiltInTheme } from '../theme-types.js';
2
+ /**
3
+ * Dark theme overrides (S177/S178): warm charcoal, not GitHub-black. The
4
+ * light blue (#7CC0E8) becomes the ACTION colour itself — primary-600 is
5
+ * remapped to it, and text.inverse flips to near-black so `bg-primary-600
6
+ * text-text-inverse` (every primary button) stays legible without any
7
+ * component knowing which theme is active. Status scales remap the steps
8
+ * components use accordingly (100 fill, 600, and the AA text step — 700
9
+ * for success/danger, 800 for warning). Colour only — the
10
+ * Theme System contract keeps typography/spacing/shadow/motion in the
11
+ * base set.
12
+ */
13
+ export declare const darkTheme: BuiltInTheme;
@@ -0,0 +1,120 @@
1
+ /**
2
+ * Dark theme overrides (S177/S178): warm charcoal, not GitHub-black. The
3
+ * light blue (#7CC0E8) becomes the ACTION colour itself — primary-600 is
4
+ * remapped to it, and text.inverse flips to near-black so `bg-primary-600
5
+ * text-text-inverse` (every primary button) stays legible without any
6
+ * component knowing which theme is active. Status scales remap the steps
7
+ * components use accordingly (100 fill, 600, and the AA text step — 700
8
+ * for success/danger, 800 for warning). Colour only — the
9
+ * Theme System contract keeps typography/spacing/shadow/motion in the
10
+ * base set.
11
+ */
12
+ export const darkTheme = {
13
+ id: 'dark',
14
+ name: 'Dark',
15
+ type: 'theme',
16
+ contributions: {
17
+ themeTokens: {
18
+ color: {
19
+ background: {
20
+ base: '#1A1C1B',
21
+ elevated: '#232625',
22
+ subtle: '#1F2221',
23
+ overlay: 'rgba(0, 0, 0, 0.6)',
24
+ hover: '#2C302E',
25
+ },
26
+ text: {
27
+ primary: '#ECEAE3',
28
+ secondary: '#A3A8A6',
29
+ tertiary: '#969C99',
30
+ disabled: '#6F7573',
31
+ inverse: '#14181B',
32
+ },
33
+ border: {
34
+ default: '#33373A',
35
+ subtle: '#2C302E',
36
+ strong: '#444A4D',
37
+ },
38
+ primary: {
39
+ '50': '#1D2A34',
40
+ '100': '#22364A',
41
+ '200': '#2A4A66',
42
+ '300': '#7CC0E8',
43
+ '600': '#7CC0E8',
44
+ '700': '#9AD0EE',
45
+ '800': '#BFE1F5',
46
+ // The deep steps are surfaces, not text, so they invert too.
47
+ // Without them bg-primary-950 kept its LIGHT value, a dark navy,
48
+ // while text.inverse flipped to near-black above it, and the
49
+ // homepage's rollback section went to 1.21:1: the heading was
50
+ // simply not there. Both values are the approved A1 mockup's own
51
+ // dark block (--p900, --p950).
52
+ '900': '#2A4A66',
53
+ '950': '#22364A',
54
+ },
55
+ secondary: { '100': '#2A2C46', '500': '#9A9DE3', '600': '#9A9DE3' },
56
+ success: { '100': '#223A1E', '600': '#7FC46E', '700': '#8FD07F' },
57
+ warning: { '100': '#3D3016', '600': '#E0AA4B', '800': '#EABB6A' },
58
+ danger: { '100': '#45201D', '600': '#E8776E', '700': '#F0918A' },
59
+ code: {
60
+ keyword: '#7CC0E8',
61
+ tag: '#9A9DE3',
62
+ string: '#7FC46E',
63
+ attr: '#E0AA4B',
64
+ comment: '#A3A8A6',
65
+ punctuation: '#C5C9C6',
66
+ },
67
+ // S256: these go DARKER in dark mode, not lighter. A navy panel on
68
+ // a near-black page reads wrong, which is why the mockup takes both
69
+ // to #14181B. They are near-flush with the page base (#1A1C1B, so
70
+ // 1.04:1) on purpose: the content defines these regions, not their
71
+ // edges. `muted` is #7A8380 in the mockup, which measures 4.11:1 on
72
+ // `raised`, under AA, so it is lifted one step here.
73
+ // #848A87 on raised measures 4.558:1, 0.058 above the floor.
74
+ // Deliberate: the operator chose the minimal correction from the
75
+ // approved mockup over a comfortable one. Any change to raised or
76
+ // muted re-tightens this, and the test will fail with a bare
77
+ // number, so this is the explanation.
78
+ artifact: {
79
+ base: '#14181B',
80
+ raised: '#1F2221',
81
+ border: '#33373A',
82
+ text: '#C9CFCD',
83
+ muted: '#848A87',
84
+ strong: '#ECEAE3',
85
+ // Identical to light on purpose: the surface under them never
86
+ // changes, so neither do they.
87
+ keyword: '#7CC0E8',
88
+ string: '#9FD8A8',
89
+ highlight: '#E7B96B',
90
+ },
91
+ footer: {
92
+ base: '#14181B',
93
+ border: '#2C302E',
94
+ text: '#969C99',
95
+ muted: '#848A87',
96
+ strong: '#ECEAE3',
97
+ },
98
+ // R4 fix wave: the mark swaps its two colours in dark (the approved
99
+ // mockup's dark F): a light-blue tile with a navy keep.
100
+ brand: {
101
+ tile: '#7CC0E8',
102
+ keep: '#113D5C',
103
+ },
104
+ neutral: {
105
+ '50': '#1F2221',
106
+ '100': '#232625',
107
+ '200': '#2C302E',
108
+ '300': '#33373A',
109
+ '400': '#444A4D',
110
+ '500': '#6F7573',
111
+ '600': '#A3A8A6',
112
+ '700': '#C5C9C6',
113
+ '800': '#DAD9D3',
114
+ '900': '#ECEAE3',
115
+ '950': '#F5F4F0',
116
+ },
117
+ },
118
+ },
119
+ },
120
+ };
@@ -0,0 +1,5 @@
1
+ import type { BuiltInTheme } from '../theme-types.js';
2
+ import { lightTheme } from './light.js';
3
+ import { darkTheme } from './dark.js';
4
+ export { lightTheme, darkTheme };
5
+ export declare const themes: BuiltInTheme[];
@@ -0,0 +1,4 @@
1
+ import { lightTheme } from './light.js';
2
+ import { darkTheme } from './dark.js';
3
+ export { lightTheme, darkTheme };
4
+ export const themes = [lightTheme, darkTheme];
@@ -0,0 +1,9 @@
1
+ import type { BuiltInTheme } from '../theme-types.js';
2
+ /**
3
+ * Light needs no overrides — the base token set generated to :root
4
+ * (tokens.ts) already IS the light theme. Still modeled as a real
5
+ * BuiltInTheme, not a special case: applying any theme is always
6
+ * "set data-theme to this id," whether or not that theme happens to
7
+ * define overrides.
8
+ */
9
+ export declare const lightTheme: BuiltInTheme;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Light needs no overrides — the base token set generated to :root
3
+ * (tokens.ts) already IS the light theme. Still modeled as a real
4
+ * BuiltInTheme, not a special case: applying any theme is always
5
+ * "set data-theme to this id," whether or not that theme happens to
6
+ * define overrides.
7
+ */
8
+ export const lightTheme = {
9
+ id: 'light',
10
+ name: 'Light',
11
+ type: 'theme',
12
+ contributions: { themeTokens: {} },
13
+ };
@@ -0,0 +1,239 @@
1
+ /* Generated by @kardalum/design-tokens: do not edit by hand. */
2
+
3
+ :root {
4
+ --color-primary-50: #EAF4FB;
5
+ --color-primary-100: #CFE6F6;
6
+ --color-primary-200: #A9D5F0;
7
+ --color-primary-300: #7CC0E8;
8
+ --color-primary-400: #4E9CCB;
9
+ --color-primary-500: #2A82BC;
10
+ --color-primary-600: #1F6FA8;
11
+ --color-primary-700: #1A5E8F;
12
+ --color-primary-800: #154D75;
13
+ --color-primary-900: #113D5C;
14
+ --color-primary-950: #0B2A40;
15
+ --color-secondary-50: #F0F0FA;
16
+ --color-secondary-100: #E9E9F8;
17
+ --color-secondary-200: #D3D4F1;
18
+ --color-secondary-300: #B4B6E6;
19
+ --color-secondary-400: #8F92D8;
20
+ --color-secondary-500: #5B5FC7;
21
+ --color-secondary-600: #4B4FB0;
22
+ --color-secondary-700: #3E4194;
23
+ --color-secondary-800: #333676;
24
+ --color-secondary-900: #282A5C;
25
+ --color-secondary-950: #181A3A;
26
+ --color-success-50: #EEF5EB;
27
+ --color-success-100: #E4F0DF;
28
+ --color-success-200: #C6E0BD;
29
+ --color-success-300: #9CC78E;
30
+ --color-success-400: #6CA85C;
31
+ --color-success-500: #4E9340;
32
+ --color-success-600: #3B7D2E;
33
+ --color-success-700: #306626;
34
+ --color-success-800: #27521F;
35
+ --color-success-900: #1F4119;
36
+ --color-success-950: #122A0E;
37
+ --color-warning-50: #FBF5E8;
38
+ --color-warning-100: #F7EBD2;
39
+ --color-warning-200: #EFD8A6;
40
+ --color-warning-300: #E4BF72;
41
+ --color-warning-400: #D6A245;
42
+ --color-warning-500: #C98E2D;
43
+ --color-warning-600: #B7791F;
44
+ --color-warning-700: #96631A;
45
+ --color-warning-800: #764E15;
46
+ --color-warning-900: #5B3C11;
47
+ --color-warning-950: #3B260A;
48
+ --color-danger-50: #FBEFEE;
49
+ --color-danger-100: #F6E0DE;
50
+ --color-danger-200: #EEC3BF;
51
+ --color-danger-300: #E39B95;
52
+ --color-danger-400: #D66E66;
53
+ --color-danger-500: #C94F46;
54
+ --color-danger-600: #B93A32;
55
+ --color-danger-700: #9A2F29;
56
+ --color-danger-800: #7B2621;
57
+ --color-danger-900: #611E1A;
58
+ --color-danger-950: #3F120F;
59
+ --color-neutral-50: #FAF9F5;
60
+ --color-neutral-100: #F3F1EB;
61
+ --color-neutral-200: #ECEAE3;
62
+ --color-neutral-300: #E1DED5;
63
+ --color-neutral-400: #CFCBC0;
64
+ --color-neutral-500: #8C9490;
65
+ --color-neutral-600: #5C6663;
66
+ --color-neutral-700: #3E4644;
67
+ --color-neutral-800: #2A3230;
68
+ --color-neutral-900: #1B2321;
69
+ --color-neutral-950: #111614;
70
+ --color-background-base: #F3F1EB;
71
+ --color-background-elevated: #FFFFFF;
72
+ --color-background-subtle: #FAF9F5;
73
+ --color-background-overlay: rgba(27, 35, 33, 0.5);
74
+ --color-background-hover: #F0EEE7;
75
+ --color-text-primary: #1B2321;
76
+ --color-text-secondary: #5C6663;
77
+ --color-text-tertiary: #616966;
78
+ --color-text-disabled: #8C9490;
79
+ --color-text-inverse: #FFFFFF;
80
+ --color-border-default: #E1DED5;
81
+ --color-border-subtle: #ECEAE3;
82
+ --color-border-strong: #CFCBC0;
83
+ --color-code-keyword: #1A5E8F;
84
+ --color-code-tag: #4B4FB0;
85
+ --color-code-string: #306626;
86
+ --color-code-attr: #96631A;
87
+ --color-code-comment: #6B6659;
88
+ --color-code-punctuation: #4A463C;
89
+ --color-artifact-base: #0B2A40;
90
+ --color-artifact-raised: #113D5C;
91
+ --color-artifact-border: #1A5E8F;
92
+ --color-artifact-text: #CFE6F6;
93
+ --color-artifact-muted: #8FA9BC;
94
+ --color-artifact-strong: #FFFFFF;
95
+ --color-artifact-keyword: #7CC0E8;
96
+ --color-artifact-string: #9FD8A8;
97
+ --color-artifact-highlight: #E7B96B;
98
+ --color-footer-base: #1B2321;
99
+ --color-footer-border: #2A3230;
100
+ --color-footer-text: #CFCBC0;
101
+ --color-footer-muted: #8C9490;
102
+ --color-footer-strong: #FFFFFF;
103
+ --color-brand-tile: #113D5C;
104
+ --color-brand-keep: #7CC0E8;
105
+ --spacing-0: 0;
106
+ --spacing-1: 0.25rem;
107
+ --spacing-2: 0.5rem;
108
+ --spacing-3: 0.75rem;
109
+ --spacing-4: 1rem;
110
+ --spacing-5: 1.25rem;
111
+ --spacing-6: 1.5rem;
112
+ --spacing-7: 1.75rem;
113
+ --spacing-8: 2rem;
114
+ --spacing-9: 2.25rem;
115
+ --spacing-10: 2.5rem;
116
+ --spacing-11: 2.75rem;
117
+ --spacing-12: 3rem;
118
+ --spacing-14: 3.5rem;
119
+ --spacing-16: 4rem;
120
+ --spacing-20: 5rem;
121
+ --spacing-24: 6rem;
122
+ --spacing-28: 7rem;
123
+ --spacing-32: 8rem;
124
+ --spacing-44: 11rem;
125
+ --spacing-64: 16rem;
126
+ --spacing-72: 18rem;
127
+ --spacing-px: 1px;
128
+ --radius-none: 0;
129
+ --radius-sm: 0.375rem;
130
+ --radius-md: 0.5rem;
131
+ --radius-lg: 0.75rem;
132
+ --radius-xl: 1rem;
133
+ --radius-full: 9999px;
134
+ --shadow-sm: 0 1px 2px 0 rgba(43, 38, 24, 0.06);
135
+ --shadow-md: 0 1px 2px 0 rgba(43, 38, 24, 0.05), 0 6px 18px 0 rgba(43, 38, 24, 0.07);
136
+ --shadow-lg: 0 2px 4px 0 rgba(43, 38, 24, 0.06), 0 16px 40px 0 rgba(43, 38, 24, 0.12);
137
+ --shadow-xl: 0 4px 8px 0 rgba(43, 38, 24, 0.08), 0 24px 56px 0 rgba(43, 38, 24, 0.16);
138
+ --motion-duration-fast: 150ms;
139
+ --motion-duration-normal: 250ms;
140
+ --motion-duration-slow: 400ms;
141
+ --motion-easing-standard: cubic-bezier(0.4, 0, 0.2, 1);
142
+ --motion-easing-enter: cubic-bezier(0, 0, 0.2, 1);
143
+ --motion-easing-exit: cubic-bezier(0.4, 0, 1, 1);
144
+ --direction: ltr;
145
+ --font-family-sans: 'IBM Plex Sans', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif;
146
+ --font-family-serif: 'Literata', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
147
+ --font-family-mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
148
+ --font-size-xs: 0.75rem;
149
+ --font-size-sm: 0.8125rem;
150
+ --font-size-base: 0.875rem;
151
+ --font-size-lg: 1rem;
152
+ --font-size-xl: 1.25rem;
153
+ --font-size-2xl: 1.5rem;
154
+ --font-size-3xl: 1.875rem;
155
+ --font-size-4xl: clamp(1.9rem, 3.4vw, 2.6rem);
156
+ --font-size-5xl: clamp(2.6rem, 4.6vw, 3.4rem);
157
+ --font-weight-normal: 400;
158
+ --font-weight-medium: 500;
159
+ --font-weight-semibold: 600;
160
+ --font-weight-bold: 700;
161
+ --line-height-tight: 1.25;
162
+ --line-height-normal: 1.5;
163
+ --line-height-relaxed: 1.75;
164
+ }
165
+
166
+ [data-theme="dark"] {
167
+ --color-background-base: #1A1C1B;
168
+ --color-background-elevated: #232625;
169
+ --color-background-subtle: #1F2221;
170
+ --color-background-overlay: rgba(0, 0, 0, 0.6);
171
+ --color-background-hover: #2C302E;
172
+ --color-text-primary: #ECEAE3;
173
+ --color-text-secondary: #A3A8A6;
174
+ --color-text-tertiary: #969C99;
175
+ --color-text-disabled: #6F7573;
176
+ --color-text-inverse: #14181B;
177
+ --color-border-default: #33373A;
178
+ --color-border-subtle: #2C302E;
179
+ --color-border-strong: #444A4D;
180
+ --color-primary-50: #1D2A34;
181
+ --color-primary-100: #22364A;
182
+ --color-primary-200: #2A4A66;
183
+ --color-primary-300: #7CC0E8;
184
+ --color-primary-600: #7CC0E8;
185
+ --color-primary-700: #9AD0EE;
186
+ --color-primary-800: #BFE1F5;
187
+ --color-primary-900: #2A4A66;
188
+ --color-primary-950: #22364A;
189
+ --color-secondary-100: #2A2C46;
190
+ --color-secondary-500: #9A9DE3;
191
+ --color-secondary-600: #9A9DE3;
192
+ --color-success-100: #223A1E;
193
+ --color-success-600: #7FC46E;
194
+ --color-success-700: #8FD07F;
195
+ --color-warning-100: #3D3016;
196
+ --color-warning-600: #E0AA4B;
197
+ --color-warning-800: #EABB6A;
198
+ --color-danger-100: #45201D;
199
+ --color-danger-600: #E8776E;
200
+ --color-danger-700: #F0918A;
201
+ --color-code-keyword: #7CC0E8;
202
+ --color-code-tag: #9A9DE3;
203
+ --color-code-string: #7FC46E;
204
+ --color-code-attr: #E0AA4B;
205
+ --color-code-comment: #A3A8A6;
206
+ --color-code-punctuation: #C5C9C6;
207
+ --color-artifact-base: #14181B;
208
+ --color-artifact-raised: #1F2221;
209
+ --color-artifact-border: #33373A;
210
+ --color-artifact-text: #C9CFCD;
211
+ --color-artifact-muted: #848A87;
212
+ --color-artifact-strong: #ECEAE3;
213
+ --color-artifact-keyword: #7CC0E8;
214
+ --color-artifact-string: #9FD8A8;
215
+ --color-artifact-highlight: #E7B96B;
216
+ --color-footer-base: #14181B;
217
+ --color-footer-border: #2C302E;
218
+ --color-footer-text: #969C99;
219
+ --color-footer-muted: #848A87;
220
+ --color-footer-strong: #ECEAE3;
221
+ --color-brand-tile: #7CC0E8;
222
+ --color-brand-keep: #113D5C;
223
+ --color-neutral-50: #1F2221;
224
+ --color-neutral-100: #232625;
225
+ --color-neutral-200: #2C302E;
226
+ --color-neutral-300: #33373A;
227
+ --color-neutral-400: #444A4D;
228
+ --color-neutral-500: #6F7573;
229
+ --color-neutral-600: #A3A8A6;
230
+ --color-neutral-700: #C5C9C6;
231
+ --color-neutral-800: #DAD9D3;
232
+ --color-neutral-900: #ECEAE3;
233
+ --color-neutral-950: #F5F4F0;
234
+ }
235
+
236
+ /* Arabic locales lead with Plex Sans Arabic: same token, language-conditional value. */
237
+ [lang="ar"], [lang^="ar-"] {
238
+ --font-family-sans: 'IBM Plex Sans Arabic', 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
239
+ }
@@ -0,0 +1,25 @@
1
+ import type { KardalumDesignTokens } from './types.js';
2
+ /**
3
+ * Kardalum brand tokens: the default (light) token set, per the S177
4
+ * design (the Session-177 design decisions,
5
+ * user-approved 2026-08-30).
6
+ *
7
+ * Colour roles: the primary scale runs sky (50–300, atmosphere:
8
+ * selection, focus, the version rail) into cerulean (600–800, action:
9
+ * buttons, links). THE ACTION COLOUR IS primary-600 — this supersedes the
10
+ * Session-27 "brand = 500 step" convention for primary; 500 is a
11
+ * mid-step used for nothing in particular. Status scales pair a 100-step
12
+ * soft fill with the lightest text step that clears 4.5:1 on that fill
13
+ * (success/danger 700, warning 800). Neutrals are warm stone, not grey. The
14
+ * dark set (themes/dark.ts) overrides colour only — themes never touch
15
+ * typography/spacing/shadow/motion.
16
+ */
17
+ export declare const tokens: KardalumDesignTokens;
18
+ /**
19
+ * Under an Arabic document language the SAME sans token leads with Plex
20
+ * Sans Arabic (its Latin glyphs are Plex-compatible), so RTL locales get a
21
+ * native UI face without any component knowing. Emitted by build-css.ts
22
+ * as a `[lang="ar"]` block — a language-conditional value of an existing
23
+ * token, not a new one.
24
+ */
25
+ export declare const ARABIC_SANS_FONT_FAMILY = "'IBM Plex Sans Arabic', 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif";