@svadmin/ai-elements 0.5.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -53
- package/THIRD_PARTY_NOTICES.md +67 -6
- package/dist/ai.css +149 -2740
- package/dist/ai.theme.css +1 -2771
- package/dist/class-properties.generated.d.ts +1 -0
- package/dist/class-properties.generated.js +2 -0
- package/dist/classnames.d.ts +8 -0
- package/dist/classnames.js +26 -0
- package/dist/components/AICommandBar.svelte +6 -4
- package/dist/components/ChatDialog.svelte +102 -125
- package/dist/components/ChatDialog.svelte.d.ts +3 -9
- package/dist/components/Conversation.svelte +34 -10
- package/dist/components/ConversationContent.svelte +1 -1
- package/dist/components/ConversationScrollButton.svelte +0 -1
- package/dist/components/CopilotPanel.svelte +8 -6
- package/dist/components/Message.svelte +1 -1
- package/dist/components/MessageActions.svelte +1 -1
- package/dist/components/MessageContent.svelte +1 -1
- package/dist/components/MessageToolbar.svelte +1 -1
- package/dist/components/Response.svelte +32 -12
- package/dist/components/Response.svelte.d.ts +3 -3
- package/dist/components/Tool.svelte +13 -13
- package/dist/components/Tool.svelte.d.ts +1 -1
- package/dist/components/action/Action.svelte +3 -1
- package/dist/components/artifact/ArtifactAction.svelte +3 -1
- package/dist/components/attachments/Attachment.svelte +4 -2
- package/dist/components/attachments/Attachments.svelte +3 -1
- package/dist/components/attachments/types.js +3 -2
- package/dist/components/audio-player/AudioPlayer.svelte.d.ts +1 -1
- package/dist/components/canvas/Canvas.svelte +1 -1
- package/dist/components/checkpoint/index.d.ts +2 -2
- package/dist/components/code/index.d.ts +9 -1
- package/dist/components/code/index.js +8 -1
- package/dist/components/code-block/CodeBlockLanguageSelector.svelte.d.ts +1 -1
- package/dist/components/code-block/highlight.js +11 -10
- package/dist/components/commit/Commit.svelte +23 -2
- package/dist/components/commit/CommitActions.svelte +2 -11
- package/dist/components/commit/CommitCopyButton.svelte +1 -1
- package/dist/components/commit/CommitHeader.svelte +12 -2
- package/dist/components/commit/context.svelte.d.ts +6 -0
- package/dist/components/commit/context.svelte.js +14 -0
- package/dist/components/context/Context.svelte +6 -4
- package/dist/components/context/TokensWithCost.svelte +2 -1
- package/dist/components/edge/Animated.svelte +6 -6
- package/dist/components/edge/Temporary.svelte +6 -5
- package/dist/components/file-tree/FileTree.svelte +7 -5
- package/dist/components/jsx-preview/parser.js +10 -10
- package/dist/components/message/MessageAction.svelte +3 -1
- package/dist/components/mic-selector/MicSelector.svelte.d.ts +1 -1
- package/dist/components/model-selector/ModelSelectorDialog.svelte +3 -1
- package/dist/components/open-in-chat/OpenInChatGPT.svelte +3 -1
- package/dist/components/open-in-chat/OpenInClaude.svelte +3 -1
- package/dist/components/open-in-chat/OpenInCursor.svelte +3 -1
- package/dist/components/open-in-chat/OpenInGitHub.svelte +3 -1
- package/dist/components/open-in-chat/OpenInScira.svelte +3 -1
- package/dist/components/open-in-chat/OpenInT3.svelte +3 -1
- package/dist/components/open-in-chat/OpenInv0.svelte +3 -1
- package/dist/components/package-info/PackageInfo.svelte +3 -1
- package/dist/components/prompt-input/PromptInput.svelte +8 -18
- package/dist/components/prompt-input/PromptInputCommand.svelte +2 -1
- package/dist/components/prompt-input/PromptInputSelect.svelte.d.ts +1 -1
- package/dist/components/prompt-input/PromptInputSubmit.svelte +5 -18
- package/dist/components/prompt-input/PromptInputTextarea.svelte +6 -11
- package/dist/components/prompt-input/context.svelte.d.ts +1 -8
- package/dist/components/prompt-input/files.js +3 -2
- package/dist/components/question/Question.svelte +3 -1
- package/dist/components/schema-display/SchemaDisplay.svelte +4 -2
- package/dist/components/schema-display/SchemaDisplayParameter.svelte +14 -1
- package/dist/components/schema-display/SchemaDisplayProperty.svelte +16 -1
- package/dist/components/snippet/index.d.ts +3 -3
- package/dist/components/stack-trace/StackTrace.svelte +7 -5
- package/dist/components/suggestion/index.d.ts +1 -1
- package/dist/components/terminal/Terminal.svelte +4 -2
- package/dist/components/terminal/ansi.js +9 -6
- package/dist/components/test-results/Test.svelte +1 -1
- package/dist/components/test-results/TestResults.svelte +1 -1
- package/dist/components/test-results/context.svelte.d.ts +1 -1
- package/dist/components/tool/ToolContent.svelte +1 -1
- package/dist/components/tool/ToolHeader.svelte +5 -5
- package/dist/components/tool/ToolInput.svelte +2 -4
- package/dist/components/tool/ToolOutput.svelte +2 -4
- package/dist/components/tool/ToolStatusBadge.svelte +2 -3
- package/dist/components/voice-selector/VoiceSelector.svelte +2 -1
- package/dist/components/voice-selector/VoiceSelector.svelte.d.ts +2 -2
- package/dist/components/voice-selector/context.svelte.d.ts +2 -1
- package/dist/components/web-preview/WebPreview.svelte +4 -3
- package/dist/contracts.d.ts +2 -2
- package/dist/generated-components.d.ts +15 -1
- package/dist/generated-components.js +20 -1
- package/dist/internal/Tooltip.svelte +2 -1
- package/dist/parity-manifest.d.ts +0 -1
- package/dist/parity-manifest.js +0 -97
- package/dist/utilities.css +3172 -0
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/package.json +37 -22
- package/vendor/streamdown/AnimatedText.svelte +93 -0
- package/vendor/streamdown/AnimatedText.svelte.d.ts +6 -0
- package/vendor/streamdown/Block.svelte +96 -0
- package/vendor/streamdown/Block.svelte.d.ts +11 -0
- package/vendor/streamdown/Elements/Alert.svelte +69 -0
- package/vendor/streamdown/Elements/Alert.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/Citation.svelte +260 -0
- package/vendor/streamdown/Elements/Citation.svelte.d.ts +7 -0
- package/vendor/streamdown/Elements/Code.svelte +226 -0
- package/vendor/streamdown/Elements/Code.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/Element.svelte +574 -0
- package/vendor/streamdown/Elements/Element.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/FootnoteRef.svelte +30 -0
- package/vendor/streamdown/Elements/FootnoteRef.svelte.d.ts +7 -0
- package/vendor/streamdown/Elements/Footnotes.svelte +54 -0
- package/vendor/streamdown/Elements/Footnotes.svelte.d.ts +7 -0
- package/vendor/streamdown/Elements/Image.svelte +200 -0
- package/vendor/streamdown/Elements/Image.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/Link.svelte +220 -0
- package/vendor/streamdown/Elements/Link.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/LinkSafetyModal.svelte +121 -0
- package/vendor/streamdown/Elements/LinkSafetyModal.svelte.d.ts +4 -0
- package/vendor/streamdown/Elements/Math.svelte +100 -0
- package/vendor/streamdown/Elements/Math.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/Mermaid.svelte +455 -0
- package/vendor/streamdown/Elements/Mermaid.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/MermaidDownload.svelte +145 -0
- package/vendor/streamdown/Elements/MermaidDownload.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/Slot.svelte +23 -0
- package/vendor/streamdown/Elements/Slot.svelte.d.ts +10 -0
- package/vendor/streamdown/Elements/Table.svelte +195 -0
- package/vendor/streamdown/Elements/Table.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/TableDownload.svelte +221 -0
- package/vendor/streamdown/Elements/TableDownload.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/fallbacks/CodeFallback.svelte +41 -0
- package/vendor/streamdown/Elements/fallbacks/CodeFallback.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/fallbacks/MathFallback.svelte +35 -0
- package/vendor/streamdown/Elements/fallbacks/MathFallback.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/fallbacks/MermaidFallback.svelte +36 -0
- package/vendor/streamdown/Elements/fallbacks/MermaidFallback.svelte.d.ts +9 -0
- package/vendor/streamdown/Elements/fallbacks/index.d.ts +3 -0
- package/vendor/streamdown/Elements/fallbacks/index.js +3 -0
- package/vendor/streamdown/Elements/icons.d.ts +31 -0
- package/vendor/streamdown/Elements/icons.js +200 -0
- package/vendor/streamdown/Elements/index.d.ts +8 -0
- package/vendor/streamdown/Elements/index.js +8 -0
- package/vendor/streamdown/Elements/popover.svelte.d.ts +8 -0
- package/vendor/streamdown/Elements/popover.svelte.js +45 -0
- package/vendor/streamdown/Elements/stepperState.svelte.d.ts +36 -0
- package/vendor/streamdown/Elements/stepperState.svelte.js +92 -0
- package/vendor/streamdown/IconProvider.svelte +11 -0
- package/vendor/streamdown/IconProvider.svelte.d.ts +30 -0
- package/vendor/streamdown/LICENSE +202 -0
- package/vendor/streamdown/PluginProvider.svelte +11 -0
- package/vendor/streamdown/PluginProvider.svelte.d.ts +30 -0
- package/vendor/streamdown/README.svadmin.md +5 -0
- package/vendor/streamdown/Streamdown.svelte +447 -0
- package/vendor/streamdown/Streamdown.svelte.d.ts +25 -0
- package/vendor/streamdown/block/BlockTokens.svelte +45 -0
- package/vendor/streamdown/block/BlockTokens.svelte.d.ts +9 -0
- package/vendor/streamdown/block/html.d.ts +14 -0
- package/vendor/streamdown/block/html.js +27 -0
- package/vendor/streamdown/block/text.d.ts +10 -0
- package/vendor/streamdown/block/text.js +31 -0
- package/vendor/streamdown/context-key.d.ts +1 -0
- package/vendor/streamdown/context-key.js +1 -0
- package/vendor/streamdown/context.svelte.d.ts +24 -0
- package/vendor/streamdown/context.svelte.js +75 -0
- package/vendor/streamdown/contracts/plugins.d.ts +26 -0
- package/vendor/streamdown/contracts/plugins.js +1 -0
- package/vendor/streamdown/contracts/streamdown.d.ts +374 -0
- package/vendor/streamdown/contracts/streamdown.js +29 -0
- package/vendor/streamdown/detect-direction.d.ts +1 -0
- package/vendor/streamdown/detect-direction.js +1 -0
- package/vendor/streamdown/icon-context.d.ts +36 -0
- package/vendor/streamdown/icon-context.js +52 -0
- package/vendor/streamdown/incomplete-code.d.ts +6 -0
- package/vendor/streamdown/incomplete-code.js +23 -0
- package/vendor/streamdown/index.d.ts +22 -0
- package/vendor/streamdown/index.js +20 -0
- package/vendor/streamdown/markdown-parse-cache.d.ts +37 -0
- package/vendor/streamdown/markdown-parse-cache.js +109 -0
- package/vendor/streamdown/markdown.d.ts +21 -0
- package/vendor/streamdown/markdown.js +214 -0
- package/vendor/streamdown/marked/index.d.ts +44 -0
- package/vendor/streamdown/marked/index.js +228 -0
- package/vendor/streamdown/marked/marked-alert.d.ts +13 -0
- package/vendor/streamdown/marked/marked-alert.js +47 -0
- package/vendor/streamdown/marked/marked-align.d.ts +10 -0
- package/vendor/streamdown/marked/marked-align.js +45 -0
- package/vendor/streamdown/marked/marked-br.d.ts +6 -0
- package/vendor/streamdown/marked/marked-br.js +15 -0
- package/vendor/streamdown/marked/marked-citations.d.ts +8 -0
- package/vendor/streamdown/marked/marked-citations.js +53 -0
- package/vendor/streamdown/marked/marked-cjk.d.ts +2 -0
- package/vendor/streamdown/marked/marked-cjk.js +165 -0
- package/vendor/streamdown/marked/marked-dl.d.ts +23 -0
- package/vendor/streamdown/marked/marked-dl.js +44 -0
- package/vendor/streamdown/marked/marked-footnotes.d.ts +26 -0
- package/vendor/streamdown/marked/marked-footnotes.js +101 -0
- package/vendor/streamdown/marked/marked-hr.d.ts +6 -0
- package/vendor/streamdown/marked/marked-hr.js +18 -0
- package/vendor/streamdown/marked/marked-list.d.ts +31 -0
- package/vendor/streamdown/marked/marked-list.js +330 -0
- package/vendor/streamdown/marked/marked-math.d.ts +13 -0
- package/vendor/streamdown/marked/marked-math.js +129 -0
- package/vendor/streamdown/marked/marked-mdx.d.ts +12 -0
- package/vendor/streamdown/marked/marked-mdx.js +124 -0
- package/vendor/streamdown/marked/marked-subsup.d.ts +22 -0
- package/vendor/streamdown/marked/marked-subsup.js +40 -0
- package/vendor/streamdown/marked/marked-table.d.ts +80 -0
- package/vendor/streamdown/marked/marked-table.js +527 -0
- package/vendor/streamdown/plugin-context.d.ts +19 -0
- package/vendor/streamdown/plugin-context.js +40 -0
- package/vendor/streamdown/plugins/cjk-shared.d.ts +1 -0
- package/vendor/streamdown/plugins/cjk-shared.js +1 -0
- package/vendor/streamdown/plugins.d.ts +19 -0
- package/vendor/streamdown/plugins.js +107 -0
- package/vendor/streamdown/provenance.json +229 -0
- package/vendor/streamdown/remend.d.ts +2 -0
- package/vendor/streamdown/remend.js +1 -0
- package/vendor/streamdown/security/html.d.ts +19 -0
- package/vendor/streamdown/security/html.js +329 -0
- package/vendor/streamdown/security/preprocess-custom-tags.d.ts +1 -0
- package/vendor/streamdown/security/preprocess-custom-tags.js +20 -0
- package/vendor/streamdown/security/preprocess-literal-tag-content.d.ts +1 -0
- package/vendor/streamdown/security/preprocess-literal-tag-content.js +16 -0
- package/vendor/streamdown/security/types.d.ts +1 -0
- package/vendor/streamdown/security/types.js +1 -0
- package/vendor/streamdown/site/SiteHeader.svelte +94 -0
- package/vendor/streamdown/site/SiteHeader.svelte.d.ts +6 -0
- package/vendor/streamdown/site/home/HomeDemo.svelte +122 -0
- package/vendor/streamdown/site/home/HomeDemo.svelte.d.ts +3 -0
- package/vendor/streamdown/site/home/HomePage.svelte +293 -0
- package/vendor/streamdown/site/home/HomePage.svelte.d.ts +3 -0
- package/vendor/streamdown/site/home/content.d.ts +69 -0
- package/vendor/streamdown/site/home/content.js +144 -0
- package/vendor/streamdown/site/metadata.d.ts +4 -0
- package/vendor/streamdown/site/metadata.js +4 -0
- package/vendor/streamdown/site/navigation.d.ts +6 -0
- package/vendor/streamdown/site/navigation.js +22 -0
- package/vendor/streamdown/streamdown/config.d.ts +41 -0
- package/vendor/streamdown/streamdown/config.js +125 -0
- package/vendor/streamdown/streamdown/context.d.ts +12 -0
- package/vendor/streamdown/streamdown/context.js +2 -0
- package/vendor/streamdown/streamdown/incomplete-markdown.d.ts +5 -0
- package/vendor/streamdown/streamdown/incomplete-markdown.js +79 -0
- package/vendor/streamdown/streamdown/pipeline.d.ts +95 -0
- package/vendor/streamdown/streamdown/pipeline.js +138 -0
- package/vendor/streamdown/streamdown/runtime.d.ts +59 -0
- package/vendor/streamdown/streamdown/runtime.js +112 -0
- package/vendor/streamdown/streaming.d.ts +5 -0
- package/vendor/streamdown/streaming.js +5 -0
- package/vendor/streamdown/theme.d.ts +486 -0
- package/vendor/streamdown/theme.js +370 -0
- package/vendor/streamdown/translations.d.ts +43 -0
- package/vendor/streamdown/translations.js +54 -0
- package/vendor/streamdown/url-policy.d.ts +1 -0
- package/vendor/streamdown/url-policy.js +1 -0
- package/vendor/streamdown/utils/bind.d.ts +8 -0
- package/vendor/streamdown/utils/bind.js +26 -0
- package/vendor/streamdown/utils/bundledLanguages.d.ts +1 -0
- package/vendor/streamdown/utils/bundledLanguages.js +1 -0
- package/vendor/streamdown/utils/code-block.d.ts +8 -0
- package/vendor/streamdown/utils/code-block.js +38 -0
- package/vendor/streamdown/utils/copy.svelte.d.ts +7 -0
- package/vendor/streamdown/utils/copy.svelte.js +38 -0
- package/vendor/streamdown/utils/darkMode.svelte.d.ts +3 -0
- package/vendor/streamdown/utils/darkMode.svelte.js +49 -0
- package/vendor/streamdown/utils/detectDirection.d.ts +1 -0
- package/vendor/streamdown/utils/detectDirection.js +19 -0
- package/vendor/streamdown/utils/get.d.ts +1 -0
- package/vendor/streamdown/utils/get.js +25 -0
- package/vendor/streamdown/utils/hightlighter.svelte.d.ts +30 -0
- package/vendor/streamdown/utils/hightlighter.svelte.js +524 -0
- package/vendor/streamdown/utils/index.d.ts +3 -0
- package/vendor/streamdown/utils/index.js +3 -0
- package/vendor/streamdown/utils/mermaid.d.ts +13 -0
- package/vendor/streamdown/utils/mermaid.js +49 -0
- package/vendor/streamdown/utils/panzoom.svelte.d.ts +35 -0
- package/vendor/streamdown/utils/panzoom.svelte.js +556 -0
- package/vendor/streamdown/utils/parse-incomplete-markdown.d.ts +2 -0
- package/vendor/streamdown/utils/parse-incomplete-markdown.js +2 -0
- package/vendor/streamdown/utils/runtime-env.d.ts +1 -0
- package/vendor/streamdown/utils/runtime-env.js +13 -0
- package/vendor/streamdown/utils/save.d.ts +1 -0
- package/vendor/streamdown/utils/save.js +14 -0
- package/vendor/streamdown/utils/scroll-lock.d.ts +2 -0
- package/vendor/streamdown/utils/scroll-lock.js +35 -0
- package/vendor/streamdown/utils/table.d.ts +8 -0
- package/vendor/streamdown/utils/table.js +176 -0
- package/vendor/streamdown/utils/url.d.ts +22 -0
- package/vendor/streamdown/utils/url.js +98 -0
- package/vendor/streamdown/utils/useClickOutside.svelte.d.ts +8 -0
- package/vendor/streamdown/utils/useClickOutside.svelte.js +41 -0
- package/vendor/streamdown/utils/useKeyDown.svelte.d.ts +5 -0
- package/vendor/streamdown/utils/useKeyDown.svelte.js +23 -0
- package/UPSTREAM_PARITY.md +0 -69
- package/dist/ai-theme.css +0 -28
- package/dist/components/code/code-variants.d.ts +0 -25
- package/dist/components/code/code-variants.js +0 -20
- package/dist/components/conversation/scroll.d.ts +0 -4
- package/dist/components/conversation/scroll.js +0 -85
- package/dist/components/message/content-polish-html.d.ts +0 -5
- package/dist/components/message/content-polish-html.js +0 -75
- package/dist/components/tool/content-polish-scroll-region.d.ts +0 -3
- package/dist/components/tool/content-polish-scroll-region.js +0 -22
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import { type ClassValue } from 'clsx';
|
|
2
|
+
export declare const cn: (...inputs: ClassValue[]) => string;
|
|
3
|
+
export type CnFunction = (...inputs: ClassValue[]) => string;
|
|
4
|
+
export declare const prefixClasses: (prefix: string, classString: string) => string;
|
|
5
|
+
export declare const createCn: (prefix?: string) => CnFunction;
|
|
6
|
+
export declare const prefixThemeClasses: <T>(prefix: string | undefined, value: T) => T;
|
|
7
|
+
export declare const theme: {
|
|
8
|
+
link: {
|
|
9
|
+
base: string;
|
|
10
|
+
blocked: string;
|
|
11
|
+
};
|
|
12
|
+
h1: {
|
|
13
|
+
base: string;
|
|
14
|
+
};
|
|
15
|
+
h2: {
|
|
16
|
+
base: string;
|
|
17
|
+
};
|
|
18
|
+
h3: {
|
|
19
|
+
base: string;
|
|
20
|
+
};
|
|
21
|
+
h4: {
|
|
22
|
+
base: string;
|
|
23
|
+
};
|
|
24
|
+
h5: {
|
|
25
|
+
base: string;
|
|
26
|
+
};
|
|
27
|
+
h6: {
|
|
28
|
+
base: string;
|
|
29
|
+
};
|
|
30
|
+
paragraph: {
|
|
31
|
+
base: string;
|
|
32
|
+
};
|
|
33
|
+
ul: {
|
|
34
|
+
base: string;
|
|
35
|
+
};
|
|
36
|
+
ol: {
|
|
37
|
+
base: string;
|
|
38
|
+
};
|
|
39
|
+
li: {
|
|
40
|
+
base: string;
|
|
41
|
+
checkbox: string;
|
|
42
|
+
};
|
|
43
|
+
code: {
|
|
44
|
+
base: string;
|
|
45
|
+
container: string;
|
|
46
|
+
header: string;
|
|
47
|
+
actions: string;
|
|
48
|
+
buttons: string;
|
|
49
|
+
language: string;
|
|
50
|
+
skeleton: string;
|
|
51
|
+
pre: string;
|
|
52
|
+
line: string;
|
|
53
|
+
};
|
|
54
|
+
codespan: {
|
|
55
|
+
base: string;
|
|
56
|
+
};
|
|
57
|
+
image: {
|
|
58
|
+
base: string;
|
|
59
|
+
image: string;
|
|
60
|
+
};
|
|
61
|
+
blockquote: {
|
|
62
|
+
base: string;
|
|
63
|
+
};
|
|
64
|
+
alert: {
|
|
65
|
+
base: string;
|
|
66
|
+
title: string;
|
|
67
|
+
icon: string;
|
|
68
|
+
note: string;
|
|
69
|
+
tip: string;
|
|
70
|
+
warning: string;
|
|
71
|
+
caution: string;
|
|
72
|
+
important: string;
|
|
73
|
+
};
|
|
74
|
+
table: {
|
|
75
|
+
base: string;
|
|
76
|
+
wrapper: string;
|
|
77
|
+
toolbar: string;
|
|
78
|
+
container: string;
|
|
79
|
+
table: string;
|
|
80
|
+
};
|
|
81
|
+
thead: {
|
|
82
|
+
base: string;
|
|
83
|
+
};
|
|
84
|
+
tbody: {
|
|
85
|
+
base: string;
|
|
86
|
+
};
|
|
87
|
+
tfoot: {
|
|
88
|
+
base: string;
|
|
89
|
+
};
|
|
90
|
+
tr: {
|
|
91
|
+
base: string;
|
|
92
|
+
};
|
|
93
|
+
td: {
|
|
94
|
+
base: string;
|
|
95
|
+
};
|
|
96
|
+
th: {
|
|
97
|
+
base: string;
|
|
98
|
+
};
|
|
99
|
+
sup: {
|
|
100
|
+
base: string;
|
|
101
|
+
};
|
|
102
|
+
sub: {
|
|
103
|
+
base: string;
|
|
104
|
+
};
|
|
105
|
+
hr: {
|
|
106
|
+
base: string;
|
|
107
|
+
};
|
|
108
|
+
strong: {
|
|
109
|
+
base: string;
|
|
110
|
+
};
|
|
111
|
+
mermaid: {
|
|
112
|
+
base: string;
|
|
113
|
+
icon: string;
|
|
114
|
+
buttons: string;
|
|
115
|
+
};
|
|
116
|
+
math: {
|
|
117
|
+
block: string;
|
|
118
|
+
inline: string;
|
|
119
|
+
};
|
|
120
|
+
br: {
|
|
121
|
+
base: string;
|
|
122
|
+
};
|
|
123
|
+
em: {
|
|
124
|
+
base: string;
|
|
125
|
+
};
|
|
126
|
+
del: {
|
|
127
|
+
base: string;
|
|
128
|
+
};
|
|
129
|
+
footnoteRef: {
|
|
130
|
+
base: string;
|
|
131
|
+
};
|
|
132
|
+
descriptionList: {
|
|
133
|
+
base: string;
|
|
134
|
+
};
|
|
135
|
+
descriptionTerm: {
|
|
136
|
+
base: string;
|
|
137
|
+
};
|
|
138
|
+
descriptionDetail: {
|
|
139
|
+
base: string;
|
|
140
|
+
};
|
|
141
|
+
inlineCitation: {
|
|
142
|
+
preview: string;
|
|
143
|
+
carousel: {
|
|
144
|
+
header: string;
|
|
145
|
+
stepCounter: string;
|
|
146
|
+
buttons: string;
|
|
147
|
+
title: string;
|
|
148
|
+
url: string;
|
|
149
|
+
favicon: string;
|
|
150
|
+
};
|
|
151
|
+
list: {
|
|
152
|
+
base: string;
|
|
153
|
+
item: string;
|
|
154
|
+
title: string;
|
|
155
|
+
url: string;
|
|
156
|
+
favicon: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
mdx: {};
|
|
160
|
+
components: {
|
|
161
|
+
button: string;
|
|
162
|
+
popover: string;
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export declare const shadcnTheme: {
|
|
166
|
+
link: {
|
|
167
|
+
base: string;
|
|
168
|
+
blocked: string;
|
|
169
|
+
};
|
|
170
|
+
h1: {
|
|
171
|
+
base: string;
|
|
172
|
+
};
|
|
173
|
+
h2: {
|
|
174
|
+
base: string;
|
|
175
|
+
};
|
|
176
|
+
h3: {
|
|
177
|
+
base: string;
|
|
178
|
+
};
|
|
179
|
+
h4: {
|
|
180
|
+
base: string;
|
|
181
|
+
};
|
|
182
|
+
h5: {
|
|
183
|
+
base: string;
|
|
184
|
+
};
|
|
185
|
+
h6: {
|
|
186
|
+
base: string;
|
|
187
|
+
};
|
|
188
|
+
paragraph: {
|
|
189
|
+
base: string;
|
|
190
|
+
};
|
|
191
|
+
ul: {
|
|
192
|
+
base: string;
|
|
193
|
+
};
|
|
194
|
+
ol: {
|
|
195
|
+
base: string;
|
|
196
|
+
};
|
|
197
|
+
li: {
|
|
198
|
+
base: string;
|
|
199
|
+
checkbox: string;
|
|
200
|
+
};
|
|
201
|
+
code: {
|
|
202
|
+
base: string;
|
|
203
|
+
container: string;
|
|
204
|
+
header: string;
|
|
205
|
+
actions: string;
|
|
206
|
+
buttons: string;
|
|
207
|
+
language: string;
|
|
208
|
+
skeleton: string;
|
|
209
|
+
pre: string;
|
|
210
|
+
line: string;
|
|
211
|
+
};
|
|
212
|
+
codespan: {
|
|
213
|
+
base: string;
|
|
214
|
+
};
|
|
215
|
+
image: {
|
|
216
|
+
base: string;
|
|
217
|
+
image: string;
|
|
218
|
+
};
|
|
219
|
+
blockquote: {
|
|
220
|
+
base: string;
|
|
221
|
+
};
|
|
222
|
+
alert: {
|
|
223
|
+
base: string;
|
|
224
|
+
title: string;
|
|
225
|
+
icon: string;
|
|
226
|
+
note: string;
|
|
227
|
+
tip: string;
|
|
228
|
+
warning: string;
|
|
229
|
+
caution: string;
|
|
230
|
+
important: string;
|
|
231
|
+
};
|
|
232
|
+
table: {
|
|
233
|
+
base: string;
|
|
234
|
+
wrapper: string;
|
|
235
|
+
toolbar: string;
|
|
236
|
+
container: string;
|
|
237
|
+
table: string;
|
|
238
|
+
};
|
|
239
|
+
thead: {
|
|
240
|
+
base: string;
|
|
241
|
+
};
|
|
242
|
+
tbody: {
|
|
243
|
+
base: string;
|
|
244
|
+
};
|
|
245
|
+
tfoot: {
|
|
246
|
+
base: string;
|
|
247
|
+
};
|
|
248
|
+
tr: {
|
|
249
|
+
base: string;
|
|
250
|
+
};
|
|
251
|
+
td: {
|
|
252
|
+
base: string;
|
|
253
|
+
};
|
|
254
|
+
th: {
|
|
255
|
+
base: string;
|
|
256
|
+
};
|
|
257
|
+
sup: {
|
|
258
|
+
base: string;
|
|
259
|
+
};
|
|
260
|
+
sub: {
|
|
261
|
+
base: string;
|
|
262
|
+
};
|
|
263
|
+
hr: {
|
|
264
|
+
base: string;
|
|
265
|
+
};
|
|
266
|
+
strong: {
|
|
267
|
+
base: string;
|
|
268
|
+
};
|
|
269
|
+
mermaid: {
|
|
270
|
+
base: string;
|
|
271
|
+
icon: string;
|
|
272
|
+
buttons: string;
|
|
273
|
+
};
|
|
274
|
+
math: {
|
|
275
|
+
block: string;
|
|
276
|
+
inline: string;
|
|
277
|
+
};
|
|
278
|
+
br: {
|
|
279
|
+
base: string;
|
|
280
|
+
};
|
|
281
|
+
em: {
|
|
282
|
+
base: string;
|
|
283
|
+
};
|
|
284
|
+
del: {
|
|
285
|
+
base: string;
|
|
286
|
+
};
|
|
287
|
+
footnoteRef: {
|
|
288
|
+
base: string;
|
|
289
|
+
};
|
|
290
|
+
descriptionList: {
|
|
291
|
+
base: string;
|
|
292
|
+
};
|
|
293
|
+
descriptionTerm: {
|
|
294
|
+
base: string;
|
|
295
|
+
};
|
|
296
|
+
descriptionDetail: {
|
|
297
|
+
base: string;
|
|
298
|
+
};
|
|
299
|
+
inlineCitation: {
|
|
300
|
+
preview: string;
|
|
301
|
+
carousel: {
|
|
302
|
+
header: string;
|
|
303
|
+
stepCounter: string;
|
|
304
|
+
buttons: string;
|
|
305
|
+
title: string;
|
|
306
|
+
url: string;
|
|
307
|
+
favicon: string;
|
|
308
|
+
};
|
|
309
|
+
list: {
|
|
310
|
+
base: string;
|
|
311
|
+
item: string;
|
|
312
|
+
title: string;
|
|
313
|
+
url: string;
|
|
314
|
+
favicon: string;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
mdx: {};
|
|
318
|
+
components: {
|
|
319
|
+
button: string;
|
|
320
|
+
popover: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
export type Theme = typeof theme;
|
|
324
|
+
type DeepPartial<T> = {
|
|
325
|
+
[K in keyof T]?: T[K] extends object ? DeepPartial<T[K]> : T[K];
|
|
326
|
+
};
|
|
327
|
+
export type DeepPartialTheme = DeepPartial<Theme>;
|
|
328
|
+
export declare const mergeTheme: (customTheme?: DeepPartialTheme, baseTheme?: "tailwind" | "shadcn") => {
|
|
329
|
+
link: {
|
|
330
|
+
base: string;
|
|
331
|
+
blocked: string;
|
|
332
|
+
};
|
|
333
|
+
h1: {
|
|
334
|
+
base: string;
|
|
335
|
+
};
|
|
336
|
+
h2: {
|
|
337
|
+
base: string;
|
|
338
|
+
};
|
|
339
|
+
h3: {
|
|
340
|
+
base: string;
|
|
341
|
+
};
|
|
342
|
+
h4: {
|
|
343
|
+
base: string;
|
|
344
|
+
};
|
|
345
|
+
h5: {
|
|
346
|
+
base: string;
|
|
347
|
+
};
|
|
348
|
+
h6: {
|
|
349
|
+
base: string;
|
|
350
|
+
};
|
|
351
|
+
paragraph: {
|
|
352
|
+
base: string;
|
|
353
|
+
};
|
|
354
|
+
ul: {
|
|
355
|
+
base: string;
|
|
356
|
+
};
|
|
357
|
+
ol: {
|
|
358
|
+
base: string;
|
|
359
|
+
};
|
|
360
|
+
li: {
|
|
361
|
+
base: string;
|
|
362
|
+
checkbox: string;
|
|
363
|
+
};
|
|
364
|
+
code: {
|
|
365
|
+
base: string;
|
|
366
|
+
container: string;
|
|
367
|
+
header: string;
|
|
368
|
+
actions: string;
|
|
369
|
+
buttons: string;
|
|
370
|
+
language: string;
|
|
371
|
+
skeleton: string;
|
|
372
|
+
pre: string;
|
|
373
|
+
line: string;
|
|
374
|
+
};
|
|
375
|
+
codespan: {
|
|
376
|
+
base: string;
|
|
377
|
+
};
|
|
378
|
+
image: {
|
|
379
|
+
base: string;
|
|
380
|
+
image: string;
|
|
381
|
+
};
|
|
382
|
+
blockquote: {
|
|
383
|
+
base: string;
|
|
384
|
+
};
|
|
385
|
+
alert: {
|
|
386
|
+
base: string;
|
|
387
|
+
title: string;
|
|
388
|
+
icon: string;
|
|
389
|
+
note: string;
|
|
390
|
+
tip: string;
|
|
391
|
+
warning: string;
|
|
392
|
+
caution: string;
|
|
393
|
+
important: string;
|
|
394
|
+
};
|
|
395
|
+
table: {
|
|
396
|
+
base: string;
|
|
397
|
+
wrapper: string;
|
|
398
|
+
toolbar: string;
|
|
399
|
+
container: string;
|
|
400
|
+
table: string;
|
|
401
|
+
};
|
|
402
|
+
thead: {
|
|
403
|
+
base: string;
|
|
404
|
+
};
|
|
405
|
+
tbody: {
|
|
406
|
+
base: string;
|
|
407
|
+
};
|
|
408
|
+
tfoot: {
|
|
409
|
+
base: string;
|
|
410
|
+
};
|
|
411
|
+
tr: {
|
|
412
|
+
base: string;
|
|
413
|
+
};
|
|
414
|
+
td: {
|
|
415
|
+
base: string;
|
|
416
|
+
};
|
|
417
|
+
th: {
|
|
418
|
+
base: string;
|
|
419
|
+
};
|
|
420
|
+
sup: {
|
|
421
|
+
base: string;
|
|
422
|
+
};
|
|
423
|
+
sub: {
|
|
424
|
+
base: string;
|
|
425
|
+
};
|
|
426
|
+
hr: {
|
|
427
|
+
base: string;
|
|
428
|
+
};
|
|
429
|
+
strong: {
|
|
430
|
+
base: string;
|
|
431
|
+
};
|
|
432
|
+
mermaid: {
|
|
433
|
+
base: string;
|
|
434
|
+
icon: string;
|
|
435
|
+
buttons: string;
|
|
436
|
+
};
|
|
437
|
+
math: {
|
|
438
|
+
block: string;
|
|
439
|
+
inline: string;
|
|
440
|
+
};
|
|
441
|
+
br: {
|
|
442
|
+
base: string;
|
|
443
|
+
};
|
|
444
|
+
em: {
|
|
445
|
+
base: string;
|
|
446
|
+
};
|
|
447
|
+
del: {
|
|
448
|
+
base: string;
|
|
449
|
+
};
|
|
450
|
+
footnoteRef: {
|
|
451
|
+
base: string;
|
|
452
|
+
};
|
|
453
|
+
descriptionList: {
|
|
454
|
+
base: string;
|
|
455
|
+
};
|
|
456
|
+
descriptionTerm: {
|
|
457
|
+
base: string;
|
|
458
|
+
};
|
|
459
|
+
descriptionDetail: {
|
|
460
|
+
base: string;
|
|
461
|
+
};
|
|
462
|
+
inlineCitation: {
|
|
463
|
+
preview: string;
|
|
464
|
+
carousel: {
|
|
465
|
+
header: string;
|
|
466
|
+
stepCounter: string;
|
|
467
|
+
buttons: string;
|
|
468
|
+
title: string;
|
|
469
|
+
url: string;
|
|
470
|
+
favicon: string;
|
|
471
|
+
};
|
|
472
|
+
list: {
|
|
473
|
+
base: string;
|
|
474
|
+
item: string;
|
|
475
|
+
title: string;
|
|
476
|
+
url: string;
|
|
477
|
+
favicon: string;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
mdx: {};
|
|
481
|
+
components: {
|
|
482
|
+
button: string;
|
|
483
|
+
popover: string;
|
|
484
|
+
};
|
|
485
|
+
};
|
|
486
|
+
export {};
|