@inkeep/agents-ui 0.0.0-dev-20260313222128

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 (557) hide show
  1. package/LICENSE +64 -0
  2. package/README.md +1 -0
  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.d.ts +20 -0
  11. package/dist/color-mode/index.js +170 -0
  12. package/dist/index.cjs +1 -0
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.js +238 -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.d.ts +3 -0
  23. package/dist/primitives/atoms/avatars/ai.js +99 -0
  24. package/dist/primitives/atoms/avatars/user.cjs +1 -0
  25. package/dist/primitives/atoms/avatars/user.d.ts +3 -0
  26. package/dist/primitives/atoms/avatars/user.js +27 -0
  27. package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
  28. package/dist/primitives/atoms/cmdk/command-score.d.ts +1 -0
  29. package/dist/primitives/atoms/cmdk/command-score.js +46 -0
  30. package/dist/primitives/atoms/cmdk/index.cjs +1 -0
  31. package/dist/primitives/atoms/cmdk/index.d.ts +460 -0
  32. package/dist/primitives/atoms/cmdk/index.js +521 -0
  33. package/dist/primitives/atoms/codeblock/index.cjs +1 -0
  34. package/dist/primitives/atoms/codeblock/index.d.ts +10 -0
  35. package/dist/primitives/atoms/codeblock/index.js +40 -0
  36. package/dist/primitives/atoms/combobox.cjs +1 -0
  37. package/dist/primitives/atoms/combobox.js +275 -0
  38. package/dist/primitives/atoms/custom-styles.cjs +1 -0
  39. package/dist/primitives/atoms/custom-styles.d.ts +5 -0
  40. package/dist/primitives/atoms/custom-styles.js +57 -0
  41. package/dist/primitives/atoms/dialog.cjs +1 -0
  42. package/dist/primitives/atoms/dialog.d.ts +94 -0
  43. package/dist/primitives/atoms/dialog.js +227 -0
  44. package/dist/primitives/atoms/error-boundary.cjs +1 -0
  45. package/dist/primitives/atoms/error-boundary.d.ts +6 -0
  46. package/dist/primitives/atoms/error-boundary.js +9 -0
  47. package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
  48. package/dist/primitives/atoms/icons/built-in-icon-renderer.d.ts +6 -0
  49. package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
  50. package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
  51. package/dist/primitives/atoms/icons/built-in-icons.d.ts +86 -0
  52. package/dist/primitives/atoms/icons/built-in-icons.js +89 -0
  53. package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
  54. package/dist/primitives/atoms/icons/checkbox-icon.d.ts +1 -0
  55. package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
  56. package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
  57. package/dist/primitives/atoms/icons/collections/bi.d.ts +4 -0
  58. package/dist/primitives/atoms/icons/collections/bi.js +49 -0
  59. package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
  60. package/dist/primitives/atoms/icons/collections/fi.d.ts +2 -0
  61. package/dist/primitives/atoms/icons/collections/fi.js +29 -0
  62. package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
  63. package/dist/primitives/atoms/icons/collections/gr.d.ts +2 -0
  64. package/dist/primitives/atoms/icons/collections/gr.js +21 -0
  65. package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
  66. package/dist/primitives/atoms/icons/collections/io5.d.ts +34 -0
  67. package/dist/primitives/atoms/icons/collections/io5.js +806 -0
  68. package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
  69. package/dist/primitives/atoms/icons/collections/pi.d.ts +4 -0
  70. package/dist/primitives/atoms/icons/collections/pi.js +49 -0
  71. package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
  72. package/dist/primitives/atoms/icons/custom-icon.d.ts +6 -0
  73. package/dist/primitives/atoms/icons/custom-icon.js +19 -0
  74. package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
  75. package/dist/primitives/atoms/icons/generate-icon.d.ts +28 -0
  76. package/dist/primitives/atoms/icons/generate-icon.js +56 -0
  77. package/dist/primitives/atoms/icons/index.cjs +1 -0
  78. package/dist/primitives/atoms/icons/index.d.ts +2 -0
  79. package/dist/primitives/atoms/icons/index.js +6 -0
  80. package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
  81. package/dist/primitives/atoms/icons/inkeep-default-icons.d.ts +2 -0
  82. package/dist/primitives/atoms/icons/inkeep-default-icons.js +28 -0
  83. package/dist/primitives/atoms/link.cjs +1 -0
  84. package/dist/primitives/atoms/link.d.ts +14 -0
  85. package/dist/primitives/atoms/link.js +35 -0
  86. package/dist/primitives/atoms/markdown/components.cjs +1 -0
  87. package/dist/primitives/atoms/markdown/components.d.ts +31 -0
  88. package/dist/primitives/atoms/markdown/components.js +76 -0
  89. package/dist/primitives/atoms/markdown/index.cjs +1 -0
  90. package/dist/primitives/atoms/markdown/index.d.ts +17 -0
  91. package/dist/primitives/atoms/markdown/index.js +121 -0
  92. package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
  93. package/dist/primitives/atoms/markdown/rehype-inline-code-property.d.ts +1 -0
  94. package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
  95. package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
  96. package/dist/primitives/atoms/portal-with-theme.d.ts +2 -0
  97. package/dist/primitives/atoms/portal-with-theme.js +12 -0
  98. package/dist/primitives/atoms/portal.cjs +1 -0
  99. package/dist/primitives/atoms/portal.d.ts +8 -0
  100. package/dist/primitives/atoms/portal.js +19 -0
  101. package/dist/primitives/atoms/select.cjs +1 -0
  102. package/dist/primitives/atoms/select.d.ts +136 -0
  103. package/dist/primitives/atoms/select.js +785 -0
  104. package/dist/primitives/atoms/shadow/context.cjs +1 -0
  105. package/dist/primitives/atoms/shadow/context.d.ts +14 -0
  106. package/dist/primitives/atoms/shadow/context.js +54 -0
  107. package/dist/primitives/atoms/shadow/create.cjs +1 -0
  108. package/dist/primitives/atoms/shadow/create.d.ts +8 -0
  109. package/dist/primitives/atoms/shadow/create.js +56 -0
  110. package/dist/primitives/atoms/shadow/index.d.ts +1 -0
  111. package/dist/primitives/atoms/shadow/root.cjs +1 -0
  112. package/dist/primitives/atoms/shadow/root.d.ts +5 -0
  113. package/dist/primitives/atoms/shadow/root.js +22 -0
  114. package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
  115. package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.d.ts +2 -0
  116. package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
  117. package/dist/primitives/atoms/shadow/utils.cjs +1 -0
  118. package/dist/primitives/atoms/shadow/utils.d.ts +9 -0
  119. package/dist/primitives/atoms/shadow/utils.js +16 -0
  120. package/dist/primitives/components/chat-bubble/index.cjs +1 -0
  121. package/dist/primitives/components/chat-bubble/index.d.ts +10 -0
  122. package/dist/primitives/components/chat-bubble/index.js +38 -0
  123. package/dist/primitives/components/chat-button.cjs +1 -0
  124. package/dist/primitives/components/chat-button.d.ts +20 -0
  125. package/dist/primitives/components/chat-button.js +51 -0
  126. package/dist/primitives/components/chat-history/index.cjs +1 -0
  127. package/dist/primitives/components/chat-history/index.d.ts +27 -0
  128. package/dist/primitives/components/chat-history/index.js +105 -0
  129. package/dist/primitives/components/data-summaries.cjs +1 -0
  130. package/dist/primitives/components/data-summaries.d.ts +14 -0
  131. package/dist/primitives/components/data-summaries.js +38 -0
  132. package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
  133. package/dist/primitives/components/embedded-chat/chat-provider.d.ts +19 -0
  134. package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
  135. package/dist/primitives/components/embedded-chat/use-captcha.cjs +1 -0
  136. package/dist/primitives/components/embedded-chat/use-captcha.d.ts +30 -0
  137. package/dist/primitives/components/embedded-chat/use-captcha.js +67 -0
  138. package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
  139. package/dist/primitives/components/embedded-chat/use-chat-action.d.ts +9 -0
  140. package/dist/primitives/components/embedded-chat/use-chat-action.js +41 -0
  141. package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
  142. package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +57 -0
  143. package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +312 -0
  144. package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
  145. package/dist/primitives/components/embedded-chat/use-stream-processor.d.ts +30 -0
  146. package/dist/primitives/components/embedded-chat/use-stream-processor.js +159 -0
  147. package/dist/primitives/components/embedded-chat.cjs +11 -0
  148. package/dist/primitives/components/embedded-chat.d.ts +461 -0
  149. package/dist/primitives/components/embedded-chat.js +2051 -0
  150. package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
  151. package/dist/primitives/components/embedded-search/search-provider.d.ts +21 -0
  152. package/dist/primitives/components/embedded-search/search-provider.js +26 -0
  153. package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
  154. package/dist/primitives/components/embedded-search/transform-results.d.ts +3 -0
  155. package/dist/primitives/components/embedded-search/transform-results.js +47 -0
  156. package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
  157. package/dist/primitives/components/embedded-search/url-query.d.ts +4 -0
  158. package/dist/primitives/components/embedded-search/url-query.js +12 -0
  159. package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
  160. package/dist/primitives/components/embedded-search/use-inkeep-search.d.ts +19 -0
  161. package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
  162. package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
  163. package/dist/primitives/components/embedded-search/use-search-filter.d.ts +1 -0
  164. package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
  165. package/dist/primitives/components/embedded-search.cjs +1 -0
  166. package/dist/primitives/components/embedded-search.d.ts +249 -0
  167. package/dist/primitives/components/embedded-search.js +628 -0
  168. package/dist/primitives/components/factory.cjs +1 -0
  169. package/dist/primitives/components/factory.d.ts +19 -0
  170. package/dist/primitives/components/factory.js +39 -0
  171. package/dist/primitives/components/index.cjs +1 -0
  172. package/dist/primitives/components/index.d.ts +13 -0
  173. package/dist/primitives/components/index.js +33 -0
  174. package/dist/primitives/components/modal/modal-provider.cjs +1 -0
  175. package/dist/primitives/components/modal/modal-provider.d.ts +12 -0
  176. package/dist/primitives/components/modal/modal-provider.js +8 -0
  177. package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
  178. package/dist/primitives/components/modal/use-inkeep-modal.d.ts +7 -0
  179. package/dist/primitives/components/modal/use-inkeep-modal.js +9 -0
  180. package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
  181. package/dist/primitives/components/modal/widget-auto-focus.d.ts +2 -0
  182. package/dist/primitives/components/modal/widget-auto-focus.js +25 -0
  183. package/dist/primitives/components/modal.cjs +1 -0
  184. package/dist/primitives/components/modal.d.ts +18 -0
  185. package/dist/primitives/components/modal.js +40 -0
  186. package/dist/primitives/components/presence.cjs +1 -0
  187. package/dist/primitives/components/presence.d.ts +8 -0
  188. package/dist/primitives/components/presence.js +26 -0
  189. package/dist/primitives/components/searchbar.cjs +1 -0
  190. package/dist/primitives/components/searchbar.d.ts +23 -0
  191. package/dist/primitives/components/searchbar.js +54 -0
  192. package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
  193. package/dist/primitives/components/sidebar-chat/index.d.ts +9 -0
  194. package/dist/primitives/components/sidebar-chat/index.js +67 -0
  195. package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
  196. package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.d.ts +5 -0
  197. package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
  198. package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
  199. package/dist/primitives/components/tagline-logo-icon.d.ts +1 -0
  200. package/dist/primitives/components/tagline-logo-icon.js +26 -0
  201. package/dist/primitives/components/use-component-trigger.cjs +1 -0
  202. package/dist/primitives/components/use-component-trigger.d.ts +5 -0
  203. package/dist/primitives/components/use-component-trigger.js +17 -0
  204. package/dist/primitives/constants/search.cjs +1 -0
  205. package/dist/primitives/constants/search.d.ts +1 -0
  206. package/dist/primitives/constants/search.js +5 -0
  207. package/dist/primitives/hooks/index.cjs +1 -0
  208. package/dist/primitives/hooks/index.d.ts +12 -0
  209. package/dist/primitives/hooks/index.js +26 -0
  210. package/dist/primitives/hooks/use-anonymous-session.cjs +1 -0
  211. package/dist/primitives/hooks/use-anonymous-session.d.ts +12 -0
  212. package/dist/primitives/hooks/use-anonymous-session.js +82 -0
  213. package/dist/primitives/hooks/use-boolean.cjs +1 -0
  214. package/dist/primitives/hooks/use-boolean.d.ts +10 -0
  215. package/dist/primitives/hooks/use-boolean.js +17 -0
  216. package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
  217. package/dist/primitives/hooks/use-component-classnames.d.ts +6 -0
  218. package/dist/primitives/hooks/use-component-classnames.js +14 -0
  219. package/dist/primitives/hooks/use-container-size.cjs +1 -0
  220. package/dist/primitives/hooks/use-container-size.d.ts +5 -0
  221. package/dist/primitives/hooks/use-container-size.js +18 -0
  222. package/dist/primitives/hooks/use-conversation-loader.cjs +1 -0
  223. package/dist/primitives/hooks/use-conversation-loader.d.ts +13 -0
  224. package/dist/primitives/hooks/use-conversation-loader.js +36 -0
  225. package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
  226. package/dist/primitives/hooks/use-copy-to-clipboard.d.ts +3 -0
  227. package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
  228. package/dist/primitives/hooks/use-debounce.cjs +1 -0
  229. package/dist/primitives/hooks/use-debounce.d.ts +1 -0
  230. package/dist/primitives/hooks/use-debounce.js +16 -0
  231. package/dist/primitives/hooks/use-inkeep-api-client.cjs +1 -0
  232. package/dist/primitives/hooks/use-inkeep-api-client.d.ts +33 -0
  233. package/dist/primitives/hooks/use-inkeep-api-client.js +87 -0
  234. package/dist/primitives/hooks/use-inkeep-open-state.cjs +1 -0
  235. package/dist/primitives/hooks/use-inkeep-open-state.d.ts +18 -0
  236. package/dist/primitives/hooks/use-inkeep-open-state.js +47 -0
  237. package/dist/primitives/hooks/use-instant-update.cjs +1 -0
  238. package/dist/primitives/hooks/use-instant-update.d.ts +16 -0
  239. package/dist/primitives/hooks/use-instant-update.js +16 -0
  240. package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
  241. package/dist/primitives/hooks/use-is-mounted.d.ts +1 -0
  242. package/dist/primitives/hooks/use-is-mounted.js +11 -0
  243. package/dist/primitives/hooks/use-local-storage.cjs +1 -0
  244. package/dist/primitives/hooks/use-local-storage.d.ts +8 -0
  245. package/dist/primitives/hooks/use-local-storage.js +26 -0
  246. package/dist/primitives/hooks/use-media-query.cjs +1 -0
  247. package/dist/primitives/hooks/use-media-query.d.ts +1 -0
  248. package/dist/primitives/hooks/use-media-query.js +14 -0
  249. package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
  250. package/dist/primitives/hooks/use-resize-observer.d.ts +12 -0
  251. package/dist/primitives/hooks/use-resize-observer.js +32 -0
  252. package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
  253. package/dist/primitives/hooks/use-scrolling-fades.d.ts +2 -0
  254. package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
  255. package/dist/primitives/hooks/use-settle-action.cjs +1 -0
  256. package/dist/primitives/hooks/use-settle-action.d.ts +3 -0
  257. package/dist/primitives/hooks/use-settle-action.js +11 -0
  258. package/dist/primitives/hooks/use-simple-scroll.cjs +1 -0
  259. package/dist/primitives/hooks/use-simple-scroll.d.ts +16 -0
  260. package/dist/primitives/hooks/use-simple-scroll.js +51 -0
  261. package/dist/primitives/hooks/use-streaming-events.cjs +1 -0
  262. package/dist/primitives/hooks/use-streaming-events.d.ts +8 -0
  263. package/dist/primitives/hooks/use-streaming-events.js +33 -0
  264. package/dist/primitives/index.cjs +1 -0
  265. package/dist/primitives/index.d.ts +13 -0
  266. package/dist/primitives/index.js +174 -0
  267. package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
  268. package/dist/primitives/providers/attachment-item-provider.d.ts +9 -0
  269. package/dist/primitives/providers/attachment-item-provider.js +13 -0
  270. package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
  271. package/dist/primitives/providers/attachments-bar-provider.d.ts +30 -0
  272. package/dist/primitives/providers/attachments-bar-provider.js +57 -0
  273. package/dist/primitives/providers/base-events-provider.cjs +1 -0
  274. package/dist/primitives/providers/base-events-provider.d.ts +8 -0
  275. package/dist/primitives/providers/base-events-provider.js +37 -0
  276. package/dist/primitives/providers/chat-bubble-provider.cjs +1 -0
  277. package/dist/primitives/providers/chat-bubble-provider.d.ts +22 -0
  278. package/dist/primitives/providers/chat-bubble-provider.js +19 -0
  279. package/dist/primitives/providers/chat-form-provider.cjs +1 -0
  280. package/dist/primitives/providers/chat-form-provider.d.ts +26 -0
  281. package/dist/primitives/providers/chat-form-provider.js +109 -0
  282. package/dist/primitives/providers/chat-history-provider.cjs +1 -0
  283. package/dist/primitives/providers/chat-history-provider.d.ts +32 -0
  284. package/dist/primitives/providers/chat-history-provider.js +105 -0
  285. package/dist/primitives/providers/config-provider.cjs +1 -0
  286. package/dist/primitives/providers/config-provider.d.ts +24 -0
  287. package/dist/primitives/providers/config-provider.js +40 -0
  288. package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
  289. package/dist/primitives/providers/feedback-item-provider.d.ts +10 -0
  290. package/dist/primitives/providers/feedback-item-provider.js +16 -0
  291. package/dist/primitives/providers/feedback-provider.cjs +1 -0
  292. package/dist/primitives/providers/feedback-provider.d.ts +16 -0
  293. package/dist/primitives/providers/feedback-provider.js +83 -0
  294. package/dist/primitives/providers/form-field-provider.cjs +1 -0
  295. package/dist/primitives/providers/form-field-provider.d.ts +15 -0
  296. package/dist/primitives/providers/form-field-provider.js +17 -0
  297. package/dist/primitives/providers/help-menu-provider.cjs +1 -0
  298. package/dist/primitives/providers/help-menu-provider.d.ts +11 -0
  299. package/dist/primitives/providers/help-menu-provider.js +19 -0
  300. package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
  301. package/dist/primitives/providers/hover-popover-provider.d.ts +10 -0
  302. package/dist/primitives/providers/hover-popover-provider.js +13 -0
  303. package/dist/primitives/providers/index.cjs +1 -0
  304. package/dist/primitives/providers/index.d.ts +19 -0
  305. package/dist/primitives/providers/index.js +65 -0
  306. package/dist/primitives/providers/markdown-provider.cjs +1 -0
  307. package/dist/primitives/providers/markdown-provider.d.ts +9 -0
  308. package/dist/primitives/providers/markdown-provider.js +8 -0
  309. package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
  310. package/dist/primitives/providers/message-attachments-provider.d.ts +13 -0
  311. package/dist/primitives/providers/message-attachments-provider.js +27 -0
  312. package/dist/primitives/providers/message-provider.cjs +1 -0
  313. package/dist/primitives/providers/message-provider.d.ts +10 -0
  314. package/dist/primitives/providers/message-provider.js +14 -0
  315. package/dist/primitives/providers/root-provider.cjs +1 -0
  316. package/dist/primitives/providers/root-provider.d.ts +8 -0
  317. package/dist/primitives/providers/root-provider.js +21 -0
  318. package/dist/primitives/providers/search-events-provider.cjs +1 -0
  319. package/dist/primitives/providers/search-events-provider.d.ts +8 -0
  320. package/dist/primitives/providers/search-events-provider.js +17 -0
  321. package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
  322. package/dist/primitives/providers/sidebar-chat-provider.d.ts +61 -0
  323. package/dist/primitives/providers/sidebar-chat-provider.js +37 -0
  324. package/dist/primitives/providers/source-item-provider.cjs +1 -0
  325. package/dist/primitives/providers/source-item-provider.d.ts +12 -0
  326. package/dist/primitives/providers/source-item-provider.js +13 -0
  327. package/dist/primitives/providers/theme-provider.cjs +3 -0
  328. package/dist/primitives/providers/theme-provider.d.ts +3 -0
  329. package/dist/primitives/providers/theme-provider.js +79 -0
  330. package/dist/primitives/providers/widget-provider.cjs +1 -0
  331. package/dist/primitives/providers/widget-provider.d.ts +10 -0
  332. package/dist/primitives/providers/widget-provider.js +8 -0
  333. package/dist/primitives/utils/component-ids.cjs +1 -0
  334. package/dist/primitives/utils/component-ids.d.ts +662 -0
  335. package/dist/primitives/utils/component-ids.js +361 -0
  336. package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
  337. package/dist/primitives/utils/compose-event-handlers.d.ts +3 -0
  338. package/dist/primitives/utils/compose-event-handlers.js +10 -0
  339. package/dist/primitives/utils/compose-refs.cjs +1 -0
  340. package/dist/primitives/utils/compose-refs.d.ts +5 -0
  341. package/dist/primitives/utils/compose-refs.js +30 -0
  342. package/dist/primitives/utils/default-settings.cjs +1 -0
  343. package/dist/primitives/utils/default-settings.d.ts +169 -0
  344. package/dist/primitives/utils/default-settings.js +52 -0
  345. package/dist/primitives/utils/form.cjs +1 -0
  346. package/dist/primitives/utils/form.d.ts +3 -0
  347. package/dist/primitives/utils/form.js +19 -0
  348. package/dist/primitives/utils/generate-uid.cjs +1 -0
  349. package/dist/primitives/utils/generate-uid.d.ts +2 -0
  350. package/dist/primitives/utils/generate-uid.js +14 -0
  351. package/dist/primitives/utils/get-message-metadata.d.ts +8 -0
  352. package/dist/primitives/utils/get-source-icon.cjs +1 -0
  353. package/dist/primitives/utils/get-source-icon.d.ts +2 -0
  354. package/dist/primitives/utils/get-source-icon.js +11 -0
  355. package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
  356. package/dist/primitives/utils/highlight-emphasis.d.ts +4 -0
  357. package/dist/primitives/utils/highlight-emphasis.js +15 -0
  358. package/dist/primitives/utils/merge-props.cjs +1 -0
  359. package/dist/primitives/utils/merge-props.d.ts +7 -0
  360. package/dist/primitives/utils/merge-props.js +41 -0
  361. package/dist/primitives/utils/misc.cjs +1 -0
  362. package/dist/primitives/utils/misc.d.ts +12 -0
  363. package/dist/primitives/utils/misc.js +31 -0
  364. package/dist/primitives/utils/split-props.cjs +1 -0
  365. package/dist/primitives/utils/split-props.d.ts +14 -0
  366. package/dist/primitives/utils/split-props.js +10 -0
  367. package/dist/react/chat-button-modal.cjs +1 -0
  368. package/dist/react/chat-button-modal.d.ts +22 -0
  369. package/dist/react/chat-button-modal.js +41 -0
  370. package/dist/react/chat-button.cjs +1 -0
  371. package/dist/react/chat-button.d.ts +28 -0
  372. package/dist/react/chat-button.js +73 -0
  373. package/dist/react/embedded-chat.cjs +1 -0
  374. package/dist/react/embedded-chat.d.ts +15 -0
  375. package/dist/react/embedded-chat.js +431 -0
  376. package/dist/react/embedded-search-and-chat.cjs +1 -0
  377. package/dist/react/embedded-search-and-chat.d.ts +40 -0
  378. package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
  379. package/dist/react/embedded-search-and-chat.impl.d.ts +9 -0
  380. package/dist/react/embedded-search-and-chat.impl.js +43 -0
  381. package/dist/react/embedded-search-and-chat.js +66 -0
  382. package/dist/react/embedded-search.cjs +1 -0
  383. package/dist/react/embedded-search.d.ts +17 -0
  384. package/dist/react/embedded-search.js +181 -0
  385. package/dist/react/index.cjs +1 -0
  386. package/dist/react/index.d.ts +13 -0
  387. package/dist/react/index.js +238 -0
  388. package/dist/react/modal.chat.cjs +1 -0
  389. package/dist/react/modal.chat.d.ts +9 -0
  390. package/dist/react/modal.chat.js +21 -0
  391. package/dist/react/modal.cjs +1 -0
  392. package/dist/react/modal.d.ts +23 -0
  393. package/dist/react/modal.js +27 -0
  394. package/dist/react/modal.search-and-chat.cjs +1 -0
  395. package/dist/react/modal.search-and-chat.d.ts +6 -0
  396. package/dist/react/modal.search-and-chat.js +27 -0
  397. package/dist/react/modal.search.cjs +1 -0
  398. package/dist/react/modal.search.d.ts +6 -0
  399. package/dist/react/modal.search.js +21 -0
  400. package/dist/react/searchbar.cjs +1 -0
  401. package/dist/react/searchbar.d.ts +13 -0
  402. package/dist/react/searchbar.js +68 -0
  403. package/dist/react/sidebar-chat.cjs +1 -0
  404. package/dist/react/sidebar-chat.d.ts +4 -0
  405. package/dist/react/sidebar-chat.js +53 -0
  406. package/dist/react/utils.cjs +1 -0
  407. package/dist/react/utils.d.ts +6 -0
  408. package/dist/react/utils.js +20 -0
  409. package/dist/react/widget-toggle.cjs +1 -0
  410. package/dist/react/widget-toggle.d.ts +14 -0
  411. package/dist/react/widget-toggle.js +65 -0
  412. package/dist/styled/components/chat-bubble.cjs +1 -0
  413. package/dist/styled/components/chat-bubble.d.ts +5 -0
  414. package/dist/styled/components/chat-bubble.js +70 -0
  415. package/dist/styled/components/chat-button.cjs +1 -0
  416. package/dist/styled/components/chat-button.d.ts +9 -0
  417. package/dist/styled/components/chat-button.js +60 -0
  418. package/dist/styled/components/chat-history.cjs +1 -0
  419. package/dist/styled/components/chat-history.d.ts +15 -0
  420. package/dist/styled/components/chat-history.js +197 -0
  421. package/dist/styled/components/data-summary-group.cjs +1 -0
  422. package/dist/styled/components/data-summary-group.d.ts +11 -0
  423. package/dist/styled/components/data-summary-group.js +96 -0
  424. package/dist/styled/components/embedded-chat/session-loading.cjs +1 -0
  425. package/dist/styled/components/embedded-chat/session-loading.d.ts +1 -0
  426. package/dist/styled/components/embedded-chat/session-loading.js +23 -0
  427. package/dist/styled/components/embedded-chat.cjs +1 -0
  428. package/dist/styled/components/embedded-chat.d.ts +211 -0
  429. package/dist/styled/components/embedded-chat.js +1997 -0
  430. package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
  431. package/dist/styled/components/embedded-search/results-loading.d.ts +1 -0
  432. package/dist/styled/components/embedded-search/results-loading.js +39 -0
  433. package/dist/styled/components/embedded-search.cjs +1 -0
  434. package/dist/styled/components/embedded-search.d.ts +73 -0
  435. package/dist/styled/components/embedded-search.js +680 -0
  436. package/dist/styled/components/index.cjs +1 -0
  437. package/dist/styled/components/index.d.ts +13 -0
  438. package/dist/styled/components/index.js +28 -0
  439. package/dist/styled/components/loading-indicator.cjs +1 -0
  440. package/dist/styled/components/loading-indicator.d.ts +1 -0
  441. package/dist/styled/components/loading-indicator.js +36 -0
  442. package/dist/styled/components/message.cjs +1 -0
  443. package/dist/styled/components/message.d.ts +4 -0
  444. package/dist/styled/components/message.js +333 -0
  445. package/dist/styled/components/modal.cjs +1 -0
  446. package/dist/styled/components/modal.d.ts +6 -0
  447. package/dist/styled/components/modal.js +46 -0
  448. package/dist/styled/components/searchbar.cjs +1 -0
  449. package/dist/styled/components/searchbar.d.ts +11 -0
  450. package/dist/styled/components/searchbar.js +81 -0
  451. package/dist/styled/components/shadow.cjs +1 -0
  452. package/dist/styled/components/shadow.d.ts +3 -0
  453. package/dist/styled/components/shadow.js +8 -0
  454. package/dist/styled/components/sidebar-chat.cjs +1 -0
  455. package/dist/styled/components/sidebar-chat.d.ts +6 -0
  456. package/dist/styled/components/sidebar-chat.js +90 -0
  457. package/dist/styled/components/ui/markdown-styles.cjs +1 -0
  458. package/dist/styled/components/ui/markdown-styles.d.ts +23 -0
  459. package/dist/styled/components/ui/markdown-styles.js +39 -0
  460. package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
  461. package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.d.ts +7 -0
  462. package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +33 -0
  463. package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
  464. package/dist/styled/components/ui/recipes/attachment.d.ts +4 -0
  465. package/dist/styled/components/ui/recipes/attachment.js +28 -0
  466. package/dist/styled/components/ui/recipes/button.cjs +1 -0
  467. package/dist/styled/components/ui/recipes/button.d.ts +6 -0
  468. package/dist/styled/components/ui/recipes/button.js +87 -0
  469. package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
  470. package/dist/styled/components/ui/recipes/checkbox.d.ts +4 -0
  471. package/dist/styled/components/ui/recipes/checkbox.js +23 -0
  472. package/dist/styled/components/ui/recipes/citation.cjs +1 -0
  473. package/dist/styled/components/ui/recipes/citation.d.ts +4 -0
  474. package/dist/styled/components/ui/recipes/citation.js +75 -0
  475. package/dist/styled/components/ui/recipes/combobox.cjs +1 -0
  476. package/dist/styled/components/ui/recipes/combobox.d.ts +4 -0
  477. package/dist/styled/components/ui/recipes/combobox.js +57 -0
  478. package/dist/styled/components/ui/recipes/icon.cjs +1 -0
  479. package/dist/styled/components/ui/recipes/icon.d.ts +2 -0
  480. package/dist/styled/components/ui/recipes/icon.js +6 -0
  481. package/dist/styled/components/ui/recipes/index.cjs +1 -0
  482. package/dist/styled/components/ui/recipes/index.d.ts +16 -0
  483. package/dist/styled/components/ui/recipes/index.js +39 -0
  484. package/dist/styled/components/ui/recipes/input.cjs +1 -0
  485. package/dist/styled/components/ui/recipes/input.d.ts +5 -0
  486. package/dist/styled/components/ui/recipes/input.js +34 -0
  487. package/dist/styled/components/ui/recipes/link.cjs +1 -0
  488. package/dist/styled/components/ui/recipes/link.d.ts +2 -0
  489. package/dist/styled/components/ui/recipes/link.js +13 -0
  490. package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
  491. package/dist/styled/components/ui/recipes/markdown.d.ts +16 -0
  492. package/dist/styled/components/ui/recipes/markdown.js +103 -0
  493. package/dist/styled/components/ui/recipes/modal.cjs +1 -0
  494. package/dist/styled/components/ui/recipes/modal.d.ts +4 -0
  495. package/dist/styled/components/ui/recipes/modal.js +59 -0
  496. package/dist/styled/components/ui/recipes/popover.cjs +1 -0
  497. package/dist/styled/components/ui/recipes/popover.d.ts +4 -0
  498. package/dist/styled/components/ui/recipes/popover.js +20 -0
  499. package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
  500. package/dist/styled/components/ui/recipes/scrollable.d.ts +4 -0
  501. package/dist/styled/components/ui/recipes/scrollable.js +15 -0
  502. package/dist/styled/components/ui/recipes/select.cjs +1 -0
  503. package/dist/styled/components/ui/recipes/select.d.ts +4 -0
  504. package/dist/styled/components/ui/recipes/select.js +38 -0
  505. package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
  506. package/dist/styled/components/ui/recipes/skeleton.d.ts +2 -0
  507. package/dist/styled/components/ui/recipes/skeleton.js +16 -0
  508. package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
  509. package/dist/styled/components/ui/recipes/widget-toggle.d.ts +4 -0
  510. package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
  511. package/dist/styled/index.cjs +1 -0
  512. package/dist/styled/index.d.ts +2 -0
  513. package/dist/styled/index.js +200 -0
  514. package/dist/styled/inkeep.css.cjs +4567 -0
  515. package/dist/styled/inkeep.css.js +4571 -0
  516. package/dist/styled/utils.cjs +1 -0
  517. package/dist/styled/utils.d.ts +4 -0
  518. package/dist/styled/utils.js +11 -0
  519. package/dist/theme/color-utils.cjs +1 -0
  520. package/dist/theme/color-utils.d.ts +1 -0
  521. package/dist/theme/color-utils.js +21 -0
  522. package/dist/theme/colors.cjs +1 -0
  523. package/dist/theme/colors.d.ts +104 -0
  524. package/dist/theme/colors.js +143 -0
  525. package/dist/theme/index.cjs +1 -0
  526. package/dist/theme/index.d.ts +125 -0
  527. package/dist/theme/index.js +58 -0
  528. package/dist/theme/utils/create-css-variables.cjs +1 -0
  529. package/dist/theme/utils/create-css-variables.d.ts +2 -0
  530. package/dist/theme/utils/create-css-variables.js +24 -0
  531. package/dist/theme/utils/generate-theme-variables.cjs +1 -0
  532. package/dist/theme/utils/generate-theme-variables.d.ts +3 -0
  533. package/dist/theme/utils/generate-theme-variables.js +34 -0
  534. package/dist/types/color-mode.d.ts +44 -0
  535. package/dist/types/config/ai.d.ts +269 -0
  536. package/dist/types/config/base.d.ts +358 -0
  537. package/dist/types/config/components.d.ts +16 -0
  538. package/dist/types/config/filters.d.ts +17 -0
  539. package/dist/types/config/index.d.ts +36 -0
  540. package/dist/types/config/open-settings.d.ts +70 -0
  541. package/dist/types/config/search.d.ts +95 -0
  542. package/dist/types/config/settings/actions.d.ts +112 -0
  543. package/dist/types/config/settings/form.d.ts +83 -0
  544. package/dist/types/config/settings/jsonschema.d.ts +105 -0
  545. package/dist/types/config/settings/workflow.d.ts +86 -0
  546. package/dist/types/events.d.ts +188 -0
  547. package/dist/types/icons/built-in.d.ts +1 -0
  548. package/dist/types/icons/custom.d.ts +33 -0
  549. package/dist/types/icons/index.d.ts +2 -0
  550. package/dist/types/index.d.ts +20 -0
  551. package/dist/types/js/index.d.ts +55 -0
  552. package/dist/types/message.d.ts +43 -0
  553. package/dist/types/shadow.d.ts +15 -0
  554. package/dist/types/sources.d.ts +100 -0
  555. package/dist/types/theme.d.ts +25 -0
  556. package/dist/types/widget.d.ts +27 -0
  557. package/package.json +140 -0
