@inkeep/agents-ui 0.14.20 → 0.14.21
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/dist/color-mode/index.d.ts +21 -0
- package/dist/index.d.ts +1 -5103
- package/dist/primitives/atoms/avatars/ai.d.ts +3 -0
- package/dist/primitives/atoms/avatars/user.d.ts +3 -0
- package/dist/primitives/atoms/cmdk/command-score.d.ts +1 -0
- package/dist/primitives/atoms/cmdk/index.d.ts +460 -0
- package/dist/primitives/atoms/codeblock/index.d.ts +10 -0
- package/dist/primitives/atoms/custom-styles.d.ts +5 -0
- package/dist/primitives/atoms/dialog.d.ts +94 -0
- package/dist/primitives/atoms/error-boundary.d.ts +6 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.d.ts +6 -0
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +83 -0
- package/dist/primitives/atoms/icons/checkbox-icon.d.ts +1 -0
- package/dist/primitives/atoms/icons/collections/bi.d.ts +4 -0
- package/dist/primitives/atoms/icons/collections/fi.d.ts +2 -0
- package/dist/primitives/atoms/icons/collections/gr.d.ts +2 -0
- package/dist/primitives/atoms/icons/collections/io5.d.ts +34 -0
- package/dist/primitives/atoms/icons/collections/pi.d.ts +4 -0
- package/dist/primitives/atoms/icons/custom-icon.d.ts +6 -0
- package/dist/primitives/atoms/icons/generate-icon.d.ts +28 -0
- package/dist/primitives/atoms/icons/index.d.ts +2 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.d.ts +2 -0
- package/dist/primitives/atoms/link.d.ts +14 -0
- package/dist/primitives/atoms/markdown/components.d.ts +31 -0
- package/dist/primitives/atoms/markdown/index.d.ts +17 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.d.ts +1 -0
- package/dist/primitives/atoms/portal-with-theme.d.ts +2 -0
- package/dist/primitives/atoms/portal.d.ts +8 -0
- package/dist/primitives/atoms/select.d.ts +136 -0
- package/dist/primitives/atoms/shadow/context.d.ts +14 -0
- package/dist/primitives/atoms/shadow/create.d.ts +8 -0
- package/dist/primitives/atoms/shadow/index.d.ts +1 -0
- package/dist/primitives/atoms/shadow/root.d.ts +5 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.d.ts +2 -0
- package/dist/primitives/atoms/shadow/utils.d.ts +9 -0
- package/dist/primitives/components/chat-button.d.ts +18 -0
- package/dist/primitives/components/embedded-chat/chat-provider.d.ts +19 -0
- package/dist/primitives/components/embedded-chat/use-captcha.d.ts +13 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.d.ts +9 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +27 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-stream-processor.d.ts +28 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +27 -28
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +431 -0
- package/dist/primitives/components/embedded-chat.js +775 -776
- package/dist/primitives/components/embedded-search/search-provider.d.ts +21 -0
- package/dist/primitives/components/embedded-search/transform-results.d.ts +3 -0
- package/dist/primitives/components/embedded-search/url-query.d.ts +4 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.d.ts +19 -0
- package/dist/primitives/components/embedded-search/use-search-filter.d.ts +1 -0
- package/dist/primitives/components/embedded-search.d.ts +249 -0
- package/dist/primitives/components/factory.d.ts +19 -0
- package/dist/primitives/components/index.d.ts +10 -0
- package/dist/primitives/components/modal/modal-provider.d.ts +12 -0
- package/dist/primitives/components/modal/use-inkeep-modal.d.ts +7 -0
- package/dist/primitives/components/modal/widget-auto-focus.d.ts +2 -0
- package/dist/primitives/components/modal.d.ts +18 -0
- package/dist/primitives/components/presence.d.ts +8 -0
- package/dist/primitives/components/searchbar.d.ts +23 -0
- package/dist/primitives/components/sidebar-chat/index.d.ts +9 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.d.ts +5 -0
- package/dist/primitives/components/tagline-logo-icon.d.ts +1 -0
- package/dist/primitives/components/use-component-trigger.d.ts +5 -0
- package/dist/primitives/constants/search.d.ts +1 -0
- package/dist/primitives/hooks/index.d.ts +11 -0
- package/dist/primitives/hooks/use-boolean.d.ts +10 -0
- package/dist/primitives/hooks/use-component-classnames.d.ts +6 -0
- package/dist/primitives/hooks/use-container-size.d.ts +5 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.d.ts +3 -0
- package/dist/primitives/hooks/use-debounce.d.ts +1 -0
- package/dist/primitives/hooks/use-instant-update.d.ts +17 -0
- package/dist/primitives/hooks/use-is-mounted.d.ts +1 -0
- package/dist/primitives/hooks/use-media-query.d.ts +1 -0
- package/dist/primitives/hooks/use-resize-observer.d.ts +12 -0
- package/dist/primitives/hooks/use-scrolling-fades.d.ts +2 -0
- package/dist/primitives/hooks/use-settle-action.d.ts +3 -0
- package/dist/primitives/hooks/use-simple-scroll.d.ts +5 -0
- package/dist/primitives/hooks/use-streaming-events.d.ts +8 -0
- package/dist/primitives/index.d.ts +13 -0
- package/dist/primitives/providers/attachment-item-provider.d.ts +9 -0
- package/dist/primitives/providers/attachments-bar-provider.d.ts +30 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.d.ts +8 -0
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/providers/chat-form-provider.d.ts +26 -0
- package/dist/primitives/providers/config-provider.d.ts +25 -0
- package/dist/primitives/providers/feedback-item-provider.d.ts +10 -0
- package/dist/primitives/providers/feedback-provider.d.ts +16 -0
- package/dist/primitives/providers/form-field-provider.d.ts +15 -0
- package/dist/primitives/providers/help-menu-provider.d.ts +11 -0
- package/dist/primitives/providers/hover-popover-provider.d.ts +10 -0
- package/dist/primitives/providers/index.d.ts +17 -0
- package/dist/primitives/providers/markdown-provider.d.ts +9 -0
- package/dist/primitives/providers/message-attachments-provider.d.ts +13 -0
- package/dist/primitives/providers/message-provider.d.ts +10 -0
- package/dist/primitives/providers/root-provider.d.ts +8 -0
- package/dist/primitives/providers/search-events-provider.d.ts +8 -0
- package/dist/primitives/providers/sidebar-chat-provider.d.ts +83 -0
- package/dist/primitives/providers/source-item-provider.d.ts +12 -0
- package/dist/primitives/providers/theme-provider.d.ts +3 -0
- package/dist/primitives/providers/widget-provider.d.ts +10 -0
- package/dist/primitives/utils/component-ids.d.ts +572 -0
- package/dist/primitives/utils/compose-event-handlers.d.ts +3 -0
- package/dist/primitives/utils/compose-refs.d.ts +5 -0
- package/dist/primitives/utils/default-settings.d.ts +167 -0
- package/dist/primitives/utils/form.d.ts +3 -0
- package/dist/primitives/utils/generate-uid.d.ts +2 -0
- package/dist/primitives/utils/get-message-metadata.d.ts +8 -0
- package/dist/primitives/utils/get-source-icon.d.ts +2 -0
- package/dist/primitives/utils/highlight-emphasis.d.ts +4 -0
- package/dist/primitives/utils/merge-props.d.ts +7 -0
- package/dist/primitives/utils/misc.d.ts +12 -0
- package/dist/primitives/utils/split-props.d.ts +15 -0
- package/dist/react/chat-button.d.ts +14 -0
- package/dist/react/embedded-chat.d.ts +14 -0
- package/dist/react/embedded-search-and-chat.d.ts +40 -0
- package/dist/react/embedded-search-and-chat.impl.d.ts +9 -0
- package/dist/react/embedded-search.d.ts +17 -0
- package/dist/react/index.d.ts +12 -0
- package/dist/react/modal.chat.d.ts +6 -0
- package/dist/react/modal.d.ts +23 -0
- package/dist/react/modal.search-and-chat.d.ts +6 -0
- package/dist/react/modal.search.d.ts +6 -0
- package/dist/react/searchbar.d.ts +13 -0
- package/dist/react/sidebar-chat.d.ts +6 -0
- package/dist/react/utils.d.ts +6 -0
- package/dist/react/widget-toggle.d.ts +14 -0
- package/dist/styled/components/chat-button.d.ts +8 -0
- package/dist/styled/components/data-summary-group.d.ts +11 -0
- package/dist/styled/components/embedded-chat.d.ts +190 -0
- package/dist/styled/components/embedded-search/results-loading.d.ts +1 -0
- package/dist/styled/components/embedded-search.d.ts +73 -0
- package/dist/styled/components/index.d.ts +11 -0
- package/dist/styled/components/loading-indicator.d.ts +1 -0
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.d.ts +4 -0
- package/dist/styled/components/message.js +46 -47
- package/dist/styled/components/modal.d.ts +6 -0
- package/dist/styled/components/searchbar.d.ts +11 -0
- package/dist/styled/components/shadow.d.ts +3 -0
- package/dist/styled/components/sidebar-chat.d.ts +6 -0
- package/dist/styled/components/ui/markdown-styles.d.ts +23 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.d.ts +7 -0
- package/dist/styled/components/ui/recipes/attachment.d.ts +4 -0
- package/dist/styled/components/ui/recipes/button.d.ts +6 -0
- package/dist/styled/components/ui/recipes/checkbox.d.ts +4 -0
- package/dist/styled/components/ui/recipes/citation.d.ts +4 -0
- package/dist/styled/components/ui/recipes/icon.d.ts +2 -0
- package/dist/styled/components/ui/recipes/index.d.ts +15 -0
- package/dist/styled/components/ui/recipes/input.d.ts +5 -0
- package/dist/styled/components/ui/recipes/link.d.ts +2 -0
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -1
- package/dist/styled/components/ui/recipes/markdown.d.ts +16 -0
- package/dist/styled/components/ui/recipes/markdown.js +1 -1
- package/dist/styled/components/ui/recipes/modal.d.ts +4 -0
- package/dist/styled/components/ui/recipes/popover.d.ts +4 -0
- package/dist/styled/components/ui/recipes/scrollable.d.ts +4 -0
- package/dist/styled/components/ui/recipes/select.d.ts +4 -0
- package/dist/styled/components/ui/recipes/skeleton.d.ts +2 -0
- package/dist/styled/components/ui/recipes/widget-toggle.d.ts +4 -0
- package/dist/styled/index.d.ts +2 -0
- package/dist/styled/utils.d.ts +4 -0
- package/dist/theme/color-utils.d.ts +1 -0
- package/dist/theme/colors.d.ts +104 -0
- package/dist/theme/index.d.ts +125 -0
- package/dist/theme/utils/create-css-variables.d.ts +2 -0
- package/dist/theme/utils/generate-theme-variables.d.ts +3 -0
- package/dist/types/color-mode.d.ts +44 -0
- package/dist/types/config/ai.d.ts +243 -0
- package/dist/types/config/base.d.ts +344 -0
- package/dist/types/config/components.d.ts +10 -0
- package/dist/types/config/filters.d.ts +17 -0
- package/dist/types/config/index.d.ts +36 -0
- package/dist/types/config/modal.d.ts +33 -0
- package/dist/types/config/search.d.ts +95 -0
- package/dist/types/config/settings/actions.d.ts +37 -0
- package/dist/types/config/settings/form.d.ts +128 -0
- package/dist/types/config/settings/jsonschema.d.ts +105 -0
- package/dist/types/config/settings/workflow.d.ts +86 -0
- package/dist/types/events.d.ts +173 -0
- package/dist/types/icons/built-in.d.ts +1 -0
- package/dist/types/icons/custom.d.ts +29 -0
- package/dist/types/icons/index.d.ts +2 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/js/index.d.ts +54 -0
- package/dist/types/message.d.ts +43 -0
- package/dist/types/shadow.d.ts +15 -0
- package/dist/types/sources.d.ts +108 -0
- package/dist/types/theme.d.ts +25 -0
- package/dist/types/widget.d.ts +28 -0
- package/package.json +2 -4
- package/dist/index.d.cts +0 -5103
- package/dist/types/message.cjs +0 -1
- package/dist/types/message.js +0 -5
- package/dist/types/types.d.cts +0 -1758
- package/dist/types/types.d.ts +0 -1758
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SidebarChatPrimitive } from '../../primitives';
|
|
2
|
+
declare const SidebarChatRoot: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Root>) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
declare const SidebarChatResizer: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Resizer>) => import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
declare const SidebarChatHeader: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.Header>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
declare const SidebarChatCloseButton: ({ className, ...props }: React.ComponentPropsWithRef<typeof SidebarChatPrimitive.CloseButton>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export { SidebarChatRoot as Root, SidebarChatResizer as Resizer, SidebarChatCloseButton as CloseButton, SidebarChatHeader as Header, };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare const markdownStyles: {
|
|
2
|
+
markdownHr: string;
|
|
3
|
+
markdownH1: string;
|
|
4
|
+
markdownH2: string;
|
|
5
|
+
markdownP: string;
|
|
6
|
+
markdownLi: string;
|
|
7
|
+
markdownUl: string;
|
|
8
|
+
markdownOl: string;
|
|
9
|
+
markdownLink: string;
|
|
10
|
+
markdownSourceLink: string;
|
|
11
|
+
markdownSup: string;
|
|
12
|
+
markdownTable: string;
|
|
13
|
+
markdownTh: string;
|
|
14
|
+
markdownTd: string;
|
|
15
|
+
markdownCode: string;
|
|
16
|
+
codeblockContainer: string;
|
|
17
|
+
codeblockHeader: string;
|
|
18
|
+
codeblockCopyButton: string;
|
|
19
|
+
codeblockHighlighterWrapper: string;
|
|
20
|
+
codeblockHighlighter: string;
|
|
21
|
+
codeblockCode: string;
|
|
22
|
+
markdownInput: string;
|
|
23
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
3
|
+
export declare const aiChatPageWrapper: (props?: ({
|
|
4
|
+
size?: "default" | "expand" | "shrink-vertically" | "full-viewport" | null | undefined;
|
|
5
|
+
variant?: "container-with-shadow" | "no-shadow" | null | undefined;
|
|
6
|
+
} & ClassProp) | undefined) => string;
|
|
7
|
+
export type AiChatPageWrapperVariants = VariantProps<typeof aiChatPageWrapper>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
export declare const button: (props?: ({
|
|
3
|
+
variant?: "solid" | "iconButton" | "ghost" | "outline" | null | undefined;
|
|
4
|
+
size?: "sm" | "md" | "xs" | null | undefined;
|
|
5
|
+
preset?: "neutralFilled" | null | undefined;
|
|
6
|
+
} & ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
export declare const citation: (props?: ({
|
|
3
|
+
slot?: "root" | "icon" | "title" | "indicator" | "breadcrumbs" | "breadcrumbsIcon" | "tag" | "description" | "descriptionPart" | null | undefined;
|
|
4
|
+
} & ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from './ai-chat-page-wrapper';
|
|
2
|
+
export * from './attachment';
|
|
3
|
+
export * from './button';
|
|
4
|
+
export * from './checkbox';
|
|
5
|
+
export * from './citation';
|
|
6
|
+
export * from './icon';
|
|
7
|
+
export * from './input';
|
|
8
|
+
export * from './link';
|
|
9
|
+
export * from './markdown';
|
|
10
|
+
export * from './modal';
|
|
11
|
+
export * from './popover';
|
|
12
|
+
export * from './scrollable';
|
|
13
|
+
export * from './select';
|
|
14
|
+
export * from './skeleton';
|
|
15
|
+
export * from './widget-toggle';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("tracking-tight font-semibold",{variants:{size:{lg:"text-xl",md:"text-md"}},defaultVariants:{size:"md"}}),t=r.cva("text-2sm ms-[1em] break-words pb-3 pl-7 relative [&_li]:mb-1",{variants:{style:{ordered:"list-decimal [counter-increment:item]",unordered:"list-[initial]"}}}),a=r.cva("",{variants:{slot:{root:"w-full border-collapse [font-variant-numeric:lining-nums_tabular-nums]",th:["font-heading font-bold uppercase tracking-wider text-start","data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","text-gray-600 dark:text-gray-400","px-6 py-3 leading-4 text-xs"],td:["text-start data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","px-6 py-4 leading-5"]},size:{md:""}}}),i=r.cva(["inline-flex items-center justify-center min-w-0 mr-1 text-1xs","[&>:first-child]:px-2 [&>:first-child]:py-[1px] [&>:first-child]:rounded-full [&>:first-child]:h-5","[&>:first-child]:bg-gray-100 [&>:first-child]:dark:bg-white-alpha-100","[&>:first-child]:text-gray-700 [&>:first-child]:dark:text-white-alpha-700","[&>:first-child]:inline-flex [&>:first-child]:items-center [&>:first-child]:justify-center [&>:first-child]:min-w-0 [&>:first-child]:max-w-48","[&>:first-child]:overflow-hidden [&>:first-child_*]:truncate","[&_a]:cursor-pointer [&_a]:transition-colors [&_a]:no-underline","[&_a]:hover:bg-inkeep-expanded-primary-100 [&_a]:dark:hover:bg-white-alpha-200","[&_a]:hover:text-inkeep-primary-strong [&_a]:dark:hover:text-inkeep-expanded-primary-300","[&_a]:hover:no-underline"]),n=r.cva(["bg-inkeep-primary-medium text-inkeep-primary-text-color-on-primary","[overflow-wrap:anywhere] min-w-0 py-[.2rem] my-[.1rem]","px-[.4rem] rounded-[6px] [font-size:85%!important]","font-semibold inline-block","font-mono "]),o=r.cva("",{variants:{slot:{container:"overflow-y-auto mb-3",header:["flex items-center justify-between","bg-gray-50 dark:bg-gray-dark-800","text-gray-600 dark:text-gray-400","mb-0 leading-[1.25] px-2 text-xs","transition-all duration-200 ease-in-out","rounded-[6px_6px_0_0]"],copyButton:["px-0 bg-inherit text-inherit","hover:text-gray-800 dark:text-white-alpha-700 dark:hover:text-white-alpha-950","dark:hover:bg-transparent h-8 w-8 min-h-8 min-w-8 text-sm","data-[copied]:text-inkeep-primary-medium"],highlighter:["text-1sm overflow-x-auto","rounded-[0_0_6px_6px]","p-[1em] whitespace-pre","m-[0px_0px_0.5em]","bg-gray-50 dark:bg-gray-dark-900","[scrollbar-width:thin]","[--scrollbar-color:var(--color-gray-300)]","dark:[--scrollbar-color:var(--color-gray-dark-600)]","[scrollbar-color:var(--scrollbar-color)_transparent]"]}}});exports.code=n;exports.codeblock=o;exports.heading=e;exports.list=t;exports.sup=i;exports.table=a;
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("class-variance-authority"),e=r.cva("tracking-tight font-semibold",{variants:{size:{lg:"text-xl",md:"text-md"}},defaultVariants:{size:"md"}}),t=r.cva("text-2sm ms-[1em] break-words pb-3 pl-7 relative [&_li]:mb-1",{variants:{style:{ordered:"list-decimal [counter-increment:item]",unordered:"list-[initial]"}}}),a=r.cva("",{variants:{slot:{root:"w-full border-collapse [font-variant-numeric:lining-nums_tabular-nums]",th:["font-heading font-bold uppercase tracking-wider text-start","data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","text-gray-600 dark:text-gray-400","px-6 py-3 leading-4 text-xs"],td:["text-start data-[is-numeric=true]:text-end","border-b border-gray-100 dark:border-gray-700","px-6 py-4 leading-5"]},size:{md:""}}}),i=r.cva(["inline-flex items-center justify-center min-w-0 mr-1 text-1xs","[&>:first-child]:px-2 [&>:first-child]:py-[1px] [&>:first-child]:rounded-full [&>:first-child]:h-5","[&>:first-child]:bg-gray-100 [&>:first-child]:dark:bg-white-alpha-100","[&>:first-child]:text-gray-700 [&>:first-child]:dark:text-white-alpha-700","[&>:first-child]:inline-flex [&>:first-child]:items-center [&>:first-child]:justify-center [&>:first-child]:min-w-0 [&>:first-child]:max-w-48","[&>:first-child]:overflow-hidden [&>:first-child_*]:truncate","[&_a]:cursor-pointer [&_a]:transition-colors [&_a]:no-underline","[&_a]:hover:bg-inkeep-expanded-primary-100 [&_a]:dark:hover:bg-white-alpha-200","[&_a]:hover:text-inkeep-primary-strong [&_a]:dark:hover:text-inkeep-expanded-primary-300","[&_a]:hover:no-underline"]),n=r.cva(["bg-inkeep-primary-medium text-inkeep-primary-text-color-on-primary","[overflow-wrap:anywhere] min-w-0 py-[.2rem] my-[.1rem]","px-[.4rem] rounded-[6px] [font-size:85%!important]","font-semibold inline-block","font-mono "]),o=r.cva("",{variants:{slot:{container:"overflow-y-auto mb-3",header:["flex items-center justify-between","bg-gray-50 dark:bg-gray-dark-800","text-gray-600 dark:text-gray-400","mb-0 leading-[1.25] px-2 text-xs","transition-all duration-200 ease-in-out","rounded-[6px_6px_0_0]"],copyButton:["px-0 bg-inherit text-inherit","hover:text-gray-800 dark:text-white-alpha-700 dark:hover:text-white-alpha-950","dark:hover:bg-transparent h-8 w-8 min-h-8 min-w-8 text-sm","data-[copied]:text-inkeep-primary-medium"],highlighter:["text-1sm overflow-x-auto whitespace-pre-wrap","rounded-[0_0_6px_6px]","p-[1em] whitespace-pre","m-[0px_0px_0.5em]","bg-gray-50 dark:bg-gray-dark-900","[scrollbar-width:thin]","[--scrollbar-color:var(--color-gray-300)]","dark:[--scrollbar-color:var(--color-gray-dark-600)]","[scrollbar-color:var(--scrollbar-color)_transparent]"]}}});exports.code=n;exports.codeblock=o;exports.heading=e;exports.list=t;exports.sup=i;exports.table=a;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ClassProp } from 'class-variance-authority/types';
|
|
2
|
+
export declare const heading: (props?: ({
|
|
3
|
+
size?: "md" | "lg" | null | undefined;
|
|
4
|
+
} & ClassProp) | undefined) => string;
|
|
5
|
+
export declare const list: (props?: ({
|
|
6
|
+
style?: "ordered" | "unordered" | null | undefined;
|
|
7
|
+
} & ClassProp) | undefined) => string;
|
|
8
|
+
export declare const table: (props?: ({
|
|
9
|
+
slot?: "root" | "th" | "td" | null | undefined;
|
|
10
|
+
size?: "md" | null | undefined;
|
|
11
|
+
} & ClassProp) | undefined) => string;
|
|
12
|
+
export declare const sup: (props?: ClassProp | undefined) => string;
|
|
13
|
+
export declare const code: (props?: ClassProp | undefined) => string;
|
|
14
|
+
export declare const codeblock: (props?: ({
|
|
15
|
+
slot?: "container" | "header" | "copyButton" | "highlighter" | null | undefined;
|
|
16
|
+
} & ClassProp) | undefined) => string;
|
|
@@ -80,7 +80,7 @@ const t = r("tracking-tight font-semibold", {
|
|
|
80
80
|
"data-[copied]:text-inkeep-primary-medium"
|
|
81
81
|
],
|
|
82
82
|
highlighter: [
|
|
83
|
-
"text-1sm overflow-x-auto",
|
|
83
|
+
"text-1sm overflow-x-auto whitespace-pre-wrap",
|
|
84
84
|
"rounded-[0_0_6px_6px]",
|
|
85
85
|
"p-[1em] whitespace-pre",
|
|
86
86
|
"m-[0px_0px_0.5em]",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function getTextColorBasedOnBgColor(bgColor: string, lightColor: string, darkColor: string): string;
|
|
@@ -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,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,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 {};
|