@duskmoon-dev/components 0.3.1 → 0.3.3
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 +2 -2
- package/dist/{chunk-r9wkv7xd.js → chunk-fwjzvsrx.js} +3 -3
- package/dist/classes/chat.d.ts +35 -0
- package/dist/classes/index.d.ts +1 -0
- package/dist/classes/index.js +1271 -1184
- package/dist/components/anchor/index.js +2 -2
- package/dist/components/app/index.js +85 -85
- package/dist/components/cascader/index.js +2 -2
- package/dist/components/chat/Chat.d.ts +14 -0
- package/dist/components/chat/Chat.types.d.ts +47 -0
- package/dist/components/chat/index.d.ts +2 -0
- package/dist/components/chat/index.js +220 -0
- package/dist/components/color-picker/index.js +4 -4
- package/dist/components/config-provider/index.js +2 -2
- package/dist/components/dm-breadcrumb/index.js +18 -18
- package/dist/components/dm-date-picker/index.js +94 -94
- package/dist/components/dm-drawer/index.js +16 -16
- package/dist/components/dm-layout/index.js +189 -189
- package/dist/components/dm-menu/index.js +24 -24
- package/dist/components/dm-message/index.js +18 -18
- package/dist/components/dm-page-header/index.js +158 -158
- package/dist/components/dm-pagination/index.js +39 -39
- package/dist/components/dm-pro-table/index.js +1558 -1558
- package/dist/components/dm-provider/index.js +94 -94
- package/dist/components/dm-query/index.js +33 -31
- package/dist/components/dm-search/index.js +25 -25
- package/dist/components/dm-splitter/index.js +32 -32
- package/dist/components/dm-status/index.js +25 -25
- package/dist/components/dm-table/index.js +595 -595
- package/dist/components/dm-tabs/index.js +34 -34
- package/dist/components/dm-toolbar/index.js +23 -23
- package/dist/components/dm-tree/index.js +92 -92
- package/dist/components/dm-truncate/index.js +33 -33
- package/dist/components/dropdown/index.js +83 -83
- package/dist/components/form/index.js +2 -2
- package/dist/components/grid/index.js +2 -2
- package/dist/components/input/index.js +4 -4
- package/dist/components/markdown/index.js +1 -1
- package/dist/components/message/index.js +5 -5
- package/dist/components/notification/index.js +2 -2
- package/dist/components/popconfirm/index.js +42 -42
- package/dist/components/skeleton/index.js +5 -5
- package/dist/components/spin/index.js +2 -2
- package/dist/components/steps/index.js +2 -2
- package/dist/components/table/index.js +2 -2
- package/dist/components/tabs/index.js +2 -2
- package/dist/components/tag/index.js +2 -2
- package/dist/components/tour/index.js +62 -62
- package/dist/components/typography/index.js +4 -4
- package/dist/components/upload/index.js +5 -5
- package/dist/generated/version.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1716 -1525
- package/dist/infrastructure.js +11 -11
- package/dist/styles.css +13430 -9848
- package/dist/theme/index.js +3 -3
- package/dist/utils/index.js +5 -5
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -41,8 +41,8 @@ import { Button, DmTable, theme } from "@duskmoon-dev/components";
|
|
|
41
41
|
|
|
42
42
|
## Public Surface
|
|
43
43
|
|
|
44
|
-
-
|
|
45
|
-
`Typography`.
|
|
44
|
+
- 73 standard components such as `Button`, `Chat`, `Table`, `Modal`, `Select`,
|
|
45
|
+
and `Typography`.
|
|
46
46
|
- 21 DuskMoon workflow components such as `DmLayout`, `DmSearch`, `DmTable`,
|
|
47
47
|
`DmProTable`, and `DmToolbar`.
|
|
48
48
|
- 13 infrastructure exports including `theme`, `version`,
|
|
@@ -20,10 +20,10 @@ function clsx() {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
// src/utils/cn.ts
|
|
23
|
-
function
|
|
23
|
+
function cn2(...inputs) {
|
|
24
24
|
return clsx(inputs);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function duskmoonMerge2(classes) {
|
|
27
27
|
return classes;
|
|
28
28
|
}
|
|
29
|
-
export {
|
|
29
|
+
export { cn2, duskmoonMerge2 };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ChatBubbleColor, ChatBubbleSize, ChatPlacement, ChatToolState } from "../components/chat/Chat.types";
|
|
2
|
+
export declare const chatBaseClass = "chat";
|
|
3
|
+
export declare const chatAvatarClass = "chat-avatar";
|
|
4
|
+
export declare const chatHeaderClass = "chat-header";
|
|
5
|
+
export declare const chatBubbleBaseClass = "chat-bubble";
|
|
6
|
+
export declare const chatFooterClass = "chat-footer";
|
|
7
|
+
export declare const chatReasoningClass = "chat-reasoning";
|
|
8
|
+
export declare const chatToolBaseClass = "chat-tool";
|
|
9
|
+
export declare const chatToolHeaderClass = "chat-tool-header";
|
|
10
|
+
export declare const chatToolStatusClass = "chat-tool-status";
|
|
11
|
+
export declare const chatToolCallClass = "chat-tool-call";
|
|
12
|
+
export declare const chatToolResultClass = "chat-tool-result";
|
|
13
|
+
export declare const chatTypingClass = "chat-typing";
|
|
14
|
+
export declare const chatStreamingCaretClass = "chat-streaming-caret";
|
|
15
|
+
export declare const chatBubbleFilledClass = "chat-bubble-filled";
|
|
16
|
+
export declare const chatBubbleStreamingClass = "chat-bubble-streaming";
|
|
17
|
+
export declare const chatPlacementClasses: Record<ChatPlacement, string>;
|
|
18
|
+
export declare const chatBubbleColorClasses: Record<ChatBubbleColor, string>;
|
|
19
|
+
export declare const chatBubbleSizeClasses: Record<ChatBubbleSize, string>;
|
|
20
|
+
export declare const chatToolStateClasses: Record<ChatToolState, string>;
|
|
21
|
+
export declare function getChatClasses({ placement, className, }: {
|
|
22
|
+
placement?: ChatPlacement;
|
|
23
|
+
className?: string;
|
|
24
|
+
}): string;
|
|
25
|
+
export declare function getChatBubbleClasses({ color, size, filled, streaming, className, }: {
|
|
26
|
+
color?: ChatBubbleColor;
|
|
27
|
+
size?: ChatBubbleSize;
|
|
28
|
+
filled?: boolean;
|
|
29
|
+
streaming?: boolean;
|
|
30
|
+
className?: string;
|
|
31
|
+
}): string;
|
|
32
|
+
export declare function getChatToolClasses({ status, className, }: {
|
|
33
|
+
status?: ChatToolState;
|
|
34
|
+
className?: string;
|
|
35
|
+
}): string;
|
package/dist/classes/index.d.ts
CHANGED