@@ -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,4 @@
1
+ import { ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ export type Booleanish = boolean | 'true' | 'false';
4
+ export declare const dataAttr: (guard: boolean | undefined) => Booleanish;
@@ -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 @@
1
+ export declare function getTextColorBasedOnBgColor(bgColor: string, lightColor: string, darkColor: string): string;
@@ -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,104 @@
1
+ import { default as Color } from 'colorjs.io';
2
+ import { UserProvidedColorScheme } from '../types/index.ts';
3
+ export declare const DEFAULT_PRIMARY_BRAND_COLOR = "#000000";
4
+ export type ColorDict = Record<string, Color>;
5
+ export declare const createColorDict: (color: Color | string) => Record<string, Color>;
6
+ export declare const createColorScheme: (userScheme?: UserProvidedColorScheme, primaryColor?: Color | string) => InkeepColorScheme;
7
+ export interface InkeepColorScheme {
8
+ inkeepPrimary: {
9
+ textColorOnPrimary: string;
10
+ };
11
+ inkeepExpandedPrimary: {
12
+ '50': string;
13
+ '100': string;
14
+ '200': string;
15
+ '300': string;
16
+ '400': string;
17
+ '500': string;
18
+ '600': string;
19
+ '700': string;
20
+ '800': string;
21
+ '900': string;
22
+ '950': string;
23
+ '1000': string;
24
+ };
25
+ }
26
+ export declare const colors: {
27
+ whiteAlpha: {
28
+ 50: string;
29
+ 100: string;
30
+ 200: string;
31
+ 300: string;
32
+ 400: string;
33
+ 500: string;
34
+ 600: string;
35
+ 700: string;
36
+ 800: string;
37
+ 900: string;
38
+ 950: string;
39
+ 1000: string;
40
+ };
41
+ blackAlpha: {
42
+ 50: string;
43
+ 100: string;
44
+ 200: string;
45
+ 300: string;
46
+ 400: string;
47
+ 500: string;
48
+ 600: string;
49
+ 700: string;
50
+ 800: string;
51
+ 900: string;
52
+ 950: string;
53
+ 1000: string;
54
+ };
55
+ gray: {
56
+ 50: string;
57
+ 100: string;
58
+ 200: string;
59
+ 300: string;
60
+ 400: string;
61
+ 500: string;
62
+ 600: string;
63
+ 700: string;
64
+ 800: string;
65
+ 900: string;
66
+ 950: string;
67
+ 1000: string;
68
+ };
69
+ grayDark: {
70
+ 1000: string;
71
+ 950: string;
72
+ 900: string;
73
+ 800: string;
74
+ 700: string;
75
+ 600: string;
76
+ 500: string;
77
+ 400: string;
78
+ 300: string;
79
+ 200: string;
80
+ 100: string;
81
+ 50: string;
82
+ };
83
+ overlay: {
84
+ light: string;
85
+ dark: string;
86
+ };
87
+ inkeepPrimary: {
88
+ textColorOnPrimary: string;
89
+ };
90
+ inkeepExpandedPrimary: {
91
+ "50": string;
92
+ "100": string;
93
+ "200": string;
94
+ "300": string;
95
+ "400": string;
96
+ "500": string;
97
+ "600": string;
98
+ "700": string;
99
+ "800": string;
100
+ "900": string;
101
+ "950": string;
102
+ "1000": string;
103
+ };
104
+ };
@@ -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,125 @@
1
+ export declare const theme: {
2
+ colors: {
3
+ whiteAlpha: {
4
+ 50: string;
5
+ 100: string;
6
+ 200: string;
7
+ 300: string;
8
+ 400: string;
9
+ 500: string;
10
+ 600: string;
11
+ 700: string;
12
+ 800: string;
13
+ 900: string;
14
+ 950: string;
15
+ 1000: string;
16
+ };
17
+ blackAlpha: {
18
+ 50: string;
19
+ 100: string;
20
+ 200: string;
21
+ 300: string;
22
+ 400: string;
23
+ 500: string;
24
+ 600: string;
25
+ 700: string;
26
+ 800: string;
27
+ 900: string;
28
+ 950: string;
29
+ 1000: string;
30
+ };
31
+ gray: {
32
+ 50: string;
33
+ 100: string;
34
+ 200: string;
35
+ 300: string;
36
+ 400: string;
37
+ 500: string;
38
+ 600: string;
39
+ 700: string;
40
+ 800: string;
41
+ 900: string;
42
+ 950: string;
43
+ 1000: string;
44
+ };
45
+ grayDark: {
46
+ 1000: string;
47
+ 950: string;
48
+ 900: string;
49
+ 800: string;
50
+ 700: string;
51
+ 600: string;
52
+ 500: string;
53
+ 400: string;
54
+ 300: string;
55
+ 200: string;
56
+ 100: string;
57
+ 50: string;
58
+ };
59
+ overlay: {
60
+ light: string;
61
+ dark: string;
62
+ };
63
+ inkeepPrimary: {
64
+ textColorOnPrimary: string;
65
+ };
66
+ inkeepExpandedPrimary: {
67
+ "50": string;
68
+ "100": string;
69
+ "200": string;
70
+ "300": string;
71
+ "400": string;
72
+ "500": string;
73
+ "600": string;
74
+ "700": string;
75
+ "800": string;
76
+ "900": string;
77
+ "950": string;
78
+ "1000": string;
79
+ };
80
+ };
81
+ fontFamily: {
82
+ heading: string;
83
+ body: string;
84
+ mono: string;
85
+ };
86
+ fontSize: {
87
+ '3xs': string;
88
+ '2xs': string;
89
+ '1xs': string;
90
+ xs: string;
91
+ '1sm': string;
92
+ sm: string;
93
+ '2sm': string;
94
+ md: string;
95
+ lg: string;
96
+ xl: string;
97
+ '2xl': string;
98
+ '3xl': string;
99
+ '4xl': string;
100
+ '5xl': string;
101
+ '6xl': string;
102
+ '7xl': string;
103
+ '8xl': string;
104
+ '9xl': string;
105
+ };
106
+ zIndex: {
107
+ hide: number;
108
+ auto: string;
109
+ base: number;
110
+ start: number;
111
+ docked: number;
112
+ dropdown: number;
113
+ sticky: number;
114
+ banner: number;
115
+ overlay: number;
116
+ modal: number;
117
+ popover: number;
118
+ skipLink: number;
119
+ toast: number;
120
+ tooltip: number;
121
+ };
122
+ };
123
+ export * from './utils/create-css-variables';
124
+ export * from './utils/generate-theme-variables';
125
+ export * from './colors';
@@ -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,2 @@
1
+ import { IkpTheme } from '../../types/index.ts';
2
+ export declare function createCSSVariables(theme: IkpTheme): Record<string, any>;
@@ -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,3 @@
1
+ import { IkpTheme, IkpThemeCategory } from '../../types/index.ts';
2
+ export declare const themeMappings: Record<IkpThemeCategory, string>;
3
+ export declare function generateThemeVariables(theme: IkpTheme): Record<string, any>;
@@ -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,44 @@
1
+ /** Adapted from https://github.com/pacocoursey/next-theme/blob/a385b8d865bbb317ff73a5b6c1319ae566f7d6f1/src/types.ts */
2
+ interface ValueObject {
3
+ [colorModeName: string]: string;
4
+ }
5
+ export interface UseColorModeProps {
6
+ /** List of all available colorMode names */
7
+ colorModes: string[];
8
+ /** Forced colorMode name for the current page */
9
+ forcedColorMode?: string;
10
+ /** Update the colorMode */
11
+ setColorMode: (colorMode: string) => void;
12
+ /** Active colorMode name */
13
+ colorMode?: string;
14
+ /** If `enableSystem` is true and the active colorMode is "system", this returns whether the system preference resolved to "dark" or "light". Otherwise, identical to `colorMode` */
15
+ resolvedColorMode?: string;
16
+ /** If enableSystem is true, returns the System colorMode preference ("dark" or "light"), regardless what the active colorMode is */
17
+ systemColorMode?: 'dark' | 'light';
18
+ }
19
+ export interface ColorModeProviderProps {
20
+ /** List of all available colorMode names */
21
+ colorModes?: string[];
22
+ /** Forced colorMode name for the current page */
23
+ forcedColorMode?: string;
24
+ /** Whether to switch between dark and light colorModes based on prefers-color-scheme */
25
+ enableSystem?: boolean;
26
+ /** Disable all CSS transitions when switching colorModes */
27
+ disableTransitionOnChange?: boolean;
28
+ /** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
29
+ enableColorScheme?: boolean;
30
+ /** Key used to store colorMode setting in localStorage */
31
+ storageKey?: string;
32
+ /** Default colorMode name (for v0.0.12 and lower the default was light). If `enableSystem` is false, the default colorMode is light */
33
+ defaultColorMode?: string;
34
+ /** HTML attribute modified based on the active colorMode. Accepts `class` and `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.) */
35
+ attribute?: 'class' | (string & {});
36
+ /** Mapping of colorMode name to HTML attribute value. Object where key is the colorMode name and value is the attribute value */
37
+ value?: ValueObject;
38
+ /** Nonce string to pass to the inline script for CSP headers */
39
+ nonce?: string;
40
+ shadowHostId?: string;
41
+ rootId?: string;
42
+ children?: React.ReactNode;
43
+ }
44
+ export {};