@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.
- package/LICENSE +64 -0
- package/README.md +1 -67
- package/dist/_virtual/index.cjs +1 -0
- package/dist/_virtual/index.js +4 -0
- package/dist/_virtual/use-sync-external-store-shim.development.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.development.js +5 -0
- package/dist/_virtual/use-sync-external-store-shim.production.cjs +1 -0
- package/dist/_virtual/use-sync-external-store-shim.production.js +5 -0
- package/dist/color-mode/index.cjs +1 -0
- package/dist/color-mode/index.js +170 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +5093 -0
- package/dist/index.d.ts +5093 -0
- package/dist/index.js +213 -0
- 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
- 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
- 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
- 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
- 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
- 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
- package/dist/primitives/atoms/avatars/ai.cjs +1 -0
- package/dist/primitives/atoms/avatars/ai.js +99 -0
- package/dist/primitives/atoms/avatars/user.cjs +1 -0
- package/dist/primitives/atoms/avatars/user.js +27 -0
- package/dist/primitives/atoms/cmdk/command-score.cjs +1 -0
- package/dist/primitives/atoms/cmdk/command-score.js +46 -0
- package/dist/primitives/atoms/cmdk/index.cjs +1 -0
- package/dist/primitives/atoms/cmdk/index.js +521 -0
- package/dist/primitives/atoms/codeblock/index.cjs +1 -0
- package/dist/primitives/atoms/codeblock/index.js +40 -0
- package/dist/primitives/atoms/custom-styles.cjs +1 -0
- package/dist/primitives/atoms/custom-styles.js +57 -0
- package/dist/primitives/atoms/dialog.cjs +1 -0
- package/dist/primitives/atoms/dialog.js +226 -0
- package/dist/primitives/atoms/error-boundary.cjs +1 -0
- package/dist/primitives/atoms/error-boundary.js +9 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.js +51 -0
- package/dist/primitives/atoms/icons/built-in-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/built-in-icons.js +86 -0
- package/dist/primitives/atoms/icons/checkbox-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/checkbox-icon.js +24 -0
- package/dist/primitives/atoms/icons/collections/bi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/bi.js +49 -0
- package/dist/primitives/atoms/icons/collections/fi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/fi.js +29 -0
- package/dist/primitives/atoms/icons/collections/gr.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/gr.js +21 -0
- package/dist/primitives/atoms/icons/collections/io5.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/io5.js +806 -0
- package/dist/primitives/atoms/icons/collections/pi.cjs +1 -0
- package/dist/primitives/atoms/icons/collections/pi.js +49 -0
- package/dist/primitives/atoms/icons/custom-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/custom-icon.js +19 -0
- package/dist/primitives/atoms/icons/generate-icon.cjs +1 -0
- package/dist/primitives/atoms/icons/generate-icon.js +56 -0
- package/dist/primitives/atoms/icons/index.cjs +1 -0
- package/dist/primitives/atoms/icons/index.js +6 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.cjs +1 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.js +24 -0
- package/dist/primitives/atoms/link.cjs +1 -0
- package/dist/primitives/atoms/link.js +35 -0
- package/dist/primitives/atoms/markdown/components.cjs +1 -0
- package/dist/primitives/atoms/markdown/components.js +73 -0
- package/dist/primitives/atoms/markdown/index.cjs +1 -0
- package/dist/primitives/atoms/markdown/index.js +115 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.cjs +1 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.js +12 -0
- package/dist/primitives/atoms/portal-with-theme.cjs +1 -0
- package/dist/primitives/atoms/portal-with-theme.js +12 -0
- package/dist/primitives/atoms/portal.cjs +1 -0
- package/dist/primitives/atoms/portal.js +19 -0
- package/dist/primitives/atoms/select.cjs +1 -0
- package/dist/primitives/atoms/select.js +785 -0
- package/dist/primitives/atoms/shadow/context.cjs +1 -0
- package/dist/primitives/atoms/shadow/context.js +54 -0
- package/dist/primitives/atoms/shadow/create.cjs +1 -0
- package/dist/primitives/atoms/shadow/create.js +56 -0
- package/dist/primitives/atoms/shadow/root.cjs +1 -0
- package/dist/primitives/atoms/shadow/root.js +22 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.cjs +1 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.js +11 -0
- package/dist/primitives/atoms/shadow/utils.cjs +1 -0
- package/dist/primitives/atoms/shadow/utils.js +16 -0
- package/dist/primitives/components/chat-button.cjs +1 -0
- package/dist/primitives/components/chat-button.js +46 -0
- package/dist/primitives/components/embedded-chat/chat-provider.cjs +1 -0
- package/dist/primitives/components/embedded-chat/chat-provider.js +20 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.js +38 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +160 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +82 -0
- package/dist/primitives/components/embedded-chat.cjs +11 -0
- package/dist/primitives/components/embedded-chat.js +1898 -0
- package/dist/primitives/components/embedded-search/search-provider.cjs +1 -0
- package/dist/primitives/components/embedded-search/search-provider.js +26 -0
- package/dist/primitives/components/embedded-search/transform-results.cjs +1 -0
- package/dist/primitives/components/embedded-search/transform-results.js +47 -0
- package/dist/primitives/components/embedded-search/url-query.cjs +1 -0
- package/dist/primitives/components/embedded-search/url-query.js +12 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.js +35 -0
- package/dist/primitives/components/embedded-search/use-search-filter.cjs +1 -0
- package/dist/primitives/components/embedded-search/use-search-filter.js +77 -0
- package/dist/primitives/components/embedded-search.cjs +1 -0
- package/dist/primitives/components/embedded-search.js +628 -0
- package/dist/primitives/components/factory.cjs +1 -0
- package/dist/primitives/components/factory.js +39 -0
- package/dist/primitives/components/index.cjs +1 -0
- package/dist/primitives/components/index.js +27 -0
- package/dist/primitives/components/modal/modal-provider.cjs +1 -0
- package/dist/primitives/components/modal/modal-provider.js +8 -0
- package/dist/primitives/components/modal/use-inkeep-modal.cjs +1 -0
- package/dist/primitives/components/modal/use-inkeep-modal.js +45 -0
- package/dist/primitives/components/modal/widget-auto-focus.cjs +1 -0
- package/dist/primitives/components/modal/widget-auto-focus.js +16 -0
- package/dist/primitives/components/modal.cjs +1 -0
- package/dist/primitives/components/modal.js +40 -0
- package/dist/primitives/components/presence.cjs +1 -0
- package/dist/primitives/components/presence.js +26 -0
- package/dist/primitives/components/searchbar.cjs +1 -0
- package/dist/primitives/components/searchbar.js +54 -0
- package/dist/primitives/components/sidebar-chat/index.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/index.js +86 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.cjs +1 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.js +34 -0
- package/dist/primitives/components/tagline-logo-icon.cjs +1 -0
- package/dist/primitives/components/tagline-logo-icon.js +26 -0
- package/dist/primitives/components/use-component-trigger.cjs +1 -0
- package/dist/primitives/components/use-component-trigger.js +16 -0
- package/dist/primitives/constants/search.cjs +1 -0
- package/dist/primitives/constants/search.js +5 -0
- package/dist/primitives/hooks/index.cjs +1 -0
- package/dist/primitives/hooks/index.js +24 -0
- package/dist/primitives/hooks/use-boolean.cjs +1 -0
- package/dist/primitives/hooks/use-boolean.js +17 -0
- package/dist/primitives/hooks/use-component-classnames.cjs +1 -0
- package/dist/primitives/hooks/use-component-classnames.js +14 -0
- package/dist/primitives/hooks/use-container-size.cjs +1 -0
- package/dist/primitives/hooks/use-container-size.js +18 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.cjs +1 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.js +24 -0
- package/dist/primitives/hooks/use-debounce.cjs +1 -0
- package/dist/primitives/hooks/use-debounce.js +16 -0
- package/dist/primitives/hooks/use-instant-update.cjs +1 -0
- package/dist/primitives/hooks/use-instant-update.js +16 -0
- package/dist/primitives/hooks/use-is-mounted.cjs +1 -0
- package/dist/primitives/hooks/use-is-mounted.js +11 -0
- package/dist/primitives/hooks/use-media-query.cjs +1 -0
- package/dist/primitives/hooks/use-media-query.js +14 -0
- package/dist/primitives/hooks/use-resize-observer.cjs +1 -0
- package/dist/primitives/hooks/use-resize-observer.js +32 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.cjs +1 -0
- package/dist/primitives/hooks/use-scroll-to-bottom.js +52 -0
- package/dist/primitives/hooks/use-scrolling-fades.cjs +1 -0
- package/dist/primitives/hooks/use-scrolling-fades.js +18 -0
- package/dist/primitives/hooks/use-settle-action.cjs +1 -0
- package/dist/primitives/hooks/use-settle-action.js +11 -0
- package/dist/primitives/index.cjs +1 -0
- package/dist/primitives/index.js +155 -0
- package/dist/primitives/providers/attachment-item-provider.cjs +1 -0
- package/dist/primitives/providers/attachment-item-provider.js +13 -0
- package/dist/primitives/providers/attachments-bar-provider.cjs +1 -0
- package/dist/primitives/providers/attachments-bar-provider.js +57 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -0
- package/dist/primitives/providers/base-events-provider.js +37 -0
- package/dist/primitives/providers/chat-form-provider.cjs +1 -0
- package/dist/primitives/providers/chat-form-provider.js +109 -0
- package/dist/primitives/providers/config-provider.cjs +1 -0
- package/dist/primitives/providers/config-provider.js +38 -0
- package/dist/primitives/providers/feedback-item-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-item-provider.js +16 -0
- package/dist/primitives/providers/feedback-provider.cjs +1 -0
- package/dist/primitives/providers/feedback-provider.js +83 -0
- package/dist/primitives/providers/form-field-provider.cjs +1 -0
- package/dist/primitives/providers/form-field-provider.js +17 -0
- package/dist/primitives/providers/help-menu-provider.cjs +1 -0
- package/dist/primitives/providers/help-menu-provider.js +19 -0
- package/dist/primitives/providers/hover-popover-provider.cjs +1 -0
- package/dist/primitives/providers/hover-popover-provider.js +13 -0
- package/dist/primitives/providers/index.cjs +1 -0
- package/dist/primitives/providers/index.js +57 -0
- package/dist/primitives/providers/markdown-provider.cjs +1 -0
- package/dist/primitives/providers/markdown-provider.js +8 -0
- package/dist/primitives/providers/message-attachments-provider.cjs +1 -0
- package/dist/primitives/providers/message-attachments-provider.js +27 -0
- package/dist/primitives/providers/message-provider.cjs +1 -0
- package/dist/primitives/providers/message-provider.js +14 -0
- package/dist/primitives/providers/root-provider.cjs +1 -0
- package/dist/primitives/providers/root-provider.js +21 -0
- package/dist/primitives/providers/search-events-provider.cjs +1 -0
- package/dist/primitives/providers/search-events-provider.js +17 -0
- package/dist/primitives/providers/sidebar-chat-provider.cjs +1 -0
- package/dist/primitives/providers/sidebar-chat-provider.js +41 -0
- package/dist/primitives/providers/source-item-provider.cjs +1 -0
- package/dist/primitives/providers/source-item-provider.js +13 -0
- package/dist/primitives/providers/theme-provider.cjs +3 -0
- package/dist/primitives/providers/theme-provider.js +79 -0
- package/dist/primitives/providers/widget-provider.cjs +1 -0
- package/dist/primitives/providers/widget-provider.js +8 -0
- package/dist/primitives/utils/component-ids.cjs +1 -0
- package/dist/primitives/utils/component-ids.js +309 -0
- package/dist/primitives/utils/compose-event-handlers.cjs +1 -0
- package/dist/primitives/utils/compose-event-handlers.js +10 -0
- package/dist/primitives/utils/compose-refs.cjs +1 -0
- package/dist/primitives/utils/compose-refs.js +30 -0
- package/dist/primitives/utils/default-settings.cjs +1 -0
- package/dist/primitives/utils/default-settings.js +50 -0
- package/dist/primitives/utils/form.cjs +1 -0
- package/dist/primitives/utils/form.js +17 -0
- package/dist/primitives/utils/generate-uid.cjs +1 -0
- package/dist/primitives/utils/generate-uid.js +14 -0
- package/dist/primitives/utils/get-source-icon.cjs +1 -0
- package/dist/primitives/utils/get-source-icon.js +11 -0
- package/dist/primitives/utils/highlight-emphasis.cjs +1 -0
- package/dist/primitives/utils/highlight-emphasis.js +15 -0
- package/dist/primitives/utils/merge-props.cjs +1 -0
- package/dist/primitives/utils/merge-props.js +41 -0
- package/dist/primitives/utils/misc.cjs +1 -0
- package/dist/primitives/utils/misc.js +31 -0
- package/dist/primitives/utils/split-props.cjs +1 -0
- package/dist/primitives/utils/split-props.js +10 -0
- package/dist/react/chat-button.cjs +1 -0
- package/dist/react/chat-button.js +60 -0
- package/dist/react/embedded-chat.cjs +1 -0
- package/dist/react/embedded-chat.js +380 -0
- package/dist/react/embedded-search-and-chat.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.cjs +1 -0
- package/dist/react/embedded-search-and-chat.impl.js +43 -0
- package/dist/react/embedded-search-and-chat.js +66 -0
- package/dist/react/embedded-search.cjs +1 -0
- package/dist/react/embedded-search.js +181 -0
- package/dist/react/index.cjs +1 -0
- package/dist/react/index.js +213 -0
- package/dist/react/modal.chat.cjs +1 -0
- package/dist/react/modal.chat.js +21 -0
- package/dist/react/modal.cjs +1 -0
- package/dist/react/modal.js +27 -0
- package/dist/react/modal.search-and-chat.cjs +1 -0
- package/dist/react/modal.search-and-chat.js +27 -0
- package/dist/react/modal.search.cjs +1 -0
- package/dist/react/modal.search.js +21 -0
- package/dist/react/searchbar.cjs +1 -0
- package/dist/react/searchbar.js +68 -0
- package/dist/react/sidebar-chat.cjs +1 -0
- package/dist/react/sidebar-chat.js +49 -0
- package/dist/react/utils.cjs +1 -0
- package/dist/react/utils.js +20 -0
- package/dist/react/widget-toggle.cjs +1 -0
- package/dist/react/widget-toggle.js +65 -0
- package/dist/styled/components/chat-button.cjs +1 -0
- package/dist/styled/components/chat-button.js +56 -0
- package/dist/styled/components/data-summary-group.cjs +1 -0
- package/dist/styled/components/data-summary-group.js +76 -0
- package/dist/styled/components/embedded-chat.cjs +1 -0
- package/dist/styled/components/embedded-chat.js +1816 -0
- package/dist/styled/components/embedded-search/results-loading.cjs +1 -0
- package/dist/styled/components/embedded-search/results-loading.js +39 -0
- package/dist/styled/components/embedded-search.cjs +1 -0
- package/dist/styled/components/embedded-search.js +680 -0
- package/dist/styled/components/index.cjs +1 -0
- package/dist/styled/components/index.js +24 -0
- package/dist/styled/components/loading-indicator.cjs +1 -0
- package/dist/styled/components/loading-indicator.js +36 -0
- package/dist/styled/components/message.cjs +1 -0
- package/dist/styled/components/message.js +140 -0
- package/dist/styled/components/modal.cjs +1 -0
- package/dist/styled/components/modal.js +46 -0
- package/dist/styled/components/searchbar.cjs +1 -0
- package/dist/styled/components/searchbar.js +81 -0
- package/dist/styled/components/shadow.cjs +1 -0
- package/dist/styled/components/shadow.js +8 -0
- package/dist/styled/components/sidebar-chat.cjs +1 -0
- package/dist/styled/components/sidebar-chat.js +90 -0
- package/dist/styled/components/ui/markdown-styles.cjs +1 -0
- package/dist/styled/components/ui/markdown-styles.js +38 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.cjs +1 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.js +32 -0
- package/dist/styled/components/ui/recipes/attachment.cjs +1 -0
- package/dist/styled/components/ui/recipes/attachment.js +28 -0
- package/dist/styled/components/ui/recipes/button.cjs +1 -0
- package/dist/styled/components/ui/recipes/button.js +81 -0
- package/dist/styled/components/ui/recipes/checkbox.cjs +1 -0
- package/dist/styled/components/ui/recipes/checkbox.js +23 -0
- package/dist/styled/components/ui/recipes/citation.cjs +1 -0
- package/dist/styled/components/ui/recipes/citation.js +75 -0
- package/dist/styled/components/ui/recipes/icon.cjs +1 -0
- package/dist/styled/components/ui/recipes/icon.js +6 -0
- package/dist/styled/components/ui/recipes/index.cjs +1 -0
- package/dist/styled/components/ui/recipes/index.js +37 -0
- package/dist/styled/components/ui/recipes/input.cjs +1 -0
- package/dist/styled/components/ui/recipes/input.js +34 -0
- package/dist/styled/components/ui/recipes/link.cjs +1 -0
- package/dist/styled/components/ui/recipes/link.js +13 -0
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -0
- package/dist/styled/components/ui/recipes/markdown.js +103 -0
- package/dist/styled/components/ui/recipes/modal.cjs +1 -0
- package/dist/styled/components/ui/recipes/modal.js +59 -0
- package/dist/styled/components/ui/recipes/popover.cjs +1 -0
- package/dist/styled/components/ui/recipes/popover.js +20 -0
- package/dist/styled/components/ui/recipes/scrollable.cjs +1 -0
- package/dist/styled/components/ui/recipes/scrollable.js +15 -0
- package/dist/styled/components/ui/recipes/select.cjs +1 -0
- package/dist/styled/components/ui/recipes/select.js +38 -0
- package/dist/styled/components/ui/recipes/skeleton.cjs +1 -0
- package/dist/styled/components/ui/recipes/skeleton.js +16 -0
- package/dist/styled/components/ui/recipes/widget-toggle.cjs +1 -0
- package/dist/styled/components/ui/recipes/widget-toggle.js +35 -0
- package/dist/styled/index.cjs +1 -0
- package/dist/styled/index.js +177 -0
- package/dist/styled/inkeep.css.cjs +4049 -0
- package/dist/styled/inkeep.css.js +4053 -0
- package/dist/styled/utils.cjs +1 -0
- package/dist/styled/utils.js +11 -0
- package/dist/theme/color-utils.cjs +1 -0
- package/dist/theme/color-utils.js +21 -0
- package/dist/theme/colors.cjs +1 -0
- package/dist/theme/colors.js +143 -0
- package/dist/theme/index.cjs +1 -0
- package/dist/theme/index.js +58 -0
- package/dist/theme/utils/create-css-variables.cjs +1 -0
- package/dist/theme/utils/create-css-variables.js +24 -0
- package/dist/theme/utils/generate-theme-variables.cjs +1 -0
- package/dist/theme/utils/generate-theme-variables.js +34 -0
- package/dist/types/message.cjs +1 -0
- package/dist/types/message.js +5 -0
- package/dist/types/types.d.cts +1754 -0
- package/dist/types/types.d.ts +1754 -0
- package/package.json +132 -39
- package/LICENSE.md +0 -51
- package/dist/assets/index-3anqgmEs.js +0 -49
- package/dist/assets/index-CF_BRP1w.css +0 -1
- package/dist/index.html +0 -14
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useState as o, useEffect as l } from "react";
|
|
4
|
+
const r = ["Thinking", "Looking for content", "Analyzing"];
|
|
5
|
+
function g() {
|
|
6
|
+
const [n, i] = o(0);
|
|
7
|
+
return l(() => {
|
|
8
|
+
const e = setInterval(() => {
|
|
9
|
+
i((a) => a + 1 < r.length ? a + 1 : (clearInterval(e), a));
|
|
10
|
+
}, 3500);
|
|
11
|
+
return () => clearInterval(e);
|
|
12
|
+
}, []), /* @__PURE__ */ s(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
className: "flex items-center space-x-2 font-medium text-sm text-gray-700 dark:text-gray-dark-300",
|
|
16
|
+
"aria-live": "polite",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ t("span", { className: "animate-shimmer bg-[linear-gradient(to_bottom_right,_var(--ikp-color-gray-700),_var(--ikp-color-gray-400))] dark:bg-[linear-gradient(to_bottom_right,_var(--ikp-color-gray-dark-300),_var(--ikp-color-gray-dark-100))] bg-clip-text text-transparent", children: r[n] }),
|
|
19
|
+
/* @__PURE__ */ t("div", { className: "flex space-x-1", children: [0, 1, 2].map((e) => /* @__PURE__ */ t(
|
|
20
|
+
"span",
|
|
21
|
+
{
|
|
22
|
+
className: "animate-bounce-dot opacity-30",
|
|
23
|
+
style: {
|
|
24
|
+
animationDelay: `${e * 0.2}s`
|
|
25
|
+
},
|
|
26
|
+
children: "."
|
|
27
|
+
},
|
|
28
|
+
e
|
|
29
|
+
)) })
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
g as LoadingIndicator
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),A=require("../../primitives/providers/base-events-provider.cjs"),R=require("../../primitives/providers/config-provider.cjs"),O=require("../../primitives/providers/message-provider.cjs"),r=require("../../primitives/components/embedded-chat.cjs"),F=require("../../primitives/components/embedded-chat/chat-provider.cjs"),G=require("merge-anything"),K=require("../utils.cjs"),B=require("./ui/markdown-styles.cjs"),J=require("../../primitives/components/embedded-chat/use-stream-processor.cjs"),Y=require("./data-summary-group.cjs"),i=require("react"),z=require("./embedded-chat.cjs"),H=require("../../types/message.cjs"),k=require("lucide-react"),Q=()=>e.jsx("div",{className:"flex space-x-1",children:[0,1,2].map(s=>e.jsx("span",{className:"animate-bounce-dot opacity-30",style:{animationDelay:`${s*.2}s`},children:"."},s))}),w=({name:s,Icon:n,props:y,componentType:p})=>e.jsxs("div",{className:"border rounded-lg bg-gray-50 dark:bg-gray-dark-800 mb-3",children:[e.jsxs("div",{className:"flex justify-between px-4 py-2 text-xs",children:[e.jsxs("div",{className:"font-medium flex items-center gap-2",children:[e.jsx(n,{className:"w-3 h-3 text-gray-600 dark:text-white-alpha-600"}),e.jsx("span",{children:s})]}),e.jsx("div",{className:"flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono",children:p})]}),e.jsx("pre",{className:"whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2",children:JSON.stringify(y,null,2)})]}),U=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.ComponentIcon,props:n,componentType:"component"}),V=({name:s,props:n})=>e.jsx(w,{name:s,Icon:k.Library,props:n,componentType:"artifact"}),W=({className:s,componentStyles:n,children:y,isLast:p,...S})=>{const{message:c}=O.useMessage(),{logEvent:u}=A.useBaseEvents(),{conversationId:C,isStreaming:D,isLoading:q}=F.useChat(),{aiChatSettings:{components:M,artifacts:N}}=R.useInkeepConfig(),T=(D||q)&&p&&c.role==="assistant",{processedParts:E,summaryTimings:I,shouldShowInitialLoading:L,shouldShowStreamDelayLoading:_}=J.useStreamProcessor(c.parts,T),f=i.useMemo(()=>c.parts.filter(t=>t.type==="data-artifact"&&t.data?.type?.toLowerCase()===H.CITATION_ARTIFACT_TYPE),[c.parts]),j=i.useMemo(()=>G.merge(B.markdownStyles,n??{}),[n]),b=i.useCallback((t,a)=>{u({eventName:"assistant_message_inline_link_opened",properties:{title:a?.toString(),url:t}})},[u]),v=i.useCallback((t,a)=>{u({eventName:"assistant_code_block_copied",properties:{conversationId:C,language:t,code:a}})},[u,C]),P=i.useCallback(t=>e.jsx(r.EmbeddedChatPrimitiveMarkdown,{text:t,componentStyles:j,onLinkClick:b,onCodeCopy:v,artifacts:f}),[j,b,v,f]),$=i.useMemo(()=>K.cn("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full",s),[s]);return e.jsxs(e.Fragment,{children:[E.map((t,a)=>{const m={"data-role":c.role,"data-type":t?.type==="data-component"?t.data.type:t?.type,...S,className:$};switch(t?.type){case"text":return e.jsx(r.PrimitiveMessagePart,{...m,children:P(t.text||"")},a);case"data-component":{const{type:d}=t.data;switch(d){case"text":return e.jsx("div",{...m,children:P(t.data.text||"")},a);default:{const g=t.data,{name:o,props:x}=g,l=M?.[o],h=l?r.EmbeddedChatPrimitiveDynamicComponent:U;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:o,props:x,componentDef:l})},`${o}-${a}`)}}}case"data-artifact":{const d=t.data,{name:g,type:o,artifactSummary:x}=d,l=N?.[o],h=l?r.EmbeddedChatPrimitiveDynamicComponent:V;return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(h,{name:o,props:x,componentDef:l})},`${g}-${a}`)}case"summary-group":{const d=I.get(t.groupKey)||{isCompleted:!1};return e.jsx(r.PrimitiveMessagePart,{...m,children:e.jsx(Y.DataSummaryGroup,{summaries:t.summaries||[],isCompleted:d.isCompleted})},`${t.groupKey}-${a}`)}default:return null}}),L&&e.jsx(z.MessageLoading,{}),_&&e.jsx(Q,{})]})};exports.EmbeddedChatMessagePart=W;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as t, jsxs as l, Fragment as O } from "react/jsx-runtime";
|
|
3
|
+
import { useBaseEvents as B } from "../../primitives/providers/base-events-provider.js";
|
|
4
|
+
import { useInkeepConfig as G } from "../../primitives/providers/config-provider.js";
|
|
5
|
+
import { useMessage as J } from "../../primitives/providers/message-provider.js";
|
|
6
|
+
import { EmbeddedChatPrimitiveMarkdown as R, PrimitiveMessagePart as d, EmbeddedChatPrimitiveDynamicComponent as N } from "../../primitives/components/embedded-chat.js";
|
|
7
|
+
import { useChat as Y } from "../../primitives/components/embedded-chat/chat-provider.js";
|
|
8
|
+
import { merge as q } from "merge-anything";
|
|
9
|
+
import { cn as z } from "../utils.js";
|
|
10
|
+
import { markdownStyles as H } from "./ui/markdown-styles.js";
|
|
11
|
+
import { useStreamProcessor as Q } from "../../primitives/components/embedded-chat/use-stream-processor.js";
|
|
12
|
+
import { DataSummaryGroup as U } from "./data-summary-group.js";
|
|
13
|
+
import { useMemo as h, useCallback as y } from "react";
|
|
14
|
+
import { MessageLoading as V } from "./embedded-chat.js";
|
|
15
|
+
import { CITATION_ARTIFACT_TYPE as W } from "../../types/message.js";
|
|
16
|
+
import { Library as X, ComponentIcon as Z } from "lucide-react";
|
|
17
|
+
const ee = () => /* @__PURE__ */ t("div", { className: "flex space-x-1", children: [0, 1, 2].map((a) => /* @__PURE__ */ t(
|
|
18
|
+
"span",
|
|
19
|
+
{
|
|
20
|
+
className: "animate-bounce-dot opacity-30",
|
|
21
|
+
style: {
|
|
22
|
+
animationDelay: `${a * 0.2}s`
|
|
23
|
+
},
|
|
24
|
+
children: "."
|
|
25
|
+
},
|
|
26
|
+
a
|
|
27
|
+
)) }), S = ({ name: a, Icon: n, props: C, componentType: u }) => /* @__PURE__ */ l("div", { className: "border rounded-lg bg-gray-50 dark:bg-gray-dark-800 mb-3", children: [
|
|
28
|
+
/* @__PURE__ */ l("div", { className: "flex justify-between px-4 py-2 text-xs", children: [
|
|
29
|
+
/* @__PURE__ */ l("div", { className: "font-medium flex items-center gap-2", children: [
|
|
30
|
+
/* @__PURE__ */ t(n, { className: "w-3 h-3 text-gray-600 dark:text-white-alpha-600" }),
|
|
31
|
+
/* @__PURE__ */ t("span", { children: a })
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ t("div", { className: "flex items-center px-1.5 py-0.5 rounded-md text-2xs uppercase tracking-wider bg-gray-200 dark:bg-white-alpha-200 font-medium text-gray-700 dark:text-white-alpha-700 font-mono", children: u })
|
|
34
|
+
] }),
|
|
35
|
+
/* @__PURE__ */ t("pre", { className: "whitespace-pre-wrap text-xs text-gray-700 dark:text-white-alpha-700 font-mono px-4 py-2", children: JSON.stringify(C, null, 2) })
|
|
36
|
+
] }), te = ({ name: a, props: n }) => /* @__PURE__ */ t(S, { name: a, Icon: Z, props: n, componentType: "component" }), ae = ({ name: a, props: n }) => /* @__PURE__ */ t(S, { name: a, Icon: X, props: n, componentType: "artifact" }), Ce = ({
|
|
37
|
+
className: a,
|
|
38
|
+
componentStyles: n,
|
|
39
|
+
children: C,
|
|
40
|
+
isLast: u,
|
|
41
|
+
...L
|
|
42
|
+
}) => {
|
|
43
|
+
const { message: r } = J(), { logEvent: p } = B(), { conversationId: x, isStreaming: I, isLoading: P } = Y(), {
|
|
44
|
+
aiChatSettings: { components: T, artifacts: _ }
|
|
45
|
+
} = G(), M = (I || P) && u && r.role === "assistant", { processedParts: E, summaryTimings: $, shouldShowInitialLoading: A, shouldShowStreamDelayLoading: j } = Q(r.parts, M), w = h(
|
|
46
|
+
() => r.parts.filter(
|
|
47
|
+
(e) => e.type === "data-artifact" && e.data?.type?.toLowerCase() === W
|
|
48
|
+
),
|
|
49
|
+
[r.parts]
|
|
50
|
+
), k = h(
|
|
51
|
+
() => q(H, n ?? {}),
|
|
52
|
+
[n]
|
|
53
|
+
), D = y(
|
|
54
|
+
(e, o) => {
|
|
55
|
+
p({
|
|
56
|
+
eventName: "assistant_message_inline_link_opened",
|
|
57
|
+
properties: {
|
|
58
|
+
title: o?.toString(),
|
|
59
|
+
url: e
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
},
|
|
63
|
+
[p]
|
|
64
|
+
), b = y(
|
|
65
|
+
(e, o) => {
|
|
66
|
+
p({
|
|
67
|
+
eventName: "assistant_code_block_copied",
|
|
68
|
+
properties: {
|
|
69
|
+
conversationId: x,
|
|
70
|
+
language: e,
|
|
71
|
+
code: o
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
},
|
|
75
|
+
[p, x]
|
|
76
|
+
), v = y(
|
|
77
|
+
(e) => /* @__PURE__ */ t(
|
|
78
|
+
R,
|
|
79
|
+
{
|
|
80
|
+
text: e,
|
|
81
|
+
componentStyles: k,
|
|
82
|
+
onLinkClick: D,
|
|
83
|
+
onCodeCopy: b,
|
|
84
|
+
artifacts: w
|
|
85
|
+
}
|
|
86
|
+
),
|
|
87
|
+
[k, D, b, w]
|
|
88
|
+
), F = h(
|
|
89
|
+
() => z("data-[role=user]:whitespace-pre-wrap mb-3 max-w-full", a),
|
|
90
|
+
[a]
|
|
91
|
+
);
|
|
92
|
+
return /* @__PURE__ */ l(O, { children: [
|
|
93
|
+
E.map((e, o) => {
|
|
94
|
+
const m = {
|
|
95
|
+
"data-role": r.role,
|
|
96
|
+
"data-type": e?.type === "data-component" ? e.data.type : e?.type,
|
|
97
|
+
...L,
|
|
98
|
+
className: F
|
|
99
|
+
};
|
|
100
|
+
switch (e?.type) {
|
|
101
|
+
case "text":
|
|
102
|
+
return /* @__PURE__ */ t(d, { ...m, children: v(e.text || "") }, o);
|
|
103
|
+
case "data-component": {
|
|
104
|
+
const { type: i } = e.data;
|
|
105
|
+
switch (i) {
|
|
106
|
+
case "text":
|
|
107
|
+
return /* @__PURE__ */ t("div", { ...m, children: v(e.data.text || "") }, o);
|
|
108
|
+
default: {
|
|
109
|
+
const f = e.data, { name: s, props: g } = f, c = T?.[s];
|
|
110
|
+
return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(c ? N : te, { name: s, props: g, componentDef: c }) }, `${s}-${o}`);
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
case "data-artifact": {
|
|
115
|
+
const i = e.data, { name: f, type: s, artifactSummary: g } = i, c = _?.[s];
|
|
116
|
+
return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(c ? N : ae, { name: s, props: g, componentDef: c }) }, `${f}-${o}`);
|
|
117
|
+
}
|
|
118
|
+
case "summary-group": {
|
|
119
|
+
const i = $.get(e.groupKey) || {
|
|
120
|
+
isCompleted: !1
|
|
121
|
+
};
|
|
122
|
+
return /* @__PURE__ */ t(d, { ...m, children: /* @__PURE__ */ t(
|
|
123
|
+
U,
|
|
124
|
+
{
|
|
125
|
+
summaries: e.summaries || [],
|
|
126
|
+
isCompleted: i.isCompleted
|
|
127
|
+
}
|
|
128
|
+
) }, `${e.groupKey}-${o}`);
|
|
129
|
+
}
|
|
130
|
+
default:
|
|
131
|
+
return null;
|
|
132
|
+
}
|
|
133
|
+
}),
|
|
134
|
+
A && /* @__PURE__ */ t(V, {}),
|
|
135
|
+
j && /* @__PURE__ */ t(ee, {})
|
|
136
|
+
] });
|
|
137
|
+
};
|
|
138
|
+
export {
|
|
139
|
+
Ce as EmbeddedChatMessagePart
|
|
140
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),o=require("../../primitives/components/modal.cjs"),s=require("../utils.cjs"),l=require("./ui/recipes/button.cjs"),n=require("./ui/recipes/modal.cjs"),r=o.Modal,i=({className:t,...e})=>a.jsx(o.Overlay,{className:s.cn(n.modal({slot:"overlay"}),t),...e}),d=({className:t,...e})=>a.jsx(o.Content,{className:s.cn(n.modal({slot:"content"}),"w-[min(90vw,720px)]","has-[[data-dual-pane-search-expanded]]:w-[min(90vw,1000px)] transition-width duration-300",t),...e}),c=({className:t,...e})=>a.jsx(o.Close,{className:s.cn(n.modal({slot:"close"}),l.button({variant:"ghost",size:"xs"}),"relative inset-[unset] w-6 ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0","md:hidden",t),...e});exports.Close=c;exports.Content=d;exports.Overlay=i;exports.Root=r;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
3
|
+
import { Modal as l, Overlay as i, Content as n, Close as r } from "../../primitives/components/modal.js";
|
|
4
|
+
import { cn as e } from "../utils.js";
|
|
5
|
+
import { button as m } from "./ui/recipes/button.js";
|
|
6
|
+
import { modal as s } from "./ui/recipes/modal.js";
|
|
7
|
+
const M = l, C = ({
|
|
8
|
+
className: t,
|
|
9
|
+
...a
|
|
10
|
+
}) => /* @__PURE__ */ o(i, { className: e(s({ slot: "overlay" }), t), ...a }), h = ({
|
|
11
|
+
className: t,
|
|
12
|
+
...a
|
|
13
|
+
}) => /* @__PURE__ */ o(
|
|
14
|
+
n,
|
|
15
|
+
{
|
|
16
|
+
className: e(
|
|
17
|
+
s({ slot: "content" }),
|
|
18
|
+
"w-[min(90vw,720px)]",
|
|
19
|
+
// Dual pane
|
|
20
|
+
"has-[[data-dual-pane-search-expanded]]:w-[min(90vw,1000px)] transition-width duration-300",
|
|
21
|
+
t
|
|
22
|
+
),
|
|
23
|
+
...a
|
|
24
|
+
}
|
|
25
|
+
), w = ({
|
|
26
|
+
className: t,
|
|
27
|
+
...a
|
|
28
|
+
}) => /* @__PURE__ */ o(
|
|
29
|
+
r,
|
|
30
|
+
{
|
|
31
|
+
className: e(
|
|
32
|
+
s({ slot: "close" }),
|
|
33
|
+
m({ variant: "ghost", size: "xs" }),
|
|
34
|
+
"relative inset-[unset] w-6 ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0",
|
|
35
|
+
"md:hidden",
|
|
36
|
+
t
|
|
37
|
+
),
|
|
38
|
+
...a
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
export {
|
|
42
|
+
w as Close,
|
|
43
|
+
h as Content,
|
|
44
|
+
C as Overlay,
|
|
45
|
+
M as Root
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),t=require("../utils.cjs"),c=require("../../primitives/components/searchbar.cjs"),n=({className:e,...r})=>a.jsx(c.SearchBarContainer,{className:t.cn("md:min-w-[min(320px,100%)] w-full h-full min-h-9",e),...r}),s=({className:e,...r})=>a.jsx(c.SearchBarButton,{className:t.cn("rounded-md border px-3 min-w-0 min-h-9 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",e),...r}),o=({className:e,...r})=>a.jsx(c.SearchBarContentWrapper,{className:t.cn("flex items-center gap-2 min-w-0",e),...r}),h=({className:e,...r})=>a.jsx(c.SearchBarText,{className:t.cn("text-md text-gray-500 dark:text-white-alpha-600",e),...r}),i=({className:e,...r})=>a.jsx(c.SearchBarIcon,{className:t.cn("text-gray-500 dark:text-white-alpha-600 text-xl",e),...r}),l=({className:e,...r})=>a.jsx(c.SearchBarKbdWrapper,{className:t.cn("text-sm text-gray-400 dark:text-white-alpha-500 font-bold flex items-center gap-0.5",e),...r}),S=({className:e,...r})=>a.jsx(c.SearchBarKbdModifier,{className:t.cn("",e),...r}),d=({className:e,...r})=>a.jsx(c.SearchBarKbdShortcutKey,{className:t.cn("",e),...r});exports.SearchBarButton=s;exports.SearchBarContainer=n;exports.SearchBarContentWrapper=o;exports.SearchBarIcon=i;exports.SearchBarKbdModifier=S;exports.SearchBarKbdShortcutKey=d;exports.SearchBarKbdWrapper=l;exports.SearchBarText=h;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { cn as t } from "../utils.js";
|
|
4
|
+
import { SearchBarContainer as c, SearchBarButton as i, SearchBarContentWrapper as o, SearchBarText as n, SearchBarIcon as h, SearchBarKbdWrapper as s, SearchBarKbdModifier as m, SearchBarKbdShortcutKey as l } from "../../primitives/components/searchbar.js";
|
|
5
|
+
const p = ({
|
|
6
|
+
className: r,
|
|
7
|
+
...a
|
|
8
|
+
}) => /* @__PURE__ */ e(
|
|
9
|
+
c,
|
|
10
|
+
{
|
|
11
|
+
className: t("md:min-w-[min(320px,100%)] w-full h-full min-h-9", r),
|
|
12
|
+
...a
|
|
13
|
+
}
|
|
14
|
+
), x = ({
|
|
15
|
+
className: r,
|
|
16
|
+
...a
|
|
17
|
+
}) => /* @__PURE__ */ e(
|
|
18
|
+
i,
|
|
19
|
+
{
|
|
20
|
+
className: t(
|
|
21
|
+
"rounded-md border px-3 min-w-0 min-h-9 flex items-center justify-between gap-2 h-full w-full hover:border-gray-300 dark:hover:border-white-alpha-300 transition-colors",
|
|
22
|
+
r
|
|
23
|
+
),
|
|
24
|
+
...a
|
|
25
|
+
}
|
|
26
|
+
), f = ({
|
|
27
|
+
className: r,
|
|
28
|
+
...a
|
|
29
|
+
}) => /* @__PURE__ */ e(
|
|
30
|
+
o,
|
|
31
|
+
{
|
|
32
|
+
className: t("flex items-center gap-2 min-w-0", r),
|
|
33
|
+
...a
|
|
34
|
+
}
|
|
35
|
+
), b = ({
|
|
36
|
+
className: r,
|
|
37
|
+
...a
|
|
38
|
+
}) => /* @__PURE__ */ e(
|
|
39
|
+
n,
|
|
40
|
+
{
|
|
41
|
+
className: t("text-md text-gray-500 dark:text-white-alpha-600", r),
|
|
42
|
+
...a
|
|
43
|
+
}
|
|
44
|
+
), u = ({
|
|
45
|
+
className: r,
|
|
46
|
+
...a
|
|
47
|
+
}) => /* @__PURE__ */ e(
|
|
48
|
+
h,
|
|
49
|
+
{
|
|
50
|
+
className: t("text-gray-500 dark:text-white-alpha-600 text-xl", r),
|
|
51
|
+
...a
|
|
52
|
+
}
|
|
53
|
+
), K = ({
|
|
54
|
+
className: r,
|
|
55
|
+
...a
|
|
56
|
+
}) => /* @__PURE__ */ e(
|
|
57
|
+
s,
|
|
58
|
+
{
|
|
59
|
+
className: t(
|
|
60
|
+
"text-sm text-gray-400 dark:text-white-alpha-500 font-bold flex items-center gap-0.5",
|
|
61
|
+
r
|
|
62
|
+
),
|
|
63
|
+
...a
|
|
64
|
+
}
|
|
65
|
+
), w = ({
|
|
66
|
+
className: r,
|
|
67
|
+
...a
|
|
68
|
+
}) => /* @__PURE__ */ e(m, { className: t("", r), ...a }), v = ({
|
|
69
|
+
className: r,
|
|
70
|
+
...a
|
|
71
|
+
}) => /* @__PURE__ */ e(l, { className: t("", r), ...a });
|
|
72
|
+
export {
|
|
73
|
+
x as SearchBarButton,
|
|
74
|
+
p as SearchBarContainer,
|
|
75
|
+
f as SearchBarContentWrapper,
|
|
76
|
+
u as SearchBarIcon,
|
|
77
|
+
w as SearchBarKbdModifier,
|
|
78
|
+
v as SearchBarKbdShortcutKey,
|
|
79
|
+
K as SearchBarKbdWrapper,
|
|
80
|
+
b as SearchBarText
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),n=require("../inkeep.css.cjs"),o=require("../../primitives/atoms/shadow/context.cjs"),r=e=>t.jsx(o.InkeepShadow,{styles:n.default,...e});exports.Shadow=r;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
3
|
+
import t from "../inkeep.css.js";
|
|
4
|
+
import { InkeepShadow as e } from "../../primitives/atoms/shadow/context.js";
|
|
5
|
+
const i = (o) => /* @__PURE__ */ r(e, { styles: t, ...o });
|
|
6
|
+
export {
|
|
7
|
+
i as Shadow
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react/jsx-runtime"),r=require("../../primitives/components/sidebar-chat/index.cjs"),i=require("../utils.cjs"),o=require("./ui/recipes/button.cjs"),s=require("./ui/recipes/scrollable.cjs"),n=({className:t,...e})=>a.jsx(r.SidebarChatPrimitiveRoot,{...e,className:i.cn("w-[--width] h-full relative bg-white dark:bg-gray-dark-950","data-[position=left]:pr-1 data-[position=left]:border-r data-[position=left]:mr-1","data-[position=right]:pl-1 data-[position=right]:border-l data-[position=right]:ml-1","data-[state=open]:data-[position=left]:animate-sidebar-in-left","data-[state=open]:data-[position=right]:animate-sidebar-in-right","data-[state=closed]:data-[position=left]:animate-sidebar-out-left","data-[state=closed]:data-[position=right]:animate-sidebar-out-right",t)}),l=({className:t,...e})=>a.jsx(r.SidebarChatPrimitiveResizer,{className:i.cn("px-1 bg-transparent opacity-0 hover:opacity-100","cursor-ew-resize","absolute top-0 bottom-0 z-[1]",'[[data-position="left"]>&]:-right-1','[[data-position="right"]>&]:-left-1','after:content-[""] after:absolute after:top-0 after:bottom-0 after:w-0.5 after:bg-inkeep-primary-medium dark:after:bg-inkeep-primary-light [[data-position="right"]>&]:after:right-1 [[data-position="left"]>&]:after:left-1',"data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none","data-[state=open]:pointer-events-auto","transition-opacity duration-200",t),...e}),d=({className:t,...e})=>a.jsx(r.Header,{className:i.cn(s.scrollable({section:"header"}),"w-full flex flex-row items-center px-3 py-1.5","bg-white dark:bg-gray-dark-950","after:absolute","after:left-0","after:top-full","after:h-3","after:w-full","after:text-white","after:dark:text-gray-dark-950","after:bg-[linear-gradient(currentColor,_transparent)]","after:z-start",t),...e}),p=({className:t,...e})=>a.jsx(r.CloseButton,{className:i.cn(o.button({variant:"ghost",size:"xs"}),"relative inset-[unset] w-6 ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0",t),...e});exports.CloseButton=p;exports.Header=d;exports.Resizer=l;exports.Root=n;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
|
+
import { SidebarChatPrimitiveRoot as i, SidebarChatPrimitiveResizer as o, CloseButton as s, Header as n } from "../../primitives/components/sidebar-chat/index.js";
|
|
4
|
+
import { cn as r } from "../utils.js";
|
|
5
|
+
import { button as d } from "./ui/recipes/button.js";
|
|
6
|
+
import { scrollable as l } from "./ui/recipes/scrollable.js";
|
|
7
|
+
const g = ({
|
|
8
|
+
className: t,
|
|
9
|
+
...a
|
|
10
|
+
}) => /* @__PURE__ */ e(
|
|
11
|
+
i,
|
|
12
|
+
{
|
|
13
|
+
...a,
|
|
14
|
+
className: r(
|
|
15
|
+
"w-[--width] h-full relative bg-white dark:bg-gray-dark-950",
|
|
16
|
+
// For resizer
|
|
17
|
+
"data-[position=left]:pr-1 data-[position=left]:border-r data-[position=left]:mr-1",
|
|
18
|
+
"data-[position=right]:pl-1 data-[position=right]:border-l data-[position=right]:ml-1",
|
|
19
|
+
// Presence-based animations using data-state from the Presence component
|
|
20
|
+
"data-[state=open]:data-[position=left]:animate-sidebar-in-left",
|
|
21
|
+
"data-[state=open]:data-[position=right]:animate-sidebar-in-right",
|
|
22
|
+
"data-[state=closed]:data-[position=left]:animate-sidebar-out-left",
|
|
23
|
+
"data-[state=closed]:data-[position=right]:animate-sidebar-out-right",
|
|
24
|
+
t
|
|
25
|
+
)
|
|
26
|
+
}
|
|
27
|
+
), c = ({
|
|
28
|
+
className: t,
|
|
29
|
+
...a
|
|
30
|
+
}) => /* @__PURE__ */ e(
|
|
31
|
+
o,
|
|
32
|
+
{
|
|
33
|
+
className: r(
|
|
34
|
+
"px-1 bg-transparent opacity-0 hover:opacity-100",
|
|
35
|
+
"cursor-ew-resize",
|
|
36
|
+
"absolute top-0 bottom-0 z-[1]",
|
|
37
|
+
'[[data-position="left"]>&]:-right-1',
|
|
38
|
+
'[[data-position="right"]>&]:-left-1',
|
|
39
|
+
'after:content-[""] after:absolute after:top-0 after:bottom-0 after:w-0.5 after:bg-inkeep-primary-medium dark:after:bg-inkeep-primary-light [[data-position="right"]>&]:after:right-1 [[data-position="left"]>&]:after:left-1',
|
|
40
|
+
// Hide resizer when sidebar is closed using presence states
|
|
41
|
+
"data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none",
|
|
42
|
+
"data-[state=open]:pointer-events-auto",
|
|
43
|
+
"transition-opacity duration-200",
|
|
44
|
+
t
|
|
45
|
+
),
|
|
46
|
+
...a
|
|
47
|
+
}
|
|
48
|
+
), u = ({
|
|
49
|
+
className: t,
|
|
50
|
+
...a
|
|
51
|
+
}) => /* @__PURE__ */ e(
|
|
52
|
+
n,
|
|
53
|
+
{
|
|
54
|
+
className: r(
|
|
55
|
+
l({ section: "header" }),
|
|
56
|
+
"w-full flex flex-row items-center px-3 py-1.5",
|
|
57
|
+
"bg-white dark:bg-gray-dark-950",
|
|
58
|
+
"after:absolute",
|
|
59
|
+
"after:left-0",
|
|
60
|
+
"after:top-full",
|
|
61
|
+
"after:h-3",
|
|
62
|
+
"after:w-full",
|
|
63
|
+
"after:text-white",
|
|
64
|
+
"after:dark:text-gray-dark-950",
|
|
65
|
+
"after:bg-[linear-gradient(currentColor,_transparent)]",
|
|
66
|
+
"after:z-start",
|
|
67
|
+
t
|
|
68
|
+
),
|
|
69
|
+
...a
|
|
70
|
+
}
|
|
71
|
+
), x = ({
|
|
72
|
+
className: t,
|
|
73
|
+
...a
|
|
74
|
+
}) => /* @__PURE__ */ e(
|
|
75
|
+
s,
|
|
76
|
+
{
|
|
77
|
+
className: r(
|
|
78
|
+
d({ variant: "ghost", size: "xs" }),
|
|
79
|
+
"relative inset-[unset] w-6 ml-auto text-lg text-gray-500 dark:text-white-alpha-500 px-0",
|
|
80
|
+
t
|
|
81
|
+
),
|
|
82
|
+
...a
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
export {
|
|
86
|
+
x as CloseButton,
|
|
87
|
+
u as Header,
|
|
88
|
+
c as Resizer,
|
|
89
|
+
g as Root
|
|
90
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./recipes/button.cjs"),t=require("./recipes/link.cjs"),e=require("./recipes/markdown.cjs"),o=require("../../utils.cjs"),n={markdownH1:o.cn(e.heading({size:"lg"}),"mb-3"),markdownH2:o.cn(e.heading({size:"md"}),"mb-2"),markdownP:o.cn("mb-3 break-words whitespace-pre-wrap","[&+ol,&+li]:mt-0"),markdownLi:o.cn("[&_a]:break-words [&_a]:inline"),markdownUl:e.list({style:"unordered"}),markdownOl:o.cn(e.list({style:"ordered"}),"[inset-inline-start:var(--start,0px)]","[counter-reset:item_calc(var(--start,0)_-_1)]"),markdownLink:o.cn(t.link(),"text-inkeep-primary-stronger hover:text-inkeep-primary-strong","dark:text-inkeep-expanded-primary-100 dark:hover:text-inkeep-expanded-primary-300"),markdownSourceLink:e.sup(),markdownSup:e.sup(),markdownTable:e.table({slot:"root"}),markdownTh:e.table({slot:"th"}),markdownTd:e.table({slot:"td"}),markdownCode:e.code(),codeblockContainer:e.codeblock({slot:"container"}),codeblockHeader:e.codeblock({slot:"header"}),codeblockCopyButton:o.cn(r.button({}),e.codeblock({slot:"copyButton"})),codeblockHighlighterWrapper:o.cn(),codeblockHighlighter:e.codeblock({slot:"highlighter"}),codeblockCode:"font-mono",markdownInput:o.cn("mr-1")};exports.markdownStyles=n;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { button as d } from "./recipes/button.js";
|
|
3
|
+
import { link as i } from "./recipes/link.js";
|
|
4
|
+
import { codeblock as r, code as m, table as e, sup as t, list as n, heading as a } from "./recipes/markdown.js";
|
|
5
|
+
import { cn as o } from "../../utils.js";
|
|
6
|
+
const c = {
|
|
7
|
+
markdownH1: o(a({ size: "lg" }), "mb-3"),
|
|
8
|
+
markdownH2: o(a({ size: "md" }), "mb-2"),
|
|
9
|
+
markdownP: o("mb-3 break-words whitespace-pre-wrap", "[&+ol,&+li]:mt-0"),
|
|
10
|
+
markdownLi: o("[&_a]:break-words [&_a]:inline"),
|
|
11
|
+
markdownUl: n({ style: "unordered" }),
|
|
12
|
+
markdownOl: o(
|
|
13
|
+
n({ style: "ordered" }),
|
|
14
|
+
"[inset-inline-start:var(--start,0px)]",
|
|
15
|
+
"[counter-reset:item_calc(var(--start,0)_-_1)]"
|
|
16
|
+
),
|
|
17
|
+
markdownLink: o(
|
|
18
|
+
i(),
|
|
19
|
+
"text-inkeep-primary-stronger hover:text-inkeep-primary-strong",
|
|
20
|
+
"dark:text-inkeep-expanded-primary-100 dark:hover:text-inkeep-expanded-primary-300"
|
|
21
|
+
),
|
|
22
|
+
markdownSourceLink: t(),
|
|
23
|
+
markdownSup: t(),
|
|
24
|
+
markdownTable: e({ slot: "root" }),
|
|
25
|
+
markdownTh: e({ slot: "th" }),
|
|
26
|
+
markdownTd: e({ slot: "td" }),
|
|
27
|
+
markdownCode: m(),
|
|
28
|
+
codeblockContainer: r({ slot: "container" }),
|
|
29
|
+
codeblockHeader: r({ slot: "header" }),
|
|
30
|
+
codeblockCopyButton: o(d({}), r({ slot: "copyButton" })),
|
|
31
|
+
codeblockHighlighterWrapper: o(),
|
|
32
|
+
codeblockHighlighter: r({ slot: "highlighter" }),
|
|
33
|
+
codeblockCode: "font-mono",
|
|
34
|
+
markdownInput: o("mr-1")
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
c as markdownStyles
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),a=e.cva(["max-h-screen max-w-screen relative","grow-[5] mx-auto justify-self-center text-left"],{variants:{size:{default:["grow-0 justify-self-center self-center","m-auto max-h-[100vw] max-w-screen","md:w-[min(600px,100%)] md:h-[min(760px,100%)]","lg:w-[min(640px,100%)] lg:h-[min(800px,100%)]","2xl:w-[min(760px,100%)] 2xl:h-[min(900px,100%)]"],expand:["w-full h-full"],"shrink-vertically":["w-full h-auto self-start max-h-full"],"full-viewport":["fixed top-0 left-0 w-screen h-screen z-dropdown"]},variant:{"container-with-shadow":"shadow-[0_25px_50px_-12px_rgba(0,0,0,0.25)] dark:shadow-[none]","no-shadow":"shadow-[none]"}},defaultVariants:{size:"default",variant:"container-with-shadow"}});exports.aiChatPageWrapper=a;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cva as e } from "class-variance-authority";
|
|
3
|
+
const t = e(
|
|
4
|
+
["max-h-screen max-w-screen relative", "grow-[5] mx-auto justify-self-center text-left"],
|
|
5
|
+
{
|
|
6
|
+
variants: {
|
|
7
|
+
size: {
|
|
8
|
+
default: [
|
|
9
|
+
"grow-0 justify-self-center self-center",
|
|
10
|
+
"m-auto max-h-[100vw] max-w-screen",
|
|
11
|
+
"md:w-[min(600px,100%)] md:h-[min(760px,100%)]",
|
|
12
|
+
"lg:w-[min(640px,100%)] lg:h-[min(800px,100%)]",
|
|
13
|
+
"2xl:w-[min(760px,100%)] 2xl:h-[min(900px,100%)]"
|
|
14
|
+
],
|
|
15
|
+
expand: ["w-full h-full"],
|
|
16
|
+
"shrink-vertically": ["w-full h-auto self-start max-h-full"],
|
|
17
|
+
"full-viewport": ["fixed top-0 left-0 w-screen h-screen z-dropdown"]
|
|
18
|
+
},
|
|
19
|
+
variant: {
|
|
20
|
+
"container-with-shadow": "shadow-[0_25px_50px_-12px_rgba(0,0,0,0.25)] dark:shadow-[none]",
|
|
21
|
+
"no-shadow": "shadow-[none]"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
defaultVariants: {
|
|
25
|
+
size: "default",
|
|
26
|
+
variant: "container-with-shadow"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
export {
|
|
31
|
+
t as aiChatPageWrapper
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("class-variance-authority"),e=require("./button.cjs"),a=t.cva("",{variants:{slot:{root:["flex items-center pl-2","text-xs rounded-md h-6","bg-gray-300 dark:bg-white-alpha-200","min-w-0 w-fit"],icon:["mr-[0.5em]","text-gray-600 dark:text-white-alpha-600"],title:["overflow-hidden whitespace-nowrap text-ellipsis inline-block"],delete:[e.button({variant:"iconButton",size:"md"}),"h-4 px-1 min-w-[unset]","text-gray-600 dark:text-white-alpha-600","hover:bg-transparent hover:text-gray-700","dark:hover:text-white-alpha-500","[&_svg]:w-4 [&_svg]:h-4"]}}});exports.attachment=a;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cva as t } from "class-variance-authority";
|
|
3
|
+
import { button as e } from "./button.js";
|
|
4
|
+
const i = t("", {
|
|
5
|
+
variants: {
|
|
6
|
+
slot: {
|
|
7
|
+
root: [
|
|
8
|
+
"flex items-center pl-2",
|
|
9
|
+
"text-xs rounded-md h-6",
|
|
10
|
+
"bg-gray-300 dark:bg-white-alpha-200",
|
|
11
|
+
"min-w-0 w-fit"
|
|
12
|
+
],
|
|
13
|
+
icon: ["mr-[0.5em]", "text-gray-600 dark:text-white-alpha-600"],
|
|
14
|
+
title: ["overflow-hidden whitespace-nowrap text-ellipsis inline-block"],
|
|
15
|
+
delete: [
|
|
16
|
+
e({ variant: "iconButton", size: "md" }),
|
|
17
|
+
"h-4 px-1 min-w-[unset]",
|
|
18
|
+
"text-gray-600 dark:text-white-alpha-600",
|
|
19
|
+
"hover:bg-transparent hover:text-gray-700",
|
|
20
|
+
"dark:hover:text-white-alpha-500",
|
|
21
|
+
"[&_svg]:w-4 [&_svg]:h-4"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
i as attachment
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),a=e.cva(["inline-flex","items-center","justify-center","align-middle","select-none","relative","whitespace-nowrap","appearance-none","rounded-md","leading-[1.2]","transition-all","duration-300","cursor-pointer","font-semibold","focus:outline-none","focus:z-base","focus-visible:ring","focus-visible:ring-gray-500","dark:focus-visible:ring-white-alpha-900","focus-visible:ring-2","disabled:opacity-40","disabled:cursor-not-allowed","disabled:shadow-none"],{variants:{variant:{solid:["bg-gray-100 dark:bg-white-alpha-100","text-gray-800 dark:text-white-alpha-950","hover:bg-gray-200 dark:hover:bg-white-alpha-200","hover:disabled:bg-gray-100 dark:hover:disabled:bg-white-alpha-100","active:bg-gray-300 dark:active:bg-white-alpha-400"],iconButton:["px-1 text-gray-500 text-md","hover:text-inkeep-primary-strong","dark:text-gray-dark-200","dark:hover:text-inkeep-expanded-primary-300"],ghost:["text-gray-800 dark:text-white-alpha-950","hover:bg-gray-100 dark:hover:bg-white-alpha-100","active:bg-gray-200 dark:active:bg-white-alpha-200"],outline:["border dark:border-white-alpha-200","text-gray-600 dark:text-gray-200","hover:bg-gray-50 dark:hover:bg-white-alpha-100","active:bg-gray-50 dark:active:bg-white-alpha-100"]},size:{sm:"h-8 min-w-8 text-sm px-3",md:"h-10 min-w-10 text-md px-4",xs:"h-6 min-w-6 text-xs px-2"},preset:{neutralFilled:["bg-gray-1000 text-white hover:bg-gray-900 active:bg-gray-900","dark:bg-inkeep-expanded-primary-300 dark:text-gray-dark-950","dark:hover:bg-inkeep-expanded-primary-200","dark:active:bg-inkeep-expanded-primary-200"]}},defaultVariants:{size:"md"}});exports.button=a;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { cva as e } from "class-variance-authority";
|
|
3
|
+
const r = e(
|
|
4
|
+
[
|
|
5
|
+
// Base styles
|
|
6
|
+
"inline-flex",
|
|
7
|
+
"items-center",
|
|
8
|
+
"justify-center",
|
|
9
|
+
"align-middle",
|
|
10
|
+
"select-none",
|
|
11
|
+
"relative",
|
|
12
|
+
"whitespace-nowrap",
|
|
13
|
+
"appearance-none",
|
|
14
|
+
"rounded-md",
|
|
15
|
+
"leading-[1.2]",
|
|
16
|
+
"transition-all",
|
|
17
|
+
"duration-300",
|
|
18
|
+
"cursor-pointer",
|
|
19
|
+
"font-semibold",
|
|
20
|
+
// Focus styles
|
|
21
|
+
"focus:outline-none",
|
|
22
|
+
"focus:z-base",
|
|
23
|
+
"focus-visible:ring",
|
|
24
|
+
"focus-visible:ring-gray-500",
|
|
25
|
+
"dark:focus-visible:ring-white-alpha-900",
|
|
26
|
+
"focus-visible:ring-2",
|
|
27
|
+
// Disabled styles
|
|
28
|
+
"disabled:opacity-40",
|
|
29
|
+
"disabled:cursor-not-allowed",
|
|
30
|
+
"disabled:shadow-none"
|
|
31
|
+
],
|
|
32
|
+
{
|
|
33
|
+
variants: {
|
|
34
|
+
variant: {
|
|
35
|
+
solid: [
|
|
36
|
+
"bg-gray-100 dark:bg-white-alpha-100",
|
|
37
|
+
"text-gray-800 dark:text-white-alpha-950",
|
|
38
|
+
"hover:bg-gray-200 dark:hover:bg-white-alpha-200",
|
|
39
|
+
"hover:disabled:bg-gray-100 dark:hover:disabled:bg-white-alpha-100",
|
|
40
|
+
"active:bg-gray-300 dark:active:bg-white-alpha-400"
|
|
41
|
+
],
|
|
42
|
+
iconButton: [
|
|
43
|
+
"px-1 text-gray-500 text-md",
|
|
44
|
+
"hover:text-inkeep-primary-strong",
|
|
45
|
+
"dark:text-gray-dark-200",
|
|
46
|
+
"dark:hover:text-inkeep-expanded-primary-300"
|
|
47
|
+
],
|
|
48
|
+
ghost: [
|
|
49
|
+
"text-gray-800 dark:text-white-alpha-950",
|
|
50
|
+
"hover:bg-gray-100 dark:hover:bg-white-alpha-100",
|
|
51
|
+
"active:bg-gray-200 dark:active:bg-white-alpha-200"
|
|
52
|
+
],
|
|
53
|
+
outline: [
|
|
54
|
+
"border dark:border-white-alpha-200",
|
|
55
|
+
"text-gray-600 dark:text-gray-200",
|
|
56
|
+
"hover:bg-gray-50 dark:hover:bg-white-alpha-100",
|
|
57
|
+
"active:bg-gray-50 dark:active:bg-white-alpha-100"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
size: {
|
|
61
|
+
sm: "h-8 min-w-8 text-sm px-3",
|
|
62
|
+
md: "h-10 min-w-10 text-md px-4",
|
|
63
|
+
xs: "h-6 min-w-6 text-xs px-2"
|
|
64
|
+
},
|
|
65
|
+
preset: {
|
|
66
|
+
neutralFilled: [
|
|
67
|
+
"bg-gray-1000 text-white hover:bg-gray-900 active:bg-gray-900",
|
|
68
|
+
"dark:bg-inkeep-expanded-primary-300 dark:text-gray-dark-950",
|
|
69
|
+
"dark:hover:bg-inkeep-expanded-primary-200",
|
|
70
|
+
"dark:active:bg-inkeep-expanded-primary-200"
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
defaultVariants: {
|
|
75
|
+
size: "md"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
export {
|
|
80
|
+
r as button
|
|
81
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("class-variance-authority"),t=e.cva("",{variants:{slot:{root:["peer h-4 w-4 shrink-0 rounded-xs","border-2 border-inherit cursor-pointer","disabled:opacity-50","data-[state=checked]:bg-gray-1000","dark:data-[state=checked]:bg-white-alpha-950","data-[state=checked]:border-gray-1000","dark:data-[state=checked]:border-white-alpha-950","text-white data-[state=checked]:text-white","dark:data-[state=checked]:text-gray-1000"],indicator:["flex items-center justify-center","text-current animate-checkbox-check"]}}});exports.checkbox=t;
|