@inkeep/agents-ui 0.1.0 → 0.14.8

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 (335) hide show
  1. package/LICENSE +64 -0
  2. package/README.md +1 -67
  3. package/dist/_virtual/index.cjs +1 -0
  4. package/dist/_virtual/index.js +4 -0
  5. package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
  6. package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
  7. package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
  8. package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
  9. package/dist/color-mode/index.cjs +1 -0
  10. package/dist/color-mode/index.js +170 -0
  11. package/dist/index.cjs +1 -0
  12. package/dist/index.d.cts +5093 -0
  13. package/dist/index.d.ts +5093 -0
  14. package/dist/index.js +213 -0
  15. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.cjs +9 -0
  16. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +68 -0
  17. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.cjs +9 -0
  18. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +56 -0
  19. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.cjs +1 -0
  20. package/dist/node_modules/.pnpm/use-sync-external-store@1.5.0_react@19.0.0/node_modules/use-sync-external-store/shim/index.js +8 -0
  21. package/dist/primitives/atoms/avatars/ai.cjs +1 -0
  22. package/dist/primitives/atoms/avatars/ai.js +99 -0
  23. package/dist/primitives/atoms/avatars/user.cjs +1 -0
  24. package/dist/primitives/atoms/avatars/user.js +27 -0
  25. package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
  26. package/dist/primitives/atoms/cmdk/command-score.js +46 -0
  27. package/dist/primitives/atoms/cmdk/index.cjs +1 -0
  28. package/dist/primitives/atoms/cmdk/index.js +521 -0
  29. package/dist/primitives/atoms/codeblock/index.cjs +1 -0
  30. package/dist/primitives/atoms/codeblock/index.js +40 -0
  31. package/dist/primitives/atoms/custom-styles.cjs +1 -0
  32. package/dist/primitives/atoms/custom-styles.js +57 -0
  33. package/dist/primitives/atoms/dialog.cjs +1 -0
  34. package/dist/primitives/atoms/dialog.js +226 -0
  35. package/dist/primitives/atoms/error-boundary.cjs +1 -0
  36. package/dist/primitives/atoms/error-boundary.js +9 -0
  37. package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
  38. package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
  39. package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
  40. package/dist/primitives/atoms/icons/built-in-icons.js +86 -0
  41. package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
  42. package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
  43. package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
  44. package/dist/primitives/atoms/icons/collections/bi.js +49 -0
  45. package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
  46. package/dist/primitives/atoms/icons/collections/fi.js +29 -0
  47. package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
  48. package/dist/primitives/atoms/icons/collections/gr.js +21 -0
  49. package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
  50. package/dist/primitives/atoms/icons/collections/io5.js +806 -0
  51. package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
  52. package/dist/primitives/atoms/icons/collections/pi.js +49 -0
  53. package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
  54. package/dist/primitives/atoms/icons/custom-icon.js +19 -0
  55. package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
  56. package/dist/primitives/atoms/icons/generate-icon.js +56 -0
  57. package/dist/primitives/atoms/icons/index.cjs +1 -0
  58. package/dist/primitives/atoms/icons/index.js +6 -0
  59. package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
  60. package/dist/primitives/atoms/icons/inkeep-default-icons.js +24 -0
  61. package/dist/primitives/atoms/link.cjs +1 -0
  62. package/dist/primitives/atoms/link.js +35 -0
  63. package/dist/primitives/atoms/markdown/components.cjs +1 -0
  64. package/dist/primitives/atoms/markdown/components.js +73 -0
  65. package/dist/primitives/atoms/markdown/index.cjs +1 -0
  66. package/dist/primitives/atoms/markdown/index.js +115 -0
  67. package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
  68. package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
  69. package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
  70. package/dist/primitives/atoms/portal-with-theme.js +12 -0
  71. package/dist/primitives/atoms/portal.cjs +1 -0
  72. package/dist/primitives/atoms/portal.js +19 -0
  73. package/dist/primitives/atoms/select.cjs +1 -0
  74. package/dist/primitives/atoms/select.js +785 -0
  75. package/dist/primitives/atoms/shadow/context.cjs +1 -0
  76. package/dist/primitives/atoms/shadow/context.js +54 -0
  77. package/dist/primitives/atoms/shadow/create.cjs +1 -0
  78. package/dist/primitives/atoms/shadow/create.js +56 -0
  79. package/dist/primitives/atoms/shadow/root.cjs +1 -0
  80. package/dist/primitives/atoms/shadow/root.js +22 -0
  81. package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
  82. package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
  83. package/dist/primitives/atoms/shadow/utils.cjs +1 -0
  84. package/dist/primitives/atoms/shadow/utils.js +16 -0
  85. package/dist/primitives/components/chat-button.cjs +1 -0
  86. package/dist/primitives/components/chat-button.js +46 -0
  87. package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
  88. package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
  89. package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
  90. package/dist/primitives/components/embedded-chat/use-chat-action.js +38 -0
  91. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
  92. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +160 -0
  93. package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
  94. package/dist/primitives/components/embedded-chat/use-stream-processor.js +82 -0
  95. package/dist/primitives/components/embedded-chat.cjs +11 -0
  96. package/dist/primitives/components/embedded-chat.js +1898 -0
  97. package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
  98. package/dist/primitives/components/embedded-search/search-provider.js +26 -0
  99. package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
  100. package/dist/primitives/components/embedded-search/transform-results.js +47 -0
  101. package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
  102. package/dist/primitives/components/embedded-search/url-query.js +12 -0
  103. package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
  104. package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
  105. package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
  106. package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
  107. package/dist/primitives/components/embedded-search.cjs +1 -0
  108. package/dist/primitives/components/embedded-search.js +628 -0
  109. package/dist/primitives/components/factory.cjs +1 -0
  110. package/dist/primitives/components/factory.js +39 -0
  111. package/dist/primitives/components/index.cjs +1 -0
  112. package/dist/primitives/components/index.js +27 -0
  113. package/dist/primitives/components/modal/modal-provider.cjs +1 -0
  114. package/dist/primitives/components/modal/modal-provider.js +8 -0
  115. package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
  116. package/dist/primitives/components/modal/use-inkeep-modal.js +45 -0
  117. package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
  118. package/dist/primitives/components/modal/widget-auto-focus.js +16 -0
  119. package/dist/primitives/components/modal.cjs +1 -0
  120. package/dist/primitives/components/modal.js +40 -0
  121. package/dist/primitives/components/presence.cjs +1 -0
  122. package/dist/primitives/components/presence.js +26 -0
  123. package/dist/primitives/components/searchbar.cjs +1 -0
  124. package/dist/primitives/components/searchbar.js +54 -0
  125. package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
  126. package/dist/primitives/components/sidebar-chat/index.js +86 -0
  127. package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
  128. package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
  129. package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
  130. package/dist/primitives/components/tagline-logo-icon.js +26 -0
  131. package/dist/primitives/components/use-component-trigger.cjs +1 -0
  132. package/dist/primitives/components/use-component-trigger.js +16 -0
  133. package/dist/primitives/constants/search.cjs +1 -0
  134. package/dist/primitives/constants/search.js +5 -0
  135. package/dist/primitives/hooks/index.cjs +1 -0
  136. package/dist/primitives/hooks/index.js +24 -0
  137. package/dist/primitives/hooks/use-boolean.cjs +1 -0
  138. package/dist/primitives/hooks/use-boolean.js +17 -0
  139. package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
  140. package/dist/primitives/hooks/use-component-classnames.js +14 -0
  141. package/dist/primitives/hooks/use-container-size.cjs +1 -0
  142. package/dist/primitives/hooks/use-container-size.js +18 -0
  143. package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
  144. package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
  145. package/dist/primitives/hooks/use-debounce.cjs +1 -0
  146. package/dist/primitives/hooks/use-debounce.js +16 -0
  147. package/dist/primitives/hooks/use-instant-update.cjs +1 -0
  148. package/dist/primitives/hooks/use-instant-update.js +16 -0
  149. package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
  150. package/dist/primitives/hooks/use-is-mounted.js +11 -0
  151. package/dist/primitives/hooks/use-media-query.cjs +1 -0
  152. package/dist/primitives/hooks/use-media-query.js +14 -0
  153. package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
  154. package/dist/primitives/hooks/use-resize-observer.js +32 -0
  155. package/dist/primitives/hooks/use-scroll-to-bottom.cjs +1 -0
  156. package/dist/primitives/hooks/use-scroll-to-bottom.js +52 -0
  157. package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
  158. package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
  159. package/dist/primitives/hooks/use-settle-action.cjs +1 -0
  160. package/dist/primitives/hooks/use-settle-action.js +11 -0
  161. package/dist/primitives/index.cjs +1 -0
  162. package/dist/primitives/index.js +155 -0
  163. package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
  164. package/dist/primitives/providers/attachment-item-provider.js +13 -0
  165. package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
  166. package/dist/primitives/providers/attachments-bar-provider.js +57 -0
  167. package/dist/primitives/providers/base-events-provider.cjs +1 -0
  168. package/dist/primitives/providers/base-events-provider.js +37 -0
  169. package/dist/primitives/providers/chat-form-provider.cjs +1 -0
  170. package/dist/primitives/providers/chat-form-provider.js +109 -0
  171. package/dist/primitives/providers/config-provider.cjs +1 -0
  172. package/dist/primitives/providers/config-provider.js +38 -0
  173. package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
  174. package/dist/primitives/providers/feedback-item-provider.js +16 -0
  175. package/dist/primitives/providers/feedback-provider.cjs +1 -0
  176. package/dist/primitives/providers/feedback-provider.js +83 -0
  177. package/dist/primitives/providers/form-field-provider.cjs +1 -0
  178. package/dist/primitives/providers/form-field-provider.js +17 -0
  179. package/dist/primitives/providers/help-menu-provider.cjs +1 -0
  180. package/dist/primitives/providers/help-menu-provider.js +19 -0
  181. package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
  182. package/dist/primitives/providers/hover-popover-provider.js +13 -0
  183. package/dist/primitives/providers/index.cjs +1 -0
  184. package/dist/primitives/providers/index.js +57 -0
  185. package/dist/primitives/providers/markdown-provider.cjs +1 -0
  186. package/dist/primitives/providers/markdown-provider.js +8 -0
  187. package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
  188. package/dist/primitives/providers/message-attachments-provider.js +27 -0
  189. package/dist/primitives/providers/message-provider.cjs +1 -0
  190. package/dist/primitives/providers/message-provider.js +14 -0
  191. package/dist/primitives/providers/root-provider.cjs +1 -0
  192. package/dist/primitives/providers/root-provider.js +21 -0
  193. package/dist/primitives/providers/search-events-provider.cjs +1 -0
  194. package/dist/primitives/providers/search-events-provider.js +17 -0
  195. package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
  196. package/dist/primitives/providers/sidebar-chat-provider.js +41 -0
  197. package/dist/primitives/providers/source-item-provider.cjs +1 -0
  198. package/dist/primitives/providers/source-item-provider.js +13 -0
  199. package/dist/primitives/providers/theme-provider.cjs +3 -0
  200. package/dist/primitives/providers/theme-provider.js +79 -0
  201. package/dist/primitives/providers/widget-provider.cjs +1 -0
  202. package/dist/primitives/providers/widget-provider.js +8 -0
  203. package/dist/primitives/utils/component-ids.cjs +1 -0
  204. package/dist/primitives/utils/component-ids.js +309 -0
  205. package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
  206. package/dist/primitives/utils/compose-event-handlers.js +10 -0
  207. package/dist/primitives/utils/compose-refs.cjs +1 -0
  208. package/dist/primitives/utils/compose-refs.js +30 -0
  209. package/dist/primitives/utils/default-settings.cjs +1 -0
  210. package/dist/primitives/utils/default-settings.js +50 -0
  211. package/dist/primitives/utils/form.cjs +1 -0
  212. package/dist/primitives/utils/form.js +17 -0
  213. package/dist/primitives/utils/generate-uid.cjs +1 -0
  214. package/dist/primitives/utils/generate-uid.js +14 -0
  215. package/dist/primitives/utils/get-source-icon.cjs +1 -0
  216. package/dist/primitives/utils/get-source-icon.js +11 -0
  217. package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
  218. package/dist/primitives/utils/highlight-emphasis.js +15 -0
  219. package/dist/primitives/utils/merge-props.cjs +1 -0
  220. package/dist/primitives/utils/merge-props.js +41 -0
  221. package/dist/primitives/utils/misc.cjs +1 -0
  222. package/dist/primitives/utils/misc.js +31 -0
  223. package/dist/primitives/utils/split-props.cjs +1 -0
  224. package/dist/primitives/utils/split-props.js +10 -0
  225. package/dist/react/chat-button.cjs +1 -0
  226. package/dist/react/chat-button.js +60 -0
  227. package/dist/react/embedded-chat.cjs +1 -0
  228. package/dist/react/embedded-chat.js +380 -0
  229. package/dist/react/embedded-search-and-chat.cjs +1 -0
  230. package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
  231. package/dist/react/embedded-search-and-chat.impl.js +43 -0
  232. package/dist/react/embedded-search-and-chat.js +66 -0
  233. package/dist/react/embedded-search.cjs +1 -0
  234. package/dist/react/embedded-search.js +181 -0
  235. package/dist/react/index.cjs +1 -0
  236. package/dist/react/index.js +213 -0
  237. package/dist/react/modal.chat.cjs +1 -0
  238. package/dist/react/modal.chat.js +21 -0
  239. package/dist/react/modal.cjs +1 -0
  240. package/dist/react/modal.js +27 -0
  241. package/dist/react/modal.search-and-chat.cjs +1 -0
  242. package/dist/react/modal.search-and-chat.js +27 -0
  243. package/dist/react/modal.search.cjs +1 -0
  244. package/dist/react/modal.search.js +21 -0
  245. package/dist/react/searchbar.cjs +1 -0
  246. package/dist/react/searchbar.js +68 -0
  247. package/dist/react/sidebar-chat.cjs +1 -0
  248. package/dist/react/sidebar-chat.js +49 -0
  249. package/dist/react/utils.cjs +1 -0
  250. package/dist/react/utils.js +20 -0
  251. package/dist/react/widget-toggle.cjs +1 -0
  252. package/dist/react/widget-toggle.js +65 -0
  253. package/dist/styled/components/chat-button.cjs +1 -0
  254. package/dist/styled/components/chat-button.js +56 -0
  255. package/dist/styled/components/data-summary-group.cjs +1 -0
  256. package/dist/styled/components/data-summary-group.js +76 -0
  257. package/dist/styled/components/embedded-chat.cjs +1 -0
  258. package/dist/styled/components/embedded-chat.js +1816 -0
  259. package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
  260. package/dist/styled/components/embedded-search/results-loading.js +39 -0
  261. package/dist/styled/components/embedded-search.cjs +1 -0
  262. package/dist/styled/components/embedded-search.js +680 -0
  263. package/dist/styled/components/index.cjs +1 -0
  264. package/dist/styled/components/index.js +24 -0
  265. package/dist/styled/components/loading-indicator.cjs +1 -0
  266. package/dist/styled/components/loading-indicator.js +36 -0
  267. package/dist/styled/components/message.cjs +1 -0
  268. package/dist/styled/components/message.js +140 -0
  269. package/dist/styled/components/modal.cjs +1 -0
  270. package/dist/styled/components/modal.js +46 -0
  271. package/dist/styled/components/searchbar.cjs +1 -0
  272. package/dist/styled/components/searchbar.js +81 -0
  273. package/dist/styled/components/shadow.cjs +1 -0
  274. package/dist/styled/components/shadow.js +8 -0
  275. package/dist/styled/components/sidebar-chat.cjs +1 -0
  276. package/dist/styled/components/sidebar-chat.js +90 -0
  277. package/dist/styled/components/ui/markdown-styles.cjs +1 -0
  278. package/dist/styled/components/ui/markdown-styles.js +38 -0
  279. package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
  280. package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +32 -0
  281. package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
  282. package/dist/styled/components/ui/recipes/attachment.js +28 -0
  283. package/dist/styled/components/ui/recipes/button.cjs +1 -0
  284. package/dist/styled/components/ui/recipes/button.js +81 -0
  285. package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
  286. package/dist/styled/components/ui/recipes/checkbox.js +23 -0
  287. package/dist/styled/components/ui/recipes/citation.cjs +1 -0
  288. package/dist/styled/components/ui/recipes/citation.js +75 -0
  289. package/dist/styled/components/ui/recipes/icon.cjs +1 -0
  290. package/dist/styled/components/ui/recipes/icon.js +6 -0
  291. package/dist/styled/components/ui/recipes/index.cjs +1 -0
  292. package/dist/styled/components/ui/recipes/index.js +37 -0
  293. package/dist/styled/components/ui/recipes/input.cjs +1 -0
  294. package/dist/styled/components/ui/recipes/input.js +34 -0
  295. package/dist/styled/components/ui/recipes/link.cjs +1 -0
  296. package/dist/styled/components/ui/recipes/link.js +13 -0
  297. package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
  298. package/dist/styled/components/ui/recipes/markdown.js +103 -0
  299. package/dist/styled/components/ui/recipes/modal.cjs +1 -0
  300. package/dist/styled/components/ui/recipes/modal.js +59 -0
  301. package/dist/styled/components/ui/recipes/popover.cjs +1 -0
  302. package/dist/styled/components/ui/recipes/popover.js +20 -0
  303. package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
  304. package/dist/styled/components/ui/recipes/scrollable.js +15 -0
  305. package/dist/styled/components/ui/recipes/select.cjs +1 -0
  306. package/dist/styled/components/ui/recipes/select.js +38 -0
  307. package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
  308. package/dist/styled/components/ui/recipes/skeleton.js +16 -0
  309. package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
  310. package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
  311. package/dist/styled/index.cjs +1 -0
  312. package/dist/styled/index.js +177 -0
  313. package/dist/styled/inkeep.css.cjs +4049 -0
  314. package/dist/styled/inkeep.css.js +4053 -0
  315. package/dist/styled/utils.cjs +1 -0
  316. package/dist/styled/utils.js +11 -0
  317. package/dist/theme/color-utils.cjs +1 -0
  318. package/dist/theme/color-utils.js +21 -0
  319. package/dist/theme/colors.cjs +1 -0
  320. package/dist/theme/colors.js +143 -0
  321. package/dist/theme/index.cjs +1 -0
  322. package/dist/theme/index.js +58 -0
  323. package/dist/theme/utils/create-css-variables.cjs +1 -0
  324. package/dist/theme/utils/create-css-variables.js +24 -0
  325. package/dist/theme/utils/generate-theme-variables.cjs +1 -0
  326. package/dist/theme/utils/generate-theme-variables.js +34 -0
  327. package/dist/types/message.cjs +1 -0
  328. package/dist/types/message.js +5 -0
  329. package/dist/types/types.d.cts +1754 -0
  330. package/dist/types/types.d.ts +1754 -0
  331. package/package.json +132 -39
  332. package/LICENSE.md +0 -51
  333. package/dist/assets/index-3anqgmEs.js +0 -49
  334. package/dist/assets/index-CF_BRP1w.css +0 -1
  335. package/dist/index.html +0 -14
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("clsx"),r=require("tailwind-merge");function n(...t){return r.twMerge(e.clsx(t))}const c=t=>t?"":void 0;exports.cn=n;exports.dataAttr=c;
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import { clsx as r } from "clsx";
3
+ import { twMerge as o } from "tailwind-merge";
4
+ function c(...t) {
5
+ return o(r(t));
6
+ }
7
+ const i = (t) => t ? "" : void 0;
8
+ export {
9
+ c as cn,
10
+ i as dataAttr
11
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s(t){return Number.parseInt(t,16)||0}function u(t){return s(t)/255<=.03928?s(t)/255/12.92:((s(t)/255+.055)/1.055)**2.4}function c(t){return .2126*u(t.slice(1,3))+.7152*u(t.slice(3,5))+.0722*u(t.slice(-2))}function i(t,e){const n=c(t),r=c(e);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function a(t,e,n){const r=i(t,e),o=i(t,n);return r>o?e:n}exports.getTextColorBasedOnBgColor=a;
@@ -0,0 +1,21 @@
1
+ "use client";
2
+ function c(t) {
3
+ return Number.parseInt(t, 16) || 0;
4
+ }
5
+ function u(t) {
6
+ return c(t) / 255 <= 0.03928 ? c(t) / 255 / 12.92 : ((c(t) / 255 + 0.055) / 1.055) ** 2.4;
7
+ }
8
+ function r(t) {
9
+ return 0.2126 * u(t.slice(1, 3)) + 0.7152 * u(t.slice(3, 5)) + 0.0722 * u(t.slice(-2));
10
+ }
11
+ function i(t, e) {
12
+ const n = r(t), s = r(e);
13
+ return (Math.max(n, s) + 0.05) / (Math.min(n, s) + 0.05);
14
+ }
15
+ function o(t, e, n) {
16
+ const s = i(t, e), a = i(t, n);
17
+ return s > a ? e : n;
18
+ }
19
+ export {
20
+ o as getTextColorBasedOnBgColor
21
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("colorjs.io"),C=require("./color-utils.cjs"),m="#000000",w={whiteAlpha:{50:"rgba(255, 255, 255, 0.05)",100:"rgba(255, 255, 255, 0.1)",200:"rgba(255, 255, 255, 0.15)",300:"rgba(255, 255, 255, 0.2)",400:"rgba(255, 255, 255, 0.3)",500:"rgba(255, 255, 255, 0.4)",600:"rgba(255, 255, 255, 0.5)",700:"rgba(255, 255, 255, 0.6)",800:"rgba(255, 255, 255, 0.7)",900:"rgba(255, 255, 255, 0.8)",950:"rgba(255, 255, 255, 0.9)",1e3:"rgba(255, 255, 255, 0.95)"},blackAlpha:{50:"rgba(0, 0, 0, 0.05)",100:"rgba(0, 0, 0, 0.1)",200:"rgba(0, 0, 0, 0.15)",300:"rgba(0, 0, 0, 0.2)",400:"rgba(0, 0, 0, 0.3)",500:"rgba(0, 0, 0, 0.4)",600:"rgba(0, 0, 0, 0.5)",700:"rgba(0, 0, 0, 0.6)",800:"rgba(0, 0, 0, 0.7)",900:"rgba(0, 0, 0, 0.8)",950:"rgba(0, 0, 0, 0.9)",1e3:"rgba(0, 0, 0, 0.95)"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#eaecf1",300:"#d8dce2",400:"#c4c9d2",500:"#9ca3af",600:"#6b7280",700:"#4b5563",800:"#374151",900:"#1f2937",950:"#111827",1e3:"#030712"},grayDark:{1e3:"#111111",950:"#191919",900:"#222222",800:"#2a2a2a",700:"#313131",600:"#3a3a3a",500:"#484848",400:"#606060",300:"#6e6e6e",200:"#7b7b7b",100:"#b4b4b4",50:"#eeeeee"},overlay:{light:"rgba(104, 112, 118, 0.5)",dark:"rgba(136, 144, 150, 0.5)"}};function o(n){return n.to("srgb").toString({format:"hex"})}function g(n,t,e){const c=n.lch,a=t.lch,s=c.l+(a.l-c.l)*e,b=c.c+(a.c-c.c)*e,h=c.h+(a.h-c.h)*e;return new r("lch",[s,b,h])}function l(n){return n.to("srgb")}const S=new r(m),i=n=>{const t=n instanceof r?n:new r(n),e=t.lch.c<3?t.lch.c:3,c=t.lch.c<10?t.lch.c:10,a=t.lch.c<5?t.lch.c:5;return{textBold:new r("lch",[10,a,t.lch.h]),textSubtle:new r("lch",[30,c,t.lch.h]),lighter:new r("lch",[98,t.lch.c*1.2,t.lch.h*.96]),light:new r("lch",[89,t.lch.c*1.2,t.lch.h*.96]),lightSubtle:new r("lch",[98,e,t.lch.h*.98]),medium:t,mediumSubtle:new r("lch",[t.lch.l*.5,t.lch.c,t.lch.h],.3),strongerLight:new r("lch",[70,c,t.lch.h]),strong:new r("lch",[t.lch.l*.85,t.lch.c,t.lch.h]),stronger:new r("lch",[t.lch.l*.5,t.lch.c,t.lch.h])}},f=i(S),d=(n,t)=>{const e=Object.assign({},t?i(t):f,n);for(const h of Object.keys(e))e[h]instanceof r||(e[h]=new r(e[h]));const c=Object.keys(e).reduce((h,u)=>(h[u]=e[u].toGamut({space:"srgb",method:"lch.c"}).to("srgb").toString({format:"hex"}),h),{}),a={50:o(l(e.lighter)),100:o(l(g(e.lighter,e.light,.5))),200:o(l(e.light)),300:o(l(g(e.light,e.medium,.5))),400:o(l(g(e.light,e.medium,.75))),500:o(l(e.medium)),600:o(l(g(e.medium,e.strong,.75))),700:o(l(e.strong)),800:o(l(g(e.strong,e.stronger,.5))),900:o(l(e.stronger)),950:o(l(g(e.stronger,e.textBold,.5))),1e3:o(l(g(e.stronger,e.textBold,.75)))},s=c.textColorOnPrimary||C.getTextColorBasedOnBgColor(c.medium,"#ffffff",c.textBold);return{inkeepPrimary:{...c,textColorOnPrimary:s},inkeepExpandedPrimary:a}},x=d(f),y={...x,...w};exports.DEFAULT_PRIMARY_BRAND_COLOR=m;exports.colors=y;exports.createColorDict=i;exports.createColorScheme=d;
@@ -0,0 +1,143 @@
1
+ "use client";
2
+ import e from "colorjs.io";
3
+ import { getTextColorBasedOnBgColor as u } from "./color-utils.js";
4
+ const d = "#000000", C = {
5
+ whiteAlpha: {
6
+ 50: "rgba(255, 255, 255, 0.05)",
7
+ 100: "rgba(255, 255, 255, 0.1)",
8
+ 200: "rgba(255, 255, 255, 0.15)",
9
+ 300: "rgba(255, 255, 255, 0.2)",
10
+ 400: "rgba(255, 255, 255, 0.3)",
11
+ 500: "rgba(255, 255, 255, 0.4)",
12
+ 600: "rgba(255, 255, 255, 0.5)",
13
+ 700: "rgba(255, 255, 255, 0.6)",
14
+ 800: "rgba(255, 255, 255, 0.7)",
15
+ 900: "rgba(255, 255, 255, 0.8)",
16
+ 950: "rgba(255, 255, 255, 0.9)",
17
+ 1e3: "rgba(255, 255, 255, 0.95)"
18
+ },
19
+ blackAlpha: {
20
+ 50: "rgba(0, 0, 0, 0.05)",
21
+ 100: "rgba(0, 0, 0, 0.1)",
22
+ 200: "rgba(0, 0, 0, 0.15)",
23
+ 300: "rgba(0, 0, 0, 0.2)",
24
+ 400: "rgba(0, 0, 0, 0.3)",
25
+ 500: "rgba(0, 0, 0, 0.4)",
26
+ 600: "rgba(0, 0, 0, 0.5)",
27
+ 700: "rgba(0, 0, 0, 0.6)",
28
+ 800: "rgba(0, 0, 0, 0.7)",
29
+ 900: "rgba(0, 0, 0, 0.8)",
30
+ 950: "rgba(0, 0, 0, 0.9)",
31
+ 1e3: "rgba(0, 0, 0, 0.95)"
32
+ },
33
+ gray: {
34
+ // tailwind modified gray scheme
35
+ 50: "#f9fafb",
36
+ 100: "#f3f4f6",
37
+ 200: "#eaecf1",
38
+ // Slightly lightened
39
+ 300: "#d8dce2",
40
+ // Slightly lightened
41
+ 400: "#c4c9d2",
42
+ // New color (the rest of the colors are shifted accordingly)
43
+ 500: "#9ca3af",
44
+ 600: "#6b7280",
45
+ 700: "#4b5563",
46
+ 800: "#374151",
47
+ 900: "#1f2937",
48
+ 950: "#111827",
49
+ 1e3: "#030712"
50
+ },
51
+ // radix neutral gray for dark mode ('grayDark')
52
+ grayDark: {
53
+ 1e3: "#111111",
54
+ 950: "#191919",
55
+ 900: "#222222",
56
+ 800: "#2a2a2a",
57
+ 700: "#313131",
58
+ 600: "#3a3a3a",
59
+ 500: "#484848",
60
+ 400: "#606060",
61
+ 300: "#6e6e6e",
62
+ 200: "#7b7b7b",
63
+ 100: "#b4b4b4",
64
+ 50: "#eeeeee"
65
+ },
66
+ overlay: {
67
+ light: "rgba(104, 112, 118, 0.5)",
68
+ dark: "rgba(136, 144, 150, 0.5)"
69
+ }
70
+ };
71
+ function o(n) {
72
+ return n.to("srgb").toString({ format: "hex" });
73
+ }
74
+ function g(n, r, t) {
75
+ const c = n.lch, a = r.lch, s = c.l + (a.l - c.l) * t, b = c.c + (a.c - c.c) * t, h = c.h + (a.h - c.h) * t;
76
+ return new e("lch", [s, b, h]);
77
+ }
78
+ function l(n) {
79
+ return n.to("srgb");
80
+ }
81
+ const w = new e(d), m = (n) => {
82
+ const r = n instanceof e ? n : new e(n), t = r.lch.c < 3 ? r.lch.c : 3, c = r.lch.c < 10 ? r.lch.c : 10, a = r.lch.c < 5 ? r.lch.c : 5;
83
+ return {
84
+ textBold: new e("lch", [10, a, r.lch.h]),
85
+ textSubtle: new e("lch", [30, c, r.lch.h]),
86
+ lighter: new e("lch", [98, r.lch.c * 1.2, r.lch.h * 0.96]),
87
+ light: new e("lch", [89, r.lch.c * 1.2, r.lch.h * 0.96]),
88
+ lightSubtle: new e("lch", [98, t, r.lch.h * 0.98]),
89
+ medium: r,
90
+ mediumSubtle: new e(
91
+ "lch",
92
+ [r.lch.l * 0.5, r.lch.c, r.lch.h],
93
+ 0.3
94
+ ),
95
+ strongerLight: new e("lch", [70, c, r.lch.h]),
96
+ strong: new e("lch", [r.lch.l * 0.85, r.lch.c, r.lch.h]),
97
+ stronger: new e("lch", [r.lch.l * 0.5, r.lch.c, r.lch.h])
98
+ };
99
+ }, f = m(w), x = (n, r) => {
100
+ const t = Object.assign(
101
+ {},
102
+ r ? m(r) : f,
103
+ n
104
+ );
105
+ for (const h of Object.keys(t))
106
+ t[h] instanceof e || (t[h] = new e(t[h]));
107
+ const c = Object.keys(t).reduce((h, i) => (h[i] = t[i].toGamut({ space: "srgb", method: "lch.c" }).to("srgb").toString({ format: "hex" }), h), {}), a = {
108
+ 50: o(l(t.lighter)),
109
+ 100: o(l(g(t.lighter, t.light, 0.5))),
110
+ 200: o(l(t.light)),
111
+ 300: o(l(g(t.light, t.medium, 0.5))),
112
+ 400: o(l(g(t.light, t.medium, 0.75))),
113
+ 500: o(l(t.medium)),
114
+ 600: o(l(g(t.medium, t.strong, 0.75))),
115
+ 700: o(l(t.strong)),
116
+ 800: o(l(g(t.strong, t.stronger, 0.5))),
117
+ 900: o(l(t.stronger)),
118
+ 950: o(l(g(t.stronger, t.textBold, 0.5))),
119
+ 1e3: o(
120
+ l(g(t.stronger, t.textBold, 0.75))
121
+ )
122
+ }, s = c.textColorOnPrimary || u(
123
+ c.medium,
124
+ "#ffffff",
125
+ c.textBold
126
+ );
127
+ return {
128
+ inkeepPrimary: {
129
+ ...c,
130
+ textColorOnPrimary: s
131
+ },
132
+ inkeepExpandedPrimary: a
133
+ };
134
+ }, S = x(f), B = {
135
+ ...S,
136
+ ...C
137
+ };
138
+ export {
139
+ d as DEFAULT_PRIMARY_BRAND_COLOR,
140
+ B as colors,
141
+ m as createColorDict,
142
+ x as createColorScheme
143
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./colors.cjs"),r=require("./utils/create-css-variables.cjs"),o=require("./utils/generate-theme-variables.cjs"),a={heading:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},s={"3xs":"0.45rem","2xs":"0.625rem","1xs":"0.6875rem",xs:"0.75rem","1sm":"0.8125rem",sm:"0.875rem","2sm":"0.9375rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"},t={hide:-1,auto:"auto",base:0,start:1,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},l={colors:e.colors,fontFamily:a,fontSize:s,zIndex:t};exports.DEFAULT_PRIMARY_BRAND_COLOR=e.DEFAULT_PRIMARY_BRAND_COLOR;exports.colors=e.colors;exports.createColorDict=e.createColorDict;exports.createColorScheme=e.createColorScheme;exports.createCSSVariables=r.createCSSVariables;exports.generateThemeVariables=o.generateThemeVariables;exports.themeMappings=o.themeMappings;exports.theme=l;
@@ -0,0 +1,58 @@
1
+ import { colors as e } from "./colors.js";
2
+ import { DEFAULT_PRIMARY_BRAND_COLOR as n, createColorDict as i, createColorScheme as p } from "./colors.js";
3
+ import { createCSSVariables as x } from "./utils/create-css-variables.js";
4
+ import { generateThemeVariables as g, themeMappings as d } from "./utils/generate-theme-variables.js";
5
+ const o = {
6
+ heading: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
7
+ body: 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',
8
+ mono: 'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'
9
+ }, r = {
10
+ "3xs": "0.45rem",
11
+ "2xs": "0.625rem",
12
+ "1xs": "0.6875rem",
13
+ xs: "0.75rem",
14
+ "1sm": "0.8125rem",
15
+ sm: "0.875rem",
16
+ "2sm": "0.9375rem",
17
+ md: "1rem",
18
+ lg: "1.125rem",
19
+ xl: "1.25rem",
20
+ "2xl": "1.5rem",
21
+ "3xl": "1.875rem",
22
+ "4xl": "2.25rem",
23
+ "5xl": "3rem",
24
+ "6xl": "3.75rem",
25
+ "7xl": "4.5rem",
26
+ "8xl": "6rem",
27
+ "9xl": "8rem"
28
+ }, m = {
29
+ hide: -1,
30
+ auto: "auto",
31
+ base: 0,
32
+ start: 1,
33
+ docked: 10,
34
+ dropdown: 1e3,
35
+ sticky: 1100,
36
+ banner: 1200,
37
+ overlay: 1300,
38
+ modal: 1400,
39
+ popover: 1500,
40
+ skipLink: 1600,
41
+ toast: 1700,
42
+ tooltip: 1800
43
+ }, l = {
44
+ colors: e,
45
+ fontFamily: o,
46
+ fontSize: r,
47
+ zIndex: m
48
+ };
49
+ export {
50
+ n as DEFAULT_PRIMARY_BRAND_COLOR,
51
+ e as colors,
52
+ x as createCSSVariables,
53
+ i as createColorDict,
54
+ p as createColorScheme,
55
+ g as generateThemeVariables,
56
+ l as theme,
57
+ d as themeMappings
58
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./generate-theme-variables.cjs"),g="ikp";function S(c){const t={};for(const[r,a]of Object.entries(c)){const n=y.themeMappings[r]||r,o=(i,l=[])=>{for(const[u,e]of Object.entries(i)){const s=[...l,u];if(typeof e=="object"&&e!==null)o(e,s);else{const b=s.map(p=>p.replace(/([A-Z])/g,"-$1").toLowerCase()).join("-"),f=`--${g}-${n}-${b}`;t[f]=e}}};o(a)}return t}exports.createCSSVariables=S;
@@ -0,0 +1,24 @@
1
+ "use client";
2
+ import { themeMappings as b } from "./generate-theme-variables.js";
3
+ const g = "ikp";
4
+ function j(s) {
5
+ const t = {};
6
+ for (const [o, n] of Object.entries(s)) {
7
+ const a = b[o] || o, r = (i, f = []) => {
8
+ for (const [l, e] of Object.entries(i)) {
9
+ const c = [...f, l];
10
+ if (typeof e == "object" && e !== null)
11
+ r(e, c);
12
+ else {
13
+ const p = c.map((y) => y.replace(/([A-Z])/g, "-$1").toLowerCase()).join("-"), u = `--${g}-${a}-${p}`;
14
+ t[u] = e;
15
+ }
16
+ }
17
+ };
18
+ r(n);
19
+ }
20
+ return t;
21
+ }
22
+ export {
23
+ j as createCSSVariables
24
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p="ikp",l={colors:"color",fontFamily:"font-family",fontSize:"font-size",zIndex:"z-index"};function r(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}function y(t){const s={};for(const[o,f]of Object.entries(t)){const u=r(l[o]||o),c=(n,a=[])=>{if(typeof n!="object"||n===null){const e=a.map(r).join("-");return`var(--${p}-${u}-${e})`}const i={};for(const[e,g]of Object.entries(n))i[r(e)]=c(g,[...a,e]);return i};s[o]=c(f)}return s}exports.generateThemeVariables=y;exports.themeMappings=l;
@@ -0,0 +1,34 @@
1
+ "use client";
2
+ const p = "ikp", y = {
3
+ colors: "color",
4
+ fontFamily: "font-family",
5
+ fontSize: "font-size",
6
+ zIndex: "z-index"
7
+ };
8
+ function r(t) {
9
+ return t.replace(/([A-Z])/g, "-$1").toLowerCase();
10
+ }
11
+ function g(t) {
12
+ const c = {};
13
+ for (const [o, f] of Object.entries(t)) {
14
+ const l = r(y[o] || o), s = (n, a = []) => {
15
+ if (typeof n != "object" || n === null) {
16
+ const e = a.map(r).join("-");
17
+ return `var(--${p}-${l}-${e})`;
18
+ }
19
+ const i = {};
20
+ for (const [e, u] of Object.entries(n))
21
+ i[r(e)] = s(u, [
22
+ ...a,
23
+ e
24
+ ]);
25
+ return i;
26
+ };
27
+ c[o] = s(f);
28
+ }
29
+ return c;
30
+ }
31
+ export {
32
+ g as generateThemeVariables,
33
+ y as themeMappings
34
+ };
@@ -0,0 +1 @@
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T="citation";exports.CITATION_ARTIFACT_TYPE=T;
@@ -0,0 +1,5 @@
1
+ "use client";
2
+ const t = "citation";
3
+ export {
4
+ t as CITATION_ARTIFACT_TYPE
5
+ };